diff --git a/Assets/WebGLTemplates/Thirdweb/lib/thirdweb-unity-bridge.js b/Assets/WebGLTemplates/Thirdweb/lib/thirdweb-unity-bridge.js index 3de7cbf4..636ddcd5 100644 --- a/Assets/WebGLTemplates/Thirdweb/lib/thirdweb-unity-bridge.js +++ b/Assets/WebGLTemplates/Thirdweb/lib/thirdweb-unity-bridge.js @@ -1,299 +1,209975 @@ -"use strict";(()=>{var bpt=Object.create;var _E=Object.defineProperty;var wpt=Object.getOwnPropertyDescriptor;var xpt=Object.getOwnPropertyNames;var Tpt=Object.getPrototypeOf,_pt=Object.prototype.hasOwnProperty;var Dp=(r=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(r,{get:(e,t)=>(typeof require<"u"?require:e)[t]}):r)(function(r){if(typeof require<"u")return require.apply(this,arguments);throw new Error('Dynamic require of "'+r+'" is not supported')});var vt=(r,e)=>()=>(r&&(e=r(r=0)),e);var O=(r,e)=>()=>(e||r((e={exports:{}}).exports,e),e.exports),Fd=(r,e)=>{for(var t in e)_E(r,t,{get:e[t],enumerable:!0})},TE=(r,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of xpt(e))!_pt.call(r,a)&&a!==t&&_E(r,a,{get:()=>e[a],enumerable:!(n=wpt(e,a))||n.enumerable});return r},qr=(r,e,t)=>(TE(r,e,"default"),t&&TE(t,e,"default")),cr=(r,e,t)=>(t=r!=null?bpt(Tpt(r)):{},TE(e||!r||!r.__esModule?_E(t,"default",{value:r,enumerable:!0}):t,r)),Nn=r=>TE(_E({},"__esModule",{value:!0}),r);var M,x=vt(()=>{M={env:"production"}});var Dae=O(CE=>{"use strict";x();T();CE.byteLength=kpt;CE.toByteArray=Apt;CE.fromByteArray=Ppt;var Fp=[],Tl=[],Ept=typeof Uint8Array<"u"?Uint8Array:Array,Aq="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(zy=0,Bae=Aq.length;zy0)throw new Error("Invalid string. Length must be a multiple of 4");var t=r.indexOf("=");t===-1&&(t=e);var n=t===e?0:4-t%4;return[t,n]}function kpt(r){var e=qae(r),t=e[0],n=e[1];return(t+n)*3/4-n}function Spt(r,e,t){return(e+t)*3/4-t}function Apt(r){var e,t=qae(r),n=t[0],a=t[1],i=new Ept(Spt(r,n,a)),s=0,c=a>0?n-4:n,l;for(l=0;l>16&255,i[s++]=e>>8&255,i[s++]=e&255;return a===2&&(e=Tl[r.charCodeAt(l)]<<2|Tl[r.charCodeAt(l+1)]>>4,i[s++]=e&255),a===1&&(e=Tl[r.charCodeAt(l)]<<10|Tl[r.charCodeAt(l+1)]<<4|Tl[r.charCodeAt(l+2)]>>2,i[s++]=e>>8&255,i[s++]=e&255),i}function Mpt(r){return Fp[r>>18&63]+Fp[r>>12&63]+Fp[r>>6&63]+Fp[r&63]}function Ipt(r,e,t){for(var n,a=[],i=e;ic?c:s+i));return n===1?(e=r[t-1],a.push(Fp[e>>2]+Fp[e<<4&63]+"==")):n===2&&(e=(r[t-2]<<8)+r[t-1],a.push(Fp[e>>10]+Fp[e>>4&63]+Fp[e<<2&63]+"=")),a.join("")}});var Fae=O(Mq=>{x();T();Mq.read=function(r,e,t,n,a){var i,s,c=a*8-n-1,l=(1<>1,f=-7,w=t?a-1:0,E=t?-1:1,k=r[e+w];for(w+=E,i=k&(1<<-f)-1,k>>=-f,f+=c;f>0;i=i*256+r[e+w],w+=E,f-=8);for(s=i&(1<<-f)-1,i>>=-f,f+=n;f>0;s=s*256+r[e+w],w+=E,f-=8);if(i===0)i=1-d;else{if(i===l)return s?NaN:(k?-1:1)*(1/0);s=s+Math.pow(2,n),i=i-d}return(k?-1:1)*s*Math.pow(2,i-n)};Mq.write=function(r,e,t,n,a,i){var s,c,l,d=i*8-a-1,f=(1<>1,E=a===23?Math.pow(2,-24)-Math.pow(2,-77):0,k=n?0:i-1,A=n?1:-1,L=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(c=isNaN(e)?1:0,s=f):(s=Math.floor(Math.log(e)/Math.LN2),e*(l=Math.pow(2,-s))<1&&(s--,l*=2),s+w>=1?e+=E/l:e+=E*Math.pow(2,1-w),e*l>=2&&(s++,l/=2),s+w>=f?(c=0,s=f):s+w>=1?(c=(e*l-1)*Math.pow(2,a),s=s+w):(c=e*Math.pow(2,w-1)*Math.pow(2,a),s=0));a>=8;r[t+k]=c&255,k+=A,c/=256,a-=8);for(s=s<0;r[t+k]=s&255,k+=A,s/=256,d-=8);r[t+k-A]|=L*128}});var $i=O(q1=>{"use strict";x();T();var Iq=Dae(),B1=Fae(),Uae=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;q1.Buffer=dt;q1.SlowBuffer=qpt;q1.INSPECT_MAX_BYTES=50;var EE=2147483647;q1.kMaxLength=EE;dt.TYPED_ARRAY_SUPPORT=Rpt();!dt.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function Rpt(){try{var r=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(r,e),r.foo()===42}catch{return!1}}Object.defineProperty(dt.prototype,"parent",{enumerable:!0,get:function(){if(!!dt.isBuffer(this))return this.buffer}});Object.defineProperty(dt.prototype,"offset",{enumerable:!0,get:function(){if(!!dt.isBuffer(this))return this.byteOffset}});function cf(r){if(r>EE)throw new RangeError('The value "'+r+'" is invalid for option "size"');var e=new Uint8Array(r);return Object.setPrototypeOf(e,dt.prototype),e}function dt(r,e,t){if(typeof r=="number"){if(typeof e=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return Oq(r)}return zae(r,e,t)}dt.poolSize=8192;function zae(r,e,t){if(typeof r=="string")return Opt(r,e);if(ArrayBuffer.isView(r))return Lpt(r);if(r==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof r);if(Up(r,ArrayBuffer)||r&&Up(r.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(Up(r,SharedArrayBuffer)||r&&Up(r.buffer,SharedArrayBuffer)))return Rq(r,e,t);if(typeof r=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var n=r.valueOf&&r.valueOf();if(n!=null&&n!==r)return dt.from(n,e,t);var a=Bpt(r);if(a)return a;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof r[Symbol.toPrimitive]=="function")return dt.from(r[Symbol.toPrimitive]("string"),e,t);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof r)}dt.from=function(r,e,t){return zae(r,e,t)};Object.setPrototypeOf(dt.prototype,Uint8Array.prototype);Object.setPrototypeOf(dt,Uint8Array);function Hae(r){if(typeof r!="number")throw new TypeError('"size" argument must be of type number');if(r<0)throw new RangeError('The value "'+r+'" is invalid for option "size"')}function Npt(r,e,t){return Hae(r),r<=0?cf(r):e!==void 0?typeof t=="string"?cf(r).fill(e,t):cf(r).fill(e):cf(r)}dt.alloc=function(r,e,t){return Npt(r,e,t)};function Oq(r){return Hae(r),cf(r<0?0:Lq(r)|0)}dt.allocUnsafe=function(r){return Oq(r)};dt.allocUnsafeSlow=function(r){return Oq(r)};function Opt(r,e){if((typeof e!="string"||e==="")&&(e="utf8"),!dt.isEncoding(e))throw new TypeError("Unknown encoding: "+e);var t=Vae(r,e)|0,n=cf(t),a=n.write(r,e);return a!==t&&(n=n.slice(0,a)),n}function Pq(r){for(var e=r.length<0?0:Lq(r.length)|0,t=cf(e),n=0;n=EE)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+EE.toString(16)+" bytes");return r|0}function qpt(r){return+r!=r&&(r=0),dt.alloc(+r)}dt.isBuffer=function(e){return e!=null&&e._isBuffer===!0&&e!==dt.prototype};dt.compare=function(e,t){if(Up(e,Uint8Array)&&(e=dt.from(e,e.offset,e.byteLength)),Up(t,Uint8Array)&&(t=dt.from(t,t.offset,t.byteLength)),!dt.isBuffer(e)||!dt.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var n=e.length,a=t.length,i=0,s=Math.min(n,a);ia.length?dt.from(s).copy(a,i):Uint8Array.prototype.set.call(a,s,i);else if(dt.isBuffer(s))s.copy(a,i);else throw new TypeError('"list" argument must be an Array of Buffers');i+=s.length}return a};function Vae(r,e){if(dt.isBuffer(r))return r.length;if(ArrayBuffer.isView(r)||Up(r,ArrayBuffer))return r.byteLength;if(typeof r!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof r);var t=r.length,n=arguments.length>2&&arguments[2]===!0;if(!n&&t===0)return 0;for(var a=!1;;)switch(e){case"ascii":case"latin1":case"binary":return t;case"utf8":case"utf-8":return Nq(r).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return t*2;case"hex":return t>>>1;case"base64":return Xae(r).length;default:if(a)return n?-1:Nq(r).length;e=(""+e).toLowerCase(),a=!0}}dt.byteLength=Vae;function Dpt(r,e,t){var n=!1;if((e===void 0||e<0)&&(e=0),e>this.length||((t===void 0||t>this.length)&&(t=this.length),t<=0)||(t>>>=0,e>>>=0,t<=e))return"";for(r||(r="utf8");;)switch(r){case"hex":return Jpt(this,e,t);case"utf8":case"utf-8":return Zae(this,e,t);case"ascii":return Gpt(this,e,t);case"latin1":case"binary":return Zpt(this,e,t);case"base64":return Hpt(this,e,t);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Kpt(this,e,t);default:if(n)throw new TypeError("Unknown encoding: "+r);r=(r+"").toLowerCase(),n=!0}}dt.prototype._isBuffer=!0;function Hy(r,e,t){var n=r[e];r[e]=r[t],r[t]=n}dt.prototype.swap16=function(){var e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;tt&&(e+=" ... "),""};Uae&&(dt.prototype[Uae]=dt.prototype.inspect);dt.prototype.compare=function(e,t,n,a,i){if(Up(e,Uint8Array)&&(e=dt.from(e,e.offset,e.byteLength)),!dt.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(t===void 0&&(t=0),n===void 0&&(n=e?e.length:0),a===void 0&&(a=0),i===void 0&&(i=this.length),t<0||n>e.length||a<0||i>this.length)throw new RangeError("out of range index");if(a>=i&&t>=n)return 0;if(a>=i)return-1;if(t>=n)return 1;if(t>>>=0,n>>>=0,a>>>=0,i>>>=0,this===e)return 0;for(var s=i-a,c=n-t,l=Math.min(s,c),d=this.slice(a,i),f=e.slice(t,n),w=0;w2147483647?t=2147483647:t<-2147483648&&(t=-2147483648),t=+t,Bq(t)&&(t=a?0:r.length-1),t<0&&(t=r.length+t),t>=r.length){if(a)return-1;t=r.length-1}else if(t<0)if(a)t=0;else return-1;if(typeof e=="string"&&(e=dt.from(e,n)),dt.isBuffer(e))return e.length===0?-1:Wae(r,e,t,n,a);if(typeof e=="number")return e=e&255,typeof Uint8Array.prototype.indexOf=="function"?a?Uint8Array.prototype.indexOf.call(r,e,t):Uint8Array.prototype.lastIndexOf.call(r,e,t):Wae(r,[e],t,n,a);throw new TypeError("val must be string, number or Buffer")}function Wae(r,e,t,n,a){var i=1,s=r.length,c=e.length;if(n!==void 0&&(n=String(n).toLowerCase(),n==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le")){if(r.length<2||e.length<2)return-1;i=2,s/=2,c/=2,t/=2}function l(k,A){return i===1?k[A]:k.readUInt16BE(A*i)}var d;if(a){var f=-1;for(d=t;ds&&(t=s-c),d=t;d>=0;d--){for(var w=!0,E=0;Ea&&(n=a)):n=a;var i=e.length;n>i/2&&(n=i/2);for(var s=0;s>>0,isFinite(n)?(n=n>>>0,a===void 0&&(a="utf8")):(a=n,n=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var i=this.length-t;if((n===void 0||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");a||(a="utf8");for(var s=!1;;)switch(a){case"hex":return Fpt(this,e,t,n);case"utf8":case"utf-8":return Upt(this,e,t,n);case"ascii":case"latin1":case"binary":return Wpt(this,e,t,n);case"base64":return jpt(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return zpt(this,e,t,n);default:if(s)throw new TypeError("Unknown encoding: "+a);a=(""+a).toLowerCase(),s=!0}};dt.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Hpt(r,e,t){return e===0&&t===r.length?Iq.fromByteArray(r):Iq.fromByteArray(r.slice(e,t))}function Zae(r,e,t){t=Math.min(r.length,t);for(var n=[],a=e;a239?4:i>223?3:i>191?2:1;if(a+c<=t){var l,d,f,w;switch(c){case 1:i<128&&(s=i);break;case 2:l=r[a+1],(l&192)===128&&(w=(i&31)<<6|l&63,w>127&&(s=w));break;case 3:l=r[a+1],d=r[a+2],(l&192)===128&&(d&192)===128&&(w=(i&15)<<12|(l&63)<<6|d&63,w>2047&&(w<55296||w>57343)&&(s=w));break;case 4:l=r[a+1],d=r[a+2],f=r[a+3],(l&192)===128&&(d&192)===128&&(f&192)===128&&(w=(i&15)<<18|(l&63)<<12|(d&63)<<6|f&63,w>65535&&w<1114112&&(s=w))}}s===null?(s=65533,c=1):s>65535&&(s-=65536,n.push(s>>>10&1023|55296),s=56320|s&1023),n.push(s),a+=c}return Vpt(n)}var jae=4096;function Vpt(r){var e=r.length;if(e<=jae)return String.fromCharCode.apply(String,r);for(var t="",n=0;nn)&&(t=n);for(var a="",i=e;in&&(e=n),t<0?(t+=n,t<0&&(t=0)):t>n&&(t=n),tt)throw new RangeError("Trying to access beyond buffer length")}dt.prototype.readUintLE=dt.prototype.readUIntLE=function(e,t,n){e=e>>>0,t=t>>>0,n||Os(e,t,this.length);for(var a=this[e],i=1,s=0;++s>>0,t=t>>>0,n||Os(e,t,this.length);for(var a=this[e+--t],i=1;t>0&&(i*=256);)a+=this[e+--t]*i;return a};dt.prototype.readUint8=dt.prototype.readUInt8=function(e,t){return e=e>>>0,t||Os(e,1,this.length),this[e]};dt.prototype.readUint16LE=dt.prototype.readUInt16LE=function(e,t){return e=e>>>0,t||Os(e,2,this.length),this[e]|this[e+1]<<8};dt.prototype.readUint16BE=dt.prototype.readUInt16BE=function(e,t){return e=e>>>0,t||Os(e,2,this.length),this[e]<<8|this[e+1]};dt.prototype.readUint32LE=dt.prototype.readUInt32LE=function(e,t){return e=e>>>0,t||Os(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+this[e+3]*16777216};dt.prototype.readUint32BE=dt.prototype.readUInt32BE=function(e,t){return e=e>>>0,t||Os(e,4,this.length),this[e]*16777216+(this[e+1]<<16|this[e+2]<<8|this[e+3])};dt.prototype.readIntLE=function(e,t,n){e=e>>>0,t=t>>>0,n||Os(e,t,this.length);for(var a=this[e],i=1,s=0;++s=i&&(a-=Math.pow(2,8*t)),a};dt.prototype.readIntBE=function(e,t,n){e=e>>>0,t=t>>>0,n||Os(e,t,this.length);for(var a=t,i=1,s=this[e+--a];a>0&&(i*=256);)s+=this[e+--a]*i;return i*=128,s>=i&&(s-=Math.pow(2,8*t)),s};dt.prototype.readInt8=function(e,t){return e=e>>>0,t||Os(e,1,this.length),this[e]&128?(255-this[e]+1)*-1:this[e]};dt.prototype.readInt16LE=function(e,t){e=e>>>0,t||Os(e,2,this.length);var n=this[e]|this[e+1]<<8;return n&32768?n|4294901760:n};dt.prototype.readInt16BE=function(e,t){e=e>>>0,t||Os(e,2,this.length);var n=this[e+1]|this[e]<<8;return n&32768?n|4294901760:n};dt.prototype.readInt32LE=function(e,t){return e=e>>>0,t||Os(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24};dt.prototype.readInt32BE=function(e,t){return e=e>>>0,t||Os(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]};dt.prototype.readFloatLE=function(e,t){return e=e>>>0,t||Os(e,4,this.length),B1.read(this,e,!0,23,4)};dt.prototype.readFloatBE=function(e,t){return e=e>>>0,t||Os(e,4,this.length),B1.read(this,e,!1,23,4)};dt.prototype.readDoubleLE=function(e,t){return e=e>>>0,t||Os(e,8,this.length),B1.read(this,e,!0,52,8)};dt.prototype.readDoubleBE=function(e,t){return e=e>>>0,t||Os(e,8,this.length),B1.read(this,e,!1,52,8)};function ou(r,e,t,n,a,i){if(!dt.isBuffer(r))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>a||er.length)throw new RangeError("Index out of range")}dt.prototype.writeUintLE=dt.prototype.writeUIntLE=function(e,t,n,a){if(e=+e,t=t>>>0,n=n>>>0,!a){var i=Math.pow(2,8*n)-1;ou(this,e,t,n,i,0)}var s=1,c=0;for(this[t]=e&255;++c>>0,n=n>>>0,!a){var i=Math.pow(2,8*n)-1;ou(this,e,t,n,i,0)}var s=n-1,c=1;for(this[t+s]=e&255;--s>=0&&(c*=256);)this[t+s]=e/c&255;return t+n};dt.prototype.writeUint8=dt.prototype.writeUInt8=function(e,t,n){return e=+e,t=t>>>0,n||ou(this,e,t,1,255,0),this[t]=e&255,t+1};dt.prototype.writeUint16LE=dt.prototype.writeUInt16LE=function(e,t,n){return e=+e,t=t>>>0,n||ou(this,e,t,2,65535,0),this[t]=e&255,this[t+1]=e>>>8,t+2};dt.prototype.writeUint16BE=dt.prototype.writeUInt16BE=function(e,t,n){return e=+e,t=t>>>0,n||ou(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=e&255,t+2};dt.prototype.writeUint32LE=dt.prototype.writeUInt32LE=function(e,t,n){return e=+e,t=t>>>0,n||ou(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=e&255,t+4};dt.prototype.writeUint32BE=dt.prototype.writeUInt32BE=function(e,t,n){return e=+e,t=t>>>0,n||ou(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=e&255,t+4};dt.prototype.writeIntLE=function(e,t,n,a){if(e=+e,t=t>>>0,!a){var i=Math.pow(2,8*n-1);ou(this,e,t,n,i-1,-i)}var s=0,c=1,l=0;for(this[t]=e&255;++s>0)-l&255;return t+n};dt.prototype.writeIntBE=function(e,t,n,a){if(e=+e,t=t>>>0,!a){var i=Math.pow(2,8*n-1);ou(this,e,t,n,i-1,-i)}var s=n-1,c=1,l=0;for(this[t+s]=e&255;--s>=0&&(c*=256);)e<0&&l===0&&this[t+s+1]!==0&&(l=1),this[t+s]=(e/c>>0)-l&255;return t+n};dt.prototype.writeInt8=function(e,t,n){return e=+e,t=t>>>0,n||ou(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=e&255,t+1};dt.prototype.writeInt16LE=function(e,t,n){return e=+e,t=t>>>0,n||ou(this,e,t,2,32767,-32768),this[t]=e&255,this[t+1]=e>>>8,t+2};dt.prototype.writeInt16BE=function(e,t,n){return e=+e,t=t>>>0,n||ou(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=e&255,t+2};dt.prototype.writeInt32LE=function(e,t,n){return e=+e,t=t>>>0,n||ou(this,e,t,4,2147483647,-2147483648),this[t]=e&255,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4};dt.prototype.writeInt32BE=function(e,t,n){return e=+e,t=t>>>0,n||ou(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=e&255,t+4};function Jae(r,e,t,n,a,i){if(t+n>r.length)throw new RangeError("Index out of range");if(t<0)throw new RangeError("Index out of range")}function Kae(r,e,t,n,a){return e=+e,t=t>>>0,a||Jae(r,e,t,4,34028234663852886e22,-34028234663852886e22),B1.write(r,e,t,n,23,4),t+4}dt.prototype.writeFloatLE=function(e,t,n){return Kae(this,e,t,!0,n)};dt.prototype.writeFloatBE=function(e,t,n){return Kae(this,e,t,!1,n)};function Qae(r,e,t,n,a){return e=+e,t=t>>>0,a||Jae(r,e,t,8,17976931348623157e292,-17976931348623157e292),B1.write(r,e,t,n,52,8),t+8}dt.prototype.writeDoubleLE=function(e,t,n){return Qae(this,e,t,!0,n)};dt.prototype.writeDoubleBE=function(e,t,n){return Qae(this,e,t,!1,n)};dt.prototype.copy=function(e,t,n,a){if(!dt.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),!a&&a!==0&&(a=this.length),t>=e.length&&(t=e.length),t||(t=0),a>0&&a=this.length)throw new RangeError("Index out of range");if(a<0)throw new RangeError("sourceEnd out of bounds");a>this.length&&(a=this.length),e.length-t>>0,n=n===void 0?this.length:n>>>0,e||(e=0);var s;if(typeof e=="number")for(s=t;s55295&&t<57344){if(!a){if(t>56319){(e-=3)>-1&&i.push(239,191,189);continue}else if(s+1===n){(e-=3)>-1&&i.push(239,191,189);continue}a=t;continue}if(t<56320){(e-=3)>-1&&i.push(239,191,189),a=t;continue}t=(a-55296<<10|t-56320)+65536}else a&&(e-=3)>-1&&i.push(239,191,189);if(a=null,t<128){if((e-=1)<0)break;i.push(t)}else if(t<2048){if((e-=2)<0)break;i.push(t>>6|192,t&63|128)}else if(t<65536){if((e-=3)<0)break;i.push(t>>12|224,t>>6&63|128,t&63|128)}else if(t<1114112){if((e-=4)<0)break;i.push(t>>18|240,t>>12&63|128,t>>6&63|128,t&63|128)}else throw new Error("Invalid code point")}return i}function Ypt(r){for(var e=[],t=0;t>8,a=t%256,i.push(a),i.push(n);return i}function Xae(r){return Iq.toByteArray(Xpt(r))}function kE(r,e,t,n){for(var a=0;a=e.length||a>=r.length);++a)e[a+t]=r[a];return a}function Up(r,e){return r instanceof e||r!=null&&r.constructor!=null&&r.constructor.name!=null&&r.constructor.name===e.name}function Bq(r){return r!==r}var eht=function(){for(var r="0123456789abcdef",e=new Array(256),t=0;t<16;++t)for(var n=t*16,a=0;a<16;++a)e[n+a]=r[t]+r[a];return e}()});var rie=O((DDr,tie)=>{x();T();var Vi=tie.exports={},Wp,jp;function qq(){throw new Error("setTimeout has not been defined")}function Dq(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?Wp=setTimeout:Wp=qq}catch{Wp=qq}try{typeof clearTimeout=="function"?jp=clearTimeout:jp=Dq}catch{jp=Dq}})();function Yae(r){if(Wp===setTimeout)return setTimeout(r,0);if((Wp===qq||!Wp)&&setTimeout)return Wp=setTimeout,setTimeout(r,0);try{return Wp(r,0)}catch{try{return Wp.call(null,r,0)}catch{return Wp.call(this,r,0)}}}function tht(r){if(jp===clearTimeout)return clearTimeout(r);if((jp===Dq||!jp)&&clearTimeout)return jp=clearTimeout,clearTimeout(r);try{return jp(r)}catch{try{return jp.call(null,r)}catch{return jp.call(this,r)}}}var uf=[],D1=!1,Vy,SE=-1;function rht(){!D1||!Vy||(D1=!1,Vy.length?uf=Vy.concat(uf):SE=-1,uf.length&&$ae())}function $ae(){if(!D1){var r=Yae(rht);D1=!0;for(var e=uf.length;e;){for(Vy=uf,uf=[];++SE1)for(var t=1;t{P=cr($i()),N=cr(rie()),nht=function(r){function e(){var n=this||self;return delete r.prototype.__magic__,n}if(typeof globalThis=="object")return globalThis;if(this)return e();r.defineProperty(r.prototype,"__magic__",{configurable:!0,get:e});var t=__magic__;return t}(Object),I=nht});var Fq=O(nie=>{"use strict";x();T();function aht(r,e){if(typeof r!="object"||r===null)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var n=t.call(r,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}function iht(r){var e=aht(r,"string");return typeof e=="symbol"?e:String(e)}function sht(r,e,t){return e=iht(e),e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}nie._defineProperty=sht});var Xr=O((aie,Uq)=>{x();T();(function(r,e){"use strict";function t(y,h){if(!y)throw new Error(h||"Assertion failed")}function n(y,h){y.super_=h;var v=function(){};v.prototype=h.prototype,y.prototype=new v,y.prototype.constructor=y}function a(y,h,v){if(a.isBN(y))return y;this.negative=0,this.words=null,this.length=0,this.red=null,y!==null&&((h==="le"||h==="be")&&(v=h,h=10),this._init(y||0,h||10,v||"be"))}typeof r=="object"?r.exports=a:e.BN=a,a.BN=a,a.wordSize=26;var i;try{typeof window<"u"&&typeof window.Buffer<"u"?i=window.Buffer:i=$i().Buffer}catch{}a.isBN=function(h){return h instanceof a?!0:h!==null&&typeof h=="object"&&h.constructor.wordSize===a.wordSize&&Array.isArray(h.words)},a.max=function(h,v){return h.cmp(v)>0?h:v},a.min=function(h,v){return h.cmp(v)<0?h:v},a.prototype._init=function(h,v,_){if(typeof h=="number")return this._initNumber(h,v,_);if(typeof h=="object")return this._initArray(h,v,_);v==="hex"&&(v=16),t(v===(v|0)&&v>=2&&v<=36),h=h.toString().replace(/\s+/g,"");var C=0;h[0]==="-"&&(C++,this.negative=1),C=0;C-=3)u=h[C]|h[C-1]<<8|h[C-2]<<16,this.words[m]|=u<>>26-b&67108863,b+=24,b>=26&&(b-=26,m++);else if(_==="le")for(C=0,m=0;C>>26-b&67108863,b+=24,b>=26&&(b-=26,m++);return this._strip()};function s(y,h){var v=y.charCodeAt(h);if(v>=48&&v<=57)return v-48;if(v>=65&&v<=70)return v-55;if(v>=97&&v<=102)return v-87;t(!1,"Invalid character in "+y)}function c(y,h,v){var _=s(y,v);return v-1>=h&&(_|=s(y,v-1)<<4),_}a.prototype._parseHex=function(h,v,_){this.length=Math.ceil((h.length-v)/6),this.words=new Array(this.length);for(var C=0;C=v;C-=2)b=c(h,v,C)<=18?(m-=18,u+=1,this.words[u]|=b>>>26):m+=8;else{var R=h.length-v;for(C=R%2===0?v+1:v;C=18?(m-=18,u+=1,this.words[u]|=b>>>26):m+=8}this._strip()};function l(y,h,v,_){for(var C=0,m=0,u=Math.min(y.length,v),b=h;b=49?m=R-49+10:R>=17?m=R-17+10:m=R,t(R>=0&&m<_,"Invalid character"),C+=m}return C}a.prototype._parseBase=function(h,v,_){this.words=[0],this.length=1;for(var C=0,m=1;m<=67108863;m*=v)C++;C--,m=m/v|0;for(var u=h.length-_,b=u%C,R=Math.min(u,u-b)+_,S=0,B=_;B1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},a.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},typeof Symbol<"u"&&typeof Symbol.for=="function")try{a.prototype[Symbol.for("nodejs.util.inspect.custom")]=f}catch{a.prototype.inspect=f}else a.prototype.inspect=f;function f(){return(this.red?""}var w=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],E=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],k=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];a.prototype.toString=function(h,v){h=h||10,v=v|0||1;var _;if(h===16||h==="hex"){_="";for(var C=0,m=0,u=0;u>>24-C&16777215,C+=2,C>=26&&(C-=26,u--),m!==0||u!==this.length-1?_=w[6-R.length]+R+_:_=R+_}for(m!==0&&(_=m.toString(16)+_);_.length%v!==0;)_="0"+_;return this.negative!==0&&(_="-"+_),_}if(h===(h|0)&&h>=2&&h<=36){var S=E[h],B=k[h];_="";var Z=this.clone();for(Z.negative=0;!Z.isZero();){var W=Z.modrn(B).toString(h);Z=Z.idivn(B),Z.isZero()?_=W+_:_=w[S-W.length]+W+_}for(this.isZero()&&(_="0"+_);_.length%v!==0;)_="0"+_;return this.negative!==0&&(_="-"+_),_}t(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var h=this.words[0];return this.length===2?h+=this.words[1]*67108864:this.length===3&&this.words[2]===1?h+=4503599627370496+this.words[1]*67108864:this.length>2&&t(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-h:h},a.prototype.toJSON=function(){return this.toString(16,2)},i&&(a.prototype.toBuffer=function(h,v){return this.toArrayLike(i,h,v)}),a.prototype.toArray=function(h,v){return this.toArrayLike(Array,h,v)};var A=function(h,v){return h.allocUnsafe?h.allocUnsafe(v):new h(v)};a.prototype.toArrayLike=function(h,v,_){this._strip();var C=this.byteLength(),m=_||Math.max(1,C);t(C<=m,"byte array longer than desired length"),t(m>0,"Requested array length <= 0");var u=A(h,m),b=v==="le"?"LE":"BE";return this["_toArrayLike"+b](u,C),u},a.prototype._toArrayLikeLE=function(h,v){for(var _=0,C=0,m=0,u=0;m>8&255),_>16&255),u===6?(_>24&255),C=0,u=0):(C=b>>>24,u+=2)}if(_=0&&(h[_--]=b>>8&255),_>=0&&(h[_--]=b>>16&255),u===6?(_>=0&&(h[_--]=b>>24&255),C=0,u=0):(C=b>>>24,u+=2)}if(_>=0)for(h[_--]=C;_>=0;)h[_--]=0},Math.clz32?a.prototype._countBits=function(h){return 32-Math.clz32(h)}:a.prototype._countBits=function(h){var v=h,_=0;return v>=4096&&(_+=13,v>>>=13),v>=64&&(_+=7,v>>>=7),v>=8&&(_+=4,v>>>=4),v>=2&&(_+=2,v>>>=2),_+v},a.prototype._zeroBits=function(h){if(h===0)return 26;var v=h,_=0;return(v&8191)===0&&(_+=13,v>>>=13),(v&127)===0&&(_+=7,v>>>=7),(v&15)===0&&(_+=4,v>>>=4),(v&3)===0&&(_+=2,v>>>=2),(v&1)===0&&_++,_},a.prototype.bitLength=function(){var h=this.words[this.length-1],v=this._countBits(h);return(this.length-1)*26+v};function L(y){for(var h=new Array(y.bitLength()),v=0;v>>C&1}return h}a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var h=0,v=0;vh.length?this.clone().ior(h):h.clone().ior(this)},a.prototype.uor=function(h){return this.length>h.length?this.clone().iuor(h):h.clone().iuor(this)},a.prototype.iuand=function(h){var v;this.length>h.length?v=h:v=this;for(var _=0;_h.length?this.clone().iand(h):h.clone().iand(this)},a.prototype.uand=function(h){return this.length>h.length?this.clone().iuand(h):h.clone().iuand(this)},a.prototype.iuxor=function(h){var v,_;this.length>h.length?(v=this,_=h):(v=h,_=this);for(var C=0;C<_.length;C++)this.words[C]=v.words[C]^_.words[C];if(this!==v)for(;Ch.length?this.clone().ixor(h):h.clone().ixor(this)},a.prototype.uxor=function(h){return this.length>h.length?this.clone().iuxor(h):h.clone().iuxor(this)},a.prototype.inotn=function(h){t(typeof h=="number"&&h>=0);var v=Math.ceil(h/26)|0,_=h%26;this._expand(v),_>0&&v--;for(var C=0;C0&&(this.words[C]=~this.words[C]&67108863>>26-_),this._strip()},a.prototype.notn=function(h){return this.clone().inotn(h)},a.prototype.setn=function(h,v){t(typeof h=="number"&&h>=0);var _=h/26|0,C=h%26;return this._expand(_+1),v?this.words[_]=this.words[_]|1<h.length?(_=this,C=h):(_=h,C=this);for(var m=0,u=0;u>>26;for(;m!==0&&u<_.length;u++)v=(_.words[u]|0)+m,this.words[u]=v&67108863,m=v>>>26;if(this.length=_.length,m!==0)this.words[this.length]=m,this.length++;else if(_!==this)for(;u<_.length;u++)this.words[u]=_.words[u];return this},a.prototype.add=function(h){var v;return h.negative!==0&&this.negative===0?(h.negative=0,v=this.sub(h),h.negative^=1,v):h.negative===0&&this.negative!==0?(this.negative=0,v=h.sub(this),this.negative=1,v):this.length>h.length?this.clone().iadd(h):h.clone().iadd(this)},a.prototype.isub=function(h){if(h.negative!==0){h.negative=0;var v=this.iadd(h);return h.negative=1,v._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(h),this.negative=1,this._normSign();var _=this.cmp(h);if(_===0)return this.negative=0,this.length=1,this.words[0]=0,this;var C,m;_>0?(C=this,m=h):(C=h,m=this);for(var u=0,b=0;b>26,this.words[b]=v&67108863;for(;u!==0&&b>26,this.words[b]=v&67108863;if(u===0&&b>>26,Z=R&67108863,W=Math.min(S,h.length-1),X=Math.max(0,S-y.length+1);X<=W;X++){var de=S-X|0;C=y.words[de]|0,m=h.words[X]|0,u=C*m+Z,B+=u/67108864|0,Z=u&67108863}v.words[S]=Z|0,R=B|0}return R!==0?v.words[S]=R|0:v.length--,v._strip()}var U=function(h,v,_){var C=h.words,m=v.words,u=_.words,b=0,R,S,B,Z=C[0]|0,W=Z&8191,X=Z>>>13,de=C[1]|0,ne=de&8191,pe=de>>>13,pt=C[2]|0,fe=pt&8191,be=pt>>>13,Tt=C[3]|0,we=Tt&8191,Oe=Tt>>>13,Pt=C[4]|0,Be=Pt&8191,ze=Pt>>>13,At=C[5]|0,Me=At&8191,Ve=At>>>13,St=C[6]|0,Ie=St&8191,Ze=St>>>13,Ut=C[7]|0,qe=Ut&8191,Xe=Ut>>>13,Ht=C[8]|0,Ae=Ht&8191,Ke=Ht>>>13,Gt=C[9]|0,Pe=Gt&8191,Qe=Gt>>>13,Zt=m[0]|0,Re=Zt&8191,Ye=Zt>>>13,Jt=m[1]|0,Ne=Jt&8191,$e=Jt>>>13,Vt=m[2]|0,Se=Vt&8191,et=Vt>>>13,Rt=m[3]|0,Le=Rt&8191,tt=Rt>>>13,Kt=m[4]|0,De=Kt&8191,rt=Kt>>>13,Qt=m[5]|0,ke=Qt&8191,Je=Qt>>>13,Xt=m[6]|0,Ue=Xt&8191,st=Xt>>>13,rr=m[7]|0,We=rr&8191,nt=rr>>>13,ir=m[8]|0,je=ir&8191,at=ir>>>13,Lr=m[9]|0,Wt=Lr&8191,jt=Lr>>>13;_.negative=h.negative^v.negative,_.length=19,R=Math.imul(W,Re),S=Math.imul(W,Ye),S=S+Math.imul(X,Re)|0,B=Math.imul(X,Ye);var Er=(b+R|0)+((S&8191)<<13)|0;b=(B+(S>>>13)|0)+(Er>>>26)|0,Er&=67108863,R=Math.imul(ne,Re),S=Math.imul(ne,Ye),S=S+Math.imul(pe,Re)|0,B=Math.imul(pe,Ye),R=R+Math.imul(W,Ne)|0,S=S+Math.imul(W,$e)|0,S=S+Math.imul(X,Ne)|0,B=B+Math.imul(X,$e)|0;var kr=(b+R|0)+((S&8191)<<13)|0;b=(B+(S>>>13)|0)+(kr>>>26)|0,kr&=67108863,R=Math.imul(fe,Re),S=Math.imul(fe,Ye),S=S+Math.imul(be,Re)|0,B=Math.imul(be,Ye),R=R+Math.imul(ne,Ne)|0,S=S+Math.imul(ne,$e)|0,S=S+Math.imul(pe,Ne)|0,B=B+Math.imul(pe,$e)|0,R=R+Math.imul(W,Se)|0,S=S+Math.imul(W,et)|0,S=S+Math.imul(X,Se)|0,B=B+Math.imul(X,et)|0;var Sr=(b+R|0)+((S&8191)<<13)|0;b=(B+(S>>>13)|0)+(Sr>>>26)|0,Sr&=67108863,R=Math.imul(we,Re),S=Math.imul(we,Ye),S=S+Math.imul(Oe,Re)|0,B=Math.imul(Oe,Ye),R=R+Math.imul(fe,Ne)|0,S=S+Math.imul(fe,$e)|0,S=S+Math.imul(be,Ne)|0,B=B+Math.imul(be,$e)|0,R=R+Math.imul(ne,Se)|0,S=S+Math.imul(ne,et)|0,S=S+Math.imul(pe,Se)|0,B=B+Math.imul(pe,et)|0,R=R+Math.imul(W,Le)|0,S=S+Math.imul(W,tt)|0,S=S+Math.imul(X,Le)|0,B=B+Math.imul(X,tt)|0;var Ar=(b+R|0)+((S&8191)<<13)|0;b=(B+(S>>>13)|0)+(Ar>>>26)|0,Ar&=67108863,R=Math.imul(Be,Re),S=Math.imul(Be,Ye),S=S+Math.imul(ze,Re)|0,B=Math.imul(ze,Ye),R=R+Math.imul(we,Ne)|0,S=S+Math.imul(we,$e)|0,S=S+Math.imul(Oe,Ne)|0,B=B+Math.imul(Oe,$e)|0,R=R+Math.imul(fe,Se)|0,S=S+Math.imul(fe,et)|0,S=S+Math.imul(be,Se)|0,B=B+Math.imul(be,et)|0,R=R+Math.imul(ne,Le)|0,S=S+Math.imul(ne,tt)|0,S=S+Math.imul(pe,Le)|0,B=B+Math.imul(pe,tt)|0,R=R+Math.imul(W,De)|0,S=S+Math.imul(W,rt)|0,S=S+Math.imul(X,De)|0,B=B+Math.imul(X,rt)|0;var Mr=(b+R|0)+((S&8191)<<13)|0;b=(B+(S>>>13)|0)+(Mr>>>26)|0,Mr&=67108863,R=Math.imul(Me,Re),S=Math.imul(Me,Ye),S=S+Math.imul(Ve,Re)|0,B=Math.imul(Ve,Ye),R=R+Math.imul(Be,Ne)|0,S=S+Math.imul(Be,$e)|0,S=S+Math.imul(ze,Ne)|0,B=B+Math.imul(ze,$e)|0,R=R+Math.imul(we,Se)|0,S=S+Math.imul(we,et)|0,S=S+Math.imul(Oe,Se)|0,B=B+Math.imul(Oe,et)|0,R=R+Math.imul(fe,Le)|0,S=S+Math.imul(fe,tt)|0,S=S+Math.imul(be,Le)|0,B=B+Math.imul(be,tt)|0,R=R+Math.imul(ne,De)|0,S=S+Math.imul(ne,rt)|0,S=S+Math.imul(pe,De)|0,B=B+Math.imul(pe,rt)|0,R=R+Math.imul(W,ke)|0,S=S+Math.imul(W,Je)|0,S=S+Math.imul(X,ke)|0,B=B+Math.imul(X,Je)|0;var Kr=(b+R|0)+((S&8191)<<13)|0;b=(B+(S>>>13)|0)+(Kr>>>26)|0,Kr&=67108863,R=Math.imul(Ie,Re),S=Math.imul(Ie,Ye),S=S+Math.imul(Ze,Re)|0,B=Math.imul(Ze,Ye),R=R+Math.imul(Me,Ne)|0,S=S+Math.imul(Me,$e)|0,S=S+Math.imul(Ve,Ne)|0,B=B+Math.imul(Ve,$e)|0,R=R+Math.imul(Be,Se)|0,S=S+Math.imul(Be,et)|0,S=S+Math.imul(ze,Se)|0,B=B+Math.imul(ze,et)|0,R=R+Math.imul(we,Le)|0,S=S+Math.imul(we,tt)|0,S=S+Math.imul(Oe,Le)|0,B=B+Math.imul(Oe,tt)|0,R=R+Math.imul(fe,De)|0,S=S+Math.imul(fe,rt)|0,S=S+Math.imul(be,De)|0,B=B+Math.imul(be,rt)|0,R=R+Math.imul(ne,ke)|0,S=S+Math.imul(ne,Je)|0,S=S+Math.imul(pe,ke)|0,B=B+Math.imul(pe,Je)|0,R=R+Math.imul(W,Ue)|0,S=S+Math.imul(W,st)|0,S=S+Math.imul(X,Ue)|0,B=B+Math.imul(X,st)|0;var Qr=(b+R|0)+((S&8191)<<13)|0;b=(B+(S>>>13)|0)+(Qr>>>26)|0,Qr&=67108863,R=Math.imul(qe,Re),S=Math.imul(qe,Ye),S=S+Math.imul(Xe,Re)|0,B=Math.imul(Xe,Ye),R=R+Math.imul(Ie,Ne)|0,S=S+Math.imul(Ie,$e)|0,S=S+Math.imul(Ze,Ne)|0,B=B+Math.imul(Ze,$e)|0,R=R+Math.imul(Me,Se)|0,S=S+Math.imul(Me,et)|0,S=S+Math.imul(Ve,Se)|0,B=B+Math.imul(Ve,et)|0,R=R+Math.imul(Be,Le)|0,S=S+Math.imul(Be,tt)|0,S=S+Math.imul(ze,Le)|0,B=B+Math.imul(ze,tt)|0,R=R+Math.imul(we,De)|0,S=S+Math.imul(we,rt)|0,S=S+Math.imul(Oe,De)|0,B=B+Math.imul(Oe,rt)|0,R=R+Math.imul(fe,ke)|0,S=S+Math.imul(fe,Je)|0,S=S+Math.imul(be,ke)|0,B=B+Math.imul(be,Je)|0,R=R+Math.imul(ne,Ue)|0,S=S+Math.imul(ne,st)|0,S=S+Math.imul(pe,Ue)|0,B=B+Math.imul(pe,st)|0,R=R+Math.imul(W,We)|0,S=S+Math.imul(W,nt)|0,S=S+Math.imul(X,We)|0,B=B+Math.imul(X,nt)|0;var Vr=(b+R|0)+((S&8191)<<13)|0;b=(B+(S>>>13)|0)+(Vr>>>26)|0,Vr&=67108863,R=Math.imul(Ae,Re),S=Math.imul(Ae,Ye),S=S+Math.imul(Ke,Re)|0,B=Math.imul(Ke,Ye),R=R+Math.imul(qe,Ne)|0,S=S+Math.imul(qe,$e)|0,S=S+Math.imul(Xe,Ne)|0,B=B+Math.imul(Xe,$e)|0,R=R+Math.imul(Ie,Se)|0,S=S+Math.imul(Ie,et)|0,S=S+Math.imul(Ze,Se)|0,B=B+Math.imul(Ze,et)|0,R=R+Math.imul(Me,Le)|0,S=S+Math.imul(Me,tt)|0,S=S+Math.imul(Ve,Le)|0,B=B+Math.imul(Ve,tt)|0,R=R+Math.imul(Be,De)|0,S=S+Math.imul(Be,rt)|0,S=S+Math.imul(ze,De)|0,B=B+Math.imul(ze,rt)|0,R=R+Math.imul(we,ke)|0,S=S+Math.imul(we,Je)|0,S=S+Math.imul(Oe,ke)|0,B=B+Math.imul(Oe,Je)|0,R=R+Math.imul(fe,Ue)|0,S=S+Math.imul(fe,st)|0,S=S+Math.imul(be,Ue)|0,B=B+Math.imul(be,st)|0,R=R+Math.imul(ne,We)|0,S=S+Math.imul(ne,nt)|0,S=S+Math.imul(pe,We)|0,B=B+Math.imul(pe,nt)|0,R=R+Math.imul(W,je)|0,S=S+Math.imul(W,at)|0,S=S+Math.imul(X,je)|0,B=B+Math.imul(X,at)|0;var Br=(b+R|0)+((S&8191)<<13)|0;b=(B+(S>>>13)|0)+(Br>>>26)|0,Br&=67108863,R=Math.imul(Pe,Re),S=Math.imul(Pe,Ye),S=S+Math.imul(Qe,Re)|0,B=Math.imul(Qe,Ye),R=R+Math.imul(Ae,Ne)|0,S=S+Math.imul(Ae,$e)|0,S=S+Math.imul(Ke,Ne)|0,B=B+Math.imul(Ke,$e)|0,R=R+Math.imul(qe,Se)|0,S=S+Math.imul(qe,et)|0,S=S+Math.imul(Xe,Se)|0,B=B+Math.imul(Xe,et)|0,R=R+Math.imul(Ie,Le)|0,S=S+Math.imul(Ie,tt)|0,S=S+Math.imul(Ze,Le)|0,B=B+Math.imul(Ze,tt)|0,R=R+Math.imul(Me,De)|0,S=S+Math.imul(Me,rt)|0,S=S+Math.imul(Ve,De)|0,B=B+Math.imul(Ve,rt)|0,R=R+Math.imul(Be,ke)|0,S=S+Math.imul(Be,Je)|0,S=S+Math.imul(ze,ke)|0,B=B+Math.imul(ze,Je)|0,R=R+Math.imul(we,Ue)|0,S=S+Math.imul(we,st)|0,S=S+Math.imul(Oe,Ue)|0,B=B+Math.imul(Oe,st)|0,R=R+Math.imul(fe,We)|0,S=S+Math.imul(fe,nt)|0,S=S+Math.imul(be,We)|0,B=B+Math.imul(be,nt)|0,R=R+Math.imul(ne,je)|0,S=S+Math.imul(ne,at)|0,S=S+Math.imul(pe,je)|0,B=B+Math.imul(pe,at)|0,R=R+Math.imul(W,Wt)|0,S=S+Math.imul(W,jt)|0,S=S+Math.imul(X,Wt)|0,B=B+Math.imul(X,jt)|0;var Fr=(b+R|0)+((S&8191)<<13)|0;b=(B+(S>>>13)|0)+(Fr>>>26)|0,Fr&=67108863,R=Math.imul(Pe,Ne),S=Math.imul(Pe,$e),S=S+Math.imul(Qe,Ne)|0,B=Math.imul(Qe,$e),R=R+Math.imul(Ae,Se)|0,S=S+Math.imul(Ae,et)|0,S=S+Math.imul(Ke,Se)|0,B=B+Math.imul(Ke,et)|0,R=R+Math.imul(qe,Le)|0,S=S+Math.imul(qe,tt)|0,S=S+Math.imul(Xe,Le)|0,B=B+Math.imul(Xe,tt)|0,R=R+Math.imul(Ie,De)|0,S=S+Math.imul(Ie,rt)|0,S=S+Math.imul(Ze,De)|0,B=B+Math.imul(Ze,rt)|0,R=R+Math.imul(Me,ke)|0,S=S+Math.imul(Me,Je)|0,S=S+Math.imul(Ve,ke)|0,B=B+Math.imul(Ve,Je)|0,R=R+Math.imul(Be,Ue)|0,S=S+Math.imul(Be,st)|0,S=S+Math.imul(ze,Ue)|0,B=B+Math.imul(ze,st)|0,R=R+Math.imul(we,We)|0,S=S+Math.imul(we,nt)|0,S=S+Math.imul(Oe,We)|0,B=B+Math.imul(Oe,nt)|0,R=R+Math.imul(fe,je)|0,S=S+Math.imul(fe,at)|0,S=S+Math.imul(be,je)|0,B=B+Math.imul(be,at)|0,R=R+Math.imul(ne,Wt)|0,S=S+Math.imul(ne,jt)|0,S=S+Math.imul(pe,Wt)|0,B=B+Math.imul(pe,jt)|0;var hr=(b+R|0)+((S&8191)<<13)|0;b=(B+(S>>>13)|0)+(hr>>>26)|0,hr&=67108863,R=Math.imul(Pe,Se),S=Math.imul(Pe,et),S=S+Math.imul(Qe,Se)|0,B=Math.imul(Qe,et),R=R+Math.imul(Ae,Le)|0,S=S+Math.imul(Ae,tt)|0,S=S+Math.imul(Ke,Le)|0,B=B+Math.imul(Ke,tt)|0,R=R+Math.imul(qe,De)|0,S=S+Math.imul(qe,rt)|0,S=S+Math.imul(Xe,De)|0,B=B+Math.imul(Xe,rt)|0,R=R+Math.imul(Ie,ke)|0,S=S+Math.imul(Ie,Je)|0,S=S+Math.imul(Ze,ke)|0,B=B+Math.imul(Ze,Je)|0,R=R+Math.imul(Me,Ue)|0,S=S+Math.imul(Me,st)|0,S=S+Math.imul(Ve,Ue)|0,B=B+Math.imul(Ve,st)|0,R=R+Math.imul(Be,We)|0,S=S+Math.imul(Be,nt)|0,S=S+Math.imul(ze,We)|0,B=B+Math.imul(ze,nt)|0,R=R+Math.imul(we,je)|0,S=S+Math.imul(we,at)|0,S=S+Math.imul(Oe,je)|0,B=B+Math.imul(Oe,at)|0,R=R+Math.imul(fe,Wt)|0,S=S+Math.imul(fe,jt)|0,S=S+Math.imul(be,Wt)|0,B=B+Math.imul(be,jt)|0;var Gr=(b+R|0)+((S&8191)<<13)|0;b=(B+(S>>>13)|0)+(Gr>>>26)|0,Gr&=67108863,R=Math.imul(Pe,Le),S=Math.imul(Pe,tt),S=S+Math.imul(Qe,Le)|0,B=Math.imul(Qe,tt),R=R+Math.imul(Ae,De)|0,S=S+Math.imul(Ae,rt)|0,S=S+Math.imul(Ke,De)|0,B=B+Math.imul(Ke,rt)|0,R=R+Math.imul(qe,ke)|0,S=S+Math.imul(qe,Je)|0,S=S+Math.imul(Xe,ke)|0,B=B+Math.imul(Xe,Je)|0,R=R+Math.imul(Ie,Ue)|0,S=S+Math.imul(Ie,st)|0,S=S+Math.imul(Ze,Ue)|0,B=B+Math.imul(Ze,st)|0,R=R+Math.imul(Me,We)|0,S=S+Math.imul(Me,nt)|0,S=S+Math.imul(Ve,We)|0,B=B+Math.imul(Ve,nt)|0,R=R+Math.imul(Be,je)|0,S=S+Math.imul(Be,at)|0,S=S+Math.imul(ze,je)|0,B=B+Math.imul(ze,at)|0,R=R+Math.imul(we,Wt)|0,S=S+Math.imul(we,jt)|0,S=S+Math.imul(Oe,Wt)|0,B=B+Math.imul(Oe,jt)|0;var gr=(b+R|0)+((S&8191)<<13)|0;b=(B+(S>>>13)|0)+(gr>>>26)|0,gr&=67108863,R=Math.imul(Pe,De),S=Math.imul(Pe,rt),S=S+Math.imul(Qe,De)|0,B=Math.imul(Qe,rt),R=R+Math.imul(Ae,ke)|0,S=S+Math.imul(Ae,Je)|0,S=S+Math.imul(Ke,ke)|0,B=B+Math.imul(Ke,Je)|0,R=R+Math.imul(qe,Ue)|0,S=S+Math.imul(qe,st)|0,S=S+Math.imul(Xe,Ue)|0,B=B+Math.imul(Xe,st)|0,R=R+Math.imul(Ie,We)|0,S=S+Math.imul(Ie,nt)|0,S=S+Math.imul(Ze,We)|0,B=B+Math.imul(Ze,nt)|0,R=R+Math.imul(Me,je)|0,S=S+Math.imul(Me,at)|0,S=S+Math.imul(Ve,je)|0,B=B+Math.imul(Ve,at)|0,R=R+Math.imul(Be,Wt)|0,S=S+Math.imul(Be,jt)|0,S=S+Math.imul(ze,Wt)|0,B=B+Math.imul(ze,jt)|0;var Ur=(b+R|0)+((S&8191)<<13)|0;b=(B+(S>>>13)|0)+(Ur>>>26)|0,Ur&=67108863,R=Math.imul(Pe,ke),S=Math.imul(Pe,Je),S=S+Math.imul(Qe,ke)|0,B=Math.imul(Qe,Je),R=R+Math.imul(Ae,Ue)|0,S=S+Math.imul(Ae,st)|0,S=S+Math.imul(Ke,Ue)|0,B=B+Math.imul(Ke,st)|0,R=R+Math.imul(qe,We)|0,S=S+Math.imul(qe,nt)|0,S=S+Math.imul(Xe,We)|0,B=B+Math.imul(Xe,nt)|0,R=R+Math.imul(Ie,je)|0,S=S+Math.imul(Ie,at)|0,S=S+Math.imul(Ze,je)|0,B=B+Math.imul(Ze,at)|0,R=R+Math.imul(Me,Wt)|0,S=S+Math.imul(Me,jt)|0,S=S+Math.imul(Ve,Wt)|0,B=B+Math.imul(Ve,jt)|0;var tn=(b+R|0)+((S&8191)<<13)|0;b=(B+(S>>>13)|0)+(tn>>>26)|0,tn&=67108863,R=Math.imul(Pe,Ue),S=Math.imul(Pe,st),S=S+Math.imul(Qe,Ue)|0,B=Math.imul(Qe,st),R=R+Math.imul(Ae,We)|0,S=S+Math.imul(Ae,nt)|0,S=S+Math.imul(Ke,We)|0,B=B+Math.imul(Ke,nt)|0,R=R+Math.imul(qe,je)|0,S=S+Math.imul(qe,at)|0,S=S+Math.imul(Xe,je)|0,B=B+Math.imul(Xe,at)|0,R=R+Math.imul(Ie,Wt)|0,S=S+Math.imul(Ie,jt)|0,S=S+Math.imul(Ze,Wt)|0,B=B+Math.imul(Ze,jt)|0;var An=(b+R|0)+((S&8191)<<13)|0;b=(B+(S>>>13)|0)+(An>>>26)|0,An&=67108863,R=Math.imul(Pe,We),S=Math.imul(Pe,nt),S=S+Math.imul(Qe,We)|0,B=Math.imul(Qe,nt),R=R+Math.imul(Ae,je)|0,S=S+Math.imul(Ae,at)|0,S=S+Math.imul(Ke,je)|0,B=B+Math.imul(Ke,at)|0,R=R+Math.imul(qe,Wt)|0,S=S+Math.imul(qe,jt)|0,S=S+Math.imul(Xe,Wt)|0,B=B+Math.imul(Xe,jt)|0;var sf=(b+R|0)+((S&8191)<<13)|0;b=(B+(S>>>13)|0)+(sf>>>26)|0,sf&=67108863,R=Math.imul(Pe,je),S=Math.imul(Pe,at),S=S+Math.imul(Qe,je)|0,B=Math.imul(Qe,at),R=R+Math.imul(Ae,Wt)|0,S=S+Math.imul(Ae,jt)|0,S=S+Math.imul(Ke,Wt)|0,B=B+Math.imul(Ke,jt)|0;var Wy=(b+R|0)+((S&8191)<<13)|0;b=(B+(S>>>13)|0)+(Wy>>>26)|0,Wy&=67108863,R=Math.imul(Pe,Wt),S=Math.imul(Pe,jt),S=S+Math.imul(Qe,Wt)|0,B=Math.imul(Qe,jt);var of=(b+R|0)+((S&8191)<<13)|0;return b=(B+(S>>>13)|0)+(of>>>26)|0,of&=67108863,u[0]=Er,u[1]=kr,u[2]=Sr,u[3]=Ar,u[4]=Mr,u[5]=Kr,u[6]=Qr,u[7]=Vr,u[8]=Br,u[9]=Fr,u[10]=hr,u[11]=Gr,u[12]=gr,u[13]=Ur,u[14]=tn,u[15]=An,u[16]=sf,u[17]=Wy,u[18]=of,b!==0&&(u[19]=b,_.length++),_};Math.imul||(U=q);function j(y,h,v){v.negative=h.negative^y.negative,v.length=y.length+h.length;for(var _=0,C=0,m=0;m>>26)|0,C+=u>>>26,u&=67108863}v.words[m]=b,_=u,u=C}return _!==0?v.words[m]=_:v.length--,v._strip()}function H(y,h,v){return j(y,h,v)}a.prototype.mulTo=function(h,v){var _,C=this.length+h.length;return this.length===10&&h.length===10?_=U(this,h,v):C<63?_=q(this,h,v):C<1024?_=j(this,h,v):_=H(this,h,v),_};function G(y,h){this.x=y,this.y=h}G.prototype.makeRBT=function(h){for(var v=new Array(h),_=a.prototype._countBits(h)-1,C=0;C>=1;return C},G.prototype.permute=function(h,v,_,C,m,u){for(var b=0;b>>1)m++;return 1<>>13,_[2*u+1]=m&8191,m=m>>>13;for(u=2*v;u>=26,_+=m/67108864|0,_+=u>>>26,this.words[C]=u&67108863}return _!==0&&(this.words[C]=_,this.length++),v?this.ineg():this},a.prototype.muln=function(h){return this.clone().imuln(h)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(h){var v=L(h);if(v.length===0)return new a(1);for(var _=this,C=0;C=0);var v=h%26,_=(h-v)/26,C=67108863>>>26-v<<26-v,m;if(v!==0){var u=0;for(m=0;m>>26-v}u&&(this.words[m]=u,this.length++)}if(_!==0){for(m=this.length-1;m>=0;m--)this.words[m+_]=this.words[m];for(m=0;m<_;m++)this.words[m]=0;this.length+=_}return this._strip()},a.prototype.ishln=function(h){return t(this.negative===0),this.iushln(h)},a.prototype.iushrn=function(h,v,_){t(typeof h=="number"&&h>=0);var C;v?C=(v-v%26)/26:C=0;var m=h%26,u=Math.min((h-m)/26,this.length),b=67108863^67108863>>>m<u)for(this.length-=u,S=0;S=0&&(B!==0||S>=C);S--){var Z=this.words[S]|0;this.words[S]=B<<26-m|Z>>>m,B=Z&b}return R&&B!==0&&(R.words[R.length++]=B),this.length===0&&(this.words[0]=0,this.length=1),this._strip()},a.prototype.ishrn=function(h,v,_){return t(this.negative===0),this.iushrn(h,v,_)},a.prototype.shln=function(h){return this.clone().ishln(h)},a.prototype.ushln=function(h){return this.clone().iushln(h)},a.prototype.shrn=function(h){return this.clone().ishrn(h)},a.prototype.ushrn=function(h){return this.clone().iushrn(h)},a.prototype.testn=function(h){t(typeof h=="number"&&h>=0);var v=h%26,_=(h-v)/26,C=1<=0);var v=h%26,_=(h-v)/26;if(t(this.negative===0,"imaskn works only with positive numbers"),this.length<=_)return this;if(v!==0&&_++,this.length=Math.min(_,this.length),v!==0){var C=67108863^67108863>>>v<=67108864;v++)this.words[v]-=67108864,v===this.length-1?this.words[v+1]=1:this.words[v+1]++;return this.length=Math.max(this.length,v+1),this},a.prototype.isubn=function(h){if(t(typeof h=="number"),t(h<67108864),h<0)return this.iaddn(-h);if(this.negative!==0)return this.negative=0,this.iaddn(h),this.negative=1,this;if(this.words[0]-=h,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var v=0;v>26)-(R/67108864|0),this.words[m+_]=u&67108863}for(;m>26,this.words[m+_]=u&67108863;if(b===0)return this._strip();for(t(b===-1),b=0,m=0;m>26,this.words[m]=u&67108863;return this.negative=1,this._strip()},a.prototype._wordDiv=function(h,v){var _=this.length-h.length,C=this.clone(),m=h,u=m.words[m.length-1]|0,b=this._countBits(u);_=26-b,_!==0&&(m=m.ushln(_),C.iushln(_),u=m.words[m.length-1]|0);var R=C.length-m.length,S;if(v!=="mod"){S=new a(null),S.length=R+1,S.words=new Array(S.length);for(var B=0;B=0;W--){var X=(C.words[m.length+W]|0)*67108864+(C.words[m.length+W-1]|0);for(X=Math.min(X/u|0,67108863),C._ishlnsubmul(m,X,W);C.negative!==0;)X--,C.negative=0,C._ishlnsubmul(m,1,W),C.isZero()||(C.negative^=1);S&&(S.words[W]=X)}return S&&S._strip(),C._strip(),v!=="div"&&_!==0&&C.iushrn(_),{div:S||null,mod:C}},a.prototype.divmod=function(h,v,_){if(t(!h.isZero()),this.isZero())return{div:new a(0),mod:new a(0)};var C,m,u;return this.negative!==0&&h.negative===0?(u=this.neg().divmod(h,v),v!=="mod"&&(C=u.div.neg()),v!=="div"&&(m=u.mod.neg(),_&&m.negative!==0&&m.iadd(h)),{div:C,mod:m}):this.negative===0&&h.negative!==0?(u=this.divmod(h.neg(),v),v!=="mod"&&(C=u.div.neg()),{div:C,mod:u.mod}):(this.negative&h.negative)!==0?(u=this.neg().divmod(h.neg(),v),v!=="div"&&(m=u.mod.neg(),_&&m.negative!==0&&m.isub(h)),{div:u.div,mod:m}):h.length>this.length||this.cmp(h)<0?{div:new a(0),mod:this}:h.length===1?v==="div"?{div:this.divn(h.words[0]),mod:null}:v==="mod"?{div:null,mod:new a(this.modrn(h.words[0]))}:{div:this.divn(h.words[0]),mod:new a(this.modrn(h.words[0]))}:this._wordDiv(h,v)},a.prototype.div=function(h){return this.divmod(h,"div",!1).div},a.prototype.mod=function(h){return this.divmod(h,"mod",!1).mod},a.prototype.umod=function(h){return this.divmod(h,"mod",!0).mod},a.prototype.divRound=function(h){var v=this.divmod(h);if(v.mod.isZero())return v.div;var _=v.div.negative!==0?v.mod.isub(h):v.mod,C=h.ushrn(1),m=h.andln(1),u=_.cmp(C);return u<0||m===1&&u===0?v.div:v.div.negative!==0?v.div.isubn(1):v.div.iaddn(1)},a.prototype.modrn=function(h){var v=h<0;v&&(h=-h),t(h<=67108863);for(var _=(1<<26)%h,C=0,m=this.length-1;m>=0;m--)C=(_*C+(this.words[m]|0))%h;return v?-C:C},a.prototype.modn=function(h){return this.modrn(h)},a.prototype.idivn=function(h){var v=h<0;v&&(h=-h),t(h<=67108863);for(var _=0,C=this.length-1;C>=0;C--){var m=(this.words[C]|0)+_*67108864;this.words[C]=m/h|0,_=m%h}return this._strip(),v?this.ineg():this},a.prototype.divn=function(h){return this.clone().idivn(h)},a.prototype.egcd=function(h){t(h.negative===0),t(!h.isZero());var v=this,_=h.clone();v.negative!==0?v=v.umod(h):v=v.clone();for(var C=new a(1),m=new a(0),u=new a(0),b=new a(1),R=0;v.isEven()&&_.isEven();)v.iushrn(1),_.iushrn(1),++R;for(var S=_.clone(),B=v.clone();!v.isZero();){for(var Z=0,W=1;(v.words[0]&W)===0&&Z<26;++Z,W<<=1);if(Z>0)for(v.iushrn(Z);Z-- >0;)(C.isOdd()||m.isOdd())&&(C.iadd(S),m.isub(B)),C.iushrn(1),m.iushrn(1);for(var X=0,de=1;(_.words[0]&de)===0&&X<26;++X,de<<=1);if(X>0)for(_.iushrn(X);X-- >0;)(u.isOdd()||b.isOdd())&&(u.iadd(S),b.isub(B)),u.iushrn(1),b.iushrn(1);v.cmp(_)>=0?(v.isub(_),C.isub(u),m.isub(b)):(_.isub(v),u.isub(C),b.isub(m))}return{a:u,b,gcd:_.iushln(R)}},a.prototype._invmp=function(h){t(h.negative===0),t(!h.isZero());var v=this,_=h.clone();v.negative!==0?v=v.umod(h):v=v.clone();for(var C=new a(1),m=new a(0),u=_.clone();v.cmpn(1)>0&&_.cmpn(1)>0;){for(var b=0,R=1;(v.words[0]&R)===0&&b<26;++b,R<<=1);if(b>0)for(v.iushrn(b);b-- >0;)C.isOdd()&&C.iadd(u),C.iushrn(1);for(var S=0,B=1;(_.words[0]&B)===0&&S<26;++S,B<<=1);if(S>0)for(_.iushrn(S);S-- >0;)m.isOdd()&&m.iadd(u),m.iushrn(1);v.cmp(_)>=0?(v.isub(_),C.isub(m)):(_.isub(v),m.isub(C))}var Z;return v.cmpn(1)===0?Z=C:Z=m,Z.cmpn(0)<0&&Z.iadd(h),Z},a.prototype.gcd=function(h){if(this.isZero())return h.abs();if(h.isZero())return this.abs();var v=this.clone(),_=h.clone();v.negative=0,_.negative=0;for(var C=0;v.isEven()&&_.isEven();C++)v.iushrn(1),_.iushrn(1);do{for(;v.isEven();)v.iushrn(1);for(;_.isEven();)_.iushrn(1);var m=v.cmp(_);if(m<0){var u=v;v=_,_=u}else if(m===0||_.cmpn(1)===0)break;v.isub(_)}while(!0);return _.iushln(C)},a.prototype.invm=function(h){return this.egcd(h).a.umod(h)},a.prototype.isEven=function(){return(this.words[0]&1)===0},a.prototype.isOdd=function(){return(this.words[0]&1)===1},a.prototype.andln=function(h){return this.words[0]&h},a.prototype.bincn=function(h){t(typeof h=="number");var v=h%26,_=(h-v)/26,C=1<>>26,b&=67108863,this.words[u]=b}return m!==0&&(this.words[u]=m,this.length++),this},a.prototype.isZero=function(){return this.length===1&&this.words[0]===0},a.prototype.cmpn=function(h){var v=h<0;if(this.negative!==0&&!v)return-1;if(this.negative===0&&v)return 1;this._strip();var _;if(this.length>1)_=1;else{v&&(h=-h),t(h<=67108863,"Number is too big");var C=this.words[0]|0;_=C===h?0:Ch.length)return 1;if(this.length=0;_--){var C=this.words[_]|0,m=h.words[_]|0;if(C!==m){Cm&&(v=1);break}}return v},a.prototype.gtn=function(h){return this.cmpn(h)===1},a.prototype.gt=function(h){return this.cmp(h)===1},a.prototype.gten=function(h){return this.cmpn(h)>=0},a.prototype.gte=function(h){return this.cmp(h)>=0},a.prototype.ltn=function(h){return this.cmpn(h)===-1},a.prototype.lt=function(h){return this.cmp(h)===-1},a.prototype.lten=function(h){return this.cmpn(h)<=0},a.prototype.lte=function(h){return this.cmp(h)<=0},a.prototype.eqn=function(h){return this.cmpn(h)===0},a.prototype.eq=function(h){return this.cmp(h)===0},a.red=function(h){return new o(h)},a.prototype.toRed=function(h){return t(!this.red,"Already a number in reduction context"),t(this.negative===0,"red works only with positives"),h.convertTo(this)._forceRed(h)},a.prototype.fromRed=function(){return t(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(h){return this.red=h,this},a.prototype.forceRed=function(h){return t(!this.red,"Already a number in reduction context"),this._forceRed(h)},a.prototype.redAdd=function(h){return t(this.red,"redAdd works only with red numbers"),this.red.add(this,h)},a.prototype.redIAdd=function(h){return t(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,h)},a.prototype.redSub=function(h){return t(this.red,"redSub works only with red numbers"),this.red.sub(this,h)},a.prototype.redISub=function(h){return t(this.red,"redISub works only with red numbers"),this.red.isub(this,h)},a.prototype.redShl=function(h){return t(this.red,"redShl works only with red numbers"),this.red.shl(this,h)},a.prototype.redMul=function(h){return t(this.red,"redMul works only with red numbers"),this.red._verify2(this,h),this.red.mul(this,h)},a.prototype.redIMul=function(h){return t(this.red,"redMul works only with red numbers"),this.red._verify2(this,h),this.red.imul(this,h)},a.prototype.redSqr=function(){return t(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return t(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return t(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return t(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return t(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(h){return t(this.red&&!h.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,h)};var te={k256:null,p224:null,p192:null,p25519:null};function K(y,h){this.name=y,this.p=new a(h,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}K.prototype._tmp=function(){var h=new a(null);return h.words=new Array(Math.ceil(this.n/13)),h},K.prototype.ireduce=function(h){var v=h,_;do this.split(v,this.tmp),v=this.imulK(v),v=v.iadd(this.tmp),_=v.bitLength();while(_>this.n);var C=_0?v.isub(this.p):v.strip!==void 0?v.strip():v._strip(),v},K.prototype.split=function(h,v){h.iushrn(this.n,0,v)},K.prototype.imulK=function(h){return h.imul(this.k)};function ae(){K.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}n(ae,K),ae.prototype.split=function(h,v){for(var _=4194303,C=Math.min(h.length,9),m=0;m>>22,u=b}u>>>=22,h.words[m-10]=u,u===0&&h.length>10?h.length-=10:h.length-=9},ae.prototype.imulK=function(h){h.words[h.length]=0,h.words[h.length+1]=0,h.length+=2;for(var v=0,_=0;_>>=26,h.words[_]=m,v=C}return v!==0&&(h.words[h.length++]=v),h},a._prime=function(h){if(te[h])return te[h];var v;if(h==="k256")v=new ae;else if(h==="p224")v=new J;else if(h==="p192")v=new V;else if(h==="p25519")v=new g;else throw new Error("Unknown prime "+h);return te[h]=v,v};function o(y){if(typeof y=="string"){var h=a._prime(y);this.m=h.p,this.prime=h}else t(y.gtn(1),"modulus must be greater than 1"),this.m=y,this.prime=null}o.prototype._verify1=function(h){t(h.negative===0,"red works only with positives"),t(h.red,"red works only with red numbers")},o.prototype._verify2=function(h,v){t((h.negative|v.negative)===0,"red works only with positives"),t(h.red&&h.red===v.red,"red works only with red numbers")},o.prototype.imod=function(h){return this.prime?this.prime.ireduce(h)._forceRed(this):(d(h,h.umod(this.m)._forceRed(this)),h)},o.prototype.neg=function(h){return h.isZero()?h.clone():this.m.sub(h)._forceRed(this)},o.prototype.add=function(h,v){this._verify2(h,v);var _=h.add(v);return _.cmp(this.m)>=0&&_.isub(this.m),_._forceRed(this)},o.prototype.iadd=function(h,v){this._verify2(h,v);var _=h.iadd(v);return _.cmp(this.m)>=0&&_.isub(this.m),_},o.prototype.sub=function(h,v){this._verify2(h,v);var _=h.sub(v);return _.cmpn(0)<0&&_.iadd(this.m),_._forceRed(this)},o.prototype.isub=function(h,v){this._verify2(h,v);var _=h.isub(v);return _.cmpn(0)<0&&_.iadd(this.m),_},o.prototype.shl=function(h,v){return this._verify1(h),this.imod(h.ushln(v))},o.prototype.imul=function(h,v){return this._verify2(h,v),this.imod(h.imul(v))},o.prototype.mul=function(h,v){return this._verify2(h,v),this.imod(h.mul(v))},o.prototype.isqr=function(h){return this.imul(h,h.clone())},o.prototype.sqr=function(h){return this.mul(h,h)},o.prototype.sqrt=function(h){if(h.isZero())return h.clone();var v=this.m.andln(3);if(t(v%2===1),v===3){var _=this.m.add(new a(1)).iushrn(2);return this.pow(h,_)}for(var C=this.m.subn(1),m=0;!C.isZero()&&C.andln(1)===0;)m++,C.iushrn(1);t(!C.isZero());var u=new a(1).toRed(this),b=u.redNeg(),R=this.m.subn(1).iushrn(1),S=this.m.bitLength();for(S=new a(2*S*S).toRed(this);this.pow(S,R).cmp(b)!==0;)S.redIAdd(b);for(var B=this.pow(S,C),Z=this.pow(h,C.addn(1).iushrn(1)),W=this.pow(h,C),X=m;W.cmp(u)!==0;){for(var de=W,ne=0;de.cmp(u)!==0;ne++)de=de.redSqr();t(ne=0;m--){for(var B=v.words[m],Z=S-1;Z>=0;Z--){var W=B>>Z&1;if(u!==C[0]&&(u=this.sqr(u)),W===0&&b===0){R=0;continue}b<<=1,b|=W,R++,!(R!==_&&(m!==0||Z!==0))&&(u=this.mul(u,C[b]),R=0,b=0)}S=26}return u},o.prototype.convertTo=function(h){var v=h.umod(this.m);return v===h?v.clone():v},o.prototype.convertFrom=function(h){var v=h.clone();return v.red=null,v},a.mont=function(h){return new p(h)};function p(y){o.call(this,y),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new a(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}n(p,o),p.prototype.convertTo=function(h){return this.imod(h.ushln(this.shift))},p.prototype.convertFrom=function(h){var v=this.imod(h.mul(this.rinv));return v.red=null,v},p.prototype.imul=function(h,v){if(h.isZero()||v.isZero())return h.words[0]=0,h.length=1,h;var _=h.imul(v),C=_.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),m=_.isub(C).iushrn(this.shift),u=m;return m.cmp(this.m)>=0?u=m.isub(this.m):m.cmpn(0)<0&&(u=m.iadd(this.m)),u._forceRed(this)},p.prototype.mul=function(h,v){if(h.isZero()||v.isZero())return new a(0)._forceRed(this);var _=h.mul(v),C=_.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),m=_.isub(C).iushrn(this.shift),u=m;return m.cmp(this.m)>=0?u=m.isub(this.m):m.cmpn(0)<0&&(u=m.iadd(this.m)),u._forceRed(this)},p.prototype.invm=function(h){var v=this.imod(h._invmp(this.m).mul(this.r2));return v._forceRed(this)}})(typeof Uq>"u"||Uq,aie)});var iie=O(AE=>{"use strict";x();T();Object.defineProperty(AE,"__esModule",{value:!0});AE.version=void 0;AE.version="logger/5.7.0"});var ur=O(Hp=>{"use strict";x();T();Object.defineProperty(Hp,"__esModule",{value:!0});Hp.Logger=Hp.ErrorCode=Hp.LogLevel=void 0;var sie=!1,oie=!1,ME={debug:1,default:2,info:2,warning:3,error:4,off:5},cie=ME.default,oht=iie(),Wq=null;function cht(){try{var r=[];if(["NFD","NFC","NFKD","NFKC"].forEach(function(e){try{if("test".normalize(e)!=="test")throw new Error("bad normalize")}catch{r.push(e)}}),r.length)throw new Error("missing "+r.join(", "));if(String.fromCharCode(233).normalize("NFD")!==String.fromCharCode(101,769))throw new Error("broken implementation")}catch(e){return e.message}return null}var uie=cht(),die;(function(r){r.DEBUG="DEBUG",r.INFO="INFO",r.WARNING="WARNING",r.ERROR="ERROR",r.OFF="OFF"})(die=Hp.LogLevel||(Hp.LogLevel={}));var zp;(function(r){r.UNKNOWN_ERROR="UNKNOWN_ERROR",r.NOT_IMPLEMENTED="NOT_IMPLEMENTED",r.UNSUPPORTED_OPERATION="UNSUPPORTED_OPERATION",r.NETWORK_ERROR="NETWORK_ERROR",r.SERVER_ERROR="SERVER_ERROR",r.TIMEOUT="TIMEOUT",r.BUFFER_OVERRUN="BUFFER_OVERRUN",r.NUMERIC_FAULT="NUMERIC_FAULT",r.MISSING_NEW="MISSING_NEW",r.INVALID_ARGUMENT="INVALID_ARGUMENT",r.MISSING_ARGUMENT="MISSING_ARGUMENT",r.UNEXPECTED_ARGUMENT="UNEXPECTED_ARGUMENT",r.CALL_EXCEPTION="CALL_EXCEPTION",r.INSUFFICIENT_FUNDS="INSUFFICIENT_FUNDS",r.NONCE_EXPIRED="NONCE_EXPIRED",r.REPLACEMENT_UNDERPRICED="REPLACEMENT_UNDERPRICED",r.UNPREDICTABLE_GAS_LIMIT="UNPREDICTABLE_GAS_LIMIT",r.TRANSACTION_REPLACED="TRANSACTION_REPLACED",r.ACTION_REJECTED="ACTION_REJECTED"})(zp=Hp.ErrorCode||(Hp.ErrorCode={}));var lie="0123456789abcdef",uht=function(){function r(e){Object.defineProperty(this,"version",{enumerable:!0,value:e,writable:!1})}return r.prototype._log=function(e,t){var n=e.toLowerCase();ME[n]==null&&this.throwArgumentError("invalid log level name","logLevel",e),!(cie>ME[n])&&console.log.apply(console,t)},r.prototype.debug=function(){for(var e=[],t=0;t>4],w+=lie[f[E]&15];a.push(d+"=Uint8Array(0x"+w+")")}else a.push(d+"="+JSON.stringify(f))}catch{a.push(d+"="+JSON.stringify(n[d].toString()))}}),a.push("code="+t),a.push("version="+this.version);var i=e,s="";switch(t){case zp.NUMERIC_FAULT:{s="NUMERIC_FAULT";var c=e;switch(c){case"overflow":case"underflow":case"division-by-zero":s+="-"+c;break;case"negative-power":case"negative-width":s+="-unsupported";break;case"unbound-bitwise-result":s+="-unbound-result";break}break}case zp.CALL_EXCEPTION:case zp.INSUFFICIENT_FUNDS:case zp.MISSING_NEW:case zp.NONCE_EXPIRED:case zp.REPLACEMENT_UNDERPRICED:case zp.TRANSACTION_REPLACED:case zp.UNPREDICTABLE_GAS_LIMIT:s=t;break}s&&(e+=" [ See: https://links.ethers.org/v5-errors-"+s+" ]"),a.length&&(e+=" ("+a.join(", ")+")");var l=new Error(e);return l.reason=i,l.code=t,Object.keys(n).forEach(function(d){l[d]=n[d]}),l},r.prototype.throwError=function(e,t,n){throw this.makeError(e,t,n)},r.prototype.throwArgumentError=function(e,t,n){return this.throwError(e,r.errors.INVALID_ARGUMENT,{argument:t,value:n})},r.prototype.assert=function(e,t,n,a){e||this.throwError(t,n,a)},r.prototype.assertArgument=function(e,t,n,a){e||this.throwArgumentError(t,n,a)},r.prototype.checkNormalize=function(e){e==null&&(e="platform missing String.prototype.normalize"),uie&&this.throwError("platform missing String.prototype.normalize",r.errors.UNSUPPORTED_OPERATION,{operation:"String.prototype.normalize",form:uie})},r.prototype.checkSafeUint53=function(e,t){typeof e=="number"&&(t==null&&(t="value not safe"),(e<0||e>=9007199254740991)&&this.throwError(t,r.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"out-of-safe-range",value:e}),e%1&&this.throwError(t,r.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"non-integer",value:e}))},r.prototype.checkArgumentCount=function(e,t,n){n?n=": "+n:n="",et&&this.throwError("too many arguments"+n,r.errors.UNEXPECTED_ARGUMENT,{count:e,expectedCount:t})},r.prototype.checkNew=function(e,t){(e===Object||e==null)&&this.throwError("missing new",r.errors.MISSING_NEW,{name:t.name})},r.prototype.checkAbstract=function(e,t){e===t?this.throwError("cannot instantiate abstract class "+JSON.stringify(t.name)+" directly; use a sub-class",r.errors.UNSUPPORTED_OPERATION,{name:e.name,operation:"new"}):(e===Object||e==null)&&this.throwError("missing new",r.errors.MISSING_NEW,{name:t.name})},r.globalLogger=function(){return Wq||(Wq=new r(oht.version)),Wq},r.setCensorship=function(e,t){if(!e&&t&&this.globalLogger().throwError("cannot permanently disable censorship",r.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"}),sie){if(!e)return;this.globalLogger().throwError("error censorship permanent",r.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"})}oie=!!e,sie=!!t},r.setLogLevel=function(e){var t=ME[e.toLowerCase()];if(t==null){r.globalLogger().warn("invalid log level - "+e);return}cie=t},r.from=function(e){return new r(e)},r.errors=zp,r.levels=die,r}();Hp.Logger=uht});var pie=O(IE=>{"use strict";x();T();Object.defineProperty(IE,"__esModule",{value:!0});IE.version=void 0;IE.version="bytes/5.7.0"});var Wr=O(xn=>{"use strict";x();T();Object.defineProperty(xn,"__esModule",{value:!0});xn.joinSignature=xn.splitSignature=xn.hexZeroPad=xn.hexStripZeros=xn.hexValue=xn.hexConcat=xn.hexDataSlice=xn.hexDataLength=xn.hexlify=xn.isHexString=xn.zeroPad=xn.stripZeros=xn.concat=xn.arrayify=xn.isBytes=xn.isBytesLike=void 0;var lht=ur(),dht=pie(),Di=new lht.Logger(dht.version);function fie(r){return!!r.toHexString}function F1(r){return r.slice||(r.slice=function(){var e=Array.prototype.slice.call(arguments);return F1(new Uint8Array(Array.prototype.slice.apply(r,e)))}),r}function mie(r){return Ud(r)&&!(r.length%2)||RE(r)}xn.isBytesLike=mie;function hie(r){return typeof r=="number"&&r==r&&r%1===0}function RE(r){if(r==null)return!1;if(r.constructor===Uint8Array)return!0;if(typeof r=="string"||!hie(r.length)||r.length<0)return!1;for(var e=0;e=256)return!1}return!0}xn.isBytes=RE;function Gy(r,e){if(e||(e={}),typeof r=="number"){Di.checkSafeUint53(r,"invalid arrayify value");for(var t=[];r;)t.unshift(r&255),r=parseInt(String(r/256));return t.length===0&&t.push(0),F1(new Uint8Array(t))}if(e.allowMissingPrefix&&typeof r=="string"&&r.substring(0,2)!=="0x"&&(r="0x"+r),fie(r)&&(r=r.toHexString()),Ud(r)){var n=r.substring(2);n.length%2&&(e.hexPad==="left"?n="0"+n:e.hexPad==="right"?n+="0":Di.throwArgumentError("hex data is odd-length","value",r));for(var t=[],a=0;ae&&Di.throwArgumentError("value out of range","value",arguments[0]);var t=new Uint8Array(e);return t.set(r,e-r.length),F1(t)}xn.zeroPad=gie;function Ud(r,e){return!(typeof r!="string"||!r.match(/^0x[0-9A-Fa-f]*$/)||e&&r.length!==2+2*e)}xn.isHexString=Ud;var jq="0123456789abcdef";function _o(r,e){if(e||(e={}),typeof r=="number"){Di.checkSafeUint53(r,"invalid hexlify value");for(var t="";r;)t=jq[r&15]+t,r=Math.floor(r/16);return t.length?(t.length%2&&(t="0"+t),"0x"+t):"0x00"}if(typeof r=="bigint")return r=r.toString(16),r.length%2?"0x0"+r:"0x"+r;if(e.allowMissingPrefix&&typeof r=="string"&&r.substring(0,2)!=="0x"&&(r="0x"+r),fie(r))return r.toHexString();if(Ud(r))return r.length%2&&(e.hexPad==="left"?r="0x0"+r.substring(2):e.hexPad==="right"?r+="0":Di.throwArgumentError("hex data is odd-length","value",r)),r.toLowerCase();if(RE(r)){for(var n="0x",a=0;a>4]+jq[i&15]}return n}return Di.throwArgumentError("invalid hexlify value","value",r)}xn.hexlify=_o;function hht(r){if(typeof r!="string")r=_o(r);else if(!Ud(r)||r.length%2)return null;return(r.length-2)/2}xn.hexDataLength=hht;function fht(r,e,t){return typeof r!="string"?r=_o(r):(!Ud(r)||r.length%2)&&Di.throwArgumentError("invalid hexData","value",r),e=2+2*e,t!=null?"0x"+r.substring(e,2+2*t):"0x"+r.substring(e)}xn.hexDataSlice=fht;function mht(r){var e="0x";return r.forEach(function(t){e+=_o(t).substring(2)}),e}xn.hexConcat=mht;function yht(r){var e=vie(_o(r,{hexPad:"left"}));return e==="0x"?"0x0":e}xn.hexValue=yht;function vie(r){typeof r!="string"&&(r=_o(r)),Ud(r)||Di.throwArgumentError("invalid hex string","value",r),r=r.substring(2);for(var e=0;e2*e+2&&Di.throwArgumentError("value out of range","value",arguments[1]);r.length<2*e+2;)r="0x0"+r.substring(2);return r}xn.hexZeroPad=PE;function bie(r){var e={r:"0x",s:"0x",_vs:"0x",recoveryParam:0,v:0,yParityAndS:"0x",compact:"0x"};if(mie(r)){var t=Gy(r);t.length===64?(e.v=27+(t[32]>>7),t[32]&=127,e.r=_o(t.slice(0,32)),e.s=_o(t.slice(32,64))):t.length===65?(e.r=_o(t.slice(0,32)),e.s=_o(t.slice(32,64)),e.v=t[64]):Di.throwArgumentError("invalid signature string","signature",r),e.v<27&&(e.v===0||e.v===1?e.v+=27:Di.throwArgumentError("signature invalid v byte","signature",r)),e.recoveryParam=1-e.v%2,e.recoveryParam&&(t[32]|=128),e._vs=_o(t.slice(32,64))}else{if(e.r=r.r,e.s=r.s,e.v=r.v,e.recoveryParam=r.recoveryParam,e._vs=r._vs,e._vs!=null){var n=gie(Gy(e._vs),32);e._vs=_o(n);var a=n[0]>=128?1:0;e.recoveryParam==null?e.recoveryParam=a:e.recoveryParam!==a&&Di.throwArgumentError("signature recoveryParam mismatch _vs","signature",r),n[0]&=127;var i=_o(n);e.s==null?e.s=i:e.s!==i&&Di.throwArgumentError("signature v mismatch _vs","signature",r)}if(e.recoveryParam==null)e.v==null?Di.throwArgumentError("signature missing v and recoveryParam","signature",r):e.v===0||e.v===1?e.recoveryParam=e.v:e.recoveryParam=1-e.v%2;else if(e.v==null)e.v=27+e.recoveryParam;else{var s=e.v===0||e.v===1?e.v:1-e.v%2;e.recoveryParam!==s&&Di.throwArgumentError("signature recoveryParam mismatch v","signature",r)}e.r==null||!Ud(e.r)?Di.throwArgumentError("signature missing or invalid r","signature",r):e.r=PE(e.r,32),e.s==null||!Ud(e.s)?Di.throwArgumentError("signature missing or invalid s","signature",r):e.s=PE(e.s,32);var c=Gy(e.s);c[0]>=128&&Di.throwArgumentError("signature s out of range","signature",r),e.recoveryParam&&(c[0]|=128);var l=_o(c);e._vs&&(Ud(e._vs)||Di.throwArgumentError("signature invalid _vs","signature",r),e._vs=PE(e._vs,32)),e._vs==null?e._vs=l:e._vs!==l&&Di.throwArgumentError("signature _vs mismatch v and s","signature",r)}return e.yParityAndS=e._vs,e.compact=e.r+e.yParityAndS.substring(2),e}xn.splitSignature=bie;function ght(r){return r=bie(r),_o(yie([r.r,r.s,r.recoveryParam?"0x1c":"0x1b"]))}xn.joinSignature=ght});var zq=O(NE=>{"use strict";x();T();Object.defineProperty(NE,"__esModule",{value:!0});NE.version=void 0;NE.version="bignumber/5.7.0"});var LE=O(Cl=>{"use strict";x();T();var vht=Cl&&Cl.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Cl,"__esModule",{value:!0});Cl._base16To36=Cl._base36To16=Cl.BigNumber=Cl.isBigNumberish=void 0;var bht=vht(Xr()),T3=bht.default.BN,U1=Wr(),W1=ur(),wht=zq(),df=new W1.Logger(wht.version),Hq={},wie=9007199254740991;function xht(r){return r!=null&&(OE.isBigNumber(r)||typeof r=="number"&&r%1===0||typeof r=="string"&&!!r.match(/^-?[0-9]+$/)||(0,U1.isHexString)(r)||typeof r=="bigint"||(0,U1.isBytes)(r))}Cl.isBigNumberish=xht;var xie=!1,OE=function(){function r(e,t){e!==Hq&&df.throwError("cannot call constructor directly; use BigNumber.from",W1.Logger.errors.UNSUPPORTED_OPERATION,{operation:"new (BigNumber)"}),this._hex=t,this._isBigNumber=!0,Object.freeze(this)}return r.prototype.fromTwos=function(e){return cu(hn(this).fromTwos(e))},r.prototype.toTwos=function(e){return cu(hn(this).toTwos(e))},r.prototype.abs=function(){return this._hex[0]==="-"?r.from(this._hex.substring(1)):this},r.prototype.add=function(e){return cu(hn(this).add(hn(e)))},r.prototype.sub=function(e){return cu(hn(this).sub(hn(e)))},r.prototype.div=function(e){var t=r.from(e);return t.isZero()&&_l("division-by-zero","div"),cu(hn(this).div(hn(e)))},r.prototype.mul=function(e){return cu(hn(this).mul(hn(e)))},r.prototype.mod=function(e){var t=hn(e);return t.isNeg()&&_l("division-by-zero","mod"),cu(hn(this).umod(t))},r.prototype.pow=function(e){var t=hn(e);return t.isNeg()&&_l("negative-power","pow"),cu(hn(this).pow(t))},r.prototype.and=function(e){var t=hn(e);return(this.isNegative()||t.isNeg())&&_l("unbound-bitwise-result","and"),cu(hn(this).and(t))},r.prototype.or=function(e){var t=hn(e);return(this.isNegative()||t.isNeg())&&_l("unbound-bitwise-result","or"),cu(hn(this).or(t))},r.prototype.xor=function(e){var t=hn(e);return(this.isNegative()||t.isNeg())&&_l("unbound-bitwise-result","xor"),cu(hn(this).xor(t))},r.prototype.mask=function(e){return(this.isNegative()||e<0)&&_l("negative-width","mask"),cu(hn(this).maskn(e))},r.prototype.shl=function(e){return(this.isNegative()||e<0)&&_l("negative-width","shl"),cu(hn(this).shln(e))},r.prototype.shr=function(e){return(this.isNegative()||e<0)&&_l("negative-width","shr"),cu(hn(this).shrn(e))},r.prototype.eq=function(e){return hn(this).eq(hn(e))},r.prototype.lt=function(e){return hn(this).lt(hn(e))},r.prototype.lte=function(e){return hn(this).lte(hn(e))},r.prototype.gt=function(e){return hn(this).gt(hn(e))},r.prototype.gte=function(e){return hn(this).gte(hn(e))},r.prototype.isNegative=function(){return this._hex[0]==="-"},r.prototype.isZero=function(){return hn(this).isZero()},r.prototype.toNumber=function(){try{return hn(this).toNumber()}catch{_l("overflow","toNumber",this.toString())}return null},r.prototype.toBigInt=function(){try{return BigInt(this.toString())}catch{}return df.throwError("this platform does not support BigInt",W1.Logger.errors.UNSUPPORTED_OPERATION,{value:this.toString()})},r.prototype.toString=function(){return arguments.length>0&&(arguments[0]===10?xie||(xie=!0,df.warn("BigNumber.toString does not accept any parameters; base-10 is assumed")):arguments[0]===16?df.throwError("BigNumber.toString does not accept any parameters; use bigNumber.toHexString()",W1.Logger.errors.UNEXPECTED_ARGUMENT,{}):df.throwError("BigNumber.toString does not accept parameters",W1.Logger.errors.UNEXPECTED_ARGUMENT,{})),hn(this).toString(10)},r.prototype.toHexString=function(){return this._hex},r.prototype.toJSON=function(e){return{type:"BigNumber",hex:this.toHexString()}},r.from=function(e){if(e instanceof r)return e;if(typeof e=="string")return e.match(/^-?0x[0-9a-f]+$/i)?new r(Hq,_3(e)):e.match(/^-?[0-9]+$/)?new r(Hq,_3(new T3(e))):df.throwArgumentError("invalid BigNumber string","value",e);if(typeof e=="number")return e%1&&_l("underflow","BigNumber.from",e),(e>=wie||e<=-wie)&&_l("overflow","BigNumber.from",e),r.from(String(e));var t=e;if(typeof t=="bigint")return r.from(t.toString());if((0,U1.isBytes)(t))return r.from((0,U1.hexlify)(t));if(t)if(t.toHexString){var n=t.toHexString();if(typeof n=="string")return r.from(n)}else{var n=t._hex;if(n==null&&t.type==="BigNumber"&&(n=t.hex),typeof n=="string"&&((0,U1.isHexString)(n)||n[0]==="-"&&(0,U1.isHexString)(n.substring(1))))return r.from(n)}return df.throwArgumentError("invalid BigNumber value","value",e)},r.isBigNumber=function(e){return!!(e&&e._isBigNumber)},r}();Cl.BigNumber=OE;function _3(r){if(typeof r!="string")return _3(r.toString(16));if(r[0]==="-")return r=r.substring(1),r[0]==="-"&&df.throwArgumentError("invalid hex","value",r),r=_3(r),r==="0x00"?r:"-"+r;if(r.substring(0,2)!=="0x"&&(r="0x"+r),r==="0x")return"0x00";for(r.length%2&&(r="0x0"+r.substring(2));r.length>4&&r.substring(0,4)==="0x00";)r="0x"+r.substring(4);return r}function cu(r){return OE.from(_3(r))}function hn(r){var e=OE.from(r).toHexString();return e[0]==="-"?new T3("-"+e.substring(3),16):new T3(e.substring(2),16)}function _l(r,e,t){var n={fault:r,operation:e};return t!=null&&(n.value=t),df.throwError(r,W1.Logger.errors.NUMERIC_FAULT,n)}function Tht(r){return new T3(r,36).toString(16)}Cl._base36To16=Tht;function _ht(r){return new T3(r,16).toString(36)}Cl._base16To36=_ht});var kie=O(Gp=>{"use strict";x();T();Object.defineProperty(Gp,"__esModule",{value:!0});Gp.FixedNumber=Gp.FixedFormat=Gp.parseFixed=Gp.formatFixed=void 0;var BE=Wr(),k3=ur(),Cht=zq(),Nc=new k3.Logger(Cht.version),pf=LE(),C3={},_ie=pf.BigNumber.from(0),Cie=pf.BigNumber.from(-1);function Eie(r,e,t,n){var a={fault:e,operation:t};return n!==void 0&&(a.value=n),Nc.throwError(r,k3.Logger.errors.NUMERIC_FAULT,a)}var E3="0";for(;E3.length<256;)E3+=E3;function Vq(r){if(typeof r!="number")try{r=pf.BigNumber.from(r).toNumber()}catch{}return typeof r=="number"&&r>=0&&r<=256&&!(r%1)?"1"+E3.substring(0,r):Nc.throwArgumentError("invalid decimal size","decimals",r)}function qE(r,e){e==null&&(e=0);var t=Vq(e);r=pf.BigNumber.from(r);var n=r.lt(_ie);n&&(r=r.mul(Cie));for(var a=r.mod(t).toString();a.length2&&Nc.throwArgumentError("too many decimal points","value",r);var i=a[0],s=a[1];for(i||(i="0"),s||(s="0");s[s.length-1]==="0";)s=s.substring(0,s.length-1);for(s.length>t.length-1&&Eie("fractional component exceeds decimals","underflow","parseFixed"),s===""&&(s="0");s.length80&&Nc.throwArgumentError("invalid fixed format (decimals too large)","format.decimals",a),new r(C3,t,n,a)},r}();Gp.FixedFormat=DE;var Gq=function(){function r(e,t,n,a){e!==C3&&Nc.throwError("cannot use FixedNumber constructor; use FixedNumber.from",k3.Logger.errors.UNSUPPORTED_OPERATION,{operation:"new FixedFormat"}),this.format=a,this._hex=t,this._value=n,this._isFixedNumber=!0,Object.freeze(this)}return r.prototype._checkFormat=function(e){this.format.name!==e.format.name&&Nc.throwArgumentError("incompatible format; use fixedNumber.toFormat","other",e)},r.prototype.addUnsafe=function(e){this._checkFormat(e);var t=Vp(this._value,this.format.decimals),n=Vp(e._value,e.format.decimals);return r.fromValue(t.add(n),this.format.decimals,this.format)},r.prototype.subUnsafe=function(e){this._checkFormat(e);var t=Vp(this._value,this.format.decimals),n=Vp(e._value,e.format.decimals);return r.fromValue(t.sub(n),this.format.decimals,this.format)},r.prototype.mulUnsafe=function(e){this._checkFormat(e);var t=Vp(this._value,this.format.decimals),n=Vp(e._value,e.format.decimals);return r.fromValue(t.mul(n).div(this.format._multiplier),this.format.decimals,this.format)},r.prototype.divUnsafe=function(e){this._checkFormat(e);var t=Vp(this._value,this.format.decimals),n=Vp(e._value,e.format.decimals);return r.fromValue(t.mul(this.format._multiplier).div(n),this.format.decimals,this.format)},r.prototype.floor=function(){var e=this.toString().split(".");e.length===1&&e.push("0");var t=r.from(e[0],this.format),n=!e[1].match(/^(0*)$/);return this.isNegative()&&n&&(t=t.subUnsafe(Tie.toFormat(t.format))),t},r.prototype.ceiling=function(){var e=this.toString().split(".");e.length===1&&e.push("0");var t=r.from(e[0],this.format),n=!e[1].match(/^(0*)$/);return!this.isNegative()&&n&&(t=t.addUnsafe(Tie.toFormat(t.format))),t},r.prototype.round=function(e){e==null&&(e=0);var t=this.toString().split(".");if(t.length===1&&t.push("0"),(e<0||e>80||e%1)&&Nc.throwArgumentError("invalid decimal count","decimals",e),t[1].length<=e)return this;var n=r.from("1"+E3.substring(0,e),this.format),a=Eht.toFormat(this.format);return this.mulUnsafe(n).addUnsafe(a).floor().divUnsafe(n)},r.prototype.isZero=function(){return this._value==="0.0"||this._value==="0"},r.prototype.isNegative=function(){return this._value[0]==="-"},r.prototype.toString=function(){return this._value},r.prototype.toHexString=function(e){if(e==null)return this._hex;e%8&&Nc.throwArgumentError("invalid byte width","width",e);var t=pf.BigNumber.from(this._hex).fromTwos(this.format.width).toTwos(e).toHexString();return(0,BE.hexZeroPad)(t,e/8)},r.prototype.toUnsafeFloat=function(){return parseFloat(this.toString())},r.prototype.toFormat=function(e){return r.fromString(this._value,e)},r.fromValue=function(e,t,n){return n==null&&t!=null&&!(0,pf.isBigNumberish)(t)&&(n=t,t=null),t==null&&(t=0),n==null&&(n="fixed"),r.fromString(qE(e,t),DE.from(n))},r.fromString=function(e,t){t==null&&(t="fixed");var n=DE.from(t),a=Vp(e,n.decimals);!n.signed&&a.lt(_ie)&&Eie("unsigned value cannot be negative","overflow","value",e);var i=null;n.signed?i=a.toTwos(n.width).toHexString():(i=a.toHexString(),i=(0,BE.hexZeroPad)(i,n.width/8));var s=qE(a,n.decimals);return new r(C3,i,s,n)},r.fromBytes=function(e,t){t==null&&(t="fixed");var n=DE.from(t);if((0,BE.arrayify)(e).length>n.width/8)throw new Error("overflow");var a=pf.BigNumber.from(e);n.signed&&(a=a.fromTwos(n.width));var i=a.toTwos((n.signed?0:1)+n.width).toHexString(),s=qE(a,n.decimals);return new r(C3,i,s,n)},r.from=function(e,t){if(typeof e=="string")return r.fromString(e,t);if((0,BE.isBytes)(e))return r.fromBytes(e,t);try{return r.fromValue(e,0,t)}catch(n){if(n.code!==k3.Logger.errors.INVALID_ARGUMENT)throw n}return Nc.throwArgumentError("invalid FixedNumber value","value",e)},r.isFixedNumber=function(e){return!!(e&&e._isFixedNumber)},r}();Gp.FixedNumber=Gq;var Tie=Gq.from(1),Eht=Gq.from("0.5")});var es=O(Co=>{"use strict";x();T();Object.defineProperty(Co,"__esModule",{value:!0});Co._base36To16=Co._base16To36=Co.parseFixed=Co.FixedNumber=Co.FixedFormat=Co.formatFixed=Co.BigNumber=void 0;var kht=LE();Object.defineProperty(Co,"BigNumber",{enumerable:!0,get:function(){return kht.BigNumber}});var FE=kie();Object.defineProperty(Co,"formatFixed",{enumerable:!0,get:function(){return FE.formatFixed}});Object.defineProperty(Co,"FixedFormat",{enumerable:!0,get:function(){return FE.FixedFormat}});Object.defineProperty(Co,"FixedNumber",{enumerable:!0,get:function(){return FE.FixedNumber}});Object.defineProperty(Co,"parseFixed",{enumerable:!0,get:function(){return FE.parseFixed}});var Sie=LE();Object.defineProperty(Co,"_base16To36",{enumerable:!0,get:function(){return Sie._base16To36}});Object.defineProperty(Co,"_base36To16",{enumerable:!0,get:function(){return Sie._base36To16}})});var Aie=O(UE=>{"use strict";x();T();Object.defineProperty(UE,"__esModule",{value:!0});UE.version=void 0;UE.version="properties/5.7.0"});var Xa=O(ts=>{"use strict";x();T();var Sht=ts&&ts.__awaiter||function(r,e,t,n){function a(i){return i instanceof t?i:new t(function(s){s(i)})}return new(t||(t=Promise))(function(i,s){function c(f){try{d(n.next(f))}catch(w){s(w)}}function l(f){try{d(n.throw(f))}catch(w){s(w)}}function d(f){f.done?i(f.value):a(f.value).then(c,l)}d((n=n.apply(r,e||[])).next())})},Aht=ts&&ts.__generator||function(r,e){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,s;return s={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function c(d){return function(f){return l([d,f])}}function l(d){if(n)throw new TypeError("Generator is already executing.");for(;t;)try{if(n=1,a&&(i=d[0]&2?a.return:d[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,d[1])).done)return i;switch(a=0,i&&(d=[d[0]&2,i.value]),d[0]){case 0:case 1:i=d;break;case 4:return t.label++,{value:d[1],done:!1};case 5:t.label++,a=d[1],d=[0];continue;case 7:d=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(d[0]===6||d[0]===2)){t=0;continue}if(d[0]===3&&(!i||d[1]>i[0]&&d[1]{"use strict";x();T();Object.defineProperty(zE,"__esModule",{value:!0});zE.version=void 0;zE.version="abi/5.7.0"});var QE=O(vr=>{"use strict";x();T();var ZE=vr&&vr.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(vr,"__esModule",{value:!0});vr.ErrorFragment=vr.FunctionFragment=vr.ConstructorFragment=vr.EventFragment=vr.Fragment=vr.ParamType=vr.FormatTypes=void 0;var Qq=es(),Dht=Xa(),JE=ur(),Fht=j1(),yn=new JE.Logger(Fht.version),Zy={},Pie={calldata:!0,memory:!0,storage:!0},Uht={calldata:!0,memory:!0};function HE(r,e){if(r==="bytes"||r==="string"){if(Pie[e])return!0}else if(r==="address"){if(e==="payable")return!0}else if((r.indexOf("[")>=0||r==="tuple")&&Uht[e])return!0;return(Pie[e]||e==="payable")&&yn.throwArgumentError("invalid modifier","name",e),!1}function Wht(r,e){var t=r;function n(w){yn.throwArgumentError("unexpected character at position "+w,"param",r)}r=r.replace(/\s/g," ");function a(w){var E={type:"",name:"",parent:w,state:{allowType:!0}};return e&&(E.indexed=!1),E}for(var i={type:"",name:"",state:{allowType:!0}},s=i,c=0;c2&&yn.throwArgumentError("invalid human-readable ABI signature","value",r),t[1].match(/^[0-9]+$/)||yn.throwArgumentError("invalid human-readable ABI signature gas","value",r),e.gas=Qq.BigNumber.from(t[1]),t[0]):r}function Oie(r,e){e.constant=!1,e.payable=!1,e.stateMutability="nonpayable",r.split(" ").forEach(function(t){switch(t.trim()){case"constant":e.constant=!0;break;case"payable":e.payable=!0,e.stateMutability="payable";break;case"nonpayable":e.payable=!1,e.stateMutability="nonpayable";break;case"pure":e.constant=!0,e.stateMutability="pure";break;case"view":e.constant=!0,e.stateMutability="view";break;case"external":case"public":case"":break;default:console.log("unknown modifier: "+t)}})}function Lie(r){var e={constant:!1,payable:!0,stateMutability:"payable"};return r.stateMutability!=null?(e.stateMutability=r.stateMutability,e.constant=e.stateMutability==="view"||e.stateMutability==="pure",r.constant!=null&&!!r.constant!==e.constant&&yn.throwArgumentError("cannot have constant function with mutability "+e.stateMutability,"value",r),e.payable=e.stateMutability==="payable",r.payable!=null&&!!r.payable!==e.payable&&yn.throwArgumentError("cannot have payable function with mutability "+e.stateMutability,"value",r)):r.payable!=null?(e.payable=!!r.payable,r.constant==null&&!e.payable&&r.type!=="constructor"&&yn.throwArgumentError("unable to determine stateMutability","value",r),e.constant=!!r.constant,e.constant?e.stateMutability="view":e.stateMutability=e.payable?"payable":"nonpayable",e.payable&&e.constant&&yn.throwArgumentError("cannot have constant payable function","value",r)):r.constant!=null?(e.constant=!!r.constant,e.payable=!e.constant,e.stateMutability=e.constant?"view":"payable"):r.type!=="constructor"&&yn.throwArgumentError("unable to determine stateMutability","value",r),e}var GE=function(r){ZE(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.format=function(t){if(t||(t=vr.FormatTypes.sighash),vr.FormatTypes[t]||yn.throwArgumentError("invalid format type","format",t),t===vr.FormatTypes.json)return JSON.stringify({type:"constructor",stateMutability:this.stateMutability!=="nonpayable"?this.stateMutability:void 0,payable:this.payable,gas:this.gas?this.gas.toNumber():void 0,inputs:this.inputs.map(function(a){return JSON.parse(a.format(t))})});t===vr.FormatTypes.sighash&&yn.throwError("cannot format a constructor for sighash",JE.Logger.errors.UNSUPPORTED_OPERATION,{operation:"format(sighash)"});var n="constructor("+this.inputs.map(function(a){return a.format(t)}).join(t===vr.FormatTypes.full?", ":",")+") ";return this.stateMutability&&this.stateMutability!=="nonpayable"&&(n+=this.stateMutability+" "),n.trim()},e.from=function(t){return typeof t=="string"?e.fromString(t):e.fromObject(t)},e.fromObject=function(t){if(e.isConstructorFragment(t))return t;t.type!=="constructor"&&yn.throwArgumentError("invalid constructor object","value",t);var n=Lie(t);n.constant&&yn.throwArgumentError("constructor cannot be constant","value",t);var a={name:null,type:t.type,inputs:t.inputs?t.inputs.map(Jy.fromObject):[],payable:n.payable,stateMutability:n.stateMutability,gas:t.gas?Qq.BigNumber.from(t.gas):null};return new e(Zy,a)},e.fromString=function(t){var n={type:"constructor"};t=Nie(t,n);var a=t.match(M3);return(!a||a[1].trim()!=="constructor")&&yn.throwArgumentError("invalid constructor string","value",t),n.inputs=S3(a[2].trim(),!1),Oie(a[3].trim(),n),e.fromObject(n)},e.isConstructorFragment=function(t){return t&&t._isFragment&&t.type==="constructor"},e}(KE);vr.ConstructorFragment=GE;var Jq=function(r){ZE(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.format=function(t){if(t||(t=vr.FormatTypes.sighash),vr.FormatTypes[t]||yn.throwArgumentError("invalid format type","format",t),t===vr.FormatTypes.json)return JSON.stringify({type:"function",name:this.name,constant:this.constant,stateMutability:this.stateMutability!=="nonpayable"?this.stateMutability:void 0,payable:this.payable,gas:this.gas?this.gas.toNumber():void 0,inputs:this.inputs.map(function(a){return JSON.parse(a.format(t))}),outputs:this.outputs.map(function(a){return JSON.parse(a.format(t))})});var n="";return t!==vr.FormatTypes.sighash&&(n+="function "),n+=this.name+"("+this.inputs.map(function(a){return a.format(t)}).join(t===vr.FormatTypes.full?", ":",")+") ",t!==vr.FormatTypes.sighash&&(this.stateMutability?this.stateMutability!=="nonpayable"&&(n+=this.stateMutability+" "):this.constant&&(n+="view "),this.outputs&&this.outputs.length&&(n+="returns ("+this.outputs.map(function(a){return a.format(t)}).join(", ")+") "),this.gas!=null&&(n+="@"+this.gas.toString()+" ")),n.trim()},e.from=function(t){return typeof t=="string"?e.fromString(t):e.fromObject(t)},e.fromObject=function(t){if(e.isFunctionFragment(t))return t;t.type!=="function"&&yn.throwArgumentError("invalid function object","value",t);var n=Lie(t),a={type:t.type,name:A3(t.name),constant:n.constant,inputs:t.inputs?t.inputs.map(Jy.fromObject):[],outputs:t.outputs?t.outputs.map(Jy.fromObject):[],payable:n.payable,stateMutability:n.stateMutability,gas:t.gas?Qq.BigNumber.from(t.gas):null};return new e(Zy,a)},e.fromString=function(t){var n={type:"function"};t=Nie(t,n);var a=t.split(" returns ");a.length>2&&yn.throwArgumentError("invalid function string","value",t);var i=a[0].match(M3);if(i||yn.throwArgumentError("invalid function signature","value",t),n.name=i[1].trim(),n.name&&A3(n.name),n.inputs=S3(i[2],!1),Oie(i[3].trim(),n),a.length>1){var s=a[1].match(M3);(s[1].trim()!=""||s[3].trim()!="")&&yn.throwArgumentError("unexpected tokens","value",t),n.outputs=S3(s[2],!1)}else n.outputs=[];return e.fromObject(n)},e.isFunctionFragment=function(t){return t&&t._isFragment&&t.type==="function"},e}(GE);vr.FunctionFragment=Jq;function Rie(r){var e=r.format();return(e==="Error(string)"||e==="Panic(uint256)")&&yn.throwArgumentError("cannot specify user defined "+e+" error","fragment",r),r}var Kq=function(r){ZE(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.format=function(t){if(t||(t=vr.FormatTypes.sighash),vr.FormatTypes[t]||yn.throwArgumentError("invalid format type","format",t),t===vr.FormatTypes.json)return JSON.stringify({type:"error",name:this.name,inputs:this.inputs.map(function(a){return JSON.parse(a.format(t))})});var n="";return t!==vr.FormatTypes.sighash&&(n+="error "),n+=this.name+"("+this.inputs.map(function(a){return a.format(t)}).join(t===vr.FormatTypes.full?", ":",")+") ",n.trim()},e.from=function(t){return typeof t=="string"?e.fromString(t):e.fromObject(t)},e.fromObject=function(t){if(e.isErrorFragment(t))return t;t.type!=="error"&&yn.throwArgumentError("invalid error object","value",t);var n={type:t.type,name:A3(t.name),inputs:t.inputs?t.inputs.map(Jy.fromObject):[]};return Rie(new e(Zy,n))},e.fromString=function(t){var n={type:"error"},a=t.match(M3);return a||yn.throwArgumentError("invalid error signature","value",t),n.name=a[1].trim(),n.name&&A3(n.name),n.inputs=S3(a[2],!1),Rie(e.fromObject(n))},e.isErrorFragment=function(t){return t&&t._isFragment&&t.type==="error"},e}(KE);vr.ErrorFragment=Kq;function z1(r){return r.match(/^uint($|[^1-9])/)?r="uint256"+r.substring(4):r.match(/^int($|[^1-9])/)&&(r="int256"+r.substring(3)),r}var zht=new RegExp("^[a-zA-Z$_][a-zA-Z0-9$_]*$");function A3(r){return(!r||!r.match(zht))&&yn.throwArgumentError('invalid identifier "'+r+'"',"value",r),r}var M3=new RegExp("^([^)(]*)\\((.*)\\)([^)(]*)$");function Hht(r){r=r.trim();for(var e=[],t="",n=0,a=0;a{"use strict";x();T();Object.defineProperty(Zp,"__esModule",{value:!0});Zp.Reader=Zp.Writer=Zp.Coder=Zp.checkResultErrors=void 0;var Bm=Wr(),Bie=es(),I3=Xa(),Xq=ur(),Vht=j1(),Yq=new Xq.Logger(Vht.version);function Ght(r){var e=[],t=function(n,a){if(!!Array.isArray(a))for(var i in a){var s=n.slice();s.push(i);try{t(s,a[i])}catch(c){e.push({path:s,error:c})}}};return t([],r),e}Zp.checkResultErrors=Ght;var Zht=function(){function r(e,t,n,a){this.name=e,this.type=t,this.localName=n,this.dynamic=a}return r.prototype._throwError=function(e,t){Yq.throwArgumentError(e,this.localName,t)},r}();Zp.Coder=Zht;var Jht=function(){function r(e){(0,I3.defineReadOnly)(this,"wordSize",e||32),this._data=[],this._dataLength=0,this._padding=new Uint8Array(e)}return Object.defineProperty(r.prototype,"data",{get:function(){return(0,Bm.hexConcat)(this._data)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"length",{get:function(){return this._dataLength},enumerable:!1,configurable:!0}),r.prototype._writeData=function(e){return this._data.push(e),this._dataLength+=e.length,e.length},r.prototype.appendWriter=function(e){return this._writeData((0,Bm.concat)(e._data))},r.prototype.writeBytes=function(e){var t=(0,Bm.arrayify)(e),n=t.length%this.wordSize;return n&&(t=(0,Bm.concat)([t,this._padding.slice(n)])),this._writeData(t)},r.prototype._getValue=function(e){var t=(0,Bm.arrayify)(Bie.BigNumber.from(e));return t.length>this.wordSize&&Yq.throwError("value out-of-bounds",Xq.Logger.errors.BUFFER_OVERRUN,{length:this.wordSize,offset:t.length}),t.length%this.wordSize&&(t=(0,Bm.concat)([this._padding.slice(t.length%this.wordSize),t])),t},r.prototype.writeValue=function(e){return this._writeData(this._getValue(e))},r.prototype.writeUpdatableValue=function(){var e=this,t=this._data.length;return this._data.push(this._padding),this._dataLength+=this.wordSize,function(n){e._data[t]=e._getValue(n)}},r}();Zp.Writer=Jht;var Kht=function(){function r(e,t,n,a){(0,I3.defineReadOnly)(this,"_data",(0,Bm.arrayify)(e)),(0,I3.defineReadOnly)(this,"wordSize",t||32),(0,I3.defineReadOnly)(this,"_coerceFunc",n),(0,I3.defineReadOnly)(this,"allowLoose",a),this._offset=0}return Object.defineProperty(r.prototype,"data",{get:function(){return(0,Bm.hexlify)(this._data)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"consumed",{get:function(){return this._offset},enumerable:!1,configurable:!0}),r.coerce=function(e,t){var n=e.match("^u?int([0-9]+)$");return n&&parseInt(n[1])<=48&&(t=t.toNumber()),t},r.prototype.coerce=function(e,t){return this._coerceFunc?this._coerceFunc(e,t):r.coerce(e,t)},r.prototype._peekBytes=function(e,t,n){var a=Math.ceil(t/this.wordSize)*this.wordSize;return this._offset+a>this._data.length&&(this.allowLoose&&n&&this._offset+t<=this._data.length?a=t:Yq.throwError("data out-of-bounds",Xq.Logger.errors.BUFFER_OVERRUN,{length:this._data.length,offset:this._offset+a})),this._data.slice(this._offset,this._offset+a)},r.prototype.subReader=function(e){return new r(this._data.slice(this._offset+e),this.wordSize,this._coerceFunc,this.allowLoose)},r.prototype.readBytes=function(e,t){var n=this._peekBytes(0,e,!!t);return this._offset+=n.length,n.slice(0,e)},r.prototype.readValue=function(){return Bie.BigNumber.from(this.readBytes(this.wordSize))},r}();Zp.Reader=Kht});var $q=O((RFr,XE)=>{x();T();(function(){"use strict";var r="input is invalid type",e="finalize already called",t=typeof window=="object",n=t?window:{};n.JS_SHA3_NO_WINDOW&&(t=!1);var a=!t&&typeof self=="object",i=!n.JS_SHA3_NO_NODE_JS&&typeof M=="object"&&M.versions&&M.versions.node;i?n=I:a&&(n=self);var s=!n.JS_SHA3_NO_COMMON_JS&&typeof XE=="object"&&XE.exports,c=typeof define=="function"&&define.amd,l=!n.JS_SHA3_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",d="0123456789abcdef".split(""),f=[31,7936,2031616,520093696],w=[4,1024,262144,67108864],E=[1,256,65536,16777216],k=[6,1536,393216,100663296],A=[0,8,16,24],L=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648],q=[224,256,384,512],U=[128,256],j=["hex","buffer","arrayBuffer","array","digest"],H={128:168,256:136};(n.JS_SHA3_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(W){return Object.prototype.toString.call(W)==="[object Array]"}),l&&(n.JS_SHA3_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(W){return typeof W=="object"&&W.buffer&&W.buffer.constructor===ArrayBuffer});for(var G=function(W,X,de){return function(ne){return new S(W,X,W).update(ne)[de]()}},te=function(W,X,de){return function(ne,pe){return new S(W,X,pe).update(ne)[de]()}},K=function(W,X,de){return function(ne,pe,pt,fe){return h["cshake"+W].update(ne,pe,pt,fe)[de]()}},ae=function(W,X,de){return function(ne,pe,pt,fe){return h["kmac"+W].update(ne,pe,pt,fe)[de]()}},J=function(W,X,de,ne){for(var pe=0;pe>5,this.byteCount=this.blockCount<<2,this.outputBlocks=de>>5,this.extraBytes=(de&31)>>3;for(var ne=0;ne<50;++ne)this.s[ne]=0}S.prototype.update=function(W){if(this.finalized)throw new Error(e);var X,de=typeof W;if(de!=="string"){if(de==="object"){if(W===null)throw new Error(r);if(l&&W.constructor===ArrayBuffer)W=new Uint8Array(W);else if(!Array.isArray(W)&&(!l||!ArrayBuffer.isView(W)))throw new Error(r)}else throw new Error(r);X=!0}for(var ne=this.blocks,pe=this.byteCount,pt=W.length,fe=this.blockCount,be=0,Tt=this.s,we,Oe;be>2]|=W[be]<>2]|=Oe<>2]|=(192|Oe>>6)<>2]|=(128|Oe&63)<=57344?(ne[we>>2]|=(224|Oe>>12)<>2]|=(128|Oe>>6&63)<>2]|=(128|Oe&63)<>2]|=(240|Oe>>18)<>2]|=(128|Oe>>12&63)<>2]|=(128|Oe>>6&63)<>2]|=(128|Oe&63)<=pe){for(this.start=we-pe,this.block=ne[fe],we=0;we>8,de=W&255;de>0;)pe.unshift(de),W=W>>8,de=W&255,++ne;return X?pe.push(ne):pe.unshift(ne),this.update(pe),pe.length},S.prototype.encodeString=function(W){var X,de=typeof W;if(de!=="string"){if(de==="object"){if(W===null)throw new Error(r);if(l&&W.constructor===ArrayBuffer)W=new Uint8Array(W);else if(!Array.isArray(W)&&(!l||!ArrayBuffer.isView(W)))throw new Error(r)}else throw new Error(r);X=!0}var ne=0,pe=W.length;if(X)ne=pe;else for(var pt=0;pt=57344?ne+=3:(fe=65536+((fe&1023)<<10|W.charCodeAt(++pt)&1023),ne+=4)}return ne+=this.encode(ne*8),this.update(W),ne},S.prototype.bytepad=function(W,X){for(var de=this.encode(X),ne=0;ne>2]|=this.padding[X&3],this.lastByteIndex===this.byteCount)for(W[0]=W[de],X=1;X>4&15]+d[be&15]+d[be>>12&15]+d[be>>8&15]+d[be>>20&15]+d[be>>16&15]+d[be>>28&15]+d[be>>24&15];pt%W===0&&(Z(X),pe=0)}return ne&&(be=X[pe],fe+=d[be>>4&15]+d[be&15],ne>1&&(fe+=d[be>>12&15]+d[be>>8&15]),ne>2&&(fe+=d[be>>20&15]+d[be>>16&15])),fe},S.prototype.arrayBuffer=function(){this.finalize();var W=this.blockCount,X=this.s,de=this.outputBlocks,ne=this.extraBytes,pe=0,pt=0,fe=this.outputBits>>3,be;ne?be=new ArrayBuffer(de+1<<2):be=new ArrayBuffer(fe);for(var Tt=new Uint32Array(be);pt>8&255,fe[be+2]=Tt>>16&255,fe[be+3]=Tt>>24&255;pt%W===0&&Z(X)}return ne&&(be=pt<<2,Tt=X[pe],fe[be]=Tt&255,ne>1&&(fe[be+1]=Tt>>8&255),ne>2&&(fe[be+2]=Tt>>16&255)),fe};function B(W,X,de){S.call(this,W,X,de)}B.prototype=new S,B.prototype.finalize=function(){return this.encode(this.outputBits,!0),S.prototype.finalize.call(this)};var Z=function(W){var X,de,ne,pe,pt,fe,be,Tt,we,Oe,Pt,Be,ze,At,Me,Ve,St,Ie,Ze,Ut,qe,Xe,Ht,Ae,Ke,Gt,Pe,Qe,Zt,Re,Ye,Jt,Ne,$e,Vt,Se,et,Rt,Le,tt,Kt,De,rt,Qt,ke,Je,Xt,Ue,st,rr,We,nt,ir,je,at,Lr,Wt,jt,Er,kr,Sr,Ar,Mr;for(ne=0;ne<48;ne+=2)pe=W[0]^W[10]^W[20]^W[30]^W[40],pt=W[1]^W[11]^W[21]^W[31]^W[41],fe=W[2]^W[12]^W[22]^W[32]^W[42],be=W[3]^W[13]^W[23]^W[33]^W[43],Tt=W[4]^W[14]^W[24]^W[34]^W[44],we=W[5]^W[15]^W[25]^W[35]^W[45],Oe=W[6]^W[16]^W[26]^W[36]^W[46],Pt=W[7]^W[17]^W[27]^W[37]^W[47],Be=W[8]^W[18]^W[28]^W[38]^W[48],ze=W[9]^W[19]^W[29]^W[39]^W[49],X=Be^(fe<<1|be>>>31),de=ze^(be<<1|fe>>>31),W[0]^=X,W[1]^=de,W[10]^=X,W[11]^=de,W[20]^=X,W[21]^=de,W[30]^=X,W[31]^=de,W[40]^=X,W[41]^=de,X=pe^(Tt<<1|we>>>31),de=pt^(we<<1|Tt>>>31),W[2]^=X,W[3]^=de,W[12]^=X,W[13]^=de,W[22]^=X,W[23]^=de,W[32]^=X,W[33]^=de,W[42]^=X,W[43]^=de,X=fe^(Oe<<1|Pt>>>31),de=be^(Pt<<1|Oe>>>31),W[4]^=X,W[5]^=de,W[14]^=X,W[15]^=de,W[24]^=X,W[25]^=de,W[34]^=X,W[35]^=de,W[44]^=X,W[45]^=de,X=Tt^(Be<<1|ze>>>31),de=we^(ze<<1|Be>>>31),W[6]^=X,W[7]^=de,W[16]^=X,W[17]^=de,W[26]^=X,W[27]^=de,W[36]^=X,W[37]^=de,W[46]^=X,W[47]^=de,X=Oe^(pe<<1|pt>>>31),de=Pt^(pt<<1|pe>>>31),W[8]^=X,W[9]^=de,W[18]^=X,W[19]^=de,W[28]^=X,W[29]^=de,W[38]^=X,W[39]^=de,W[48]^=X,W[49]^=de,At=W[0],Me=W[1],Je=W[11]<<4|W[10]>>>28,Xt=W[10]<<4|W[11]>>>28,Qe=W[20]<<3|W[21]>>>29,Zt=W[21]<<3|W[20]>>>29,kr=W[31]<<9|W[30]>>>23,Sr=W[30]<<9|W[31]>>>23,De=W[40]<<18|W[41]>>>14,rt=W[41]<<18|W[40]>>>14,$e=W[2]<<1|W[3]>>>31,Vt=W[3]<<1|W[2]>>>31,Ve=W[13]<<12|W[12]>>>20,St=W[12]<<12|W[13]>>>20,Ue=W[22]<<10|W[23]>>>22,st=W[23]<<10|W[22]>>>22,Re=W[33]<<13|W[32]>>>19,Ye=W[32]<<13|W[33]>>>19,Ar=W[42]<<2|W[43]>>>30,Mr=W[43]<<2|W[42]>>>30,je=W[5]<<30|W[4]>>>2,at=W[4]<<30|W[5]>>>2,Se=W[14]<<6|W[15]>>>26,et=W[15]<<6|W[14]>>>26,Ie=W[25]<<11|W[24]>>>21,Ze=W[24]<<11|W[25]>>>21,rr=W[34]<<15|W[35]>>>17,We=W[35]<<15|W[34]>>>17,Jt=W[45]<<29|W[44]>>>3,Ne=W[44]<<29|W[45]>>>3,Ae=W[6]<<28|W[7]>>>4,Ke=W[7]<<28|W[6]>>>4,Lr=W[17]<<23|W[16]>>>9,Wt=W[16]<<23|W[17]>>>9,Rt=W[26]<<25|W[27]>>>7,Le=W[27]<<25|W[26]>>>7,Ut=W[36]<<21|W[37]>>>11,qe=W[37]<<21|W[36]>>>11,nt=W[47]<<24|W[46]>>>8,ir=W[46]<<24|W[47]>>>8,Qt=W[8]<<27|W[9]>>>5,ke=W[9]<<27|W[8]>>>5,Gt=W[18]<<20|W[19]>>>12,Pe=W[19]<<20|W[18]>>>12,jt=W[29]<<7|W[28]>>>25,Er=W[28]<<7|W[29]>>>25,tt=W[38]<<8|W[39]>>>24,Kt=W[39]<<8|W[38]>>>24,Xe=W[48]<<14|W[49]>>>18,Ht=W[49]<<14|W[48]>>>18,W[0]=At^~Ve&Ie,W[1]=Me^~St&Ze,W[10]=Ae^~Gt&Qe,W[11]=Ke^~Pe&Zt,W[20]=$e^~Se&Rt,W[21]=Vt^~et&Le,W[30]=Qt^~Je&Ue,W[31]=ke^~Xt&st,W[40]=je^~Lr&jt,W[41]=at^~Wt&Er,W[2]=Ve^~Ie&Ut,W[3]=St^~Ze&qe,W[12]=Gt^~Qe&Re,W[13]=Pe^~Zt&Ye,W[22]=Se^~Rt&tt,W[23]=et^~Le&Kt,W[32]=Je^~Ue&rr,W[33]=Xt^~st&We,W[42]=Lr^~jt&kr,W[43]=Wt^~Er&Sr,W[4]=Ie^~Ut&Xe,W[5]=Ze^~qe&Ht,W[14]=Qe^~Re&Jt,W[15]=Zt^~Ye&Ne,W[24]=Rt^~tt&De,W[25]=Le^~Kt&rt,W[34]=Ue^~rr&nt,W[35]=st^~We&ir,W[44]=jt^~kr&Ar,W[45]=Er^~Sr&Mr,W[6]=Ut^~Xe&At,W[7]=qe^~Ht&Me,W[16]=Re^~Jt&Ae,W[17]=Ye^~Ne&Ke,W[26]=tt^~De&$e,W[27]=Kt^~rt&Vt,W[36]=rr^~nt&Qt,W[37]=We^~ir&ke,W[46]=kr^~Ar&je,W[47]=Sr^~Mr&at,W[8]=Xe^~At&Ve,W[9]=Ht^~Me&St,W[18]=Jt^~Ae&Gt,W[19]=Ne^~Ke&Pe,W[28]=De^~$e&Se,W[29]=rt^~Vt&et,W[38]=nt^~Qt&Je,W[39]=ir^~ke&Xt,W[48]=Ar^~je&Lr,W[49]=Mr^~at&Wt,W[0]^=L[ne],W[1]^=L[ne+1]};if(s)XE.exports=h;else{for(_=0;_{"use strict";x();T();var Qht=H1&&H1.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(H1,"__esModule",{value:!0});H1.keccak256=void 0;var Xht=Qht($q()),Yht=Wr();function $ht(r){return"0x"+Xht.default.keccak_256((0,Yht.arrayify)(r))}H1.keccak256=$ht});var qie=O(YE=>{"use strict";x();T();Object.defineProperty(YE,"__esModule",{value:!0});YE.version=void 0;YE.version="rlp/5.7.0"});var $E=O(V1=>{"use strict";x();T();Object.defineProperty(V1,"__esModule",{value:!0});V1.decode=V1.encode=void 0;var Ky=Wr(),hf=ur(),eft=qie(),Jp=new hf.Logger(eft.version);function Die(r){for(var e=[];r;)e.unshift(r&255),r>>=8;return e}function Fie(r,e,t){for(var n=0,a=0;ae+1+n&&Jp.throwError("child data too short",hf.Logger.errors.BUFFER_OVERRUN,{})}return{consumed:1+n,result:a}}function jie(r,e){if(r.length===0&&Jp.throwError("data too short",hf.Logger.errors.BUFFER_OVERRUN,{}),r[e]>=248){var t=r[e]-247;e+1+t>r.length&&Jp.throwError("data short segment too short",hf.Logger.errors.BUFFER_OVERRUN,{});var n=Fie(r,e+1,t);return e+1+t+n>r.length&&Jp.throwError("data long segment too short",hf.Logger.errors.BUFFER_OVERRUN,{}),Uie(r,e,e+1+t,t+n)}else if(r[e]>=192){var a=r[e]-192;return e+1+a>r.length&&Jp.throwError("data array too short",hf.Logger.errors.BUFFER_OVERRUN,{}),Uie(r,e,e+1,a)}else if(r[e]>=184){var t=r[e]-183;e+1+t>r.length&&Jp.throwError("data array too short",hf.Logger.errors.BUFFER_OVERRUN,{});var i=Fie(r,e+1,t);e+1+t+i>r.length&&Jp.throwError("data array too short",hf.Logger.errors.BUFFER_OVERRUN,{});var s=(0,Ky.hexlify)(r.slice(e+1+t,e+1+t+i));return{consumed:1+t+i,result:s}}else if(r[e]>=128){var c=r[e]-128;e+1+c>r.length&&Jp.throwError("data too short",hf.Logger.errors.BUFFER_OVERRUN,{});var s=(0,Ky.hexlify)(r.slice(e+1,e+1+c));return{consumed:1+c,result:s}}return{consumed:1,result:(0,Ky.hexlify)(r[e])}}function rft(r){var e=(0,Ky.arrayify)(r),t=jie(e,0);return t.consumed!==e.length&&Jp.throwArgumentError("invalid rlp data","data",r),t.result}V1.decode=rft});var zie=O(ek=>{"use strict";x();T();Object.defineProperty(ek,"__esModule",{value:!0});ek.version=void 0;ek.version="address/5.7.0"});var Sl=O(kl=>{"use strict";x();T();Object.defineProperty(kl,"__esModule",{value:!0});kl.getCreate2Address=kl.getContractAddress=kl.getIcapAddress=kl.isAddress=kl.getAddress=void 0;var ff=Wr(),eD=es(),tD=Qu(),nft=$E(),aft=ur(),ift=zie(),qm=new aft.Logger(ift.version);function Hie(r){(0,ff.isHexString)(r,20)||qm.throwArgumentError("invalid address","address",r),r=r.toLowerCase();for(var e=r.substring(2).split(""),t=new Uint8Array(40),n=0;n<40;n++)t[n]=e[n].charCodeAt(0);for(var a=(0,ff.arrayify)((0,tD.keccak256)(t)),n=0;n<40;n+=2)a[n>>1]>>4>=8&&(e[n]=e[n].toUpperCase()),(a[n>>1]&15)>=8&&(e[n+1]=e[n+1].toUpperCase());return"0x"+e.join("")}var sft=9007199254740991;function oft(r){return Math.log10?Math.log10(r):Math.log(r)/Math.LN10}var rD={};for(Wd=0;Wd<10;Wd++)rD[String(Wd)]=String(Wd);var Wd;for(Wd=0;Wd<26;Wd++)rD[String.fromCharCode(65+Wd)]=String(10+Wd);var Wd,Vie=Math.floor(oft(sft));function Gie(r){r=r.toUpperCase(),r=r.substring(4)+r.substring(0,2)+"00";for(var e=r.split("").map(function(a){return rD[a]}).join("");e.length>=Vie;){var t=e.substring(0,Vie);e=parseInt(t,10)%97+e.substring(t.length)}for(var n=String(98-parseInt(e,10)%97);n.length<2;)n="0"+n;return n}function Qy(r){var e=null;if(typeof r!="string"&&qm.throwArgumentError("invalid address","address",r),r.match(/^(0x)?[0-9a-fA-F]{40}$/))r.substring(0,2)!=="0x"&&(r="0x"+r),e=Hie(r),r.match(/([A-F].*[a-f])|([a-f].*[A-F])/)&&e!==r&&qm.throwArgumentError("bad address checksum","address",r);else if(r.match(/^XE[0-9]{2}[0-9A-Za-z]{30,31}$/)){for(r.substring(2,4)!==Gie(r)&&qm.throwArgumentError("bad icap checksum","address",r),e=(0,eD._base36To16)(r.substring(4));e.length<40;)e="0"+e;e=Hie("0x"+e)}else qm.throwArgumentError("invalid address","address",r);return e}kl.getAddress=Qy;function cft(r){try{return Qy(r),!0}catch{}return!1}kl.isAddress=cft;function uft(r){for(var e=(0,eD._base16To36)(Qy(r).substring(2)).toUpperCase();e.length<30;)e="0"+e;return"XE"+Gie("XE00"+e)+e}kl.getIcapAddress=uft;function lft(r){var e=null;try{e=Qy(r.from)}catch{qm.throwArgumentError("missing from address","transaction",r)}var t=(0,ff.stripZeros)((0,ff.arrayify)(eD.BigNumber.from(r.nonce).toHexString()));return Qy((0,ff.hexDataSlice)((0,tD.keccak256)((0,nft.encode)([e,t])),12))}kl.getContractAddress=lft;function dft(r,e,t){return(0,ff.hexDataLength)(e)!==32&&qm.throwArgumentError("salt must be 32 bytes","salt",e),(0,ff.hexDataLength)(t)!==32&&qm.throwArgumentError("initCodeHash must be 32 bytes","initCodeHash",t),Qy((0,ff.hexDataSlice)((0,tD.keccak256)((0,ff.concat)(["0xff",Qy(r),e,t])),12))}kl.getCreate2Address=dft});var Jie=O(G1=>{"use strict";x();T();var pft=G1&&G1.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(G1,"__esModule",{value:!0});G1.AddressCoder=void 0;var Zie=Sl(),hft=Wr(),fft=El(),mft=function(r){pft(e,r);function e(t){return r.call(this,"address","address",t,!1)||this}return e.prototype.defaultValue=function(){return"0x0000000000000000000000000000000000000000"},e.prototype.encode=function(t,n){try{n=(0,Zie.getAddress)(n)}catch(a){this._throwError(a.message,n)}return t.writeValue(n)},e.prototype.decode=function(t){return(0,Zie.getAddress)((0,hft.hexZeroPad)(t.readValue().toHexString(),20))},e}(fft.Coder);G1.AddressCoder=mft});var Kie=O(Z1=>{"use strict";x();T();var yft=Z1&&Z1.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(Z1,"__esModule",{value:!0});Z1.AnonymousCoder=void 0;var gft=El(),vft=function(r){yft(e,r);function e(t){var n=r.call(this,t.name,t.type,void 0,t.dynamic)||this;return n.coder=t,n}return e.prototype.defaultValue=function(){return this.coder.defaultValue()},e.prototype.encode=function(t,n){return this.coder.encode(t,n)},e.prototype.decode=function(t){return this.coder.decode(t)},e}(gft.Coder);Z1.AnonymousCoder=vft});var aD=O(Kp=>{"use strict";x();T();var bft=Kp&&Kp.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(Kp,"__esModule",{value:!0});Kp.ArrayCoder=Kp.unpack=Kp.pack=void 0;var K1=ur(),wft=j1(),J1=new K1.Logger(wft.version),nD=El(),xft=Kie();function Qie(r,e,t){var n=null;if(Array.isArray(t))n=t;else if(t&&typeof t=="object"){var a={};n=e.map(function(d){var f=d.localName;return f||J1.throwError("cannot encode object for signature with missing names",K1.Logger.errors.INVALID_ARGUMENT,{argument:"values",coder:d,value:t}),a[f]&&J1.throwError("cannot encode object for signature with duplicate names",K1.Logger.errors.INVALID_ARGUMENT,{argument:"values",coder:d,value:t}),a[f]=!0,t[f]})}else J1.throwArgumentError("invalid tuple value","tuple",t);e.length!==n.length&&J1.throwArgumentError("types/value length mismatch","tuple",t);var i=new nD.Writer(r.wordSize),s=new nD.Writer(r.wordSize),c=[];e.forEach(function(d,f){var w=n[f];if(d.dynamic){var E=s.length;d.encode(s,w);var k=i.writeUpdatableValue();c.push(function(A){k(A+E)})}else d.encode(i,w)}),c.forEach(function(d){d(i.length)});var l=r.appendWriter(i);return l+=r.appendWriter(s),l}Kp.pack=Qie;function Xie(r,e){var t=[],n=r.subReader(0);e.forEach(function(c){var l=null;if(c.dynamic){var d=r.readValue(),f=n.subReader(d.toNumber());try{l=c.decode(f)}catch(w){if(w.code===K1.Logger.errors.BUFFER_OVERRUN)throw w;l=w,l.baseType=c.name,l.name=c.localName,l.type=c.type}}else try{l=c.decode(r)}catch(w){if(w.code===K1.Logger.errors.BUFFER_OVERRUN)throw w;l=w,l.baseType=c.name,l.name=c.localName,l.type=c.type}l!=null&&t.push(l)});var a=e.reduce(function(c,l){var d=l.localName;return d&&(c[d]||(c[d]=0),c[d]++),c},{});e.forEach(function(c,l){var d=c.localName;if(!(!d||a[d]!==1)&&(d==="length"&&(d="_length"),t[d]==null)){var f=t[l];f instanceof Error?Object.defineProperty(t,d,{enumerable:!0,get:function(){throw f}}):t[d]=f}});for(var i=function(c){var l=t[c];l instanceof Error&&Object.defineProperty(t,c,{enumerable:!0,get:function(){throw l}})},s=0;s=0?n:"")+"]",c=n===-1||t.dynamic;return i=r.call(this,"array",s,a,c)||this,i.coder=t,i.length=n,i}return e.prototype.defaultValue=function(){for(var t=this.coder.defaultValue(),n=[],a=0;at._data.length&&J1.throwError("insufficient data length",K1.Logger.errors.BUFFER_OVERRUN,{length:t._data.length,count:n}));for(var a=[],i=0;i{"use strict";x();T();var _ft=Q1&&Q1.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(Q1,"__esModule",{value:!0});Q1.BooleanCoder=void 0;var Cft=El(),Eft=function(r){_ft(e,r);function e(t){return r.call(this,"bool","bool",t,!1)||this}return e.prototype.defaultValue=function(){return!1},e.prototype.encode=function(t,n){return t.writeValue(n?1:0)},e.prototype.decode=function(t){return t.coerce(this.type,!t.readValue().isZero())},e}(Cft.Coder);Q1.BooleanCoder=Eft});var iD=O(Dm=>{"use strict";x();T();var $ie=Dm&&Dm.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(Dm,"__esModule",{value:!0});Dm.BytesCoder=Dm.DynamicBytesCoder=void 0;var ese=Wr(),kft=El(),tse=function(r){$ie(e,r);function e(t,n){return r.call(this,t,t,n,!0)||this}return e.prototype.defaultValue=function(){return"0x"},e.prototype.encode=function(t,n){n=(0,ese.arrayify)(n);var a=t.writeValue(n.length);return a+=t.writeBytes(n),a},e.prototype.decode=function(t){return t.readBytes(t.readValue().toNumber(),!0)},e}(kft.Coder);Dm.DynamicBytesCoder=tse;var Sft=function(r){$ie(e,r);function e(t){return r.call(this,"bytes",t)||this}return e.prototype.decode=function(t){return t.coerce(this.name,(0,ese.hexlify)(r.prototype.decode.call(this,t)))},e}(tse);Dm.BytesCoder=Sft});var nse=O(X1=>{"use strict";x();T();var Aft=X1&&X1.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(X1,"__esModule",{value:!0});X1.FixedBytesCoder=void 0;var rse=Wr(),Mft=El(),Ift=function(r){Aft(e,r);function e(t,n){var a=this,i="bytes"+String(t);return a=r.call(this,i,i,n,!1)||this,a.size=t,a}return e.prototype.defaultValue=function(){return"0x0000000000000000000000000000000000000000000000000000000000000000".substring(0,2+this.size*2)},e.prototype.encode=function(t,n){var a=(0,rse.arrayify)(n);return a.length!==this.size&&this._throwError("incorrect data length",n),t.writeBytes(a)},e.prototype.decode=function(t){return t.coerce(this.name,(0,rse.hexlify)(t.readBytes(this.size)))},e}(Mft.Coder);X1.FixedBytesCoder=Ift});var ase=O(Y1=>{"use strict";x();T();var Pft=Y1&&Y1.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(Y1,"__esModule",{value:!0});Y1.NullCoder=void 0;var Rft=El(),Nft=function(r){Pft(e,r);function e(t){return r.call(this,"null","",t,!1)||this}return e.prototype.defaultValue=function(){return null},e.prototype.encode=function(t,n){return n!=null&&this._throwError("not null",n),t.writeBytes([])},e.prototype.decode=function(t){return t.readBytes(0),t.coerce(this.name,null)},e}(Rft.Coder);Y1.NullCoder=Nft});var ise=O(tk=>{"use strict";x();T();Object.defineProperty(tk,"__esModule",{value:!0});tk.AddressZero=void 0;tk.AddressZero="0x0000000000000000000000000000000000000000"});var sse=O(Ls=>{"use strict";x();T();Object.defineProperty(Ls,"__esModule",{value:!0});Ls.MaxInt256=Ls.MinInt256=Ls.MaxUint256=Ls.WeiPerEther=Ls.Two=Ls.One=Ls.Zero=Ls.NegativeOne=void 0;var Fm=es(),Oft=Fm.BigNumber.from(-1);Ls.NegativeOne=Oft;var Lft=Fm.BigNumber.from(0);Ls.Zero=Lft;var Bft=Fm.BigNumber.from(1);Ls.One=Bft;var qft=Fm.BigNumber.from(2);Ls.Two=qft;var Dft=Fm.BigNumber.from("1000000000000000000");Ls.WeiPerEther=Dft;var Fft=Fm.BigNumber.from("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");Ls.MaxUint256=Fft;var Uft=Fm.BigNumber.from("-0x8000000000000000000000000000000000000000000000000000000000000000");Ls.MinInt256=Uft;var Wft=Fm.BigNumber.from("0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");Ls.MaxInt256=Wft});var ose=O(rk=>{"use strict";x();T();Object.defineProperty(rk,"__esModule",{value:!0});rk.HashZero=void 0;rk.HashZero="0x0000000000000000000000000000000000000000000000000000000000000000"});var cse=O(nk=>{"use strict";x();T();Object.defineProperty(nk,"__esModule",{value:!0});nk.EtherSymbol=void 0;nk.EtherSymbol="\u039E"});var Xy=O(xi=>{"use strict";x();T();Object.defineProperty(xi,"__esModule",{value:!0});xi.EtherSymbol=xi.HashZero=xi.MaxInt256=xi.MinInt256=xi.MaxUint256=xi.WeiPerEther=xi.Two=xi.One=xi.Zero=xi.NegativeOne=xi.AddressZero=void 0;var jft=ise();Object.defineProperty(xi,"AddressZero",{enumerable:!0,get:function(){return jft.AddressZero}});var Um=sse();Object.defineProperty(xi,"NegativeOne",{enumerable:!0,get:function(){return Um.NegativeOne}});Object.defineProperty(xi,"Zero",{enumerable:!0,get:function(){return Um.Zero}});Object.defineProperty(xi,"One",{enumerable:!0,get:function(){return Um.One}});Object.defineProperty(xi,"Two",{enumerable:!0,get:function(){return Um.Two}});Object.defineProperty(xi,"WeiPerEther",{enumerable:!0,get:function(){return Um.WeiPerEther}});Object.defineProperty(xi,"MaxUint256",{enumerable:!0,get:function(){return Um.MaxUint256}});Object.defineProperty(xi,"MinInt256",{enumerable:!0,get:function(){return Um.MinInt256}});Object.defineProperty(xi,"MaxInt256",{enumerable:!0,get:function(){return Um.MaxInt256}});var zft=ose();Object.defineProperty(xi,"HashZero",{enumerable:!0,get:function(){return zft.HashZero}});var Hft=cse();Object.defineProperty(xi,"EtherSymbol",{enumerable:!0,get:function(){return Hft.EtherSymbol}})});var use=O($1=>{"use strict";x();T();var Vft=$1&&$1.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty($1,"__esModule",{value:!0});$1.NumberCoder=void 0;var Gft=es(),ak=Xy(),Zft=El(),Jft=function(r){Vft(e,r);function e(t,n,a){var i=this,s=(n?"int":"uint")+t*8;return i=r.call(this,s,s,a,!1)||this,i.size=t,i.signed=n,i}return e.prototype.defaultValue=function(){return 0},e.prototype.encode=function(t,n){var a=Gft.BigNumber.from(n),i=ak.MaxUint256.mask(t.wordSize*8);if(this.signed){var s=i.mask(this.size*8-1);(a.gt(s)||a.lt(s.add(ak.One).mul(ak.NegativeOne)))&&this._throwError("value out-of-bounds",n)}else(a.lt(ak.Zero)||a.gt(i.mask(this.size*8)))&&this._throwError("value out-of-bounds",n);return a=a.toTwos(this.size*8).mask(this.size*8),this.signed&&(a=a.fromTwos(this.size*8).toTwos(8*t.wordSize)),t.writeValue(a)},e.prototype.decode=function(t){var n=t.readValue().mask(this.size*8);return this.signed&&(n=n.fromTwos(this.size*8)),t.coerce(this.name,n)},e}(Zft.Coder);$1.NumberCoder=Jft});var lse=O(ik=>{"use strict";x();T();Object.defineProperty(ik,"__esModule",{value:!0});ik.version=void 0;ik.version="strings/5.7.0"});var ok=O(Gi=>{"use strict";x();T();Object.defineProperty(Gi,"__esModule",{value:!0});Gi.toUtf8CodePoints=Gi.toUtf8String=Gi._toUtf8String=Gi._toEscapedUtf8String=Gi.toUtf8Bytes=Gi.Utf8ErrorFuncs=Gi.Utf8ErrorReason=Gi.UnicodeNormalizationForm=void 0;var dse=Wr(),Kft=ur(),Qft=lse(),pse=new Kft.Logger(Qft.version),sk;(function(r){r.current="",r.NFC="NFC",r.NFD="NFD",r.NFKC="NFKC",r.NFKD="NFKD"})(sk=Gi.UnicodeNormalizationForm||(Gi.UnicodeNormalizationForm={}));var Al;(function(r){r.UNEXPECTED_CONTINUE="unexpected continuation byte",r.BAD_PREFIX="bad codepoint prefix",r.OVERRUN="string overrun",r.MISSING_CONTINUE="missing continuation byte",r.OUT_OF_RANGE="out of UTF-8 range",r.UTF16_SURROGATE="UTF-16 surrogate",r.OVERLONG="overlong representation"})(Al=Gi.Utf8ErrorReason||(Gi.Utf8ErrorReason={}));function Xft(r,e,t,n,a){return pse.throwArgumentError("invalid codepoint at offset "+e+"; "+r,"bytes",t)}function hse(r,e,t,n,a){if(r===Al.BAD_PREFIX||r===Al.UNEXPECTED_CONTINUE){for(var i=0,s=e+1;s>6===2;s++)i++;return i}return r===Al.OVERRUN?t.length-e-1:0}function Yft(r,e,t,n,a){return r===Al.OVERLONG?(n.push(a),0):(n.push(65533),hse(r,e,t,n,a))}Gi.Utf8ErrorFuncs=Object.freeze({error:Xft,ignore:hse,replace:Yft});function oD(r,e){e==null&&(e=Gi.Utf8ErrorFuncs.error),r=(0,dse.arrayify)(r);for(var t=[],n=0;n>7===0){t.push(a);continue}var i=null,s=null;if((a&224)===192)i=1,s=127;else if((a&240)===224)i=2,s=2047;else if((a&248)===240)i=3,s=65535;else{(a&192)===128?n+=e(Al.UNEXPECTED_CONTINUE,n-1,r,t):n+=e(Al.BAD_PREFIX,n-1,r,t);continue}if(n-1+i>=r.length){n+=e(Al.OVERRUN,n-1,r,t);continue}for(var c=a&(1<<8-i-1)-1,l=0;l1114111){n+=e(Al.OUT_OF_RANGE,n-1-i,r,t,c);continue}if(c>=55296&&c<=57343){n+=e(Al.UTF16_SURROGATE,n-1-i,r,t,c);continue}if(c<=s){n+=e(Al.OVERLONG,n-1-i,r,t,c);continue}t.push(c)}}return t}function fse(r,e){e===void 0&&(e=sk.current),e!=sk.current&&(pse.checkNormalize(),r=r.normalize(e));for(var t=[],n=0;n>6|192),t.push(a&63|128);else if((a&64512)==55296){n++;var i=r.charCodeAt(n);if(n>=r.length||(i&64512)!==56320)throw new Error("invalid utf-8 string");var s=65536+((a&1023)<<10)+(i&1023);t.push(s>>18|240),t.push(s>>12&63|128),t.push(s>>6&63|128),t.push(s&63|128)}else t.push(a>>12|224),t.push(a>>6&63|128),t.push(a&63|128)}return(0,dse.arrayify)(t)}Gi.toUtf8Bytes=fse;function sD(r){var e="0000"+r.toString(16);return"\\u"+e.substring(e.length-4)}function $ft(r,e){return'"'+oD(r,e).map(function(t){if(t<256){switch(t){case 8:return"\\b";case 9:return"\\t";case 10:return"\\n";case 13:return"\\r";case 34:return'\\"';case 92:return"\\\\"}if(t>=32&&t<127)return String.fromCharCode(t)}return t<=65535?sD(t):(t-=65536,sD((t>>10&1023)+55296)+sD((t&1023)+56320))}).join("")+'"'}Gi._toEscapedUtf8String=$ft;function mse(r){return r.map(function(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode((e>>10&1023)+55296,(e&1023)+56320))}).join("")}Gi._toUtf8String=mse;function emt(r,e){return mse(oD(r,e))}Gi.toUtf8String=emt;function tmt(r,e){return e===void 0&&(e=sk.current),oD(fse(r,e))}Gi.toUtf8CodePoints=tmt});var gse=O(eb=>{"use strict";x();T();Object.defineProperty(eb,"__esModule",{value:!0});eb.parseBytes32String=eb.formatBytes32String=void 0;var rmt=Xy(),cD=Wr(),yse=ok();function nmt(r){var e=(0,yse.toUtf8Bytes)(r);if(e.length>31)throw new Error("bytes32 string must be less than 32 bytes");return(0,cD.hexlify)((0,cD.concat)([e,rmt.HashZero]).slice(0,32))}eb.formatBytes32String=nmt;function amt(r){var e=(0,cD.arrayify)(r);if(e.length!==32)throw new Error("invalid bytes32 - not 32 bytes long");if(e[31]!==0)throw new Error("invalid bytes32 string - no null terminator");for(var t=31;e[t-1]===0;)t--;return(0,yse.toUtf8String)(e.slice(0,t))}eb.parseBytes32String=amt});var Tse=O(Qp=>{"use strict";x();T();Object.defineProperty(Qp,"__esModule",{value:!0});Qp.nameprep=Qp._nameprepTableC=Qp._nameprepTableB2=Qp._nameprepTableA1=void 0;var P3=ok();function imt(r){if(r.length%4!==0)throw new Error("bad data");for(var e=[],t=0;t=t&&r<=t+a.h&&(r-t)%(a.d||1)===0){if(a.e&&a.e.indexOf(r-t)!==-1)continue;return a}}return null}var smt=vse("221,13-1b,5f-,40-10,51-f,11-3,3-3,2-2,2-4,8,2,15,2d,28-8,88,48,27-,3-5,11-20,27-,8,28,3-5,12,18,b-a,1c-4,6-16,2-d,2-2,2,1b-4,17-9,8f-,10,f,1f-2,1c-34,33-14e,4,36-,13-,6-2,1a-f,4,9-,3-,17,8,2-2,5-,2,8-,3-,4-8,2-3,3,6-,16-6,2-,7-3,3-,17,8,3,3,3-,2,6-3,3-,4-a,5,2-6,10-b,4,8,2,4,17,8,3,6-,b,4,4-,2-e,2-4,b-10,4,9-,3-,17,8,3-,5-,9-2,3-,4-7,3-3,3,4-3,c-10,3,7-2,4,5-2,3,2,3-2,3-2,4-2,9,4-3,6-2,4,5-8,2-e,d-d,4,9,4,18,b,6-3,8,4,5-6,3-8,3-3,b-11,3,9,4,18,b,6-3,8,4,5-6,3-6,2,3-3,b-11,3,9,4,18,11-3,7-,4,5-8,2-7,3-3,b-11,3,13-2,19,a,2-,8-2,2-3,7,2,9-11,4-b,3b-3,1e-24,3,2-,3,2-,2-5,5,8,4,2,2-,3,e,4-,6,2,7-,b-,3-21,49,23-5,1c-3,9,25,10-,2-2f,23,6,3,8-2,5-5,1b-45,27-9,2a-,2-3,5b-4,45-4,53-5,8,40,2,5-,8,2,5-,28,2,5-,20,2,5-,8,2,5-,8,8,18,20,2,5-,8,28,14-5,1d-22,56-b,277-8,1e-2,52-e,e,8-a,18-8,15-b,e,4,3-b,5e-2,b-15,10,b-5,59-7,2b-555,9d-3,5b-5,17-,7-,27-,7-,9,2,2,2,20-,36,10,f-,7,14-,4,a,54-3,2-6,6-5,9-,1c-10,13-1d,1c-14,3c-,10-6,32-b,240-30,28-18,c-14,a0,115-,3,66-,b-76,5,5-,1d,24,2,5-2,2,8-,35-2,19,f-10,1d-3,311-37f,1b,5a-b,d7-19,d-3,41,57-,68-4,29-3,5f,29-37,2e-2,25-c,2c-2,4e-3,30,78-3,64-,20,19b7-49,51a7-59,48e-2,38-738,2ba5-5b,222f-,3c-94,8-b,6-4,1b,6,2,3,3,6d-20,16e-f,41-,37-7,2e-2,11-f,5-b,18-,b,14,5-3,6,88-,2,bf-2,7-,7-,7-,4-2,8,8-9,8-2ff,20,5-b,1c-b4,27-,27-cbb1,f7-9,28-2,b5-221,56,48,3-,2-,3-,5,d,2,5,3,42,5-,9,8,1d,5,6,2-2,8,153-3,123-3,33-27fd,a6da-5128,21f-5df,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3,2-1d,61-ff7d"),omt="ad,34f,1806,180b,180c,180d,200b,200c,200d,2060,feff".split(",").map(function(r){return parseInt(r,16)}),cmt=[{h:25,s:32,l:65},{h:30,s:32,e:[23],l:127},{h:54,s:1,e:[48],l:64,d:2},{h:14,s:1,l:57,d:2},{h:44,s:1,l:17,d:2},{h:10,s:1,e:[2,6,8],l:61,d:2},{h:16,s:1,l:68,d:2},{h:84,s:1,e:[18,24,66],l:19,d:2},{h:26,s:32,e:[17],l:435},{h:22,s:1,l:71,d:2},{h:15,s:80,l:40},{h:31,s:32,l:16},{h:32,s:1,l:80,d:2},{h:52,s:1,l:42,d:2},{h:12,s:1,l:55,d:2},{h:40,s:1,e:[38],l:15,d:2},{h:14,s:1,l:48,d:2},{h:37,s:48,l:49},{h:148,s:1,l:6351,d:2},{h:88,s:1,l:160,d:2},{h:15,s:16,l:704},{h:25,s:26,l:854},{h:25,s:32,l:55915},{h:37,s:40,l:1247},{h:25,s:-119711,l:53248},{h:25,s:-119763,l:52},{h:25,s:-119815,l:52},{h:25,s:-119867,e:[1,4,5,7,8,11,12,17],l:52},{h:25,s:-119919,l:52},{h:24,s:-119971,e:[2,7,8,17],l:52},{h:24,s:-120023,e:[2,7,13,15,16,17],l:52},{h:25,s:-120075,l:52},{h:25,s:-120127,l:52},{h:25,s:-120179,l:52},{h:25,s:-120231,l:52},{h:25,s:-120283,l:52},{h:25,s:-120335,l:52},{h:24,s:-119543,e:[17],l:56},{h:24,s:-119601,e:[17],l:58},{h:24,s:-119659,e:[17],l:58},{h:24,s:-119717,e:[17],l:58},{h:24,s:-119775,e:[17],l:58}],umt=uD("b5:3bc,c3:ff,7:73,2:253,5:254,3:256,1:257,5:259,1:25b,3:260,1:263,2:269,1:268,5:26f,1:272,2:275,7:280,3:283,5:288,3:28a,1:28b,5:292,3f:195,1:1bf,29:19e,125:3b9,8b:3b2,1:3b8,1:3c5,3:3c6,1:3c0,1a:3ba,1:3c1,1:3c3,2:3b8,1:3b5,1bc9:3b9,1c:1f76,1:1f77,f:1f7a,1:1f7b,d:1f78,1:1f79,1:1f7c,1:1f7d,107:63,5:25b,4:68,1:68,1:68,3:69,1:69,1:6c,3:6e,4:70,1:71,1:72,1:72,1:72,7:7a,2:3c9,2:7a,2:6b,1:e5,1:62,1:63,3:65,1:66,2:6d,b:3b3,1:3c0,6:64,1b574:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3"),lmt=uD("179:1,2:1,2:1,5:1,2:1,a:4f,a:1,8:1,2:1,2:1,3:1,5:1,3:1,4:1,2:1,3:1,4:1,8:2,1:1,2:2,1:1,2:2,27:2,195:26,2:25,1:25,1:25,2:40,2:3f,1:3f,33:1,11:-6,1:-9,1ac7:-3a,6d:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,b:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,c:-8,2:-8,2:-8,2:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,49:-8,1:-8,1:-4a,1:-4a,d:-56,1:-56,1:-56,1:-56,d:-8,1:-8,f:-8,1:-8,3:-7"),dmt=uD("df:00730073,51:00690307,19:02BC006E,a7:006A030C,18a:002003B9,16:03B903080301,20:03C503080301,1d7:05650582,190f:00680331,1:00740308,1:0077030A,1:0079030A,1:006102BE,b6:03C50313,2:03C503130300,2:03C503130301,2:03C503130342,2a:1F0003B9,1:1F0103B9,1:1F0203B9,1:1F0303B9,1:1F0403B9,1:1F0503B9,1:1F0603B9,1:1F0703B9,1:1F0003B9,1:1F0103B9,1:1F0203B9,1:1F0303B9,1:1F0403B9,1:1F0503B9,1:1F0603B9,1:1F0703B9,1:1F2003B9,1:1F2103B9,1:1F2203B9,1:1F2303B9,1:1F2403B9,1:1F2503B9,1:1F2603B9,1:1F2703B9,1:1F2003B9,1:1F2103B9,1:1F2203B9,1:1F2303B9,1:1F2403B9,1:1F2503B9,1:1F2603B9,1:1F2703B9,1:1F6003B9,1:1F6103B9,1:1F6203B9,1:1F6303B9,1:1F6403B9,1:1F6503B9,1:1F6603B9,1:1F6703B9,1:1F6003B9,1:1F6103B9,1:1F6203B9,1:1F6303B9,1:1F6403B9,1:1F6503B9,1:1F6603B9,1:1F6703B9,3:1F7003B9,1:03B103B9,1:03AC03B9,2:03B10342,1:03B1034203B9,5:03B103B9,6:1F7403B9,1:03B703B9,1:03AE03B9,2:03B70342,1:03B7034203B9,5:03B703B9,6:03B903080300,1:03B903080301,3:03B90342,1:03B903080342,b:03C503080300,1:03C503080301,1:03C10313,2:03C50342,1:03C503080342,b:1F7C03B9,1:03C903B9,1:03CE03B9,2:03C90342,1:03C9034203B9,5:03C903B9,ac:00720073,5b:00B00063,6:00B00066,d:006E006F,a:0073006D,1:00740065006C,1:0074006D,124f:006800700061,2:00610075,2:006F0076,b:00700061,1:006E0061,1:03BC0061,1:006D0061,1:006B0061,1:006B0062,1:006D0062,1:00670062,3:00700066,1:006E0066,1:03BC0066,4:0068007A,1:006B0068007A,1:006D0068007A,1:00670068007A,1:00740068007A,15:00700061,1:006B00700061,1:006D00700061,1:006700700061,8:00700076,1:006E0076,1:03BC0076,1:006D0076,1:006B0076,1:006D0076,1:00700077,1:006E0077,1:03BC0077,1:006D0077,1:006B0077,1:006D0077,1:006B03C9,1:006D03C9,2:00620071,3:00632215006B0067,1:0063006F002E,1:00640062,1:00670079,2:00680070,2:006B006B,1:006B006D,9:00700068,2:00700070006D,1:00700072,2:00730076,1:00770062,c723:00660066,1:00660069,1:0066006C,1:006600660069,1:00660066006C,1:00730074,1:00730074,d:05740576,1:05740565,1:0574056B,1:057E0576,1:0574056D",imt),pmt=vse("80-20,2a0-,39c,32,f71,18e,7f2-f,19-7,30-4,7-5,f81-b,5,a800-20ff,4d1-1f,110,fa-6,d174-7,2e84-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,2,1f-5f,ff7f-20001");function hmt(r){return r.reduce(function(e,t){return t.forEach(function(n){e.push(n)}),e},[])}function bse(r){return!!lD(r,smt)}Qp._nameprepTableA1=bse;function wse(r){var e=lD(r,cmt);if(e)return[r+e.s];var t=umt[r];if(t)return t;var n=lmt[r];if(n)return[r+n[0]];var a=dmt[r];return a||null}Qp._nameprepTableB2=wse;function xse(r){return!!lD(r,pmt)}Qp._nameprepTableC=xse;function fmt(r){if(r.match(/^[a-z0-9-]*$/i)&&r.length<=59)return r.toLowerCase();var e=(0,P3.toUtf8CodePoints)(r);e=hmt(e.map(function(n){if(omt.indexOf(n)>=0)return[];if(n>=65024&&n<=65039)return[];var a=wse(n);return a||[n]})),e=(0,P3.toUtf8CodePoints)((0,P3._toUtf8String)(e),P3.UnicodeNormalizationForm.NFKC),e.forEach(function(n){if(xse(n))throw new Error("STRINGPREP_CONTAINS_PROHIBITED")}),e.forEach(function(n){if(bse(n))throw new Error("STRINGPREP_CONTAINS_UNASSIGNED")});var t=(0,P3._toUtf8String)(e);if(t.substring(0,1)==="-"||t.substring(2,4)==="--"||t.substring(t.length-1)==="-")throw new Error("invalid hyphen");return t}Qp.nameprep=fmt});var rs=O(Fi=>{"use strict";x();T();Object.defineProperty(Fi,"__esModule",{value:!0});Fi.nameprep=Fi.parseBytes32String=Fi.formatBytes32String=Fi.UnicodeNormalizationForm=Fi.Utf8ErrorReason=Fi.Utf8ErrorFuncs=Fi.toUtf8String=Fi.toUtf8CodePoints=Fi.toUtf8Bytes=Fi._toEscapedUtf8String=void 0;var _se=gse();Object.defineProperty(Fi,"formatBytes32String",{enumerable:!0,get:function(){return _se.formatBytes32String}});Object.defineProperty(Fi,"parseBytes32String",{enumerable:!0,get:function(){return _se.parseBytes32String}});var mmt=Tse();Object.defineProperty(Fi,"nameprep",{enumerable:!0,get:function(){return mmt.nameprep}});var Yy=ok();Object.defineProperty(Fi,"_toEscapedUtf8String",{enumerable:!0,get:function(){return Yy._toEscapedUtf8String}});Object.defineProperty(Fi,"toUtf8Bytes",{enumerable:!0,get:function(){return Yy.toUtf8Bytes}});Object.defineProperty(Fi,"toUtf8CodePoints",{enumerable:!0,get:function(){return Yy.toUtf8CodePoints}});Object.defineProperty(Fi,"toUtf8String",{enumerable:!0,get:function(){return Yy.toUtf8String}});Object.defineProperty(Fi,"UnicodeNormalizationForm",{enumerable:!0,get:function(){return Yy.UnicodeNormalizationForm}});Object.defineProperty(Fi,"Utf8ErrorFuncs",{enumerable:!0,get:function(){return Yy.Utf8ErrorFuncs}});Object.defineProperty(Fi,"Utf8ErrorReason",{enumerable:!0,get:function(){return Yy.Utf8ErrorReason}})});var Ese=O(tb=>{"use strict";x();T();var ymt=tb&&tb.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(tb,"__esModule",{value:!0});tb.StringCoder=void 0;var Cse=rs(),gmt=iD(),vmt=function(r){ymt(e,r);function e(t){return r.call(this,"string",t)||this}return e.prototype.defaultValue=function(){return""},e.prototype.encode=function(t,n){return r.prototype.encode.call(this,t,(0,Cse.toUtf8Bytes)(n))},e.prototype.decode=function(t){return(0,Cse.toUtf8String)(r.prototype.decode.call(this,t))},e}(gmt.DynamicBytesCoder);tb.StringCoder=vmt});var Sse=O(rb=>{"use strict";x();T();var bmt=rb&&rb.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(rb,"__esModule",{value:!0});rb.TupleCoder=void 0;var wmt=El(),kse=aD(),xmt=function(r){bmt(e,r);function e(t,n){var a=this,i=!1,s=[];t.forEach(function(l){l.dynamic&&(i=!0),s.push(l.type)});var c="tuple("+s.join(",")+")";return a=r.call(this,"tuple",c,n,i)||this,a.coders=t,a}return e.prototype.defaultValue=function(){var t=[];this.coders.forEach(function(a){t.push(a.defaultValue())});var n=this.coders.reduce(function(a,i){var s=i.localName;return s&&(a[s]||(a[s]=0),a[s]++),a},{});return this.coders.forEach(function(a,i){var s=a.localName;!s||n[s]!==1||(s==="length"&&(s="_length"),t[s]==null&&(t[s]=t[i]))}),Object.freeze(t)},e.prototype.encode=function(t,n){return(0,kse.pack)(t,this.coders,n)},e.prototype.decode=function(t){return t.coerce(this.name,(0,kse.unpack)(t,this.coders))},e}(wmt.Coder);rb.TupleCoder=xmt});var pD=O(nb=>{"use strict";x();T();Object.defineProperty(nb,"__esModule",{value:!0});nb.defaultAbiCoder=nb.AbiCoder=void 0;var Tmt=Wr(),_mt=Xa(),Mse=ur(),Cmt=j1(),ck=new Mse.Logger(Cmt.version),Ase=El(),Emt=Jie(),kmt=aD(),Smt=Yie(),Amt=iD(),Mmt=nse(),Imt=ase(),Pmt=use(),Rmt=Ese(),uk=Sse(),dD=QE(),Nmt=new RegExp(/^bytes([0-9]*)$/),Omt=new RegExp(/^(u?int)([0-9]*)$/),Ise=function(){function r(e){(0,_mt.defineReadOnly)(this,"coerceFunc",e||null)}return r.prototype._getCoder=function(e){var t=this;switch(e.baseType){case"address":return new Emt.AddressCoder(e.name);case"bool":return new Smt.BooleanCoder(e.name);case"string":return new Rmt.StringCoder(e.name);case"bytes":return new Amt.BytesCoder(e.name);case"array":return new kmt.ArrayCoder(this._getCoder(e.arrayChildren),e.arrayLength,e.name);case"tuple":return new uk.TupleCoder((e.components||[]).map(function(i){return t._getCoder(i)}),e.name);case"":return new Imt.NullCoder(e.name)}var n=e.type.match(Omt);if(n){var a=parseInt(n[2]||"256");return(a===0||a>256||a%8!==0)&&ck.throwArgumentError("invalid "+n[1]+" bit length","param",e),new Pmt.NumberCoder(a/8,n[1]==="int",e.name)}if(n=e.type.match(Nmt),n){var a=parseInt(n[1]);return(a===0||a>32)&&ck.throwArgumentError("invalid bytes length","param",e),new Mmt.FixedBytesCoder(a,e.name)}return ck.throwArgumentError("invalid type","type",e.type)},r.prototype._getWordSize=function(){return 32},r.prototype._getReader=function(e,t){return new Ase.Reader(e,this._getWordSize(),this.coerceFunc,t)},r.prototype._getWriter=function(){return new Ase.Writer(this._getWordSize())},r.prototype.getDefaultValue=function(e){var t=this,n=e.map(function(i){return t._getCoder(dD.ParamType.from(i))}),a=new uk.TupleCoder(n,"_");return a.defaultValue()},r.prototype.encode=function(e,t){var n=this;e.length!==t.length&&ck.throwError("types/values length mismatch",Mse.Logger.errors.INVALID_ARGUMENT,{count:{types:e.length,values:t.length},value:{types:e,values:t}});var a=e.map(function(c){return n._getCoder(dD.ParamType.from(c))}),i=new uk.TupleCoder(a,"_"),s=this._getWriter();return i.encode(s,t),s.data},r.prototype.decode=function(e,t,n){var a=this,i=e.map(function(c){return a._getCoder(dD.ParamType.from(c))}),s=new uk.TupleCoder(i,"_");return s.decode(this._getReader((0,Tmt.arrayify)(t),n))},r}();nb.AbiCoder=Ise;nb.defaultAbiCoder=new Ise});var hD=O(lk=>{"use strict";x();T();Object.defineProperty(lk,"__esModule",{value:!0});lk.id=void 0;var Lmt=Qu(),Bmt=rs();function qmt(r){return(0,Lmt.keccak256)((0,Bmt.toUtf8Bytes)(r))}lk.id=qmt});var fD=O(dk=>{"use strict";x();T();Object.defineProperty(dk,"__esModule",{value:!0});dk.version=void 0;dk.version="hash/5.7.0"});var Rse=O(ab=>{"use strict";x();T();Object.defineProperty(ab,"__esModule",{value:!0});ab.encode=ab.decode=void 0;var Pse=Wr();function Dmt(r){r=atob(r);for(var e=[],t=0;t{"use strict";x();T();Object.defineProperty(ib,"__esModule",{value:!0});ib.encode=ib.decode=void 0;var Nse=Rse();Object.defineProperty(ib,"decode",{enumerable:!0,get:function(){return Nse.decode}});Object.defineProperty(ib,"encode",{enumerable:!0,get:function(){return Nse.encode}})});var yD=O(Bs=>{"use strict";x();T();Object.defineProperty(Bs,"__esModule",{value:!0});Bs.read_emoji_trie=Bs.read_zero_terminated_array=Bs.read_mapped_map=Bs.read_member_array=Bs.signed=Bs.read_compressed_payload=Bs.read_payload=Bs.decode_arithmetic=void 0;function Lse(r,e){e==null&&(e=1);var t=[],n=t.forEach,a=function(i,s){n.call(i,function(c){s>0&&Array.isArray(c)?a(c,s-1):t.push(c)})};return a(r,e),t}function Umt(r){for(var e={},t=0;t>--d&1}for(var E=31,k=Math.pow(2,E),A=k>>>1,L=A>>1,q=k-1,U=0,s=0;s1;){var J=K+ae>>>1;te>>1|w(),V=V<<1^A,g=(g^A)<<1|A|1;H=V,G=1+g-V}var o=n-4;return j.map(function(p){switch(p-o){case 3:return o+65792+(r[l++]<<16|r[l++]<<8|r[l++]);case 2:return o+256+(r[l++]<<8|r[l++]);case 1:return o+r[l++];default:return p-1}})}Bs.decode_arithmetic=Bse;function qse(r){var e=0;return function(){return r[e++]}}Bs.read_payload=qse;function Wmt(r){return qse(Bse(r))}Bs.read_compressed_payload=Wmt;function Dse(r){return r&1?~r>>1:r>>1}Bs.signed=Dse;function jmt(r,e){for(var t=Array(r),n=0;n>=1;var l=i==1,d=i==2;return{branches:n,valid:s,fe0f:c,save:l,check:d}}}Bs.read_emoji_trie=Zmt});var Wse=O(pk=>{"use strict";x();T();Object.defineProperty(pk,"__esModule",{value:!0});pk.getData=void 0;var Jmt=R3(),Kmt=yD();function Qmt(){return(0,Kmt.read_compressed_payload)((0,Jmt.decode)("AEQF2AO2DEsA2wIrAGsBRABxAN8AZwCcAEwAqgA0AGwAUgByADcATAAVAFYAIQAyACEAKAAYAFgAGwAjABQAMAAmADIAFAAfABQAKwATACoADgAbAA8AHQAYABoAGQAxADgALAAoADwAEwA9ABMAGgARAA4ADwAWABMAFgAIAA8AHgQXBYMA5BHJAS8JtAYoAe4AExozi0UAH21tAaMnBT8CrnIyhrMDhRgDygIBUAEHcoFHUPe8AXBjAewCjgDQR8IICIcEcQLwATXCDgzvHwBmBoHNAqsBdBcUAykgDhAMShskMgo8AY8jqAQfAUAfHw8BDw87MioGlCIPBwZCa4ELatMAAMspJVgsDl8AIhckSg8XAHdvTwBcIQEiDT4OPhUqbyECAEoAS34Aej8Ybx83JgT/Xw8gHxZ/7w8RICxPHA9vBw+Pfw8PHwAPFv+fAsAvCc8vEr8ivwD/EQ8Bol8OEBa/A78hrwAPCU8vESNvvwWfHwNfAVoDHr+ZAAED34YaAdJPAK7PLwSEgDLHAGo1Pz8Pvx9fUwMrpb8O/58VTzAPIBoXIyQJNF8hpwIVAT8YGAUADDNBaX3RAMomJCg9EhUeA29MABsZBTMNJipjOhc19gcIDR8bBwQHEggCWi6DIgLuAQYA+BAFCha3A5XiAEsqM7UFFgFLhAMjFTMYE1Klnw74nRVBG/ASCm0BYRN/BrsU3VoWy+S0vV8LQx+vN8gF2AC2AK5EAWwApgYDKmAAroQ0NDQ0AT+OCg7wAAIHRAbpNgVcBV0APTA5BfbPFgMLzcYL/QqqA82eBALKCjQCjqYCht0/k2+OAsXQAoP3ASTKDgDw6ACKAUYCMpIKJpRaAE4A5womABzZvs0REEKiACIQAd5QdAECAj4Ywg/wGqY2AVgAYADYvAoCGAEubA0gvAY2ALAAbpbvqpyEAGAEpgQAJgAG7gAgAEACmghUFwCqAMpAINQIwC4DthRAAPcycKgApoIdABwBfCisABoATwBqASIAvhnSBP8aH/ECeAKXAq40NjgDBTwFYQU6AXs3oABgAD4XNgmcCY1eCl5tIFZeUqGgyoNHABgAEQAaABNwWQAmABMATPMa3T34ADldyprmM1M2XociUQgLzvwAXT3xABgAEQAaABNwIGFAnADD8AAgAD4BBJWzaCcIAIEBFMAWwKoAAdq9BWAF5wLQpALEtQAKUSGkahR4GnJM+gsAwCgeFAiUAECQ0BQuL8AAIAAAADKeIheclvFqQAAETr4iAMxIARMgAMIoHhQIAn0E0pDQFC4HhznoAAAAIAI2C0/4lvFqQAAETgBJJwYCAy4ABgYAFAA8MBKYEH4eRhTkAjYeFcgACAYAeABsOqyQ5gRwDayqugEgaIIAtgoACgDmEABmBAWGme5OBJJA2m4cDeoAmITWAXwrMgOgAGwBCh6CBXYF1Tzg1wKAAFdiuABRAFwAXQBsAG8AdgBrAHYAbwCEAHEwfxQBVE5TEQADVFhTBwBDANILAqcCzgLTApQCrQL6vAAMAL8APLhNBKkE6glGKTAU4Dr4N2EYEwBCkABKk8rHAbYBmwIoAiU4Ajf/Aq4CowCAANIChzgaNBsCsTgeODcFXrgClQKdAqQBiQGYAqsCsjTsNHsfNPA0ixsAWTWiOAMFPDQSNCk2BDZHNow2TTZUNhk28Jk9VzI3QkEoAoICoQKwAqcAQAAxBV4FXbS9BW47YkIXP1ciUqs05DS/FwABUwJW11e6nHuYZmSh/RAYA8oMKvZ8KASoUAJYWAJ6ILAsAZSoqjpgA0ocBIhmDgDWAAawRDQoAAcuAj5iAHABZiR2AIgiHgCaAU68ACxuHAG0ygM8MiZIAlgBdF4GagJqAPZOHAMuBgoATkYAsABiAHgAMLoGDPj0HpKEBAAOJgAuALggTAHWAeAMEDbd20Uege0ADwAWADkAQgA9OHd+2MUQZBBhBgNNDkxxPxUQArEPqwvqERoM1irQ090ANK4H8ANYB/ADWANYB/AH8ANYB/ADWANYA1gDWBwP8B/YxRBkD00EcgWTBZAE2wiIJk4RhgctCNdUEnQjHEwDSgEBIypJITuYMxAlR0wRTQgIATZHbKx9PQNMMbBU+pCnA9AyVDlxBgMedhKlAC8PeCE1uk6DekxxpQpQT7NX9wBFBgASqwAS5gBJDSgAUCwGPQBI4zTYABNGAE2bAE3KAExdGABKaAbgAFBXAFCOAFBJABI2SWdObALDOq0//QomCZhvwHdTBkIQHCemEPgMNAG2ATwN7kvZBPIGPATKH34ZGg/OlZ0Ipi3eDO4m5C6igFsj9iqEBe5L9TzeC05RaQ9aC2YJ5DpkgU8DIgEOIowK3g06CG4Q9ArKbA3mEUYHOgPWSZsApgcCCxIdNhW2JhFirQsKOXgG/Br3C5AmsBMqev0F1BoiBk4BKhsAANAu6IWxWjJcHU9gBgQLJiPIFKlQIQ0mQLh4SRocBxYlqgKSQ3FKiFE3HpQh9zw+DWcuFFF9B/Y8BhlQC4I8n0asRQ8R0z6OPUkiSkwtBDaALDAnjAnQD4YMunxzAVoJIgmyDHITMhEYN8YIOgcaLpclJxYIIkaWYJsE+KAD9BPSAwwFQAlCBxQDthwuEy8VKgUOgSXYAvQ21i60ApBWgQEYBcwPJh/gEFFH4Q7qCJwCZgOEJewALhUiABginAhEZABgj9lTBi7MCMhqbSN1A2gU6GIRdAeSDlgHqBw0FcAc4nDJXgyGCSiksAlcAXYJmgFgBOQICjVcjKEgQmdUi1kYnCBiQUBd/QIyDGYVoES+h3kCjA9sEhwBNgF0BzoNAgJ4Ee4RbBCWCOyGBTW2M/k6JgRQIYQgEgooA1BszwsoJvoM+WoBpBJjAw00PnfvZ6xgtyUX/gcaMsZBYSHyC5NPzgydGsIYQ1QvGeUHwAP0GvQn60FYBgADpAQUOk4z7wS+C2oIjAlAAEoOpBgH2BhrCnKM0QEyjAG4mgNYkoQCcJAGOAcMAGgMiAV65gAeAqgIpAAGANADWAA6Aq4HngAaAIZCAT4DKDABIuYCkAOUCDLMAZYwAfQqBBzEDBYA+DhuSwLDsgKAa2ajBd5ZAo8CSjYBTiYEBk9IUgOwcuIA3ABMBhTgSAEWrEvMG+REAeBwLADIAPwABjYHBkIBzgH0bgC4AWALMgmjtLYBTuoqAIQAFmwB2AKKAN4ANgCA8gFUAE4FWvoF1AJQSgESMhksWGIBvAMgATQBDgB6BsyOpsoIIARuB9QCEBwV4gLvLwe2AgMi4BPOQsYCvd9WADIXUu5eZwqoCqdeaAC0YTQHMnM9UQAPH6k+yAdy/BZIiQImSwBQ5gBQQzSaNTFWSTYBpwGqKQK38AFtqwBI/wK37gK3rQK3sAK6280C0gK33AK3zxAAUEIAUD9SklKDArekArw5AEQAzAHCO147WTteO1k7XjtZO147WTteO1kDmChYI03AVU0oJqkKbV9GYewMpw3VRMk6ShPcYFJgMxPJLbgUwhXPJVcZPhq9JwYl5VUKDwUt1GYxCC00dhe9AEApaYNCY4ceMQpMHOhTklT5LRwAskujM7ANrRsWREEFSHXuYisWDwojAmSCAmJDXE6wXDchAqH4AmiZAmYKAp+FOBwMAmY8AmYnBG8EgAN/FAN+kzkHOXgYOYM6JCQCbB4CMjc4CwJtyAJtr/CLADRoRiwBaADfAOIASwYHmQyOAP8MwwAOtgJ3MAJ2o0ACeUxEAni7Hl3cRa9G9AJ8QAJ6yQJ9CgJ88UgBSH5kJQAsFklZSlwWGErNAtECAtDNSygDiFADh+dExpEzAvKiXQQDA69Lz0wuJgTQTU1NsAKLQAKK2cIcCB5EaAa4Ao44Ao5dQZiCAo7aAo5deVG1UzYLUtVUhgKT/AKTDQDqAB1VH1WwVdEHLBwplocy4nhnRTw6ApegAu+zWCKpAFomApaQApZ9nQCqWa1aCoJOADwClrYClk9cRVzSApnMApllXMtdCBoCnJw5wzqeApwXAp+cAp65iwAeEDIrEAKd8gKekwC2PmE1YfACntQCoG8BqgKeoCACnk+mY8lkKCYsAiewAiZ/AqD8AqBN2AKmMAKlzwKoAAB+AqfzaH1osgAESmodatICrOQCrK8CrWgCrQMCVx4CVd0CseLYAx9PbJgCsr4OArLpGGzhbWRtSWADJc4Ctl08QG6RAylGArhfArlIFgK5K3hwN3DiAr0aAy2zAzISAr6JcgMDM3ICvhtzI3NQAsPMAsMFc4N0TDZGdOEDPKgDPJsDPcACxX0CxkgCxhGKAshqUgLIRQLJUALJLwJkngLd03h6YniveSZL0QMYpGcDAmH1GfSVJXsMXpNevBICz2wCz20wTFTT9BSgAMeuAs90ASrrA04TfkwGAtwoAtuLAtJQA1JdA1NgAQIDVY2AikABzBfuYUZ2AILPg44C2sgC2d+EEYRKpz0DhqYAMANkD4ZyWvoAVgLfZgLeuXR4AuIw7RUB8zEoAfScAfLTiALr9ALpcXoAAur6AurlAPpIAboC7ooC652Wq5cEAu5AA4XhmHpw4XGiAvMEAGoDjheZlAL3FAORbwOSiAL3mQL52gL4Z5odmqy8OJsfA52EAv77ARwAOp8dn7QDBY4DpmsDptoA0sYDBmuhiaIGCgMMSgFgASACtgNGAJwEgLpoBgC8BGzAEowcggCEDC6kdjoAJAM0C5IKRoABZCgiAIzw3AYBLACkfng9ogigkgNmWAN6AEQCvrkEVqTGAwCsBRbAA+4iQkMCHR072jI2PTbUNsk2RjY5NvA23TZKNiU3EDcZN5I+RTxDRTBCJkK5VBYKFhZfwQCWygU3AJBRHpu+OytgNxa61A40GMsYjsn7BVwFXQVcBV0FaAVdBVwFXQVcBV0FXAVdBVwFXUsaCNyKAK4AAQUHBwKU7oICoW1e7jAEzgPxA+YDwgCkBFDAwADABKzAAOxFLhitA1UFTDeyPkM+bj51QkRCuwTQWWQ8X+0AWBYzsACNA8xwzAGm7EZ/QisoCTAbLDs6fnLfb8H2GccsbgFw13M1HAVkBW/Jxsm9CNRO8E8FDD0FBQw9FkcClOYCoMFegpDfADgcMiA2AJQACB8AsigKAIzIEAJKeBIApY5yPZQIAKQiHb4fvj5BKSRPQrZCOz0oXyxgOywfKAnGbgMClQaCAkILXgdeCD9IIGUgQj5fPoY+dT52Ao5CM0dAX9BTVG9SDzFwWTQAbxBzJF/lOEIQQglCCkKJIAls5AcClQICoKPMODEFxhi6KSAbiyfIRrMjtCgdWCAkPlFBIitCsEJRzAbMAV/OEyQzDg0OAQQEJ36i328/Mk9AybDJsQlq3tDRApUKAkFzXf1d/j9uALYP6hCoFgCTGD8kPsFKQiobrm0+zj0KSD8kPnVCRBwMDyJRTHFgMTJa5rwXQiQ2YfI/JD7BMEJEHGINTw4TOFlIRzwJO0icMQpyPyQ+wzJCRBv6DVgnKB01NgUKj2bwYzMqCoBkznBgEF+zYDIocwRIX+NgHj4HICNfh2C4CwdwFWpTG/lgUhYGAwRfv2Ts8mAaXzVgml/XYIJfuWC4HI1gUF9pYJZgMR6ilQHMAOwLAlDRefC0in4AXAEJA6PjCwc0IamOANMMCAECRQDFNRTZBgd+CwQlRA+r6+gLBDEFBnwUBXgKATIArwAGRAAHA3cDdAN2A3kDdwN9A3oDdQN7A30DfAN4A3oDfQAYEAAlAtYASwMAUAFsAHcKAHcAmgB3AHUAdQB2AHVu8UgAygDAAHcAdQB1AHYAdQALCgB3AAsAmgB3AAsCOwB3AAtu8UgAygDAAHgKAJoAdwB3AHUAdQB2AHUAeAB1AHUAdgB1bvFIAMoAwAALCgCaAHcACwB3AAsCOwB3AAtu8UgAygDAAH4ACwGgALcBpwC6AahdAu0COwLtbvFIAMoAwAALCgCaAu0ACwLtAAsCOwLtAAtu8UgAygDAA24ACwNvAAu0VsQAAzsAABCkjUIpAAsAUIusOggWcgMeBxVsGwL67U/2HlzmWOEeOgALASvuAAseAfpKUpnpGgYJDCIZM6YyARUE9ThqAD5iXQgnAJYJPnOzw0ZAEZxEKsIAkA4DhAHnTAIDxxUDK0lxCQlPYgIvIQVYJQBVqE1GakUAKGYiDToSBA1EtAYAXQJYAIF8GgMHRyAAIAjOe9YncekRAA0KACUrjwE7Ayc6AAYWAqaiKG4McEcqANoN3+Mg9TwCBhIkuCny+JwUQ29L008JluRxu3K+oAdqiHOqFH0AG5SUIfUJ5SxCGfxdipRzqTmT4V5Zb+r1Uo4Vm+NqSSEl2mNvR2JhIa8SpYO6ntdwFXHCWTCK8f2+Hxo7uiG3drDycAuKIMP5bhi06ACnqArH1rz4Rqg//lm6SgJGEVbF9xJHISaR6HxqxSnkw6shDnelHKNEfGUXSJRJ1GcsmtJw25xrZMDK9gXSm1/YMkdX4/6NKYOdtk/NQ3/NnDASjTc3fPjIjW/5sVfVObX2oTDWkr1dF9f3kxBsD3/3aQO8hPfRz+e0uEiJqt1161griu7gz8hDDwtpy+F+BWtefnKHZPAxcZoWbnznhJpy0e842j36bcNzGnIEusgGX0a8ZxsnjcSsPDZ09yZ36fCQbriHeQ72JRMILNl6ePPf2HWoVwgWAm1fb3V2sAY0+B6rAXqSwPBgseVmoqsBTSrm91+XasMYYySI8eeRxH3ZvHkMz3BQ5aJ3iUVbYPNM3/7emRtjlsMgv/9VyTsyt/mK+8fgWeT6SoFaclXqn42dAIsvAarF5vNNWHzKSkKQ/8Hfk5ZWK7r9yliOsooyBjRhfkHP4Q2DkWXQi6FG/9r/IwbmkV5T7JSopHKn1pJwm9tb5Ot0oyN1Z2mPpKXHTxx2nlK08fKk1hEYA8WgVVWL5lgx0iTv+KdojJeU23ZDjmiubXOxVXJKKi2Wjuh2HLZOFLiSC7Tls5SMh4f+Pj6xUSrNjFqLGehRNB8lC0QSLNmkJJx/wSG3MnjE9T1CkPwJI0wH2lfzwETIiVqUxg0dfu5q39Gt+hwdcxkhhNvQ4TyrBceof3Mhs/IxFci1HmHr4FMZgXEEczPiGCx0HRwzAqDq2j9AVm1kwN0mRVLWLylgtoPNapF5cY4Y1wJh/e0BBwZj44YgZrDNqvD/9Hv7GFYdUQeDJuQ3EWI4HaKqavU1XjC/n41kT4L79kqGq0kLhdTZvgP3TA3fS0ozVz+5piZsoOtIvBUFoMKbNcmBL6YxxaUAusHB38XrS8dQMnQwJfUUkpRoGr5AUeWicvBTzyK9g77+yCkf5PAysL7r/JjcZgrbvRpMW9iyaxZvKO6ceZN2EwIxKwVFPuvFuiEPGCoagbMo+SpydLrXqBzNCDGFCrO/rkcwa2xhokQZ5CdZ0AsU3JfSqJ6n5I14YA+P/uAgfhPU84Tlw7cEFfp7AEE8ey4sP12PTt4Cods1GRgDOB5xvyiR5m+Bx8O5nBCNctU8BevfV5A08x6RHd5jcwPTMDSZJOedIZ1cGQ704lxbAzqZOP05ZxaOghzSdvFBHYqomATARyAADK4elP8Ly3IrUZKfWh23Xy20uBUmLS4Pfagu9+oyVa2iPgqRP3F2CTUsvJ7+RYnN8fFZbU/HVvxvcFFDKkiTqV5UBZ3Gz54JAKByi9hkKMZJvuGgcSYXFmw08UyoQyVdfTD1/dMkCHXcTGAKeROgArsvmRrQTLUOXioOHGK2QkjHuoYFgXciZoTJd6Fs5q1QX1G+p/e26hYsEf7QZD1nnIyl/SFkNtYYmmBhpBrxl9WbY0YpHWRuw2Ll/tj9mD8P4snVzJl4F9J+1arVeTb9E5r2ILH04qStjxQNwn3m4YNqxmaNbLAqW2TN6LidwuJRqS+NXbtqxoeDXpxeGWmxzSkWxjkyCkX4NQRme6q5SAcC+M7+9ETfA/EwrzQajKakCwYyeunP6ZFlxU2oMEn1Pz31zeStW74G406ZJFCl1wAXIoUKkWotYEpOuXB1uVNxJ63dpJEqfxBeptwIHNrPz8BllZoIcBoXwgfJ+8VAUnVPvRvexnw0Ma/WiGYuJO5y8QTvEYBigFmhUxY5RqzE8OcywN/8m4UYrlaniJO75XQ6KSo9+tWHlu+hMi0UVdiKQp7NelnoZUzNaIyBPVeOwK6GNp+FfHuPOoyhaWuNvTYFkvxscMQWDh+zeFCFkgwbXftiV23ywJ4+uwRqmg9k3KzwIQpzppt8DBBOMbrqwQM5Gb05sEwdKzMiAqOloaA/lr0KA+1pr0/+HiWoiIjHA/wir2nIuS3PeU/ji3O6ZwoxcR1SZ9FhtLC5S0FIzFhbBWcGVP/KpxOPSiUoAdWUpqKH++6Scz507iCcxYI6rdMBICPJZea7OcmeFw5mObJSiqpjg2UoWNIs+cFhyDSt6geV5qgi3FunmwwDoGSMgerFOZGX1m0dMCYo5XOruxO063dwENK9DbnVM9wYFREzh4vyU1WYYJ/LRRp6oxgjqP/X5a8/4Af6p6NWkQferzBmXme0zY/4nwMJm/wd1tIqSwGz+E3xPEAOoZlJit3XddD7/BT1pllzOx+8bmQtANQ/S6fZexc6qi3W+Q2xcmXTUhuS5mpHQRvcxZUN0S5+PL9lXWUAaRZhEH8hTdAcuNMMCuVNKTEGtSUKNi3O6KhSaTzck8csZ2vWRZ+d7mW8c4IKwXIYd25S/zIftPkwPzufjEvOHWVD1m+FjpDVUTV0DGDuHj6QnaEwLu/dEgdLQOg9E1Sro9XHJ8ykLAwtPu+pxqKDuFexqON1sKQm7rwbE1E68UCfA/erovrTCG+DBSNg0l4goDQvZN6uNlbyLpcZAwj2UclycvLpIZMgv4yRlpb3YuMftozorbcGVHt/VeDV3+Fdf1TP0iuaCsPi2G4XeGhsyF1ubVDxkoJhmniQ0/jSg/eYML9KLfnCFgISWkp91eauR3IQvED0nAPXK+6hPCYs+n3+hCZbiskmVMG2da+0EsZPonUeIY8EbfusQXjsK/eFDaosbPjEfQS0RKG7yj5GG69M7MeO1HmiUYocgygJHL6M1qzUDDwUSmr99V7Sdr2F3JjQAJY+F0yH33Iv3+C9M38eML7gTgmNu/r2bUMiPvpYbZ6v1/IaESirBHNa7mPKn4dEmYg7v/+HQgPN1G79jBQ1+soydfDC2r+h2Bl/KIc5KjMK7OH6nb1jLsNf0EHVe2KBiE51ox636uyG6Lho0t3J34L5QY/ilE3mikaF4HKXG1mG1rCevT1Vv6GavltxoQe/bMrpZvRggnBxSEPEeEzkEdOxTnPXHVjUYdw8JYvjB/o7Eegc3Ma+NUxLLnsK0kJlinPmUHzHGtrk5+CAbVzFOBqpyy3QVUnzTDfC/0XD94/okH+OB+i7g9lolhWIjSnfIb+Eq43ZXOWmwvjyV/qqD+t0e+7mTEM74qP/Ozt8nmC7mRpyu63OB4KnUzFc074SqoyPUAgM+/TJGFo6T44EHnQU4X4z6qannVqgw/U7zCpwcmXV1AubIrvOmkKHazJAR55ePjp5tLBsN8vAqs3NAHdcEHOR2xQ0lsNAFzSUuxFQCFYvXLZJdOj9p4fNq6p0HBGUik2YzaI4xySy91KzhQ0+q1hjxvImRwPRf76tChlRkhRCi74NXZ9qUNeIwP+s5p+3m5nwPdNOHgSLD79n7O9m1n1uDHiMntq4nkYwV5OZ1ENbXxFd4PgrlvavZsyUO4MqYlqqn1O8W/I1dEZq5dXhrbETLaZIbC2Kj/Aa/QM+fqUOHdf0tXAQ1huZ3cmWECWSXy/43j35+Mvq9xws7JKseriZ1pEWKc8qlzNrGPUGcVgOa9cPJYIJsGnJTAUsEcDOEVULO5x0rXBijc1lgXEzQQKhROf8zIV82w8eswc78YX11KYLWQRcgHNJElBxfXr72lS2RBSl07qTKorO2uUDZr3sFhYsvnhLZn0A94KRzJ/7DEGIAhW5ZWFpL8gEwu1aLA9MuWZzNwl8Oze9Y+bX+v9gywRVnoB5I/8kXTXU3141yRLYrIOOz6SOnyHNy4SieqzkBXharjfjqq1q6tklaEbA8Qfm2DaIPs7OTq/nvJBjKfO2H9bH2cCMh1+5gspfycu8f/cuuRmtDjyqZ7uCIMyjdV3a+p3fqmXsRx4C8lujezIFHnQiVTXLXuI1XrwN3+siYYj2HHTvESUx8DlOTXpak9qFRK+L3mgJ1WsD7F4cu1aJoFoYQnu+wGDMOjJM3kiBQWHCcvhJ/HRdxodOQp45YZaOTA22Nb4XKCVxqkbwMYFhzYQYIAnCW8FW14uf98jhUG2zrKhQQ0q0CEq0t5nXyvUyvR8DvD69LU+g3i+HFWQMQ8PqZuHD+sNKAV0+M6EJC0szq7rEr7B5bQ8BcNHzvDMc9eqB5ZCQdTf80Obn4uzjwpYU7SISdtV0QGa9D3Wrh2BDQtpBKxaNFV+/Cy2P/Sv+8s7Ud0Fd74X4+o/TNztWgETUapy+majNQ68Lq3ee0ZO48VEbTZYiH1Co4OlfWef82RWeyUXo7woM03PyapGfikTnQinoNq5z5veLpeMV3HCAMTaZmA1oGLAn7XS3XYsz+XK7VMQsc4XKrmDXOLU/pSXVNUq8dIqTba///3x6LiLS6xs1xuCAYSfcQ3+rQgmu7uvf3THKt5Ooo97TqcbRqxx7EASizaQCBQllG/rYxVapMLgtLbZS64w1MDBMXX+PQpBKNwqUKOf2DDRDUXQf9EhOS0Qj4nTmlA8dzSLz/G1d+Ud8MTy/6ghhdiLpeerGY/UlDOfiuqFsMUU5/UYlP+BAmgRLuNpvrUaLlVkrqDievNVEAwF+4CoM1MZTmjxjJMsKJq+u8Zd7tNCUFy6LiyYXRJQ4VyvEQFFaCGKsxIwQkk7EzZ6LTJq2hUuPhvAW+gQnSG6J+MszC+7QCRHcnqDdyNRJ6T9xyS87A6MDutbzKGvGktpbXqtzWtXb9HsfK2cBMomjN9a4y+TaJLnXxAeX/HWzmf4cR4vALt/P4w4qgKY04ml4ZdLOinFYS6cup3G/1ie4+t1eOnpBNlqGqs75ilzkT4+DsZQxNvaSKJ//6zIbbk/M7LOhFmRc/1R+kBtz7JFGdZm/COotIdvQoXpTqP/1uqEUmCb/QWoGLMwO5ANcHzxdY48IGP5+J+zKOTBFZ4Pid+GTM+Wq12MV/H86xEJptBa6T+p3kgpwLedManBHC2GgNrFpoN2xnrMz9WFWX/8/ygSBkavq2Uv7FdCsLEYLu9LLIvAU0bNRDtzYl+/vXmjpIvuJFYjmI0im6QEYqnIeMsNjXG4vIutIGHijeAG/9EDBozKV5cldkHbLxHh25vT+ZEzbhXlqvpzKJwcEgfNwLAKFeo0/pvEE10XDB+EXRTXtSzJozQKFFAJhMxYkVaCW+E9AL7tMeU8acxidHqzb6lX4691UsDpy/LLRmT+epgW56+5Cw8tB4kMUv6s9lh3eRKbyGs+H/4mQMaYzPTf2OOdokEn+zzgvoD3FqNKk8QqGAXVsqcGdXrT62fSPkR2vROFi68A6se86UxRUk4cajfPyCC4G5wDhD+zNq4jodQ4u4n/m37Lr36n4LIAAsVr02dFi9AiwA81MYs2rm4eDlDNmdMRvEKRHfBwW5DdMNp0jPFZMeARqF/wL4XBfd+EMLBfMzpH5GH6NaW+1vrvMdg+VxDzatk3MXgO3ro3P/DpcC6+Mo4MySJhKJhSR01SGGGp5hPWmrrUgrv3lDnP+HhcI3nt3YqBoVAVTBAQT5iuhTg8nvPtd8ZeYj6w1x6RqGUBrSku7+N1+BaasZvjTk64RoIDlL8brpEcJx3OmY7jLoZsswdtmhfC/G21llXhITOwmvRDDeTTPbyASOa16cF5/A1fZAidJpqju3wYAy9avPR1ya6eNp9K8XYrrtuxlqi+bDKwlfrYdR0RRiKRVTLOH85+ZY7XSmzRpfZBJjaTa81VDcJHpZnZnSQLASGYW9l51ZV/h7eVzTi3Hv6hUsgc/51AqJRTkpbFVLXXszoBL8nBX0u/0jBLT8nH+fJePbrwURT58OY+UieRjd1vs04w0VG5VN2U6MoGZkQzKN/ptz0Q366dxoTGmj7i1NQGHi9GgnquXFYdrCfZBmeb7s0T6yrdlZH5cZuwHFyIJ/kAtGsTg0xH5taAAq44BAk1CPk9KVVbqQzrCUiFdF/6gtlPQ8bHHc1G1W92MXGZ5HEHftyLYs8mbD/9xYRUWkHmlM0zC2ilJlnNgV4bfALpQghxOUoZL7VTqtCHIaQSXm+YUMnpkXybnV+A6xlm2CVy8fn0Xlm2XRa0+zzOa21JWWmixfiPMSCZ7qA4rS93VN3pkpF1s5TonQjisHf7iU9ZGvUPOAKZcR1pbeVf/Ul7OhepGCaId9wOtqo7pJ7yLcBZ0pFkOF28y4zEI/kcUNmutBHaQpBdNM8vjCS6HZRokkeo88TBAjGyG7SR+6vUgTcyK9Imalj0kuxz0wmK+byQU11AiJFk/ya5dNduRClcnU64yGu/ieWSeOos1t3ep+RPIWQ2pyTYVbZltTbsb7NiwSi3AV+8KLWk7LxCnfZUetEM8ThnsSoGH38/nyAwFguJp8FjvlHtcWZuU4hPva0rHfr0UhOOJ/F6vS62FW7KzkmRll2HEc7oUq4fyi5T70Vl7YVIfsPHUCdHesf9Lk7WNVWO75JDkYbMI8TOW8JKVtLY9d6UJRITO8oKo0xS+o99Yy04iniGHAaGj88kEWgwv0OrHdY/nr76DOGNS59hXCGXzTKUvDl9iKpLSWYN1lxIeyywdNpTkhay74w2jFT6NS8qkjo5CxA1yfSYwp6AJIZNKIeEK5PJAW7ORgWgwp0VgzYpqovMrWxbu+DGZ6Lhie1RAqpzm8VUzKJOH3mCzWuTOLsN3VT/dv2eeYe9UjbR8YTBsLz7q60VN1sU51k+um1f8JxD5pPhbhSC8rRaB454tmh6YUWrJI3+GWY0qeWioj/tbkYITOkJaeuGt4JrJvHA+l0Gu7kY7XOaa05alMnRWVCXqFgLIwSY4uF59Ue5SU4QKuc/HamDxbr0x6csCetXGoP7Qn1Bk/J9DsynO/UD6iZ1Hyrz+jit0hDCwi/E9OjgKTbB3ZQKQ/0ZOvevfNHG0NK4Aj3Cp7NpRk07RT1i/S0EL93Ag8GRgKI9CfpajKyK6+Jj/PI1KO5/85VAwz2AwzP8FTBb075IxCXv6T9RVvWT2tUaqxDS92zrGUbWzUYk9mSs82pECH+fkqsDt93VW++4YsR/dHCYcQSYTO/KaBMDj9LSD/J/+z20Kq8XvZUAIHtm9hRPP3ItbuAu2Hm5lkPs92pd7kCxgRs0xOVBnZ13ccdA0aunrwv9SdqElJRC3g+oCu+nXyCgmXUs9yMjTMAIHfxZV+aPKcZeUBWt057Xo85Ks1Ir5gzEHCWqZEhrLZMuF11ziGtFQUds/EESajhagzcKsxamcSZxGth4UII+adPhQkUnx2WyN+4YWR+r3f8MnkyGFuR4zjzxJS8WsQYR5PTyRaD9ixa6Mh741nBHbzfjXHskGDq179xaRNrCIB1z1xRfWfjqw2pHc1zk9xlPpL8sQWAIuETZZhbnmL54rceXVNRvUiKrrqIkeogsl0XXb17ylNb0f4GA9Wd44vffEG8FSZGHEL2fbaTGRcSiCeA8PmA/f6Hz8HCS76fXUHwgwkzSwlI71ekZ7Fapmlk/KC+Hs8hUcw3N2LN5LhkVYyizYFl/uPeVP5lsoJHhhfWvvSWruCUW1ZcJOeuTbrDgywJ/qG07gZJplnTvLcYdNaH0KMYOYMGX+rB4NGPFmQsNaIwlWrfCezxre8zXBrsMT+edVLbLqN1BqB76JH4BvZTqUIMfGwPGEn+EnmTV86fPBaYbFL3DFEhjB45CewkXEAtJxk4/Ms2pPXnaRqdky0HOYdcUcE2zcXq4vaIvW2/v0nHFJH2XXe22ueDmq/18XGtELSq85j9X8q0tcNSSKJIX8FTuJF/Pf8j5PhqG2u+osvsLxYrvvfeVJL+4tkcXcr9JV7v0ERmj/X6fM3NC4j6dS1+9Umr2oPavqiAydTZPLMNRGY23LO9zAVDly7jD+70G5TPPLdhRIl4WxcYjLnM+SNcJ26FOrkrISUtPObIz5Zb3AG612krnpy15RMW+1cQjlnWFI6538qky9axd2oJmHIHP08KyP0ubGO+TQNOYuv2uh17yCIvR8VcStw7o1g0NM60sk+8Tq7YfIBJrtp53GkvzXH7OA0p8/n/u1satf/VJhtR1l8Wa6Gmaug7haSpaCaYQax6ta0mkutlb+eAOSG1aobM81D9A4iS1RRlzBBoVX6tU1S6WE2N9ORY6DfeLRC4l9Rvr5h95XDWB2mR1d4WFudpsgVYwiTwT31ljskD8ZyDOlm5DkGh9N/UB/0AI5Xvb8ZBmai2hQ4BWMqFwYnzxwB26YHSOv9WgY3JXnvoN+2R4rqGVh/LLDMtpFP+SpMGJNWvbIl5SOodbCczW2RKleksPoUeGEzrjtKHVdtZA+kfqO+rVx/iclCqwoopepvJpSTDjT+b9GWylGRF8EDbGlw6eUzmJM95Ovoz+kwLX3c2fTjFeYEsE7vUZm3mqdGJuKh2w9/QGSaqRHs99aScGOdDqkFcACoqdbBoQqqjamhH6Q9ng39JCg3lrGJwd50Qk9ovnqBTr8MME7Ps2wiVfygUmPoUBJJfJWX5Nda0nuncbFkA=="))}pk.getData=Qmt});var Vse=O(sb=>{"use strict";x();T();Object.defineProperty(sb,"__esModule",{value:!0});sb.ens_normalize=sb.ens_normalize_post_check=void 0;var Xmt=rs(),Ymt=Wse(),hk=(0,Ymt.getData)(),fk=yD(),$mt=new Set((0,fk.read_member_array)(hk)),e0t=new Set((0,fk.read_member_array)(hk)),t0t=(0,fk.read_mapped_map)(hk),r0t=(0,fk.read_emoji_trie)(hk),jse=45,zse=95;function Hse(r){return(0,Xmt.toUtf8CodePoints)(r)}function n0t(r){return r.filter(function(e){return e!=65039})}function gD(r){for(var e=0,t=r.split(".");e=0;i--)if(a[i]!==zse)throw new Error("underscore only allowed at start");if(a.length>=4&&a.every(function(s){return s<128})&&a[2]===jse&&a[3]===jse)throw new Error("invalid label extension")}catch(s){throw new Error('Invalid label "'+n+'": '+s.message)}}return r}sb.ens_normalize_post_check=gD;function a0t(r){return gD(i0t(r,n0t))}sb.ens_normalize=a0t;function i0t(r,e){for(var t=Hse(r).reverse(),n=[];t.length;){var a=o0t(t);if(a){n.push.apply(n,e(a));continue}var i=t.pop();if($mt.has(i)){n.push(i);continue}if(!e0t.has(i)){var s=t0t[i];if(s){n.push.apply(n,s);continue}throw new Error("Disallowed codepoint: 0x"+i.toString(16).toUpperCase())}}return gD(s0t(String.fromCodePoint.apply(String,n)))}function s0t(r){return r.normalize("NFC")}function o0t(r,e){var t,n=r0t,a,i,s=[],c=r.length;e&&(e.length=0);for(var l=function(){var f=r[--c];if(n=(t=n.branches.find(function(w){return w.set.has(f)}))===null||t===void 0?void 0:t.node,!n)return"break";if(n.save)i=f;else if(n.check&&f===i)return"break";s.push(f),n.fe0f&&(s.push(65039),c>0&&r[c-1]==65039&&c--),n.valid&&(a=s.slice(),n.valid==2&&a.splice(1,1),e&&e.push.apply(e,r.slice(c).reverse()),r.length=c)};c;){var d=l();if(d==="break")break}return a}});var vD=O(Xp=>{"use strict";x();T();Object.defineProperty(Xp,"__esModule",{value:!0});Xp.dnsEncode=Xp.namehash=Xp.isValidName=Xp.ensNormalize=void 0;var mk=Wr(),Jse=rs(),Gse=Qu(),c0t=ur(),u0t=fD(),l0t=new c0t.Logger(u0t.version),d0t=Vse(),Kse=new Uint8Array(32);Kse.fill(0);function Zse(r){if(r.length===0)throw new Error("invalid ENS name; empty component");return r}function yk(r){var e=(0,Jse.toUtf8Bytes)((0,d0t.ens_normalize)(r)),t=[];if(r.length===0)return t;for(var n=0,a=0;a=e.length)throw new Error("invalid ENS name; empty component");return t.push(Zse(e.slice(n))),t}function p0t(r){return yk(r).map(function(e){return(0,Jse.toUtf8String)(e)}).join(".")}Xp.ensNormalize=p0t;function h0t(r){try{return yk(r).length!==0}catch{}return!1}Xp.isValidName=h0t;function f0t(r){typeof r!="string"&&l0t.throwArgumentError("invalid ENS name; not a string","name",r);for(var e=Kse,t=yk(r);t.length;)e=(0,Gse.keccak256)((0,mk.concat)([e,(0,Gse.keccak256)(t.pop())]));return(0,mk.hexlify)(e)}Xp.namehash=f0t;function m0t(r){return(0,mk.hexlify)((0,mk.concat)(yk(r).map(function(e){if(e.length>63)throw new Error("invalid DNS encoded entry; length exceeds 63 bytes");var t=new Uint8Array(e.length+1);return t.set(e,1),t[0]=t.length-1,t})))+"00"}Xp.dnsEncode=m0t});var Qse=O($y=>{"use strict";x();T();Object.defineProperty($y,"__esModule",{value:!0});$y.hashMessage=$y.messagePrefix=void 0;var y0t=Wr(),g0t=Qu(),bD=rs();$y.messagePrefix=`Ethereum Signed Message: -`;function v0t(r){return typeof r=="string"&&(r=(0,bD.toUtf8Bytes)(r)),(0,g0t.keccak256)((0,y0t.concat)([(0,bD.toUtf8Bytes)($y.messagePrefix),(0,bD.toUtf8Bytes)(String(r.length)),r]))}$y.hashMessage=v0t});var ioe=O(Wm=>{"use strict";x();T();var b0t=Wm&&Wm.__awaiter||function(r,e,t,n){function a(i){return i instanceof t?i:new t(function(s){s(i)})}return new(t||(t=Promise))(function(i,s){function c(f){try{d(n.next(f))}catch(w){s(w)}}function l(f){try{d(n.throw(f))}catch(w){s(w)}}function d(f){f.done?i(f.value):a(f.value).then(c,l)}d((n=n.apply(r,e||[])).next())})},w0t=Wm&&Wm.__generator||function(r,e){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,s;return s={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function c(d){return function(f){return l([d,f])}}function l(d){if(n)throw new TypeError("Generator is already executing.");for(;t;)try{if(n=1,a&&(i=d[0]&2?a.return:d[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,d[1])).done)return i;switch(a=0,i&&(d=[d[0]&2,i.value]),d[0]){case 0:case 1:i=d;break;case 4:return t.label++,{value:d[1],done:!1};case 5:t.label++,a=d[1],d=[0];continue;case 7:d=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(d[0]===6||d[0]===2)){t=0;continue}if(d[0]===3&&(!i||d[1]>i[0]&&d[1]256||e[2]&&e[2]!==String(n))&&Ai.throwArgumentError("invalid numeric width","type",r);var a=C0t.mask(t?n-1:n),i=t?a.add(aoe).mul(_0t):noe;return function(c){var l=tg.BigNumber.from(c);return(l.lt(i)||l.gt(a))&&Ai.throwArgumentError("value out-of-bounds for "+r,"value",c),(0,ro.hexZeroPad)(l.toTwos(256).toHexString(),32)}}}{var e=r.match(/^bytes(\d+)$/);if(e){var s=parseInt(e[1]);return(s===0||s>32||e[1]!==String(s))&&Ai.throwArgumentError("invalid bytes width","type",r),function(l){var d=(0,ro.arrayify)(l);return d.length!==s&&Ai.throwArgumentError("invalid length for "+r,"value",l),E0t(l)}}}switch(r){case"address":return function(c){return(0,ro.hexZeroPad)((0,eoe.getAddress)(c),32)};case"bool":return function(c){return c?k0t:S0t};case"bytes":return function(c){return(0,ob.keccak256)(c)};case"string":return function(c){return(0,toe.id)(c)}}return null}function $se(r,e){return r+"("+e.map(function(t){var n=t.name,a=t.type;return a+" "+n}).join(",")+")"}var M0t=function(){function r(e){(0,eg.defineReadOnly)(this,"types",Object.freeze((0,eg.deepCopy)(e))),(0,eg.defineReadOnly)(this,"_encoderCache",{}),(0,eg.defineReadOnly)(this,"_types",{});var t={},n={},a={};Object.keys(e).forEach(function(w){t[w]={},n[w]=[],a[w]={}});var i=function(w){var E={};e[w].forEach(function(k){E[k.name]&&Ai.throwArgumentError("duplicate variable name "+JSON.stringify(k.name)+" in "+JSON.stringify(w),"types",e),E[k.name]=!0;var A=k.type.match(/^([^\x5b]*)(\x5b|$)/)[1];A===w&&Ai.throwArgumentError("circular type reference to "+JSON.stringify(A),"types",e);var L=xD(A);L||(n[A]||Ai.throwArgumentError("unknown type "+JSON.stringify(A),"types",e),n[A].push(w),t[w][A]=!0)})};for(var s in e)i(s);var c=Object.keys(n).filter(function(w){return n[w].length===0});c.length===0?Ai.throwArgumentError("missing primary type","types",e):c.length>1&&Ai.throwArgumentError("ambiguous primary types or unused types: "+c.map(function(w){return JSON.stringify(w)}).join(", "),"types",e),(0,eg.defineReadOnly)(this,"primaryType",c[0]);function l(w,E){E[w]&&Ai.throwArgumentError("circular type reference to "+JSON.stringify(w),"types",e),E[w]=!0,Object.keys(t[w]).forEach(function(k){!n[k]||(l(k,E),Object.keys(E).forEach(function(A){a[A][k]=!0}))}),delete E[w]}l(this.primaryType,{});for(var d in a){var f=Object.keys(a[d]);f.sort(),this._types[d]=$se(d,e[d])+f.map(function(w){return $se(w,e[w])}).join("")}}return r.prototype.getEncoder=function(e){var t=this._encoderCache[e];return t||(t=this._encoderCache[e]=this._getEncoder(e)),t},r.prototype._getEncoder=function(e){var t=this;{var n=xD(e);if(n)return n}var a=e.match(/^(.*)(\x5b(\d*)\x5d)$/);if(a){var i=a[1],s=this.getEncoder(i),c=parseInt(a[3]);return function(f){c>=0&&f.length!==c&&Ai.throwArgumentError("array length mismatch; expected length ${ arrayLength }","value",f);var w=f.map(s);return t._types[i]&&(w=w.map(ob.keccak256)),(0,ob.keccak256)((0,ro.hexConcat)(w))}}var l=this.types[e];if(l){var d=(0,toe.id)(this._types[e]);return function(f){var w=l.map(function(E){var k=E.name,A=E.type,L=t.getEncoder(A)(f[k]);return t._types[A]?(0,ob.keccak256)(L):L});return w.unshift(d),(0,ro.hexConcat)(w)}}return Ai.throwArgumentError("unknown type: "+e,"type",e)},r.prototype.encodeType=function(e){var t=this._types[e];return t||Ai.throwArgumentError("unknown type: "+JSON.stringify(e),"name",e),t},r.prototype.encodeData=function(e,t){return this.getEncoder(e)(t)},r.prototype.hashStruct=function(e,t){return(0,ob.keccak256)(this.encodeData(e,t))},r.prototype.encode=function(e){return this.encodeData(this.primaryType,e)},r.prototype.hash=function(e){return this.hashStruct(this.primaryType,e)},r.prototype._visit=function(e,t,n){var a=this;{var i=xD(e);if(i)return n(e,t)}var s=e.match(/^(.*)(\x5b(\d*)\x5d)$/);if(s){var c=s[1],l=parseInt(s[3]);return l>=0&&t.length!==l&&Ai.throwArgumentError("array length mismatch; expected length ${ arrayLength }","value",t),t.map(function(f){return a._visit(c,f,n)})}var d=this.types[e];return d?d.reduce(function(f,w){var E=w.name,k=w.type;return f[E]=a._visit(k,t[E],n),f},{}):Ai.throwArgumentError("unknown type: "+e,"type",e)},r.prototype.visit=function(e,t){return this._visit(this.primaryType,e,t)},r.from=function(e){return new r(e)},r.getPrimaryType=function(e){return r.from(e).primaryType},r.hashStruct=function(e,t,n){return r.from(t).hashStruct(e,n)},r.hashDomain=function(e){var t=[];for(var n in e){var a=Xse[n];a||Ai.throwArgumentError("invalid typed-data domain key: "+JSON.stringify(n),"domain",e),t.push({name:n,type:a})}return t.sort(function(i,s){return wD.indexOf(i.name)-wD.indexOf(s.name)}),r.hashStruct("EIP712Domain",{EIP712Domain:t},e)},r.encode=function(e,t,n){return(0,ro.hexConcat)(["0x1901",r.hashDomain(e),r.from(t).hash(n)])},r.hash=function(e,t,n){return(0,ob.keccak256)(r.encode(e,t,n))},r.resolveNames=function(e,t,n,a){return b0t(this,void 0,void 0,function(){var i,s,c,l,d,f,w,E;return w0t(this,function(k){switch(k.label){case 0:e=(0,eg.shallowCopy)(e),i={},e.verifyingContract&&!(0,ro.isHexString)(e.verifyingContract,20)&&(i[e.verifyingContract]="0x"),s=r.from(t),s.visit(n,function(A,L){return A==="address"&&!(0,ro.isHexString)(L,20)&&(i[L]="0x"),L}),c=[];for(l in i)c.push(l);d=0,k.label=1;case 1:return d{"use strict";x();T();Object.defineProperty(qs,"__esModule",{value:!0});qs._TypedDataEncoder=qs.hashMessage=qs.messagePrefix=qs.ensNormalize=qs.isValidName=qs.namehash=qs.dnsEncode=qs.id=void 0;var I0t=hD();Object.defineProperty(qs,"id",{enumerable:!0,get:function(){return I0t.id}});var TD=vD();Object.defineProperty(qs,"dnsEncode",{enumerable:!0,get:function(){return TD.dnsEncode}});Object.defineProperty(qs,"isValidName",{enumerable:!0,get:function(){return TD.isValidName}});Object.defineProperty(qs,"namehash",{enumerable:!0,get:function(){return TD.namehash}});var soe=Qse();Object.defineProperty(qs,"hashMessage",{enumerable:!0,get:function(){return soe.hashMessage}});Object.defineProperty(qs,"messagePrefix",{enumerable:!0,get:function(){return soe.messagePrefix}});var P0t=vD();Object.defineProperty(qs,"ensNormalize",{enumerable:!0,get:function(){return P0t.ensNormalize}});var R0t=ioe();Object.defineProperty(qs,"_TypedDataEncoder",{enumerable:!0,get:function(){return R0t.TypedDataEncoder}})});var hoe=O(Eo=>{"use strict";x();T();var bk=Eo&&Eo.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(Eo,"__esModule",{value:!0});Eo.Interface=Eo.Indexed=Eo.ErrorDescription=Eo.TransactionDescription=Eo.LogDescription=Eo.checkResultErrors=void 0;var N0t=Sl(),ooe=es(),Ti=Wr(),gk=rg(),coe=Qu(),no=Xa(),O0t=pD(),L0t=El();Object.defineProperty(Eo,"checkResultErrors",{enumerable:!0,get:function(){return L0t.checkResultErrors}});var mf=QE(),vk=ur(),B0t=j1(),Mi=new vk.Logger(B0t.version),loe=function(r){bk(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e}(no.Description);Eo.LogDescription=loe;var doe=function(r){bk(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e}(no.Description);Eo.TransactionDescription=doe;var poe=function(r){bk(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e}(no.Description);Eo.ErrorDescription=poe;var _D=function(r){bk(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.isIndexed=function(t){return!!(t&&t._isIndexed)},e}(no.Description);Eo.Indexed=_D;var q0t={"0x08c379a0":{signature:"Error(string)",name:"Error",inputs:["string"],reason:!0},"0x4e487b71":{signature:"Panic(uint256)",name:"Panic",inputs:["uint256"]}};function uoe(r,e){var t=new Error("deferred error during ABI decoding triggered accessing "+r);return t.error=e,t}var D0t=function(){function r(e){var t=this.constructor,n=this,a=[];typeof e=="string"?a=JSON.parse(e):a=e,(0,no.defineReadOnly)(this,"fragments",a.map(function(i){return mf.Fragment.from(i)}).filter(function(i){return i!=null})),(0,no.defineReadOnly)(this,"_abiCoder",(0,no.getStatic)(t,"getAbiCoder")()),(0,no.defineReadOnly)(this,"functions",{}),(0,no.defineReadOnly)(this,"errors",{}),(0,no.defineReadOnly)(this,"events",{}),(0,no.defineReadOnly)(this,"structs",{}),this.fragments.forEach(function(i){var s=null;switch(i.type){case"constructor":if(n.deploy){Mi.warn("duplicate definition - constructor");return}(0,no.defineReadOnly)(n,"deploy",i);return;case"function":s=n.functions;break;case"event":s=n.events;break;case"error":s=n.errors;break;default:return}var c=i.format();if(s[c]){Mi.warn("duplicate definition - "+c);return}s[c]=i}),this.deploy||(0,no.defineReadOnly)(this,"deploy",mf.ConstructorFragment.from({payable:!1,type:"constructor"})),(0,no.defineReadOnly)(this,"_isInterface",!0)}return r.prototype.format=function(e){e||(e=mf.FormatTypes.full),e===mf.FormatTypes.sighash&&Mi.throwArgumentError("interface does not support formatting sighash","format",e);var t=this.fragments.map(function(n){return n.format(e)});return e===mf.FormatTypes.json?JSON.stringify(t.map(function(n){return JSON.parse(n)})):t},r.getAbiCoder=function(){return O0t.defaultAbiCoder},r.getAddress=function(e){return(0,N0t.getAddress)(e)},r.getSighash=function(e){return(0,Ti.hexDataSlice)((0,gk.id)(e.format()),0,4)},r.getEventTopic=function(e){return(0,gk.id)(e.format())},r.prototype.getFunction=function(e){if((0,Ti.isHexString)(e)){for(var t in this.functions)if(e===this.getSighash(t))return this.functions[t];Mi.throwArgumentError("no matching function","sighash",e)}if(e.indexOf("(")===-1){var n=e.trim(),a=Object.keys(this.functions).filter(function(s){return s.split("(")[0]===n});return a.length===0?Mi.throwArgumentError("no matching function","name",n):a.length>1&&Mi.throwArgumentError("multiple matching functions","name",n),this.functions[a[0]]}var i=this.functions[mf.FunctionFragment.fromString(e).format()];return i||Mi.throwArgumentError("no matching function","signature",e),i},r.prototype.getEvent=function(e){if((0,Ti.isHexString)(e)){var t=e.toLowerCase();for(var n in this.events)if(t===this.getEventTopic(n))return this.events[n];Mi.throwArgumentError("no matching event","topichash",t)}if(e.indexOf("(")===-1){var a=e.trim(),i=Object.keys(this.events).filter(function(c){return c.split("(")[0]===a});return i.length===0?Mi.throwArgumentError("no matching event","name",a):i.length>1&&Mi.throwArgumentError("multiple matching events","name",a),this.events[i[0]]}var s=this.events[mf.EventFragment.fromString(e).format()];return s||Mi.throwArgumentError("no matching event","signature",e),s},r.prototype.getError=function(e){if((0,Ti.isHexString)(e)){var t=(0,no.getStatic)(this.constructor,"getSighash");for(var n in this.errors){var a=this.errors[n];if(e===t(a))return this.errors[n]}Mi.throwArgumentError("no matching error","sighash",e)}if(e.indexOf("(")===-1){var i=e.trim(),s=Object.keys(this.errors).filter(function(l){return l.split("(")[0]===i});return s.length===0?Mi.throwArgumentError("no matching error","name",i):s.length>1&&Mi.throwArgumentError("multiple matching errors","name",i),this.errors[s[0]]}var c=this.errors[mf.FunctionFragment.fromString(e).format()];return c||Mi.throwArgumentError("no matching error","signature",e),c},r.prototype.getSighash=function(e){if(typeof e=="string")try{e=this.getFunction(e)}catch(t){try{e=this.getError(e)}catch{throw t}}return(0,no.getStatic)(this.constructor,"getSighash")(e)},r.prototype.getEventTopic=function(e){return typeof e=="string"&&(e=this.getEvent(e)),(0,no.getStatic)(this.constructor,"getEventTopic")(e)},r.prototype._decodeParams=function(e,t){return this._abiCoder.decode(e,t)},r.prototype._encodeParams=function(e,t){return this._abiCoder.encode(e,t)},r.prototype.encodeDeploy=function(e){return this._encodeParams(this.deploy.inputs,e||[])},r.prototype.decodeErrorResult=function(e,t){typeof e=="string"&&(e=this.getError(e));var n=(0,Ti.arrayify)(t);return(0,Ti.hexlify)(n.slice(0,4))!==this.getSighash(e)&&Mi.throwArgumentError("data signature does not match error "+e.name+".","data",(0,Ti.hexlify)(n)),this._decodeParams(e.inputs,n.slice(4))},r.prototype.encodeErrorResult=function(e,t){return typeof e=="string"&&(e=this.getError(e)),(0,Ti.hexlify)((0,Ti.concat)([this.getSighash(e),this._encodeParams(e.inputs,t||[])]))},r.prototype.decodeFunctionData=function(e,t){typeof e=="string"&&(e=this.getFunction(e));var n=(0,Ti.arrayify)(t);return(0,Ti.hexlify)(n.slice(0,4))!==this.getSighash(e)&&Mi.throwArgumentError("data signature does not match function "+e.name+".","data",(0,Ti.hexlify)(n)),this._decodeParams(e.inputs,n.slice(4))},r.prototype.encodeFunctionData=function(e,t){return typeof e=="string"&&(e=this.getFunction(e)),(0,Ti.hexlify)((0,Ti.concat)([this.getSighash(e),this._encodeParams(e.inputs,t||[])]))},r.prototype.decodeFunctionResult=function(e,t){typeof e=="string"&&(e=this.getFunction(e));var n=(0,Ti.arrayify)(t),a=null,i="",s=null,c=null,l=null;switch(n.length%this._abiCoder._getWordSize()){case 0:try{return this._abiCoder.decode(e.outputs,n)}catch{}break;case 4:{var d=(0,Ti.hexlify)(n.slice(0,4)),f=q0t[d];if(f)s=this._abiCoder.decode(f.inputs,n.slice(4)),c=f.name,l=f.signature,f.reason&&(a=s[0]),c==="Error"?i="; VM Exception while processing transaction: reverted with reason string "+JSON.stringify(s[0]):c==="Panic"&&(i="; VM Exception while processing transaction: reverted with panic code "+s[0]);else try{var w=this.getError(d);s=this._abiCoder.decode(w.inputs,n.slice(4)),c=w.name,l=w.format()}catch{}break}}return Mi.throwError("call revert exception"+i,vk.Logger.errors.CALL_EXCEPTION,{method:e.format(),data:(0,Ti.hexlify)(t),errorArgs:s,errorName:c,errorSignature:l,reason:a})},r.prototype.encodeFunctionResult=function(e,t){return typeof e=="string"&&(e=this.getFunction(e)),(0,Ti.hexlify)(this._abiCoder.encode(e.outputs,t||[]))},r.prototype.encodeFilterTopics=function(e,t){var n=this;typeof e=="string"&&(e=this.getEvent(e)),t.length>e.inputs.length&&Mi.throwError("too many arguments for "+e.format(),vk.Logger.errors.UNEXPECTED_ARGUMENT,{argument:"values",value:t});var a=[];e.anonymous||a.push(this.getEventTopic(e));var i=function(s,c){return s.type==="string"?(0,gk.id)(c):s.type==="bytes"?(0,coe.keccak256)((0,Ti.hexlify)(c)):(s.type==="bool"&&typeof c=="boolean"&&(c=c?"0x01":"0x00"),s.type.match(/^u?int/)&&(c=ooe.BigNumber.from(c).toHexString()),s.type==="address"&&n._abiCoder.encode(["address"],[c]),(0,Ti.hexZeroPad)((0,Ti.hexlify)(c),32))};for(t.forEach(function(s,c){var l=e.inputs[c];if(!l.indexed){s!=null&&Mi.throwArgumentError("cannot filter non-indexed parameters; must be null","contract."+l.name,s);return}s==null?a.push(null):l.baseType==="array"||l.baseType==="tuple"?Mi.throwArgumentError("filtering with tuples or arrays not supported","contract."+l.name,s):Array.isArray(s)?a.push(s.map(function(d){return i(l,d)})):a.push(i(l,s))});a.length&&a[a.length-1]===null;)a.pop();return a},r.prototype.encodeEventLog=function(e,t){var n=this;typeof e=="string"&&(e=this.getEvent(e));var a=[],i=[],s=[];return e.anonymous||a.push(this.getEventTopic(e)),t.length!==e.inputs.length&&Mi.throwArgumentError("event arguments/values mismatch","values",t),e.inputs.forEach(function(c,l){var d=t[l];if(c.indexed)if(c.type==="string")a.push((0,gk.id)(d));else if(c.type==="bytes")a.push((0,coe.keccak256)(d));else{if(c.baseType==="tuple"||c.baseType==="array")throw new Error("not implemented");a.push(n._abiCoder.encode([c.type],[d]))}else i.push(c),s.push(d)}),{data:this._abiCoder.encode(i,s),topics:a}},r.prototype.decodeEventLog=function(e,t,n){if(typeof e=="string"&&(e=this.getEvent(e)),n!=null&&!e.anonymous){var a=this.getEventTopic(e);(!(0,Ti.isHexString)(n[0],32)||n[0].toLowerCase()!==a)&&Mi.throwError("fragment/topic mismatch",vk.Logger.errors.INVALID_ARGUMENT,{argument:"topics[0]",expected:a,value:n[0]}),n=n.slice(1)}var i=[],s=[],c=[];e.inputs.forEach(function(L,q){L.indexed?L.type==="string"||L.type==="bytes"||L.baseType==="tuple"||L.baseType==="array"?(i.push(mf.ParamType.fromObject({type:"bytes32",name:L.name})),c.push(!0)):(i.push(L),c.push(!1)):(s.push(L),c.push(!1))});var l=n!=null?this._abiCoder.decode(i,(0,Ti.concat)(n)):null,d=this._abiCoder.decode(s,t,!0),f=[],w=0,E=0;e.inputs.forEach(function(L,q){if(L.indexed)if(l==null)f[q]=new _D({_isIndexed:!0,hash:null});else if(c[q])f[q]=new _D({_isIndexed:!0,hash:l[E++]});else try{f[q]=l[E++]}catch(j){f[q]=j}else try{f[q]=d[w++]}catch(j){f[q]=j}if(L.name&&f[L.name]==null){var U=f[q];U instanceof Error?Object.defineProperty(f,L.name,{enumerable:!0,get:function(){throw uoe("property "+JSON.stringify(L.name),U)}}):f[L.name]=U}});for(var k=function(L){var q=f[L];q instanceof Error&&Object.defineProperty(f,L,{enumerable:!0,get:function(){throw uoe("index "+L,q)}})},A=0;A{"use strict";x();T();Object.defineProperty(Ya,"__esModule",{value:!0});Ya.TransactionDescription=Ya.LogDescription=Ya.checkResultErrors=Ya.Indexed=Ya.Interface=Ya.defaultAbiCoder=Ya.AbiCoder=Ya.FormatTypes=Ya.ParamType=Ya.FunctionFragment=Ya.Fragment=Ya.EventFragment=Ya.ErrorFragment=Ya.ConstructorFragment=void 0;var ng=QE();Object.defineProperty(Ya,"ConstructorFragment",{enumerable:!0,get:function(){return ng.ConstructorFragment}});Object.defineProperty(Ya,"ErrorFragment",{enumerable:!0,get:function(){return ng.ErrorFragment}});Object.defineProperty(Ya,"EventFragment",{enumerable:!0,get:function(){return ng.EventFragment}});Object.defineProperty(Ya,"FormatTypes",{enumerable:!0,get:function(){return ng.FormatTypes}});Object.defineProperty(Ya,"Fragment",{enumerable:!0,get:function(){return ng.Fragment}});Object.defineProperty(Ya,"FunctionFragment",{enumerable:!0,get:function(){return ng.FunctionFragment}});Object.defineProperty(Ya,"ParamType",{enumerable:!0,get:function(){return ng.ParamType}});var foe=pD();Object.defineProperty(Ya,"AbiCoder",{enumerable:!0,get:function(){return foe.AbiCoder}});Object.defineProperty(Ya,"defaultAbiCoder",{enumerable:!0,get:function(){return foe.defaultAbiCoder}});var N3=hoe();Object.defineProperty(Ya,"checkResultErrors",{enumerable:!0,get:function(){return N3.checkResultErrors}});Object.defineProperty(Ya,"Indexed",{enumerable:!0,get:function(){return N3.Indexed}});Object.defineProperty(Ya,"Interface",{enumerable:!0,get:function(){return N3.Interface}});Object.defineProperty(Ya,"LogDescription",{enumerable:!0,get:function(){return N3.LogDescription}});Object.defineProperty(Ya,"TransactionDescription",{enumerable:!0,get:function(){return N3.TransactionDescription}})});var moe=O(wk=>{"use strict";x();T();Object.defineProperty(wk,"__esModule",{value:!0});wk.version=void 0;wk.version="abstract-provider/5.7.0"});var cb=O(Ds=>{"use strict";x();T();var Tk=Ds&&Ds.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),F0t=Ds&&Ds.__awaiter||function(r,e,t,n){function a(i){return i instanceof t?i:new t(function(s){s(i)})}return new(t||(t=Promise))(function(i,s){function c(f){try{d(n.next(f))}catch(w){s(w)}}function l(f){try{d(n.throw(f))}catch(w){s(w)}}function d(f){f.done?i(f.value):a(f.value).then(c,l)}d((n=n.apply(r,e||[])).next())})},U0t=Ds&&Ds.__generator||function(r,e){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,s;return s={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function c(d){return function(f){return l([d,f])}}function l(d){if(n)throw new TypeError("Generator is already executing.");for(;t;)try{if(n=1,a&&(i=d[0]&2?a.return:d[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,d[1])).done)return i;switch(a=0,i&&(d=[d[0]&2,i.value]),d[0]){case 0:case 1:i=d;break;case 4:return t.label++,{value:d[1],done:!1};case 5:t.label++,a=d[1],d=[0];continue;case 7:d=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(d[0]===6||d[0]===2)){t=0;continue}if(d[0]===3&&(!i||d[1]>i[0]&&d[1]{"use strict";x();T();Object.defineProperty(Ck,"__esModule",{value:!0});Ck.version=void 0;Ck.version="abstract-signer/5.7.0"});var L3=O(Il=>{"use strict";x();T();var J0t=Il&&Il.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),jd=Il&&Il.__awaiter||function(r,e,t,n){function a(i){return i instanceof t?i:new t(function(s){s(i)})}return new(t||(t=Promise))(function(i,s){function c(f){try{d(n.next(f))}catch(w){s(w)}}function l(f){try{d(n.throw(f))}catch(w){s(w)}}function d(f){f.done?i(f.value):a(f.value).then(c,l)}d((n=n.apply(r,e||[])).next())})},zd=Il&&Il.__generator||function(r,e){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,s;return s={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function c(d){return function(f){return l([d,f])}}function l(d){if(n)throw new TypeError("Generator is already executing.");for(;t;)try{if(n=1,a&&(i=d[0]&2?a.return:d[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,d[1])).done)return i;switch(a=0,i&&(d=[d[0]&2,i.value]),d[0]){case 0:case 1:i=d;break;case 4:return t.label++,{value:d[1],done:!1};case 5:t.label++,a=d[1],d=[0];continue;case 7:d=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(d[0]===6||d[0]===2)){t=0;continue}if(d[0]===3&&(!i||d[1]>i[0]&&d[1]=0)throw l;return Ml.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",yf.Logger.errors.UNPREDICTABLE_GAS_LIMIT,{error:l,tx:t})})),t.chainId==null?t.chainId=this.getChainId():t.chainId=Promise.all([Promise.resolve(t.chainId),this.getChainId()]).then(function(l){return l[1]!==0&&l[0]!==l[1]&&Ml.throwArgumentError("chainId address mismatch","transaction",e),l[0]}),[4,(0,jm.resolveProperties)(t)];case 6:return[2,c.sent()]}})})},r.prototype._checkProvider=function(e){this.provider||Ml.throwError("missing provider",yf.Logger.errors.UNSUPPORTED_OPERATION,{operation:e||"_checkProvider"})},r.isSigner=function(e){return!!(e&&e._isSigner)},r}();Il.Signer=goe;var Y0t=function(r){J0t(e,r);function e(t,n){var a=r.call(this)||this;return(0,jm.defineReadOnly)(a,"address",t),(0,jm.defineReadOnly)(a,"provider",n||null),a}return e.prototype.getAddress=function(){return Promise.resolve(this.address)},e.prototype._fail=function(t,n){return Promise.resolve().then(function(){Ml.throwError(t,yf.Logger.errors.UNSUPPORTED_OPERATION,{operation:n})})},e.prototype.signMessage=function(t){return this._fail("VoidSigner cannot sign messages","signMessage")},e.prototype.signTransaction=function(t){return this._fail("VoidSigner cannot sign transactions","signTransaction")},e.prototype._signTypedData=function(t,n,a){return this._fail("VoidSigner cannot sign typed data","signTypedData")},e.prototype.connect=function(t){return new e(this.address,t)},e}(goe);Il.VoidSigner=Y0t});var voe=O((rjr,$0t)=>{$0t.exports={name:"elliptic",version:"6.5.4",description:"EC cryptography",main:"lib/elliptic.js",files:["lib"],scripts:{lint:"eslint lib test","lint:fix":"npm run lint -- --fix",unit:"istanbul test _mocha --reporter=spec test/index.js",test:"npm run lint && npm run unit",version:"grunt dist && git add dist/"},repository:{type:"git",url:"git@github.com:indutny/elliptic"},keywords:["EC","Elliptic","curve","Cryptography"],author:"Fedor Indutny ",license:"MIT",bugs:{url:"https://github.com/indutny/elliptic/issues"},homepage:"https://github.com/indutny/elliptic",devDependencies:{brfs:"^2.0.2",coveralls:"^3.1.0",eslint:"^7.6.0",grunt:"^1.2.1","grunt-browserify":"^5.3.0","grunt-cli":"^1.3.2","grunt-contrib-connect":"^3.0.0","grunt-contrib-copy":"^1.0.0","grunt-contrib-uglify":"^5.0.0","grunt-mocha-istanbul":"^5.0.2","grunt-saucelabs":"^9.0.1",istanbul:"^0.4.5",mocha:"^8.0.1"},dependencies:{"bn.js":"^4.11.9",brorand:"^1.1.0","hash.js":"^1.0.0","hmac-drbg":"^1.0.1",inherits:"^2.0.4","minimalistic-assert":"^1.0.1","minimalistic-crypto-utils":"^1.0.1"}}});var Yp=O((boe,kD)=>{x();T();(function(r,e){"use strict";function t(g,o){if(!g)throw new Error(o||"Assertion failed")}function n(g,o){g.super_=o;var p=function(){};p.prototype=o.prototype,g.prototype=new p,g.prototype.constructor=g}function a(g,o,p){if(a.isBN(g))return g;this.negative=0,this.words=null,this.length=0,this.red=null,g!==null&&((o==="le"||o==="be")&&(p=o,o=10),this._init(g||0,o||10,p||"be"))}typeof r=="object"?r.exports=a:e.BN=a,a.BN=a,a.wordSize=26;var i;try{typeof window<"u"&&typeof window.Buffer<"u"?i=window.Buffer:i=$i().Buffer}catch{}a.isBN=function(o){return o instanceof a?!0:o!==null&&typeof o=="object"&&o.constructor.wordSize===a.wordSize&&Array.isArray(o.words)},a.max=function(o,p){return o.cmp(p)>0?o:p},a.min=function(o,p){return o.cmp(p)<0?o:p},a.prototype._init=function(o,p,y){if(typeof o=="number")return this._initNumber(o,p,y);if(typeof o=="object")return this._initArray(o,p,y);p==="hex"&&(p=16),t(p===(p|0)&&p>=2&&p<=36),o=o.toString().replace(/\s+/g,"");var h=0;o[0]==="-"&&(h++,this.negative=1),h=0;h-=3)_=o[h]|o[h-1]<<8|o[h-2]<<16,this.words[v]|=_<>>26-C&67108863,C+=24,C>=26&&(C-=26,v++);else if(y==="le")for(h=0,v=0;h>>26-C&67108863,C+=24,C>=26&&(C-=26,v++);return this.strip()};function s(g,o){var p=g.charCodeAt(o);return p>=65&&p<=70?p-55:p>=97&&p<=102?p-87:p-48&15}function c(g,o,p){var y=s(g,p);return p-1>=o&&(y|=s(g,p-1)<<4),y}a.prototype._parseHex=function(o,p,y){this.length=Math.ceil((o.length-p)/6),this.words=new Array(this.length);for(var h=0;h=p;h-=2)C=c(o,p,h)<=18?(v-=18,_+=1,this.words[_]|=C>>>26):v+=8;else{var m=o.length-p;for(h=m%2===0?p+1:p;h=18?(v-=18,_+=1,this.words[_]|=C>>>26):v+=8}this.strip()};function l(g,o,p,y){for(var h=0,v=Math.min(g.length,p),_=o;_=49?h+=C-49+10:C>=17?h+=C-17+10:h+=C}return h}a.prototype._parseBase=function(o,p,y){this.words=[0],this.length=1;for(var h=0,v=1;v<=67108863;v*=p)h++;h--,v=v/p|0;for(var _=o.length-y,C=_%h,m=Math.min(_,_-C)+y,u=0,b=y;b1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},a.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},a.prototype.inspect=function(){return(this.red?""};var d=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],f=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],w=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];a.prototype.toString=function(o,p){o=o||10,p=p|0||1;var y;if(o===16||o==="hex"){y="";for(var h=0,v=0,_=0;_>>24-h&16777215,v!==0||_!==this.length-1?y=d[6-m.length]+m+y:y=m+y,h+=2,h>=26&&(h-=26,_--)}for(v!==0&&(y=v.toString(16)+y);y.length%p!==0;)y="0"+y;return this.negative!==0&&(y="-"+y),y}if(o===(o|0)&&o>=2&&o<=36){var u=f[o],b=w[o];y="";var R=this.clone();for(R.negative=0;!R.isZero();){var S=R.modn(b).toString(o);R=R.idivn(b),R.isZero()?y=S+y:y=d[u-S.length]+S+y}for(this.isZero()&&(y="0"+y);y.length%p!==0;)y="0"+y;return this.negative!==0&&(y="-"+y),y}t(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var o=this.words[0];return this.length===2?o+=this.words[1]*67108864:this.length===3&&this.words[2]===1?o+=4503599627370496+this.words[1]*67108864:this.length>2&&t(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-o:o},a.prototype.toJSON=function(){return this.toString(16)},a.prototype.toBuffer=function(o,p){return t(typeof i<"u"),this.toArrayLike(i,o,p)},a.prototype.toArray=function(o,p){return this.toArrayLike(Array,o,p)},a.prototype.toArrayLike=function(o,p,y){var h=this.byteLength(),v=y||Math.max(1,h);t(h<=v,"byte array longer than desired length"),t(v>0,"Requested array length <= 0"),this.strip();var _=p==="le",C=new o(v),m,u,b=this.clone();if(_){for(u=0;!b.isZero();u++)m=b.andln(255),b.iushrn(8),C[u]=m;for(;u=4096&&(y+=13,p>>>=13),p>=64&&(y+=7,p>>>=7),p>=8&&(y+=4,p>>>=4),p>=2&&(y+=2,p>>>=2),y+p},a.prototype._zeroBits=function(o){if(o===0)return 26;var p=o,y=0;return(p&8191)===0&&(y+=13,p>>>=13),(p&127)===0&&(y+=7,p>>>=7),(p&15)===0&&(y+=4,p>>>=4),(p&3)===0&&(y+=2,p>>>=2),(p&1)===0&&y++,y},a.prototype.bitLength=function(){var o=this.words[this.length-1],p=this._countBits(o);return(this.length-1)*26+p};function E(g){for(var o=new Array(g.bitLength()),p=0;p>>h}return o}a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var o=0,p=0;po.length?this.clone().ior(o):o.clone().ior(this)},a.prototype.uor=function(o){return this.length>o.length?this.clone().iuor(o):o.clone().iuor(this)},a.prototype.iuand=function(o){var p;this.length>o.length?p=o:p=this;for(var y=0;yo.length?this.clone().iand(o):o.clone().iand(this)},a.prototype.uand=function(o){return this.length>o.length?this.clone().iuand(o):o.clone().iuand(this)},a.prototype.iuxor=function(o){var p,y;this.length>o.length?(p=this,y=o):(p=o,y=this);for(var h=0;ho.length?this.clone().ixor(o):o.clone().ixor(this)},a.prototype.uxor=function(o){return this.length>o.length?this.clone().iuxor(o):o.clone().iuxor(this)},a.prototype.inotn=function(o){t(typeof o=="number"&&o>=0);var p=Math.ceil(o/26)|0,y=o%26;this._expand(p),y>0&&p--;for(var h=0;h0&&(this.words[h]=~this.words[h]&67108863>>26-y),this.strip()},a.prototype.notn=function(o){return this.clone().inotn(o)},a.prototype.setn=function(o,p){t(typeof o=="number"&&o>=0);var y=o/26|0,h=o%26;return this._expand(y+1),p?this.words[y]=this.words[y]|1<o.length?(y=this,h=o):(y=o,h=this);for(var v=0,_=0;_>>26;for(;v!==0&&_>>26;if(this.length=y.length,v!==0)this.words[this.length]=v,this.length++;else if(y!==this)for(;_o.length?this.clone().iadd(o):o.clone().iadd(this)},a.prototype.isub=function(o){if(o.negative!==0){o.negative=0;var p=this.iadd(o);return o.negative=1,p._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(o),this.negative=1,this._normSign();var y=this.cmp(o);if(y===0)return this.negative=0,this.length=1,this.words[0]=0,this;var h,v;y>0?(h=this,v=o):(h=o,v=this);for(var _=0,C=0;C>26,this.words[C]=p&67108863;for(;_!==0&&C>26,this.words[C]=p&67108863;if(_===0&&C>>26,R=m&67108863,S=Math.min(u,o.length-1),B=Math.max(0,u-g.length+1);B<=S;B++){var Z=u-B|0;h=g.words[Z]|0,v=o.words[B]|0,_=h*v+R,b+=_/67108864|0,R=_&67108863}p.words[u]=R|0,m=b|0}return m!==0?p.words[u]=m|0:p.length--,p.strip()}var A=function(o,p,y){var h=o.words,v=p.words,_=y.words,C=0,m,u,b,R=h[0]|0,S=R&8191,B=R>>>13,Z=h[1]|0,W=Z&8191,X=Z>>>13,de=h[2]|0,ne=de&8191,pe=de>>>13,pt=h[3]|0,fe=pt&8191,be=pt>>>13,Tt=h[4]|0,we=Tt&8191,Oe=Tt>>>13,Pt=h[5]|0,Be=Pt&8191,ze=Pt>>>13,At=h[6]|0,Me=At&8191,Ve=At>>>13,St=h[7]|0,Ie=St&8191,Ze=St>>>13,Ut=h[8]|0,qe=Ut&8191,Xe=Ut>>>13,Ht=h[9]|0,Ae=Ht&8191,Ke=Ht>>>13,Gt=v[0]|0,Pe=Gt&8191,Qe=Gt>>>13,Zt=v[1]|0,Re=Zt&8191,Ye=Zt>>>13,Jt=v[2]|0,Ne=Jt&8191,$e=Jt>>>13,Vt=v[3]|0,Se=Vt&8191,et=Vt>>>13,Rt=v[4]|0,Le=Rt&8191,tt=Rt>>>13,Kt=v[5]|0,De=Kt&8191,rt=Kt>>>13,Qt=v[6]|0,ke=Qt&8191,Je=Qt>>>13,Xt=v[7]|0,Ue=Xt&8191,st=Xt>>>13,rr=v[8]|0,We=rr&8191,nt=rr>>>13,ir=v[9]|0,je=ir&8191,at=ir>>>13;y.negative=o.negative^p.negative,y.length=19,m=Math.imul(S,Pe),u=Math.imul(S,Qe),u=u+Math.imul(B,Pe)|0,b=Math.imul(B,Qe);var Lr=(C+m|0)+((u&8191)<<13)|0;C=(b+(u>>>13)|0)+(Lr>>>26)|0,Lr&=67108863,m=Math.imul(W,Pe),u=Math.imul(W,Qe),u=u+Math.imul(X,Pe)|0,b=Math.imul(X,Qe),m=m+Math.imul(S,Re)|0,u=u+Math.imul(S,Ye)|0,u=u+Math.imul(B,Re)|0,b=b+Math.imul(B,Ye)|0;var Wt=(C+m|0)+((u&8191)<<13)|0;C=(b+(u>>>13)|0)+(Wt>>>26)|0,Wt&=67108863,m=Math.imul(ne,Pe),u=Math.imul(ne,Qe),u=u+Math.imul(pe,Pe)|0,b=Math.imul(pe,Qe),m=m+Math.imul(W,Re)|0,u=u+Math.imul(W,Ye)|0,u=u+Math.imul(X,Re)|0,b=b+Math.imul(X,Ye)|0,m=m+Math.imul(S,Ne)|0,u=u+Math.imul(S,$e)|0,u=u+Math.imul(B,Ne)|0,b=b+Math.imul(B,$e)|0;var jt=(C+m|0)+((u&8191)<<13)|0;C=(b+(u>>>13)|0)+(jt>>>26)|0,jt&=67108863,m=Math.imul(fe,Pe),u=Math.imul(fe,Qe),u=u+Math.imul(be,Pe)|0,b=Math.imul(be,Qe),m=m+Math.imul(ne,Re)|0,u=u+Math.imul(ne,Ye)|0,u=u+Math.imul(pe,Re)|0,b=b+Math.imul(pe,Ye)|0,m=m+Math.imul(W,Ne)|0,u=u+Math.imul(W,$e)|0,u=u+Math.imul(X,Ne)|0,b=b+Math.imul(X,$e)|0,m=m+Math.imul(S,Se)|0,u=u+Math.imul(S,et)|0,u=u+Math.imul(B,Se)|0,b=b+Math.imul(B,et)|0;var Er=(C+m|0)+((u&8191)<<13)|0;C=(b+(u>>>13)|0)+(Er>>>26)|0,Er&=67108863,m=Math.imul(we,Pe),u=Math.imul(we,Qe),u=u+Math.imul(Oe,Pe)|0,b=Math.imul(Oe,Qe),m=m+Math.imul(fe,Re)|0,u=u+Math.imul(fe,Ye)|0,u=u+Math.imul(be,Re)|0,b=b+Math.imul(be,Ye)|0,m=m+Math.imul(ne,Ne)|0,u=u+Math.imul(ne,$e)|0,u=u+Math.imul(pe,Ne)|0,b=b+Math.imul(pe,$e)|0,m=m+Math.imul(W,Se)|0,u=u+Math.imul(W,et)|0,u=u+Math.imul(X,Se)|0,b=b+Math.imul(X,et)|0,m=m+Math.imul(S,Le)|0,u=u+Math.imul(S,tt)|0,u=u+Math.imul(B,Le)|0,b=b+Math.imul(B,tt)|0;var kr=(C+m|0)+((u&8191)<<13)|0;C=(b+(u>>>13)|0)+(kr>>>26)|0,kr&=67108863,m=Math.imul(Be,Pe),u=Math.imul(Be,Qe),u=u+Math.imul(ze,Pe)|0,b=Math.imul(ze,Qe),m=m+Math.imul(we,Re)|0,u=u+Math.imul(we,Ye)|0,u=u+Math.imul(Oe,Re)|0,b=b+Math.imul(Oe,Ye)|0,m=m+Math.imul(fe,Ne)|0,u=u+Math.imul(fe,$e)|0,u=u+Math.imul(be,Ne)|0,b=b+Math.imul(be,$e)|0,m=m+Math.imul(ne,Se)|0,u=u+Math.imul(ne,et)|0,u=u+Math.imul(pe,Se)|0,b=b+Math.imul(pe,et)|0,m=m+Math.imul(W,Le)|0,u=u+Math.imul(W,tt)|0,u=u+Math.imul(X,Le)|0,b=b+Math.imul(X,tt)|0,m=m+Math.imul(S,De)|0,u=u+Math.imul(S,rt)|0,u=u+Math.imul(B,De)|0,b=b+Math.imul(B,rt)|0;var Sr=(C+m|0)+((u&8191)<<13)|0;C=(b+(u>>>13)|0)+(Sr>>>26)|0,Sr&=67108863,m=Math.imul(Me,Pe),u=Math.imul(Me,Qe),u=u+Math.imul(Ve,Pe)|0,b=Math.imul(Ve,Qe),m=m+Math.imul(Be,Re)|0,u=u+Math.imul(Be,Ye)|0,u=u+Math.imul(ze,Re)|0,b=b+Math.imul(ze,Ye)|0,m=m+Math.imul(we,Ne)|0,u=u+Math.imul(we,$e)|0,u=u+Math.imul(Oe,Ne)|0,b=b+Math.imul(Oe,$e)|0,m=m+Math.imul(fe,Se)|0,u=u+Math.imul(fe,et)|0,u=u+Math.imul(be,Se)|0,b=b+Math.imul(be,et)|0,m=m+Math.imul(ne,Le)|0,u=u+Math.imul(ne,tt)|0,u=u+Math.imul(pe,Le)|0,b=b+Math.imul(pe,tt)|0,m=m+Math.imul(W,De)|0,u=u+Math.imul(W,rt)|0,u=u+Math.imul(X,De)|0,b=b+Math.imul(X,rt)|0,m=m+Math.imul(S,ke)|0,u=u+Math.imul(S,Je)|0,u=u+Math.imul(B,ke)|0,b=b+Math.imul(B,Je)|0;var Ar=(C+m|0)+((u&8191)<<13)|0;C=(b+(u>>>13)|0)+(Ar>>>26)|0,Ar&=67108863,m=Math.imul(Ie,Pe),u=Math.imul(Ie,Qe),u=u+Math.imul(Ze,Pe)|0,b=Math.imul(Ze,Qe),m=m+Math.imul(Me,Re)|0,u=u+Math.imul(Me,Ye)|0,u=u+Math.imul(Ve,Re)|0,b=b+Math.imul(Ve,Ye)|0,m=m+Math.imul(Be,Ne)|0,u=u+Math.imul(Be,$e)|0,u=u+Math.imul(ze,Ne)|0,b=b+Math.imul(ze,$e)|0,m=m+Math.imul(we,Se)|0,u=u+Math.imul(we,et)|0,u=u+Math.imul(Oe,Se)|0,b=b+Math.imul(Oe,et)|0,m=m+Math.imul(fe,Le)|0,u=u+Math.imul(fe,tt)|0,u=u+Math.imul(be,Le)|0,b=b+Math.imul(be,tt)|0,m=m+Math.imul(ne,De)|0,u=u+Math.imul(ne,rt)|0,u=u+Math.imul(pe,De)|0,b=b+Math.imul(pe,rt)|0,m=m+Math.imul(W,ke)|0,u=u+Math.imul(W,Je)|0,u=u+Math.imul(X,ke)|0,b=b+Math.imul(X,Je)|0,m=m+Math.imul(S,Ue)|0,u=u+Math.imul(S,st)|0,u=u+Math.imul(B,Ue)|0,b=b+Math.imul(B,st)|0;var Mr=(C+m|0)+((u&8191)<<13)|0;C=(b+(u>>>13)|0)+(Mr>>>26)|0,Mr&=67108863,m=Math.imul(qe,Pe),u=Math.imul(qe,Qe),u=u+Math.imul(Xe,Pe)|0,b=Math.imul(Xe,Qe),m=m+Math.imul(Ie,Re)|0,u=u+Math.imul(Ie,Ye)|0,u=u+Math.imul(Ze,Re)|0,b=b+Math.imul(Ze,Ye)|0,m=m+Math.imul(Me,Ne)|0,u=u+Math.imul(Me,$e)|0,u=u+Math.imul(Ve,Ne)|0,b=b+Math.imul(Ve,$e)|0,m=m+Math.imul(Be,Se)|0,u=u+Math.imul(Be,et)|0,u=u+Math.imul(ze,Se)|0,b=b+Math.imul(ze,et)|0,m=m+Math.imul(we,Le)|0,u=u+Math.imul(we,tt)|0,u=u+Math.imul(Oe,Le)|0,b=b+Math.imul(Oe,tt)|0,m=m+Math.imul(fe,De)|0,u=u+Math.imul(fe,rt)|0,u=u+Math.imul(be,De)|0,b=b+Math.imul(be,rt)|0,m=m+Math.imul(ne,ke)|0,u=u+Math.imul(ne,Je)|0,u=u+Math.imul(pe,ke)|0,b=b+Math.imul(pe,Je)|0,m=m+Math.imul(W,Ue)|0,u=u+Math.imul(W,st)|0,u=u+Math.imul(X,Ue)|0,b=b+Math.imul(X,st)|0,m=m+Math.imul(S,We)|0,u=u+Math.imul(S,nt)|0,u=u+Math.imul(B,We)|0,b=b+Math.imul(B,nt)|0;var Kr=(C+m|0)+((u&8191)<<13)|0;C=(b+(u>>>13)|0)+(Kr>>>26)|0,Kr&=67108863,m=Math.imul(Ae,Pe),u=Math.imul(Ae,Qe),u=u+Math.imul(Ke,Pe)|0,b=Math.imul(Ke,Qe),m=m+Math.imul(qe,Re)|0,u=u+Math.imul(qe,Ye)|0,u=u+Math.imul(Xe,Re)|0,b=b+Math.imul(Xe,Ye)|0,m=m+Math.imul(Ie,Ne)|0,u=u+Math.imul(Ie,$e)|0,u=u+Math.imul(Ze,Ne)|0,b=b+Math.imul(Ze,$e)|0,m=m+Math.imul(Me,Se)|0,u=u+Math.imul(Me,et)|0,u=u+Math.imul(Ve,Se)|0,b=b+Math.imul(Ve,et)|0,m=m+Math.imul(Be,Le)|0,u=u+Math.imul(Be,tt)|0,u=u+Math.imul(ze,Le)|0,b=b+Math.imul(ze,tt)|0,m=m+Math.imul(we,De)|0,u=u+Math.imul(we,rt)|0,u=u+Math.imul(Oe,De)|0,b=b+Math.imul(Oe,rt)|0,m=m+Math.imul(fe,ke)|0,u=u+Math.imul(fe,Je)|0,u=u+Math.imul(be,ke)|0,b=b+Math.imul(be,Je)|0,m=m+Math.imul(ne,Ue)|0,u=u+Math.imul(ne,st)|0,u=u+Math.imul(pe,Ue)|0,b=b+Math.imul(pe,st)|0,m=m+Math.imul(W,We)|0,u=u+Math.imul(W,nt)|0,u=u+Math.imul(X,We)|0,b=b+Math.imul(X,nt)|0,m=m+Math.imul(S,je)|0,u=u+Math.imul(S,at)|0,u=u+Math.imul(B,je)|0,b=b+Math.imul(B,at)|0;var Qr=(C+m|0)+((u&8191)<<13)|0;C=(b+(u>>>13)|0)+(Qr>>>26)|0,Qr&=67108863,m=Math.imul(Ae,Re),u=Math.imul(Ae,Ye),u=u+Math.imul(Ke,Re)|0,b=Math.imul(Ke,Ye),m=m+Math.imul(qe,Ne)|0,u=u+Math.imul(qe,$e)|0,u=u+Math.imul(Xe,Ne)|0,b=b+Math.imul(Xe,$e)|0,m=m+Math.imul(Ie,Se)|0,u=u+Math.imul(Ie,et)|0,u=u+Math.imul(Ze,Se)|0,b=b+Math.imul(Ze,et)|0,m=m+Math.imul(Me,Le)|0,u=u+Math.imul(Me,tt)|0,u=u+Math.imul(Ve,Le)|0,b=b+Math.imul(Ve,tt)|0,m=m+Math.imul(Be,De)|0,u=u+Math.imul(Be,rt)|0,u=u+Math.imul(ze,De)|0,b=b+Math.imul(ze,rt)|0,m=m+Math.imul(we,ke)|0,u=u+Math.imul(we,Je)|0,u=u+Math.imul(Oe,ke)|0,b=b+Math.imul(Oe,Je)|0,m=m+Math.imul(fe,Ue)|0,u=u+Math.imul(fe,st)|0,u=u+Math.imul(be,Ue)|0,b=b+Math.imul(be,st)|0,m=m+Math.imul(ne,We)|0,u=u+Math.imul(ne,nt)|0,u=u+Math.imul(pe,We)|0,b=b+Math.imul(pe,nt)|0,m=m+Math.imul(W,je)|0,u=u+Math.imul(W,at)|0,u=u+Math.imul(X,je)|0,b=b+Math.imul(X,at)|0;var Vr=(C+m|0)+((u&8191)<<13)|0;C=(b+(u>>>13)|0)+(Vr>>>26)|0,Vr&=67108863,m=Math.imul(Ae,Ne),u=Math.imul(Ae,$e),u=u+Math.imul(Ke,Ne)|0,b=Math.imul(Ke,$e),m=m+Math.imul(qe,Se)|0,u=u+Math.imul(qe,et)|0,u=u+Math.imul(Xe,Se)|0,b=b+Math.imul(Xe,et)|0,m=m+Math.imul(Ie,Le)|0,u=u+Math.imul(Ie,tt)|0,u=u+Math.imul(Ze,Le)|0,b=b+Math.imul(Ze,tt)|0,m=m+Math.imul(Me,De)|0,u=u+Math.imul(Me,rt)|0,u=u+Math.imul(Ve,De)|0,b=b+Math.imul(Ve,rt)|0,m=m+Math.imul(Be,ke)|0,u=u+Math.imul(Be,Je)|0,u=u+Math.imul(ze,ke)|0,b=b+Math.imul(ze,Je)|0,m=m+Math.imul(we,Ue)|0,u=u+Math.imul(we,st)|0,u=u+Math.imul(Oe,Ue)|0,b=b+Math.imul(Oe,st)|0,m=m+Math.imul(fe,We)|0,u=u+Math.imul(fe,nt)|0,u=u+Math.imul(be,We)|0,b=b+Math.imul(be,nt)|0,m=m+Math.imul(ne,je)|0,u=u+Math.imul(ne,at)|0,u=u+Math.imul(pe,je)|0,b=b+Math.imul(pe,at)|0;var Br=(C+m|0)+((u&8191)<<13)|0;C=(b+(u>>>13)|0)+(Br>>>26)|0,Br&=67108863,m=Math.imul(Ae,Se),u=Math.imul(Ae,et),u=u+Math.imul(Ke,Se)|0,b=Math.imul(Ke,et),m=m+Math.imul(qe,Le)|0,u=u+Math.imul(qe,tt)|0,u=u+Math.imul(Xe,Le)|0,b=b+Math.imul(Xe,tt)|0,m=m+Math.imul(Ie,De)|0,u=u+Math.imul(Ie,rt)|0,u=u+Math.imul(Ze,De)|0,b=b+Math.imul(Ze,rt)|0,m=m+Math.imul(Me,ke)|0,u=u+Math.imul(Me,Je)|0,u=u+Math.imul(Ve,ke)|0,b=b+Math.imul(Ve,Je)|0,m=m+Math.imul(Be,Ue)|0,u=u+Math.imul(Be,st)|0,u=u+Math.imul(ze,Ue)|0,b=b+Math.imul(ze,st)|0,m=m+Math.imul(we,We)|0,u=u+Math.imul(we,nt)|0,u=u+Math.imul(Oe,We)|0,b=b+Math.imul(Oe,nt)|0,m=m+Math.imul(fe,je)|0,u=u+Math.imul(fe,at)|0,u=u+Math.imul(be,je)|0,b=b+Math.imul(be,at)|0;var Fr=(C+m|0)+((u&8191)<<13)|0;C=(b+(u>>>13)|0)+(Fr>>>26)|0,Fr&=67108863,m=Math.imul(Ae,Le),u=Math.imul(Ae,tt),u=u+Math.imul(Ke,Le)|0,b=Math.imul(Ke,tt),m=m+Math.imul(qe,De)|0,u=u+Math.imul(qe,rt)|0,u=u+Math.imul(Xe,De)|0,b=b+Math.imul(Xe,rt)|0,m=m+Math.imul(Ie,ke)|0,u=u+Math.imul(Ie,Je)|0,u=u+Math.imul(Ze,ke)|0,b=b+Math.imul(Ze,Je)|0,m=m+Math.imul(Me,Ue)|0,u=u+Math.imul(Me,st)|0,u=u+Math.imul(Ve,Ue)|0,b=b+Math.imul(Ve,st)|0,m=m+Math.imul(Be,We)|0,u=u+Math.imul(Be,nt)|0,u=u+Math.imul(ze,We)|0,b=b+Math.imul(ze,nt)|0,m=m+Math.imul(we,je)|0,u=u+Math.imul(we,at)|0,u=u+Math.imul(Oe,je)|0,b=b+Math.imul(Oe,at)|0;var hr=(C+m|0)+((u&8191)<<13)|0;C=(b+(u>>>13)|0)+(hr>>>26)|0,hr&=67108863,m=Math.imul(Ae,De),u=Math.imul(Ae,rt),u=u+Math.imul(Ke,De)|0,b=Math.imul(Ke,rt),m=m+Math.imul(qe,ke)|0,u=u+Math.imul(qe,Je)|0,u=u+Math.imul(Xe,ke)|0,b=b+Math.imul(Xe,Je)|0,m=m+Math.imul(Ie,Ue)|0,u=u+Math.imul(Ie,st)|0,u=u+Math.imul(Ze,Ue)|0,b=b+Math.imul(Ze,st)|0,m=m+Math.imul(Me,We)|0,u=u+Math.imul(Me,nt)|0,u=u+Math.imul(Ve,We)|0,b=b+Math.imul(Ve,nt)|0,m=m+Math.imul(Be,je)|0,u=u+Math.imul(Be,at)|0,u=u+Math.imul(ze,je)|0,b=b+Math.imul(ze,at)|0;var Gr=(C+m|0)+((u&8191)<<13)|0;C=(b+(u>>>13)|0)+(Gr>>>26)|0,Gr&=67108863,m=Math.imul(Ae,ke),u=Math.imul(Ae,Je),u=u+Math.imul(Ke,ke)|0,b=Math.imul(Ke,Je),m=m+Math.imul(qe,Ue)|0,u=u+Math.imul(qe,st)|0,u=u+Math.imul(Xe,Ue)|0,b=b+Math.imul(Xe,st)|0,m=m+Math.imul(Ie,We)|0,u=u+Math.imul(Ie,nt)|0,u=u+Math.imul(Ze,We)|0,b=b+Math.imul(Ze,nt)|0,m=m+Math.imul(Me,je)|0,u=u+Math.imul(Me,at)|0,u=u+Math.imul(Ve,je)|0,b=b+Math.imul(Ve,at)|0;var gr=(C+m|0)+((u&8191)<<13)|0;C=(b+(u>>>13)|0)+(gr>>>26)|0,gr&=67108863,m=Math.imul(Ae,Ue),u=Math.imul(Ae,st),u=u+Math.imul(Ke,Ue)|0,b=Math.imul(Ke,st),m=m+Math.imul(qe,We)|0,u=u+Math.imul(qe,nt)|0,u=u+Math.imul(Xe,We)|0,b=b+Math.imul(Xe,nt)|0,m=m+Math.imul(Ie,je)|0,u=u+Math.imul(Ie,at)|0,u=u+Math.imul(Ze,je)|0,b=b+Math.imul(Ze,at)|0;var Ur=(C+m|0)+((u&8191)<<13)|0;C=(b+(u>>>13)|0)+(Ur>>>26)|0,Ur&=67108863,m=Math.imul(Ae,We),u=Math.imul(Ae,nt),u=u+Math.imul(Ke,We)|0,b=Math.imul(Ke,nt),m=m+Math.imul(qe,je)|0,u=u+Math.imul(qe,at)|0,u=u+Math.imul(Xe,je)|0,b=b+Math.imul(Xe,at)|0;var tn=(C+m|0)+((u&8191)<<13)|0;C=(b+(u>>>13)|0)+(tn>>>26)|0,tn&=67108863,m=Math.imul(Ae,je),u=Math.imul(Ae,at),u=u+Math.imul(Ke,je)|0,b=Math.imul(Ke,at);var An=(C+m|0)+((u&8191)<<13)|0;return C=(b+(u>>>13)|0)+(An>>>26)|0,An&=67108863,_[0]=Lr,_[1]=Wt,_[2]=jt,_[3]=Er,_[4]=kr,_[5]=Sr,_[6]=Ar,_[7]=Mr,_[8]=Kr,_[9]=Qr,_[10]=Vr,_[11]=Br,_[12]=Fr,_[13]=hr,_[14]=Gr,_[15]=gr,_[16]=Ur,_[17]=tn,_[18]=An,C!==0&&(_[19]=C,y.length++),y};Math.imul||(A=k);function L(g,o,p){p.negative=o.negative^g.negative,p.length=g.length+o.length;for(var y=0,h=0,v=0;v>>26)|0,h+=_>>>26,_&=67108863}p.words[v]=C,y=_,_=h}return y!==0?p.words[v]=y:p.length--,p.strip()}function q(g,o,p){var y=new U;return y.mulp(g,o,p)}a.prototype.mulTo=function(o,p){var y,h=this.length+o.length;return this.length===10&&o.length===10?y=A(this,o,p):h<63?y=k(this,o,p):h<1024?y=L(this,o,p):y=q(this,o,p),y};function U(g,o){this.x=g,this.y=o}U.prototype.makeRBT=function(o){for(var p=new Array(o),y=a.prototype._countBits(o)-1,h=0;h>=1;return h},U.prototype.permute=function(o,p,y,h,v,_){for(var C=0;C<_;C++)h[C]=p[o[C]],v[C]=y[o[C]]},U.prototype.transform=function(o,p,y,h,v,_){this.permute(_,o,p,y,h,v);for(var C=1;C>>1)v++;return 1<>>13,y[2*_+1]=v&8191,v=v>>>13;for(_=2*p;_>=26,p+=h/67108864|0,p+=v>>>26,this.words[y]=v&67108863}return p!==0&&(this.words[y]=p,this.length++),this},a.prototype.muln=function(o){return this.clone().imuln(o)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(o){var p=E(o);if(p.length===0)return new a(1);for(var y=this,h=0;h=0);var p=o%26,y=(o-p)/26,h=67108863>>>26-p<<26-p,v;if(p!==0){var _=0;for(v=0;v>>26-p}_&&(this.words[v]=_,this.length++)}if(y!==0){for(v=this.length-1;v>=0;v--)this.words[v+y]=this.words[v];for(v=0;v=0);var h;p?h=(p-p%26)/26:h=0;var v=o%26,_=Math.min((o-v)/26,this.length),C=67108863^67108863>>>v<_)for(this.length-=_,u=0;u=0&&(b!==0||u>=h);u--){var R=this.words[u]|0;this.words[u]=b<<26-v|R>>>v,b=R&C}return m&&b!==0&&(m.words[m.length++]=b),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},a.prototype.ishrn=function(o,p,y){return t(this.negative===0),this.iushrn(o,p,y)},a.prototype.shln=function(o){return this.clone().ishln(o)},a.prototype.ushln=function(o){return this.clone().iushln(o)},a.prototype.shrn=function(o){return this.clone().ishrn(o)},a.prototype.ushrn=function(o){return this.clone().iushrn(o)},a.prototype.testn=function(o){t(typeof o=="number"&&o>=0);var p=o%26,y=(o-p)/26,h=1<=0);var p=o%26,y=(o-p)/26;if(t(this.negative===0,"imaskn works only with positive numbers"),this.length<=y)return this;if(p!==0&&y++,this.length=Math.min(y,this.length),p!==0){var h=67108863^67108863>>>p<=67108864;p++)this.words[p]-=67108864,p===this.length-1?this.words[p+1]=1:this.words[p+1]++;return this.length=Math.max(this.length,p+1),this},a.prototype.isubn=function(o){if(t(typeof o=="number"),t(o<67108864),o<0)return this.iaddn(-o);if(this.negative!==0)return this.negative=0,this.iaddn(o),this.negative=1,this;if(this.words[0]-=o,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var p=0;p>26)-(m/67108864|0),this.words[v+y]=_&67108863}for(;v>26,this.words[v+y]=_&67108863;if(C===0)return this.strip();for(t(C===-1),C=0,v=0;v>26,this.words[v]=_&67108863;return this.negative=1,this.strip()},a.prototype._wordDiv=function(o,p){var y=this.length-o.length,h=this.clone(),v=o,_=v.words[v.length-1]|0,C=this._countBits(_);y=26-C,y!==0&&(v=v.ushln(y),h.iushln(y),_=v.words[v.length-1]|0);var m=h.length-v.length,u;if(p!=="mod"){u=new a(null),u.length=m+1,u.words=new Array(u.length);for(var b=0;b=0;S--){var B=(h.words[v.length+S]|0)*67108864+(h.words[v.length+S-1]|0);for(B=Math.min(B/_|0,67108863),h._ishlnsubmul(v,B,S);h.negative!==0;)B--,h.negative=0,h._ishlnsubmul(v,1,S),h.isZero()||(h.negative^=1);u&&(u.words[S]=B)}return u&&u.strip(),h.strip(),p!=="div"&&y!==0&&h.iushrn(y),{div:u||null,mod:h}},a.prototype.divmod=function(o,p,y){if(t(!o.isZero()),this.isZero())return{div:new a(0),mod:new a(0)};var h,v,_;return this.negative!==0&&o.negative===0?(_=this.neg().divmod(o,p),p!=="mod"&&(h=_.div.neg()),p!=="div"&&(v=_.mod.neg(),y&&v.negative!==0&&v.iadd(o)),{div:h,mod:v}):this.negative===0&&o.negative!==0?(_=this.divmod(o.neg(),p),p!=="mod"&&(h=_.div.neg()),{div:h,mod:_.mod}):(this.negative&o.negative)!==0?(_=this.neg().divmod(o.neg(),p),p!=="div"&&(v=_.mod.neg(),y&&v.negative!==0&&v.isub(o)),{div:_.div,mod:v}):o.length>this.length||this.cmp(o)<0?{div:new a(0),mod:this}:o.length===1?p==="div"?{div:this.divn(o.words[0]),mod:null}:p==="mod"?{div:null,mod:new a(this.modn(o.words[0]))}:{div:this.divn(o.words[0]),mod:new a(this.modn(o.words[0]))}:this._wordDiv(o,p)},a.prototype.div=function(o){return this.divmod(o,"div",!1).div},a.prototype.mod=function(o){return this.divmod(o,"mod",!1).mod},a.prototype.umod=function(o){return this.divmod(o,"mod",!0).mod},a.prototype.divRound=function(o){var p=this.divmod(o);if(p.mod.isZero())return p.div;var y=p.div.negative!==0?p.mod.isub(o):p.mod,h=o.ushrn(1),v=o.andln(1),_=y.cmp(h);return _<0||v===1&&_===0?p.div:p.div.negative!==0?p.div.isubn(1):p.div.iaddn(1)},a.prototype.modn=function(o){t(o<=67108863);for(var p=(1<<26)%o,y=0,h=this.length-1;h>=0;h--)y=(p*y+(this.words[h]|0))%o;return y},a.prototype.idivn=function(o){t(o<=67108863);for(var p=0,y=this.length-1;y>=0;y--){var h=(this.words[y]|0)+p*67108864;this.words[y]=h/o|0,p=h%o}return this.strip()},a.prototype.divn=function(o){return this.clone().idivn(o)},a.prototype.egcd=function(o){t(o.negative===0),t(!o.isZero());var p=this,y=o.clone();p.negative!==0?p=p.umod(o):p=p.clone();for(var h=new a(1),v=new a(0),_=new a(0),C=new a(1),m=0;p.isEven()&&y.isEven();)p.iushrn(1),y.iushrn(1),++m;for(var u=y.clone(),b=p.clone();!p.isZero();){for(var R=0,S=1;(p.words[0]&S)===0&&R<26;++R,S<<=1);if(R>0)for(p.iushrn(R);R-- >0;)(h.isOdd()||v.isOdd())&&(h.iadd(u),v.isub(b)),h.iushrn(1),v.iushrn(1);for(var B=0,Z=1;(y.words[0]&Z)===0&&B<26;++B,Z<<=1);if(B>0)for(y.iushrn(B);B-- >0;)(_.isOdd()||C.isOdd())&&(_.iadd(u),C.isub(b)),_.iushrn(1),C.iushrn(1);p.cmp(y)>=0?(p.isub(y),h.isub(_),v.isub(C)):(y.isub(p),_.isub(h),C.isub(v))}return{a:_,b:C,gcd:y.iushln(m)}},a.prototype._invmp=function(o){t(o.negative===0),t(!o.isZero());var p=this,y=o.clone();p.negative!==0?p=p.umod(o):p=p.clone();for(var h=new a(1),v=new a(0),_=y.clone();p.cmpn(1)>0&&y.cmpn(1)>0;){for(var C=0,m=1;(p.words[0]&m)===0&&C<26;++C,m<<=1);if(C>0)for(p.iushrn(C);C-- >0;)h.isOdd()&&h.iadd(_),h.iushrn(1);for(var u=0,b=1;(y.words[0]&b)===0&&u<26;++u,b<<=1);if(u>0)for(y.iushrn(u);u-- >0;)v.isOdd()&&v.iadd(_),v.iushrn(1);p.cmp(y)>=0?(p.isub(y),h.isub(v)):(y.isub(p),v.isub(h))}var R;return p.cmpn(1)===0?R=h:R=v,R.cmpn(0)<0&&R.iadd(o),R},a.prototype.gcd=function(o){if(this.isZero())return o.abs();if(o.isZero())return this.abs();var p=this.clone(),y=o.clone();p.negative=0,y.negative=0;for(var h=0;p.isEven()&&y.isEven();h++)p.iushrn(1),y.iushrn(1);do{for(;p.isEven();)p.iushrn(1);for(;y.isEven();)y.iushrn(1);var v=p.cmp(y);if(v<0){var _=p;p=y,y=_}else if(v===0||y.cmpn(1)===0)break;p.isub(y)}while(!0);return y.iushln(h)},a.prototype.invm=function(o){return this.egcd(o).a.umod(o)},a.prototype.isEven=function(){return(this.words[0]&1)===0},a.prototype.isOdd=function(){return(this.words[0]&1)===1},a.prototype.andln=function(o){return this.words[0]&o},a.prototype.bincn=function(o){t(typeof o=="number");var p=o%26,y=(o-p)/26,h=1<>>26,C&=67108863,this.words[_]=C}return v!==0&&(this.words[_]=v,this.length++),this},a.prototype.isZero=function(){return this.length===1&&this.words[0]===0},a.prototype.cmpn=function(o){var p=o<0;if(this.negative!==0&&!p)return-1;if(this.negative===0&&p)return 1;this.strip();var y;if(this.length>1)y=1;else{p&&(o=-o),t(o<=67108863,"Number is too big");var h=this.words[0]|0;y=h===o?0:ho.length)return 1;if(this.length=0;y--){var h=this.words[y]|0,v=o.words[y]|0;if(h!==v){hv&&(p=1);break}}return p},a.prototype.gtn=function(o){return this.cmpn(o)===1},a.prototype.gt=function(o){return this.cmp(o)===1},a.prototype.gten=function(o){return this.cmpn(o)>=0},a.prototype.gte=function(o){return this.cmp(o)>=0},a.prototype.ltn=function(o){return this.cmpn(o)===-1},a.prototype.lt=function(o){return this.cmp(o)===-1},a.prototype.lten=function(o){return this.cmpn(o)<=0},a.prototype.lte=function(o){return this.cmp(o)<=0},a.prototype.eqn=function(o){return this.cmpn(o)===0},a.prototype.eq=function(o){return this.cmp(o)===0},a.red=function(o){return new J(o)},a.prototype.toRed=function(o){return t(!this.red,"Already a number in reduction context"),t(this.negative===0,"red works only with positives"),o.convertTo(this)._forceRed(o)},a.prototype.fromRed=function(){return t(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(o){return this.red=o,this},a.prototype.forceRed=function(o){return t(!this.red,"Already a number in reduction context"),this._forceRed(o)},a.prototype.redAdd=function(o){return t(this.red,"redAdd works only with red numbers"),this.red.add(this,o)},a.prototype.redIAdd=function(o){return t(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,o)},a.prototype.redSub=function(o){return t(this.red,"redSub works only with red numbers"),this.red.sub(this,o)},a.prototype.redISub=function(o){return t(this.red,"redISub works only with red numbers"),this.red.isub(this,o)},a.prototype.redShl=function(o){return t(this.red,"redShl works only with red numbers"),this.red.shl(this,o)},a.prototype.redMul=function(o){return t(this.red,"redMul works only with red numbers"),this.red._verify2(this,o),this.red.mul(this,o)},a.prototype.redIMul=function(o){return t(this.red,"redMul works only with red numbers"),this.red._verify2(this,o),this.red.imul(this,o)},a.prototype.redSqr=function(){return t(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return t(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return t(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return t(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return t(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(o){return t(this.red&&!o.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,o)};var j={k256:null,p224:null,p192:null,p25519:null};function H(g,o){this.name=g,this.p=new a(o,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}H.prototype._tmp=function(){var o=new a(null);return o.words=new Array(Math.ceil(this.n/13)),o},H.prototype.ireduce=function(o){var p=o,y;do this.split(p,this.tmp),p=this.imulK(p),p=p.iadd(this.tmp),y=p.bitLength();while(y>this.n);var h=y0?p.isub(this.p):p.strip!==void 0?p.strip():p._strip(),p},H.prototype.split=function(o,p){o.iushrn(this.n,0,p)},H.prototype.imulK=function(o){return o.imul(this.k)};function G(){H.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}n(G,H),G.prototype.split=function(o,p){for(var y=4194303,h=Math.min(o.length,9),v=0;v>>22,_=C}_>>>=22,o.words[v-10]=_,_===0&&o.length>10?o.length-=10:o.length-=9},G.prototype.imulK=function(o){o.words[o.length]=0,o.words[o.length+1]=0,o.length+=2;for(var p=0,y=0;y>>=26,o.words[y]=v,p=h}return p!==0&&(o.words[o.length++]=p),o},a._prime=function(o){if(j[o])return j[o];var p;if(o==="k256")p=new G;else if(o==="p224")p=new te;else if(o==="p192")p=new K;else if(o==="p25519")p=new ae;else throw new Error("Unknown prime "+o);return j[o]=p,p};function J(g){if(typeof g=="string"){var o=a._prime(g);this.m=o.p,this.prime=o}else t(g.gtn(1),"modulus must be greater than 1"),this.m=g,this.prime=null}J.prototype._verify1=function(o){t(o.negative===0,"red works only with positives"),t(o.red,"red works only with red numbers")},J.prototype._verify2=function(o,p){t((o.negative|p.negative)===0,"red works only with positives"),t(o.red&&o.red===p.red,"red works only with red numbers")},J.prototype.imod=function(o){return this.prime?this.prime.ireduce(o)._forceRed(this):o.umod(this.m)._forceRed(this)},J.prototype.neg=function(o){return o.isZero()?o.clone():this.m.sub(o)._forceRed(this)},J.prototype.add=function(o,p){this._verify2(o,p);var y=o.add(p);return y.cmp(this.m)>=0&&y.isub(this.m),y._forceRed(this)},J.prototype.iadd=function(o,p){this._verify2(o,p);var y=o.iadd(p);return y.cmp(this.m)>=0&&y.isub(this.m),y},J.prototype.sub=function(o,p){this._verify2(o,p);var y=o.sub(p);return y.cmpn(0)<0&&y.iadd(this.m),y._forceRed(this)},J.prototype.isub=function(o,p){this._verify2(o,p);var y=o.isub(p);return y.cmpn(0)<0&&y.iadd(this.m),y},J.prototype.shl=function(o,p){return this._verify1(o),this.imod(o.ushln(p))},J.prototype.imul=function(o,p){return this._verify2(o,p),this.imod(o.imul(p))},J.prototype.mul=function(o,p){return this._verify2(o,p),this.imod(o.mul(p))},J.prototype.isqr=function(o){return this.imul(o,o.clone())},J.prototype.sqr=function(o){return this.mul(o,o)},J.prototype.sqrt=function(o){if(o.isZero())return o.clone();var p=this.m.andln(3);if(t(p%2===1),p===3){var y=this.m.add(new a(1)).iushrn(2);return this.pow(o,y)}for(var h=this.m.subn(1),v=0;!h.isZero()&&h.andln(1)===0;)v++,h.iushrn(1);t(!h.isZero());var _=new a(1).toRed(this),C=_.redNeg(),m=this.m.subn(1).iushrn(1),u=this.m.bitLength();for(u=new a(2*u*u).toRed(this);this.pow(u,m).cmp(C)!==0;)u.redIAdd(C);for(var b=this.pow(u,h),R=this.pow(o,h.addn(1).iushrn(1)),S=this.pow(o,h),B=v;S.cmp(_)!==0;){for(var Z=S,W=0;Z.cmp(_)!==0;W++)Z=Z.redSqr();t(W=0;v--){for(var b=p.words[v],R=u-1;R>=0;R--){var S=b>>R&1;if(_!==h[0]&&(_=this.sqr(_)),S===0&&C===0){m=0;continue}C<<=1,C|=S,m++,!(m!==y&&(v!==0||R!==0))&&(_=this.mul(_,h[C]),m=0,C=0)}u=26}return _},J.prototype.convertTo=function(o){var p=o.umod(this.m);return p===o?p.clone():p},J.prototype.convertFrom=function(o){var p=o.clone();return p.red=null,p},a.mont=function(o){return new V(o)};function V(g){J.call(this,g),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new a(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}n(V,J),V.prototype.convertTo=function(o){return this.imod(o.ushln(this.shift))},V.prototype.convertFrom=function(o){var p=this.imod(o.mul(this.rinv));return p.red=null,p},V.prototype.imul=function(o,p){if(o.isZero()||p.isZero())return o.words[0]=0,o.length=1,o;var y=o.imul(p),h=y.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),v=y.isub(h).iushrn(this.shift),_=v;return v.cmp(this.m)>=0?_=v.isub(this.m):v.cmpn(0)<0&&(_=v.iadd(this.m)),_._forceRed(this)},V.prototype.mul=function(o,p){if(o.isZero()||p.isZero())return new a(0)._forceRed(this);var y=o.mul(p),h=y.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),v=y.isub(h).iushrn(this.shift),_=v;return v.cmp(this.m)>=0?_=v.isub(this.m):v.cmpn(0)<0&&(_=v.iadd(this.m)),_._forceRed(this)},V.prototype.invm=function(o){var p=this.imod(o._invmp(this.m).mul(this.r2));return p._forceRed(this)}})(typeof kD>"u"||kD,boe)});var Xu=O((ijr,xoe)=>{x();T();xoe.exports=woe;function woe(r,e){if(!r)throw new Error(e||"Assertion failed")}woe.equal=function(e,t,n){if(e!=t)throw new Error(n||"Assertion failed: "+e+" != "+t)}});var SD=O(Coe=>{"use strict";x();T();var Ek=Coe;function eyt(r,e){if(Array.isArray(r))return r.slice();if(!r)return[];var t=[];if(typeof r!="string"){for(var n=0;n>8,s=a&255;i?t.push(i,s):t.push(s)}return t}Ek.toArray=eyt;function Toe(r){return r.length===1?"0"+r:r}Ek.zero2=Toe;function _oe(r){for(var e="",t=0;t{"use strict";x();T();var Hd=Eoe,tyt=Yp(),ryt=Xu(),kk=SD();Hd.assert=ryt;Hd.toArray=kk.toArray;Hd.zero2=kk.zero2;Hd.toHex=kk.toHex;Hd.encode=kk.encode;function nyt(r,e,t){var n=new Array(Math.max(r.bitLength(),t)+1);n.fill(0);for(var a=1<(a>>1)-1?c=(a>>1)-l:c=l,i.isubn(c)):c=0,n[s]=c,i.iushrn(1)}return n}Hd.getNAF=nyt;function ayt(r,e){var t=[[],[]];r=r.clone(),e=e.clone();for(var n=0,a=0,i;r.cmpn(-n)>0||e.cmpn(-a)>0;){var s=r.andln(3)+n&3,c=e.andln(3)+a&3;s===3&&(s=-1),c===3&&(c=-1);var l;(s&1)===0?l=0:(i=r.andln(7)+n&7,(i===3||i===5)&&c===2?l=-s:l=s),t[0].push(l);var d;(c&1)===0?d=0:(i=e.andln(7)+a&7,(i===3||i===5)&&s===2?d=-c:d=c),t[1].push(d),2*n===l+1&&(n=1-n),2*a===d+1&&(a=1-a),r.iushrn(1),e.iushrn(1)}return t}Hd.getJSF=ayt;function iyt(r,e,t){var n="_"+e;r.prototype[e]=function(){return this[n]!==void 0?this[n]:this[n]=t.call(this)}}Hd.cachedProperty=iyt;function syt(r){return typeof r=="string"?Hd.toArray(r,"hex"):r}Hd.parseBytes=syt;function oyt(r){return new tyt(r,"hex","le")}Hd.intFromLE=oyt});var Zr=O((AD,Soe)=>{x();T();var Sk=$i(),$p=Sk.Buffer;function koe(r,e){for(var t in r)e[t]=r[t]}$p.from&&$p.alloc&&$p.allocUnsafe&&$p.allocUnsafeSlow?Soe.exports=Sk:(koe(Sk,AD),AD.Buffer=ag);function ag(r,e,t){return $p(r,e,t)}ag.prototype=Object.create($p.prototype);koe($p,ag);ag.from=function(r,e,t){if(typeof r=="number")throw new TypeError("Argument must not be a number");return $p(r,e,t)};ag.alloc=function(r,e,t){if(typeof r!="number")throw new TypeError("Argument must be a number");var n=$p(r);return e!==void 0?typeof t=="string"?n.fill(e,t):n.fill(e):n.fill(0),n};ag.allocUnsafe=function(r){if(typeof r!="number")throw new TypeError("Argument must be a number");return $p(r)};ag.allocUnsafeSlow=function(r){if(typeof r!="number")throw new TypeError("Argument must be a number");return Sk.SlowBuffer(r)}});var ig=O((yjr,ID)=>{"use strict";x();T();var MD=65536,cyt=4294967295;function uyt(){throw new Error(`Secure random number generation is not supported by this browser. -Use Chrome, Firefox or Internet Explorer 11`)}var lyt=Zr().Buffer,Ak=I.crypto||I.msCrypto;Ak&&Ak.getRandomValues?ID.exports=dyt:ID.exports=uyt;function dyt(r,e){if(r>cyt)throw new RangeError("requested too many random bytes");var t=lyt.allocUnsafe(r);if(r>0)if(r>MD)for(var n=0;n{x();T();typeof Object.create=="function"?PD.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:PD.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}});var zm=O((Tjr,RD)=>{"use strict";x();T();var ub=typeof Reflect=="object"?Reflect:null,Aoe=ub&&typeof ub.apply=="function"?ub.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)},Mk;ub&&typeof ub.ownKeys=="function"?Mk=ub.ownKeys:Object.getOwnPropertySymbols?Mk=function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Mk=function(e){return Object.getOwnPropertyNames(e)};function pyt(r){console&&console.warn&&console.warn(r)}var Ioe=Number.isNaN||function(e){return e!==e};function oi(){oi.init.call(this)}RD.exports=oi;RD.exports.once=yyt;oi.EventEmitter=oi;oi.prototype._events=void 0;oi.prototype._eventsCount=0;oi.prototype._maxListeners=void 0;var Moe=10;function Ik(r){if(typeof r!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof r)}Object.defineProperty(oi,"defaultMaxListeners",{enumerable:!0,get:function(){return Moe},set:function(r){if(typeof r!="number"||r<0||Ioe(r))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+r+".");Moe=r}});oi.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0};oi.prototype.setMaxListeners=function(e){if(typeof e!="number"||e<0||Ioe(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this};function Poe(r){return r._maxListeners===void 0?oi.defaultMaxListeners:r._maxListeners}oi.prototype.getMaxListeners=function(){return Poe(this)};oi.prototype.emit=function(e){for(var t=[],n=1;n0&&(s=t[0]),s instanceof Error)throw s;var c=new Error("Unhandled error."+(s?" ("+s.message+")":""));throw c.context=s,c}var l=i[e];if(l===void 0)return!1;if(typeof l=="function")Aoe(l,this,t);else for(var d=l.length,f=Boe(l,d),n=0;n0&&s.length>a&&!s.warned){s.warned=!0;var c=new Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(e)+" listeners added. Use emitter.setMaxListeners() to increase limit");c.name="MaxListenersExceededWarning",c.emitter=r,c.type=e,c.count=s.length,pyt(c)}return r}oi.prototype.addListener=function(e,t){return Roe(this,e,t,!1)};oi.prototype.on=oi.prototype.addListener;oi.prototype.prependListener=function(e,t){return Roe(this,e,t,!0)};function hyt(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function Noe(r,e,t){var n={fired:!1,wrapFn:void 0,target:r,type:e,listener:t},a=hyt.bind(n);return a.listener=t,n.wrapFn=a,a}oi.prototype.once=function(e,t){return Ik(t),this.on(e,Noe(this,e,t)),this};oi.prototype.prependOnceListener=function(e,t){return Ik(t),this.prependListener(e,Noe(this,e,t)),this};oi.prototype.removeListener=function(e,t){var n,a,i,s,c;if(Ik(t),a=this._events,a===void 0)return this;if(n=a[e],n===void 0)return this;if(n===t||n.listener===t)--this._eventsCount===0?this._events=Object.create(null):(delete a[e],a.removeListener&&this.emit("removeListener",e,n.listener||t));else if(typeof n!="function"){for(i=-1,s=n.length-1;s>=0;s--)if(n[s]===t||n[s].listener===t){c=n[s].listener,i=s;break}if(i<0)return this;i===0?n.shift():fyt(n,i),n.length===1&&(a[e]=n[0]),a.removeListener!==void 0&&this.emit("removeListener",e,c||t)}return this};oi.prototype.off=oi.prototype.removeListener;oi.prototype.removeAllListeners=function(e){var t,n,a;if(n=this._events,n===void 0)return this;if(n.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):n[e]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete n[e]),this;if(arguments.length===0){var i=Object.keys(n),s;for(a=0;a=0;a--)this.removeListener(e,t[a]);return this};function Ooe(r,e,t){var n=r._events;if(n===void 0)return[];var a=n[e];return a===void 0?[]:typeof a=="function"?t?[a.listener||a]:[a]:t?myt(a):Boe(a,a.length)}oi.prototype.listeners=function(e){return Ooe(this,e,!0)};oi.prototype.rawListeners=function(e){return Ooe(this,e,!1)};oi.listenerCount=function(r,e){return typeof r.listenerCount=="function"?r.listenerCount(e):Loe.call(r,e)};oi.prototype.listenerCount=Loe;function Loe(r){var e=this._events;if(e!==void 0){var t=e[r];if(typeof t=="function")return 1;if(t!==void 0)return t.length}return 0}oi.prototype.eventNames=function(){return this._eventsCount>0?Mk(this._events):[]};function Boe(r,e){for(var t=new Array(e),n=0;n{x();T();Doe.exports=zm().EventEmitter});var OD=O((Ajr,Foe)=>{"use strict";x();T();Foe.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},t=Symbol("test"),n=Object(t);if(typeof t=="string"||Object.prototype.toString.call(t)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var a=42;e[t]=a;for(t in e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var i=Object.getOwnPropertySymbols(e);if(i.length!==1||i[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var s=Object.getOwnPropertyDescriptor(e,t);if(s.value!==a||s.enumerable!==!0)return!1}return!0}});var B3=O((Pjr,Uoe)=>{"use strict";x();T();var vyt=OD();Uoe.exports=function(){return vyt()&&!!Symbol.toStringTag}});var zoe=O((Ojr,joe)=>{"use strict";x();T();var Woe=typeof Symbol<"u"&&Symbol,byt=OD();joe.exports=function(){return typeof Woe!="function"||typeof Symbol!="function"||typeof Woe("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:byt()}});var Voe=O((qjr,Hoe)=>{"use strict";x();T();var wyt="Function.prototype.bind called on incompatible ",LD=Array.prototype.slice,xyt=Object.prototype.toString,Tyt="[object Function]";Hoe.exports=function(e){var t=this;if(typeof t!="function"||xyt.call(t)!==Tyt)throw new TypeError(wyt+t);for(var n=LD.call(arguments,1),a,i=function(){if(this instanceof a){var f=t.apply(this,n.concat(LD.call(arguments)));return Object(f)===f?f:this}else return t.apply(e,n.concat(LD.call(arguments)))},s=Math.max(0,t.length-n.length),c=[],l=0;l{"use strict";x();T();var _yt=Voe();Goe.exports=Function.prototype.bind||_yt});var Joe=O((zjr,Zoe)=>{"use strict";x();T();var Cyt=Pk();Zoe.exports=Cyt.call(Function.call,Object.prototype.hasOwnProperty)});var D3=O((Gjr,Yoe)=>{"use strict";x();T();var Tn,fb=SyntaxError,Xoe=Function,pb=TypeError,BD=function(r){try{return Xoe('"use strict"; return ('+r+").constructor;")()}catch{}},sg=Object.getOwnPropertyDescriptor;if(sg)try{sg({},"")}catch{sg=null}var qD=function(){throw new pb},Eyt=sg?function(){try{return arguments.callee,qD}catch{try{return sg(arguments,"callee").get}catch{return qD}}}():qD,lb=zoe()(),Hm=Object.getPrototypeOf||function(r){return r.__proto__},db={},kyt=typeof Uint8Array>"u"?Tn:Hm(Uint8Array),hb={"%AggregateError%":typeof AggregateError>"u"?Tn:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?Tn:ArrayBuffer,"%ArrayIteratorPrototype%":lb?Hm([][Symbol.iterator]()):Tn,"%AsyncFromSyncIteratorPrototype%":Tn,"%AsyncFunction%":db,"%AsyncGenerator%":db,"%AsyncGeneratorFunction%":db,"%AsyncIteratorPrototype%":db,"%Atomics%":typeof Atomics>"u"?Tn:Atomics,"%BigInt%":typeof BigInt>"u"?Tn:BigInt,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?Tn:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?Tn:Float32Array,"%Float64Array%":typeof Float64Array>"u"?Tn:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?Tn:FinalizationRegistry,"%Function%":Xoe,"%GeneratorFunction%":db,"%Int8Array%":typeof Int8Array>"u"?Tn:Int8Array,"%Int16Array%":typeof Int16Array>"u"?Tn:Int16Array,"%Int32Array%":typeof Int32Array>"u"?Tn:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":lb?Hm(Hm([][Symbol.iterator]())):Tn,"%JSON%":typeof JSON=="object"?JSON:Tn,"%Map%":typeof Map>"u"?Tn:Map,"%MapIteratorPrototype%":typeof Map>"u"||!lb?Tn:Hm(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?Tn:Promise,"%Proxy%":typeof Proxy>"u"?Tn:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?Tn:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?Tn:Set,"%SetIteratorPrototype%":typeof Set>"u"||!lb?Tn:Hm(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?Tn:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":lb?Hm(""[Symbol.iterator]()):Tn,"%Symbol%":lb?Symbol:Tn,"%SyntaxError%":fb,"%ThrowTypeError%":Eyt,"%TypedArray%":kyt,"%TypeError%":pb,"%Uint8Array%":typeof Uint8Array>"u"?Tn:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?Tn:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?Tn:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?Tn:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?Tn:WeakMap,"%WeakRef%":typeof WeakRef>"u"?Tn:WeakRef,"%WeakSet%":typeof WeakSet>"u"?Tn:WeakSet},Syt=function r(e){var t;if(e==="%AsyncFunction%")t=BD("async function () {}");else if(e==="%GeneratorFunction%")t=BD("function* () {}");else if(e==="%AsyncGeneratorFunction%")t=BD("async function* () {}");else if(e==="%AsyncGenerator%"){var n=r("%AsyncGeneratorFunction%");n&&(t=n.prototype)}else if(e==="%AsyncIteratorPrototype%"){var a=r("%AsyncGenerator%");a&&(t=Hm(a.prototype))}return hb[e]=t,t},Koe={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},q3=Pk(),Rk=Joe(),Ayt=q3.call(Function.call,Array.prototype.concat),Myt=q3.call(Function.apply,Array.prototype.splice),Qoe=q3.call(Function.call,String.prototype.replace),Nk=q3.call(Function.call,String.prototype.slice),Iyt=q3.call(Function.call,RegExp.prototype.exec),Pyt=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Ryt=/\\(\\)?/g,Nyt=function(e){var t=Nk(e,0,1),n=Nk(e,-1);if(t==="%"&&n!=="%")throw new fb("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&t!=="%")throw new fb("invalid intrinsic syntax, expected opening `%`");var a=[];return Qoe(e,Pyt,function(i,s,c,l){a[a.length]=c?Qoe(l,Ryt,"$1"):s||i}),a},Oyt=function(e,t){var n=e,a;if(Rk(Koe,n)&&(a=Koe[n],n="%"+a[0]+"%"),Rk(hb,n)){var i=hb[n];if(i===db&&(i=Syt(n)),typeof i>"u"&&!t)throw new pb("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:a,name:n,value:i}}throw new fb("intrinsic "+e+" does not exist!")};Yoe.exports=function(e,t){if(typeof e!="string"||e.length===0)throw new pb("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof t!="boolean")throw new pb('"allowMissing" argument must be a boolean');if(Iyt(/^%?[^%]*%?$/,e)===null)throw new fb("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=Nyt(e),a=n.length>0?n[0]:"",i=Oyt("%"+a+"%",t),s=i.name,c=i.value,l=!1,d=i.alias;d&&(a=d[0],Myt(n,Ayt([0,1],d)));for(var f=1,w=!0;f=n.length){var L=sg(c,E);w=!!L,w&&"get"in L&&!("originalValue"in L.get)?c=L.get:c=c[E]}else w=Rk(c,E),c=c[E];w&&!l&&(hb[s]=c)}}return c}});var ace=O((Kjr,Ok)=>{"use strict";x();T();var DD=Pk(),mb=D3(),tce=mb("%Function.prototype.apply%"),rce=mb("%Function.prototype.call%"),nce=mb("%Reflect.apply%",!0)||DD.call(rce,tce),$oe=mb("%Object.getOwnPropertyDescriptor%",!0),og=mb("%Object.defineProperty%",!0),Lyt=mb("%Math.max%");if(og)try{og({},"a",{value:1})}catch{og=null}Ok.exports=function(e){var t=nce(DD,rce,arguments);if($oe&&og){var n=$oe(t,"length");n.configurable&&og(t,"length",{value:1+Lyt(0,e.length-(arguments.length-1))})}return t};var ece=function(){return nce(DD,tce,arguments)};og?og(Ok.exports,"apply",{value:ece}):Ok.exports.apply=ece});var F3=O((Yjr,oce)=>{"use strict";x();T();var ice=D3(),sce=ace(),Byt=sce(ice("String.prototype.indexOf"));oce.exports=function(e,t){var n=ice(e,!!t);return typeof n=="function"&&Byt(e,".prototype.")>-1?sce(n):n}});var lce=O((tzr,uce)=>{"use strict";x();T();var qyt=B3()(),Dyt=F3(),FD=Dyt("Object.prototype.toString"),Lk=function(e){return qyt&&e&&typeof e=="object"&&Symbol.toStringTag in e?!1:FD(e)==="[object Arguments]"},cce=function(e){return Lk(e)?!0:e!==null&&typeof e=="object"&&typeof e.length=="number"&&e.length>=0&&FD(e)!=="[object Array]"&&FD(e.callee)==="[object Function]"},Fyt=function(){return Lk(arguments)}();Lk.isLegacyArguments=cce;uce.exports=Fyt?Lk:cce});var hce=O((azr,pce)=>{"use strict";x();T();var Uyt=Object.prototype.toString,Wyt=Function.prototype.toString,jyt=/^\s*(?:function)?\*/,dce=B3()(),UD=Object.getPrototypeOf,zyt=function(){if(!dce)return!1;try{return Function("return function*() {}")()}catch{}},WD;pce.exports=function(e){if(typeof e!="function")return!1;if(jyt.test(Wyt.call(e)))return!0;if(!dce){var t=Uyt.call(e);return t==="[object GeneratorFunction]"}if(!UD)return!1;if(typeof WD>"u"){var n=zyt();WD=n?UD(n):!1}return UD(e)===WD}});var gce=O((ozr,yce)=>{"use strict";x();T();var mce=Function.prototype.toString,yb=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,zD,Bk;if(typeof yb=="function"&&typeof Object.defineProperty=="function")try{zD=Object.defineProperty({},"length",{get:function(){throw Bk}}),Bk={},yb(function(){throw 42},null,zD)}catch(r){r!==Bk&&(yb=null)}else yb=null;var Hyt=/^\s*class\b/,HD=function(e){try{var t=mce.call(e);return Hyt.test(t)}catch{return!1}},jD=function(e){try{return HD(e)?!1:(mce.call(e),!0)}catch{return!1}},qk=Object.prototype.toString,Vyt="[object Object]",Gyt="[object Function]",Zyt="[object GeneratorFunction]",Jyt="[object HTMLAllCollection]",Kyt="[object HTML document.all class]",Qyt="[object HTMLCollection]",Xyt=typeof Symbol=="function"&&!!Symbol.toStringTag,Yyt=!(0 in[,]),VD=function(){return!1};typeof document=="object"&&(fce=document.all,qk.call(fce)===qk.call(document.all)&&(VD=function(e){if((Yyt||!e)&&(typeof e>"u"||typeof e=="object"))try{var t=qk.call(e);return(t===Jyt||t===Kyt||t===Qyt||t===Vyt)&&e("")==null}catch{}return!1}));var fce;yce.exports=yb?function(e){if(VD(e))return!0;if(!e||typeof e!="function"&&typeof e!="object")return!1;try{yb(e,null,zD)}catch(t){if(t!==Bk)return!1}return!HD(e)&&jD(e)}:function(e){if(VD(e))return!0;if(!e||typeof e!="function"&&typeof e!="object")return!1;if(Xyt)return jD(e);if(HD(e))return!1;var t=qk.call(e);return t!==Gyt&&t!==Zyt&&!/^\[object HTML/.test(t)?!1:jD(e)}});var GD=O((lzr,bce)=>{"use strict";x();T();var $yt=gce(),egt=Object.prototype.toString,vce=Object.prototype.hasOwnProperty,tgt=function(e,t,n){for(var a=0,i=e.length;a=3&&(a=n),egt.call(e)==="[object Array]"?tgt(e,t,a):typeof e=="string"?rgt(e,t,a):ngt(e,t,a)};bce.exports=agt});var JD=O((hzr,wce)=>{"use strict";x();T();var ZD=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],igt=typeof globalThis>"u"?I:globalThis;wce.exports=function(){for(var e=[],t=0;t{"use strict";x();T();var sgt=D3(),Dk=sgt("%Object.getOwnPropertyDescriptor%",!0);if(Dk)try{Dk([],"length")}catch{Dk=null}xce.exports=Dk});var YD=O((bzr,kce)=>{"use strict";x();T();var Tce=GD(),ogt=JD(),XD=F3(),cgt=XD("Object.prototype.toString"),_ce=B3()(),Fk=KD(),ugt=typeof globalThis>"u"?I:globalThis,Cce=ogt(),lgt=XD("Array.prototype.indexOf",!0)||function(e,t){for(var n=0;n-1}return Fk?pgt(e):!1}});var Nce=O((Tzr,Rce)=>{"use strict";x();T();var Ace=GD(),hgt=JD(),Mce=F3(),$D=KD(),fgt=Mce("Object.prototype.toString"),Ice=B3()(),Sce=typeof globalThis>"u"?I:globalThis,mgt=hgt(),ygt=Mce("String.prototype.slice"),Pce={},eF=Object.getPrototypeOf;Ice&&$D&&eF&&Ace(mgt,function(r){if(typeof Sce[r]=="function"){var e=new Sce[r];if(Symbol.toStringTag in e){var t=eF(e),n=$D(t,Symbol.toStringTag);if(!n){var a=eF(t);n=$D(a,Symbol.toStringTag)}Pce[r]=n.get}}});var ggt=function(e){var t=!1;return Ace(Pce,function(n,a){if(!t)try{var i=n.call(e);i===a&&(t=i)}catch{}}),t},vgt=YD();Rce.exports=function(e){return vgt(e)?!Ice||!(Symbol.toStringTag in e)?ygt(fgt(e),8,-1):ggt(e):!1}});var Zce=O(cn=>{"use strict";x();T();var bgt=lce(),wgt=hce(),Vd=Nce(),Oce=YD();function gb(r){return r.call.bind(r)}var Lce=typeof BigInt<"u",Bce=typeof Symbol<"u",Pl=gb(Object.prototype.toString),xgt=gb(Number.prototype.valueOf),Tgt=gb(String.prototype.valueOf),_gt=gb(Boolean.prototype.valueOf);Lce&&(qce=gb(BigInt.prototype.valueOf));var qce;Bce&&(Dce=gb(Symbol.prototype.valueOf));var Dce;function W3(r,e){if(typeof r!="object")return!1;try{return e(r),!0}catch{return!1}}cn.isArgumentsObject=bgt;cn.isGeneratorFunction=wgt;cn.isTypedArray=Oce;function Cgt(r){return typeof Promise<"u"&&r instanceof Promise||r!==null&&typeof r=="object"&&typeof r.then=="function"&&typeof r.catch=="function"}cn.isPromise=Cgt;function Egt(r){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(r):Oce(r)||Uce(r)}cn.isArrayBufferView=Egt;function kgt(r){return Vd(r)==="Uint8Array"}cn.isUint8Array=kgt;function Sgt(r){return Vd(r)==="Uint8ClampedArray"}cn.isUint8ClampedArray=Sgt;function Agt(r){return Vd(r)==="Uint16Array"}cn.isUint16Array=Agt;function Mgt(r){return Vd(r)==="Uint32Array"}cn.isUint32Array=Mgt;function Igt(r){return Vd(r)==="Int8Array"}cn.isInt8Array=Igt;function Pgt(r){return Vd(r)==="Int16Array"}cn.isInt16Array=Pgt;function Rgt(r){return Vd(r)==="Int32Array"}cn.isInt32Array=Rgt;function Ngt(r){return Vd(r)==="Float32Array"}cn.isFloat32Array=Ngt;function Ogt(r){return Vd(r)==="Float64Array"}cn.isFloat64Array=Ogt;function Lgt(r){return Vd(r)==="BigInt64Array"}cn.isBigInt64Array=Lgt;function Bgt(r){return Vd(r)==="BigUint64Array"}cn.isBigUint64Array=Bgt;function Uk(r){return Pl(r)==="[object Map]"}Uk.working=typeof Map<"u"&&Uk(new Map);function qgt(r){return typeof Map>"u"?!1:Uk.working?Uk(r):r instanceof Map}cn.isMap=qgt;function Wk(r){return Pl(r)==="[object Set]"}Wk.working=typeof Set<"u"&&Wk(new Set);function Dgt(r){return typeof Set>"u"?!1:Wk.working?Wk(r):r instanceof Set}cn.isSet=Dgt;function jk(r){return Pl(r)==="[object WeakMap]"}jk.working=typeof WeakMap<"u"&&jk(new WeakMap);function Fgt(r){return typeof WeakMap>"u"?!1:jk.working?jk(r):r instanceof WeakMap}cn.isWeakMap=Fgt;function rF(r){return Pl(r)==="[object WeakSet]"}rF.working=typeof WeakSet<"u"&&rF(new WeakSet);function Ugt(r){return rF(r)}cn.isWeakSet=Ugt;function zk(r){return Pl(r)==="[object ArrayBuffer]"}zk.working=typeof ArrayBuffer<"u"&&zk(new ArrayBuffer);function Fce(r){return typeof ArrayBuffer>"u"?!1:zk.working?zk(r):r instanceof ArrayBuffer}cn.isArrayBuffer=Fce;function Hk(r){return Pl(r)==="[object DataView]"}Hk.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&Hk(new DataView(new ArrayBuffer(1),0,1));function Uce(r){return typeof DataView>"u"?!1:Hk.working?Hk(r):r instanceof DataView}cn.isDataView=Uce;var tF=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function U3(r){return Pl(r)==="[object SharedArrayBuffer]"}function Wce(r){return typeof tF>"u"?!1:(typeof U3.working>"u"&&(U3.working=U3(new tF)),U3.working?U3(r):r instanceof tF)}cn.isSharedArrayBuffer=Wce;function Wgt(r){return Pl(r)==="[object AsyncFunction]"}cn.isAsyncFunction=Wgt;function jgt(r){return Pl(r)==="[object Map Iterator]"}cn.isMapIterator=jgt;function zgt(r){return Pl(r)==="[object Set Iterator]"}cn.isSetIterator=zgt;function Hgt(r){return Pl(r)==="[object Generator]"}cn.isGeneratorObject=Hgt;function Vgt(r){return Pl(r)==="[object WebAssembly.Module]"}cn.isWebAssemblyCompiledModule=Vgt;function jce(r){return W3(r,xgt)}cn.isNumberObject=jce;function zce(r){return W3(r,Tgt)}cn.isStringObject=zce;function Hce(r){return W3(r,_gt)}cn.isBooleanObject=Hce;function Vce(r){return Lce&&W3(r,qce)}cn.isBigIntObject=Vce;function Gce(r){return Bce&&W3(r,Dce)}cn.isSymbolObject=Gce;function Ggt(r){return jce(r)||zce(r)||Hce(r)||Vce(r)||Gce(r)}cn.isBoxedPrimitive=Ggt;function Zgt(r){return typeof Uint8Array<"u"&&(Fce(r)||Wce(r))}cn.isAnyArrayBuffer=Zgt;["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(r){Object.defineProperty(cn,r,{enumerable:!1,value:function(){throw new Error(r+" is not supported in userland")}})})});var Kce=O((Azr,Jce)=>{x();T();Jce.exports=function(e){return e&&typeof e=="object"&&typeof e.copy=="function"&&typeof e.fill=="function"&&typeof e.readUInt8=="function"}});var Yk=O(un=>{x();T();var Qce=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),n={},a=0;a=a)return c;switch(c){case"%s":return String(n[t++]);case"%d":return Number(n[t++]);case"%j":try{return JSON.stringify(n[t++])}catch{return"[Circular]"}default:return c}}),s=n[t];t"u")return function(){return un.deprecate(r,e).apply(this,arguments)};var t=!1;function n(){if(!t){if(M.throwDeprecation)throw new Error(e);M.traceDeprecation?console.trace(e):console.error(e),t=!0}return r.apply(this,arguments)}return n};var Vk={},Xce=/^$/;M.env.NODE_DEBUG&&(Gk=M.env.NODE_DEBUG,Gk=Gk.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),Xce=new RegExp("^"+Gk+"$","i"));var Gk;un.debuglog=function(r){if(r=r.toUpperCase(),!Vk[r])if(Xce.test(r)){var e=M.pid;Vk[r]=function(){var t=un.format.apply(un,arguments);console.error("%s %d: %s",r,e,t)}}else Vk[r]=function(){};return Vk[r]};function Vm(r,e){var t={seen:[],stylize:Qgt};return arguments.length>=3&&(t.depth=arguments[2]),arguments.length>=4&&(t.colors=arguments[3]),sF(e)?t.showHidden=e:e&&un._extend(t,e),ug(t.showHidden)&&(t.showHidden=!1),ug(t.depth)&&(t.depth=2),ug(t.colors)&&(t.colors=!1),ug(t.customInspect)&&(t.customInspect=!0),t.colors&&(t.stylize=Kgt),Jk(t,r,t.depth)}un.inspect=Vm;Vm.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]};Vm.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function Kgt(r,e){var t=Vm.styles[e];return t?"\x1B["+Vm.colors[t][0]+"m"+r+"\x1B["+Vm.colors[t][1]+"m":r}function Qgt(r,e){return r}function Xgt(r){var e={};return r.forEach(function(t,n){e[t]=!0}),e}function Jk(r,e,t){if(r.customInspect&&e&&Zk(e.inspect)&&e.inspect!==un.inspect&&!(e.constructor&&e.constructor.prototype===e)){var n=e.inspect(t,r);return Xk(n)||(n=Jk(r,n,t)),n}var a=Ygt(r,e);if(a)return a;var i=Object.keys(e),s=Xgt(i);if(r.showHidden&&(i=Object.getOwnPropertyNames(e)),z3(e)&&(i.indexOf("message")>=0||i.indexOf("description")>=0))return nF(e);if(i.length===0){if(Zk(e)){var c=e.name?": "+e.name:"";return r.stylize("[Function"+c+"]","special")}if(j3(e))return r.stylize(RegExp.prototype.toString.call(e),"regexp");if(Kk(e))return r.stylize(Date.prototype.toString.call(e),"date");if(z3(e))return nF(e)}var l="",d=!1,f=["{","}"];if(Yce(e)&&(d=!0,f=["[","]"]),Zk(e)){var w=e.name?": "+e.name:"";l=" [Function"+w+"]"}if(j3(e)&&(l=" "+RegExp.prototype.toString.call(e)),Kk(e)&&(l=" "+Date.prototype.toUTCString.call(e)),z3(e)&&(l=" "+nF(e)),i.length===0&&(!d||e.length==0))return f[0]+l+f[1];if(t<0)return j3(e)?r.stylize(RegExp.prototype.toString.call(e),"regexp"):r.stylize("[Object]","special");r.seen.push(e);var E;return d?E=$gt(r,e,t,s,i):E=i.map(function(k){return iF(r,e,t,s,k,d)}),r.seen.pop(),evt(E,l,f)}function Ygt(r,e){if(ug(e))return r.stylize("undefined","undefined");if(Xk(e)){var t="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return r.stylize(t,"string")}if($ce(e))return r.stylize(""+e,"number");if(sF(e))return r.stylize(""+e,"boolean");if(Qk(e))return r.stylize("null","null")}function nF(r){return"["+Error.prototype.toString.call(r)+"]"}function $gt(r,e,t,n,a){for(var i=[],s=0,c=e.length;s-1&&(i?c=c.split(` -`).map(function(d){return" "+d}).join(` -`).slice(2):c=` -`+c.split(` -`).map(function(d){return" "+d}).join(` -`))):c=r.stylize("[Circular]","special")),ug(s)){if(i&&a.match(/^\d+$/))return c;s=JSON.stringify(""+a),s.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(s=s.slice(1,-1),s=r.stylize(s,"name")):(s=s.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),s=r.stylize(s,"string"))}return s+": "+c}function evt(r,e,t){var n=0,a=r.reduce(function(i,s){return n++,s.indexOf(` -`)>=0&&n++,i+s.replace(/\u001b\[\d\d?m/g,"").length+1},0);return a>60?t[0]+(e===""?"":e+` - `)+" "+r.join(`, - `)+" "+t[1]:t[0]+e+" "+r.join(", ")+" "+t[1]}un.types=Zce();function Yce(r){return Array.isArray(r)}un.isArray=Yce;function sF(r){return typeof r=="boolean"}un.isBoolean=sF;function Qk(r){return r===null}un.isNull=Qk;function tvt(r){return r==null}un.isNullOrUndefined=tvt;function $ce(r){return typeof r=="number"}un.isNumber=$ce;function Xk(r){return typeof r=="string"}un.isString=Xk;function rvt(r){return typeof r=="symbol"}un.isSymbol=rvt;function ug(r){return r===void 0}un.isUndefined=ug;function j3(r){return vb(r)&&oF(r)==="[object RegExp]"}un.isRegExp=j3;un.types.isRegExp=j3;function vb(r){return typeof r=="object"&&r!==null}un.isObject=vb;function Kk(r){return vb(r)&&oF(r)==="[object Date]"}un.isDate=Kk;un.types.isDate=Kk;function z3(r){return vb(r)&&(oF(r)==="[object Error]"||r instanceof Error)}un.isError=z3;un.types.isNativeError=z3;function Zk(r){return typeof r=="function"}un.isFunction=Zk;function nvt(r){return r===null||typeof r=="boolean"||typeof r=="number"||typeof r=="string"||typeof r=="symbol"||typeof r>"u"}un.isPrimitive=nvt;un.isBuffer=Kce();function oF(r){return Object.prototype.toString.call(r)}function aF(r){return r<10?"0"+r.toString(10):r.toString(10)}var avt=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function ivt(){var r=new Date,e=[aF(r.getHours()),aF(r.getMinutes()),aF(r.getSeconds())].join(":");return[r.getDate(),avt[r.getMonth()],e].join(" ")}un.log=function(){console.log("%s - %s",ivt(),un.format.apply(un,arguments))};un.inherits=jr();un._extend=function(r,e){if(!e||!vb(e))return r;for(var t=Object.keys(e),n=t.length;n--;)r[t[n]]=e[t[n]];return r};function eue(r,e){return Object.prototype.hasOwnProperty.call(r,e)}var cg=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;un.promisify=function(e){if(typeof e!="function")throw new TypeError('The "original" argument must be of type Function');if(cg&&e[cg]){var t=e[cg];if(typeof t!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,cg,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var n,a,i=new Promise(function(l,d){n=l,a=d}),s=[],c=0;c{"use strict";x();T();function tue(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(r,a).enumerable})),t.push.apply(t,n)}return t}function cvt(r){for(var e=1;e0?this.tail.next=n:this.head=n,this.tail=n,++this.length}},{key:"unshift",value:function(t){var n={data:t,next:this.head};this.length===0&&(this.tail=n),this.head=n,++this.length}},{key:"shift",value:function(){if(this.length!==0){var t=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,t}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(t){if(this.length===0)return"";for(var n=this.head,a=""+n.data;n=n.next;)a+=t+n.data;return a}},{key:"concat",value:function(t){if(this.length===0)return $k.alloc(0);for(var n=$k.allocUnsafe(t>>>0),a=this.head,i=0;a;)mvt(a.data,n,i),i+=a.data.length,a=a.next;return n}},{key:"consume",value:function(t,n){var a;return ts.length?s.length:t;if(c===s.length?i+=s:i+=s.slice(0,t),t-=c,t===0){c===s.length?(++a,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=s.slice(c));break}++a}return this.length-=a,i}},{key:"_getBuffer",value:function(t){var n=$k.allocUnsafe(t),a=this.head,i=1;for(a.data.copy(n),t-=a.data.length;a=a.next;){var s=a.data,c=t>s.length?s.length:t;if(s.copy(n,n.length-t,0,c),t-=c,t===0){c===s.length?(++i,a.next?this.head=a.next:this.head=this.tail=null):(this.head=a,a.data=s.slice(c));break}++i}return this.length-=i,n}},{key:fvt,value:function(t,n){return cF(this,cvt({},n,{depth:0,customInspect:!1}))}}]),r}()});var lF=O((qzr,sue)=>{"use strict";x();T();function yvt(r,e){var t=this,n=this._readableState&&this._readableState.destroyed,a=this._writableState&&this._writableState.destroyed;return n||a?(e?e(r):r&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,M.nextTick(uF,this,r)):M.nextTick(uF,this,r)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(r||null,function(i){!e&&i?t._writableState?t._writableState.errorEmitted?M.nextTick(eS,t):(t._writableState.errorEmitted=!0,M.nextTick(iue,t,i)):M.nextTick(iue,t,i):e?(M.nextTick(eS,t),e(i)):M.nextTick(eS,t)}),this)}function iue(r,e){uF(r,e),eS(r)}function eS(r){r._writableState&&!r._writableState.emitClose||r._readableState&&!r._readableState.emitClose||r.emit("close")}function gvt(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function uF(r,e){r.emit("error",e)}function vvt(r,e){var t=r._readableState,n=r._writableState;t&&t.autoDestroy||n&&n.autoDestroy?r.destroy(e):r.emit("error",e)}sue.exports={destroy:yvt,undestroy:gvt,errorOrDestroy:vvt}});var lg=O((Uzr,uue)=>{"use strict";x();T();function bvt(r,e){r.prototype=Object.create(e.prototype),r.prototype.constructor=r,r.__proto__=e}var cue={};function Rl(r,e,t){t||(t=Error);function n(i,s,c){return typeof e=="string"?e:e(i,s,c)}var a=function(i){bvt(s,i);function s(c,l,d){return i.call(this,n(c,l,d))||this}return s}(t);a.prototype.name=t.name,a.prototype.code=r,cue[r]=a}function oue(r,e){if(Array.isArray(r)){var t=r.length;return r=r.map(function(n){return String(n)}),t>2?"one of ".concat(e," ").concat(r.slice(0,t-1).join(", "),", or ")+r[t-1]:t===2?"one of ".concat(e," ").concat(r[0]," or ").concat(r[1]):"of ".concat(e," ").concat(r[0])}else return"of ".concat(e," ").concat(String(r))}function wvt(r,e,t){return r.substr(!t||t<0?0:+t,e.length)===e}function xvt(r,e,t){return(t===void 0||t>r.length)&&(t=r.length),r.substring(t-e.length,t)===e}function Tvt(r,e,t){return typeof t!="number"&&(t=0),t+e.length>r.length?!1:r.indexOf(e,t)!==-1}Rl("ERR_INVALID_OPT_VALUE",function(r,e){return'The value "'+e+'" is invalid for option "'+r+'"'},TypeError);Rl("ERR_INVALID_ARG_TYPE",function(r,e,t){var n;typeof e=="string"&&wvt(e,"not ")?(n="must not be",e=e.replace(/^not /,"")):n="must be";var a;if(xvt(r," argument"))a="The ".concat(r," ").concat(n," ").concat(oue(e,"type"));else{var i=Tvt(r,".")?"property":"argument";a='The "'.concat(r,'" ').concat(i," ").concat(n," ").concat(oue(e,"type"))}return a+=". Received type ".concat(typeof t),a},TypeError);Rl("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");Rl("ERR_METHOD_NOT_IMPLEMENTED",function(r){return"The "+r+" method is not implemented"});Rl("ERR_STREAM_PREMATURE_CLOSE","Premature close");Rl("ERR_STREAM_DESTROYED",function(r){return"Cannot call "+r+" after a stream was destroyed"});Rl("ERR_MULTIPLE_CALLBACK","Callback called multiple times");Rl("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable");Rl("ERR_STREAM_WRITE_AFTER_END","write after end");Rl("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);Rl("ERR_UNKNOWN_ENCODING",function(r){return"Unknown encoding: "+r},TypeError);Rl("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");uue.exports.codes=cue});var dF=O((zzr,lue)=>{"use strict";x();T();var _vt=lg().codes.ERR_INVALID_OPT_VALUE;function Cvt(r,e,t){return r.highWaterMark!=null?r.highWaterMark:e?r[t]:null}function Evt(r,e,t,n){var a=Cvt(e,n,t);if(a!=null){if(!(isFinite(a)&&Math.floor(a)===a)||a<0){var i=n?t:"highWaterMark";throw new _vt(i,a)}return Math.floor(a)}return r.objectMode?16:16*1024}lue.exports={getHighWaterMark:Evt}});var pue=O((Gzr,due)=>{x();T();due.exports=kvt;function kvt(r,e){if(pF("noDeprecation"))return r;var t=!1;function n(){if(!t){if(pF("throwDeprecation"))throw new Error(e);pF("traceDeprecation")?console.trace(e):console.warn(e),t=!0}return r.apply(this,arguments)}return n}function pF(r){try{if(!I.localStorage)return!1}catch{return!1}var e=I.localStorage[r];return e==null?!1:String(e).toLowerCase()==="true"}});var nS=O((Kzr,vue)=>{"use strict";x();T();vue.exports=Ui;function fue(r){var e=this;this.next=null,this.entry=null,this.finish=function(){$vt(e,r)}}var bb;Ui.WritableState=V3;var Svt={deprecate:pue()},mue=ND(),rS=$i().Buffer,Avt=I.Uint8Array||function(){};function Mvt(r){return rS.from(r)}function Ivt(r){return rS.isBuffer(r)||r instanceof Avt}var fF=lF(),Pvt=dF(),Rvt=Pvt.getHighWaterMark,Gm=lg().codes,Nvt=Gm.ERR_INVALID_ARG_TYPE,Ovt=Gm.ERR_METHOD_NOT_IMPLEMENTED,Lvt=Gm.ERR_MULTIPLE_CALLBACK,Bvt=Gm.ERR_STREAM_CANNOT_PIPE,qvt=Gm.ERR_STREAM_DESTROYED,Dvt=Gm.ERR_STREAM_NULL_VALUES,Fvt=Gm.ERR_STREAM_WRITE_AFTER_END,Uvt=Gm.ERR_UNKNOWN_ENCODING,wb=fF.errorOrDestroy;jr()(Ui,mue);function Wvt(){}function V3(r,e,t){bb=bb||Zm(),r=r||{},typeof t!="boolean"&&(t=e instanceof bb),this.objectMode=!!r.objectMode,t&&(this.objectMode=this.objectMode||!!r.writableObjectMode),this.highWaterMark=Rvt(this,r,"writableHighWaterMark",t),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var n=r.decodeStrings===!1;this.decodeStrings=!n,this.defaultEncoding=r.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(a){Jvt(e,a)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=r.emitClose!==!1,this.autoDestroy=!!r.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new fue(this)}V3.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t};(function(){try{Object.defineProperty(V3.prototype,"buffer",{get:Svt.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var tS;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(tS=Function.prototype[Symbol.hasInstance],Object.defineProperty(Ui,Symbol.hasInstance,{value:function(e){return tS.call(this,e)?!0:this!==Ui?!1:e&&e._writableState instanceof V3}})):tS=function(e){return e instanceof this};function Ui(r){bb=bb||Zm();var e=this instanceof bb;if(!e&&!tS.call(Ui,this))return new Ui(r);this._writableState=new V3(r,this,e),this.writable=!0,r&&(typeof r.write=="function"&&(this._write=r.write),typeof r.writev=="function"&&(this._writev=r.writev),typeof r.destroy=="function"&&(this._destroy=r.destroy),typeof r.final=="function"&&(this._final=r.final)),mue.call(this)}Ui.prototype.pipe=function(){wb(this,new Bvt)};function jvt(r,e){var t=new Fvt;wb(r,t),M.nextTick(e,t)}function zvt(r,e,t,n){var a;return t===null?a=new Dvt:typeof t!="string"&&!e.objectMode&&(a=new Nvt("chunk",["string","Buffer"],t)),a?(wb(r,a),M.nextTick(n,a),!1):!0}Ui.prototype.write=function(r,e,t){var n=this._writableState,a=!1,i=!n.objectMode&&Ivt(r);return i&&!rS.isBuffer(r)&&(r=Mvt(r)),typeof e=="function"&&(t=e,e=null),i?e="buffer":e||(e=n.defaultEncoding),typeof t!="function"&&(t=Wvt),n.ending?jvt(this,t):(i||zvt(this,n,r,t))&&(n.pendingcb++,a=Vvt(this,n,i,r,e,t)),a};Ui.prototype.cork=function(){this._writableState.corked++};Ui.prototype.uncork=function(){var r=this._writableState;r.corked&&(r.corked--,!r.writing&&!r.corked&&!r.bufferProcessing&&r.bufferedRequest&&yue(this,r))};Ui.prototype.setDefaultEncoding=function(e){if(typeof e=="string"&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new Uvt(e);return this._writableState.defaultEncoding=e,this};Object.defineProperty(Ui.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function Hvt(r,e,t){return!r.objectMode&&r.decodeStrings!==!1&&typeof e=="string"&&(e=rS.from(e,t)),e}Object.defineProperty(Ui.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function Vvt(r,e,t,n,a,i){if(!t){var s=Hvt(e,n,a);n!==s&&(t=!0,a="buffer",n=s)}var c=e.objectMode?1:n.length;e.length+=c;var l=e.length{"use strict";x();T();var e1t=Object.keys||function(r){var e=[];for(var t in r)e.push(t);return e};wue.exports=eh;var bue=sS(),yF=nS();jr()(eh,bue);for(mF=e1t(yF.prototype),aS=0;aS{"use strict";x();T();var vF=Zr().Buffer,xue=vF.isEncoding||function(r){switch(r=""+r,r&&r.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function n1t(r){if(!r)return"utf8";for(var e;;)switch(r){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return r;default:if(e)return;r=(""+r).toLowerCase(),e=!0}}function a1t(r){var e=n1t(r);if(typeof e!="string"&&(vF.isEncoding===xue||!xue(r)))throw new Error("Unknown encoding: "+r);return e||r}Tue.StringDecoder=G3;function G3(r){this.encoding=a1t(r);var e;switch(this.encoding){case"utf16le":this.text=l1t,this.end=d1t,e=4;break;case"utf8":this.fillLast=o1t,e=4;break;case"base64":this.text=p1t,this.end=h1t,e=3;break;default:this.write=f1t,this.end=m1t;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=vF.allocUnsafe(e)}G3.prototype.write=function(r){if(r.length===0)return"";var e,t;if(this.lastNeed){if(e=this.fillLast(r),e===void 0)return"";t=this.lastNeed,this.lastNeed=0}else t=0;return t>5===6?2:r>>4===14?3:r>>3===30?4:r>>6===2?-1:-2}function i1t(r,e,t){var n=e.length-1;if(n=0?(a>0&&(r.lastNeed=a-1),a):--n=0?(a>0&&(r.lastNeed=a-2),a):--n=0?(a>0&&(a===2?a=0:r.lastNeed=a-3),a):0))}function s1t(r,e,t){if((e[0]&192)!==128)return r.lastNeed=0,"\uFFFD";if(r.lastNeed>1&&e.length>1){if((e[1]&192)!==128)return r.lastNeed=1,"\uFFFD";if(r.lastNeed>2&&e.length>2&&(e[2]&192)!==128)return r.lastNeed=2,"\uFFFD"}}function o1t(r){var e=this.lastTotal-this.lastNeed,t=s1t(this,r,e);if(t!==void 0)return t;if(this.lastNeed<=r.length)return r.copy(this.lastChar,e,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);r.copy(this.lastChar,e,0,r.length),this.lastNeed-=r.length}function c1t(r,e){var t=i1t(this,r,e);if(!this.lastNeed)return r.toString("utf8",e);this.lastTotal=t;var n=r.length-(t-this.lastNeed);return r.copy(this.lastChar,0,n),r.toString("utf8",e,n)}function u1t(r){var e=r&&r.length?this.write(r):"";return this.lastNeed?e+"\uFFFD":e}function l1t(r,e){if((r.length-e)%2===0){var t=r.toString("utf16le",e);if(t){var n=t.charCodeAt(t.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=r[r.length-2],this.lastChar[1]=r[r.length-1],t.slice(0,-1)}return t}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=r[r.length-1],r.toString("utf16le",e,r.length-1)}function d1t(r){var e=r&&r.length?this.write(r):"";if(this.lastNeed){var t=this.lastTotal-this.lastNeed;return e+this.lastChar.toString("utf16le",0,t)}return e}function p1t(r,e){var t=(r.length-e)%3;return t===0?r.toString("base64",e):(this.lastNeed=3-t,this.lastTotal=3,t===1?this.lastChar[0]=r[r.length-1]:(this.lastChar[0]=r[r.length-2],this.lastChar[1]=r[r.length-1]),r.toString("base64",e,r.length-t))}function h1t(r){var e=r&&r.length?this.write(r):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function f1t(r){return r.toString(this.encoding)}function m1t(r){return r&&r.length?this.write(r):""}});var Z3=O((aHr,Eue)=>{"use strict";x();T();var _ue=lg().codes.ERR_STREAM_PREMATURE_CLOSE;function y1t(r){var e=!1;return function(){if(!e){e=!0;for(var t=arguments.length,n=new Array(t),a=0;a{"use strict";x();T();var cS;function Jm(r,e,t){return e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}var b1t=Z3(),Km=Symbol("lastResolve"),dg=Symbol("lastReject"),J3=Symbol("error"),uS=Symbol("ended"),pg=Symbol("lastPromise"),bF=Symbol("handlePromise"),hg=Symbol("stream");function Qm(r,e){return{value:r,done:e}}function w1t(r){var e=r[Km];if(e!==null){var t=r[hg].read();t!==null&&(r[pg]=null,r[Km]=null,r[dg]=null,e(Qm(t,!1)))}}function x1t(r){M.nextTick(w1t,r)}function T1t(r,e){return function(t,n){r.then(function(){if(e[uS]){t(Qm(void 0,!0));return}e[bF](t,n)},n)}}var _1t=Object.getPrototypeOf(function(){}),C1t=Object.setPrototypeOf((cS={get stream(){return this[hg]},next:function(){var e=this,t=this[J3];if(t!==null)return Promise.reject(t);if(this[uS])return Promise.resolve(Qm(void 0,!0));if(this[hg].destroyed)return new Promise(function(s,c){M.nextTick(function(){e[J3]?c(e[J3]):s(Qm(void 0,!0))})});var n=this[pg],a;if(n)a=new Promise(T1t(n,this));else{var i=this[hg].read();if(i!==null)return Promise.resolve(Qm(i,!1));a=new Promise(this[bF])}return this[pg]=a,a}},Jm(cS,Symbol.asyncIterator,function(){return this}),Jm(cS,"return",function(){var e=this;return new Promise(function(t,n){e[hg].destroy(null,function(a){if(a){n(a);return}t(Qm(void 0,!0))})})}),cS),_1t),E1t=function(e){var t,n=Object.create(C1t,(t={},Jm(t,hg,{value:e,writable:!0}),Jm(t,Km,{value:null,writable:!0}),Jm(t,dg,{value:null,writable:!0}),Jm(t,J3,{value:null,writable:!0}),Jm(t,uS,{value:e._readableState.endEmitted,writable:!0}),Jm(t,bF,{value:function(i,s){var c=n[hg].read();c?(n[pg]=null,n[Km]=null,n[dg]=null,i(Qm(c,!1))):(n[Km]=i,n[dg]=s)},writable:!0}),t));return n[pg]=null,b1t(e,function(a){if(a&&a.code!=="ERR_STREAM_PREMATURE_CLOSE"){var i=n[dg];i!==null&&(n[pg]=null,n[Km]=null,n[dg]=null,i(a)),n[J3]=a;return}var s=n[Km];s!==null&&(n[pg]=null,n[Km]=null,n[dg]=null,s(Qm(void 0,!0))),n[uS]=!0}),e.on("readable",x1t.bind(null,n)),n};kue.exports=E1t});var Mue=O((lHr,Aue)=>{x();T();Aue.exports=function(){throw new Error("Readable.from is not available in the browser")}});var sS=O((fHr,Fue)=>{"use strict";x();T();Fue.exports=Mn;var xb;Mn.ReadableState=Nue;var hHr=zm().EventEmitter,Rue=function(e,t){return e.listeners(t).length},Q3=ND(),lS=$i().Buffer,k1t=I.Uint8Array||function(){};function S1t(r){return lS.from(r)}function A1t(r){return lS.isBuffer(r)||r instanceof k1t}var wF=Yk(),rn;wF&&wF.debuglog?rn=wF.debuglog("stream"):rn=function(){};var M1t=aue(),SF=lF(),I1t=dF(),P1t=I1t.getHighWaterMark,dS=lg().codes,R1t=dS.ERR_INVALID_ARG_TYPE,N1t=dS.ERR_STREAM_PUSH_AFTER_EOF,O1t=dS.ERR_METHOD_NOT_IMPLEMENTED,L1t=dS.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,Tb,xF,TF;jr()(Mn,Q3);var K3=SF.errorOrDestroy,_F=["error","close","destroy","pause","resume"];function B1t(r,e,t){if(typeof r.prependListener=="function")return r.prependListener(e,t);!r._events||!r._events[e]?r.on(e,t):Array.isArray(r._events[e])?r._events[e].unshift(t):r._events[e]=[t,r._events[e]]}function Nue(r,e,t){xb=xb||Zm(),r=r||{},typeof t!="boolean"&&(t=e instanceof xb),this.objectMode=!!r.objectMode,t&&(this.objectMode=this.objectMode||!!r.readableObjectMode),this.highWaterMark=P1t(this,r,"readableHighWaterMark",t),this.buffer=new M1t,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=r.emitClose!==!1,this.autoDestroy=!!r.autoDestroy,this.destroyed=!1,this.defaultEncoding=r.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,r.encoding&&(Tb||(Tb=oS().StringDecoder),this.decoder=new Tb(r.encoding),this.encoding=r.encoding)}function Mn(r){if(xb=xb||Zm(),!(this instanceof Mn))return new Mn(r);var e=this instanceof xb;this._readableState=new Nue(r,this,e),this.readable=!0,r&&(typeof r.read=="function"&&(this._read=r.read),typeof r.destroy=="function"&&(this._destroy=r.destroy)),Q3.call(this)}Object.defineProperty(Mn.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(e){!this._readableState||(this._readableState.destroyed=e)}});Mn.prototype.destroy=SF.destroy;Mn.prototype._undestroy=SF.undestroy;Mn.prototype._destroy=function(r,e){e(r)};Mn.prototype.push=function(r,e){var t=this._readableState,n;return t.objectMode?n=!0:typeof r=="string"&&(e=e||t.defaultEncoding,e!==t.encoding&&(r=lS.from(r,e),e=""),n=!0),Oue(this,r,e,!1,n)};Mn.prototype.unshift=function(r){return Oue(this,r,null,!0,!1)};function Oue(r,e,t,n,a){rn("readableAddChunk",e);var i=r._readableState;if(e===null)i.reading=!1,F1t(r,i);else{var s;if(a||(s=q1t(i,e)),s)K3(r,s);else if(i.objectMode||e&&e.length>0)if(typeof e!="string"&&!i.objectMode&&Object.getPrototypeOf(e)!==lS.prototype&&(e=S1t(e)),n)i.endEmitted?K3(r,new L1t):CF(r,i,e,!0);else if(i.ended)K3(r,new N1t);else{if(i.destroyed)return!1;i.reading=!1,i.decoder&&!t?(e=i.decoder.write(e),i.objectMode||e.length!==0?CF(r,i,e,!1):kF(r,i)):CF(r,i,e,!1)}else n||(i.reading=!1,kF(r,i))}return!i.ended&&(i.length=Iue?r=Iue:(r--,r|=r>>>1,r|=r>>>2,r|=r>>>4,r|=r>>>8,r|=r>>>16,r++),r}function Pue(r,e){return r<=0||e.length===0&&e.ended?0:e.objectMode?1:r!==r?e.flowing&&e.length?e.buffer.head.data.length:e.length:(r>e.highWaterMark&&(e.highWaterMark=D1t(r)),r<=e.length?r:e.ended?e.length:(e.needReadable=!0,0))}Mn.prototype.read=function(r){rn("read",r),r=parseInt(r,10);var e=this._readableState,t=r;if(r!==0&&(e.emittedReadable=!1),r===0&&e.needReadable&&((e.highWaterMark!==0?e.length>=e.highWaterMark:e.length>0)||e.ended))return rn("read: emitReadable",e.length,e.ended),e.length===0&&e.ended?EF(this):pS(this),null;if(r=Pue(r,e),r===0&&e.ended)return e.length===0&&EF(this),null;var n=e.needReadable;rn("need readable",n),(e.length===0||e.length-r0?a=que(r,e):a=null,a===null?(e.needReadable=e.length<=e.highWaterMark,r=0):(e.length-=r,e.awaitDrain=0),e.length===0&&(e.ended||(e.needReadable=!0),t!==r&&e.ended&&EF(this)),a!==null&&this.emit("data",a),a};function F1t(r,e){if(rn("onEofChunk"),!e.ended){if(e.decoder){var t=e.decoder.end();t&&t.length&&(e.buffer.push(t),e.length+=e.objectMode?1:t.length)}e.ended=!0,e.sync?pS(r):(e.needReadable=!1,e.emittedReadable||(e.emittedReadable=!0,Lue(r)))}}function pS(r){var e=r._readableState;rn("emitReadable",e.needReadable,e.emittedReadable),e.needReadable=!1,e.emittedReadable||(rn("emitReadable",e.flowing),e.emittedReadable=!0,M.nextTick(Lue,r))}function Lue(r){var e=r._readableState;rn("emitReadable_",e.destroyed,e.length,e.ended),!e.destroyed&&(e.length||e.ended)&&(r.emit("readable"),e.emittedReadable=!1),e.needReadable=!e.flowing&&!e.ended&&e.length<=e.highWaterMark,AF(r)}function kF(r,e){e.readingMore||(e.readingMore=!0,M.nextTick(U1t,r,e))}function U1t(r,e){for(;!e.reading&&!e.ended&&(e.length1&&Due(n.pipes,r)!==-1)&&!d&&(rn("false write response, pause",n.awaitDrain),n.awaitDrain++),t.pause())}function E(q){rn("onerror",q),L(),r.removeListener("error",E),Rue(r,"error")===0&&K3(r,q)}B1t(r,"error",E);function k(){r.removeListener("finish",A),L()}r.once("close",k);function A(){rn("onfinish"),r.removeListener("close",k),L()}r.once("finish",A);function L(){rn("unpipe"),t.unpipe(r)}return r.emit("pipe",t),n.flowing||(rn("pipe resume"),t.resume()),r};function W1t(r){return function(){var t=r._readableState;rn("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,t.awaitDrain===0&&Rue(r,"data")&&(t.flowing=!0,AF(r))}}Mn.prototype.unpipe=function(r){var e=this._readableState,t={hasUnpiped:!1};if(e.pipesCount===0)return this;if(e.pipesCount===1)return r&&r!==e.pipes?this:(r||(r=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,r&&r.emit("unpipe",this,t),this);if(!r){var n=e.pipes,a=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var i=0;i0,n.flowing!==!1&&this.resume()):r==="readable"&&!n.endEmitted&&!n.readableListening&&(n.readableListening=n.needReadable=!0,n.flowing=!1,n.emittedReadable=!1,rn("on readable",n.length,n.reading),n.length?pS(this):n.reading||M.nextTick(j1t,this)),t};Mn.prototype.addListener=Mn.prototype.on;Mn.prototype.removeListener=function(r,e){var t=Q3.prototype.removeListener.call(this,r,e);return r==="readable"&&M.nextTick(Bue,this),t};Mn.prototype.removeAllListeners=function(r){var e=Q3.prototype.removeAllListeners.apply(this,arguments);return(r==="readable"||r===void 0)&&M.nextTick(Bue,this),e};function Bue(r){var e=r._readableState;e.readableListening=r.listenerCount("readable")>0,e.resumeScheduled&&!e.paused?e.flowing=!0:r.listenerCount("data")>0&&r.resume()}function j1t(r){rn("readable nexttick read 0"),r.read(0)}Mn.prototype.resume=function(){var r=this._readableState;return r.flowing||(rn("resume"),r.flowing=!r.readableListening,z1t(this,r)),r.paused=!1,this};function z1t(r,e){e.resumeScheduled||(e.resumeScheduled=!0,M.nextTick(H1t,r,e))}function H1t(r,e){rn("resume",e.reading),e.reading||r.read(0),e.resumeScheduled=!1,r.emit("resume"),AF(r),e.flowing&&!e.reading&&r.read(0)}Mn.prototype.pause=function(){return rn("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(rn("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function AF(r){var e=r._readableState;for(rn("flow",e.flowing);e.flowing&&r.read()!==null;);}Mn.prototype.wrap=function(r){var e=this,t=this._readableState,n=!1;r.on("end",function(){if(rn("wrapped end"),t.decoder&&!t.ended){var s=t.decoder.end();s&&s.length&&e.push(s)}e.push(null)}),r.on("data",function(s){if(rn("wrapped data"),t.decoder&&(s=t.decoder.write(s)),!(t.objectMode&&s==null)&&!(!t.objectMode&&(!s||!s.length))){var c=e.push(s);c||(n=!0,r.pause())}});for(var a in r)this[a]===void 0&&typeof r[a]=="function"&&(this[a]=function(c){return function(){return r[c].apply(r,arguments)}}(a));for(var i=0;i<_F.length;i++)r.on(_F[i],this.emit.bind(this,_F[i]));return this._read=function(s){rn("wrapped _read",s),n&&(n=!1,r.resume())},this};typeof Symbol=="function"&&(Mn.prototype[Symbol.asyncIterator]=function(){return xF===void 0&&(xF=Sue()),xF(this)});Object.defineProperty(Mn.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}});Object.defineProperty(Mn.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}});Object.defineProperty(Mn.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}});Mn._fromList=que;Object.defineProperty(Mn.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function que(r,e){if(e.length===0)return null;var t;return e.objectMode?t=e.buffer.shift():!r||r>=e.length?(e.decoder?t=e.buffer.join(""):e.buffer.length===1?t=e.buffer.first():t=e.buffer.concat(e.length),e.buffer.clear()):t=e.buffer.consume(r,e.decoder),t}function EF(r){var e=r._readableState;rn("endReadable",e.endEmitted),e.endEmitted||(e.ended=!0,M.nextTick(V1t,e,r))}function V1t(r,e){if(rn("endReadableNT",r.endEmitted,r.length),!r.endEmitted&&r.length===0&&(r.endEmitted=!0,e.readable=!1,e.emit("end"),r.autoDestroy)){var t=e._writableState;(!t||t.autoDestroy&&t.finished)&&e.destroy()}}typeof Symbol=="function"&&(Mn.from=function(r,e){return TF===void 0&&(TF=Mue()),TF(Mn,r,e)});function Due(r,e){for(var t=0,n=r.length;t{"use strict";x();T();Wue.exports=gf;var hS=lg().codes,G1t=hS.ERR_METHOD_NOT_IMPLEMENTED,Z1t=hS.ERR_MULTIPLE_CALLBACK,J1t=hS.ERR_TRANSFORM_ALREADY_TRANSFORMING,K1t=hS.ERR_TRANSFORM_WITH_LENGTH_0,fS=Zm();jr()(gf,fS);function Q1t(r,e){var t=this._transformState;t.transforming=!1;var n=t.writecb;if(n===null)return this.emit("error",new Z1t);t.writechunk=null,t.writecb=null,e!=null&&this.push(e),n(r);var a=this._readableState;a.reading=!1,(a.needReadable||a.length{"use strict";x();T();zue.exports=X3;var jue=mS();jr()(X3,jue);function X3(r){if(!(this instanceof X3))return new X3(r);jue.call(this,r)}X3.prototype._transform=function(r,e,t){t(null,r)}});var PF=O((_Hr,Zue)=>{"use strict";x();T();var IF;function Y1t(r){var e=!1;return function(){e||(e=!0,r.apply(void 0,arguments))}}var Gue=lg().codes,$1t=Gue.ERR_MISSING_ARGS,ebt=Gue.ERR_STREAM_DESTROYED;function Hue(r){if(r)throw r}function tbt(r){return r.setHeader&&typeof r.abort=="function"}function rbt(r,e,t,n){n=Y1t(n);var a=!1;r.on("close",function(){a=!0}),IF===void 0&&(IF=Z3()),IF(r,{readable:e,writable:t},function(s){if(s)return n(s);a=!0,n()});var i=!1;return function(s){if(!a&&!i){if(i=!0,tbt(r))return r.abort();if(typeof r.destroy=="function")return r.destroy();n(s||new ebt("pipe"))}}}function Vue(r){r()}function nbt(r,e){return r.pipe(e)}function abt(r){return!r.length||typeof r[r.length-1]!="function"?Hue:r.pop()}function ibt(){for(var r=arguments.length,e=new Array(r),t=0;t0;return rbt(s,l,d,function(f){a||(a=f),f&&i.forEach(Vue),!l&&(i.forEach(Vue),n(a))})});return e.reduce(nbt)}Zue.exports=ibt});var Y3=O((Nl,Jue)=>{x();T();Nl=Jue.exports=sS();Nl.Stream=Nl;Nl.Readable=Nl;Nl.Writable=nS();Nl.Duplex=Zm();Nl.Transform=mS();Nl.PassThrough=MF();Nl.finished=Z3();Nl.pipeline=PF()});var RF=O((AHr,Que)=>{"use strict";x();T();var yS=Zr().Buffer,Kue=Y3().Transform,sbt=jr();function obt(r,e){if(!yS.isBuffer(r)&&typeof r!="string")throw new TypeError(e+" must be a string or a buffer")}function Xm(r){Kue.call(this),this._block=yS.allocUnsafe(r),this._blockSize=r,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}sbt(Xm,Kue);Xm.prototype._transform=function(r,e,t){var n=null;try{this.update(r,e)}catch(a){n=a}t(n)};Xm.prototype._flush=function(r){var e=null;try{this.push(this.digest())}catch(t){e=t}r(e)};Xm.prototype.update=function(r,e){if(obt(r,"Data"),this._finalized)throw new Error("Digest already called");yS.isBuffer(r)||(r=yS.from(r,e));for(var t=this._block,n=0;this._blockOffset+r.length-n>=this._blockSize;){for(var a=this._blockOffset;a0;++i)this._length[i]+=s,s=this._length[i]/4294967296|0,s>0&&(this._length[i]-=4294967296*s);return this};Xm.prototype._update=function(){throw new Error("_update is not implemented")};Xm.prototype.digest=function(r){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var e=this._digest();r!==void 0&&(e=e.toString(r)),this._block.fill(0),this._blockOffset=0;for(var t=0;t<4;++t)this._length[t]=0;return e};Xm.prototype._digest=function(){throw new Error("_digest is not implemented")};Que.exports=Xm});var bS=O((PHr,Yue)=>{"use strict";x();T();var cbt=jr(),Xue=RF(),ubt=Zr().Buffer,lbt=new Array(16);function gS(){Xue.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}cbt(gS,Xue);gS.prototype._update=function(){for(var r=lbt,e=0;e<16;++e)r[e]=this._block.readInt32LE(e*4);var t=this._a,n=this._b,a=this._c,i=this._d;t=ko(t,n,a,i,r[0],3614090360,7),i=ko(i,t,n,a,r[1],3905402710,12),a=ko(a,i,t,n,r[2],606105819,17),n=ko(n,a,i,t,r[3],3250441966,22),t=ko(t,n,a,i,r[4],4118548399,7),i=ko(i,t,n,a,r[5],1200080426,12),a=ko(a,i,t,n,r[6],2821735955,17),n=ko(n,a,i,t,r[7],4249261313,22),t=ko(t,n,a,i,r[8],1770035416,7),i=ko(i,t,n,a,r[9],2336552879,12),a=ko(a,i,t,n,r[10],4294925233,17),n=ko(n,a,i,t,r[11],2304563134,22),t=ko(t,n,a,i,r[12],1804603682,7),i=ko(i,t,n,a,r[13],4254626195,12),a=ko(a,i,t,n,r[14],2792965006,17),n=ko(n,a,i,t,r[15],1236535329,22),t=So(t,n,a,i,r[1],4129170786,5),i=So(i,t,n,a,r[6],3225465664,9),a=So(a,i,t,n,r[11],643717713,14),n=So(n,a,i,t,r[0],3921069994,20),t=So(t,n,a,i,r[5],3593408605,5),i=So(i,t,n,a,r[10],38016083,9),a=So(a,i,t,n,r[15],3634488961,14),n=So(n,a,i,t,r[4],3889429448,20),t=So(t,n,a,i,r[9],568446438,5),i=So(i,t,n,a,r[14],3275163606,9),a=So(a,i,t,n,r[3],4107603335,14),n=So(n,a,i,t,r[8],1163531501,20),t=So(t,n,a,i,r[13],2850285829,5),i=So(i,t,n,a,r[2],4243563512,9),a=So(a,i,t,n,r[7],1735328473,14),n=So(n,a,i,t,r[12],2368359562,20),t=Ao(t,n,a,i,r[5],4294588738,4),i=Ao(i,t,n,a,r[8],2272392833,11),a=Ao(a,i,t,n,r[11],1839030562,16),n=Ao(n,a,i,t,r[14],4259657740,23),t=Ao(t,n,a,i,r[1],2763975236,4),i=Ao(i,t,n,a,r[4],1272893353,11),a=Ao(a,i,t,n,r[7],4139469664,16),n=Ao(n,a,i,t,r[10],3200236656,23),t=Ao(t,n,a,i,r[13],681279174,4),i=Ao(i,t,n,a,r[0],3936430074,11),a=Ao(a,i,t,n,r[3],3572445317,16),n=Ao(n,a,i,t,r[6],76029189,23),t=Ao(t,n,a,i,r[9],3654602809,4),i=Ao(i,t,n,a,r[12],3873151461,11),a=Ao(a,i,t,n,r[15],530742520,16),n=Ao(n,a,i,t,r[2],3299628645,23),t=Mo(t,n,a,i,r[0],4096336452,6),i=Mo(i,t,n,a,r[7],1126891415,10),a=Mo(a,i,t,n,r[14],2878612391,15),n=Mo(n,a,i,t,r[5],4237533241,21),t=Mo(t,n,a,i,r[12],1700485571,6),i=Mo(i,t,n,a,r[3],2399980690,10),a=Mo(a,i,t,n,r[10],4293915773,15),n=Mo(n,a,i,t,r[1],2240044497,21),t=Mo(t,n,a,i,r[8],1873313359,6),i=Mo(i,t,n,a,r[15],4264355552,10),a=Mo(a,i,t,n,r[6],2734768916,15),n=Mo(n,a,i,t,r[13],1309151649,21),t=Mo(t,n,a,i,r[4],4149444226,6),i=Mo(i,t,n,a,r[11],3174756917,10),a=Mo(a,i,t,n,r[2],718787259,15),n=Mo(n,a,i,t,r[9],3951481745,21),this._a=this._a+t|0,this._b=this._b+n|0,this._c=this._c+a|0,this._d=this._d+i|0};gS.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var r=ubt.allocUnsafe(16);return r.writeInt32LE(this._a,0),r.writeInt32LE(this._b,4),r.writeInt32LE(this._c,8),r.writeInt32LE(this._d,12),r};function vS(r,e){return r<>>32-e}function ko(r,e,t,n,a,i,s){return vS(r+(e&t|~e&n)+a+i|0,s)+e|0}function So(r,e,t,n,a,i,s){return vS(r+(e&n|t&~n)+a+i|0,s)+e|0}function Ao(r,e,t,n,a,i,s){return vS(r+(e^t^n)+a+i|0,s)+e|0}function Mo(r,e,t,n,a,i,s){return vS(r+(t^(e|~n))+a+i|0,s)+e|0}Yue.exports=gS});var xS=O((OHr,ile)=>{"use strict";x();T();var NF=$i().Buffer,dbt=jr(),ale=RF(),pbt=new Array(16),$3=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],e6=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],t6=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],r6=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11],n6=[0,1518500249,1859775393,2400959708,2840853838],a6=[1352829926,1548603684,1836072691,2053994217,0];function wS(){ale.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}dbt(wS,ale);wS.prototype._update=function(){for(var r=pbt,e=0;e<16;++e)r[e]=this._block.readInt32LE(e*4);for(var t=this._a|0,n=this._b|0,a=this._c|0,i=this._d|0,s=this._e|0,c=this._a|0,l=this._b|0,d=this._c|0,f=this._d|0,w=this._e|0,E=0;E<80;E+=1){var k,A;E<16?(k=$ue(t,n,a,i,s,r[$3[E]],n6[0],t6[E]),A=nle(c,l,d,f,w,r[e6[E]],a6[0],r6[E])):E<32?(k=ele(t,n,a,i,s,r[$3[E]],n6[1],t6[E]),A=rle(c,l,d,f,w,r[e6[E]],a6[1],r6[E])):E<48?(k=tle(t,n,a,i,s,r[$3[E]],n6[2],t6[E]),A=tle(c,l,d,f,w,r[e6[E]],a6[2],r6[E])):E<64?(k=rle(t,n,a,i,s,r[$3[E]],n6[3],t6[E]),A=ele(c,l,d,f,w,r[e6[E]],a6[3],r6[E])):(k=nle(t,n,a,i,s,r[$3[E]],n6[4],t6[E]),A=$ue(c,l,d,f,w,r[e6[E]],a6[4],r6[E])),t=s,s=i,i=fg(a,10),a=n,n=k,c=w,w=f,f=fg(d,10),d=l,l=A}var L=this._b+a+f|0;this._b=this._c+i+w|0,this._c=this._d+s+c|0,this._d=this._e+t+l|0,this._e=this._a+n+d|0,this._a=L};wS.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var r=NF.alloc?NF.alloc(20):new NF(20);return r.writeInt32LE(this._a,0),r.writeInt32LE(this._b,4),r.writeInt32LE(this._c,8),r.writeInt32LE(this._d,12),r.writeInt32LE(this._e,16),r};function fg(r,e){return r<>>32-e}function $ue(r,e,t,n,a,i,s,c){return fg(r+(e^t^n)+i+s|0,c)+a|0}function ele(r,e,t,n,a,i,s,c){return fg(r+(e&t|~e&n)+i+s|0,c)+a|0}function tle(r,e,t,n,a,i,s,c){return fg(r+((e|~t)^n)+i+s|0,c)+a|0}function rle(r,e,t,n,a,i,s,c){return fg(r+(e&n|t&~n)+i+s|0,c)+a|0}function nle(r,e,t,n,a,i,s,c){return fg(r+(e^(t|~n))+i+s|0,c)+a|0}ile.exports=wS});var mg=O((qHr,ole)=>{x();T();var sle=Zr().Buffer;function TS(r,e){this._block=sle.alloc(r),this._finalSize=e,this._blockSize=r,this._len=0}TS.prototype.update=function(r,e){typeof r=="string"&&(e=e||"utf8",r=sle.from(r,e));for(var t=this._block,n=this._blockSize,a=r.length,i=this._len,s=0;s=this._finalSize&&(this._update(this._block),this._block.fill(0));var t=this._len*8;if(t<=4294967295)this._block.writeUInt32BE(t,this._blockSize-4);else{var n=(t&4294967295)>>>0,a=(t-n)/4294967296;this._block.writeUInt32BE(a,this._blockSize-8),this._block.writeUInt32BE(n,this._blockSize-4)}this._update(this._block);var i=this._hash();return r?i.toString(r):i};TS.prototype._update=function(){throw new Error("_update must be implemented by subclass")};ole.exports=TS});var lle=O((UHr,ule)=>{x();T();var hbt=jr(),cle=mg(),fbt=Zr().Buffer,mbt=[1518500249,1859775393,-1894007588,-899497514],ybt=new Array(80);function i6(){this.init(),this._w=ybt,cle.call(this,64,56)}hbt(i6,cle);i6.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function gbt(r){return r<<5|r>>>27}function vbt(r){return r<<30|r>>>2}function bbt(r,e,t,n){return r===0?e&t|~e&n:r===2?e&t|e&n|t&n:e^t^n}i6.prototype._update=function(r){for(var e=this._w,t=this._a|0,n=this._b|0,a=this._c|0,i=this._d|0,s=this._e|0,c=0;c<16;++c)e[c]=r.readInt32BE(c*4);for(;c<80;++c)e[c]=e[c-3]^e[c-8]^e[c-14]^e[c-16];for(var l=0;l<80;++l){var d=~~(l/20),f=gbt(t)+bbt(d,n,a,i)+s+e[l]+mbt[d]|0;s=i,i=a,a=vbt(n),n=t,t=f}this._a=t+this._a|0,this._b=n+this._b|0,this._c=a+this._c|0,this._d=i+this._d|0,this._e=s+this._e|0};i6.prototype._hash=function(){var r=fbt.allocUnsafe(20);return r.writeInt32BE(this._a|0,0),r.writeInt32BE(this._b|0,4),r.writeInt32BE(this._c|0,8),r.writeInt32BE(this._d|0,12),r.writeInt32BE(this._e|0,16),r};ule.exports=i6});var hle=O((zHr,ple)=>{x();T();var wbt=jr(),dle=mg(),xbt=Zr().Buffer,Tbt=[1518500249,1859775393,-1894007588,-899497514],_bt=new Array(80);function s6(){this.init(),this._w=_bt,dle.call(this,64,56)}wbt(s6,dle);s6.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function Cbt(r){return r<<1|r>>>31}function Ebt(r){return r<<5|r>>>27}function kbt(r){return r<<30|r>>>2}function Sbt(r,e,t,n){return r===0?e&t|~e&n:r===2?e&t|e&n|t&n:e^t^n}s6.prototype._update=function(r){for(var e=this._w,t=this._a|0,n=this._b|0,a=this._c|0,i=this._d|0,s=this._e|0,c=0;c<16;++c)e[c]=r.readInt32BE(c*4);for(;c<80;++c)e[c]=Cbt(e[c-3]^e[c-8]^e[c-14]^e[c-16]);for(var l=0;l<80;++l){var d=~~(l/20),f=Ebt(t)+Sbt(d,n,a,i)+s+e[l]+Tbt[d]|0;s=i,i=a,a=kbt(n),n=t,t=f}this._a=t+this._a|0,this._b=n+this._b|0,this._c=a+this._c|0,this._d=i+this._d|0,this._e=s+this._e|0};s6.prototype._hash=function(){var r=xbt.allocUnsafe(20);return r.writeInt32BE(this._a|0,0),r.writeInt32BE(this._b|0,4),r.writeInt32BE(this._c|0,8),r.writeInt32BE(this._d|0,12),r.writeInt32BE(this._e|0,16),r};ple.exports=s6});var OF=O((GHr,mle)=>{x();T();var Abt=jr(),fle=mg(),Mbt=Zr().Buffer,Ibt=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],Pbt=new Array(64);function o6(){this.init(),this._w=Pbt,fle.call(this,64,56)}Abt(o6,fle);o6.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this};function Rbt(r,e,t){return t^r&(e^t)}function Nbt(r,e,t){return r&e|t&(r|e)}function Obt(r){return(r>>>2|r<<30)^(r>>>13|r<<19)^(r>>>22|r<<10)}function Lbt(r){return(r>>>6|r<<26)^(r>>>11|r<<21)^(r>>>25|r<<7)}function Bbt(r){return(r>>>7|r<<25)^(r>>>18|r<<14)^r>>>3}function qbt(r){return(r>>>17|r<<15)^(r>>>19|r<<13)^r>>>10}o6.prototype._update=function(r){for(var e=this._w,t=this._a|0,n=this._b|0,a=this._c|0,i=this._d|0,s=this._e|0,c=this._f|0,l=this._g|0,d=this._h|0,f=0;f<16;++f)e[f]=r.readInt32BE(f*4);for(;f<64;++f)e[f]=qbt(e[f-2])+e[f-7]+Bbt(e[f-15])+e[f-16]|0;for(var w=0;w<64;++w){var E=d+Lbt(s)+Rbt(s,c,l)+Ibt[w]+e[w]|0,k=Obt(t)+Nbt(t,n,a)|0;d=l,l=c,c=s,s=i+E|0,i=a,a=n,n=t,t=E+k|0}this._a=t+this._a|0,this._b=n+this._b|0,this._c=a+this._c|0,this._d=i+this._d|0,this._e=s+this._e|0,this._f=c+this._f|0,this._g=l+this._g|0,this._h=d+this._h|0};o6.prototype._hash=function(){var r=Mbt.allocUnsafe(32);return r.writeInt32BE(this._a,0),r.writeInt32BE(this._b,4),r.writeInt32BE(this._c,8),r.writeInt32BE(this._d,12),r.writeInt32BE(this._e,16),r.writeInt32BE(this._f,20),r.writeInt32BE(this._g,24),r.writeInt32BE(this._h,28),r};mle.exports=o6});var gle=O((KHr,yle)=>{x();T();var Dbt=jr(),Fbt=OF(),Ubt=mg(),Wbt=Zr().Buffer,jbt=new Array(64);function _S(){this.init(),this._w=jbt,Ubt.call(this,64,56)}Dbt(_S,Fbt);_S.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this};_S.prototype._hash=function(){var r=Wbt.allocUnsafe(28);return r.writeInt32BE(this._a,0),r.writeInt32BE(this._b,4),r.writeInt32BE(this._c,8),r.writeInt32BE(this._d,12),r.writeInt32BE(this._e,16),r.writeInt32BE(this._f,20),r.writeInt32BE(this._g,24),r};yle.exports=_S});var LF=O((YHr,Cle)=>{x();T();var zbt=jr(),_le=mg(),Hbt=Zr().Buffer,vle=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],Vbt=new Array(160);function c6(){this.init(),this._w=Vbt,_le.call(this,128,112)}zbt(c6,_le);c6.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this};function ble(r,e,t){return t^r&(e^t)}function wle(r,e,t){return r&e|t&(r|e)}function xle(r,e){return(r>>>28|e<<4)^(e>>>2|r<<30)^(e>>>7|r<<25)}function Tle(r,e){return(r>>>14|e<<18)^(r>>>18|e<<14)^(e>>>9|r<<23)}function Gbt(r,e){return(r>>>1|e<<31)^(r>>>8|e<<24)^r>>>7}function Zbt(r,e){return(r>>>1|e<<31)^(r>>>8|e<<24)^(r>>>7|e<<25)}function Jbt(r,e){return(r>>>19|e<<13)^(e>>>29|r<<3)^r>>>6}function Kbt(r,e){return(r>>>19|e<<13)^(e>>>29|r<<3)^(r>>>6|e<<26)}function Fs(r,e){return r>>>0>>0?1:0}c6.prototype._update=function(r){for(var e=this._w,t=this._ah|0,n=this._bh|0,a=this._ch|0,i=this._dh|0,s=this._eh|0,c=this._fh|0,l=this._gh|0,d=this._hh|0,f=this._al|0,w=this._bl|0,E=this._cl|0,k=this._dl|0,A=this._el|0,L=this._fl|0,q=this._gl|0,U=this._hl|0,j=0;j<32;j+=2)e[j]=r.readInt32BE(j*4),e[j+1]=r.readInt32BE(j*4+4);for(;j<160;j+=2){var H=e[j-30],G=e[j-15*2+1],te=Gbt(H,G),K=Zbt(G,H);H=e[j-2*2],G=e[j-2*2+1];var ae=Jbt(H,G),J=Kbt(G,H),V=e[j-7*2],g=e[j-7*2+1],o=e[j-16*2],p=e[j-16*2+1],y=K+g|0,h=te+V+Fs(y,K)|0;y=y+J|0,h=h+ae+Fs(y,J)|0,y=y+p|0,h=h+o+Fs(y,p)|0,e[j]=h,e[j+1]=y}for(var v=0;v<160;v+=2){h=e[v],y=e[v+1];var _=wle(t,n,a),C=wle(f,w,E),m=xle(t,f),u=xle(f,t),b=Tle(s,A),R=Tle(A,s),S=vle[v],B=vle[v+1],Z=ble(s,c,l),W=ble(A,L,q),X=U+R|0,de=d+b+Fs(X,U)|0;X=X+W|0,de=de+Z+Fs(X,W)|0,X=X+B|0,de=de+S+Fs(X,B)|0,X=X+y|0,de=de+h+Fs(X,y)|0;var ne=u+C|0,pe=m+_+Fs(ne,u)|0;d=l,U=q,l=c,q=L,c=s,L=A,A=k+X|0,s=i+de+Fs(A,k)|0,i=a,k=E,a=n,E=w,n=t,w=f,f=X+ne|0,t=de+pe+Fs(f,X)|0}this._al=this._al+f|0,this._bl=this._bl+w|0,this._cl=this._cl+E|0,this._dl=this._dl+k|0,this._el=this._el+A|0,this._fl=this._fl+L|0,this._gl=this._gl+q|0,this._hl=this._hl+U|0,this._ah=this._ah+t+Fs(this._al,f)|0,this._bh=this._bh+n+Fs(this._bl,w)|0,this._ch=this._ch+a+Fs(this._cl,E)|0,this._dh=this._dh+i+Fs(this._dl,k)|0,this._eh=this._eh+s+Fs(this._el,A)|0,this._fh=this._fh+c+Fs(this._fl,L)|0,this._gh=this._gh+l+Fs(this._gl,q)|0,this._hh=this._hh+d+Fs(this._hl,U)|0};c6.prototype._hash=function(){var r=Hbt.allocUnsafe(64);function e(t,n,a){r.writeInt32BE(t,a),r.writeInt32BE(n,a+4)}return e(this._ah,this._al,0),e(this._bh,this._bl,8),e(this._ch,this._cl,16),e(this._dh,this._dl,24),e(this._eh,this._el,32),e(this._fh,this._fl,40),e(this._gh,this._gl,48),e(this._hh,this._hl,56),r};Cle.exports=c6});var kle=O((tVr,Ele)=>{x();T();var Qbt=jr(),Xbt=LF(),Ybt=mg(),$bt=Zr().Buffer,e2t=new Array(160);function CS(){this.init(),this._w=e2t,Ybt.call(this,128,112)}Qbt(CS,Xbt);CS.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this};CS.prototype._hash=function(){var r=$bt.allocUnsafe(48);function e(t,n,a){r.writeInt32BE(t,a),r.writeInt32BE(n,a+4)}return e(this._ah,this._al,0),e(this._bh,this._bl,8),e(this._ch,this._cl,16),e(this._dh,this._dl,24),e(this._eh,this._el,32),e(this._fh,this._fl,40),r};Ele.exports=CS});var u6=O((vf,Sle)=>{x();T();var vf=Sle.exports=function(e){e=e.toLowerCase();var t=vf[e];if(!t)throw new Error(e+" is not supported (we accept pull requests)");return new t};vf.sha=lle();vf.sha1=hle();vf.sha224=gle();vf.sha256=OF();vf.sha384=kle();vf.sha512=LF()});var Mle=O((sVr,Ale)=>{x();T();Ale.exports=Ol;var BF=zm().EventEmitter,t2t=jr();t2t(Ol,BF);Ol.Readable=sS();Ol.Writable=nS();Ol.Duplex=Zm();Ol.Transform=mS();Ol.PassThrough=MF();Ol.finished=Z3();Ol.pipeline=PF();Ol.Stream=Ol;function Ol(){BF.call(this)}Ol.prototype.pipe=function(r,e){var t=this;function n(f){r.writable&&r.write(f)===!1&&t.pause&&t.pause()}t.on("data",n);function a(){t.readable&&t.resume&&t.resume()}r.on("drain",a),!r._isStdio&&(!e||e.end!==!1)&&(t.on("end",s),t.on("close",c));var i=!1;function s(){i||(i=!0,r.end())}function c(){i||(i=!0,typeof r.destroy=="function"&&r.destroy())}function l(f){if(d(),BF.listenerCount(this,"error")===0)throw f}t.on("error",l),r.on("error",l);function d(){t.removeListener("data",n),r.removeListener("drain",a),t.removeListener("end",s),t.removeListener("close",c),t.removeListener("error",l),r.removeListener("error",l),t.removeListener("end",d),t.removeListener("close",d),r.removeListener("close",d)}return t.on("end",d),t.on("close",d),r.on("close",d),r.emit("pipe",t),r}});var bf=O((uVr,Rle)=>{x();T();var Ile=Zr().Buffer,Ple=Mle().Transform,r2t=oS().StringDecoder,n2t=jr();function Gd(r){Ple.call(this),this.hashMode=typeof r=="string",this.hashMode?this[r]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}n2t(Gd,Ple);Gd.prototype.update=function(r,e,t){typeof r=="string"&&(r=Ile.from(r,e));var n=this._update(r);return this.hashMode?this:(t&&(n=this._toString(n,t)),n)};Gd.prototype.setAutoPadding=function(){};Gd.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")};Gd.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")};Gd.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")};Gd.prototype._transform=function(r,e,t){var n;try{this.hashMode?this._update(r):this.push(this._update(r))}catch(a){n=a}finally{t(n)}};Gd.prototype._flush=function(r){var e;try{this.push(this.__final())}catch(t){e=t}r(e)};Gd.prototype._finalOrDigest=function(r){var e=this.__final()||Ile.alloc(0);return r&&(e=this._toString(e,r,!0)),e};Gd.prototype._toString=function(r,e,t){if(this._decoder||(this._decoder=new r2t(e),this._encoding=e),this._encoding!==e)throw new Error("can't switch encodings");var n=this._decoder.write(r);return t&&(n+=this._decoder.end()),n};Rle.exports=Gd});var _b=O((pVr,Ole)=>{"use strict";x();T();var a2t=jr(),i2t=bS(),s2t=xS(),o2t=u6(),Nle=bf();function ES(r){Nle.call(this,"digest"),this._hash=r}a2t(ES,Nle);ES.prototype._update=function(r){this._hash.update(r)};ES.prototype._final=function(){return this._hash.digest()};Ole.exports=function(e){return e=e.toLowerCase(),e==="md5"?new i2t:e==="rmd160"||e==="ripemd160"?new s2t:new ES(o2t(e))}});var qle=O((mVr,Ble)=>{"use strict";x();T();var c2t=jr(),yg=Zr().Buffer,Lle=bf(),u2t=yg.alloc(128),Cb=64;function kS(r,e){Lle.call(this,"digest"),typeof e=="string"&&(e=yg.from(e)),this._alg=r,this._key=e,e.length>Cb?e=r(e):e.length{x();T();var l2t=bS();Dle.exports=function(r){return new l2t().update(r).digest()}});var UF=O((xVr,Ule)=>{"use strict";x();T();var d2t=jr(),p2t=qle(),Fle=bf(),l6=Zr().Buffer,h2t=qF(),DF=xS(),FF=u6(),f2t=l6.alloc(128);function d6(r,e){Fle.call(this,"digest"),typeof e=="string"&&(e=l6.from(e));var t=r==="sha512"||r==="sha384"?128:64;if(this._alg=r,this._key=e,e.length>t){var n=r==="rmd160"?new DF:FF(r);e=n.update(e).digest()}else e.length{m2t.exports={sha224WithRSAEncryption:{sign:"rsa",hash:"sha224",id:"302d300d06096086480165030402040500041c"},"RSA-SHA224":{sign:"ecdsa/rsa",hash:"sha224",id:"302d300d06096086480165030402040500041c"},sha256WithRSAEncryption:{sign:"rsa",hash:"sha256",id:"3031300d060960864801650304020105000420"},"RSA-SHA256":{sign:"ecdsa/rsa",hash:"sha256",id:"3031300d060960864801650304020105000420"},sha384WithRSAEncryption:{sign:"rsa",hash:"sha384",id:"3041300d060960864801650304020205000430"},"RSA-SHA384":{sign:"ecdsa/rsa",hash:"sha384",id:"3041300d060960864801650304020205000430"},sha512WithRSAEncryption:{sign:"rsa",hash:"sha512",id:"3051300d060960864801650304020305000440"},"RSA-SHA512":{sign:"ecdsa/rsa",hash:"sha512",id:"3051300d060960864801650304020305000440"},"RSA-SHA1":{sign:"rsa",hash:"sha1",id:"3021300906052b0e03021a05000414"},"ecdsa-with-SHA1":{sign:"ecdsa",hash:"sha1",id:""},sha256:{sign:"ecdsa",hash:"sha256",id:""},sha224:{sign:"ecdsa",hash:"sha224",id:""},sha384:{sign:"ecdsa",hash:"sha384",id:""},sha512:{sign:"ecdsa",hash:"sha512",id:""},"DSA-SHA":{sign:"dsa",hash:"sha1",id:""},"DSA-SHA1":{sign:"dsa",hash:"sha1",id:""},DSA:{sign:"dsa",hash:"sha1",id:""},"DSA-WITH-SHA224":{sign:"dsa",hash:"sha224",id:""},"DSA-SHA224":{sign:"dsa",hash:"sha224",id:""},"DSA-WITH-SHA256":{sign:"dsa",hash:"sha256",id:""},"DSA-SHA256":{sign:"dsa",hash:"sha256",id:""},"DSA-WITH-SHA384":{sign:"dsa",hash:"sha384",id:""},"DSA-SHA384":{sign:"dsa",hash:"sha384",id:""},"DSA-WITH-SHA512":{sign:"dsa",hash:"sha512",id:""},"DSA-SHA512":{sign:"dsa",hash:"sha512",id:""},"DSA-RIPEMD160":{sign:"dsa",hash:"rmd160",id:""},ripemd160WithRSA:{sign:"rsa",hash:"rmd160",id:"3021300906052b2403020105000414"},"RSA-RIPEMD160":{sign:"rsa",hash:"rmd160",id:"3021300906052b2403020105000414"},md5WithRSAEncryption:{sign:"rsa",hash:"md5",id:"3020300c06082a864886f70d020505000410"},"RSA-MD5":{sign:"rsa",hash:"md5",id:"3020300c06082a864886f70d020505000410"}}});var jle=O((EVr,Wle)=>{x();T();Wle.exports=WF()});var jF=O((AVr,zle)=>{x();T();var y2t=Math.pow(2,30)-1;zle.exports=function(r,e){if(typeof r!="number")throw new TypeError("Iterations not a number");if(r<0)throw new TypeError("Bad iterations");if(typeof e!="number")throw new TypeError("Key length not a number");if(e<0||e>y2t||e!==e)throw new TypeError("Bad key length")}});var zF=O((PVr,Vle)=>{x();T();var SS;I.process&&I.process.browser?SS="utf-8":I.process&&I.process.version?(Hle=parseInt(M.version.split(".")[0].slice(1),10),SS=Hle>=6?"utf-8":"binary"):SS="utf-8";var Hle;Vle.exports=SS});var VF=O((OVr,Gle)=>{x();T();var HF=Zr().Buffer;Gle.exports=function(r,e,t){if(HF.isBuffer(r))return r;if(typeof r=="string")return HF.from(r,e);if(ArrayBuffer.isView(r))return HF.from(r.buffer);throw new TypeError(t+" must be a string, a Buffer, a typed array or a DataView")}});var GF=O((qVr,Qle)=>{x();T();var g2t=qF(),v2t=xS(),b2t=u6(),gg=Zr().Buffer,w2t=jF(),Zle=zF(),Jle=VF(),x2t=gg.alloc(128),AS={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function Kle(r,e,t){var n=T2t(r),a=r==="sha512"||r==="sha384"?128:64;e.length>a?e=n(e):e.length{x();T();var ede=Zr().Buffer,C2t=jF(),Xle=zF(),Yle=GF(),$le=VF(),MS,p6=I.crypto&&I.crypto.subtle,E2t={sha:"SHA-1","sha-1":"SHA-1",sha1:"SHA-1",sha256:"SHA-256","sha-256":"SHA-256",sha384:"SHA-384","sha-384":"SHA-384","sha-512":"SHA-512",sha512:"SHA-512"},ZF=[];function k2t(r){if(I.process&&!I.process.browser||!p6||!p6.importKey||!p6.deriveBits)return Promise.resolve(!1);if(ZF[r]!==void 0)return ZF[r];MS=MS||ede.alloc(8);var e=tde(MS,MS,10,128,r).then(function(){return!0}).catch(function(){return!1});return ZF[r]=e,e}var vg;function JF(){return vg||(I.process&&I.process.nextTick?vg=I.process.nextTick:I.queueMicrotask?vg=I.queueMicrotask:I.setImmediate?vg=I.setImmediate:vg=I.setTimeout,vg)}function tde(r,e,t,n,a){return p6.importKey("raw",r,{name:"PBKDF2"},!1,["deriveBits"]).then(function(i){return p6.deriveBits({name:"PBKDF2",salt:e,iterations:t,hash:{name:a}},i,n<<3)}).then(function(i){return ede.from(i)})}function S2t(r,e){r.then(function(t){JF()(function(){e(null,t)})},function(t){JF()(function(){e(t)})})}rde.exports=function(r,e,t,n,a,i){typeof a=="function"&&(i=a,a=void 0),a=a||"sha1";var s=E2t[a.toLowerCase()];if(!s||typeof I.Promise!="function"){JF()(function(){var c;try{c=Yle(r,e,t,n,a)}catch(l){return i(l)}i(null,c)});return}if(C2t(t,n),r=$le(r,Xle,"Password"),e=$le(e,Xle,"Salt"),typeof i!="function")throw new Error("No callback provided to pbkdf2");S2t(k2t(s).then(function(c){return c?tde(r,e,t,n,s):Yle(r,e,t,n,a)}),i)}});var QF=O(KF=>{x();T();KF.pbkdf2=nde();KF.pbkdf2Sync=GF()});var XF=O(Ll=>{"use strict";x();T();Ll.readUInt32BE=function(e,t){var n=e[0+t]<<24|e[1+t]<<16|e[2+t]<<8|e[3+t];return n>>>0};Ll.writeUInt32BE=function(e,t,n){e[0+n]=t>>>24,e[1+n]=t>>>16&255,e[2+n]=t>>>8&255,e[3+n]=t&255};Ll.ip=function(e,t,n,a){for(var i=0,s=0,c=6;c>=0;c-=2){for(var l=0;l<=24;l+=8)i<<=1,i|=t>>>l+c&1;for(var l=0;l<=24;l+=8)i<<=1,i|=e>>>l+c&1}for(var c=6;c>=0;c-=2){for(var l=1;l<=25;l+=8)s<<=1,s|=t>>>l+c&1;for(var l=1;l<=25;l+=8)s<<=1,s|=e>>>l+c&1}n[a+0]=i>>>0,n[a+1]=s>>>0};Ll.rip=function(e,t,n,a){for(var i=0,s=0,c=0;c<4;c++)for(var l=24;l>=0;l-=8)i<<=1,i|=t>>>l+c&1,i<<=1,i|=e>>>l+c&1;for(var c=4;c<8;c++)for(var l=24;l>=0;l-=8)s<<=1,s|=t>>>l+c&1,s<<=1,s|=e>>>l+c&1;n[a+0]=i>>>0,n[a+1]=s>>>0};Ll.pc1=function(e,t,n,a){for(var i=0,s=0,c=7;c>=5;c--){for(var l=0;l<=24;l+=8)i<<=1,i|=t>>l+c&1;for(var l=0;l<=24;l+=8)i<<=1,i|=e>>l+c&1}for(var l=0;l<=24;l+=8)i<<=1,i|=t>>l+c&1;for(var c=1;c<=3;c++){for(var l=0;l<=24;l+=8)s<<=1,s|=t>>l+c&1;for(var l=0;l<=24;l+=8)s<<=1,s|=e>>l+c&1}for(var l=0;l<=24;l+=8)s<<=1,s|=e>>l+c&1;n[a+0]=i>>>0,n[a+1]=s>>>0};Ll.r28shl=function(e,t){return e<>>28-t};var IS=[14,11,17,4,27,23,25,0,13,22,7,18,5,9,16,24,2,20,12,21,1,8,15,26,15,4,25,19,9,1,26,16,5,11,23,8,12,7,17,0,22,3,10,14,6,20,27,24];Ll.pc2=function(e,t,n,a){for(var i=0,s=0,c=IS.length>>>1,l=0;l>>IS[l]&1;for(var l=c;l>>IS[l]&1;n[a+0]=i>>>0,n[a+1]=s>>>0};Ll.expand=function(e,t,n){var a=0,i=0;a=(e&1)<<5|e>>>27;for(var s=23;s>=15;s-=4)a<<=6,a|=e>>>s&63;for(var s=11;s>=3;s-=4)i|=e>>>s&63,i<<=6;i|=(e&31)<<1|e>>>31,t[n+0]=a>>>0,t[n+1]=i>>>0};var ade=[14,0,4,15,13,7,1,4,2,14,15,2,11,13,8,1,3,10,10,6,6,12,12,11,5,9,9,5,0,3,7,8,4,15,1,12,14,8,8,2,13,4,6,9,2,1,11,7,15,5,12,11,9,3,7,14,3,10,10,0,5,6,0,13,15,3,1,13,8,4,14,7,6,15,11,2,3,8,4,14,9,12,7,0,2,1,13,10,12,6,0,9,5,11,10,5,0,13,14,8,7,10,11,1,10,3,4,15,13,4,1,2,5,11,8,6,12,7,6,12,9,0,3,5,2,14,15,9,10,13,0,7,9,0,14,9,6,3,3,4,15,6,5,10,1,2,13,8,12,5,7,14,11,12,4,11,2,15,8,1,13,1,6,10,4,13,9,0,8,6,15,9,3,8,0,7,11,4,1,15,2,14,12,3,5,11,10,5,14,2,7,12,7,13,13,8,14,11,3,5,0,6,6,15,9,0,10,3,1,4,2,7,8,2,5,12,11,1,12,10,4,14,15,9,10,3,6,15,9,0,0,6,12,10,11,1,7,13,13,8,15,9,1,4,3,5,14,11,5,12,2,7,8,2,4,14,2,14,12,11,4,2,1,12,7,4,10,7,11,13,6,1,8,5,5,0,3,15,15,10,13,3,0,9,14,8,9,6,4,11,2,8,1,12,11,7,10,1,13,14,7,2,8,13,15,6,9,15,12,0,5,9,6,10,3,4,0,5,14,3,12,10,1,15,10,4,15,2,9,7,2,12,6,9,8,5,0,6,13,1,3,13,4,14,14,0,7,11,5,3,11,8,9,4,14,3,15,2,5,12,2,9,8,5,12,15,3,10,7,11,0,14,4,1,10,7,1,6,13,0,11,8,6,13,4,13,11,0,2,11,14,7,15,4,0,9,8,1,13,10,3,14,12,3,9,5,7,12,5,2,10,15,6,8,1,6,1,6,4,11,11,13,13,8,12,1,3,4,7,10,14,7,10,9,15,5,6,0,8,15,0,14,5,2,9,3,2,12,13,1,2,15,8,13,4,8,6,10,15,3,11,7,1,4,10,12,9,5,3,6,14,11,5,0,0,14,12,9,7,2,7,2,11,1,4,14,1,7,9,4,12,10,14,8,2,13,0,15,6,12,10,9,13,0,15,3,3,5,5,6,8,11];Ll.substitute=function(e,t){for(var n=0,a=0;a<4;a++){var i=e>>>18-a*6&63,s=ade[a*64+i];n<<=4,n|=s}for(var a=0;a<4;a++){var i=t>>>18-a*6&63,s=ade[4*64+a*64+i];n<<=4,n|=s}return n>>>0};var ide=[16,25,12,11,3,20,4,15,31,17,9,6,27,14,1,22,30,24,8,18,0,5,29,23,13,19,2,26,10,21,28,7];Ll.permute=function(e){for(var t=0,n=0;n>>ide[n]&1;return t>>>0};Ll.padSplit=function(e,t,n){for(var a=e.toString(2);a.length{"use strict";x();T();var A2t=Xu();function Bl(r){this.options=r,this.type=this.options.type,this.blockSize=8,this._init(),this.buffer=new Array(this.blockSize),this.bufferOff=0}sde.exports=Bl;Bl.prototype._init=function(){};Bl.prototype.update=function(e){return e.length===0?[]:this.type==="decrypt"?this._updateDecrypt(e):this._updateEncrypt(e)};Bl.prototype._buffer=function(e,t){for(var n=Math.min(this.buffer.length-this.bufferOff,e.length-t),a=0;a0;a--)t+=this._buffer(e,t),n+=this._flushBuffer(i,n);return t+=this._buffer(e,t),i};Bl.prototype.final=function(e){var t;e&&(t=this.update(e));var n;return this.type==="encrypt"?n=this._finalEncrypt():n=this._finalDecrypt(),t?t.concat(n):n};Bl.prototype._pad=function(e,t){if(t===0)return!1;for(;t{"use strict";x();T();var ode=Xu(),M2t=jr(),ys=XF(),cde=PS();function I2t(){this.tmp=new Array(2),this.keys=null}function th(r){cde.call(this,r);var e=new I2t;this._desState=e,this.deriveKeys(e,r.key)}M2t(th,cde);ude.exports=th;th.create=function(e){return new th(e)};var P2t=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1];th.prototype.deriveKeys=function(e,t){e.keys=new Array(16*2),ode.equal(t.length,this.blockSize,"Invalid key length");var n=ys.readUInt32BE(t,0),a=ys.readUInt32BE(t,4);ys.pc1(n,a,e.tmp,0),n=e.tmp[0],a=e.tmp[1];for(var i=0;i>>1];n=ys.r28shl(n,s),a=ys.r28shl(a,s),ys.pc2(n,a,e.keys,i)}};th.prototype._update=function(e,t,n,a){var i=this._desState,s=ys.readUInt32BE(e,t),c=ys.readUInt32BE(e,t+4);ys.ip(s,c,i.tmp,0),s=i.tmp[0],c=i.tmp[1],this.type==="encrypt"?this._encrypt(i,s,c,i.tmp,0):this._decrypt(i,s,c,i.tmp,0),s=i.tmp[0],c=i.tmp[1],ys.writeUInt32BE(n,s,a),ys.writeUInt32BE(n,c,a+4)};th.prototype._pad=function(e,t){for(var n=e.length-t,a=t;a>>0,s=k}ys.rip(c,s,a,i)};th.prototype._decrypt=function(e,t,n,a,i){for(var s=n,c=t,l=e.keys.length-2;l>=0;l-=2){var d=e.keys[l],f=e.keys[l+1];ys.expand(s,e.tmp,0),d^=e.tmp[0],f^=e.tmp[1];var w=ys.substitute(d,f),E=ys.permute(w),k=s;s=(c^E)>>>0,c=k}ys.rip(s,c,a,i)}});var dde=O(lde=>{"use strict";x();T();var R2t=Xu(),N2t=jr(),RS={};function O2t(r){R2t.equal(r.length,8,"Invalid IV length"),this.iv=new Array(8);for(var e=0;e{"use strict";x();T();var B2t=Xu(),q2t=jr(),pde=PS(),Ym=YF();function D2t(r,e){B2t.equal(e.length,24,"Invalid key length");var t=e.slice(0,8),n=e.slice(8,16),a=e.slice(16,24);r==="encrypt"?this.ciphers=[Ym.create({type:"encrypt",key:t}),Ym.create({type:"decrypt",key:n}),Ym.create({type:"encrypt",key:a})]:this.ciphers=[Ym.create({type:"decrypt",key:a}),Ym.create({type:"encrypt",key:n}),Ym.create({type:"decrypt",key:t})]}function bg(r){pde.call(this,r);var e=new D2t(this.type,this.options.key);this._edeState=e}q2t(bg,pde);hde.exports=bg;bg.create=function(e){return new bg(e)};bg.prototype._update=function(e,t,n,a){var i=this._edeState;i.ciphers[0]._update(e,t,n,a),i.ciphers[1]._update(n,a,n,a),i.ciphers[2]._update(n,a,n,a)};bg.prototype._pad=Ym.prototype._pad;bg.prototype._unpad=Ym.prototype._unpad});var mde=O(Eb=>{"use strict";x();T();Eb.utils=XF();Eb.Cipher=PS();Eb.DES=YF();Eb.CBC=dde();Eb.EDE=fde()});var vde=O((lGr,gde)=>{x();T();var yde=bf(),wf=mde(),F2t=jr(),wg=Zr().Buffer,h6={"des-ede3-cbc":wf.CBC.instantiate(wf.EDE),"des-ede3":wf.EDE,"des-ede-cbc":wf.CBC.instantiate(wf.EDE),"des-ede":wf.EDE,"des-cbc":wf.CBC.instantiate(wf.DES),"des-ecb":wf.DES};h6.des=h6["des-cbc"];h6.des3=h6["des-ede3-cbc"];gde.exports=NS;F2t(NS,yde);function NS(r){yde.call(this);var e=r.mode.toLowerCase(),t=h6[e],n;r.decrypt?n="decrypt":n="encrypt";var a=r.key;wg.isBuffer(a)||(a=wg.from(a)),(e==="des-ede"||e==="des-ede-cbc")&&(a=wg.concat([a,a.slice(0,8)]));var i=r.iv;wg.isBuffer(i)||(i=wg.from(i)),this._des=t.create({key:a,iv:i,type:n})}NS.prototype._update=function(r){return wg.from(this._des.update(r))};NS.prototype._final=function(){return wg.from(this._des.final())}});var bde=O($F=>{x();T();$F.encrypt=function(r,e){return r._cipher.encryptBlock(e)};$F.decrypt=function(r,e){return r._cipher.decryptBlock(e)}});var kb=O((yGr,wde)=>{x();T();wde.exports=function(e,t){for(var n=Math.min(e.length,t.length),a=new P.Buffer(n),i=0;i{x();T();var xde=kb();eU.encrypt=function(r,e){var t=xde(e,r._prev);return r._prev=r._cipher.encryptBlock(t),r._prev};eU.decrypt=function(r,e){var t=r._prev;r._prev=e;var n=r._cipher.decryptBlock(e);return xde(n,t)}});var Ede=O(Cde=>{x();T();var f6=Zr().Buffer,U2t=kb();function _de(r,e,t){var n=e.length,a=U2t(e,r._cache);return r._cache=r._cache.slice(n),r._prev=f6.concat([r._prev,t?e:a]),a}Cde.encrypt=function(r,e,t){for(var n=f6.allocUnsafe(0),a;e.length;)if(r._cache.length===0&&(r._cache=r._cipher.encryptBlock(r._prev),r._prev=f6.allocUnsafe(0)),r._cache.length<=e.length)a=r._cache.length,n=f6.concat([n,_de(r,e.slice(0,a),t)]),e=e.slice(a);else{n=f6.concat([n,_de(r,e,t)]);break}return n}});var Sde=O(kde=>{x();T();var tU=Zr().Buffer;function W2t(r,e,t){var n=r._cipher.encryptBlock(r._prev),a=n[0]^e;return r._prev=tU.concat([r._prev.slice(1),tU.from([t?e:a])]),a}kde.encrypt=function(r,e,t){for(var n=e.length,a=tU.allocUnsafe(n),i=-1;++i{x();T();var OS=Zr().Buffer;function j2t(r,e,t){for(var n,a=-1,i=8,s=0,c,l;++a>a%8,r._prev=z2t(r._prev,t?c:l);return s}function z2t(r,e){var t=r.length,n=-1,a=OS.allocUnsafe(r.length);for(r=OS.concat([r,OS.from([e])]);++n>7;return a}Ade.encrypt=function(r,e,t){for(var n=e.length,a=OS.allocUnsafe(n),i=-1;++i{x();T();var H2t=kb();function V2t(r){return r._prev=r._cipher.encryptBlock(r._prev),r._prev}Ide.encrypt=function(r,e){for(;r._cache.length{x();T();function G2t(r){for(var e=r.length,t;e--;)if(t=r.readUInt8(e),t===255)r.writeUInt8(0,e);else{t++,r.writeUInt8(t,e);break}}Rde.exports=G2t});var aU=O(Ode=>{x();T();var Z2t=kb(),Nde=Zr().Buffer,J2t=rU();function K2t(r){var e=r._cipher.encryptBlockRaw(r._prev);return J2t(r._prev),e}var nU=16;Ode.encrypt=function(r,e){var t=Math.ceil(e.length/nU),n=r._cache.length;r._cache=Nde.concat([r._cache,Nde.allocUnsafe(t*nU)]);for(var a=0;a{Q2t.exports={"aes-128-ecb":{cipher:"AES",key:128,iv:0,mode:"ECB",type:"block"},"aes-192-ecb":{cipher:"AES",key:192,iv:0,mode:"ECB",type:"block"},"aes-256-ecb":{cipher:"AES",key:256,iv:0,mode:"ECB",type:"block"},"aes-128-cbc":{cipher:"AES",key:128,iv:16,mode:"CBC",type:"block"},"aes-192-cbc":{cipher:"AES",key:192,iv:16,mode:"CBC",type:"block"},"aes-256-cbc":{cipher:"AES",key:256,iv:16,mode:"CBC",type:"block"},aes128:{cipher:"AES",key:128,iv:16,mode:"CBC",type:"block"},aes192:{cipher:"AES",key:192,iv:16,mode:"CBC",type:"block"},aes256:{cipher:"AES",key:256,iv:16,mode:"CBC",type:"block"},"aes-128-cfb":{cipher:"AES",key:128,iv:16,mode:"CFB",type:"stream"},"aes-192-cfb":{cipher:"AES",key:192,iv:16,mode:"CFB",type:"stream"},"aes-256-cfb":{cipher:"AES",key:256,iv:16,mode:"CFB",type:"stream"},"aes-128-cfb8":{cipher:"AES",key:128,iv:16,mode:"CFB8",type:"stream"},"aes-192-cfb8":{cipher:"AES",key:192,iv:16,mode:"CFB8",type:"stream"},"aes-256-cfb8":{cipher:"AES",key:256,iv:16,mode:"CFB8",type:"stream"},"aes-128-cfb1":{cipher:"AES",key:128,iv:16,mode:"CFB1",type:"stream"},"aes-192-cfb1":{cipher:"AES",key:192,iv:16,mode:"CFB1",type:"stream"},"aes-256-cfb1":{cipher:"AES",key:256,iv:16,mode:"CFB1",type:"stream"},"aes-128-ofb":{cipher:"AES",key:128,iv:16,mode:"OFB",type:"stream"},"aes-192-ofb":{cipher:"AES",key:192,iv:16,mode:"OFB",type:"stream"},"aes-256-ofb":{cipher:"AES",key:256,iv:16,mode:"OFB",type:"stream"},"aes-128-ctr":{cipher:"AES",key:128,iv:16,mode:"CTR",type:"stream"},"aes-192-ctr":{cipher:"AES",key:192,iv:16,mode:"CTR",type:"stream"},"aes-256-ctr":{cipher:"AES",key:256,iv:16,mode:"CTR",type:"stream"},"aes-128-gcm":{cipher:"AES",key:128,iv:12,mode:"GCM",type:"auth"},"aes-192-gcm":{cipher:"AES",key:192,iv:12,mode:"GCM",type:"auth"},"aes-256-gcm":{cipher:"AES",key:256,iv:12,mode:"GCM",type:"auth"}}});var BS=O((WGr,Lde)=>{x();T();var X2t={ECB:bde(),CBC:Tde(),CFB:Ede(),CFB8:Sde(),CFB1:Mde(),OFB:Pde(),CTR:aU(),GCM:aU()},LS=iU();for(sU in LS)LS[sU].module=X2t[LS[sU].mode];var sU;Lde.exports=LS});var m6=O((HGr,qde)=>{x();T();var qS=Zr().Buffer;function cU(r){qS.isBuffer(r)||(r=qS.from(r));for(var e=r.length/4|0,t=new Array(e),n=0;n>>24]^s[f>>>16&255]^c[w>>>8&255]^l[E&255]^e[U++],A=i[f>>>24]^s[w>>>16&255]^c[E>>>8&255]^l[d&255]^e[U++],L=i[w>>>24]^s[E>>>16&255]^c[d>>>8&255]^l[f&255]^e[U++],q=i[E>>>24]^s[d>>>16&255]^c[f>>>8&255]^l[w&255]^e[U++],d=k,f=A,w=L,E=q;return k=(n[d>>>24]<<24|n[f>>>16&255]<<16|n[w>>>8&255]<<8|n[E&255])^e[U++],A=(n[f>>>24]<<24|n[w>>>16&255]<<16|n[E>>>8&255]<<8|n[d&255])^e[U++],L=(n[w>>>24]<<24|n[E>>>16&255]<<16|n[d>>>8&255]<<8|n[f&255])^e[U++],q=(n[E>>>24]<<24|n[d>>>16&255]<<16|n[f>>>8&255]<<8|n[w&255])^e[U++],k=k>>>0,A=A>>>0,L=L>>>0,q=q>>>0,[k,A,L,q]}var Y2t=[0,1,2,4,8,16,32,64,128,27,54],ns=function(){for(var r=new Array(256),e=0;e<256;e++)e<128?r[e]=e<<1:r[e]=e<<1^283;for(var t=[],n=[],a=[[],[],[],[]],i=[[],[],[],[]],s=0,c=0,l=0;l<256;++l){var d=c^c<<1^c<<2^c<<3^c<<4;d=d>>>8^d&255^99,t[s]=d,n[d]=s;var f=r[s],w=r[f],E=r[w],k=r[d]*257^d*16843008;a[0][s]=k<<24|k>>>8,a[1][s]=k<<16|k>>>16,a[2][s]=k<<8|k>>>24,a[3][s]=k,k=E*16843009^w*65537^f*257^s*16843008,i[0][d]=k<<24|k>>>8,i[1][d]=k<<16|k>>>16,i[2][d]=k<<8|k>>>24,i[3][d]=k,s===0?s=c=1:(s=f^r[r[r[E^f]]],c^=r[r[c]])}return{SBOX:t,INV_SBOX:n,SUB_MIX:a,INV_SUB_MIX:i}}();function ql(r){this._key=cU(r),this._reset()}ql.blockSize=4*4;ql.keySize=256/8;ql.prototype.blockSize=ql.blockSize;ql.prototype.keySize=ql.keySize;ql.prototype._reset=function(){for(var r=this._key,e=r.length,t=e+6,n=(t+1)*4,a=[],i=0;i>>24,s=ns.SBOX[s>>>24]<<24|ns.SBOX[s>>>16&255]<<16|ns.SBOX[s>>>8&255]<<8|ns.SBOX[s&255],s^=Y2t[i/e|0]<<24):e>6&&i%e===4&&(s=ns.SBOX[s>>>24]<<24|ns.SBOX[s>>>16&255]<<16|ns.SBOX[s>>>8&255]<<8|ns.SBOX[s&255]),a[i]=a[i-e]^s}for(var c=[],l=0;l>>24]]^ns.INV_SUB_MIX[1][ns.SBOX[f>>>16&255]]^ns.INV_SUB_MIX[2][ns.SBOX[f>>>8&255]]^ns.INV_SUB_MIX[3][ns.SBOX[f&255]]}this._nRounds=t,this._keySchedule=a,this._invKeySchedule=c};ql.prototype.encryptBlockRaw=function(r){return r=cU(r),Bde(r,this._keySchedule,ns.SUB_MIX,ns.SBOX,this._nRounds)};ql.prototype.encryptBlock=function(r){var e=this.encryptBlockRaw(r),t=qS.allocUnsafe(16);return t.writeUInt32BE(e[0],0),t.writeUInt32BE(e[1],4),t.writeUInt32BE(e[2],8),t.writeUInt32BE(e[3],12),t};ql.prototype.decryptBlock=function(r){r=cU(r);var e=r[1];r[1]=r[3],r[3]=e;var t=Bde(r,this._invKeySchedule,ns.INV_SUB_MIX,ns.INV_SBOX,this._nRounds),n=qS.allocUnsafe(16);return n.writeUInt32BE(t[0],0),n.writeUInt32BE(t[3],4),n.writeUInt32BE(t[2],8),n.writeUInt32BE(t[1],12),n};ql.prototype.scrub=function(){oU(this._keySchedule),oU(this._invKeySchedule),oU(this._key)};qde.exports.AES=ql});var Ude=O((ZGr,Fde)=>{x();T();var Sb=Zr().Buffer,$2t=Sb.alloc(16,0);function ewt(r){return[r.readUInt32BE(0),r.readUInt32BE(4),r.readUInt32BE(8),r.readUInt32BE(12)]}function Dde(r){var e=Sb.allocUnsafe(16);return e.writeUInt32BE(r[0]>>>0,0),e.writeUInt32BE(r[1]>>>0,4),e.writeUInt32BE(r[2]>>>0,8),e.writeUInt32BE(r[3]>>>0,12),e}function y6(r){this.h=r,this.state=Sb.alloc(16,0),this.cache=Sb.allocUnsafe(0)}y6.prototype.ghash=function(r){for(var e=-1;++e0;t--)r[t]=r[t]>>>1|(r[t-1]&1)<<31;r[0]=r[0]>>>1,a&&(r[0]=r[0]^225<<24)}this.state=Dde(e)};y6.prototype.update=function(r){this.cache=Sb.concat([this.cache,r]);for(var e;this.cache.length>=16;)e=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(e)};y6.prototype.final=function(r,e){return this.cache.length&&this.ghash(Sb.concat([this.cache,$2t],16)),this.ghash(Dde([0,r,0,e])),this.state};Fde.exports=y6});var uU=O((QGr,zde)=>{x();T();var twt=m6(),uu=Zr().Buffer,Wde=bf(),rwt=jr(),jde=Ude(),nwt=kb(),awt=rU();function iwt(r,e){var t=0;r.length!==e.length&&t++;for(var n=Math.min(r.length,e.length),a=0;a{x();T();var owt=m6(),lU=Zr().Buffer,Hde=bf(),cwt=jr();function DS(r,e,t,n){Hde.call(this),this._cipher=new owt.AES(e),this._prev=lU.from(t),this._cache=lU.allocUnsafe(0),this._secCache=lU.allocUnsafe(0),this._decrypt=n,this._mode=r}cwt(DS,Hde);DS.prototype._update=function(r){return this._mode.encrypt(this,r,this._decrypt)};DS.prototype._final=function(){this._cipher.scrub()};Vde.exports=DS});var g6=O((rZr,Gde)=>{x();T();var Tg=Zr().Buffer,uwt=bS();function lwt(r,e,t,n){if(Tg.isBuffer(r)||(r=Tg.from(r,"binary")),e&&(Tg.isBuffer(e)||(e=Tg.from(e,"binary")),e.length!==8))throw new RangeError("salt should be Buffer with 8 byte length");for(var a=t/8,i=Tg.alloc(a),s=Tg.alloc(n||0),c=Tg.alloc(0);a>0||n>0;){var l=new uwt;l.update(c),l.update(r),e&&l.update(e),c=l.digest();var d=0;if(a>0){var f=i.length-a;d=Math.min(a,c.length),c.copy(i,f,0,d),a-=d}if(d0){var w=s.length-n,E=Math.min(n,c.length-d);c.copy(s,w,d,d+E),n-=E}}return c.fill(0),{key:i,iv:s}}Gde.exports=lwt});var Qde=O(pU=>{x();T();var Zde=BS(),dwt=uU(),xf=Zr().Buffer,pwt=dU(),Jde=bf(),hwt=m6(),fwt=g6(),mwt=jr();function v6(r,e,t){Jde.call(this),this._cache=new FS,this._cipher=new hwt.AES(e),this._prev=xf.from(t),this._mode=r,this._autopadding=!0}mwt(v6,Jde);v6.prototype._update=function(r){this._cache.add(r);for(var e,t,n=[];e=this._cache.get();)t=this._mode.encrypt(this,e),n.push(t);return xf.concat(n)};var ywt=xf.alloc(16,16);v6.prototype._final=function(){var r=this._cache.flush();if(this._autopadding)return r=this._mode.encrypt(this,r),this._cipher.scrub(),r;if(!r.equals(ywt))throw this._cipher.scrub(),new Error("data not multiple of block length")};v6.prototype.setAutoPadding=function(r){return this._autopadding=!!r,this};function FS(){this.cache=xf.allocUnsafe(0)}FS.prototype.add=function(r){this.cache=xf.concat([this.cache,r])};FS.prototype.get=function(){if(this.cache.length>15){var r=this.cache.slice(0,16);return this.cache=this.cache.slice(16),r}return null};FS.prototype.flush=function(){for(var r=16-this.cache.length,e=xf.allocUnsafe(r),t=-1;++t{x();T();var vwt=uU(),Ab=Zr().Buffer,Xde=BS(),bwt=dU(),Yde=bf(),wwt=m6(),xwt=g6(),Twt=jr();function b6(r,e,t){Yde.call(this),this._cache=new US,this._last=void 0,this._cipher=new wwt.AES(e),this._prev=Ab.from(t),this._mode=r,this._autopadding=!0}Twt(b6,Yde);b6.prototype._update=function(r){this._cache.add(r);for(var e,t,n=[];e=this._cache.get(this._autopadding);)t=this._mode.decrypt(this,e),n.push(t);return Ab.concat(n)};b6.prototype._final=function(){var r=this._cache.flush();if(this._autopadding)return _wt(this._mode.decrypt(this,r));if(r)throw new Error("data not multiple of block length")};b6.prototype.setAutoPadding=function(r){return this._autopadding=!!r,this};function US(){this.cache=Ab.allocUnsafe(0)}US.prototype.add=function(r){this.cache=Ab.concat([this.cache,r])};US.prototype.get=function(r){var e;if(r){if(this.cache.length>16)return e=this.cache.slice(0,16),this.cache=this.cache.slice(16),e}else if(this.cache.length>=16)return e=this.cache.slice(0,16),this.cache=this.cache.slice(16),e;return null};US.prototype.flush=function(){if(this.cache.length)return this.cache};function _wt(r){var e=r[15];if(e<1||e>16)throw new Error("unable to decrypt data");for(var t=-1;++t{x();T();var tpe=Qde(),rpe=epe(),Ewt=iU();function kwt(){return Object.keys(Ewt)}Zd.createCipher=Zd.Cipher=tpe.createCipher;Zd.createCipheriv=Zd.Cipheriv=tpe.createCipheriv;Zd.createDecipher=Zd.Decipher=rpe.createDecipher;Zd.createDecipheriv=Zd.Decipheriv=rpe.createDecipheriv;Zd.listCiphers=Zd.getCiphers=kwt});var npe=O(Tf=>{x();T();Tf["des-ecb"]={key:8,iv:0};Tf["des-cbc"]=Tf.des={key:8,iv:8};Tf["des-ede3-cbc"]=Tf.des3={key:24,iv:8};Tf["des-ede3"]={key:24,iv:0};Tf["des-ede-cbc"]={key:16,iv:8};Tf["des-ede"]={key:16,iv:0}});var cpe=O(Jd=>{x();T();var ape=vde(),fU=WS(),$m=BS(),_f=npe(),ipe=g6();function Swt(r,e){r=r.toLowerCase();var t,n;if($m[r])t=$m[r].key,n=$m[r].iv;else if(_f[r])t=_f[r].key*8,n=_f[r].iv;else throw new TypeError("invalid suite type");var a=ipe(e,!1,t,n);return spe(r,a.key,a.iv)}function Awt(r,e){r=r.toLowerCase();var t,n;if($m[r])t=$m[r].key,n=$m[r].iv;else if(_f[r])t=_f[r].key*8,n=_f[r].iv;else throw new TypeError("invalid suite type");var a=ipe(e,!1,t,n);return ope(r,a.key,a.iv)}function spe(r,e,t){if(r=r.toLowerCase(),$m[r])return fU.createCipheriv(r,e,t);if(_f[r])return new ape({key:e,iv:t,mode:r});throw new TypeError("invalid suite type")}function ope(r,e,t){if(r=r.toLowerCase(),$m[r])return fU.createDecipheriv(r,e,t);if(_f[r])return new ape({key:e,iv:t,mode:r,decrypt:!0});throw new TypeError("invalid suite type")}function Mwt(){return Object.keys(_f).concat(fU.getCiphers())}Jd.createCipher=Jd.Cipher=Swt;Jd.createCipheriv=Jd.Cipheriv=spe;Jd.createDecipher=Jd.Decipher=Awt;Jd.createDecipheriv=Jd.Decipheriv=ope;Jd.listCiphers=Jd.getCiphers=Mwt});var yU=O((upe,mU)=>{x();T();(function(r,e){"use strict";function t(g,o){if(!g)throw new Error(o||"Assertion failed")}function n(g,o){g.super_=o;var p=function(){};p.prototype=o.prototype,g.prototype=new p,g.prototype.constructor=g}function a(g,o,p){if(a.isBN(g))return g;this.negative=0,this.words=null,this.length=0,this.red=null,g!==null&&((o==="le"||o==="be")&&(p=o,o=10),this._init(g||0,o||10,p||"be"))}typeof r=="object"?r.exports=a:e.BN=a,a.BN=a,a.wordSize=26;var i;try{typeof window<"u"&&typeof window.Buffer<"u"?i=window.Buffer:i=$i().Buffer}catch{}a.isBN=function(o){return o instanceof a?!0:o!==null&&typeof o=="object"&&o.constructor.wordSize===a.wordSize&&Array.isArray(o.words)},a.max=function(o,p){return o.cmp(p)>0?o:p},a.min=function(o,p){return o.cmp(p)<0?o:p},a.prototype._init=function(o,p,y){if(typeof o=="number")return this._initNumber(o,p,y);if(typeof o=="object")return this._initArray(o,p,y);p==="hex"&&(p=16),t(p===(p|0)&&p>=2&&p<=36),o=o.toString().replace(/\s+/g,"");var h=0;o[0]==="-"&&(h++,this.negative=1),h=0;h-=3)_=o[h]|o[h-1]<<8|o[h-2]<<16,this.words[v]|=_<>>26-C&67108863,C+=24,C>=26&&(C-=26,v++);else if(y==="le")for(h=0,v=0;h>>26-C&67108863,C+=24,C>=26&&(C-=26,v++);return this.strip()};function s(g,o){var p=g.charCodeAt(o);return p>=65&&p<=70?p-55:p>=97&&p<=102?p-87:p-48&15}function c(g,o,p){var y=s(g,p);return p-1>=o&&(y|=s(g,p-1)<<4),y}a.prototype._parseHex=function(o,p,y){this.length=Math.ceil((o.length-p)/6),this.words=new Array(this.length);for(var h=0;h=p;h-=2)C=c(o,p,h)<=18?(v-=18,_+=1,this.words[_]|=C>>>26):v+=8;else{var m=o.length-p;for(h=m%2===0?p+1:p;h=18?(v-=18,_+=1,this.words[_]|=C>>>26):v+=8}this.strip()};function l(g,o,p,y){for(var h=0,v=Math.min(g.length,p),_=o;_=49?h+=C-49+10:C>=17?h+=C-17+10:h+=C}return h}a.prototype._parseBase=function(o,p,y){this.words=[0],this.length=1;for(var h=0,v=1;v<=67108863;v*=p)h++;h--,v=v/p|0;for(var _=o.length-y,C=_%h,m=Math.min(_,_-C)+y,u=0,b=y;b1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},a.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},a.prototype.inspect=function(){return(this.red?""};var d=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],f=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],w=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];a.prototype.toString=function(o,p){o=o||10,p=p|0||1;var y;if(o===16||o==="hex"){y="";for(var h=0,v=0,_=0;_>>24-h&16777215,v!==0||_!==this.length-1?y=d[6-m.length]+m+y:y=m+y,h+=2,h>=26&&(h-=26,_--)}for(v!==0&&(y=v.toString(16)+y);y.length%p!==0;)y="0"+y;return this.negative!==0&&(y="-"+y),y}if(o===(o|0)&&o>=2&&o<=36){var u=f[o],b=w[o];y="";var R=this.clone();for(R.negative=0;!R.isZero();){var S=R.modn(b).toString(o);R=R.idivn(b),R.isZero()?y=S+y:y=d[u-S.length]+S+y}for(this.isZero()&&(y="0"+y);y.length%p!==0;)y="0"+y;return this.negative!==0&&(y="-"+y),y}t(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var o=this.words[0];return this.length===2?o+=this.words[1]*67108864:this.length===3&&this.words[2]===1?o+=4503599627370496+this.words[1]*67108864:this.length>2&&t(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-o:o},a.prototype.toJSON=function(){return this.toString(16)},a.prototype.toBuffer=function(o,p){return t(typeof i<"u"),this.toArrayLike(i,o,p)},a.prototype.toArray=function(o,p){return this.toArrayLike(Array,o,p)},a.prototype.toArrayLike=function(o,p,y){var h=this.byteLength(),v=y||Math.max(1,h);t(h<=v,"byte array longer than desired length"),t(v>0,"Requested array length <= 0"),this.strip();var _=p==="le",C=new o(v),m,u,b=this.clone();if(_){for(u=0;!b.isZero();u++)m=b.andln(255),b.iushrn(8),C[u]=m;for(;u=4096&&(y+=13,p>>>=13),p>=64&&(y+=7,p>>>=7),p>=8&&(y+=4,p>>>=4),p>=2&&(y+=2,p>>>=2),y+p},a.prototype._zeroBits=function(o){if(o===0)return 26;var p=o,y=0;return(p&8191)===0&&(y+=13,p>>>=13),(p&127)===0&&(y+=7,p>>>=7),(p&15)===0&&(y+=4,p>>>=4),(p&3)===0&&(y+=2,p>>>=2),(p&1)===0&&y++,y},a.prototype.bitLength=function(){var o=this.words[this.length-1],p=this._countBits(o);return(this.length-1)*26+p};function E(g){for(var o=new Array(g.bitLength()),p=0;p>>h}return o}a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var o=0,p=0;po.length?this.clone().ior(o):o.clone().ior(this)},a.prototype.uor=function(o){return this.length>o.length?this.clone().iuor(o):o.clone().iuor(this)},a.prototype.iuand=function(o){var p;this.length>o.length?p=o:p=this;for(var y=0;yo.length?this.clone().iand(o):o.clone().iand(this)},a.prototype.uand=function(o){return this.length>o.length?this.clone().iuand(o):o.clone().iuand(this)},a.prototype.iuxor=function(o){var p,y;this.length>o.length?(p=this,y=o):(p=o,y=this);for(var h=0;ho.length?this.clone().ixor(o):o.clone().ixor(this)},a.prototype.uxor=function(o){return this.length>o.length?this.clone().iuxor(o):o.clone().iuxor(this)},a.prototype.inotn=function(o){t(typeof o=="number"&&o>=0);var p=Math.ceil(o/26)|0,y=o%26;this._expand(p),y>0&&p--;for(var h=0;h0&&(this.words[h]=~this.words[h]&67108863>>26-y),this.strip()},a.prototype.notn=function(o){return this.clone().inotn(o)},a.prototype.setn=function(o,p){t(typeof o=="number"&&o>=0);var y=o/26|0,h=o%26;return this._expand(y+1),p?this.words[y]=this.words[y]|1<o.length?(y=this,h=o):(y=o,h=this);for(var v=0,_=0;_>>26;for(;v!==0&&_>>26;if(this.length=y.length,v!==0)this.words[this.length]=v,this.length++;else if(y!==this)for(;_o.length?this.clone().iadd(o):o.clone().iadd(this)},a.prototype.isub=function(o){if(o.negative!==0){o.negative=0;var p=this.iadd(o);return o.negative=1,p._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(o),this.negative=1,this._normSign();var y=this.cmp(o);if(y===0)return this.negative=0,this.length=1,this.words[0]=0,this;var h,v;y>0?(h=this,v=o):(h=o,v=this);for(var _=0,C=0;C>26,this.words[C]=p&67108863;for(;_!==0&&C>26,this.words[C]=p&67108863;if(_===0&&C>>26,R=m&67108863,S=Math.min(u,o.length-1),B=Math.max(0,u-g.length+1);B<=S;B++){var Z=u-B|0;h=g.words[Z]|0,v=o.words[B]|0,_=h*v+R,b+=_/67108864|0,R=_&67108863}p.words[u]=R|0,m=b|0}return m!==0?p.words[u]=m|0:p.length--,p.strip()}var A=function(o,p,y){var h=o.words,v=p.words,_=y.words,C=0,m,u,b,R=h[0]|0,S=R&8191,B=R>>>13,Z=h[1]|0,W=Z&8191,X=Z>>>13,de=h[2]|0,ne=de&8191,pe=de>>>13,pt=h[3]|0,fe=pt&8191,be=pt>>>13,Tt=h[4]|0,we=Tt&8191,Oe=Tt>>>13,Pt=h[5]|0,Be=Pt&8191,ze=Pt>>>13,At=h[6]|0,Me=At&8191,Ve=At>>>13,St=h[7]|0,Ie=St&8191,Ze=St>>>13,Ut=h[8]|0,qe=Ut&8191,Xe=Ut>>>13,Ht=h[9]|0,Ae=Ht&8191,Ke=Ht>>>13,Gt=v[0]|0,Pe=Gt&8191,Qe=Gt>>>13,Zt=v[1]|0,Re=Zt&8191,Ye=Zt>>>13,Jt=v[2]|0,Ne=Jt&8191,$e=Jt>>>13,Vt=v[3]|0,Se=Vt&8191,et=Vt>>>13,Rt=v[4]|0,Le=Rt&8191,tt=Rt>>>13,Kt=v[5]|0,De=Kt&8191,rt=Kt>>>13,Qt=v[6]|0,ke=Qt&8191,Je=Qt>>>13,Xt=v[7]|0,Ue=Xt&8191,st=Xt>>>13,rr=v[8]|0,We=rr&8191,nt=rr>>>13,ir=v[9]|0,je=ir&8191,at=ir>>>13;y.negative=o.negative^p.negative,y.length=19,m=Math.imul(S,Pe),u=Math.imul(S,Qe),u=u+Math.imul(B,Pe)|0,b=Math.imul(B,Qe);var Lr=(C+m|0)+((u&8191)<<13)|0;C=(b+(u>>>13)|0)+(Lr>>>26)|0,Lr&=67108863,m=Math.imul(W,Pe),u=Math.imul(W,Qe),u=u+Math.imul(X,Pe)|0,b=Math.imul(X,Qe),m=m+Math.imul(S,Re)|0,u=u+Math.imul(S,Ye)|0,u=u+Math.imul(B,Re)|0,b=b+Math.imul(B,Ye)|0;var Wt=(C+m|0)+((u&8191)<<13)|0;C=(b+(u>>>13)|0)+(Wt>>>26)|0,Wt&=67108863,m=Math.imul(ne,Pe),u=Math.imul(ne,Qe),u=u+Math.imul(pe,Pe)|0,b=Math.imul(pe,Qe),m=m+Math.imul(W,Re)|0,u=u+Math.imul(W,Ye)|0,u=u+Math.imul(X,Re)|0,b=b+Math.imul(X,Ye)|0,m=m+Math.imul(S,Ne)|0,u=u+Math.imul(S,$e)|0,u=u+Math.imul(B,Ne)|0,b=b+Math.imul(B,$e)|0;var jt=(C+m|0)+((u&8191)<<13)|0;C=(b+(u>>>13)|0)+(jt>>>26)|0,jt&=67108863,m=Math.imul(fe,Pe),u=Math.imul(fe,Qe),u=u+Math.imul(be,Pe)|0,b=Math.imul(be,Qe),m=m+Math.imul(ne,Re)|0,u=u+Math.imul(ne,Ye)|0,u=u+Math.imul(pe,Re)|0,b=b+Math.imul(pe,Ye)|0,m=m+Math.imul(W,Ne)|0,u=u+Math.imul(W,$e)|0,u=u+Math.imul(X,Ne)|0,b=b+Math.imul(X,$e)|0,m=m+Math.imul(S,Se)|0,u=u+Math.imul(S,et)|0,u=u+Math.imul(B,Se)|0,b=b+Math.imul(B,et)|0;var Er=(C+m|0)+((u&8191)<<13)|0;C=(b+(u>>>13)|0)+(Er>>>26)|0,Er&=67108863,m=Math.imul(we,Pe),u=Math.imul(we,Qe),u=u+Math.imul(Oe,Pe)|0,b=Math.imul(Oe,Qe),m=m+Math.imul(fe,Re)|0,u=u+Math.imul(fe,Ye)|0,u=u+Math.imul(be,Re)|0,b=b+Math.imul(be,Ye)|0,m=m+Math.imul(ne,Ne)|0,u=u+Math.imul(ne,$e)|0,u=u+Math.imul(pe,Ne)|0,b=b+Math.imul(pe,$e)|0,m=m+Math.imul(W,Se)|0,u=u+Math.imul(W,et)|0,u=u+Math.imul(X,Se)|0,b=b+Math.imul(X,et)|0,m=m+Math.imul(S,Le)|0,u=u+Math.imul(S,tt)|0,u=u+Math.imul(B,Le)|0,b=b+Math.imul(B,tt)|0;var kr=(C+m|0)+((u&8191)<<13)|0;C=(b+(u>>>13)|0)+(kr>>>26)|0,kr&=67108863,m=Math.imul(Be,Pe),u=Math.imul(Be,Qe),u=u+Math.imul(ze,Pe)|0,b=Math.imul(ze,Qe),m=m+Math.imul(we,Re)|0,u=u+Math.imul(we,Ye)|0,u=u+Math.imul(Oe,Re)|0,b=b+Math.imul(Oe,Ye)|0,m=m+Math.imul(fe,Ne)|0,u=u+Math.imul(fe,$e)|0,u=u+Math.imul(be,Ne)|0,b=b+Math.imul(be,$e)|0,m=m+Math.imul(ne,Se)|0,u=u+Math.imul(ne,et)|0,u=u+Math.imul(pe,Se)|0,b=b+Math.imul(pe,et)|0,m=m+Math.imul(W,Le)|0,u=u+Math.imul(W,tt)|0,u=u+Math.imul(X,Le)|0,b=b+Math.imul(X,tt)|0,m=m+Math.imul(S,De)|0,u=u+Math.imul(S,rt)|0,u=u+Math.imul(B,De)|0,b=b+Math.imul(B,rt)|0;var Sr=(C+m|0)+((u&8191)<<13)|0;C=(b+(u>>>13)|0)+(Sr>>>26)|0,Sr&=67108863,m=Math.imul(Me,Pe),u=Math.imul(Me,Qe),u=u+Math.imul(Ve,Pe)|0,b=Math.imul(Ve,Qe),m=m+Math.imul(Be,Re)|0,u=u+Math.imul(Be,Ye)|0,u=u+Math.imul(ze,Re)|0,b=b+Math.imul(ze,Ye)|0,m=m+Math.imul(we,Ne)|0,u=u+Math.imul(we,$e)|0,u=u+Math.imul(Oe,Ne)|0,b=b+Math.imul(Oe,$e)|0,m=m+Math.imul(fe,Se)|0,u=u+Math.imul(fe,et)|0,u=u+Math.imul(be,Se)|0,b=b+Math.imul(be,et)|0,m=m+Math.imul(ne,Le)|0,u=u+Math.imul(ne,tt)|0,u=u+Math.imul(pe,Le)|0,b=b+Math.imul(pe,tt)|0,m=m+Math.imul(W,De)|0,u=u+Math.imul(W,rt)|0,u=u+Math.imul(X,De)|0,b=b+Math.imul(X,rt)|0,m=m+Math.imul(S,ke)|0,u=u+Math.imul(S,Je)|0,u=u+Math.imul(B,ke)|0,b=b+Math.imul(B,Je)|0;var Ar=(C+m|0)+((u&8191)<<13)|0;C=(b+(u>>>13)|0)+(Ar>>>26)|0,Ar&=67108863,m=Math.imul(Ie,Pe),u=Math.imul(Ie,Qe),u=u+Math.imul(Ze,Pe)|0,b=Math.imul(Ze,Qe),m=m+Math.imul(Me,Re)|0,u=u+Math.imul(Me,Ye)|0,u=u+Math.imul(Ve,Re)|0,b=b+Math.imul(Ve,Ye)|0,m=m+Math.imul(Be,Ne)|0,u=u+Math.imul(Be,$e)|0,u=u+Math.imul(ze,Ne)|0,b=b+Math.imul(ze,$e)|0,m=m+Math.imul(we,Se)|0,u=u+Math.imul(we,et)|0,u=u+Math.imul(Oe,Se)|0,b=b+Math.imul(Oe,et)|0,m=m+Math.imul(fe,Le)|0,u=u+Math.imul(fe,tt)|0,u=u+Math.imul(be,Le)|0,b=b+Math.imul(be,tt)|0,m=m+Math.imul(ne,De)|0,u=u+Math.imul(ne,rt)|0,u=u+Math.imul(pe,De)|0,b=b+Math.imul(pe,rt)|0,m=m+Math.imul(W,ke)|0,u=u+Math.imul(W,Je)|0,u=u+Math.imul(X,ke)|0,b=b+Math.imul(X,Je)|0,m=m+Math.imul(S,Ue)|0,u=u+Math.imul(S,st)|0,u=u+Math.imul(B,Ue)|0,b=b+Math.imul(B,st)|0;var Mr=(C+m|0)+((u&8191)<<13)|0;C=(b+(u>>>13)|0)+(Mr>>>26)|0,Mr&=67108863,m=Math.imul(qe,Pe),u=Math.imul(qe,Qe),u=u+Math.imul(Xe,Pe)|0,b=Math.imul(Xe,Qe),m=m+Math.imul(Ie,Re)|0,u=u+Math.imul(Ie,Ye)|0,u=u+Math.imul(Ze,Re)|0,b=b+Math.imul(Ze,Ye)|0,m=m+Math.imul(Me,Ne)|0,u=u+Math.imul(Me,$e)|0,u=u+Math.imul(Ve,Ne)|0,b=b+Math.imul(Ve,$e)|0,m=m+Math.imul(Be,Se)|0,u=u+Math.imul(Be,et)|0,u=u+Math.imul(ze,Se)|0,b=b+Math.imul(ze,et)|0,m=m+Math.imul(we,Le)|0,u=u+Math.imul(we,tt)|0,u=u+Math.imul(Oe,Le)|0,b=b+Math.imul(Oe,tt)|0,m=m+Math.imul(fe,De)|0,u=u+Math.imul(fe,rt)|0,u=u+Math.imul(be,De)|0,b=b+Math.imul(be,rt)|0,m=m+Math.imul(ne,ke)|0,u=u+Math.imul(ne,Je)|0,u=u+Math.imul(pe,ke)|0,b=b+Math.imul(pe,Je)|0,m=m+Math.imul(W,Ue)|0,u=u+Math.imul(W,st)|0,u=u+Math.imul(X,Ue)|0,b=b+Math.imul(X,st)|0,m=m+Math.imul(S,We)|0,u=u+Math.imul(S,nt)|0,u=u+Math.imul(B,We)|0,b=b+Math.imul(B,nt)|0;var Kr=(C+m|0)+((u&8191)<<13)|0;C=(b+(u>>>13)|0)+(Kr>>>26)|0,Kr&=67108863,m=Math.imul(Ae,Pe),u=Math.imul(Ae,Qe),u=u+Math.imul(Ke,Pe)|0,b=Math.imul(Ke,Qe),m=m+Math.imul(qe,Re)|0,u=u+Math.imul(qe,Ye)|0,u=u+Math.imul(Xe,Re)|0,b=b+Math.imul(Xe,Ye)|0,m=m+Math.imul(Ie,Ne)|0,u=u+Math.imul(Ie,$e)|0,u=u+Math.imul(Ze,Ne)|0,b=b+Math.imul(Ze,$e)|0,m=m+Math.imul(Me,Se)|0,u=u+Math.imul(Me,et)|0,u=u+Math.imul(Ve,Se)|0,b=b+Math.imul(Ve,et)|0,m=m+Math.imul(Be,Le)|0,u=u+Math.imul(Be,tt)|0,u=u+Math.imul(ze,Le)|0,b=b+Math.imul(ze,tt)|0,m=m+Math.imul(we,De)|0,u=u+Math.imul(we,rt)|0,u=u+Math.imul(Oe,De)|0,b=b+Math.imul(Oe,rt)|0,m=m+Math.imul(fe,ke)|0,u=u+Math.imul(fe,Je)|0,u=u+Math.imul(be,ke)|0,b=b+Math.imul(be,Je)|0,m=m+Math.imul(ne,Ue)|0,u=u+Math.imul(ne,st)|0,u=u+Math.imul(pe,Ue)|0,b=b+Math.imul(pe,st)|0,m=m+Math.imul(W,We)|0,u=u+Math.imul(W,nt)|0,u=u+Math.imul(X,We)|0,b=b+Math.imul(X,nt)|0,m=m+Math.imul(S,je)|0,u=u+Math.imul(S,at)|0,u=u+Math.imul(B,je)|0,b=b+Math.imul(B,at)|0;var Qr=(C+m|0)+((u&8191)<<13)|0;C=(b+(u>>>13)|0)+(Qr>>>26)|0,Qr&=67108863,m=Math.imul(Ae,Re),u=Math.imul(Ae,Ye),u=u+Math.imul(Ke,Re)|0,b=Math.imul(Ke,Ye),m=m+Math.imul(qe,Ne)|0,u=u+Math.imul(qe,$e)|0,u=u+Math.imul(Xe,Ne)|0,b=b+Math.imul(Xe,$e)|0,m=m+Math.imul(Ie,Se)|0,u=u+Math.imul(Ie,et)|0,u=u+Math.imul(Ze,Se)|0,b=b+Math.imul(Ze,et)|0,m=m+Math.imul(Me,Le)|0,u=u+Math.imul(Me,tt)|0,u=u+Math.imul(Ve,Le)|0,b=b+Math.imul(Ve,tt)|0,m=m+Math.imul(Be,De)|0,u=u+Math.imul(Be,rt)|0,u=u+Math.imul(ze,De)|0,b=b+Math.imul(ze,rt)|0,m=m+Math.imul(we,ke)|0,u=u+Math.imul(we,Je)|0,u=u+Math.imul(Oe,ke)|0,b=b+Math.imul(Oe,Je)|0,m=m+Math.imul(fe,Ue)|0,u=u+Math.imul(fe,st)|0,u=u+Math.imul(be,Ue)|0,b=b+Math.imul(be,st)|0,m=m+Math.imul(ne,We)|0,u=u+Math.imul(ne,nt)|0,u=u+Math.imul(pe,We)|0,b=b+Math.imul(pe,nt)|0,m=m+Math.imul(W,je)|0,u=u+Math.imul(W,at)|0,u=u+Math.imul(X,je)|0,b=b+Math.imul(X,at)|0;var Vr=(C+m|0)+((u&8191)<<13)|0;C=(b+(u>>>13)|0)+(Vr>>>26)|0,Vr&=67108863,m=Math.imul(Ae,Ne),u=Math.imul(Ae,$e),u=u+Math.imul(Ke,Ne)|0,b=Math.imul(Ke,$e),m=m+Math.imul(qe,Se)|0,u=u+Math.imul(qe,et)|0,u=u+Math.imul(Xe,Se)|0,b=b+Math.imul(Xe,et)|0,m=m+Math.imul(Ie,Le)|0,u=u+Math.imul(Ie,tt)|0,u=u+Math.imul(Ze,Le)|0,b=b+Math.imul(Ze,tt)|0,m=m+Math.imul(Me,De)|0,u=u+Math.imul(Me,rt)|0,u=u+Math.imul(Ve,De)|0,b=b+Math.imul(Ve,rt)|0,m=m+Math.imul(Be,ke)|0,u=u+Math.imul(Be,Je)|0,u=u+Math.imul(ze,ke)|0,b=b+Math.imul(ze,Je)|0,m=m+Math.imul(we,Ue)|0,u=u+Math.imul(we,st)|0,u=u+Math.imul(Oe,Ue)|0,b=b+Math.imul(Oe,st)|0,m=m+Math.imul(fe,We)|0,u=u+Math.imul(fe,nt)|0,u=u+Math.imul(be,We)|0,b=b+Math.imul(be,nt)|0,m=m+Math.imul(ne,je)|0,u=u+Math.imul(ne,at)|0,u=u+Math.imul(pe,je)|0,b=b+Math.imul(pe,at)|0;var Br=(C+m|0)+((u&8191)<<13)|0;C=(b+(u>>>13)|0)+(Br>>>26)|0,Br&=67108863,m=Math.imul(Ae,Se),u=Math.imul(Ae,et),u=u+Math.imul(Ke,Se)|0,b=Math.imul(Ke,et),m=m+Math.imul(qe,Le)|0,u=u+Math.imul(qe,tt)|0,u=u+Math.imul(Xe,Le)|0,b=b+Math.imul(Xe,tt)|0,m=m+Math.imul(Ie,De)|0,u=u+Math.imul(Ie,rt)|0,u=u+Math.imul(Ze,De)|0,b=b+Math.imul(Ze,rt)|0,m=m+Math.imul(Me,ke)|0,u=u+Math.imul(Me,Je)|0,u=u+Math.imul(Ve,ke)|0,b=b+Math.imul(Ve,Je)|0,m=m+Math.imul(Be,Ue)|0,u=u+Math.imul(Be,st)|0,u=u+Math.imul(ze,Ue)|0,b=b+Math.imul(ze,st)|0,m=m+Math.imul(we,We)|0,u=u+Math.imul(we,nt)|0,u=u+Math.imul(Oe,We)|0,b=b+Math.imul(Oe,nt)|0,m=m+Math.imul(fe,je)|0,u=u+Math.imul(fe,at)|0,u=u+Math.imul(be,je)|0,b=b+Math.imul(be,at)|0;var Fr=(C+m|0)+((u&8191)<<13)|0;C=(b+(u>>>13)|0)+(Fr>>>26)|0,Fr&=67108863,m=Math.imul(Ae,Le),u=Math.imul(Ae,tt),u=u+Math.imul(Ke,Le)|0,b=Math.imul(Ke,tt),m=m+Math.imul(qe,De)|0,u=u+Math.imul(qe,rt)|0,u=u+Math.imul(Xe,De)|0,b=b+Math.imul(Xe,rt)|0,m=m+Math.imul(Ie,ke)|0,u=u+Math.imul(Ie,Je)|0,u=u+Math.imul(Ze,ke)|0,b=b+Math.imul(Ze,Je)|0,m=m+Math.imul(Me,Ue)|0,u=u+Math.imul(Me,st)|0,u=u+Math.imul(Ve,Ue)|0,b=b+Math.imul(Ve,st)|0,m=m+Math.imul(Be,We)|0,u=u+Math.imul(Be,nt)|0,u=u+Math.imul(ze,We)|0,b=b+Math.imul(ze,nt)|0,m=m+Math.imul(we,je)|0,u=u+Math.imul(we,at)|0,u=u+Math.imul(Oe,je)|0,b=b+Math.imul(Oe,at)|0;var hr=(C+m|0)+((u&8191)<<13)|0;C=(b+(u>>>13)|0)+(hr>>>26)|0,hr&=67108863,m=Math.imul(Ae,De),u=Math.imul(Ae,rt),u=u+Math.imul(Ke,De)|0,b=Math.imul(Ke,rt),m=m+Math.imul(qe,ke)|0,u=u+Math.imul(qe,Je)|0,u=u+Math.imul(Xe,ke)|0,b=b+Math.imul(Xe,Je)|0,m=m+Math.imul(Ie,Ue)|0,u=u+Math.imul(Ie,st)|0,u=u+Math.imul(Ze,Ue)|0,b=b+Math.imul(Ze,st)|0,m=m+Math.imul(Me,We)|0,u=u+Math.imul(Me,nt)|0,u=u+Math.imul(Ve,We)|0,b=b+Math.imul(Ve,nt)|0,m=m+Math.imul(Be,je)|0,u=u+Math.imul(Be,at)|0,u=u+Math.imul(ze,je)|0,b=b+Math.imul(ze,at)|0;var Gr=(C+m|0)+((u&8191)<<13)|0;C=(b+(u>>>13)|0)+(Gr>>>26)|0,Gr&=67108863,m=Math.imul(Ae,ke),u=Math.imul(Ae,Je),u=u+Math.imul(Ke,ke)|0,b=Math.imul(Ke,Je),m=m+Math.imul(qe,Ue)|0,u=u+Math.imul(qe,st)|0,u=u+Math.imul(Xe,Ue)|0,b=b+Math.imul(Xe,st)|0,m=m+Math.imul(Ie,We)|0,u=u+Math.imul(Ie,nt)|0,u=u+Math.imul(Ze,We)|0,b=b+Math.imul(Ze,nt)|0,m=m+Math.imul(Me,je)|0,u=u+Math.imul(Me,at)|0,u=u+Math.imul(Ve,je)|0,b=b+Math.imul(Ve,at)|0;var gr=(C+m|0)+((u&8191)<<13)|0;C=(b+(u>>>13)|0)+(gr>>>26)|0,gr&=67108863,m=Math.imul(Ae,Ue),u=Math.imul(Ae,st),u=u+Math.imul(Ke,Ue)|0,b=Math.imul(Ke,st),m=m+Math.imul(qe,We)|0,u=u+Math.imul(qe,nt)|0,u=u+Math.imul(Xe,We)|0,b=b+Math.imul(Xe,nt)|0,m=m+Math.imul(Ie,je)|0,u=u+Math.imul(Ie,at)|0,u=u+Math.imul(Ze,je)|0,b=b+Math.imul(Ze,at)|0;var Ur=(C+m|0)+((u&8191)<<13)|0;C=(b+(u>>>13)|0)+(Ur>>>26)|0,Ur&=67108863,m=Math.imul(Ae,We),u=Math.imul(Ae,nt),u=u+Math.imul(Ke,We)|0,b=Math.imul(Ke,nt),m=m+Math.imul(qe,je)|0,u=u+Math.imul(qe,at)|0,u=u+Math.imul(Xe,je)|0,b=b+Math.imul(Xe,at)|0;var tn=(C+m|0)+((u&8191)<<13)|0;C=(b+(u>>>13)|0)+(tn>>>26)|0,tn&=67108863,m=Math.imul(Ae,je),u=Math.imul(Ae,at),u=u+Math.imul(Ke,je)|0,b=Math.imul(Ke,at);var An=(C+m|0)+((u&8191)<<13)|0;return C=(b+(u>>>13)|0)+(An>>>26)|0,An&=67108863,_[0]=Lr,_[1]=Wt,_[2]=jt,_[3]=Er,_[4]=kr,_[5]=Sr,_[6]=Ar,_[7]=Mr,_[8]=Kr,_[9]=Qr,_[10]=Vr,_[11]=Br,_[12]=Fr,_[13]=hr,_[14]=Gr,_[15]=gr,_[16]=Ur,_[17]=tn,_[18]=An,C!==0&&(_[19]=C,y.length++),y};Math.imul||(A=k);function L(g,o,p){p.negative=o.negative^g.negative,p.length=g.length+o.length;for(var y=0,h=0,v=0;v>>26)|0,h+=_>>>26,_&=67108863}p.words[v]=C,y=_,_=h}return y!==0?p.words[v]=y:p.length--,p.strip()}function q(g,o,p){var y=new U;return y.mulp(g,o,p)}a.prototype.mulTo=function(o,p){var y,h=this.length+o.length;return this.length===10&&o.length===10?y=A(this,o,p):h<63?y=k(this,o,p):h<1024?y=L(this,o,p):y=q(this,o,p),y};function U(g,o){this.x=g,this.y=o}U.prototype.makeRBT=function(o){for(var p=new Array(o),y=a.prototype._countBits(o)-1,h=0;h>=1;return h},U.prototype.permute=function(o,p,y,h,v,_){for(var C=0;C<_;C++)h[C]=p[o[C]],v[C]=y[o[C]]},U.prototype.transform=function(o,p,y,h,v,_){this.permute(_,o,p,y,h,v);for(var C=1;C>>1)v++;return 1<>>13,y[2*_+1]=v&8191,v=v>>>13;for(_=2*p;_>=26,p+=h/67108864|0,p+=v>>>26,this.words[y]=v&67108863}return p!==0&&(this.words[y]=p,this.length++),this},a.prototype.muln=function(o){return this.clone().imuln(o)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(o){var p=E(o);if(p.length===0)return new a(1);for(var y=this,h=0;h=0);var p=o%26,y=(o-p)/26,h=67108863>>>26-p<<26-p,v;if(p!==0){var _=0;for(v=0;v>>26-p}_&&(this.words[v]=_,this.length++)}if(y!==0){for(v=this.length-1;v>=0;v--)this.words[v+y]=this.words[v];for(v=0;v=0);var h;p?h=(p-p%26)/26:h=0;var v=o%26,_=Math.min((o-v)/26,this.length),C=67108863^67108863>>>v<_)for(this.length-=_,u=0;u=0&&(b!==0||u>=h);u--){var R=this.words[u]|0;this.words[u]=b<<26-v|R>>>v,b=R&C}return m&&b!==0&&(m.words[m.length++]=b),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},a.prototype.ishrn=function(o,p,y){return t(this.negative===0),this.iushrn(o,p,y)},a.prototype.shln=function(o){return this.clone().ishln(o)},a.prototype.ushln=function(o){return this.clone().iushln(o)},a.prototype.shrn=function(o){return this.clone().ishrn(o)},a.prototype.ushrn=function(o){return this.clone().iushrn(o)},a.prototype.testn=function(o){t(typeof o=="number"&&o>=0);var p=o%26,y=(o-p)/26,h=1<=0);var p=o%26,y=(o-p)/26;if(t(this.negative===0,"imaskn works only with positive numbers"),this.length<=y)return this;if(p!==0&&y++,this.length=Math.min(y,this.length),p!==0){var h=67108863^67108863>>>p<=67108864;p++)this.words[p]-=67108864,p===this.length-1?this.words[p+1]=1:this.words[p+1]++;return this.length=Math.max(this.length,p+1),this},a.prototype.isubn=function(o){if(t(typeof o=="number"),t(o<67108864),o<0)return this.iaddn(-o);if(this.negative!==0)return this.negative=0,this.iaddn(o),this.negative=1,this;if(this.words[0]-=o,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var p=0;p>26)-(m/67108864|0),this.words[v+y]=_&67108863}for(;v>26,this.words[v+y]=_&67108863;if(C===0)return this.strip();for(t(C===-1),C=0,v=0;v>26,this.words[v]=_&67108863;return this.negative=1,this.strip()},a.prototype._wordDiv=function(o,p){var y=this.length-o.length,h=this.clone(),v=o,_=v.words[v.length-1]|0,C=this._countBits(_);y=26-C,y!==0&&(v=v.ushln(y),h.iushln(y),_=v.words[v.length-1]|0);var m=h.length-v.length,u;if(p!=="mod"){u=new a(null),u.length=m+1,u.words=new Array(u.length);for(var b=0;b=0;S--){var B=(h.words[v.length+S]|0)*67108864+(h.words[v.length+S-1]|0);for(B=Math.min(B/_|0,67108863),h._ishlnsubmul(v,B,S);h.negative!==0;)B--,h.negative=0,h._ishlnsubmul(v,1,S),h.isZero()||(h.negative^=1);u&&(u.words[S]=B)}return u&&u.strip(),h.strip(),p!=="div"&&y!==0&&h.iushrn(y),{div:u||null,mod:h}},a.prototype.divmod=function(o,p,y){if(t(!o.isZero()),this.isZero())return{div:new a(0),mod:new a(0)};var h,v,_;return this.negative!==0&&o.negative===0?(_=this.neg().divmod(o,p),p!=="mod"&&(h=_.div.neg()),p!=="div"&&(v=_.mod.neg(),y&&v.negative!==0&&v.iadd(o)),{div:h,mod:v}):this.negative===0&&o.negative!==0?(_=this.divmod(o.neg(),p),p!=="mod"&&(h=_.div.neg()),{div:h,mod:_.mod}):(this.negative&o.negative)!==0?(_=this.neg().divmod(o.neg(),p),p!=="div"&&(v=_.mod.neg(),y&&v.negative!==0&&v.isub(o)),{div:_.div,mod:v}):o.length>this.length||this.cmp(o)<0?{div:new a(0),mod:this}:o.length===1?p==="div"?{div:this.divn(o.words[0]),mod:null}:p==="mod"?{div:null,mod:new a(this.modn(o.words[0]))}:{div:this.divn(o.words[0]),mod:new a(this.modn(o.words[0]))}:this._wordDiv(o,p)},a.prototype.div=function(o){return this.divmod(o,"div",!1).div},a.prototype.mod=function(o){return this.divmod(o,"mod",!1).mod},a.prototype.umod=function(o){return this.divmod(o,"mod",!0).mod},a.prototype.divRound=function(o){var p=this.divmod(o);if(p.mod.isZero())return p.div;var y=p.div.negative!==0?p.mod.isub(o):p.mod,h=o.ushrn(1),v=o.andln(1),_=y.cmp(h);return _<0||v===1&&_===0?p.div:p.div.negative!==0?p.div.isubn(1):p.div.iaddn(1)},a.prototype.modn=function(o){t(o<=67108863);for(var p=(1<<26)%o,y=0,h=this.length-1;h>=0;h--)y=(p*y+(this.words[h]|0))%o;return y},a.prototype.idivn=function(o){t(o<=67108863);for(var p=0,y=this.length-1;y>=0;y--){var h=(this.words[y]|0)+p*67108864;this.words[y]=h/o|0,p=h%o}return this.strip()},a.prototype.divn=function(o){return this.clone().idivn(o)},a.prototype.egcd=function(o){t(o.negative===0),t(!o.isZero());var p=this,y=o.clone();p.negative!==0?p=p.umod(o):p=p.clone();for(var h=new a(1),v=new a(0),_=new a(0),C=new a(1),m=0;p.isEven()&&y.isEven();)p.iushrn(1),y.iushrn(1),++m;for(var u=y.clone(),b=p.clone();!p.isZero();){for(var R=0,S=1;(p.words[0]&S)===0&&R<26;++R,S<<=1);if(R>0)for(p.iushrn(R);R-- >0;)(h.isOdd()||v.isOdd())&&(h.iadd(u),v.isub(b)),h.iushrn(1),v.iushrn(1);for(var B=0,Z=1;(y.words[0]&Z)===0&&B<26;++B,Z<<=1);if(B>0)for(y.iushrn(B);B-- >0;)(_.isOdd()||C.isOdd())&&(_.iadd(u),C.isub(b)),_.iushrn(1),C.iushrn(1);p.cmp(y)>=0?(p.isub(y),h.isub(_),v.isub(C)):(y.isub(p),_.isub(h),C.isub(v))}return{a:_,b:C,gcd:y.iushln(m)}},a.prototype._invmp=function(o){t(o.negative===0),t(!o.isZero());var p=this,y=o.clone();p.negative!==0?p=p.umod(o):p=p.clone();for(var h=new a(1),v=new a(0),_=y.clone();p.cmpn(1)>0&&y.cmpn(1)>0;){for(var C=0,m=1;(p.words[0]&m)===0&&C<26;++C,m<<=1);if(C>0)for(p.iushrn(C);C-- >0;)h.isOdd()&&h.iadd(_),h.iushrn(1);for(var u=0,b=1;(y.words[0]&b)===0&&u<26;++u,b<<=1);if(u>0)for(y.iushrn(u);u-- >0;)v.isOdd()&&v.iadd(_),v.iushrn(1);p.cmp(y)>=0?(p.isub(y),h.isub(v)):(y.isub(p),v.isub(h))}var R;return p.cmpn(1)===0?R=h:R=v,R.cmpn(0)<0&&R.iadd(o),R},a.prototype.gcd=function(o){if(this.isZero())return o.abs();if(o.isZero())return this.abs();var p=this.clone(),y=o.clone();p.negative=0,y.negative=0;for(var h=0;p.isEven()&&y.isEven();h++)p.iushrn(1),y.iushrn(1);do{for(;p.isEven();)p.iushrn(1);for(;y.isEven();)y.iushrn(1);var v=p.cmp(y);if(v<0){var _=p;p=y,y=_}else if(v===0||y.cmpn(1)===0)break;p.isub(y)}while(!0);return y.iushln(h)},a.prototype.invm=function(o){return this.egcd(o).a.umod(o)},a.prototype.isEven=function(){return(this.words[0]&1)===0},a.prototype.isOdd=function(){return(this.words[0]&1)===1},a.prototype.andln=function(o){return this.words[0]&o},a.prototype.bincn=function(o){t(typeof o=="number");var p=o%26,y=(o-p)/26,h=1<>>26,C&=67108863,this.words[_]=C}return v!==0&&(this.words[_]=v,this.length++),this},a.prototype.isZero=function(){return this.length===1&&this.words[0]===0},a.prototype.cmpn=function(o){var p=o<0;if(this.negative!==0&&!p)return-1;if(this.negative===0&&p)return 1;this.strip();var y;if(this.length>1)y=1;else{p&&(o=-o),t(o<=67108863,"Number is too big");var h=this.words[0]|0;y=h===o?0:ho.length)return 1;if(this.length=0;y--){var h=this.words[y]|0,v=o.words[y]|0;if(h!==v){hv&&(p=1);break}}return p},a.prototype.gtn=function(o){return this.cmpn(o)===1},a.prototype.gt=function(o){return this.cmp(o)===1},a.prototype.gten=function(o){return this.cmpn(o)>=0},a.prototype.gte=function(o){return this.cmp(o)>=0},a.prototype.ltn=function(o){return this.cmpn(o)===-1},a.prototype.lt=function(o){return this.cmp(o)===-1},a.prototype.lten=function(o){return this.cmpn(o)<=0},a.prototype.lte=function(o){return this.cmp(o)<=0},a.prototype.eqn=function(o){return this.cmpn(o)===0},a.prototype.eq=function(o){return this.cmp(o)===0},a.red=function(o){return new J(o)},a.prototype.toRed=function(o){return t(!this.red,"Already a number in reduction context"),t(this.negative===0,"red works only with positives"),o.convertTo(this)._forceRed(o)},a.prototype.fromRed=function(){return t(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(o){return this.red=o,this},a.prototype.forceRed=function(o){return t(!this.red,"Already a number in reduction context"),this._forceRed(o)},a.prototype.redAdd=function(o){return t(this.red,"redAdd works only with red numbers"),this.red.add(this,o)},a.prototype.redIAdd=function(o){return t(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,o)},a.prototype.redSub=function(o){return t(this.red,"redSub works only with red numbers"),this.red.sub(this,o)},a.prototype.redISub=function(o){return t(this.red,"redISub works only with red numbers"),this.red.isub(this,o)},a.prototype.redShl=function(o){return t(this.red,"redShl works only with red numbers"),this.red.shl(this,o)},a.prototype.redMul=function(o){return t(this.red,"redMul works only with red numbers"),this.red._verify2(this,o),this.red.mul(this,o)},a.prototype.redIMul=function(o){return t(this.red,"redMul works only with red numbers"),this.red._verify2(this,o),this.red.imul(this,o)},a.prototype.redSqr=function(){return t(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return t(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return t(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return t(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return t(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(o){return t(this.red&&!o.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,o)};var j={k256:null,p224:null,p192:null,p25519:null};function H(g,o){this.name=g,this.p=new a(o,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}H.prototype._tmp=function(){var o=new a(null);return o.words=new Array(Math.ceil(this.n/13)),o},H.prototype.ireduce=function(o){var p=o,y;do this.split(p,this.tmp),p=this.imulK(p),p=p.iadd(this.tmp),y=p.bitLength();while(y>this.n);var h=y0?p.isub(this.p):p.strip!==void 0?p.strip():p._strip(),p},H.prototype.split=function(o,p){o.iushrn(this.n,0,p)},H.prototype.imulK=function(o){return o.imul(this.k)};function G(){H.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}n(G,H),G.prototype.split=function(o,p){for(var y=4194303,h=Math.min(o.length,9),v=0;v>>22,_=C}_>>>=22,o.words[v-10]=_,_===0&&o.length>10?o.length-=10:o.length-=9},G.prototype.imulK=function(o){o.words[o.length]=0,o.words[o.length+1]=0,o.length+=2;for(var p=0,y=0;y>>=26,o.words[y]=v,p=h}return p!==0&&(o.words[o.length++]=p),o},a._prime=function(o){if(j[o])return j[o];var p;if(o==="k256")p=new G;else if(o==="p224")p=new te;else if(o==="p192")p=new K;else if(o==="p25519")p=new ae;else throw new Error("Unknown prime "+o);return j[o]=p,p};function J(g){if(typeof g=="string"){var o=a._prime(g);this.m=o.p,this.prime=o}else t(g.gtn(1),"modulus must be greater than 1"),this.m=g,this.prime=null}J.prototype._verify1=function(o){t(o.negative===0,"red works only with positives"),t(o.red,"red works only with red numbers")},J.prototype._verify2=function(o,p){t((o.negative|p.negative)===0,"red works only with positives"),t(o.red&&o.red===p.red,"red works only with red numbers")},J.prototype.imod=function(o){return this.prime?this.prime.ireduce(o)._forceRed(this):o.umod(this.m)._forceRed(this)},J.prototype.neg=function(o){return o.isZero()?o.clone():this.m.sub(o)._forceRed(this)},J.prototype.add=function(o,p){this._verify2(o,p);var y=o.add(p);return y.cmp(this.m)>=0&&y.isub(this.m),y._forceRed(this)},J.prototype.iadd=function(o,p){this._verify2(o,p);var y=o.iadd(p);return y.cmp(this.m)>=0&&y.isub(this.m),y},J.prototype.sub=function(o,p){this._verify2(o,p);var y=o.sub(p);return y.cmpn(0)<0&&y.iadd(this.m),y._forceRed(this)},J.prototype.isub=function(o,p){this._verify2(o,p);var y=o.isub(p);return y.cmpn(0)<0&&y.iadd(this.m),y},J.prototype.shl=function(o,p){return this._verify1(o),this.imod(o.ushln(p))},J.prototype.imul=function(o,p){return this._verify2(o,p),this.imod(o.imul(p))},J.prototype.mul=function(o,p){return this._verify2(o,p),this.imod(o.mul(p))},J.prototype.isqr=function(o){return this.imul(o,o.clone())},J.prototype.sqr=function(o){return this.mul(o,o)},J.prototype.sqrt=function(o){if(o.isZero())return o.clone();var p=this.m.andln(3);if(t(p%2===1),p===3){var y=this.m.add(new a(1)).iushrn(2);return this.pow(o,y)}for(var h=this.m.subn(1),v=0;!h.isZero()&&h.andln(1)===0;)v++,h.iushrn(1);t(!h.isZero());var _=new a(1).toRed(this),C=_.redNeg(),m=this.m.subn(1).iushrn(1),u=this.m.bitLength();for(u=new a(2*u*u).toRed(this);this.pow(u,m).cmp(C)!==0;)u.redIAdd(C);for(var b=this.pow(u,h),R=this.pow(o,h.addn(1).iushrn(1)),S=this.pow(o,h),B=v;S.cmp(_)!==0;){for(var Z=S,W=0;Z.cmp(_)!==0;W++)Z=Z.redSqr();t(W=0;v--){for(var b=p.words[v],R=u-1;R>=0;R--){var S=b>>R&1;if(_!==h[0]&&(_=this.sqr(_)),S===0&&C===0){m=0;continue}C<<=1,C|=S,m++,!(m!==y&&(v!==0||R!==0))&&(_=this.mul(_,h[C]),m=0,C=0)}u=26}return _},J.prototype.convertTo=function(o){var p=o.umod(this.m);return p===o?p.clone():p},J.prototype.convertFrom=function(o){var p=o.clone();return p.red=null,p},a.mont=function(o){return new V(o)};function V(g){J.call(this,g),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new a(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}n(V,J),V.prototype.convertTo=function(o){return this.imod(o.ushln(this.shift))},V.prototype.convertFrom=function(o){var p=this.imod(o.mul(this.rinv));return p.red=null,p},V.prototype.imul=function(o,p){if(o.isZero()||p.isZero())return o.words[0]=0,o.length=1,o;var y=o.imul(p),h=y.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),v=y.isub(h).iushrn(this.shift),_=v;return v.cmp(this.m)>=0?_=v.isub(this.m):v.cmpn(0)<0&&(_=v.iadd(this.m)),_._forceRed(this)},V.prototype.mul=function(o,p){if(o.isZero()||p.isZero())return new a(0)._forceRed(this);var y=o.mul(p),h=y.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),v=y.isub(h).iushrn(this.shift),_=v;return v.cmp(this.m)>=0?_=v.isub(this.m):v.cmpn(0)<0&&(_=v.iadd(this.m)),_._forceRed(this)},V.prototype.invm=function(o){var p=this.imod(o._invmp(this.m).mul(this.r2));return p._forceRed(this)}})(typeof mU>"u"||mU,upe)});var dpe=O((lpe,gU)=>{x();T();(function(r,e){"use strict";function t(g,o){if(!g)throw new Error(o||"Assertion failed")}function n(g,o){g.super_=o;var p=function(){};p.prototype=o.prototype,g.prototype=new p,g.prototype.constructor=g}function a(g,o,p){if(a.isBN(g))return g;this.negative=0,this.words=null,this.length=0,this.red=null,g!==null&&((o==="le"||o==="be")&&(p=o,o=10),this._init(g||0,o||10,p||"be"))}typeof r=="object"?r.exports=a:e.BN=a,a.BN=a,a.wordSize=26;var i;try{typeof window<"u"&&typeof window.Buffer<"u"?i=window.Buffer:i=$i().Buffer}catch{}a.isBN=function(o){return o instanceof a?!0:o!==null&&typeof o=="object"&&o.constructor.wordSize===a.wordSize&&Array.isArray(o.words)},a.max=function(o,p){return o.cmp(p)>0?o:p},a.min=function(o,p){return o.cmp(p)<0?o:p},a.prototype._init=function(o,p,y){if(typeof o=="number")return this._initNumber(o,p,y);if(typeof o=="object")return this._initArray(o,p,y);p==="hex"&&(p=16),t(p===(p|0)&&p>=2&&p<=36),o=o.toString().replace(/\s+/g,"");var h=0;o[0]==="-"&&(h++,this.negative=1),h=0;h-=3)_=o[h]|o[h-1]<<8|o[h-2]<<16,this.words[v]|=_<>>26-C&67108863,C+=24,C>=26&&(C-=26,v++);else if(y==="le")for(h=0,v=0;h>>26-C&67108863,C+=24,C>=26&&(C-=26,v++);return this.strip()};function s(g,o){var p=g.charCodeAt(o);return p>=65&&p<=70?p-55:p>=97&&p<=102?p-87:p-48&15}function c(g,o,p){var y=s(g,p);return p-1>=o&&(y|=s(g,p-1)<<4),y}a.prototype._parseHex=function(o,p,y){this.length=Math.ceil((o.length-p)/6),this.words=new Array(this.length);for(var h=0;h=p;h-=2)C=c(o,p,h)<=18?(v-=18,_+=1,this.words[_]|=C>>>26):v+=8;else{var m=o.length-p;for(h=m%2===0?p+1:p;h=18?(v-=18,_+=1,this.words[_]|=C>>>26):v+=8}this.strip()};function l(g,o,p,y){for(var h=0,v=Math.min(g.length,p),_=o;_=49?h+=C-49+10:C>=17?h+=C-17+10:h+=C}return h}a.prototype._parseBase=function(o,p,y){this.words=[0],this.length=1;for(var h=0,v=1;v<=67108863;v*=p)h++;h--,v=v/p|0;for(var _=o.length-y,C=_%h,m=Math.min(_,_-C)+y,u=0,b=y;b1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},a.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},a.prototype.inspect=function(){return(this.red?""};var d=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],f=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],w=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];a.prototype.toString=function(o,p){o=o||10,p=p|0||1;var y;if(o===16||o==="hex"){y="";for(var h=0,v=0,_=0;_>>24-h&16777215,v!==0||_!==this.length-1?y=d[6-m.length]+m+y:y=m+y,h+=2,h>=26&&(h-=26,_--)}for(v!==0&&(y=v.toString(16)+y);y.length%p!==0;)y="0"+y;return this.negative!==0&&(y="-"+y),y}if(o===(o|0)&&o>=2&&o<=36){var u=f[o],b=w[o];y="";var R=this.clone();for(R.negative=0;!R.isZero();){var S=R.modn(b).toString(o);R=R.idivn(b),R.isZero()?y=S+y:y=d[u-S.length]+S+y}for(this.isZero()&&(y="0"+y);y.length%p!==0;)y="0"+y;return this.negative!==0&&(y="-"+y),y}t(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var o=this.words[0];return this.length===2?o+=this.words[1]*67108864:this.length===3&&this.words[2]===1?o+=4503599627370496+this.words[1]*67108864:this.length>2&&t(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-o:o},a.prototype.toJSON=function(){return this.toString(16)},a.prototype.toBuffer=function(o,p){return t(typeof i<"u"),this.toArrayLike(i,o,p)},a.prototype.toArray=function(o,p){return this.toArrayLike(Array,o,p)},a.prototype.toArrayLike=function(o,p,y){var h=this.byteLength(),v=y||Math.max(1,h);t(h<=v,"byte array longer than desired length"),t(v>0,"Requested array length <= 0"),this.strip();var _=p==="le",C=new o(v),m,u,b=this.clone();if(_){for(u=0;!b.isZero();u++)m=b.andln(255),b.iushrn(8),C[u]=m;for(;u=4096&&(y+=13,p>>>=13),p>=64&&(y+=7,p>>>=7),p>=8&&(y+=4,p>>>=4),p>=2&&(y+=2,p>>>=2),y+p},a.prototype._zeroBits=function(o){if(o===0)return 26;var p=o,y=0;return(p&8191)===0&&(y+=13,p>>>=13),(p&127)===0&&(y+=7,p>>>=7),(p&15)===0&&(y+=4,p>>>=4),(p&3)===0&&(y+=2,p>>>=2),(p&1)===0&&y++,y},a.prototype.bitLength=function(){var o=this.words[this.length-1],p=this._countBits(o);return(this.length-1)*26+p};function E(g){for(var o=new Array(g.bitLength()),p=0;p>>h}return o}a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var o=0,p=0;po.length?this.clone().ior(o):o.clone().ior(this)},a.prototype.uor=function(o){return this.length>o.length?this.clone().iuor(o):o.clone().iuor(this)},a.prototype.iuand=function(o){var p;this.length>o.length?p=o:p=this;for(var y=0;yo.length?this.clone().iand(o):o.clone().iand(this)},a.prototype.uand=function(o){return this.length>o.length?this.clone().iuand(o):o.clone().iuand(this)},a.prototype.iuxor=function(o){var p,y;this.length>o.length?(p=this,y=o):(p=o,y=this);for(var h=0;ho.length?this.clone().ixor(o):o.clone().ixor(this)},a.prototype.uxor=function(o){return this.length>o.length?this.clone().iuxor(o):o.clone().iuxor(this)},a.prototype.inotn=function(o){t(typeof o=="number"&&o>=0);var p=Math.ceil(o/26)|0,y=o%26;this._expand(p),y>0&&p--;for(var h=0;h0&&(this.words[h]=~this.words[h]&67108863>>26-y),this.strip()},a.prototype.notn=function(o){return this.clone().inotn(o)},a.prototype.setn=function(o,p){t(typeof o=="number"&&o>=0);var y=o/26|0,h=o%26;return this._expand(y+1),p?this.words[y]=this.words[y]|1<o.length?(y=this,h=o):(y=o,h=this);for(var v=0,_=0;_>>26;for(;v!==0&&_>>26;if(this.length=y.length,v!==0)this.words[this.length]=v,this.length++;else if(y!==this)for(;_o.length?this.clone().iadd(o):o.clone().iadd(this)},a.prototype.isub=function(o){if(o.negative!==0){o.negative=0;var p=this.iadd(o);return o.negative=1,p._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(o),this.negative=1,this._normSign();var y=this.cmp(o);if(y===0)return this.negative=0,this.length=1,this.words[0]=0,this;var h,v;y>0?(h=this,v=o):(h=o,v=this);for(var _=0,C=0;C>26,this.words[C]=p&67108863;for(;_!==0&&C>26,this.words[C]=p&67108863;if(_===0&&C>>26,R=m&67108863,S=Math.min(u,o.length-1),B=Math.max(0,u-g.length+1);B<=S;B++){var Z=u-B|0;h=g.words[Z]|0,v=o.words[B]|0,_=h*v+R,b+=_/67108864|0,R=_&67108863}p.words[u]=R|0,m=b|0}return m!==0?p.words[u]=m|0:p.length--,p.strip()}var A=function(o,p,y){var h=o.words,v=p.words,_=y.words,C=0,m,u,b,R=h[0]|0,S=R&8191,B=R>>>13,Z=h[1]|0,W=Z&8191,X=Z>>>13,de=h[2]|0,ne=de&8191,pe=de>>>13,pt=h[3]|0,fe=pt&8191,be=pt>>>13,Tt=h[4]|0,we=Tt&8191,Oe=Tt>>>13,Pt=h[5]|0,Be=Pt&8191,ze=Pt>>>13,At=h[6]|0,Me=At&8191,Ve=At>>>13,St=h[7]|0,Ie=St&8191,Ze=St>>>13,Ut=h[8]|0,qe=Ut&8191,Xe=Ut>>>13,Ht=h[9]|0,Ae=Ht&8191,Ke=Ht>>>13,Gt=v[0]|0,Pe=Gt&8191,Qe=Gt>>>13,Zt=v[1]|0,Re=Zt&8191,Ye=Zt>>>13,Jt=v[2]|0,Ne=Jt&8191,$e=Jt>>>13,Vt=v[3]|0,Se=Vt&8191,et=Vt>>>13,Rt=v[4]|0,Le=Rt&8191,tt=Rt>>>13,Kt=v[5]|0,De=Kt&8191,rt=Kt>>>13,Qt=v[6]|0,ke=Qt&8191,Je=Qt>>>13,Xt=v[7]|0,Ue=Xt&8191,st=Xt>>>13,rr=v[8]|0,We=rr&8191,nt=rr>>>13,ir=v[9]|0,je=ir&8191,at=ir>>>13;y.negative=o.negative^p.negative,y.length=19,m=Math.imul(S,Pe),u=Math.imul(S,Qe),u=u+Math.imul(B,Pe)|0,b=Math.imul(B,Qe);var Lr=(C+m|0)+((u&8191)<<13)|0;C=(b+(u>>>13)|0)+(Lr>>>26)|0,Lr&=67108863,m=Math.imul(W,Pe),u=Math.imul(W,Qe),u=u+Math.imul(X,Pe)|0,b=Math.imul(X,Qe),m=m+Math.imul(S,Re)|0,u=u+Math.imul(S,Ye)|0,u=u+Math.imul(B,Re)|0,b=b+Math.imul(B,Ye)|0;var Wt=(C+m|0)+((u&8191)<<13)|0;C=(b+(u>>>13)|0)+(Wt>>>26)|0,Wt&=67108863,m=Math.imul(ne,Pe),u=Math.imul(ne,Qe),u=u+Math.imul(pe,Pe)|0,b=Math.imul(pe,Qe),m=m+Math.imul(W,Re)|0,u=u+Math.imul(W,Ye)|0,u=u+Math.imul(X,Re)|0,b=b+Math.imul(X,Ye)|0,m=m+Math.imul(S,Ne)|0,u=u+Math.imul(S,$e)|0,u=u+Math.imul(B,Ne)|0,b=b+Math.imul(B,$e)|0;var jt=(C+m|0)+((u&8191)<<13)|0;C=(b+(u>>>13)|0)+(jt>>>26)|0,jt&=67108863,m=Math.imul(fe,Pe),u=Math.imul(fe,Qe),u=u+Math.imul(be,Pe)|0,b=Math.imul(be,Qe),m=m+Math.imul(ne,Re)|0,u=u+Math.imul(ne,Ye)|0,u=u+Math.imul(pe,Re)|0,b=b+Math.imul(pe,Ye)|0,m=m+Math.imul(W,Ne)|0,u=u+Math.imul(W,$e)|0,u=u+Math.imul(X,Ne)|0,b=b+Math.imul(X,$e)|0,m=m+Math.imul(S,Se)|0,u=u+Math.imul(S,et)|0,u=u+Math.imul(B,Se)|0,b=b+Math.imul(B,et)|0;var Er=(C+m|0)+((u&8191)<<13)|0;C=(b+(u>>>13)|0)+(Er>>>26)|0,Er&=67108863,m=Math.imul(we,Pe),u=Math.imul(we,Qe),u=u+Math.imul(Oe,Pe)|0,b=Math.imul(Oe,Qe),m=m+Math.imul(fe,Re)|0,u=u+Math.imul(fe,Ye)|0,u=u+Math.imul(be,Re)|0,b=b+Math.imul(be,Ye)|0,m=m+Math.imul(ne,Ne)|0,u=u+Math.imul(ne,$e)|0,u=u+Math.imul(pe,Ne)|0,b=b+Math.imul(pe,$e)|0,m=m+Math.imul(W,Se)|0,u=u+Math.imul(W,et)|0,u=u+Math.imul(X,Se)|0,b=b+Math.imul(X,et)|0,m=m+Math.imul(S,Le)|0,u=u+Math.imul(S,tt)|0,u=u+Math.imul(B,Le)|0,b=b+Math.imul(B,tt)|0;var kr=(C+m|0)+((u&8191)<<13)|0;C=(b+(u>>>13)|0)+(kr>>>26)|0,kr&=67108863,m=Math.imul(Be,Pe),u=Math.imul(Be,Qe),u=u+Math.imul(ze,Pe)|0,b=Math.imul(ze,Qe),m=m+Math.imul(we,Re)|0,u=u+Math.imul(we,Ye)|0,u=u+Math.imul(Oe,Re)|0,b=b+Math.imul(Oe,Ye)|0,m=m+Math.imul(fe,Ne)|0,u=u+Math.imul(fe,$e)|0,u=u+Math.imul(be,Ne)|0,b=b+Math.imul(be,$e)|0,m=m+Math.imul(ne,Se)|0,u=u+Math.imul(ne,et)|0,u=u+Math.imul(pe,Se)|0,b=b+Math.imul(pe,et)|0,m=m+Math.imul(W,Le)|0,u=u+Math.imul(W,tt)|0,u=u+Math.imul(X,Le)|0,b=b+Math.imul(X,tt)|0,m=m+Math.imul(S,De)|0,u=u+Math.imul(S,rt)|0,u=u+Math.imul(B,De)|0,b=b+Math.imul(B,rt)|0;var Sr=(C+m|0)+((u&8191)<<13)|0;C=(b+(u>>>13)|0)+(Sr>>>26)|0,Sr&=67108863,m=Math.imul(Me,Pe),u=Math.imul(Me,Qe),u=u+Math.imul(Ve,Pe)|0,b=Math.imul(Ve,Qe),m=m+Math.imul(Be,Re)|0,u=u+Math.imul(Be,Ye)|0,u=u+Math.imul(ze,Re)|0,b=b+Math.imul(ze,Ye)|0,m=m+Math.imul(we,Ne)|0,u=u+Math.imul(we,$e)|0,u=u+Math.imul(Oe,Ne)|0,b=b+Math.imul(Oe,$e)|0,m=m+Math.imul(fe,Se)|0,u=u+Math.imul(fe,et)|0,u=u+Math.imul(be,Se)|0,b=b+Math.imul(be,et)|0,m=m+Math.imul(ne,Le)|0,u=u+Math.imul(ne,tt)|0,u=u+Math.imul(pe,Le)|0,b=b+Math.imul(pe,tt)|0,m=m+Math.imul(W,De)|0,u=u+Math.imul(W,rt)|0,u=u+Math.imul(X,De)|0,b=b+Math.imul(X,rt)|0,m=m+Math.imul(S,ke)|0,u=u+Math.imul(S,Je)|0,u=u+Math.imul(B,ke)|0,b=b+Math.imul(B,Je)|0;var Ar=(C+m|0)+((u&8191)<<13)|0;C=(b+(u>>>13)|0)+(Ar>>>26)|0,Ar&=67108863,m=Math.imul(Ie,Pe),u=Math.imul(Ie,Qe),u=u+Math.imul(Ze,Pe)|0,b=Math.imul(Ze,Qe),m=m+Math.imul(Me,Re)|0,u=u+Math.imul(Me,Ye)|0,u=u+Math.imul(Ve,Re)|0,b=b+Math.imul(Ve,Ye)|0,m=m+Math.imul(Be,Ne)|0,u=u+Math.imul(Be,$e)|0,u=u+Math.imul(ze,Ne)|0,b=b+Math.imul(ze,$e)|0,m=m+Math.imul(we,Se)|0,u=u+Math.imul(we,et)|0,u=u+Math.imul(Oe,Se)|0,b=b+Math.imul(Oe,et)|0,m=m+Math.imul(fe,Le)|0,u=u+Math.imul(fe,tt)|0,u=u+Math.imul(be,Le)|0,b=b+Math.imul(be,tt)|0,m=m+Math.imul(ne,De)|0,u=u+Math.imul(ne,rt)|0,u=u+Math.imul(pe,De)|0,b=b+Math.imul(pe,rt)|0,m=m+Math.imul(W,ke)|0,u=u+Math.imul(W,Je)|0,u=u+Math.imul(X,ke)|0,b=b+Math.imul(X,Je)|0,m=m+Math.imul(S,Ue)|0,u=u+Math.imul(S,st)|0,u=u+Math.imul(B,Ue)|0,b=b+Math.imul(B,st)|0;var Mr=(C+m|0)+((u&8191)<<13)|0;C=(b+(u>>>13)|0)+(Mr>>>26)|0,Mr&=67108863,m=Math.imul(qe,Pe),u=Math.imul(qe,Qe),u=u+Math.imul(Xe,Pe)|0,b=Math.imul(Xe,Qe),m=m+Math.imul(Ie,Re)|0,u=u+Math.imul(Ie,Ye)|0,u=u+Math.imul(Ze,Re)|0,b=b+Math.imul(Ze,Ye)|0,m=m+Math.imul(Me,Ne)|0,u=u+Math.imul(Me,$e)|0,u=u+Math.imul(Ve,Ne)|0,b=b+Math.imul(Ve,$e)|0,m=m+Math.imul(Be,Se)|0,u=u+Math.imul(Be,et)|0,u=u+Math.imul(ze,Se)|0,b=b+Math.imul(ze,et)|0,m=m+Math.imul(we,Le)|0,u=u+Math.imul(we,tt)|0,u=u+Math.imul(Oe,Le)|0,b=b+Math.imul(Oe,tt)|0,m=m+Math.imul(fe,De)|0,u=u+Math.imul(fe,rt)|0,u=u+Math.imul(be,De)|0,b=b+Math.imul(be,rt)|0,m=m+Math.imul(ne,ke)|0,u=u+Math.imul(ne,Je)|0,u=u+Math.imul(pe,ke)|0,b=b+Math.imul(pe,Je)|0,m=m+Math.imul(W,Ue)|0,u=u+Math.imul(W,st)|0,u=u+Math.imul(X,Ue)|0,b=b+Math.imul(X,st)|0,m=m+Math.imul(S,We)|0,u=u+Math.imul(S,nt)|0,u=u+Math.imul(B,We)|0,b=b+Math.imul(B,nt)|0;var Kr=(C+m|0)+((u&8191)<<13)|0;C=(b+(u>>>13)|0)+(Kr>>>26)|0,Kr&=67108863,m=Math.imul(Ae,Pe),u=Math.imul(Ae,Qe),u=u+Math.imul(Ke,Pe)|0,b=Math.imul(Ke,Qe),m=m+Math.imul(qe,Re)|0,u=u+Math.imul(qe,Ye)|0,u=u+Math.imul(Xe,Re)|0,b=b+Math.imul(Xe,Ye)|0,m=m+Math.imul(Ie,Ne)|0,u=u+Math.imul(Ie,$e)|0,u=u+Math.imul(Ze,Ne)|0,b=b+Math.imul(Ze,$e)|0,m=m+Math.imul(Me,Se)|0,u=u+Math.imul(Me,et)|0,u=u+Math.imul(Ve,Se)|0,b=b+Math.imul(Ve,et)|0,m=m+Math.imul(Be,Le)|0,u=u+Math.imul(Be,tt)|0,u=u+Math.imul(ze,Le)|0,b=b+Math.imul(ze,tt)|0,m=m+Math.imul(we,De)|0,u=u+Math.imul(we,rt)|0,u=u+Math.imul(Oe,De)|0,b=b+Math.imul(Oe,rt)|0,m=m+Math.imul(fe,ke)|0,u=u+Math.imul(fe,Je)|0,u=u+Math.imul(be,ke)|0,b=b+Math.imul(be,Je)|0,m=m+Math.imul(ne,Ue)|0,u=u+Math.imul(ne,st)|0,u=u+Math.imul(pe,Ue)|0,b=b+Math.imul(pe,st)|0,m=m+Math.imul(W,We)|0,u=u+Math.imul(W,nt)|0,u=u+Math.imul(X,We)|0,b=b+Math.imul(X,nt)|0,m=m+Math.imul(S,je)|0,u=u+Math.imul(S,at)|0,u=u+Math.imul(B,je)|0,b=b+Math.imul(B,at)|0;var Qr=(C+m|0)+((u&8191)<<13)|0;C=(b+(u>>>13)|0)+(Qr>>>26)|0,Qr&=67108863,m=Math.imul(Ae,Re),u=Math.imul(Ae,Ye),u=u+Math.imul(Ke,Re)|0,b=Math.imul(Ke,Ye),m=m+Math.imul(qe,Ne)|0,u=u+Math.imul(qe,$e)|0,u=u+Math.imul(Xe,Ne)|0,b=b+Math.imul(Xe,$e)|0,m=m+Math.imul(Ie,Se)|0,u=u+Math.imul(Ie,et)|0,u=u+Math.imul(Ze,Se)|0,b=b+Math.imul(Ze,et)|0,m=m+Math.imul(Me,Le)|0,u=u+Math.imul(Me,tt)|0,u=u+Math.imul(Ve,Le)|0,b=b+Math.imul(Ve,tt)|0,m=m+Math.imul(Be,De)|0,u=u+Math.imul(Be,rt)|0,u=u+Math.imul(ze,De)|0,b=b+Math.imul(ze,rt)|0,m=m+Math.imul(we,ke)|0,u=u+Math.imul(we,Je)|0,u=u+Math.imul(Oe,ke)|0,b=b+Math.imul(Oe,Je)|0,m=m+Math.imul(fe,Ue)|0,u=u+Math.imul(fe,st)|0,u=u+Math.imul(be,Ue)|0,b=b+Math.imul(be,st)|0,m=m+Math.imul(ne,We)|0,u=u+Math.imul(ne,nt)|0,u=u+Math.imul(pe,We)|0,b=b+Math.imul(pe,nt)|0,m=m+Math.imul(W,je)|0,u=u+Math.imul(W,at)|0,u=u+Math.imul(X,je)|0,b=b+Math.imul(X,at)|0;var Vr=(C+m|0)+((u&8191)<<13)|0;C=(b+(u>>>13)|0)+(Vr>>>26)|0,Vr&=67108863,m=Math.imul(Ae,Ne),u=Math.imul(Ae,$e),u=u+Math.imul(Ke,Ne)|0,b=Math.imul(Ke,$e),m=m+Math.imul(qe,Se)|0,u=u+Math.imul(qe,et)|0,u=u+Math.imul(Xe,Se)|0,b=b+Math.imul(Xe,et)|0,m=m+Math.imul(Ie,Le)|0,u=u+Math.imul(Ie,tt)|0,u=u+Math.imul(Ze,Le)|0,b=b+Math.imul(Ze,tt)|0,m=m+Math.imul(Me,De)|0,u=u+Math.imul(Me,rt)|0,u=u+Math.imul(Ve,De)|0,b=b+Math.imul(Ve,rt)|0,m=m+Math.imul(Be,ke)|0,u=u+Math.imul(Be,Je)|0,u=u+Math.imul(ze,ke)|0,b=b+Math.imul(ze,Je)|0,m=m+Math.imul(we,Ue)|0,u=u+Math.imul(we,st)|0,u=u+Math.imul(Oe,Ue)|0,b=b+Math.imul(Oe,st)|0,m=m+Math.imul(fe,We)|0,u=u+Math.imul(fe,nt)|0,u=u+Math.imul(be,We)|0,b=b+Math.imul(be,nt)|0,m=m+Math.imul(ne,je)|0,u=u+Math.imul(ne,at)|0,u=u+Math.imul(pe,je)|0,b=b+Math.imul(pe,at)|0;var Br=(C+m|0)+((u&8191)<<13)|0;C=(b+(u>>>13)|0)+(Br>>>26)|0,Br&=67108863,m=Math.imul(Ae,Se),u=Math.imul(Ae,et),u=u+Math.imul(Ke,Se)|0,b=Math.imul(Ke,et),m=m+Math.imul(qe,Le)|0,u=u+Math.imul(qe,tt)|0,u=u+Math.imul(Xe,Le)|0,b=b+Math.imul(Xe,tt)|0,m=m+Math.imul(Ie,De)|0,u=u+Math.imul(Ie,rt)|0,u=u+Math.imul(Ze,De)|0,b=b+Math.imul(Ze,rt)|0,m=m+Math.imul(Me,ke)|0,u=u+Math.imul(Me,Je)|0,u=u+Math.imul(Ve,ke)|0,b=b+Math.imul(Ve,Je)|0,m=m+Math.imul(Be,Ue)|0,u=u+Math.imul(Be,st)|0,u=u+Math.imul(ze,Ue)|0,b=b+Math.imul(ze,st)|0,m=m+Math.imul(we,We)|0,u=u+Math.imul(we,nt)|0,u=u+Math.imul(Oe,We)|0,b=b+Math.imul(Oe,nt)|0,m=m+Math.imul(fe,je)|0,u=u+Math.imul(fe,at)|0,u=u+Math.imul(be,je)|0,b=b+Math.imul(be,at)|0;var Fr=(C+m|0)+((u&8191)<<13)|0;C=(b+(u>>>13)|0)+(Fr>>>26)|0,Fr&=67108863,m=Math.imul(Ae,Le),u=Math.imul(Ae,tt),u=u+Math.imul(Ke,Le)|0,b=Math.imul(Ke,tt),m=m+Math.imul(qe,De)|0,u=u+Math.imul(qe,rt)|0,u=u+Math.imul(Xe,De)|0,b=b+Math.imul(Xe,rt)|0,m=m+Math.imul(Ie,ke)|0,u=u+Math.imul(Ie,Je)|0,u=u+Math.imul(Ze,ke)|0,b=b+Math.imul(Ze,Je)|0,m=m+Math.imul(Me,Ue)|0,u=u+Math.imul(Me,st)|0,u=u+Math.imul(Ve,Ue)|0,b=b+Math.imul(Ve,st)|0,m=m+Math.imul(Be,We)|0,u=u+Math.imul(Be,nt)|0,u=u+Math.imul(ze,We)|0,b=b+Math.imul(ze,nt)|0,m=m+Math.imul(we,je)|0,u=u+Math.imul(we,at)|0,u=u+Math.imul(Oe,je)|0,b=b+Math.imul(Oe,at)|0;var hr=(C+m|0)+((u&8191)<<13)|0;C=(b+(u>>>13)|0)+(hr>>>26)|0,hr&=67108863,m=Math.imul(Ae,De),u=Math.imul(Ae,rt),u=u+Math.imul(Ke,De)|0,b=Math.imul(Ke,rt),m=m+Math.imul(qe,ke)|0,u=u+Math.imul(qe,Je)|0,u=u+Math.imul(Xe,ke)|0,b=b+Math.imul(Xe,Je)|0,m=m+Math.imul(Ie,Ue)|0,u=u+Math.imul(Ie,st)|0,u=u+Math.imul(Ze,Ue)|0,b=b+Math.imul(Ze,st)|0,m=m+Math.imul(Me,We)|0,u=u+Math.imul(Me,nt)|0,u=u+Math.imul(Ve,We)|0,b=b+Math.imul(Ve,nt)|0,m=m+Math.imul(Be,je)|0,u=u+Math.imul(Be,at)|0,u=u+Math.imul(ze,je)|0,b=b+Math.imul(ze,at)|0;var Gr=(C+m|0)+((u&8191)<<13)|0;C=(b+(u>>>13)|0)+(Gr>>>26)|0,Gr&=67108863,m=Math.imul(Ae,ke),u=Math.imul(Ae,Je),u=u+Math.imul(Ke,ke)|0,b=Math.imul(Ke,Je),m=m+Math.imul(qe,Ue)|0,u=u+Math.imul(qe,st)|0,u=u+Math.imul(Xe,Ue)|0,b=b+Math.imul(Xe,st)|0,m=m+Math.imul(Ie,We)|0,u=u+Math.imul(Ie,nt)|0,u=u+Math.imul(Ze,We)|0,b=b+Math.imul(Ze,nt)|0,m=m+Math.imul(Me,je)|0,u=u+Math.imul(Me,at)|0,u=u+Math.imul(Ve,je)|0,b=b+Math.imul(Ve,at)|0;var gr=(C+m|0)+((u&8191)<<13)|0;C=(b+(u>>>13)|0)+(gr>>>26)|0,gr&=67108863,m=Math.imul(Ae,Ue),u=Math.imul(Ae,st),u=u+Math.imul(Ke,Ue)|0,b=Math.imul(Ke,st),m=m+Math.imul(qe,We)|0,u=u+Math.imul(qe,nt)|0,u=u+Math.imul(Xe,We)|0,b=b+Math.imul(Xe,nt)|0,m=m+Math.imul(Ie,je)|0,u=u+Math.imul(Ie,at)|0,u=u+Math.imul(Ze,je)|0,b=b+Math.imul(Ze,at)|0;var Ur=(C+m|0)+((u&8191)<<13)|0;C=(b+(u>>>13)|0)+(Ur>>>26)|0,Ur&=67108863,m=Math.imul(Ae,We),u=Math.imul(Ae,nt),u=u+Math.imul(Ke,We)|0,b=Math.imul(Ke,nt),m=m+Math.imul(qe,je)|0,u=u+Math.imul(qe,at)|0,u=u+Math.imul(Xe,je)|0,b=b+Math.imul(Xe,at)|0;var tn=(C+m|0)+((u&8191)<<13)|0;C=(b+(u>>>13)|0)+(tn>>>26)|0,tn&=67108863,m=Math.imul(Ae,je),u=Math.imul(Ae,at),u=u+Math.imul(Ke,je)|0,b=Math.imul(Ke,at);var An=(C+m|0)+((u&8191)<<13)|0;return C=(b+(u>>>13)|0)+(An>>>26)|0,An&=67108863,_[0]=Lr,_[1]=Wt,_[2]=jt,_[3]=Er,_[4]=kr,_[5]=Sr,_[6]=Ar,_[7]=Mr,_[8]=Kr,_[9]=Qr,_[10]=Vr,_[11]=Br,_[12]=Fr,_[13]=hr,_[14]=Gr,_[15]=gr,_[16]=Ur,_[17]=tn,_[18]=An,C!==0&&(_[19]=C,y.length++),y};Math.imul||(A=k);function L(g,o,p){p.negative=o.negative^g.negative,p.length=g.length+o.length;for(var y=0,h=0,v=0;v>>26)|0,h+=_>>>26,_&=67108863}p.words[v]=C,y=_,_=h}return y!==0?p.words[v]=y:p.length--,p.strip()}function q(g,o,p){var y=new U;return y.mulp(g,o,p)}a.prototype.mulTo=function(o,p){var y,h=this.length+o.length;return this.length===10&&o.length===10?y=A(this,o,p):h<63?y=k(this,o,p):h<1024?y=L(this,o,p):y=q(this,o,p),y};function U(g,o){this.x=g,this.y=o}U.prototype.makeRBT=function(o){for(var p=new Array(o),y=a.prototype._countBits(o)-1,h=0;h>=1;return h},U.prototype.permute=function(o,p,y,h,v,_){for(var C=0;C<_;C++)h[C]=p[o[C]],v[C]=y[o[C]]},U.prototype.transform=function(o,p,y,h,v,_){this.permute(_,o,p,y,h,v);for(var C=1;C>>1)v++;return 1<>>13,y[2*_+1]=v&8191,v=v>>>13;for(_=2*p;_>=26,p+=h/67108864|0,p+=v>>>26,this.words[y]=v&67108863}return p!==0&&(this.words[y]=p,this.length++),this},a.prototype.muln=function(o){return this.clone().imuln(o)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(o){var p=E(o);if(p.length===0)return new a(1);for(var y=this,h=0;h=0);var p=o%26,y=(o-p)/26,h=67108863>>>26-p<<26-p,v;if(p!==0){var _=0;for(v=0;v>>26-p}_&&(this.words[v]=_,this.length++)}if(y!==0){for(v=this.length-1;v>=0;v--)this.words[v+y]=this.words[v];for(v=0;v=0);var h;p?h=(p-p%26)/26:h=0;var v=o%26,_=Math.min((o-v)/26,this.length),C=67108863^67108863>>>v<_)for(this.length-=_,u=0;u=0&&(b!==0||u>=h);u--){var R=this.words[u]|0;this.words[u]=b<<26-v|R>>>v,b=R&C}return m&&b!==0&&(m.words[m.length++]=b),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},a.prototype.ishrn=function(o,p,y){return t(this.negative===0),this.iushrn(o,p,y)},a.prototype.shln=function(o){return this.clone().ishln(o)},a.prototype.ushln=function(o){return this.clone().iushln(o)},a.prototype.shrn=function(o){return this.clone().ishrn(o)},a.prototype.ushrn=function(o){return this.clone().iushrn(o)},a.prototype.testn=function(o){t(typeof o=="number"&&o>=0);var p=o%26,y=(o-p)/26,h=1<=0);var p=o%26,y=(o-p)/26;if(t(this.negative===0,"imaskn works only with positive numbers"),this.length<=y)return this;if(p!==0&&y++,this.length=Math.min(y,this.length),p!==0){var h=67108863^67108863>>>p<=67108864;p++)this.words[p]-=67108864,p===this.length-1?this.words[p+1]=1:this.words[p+1]++;return this.length=Math.max(this.length,p+1),this},a.prototype.isubn=function(o){if(t(typeof o=="number"),t(o<67108864),o<0)return this.iaddn(-o);if(this.negative!==0)return this.negative=0,this.iaddn(o),this.negative=1,this;if(this.words[0]-=o,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var p=0;p>26)-(m/67108864|0),this.words[v+y]=_&67108863}for(;v>26,this.words[v+y]=_&67108863;if(C===0)return this.strip();for(t(C===-1),C=0,v=0;v>26,this.words[v]=_&67108863;return this.negative=1,this.strip()},a.prototype._wordDiv=function(o,p){var y=this.length-o.length,h=this.clone(),v=o,_=v.words[v.length-1]|0,C=this._countBits(_);y=26-C,y!==0&&(v=v.ushln(y),h.iushln(y),_=v.words[v.length-1]|0);var m=h.length-v.length,u;if(p!=="mod"){u=new a(null),u.length=m+1,u.words=new Array(u.length);for(var b=0;b=0;S--){var B=(h.words[v.length+S]|0)*67108864+(h.words[v.length+S-1]|0);for(B=Math.min(B/_|0,67108863),h._ishlnsubmul(v,B,S);h.negative!==0;)B--,h.negative=0,h._ishlnsubmul(v,1,S),h.isZero()||(h.negative^=1);u&&(u.words[S]=B)}return u&&u.strip(),h.strip(),p!=="div"&&y!==0&&h.iushrn(y),{div:u||null,mod:h}},a.prototype.divmod=function(o,p,y){if(t(!o.isZero()),this.isZero())return{div:new a(0),mod:new a(0)};var h,v,_;return this.negative!==0&&o.negative===0?(_=this.neg().divmod(o,p),p!=="mod"&&(h=_.div.neg()),p!=="div"&&(v=_.mod.neg(),y&&v.negative!==0&&v.iadd(o)),{div:h,mod:v}):this.negative===0&&o.negative!==0?(_=this.divmod(o.neg(),p),p!=="mod"&&(h=_.div.neg()),{div:h,mod:_.mod}):(this.negative&o.negative)!==0?(_=this.neg().divmod(o.neg(),p),p!=="div"&&(v=_.mod.neg(),y&&v.negative!==0&&v.isub(o)),{div:_.div,mod:v}):o.length>this.length||this.cmp(o)<0?{div:new a(0),mod:this}:o.length===1?p==="div"?{div:this.divn(o.words[0]),mod:null}:p==="mod"?{div:null,mod:new a(this.modn(o.words[0]))}:{div:this.divn(o.words[0]),mod:new a(this.modn(o.words[0]))}:this._wordDiv(o,p)},a.prototype.div=function(o){return this.divmod(o,"div",!1).div},a.prototype.mod=function(o){return this.divmod(o,"mod",!1).mod},a.prototype.umod=function(o){return this.divmod(o,"mod",!0).mod},a.prototype.divRound=function(o){var p=this.divmod(o);if(p.mod.isZero())return p.div;var y=p.div.negative!==0?p.mod.isub(o):p.mod,h=o.ushrn(1),v=o.andln(1),_=y.cmp(h);return _<0||v===1&&_===0?p.div:p.div.negative!==0?p.div.isubn(1):p.div.iaddn(1)},a.prototype.modn=function(o){t(o<=67108863);for(var p=(1<<26)%o,y=0,h=this.length-1;h>=0;h--)y=(p*y+(this.words[h]|0))%o;return y},a.prototype.idivn=function(o){t(o<=67108863);for(var p=0,y=this.length-1;y>=0;y--){var h=(this.words[y]|0)+p*67108864;this.words[y]=h/o|0,p=h%o}return this.strip()},a.prototype.divn=function(o){return this.clone().idivn(o)},a.prototype.egcd=function(o){t(o.negative===0),t(!o.isZero());var p=this,y=o.clone();p.negative!==0?p=p.umod(o):p=p.clone();for(var h=new a(1),v=new a(0),_=new a(0),C=new a(1),m=0;p.isEven()&&y.isEven();)p.iushrn(1),y.iushrn(1),++m;for(var u=y.clone(),b=p.clone();!p.isZero();){for(var R=0,S=1;(p.words[0]&S)===0&&R<26;++R,S<<=1);if(R>0)for(p.iushrn(R);R-- >0;)(h.isOdd()||v.isOdd())&&(h.iadd(u),v.isub(b)),h.iushrn(1),v.iushrn(1);for(var B=0,Z=1;(y.words[0]&Z)===0&&B<26;++B,Z<<=1);if(B>0)for(y.iushrn(B);B-- >0;)(_.isOdd()||C.isOdd())&&(_.iadd(u),C.isub(b)),_.iushrn(1),C.iushrn(1);p.cmp(y)>=0?(p.isub(y),h.isub(_),v.isub(C)):(y.isub(p),_.isub(h),C.isub(v))}return{a:_,b:C,gcd:y.iushln(m)}},a.prototype._invmp=function(o){t(o.negative===0),t(!o.isZero());var p=this,y=o.clone();p.negative!==0?p=p.umod(o):p=p.clone();for(var h=new a(1),v=new a(0),_=y.clone();p.cmpn(1)>0&&y.cmpn(1)>0;){for(var C=0,m=1;(p.words[0]&m)===0&&C<26;++C,m<<=1);if(C>0)for(p.iushrn(C);C-- >0;)h.isOdd()&&h.iadd(_),h.iushrn(1);for(var u=0,b=1;(y.words[0]&b)===0&&u<26;++u,b<<=1);if(u>0)for(y.iushrn(u);u-- >0;)v.isOdd()&&v.iadd(_),v.iushrn(1);p.cmp(y)>=0?(p.isub(y),h.isub(v)):(y.isub(p),v.isub(h))}var R;return p.cmpn(1)===0?R=h:R=v,R.cmpn(0)<0&&R.iadd(o),R},a.prototype.gcd=function(o){if(this.isZero())return o.abs();if(o.isZero())return this.abs();var p=this.clone(),y=o.clone();p.negative=0,y.negative=0;for(var h=0;p.isEven()&&y.isEven();h++)p.iushrn(1),y.iushrn(1);do{for(;p.isEven();)p.iushrn(1);for(;y.isEven();)y.iushrn(1);var v=p.cmp(y);if(v<0){var _=p;p=y,y=_}else if(v===0||y.cmpn(1)===0)break;p.isub(y)}while(!0);return y.iushln(h)},a.prototype.invm=function(o){return this.egcd(o).a.umod(o)},a.prototype.isEven=function(){return(this.words[0]&1)===0},a.prototype.isOdd=function(){return(this.words[0]&1)===1},a.prototype.andln=function(o){return this.words[0]&o},a.prototype.bincn=function(o){t(typeof o=="number");var p=o%26,y=(o-p)/26,h=1<>>26,C&=67108863,this.words[_]=C}return v!==0&&(this.words[_]=v,this.length++),this},a.prototype.isZero=function(){return this.length===1&&this.words[0]===0},a.prototype.cmpn=function(o){var p=o<0;if(this.negative!==0&&!p)return-1;if(this.negative===0&&p)return 1;this.strip();var y;if(this.length>1)y=1;else{p&&(o=-o),t(o<=67108863,"Number is too big");var h=this.words[0]|0;y=h===o?0:ho.length)return 1;if(this.length=0;y--){var h=this.words[y]|0,v=o.words[y]|0;if(h!==v){hv&&(p=1);break}}return p},a.prototype.gtn=function(o){return this.cmpn(o)===1},a.prototype.gt=function(o){return this.cmp(o)===1},a.prototype.gten=function(o){return this.cmpn(o)>=0},a.prototype.gte=function(o){return this.cmp(o)>=0},a.prototype.ltn=function(o){return this.cmpn(o)===-1},a.prototype.lt=function(o){return this.cmp(o)===-1},a.prototype.lten=function(o){return this.cmpn(o)<=0},a.prototype.lte=function(o){return this.cmp(o)<=0},a.prototype.eqn=function(o){return this.cmpn(o)===0},a.prototype.eq=function(o){return this.cmp(o)===0},a.red=function(o){return new J(o)},a.prototype.toRed=function(o){return t(!this.red,"Already a number in reduction context"),t(this.negative===0,"red works only with positives"),o.convertTo(this)._forceRed(o)},a.prototype.fromRed=function(){return t(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(o){return this.red=o,this},a.prototype.forceRed=function(o){return t(!this.red,"Already a number in reduction context"),this._forceRed(o)},a.prototype.redAdd=function(o){return t(this.red,"redAdd works only with red numbers"),this.red.add(this,o)},a.prototype.redIAdd=function(o){return t(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,o)},a.prototype.redSub=function(o){return t(this.red,"redSub works only with red numbers"),this.red.sub(this,o)},a.prototype.redISub=function(o){return t(this.red,"redISub works only with red numbers"),this.red.isub(this,o)},a.prototype.redShl=function(o){return t(this.red,"redShl works only with red numbers"),this.red.shl(this,o)},a.prototype.redMul=function(o){return t(this.red,"redMul works only with red numbers"),this.red._verify2(this,o),this.red.mul(this,o)},a.prototype.redIMul=function(o){return t(this.red,"redMul works only with red numbers"),this.red._verify2(this,o),this.red.imul(this,o)},a.prototype.redSqr=function(){return t(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return t(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return t(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return t(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return t(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(o){return t(this.red&&!o.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,o)};var j={k256:null,p224:null,p192:null,p25519:null};function H(g,o){this.name=g,this.p=new a(o,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}H.prototype._tmp=function(){var o=new a(null);return o.words=new Array(Math.ceil(this.n/13)),o},H.prototype.ireduce=function(o){var p=o,y;do this.split(p,this.tmp),p=this.imulK(p),p=p.iadd(this.tmp),y=p.bitLength();while(y>this.n);var h=y0?p.isub(this.p):p.strip!==void 0?p.strip():p._strip(),p},H.prototype.split=function(o,p){o.iushrn(this.n,0,p)},H.prototype.imulK=function(o){return o.imul(this.k)};function G(){H.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}n(G,H),G.prototype.split=function(o,p){for(var y=4194303,h=Math.min(o.length,9),v=0;v>>22,_=C}_>>>=22,o.words[v-10]=_,_===0&&o.length>10?o.length-=10:o.length-=9},G.prototype.imulK=function(o){o.words[o.length]=0,o.words[o.length+1]=0,o.length+=2;for(var p=0,y=0;y>>=26,o.words[y]=v,p=h}return p!==0&&(o.words[o.length++]=p),o},a._prime=function(o){if(j[o])return j[o];var p;if(o==="k256")p=new G;else if(o==="p224")p=new te;else if(o==="p192")p=new K;else if(o==="p25519")p=new ae;else throw new Error("Unknown prime "+o);return j[o]=p,p};function J(g){if(typeof g=="string"){var o=a._prime(g);this.m=o.p,this.prime=o}else t(g.gtn(1),"modulus must be greater than 1"),this.m=g,this.prime=null}J.prototype._verify1=function(o){t(o.negative===0,"red works only with positives"),t(o.red,"red works only with red numbers")},J.prototype._verify2=function(o,p){t((o.negative|p.negative)===0,"red works only with positives"),t(o.red&&o.red===p.red,"red works only with red numbers")},J.prototype.imod=function(o){return this.prime?this.prime.ireduce(o)._forceRed(this):o.umod(this.m)._forceRed(this)},J.prototype.neg=function(o){return o.isZero()?o.clone():this.m.sub(o)._forceRed(this)},J.prototype.add=function(o,p){this._verify2(o,p);var y=o.add(p);return y.cmp(this.m)>=0&&y.isub(this.m),y._forceRed(this)},J.prototype.iadd=function(o,p){this._verify2(o,p);var y=o.iadd(p);return y.cmp(this.m)>=0&&y.isub(this.m),y},J.prototype.sub=function(o,p){this._verify2(o,p);var y=o.sub(p);return y.cmpn(0)<0&&y.iadd(this.m),y._forceRed(this)},J.prototype.isub=function(o,p){this._verify2(o,p);var y=o.isub(p);return y.cmpn(0)<0&&y.iadd(this.m),y},J.prototype.shl=function(o,p){return this._verify1(o),this.imod(o.ushln(p))},J.prototype.imul=function(o,p){return this._verify2(o,p),this.imod(o.imul(p))},J.prototype.mul=function(o,p){return this._verify2(o,p),this.imod(o.mul(p))},J.prototype.isqr=function(o){return this.imul(o,o.clone())},J.prototype.sqr=function(o){return this.mul(o,o)},J.prototype.sqrt=function(o){if(o.isZero())return o.clone();var p=this.m.andln(3);if(t(p%2===1),p===3){var y=this.m.add(new a(1)).iushrn(2);return this.pow(o,y)}for(var h=this.m.subn(1),v=0;!h.isZero()&&h.andln(1)===0;)v++,h.iushrn(1);t(!h.isZero());var _=new a(1).toRed(this),C=_.redNeg(),m=this.m.subn(1).iushrn(1),u=this.m.bitLength();for(u=new a(2*u*u).toRed(this);this.pow(u,m).cmp(C)!==0;)u.redIAdd(C);for(var b=this.pow(u,h),R=this.pow(o,h.addn(1).iushrn(1)),S=this.pow(o,h),B=v;S.cmp(_)!==0;){for(var Z=S,W=0;Z.cmp(_)!==0;W++)Z=Z.redSqr();t(W=0;v--){for(var b=p.words[v],R=u-1;R>=0;R--){var S=b>>R&1;if(_!==h[0]&&(_=this.sqr(_)),S===0&&C===0){m=0;continue}C<<=1,C|=S,m++,!(m!==y&&(v!==0||R!==0))&&(_=this.mul(_,h[C]),m=0,C=0)}u=26}return _},J.prototype.convertTo=function(o){var p=o.umod(this.m);return p===o?p.clone():p},J.prototype.convertFrom=function(o){var p=o.clone();return p.red=null,p},a.mont=function(o){return new V(o)};function V(g){J.call(this,g),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new a(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}n(V,J),V.prototype.convertTo=function(o){return this.imod(o.ushln(this.shift))},V.prototype.convertFrom=function(o){var p=this.imod(o.mul(this.rinv));return p.red=null,p},V.prototype.imul=function(o,p){if(o.isZero()||p.isZero())return o.words[0]=0,o.length=1,o;var y=o.imul(p),h=y.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),v=y.isub(h).iushrn(this.shift),_=v;return v.cmp(this.m)>=0?_=v.isub(this.m):v.cmpn(0)<0&&(_=v.iadd(this.m)),_._forceRed(this)},V.prototype.mul=function(o,p){if(o.isZero()||p.isZero())return new a(0)._forceRed(this);var y=o.mul(p),h=y.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),v=y.isub(h).iushrn(this.shift),_=v;return v.cmp(this.m)>=0?_=v.isub(this.m):v.cmpn(0)<0&&(_=v.iadd(this.m)),_._forceRed(this)},V.prototype.invm=function(o){var p=this.imod(o._invmp(this.m).mul(this.r2));return p._forceRed(this)}})(typeof gU>"u"||gU,lpe)});var vU=O((CZr,ppe)=>{x();T();var _g=dpe(),Iwt=jS();function Cg(r){this.rand=r||new Iwt.Rand}ppe.exports=Cg;Cg.create=function(e){return new Cg(e)};Cg.prototype._randbelow=function(e){var t=e.bitLength(),n=Math.ceil(t/8);do var a=new _g(this.rand.generate(n));while(a.cmp(e)>=0);return a};Cg.prototype._randrange=function(e,t){var n=t.sub(e);return e.add(this._randbelow(n))};Cg.prototype.test=function(e,t,n){var a=e.bitLength(),i=_g.mont(e),s=new _g(1).toRed(i);t||(t=Math.max(1,a/48|0));for(var c=e.subn(1),l=0;!c.testn(l);l++);for(var d=e.shrn(l),f=c.toRed(i),w=!0;t>0;t--){var E=this._randrange(new _g(2),c);n&&n(E);var k=E.toRed(i).redPow(d);if(!(k.cmp(s)===0||k.cmp(f)===0)){for(var A=1;A0;t--){var f=this._randrange(new _g(2),s),w=e.gcd(f);if(w.cmpn(1)!==0)return w;var E=f.toRed(a).redPow(l);if(!(E.cmp(i)===0||E.cmp(d)===0)){for(var k=1;k{x();T();var Pwt=ig();mpe.exports=_U;_U.simpleSieve=xU;_U.fermatTest=TU;var ao=yU(),Rwt=new ao(24),Nwt=vU(),hpe=new Nwt,Owt=new ao(1),wU=new ao(2),Lwt=new ao(5),SZr=new ao(16),AZr=new ao(8),Bwt=new ao(10),qwt=new ao(3),MZr=new ao(7),Dwt=new ao(11),fpe=new ao(4),IZr=new ao(12),bU=null;function Fwt(){if(bU!==null)return bU;var r=1048576,e=[];e[0]=2;for(var t=1,n=3;nr;)t.ishrn(1);if(t.isEven()&&t.iadd(Owt),t.testn(1)||t.iadd(wU),e.cmp(wU)){if(!e.cmp(Lwt))for(;t.mod(Bwt).cmp(qwt);)t.iadd(fpe)}else for(;t.mod(Rwt).cmp(Dwt);)t.iadd(fpe);if(n=t.shrn(1),xU(n)&&xU(t)&&TU(n)&&TU(t)&&hpe.test(n)&&hpe.test(t))return t}}});var ype=O((OZr,Uwt)=>{Uwt.exports={modp1:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff"},modp2:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff"},modp5:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca237327ffffffffffffffff"},modp14:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff"},modp15:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff"},modp16:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff"},modp17:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff"},modp18:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff"}}});var wpe=O((LZr,bpe)=>{x();T();var Dl=yU(),Wwt=vU(),gpe=new Wwt,jwt=new Dl(24),zwt=new Dl(11),Hwt=new Dl(10),Vwt=new Dl(3),Gwt=new Dl(7),vpe=CU(),Zwt=ig();bpe.exports=Cf;function Jwt(r,e){return e=e||"utf8",P.Buffer.isBuffer(r)||(r=new P.Buffer(r,e)),this._pub=new Dl(r),this}function Kwt(r,e){return e=e||"utf8",P.Buffer.isBuffer(r)||(r=new P.Buffer(r,e)),this._priv=new Dl(r),this}var zS={};function Qwt(r,e){var t=e.toString("hex"),n=[t,r.toString(16)].join("_");if(n in zS)return zS[n];var a=0;if(r.isEven()||!vpe.simpleSieve||!vpe.fermatTest(r)||!gpe.test(r))return a+=1,t==="02"||t==="05"?a+=8:a+=4,zS[n]=a,a;gpe.test(r.shrn(1))||(a+=2);var i;switch(t){case"02":r.mod(jwt).cmp(zwt)&&(a+=8);break;case"05":i=r.mod(Hwt),i.cmp(Vwt)&&i.cmp(Gwt)&&(a+=8);break;default:a+=4}return zS[n]=a,a}function Cf(r,e,t){this.setGenerator(e),this.__prime=new Dl(r),this._prime=Dl.mont(this.__prime),this._primeLen=r.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,t?(this.setPublicKey=Jwt,this.setPrivateKey=Kwt):this._primeCode=8}Object.defineProperty(Cf.prototype,"verifyError",{enumerable:!0,get:function(){return typeof this._primeCode!="number"&&(this._primeCode=Qwt(this.__prime,this.__gen)),this._primeCode}});Cf.prototype.generateKeys=function(){return this._priv||(this._priv=new Dl(Zwt(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()};Cf.prototype.computeSecret=function(r){r=new Dl(r),r=r.toRed(this._prime);var e=r.redPow(this._priv).fromRed(),t=new P.Buffer(e.toArray()),n=this.getPrime();if(t.length{x();T();var Xwt=CU(),xpe=ype(),EU=wpe();function Ywt(r){var e=new P.Buffer(xpe[r].prime,"hex"),t=new P.Buffer(xpe[r].gen,"hex");return new EU(e,t)}var $wt={binary:!0,hex:!0,base64:!0};function Tpe(r,e,t,n){return P.Buffer.isBuffer(e)||$wt[e]===void 0?Tpe(r,"binary",e,t):(e=e||"binary",n=n||"binary",t=t||new P.Buffer([2]),P.Buffer.isBuffer(t)||(t=new P.Buffer(t,n)),typeof r=="number"?new EU(Xwt(r,t),t,!0):(P.Buffer.isBuffer(r)||(r=new P.Buffer(r,e)),new EU(r,t,!0)))}Mb.DiffieHellmanGroup=Mb.createDiffieHellmanGroup=Mb.getDiffieHellman=Ywt;Mb.createDiffieHellman=Mb.DiffieHellman=Tpe});var VS=O((WZr,kpe)=>{x();T();var Ib=Xr(),ext=ig();function txt(r){var e=Cpe(r),t=e.toRed(Ib.mont(r.modulus)).redPow(new Ib(r.publicExponent)).fromRed();return{blinder:t,unblinder:e.invm(r.modulus)}}function Cpe(r){var e=r.modulus.byteLength(),t;do t=new Ib(ext(e));while(t.cmp(r.modulus)>=0||!t.umod(r.prime1)||!t.umod(r.prime2));return t}function Epe(r,e){var t=txt(e),n=e.modulus.byteLength(),a=new Ib(r).mul(t.blinder).umod(e.modulus),i=a.toRed(Ib.mont(e.prime1)),s=a.toRed(Ib.mont(e.prime2)),c=e.coefficient,l=e.prime1,d=e.prime2,f=i.redPow(e.exponent1).fromRed(),w=s.redPow(e.exponent2).fromRed(),E=f.isub(w).imul(c).umod(l).imul(d);return w.iadd(E).imul(t.unblinder).umod(e.modulus).toArrayLike(P.Buffer,"be",n)}Epe.getr=Cpe;kpe.exports=Epe});var SU=O((Spe,kU)=>{x();T();(function(r,e){"use strict";function t(g,o){if(!g)throw new Error(o||"Assertion failed")}function n(g,o){g.super_=o;var p=function(){};p.prototype=o.prototype,g.prototype=new p,g.prototype.constructor=g}function a(g,o,p){if(a.isBN(g))return g;this.negative=0,this.words=null,this.length=0,this.red=null,g!==null&&((o==="le"||o==="be")&&(p=o,o=10),this._init(g||0,o||10,p||"be"))}typeof r=="object"?r.exports=a:e.BN=a,a.BN=a,a.wordSize=26;var i;try{typeof window<"u"&&typeof window.Buffer<"u"?i=window.Buffer:i=$i().Buffer}catch{}a.isBN=function(o){return o instanceof a?!0:o!==null&&typeof o=="object"&&o.constructor.wordSize===a.wordSize&&Array.isArray(o.words)},a.max=function(o,p){return o.cmp(p)>0?o:p},a.min=function(o,p){return o.cmp(p)<0?o:p},a.prototype._init=function(o,p,y){if(typeof o=="number")return this._initNumber(o,p,y);if(typeof o=="object")return this._initArray(o,p,y);p==="hex"&&(p=16),t(p===(p|0)&&p>=2&&p<=36),o=o.toString().replace(/\s+/g,"");var h=0;o[0]==="-"&&(h++,this.negative=1),h=0;h-=3)_=o[h]|o[h-1]<<8|o[h-2]<<16,this.words[v]|=_<>>26-C&67108863,C+=24,C>=26&&(C-=26,v++);else if(y==="le")for(h=0,v=0;h>>26-C&67108863,C+=24,C>=26&&(C-=26,v++);return this.strip()};function s(g,o){var p=g.charCodeAt(o);return p>=65&&p<=70?p-55:p>=97&&p<=102?p-87:p-48&15}function c(g,o,p){var y=s(g,p);return p-1>=o&&(y|=s(g,p-1)<<4),y}a.prototype._parseHex=function(o,p,y){this.length=Math.ceil((o.length-p)/6),this.words=new Array(this.length);for(var h=0;h=p;h-=2)C=c(o,p,h)<=18?(v-=18,_+=1,this.words[_]|=C>>>26):v+=8;else{var m=o.length-p;for(h=m%2===0?p+1:p;h=18?(v-=18,_+=1,this.words[_]|=C>>>26):v+=8}this.strip()};function l(g,o,p,y){for(var h=0,v=Math.min(g.length,p),_=o;_=49?h+=C-49+10:C>=17?h+=C-17+10:h+=C}return h}a.prototype._parseBase=function(o,p,y){this.words=[0],this.length=1;for(var h=0,v=1;v<=67108863;v*=p)h++;h--,v=v/p|0;for(var _=o.length-y,C=_%h,m=Math.min(_,_-C)+y,u=0,b=y;b1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},a.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},a.prototype.inspect=function(){return(this.red?""};var d=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],f=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],w=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];a.prototype.toString=function(o,p){o=o||10,p=p|0||1;var y;if(o===16||o==="hex"){y="";for(var h=0,v=0,_=0;_>>24-h&16777215,v!==0||_!==this.length-1?y=d[6-m.length]+m+y:y=m+y,h+=2,h>=26&&(h-=26,_--)}for(v!==0&&(y=v.toString(16)+y);y.length%p!==0;)y="0"+y;return this.negative!==0&&(y="-"+y),y}if(o===(o|0)&&o>=2&&o<=36){var u=f[o],b=w[o];y="";var R=this.clone();for(R.negative=0;!R.isZero();){var S=R.modn(b).toString(o);R=R.idivn(b),R.isZero()?y=S+y:y=d[u-S.length]+S+y}for(this.isZero()&&(y="0"+y);y.length%p!==0;)y="0"+y;return this.negative!==0&&(y="-"+y),y}t(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var o=this.words[0];return this.length===2?o+=this.words[1]*67108864:this.length===3&&this.words[2]===1?o+=4503599627370496+this.words[1]*67108864:this.length>2&&t(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-o:o},a.prototype.toJSON=function(){return this.toString(16)},a.prototype.toBuffer=function(o,p){return t(typeof i<"u"),this.toArrayLike(i,o,p)},a.prototype.toArray=function(o,p){return this.toArrayLike(Array,o,p)},a.prototype.toArrayLike=function(o,p,y){var h=this.byteLength(),v=y||Math.max(1,h);t(h<=v,"byte array longer than desired length"),t(v>0,"Requested array length <= 0"),this.strip();var _=p==="le",C=new o(v),m,u,b=this.clone();if(_){for(u=0;!b.isZero();u++)m=b.andln(255),b.iushrn(8),C[u]=m;for(;u=4096&&(y+=13,p>>>=13),p>=64&&(y+=7,p>>>=7),p>=8&&(y+=4,p>>>=4),p>=2&&(y+=2,p>>>=2),y+p},a.prototype._zeroBits=function(o){if(o===0)return 26;var p=o,y=0;return(p&8191)===0&&(y+=13,p>>>=13),(p&127)===0&&(y+=7,p>>>=7),(p&15)===0&&(y+=4,p>>>=4),(p&3)===0&&(y+=2,p>>>=2),(p&1)===0&&y++,y},a.prototype.bitLength=function(){var o=this.words[this.length-1],p=this._countBits(o);return(this.length-1)*26+p};function E(g){for(var o=new Array(g.bitLength()),p=0;p>>h}return o}a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var o=0,p=0;po.length?this.clone().ior(o):o.clone().ior(this)},a.prototype.uor=function(o){return this.length>o.length?this.clone().iuor(o):o.clone().iuor(this)},a.prototype.iuand=function(o){var p;this.length>o.length?p=o:p=this;for(var y=0;yo.length?this.clone().iand(o):o.clone().iand(this)},a.prototype.uand=function(o){return this.length>o.length?this.clone().iuand(o):o.clone().iuand(this)},a.prototype.iuxor=function(o){var p,y;this.length>o.length?(p=this,y=o):(p=o,y=this);for(var h=0;ho.length?this.clone().ixor(o):o.clone().ixor(this)},a.prototype.uxor=function(o){return this.length>o.length?this.clone().iuxor(o):o.clone().iuxor(this)},a.prototype.inotn=function(o){t(typeof o=="number"&&o>=0);var p=Math.ceil(o/26)|0,y=o%26;this._expand(p),y>0&&p--;for(var h=0;h0&&(this.words[h]=~this.words[h]&67108863>>26-y),this.strip()},a.prototype.notn=function(o){return this.clone().inotn(o)},a.prototype.setn=function(o,p){t(typeof o=="number"&&o>=0);var y=o/26|0,h=o%26;return this._expand(y+1),p?this.words[y]=this.words[y]|1<o.length?(y=this,h=o):(y=o,h=this);for(var v=0,_=0;_>>26;for(;v!==0&&_>>26;if(this.length=y.length,v!==0)this.words[this.length]=v,this.length++;else if(y!==this)for(;_o.length?this.clone().iadd(o):o.clone().iadd(this)},a.prototype.isub=function(o){if(o.negative!==0){o.negative=0;var p=this.iadd(o);return o.negative=1,p._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(o),this.negative=1,this._normSign();var y=this.cmp(o);if(y===0)return this.negative=0,this.length=1,this.words[0]=0,this;var h,v;y>0?(h=this,v=o):(h=o,v=this);for(var _=0,C=0;C>26,this.words[C]=p&67108863;for(;_!==0&&C>26,this.words[C]=p&67108863;if(_===0&&C>>26,R=m&67108863,S=Math.min(u,o.length-1),B=Math.max(0,u-g.length+1);B<=S;B++){var Z=u-B|0;h=g.words[Z]|0,v=o.words[B]|0,_=h*v+R,b+=_/67108864|0,R=_&67108863}p.words[u]=R|0,m=b|0}return m!==0?p.words[u]=m|0:p.length--,p.strip()}var A=function(o,p,y){var h=o.words,v=p.words,_=y.words,C=0,m,u,b,R=h[0]|0,S=R&8191,B=R>>>13,Z=h[1]|0,W=Z&8191,X=Z>>>13,de=h[2]|0,ne=de&8191,pe=de>>>13,pt=h[3]|0,fe=pt&8191,be=pt>>>13,Tt=h[4]|0,we=Tt&8191,Oe=Tt>>>13,Pt=h[5]|0,Be=Pt&8191,ze=Pt>>>13,At=h[6]|0,Me=At&8191,Ve=At>>>13,St=h[7]|0,Ie=St&8191,Ze=St>>>13,Ut=h[8]|0,qe=Ut&8191,Xe=Ut>>>13,Ht=h[9]|0,Ae=Ht&8191,Ke=Ht>>>13,Gt=v[0]|0,Pe=Gt&8191,Qe=Gt>>>13,Zt=v[1]|0,Re=Zt&8191,Ye=Zt>>>13,Jt=v[2]|0,Ne=Jt&8191,$e=Jt>>>13,Vt=v[3]|0,Se=Vt&8191,et=Vt>>>13,Rt=v[4]|0,Le=Rt&8191,tt=Rt>>>13,Kt=v[5]|0,De=Kt&8191,rt=Kt>>>13,Qt=v[6]|0,ke=Qt&8191,Je=Qt>>>13,Xt=v[7]|0,Ue=Xt&8191,st=Xt>>>13,rr=v[8]|0,We=rr&8191,nt=rr>>>13,ir=v[9]|0,je=ir&8191,at=ir>>>13;y.negative=o.negative^p.negative,y.length=19,m=Math.imul(S,Pe),u=Math.imul(S,Qe),u=u+Math.imul(B,Pe)|0,b=Math.imul(B,Qe);var Lr=(C+m|0)+((u&8191)<<13)|0;C=(b+(u>>>13)|0)+(Lr>>>26)|0,Lr&=67108863,m=Math.imul(W,Pe),u=Math.imul(W,Qe),u=u+Math.imul(X,Pe)|0,b=Math.imul(X,Qe),m=m+Math.imul(S,Re)|0,u=u+Math.imul(S,Ye)|0,u=u+Math.imul(B,Re)|0,b=b+Math.imul(B,Ye)|0;var Wt=(C+m|0)+((u&8191)<<13)|0;C=(b+(u>>>13)|0)+(Wt>>>26)|0,Wt&=67108863,m=Math.imul(ne,Pe),u=Math.imul(ne,Qe),u=u+Math.imul(pe,Pe)|0,b=Math.imul(pe,Qe),m=m+Math.imul(W,Re)|0,u=u+Math.imul(W,Ye)|0,u=u+Math.imul(X,Re)|0,b=b+Math.imul(X,Ye)|0,m=m+Math.imul(S,Ne)|0,u=u+Math.imul(S,$e)|0,u=u+Math.imul(B,Ne)|0,b=b+Math.imul(B,$e)|0;var jt=(C+m|0)+((u&8191)<<13)|0;C=(b+(u>>>13)|0)+(jt>>>26)|0,jt&=67108863,m=Math.imul(fe,Pe),u=Math.imul(fe,Qe),u=u+Math.imul(be,Pe)|0,b=Math.imul(be,Qe),m=m+Math.imul(ne,Re)|0,u=u+Math.imul(ne,Ye)|0,u=u+Math.imul(pe,Re)|0,b=b+Math.imul(pe,Ye)|0,m=m+Math.imul(W,Ne)|0,u=u+Math.imul(W,$e)|0,u=u+Math.imul(X,Ne)|0,b=b+Math.imul(X,$e)|0,m=m+Math.imul(S,Se)|0,u=u+Math.imul(S,et)|0,u=u+Math.imul(B,Se)|0,b=b+Math.imul(B,et)|0;var Er=(C+m|0)+((u&8191)<<13)|0;C=(b+(u>>>13)|0)+(Er>>>26)|0,Er&=67108863,m=Math.imul(we,Pe),u=Math.imul(we,Qe),u=u+Math.imul(Oe,Pe)|0,b=Math.imul(Oe,Qe),m=m+Math.imul(fe,Re)|0,u=u+Math.imul(fe,Ye)|0,u=u+Math.imul(be,Re)|0,b=b+Math.imul(be,Ye)|0,m=m+Math.imul(ne,Ne)|0,u=u+Math.imul(ne,$e)|0,u=u+Math.imul(pe,Ne)|0,b=b+Math.imul(pe,$e)|0,m=m+Math.imul(W,Se)|0,u=u+Math.imul(W,et)|0,u=u+Math.imul(X,Se)|0,b=b+Math.imul(X,et)|0,m=m+Math.imul(S,Le)|0,u=u+Math.imul(S,tt)|0,u=u+Math.imul(B,Le)|0,b=b+Math.imul(B,tt)|0;var kr=(C+m|0)+((u&8191)<<13)|0;C=(b+(u>>>13)|0)+(kr>>>26)|0,kr&=67108863,m=Math.imul(Be,Pe),u=Math.imul(Be,Qe),u=u+Math.imul(ze,Pe)|0,b=Math.imul(ze,Qe),m=m+Math.imul(we,Re)|0,u=u+Math.imul(we,Ye)|0,u=u+Math.imul(Oe,Re)|0,b=b+Math.imul(Oe,Ye)|0,m=m+Math.imul(fe,Ne)|0,u=u+Math.imul(fe,$e)|0,u=u+Math.imul(be,Ne)|0,b=b+Math.imul(be,$e)|0,m=m+Math.imul(ne,Se)|0,u=u+Math.imul(ne,et)|0,u=u+Math.imul(pe,Se)|0,b=b+Math.imul(pe,et)|0,m=m+Math.imul(W,Le)|0,u=u+Math.imul(W,tt)|0,u=u+Math.imul(X,Le)|0,b=b+Math.imul(X,tt)|0,m=m+Math.imul(S,De)|0,u=u+Math.imul(S,rt)|0,u=u+Math.imul(B,De)|0,b=b+Math.imul(B,rt)|0;var Sr=(C+m|0)+((u&8191)<<13)|0;C=(b+(u>>>13)|0)+(Sr>>>26)|0,Sr&=67108863,m=Math.imul(Me,Pe),u=Math.imul(Me,Qe),u=u+Math.imul(Ve,Pe)|0,b=Math.imul(Ve,Qe),m=m+Math.imul(Be,Re)|0,u=u+Math.imul(Be,Ye)|0,u=u+Math.imul(ze,Re)|0,b=b+Math.imul(ze,Ye)|0,m=m+Math.imul(we,Ne)|0,u=u+Math.imul(we,$e)|0,u=u+Math.imul(Oe,Ne)|0,b=b+Math.imul(Oe,$e)|0,m=m+Math.imul(fe,Se)|0,u=u+Math.imul(fe,et)|0,u=u+Math.imul(be,Se)|0,b=b+Math.imul(be,et)|0,m=m+Math.imul(ne,Le)|0,u=u+Math.imul(ne,tt)|0,u=u+Math.imul(pe,Le)|0,b=b+Math.imul(pe,tt)|0,m=m+Math.imul(W,De)|0,u=u+Math.imul(W,rt)|0,u=u+Math.imul(X,De)|0,b=b+Math.imul(X,rt)|0,m=m+Math.imul(S,ke)|0,u=u+Math.imul(S,Je)|0,u=u+Math.imul(B,ke)|0,b=b+Math.imul(B,Je)|0;var Ar=(C+m|0)+((u&8191)<<13)|0;C=(b+(u>>>13)|0)+(Ar>>>26)|0,Ar&=67108863,m=Math.imul(Ie,Pe),u=Math.imul(Ie,Qe),u=u+Math.imul(Ze,Pe)|0,b=Math.imul(Ze,Qe),m=m+Math.imul(Me,Re)|0,u=u+Math.imul(Me,Ye)|0,u=u+Math.imul(Ve,Re)|0,b=b+Math.imul(Ve,Ye)|0,m=m+Math.imul(Be,Ne)|0,u=u+Math.imul(Be,$e)|0,u=u+Math.imul(ze,Ne)|0,b=b+Math.imul(ze,$e)|0,m=m+Math.imul(we,Se)|0,u=u+Math.imul(we,et)|0,u=u+Math.imul(Oe,Se)|0,b=b+Math.imul(Oe,et)|0,m=m+Math.imul(fe,Le)|0,u=u+Math.imul(fe,tt)|0,u=u+Math.imul(be,Le)|0,b=b+Math.imul(be,tt)|0,m=m+Math.imul(ne,De)|0,u=u+Math.imul(ne,rt)|0,u=u+Math.imul(pe,De)|0,b=b+Math.imul(pe,rt)|0,m=m+Math.imul(W,ke)|0,u=u+Math.imul(W,Je)|0,u=u+Math.imul(X,ke)|0,b=b+Math.imul(X,Je)|0,m=m+Math.imul(S,Ue)|0,u=u+Math.imul(S,st)|0,u=u+Math.imul(B,Ue)|0,b=b+Math.imul(B,st)|0;var Mr=(C+m|0)+((u&8191)<<13)|0;C=(b+(u>>>13)|0)+(Mr>>>26)|0,Mr&=67108863,m=Math.imul(qe,Pe),u=Math.imul(qe,Qe),u=u+Math.imul(Xe,Pe)|0,b=Math.imul(Xe,Qe),m=m+Math.imul(Ie,Re)|0,u=u+Math.imul(Ie,Ye)|0,u=u+Math.imul(Ze,Re)|0,b=b+Math.imul(Ze,Ye)|0,m=m+Math.imul(Me,Ne)|0,u=u+Math.imul(Me,$e)|0,u=u+Math.imul(Ve,Ne)|0,b=b+Math.imul(Ve,$e)|0,m=m+Math.imul(Be,Se)|0,u=u+Math.imul(Be,et)|0,u=u+Math.imul(ze,Se)|0,b=b+Math.imul(ze,et)|0,m=m+Math.imul(we,Le)|0,u=u+Math.imul(we,tt)|0,u=u+Math.imul(Oe,Le)|0,b=b+Math.imul(Oe,tt)|0,m=m+Math.imul(fe,De)|0,u=u+Math.imul(fe,rt)|0,u=u+Math.imul(be,De)|0,b=b+Math.imul(be,rt)|0,m=m+Math.imul(ne,ke)|0,u=u+Math.imul(ne,Je)|0,u=u+Math.imul(pe,ke)|0,b=b+Math.imul(pe,Je)|0,m=m+Math.imul(W,Ue)|0,u=u+Math.imul(W,st)|0,u=u+Math.imul(X,Ue)|0,b=b+Math.imul(X,st)|0,m=m+Math.imul(S,We)|0,u=u+Math.imul(S,nt)|0,u=u+Math.imul(B,We)|0,b=b+Math.imul(B,nt)|0;var Kr=(C+m|0)+((u&8191)<<13)|0;C=(b+(u>>>13)|0)+(Kr>>>26)|0,Kr&=67108863,m=Math.imul(Ae,Pe),u=Math.imul(Ae,Qe),u=u+Math.imul(Ke,Pe)|0,b=Math.imul(Ke,Qe),m=m+Math.imul(qe,Re)|0,u=u+Math.imul(qe,Ye)|0,u=u+Math.imul(Xe,Re)|0,b=b+Math.imul(Xe,Ye)|0,m=m+Math.imul(Ie,Ne)|0,u=u+Math.imul(Ie,$e)|0,u=u+Math.imul(Ze,Ne)|0,b=b+Math.imul(Ze,$e)|0,m=m+Math.imul(Me,Se)|0,u=u+Math.imul(Me,et)|0,u=u+Math.imul(Ve,Se)|0,b=b+Math.imul(Ve,et)|0,m=m+Math.imul(Be,Le)|0,u=u+Math.imul(Be,tt)|0,u=u+Math.imul(ze,Le)|0,b=b+Math.imul(ze,tt)|0,m=m+Math.imul(we,De)|0,u=u+Math.imul(we,rt)|0,u=u+Math.imul(Oe,De)|0,b=b+Math.imul(Oe,rt)|0,m=m+Math.imul(fe,ke)|0,u=u+Math.imul(fe,Je)|0,u=u+Math.imul(be,ke)|0,b=b+Math.imul(be,Je)|0,m=m+Math.imul(ne,Ue)|0,u=u+Math.imul(ne,st)|0,u=u+Math.imul(pe,Ue)|0,b=b+Math.imul(pe,st)|0,m=m+Math.imul(W,We)|0,u=u+Math.imul(W,nt)|0,u=u+Math.imul(X,We)|0,b=b+Math.imul(X,nt)|0,m=m+Math.imul(S,je)|0,u=u+Math.imul(S,at)|0,u=u+Math.imul(B,je)|0,b=b+Math.imul(B,at)|0;var Qr=(C+m|0)+((u&8191)<<13)|0;C=(b+(u>>>13)|0)+(Qr>>>26)|0,Qr&=67108863,m=Math.imul(Ae,Re),u=Math.imul(Ae,Ye),u=u+Math.imul(Ke,Re)|0,b=Math.imul(Ke,Ye),m=m+Math.imul(qe,Ne)|0,u=u+Math.imul(qe,$e)|0,u=u+Math.imul(Xe,Ne)|0,b=b+Math.imul(Xe,$e)|0,m=m+Math.imul(Ie,Se)|0,u=u+Math.imul(Ie,et)|0,u=u+Math.imul(Ze,Se)|0,b=b+Math.imul(Ze,et)|0,m=m+Math.imul(Me,Le)|0,u=u+Math.imul(Me,tt)|0,u=u+Math.imul(Ve,Le)|0,b=b+Math.imul(Ve,tt)|0,m=m+Math.imul(Be,De)|0,u=u+Math.imul(Be,rt)|0,u=u+Math.imul(ze,De)|0,b=b+Math.imul(ze,rt)|0,m=m+Math.imul(we,ke)|0,u=u+Math.imul(we,Je)|0,u=u+Math.imul(Oe,ke)|0,b=b+Math.imul(Oe,Je)|0,m=m+Math.imul(fe,Ue)|0,u=u+Math.imul(fe,st)|0,u=u+Math.imul(be,Ue)|0,b=b+Math.imul(be,st)|0,m=m+Math.imul(ne,We)|0,u=u+Math.imul(ne,nt)|0,u=u+Math.imul(pe,We)|0,b=b+Math.imul(pe,nt)|0,m=m+Math.imul(W,je)|0,u=u+Math.imul(W,at)|0,u=u+Math.imul(X,je)|0,b=b+Math.imul(X,at)|0;var Vr=(C+m|0)+((u&8191)<<13)|0;C=(b+(u>>>13)|0)+(Vr>>>26)|0,Vr&=67108863,m=Math.imul(Ae,Ne),u=Math.imul(Ae,$e),u=u+Math.imul(Ke,Ne)|0,b=Math.imul(Ke,$e),m=m+Math.imul(qe,Se)|0,u=u+Math.imul(qe,et)|0,u=u+Math.imul(Xe,Se)|0,b=b+Math.imul(Xe,et)|0,m=m+Math.imul(Ie,Le)|0,u=u+Math.imul(Ie,tt)|0,u=u+Math.imul(Ze,Le)|0,b=b+Math.imul(Ze,tt)|0,m=m+Math.imul(Me,De)|0,u=u+Math.imul(Me,rt)|0,u=u+Math.imul(Ve,De)|0,b=b+Math.imul(Ve,rt)|0,m=m+Math.imul(Be,ke)|0,u=u+Math.imul(Be,Je)|0,u=u+Math.imul(ze,ke)|0,b=b+Math.imul(ze,Je)|0,m=m+Math.imul(we,Ue)|0,u=u+Math.imul(we,st)|0,u=u+Math.imul(Oe,Ue)|0,b=b+Math.imul(Oe,st)|0,m=m+Math.imul(fe,We)|0,u=u+Math.imul(fe,nt)|0,u=u+Math.imul(be,We)|0,b=b+Math.imul(be,nt)|0,m=m+Math.imul(ne,je)|0,u=u+Math.imul(ne,at)|0,u=u+Math.imul(pe,je)|0,b=b+Math.imul(pe,at)|0;var Br=(C+m|0)+((u&8191)<<13)|0;C=(b+(u>>>13)|0)+(Br>>>26)|0,Br&=67108863,m=Math.imul(Ae,Se),u=Math.imul(Ae,et),u=u+Math.imul(Ke,Se)|0,b=Math.imul(Ke,et),m=m+Math.imul(qe,Le)|0,u=u+Math.imul(qe,tt)|0,u=u+Math.imul(Xe,Le)|0,b=b+Math.imul(Xe,tt)|0,m=m+Math.imul(Ie,De)|0,u=u+Math.imul(Ie,rt)|0,u=u+Math.imul(Ze,De)|0,b=b+Math.imul(Ze,rt)|0,m=m+Math.imul(Me,ke)|0,u=u+Math.imul(Me,Je)|0,u=u+Math.imul(Ve,ke)|0,b=b+Math.imul(Ve,Je)|0,m=m+Math.imul(Be,Ue)|0,u=u+Math.imul(Be,st)|0,u=u+Math.imul(ze,Ue)|0,b=b+Math.imul(ze,st)|0,m=m+Math.imul(we,We)|0,u=u+Math.imul(we,nt)|0,u=u+Math.imul(Oe,We)|0,b=b+Math.imul(Oe,nt)|0,m=m+Math.imul(fe,je)|0,u=u+Math.imul(fe,at)|0,u=u+Math.imul(be,je)|0,b=b+Math.imul(be,at)|0;var Fr=(C+m|0)+((u&8191)<<13)|0;C=(b+(u>>>13)|0)+(Fr>>>26)|0,Fr&=67108863,m=Math.imul(Ae,Le),u=Math.imul(Ae,tt),u=u+Math.imul(Ke,Le)|0,b=Math.imul(Ke,tt),m=m+Math.imul(qe,De)|0,u=u+Math.imul(qe,rt)|0,u=u+Math.imul(Xe,De)|0,b=b+Math.imul(Xe,rt)|0,m=m+Math.imul(Ie,ke)|0,u=u+Math.imul(Ie,Je)|0,u=u+Math.imul(Ze,ke)|0,b=b+Math.imul(Ze,Je)|0,m=m+Math.imul(Me,Ue)|0,u=u+Math.imul(Me,st)|0,u=u+Math.imul(Ve,Ue)|0,b=b+Math.imul(Ve,st)|0,m=m+Math.imul(Be,We)|0,u=u+Math.imul(Be,nt)|0,u=u+Math.imul(ze,We)|0,b=b+Math.imul(ze,nt)|0,m=m+Math.imul(we,je)|0,u=u+Math.imul(we,at)|0,u=u+Math.imul(Oe,je)|0,b=b+Math.imul(Oe,at)|0;var hr=(C+m|0)+((u&8191)<<13)|0;C=(b+(u>>>13)|0)+(hr>>>26)|0,hr&=67108863,m=Math.imul(Ae,De),u=Math.imul(Ae,rt),u=u+Math.imul(Ke,De)|0,b=Math.imul(Ke,rt),m=m+Math.imul(qe,ke)|0,u=u+Math.imul(qe,Je)|0,u=u+Math.imul(Xe,ke)|0,b=b+Math.imul(Xe,Je)|0,m=m+Math.imul(Ie,Ue)|0,u=u+Math.imul(Ie,st)|0,u=u+Math.imul(Ze,Ue)|0,b=b+Math.imul(Ze,st)|0,m=m+Math.imul(Me,We)|0,u=u+Math.imul(Me,nt)|0,u=u+Math.imul(Ve,We)|0,b=b+Math.imul(Ve,nt)|0,m=m+Math.imul(Be,je)|0,u=u+Math.imul(Be,at)|0,u=u+Math.imul(ze,je)|0,b=b+Math.imul(ze,at)|0;var Gr=(C+m|0)+((u&8191)<<13)|0;C=(b+(u>>>13)|0)+(Gr>>>26)|0,Gr&=67108863,m=Math.imul(Ae,ke),u=Math.imul(Ae,Je),u=u+Math.imul(Ke,ke)|0,b=Math.imul(Ke,Je),m=m+Math.imul(qe,Ue)|0,u=u+Math.imul(qe,st)|0,u=u+Math.imul(Xe,Ue)|0,b=b+Math.imul(Xe,st)|0,m=m+Math.imul(Ie,We)|0,u=u+Math.imul(Ie,nt)|0,u=u+Math.imul(Ze,We)|0,b=b+Math.imul(Ze,nt)|0,m=m+Math.imul(Me,je)|0,u=u+Math.imul(Me,at)|0,u=u+Math.imul(Ve,je)|0,b=b+Math.imul(Ve,at)|0;var gr=(C+m|0)+((u&8191)<<13)|0;C=(b+(u>>>13)|0)+(gr>>>26)|0,gr&=67108863,m=Math.imul(Ae,Ue),u=Math.imul(Ae,st),u=u+Math.imul(Ke,Ue)|0,b=Math.imul(Ke,st),m=m+Math.imul(qe,We)|0,u=u+Math.imul(qe,nt)|0,u=u+Math.imul(Xe,We)|0,b=b+Math.imul(Xe,nt)|0,m=m+Math.imul(Ie,je)|0,u=u+Math.imul(Ie,at)|0,u=u+Math.imul(Ze,je)|0,b=b+Math.imul(Ze,at)|0;var Ur=(C+m|0)+((u&8191)<<13)|0;C=(b+(u>>>13)|0)+(Ur>>>26)|0,Ur&=67108863,m=Math.imul(Ae,We),u=Math.imul(Ae,nt),u=u+Math.imul(Ke,We)|0,b=Math.imul(Ke,nt),m=m+Math.imul(qe,je)|0,u=u+Math.imul(qe,at)|0,u=u+Math.imul(Xe,je)|0,b=b+Math.imul(Xe,at)|0;var tn=(C+m|0)+((u&8191)<<13)|0;C=(b+(u>>>13)|0)+(tn>>>26)|0,tn&=67108863,m=Math.imul(Ae,je),u=Math.imul(Ae,at),u=u+Math.imul(Ke,je)|0,b=Math.imul(Ke,at);var An=(C+m|0)+((u&8191)<<13)|0;return C=(b+(u>>>13)|0)+(An>>>26)|0,An&=67108863,_[0]=Lr,_[1]=Wt,_[2]=jt,_[3]=Er,_[4]=kr,_[5]=Sr,_[6]=Ar,_[7]=Mr,_[8]=Kr,_[9]=Qr,_[10]=Vr,_[11]=Br,_[12]=Fr,_[13]=hr,_[14]=Gr,_[15]=gr,_[16]=Ur,_[17]=tn,_[18]=An,C!==0&&(_[19]=C,y.length++),y};Math.imul||(A=k);function L(g,o,p){p.negative=o.negative^g.negative,p.length=g.length+o.length;for(var y=0,h=0,v=0;v>>26)|0,h+=_>>>26,_&=67108863}p.words[v]=C,y=_,_=h}return y!==0?p.words[v]=y:p.length--,p.strip()}function q(g,o,p){var y=new U;return y.mulp(g,o,p)}a.prototype.mulTo=function(o,p){var y,h=this.length+o.length;return this.length===10&&o.length===10?y=A(this,o,p):h<63?y=k(this,o,p):h<1024?y=L(this,o,p):y=q(this,o,p),y};function U(g,o){this.x=g,this.y=o}U.prototype.makeRBT=function(o){for(var p=new Array(o),y=a.prototype._countBits(o)-1,h=0;h>=1;return h},U.prototype.permute=function(o,p,y,h,v,_){for(var C=0;C<_;C++)h[C]=p[o[C]],v[C]=y[o[C]]},U.prototype.transform=function(o,p,y,h,v,_){this.permute(_,o,p,y,h,v);for(var C=1;C>>1)v++;return 1<>>13,y[2*_+1]=v&8191,v=v>>>13;for(_=2*p;_>=26,p+=h/67108864|0,p+=v>>>26,this.words[y]=v&67108863}return p!==0&&(this.words[y]=p,this.length++),this},a.prototype.muln=function(o){return this.clone().imuln(o)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(o){var p=E(o);if(p.length===0)return new a(1);for(var y=this,h=0;h=0);var p=o%26,y=(o-p)/26,h=67108863>>>26-p<<26-p,v;if(p!==0){var _=0;for(v=0;v>>26-p}_&&(this.words[v]=_,this.length++)}if(y!==0){for(v=this.length-1;v>=0;v--)this.words[v+y]=this.words[v];for(v=0;v=0);var h;p?h=(p-p%26)/26:h=0;var v=o%26,_=Math.min((o-v)/26,this.length),C=67108863^67108863>>>v<_)for(this.length-=_,u=0;u=0&&(b!==0||u>=h);u--){var R=this.words[u]|0;this.words[u]=b<<26-v|R>>>v,b=R&C}return m&&b!==0&&(m.words[m.length++]=b),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},a.prototype.ishrn=function(o,p,y){return t(this.negative===0),this.iushrn(o,p,y)},a.prototype.shln=function(o){return this.clone().ishln(o)},a.prototype.ushln=function(o){return this.clone().iushln(o)},a.prototype.shrn=function(o){return this.clone().ishrn(o)},a.prototype.ushrn=function(o){return this.clone().iushrn(o)},a.prototype.testn=function(o){t(typeof o=="number"&&o>=0);var p=o%26,y=(o-p)/26,h=1<=0);var p=o%26,y=(o-p)/26;if(t(this.negative===0,"imaskn works only with positive numbers"),this.length<=y)return this;if(p!==0&&y++,this.length=Math.min(y,this.length),p!==0){var h=67108863^67108863>>>p<=67108864;p++)this.words[p]-=67108864,p===this.length-1?this.words[p+1]=1:this.words[p+1]++;return this.length=Math.max(this.length,p+1),this},a.prototype.isubn=function(o){if(t(typeof o=="number"),t(o<67108864),o<0)return this.iaddn(-o);if(this.negative!==0)return this.negative=0,this.iaddn(o),this.negative=1,this;if(this.words[0]-=o,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var p=0;p>26)-(m/67108864|0),this.words[v+y]=_&67108863}for(;v>26,this.words[v+y]=_&67108863;if(C===0)return this.strip();for(t(C===-1),C=0,v=0;v>26,this.words[v]=_&67108863;return this.negative=1,this.strip()},a.prototype._wordDiv=function(o,p){var y=this.length-o.length,h=this.clone(),v=o,_=v.words[v.length-1]|0,C=this._countBits(_);y=26-C,y!==0&&(v=v.ushln(y),h.iushln(y),_=v.words[v.length-1]|0);var m=h.length-v.length,u;if(p!=="mod"){u=new a(null),u.length=m+1,u.words=new Array(u.length);for(var b=0;b=0;S--){var B=(h.words[v.length+S]|0)*67108864+(h.words[v.length+S-1]|0);for(B=Math.min(B/_|0,67108863),h._ishlnsubmul(v,B,S);h.negative!==0;)B--,h.negative=0,h._ishlnsubmul(v,1,S),h.isZero()||(h.negative^=1);u&&(u.words[S]=B)}return u&&u.strip(),h.strip(),p!=="div"&&y!==0&&h.iushrn(y),{div:u||null,mod:h}},a.prototype.divmod=function(o,p,y){if(t(!o.isZero()),this.isZero())return{div:new a(0),mod:new a(0)};var h,v,_;return this.negative!==0&&o.negative===0?(_=this.neg().divmod(o,p),p!=="mod"&&(h=_.div.neg()),p!=="div"&&(v=_.mod.neg(),y&&v.negative!==0&&v.iadd(o)),{div:h,mod:v}):this.negative===0&&o.negative!==0?(_=this.divmod(o.neg(),p),p!=="mod"&&(h=_.div.neg()),{div:h,mod:_.mod}):(this.negative&o.negative)!==0?(_=this.neg().divmod(o.neg(),p),p!=="div"&&(v=_.mod.neg(),y&&v.negative!==0&&v.isub(o)),{div:_.div,mod:v}):o.length>this.length||this.cmp(o)<0?{div:new a(0),mod:this}:o.length===1?p==="div"?{div:this.divn(o.words[0]),mod:null}:p==="mod"?{div:null,mod:new a(this.modn(o.words[0]))}:{div:this.divn(o.words[0]),mod:new a(this.modn(o.words[0]))}:this._wordDiv(o,p)},a.prototype.div=function(o){return this.divmod(o,"div",!1).div},a.prototype.mod=function(o){return this.divmod(o,"mod",!1).mod},a.prototype.umod=function(o){return this.divmod(o,"mod",!0).mod},a.prototype.divRound=function(o){var p=this.divmod(o);if(p.mod.isZero())return p.div;var y=p.div.negative!==0?p.mod.isub(o):p.mod,h=o.ushrn(1),v=o.andln(1),_=y.cmp(h);return _<0||v===1&&_===0?p.div:p.div.negative!==0?p.div.isubn(1):p.div.iaddn(1)},a.prototype.modn=function(o){t(o<=67108863);for(var p=(1<<26)%o,y=0,h=this.length-1;h>=0;h--)y=(p*y+(this.words[h]|0))%o;return y},a.prototype.idivn=function(o){t(o<=67108863);for(var p=0,y=this.length-1;y>=0;y--){var h=(this.words[y]|0)+p*67108864;this.words[y]=h/o|0,p=h%o}return this.strip()},a.prototype.divn=function(o){return this.clone().idivn(o)},a.prototype.egcd=function(o){t(o.negative===0),t(!o.isZero());var p=this,y=o.clone();p.negative!==0?p=p.umod(o):p=p.clone();for(var h=new a(1),v=new a(0),_=new a(0),C=new a(1),m=0;p.isEven()&&y.isEven();)p.iushrn(1),y.iushrn(1),++m;for(var u=y.clone(),b=p.clone();!p.isZero();){for(var R=0,S=1;(p.words[0]&S)===0&&R<26;++R,S<<=1);if(R>0)for(p.iushrn(R);R-- >0;)(h.isOdd()||v.isOdd())&&(h.iadd(u),v.isub(b)),h.iushrn(1),v.iushrn(1);for(var B=0,Z=1;(y.words[0]&Z)===0&&B<26;++B,Z<<=1);if(B>0)for(y.iushrn(B);B-- >0;)(_.isOdd()||C.isOdd())&&(_.iadd(u),C.isub(b)),_.iushrn(1),C.iushrn(1);p.cmp(y)>=0?(p.isub(y),h.isub(_),v.isub(C)):(y.isub(p),_.isub(h),C.isub(v))}return{a:_,b:C,gcd:y.iushln(m)}},a.prototype._invmp=function(o){t(o.negative===0),t(!o.isZero());var p=this,y=o.clone();p.negative!==0?p=p.umod(o):p=p.clone();for(var h=new a(1),v=new a(0),_=y.clone();p.cmpn(1)>0&&y.cmpn(1)>0;){for(var C=0,m=1;(p.words[0]&m)===0&&C<26;++C,m<<=1);if(C>0)for(p.iushrn(C);C-- >0;)h.isOdd()&&h.iadd(_),h.iushrn(1);for(var u=0,b=1;(y.words[0]&b)===0&&u<26;++u,b<<=1);if(u>0)for(y.iushrn(u);u-- >0;)v.isOdd()&&v.iadd(_),v.iushrn(1);p.cmp(y)>=0?(p.isub(y),h.isub(v)):(y.isub(p),v.isub(h))}var R;return p.cmpn(1)===0?R=h:R=v,R.cmpn(0)<0&&R.iadd(o),R},a.prototype.gcd=function(o){if(this.isZero())return o.abs();if(o.isZero())return this.abs();var p=this.clone(),y=o.clone();p.negative=0,y.negative=0;for(var h=0;p.isEven()&&y.isEven();h++)p.iushrn(1),y.iushrn(1);do{for(;p.isEven();)p.iushrn(1);for(;y.isEven();)y.iushrn(1);var v=p.cmp(y);if(v<0){var _=p;p=y,y=_}else if(v===0||y.cmpn(1)===0)break;p.isub(y)}while(!0);return y.iushln(h)},a.prototype.invm=function(o){return this.egcd(o).a.umod(o)},a.prototype.isEven=function(){return(this.words[0]&1)===0},a.prototype.isOdd=function(){return(this.words[0]&1)===1},a.prototype.andln=function(o){return this.words[0]&o},a.prototype.bincn=function(o){t(typeof o=="number");var p=o%26,y=(o-p)/26,h=1<>>26,C&=67108863,this.words[_]=C}return v!==0&&(this.words[_]=v,this.length++),this},a.prototype.isZero=function(){return this.length===1&&this.words[0]===0},a.prototype.cmpn=function(o){var p=o<0;if(this.negative!==0&&!p)return-1;if(this.negative===0&&p)return 1;this.strip();var y;if(this.length>1)y=1;else{p&&(o=-o),t(o<=67108863,"Number is too big");var h=this.words[0]|0;y=h===o?0:ho.length)return 1;if(this.length=0;y--){var h=this.words[y]|0,v=o.words[y]|0;if(h!==v){hv&&(p=1);break}}return p},a.prototype.gtn=function(o){return this.cmpn(o)===1},a.prototype.gt=function(o){return this.cmp(o)===1},a.prototype.gten=function(o){return this.cmpn(o)>=0},a.prototype.gte=function(o){return this.cmp(o)>=0},a.prototype.ltn=function(o){return this.cmpn(o)===-1},a.prototype.lt=function(o){return this.cmp(o)===-1},a.prototype.lten=function(o){return this.cmpn(o)<=0},a.prototype.lte=function(o){return this.cmp(o)<=0},a.prototype.eqn=function(o){return this.cmpn(o)===0},a.prototype.eq=function(o){return this.cmp(o)===0},a.red=function(o){return new J(o)},a.prototype.toRed=function(o){return t(!this.red,"Already a number in reduction context"),t(this.negative===0,"red works only with positives"),o.convertTo(this)._forceRed(o)},a.prototype.fromRed=function(){return t(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(o){return this.red=o,this},a.prototype.forceRed=function(o){return t(!this.red,"Already a number in reduction context"),this._forceRed(o)},a.prototype.redAdd=function(o){return t(this.red,"redAdd works only with red numbers"),this.red.add(this,o)},a.prototype.redIAdd=function(o){return t(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,o)},a.prototype.redSub=function(o){return t(this.red,"redSub works only with red numbers"),this.red.sub(this,o)},a.prototype.redISub=function(o){return t(this.red,"redISub works only with red numbers"),this.red.isub(this,o)},a.prototype.redShl=function(o){return t(this.red,"redShl works only with red numbers"),this.red.shl(this,o)},a.prototype.redMul=function(o){return t(this.red,"redMul works only with red numbers"),this.red._verify2(this,o),this.red.mul(this,o)},a.prototype.redIMul=function(o){return t(this.red,"redMul works only with red numbers"),this.red._verify2(this,o),this.red.imul(this,o)},a.prototype.redSqr=function(){return t(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return t(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return t(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return t(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return t(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(o){return t(this.red&&!o.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,o)};var j={k256:null,p224:null,p192:null,p25519:null};function H(g,o){this.name=g,this.p=new a(o,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}H.prototype._tmp=function(){var o=new a(null);return o.words=new Array(Math.ceil(this.n/13)),o},H.prototype.ireduce=function(o){var p=o,y;do this.split(p,this.tmp),p=this.imulK(p),p=p.iadd(this.tmp),y=p.bitLength();while(y>this.n);var h=y0?p.isub(this.p):p.strip!==void 0?p.strip():p._strip(),p},H.prototype.split=function(o,p){o.iushrn(this.n,0,p)},H.prototype.imulK=function(o){return o.imul(this.k)};function G(){H.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}n(G,H),G.prototype.split=function(o,p){for(var y=4194303,h=Math.min(o.length,9),v=0;v>>22,_=C}_>>>=22,o.words[v-10]=_,_===0&&o.length>10?o.length-=10:o.length-=9},G.prototype.imulK=function(o){o.words[o.length]=0,o.words[o.length+1]=0,o.length+=2;for(var p=0,y=0;y>>=26,o.words[y]=v,p=h}return p!==0&&(o.words[o.length++]=p),o},a._prime=function(o){if(j[o])return j[o];var p;if(o==="k256")p=new G;else if(o==="p224")p=new te;else if(o==="p192")p=new K;else if(o==="p25519")p=new ae;else throw new Error("Unknown prime "+o);return j[o]=p,p};function J(g){if(typeof g=="string"){var o=a._prime(g);this.m=o.p,this.prime=o}else t(g.gtn(1),"modulus must be greater than 1"),this.m=g,this.prime=null}J.prototype._verify1=function(o){t(o.negative===0,"red works only with positives"),t(o.red,"red works only with red numbers")},J.prototype._verify2=function(o,p){t((o.negative|p.negative)===0,"red works only with positives"),t(o.red&&o.red===p.red,"red works only with red numbers")},J.prototype.imod=function(o){return this.prime?this.prime.ireduce(o)._forceRed(this):o.umod(this.m)._forceRed(this)},J.prototype.neg=function(o){return o.isZero()?o.clone():this.m.sub(o)._forceRed(this)},J.prototype.add=function(o,p){this._verify2(o,p);var y=o.add(p);return y.cmp(this.m)>=0&&y.isub(this.m),y._forceRed(this)},J.prototype.iadd=function(o,p){this._verify2(o,p);var y=o.iadd(p);return y.cmp(this.m)>=0&&y.isub(this.m),y},J.prototype.sub=function(o,p){this._verify2(o,p);var y=o.sub(p);return y.cmpn(0)<0&&y.iadd(this.m),y._forceRed(this)},J.prototype.isub=function(o,p){this._verify2(o,p);var y=o.isub(p);return y.cmpn(0)<0&&y.iadd(this.m),y},J.prototype.shl=function(o,p){return this._verify1(o),this.imod(o.ushln(p))},J.prototype.imul=function(o,p){return this._verify2(o,p),this.imod(o.imul(p))},J.prototype.mul=function(o,p){return this._verify2(o,p),this.imod(o.mul(p))},J.prototype.isqr=function(o){return this.imul(o,o.clone())},J.prototype.sqr=function(o){return this.mul(o,o)},J.prototype.sqrt=function(o){if(o.isZero())return o.clone();var p=this.m.andln(3);if(t(p%2===1),p===3){var y=this.m.add(new a(1)).iushrn(2);return this.pow(o,y)}for(var h=this.m.subn(1),v=0;!h.isZero()&&h.andln(1)===0;)v++,h.iushrn(1);t(!h.isZero());var _=new a(1).toRed(this),C=_.redNeg(),m=this.m.subn(1).iushrn(1),u=this.m.bitLength();for(u=new a(2*u*u).toRed(this);this.pow(u,m).cmp(C)!==0;)u.redIAdd(C);for(var b=this.pow(u,h),R=this.pow(o,h.addn(1).iushrn(1)),S=this.pow(o,h),B=v;S.cmp(_)!==0;){for(var Z=S,W=0;Z.cmp(_)!==0;W++)Z=Z.redSqr();t(W=0;v--){for(var b=p.words[v],R=u-1;R>=0;R--){var S=b>>R&1;if(_!==h[0]&&(_=this.sqr(_)),S===0&&C===0){m=0;continue}C<<=1,C|=S,m++,!(m!==y&&(v!==0||R!==0))&&(_=this.mul(_,h[C]),m=0,C=0)}u=26}return _},J.prototype.convertTo=function(o){var p=o.umod(this.m);return p===o?p.clone():p},J.prototype.convertFrom=function(o){var p=o.clone();return p.red=null,p},a.mont=function(o){return new V(o)};function V(g){J.call(this,g),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new a(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}n(V,J),V.prototype.convertTo=function(o){return this.imod(o.ushln(this.shift))},V.prototype.convertFrom=function(o){var p=this.imod(o.mul(this.rinv));return p.red=null,p},V.prototype.imul=function(o,p){if(o.isZero()||p.isZero())return o.words[0]=0,o.length=1,o;var y=o.imul(p),h=y.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),v=y.isub(h).iushrn(this.shift),_=v;return v.cmp(this.m)>=0?_=v.isub(this.m):v.cmpn(0)<0&&(_=v.iadd(this.m)),_._forceRed(this)},V.prototype.mul=function(o,p){if(o.isZero()||p.isZero())return new a(0)._forceRed(this);var y=o.mul(p),h=y.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),v=y.isub(h).iushrn(this.shift),_=v;return v.cmp(this.m)>=0?_=v.isub(this.m):v.cmpn(0)<0&&(_=v.iadd(this.m)),_._forceRed(this)},V.prototype.invm=function(o){var p=this.imod(o._invmp(this.m).mul(this.r2));return p._forceRed(this)}})(typeof kU>"u"||kU,Spe)});var ZS=O((GZr,Ape)=>{"use strict";x();T();var GS=$i(),Pb=GS.Buffer,Fl={},Ul;for(Ul in GS)!GS.hasOwnProperty(Ul)||Ul==="SlowBuffer"||Ul==="Buffer"||(Fl[Ul]=GS[Ul]);var Rb=Fl.Buffer={};for(Ul in Pb)!Pb.hasOwnProperty(Ul)||Ul==="allocUnsafe"||Ul==="allocUnsafeSlow"||(Rb[Ul]=Pb[Ul]);Fl.Buffer.prototype=Pb.prototype;(!Rb.from||Rb.from===Uint8Array.from)&&(Rb.from=function(r,e,t){if(typeof r=="number")throw new TypeError('The "value" argument must not be of type number. Received type '+typeof r);if(r&&typeof r.length>"u")throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof r);return Pb(r,e,t)});Rb.alloc||(Rb.alloc=function(r,e,t){if(typeof r!="number")throw new TypeError('The "size" argument must be of type number. Received type '+typeof r);if(r<0||r>=2*(1<<30))throw new RangeError('The value "'+r+'" is invalid for option "size"');var n=Pb(r);return!e||e.length===0?n.fill(0):typeof t=="string"?n.fill(e,t):n.fill(e),n});if(!Fl.kStringMaxLength)try{Fl.kStringMaxLength=M.binding("buffer").kStringMaxLength}catch{}Fl.constants||(Fl.constants={MAX_LENGTH:Fl.kMaxLength},Fl.kStringMaxLength&&(Fl.constants.MAX_STRING_LENGTH=Fl.kStringMaxLength));Ape.exports=Fl});var JS=O(Mpe=>{"use strict";x();T();var rxt=jr();function Wl(r){this._reporterState={obj:null,path:[],options:r||{},errors:[]}}Mpe.Reporter=Wl;Wl.prototype.isError=function(e){return e instanceof Nb};Wl.prototype.save=function(){let e=this._reporterState;return{obj:e.obj,pathLen:e.path.length}};Wl.prototype.restore=function(e){let t=this._reporterState;t.obj=e.obj,t.path=t.path.slice(0,e.pathLen)};Wl.prototype.enterKey=function(e){return this._reporterState.path.push(e)};Wl.prototype.exitKey=function(e){let t=this._reporterState;t.path=t.path.slice(0,e-1)};Wl.prototype.leaveKey=function(e,t,n){let a=this._reporterState;this.exitKey(e),a.obj!==null&&(a.obj[t]=n)};Wl.prototype.path=function(){return this._reporterState.path.join("/")};Wl.prototype.enterObject=function(){let e=this._reporterState,t=e.obj;return e.obj={},t};Wl.prototype.leaveObject=function(e){let t=this._reporterState,n=t.obj;return t.obj=e,n};Wl.prototype.error=function(e){let t,n=this._reporterState,a=e instanceof Nb;if(a?t=e:t=new Nb(n.path.map(function(i){return"["+JSON.stringify(i)+"]"}).join(""),e.message||e,e.stack),!n.options.partial)throw t;return a||n.errors.push(t),t};Wl.prototype.wrapResult=function(e){let t=this._reporterState;return t.options.partial?{result:this.isError(e)?null:e,errors:t.errors}:e};function Nb(r,e){this.path=r,this.rethrow(e)}rxt(Nb,Error);Nb.prototype.rethrow=function(e){if(this.message=e+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,Nb),!this.stack)try{throw new Error(this.message)}catch(t){this.stack=t.stack}return this}});var Bb=O(AU=>{"use strict";x();T();var nxt=jr(),KS=JS().Reporter,Ob=ZS().Buffer;function jl(r,e){if(KS.call(this,e),!Ob.isBuffer(r)){this.error("Input not Buffer");return}this.base=r,this.offset=0,this.length=r.length}nxt(jl,KS);AU.DecoderBuffer=jl;jl.isDecoderBuffer=function(e){return e instanceof jl?!0:typeof e=="object"&&Ob.isBuffer(e.base)&&e.constructor.name==="DecoderBuffer"&&typeof e.offset=="number"&&typeof e.length=="number"&&typeof e.save=="function"&&typeof e.restore=="function"&&typeof e.isEmpty=="function"&&typeof e.readUInt8=="function"&&typeof e.skip=="function"&&typeof e.raw=="function"};jl.prototype.save=function(){return{offset:this.offset,reporter:KS.prototype.save.call(this)}};jl.prototype.restore=function(e){let t=new jl(this.base);return t.offset=e.offset,t.length=this.offset,this.offset=e.offset,KS.prototype.restore.call(this,e.reporter),t};jl.prototype.isEmpty=function(){return this.offset===this.length};jl.prototype.readUInt8=function(e){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(e||"DecoderBuffer overrun")};jl.prototype.skip=function(e,t){if(!(this.offset+e<=this.length))return this.error(t||"DecoderBuffer overrun");let n=new jl(this.base);return n._reporterState=this._reporterState,n.offset=this.offset,n.length=this.offset+e,this.offset+=e,n};jl.prototype.raw=function(e){return this.base.slice(e?e.offset:this.offset,this.length)};function Lb(r,e){if(Array.isArray(r))this.length=0,this.value=r.map(function(t){return Lb.isEncoderBuffer(t)||(t=new Lb(t,e)),this.length+=t.length,t},this);else if(typeof r=="number"){if(!(0<=r&&r<=255))return e.error("non-byte EncoderBuffer value");this.value=r,this.length=1}else if(typeof r=="string")this.value=r,this.length=Ob.byteLength(r);else if(Ob.isBuffer(r))this.value=r,this.length=r.length;else return e.error("Unsupported type: "+typeof r)}AU.EncoderBuffer=Lb;Lb.isEncoderBuffer=function(e){return e instanceof Lb?!0:typeof e=="object"&&e.constructor.name==="EncoderBuffer"&&typeof e.length=="number"&&typeof e.join=="function"};Lb.prototype.join=function(e,t){return e||(e=Ob.alloc(this.length)),t||(t=0),this.length===0||(Array.isArray(this.value)?this.value.forEach(function(n){n.join(e,t),t+=n.length}):(typeof this.value=="number"?e[t]=this.value:typeof this.value=="string"?e.write(this.value,t):Ob.isBuffer(this.value)&&this.value.copy(e,t),t+=this.length)),e}});var QS=O((tJr,Ppe)=>{"use strict";x();T();var axt=JS().Reporter,ixt=Bb().EncoderBuffer,sxt=Bb().DecoderBuffer,Oc=Xu(),Ipe=["seq","seqof","set","setof","objid","bool","gentime","utctime","null_","enum","int","objDesc","bitstr","bmpstr","charstr","genstr","graphstr","ia5str","iso646str","numstr","octstr","printstr","t61str","unistr","utf8str","videostr"],oxt=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(Ipe),cxt=["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"];function ci(r,e,t){let n={};this._baseState=n,n.name=t,n.enc=r,n.parent=e||null,n.children=null,n.tag=null,n.args=null,n.reverseArgs=null,n.choice=null,n.optional=!1,n.any=!1,n.obj=!1,n.use=null,n.useDecoder=null,n.key=null,n.default=null,n.explicit=null,n.implicit=null,n.contains=null,n.parent||(n.children=[],this._wrap())}Ppe.exports=ci;var uxt=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];ci.prototype.clone=function(){let e=this._baseState,t={};uxt.forEach(function(a){t[a]=e[a]});let n=new this.constructor(t.parent);return n._baseState=t,n};ci.prototype._wrap=function(){let e=this._baseState;oxt.forEach(function(t){this[t]=function(){let a=new this.constructor(this);return e.children.push(a),a[t].apply(a,arguments)}},this)};ci.prototype._init=function(e){let t=this._baseState;Oc(t.parent===null),e.call(this),t.children=t.children.filter(function(n){return n._baseState.parent===this},this),Oc.equal(t.children.length,1,"Root node can have only one child")};ci.prototype._useArgs=function(e){let t=this._baseState,n=e.filter(function(a){return a instanceof this.constructor},this);e=e.filter(function(a){return!(a instanceof this.constructor)},this),n.length!==0&&(Oc(t.children===null),t.children=n,n.forEach(function(a){a._baseState.parent=this},this)),e.length!==0&&(Oc(t.args===null),t.args=e,t.reverseArgs=e.map(function(a){if(typeof a!="object"||a.constructor!==Object)return a;let i={};return Object.keys(a).forEach(function(s){s==(s|0)&&(s|=0);let c=a[s];i[c]=s}),i}))};cxt.forEach(function(r){ci.prototype[r]=function(){let t=this._baseState;throw new Error(r+" not implemented for encoding: "+t.enc)}});Ipe.forEach(function(r){ci.prototype[r]=function(){let t=this._baseState,n=Array.prototype.slice.call(arguments);return Oc(t.tag===null),t.tag=r,this._useArgs(n),this}});ci.prototype.use=function(e){Oc(e);let t=this._baseState;return Oc(t.use===null),t.use=e,this};ci.prototype.optional=function(){let e=this._baseState;return e.optional=!0,this};ci.prototype.def=function(e){let t=this._baseState;return Oc(t.default===null),t.default=e,t.optional=!0,this};ci.prototype.explicit=function(e){let t=this._baseState;return Oc(t.explicit===null&&t.implicit===null),t.explicit=e,this};ci.prototype.implicit=function(e){let t=this._baseState;return Oc(t.explicit===null&&t.implicit===null),t.implicit=e,this};ci.prototype.obj=function(){let e=this._baseState,t=Array.prototype.slice.call(arguments);return e.obj=!0,t.length!==0&&this._useArgs(t),this};ci.prototype.key=function(e){let t=this._baseState;return Oc(t.key===null),t.key=e,this};ci.prototype.any=function(){let e=this._baseState;return e.any=!0,this};ci.prototype.choice=function(e){let t=this._baseState;return Oc(t.choice===null),t.choice=e,this._useArgs(Object.keys(e).map(function(n){return e[n]})),this};ci.prototype.contains=function(e){let t=this._baseState;return Oc(t.use===null),t.contains=e,this};ci.prototype._decode=function(e,t){let n=this._baseState;if(n.parent===null)return e.wrapResult(n.children[0]._decode(e,t));let a=n.default,i=!0,s=null;if(n.key!==null&&(s=e.enterKey(n.key)),n.optional){let l=null;if(n.explicit!==null?l=n.explicit:n.implicit!==null?l=n.implicit:n.tag!==null&&(l=n.tag),l===null&&!n.any){let d=e.save();try{n.choice===null?this._decodeGeneric(n.tag,e,t):this._decodeChoice(e,t),i=!0}catch{i=!1}e.restore(d)}else if(i=this._peekTag(e,l,n.any),e.isError(i))return i}let c;if(n.obj&&i&&(c=e.enterObject()),i){if(n.explicit!==null){let d=this._decodeTag(e,n.explicit);if(e.isError(d))return d;e=d}let l=e.offset;if(n.use===null&&n.choice===null){let d;n.any&&(d=e.save());let f=this._decodeTag(e,n.implicit!==null?n.implicit:n.tag,n.any);if(e.isError(f))return f;n.any?a=e.raw(d):e=f}if(t&&t.track&&n.tag!==null&&t.track(e.path(),l,e.length,"tagged"),t&&t.track&&n.tag!==null&&t.track(e.path(),e.offset,e.length,"content"),n.any||(n.choice===null?a=this._decodeGeneric(n.tag,e,t):a=this._decodeChoice(e,t)),e.isError(a))return a;if(!n.any&&n.choice===null&&n.children!==null&&n.children.forEach(function(f){f._decode(e,t)}),n.contains&&(n.tag==="octstr"||n.tag==="bitstr")){let d=new sxt(a);a=this._getUse(n.contains,e._reporterState.obj)._decode(d,t)}}return n.obj&&i&&(a=e.leaveObject(c)),n.key!==null&&(a!==null||i===!0)?e.leaveKey(s,n.key,a):s!==null&&e.exitKey(s),a};ci.prototype._decodeGeneric=function(e,t,n){let a=this._baseState;return e==="seq"||e==="set"?null:e==="seqof"||e==="setof"?this._decodeList(t,e,a.args[0],n):/str$/.test(e)?this._decodeStr(t,e,n):e==="objid"&&a.args?this._decodeObjid(t,a.args[0],a.args[1],n):e==="objid"?this._decodeObjid(t,null,null,n):e==="gentime"||e==="utctime"?this._decodeTime(t,e,n):e==="null_"?this._decodeNull(t,n):e==="bool"?this._decodeBool(t,n):e==="objDesc"?this._decodeStr(t,e,n):e==="int"||e==="enum"?this._decodeInt(t,a.args&&a.args[0],n):a.use!==null?this._getUse(a.use,t._reporterState.obj)._decode(t,n):t.error("unknown tag: "+e)};ci.prototype._getUse=function(e,t){let n=this._baseState;return n.useDecoder=this._use(e,t),Oc(n.useDecoder._baseState.parent===null),n.useDecoder=n.useDecoder._baseState.children[0],n.implicit!==n.useDecoder._baseState.implicit&&(n.useDecoder=n.useDecoder.clone(),n.useDecoder._baseState.implicit=n.implicit),n.useDecoder};ci.prototype._decodeChoice=function(e,t){let n=this._baseState,a=null,i=!1;return Object.keys(n.choice).some(function(s){let c=e.save(),l=n.choice[s];try{let d=l._decode(e,t);if(e.isError(d))return!1;a={type:s,value:d},i=!0}catch{return e.restore(c),!1}return!0},this),i?a:e.error("Choice not matched")};ci.prototype._createEncoderBuffer=function(e){return new ixt(e,this.reporter)};ci.prototype._encode=function(e,t,n){let a=this._baseState;if(a.default!==null&&a.default===e)return;let i=this._encodeValue(e,t,n);if(i!==void 0&&!this._skipDefault(i,t,n))return i};ci.prototype._encodeValue=function(e,t,n){let a=this._baseState;if(a.parent===null)return a.children[0]._encode(e,t||new axt);let i=null;if(this.reporter=t,a.optional&&e===void 0)if(a.default!==null)e=a.default;else return;let s=null,c=!1;if(a.any)i=this._createEncoderBuffer(e);else if(a.choice)i=this._encodeChoice(e,t);else if(a.contains)s=this._getUse(a.contains,n)._encode(e,t),c=!0;else if(a.children)s=a.children.map(function(l){if(l._baseState.tag==="null_")return l._encode(null,t,e);if(l._baseState.key===null)return t.error("Child should have a key");let d=t.enterKey(l._baseState.key);if(typeof e!="object")return t.error("Child expected, but input is not object");let f=l._encode(e[l._baseState.key],t,e);return t.leaveKey(d),f},this).filter(function(l){return l}),s=this._createEncoderBuffer(s);else if(a.tag==="seqof"||a.tag==="setof"){if(!(a.args&&a.args.length===1))return t.error("Too many args for : "+a.tag);if(!Array.isArray(e))return t.error("seqof/setof, but data is not Array");let l=this.clone();l._baseState.implicit=null,s=this._createEncoderBuffer(e.map(function(d){let f=this._baseState;return this._getUse(f.args[0],e)._encode(d,t)},l))}else a.use!==null?i=this._getUse(a.use,n)._encode(e,t):(s=this._encodePrimitive(a.tag,e),c=!0);if(!a.any&&a.choice===null){let l=a.implicit!==null?a.implicit:a.tag,d=a.implicit===null?"universal":"context";l===null?a.use===null&&t.error("Tag could be omitted only for .use()"):a.use===null&&(i=this._encodeComposite(l,c,d,s))}return a.explicit!==null&&(i=this._encodeComposite(a.explicit,!1,"context",i)),i};ci.prototype._encodeChoice=function(e,t){let n=this._baseState,a=n.choice[e.type];return a||Oc(!1,e.type+" not found in "+JSON.stringify(Object.keys(n.choice))),a._encode(e.value,t)};ci.prototype._encodePrimitive=function(e,t){let n=this._baseState;if(/str$/.test(e))return this._encodeStr(t,e);if(e==="objid"&&n.args)return this._encodeObjid(t,n.reverseArgs[0],n.args[1]);if(e==="objid")return this._encodeObjid(t,null,null);if(e==="gentime"||e==="utctime")return this._encodeTime(t,e);if(e==="null_")return this._encodeNull();if(e==="int"||e==="enum")return this._encodeInt(t,n.args&&n.reverseArgs[0]);if(e==="bool")return this._encodeBool(t);if(e==="objDesc")return this._encodeStr(t,e);throw new Error("Unsupported tag: "+e)};ci.prototype._isNumstr=function(e){return/^[0-9 ]*$/.test(e)};ci.prototype._isPrintstr=function(e){return/^[A-Za-z0-9 '()+,-./:=?]*$/.test(e)}});var XS=O(Eg=>{"use strict";x();T();function Rpe(r){let e={};return Object.keys(r).forEach(function(t){(t|0)==t&&(t=t|0);let n=r[t];e[n]=t}),e}Eg.tagClass={0:"universal",1:"application",2:"context",3:"private"};Eg.tagClassByName=Rpe(Eg.tagClass);Eg.tag={0:"end",1:"bool",2:"int",3:"bitstr",4:"octstr",5:"null_",6:"objid",7:"objDesc",8:"external",9:"real",10:"enum",11:"embed",12:"utf8str",13:"relativeOid",16:"seq",17:"set",18:"numstr",19:"printstr",20:"t61str",21:"videostr",22:"ia5str",23:"utctime",24:"gentime",25:"graphstr",26:"iso646str",27:"genstr",28:"unistr",29:"charstr",30:"bmpstr"};Eg.tagByName=Rpe(Eg.tag)});var IU=O((oJr,Lpe)=>{"use strict";x();T();var lxt=jr(),Ef=ZS().Buffer,Npe=QS(),MU=XS();function Ope(r){this.enc="der",this.name=r.name,this.entity=r,this.tree=new Kd,this.tree._init(r.body)}Lpe.exports=Ope;Ope.prototype.encode=function(e,t){return this.tree._encode(e,t).join()};function Kd(r){Npe.call(this,"der",r)}lxt(Kd,Npe);Kd.prototype._encodeComposite=function(e,t,n,a){let i=dxt(e,t,n,this.reporter);if(a.length<128){let l=Ef.alloc(2);return l[0]=i,l[1]=a.length,this._createEncoderBuffer([l,a])}let s=1;for(let l=a.length;l>=256;l>>=8)s++;let c=Ef.alloc(1+1+s);c[0]=i,c[1]=128|s;for(let l=1+s,d=a.length;d>0;l--,d>>=8)c[l]=d&255;return this._createEncoderBuffer([c,a])};Kd.prototype._encodeStr=function(e,t){if(t==="bitstr")return this._createEncoderBuffer([e.unused|0,e.data]);if(t==="bmpstr"){let n=Ef.alloc(e.length*2);for(let a=0;a=40)return this.reporter.error("Second objid identifier OOB");e.splice(0,2,e[0]*40+e[1])}let a=0;for(let c=0;c=128;l>>=7)a++}let i=Ef.alloc(a),s=i.length-1;for(let c=e.length-1;c>=0;c--){let l=e[c];for(i[s--]=l&127;(l>>=7)>0;)i[s--]=128|l&127}return this._createEncoderBuffer(i)};function zl(r){return r<10?"0"+r:r}Kd.prototype._encodeTime=function(e,t){let n,a=new Date(e);return t==="gentime"?n=[zl(a.getUTCFullYear()),zl(a.getUTCMonth()+1),zl(a.getUTCDate()),zl(a.getUTCHours()),zl(a.getUTCMinutes()),zl(a.getUTCSeconds()),"Z"].join(""):t==="utctime"?n=[zl(a.getUTCFullYear()%100),zl(a.getUTCMonth()+1),zl(a.getUTCDate()),zl(a.getUTCHours()),zl(a.getUTCMinutes()),zl(a.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+t+" time is not supported yet"),this._encodeStr(n,"octstr")};Kd.prototype._encodeNull=function(){return this._createEncoderBuffer("")};Kd.prototype._encodeInt=function(e,t){if(typeof e=="string"){if(!t)return this.reporter.error("String int or enum given, but no values map");if(!t.hasOwnProperty(e))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(e));e=t[e]}if(typeof e!="number"&&!Ef.isBuffer(e)){let i=e.toArray();!e.sign&&i[0]&128&&i.unshift(0),e=Ef.from(i)}if(Ef.isBuffer(e)){let i=e.length;e.length===0&&i++;let s=Ef.alloc(i);return e.copy(s),e.length===0&&(s[0]=0),this._createEncoderBuffer(s)}if(e<128)return this._createEncoderBuffer(e);if(e<256)return this._createEncoderBuffer([0,e]);let n=1;for(let i=e;i>=256;i>>=8)n++;let a=new Array(n);for(let i=a.length-1;i>=0;i--)a[i]=e&255,e>>=8;return a[0]&128&&a.unshift(0),this._createEncoderBuffer(Ef.from(a))};Kd.prototype._encodeBool=function(e){return this._createEncoderBuffer(e?255:0)};Kd.prototype._use=function(e,t){return typeof e=="function"&&(e=e(t)),e._getEncoder("der").tree};Kd.prototype._skipDefault=function(e,t,n){let a=this._baseState,i;if(a.default===null)return!1;let s=e.join();if(a.defaultBuffer===void 0&&(a.defaultBuffer=this._encodeValue(a.default,t,n).join()),s.length!==a.defaultBuffer.length)return!1;for(i=0;i=31?n.error("Multi-octet tag encoding unsupported"):(e||(a|=32),a|=MU.tagClassByName[t||"universal"]<<6,a)}});var qpe=O((lJr,Bpe)=>{"use strict";x();T();var pxt=jr(),PU=IU();function RU(r){PU.call(this,r),this.enc="pem"}pxt(RU,PU);Bpe.exports=RU;RU.prototype.encode=function(e,t){let a=PU.prototype.encode.call(this,e).toString("base64"),i=["-----BEGIN "+t.label+"-----"];for(let s=0;s{"use strict";x();T();var Dpe=Fpe;Dpe.der=IU();Dpe.pem=qpe()});var LU=O((yJr,Vpe)=>{"use strict";x();T();var hxt=jr(),fxt=SU(),Upe=Bb().DecoderBuffer,jpe=QS(),Wpe=XS();function zpe(r){this.enc="der",this.name=r.name,this.entity=r,this.tree=new $u,this.tree._init(r.body)}Vpe.exports=zpe;zpe.prototype.decode=function(e,t){return Upe.isDecoderBuffer(e)||(e=new Upe(e,t)),this.tree._decode(e,t)};function $u(r){jpe.call(this,"der",r)}hxt($u,jpe);$u.prototype._peekTag=function(e,t,n){if(e.isEmpty())return!1;let a=e.save(),i=OU(e,'Failed to peek tag: "'+t+'"');return e.isError(i)?i:(e.restore(a),i.tag===t||i.tagStr===t||i.tagStr+"of"===t||n)};$u.prototype._decodeTag=function(e,t,n){let a=OU(e,'Failed to decode tag of "'+t+'"');if(e.isError(a))return a;let i=Hpe(e,a.primitive,'Failed to get length of "'+t+'"');if(e.isError(i))return i;if(!n&&a.tag!==t&&a.tagStr!==t&&a.tagStr+"of"!==t)return e.error('Failed to match tag: "'+t+'"');if(a.primitive||i!==null)return e.skip(i,'Failed to match body of: "'+t+'"');let s=e.save(),c=this._skipUntilEnd(e,'Failed to skip indefinite length body: "'+this.tag+'"');return e.isError(c)?c:(i=e.offset-s.offset,e.restore(s),e.skip(i,'Failed to match body of: "'+t+'"'))};$u.prototype._skipUntilEnd=function(e,t){for(;;){let n=OU(e,t);if(e.isError(n))return n;let a=Hpe(e,n.primitive,t);if(e.isError(a))return a;let i;if(n.primitive||a!==null?i=e.skip(a):i=this._skipUntilEnd(e,t),e.isError(i))return i;if(n.tagStr==="end")break}};$u.prototype._decodeList=function(e,t,n,a){let i=[];for(;!e.isEmpty();){let s=this._peekTag(e,"end");if(e.isError(s))return s;let c=n.decode(e,"der",a);if(e.isError(c)&&s)break;i.push(c)}return i};$u.prototype._decodeStr=function(e,t){if(t==="bitstr"){let n=e.readUInt8();return e.isError(n)?n:{unused:n,data:e.raw()}}else if(t==="bmpstr"){let n=e.raw();if(n.length%2===1)return e.error("Decoding of string type: bmpstr length mismatch");let a="";for(let i=0;i>6],a=(t&32)===0;if((t&31)===31){let s=t;for(t=0;(s&128)===128;){if(s=r.readUInt8(e),r.isError(s))return s;t<<=7,t|=s&127}}else t&=31;let i=Wpe.tag[t];return{cls:n,primitive:a,tag:t,tagStr:i}}function Hpe(r,e,t){let n=r.readUInt8(t);if(r.isError(n))return n;if(!e&&n===128)return null;if((n&128)===0)return n;let a=n&127;if(a>4)return r.error("length octect is too long");n=0;for(let i=0;i{"use strict";x();T();var mxt=jr(),yxt=ZS().Buffer,BU=LU();function qU(r){BU.call(this,r),this.enc="pem"}mxt(qU,BU);Gpe.exports=qU;qU.prototype.decode=function(e,t){let n=e.toString().split(/[\r\n]+/g),a=t.label.toUpperCase(),i=/^-----(BEGIN|END) ([^-]+)-----$/,s=-1,c=-1;for(let f=0;f{"use strict";x();T();var Jpe=Kpe;Jpe.der=LU();Jpe.pem=Zpe()});var Xpe=O(Qpe=>{"use strict";x();T();var gxt=NU(),vxt=DU(),bxt=jr(),wxt=Qpe;wxt.define=function(e,t){return new qb(e,t)};function qb(r,e){this.name=r,this.body=e,this.decoders={},this.encoders={}}qb.prototype._createNamed=function(e){let t=this.name;function n(a){this._initNamed(a,t)}return bxt(n,e),n.prototype._initNamed=function(i,s){e.call(this,i,s)},new n(this)};qb.prototype._getDecoder=function(e){return e=e||"der",this.decoders.hasOwnProperty(e)||(this.decoders[e]=this._createNamed(vxt[e])),this.decoders[e]};qb.prototype.decode=function(e,t,n){return this._getDecoder(t).decode(e,n)};qb.prototype._getEncoder=function(e){return e=e||"der",this.encoders.hasOwnProperty(e)||(this.encoders[e]=this._createNamed(gxt[e])),this.encoders[e]};qb.prototype.encode=function(e,t,n){return this._getEncoder(t).encode(e,n)}});var $pe=O(Ype=>{"use strict";x();T();var YS=Ype;YS.Reporter=JS().Reporter;YS.DecoderBuffer=Bb().DecoderBuffer;YS.EncoderBuffer=Bb().EncoderBuffer;YS.Node=QS()});var rhe=O(the=>{"use strict";x();T();var ehe=the;ehe._reverse=function(e){let t={};return Object.keys(e).forEach(function(n){(n|0)==n&&(n=n|0);let a=e[n];t[a]=n}),t};ehe.der=XS()});var FU=O(nhe=>{"use strict";x();T();var Db=nhe;Db.bignum=SU();Db.define=Xpe().define;Db.base=$pe();Db.constants=rhe();Db.decoders=DU();Db.encoders=NU()});var ohe=O((qJr,she)=>{"use strict";x();T();var Qd=FU(),ahe=Qd.define("Time",function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})}),xxt=Qd.define("AttributeTypeValue",function(){this.seq().obj(this.key("type").objid(),this.key("value").any())}),UU=Qd.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional(),this.key("curve").objid().optional())}),Txt=Qd.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(UU),this.key("subjectPublicKey").bitstr())}),_xt=Qd.define("RelativeDistinguishedName",function(){this.setof(xxt)}),Cxt=Qd.define("RDNSequence",function(){this.seqof(_xt)}),ihe=Qd.define("Name",function(){this.choice({rdnSequence:this.use(Cxt)})}),Ext=Qd.define("Validity",function(){this.seq().obj(this.key("notBefore").use(ahe),this.key("notAfter").use(ahe))}),kxt=Qd.define("Extension",function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())}),Sxt=Qd.define("TBSCertificate",function(){this.seq().obj(this.key("version").explicit(0).int().optional(),this.key("serialNumber").int(),this.key("signature").use(UU),this.key("issuer").use(ihe),this.key("validity").use(Ext),this.key("subject").use(ihe),this.key("subjectPublicKeyInfo").use(Txt),this.key("issuerUniqueID").implicit(1).bitstr().optional(),this.key("subjectUniqueID").implicit(2).bitstr().optional(),this.key("extensions").explicit(3).seqof(kxt).optional())}),Axt=Qd.define("X509Certificate",function(){this.seq().obj(this.key("tbsCertificate").use(Sxt),this.key("signatureAlgorithm").use(UU),this.key("signatureValue").bitstr())});she.exports=Axt});var uhe=O(Yd=>{"use strict";x();T();var Xd=FU();Yd.certificate=ohe();var Mxt=Xd.define("RSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("modulus").int(),this.key("publicExponent").int(),this.key("privateExponent").int(),this.key("prime1").int(),this.key("prime2").int(),this.key("exponent1").int(),this.key("exponent2").int(),this.key("coefficient").int())});Yd.RSAPrivateKey=Mxt;var Ixt=Xd.define("RSAPublicKey",function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())});Yd.RSAPublicKey=Ixt;var Pxt=Xd.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(che),this.key("subjectPublicKey").bitstr())});Yd.PublicKey=Pxt;var che=Xd.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("none").null_().optional(),this.key("curve").objid().optional(),this.key("params").seq().obj(this.key("p").int(),this.key("q").int(),this.key("g").int()).optional())}),Rxt=Xd.define("PrivateKeyInfo",function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(che),this.key("subjectPrivateKey").octstr())});Yd.PrivateKey=Rxt;var Nxt=Xd.define("EncryptedPrivateKeyInfo",function(){this.seq().obj(this.key("algorithm").seq().obj(this.key("id").objid(),this.key("decrypt").seq().obj(this.key("kde").seq().obj(this.key("id").objid(),this.key("kdeparams").seq().obj(this.key("salt").octstr(),this.key("iters").int())),this.key("cipher").seq().obj(this.key("algo").objid(),this.key("iv").octstr()))),this.key("subjectPrivateKey").octstr())});Yd.EncryptedPrivateKey=Nxt;var Oxt=Xd.define("DSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("p").int(),this.key("q").int(),this.key("g").int(),this.key("pub_key").int(),this.key("priv_key").int())});Yd.DSAPrivateKey=Oxt;Yd.DSAparam=Xd.define("DSAparam",function(){this.int()});var Lxt=Xd.define("ECPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(Bxt),this.key("publicKey").optional().explicit(1).bitstr())});Yd.ECPrivateKey=Lxt;var Bxt=Xd.define("ECParameters",function(){this.choice({namedCurve:this.objid()})});Yd.signature=Xd.define("signature",function(){this.seq().obj(this.key("r").int(),this.key("s").int())})});var lhe=O((zJr,qxt)=>{qxt.exports={"2.16.840.1.101.3.4.1.1":"aes-128-ecb","2.16.840.1.101.3.4.1.2":"aes-128-cbc","2.16.840.1.101.3.4.1.3":"aes-128-ofb","2.16.840.1.101.3.4.1.4":"aes-128-cfb","2.16.840.1.101.3.4.1.21":"aes-192-ecb","2.16.840.1.101.3.4.1.22":"aes-192-cbc","2.16.840.1.101.3.4.1.23":"aes-192-ofb","2.16.840.1.101.3.4.1.24":"aes-192-cfb","2.16.840.1.101.3.4.1.41":"aes-256-ecb","2.16.840.1.101.3.4.1.42":"aes-256-cbc","2.16.840.1.101.3.4.1.43":"aes-256-ofb","2.16.840.1.101.3.4.1.44":"aes-256-cfb"}});var phe=O((HJr,dhe)=>{x();T();var Dxt=/Proc-Type: 4,ENCRYPTED[\n\r]+DEK-Info: AES-((?:128)|(?:192)|(?:256))-CBC,([0-9A-H]+)[\n\r]+([0-9A-z\n\r+/=]+)[\n\r]+/m,Fxt=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----/m,Uxt=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z\n\r+/=]+)-----END \1-----$/m,Wxt=g6(),jxt=WS(),$S=Zr().Buffer;dhe.exports=function(r,e){var t=r.toString(),n=t.match(Dxt),a;if(n){var s="aes"+n[1],c=$S.from(n[2],"hex"),l=$S.from(n[3].replace(/[\r\n]/g,""),"base64"),d=Wxt(e,c.slice(0,8),parseInt(n[1],10)).key,f=[],w=jxt.createDecipheriv(s,d,c);f.push(w.update(l)),f.push(w.final()),a=$S.concat(f)}else{var i=t.match(Uxt);a=$S.from(i[2].replace(/[\r\n]/g,""),"base64")}var E=t.match(Fxt)[1];return{tag:E,data:a}}});var w6=O((ZJr,fhe)=>{x();T();var lu=uhe(),zxt=lhe(),Hxt=phe(),Vxt=WS(),Gxt=QF(),WU=Zr().Buffer;fhe.exports=hhe;function hhe(r){var e;typeof r=="object"&&!WU.isBuffer(r)&&(e=r.passphrase,r=r.key),typeof r=="string"&&(r=WU.from(r));var t=Hxt(r,e),n=t.tag,a=t.data,i,s;switch(n){case"CERTIFICATE":s=lu.certificate.decode(a,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(s||(s=lu.PublicKey.decode(a,"der")),i=s.algorithm.algorithm.join("."),i){case"1.2.840.113549.1.1.1":return lu.RSAPublicKey.decode(s.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return s.subjectPrivateKey=s.subjectPublicKey,{type:"ec",data:s};case"1.2.840.10040.4.1":return s.algorithm.params.pub_key=lu.DSAparam.decode(s.subjectPublicKey.data,"der"),{type:"dsa",data:s.algorithm.params};default:throw new Error("unknown key id "+i)}case"ENCRYPTED PRIVATE KEY":a=lu.EncryptedPrivateKey.decode(a,"der"),a=Zxt(a,e);case"PRIVATE KEY":switch(s=lu.PrivateKey.decode(a,"der"),i=s.algorithm.algorithm.join("."),i){case"1.2.840.113549.1.1.1":return lu.RSAPrivateKey.decode(s.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:s.algorithm.curve,privateKey:lu.ECPrivateKey.decode(s.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return s.algorithm.params.priv_key=lu.DSAparam.decode(s.subjectPrivateKey,"der"),{type:"dsa",params:s.algorithm.params};default:throw new Error("unknown key id "+i)}case"RSA PUBLIC KEY":return lu.RSAPublicKey.decode(a,"der");case"RSA PRIVATE KEY":return lu.RSAPrivateKey.decode(a,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:lu.DSAPrivateKey.decode(a,"der")};case"EC PRIVATE KEY":return a=lu.ECPrivateKey.decode(a,"der"),{curve:a.parameters.value,privateKey:a.privateKey};default:throw new Error("unknown key type "+n)}}hhe.signature=lu.signature;function Zxt(r,e){var t=r.algorithm.decrypt.kde.kdeparams.salt,n=parseInt(r.algorithm.decrypt.kde.kdeparams.iters.toString(),10),a=zxt[r.algorithm.decrypt.cipher.algo.join(".")],i=r.algorithm.decrypt.cipher.iv,s=r.subjectPrivateKey,c=parseInt(a.split("-")[1],10)/8,l=Gxt.pbkdf2Sync(e,t,n,c,"sha1"),d=Vxt.createDecipheriv(a,l,i),f=[];return f.push(d.update(s)),f.push(d.final()),WU.concat(f)}});var jU=O((QJr,Jxt)=>{Jxt.exports={"1.3.132.0.10":"secp256k1","1.3.132.0.33":"p224","1.2.840.10045.3.1.1":"p192","1.2.840.10045.3.1.7":"p256","1.3.132.0.34":"p384","1.3.132.0.35":"p521"}});var ghe=O((XJr,tA)=>{x();T();var Io=Zr().Buffer,kg=UF(),Kxt=VS(),Qxt=x6().ec,eA=Xr(),Xxt=w6(),Yxt=jU();function $xt(r,e,t,n,a){var i=Xxt(e);if(i.curve){if(n!=="ecdsa"&&n!=="ecdsa/rsa")throw new Error("wrong private key type");return e5t(r,i)}else if(i.type==="dsa"){if(n!=="dsa")throw new Error("wrong private key type");return t5t(r,i,t)}else if(n!=="rsa"&&n!=="ecdsa/rsa")throw new Error("wrong private key type");r=Io.concat([a,r]);for(var s=i.modulus.byteLength(),c=[0,1];r.length+c.length+10&&t.ishrn(n),t}function n5t(r,e){r=zU(r,e),r=r.mod(e);var t=Io.from(r.toArray());if(t.length{x();T();var HU=Zr().Buffer,T6=Xr(),i5t=x6().ec,bhe=w6(),s5t=jU();function o5t(r,e,t,n,a){var i=bhe(t);if(i.type==="ec"){if(n!=="ecdsa"&&n!=="ecdsa/rsa")throw new Error("wrong public key type");return c5t(r,e,i)}else if(i.type==="dsa"){if(n!=="dsa")throw new Error("wrong public key type");return u5t(r,e,i)}else if(n!=="rsa"&&n!=="ecdsa/rsa")throw new Error("wrong public key type");e=HU.concat([a,e]);for(var s=i.modulus.byteLength(),c=[1],l=0;e.length+c.length+2=e)throw new Error("invalid sig")}whe.exports=o5t});var She=O((nKr,khe)=>{x();T();var rA=Zr().Buffer,Che=_b(),nA=Y3(),Ehe=jr(),l5t=ghe(),d5t=xhe(),Sg=WF();Object.keys(Sg).forEach(function(r){Sg[r].id=rA.from(Sg[r].id,"hex"),Sg[r.toLowerCase()]=Sg[r]});function _6(r){nA.Writable.call(this);var e=Sg[r];if(!e)throw new Error("Unknown message digest");this._hashType=e.hash,this._hash=Che(e.hash),this._tag=e.id,this._signType=e.sign}Ehe(_6,nA.Writable);_6.prototype._write=function(e,t,n){this._hash.update(e),n()};_6.prototype.update=function(e,t){return typeof e=="string"&&(e=rA.from(e,t)),this._hash.update(e),this};_6.prototype.sign=function(e,t){this.end();var n=this._hash.digest(),a=l5t(n,e,this._hashType,this._signType,this._tag);return t?a.toString(t):a};function C6(r){nA.Writable.call(this);var e=Sg[r];if(!e)throw new Error("Unknown message digest");this._hash=Che(e.hash),this._tag=e.id,this._signType=e.sign}Ehe(C6,nA.Writable);C6.prototype._write=function(e,t,n){this._hash.update(e),n()};C6.prototype.update=function(e,t){return typeof e=="string"&&(e=rA.from(e,t)),this._hash.update(e),this};C6.prototype.verify=function(e,t,n){typeof t=="string"&&(t=rA.from(t,n)),this.end();var a=this._hash.digest();return d5t(t,a,e,this._signType,this._tag)};function The(r){return new _6(r)}function _he(r){return new C6(r)}khe.exports={Sign:The,Verify:_he,createSign:The,createVerify:_he}});var Mhe=O((Ahe,VU)=>{x();T();(function(r,e){"use strict";function t(g,o){if(!g)throw new Error(o||"Assertion failed")}function n(g,o){g.super_=o;var p=function(){};p.prototype=o.prototype,g.prototype=new p,g.prototype.constructor=g}function a(g,o,p){if(a.isBN(g))return g;this.negative=0,this.words=null,this.length=0,this.red=null,g!==null&&((o==="le"||o==="be")&&(p=o,o=10),this._init(g||0,o||10,p||"be"))}typeof r=="object"?r.exports=a:e.BN=a,a.BN=a,a.wordSize=26;var i;try{typeof window<"u"&&typeof window.Buffer<"u"?i=window.Buffer:i=$i().Buffer}catch{}a.isBN=function(o){return o instanceof a?!0:o!==null&&typeof o=="object"&&o.constructor.wordSize===a.wordSize&&Array.isArray(o.words)},a.max=function(o,p){return o.cmp(p)>0?o:p},a.min=function(o,p){return o.cmp(p)<0?o:p},a.prototype._init=function(o,p,y){if(typeof o=="number")return this._initNumber(o,p,y);if(typeof o=="object")return this._initArray(o,p,y);p==="hex"&&(p=16),t(p===(p|0)&&p>=2&&p<=36),o=o.toString().replace(/\s+/g,"");var h=0;o[0]==="-"&&(h++,this.negative=1),h=0;h-=3)_=o[h]|o[h-1]<<8|o[h-2]<<16,this.words[v]|=_<>>26-C&67108863,C+=24,C>=26&&(C-=26,v++);else if(y==="le")for(h=0,v=0;h>>26-C&67108863,C+=24,C>=26&&(C-=26,v++);return this.strip()};function s(g,o){var p=g.charCodeAt(o);return p>=65&&p<=70?p-55:p>=97&&p<=102?p-87:p-48&15}function c(g,o,p){var y=s(g,p);return p-1>=o&&(y|=s(g,p-1)<<4),y}a.prototype._parseHex=function(o,p,y){this.length=Math.ceil((o.length-p)/6),this.words=new Array(this.length);for(var h=0;h=p;h-=2)C=c(o,p,h)<=18?(v-=18,_+=1,this.words[_]|=C>>>26):v+=8;else{var m=o.length-p;for(h=m%2===0?p+1:p;h=18?(v-=18,_+=1,this.words[_]|=C>>>26):v+=8}this.strip()};function l(g,o,p,y){for(var h=0,v=Math.min(g.length,p),_=o;_=49?h+=C-49+10:C>=17?h+=C-17+10:h+=C}return h}a.prototype._parseBase=function(o,p,y){this.words=[0],this.length=1;for(var h=0,v=1;v<=67108863;v*=p)h++;h--,v=v/p|0;for(var _=o.length-y,C=_%h,m=Math.min(_,_-C)+y,u=0,b=y;b1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},a.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},a.prototype.inspect=function(){return(this.red?""};var d=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],f=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],w=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];a.prototype.toString=function(o,p){o=o||10,p=p|0||1;var y;if(o===16||o==="hex"){y="";for(var h=0,v=0,_=0;_>>24-h&16777215,v!==0||_!==this.length-1?y=d[6-m.length]+m+y:y=m+y,h+=2,h>=26&&(h-=26,_--)}for(v!==0&&(y=v.toString(16)+y);y.length%p!==0;)y="0"+y;return this.negative!==0&&(y="-"+y),y}if(o===(o|0)&&o>=2&&o<=36){var u=f[o],b=w[o];y="";var R=this.clone();for(R.negative=0;!R.isZero();){var S=R.modn(b).toString(o);R=R.idivn(b),R.isZero()?y=S+y:y=d[u-S.length]+S+y}for(this.isZero()&&(y="0"+y);y.length%p!==0;)y="0"+y;return this.negative!==0&&(y="-"+y),y}t(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var o=this.words[0];return this.length===2?o+=this.words[1]*67108864:this.length===3&&this.words[2]===1?o+=4503599627370496+this.words[1]*67108864:this.length>2&&t(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-o:o},a.prototype.toJSON=function(){return this.toString(16)},a.prototype.toBuffer=function(o,p){return t(typeof i<"u"),this.toArrayLike(i,o,p)},a.prototype.toArray=function(o,p){return this.toArrayLike(Array,o,p)},a.prototype.toArrayLike=function(o,p,y){var h=this.byteLength(),v=y||Math.max(1,h);t(h<=v,"byte array longer than desired length"),t(v>0,"Requested array length <= 0"),this.strip();var _=p==="le",C=new o(v),m,u,b=this.clone();if(_){for(u=0;!b.isZero();u++)m=b.andln(255),b.iushrn(8),C[u]=m;for(;u=4096&&(y+=13,p>>>=13),p>=64&&(y+=7,p>>>=7),p>=8&&(y+=4,p>>>=4),p>=2&&(y+=2,p>>>=2),y+p},a.prototype._zeroBits=function(o){if(o===0)return 26;var p=o,y=0;return(p&8191)===0&&(y+=13,p>>>=13),(p&127)===0&&(y+=7,p>>>=7),(p&15)===0&&(y+=4,p>>>=4),(p&3)===0&&(y+=2,p>>>=2),(p&1)===0&&y++,y},a.prototype.bitLength=function(){var o=this.words[this.length-1],p=this._countBits(o);return(this.length-1)*26+p};function E(g){for(var o=new Array(g.bitLength()),p=0;p>>h}return o}a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var o=0,p=0;po.length?this.clone().ior(o):o.clone().ior(this)},a.prototype.uor=function(o){return this.length>o.length?this.clone().iuor(o):o.clone().iuor(this)},a.prototype.iuand=function(o){var p;this.length>o.length?p=o:p=this;for(var y=0;yo.length?this.clone().iand(o):o.clone().iand(this)},a.prototype.uand=function(o){return this.length>o.length?this.clone().iuand(o):o.clone().iuand(this)},a.prototype.iuxor=function(o){var p,y;this.length>o.length?(p=this,y=o):(p=o,y=this);for(var h=0;ho.length?this.clone().ixor(o):o.clone().ixor(this)},a.prototype.uxor=function(o){return this.length>o.length?this.clone().iuxor(o):o.clone().iuxor(this)},a.prototype.inotn=function(o){t(typeof o=="number"&&o>=0);var p=Math.ceil(o/26)|0,y=o%26;this._expand(p),y>0&&p--;for(var h=0;h0&&(this.words[h]=~this.words[h]&67108863>>26-y),this.strip()},a.prototype.notn=function(o){return this.clone().inotn(o)},a.prototype.setn=function(o,p){t(typeof o=="number"&&o>=0);var y=o/26|0,h=o%26;return this._expand(y+1),p?this.words[y]=this.words[y]|1<o.length?(y=this,h=o):(y=o,h=this);for(var v=0,_=0;_>>26;for(;v!==0&&_>>26;if(this.length=y.length,v!==0)this.words[this.length]=v,this.length++;else if(y!==this)for(;_o.length?this.clone().iadd(o):o.clone().iadd(this)},a.prototype.isub=function(o){if(o.negative!==0){o.negative=0;var p=this.iadd(o);return o.negative=1,p._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(o),this.negative=1,this._normSign();var y=this.cmp(o);if(y===0)return this.negative=0,this.length=1,this.words[0]=0,this;var h,v;y>0?(h=this,v=o):(h=o,v=this);for(var _=0,C=0;C>26,this.words[C]=p&67108863;for(;_!==0&&C>26,this.words[C]=p&67108863;if(_===0&&C>>26,R=m&67108863,S=Math.min(u,o.length-1),B=Math.max(0,u-g.length+1);B<=S;B++){var Z=u-B|0;h=g.words[Z]|0,v=o.words[B]|0,_=h*v+R,b+=_/67108864|0,R=_&67108863}p.words[u]=R|0,m=b|0}return m!==0?p.words[u]=m|0:p.length--,p.strip()}var A=function(o,p,y){var h=o.words,v=p.words,_=y.words,C=0,m,u,b,R=h[0]|0,S=R&8191,B=R>>>13,Z=h[1]|0,W=Z&8191,X=Z>>>13,de=h[2]|0,ne=de&8191,pe=de>>>13,pt=h[3]|0,fe=pt&8191,be=pt>>>13,Tt=h[4]|0,we=Tt&8191,Oe=Tt>>>13,Pt=h[5]|0,Be=Pt&8191,ze=Pt>>>13,At=h[6]|0,Me=At&8191,Ve=At>>>13,St=h[7]|0,Ie=St&8191,Ze=St>>>13,Ut=h[8]|0,qe=Ut&8191,Xe=Ut>>>13,Ht=h[9]|0,Ae=Ht&8191,Ke=Ht>>>13,Gt=v[0]|0,Pe=Gt&8191,Qe=Gt>>>13,Zt=v[1]|0,Re=Zt&8191,Ye=Zt>>>13,Jt=v[2]|0,Ne=Jt&8191,$e=Jt>>>13,Vt=v[3]|0,Se=Vt&8191,et=Vt>>>13,Rt=v[4]|0,Le=Rt&8191,tt=Rt>>>13,Kt=v[5]|0,De=Kt&8191,rt=Kt>>>13,Qt=v[6]|0,ke=Qt&8191,Je=Qt>>>13,Xt=v[7]|0,Ue=Xt&8191,st=Xt>>>13,rr=v[8]|0,We=rr&8191,nt=rr>>>13,ir=v[9]|0,je=ir&8191,at=ir>>>13;y.negative=o.negative^p.negative,y.length=19,m=Math.imul(S,Pe),u=Math.imul(S,Qe),u=u+Math.imul(B,Pe)|0,b=Math.imul(B,Qe);var Lr=(C+m|0)+((u&8191)<<13)|0;C=(b+(u>>>13)|0)+(Lr>>>26)|0,Lr&=67108863,m=Math.imul(W,Pe),u=Math.imul(W,Qe),u=u+Math.imul(X,Pe)|0,b=Math.imul(X,Qe),m=m+Math.imul(S,Re)|0,u=u+Math.imul(S,Ye)|0,u=u+Math.imul(B,Re)|0,b=b+Math.imul(B,Ye)|0;var Wt=(C+m|0)+((u&8191)<<13)|0;C=(b+(u>>>13)|0)+(Wt>>>26)|0,Wt&=67108863,m=Math.imul(ne,Pe),u=Math.imul(ne,Qe),u=u+Math.imul(pe,Pe)|0,b=Math.imul(pe,Qe),m=m+Math.imul(W,Re)|0,u=u+Math.imul(W,Ye)|0,u=u+Math.imul(X,Re)|0,b=b+Math.imul(X,Ye)|0,m=m+Math.imul(S,Ne)|0,u=u+Math.imul(S,$e)|0,u=u+Math.imul(B,Ne)|0,b=b+Math.imul(B,$e)|0;var jt=(C+m|0)+((u&8191)<<13)|0;C=(b+(u>>>13)|0)+(jt>>>26)|0,jt&=67108863,m=Math.imul(fe,Pe),u=Math.imul(fe,Qe),u=u+Math.imul(be,Pe)|0,b=Math.imul(be,Qe),m=m+Math.imul(ne,Re)|0,u=u+Math.imul(ne,Ye)|0,u=u+Math.imul(pe,Re)|0,b=b+Math.imul(pe,Ye)|0,m=m+Math.imul(W,Ne)|0,u=u+Math.imul(W,$e)|0,u=u+Math.imul(X,Ne)|0,b=b+Math.imul(X,$e)|0,m=m+Math.imul(S,Se)|0,u=u+Math.imul(S,et)|0,u=u+Math.imul(B,Se)|0,b=b+Math.imul(B,et)|0;var Er=(C+m|0)+((u&8191)<<13)|0;C=(b+(u>>>13)|0)+(Er>>>26)|0,Er&=67108863,m=Math.imul(we,Pe),u=Math.imul(we,Qe),u=u+Math.imul(Oe,Pe)|0,b=Math.imul(Oe,Qe),m=m+Math.imul(fe,Re)|0,u=u+Math.imul(fe,Ye)|0,u=u+Math.imul(be,Re)|0,b=b+Math.imul(be,Ye)|0,m=m+Math.imul(ne,Ne)|0,u=u+Math.imul(ne,$e)|0,u=u+Math.imul(pe,Ne)|0,b=b+Math.imul(pe,$e)|0,m=m+Math.imul(W,Se)|0,u=u+Math.imul(W,et)|0,u=u+Math.imul(X,Se)|0,b=b+Math.imul(X,et)|0,m=m+Math.imul(S,Le)|0,u=u+Math.imul(S,tt)|0,u=u+Math.imul(B,Le)|0,b=b+Math.imul(B,tt)|0;var kr=(C+m|0)+((u&8191)<<13)|0;C=(b+(u>>>13)|0)+(kr>>>26)|0,kr&=67108863,m=Math.imul(Be,Pe),u=Math.imul(Be,Qe),u=u+Math.imul(ze,Pe)|0,b=Math.imul(ze,Qe),m=m+Math.imul(we,Re)|0,u=u+Math.imul(we,Ye)|0,u=u+Math.imul(Oe,Re)|0,b=b+Math.imul(Oe,Ye)|0,m=m+Math.imul(fe,Ne)|0,u=u+Math.imul(fe,$e)|0,u=u+Math.imul(be,Ne)|0,b=b+Math.imul(be,$e)|0,m=m+Math.imul(ne,Se)|0,u=u+Math.imul(ne,et)|0,u=u+Math.imul(pe,Se)|0,b=b+Math.imul(pe,et)|0,m=m+Math.imul(W,Le)|0,u=u+Math.imul(W,tt)|0,u=u+Math.imul(X,Le)|0,b=b+Math.imul(X,tt)|0,m=m+Math.imul(S,De)|0,u=u+Math.imul(S,rt)|0,u=u+Math.imul(B,De)|0,b=b+Math.imul(B,rt)|0;var Sr=(C+m|0)+((u&8191)<<13)|0;C=(b+(u>>>13)|0)+(Sr>>>26)|0,Sr&=67108863,m=Math.imul(Me,Pe),u=Math.imul(Me,Qe),u=u+Math.imul(Ve,Pe)|0,b=Math.imul(Ve,Qe),m=m+Math.imul(Be,Re)|0,u=u+Math.imul(Be,Ye)|0,u=u+Math.imul(ze,Re)|0,b=b+Math.imul(ze,Ye)|0,m=m+Math.imul(we,Ne)|0,u=u+Math.imul(we,$e)|0,u=u+Math.imul(Oe,Ne)|0,b=b+Math.imul(Oe,$e)|0,m=m+Math.imul(fe,Se)|0,u=u+Math.imul(fe,et)|0,u=u+Math.imul(be,Se)|0,b=b+Math.imul(be,et)|0,m=m+Math.imul(ne,Le)|0,u=u+Math.imul(ne,tt)|0,u=u+Math.imul(pe,Le)|0,b=b+Math.imul(pe,tt)|0,m=m+Math.imul(W,De)|0,u=u+Math.imul(W,rt)|0,u=u+Math.imul(X,De)|0,b=b+Math.imul(X,rt)|0,m=m+Math.imul(S,ke)|0,u=u+Math.imul(S,Je)|0,u=u+Math.imul(B,ke)|0,b=b+Math.imul(B,Je)|0;var Ar=(C+m|0)+((u&8191)<<13)|0;C=(b+(u>>>13)|0)+(Ar>>>26)|0,Ar&=67108863,m=Math.imul(Ie,Pe),u=Math.imul(Ie,Qe),u=u+Math.imul(Ze,Pe)|0,b=Math.imul(Ze,Qe),m=m+Math.imul(Me,Re)|0,u=u+Math.imul(Me,Ye)|0,u=u+Math.imul(Ve,Re)|0,b=b+Math.imul(Ve,Ye)|0,m=m+Math.imul(Be,Ne)|0,u=u+Math.imul(Be,$e)|0,u=u+Math.imul(ze,Ne)|0,b=b+Math.imul(ze,$e)|0,m=m+Math.imul(we,Se)|0,u=u+Math.imul(we,et)|0,u=u+Math.imul(Oe,Se)|0,b=b+Math.imul(Oe,et)|0,m=m+Math.imul(fe,Le)|0,u=u+Math.imul(fe,tt)|0,u=u+Math.imul(be,Le)|0,b=b+Math.imul(be,tt)|0,m=m+Math.imul(ne,De)|0,u=u+Math.imul(ne,rt)|0,u=u+Math.imul(pe,De)|0,b=b+Math.imul(pe,rt)|0,m=m+Math.imul(W,ke)|0,u=u+Math.imul(W,Je)|0,u=u+Math.imul(X,ke)|0,b=b+Math.imul(X,Je)|0,m=m+Math.imul(S,Ue)|0,u=u+Math.imul(S,st)|0,u=u+Math.imul(B,Ue)|0,b=b+Math.imul(B,st)|0;var Mr=(C+m|0)+((u&8191)<<13)|0;C=(b+(u>>>13)|0)+(Mr>>>26)|0,Mr&=67108863,m=Math.imul(qe,Pe),u=Math.imul(qe,Qe),u=u+Math.imul(Xe,Pe)|0,b=Math.imul(Xe,Qe),m=m+Math.imul(Ie,Re)|0,u=u+Math.imul(Ie,Ye)|0,u=u+Math.imul(Ze,Re)|0,b=b+Math.imul(Ze,Ye)|0,m=m+Math.imul(Me,Ne)|0,u=u+Math.imul(Me,$e)|0,u=u+Math.imul(Ve,Ne)|0,b=b+Math.imul(Ve,$e)|0,m=m+Math.imul(Be,Se)|0,u=u+Math.imul(Be,et)|0,u=u+Math.imul(ze,Se)|0,b=b+Math.imul(ze,et)|0,m=m+Math.imul(we,Le)|0,u=u+Math.imul(we,tt)|0,u=u+Math.imul(Oe,Le)|0,b=b+Math.imul(Oe,tt)|0,m=m+Math.imul(fe,De)|0,u=u+Math.imul(fe,rt)|0,u=u+Math.imul(be,De)|0,b=b+Math.imul(be,rt)|0,m=m+Math.imul(ne,ke)|0,u=u+Math.imul(ne,Je)|0,u=u+Math.imul(pe,ke)|0,b=b+Math.imul(pe,Je)|0,m=m+Math.imul(W,Ue)|0,u=u+Math.imul(W,st)|0,u=u+Math.imul(X,Ue)|0,b=b+Math.imul(X,st)|0,m=m+Math.imul(S,We)|0,u=u+Math.imul(S,nt)|0,u=u+Math.imul(B,We)|0,b=b+Math.imul(B,nt)|0;var Kr=(C+m|0)+((u&8191)<<13)|0;C=(b+(u>>>13)|0)+(Kr>>>26)|0,Kr&=67108863,m=Math.imul(Ae,Pe),u=Math.imul(Ae,Qe),u=u+Math.imul(Ke,Pe)|0,b=Math.imul(Ke,Qe),m=m+Math.imul(qe,Re)|0,u=u+Math.imul(qe,Ye)|0,u=u+Math.imul(Xe,Re)|0,b=b+Math.imul(Xe,Ye)|0,m=m+Math.imul(Ie,Ne)|0,u=u+Math.imul(Ie,$e)|0,u=u+Math.imul(Ze,Ne)|0,b=b+Math.imul(Ze,$e)|0,m=m+Math.imul(Me,Se)|0,u=u+Math.imul(Me,et)|0,u=u+Math.imul(Ve,Se)|0,b=b+Math.imul(Ve,et)|0,m=m+Math.imul(Be,Le)|0,u=u+Math.imul(Be,tt)|0,u=u+Math.imul(ze,Le)|0,b=b+Math.imul(ze,tt)|0,m=m+Math.imul(we,De)|0,u=u+Math.imul(we,rt)|0,u=u+Math.imul(Oe,De)|0,b=b+Math.imul(Oe,rt)|0,m=m+Math.imul(fe,ke)|0,u=u+Math.imul(fe,Je)|0,u=u+Math.imul(be,ke)|0,b=b+Math.imul(be,Je)|0,m=m+Math.imul(ne,Ue)|0,u=u+Math.imul(ne,st)|0,u=u+Math.imul(pe,Ue)|0,b=b+Math.imul(pe,st)|0,m=m+Math.imul(W,We)|0,u=u+Math.imul(W,nt)|0,u=u+Math.imul(X,We)|0,b=b+Math.imul(X,nt)|0,m=m+Math.imul(S,je)|0,u=u+Math.imul(S,at)|0,u=u+Math.imul(B,je)|0,b=b+Math.imul(B,at)|0;var Qr=(C+m|0)+((u&8191)<<13)|0;C=(b+(u>>>13)|0)+(Qr>>>26)|0,Qr&=67108863,m=Math.imul(Ae,Re),u=Math.imul(Ae,Ye),u=u+Math.imul(Ke,Re)|0,b=Math.imul(Ke,Ye),m=m+Math.imul(qe,Ne)|0,u=u+Math.imul(qe,$e)|0,u=u+Math.imul(Xe,Ne)|0,b=b+Math.imul(Xe,$e)|0,m=m+Math.imul(Ie,Se)|0,u=u+Math.imul(Ie,et)|0,u=u+Math.imul(Ze,Se)|0,b=b+Math.imul(Ze,et)|0,m=m+Math.imul(Me,Le)|0,u=u+Math.imul(Me,tt)|0,u=u+Math.imul(Ve,Le)|0,b=b+Math.imul(Ve,tt)|0,m=m+Math.imul(Be,De)|0,u=u+Math.imul(Be,rt)|0,u=u+Math.imul(ze,De)|0,b=b+Math.imul(ze,rt)|0,m=m+Math.imul(we,ke)|0,u=u+Math.imul(we,Je)|0,u=u+Math.imul(Oe,ke)|0,b=b+Math.imul(Oe,Je)|0,m=m+Math.imul(fe,Ue)|0,u=u+Math.imul(fe,st)|0,u=u+Math.imul(be,Ue)|0,b=b+Math.imul(be,st)|0,m=m+Math.imul(ne,We)|0,u=u+Math.imul(ne,nt)|0,u=u+Math.imul(pe,We)|0,b=b+Math.imul(pe,nt)|0,m=m+Math.imul(W,je)|0,u=u+Math.imul(W,at)|0,u=u+Math.imul(X,je)|0,b=b+Math.imul(X,at)|0;var Vr=(C+m|0)+((u&8191)<<13)|0;C=(b+(u>>>13)|0)+(Vr>>>26)|0,Vr&=67108863,m=Math.imul(Ae,Ne),u=Math.imul(Ae,$e),u=u+Math.imul(Ke,Ne)|0,b=Math.imul(Ke,$e),m=m+Math.imul(qe,Se)|0,u=u+Math.imul(qe,et)|0,u=u+Math.imul(Xe,Se)|0,b=b+Math.imul(Xe,et)|0,m=m+Math.imul(Ie,Le)|0,u=u+Math.imul(Ie,tt)|0,u=u+Math.imul(Ze,Le)|0,b=b+Math.imul(Ze,tt)|0,m=m+Math.imul(Me,De)|0,u=u+Math.imul(Me,rt)|0,u=u+Math.imul(Ve,De)|0,b=b+Math.imul(Ve,rt)|0,m=m+Math.imul(Be,ke)|0,u=u+Math.imul(Be,Je)|0,u=u+Math.imul(ze,ke)|0,b=b+Math.imul(ze,Je)|0,m=m+Math.imul(we,Ue)|0,u=u+Math.imul(we,st)|0,u=u+Math.imul(Oe,Ue)|0,b=b+Math.imul(Oe,st)|0,m=m+Math.imul(fe,We)|0,u=u+Math.imul(fe,nt)|0,u=u+Math.imul(be,We)|0,b=b+Math.imul(be,nt)|0,m=m+Math.imul(ne,je)|0,u=u+Math.imul(ne,at)|0,u=u+Math.imul(pe,je)|0,b=b+Math.imul(pe,at)|0;var Br=(C+m|0)+((u&8191)<<13)|0;C=(b+(u>>>13)|0)+(Br>>>26)|0,Br&=67108863,m=Math.imul(Ae,Se),u=Math.imul(Ae,et),u=u+Math.imul(Ke,Se)|0,b=Math.imul(Ke,et),m=m+Math.imul(qe,Le)|0,u=u+Math.imul(qe,tt)|0,u=u+Math.imul(Xe,Le)|0,b=b+Math.imul(Xe,tt)|0,m=m+Math.imul(Ie,De)|0,u=u+Math.imul(Ie,rt)|0,u=u+Math.imul(Ze,De)|0,b=b+Math.imul(Ze,rt)|0,m=m+Math.imul(Me,ke)|0,u=u+Math.imul(Me,Je)|0,u=u+Math.imul(Ve,ke)|0,b=b+Math.imul(Ve,Je)|0,m=m+Math.imul(Be,Ue)|0,u=u+Math.imul(Be,st)|0,u=u+Math.imul(ze,Ue)|0,b=b+Math.imul(ze,st)|0,m=m+Math.imul(we,We)|0,u=u+Math.imul(we,nt)|0,u=u+Math.imul(Oe,We)|0,b=b+Math.imul(Oe,nt)|0,m=m+Math.imul(fe,je)|0,u=u+Math.imul(fe,at)|0,u=u+Math.imul(be,je)|0,b=b+Math.imul(be,at)|0;var Fr=(C+m|0)+((u&8191)<<13)|0;C=(b+(u>>>13)|0)+(Fr>>>26)|0,Fr&=67108863,m=Math.imul(Ae,Le),u=Math.imul(Ae,tt),u=u+Math.imul(Ke,Le)|0,b=Math.imul(Ke,tt),m=m+Math.imul(qe,De)|0,u=u+Math.imul(qe,rt)|0,u=u+Math.imul(Xe,De)|0,b=b+Math.imul(Xe,rt)|0,m=m+Math.imul(Ie,ke)|0,u=u+Math.imul(Ie,Je)|0,u=u+Math.imul(Ze,ke)|0,b=b+Math.imul(Ze,Je)|0,m=m+Math.imul(Me,Ue)|0,u=u+Math.imul(Me,st)|0,u=u+Math.imul(Ve,Ue)|0,b=b+Math.imul(Ve,st)|0,m=m+Math.imul(Be,We)|0,u=u+Math.imul(Be,nt)|0,u=u+Math.imul(ze,We)|0,b=b+Math.imul(ze,nt)|0,m=m+Math.imul(we,je)|0,u=u+Math.imul(we,at)|0,u=u+Math.imul(Oe,je)|0,b=b+Math.imul(Oe,at)|0;var hr=(C+m|0)+((u&8191)<<13)|0;C=(b+(u>>>13)|0)+(hr>>>26)|0,hr&=67108863,m=Math.imul(Ae,De),u=Math.imul(Ae,rt),u=u+Math.imul(Ke,De)|0,b=Math.imul(Ke,rt),m=m+Math.imul(qe,ke)|0,u=u+Math.imul(qe,Je)|0,u=u+Math.imul(Xe,ke)|0,b=b+Math.imul(Xe,Je)|0,m=m+Math.imul(Ie,Ue)|0,u=u+Math.imul(Ie,st)|0,u=u+Math.imul(Ze,Ue)|0,b=b+Math.imul(Ze,st)|0,m=m+Math.imul(Me,We)|0,u=u+Math.imul(Me,nt)|0,u=u+Math.imul(Ve,We)|0,b=b+Math.imul(Ve,nt)|0,m=m+Math.imul(Be,je)|0,u=u+Math.imul(Be,at)|0,u=u+Math.imul(ze,je)|0,b=b+Math.imul(ze,at)|0;var Gr=(C+m|0)+((u&8191)<<13)|0;C=(b+(u>>>13)|0)+(Gr>>>26)|0,Gr&=67108863,m=Math.imul(Ae,ke),u=Math.imul(Ae,Je),u=u+Math.imul(Ke,ke)|0,b=Math.imul(Ke,Je),m=m+Math.imul(qe,Ue)|0,u=u+Math.imul(qe,st)|0,u=u+Math.imul(Xe,Ue)|0,b=b+Math.imul(Xe,st)|0,m=m+Math.imul(Ie,We)|0,u=u+Math.imul(Ie,nt)|0,u=u+Math.imul(Ze,We)|0,b=b+Math.imul(Ze,nt)|0,m=m+Math.imul(Me,je)|0,u=u+Math.imul(Me,at)|0,u=u+Math.imul(Ve,je)|0,b=b+Math.imul(Ve,at)|0;var gr=(C+m|0)+((u&8191)<<13)|0;C=(b+(u>>>13)|0)+(gr>>>26)|0,gr&=67108863,m=Math.imul(Ae,Ue),u=Math.imul(Ae,st),u=u+Math.imul(Ke,Ue)|0,b=Math.imul(Ke,st),m=m+Math.imul(qe,We)|0,u=u+Math.imul(qe,nt)|0,u=u+Math.imul(Xe,We)|0,b=b+Math.imul(Xe,nt)|0,m=m+Math.imul(Ie,je)|0,u=u+Math.imul(Ie,at)|0,u=u+Math.imul(Ze,je)|0,b=b+Math.imul(Ze,at)|0;var Ur=(C+m|0)+((u&8191)<<13)|0;C=(b+(u>>>13)|0)+(Ur>>>26)|0,Ur&=67108863,m=Math.imul(Ae,We),u=Math.imul(Ae,nt),u=u+Math.imul(Ke,We)|0,b=Math.imul(Ke,nt),m=m+Math.imul(qe,je)|0,u=u+Math.imul(qe,at)|0,u=u+Math.imul(Xe,je)|0,b=b+Math.imul(Xe,at)|0;var tn=(C+m|0)+((u&8191)<<13)|0;C=(b+(u>>>13)|0)+(tn>>>26)|0,tn&=67108863,m=Math.imul(Ae,je),u=Math.imul(Ae,at),u=u+Math.imul(Ke,je)|0,b=Math.imul(Ke,at);var An=(C+m|0)+((u&8191)<<13)|0;return C=(b+(u>>>13)|0)+(An>>>26)|0,An&=67108863,_[0]=Lr,_[1]=Wt,_[2]=jt,_[3]=Er,_[4]=kr,_[5]=Sr,_[6]=Ar,_[7]=Mr,_[8]=Kr,_[9]=Qr,_[10]=Vr,_[11]=Br,_[12]=Fr,_[13]=hr,_[14]=Gr,_[15]=gr,_[16]=Ur,_[17]=tn,_[18]=An,C!==0&&(_[19]=C,y.length++),y};Math.imul||(A=k);function L(g,o,p){p.negative=o.negative^g.negative,p.length=g.length+o.length;for(var y=0,h=0,v=0;v>>26)|0,h+=_>>>26,_&=67108863}p.words[v]=C,y=_,_=h}return y!==0?p.words[v]=y:p.length--,p.strip()}function q(g,o,p){var y=new U;return y.mulp(g,o,p)}a.prototype.mulTo=function(o,p){var y,h=this.length+o.length;return this.length===10&&o.length===10?y=A(this,o,p):h<63?y=k(this,o,p):h<1024?y=L(this,o,p):y=q(this,o,p),y};function U(g,o){this.x=g,this.y=o}U.prototype.makeRBT=function(o){for(var p=new Array(o),y=a.prototype._countBits(o)-1,h=0;h>=1;return h},U.prototype.permute=function(o,p,y,h,v,_){for(var C=0;C<_;C++)h[C]=p[o[C]],v[C]=y[o[C]]},U.prototype.transform=function(o,p,y,h,v,_){this.permute(_,o,p,y,h,v);for(var C=1;C>>1)v++;return 1<>>13,y[2*_+1]=v&8191,v=v>>>13;for(_=2*p;_>=26,p+=h/67108864|0,p+=v>>>26,this.words[y]=v&67108863}return p!==0&&(this.words[y]=p,this.length++),this},a.prototype.muln=function(o){return this.clone().imuln(o)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(o){var p=E(o);if(p.length===0)return new a(1);for(var y=this,h=0;h=0);var p=o%26,y=(o-p)/26,h=67108863>>>26-p<<26-p,v;if(p!==0){var _=0;for(v=0;v>>26-p}_&&(this.words[v]=_,this.length++)}if(y!==0){for(v=this.length-1;v>=0;v--)this.words[v+y]=this.words[v];for(v=0;v=0);var h;p?h=(p-p%26)/26:h=0;var v=o%26,_=Math.min((o-v)/26,this.length),C=67108863^67108863>>>v<_)for(this.length-=_,u=0;u=0&&(b!==0||u>=h);u--){var R=this.words[u]|0;this.words[u]=b<<26-v|R>>>v,b=R&C}return m&&b!==0&&(m.words[m.length++]=b),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},a.prototype.ishrn=function(o,p,y){return t(this.negative===0),this.iushrn(o,p,y)},a.prototype.shln=function(o){return this.clone().ishln(o)},a.prototype.ushln=function(o){return this.clone().iushln(o)},a.prototype.shrn=function(o){return this.clone().ishrn(o)},a.prototype.ushrn=function(o){return this.clone().iushrn(o)},a.prototype.testn=function(o){t(typeof o=="number"&&o>=0);var p=o%26,y=(o-p)/26,h=1<=0);var p=o%26,y=(o-p)/26;if(t(this.negative===0,"imaskn works only with positive numbers"),this.length<=y)return this;if(p!==0&&y++,this.length=Math.min(y,this.length),p!==0){var h=67108863^67108863>>>p<=67108864;p++)this.words[p]-=67108864,p===this.length-1?this.words[p+1]=1:this.words[p+1]++;return this.length=Math.max(this.length,p+1),this},a.prototype.isubn=function(o){if(t(typeof o=="number"),t(o<67108864),o<0)return this.iaddn(-o);if(this.negative!==0)return this.negative=0,this.iaddn(o),this.negative=1,this;if(this.words[0]-=o,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var p=0;p>26)-(m/67108864|0),this.words[v+y]=_&67108863}for(;v>26,this.words[v+y]=_&67108863;if(C===0)return this.strip();for(t(C===-1),C=0,v=0;v>26,this.words[v]=_&67108863;return this.negative=1,this.strip()},a.prototype._wordDiv=function(o,p){var y=this.length-o.length,h=this.clone(),v=o,_=v.words[v.length-1]|0,C=this._countBits(_);y=26-C,y!==0&&(v=v.ushln(y),h.iushln(y),_=v.words[v.length-1]|0);var m=h.length-v.length,u;if(p!=="mod"){u=new a(null),u.length=m+1,u.words=new Array(u.length);for(var b=0;b=0;S--){var B=(h.words[v.length+S]|0)*67108864+(h.words[v.length+S-1]|0);for(B=Math.min(B/_|0,67108863),h._ishlnsubmul(v,B,S);h.negative!==0;)B--,h.negative=0,h._ishlnsubmul(v,1,S),h.isZero()||(h.negative^=1);u&&(u.words[S]=B)}return u&&u.strip(),h.strip(),p!=="div"&&y!==0&&h.iushrn(y),{div:u||null,mod:h}},a.prototype.divmod=function(o,p,y){if(t(!o.isZero()),this.isZero())return{div:new a(0),mod:new a(0)};var h,v,_;return this.negative!==0&&o.negative===0?(_=this.neg().divmod(o,p),p!=="mod"&&(h=_.div.neg()),p!=="div"&&(v=_.mod.neg(),y&&v.negative!==0&&v.iadd(o)),{div:h,mod:v}):this.negative===0&&o.negative!==0?(_=this.divmod(o.neg(),p),p!=="mod"&&(h=_.div.neg()),{div:h,mod:_.mod}):(this.negative&o.negative)!==0?(_=this.neg().divmod(o.neg(),p),p!=="div"&&(v=_.mod.neg(),y&&v.negative!==0&&v.isub(o)),{div:_.div,mod:v}):o.length>this.length||this.cmp(o)<0?{div:new a(0),mod:this}:o.length===1?p==="div"?{div:this.divn(o.words[0]),mod:null}:p==="mod"?{div:null,mod:new a(this.modn(o.words[0]))}:{div:this.divn(o.words[0]),mod:new a(this.modn(o.words[0]))}:this._wordDiv(o,p)},a.prototype.div=function(o){return this.divmod(o,"div",!1).div},a.prototype.mod=function(o){return this.divmod(o,"mod",!1).mod},a.prototype.umod=function(o){return this.divmod(o,"mod",!0).mod},a.prototype.divRound=function(o){var p=this.divmod(o);if(p.mod.isZero())return p.div;var y=p.div.negative!==0?p.mod.isub(o):p.mod,h=o.ushrn(1),v=o.andln(1),_=y.cmp(h);return _<0||v===1&&_===0?p.div:p.div.negative!==0?p.div.isubn(1):p.div.iaddn(1)},a.prototype.modn=function(o){t(o<=67108863);for(var p=(1<<26)%o,y=0,h=this.length-1;h>=0;h--)y=(p*y+(this.words[h]|0))%o;return y},a.prototype.idivn=function(o){t(o<=67108863);for(var p=0,y=this.length-1;y>=0;y--){var h=(this.words[y]|0)+p*67108864;this.words[y]=h/o|0,p=h%o}return this.strip()},a.prototype.divn=function(o){return this.clone().idivn(o)},a.prototype.egcd=function(o){t(o.negative===0),t(!o.isZero());var p=this,y=o.clone();p.negative!==0?p=p.umod(o):p=p.clone();for(var h=new a(1),v=new a(0),_=new a(0),C=new a(1),m=0;p.isEven()&&y.isEven();)p.iushrn(1),y.iushrn(1),++m;for(var u=y.clone(),b=p.clone();!p.isZero();){for(var R=0,S=1;(p.words[0]&S)===0&&R<26;++R,S<<=1);if(R>0)for(p.iushrn(R);R-- >0;)(h.isOdd()||v.isOdd())&&(h.iadd(u),v.isub(b)),h.iushrn(1),v.iushrn(1);for(var B=0,Z=1;(y.words[0]&Z)===0&&B<26;++B,Z<<=1);if(B>0)for(y.iushrn(B);B-- >0;)(_.isOdd()||C.isOdd())&&(_.iadd(u),C.isub(b)),_.iushrn(1),C.iushrn(1);p.cmp(y)>=0?(p.isub(y),h.isub(_),v.isub(C)):(y.isub(p),_.isub(h),C.isub(v))}return{a:_,b:C,gcd:y.iushln(m)}},a.prototype._invmp=function(o){t(o.negative===0),t(!o.isZero());var p=this,y=o.clone();p.negative!==0?p=p.umod(o):p=p.clone();for(var h=new a(1),v=new a(0),_=y.clone();p.cmpn(1)>0&&y.cmpn(1)>0;){for(var C=0,m=1;(p.words[0]&m)===0&&C<26;++C,m<<=1);if(C>0)for(p.iushrn(C);C-- >0;)h.isOdd()&&h.iadd(_),h.iushrn(1);for(var u=0,b=1;(y.words[0]&b)===0&&u<26;++u,b<<=1);if(u>0)for(y.iushrn(u);u-- >0;)v.isOdd()&&v.iadd(_),v.iushrn(1);p.cmp(y)>=0?(p.isub(y),h.isub(v)):(y.isub(p),v.isub(h))}var R;return p.cmpn(1)===0?R=h:R=v,R.cmpn(0)<0&&R.iadd(o),R},a.prototype.gcd=function(o){if(this.isZero())return o.abs();if(o.isZero())return this.abs();var p=this.clone(),y=o.clone();p.negative=0,y.negative=0;for(var h=0;p.isEven()&&y.isEven();h++)p.iushrn(1),y.iushrn(1);do{for(;p.isEven();)p.iushrn(1);for(;y.isEven();)y.iushrn(1);var v=p.cmp(y);if(v<0){var _=p;p=y,y=_}else if(v===0||y.cmpn(1)===0)break;p.isub(y)}while(!0);return y.iushln(h)},a.prototype.invm=function(o){return this.egcd(o).a.umod(o)},a.prototype.isEven=function(){return(this.words[0]&1)===0},a.prototype.isOdd=function(){return(this.words[0]&1)===1},a.prototype.andln=function(o){return this.words[0]&o},a.prototype.bincn=function(o){t(typeof o=="number");var p=o%26,y=(o-p)/26,h=1<>>26,C&=67108863,this.words[_]=C}return v!==0&&(this.words[_]=v,this.length++),this},a.prototype.isZero=function(){return this.length===1&&this.words[0]===0},a.prototype.cmpn=function(o){var p=o<0;if(this.negative!==0&&!p)return-1;if(this.negative===0&&p)return 1;this.strip();var y;if(this.length>1)y=1;else{p&&(o=-o),t(o<=67108863,"Number is too big");var h=this.words[0]|0;y=h===o?0:ho.length)return 1;if(this.length=0;y--){var h=this.words[y]|0,v=o.words[y]|0;if(h!==v){hv&&(p=1);break}}return p},a.prototype.gtn=function(o){return this.cmpn(o)===1},a.prototype.gt=function(o){return this.cmp(o)===1},a.prototype.gten=function(o){return this.cmpn(o)>=0},a.prototype.gte=function(o){return this.cmp(o)>=0},a.prototype.ltn=function(o){return this.cmpn(o)===-1},a.prototype.lt=function(o){return this.cmp(o)===-1},a.prototype.lten=function(o){return this.cmpn(o)<=0},a.prototype.lte=function(o){return this.cmp(o)<=0},a.prototype.eqn=function(o){return this.cmpn(o)===0},a.prototype.eq=function(o){return this.cmp(o)===0},a.red=function(o){return new J(o)},a.prototype.toRed=function(o){return t(!this.red,"Already a number in reduction context"),t(this.negative===0,"red works only with positives"),o.convertTo(this)._forceRed(o)},a.prototype.fromRed=function(){return t(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(o){return this.red=o,this},a.prototype.forceRed=function(o){return t(!this.red,"Already a number in reduction context"),this._forceRed(o)},a.prototype.redAdd=function(o){return t(this.red,"redAdd works only with red numbers"),this.red.add(this,o)},a.prototype.redIAdd=function(o){return t(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,o)},a.prototype.redSub=function(o){return t(this.red,"redSub works only with red numbers"),this.red.sub(this,o)},a.prototype.redISub=function(o){return t(this.red,"redISub works only with red numbers"),this.red.isub(this,o)},a.prototype.redShl=function(o){return t(this.red,"redShl works only with red numbers"),this.red.shl(this,o)},a.prototype.redMul=function(o){return t(this.red,"redMul works only with red numbers"),this.red._verify2(this,o),this.red.mul(this,o)},a.prototype.redIMul=function(o){return t(this.red,"redMul works only with red numbers"),this.red._verify2(this,o),this.red.imul(this,o)},a.prototype.redSqr=function(){return t(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return t(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return t(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return t(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return t(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(o){return t(this.red&&!o.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,o)};var j={k256:null,p224:null,p192:null,p25519:null};function H(g,o){this.name=g,this.p=new a(o,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}H.prototype._tmp=function(){var o=new a(null);return o.words=new Array(Math.ceil(this.n/13)),o},H.prototype.ireduce=function(o){var p=o,y;do this.split(p,this.tmp),p=this.imulK(p),p=p.iadd(this.tmp),y=p.bitLength();while(y>this.n);var h=y0?p.isub(this.p):p.strip!==void 0?p.strip():p._strip(),p},H.prototype.split=function(o,p){o.iushrn(this.n,0,p)},H.prototype.imulK=function(o){return o.imul(this.k)};function G(){H.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}n(G,H),G.prototype.split=function(o,p){for(var y=4194303,h=Math.min(o.length,9),v=0;v>>22,_=C}_>>>=22,o.words[v-10]=_,_===0&&o.length>10?o.length-=10:o.length-=9},G.prototype.imulK=function(o){o.words[o.length]=0,o.words[o.length+1]=0,o.length+=2;for(var p=0,y=0;y>>=26,o.words[y]=v,p=h}return p!==0&&(o.words[o.length++]=p),o},a._prime=function(o){if(j[o])return j[o];var p;if(o==="k256")p=new G;else if(o==="p224")p=new te;else if(o==="p192")p=new K;else if(o==="p25519")p=new ae;else throw new Error("Unknown prime "+o);return j[o]=p,p};function J(g){if(typeof g=="string"){var o=a._prime(g);this.m=o.p,this.prime=o}else t(g.gtn(1),"modulus must be greater than 1"),this.m=g,this.prime=null}J.prototype._verify1=function(o){t(o.negative===0,"red works only with positives"),t(o.red,"red works only with red numbers")},J.prototype._verify2=function(o,p){t((o.negative|p.negative)===0,"red works only with positives"),t(o.red&&o.red===p.red,"red works only with red numbers")},J.prototype.imod=function(o){return this.prime?this.prime.ireduce(o)._forceRed(this):o.umod(this.m)._forceRed(this)},J.prototype.neg=function(o){return o.isZero()?o.clone():this.m.sub(o)._forceRed(this)},J.prototype.add=function(o,p){this._verify2(o,p);var y=o.add(p);return y.cmp(this.m)>=0&&y.isub(this.m),y._forceRed(this)},J.prototype.iadd=function(o,p){this._verify2(o,p);var y=o.iadd(p);return y.cmp(this.m)>=0&&y.isub(this.m),y},J.prototype.sub=function(o,p){this._verify2(o,p);var y=o.sub(p);return y.cmpn(0)<0&&y.iadd(this.m),y._forceRed(this)},J.prototype.isub=function(o,p){this._verify2(o,p);var y=o.isub(p);return y.cmpn(0)<0&&y.iadd(this.m),y},J.prototype.shl=function(o,p){return this._verify1(o),this.imod(o.ushln(p))},J.prototype.imul=function(o,p){return this._verify2(o,p),this.imod(o.imul(p))},J.prototype.mul=function(o,p){return this._verify2(o,p),this.imod(o.mul(p))},J.prototype.isqr=function(o){return this.imul(o,o.clone())},J.prototype.sqr=function(o){return this.mul(o,o)},J.prototype.sqrt=function(o){if(o.isZero())return o.clone();var p=this.m.andln(3);if(t(p%2===1),p===3){var y=this.m.add(new a(1)).iushrn(2);return this.pow(o,y)}for(var h=this.m.subn(1),v=0;!h.isZero()&&h.andln(1)===0;)v++,h.iushrn(1);t(!h.isZero());var _=new a(1).toRed(this),C=_.redNeg(),m=this.m.subn(1).iushrn(1),u=this.m.bitLength();for(u=new a(2*u*u).toRed(this);this.pow(u,m).cmp(C)!==0;)u.redIAdd(C);for(var b=this.pow(u,h),R=this.pow(o,h.addn(1).iushrn(1)),S=this.pow(o,h),B=v;S.cmp(_)!==0;){for(var Z=S,W=0;Z.cmp(_)!==0;W++)Z=Z.redSqr();t(W=0;v--){for(var b=p.words[v],R=u-1;R>=0;R--){var S=b>>R&1;if(_!==h[0]&&(_=this.sqr(_)),S===0&&C===0){m=0;continue}C<<=1,C|=S,m++,!(m!==y&&(v!==0||R!==0))&&(_=this.mul(_,h[C]),m=0,C=0)}u=26}return _},J.prototype.convertTo=function(o){var p=o.umod(this.m);return p===o?p.clone():p},J.prototype.convertFrom=function(o){var p=o.clone();return p.red=null,p},a.mont=function(o){return new V(o)};function V(g){J.call(this,g),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new a(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}n(V,J),V.prototype.convertTo=function(o){return this.imod(o.ushln(this.shift))},V.prototype.convertFrom=function(o){var p=this.imod(o.mul(this.rinv));return p.red=null,p},V.prototype.imul=function(o,p){if(o.isZero()||p.isZero())return o.words[0]=0,o.length=1,o;var y=o.imul(p),h=y.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),v=y.isub(h).iushrn(this.shift),_=v;return v.cmp(this.m)>=0?_=v.isub(this.m):v.cmpn(0)<0&&(_=v.iadd(this.m)),_._forceRed(this)},V.prototype.mul=function(o,p){if(o.isZero()||p.isZero())return new a(0)._forceRed(this);var y=o.mul(p),h=y.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),v=y.isub(h).iushrn(this.shift),_=v;return v.cmp(this.m)>=0?_=v.isub(this.m):v.cmpn(0)<0&&(_=v.iadd(this.m)),_._forceRed(this)},V.prototype.invm=function(o){var p=this.imod(o._invmp(this.m).mul(this.r2));return p._forceRed(this)}})(typeof VU>"u"||VU,Ahe)});var Phe=O((cKr,Ihe)=>{x();T();var p5t=x6(),h5t=Mhe();Ihe.exports=function(e){return new Ag(e)};var el={secp256k1:{name:"secp256k1",byteLength:32},secp224r1:{name:"p224",byteLength:28},prime256v1:{name:"p256",byteLength:32},prime192v1:{name:"p192",byteLength:24},ed25519:{name:"ed25519",byteLength:32},secp384r1:{name:"p384",byteLength:48},secp521r1:{name:"p521",byteLength:66}};el.p224=el.secp224r1;el.p256=el.secp256r1=el.prime256v1;el.p192=el.secp192r1=el.prime192v1;el.p384=el.secp384r1;el.p521=el.secp521r1;function Ag(r){this.curveType=el[r],this.curveType||(this.curveType={name:r}),this.curve=new p5t.ec(this.curveType.name),this.keys=void 0}Ag.prototype.generateKeys=function(r,e){return this.keys=this.curve.genKeyPair(),this.getPublicKey(r,e)};Ag.prototype.computeSecret=function(r,e,t){e=e||"utf8",P.Buffer.isBuffer(r)||(r=new P.Buffer(r,e));var n=this.curve.keyFromPublic(r).getPublic(),a=n.mul(this.keys.getPrivate()).getX();return GU(a,t,this.curveType.byteLength)};Ag.prototype.getPublicKey=function(r,e){var t=this.keys.getPublic(e==="compressed",!0);return e==="hybrid"&&(t[t.length-1]%2?t[0]=7:t[0]=6),GU(t,r)};Ag.prototype.getPrivateKey=function(r){return GU(this.keys.getPrivate(),r)};Ag.prototype.setPublicKey=function(r,e){return e=e||"utf8",P.Buffer.isBuffer(r)||(r=new P.Buffer(r,e)),this.keys._importPublic(r),this};Ag.prototype.setPrivateKey=function(r,e){e=e||"utf8",P.Buffer.isBuffer(r)||(r=new P.Buffer(r,e));var t=new h5t(r);return t=t.toString(16),this.keys=this.curve.genKeyPair(),this.keys._importPrivate(t),this};function GU(r,e,t){Array.isArray(r)||(r=r.toArray());var n=new P.Buffer(r);if(t&&n.length{x();T();var f5t=_b(),ZU=Zr().Buffer;Rhe.exports=function(r,e){for(var t=ZU.alloc(0),n=0,a;t.length{x();T();Nhe.exports=function(e,t){for(var n=e.length,a=-1;++a{x();T();(function(r,e){"use strict";function t(g,o){if(!g)throw new Error(o||"Assertion failed")}function n(g,o){g.super_=o;var p=function(){};p.prototype=o.prototype,g.prototype=new p,g.prototype.constructor=g}function a(g,o,p){if(a.isBN(g))return g;this.negative=0,this.words=null,this.length=0,this.red=null,g!==null&&((o==="le"||o==="be")&&(p=o,o=10),this._init(g||0,o||10,p||"be"))}typeof r=="object"?r.exports=a:e.BN=a,a.BN=a,a.wordSize=26;var i;try{typeof window<"u"&&typeof window.Buffer<"u"?i=window.Buffer:i=$i().Buffer}catch{}a.isBN=function(o){return o instanceof a?!0:o!==null&&typeof o=="object"&&o.constructor.wordSize===a.wordSize&&Array.isArray(o.words)},a.max=function(o,p){return o.cmp(p)>0?o:p},a.min=function(o,p){return o.cmp(p)<0?o:p},a.prototype._init=function(o,p,y){if(typeof o=="number")return this._initNumber(o,p,y);if(typeof o=="object")return this._initArray(o,p,y);p==="hex"&&(p=16),t(p===(p|0)&&p>=2&&p<=36),o=o.toString().replace(/\s+/g,"");var h=0;o[0]==="-"&&(h++,this.negative=1),h=0;h-=3)_=o[h]|o[h-1]<<8|o[h-2]<<16,this.words[v]|=_<>>26-C&67108863,C+=24,C>=26&&(C-=26,v++);else if(y==="le")for(h=0,v=0;h>>26-C&67108863,C+=24,C>=26&&(C-=26,v++);return this.strip()};function s(g,o){var p=g.charCodeAt(o);return p>=65&&p<=70?p-55:p>=97&&p<=102?p-87:p-48&15}function c(g,o,p){var y=s(g,p);return p-1>=o&&(y|=s(g,p-1)<<4),y}a.prototype._parseHex=function(o,p,y){this.length=Math.ceil((o.length-p)/6),this.words=new Array(this.length);for(var h=0;h=p;h-=2)C=c(o,p,h)<=18?(v-=18,_+=1,this.words[_]|=C>>>26):v+=8;else{var m=o.length-p;for(h=m%2===0?p+1:p;h=18?(v-=18,_+=1,this.words[_]|=C>>>26):v+=8}this.strip()};function l(g,o,p,y){for(var h=0,v=Math.min(g.length,p),_=o;_=49?h+=C-49+10:C>=17?h+=C-17+10:h+=C}return h}a.prototype._parseBase=function(o,p,y){this.words=[0],this.length=1;for(var h=0,v=1;v<=67108863;v*=p)h++;h--,v=v/p|0;for(var _=o.length-y,C=_%h,m=Math.min(_,_-C)+y,u=0,b=y;b1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},a.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},a.prototype.inspect=function(){return(this.red?""};var d=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],f=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],w=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];a.prototype.toString=function(o,p){o=o||10,p=p|0||1;var y;if(o===16||o==="hex"){y="";for(var h=0,v=0,_=0;_>>24-h&16777215,v!==0||_!==this.length-1?y=d[6-m.length]+m+y:y=m+y,h+=2,h>=26&&(h-=26,_--)}for(v!==0&&(y=v.toString(16)+y);y.length%p!==0;)y="0"+y;return this.negative!==0&&(y="-"+y),y}if(o===(o|0)&&o>=2&&o<=36){var u=f[o],b=w[o];y="";var R=this.clone();for(R.negative=0;!R.isZero();){var S=R.modn(b).toString(o);R=R.idivn(b),R.isZero()?y=S+y:y=d[u-S.length]+S+y}for(this.isZero()&&(y="0"+y);y.length%p!==0;)y="0"+y;return this.negative!==0&&(y="-"+y),y}t(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var o=this.words[0];return this.length===2?o+=this.words[1]*67108864:this.length===3&&this.words[2]===1?o+=4503599627370496+this.words[1]*67108864:this.length>2&&t(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-o:o},a.prototype.toJSON=function(){return this.toString(16)},a.prototype.toBuffer=function(o,p){return t(typeof i<"u"),this.toArrayLike(i,o,p)},a.prototype.toArray=function(o,p){return this.toArrayLike(Array,o,p)},a.prototype.toArrayLike=function(o,p,y){var h=this.byteLength(),v=y||Math.max(1,h);t(h<=v,"byte array longer than desired length"),t(v>0,"Requested array length <= 0"),this.strip();var _=p==="le",C=new o(v),m,u,b=this.clone();if(_){for(u=0;!b.isZero();u++)m=b.andln(255),b.iushrn(8),C[u]=m;for(;u=4096&&(y+=13,p>>>=13),p>=64&&(y+=7,p>>>=7),p>=8&&(y+=4,p>>>=4),p>=2&&(y+=2,p>>>=2),y+p},a.prototype._zeroBits=function(o){if(o===0)return 26;var p=o,y=0;return(p&8191)===0&&(y+=13,p>>>=13),(p&127)===0&&(y+=7,p>>>=7),(p&15)===0&&(y+=4,p>>>=4),(p&3)===0&&(y+=2,p>>>=2),(p&1)===0&&y++,y},a.prototype.bitLength=function(){var o=this.words[this.length-1],p=this._countBits(o);return(this.length-1)*26+p};function E(g){for(var o=new Array(g.bitLength()),p=0;p>>h}return o}a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var o=0,p=0;po.length?this.clone().ior(o):o.clone().ior(this)},a.prototype.uor=function(o){return this.length>o.length?this.clone().iuor(o):o.clone().iuor(this)},a.prototype.iuand=function(o){var p;this.length>o.length?p=o:p=this;for(var y=0;yo.length?this.clone().iand(o):o.clone().iand(this)},a.prototype.uand=function(o){return this.length>o.length?this.clone().iuand(o):o.clone().iuand(this)},a.prototype.iuxor=function(o){var p,y;this.length>o.length?(p=this,y=o):(p=o,y=this);for(var h=0;ho.length?this.clone().ixor(o):o.clone().ixor(this)},a.prototype.uxor=function(o){return this.length>o.length?this.clone().iuxor(o):o.clone().iuxor(this)},a.prototype.inotn=function(o){t(typeof o=="number"&&o>=0);var p=Math.ceil(o/26)|0,y=o%26;this._expand(p),y>0&&p--;for(var h=0;h0&&(this.words[h]=~this.words[h]&67108863>>26-y),this.strip()},a.prototype.notn=function(o){return this.clone().inotn(o)},a.prototype.setn=function(o,p){t(typeof o=="number"&&o>=0);var y=o/26|0,h=o%26;return this._expand(y+1),p?this.words[y]=this.words[y]|1<o.length?(y=this,h=o):(y=o,h=this);for(var v=0,_=0;_>>26;for(;v!==0&&_>>26;if(this.length=y.length,v!==0)this.words[this.length]=v,this.length++;else if(y!==this)for(;_o.length?this.clone().iadd(o):o.clone().iadd(this)},a.prototype.isub=function(o){if(o.negative!==0){o.negative=0;var p=this.iadd(o);return o.negative=1,p._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(o),this.negative=1,this._normSign();var y=this.cmp(o);if(y===0)return this.negative=0,this.length=1,this.words[0]=0,this;var h,v;y>0?(h=this,v=o):(h=o,v=this);for(var _=0,C=0;C>26,this.words[C]=p&67108863;for(;_!==0&&C>26,this.words[C]=p&67108863;if(_===0&&C>>26,R=m&67108863,S=Math.min(u,o.length-1),B=Math.max(0,u-g.length+1);B<=S;B++){var Z=u-B|0;h=g.words[Z]|0,v=o.words[B]|0,_=h*v+R,b+=_/67108864|0,R=_&67108863}p.words[u]=R|0,m=b|0}return m!==0?p.words[u]=m|0:p.length--,p.strip()}var A=function(o,p,y){var h=o.words,v=p.words,_=y.words,C=0,m,u,b,R=h[0]|0,S=R&8191,B=R>>>13,Z=h[1]|0,W=Z&8191,X=Z>>>13,de=h[2]|0,ne=de&8191,pe=de>>>13,pt=h[3]|0,fe=pt&8191,be=pt>>>13,Tt=h[4]|0,we=Tt&8191,Oe=Tt>>>13,Pt=h[5]|0,Be=Pt&8191,ze=Pt>>>13,At=h[6]|0,Me=At&8191,Ve=At>>>13,St=h[7]|0,Ie=St&8191,Ze=St>>>13,Ut=h[8]|0,qe=Ut&8191,Xe=Ut>>>13,Ht=h[9]|0,Ae=Ht&8191,Ke=Ht>>>13,Gt=v[0]|0,Pe=Gt&8191,Qe=Gt>>>13,Zt=v[1]|0,Re=Zt&8191,Ye=Zt>>>13,Jt=v[2]|0,Ne=Jt&8191,$e=Jt>>>13,Vt=v[3]|0,Se=Vt&8191,et=Vt>>>13,Rt=v[4]|0,Le=Rt&8191,tt=Rt>>>13,Kt=v[5]|0,De=Kt&8191,rt=Kt>>>13,Qt=v[6]|0,ke=Qt&8191,Je=Qt>>>13,Xt=v[7]|0,Ue=Xt&8191,st=Xt>>>13,rr=v[8]|0,We=rr&8191,nt=rr>>>13,ir=v[9]|0,je=ir&8191,at=ir>>>13;y.negative=o.negative^p.negative,y.length=19,m=Math.imul(S,Pe),u=Math.imul(S,Qe),u=u+Math.imul(B,Pe)|0,b=Math.imul(B,Qe);var Lr=(C+m|0)+((u&8191)<<13)|0;C=(b+(u>>>13)|0)+(Lr>>>26)|0,Lr&=67108863,m=Math.imul(W,Pe),u=Math.imul(W,Qe),u=u+Math.imul(X,Pe)|0,b=Math.imul(X,Qe),m=m+Math.imul(S,Re)|0,u=u+Math.imul(S,Ye)|0,u=u+Math.imul(B,Re)|0,b=b+Math.imul(B,Ye)|0;var Wt=(C+m|0)+((u&8191)<<13)|0;C=(b+(u>>>13)|0)+(Wt>>>26)|0,Wt&=67108863,m=Math.imul(ne,Pe),u=Math.imul(ne,Qe),u=u+Math.imul(pe,Pe)|0,b=Math.imul(pe,Qe),m=m+Math.imul(W,Re)|0,u=u+Math.imul(W,Ye)|0,u=u+Math.imul(X,Re)|0,b=b+Math.imul(X,Ye)|0,m=m+Math.imul(S,Ne)|0,u=u+Math.imul(S,$e)|0,u=u+Math.imul(B,Ne)|0,b=b+Math.imul(B,$e)|0;var jt=(C+m|0)+((u&8191)<<13)|0;C=(b+(u>>>13)|0)+(jt>>>26)|0,jt&=67108863,m=Math.imul(fe,Pe),u=Math.imul(fe,Qe),u=u+Math.imul(be,Pe)|0,b=Math.imul(be,Qe),m=m+Math.imul(ne,Re)|0,u=u+Math.imul(ne,Ye)|0,u=u+Math.imul(pe,Re)|0,b=b+Math.imul(pe,Ye)|0,m=m+Math.imul(W,Ne)|0,u=u+Math.imul(W,$e)|0,u=u+Math.imul(X,Ne)|0,b=b+Math.imul(X,$e)|0,m=m+Math.imul(S,Se)|0,u=u+Math.imul(S,et)|0,u=u+Math.imul(B,Se)|0,b=b+Math.imul(B,et)|0;var Er=(C+m|0)+((u&8191)<<13)|0;C=(b+(u>>>13)|0)+(Er>>>26)|0,Er&=67108863,m=Math.imul(we,Pe),u=Math.imul(we,Qe),u=u+Math.imul(Oe,Pe)|0,b=Math.imul(Oe,Qe),m=m+Math.imul(fe,Re)|0,u=u+Math.imul(fe,Ye)|0,u=u+Math.imul(be,Re)|0,b=b+Math.imul(be,Ye)|0,m=m+Math.imul(ne,Ne)|0,u=u+Math.imul(ne,$e)|0,u=u+Math.imul(pe,Ne)|0,b=b+Math.imul(pe,$e)|0,m=m+Math.imul(W,Se)|0,u=u+Math.imul(W,et)|0,u=u+Math.imul(X,Se)|0,b=b+Math.imul(X,et)|0,m=m+Math.imul(S,Le)|0,u=u+Math.imul(S,tt)|0,u=u+Math.imul(B,Le)|0,b=b+Math.imul(B,tt)|0;var kr=(C+m|0)+((u&8191)<<13)|0;C=(b+(u>>>13)|0)+(kr>>>26)|0,kr&=67108863,m=Math.imul(Be,Pe),u=Math.imul(Be,Qe),u=u+Math.imul(ze,Pe)|0,b=Math.imul(ze,Qe),m=m+Math.imul(we,Re)|0,u=u+Math.imul(we,Ye)|0,u=u+Math.imul(Oe,Re)|0,b=b+Math.imul(Oe,Ye)|0,m=m+Math.imul(fe,Ne)|0,u=u+Math.imul(fe,$e)|0,u=u+Math.imul(be,Ne)|0,b=b+Math.imul(be,$e)|0,m=m+Math.imul(ne,Se)|0,u=u+Math.imul(ne,et)|0,u=u+Math.imul(pe,Se)|0,b=b+Math.imul(pe,et)|0,m=m+Math.imul(W,Le)|0,u=u+Math.imul(W,tt)|0,u=u+Math.imul(X,Le)|0,b=b+Math.imul(X,tt)|0,m=m+Math.imul(S,De)|0,u=u+Math.imul(S,rt)|0,u=u+Math.imul(B,De)|0,b=b+Math.imul(B,rt)|0;var Sr=(C+m|0)+((u&8191)<<13)|0;C=(b+(u>>>13)|0)+(Sr>>>26)|0,Sr&=67108863,m=Math.imul(Me,Pe),u=Math.imul(Me,Qe),u=u+Math.imul(Ve,Pe)|0,b=Math.imul(Ve,Qe),m=m+Math.imul(Be,Re)|0,u=u+Math.imul(Be,Ye)|0,u=u+Math.imul(ze,Re)|0,b=b+Math.imul(ze,Ye)|0,m=m+Math.imul(we,Ne)|0,u=u+Math.imul(we,$e)|0,u=u+Math.imul(Oe,Ne)|0,b=b+Math.imul(Oe,$e)|0,m=m+Math.imul(fe,Se)|0,u=u+Math.imul(fe,et)|0,u=u+Math.imul(be,Se)|0,b=b+Math.imul(be,et)|0,m=m+Math.imul(ne,Le)|0,u=u+Math.imul(ne,tt)|0,u=u+Math.imul(pe,Le)|0,b=b+Math.imul(pe,tt)|0,m=m+Math.imul(W,De)|0,u=u+Math.imul(W,rt)|0,u=u+Math.imul(X,De)|0,b=b+Math.imul(X,rt)|0,m=m+Math.imul(S,ke)|0,u=u+Math.imul(S,Je)|0,u=u+Math.imul(B,ke)|0,b=b+Math.imul(B,Je)|0;var Ar=(C+m|0)+((u&8191)<<13)|0;C=(b+(u>>>13)|0)+(Ar>>>26)|0,Ar&=67108863,m=Math.imul(Ie,Pe),u=Math.imul(Ie,Qe),u=u+Math.imul(Ze,Pe)|0,b=Math.imul(Ze,Qe),m=m+Math.imul(Me,Re)|0,u=u+Math.imul(Me,Ye)|0,u=u+Math.imul(Ve,Re)|0,b=b+Math.imul(Ve,Ye)|0,m=m+Math.imul(Be,Ne)|0,u=u+Math.imul(Be,$e)|0,u=u+Math.imul(ze,Ne)|0,b=b+Math.imul(ze,$e)|0,m=m+Math.imul(we,Se)|0,u=u+Math.imul(we,et)|0,u=u+Math.imul(Oe,Se)|0,b=b+Math.imul(Oe,et)|0,m=m+Math.imul(fe,Le)|0,u=u+Math.imul(fe,tt)|0,u=u+Math.imul(be,Le)|0,b=b+Math.imul(be,tt)|0,m=m+Math.imul(ne,De)|0,u=u+Math.imul(ne,rt)|0,u=u+Math.imul(pe,De)|0,b=b+Math.imul(pe,rt)|0,m=m+Math.imul(W,ke)|0,u=u+Math.imul(W,Je)|0,u=u+Math.imul(X,ke)|0,b=b+Math.imul(X,Je)|0,m=m+Math.imul(S,Ue)|0,u=u+Math.imul(S,st)|0,u=u+Math.imul(B,Ue)|0,b=b+Math.imul(B,st)|0;var Mr=(C+m|0)+((u&8191)<<13)|0;C=(b+(u>>>13)|0)+(Mr>>>26)|0,Mr&=67108863,m=Math.imul(qe,Pe),u=Math.imul(qe,Qe),u=u+Math.imul(Xe,Pe)|0,b=Math.imul(Xe,Qe),m=m+Math.imul(Ie,Re)|0,u=u+Math.imul(Ie,Ye)|0,u=u+Math.imul(Ze,Re)|0,b=b+Math.imul(Ze,Ye)|0,m=m+Math.imul(Me,Ne)|0,u=u+Math.imul(Me,$e)|0,u=u+Math.imul(Ve,Ne)|0,b=b+Math.imul(Ve,$e)|0,m=m+Math.imul(Be,Se)|0,u=u+Math.imul(Be,et)|0,u=u+Math.imul(ze,Se)|0,b=b+Math.imul(ze,et)|0,m=m+Math.imul(we,Le)|0,u=u+Math.imul(we,tt)|0,u=u+Math.imul(Oe,Le)|0,b=b+Math.imul(Oe,tt)|0,m=m+Math.imul(fe,De)|0,u=u+Math.imul(fe,rt)|0,u=u+Math.imul(be,De)|0,b=b+Math.imul(be,rt)|0,m=m+Math.imul(ne,ke)|0,u=u+Math.imul(ne,Je)|0,u=u+Math.imul(pe,ke)|0,b=b+Math.imul(pe,Je)|0,m=m+Math.imul(W,Ue)|0,u=u+Math.imul(W,st)|0,u=u+Math.imul(X,Ue)|0,b=b+Math.imul(X,st)|0,m=m+Math.imul(S,We)|0,u=u+Math.imul(S,nt)|0,u=u+Math.imul(B,We)|0,b=b+Math.imul(B,nt)|0;var Kr=(C+m|0)+((u&8191)<<13)|0;C=(b+(u>>>13)|0)+(Kr>>>26)|0,Kr&=67108863,m=Math.imul(Ae,Pe),u=Math.imul(Ae,Qe),u=u+Math.imul(Ke,Pe)|0,b=Math.imul(Ke,Qe),m=m+Math.imul(qe,Re)|0,u=u+Math.imul(qe,Ye)|0,u=u+Math.imul(Xe,Re)|0,b=b+Math.imul(Xe,Ye)|0,m=m+Math.imul(Ie,Ne)|0,u=u+Math.imul(Ie,$e)|0,u=u+Math.imul(Ze,Ne)|0,b=b+Math.imul(Ze,$e)|0,m=m+Math.imul(Me,Se)|0,u=u+Math.imul(Me,et)|0,u=u+Math.imul(Ve,Se)|0,b=b+Math.imul(Ve,et)|0,m=m+Math.imul(Be,Le)|0,u=u+Math.imul(Be,tt)|0,u=u+Math.imul(ze,Le)|0,b=b+Math.imul(ze,tt)|0,m=m+Math.imul(we,De)|0,u=u+Math.imul(we,rt)|0,u=u+Math.imul(Oe,De)|0,b=b+Math.imul(Oe,rt)|0,m=m+Math.imul(fe,ke)|0,u=u+Math.imul(fe,Je)|0,u=u+Math.imul(be,ke)|0,b=b+Math.imul(be,Je)|0,m=m+Math.imul(ne,Ue)|0,u=u+Math.imul(ne,st)|0,u=u+Math.imul(pe,Ue)|0,b=b+Math.imul(pe,st)|0,m=m+Math.imul(W,We)|0,u=u+Math.imul(W,nt)|0,u=u+Math.imul(X,We)|0,b=b+Math.imul(X,nt)|0,m=m+Math.imul(S,je)|0,u=u+Math.imul(S,at)|0,u=u+Math.imul(B,je)|0,b=b+Math.imul(B,at)|0;var Qr=(C+m|0)+((u&8191)<<13)|0;C=(b+(u>>>13)|0)+(Qr>>>26)|0,Qr&=67108863,m=Math.imul(Ae,Re),u=Math.imul(Ae,Ye),u=u+Math.imul(Ke,Re)|0,b=Math.imul(Ke,Ye),m=m+Math.imul(qe,Ne)|0,u=u+Math.imul(qe,$e)|0,u=u+Math.imul(Xe,Ne)|0,b=b+Math.imul(Xe,$e)|0,m=m+Math.imul(Ie,Se)|0,u=u+Math.imul(Ie,et)|0,u=u+Math.imul(Ze,Se)|0,b=b+Math.imul(Ze,et)|0,m=m+Math.imul(Me,Le)|0,u=u+Math.imul(Me,tt)|0,u=u+Math.imul(Ve,Le)|0,b=b+Math.imul(Ve,tt)|0,m=m+Math.imul(Be,De)|0,u=u+Math.imul(Be,rt)|0,u=u+Math.imul(ze,De)|0,b=b+Math.imul(ze,rt)|0,m=m+Math.imul(we,ke)|0,u=u+Math.imul(we,Je)|0,u=u+Math.imul(Oe,ke)|0,b=b+Math.imul(Oe,Je)|0,m=m+Math.imul(fe,Ue)|0,u=u+Math.imul(fe,st)|0,u=u+Math.imul(be,Ue)|0,b=b+Math.imul(be,st)|0,m=m+Math.imul(ne,We)|0,u=u+Math.imul(ne,nt)|0,u=u+Math.imul(pe,We)|0,b=b+Math.imul(pe,nt)|0,m=m+Math.imul(W,je)|0,u=u+Math.imul(W,at)|0,u=u+Math.imul(X,je)|0,b=b+Math.imul(X,at)|0;var Vr=(C+m|0)+((u&8191)<<13)|0;C=(b+(u>>>13)|0)+(Vr>>>26)|0,Vr&=67108863,m=Math.imul(Ae,Ne),u=Math.imul(Ae,$e),u=u+Math.imul(Ke,Ne)|0,b=Math.imul(Ke,$e),m=m+Math.imul(qe,Se)|0,u=u+Math.imul(qe,et)|0,u=u+Math.imul(Xe,Se)|0,b=b+Math.imul(Xe,et)|0,m=m+Math.imul(Ie,Le)|0,u=u+Math.imul(Ie,tt)|0,u=u+Math.imul(Ze,Le)|0,b=b+Math.imul(Ze,tt)|0,m=m+Math.imul(Me,De)|0,u=u+Math.imul(Me,rt)|0,u=u+Math.imul(Ve,De)|0,b=b+Math.imul(Ve,rt)|0,m=m+Math.imul(Be,ke)|0,u=u+Math.imul(Be,Je)|0,u=u+Math.imul(ze,ke)|0,b=b+Math.imul(ze,Je)|0,m=m+Math.imul(we,Ue)|0,u=u+Math.imul(we,st)|0,u=u+Math.imul(Oe,Ue)|0,b=b+Math.imul(Oe,st)|0,m=m+Math.imul(fe,We)|0,u=u+Math.imul(fe,nt)|0,u=u+Math.imul(be,We)|0,b=b+Math.imul(be,nt)|0,m=m+Math.imul(ne,je)|0,u=u+Math.imul(ne,at)|0,u=u+Math.imul(pe,je)|0,b=b+Math.imul(pe,at)|0;var Br=(C+m|0)+((u&8191)<<13)|0;C=(b+(u>>>13)|0)+(Br>>>26)|0,Br&=67108863,m=Math.imul(Ae,Se),u=Math.imul(Ae,et),u=u+Math.imul(Ke,Se)|0,b=Math.imul(Ke,et),m=m+Math.imul(qe,Le)|0,u=u+Math.imul(qe,tt)|0,u=u+Math.imul(Xe,Le)|0,b=b+Math.imul(Xe,tt)|0,m=m+Math.imul(Ie,De)|0,u=u+Math.imul(Ie,rt)|0,u=u+Math.imul(Ze,De)|0,b=b+Math.imul(Ze,rt)|0,m=m+Math.imul(Me,ke)|0,u=u+Math.imul(Me,Je)|0,u=u+Math.imul(Ve,ke)|0,b=b+Math.imul(Ve,Je)|0,m=m+Math.imul(Be,Ue)|0,u=u+Math.imul(Be,st)|0,u=u+Math.imul(ze,Ue)|0,b=b+Math.imul(ze,st)|0,m=m+Math.imul(we,We)|0,u=u+Math.imul(we,nt)|0,u=u+Math.imul(Oe,We)|0,b=b+Math.imul(Oe,nt)|0,m=m+Math.imul(fe,je)|0,u=u+Math.imul(fe,at)|0,u=u+Math.imul(be,je)|0,b=b+Math.imul(be,at)|0;var Fr=(C+m|0)+((u&8191)<<13)|0;C=(b+(u>>>13)|0)+(Fr>>>26)|0,Fr&=67108863,m=Math.imul(Ae,Le),u=Math.imul(Ae,tt),u=u+Math.imul(Ke,Le)|0,b=Math.imul(Ke,tt),m=m+Math.imul(qe,De)|0,u=u+Math.imul(qe,rt)|0,u=u+Math.imul(Xe,De)|0,b=b+Math.imul(Xe,rt)|0,m=m+Math.imul(Ie,ke)|0,u=u+Math.imul(Ie,Je)|0,u=u+Math.imul(Ze,ke)|0,b=b+Math.imul(Ze,Je)|0,m=m+Math.imul(Me,Ue)|0,u=u+Math.imul(Me,st)|0,u=u+Math.imul(Ve,Ue)|0,b=b+Math.imul(Ve,st)|0,m=m+Math.imul(Be,We)|0,u=u+Math.imul(Be,nt)|0,u=u+Math.imul(ze,We)|0,b=b+Math.imul(ze,nt)|0,m=m+Math.imul(we,je)|0,u=u+Math.imul(we,at)|0,u=u+Math.imul(Oe,je)|0,b=b+Math.imul(Oe,at)|0;var hr=(C+m|0)+((u&8191)<<13)|0;C=(b+(u>>>13)|0)+(hr>>>26)|0,hr&=67108863,m=Math.imul(Ae,De),u=Math.imul(Ae,rt),u=u+Math.imul(Ke,De)|0,b=Math.imul(Ke,rt),m=m+Math.imul(qe,ke)|0,u=u+Math.imul(qe,Je)|0,u=u+Math.imul(Xe,ke)|0,b=b+Math.imul(Xe,Je)|0,m=m+Math.imul(Ie,Ue)|0,u=u+Math.imul(Ie,st)|0,u=u+Math.imul(Ze,Ue)|0,b=b+Math.imul(Ze,st)|0,m=m+Math.imul(Me,We)|0,u=u+Math.imul(Me,nt)|0,u=u+Math.imul(Ve,We)|0,b=b+Math.imul(Ve,nt)|0,m=m+Math.imul(Be,je)|0,u=u+Math.imul(Be,at)|0,u=u+Math.imul(ze,je)|0,b=b+Math.imul(ze,at)|0;var Gr=(C+m|0)+((u&8191)<<13)|0;C=(b+(u>>>13)|0)+(Gr>>>26)|0,Gr&=67108863,m=Math.imul(Ae,ke),u=Math.imul(Ae,Je),u=u+Math.imul(Ke,ke)|0,b=Math.imul(Ke,Je),m=m+Math.imul(qe,Ue)|0,u=u+Math.imul(qe,st)|0,u=u+Math.imul(Xe,Ue)|0,b=b+Math.imul(Xe,st)|0,m=m+Math.imul(Ie,We)|0,u=u+Math.imul(Ie,nt)|0,u=u+Math.imul(Ze,We)|0,b=b+Math.imul(Ze,nt)|0,m=m+Math.imul(Me,je)|0,u=u+Math.imul(Me,at)|0,u=u+Math.imul(Ve,je)|0,b=b+Math.imul(Ve,at)|0;var gr=(C+m|0)+((u&8191)<<13)|0;C=(b+(u>>>13)|0)+(gr>>>26)|0,gr&=67108863,m=Math.imul(Ae,Ue),u=Math.imul(Ae,st),u=u+Math.imul(Ke,Ue)|0,b=Math.imul(Ke,st),m=m+Math.imul(qe,We)|0,u=u+Math.imul(qe,nt)|0,u=u+Math.imul(Xe,We)|0,b=b+Math.imul(Xe,nt)|0,m=m+Math.imul(Ie,je)|0,u=u+Math.imul(Ie,at)|0,u=u+Math.imul(Ze,je)|0,b=b+Math.imul(Ze,at)|0;var Ur=(C+m|0)+((u&8191)<<13)|0;C=(b+(u>>>13)|0)+(Ur>>>26)|0,Ur&=67108863,m=Math.imul(Ae,We),u=Math.imul(Ae,nt),u=u+Math.imul(Ke,We)|0,b=Math.imul(Ke,nt),m=m+Math.imul(qe,je)|0,u=u+Math.imul(qe,at)|0,u=u+Math.imul(Xe,je)|0,b=b+Math.imul(Xe,at)|0;var tn=(C+m|0)+((u&8191)<<13)|0;C=(b+(u>>>13)|0)+(tn>>>26)|0,tn&=67108863,m=Math.imul(Ae,je),u=Math.imul(Ae,at),u=u+Math.imul(Ke,je)|0,b=Math.imul(Ke,at);var An=(C+m|0)+((u&8191)<<13)|0;return C=(b+(u>>>13)|0)+(An>>>26)|0,An&=67108863,_[0]=Lr,_[1]=Wt,_[2]=jt,_[3]=Er,_[4]=kr,_[5]=Sr,_[6]=Ar,_[7]=Mr,_[8]=Kr,_[9]=Qr,_[10]=Vr,_[11]=Br,_[12]=Fr,_[13]=hr,_[14]=Gr,_[15]=gr,_[16]=Ur,_[17]=tn,_[18]=An,C!==0&&(_[19]=C,y.length++),y};Math.imul||(A=k);function L(g,o,p){p.negative=o.negative^g.negative,p.length=g.length+o.length;for(var y=0,h=0,v=0;v>>26)|0,h+=_>>>26,_&=67108863}p.words[v]=C,y=_,_=h}return y!==0?p.words[v]=y:p.length--,p.strip()}function q(g,o,p){var y=new U;return y.mulp(g,o,p)}a.prototype.mulTo=function(o,p){var y,h=this.length+o.length;return this.length===10&&o.length===10?y=A(this,o,p):h<63?y=k(this,o,p):h<1024?y=L(this,o,p):y=q(this,o,p),y};function U(g,o){this.x=g,this.y=o}U.prototype.makeRBT=function(o){for(var p=new Array(o),y=a.prototype._countBits(o)-1,h=0;h>=1;return h},U.prototype.permute=function(o,p,y,h,v,_){for(var C=0;C<_;C++)h[C]=p[o[C]],v[C]=y[o[C]]},U.prototype.transform=function(o,p,y,h,v,_){this.permute(_,o,p,y,h,v);for(var C=1;C>>1)v++;return 1<>>13,y[2*_+1]=v&8191,v=v>>>13;for(_=2*p;_>=26,p+=h/67108864|0,p+=v>>>26,this.words[y]=v&67108863}return p!==0&&(this.words[y]=p,this.length++),this},a.prototype.muln=function(o){return this.clone().imuln(o)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(o){var p=E(o);if(p.length===0)return new a(1);for(var y=this,h=0;h=0);var p=o%26,y=(o-p)/26,h=67108863>>>26-p<<26-p,v;if(p!==0){var _=0;for(v=0;v>>26-p}_&&(this.words[v]=_,this.length++)}if(y!==0){for(v=this.length-1;v>=0;v--)this.words[v+y]=this.words[v];for(v=0;v=0);var h;p?h=(p-p%26)/26:h=0;var v=o%26,_=Math.min((o-v)/26,this.length),C=67108863^67108863>>>v<_)for(this.length-=_,u=0;u=0&&(b!==0||u>=h);u--){var R=this.words[u]|0;this.words[u]=b<<26-v|R>>>v,b=R&C}return m&&b!==0&&(m.words[m.length++]=b),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},a.prototype.ishrn=function(o,p,y){return t(this.negative===0),this.iushrn(o,p,y)},a.prototype.shln=function(o){return this.clone().ishln(o)},a.prototype.ushln=function(o){return this.clone().iushln(o)},a.prototype.shrn=function(o){return this.clone().ishrn(o)},a.prototype.ushrn=function(o){return this.clone().iushrn(o)},a.prototype.testn=function(o){t(typeof o=="number"&&o>=0);var p=o%26,y=(o-p)/26,h=1<=0);var p=o%26,y=(o-p)/26;if(t(this.negative===0,"imaskn works only with positive numbers"),this.length<=y)return this;if(p!==0&&y++,this.length=Math.min(y,this.length),p!==0){var h=67108863^67108863>>>p<=67108864;p++)this.words[p]-=67108864,p===this.length-1?this.words[p+1]=1:this.words[p+1]++;return this.length=Math.max(this.length,p+1),this},a.prototype.isubn=function(o){if(t(typeof o=="number"),t(o<67108864),o<0)return this.iaddn(-o);if(this.negative!==0)return this.negative=0,this.iaddn(o),this.negative=1,this;if(this.words[0]-=o,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var p=0;p>26)-(m/67108864|0),this.words[v+y]=_&67108863}for(;v>26,this.words[v+y]=_&67108863;if(C===0)return this.strip();for(t(C===-1),C=0,v=0;v>26,this.words[v]=_&67108863;return this.negative=1,this.strip()},a.prototype._wordDiv=function(o,p){var y=this.length-o.length,h=this.clone(),v=o,_=v.words[v.length-1]|0,C=this._countBits(_);y=26-C,y!==0&&(v=v.ushln(y),h.iushln(y),_=v.words[v.length-1]|0);var m=h.length-v.length,u;if(p!=="mod"){u=new a(null),u.length=m+1,u.words=new Array(u.length);for(var b=0;b=0;S--){var B=(h.words[v.length+S]|0)*67108864+(h.words[v.length+S-1]|0);for(B=Math.min(B/_|0,67108863),h._ishlnsubmul(v,B,S);h.negative!==0;)B--,h.negative=0,h._ishlnsubmul(v,1,S),h.isZero()||(h.negative^=1);u&&(u.words[S]=B)}return u&&u.strip(),h.strip(),p!=="div"&&y!==0&&h.iushrn(y),{div:u||null,mod:h}},a.prototype.divmod=function(o,p,y){if(t(!o.isZero()),this.isZero())return{div:new a(0),mod:new a(0)};var h,v,_;return this.negative!==0&&o.negative===0?(_=this.neg().divmod(o,p),p!=="mod"&&(h=_.div.neg()),p!=="div"&&(v=_.mod.neg(),y&&v.negative!==0&&v.iadd(o)),{div:h,mod:v}):this.negative===0&&o.negative!==0?(_=this.divmod(o.neg(),p),p!=="mod"&&(h=_.div.neg()),{div:h,mod:_.mod}):(this.negative&o.negative)!==0?(_=this.neg().divmod(o.neg(),p),p!=="div"&&(v=_.mod.neg(),y&&v.negative!==0&&v.isub(o)),{div:_.div,mod:v}):o.length>this.length||this.cmp(o)<0?{div:new a(0),mod:this}:o.length===1?p==="div"?{div:this.divn(o.words[0]),mod:null}:p==="mod"?{div:null,mod:new a(this.modn(o.words[0]))}:{div:this.divn(o.words[0]),mod:new a(this.modn(o.words[0]))}:this._wordDiv(o,p)},a.prototype.div=function(o){return this.divmod(o,"div",!1).div},a.prototype.mod=function(o){return this.divmod(o,"mod",!1).mod},a.prototype.umod=function(o){return this.divmod(o,"mod",!0).mod},a.prototype.divRound=function(o){var p=this.divmod(o);if(p.mod.isZero())return p.div;var y=p.div.negative!==0?p.mod.isub(o):p.mod,h=o.ushrn(1),v=o.andln(1),_=y.cmp(h);return _<0||v===1&&_===0?p.div:p.div.negative!==0?p.div.isubn(1):p.div.iaddn(1)},a.prototype.modn=function(o){t(o<=67108863);for(var p=(1<<26)%o,y=0,h=this.length-1;h>=0;h--)y=(p*y+(this.words[h]|0))%o;return y},a.prototype.idivn=function(o){t(o<=67108863);for(var p=0,y=this.length-1;y>=0;y--){var h=(this.words[y]|0)+p*67108864;this.words[y]=h/o|0,p=h%o}return this.strip()},a.prototype.divn=function(o){return this.clone().idivn(o)},a.prototype.egcd=function(o){t(o.negative===0),t(!o.isZero());var p=this,y=o.clone();p.negative!==0?p=p.umod(o):p=p.clone();for(var h=new a(1),v=new a(0),_=new a(0),C=new a(1),m=0;p.isEven()&&y.isEven();)p.iushrn(1),y.iushrn(1),++m;for(var u=y.clone(),b=p.clone();!p.isZero();){for(var R=0,S=1;(p.words[0]&S)===0&&R<26;++R,S<<=1);if(R>0)for(p.iushrn(R);R-- >0;)(h.isOdd()||v.isOdd())&&(h.iadd(u),v.isub(b)),h.iushrn(1),v.iushrn(1);for(var B=0,Z=1;(y.words[0]&Z)===0&&B<26;++B,Z<<=1);if(B>0)for(y.iushrn(B);B-- >0;)(_.isOdd()||C.isOdd())&&(_.iadd(u),C.isub(b)),_.iushrn(1),C.iushrn(1);p.cmp(y)>=0?(p.isub(y),h.isub(_),v.isub(C)):(y.isub(p),_.isub(h),C.isub(v))}return{a:_,b:C,gcd:y.iushln(m)}},a.prototype._invmp=function(o){t(o.negative===0),t(!o.isZero());var p=this,y=o.clone();p.negative!==0?p=p.umod(o):p=p.clone();for(var h=new a(1),v=new a(0),_=y.clone();p.cmpn(1)>0&&y.cmpn(1)>0;){for(var C=0,m=1;(p.words[0]&m)===0&&C<26;++C,m<<=1);if(C>0)for(p.iushrn(C);C-- >0;)h.isOdd()&&h.iadd(_),h.iushrn(1);for(var u=0,b=1;(y.words[0]&b)===0&&u<26;++u,b<<=1);if(u>0)for(y.iushrn(u);u-- >0;)v.isOdd()&&v.iadd(_),v.iushrn(1);p.cmp(y)>=0?(p.isub(y),h.isub(v)):(y.isub(p),v.isub(h))}var R;return p.cmpn(1)===0?R=h:R=v,R.cmpn(0)<0&&R.iadd(o),R},a.prototype.gcd=function(o){if(this.isZero())return o.abs();if(o.isZero())return this.abs();var p=this.clone(),y=o.clone();p.negative=0,y.negative=0;for(var h=0;p.isEven()&&y.isEven();h++)p.iushrn(1),y.iushrn(1);do{for(;p.isEven();)p.iushrn(1);for(;y.isEven();)y.iushrn(1);var v=p.cmp(y);if(v<0){var _=p;p=y,y=_}else if(v===0||y.cmpn(1)===0)break;p.isub(y)}while(!0);return y.iushln(h)},a.prototype.invm=function(o){return this.egcd(o).a.umod(o)},a.prototype.isEven=function(){return(this.words[0]&1)===0},a.prototype.isOdd=function(){return(this.words[0]&1)===1},a.prototype.andln=function(o){return this.words[0]&o},a.prototype.bincn=function(o){t(typeof o=="number");var p=o%26,y=(o-p)/26,h=1<>>26,C&=67108863,this.words[_]=C}return v!==0&&(this.words[_]=v,this.length++),this},a.prototype.isZero=function(){return this.length===1&&this.words[0]===0},a.prototype.cmpn=function(o){var p=o<0;if(this.negative!==0&&!p)return-1;if(this.negative===0&&p)return 1;this.strip();var y;if(this.length>1)y=1;else{p&&(o=-o),t(o<=67108863,"Number is too big");var h=this.words[0]|0;y=h===o?0:ho.length)return 1;if(this.length=0;y--){var h=this.words[y]|0,v=o.words[y]|0;if(h!==v){hv&&(p=1);break}}return p},a.prototype.gtn=function(o){return this.cmpn(o)===1},a.prototype.gt=function(o){return this.cmp(o)===1},a.prototype.gten=function(o){return this.cmpn(o)>=0},a.prototype.gte=function(o){return this.cmp(o)>=0},a.prototype.ltn=function(o){return this.cmpn(o)===-1},a.prototype.lt=function(o){return this.cmp(o)===-1},a.prototype.lten=function(o){return this.cmpn(o)<=0},a.prototype.lte=function(o){return this.cmp(o)<=0},a.prototype.eqn=function(o){return this.cmpn(o)===0},a.prototype.eq=function(o){return this.cmp(o)===0},a.red=function(o){return new J(o)},a.prototype.toRed=function(o){return t(!this.red,"Already a number in reduction context"),t(this.negative===0,"red works only with positives"),o.convertTo(this)._forceRed(o)},a.prototype.fromRed=function(){return t(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(o){return this.red=o,this},a.prototype.forceRed=function(o){return t(!this.red,"Already a number in reduction context"),this._forceRed(o)},a.prototype.redAdd=function(o){return t(this.red,"redAdd works only with red numbers"),this.red.add(this,o)},a.prototype.redIAdd=function(o){return t(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,o)},a.prototype.redSub=function(o){return t(this.red,"redSub works only with red numbers"),this.red.sub(this,o)},a.prototype.redISub=function(o){return t(this.red,"redISub works only with red numbers"),this.red.isub(this,o)},a.prototype.redShl=function(o){return t(this.red,"redShl works only with red numbers"),this.red.shl(this,o)},a.prototype.redMul=function(o){return t(this.red,"redMul works only with red numbers"),this.red._verify2(this,o),this.red.mul(this,o)},a.prototype.redIMul=function(o){return t(this.red,"redMul works only with red numbers"),this.red._verify2(this,o),this.red.imul(this,o)},a.prototype.redSqr=function(){return t(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return t(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return t(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return t(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return t(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(o){return t(this.red&&!o.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,o)};var j={k256:null,p224:null,p192:null,p25519:null};function H(g,o){this.name=g,this.p=new a(o,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}H.prototype._tmp=function(){var o=new a(null);return o.words=new Array(Math.ceil(this.n/13)),o},H.prototype.ireduce=function(o){var p=o,y;do this.split(p,this.tmp),p=this.imulK(p),p=p.iadd(this.tmp),y=p.bitLength();while(y>this.n);var h=y0?p.isub(this.p):p.strip!==void 0?p.strip():p._strip(),p},H.prototype.split=function(o,p){o.iushrn(this.n,0,p)},H.prototype.imulK=function(o){return o.imul(this.k)};function G(){H.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}n(G,H),G.prototype.split=function(o,p){for(var y=4194303,h=Math.min(o.length,9),v=0;v>>22,_=C}_>>>=22,o.words[v-10]=_,_===0&&o.length>10?o.length-=10:o.length-=9},G.prototype.imulK=function(o){o.words[o.length]=0,o.words[o.length+1]=0,o.length+=2;for(var p=0,y=0;y>>=26,o.words[y]=v,p=h}return p!==0&&(o.words[o.length++]=p),o},a._prime=function(o){if(j[o])return j[o];var p;if(o==="k256")p=new G;else if(o==="p224")p=new te;else if(o==="p192")p=new K;else if(o==="p25519")p=new ae;else throw new Error("Unknown prime "+o);return j[o]=p,p};function J(g){if(typeof g=="string"){var o=a._prime(g);this.m=o.p,this.prime=o}else t(g.gtn(1),"modulus must be greater than 1"),this.m=g,this.prime=null}J.prototype._verify1=function(o){t(o.negative===0,"red works only with positives"),t(o.red,"red works only with red numbers")},J.prototype._verify2=function(o,p){t((o.negative|p.negative)===0,"red works only with positives"),t(o.red&&o.red===p.red,"red works only with red numbers")},J.prototype.imod=function(o){return this.prime?this.prime.ireduce(o)._forceRed(this):o.umod(this.m)._forceRed(this)},J.prototype.neg=function(o){return o.isZero()?o.clone():this.m.sub(o)._forceRed(this)},J.prototype.add=function(o,p){this._verify2(o,p);var y=o.add(p);return y.cmp(this.m)>=0&&y.isub(this.m),y._forceRed(this)},J.prototype.iadd=function(o,p){this._verify2(o,p);var y=o.iadd(p);return y.cmp(this.m)>=0&&y.isub(this.m),y},J.prototype.sub=function(o,p){this._verify2(o,p);var y=o.sub(p);return y.cmpn(0)<0&&y.iadd(this.m),y._forceRed(this)},J.prototype.isub=function(o,p){this._verify2(o,p);var y=o.isub(p);return y.cmpn(0)<0&&y.iadd(this.m),y},J.prototype.shl=function(o,p){return this._verify1(o),this.imod(o.ushln(p))},J.prototype.imul=function(o,p){return this._verify2(o,p),this.imod(o.imul(p))},J.prototype.mul=function(o,p){return this._verify2(o,p),this.imod(o.mul(p))},J.prototype.isqr=function(o){return this.imul(o,o.clone())},J.prototype.sqr=function(o){return this.mul(o,o)},J.prototype.sqrt=function(o){if(o.isZero())return o.clone();var p=this.m.andln(3);if(t(p%2===1),p===3){var y=this.m.add(new a(1)).iushrn(2);return this.pow(o,y)}for(var h=this.m.subn(1),v=0;!h.isZero()&&h.andln(1)===0;)v++,h.iushrn(1);t(!h.isZero());var _=new a(1).toRed(this),C=_.redNeg(),m=this.m.subn(1).iushrn(1),u=this.m.bitLength();for(u=new a(2*u*u).toRed(this);this.pow(u,m).cmp(C)!==0;)u.redIAdd(C);for(var b=this.pow(u,h),R=this.pow(o,h.addn(1).iushrn(1)),S=this.pow(o,h),B=v;S.cmp(_)!==0;){for(var Z=S,W=0;Z.cmp(_)!==0;W++)Z=Z.redSqr();t(W=0;v--){for(var b=p.words[v],R=u-1;R>=0;R--){var S=b>>R&1;if(_!==h[0]&&(_=this.sqr(_)),S===0&&C===0){m=0;continue}C<<=1,C|=S,m++,!(m!==y&&(v!==0||R!==0))&&(_=this.mul(_,h[C]),m=0,C=0)}u=26}return _},J.prototype.convertTo=function(o){var p=o.umod(this.m);return p===o?p.clone():p},J.prototype.convertFrom=function(o){var p=o.clone();return p.red=null,p},a.mont=function(o){return new V(o)};function V(g){J.call(this,g),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new a(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}n(V,J),V.prototype.convertTo=function(o){return this.imod(o.ushln(this.shift))},V.prototype.convertFrom=function(o){var p=this.imod(o.mul(this.rinv));return p.red=null,p},V.prototype.imul=function(o,p){if(o.isZero()||p.isZero())return o.words[0]=0,o.length=1,o;var y=o.imul(p),h=y.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),v=y.isub(h).iushrn(this.shift),_=v;return v.cmp(this.m)>=0?_=v.isub(this.m):v.cmpn(0)<0&&(_=v.iadd(this.m)),_._forceRed(this)},V.prototype.mul=function(o,p){if(o.isZero()||p.isZero())return new a(0)._forceRed(this);var y=o.mul(p),h=y.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),v=y.isub(h).iushrn(this.shift),_=v;return v.cmp(this.m)>=0?_=v.isub(this.m):v.cmpn(0)<0&&(_=v.iadd(this.m)),_._forceRed(this)},V.prototype.invm=function(o){var p=this.imod(o._invmp(this.m).mul(this.r2));return p._forceRed(this)}})(typeof QU>"u"||QU,Ohe)});var XU=O((bKr,Bhe)=>{x();T();var Lhe=aA(),y5t=Zr().Buffer;function g5t(r,e){return y5t.from(r.toRed(Lhe.mont(e.modulus)).redPow(new Lhe(e.publicExponent)).fromRed().toArray())}Bhe.exports=g5t});var Uhe=O((TKr,Fhe)=>{x();T();var v5t=w6(),YU=ig(),b5t=_b(),qhe=JU(),Dhe=KU(),$U=aA(),w5t=XU(),x5t=VS(),$d=Zr().Buffer;Fhe.exports=function(e,t,n){var a;e.padding?a=e.padding:n?a=1:a=4;var i=v5t(e),s;if(a===4)s=T5t(i,t);else if(a===1)s=_5t(i,t,n);else if(a===3){if(s=new $U(t),s.cmp(i.modulus)>=0)throw new Error("data too long for modulus")}else throw new Error("unknown padding");return n?x5t(s,i):w5t(s,i)};function T5t(r,e){var t=r.modulus.byteLength(),n=e.length,a=b5t("sha1").update($d.alloc(0)).digest(),i=a.length,s=2*i;if(n>t-s-2)throw new Error("message too long");var c=$d.alloc(t-n-s-2),l=t-i-1,d=YU(i),f=Dhe($d.concat([a,c,$d.alloc(1,1),e],l),qhe(d,l)),w=Dhe(d,qhe(f,i));return new $U($d.concat([$d.alloc(1),w,f],t))}function _5t(r,e,t){var n=e.length,a=r.modulus.byteLength();if(n>a-11)throw new Error("message too long");var i;return t?i=$d.alloc(a-n-3,255):i=C5t(a-n-3),new $U($d.concat([$d.from([0,t?1:2]),i,$d.alloc(1),e],a))}function C5t(r){for(var e=$d.allocUnsafe(r),t=0,n=YU(r*2),a=0,i;t{x();T();var E5t=w6(),Whe=JU(),jhe=KU(),zhe=aA(),k5t=VS(),S5t=_b(),A5t=XU(),E6=Zr().Buffer;Hhe.exports=function(e,t,n){var a;e.padding?a=e.padding:n?a=1:a=4;var i=E5t(e),s=i.modulus.byteLength();if(t.length>s||new zhe(t).cmp(i.modulus)>=0)throw new Error("decryption error");var c;n?c=A5t(new zhe(t),i):c=k5t(t,i);var l=E6.alloc(s-c.length);if(c=E6.concat([l,c],s),a===4)return M5t(i,c);if(a===1)return I5t(i,c,n);if(a===3)return c;throw new Error("unknown padding")};function M5t(r,e){var t=r.modulus.byteLength(),n=S5t("sha1").update(E6.alloc(0)).digest(),a=n.length;if(e[0]!==0)throw new Error("decryption error");var i=e.slice(1,a+1),s=e.slice(a+1),c=jhe(i,Whe(s,a)),l=jhe(s,Whe(c,t-a-1));if(P5t(n,l.slice(0,a)))throw new Error("decryption error");for(var d=a;l[d]===0;)d++;if(l[d++]!==1)throw new Error("decryption error");return l.slice(d)}function I5t(r,e,t){for(var n=e.slice(0,2),a=2,i=0;e[a++]!==0;)if(a>=e.length){i++;break}var s=e.slice(2,a-1);if((n.toString("hex")!=="0002"&&!t||n.toString("hex")!=="0001"&&t)&&i++,s.length<8&&i++,i)throw new Error("decryption error");return e.slice(a)}function P5t(r,e){r=E6.from(r),e=E6.from(e);var t=0,n=r.length;r.length!==e.length&&(t++,n=Math.min(r.length,e.length));for(var a=-1;++a{x();T();Mg.publicEncrypt=Uhe();Mg.privateDecrypt=Vhe();Mg.privateEncrypt=function(e,t){return Mg.publicEncrypt(e,t,!0)};Mg.publicDecrypt=function(e,t){return Mg.privateDecrypt(e,t,!0)}});var rfe=O(k6=>{"use strict";x();T();function Zhe(){throw new Error(`secure random number generation not supported by this browser -use chrome, FireFox or Internet Explorer 11`)}var Khe=Zr(),Jhe=ig(),Qhe=Khe.Buffer,Xhe=Khe.kMaxLength,eW=I.crypto||I.msCrypto,Yhe=Math.pow(2,32)-1;function $he(r,e){if(typeof r!="number"||r!==r)throw new TypeError("offset must be a number");if(r>Yhe||r<0)throw new TypeError("offset must be a uint32");if(r>Xhe||r>e)throw new RangeError("offset out of range")}function efe(r,e,t){if(typeof r!="number"||r!==r)throw new TypeError("size must be a number");if(r>Yhe||r<0)throw new TypeError("size must be a uint32");if(r+e>t||r>Xhe)throw new RangeError("buffer too small")}eW&&eW.getRandomValues||!M.browser?(k6.randomFill=R5t,k6.randomFillSync=N5t):(k6.randomFill=Zhe,k6.randomFillSync=Zhe);function R5t(r,e,t,n){if(!Qhe.isBuffer(r)&&!(r instanceof I.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if(typeof e=="function")n=e,e=0,t=r.length;else if(typeof t=="function")n=t,t=r.length-e;else if(typeof n!="function")throw new TypeError('"cb" argument must be a function');return $he(e,r.length),efe(t,e,r.length),tfe(r,e,t,n)}function tfe(r,e,t,n){if(M.browser){var a=r.buffer,i=new Uint8Array(a,e,t);if(eW.getRandomValues(i),n){M.nextTick(function(){n(null,r)});return}return r}if(n){Jhe(t,function(c,l){if(c)return n(c);l.copy(r,e),n(null,r)});return}var s=Jhe(t);return s.copy(r,e),r}function N5t(r,e,t){if(typeof e>"u"&&(e=0),!Qhe.isBuffer(r)&&!(r instanceof I.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');return $he(e,r.length),t===void 0&&(t=r.length-e),efe(t,e,r.length),tfe(r,e,t)}});var ife=O(Jr=>{"use strict";x();T();Jr.randomBytes=Jr.rng=Jr.pseudoRandomBytes=Jr.prng=ig();Jr.createHash=Jr.Hash=_b();Jr.createHmac=Jr.Hmac=UF();var O5t=jle(),L5t=Object.keys(O5t),B5t=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(L5t);Jr.getHashes=function(){return B5t};var nfe=QF();Jr.pbkdf2=nfe.pbkdf2;Jr.pbkdf2Sync=nfe.pbkdf2Sync;var rh=cpe();Jr.Cipher=rh.Cipher;Jr.createCipher=rh.createCipher;Jr.Cipheriv=rh.Cipheriv;Jr.createCipheriv=rh.createCipheriv;Jr.Decipher=rh.Decipher;Jr.createDecipher=rh.createDecipher;Jr.Decipheriv=rh.Decipheriv;Jr.createDecipheriv=rh.createDecipheriv;Jr.getCiphers=rh.getCiphers;Jr.listCiphers=rh.listCiphers;var S6=_pe();Jr.DiffieHellmanGroup=S6.DiffieHellmanGroup;Jr.createDiffieHellmanGroup=S6.createDiffieHellmanGroup;Jr.getDiffieHellman=S6.getDiffieHellman;Jr.createDiffieHellman=S6.createDiffieHellman;Jr.DiffieHellman=S6.DiffieHellman;var iA=She();Jr.createSign=iA.createSign;Jr.Sign=iA.Sign;Jr.createVerify=iA.createVerify;Jr.Verify=iA.Verify;Jr.createECDH=Phe();var sA=Ghe();Jr.publicEncrypt=sA.publicEncrypt;Jr.privateEncrypt=sA.privateEncrypt;Jr.publicDecrypt=sA.publicDecrypt;Jr.privateDecrypt=sA.privateDecrypt;var afe=rfe();Jr.randomFill=afe.randomFill;Jr.randomFillSync=afe.randomFillSync;Jr.createCredentials=function(){throw new Error(["sorry, createCredentials is not implemented yet","we accept pull requests","https://github.com/crypto-browserify/crypto-browserify"].join(` -`))};Jr.constants={DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,ALPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6}});var jS=O((qKr,nW)=>{x();T();var tW;nW.exports=function(e){return tW||(tW=new e0(null)),tW.generate(e)};function e0(r){this.rand=r}nW.exports.Rand=e0;e0.prototype.generate=function(e){return this._rand(e)};e0.prototype._rand=function(e){if(this.rand.getBytes)return this.rand.getBytes(e);for(var t=new Uint8Array(e),n=0;n{"use strict";x();T();var Ig=Yp(),A6=Yu(),oA=A6.getNAF,q5t=A6.getJSF,cA=A6.assert;function t0(r,e){this.type=r,this.p=new Ig(e.p,16),this.red=e.prime?Ig.red(e.prime):Ig.mont(this.p),this.zero=new Ig(0).toRed(this.red),this.one=new Ig(1).toRed(this.red),this.two=new Ig(2).toRed(this.red),this.n=e.n&&new Ig(e.n,16),this.g=e.g&&this.pointFromJSON(e.g,e.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var t=this.n&&this.p.div(this.n);!t||t.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}sfe.exports=t0;t0.prototype.point=function(){throw new Error("Not implemented")};t0.prototype.validate=function(){throw new Error("Not implemented")};t0.prototype._fixedNafMul=function(e,t){cA(e.precomputed);var n=e._getDoubles(),a=oA(t,1,this._bitLength),i=(1<=c;d--)l=(l<<1)+a[d];s.push(l)}for(var f=this.jpoint(null,null,null),w=this.jpoint(null,null,null),E=i;E>0;E--){for(c=0;c=0;l--){for(var d=0;l>=0&&s[l]===0;l--)d++;if(l>=0&&d++,c=c.dblp(d),l<0)break;var f=s[l];cA(f!==0),e.type==="affine"?f>0?c=c.mixedAdd(i[f-1>>1]):c=c.mixedAdd(i[-f-1>>1].neg()):f>0?c=c.add(i[f-1>>1]):c=c.add(i[-f-1>>1].neg())}return e.type==="affine"?c.toP():c};t0.prototype._wnafMulAdd=function(e,t,n,a,i){var s=this._wnafT1,c=this._wnafT2,l=this._wnafT3,d=0,f,w,E;for(f=0;f=1;f-=2){var A=f-1,L=f;if(s[A]!==1||s[L]!==1){l[A]=oA(n[A],s[A],this._bitLength),l[L]=oA(n[L],s[L],this._bitLength),d=Math.max(l[A].length,d),d=Math.max(l[L].length,d);continue}var q=[t[A],null,null,t[L]];t[A].y.cmp(t[L].y)===0?(q[1]=t[A].add(t[L]),q[2]=t[A].toJ().mixedAdd(t[L].neg())):t[A].y.cmp(t[L].y.redNeg())===0?(q[1]=t[A].toJ().mixedAdd(t[L]),q[2]=t[A].add(t[L].neg())):(q[1]=t[A].toJ().mixedAdd(t[L]),q[2]=t[A].toJ().mixedAdd(t[L].neg()));var U=[-3,-1,-5,-7,0,7,5,1,3],j=q5t(n[A],n[L]);for(d=Math.max(j[0].length,d),l[A]=new Array(d),l[L]=new Array(d),w=0;w=0;f--){for(var ae=0;f>=0;){var J=!0;for(w=0;w=0&&ae++,te=te.dblp(ae),f<0)break;for(w=0;w0?E=c[w][V-1>>1]:V<0&&(E=c[w][-V-1>>1].neg()),E.type==="affine"?te=te.mixedAdd(E):te=te.add(E))}}for(f=0;f=Math.ceil((e.bitLength()+1)/t.step):!1};Hl.prototype._getDoubles=function(e,t){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var n=[this],a=this,i=0;i{"use strict";x();T();var D5t=Yu(),Wi=Yp(),aW=jr(),Fb=M6(),F5t=D5t.assert;function Vl(r){Fb.call(this,"short",r),this.a=new Wi(r.a,16).toRed(this.red),this.b=new Wi(r.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=this.a.fromRed().cmpn(0)===0,this.threeA=this.a.fromRed().sub(this.p).cmpn(-3)===0,this.endo=this._getEndomorphism(r),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}aW(Vl,Fb);ofe.exports=Vl;Vl.prototype._getEndomorphism=function(e){if(!(!this.zeroA||!this.g||!this.n||this.p.modn(3)!==1)){var t,n;if(e.beta)t=new Wi(e.beta,16).toRed(this.red);else{var a=this._getEndoRoots(this.p);t=a[0].cmp(a[1])<0?a[0]:a[1],t=t.toRed(this.red)}if(e.lambda)n=new Wi(e.lambda,16);else{var i=this._getEndoRoots(this.n);this.g.mul(i[0]).x.cmp(this.g.x.redMul(t))===0?n=i[0]:(n=i[1],F5t(this.g.mul(n).x.cmp(this.g.x.redMul(t))===0))}var s;return e.basis?s=e.basis.map(function(c){return{a:new Wi(c.a,16),b:new Wi(c.b,16)}}):s=this._getEndoBasis(n),{beta:t,lambda:n,basis:s}}};Vl.prototype._getEndoRoots=function(e){var t=e===this.p?this.red:Wi.mont(e),n=new Wi(2).toRed(t).redInvm(),a=n.redNeg(),i=new Wi(3).toRed(t).redNeg().redSqrt().redMul(n),s=a.redAdd(i).fromRed(),c=a.redSub(i).fromRed();return[s,c]};Vl.prototype._getEndoBasis=function(e){for(var t=this.n.ushrn(Math.floor(this.n.bitLength()/2)),n=e,a=this.n.clone(),i=new Wi(1),s=new Wi(0),c=new Wi(0),l=new Wi(1),d,f,w,E,k,A,L,q=0,U,j;n.cmpn(0)!==0;){var H=a.div(n);U=a.sub(H.mul(n)),j=c.sub(H.mul(i));var G=l.sub(H.mul(s));if(!w&&U.cmp(t)<0)d=L.neg(),f=i,w=U.neg(),E=j;else if(w&&++q===2)break;L=U,a=n,n=U,c=i,i=j,l=s,s=G}k=U.neg(),A=j;var te=w.sqr().add(E.sqr()),K=k.sqr().add(A.sqr());return K.cmp(te)>=0&&(k=d,A=f),w.negative&&(w=w.neg(),E=E.neg()),k.negative&&(k=k.neg(),A=A.neg()),[{a:w,b:E},{a:k,b:A}]};Vl.prototype._endoSplit=function(e){var t=this.endo.basis,n=t[0],a=t[1],i=a.b.mul(e).divRound(this.n),s=n.b.neg().mul(e).divRound(this.n),c=i.mul(n.a),l=s.mul(a.a),d=i.mul(n.b),f=s.mul(a.b),w=e.sub(c).sub(l),E=d.add(f).neg();return{k1:w,k2:E}};Vl.prototype.pointFromX=function(e,t){e=new Wi(e,16),e.red||(e=e.toRed(this.red));var n=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),a=n.redSqrt();if(a.redSqr().redSub(n).cmp(this.zero)!==0)throw new Error("invalid point");var i=a.fromRed().isOdd();return(t&&!i||!t&&i)&&(a=a.redNeg()),this.point(e,a)};Vl.prototype.validate=function(e){if(e.inf)return!0;var t=e.x,n=e.y,a=this.a.redMul(t),i=t.redSqr().redMul(t).redIAdd(a).redIAdd(this.b);return n.redSqr().redISub(i).cmpn(0)===0};Vl.prototype._endoWnafMulAdd=function(e,t,n){for(var a=this._endoWnafT1,i=this._endoWnafT2,s=0;s":""};Us.prototype.isInfinity=function(){return this.inf};Us.prototype.add=function(e){if(this.inf)return e;if(e.inf)return this;if(this.eq(e))return this.dbl();if(this.neg().eq(e))return this.curve.point(null,null);if(this.x.cmp(e.x)===0)return this.curve.point(null,null);var t=this.y.redSub(e.y);t.cmpn(0)!==0&&(t=t.redMul(this.x.redSub(e.x).redInvm()));var n=t.redSqr().redISub(this.x).redISub(e.x),a=t.redMul(this.x.redSub(n)).redISub(this.y);return this.curve.point(n,a)};Us.prototype.dbl=function(){if(this.inf)return this;var e=this.y.redAdd(this.y);if(e.cmpn(0)===0)return this.curve.point(null,null);var t=this.curve.a,n=this.x.redSqr(),a=e.redInvm(),i=n.redAdd(n).redIAdd(n).redIAdd(t).redMul(a),s=i.redSqr().redISub(this.x.redAdd(this.x)),c=i.redMul(this.x.redSub(s)).redISub(this.y);return this.curve.point(s,c)};Us.prototype.getX=function(){return this.x.fromRed()};Us.prototype.getY=function(){return this.y.fromRed()};Us.prototype.mul=function(e){return e=new Wi(e,16),this.isInfinity()?this:this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve.endo?this.curve._endoWnafMulAdd([this],[e]):this.curve._wnafMul(this,e)};Us.prototype.mulAdd=function(e,t,n){var a=[this,t],i=[e,n];return this.curve.endo?this.curve._endoWnafMulAdd(a,i):this.curve._wnafMulAdd(1,a,i,2)};Us.prototype.jmulAdd=function(e,t,n){var a=[this,t],i=[e,n];return this.curve.endo?this.curve._endoWnafMulAdd(a,i,!0):this.curve._wnafMulAdd(1,a,i,2,!0)};Us.prototype.eq=function(e){return this===e||this.inf===e.inf&&(this.inf||this.x.cmp(e.x)===0&&this.y.cmp(e.y)===0)};Us.prototype.neg=function(e){if(this.inf)return this;var t=this.curve.point(this.x,this.y.redNeg());if(e&&this.precomputed){var n=this.precomputed,a=function(i){return i.neg()};t.precomputed={naf:n.naf&&{wnd:n.naf.wnd,points:n.naf.points.map(a)},doubles:n.doubles&&{step:n.doubles.step,points:n.doubles.points.map(a)}}}return t};Us.prototype.toJ=function(){if(this.inf)return this.curve.jpoint(null,null,null);var e=this.curve.jpoint(this.x,this.y,this.curve.one);return e};function io(r,e,t,n){Fb.BasePoint.call(this,r,"jacobian"),e===null&&t===null&&n===null?(this.x=this.curve.one,this.y=this.curve.one,this.z=new Wi(0)):(this.x=new Wi(e,16),this.y=new Wi(t,16),this.z=new Wi(n,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}aW(io,Fb.BasePoint);Vl.prototype.jpoint=function(e,t,n){return new io(this,e,t,n)};io.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var e=this.z.redInvm(),t=e.redSqr(),n=this.x.redMul(t),a=this.y.redMul(t).redMul(e);return this.curve.point(n,a)};io.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)};io.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var t=e.z.redSqr(),n=this.z.redSqr(),a=this.x.redMul(t),i=e.x.redMul(n),s=this.y.redMul(t.redMul(e.z)),c=e.y.redMul(n.redMul(this.z)),l=a.redSub(i),d=s.redSub(c);if(l.cmpn(0)===0)return d.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var f=l.redSqr(),w=f.redMul(l),E=a.redMul(f),k=d.redSqr().redIAdd(w).redISub(E).redISub(E),A=d.redMul(E.redISub(k)).redISub(s.redMul(w)),L=this.z.redMul(e.z).redMul(l);return this.curve.jpoint(k,A,L)};io.prototype.mixedAdd=function(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;var t=this.z.redSqr(),n=this.x,a=e.x.redMul(t),i=this.y,s=e.y.redMul(t).redMul(this.z),c=n.redSub(a),l=i.redSub(s);if(c.cmpn(0)===0)return l.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var d=c.redSqr(),f=d.redMul(c),w=n.redMul(d),E=l.redSqr().redIAdd(f).redISub(w).redISub(w),k=l.redMul(w.redISub(E)).redISub(i.redMul(f)),A=this.z.redMul(c);return this.curve.jpoint(E,k,A)};io.prototype.dblp=function(e){if(e===0)return this;if(this.isInfinity())return this;if(!e)return this.dbl();var t;if(this.curve.zeroA||this.curve.threeA){var n=this;for(t=0;t=0)return!1;if(n.redIAdd(i),this.x.cmp(n)===0)return!0}};io.prototype.inspect=function(){return this.isInfinity()?"":""};io.prototype.isInfinity=function(){return this.z.cmpn(0)===0}});var dfe=O((GKr,lfe)=>{"use strict";x();T();var Ub=Yp(),ufe=jr(),uA=M6(),U5t=Yu();function Wb(r){uA.call(this,"mont",r),this.a=new Ub(r.a,16).toRed(this.red),this.b=new Ub(r.b,16).toRed(this.red),this.i4=new Ub(4).toRed(this.red).redInvm(),this.two=new Ub(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}ufe(Wb,uA);lfe.exports=Wb;Wb.prototype.validate=function(e){var t=e.normalize().x,n=t.redSqr(),a=n.redMul(t).redAdd(n.redMul(this.a)).redAdd(t),i=a.redSqrt();return i.redSqr().cmp(a)===0};function Ws(r,e,t){uA.BasePoint.call(this,r,"projective"),e===null&&t===null?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new Ub(e,16),this.z=new Ub(t,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}ufe(Ws,uA.BasePoint);Wb.prototype.decodePoint=function(e,t){return this.point(U5t.toArray(e,t),1)};Wb.prototype.point=function(e,t){return new Ws(this,e,t)};Wb.prototype.pointFromJSON=function(e){return Ws.fromJSON(this,e)};Ws.prototype.precompute=function(){};Ws.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())};Ws.fromJSON=function(e,t){return new Ws(e,t[0],t[1]||e.one)};Ws.prototype.inspect=function(){return this.isInfinity()?"":""};Ws.prototype.isInfinity=function(){return this.z.cmpn(0)===0};Ws.prototype.dbl=function(){var e=this.x.redAdd(this.z),t=e.redSqr(),n=this.x.redSub(this.z),a=n.redSqr(),i=t.redSub(a),s=t.redMul(a),c=i.redMul(a.redAdd(this.curve.a24.redMul(i)));return this.curve.point(s,c)};Ws.prototype.add=function(){throw new Error("Not supported on Montgomery curve")};Ws.prototype.diffAdd=function(e,t){var n=this.x.redAdd(this.z),a=this.x.redSub(this.z),i=e.x.redAdd(e.z),s=e.x.redSub(e.z),c=s.redMul(n),l=i.redMul(a),d=t.z.redMul(c.redAdd(l).redSqr()),f=t.x.redMul(c.redISub(l).redSqr());return this.curve.point(d,f)};Ws.prototype.mul=function(e){for(var t=e.clone(),n=this,a=this.curve.point(null,null),i=this,s=[];t.cmpn(0)!==0;t.iushrn(1))s.push(t.andln(1));for(var c=s.length-1;c>=0;c--)s[c]===0?(n=n.diffAdd(a,i),a=a.dbl()):(a=n.diffAdd(a,i),n=n.dbl());return a};Ws.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")};Ws.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")};Ws.prototype.eq=function(e){return this.getX().cmp(e.getX())===0};Ws.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this};Ws.prototype.getX=function(){return this.normalize(),this.x.fromRed()}});var ffe=O((KKr,hfe)=>{"use strict";x();T();var W5t=Yu(),kf=Yp(),pfe=jr(),lA=M6(),j5t=W5t.assert;function nh(r){this.twisted=(r.a|0)!==1,this.mOneA=this.twisted&&(r.a|0)===-1,this.extended=this.mOneA,lA.call(this,"edwards",r),this.a=new kf(r.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new kf(r.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new kf(r.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),j5t(!this.twisted||this.c.fromRed().cmpn(1)===0),this.oneC=(r.c|0)===1}pfe(nh,lA);hfe.exports=nh;nh.prototype._mulA=function(e){return this.mOneA?e.redNeg():this.a.redMul(e)};nh.prototype._mulC=function(e){return this.oneC?e:this.c.redMul(e)};nh.prototype.jpoint=function(e,t,n,a){return this.point(e,t,n,a)};nh.prototype.pointFromX=function(e,t){e=new kf(e,16),e.red||(e=e.toRed(this.red));var n=e.redSqr(),a=this.c2.redSub(this.a.redMul(n)),i=this.one.redSub(this.c2.redMul(this.d).redMul(n)),s=a.redMul(i.redInvm()),c=s.redSqrt();if(c.redSqr().redSub(s).cmp(this.zero)!==0)throw new Error("invalid point");var l=c.fromRed().isOdd();return(t&&!l||!t&&l)&&(c=c.redNeg()),this.point(e,c)};nh.prototype.pointFromY=function(e,t){e=new kf(e,16),e.red||(e=e.toRed(this.red));var n=e.redSqr(),a=n.redSub(this.c2),i=n.redMul(this.d).redMul(this.c2).redSub(this.a),s=a.redMul(i.redInvm());if(s.cmp(this.zero)===0){if(t)throw new Error("invalid point");return this.point(this.zero,e)}var c=s.redSqrt();if(c.redSqr().redSub(s).cmp(this.zero)!==0)throw new Error("invalid point");return c.fromRed().isOdd()!==t&&(c=c.redNeg()),this.point(c,e)};nh.prototype.validate=function(e){if(e.isInfinity())return!0;e.normalize();var t=e.x.redSqr(),n=e.y.redSqr(),a=t.redMul(this.a).redAdd(n),i=this.c2.redMul(this.one.redAdd(this.d.redMul(t).redMul(n)));return a.cmp(i)===0};function pi(r,e,t,n,a){lA.BasePoint.call(this,r,"projective"),e===null&&t===null&&n===null?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new kf(e,16),this.y=new kf(t,16),this.z=n?new kf(n,16):this.curve.one,this.t=a&&new kf(a,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}pfe(pi,lA.BasePoint);nh.prototype.pointFromJSON=function(e){return pi.fromJSON(this,e)};nh.prototype.point=function(e,t,n,a){return new pi(this,e,t,n,a)};pi.fromJSON=function(e,t){return new pi(e,t[0],t[1],t[2])};pi.prototype.inspect=function(){return this.isInfinity()?"":""};pi.prototype.isInfinity=function(){return this.x.cmpn(0)===0&&(this.y.cmp(this.z)===0||this.zOne&&this.y.cmp(this.curve.c)===0)};pi.prototype._extDbl=function(){var e=this.x.redSqr(),t=this.y.redSqr(),n=this.z.redSqr();n=n.redIAdd(n);var a=this.curve._mulA(e),i=this.x.redAdd(this.y).redSqr().redISub(e).redISub(t),s=a.redAdd(t),c=s.redSub(n),l=a.redSub(t),d=i.redMul(c),f=s.redMul(l),w=i.redMul(l),E=c.redMul(s);return this.curve.point(d,f,E,w)};pi.prototype._projDbl=function(){var e=this.x.redAdd(this.y).redSqr(),t=this.x.redSqr(),n=this.y.redSqr(),a,i,s,c,l,d;if(this.curve.twisted){c=this.curve._mulA(t);var f=c.redAdd(n);this.zOne?(a=e.redSub(t).redSub(n).redMul(f.redSub(this.curve.two)),i=f.redMul(c.redSub(n)),s=f.redSqr().redSub(f).redSub(f)):(l=this.z.redSqr(),d=f.redSub(l).redISub(l),a=e.redSub(t).redISub(n).redMul(d),i=f.redMul(c.redSub(n)),s=f.redMul(d))}else c=t.redAdd(n),l=this.curve._mulC(this.z).redSqr(),d=c.redSub(l).redSub(l),a=this.curve._mulC(e.redISub(c)).redMul(d),i=this.curve._mulC(c).redMul(t.redISub(n)),s=c.redMul(d);return this.curve.point(a,i,s)};pi.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()};pi.prototype._extAdd=function(e){var t=this.y.redSub(this.x).redMul(e.y.redSub(e.x)),n=this.y.redAdd(this.x).redMul(e.y.redAdd(e.x)),a=this.t.redMul(this.curve.dd).redMul(e.t),i=this.z.redMul(e.z.redAdd(e.z)),s=n.redSub(t),c=i.redSub(a),l=i.redAdd(a),d=n.redAdd(t),f=s.redMul(c),w=l.redMul(d),E=s.redMul(d),k=c.redMul(l);return this.curve.point(f,w,k,E)};pi.prototype._projAdd=function(e){var t=this.z.redMul(e.z),n=t.redSqr(),a=this.x.redMul(e.x),i=this.y.redMul(e.y),s=this.curve.d.redMul(a).redMul(i),c=n.redSub(s),l=n.redAdd(s),d=this.x.redAdd(this.y).redMul(e.x.redAdd(e.y)).redISub(a).redISub(i),f=t.redMul(c).redMul(d),w,E;return this.curve.twisted?(w=t.redMul(l).redMul(i.redSub(this.curve._mulA(a))),E=c.redMul(l)):(w=t.redMul(l).redMul(i.redSub(a)),E=this.curve._mulC(c).redMul(l)),this.curve.point(f,w,E)};pi.prototype.add=function(e){return this.isInfinity()?e:e.isInfinity()?this:this.curve.extended?this._extAdd(e):this._projAdd(e)};pi.prototype.mul=function(e){return this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve._wnafMul(this,e)};pi.prototype.mulAdd=function(e,t,n){return this.curve._wnafMulAdd(1,[this,t],[e,n],2,!1)};pi.prototype.jmulAdd=function(e,t,n){return this.curve._wnafMulAdd(1,[this,t],[e,n],2,!0)};pi.prototype.normalize=function(){if(this.zOne)return this;var e=this.z.redInvm();return this.x=this.x.redMul(e),this.y=this.y.redMul(e),this.t&&(this.t=this.t.redMul(e)),this.z=this.curve.one,this.zOne=!0,this};pi.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())};pi.prototype.getX=function(){return this.normalize(),this.x.fromRed()};pi.prototype.getY=function(){return this.normalize(),this.y.fromRed()};pi.prototype.eq=function(e){return this===e||this.getX().cmp(e.getX())===0&&this.getY().cmp(e.getY())===0};pi.prototype.eqXToP=function(e){var t=e.toRed(this.curve.red).redMul(this.z);if(this.x.cmp(t)===0)return!0;for(var n=e.clone(),a=this.curve.redN.redMul(this.z);;){if(n.iadd(this.curve.n),n.cmp(this.curve.p)>=0)return!1;if(t.redIAdd(a),this.x.cmp(t)===0)return!0}};pi.prototype.toP=pi.prototype.normalize;pi.prototype.mixedAdd=pi.prototype.add});var iW=O(mfe=>{"use strict";x();T();var dA=mfe;dA.base=M6();dA.short=cfe();dA.mont=dfe();dA.edwards=ffe()});var ep=O(di=>{"use strict";x();T();var z5t=Xu(),H5t=jr();di.inherits=H5t;function V5t(r,e){return(r.charCodeAt(e)&64512)!==55296||e<0||e+1>=r.length?!1:(r.charCodeAt(e+1)&64512)===56320}function G5t(r,e){if(Array.isArray(r))return r.slice();if(!r)return[];var t=[];if(typeof r=="string")if(e){if(e==="hex")for(r=r.replace(/[^a-z0-9]+/ig,""),r.length%2!==0&&(r="0"+r),a=0;a>6|192,t[n++]=i&63|128):V5t(r,a)?(i=65536+((i&1023)<<10)+(r.charCodeAt(++a)&1023),t[n++]=i>>18|240,t[n++]=i>>12&63|128,t[n++]=i>>6&63|128,t[n++]=i&63|128):(t[n++]=i>>12|224,t[n++]=i>>6&63|128,t[n++]=i&63|128)}else for(a=0;a>>24|r>>>8&65280|r<<8&16711680|(r&255)<<24;return e>>>0}di.htonl=yfe;function J5t(r,e){for(var t="",n=0;n>>0}return i}di.join32=K5t;function Q5t(r,e){for(var t=new Array(r.length*4),n=0,a=0;n>>24,t[a+1]=i>>>16&255,t[a+2]=i>>>8&255,t[a+3]=i&255):(t[a+3]=i>>>24,t[a+2]=i>>>16&255,t[a+1]=i>>>8&255,t[a]=i&255)}return t}di.split32=Q5t;function X5t(r,e){return r>>>e|r<<32-e}di.rotr32=X5t;function Y5t(r,e){return r<>>32-e}di.rotl32=Y5t;function $5t(r,e){return r+e>>>0}di.sum32=$5t;function e3t(r,e,t){return r+e+t>>>0}di.sum32_3=e3t;function t3t(r,e,t,n){return r+e+t+n>>>0}di.sum32_4=t3t;function r3t(r,e,t,n,a){return r+e+t+n+a>>>0}di.sum32_5=r3t;function n3t(r,e,t,n){var a=r[e],i=r[e+1],s=n+i>>>0,c=(s>>0,r[e+1]=s}di.sum64=n3t;function a3t(r,e,t,n){var a=e+n>>>0,i=(a>>0}di.sum64_hi=a3t;function i3t(r,e,t,n){var a=e+n;return a>>>0}di.sum64_lo=i3t;function s3t(r,e,t,n,a,i,s,c){var l=0,d=e;d=d+n>>>0,l+=d>>0,l+=d>>0,l+=d>>0}di.sum64_4_hi=s3t;function o3t(r,e,t,n,a,i,s,c){var l=e+n+i+c;return l>>>0}di.sum64_4_lo=o3t;function c3t(r,e,t,n,a,i,s,c,l,d){var f=0,w=e;w=w+n>>>0,f+=w>>0,f+=w>>0,f+=w>>0,f+=w>>0}di.sum64_5_hi=c3t;function u3t(r,e,t,n,a,i,s,c,l,d){var f=e+n+i+c+d;return f>>>0}di.sum64_5_lo=u3t;function l3t(r,e,t){var n=e<<32-t|r>>>t;return n>>>0}di.rotr64_hi=l3t;function d3t(r,e,t){var n=r<<32-t|e>>>t;return n>>>0}di.rotr64_lo=d3t;function p3t(r,e,t){return r>>>t}di.shr64_hi=p3t;function h3t(r,e,t){var n=r<<32-t|e>>>t;return n>>>0}di.shr64_lo=h3t});var jb=O(wfe=>{"use strict";x();T();var bfe=ep(),f3t=Xu();function pA(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}wfe.BlockHash=pA;pA.prototype.update=function(e,t){if(e=bfe.toArray(e,t),this.pending?this.pending=this.pending.concat(e):this.pending=e,this.pendingTotal+=e.length,this.pending.length>=this._delta8){e=this.pending;var n=e.length%this._delta8;this.pending=e.slice(e.length-n,e.length),this.pending.length===0&&(this.pending=null),e=bfe.join32(e,0,e.length-n,this.endian);for(var a=0;a>>24&255,a[i++]=e>>>16&255,a[i++]=e>>>8&255,a[i++]=e&255}else for(a[i++]=e&255,a[i++]=e>>>8&255,a[i++]=e>>>16&255,a[i++]=e>>>24&255,a[i++]=0,a[i++]=0,a[i++]=0,a[i++]=0,s=8;s{"use strict";x();T();var m3t=ep(),ah=m3t.rotr32;function y3t(r,e,t,n){if(r===0)return xfe(e,t,n);if(r===1||r===3)return _fe(e,t,n);if(r===2)return Tfe(e,t,n)}Sf.ft_1=y3t;function xfe(r,e,t){return r&e^~r&t}Sf.ch32=xfe;function Tfe(r,e,t){return r&e^r&t^e&t}Sf.maj32=Tfe;function _fe(r,e,t){return r^e^t}Sf.p32=_fe;function g3t(r){return ah(r,2)^ah(r,13)^ah(r,22)}Sf.s0_256=g3t;function v3t(r){return ah(r,6)^ah(r,11)^ah(r,25)}Sf.s1_256=v3t;function b3t(r){return ah(r,7)^ah(r,18)^r>>>3}Sf.g0_256=b3t;function w3t(r){return ah(r,17)^ah(r,19)^r>>>10}Sf.g1_256=w3t});var kfe=O((lQr,Efe)=>{"use strict";x();T();var zb=ep(),x3t=jb(),T3t=sW(),oW=zb.rotl32,I6=zb.sum32,_3t=zb.sum32_5,C3t=T3t.ft_1,Cfe=x3t.BlockHash,E3t=[1518500249,1859775393,2400959708,3395469782];function ih(){if(!(this instanceof ih))return new ih;Cfe.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}zb.inherits(ih,Cfe);Efe.exports=ih;ih.blockSize=512;ih.outSize=160;ih.hmacStrength=80;ih.padLength=64;ih.prototype._update=function(e,t){for(var n=this.W,a=0;a<16;a++)n[a]=e[t+a];for(;a{"use strict";x();T();var Hb=ep(),k3t=jb(),Vb=sW(),S3t=Xu(),tp=Hb.sum32,A3t=Hb.sum32_4,M3t=Hb.sum32_5,I3t=Vb.ch32,P3t=Vb.maj32,R3t=Vb.s0_256,N3t=Vb.s1_256,O3t=Vb.g0_256,L3t=Vb.g1_256,Sfe=k3t.BlockHash,B3t=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function sh(){if(!(this instanceof sh))return new sh;Sfe.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=B3t,this.W=new Array(64)}Hb.inherits(sh,Sfe);Afe.exports=sh;sh.blockSize=512;sh.outSize=256;sh.hmacStrength=192;sh.padLength=64;sh.prototype._update=function(e,t){for(var n=this.W,a=0;a<16;a++)n[a]=e[t+a];for(;a{"use strict";x();T();var uW=ep(),Mfe=cW();function Af(){if(!(this instanceof Af))return new Af;Mfe.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}uW.inherits(Af,Mfe);Ife.exports=Af;Af.blockSize=512;Af.outSize=224;Af.hmacStrength=192;Af.padLength=64;Af.prototype._digest=function(e){return e==="hex"?uW.toHex32(this.h.slice(0,7),"big"):uW.split32(this.h.slice(0,7),"big")}});var pW=O((bQr,Lfe)=>{"use strict";x();T();var du=ep(),q3t=jb(),D3t=Xu(),oh=du.rotr64_hi,ch=du.rotr64_lo,Rfe=du.shr64_hi,Nfe=du.shr64_lo,r0=du.sum64,lW=du.sum64_hi,dW=du.sum64_lo,F3t=du.sum64_4_hi,U3t=du.sum64_4_lo,W3t=du.sum64_5_hi,j3t=du.sum64_5_lo,Ofe=q3t.BlockHash,z3t=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function rp(){if(!(this instanceof rp))return new rp;Ofe.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=z3t,this.W=new Array(160)}du.inherits(rp,Ofe);Lfe.exports=rp;rp.blockSize=1024;rp.outSize=512;rp.hmacStrength=192;rp.padLength=128;rp.prototype._prepareBlock=function(e,t){for(var n=this.W,a=0;a<32;a++)n[a]=e[t+a];for(;a{"use strict";x();T();var hW=ep(),Bfe=pW();function Mf(){if(!(this instanceof Mf))return new Mf;Bfe.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}hW.inherits(Mf,Bfe);qfe.exports=Mf;Mf.blockSize=1024;Mf.outSize=384;Mf.hmacStrength=192;Mf.padLength=128;Mf.prototype._digest=function(e){return e==="hex"?hW.toHex32(this.h.slice(0,12),"big"):hW.split32(this.h.slice(0,12),"big")}});var Ffe=O(Gb=>{"use strict";x();T();Gb.sha1=kfe();Gb.sha224=Pfe();Gb.sha256=cW();Gb.sha384=Dfe();Gb.sha512=pW()});var Vfe=O(Hfe=>{"use strict";x();T();var Pg=ep(),r6t=jb(),hA=Pg.rotl32,Ufe=Pg.sum32,P6=Pg.sum32_3,Wfe=Pg.sum32_4,zfe=r6t.BlockHash;function uh(){if(!(this instanceof uh))return new uh;zfe.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}Pg.inherits(uh,zfe);Hfe.ripemd160=uh;uh.blockSize=512;uh.outSize=160;uh.hmacStrength=192;uh.padLength=64;uh.prototype._update=function(e,t){for(var n=this.h[0],a=this.h[1],i=this.h[2],s=this.h[3],c=this.h[4],l=n,d=a,f=i,w=s,E=c,k=0;k<80;k++){var A=Ufe(hA(Wfe(n,jfe(k,a,i,s),e[i6t[k]+t],n6t(k)),o6t[k]),c);n=c,c=s,s=hA(i,10),i=a,a=A,A=Ufe(hA(Wfe(l,jfe(79-k,d,f,w),e[s6t[k]+t],a6t(k)),c6t[k]),E),l=E,E=w,w=hA(f,10),f=d,d=A}A=P6(this.h[1],i,w),this.h[1]=P6(this.h[2],s,E),this.h[2]=P6(this.h[3],c,l),this.h[3]=P6(this.h[4],n,d),this.h[4]=P6(this.h[0],a,f),this.h[0]=A};uh.prototype._digest=function(e){return e==="hex"?Pg.toHex32(this.h,"little"):Pg.split32(this.h,"little")};function jfe(r,e,t,n){return r<=15?e^t^n:r<=31?e&t|~e&n:r<=47?(e|~t)^n:r<=63?e&n|t&~n:e^(t|~n)}function n6t(r){return r<=15?0:r<=31?1518500249:r<=47?1859775393:r<=63?2400959708:2840853838}function a6t(r){return r<=15?1352829926:r<=31?1548603684:r<=47?1836072691:r<=63?2053994217:0}var i6t=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],s6t=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],o6t=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],c6t=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]});var Zfe=O((PQr,Gfe)=>{"use strict";x();T();var u6t=ep(),l6t=Xu();function Zb(r,e,t){if(!(this instanceof Zb))return new Zb(r,e,t);this.Hash=r,this.blockSize=r.blockSize/8,this.outSize=r.outSize/8,this.inner=null,this.outer=null,this._init(u6t.toArray(e,t))}Gfe.exports=Zb;Zb.prototype._init=function(e){e.length>this.blockSize&&(e=new this.Hash().update(e).digest()),l6t(e.length<=this.blockSize);for(var t=e.length;t{x();T();var so=Jfe;so.utils=ep();so.common=jb();so.sha=Ffe();so.ripemd=Vfe();so.hmac=Zfe();so.sha1=so.sha.sha1;so.sha256=so.sha.sha256;so.sha224=so.sha.sha224;so.sha384=so.sha.sha384;so.sha512=so.sha.sha512;so.ripemd160=so.ripemd.ripemd160});var Qfe=O((qQr,Kfe)=>{x();T();Kfe.exports={doubles:{step:4,points:[["e60fce93b59e9ec53011aabc21c23e97b2a31369b87a5ae9c44ee89e2a6dec0a","f7e3507399e595929db99f34f57937101296891e44d23f0be1f32cce69616821"],["8282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508","11f8a8098557dfe45e8256e830b60ace62d613ac2f7b17bed31b6eaff6e26caf"],["175e159f728b865a72f99cc6c6fc846de0b93833fd2222ed73fce5b551e5b739","d3506e0d9e3c79eba4ef97a51ff71f5eacb5955add24345c6efa6ffee9fed695"],["363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640","4e273adfc732221953b445397f3363145b9a89008199ecb62003c7f3bee9de9"],["8b4b5f165df3c2be8c6244b5b745638843e4a781a15bcd1b69f79a55dffdf80c","4aad0a6f68d308b4b3fbd7813ab0da04f9e336546162ee56b3eff0c65fd4fd36"],["723cbaa6e5db996d6bf771c00bd548c7b700dbffa6c0e77bcb6115925232fcda","96e867b5595cc498a921137488824d6e2660a0653779494801dc069d9eb39f5f"],["eebfa4d493bebf98ba5feec812c2d3b50947961237a919839a533eca0e7dd7fa","5d9a8ca3970ef0f269ee7edaf178089d9ae4cdc3a711f712ddfd4fdae1de8999"],["100f44da696e71672791d0a09b7bde459f1215a29b3c03bfefd7835b39a48db0","cdd9e13192a00b772ec8f3300c090666b7ff4a18ff5195ac0fbd5cd62bc65a09"],["e1031be262c7ed1b1dc9227a4a04c017a77f8d4464f3b3852c8acde6e534fd2d","9d7061928940405e6bb6a4176597535af292dd419e1ced79a44f18f29456a00d"],["feea6cae46d55b530ac2839f143bd7ec5cf8b266a41d6af52d5e688d9094696d","e57c6b6c97dce1bab06e4e12bf3ecd5c981c8957cc41442d3155debf18090088"],["da67a91d91049cdcb367be4be6ffca3cfeed657d808583de33fa978bc1ec6cb1","9bacaa35481642bc41f463f7ec9780e5dec7adc508f740a17e9ea8e27a68be1d"],["53904faa0b334cdda6e000935ef22151ec08d0f7bb11069f57545ccc1a37b7c0","5bc087d0bc80106d88c9eccac20d3c1c13999981e14434699dcb096b022771c8"],["8e7bcd0bd35983a7719cca7764ca906779b53a043a9b8bcaeff959f43ad86047","10b7770b2a3da4b3940310420ca9514579e88e2e47fd68b3ea10047e8460372a"],["385eed34c1cdff21e6d0818689b81bde71a7f4f18397e6690a841e1599c43862","283bebc3e8ea23f56701de19e9ebf4576b304eec2086dc8cc0458fe5542e5453"],["6f9d9b803ecf191637c73a4413dfa180fddf84a5947fbc9c606ed86c3fac3a7","7c80c68e603059ba69b8e2a30e45c4d47ea4dd2f5c281002d86890603a842160"],["3322d401243c4e2582a2147c104d6ecbf774d163db0f5e5313b7e0e742d0e6bd","56e70797e9664ef5bfb019bc4ddaf9b72805f63ea2873af624f3a2e96c28b2a0"],["85672c7d2de0b7da2bd1770d89665868741b3f9af7643397721d74d28134ab83","7c481b9b5b43b2eb6374049bfa62c2e5e77f17fcc5298f44c8e3094f790313a6"],["948bf809b1988a46b06c9f1919413b10f9226c60f668832ffd959af60c82a0a","53a562856dcb6646dc6b74c5d1c3418c6d4dff08c97cd2bed4cb7f88d8c8e589"],["6260ce7f461801c34f067ce0f02873a8f1b0e44dfc69752accecd819f38fd8e8","bc2da82b6fa5b571a7f09049776a1ef7ecd292238051c198c1a84e95b2b4ae17"],["e5037de0afc1d8d43d8348414bbf4103043ec8f575bfdc432953cc8d2037fa2d","4571534baa94d3b5f9f98d09fb990bddbd5f5b03ec481f10e0e5dc841d755bda"],["e06372b0f4a207adf5ea905e8f1771b4e7e8dbd1c6a6c5b725866a0ae4fce725","7a908974bce18cfe12a27bb2ad5a488cd7484a7787104870b27034f94eee31dd"],["213c7a715cd5d45358d0bbf9dc0ce02204b10bdde2a3f58540ad6908d0559754","4b6dad0b5ae462507013ad06245ba190bb4850f5f36a7eeddff2c27534b458f2"],["4e7c272a7af4b34e8dbb9352a5419a87e2838c70adc62cddf0cc3a3b08fbd53c","17749c766c9d0b18e16fd09f6def681b530b9614bff7dd33e0b3941817dcaae6"],["fea74e3dbe778b1b10f238ad61686aa5c76e3db2be43057632427e2840fb27b6","6e0568db9b0b13297cf674deccb6af93126b596b973f7b77701d3db7f23cb96f"],["76e64113f677cf0e10a2570d599968d31544e179b760432952c02a4417bdde39","c90ddf8dee4e95cf577066d70681f0d35e2a33d2b56d2032b4b1752d1901ac01"],["c738c56b03b2abe1e8281baa743f8f9a8f7cc643df26cbee3ab150242bcbb891","893fb578951ad2537f718f2eacbfbbbb82314eef7880cfe917e735d9699a84c3"],["d895626548b65b81e264c7637c972877d1d72e5f3a925014372e9f6588f6c14b","febfaa38f2bc7eae728ec60818c340eb03428d632bb067e179363ed75d7d991f"],["b8da94032a957518eb0f6433571e8761ceffc73693e84edd49150a564f676e03","2804dfa44805a1e4d7c99cc9762808b092cc584d95ff3b511488e4e74efdf6e7"],["e80fea14441fb33a7d8adab9475d7fab2019effb5156a792f1a11778e3c0df5d","eed1de7f638e00771e89768ca3ca94472d155e80af322ea9fcb4291b6ac9ec78"],["a301697bdfcd704313ba48e51d567543f2a182031efd6915ddc07bbcc4e16070","7370f91cfb67e4f5081809fa25d40f9b1735dbf7c0a11a130c0d1a041e177ea1"],["90ad85b389d6b936463f9d0512678de208cc330b11307fffab7ac63e3fb04ed4","e507a3620a38261affdcbd9427222b839aefabe1582894d991d4d48cb6ef150"],["8f68b9d2f63b5f339239c1ad981f162ee88c5678723ea3351b7b444c9ec4c0da","662a9f2dba063986de1d90c2b6be215dbbea2cfe95510bfdf23cbf79501fff82"],["e4f3fb0176af85d65ff99ff9198c36091f48e86503681e3e6686fd5053231e11","1e63633ad0ef4f1c1661a6d0ea02b7286cc7e74ec951d1c9822c38576feb73bc"],["8c00fa9b18ebf331eb961537a45a4266c7034f2f0d4e1d0716fb6eae20eae29e","efa47267fea521a1a9dc343a3736c974c2fadafa81e36c54e7d2a4c66702414b"],["e7a26ce69dd4829f3e10cec0a9e98ed3143d084f308b92c0997fddfc60cb3e41","2a758e300fa7984b471b006a1aafbb18d0a6b2c0420e83e20e8a9421cf2cfd51"],["b6459e0ee3662ec8d23540c223bcbdc571cbcb967d79424f3cf29eb3de6b80ef","67c876d06f3e06de1dadf16e5661db3c4b3ae6d48e35b2ff30bf0b61a71ba45"],["d68a80c8280bb840793234aa118f06231d6f1fc67e73c5a5deda0f5b496943e8","db8ba9fff4b586d00c4b1f9177b0e28b5b0e7b8f7845295a294c84266b133120"],["324aed7df65c804252dc0270907a30b09612aeb973449cea4095980fc28d3d5d","648a365774b61f2ff130c0c35aec1f4f19213b0c7e332843967224af96ab7c84"],["4df9c14919cde61f6d51dfdbe5fee5dceec4143ba8d1ca888e8bd373fd054c96","35ec51092d8728050974c23a1d85d4b5d506cdc288490192ebac06cad10d5d"],["9c3919a84a474870faed8a9c1cc66021523489054d7f0308cbfc99c8ac1f98cd","ddb84f0f4a4ddd57584f044bf260e641905326f76c64c8e6be7e5e03d4fc599d"],["6057170b1dd12fdf8de05f281d8e06bb91e1493a8b91d4cc5a21382120a959e5","9a1af0b26a6a4807add9a2daf71df262465152bc3ee24c65e899be932385a2a8"],["a576df8e23a08411421439a4518da31880cef0fba7d4df12b1a6973eecb94266","40a6bf20e76640b2c92b97afe58cd82c432e10a7f514d9f3ee8be11ae1b28ec8"],["7778a78c28dec3e30a05fe9629de8c38bb30d1f5cf9a3a208f763889be58ad71","34626d9ab5a5b22ff7098e12f2ff580087b38411ff24ac563b513fc1fd9f43ac"],["928955ee637a84463729fd30e7afd2ed5f96274e5ad7e5cb09eda9c06d903ac","c25621003d3f42a827b78a13093a95eeac3d26efa8a8d83fc5180e935bcd091f"],["85d0fef3ec6db109399064f3a0e3b2855645b4a907ad354527aae75163d82751","1f03648413a38c0be29d496e582cf5663e8751e96877331582c237a24eb1f962"],["ff2b0dce97eece97c1c9b6041798b85dfdfb6d8882da20308f5404824526087e","493d13fef524ba188af4c4dc54d07936c7b7ed6fb90e2ceb2c951e01f0c29907"],["827fbbe4b1e880ea9ed2b2e6301b212b57f1ee148cd6dd28780e5e2cf856e241","c60f9c923c727b0b71bef2c67d1d12687ff7a63186903166d605b68baec293ec"],["eaa649f21f51bdbae7be4ae34ce6e5217a58fdce7f47f9aa7f3b58fa2120e2b3","be3279ed5bbbb03ac69a80f89879aa5a01a6b965f13f7e59d47a5305ba5ad93d"],["e4a42d43c5cf169d9391df6decf42ee541b6d8f0c9a137401e23632dda34d24f","4d9f92e716d1c73526fc99ccfb8ad34ce886eedfa8d8e4f13a7f7131deba9414"],["1ec80fef360cbdd954160fadab352b6b92b53576a88fea4947173b9d4300bf19","aeefe93756b5340d2f3a4958a7abbf5e0146e77f6295a07b671cdc1cc107cefd"],["146a778c04670c2f91b00af4680dfa8bce3490717d58ba889ddb5928366642be","b318e0ec3354028add669827f9d4b2870aaa971d2f7e5ed1d0b297483d83efd0"],["fa50c0f61d22e5f07e3acebb1aa07b128d0012209a28b9776d76a8793180eef9","6b84c6922397eba9b72cd2872281a68a5e683293a57a213b38cd8d7d3f4f2811"],["da1d61d0ca721a11b1a5bf6b7d88e8421a288ab5d5bba5220e53d32b5f067ec2","8157f55a7c99306c79c0766161c91e2966a73899d279b48a655fba0f1ad836f1"],["a8e282ff0c9706907215ff98e8fd416615311de0446f1e062a73b0610d064e13","7f97355b8db81c09abfb7f3c5b2515888b679a3e50dd6bd6cef7c73111f4cc0c"],["174a53b9c9a285872d39e56e6913cab15d59b1fa512508c022f382de8319497c","ccc9dc37abfc9c1657b4155f2c47f9e6646b3a1d8cb9854383da13ac079afa73"],["959396981943785c3d3e57edf5018cdbe039e730e4918b3d884fdff09475b7ba","2e7e552888c331dd8ba0386a4b9cd6849c653f64c8709385e9b8abf87524f2fd"],["d2a63a50ae401e56d645a1153b109a8fcca0a43d561fba2dbb51340c9d82b151","e82d86fb6443fcb7565aee58b2948220a70f750af484ca52d4142174dcf89405"],["64587e2335471eb890ee7896d7cfdc866bacbdbd3839317b3436f9b45617e073","d99fcdd5bf6902e2ae96dd6447c299a185b90a39133aeab358299e5e9faf6589"],["8481bde0e4e4d885b3a546d3e549de042f0aa6cea250e7fd358d6c86dd45e458","38ee7b8cba5404dd84a25bf39cecb2ca900a79c42b262e556d64b1b59779057e"],["13464a57a78102aa62b6979ae817f4637ffcfed3c4b1ce30bcd6303f6caf666b","69be159004614580ef7e433453ccb0ca48f300a81d0942e13f495a907f6ecc27"],["bc4a9df5b713fe2e9aef430bcc1dc97a0cd9ccede2f28588cada3a0d2d83f366","d3a81ca6e785c06383937adf4b798caa6e8a9fbfa547b16d758d666581f33c1"],["8c28a97bf8298bc0d23d8c749452a32e694b65e30a9472a3954ab30fe5324caa","40a30463a3305193378fedf31f7cc0eb7ae784f0451cb9459e71dc73cbef9482"],["8ea9666139527a8c1dd94ce4f071fd23c8b350c5a4bb33748c4ba111faccae0","620efabbc8ee2782e24e7c0cfb95c5d735b783be9cf0f8e955af34a30e62b945"],["dd3625faef5ba06074669716bbd3788d89bdde815959968092f76cc4eb9a9787","7a188fa3520e30d461da2501045731ca941461982883395937f68d00c644a573"],["f710d79d9eb962297e4f6232b40e8f7feb2bc63814614d692c12de752408221e","ea98e67232d3b3295d3b535532115ccac8612c721851617526ae47a9c77bfc82"]]},naf:{wnd:7,points:[["f9308a019258c31049344f85f89d5229b531c845836f99b08601f113bce036f9","388f7b0f632de8140fe337e62a37f3566500a99934c2231b6cb9fd7584b8e672"],["2f8bde4d1a07209355b4a7250a5c5128e88b84bddc619ab7cba8d569b240efe4","d8ac222636e5e3d6d4dba9dda6c9c426f788271bab0d6840dca87d3aa6ac62d6"],["5cbdf0646e5db4eaa398f365f2ea7a0e3d419b7e0330e39ce92bddedcac4f9bc","6aebca40ba255960a3178d6d861a54dba813d0b813fde7b5a5082628087264da"],["acd484e2f0c7f65309ad178a9f559abde09796974c57e714c35f110dfc27ccbe","cc338921b0a7d9fd64380971763b61e9add888a4375f8e0f05cc262ac64f9c37"],["774ae7f858a9411e5ef4246b70c65aac5649980be5c17891bbec17895da008cb","d984a032eb6b5e190243dd56d7b7b365372db1e2dff9d6a8301d74c9c953c61b"],["f28773c2d975288bc7d1d205c3748651b075fbc6610e58cddeeddf8f19405aa8","ab0902e8d880a89758212eb65cdaf473a1a06da521fa91f29b5cb52db03ed81"],["d7924d4f7d43ea965a465ae3095ff41131e5946f3c85f79e44adbcf8e27e080e","581e2872a86c72a683842ec228cc6defea40af2bd896d3a5c504dc9ff6a26b58"],["defdea4cdb677750a420fee807eacf21eb9898ae79b9768766e4faa04a2d4a34","4211ab0694635168e997b0ead2a93daeced1f4a04a95c0f6cfb199f69e56eb77"],["2b4ea0a797a443d293ef5cff444f4979f06acfebd7e86d277475656138385b6c","85e89bc037945d93b343083b5a1c86131a01f60c50269763b570c854e5c09b7a"],["352bbf4a4cdd12564f93fa332ce333301d9ad40271f8107181340aef25be59d5","321eb4075348f534d59c18259dda3e1f4a1b3b2e71b1039c67bd3d8bcf81998c"],["2fa2104d6b38d11b0230010559879124e42ab8dfeff5ff29dc9cdadd4ecacc3f","2de1068295dd865b64569335bd5dd80181d70ecfc882648423ba76b532b7d67"],["9248279b09b4d68dab21a9b066edda83263c3d84e09572e269ca0cd7f5453714","73016f7bf234aade5d1aa71bdea2b1ff3fc0de2a887912ffe54a32ce97cb3402"],["daed4f2be3a8bf278e70132fb0beb7522f570e144bf615c07e996d443dee8729","a69dce4a7d6c98e8d4a1aca87ef8d7003f83c230f3afa726ab40e52290be1c55"],["c44d12c7065d812e8acf28d7cbb19f9011ecd9e9fdf281b0e6a3b5e87d22e7db","2119a460ce326cdc76c45926c982fdac0e106e861edf61c5a039063f0e0e6482"],["6a245bf6dc698504c89a20cfded60853152b695336c28063b61c65cbd269e6b4","e022cf42c2bd4a708b3f5126f16a24ad8b33ba48d0423b6efd5e6348100d8a82"],["1697ffa6fd9de627c077e3d2fe541084ce13300b0bec1146f95ae57f0d0bd6a5","b9c398f186806f5d27561506e4557433a2cf15009e498ae7adee9d63d01b2396"],["605bdb019981718b986d0f07e834cb0d9deb8360ffb7f61df982345ef27a7479","2972d2de4f8d20681a78d93ec96fe23c26bfae84fb14db43b01e1e9056b8c49"],["62d14dab4150bf497402fdc45a215e10dcb01c354959b10cfe31c7e9d87ff33d","80fc06bd8cc5b01098088a1950eed0db01aa132967ab472235f5642483b25eaf"],["80c60ad0040f27dade5b4b06c408e56b2c50e9f56b9b8b425e555c2f86308b6f","1c38303f1cc5c30f26e66bad7fe72f70a65eed4cbe7024eb1aa01f56430bd57a"],["7a9375ad6167ad54aa74c6348cc54d344cc5dc9487d847049d5eabb0fa03c8fb","d0e3fa9eca8726909559e0d79269046bdc59ea10c70ce2b02d499ec224dc7f7"],["d528ecd9b696b54c907a9ed045447a79bb408ec39b68df504bb51f459bc3ffc9","eecf41253136e5f99966f21881fd656ebc4345405c520dbc063465b521409933"],["49370a4b5f43412ea25f514e8ecdad05266115e4a7ecb1387231808f8b45963","758f3f41afd6ed428b3081b0512fd62a54c3f3afbb5b6764b653052a12949c9a"],["77f230936ee88cbbd73df930d64702ef881d811e0e1498e2f1c13eb1fc345d74","958ef42a7886b6400a08266e9ba1b37896c95330d97077cbbe8eb3c7671c60d6"],["f2dac991cc4ce4b9ea44887e5c7c0bce58c80074ab9d4dbaeb28531b7739f530","e0dedc9b3b2f8dad4da1f32dec2531df9eb5fbeb0598e4fd1a117dba703a3c37"],["463b3d9f662621fb1b4be8fbbe2520125a216cdfc9dae3debcba4850c690d45b","5ed430d78c296c3543114306dd8622d7c622e27c970a1de31cb377b01af7307e"],["f16f804244e46e2a09232d4aff3b59976b98fac14328a2d1a32496b49998f247","cedabd9b82203f7e13d206fcdf4e33d92a6c53c26e5cce26d6579962c4e31df6"],["caf754272dc84563b0352b7a14311af55d245315ace27c65369e15f7151d41d1","cb474660ef35f5f2a41b643fa5e460575f4fa9b7962232a5c32f908318a04476"],["2600ca4b282cb986f85d0f1709979d8b44a09c07cb86d7c124497bc86f082120","4119b88753c15bd6a693b03fcddbb45d5ac6be74ab5f0ef44b0be9475a7e4b40"],["7635ca72d7e8432c338ec53cd12220bc01c48685e24f7dc8c602a7746998e435","91b649609489d613d1d5e590f78e6d74ecfc061d57048bad9e76f302c5b9c61"],["754e3239f325570cdbbf4a87deee8a66b7f2b33479d468fbc1a50743bf56cc18","673fb86e5bda30fb3cd0ed304ea49a023ee33d0197a695d0c5d98093c536683"],["e3e6bd1071a1e96aff57859c82d570f0330800661d1c952f9fe2694691d9b9e8","59c9e0bba394e76f40c0aa58379a3cb6a5a2283993e90c4167002af4920e37f5"],["186b483d056a033826ae73d88f732985c4ccb1f32ba35f4b4cc47fdcf04aa6eb","3b952d32c67cf77e2e17446e204180ab21fb8090895138b4a4a797f86e80888b"],["df9d70a6b9876ce544c98561f4be4f725442e6d2b737d9c91a8321724ce0963f","55eb2dafd84d6ccd5f862b785dc39d4ab157222720ef9da217b8c45cf2ba2417"],["5edd5cc23c51e87a497ca815d5dce0f8ab52554f849ed8995de64c5f34ce7143","efae9c8dbc14130661e8cec030c89ad0c13c66c0d17a2905cdc706ab7399a868"],["290798c2b6476830da12fe02287e9e777aa3fba1c355b17a722d362f84614fba","e38da76dcd440621988d00bcf79af25d5b29c094db2a23146d003afd41943e7a"],["af3c423a95d9f5b3054754efa150ac39cd29552fe360257362dfdecef4053b45","f98a3fd831eb2b749a93b0e6f35cfb40c8cd5aa667a15581bc2feded498fd9c6"],["766dbb24d134e745cccaa28c99bf274906bb66b26dcf98df8d2fed50d884249a","744b1152eacbe5e38dcc887980da38b897584a65fa06cedd2c924f97cbac5996"],["59dbf46f8c94759ba21277c33784f41645f7b44f6c596a58ce92e666191abe3e","c534ad44175fbc300f4ea6ce648309a042ce739a7919798cd85e216c4a307f6e"],["f13ada95103c4537305e691e74e9a4a8dd647e711a95e73cb62dc6018cfd87b8","e13817b44ee14de663bf4bc808341f326949e21a6a75c2570778419bdaf5733d"],["7754b4fa0e8aced06d4167a2c59cca4cda1869c06ebadfb6488550015a88522c","30e93e864e669d82224b967c3020b8fa8d1e4e350b6cbcc537a48b57841163a2"],["948dcadf5990e048aa3874d46abef9d701858f95de8041d2a6828c99e2262519","e491a42537f6e597d5d28a3224b1bc25df9154efbd2ef1d2cbba2cae5347d57e"],["7962414450c76c1689c7b48f8202ec37fb224cf5ac0bfa1570328a8a3d7c77ab","100b610ec4ffb4760d5c1fc133ef6f6b12507a051f04ac5760afa5b29db83437"],["3514087834964b54b15b160644d915485a16977225b8847bb0dd085137ec47ca","ef0afbb2056205448e1652c48e8127fc6039e77c15c2378b7e7d15a0de293311"],["d3cc30ad6b483e4bc79ce2c9dd8bc54993e947eb8df787b442943d3f7b527eaf","8b378a22d827278d89c5e9be8f9508ae3c2ad46290358630afb34db04eede0a4"],["1624d84780732860ce1c78fcbfefe08b2b29823db913f6493975ba0ff4847610","68651cf9b6da903e0914448c6cd9d4ca896878f5282be4c8cc06e2a404078575"],["733ce80da955a8a26902c95633e62a985192474b5af207da6df7b4fd5fc61cd4","f5435a2bd2badf7d485a4d8b8db9fcce3e1ef8e0201e4578c54673bc1dc5ea1d"],["15d9441254945064cf1a1c33bbd3b49f8966c5092171e699ef258dfab81c045c","d56eb30b69463e7234f5137b73b84177434800bacebfc685fc37bbe9efe4070d"],["a1d0fcf2ec9de675b612136e5ce70d271c21417c9d2b8aaaac138599d0717940","edd77f50bcb5a3cab2e90737309667f2641462a54070f3d519212d39c197a629"],["e22fbe15c0af8ccc5780c0735f84dbe9a790badee8245c06c7ca37331cb36980","a855babad5cd60c88b430a69f53a1a7a38289154964799be43d06d77d31da06"],["311091dd9860e8e20ee13473c1155f5f69635e394704eaa74009452246cfa9b3","66db656f87d1f04fffd1f04788c06830871ec5a64feee685bd80f0b1286d8374"],["34c1fd04d301be89b31c0442d3e6ac24883928b45a9340781867d4232ec2dbdf","9414685e97b1b5954bd46f730174136d57f1ceeb487443dc5321857ba73abee"],["f219ea5d6b54701c1c14de5b557eb42a8d13f3abbcd08affcc2a5e6b049b8d63","4cb95957e83d40b0f73af4544cccf6b1f4b08d3c07b27fb8d8c2962a400766d1"],["d7b8740f74a8fbaab1f683db8f45de26543a5490bca627087236912469a0b448","fa77968128d9c92ee1010f337ad4717eff15db5ed3c049b3411e0315eaa4593b"],["32d31c222f8f6f0ef86f7c98d3a3335ead5bcd32abdd94289fe4d3091aa824bf","5f3032f5892156e39ccd3d7915b9e1da2e6dac9e6f26e961118d14b8462e1661"],["7461f371914ab32671045a155d9831ea8793d77cd59592c4340f86cbc18347b5","8ec0ba238b96bec0cbdddcae0aa442542eee1ff50c986ea6b39847b3cc092ff6"],["ee079adb1df1860074356a25aa38206a6d716b2c3e67453d287698bad7b2b2d6","8dc2412aafe3be5c4c5f37e0ecc5f9f6a446989af04c4e25ebaac479ec1c8c1e"],["16ec93e447ec83f0467b18302ee620f7e65de331874c9dc72bfd8616ba9da6b5","5e4631150e62fb40d0e8c2a7ca5804a39d58186a50e497139626778e25b0674d"],["eaa5f980c245f6f038978290afa70b6bd8855897f98b6aa485b96065d537bd99","f65f5d3e292c2e0819a528391c994624d784869d7e6ea67fb18041024edc07dc"],["78c9407544ac132692ee1910a02439958ae04877151342ea96c4b6b35a49f51","f3e0319169eb9b85d5404795539a5e68fa1fbd583c064d2462b675f194a3ddb4"],["494f4be219a1a77016dcd838431aea0001cdc8ae7a6fc688726578d9702857a5","42242a969283a5f339ba7f075e36ba2af925ce30d767ed6e55f4b031880d562c"],["a598a8030da6d86c6bc7f2f5144ea549d28211ea58faa70ebf4c1e665c1fe9b5","204b5d6f84822c307e4b4a7140737aec23fc63b65b35f86a10026dbd2d864e6b"],["c41916365abb2b5d09192f5f2dbeafec208f020f12570a184dbadc3e58595997","4f14351d0087efa49d245b328984989d5caf9450f34bfc0ed16e96b58fa9913"],["841d6063a586fa475a724604da03bc5b92a2e0d2e0a36acfe4c73a5514742881","73867f59c0659e81904f9a1c7543698e62562d6744c169ce7a36de01a8d6154"],["5e95bb399a6971d376026947f89bde2f282b33810928be4ded112ac4d70e20d5","39f23f366809085beebfc71181313775a99c9aed7d8ba38b161384c746012865"],["36e4641a53948fd476c39f8a99fd974e5ec07564b5315d8bf99471bca0ef2f66","d2424b1b1abe4eb8164227b085c9aa9456ea13493fd563e06fd51cf5694c78fc"],["336581ea7bfbbb290c191a2f507a41cf5643842170e914faeab27c2c579f726","ead12168595fe1be99252129b6e56b3391f7ab1410cd1e0ef3dcdcabd2fda224"],["8ab89816dadfd6b6a1f2634fcf00ec8403781025ed6890c4849742706bd43ede","6fdcef09f2f6d0a044e654aef624136f503d459c3e89845858a47a9129cdd24e"],["1e33f1a746c9c5778133344d9299fcaa20b0938e8acff2544bb40284b8c5fb94","60660257dd11b3aa9c8ed618d24edff2306d320f1d03010e33a7d2057f3b3b6"],["85b7c1dcb3cec1b7ee7f30ded79dd20a0ed1f4cc18cbcfcfa410361fd8f08f31","3d98a9cdd026dd43f39048f25a8847f4fcafad1895d7a633c6fed3c35e999511"],["29df9fbd8d9e46509275f4b125d6d45d7fbe9a3b878a7af872a2800661ac5f51","b4c4fe99c775a606e2d8862179139ffda61dc861c019e55cd2876eb2a27d84b"],["a0b1cae06b0a847a3fea6e671aaf8adfdfe58ca2f768105c8082b2e449fce252","ae434102edde0958ec4b19d917a6a28e6b72da1834aff0e650f049503a296cf2"],["4e8ceafb9b3e9a136dc7ff67e840295b499dfb3b2133e4ba113f2e4c0e121e5","cf2174118c8b6d7a4b48f6d534ce5c79422c086a63460502b827ce62a326683c"],["d24a44e047e19b6f5afb81c7ca2f69080a5076689a010919f42725c2b789a33b","6fb8d5591b466f8fc63db50f1c0f1c69013f996887b8244d2cdec417afea8fa3"],["ea01606a7a6c9cdd249fdfcfacb99584001edd28abbab77b5104e98e8e3b35d4","322af4908c7312b0cfbfe369f7a7b3cdb7d4494bc2823700cfd652188a3ea98d"],["af8addbf2b661c8a6c6328655eb96651252007d8c5ea31be4ad196de8ce2131f","6749e67c029b85f52a034eafd096836b2520818680e26ac8f3dfbcdb71749700"],["e3ae1974566ca06cc516d47e0fb165a674a3dabcfca15e722f0e3450f45889","2aeabe7e4531510116217f07bf4d07300de97e4874f81f533420a72eeb0bd6a4"],["591ee355313d99721cf6993ffed1e3e301993ff3ed258802075ea8ced397e246","b0ea558a113c30bea60fc4775460c7901ff0b053d25ca2bdeee98f1a4be5d196"],["11396d55fda54c49f19aa97318d8da61fa8584e47b084945077cf03255b52984","998c74a8cd45ac01289d5833a7beb4744ff536b01b257be4c5767bea93ea57a4"],["3c5d2a1ba39c5a1790000738c9e0c40b8dcdfd5468754b6405540157e017aa7a","b2284279995a34e2f9d4de7396fc18b80f9b8b9fdd270f6661f79ca4c81bd257"],["cc8704b8a60a0defa3a99a7299f2e9c3fbc395afb04ac078425ef8a1793cc030","bdd46039feed17881d1e0862db347f8cf395b74fc4bcdc4e940b74e3ac1f1b13"],["c533e4f7ea8555aacd9777ac5cad29b97dd4defccc53ee7ea204119b2889b197","6f0a256bc5efdf429a2fb6242f1a43a2d9b925bb4a4b3a26bb8e0f45eb596096"],["c14f8f2ccb27d6f109f6d08d03cc96a69ba8c34eec07bbcf566d48e33da6593","c359d6923bb398f7fd4473e16fe1c28475b740dd098075e6c0e8649113dc3a38"],["a6cbc3046bc6a450bac24789fa17115a4c9739ed75f8f21ce441f72e0b90e6ef","21ae7f4680e889bb130619e2c0f95a360ceb573c70603139862afd617fa9b9f"],["347d6d9a02c48927ebfb86c1359b1caf130a3c0267d11ce6344b39f99d43cc38","60ea7f61a353524d1c987f6ecec92f086d565ab687870cb12689ff1e31c74448"],["da6545d2181db8d983f7dcb375ef5866d47c67b1bf31c8cf855ef7437b72656a","49b96715ab6878a79e78f07ce5680c5d6673051b4935bd897fea824b77dc208a"],["c40747cc9d012cb1a13b8148309c6de7ec25d6945d657146b9d5994b8feb1111","5ca560753be2a12fc6de6caf2cb489565db936156b9514e1bb5e83037e0fa2d4"],["4e42c8ec82c99798ccf3a610be870e78338c7f713348bd34c8203ef4037f3502","7571d74ee5e0fb92a7a8b33a07783341a5492144cc54bcc40a94473693606437"],["3775ab7089bc6af823aba2e1af70b236d251cadb0c86743287522a1b3b0dedea","be52d107bcfa09d8bcb9736a828cfa7fac8db17bf7a76a2c42ad961409018cf7"],["cee31cbf7e34ec379d94fb814d3d775ad954595d1314ba8846959e3e82f74e26","8fd64a14c06b589c26b947ae2bcf6bfa0149ef0be14ed4d80f448a01c43b1c6d"],["b4f9eaea09b6917619f6ea6a4eb5464efddb58fd45b1ebefcdc1a01d08b47986","39e5c9925b5a54b07433a4f18c61726f8bb131c012ca542eb24a8ac07200682a"],["d4263dfc3d2df923a0179a48966d30ce84e2515afc3dccc1b77907792ebcc60e","62dfaf07a0f78feb30e30d6295853ce189e127760ad6cf7fae164e122a208d54"],["48457524820fa65a4f8d35eb6930857c0032acc0a4a2de422233eeda897612c4","25a748ab367979d98733c38a1fa1c2e7dc6cc07db2d60a9ae7a76aaa49bd0f77"],["dfeeef1881101f2cb11644f3a2afdfc2045e19919152923f367a1767c11cceda","ecfb7056cf1de042f9420bab396793c0c390bde74b4bbdff16a83ae09a9a7517"],["6d7ef6b17543f8373c573f44e1f389835d89bcbc6062ced36c82df83b8fae859","cd450ec335438986dfefa10c57fea9bcc521a0959b2d80bbf74b190dca712d10"],["e75605d59102a5a2684500d3b991f2e3f3c88b93225547035af25af66e04541f","f5c54754a8f71ee540b9b48728473e314f729ac5308b06938360990e2bfad125"],["eb98660f4c4dfaa06a2be453d5020bc99a0c2e60abe388457dd43fefb1ed620c","6cb9a8876d9cb8520609af3add26cd20a0a7cd8a9411131ce85f44100099223e"],["13e87b027d8514d35939f2e6892b19922154596941888336dc3563e3b8dba942","fef5a3c68059a6dec5d624114bf1e91aac2b9da568d6abeb2570d55646b8adf1"],["ee163026e9fd6fe017c38f06a5be6fc125424b371ce2708e7bf4491691e5764a","1acb250f255dd61c43d94ccc670d0f58f49ae3fa15b96623e5430da0ad6c62b2"],["b268f5ef9ad51e4d78de3a750c2dc89b1e626d43505867999932e5db33af3d80","5f310d4b3c99b9ebb19f77d41c1dee018cf0d34fd4191614003e945a1216e423"],["ff07f3118a9df035e9fad85eb6c7bfe42b02f01ca99ceea3bf7ffdba93c4750d","438136d603e858a3a5c440c38eccbaddc1d2942114e2eddd4740d098ced1f0d8"],["8d8b9855c7c052a34146fd20ffb658bea4b9f69e0d825ebec16e8c3ce2b526a1","cdb559eedc2d79f926baf44fb84ea4d44bcf50fee51d7ceb30e2e7f463036758"],["52db0b5384dfbf05bfa9d472d7ae26dfe4b851ceca91b1eba54263180da32b63","c3b997d050ee5d423ebaf66a6db9f57b3180c902875679de924b69d84a7b375"],["e62f9490d3d51da6395efd24e80919cc7d0f29c3f3fa48c6fff543becbd43352","6d89ad7ba4876b0b22c2ca280c682862f342c8591f1daf5170e07bfd9ccafa7d"],["7f30ea2476b399b4957509c88f77d0191afa2ff5cb7b14fd6d8e7d65aaab1193","ca5ef7d4b231c94c3b15389a5f6311e9daff7bb67b103e9880ef4bff637acaec"],["5098ff1e1d9f14fb46a210fada6c903fef0fb7b4a1dd1d9ac60a0361800b7a00","9731141d81fc8f8084d37c6e7542006b3ee1b40d60dfe5362a5b132fd17ddc0"],["32b78c7de9ee512a72895be6b9cbefa6e2f3c4ccce445c96b9f2c81e2778ad58","ee1849f513df71e32efc3896ee28260c73bb80547ae2275ba497237794c8753c"],["e2cb74fddc8e9fbcd076eef2a7c72b0ce37d50f08269dfc074b581550547a4f7","d3aa2ed71c9dd2247a62df062736eb0baddea9e36122d2be8641abcb005cc4a4"],["8438447566d4d7bedadc299496ab357426009a35f235cb141be0d99cd10ae3a8","c4e1020916980a4da5d01ac5e6ad330734ef0d7906631c4f2390426b2edd791f"],["4162d488b89402039b584c6fc6c308870587d9c46f660b878ab65c82c711d67e","67163e903236289f776f22c25fb8a3afc1732f2b84b4e95dbda47ae5a0852649"],["3fad3fa84caf0f34f0f89bfd2dcf54fc175d767aec3e50684f3ba4a4bf5f683d","cd1bc7cb6cc407bb2f0ca647c718a730cf71872e7d0d2a53fa20efcdfe61826"],["674f2600a3007a00568c1a7ce05d0816c1fb84bf1370798f1c69532faeb1a86b","299d21f9413f33b3edf43b257004580b70db57da0b182259e09eecc69e0d38a5"],["d32f4da54ade74abb81b815ad1fb3b263d82d6c692714bcff87d29bd5ee9f08f","f9429e738b8e53b968e99016c059707782e14f4535359d582fc416910b3eea87"],["30e4e670435385556e593657135845d36fbb6931f72b08cb1ed954f1e3ce3ff6","462f9bce619898638499350113bbc9b10a878d35da70740dc695a559eb88db7b"],["be2062003c51cc3004682904330e4dee7f3dcd10b01e580bf1971b04d4cad297","62188bc49d61e5428573d48a74e1c655b1c61090905682a0d5558ed72dccb9bc"],["93144423ace3451ed29e0fb9ac2af211cb6e84a601df5993c419859fff5df04a","7c10dfb164c3425f5c71a3f9d7992038f1065224f72bb9d1d902a6d13037b47c"],["b015f8044f5fcbdcf21ca26d6c34fb8197829205c7b7d2a7cb66418c157b112c","ab8c1e086d04e813744a655b2df8d5f83b3cdc6faa3088c1d3aea1454e3a1d5f"],["d5e9e1da649d97d89e4868117a465a3a4f8a18de57a140d36b3f2af341a21b52","4cb04437f391ed73111a13cc1d4dd0db1693465c2240480d8955e8592f27447a"],["d3ae41047dd7ca065dbf8ed77b992439983005cd72e16d6f996a5316d36966bb","bd1aeb21ad22ebb22a10f0303417c6d964f8cdd7df0aca614b10dc14d125ac46"],["463e2763d885f958fc66cdd22800f0a487197d0a82e377b49f80af87c897b065","bfefacdb0e5d0fd7df3a311a94de062b26b80c61fbc97508b79992671ef7ca7f"],["7985fdfd127c0567c6f53ec1bb63ec3158e597c40bfe747c83cddfc910641917","603c12daf3d9862ef2b25fe1de289aed24ed291e0ec6708703a5bd567f32ed03"],["74a1ad6b5f76e39db2dd249410eac7f99e74c59cb83d2d0ed5ff1543da7703e9","cc6157ef18c9c63cd6193d83631bbea0093e0968942e8c33d5737fd790e0db08"],["30682a50703375f602d416664ba19b7fc9bab42c72747463a71d0896b22f6da3","553e04f6b018b4fa6c8f39e7f311d3176290d0e0f19ca73f17714d9977a22ff8"],["9e2158f0d7c0d5f26c3791efefa79597654e7a2b2464f52b1ee6c1347769ef57","712fcdd1b9053f09003a3481fa7762e9ffd7c8ef35a38509e2fbf2629008373"],["176e26989a43c9cfeba4029c202538c28172e566e3c4fce7322857f3be327d66","ed8cc9d04b29eb877d270b4878dc43c19aefd31f4eee09ee7b47834c1fa4b1c3"],["75d46efea3771e6e68abb89a13ad747ecf1892393dfc4f1b7004788c50374da8","9852390a99507679fd0b86fd2b39a868d7efc22151346e1a3ca4726586a6bed8"],["809a20c67d64900ffb698c4c825f6d5f2310fb0451c869345b7319f645605721","9e994980d9917e22b76b061927fa04143d096ccc54963e6a5ebfa5f3f8e286c1"],["1b38903a43f7f114ed4500b4eac7083fdefece1cf29c63528d563446f972c180","4036edc931a60ae889353f77fd53de4a2708b26b6f5da72ad3394119daf408f9"]]}}});var fA=O($fe=>{"use strict";x();T();var mW=$fe,n0=R6(),fW=iW(),d6t=Yu(),Xfe=d6t.assert;function Yfe(r){r.type==="short"?this.curve=new fW.short(r):r.type==="edwards"?this.curve=new fW.edwards(r):this.curve=new fW.mont(r),this.g=this.curve.g,this.n=this.curve.n,this.hash=r.hash,Xfe(this.g.validate(),"Invalid curve"),Xfe(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}mW.PresetCurve=Yfe;function a0(r,e){Object.defineProperty(mW,r,{configurable:!0,enumerable:!0,get:function(){var t=new Yfe(e);return Object.defineProperty(mW,r,{configurable:!0,enumerable:!0,value:t}),t}})}a0("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:n0.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]});a0("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:n0.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]});a0("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:n0.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]});a0("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:n0.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]});a0("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:n0.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]});a0("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:n0.sha256,gRed:!1,g:["9"]});a0("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:n0.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});var yW;try{yW=Qfe()}catch{yW=void 0}a0("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:n0.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",yW]})});var rme=O((zQr,tme)=>{"use strict";x();T();var p6t=R6(),Rg=SD(),eme=Xu();function i0(r){if(!(this instanceof i0))return new i0(r);this.hash=r.hash,this.predResist=!!r.predResist,this.outLen=this.hash.outSize,this.minEntropy=r.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var e=Rg.toArray(r.entropy,r.entropyEnc||"hex"),t=Rg.toArray(r.nonce,r.nonceEnc||"hex"),n=Rg.toArray(r.pers,r.persEnc||"hex");eme(e.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(e,t,n)}tme.exports=i0;i0.prototype._init=function(e,t,n){var a=e.concat(t).concat(n);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var i=0;i=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(e.concat(n||[])),this._reseed=1};i0.prototype.generate=function(e,t,n,a){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");typeof t!="string"&&(a=n,n=t,t=null),n&&(n=Rg.toArray(n,a||"hex"),this._update(n));for(var i=[];i.length{"use strict";x();T();var h6t=Yp(),f6t=Yu(),gW=f6t.assert;function Po(r,e){this.ec=r,this.priv=null,this.pub=null,e.priv&&this._importPrivate(e.priv,e.privEnc),e.pub&&this._importPublic(e.pub,e.pubEnc)}nme.exports=Po;Po.fromPublic=function(e,t,n){return t instanceof Po?t:new Po(e,{pub:t,pubEnc:n})};Po.fromPrivate=function(e,t,n){return t instanceof Po?t:new Po(e,{priv:t,privEnc:n})};Po.prototype.validate=function(){var e=this.getPublic();return e.isInfinity()?{result:!1,reason:"Invalid public key"}:e.validate()?e.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N != O"}:{result:!1,reason:"Public key is not a point"}};Po.prototype.getPublic=function(e,t){return typeof e=="string"&&(t=e,e=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),t?this.pub.encode(t,e):this.pub};Po.prototype.getPrivate=function(e){return e==="hex"?this.priv.toString(16,2):this.priv};Po.prototype._importPrivate=function(e,t){this.priv=new h6t(e,t||16),this.priv=this.priv.umod(this.ec.curve.n)};Po.prototype._importPublic=function(e,t){if(e.x||e.y){this.ec.curve.type==="mont"?gW(e.x,"Need x coordinate"):(this.ec.curve.type==="short"||this.ec.curve.type==="edwards")&&gW(e.x&&e.y,"Need both x and y coordinate"),this.pub=this.ec.curve.point(e.x,e.y);return}this.pub=this.ec.curve.decodePoint(e,t)};Po.prototype.derive=function(e){return e.validate()||gW(e.validate(),"public point not validated"),e.mul(this.priv).getX()};Po.prototype.sign=function(e,t,n){return this.ec.sign(e,this,t,n)};Po.prototype.verify=function(e,t){return this.ec.verify(e,t,this)};Po.prototype.inspect=function(){return""}});var ome=O((KQr,sme)=>{"use strict";x();T();var mA=Yp(),wW=Yu(),m6t=wW.assert;function yA(r,e){if(r instanceof yA)return r;this._importDER(r,e)||(m6t(r.r&&r.s,"Signature without r or s"),this.r=new mA(r.r,16),this.s=new mA(r.s,16),r.recoveryParam===void 0?this.recoveryParam=null:this.recoveryParam=r.recoveryParam)}sme.exports=yA;function y6t(){this.place=0}function vW(r,e){var t=r[e.place++];if(!(t&128))return t;var n=t&15;if(n===0||n>4)return!1;for(var a=0,i=0,s=e.place;i>>=0;return a<=127?!1:(e.place=s,a)}function ime(r){for(var e=0,t=r.length-1;!r[e]&&!(r[e+1]&128)&&e>>3);for(r.push(t|128);--t;)r.push(e>>>(t<<3)&255);r.push(e)}yA.prototype.toDER=function(e){var t=this.r.toArray(),n=this.s.toArray();for(t[0]&128&&(t=[0].concat(t)),n[0]&128&&(n=[0].concat(n)),t=ime(t),n=ime(n);!n[0]&&!(n[1]&128);)n=n.slice(1);var a=[2];bW(a,t.length),a=a.concat(t),a.push(2),bW(a,n.length);var i=a.concat(n),s=[48];return bW(s,i.length),s=s.concat(i),wW.encode(s,e)}});var dme=O((YQr,lme)=>{"use strict";x();T();var Ng=Yp(),cme=rme(),g6t=Yu(),xW=fA(),v6t=jS(),ume=g6t.assert,TW=ame(),gA=ome();function Gl(r){if(!(this instanceof Gl))return new Gl(r);typeof r=="string"&&(ume(Object.prototype.hasOwnProperty.call(xW,r),"Unknown curve "+r),r=xW[r]),r instanceof xW.PresetCurve&&(r={curve:r}),this.curve=r.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=r.curve.g,this.g.precompute(r.curve.n.bitLength()+1),this.hash=r.hash||r.curve.hash}lme.exports=Gl;Gl.prototype.keyPair=function(e){return new TW(this,e)};Gl.prototype.keyFromPrivate=function(e,t){return TW.fromPrivate(this,e,t)};Gl.prototype.keyFromPublic=function(e,t){return TW.fromPublic(this,e,t)};Gl.prototype.genKeyPair=function(e){e||(e={});for(var t=new cme({hash:this.hash,pers:e.pers,persEnc:e.persEnc||"utf8",entropy:e.entropy||v6t(this.hash.hmacStrength),entropyEnc:e.entropy&&e.entropyEnc||"utf8",nonce:this.n.toArray()}),n=this.n.byteLength(),a=this.n.sub(new Ng(2));;){var i=new Ng(t.generate(n));if(!(i.cmp(a)>0))return i.iaddn(1),this.keyFromPrivate(i)}};Gl.prototype._truncateToN=function(e,t){var n=e.byteLength()*8-this.n.bitLength();return n>0&&(e=e.ushrn(n)),!t&&e.cmp(this.n)>=0?e.sub(this.n):e};Gl.prototype.sign=function(e,t,n,a){typeof n=="object"&&(a=n,n=null),a||(a={}),t=this.keyFromPrivate(t,n),e=this._truncateToN(new Ng(e,16));for(var i=this.n.byteLength(),s=t.getPrivate().toArray("be",i),c=e.toArray("be",i),l=new cme({hash:this.hash,entropy:s,nonce:c,pers:a.pers,persEnc:a.persEnc||"utf8"}),d=this.n.sub(new Ng(1)),f=0;;f++){var w=a.k?a.k(f):new Ng(l.generate(this.n.byteLength()));if(w=this._truncateToN(w,!0),!(w.cmpn(1)<=0||w.cmp(d)>=0)){var E=this.g.mul(w);if(!E.isInfinity()){var k=E.getX(),A=k.umod(this.n);if(A.cmpn(0)!==0){var L=w.invm(this.n).mul(A.mul(t.getPrivate()).iadd(e));if(L=L.umod(this.n),L.cmpn(0)!==0){var q=(E.getY().isOdd()?1:0)|(k.cmp(A)!==0?2:0);return a.canonical&&L.cmp(this.nh)>0&&(L=this.n.sub(L),q^=1),new gA({r:A,s:L,recoveryParam:q})}}}}}};Gl.prototype.verify=function(e,t,n,a){e=this._truncateToN(new Ng(e,16)),n=this.keyFromPublic(n,a),t=new gA(t,"hex");var i=t.r,s=t.s;if(i.cmpn(1)<0||i.cmp(this.n)>=0||s.cmpn(1)<0||s.cmp(this.n)>=0)return!1;var c=s.invm(this.n),l=c.mul(e).umod(this.n),d=c.mul(i).umod(this.n),f;return this.curve._maxwellTrick?(f=this.g.jmulAdd(l,n.getPublic(),d),f.isInfinity()?!1:f.eqXToP(i)):(f=this.g.mulAdd(l,n.getPublic(),d),f.isInfinity()?!1:f.getX().umod(this.n).cmp(i)===0)};Gl.prototype.recoverPubKey=function(r,e,t,n){ume((3&t)===t,"The recovery param is more than two bits"),e=new gA(e,n);var a=this.n,i=new Ng(r),s=e.r,c=e.s,l=t&1,d=t>>1;if(s.cmp(this.curve.p.umod(this.curve.n))>=0&&d)throw new Error("Unable to find sencond key candinate");d?s=this.curve.pointFromX(s.add(this.curve.n),l):s=this.curve.pointFromX(s,l);var f=e.r.invm(a),w=a.sub(i).mul(f).umod(a),E=c.mul(f).umod(a);return this.g.mulAdd(w,s,E)};Gl.prototype.getKeyRecoveryParam=function(r,e,t,n){if(e=new gA(e,n),e.recoveryParam!==null)return e.recoveryParam;for(var a=0;a<4;a++){var i;try{i=this.recoverPubKey(r,e,a)}catch{continue}if(i.eq(t))return a}throw new Error("Unable to find valid recovery factor")}});var mme=O((tXr,fme)=>{"use strict";x();T();var N6=Yu(),hme=N6.assert,pme=N6.parseBytes,Jb=N6.cachedProperty;function js(r,e){this.eddsa=r,this._secret=pme(e.secret),r.isPoint(e.pub)?this._pub=e.pub:this._pubBytes=pme(e.pub)}js.fromPublic=function(e,t){return t instanceof js?t:new js(e,{pub:t})};js.fromSecret=function(e,t){return t instanceof js?t:new js(e,{secret:t})};js.prototype.secret=function(){return this._secret};Jb(js,"pubBytes",function(){return this.eddsa.encodePoint(this.pub())});Jb(js,"pub",function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())});Jb(js,"privBytes",function(){var e=this.eddsa,t=this.hash(),n=e.encodingLength-1,a=t.slice(0,e.encodingLength);return a[0]&=248,a[n]&=127,a[n]|=64,a});Jb(js,"priv",function(){return this.eddsa.decodeInt(this.privBytes())});Jb(js,"hash",function(){return this.eddsa.hash().update(this.secret()).digest()});Jb(js,"messagePrefix",function(){return this.hash().slice(this.eddsa.encodingLength)});js.prototype.sign=function(e){return hme(this._secret,"KeyPair can only verify"),this.eddsa.sign(e,this)};js.prototype.verify=function(e,t){return this.eddsa.verify(e,t,this)};js.prototype.getSecret=function(e){return hme(this._secret,"KeyPair is public only"),N6.encode(this.secret(),e)};js.prototype.getPublic=function(e){return N6.encode(this.pubBytes(),e)};fme.exports=js});var gme=O((aXr,yme)=>{"use strict";x();T();var b6t=Yp(),vA=Yu(),w6t=vA.assert,bA=vA.cachedProperty,x6t=vA.parseBytes;function Og(r,e){this.eddsa=r,typeof e!="object"&&(e=x6t(e)),Array.isArray(e)&&(e={R:e.slice(0,r.encodingLength),S:e.slice(r.encodingLength)}),w6t(e.R&&e.S,"Signature without R or S"),r.isPoint(e.R)&&(this._R=e.R),e.S instanceof b6t&&(this._S=e.S),this._Rencoded=Array.isArray(e.R)?e.R:e.Rencoded,this._Sencoded=Array.isArray(e.S)?e.S:e.Sencoded}bA(Og,"S",function(){return this.eddsa.decodeInt(this.Sencoded())});bA(Og,"R",function(){return this.eddsa.decodePoint(this.Rencoded())});bA(Og,"Rencoded",function(){return this.eddsa.encodePoint(this.R())});bA(Og,"Sencoded",function(){return this.eddsa.encodeInt(this.S())});Og.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())};Og.prototype.toHex=function(){return vA.encode(this.toBytes(),"hex").toUpperCase()};yme.exports=Og});var Tme=O((oXr,xme)=>{"use strict";x();T();var T6t=R6(),_6t=fA(),Kb=Yu(),C6t=Kb.assert,bme=Kb.parseBytes,wme=mme(),vme=gme();function pu(r){if(C6t(r==="ed25519","only tested with ed25519 so far"),!(this instanceof pu))return new pu(r);r=_6t[r].curve,this.curve=r,this.g=r.g,this.g.precompute(r.n.bitLength()+1),this.pointClass=r.point().constructor,this.encodingLength=Math.ceil(r.n.bitLength()/8),this.hash=T6t.sha512}xme.exports=pu;pu.prototype.sign=function(e,t){e=bme(e);var n=this.keyFromSecret(t),a=this.hashInt(n.messagePrefix(),e),i=this.g.mul(a),s=this.encodePoint(i),c=this.hashInt(s,n.pubBytes(),e).mul(n.priv()),l=a.add(c).umod(this.curve.n);return this.makeSignature({R:i,S:l,Rencoded:s})};pu.prototype.verify=function(e,t,n){e=bme(e),t=this.makeSignature(t);var a=this.keyFromPublic(n),i=this.hashInt(t.Rencoded(),a.pubBytes(),e),s=this.g.mul(t.S()),c=t.R().add(a.pub().mul(i));return c.eq(s)};pu.prototype.hashInt=function(){for(var e=this.hash(),t=0;t{"use strict";x();T();var Lg=_me;Lg.version=voe().version;Lg.utils=Yu();Lg.rand=jS();Lg.curve=iW();Lg.curves=fA();Lg.ec=dme();Lg.eddsa=Tme()});var Cme=O(Qb=>{"use strict";x();T();var E6t=Qb&&Qb.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Qb,"__esModule",{value:!0});Qb.EC=void 0;var k6t=E6t(x6()),S6t=k6t.default.ec;Qb.EC=S6t});var Eme=O(wA=>{"use strict";x();T();Object.defineProperty(wA,"__esModule",{value:!0});wA.version=void 0;wA.version="signing-key/5.7.0"});var L6=O(s0=>{"use strict";x();T();Object.defineProperty(s0,"__esModule",{value:!0});s0.computePublicKey=s0.recoverPublicKey=s0.SigningKey=void 0;var A6t=Cme(),as=Wr(),O6=Xa(),M6t=ur(),I6t=Eme(),CW=new M6t.Logger(I6t.version),_W=null;function lh(){return _W||(_W=new A6t.EC("secp256k1")),_W}var kme=function(){function r(e){(0,O6.defineReadOnly)(this,"curve","secp256k1"),(0,O6.defineReadOnly)(this,"privateKey",(0,as.hexlify)(e)),(0,as.hexDataLength)(this.privateKey)!==32&&CW.throwArgumentError("invalid private key","privateKey","[[ REDACTED ]]");var t=lh().keyFromPrivate((0,as.arrayify)(this.privateKey));(0,O6.defineReadOnly)(this,"publicKey","0x"+t.getPublic(!1,"hex")),(0,O6.defineReadOnly)(this,"compressedPublicKey","0x"+t.getPublic(!0,"hex")),(0,O6.defineReadOnly)(this,"_isSigningKey",!0)}return r.prototype._addPoint=function(e){var t=lh().keyFromPublic((0,as.arrayify)(this.publicKey)),n=lh().keyFromPublic((0,as.arrayify)(e));return"0x"+t.pub.add(n.pub).encodeCompressed("hex")},r.prototype.signDigest=function(e){var t=lh().keyFromPrivate((0,as.arrayify)(this.privateKey)),n=(0,as.arrayify)(e);n.length!==32&&CW.throwArgumentError("bad digest length","digest",e);var a=t.sign(n,{canonical:!0});return(0,as.splitSignature)({recoveryParam:a.recoveryParam,r:(0,as.hexZeroPad)("0x"+a.r.toString(16),32),s:(0,as.hexZeroPad)("0x"+a.s.toString(16),32)})},r.prototype.computeSharedSecret=function(e){var t=lh().keyFromPrivate((0,as.arrayify)(this.privateKey)),n=lh().keyFromPublic((0,as.arrayify)(Sme(e)));return(0,as.hexZeroPad)("0x"+t.derive(n.getPublic()).toString(16),32)},r.isSigningKey=function(e){return!!(e&&e._isSigningKey)},r}();s0.SigningKey=kme;function P6t(r,e){var t=(0,as.splitSignature)(e),n={r:(0,as.arrayify)(t.r),s:(0,as.arrayify)(t.s)};return"0x"+lh().recoverPubKey((0,as.arrayify)(r),n,t.recoveryParam).encode("hex",!1)}s0.recoverPublicKey=P6t;function Sme(r,e){var t=(0,as.arrayify)(r);if(t.length===32){var n=new kme(t);return e?"0x"+lh().keyFromPrivate(t).getPublic(!0,"hex"):n.publicKey}else{if(t.length===33)return e?(0,as.hexlify)(t):"0x"+lh().keyFromPublic(t).getPublic(!1,"hex");if(t.length===65)return e?"0x"+lh().keyFromPublic(t).getPublic(!0,"hex"):(0,as.hexlify)(t)}return CW.throwArgumentError("invalid public or private key","key","[REDACTED]")}s0.computePublicKey=Sme});var Ame=O(xA=>{"use strict";x();T();Object.defineProperty(xA,"__esModule",{value:!0});xA.version=void 0;xA.version="transactions/5.7.0"});var If=O(Zi=>{"use strict";x();T();var R6t=Zi&&Zi.__createBinding||(Object.create?function(r,e,t,n){n===void 0&&(n=t),Object.defineProperty(r,n,{enumerable:!0,get:function(){return e[t]}})}:function(r,e,t,n){n===void 0&&(n=t),r[n]=e[t]}),N6t=Zi&&Zi.__setModuleDefault||(Object.create?function(r,e){Object.defineProperty(r,"default",{enumerable:!0,value:e})}:function(r,e){r.default=e}),O6t=Zi&&Zi.__importStar||function(r){if(r&&r.__esModule)return r;var e={};if(r!=null)for(var t in r)t!=="default"&&Object.prototype.hasOwnProperty.call(r,t)&&R6t(e,r,t);return N6t(e,r),e};Object.defineProperty(Zi,"__esModule",{value:!0});Zi.parse=Zi.serialize=Zi.accessListify=Zi.recoverAddress=Zi.computeAddress=Zi.TransactionTypes=void 0;var B6=Sl(),Bg=es(),gn=Wr(),L6t=Xy(),Xb=Qu(),B6t=Xa(),o0=O6t($E()),Mme=L6(),kW=ur(),q6t=Ame(),No=new kW.Logger(q6t.version),D6t;(function(r){r[r.legacy=0]="legacy",r[r.eip2930=1]="eip2930",r[r.eip1559=2]="eip1559"})(D6t=Zi.TransactionTypes||(Zi.TransactionTypes={}));function SW(r){return r==="0x"?null:(0,B6.getAddress)(r)}function Ro(r){return r==="0x"?L6t.Zero:Bg.BigNumber.from(r)}var F6t=[{name:"nonce",maxLength:32,numeric:!0},{name:"gasPrice",maxLength:32,numeric:!0},{name:"gasLimit",maxLength:32,numeric:!0},{name:"to",length:20},{name:"value",maxLength:32,numeric:!0},{name:"data"}],U6t={chainId:!0,data:!0,gasLimit:!0,gasPrice:!0,nonce:!0,to:!0,type:!0,value:!0};function Ime(r){var e=(0,Mme.computePublicKey)(r);return(0,B6.getAddress)((0,gn.hexDataSlice)((0,Xb.keccak256)((0,gn.hexDataSlice)(e,1)),12))}Zi.computeAddress=Ime;function AW(r,e){return Ime((0,Mme.recoverPublicKey)((0,gn.arrayify)(r),e))}Zi.recoverAddress=AW;function tl(r,e){var t=(0,gn.stripZeros)(Bg.BigNumber.from(r).toHexString());return t.length>32&&No.throwArgumentError("invalid length for "+e,"transaction:"+e,r),t}function EW(r,e){return{address:(0,B6.getAddress)(r),storageKeys:(e||[]).map(function(t,n){return(0,gn.hexDataLength)(t)!==32&&No.throwArgumentError("invalid access list storageKey","accessList["+r+":"+n+"]",t),t.toLowerCase()})}}function TA(r){if(Array.isArray(r))return r.map(function(t,n){return Array.isArray(t)?(t.length>2&&No.throwArgumentError("access list expected to be [ address, storageKeys[] ]","value["+n+"]",t),EW(t[0],t[1])):EW(t.address,t.storageKeys)});var e=Object.keys(r).map(function(t){var n=r[t].reduce(function(a,i){return a[i]=!0,a},{});return EW(t,Object.keys(n).sort())});return e.sort(function(t,n){return t.address.localeCompare(n.address)}),e}Zi.accessListify=TA;function Pme(r){return TA(r).map(function(e){return[e.address,e.storageKeys]})}function Rme(r,e){if(r.gasPrice!=null){var t=Bg.BigNumber.from(r.gasPrice),n=Bg.BigNumber.from(r.maxFeePerGas||0);t.eq(n)||No.throwArgumentError("mismatch EIP-1559 gasPrice != maxFeePerGas","tx",{gasPrice:t,maxFeePerGas:n})}var a=[tl(r.chainId||0,"chainId"),tl(r.nonce||0,"nonce"),tl(r.maxPriorityFeePerGas||0,"maxPriorityFeePerGas"),tl(r.maxFeePerGas||0,"maxFeePerGas"),tl(r.gasLimit||0,"gasLimit"),r.to!=null?(0,B6.getAddress)(r.to):"0x",tl(r.value||0,"value"),r.data||"0x",Pme(r.accessList||[])];if(e){var i=(0,gn.splitSignature)(e);a.push(tl(i.recoveryParam,"recoveryParam")),a.push((0,gn.stripZeros)(i.r)),a.push((0,gn.stripZeros)(i.s))}return(0,gn.hexConcat)(["0x02",o0.encode(a)])}function Nme(r,e){var t=[tl(r.chainId||0,"chainId"),tl(r.nonce||0,"nonce"),tl(r.gasPrice||0,"gasPrice"),tl(r.gasLimit||0,"gasLimit"),r.to!=null?(0,B6.getAddress)(r.to):"0x",tl(r.value||0,"value"),r.data||"0x",Pme(r.accessList||[])];if(e){var n=(0,gn.splitSignature)(e);t.push(tl(n.recoveryParam,"recoveryParam")),t.push((0,gn.stripZeros)(n.r)),t.push((0,gn.stripZeros)(n.s))}return(0,gn.hexConcat)(["0x01",o0.encode(t)])}function W6t(r,e){(0,B6t.checkProperties)(r,U6t);var t=[];F6t.forEach(function(s){var c=r[s.name]||[],l={};s.numeric&&(l.hexPad="left"),c=(0,gn.arrayify)((0,gn.hexlify)(c,l)),s.length&&c.length!==s.length&&c.length>0&&No.throwArgumentError("invalid length for "+s.name,"transaction:"+s.name,c),s.maxLength&&(c=(0,gn.stripZeros)(c),c.length>s.maxLength&&No.throwArgumentError("invalid length for "+s.name,"transaction:"+s.name,c)),t.push((0,gn.hexlify)(c))});var n=0;if(r.chainId!=null?(n=r.chainId,typeof n!="number"&&No.throwArgumentError("invalid transaction.chainId","transaction",r)):e&&!(0,gn.isBytesLike)(e)&&e.v>28&&(n=Math.floor((e.v-35)/2)),n!==0&&(t.push((0,gn.hexlify)(n)),t.push("0x"),t.push("0x")),!e)return o0.encode(t);var a=(0,gn.splitSignature)(e),i=27+a.recoveryParam;return n!==0?(t.pop(),t.pop(),t.pop(),i+=n*2+8,a.v>28&&a.v!==i&&No.throwArgumentError("transaction.chainId/signature.v mismatch","signature",e)):a.v!==i&&No.throwArgumentError("transaction.chainId/signature.v mismatch","signature",e),t.push((0,gn.hexlify)(i)),t.push((0,gn.stripZeros)((0,gn.arrayify)(a.r))),t.push((0,gn.stripZeros)((0,gn.arrayify)(a.s))),o0.encode(t)}function j6t(r,e){if(r.type==null||r.type===0)return r.accessList!=null&&No.throwArgumentError("untyped transactions do not support accessList; include type: 1","transaction",r),W6t(r,e);switch(r.type){case 1:return Nme(r,e);case 2:return Rme(r,e);default:break}return No.throwError("unsupported transaction type: "+r.type,kW.Logger.errors.UNSUPPORTED_OPERATION,{operation:"serializeTransaction",transactionType:r.type})}Zi.serialize=j6t;function Ome(r,e,t){try{var n=Ro(e[0]).toNumber();if(n!==0&&n!==1)throw new Error("bad recid");r.v=n}catch{No.throwArgumentError("invalid v for transaction type: 1","v",e[0])}r.r=(0,gn.hexZeroPad)(e[1],32),r.s=(0,gn.hexZeroPad)(e[2],32);try{var a=(0,Xb.keccak256)(t(r));r.from=AW(a,{r:r.r,s:r.s,recoveryParam:r.v})}catch{}}function z6t(r){var e=o0.decode(r.slice(1));e.length!==9&&e.length!==12&&No.throwArgumentError("invalid component count for transaction type: 2","payload",(0,gn.hexlify)(r));var t=Ro(e[2]),n=Ro(e[3]),a={type:2,chainId:Ro(e[0]).toNumber(),nonce:Ro(e[1]).toNumber(),maxPriorityFeePerGas:t,maxFeePerGas:n,gasPrice:null,gasLimit:Ro(e[4]),to:SW(e[5]),value:Ro(e[6]),data:e[7],accessList:TA(e[8])};return e.length===9||(a.hash=(0,Xb.keccak256)(r),Ome(a,e.slice(9),Rme)),a}function H6t(r){var e=o0.decode(r.slice(1));e.length!==8&&e.length!==11&&No.throwArgumentError("invalid component count for transaction type: 1","payload",(0,gn.hexlify)(r));var t={type:1,chainId:Ro(e[0]).toNumber(),nonce:Ro(e[1]).toNumber(),gasPrice:Ro(e[2]),gasLimit:Ro(e[3]),to:SW(e[4]),value:Ro(e[5]),data:e[6],accessList:TA(e[7])};return e.length===8||(t.hash=(0,Xb.keccak256)(r),Ome(t,e.slice(8),Nme)),t}function V6t(r){var e=o0.decode(r);e.length!==9&&e.length!==6&&No.throwArgumentError("invalid raw transaction","rawTransaction",r);var t={nonce:Ro(e[0]).toNumber(),gasPrice:Ro(e[1]),gasLimit:Ro(e[2]),to:SW(e[3]),value:Ro(e[4]),data:e[5],chainId:0};if(e.length===6)return t;try{t.v=Bg.BigNumber.from(e[6]).toNumber()}catch{return t}if(t.r=(0,gn.hexZeroPad)(e[7],32),t.s=(0,gn.hexZeroPad)(e[8],32),Bg.BigNumber.from(t.r).isZero()&&Bg.BigNumber.from(t.s).isZero())t.chainId=t.v,t.v=0;else{t.chainId=Math.floor((t.v-35)/2),t.chainId<0&&(t.chainId=0);var n=t.v-27,a=e.slice(0,6);t.chainId!==0&&(a.push((0,gn.hexlify)(t.chainId)),a.push("0x"),a.push("0x"),n-=t.chainId*2+8);var i=(0,Xb.keccak256)(o0.encode(a));try{t.from=AW(i,{r:(0,gn.hexlify)(t.r),s:(0,gn.hexlify)(t.s),recoveryParam:n})}catch{}t.hash=(0,Xb.keccak256)(r)}return t.type=null,t}function G6t(r){var e=(0,gn.arrayify)(r);if(e[0]>127)return V6t(e);switch(e[0]){case 1:return H6t(e);case 2:return z6t(e);default:break}return No.throwError("unsupported transaction type: "+e[0],kW.Logger.errors.UNSUPPORTED_OPERATION,{operation:"parseTransaction",transactionType:e[0]})}Zi.parse=G6t});var Lme=O(_A=>{"use strict";x();T();Object.defineProperty(_A,"__esModule",{value:!0});_A.version=void 0;_A.version="contracts/5.7.0"});var zme=O(Oo=>{"use strict";x();T();var kA=Oo&&Oo.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),u0=Oo&&Oo.__awaiter||function(r,e,t,n){function a(i){return i instanceof t?i:new t(function(s){s(i)})}return new(t||(t=Promise))(function(i,s){function c(f){try{d(n.next(f))}catch(w){s(w)}}function l(f){try{d(n.throw(f))}catch(w){s(w)}}function d(f){f.done?i(f.value):a(f.value).then(c,l)}d((n=n.apply(r,e||[])).next())})},l0=Oo&&Oo.__generator||function(r,e){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,s;return s={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function c(d){return function(f){return l([d,f])}}function l(d){if(n)throw new TypeError("Generator is already executing.");for(;t;)try{if(n=1,a&&(i=d[0]&2?a.return:d[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,d[1])).done)return i;switch(a=0,i&&(d=[d[0]&2,i.value]),d[0]){case 0:case 1:i=d;break;case 4:return t.label++,{value:d[1],done:!1};case 5:t.label++,a=d[1],d=[0];continue;case 7:d=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(d[0]===6||d[0]===2)){t=0;continue}if(d[0]===3&&(!i||d[1]>i[0]&&d[1]1)){d=d.substring(1);var w=f[0];try{i[d]==null&&(0,er.defineReadOnly)(i,d,i[w])}catch{}i.functions[d]==null&&(0,er.defineReadOnly)(i.functions,d,i.functions[w]),i.callStatic[d]==null&&(0,er.defineReadOnly)(i.callStatic,d,i.callStatic[w]),i.populateTransaction[d]==null&&(0,er.defineReadOnly)(i.populateTransaction,d,i.populateTransaction[w]),i.estimateGas[d]==null&&(0,er.defineReadOnly)(i.estimateGas,d,i.estimateGas[w])}})}return r.getContractAddress=function(e){return(0,D6.getContractAddress)(e)},r.getInterface=function(e){return CA.Interface.isInterface(e)?e:new CA.Interface(e)},r.prototype.deployed=function(){return this._deployed()},r.prototype._deployed=function(e){var t=this;return this._deployedPromise||(this.deployTransaction?this._deployedPromise=this.deployTransaction.wait().then(function(){return t}):this._deployedPromise=this.provider.getCode(this.address,e).then(function(n){return n==="0x"&&ui.throwError("contract not deployed",oo.Logger.errors.UNSUPPORTED_OPERATION,{contractAddress:t.address,operation:"getDeployed"}),t})),this._deployedPromise},r.prototype.fallback=function(e){var t=this;this.signer||ui.throwError("sending a transactions require a signer",oo.Logger.errors.UNSUPPORTED_OPERATION,{operation:"sendTransaction(fallback)"});var n=(0,er.shallowCopy)(e||{});return["from","to"].forEach(function(a){n[a]!=null&&ui.throwError("cannot override "+a,oo.Logger.errors.UNSUPPORTED_OPERATION,{operation:a})}),n.to=this.resolvedAddress,this.deployed().then(function(){return t.signer.sendTransaction(n)})},r.prototype.connect=function(e){typeof e=="string"&&(e=new MW.VoidSigner(e,this.provider));var t=new this.constructor(this.address,this.interface,e);return this.deployTransaction&&(0,er.defineReadOnly)(t,"deployTransaction",this.deployTransaction),t},r.prototype.attach=function(e){return new this.constructor(e,this.interface,this.signer||this.provider)},r.isIndexed=function(e){return CA.Indexed.isIndexed(e)},r.prototype._normalizeRunningEvent=function(e){return this._runningEvents[e.tag]?this._runningEvents[e.tag]:e},r.prototype._getRunningEvent=function(e){if(typeof e=="string"){if(e==="error")return this._normalizeRunningEvent(new tTt);if(e==="event")return this._normalizeRunningEvent(new F6("event",null));if(e==="*")return this._normalizeRunningEvent(new Dme(this.address,this.interface));var t=this.interface.getEvent(e);return this._normalizeRunningEvent(new qme(this.address,this.interface,t))}if(e.topics&&e.topics.length>0){try{var n=e.topics[0];if(typeof n!="string")throw new Error("invalid topic");var t=this.interface.getEvent(n);return this._normalizeRunningEvent(new qme(this.address,this.interface,t,e.topics))}catch{}var a={address:this.address,topics:e.topics};return this._normalizeRunningEvent(new F6(Wme(a),a))}return this._normalizeRunningEvent(new Dme(this.address,this.interface))},r.prototype._checkRunningEvents=function(e){if(e.listenerCount()===0){delete this._runningEvents[e.tag];var t=this._wrappedEmits[e.tag];t&&e.filter&&(this.provider.off(e.filter,t),delete this._wrappedEmits[e.tag])}},r.prototype._wrapEvent=function(e,t,n){var a=this,i=(0,er.deepCopy)(t);return i.removeListener=function(){!n||(e.removeListener(n),a._checkRunningEvents(e))},i.getBlock=function(){return a.provider.getBlock(t.blockHash)},i.getTransaction=function(){return a.provider.getTransaction(t.transactionHash)},i.getTransactionReceipt=function(){return a.provider.getTransactionReceipt(t.transactionHash)},e.prepareEvent(i),i},r.prototype._addEventListener=function(e,t,n){var a=this;if(this.provider||ui.throwError("events require a provider or a signer with a provider",oo.Logger.errors.UNSUPPORTED_OPERATION,{operation:"once"}),e.addListener(t,n),this._runningEvents[e.tag]=e,!this._wrappedEmits[e.tag]){var i=function(s){var c=a._wrapEvent(e,s,t);if(c.decodeError==null)try{var l=e.getEmit(c);a.emit.apply(a,Z6t([e.filter],l,!1))}catch(d){c.decodeError=d.error}e.filter!=null&&a.emit("event",c),c.decodeError!=null&&a.emit("error",c.decodeError,c)};this._wrappedEmits[e.tag]=i,e.filter!=null&&this.provider.on(e.filter,i)}},r.prototype.queryFilter=function(e,t,n){var a=this,i=this._getRunningEvent(e),s=(0,er.shallowCopy)(i.filter);return typeof t=="string"&&(0,qg.isHexString)(t,32)?(n!=null&&ui.throwArgumentError("cannot specify toBlock with blockhash","toBlock",n),s.blockHash=t):(s.fromBlock=t??0,s.toBlock=n??"latest"),this.provider.getLogs(s).then(function(c){return c.map(function(l){return a._wrapEvent(i,l,null)})})},r.prototype.on=function(e,t){return this._addEventListener(this._getRunningEvent(e),t,!1),this},r.prototype.once=function(e,t){return this._addEventListener(this._getRunningEvent(e),t,!0),this},r.prototype.emit=function(e){for(var t=[],n=1;n0;return this._checkRunningEvents(a),i},r.prototype.listenerCount=function(e){var t=this;return this.provider?e==null?Object.keys(this._runningEvents).reduce(function(n,a){return n+t._runningEvents[a].listenerCount()},0):this._getRunningEvent(e).listenerCount():0},r.prototype.listeners=function(e){if(!this.provider)return[];if(e==null){var t=[];for(var n in this._runningEvents)this._runningEvents[n].listeners().forEach(function(a){t.push(a)});return t}return this._getRunningEvent(e).listeners()},r.prototype.removeAllListeners=function(e){if(!this.provider)return this;if(e==null){for(var t in this._runningEvents){var n=this._runningEvents[t];n.removeAllListeners(),this._checkRunningEvents(n)}return this}var a=this._getRunningEvent(e);return a.removeAllListeners(),this._checkRunningEvents(a),this},r.prototype.off=function(e,t){if(!this.provider)return this;var n=this._getRunningEvent(e);return n.removeListener(t),this._checkRunningEvents(n),this},r.prototype.removeListener=function(e,t){return this.off(e,t)},r}();Oo.BaseContract=jme;var IW=function(r){kA(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e}(jme);Oo.Contract=IW;var rTt=function(){function r(e,t,n){var a=this.constructor,i=null;typeof t=="string"?i=t:(0,qg.isBytes)(t)?i=(0,qg.hexlify)(t):t&&typeof t.object=="string"?i=t.object:i="!",i.substring(0,2)!=="0x"&&(i="0x"+i),(!(0,qg.isHexString)(i)||i.length%2)&&ui.throwArgumentError("invalid bytecode","bytecode",t),n&&!MW.Signer.isSigner(n)&&ui.throwArgumentError("invalid signer","signer",n),(0,er.defineReadOnly)(this,"bytecode",i),(0,er.defineReadOnly)(this,"interface",(0,er.getStatic)(a,"getInterface")(e)),(0,er.defineReadOnly)(this,"signer",n||null)}return r.prototype.getDeployTransaction=function(){for(var e=[],t=0;t{"use strict";x();T();Object.defineProperty(d0,"__esModule",{value:!0});d0.Base58=d0.Base32=d0.BaseX=void 0;var Hme=Wr(),AA=Xa(),PW=function(){function r(e){(0,AA.defineReadOnly)(this,"alphabet",e),(0,AA.defineReadOnly)(this,"base",e.length),(0,AA.defineReadOnly)(this,"_alphabetMap",{}),(0,AA.defineReadOnly)(this,"_leader",e.charAt(0));for(var t=0;t0;)n.push(i%this.base),i=i/this.base|0}for(var c="",l=0;t[l]===0&&l=0;--d)c+=this.alphabet[n[d]];return c},r.prototype.decode=function(e){if(typeof e!="string")throw new TypeError("Expected String");var t=[];if(e.length===0)return new Uint8Array(t);t.push(0);for(var n=0;n>=8;for(;i>0;)t.push(i&255),i>>=8}for(var c=0;e[c]===this._leader&&c{"use strict";x();T();Object.defineProperty(U6,"__esModule",{value:!0});U6.SupportedAlgorithm=void 0;var iTt;(function(r){r.sha256="sha256",r.sha512="sha512"})(iTt=U6.SupportedAlgorithm||(U6.SupportedAlgorithm={}))});var Vme=O(IA=>{"use strict";x();T();Object.defineProperty(IA,"__esModule",{value:!0});IA.version=void 0;IA.version="sha2/5.7.0"});var Zme=O(Zl=>{"use strict";x();T();var sTt=Zl&&Zl.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Zl,"__esModule",{value:!0});Zl.computeHmac=Zl.sha512=Zl.sha256=Zl.ripemd160=void 0;var W6=sTt(R6()),j6=Wr(),oTt=RW(),Gme=ur(),cTt=Vme(),uTt=new Gme.Logger(cTt.version);function lTt(r){return"0x"+W6.default.ripemd160().update((0,j6.arrayify)(r)).digest("hex")}Zl.ripemd160=lTt;function dTt(r){return"0x"+W6.default.sha256().update((0,j6.arrayify)(r)).digest("hex")}Zl.sha256=dTt;function pTt(r){return"0x"+W6.default.sha512().update((0,j6.arrayify)(r)).digest("hex")}Zl.sha512=pTt;function hTt(r,e,t){return oTt.SupportedAlgorithm[r]||uTt.throwError("unsupported algorithm "+r,Gme.Logger.errors.UNSUPPORTED_OPERATION,{operation:"hmac",algorithm:r}),"0x"+W6.default.hmac(W6.default[r],(0,j6.arrayify)(e)).update((0,j6.arrayify)(t)).digest("hex")}Zl.computeHmac=hTt});var Dg=O(Jl=>{"use strict";x();T();Object.defineProperty(Jl,"__esModule",{value:!0});Jl.SupportedAlgorithm=Jl.sha512=Jl.sha256=Jl.ripemd160=Jl.computeHmac=void 0;var PA=Zme();Object.defineProperty(Jl,"computeHmac",{enumerable:!0,get:function(){return PA.computeHmac}});Object.defineProperty(Jl,"ripemd160",{enumerable:!0,get:function(){return PA.ripemd160}});Object.defineProperty(Jl,"sha256",{enumerable:!0,get:function(){return PA.sha256}});Object.defineProperty(Jl,"sha512",{enumerable:!0,get:function(){return PA.sha512}});var fTt=RW();Object.defineProperty(Jl,"SupportedAlgorithm",{enumerable:!0,get:function(){return fTt.SupportedAlgorithm}})});var Kme=O(RA=>{"use strict";x();T();Object.defineProperty(RA,"__esModule",{value:!0});RA.pbkdf2=void 0;var Yb=Wr(),Jme=Dg();function mTt(r,e,t,n,a){r=(0,Yb.arrayify)(r),e=(0,Yb.arrayify)(e);var i,s=1,c=new Uint8Array(n),l=new Uint8Array(e.length+4);l.set(e);for(var d,f,w=1;w<=s;w++){l[e.length]=w>>24&255,l[e.length+1]=w>>16&255,l[e.length+2]=w>>8&255,l[e.length+3]=w&255;var E=(0,Yb.arrayify)((0,Jme.computeHmac)(a,r,l));i||(i=E.length,f=new Uint8Array(i),s=Math.ceil(n/i),d=n-(s-1)*i),f.set(E);for(var k=1;k{"use strict";x();T();Object.defineProperty(NA,"__esModule",{value:!0});NA.pbkdf2=void 0;var yTt=Kme();Object.defineProperty(NA,"pbkdf2",{enumerable:!0,get:function(){return yTt.pbkdf2}})});var Qme=O(LA=>{"use strict";x();T();Object.defineProperty(LA,"__esModule",{value:!0});LA.version=void 0;LA.version="wordlists/5.7.0"});var dh=O(Fg=>{"use strict";x();T();Object.defineProperty(Fg,"__esModule",{value:!0});Fg.Wordlist=Fg.logger=void 0;var gTt=!1,vTt=rg(),Xme=Xa(),bTt=ur(),wTt=Qme();Fg.logger=new bTt.Logger(wTt.version);var xTt=function(){function r(e){var t=this.constructor;Fg.logger.checkAbstract(t,r),(0,Xme.defineReadOnly)(this,"locale",e)}return r.prototype.split=function(e){return e.toLowerCase().split(/ +/g)},r.prototype.join=function(e){return e.join(" ")},r.check=function(e){for(var t=[],n=0;n<2048;n++){var a=e.getWord(n);if(n!==e.getWordIndex(a))return"0x";t.push(a)}return(0,vTt.id)(t.join(` -`)+` -`)},r.register=function(e,t){if(t||(t=e.locale),gTt)try{var n=window;n._ethers&&n._ethers.wordlists&&(n._ethers.wordlists[t]||(0,Xme.defineReadOnly)(n._ethers.wordlists,t,e))}catch{}},r}();Fg.Wordlist=xTt});var e0e=O($b=>{"use strict";x();T();var TTt=$b&&$b.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty($b,"__esModule",{value:!0});$b.langCz=void 0;var NW=dh(),_Tt="AbdikaceAbecedaAdresaAgreseAkceAktovkaAlejAlkoholAmputaceAnanasAndulkaAnekdotaAnketaAntikaAnulovatArchaAroganceAsfaltAsistentAspiraceAstmaAstronomAtlasAtletikaAtolAutobusAzylBabkaBachorBacilBaculkaBadatelBagetaBagrBahnoBakterieBaladaBaletkaBalkonBalonekBalvanBalzaBambusBankomatBarbarBaretBarmanBarokoBarvaBaterkaBatohBavlnaBazalkaBazilikaBazukaBednaBeranBesedaBestieBetonBezinkaBezmocBeztakBicyklBidloBiftekBikinyBilanceBiografBiologBitvaBizonBlahobytBlatouchBlechaBleduleBleskBlikatBliznaBlokovatBlouditBludBobekBobrBodlinaBodnoutBohatostBojkotBojovatBokorysBolestBorecBoroviceBotaBoubelBouchatBoudaBouleBouratBoxerBradavkaBramboraBrankaBratrBreptaBriketaBrkoBrlohBronzBroskevBrunetkaBrusinkaBrzdaBrzyBublinaBubnovatBuchtaBuditelBudkaBudovaBufetBujarostBukviceBuldokBulvaBundaBunkrBurzaButikBuvolBuzolaBydletBylinaBytovkaBzukotCapartCarevnaCedrCeduleCejchCejnCelaCelerCelkemCelniceCeninaCennostCenovkaCentrumCenzorCestopisCetkaChalupaChapadloCharitaChataChechtatChemieChichotChirurgChladChlebaChlubitChmelChmuraChobotChocholChodbaCholeraChomoutChopitChorobaChovChrapotChrlitChrtChrupChtivostChudinaChutnatChvatChvilkaChvostChybaChystatChytitCibuleCigaretaCihelnaCihlaCinkotCirkusCisternaCitaceCitrusCizinecCizostClonaCokolivCouvatCtitelCtnostCudnostCuketaCukrCupotCvaknoutCvalCvikCvrkotCyklistaDalekoDarebaDatelDatumDceraDebataDechovkaDecibelDeficitDeflaceDeklDekretDemokratDepreseDerbyDeskaDetektivDikobrazDiktovatDiodaDiplomDiskDisplejDivadloDivochDlahaDlouhoDluhopisDnesDobroDobytekDocentDochutitDodnesDohledDohodaDohraDojemDojniceDokladDokolaDoktorDokumentDolarDolevaDolinaDomaDominantDomluvitDomovDonutitDopadDopisDoplnitDoposudDoprovodDopustitDorazitDorostDortDosahDoslovDostatekDosudDosytaDotazDotekDotknoutDoufatDoutnatDovozceDozaduDoznatDozorceDrahotaDrakDramatikDravecDrazeDrdolDrobnostDrogerieDrozdDrsnostDrtitDrzostDubenDuchovnoDudekDuhaDuhovkaDusitDusnoDutostDvojiceDvorecDynamitEkologEkonomieElektronElipsaEmailEmiseEmoceEmpatieEpizodaEpochaEpopejEposEsejEsenceEskortaEskymoEtiketaEuforieEvoluceExekuceExkurzeExpediceExplozeExportExtraktFackaFajfkaFakultaFanatikFantazieFarmacieFavoritFazoleFederaceFejetonFenkaFialkaFigurantFilozofFiltrFinanceFintaFixaceFjordFlanelFlirtFlotilaFondFosforFotbalFotkaFotonFrakceFreskaFrontaFukarFunkceFyzikaGalejeGarantGenetikaGeologGilotinaGlazuraGlejtGolemGolfistaGotikaGrafGramofonGranuleGrepGrilGrogGroteskaGumaHadiceHadrHalaHalenkaHanbaHanopisHarfaHarpunaHavranHebkostHejkalHejnoHejtmanHektarHelmaHematomHerecHernaHesloHezkyHistorikHladovkaHlasivkyHlavaHledatHlenHlodavecHlohHloupostHltatHlubinaHluchotaHmatHmotaHmyzHnisHnojivoHnoutHoblinaHobojHochHodinyHodlatHodnotaHodovatHojnostHokejHolinkaHolkaHolubHomoleHonitbaHonoraceHoralHordaHorizontHorkoHorlivecHormonHorninaHoroskopHorstvoHospodaHostinaHotovostHoubaHoufHoupatHouskaHovorHradbaHraniceHravostHrazdaHrbolekHrdinaHrdloHrdostHrnekHrobkaHromadaHrotHroudaHrozenHrstkaHrubostHryzatHubenostHubnoutHudbaHukotHumrHusitaHustotaHvozdHybnostHydrantHygienaHymnaHysterikIdylkaIhnedIkonaIluzeImunitaInfekceInflaceInkasoInovaceInspekceInternetInvalidaInvestorInzerceIronieJablkoJachtaJahodaJakmileJakostJalovecJantarJarmarkJaroJasanJasnoJatkaJavorJazykJedinecJedleJednatelJehlanJekotJelenJelitoJemnostJenomJepiceJeseterJevitJezdecJezeroJinakJindyJinochJiskraJistotaJitrniceJizvaJmenovatJogurtJurtaKabaretKabelKabinetKachnaKadetKadidloKahanKajakKajutaKakaoKaktusKalamitaKalhotyKalibrKalnostKameraKamkolivKamnaKanibalKanoeKantorKapalinaKapelaKapitolaKapkaKapleKapotaKaprKapustaKapybaraKaramelKarotkaKartonKasaKatalogKatedraKauceKauzaKavalecKazajkaKazetaKazivostKdekolivKdesiKedlubenKempKeramikaKinoKlacekKladivoKlamKlapotKlasikaKlaunKlecKlenbaKlepatKlesnoutKlidKlimaKlisnaKloboukKlokanKlopaKloubKlubovnaKlusatKluzkostKmenKmitatKmotrKnihaKnotKoaliceKoberecKobkaKoblihaKobylaKocourKohoutKojenecKokosKoktejlKolapsKoledaKolizeKoloKomandoKometaKomikKomnataKomoraKompasKomunitaKonatKonceptKondiceKonecKonfeseKongresKoninaKonkursKontaktKonzervaKopanecKopieKopnoutKoprovkaKorbelKorektorKormidloKoroptevKorpusKorunaKorytoKorzetKosatecKostkaKotelKotletaKotoulKoukatKoupelnaKousekKouzloKovbojKozaKozorohKrabiceKrachKrajinaKralovatKrasopisKravataKreditKrejcarKresbaKrevetaKriketKritikKrizeKrkavecKrmelecKrmivoKrocanKrokKronikaKropitKroupaKrovkaKrtekKruhadloKrupiceKrutostKrvinkaKrychleKryptaKrystalKrytKudlankaKufrKujnostKuklaKulajdaKulichKulkaKulometKulturaKunaKupodivuKurtKurzorKutilKvalitaKvasinkaKvestorKynologKyselinaKytaraKyticeKytkaKytovecKyvadloLabradorLachtanLadnostLaikLakomecLamelaLampaLanovkaLasiceLasoLasturaLatinkaLavinaLebkaLeckdyLedenLedniceLedovkaLedvinaLegendaLegieLegraceLehceLehkostLehnoutLektvarLenochodLentilkaLepenkaLepidloLetadloLetecLetmoLetokruhLevhartLevitaceLevobokLibraLichotkaLidojedLidskostLihovinaLijavecLilekLimetkaLinieLinkaLinoleumListopadLitinaLitovatLobistaLodivodLogikaLogopedLokalitaLoketLomcovatLopataLopuchLordLososLotrLoudalLouhLoukaLouskatLovecLstivostLucernaLuciferLumpLuskLustraceLviceLyraLyrikaLysinaMadamMadloMagistrMahagonMajetekMajitelMajoritaMakakMakoviceMakrelaMalbaMalinaMalovatMalviceMaminkaMandleMankoMarnostMasakrMaskotMasopustMaticeMatrikaMaturitaMazanecMazivoMazlitMazurkaMdlobaMechanikMeditaceMedovinaMelasaMelounMentolkaMetlaMetodaMetrMezeraMigraceMihnoutMihuleMikinaMikrofonMilenecMilimetrMilostMimikaMincovnaMinibarMinometMinulostMiskaMistrMixovatMladostMlhaMlhovinaMlokMlsatMluvitMnichMnohemMobilMocnostModelkaModlitbaMohylaMokroMolekulaMomentkaMonarchaMonoklMonstrumMontovatMonzunMosazMoskytMostMotivaceMotorkaMotykaMouchaMoudrostMozaikaMozekMozolMramorMravenecMrkevMrtvolaMrzetMrzutostMstitelMudrcMuflonMulatMumieMuniceMusetMutaceMuzeumMuzikantMyslivecMzdaNabouratNachytatNadaceNadbytekNadhozNadobroNadpisNahlasNahnatNahodileNahraditNaivitaNajednouNajistoNajmoutNaklonitNakonecNakrmitNalevoNamazatNamluvitNanometrNaokoNaopakNaostroNapadatNapevnoNaplnitNapnoutNaposledNaprostoNaroditNarubyNarychloNasaditNasekatNaslepoNastatNatolikNavenekNavrchNavzdoryNazvatNebeNechatNeckyNedalekoNedbatNeduhNegaceNehetNehodaNejenNejprveNeklidNelibostNemilostNemocNeochotaNeonkaNepokojNerostNervNesmyslNesouladNetvorNeuronNevinaNezvykleNicotaNijakNikamNikdyNiklNikterakNitroNoclehNohaviceNominaceNoraNorekNositelNosnostNouzeNovinyNovotaNozdraNudaNudleNugetNutitNutnostNutrieNymfaObalObarvitObavaObdivObecObehnatObejmoutObezitaObhajobaObilniceObjasnitObjektObklopitOblastOblekOblibaOblohaObludaObnosObohatitObojekOboutObrazecObrnaObrubaObrysObsahObsluhaObstaratObuvObvazObvinitObvodObvykleObyvatelObzorOcasOcelOcenitOchladitOchotaOchranaOcitnoutOdbojOdbytOdchodOdcizitOdebratOdeslatOdevzdatOdezvaOdhadceOdhoditOdjetOdjinudOdkazOdkoupitOdlivOdlukaOdmlkaOdolnostOdpadOdpisOdploutOdporOdpustitOdpykatOdrazkaOdsouditOdstupOdsunOdtokOdtudOdvahaOdvetaOdvolatOdvracetOdznakOfinaOfsajdOhlasOhniskoOhradaOhrozitOhryzekOkapOkeniceOklikaOknoOkouzlitOkovyOkrasaOkresOkrsekOkruhOkupantOkurkaOkusitOlejninaOlizovatOmakOmeletaOmezitOmladinaOmlouvatOmluvaOmylOnehdyOpakovatOpasekOperaceOpiceOpilostOpisovatOporaOpoziceOpravduOprotiOrbitalOrchestrOrgieOrliceOrlojOrtelOsadaOschnoutOsikaOsivoOslavaOslepitOslnitOslovitOsnovaOsobaOsolitOspalecOstenOstrahaOstudaOstychOsvojitOteplitOtiskOtopOtrhatOtrlostOtrokOtrubyOtvorOvanoutOvarOvesOvlivnitOvoceOxidOzdobaPachatelPacientPadouchPahorekPaktPalandaPalecPalivoPalubaPamfletPamlsekPanenkaPanikaPannaPanovatPanstvoPantoflePaprikaParketaParodiePartaParukaParybaPasekaPasivitaPastelkaPatentPatronaPavoukPaznehtPazourekPeckaPedagogPejsekPekloPelotonPenaltaPendrekPenzePeriskopPeroPestrostPetardaPeticePetrolejPevninaPexesoPianistaPihaPijavicePiklePiknikPilinaPilnostPilulkaPinzetaPipetaPisatelPistolePitevnaPivnicePivovarPlacentaPlakatPlamenPlanetaPlastikaPlatitPlavidloPlazPlechPlemenoPlentaPlesPletivoPlevelPlivatPlnitPlnoPlochaPlodinaPlombaPloutPlukPlynPobavitPobytPochodPocitPoctivecPodatPodcenitPodepsatPodhledPodivitPodkladPodmanitPodnikPodobaPodporaPodrazPodstataPodvodPodzimPoeziePohankaPohnutkaPohovorPohromaPohybPointaPojistkaPojmoutPokazitPoklesPokojPokrokPokutaPokynPolednePolibekPolknoutPolohaPolynomPomaluPominoutPomlkaPomocPomstaPomysletPonechatPonorkaPonurostPopadatPopelPopisekPoplachPoprositPopsatPopudPoradcePorcePorodPoruchaPoryvPosaditPosedPosilaPoskokPoslanecPosouditPospoluPostavaPosudekPosypPotahPotkanPotleskPotomekPotravaPotupaPotvoraPoukazPoutoPouzdroPovahaPovidlaPovlakPovozPovrchPovstatPovykPovzdechPozdravPozemekPoznatekPozorPozvatPracovatPrahoryPraktikaPralesPraotecPraporekPrasePravdaPrincipPrknoProbuditProcentoProdejProfeseProhraProjektProlomitPromilePronikatPropadProrokProsbaProtonProutekProvazPrskavkaPrstenPrudkostPrutPrvekPrvohoryPsanecPsovodPstruhPtactvoPubertaPuchPudlPukavecPuklinaPukrlePultPumpaPuncPupenPusaPusinkaPustinaPutovatPutykaPyramidaPyskPytelRacekRachotRadiaceRadniceRadonRaftRagbyRaketaRakovinaRamenoRampouchRandeRarachRaritaRasovnaRastrRatolestRazanceRazidloReagovatReakceReceptRedaktorReferentReflexRejnokReklamaRekordRekrutRektorReputaceRevizeRevmaRevolverRezervaRiskovatRizikoRobotikaRodokmenRohovkaRokleRokokoRomanetoRopovodRopuchaRorejsRosolRostlinaRotmistrRotopedRotundaRoubenkaRouchoRoupRouraRovinaRovniceRozborRozchodRozdatRozeznatRozhodceRozinkaRozjezdRozkazRozlohaRozmarRozpadRozruchRozsahRoztokRozumRozvodRubrikaRuchadloRukaviceRukopisRybaRybolovRychlostRydloRypadloRytinaRyzostSadistaSahatSakoSamecSamizdatSamotaSanitkaSardinkaSasankaSatelitSazbaSazeniceSborSchovatSebrankaSeceseSedadloSedimentSedloSehnatSejmoutSekeraSektaSekundaSekvojeSemenoSenoServisSesaditSeshoraSeskokSeslatSestraSesuvSesypatSetbaSetinaSetkatSetnoutSetrvatSeverSeznamShodaShrnoutSifonSilniceSirkaSirotekSirupSituaceSkafandrSkaliskoSkanzenSkautSkeptikSkicaSkladbaSkleniceSkloSkluzSkobaSkokanSkoroSkriptaSkrzSkupinaSkvostSkvrnaSlabikaSladidloSlaninaSlastSlavnostSledovatSlepecSlevaSlezinaSlibSlinaSlizniceSlonSloupekSlovoSluchSluhaSlunceSlupkaSlzaSmaragdSmetanaSmilstvoSmlouvaSmogSmradSmrkSmrtkaSmutekSmyslSnadSnahaSnobSobotaSochaSodovkaSokolSopkaSotvaSoubojSoucitSoudceSouhlasSouladSoumrakSoupravaSousedSoutokSouvisetSpalovnaSpasitelSpisSplavSpodekSpojenecSpoluSponzorSpornostSpoustaSprchaSpustitSrandaSrazSrdceSrnaSrnecSrovnatSrpenSrstSrubStaniceStarostaStatikaStavbaStehnoStezkaStodolaStolekStopaStornoStoupatStrachStresStrhnoutStromStrunaStudnaStupniceStvolStykSubjektSubtropySucharSudostSuknoSundatSunoutSurikataSurovinaSvahSvalstvoSvetrSvatbaSvazekSvisleSvitekSvobodaSvodidloSvorkaSvrabSykavkaSykotSynekSynovecSypatSypkostSyrovostSyselSytostTabletkaTabuleTahounTajemnoTajfunTajgaTajitTajnostTaktikaTamhleTamponTancovatTanecTankerTapetaTaveninaTazatelTechnikaTehdyTekutinaTelefonTemnotaTendenceTenistaTenorTeplotaTepnaTeprveTerapieTermoskaTextilTichoTiskopisTitulekTkadlecTkaninaTlapkaTleskatTlukotTlupaTmelToaletaTopinkaTopolTorzoTouhaToulecTradiceTraktorTrampTrasaTraverzaTrefitTrestTrezorTrhavinaTrhlinaTrochuTrojiceTroskaTroubaTrpceTrpitelTrpkostTrubecTruchlitTruhliceTrusTrvatTudyTuhnoutTuhostTundraTuristaTurnajTuzemskoTvarohTvorbaTvrdostTvrzTygrTykevUbohostUbozeUbratUbrousekUbrusUbytovnaUchoUctivostUdivitUhraditUjednatUjistitUjmoutUkazatelUklidnitUklonitUkotvitUkrojitUliceUlitaUlovitUmyvadloUnavitUniformaUniknoutUpadnoutUplatnitUplynoutUpoutatUpravitUranUrazitUsednoutUsilovatUsmrtitUsnadnitUsnoutUsouditUstlatUstrnoutUtahovatUtkatUtlumitUtonoutUtopenecUtrousitUvalitUvolnitUvozovkaUzdravitUzelUzeninaUzlinaUznatVagonValchaValounVanaVandalVanilkaVaranVarhanyVarovatVcelkuVchodVdovaVedroVegetaceVejceVelbloudVeletrhVelitelVelmocVelrybaVenkovVerandaVerzeVeselkaVeskrzeVesniceVespoduVestaVeterinaVeverkaVibraceVichrVideohraVidinaVidleVilaViniceVisetVitalitaVizeVizitkaVjezdVkladVkusVlajkaVlakVlasecVlevoVlhkostVlivVlnovkaVloupatVnucovatVnukVodaVodivostVodoznakVodstvoVojenskyVojnaVojskoVolantVolbaVolitVolnoVoskovkaVozidloVozovnaVpravoVrabecVracetVrahVrataVrbaVrcholekVrhatVrstvaVrtuleVsaditVstoupitVstupVtipVybavitVybratVychovatVydatVydraVyfotitVyhledatVyhnoutVyhoditVyhraditVyhubitVyjasnitVyjetVyjmoutVyklopitVykonatVylekatVymazatVymezitVymizetVymysletVynechatVynikatVynutitVypadatVyplatitVypravitVypustitVyrazitVyrovnatVyrvatVyslovitVysokoVystavitVysunoutVysypatVytasitVytesatVytratitVyvinoutVyvolatVyvrhelVyzdobitVyznatVzaduVzbuditVzchopitVzdorVzduchVzdychatVzestupVzhledemVzkazVzlykatVznikVzorekVzpouraVztahVztekXylofonZabratZabydletZachovatZadarmoZadusitZafoukatZahltitZahoditZahradaZahynoutZajatecZajetZajistitZaklepatZakoupitZalepitZamezitZamotatZamysletZanechatZanikatZaplatitZapojitZapsatZarazitZastavitZasunoutZatajitZatemnitZatknoutZaujmoutZavalitZaveletZavinitZavolatZavrtatZazvonitZbavitZbrusuZbudovatZbytekZdalekaZdarmaZdatnostZdivoZdobitZdrojZdvihZdymadloZeleninaZemanZeminaZeptatZezaduZezdolaZhatitZhltnoutZhlubokaZhotovitZhrubaZimaZimniceZjemnitZklamatZkoumatZkratkaZkumavkaZlatoZlehkaZlobaZlomZlostZlozvykZmapovatZmarZmatekZmijeZmizetZmocnitZmodratZmrzlinaZmutovatZnakZnalostZnamenatZnovuZobrazitZotavitZoubekZoufaleZploditZpomalitZpravaZprostitZprudkaZprvuZradaZranitZrcadloZrnitostZrnoZrovnaZrychlitZrzavostZtichaZtratitZubovinaZubrZvednoutZvenkuZveselaZvonZvratZvukovodZvyk",z6=null;function Yme(r){if(z6==null&&(z6=_Tt.replace(/([A-Z])/g," $1").toLowerCase().substring(1).split(" "),NW.Wordlist.check(r)!=="0x25f44555f4af25b51a711136e1c7d6e50ce9f8917d39d6b1f076b2bb4d2fac1a"))throw z6=null,new Error("BIP39 Wordlist for en (English) FAILED")}var CTt=function(r){TTt(e,r);function e(){return r.call(this,"cz")||this}return e.prototype.getWord=function(t){return Yme(this),z6[t]},e.prototype.getWordIndex=function(t){return Yme(this),z6.indexOf(t)},e}(NW.Wordlist),$me=new CTt;$b.langCz=$me;NW.Wordlist.register($me)});var n0e=O(e2=>{"use strict";x();T();var ETt=e2&&e2.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(e2,"__esModule",{value:!0});e2.langEn=void 0;var OW=dh(),kTt="AbandonAbilityAbleAboutAboveAbsentAbsorbAbstractAbsurdAbuseAccessAccidentAccountAccuseAchieveAcidAcousticAcquireAcrossActActionActorActressActualAdaptAddAddictAddressAdjustAdmitAdultAdvanceAdviceAerobicAffairAffordAfraidAgainAgeAgentAgreeAheadAimAirAirportAisleAlarmAlbumAlcoholAlertAlienAllAlleyAllowAlmostAloneAlphaAlreadyAlsoAlterAlwaysAmateurAmazingAmongAmountAmusedAnalystAnchorAncientAngerAngleAngryAnimalAnkleAnnounceAnnualAnotherAnswerAntennaAntiqueAnxietyAnyApartApologyAppearAppleApproveAprilArchArcticAreaArenaArgueArmArmedArmorArmyAroundArrangeArrestArriveArrowArtArtefactArtistArtworkAskAspectAssaultAssetAssistAssumeAsthmaAthleteAtomAttackAttendAttitudeAttractAuctionAuditAugustAuntAuthorAutoAutumnAverageAvocadoAvoidAwakeAwareAwayAwesomeAwfulAwkwardAxisBabyBachelorBaconBadgeBagBalanceBalconyBallBambooBananaBannerBarBarelyBargainBarrelBaseBasicBasketBattleBeachBeanBeautyBecauseBecomeBeefBeforeBeginBehaveBehindBelieveBelowBeltBenchBenefitBestBetrayBetterBetweenBeyondBicycleBidBikeBindBiologyBirdBirthBitterBlackBladeBlameBlanketBlastBleakBlessBlindBloodBlossomBlouseBlueBlurBlushBoardBoatBodyBoilBombBoneBonusBookBoostBorderBoringBorrowBossBottomBounceBoxBoyBracketBrainBrandBrassBraveBreadBreezeBrickBridgeBriefBrightBringBriskBroccoliBrokenBronzeBroomBrotherBrownBrushBubbleBuddyBudgetBuffaloBuildBulbBulkBulletBundleBunkerBurdenBurgerBurstBusBusinessBusyButterBuyerBuzzCabbageCabinCableCactusCageCakeCallCalmCameraCampCanCanalCancelCandyCannonCanoeCanvasCanyonCapableCapitalCaptainCarCarbonCardCargoCarpetCarryCartCaseCashCasinoCastleCasualCatCatalogCatchCategoryCattleCaughtCauseCautionCaveCeilingCeleryCementCensusCenturyCerealCertainChairChalkChampionChangeChaosChapterChargeChaseChatCheapCheckCheeseChefCherryChestChickenChiefChildChimneyChoiceChooseChronicChuckleChunkChurnCigarCinnamonCircleCitizenCityCivilClaimClapClarifyClawClayCleanClerkCleverClickClientCliffClimbClinicClipClockClogCloseClothCloudClownClubClumpClusterClutchCoachCoastCoconutCodeCoffeeCoilCoinCollectColorColumnCombineComeComfortComicCommonCompanyConcertConductConfirmCongressConnectConsiderControlConvinceCookCoolCopperCopyCoralCoreCornCorrectCostCottonCouchCountryCoupleCourseCousinCoverCoyoteCrackCradleCraftCramCraneCrashCraterCrawlCrazyCreamCreditCreekCrewCricketCrimeCrispCriticCropCrossCrouchCrowdCrucialCruelCruiseCrumbleCrunchCrushCryCrystalCubeCultureCupCupboardCuriousCurrentCurtainCurveCushionCustomCuteCycleDadDamageDampDanceDangerDaringDashDaughterDawnDayDealDebateDebrisDecadeDecemberDecideDeclineDecorateDecreaseDeerDefenseDefineDefyDegreeDelayDeliverDemandDemiseDenialDentistDenyDepartDependDepositDepthDeputyDeriveDescribeDesertDesignDeskDespairDestroyDetailDetectDevelopDeviceDevoteDiagramDialDiamondDiaryDiceDieselDietDifferDigitalDignityDilemmaDinnerDinosaurDirectDirtDisagreeDiscoverDiseaseDishDismissDisorderDisplayDistanceDivertDivideDivorceDizzyDoctorDocumentDogDollDolphinDomainDonateDonkeyDonorDoorDoseDoubleDoveDraftDragonDramaDrasticDrawDreamDressDriftDrillDrinkDripDriveDropDrumDryDuckDumbDuneDuringDustDutchDutyDwarfDynamicEagerEagleEarlyEarnEarthEasilyEastEasyEchoEcologyEconomyEdgeEditEducateEffortEggEightEitherElbowElderElectricElegantElementElephantElevatorEliteElseEmbarkEmbodyEmbraceEmergeEmotionEmployEmpowerEmptyEnableEnactEndEndlessEndorseEnemyEnergyEnforceEngageEngineEnhanceEnjoyEnlistEnoughEnrichEnrollEnsureEnterEntireEntryEnvelopeEpisodeEqualEquipEraEraseErodeErosionErrorEruptEscapeEssayEssenceEstateEternalEthicsEvidenceEvilEvokeEvolveExactExampleExcessExchangeExciteExcludeExcuseExecuteExerciseExhaustExhibitExileExistExitExoticExpandExpectExpireExplainExposeExpressExtendExtraEyeEyebrowFabricFaceFacultyFadeFaintFaithFallFalseFameFamilyFamousFanFancyFantasyFarmFashionFatFatalFatherFatigueFaultFavoriteFeatureFebruaryFederalFeeFeedFeelFemaleFenceFestivalFetchFeverFewFiberFictionFieldFigureFileFilmFilterFinalFindFineFingerFinishFireFirmFirstFiscalFishFitFitnessFixFlagFlameFlashFlatFlavorFleeFlightFlipFloatFlockFloorFlowerFluidFlushFlyFoamFocusFogFoilFoldFollowFoodFootForceForestForgetForkFortuneForumForwardFossilFosterFoundFoxFragileFrameFrequentFreshFriendFringeFrogFrontFrostFrownFrozenFruitFuelFunFunnyFurnaceFuryFutureGadgetGainGalaxyGalleryGameGapGarageGarbageGardenGarlicGarmentGasGaspGateGatherGaugeGazeGeneralGeniusGenreGentleGenuineGestureGhostGiantGiftGiggleGingerGiraffeGirlGiveGladGlanceGlareGlassGlideGlimpseGlobeGloomGloryGloveGlowGlueGoatGoddessGoldGoodGooseGorillaGospelGossipGovernGownGrabGraceGrainGrantGrapeGrassGravityGreatGreenGridGriefGritGroceryGroupGrowGruntGuardGuessGuideGuiltGuitarGunGymHabitHairHalfHammerHamsterHandHappyHarborHardHarshHarvestHatHaveHawkHazardHeadHealthHeartHeavyHedgehogHeightHelloHelmetHelpHenHeroHiddenHighHillHintHipHireHistoryHobbyHockeyHoldHoleHolidayHollowHomeHoneyHoodHopeHornHorrorHorseHospitalHostHotelHourHoverHubHugeHumanHumbleHumorHundredHungryHuntHurdleHurryHurtHusbandHybridIceIconIdeaIdentifyIdleIgnoreIllIllegalIllnessImageImitateImmenseImmuneImpactImposeImproveImpulseInchIncludeIncomeIncreaseIndexIndicateIndoorIndustryInfantInflictInformInhaleInheritInitialInjectInjuryInmateInnerInnocentInputInquiryInsaneInsectInsideInspireInstallIntactInterestIntoInvestInviteInvolveIronIslandIsolateIssueItemIvoryJacketJaguarJarJazzJealousJeansJellyJewelJobJoinJokeJourneyJoyJudgeJuiceJumpJungleJuniorJunkJustKangarooKeenKeepKetchupKeyKickKidKidneyKindKingdomKissKitKitchenKiteKittenKiwiKneeKnifeKnockKnowLabLabelLaborLadderLadyLakeLampLanguageLaptopLargeLaterLatinLaughLaundryLavaLawLawnLawsuitLayerLazyLeaderLeafLearnLeaveLectureLeftLegLegalLegendLeisureLemonLendLengthLensLeopardLessonLetterLevelLiarLibertyLibraryLicenseLifeLiftLightLikeLimbLimitLinkLionLiquidListLittleLiveLizardLoadLoanLobsterLocalLockLogicLonelyLongLoopLotteryLoudLoungeLoveLoyalLuckyLuggageLumberLunarLunchLuxuryLyricsMachineMadMagicMagnetMaidMailMainMajorMakeMammalManManageMandateMangoMansionManualMapleMarbleMarchMarginMarineMarketMarriageMaskMassMasterMatchMaterialMathMatrixMatterMaximumMazeMeadowMeanMeasureMeatMechanicMedalMediaMelodyMeltMemberMemoryMentionMenuMercyMergeMeritMerryMeshMessageMetalMethodMiddleMidnightMilkMillionMimicMindMinimumMinorMinuteMiracleMirrorMiseryMissMistakeMixMixedMixtureMobileModelModifyMomMomentMonitorMonkeyMonsterMonthMoonMoralMoreMorningMosquitoMotherMotionMotorMountainMouseMoveMovieMuchMuffinMuleMultiplyMuscleMuseumMushroomMusicMustMutualMyselfMysteryMythNaiveNameNapkinNarrowNastyNationNatureNearNeckNeedNegativeNeglectNeitherNephewNerveNestNetNetworkNeutralNeverNewsNextNiceNightNobleNoiseNomineeNoodleNormalNorthNoseNotableNoteNothingNoticeNovelNowNuclearNumberNurseNutOakObeyObjectObligeObscureObserveObtainObviousOccurOceanOctoberOdorOffOfferOfficeOftenOilOkayOldOliveOlympicOmitOnceOneOnionOnlineOnlyOpenOperaOpinionOpposeOptionOrangeOrbitOrchardOrderOrdinaryOrganOrientOriginalOrphanOstrichOtherOutdoorOuterOutputOutsideOvalOvenOverOwnOwnerOxygenOysterOzonePactPaddlePagePairPalacePalmPandaPanelPanicPantherPaperParadeParentParkParrotPartyPassPatchPathPatientPatrolPatternPausePavePaymentPeacePeanutPearPeasantPelicanPenPenaltyPencilPeoplePepperPerfectPermitPersonPetPhonePhotoPhrasePhysicalPianoPicnicPicturePiecePigPigeonPillPilotPinkPioneerPipePistolPitchPizzaPlacePlanetPlasticPlatePlayPleasePledgePluckPlugPlungePoemPoetPointPolarPolePolicePondPonyPoolPopularPortionPositionPossiblePostPotatoPotteryPovertyPowderPowerPracticePraisePredictPreferPreparePresentPrettyPreventPricePridePrimaryPrintPriorityPrisonPrivatePrizeProblemProcessProduceProfitProgramProjectPromoteProofPropertyProsperProtectProudProvidePublicPuddingPullPulpPulsePumpkinPunchPupilPuppyPurchasePurityPurposePursePushPutPuzzlePyramidQualityQuantumQuarterQuestionQuickQuitQuizQuoteRabbitRaccoonRaceRackRadarRadioRailRainRaiseRallyRampRanchRandomRangeRapidRareRateRatherRavenRawRazorReadyRealReasonRebelRebuildRecallReceiveRecipeRecordRecycleReduceReflectReformRefuseRegionRegretRegularRejectRelaxReleaseReliefRelyRemainRememberRemindRemoveRenderRenewRentReopenRepairRepeatReplaceReportRequireRescueResembleResistResourceResponseResultRetireRetreatReturnReunionRevealReviewRewardRhythmRibRibbonRiceRichRideRidgeRifleRightRigidRingRiotRippleRiskRitualRivalRiverRoadRoastRobotRobustRocketRomanceRoofRookieRoomRoseRotateRoughRoundRouteRoyalRubberRudeRugRuleRunRunwayRuralSadSaddleSadnessSafeSailSaladSalmonSalonSaltSaluteSameSampleSandSatisfySatoshiSauceSausageSaveSayScaleScanScareScatterSceneSchemeSchoolScienceScissorsScorpionScoutScrapScreenScriptScrubSeaSearchSeasonSeatSecondSecretSectionSecuritySeedSeekSegmentSelectSellSeminarSeniorSenseSentenceSeriesServiceSessionSettleSetupSevenShadowShaftShallowShareShedShellSheriffShieldShiftShineShipShiverShockShoeShootShopShortShoulderShoveShrimpShrugShuffleShySiblingSickSideSiegeSightSignSilentSilkSillySilverSimilarSimpleSinceSingSirenSisterSituateSixSizeSkateSketchSkiSkillSkinSkirtSkullSlabSlamSleepSlenderSliceSlideSlightSlimSloganSlotSlowSlushSmallSmartSmileSmokeSmoothSnackSnakeSnapSniffSnowSoapSoccerSocialSockSodaSoftSolarSoldierSolidSolutionSolveSomeoneSongSoonSorrySortSoulSoundSoupSourceSouthSpaceSpareSpatialSpawnSpeakSpecialSpeedSpellSpendSphereSpiceSpiderSpikeSpinSpiritSplitSpoilSponsorSpoonSportSpotSpraySpreadSpringSpySquareSqueezeSquirrelStableStadiumStaffStageStairsStampStandStartStateStaySteakSteelStemStepStereoStickStillStingStockStomachStoneStoolStoryStoveStrategyStreetStrikeStrongStruggleStudentStuffStumbleStyleSubjectSubmitSubwaySuccessSuchSuddenSufferSugarSuggestSuitSummerSunSunnySunsetSuperSupplySupremeSureSurfaceSurgeSurpriseSurroundSurveySuspectSustainSwallowSwampSwapSwarmSwearSweetSwiftSwimSwingSwitchSwordSymbolSymptomSyrupSystemTableTackleTagTailTalentTalkTankTapeTargetTaskTasteTattooTaxiTeachTeamTellTenTenantTennisTentTermTestTextThankThatThemeThenTheoryThereTheyThingThisThoughtThreeThriveThrowThumbThunderTicketTideTigerTiltTimberTimeTinyTipTiredTissueTitleToastTobaccoTodayToddlerToeTogetherToiletTokenTomatoTomorrowToneTongueTonightToolToothTopTopicToppleTorchTornadoTortoiseTossTotalTouristTowardTowerTownToyTrackTradeTrafficTragicTrainTransferTrapTrashTravelTrayTreatTreeTrendTrialTribeTrickTriggerTrimTripTrophyTroubleTruckTrueTrulyTrumpetTrustTruthTryTubeTuitionTumbleTunaTunnelTurkeyTurnTurtleTwelveTwentyTwiceTwinTwistTwoTypeTypicalUglyUmbrellaUnableUnawareUncleUncoverUnderUndoUnfairUnfoldUnhappyUniformUniqueUnitUniverseUnknownUnlockUntilUnusualUnveilUpdateUpgradeUpholdUponUpperUpsetUrbanUrgeUsageUseUsedUsefulUselessUsualUtilityVacantVacuumVagueValidValleyValveVanVanishVaporVariousVastVaultVehicleVelvetVendorVentureVenueVerbVerifyVersionVeryVesselVeteranViableVibrantViciousVictoryVideoViewVillageVintageViolinVirtualVirusVisaVisitVisualVitalVividVocalVoiceVoidVolcanoVolumeVoteVoyageWageWagonWaitWalkWallWalnutWantWarfareWarmWarriorWashWaspWasteWaterWaveWayWealthWeaponWearWeaselWeatherWebWeddingWeekendWeirdWelcomeWestWetWhaleWhatWheatWheelWhenWhereWhipWhisperWideWidthWifeWildWillWinWindowWineWingWinkWinnerWinterWireWisdomWiseWishWitnessWolfWomanWonderWoodWoolWordWorkWorldWorryWorthWrapWreckWrestleWristWriteWrongYardYearYellowYouYoungYouthZebraZeroZoneZoo",H6=null;function t0e(r){if(H6==null&&(H6=kTt.replace(/([A-Z])/g," $1").toLowerCase().substring(1).split(" "),OW.Wordlist.check(r)!=="0x3c8acc1e7b08d8e76f9fda015ef48dc8c710a73cb7e0f77b2c18a9b5a7adde60"))throw H6=null,new Error("BIP39 Wordlist for en (English) FAILED")}var STt=function(r){ETt(e,r);function e(){return r.call(this,"en")||this}return e.prototype.getWord=function(t){return t0e(this),H6[t]},e.prototype.getWordIndex=function(t){return t0e(this),H6.indexOf(t)},e}(OW.Wordlist),r0e=new STt;e2.langEn=r0e;OW.Wordlist.register(r0e)});var c0e=O(t2=>{"use strict";x();T();var ATt=t2&&t2.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(t2,"__esModule",{value:!0});t2.langEs=void 0;var BA=rs(),qA=dh(),MTt="A/bacoAbdomenAbejaAbiertoAbogadoAbonoAbortoAbrazoAbrirAbueloAbusoAcabarAcademiaAccesoAccio/nAceiteAcelgaAcentoAceptarA/cidoAclararAcne/AcogerAcosoActivoActoActrizActuarAcudirAcuerdoAcusarAdictoAdmitirAdoptarAdornoAduanaAdultoAe/reoAfectarAficio/nAfinarAfirmarA/gilAgitarAgoni/aAgostoAgotarAgregarAgrioAguaAgudoA/guilaAgujaAhogoAhorroAireAislarAjedrezAjenoAjusteAlacra/nAlambreAlarmaAlbaA/lbumAlcaldeAldeaAlegreAlejarAlertaAletaAlfilerAlgaAlgodo/nAliadoAlientoAlivioAlmaAlmejaAlmi/barAltarAltezaAltivoAltoAlturaAlumnoAlzarAmableAmanteAmapolaAmargoAmasarA/mbarA/mbitoAmenoAmigoAmistadAmorAmparoAmplioAnchoAncianoAnclaAndarAnde/nAnemiaA/nguloAnilloA/nimoAni/sAnotarAntenaAntiguoAntojoAnualAnularAnuncioA~adirA~ejoA~oApagarAparatoApetitoApioAplicarApodoAporteApoyoAprenderAprobarApuestaApuroAradoAra~aArarA/rbitroA/rbolArbustoArchivoArcoArderArdillaArduoA/reaA/ridoAriesArmoni/aArne/sAromaArpaArpo/nArregloArrozArrugaArteArtistaAsaAsadoAsaltoAscensoAsegurarAseoAsesorAsientoAsiloAsistirAsnoAsombroA/speroAstillaAstroAstutoAsumirAsuntoAtajoAtaqueAtarAtentoAteoA/ticoAtletaA/tomoAtraerAtrozAtu/nAudazAudioAugeAulaAumentoAusenteAutorAvalAvanceAvaroAveAvellanaAvenaAvestruzAvio/nAvisoAyerAyudaAyunoAzafra/nAzarAzoteAzu/carAzufreAzulBabaBaborBacheBahi/aBaileBajarBalanzaBalco/nBaldeBambu/BancoBandaBa~oBarbaBarcoBarnizBarroBa/sculaBasto/nBasuraBatallaBateri/aBatirBatutaBau/lBazarBebe/BebidaBelloBesarBesoBestiaBichoBienBingoBlancoBloqueBlusaBoaBobinaBoboBocaBocinaBodaBodegaBoinaBolaBoleroBolsaBombaBondadBonitoBonoBonsa/iBordeBorrarBosqueBoteBoti/nBo/vedaBozalBravoBrazoBrechaBreveBrilloBrincoBrisaBrocaBromaBronceBroteBrujaBruscoBrutoBuceoBucleBuenoBueyBufandaBufo/nBu/hoBuitreBultoBurbujaBurlaBurroBuscarButacaBuzo/nCaballoCabezaCabinaCabraCacaoCada/verCadenaCaerCafe/Cai/daCaima/nCajaCajo/nCalCalamarCalcioCaldoCalidadCalleCalmaCalorCalvoCamaCambioCamelloCaminoCampoCa/ncerCandilCanelaCanguroCanicaCantoCa~aCa~o/nCaobaCaosCapazCapita/nCapoteCaptarCapuchaCaraCarbo/nCa/rcelCaretaCargaCari~oCarneCarpetaCarroCartaCasaCascoCaseroCaspaCastorCatorceCatreCaudalCausaCazoCebollaCederCedroCeldaCe/lebreCelosoCe/lulaCementoCenizaCentroCercaCerdoCerezaCeroCerrarCertezaCe/spedCetroChacalChalecoChampu/ChanclaChapaCharlaChicoChisteChivoChoqueChozaChuletaChuparCiclo/nCiegoCieloCienCiertoCifraCigarroCimaCincoCineCintaCipre/sCircoCiruelaCisneCitaCiudadClamorClanClaroClaseClaveClienteClimaCli/nicaCobreCoccio/nCochinoCocinaCocoCo/digoCodoCofreCogerCoheteCoji/nCojoColaColchaColegioColgarColinaCollarColmoColumnaCombateComerComidaCo/modoCompraCondeConejoCongaConocerConsejoContarCopaCopiaCorazo/nCorbataCorchoCordo/nCoronaCorrerCoserCosmosCostaCra/neoCra/terCrearCrecerCrei/doCremaCri/aCrimenCriptaCrisisCromoCro/nicaCroquetaCrudoCruzCuadroCuartoCuatroCuboCubrirCucharaCuelloCuentoCuerdaCuestaCuevaCuidarCulebraCulpaCultoCumbreCumplirCunaCunetaCuotaCupo/nCu/pulaCurarCuriosoCursoCurvaCutisDamaDanzaDarDardoDa/tilDeberDe/bilDe/cadaDecirDedoDefensaDefinirDejarDelfi/nDelgadoDelitoDemoraDensoDentalDeporteDerechoDerrotaDesayunoDeseoDesfileDesnudoDestinoDesvi/oDetalleDetenerDeudaDi/aDiabloDiademaDiamanteDianaDiarioDibujoDictarDienteDietaDiezDifi/cilDignoDilemaDiluirDineroDirectoDirigirDiscoDise~oDisfrazDivaDivinoDobleDoceDolorDomingoDonDonarDoradoDormirDorsoDosDosisDrago/nDrogaDuchaDudaDueloDue~oDulceDu/oDuqueDurarDurezaDuroE/banoEbrioEcharEcoEcuadorEdadEdicio/nEdificioEditorEducarEfectoEficazEjeEjemploElefanteElegirElementoElevarElipseE/liteElixirElogioEludirEmbudoEmitirEmocio/nEmpateEmpe~oEmpleoEmpresaEnanoEncargoEnchufeEnci/aEnemigoEneroEnfadoEnfermoEnga~oEnigmaEnlaceEnormeEnredoEnsayoEnse~arEnteroEntrarEnvaseEnvi/oE/pocaEquipoErizoEscalaEscenaEscolarEscribirEscudoEsenciaEsferaEsfuerzoEspadaEspejoEspi/aEsposaEspumaEsqui/EstarEsteEstiloEstufaEtapaEternoE/ticaEtniaEvadirEvaluarEventoEvitarExactoExamenExcesoExcusaExentoExigirExilioExistirE/xitoExpertoExplicarExponerExtremoFa/bricaFa/bulaFachadaFa/cilFactorFaenaFajaFaldaFalloFalsoFaltarFamaFamiliaFamosoFarao/nFarmaciaFarolFarsaFaseFatigaFaunaFavorFaxFebreroFechaFelizFeoFeriaFerozFe/rtilFervorFesti/nFiableFianzaFiarFibraFiccio/nFichaFideoFiebreFielFieraFiestaFiguraFijarFijoFilaFileteFilialFiltroFinFincaFingirFinitoFirmaFlacoFlautaFlechaFlorFlotaFluirFlujoFlu/orFobiaFocaFogataFogo/nFolioFolletoFondoFormaForroFortunaForzarFosaFotoFracasoFra/gilFranjaFraseFraudeFrei/rFrenoFresaFri/oFritoFrutaFuegoFuenteFuerzaFugaFumarFuncio/nFundaFurgo/nFuriaFusilFu/tbolFuturoGacelaGafasGaitaGajoGalaGaleri/aGalloGambaGanarGanchoGangaGansoGarajeGarzaGasolinaGastarGatoGavila/nGemeloGemirGenGe/neroGenioGenteGeranioGerenteGermenGestoGiganteGimnasioGirarGiroGlaciarGloboGloriaGolGolfoGolosoGolpeGomaGordoGorilaGorraGotaGoteoGozarGradaGra/ficoGranoGrasaGratisGraveGrietaGrilloGripeGrisGritoGrosorGru/aGruesoGrumoGrupoGuanteGuapoGuardiaGuerraGui/aGui~oGuionGuisoGuitarraGusanoGustarHaberHa/bilHablarHacerHachaHadaHallarHamacaHarinaHazHaza~aHebillaHebraHechoHeladoHelioHembraHerirHermanoHe/roeHervirHieloHierroHi/gadoHigieneHijoHimnoHistoriaHocicoHogarHogueraHojaHombreHongoHonorHonraHoraHormigaHornoHostilHoyoHuecoHuelgaHuertaHuesoHuevoHuidaHuirHumanoHu/medoHumildeHumoHundirHuraca/nHurtoIconoIdealIdiomaI/doloIglesiaIglu/IgualIlegalIlusio/nImagenIma/nImitarImparImperioImponerImpulsoIncapazI/ndiceInerteInfielInformeIngenioInicioInmensoInmuneInnatoInsectoInstanteIntere/sI/ntimoIntuirInu/tilInviernoIraIrisIroni/aIslaIsloteJabali/Jabo/nJamo/nJarabeJardi/nJarraJaulaJazmi/nJefeJeringaJineteJornadaJorobaJovenJoyaJuergaJuevesJuezJugadorJugoJugueteJuicioJuncoJunglaJunioJuntarJu/piterJurarJustoJuvenilJuzgarKiloKoalaLabioLacioLacraLadoLadro/nLagartoLa/grimaLagunaLaicoLamerLa/minaLa/mparaLanaLanchaLangostaLanzaLa/pizLargoLarvaLa/stimaLataLa/texLatirLaurelLavarLazoLealLeccio/nLecheLectorLeerLegio/nLegumbreLejanoLenguaLentoLe~aLeo/nLeopardoLesio/nLetalLetraLeveLeyendaLibertadLibroLicorLi/derLidiarLienzoLigaLigeroLimaLi/miteLimo/nLimpioLinceLindoLi/neaLingoteLinoLinternaLi/quidoLisoListaLiteraLitioLitroLlagaLlamaLlantoLlaveLlegarLlenarLlevarLlorarLloverLluviaLoboLocio/nLocoLocuraLo/gicaLogroLombrizLomoLonjaLoteLuchaLucirLugarLujoLunaLunesLupaLustroLutoLuzMacetaMachoMaderaMadreMaduroMaestroMafiaMagiaMagoMai/zMaldadMaletaMallaMaloMama/MamboMamutMancoMandoManejarMangaManiqui/ManjarManoMansoMantaMa~anaMapaMa/quinaMarMarcoMareaMarfilMargenMaridoMa/rmolMarro/nMartesMarzoMasaMa/scaraMasivoMatarMateriaMatizMatrizMa/ximoMayorMazorcaMechaMedallaMedioMe/dulaMejillaMejorMelenaMelo/nMemoriaMenorMensajeMenteMenu/MercadoMerengueMe/ritoMesMeso/nMetaMeterMe/todoMetroMezclaMiedoMielMiembroMigaMilMilagroMilitarMillo/nMimoMinaMineroMi/nimoMinutoMiopeMirarMisaMiseriaMisilMismoMitadMitoMochilaMocio/nModaModeloMohoMojarMoldeMolerMolinoMomentoMomiaMonarcaMonedaMonjaMontoMo~oMoradaMorderMorenoMorirMorroMorsaMortalMoscaMostrarMotivoMoverMo/vilMozoMuchoMudarMuebleMuelaMuerteMuestraMugreMujerMulaMuletaMultaMundoMu~ecaMuralMuroMu/sculoMuseoMusgoMu/sicaMusloNa/carNacio/nNadarNaipeNaranjaNarizNarrarNasalNatalNativoNaturalNa/useaNavalNaveNavidadNecioNe/ctarNegarNegocioNegroNeo/nNervioNetoNeutroNevarNeveraNichoNidoNieblaNietoNi~ezNi~oNi/tidoNivelNoblezaNocheNo/minaNoriaNormaNorteNotaNoticiaNovatoNovelaNovioNubeNucaNu/cleoNudilloNudoNueraNueveNuezNuloNu/meroNutriaOasisObesoObispoObjetoObraObreroObservarObtenerObvioOcaOcasoOce/anoOchentaOchoOcioOcreOctavoOctubreOcultoOcuparOcurrirOdiarOdioOdiseaOesteOfensaOfertaOficioOfrecerOgroOi/doOi/rOjoOlaOleadaOlfatoOlivoOllaOlmoOlorOlvidoOmbligoOndaOnzaOpacoOpcio/nO/peraOpinarOponerOptarO/pticaOpuestoOracio/nOradorOralO/rbitaOrcaOrdenOrejaO/rganoOrgi/aOrgulloOrienteOrigenOrillaOroOrquestaOrugaOsadi/aOscuroOseznoOsoOstraOto~oOtroOvejaO/vuloO/xidoOxi/genoOyenteOzonoPactoPadrePaellaPa/ginaPagoPai/sPa/jaroPalabraPalcoPaletaPa/lidoPalmaPalomaPalparPanPanalPa/nicoPanteraPa~ueloPapa/PapelPapillaPaquetePararParcelaParedParirParoPa/rpadoParquePa/rrafoPartePasarPaseoPasio/nPasoPastaPataPatioPatriaPausaPautaPavoPayasoPeato/nPecadoPeceraPechoPedalPedirPegarPeinePelarPelda~oPeleaPeligroPellejoPeloPelucaPenaPensarPe~o/nPeo/nPeorPepinoPeque~oPeraPerchaPerderPerezaPerfilPericoPerlaPermisoPerroPersonaPesaPescaPe/simoPesta~aPe/taloPetro/leoPezPezu~aPicarPicho/nPiePiedraPiernaPiezaPijamaPilarPilotoPimientaPinoPintorPinzaPi~aPiojoPipaPirataPisarPiscinaPisoPistaPito/nPizcaPlacaPlanPlataPlayaPlazaPleitoPlenoPlomoPlumaPluralPobrePocoPoderPodioPoemaPoesi/aPoetaPolenPolici/aPolloPolvoPomadaPomeloPomoPompaPonerPorcio/nPortalPosadaPoseerPosiblePostePotenciaPotroPozoPradoPrecozPreguntaPremioPrensaPresoPrevioPrimoPri/ncipePrisio/nPrivarProaProbarProcesoProductoProezaProfesorProgramaProlePromesaProntoPropioPro/ximoPruebaPu/blicoPucheroPudorPuebloPuertaPuestoPulgaPulirPulmo/nPulpoPulsoPumaPuntoPu~alPu~oPupaPupilaPure/QuedarQuejaQuemarQuererQuesoQuietoQui/micaQuinceQuitarRa/banoRabiaRaboRacio/nRadicalRai/zRamaRampaRanchoRangoRapazRa/pidoRaptoRasgoRaspaRatoRayoRazaRazo/nReaccio/nRealidadReba~oReboteRecaerRecetaRechazoRecogerRecreoRectoRecursoRedRedondoReducirReflejoReformaRefra/nRefugioRegaloRegirReglaRegresoRehe/nReinoRei/rRejaRelatoRelevoRelieveRellenoRelojRemarRemedioRemoRencorRendirRentaRepartoRepetirReposoReptilResRescateResinaRespetoRestoResumenRetiroRetornoRetratoReunirReve/sRevistaReyRezarRicoRiegoRiendaRiesgoRifaRi/gidoRigorRinco/nRi~o/nRi/oRiquezaRisaRitmoRitoRizoRobleRoceRociarRodarRodeoRodillaRoerRojizoRojoRomeroRomperRonRoncoRondaRopaRoperoRosaRoscaRostroRotarRubi/RuborRudoRuedaRugirRuidoRuinaRuletaRuloRumboRumorRupturaRutaRutinaSa/badoSaberSabioSableSacarSagazSagradoSalaSaldoSaleroSalirSalmo/nSalo/nSalsaSaltoSaludSalvarSambaSancio/nSandi/aSanearSangreSanidadSanoSantoSapoSaqueSardinaSarte/nSastreSata/nSaunaSaxofo/nSeccio/nSecoSecretoSectaSedSeguirSeisSelloSelvaSemanaSemillaSendaSensorSe~alSe~orSepararSepiaSequi/aSerSerieSermo/nServirSesentaSesio/nSetaSetentaSeveroSexoSextoSidraSiestaSieteSigloSignoSi/labaSilbarSilencioSillaSi/mboloSimioSirenaSistemaSitioSituarSobreSocioSodioSolSolapaSoldadoSoledadSo/lidoSoltarSolucio/nSombraSondeoSonidoSonoroSonrisaSopaSoplarSoporteSordoSorpresaSorteoSoste/nSo/tanoSuaveSubirSucesoSudorSuegraSueloSue~oSuerteSufrirSujetoSulta/nSumarSuperarSuplirSuponerSupremoSurSurcoSure~oSurgirSustoSutilTabacoTabiqueTablaTabu/TacoTactoTajoTalarTalcoTalentoTallaTalo/nTama~oTamborTangoTanqueTapaTapeteTapiaTapo/nTaquillaTardeTareaTarifaTarjetaTarotTarroTartaTatuajeTauroTazaTazo/nTeatroTechoTeclaTe/cnicaTejadoTejerTejidoTelaTele/fonoTemaTemorTemploTenazTenderTenerTenisTensoTeori/aTerapiaTercoTe/rminoTernuraTerrorTesisTesoroTestigoTeteraTextoTezTibioTiburo/nTiempoTiendaTierraTiesoTigreTijeraTildeTimbreTi/midoTimoTintaTi/oTi/picoTipoTiraTiro/nTita/nTi/tereTi/tuloTizaToallaTobilloTocarTocinoTodoTogaToldoTomarTonoTontoToparTopeToqueTo/raxToreroTormentaTorneoToroTorpedoTorreTorsoTortugaTosToscoToserTo/xicoTrabajoTractorTraerTra/ficoTragoTrajeTramoTranceTratoTraumaTrazarTre/bolTreguaTreintaTrenTreparTresTribuTrigoTripaTristeTriunfoTrofeoTrompaTroncoTropaTroteTrozoTrucoTruenoTrufaTuberi/aTuboTuertoTumbaTumorTu/nelTu/nicaTurbinaTurismoTurnoTutorUbicarU/lceraUmbralUnidadUnirUniversoUnoUntarU~aUrbanoUrbeUrgenteUrnaUsarUsuarioU/tilUtopi/aUvaVacaVaci/oVacunaVagarVagoVainaVajillaValeVa/lidoValleValorVa/lvulaVampiroVaraVariarVaro/nVasoVecinoVectorVehi/culoVeinteVejezVelaVeleroVelozVenaVencerVendaVenenoVengarVenirVentaVenusVerVeranoVerboVerdeVeredaVerjaVersoVerterVi/aViajeVibrarVicioVi/ctimaVidaVi/deoVidrioViejoViernesVigorVilVillaVinagreVinoVi~edoVioli/nViralVirgoVirtudVisorVi/speraVistaVitaminaViudoVivazViveroVivirVivoVolca/nVolumenVolverVorazVotarVotoVozVueloVulgarYacerYateYeguaYemaYernoYesoYodoYogaYogurZafiroZanjaZapatoZarzaZonaZorroZumoZurdo",i0e={},V6=null;function s0e(r){return qA.logger.checkNormalize(),(0,BA.toUtf8String)(Array.prototype.filter.call((0,BA.toUtf8Bytes)(r.normalize("NFD").toLowerCase()),function(e){return e>=65&&e<=90||e>=97&&e<=123}))}function ITt(r){var e=[];return Array.prototype.forEach.call((0,BA.toUtf8Bytes)(r),function(t){t===47?(e.push(204),e.push(129)):t===126?(e.push(110),e.push(204),e.push(131)):e.push(t)}),(0,BA.toUtf8String)(e)}function a0e(r){if(V6==null&&(V6=MTt.replace(/([A-Z])/g," $1").toLowerCase().substring(1).split(" ").map(function(e){return ITt(e)}),V6.forEach(function(e,t){i0e[s0e(e)]=t}),qA.Wordlist.check(r)!=="0xf74fb7092aeacdfbf8959557de22098da512207fb9f109cb526994938cf40300"))throw V6=null,new Error("BIP39 Wordlist for es (Spanish) FAILED")}var PTt=function(r){ATt(e,r);function e(){return r.call(this,"es")||this}return e.prototype.getWord=function(t){return a0e(this),V6[t]},e.prototype.getWordIndex=function(t){return a0e(this),i0e[s0e(t)]},e}(qA.Wordlist),o0e=new PTt;t2.langEs=o0e;qA.Wordlist.register(o0e)});var h0e=O(r2=>{"use strict";x();T();var RTt=r2&&r2.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(r2,"__esModule",{value:!0});r2.langFr=void 0;var DA=rs(),FA=dh(),NTt="AbaisserAbandonAbdiquerAbeilleAbolirAborderAboutirAboyerAbrasifAbreuverAbriterAbrogerAbruptAbsenceAbsoluAbsurdeAbusifAbyssalAcade/mieAcajouAcarienAccablerAccepterAcclamerAccoladeAccrocheAccuserAcerbeAchatAcheterAcidulerAcierAcompteAcque/rirAcronymeActeurActifActuelAdepteAde/quatAdhe/sifAdjectifAdjugerAdmettreAdmirerAdopterAdorerAdoucirAdresseAdroitAdulteAdverbeAe/rerAe/ronefAffaireAffecterAfficheAffreuxAffublerAgacerAgencerAgileAgiterAgraferAgre/ableAgrumeAiderAiguilleAilierAimableAisanceAjouterAjusterAlarmerAlchimieAlerteAlge-breAlgueAlie/nerAlimentAlle/gerAlliageAllouerAllumerAlourdirAlpagaAltesseAlve/oleAmateurAmbiguAmbreAme/nagerAmertumeAmidonAmiralAmorcerAmourAmovibleAmphibieAmpleurAmusantAnalyseAnaphoreAnarchieAnatomieAncienAne/antirAngleAngoisseAnguleuxAnimalAnnexerAnnonceAnnuelAnodinAnomalieAnonymeAnormalAntenneAntidoteAnxieuxApaiserApe/ritifAplanirApologieAppareilAppelerApporterAppuyerAquariumAqueducArbitreArbusteArdeurArdoiseArgentArlequinArmatureArmementArmoireArmureArpenterArracherArriverArroserArsenicArte/rielArticleAspectAsphalteAspirerAssautAsservirAssietteAssocierAssurerAsticotAstreAstuceAtelierAtomeAtriumAtroceAttaqueAttentifAttirerAttraperAubaineAubergeAudaceAudibleAugurerAuroreAutomneAutrucheAvalerAvancerAvariceAvenirAverseAveugleAviateurAvideAvionAviserAvoineAvouerAvrilAxialAxiomeBadgeBafouerBagageBaguetteBaignadeBalancerBalconBaleineBalisageBambinBancaireBandageBanlieueBannie-reBanquierBarbierBarilBaronBarqueBarrageBassinBastionBatailleBateauBatterieBaudrierBavarderBeletteBe/lierBeloteBe/ne/ficeBerceauBergerBerlineBermudaBesaceBesogneBe/tailBeurreBiberonBicycleBiduleBijouBilanBilingueBillardBinaireBiologieBiopsieBiotypeBiscuitBisonBistouriBitumeBizarreBlafardBlagueBlanchirBlessantBlinderBlondBloquerBlousonBobardBobineBoireBoiserBolideBonbonBondirBonheurBonifierBonusBordureBorneBotteBoucleBoueuxBougieBoulonBouquinBourseBoussoleBoutiqueBoxeurBrancheBrasierBraveBrebisBre-cheBreuvageBricolerBrigadeBrillantBriocheBriqueBrochureBroderBronzerBrousseBroyeurBrumeBrusqueBrutalBruyantBuffleBuissonBulletinBureauBurinBustierButinerButoirBuvableBuvetteCabanonCabineCachetteCadeauCadreCafe/ineCaillouCaissonCalculerCalepinCalibreCalmerCalomnieCalvaireCamaradeCame/raCamionCampagneCanalCanetonCanonCantineCanularCapableCaporalCapriceCapsuleCapterCapucheCarabineCarboneCaresserCaribouCarnageCarotteCarreauCartonCascadeCasierCasqueCassureCauserCautionCavalierCaverneCaviarCe/dilleCeintureCe/lesteCelluleCendrierCensurerCentralCercleCe/re/bralCeriseCernerCerveauCesserChagrinChaiseChaleurChambreChanceChapitreCharbonChasseurChatonChaussonChavirerChemiseChenilleChe/quierChercherChevalChienChiffreChignonChime-reChiotChlorureChocolatChoisirChoseChouetteChromeChuteCigareCigogneCimenterCine/maCintrerCirculerCirerCirqueCiterneCitoyenCitronCivilClaironClameurClaquerClasseClavierClientClignerClimatClivageClocheClonageCloporteCobaltCobraCocasseCocotierCoderCodifierCoffreCognerCohe/sionCoifferCoincerCole-reColibriCollineColmaterColonelCombatCome/dieCommandeCompactConcertConduireConfierCongelerConnoterConsonneContactConvexeCopainCopieCorailCorbeauCordageCornicheCorpusCorrectCorte-geCosmiqueCostumeCotonCoudeCoupureCourageCouteauCouvrirCoyoteCrabeCrainteCravateCrayonCre/atureCre/diterCre/meuxCreuserCrevetteCriblerCrierCristalCrite-reCroireCroquerCrotaleCrucialCruelCrypterCubiqueCueillirCuille-reCuisineCuivreCulminerCultiverCumulerCupideCuratifCurseurCyanureCycleCylindreCyniqueDaignerDamierDangerDanseurDauphinDe/battreDe/biterDe/borderDe/briderDe/butantDe/calerDe/cembreDe/chirerDe/ciderDe/clarerDe/corerDe/crireDe/cuplerDe/daleDe/ductifDe/esseDe/fensifDe/filerDe/frayerDe/gagerDe/givrerDe/glutirDe/graferDe/jeunerDe/liceDe/logerDemanderDemeurerDe/molirDe/nicherDe/nouerDentelleDe/nuderDe/partDe/penserDe/phaserDe/placerDe/poserDe/rangerDe/roberDe/sastreDescenteDe/sertDe/signerDe/sobe/irDessinerDestrierDe/tacherDe/testerDe/tourerDe/tresseDevancerDevenirDevinerDevoirDiableDialogueDiamantDicterDiffe/rerDige/rerDigitalDigneDiluerDimancheDiminuerDioxydeDirectifDirigerDiscuterDisposerDissiperDistanceDivertirDiviserDocileDocteurDogmeDoigtDomaineDomicileDompterDonateurDonjonDonnerDopamineDortoirDorureDosageDoseurDossierDotationDouanierDoubleDouceurDouterDoyenDragonDraperDresserDribblerDroitureDuperieDuplexeDurableDurcirDynastieE/blouirE/carterE/charpeE/chelleE/clairerE/clipseE/cloreE/cluseE/coleE/conomieE/corceE/couterE/craserE/cre/merE/crivainE/crouE/cumeE/cureuilE/difierE/duquerEffacerEffectifEffigieEffortEffrayerEffusionE/galiserE/garerE/jecterE/laborerE/largirE/lectronE/le/gantE/le/phantE/le-veE/ligibleE/litismeE/logeE/luciderE/luderEmballerEmbellirEmbryonE/meraudeE/missionEmmenerE/motionE/mouvoirEmpereurEmployerEmporterEmpriseE/mulsionEncadrerEnche-reEnclaveEncocheEndiguerEndosserEndroitEnduireE/nergieEnfanceEnfermerEnfouirEngagerEnginEngloberE/nigmeEnjamberEnjeuEnleverEnnemiEnnuyeuxEnrichirEnrobageEnseigneEntasserEntendreEntierEntourerEntraverE/nume/rerEnvahirEnviableEnvoyerEnzymeE/olienE/paissirE/pargneE/patantE/pauleE/picerieE/pide/mieE/pierE/pilogueE/pineE/pisodeE/pitapheE/poqueE/preuveE/prouverE/puisantE/querreE/quipeE/rigerE/rosionErreurE/ruptionEscalierEspadonEspe-ceEspie-gleEspoirEspritEsquiverEssayerEssenceEssieuEssorerEstimeEstomacEstradeE/tage-reE/talerE/tancheE/tatiqueE/teindreE/tendoirE/ternelE/thanolE/thiqueEthnieE/tirerE/tofferE/toileE/tonnantE/tourdirE/trangeE/troitE/tudeEuphorieE/valuerE/vasionE/ventailE/videnceE/viterE/volutifE/voquerExactExage/rerExaucerExcellerExcitantExclusifExcuseExe/cuterExempleExercerExhalerExhorterExigenceExilerExisterExotiqueExpe/dierExplorerExposerExprimerExquisExtensifExtraireExulterFableFabuleuxFacetteFacileFactureFaiblirFalaiseFameuxFamilleFarceurFarfeluFarineFaroucheFascinerFatalFatigueFauconFautifFaveurFavoriFe/brileFe/conderFe/de/rerFe/linFemmeFe/murFendoirFe/odalFermerFe/roceFerveurFestivalFeuilleFeutreFe/vrierFiascoFicelerFictifFide-leFigureFilatureFiletageFilie-reFilleulFilmerFilouFiltrerFinancerFinirFioleFirmeFissureFixerFlairerFlammeFlasqueFlatteurFle/auFle-cheFleurFlexionFloconFloreFluctuerFluideFluvialFolieFonderieFongibleFontaineForcerForgeronFormulerFortuneFossileFoudreFouge-reFouillerFoulureFourmiFragileFraiseFranchirFrapperFrayeurFre/gateFreinerFrelonFre/mirFre/ne/sieFre-reFriableFrictionFrissonFrivoleFroidFromageFrontalFrotterFruitFugitifFuiteFureurFurieuxFurtifFusionFuturGagnerGalaxieGalerieGambaderGarantirGardienGarnirGarrigueGazelleGazonGe/antGe/latineGe/luleGendarmeGe/ne/ralGe/nieGenouGentilGe/ologieGe/ome-treGe/raniumGermeGestuelGeyserGibierGiclerGirafeGivreGlaceGlaiveGlisserGlobeGloireGlorieuxGolfeurGommeGonflerGorgeGorilleGoudronGouffreGoulotGoupilleGourmandGoutteGraduelGraffitiGraineGrandGrappinGratuitGravirGrenatGriffureGrillerGrimperGrognerGronderGrotteGroupeGrugerGrutierGruye-reGue/pardGuerrierGuideGuimauveGuitareGustatifGymnasteGyrostatHabitudeHachoirHalteHameauHangarHannetonHaricotHarmonieHarponHasardHe/liumHe/matomeHerbeHe/rissonHermineHe/ronHe/siterHeureuxHibernerHibouHilarantHistoireHiverHomardHommageHomoge-neHonneurHonorerHonteuxHordeHorizonHorlogeHormoneHorribleHouleuxHousseHublotHuileuxHumainHumbleHumideHumourHurlerHydromelHygie-neHymneHypnoseIdylleIgnorerIguaneIlliciteIllusionImageImbiberImiterImmenseImmobileImmuableImpactImpe/rialImplorerImposerImprimerImputerIncarnerIncendieIncidentInclinerIncoloreIndexerIndiceInductifIne/ditIneptieInexactInfiniInfligerInformerInfusionInge/rerInhalerInhiberInjecterInjureInnocentInoculerInonderInscrireInsecteInsigneInsoliteInspirerInstinctInsulterIntactIntenseIntimeIntrigueIntuitifInutileInvasionInventerInviterInvoquerIroniqueIrradierIrre/elIrriterIsolerIvoireIvresseJaguarJaillirJambeJanvierJardinJaugerJauneJavelotJetableJetonJeudiJeunesseJoindreJoncherJonglerJoueurJouissifJournalJovialJoyauJoyeuxJubilerJugementJuniorJuponJuristeJusticeJuteuxJuve/nileKayakKimonoKiosqueLabelLabialLabourerLace/rerLactoseLaguneLaineLaisserLaitierLambeauLamelleLampeLanceurLangageLanterneLapinLargeurLarmeLaurierLavaboLavoirLectureLe/galLe/gerLe/gumeLessiveLettreLevierLexiqueLe/zardLiasseLibe/rerLibreLicenceLicorneLie-geLie-vreLigatureLigoterLigueLimerLimiteLimonadeLimpideLine/aireLingotLionceauLiquideLisie-reListerLithiumLitigeLittoralLivreurLogiqueLointainLoisirLombricLoterieLouerLourdLoutreLouveLoyalLubieLucideLucratifLueurLugubreLuisantLumie-reLunaireLundiLuronLutterLuxueuxMachineMagasinMagentaMagiqueMaigreMaillonMaintienMairieMaisonMajorerMalaxerMale/ficeMalheurMaliceMalletteMammouthMandaterManiableManquantManteauManuelMarathonMarbreMarchandMardiMaritimeMarqueurMarronMartelerMascotteMassifMate/rielMatie-reMatraqueMaudireMaussadeMauveMaximalMe/chantMe/connuMe/dailleMe/decinMe/diterMe/duseMeilleurMe/langeMe/lodieMembreMe/moireMenacerMenerMenhirMensongeMentorMercrediMe/riteMerleMessagerMesureMe/talMe/te/oreMe/thodeMe/tierMeubleMiaulerMicrobeMietteMignonMigrerMilieuMillionMimiqueMinceMine/ralMinimalMinorerMinuteMiracleMiroiterMissileMixteMobileModerneMoelleuxMondialMoniteurMonnaieMonotoneMonstreMontagneMonumentMoqueurMorceauMorsureMortierMoteurMotifMoucheMoufleMoulinMoussonMoutonMouvantMultipleMunitionMurailleMure-neMurmureMuscleMuse/umMusicienMutationMuterMutuelMyriadeMyrtilleMyste-reMythiqueNageurNappeNarquoisNarrerNatationNationNatureNaufrageNautiqueNavireNe/buleuxNectarNe/fasteNe/gationNe/gligerNe/gocierNeigeNerveuxNettoyerNeuroneNeutronNeveuNicheNickelNitrateNiveauNobleNocifNocturneNoirceurNoisetteNomadeNombreuxNommerNormatifNotableNotifierNotoireNourrirNouveauNovateurNovembreNoviceNuageNuancerNuireNuisibleNume/roNuptialNuqueNutritifObe/irObjectifObligerObscurObserverObstacleObtenirObturerOccasionOccuperOce/anOctobreOctroyerOctuplerOculaireOdeurOdorantOffenserOfficierOffrirOgiveOiseauOisillonOlfactifOlivierOmbrageOmettreOnctueuxOndulerOne/reuxOniriqueOpaleOpaqueOpe/rerOpinionOpportunOpprimerOpterOptiqueOrageuxOrangeOrbiteOrdonnerOreilleOrganeOrgueilOrificeOrnementOrqueOrtieOscillerOsmoseOssatureOtarieOuraganOursonOutilOutragerOuvrageOvationOxydeOxyge-neOzonePaisiblePalacePalmare-sPalourdePalperPanachePandaPangolinPaniquerPanneauPanoramaPantalonPapayePapierPapoterPapyrusParadoxeParcelleParesseParfumerParlerParoleParrainParsemerPartagerParureParvenirPassionPaste-quePaternelPatiencePatronPavillonPavoiserPayerPaysagePeignePeintrePelagePe/licanPellePelousePeluchePendulePe/ne/trerPe/niblePensifPe/nuriePe/pitePe/plumPerdrixPerforerPe/riodePermuterPerplexePersilPertePeserPe/talePetitPe/trirPeuplePharaonPhobiePhoquePhotonPhrasePhysiquePianoPicturalPie-cePierrePieuvrePilotePinceauPipettePiquerPiroguePiscinePistonPivoterPixelPizzaPlacardPlafondPlaisirPlanerPlaquePlastronPlateauPleurerPlexusPliagePlombPlongerPluiePlumagePochettePoe/siePoe-tePointePoirierPoissonPoivrePolairePolicierPollenPolygonePommadePompierPonctuelPonde/rerPoneyPortiquePositionPosse/derPosturePotagerPoteauPotionPoucePoulainPoumonPourprePoussinPouvoirPrairiePratiquePre/cieuxPre/direPre/fixePre/ludePre/nomPre/sencePre/textePre/voirPrimitifPrincePrisonPriverProble-meProce/derProdigeProfondProgre-sProieProjeterProloguePromenerPropreProspe-reProte/gerProuesseProverbePrudencePruneauPsychosePublicPuceronPuiserPulpePulsarPunaisePunitifPupitrePurifierPuzzlePyramideQuasarQuerelleQuestionQuie/tudeQuitterQuotientRacineRaconterRadieuxRagondinRaideurRaisinRalentirRallongeRamasserRapideRasageRatisserRavagerRavinRayonnerRe/actifRe/agirRe/aliserRe/animerRecevoirRe/citerRe/clamerRe/colterRecruterReculerRecyclerRe/digerRedouterRefaireRe/flexeRe/formerRefrainRefugeRe/galienRe/gionRe/glageRe/gulierRe/ite/rerRejeterRejouerRelatifReleverReliefRemarqueReme-deRemiseRemonterRemplirRemuerRenardRenfortReniflerRenoncerRentrerRenvoiReplierReporterRepriseReptileRequinRe/serveRe/sineuxRe/soudreRespectResterRe/sultatRe/tablirRetenirRe/ticuleRetomberRetracerRe/unionRe/ussirRevancheRevivreRe/volteRe/vulsifRichesseRideauRieurRigideRigolerRincerRiposterRisibleRisqueRituelRivalRivie-reRocheuxRomanceRompreRonceRondinRoseauRosierRotatifRotorRotuleRougeRouilleRouleauRoutineRoyaumeRubanRubisRucheRuelleRugueuxRuinerRuisseauRuserRustiqueRythmeSablerSaboterSabreSacocheSafariSagesseSaisirSaladeSaliveSalonSaluerSamediSanctionSanglierSarcasmeSardineSaturerSaugrenuSaumonSauterSauvageSavantSavonnerScalpelScandaleSce/le/ratSce/narioSceptreSche/maScienceScinderScoreScrutinSculpterSe/anceSe/cableSe/cherSecouerSe/cre/terSe/datifSe/duireSeigneurSe/jourSe/lectifSemaineSemblerSemenceSe/minalSe/nateurSensibleSentenceSe/parerSe/quenceSereinSergentSe/rieuxSerrureSe/rumServiceSe/sameSe/virSevrageSextupleSide/ralSie-cleSie/gerSifflerSigleSignalSilenceSiliciumSimpleSince-reSinistreSiphonSiropSismiqueSituerSkierSocialSocleSodiumSoigneuxSoldatSoleilSolitudeSolubleSombreSommeilSomnolerSondeSongeurSonnetteSonoreSorcierSortirSosieSottiseSoucieuxSoudureSouffleSouleverSoupapeSourceSoutirerSouvenirSpacieuxSpatialSpe/cialSphe-reSpiralStableStationSternumStimulusStipulerStrictStudieuxStupeurStylisteSublimeSubstratSubtilSubvenirSucce-sSucreSuffixeSugge/rerSuiveurSulfateSuperbeSupplierSurfaceSuricateSurmenerSurpriseSursautSurvieSuspectSyllabeSymboleSyme/trieSynapseSyntaxeSyste-meTabacTablierTactileTaillerTalentTalismanTalonnerTambourTamiserTangibleTapisTaquinerTarderTarifTartineTasseTatamiTatouageTaupeTaureauTaxerTe/moinTemporelTenailleTendreTeneurTenirTensionTerminerTerneTerribleTe/tineTexteThe-meThe/orieThe/rapieThoraxTibiaTie-deTimideTirelireTiroirTissuTitaneTitreTituberTobogganTole/rantTomateToniqueTonneauToponymeTorcheTordreTornadeTorpilleTorrentTorseTortueTotemToucherTournageTousserToxineTractionTraficTragiqueTrahirTrainTrancherTravailTre-fleTremperTre/sorTreuilTriageTribunalTricoterTrilogieTriompheTriplerTriturerTrivialTromboneTroncTropicalTroupeauTuileTulipeTumulteTunnelTurbineTuteurTutoyerTuyauTympanTyphonTypiqueTyranUbuesqueUltimeUltrasonUnanimeUnifierUnionUniqueUnitaireUniversUraniumUrbainUrticantUsageUsineUsuelUsureUtileUtopieVacarmeVaccinVagabondVagueVaillantVaincreVaisseauValableValiseVallonValveVampireVanilleVapeurVarierVaseuxVassalVasteVecteurVedetteVe/ge/talVe/hiculeVeinardVe/loceVendrediVe/ne/rerVengerVenimeuxVentouseVerdureVe/rinVernirVerrouVerserVertuVestonVe/te/ranVe/tusteVexantVexerViaducViandeVictoireVidangeVide/oVignetteVigueurVilainVillageVinaigreViolonVipe-reVirementVirtuoseVirusVisageViseurVisionVisqueuxVisuelVitalVitesseViticoleVitrineVivaceVivipareVocationVoguerVoileVoisinVoitureVolailleVolcanVoltigerVolumeVoraceVortexVoterVouloirVoyageVoyelleWagonXe/nonYachtZe-breZe/nithZesteZoologie",G6=null,l0e={};function d0e(r){return FA.logger.checkNormalize(),(0,DA.toUtf8String)(Array.prototype.filter.call((0,DA.toUtf8Bytes)(r.normalize("NFD").toLowerCase()),function(e){return e>=65&&e<=90||e>=97&&e<=123}))}function OTt(r){var e=[];return Array.prototype.forEach.call((0,DA.toUtf8Bytes)(r),function(t){t===47?(e.push(204),e.push(129)):t===45?(e.push(204),e.push(128)):e.push(t)}),(0,DA.toUtf8String)(e)}function u0e(r){if(G6==null&&(G6=NTt.replace(/([A-Z])/g," $1").toLowerCase().substring(1).split(" ").map(function(e){return OTt(e)}),G6.forEach(function(e,t){l0e[d0e(e)]=t}),FA.Wordlist.check(r)!=="0x51deb7ae009149dc61a6bd18a918eb7ac78d2775726c68e598b92d002519b045"))throw G6=null,new Error("BIP39 Wordlist for fr (French) FAILED")}var LTt=function(r){RTt(e,r);function e(){return r.call(this,"fr")||this}return e.prototype.getWord=function(t){return u0e(this),G6[t]},e.prototype.getWordIndex=function(t){return u0e(this),l0e[d0e(t)]},e}(FA.Wordlist),p0e=new LTt;r2.langFr=p0e;FA.Wordlist.register(p0e)});var g0e=O(n2=>{"use strict";x();T();var BTt=n2&&n2.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(n2,"__esModule",{value:!0});n2.langJa=void 0;var qTt=Wr(),Kl=rs(),UA=dh(),DTt=["AQRASRAGBAGUAIRAHBAghAURAdBAdcAnoAMEAFBAFCBKFBQRBSFBCXBCDBCHBGFBEQBpBBpQBIkBHNBeOBgFBVCBhBBhNBmOBmRBiHBiFBUFBZDBvFBsXBkFBlcBjYBwDBMBBTBBTRBWBBWXXaQXaRXQWXSRXCFXYBXpHXOQXHRXhRXuRXmXXbRXlXXwDXTRXrCXWQXWGaBWaKcaYgasFadQalmaMBacAKaRKKBKKXKKjKQRKDRKCYKCRKIDKeVKHcKlXKjHKrYNAHNBWNaRNKcNIBNIONmXNsXNdXNnBNMBNRBNrXNWDNWMNFOQABQAHQBrQXBQXFQaRQKXQKDQKOQKFQNBQNDQQgQCXQCDQGBQGDQGdQYXQpBQpQQpHQLXQHuQgBQhBQhCQuFQmXQiDQUFQZDQsFQdRQkHQbRQlOQlmQPDQjDQwXQMBQMDQcFQTBQTHQrDDXQDNFDGBDGQDGRDpFDhFDmXDZXDbRDMYDRdDTRDrXSAhSBCSBrSGQSEQSHBSVRShYShkSyQSuFSiBSdcSoESocSlmSMBSFBSFKSFNSFdSFcCByCaRCKcCSBCSRCCrCGbCEHCYXCpBCpQCIBCIHCeNCgBCgFCVECVcCmkCmwCZXCZFCdRClOClmClFCjDCjdCnXCwBCwXCcRCFQCFjGXhGNhGDEGDMGCDGCHGIFGgBGVXGVEGVRGmXGsXGdYGoSGbRGnXGwXGwDGWRGFNGFLGFOGFdGFkEABEBDEBFEXOEaBEKSENBENDEYXEIgEIkEgBEgQEgHEhFEudEuFEiBEiHEiFEZDEvBEsXEsFEdXEdREkFEbBEbRElFEPCEfkEFNYAEYAhYBNYQdYDXYSRYCEYYoYgQYgRYuRYmCYZTYdBYbEYlXYjQYRbYWRpKXpQopQnpSFpCXpIBpISphNpdBpdRpbRpcZpFBpFNpFDpFopFrLADLBuLXQLXcLaFLCXLEhLpBLpFLHXLeVLhILdHLdRLoDLbRLrXIABIBQIBCIBsIBoIBMIBRIXaIaRIKYIKRINBINuICDIGBIIDIIkIgRIxFIyQIiHIdRIbYIbRIlHIwRIMYIcRIRVITRIFBIFNIFQOABOAFOBQOaFONBONMOQFOSFOCDOGBOEQOpBOLXOIBOIFOgQOgFOyQOycOmXOsXOdIOkHOMEOMkOWWHBNHXNHXWHNXHDuHDRHSuHSRHHoHhkHmRHdRHkQHlcHlRHwBHWcgAEgAggAkgBNgBQgBEgXOgYcgLXgHjgyQgiBgsFgdagMYgWSgFQgFEVBTVXEVKBVKNVKDVKYVKRVNBVNYVDBVDxVSBVSRVCjVGNVLXVIFVhBVhcVsXVdRVbRVlRhBYhKYhDYhGShxWhmNhdahdkhbRhjohMXhTRxAXxXSxKBxNBxEQxeNxeQxhXxsFxdbxlHxjcxFBxFNxFQxFOxFoyNYyYoybcyMYuBQuBRuBruDMuCouHBudQukkuoBulVuMXuFEmCYmCRmpRmeDmiMmjdmTFmFQiADiBOiaRiKRiNBiNRiSFiGkiGFiERipRiLFiIFihYibHijBijEiMXiWBiFBiFCUBQUXFUaRUNDUNcUNRUNFUDBUSHUCDUGBUGFUEqULNULoUIRUeEUeYUgBUhFUuRUiFUsXUdFUkHUbBUjSUjYUwXUMDUcHURdUTBUrBUrXUrQZAFZXZZaRZKFZNBZQFZCXZGBZYdZpBZLDZIFZHXZHNZeQZVRZVFZmXZiBZvFZdFZkFZbHZbFZwXZcCZcRZRBvBQvBGvBLvBWvCovMYsAFsBDsaRsKFsNFsDrsSHsSFsCXsCRsEBsEHsEfspBsLBsLDsIgsIRseGsbRsFBsFQsFSdNBdSRdCVdGHdYDdHcdVbdySduDdsXdlRdwXdWYdWcdWRkBMkXOkaRkNIkNFkSFkCFkYBkpRkeNkgBkhVkmXksFklVkMBkWDkFNoBNoaQoaFoNBoNXoNaoNEoSRoEroYXoYCoYbopRopFomXojkowXorFbBEbEIbdBbjYlaRlDElMXlFDjKjjSRjGBjYBjYkjpRjLXjIBjOFjeVjbRjwBnXQnSHnpFnLXnINnMBnTRwXBwXNwXYwNFwQFwSBwGFwLXwLDweNwgBwuHwjDwnXMBXMpFMIBMeNMTHcaQcNBcDHcSFcCXcpBcLXcLDcgFcuFcnXcwXccDcTQcrFTQErXNrCHrpFrgFrbFrTHrFcWNYWNbWEHWMXWTR","ABGHABIJAEAVAYJQALZJAIaRAHNXAHdcAHbRAZJMAZJRAZTRAdVJAklmAbcNAjdRAMnRAMWYAWpRAWgRAFgBAFhBAFdcBNJBBNJDBQKBBQhcBQlmBDEJBYJkBYJTBpNBBpJFBIJBBIJDBIcABOKXBOEJBOVJBOiJBOZJBepBBeLXBeIFBegBBgGJBVJXBuocBiJRBUJQBlXVBlITBwNFBMYVBcqXBTlmBWNFBWiJBWnRBFGHBFwXXKGJXNJBXNZJXDTTXSHSXSVRXSlHXCJDXGQJXEhXXYQJXYbRXOfXXeNcXVJFXhQJXhEJXdTRXjdXXMhBXcQTXRGBXTEBXTnQXFCXXFOFXFgFaBaFaBNJaBCJaBpBaBwXaNJKaNJDaQIBaDpRaEPDaHMFamDJalEJaMZJaFaFaFNBaFQJaFLDaFVHKBCYKBEBKBHDKXaFKXGdKXEJKXpHKXIBKXZDKXwXKKwLKNacKNYJKNJoKNWcKDGdKDTRKChXKGaRKGhBKGbRKEBTKEaRKEPTKLMDKLWRKOHDKVJcKdBcKlIBKlOPKFSBKFEPKFpFNBNJNJBQNBGHNBEPNBHXNBgFNBVXNBZDNBsXNBwXNNaRNNJDNNJENNJkNDCJNDVDNGJRNJiDNZJNNsCJNJFNNFSBNFCXNFEPNFLXNFIFQJBFQCaRQJEQQLJDQLJFQIaRQOqXQHaFQHHQQVJXQVJDQhNJQmEIQZJFQsJXQJrFQWbRDJABDBYJDXNFDXCXDXLXDXZDDXsJDQqXDSJFDJCXDEPkDEqXDYmQDpSJDOCkDOGQDHEIDVJDDuDuDWEBDJFgSBNDSBSFSBGHSBIBSBTQSKVYSJQNSJQiSJCXSEqXSJYVSIiJSOMYSHAHSHaQSeCFSepQSegBSHdHSHrFShSJSJuHSJUFSkNRSrSrSWEBSFaHSJFQSFCXSFGDSFYXSFODSFgBSFVXSFhBSFxFSFkFSFbBSFMFCADdCJXBCXaFCXKFCXNFCXCXCXGBCXEJCXYBCXLDCXIBCXOPCXHXCXgBCXhBCXiBCXlDCXcHCJNBCJNFCDCJCDGBCDVXCDhBCDiDCDJdCCmNCpJFCIaRCOqXCHCHCHZJCViJCuCuCmddCJiFCdNBCdHhClEJCnUJCreSCWlgCWTRCFBFCFNBCFYBCFVFCFhFCFdSCFTBCFWDGBNBGBQFGJBCGBEqGBpBGBgQGNBEGNJYGNkOGNJRGDUFGJpQGHaBGJeNGJeEGVBlGVKjGiJDGvJHGsVJGkEBGMIJGWjNGFBFGFCXGFGBGFYXGFpBGFMFEASJEAWpEJNFECJVEIXSEIQJEOqXEOcFEeNcEHEJEHlFEJgFEhlmEmDJEmZJEiMBEUqXEoSREPBFEPXFEPKFEPSFEPEFEPpFEPLXEPIBEJPdEPcFEPTBEJnXEqlHEMpREFCXEFODEFcFYASJYJAFYBaBYBVXYXpFYDhBYCJBYJGFYYbRYeNcYJeVYiIJYZJcYvJgYvJRYJsXYsJFYMYMYreVpBNHpBEJpBwXpQxFpYEJpeNDpJeDpeSFpeCHpHUJpHbBpHcHpmUJpiiJpUJrpsJuplITpFaBpFQqpFGBpFEfpFYBpFpBpFLJpFIDpFgBpFVXpFyQpFuFpFlFpFjDpFnXpFwXpJFMpFTBLXCJLXEFLXhFLXUJLXbFLalmLNJBLSJQLCLCLGJBLLDJLHaFLeNFLeSHLeCXLepFLhaRLZsJLsJDLsJrLocaLlLlLMdbLFNBLFSBLFEHLFkFIBBFIBXFIBaQIBKXIBSFIBpHIBLXIBgBIBhBIBuHIBmXIBiFIBZXIBvFIBbFIBjQIBwXIBWFIKTRIQUJIDGFICjQIYSRIINXIJeCIVaRImEkIZJFIvJRIsJXIdCJIJoRIbBQIjYBIcqXITFVIreVIFKFIFSFIFCJIFGFIFLDIFIBIJFOIFgBIFVXIJFhIFxFIFmXIFdHIFbBIJFrIJFWOBGBOQfXOOKjOUqXOfXBOqXEOcqXORVJOFIBOFlDHBIOHXiFHNTRHCJXHIaRHHJDHHEJHVbRHZJYHbIBHRsJHRkDHWlmgBKFgBSBgBCDgBGHgBpBgBIBgBVJgBuBgBvFgKDTgQVXgDUJgGSJgOqXgmUMgZIJgTUJgWIEgFBFgFNBgFDJgFSFgFGBgFYXgJFOgFgQgFVXgFhBgFbHgJFWVJABVQKcVDgFVOfXVeDFVhaRVmGdViJYVMaRVFNHhBNDhBCXhBEqhBpFhBLXhNJBhSJRheVXhhKEhxlmhZIJhdBQhkIJhbMNhMUJhMZJxNJgxQUJxDEkxDdFxSJRxplmxeSBxeCXxeGFxeYXxepQxegBxWVcxFEQxFLXxFIBxFgBxFxDxFZtxFdcxFbBxFwXyDJXyDlcuASJuDJpuDIBuCpJuGSJuIJFueEFuZIJusJXudWEuoIBuWGJuFBcuFKEuFNFuFQFuFDJuFGJuFVJuFUtuFdHuFTBmBYJmNJYmQhkmLJDmLJomIdXmiJYmvJRmsJRmklmmMBymMuCmclmmcnQiJABiJBNiJBDiBSFiBCJiBEFiBYBiBpFiBLXiBTHiJNciDEfiCZJiECJiJEqiOkHiHKFieNDiHJQieQcieDHieSFieCXieGFieEFieIHiegFihUJixNoioNXiFaBiFKFiFNDiFEPiFYXitFOitFHiFgBiFVEiFmXiFitiFbBiFMFiFrFUCXQUIoQUIJcUHQJUeCEUHwXUUJDUUqXUdWcUcqXUrnQUFNDUFSHUFCFUFEfUFLXUtFOZBXOZXSBZXpFZXVXZEQJZEJkZpDJZOqXZeNHZeCDZUqXZFBQZFEHZFLXvBAFvBKFvBCXvBEPvBpHvBIDvBgFvBuHvQNJvFNFvFGBvFIBvJFcsXCDsXLXsXsXsXlFsXcHsQqXsJQFsEqXseIFsFEHsFjDdBxOdNpRdNJRdEJbdpJRdhZJdnSJdrjNdFNJdFQHdFhNkNJDkYaRkHNRkHSRkVbRkuMRkjSJkcqDoSJFoEiJoYZJoOfXohEBoMGQocqXbBAFbBXFbBaFbBNDbBGBbBLXbBTBbBWDbGJYbIJHbFQqbFpQlDgQlOrFlVJRjGEBjZJRnXvJnXbBnEfHnOPDngJRnxfXnUJWwXEJwNpJwDpBwEfXwrEBMDCJMDGHMDIJMLJDcQGDcQpHcqXccqNFcqCXcFCJRBSBRBGBRBEJRBpQTBNFTBQJTBpBTBVXTFABTFSBTFCFTFGBTFMDrXCJrXLDrDNJrEfHrFQJrFitWNjdWNTR","AKLJMANOPFASNJIAEJWXAYJNRAIIbRAIcdaAeEfDAgidRAdjNYAMYEJAMIbRAFNJBAFpJFBBIJYBDZJFBSiJhBGdEBBEJfXBEJqXBEJWRBpaUJBLXrXBIYJMBOcfXBeEfFBestXBjNJRBcDJOBFEqXXNvJRXDMBhXCJNYXOAWpXONJWXHDEBXeIaRXhYJDXZJSJXMDJOXcASJXFVJXaBQqXaBZJFasXdQaFSJQaFEfXaFpJHaFOqXKBNSRKXvJBKQJhXKEJQJKEJGFKINJBKIJjNKgJNSKVElmKVhEBKiJGFKlBgJKjnUJKwsJYKMFIJKFNJDKFIJFKFOfXNJBSFNJBCXNBpJFNJBvQNJBMBNJLJXNJOqXNJeCXNJeGFNdsJCNbTKFNwXUJQNFEPQDiJcQDMSJQSFpBQGMQJQJeOcQyCJEQUJEBQJFBrQFEJqDXDJFDJXpBDJXIMDGiJhDIJGRDJeYcDHrDJDVXgFDkAWpDkIgRDjDEqDMvJRDJFNFDJFIBSKclmSJQOFSJQVHSJQjDSJGJBSJGJFSECJoSHEJqSJHTBSJVJDSViJYSZJNBSJsJDSFSJFSFEfXSJFLXCBUJVCJXSBCJXpBCXVJXCJXsXCJXdFCJNJHCLIJgCHiJFCVNJMChCJhCUHEJCsJTRCJdYcCoQJCCFEfXCFIJgCFUJxCFstFGJBaQGJBIDGQJqXGYJNRGJHKFGeQqDGHEJFGJeLXGHIiJGHdBlGUJEBGkIJTGFQPDGJFEqEAGegEJIJBEJVJXEhQJTEiJNcEJZJFEJoEqEjDEqEPDsXEPGJBEPOqXEPeQFEfDiDEJfEFEfepQEfMiJEqXNBEqDIDEqeSFEqVJXEMvJRYXNJDYXEJHYKVJcYYJEBYJeEcYJUqXYFpJFYFstXpAZJMpBSJFpNBNFpeQPDpHLJDpHIJFpHgJFpeitFpHZJFpJFADpFSJFpJFCJpFOqXpFitBpJFZJLXIJFLIJgRLVNJWLVHJMLwNpJLFGJBLFLJDLFOqXLJFUJIBDJXIBGJBIJBYQIJBIBIBOqXIBcqDIEGJFILNJTIIJEBIOiJhIJeNBIJeIBIhiJIIWoTRIJFAHIJFpBIJFuHIFUtFIJFTHOSBYJOEcqXOHEJqOvBpFOkVJrObBVJOncqDOcNJkHhNJRHuHJuHdMhBgBUqXgBsJXgONJBgHNJDgHHJQgJeitgHsJXgJyNagyDJBgZJDrgsVJQgkEJNgkjSJgJFAHgFCJDgFZtMVJXNFVXQfXVJXDJVXoQJVQVJQVDEfXVDvJHVEqNFVeQfXVHpJFVHxfXVVJSRVVmaRVlIJOhCXVJhHjYkhxCJVhWVUJhWiJcxBNJIxeEqDxfXBFxcFEPxFSJFxFYJXyBDQJydaUJyFOPDuYCJYuLvJRuHLJXuZJLDuFOPDuFZJHuFcqXmKHJdmCQJcmOsVJiJAGFitLCFieOfXiestXiZJMEikNJQirXzFiFQqXiFIJFiFZJFiFvtFUHpJFUteIcUteOcUVCJkUhdHcUbEJEUJqXQUMNJhURjYkUFitFZDGJHZJIxDZJVJXZJFDJZJFpQvBNJBvBSJFvJxBrseQqDsVFVJdFLJDkEJNBkmNJYkFLJDoQJOPoGsJRoEAHBoEJfFbBQqDbBZJHbFVJXlFIJBjYIrXjeitcjjCEBjWMNBwXQfXwXOaFwDsJXwCJTRwrCZJMDNJQcDDJFcqDOPRYiJFTBsJXTQIJBTFEfXTFLJDrXEJFrEJXMrFZJFWEJdEWYTlm","ABCDEFACNJTRAMBDJdAcNJVXBLNJEBXSIdWRXErNJkXYDJMBXZJCJaXMNJaYKKVJKcKDEJqXKDcNJhKVJrNYKbgJVXKFVJSBNBYBwDNJeQfXNJeEqXNhGJWENJFiJRQlIJbEQJfXxDQqXcfXQFNDEJQFwXUJDYcnUJDJIBgQDIUJTRDJFEqDSJQSJFSJQIJFSOPeZtSJFZJHCJXQfXCTDEqFGJBSJFGJBOfXGJBcqXGJHNJDGJRLiJEJfXEqEJFEJPEFpBEJYJBZJFYBwXUJYiJMEBYJZJyTYTONJXpQMFXFpeGIDdpJFstXpJFcPDLBVSJRLHQJqXLJFZJFIJBNJDIJBUqXIBkFDJIJEJPTIYJGWRIJeQPDIJeEfHIJFsJXOqGDSFHXEJqXgJCsJCgGQJqXgdQYJEgFMFNBgJFcqDVJwXUJVJFZJchIgJCCxOEJqXxOwXUJyDJBVRuscisciJBiJBieUtqXiJFDJkiFsJXQUGEZJcUJFsJXZtXIrXZDZJDrZJFNJDZJFstXvJFQqXvJFCJEsJXQJqkhkNGBbDJdTRbYJMEBlDwXUJMEFiJFcfXNJDRcNJWMTBLJXC","BraFUtHBFSJFdbNBLJXVJQoYJNEBSJBEJfHSJHwXUJCJdAZJMGjaFVJXEJPNJBlEJfFiJFpFbFEJqIJBVJCrIBdHiJhOPFChvJVJZJNJWxGFNIFLueIBQJqUHEJfUFstOZJDrlXEASJRlXVJXSFwVJNJWD","QJEJNNJDQJEJIBSFQJEJxegBQJEJfHEPSJBmXEJFSJCDEJqXLXNJFQqXIcQsFNJFIFEJqXUJgFsJXIJBUJEJfHNFvJxEqXNJnXUJFQqD","IJBEJqXZJ"],FTt="~~AzB~X~a~KN~Q~D~S~C~G~E~Y~p~L~I~O~eH~g~V~hxyumi~~U~~Z~~v~~s~~dkoblPjfnqwMcRTr~W~~~F~~~~~Jt",rl=null;function f0e(r){return(0,qTt.hexlify)((0,Kl.toUtf8Bytes)(r))}var UTt="0xe3818de38284e3818f",WTt="0xe3818de38283e3818f";function m0e(r){if(rl!==null)return;rl=[];var e={};e[(0,Kl.toUtf8String)([227,130,154])]=!1,e[(0,Kl.toUtf8String)([227,130,153])]=!1,e[(0,Kl.toUtf8String)([227,130,133])]=(0,Kl.toUtf8String)([227,130,134]),e[(0,Kl.toUtf8String)([227,129,163])]=(0,Kl.toUtf8String)([227,129,164]),e[(0,Kl.toUtf8String)([227,130,131])]=(0,Kl.toUtf8String)([227,130,132]),e[(0,Kl.toUtf8String)([227,130,135])]=(0,Kl.toUtf8String)([227,130,136]);function t(w){for(var E="",k=0;kE?1:0}for(var a=3;a<=9;a++)for(var i=DTt[a-3],s=0;s{"use strict";x();T();var zTt=a2&&a2.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(a2,"__esModule",{value:!0});a2.langKo=void 0;var HTt=rs(),LW=dh(),VTt=["OYAa","ATAZoATBl3ATCTrATCl8ATDloATGg3ATHT8ATJT8ATJl3ATLlvATLn4ATMT8ATMX8ATMboATMgoAToLbAToMTATrHgATvHnAT3AnAT3JbAT3MTAT8DbAT8JTAT8LmAT8MYAT8MbAT#LnAUHT8AUHZvAUJXrAUJX8AULnrAXJnvAXLUoAXLgvAXMn6AXRg3AXrMbAX3JTAX3QbAYLn3AZLgvAZrSUAZvAcAZ8AaAZ8AbAZ8AnAZ8HnAZ8LgAZ8MYAZ8MgAZ8OnAaAboAaDTrAaFTrAaJTrAaJboAaLVoAaMXvAaOl8AaSeoAbAUoAbAg8AbAl4AbGnrAbMT8AbMXrAbMn4AbQb8AbSV8AbvRlAb8AUAb8AnAb8HgAb8JTAb8NTAb8RbAcGboAcLnvAcMT8AcMX8AcSToAcrAaAcrFnAc8AbAc8MgAfGgrAfHboAfJnvAfLV8AfLkoAfMT8AfMnoAfQb8AfScrAfSgrAgAZ8AgFl3AgGX8AgHZvAgHgrAgJXoAgJX8AgJboAgLZoAgLn4AgOX8AgoATAgoAnAgoCUAgoJgAgoLXAgoMYAgoSeAgrDUAgrJTAhrFnAhrLjAhrQgAjAgoAjJnrAkMX8AkOnoAlCTvAlCV8AlClvAlFg4AlFl6AlFn3AloSnAlrAXAlrAfAlrFUAlrFbAlrGgAlrOXAlvKnAlvMTAl3AbAl3MnAnATrAnAcrAnCZ3AnCl8AnDg8AnFboAnFl3AnHX4AnHbrAnHgrAnIl3AnJgvAnLXoAnLX4AnLbrAnLgrAnLhrAnMXoAnMgrAnOn3AnSbrAnSeoAnvLnAn3OnCTGgvCTSlvCTvAUCTvKnCTvNTCT3CZCT3GUCT3MTCT8HnCUCZrCULf8CULnvCU3HnCU3JUCY6NUCbDb8CbFZoCbLnrCboOTCboScCbrFnCbvLnCb8AgCb8HgCb$LnCkLfoClBn3CloDUDTHT8DTLl3DTSU8DTrAaDTrLXDTrLjDTrOYDTrOgDTvFXDTvFnDT3HUDT3LfDUCT9DUDT4DUFVoDUFV8DUFkoDUGgrDUJnrDULl8DUMT8DUMXrDUMX4DUMg8DUOUoDUOgvDUOg8DUSToDUSZ8DbDXoDbDgoDbGT8DbJn3DbLg3DbLn4DbMXrDbMg8DbOToDboJXGTClvGTDT8GTFZrGTLVoGTLlvGTLl3GTMg8GTOTvGTSlrGToCUGTrDgGTrJYGTrScGTtLnGTvAnGTvQgGUCZrGUDTvGUFZoGUHXrGULnvGUMT8GUoMgGXoLnGXrMXGXrMnGXvFnGYLnvGZOnvGZvOnGZ8LaGZ8LmGbAl3GbDYvGbDlrGbHX3GbJl4GbLV8GbLn3GbMn4GboJTGboRfGbvFUGb3GUGb4JnGgDX3GgFl$GgJlrGgLX6GgLZoGgLf8GgOXoGgrAgGgrJXGgrMYGgrScGgvATGgvOYGnAgoGnJgvGnLZoGnLg3GnLnrGnQn8GnSbrGnrMgHTClvHTDToHTFT3HTQT8HToJTHToJgHTrDUHTrMnHTvFYHTvRfHT8MnHT8SUHUAZ8HUBb4HUDTvHUoMYHXFl6HXJX6HXQlrHXrAUHXrMnHXrSbHXvFYHXvKXHX3LjHX3MeHYvQlHZrScHZvDbHbAcrHbFT3HbFl3HbJT8HbLTrHbMT8HbMXrHbMbrHbQb8HbSX3HboDbHboJTHbrFUHbrHgHbrJTHb8JTHb8MnHb8QgHgAlrHgDT3HgGgrHgHgrHgJTrHgJT8HgLX@HgLnrHgMT8HgMX8HgMboHgOnrHgQToHgRg3HgoHgHgrCbHgrFnHgrLVHgvAcHgvAfHnAloHnCTrHnCnvHnGTrHnGZ8HnGnvHnJT8HnLf8HnLkvHnMg8HnRTrITvFUITvFnJTAXrJTCV8JTFT3JTFT8JTFn4JTGgvJTHT8JTJT8JTJXvJTJl3JTJnvJTLX4JTLf8JTLhvJTMT8JTMXrJTMnrJTObrJTQT8JTSlvJT8DUJT8FkJT8MTJT8OXJT8OgJT8QUJT8RfJUHZoJXFT4JXFlrJXGZ8JXGnrJXLV8JXLgvJXMXoJXMX3JXNboJXPlvJXoJTJXoLkJXrAXJXrHUJXrJgJXvJTJXvOnJX4KnJYAl3JYJT8JYLhvJYQToJYrQXJY6NUJbAl3JbCZrJbDloJbGT8JbGgrJbJXvJbJboJbLf8JbLhrJbLl3JbMnvJbRg8JbSZ8JboDbJbrCZJbrSUJb3KnJb8LnJfRn8JgAXrJgCZrJgDTrJgGZrJgGZ8JgHToJgJT8JgJXoJgJgvJgLX4JgLZ3JgLZ8JgLn4JgMgrJgMn4JgOgvJgPX6JgRnvJgSToJgoCZJgoJbJgoMYJgrJXJgrJgJgrLjJg6MTJlCn3JlGgvJlJl8Jl4AnJl8FnJl8HgJnAToJnATrJnAbvJnDUoJnGnrJnJXrJnJXvJnLhvJnLnrJnLnvJnMToJnMT8JnMXvJnMX3JnMg8JnMlrJnMn4JnOX8JnST4JnSX3JnoAgJnoAnJnoJTJnoObJnrAbJnrAkJnrHnJnrJTJnrJYJnrOYJnrScJnvCUJnvFaJnvJgJnvJnJnvOYJnvQUJnvRUJn3FnJn3JTKnFl3KnLT6LTDlvLTMnoLTOn3LTRl3LTSb4LTSlrLToAnLToJgLTrAULTrAcLTrCULTrHgLTrMgLT3JnLULnrLUMX8LUoJgLVATrLVDTrLVLb8LVoJgLV8MgLV8RTLXDg3LXFlrLXrCnLXrLXLX3GTLX4GgLX4OYLZAXrLZAcrLZAgrLZAhrLZDXyLZDlrLZFbrLZFl3LZJX6LZJX8LZLc8LZLnrLZSU8LZoJTLZoJnLZrAgLZrAnLZrJYLZrLULZrMgLZrSkLZvAnLZvGULZvJeLZvOTLZ3FZLZ4JXLZ8STLZ8ScLaAT3LaAl3LaHT8LaJTrLaJT8LaJXrLaJgvLaJl4LaLVoLaMXrLaMXvLaMX8LbClvLbFToLbHlrLbJn4LbLZ3LbLhvLbMXrLbMnoLbvSULcLnrLc8HnLc8MTLdrMnLeAgoLeOgvLeOn3LfAl3LfLnvLfMl3LfOX8Lf8AnLf8JXLf8LXLgJTrLgJXrLgJl8LgMX8LgRZrLhCToLhrAbLhrFULhrJXLhvJYLjHTrLjHX4LjJX8LjLhrLjSX3LjSZ4LkFX4LkGZ8LkGgvLkJTrLkMXoLkSToLkSU8LkSZ8LkoOYLl3FfLl3MgLmAZrLmCbrLmGgrLmHboLmJnoLmJn3LmLfoLmLhrLmSToLnAX6LnAb6LnCZ3LnCb3LnDTvLnDb8LnFl3LnGnrLnHZvLnHgvLnITvLnJT8LnJX8LnJlvLnLf8LnLg6LnLhvLnLnoLnMXrLnMg8LnQlvLnSbrLnrAgLnrAnLnrDbLnrFkLnrJdLnrMULnrOYLnrSTLnvAnLnvDULnvHgLnvOYLnvOnLn3GgLn4DULn4JTLn4JnMTAZoMTAloMTDb8MTFT8MTJnoMTJnrMTLZrMTLhrMTLkvMTMX8MTRTrMToATMTrDnMTrOnMT3JnMT4MnMT8FUMT8FaMT8FlMT8GTMT8GbMT8GnMT8HnMT8JTMT8JbMT8OTMUCl8MUJTrMUJU8MUMX8MURTrMUSToMXAX6MXAb6MXCZoMXFXrMXHXrMXLgvMXOgoMXrAUMXrAnMXrHgMXrJYMXrJnMXrMTMXrMgMXrOYMXrSZMXrSgMXvDUMXvOTMX3JgMX3OTMX4JnMX8DbMX8FnMX8HbMX8HgMX8HnMX8LbMX8MnMX8OnMYAb8MYGboMYHTvMYHX4MYLTrMYLnvMYMToMYOgvMYRg3MYSTrMbAToMbAXrMbAl3MbAn8MbGZ8MbJT8MbJXrMbMXvMbMX8MbMnoMbrMUMb8AfMb8FbMb8FkMcJXoMeLnrMgFl3MgGTvMgGXoMgGgrMgGnrMgHT8MgHZrMgJnoMgLnrMgLnvMgMT8MgQUoMgrHnMgvAnMg8HgMg8JYMg8LfMloJnMl8ATMl8AXMl8JYMnAToMnAT4MnAZ8MnAl3MnAl4MnCl8MnHT8MnHg8MnJnoMnLZoMnLhrMnMXoMnMX3MnMnrMnOgvMnrFbMnrFfMnrFnMnrNTMnvJXNTMl8OTCT3OTFV8OTFn3OTHZvOTJXrOTOl3OT3ATOT3JUOT3LZOT3LeOT3MbOT8ATOT8AbOT8AgOT8MbOUCXvOUMX3OXHXvOXLl3OXrMUOXvDbOX6NUOX8JbOYFZoOYLbrOYLkoOYMg8OYSX3ObHTrObHT4ObJgrObLhrObMX3ObOX8Ob8FnOeAlrOeJT8OeJXrOeJnrOeLToOeMb8OgJXoOgLXoOgMnrOgOXrOgOloOgoAgOgoJbOgoMYOgoSTOg8AbOjLX4OjMnoOjSV8OnLVoOnrAgOn3DUPXQlrPXvFXPbvFTPdAT3PlFn3PnvFbQTLn4QToAgQToMTQULV8QURg8QUoJnQXCXvQbFbrQb8AaQb8AcQb8FbQb8MYQb8ScQeAlrQeLhrQjAn3QlFXoQloJgQloSnRTLnvRTrGURTrJTRUJZrRUoJlRUrQnRZrLmRZrMnRZrSnRZ8ATRZ8JbRZ8ScRbMT8RbST3RfGZrRfMX8RfMgrRfSZrRnAbrRnGT8RnvJgRnvLfRnvMTRn8AaSTClvSTJgrSTOXrSTRg3STRnvSToAcSToAfSToAnSToHnSToLjSToMTSTrAaSTrEUST3BYST8AgST8LmSUAZvSUAgrSUDT4SUDT8SUGgvSUJXoSUJXvSULTrSU8JTSU8LjSV8AnSV8JgSXFToSXLf8SYvAnSZrDUSZrMUSZrMnSZ8HgSZ8JTSZ8JgSZ8MYSZ8QUSaQUoSbCT3SbHToSbQYvSbSl4SboJnSbvFbSb8HbSb8JgSb8OTScGZrScHgrScJTvScMT8ScSToScoHbScrMTScvAnSeAZrSeAcrSeHboSeJUoSeLhrSeMT8SeMXrSe6JgSgHTrSkJnoSkLnvSk8CUSlFl3SlrSnSl8GnSmAboSmGT8SmJU8","ATLnDlATrAZoATrJX4ATrMT8ATrMX4ATrRTrATvDl8ATvJUoATvMl8AT3AToAT3MX8AT8CT3AT8DT8AT8HZrAT8HgoAUAgFnAUCTFnAXoMX8AXrAT8AXrGgvAXrJXvAXrOgoAXvLl3AZvAgoAZvFbrAZvJXoAZvJl8AZvJn3AZvMX8AZvSbrAZ8FZoAZ8LZ8AZ8MU8AZ8OTvAZ8SV8AZ8SX3AbAgFZAboJnoAbvGboAb8ATrAb8AZoAb8AgrAb8Al4Ab8Db8Ab8JnoAb8LX4Ab8LZrAb8LhrAb8MT8Ab8OUoAb8Qb8Ab8ST8AcrAUoAcrAc8AcrCZ3AcrFT3AcrFZrAcrJl4AcrJn3AcrMX3AcrOTvAc8AZ8Ac8MT8AfAcJXAgoFn4AgoGgvAgoGnrAgoLc8AgoMXoAgrLnrAkrSZ8AlFXCTAloHboAlrHbrAlrLhrAlrLkoAl3CZrAl3LUoAl3LZrAnrAl4AnrMT8An3HT4BT3IToBX4MnvBb!Ln$CTGXMnCToLZ4CTrHT8CT3JTrCT3RZrCT#GTvCU6GgvCU8Db8CU8GZrCU8HT8CboLl3CbrGgrCbrMU8Cb8DT3Cb8GnrCb8LX4Cb8MT8Cb8ObrCgrGgvCgrKX4Cl8FZoDTrAbvDTrDboDTrGT6DTrJgrDTrMX3DTrRZrDTrRg8DTvAVvDTvFZoDT3DT8DT3Ln3DT4HZrDT4MT8DT8AlrDT8MT8DUAkGbDUDbJnDYLnQlDbDUOYDbMTAnDbMXSnDboAT3DboFn4DboLnvDj6JTrGTCgFTGTGgFnGTJTMnGTLnPlGToJT8GTrCT3GTrLVoGTrLnvGTrMX3GTrMboGTvKl3GZClFnGZrDT3GZ8DTrGZ8FZ8GZ8MXvGZ8On8GZ8ST3GbCnQXGbMbFnGboFboGboJg3GboMXoGb3JTvGb3JboGb3Mn6Gb3Qb8GgDXLjGgMnAUGgrDloGgrHX4GgrSToGgvAXrGgvAZvGgvFbrGgvLl3GgvMnvGnDnLXGnrATrGnrMboGnuLl3HTATMnHTAgCnHTCTCTHTrGTvHTrHTvHTrJX8HTrLl8HTrMT8HTrMgoHTrOTrHTuOn3HTvAZrHTvDTvHTvGboHTvJU8HTvLl3HTvMXrHTvQb4HT4GT6HT4JT8HT4Jb#HT8Al3HT8GZrHT8GgrHT8HX4HT8Jb8HT8JnoHT8LTrHT8LgvHT8SToHT8SV8HUoJUoHUoJX8HUoLnrHXrLZoHXvAl3HX3LnrHX4FkvHX4LhrHX4MXoHX4OnoHZrAZ8HZrDb8HZrGZ8HZrJnrHZvGZ8HZvLnvHZ8JnvHZ8LhrHbCXJlHbMTAnHboJl4HbpLl3HbrJX8HbrLnrHbrMnvHbvRYrHgoSTrHgrFV8HgrGZ8HgrJXoHgrRnvHgvBb!HgvGTrHgvHX4HgvHn!HgvLTrHgvSU8HnDnLbHnFbJbHnvDn8Hn6GgvHn!BTvJTCTLnJTQgFnJTrAnvJTrLX4JTrOUoJTvFn3JTvLnrJTvNToJT3AgoJT3Jn4JT3LhvJT3ObrJT8AcrJT8Al3JT8JT8JT8JnoJT8LX4JT8LnrJT8MX3JT8Rg3JT8Sc8JUoBTvJU8AToJU8GZ8JU8GgvJU8JTrJU8JXrJU8JnrJU8LnvJU8ScvJXHnJlJXrGgvJXrJU8JXrLhrJXrMT8JXrMXrJXrQUoJXvCTvJXvGZ8JXvGgrJXvQT8JX8Ab8JX8DT8JX8GZ8JX8HZvJX8LnrJX8MT8JX8MXoJX8MnvJX8ST3JYGnCTJbAkGbJbCTAnJbLTAcJboDT3JboLb6JbrAnvJbrCn3JbrDl8JbrGboJbrIZoJbrJnvJbrMnvJbrQb4Jb8RZrJeAbAnJgJnFbJgScAnJgrATrJgvHZ8JgvMn4JlJlFbJlLiQXJlLjOnJlRbOlJlvNXoJlvRl3Jl4AcrJl8AUoJl8MnrJnFnMlJnHgGbJnoDT8JnoFV8JnoGgvJnoIT8JnoQToJnoRg3JnrCZ3JnrGgrJnrHTvJnrLf8JnrOX8JnvAT3JnvFZoJnvGT8JnvJl4JnvMT8JnvMX8JnvOXrJnvPX6JnvSX3JnvSZrJn3MT8Jn3MX8Jn3RTrLTATKnLTJnLTLTMXKnLTRTQlLToGb8LTrAZ8LTrCZ8LTrDb8LTrHT8LT3PX6LT4FZoLT$CTvLT$GgrLUvHX3LVoATrLVoAgoLVoJboLVoMX3LVoRg3LV8CZ3LV8FZoLV8GTvLXrDXoLXrFbrLXvAgvLXvFlrLXvLl3LXvRn6LX4Mb8LX8GT8LYCXMnLYrMnrLZoSTvLZrAZvLZrAloLZrFToLZrJXvLZrJboLZrJl4LZrLnrLZrMT8LZrOgvLZrRnvLZrST4LZvMX8LZvSlvLZ8AgoLZ8CT3LZ8JT8LZ8LV8LZ8LZoLZ8Lg8LZ8SV8LZ8SbrLZ$HT8LZ$Mn4La6CTvLbFbMnLbRYFTLbSnFZLboJT8LbrAT9LbrGb3LbrQb8LcrJX8LcrMXrLerHTvLerJbrLerNboLgrDb8LgrGZ8LgrHTrLgrMXrLgrSU8LgvJTrLgvLl3Lg6Ll3LhrLnrLhrMT8LhvAl4LiLnQXLkoAgrLkoJT8LkoJn4LlrSU8Ll3FZoLl3HTrLl3JX8Ll3JnoLl3LToLmLeFbLnDUFbLnLVAnLnrATrLnrAZoLnrAb8LnrAlrLnrGgvLnrJU8LnrLZrLnrLhrLnrMb8LnrOXrLnrSZ8LnvAb4LnvDTrLnvDl8LnvHTrLnvHbrLnvJT8LnvJU8LnvJbrLnvLhvLnvMX8LnvMb8LnvNnoLnvSU8Ln3Al3Ln4FZoLn4GT6Ln4JgvLn4LhrLn4MT8Ln4SToMToCZrMToJX8MToLX4MToLf8MToRg3MTrEloMTvGb6MT3BTrMT3Lb6MT8AcrMT8AgrMT8GZrMT8JnoMT8LnrMT8MX3MUOUAnMXAbFnMXoAloMXoJX8MXoLf8MXoLl8MXrAb8MXrDTvMXrGT8MXrGgrMXrHTrMXrLf8MXrMU8MXrOXvMXrQb8MXvGT8MXvHTrMXvLVoMX3AX3MX3Jn3MX3LhrMX3MX3MX4AlrMX4OboMX8GTvMX8GZrMX8GgrMX8JT8MX8JX8MX8LhrMX8MT8MYDUFbMYMgDbMbGnFfMbvLX4MbvLl3Mb8Mb8Mb8ST4MgGXCnMg8ATrMg8AgoMg8CZrMg8DTrMg8DboMg8HTrMg8JgrMg8LT8MloJXoMl8AhrMl8JT8MnLgAUMnoJXrMnoLX4MnoLhrMnoMT8MnrAl4MnrDb8MnrOTvMnrOgvMnrQb8MnrSU8MnvGgrMnvHZ8Mn3MToMn4DTrMn4LTrMn4Mg8NnBXAnOTFTFnOToAToOTrGgvOTrJX8OT3JXoOT6MTrOT8GgrOT8HTpOT8MToOUoHT8OUoJT8OUoLn3OXrAgoOXrDg8OXrMT8OXvSToOX6CTvOX8CZrOX8OgrOb6HgvOb8AToOb8MT8OcvLZ8OgvAlrOgvHTvOgvJTrOgvJnrOgvLZrOgvLn4OgvMT8OgvRTrOg8AZoOg8DbvOnrOXoOnvJn4OnvLhvOnvRTrOn3GgoOn3JnvOn6JbvOn8OTrPTGYFTPbBnFnPbGnDnPgDYQTPlrAnvPlrETvPlrLnvPlrMXvPlvFX4QTMTAnQTrJU8QYCnJlQYJlQlQbGTQbQb8JnrQb8LZoQb8LnvQb8MT8Qb8Ml8Qb8ST4QloAl4QloHZvQloJX8QloMn8QnJZOlRTrAZvRTrDTrRTvJn4RTvLhvRT4Jb8RZrAZrRZ8AkrRZ8JU8RZ8LV8RZ8LnvRbJlQXRg3GboRg3MnvRg8AZ8Rg8JboRg8Jl4RnLTCbRnvFl3RnvQb8SToAl4SToCZrSToFZoSToHXrSToJU8SToJgvSToJl4SToLhrSToMX3STrAlvSTrCT9STrCgrSTrGgrSTrHXrSTrHboSTrJnoSTrNboSTvLnrST4AZoST8Ab8ST8JT8SUoJn3SU6HZ#SU6JTvSU8Db8SU8HboSU8LgrSV8JT8SZrAcrSZrAl3SZrJT8SZrJnvSZrMT8SZvLUoSZ4FZoSZ8JnoSZ8RZrScoLnrScoMT8ScoMX8ScrAT4ScrAZ8ScrLZ8ScrLkvScvDb8ScvLf8ScvNToSgrFZrShvKnrSloHUoSloLnrSlrMXoSl8HgrSmrJUoSn3BX6","ATFlOn3ATLgrDYAT4MTAnAT8LTMnAYJnRTrAbGgJnrAbLV8LnAbvNTAnAeFbLg3AgOYMXoAlQbFboAnDboAfAnJgoJTBToDgAnBUJbAl3BboDUAnCTDlvLnCTFTrSnCYoQTLnDTwAbAnDUDTrSnDUHgHgrDX8LXFnDbJXAcrETvLTLnGTFTQbrGTMnGToGT3DUFbGUJlPX3GbQg8LnGboJbFnGb3GgAYGgAg8ScGgMbAXrGgvAbAnGnJTLnvGnvATFgHTDT6ATHTrDlJnHYLnMn8HZrSbJTHZ8LTFnHbFTJUoHgSeMT8HgrLjAnHgvAbAnHlFUrDlHnDgvAnHnHTFT3HnQTGnrJTAaMXvJTGbCn3JTOgrAnJXvAXMnJbMg8SnJbMnRg3Jb8LTMnJnAl3OnJnGYrQlJnJlQY3LTDlCn3LTJjLg3LTLgvFXLTMg3GTLV8HUOgLXFZLg3LXNXrMnLX8QXFnLX9AlMYLYLXPXrLZAbJU8LZDUJU8LZMXrSnLZ$AgFnLaPXrDULbFYrMnLbMn8LXLboJgJgLeFbLg3LgLZrSnLgOYAgoLhrRnJlLkCTrSnLkOnLhrLnFX%AYLnFZoJXLnHTvJbLnLloAbMTATLf8MTHgJn3MTMXrAXMT3MTFnMUITvFnMXFX%AYMXMXvFbMXrFTDbMYAcMX3MbLf8SnMb8JbFnMgMXrMTMgvAXFnMgvGgCmMnAloSnMnFnJTrOXvMXSnOX8HTMnObJT8ScObLZFl3ObMXCZoPTLgrQXPUFnoQXPU3RXJlPX3RkQXPbrJXQlPlrJbFnQUAhrDbQXGnCXvQYLnHlvQbLfLnvRTOgvJbRXJYrQlRYLnrQlRbLnrQlRlFT8JlRlFnrQXSTClCn3STHTrAnSTLZQlrSTMnGTrSToHgGbSTrGTDnSTvGXCnST3HgFbSU3HXAXSbAnJn3SbFT8LnScLfLnv","AT3JgJX8AT8FZoSnAT8JgFV8AT8LhrDbAZ8JT8DbAb8GgLhrAb8SkLnvAe8MT8SnAlMYJXLVAl3GYDTvAl3LfLnvBUDTvLl3CTOn3HTrCT3DUGgrCU8MT8AbCbFTrJUoCgrDb8MTDTLV8JX8DTLnLXQlDT8LZrSnDUQb8FZ8DUST4JnvDb8ScOUoDj6GbJl4GTLfCYMlGToAXvFnGboAXvLnGgAcrJn3GgvFnSToGnLf8JnvGn#HTDToHTLnFXJlHTvATFToHTvHTDToHTvMTAgoHT3STClvHT4AlFl6HT8HTDToHUoDgJTrHUoScMX3HbRZrMXoHboJg8LTHgDb8JTrHgMToLf8HgvLnLnoHnHn3HT4Hn6MgvAnJTJU8ScvJT3AaQT8JT8HTrAnJXrRg8AnJbAloMXoJbrATFToJbvMnoSnJgDb6GgvJgDb8MXoJgSX3JU8JguATFToJlPYLnQlJlQkDnLbJlQlFYJlJl8Lf8OTJnCTFnLbJnLTHXMnJnLXGXCnJnoFfRg3JnrMYRg3Jn3HgFl3KT8Dg8LnLTRlFnPTLTvPbLbvLVoSbrCZLXMY6HT3LXNU7DlrLXNXDTATLX8DX8LnLZDb8JU8LZMnoLhrLZSToJU8LZrLaLnrLZvJn3SnLZ8LhrSnLaJnoMT8LbFlrHTvLbrFTLnrLbvATLlvLb6OTFn3LcLnJZOlLeAT6Mn4LeJT3ObrLg6LXFlrLhrJg8LnLhvDlPX4LhvLfLnvLj6JTFT3LnFbrMXoLnQluCTvLnrQXCY6LnvLfLnvLnvMgLnvLnvSeLf8MTMbrJn3MT3JgST3MT8AnATrMT8LULnrMUMToCZrMUScvLf8MXoDT8SnMX6ATFToMX8AXMT8MX8FkMT8MX8HTrDUMX8ScoSnMYJT6CTvMgAcrMXoMg8SToAfMlvAXLg3MnFl3AnvOT3AnFl3OUoATHT8OU3RnLXrOXrOXrSnObPbvFn6Og8HgrSnOg8OX8DbPTvAgoJgPU3RYLnrPXrDnJZrPb8CTGgvPlrLTDlvPlvFUJnoQUvFXrQlQeMnoAl3QlrQlrSnRTFTrJUoSTDlLiLXSTFg6HT3STJgoMn4STrFTJTrSTrLZFl3ST4FnMXoSUrDlHUoScvHTvSnSfLkvMXo","AUoAcrMXoAZ8HboAg8AbOg6ATFgAg8AloMXoAl3AT8JTrAl8MX8MXoCT3SToJU8Cl8Db8MXoDT8HgrATrDboOT8MXoGTOTrATMnGT8LhrAZ8GnvFnGnQXHToGgvAcrHTvAXvLl3HbrAZoMXoHgBlFXLg3HgMnFXrSnHgrSb8JUoHn6HT8LgvITvATrJUoJUoLZrRnvJU8HT8Jb8JXvFX8QT8JXvLToJTrJYrQnGnQXJgrJnoATrJnoJU8ScvJnvMnvMXoLTCTLgrJXLTJlRTvQlLbRnJlQYvLbrMb8LnvLbvFn3RnoLdCVSTGZrLeSTvGXCnLg3MnoLn3MToLlrETvMT8SToAl3MbrDU6GTvMb8LX4LhrPlrLXGXCnSToLf8Rg3STrDb8LTrSTvLTHXMnSb3RYLnMnSgOg6ATFg","HUDlGnrQXrJTrHgLnrAcJYMb8DULc8LTvFgGnCk3Mg8JbAnLX4QYvFYHnMXrRUoJnGnvFnRlvFTJlQnoSTrBXHXrLYSUJgLfoMT8Se8DTrHbDb","AbDl8SToJU8An3RbAb8ST8DUSTrGnrAgoLbFU6Db8LTrMg8AaHT8Jb8ObDl8SToJU8Pb3RlvFYoJl"],GTt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789!@#$%^&*";function ZTt(r){return r>=40?r=r+168-40:r>=19&&(r=r+97-19),(0,HTt.toUtf8String)([225,(r>>6)+132,(r&63)+128])}var Ug=null;function v0e(r){if(Ug==null&&(Ug=[],VTt.forEach(function(e,t){t+=4;for(var n=0;n{"use strict";x();T();var KTt=i2&&i2.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(i2,"__esModule",{value:!0});i2.langIt=void 0;var BW=dh(),QTt="AbacoAbbaglioAbbinatoAbeteAbissoAbolireAbrasivoAbrogatoAccadereAccennoAccusatoAcetoneAchilleAcidoAcquaAcreAcrilicoAcrobataAcutoAdagioAddebitoAddomeAdeguatoAderireAdipeAdottareAdulareAffabileAffettoAffissoAffrantoAforismaAfosoAfricanoAgaveAgenteAgevoleAggancioAgireAgitareAgonismoAgricoloAgrumetoAguzzoAlabardaAlatoAlbatroAlberatoAlboAlbumeAlceAlcolicoAlettoneAlfaAlgebraAlianteAlibiAlimentoAllagatoAllegroAllievoAllodolaAllusivoAlmenoAlogenoAlpacaAlpestreAltalenaAlternoAlticcioAltroveAlunnoAlveoloAlzareAmalgamaAmanitaAmarenaAmbitoAmbratoAmebaAmericaAmetistaAmicoAmmassoAmmendaAmmirareAmmonitoAmoreAmpioAmpliareAmuletoAnacardoAnagrafeAnalistaAnarchiaAnatraAncaAncellaAncoraAndareAndreaAnelloAngeloAngolareAngustoAnimaAnnegareAnnidatoAnnoAnnuncioAnonimoAnticipoAnziApaticoAperturaApodeApparireAppetitoAppoggioApprodoAppuntoAprileArabicaArachideAragostaAraldicaArancioAraturaArazzoArbitroArchivioArditoArenileArgentoArgineArgutoAriaArmoniaArneseArredatoArringaArrostoArsenicoArsoArteficeArzilloAsciuttoAscoltoAsepsiAsetticoAsfaltoAsinoAsolaAspiratoAsproAssaggioAsseAssolutoAssurdoAstaAstenutoAsticeAstrattoAtavicoAteismoAtomicoAtonoAttesaAttivareAttornoAttritoAttualeAusilioAustriaAutistaAutonomoAutunnoAvanzatoAvereAvvenireAvvisoAvvolgereAzioneAzotoAzzimoAzzurroBabeleBaccanoBacinoBacoBadessaBadilataBagnatoBaitaBalconeBaldoBalenaBallataBalzanoBambinoBandireBaraondaBarbaroBarcaBaritonoBarlumeBaroccoBasilicoBassoBatostaBattutoBauleBavaBavosaBeccoBeffaBelgioBelvaBendaBenevoleBenignoBenzinaBereBerlinaBetaBibitaBiciBidoneBifidoBigaBilanciaBimboBinocoloBiologoBipedeBipolareBirbanteBirraBiscottoBisestoBisnonnoBisonteBisturiBizzarroBlandoBlattaBollitoBonificoBordoBoscoBotanicoBottinoBozzoloBraccioBradipoBramaBrancaBravuraBretellaBrevettoBrezzaBrigliaBrillanteBrindareBroccoloBrodoBronzinaBrulloBrunoBubboneBucaBudinoBuffoneBuioBulboBuonoBurloneBurrascaBussolaBustaCadettoCaducoCalamaroCalcoloCalesseCalibroCalmoCaloriaCambusaCamerataCamiciaCamminoCamolaCampaleCanapaCandelaCaneCaninoCanottoCantinaCapaceCapelloCapitoloCapogiroCapperoCapraCapsulaCarapaceCarcassaCardoCarismaCarovanaCarrettoCartolinaCasaccioCascataCasermaCasoCassoneCastelloCasualeCatastaCatenaCatrameCautoCavilloCedibileCedrataCefaloCelebreCellulareCenaCenoneCentesimoCeramicaCercareCertoCerumeCervelloCesoiaCespoCetoChelaChiaroChiccaChiedereChimeraChinaChirurgoChitarraCiaoCiclismoCifrareCignoCilindroCiottoloCircaCirrosiCitricoCittadinoCiuffoCivettaCivileClassicoClinicaCloroCoccoCodardoCodiceCoerenteCognomeCollareColmatoColoreColposoColtivatoColzaComaCometaCommandoComodoComputerComuneConcisoCondurreConfermaCongelareConiugeConnessoConoscereConsumoContinuoConvegnoCopertoCopioneCoppiaCopricapoCorazzaCordataCoricatoCorniceCorollaCorpoCorredoCorsiaCorteseCosmicoCostanteCotturaCovatoCratereCravattaCreatoCredereCremosoCrescitaCretaCricetoCrinaleCrisiCriticoCroceCronacaCrostataCrucialeCruscaCucireCuculoCuginoCullatoCupolaCuratoreCursoreCurvoCuscinoCustodeDadoDainoDalmataDamerinoDanielaDannosoDanzareDatatoDavantiDavveroDebuttoDecennioDecisoDeclinoDecolloDecretoDedicatoDefinitoDeformeDegnoDelegareDelfinoDelirioDeltaDemenzaDenotatoDentroDepositoDerapataDerivareDerogaDescrittoDesertoDesiderioDesumereDetersivoDevotoDiametroDicembreDiedroDifesoDiffusoDigerireDigitaleDiluvioDinamicoDinnanziDipintoDiplomaDipoloDiradareDireDirottoDirupoDisagioDiscretoDisfareDisgeloDispostoDistanzaDisumanoDitoDivanoDiveltoDividereDivoratoDobloneDocenteDoganaleDogmaDolceDomatoDomenicaDominareDondoloDonoDormireDoteDottoreDovutoDozzinaDragoDruidoDubbioDubitareDucaleDunaDuomoDupliceDuraturoEbanoEccessoEccoEclissiEconomiaEderaEdicolaEdileEditoriaEducareEgemoniaEgliEgoismoEgregioElaboratoElargireEleganteElencatoElettoElevareElficoElicaElmoElsaElusoEmanatoEmblemaEmessoEmiroEmotivoEmozioneEmpiricoEmuloEndemicoEnduroEnergiaEnfasiEnotecaEntrareEnzimaEpatiteEpilogoEpisodioEpocaleEppureEquatoreErarioErbaErbosoEredeEremitaErigereErmeticoEroeErosivoErranteEsagonoEsameEsanimeEsaudireEscaEsempioEsercitoEsibitoEsigenteEsistereEsitoEsofagoEsortatoEsosoEspansoEspressoEssenzaEssoEstesoEstimareEstoniaEstrosoEsultareEtilicoEtnicoEtruscoEttoEuclideoEuropaEvasoEvidenzaEvitatoEvolutoEvvivaFabbricaFaccendaFachiroFalcoFamigliaFanaleFanfaraFangoFantasmaFareFarfallaFarinosoFarmacoFasciaFastosoFasulloFaticareFatoFavolosoFebbreFecolaFedeFegatoFelpaFeltroFemminaFendereFenomenoFermentoFerroFertileFessuraFestivoFettaFeudoFiabaFiduciaFifaFiguratoFiloFinanzaFinestraFinireFioreFiscaleFisicoFiumeFlaconeFlamencoFleboFlemmaFloridoFluenteFluoroFobicoFocacciaFocosoFoderatoFoglioFolataFolcloreFolgoreFondenteFoneticoFoniaFontanaForbitoForchettaForestaFormicaFornaioForoFortezzaForzareFosfatoFossoFracassoFranaFrassinoFratelloFreccettaFrenataFrescoFrigoFrollinoFrondeFrugaleFruttaFucilataFucsiaFuggenteFulmineFulvoFumanteFumettoFumosoFuneFunzioneFuocoFurboFurgoneFuroreFusoFutileGabbianoGaffeGalateoGallinaGaloppoGamberoGammaGaranziaGarboGarofanoGarzoneGasdottoGasolioGastricoGattoGaudioGazeboGazzellaGecoGelatinaGelsoGemelloGemmatoGeneGenitoreGennaioGenotipoGergoGhepardoGhiaccioGhisaGialloGildaGineproGiocareGioielloGiornoGioveGiratoGironeGittataGiudizioGiuratoGiustoGlobuloGlutineGnomoGobbaGolfGomitoGommoneGonfioGonnaGovernoGracileGradoGraficoGrammoGrandeGrattareGravosoGraziaGrecaGreggeGrifoneGrigioGrinzaGrottaGruppoGuadagnoGuaioGuantoGuardareGufoGuidareIbernatoIconaIdenticoIdillioIdoloIdraIdricoIdrogenoIgieneIgnaroIgnoratoIlareIllesoIllogicoIlludereImballoImbevutoImboccoImbutoImmaneImmersoImmolatoImpaccoImpetoImpiegoImportoImprontaInalareInarcareInattivoIncantoIncendioInchinoIncisivoInclusoIncontroIncrocioIncuboIndagineIndiaIndoleIneditoInfattiInfilareInflittoIngaggioIngegnoIngleseIngordoIngrossoInnescoInodoreInoltrareInondatoInsanoInsettoInsiemeInsonniaInsulinaIntasatoInteroIntonacoIntuitoInumidireInvalidoInveceInvitoIperboleIpnoticoIpotesiIppicaIrideIrlandaIronicoIrrigatoIrrorareIsolatoIsotopoIstericoIstitutoIstriceItaliaIterareLabbroLabirintoLaccaLaceratoLacrimaLacunaLaddoveLagoLampoLancettaLanternaLardosoLargaLaringeLastraLatenzaLatinoLattugaLavagnaLavoroLegaleLeggeroLemboLentezzaLenzaLeoneLepreLesivoLessatoLestoLetteraleLevaLevigatoLiberoLidoLievitoLillaLimaturaLimitareLimpidoLineareLinguaLiquidoLiraLiricaLiscaLiteLitigioLivreaLocandaLodeLogicaLombareLondraLongevoLoquaceLorenzoLotoLotteriaLuceLucidatoLumacaLuminosoLungoLupoLuppoloLusingaLussoLuttoMacabroMacchinaMaceroMacinatoMadamaMagicoMagliaMagneteMagroMaiolicaMalafedeMalgradoMalintesoMalsanoMaltoMalumoreManaManciaMandorlaMangiareManifestoMannaroManovraMansardaMantideManubrioMappaMaratonaMarcireMarettaMarmoMarsupioMascheraMassaiaMastinoMaterassoMatricolaMattoneMaturoMazurcaMeandroMeccanicoMecenateMedesimoMeditareMegaMelassaMelisMelodiaMeningeMenoMensolaMercurioMerendaMerloMeschinoMeseMessereMestoloMetalloMetodoMettereMiagolareMicaMicelioMicheleMicroboMidolloMieleMiglioreMilanoMiliteMimosaMineraleMiniMinoreMirinoMirtilloMiscelaMissivaMistoMisurareMitezzaMitigareMitraMittenteMnemonicoModelloModificaModuloMoganoMogioMoleMolossoMonasteroMoncoMondinaMonetarioMonileMonotonoMonsoneMontatoMonvisoMoraMordereMorsicatoMostroMotivatoMotosegaMottoMovenzaMovimentoMozzoMuccaMucosaMuffaMughettoMugnaioMulattoMulinelloMultiploMummiaMuntoMuovereMuraleMusaMuscoloMusicaMutevoleMutoNababboNaftaNanometroNarcisoNariceNarratoNascereNastrareNaturaleNauticaNaviglioNebulosaNecrosiNegativoNegozioNemmenoNeofitaNerettoNervoNessunoNettunoNeutraleNeveNevroticoNicchiaNinfaNitidoNobileNocivoNodoNomeNominaNordicoNormaleNorvegeseNostranoNotareNotiziaNotturnoNovellaNucleoNullaNumeroNuovoNutrireNuvolaNuzialeOasiObbedireObbligoObeliscoOblioOboloObsoletoOccasioneOcchioOccidenteOccorrereOccultareOcraOculatoOdiernoOdorareOffertaOffrireOffuscatoOggettoOggiOgnunoOlandeseOlfattoOliatoOlivaOlogrammaOltreOmaggioOmbelicoOmbraOmegaOmissioneOndosoOnereOniceOnnivoroOnorevoleOntaOperatoOpinioneOppostoOracoloOrafoOrdineOrecchinoOreficeOrfanoOrganicoOrigineOrizzonteOrmaOrmeggioOrnativoOrologioOrrendoOrribileOrtensiaOrticaOrzataOrzoOsareOscurareOsmosiOspedaleOspiteOssaOssidareOstacoloOsteOtiteOtreOttagonoOttimoOttobreOvaleOvestOvinoOviparoOvocitoOvunqueOvviareOzioPacchettoPacePacificoPadellaPadronePaesePagaPaginaPalazzinaPalesarePallidoPaloPaludePandoroPannelloPaoloPaonazzoPapricaParabolaParcellaParerePargoloPariParlatoParolaPartireParvenzaParzialePassivoPasticcaPataccaPatologiaPattumePavonePeccatoPedalarePedonalePeggioPelosoPenarePendicePenisolaPennutoPenombraPensarePentolaPepePepitaPerbenePercorsoPerdonatoPerforarePergamenaPeriodoPermessoPernoPerplessoPersuasoPertugioPervasoPesatorePesistaPesoPestiferoPetaloPettinePetulantePezzoPiacerePiantaPiattinoPiccinoPicozzaPiegaPietraPifferoPigiamaPigolioPigroPilaPiliferoPillolaPilotaPimpantePinetaPinnaPinoloPioggiaPiomboPiramidePireticoPiritePirolisiPitonePizzicoPlaceboPlanarePlasmaPlatanoPlenarioPochezzaPoderosoPodismoPoesiaPoggiarePolentaPoligonoPollicePolmonitePolpettaPolsoPoltronaPolverePomicePomodoroPontePopolosoPorfidoPorosoPorporaPorrePortataPosaPositivoPossessoPostulatoPotassioPoterePranzoPrassiPraticaPreclusoPredicaPrefissoPregiatoPrelievoPremerePrenotarePreparatoPresenzaPretestoPrevalsoPrimaPrincipePrivatoProblemaProcuraProdurreProfumoProgettoProlungaPromessaPronomePropostaProrogaProtesoProvaPrudentePrugnaPruritoPsichePubblicoPudicaPugilatoPugnoPulcePulitoPulsantePuntarePupazzoPupillaPuroQuadroQualcosaQuasiQuerelaQuotaRaccoltoRaddoppioRadicaleRadunatoRafficaRagazzoRagioneRagnoRamarroRamingoRamoRandagioRantolareRapatoRapinaRappresoRasaturaRaschiatoRasenteRassegnaRastrelloRataRavvedutoRealeRecepireRecintoReclutaReconditoRecuperoRedditoRedimereRegalatoRegistroRegolaRegressoRelazioneRemareRemotoRennaReplicaReprimereReputareResaResidenteResponsoRestauroReteRetinaRetoricaRettificaRevocatoRiassuntoRibadireRibelleRibrezzoRicaricaRiccoRicevereRiciclatoRicordoRicredutoRidicoloRidurreRifasareRiflessoRiformaRifugioRigareRigettatoRighelloRilassatoRilevatoRimanereRimbalzoRimedioRimorchioRinascitaRincaroRinforzoRinnovoRinomatoRinsavitoRintoccoRinunciaRinvenireRiparatoRipetutoRipienoRiportareRipresaRipulireRisataRischioRiservaRisibileRisoRispettoRistoroRisultatoRisvoltoRitardoRitegnoRitmicoRitrovoRiunioneRivaRiversoRivincitaRivoltoRizomaRobaRoboticoRobustoRocciaRocoRodaggioRodereRoditoreRogitoRollioRomanticoRompereRonzioRosolareRospoRotanteRotondoRotulaRovescioRubizzoRubricaRugaRullinoRumineRumorosoRuoloRupeRussareRusticoSabatoSabbiareSabotatoSagomaSalassoSaldaturaSalgemmaSalivareSalmoneSaloneSaltareSalutoSalvoSapereSapidoSaporitoSaracenoSarcasmoSartoSassosoSatelliteSatiraSatolloSaturnoSavanaSavioSaziatoSbadiglioSbalzoSbancatoSbarraSbattereSbavareSbendareSbirciareSbloccatoSbocciatoSbrinareSbruffoneSbuffareScabrosoScadenzaScalaScambiareScandaloScapolaScarsoScatenareScavatoSceltoScenicoScettroSchedaSchienaSciarpaScienzaScindereScippoSciroppoScivoloSclerareScodellaScolpitoScompartoSconfortoScoprireScortaScossoneScozzeseScribaScrollareScrutinioScuderiaScultoreScuolaScuroScusareSdebitareSdoganareSeccaturaSecondoSedanoSeggiolaSegnalatoSegregatoSeguitoSelciatoSelettivoSellaSelvaggioSemaforoSembrareSemeSeminatoSempreSensoSentireSepoltoSequenzaSerataSerbatoSerenoSerioSerpenteSerraglioServireSestinaSetolaSettimanaSfaceloSfaldareSfamatoSfarzosoSfaticatoSferaSfidaSfilatoSfingeSfocatoSfoderareSfogoSfoltireSforzatoSfrattoSfruttatoSfuggitoSfumareSfusoSgabelloSgarbatoSgonfiareSgorbioSgrassatoSguardoSibiloSiccomeSierraSiglaSignoreSilenzioSillabaSimboloSimpaticoSimulatoSinfoniaSingoloSinistroSinoSintesiSinusoideSiparioSismaSistoleSituatoSlittaSlogaturaSlovenoSmarritoSmemoratoSmentitoSmeraldoSmilzoSmontareSmottatoSmussatoSnellireSnervatoSnodoSobbalzoSobrioSoccorsoSocialeSodaleSoffittoSognoSoldatoSolenneSolidoSollazzoSoloSolubileSolventeSomaticoSommaSondaSonettoSonniferoSopireSoppesoSopraSorgereSorpassoSorrisoSorsoSorteggioSorvolatoSospiroSostaSottileSpadaSpallaSpargereSpatolaSpaventoSpazzolaSpecieSpedireSpegnereSpelaturaSperanzaSpessoreSpettraleSpezzatoSpiaSpigolosoSpillatoSpinosoSpiraleSplendidoSportivoSposoSprangaSprecareSpronatoSpruzzoSpuntinoSquilloSradicareSrotolatoStabileStaccoStaffaStagnareStampatoStantioStarnutoStaseraStatutoSteloSteppaSterzoStilettoStimaStirpeStivaleStizzosoStonatoStoricoStrappoStregatoStriduloStrozzareStruttoStuccareStufoStupendoSubentroSuccosoSudoreSuggeritoSugoSultanoSuonareSuperboSupportoSurgelatoSurrogatoSussurroSuturaSvagareSvedeseSveglioSvelareSvenutoSveziaSviluppoSvistaSvizzeraSvoltaSvuotareTabaccoTabulatoTacciareTaciturnoTaleTalismanoTamponeTanninoTaraTardivoTargatoTariffaTarpareTartarugaTastoTatticoTavernaTavolataTazzaTecaTecnicoTelefonoTemerarioTempoTemutoTendoneTeneroTensioneTentacoloTeoremaTermeTerrazzoTerzettoTesiTesseratoTestatoTetroTettoiaTifareTigellaTimbroTintoTipicoTipografoTiraggioTiroTitanioTitoloTitubanteTizioTizzoneToccareTollerareToltoTombolaTomoTonfoTonsillaTopazioTopologiaToppaTorbaTornareTorroneTortoraToscanoTossireTostaturaTotanoTraboccoTracheaTrafilaTragediaTralcioTramontoTransitoTrapanoTrarreTraslocoTrattatoTraveTrecciaTremolioTrespoloTributoTrichecoTrifoglioTrilloTrinceaTrioTristezzaTrituratoTrivellaTrombaTronoTroppoTrottolaTrovareTruccatoTubaturaTuffatoTulipanoTumultoTunisiaTurbareTurchinoTutaTutelaUbicatoUccelloUccisoreUdireUditivoUffaUfficioUgualeUlisseUltimatoUmanoUmileUmorismoUncinettoUngereUnghereseUnicornoUnificatoUnisonoUnitarioUnteUovoUpupaUraganoUrgenzaUrloUsanzaUsatoUscitoUsignoloUsuraioUtensileUtilizzoUtopiaVacanteVaccinatoVagabondoVagliatoValangaValgoValicoVallettaValorosoValutareValvolaVampataVangareVanitosoVanoVantaggioVanveraVaporeVaranoVarcatoVarianteVascaVedettaVedovaVedutoVegetaleVeicoloVelcroVelinaVellutoVeloceVenatoVendemmiaVentoVeraceVerbaleVergognaVerificaVeroVerrucaVerticaleVescicaVessilloVestaleVeteranoVetrinaVetustoViandanteVibranteVicendaVichingoVicinanzaVidimareVigiliaVignetoVigoreVileVillanoViminiVincitoreViolaViperaVirgolaVirologoVirulentoViscosoVisioneVispoVissutoVisuraVitaVitelloVittimaVivandaVividoViziareVoceVogaVolatileVolereVolpeVoragineVulcanoZampognaZannaZappatoZatteraZavorraZefiroZelanteZeloZenzeroZerbinoZibettoZincoZirconeZittoZollaZoticoZuccheroZufoloZuluZuppa",Z6=null;function x0e(r){if(Z6==null&&(Z6=QTt.replace(/([A-Z])/g," $1").toLowerCase().substring(1).split(" "),BW.Wordlist.check(r)!=="0x5c1362d88fd4cf614a96f3234941d29f7d37c08c5292fde03bf62c2db6ff7620"))throw Z6=null,new Error("BIP39 Wordlist for it (Italian) FAILED")}var XTt=function(r){KTt(e,r);function e(){return r.call(this,"it")||this}return e.prototype.getWord=function(t){return x0e(this),Z6[t]},e.prototype.getWordIndex=function(t){return x0e(this),Z6.indexOf(t)},e}(BW.Wordlist),T0e=new XTt;i2.langIt=T0e;BW.Wordlist.register(T0e)});var S0e=O(p0=>{"use strict";x();T();var YTt=p0&&p0.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(p0,"__esModule",{value:!0});p0.langZhTw=p0.langZhCn=void 0;var $Tt=rs(),J6=dh(),qW="}aE#4A=Yv&co#4N#6G=cJ&SM#66|/Z#4t&kn~46#4K~4q%b9=IR#7l,mB#7W_X2*dl}Uo~7s}Uf&Iw#9c&cw~6O&H6&wx&IG%v5=IQ~8a&Pv#47$PR&50%Ko&QM&3l#5f,D9#4L|/H&tQ;v0~6n]nN?";function C0e(r){if(s2[r.locale]===null){s2[r.locale]=[];for(var e=0,t=0;t<2048;t++){var n=r_t.indexOf(qW[t*3]),a=[228+(n>>2),128+DW.indexOf(qW[t*3+1]),128+DW.indexOf(qW[t*3+2])];if(r.locale==="zh_tw")for(var i=n%4,s=i;s<3;s++)a[s]=DW.indexOf(e_t[e++])+(s==0?228:128);s2[r.locale].push((0,$Tt.toUtf8String)(a))}if(J6.Wordlist.check(r)!==t_t[r.locale])throw s2[r.locale]=null,new Error("BIP39 Wordlist for "+r.locale+" (Chinese) FAILED")}}var E0e=function(r){YTt(e,r);function e(t){return r.call(this,"zh_"+t)||this}return e.prototype.getWord=function(t){return C0e(this),s2[this.locale][t]},e.prototype.getWordIndex=function(t){return C0e(this),s2[this.locale].indexOf(t)},e.prototype.split=function(t){return t=t.replace(/(?:\u3000| )+/g,""),t.split("")},e}(J6.Wordlist),FW=new E0e("cn");p0.langZhCn=FW;J6.Wordlist.register(FW);J6.Wordlist.register(FW,"zh");var k0e=new E0e("tw");p0.langZhTw=k0e;J6.Wordlist.register(k0e)});var A0e=O(WA=>{"use strict";x();T();Object.defineProperty(WA,"__esModule",{value:!0});WA.wordlists=void 0;var n_t=e0e(),a_t=n0e(),i_t=c0e(),s_t=h0e(),o_t=g0e(),c_t=w0e(),u_t=_0e(),UW=S0e();WA.wordlists={cz:n_t.langCz,en:a_t.langEn,es:i_t.langEs,fr:s_t.langFr,it:u_t.langIt,ja:o_t.langJa,ko:c_t.langKo,zh:UW.langZhCn,zh_cn:UW.langZhCn,zh_tw:UW.langZhTw}});var WW=O(h0=>{"use strict";x();T();Object.defineProperty(h0,"__esModule",{value:!0});h0.wordlists=h0.Wordlist=h0.logger=void 0;var M0e=dh();Object.defineProperty(h0,"logger",{enumerable:!0,get:function(){return M0e.logger}});Object.defineProperty(h0,"Wordlist",{enumerable:!0,get:function(){return M0e.Wordlist}});var l_t=A0e();Object.defineProperty(h0,"wordlists",{enumerable:!0,get:function(){return l_t.wordlists}})});var I0e=O(jA=>{"use strict";x();T();Object.defineProperty(jA,"__esModule",{value:!0});jA.version=void 0;jA.version="hdnode/5.7.0"});var HA=O(Bo=>{"use strict";x();T();Object.defineProperty(Bo,"__esModule",{value:!0});Bo.getAccountPath=Bo.isValidMnemonic=Bo.entropyToMnemonic=Bo.mnemonicToEntropy=Bo.mnemonicToSeed=Bo.HDNode=Bo.defaultPath=void 0;var O0e=MA(),li=Wr(),L0e=es(),K6=rs(),d_t=OA(),Lo=Xa(),P0e=L6(),ph=Dg(),p_t=If(),R0e=WW(),h_t=ur(),f_t=I0e(),Q6=new h_t.Logger(f_t.version),m_t=L0e.BigNumber.from("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),y_t=(0,K6.toUtf8Bytes)("Bitcoin seed"),c2=2147483648;function B0e(r){return(1<=256)throw new Error("Depth too large!");return N0e((0,li.concat)([this.privateKey!=null?"0x0488ADE4":"0x0488B21E",(0,li.hexlify)(this.depth),this.parentFingerprint,(0,li.hexZeroPad)((0,li.hexlify)(this.index),4),this.chainCode,this.privateKey!=null?(0,li.concat)(["0x00",this.privateKey]):this.publicKey]))},enumerable:!1,configurable:!0}),r.prototype.neuter=function(){return new r(o2,null,this.publicKey,this.parentFingerprint,this.chainCode,this.index,this.depth,this.path)},r.prototype._derive=function(e){if(e>4294967295)throw new Error("invalid index - "+String(e));var t=this.path;t&&(t+="/"+(e&~c2));var n=new Uint8Array(37);if(e&c2){if(!this.privateKey)throw new Error("cannot derive child of neutered node");n.set((0,li.arrayify)(this.privateKey),1),t&&(t+="'")}else n.set((0,li.arrayify)(this.publicKey));for(var a=24;a>=0;a-=8)n[33+(a>>3)]=e>>24-a&255;var i=(0,li.arrayify)((0,ph.computeHmac)(ph.SupportedAlgorithm.sha512,this.chainCode,n)),s=i.slice(0,32),c=i.slice(32),l=null,d=null;if(this.privateKey)l=zA(L0e.BigNumber.from(s).add(this.privateKey).mod(m_t));else{var f=new P0e.SigningKey((0,li.hexlify)(s));d=f._addPoint(this.publicKey)}var w=t,E=this.mnemonic;return E&&(w=Object.freeze({phrase:E.phrase,path:t,locale:E.locale||"en"})),new r(o2,l,d,this.fingerprint,zA(c),e,this.depth+1,w)},r.prototype.derivePath=function(e){var t=e.split("/");if(t.length===0||t[0]==="m"&&this.depth!==0)throw new Error("invalid path - "+e);t[0]==="m"&&t.shift();for(var n=this,a=0;a=c2)throw new Error("invalid path index - "+i);n=n._derive(c2+s)}else if(i.match(/^[0-9]+$/)){var s=parseInt(i);if(s>=c2)throw new Error("invalid path index - "+i);n=n._derive(s)}else throw new Error("invalid path component - "+i)}return n},r._fromSeed=function(e,t){var n=(0,li.arrayify)(e);if(n.length<16||n.length>64)throw new Error("invalid seed");var a=(0,li.arrayify)((0,ph.computeHmac)(ph.SupportedAlgorithm.sha512,y_t,n));return new r(o2,zA(a.slice(0,32)),null,"0x00000000",zA(a.slice(32)),0,0,t)},r.fromMnemonic=function(e,t,n){return n=jW(n),e=D0e(zW(e,n),n),r._fromSeed(q0e(e,t),{phrase:e,path:"m",locale:n.locale})},r.fromSeed=function(e){return r._fromSeed(e,null)},r.fromExtendedKey=function(e){var t=O0e.Base58.decode(e);(t.length!==82||N0e(t.slice(0,78))!==e)&&Q6.throwArgumentError("invalid extended key","extendedKey","[REDACTED]");var n=t[4],a=(0,li.hexlify)(t.slice(5,9)),i=parseInt((0,li.hexlify)(t.slice(9,13)).substring(2),16),s=(0,li.hexlify)(t.slice(13,45)),c=t.slice(45,78);switch((0,li.hexlify)(t.slice(0,4))){case"0x0488b21e":case"0x043587cf":return new r(o2,null,(0,li.hexlify)(c),a,s,i,n,null);case"0x0488ade4":case"0x04358394 ":if(c[0]!==0)break;return new r(o2,(0,li.hexlify)(c.slice(1)),null,a,s,i,n,null)}return Q6.throwArgumentError("invalid extended key","extendedKey","[REDACTED]")},r}();Bo.HDNode=v_t;function q0e(r,e){e||(e="");var t=(0,K6.toUtf8Bytes)("mnemonic"+e,K6.UnicodeNormalizationForm.NFKD);return(0,d_t.pbkdf2)((0,K6.toUtf8Bytes)(r,K6.UnicodeNormalizationForm.NFKD),t,2048,64,"sha512")}Bo.mnemonicToSeed=q0e;function zW(r,e){e=jW(e),Q6.checkNormalize();var t=e.split(r);if(t.length%3!==0)throw new Error("invalid mnemonic");for(var n=(0,li.arrayify)(new Uint8Array(Math.ceil(11*t.length/8))),a=0,i=0;i>3]|=1<<7-a%8),a++}var l=32*t.length/3,d=t.length/3,f=B0e(d),w=(0,li.arrayify)((0,ph.sha256)(n.slice(0,l/8)))[0]&f;if(w!==(n[n.length-1]&f))throw new Error("invalid checksum");return(0,li.hexlify)(n.slice(0,l/8))}Bo.mnemonicToEntropy=zW;function D0e(r,e){if(e=jW(e),r=(0,li.arrayify)(r),r.length%4!==0||r.length<16||r.length>32)throw new Error("invalid entropy");for(var t=[0],n=11,a=0;a8?(t[t.length-1]<<=8,t[t.length-1]|=r[a],n-=8):(t[t.length-1]<<=n,t[t.length-1]|=r[a]>>8-n,t.push(r[a]&g_t(8-n)),n+=3);var i=r.length/4,s=(0,li.arrayify)((0,ph.sha256)(r))[0]&B0e(i);return t[t.length-1]<<=i,t[t.length-1]|=s>>8-i,e.join(t.map(function(c){return e.getWord(c)}))}Bo.entropyToMnemonic=D0e;function b_t(r,e){try{return zW(r,e),!0}catch{}return!1}Bo.isValidMnemonic=b_t;function w_t(r){return(typeof r!="number"||r<0||r>=c2||r%1)&&Q6.throwArgumentError("invalid account index","index",r),"m/44'/60'/"+r+"'/0/0"}Bo.getAccountPath=w_t});var F0e=O(VA=>{"use strict";x();T();Object.defineProperty(VA,"__esModule",{value:!0});VA.version=void 0;VA.version="random/5.7.0"});var j0e=O(ZA=>{"use strict";x();T();Object.defineProperty(ZA,"__esModule",{value:!0});ZA.randomBytes=void 0;var x_t=Wr(),W0e=ur(),T_t=F0e(),HW=new W0e.Logger(T_t.version);function __t(){if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof I<"u")return I;throw new Error("unable to locate global object")}var U0e=__t(),GA=U0e.crypto||U0e.msCrypto;(!GA||!GA.getRandomValues)&&(HW.warn("WARNING: Missing strong random number source"),GA={getRandomValues:function(r){return HW.throwError("no secure random source avaialble",W0e.Logger.errors.UNSUPPORTED_OPERATION,{operation:"crypto.getRandomValues"})}});function C_t(r){(r<=0||r>1024||r%1||r!=r)&&HW.throwArgumentError("invalid length","length",r);var e=new Uint8Array(r);return GA.getRandomValues(e),(0,x_t.arrayify)(e)}ZA.randomBytes=C_t});var z0e=O(JA=>{"use strict";x();T();Object.defineProperty(JA,"__esModule",{value:!0});JA.shuffled=void 0;function E_t(r){r=r.slice();for(var e=r.length-1;e>0;e--){var t=Math.floor(Math.random()*(e+1)),n=r[e];r[e]=r[t],r[t]=n}return r}JA.shuffled=E_t});var X6=O(u2=>{"use strict";x();T();Object.defineProperty(u2,"__esModule",{value:!0});u2.shuffled=u2.randomBytes=void 0;var k_t=j0e();Object.defineProperty(u2,"randomBytes",{enumerable:!0,get:function(){return k_t.randomBytes}});var S_t=z0e();Object.defineProperty(u2,"shuffled",{enumerable:!0,get:function(){return S_t.shuffled}})});var GW=O((VW,H0e)=>{"use strict";x();T();(function(r){function e(u){return parseInt(u)===u}function t(u){if(!e(u.length))return!1;for(var b=0;b255)return!1;return!0}function n(u,b){if(u.buffer&&ArrayBuffer.isView(u)&&u.name==="Uint8Array")return b&&(u.slice?u=u.slice():u=Array.prototype.slice.call(u)),u;if(Array.isArray(u)){if(!t(u))throw new Error("Array contains invalid value: "+u);return new Uint8Array(u)}if(e(u.length)&&t(u))return new Uint8Array(u);throw new Error("unsupported array-like object")}function a(u){return new Uint8Array(u)}function i(u,b,R,S,B){(S!=null||B!=null)&&(u.slice?u=u.slice(S,B):u=Array.prototype.slice.call(u,S,B)),b.set(u,R)}var s=function(){function u(R){var S=[],B=0;for(R=encodeURI(R);B191&&Z<224?(S.push(String.fromCharCode((Z&31)<<6|R[B+1]&63)),B+=2):(S.push(String.fromCharCode((Z&15)<<12|(R[B+1]&63)<<6|R[B+2]&63)),B+=3)}return S.join("")}return{toBytes:u,fromBytes:b}}(),c=function(){function u(S){for(var B=[],Z=0;Z>4]+b[W&15])}return B.join("")}return{toBytes:u,fromBytes:R}}(),l={16:10,24:12,32:14},d=[1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145],f=[99,124,119,123,242,107,111,197,48,1,103,43,254,215,171,118,202,130,201,125,250,89,71,240,173,212,162,175,156,164,114,192,183,253,147,38,54,63,247,204,52,165,229,241,113,216,49,21,4,199,35,195,24,150,5,154,7,18,128,226,235,39,178,117,9,131,44,26,27,110,90,160,82,59,214,179,41,227,47,132,83,209,0,237,32,252,177,91,106,203,190,57,74,76,88,207,208,239,170,251,67,77,51,133,69,249,2,127,80,60,159,168,81,163,64,143,146,157,56,245,188,182,218,33,16,255,243,210,205,12,19,236,95,151,68,23,196,167,126,61,100,93,25,115,96,129,79,220,34,42,144,136,70,238,184,20,222,94,11,219,224,50,58,10,73,6,36,92,194,211,172,98,145,149,228,121,231,200,55,109,141,213,78,169,108,86,244,234,101,122,174,8,186,120,37,46,28,166,180,198,232,221,116,31,75,189,139,138,112,62,181,102,72,3,246,14,97,53,87,185,134,193,29,158,225,248,152,17,105,217,142,148,155,30,135,233,206,85,40,223,140,161,137,13,191,230,66,104,65,153,45,15,176,84,187,22],w=[82,9,106,213,48,54,165,56,191,64,163,158,129,243,215,251,124,227,57,130,155,47,255,135,52,142,67,68,196,222,233,203,84,123,148,50,166,194,35,61,238,76,149,11,66,250,195,78,8,46,161,102,40,217,36,178,118,91,162,73,109,139,209,37,114,248,246,100,134,104,152,22,212,164,92,204,93,101,182,146,108,112,72,80,253,237,185,218,94,21,70,87,167,141,157,132,144,216,171,0,140,188,211,10,247,228,88,5,184,179,69,6,208,44,30,143,202,63,15,2,193,175,189,3,1,19,138,107,58,145,17,65,79,103,220,234,151,242,207,206,240,180,230,115,150,172,116,34,231,173,53,133,226,249,55,232,28,117,223,110,71,241,26,113,29,41,197,137,111,183,98,14,170,24,190,27,252,86,62,75,198,210,121,32,154,219,192,254,120,205,90,244,31,221,168,51,136,7,199,49,177,18,16,89,39,128,236,95,96,81,127,169,25,181,74,13,45,229,122,159,147,201,156,239,160,224,59,77,174,42,245,176,200,235,187,60,131,83,153,97,23,43,4,126,186,119,214,38,225,105,20,99,85,33,12,125],E=[3328402341,4168907908,4000806809,4135287693,4294111757,3597364157,3731845041,2445657428,1613770832,33620227,3462883241,1445669757,3892248089,3050821474,1303096294,3967186586,2412431941,528646813,2311702848,4202528135,4026202645,2992200171,2387036105,4226871307,1101901292,3017069671,1604494077,1169141738,597466303,1403299063,3832705686,2613100635,1974974402,3791519004,1033081774,1277568618,1815492186,2118074177,4126668546,2211236943,1748251740,1369810420,3521504564,4193382664,3799085459,2883115123,1647391059,706024767,134480908,2512897874,1176707941,2646852446,806885416,932615841,168101135,798661301,235341577,605164086,461406363,3756188221,3454790438,1311188841,2142417613,3933566367,302582043,495158174,1479289972,874125870,907746093,3698224818,3025820398,1537253627,2756858614,1983593293,3084310113,2108928974,1378429307,3722699582,1580150641,327451799,2790478837,3117535592,0,3253595436,1075847264,3825007647,2041688520,3059440621,3563743934,2378943302,1740553945,1916352843,2487896798,2555137236,2958579944,2244988746,3151024235,3320835882,1336584933,3992714006,2252555205,2588757463,1714631509,293963156,2319795663,3925473552,67240454,4269768577,2689618160,2017213508,631218106,1269344483,2723238387,1571005438,2151694528,93294474,1066570413,563977660,1882732616,4059428100,1673313503,2008463041,2950355573,1109467491,537923632,3858759450,4260623118,3218264685,2177748300,403442708,638784309,3287084079,3193921505,899127202,2286175436,773265209,2479146071,1437050866,4236148354,2050833735,3362022572,3126681063,840505643,3866325909,3227541664,427917720,2655997905,2749160575,1143087718,1412049534,999329963,193497219,2353415882,3354324521,1807268051,672404540,2816401017,3160301282,369822493,2916866934,3688947771,1681011286,1949973070,336202270,2454276571,201721354,1210328172,3093060836,2680341085,3184776046,1135389935,3294782118,965841320,831886756,3554993207,4068047243,3588745010,2345191491,1849112409,3664604599,26054028,2983581028,2622377682,1235855840,3630984372,2891339514,4092916743,3488279077,3395642799,4101667470,1202630377,268961816,1874508501,4034427016,1243948399,1546530418,941366308,1470539505,1941222599,2546386513,3421038627,2715671932,3899946140,1042226977,2521517021,1639824860,227249030,260737669,3765465232,2084453954,1907733956,3429263018,2420656344,100860677,4160157185,470683154,3261161891,1781871967,2924959737,1773779408,394692241,2579611992,974986535,664706745,3655459128,3958962195,731420851,571543859,3530123707,2849626480,126783113,865375399,765172662,1008606754,361203602,3387549984,2278477385,2857719295,1344809080,2782912378,59542671,1503764984,160008576,437062935,1707065306,3622233649,2218934982,3496503480,2185314755,697932208,1512910199,504303377,2075177163,2824099068,1841019862,739644986],k=[2781242211,2230877308,2582542199,2381740923,234877682,3184946027,2984144751,1418839493,1348481072,50462977,2848876391,2102799147,434634494,1656084439,3863849899,2599188086,1167051466,2636087938,1082771913,2281340285,368048890,3954334041,3381544775,201060592,3963727277,1739838676,4250903202,3930435503,3206782108,4149453988,2531553906,1536934080,3262494647,484572669,2923271059,1783375398,1517041206,1098792767,49674231,1334037708,1550332980,4098991525,886171109,150598129,2481090929,1940642008,1398944049,1059722517,201851908,1385547719,1699095331,1587397571,674240536,2704774806,252314885,3039795866,151914247,908333586,2602270848,1038082786,651029483,1766729511,3447698098,2682942837,454166793,2652734339,1951935532,775166490,758520603,3000790638,4004797018,4217086112,4137964114,1299594043,1639438038,3464344499,2068982057,1054729187,1901997871,2534638724,4121318227,1757008337,0,750906861,1614815264,535035132,3363418545,3988151131,3201591914,1183697867,3647454910,1265776953,3734260298,3566750796,3903871064,1250283471,1807470800,717615087,3847203498,384695291,3313910595,3617213773,1432761139,2484176261,3481945413,283769337,100925954,2180939647,4037038160,1148730428,3123027871,3813386408,4087501137,4267549603,3229630528,2315620239,2906624658,3156319645,1215313976,82966005,3747855548,3245848246,1974459098,1665278241,807407632,451280895,251524083,1841287890,1283575245,337120268,891687699,801369324,3787349855,2721421207,3431482436,959321879,1469301956,4065699751,2197585534,1199193405,2898814052,3887750493,724703513,2514908019,2696962144,2551808385,3516813135,2141445340,1715741218,2119445034,2872807568,2198571144,3398190662,700968686,3547052216,1009259540,2041044702,3803995742,487983883,1991105499,1004265696,1449407026,1316239930,504629770,3683797321,168560134,1816667172,3837287516,1570751170,1857934291,4014189740,2797888098,2822345105,2754712981,936633572,2347923833,852879335,1133234376,1500395319,3084545389,2348912013,1689376213,3533459022,3762923945,3034082412,4205598294,133428468,634383082,2949277029,2398386810,3913789102,403703816,3580869306,2297460856,1867130149,1918643758,607656988,4049053350,3346248884,1368901318,600565992,2090982877,2632479860,557719327,3717614411,3697393085,2249034635,2232388234,2430627952,1115438654,3295786421,2865522278,3633334344,84280067,33027830,303828494,2747425121,1600795957,4188952407,3496589753,2434238086,1486471617,658119965,3106381470,953803233,334231800,3005978776,857870609,3151128937,1890179545,2298973838,2805175444,3056442267,574365214,2450884487,550103529,1233637070,4289353045,2018519080,2057691103,2399374476,4166623649,2148108681,387583245,3664101311,836232934,3330556482,3100665960,3280093505,2955516313,2002398509,287182607,3413881008,4238890068,3597515707,975967766],A=[1671808611,2089089148,2006576759,2072901243,4061003762,1807603307,1873927791,3310653893,810573872,16974337,1739181671,729634347,4263110654,3613570519,2883997099,1989864566,3393556426,2191335298,3376449993,2106063485,4195741690,1508618841,1204391495,4027317232,2917941677,3563566036,2734514082,2951366063,2629772188,2767672228,1922491506,3227229120,3082974647,4246528509,2477669779,644500518,911895606,1061256767,4144166391,3427763148,878471220,2784252325,3845444069,4043897329,1905517169,3631459288,827548209,356461077,67897348,3344078279,593839651,3277757891,405286936,2527147926,84871685,2595565466,118033927,305538066,2157648768,3795705826,3945188843,661212711,2999812018,1973414517,152769033,2208177539,745822252,439235610,455947803,1857215598,1525593178,2700827552,1391895634,994932283,3596728278,3016654259,695947817,3812548067,795958831,2224493444,1408607827,3513301457,0,3979133421,543178784,4229948412,2982705585,1542305371,1790891114,3410398667,3201918910,961245753,1256100938,1289001036,1491644504,3477767631,3496721360,4012557807,2867154858,4212583931,1137018435,1305975373,861234739,2241073541,1171229253,4178635257,33948674,2139225727,1357946960,1011120188,2679776671,2833468328,1374921297,2751356323,1086357568,2408187279,2460827538,2646352285,944271416,4110742005,3168756668,3066132406,3665145818,560153121,271589392,4279952895,4077846003,3530407890,3444343245,202643468,322250259,3962553324,1608629855,2543990167,1154254916,389623319,3294073796,2817676711,2122513534,1028094525,1689045092,1575467613,422261273,1939203699,1621147744,2174228865,1339137615,3699352540,577127458,712922154,2427141008,2290289544,1187679302,3995715566,3100863416,339486740,3732514782,1591917662,186455563,3681988059,3762019296,844522546,978220090,169743370,1239126601,101321734,611076132,1558493276,3260915650,3547250131,2901361580,1655096418,2443721105,2510565781,3828863972,2039214713,3878868455,3359869896,928607799,1840765549,2374762893,3580146133,1322425422,2850048425,1823791212,1459268694,4094161908,3928346602,1706019429,2056189050,2934523822,135794696,3134549946,2022240376,628050469,779246638,472135708,2800834470,3032970164,3327236038,3894660072,3715932637,1956440180,522272287,1272813131,3185336765,2340818315,2323976074,1888542832,1044544574,3049550261,1722469478,1222152264,50660867,4127324150,236067854,1638122081,895445557,1475980887,3117443513,2257655686,3243809217,489110045,2662934430,3778599393,4162055160,2561878936,288563729,1773916777,3648039385,2391345038,2493985684,2612407707,505560094,2274497927,3911240169,3460925390,1442818645,678973480,3749357023,2358182796,2717407649,2306869641,219617805,3218761151,3862026214,1120306242,1756942440,1103331905,2578459033,762796589,252780047,2966125488,1425844308,3151392187,372911126],L=[1667474886,2088535288,2004326894,2071694838,4075949567,1802223062,1869591006,3318043793,808472672,16843522,1734846926,724270422,4278065639,3621216949,2880169549,1987484396,3402253711,2189597983,3385409673,2105378810,4210693615,1499065266,1195886990,4042263547,2913856577,3570689971,2728590687,2947541573,2627518243,2762274643,1920112356,3233831835,3082273397,4261223649,2475929149,640051788,909531756,1061110142,4160160501,3435941763,875846760,2779116625,3857003729,4059105529,1903268834,3638064043,825316194,353713962,67374088,3351728789,589522246,3284360861,404236336,2526454071,84217610,2593830191,117901582,303183396,2155911963,3806477791,3958056653,656894286,2998062463,1970642922,151591698,2206440989,741110872,437923380,454765878,1852748508,1515908788,2694904667,1381168804,993742198,3604373943,3014905469,690584402,3823320797,791638366,2223281939,1398011302,3520161977,0,3991743681,538992704,4244381667,2981218425,1532751286,1785380564,3419096717,3200178535,960056178,1246420628,1280103576,1482221744,3486468741,3503319995,4025428677,2863326543,4227536621,1128514950,1296947098,859002214,2240123921,1162203018,4193849577,33687044,2139062782,1347481760,1010582648,2678045221,2829640523,1364325282,2745433693,1077985408,2408548869,2459086143,2644360225,943212656,4126475505,3166494563,3065430391,3671750063,555836226,269496352,4294908645,4092792573,3537006015,3452783745,202118168,320025894,3974901699,1600119230,2543297077,1145359496,387397934,3301201811,2812801621,2122220284,1027426170,1684319432,1566435258,421079858,1936954854,1616945344,2172753945,1330631070,3705438115,572679748,707427924,2425400123,2290647819,1179044492,4008585671,3099120491,336870440,3739122087,1583276732,185277718,3688593069,3772791771,842159716,976899700,168435220,1229577106,101059084,606366792,1549591736,3267517855,3553849021,2897014595,1650632388,2442242105,2509612081,3840161747,2038008818,3890688725,3368567691,926374254,1835907034,2374863873,3587531953,1313788572,2846482505,1819063512,1448540844,4109633523,3941213647,1701162954,2054852340,2930698567,134748176,3132806511,2021165296,623210314,774795868,471606328,2795958615,3031746419,3334885783,3907527627,3722280097,1953799400,522133822,1263263126,3183336545,2341176845,2324333839,1886425312,1044267644,3048588401,1718004428,1212733584,50529542,4143317495,235803164,1633788866,892690282,1465383342,3115962473,2256965911,3250673817,488449850,2661202215,3789633753,4177007595,2560144171,286339874,1768537042,3654906025,2391705863,2492770099,2610673197,505291324,2273808917,3924369609,3469625735,1431699370,673740880,3755965093,2358021891,2711746649,2307489801,218961690,3217021541,3873845719,1111672452,1751693520,1094828930,2576986153,757954394,252645662,2964376443,1414855848,3149649517,370555436],q=[1374988112,2118214995,437757123,975658646,1001089995,530400753,2902087851,1273168787,540080725,2910219766,2295101073,4110568485,1340463100,3307916247,641025152,3043140495,3736164937,632953703,1172967064,1576976609,3274667266,2169303058,2370213795,1809054150,59727847,361929877,3211623147,2505202138,3569255213,1484005843,1239443753,2395588676,1975683434,4102977912,2572697195,666464733,3202437046,4035489047,3374361702,2110667444,1675577880,3843699074,2538681184,1649639237,2976151520,3144396420,4269907996,4178062228,1883793496,2403728665,2497604743,1383856311,2876494627,1917518562,3810496343,1716890410,3001755655,800440835,2261089178,3543599269,807962610,599762354,33778362,3977675356,2328828971,2809771154,4077384432,1315562145,1708848333,101039829,3509871135,3299278474,875451293,2733856160,92987698,2767645557,193195065,1080094634,1584504582,3178106961,1042385657,2531067453,3711829422,1306967366,2438237621,1908694277,67556463,1615861247,429456164,3602770327,2302690252,1742315127,2968011453,126454664,3877198648,2043211483,2709260871,2084704233,4169408201,0,159417987,841739592,504459436,1817866830,4245618683,260388950,1034867998,908933415,168810852,1750902305,2606453969,607530554,202008497,2472011535,3035535058,463180190,2160117071,1641816226,1517767529,470948374,3801332234,3231722213,1008918595,303765277,235474187,4069246893,766945465,337553864,1475418501,2943682380,4003061179,2743034109,4144047775,1551037884,1147550661,1543208500,2336434550,3408119516,3069049960,3102011747,3610369226,1113818384,328671808,2227573024,2236228733,3535486456,2935566865,3341394285,496906059,3702665459,226906860,2009195472,733156972,2842737049,294930682,1206477858,2835123396,2700099354,1451044056,573804783,2269728455,3644379585,2362090238,2564033334,2801107407,2776292904,3669462566,1068351396,742039012,1350078989,1784663195,1417561698,4136440770,2430122216,775550814,2193862645,2673705150,1775276924,1876241833,3475313331,3366754619,270040487,3902563182,3678124923,3441850377,1851332852,3969562369,2203032232,3868552805,2868897406,566021896,4011190502,3135740889,1248802510,3936291284,699432150,832877231,708780849,3332740144,899835584,1951317047,4236429990,3767586992,866637845,4043610186,1106041591,2144161806,395441711,1984812685,1139781709,3433712980,3835036895,2664543715,1282050075,3240894392,1181045119,2640243204,25965917,4203181171,4211818798,3009879386,2463879762,3910161971,1842759443,2597806476,933301370,1509430414,3943906441,3467192302,3076639029,3776767469,2051518780,2631065433,1441952575,404016761,1942435775,1408749034,1610459739,3745345300,2017778566,3400528769,3110650942,941896748,3265478751,371049330,3168937228,675039627,4279080257,967311729,135050206,3635733660,1683407248,2076935265,3576870512,1215061108,3501741890],U=[1347548327,1400783205,3273267108,2520393566,3409685355,4045380933,2880240216,2471224067,1428173050,4138563181,2441661558,636813900,4233094615,3620022987,2149987652,2411029155,1239331162,1730525723,2554718734,3781033664,46346101,310463728,2743944855,3328955385,3875770207,2501218972,3955191162,3667219033,768917123,3545789473,692707433,1150208456,1786102409,2029293177,1805211710,3710368113,3065962831,401639597,1724457132,3028143674,409198410,2196052529,1620529459,1164071807,3769721975,2226875310,486441376,2499348523,1483753576,428819965,2274680428,3075636216,598438867,3799141122,1474502543,711349675,129166120,53458370,2592523643,2782082824,4063242375,2988687269,3120694122,1559041666,730517276,2460449204,4042459122,2706270690,3446004468,3573941694,533804130,2328143614,2637442643,2695033685,839224033,1973745387,957055980,2856345839,106852767,1371368976,4181598602,1033297158,2933734917,1179510461,3046200461,91341917,1862534868,4284502037,605657339,2547432937,3431546947,2003294622,3182487618,2282195339,954669403,3682191598,1201765386,3917234703,3388507166,0,2198438022,1211247597,2887651696,1315723890,4227665663,1443857720,507358933,657861945,1678381017,560487590,3516619604,975451694,2970356327,261314535,3535072918,2652609425,1333838021,2724322336,1767536459,370938394,182621114,3854606378,1128014560,487725847,185469197,2918353863,3106780840,3356761769,2237133081,1286567175,3152976349,4255350624,2683765030,3160175349,3309594171,878443390,1988838185,3704300486,1756818940,1673061617,3403100636,272786309,1075025698,545572369,2105887268,4174560061,296679730,1841768865,1260232239,4091327024,3960309330,3497509347,1814803222,2578018489,4195456072,575138148,3299409036,446754879,3629546796,4011996048,3347532110,3252238545,4270639778,915985419,3483825537,681933534,651868046,2755636671,3828103837,223377554,2607439820,1649704518,3270937875,3901806776,1580087799,4118987695,3198115200,2087309459,2842678573,3016697106,1003007129,2802849917,1860738147,2077965243,164439672,4100872472,32283319,2827177882,1709610350,2125135846,136428751,3874428392,3652904859,3460984630,3572145929,3593056380,2939266226,824852259,818324884,3224740454,930369212,2801566410,2967507152,355706840,1257309336,4148292826,243256656,790073846,2373340630,1296297904,1422699085,3756299780,3818836405,457992840,3099667487,2135319889,77422314,1560382517,1945798516,788204353,1521706781,1385356242,870912086,325965383,2358957921,2050466060,2388260884,2313884476,4006521127,901210569,3990953189,1014646705,1503449823,1062597235,2031621326,3212035895,3931371469,1533017514,350174575,2256028891,2177544179,1052338372,741876788,1606591296,1914052035,213705253,2334669897,1107234197,1899603969,3725069491,2631447780,2422494913,1635502980,1893020342,1950903388,1120974935],j=[2807058932,1699970625,2764249623,1586903591,1808481195,1173430173,1487645946,59984867,4199882800,1844882806,1989249228,1277555970,3623636965,3419915562,1149249077,2744104290,1514790577,459744698,244860394,3235995134,1963115311,4027744588,2544078150,4190530515,1608975247,2627016082,2062270317,1507497298,2200818878,567498868,1764313568,3359936201,2305455554,2037970062,1047239e3,1910319033,1337376481,2904027272,2892417312,984907214,1243112415,830661914,861968209,2135253587,2011214180,2927934315,2686254721,731183368,1750626376,4246310725,1820824798,4172763771,3542330227,48394827,2404901663,2871682645,671593195,3254988725,2073724613,145085239,2280796200,2779915199,1790575107,2187128086,472615631,3029510009,4075877127,3802222185,4107101658,3201631749,1646252340,4270507174,1402811438,1436590835,3778151818,3950355702,3963161475,4020912224,2667994737,273792366,2331590177,104699613,95345982,3175501286,2377486676,1560637892,3564045318,369057872,4213447064,3919042237,1137477952,2658625497,1119727848,2340947849,1530455833,4007360968,172466556,266959938,516552836,0,2256734592,3980931627,1890328081,1917742170,4294704398,945164165,3575528878,958871085,3647212047,2787207260,1423022939,775562294,1739656202,3876557655,2530391278,2443058075,3310321856,547512796,1265195639,437656594,3121275539,719700128,3762502690,387781147,218828297,3350065803,2830708150,2848461854,428169201,122466165,3720081049,1627235199,648017665,4122762354,1002783846,2117360635,695634755,3336358691,4234721005,4049844452,3704280881,2232435299,574624663,287343814,612205898,1039717051,840019705,2708326185,793451934,821288114,1391201670,3822090177,376187827,3113855344,1224348052,1679968233,2361698556,1058709744,752375421,2431590963,1321699145,3519142200,2734591178,188127444,2177869557,3727205754,2384911031,3215212461,2648976442,2450346104,3432737375,1180849278,331544205,3102249176,4150144569,2952102595,2159976285,2474404304,766078933,313773861,2570832044,2108100632,1668212892,3145456443,2013908262,418672217,3070356634,2594734927,1852171925,3867060991,3473416636,3907448597,2614737639,919489135,164948639,2094410160,2997825956,590424639,2486224549,1723872674,3157750862,3399941250,3501252752,3625268135,2555048196,3673637356,1343127501,4130281361,3599595085,2957853679,1297403050,81781910,3051593425,2283490410,532201772,1367295589,3926170974,895287692,1953757831,1093597963,492483431,3528626907,1446242576,1192455638,1636604631,209336225,344873464,1015671571,669961897,3375740769,3857572124,2973530695,3747192018,1933530610,3464042516,935293895,3454686199,2858115069,1863638845,3683022916,4085369519,3292445032,875313188,1080017571,3279033885,621591778,1233856572,2504130317,24197544,3017672716,3835484340,3247465558,2220981195,3060847922,1551124588,1463996600],H=[4104605777,1097159550,396673818,660510266,2875968315,2638606623,4200115116,3808662347,821712160,1986918061,3430322568,38544885,3856137295,718002117,893681702,1654886325,2975484382,3122358053,3926825029,4274053469,796197571,1290801793,1184342925,3556361835,2405426947,2459735317,1836772287,1381620373,3196267988,1948373848,3764988233,3385345166,3263785589,2390325492,1480485785,3111247143,3780097726,2293045232,548169417,3459953789,3746175075,439452389,1362321559,1400849762,1685577905,1806599355,2174754046,137073913,1214797936,1174215055,3731654548,2079897426,1943217067,1258480242,529487843,1437280870,3945269170,3049390895,3313212038,923313619,679998e3,3215307299,57326082,377642221,3474729866,2041877159,133361907,1776460110,3673476453,96392454,878845905,2801699524,777231668,4082475170,2330014213,4142626212,2213296395,1626319424,1906247262,1846563261,562755902,3708173718,1040559837,3871163981,1418573201,3294430577,114585348,1343618912,2566595609,3186202582,1078185097,3651041127,3896688048,2307622919,425408743,3371096953,2081048481,1108339068,2216610296,0,2156299017,736970802,292596766,1517440620,251657213,2235061775,2933202493,758720310,265905162,1554391400,1532285339,908999204,174567692,1474760595,4002861748,2610011675,3234156416,3693126241,2001430874,303699484,2478443234,2687165888,585122620,454499602,151849742,2345119218,3064510765,514443284,4044981591,1963412655,2581445614,2137062819,19308535,1928707164,1715193156,4219352155,1126790795,600235211,3992742070,3841024952,836553431,1669664834,2535604243,3323011204,1243905413,3141400786,4180808110,698445255,2653899549,2989552604,2253581325,3252932727,3004591147,1891211689,2487810577,3915653703,4237083816,4030667424,2100090966,865136418,1229899655,953270745,3399679628,3557504664,4118925222,2061379749,3079546586,2915017791,983426092,2022837584,1607244650,2118541908,2366882550,3635996816,972512814,3283088770,1568718495,3499326569,3576539503,621982671,2895723464,410887952,2623762152,1002142683,645401037,1494807662,2595684844,1335535747,2507040230,4293295786,3167684641,367585007,3885750714,1865862730,2668221674,2960971305,2763173681,1059270954,2777952454,2724642869,1320957812,2194319100,2429595872,2815956275,77089521,3973773121,3444575871,2448830231,1305906550,4021308739,2857194700,2516901860,3518358430,1787304780,740276417,1699839814,1592394909,2352307457,2272556026,188821243,1729977011,3687994002,274084841,3594982253,3613494426,2701949495,4162096729,322734571,2837966542,1640576439,484830689,1202797690,3537852828,4067639125,349075736,3342319475,4157467219,4255800159,1030690015,1155237496,2951971274,1757691577,607398968,2738905026,499347990,3794078908,1011452712,227885567,2818666809,213114376,3034881240,1455525988,3414450555,850817237,1817998408,3092726480],G=[0,235474187,470948374,303765277,941896748,908933415,607530554,708780849,1883793496,2118214995,1817866830,1649639237,1215061108,1181045119,1417561698,1517767529,3767586992,4003061179,4236429990,4069246893,3635733660,3602770327,3299278474,3400528769,2430122216,2664543715,2362090238,2193862645,2835123396,2801107407,3035535058,3135740889,3678124923,3576870512,3341394285,3374361702,3810496343,3977675356,4279080257,4043610186,2876494627,2776292904,3076639029,3110650942,2472011535,2640243204,2403728665,2169303058,1001089995,899835584,666464733,699432150,59727847,226906860,530400753,294930682,1273168787,1172967064,1475418501,1509430414,1942435775,2110667444,1876241833,1641816226,2910219766,2743034109,2976151520,3211623147,2505202138,2606453969,2302690252,2269728455,3711829422,3543599269,3240894392,3475313331,3843699074,3943906441,4178062228,4144047775,1306967366,1139781709,1374988112,1610459739,1975683434,2076935265,1775276924,1742315127,1034867998,866637845,566021896,800440835,92987698,193195065,429456164,395441711,1984812685,2017778566,1784663195,1683407248,1315562145,1080094634,1383856311,1551037884,101039829,135050206,437757123,337553864,1042385657,807962610,573804783,742039012,2531067453,2564033334,2328828971,2227573024,2935566865,2700099354,3001755655,3168937228,3868552805,3902563182,4203181171,4102977912,3736164937,3501741890,3265478751,3433712980,1106041591,1340463100,1576976609,1408749034,2043211483,2009195472,1708848333,1809054150,832877231,1068351396,766945465,599762354,159417987,126454664,361929877,463180190,2709260871,2943682380,3178106961,3009879386,2572697195,2538681184,2236228733,2336434550,3509871135,3745345300,3441850377,3274667266,3910161971,3877198648,4110568485,4211818798,2597806476,2497604743,2261089178,2295101073,2733856160,2902087851,3202437046,2968011453,3936291284,3835036895,4136440770,4169408201,3535486456,3702665459,3467192302,3231722213,2051518780,1951317047,1716890410,1750902305,1113818384,1282050075,1584504582,1350078989,168810852,67556463,371049330,404016761,841739592,1008918595,775550814,540080725,3969562369,3801332234,4035489047,4269907996,3569255213,3669462566,3366754619,3332740144,2631065433,2463879762,2160117071,2395588676,2767645557,2868897406,3102011747,3069049960,202008497,33778362,270040487,504459436,875451293,975658646,675039627,641025152,2084704233,1917518562,1615861247,1851332852,1147550661,1248802510,1484005843,1451044056,933301370,967311729,733156972,632953703,260388950,25965917,328671808,496906059,1206477858,1239443753,1543208500,1441952575,2144161806,1908694277,1675577880,1842759443,3610369226,3644379585,3408119516,3307916247,4011190502,3776767469,4077384432,4245618683,2809771154,2842737049,3144396420,3043140495,2673705150,2438237621,2203032232,2370213795],te=[0,185469197,370938394,487725847,741876788,657861945,975451694,824852259,1483753576,1400783205,1315723890,1164071807,1950903388,2135319889,1649704518,1767536459,2967507152,3152976349,2801566410,2918353863,2631447780,2547432937,2328143614,2177544179,3901806776,3818836405,4270639778,4118987695,3299409036,3483825537,3535072918,3652904859,2077965243,1893020342,1841768865,1724457132,1474502543,1559041666,1107234197,1257309336,598438867,681933534,901210569,1052338372,261314535,77422314,428819965,310463728,3409685355,3224740454,3710368113,3593056380,3875770207,3960309330,4045380933,4195456072,2471224067,2554718734,2237133081,2388260884,3212035895,3028143674,2842678573,2724322336,4138563181,4255350624,3769721975,3955191162,3667219033,3516619604,3431546947,3347532110,2933734917,2782082824,3099667487,3016697106,2196052529,2313884476,2499348523,2683765030,1179510461,1296297904,1347548327,1533017514,1786102409,1635502980,2087309459,2003294622,507358933,355706840,136428751,53458370,839224033,957055980,605657339,790073846,2373340630,2256028891,2607439820,2422494913,2706270690,2856345839,3075636216,3160175349,3573941694,3725069491,3273267108,3356761769,4181598602,4063242375,4011996048,3828103837,1033297158,915985419,730517276,545572369,296679730,446754879,129166120,213705253,1709610350,1860738147,1945798516,2029293177,1239331162,1120974935,1606591296,1422699085,4148292826,4233094615,3781033664,3931371469,3682191598,3497509347,3446004468,3328955385,2939266226,2755636671,3106780840,2988687269,2198438022,2282195339,2501218972,2652609425,1201765386,1286567175,1371368976,1521706781,1805211710,1620529459,2105887268,1988838185,533804130,350174575,164439672,46346101,870912086,954669403,636813900,788204353,2358957921,2274680428,2592523643,2441661558,2695033685,2880240216,3065962831,3182487618,3572145929,3756299780,3270937875,3388507166,4174560061,4091327024,4006521127,3854606378,1014646705,930369212,711349675,560487590,272786309,457992840,106852767,223377554,1678381017,1862534868,1914052035,2031621326,1211247597,1128014560,1580087799,1428173050,32283319,182621114,401639597,486441376,768917123,651868046,1003007129,818324884,1503449823,1385356242,1333838021,1150208456,1973745387,2125135846,1673061617,1756818940,2970356327,3120694122,2802849917,2887651696,2637442643,2520393566,2334669897,2149987652,3917234703,3799141122,4284502037,4100872472,3309594171,3460984630,3545789473,3629546796,2050466060,1899603969,1814803222,1730525723,1443857720,1560382517,1075025698,1260232239,575138148,692707433,878443390,1062597235,243256656,91341917,409198410,325965383,3403100636,3252238545,3704300486,3620022987,3874428392,3990953189,4042459122,4227665663,2460449204,2578018489,2226875310,2411029155,3198115200,3046200461,2827177882,2743944855],K=[0,218828297,437656594,387781147,875313188,958871085,775562294,590424639,1750626376,1699970625,1917742170,2135253587,1551124588,1367295589,1180849278,1265195639,3501252752,3720081049,3399941250,3350065803,3835484340,3919042237,4270507174,4085369519,3102249176,3051593425,2734591178,2952102595,2361698556,2177869557,2530391278,2614737639,3145456443,3060847922,2708326185,2892417312,2404901663,2187128086,2504130317,2555048196,3542330227,3727205754,3375740769,3292445032,3876557655,3926170974,4246310725,4027744588,1808481195,1723872674,1910319033,2094410160,1608975247,1391201670,1173430173,1224348052,59984867,244860394,428169201,344873464,935293895,984907214,766078933,547512796,1844882806,1627235199,2011214180,2062270317,1507497298,1423022939,1137477952,1321699145,95345982,145085239,532201772,313773861,830661914,1015671571,731183368,648017665,3175501286,2957853679,2807058932,2858115069,2305455554,2220981195,2474404304,2658625497,3575528878,3625268135,3473416636,3254988725,3778151818,3963161475,4213447064,4130281361,3599595085,3683022916,3432737375,3247465558,3802222185,4020912224,4172763771,4122762354,3201631749,3017672716,2764249623,2848461854,2331590177,2280796200,2431590963,2648976442,104699613,188127444,472615631,287343814,840019705,1058709744,671593195,621591778,1852171925,1668212892,1953757831,2037970062,1514790577,1463996600,1080017571,1297403050,3673637356,3623636965,3235995134,3454686199,4007360968,3822090177,4107101658,4190530515,2997825956,3215212461,2830708150,2779915199,2256734592,2340947849,2627016082,2443058075,172466556,122466165,273792366,492483431,1047239e3,861968209,612205898,695634755,1646252340,1863638845,2013908262,1963115311,1446242576,1530455833,1277555970,1093597963,1636604631,1820824798,2073724613,1989249228,1436590835,1487645946,1337376481,1119727848,164948639,81781910,331544205,516552836,1039717051,821288114,669961897,719700128,2973530695,3157750862,2871682645,2787207260,2232435299,2283490410,2667994737,2450346104,3647212047,3564045318,3279033885,3464042516,3980931627,3762502690,4150144569,4199882800,3070356634,3121275539,2904027272,2686254721,2200818878,2384911031,2570832044,2486224549,3747192018,3528626907,3310321856,3359936201,3950355702,3867060991,4049844452,4234721005,1739656202,1790575107,2108100632,1890328081,1402811438,1586903591,1233856572,1149249077,266959938,48394827,369057872,418672217,1002783846,919489135,567498868,752375421,209336225,24197544,376187827,459744698,945164165,895287692,574624663,793451934,1679968233,1764313568,2117360635,1933530610,1343127501,1560637892,1243112415,1192455638,3704280881,3519142200,3336358691,3419915562,3907448597,3857572124,4075877127,4294704398,3029510009,3113855344,2927934315,2744104290,2159976285,2377486676,2594734927,2544078150],ae=[0,151849742,303699484,454499602,607398968,758720310,908999204,1059270954,1214797936,1097159550,1517440620,1400849762,1817998408,1699839814,2118541908,2001430874,2429595872,2581445614,2194319100,2345119218,3034881240,3186202582,2801699524,2951971274,3635996816,3518358430,3399679628,3283088770,4237083816,4118925222,4002861748,3885750714,1002142683,850817237,698445255,548169417,529487843,377642221,227885567,77089521,1943217067,2061379749,1640576439,1757691577,1474760595,1592394909,1174215055,1290801793,2875968315,2724642869,3111247143,2960971305,2405426947,2253581325,2638606623,2487810577,3808662347,3926825029,4044981591,4162096729,3342319475,3459953789,3576539503,3693126241,1986918061,2137062819,1685577905,1836772287,1381620373,1532285339,1078185097,1229899655,1040559837,923313619,740276417,621982671,439452389,322734571,137073913,19308535,3871163981,4021308739,4104605777,4255800159,3263785589,3414450555,3499326569,3651041127,2933202493,2815956275,3167684641,3049390895,2330014213,2213296395,2566595609,2448830231,1305906550,1155237496,1607244650,1455525988,1776460110,1626319424,2079897426,1928707164,96392454,213114376,396673818,514443284,562755902,679998e3,865136418,983426092,3708173718,3557504664,3474729866,3323011204,4180808110,4030667424,3945269170,3794078908,2507040230,2623762152,2272556026,2390325492,2975484382,3092726480,2738905026,2857194700,3973773121,3856137295,4274053469,4157467219,3371096953,3252932727,3673476453,3556361835,2763173681,2915017791,3064510765,3215307299,2156299017,2307622919,2459735317,2610011675,2081048481,1963412655,1846563261,1729977011,1480485785,1362321559,1243905413,1126790795,878845905,1030690015,645401037,796197571,274084841,425408743,38544885,188821243,3613494426,3731654548,3313212038,3430322568,4082475170,4200115116,3780097726,3896688048,2668221674,2516901860,2366882550,2216610296,3141400786,2989552604,2837966542,2687165888,1202797690,1320957812,1437280870,1554391400,1669664834,1787304780,1906247262,2022837584,265905162,114585348,499347990,349075736,736970802,585122620,972512814,821712160,2595684844,2478443234,2293045232,2174754046,3196267988,3079546586,2895723464,2777952454,3537852828,3687994002,3234156416,3385345166,4142626212,4293295786,3841024952,3992742070,174567692,57326082,410887952,292596766,777231668,660510266,1011452712,893681702,1108339068,1258480242,1343618912,1494807662,1715193156,1865862730,1948373848,2100090966,2701949495,2818666809,3004591147,3122358053,2235061775,2352307457,2535604243,2653899549,3915653703,3764988233,4219352155,4067639125,3444575871,3294430577,3746175075,3594982253,836553431,953270745,600235211,718002117,367585007,484830689,133361907,251657213,2041877159,1891211689,1806599355,1654886325,1568718495,1418573201,1335535747,1184342925];function J(u){for(var b=[],R=0;R>2,this._Ke[Z][b%4]=B[b],this._Kd[u-Z][b%4]=B[b];for(var W=0,X=S,de;X>16&255]<<24^f[de>>8&255]<<16^f[de&255]<<8^f[de>>24&255]^d[W]<<24,W+=1,S!=8)for(var b=1;b>8&255]<<8^f[de>>16&255]<<16^f[de>>24&255]<<24;for(var b=S/2+1;b>2,pe=X%4,this._Ke[ne][pe]=B[b],this._Kd[u-ne][pe]=B[b++],X++}for(var ne=1;ne>24&255]^te[de>>16&255]^K[de>>8&255]^ae[de&255]},V.prototype.encrypt=function(u){if(u.length!=16)throw new Error("invalid plaintext size (must be 16 bytes)");for(var b=this._Ke.length-1,R=[0,0,0,0],S=J(u),B=0;B<4;B++)S[B]^=this._Ke[0][B];for(var Z=1;Z>24&255]^k[S[(B+1)%4]>>16&255]^A[S[(B+2)%4]>>8&255]^L[S[(B+3)%4]&255]^this._Ke[Z][B];S=R.slice()}for(var W=a(16),X,B=0;B<4;B++)X=this._Ke[b][B],W[4*B]=(f[S[B]>>24&255]^X>>24)&255,W[4*B+1]=(f[S[(B+1)%4]>>16&255]^X>>16)&255,W[4*B+2]=(f[S[(B+2)%4]>>8&255]^X>>8)&255,W[4*B+3]=(f[S[(B+3)%4]&255]^X)&255;return W},V.prototype.decrypt=function(u){if(u.length!=16)throw new Error("invalid ciphertext size (must be 16 bytes)");for(var b=this._Kd.length-1,R=[0,0,0,0],S=J(u),B=0;B<4;B++)S[B]^=this._Kd[0][B];for(var Z=1;Z>24&255]^U[S[(B+3)%4]>>16&255]^j[S[(B+2)%4]>>8&255]^H[S[(B+1)%4]&255]^this._Kd[Z][B];S=R.slice()}for(var W=a(16),X,B=0;B<4;B++)X=this._Kd[b][B],W[4*B]=(w[S[B]>>24&255]^X>>24)&255,W[4*B+1]=(w[S[(B+3)%4]>>16&255]^X>>16)&255,W[4*B+2]=(w[S[(B+2)%4]>>8&255]^X>>8)&255,W[4*B+3]=(w[S[(B+1)%4]&255]^X)&255;return W};var g=function(u){if(!(this instanceof g))throw Error("AES must be instanitated with `new`");this.description="Electronic Code Block",this.name="ecb",this._aes=new V(u)};g.prototype.encrypt=function(u){if(u=n(u),u.length%16!==0)throw new Error("invalid plaintext size (must be multiple of 16 bytes)");for(var b=a(u.length),R=a(16),S=0;S=0;--b)this._counter[b]=u%256,u=u>>8},h.prototype.setBytes=function(u){if(u=n(u,!0),u.length!=16)throw new Error("invalid counter bytes size (must be 16 bytes)");this._counter=u},h.prototype.increment=function(){for(var u=15;u>=0;u--)if(this._counter[u]===255)this._counter[u]=0;else{this._counter[u]++;break}};var v=function(u,b){if(!(this instanceof v))throw Error("AES must be instanitated with `new`");this.description="Counter",this.name="ctr",b instanceof h||(b=new h(b)),this._counter=b,this._remainingCounter=null,this._remainingCounterIndex=16,this._aes=new V(u)};v.prototype.encrypt=function(u){for(var b=n(u,!0),R=0;R16)throw new Error("PKCS#7 padding byte out of range");for(var R=u.length-b,S=0;S{"use strict";x();T();Object.defineProperty(KA,"__esModule",{value:!0});KA.version=void 0;KA.version="json-wallets/5.7.0"});var JW=O(Ql=>{"use strict";x();T();Object.defineProperty(Ql,"__esModule",{value:!0});Ql.uuidV4=Ql.searchPath=Ql.getPassword=Ql.zpad=Ql.looseArrayify=void 0;var QA=Wr(),V0e=rs();function A_t(r){return typeof r=="string"&&r.substring(0,2)!=="0x"&&(r="0x"+r),(0,QA.arrayify)(r)}Ql.looseArrayify=A_t;function M_t(r,e){for(r=String(r);r.length{"use strict";x();T();var N_t=hh&&hh.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),O_t=hh&&hh.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(hh,"__esModule",{value:!0});hh.decrypt=hh.CrowdsaleAccount=void 0;var G0e=O_t(GW()),L_t=Sl(),Z0e=Wr(),B_t=Qu(),q_t=OA(),D_t=rs(),F_t=Xa(),U_t=ur(),W_t=ZW(),j_t=new U_t.Logger(W_t.version),XA=JW(),J0e=function(r){N_t(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.isCrowdsaleAccount=function(t){return!!(t&&t._isCrowdsaleAccount)},e}(F_t.Description);hh.CrowdsaleAccount=J0e;function z_t(r,e){var t=JSON.parse(r);e=(0,XA.getPassword)(e);var n=(0,L_t.getAddress)((0,XA.searchPath)(t,"ethaddr")),a=(0,XA.looseArrayify)((0,XA.searchPath)(t,"encseed"));(!a||a.length%16!==0)&&j_t.throwArgumentError("invalid encseed","json",r);for(var i=(0,Z0e.arrayify)((0,q_t.pbkdf2)(e,e,2e3,32,"sha256")).slice(0,16),s=a.slice(0,16),c=a.slice(16),l=new G0e.default.ModeOfOperation.cbc(i,s),d=G0e.default.padding.pkcs7.strip((0,Z0e.arrayify)(l.decrypt(c))),f="",w=0;w{"use strict";x();T();Object.defineProperty(f0,"__esModule",{value:!0});f0.getJsonWalletAddress=f0.isKeystoreWallet=f0.isCrowdsaleWallet=void 0;var Q0e=Sl();function X0e(r){var e=null;try{e=JSON.parse(r)}catch{return!1}return e.encseed&&e.ethaddr}f0.isCrowdsaleWallet=X0e;function Y0e(r){var e=null;try{e=JSON.parse(r)}catch{return!1}return!(!e.version||parseInt(e.version)!==e.version||parseInt(e.version)!==3)}f0.isKeystoreWallet=Y0e;function H_t(r){if(X0e(r))try{return(0,Q0e.getAddress)(JSON.parse(r).ethaddr)}catch{return null}if(Y0e(r))try{return(0,Q0e.getAddress)(JSON.parse(r).address)}catch{return null}return null}f0.getJsonWalletAddress=H_t});var tye=O((KW,eye)=>{"use strict";x();T();(function(r){function t(k){let A=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),L=1779033703,q=3144134277,U=1013904242,j=2773480762,H=1359893119,G=2600822924,te=528734635,K=1541459225,ae=new Uint32Array(64);function J(v){let _=0,C=v.length;for(;C>=64;){let m=L,u=q,b=U,R=j,S=H,B=G,Z=te,W=K,X,de,ne,pe,pt;for(de=0;de<16;de++)ne=_+de*4,ae[de]=(v[ne]&255)<<24|(v[ne+1]&255)<<16|(v[ne+2]&255)<<8|v[ne+3]&255;for(de=16;de<64;de++)X=ae[de-2],pe=(X>>>17|X<<32-17)^(X>>>19|X<<32-19)^X>>>10,X=ae[de-15],pt=(X>>>7|X<<32-7)^(X>>>18|X<<32-18)^X>>>3,ae[de]=(pe+ae[de-7]|0)+(pt+ae[de-16]|0)|0;for(de=0;de<64;de++)pe=(((S>>>6|S<<32-6)^(S>>>11|S<<32-11)^(S>>>25|S<<32-25))+(S&B^~S&Z)|0)+(W+(A[de]+ae[de]|0)|0)|0,pt=((m>>>2|m<<32-2)^(m>>>13|m<<32-13)^(m>>>22|m<<32-22))+(m&u^m&b^u&b)|0,W=Z,Z=B,B=S,S=R+pe|0,R=b,b=u,u=m,m=pe+pt|0;L=L+m|0,q=q+u|0,U=U+b|0,j=j+R|0,H=H+S|0,G=G+B|0,te=te+Z|0,K=K+W|0,_+=64,C-=64}}J(k);let V,g=k.length%64,o=k.length/536870912|0,p=k.length<<3,y=g<56?56:120,h=k.slice(k.length-g,k.length);for(h.push(128),V=g+1;V>>24&255),h.push(o>>>16&255),h.push(o>>>8&255),h.push(o>>>0&255),h.push(p>>>24&255),h.push(p>>>16&255),h.push(p>>>8&255),h.push(p>>>0&255),J(h),[L>>>24&255,L>>>16&255,L>>>8&255,L>>>0&255,q>>>24&255,q>>>16&255,q>>>8&255,q>>>0&255,U>>>24&255,U>>>16&255,U>>>8&255,U>>>0&255,j>>>24&255,j>>>16&255,j>>>8&255,j>>>0&255,H>>>24&255,H>>>16&255,H>>>8&255,H>>>0&255,G>>>24&255,G>>>16&255,G>>>8&255,G>>>0&255,te>>>24&255,te>>>16&255,te>>>8&255,te>>>0&255,K>>>24&255,K>>>16&255,K>>>8&255,K>>>0&255]}function n(k,A,L){k=k.length<=64?k:t(k);let q=64+A.length+4,U=new Array(q),j=new Array(64),H,G=[];for(H=0;H<64;H++)U[H]=54;for(H=0;H=q-4;K--){if(U[K]++,U[K]<=255)return;U[K]=0}}for(;L>=32;)te(),G=G.concat(t(j.concat(t(U)))),L-=32;return L>0&&(te(),G=G.concat(t(j.concat(t(U))).slice(0,L))),G}function a(k,A,L,q,U){let j;for(l(k,(2*L-1)*16,U,0,16),j=0;j<2*L;j++)c(k,j*16,U,16),s(U,q),l(U,0,k,A+j*16,16);for(j=0;j>>32-A}function s(k,A){l(k,0,A,0,16);for(let L=8;L>0;L-=2)A[4]^=i(A[0]+A[12],7),A[8]^=i(A[4]+A[0],9),A[12]^=i(A[8]+A[4],13),A[0]^=i(A[12]+A[8],18),A[9]^=i(A[5]+A[1],7),A[13]^=i(A[9]+A[5],9),A[1]^=i(A[13]+A[9],13),A[5]^=i(A[1]+A[13],18),A[14]^=i(A[10]+A[6],7),A[2]^=i(A[14]+A[10],9),A[6]^=i(A[2]+A[14],13),A[10]^=i(A[6]+A[2],18),A[3]^=i(A[15]+A[11],7),A[7]^=i(A[3]+A[15],9),A[11]^=i(A[7]+A[3],13),A[15]^=i(A[11]+A[7],18),A[1]^=i(A[0]+A[3],7),A[2]^=i(A[1]+A[0],9),A[3]^=i(A[2]+A[1],13),A[0]^=i(A[3]+A[2],18),A[6]^=i(A[5]+A[4],7),A[7]^=i(A[6]+A[5],9),A[4]^=i(A[7]+A[6],13),A[5]^=i(A[4]+A[7],18),A[11]^=i(A[10]+A[9],7),A[8]^=i(A[11]+A[10],9),A[9]^=i(A[8]+A[11],13),A[10]^=i(A[9]+A[8],18),A[12]^=i(A[15]+A[14],7),A[13]^=i(A[12]+A[15],9),A[14]^=i(A[13]+A[12],13),A[15]^=i(A[14]+A[13],18);for(let L=0;L<16;++L)k[L]+=A[L]}function c(k,A,L,q){for(let U=0;U=256)return!1}return!0}function f(k,A){if(typeof k!="number"||k%1)throw new Error("invalid "+A);return k}function w(k,A,L,q,U,j,H){if(L=f(L,"N"),q=f(q,"r"),U=f(U,"p"),j=f(j,"dkLen"),L===0||(L&L-1)!==0)throw new Error("N must be power of 2");if(L>2147483647/128/q)throw new Error("N too large");if(q>2147483647/128/U)throw new Error("r too large");if(!d(k))throw new Error("password must be an array or buffer");if(k=Array.prototype.slice.call(k),!d(A))throw new Error("salt must be an array or buffer");A=Array.prototype.slice.call(A);let G=n(k,A,U*128*q),te=new Uint32Array(U*32*q);for(let S=0;Su&&(S=u);for(let Z=0;Zu&&(S=u);for(let Z=0;Z>0&255),G.push(te[Z]>>8&255),G.push(te[Z]>>16&255),G.push(te[Z]>>24&255);let B=n(k,G,j);return H&&H(null,1,B),B}H&&b(R)};if(!H)for(;;){let S=R();if(S!=null)return S}R()}let E={scrypt:function(k,A,L,q,U,j,H){return new Promise(function(G,te){let K=0;H&&H(0),w(k,A,L,q,U,j,function(ae,J,V){if(ae)te(ae);else if(V)H&&K!==1&&H(1),G(new Uint8Array(V));else if(H&&J!==K)return K=J,H(J)})})},syncScrypt:function(k,A,L,q,U,j){return new Uint8Array(w(k,A,L,q,U,j))}};typeof KW<"u"?eye.exports=E:typeof define=="function"&&define.amd?define(E):r&&(r.scrypt&&(r._scrypt=r.scrypt),r.scrypt=E)})(KW)});var dye=O(zs=>{"use strict";x();T();var V_t=zs&&zs.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),G_t=zs&&zs.__awaiter||function(r,e,t,n){function a(i){return i instanceof t?i:new t(function(s){s(i)})}return new(t||(t=Promise))(function(i,s){function c(f){try{d(n.next(f))}catch(w){s(w)}}function l(f){try{d(n.throw(f))}catch(w){s(w)}}function d(f){f.done?i(f.value):a(f.value).then(c,l)}d((n=n.apply(r,e||[])).next())})},Z_t=zs&&zs.__generator||function(r,e){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,s;return s={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function c(d){return function(f){return l([d,f])}}function l(d){if(n)throw new TypeError("Generator is already executing.");for(;t;)try{if(n=1,a&&(i=d[0]&2?a.return:d[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,d[1])).done)return i;switch(a=0,i&&(d=[d[0]&2,i.value]),d[0]){case 0:case 1:i=d;break;case 4:return t.label++,{value:d[1],done:!1};case 5:t.label++,a=d[1],d=[0];continue;case 7:d=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(d[0]===6||d[0]===2)){t=0;continue}if(d[0]===3&&(!i||d[1]>i[0]&&d[1]{"use strict";x();T();Object.defineProperty(ss,"__esModule",{value:!0});ss.decryptJsonWalletSync=ss.decryptJsonWallet=ss.getJsonWalletAddress=ss.isKeystoreWallet=ss.isCrowdsaleWallet=ss.encryptKeystore=ss.decryptKeystoreSync=ss.decryptKeystore=ss.decryptCrowdsale=void 0;var $W=K0e();Object.defineProperty(ss,"decryptCrowdsale",{enumerable:!0,get:function(){return $W.decrypt}});var jg=$0e();Object.defineProperty(ss,"getJsonWalletAddress",{enumerable:!0,get:function(){return jg.getJsonWalletAddress}});Object.defineProperty(ss,"isCrowdsaleWallet",{enumerable:!0,get:function(){return jg.isCrowdsaleWallet}});Object.defineProperty(ss,"isKeystoreWallet",{enumerable:!0,get:function(){return jg.isKeystoreWallet}});var Y6=dye();Object.defineProperty(ss,"decryptKeystore",{enumerable:!0,get:function(){return Y6.decrypt}});Object.defineProperty(ss,"decryptKeystoreSync",{enumerable:!0,get:function(){return Y6.decryptSync}});Object.defineProperty(ss,"encryptKeystore",{enumerable:!0,get:function(){return Y6.encrypt}});function rCt(r,e,t){if((0,jg.isCrowdsaleWallet)(r)){t&&t(0);var n=(0,$W.decrypt)(r,e);return t&&t(1),Promise.resolve(n)}return(0,jg.isKeystoreWallet)(r)?(0,Y6.decrypt)(r,e,t):Promise.reject(new Error("invalid JSON wallet"))}ss.decryptJsonWallet=rCt;function nCt(r,e){if((0,jg.isCrowdsaleWallet)(r))return(0,$W.decrypt)(r,e);if((0,jg.isKeystoreWallet)(r))return(0,Y6.decryptSync)(r,e);throw new Error("invalid JSON wallet")}ss.decryptJsonWalletSync=nCt});var pye=O($A=>{"use strict";x();T();Object.defineProperty($A,"__esModule",{value:!0});$A.version=void 0;$A.version="wallet/5.7.0"});var nj=O(hu=>{"use strict";x();T();var aCt=hu&&hu.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),hye=hu&&hu.__awaiter||function(r,e,t,n){function a(i){return i instanceof t?i:new t(function(s){s(i)})}return new(t||(t=Promise))(function(i,s){function c(f){try{d(n.next(f))}catch(w){s(w)}}function l(f){try{d(n.throw(f))}catch(w){s(w)}}function d(f){f.done?i(f.value):a(f.value).then(c,l)}d((n=n.apply(r,e||[])).next())})},fye=hu&&hu.__generator||function(r,e){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,s;return s={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function c(d){return function(f){return l([d,f])}}function l(d){if(n)throw new TypeError("Generator is already executing.");for(;t;)try{if(n=1,a&&(i=d[0]&2?a.return:d[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,d[1])).done)return i;switch(a=0,i&&(d=[d[0]&2,i.value]),d[0]){case 0:case 1:i=d;break;case 4:return t.label++,{value:d[1],done:!1};case 5:t.label++,a=d[1],d=[0];continue;case 7:d=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(d[0]===6||d[0]===2)){t=0;continue}if(d[0]===3&&(!i||d[1]>i[0]&&d[1]{"use strict";x();T();Object.defineProperty(eM,"__esModule",{value:!0});eM.version=void 0;eM.version="networks/5.7.1"});var aj=O(nM=>{"use strict";x();T();Object.defineProperty(nM,"__esModule",{value:!0});nM.getNetwork=void 0;var fCt=ur(),mCt=vye(),bye=new fCt.Logger(mCt.version);function yCt(r){return r&&typeof r.renetwork=="function"}function Pf(r){var e=function(t,n){n==null&&(n={});var a=[];if(t.InfuraProvider&&n.infura!=="-")try{a.push(new t.InfuraProvider(r,n.infura))}catch{}if(t.EtherscanProvider&&n.etherscan!=="-")try{a.push(new t.EtherscanProvider(r,n.etherscan))}catch{}if(t.AlchemyProvider&&n.alchemy!=="-")try{a.push(new t.AlchemyProvider(r,n.alchemy))}catch{}if(t.PocketProvider&&n.pocket!=="-"){var i=["goerli","ropsten","rinkeby","sepolia"];try{var s=new t.PocketProvider(r,n.pocket);s.network&&i.indexOf(s.network.name)===-1&&a.push(s)}catch{}}if(t.CloudflareProvider&&n.cloudflare!=="-")try{a.push(new t.CloudflareProvider(r))}catch{}if(t.AnkrProvider&&n.ankr!=="-")try{var i=["ropsten"],s=new t.AnkrProvider(r,n.ankr);s.network&&i.indexOf(s.network.name)===-1&&a.push(s)}catch{}if(a.length===0)return null;if(t.FallbackProvider){var c=1;return n.quorum!=null?c=n.quorum:r==="homestead"&&(c=2),new t.FallbackProvider(a,c)}return a[0]};return e.renetwork=function(t){return Pf(t)},e}function rM(r,e){var t=function(n,a){return n.JsonRpcProvider?new n.JsonRpcProvider(r,e):null};return t.renetwork=function(n){return rM(r,n)},t}var wye={chainId:1,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"homestead",_defaultProvider:Pf("homestead")},xye={chainId:3,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"ropsten",_defaultProvider:Pf("ropsten")},Tye={chainId:63,name:"classicMordor",_defaultProvider:rM("https://www.ethercluster.com/mordor","classicMordor")},tM={unspecified:{chainId:0,name:"unspecified"},homestead:wye,mainnet:wye,morden:{chainId:2,name:"morden"},ropsten:xye,testnet:xye,rinkeby:{chainId:4,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"rinkeby",_defaultProvider:Pf("rinkeby")},kovan:{chainId:42,name:"kovan",_defaultProvider:Pf("kovan")},goerli:{chainId:5,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"goerli",_defaultProvider:Pf("goerli")},kintsugi:{chainId:1337702,name:"kintsugi"},sepolia:{chainId:11155111,name:"sepolia",_defaultProvider:Pf("sepolia")},classic:{chainId:61,name:"classic",_defaultProvider:rM("https://www.ethercluster.com/etc","classic")},classicMorden:{chainId:62,name:"classicMorden"},classicMordor:Tye,classicTestnet:Tye,classicKotti:{chainId:6,name:"classicKotti",_defaultProvider:rM("https://www.ethercluster.com/kotti","classicKotti")},xdai:{chainId:100,name:"xdai"},matic:{chainId:137,name:"matic",_defaultProvider:Pf("matic")},maticmum:{chainId:80001,name:"maticmum"},optimism:{chainId:10,name:"optimism",_defaultProvider:Pf("optimism")},"optimism-kovan":{chainId:69,name:"optimism-kovan"},"optimism-goerli":{chainId:420,name:"optimism-goerli"},arbitrum:{chainId:42161,name:"arbitrum"},"arbitrum-rinkeby":{chainId:421611,name:"arbitrum-rinkeby"},"arbitrum-goerli":{chainId:421613,name:"arbitrum-goerli"},bnb:{chainId:56,name:"bnb"},bnbt:{chainId:97,name:"bnbt"}};function gCt(r){if(r==null)return null;if(typeof r=="number"){for(var e in tM){var t=tM[e];if(t.chainId===r)return{name:t.name,chainId:t.chainId,ensAddress:t.ensAddress||null,_defaultProvider:t._defaultProvider||null}}return{chainId:r,name:"unknown"}}if(typeof r=="string"){var n=tM[r];return n==null?null:{name:n.name,chainId:n.chainId,ensAddress:n.ensAddress,_defaultProvider:n._defaultProvider||null}}var a=tM[r.name];if(!a)return typeof r.chainId!="number"&&bye.throwArgumentError("invalid network chainId","network",r),r;r.chainId!==0&&r.chainId!==a.chainId&&bye.throwArgumentError("network chainId mismatch","network",r);var i=r._defaultProvider||null;return i==null&&a._defaultProvider&&(yCt(a._defaultProvider)?i=a._defaultProvider.renetwork(r):i=a._defaultProvider),{name:r.name,chainId:a.chainId,ensAddress:r.ensAddress||a.ensAddress||null,_defaultProvider:i}}nM.getNetwork=gCt});var _ye=O(aM=>{"use strict";x();T();Object.defineProperty(aM,"__esModule",{value:!0});aM.version=void 0;aM.version="web/5.7.1"});var Cye=O(y0=>{"use strict";x();T();var vCt=y0&&y0.__awaiter||function(r,e,t,n){function a(i){return i instanceof t?i:new t(function(s){s(i)})}return new(t||(t=Promise))(function(i,s){function c(f){try{d(n.next(f))}catch(w){s(w)}}function l(f){try{d(n.throw(f))}catch(w){s(w)}}function d(f){f.done?i(f.value):a(f.value).then(c,l)}d((n=n.apply(r,e||[])).next())})},bCt=y0&&y0.__generator||function(r,e){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,s;return s={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function c(d){return function(f){return l([d,f])}}function l(d){if(n)throw new TypeError("Generator is already executing.");for(;t;)try{if(n=1,a&&(i=d[0]&2?a.return:d[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,d[1])).done)return i;switch(a=0,i&&(d=[d[0]&2,i.value]),d[0]){case 0:case 1:i=d;break;case 4:return t.label++,{value:d[1],done:!1};case 5:t.label++,a=d[1],d=[0];continue;case 7:d=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(d[0]===6||d[0]===2)){t=0;continue}if(d[0]===3&&(!i||d[1]>i[0]&&d[1]{"use strict";x();T();var TCt=Xl&&Xl.__awaiter||function(r,e,t,n){function a(i){return i instanceof t?i:new t(function(s){s(i)})}return new(t||(t=Promise))(function(i,s){function c(f){try{d(n.next(f))}catch(w){s(w)}}function l(f){try{d(n.throw(f))}catch(w){s(w)}}function d(f){f.done?i(f.value):a(f.value).then(c,l)}d((n=n.apply(r,e||[])).next())})},_Ct=Xl&&Xl.__generator||function(r,e){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,s;return s={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function c(d){return function(f){return l([d,f])}}function l(d){if(n)throw new TypeError("Generator is already executing.");for(;t;)try{if(n=1,a&&(i=d[0]&2?a.return:d[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,d[1])).done)return i;switch(a=0,i&&(d=[d[0]&2,i.value]),d[0]){case 0:case 1:i=d;break;case 4:return t.label++,{value:d[1],done:!1};case 5:t.label++,a=d[1],d=[0];continue;case 7:d=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(d[0]===6||d[0]===2)){t=0;continue}if(d[0]===3&&(!i||d[1]>i[0]&&d[1]0&&n%1===0,"invalid connection throttle limit","connection.throttleLimit",n);var a=typeof r=="object"?r.throttleCallback:null,i=typeof r=="object"&&typeof r.throttleSlotInterval=="number"?r.throttleSlotInterval:100;np.assertArgument(i>0&&i%1===0,"invalid connection throttle slot interval","connection.throttleSlotInterval",i);var s=typeof r=="object"?!!r.errorPassThrough:!1,c={},l=null,d={method:"GET"},f=!1,w=2*60*1e3;if(typeof r=="string")l=r;else if(typeof r=="object"){if((r==null||r.url==null)&&np.throwArgumentError("missing URL","connection.url",r),l=r.url,typeof r.timeout=="number"&&r.timeout>0&&(w=r.timeout),r.headers)for(var E in r.headers)c[E.toLowerCase()]={key:E,value:String(r.headers[E])},["if-none-match","if-modified-since"].indexOf(E.toLowerCase())>=0&&(f=!0);if(d.allowGzip=!!r.allowGzip,r.user!=null&&r.password!=null){l.substring(0,6)!=="https:"&&r.allowInsecureAuthentication!==!0&&np.throwError("basic authentication requires a secure https url",Rf.Logger.errors.INVALID_ARGUMENT,{argument:"url",url:l,user:r.user,password:"[REDACTED]"});var k=r.user+":"+r.password;c.authorization={key:"Authorization",value:"Basic "+(0,Eye.encode)((0,tT.toUtf8Bytes)(k))}}r.skipFetchSetup!=null&&(d.skipFetchSetup=!!r.skipFetchSetup),r.fetchOptions!=null&&(d.fetchOptions=(0,iM.shallowCopy)(r.fetchOptions))}var A=new RegExp("^data:([^;:]*)?(;base64)?,(.*)$","i"),L=l?l.match(A):null;if(L)try{var q={statusCode:200,statusMessage:"OK",headers:{"content-type":L[1]||"text/plain"},body:L[2]?(0,Eye.decode)(L[3]):kCt(L[3])},U=q.body;return t&&(U=t(q.body,q)),Promise.resolve(U)}catch(te){np.throwError("processing response error",Rf.Logger.errors.SERVER_ERROR,{body:g0(L[1],L[2]),error:te,requestBody:null,requestMethod:"GET",url:l})}e&&(d.method="POST",d.body=e,c["content-type"]==null&&(c["content-type"]={key:"Content-Type",value:"application/octet-stream"}),c["content-length"]==null&&(c["content-length"]={key:"Content-Length",value:String(e.length)}));var j={};Object.keys(c).forEach(function(te){var K=c[te];j[K.key]=K.value}),d.headers=j;var H=function(){var te=null,K=new Promise(function(J,V){w&&(te=setTimeout(function(){te!=null&&(te=null,V(np.makeError("timeout",Rf.Logger.errors.TIMEOUT,{requestBody:g0(d.body,j["content-type"]),requestMethod:d.method,timeout:w,url:l})))},w))}),ae=function(){te!=null&&(clearTimeout(te),te=null)};return{promise:K,cancel:ae}}(),G=function(){return TCt(this,void 0,void 0,function(){var te,K,ae,h,J,V,g,o,p,y,h,v;return _Ct(this,function(_){switch(_.label){case 0:te=0,_.label=1;case 1:if(!(te=300)&&(H.cancel(),np.throwError("bad response",Rf.Logger.errors.SERVER_ERROR,{status:K.statusCode,headers:K.headers,body:g0(o,K.headers?K.headers["content-type"]:null),requestBody:g0(d.body,j["content-type"]),requestMethod:d.method,url:l})),!t)return[3,18];_.label=11;case 11:return _.trys.push([11,13,,18]),[4,t(o,K)];case 12:return p=_.sent(),H.cancel(),[2,p];case 13:return y=_.sent(),y.throttleRetry&&tec){s()&&n(new Error("retry limit reached"));return}var w=e.interval*parseInt(String(Math.random()*Math.pow(2,l)));we.ceiling&&(w=e.ceiling),setTimeout(d,w)}return null},function(f){s()&&n(f)})}d()})}Xl.poll=ACt});var Rye=O((H$r,Pye)=>{"use strict";x();T();var oM="qpzry9x8gf2tvdw0s3jn54khce6mua7l",ij={};for(rT=0;rT>25;return(r&33554431)<<5^-(e>>0&1)&996825010^-(e>>1&1)&642813549^-(e>>2&1)&513874426^-(e>>3&1)&1027748829^-(e>>4&1)&705979059}function Mye(r){for(var e=1,t=0;t126)return"Invalid prefix ("+r+")";e=p2(e)^n>>5}for(e=p2(e),t=0;tt)throw new TypeError("Exceeds length limit");r=r.toLowerCase();var n=Mye(r);if(typeof n=="string")throw new Error(n);for(var a=r+"1",i=0;i>5!==0)throw new Error("Non 5-bit word");n=p2(n)^s,a+=oM.charAt(s)}for(i=0;i<6;++i)n=p2(n);for(n^=1,i=0;i<6;++i){var c=n>>(5-i)*5&31;a+=oM.charAt(c)}return a}function Iye(r,e){if(e=e||90,r.length<8)return r+" too short";if(r.length>e)return"Exceeds length limit";var t=r.toLowerCase(),n=r.toUpperCase();if(r!==t&&r!==n)return"Mixed-case string "+r;r=t;var a=r.lastIndexOf("1");if(a===-1)return"No separator character for "+r;if(a===0)return"Missing prefix for "+r;var i=r.slice(0,a),s=r.slice(a+1);if(s.length<6)return"Data too short";var c=Mye(i);if(typeof c=="string")return c;for(var l=[],d=0;d=s.length)&&l.push(w)}return c!==1?"Invalid checksum for "+r:{prefix:i,words:l}}function ICt(){var r=Iye.apply(null,arguments);if(typeof r=="object")return r}function PCt(r){var e=Iye.apply(null,arguments);if(typeof e=="object")return e;throw new Error(e)}function cM(r,e,t,n){for(var a=0,i=0,s=(1<=t;)i-=t,c.push(a>>i&s);if(n)i>0&&c.push(a<=e)return"Excess padding";if(a<{"use strict";x();T();Object.defineProperty(uM,"__esModule",{value:!0});uM.version=void 0;uM.version="providers/5.7.2"});var v0=O(yh=>{"use strict";x();T();Object.defineProperty(yh,"__esModule",{value:!0});yh.showThrottleMessage=yh.isCommunityResource=yh.isCommunityResourcable=yh.Formatter=void 0;var sj=Sl(),Nf=es(),mh=Wr(),BCt=Xy(),qCt=Xa(),Nye=If(),DCt=ur(),FCt=co(),nT=new DCt.Logger(FCt.version),UCt=function(){function r(){this.formats=this.getDefaultFormats()}return r.prototype.getDefaultFormats=function(){var e=this,t={},n=this.address.bind(this),a=this.bigNumber.bind(this),i=this.blockTag.bind(this),s=this.data.bind(this),c=this.hash.bind(this),l=this.hex.bind(this),d=this.number.bind(this),f=this.type.bind(this),w=function(E){return e.data(E,!0)};return t.transaction={hash:c,type:f,accessList:r.allowNull(this.accessList.bind(this),null),blockHash:r.allowNull(c,null),blockNumber:r.allowNull(d,null),transactionIndex:r.allowNull(d,null),confirmations:r.allowNull(d,null),from:n,gasPrice:r.allowNull(a),maxPriorityFeePerGas:r.allowNull(a),maxFeePerGas:r.allowNull(a),gasLimit:a,to:r.allowNull(n,null),value:a,nonce:d,data:s,r:r.allowNull(this.uint256),s:r.allowNull(this.uint256),v:r.allowNull(d),creates:r.allowNull(n,null),raw:r.allowNull(s)},t.transactionRequest={from:r.allowNull(n),nonce:r.allowNull(d),gasLimit:r.allowNull(a),gasPrice:r.allowNull(a),maxPriorityFeePerGas:r.allowNull(a),maxFeePerGas:r.allowNull(a),to:r.allowNull(n),value:r.allowNull(a),data:r.allowNull(w),type:r.allowNull(d),accessList:r.allowNull(this.accessList.bind(this),null)},t.receiptLog={transactionIndex:d,blockNumber:d,transactionHash:c,address:n,topics:r.arrayOf(c),data:s,logIndex:d,blockHash:c},t.receipt={to:r.allowNull(this.address,null),from:r.allowNull(this.address,null),contractAddress:r.allowNull(n,null),transactionIndex:d,root:r.allowNull(l),gasUsed:a,logsBloom:r.allowNull(s),blockHash:c,transactionHash:c,logs:r.arrayOf(this.receiptLog.bind(this)),blockNumber:d,confirmations:r.allowNull(d,null),cumulativeGasUsed:a,effectiveGasPrice:r.allowNull(a),status:r.allowNull(d),type:f},t.block={hash:r.allowNull(c),parentHash:c,number:d,timestamp:d,nonce:r.allowNull(l),difficulty:this.difficulty.bind(this),gasLimit:a,gasUsed:a,miner:r.allowNull(n),extraData:s,transactions:r.allowNull(r.arrayOf(c)),baseFeePerGas:r.allowNull(a)},t.blockWithTransactions=(0,qCt.shallowCopy)(t.block),t.blockWithTransactions.transactions=r.allowNull(r.arrayOf(this.transactionResponse.bind(this))),t.filter={fromBlock:r.allowNull(i,void 0),toBlock:r.allowNull(i,void 0),blockHash:r.allowNull(c,void 0),address:r.allowNull(n,void 0),topics:r.allowNull(this.topics.bind(this),void 0)},t.filterLog={blockNumber:r.allowNull(d),blockHash:r.allowNull(c),transactionIndex:d,removed:r.allowNull(this.boolean.bind(this)),address:n,data:r.allowFalsish(s,"0x"),topics:r.arrayOf(c),transactionHash:c,logIndex:d},t},r.prototype.accessList=function(e){return(0,Nye.accessListify)(e||[])},r.prototype.number=function(e){return e==="0x"?0:Nf.BigNumber.from(e).toNumber()},r.prototype.type=function(e){return e==="0x"||e==null?0:Nf.BigNumber.from(e).toNumber()},r.prototype.bigNumber=function(e){return Nf.BigNumber.from(e)},r.prototype.boolean=function(e){if(typeof e=="boolean")return e;if(typeof e=="string"){if(e=e.toLowerCase(),e==="true")return!0;if(e==="false")return!1}throw new Error("invalid boolean - "+e)},r.prototype.hex=function(e,t){return typeof e=="string"&&(!t&&e.substring(0,2)!=="0x"&&(e="0x"+e),(0,mh.isHexString)(e))?e.toLowerCase():nT.throwArgumentError("invalid hash","value",e)},r.prototype.data=function(e,t){var n=this.hex(e,t);if(n.length%2!==0)throw new Error("invalid data; odd-length - "+e);return n},r.prototype.address=function(e){return(0,sj.getAddress)(e)},r.prototype.callAddress=function(e){if(!(0,mh.isHexString)(e,32))return null;var t=(0,sj.getAddress)((0,mh.hexDataSlice)(e,12));return t===BCt.AddressZero?null:t},r.prototype.contractAddress=function(e){return(0,sj.getContractAddress)(e)},r.prototype.blockTag=function(e){if(e==null)return"latest";if(e==="earliest")return"0x0";switch(e){case"earliest":return"0x0";case"latest":case"pending":case"safe":case"finalized":return e}if(typeof e=="number"||(0,mh.isHexString)(e))return(0,mh.hexValue)(e);throw new Error("invalid blockTag")},r.prototype.hash=function(e,t){var n=this.hex(e,t);return(0,mh.hexDataLength)(n)!==32?nT.throwArgumentError("invalid hash","value",e):n},r.prototype.difficulty=function(e){if(e==null)return null;var t=Nf.BigNumber.from(e);try{return t.toNumber()}catch{}return null},r.prototype.uint256=function(e){if(!(0,mh.isHexString)(e))throw new Error("invalid uint256");return(0,mh.hexZeroPad)(e,32)},r.prototype._block=function(e,t){e.author!=null&&e.miner==null&&(e.miner=e.author);var n=e._difficulty!=null?e._difficulty:e.difficulty,a=r.check(t,e);return a._difficulty=n==null?null:Nf.BigNumber.from(n),a},r.prototype.block=function(e){return this._block(e,this.formats.block)},r.prototype.blockWithTransactions=function(e){return this._block(e,this.formats.blockWithTransactions)},r.prototype.transactionRequest=function(e){return r.check(this.formats.transactionRequest,e)},r.prototype.transactionResponse=function(e){e.gas!=null&&e.gasLimit==null&&(e.gasLimit=e.gas),e.to&&Nf.BigNumber.from(e.to).isZero()&&(e.to="0x0000000000000000000000000000000000000000"),e.input!=null&&e.data==null&&(e.data=e.input),e.to==null&&e.creates==null&&(e.creates=this.contractAddress(e)),(e.type===1||e.type===2)&&e.accessList==null&&(e.accessList=[]);var t=r.check(this.formats.transaction,e);if(e.chainId!=null){var n=e.chainId;(0,mh.isHexString)(n)&&(n=Nf.BigNumber.from(n).toNumber()),t.chainId=n}else{var n=e.networkId;n==null&&t.v==null&&(n=e.chainId),(0,mh.isHexString)(n)&&(n=Nf.BigNumber.from(n).toNumber()),typeof n!="number"&&t.v!=null&&(n=(t.v-35)/2,n<0&&(n=0),n=parseInt(n)),typeof n!="number"&&(n=0),t.chainId=n}return t.blockHash&&t.blockHash.replace(/0/g,"")==="x"&&(t.blockHash=null),t},r.prototype.transaction=function(e){return(0,Nye.parse)(e)},r.prototype.receiptLog=function(e){return r.check(this.formats.receiptLog,e)},r.prototype.receipt=function(e){var t=r.check(this.formats.receipt,e);if(t.root!=null)if(t.root.length<=4){var n=Nf.BigNumber.from(t.root).toNumber();n===0||n===1?(t.status!=null&&t.status!==n&&nT.throwArgumentError("alt-root-status/status mismatch","value",{root:t.root,status:t.status}),t.status=n,delete t.root):nT.throwArgumentError("invalid alt-root-status","value.root",t.root)}else t.root.length!==66&&nT.throwArgumentError("invalid root hash","value.root",t.root);return t.status!=null&&(t.byzantium=!0),t},r.prototype.topics=function(e){var t=this;return Array.isArray(e)?e.map(function(n){return t.topics(n)}):e!=null?this.hash(e,!0):null},r.prototype.filter=function(e){return r.check(this.formats.filter,e)},r.prototype.filterLog=function(e){return r.check(this.formats.filterLog,e)},r.check=function(e,t){var n={};for(var a in e)try{var i=e[a](t[a]);i!==void 0&&(n[a]=i)}catch(s){throw s.checkKey=a,s.checkValue=t[a],s}return n},r.allowNull=function(e,t){return function(n){return n==null?t:e(n)}},r.allowFalsish=function(e,t){return function(n){return n?e(n):t}},r.arrayOf=function(e){return function(t){if(!Array.isArray(t))throw new Error("not an array");var n=[];return t.forEach(function(a){n.push(e(a))}),n}},r}();yh.Formatter=UCt;function Lye(r){return r&&typeof r.isCommunityResource=="function"}yh.isCommunityResourcable=Lye;function WCt(r){return Lye(r)&&r.isCommunityResource()}yh.isCommunityResource=WCt;var Oye=!1;function jCt(){Oye||(Oye=!0,console.log("========= NOTICE ========="),console.log("Request-Rate Exceeded (this message will not be repeated)"),console.log(""),console.log("The default API keys for each service are provided as a highly-throttled,"),console.log("community resource for low-traffic projects and early prototyping."),console.log(""),console.log("While your application will continue to function, we highly recommended"),console.log("signing up for your own API keys to improve performance, increase your"),console.log("request rate/limit and enable other perks, such as metrics and advanced APIs."),console.log(""),console.log("For more details: https://docs.ethers.io/api-keys/"),console.log("=========================="))}yh.showThrottleMessage=jCt});var oT=O(Do=>{"use strict";x();T();var zCt=Do&&Do.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),Ir=Do&&Do.__awaiter||function(r,e,t,n){function a(i){return i instanceof t?i:new t(function(s){s(i)})}return new(t||(t=Promise))(function(i,s){function c(f){try{d(n.next(f))}catch(w){s(w)}}function l(f){try{d(n.throw(f))}catch(w){s(w)}}function d(f){f.done?i(f.value):a(f.value).then(c,l)}d((n=n.apply(r,e||[])).next())})},Pr=Do&&Do.__generator||function(r,e){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,s;return s={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function c(d){return function(f){return l([d,f])}}function l(d){if(n)throw new TypeError("Generator is already executing.");for(;t;)try{if(n=1,a&&(i=d[0]&2?a.return:d[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,d[1])).done)return i;switch(a=0,i&&(d=[d[0]&2,i.value]),d[0]){case 0:case 1:i=d;break;case 4:return t.label++,{value:d[1],done:!1};case 5:t.label++,a=d[1],d=[0];continue;case 7:d=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(d[0]===6||d[0]===2)){t=0;continue}if(d[0]===3&&(!i||d[1]>i[0]&&d[1]0&&r[r.length-1]==null;)r.pop();return r.map(function(e){if(Array.isArray(e)){var t={};e.forEach(function(a){t[Fye(a)]=!0});var n=Object.keys(t);return n.sort(),n.join("|")}else return Fye(e)}).join("&")}function QCt(r){return r===""?[]:r.split(/&/g).map(function(e){if(e==="")return[];var t=e.split("|").map(function(n){return n==="null"?null:n});return t.length===1?t[0]:t})}function h2(r){if(typeof r=="string"){if(r=r.toLowerCase(),(0,br.hexDataLength)(r)===32)return"tx:"+r;if(r.indexOf(":")===-1)return r}else{if(Array.isArray(r))return"filter:*:"+Uye(r);if(Vye.ForkEvent.isForkEvent(r))throw nn.warn("not implemented"),new Error("not implemented");if(r&&typeof r=="object")return"filter:"+(r.address||"*")+":"+Uye(r.topics||[])}throw new Error("invalid event - "+r)}function aT(){return new Date().getTime()}function Wye(r){return new Promise(function(e){setTimeout(e,r)})}var XCt=["block","network","pending","poll"],Gye=function(){function r(e,t,n){(0,Ji.defineReadOnly)(this,"tag",e),(0,Ji.defineReadOnly)(this,"listener",t),(0,Ji.defineReadOnly)(this,"once",n),this._lastBlockNumber=-2,this._inflight=!1}return Object.defineProperty(r.prototype,"event",{get:function(){switch(this.type){case"tx":return this.hash;case"filter":return this.filter}return this.tag},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"type",{get:function(){return this.tag.split(":")[0]},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"hash",{get:function(){var e=this.tag.split(":");return e[0]!=="tx"?null:e[1]},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"filter",{get:function(){var e=this.tag.split(":");if(e[0]!=="filter")return null;var t=e[1],n=QCt(e[2]),a={};return n.length>0&&(a.topics=n),t&&t!=="*"&&(a.address=t),a},enumerable:!1,configurable:!0}),r.prototype.pollable=function(){return this.tag.indexOf(":")>=0||XCt.indexOf(this.tag)>=0},r}();Do.Event=Gye;var YCt={0:{symbol:"btc",p2pkh:0,p2sh:5,prefix:"bc"},2:{symbol:"ltc",p2pkh:48,p2sh:50,prefix:"ltc"},3:{symbol:"doge",p2pkh:30,p2sh:22},60:{symbol:"eth",ilk:"eth"},61:{symbol:"etc",ilk:"eth"},700:{symbol:"xdai",ilk:"eth"}};function oj(r){return(0,br.hexZeroPad)(qo.BigNumber.from(r).toHexString(),32)}function jye(r){return lj.Base58.encode((0,br.concat)([r,(0,br.hexDataSlice)((0,Bye.sha256)((0,Bye.sha256)(r)),0,4)]))}var Zye=new RegExp("^(ipfs)://(.*)$","i"),zye=[new RegExp("^(https)://(.*)$","i"),new RegExp("^(data):(.*)$","i"),Zye,new RegExp("^eip155:[0-9]+/(erc[0-9]+):(.*)$","i")];function lM(r,e){try{return(0,dj.toUtf8String)(sT(r,e))}catch{}return null}function sT(r,e){if(r==="0x")return null;var t=qo.BigNumber.from((0,br.hexDataSlice)(r,e,e+32)).toNumber(),n=qo.BigNumber.from((0,br.hexDataSlice)(r,t,t+32)).toNumber();return(0,br.hexDataSlice)(r,t+32,t+32+n)}function cj(r){return r.match(/^ipfs:\/\/ipfs\//i)?r=r.substring(12):r.match(/^ipfs:\/\//i)?r=r.substring(7):nn.throwArgumentError("unsupported IPFS format","link",r),"https://gateway.ipfs.io/ipfs/"+r}function Hye(r){var e=(0,br.arrayify)(r);if(e.length>32)throw new Error("internal; should not happen");var t=new Uint8Array(32);return t.set(e,32-e.length),t}function $Ct(r){if(r.length%32===0)return r;var e=new Uint8Array(Math.ceil(r.length/32)*32);return e.set(r),e}function Jye(r){for(var e=[],t=0,n=0;n=1&&s<=75)return jye((0,br.concat)([[n.p2pkh],"0x"+i[2]]))}}if(n.p2sh!=null){var c=t.match(/^0xa9([0-9a-f][0-9a-f])([0-9a-f]*)87$/);if(c){var l=parseInt(c[1],16);if(c[2].length===l*2&&l>=1&&l<=75)return jye((0,br.concat)([[n.p2sh],"0x"+c[2]]))}}if(n.prefix!=null){var d=a[1],f=a[0];if(f===0?d!==20&&d!==32&&(f=-1):f=-1,f>=0&&a.length===2+d&&d>=1&&d<=75){var w=qye.default.toWords(a.slice(2));return w.unshift(f),qye.default.encode(n.prefix,w)}}return null},r.prototype.getAddress=function(e){return Ir(this,void 0,void 0,function(){var t,n,a,i;return Pr(this,function(s){switch(s.label){case 0:if(e==null&&(e=60),e!==60)return[3,4];s.label=1;case 1:return s.trys.push([1,3,,4]),[4,this._fetch("0x3b3b57de")];case 2:return t=s.sent(),t==="0x"||t===GCt.HashZero?[2,null]:[2,this.provider.formatter.callAddress(t)];case 3:if(n=s.sent(),n.code===ln.Logger.errors.CALL_EXCEPTION)return[2,null];throw n;case 4:return[4,this._fetchBytes("0xf1cb7e06",oj(e))];case 5:return a=s.sent(),a==null||a==="0x"?[2,null]:(i=this._getAddress(e,a),i==null&&nn.throwError("invalid or unsupported coin data",ln.Logger.errors.UNSUPPORTED_OPERATION,{operation:"getAddress("+e+")",coinType:e,data:a}),[2,i])}})})},r.prototype.getAvatar=function(){return Ir(this,void 0,void 0,function(){var e,t,n,a,i,s,c,l,d,f,w,E,k,A,L,q,U,j,H,G,te,K,ae,J,V;return Pr(this,function(g){switch(g.label){case 0:e=[{type:"name",content:this.name}],g.label=1;case 1:return g.trys.push([1,19,,20]),[4,this.getText("avatar")];case 2:if(t=g.sent(),t==null)return[2,null];n=0,g.label=3;case 3:if(!(n=0?null:JSON.stringify({data:s,sender:i}),[4,(0,f2.fetchJson)({url:f,errorPassThrough:!0},w,function(L,q){return L.status=q.statusCode,L})]):[3,4];case 2:if(E=A.sent(),E.data)return[2,E.data];if(k=E.message||"unknown error",E.status>=400&&E.status<500)return[2,nn.throwError("response not found during CCIP fetch: "+k,ln.Logger.errors.SERVER_ERROR,{url:d,errorMessage:k})];c.push(k),A.label=3;case 3:return l++,[3,1];case 4:return[2,nn.throwError("error encountered during CCIP fetch: "+c.map(function(L){return JSON.stringify(L)}).join(", "),ln.Logger.errors.SERVER_ERROR,{urls:a,errorMessages:c})]}})})},e.prototype._getInternalBlockNumber=function(t){return Ir(this,void 0,void 0,function(){var n,a,i,s,c,l=this;return Pr(this,function(d){switch(d.label){case 0:return[4,this._ready()];case 1:if(d.sent(),!(t>0))return[3,7];d.label=2;case 2:if(!this._internalBlockNumber)return[3,7];n=this._internalBlockNumber,d.label=3;case 3:return d.trys.push([3,5,,6]),[4,n];case 4:return a=d.sent(),aT()-a.respTime<=t?[2,a.blockNumber]:[3,7];case 5:return i=d.sent(),this._internalBlockNumber===n?[3,7]:[3,6];case 6:return[3,2];case 7:return s=aT(),c=(0,Ji.resolveProperties)({blockNumber:this.perform("getBlockNumber",{}),networkError:this.getNetwork().then(function(f){return null},function(f){return f})}).then(function(f){var w=f.blockNumber,E=f.networkError;if(E)throw l._internalBlockNumber===c&&(l._internalBlockNumber=null),E;var k=aT();return w=qo.BigNumber.from(w).toNumber(),w1e3)nn.warn("network block skew detected; skipping block events (emitted="+this._emitted.block+" blockNumber"+a+")"),this.emit("error",nn.makeError("network block skew detected",ln.Logger.errors.NETWORK_ERROR,{blockNumber:a,event:"blockSkew",previousBlockNumber:this._emitted.block})),this.emit("block",a);else for(s=this._emitted.block+1;s<=a;s++)this.emit("block",s);return this._emitted.block!==a&&(this._emitted.block=a,Object.keys(this._emitted).forEach(function(d){if(d!=="block"){var f=c._emitted[d];f!=="pending"&&a-f>12&&delete c._emitted[d]}})),this._lastBlockNumber===-2&&(this._lastBlockNumber=a-1),this._events.forEach(function(d){switch(d.type){case"tx":{var f=d.hash,w=c.getTransactionReceipt(f).then(function(A){return!A||A.blockNumber==null||(c._emitted["t:"+f]=A.blockNumber,c.emit(f,A)),null}).catch(function(A){c.emit("error",A)});n.push(w);break}case"filter":{if(!d._inflight){d._inflight=!0,d._lastBlockNumber===-2&&(d._lastBlockNumber=a-1);var E=d.filter;E.fromBlock=d._lastBlockNumber+1,E.toBlock=a;var k=E.toBlock-c._maxFilterBlockRange;k>E.fromBlock&&(E.fromBlock=k),E.fromBlock<0&&(E.fromBlock=0);var w=c.getLogs(E).then(function(L){d._inflight=!1,L.length!==0&&L.forEach(function(q){q.blockNumber>d._lastBlockNumber&&(d._lastBlockNumber=q.blockNumber),c._emitted["b:"+q.blockHash]=q.blockNumber,c._emitted["t:"+q.transactionHash]=q.blockNumber,c.emit(E,q)})}).catch(function(L){c.emit("error",L),d._inflight=!1});n.push(w)}break}}}),this._lastBlockNumber=a,Promise.all(n).then(function(){c.emit("didPoll",t)}).catch(function(d){c.emit("error",d)}),[2]}})})},e.prototype.resetEventsBlock=function(t){this._lastBlockNumber=t-1,this.polling&&this.poll()},Object.defineProperty(e.prototype,"network",{get:function(){return this._network},enumerable:!1,configurable:!0}),e.prototype.detectNetwork=function(){return Ir(this,void 0,void 0,function(){return Pr(this,function(t){return[2,nn.throwError("provider does not support network detection",ln.Logger.errors.UNSUPPORTED_OPERATION,{operation:"provider.detectNetwork"})]})})},e.prototype.getNetwork=function(){return Ir(this,void 0,void 0,function(){var t,n,a;return Pr(this,function(i){switch(i.label){case 0:return[4,this._ready()];case 1:return t=i.sent(),[4,this.detectNetwork()];case 2:return n=i.sent(),t.chainId===n.chainId?[3,5]:this.anyNetwork?(this._network=n,this._lastBlockNumber=-2,this._fastBlockNumber=null,this._fastBlockNumberPromise=null,this._fastQueryDate=0,this._emitted.block=-2,this._maxInternalBlockNumber=-1024,this._internalBlockNumber=null,this.emit("network",n,t),[4,Wye(0)]):[3,4];case 3:return i.sent(),[2,this._network];case 4:throw a=nn.makeError("underlying network changed",ln.Logger.errors.NETWORK_ERROR,{event:"changed",network:t,detectedNetwork:n}),this.emit("error",a),a;case 5:return[2,t]}})})},Object.defineProperty(e.prototype,"blockNumber",{get:function(){var t=this;return this._getInternalBlockNumber(100+this.pollingInterval/2).then(function(n){t._setFastBlockNumber(n)},function(n){}),this._fastBlockNumber!=null?this._fastBlockNumber:-1},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"polling",{get:function(){return this._poller!=null},set:function(t){var n=this;t&&!this._poller?(this._poller=setInterval(function(){n.poll()},this.pollingInterval),this._bootstrapPoll||(this._bootstrapPoll=setTimeout(function(){n.poll(),n._bootstrapPoll=setTimeout(function(){n._poller||n.poll(),n._bootstrapPoll=null},n.pollingInterval)},0))):!t&&this._poller&&(clearInterval(this._poller),this._poller=null)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"pollingInterval",{get:function(){return this._pollingInterval},set:function(t){var n=this;if(typeof t!="number"||t<=0||parseInt(String(t))!=t)throw new Error("invalid polling interval");this._pollingInterval=t,this._poller&&(clearInterval(this._poller),this._poller=setInterval(function(){n.poll()},this._pollingInterval))},enumerable:!1,configurable:!0}),e.prototype._getFastBlockNumber=function(){var t=this,n=aT();return n-this._fastQueryDate>2*this._pollingInterval&&(this._fastQueryDate=n,this._fastBlockNumberPromise=this.getBlockNumber().then(function(a){return(t._fastBlockNumber==null||a>t._fastBlockNumber)&&(t._fastBlockNumber=a),t._fastBlockNumber})),this._fastBlockNumberPromise},e.prototype._setFastBlockNumber=function(t){this._fastBlockNumber!=null&&tthis._fastBlockNumber)&&(this._fastBlockNumber=t,this._fastBlockNumberPromise=Promise.resolve(t)))},e.prototype.waitForTransaction=function(t,n,a){return Ir(this,void 0,void 0,function(){return Pr(this,function(i){return[2,this._waitForTransaction(t,n??1,a||0,null)]})})},e.prototype._waitForTransaction=function(t,n,a,i){return Ir(this,void 0,void 0,function(){var s,c=this;return Pr(this,function(l){switch(l.label){case 0:return[4,this.getTransactionReceipt(t)];case 1:return s=l.sent(),(s?s.confirmations:0)>=n?[2,s]:[2,new Promise(function(d,f){var w=[],E=!1,k=function(){return E?!0:(E=!0,w.forEach(function(H){H()}),!1)},A=function(H){H.confirmations0){var j=setTimeout(function(){k()||f(nn.makeError("timeout exceeded",ln.Logger.errors.TIMEOUT,{timeout:a}))},a);j.unref&&j.unref(),w.push(function(){clearTimeout(j)})}})]}})})},e.prototype.getBlockNumber=function(){return Ir(this,void 0,void 0,function(){return Pr(this,function(t){return[2,this._getInternalBlockNumber(0)]})})},e.prototype.getGasPrice=function(){return Ir(this,void 0,void 0,function(){var t;return Pr(this,function(n){switch(n.label){case 0:return[4,this.getNetwork()];case 1:return n.sent(),[4,this.perform("getGasPrice",{})];case 2:t=n.sent();try{return[2,qo.BigNumber.from(t)]}catch(a){return[2,nn.throwError("bad result from backend",ln.Logger.errors.SERVER_ERROR,{method:"getGasPrice",result:t,error:a})]}return[2]}})})},e.prototype.getBalance=function(t,n){return Ir(this,void 0,void 0,function(){var a,i;return Pr(this,function(s){switch(s.label){case 0:return[4,this.getNetwork()];case 1:return s.sent(),[4,(0,Ji.resolveProperties)({address:this._getAddress(t),blockTag:this._getBlockTag(n)})];case 2:return a=s.sent(),[4,this.perform("getBalance",a)];case 3:i=s.sent();try{return[2,qo.BigNumber.from(i)]}catch(c){return[2,nn.throwError("bad result from backend",ln.Logger.errors.SERVER_ERROR,{method:"getBalance",params:a,result:i,error:c})]}return[2]}})})},e.prototype.getTransactionCount=function(t,n){return Ir(this,void 0,void 0,function(){var a,i;return Pr(this,function(s){switch(s.label){case 0:return[4,this.getNetwork()];case 1:return s.sent(),[4,(0,Ji.resolveProperties)({address:this._getAddress(t),blockTag:this._getBlockTag(n)})];case 2:return a=s.sent(),[4,this.perform("getTransactionCount",a)];case 3:i=s.sent();try{return[2,qo.BigNumber.from(i).toNumber()]}catch(c){return[2,nn.throwError("bad result from backend",ln.Logger.errors.SERVER_ERROR,{method:"getTransactionCount",params:a,result:i,error:c})]}return[2]}})})},e.prototype.getCode=function(t,n){return Ir(this,void 0,void 0,function(){var a,i;return Pr(this,function(s){switch(s.label){case 0:return[4,this.getNetwork()];case 1:return s.sent(),[4,(0,Ji.resolveProperties)({address:this._getAddress(t),blockTag:this._getBlockTag(n)})];case 2:return a=s.sent(),[4,this.perform("getCode",a)];case 3:i=s.sent();try{return[2,(0,br.hexlify)(i)]}catch(c){return[2,nn.throwError("bad result from backend",ln.Logger.errors.SERVER_ERROR,{method:"getCode",params:a,result:i,error:c})]}return[2]}})})},e.prototype.getStorageAt=function(t,n,a){return Ir(this,void 0,void 0,function(){var i,s;return Pr(this,function(c){switch(c.label){case 0:return[4,this.getNetwork()];case 1:return c.sent(),[4,(0,Ji.resolveProperties)({address:this._getAddress(t),blockTag:this._getBlockTag(a),position:Promise.resolve(n).then(function(l){return(0,br.hexValue)(l)})})];case 2:return i=c.sent(),[4,this.perform("getStorageAt",i)];case 3:s=c.sent();try{return[2,(0,br.hexlify)(s)]}catch(l){return[2,nn.throwError("bad result from backend",ln.Logger.errors.SERVER_ERROR,{method:"getStorageAt",params:i,result:s,error:l})]}return[2]}})})},e.prototype._wrapTransaction=function(t,n,a){var i=this;if(n!=null&&(0,br.hexDataLength)(n)!==32)throw new Error("invalid response - sendTransaction");var s=t;return n!=null&&t.hash!==n&&nn.throwError("Transaction hash mismatch from Provider.sendTransaction.",ln.Logger.errors.UNKNOWN_ERROR,{expectedHash:t.hash,returnedHash:n}),s.wait=function(c,l){return Ir(i,void 0,void 0,function(){var d,f;return Pr(this,function(w){switch(w.label){case 0:return c==null&&(c=1),l==null&&(l=0),d=void 0,c!==0&&a!=null&&(d={data:t.data,from:t.from,nonce:t.nonce,to:t.to,value:t.value,startBlock:a}),[4,this._waitForTransaction(t.hash,c,l,d)];case 1:return f=w.sent(),f==null&&c===0?[2,null]:(this._emitted["t:"+t.hash]=f.blockNumber,f.status===0&&nn.throwError("transaction failed",ln.Logger.errors.CALL_EXCEPTION,{transactionHash:t.hash,transaction:t,receipt:f}),[2,f])}})})},s},e.prototype.sendTransaction=function(t){return Ir(this,void 0,void 0,function(){var n,a,i,s,c;return Pr(this,function(l){switch(l.label){case 0:return[4,this.getNetwork()];case 1:return l.sent(),[4,Promise.resolve(t).then(function(d){return(0,br.hexlify)(d)})];case 2:return n=l.sent(),a=this.formatter.transaction(t),a.confirmations==null&&(a.confirmations=0),[4,this._getInternalBlockNumber(100+2*this.pollingInterval)];case 3:i=l.sent(),l.label=4;case 4:return l.trys.push([4,6,,7]),[4,this.perform("sendTransaction",{signedTransaction:n})];case 5:return s=l.sent(),[2,this._wrapTransaction(a,s,i)];case 6:throw c=l.sent(),c.transaction=a,c.transactionHash=a.hash,c;case 7:return[2]}})})},e.prototype._getTransactionRequest=function(t){return Ir(this,void 0,void 0,function(){var n,a,i,s,c=this;return Pr(this,function(l){switch(l.label){case 0:return[4,t];case 1:return n=l.sent(),a={},["from","to"].forEach(function(d){n[d]!=null&&(a[d]=Promise.resolve(n[d]).then(function(f){return f?c._getAddress(f):null}))}),["gasLimit","gasPrice","maxFeePerGas","maxPriorityFeePerGas","value"].forEach(function(d){n[d]!=null&&(a[d]=Promise.resolve(n[d]).then(function(f){return f?qo.BigNumber.from(f):null}))}),["type"].forEach(function(d){n[d]!=null&&(a[d]=Promise.resolve(n[d]).then(function(f){return f??null}))}),n.accessList&&(a.accessList=this.formatter.accessList(n.accessList)),["data"].forEach(function(d){n[d]!=null&&(a[d]=Promise.resolve(n[d]).then(function(f){return f?(0,br.hexlify)(f):null}))}),s=(i=this.formatter).transactionRequest,[4,(0,Ji.resolveProperties)(a)];case 2:return[2,s.apply(i,[l.sent()])]}})})},e.prototype._getFilter=function(t){return Ir(this,void 0,void 0,function(){var n,a,i,s=this;return Pr(this,function(c){switch(c.label){case 0:return[4,t];case 1:return t=c.sent(),n={},t.address!=null&&(n.address=this._getAddress(t.address)),["blockHash","topics"].forEach(function(l){t[l]!=null&&(n[l]=t[l])}),["fromBlock","toBlock"].forEach(function(l){t[l]!=null&&(n[l]=s._getBlockTag(t[l]))}),i=(a=this.formatter).filter,[4,(0,Ji.resolveProperties)(n)];case 2:return[2,i.apply(a,[c.sent()])]}})})},e.prototype._call=function(t,n,a){return Ir(this,void 0,void 0,function(){var i,s,c,l,d,f,w,E,k,A,L,q,U,j,H,G;return Pr(this,function(te){switch(te.label){case 0:return a>=KCt&&nn.throwError("CCIP read exceeded maximum redirections",ln.Logger.errors.SERVER_ERROR,{redirects:a,transaction:t}),i=t.to,[4,this.perform("call",{transaction:t,blockTag:n})];case 1:if(s=te.sent(),!(a>=0&&n==="latest"&&i!=null&&s.substring(0,10)==="0x556f1830"&&(0,br.hexDataLength)(s)%32===4))return[3,5];te.label=2;case 2:for(te.trys.push([2,4,,5]),c=(0,br.hexDataSlice)(s,4),l=(0,br.hexDataSlice)(c,0,32),qo.BigNumber.from(l).eq(i)||nn.throwError("CCIP Read sender did not match",ln.Logger.errors.CALL_EXCEPTION,{name:"OffchainLookup",signature:"OffchainLookup(address,string[],bytes,bytes4,bytes)",transaction:t,data:s}),d=[],f=qo.BigNumber.from((0,br.hexDataSlice)(c,32,64)).toNumber(),w=qo.BigNumber.from((0,br.hexDataSlice)(c,f,f+32)).toNumber(),E=(0,br.hexDataSlice)(c,f+32),k=0;kthis._emitted.block?[2,null]:[2,void 0];if(!n)return[3,8];w=null,E=0,U.label=2;case 2:return E0},e.prototype._stopEvent=function(t){this.polling=this._events.filter(function(n){return n.pollable()}).length>0},e.prototype._addEventListener=function(t,n,a){var i=new Gye(h2(t),n,a);return this._events.push(i),this._startEvent(i),this},e.prototype.on=function(t,n){return this._addEventListener(t,n,!1)},e.prototype.once=function(t,n){return this._addEventListener(t,n,!0)},e.prototype.emit=function(t){for(var n=this,a=[],i=1;i{"use strict";x();T();var mj=Yl&&Yl.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),Of=Yl&&Yl.__awaiter||function(r,e,t,n){function a(i){return i instanceof t?i:new t(function(s){s(i)})}return new(t||(t=Promise))(function(i,s){function c(f){try{d(n.next(f))}catch(w){s(w)}}function l(f){try{d(n.throw(f))}catch(w){s(w)}}function d(f){f.done?i(f.value):a(f.value).then(c,l)}d((n=n.apply(r,e||[])).next())})},Lf=Yl&&Yl.__generator||function(r,e){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,s;return s={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function c(d){return function(f){return l([d,f])}}function l(d){if(n)throw new TypeError("Generator is already executing.");for(;t;)try{if(n=1,a&&(i=d[0]&2?a.return:d[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,d[1])).done)return i;switch(a=0,i&&(d=[d[0]&2,i.value]),d[0]){case 0:case 1:i=d;break;case 4:return t.label++,{value:d[1],done:!1};case 5:t.label++,a=d[1],d=[0];continue;case 7:d=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(d[0]===6||d[0]===2)){t=0;continue}if(d[0]===3&&(!i||d[1]>i[0]&&d[1]=0&&i.match(/gas required exceeds allowance|always failing transaction|execution reverted|revert/)&&os.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",gs.Logger.errors.UNPREDICTABLE_GAS_LIMIT,{error:e,method:r,transaction:n}),e}function Xye(r){return new Promise(function(e){setTimeout(e,r)})}function o8t(r){if(r.error){var e=new Error(r.error.message);throw e.code=r.error.code,e.data=r.error.data,e}return r.result}function cT(r){return r&&r.toLowerCase()}var fj={},yj=function(r){mj(e,r);function e(t,n,a){var i=r.call(this)||this;if(t!==fj)throw new Error("do not call the JsonRpcSigner constructor directly; use provider.getSigner");return(0,Ki.defineReadOnly)(i,"provider",n),a==null&&(a=0),typeof a=="string"?((0,Ki.defineReadOnly)(i,"_address",i.provider.formatter.address(a)),(0,Ki.defineReadOnly)(i,"_index",null)):typeof a=="number"?((0,Ki.defineReadOnly)(i,"_index",a),(0,Ki.defineReadOnly)(i,"_address",null)):os.throwArgumentError("invalid address or index","addressOrIndex",a),i}return e.prototype.connect=function(t){return os.throwError("cannot alter JSON-RPC Signer connection",gs.Logger.errors.UNSUPPORTED_OPERATION,{operation:"connect"})},e.prototype.connectUnchecked=function(){return new c8t(fj,this.provider,this._address||this._index)},e.prototype.getAddress=function(){var t=this;return this._address?Promise.resolve(this._address):this.provider.send("eth_accounts",[]).then(function(n){return n.length<=t._index&&os.throwError("unknown account #"+t._index,gs.Logger.errors.UNSUPPORTED_OPERATION,{operation:"getAddress"}),t.provider.formatter.address(n[t._index])})},e.prototype.sendUncheckedTransaction=function(t){var n=this;t=(0,Ki.shallowCopy)(t);var a=this.getAddress().then(function(s){return s&&(s=s.toLowerCase()),s});if(t.gasLimit==null){var i=(0,Ki.shallowCopy)(t);i.from=a,t.gasLimit=this.provider.estimateGas(i)}return t.to!=null&&(t.to=Promise.resolve(t.to).then(function(s){return Of(n,void 0,void 0,function(){var c;return Lf(this,function(l){switch(l.label){case 0:return s==null?[2,null]:[4,this.provider.resolveName(s)];case 1:return c=l.sent(),c==null&&os.throwArgumentError("provided ENS name resolves to null","tx.to",s),[2,c]}})})})),(0,Ki.resolveProperties)({tx:(0,Ki.resolveProperties)(t),sender:a}).then(function(s){var c=s.tx,l=s.sender;c.from!=null?c.from.toLowerCase()!==l&&os.throwArgumentError("from address mismatch","transaction",t):c.from=l;var d=n.provider.constructor.hexlifyTransaction(c,{from:!0});return n.provider.send("eth_sendTransaction",[d]).then(function(f){return f},function(f){return typeof f.message=="string"&&f.message.match(/user denied/i)&&os.throwError("user rejected transaction",gs.Logger.errors.ACTION_REJECTED,{action:"sendTransaction",transaction:c}),$ye("sendTransaction",f,d)})})},e.prototype.signTransaction=function(t){return os.throwError("signing transactions is unsupported",gs.Logger.errors.UNSUPPORTED_OPERATION,{operation:"signTransaction"})},e.prototype.sendTransaction=function(t){return Of(this,void 0,void 0,function(){var n,a,i,s=this;return Lf(this,function(c){switch(c.label){case 0:return[4,this.provider._getInternalBlockNumber(100+2*this.provider.pollingInterval)];case 1:return n=c.sent(),[4,this.sendUncheckedTransaction(t)];case 2:a=c.sent(),c.label=3;case 3:return c.trys.push([3,5,,6]),[4,(0,Yye.poll)(function(){return Of(s,void 0,void 0,function(){var l;return Lf(this,function(d){switch(d.label){case 0:return[4,this.provider.getTransaction(a)];case 1:return l=d.sent(),l===null?[2,void 0]:[2,this.provider._wrapTransaction(l,a,n)]}})})},{oncePoll:this.provider})];case 4:return[2,c.sent()];case 5:throw i=c.sent(),i.transactionHash=a,i;case 6:return[2]}})})},e.prototype.signMessage=function(t){return Of(this,void 0,void 0,function(){var n,a,i;return Lf(this,function(s){switch(s.label){case 0:return n=typeof t=="string"?(0,Qye.toUtf8Bytes)(t):t,[4,this.getAddress()];case 1:a=s.sent(),s.label=2;case 2:return s.trys.push([2,4,,5]),[4,this.provider.send("personal_sign",[(0,m2.hexlify)(n),a.toLowerCase()])];case 3:return[2,s.sent()];case 4:throw i=s.sent(),typeof i.message=="string"&&i.message.match(/user denied/i)&&os.throwError("user rejected signing",gs.Logger.errors.ACTION_REJECTED,{action:"signMessage",from:a,messageData:t}),i;case 5:return[2]}})})},e.prototype._legacySignMessage=function(t){return Of(this,void 0,void 0,function(){var n,a,i;return Lf(this,function(s){switch(s.label){case 0:return n=typeof t=="string"?(0,Qye.toUtf8Bytes)(t):t,[4,this.getAddress()];case 1:a=s.sent(),s.label=2;case 2:return s.trys.push([2,4,,5]),[4,this.provider.send("eth_sign",[a.toLowerCase(),(0,m2.hexlify)(n)])];case 3:return[2,s.sent()];case 4:throw i=s.sent(),typeof i.message=="string"&&i.message.match(/user denied/i)&&os.throwError("user rejected signing",gs.Logger.errors.ACTION_REJECTED,{action:"_legacySignMessage",from:a,messageData:t}),i;case 5:return[2]}})})},e.prototype._signTypedData=function(t,n,a){return Of(this,void 0,void 0,function(){var i,s,c,l=this;return Lf(this,function(d){switch(d.label){case 0:return[4,Kye._TypedDataEncoder.resolveNames(t,n,a,function(f){return l.provider.resolveName(f)})];case 1:return i=d.sent(),[4,this.getAddress()];case 2:s=d.sent(),d.label=3;case 3:return d.trys.push([3,5,,6]),[4,this.provider.send("eth_signTypedData_v4",[s.toLowerCase(),JSON.stringify(Kye._TypedDataEncoder.getPayload(i.domain,n,i.value))])];case 4:return[2,d.sent()];case 5:throw c=d.sent(),typeof c.message=="string"&&c.message.match(/user denied/i)&&os.throwError("user rejected signing",gs.Logger.errors.ACTION_REJECTED,{action:"_signTypedData",from:s,messageData:{domain:i.domain,types:n,value:i.value}}),c;case 6:return[2]}})})},e.prototype.unlock=function(t){return Of(this,void 0,void 0,function(){var n,a;return Lf(this,function(i){switch(i.label){case 0:return n=this.provider,[4,this.getAddress()];case 1:return a=i.sent(),[2,n.send("personal_unlockAccount",[a.toLowerCase(),t,null])]}})})},e}(r8t.Signer);Yl.JsonRpcSigner=yj;var c8t=function(r){mj(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.sendTransaction=function(t){var n=this;return this.sendUncheckedTransaction(t).then(function(a){return{hash:a,nonce:null,gasLimit:null,gasPrice:null,data:null,value:null,chainId:null,confirmations:0,from:null,wait:function(i){return n.provider.waitForTransaction(a,i)}}})},e}(yj),u8t={chainId:!0,data:!0,gasLimit:!0,gasPrice:!0,nonce:!0,to:!0,value:!0,type:!0,accessList:!0,maxFeePerGas:!0,maxPriorityFeePerGas:!0},l8t=function(r){mj(e,r);function e(t,n){var a=this,i=n;return i==null&&(i=new Promise(function(s,c){setTimeout(function(){a.detectNetwork().then(function(l){s(l)},function(l){c(l)})},0)})),a=r.call(this,i)||this,t||(t=(0,Ki.getStatic)(a.constructor,"defaultUrl")()),typeof t=="string"?(0,Ki.defineReadOnly)(a,"connection",Object.freeze({url:t})):(0,Ki.defineReadOnly)(a,"connection",Object.freeze((0,Ki.shallowCopy)(t))),a._nextId=42,a}return Object.defineProperty(e.prototype,"_cache",{get:function(){return this._eventLoopCache==null&&(this._eventLoopCache={}),this._eventLoopCache},enumerable:!1,configurable:!0}),e.defaultUrl=function(){return"http://localhost:8545"},e.prototype.detectNetwork=function(){var t=this;return this._cache.detectNetwork||(this._cache.detectNetwork=this._uncachedDetectNetwork(),setTimeout(function(){t._cache.detectNetwork=null},0)),this._cache.detectNetwork},e.prototype._uncachedDetectNetwork=function(){return Of(this,void 0,void 0,function(){var t,n,a,i;return Lf(this,function(s){switch(s.label){case 0:return[4,Xye(0)];case 1:s.sent(),t=null,s.label=2;case 2:return s.trys.push([2,4,,9]),[4,this.send("eth_chainId",[])];case 3:return t=s.sent(),[3,9];case 4:n=s.sent(),s.label=5;case 5:return s.trys.push([5,7,,8]),[4,this.send("net_version",[])];case 6:return t=s.sent(),[3,8];case 7:return a=s.sent(),[3,8];case 8:return[3,9];case 9:if(t!=null){i=(0,Ki.getStatic)(this.constructor,"getNetwork");try{return[2,i(hj.BigNumber.from(t).toNumber())]}catch(c){return[2,os.throwError("could not detect network",gs.Logger.errors.NETWORK_ERROR,{chainId:t,event:"invalidNetwork",serverError:c})]}}return[2,os.throwError("could not detect network",gs.Logger.errors.NETWORK_ERROR,{event:"noNetwork"})]}})})},e.prototype.getSigner=function(t){return new yj(fj,this,t)},e.prototype.getUncheckedSigner=function(t){return this.getSigner(t).connectUnchecked()},e.prototype.listAccounts=function(){var t=this;return this.send("eth_accounts",[]).then(function(n){return n.map(function(a){return t.formatter.address(a)})})},e.prototype.send=function(t,n){var a=this,i={method:t,params:n,id:this._nextId++,jsonrpc:"2.0"};this.emit("debug",{action:"request",request:(0,Ki.deepCopy)(i),provider:this});var s=["eth_chainId","eth_blockNumber"].indexOf(t)>=0;if(s&&this._cache[t])return this._cache[t];var c=(0,Yye.fetchJson)(this.connection,JSON.stringify(i),o8t).then(function(l){return a.emit("debug",{action:"response",request:i,response:l,provider:a}),l},function(l){throw a.emit("debug",{action:"response",error:l,request:i,provider:a}),l});return s&&(this._cache[t]=c,setTimeout(function(){a._cache[t]=null},0)),c},e.prototype.prepareRequest=function(t,n){switch(t){case"getBlockNumber":return["eth_blockNumber",[]];case"getGasPrice":return["eth_gasPrice",[]];case"getBalance":return["eth_getBalance",[cT(n.address),n.blockTag]];case"getTransactionCount":return["eth_getTransactionCount",[cT(n.address),n.blockTag]];case"getCode":return["eth_getCode",[cT(n.address),n.blockTag]];case"getStorageAt":return["eth_getStorageAt",[cT(n.address),(0,m2.hexZeroPad)(n.position,32),n.blockTag]];case"sendTransaction":return["eth_sendRawTransaction",[n.signedTransaction]];case"getBlock":return n.blockTag?["eth_getBlockByNumber",[n.blockTag,!!n.includeTransactions]]:n.blockHash?["eth_getBlockByHash",[n.blockHash,!!n.includeTransactions]]:null;case"getTransaction":return["eth_getTransactionByHash",[n.transactionHash]];case"getTransactionReceipt":return["eth_getTransactionReceipt",[n.transactionHash]];case"call":{var a=(0,Ki.getStatic)(this.constructor,"hexlifyTransaction");return["eth_call",[a(n.transaction,{from:!0}),n.blockTag]]}case"estimateGas":{var a=(0,Ki.getStatic)(this.constructor,"hexlifyTransaction");return["eth_estimateGas",[a(n.transaction,{from:!0})]]}case"getLogs":return n.filter&&n.filter.address!=null&&(n.filter.address=cT(n.filter.address)),["eth_getLogs",[n.filter]];default:break}return null},e.prototype.perform=function(t,n){return Of(this,void 0,void 0,function(){var a,i,s,c;return Lf(this,function(l){switch(l.label){case 0:return t==="call"||t==="estimateGas"?(a=n.transaction,a&&a.type!=null&&hj.BigNumber.from(a.type).isZero()?a.maxFeePerGas==null&&a.maxPriorityFeePerGas==null?[4,this.getFeeData()]:[3,2]:[3,2]):[3,2];case 1:i=l.sent(),i.maxFeePerGas==null&&i.maxPriorityFeePerGas==null&&(n=(0,Ki.shallowCopy)(n),n.transaction=(0,Ki.shallowCopy)(a),delete n.transaction.type),l.label=2;case 2:s=this.prepareRequest(t,n),s==null&&os.throwError(t+" not implemented",gs.Logger.errors.NOT_IMPLEMENTED,{operation:t}),l.label=3;case 3:return l.trys.push([3,5,,6]),[4,this.send(s[0],s[1])];case 4:return[2,l.sent()];case 5:return c=l.sent(),[2,$ye(t,c,n)];case 6:return[2]}})})},e.prototype._startEvent=function(t){t.tag==="pending"&&this._startPending(),r.prototype._startEvent.call(this,t)},e.prototype._startPending=function(){if(this._pendingFilter==null){var t=this,n=this.send("eth_newPendingTransactionFilter",[]);this._pendingFilter=n,n.then(function(a){function i(){t.send("eth_getFilterChanges",[a]).then(function(s){if(t._pendingFilter!=n)return null;var c=Promise.resolve();return s.forEach(function(l){t._emitted["t:"+l.toLowerCase()]="pending",c=c.then(function(){return t.getTransaction(l).then(function(d){return t.emit("pending",d),null})})}),c.then(function(){return Xye(1e3)})}).then(function(){if(t._pendingFilter!=n){t.send("eth_uninstallFilter",[a]);return}return setTimeout(function(){i()},0),null}).catch(function(s){})}return i(),a}).catch(function(a){})}},e.prototype._stopEvent=function(t){t.tag==="pending"&&this.listenerCount("pending")===0&&(this._pendingFilter=null),r.prototype._stopEvent.call(this,t)},e.hexlifyTransaction=function(t,n){var a=(0,Ki.shallowCopy)(u8t);if(n)for(var i in n)n[i]&&(a[i]=!0);(0,Ki.checkProperties)(t,a);var s={};return["chainId","gasLimit","gasPrice","type","maxFeePerGas","maxPriorityFeePerGas","nonce","value"].forEach(function(c){if(t[c]!=null){var l=(0,m2.hexValue)(hj.BigNumber.from(t[c]));c==="gasLimit"&&(c="gas"),s[c]=l}}),["from","to","data"].forEach(function(c){t[c]!=null&&(s[c]=(0,m2.hexlify)(t[c]))}),t.accessList&&(s.accessList=(0,n8t.accessListify)(t.accessList)),s},e}(i8t.BaseProvider);Yl.JsonRpcProvider=l8t});var rge=O(g2=>{"use strict";x();T();Object.defineProperty(g2,"__esModule",{value:!0});g2.WebSocket=void 0;var ege=ur(),d8t=co(),dM=null;g2.WebSocket=dM;try{if(g2.WebSocket=dM=WebSocket,dM==null)throw new Error("inject please")}catch{tge=new ege.Logger(d8t.version),g2.WebSocket=dM=function(){tge.throwError("WebSockets not supported in this environment",ege.Logger.errors.UNSUPPORTED_OPERATION,{operation:"new WebSocket()"})}}var tge});var hM=O(gh=>{"use strict";x();T();var p8t=gh&&gh.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),gj=gh&&gh.__awaiter||function(r,e,t,n){function a(i){return i instanceof t?i:new t(function(s){s(i)})}return new(t||(t=Promise))(function(i,s){function c(f){try{d(n.next(f))}catch(w){s(w)}}function l(f){try{d(n.throw(f))}catch(w){s(w)}}function d(f){f.done?i(f.value):a(f.value).then(c,l)}d((n=n.apply(r,e||[])).next())})},vj=gh&&gh.__generator||function(r,e){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,s;return s={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function c(d){return function(f){return l([d,f])}}function l(d){if(n)throw new TypeError("Generator is already executing.");for(;t;)try{if(n=1,a&&(i=d[0]&2?a.return:d[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,d[1])).done)return i;switch(a=0,i&&(d=[d[0]&2,i.value]),d[0]){case 0:case 1:i=d;break;case 4:return t.label++,{value:d[1],done:!1};case 5:t.label++,a=d[1],d=[0];continue;case 7:d=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(d[0]===6||d[0]===2)){t=0;continue}if(d[0]===3&&(!i||d[1]>i[0]&&d[1]{"use strict";x();T();var age=$l&&$l.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),v8t=$l&&$l.__awaiter||function(r,e,t,n){function a(i){return i instanceof t?i:new t(function(s){s(i)})}return new(t||(t=Promise))(function(i,s){function c(f){try{d(n.next(f))}catch(w){s(w)}}function l(f){try{d(n.throw(f))}catch(w){s(w)}}function d(f){f.done?i(f.value):a(f.value).then(c,l)}d((n=n.apply(r,e||[])).next())})},b8t=$l&&$l.__generator||function(r,e){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,s;return s={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function c(d){return function(f){return l([d,f])}}function l(d){if(n)throw new TypeError("Generator is already executing.");for(;t;)try{if(n=1,a&&(i=d[0]&2?a.return:d[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,d[1])).done)return i;switch(a=0,i&&(d=[d[0]&2,i.value]),d[0]){case 0:case 1:i=d;break;case 4:return t.label++,{value:d[1],done:!1};case 5:t.label++,a=d[1],d=[0];continue;case 7:d=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(d[0]===6||d[0]===2)){t=0;continue}if(d[0]===3&&(!i||d[1]>i[0]&&d[1]{"use strict";x();T();var oge=x0&&x0.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(x0,"__esModule",{value:!0});x0.AlchemyProvider=x0.AlchemyWebSocketProvider=void 0;var _8t=Xa(),C8t=v0(),E8t=hM(),k8t=ur(),S8t=co(),sge=new k8t.Logger(S8t.version),A8t=w0(),mM="_gg7wSSi0KMBsdKnGVfHDueq6xMB9EkC",cge=function(r){oge(e,r);function e(t,n){var a=this,i=new uge(t,n),s=i.connection.url.replace(/^http/i,"ws").replace(".alchemyapi.",".ws.alchemyapi.");return a=r.call(this,s,i.network)||this,(0,_8t.defineReadOnly)(a,"apiKey",i.apiKey),a}return e.prototype.isCommunityResource=function(){return this.apiKey===mM},e}(E8t.WebSocketProvider);x0.AlchemyWebSocketProvider=cge;var uge=function(r){oge(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.getWebSocketProvider=function(t,n){return new cge(t,n)},e.getApiKey=function(t){return t==null?mM:(t&&typeof t!="string"&&sge.throwArgumentError("invalid apiKey","apiKey",t),t)},e.getUrl=function(t,n){var a=null;switch(t.name){case"homestead":a="eth-mainnet.alchemyapi.io/v2/";break;case"goerli":a="eth-goerli.g.alchemy.com/v2/";break;case"matic":a="polygon-mainnet.g.alchemy.com/v2/";break;case"maticmum":a="polygon-mumbai.g.alchemy.com/v2/";break;case"arbitrum":a="arb-mainnet.g.alchemy.com/v2/";break;case"arbitrum-goerli":a="arb-goerli.g.alchemy.com/v2/";break;case"optimism":a="opt-mainnet.g.alchemy.com/v2/";break;case"optimism-goerli":a="opt-goerli.g.alchemy.com/v2/";break;default:sge.throwArgumentError("unsupported network","network",arguments[0])}return{allowGzip:!0,url:"https://"+a+n,throttleCallback:function(i,s){return n===mM&&(0,C8t.showThrottleMessage)(),Promise.resolve(!0)}}},e.prototype.isCommunityResource=function(){return this.apiKey===mM},e}(A8t.UrlJsonRpcProvider);x0.AlchemyProvider=uge});var dge=O(b2=>{"use strict";x();T();var M8t=b2&&b2.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(b2,"__esModule",{value:!0});b2.AnkrProvider=void 0;var I8t=v0(),P8t=w0(),R8t=ur(),N8t=co(),O8t=new R8t.Logger(N8t.version),yM="9f7d929b018cdffb338517efa06f58359e86ff1ffd350bc889738523659e7972";function L8t(r){switch(r){case"homestead":return"rpc.ankr.com/eth/";case"ropsten":return"rpc.ankr.com/eth_ropsten/";case"rinkeby":return"rpc.ankr.com/eth_rinkeby/";case"goerli":return"rpc.ankr.com/eth_goerli/";case"matic":return"rpc.ankr.com/polygon/";case"arbitrum":return"rpc.ankr.com/arbitrum/"}return O8t.throwArgumentError("unsupported network","name",r)}var B8t=function(r){M8t(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.isCommunityResource=function(){return this.apiKey===yM},e.getApiKey=function(t){return t??yM},e.getUrl=function(t,n){n==null&&(n=yM);var a={allowGzip:!0,url:"https://"+L8t(t.name)+n,throttleCallback:function(i,s){return n.apiKey===yM&&(0,I8t.showThrottleMessage)(),Promise.resolve(!0)}};return n.projectSecret!=null&&(a.user="",a.password=n.projectSecret),a},e}(P8t.UrlJsonRpcProvider);b2.AnkrProvider=B8t});var hge=O(vh=>{"use strict";x();T();var q8t=vh&&vh.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),D8t=vh&&vh.__awaiter||function(r,e,t,n){function a(i){return i instanceof t?i:new t(function(s){s(i)})}return new(t||(t=Promise))(function(i,s){function c(f){try{d(n.next(f))}catch(w){s(w)}}function l(f){try{d(n.throw(f))}catch(w){s(w)}}function d(f){f.done?i(f.value):a(f.value).then(c,l)}d((n=n.apply(r,e||[])).next())})},F8t=vh&&vh.__generator||function(r,e){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,s;return s={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function c(d){return function(f){return l([d,f])}}function l(d){if(n)throw new TypeError("Generator is already executing.");for(;t;)try{if(n=1,a&&(i=d[0]&2?a.return:d[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,d[1])).done)return i;switch(a=0,i&&(d=[d[0]&2,i.value]),d[0]){case 0:case 1:i=d;break;case 4:return t.label++,{value:d[1],done:!1};case 5:t.label++,a=d[1],d=[0];continue;case 7:d=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(d[0]===6||d[0]===2)){t=0;continue}if(d[0]===3&&(!i||d[1]>i[0]&&d[1]{"use strict";x();T();var H8t=wh&&wh.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),gM=wh&&wh.__awaiter||function(r,e,t,n){function a(i){return i instanceof t?i:new t(function(s){s(i)})}return new(t||(t=Promise))(function(i,s){function c(f){try{d(n.next(f))}catch(w){s(w)}}function l(f){try{d(n.throw(f))}catch(w){s(w)}}function d(f){f.done?i(f.value):a(f.value).then(c,l)}d((n=n.apply(r,e||[])).next())})},vM=wh&&wh.__generator||function(r,e){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,s;return s={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function c(d){return function(f){return l([d,f])}}function l(d){if(n)throw new TypeError("Generator is already executing.");for(;t;)try{if(n=1,a&&(i=d[0]&2?a.return:d[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,d[1])).done)return i;switch(a=0,i&&(d=[d[0]&2,i.value]),d[0]){case 0:case 1:i=d;break;case 4:return t.label++,{value:d[1],done:!1};case 5:t.label++,a=d[1],d=[0];continue;case 7:d=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(d[0]===6||d[0]===2)){t=0;continue}if(d[0]===3&&(!i||d[1]>i[0]&&d[1]=0&&(e.throttleRetry=!0),e}return r.result}function mge(r){if(r&&r.status==0&&r.message=="NOTOK"&&(r.result||"").toLowerCase().indexOf("rate limit")>=0){var e=new Error("throttled response");throw e.result=JSON.stringify(r),e.throttleRetry=!0,e}if(r.jsonrpc!="2.0"){var e=new Error("invalid response");throw e.result=JSON.stringify(r),e}if(r.error){var e=new Error(r.error.message||"unknown error");throw r.error.code&&(e.code=r.error.code),r.error.data&&(e.data=r.error.data),e}return r.result}function yge(r){if(r==="pending")throw new Error("pending not supported");return r==="latest"?r:parseInt(r.substring(2),16)}function wj(r,e,t){if(r==="call"&&e.code===bh.Logger.errors.SERVER_ERROR){var n=e.error;if(n&&(n.message.match(/reverted/i)||n.message.match(/VM execution error/i))){var a=n.data;if(a&&(a="0x"+a.replace(/^.*0x/i,"")),(0,bM.isHexString)(a))return a;T0.throwError("missing revert data in call exception",bh.Logger.errors.CALL_EXCEPTION,{error:e,data:"0x"})}}var i=e.message;throw e.code===bh.Logger.errors.SERVER_ERROR&&(e.error&&typeof e.error.message=="string"?i=e.error.message:typeof e.body=="string"?i=e.body:typeof e.responseText=="string"&&(i=e.responseText)),i=(i||"").toLowerCase(),i.match(/insufficient funds/)&&T0.throwError("insufficient funds for intrinsic transaction cost",bh.Logger.errors.INSUFFICIENT_FUNDS,{error:e,method:r,transaction:t}),i.match(/same hash was already imported|transaction nonce is too low|nonce too low/)&&T0.throwError("nonce has already been used",bh.Logger.errors.NONCE_EXPIRED,{error:e,method:r,transaction:t}),i.match(/another transaction with same nonce/)&&T0.throwError("replacement fee too low",bh.Logger.errors.REPLACEMENT_UNDERPRICED,{error:e,method:r,transaction:t}),i.match(/execution failed due to an exception|execution reverted/)&&T0.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",bh.Logger.errors.UNPREDICTABLE_GAS_LIMIT,{error:e,method:r,transaction:t}),e}var X8t=function(r){H8t(e,r);function e(t,n){var a=r.call(this,t)||this;return(0,bj.defineReadOnly)(a,"baseUrl",a.getBaseUrl()),(0,bj.defineReadOnly)(a,"apiKey",n||null),a}return e.prototype.getBaseUrl=function(){switch(this.network?this.network.name:"invalid"){case"homestead":return"https://api.etherscan.io";case"goerli":return"https://api-goerli.etherscan.io";case"sepolia":return"https://api-sepolia.etherscan.io";case"matic":return"https://api.polygonscan.com";case"maticmum":return"https://api-testnet.polygonscan.com";case"arbitrum":return"https://api.arbiscan.io";case"arbitrum-goerli":return"https://api-goerli.arbiscan.io";case"optimism":return"https://api-optimistic.etherscan.io";case"optimism-goerli":return"https://api-goerli-optimistic.etherscan.io";default:}return T0.throwArgumentError("unsupported network","network",this.network.name)},e.prototype.getUrl=function(t,n){var a=Object.keys(n).reduce(function(s,c){var l=n[c];return l!=null&&(s+="&"+c+"="+l),s},""),i=this.apiKey?"&apikey="+this.apiKey:"";return this.baseUrl+"/api?module="+t+a+i},e.prototype.getPostUrl=function(){return this.baseUrl+"/api"},e.prototype.getPostData=function(t,n){return n.module=t,n.apikey=this.apiKey,n},e.prototype.fetch=function(t,n,a){return gM(this,void 0,void 0,function(){var i,s,c,l,d,f,w=this;return vM(this,function(E){switch(E.label){case 0:return i=a?this.getPostUrl():this.getUrl(t,n),s=a?this.getPostData(t,n):null,c=t==="proxy"?mge:Q8t,this.emit("debug",{action:"request",request:i,provider:this}),l={url:i,throttleSlotInterval:1e3,throttleCallback:function(k,A){return w.isCommunityResource()&&(0,Z8t.showThrottleMessage)(),Promise.resolve(!0)}},d=null,s&&(l.headers={"content-type":"application/x-www-form-urlencoded; charset=UTF-8"},d=Object.keys(s).map(function(k){return k+"="+s[k]}).join("&")),[4,(0,G8t.fetchJson)(l,d,c||mge)];case 1:return f=E.sent(),this.emit("debug",{action:"response",request:i,response:(0,bj.deepCopy)(f),provider:this}),[2,f]}})})},e.prototype.detectNetwork=function(){return gM(this,void 0,void 0,function(){return vM(this,function(t){return[2,this.network]})})},e.prototype.perform=function(t,n){return gM(this,void 0,void 0,function(){var a,s,i,s,c,l,d,f,w,E,k,A,L;return vM(this,function(q){switch(q.label){case 0:switch(a=t,a){case"getBlockNumber":return[3,1];case"getGasPrice":return[3,2];case"getBalance":return[3,3];case"getTransactionCount":return[3,4];case"getCode":return[3,5];case"getStorageAt":return[3,6];case"sendTransaction":return[3,7];case"getBlock":return[3,8];case"getTransaction":return[3,9];case"getTransactionReceipt":return[3,10];case"call":return[3,11];case"estimateGas":return[3,15];case"getLogs":return[3,19];case"getEtherPrice":return[3,26]}return[3,28];case 1:return[2,this.fetch("proxy",{action:"eth_blockNumber"})];case 2:return[2,this.fetch("proxy",{action:"eth_gasPrice"})];case 3:return[2,this.fetch("account",{action:"balance",address:n.address,tag:n.blockTag})];case 4:return[2,this.fetch("proxy",{action:"eth_getTransactionCount",address:n.address,tag:n.blockTag})];case 5:return[2,this.fetch("proxy",{action:"eth_getCode",address:n.address,tag:n.blockTag})];case 6:return[2,this.fetch("proxy",{action:"eth_getStorageAt",address:n.address,position:n.position,tag:n.blockTag})];case 7:return[2,this.fetch("proxy",{action:"eth_sendRawTransaction",hex:n.signedTransaction},!0).catch(function(U){return wj("sendTransaction",U,n.signedTransaction)})];case 8:if(n.blockTag)return[2,this.fetch("proxy",{action:"eth_getBlockByNumber",tag:n.blockTag,boolean:n.includeTransactions?"true":"false"})];throw new Error("getBlock by blockHash not implemented");case 9:return[2,this.fetch("proxy",{action:"eth_getTransactionByHash",txhash:n.transactionHash})];case 10:return[2,this.fetch("proxy",{action:"eth_getTransactionReceipt",txhash:n.transactionHash})];case 11:if(n.blockTag!=="latest")throw new Error("EtherscanProvider does not support blockTag for call");s=fge(n.transaction),s.module="proxy",s.action="eth_call",q.label=12;case 12:return q.trys.push([12,14,,15]),[4,this.fetch("proxy",s,!0)];case 13:return[2,q.sent()];case 14:return i=q.sent(),[2,wj("call",i,n.transaction)];case 15:s=fge(n.transaction),s.module="proxy",s.action="eth_estimateGas",q.label=16;case 16:return q.trys.push([16,18,,19]),[4,this.fetch("proxy",s,!0)];case 17:return[2,q.sent()];case 18:return c=q.sent(),[2,wj("estimateGas",c,n.transaction)];case 19:return l={action:"getLogs"},n.filter.fromBlock&&(l.fromBlock=yge(n.filter.fromBlock)),n.filter.toBlock&&(l.toBlock=yge(n.filter.toBlock)),n.filter.address&&(l.address=n.filter.address),n.filter.topics&&n.filter.topics.length>0&&(n.filter.topics.length>1&&T0.throwError("unsupported topic count",bh.Logger.errors.UNSUPPORTED_OPERATION,{topics:n.filter.topics}),n.filter.topics.length===1&&(d=n.filter.topics[0],(typeof d!="string"||d.length!==66)&&T0.throwError("unsupported topic format",bh.Logger.errors.UNSUPPORTED_OPERATION,{topic0:d}),l.topic0=d)),[4,this.fetch("logs",l)];case 20:f=q.sent(),w={},E=0,q.label=21;case 21:return E{"use strict";x();T();var Y8t=Th&&Th.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),TM=Th&&Th.__awaiter||function(r,e,t,n){function a(i){return i instanceof t?i:new t(function(s){s(i)})}return new(t||(t=Promise))(function(i,s){function c(f){try{d(n.next(f))}catch(w){s(w)}}function l(f){try{d(n.throw(f))}catch(w){s(w)}}function d(f){f.done?i(f.value):a(f.value).then(c,l)}d((n=n.apply(r,e||[])).next())})},hT=Th&&Th.__generator||function(r,e){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,s;return s={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function c(d){return function(f){return l([d,f])}}function l(d){if(n)throw new TypeError("Generator is already executing.");for(;t;)try{if(n=1,a&&(i=d[0]&2?a.return:d[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,d[1])).done)return i;switch(a=0,i&&(d=[d[0]&2,i.value]),d[0]){case 0:case 1:i=d;break;case 4:return t.label++,{value:d[1],done:!1};case 5:t.label++,a=d[1],d=[0];continue;case 7:d=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(d[0]===6||d[0]===2)){t=0;continue}if(d[0]===3&&(!i||d[1]>i[0]&&d[1]e?null:(n+a)/2}function x2(r){if(r===null)return"null";if(typeof r=="number"||typeof r=="boolean")return JSON.stringify(r);if(typeof r=="string")return r;if(e4t.BigNumber.isBigNumber(r))return r.toString();if(Array.isArray(r))return JSON.stringify(r.map(function(t){return x2(t)}));if(typeof r=="object"){var e=Object.keys(r);return e.sort(),"{"+e.map(function(t){var n=r[t];return typeof n=="function"?n="[function]":n=x2(n),JSON.stringify(t)+":"+n}).join(",")+"}"}throw new Error("unknown value type: "+typeof r)}var i4t=1;function xge(r){var e=null,t=null,n=new Promise(function(s){e=function(){t&&(clearTimeout(t),t=null),s()},t=setTimeout(e,r)}),a=function(s){return n=n.then(s),n};function i(){return n}return{cancel:e,getPromise:i,wait:a}}var s4t=[_0.Logger.errors.CALL_EXCEPTION,_0.Logger.errors.INSUFFICIENT_FUNDS,_0.Logger.errors.NONCE_EXPIRED,_0.Logger.errors.REPLACEMENT_UNDERPRICED,_0.Logger.errors.UNPREDICTABLE_GAS_LIMIT],o4t=["address","args","errorArgs","errorSignature","method","transaction"];function xM(r,e){var t={weight:r.weight};return Object.defineProperty(t,"provider",{get:function(){return r.provider}}),r.start&&(t.start=r.start),e&&(t.duration=e-r.start),r.done&&(r.error?t.error=r.error:t.result=r.result||null),t}function c4t(r,e){return function(t){var n={};t.forEach(function(c){var l=r(c.result);n[l]||(n[l]={count:0,result:c.result}),n[l].count++});for(var a=Object.keys(n),i=0;i=e)return s.result}}}function u4t(r,e,t){var n=x2;switch(e){case"getBlockNumber":return function(a){var i=a.map(function(c){return c.result}),s=wge(a.map(function(c){return c.result}),2);if(s!=null)return s=Math.ceil(s),i.indexOf(s+1)>=0&&s++,s>=r._highestBlockNumber&&(r._highestBlockNumber=s),r._highestBlockNumber};case"getGasPrice":return function(a){var i=a.map(function(s){return s.result});return i.sort(),i[Math.floor(i.length/2)]};case"getEtherPrice":return function(a){return wge(a.map(function(i){return i.result}))};case"getBalance":case"getTransactionCount":case"getCode":case"getStorageAt":case"call":case"estimateGas":case"getLogs":break;case"getTransaction":case"getTransactionReceipt":n=function(a){return a==null?null:(a=(0,xh.shallowCopy)(a),a.confirmations=-1,x2(a))};break;case"getBlock":t.includeTransactions?n=function(a){return a==null?null:(a=(0,xh.shallowCopy)(a),a.transactions=a.transactions.map(function(i){return i=(0,xh.shallowCopy)(i),i.confirmations=-1,i}),x2(a))}:n=function(a){return a==null?null:x2(a)};break;default:throw new Error("unknown method: "+e)}return c4t(n,r.quorum)}function pT(r,e){return TM(this,void 0,void 0,function(){var t;return hT(this,function(n){return t=r.provider,t.blockNumber!=null&&t.blockNumber>=e||e===-1?[2,t]:[2,(0,r4t.poll)(function(){return new Promise(function(a,i){setTimeout(function(){return t.blockNumber>=e?a(t):r.cancelled?a(null):a(void 0)},0)})},{oncePoll:t})]})})}function l4t(r,e,t,n){return TM(this,void 0,void 0,function(){var a,i,s;return hT(this,function(c){switch(c.label){case 0:switch(a=r.provider,i=t,i){case"getBlockNumber":return[3,1];case"getGasPrice":return[3,1];case"getEtherPrice":return[3,2];case"getBalance":return[3,3];case"getTransactionCount":return[3,3];case"getCode":return[3,3];case"getStorageAt":return[3,6];case"getBlock":return[3,9];case"call":return[3,12];case"estimateGas":return[3,12];case"getTransaction":return[3,15];case"getTransactionReceipt":return[3,15];case"getLogs":return[3,16]}return[3,19];case 1:return[2,a[t]()];case 2:return a.getEtherPrice?[2,a.getEtherPrice()]:[3,19];case 3:return n.blockTag&&(0,w2.isHexString)(n.blockTag)?[4,pT(r,e)]:[3,5];case 4:a=c.sent(),c.label=5;case 5:return[2,a[t](n.address,n.blockTag||"latest")];case 6:return n.blockTag&&(0,w2.isHexString)(n.blockTag)?[4,pT(r,e)]:[3,8];case 7:a=c.sent(),c.label=8;case 8:return[2,a.getStorageAt(n.address,n.position,n.blockTag||"latest")];case 9:return n.blockTag&&(0,w2.isHexString)(n.blockTag)?[4,pT(r,e)]:[3,11];case 10:a=c.sent(),c.label=11;case 11:return[2,a[n.includeTransactions?"getBlockWithTransactions":"getBlock"](n.blockTag||n.blockHash)];case 12:return n.blockTag&&(0,w2.isHexString)(n.blockTag)?[4,pT(r,e)]:[3,14];case 13:a=c.sent(),c.label=14;case 14:return t==="call"&&n.blockTag?[2,a[t](n.transaction,n.blockTag)]:[2,a[t](n.transaction)];case 15:return[2,a[t](n.transactionHash)];case 16:return s=n.filter,s.fromBlock&&(0,w2.isHexString)(s.fromBlock)||s.toBlock&&(0,w2.isHexString)(s.toBlock)?[4,pT(r,e)]:[3,18];case 17:a=c.sent(),c.label=18;case 18:return[2,a.getLogs(s)];case 19:return[2,Vg.throwError("unknown method error",_0.Logger.errors.UNKNOWN_ERROR,{method:t,params:n})]}})})}var d4t=function(r){Y8t(e,r);function e(t,n){var a=this;t.length===0&&Vg.throwArgumentError("missing providers","providers",t);var i=t.map(function(l,d){if($8t.Provider.isProvider(l)){var f=(0,vge.isCommunityResource)(l)?2e3:750,w=1;return Object.freeze({provider:l,weight:1,stallTimeout:f,priority:w})}var E=(0,xh.shallowCopy)(l);E.priority==null&&(E.priority=1),E.stallTimeout==null&&(E.stallTimeout=(0,vge.isCommunityResource)(l)?2e3:750),E.weight==null&&(E.weight=1);var k=E.weight;return(k%1||k>512||k<1)&&Vg.throwArgumentError("invalid weight; must be integer in [1, 512]","providers["+d+"].weight",k),Object.freeze(E)}),s=i.reduce(function(l,d){return l+d.weight},0);n==null?n=s/2:n>s&&Vg.throwArgumentError("quorum will always fail; larger than total weight","quorum",n);var c=bge(i.map(function(l){return l.provider.network}));return c==null&&(c=new Promise(function(l,d){setTimeout(function(){a.detectNetwork().then(l,d)},0)})),a=r.call(this,c)||this,(0,xh.defineReadOnly)(a,"providerConfigs",Object.freeze(i)),(0,xh.defineReadOnly)(a,"quorum",n),a._highestBlockNumber=-1,a}return e.prototype.detectNetwork=function(){return TM(this,void 0,void 0,function(){var t;return hT(this,function(n){switch(n.label){case 0:return[4,Promise.all(this.providerConfigs.map(function(a){return a.provider.getNetwork()}))];case 1:return t=n.sent(),[2,bge(t)]}})})},e.prototype.perform=function(t,n){return TM(this,void 0,void 0,function(){var a,i,s,c,l,d,f,w,E,k,A,L=this;return hT(this,function(q){switch(q.label){case 0:return t!=="sendTransaction"?[3,2]:[4,Promise.all(this.providerConfigs.map(function(U){return U.provider.sendTransaction(n.signedTransaction).then(function(j){return j.hash},function(j){return j})}))];case 1:for(a=q.sent(),i=0;i=k.quorum?(K=c(te),K!==void 0?(l.forEach(function(V){V.staller&&V.staller.cancel(),V.cancelled=!0}),[2,{value:K}]):w?[3,4]:[4,xge(100).getPromise()]):[3,5];case 3:J.sent(),J.label=4;case 4:w=!1,J.label=5;case 5:return ae=l.reduce(function(V,g){if(!g.done||g.error==null)return V;var o=g.error.code;return s4t.indexOf(o)>=0&&(V[o]||(V[o]={error:g.error,weight:0}),V[o].weight+=g.weight),V},{}),Object.keys(ae).forEach(function(V){var g=ae[V];if(!(g.weight{"use strict";x();T();Object.defineProperty(_M,"__esModule",{value:!0});_M.IpcProvider=void 0;var p4t=null;_M.IpcProvider=p4t});var Sge=O(C0=>{"use strict";x();T();var Cge=C0&&C0.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(C0,"__esModule",{value:!0});C0.InfuraProvider=C0.InfuraWebSocketProvider=void 0;var xj=Xa(),h4t=hM(),f4t=v0(),Tj=ur(),m4t=co(),CM=new Tj.Logger(m4t.version),y4t=w0(),fT="84842078b09946638c03157f83405213",Ege=function(r){Cge(e,r);function e(t,n){var a=this,i=new kge(t,n),s=i.connection;s.password&&CM.throwError("INFURA WebSocket project secrets unsupported",Tj.Logger.errors.UNSUPPORTED_OPERATION,{operation:"InfuraProvider.getWebSocketProvider()"});var c=s.url.replace(/^http/i,"ws").replace("/v3/","/ws/v3/");return a=r.call(this,c,t)||this,(0,xj.defineReadOnly)(a,"apiKey",i.projectId),(0,xj.defineReadOnly)(a,"projectId",i.projectId),(0,xj.defineReadOnly)(a,"projectSecret",i.projectSecret),a}return e.prototype.isCommunityResource=function(){return this.projectId===fT},e}(h4t.WebSocketProvider);C0.InfuraWebSocketProvider=Ege;var kge=function(r){Cge(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.getWebSocketProvider=function(t,n){return new Ege(t,n)},e.getApiKey=function(t){var n={apiKey:fT,projectId:fT,projectSecret:null};return t==null||(typeof t=="string"?n.projectId=t:t.projectSecret!=null?(CM.assertArgument(typeof t.projectId=="string","projectSecret requires a projectId","projectId",t.projectId),CM.assertArgument(typeof t.projectSecret=="string","invalid projectSecret","projectSecret","[REDACTED]"),n.projectId=t.projectId,n.projectSecret=t.projectSecret):t.projectId&&(n.projectId=t.projectId),n.apiKey=n.projectId),n},e.getUrl=function(t,n){var a=null;switch(t?t.name:"unknown"){case"homestead":a="mainnet.infura.io";break;case"goerli":a="goerli.infura.io";break;case"sepolia":a="sepolia.infura.io";break;case"matic":a="polygon-mainnet.infura.io";break;case"maticmum":a="polygon-mumbai.infura.io";break;case"optimism":a="optimism-mainnet.infura.io";break;case"optimism-goerli":a="optimism-goerli.infura.io";break;case"arbitrum":a="arbitrum-mainnet.infura.io";break;case"arbitrum-goerli":a="arbitrum-goerli.infura.io";break;default:CM.throwError("unsupported network",Tj.Logger.errors.INVALID_ARGUMENT,{argument:"network",value:t})}var i={allowGzip:!0,url:"https://"+a+"/v3/"+n.projectId,throttleCallback:function(s,c){return n.projectId===fT&&(0,f4t.showThrottleMessage)(),Promise.resolve(!0)}};return n.projectSecret!=null&&(i.user="",i.password=n.projectSecret),i},e.prototype.isCommunityResource=function(){return this.projectId===fT},e}(y4t.UrlJsonRpcProvider);C0.InfuraProvider=kge});var Age=O(T2=>{"use strict";x();T();var g4t=T2&&T2.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(T2,"__esModule",{value:!0});T2.JsonRpcBatchProvider=void 0;var v4t=Xa(),b4t=Hg(),w4t=y2(),x4t=function(r){g4t(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.send=function(t,n){var a=this,i={method:t,params:n,id:this._nextId++,jsonrpc:"2.0"};this._pendingBatch==null&&(this._pendingBatch=[]);var s={request:i,resolve:null,reject:null},c=new Promise(function(l,d){s.resolve=l,s.reject=d});return this._pendingBatch.push(s),this._pendingBatchAggregator||(this._pendingBatchAggregator=setTimeout(function(){var l=a._pendingBatch;a._pendingBatch=null,a._pendingBatchAggregator=null;var d=l.map(function(f){return f.request});return a.emit("debug",{action:"requestBatch",request:(0,v4t.deepCopy)(d),provider:a}),(0,b4t.fetchJson)(a.connection,JSON.stringify(d)).then(function(f){a.emit("debug",{action:"response",request:d,response:f,provider:a}),l.forEach(function(w,E){var k=f[E];if(k.error){var A=new Error(k.error.message);A.code=k.error.code,A.data=k.error.data,w.reject(A)}else w.resolve(k.result)})},function(f){a.emit("debug",{action:"response",error:f,request:d,provider:a}),l.forEach(function(w){w.reject(f)})})},10)),c},e}(w4t.JsonRpcProvider);T2.JsonRpcBatchProvider=x4t});var Mge=O(_2=>{"use strict";x();T();var T4t=_2&&_2.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(_2,"__esModule",{value:!0});_2.NodesmithProvider=void 0;var _4t=w0(),C4t=ur(),E4t=co(),_j=new C4t.Logger(E4t.version),k4t="ETHERS_JS_SHARED",S4t=function(r){T4t(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.getApiKey=function(t){return t&&typeof t!="string"&&_j.throwArgumentError("invalid apiKey","apiKey",t),t||k4t},e.getUrl=function(t,n){_j.warn("NodeSmith will be discontinued on 2019-12-20; please migrate to another platform.");var a=null;switch(t.name){case"homestead":a="https://ethereum.api.nodesmith.io/v1/mainnet/jsonrpc";break;case"ropsten":a="https://ethereum.api.nodesmith.io/v1/ropsten/jsonrpc";break;case"rinkeby":a="https://ethereum.api.nodesmith.io/v1/rinkeby/jsonrpc";break;case"goerli":a="https://ethereum.api.nodesmith.io/v1/goerli/jsonrpc";break;case"kovan":a="https://ethereum.api.nodesmith.io/v1/kovan/jsonrpc";break;default:_j.throwArgumentError("unsupported network","network",arguments[0])}return a+"?apiKey="+n},e}(_4t.UrlJsonRpcProvider);_2.NodesmithProvider=S4t});var Nge=O(C2=>{"use strict";x();T();var A4t=C2&&C2.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(C2,"__esModule",{value:!0});C2.PocketProvider=void 0;var Rge=ur(),M4t=co(),Ige=new Rge.Logger(M4t.version),I4t=w0(),Pge="62e1ad51b37b8e00394bda3b",P4t=function(r){A4t(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.getApiKey=function(t){var n={applicationId:null,loadBalancer:!0,applicationSecretKey:null};return t==null?n.applicationId=Pge:typeof t=="string"?n.applicationId=t:t.applicationSecretKey!=null?(n.applicationId=t.applicationId,n.applicationSecretKey=t.applicationSecretKey):t.applicationId?n.applicationId=t.applicationId:Ige.throwArgumentError("unsupported PocketProvider apiKey","apiKey",t),n},e.getUrl=function(t,n){var a=null;switch(t?t.name:"unknown"){case"goerli":a="eth-goerli.gateway.pokt.network";break;case"homestead":a="eth-mainnet.gateway.pokt.network";break;case"kovan":a="poa-kovan.gateway.pokt.network";break;case"matic":a="poly-mainnet.gateway.pokt.network";break;case"maticmum":a="polygon-mumbai-rpc.gateway.pokt.network";break;case"rinkeby":a="eth-rinkeby.gateway.pokt.network";break;case"ropsten":a="eth-ropsten.gateway.pokt.network";break;default:Ige.throwError("unsupported network",Rge.Logger.errors.INVALID_ARGUMENT,{argument:"network",value:t})}var i="https://"+a+"/v1/lb/"+n.applicationId,s={headers:{},url:i};return n.applicationSecretKey!=null&&(s.user="",s.password=n.applicationSecretKey),s},e.prototype.isCommunityResource=function(){return this.applicationId===Pge},e}(I4t.UrlJsonRpcProvider);C2.PocketProvider=P4t});var Bge=O(E2=>{"use strict";x();T();var R4t=E2&&E2.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(E2,"__esModule",{value:!0});E2.Web3Provider=void 0;var EM=Xa(),N4t=ur(),O4t=co(),Oge=new N4t.Logger(O4t.version),L4t=y2(),B4t=1;function Lge(r,e){var t="Web3LegacyFetcher";return function(n,a){var i=this,s={method:n,params:a,id:B4t++,jsonrpc:"2.0"};return new Promise(function(c,l){i.emit("debug",{action:"request",fetcher:t,request:(0,EM.deepCopy)(s),provider:i}),e(s,function(d,f){if(d)return i.emit("debug",{action:"response",fetcher:t,error:d,request:s,provider:i}),l(d);if(i.emit("debug",{action:"response",fetcher:t,request:s,response:f,provider:i}),f.error){var w=new Error(f.error.message);return w.code=f.error.code,w.data=f.error.data,l(w)}c(f.result)})})}}function q4t(r){return function(e,t){var n=this;t==null&&(t=[]);var a={method:e,params:t};return this.emit("debug",{action:"request",fetcher:"Eip1193Fetcher",request:(0,EM.deepCopy)(a),provider:this}),r.request(a).then(function(i){return n.emit("debug",{action:"response",fetcher:"Eip1193Fetcher",request:a,response:i,provider:n}),i},function(i){throw n.emit("debug",{action:"response",fetcher:"Eip1193Fetcher",request:a,error:i,provider:n}),i})}}var D4t=function(r){R4t(e,r);function e(t,n){var a=this;t==null&&Oge.throwArgumentError("missing provider","provider",t);var i=null,s=null,c=null;return typeof t=="function"?(i="unknown:",s=t):(i=t.host||t.path||"",!i&&t.isMetaMask&&(i="metamask"),c=t,t.request?(i===""&&(i="eip-1193:"),s=q4t(t)):t.sendAsync?s=Lge(t,t.sendAsync.bind(t)):t.send?s=Lge(t,t.send.bind(t)):Oge.throwArgumentError("unsupported provider","provider",t),i||(i="unknown:")),a=r.call(this,i,n)||this,(0,EM.defineReadOnly)(a,"jsonRpcFetchFunc",s),(0,EM.defineReadOnly)(a,"provider",c),a}return e.prototype.send=function(t,n){return this.jsonRpcFetchFunc(t,n)},e}(L4t.JsonRpcProvider);E2.Web3Provider=D4t});var kj=O(tr=>{"use strict";x();T();Object.defineProperty(tr,"__esModule",{value:!0});tr.Formatter=tr.showThrottleMessage=tr.isCommunityResourcable=tr.isCommunityResource=tr.getNetwork=tr.getDefaultProvider=tr.JsonRpcSigner=tr.IpcProvider=tr.WebSocketProvider=tr.Web3Provider=tr.StaticJsonRpcProvider=tr.PocketProvider=tr.NodesmithProvider=tr.JsonRpcBatchProvider=tr.JsonRpcProvider=tr.InfuraWebSocketProvider=tr.InfuraProvider=tr.EtherscanProvider=tr.CloudflareProvider=tr.AnkrProvider=tr.AlchemyWebSocketProvider=tr.AlchemyProvider=tr.FallbackProvider=tr.UrlJsonRpcProvider=tr.Resolver=tr.BaseProvider=tr.Provider=void 0;var F4t=cb();Object.defineProperty(tr,"Provider",{enumerable:!0,get:function(){return F4t.Provider}});var Dge=aj();Object.defineProperty(tr,"getNetwork",{enumerable:!0,get:function(){return Dge.getNetwork}});var Fge=oT();Object.defineProperty(tr,"BaseProvider",{enumerable:!0,get:function(){return Fge.BaseProvider}});Object.defineProperty(tr,"Resolver",{enumerable:!0,get:function(){return Fge.Resolver}});var Cj=lge();Object.defineProperty(tr,"AlchemyProvider",{enumerable:!0,get:function(){return Cj.AlchemyProvider}});Object.defineProperty(tr,"AlchemyWebSocketProvider",{enumerable:!0,get:function(){return Cj.AlchemyWebSocketProvider}});var Uge=dge();Object.defineProperty(tr,"AnkrProvider",{enumerable:!0,get:function(){return Uge.AnkrProvider}});var Wge=hge();Object.defineProperty(tr,"CloudflareProvider",{enumerable:!0,get:function(){return Wge.CloudflareProvider}});var jge=gge();Object.defineProperty(tr,"EtherscanProvider",{enumerable:!0,get:function(){return jge.EtherscanProvider}});var zge=Tge();Object.defineProperty(tr,"FallbackProvider",{enumerable:!0,get:function(){return zge.FallbackProvider}});var Hge=_ge();Object.defineProperty(tr,"IpcProvider",{enumerable:!0,get:function(){return Hge.IpcProvider}});var Ej=Sge();Object.defineProperty(tr,"InfuraProvider",{enumerable:!0,get:function(){return Ej.InfuraProvider}});Object.defineProperty(tr,"InfuraWebSocketProvider",{enumerable:!0,get:function(){return Ej.InfuraWebSocketProvider}});var kM=y2();Object.defineProperty(tr,"JsonRpcProvider",{enumerable:!0,get:function(){return kM.JsonRpcProvider}});Object.defineProperty(tr,"JsonRpcSigner",{enumerable:!0,get:function(){return kM.JsonRpcSigner}});var U4t=Age();Object.defineProperty(tr,"JsonRpcBatchProvider",{enumerable:!0,get:function(){return U4t.JsonRpcBatchProvider}});var Vge=Mge();Object.defineProperty(tr,"NodesmithProvider",{enumerable:!0,get:function(){return Vge.NodesmithProvider}});var Gge=Nge();Object.defineProperty(tr,"PocketProvider",{enumerable:!0,get:function(){return Gge.PocketProvider}});var Zge=w0();Object.defineProperty(tr,"StaticJsonRpcProvider",{enumerable:!0,get:function(){return Zge.StaticJsonRpcProvider}});Object.defineProperty(tr,"UrlJsonRpcProvider",{enumerable:!0,get:function(){return Zge.UrlJsonRpcProvider}});var Jge=Bge();Object.defineProperty(tr,"Web3Provider",{enumerable:!0,get:function(){return Jge.Web3Provider}});var Kge=hM();Object.defineProperty(tr,"WebSocketProvider",{enumerable:!0,get:function(){return Kge.WebSocketProvider}});var SM=v0();Object.defineProperty(tr,"Formatter",{enumerable:!0,get:function(){return SM.Formatter}});Object.defineProperty(tr,"isCommunityResourcable",{enumerable:!0,get:function(){return SM.isCommunityResourcable}});Object.defineProperty(tr,"isCommunityResource",{enumerable:!0,get:function(){return SM.isCommunityResource}});Object.defineProperty(tr,"showThrottleMessage",{enumerable:!0,get:function(){return SM.showThrottleMessage}});var Qge=ur(),W4t=co(),qge=new Qge.Logger(W4t.version);function j4t(r,e){if(r==null&&(r="homestead"),typeof r=="string"){var t=r.match(/^(ws|http)s?:/i);if(t)switch(t[1].toLowerCase()){case"http":case"https":return new kM.JsonRpcProvider(r);case"ws":case"wss":return new Kge.WebSocketProvider(r);default:qge.throwArgumentError("unsupported URL scheme","network",r)}}var n=(0,Dge.getNetwork)(r);return(!n||!n._defaultProvider)&&qge.throwError("unsupported getDefaultProvider network",Qge.Logger.errors.NETWORK_ERROR,{operation:"getDefaultProvider",network:r}),n._defaultProvider({FallbackProvider:zge.FallbackProvider,AlchemyProvider:Cj.AlchemyProvider,AnkrProvider:Uge.AnkrProvider,CloudflareProvider:Wge.CloudflareProvider,EtherscanProvider:jge.EtherscanProvider,InfuraProvider:Ej.InfuraProvider,JsonRpcProvider:kM.JsonRpcProvider,NodesmithProvider:Vge.NodesmithProvider,PocketProvider:Gge.PocketProvider,Web3Provider:Jge.Web3Provider,IpcProvider:Hge.IpcProvider},e)}tr.getDefaultProvider=j4t});var Xge=O(AM=>{"use strict";x();T();Object.defineProperty(AM,"__esModule",{value:!0});AM.version=void 0;AM.version="solidity/5.7.0"});var $ge=O(E0=>{"use strict";x();T();Object.defineProperty(E0,"__esModule",{value:!0});E0.sha256=E0.keccak256=E0.pack=void 0;var z4t=es(),ap=Wr(),H4t=Qu(),V4t=Dg(),G4t=rs(),Z4t=new RegExp("^bytes([0-9]+)$"),J4t=new RegExp("^(u?int)([0-9]*)$"),K4t=new RegExp("^(.*)\\[([0-9]*)\\]$"),Q4t="0000000000000000000000000000000000000000000000000000000000000000",X4t=ur(),Y4t=Xge(),k2=new X4t.Logger(Y4t.version);function Yge(r,e,t){switch(r){case"address":return t?(0,ap.zeroPad)(e,32):(0,ap.arrayify)(e);case"string":return(0,G4t.toUtf8Bytes)(e);case"bytes":return(0,ap.arrayify)(e);case"bool":return e=e?"0x01":"0x00",t?(0,ap.zeroPad)(e,32):(0,ap.arrayify)(e)}var n=r.match(J4t);if(n){var a=parseInt(n[2]||"256");return(n[2]&&String(a)!==n[2]||a%8!==0||a===0||a>256)&&k2.throwArgumentError("invalid number type","type",r),t&&(a=256),e=z4t.BigNumber.from(e).toTwos(a),(0,ap.zeroPad)(e,a/8)}if(n=r.match(Z4t),n){var a=parseInt(n[1]);return(String(a)!==n[1]||a===0||a>32)&&k2.throwArgumentError("invalid bytes type","type",r),(0,ap.arrayify)(e).byteLength!==a&&k2.throwArgumentError("invalid value for "+r,"value",e),t?(0,ap.arrayify)((e+Q4t).substring(0,66)):e}if(n=r.match(K4t),n&&Array.isArray(e)){var i=n[1],s=parseInt(n[2]||String(e.length));s!=e.length&&k2.throwArgumentError("invalid array length for "+r,"value",e);var c=[];return e.forEach(function(l){c.push(Yge(i,l,!0))}),(0,ap.concat)(c)}return k2.throwArgumentError("invalid type","type",r)}function Sj(r,e){r.length!=e.length&&k2.throwArgumentError("wrong number of values; expected ${ types.length }","values",e);var t=[];return r.forEach(function(n,a){t.push(Yge(n,e[a]))}),(0,ap.hexlify)((0,ap.concat)(t))}E0.pack=Sj;function $4t(r,e){return(0,H4t.keccak256)(Sj(r,e))}E0.keccak256=$4t;function eEt(r,e){return(0,V4t.sha256)(Sj(r,e))}E0.sha256=eEt});var eve=O(MM=>{"use strict";x();T();Object.defineProperty(MM,"__esModule",{value:!0});MM.version=void 0;MM.version="units/5.7.0"});var sve=O(ed=>{"use strict";x();T();Object.defineProperty(ed,"__esModule",{value:!0});ed.parseEther=ed.formatEther=ed.parseUnits=ed.formatUnits=ed.commify=void 0;var tve=es(),tEt=ur(),rEt=eve(),rve=new tEt.Logger(rEt.version),nve=["wei","kwei","mwei","gwei","szabo","finney","ether"];function nEt(r){var e=String(r).split(".");(e.length>2||!e[0].match(/^-?[0-9]*$/)||e[1]&&!e[1].match(/^[0-9]*$/)||r==="."||r==="-.")&&rve.throwArgumentError("invalid value","value",r);var t=e[0],n="";for(t.substring(0,1)==="-"&&(n="-",t=t.substring(1));t.substring(0,1)==="0";)t=t.substring(1);t===""&&(t="0");var a="";for(e.length===2&&(a="."+(e[1]||"0"));a.length>2&&a[a.length-1]==="0";)a=a.substring(0,a.length-1);for(var i=[];t.length;)if(t.length<=3){i.unshift(t);break}else{var s=t.length-3;i.unshift(t.substring(s)),t=t.substring(0,s)}return n+i.join(",")+a}ed.commify=nEt;function ave(r,e){if(typeof e=="string"){var t=nve.indexOf(e);t!==-1&&(e=3*t)}return(0,tve.formatFixed)(r,e??18)}ed.formatUnits=ave;function ive(r,e){if(typeof r!="string"&&rve.throwArgumentError("value must be a string","value",r),typeof e=="string"){var t=nve.indexOf(e);t!==-1&&(e=3*t)}return(0,tve.parseFixed)(r,e??18)}ed.parseUnits=ive;function aEt(r){return ave(r,18)}ed.formatEther=aEt;function iEt(r){return ive(r,18)}ed.parseEther=iEt});var _i=O(Ce=>{"use strict";x();T();var sEt=Ce&&Ce.__createBinding||(Object.create?function(r,e,t,n){n===void 0&&(n=t),Object.defineProperty(r,n,{enumerable:!0,get:function(){return e[t]}})}:function(r,e,t,n){n===void 0&&(n=t),r[n]=e[t]}),oEt=Ce&&Ce.__setModuleDefault||(Object.create?function(r,e){Object.defineProperty(r,"default",{enumerable:!0,value:e})}:function(r,e){r.default=e}),ove=Ce&&Ce.__importStar||function(r){if(r&&r.__esModule)return r;var e={};if(r!=null)for(var t in r)t!=="default"&&Object.prototype.hasOwnProperty.call(r,t)&&sEt(e,r,t);return oEt(e,r),e};Object.defineProperty(Ce,"__esModule",{value:!0});Ce.formatBytes32String=Ce.Utf8ErrorFuncs=Ce.toUtf8String=Ce.toUtf8CodePoints=Ce.toUtf8Bytes=Ce._toEscapedUtf8String=Ce.nameprep=Ce.hexDataSlice=Ce.hexDataLength=Ce.hexZeroPad=Ce.hexValue=Ce.hexStripZeros=Ce.hexConcat=Ce.isHexString=Ce.hexlify=Ce.base64=Ce.base58=Ce.TransactionDescription=Ce.LogDescription=Ce.Interface=Ce.SigningKey=Ce.HDNode=Ce.defaultPath=Ce.isBytesLike=Ce.isBytes=Ce.zeroPad=Ce.stripZeros=Ce.concat=Ce.arrayify=Ce.shallowCopy=Ce.resolveProperties=Ce.getStatic=Ce.defineReadOnly=Ce.deepCopy=Ce.checkProperties=Ce.poll=Ce.fetchJson=Ce._fetchData=Ce.RLP=Ce.Logger=Ce.checkResultErrors=Ce.FormatTypes=Ce.ParamType=Ce.FunctionFragment=Ce.EventFragment=Ce.ErrorFragment=Ce.ConstructorFragment=Ce.Fragment=Ce.defaultAbiCoder=Ce.AbiCoder=void 0;Ce.Indexed=Ce.Utf8ErrorReason=Ce.UnicodeNormalizationForm=Ce.SupportedAlgorithm=Ce.mnemonicToSeed=Ce.isValidMnemonic=Ce.entropyToMnemonic=Ce.mnemonicToEntropy=Ce.getAccountPath=Ce.verifyTypedData=Ce.verifyMessage=Ce.recoverPublicKey=Ce.computePublicKey=Ce.recoverAddress=Ce.computeAddress=Ce.getJsonWalletAddress=Ce.TransactionTypes=Ce.serializeTransaction=Ce.parseTransaction=Ce.accessListify=Ce.joinSignature=Ce.splitSignature=Ce.soliditySha256=Ce.solidityKeccak256=Ce.solidityPack=Ce.shuffled=Ce.randomBytes=Ce.sha512=Ce.sha256=Ce.ripemd160=Ce.keccak256=Ce.computeHmac=Ce.commify=Ce.parseUnits=Ce.formatUnits=Ce.parseEther=Ce.formatEther=Ce.isAddress=Ce.getCreate2Address=Ce.getContractAddress=Ce.getIcapAddress=Ce.getAddress=Ce._TypedDataEncoder=Ce.id=Ce.isValidName=Ce.namehash=Ce.hashMessage=Ce.dnsEncode=Ce.parseBytes32String=void 0;var fu=CD();Object.defineProperty(Ce,"AbiCoder",{enumerable:!0,get:function(){return fu.AbiCoder}});Object.defineProperty(Ce,"checkResultErrors",{enumerable:!0,get:function(){return fu.checkResultErrors}});Object.defineProperty(Ce,"ConstructorFragment",{enumerable:!0,get:function(){return fu.ConstructorFragment}});Object.defineProperty(Ce,"defaultAbiCoder",{enumerable:!0,get:function(){return fu.defaultAbiCoder}});Object.defineProperty(Ce,"ErrorFragment",{enumerable:!0,get:function(){return fu.ErrorFragment}});Object.defineProperty(Ce,"EventFragment",{enumerable:!0,get:function(){return fu.EventFragment}});Object.defineProperty(Ce,"FormatTypes",{enumerable:!0,get:function(){return fu.FormatTypes}});Object.defineProperty(Ce,"Fragment",{enumerable:!0,get:function(){return fu.Fragment}});Object.defineProperty(Ce,"FunctionFragment",{enumerable:!0,get:function(){return fu.FunctionFragment}});Object.defineProperty(Ce,"Indexed",{enumerable:!0,get:function(){return fu.Indexed}});Object.defineProperty(Ce,"Interface",{enumerable:!0,get:function(){return fu.Interface}});Object.defineProperty(Ce,"LogDescription",{enumerable:!0,get:function(){return fu.LogDescription}});Object.defineProperty(Ce,"ParamType",{enumerable:!0,get:function(){return fu.ParamType}});Object.defineProperty(Ce,"TransactionDescription",{enumerable:!0,get:function(){return fu.TransactionDescription}});var mT=Sl();Object.defineProperty(Ce,"getAddress",{enumerable:!0,get:function(){return mT.getAddress}});Object.defineProperty(Ce,"getCreate2Address",{enumerable:!0,get:function(){return mT.getCreate2Address}});Object.defineProperty(Ce,"getContractAddress",{enumerable:!0,get:function(){return mT.getContractAddress}});Object.defineProperty(Ce,"getIcapAddress",{enumerable:!0,get:function(){return mT.getIcapAddress}});Object.defineProperty(Ce,"isAddress",{enumerable:!0,get:function(){return mT.isAddress}});var cEt=ove(R3());Ce.base64=cEt;var uEt=MA();Object.defineProperty(Ce,"base58",{enumerable:!0,get:function(){return uEt.Base58}});var Fo=Wr();Object.defineProperty(Ce,"arrayify",{enumerable:!0,get:function(){return Fo.arrayify}});Object.defineProperty(Ce,"concat",{enumerable:!0,get:function(){return Fo.concat}});Object.defineProperty(Ce,"hexConcat",{enumerable:!0,get:function(){return Fo.hexConcat}});Object.defineProperty(Ce,"hexDataSlice",{enumerable:!0,get:function(){return Fo.hexDataSlice}});Object.defineProperty(Ce,"hexDataLength",{enumerable:!0,get:function(){return Fo.hexDataLength}});Object.defineProperty(Ce,"hexlify",{enumerable:!0,get:function(){return Fo.hexlify}});Object.defineProperty(Ce,"hexStripZeros",{enumerable:!0,get:function(){return Fo.hexStripZeros}});Object.defineProperty(Ce,"hexValue",{enumerable:!0,get:function(){return Fo.hexValue}});Object.defineProperty(Ce,"hexZeroPad",{enumerable:!0,get:function(){return Fo.hexZeroPad}});Object.defineProperty(Ce,"isBytes",{enumerable:!0,get:function(){return Fo.isBytes}});Object.defineProperty(Ce,"isBytesLike",{enumerable:!0,get:function(){return Fo.isBytesLike}});Object.defineProperty(Ce,"isHexString",{enumerable:!0,get:function(){return Fo.isHexString}});Object.defineProperty(Ce,"joinSignature",{enumerable:!0,get:function(){return Fo.joinSignature}});Object.defineProperty(Ce,"zeroPad",{enumerable:!0,get:function(){return Fo.zeroPad}});Object.defineProperty(Ce,"splitSignature",{enumerable:!0,get:function(){return Fo.splitSignature}});Object.defineProperty(Ce,"stripZeros",{enumerable:!0,get:function(){return Fo.stripZeros}});var S2=rg();Object.defineProperty(Ce,"_TypedDataEncoder",{enumerable:!0,get:function(){return S2._TypedDataEncoder}});Object.defineProperty(Ce,"dnsEncode",{enumerable:!0,get:function(){return S2.dnsEncode}});Object.defineProperty(Ce,"hashMessage",{enumerable:!0,get:function(){return S2.hashMessage}});Object.defineProperty(Ce,"id",{enumerable:!0,get:function(){return S2.id}});Object.defineProperty(Ce,"isValidName",{enumerable:!0,get:function(){return S2.isValidName}});Object.defineProperty(Ce,"namehash",{enumerable:!0,get:function(){return S2.namehash}});var Gg=HA();Object.defineProperty(Ce,"defaultPath",{enumerable:!0,get:function(){return Gg.defaultPath}});Object.defineProperty(Ce,"entropyToMnemonic",{enumerable:!0,get:function(){return Gg.entropyToMnemonic}});Object.defineProperty(Ce,"getAccountPath",{enumerable:!0,get:function(){return Gg.getAccountPath}});Object.defineProperty(Ce,"HDNode",{enumerable:!0,get:function(){return Gg.HDNode}});Object.defineProperty(Ce,"isValidMnemonic",{enumerable:!0,get:function(){return Gg.isValidMnemonic}});Object.defineProperty(Ce,"mnemonicToEntropy",{enumerable:!0,get:function(){return Gg.mnemonicToEntropy}});Object.defineProperty(Ce,"mnemonicToSeed",{enumerable:!0,get:function(){return Gg.mnemonicToSeed}});var lEt=ej();Object.defineProperty(Ce,"getJsonWalletAddress",{enumerable:!0,get:function(){return lEt.getJsonWalletAddress}});var dEt=Qu();Object.defineProperty(Ce,"keccak256",{enumerable:!0,get:function(){return dEt.keccak256}});var pEt=ur();Object.defineProperty(Ce,"Logger",{enumerable:!0,get:function(){return pEt.Logger}});var IM=Dg();Object.defineProperty(Ce,"computeHmac",{enumerable:!0,get:function(){return IM.computeHmac}});Object.defineProperty(Ce,"ripemd160",{enumerable:!0,get:function(){return IM.ripemd160}});Object.defineProperty(Ce,"sha256",{enumerable:!0,get:function(){return IM.sha256}});Object.defineProperty(Ce,"sha512",{enumerable:!0,get:function(){return IM.sha512}});var Aj=$ge();Object.defineProperty(Ce,"solidityKeccak256",{enumerable:!0,get:function(){return Aj.keccak256}});Object.defineProperty(Ce,"solidityPack",{enumerable:!0,get:function(){return Aj.pack}});Object.defineProperty(Ce,"soliditySha256",{enumerable:!0,get:function(){return Aj.sha256}});var cve=X6();Object.defineProperty(Ce,"randomBytes",{enumerable:!0,get:function(){return cve.randomBytes}});Object.defineProperty(Ce,"shuffled",{enumerable:!0,get:function(){return cve.shuffled}});var A2=Xa();Object.defineProperty(Ce,"checkProperties",{enumerable:!0,get:function(){return A2.checkProperties}});Object.defineProperty(Ce,"deepCopy",{enumerable:!0,get:function(){return A2.deepCopy}});Object.defineProperty(Ce,"defineReadOnly",{enumerable:!0,get:function(){return A2.defineReadOnly}});Object.defineProperty(Ce,"getStatic",{enumerable:!0,get:function(){return A2.getStatic}});Object.defineProperty(Ce,"resolveProperties",{enumerable:!0,get:function(){return A2.resolveProperties}});Object.defineProperty(Ce,"shallowCopy",{enumerable:!0,get:function(){return A2.shallowCopy}});var hEt=ove($E());Ce.RLP=hEt;var Mj=L6();Object.defineProperty(Ce,"computePublicKey",{enumerable:!0,get:function(){return Mj.computePublicKey}});Object.defineProperty(Ce,"recoverPublicKey",{enumerable:!0,get:function(){return Mj.recoverPublicKey}});Object.defineProperty(Ce,"SigningKey",{enumerable:!0,get:function(){return Mj.SigningKey}});var k0=rs();Object.defineProperty(Ce,"formatBytes32String",{enumerable:!0,get:function(){return k0.formatBytes32String}});Object.defineProperty(Ce,"nameprep",{enumerable:!0,get:function(){return k0.nameprep}});Object.defineProperty(Ce,"parseBytes32String",{enumerable:!0,get:function(){return k0.parseBytes32String}});Object.defineProperty(Ce,"_toEscapedUtf8String",{enumerable:!0,get:function(){return k0._toEscapedUtf8String}});Object.defineProperty(Ce,"toUtf8Bytes",{enumerable:!0,get:function(){return k0.toUtf8Bytes}});Object.defineProperty(Ce,"toUtf8CodePoints",{enumerable:!0,get:function(){return k0.toUtf8CodePoints}});Object.defineProperty(Ce,"toUtf8String",{enumerable:!0,get:function(){return k0.toUtf8String}});Object.defineProperty(Ce,"Utf8ErrorFuncs",{enumerable:!0,get:function(){return k0.Utf8ErrorFuncs}});var M2=If();Object.defineProperty(Ce,"accessListify",{enumerable:!0,get:function(){return M2.accessListify}});Object.defineProperty(Ce,"computeAddress",{enumerable:!0,get:function(){return M2.computeAddress}});Object.defineProperty(Ce,"parseTransaction",{enumerable:!0,get:function(){return M2.parse}});Object.defineProperty(Ce,"recoverAddress",{enumerable:!0,get:function(){return M2.recoverAddress}});Object.defineProperty(Ce,"serializeTransaction",{enumerable:!0,get:function(){return M2.serialize}});Object.defineProperty(Ce,"TransactionTypes",{enumerable:!0,get:function(){return M2.TransactionTypes}});var yT=sve();Object.defineProperty(Ce,"commify",{enumerable:!0,get:function(){return yT.commify}});Object.defineProperty(Ce,"formatEther",{enumerable:!0,get:function(){return yT.formatEther}});Object.defineProperty(Ce,"parseEther",{enumerable:!0,get:function(){return yT.parseEther}});Object.defineProperty(Ce,"formatUnits",{enumerable:!0,get:function(){return yT.formatUnits}});Object.defineProperty(Ce,"parseUnits",{enumerable:!0,get:function(){return yT.parseUnits}});var uve=nj();Object.defineProperty(Ce,"verifyMessage",{enumerable:!0,get:function(){return uve.verifyMessage}});Object.defineProperty(Ce,"verifyTypedData",{enumerable:!0,get:function(){return uve.verifyTypedData}});var Ij=Hg();Object.defineProperty(Ce,"_fetchData",{enumerable:!0,get:function(){return Ij._fetchData}});Object.defineProperty(Ce,"fetchJson",{enumerable:!0,get:function(){return Ij.fetchJson}});Object.defineProperty(Ce,"poll",{enumerable:!0,get:function(){return Ij.poll}});var fEt=Dg();Object.defineProperty(Ce,"SupportedAlgorithm",{enumerable:!0,get:function(){return fEt.SupportedAlgorithm}});var lve=rs();Object.defineProperty(Ce,"UnicodeNormalizationForm",{enumerable:!0,get:function(){return lve.UnicodeNormalizationForm}});Object.defineProperty(Ce,"Utf8ErrorReason",{enumerable:!0,get:function(){return lve.Utf8ErrorReason}})});var dve=O(PM=>{"use strict";x();T();Object.defineProperty(PM,"__esModule",{value:!0});PM.version=void 0;PM.version="ethers/5.7.2"});var Nj=O(Dr=>{"use strict";x();T();var mEt=Dr&&Dr.__createBinding||(Object.create?function(r,e,t,n){n===void 0&&(n=t),Object.defineProperty(r,n,{enumerable:!0,get:function(){return e[t]}})}:function(r,e,t,n){n===void 0&&(n=t),r[n]=e[t]}),yEt=Dr&&Dr.__setModuleDefault||(Object.create?function(r,e){Object.defineProperty(r,"default",{enumerable:!0,value:e})}:function(r,e){r.default=e}),Pj=Dr&&Dr.__importStar||function(r){if(r&&r.__esModule)return r;var e={};if(r!=null)for(var t in r)t!=="default"&&Object.prototype.hasOwnProperty.call(r,t)&&mEt(e,r,t);return yEt(e,r),e};Object.defineProperty(Dr,"__esModule",{value:!0});Dr.Wordlist=Dr.version=Dr.wordlists=Dr.utils=Dr.logger=Dr.errors=Dr.constants=Dr.FixedNumber=Dr.BigNumber=Dr.ContractFactory=Dr.Contract=Dr.BaseContract=Dr.providers=Dr.getDefaultProvider=Dr.VoidSigner=Dr.Wallet=Dr.Signer=void 0;var Rj=zme();Object.defineProperty(Dr,"BaseContract",{enumerable:!0,get:function(){return Rj.BaseContract}});Object.defineProperty(Dr,"Contract",{enumerable:!0,get:function(){return Rj.Contract}});Object.defineProperty(Dr,"ContractFactory",{enumerable:!0,get:function(){return Rj.ContractFactory}});var pve=es();Object.defineProperty(Dr,"BigNumber",{enumerable:!0,get:function(){return pve.BigNumber}});Object.defineProperty(Dr,"FixedNumber",{enumerable:!0,get:function(){return pve.FixedNumber}});var hve=L3();Object.defineProperty(Dr,"Signer",{enumerable:!0,get:function(){return hve.Signer}});Object.defineProperty(Dr,"VoidSigner",{enumerable:!0,get:function(){return hve.VoidSigner}});var gEt=nj();Object.defineProperty(Dr,"Wallet",{enumerable:!0,get:function(){return gEt.Wallet}});var vEt=Pj(Xy());Dr.constants=vEt;var bEt=Pj(kj());Dr.providers=bEt;var wEt=kj();Object.defineProperty(Dr,"getDefaultProvider",{enumerable:!0,get:function(){return wEt.getDefaultProvider}});var fve=WW();Object.defineProperty(Dr,"Wordlist",{enumerable:!0,get:function(){return fve.Wordlist}});Object.defineProperty(Dr,"wordlists",{enumerable:!0,get:function(){return fve.wordlists}});var xEt=Pj(_i());Dr.utils=xEt;var mve=ur();Object.defineProperty(Dr,"errors",{enumerable:!0,get:function(){return mve.ErrorCode}});var yve=dve();Object.defineProperty(Dr,"version",{enumerable:!0,get:function(){return yve.version}});var TEt=new mve.Logger(yve.version);Dr.logger=TEt});var _t=O(Rr=>{"use strict";x();T();var _Et=Rr&&Rr.__createBinding||(Object.create?function(r,e,t,n){n===void 0&&(n=t),Object.defineProperty(r,n,{enumerable:!0,get:function(){return e[t]}})}:function(r,e,t,n){n===void 0&&(n=t),r[n]=e[t]}),CEt=Rr&&Rr.__setModuleDefault||(Object.create?function(r,e){Object.defineProperty(r,"default",{enumerable:!0,value:e})}:function(r,e){r.default=e}),EEt=Rr&&Rr.__importStar||function(r){if(r&&r.__esModule)return r;var e={};if(r!=null)for(var t in r)t!=="default"&&Object.prototype.hasOwnProperty.call(r,t)&&_Et(e,r,t);return CEt(e,r),e};Object.defineProperty(Rr,"__esModule",{value:!0});Rr.Wordlist=Rr.version=Rr.wordlists=Rr.utils=Rr.logger=Rr.errors=Rr.constants=Rr.FixedNumber=Rr.BigNumber=Rr.ContractFactory=Rr.Contract=Rr.BaseContract=Rr.providers=Rr.getDefaultProvider=Rr.VoidSigner=Rr.Wallet=Rr.Signer=Rr.ethers=void 0;var gve=EEt(Nj());Rr.ethers=gve;try{Oj=window,Oj._ethers==null&&(Oj._ethers=gve)}catch{}var Oj,uo=Nj();Object.defineProperty(Rr,"Signer",{enumerable:!0,get:function(){return uo.Signer}});Object.defineProperty(Rr,"Wallet",{enumerable:!0,get:function(){return uo.Wallet}});Object.defineProperty(Rr,"VoidSigner",{enumerable:!0,get:function(){return uo.VoidSigner}});Object.defineProperty(Rr,"getDefaultProvider",{enumerable:!0,get:function(){return uo.getDefaultProvider}});Object.defineProperty(Rr,"providers",{enumerable:!0,get:function(){return uo.providers}});Object.defineProperty(Rr,"BaseContract",{enumerable:!0,get:function(){return uo.BaseContract}});Object.defineProperty(Rr,"Contract",{enumerable:!0,get:function(){return uo.Contract}});Object.defineProperty(Rr,"ContractFactory",{enumerable:!0,get:function(){return uo.ContractFactory}});Object.defineProperty(Rr,"BigNumber",{enumerable:!0,get:function(){return uo.BigNumber}});Object.defineProperty(Rr,"FixedNumber",{enumerable:!0,get:function(){return uo.FixedNumber}});Object.defineProperty(Rr,"constants",{enumerable:!0,get:function(){return uo.constants}});Object.defineProperty(Rr,"errors",{enumerable:!0,get:function(){return uo.errors}});Object.defineProperty(Rr,"logger",{enumerable:!0,get:function(){return uo.logger}});Object.defineProperty(Rr,"utils",{enumerable:!0,get:function(){return uo.utils}});Object.defineProperty(Rr,"wordlists",{enumerable:!0,get:function(){return uo.wordlists}});Object.defineProperty(Rr,"version",{enumerable:!0,get:function(){return uo.version}});Object.defineProperty(Rr,"Wordlist",{enumerable:!0,get:function(){return uo.Wordlist}})});var Bj=O(Lj=>{"use strict";x();T();Object.defineProperty(Lj,"__esModule",{value:!0});Lj.default=SEt;var RM,kEt=new Uint8Array(16);function SEt(){if(!RM&&(RM=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!RM))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return RM(kEt)}});var vve=O(NM=>{"use strict";x();T();Object.defineProperty(NM,"__esModule",{value:!0});NM.default=void 0;var AEt=/^(?:[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;NM.default=AEt});var gT=O(OM=>{"use strict";x();T();Object.defineProperty(OM,"__esModule",{value:!0});OM.default=void 0;var MEt=IEt(vve());function IEt(r){return r&&r.__esModule?r:{default:r}}function PEt(r){return typeof r=="string"&&MEt.default.test(r)}var REt=PEt;OM.default=REt});var bT=O(vT=>{"use strict";x();T();Object.defineProperty(vT,"__esModule",{value:!0});vT.default=void 0;vT.unsafeStringify=bve;var NEt=OEt(gT());function OEt(r){return r&&r.__esModule?r:{default:r}}var lo=[];for(let r=0;r<256;++r)lo.push((r+256).toString(16).slice(1));function bve(r,e=0){return(lo[r[e+0]]+lo[r[e+1]]+lo[r[e+2]]+lo[r[e+3]]+"-"+lo[r[e+4]]+lo[r[e+5]]+"-"+lo[r[e+6]]+lo[r[e+7]]+"-"+lo[r[e+8]]+lo[r[e+9]]+"-"+lo[r[e+10]]+lo[r[e+11]]+lo[r[e+12]]+lo[r[e+13]]+lo[r[e+14]]+lo[r[e+15]]).toLowerCase()}function LEt(r,e=0){let t=bve(r,e);if(!(0,NEt.default)(t))throw TypeError("Stringified UUID is invalid");return t}var BEt=LEt;vT.default=BEt});var xve=O(LM=>{"use strict";x();T();Object.defineProperty(LM,"__esModule",{value:!0});LM.default=void 0;var qEt=FEt(Bj()),DEt=bT();function FEt(r){return r&&r.__esModule?r:{default:r}}var wve,qj,Dj=0,Fj=0;function UEt(r,e,t){let n=e&&t||0,a=e||new Array(16);r=r||{};let i=r.node||wve,s=r.clockseq!==void 0?r.clockseq:qj;if(i==null||s==null){let E=r.random||(r.rng||qEt.default)();i==null&&(i=wve=[E[0]|1,E[1],E[2],E[3],E[4],E[5]]),s==null&&(s=qj=(E[6]<<8|E[7])&16383)}let c=r.msecs!==void 0?r.msecs:Date.now(),l=r.nsecs!==void 0?r.nsecs:Fj+1,d=c-Dj+(l-Fj)/1e4;if(d<0&&r.clockseq===void 0&&(s=s+1&16383),(d<0||c>Dj)&&r.nsecs===void 0&&(l=0),l>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");Dj=c,Fj=l,qj=s,c+=122192928e5;let f=((c&268435455)*1e4+l)%4294967296;a[n++]=f>>>24&255,a[n++]=f>>>16&255,a[n++]=f>>>8&255,a[n++]=f&255;let w=c/4294967296*1e4&268435455;a[n++]=w>>>8&255,a[n++]=w&255,a[n++]=w>>>24&15|16,a[n++]=w>>>16&255,a[n++]=s>>>8|128,a[n++]=s&255;for(let E=0;E<6;++E)a[n+E]=i[E];return e||(0,DEt.unsafeStringify)(a)}var WEt=UEt;LM.default=WEt});var Uj=O(BM=>{"use strict";x();T();Object.defineProperty(BM,"__esModule",{value:!0});BM.default=void 0;var jEt=zEt(gT());function zEt(r){return r&&r.__esModule?r:{default:r}}function HEt(r){if(!(0,jEt.default)(r))throw TypeError("Invalid UUID");let e,t=new Uint8Array(16);return t[0]=(e=parseInt(r.slice(0,8),16))>>>24,t[1]=e>>>16&255,t[2]=e>>>8&255,t[3]=e&255,t[4]=(e=parseInt(r.slice(9,13),16))>>>8,t[5]=e&255,t[6]=(e=parseInt(r.slice(14,18),16))>>>8,t[7]=e&255,t[8]=(e=parseInt(r.slice(19,23),16))>>>8,t[9]=e&255,t[10]=(e=parseInt(r.slice(24,36),16))/1099511627776&255,t[11]=e/4294967296&255,t[12]=e>>>24&255,t[13]=e>>>16&255,t[14]=e>>>8&255,t[15]=e&255,t}var VEt=HEt;BM.default=VEt});var Wj=O(Zg=>{"use strict";x();T();Object.defineProperty(Zg,"__esModule",{value:!0});Zg.URL=Zg.DNS=void 0;Zg.default=QEt;var GEt=bT(),ZEt=JEt(Uj());function JEt(r){return r&&r.__esModule?r:{default:r}}function KEt(r){r=unescape(encodeURIComponent(r));let e=[];for(let t=0;t{"use strict";x();T();Object.defineProperty(DM,"__esModule",{value:!0});DM.default=void 0;function XEt(r){if(typeof r=="string"){let e=unescape(encodeURIComponent(r));r=new Uint8Array(e.length);for(let t=0;t>5]>>>a%32&255,s=parseInt(n.charAt(i>>>4&15)+n.charAt(i&15),16);e.push(s)}return e}function Cve(r){return(r+64>>>9<<4)+14+1}function $Et(r,e){r[e>>5]|=128<>5]|=(r[n/8]&255)<>16)+(e>>16)+(t>>16)<<16|t&65535}function tkt(r,e){return r<>>32-e}function qM(r,e,t,n,a,i){return S0(tkt(S0(S0(e,r),S0(n,i)),a),t)}function Uo(r,e,t,n,a,i,s){return qM(e&t|~e&n,r,e,a,i,s)}function Wo(r,e,t,n,a,i,s){return qM(e&n|t&~n,r,e,a,i,s)}function jo(r,e,t,n,a,i,s){return qM(e^t^n,r,e,a,i,s)}function zo(r,e,t,n,a,i,s){return qM(t^(e|~n),r,e,a,i,s)}var rkt=XEt;DM.default=rkt});var Sve=O(FM=>{"use strict";x();T();Object.defineProperty(FM,"__esModule",{value:!0});FM.default=void 0;var nkt=kve(Wj()),akt=kve(Eve());function kve(r){return r&&r.__esModule?r:{default:r}}var ikt=(0,nkt.default)("v3",48,akt.default),skt=ikt;FM.default=skt});var Ave=O(UM=>{"use strict";x();T();Object.defineProperty(UM,"__esModule",{value:!0});UM.default=void 0;var okt=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),ckt={randomUUID:okt};UM.default=ckt});var Pve=O(WM=>{"use strict";x();T();Object.defineProperty(WM,"__esModule",{value:!0});WM.default=void 0;var Mve=Ive(Ave()),ukt=Ive(Bj()),lkt=bT();function Ive(r){return r&&r.__esModule?r:{default:r}}function dkt(r,e,t){if(Mve.default.randomUUID&&!e&&!r)return Mve.default.randomUUID();r=r||{};let n=r.random||(r.rng||ukt.default)();if(n[6]=n[6]&15|64,n[8]=n[8]&63|128,e){t=t||0;for(let a=0;a<16;++a)e[t+a]=n[a];return e}return(0,lkt.unsafeStringify)(n)}var pkt=dkt;WM.default=pkt});var Rve=O(jM=>{"use strict";x();T();Object.defineProperty(jM,"__esModule",{value:!0});jM.default=void 0;function hkt(r,e,t,n){switch(r){case 0:return e&t^~e&n;case 1:return e^t^n;case 2:return e&t^e&n^t&n;case 3:return e^t^n}}function jj(r,e){return r<>>32-e}function fkt(r){let e=[1518500249,1859775393,2400959708,3395469782],t=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof r=="string"){let s=unescape(encodeURIComponent(r));r=[];for(let c=0;c>>0;E=w,w=f,f=jj(d,30)>>>0,d=l,l=L}t[0]=t[0]+l>>>0,t[1]=t[1]+d>>>0,t[2]=t[2]+f>>>0,t[3]=t[3]+w>>>0,t[4]=t[4]+E>>>0}return[t[0]>>24&255,t[0]>>16&255,t[0]>>8&255,t[0]&255,t[1]>>24&255,t[1]>>16&255,t[1]>>8&255,t[1]&255,t[2]>>24&255,t[2]>>16&255,t[2]>>8&255,t[2]&255,t[3]>>24&255,t[3]>>16&255,t[3]>>8&255,t[3]&255,t[4]>>24&255,t[4]>>16&255,t[4]>>8&255,t[4]&255]}var mkt=fkt;jM.default=mkt});var Ove=O(zM=>{"use strict";x();T();Object.defineProperty(zM,"__esModule",{value:!0});zM.default=void 0;var ykt=Nve(Wj()),gkt=Nve(Rve());function Nve(r){return r&&r.__esModule?r:{default:r}}var vkt=(0,ykt.default)("v5",80,gkt.default),bkt=vkt;zM.default=bkt});var Lve=O(HM=>{"use strict";x();T();Object.defineProperty(HM,"__esModule",{value:!0});HM.default=void 0;var wkt="00000000-0000-0000-0000-000000000000";HM.default=wkt});var Bve=O(VM=>{"use strict";x();T();Object.defineProperty(VM,"__esModule",{value:!0});VM.default=void 0;var xkt=Tkt(gT());function Tkt(r){return r&&r.__esModule?r:{default:r}}function _kt(r){if(!(0,xkt.default)(r))throw TypeError("Invalid UUID");return parseInt(r.slice(14,15),16)}var Ckt=_kt;VM.default=Ckt});var wT=O(ip=>{"use strict";x();T();Object.defineProperty(ip,"__esModule",{value:!0});Object.defineProperty(ip,"NIL",{enumerable:!0,get:function(){return Mkt.default}});Object.defineProperty(ip,"parse",{enumerable:!0,get:function(){return Nkt.default}});Object.defineProperty(ip,"stringify",{enumerable:!0,get:function(){return Rkt.default}});Object.defineProperty(ip,"v1",{enumerable:!0,get:function(){return Ekt.default}});Object.defineProperty(ip,"v3",{enumerable:!0,get:function(){return kkt.default}});Object.defineProperty(ip,"v4",{enumerable:!0,get:function(){return Skt.default}});Object.defineProperty(ip,"v5",{enumerable:!0,get:function(){return Akt.default}});Object.defineProperty(ip,"validate",{enumerable:!0,get:function(){return Pkt.default}});Object.defineProperty(ip,"version",{enumerable:!0,get:function(){return Ikt.default}});var Ekt=Bf(xve()),kkt=Bf(Sve()),Skt=Bf(Pve()),Akt=Bf(Ove()),Mkt=Bf(Lve()),Ikt=Bf(Bve()),Pkt=Bf(gT()),Rkt=Bf(bT()),Nkt=Bf(Uj());function Bf(r){return r&&r.__esModule?r:{default:r}}});var xT=O(bi=>{"use strict";x();T();Object.defineProperty(bi,"__esModule",{value:!0});bi.getParsedType=bi.ZodParsedType=bi.util=void 0;var qve;(function(r){r.assertEqual=a=>a;function e(a){}r.assertIs=e;function t(a){throw new Error}r.assertNever=t,r.arrayToEnum=a=>{let i={};for(let s of a)i[s]=s;return i},r.getValidEnumValues=a=>{let i=r.objectKeys(a).filter(c=>typeof a[a[c]]!="number"),s={};for(let c of i)s[c]=a[c];return r.objectValues(s)},r.objectValues=a=>r.objectKeys(a).map(function(i){return a[i]}),r.objectKeys=typeof Object.keys=="function"?a=>Object.keys(a):a=>{let i=[];for(let s in a)Object.prototype.hasOwnProperty.call(a,s)&&i.push(s);return i},r.find=(a,i)=>{for(let s of a)if(i(s))return s},r.isInteger=typeof Number.isInteger=="function"?a=>Number.isInteger(a):a=>typeof a=="number"&&isFinite(a)&&Math.floor(a)===a;function n(a,i=" | "){return a.map(s=>typeof s=="string"?`'${s}'`:s).join(i)}r.joinValues=n,r.jsonStringifyReplacer=(a,i)=>typeof i=="bigint"?i.toString():i})(qve=bi.util||(bi.util={}));bi.ZodParsedType=qve.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]);var Okt=r=>{switch(typeof r){case"undefined":return bi.ZodParsedType.undefined;case"string":return bi.ZodParsedType.string;case"number":return isNaN(r)?bi.ZodParsedType.nan:bi.ZodParsedType.number;case"boolean":return bi.ZodParsedType.boolean;case"function":return bi.ZodParsedType.function;case"bigint":return bi.ZodParsedType.bigint;case"symbol":return bi.ZodParsedType.symbol;case"object":return Array.isArray(r)?bi.ZodParsedType.array:r===null?bi.ZodParsedType.null:r.then&&typeof r.then=="function"&&r.catch&&typeof r.catch=="function"?bi.ZodParsedType.promise:typeof Map<"u"&&r instanceof Map?bi.ZodParsedType.map:typeof Set<"u"&&r instanceof Set?bi.ZodParsedType.set:typeof Date<"u"&&r instanceof Date?bi.ZodParsedType.date:bi.ZodParsedType.object;default:return bi.ZodParsedType.unknown}};bi.getParsedType=Okt});var GM=O(A0=>{"use strict";x();T();Object.defineProperty(A0,"__esModule",{value:!0});A0.ZodError=A0.quotelessJson=A0.ZodIssueCode=void 0;var Dve=xT();A0.ZodIssueCode=Dve.util.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);var Lkt=r=>JSON.stringify(r,null,2).replace(/"([^"]+)":/g,"$1:");A0.quotelessJson=Lkt;var TT=class extends Error{constructor(e){super(),this.issues=[],this.addIssue=n=>{this.issues=[...this.issues,n]},this.addIssues=(n=[])=>{this.issues=[...this.issues,...n]};let t=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,t):this.__proto__=t,this.name="ZodError",this.issues=e}get errors(){return this.issues}format(e){let t=e||function(i){return i.message},n={_errors:[]},a=i=>{for(let s of i.issues)if(s.code==="invalid_union")s.unionErrors.map(a);else if(s.code==="invalid_return_type")a(s.returnTypeError);else if(s.code==="invalid_arguments")a(s.argumentsError);else if(s.path.length===0)n._errors.push(t(s));else{let c=n,l=0;for(;lt.message){let t={},n=[];for(let a of this.issues)a.path.length>0?(t[a.path[0]]=t[a.path[0]]||[],t[a.path[0]].push(e(a))):n.push(e(a));return{formErrors:n,fieldErrors:t}}get formErrors(){return this.flatten()}};A0.ZodError=TT;TT.create=r=>new TT(r)});var Hj=O(zj=>{"use strict";x();T();Object.defineProperty(zj,"__esModule",{value:!0});var Jg=xT(),Ho=GM(),Bkt=(r,e)=>{let t;switch(r.code){case Ho.ZodIssueCode.invalid_type:r.received===Jg.ZodParsedType.undefined?t="Required":t=`Expected ${r.expected}, received ${r.received}`;break;case Ho.ZodIssueCode.invalid_literal:t=`Invalid literal value, expected ${JSON.stringify(r.expected,Jg.util.jsonStringifyReplacer)}`;break;case Ho.ZodIssueCode.unrecognized_keys:t=`Unrecognized key(s) in object: ${Jg.util.joinValues(r.keys,", ")}`;break;case Ho.ZodIssueCode.invalid_union:t="Invalid input";break;case Ho.ZodIssueCode.invalid_union_discriminator:t=`Invalid discriminator value. Expected ${Jg.util.joinValues(r.options)}`;break;case Ho.ZodIssueCode.invalid_enum_value:t=`Invalid enum value. Expected ${Jg.util.joinValues(r.options)}, received '${r.received}'`;break;case Ho.ZodIssueCode.invalid_arguments:t="Invalid function arguments";break;case Ho.ZodIssueCode.invalid_return_type:t="Invalid function return type";break;case Ho.ZodIssueCode.invalid_date:t="Invalid date";break;case Ho.ZodIssueCode.invalid_string:typeof r.validation=="object"?"startsWith"in r.validation?t=`Invalid input: must start with "${r.validation.startsWith}"`:"endsWith"in r.validation?t=`Invalid input: must end with "${r.validation.endsWith}"`:Jg.util.assertNever(r.validation):r.validation!=="regex"?t=`Invalid ${r.validation}`:t="Invalid";break;case Ho.ZodIssueCode.too_small:r.type==="array"?t=`Array must contain ${r.exact?"exactly":r.inclusive?"at least":"more than"} ${r.minimum} element(s)`:r.type==="string"?t=`String must contain ${r.exact?"exactly":r.inclusive?"at least":"over"} ${r.minimum} character(s)`:r.type==="number"?t=`Number must be ${r.exact?"exactly equal to ":r.inclusive?"greater than or equal to ":"greater than "}${r.minimum}`:r.type==="date"?t=`Date must be ${r.exact?"exactly equal to ":r.inclusive?"greater than or equal to ":"greater than "}${new Date(r.minimum)}`:t="Invalid input";break;case Ho.ZodIssueCode.too_big:r.type==="array"?t=`Array must contain ${r.exact?"exactly":r.inclusive?"at most":"less than"} ${r.maximum} element(s)`:r.type==="string"?t=`String must contain ${r.exact?"exactly":r.inclusive?"at most":"under"} ${r.maximum} character(s)`:r.type==="number"?t=`Number must be ${r.exact?"exactly":r.inclusive?"less than or equal to":"less than"} ${r.maximum}`:r.type==="date"?t=`Date must be ${r.exact?"exactly":r.inclusive?"smaller than or equal to":"smaller than"} ${new Date(r.maximum)}`:t="Invalid input";break;case Ho.ZodIssueCode.custom:t="Invalid input";break;case Ho.ZodIssueCode.invalid_intersection_types:t="Intersection results could not be merged";break;case Ho.ZodIssueCode.not_multiple_of:t=`Number must be a multiple of ${r.multipleOf}`;break;case Ho.ZodIssueCode.not_finite:t="Number must be finite";break;default:t=e.defaultError,Jg.util.assertNever(r)}return{message:t}};zj.default=Bkt});var ZM=O(_h=>{"use strict";x();T();var qkt=_h&&_h.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(_h,"__esModule",{value:!0});_h.getErrorMap=_h.setErrorMap=_h.defaultErrorMap=void 0;var Fve=qkt(Hj());_h.defaultErrorMap=Fve.default;var Uve=Fve.default;function Dkt(r){Uve=r}_h.setErrorMap=Dkt;function Fkt(){return Uve}_h.getErrorMap=Fkt});var Vj=O($a=>{"use strict";x();T();var Ukt=$a&&$a.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty($a,"__esModule",{value:!0});$a.isAsync=$a.isValid=$a.isDirty=$a.isAborted=$a.OK=$a.DIRTY=$a.INVALID=$a.ParseStatus=$a.addIssueToContext=$a.EMPTY_PATH=$a.makeIssue=void 0;var Wkt=ZM(),jkt=Ukt(Hj()),zkt=r=>{let{data:e,path:t,errorMaps:n,issueData:a}=r,i=[...t,...a.path||[]],s={...a,path:i},c="",l=n.filter(d=>!!d).slice().reverse();for(let d of l)c=d(s,{data:e,defaultError:c}).message;return{...a,path:i,message:a.message||c}};$a.makeIssue=zkt;$a.EMPTY_PATH=[];function Hkt(r,e){let t=(0,$a.makeIssue)({issueData:e,data:r.data,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,(0,Wkt.getErrorMap)(),jkt.default].filter(n=>!!n)});r.common.issues.push(t)}$a.addIssueToContext=Hkt;var _T=class{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(e,t){let n=[];for(let a of t){if(a.status==="aborted")return $a.INVALID;a.status==="dirty"&&e.dirty(),n.push(a.value)}return{status:e.value,value:n}}static async mergeObjectAsync(e,t){let n=[];for(let a of t)n.push({key:await a.key,value:await a.value});return _T.mergeObjectSync(e,n)}static mergeObjectSync(e,t){let n={};for(let a of t){let{key:i,value:s}=a;if(i.status==="aborted"||s.status==="aborted")return $a.INVALID;i.status==="dirty"&&e.dirty(),s.status==="dirty"&&e.dirty(),(typeof s.value<"u"||a.alwaysSet)&&(n[i.value]=s.value)}return{status:e.value,value:n}}};$a.ParseStatus=_T;$a.INVALID=Object.freeze({status:"aborted"});var Vkt=r=>({status:"dirty",value:r});$a.DIRTY=Vkt;var Gkt=r=>({status:"valid",value:r});$a.OK=Gkt;var Zkt=r=>r.status==="aborted";$a.isAborted=Zkt;var Jkt=r=>r.status==="dirty";$a.isDirty=Jkt;var Kkt=r=>r.status==="valid";$a.isValid=Kkt;var Qkt=r=>typeof Promise!==void 0&&r instanceof Promise;$a.isAsync=Qkt});var jve=O(Wve=>{"use strict";x();T();Object.defineProperty(Wve,"__esModule",{value:!0})});var zve=O(CT=>{"use strict";x();T();Object.defineProperty(CT,"__esModule",{value:!0});CT.errorUtil=void 0;var Xkt;(function(r){r.errToObj=e=>typeof e=="string"?{message:e}:e||{},r.toString=e=>typeof e=="string"?e:e?.message})(Xkt=CT.errorUtil||(CT.errorUtil={}))});var Yve=O(He=>{"use strict";x();T();Object.defineProperty(He,"__esModule",{value:!0});He.date=He.boolean=He.bigint=He.array=He.any=He.coerce=He.ZodFirstPartyTypeKind=He.late=He.ZodSchema=He.Schema=He.custom=He.ZodPipeline=He.ZodBranded=He.BRAND=He.ZodNaN=He.ZodCatch=He.ZodDefault=He.ZodNullable=He.ZodOptional=He.ZodTransformer=He.ZodEffects=He.ZodPromise=He.ZodNativeEnum=He.ZodEnum=He.ZodLiteral=He.ZodLazy=He.ZodFunction=He.ZodSet=He.ZodMap=He.ZodRecord=He.ZodTuple=He.ZodIntersection=He.ZodDiscriminatedUnion=He.ZodUnion=He.ZodObject=He.objectUtil=He.ZodArray=He.ZodVoid=He.ZodNever=He.ZodUnknown=He.ZodAny=He.ZodNull=He.ZodUndefined=He.ZodSymbol=He.ZodDate=He.ZodBoolean=He.ZodBigInt=He.ZodNumber=He.ZodString=He.ZodType=void 0;He.NEVER=He.void=He.unknown=He.union=He.undefined=He.tuple=He.transformer=He.symbol=He.string=He.strictObject=He.set=He.record=He.promise=He.preprocess=He.pipeline=He.ostring=He.optional=He.onumber=He.oboolean=He.object=He.number=He.nullable=He.null=He.never=He.nativeEnum=He.nan=He.map=He.literal=He.lazy=He.intersection=He.instanceof=He.function=He.enum=He.effect=He.discriminatedUnion=void 0;var JM=ZM(),_n=zve(),ct=Vj(),wt=xT(),Mt=GM(),rd=class{constructor(e,t,n,a){this.parent=e,this.data=t,this._path=n,this._key=a}get path(){return this._path.concat(this._key)}},Hve=(r,e)=>{if((0,ct.isValid)(e))return{success:!0,data:e.value};if(!r.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,error:new Mt.ZodError(r.common.issues)}};function an(r){if(!r)return{};let{errorMap:e,invalid_type_error:t,required_error:n,description:a}=r;if(e&&(t||n))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return e?{errorMap:e,description:a}:{errorMap:(s,c)=>s.code!=="invalid_type"?{message:c.defaultError}:typeof c.data>"u"?{message:n??c.defaultError}:{message:t??c.defaultError},description:a}}var zr=class{constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this)}get description(){return this._def.description}_getType(e){return(0,wt.getParsedType)(e.data)}_getOrReturnCtx(e,t){return t||{common:e.parent.common,data:e.data,parsedType:(0,wt.getParsedType)(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new ct.ParseStatus,ctx:{common:e.parent.common,data:e.data,parsedType:(0,wt.getParsedType)(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){let t=this._parse(e);if((0,ct.isAsync)(t))throw new Error("Synchronous parse encountered promise.");return t}_parseAsync(e){let t=this._parse(e);return Promise.resolve(t)}parse(e,t){let n=this.safeParse(e,t);if(n.success)return n.data;throw n.error}safeParse(e,t){var n;let a={common:{issues:[],async:(n=t?.async)!==null&&n!==void 0?n:!1,contextualErrorMap:t?.errorMap},path:t?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:(0,wt.getParsedType)(e)},i=this._parseSync({data:e,path:a.path,parent:a});return Hve(a,i)}async parseAsync(e,t){let n=await this.safeParseAsync(e,t);if(n.success)return n.data;throw n.error}async safeParseAsync(e,t){let n={common:{issues:[],contextualErrorMap:t?.errorMap,async:!0},path:t?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:(0,wt.getParsedType)(e)},a=this._parse({data:e,path:n.path,parent:n}),i=await((0,ct.isAsync)(a)?a:Promise.resolve(a));return Hve(n,i)}refine(e,t){let n=a=>typeof t=="string"||typeof t>"u"?{message:t}:typeof t=="function"?t(a):t;return this._refinement((a,i)=>{let s=e(a),c=()=>i.addIssue({code:Mt.ZodIssueCode.custom,...n(a)});return typeof Promise<"u"&&s instanceof Promise?s.then(l=>l?!0:(c(),!1)):s?!0:(c(),!1)})}refinement(e,t){return this._refinement((n,a)=>e(n)?!0:(a.addIssue(typeof t=="function"?t(n,a):t),!1))}_refinement(e){return new al({schema:this,typeName:wr.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}optional(){return td.create(this)}nullable(){return Uf.create(this)}nullish(){return this.optional().nullable()}array(){return nl.create(this)}promise(){return P0.create(this)}or(e){return $g.create([this,e])}and(e){return ev.create(this,e)}transform(e){return new al({schema:this,typeName:wr.ZodEffects,effect:{type:"transform",transform:e}})}default(e){let t=typeof e=="function"?e:()=>e;return new sv({innerType:this,defaultValue:t,typeName:wr.ZodDefault})}brand(){return new QM({typeName:wr.ZodBranded,type:this,...an(void 0)})}catch(e){let t=typeof e=="function"?e:()=>e;return new L2({innerType:this,defaultValue:t,typeName:wr.ZodCatch})}describe(e){let t=this.constructor;return new t({...this._def,description:e})}pipe(e){return ov.create(this,e)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}};He.ZodType=zr;He.Schema=zr;He.ZodSchema=zr;var Ykt=/^c[^\s-]{8,}$/i,$kt=/^([a-f0-9]{8}-[a-f0-9]{4}-[1-5][a-f0-9]{3}-[a-f0-9]{4}-[a-f0-9]{12}|00000000-0000-0000-0000-000000000000)$/i,eSt=/^(([^<>()[\]\.,;:\s@\"]+(\.[^<>()[\]\.,;:\s@\"]+)*)|(\".+\"))@(([^<>()[\]\.,;:\s@\"]+\.)+[^<>()[\]\.,;:\s@\"]{2,})$/i,tSt=r=>r.precision?r.offset?new RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${r.precision}}(([+-]\\d{2}:\\d{2})|Z)$`):new RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${r.precision}}Z$`):r.precision===0?r.offset?new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(([+-]\\d{2}:\\d{2})|Z)$"):new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"):r.offset?new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?(([+-]\\d{2}:\\d{2})|Z)$"):new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?Z$"),sp=class extends zr{constructor(){super(...arguments),this._regex=(e,t,n)=>this.refinement(a=>e.test(a),{validation:t,code:Mt.ZodIssueCode.invalid_string,..._n.errorUtil.errToObj(n)}),this.nonempty=e=>this.min(1,_n.errorUtil.errToObj(e)),this.trim=()=>new sp({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}_parse(e){if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==wt.ZodParsedType.string){let i=this._getOrReturnCtx(e);return(0,ct.addIssueToContext)(i,{code:Mt.ZodIssueCode.invalid_type,expected:wt.ZodParsedType.string,received:i.parsedType}),ct.INVALID}let n=new ct.ParseStatus,a;for(let i of this._def.checks)if(i.kind==="min")e.data.lengthi.value&&(a=this._getOrReturnCtx(e,a),(0,ct.addIssueToContext)(a,{code:Mt.ZodIssueCode.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),n.dirty());else if(i.kind==="length"){let s=e.data.length>i.value,c=e.data.length"u"?null:e?.precision,offset:(t=e?.offset)!==null&&t!==void 0?t:!1,..._n.errorUtil.errToObj(e?.message)})}regex(e,t){return this._addCheck({kind:"regex",regex:e,..._n.errorUtil.errToObj(t)})}startsWith(e,t){return this._addCheck({kind:"startsWith",value:e,..._n.errorUtil.errToObj(t)})}endsWith(e,t){return this._addCheck({kind:"endsWith",value:e,..._n.errorUtil.errToObj(t)})}min(e,t){return this._addCheck({kind:"min",value:e,..._n.errorUtil.errToObj(t)})}max(e,t){return this._addCheck({kind:"max",value:e,..._n.errorUtil.errToObj(t)})}length(e,t){return this._addCheck({kind:"length",value:e,..._n.errorUtil.errToObj(t)})}get isDatetime(){return!!this._def.checks.find(e=>e.kind==="datetime")}get isEmail(){return!!this._def.checks.find(e=>e.kind==="email")}get isURL(){return!!this._def.checks.find(e=>e.kind==="url")}get isUUID(){return!!this._def.checks.find(e=>e.kind==="uuid")}get isCUID(){return!!this._def.checks.find(e=>e.kind==="cuid")}get minLength(){let e=null;for(let t of this._def.checks)t.kind==="min"&&(e===null||t.value>e)&&(e=t.value);return e}get maxLength(){let e=null;for(let t of this._def.checks)t.kind==="max"&&(e===null||t.value{var e;return new sp({checks:[],typeName:wr.ZodString,coerce:(e=r?.coerce)!==null&&e!==void 0?e:!1,...an(r)})};function rSt(r,e){let t=(r.toString().split(".")[1]||"").length,n=(e.toString().split(".")[1]||"").length,a=t>n?t:n,i=parseInt(r.toFixed(a).replace(".","")),s=parseInt(e.toFixed(a).replace(".",""));return i%s/Math.pow(10,a)}var Ch=class extends zr{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==wt.ZodParsedType.number){let i=this._getOrReturnCtx(e);return(0,ct.addIssueToContext)(i,{code:Mt.ZodIssueCode.invalid_type,expected:wt.ZodParsedType.number,received:i.parsedType}),ct.INVALID}let n,a=new ct.ParseStatus;for(let i of this._def.checks)i.kind==="int"?wt.util.isInteger(e.data)||(n=this._getOrReturnCtx(e,n),(0,ct.addIssueToContext)(n,{code:Mt.ZodIssueCode.invalid_type,expected:"integer",received:"float",message:i.message}),a.dirty()):i.kind==="min"?(i.inclusive?e.datai.value:e.data>=i.value)&&(n=this._getOrReturnCtx(e,n),(0,ct.addIssueToContext)(n,{code:Mt.ZodIssueCode.too_big,maximum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),a.dirty()):i.kind==="multipleOf"?rSt(e.data,i.value)!==0&&(n=this._getOrReturnCtx(e,n),(0,ct.addIssueToContext)(n,{code:Mt.ZodIssueCode.not_multiple_of,multipleOf:i.value,message:i.message}),a.dirty()):i.kind==="finite"?Number.isFinite(e.data)||(n=this._getOrReturnCtx(e,n),(0,ct.addIssueToContext)(n,{code:Mt.ZodIssueCode.not_finite,message:i.message}),a.dirty()):wt.util.assertNever(i);return{status:a.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,_n.errorUtil.toString(t))}gt(e,t){return this.setLimit("min",e,!1,_n.errorUtil.toString(t))}lte(e,t){return this.setLimit("max",e,!0,_n.errorUtil.toString(t))}lt(e,t){return this.setLimit("max",e,!1,_n.errorUtil.toString(t))}setLimit(e,t,n,a){return new Ch({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:n,message:_n.errorUtil.toString(a)}]})}_addCheck(e){return new Ch({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:_n.errorUtil.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:_n.errorUtil.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:_n.errorUtil.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:_n.errorUtil.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:_n.errorUtil.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:_n.errorUtil.toString(t)})}finite(e){return this._addCheck({kind:"finite",message:_n.errorUtil.toString(e)})}get minValue(){let e=null;for(let t of this._def.checks)t.kind==="min"&&(e===null||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(let t of this._def.checks)t.kind==="max"&&(e===null||t.valuee.kind==="int")}};He.ZodNumber=Ch;Ch.create=r=>new Ch({checks:[],typeName:wr.ZodNumber,coerce:r?.coerce||!1,...an(r)});var Kg=class extends zr{_parse(e){if(this._def.coerce&&(e.data=BigInt(e.data)),this._getType(e)!==wt.ZodParsedType.bigint){let n=this._getOrReturnCtx(e);return(0,ct.addIssueToContext)(n,{code:Mt.ZodIssueCode.invalid_type,expected:wt.ZodParsedType.bigint,received:n.parsedType}),ct.INVALID}return(0,ct.OK)(e.data)}};He.ZodBigInt=Kg;Kg.create=r=>{var e;return new Kg({typeName:wr.ZodBigInt,coerce:(e=r?.coerce)!==null&&e!==void 0?e:!1,...an(r)})};var Qg=class extends zr{_parse(e){if(this._def.coerce&&(e.data=Boolean(e.data)),this._getType(e)!==wt.ZodParsedType.boolean){let n=this._getOrReturnCtx(e);return(0,ct.addIssueToContext)(n,{code:Mt.ZodIssueCode.invalid_type,expected:wt.ZodParsedType.boolean,received:n.parsedType}),ct.INVALID}return(0,ct.OK)(e.data)}};He.ZodBoolean=Qg;Qg.create=r=>new Qg({typeName:wr.ZodBoolean,coerce:r?.coerce||!1,...an(r)});var Df=class extends zr{_parse(e){if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==wt.ZodParsedType.date){let i=this._getOrReturnCtx(e);return(0,ct.addIssueToContext)(i,{code:Mt.ZodIssueCode.invalid_type,expected:wt.ZodParsedType.date,received:i.parsedType}),ct.INVALID}if(isNaN(e.data.getTime())){let i=this._getOrReturnCtx(e);return(0,ct.addIssueToContext)(i,{code:Mt.ZodIssueCode.invalid_date}),ct.INVALID}let n=new ct.ParseStatus,a;for(let i of this._def.checks)i.kind==="min"?e.data.getTime()i.value&&(a=this._getOrReturnCtx(e,a),(0,ct.addIssueToContext)(a,{code:Mt.ZodIssueCode.too_big,message:i.message,inclusive:!0,exact:!1,maximum:i.value,type:"date"}),n.dirty()):wt.util.assertNever(i);return{status:n.value,value:new Date(e.data.getTime())}}_addCheck(e){return new Df({...this._def,checks:[...this._def.checks,e]})}min(e,t){return this._addCheck({kind:"min",value:e.getTime(),message:_n.errorUtil.toString(t)})}max(e,t){return this._addCheck({kind:"max",value:e.getTime(),message:_n.errorUtil.toString(t)})}get minDate(){let e=null;for(let t of this._def.checks)t.kind==="min"&&(e===null||t.value>e)&&(e=t.value);return e!=null?new Date(e):null}get maxDate(){let e=null;for(let t of this._def.checks)t.kind==="max"&&(e===null||t.valuenew Df({checks:[],coerce:r?.coerce||!1,typeName:wr.ZodDate,...an(r)});var P2=class extends zr{_parse(e){if(this._getType(e)!==wt.ZodParsedType.symbol){let n=this._getOrReturnCtx(e);return(0,ct.addIssueToContext)(n,{code:Mt.ZodIssueCode.invalid_type,expected:wt.ZodParsedType.symbol,received:n.parsedType}),ct.INVALID}return(0,ct.OK)(e.data)}};He.ZodSymbol=P2;P2.create=r=>new P2({typeName:wr.ZodSymbol,...an(r)});var Xg=class extends zr{_parse(e){if(this._getType(e)!==wt.ZodParsedType.undefined){let n=this._getOrReturnCtx(e);return(0,ct.addIssueToContext)(n,{code:Mt.ZodIssueCode.invalid_type,expected:wt.ZodParsedType.undefined,received:n.parsedType}),ct.INVALID}return(0,ct.OK)(e.data)}};He.ZodUndefined=Xg;Xg.create=r=>new Xg({typeName:wr.ZodUndefined,...an(r)});var Yg=class extends zr{_parse(e){if(this._getType(e)!==wt.ZodParsedType.null){let n=this._getOrReturnCtx(e);return(0,ct.addIssueToContext)(n,{code:Mt.ZodIssueCode.invalid_type,expected:wt.ZodParsedType.null,received:n.parsedType}),ct.INVALID}return(0,ct.OK)(e.data)}};He.ZodNull=Yg;Yg.create=r=>new Yg({typeName:wr.ZodNull,...an(r)});var I0=class extends zr{constructor(){super(...arguments),this._any=!0}_parse(e){return(0,ct.OK)(e.data)}};He.ZodAny=I0;I0.create=r=>new I0({typeName:wr.ZodAny,...an(r)});var qf=class extends zr{constructor(){super(...arguments),this._unknown=!0}_parse(e){return(0,ct.OK)(e.data)}};He.ZodUnknown=qf;qf.create=r=>new qf({typeName:wr.ZodUnknown,...an(r)});var op=class extends zr{_parse(e){let t=this._getOrReturnCtx(e);return(0,ct.addIssueToContext)(t,{code:Mt.ZodIssueCode.invalid_type,expected:wt.ZodParsedType.never,received:t.parsedType}),ct.INVALID}};He.ZodNever=op;op.create=r=>new op({typeName:wr.ZodNever,...an(r)});var R2=class extends zr{_parse(e){if(this._getType(e)!==wt.ZodParsedType.undefined){let n=this._getOrReturnCtx(e);return(0,ct.addIssueToContext)(n,{code:Mt.ZodIssueCode.invalid_type,expected:wt.ZodParsedType.void,received:n.parsedType}),ct.INVALID}return(0,ct.OK)(e.data)}};He.ZodVoid=R2;R2.create=r=>new R2({typeName:wr.ZodVoid,...an(r)});var nl=class extends zr{_parse(e){let{ctx:t,status:n}=this._processInputParams(e),a=this._def;if(t.parsedType!==wt.ZodParsedType.array)return(0,ct.addIssueToContext)(t,{code:Mt.ZodIssueCode.invalid_type,expected:wt.ZodParsedType.array,received:t.parsedType}),ct.INVALID;if(a.exactLength!==null){let s=t.data.length>a.exactLength.value,c=t.data.lengtha.maxLength.value&&((0,ct.addIssueToContext)(t,{code:Mt.ZodIssueCode.too_big,maximum:a.maxLength.value,type:"array",inclusive:!0,exact:!1,message:a.maxLength.message}),n.dirty()),t.common.async)return Promise.all(t.data.map((s,c)=>a.type._parseAsync(new rd(t,s,t.path,c)))).then(s=>ct.ParseStatus.mergeArray(n,s));let i=t.data.map((s,c)=>a.type._parseSync(new rd(t,s,t.path,c)));return ct.ParseStatus.mergeArray(n,i)}get element(){return this._def.type}min(e,t){return new nl({...this._def,minLength:{value:e,message:_n.errorUtil.toString(t)}})}max(e,t){return new nl({...this._def,maxLength:{value:e,message:_n.errorUtil.toString(t)}})}length(e,t){return new nl({...this._def,exactLength:{value:e,message:_n.errorUtil.toString(t)}})}nonempty(e){return this.min(1,e)}};He.ZodArray=nl;nl.create=(r,e)=>new nl({type:r,minLength:null,maxLength:null,exactLength:null,typeName:wr.ZodArray,...an(e)});var Gve;(function(r){r.mergeShapes=(e,t)=>({...e,...t})})(Gve=He.objectUtil||(He.objectUtil={}));var Vve=r=>e=>new hi({...r,shape:()=>({...r.shape(),...e})});function I2(r){if(r instanceof hi){let e={};for(let t in r.shape){let n=r.shape[t];e[t]=td.create(I2(n))}return new hi({...r._def,shape:()=>e})}else return r instanceof nl?nl.create(I2(r.element)):r instanceof td?td.create(I2(r.unwrap())):r instanceof Uf?Uf.create(I2(r.unwrap())):r instanceof nd?nd.create(r.items.map(e=>I2(e))):r}var hi=class extends zr{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=Vve(this._def),this.extend=Vve(this._def)}_getCached(){if(this._cached!==null)return this._cached;let e=this._def.shape(),t=wt.util.objectKeys(e);return this._cached={shape:e,keys:t}}_parse(e){if(this._getType(e)!==wt.ZodParsedType.object){let d=this._getOrReturnCtx(e);return(0,ct.addIssueToContext)(d,{code:Mt.ZodIssueCode.invalid_type,expected:wt.ZodParsedType.object,received:d.parsedType}),ct.INVALID}let{status:n,ctx:a}=this._processInputParams(e),{shape:i,keys:s}=this._getCached(),c=[];if(!(this._def.catchall instanceof op&&this._def.unknownKeys==="strip"))for(let d in a.data)s.includes(d)||c.push(d);let l=[];for(let d of s){let f=i[d],w=a.data[d];l.push({key:{status:"valid",value:d},value:f._parse(new rd(a,w,a.path,d)),alwaysSet:d in a.data})}if(this._def.catchall instanceof op){let d=this._def.unknownKeys;if(d==="passthrough")for(let f of c)l.push({key:{status:"valid",value:f},value:{status:"valid",value:a.data[f]}});else if(d==="strict")c.length>0&&((0,ct.addIssueToContext)(a,{code:Mt.ZodIssueCode.unrecognized_keys,keys:c}),n.dirty());else if(d!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{let d=this._def.catchall;for(let f of c){let w=a.data[f];l.push({key:{status:"valid",value:f},value:d._parse(new rd(a,w,a.path,f)),alwaysSet:f in a.data})}}return a.common.async?Promise.resolve().then(async()=>{let d=[];for(let f of l){let w=await f.key;d.push({key:w,value:await f.value,alwaysSet:f.alwaysSet})}return d}).then(d=>ct.ParseStatus.mergeObjectSync(n,d)):ct.ParseStatus.mergeObjectSync(n,l)}get shape(){return this._def.shape()}strict(e){return _n.errorUtil.errToObj,new hi({...this._def,unknownKeys:"strict",...e!==void 0?{errorMap:(t,n)=>{var a,i,s,c;let l=(s=(i=(a=this._def).errorMap)===null||i===void 0?void 0:i.call(a,t,n).message)!==null&&s!==void 0?s:n.defaultError;return t.code==="unrecognized_keys"?{message:(c=_n.errorUtil.errToObj(e).message)!==null&&c!==void 0?c:l}:{message:l}}}:{}})}strip(){return new hi({...this._def,unknownKeys:"strip"})}passthrough(){return new hi({...this._def,unknownKeys:"passthrough"})}setKey(e,t){return this.augment({[e]:t})}merge(e){return new hi({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>Gve.mergeShapes(this._def.shape(),e._def.shape()),typeName:wr.ZodObject})}catchall(e){return new hi({...this._def,catchall:e})}pick(e){let t={};return wt.util.objectKeys(e).map(n=>{this.shape[n]&&(t[n]=this.shape[n])}),new hi({...this._def,shape:()=>t})}omit(e){let t={};return wt.util.objectKeys(this.shape).map(n=>{wt.util.objectKeys(e).indexOf(n)===-1&&(t[n]=this.shape[n])}),new hi({...this._def,shape:()=>t})}deepPartial(){return I2(this)}partial(e){let t={};if(e)return wt.util.objectKeys(this.shape).map(n=>{wt.util.objectKeys(e).indexOf(n)===-1?t[n]=this.shape[n]:t[n]=this.shape[n].optional()}),new hi({...this._def,shape:()=>t});for(let n in this.shape){let a=this.shape[n];t[n]=a.optional()}return new hi({...this._def,shape:()=>t})}required(e){let t={};if(e)wt.util.objectKeys(this.shape).map(n=>{if(wt.util.objectKeys(e).indexOf(n)===-1)t[n]=this.shape[n];else{let i=this.shape[n];for(;i instanceof td;)i=i._def.innerType;t[n]=i}});else for(let n in this.shape){let i=this.shape[n];for(;i instanceof td;)i=i._def.innerType;t[n]=i}return new hi({...this._def,shape:()=>t})}keyof(){return Zve(wt.util.objectKeys(this.shape))}};He.ZodObject=hi;hi.create=(r,e)=>new hi({shape:()=>r,unknownKeys:"strip",catchall:op.create(),typeName:wr.ZodObject,...an(e)});hi.strictCreate=(r,e)=>new hi({shape:()=>r,unknownKeys:"strict",catchall:op.create(),typeName:wr.ZodObject,...an(e)});hi.lazycreate=(r,e)=>new hi({shape:r,unknownKeys:"strip",catchall:op.create(),typeName:wr.ZodObject,...an(e)});var $g=class extends zr{_parse(e){let{ctx:t}=this._processInputParams(e),n=this._def.options;function a(i){for(let c of i)if(c.result.status==="valid")return c.result;for(let c of i)if(c.result.status==="dirty")return t.common.issues.push(...c.ctx.common.issues),c.result;let s=i.map(c=>new Mt.ZodError(c.ctx.common.issues));return(0,ct.addIssueToContext)(t,{code:Mt.ZodIssueCode.invalid_union,unionErrors:s}),ct.INVALID}if(t.common.async)return Promise.all(n.map(async i=>{let s={...t,common:{...t.common,issues:[]},parent:null};return{result:await i._parseAsync({data:t.data,path:t.path,parent:s}),ctx:s}})).then(a);{let i,s=[];for(let l of n){let d={...t,common:{...t.common,issues:[]},parent:null},f=l._parseSync({data:t.data,path:t.path,parent:d});if(f.status==="valid")return f;f.status==="dirty"&&!i&&(i={result:f,ctx:d}),d.common.issues.length&&s.push(d.common.issues)}if(i)return t.common.issues.push(...i.ctx.common.issues),i.result;let c=s.map(l=>new Mt.ZodError(l));return(0,ct.addIssueToContext)(t,{code:Mt.ZodIssueCode.invalid_union,unionErrors:c}),ct.INVALID}}get options(){return this._def.options}};He.ZodUnion=$g;$g.create=(r,e)=>new $g({options:r,typeName:wr.ZodUnion,...an(e)});var KM=r=>r instanceof rv?KM(r.schema):r instanceof al?KM(r.innerType()):r instanceof nv?[r.value]:r instanceof av?r.options:r instanceof iv?Object.keys(r.enum):r instanceof sv?KM(r._def.innerType):r instanceof Xg?[void 0]:r instanceof Yg?[null]:null,N2=class extends zr{_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==wt.ZodParsedType.object)return(0,ct.addIssueToContext)(t,{code:Mt.ZodIssueCode.invalid_type,expected:wt.ZodParsedType.object,received:t.parsedType}),ct.INVALID;let n=this.discriminator,a=t.data[n],i=this.optionsMap.get(a);return i?t.common.async?i._parseAsync({data:t.data,path:t.path,parent:t}):i._parseSync({data:t.data,path:t.path,parent:t}):((0,ct.addIssueToContext)(t,{code:Mt.ZodIssueCode.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[n]}),ct.INVALID)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,t,n){let a=new Map;for(let i of t){let s=KM(i.shape[e]);if(!s)throw new Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);for(let c of s){if(a.has(c))throw new Error(`Discriminator property ${String(e)} has duplicate value ${String(c)}`);a.set(c,i)}}return new N2({typeName:wr.ZodDiscriminatedUnion,discriminator:e,options:t,optionsMap:a,...an(n)})}};He.ZodDiscriminatedUnion=N2;function Gj(r,e){let t=(0,wt.getParsedType)(r),n=(0,wt.getParsedType)(e);if(r===e)return{valid:!0,data:r};if(t===wt.ZodParsedType.object&&n===wt.ZodParsedType.object){let a=wt.util.objectKeys(e),i=wt.util.objectKeys(r).filter(c=>a.indexOf(c)!==-1),s={...r,...e};for(let c of i){let l=Gj(r[c],e[c]);if(!l.valid)return{valid:!1};s[c]=l.data}return{valid:!0,data:s}}else if(t===wt.ZodParsedType.array&&n===wt.ZodParsedType.array){if(r.length!==e.length)return{valid:!1};let a=[];for(let i=0;i{if((0,ct.isAborted)(i)||(0,ct.isAborted)(s))return ct.INVALID;let c=Gj(i.value,s.value);return c.valid?(((0,ct.isDirty)(i)||(0,ct.isDirty)(s))&&t.dirty(),{status:t.value,value:c.data}):((0,ct.addIssueToContext)(n,{code:Mt.ZodIssueCode.invalid_intersection_types}),ct.INVALID)};return n.common.async?Promise.all([this._def.left._parseAsync({data:n.data,path:n.path,parent:n}),this._def.right._parseAsync({data:n.data,path:n.path,parent:n})]).then(([i,s])=>a(i,s)):a(this._def.left._parseSync({data:n.data,path:n.path,parent:n}),this._def.right._parseSync({data:n.data,path:n.path,parent:n}))}};He.ZodIntersection=ev;ev.create=(r,e,t)=>new ev({left:r,right:e,typeName:wr.ZodIntersection,...an(t)});var nd=class extends zr{_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==wt.ZodParsedType.array)return(0,ct.addIssueToContext)(n,{code:Mt.ZodIssueCode.invalid_type,expected:wt.ZodParsedType.array,received:n.parsedType}),ct.INVALID;if(n.data.lengththis._def.items.length&&((0,ct.addIssueToContext)(n,{code:Mt.ZodIssueCode.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),t.dirty());let i=n.data.map((s,c)=>{let l=this._def.items[c]||this._def.rest;return l?l._parse(new rd(n,s,n.path,c)):null}).filter(s=>!!s);return n.common.async?Promise.all(i).then(s=>ct.ParseStatus.mergeArray(t,s)):ct.ParseStatus.mergeArray(t,i)}get items(){return this._def.items}rest(e){return new nd({...this._def,rest:e})}};He.ZodTuple=nd;nd.create=(r,e)=>{if(!Array.isArray(r))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new nd({items:r,typeName:wr.ZodTuple,rest:null,...an(e)})};var tv=class extends zr{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==wt.ZodParsedType.object)return(0,ct.addIssueToContext)(n,{code:Mt.ZodIssueCode.invalid_type,expected:wt.ZodParsedType.object,received:n.parsedType}),ct.INVALID;let a=[],i=this._def.keyType,s=this._def.valueType;for(let c in n.data)a.push({key:i._parse(new rd(n,c,n.path,c)),value:s._parse(new rd(n,n.data[c],n.path,c))});return n.common.async?ct.ParseStatus.mergeObjectAsync(t,a):ct.ParseStatus.mergeObjectSync(t,a)}get element(){return this._def.valueType}static create(e,t,n){return t instanceof zr?new tv({keyType:e,valueType:t,typeName:wr.ZodRecord,...an(n)}):new tv({keyType:sp.create(),valueType:e,typeName:wr.ZodRecord,...an(t)})}};He.ZodRecord=tv;var O2=class extends zr{_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==wt.ZodParsedType.map)return(0,ct.addIssueToContext)(n,{code:Mt.ZodIssueCode.invalid_type,expected:wt.ZodParsedType.map,received:n.parsedType}),ct.INVALID;let a=this._def.keyType,i=this._def.valueType,s=[...n.data.entries()].map(([c,l],d)=>({key:a._parse(new rd(n,c,n.path,[d,"key"])),value:i._parse(new rd(n,l,n.path,[d,"value"]))}));if(n.common.async){let c=new Map;return Promise.resolve().then(async()=>{for(let l of s){let d=await l.key,f=await l.value;if(d.status==="aborted"||f.status==="aborted")return ct.INVALID;(d.status==="dirty"||f.status==="dirty")&&t.dirty(),c.set(d.value,f.value)}return{status:t.value,value:c}})}else{let c=new Map;for(let l of s){let d=l.key,f=l.value;if(d.status==="aborted"||f.status==="aborted")return ct.INVALID;(d.status==="dirty"||f.status==="dirty")&&t.dirty(),c.set(d.value,f.value)}return{status:t.value,value:c}}}};He.ZodMap=O2;O2.create=(r,e,t)=>new O2({valueType:e,keyType:r,typeName:wr.ZodMap,...an(t)});var Ff=class extends zr{_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==wt.ZodParsedType.set)return(0,ct.addIssueToContext)(n,{code:Mt.ZodIssueCode.invalid_type,expected:wt.ZodParsedType.set,received:n.parsedType}),ct.INVALID;let a=this._def;a.minSize!==null&&n.data.sizea.maxSize.value&&((0,ct.addIssueToContext)(n,{code:Mt.ZodIssueCode.too_big,maximum:a.maxSize.value,type:"set",inclusive:!0,exact:!1,message:a.maxSize.message}),t.dirty());let i=this._def.valueType;function s(l){let d=new Set;for(let f of l){if(f.status==="aborted")return ct.INVALID;f.status==="dirty"&&t.dirty(),d.add(f.value)}return{status:t.value,value:d}}let c=[...n.data.values()].map((l,d)=>i._parse(new rd(n,l,n.path,d)));return n.common.async?Promise.all(c).then(l=>s(l)):s(c)}min(e,t){return new Ff({...this._def,minSize:{value:e,message:_n.errorUtil.toString(t)}})}max(e,t){return new Ff({...this._def,maxSize:{value:e,message:_n.errorUtil.toString(t)}})}size(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}};He.ZodSet=Ff;Ff.create=(r,e)=>new Ff({valueType:r,minSize:null,maxSize:null,typeName:wr.ZodSet,...an(e)});var M0=class extends zr{constructor(){super(...arguments),this.validate=this.implement}_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==wt.ZodParsedType.function)return(0,ct.addIssueToContext)(t,{code:Mt.ZodIssueCode.invalid_type,expected:wt.ZodParsedType.function,received:t.parsedType}),ct.INVALID;function n(c,l){return(0,ct.makeIssue)({data:c,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,(0,JM.getErrorMap)(),JM.defaultErrorMap].filter(d=>!!d),issueData:{code:Mt.ZodIssueCode.invalid_arguments,argumentsError:l}})}function a(c,l){return(0,ct.makeIssue)({data:c,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,(0,JM.getErrorMap)(),JM.defaultErrorMap].filter(d=>!!d),issueData:{code:Mt.ZodIssueCode.invalid_return_type,returnTypeError:l}})}let i={errorMap:t.common.contextualErrorMap},s=t.data;return this._def.returns instanceof P0?(0,ct.OK)(async(...c)=>{let l=new Mt.ZodError([]),d=await this._def.args.parseAsync(c,i).catch(E=>{throw l.addIssue(n(c,E)),l}),f=await s(...d);return await this._def.returns._def.type.parseAsync(f,i).catch(E=>{throw l.addIssue(a(f,E)),l})}):(0,ct.OK)((...c)=>{let l=this._def.args.safeParse(c,i);if(!l.success)throw new Mt.ZodError([n(c,l.error)]);let d=s(...l.data),f=this._def.returns.safeParse(d,i);if(!f.success)throw new Mt.ZodError([a(d,f.error)]);return f.data})}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new M0({...this._def,args:nd.create(e).rest(qf.create())})}returns(e){return new M0({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(e,t,n){return new M0({args:e||nd.create([]).rest(qf.create()),returns:t||qf.create(),typeName:wr.ZodFunction,...an(n)})}};He.ZodFunction=M0;var rv=class extends zr{get schema(){return this._def.getter()}_parse(e){let{ctx:t}=this._processInputParams(e);return this._def.getter()._parse({data:t.data,path:t.path,parent:t})}};He.ZodLazy=rv;rv.create=(r,e)=>new rv({getter:r,typeName:wr.ZodLazy,...an(e)});var nv=class extends zr{_parse(e){if(e.data!==this._def.value){let t=this._getOrReturnCtx(e);return(0,ct.addIssueToContext)(t,{code:Mt.ZodIssueCode.invalid_literal,expected:this._def.value}),ct.INVALID}return{status:"valid",value:e.data}}get value(){return this._def.value}};He.ZodLiteral=nv;nv.create=(r,e)=>new nv({value:r,typeName:wr.ZodLiteral,...an(e)});function Zve(r,e){return new av({values:r,typeName:wr.ZodEnum,...an(e)})}var av=class extends zr{_parse(e){if(typeof e.data!="string"){let t=this._getOrReturnCtx(e),n=this._def.values;return(0,ct.addIssueToContext)(t,{expected:wt.util.joinValues(n),received:t.parsedType,code:Mt.ZodIssueCode.invalid_type}),ct.INVALID}if(this._def.values.indexOf(e.data)===-1){let t=this._getOrReturnCtx(e),n=this._def.values;return(0,ct.addIssueToContext)(t,{received:t.data,code:Mt.ZodIssueCode.invalid_enum_value,options:n}),ct.INVALID}return(0,ct.OK)(e.data)}get options(){return this._def.values}get enum(){let e={};for(let t of this._def.values)e[t]=t;return e}get Values(){let e={};for(let t of this._def.values)e[t]=t;return e}get Enum(){let e={};for(let t of this._def.values)e[t]=t;return e}};He.ZodEnum=av;av.create=Zve;var iv=class extends zr{_parse(e){let t=wt.util.getValidEnumValues(this._def.values),n=this._getOrReturnCtx(e);if(n.parsedType!==wt.ZodParsedType.string&&n.parsedType!==wt.ZodParsedType.number){let a=wt.util.objectValues(t);return(0,ct.addIssueToContext)(n,{expected:wt.util.joinValues(a),received:n.parsedType,code:Mt.ZodIssueCode.invalid_type}),ct.INVALID}if(t.indexOf(e.data)===-1){let a=wt.util.objectValues(t);return(0,ct.addIssueToContext)(n,{received:n.data,code:Mt.ZodIssueCode.invalid_enum_value,options:a}),ct.INVALID}return(0,ct.OK)(e.data)}get enum(){return this._def.values}};He.ZodNativeEnum=iv;iv.create=(r,e)=>new iv({values:r,typeName:wr.ZodNativeEnum,...an(e)});var P0=class extends zr{_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==wt.ZodParsedType.promise&&t.common.async===!1)return(0,ct.addIssueToContext)(t,{code:Mt.ZodIssueCode.invalid_type,expected:wt.ZodParsedType.promise,received:t.parsedType}),ct.INVALID;let n=t.parsedType===wt.ZodParsedType.promise?t.data:Promise.resolve(t.data);return(0,ct.OK)(n.then(a=>this._def.type.parseAsync(a,{path:t.path,errorMap:t.common.contextualErrorMap})))}};He.ZodPromise=P0;P0.create=(r,e)=>new P0({type:r,typeName:wr.ZodPromise,...an(e)});var al=class extends zr{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===wr.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){let{status:t,ctx:n}=this._processInputParams(e),a=this._def.effect||null;if(a.type==="preprocess"){let s=a.transform(n.data);return n.common.async?Promise.resolve(s).then(c=>this._def.schema._parseAsync({data:c,path:n.path,parent:n})):this._def.schema._parseSync({data:s,path:n.path,parent:n})}let i={addIssue:s=>{(0,ct.addIssueToContext)(n,s),s.fatal?t.abort():t.dirty()},get path(){return n.path}};if(i.addIssue=i.addIssue.bind(i),a.type==="refinement"){let s=c=>{let l=a.refinement(c,i);if(n.common.async)return Promise.resolve(l);if(l instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return c};if(n.common.async===!1){let c=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});return c.status==="aborted"?ct.INVALID:(c.status==="dirty"&&t.dirty(),s(c.value),{status:t.value,value:c.value})}else return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(c=>c.status==="aborted"?ct.INVALID:(c.status==="dirty"&&t.dirty(),s(c.value).then(()=>({status:t.value,value:c.value}))))}if(a.type==="transform")if(n.common.async===!1){let s=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});if(!(0,ct.isValid)(s))return s;let c=a.transform(s.value,i);if(c instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:t.value,value:c}}else return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(s=>(0,ct.isValid)(s)?Promise.resolve(a.transform(s.value,i)).then(c=>({status:t.value,value:c})):s);wt.util.assertNever(a)}};He.ZodEffects=al;He.ZodTransformer=al;al.create=(r,e,t)=>new al({schema:r,typeName:wr.ZodEffects,effect:e,...an(t)});al.createWithPreprocess=(r,e,t)=>new al({schema:e,effect:{type:"preprocess",transform:r},typeName:wr.ZodEffects,...an(t)});var td=class extends zr{_parse(e){return this._getType(e)===wt.ZodParsedType.undefined?(0,ct.OK)(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}};He.ZodOptional=td;td.create=(r,e)=>new td({innerType:r,typeName:wr.ZodOptional,...an(e)});var Uf=class extends zr{_parse(e){return this._getType(e)===wt.ZodParsedType.null?(0,ct.OK)(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}};He.ZodNullable=Uf;Uf.create=(r,e)=>new Uf({innerType:r,typeName:wr.ZodNullable,...an(e)});var sv=class extends zr{_parse(e){let{ctx:t}=this._processInputParams(e),n=t.data;return t.parsedType===wt.ZodParsedType.undefined&&(n=this._def.defaultValue()),this._def.innerType._parse({data:n,path:t.path,parent:t})}removeDefault(){return this._def.innerType}};He.ZodDefault=sv;sv.create=(r,e)=>new sv({innerType:r,typeName:wr.ZodDefault,defaultValue:typeof e.default=="function"?e.default:()=>e.default,...an(e)});var L2=class extends zr{_parse(e){let{ctx:t}=this._processInputParams(e),n=this._def.innerType._parse({data:t.data,path:t.path,parent:t});return(0,ct.isAsync)(n)?n.then(a=>({status:"valid",value:a.status==="valid"?a.value:this._def.defaultValue()})):{status:"valid",value:n.status==="valid"?n.value:this._def.defaultValue()}}removeDefault(){return this._def.innerType}};He.ZodCatch=L2;L2.create=(r,e)=>new L2({innerType:r,typeName:wr.ZodCatch,defaultValue:typeof e.default=="function"?e.default:()=>e.default,...an(e)});var B2=class extends zr{_parse(e){if(this._getType(e)!==wt.ZodParsedType.nan){let n=this._getOrReturnCtx(e);return(0,ct.addIssueToContext)(n,{code:Mt.ZodIssueCode.invalid_type,expected:wt.ZodParsedType.nan,received:n.parsedType}),ct.INVALID}return{status:"valid",value:e.data}}};He.ZodNaN=B2;B2.create=r=>new B2({typeName:wr.ZodNaN,...an(r)});He.BRAND=Symbol("zod_brand");var QM=class extends zr{_parse(e){let{ctx:t}=this._processInputParams(e),n=t.data;return this._def.type._parse({data:n,path:t.path,parent:t})}unwrap(){return this._def.type}};He.ZodBranded=QM;var ov=class extends zr{_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.common.async)return(async()=>{let i=await this._def.in._parseAsync({data:n.data,path:n.path,parent:n});return i.status==="aborted"?ct.INVALID:i.status==="dirty"?(t.dirty(),(0,ct.DIRTY)(i.value)):this._def.out._parseAsync({data:i.value,path:n.path,parent:n})})();{let a=this._def.in._parseSync({data:n.data,path:n.path,parent:n});return a.status==="aborted"?ct.INVALID:a.status==="dirty"?(t.dirty(),{status:"dirty",value:a.value}):this._def.out._parseSync({data:a.value,path:n.path,parent:n})}}static create(e,t){return new ov({in:e,out:t,typeName:wr.ZodPipeline})}};He.ZodPipeline=ov;var nSt=(r,e={},t)=>r?I0.create().superRefine((n,a)=>{if(!r(n)){let i=typeof e=="function"?e(n):e,s=typeof i=="string"?{message:i}:i;a.addIssue({code:"custom",...s,fatal:t})}}):I0.create();He.custom=nSt;He.late={object:hi.lazycreate};var wr;(function(r){r.ZodString="ZodString",r.ZodNumber="ZodNumber",r.ZodNaN="ZodNaN",r.ZodBigInt="ZodBigInt",r.ZodBoolean="ZodBoolean",r.ZodDate="ZodDate",r.ZodSymbol="ZodSymbol",r.ZodUndefined="ZodUndefined",r.ZodNull="ZodNull",r.ZodAny="ZodAny",r.ZodUnknown="ZodUnknown",r.ZodNever="ZodNever",r.ZodVoid="ZodVoid",r.ZodArray="ZodArray",r.ZodObject="ZodObject",r.ZodUnion="ZodUnion",r.ZodDiscriminatedUnion="ZodDiscriminatedUnion",r.ZodIntersection="ZodIntersection",r.ZodTuple="ZodTuple",r.ZodRecord="ZodRecord",r.ZodMap="ZodMap",r.ZodSet="ZodSet",r.ZodFunction="ZodFunction",r.ZodLazy="ZodLazy",r.ZodLiteral="ZodLiteral",r.ZodEnum="ZodEnum",r.ZodEffects="ZodEffects",r.ZodNativeEnum="ZodNativeEnum",r.ZodOptional="ZodOptional",r.ZodNullable="ZodNullable",r.ZodDefault="ZodDefault",r.ZodCatch="ZodCatch",r.ZodPromise="ZodPromise",r.ZodBranded="ZodBranded",r.ZodPipeline="ZodPipeline"})(wr=He.ZodFirstPartyTypeKind||(He.ZodFirstPartyTypeKind={}));var aSt=(r,e={message:`Input not instance of ${r.name}`})=>(0,He.custom)(t=>t instanceof r,e,!0);He.instanceof=aSt;var Jve=sp.create;He.string=Jve;var Kve=Ch.create;He.number=Kve;var iSt=B2.create;He.nan=iSt;var sSt=Kg.create;He.bigint=sSt;var Qve=Qg.create;He.boolean=Qve;var oSt=Df.create;He.date=oSt;var cSt=P2.create;He.symbol=cSt;var uSt=Xg.create;He.undefined=uSt;var lSt=Yg.create;He.null=lSt;var dSt=I0.create;He.any=dSt;var pSt=qf.create;He.unknown=pSt;var hSt=op.create;He.never=hSt;var fSt=R2.create;He.void=fSt;var mSt=nl.create;He.array=mSt;var ySt=hi.create;He.object=ySt;var gSt=hi.strictCreate;He.strictObject=gSt;var vSt=$g.create;He.union=vSt;var bSt=N2.create;He.discriminatedUnion=bSt;var wSt=ev.create;He.intersection=wSt;var xSt=nd.create;He.tuple=xSt;var TSt=tv.create;He.record=TSt;var _St=O2.create;He.map=_St;var CSt=Ff.create;He.set=CSt;var ESt=M0.create;He.function=ESt;var kSt=rv.create;He.lazy=kSt;var SSt=nv.create;He.literal=SSt;var ASt=av.create;He.enum=ASt;var MSt=iv.create;He.nativeEnum=MSt;var ISt=P0.create;He.promise=ISt;var Xve=al.create;He.effect=Xve;He.transformer=Xve;var PSt=td.create;He.optional=PSt;var RSt=Uf.create;He.nullable=RSt;var NSt=al.createWithPreprocess;He.preprocess=NSt;var OSt=ov.create;He.pipeline=OSt;var LSt=()=>Jve().optional();He.ostring=LSt;var BSt=()=>Kve().optional();He.onumber=BSt;var qSt=()=>Qve().optional();He.oboolean=qSt;He.coerce={string:r=>sp.create({...r,coerce:!0}),number:r=>Ch.create({...r,coerce:!0}),boolean:r=>Qg.create({...r,coerce:!0}),bigint:r=>Kg.create({...r,coerce:!0}),date:r=>Df.create({...r,coerce:!0})};He.NEVER=ct.INVALID});var Zj=O(ad=>{"use strict";x();T();var DSt=ad&&ad.__createBinding||(Object.create?function(r,e,t,n){n===void 0&&(n=t),Object.defineProperty(r,n,{enumerable:!0,get:function(){return e[t]}})}:function(r,e,t,n){n===void 0&&(n=t),r[n]=e[t]}),q2=ad&&ad.__exportStar||function(r,e){for(var t in r)t!=="default"&&!Object.prototype.hasOwnProperty.call(e,t)&&DSt(e,r,t)};Object.defineProperty(ad,"__esModule",{value:!0});q2(ZM(),ad);q2(Vj(),ad);q2(jve(),ad);q2(xT(),ad);q2(Yve(),ad);q2(GM(),ad)});var ET=O(mu=>{"use strict";x();T();var $ve=mu&&mu.__createBinding||(Object.create?function(r,e,t,n){n===void 0&&(n=t),Object.defineProperty(r,n,{enumerable:!0,get:function(){return e[t]}})}:function(r,e,t,n){n===void 0&&(n=t),r[n]=e[t]}),FSt=mu&&mu.__setModuleDefault||(Object.create?function(r,e){Object.defineProperty(r,"default",{enumerable:!0,value:e})}:function(r,e){r.default=e}),USt=mu&&mu.__importStar||function(r){if(r&&r.__esModule)return r;var e={};if(r!=null)for(var t in r)t!=="default"&&Object.prototype.hasOwnProperty.call(r,t)&&$ve(e,r,t);return FSt(e,r),e},WSt=mu&&mu.__exportStar||function(r,e){for(var t in r)t!=="default"&&!Object.prototype.hasOwnProperty.call(e,t)&&$ve(e,r,t)};Object.defineProperty(mu,"__esModule",{value:!0});mu.z=void 0;var e1e=USt(Zj());mu.z=e1e;WSt(Zj(),mu);mu.default=e1e});var d1e=O(yu=>{"use strict";x();T();var t1e=Fq(),r1e=_t(),n1e=wT(),Ct=ET(),jSt=Ct.z.string().refine(r=>r1e.utils.isAddress(r),r=>({message:`${r} is not a valid address`})),XM=Ct.z.date().transform(r=>r1e.BigNumber.from(Math.floor(r.getTime()/1e3))),a1e=Ct.z.union([Ct.z.literal("evm"),Ct.z.literal("solana")]),zSt=Ct.z.union([Ct.z.string(),Ct.z.number(),Ct.z.boolean(),Ct.z.null()]),YM=Ct.z.lazy(()=>Ct.z.union([zSt,Ct.z.array(YM),Ct.z.record(YM)]),{invalid_type_error:"Provided value was not valid JSON"}),i1e=Ct.z.object({domain:Ct.z.string().optional(),statement:Ct.z.string().optional(),uri:Ct.z.string().optional(),version:Ct.z.string().optional(),chainId:Ct.z.string().optional(),nonce:Ct.z.string().optional(),expirationTime:Ct.z.date().optional(),invalidBefore:Ct.z.date().optional(),resources:Ct.z.array(Ct.z.string()).optional()}).optional(),$M=Ct.z.object({type:a1e,domain:Ct.z.string(),address:Ct.z.string(),statement:Ct.z.string().default("Please ensure that the domain above matches the URL of the current website."),uri:Ct.z.string().optional(),version:Ct.z.string().default("1"),chain_id:Ct.z.string().optional(),nonce:Ct.z.string().default(n1e.v4()),issued_at:Ct.z.date().default(new Date).transform(r=>r.toISOString()),expiration_time:Ct.z.date().transform(r=>r.toISOString()),invalid_before:Ct.z.date().default(new Date).transform(r=>r.toISOString()),resources:Ct.z.array(Ct.z.string()).optional()}),s1e=Ct.z.object({payload:$M,signature:Ct.z.string()}),o1e=Ct.z.object({domain:Ct.z.string().optional(),statement:Ct.z.string().optional(),uri:Ct.z.string().optional(),version:Ct.z.string().optional(),chainId:Ct.z.string().optional(),validateNonce:Ct.z.function().args(Ct.z.string()).optional(),resources:Ct.z.array(Ct.z.string()).optional()}),c1e=o1e.optional(),u1e=Ct.z.object({domain:Ct.z.string().optional(),tokenId:Ct.z.string().optional(),expirationTime:Ct.z.date().optional(),invalidBefore:Ct.z.date().optional(),session:Ct.z.union([YM,Ct.z.function().args(Ct.z.string())]).optional(),verifyOptions:o1e.omit({domain:!0}).optional()}).optional(),Qj=Ct.z.object({iss:Ct.z.string(),sub:Ct.z.string(),aud:Ct.z.string(),exp:XM.transform(r=>r.toNumber()),nbf:XM.transform(r=>r.toNumber()),iat:XM.transform(r=>r.toNumber()),jti:Ct.z.string().default(n1e.v4()),ctx:YM.optional()}),HSt=Ct.z.object({payload:Qj,signature:Ct.z.string()}),l1e=Ct.z.object({domain:Ct.z.string().optional(),validateTokenId:Ct.z.function().args(Ct.z.string()).optional()}).optional(),VSt=s1e.extend({payload:$M.extend({issued_at:Ct.z.string(),expiration_time:Ct.z.string(),invalid_before:Ct.z.string()})}),Jj=()=>typeof window<"u",Kj=class{constructor(e,t){t1e._defineProperty(this,"domain",void 0),t1e._defineProperty(this,"wallet",void 0),this.wallet=e,this.domain=t}updateWallet(e){this.wallet=e}async login(e){let t=i1e.parse(e),n=t?.chainId;if(!n&&this.wallet.getChainId)try{n=(await this.wallet.getChainId()).toString()}catch{}let a=$M.parse({type:this.wallet.type,domain:t?.domain||this.domain,address:await this.wallet.getAddress(),statement:t?.statement,version:t?.version,uri:t?.uri||(Jj()?window.location.href:void 0),chain_id:n,nonce:t?.nonce,expiration_time:t?.expirationTime||new Date(Date.now()+1e3*60*5),invalid_before:t?.invalidBefore,resources:t?.resources}),i=this.generateMessage(a),s=await this.wallet.signMessage(i);return{payload:a,signature:s}}async verify(e,t){let n=c1e.parse(t);if(e.payload.type!==this.wallet.type)throw new Error(`Expected chain type '${this.wallet.type}' does not match chain type on payload '${e.payload.type}'`);let a=n?.domain||this.domain;if(e.payload.domain!==a)throw new Error(`Expected domain '${a}' does not match domain on payload '${e.payload.domain}'`);if(n?.statement&&e.payload.statement!==n.statement)throw new Error(`Expected statement '${n.statement}' does not match statement on payload '${e.payload.statement}'`);if(n?.uri&&e.payload.uri!==n.uri)throw new Error(`Expected URI '${n.uri}' does not match URI on payload '${e.payload.uri}'`);if(n?.version&&e.payload.version!==n.version)throw new Error(`Expected version '${n.version}' does not match version on payload '${e.payload.version}'`);if(n?.chainId&&e.payload.chain_id!==n.chainId)throw new Error(`Expected chain ID '${n.chainId}' does not match chain ID on payload '${e.payload.chain_id}'`);if(n?.validateNonce!==void 0)try{await n.validateNonce(e.payload.nonce)}catch{throw new Error("Login request nonce is invalid")}let i=new Date;if(inew Date(e.payload.expiration_time))throw new Error("Login request has expired");if(n?.resources){let d=n.resources.filter(f=>!e.payload.resources?.includes(f));if(d.length>0)throw new Error(`Login request is missing required resources: ${d.join(", ")}`)}let s=this.generateMessage(e.payload),c=this.wallet.type==="evm"&&e.payload.chain_id?parseInt(e.payload.chain_id):void 0;if(!await this.verifySignature(s,e.signature,e.payload.address,c))throw new Error(`Signer address does not match payload address '${e.payload.address.toLowerCase()}'`);return e.payload.address}async generate(e,t){if(Jj())throw new Error("Authentication tokens should not be generated in the browser, as they must be signed by a server-side admin wallet.");let n=u1e.parse(t),a=n?.domain||this.domain,i=await this.verify(e,{domain:a,...n?.verifyOptions}),s;if(typeof n?.session=="function"){let q=await n.session(i);q&&(s=q)}else s=n?.session;let c=await this.wallet.getAddress(),l=Qj.parse({iss:c,sub:i,aud:a,nbf:n?.invalidBefore||new Date,exp:n?.expirationTime||new Date(Date.now()+1e3*60*60*5),iat:new Date,jti:n?.tokenId,ctx:s}),d=JSON.stringify(l),f=await this.wallet.signMessage(d),w={alg:"ES256",typ:"JWT"},E=P.Buffer.from(JSON.stringify(w)).toString("base64"),k=P.Buffer.from(JSON.stringify(l)).toString("base64").replace(/=/g,""),A=P.Buffer.from(f).toString("base64");return`${E}.${k}.${A}`}async authenticate(e,t){if(Jj())throw new Error("Should not authenticate tokens in the browser, as they must be verified by the server-side admin wallet.");let n=l1e.parse(t),a=n?.domain||this.domain,i=e.split(".")[1],s=e.split(".")[2],c=JSON.parse(P.Buffer.from(i,"base64").toString()),l=P.Buffer.from(s,"base64").toString();if(n?.validateTokenId!==void 0)try{await n.validateTokenId(c.jti)}catch{throw new Error("Token ID is invalid")}if(c.aud!==a)throw new Error(`Expected token to be for the domain '${a}', but found token with domain '${c.aud}'`);let d=Math.floor(new Date().getTime()/1e3);if(dc.exp)throw new Error(`This token expired at epoch time '${c.exp}', current epoch time is '${d}'`);let f=await this.wallet.getAddress();if(f.toLowerCase()!==c.iss.toLowerCase())throw new Error(`Expected the connected wallet address '${f}' to match the token issuer address '${c.iss}'`);let w;if(this.wallet.getChainId)try{w=await this.wallet.getChainId()}catch{}if(!await this.verifySignature(JSON.stringify(c),l,f,w))throw new Error(`The connected wallet address '${f}' did not sign the token`);return{address:c.sub,session:c.ctx}}async verifySignature(e,t,n,a){return this.wallet.verifySignature(e,t,n,a)}generateMessage(e){let t=e.type==="evm"?"Ethereum":"Solana",a=[`${e.domain} wants you to sign in with your ${t} account:`,e.address].join(` -`);a=[a,e.statement].join(` - -`),e.statement&&(a+=` -`);let i=[];if(e.uri){let w=`URI: ${e.uri}`;i.push(w)}let s=`Version: ${e.version}`;if(i.push(s),e.chain_id){let w="Chain ID: "+e.chain_id||"1";i.push(w)}let c=`Nonce: ${e.nonce}`;i.push(c);let l=`Issued At: ${e.issued_at}`;i.push(l);let d=`Expiration Time: ${e.expiration_time}`;if(i.push(d),e.invalid_before){let w=`Not Before: ${e.invalid_before}`;i.push(w)}e.resources&&i.push(["Resources:",...e.resources.map(w=>`- ${w}`)].join(` -`));let f=i.join(` -`);return[a,f].join(` -`)}};yu.AccountTypeSchema=a1e;yu.AddressSchema=jSt;yu.AuthenticateOptionsSchema=l1e;yu.AuthenticationPayloadDataSchema=Qj;yu.AuthenticationPayloadSchema=HSt;yu.GenerateOptionsSchema=u1e;yu.LoginOptionsSchema=i1e;yu.LoginPayloadDataSchema=$M;yu.LoginPayloadOutputSchema=VSt;yu.LoginPayloadSchema=s1e;yu.RawDateSchema=XM;yu.ThirdwebAuth=Kj;yu.VerifyOptionsSchema=c1e});var p1e=O(Lc=>{"use strict";x();T();Object.defineProperty(Lc,"__esModule",{value:!0});var il=d1e();Fq();_t();wT();ET();Lc.AccountTypeSchema=il.AccountTypeSchema;Lc.AddressSchema=il.AddressSchema;Lc.AuthenticateOptionsSchema=il.AuthenticateOptionsSchema;Lc.AuthenticationPayloadDataSchema=il.AuthenticationPayloadDataSchema;Lc.AuthenticationPayloadSchema=il.AuthenticationPayloadSchema;Lc.GenerateOptionsSchema=il.GenerateOptionsSchema;Lc.LoginOptionsSchema=il.LoginOptionsSchema;Lc.LoginPayloadDataSchema=il.LoginPayloadDataSchema;Lc.LoginPayloadOutputSchema=il.LoginPayloadOutputSchema;Lc.LoginPayloadSchema=il.LoginPayloadSchema;Lc.RawDateSchema=il.RawDateSchema;Lc.ThirdwebAuth=il.ThirdwebAuth;Lc.VerifyOptionsSchema=il.VerifyOptionsSchema});var Xj=O(h1e=>{"use strict";x();T();function GSt(r,e){if(typeof r!="object"||r===null)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var n=t.call(r,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}function ZSt(r){var e=GSt(r,"string");return typeof e=="symbol"?e:String(e)}function JSt(r,e,t){return e=ZSt(e),e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}h1e._defineProperty=JSt});var C1e=O(gu=>{"use strict";x();T();var f1e=Xj(),m1e=_t(),y1e=wT(),Et=ET(),KSt=Et.z.string().refine(r=>m1e.utils.isAddress(r),r=>({message:`${r} is not a valid address`})),eI=Et.z.date().transform(r=>m1e.BigNumber.from(Math.floor(r.getTime()/1e3))),g1e=Et.z.union([Et.z.literal("evm"),Et.z.literal("solana")]),QSt=Et.z.union([Et.z.string(),Et.z.number(),Et.z.boolean(),Et.z.null()]),tI=Et.z.lazy(()=>Et.z.union([QSt,Et.z.array(tI),Et.z.record(tI)]),{invalid_type_error:"Provided value was not valid JSON"}),v1e=Et.z.object({domain:Et.z.string().optional(),statement:Et.z.string().optional(),uri:Et.z.string().optional(),version:Et.z.string().optional(),chainId:Et.z.string().optional(),nonce:Et.z.string().optional(),expirationTime:Et.z.date().optional(),invalidBefore:Et.z.date().optional(),resources:Et.z.array(Et.z.string()).optional()}).optional(),rI=Et.z.object({type:g1e,domain:Et.z.string(),address:Et.z.string(),statement:Et.z.string().default("Please ensure that the domain above matches the URL of the current website."),uri:Et.z.string().optional(),version:Et.z.string().default("1"),chain_id:Et.z.string().optional(),nonce:Et.z.string().default(y1e.v4()),issued_at:Et.z.date().default(new Date).transform(r=>r.toISOString()),expiration_time:Et.z.date().transform(r=>r.toISOString()),invalid_before:Et.z.date().default(new Date).transform(r=>r.toISOString()),resources:Et.z.array(Et.z.string()).optional()}),b1e=Et.z.object({payload:rI,signature:Et.z.string()}),w1e=Et.z.object({domain:Et.z.string().optional(),statement:Et.z.string().optional(),uri:Et.z.string().optional(),version:Et.z.string().optional(),chainId:Et.z.string().optional(),validateNonce:Et.z.function().args(Et.z.string()).optional(),resources:Et.z.array(Et.z.string()).optional()}),x1e=w1e.optional(),T1e=Et.z.object({domain:Et.z.string().optional(),tokenId:Et.z.string().optional(),expirationTime:Et.z.date().optional(),invalidBefore:Et.z.date().optional(),session:Et.z.union([tI,Et.z.function().args(Et.z.string())]).optional(),verifyOptions:w1e.omit({domain:!0}).optional()}).optional(),ez=Et.z.object({iss:Et.z.string(),sub:Et.z.string(),aud:Et.z.string(),exp:eI.transform(r=>r.toNumber()),nbf:eI.transform(r=>r.toNumber()),iat:eI.transform(r=>r.toNumber()),jti:Et.z.string().default(y1e.v4()),ctx:tI.optional()}),XSt=Et.z.object({payload:ez,signature:Et.z.string()}),_1e=Et.z.object({domain:Et.z.string().optional(),validateTokenId:Et.z.function().args(Et.z.string()).optional()}).optional(),YSt=b1e.extend({payload:rI.extend({issued_at:Et.z.string(),expiration_time:Et.z.string(),invalid_before:Et.z.string()})}),Yj=()=>typeof window<"u",$j=class{constructor(e,t){f1e._defineProperty(this,"domain",void 0),f1e._defineProperty(this,"wallet",void 0),this.wallet=e,this.domain=t}updateWallet(e){this.wallet=e}async login(e){let t=v1e.parse(e),n=t?.chainId;if(!n&&this.wallet.getChainId)try{n=(await this.wallet.getChainId()).toString()}catch{}let a=rI.parse({type:this.wallet.type,domain:t?.domain||this.domain,address:await this.wallet.getAddress(),statement:t?.statement,version:t?.version,uri:t?.uri||(Yj()?window.location.href:void 0),chain_id:n,nonce:t?.nonce,expiration_time:t?.expirationTime||new Date(Date.now()+1e3*60*5),invalid_before:t?.invalidBefore,resources:t?.resources}),i=this.generateMessage(a),s=await this.wallet.signMessage(i);return{payload:a,signature:s}}async verify(e,t){let n=x1e.parse(t);if(e.payload.type!==this.wallet.type)throw new Error(`Expected chain type '${this.wallet.type}' does not match chain type on payload '${e.payload.type}'`);let a=n?.domain||this.domain;if(e.payload.domain!==a)throw new Error(`Expected domain '${a}' does not match domain on payload '${e.payload.domain}'`);if(n?.statement&&e.payload.statement!==n.statement)throw new Error(`Expected statement '${n.statement}' does not match statement on payload '${e.payload.statement}'`);if(n?.uri&&e.payload.uri!==n.uri)throw new Error(`Expected URI '${n.uri}' does not match URI on payload '${e.payload.uri}'`);if(n?.version&&e.payload.version!==n.version)throw new Error(`Expected version '${n.version}' does not match version on payload '${e.payload.version}'`);if(n?.chainId&&e.payload.chain_id!==n.chainId)throw new Error(`Expected chain ID '${n.chainId}' does not match chain ID on payload '${e.payload.chain_id}'`);if(n?.validateNonce!==void 0)try{await n.validateNonce(e.payload.nonce)}catch{throw new Error("Login request nonce is invalid")}let i=new Date;if(inew Date(e.payload.expiration_time))throw new Error("Login request has expired");if(n?.resources){let d=n.resources.filter(f=>!e.payload.resources?.includes(f));if(d.length>0)throw new Error(`Login request is missing required resources: ${d.join(", ")}`)}let s=this.generateMessage(e.payload),c=this.wallet.type==="evm"&&e.payload.chain_id?parseInt(e.payload.chain_id):void 0;if(!await this.verifySignature(s,e.signature,e.payload.address,c))throw new Error(`Signer address does not match payload address '${e.payload.address.toLowerCase()}'`);return e.payload.address}async generate(e,t){if(Yj())throw new Error("Authentication tokens should not be generated in the browser, as they must be signed by a server-side admin wallet.");let n=T1e.parse(t),a=n?.domain||this.domain,i=await this.verify(e,{domain:a,...n?.verifyOptions}),s;if(typeof n?.session=="function"){let q=await n.session(i);q&&(s=q)}else s=n?.session;let c=await this.wallet.getAddress(),l=ez.parse({iss:c,sub:i,aud:a,nbf:n?.invalidBefore||new Date,exp:n?.expirationTime||new Date(Date.now()+1e3*60*60*5),iat:new Date,jti:n?.tokenId,ctx:s}),d=JSON.stringify(l),f=await this.wallet.signMessage(d),w={alg:"ES256",typ:"JWT"},E=P.Buffer.from(JSON.stringify(w)).toString("base64"),k=P.Buffer.from(JSON.stringify(l)).toString("base64").replace(/=/g,""),A=P.Buffer.from(f).toString("base64");return`${E}.${k}.${A}`}async authenticate(e,t){if(Yj())throw new Error("Should not authenticate tokens in the browser, as they must be verified by the server-side admin wallet.");let n=_1e.parse(t),a=n?.domain||this.domain,i=e.split(".")[1],s=e.split(".")[2],c=JSON.parse(P.Buffer.from(i,"base64").toString()),l=P.Buffer.from(s,"base64").toString();if(n?.validateTokenId!==void 0)try{await n.validateTokenId(c.jti)}catch{throw new Error("Token ID is invalid")}if(c.aud!==a)throw new Error(`Expected token to be for the domain '${a}', but found token with domain '${c.aud}'`);let d=Math.floor(new Date().getTime()/1e3);if(dc.exp)throw new Error(`This token expired at epoch time '${c.exp}', current epoch time is '${d}'`);let f=await this.wallet.getAddress();if(f.toLowerCase()!==c.iss.toLowerCase())throw new Error(`Expected the connected wallet address '${f}' to match the token issuer address '${c.iss}'`);let w;if(this.wallet.getChainId)try{w=await this.wallet.getChainId()}catch{}if(!await this.verifySignature(JSON.stringify(c),l,f,w))throw new Error(`The connected wallet address '${f}' did not sign the token`);return{address:c.sub,session:c.ctx}}async verifySignature(e,t,n,a){return this.wallet.verifySignature(e,t,n,a)}generateMessage(e){let t=e.type==="evm"?"Ethereum":"Solana",a=[`${e.domain} wants you to sign in with your ${t} account:`,e.address].join(` -`);a=[a,e.statement].join(` - -`),e.statement&&(a+=` -`);let i=[];if(e.uri){let w=`URI: ${e.uri}`;i.push(w)}let s=`Version: ${e.version}`;if(i.push(s),e.chain_id){let w="Chain ID: "+e.chain_id||"1";i.push(w)}let c=`Nonce: ${e.nonce}`;i.push(c);let l=`Issued At: ${e.issued_at}`;i.push(l);let d=`Expiration Time: ${e.expiration_time}`;if(i.push(d),e.invalid_before){let w=`Not Before: ${e.invalid_before}`;i.push(w)}e.resources&&i.push(["Resources:",...e.resources.map(w=>`- ${w}`)].join(` -`));let f=i.join(` -`);return[a,f].join(` -`)}};gu.AccountTypeSchema=g1e;gu.AddressSchema=KSt;gu.AuthenticateOptionsSchema=_1e;gu.AuthenticationPayloadDataSchema=ez;gu.AuthenticationPayloadSchema=XSt;gu.GenerateOptionsSchema=T1e;gu.LoginOptionsSchema=v1e;gu.LoginPayloadDataSchema=rI;gu.LoginPayloadOutputSchema=YSt;gu.LoginPayloadSchema=b1e;gu.RawDateSchema=eI;gu.ThirdwebAuth=$j;gu.VerifyOptionsSchema=x1e});var E1e=O(Bc=>{"use strict";x();T();Object.defineProperty(Bc,"__esModule",{value:!0});var sl=C1e();Xj();_t();wT();ET();Bc.AccountTypeSchema=sl.AccountTypeSchema;Bc.AddressSchema=sl.AddressSchema;Bc.AuthenticateOptionsSchema=sl.AuthenticateOptionsSchema;Bc.AuthenticationPayloadDataSchema=sl.AuthenticationPayloadDataSchema;Bc.AuthenticationPayloadSchema=sl.AuthenticationPayloadSchema;Bc.GenerateOptionsSchema=sl.GenerateOptionsSchema;Bc.LoginOptionsSchema=sl.LoginOptionsSchema;Bc.LoginPayloadDataSchema=sl.LoginPayloadDataSchema;Bc.LoginPayloadOutputSchema=sl.LoginPayloadOutputSchema;Bc.LoginPayloadSchema=sl.LoginPayloadSchema;Bc.RawDateSchema=sl.RawDateSchema;Bc.ThirdwebAuth=sl.ThirdwebAuth;Bc.VerifyOptionsSchema=sl.VerifyOptionsSchema});var k1e=O((inn,tz)=>{"use strict";x();T();M.env.NODE_ENV==="production"?tz.exports=p1e():tz.exports=E1e()});var S1e=O((cnn,nz)=>{x();T();var rz=function(r){"use strict";var e=Object.prototype,t=e.hasOwnProperty,n=Object.defineProperty||function(C,m,u){C[m]=u.value},a,i=typeof Symbol=="function"?Symbol:{},s=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function d(C,m,u){return Object.defineProperty(C,m,{value:u,enumerable:!0,configurable:!0,writable:!0}),C[m]}try{d({},"")}catch{d=function(m,u,b){return m[u]=b}}function f(C,m,u,b){var R=m&&m.prototype instanceof U?m:U,S=Object.create(R.prototype),B=new h(b||[]);return n(S,"_invoke",{value:g(C,u,B)}),S}r.wrap=f;function w(C,m,u){try{return{type:"normal",arg:C.call(m,u)}}catch(b){return{type:"throw",arg:b}}}var E="suspendedStart",k="suspendedYield",A="executing",L="completed",q={};function U(){}function j(){}function H(){}var G={};d(G,s,function(){return this});var te=Object.getPrototypeOf,K=te&&te(te(v([])));K&&K!==e&&t.call(K,s)&&(G=K);var ae=H.prototype=U.prototype=Object.create(G);j.prototype=H,n(ae,"constructor",{value:H,configurable:!0}),n(H,"constructor",{value:j,configurable:!0}),j.displayName=d(H,l,"GeneratorFunction");function J(C){["next","throw","return"].forEach(function(m){d(C,m,function(u){return this._invoke(m,u)})})}r.isGeneratorFunction=function(C){var m=typeof C=="function"&&C.constructor;return m?m===j||(m.displayName||m.name)==="GeneratorFunction":!1},r.mark=function(C){return Object.setPrototypeOf?Object.setPrototypeOf(C,H):(C.__proto__=H,d(C,l,"GeneratorFunction")),C.prototype=Object.create(ae),C},r.awrap=function(C){return{__await:C}};function V(C,m){function u(S,B,Z,W){var X=w(C[S],C,B);if(X.type==="throw")W(X.arg);else{var de=X.arg,ne=de.value;return ne&&typeof ne=="object"&&t.call(ne,"__await")?m.resolve(ne.__await).then(function(pe){u("next",pe,Z,W)},function(pe){u("throw",pe,Z,W)}):m.resolve(ne).then(function(pe){de.value=pe,Z(de)},function(pe){return u("throw",pe,Z,W)})}}var b;function R(S,B){function Z(){return new m(function(W,X){u(S,B,W,X)})}return b=b?b.then(Z,Z):Z()}n(this,"_invoke",{value:R})}J(V.prototype),d(V.prototype,c,function(){return this}),r.AsyncIterator=V,r.async=function(C,m,u,b,R){R===void 0&&(R=Promise);var S=new V(f(C,m,u,b),R);return r.isGeneratorFunction(m)?S:S.next().then(function(B){return B.done?B.value:S.next()})};function g(C,m,u){var b=E;return function(S,B){if(b===A)throw new Error("Generator is already running");if(b===L){if(S==="throw")throw B;return _()}for(u.method=S,u.arg=B;;){var Z=u.delegate;if(Z){var W=o(Z,u);if(W){if(W===q)continue;return W}}if(u.method==="next")u.sent=u._sent=u.arg;else if(u.method==="throw"){if(b===E)throw b=L,u.arg;u.dispatchException(u.arg)}else u.method==="return"&&u.abrupt("return",u.arg);b=A;var X=w(C,m,u);if(X.type==="normal"){if(b=u.done?L:k,X.arg===q)continue;return{value:X.arg,done:u.done}}else X.type==="throw"&&(b=L,u.method="throw",u.arg=X.arg)}}}function o(C,m){var u=m.method,b=C.iterator[u];if(b===a)return m.delegate=null,u==="throw"&&C.iterator.return&&(m.method="return",m.arg=a,o(C,m),m.method==="throw")||u!=="return"&&(m.method="throw",m.arg=new TypeError("The iterator does not provide a '"+u+"' method")),q;var R=w(b,C.iterator,m.arg);if(R.type==="throw")return m.method="throw",m.arg=R.arg,m.delegate=null,q;var S=R.arg;if(!S)return m.method="throw",m.arg=new TypeError("iterator result is not an object"),m.delegate=null,q;if(S.done)m[C.resultName]=S.value,m.next=C.nextLoc,m.method!=="return"&&(m.method="next",m.arg=a);else return S;return m.delegate=null,q}J(ae),d(ae,l,"Generator"),d(ae,s,function(){return this}),d(ae,"toString",function(){return"[object Generator]"});function p(C){var m={tryLoc:C[0]};1 in C&&(m.catchLoc=C[1]),2 in C&&(m.finallyLoc=C[2],m.afterLoc=C[3]),this.tryEntries.push(m)}function y(C){var m=C.completion||{};m.type="normal",delete m.arg,C.completion=m}function h(C){this.tryEntries=[{tryLoc:"root"}],C.forEach(p,this),this.reset(!0)}r.keys=function(C){var m=Object(C),u=[];for(var b in m)u.push(b);return u.reverse(),function R(){for(;u.length;){var S=u.pop();if(S in m)return R.value=S,R.done=!1,R}return R.done=!0,R}};function v(C){if(C){var m=C[s];if(m)return m.call(C);if(typeof C.next=="function")return C;if(!isNaN(C.length)){var u=-1,b=function R(){for(;++u=0;--b){var R=this.tryEntries[b],S=R.completion;if(R.tryLoc==="root")return u("end");if(R.tryLoc<=this.prev){var B=t.call(R,"catchLoc"),Z=t.call(R,"finallyLoc");if(B&&Z){if(this.prev=0;--u){var b=this.tryEntries[u];if(b.tryLoc<=this.prev&&t.call(b,"finallyLoc")&&this.prev=0;--m){var u=this.tryEntries[m];if(u.finallyLoc===C)return this.complete(u.completion,u.afterLoc),y(u),q}},catch:function(C){for(var m=this.tryEntries.length-1;m>=0;--m){var u=this.tryEntries[m];if(u.tryLoc===C){var b=u.completion;if(b.type==="throw"){var R=b.arg;y(u)}return R}}throw new Error("illegal catch attempt")},delegateYield:function(C,m,u){return this.delegate={iterator:v(C),resultName:m,nextLoc:u},this.method==="next"&&(this.arg=a),q}},r}(typeof nz=="object"?nz.exports:{});try{regeneratorRuntime=rz}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=rz:Function("r","regeneratorRuntime = r")(rz)}});var kT=O(Eh=>{"use strict";x();T();Object.defineProperty(Eh,"__esModule",{value:!0});var A1e=rAt(S1e());function az(r,e){(e==null||e>r.length)&&(e=r.length);for(var t=0,n=new Array(e);t=0)&&(!Object.prototype.propertyIsEnumerable.call(r,n)||(t[n]=r[n]))}return t}function sAt(r,e){if(r==null)return{};var t={},n=Object.keys(r),a,i;for(i=0;i=0)&&(t[a]=r[a]);return t}function O1e(r){return $St(r)||nAt(r)||cAt(r)||aAt()}var oAt=function(r){return r&&typeof Symbol<"u"&&r.constructor===Symbol?"symbol":typeof r};function cAt(r,e){if(!!r){if(typeof r=="string")return az(r,e);var t=Object.prototype.toString.call(r).slice(8,-1);if(t==="Object"&&r.constructor&&(t=r.constructor.name),t==="Map"||t==="Set")return Array.from(t);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return az(r,e)}}Object.defineProperty(Eh,"__esModule",{value:!0});function Fn(r){for(var e=void 0,t=r[0],n=1;n"u"?"undefined":oAt(e))!=="symbol"?e+"":e,t),t},B1e="https://pay.coinbase.com",q1e=Cn(function(r){var e=r.host,t=e===void 0?B1e:e,n=r.destinationWallets,a=N1e(r,["host","destinationWallets"]),i=new URL(t);return i.pathname="/buy/select-asset",i.searchParams.append("destinationWallets",JSON.stringify(n)),Object.keys(a).forEach(function(s){var c=a[s];c!==void 0&&i.searchParams.append(s,c.toString())}),i.searchParams.sort(),i.toString()},"generateOnRampURL"),D1e="cbpay-embedded-onramp",lAt=Cn(function(r){var e=r.url,t=r.width,n=t===void 0?"100%":t,a=r.height,i=a===void 0?"100%":a,s=r.position,c=s===void 0?"fixed":s,l=r.top,d=l===void 0?"0px":l,f=document.createElement("iframe");return f.style.border="unset",f.style.borderWidth="0",f.style.width=n.toString(),f.style.height=i.toString(),f.style.position=c,f.style.top=d,f.id=D1e,f.src=e,f},"createEmbeddedContent"),I1e;(function(r){r.LaunchEmbedded="launch_embedded",r.AppReady="app_ready",r.AppParams="app_params",r.SigninSuccess="signin_success",r.Success="success",r.Exit="exit",r.Event="event",r.Error="error",r.PixelReady="pixel_ready",r.OnAppParamsNonce="on_app_params_nonce"})(I1e||(I1e={}));var F1e=Cn(function(r,e){var t=e.onMessage,n=e.shouldUnsubscribe,a=n===void 0?!0:n,i=e.allowedOrigin,s=e.onValidateOrigin,c=s===void 0?Cn(function(){return Promise.resolve(!0)},"onValidateOrigin"):s,l=Cn(function(d){var f=hAt(d.data),w=f.eventName,E=f.data,k=!i||d.origin===i;w===r&&eAt(A1e.default.mark(function A(){return A1e.default.wrap(function(q){for(;;)switch(q.prev=q.next){case 0:if(q.t0=k,!q.t0){q.next=5;break}return q.next=4,c(d.origin);case 4:q.t0=q.sent;case 5:if(!q.t0){q.next=7;break}t(E),a&&window.removeEventListener("message",l);case 7:case"end":return q.stop()}},A)}))()},"onMessage");return window.addEventListener("message",l),function(){window.removeEventListener("message",l)}},"onBroadcastedPostMessage"),dAt=Cn(function(r){return r!==window?r:pAt(r)?{postMessage:function(e){return r.ReactNativeWebView.postMessage(e)}}:r.opener?r.opener:r.parent!==r.self?r.parent:void 0},"getSdkTarget"),pAt=Cn(function(r){try{return Fn([r,"access",function(e){return e.ReactNativeWebView},"optionalAccess",function(e){return e.postMessage}])!==void 0}catch{return!1}},"isMobileSdkTarget"),oz=Cn(function(r,e){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=t.allowedOrigin,a=n===void 0?"*":n,i=t.data,s=fAt(e,i);r.postMessage(s,a)},"broadcastPostMessage"),hAt=Cn(function(r){try{return JSON.parse(r)}catch{return{eventName:r}}},"parsePostMessage"),fAt=Cn(function(r,e){return e?JSON.stringify({eventName:r,data:e}):r},"formatPostMessage"),mAt="/embed",yAt=5e3,iz="coinbase-sdk-connect",R0={signin:{width:460,height:730},widget:{width:430,height:600}},U1e=function r(e){var t=e.host,n=t===void 0?B1e:t,a=e.appId,i=e.appParams,s=e.onReady,c=e.onFallbackOpen,l=e.debug,d=this;P1e(this,r),Qi(this,"state","loading"),Qi(this,"nonce",""),Qi(this,"eventStreamListeners",{}),Qi(this,"unsubs",[]),Qi(this,"isLoggedIn",!1),Qi(this,"openExperience",Cn(function(f){if(d.log("Attempting to open experience",{state:d.state}),d.state!=="waiting_for_response"&&d.state!=="loading"){if(d.state==="failed"){Fn([d,"access",function(te){return te.onFallbackOpen},"optionalCall",function(te){return te()}]);return}if(!d.nonce)throw new Error("Attempted to open CB Pay experience without nonce");var w=d.nonce;d.nonce="",d.setupExperienceListeners(f);var E=f.path,k=f.experienceLoggedIn,A=f.experienceLoggedOut,L=f.embeddedContentStyles,q=new URL("".concat(d.host).concat(E));q.searchParams.append("appId",d.appId),q.searchParams.append("type","secure_standalone");var U=d.isLoggedIn?k:A||k;q.searchParams.append("nonce",w);var j=q.toString();if(d.log("Opening experience",{experience:U,isLoggedIn:d.isLoggedIn}),U==="embedded"){var H=Cn(function(){var te=lAt(D2({url:j},L));Fn([L,"optionalAccess",function(K){return K.target}])?Fn([document,"access",function(K){return K.querySelector},"call",function(K){return K(Fn([L,"optionalAccess",function(ae){return ae.target}]))},"optionalAccess",function(K){return K.replaceChildren},"call",function(K){return K(te)}]):document.body.appendChild(te)},"openEmbeddedExperience");d.isLoggedIn?H():d.startDirectSignin(H)}else U==="popup"&&Fn([window,"access",function(te){return te.chrome},"optionalAccess",function(te){return te.windows},"optionalAccess",function(te){return te.create}])?window.chrome.windows.create({url:j,setSelfAsOpener:!0,type:"popup",focused:!0,width:R0.signin.width,height:R0.signin.height,left:window.screenLeft-R0.signin.width-10,top:window.screenTop},function(te){d.addEventStreamListener("open",function(){Fn([te,"optionalAccess",function(K){return K.id}])&&chrome.windows.update(te.id,{width:R0.widget.width,height:R0.widget.height,left:window.screenLeft-R0.widget.width-10,top:window.screenTop})})}):U==="new_tab"&&Fn([window,"access",function(te){return te.chrome},"optionalAccess",function(te){return te.tabs},"optionalAccess",function(te){return te.create}])?window.chrome.tabs.create({url:j}):sz(j,U);var G=Cn(function(){d.sendAppParams(),d.removeEventStreamListener("open",G)},"onOpen");d.addEventStreamListener("open",G)}},"openExperience")),Qi(this,"endExperience",Cn(function(){Fn([document,"access",function(f){return f.getElementById},"call",function(f){return f(D1e)},"optionalAccess",function(f){return f.remove},"call",function(f){return f()}])},"endExperience")),Qi(this,"destroy",Cn(function(){Fn([document,"access",function(f){return f.getElementById},"call",function(f){return f(iz)},"optionalAccess",function(f){return f.remove},"call",function(f){return f()}]),d.unsubs.forEach(function(f){return f()})},"destroy")),Qi(this,"addPixelReadyListener",Cn(function(){d.onMessage("pixel_ready",{shouldUnsubscribe:!1,onMessage:function(f){d.log("Received message: pixel_ready"),d.isLoggedIn=!!Fn([f,"optionalAccess",function(w){return w.isLoggedIn}]),Fn([d,"access",function(w){return w.removeErrorListener},"optionalCall",function(w){return w()}]),d.sendAppParams(function(){Fn([d,"access",function(w){return w.onReadyCallback},"optionalCall",function(w){return w()}])})}})},"addPixelReadyListener")),Qi(this,"addErrorListener",Cn(function(){d.removeErrorListener=d.onMessage("error",{shouldUnsubscribe:!0,onMessage:function(f){if(d.log("Received message: error"),f){var w=typeof f=="string"?f:JSON.stringify(f);Fn([d,"access",function(E){return E.onReadyCallback},"optionalCall",function(E){return E(new Error(w))}])}}})},"addErrorListener")),Qi(this,"embedPixel",Cn(function(){Fn([document,"access",function(w){return w.getElementById},"call",function(w){return w(iz)},"optionalAccess",function(w){return w.remove},"call",function(w){return w()}]);var f=W1e({host:d.host,appId:d.appId});f.onerror=d.onFailedToLoad,d.pixelIframe=f,document.body.appendChild(f)},"embedPixel")),Qi(this,"onFailedToLoad",Cn(function(){if(d.state="failed",d.onFallbackOpen)d.debug&&console.warn("Failed to load CB Pay pixel. Falling back to opening in new tab."),Fn([d,"access",function(w){return w.onReadyCallback},"optionalCall",function(w){return w()}]);else{var f=new Error("Failed to load CB Pay pixel");d.debug&&console.error(f),Fn([d,"access",function(w){return w.onReadyCallback},"optionalCall",function(w){return w(f)}])}},"onFailedToLoad")),Qi(this,"sendAppParams",Cn(function(f){Fn([d,"access",function(w){return w.pixelIframe},"optionalAccess",function(w){return w.contentWindow}])?(d.log("Sending message: app_params"),d.onMessage("on_app_params_nonce",{onMessage:function(w){d.state="ready",d.nonce=Fn([w,"optionalAccess",function(E){return E.nonce}])||"",Fn([f,"optionalCall",function(E){return E()}])}}),d.state="waiting_for_response",oz(d.pixelIframe.contentWindow,"app_params",{data:d.appParams})):(console.error("Failed to find pixel content window"),d.state="failed",Fn([d,"access",function(w){return w.onFallbackOpen},"optionalCall",function(w){return w()}]))},"sendAppParams")),Qi(this,"setupExperienceListeners",Cn(function(f){var w=f.onSuccess,E=f.onExit,k=f.onEvent;d.onMessage("event",{shouldUnsubscribe:!1,onMessage:function(A){var L=A;Fn([d,"access",function(q){return q.eventStreamListeners},"access",function(q){return q[L.eventName]},"optionalAccess",function(q){return q.forEach},"call",function(q){return q(function(U){return Fn([U,"optionalCall",function(j){return j()}])})}]),L.eventName==="success"&&Fn([w,"optionalCall",function(q){return q()}]),L.eventName==="exit"&&Fn([E,"optionalCall",function(q){return q(L.error)}]),Fn([k,"optionalCall",function(q){return q(A)}])}})},"setupExperienceListeners")),Qi(this,"startDirectSignin",Cn(function(f){var w=new URLSearchParams;w.set("appId",d.appId),w.set("type","direct");var E="".concat(d.host,"/signin?").concat(w.toString()),k=sz(E,"popup");d.onMessage("signin_success",{onMessage:function(){Fn([k,"optionalAccess",function(A){return A.close},"call",function(A){return A()}]),f()}})},"startDirectSignin")),Qi(this,"addEventStreamListener",Cn(function(f,w){d.eventStreamListeners[f]?Fn([d,"access",function(E){return E.eventStreamListeners},"access",function(E){return E[f]},"optionalAccess",function(E){return E.push},"call",function(E){return E(w)}]):d.eventStreamListeners[f]=[w]},"addEventStreamListener")),Qi(this,"removeEventStreamListener",Cn(function(f,w){if(d.eventStreamListeners[f]){var E=Fn([d,"access",function(k){return k.eventStreamListeners},"access",function(k){return k[f]},"optionalAccess",function(k){return k.filter},"call",function(k){return k(function(A){return A!==w})}]);d.eventStreamListeners[f]=E}},"removeEventStreamListener")),Qi(this,"onMessage",Cn(function(){for(var f=arguments.length,w=new Array(f),E=0;E{"use strict";x();T();Object.defineProperty(dz,"__esModule",{value:!0});var bAt=kT();function wAt(r,e){if(e.has(r))throw new TypeError("Cannot initialize the same private elements twice on an object")}function xAt(r,e,t){wAt(r,e),e.set(r,t)}function TAt(r,e){return e.get?e.get.call(r):e.value}function z1e(r,e,t){if(!e.has(r))throw new TypeError("attempted to "+t+" private field on non-instance");return e.get(r)}function _At(r,e){var t=z1e(r,e,"get");return TAt(r,t)}function CAt(r,e,t){if(e.set)e.set.call(r,t);else{if(!e.writable)throw new TypeError("attempted to set read only private field");e.value=t}}function EAt(r,e,t){var n=z1e(r,e,"set");return CAt(r,n,t),t}var kAt={[-1]:"solana",1:"ethereum",69:"optimism",137:"polygon"},uz=new WeakMap,lz=class{constructor(e){xAt(this,uz,{writable:!0,value:void 0}),EAt(this,uz,e.appId)}async fundWallet(e){let{address:t,chainId:n,assets:a}=e;return new Promise((i,s)=>{bAt.initOnRamp({appId:_At(this,uz),widgetParameters:{destinationWallets:[{address:t,assets:a,supportedNetworks:[kAt[n]]}]},experienceLoggedIn:"embedded",experienceLoggedOut:"popup",closeOnExit:!0,onSuccess:()=>{i()},onExit(c){return c?s(c):i()}},(c,l)=>{if(c||!l)return s(c);l.open()})})}};dz.CoinbasePayIntegration=lz});var V1e=O(pz=>{"use strict";x();T();Object.defineProperty(pz,"__esModule",{value:!0});var SAt=H1e();kT();pz.CoinbasePayIntegration=SAt.CoinbasePayIntegration});var Z1e=O(mz=>{"use strict";x();T();Object.defineProperty(mz,"__esModule",{value:!0});var AAt=kT();function MAt(r,e){if(e.has(r))throw new TypeError("Cannot initialize the same private elements twice on an object")}function IAt(r,e,t){MAt(r,e),e.set(r,t)}function PAt(r,e){return e.get?e.get.call(r):e.value}function G1e(r,e,t){if(!e.has(r))throw new TypeError("attempted to "+t+" private field on non-instance");return e.get(r)}function RAt(r,e){var t=G1e(r,e,"get");return PAt(r,t)}function NAt(r,e,t){if(e.set)e.set.call(r,t);else{if(!e.writable)throw new TypeError("attempted to set read only private field");e.value=t}}function OAt(r,e,t){var n=G1e(r,e,"set");return NAt(r,n,t),t}var LAt={[-1]:"solana",1:"ethereum",69:"optimism",137:"polygon"},hz=new WeakMap,fz=class{constructor(e){IAt(this,hz,{writable:!0,value:void 0}),OAt(this,hz,e.appId)}async fundWallet(e){let{address:t,chainId:n,assets:a}=e;return new Promise((i,s)=>{AAt.initOnRamp({appId:RAt(this,hz),widgetParameters:{destinationWallets:[{address:t,assets:a,supportedNetworks:[LAt[n]]}]},experienceLoggedIn:"embedded",experienceLoggedOut:"popup",closeOnExit:!0,onSuccess:()=>{i()},onExit(c){return c?s(c):i()}},(c,l)=>{if(c||!l)return s(c);l.open()})})}};mz.CoinbasePayIntegration=fz});var J1e=O(yz=>{"use strict";x();T();Object.defineProperty(yz,"__esModule",{value:!0});var BAt=Z1e();kT();yz.CoinbasePayIntegration=BAt.CoinbasePayIntegration});var K1e=O((knn,gz)=>{"use strict";x();T();M.env.NODE_ENV==="production"?gz.exports=V1e():gz.exports=J1e()});var ST=O(Ci=>{"use strict";x();T();Object.defineProperty(Ci,"__esModule",{value:!0});Ci.getParsedType=Ci.ZodParsedType=Ci.util=void 0;var Q1e;(function(r){r.assertEqual=a=>a;function e(a){}r.assertIs=e;function t(a){throw new Error}r.assertNever=t,r.arrayToEnum=a=>{let i={};for(let s of a)i[s]=s;return i},r.getValidEnumValues=a=>{let i=r.objectKeys(a).filter(c=>typeof a[a[c]]!="number"),s={};for(let c of i)s[c]=a[c];return r.objectValues(s)},r.objectValues=a=>r.objectKeys(a).map(function(i){return a[i]}),r.objectKeys=typeof Object.keys=="function"?a=>Object.keys(a):a=>{let i=[];for(let s in a)Object.prototype.hasOwnProperty.call(a,s)&&i.push(s);return i},r.find=(a,i)=>{for(let s of a)if(i(s))return s},r.isInteger=typeof Number.isInteger=="function"?a=>Number.isInteger(a):a=>typeof a=="number"&&isFinite(a)&&Math.floor(a)===a;function n(a,i=" | "){return a.map(s=>typeof s=="string"?`'${s}'`:s).join(i)}r.joinValues=n,r.jsonStringifyReplacer=(a,i)=>typeof i=="bigint"?i.toString():i})(Q1e=Ci.util||(Ci.util={}));Ci.ZodParsedType=Q1e.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]);var qAt=r=>{switch(typeof r){case"undefined":return Ci.ZodParsedType.undefined;case"string":return Ci.ZodParsedType.string;case"number":return isNaN(r)?Ci.ZodParsedType.nan:Ci.ZodParsedType.number;case"boolean":return Ci.ZodParsedType.boolean;case"function":return Ci.ZodParsedType.function;case"bigint":return Ci.ZodParsedType.bigint;case"object":return Array.isArray(r)?Ci.ZodParsedType.array:r===null?Ci.ZodParsedType.null:r.then&&typeof r.then=="function"&&r.catch&&typeof r.catch=="function"?Ci.ZodParsedType.promise:typeof Map<"u"&&r instanceof Map?Ci.ZodParsedType.map:typeof Set<"u"&&r instanceof Set?Ci.ZodParsedType.set:typeof Date<"u"&&r instanceof Date?Ci.ZodParsedType.date:Ci.ZodParsedType.object;default:return Ci.ZodParsedType.unknown}};Ci.getParsedType=qAt});var nI=O(N0=>{"use strict";x();T();Object.defineProperty(N0,"__esModule",{value:!0});N0.ZodError=N0.quotelessJson=N0.ZodIssueCode=void 0;var X1e=ST();N0.ZodIssueCode=X1e.util.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of"]);var DAt=r=>JSON.stringify(r,null,2).replace(/"([^"]+)":/g,"$1:");N0.quotelessJson=DAt;var AT=class extends Error{constructor(e){super(),this.issues=[],this.addIssue=n=>{this.issues=[...this.issues,n]},this.addIssues=(n=[])=>{this.issues=[...this.issues,...n]};let t=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,t):this.__proto__=t,this.name="ZodError",this.issues=e}get errors(){return this.issues}format(e){let t=e||function(i){return i.message},n={_errors:[]},a=i=>{for(let s of i.issues)if(s.code==="invalid_union")s.unionErrors.map(a);else if(s.code==="invalid_return_type")a(s.returnTypeError);else if(s.code==="invalid_arguments")a(s.argumentsError);else if(s.path.length===0)n._errors.push(t(s));else{let c=n,l=0;for(;lt.message){let t={},n=[];for(let a of this.issues)a.path.length>0?(t[a.path[0]]=t[a.path[0]]||[],t[a.path[0]].push(e(a))):n.push(e(a));return{formErrors:n,fieldErrors:t}}get formErrors(){return this.flatten()}};N0.ZodError=AT;AT.create=r=>new AT(r)});var bz=O(vz=>{"use strict";x();T();Object.defineProperty(vz,"__esModule",{value:!0});var cv=ST(),qc=nI(),FAt=(r,e)=>{let t;switch(r.code){case qc.ZodIssueCode.invalid_type:r.received===cv.ZodParsedType.undefined?t="Required":t=`Expected ${r.expected}, received ${r.received}`;break;case qc.ZodIssueCode.invalid_literal:t=`Invalid literal value, expected ${JSON.stringify(r.expected,cv.util.jsonStringifyReplacer)}`;break;case qc.ZodIssueCode.unrecognized_keys:t=`Unrecognized key(s) in object: ${cv.util.joinValues(r.keys,", ")}`;break;case qc.ZodIssueCode.invalid_union:t="Invalid input";break;case qc.ZodIssueCode.invalid_union_discriminator:t=`Invalid discriminator value. Expected ${cv.util.joinValues(r.options)}`;break;case qc.ZodIssueCode.invalid_enum_value:t=`Invalid enum value. Expected ${cv.util.joinValues(r.options)}, received '${r.received}'`;break;case qc.ZodIssueCode.invalid_arguments:t="Invalid function arguments";break;case qc.ZodIssueCode.invalid_return_type:t="Invalid function return type";break;case qc.ZodIssueCode.invalid_date:t="Invalid date";break;case qc.ZodIssueCode.invalid_string:typeof r.validation=="object"?"startsWith"in r.validation?t=`Invalid input: must start with "${r.validation.startsWith}"`:"endsWith"in r.validation?t=`Invalid input: must end with "${r.validation.endsWith}"`:cv.util.assertNever(r.validation):r.validation!=="regex"?t=`Invalid ${r.validation}`:t="Invalid";break;case qc.ZodIssueCode.too_small:r.type==="array"?t=`Array must contain ${r.inclusive?"at least":"more than"} ${r.minimum} element(s)`:r.type==="string"?t=`String must contain ${r.inclusive?"at least":"over"} ${r.minimum} character(s)`:r.type==="number"?t=`Number must be greater than ${r.inclusive?"or equal to ":""}${r.minimum}`:r.type==="date"?t=`Date must be greater than ${r.inclusive?"or equal to ":""}${new Date(r.minimum)}`:t="Invalid input";break;case qc.ZodIssueCode.too_big:r.type==="array"?t=`Array must contain ${r.inclusive?"at most":"less than"} ${r.maximum} element(s)`:r.type==="string"?t=`String must contain ${r.inclusive?"at most":"under"} ${r.maximum} character(s)`:r.type==="number"?t=`Number must be less than ${r.inclusive?"or equal to ":""}${r.maximum}`:r.type==="date"?t=`Date must be smaller than ${r.inclusive?"or equal to ":""}${new Date(r.maximum)}`:t="Invalid input";break;case qc.ZodIssueCode.custom:t="Invalid input";break;case qc.ZodIssueCode.invalid_intersection_types:t="Intersection results could not be merged";break;case qc.ZodIssueCode.not_multiple_of:t=`Number must be a multiple of ${r.multipleOf}`;break;default:t=e.defaultError,cv.util.assertNever(r)}return{message:t}};vz.default=FAt});var aI=O(kh=>{"use strict";x();T();var UAt=kh&&kh.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(kh,"__esModule",{value:!0});kh.getErrorMap=kh.setErrorMap=kh.defaultErrorMap=void 0;var Y1e=UAt(bz());kh.defaultErrorMap=Y1e.default;var $1e=Y1e.default;function WAt(r){$1e=r}kh.setErrorMap=WAt;function jAt(){return $1e}kh.getErrorMap=jAt});var wz=O(ei=>{"use strict";x();T();var zAt=ei&&ei.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(ei,"__esModule",{value:!0});ei.isAsync=ei.isValid=ei.isDirty=ei.isAborted=ei.OK=ei.DIRTY=ei.INVALID=ei.ParseStatus=ei.addIssueToContext=ei.EMPTY_PATH=ei.makeIssue=void 0;var HAt=aI(),VAt=zAt(bz()),GAt=r=>{let{data:e,path:t,errorMaps:n,issueData:a}=r,i=[...t,...a.path||[]],s={...a,path:i},c="",l=n.filter(d=>!!d).slice().reverse();for(let d of l)c=d(s,{data:e,defaultError:c}).message;return{...a,path:i,message:a.message||c}};ei.makeIssue=GAt;ei.EMPTY_PATH=[];function ZAt(r,e){let t=ei.makeIssue({issueData:e,data:r.data,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,HAt.getErrorMap(),VAt.default].filter(n=>!!n)});r.common.issues.push(t)}ei.addIssueToContext=ZAt;var MT=class{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(e,t){let n=[];for(let a of t){if(a.status==="aborted")return ei.INVALID;a.status==="dirty"&&e.dirty(),n.push(a.value)}return{status:e.value,value:n}}static async mergeObjectAsync(e,t){let n=[];for(let a of t)n.push({key:await a.key,value:await a.value});return MT.mergeObjectSync(e,n)}static mergeObjectSync(e,t){let n={};for(let a of t){let{key:i,value:s}=a;if(i.status==="aborted"||s.status==="aborted")return ei.INVALID;i.status==="dirty"&&e.dirty(),s.status==="dirty"&&e.dirty(),(typeof s.value<"u"||a.alwaysSet)&&(n[i.value]=s.value)}return{status:e.value,value:n}}};ei.ParseStatus=MT;ei.INVALID=Object.freeze({status:"aborted"});var JAt=r=>({status:"dirty",value:r});ei.DIRTY=JAt;var KAt=r=>({status:"valid",value:r});ei.OK=KAt;var QAt=r=>r.status==="aborted";ei.isAborted=QAt;var XAt=r=>r.status==="dirty";ei.isDirty=XAt;var YAt=r=>r.status==="valid";ei.isValid=YAt;var $At=r=>typeof Promise!==void 0&&r instanceof Promise;ei.isAsync=$At});var tbe=O(ebe=>{"use strict";x();T();Object.defineProperty(ebe,"__esModule",{value:!0})});var rbe=O(IT=>{"use strict";x();T();Object.defineProperty(IT,"__esModule",{value:!0});IT.errorUtil=void 0;var eMt;(function(r){r.errToObj=e=>typeof e=="string"?{message:e}:e||{},r.toString=e=>typeof e=="string"?e:e?.message})(eMt=IT.errorUtil||(IT.errorUtil={}))});var dbe=O(it=>{"use strict";x();T();Object.defineProperty(it,"__esModule",{value:!0});it.function=it.enum=it.effect=it.discriminatedUnion=it.date=it.boolean=it.bigint=it.array=it.any=it.ZodFirstPartyTypeKind=it.late=it.ZodSchema=it.Schema=it.custom=it.ZodBranded=it.BRAND=it.ZodNaN=it.ZodDefault=it.ZodNullable=it.ZodOptional=it.ZodTransformer=it.ZodEffects=it.ZodPromise=it.ZodNativeEnum=it.ZodEnum=it.ZodLiteral=it.ZodLazy=it.ZodFunction=it.ZodSet=it.ZodMap=it.ZodRecord=it.ZodTuple=it.ZodIntersection=it.ZodDiscriminatedUnion=it.ZodUnion=it.ZodObject=it.objectUtil=it.ZodArray=it.ZodVoid=it.ZodNever=it.ZodUnknown=it.ZodAny=it.ZodNull=it.ZodUndefined=it.ZodDate=it.ZodBoolean=it.ZodBigInt=it.ZodNumber=it.ZodString=it.ZodType=void 0;it.NEVER=it.void=it.unknown=it.union=it.undefined=it.tuple=it.transformer=it.string=it.strictObject=it.set=it.record=it.promise=it.preprocess=it.ostring=it.optional=it.onumber=it.oboolean=it.object=it.number=it.nullable=it.null=it.never=it.nativeEnum=it.nan=it.map=it.literal=it.lazy=it.intersection=it.instanceof=void 0;var iI=aI(),ti=rbe(),lt=wz(),xt=ST(),zt=nI(),sd=class{constructor(e,t,n,a){this.parent=e,this.data=t,this._path=n,this._key=a}get path(){return this._path.concat(this._key)}},nbe=(r,e)=>{if(lt.isValid(e))return{success:!0,data:e.value};if(!r.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,error:new zt.ZodError(r.common.issues)}};function fn(r){if(!r)return{};let{errorMap:e,invalid_type_error:t,required_error:n,description:a}=r;if(e&&(t||n))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return e?{errorMap:e,description:a}:{errorMap:(s,c)=>s.code!=="invalid_type"?{message:c.defaultError}:typeof c.data>"u"?{message:n??c.defaultError}:{message:t??c.defaultError},description:a}}var sn=class{constructor(e){this.spa=this.safeParseAsync,this.superRefine=this._refinement,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.default=this.default.bind(this),this.describe=this.describe.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this)}get description(){return this._def.description}_getType(e){return xt.getParsedType(e.data)}_getOrReturnCtx(e,t){return t||{common:e.parent.common,data:e.data,parsedType:xt.getParsedType(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new lt.ParseStatus,ctx:{common:e.parent.common,data:e.data,parsedType:xt.getParsedType(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){let t=this._parse(e);if(lt.isAsync(t))throw new Error("Synchronous parse encountered promise.");return t}_parseAsync(e){let t=this._parse(e);return Promise.resolve(t)}parse(e,t){let n=this.safeParse(e,t);if(n.success)return n.data;throw n.error}safeParse(e,t){var n;let a={common:{issues:[],async:(n=t?.async)!==null&&n!==void 0?n:!1,contextualErrorMap:t?.errorMap},path:t?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:xt.getParsedType(e)},i=this._parseSync({data:e,path:a.path,parent:a});return nbe(a,i)}async parseAsync(e,t){let n=await this.safeParseAsync(e,t);if(n.success)return n.data;throw n.error}async safeParseAsync(e,t){let n={common:{issues:[],contextualErrorMap:t?.errorMap,async:!0},path:t?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:xt.getParsedType(e)},a=this._parse({data:e,path:[],parent:n}),i=await(lt.isAsync(a)?a:Promise.resolve(a));return nbe(n,i)}refine(e,t){let n=a=>typeof t=="string"||typeof t>"u"?{message:t}:typeof t=="function"?t(a):t;return this._refinement((a,i)=>{let s=e(a),c=()=>i.addIssue({code:zt.ZodIssueCode.custom,...n(a)});return typeof Promise<"u"&&s instanceof Promise?s.then(l=>l?!0:(c(),!1)):s?!0:(c(),!1)})}refinement(e,t){return this._refinement((n,a)=>e(n)?!0:(a.addIssue(typeof t=="function"?t(n,a):t),!1))}_refinement(e){return new ud({schema:this,typeName:Hr.ZodEffects,effect:{type:"refinement",refinement:e}})}optional(){return id.create(this)}nullable(){return Hf.create(this)}nullish(){return this.optional().nullable()}array(){return od.create(this)}promise(){return q0.create(this)}or(e){return uv.create([this,e])}and(e){return lv.create(this,e)}transform(e){return new ud({schema:this,typeName:Hr.ZodEffects,effect:{type:"transform",transform:e}})}default(e){let t=typeof e=="function"?e:()=>e;return new PT({innerType:this,defaultValue:t,typeName:Hr.ZodDefault})}brand(){return new sI({typeName:Hr.ZodBranded,type:this,...fn(void 0)})}describe(e){let t=this.constructor;return new t({...this._def,description:e})}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}};it.ZodType=sn;it.Schema=sn;it.ZodSchema=sn;var tMt=/^c[^\s-]{8,}$/i,rMt=/^([a-f0-9]{8}-[a-f0-9]{4}-[1-5][a-f0-9]{3}-[a-f0-9]{4}-[a-f0-9]{12}|00000000-0000-0000-0000-000000000000)$/i,nMt=/^(([^<>()[\]\.,;:\s@\"]+(\.[^<>()[\]\.,;:\s@\"]+)*)|(\".+\"))@(([^<>()[\]\.,;:\s@\"]+\.)+[^<>()[\]\.,;:\s@\"]{2,})$/i,Sh=class extends sn{constructor(){super(...arguments),this._regex=(e,t,n)=>this.refinement(a=>e.test(a),{validation:t,code:zt.ZodIssueCode.invalid_string,...ti.errorUtil.errToObj(n)}),this.nonempty=e=>this.min(1,ti.errorUtil.errToObj(e)),this.trim=()=>new Sh({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}_parse(e){if(this._getType(e)!==xt.ZodParsedType.string){let i=this._getOrReturnCtx(e);return lt.addIssueToContext(i,{code:zt.ZodIssueCode.invalid_type,expected:xt.ZodParsedType.string,received:i.parsedType}),lt.INVALID}let n=new lt.ParseStatus,a;for(let i of this._def.checks)if(i.kind==="min")e.data.lengthi.value&&(a=this._getOrReturnCtx(e,a),lt.addIssueToContext(a,{code:zt.ZodIssueCode.too_big,maximum:i.value,type:"string",inclusive:!0,message:i.message}),n.dirty());else if(i.kind==="email")nMt.test(e.data)||(a=this._getOrReturnCtx(e,a),lt.addIssueToContext(a,{validation:"email",code:zt.ZodIssueCode.invalid_string,message:i.message}),n.dirty());else if(i.kind==="uuid")rMt.test(e.data)||(a=this._getOrReturnCtx(e,a),lt.addIssueToContext(a,{validation:"uuid",code:zt.ZodIssueCode.invalid_string,message:i.message}),n.dirty());else if(i.kind==="cuid")tMt.test(e.data)||(a=this._getOrReturnCtx(e,a),lt.addIssueToContext(a,{validation:"cuid",code:zt.ZodIssueCode.invalid_string,message:i.message}),n.dirty());else if(i.kind==="url")try{new URL(e.data)}catch{a=this._getOrReturnCtx(e,a),lt.addIssueToContext(a,{validation:"url",code:zt.ZodIssueCode.invalid_string,message:i.message}),n.dirty()}else i.kind==="regex"?(i.regex.lastIndex=0,i.regex.test(e.data)||(a=this._getOrReturnCtx(e,a),lt.addIssueToContext(a,{validation:"regex",code:zt.ZodIssueCode.invalid_string,message:i.message}),n.dirty())):i.kind==="trim"?e.data=e.data.trim():i.kind==="startsWith"?e.data.startsWith(i.value)||(a=this._getOrReturnCtx(e,a),lt.addIssueToContext(a,{code:zt.ZodIssueCode.invalid_string,validation:{startsWith:i.value},message:i.message}),n.dirty()):i.kind==="endsWith"?e.data.endsWith(i.value)||(a=this._getOrReturnCtx(e,a),lt.addIssueToContext(a,{code:zt.ZodIssueCode.invalid_string,validation:{endsWith:i.value},message:i.message}),n.dirty()):xt.util.assertNever(i);return{status:n.value,value:e.data}}_addCheck(e){return new Sh({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...ti.errorUtil.errToObj(e)})}url(e){return this._addCheck({kind:"url",...ti.errorUtil.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...ti.errorUtil.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...ti.errorUtil.errToObj(e)})}regex(e,t){return this._addCheck({kind:"regex",regex:e,...ti.errorUtil.errToObj(t)})}startsWith(e,t){return this._addCheck({kind:"startsWith",value:e,...ti.errorUtil.errToObj(t)})}endsWith(e,t){return this._addCheck({kind:"endsWith",value:e,...ti.errorUtil.errToObj(t)})}min(e,t){return this._addCheck({kind:"min",value:e,...ti.errorUtil.errToObj(t)})}max(e,t){return this._addCheck({kind:"max",value:e,...ti.errorUtil.errToObj(t)})}length(e,t){return this.min(e,t).max(e,t)}get isEmail(){return!!this._def.checks.find(e=>e.kind==="email")}get isURL(){return!!this._def.checks.find(e=>e.kind==="url")}get isUUID(){return!!this._def.checks.find(e=>e.kind==="uuid")}get isCUID(){return!!this._def.checks.find(e=>e.kind==="cuid")}get minLength(){let e=null;for(let t of this._def.checks)t.kind==="min"&&(e===null||t.value>e)&&(e=t.value);return e}get maxLength(){let e=null;for(let t of this._def.checks)t.kind==="max"&&(e===null||t.valuenew Sh({checks:[],typeName:Hr.ZodString,...fn(r)});function aMt(r,e){let t=(r.toString().split(".")[1]||"").length,n=(e.toString().split(".")[1]||"").length,a=t>n?t:n,i=parseInt(r.toFixed(a).replace(".","")),s=parseInt(e.toFixed(a).replace(".",""));return i%s/Math.pow(10,a)}var jf=class extends sn{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){if(this._getType(e)!==xt.ZodParsedType.number){let i=this._getOrReturnCtx(e);return lt.addIssueToContext(i,{code:zt.ZodIssueCode.invalid_type,expected:xt.ZodParsedType.number,received:i.parsedType}),lt.INVALID}let n,a=new lt.ParseStatus;for(let i of this._def.checks)i.kind==="int"?xt.util.isInteger(e.data)||(n=this._getOrReturnCtx(e,n),lt.addIssueToContext(n,{code:zt.ZodIssueCode.invalid_type,expected:"integer",received:"float",message:i.message}),a.dirty()):i.kind==="min"?(i.inclusive?e.datai.value:e.data>=i.value)&&(n=this._getOrReturnCtx(e,n),lt.addIssueToContext(n,{code:zt.ZodIssueCode.too_big,maximum:i.value,type:"number",inclusive:i.inclusive,message:i.message}),a.dirty()):i.kind==="multipleOf"?aMt(e.data,i.value)!==0&&(n=this._getOrReturnCtx(e,n),lt.addIssueToContext(n,{code:zt.ZodIssueCode.not_multiple_of,multipleOf:i.value,message:i.message}),a.dirty()):xt.util.assertNever(i);return{status:a.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,ti.errorUtil.toString(t))}gt(e,t){return this.setLimit("min",e,!1,ti.errorUtil.toString(t))}lte(e,t){return this.setLimit("max",e,!0,ti.errorUtil.toString(t))}lt(e,t){return this.setLimit("max",e,!1,ti.errorUtil.toString(t))}setLimit(e,t,n,a){return new jf({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:n,message:ti.errorUtil.toString(a)}]})}_addCheck(e){return new jf({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:ti.errorUtil.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:ti.errorUtil.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:ti.errorUtil.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:ti.errorUtil.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:ti.errorUtil.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:ti.errorUtil.toString(t)})}get minValue(){let e=null;for(let t of this._def.checks)t.kind==="min"&&(e===null||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(let t of this._def.checks)t.kind==="max"&&(e===null||t.valuee.kind==="int")}};it.ZodNumber=jf;jf.create=r=>new jf({checks:[],typeName:Hr.ZodNumber,...fn(r)});var U2=class extends sn{_parse(e){if(this._getType(e)!==xt.ZodParsedType.bigint){let n=this._getOrReturnCtx(e);return lt.addIssueToContext(n,{code:zt.ZodIssueCode.invalid_type,expected:xt.ZodParsedType.bigint,received:n.parsedType}),lt.INVALID}return lt.OK(e.data)}};it.ZodBigInt=U2;U2.create=r=>new U2({typeName:Hr.ZodBigInt,...fn(r)});var W2=class extends sn{_parse(e){if(this._getType(e)!==xt.ZodParsedType.boolean){let n=this._getOrReturnCtx(e);return lt.addIssueToContext(n,{code:zt.ZodIssueCode.invalid_type,expected:xt.ZodParsedType.boolean,received:n.parsedType}),lt.INVALID}return lt.OK(e.data)}};it.ZodBoolean=W2;W2.create=r=>new W2({typeName:Hr.ZodBoolean,...fn(r)});var L0=class extends sn{_parse(e){if(this._getType(e)!==xt.ZodParsedType.date){let i=this._getOrReturnCtx(e);return lt.addIssueToContext(i,{code:zt.ZodIssueCode.invalid_type,expected:xt.ZodParsedType.date,received:i.parsedType}),lt.INVALID}if(isNaN(e.data.getTime())){let i=this._getOrReturnCtx(e);return lt.addIssueToContext(i,{code:zt.ZodIssueCode.invalid_date}),lt.INVALID}let n=new lt.ParseStatus,a;for(let i of this._def.checks)i.kind==="min"?e.data.getTime()i.value&&(a=this._getOrReturnCtx(e,a),lt.addIssueToContext(a,{code:zt.ZodIssueCode.too_big,message:i.message,inclusive:!0,maximum:i.value,type:"date"}),n.dirty()):xt.util.assertNever(i);return{status:n.value,value:new Date(e.data.getTime())}}_addCheck(e){return new L0({...this._def,checks:[...this._def.checks,e]})}min(e,t){return this._addCheck({kind:"min",value:e.getTime(),message:ti.errorUtil.toString(t)})}max(e,t){return this._addCheck({kind:"max",value:e.getTime(),message:ti.errorUtil.toString(t)})}get minDate(){let e=null;for(let t of this._def.checks)t.kind==="min"&&(e===null||t.value>e)&&(e=t.value);return e!=null?new Date(e):null}get maxDate(){let e=null;for(let t of this._def.checks)t.kind==="max"&&(e===null||t.valuenew L0({checks:[],typeName:Hr.ZodDate,...fn(r)});var j2=class extends sn{_parse(e){if(this._getType(e)!==xt.ZodParsedType.undefined){let n=this._getOrReturnCtx(e);return lt.addIssueToContext(n,{code:zt.ZodIssueCode.invalid_type,expected:xt.ZodParsedType.undefined,received:n.parsedType}),lt.INVALID}return lt.OK(e.data)}};it.ZodUndefined=j2;j2.create=r=>new j2({typeName:Hr.ZodUndefined,...fn(r)});var z2=class extends sn{_parse(e){if(this._getType(e)!==xt.ZodParsedType.null){let n=this._getOrReturnCtx(e);return lt.addIssueToContext(n,{code:zt.ZodIssueCode.invalid_type,expected:xt.ZodParsedType.null,received:n.parsedType}),lt.INVALID}return lt.OK(e.data)}};it.ZodNull=z2;z2.create=r=>new z2({typeName:Hr.ZodNull,...fn(r)});var B0=class extends sn{constructor(){super(...arguments),this._any=!0}_parse(e){return lt.OK(e.data)}};it.ZodAny=B0;B0.create=r=>new B0({typeName:Hr.ZodAny,...fn(r)});var Wf=class extends sn{constructor(){super(...arguments),this._unknown=!0}_parse(e){return lt.OK(e.data)}};it.ZodUnknown=Wf;Wf.create=r=>new Wf({typeName:Hr.ZodUnknown,...fn(r)});var cp=class extends sn{_parse(e){let t=this._getOrReturnCtx(e);return lt.addIssueToContext(t,{code:zt.ZodIssueCode.invalid_type,expected:xt.ZodParsedType.never,received:t.parsedType}),lt.INVALID}};it.ZodNever=cp;cp.create=r=>new cp({typeName:Hr.ZodNever,...fn(r)});var H2=class extends sn{_parse(e){if(this._getType(e)!==xt.ZodParsedType.undefined){let n=this._getOrReturnCtx(e);return lt.addIssueToContext(n,{code:zt.ZodIssueCode.invalid_type,expected:xt.ZodParsedType.void,received:n.parsedType}),lt.INVALID}return lt.OK(e.data)}};it.ZodVoid=H2;H2.create=r=>new H2({typeName:Hr.ZodVoid,...fn(r)});var od=class extends sn{_parse(e){let{ctx:t,status:n}=this._processInputParams(e),a=this._def;if(t.parsedType!==xt.ZodParsedType.array)return lt.addIssueToContext(t,{code:zt.ZodIssueCode.invalid_type,expected:xt.ZodParsedType.array,received:t.parsedType}),lt.INVALID;if(a.minLength!==null&&t.data.lengtha.maxLength.value&&(lt.addIssueToContext(t,{code:zt.ZodIssueCode.too_big,maximum:a.maxLength.value,type:"array",inclusive:!0,message:a.maxLength.message}),n.dirty()),t.common.async)return Promise.all(t.data.map((s,c)=>a.type._parseAsync(new sd(t,s,t.path,c)))).then(s=>lt.ParseStatus.mergeArray(n,s));let i=t.data.map((s,c)=>a.type._parseSync(new sd(t,s,t.path,c)));return lt.ParseStatus.mergeArray(n,i)}get element(){return this._def.type}min(e,t){return new od({...this._def,minLength:{value:e,message:ti.errorUtil.toString(t)}})}max(e,t){return new od({...this._def,maxLength:{value:e,message:ti.errorUtil.toString(t)}})}length(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}};it.ZodArray=od;od.create=(r,e)=>new od({type:r,minLength:null,maxLength:null,typeName:Hr.ZodArray,...fn(e)});var ibe;(function(r){r.mergeShapes=(e,t)=>({...e,...t})})(ibe=it.objectUtil||(it.objectUtil={}));var abe=r=>e=>new fi({...r,shape:()=>({...r.shape(),...e})});function F2(r){if(r instanceof fi){let e={};for(let t in r.shape){let n=r.shape[t];e[t]=id.create(F2(n))}return new fi({...r._def,shape:()=>e})}else return r instanceof od?od.create(F2(r.element)):r instanceof id?id.create(F2(r.unwrap())):r instanceof Hf?Hf.create(F2(r.unwrap())):r instanceof cd?cd.create(r.items.map(e=>F2(e))):r}var fi=class extends sn{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=abe(this._def),this.extend=abe(this._def)}_getCached(){if(this._cached!==null)return this._cached;let e=this._def.shape(),t=xt.util.objectKeys(e);return this._cached={shape:e,keys:t}}_parse(e){if(this._getType(e)!==xt.ZodParsedType.object){let d=this._getOrReturnCtx(e);return lt.addIssueToContext(d,{code:zt.ZodIssueCode.invalid_type,expected:xt.ZodParsedType.object,received:d.parsedType}),lt.INVALID}let{status:n,ctx:a}=this._processInputParams(e),{shape:i,keys:s}=this._getCached(),c=[];if(!(this._def.catchall instanceof cp&&this._def.unknownKeys==="strip"))for(let d in a.data)s.includes(d)||c.push(d);let l=[];for(let d of s){let f=i[d],w=a.data[d];l.push({key:{status:"valid",value:d},value:f._parse(new sd(a,w,a.path,d)),alwaysSet:d in a.data})}if(this._def.catchall instanceof cp){let d=this._def.unknownKeys;if(d==="passthrough")for(let f of c)l.push({key:{status:"valid",value:f},value:{status:"valid",value:a.data[f]}});else if(d==="strict")c.length>0&&(lt.addIssueToContext(a,{code:zt.ZodIssueCode.unrecognized_keys,keys:c}),n.dirty());else if(d!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{let d=this._def.catchall;for(let f of c){let w=a.data[f];l.push({key:{status:"valid",value:f},value:d._parse(new sd(a,w,a.path,f)),alwaysSet:f in a.data})}}return a.common.async?Promise.resolve().then(async()=>{let d=[];for(let f of l){let w=await f.key;d.push({key:w,value:await f.value,alwaysSet:f.alwaysSet})}return d}).then(d=>lt.ParseStatus.mergeObjectSync(n,d)):lt.ParseStatus.mergeObjectSync(n,l)}get shape(){return this._def.shape()}strict(e){return ti.errorUtil.errToObj,new fi({...this._def,unknownKeys:"strict",...e!==void 0?{errorMap:(t,n)=>{var a,i,s,c;let l=(s=(i=(a=this._def).errorMap)===null||i===void 0?void 0:i.call(a,t,n).message)!==null&&s!==void 0?s:n.defaultError;return t.code==="unrecognized_keys"?{message:(c=ti.errorUtil.errToObj(e).message)!==null&&c!==void 0?c:l}:{message:l}}}:{}})}strip(){return new fi({...this._def,unknownKeys:"strip"})}passthrough(){return new fi({...this._def,unknownKeys:"passthrough"})}setKey(e,t){return this.augment({[e]:t})}merge(e){return new fi({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>ibe.mergeShapes(this._def.shape(),e._def.shape()),typeName:Hr.ZodObject})}catchall(e){return new fi({...this._def,catchall:e})}pick(e){let t={};return xt.util.objectKeys(e).map(n=>{this.shape[n]&&(t[n]=this.shape[n])}),new fi({...this._def,shape:()=>t})}omit(e){let t={};return xt.util.objectKeys(this.shape).map(n=>{xt.util.objectKeys(e).indexOf(n)===-1&&(t[n]=this.shape[n])}),new fi({...this._def,shape:()=>t})}deepPartial(){return F2(this)}partial(e){let t={};if(e)return xt.util.objectKeys(this.shape).map(n=>{xt.util.objectKeys(e).indexOf(n)===-1?t[n]=this.shape[n]:t[n]=this.shape[n].optional()}),new fi({...this._def,shape:()=>t});for(let n in this.shape){let a=this.shape[n];t[n]=a.optional()}return new fi({...this._def,shape:()=>t})}required(){let e={};for(let t in this.shape){let a=this.shape[t];for(;a instanceof id;)a=a._def.innerType;e[t]=a}return new fi({...this._def,shape:()=>e})}keyof(){return sbe(xt.util.objectKeys(this.shape))}};it.ZodObject=fi;fi.create=(r,e)=>new fi({shape:()=>r,unknownKeys:"strip",catchall:cp.create(),typeName:Hr.ZodObject,...fn(e)});fi.strictCreate=(r,e)=>new fi({shape:()=>r,unknownKeys:"strict",catchall:cp.create(),typeName:Hr.ZodObject,...fn(e)});fi.lazycreate=(r,e)=>new fi({shape:r,unknownKeys:"strip",catchall:cp.create(),typeName:Hr.ZodObject,...fn(e)});var uv=class extends sn{_parse(e){let{ctx:t}=this._processInputParams(e),n=this._def.options;function a(i){for(let c of i)if(c.result.status==="valid")return c.result;for(let c of i)if(c.result.status==="dirty")return t.common.issues.push(...c.ctx.common.issues),c.result;let s=i.map(c=>new zt.ZodError(c.ctx.common.issues));return lt.addIssueToContext(t,{code:zt.ZodIssueCode.invalid_union,unionErrors:s}),lt.INVALID}if(t.common.async)return Promise.all(n.map(async i=>{let s={...t,common:{...t.common,issues:[]},parent:null};return{result:await i._parseAsync({data:t.data,path:t.path,parent:s}),ctx:s}})).then(a);{let i,s=[];for(let l of n){let d={...t,common:{...t.common,issues:[]},parent:null},f=l._parseSync({data:t.data,path:t.path,parent:d});if(f.status==="valid")return f;f.status==="dirty"&&!i&&(i={result:f,ctx:d}),d.common.issues.length&&s.push(d.common.issues)}if(i)return t.common.issues.push(...i.ctx.common.issues),i.result;let c=s.map(l=>new zt.ZodError(l));return lt.addIssueToContext(t,{code:zt.ZodIssueCode.invalid_union,unionErrors:c}),lt.INVALID}}get options(){return this._def.options}};it.ZodUnion=uv;uv.create=(r,e)=>new uv({options:r,typeName:Hr.ZodUnion,...fn(e)});var V2=class extends sn{_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==xt.ZodParsedType.object)return lt.addIssueToContext(t,{code:zt.ZodIssueCode.invalid_type,expected:xt.ZodParsedType.object,received:t.parsedType}),lt.INVALID;let n=this.discriminator,a=t.data[n],i=this.options.get(a);return i?t.common.async?i._parseAsync({data:t.data,path:t.path,parent:t}):i._parseSync({data:t.data,path:t.path,parent:t}):(lt.addIssueToContext(t,{code:zt.ZodIssueCode.invalid_union_discriminator,options:this.validDiscriminatorValues,path:[n]}),lt.INVALID)}get discriminator(){return this._def.discriminator}get validDiscriminatorValues(){return Array.from(this.options.keys())}get options(){return this._def.options}static create(e,t,n){let a=new Map;try{t.forEach(i=>{let s=i.shape[e].value;a.set(s,i)})}catch{throw new Error("The discriminator value could not be extracted from all the provided schemas")}if(a.size!==t.length)throw new Error("Some of the discriminator values are not unique");return new V2({typeName:Hr.ZodDiscriminatedUnion,discriminator:e,options:a,...fn(n)})}};it.ZodDiscriminatedUnion=V2;function xz(r,e){let t=xt.getParsedType(r),n=xt.getParsedType(e);if(r===e)return{valid:!0,data:r};if(t===xt.ZodParsedType.object&&n===xt.ZodParsedType.object){let a=xt.util.objectKeys(e),i=xt.util.objectKeys(r).filter(c=>a.indexOf(c)!==-1),s={...r,...e};for(let c of i){let l=xz(r[c],e[c]);if(!l.valid)return{valid:!1};s[c]=l.data}return{valid:!0,data:s}}else if(t===xt.ZodParsedType.array&&n===xt.ZodParsedType.array){if(r.length!==e.length)return{valid:!1};let a=[];for(let i=0;i{if(lt.isAborted(i)||lt.isAborted(s))return lt.INVALID;let c=xz(i.value,s.value);return c.valid?((lt.isDirty(i)||lt.isDirty(s))&&t.dirty(),{status:t.value,value:c.data}):(lt.addIssueToContext(n,{code:zt.ZodIssueCode.invalid_intersection_types}),lt.INVALID)};return n.common.async?Promise.all([this._def.left._parseAsync({data:n.data,path:n.path,parent:n}),this._def.right._parseAsync({data:n.data,path:n.path,parent:n})]).then(([i,s])=>a(i,s)):a(this._def.left._parseSync({data:n.data,path:n.path,parent:n}),this._def.right._parseSync({data:n.data,path:n.path,parent:n}))}};it.ZodIntersection=lv;lv.create=(r,e,t)=>new lv({left:r,right:e,typeName:Hr.ZodIntersection,...fn(t)});var cd=class extends sn{_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==xt.ZodParsedType.array)return lt.addIssueToContext(n,{code:zt.ZodIssueCode.invalid_type,expected:xt.ZodParsedType.array,received:n.parsedType}),lt.INVALID;if(n.data.lengththis._def.items.length&&(lt.addIssueToContext(n,{code:zt.ZodIssueCode.too_big,maximum:this._def.items.length,inclusive:!0,type:"array"}),t.dirty());let i=n.data.map((s,c)=>{let l=this._def.items[c]||this._def.rest;return l?l._parse(new sd(n,s,n.path,c)):null}).filter(s=>!!s);return n.common.async?Promise.all(i).then(s=>lt.ParseStatus.mergeArray(t,s)):lt.ParseStatus.mergeArray(t,i)}get items(){return this._def.items}rest(e){return new cd({...this._def,rest:e})}};it.ZodTuple=cd;cd.create=(r,e)=>{if(!Array.isArray(r))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new cd({items:r,typeName:Hr.ZodTuple,rest:null,...fn(e)})};var dv=class extends sn{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==xt.ZodParsedType.object)return lt.addIssueToContext(n,{code:zt.ZodIssueCode.invalid_type,expected:xt.ZodParsedType.object,received:n.parsedType}),lt.INVALID;let a=[],i=this._def.keyType,s=this._def.valueType;for(let c in n.data)a.push({key:i._parse(new sd(n,c,n.path,c)),value:s._parse(new sd(n,n.data[c],n.path,c))});return n.common.async?lt.ParseStatus.mergeObjectAsync(t,a):lt.ParseStatus.mergeObjectSync(t,a)}get element(){return this._def.valueType}static create(e,t,n){return t instanceof sn?new dv({keyType:e,valueType:t,typeName:Hr.ZodRecord,...fn(n)}):new dv({keyType:Sh.create(),valueType:e,typeName:Hr.ZodRecord,...fn(t)})}};it.ZodRecord=dv;var G2=class extends sn{_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==xt.ZodParsedType.map)return lt.addIssueToContext(n,{code:zt.ZodIssueCode.invalid_type,expected:xt.ZodParsedType.map,received:n.parsedType}),lt.INVALID;let a=this._def.keyType,i=this._def.valueType,s=[...n.data.entries()].map(([c,l],d)=>({key:a._parse(new sd(n,c,n.path,[d,"key"])),value:i._parse(new sd(n,l,n.path,[d,"value"]))}));if(n.common.async){let c=new Map;return Promise.resolve().then(async()=>{for(let l of s){let d=await l.key,f=await l.value;if(d.status==="aborted"||f.status==="aborted")return lt.INVALID;(d.status==="dirty"||f.status==="dirty")&&t.dirty(),c.set(d.value,f.value)}return{status:t.value,value:c}})}else{let c=new Map;for(let l of s){let d=l.key,f=l.value;if(d.status==="aborted"||f.status==="aborted")return lt.INVALID;(d.status==="dirty"||f.status==="dirty")&&t.dirty(),c.set(d.value,f.value)}return{status:t.value,value:c}}}};it.ZodMap=G2;G2.create=(r,e,t)=>new G2({valueType:e,keyType:r,typeName:Hr.ZodMap,...fn(t)});var zf=class extends sn{_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==xt.ZodParsedType.set)return lt.addIssueToContext(n,{code:zt.ZodIssueCode.invalid_type,expected:xt.ZodParsedType.set,received:n.parsedType}),lt.INVALID;let a=this._def;a.minSize!==null&&n.data.sizea.maxSize.value&&(lt.addIssueToContext(n,{code:zt.ZodIssueCode.too_big,maximum:a.maxSize.value,type:"set",inclusive:!0,message:a.maxSize.message}),t.dirty());let i=this._def.valueType;function s(l){let d=new Set;for(let f of l){if(f.status==="aborted")return lt.INVALID;f.status==="dirty"&&t.dirty(),d.add(f.value)}return{status:t.value,value:d}}let c=[...n.data.values()].map((l,d)=>i._parse(new sd(n,l,n.path,d)));return n.common.async?Promise.all(c).then(l=>s(l)):s(c)}min(e,t){return new zf({...this._def,minSize:{value:e,message:ti.errorUtil.toString(t)}})}max(e,t){return new zf({...this._def,maxSize:{value:e,message:ti.errorUtil.toString(t)}})}size(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}};it.ZodSet=zf;zf.create=(r,e)=>new zf({valueType:r,minSize:null,maxSize:null,typeName:Hr.ZodSet,...fn(e)});var O0=class extends sn{constructor(){super(...arguments),this.validate=this.implement}_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==xt.ZodParsedType.function)return lt.addIssueToContext(t,{code:zt.ZodIssueCode.invalid_type,expected:xt.ZodParsedType.function,received:t.parsedType}),lt.INVALID;function n(c,l){return lt.makeIssue({data:c,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,iI.getErrorMap(),iI.defaultErrorMap].filter(d=>!!d),issueData:{code:zt.ZodIssueCode.invalid_arguments,argumentsError:l}})}function a(c,l){return lt.makeIssue({data:c,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,iI.getErrorMap(),iI.defaultErrorMap].filter(d=>!!d),issueData:{code:zt.ZodIssueCode.invalid_return_type,returnTypeError:l}})}let i={errorMap:t.common.contextualErrorMap},s=t.data;return this._def.returns instanceof q0?lt.OK(async(...c)=>{let l=new zt.ZodError([]),d=await this._def.args.parseAsync(c,i).catch(E=>{throw l.addIssue(n(c,E)),l}),f=await s(...d);return await this._def.returns._def.type.parseAsync(f,i).catch(E=>{throw l.addIssue(a(f,E)),l})}):lt.OK((...c)=>{let l=this._def.args.safeParse(c,i);if(!l.success)throw new zt.ZodError([n(c,l.error)]);let d=s(...l.data),f=this._def.returns.safeParse(d,i);if(!f.success)throw new zt.ZodError([a(d,f.error)]);return f.data})}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new O0({...this._def,args:cd.create(e).rest(Wf.create())})}returns(e){return new O0({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(e,t,n){return new O0({args:e||cd.create([]).rest(Wf.create()),returns:t||Wf.create(),typeName:Hr.ZodFunction,...fn(n)})}};it.ZodFunction=O0;var Z2=class extends sn{get schema(){return this._def.getter()}_parse(e){let{ctx:t}=this._processInputParams(e);return this._def.getter()._parse({data:t.data,path:t.path,parent:t})}};it.ZodLazy=Z2;Z2.create=(r,e)=>new Z2({getter:r,typeName:Hr.ZodLazy,...fn(e)});var J2=class extends sn{_parse(e){if(e.data!==this._def.value){let t=this._getOrReturnCtx(e);return lt.addIssueToContext(t,{code:zt.ZodIssueCode.invalid_literal,expected:this._def.value}),lt.INVALID}return{status:"valid",value:e.data}}get value(){return this._def.value}};it.ZodLiteral=J2;J2.create=(r,e)=>new J2({value:r,typeName:Hr.ZodLiteral,...fn(e)});function sbe(r,e){return new K2({values:r,typeName:Hr.ZodEnum,...fn(e)})}var K2=class extends sn{_parse(e){if(typeof e.data!="string"){let t=this._getOrReturnCtx(e),n=this._def.values;return lt.addIssueToContext(t,{expected:xt.util.joinValues(n),received:t.parsedType,code:zt.ZodIssueCode.invalid_type}),lt.INVALID}if(this._def.values.indexOf(e.data)===-1){let t=this._getOrReturnCtx(e),n=this._def.values;return lt.addIssueToContext(t,{received:t.data,code:zt.ZodIssueCode.invalid_enum_value,options:n}),lt.INVALID}return lt.OK(e.data)}get options(){return this._def.values}get enum(){let e={};for(let t of this._def.values)e[t]=t;return e}get Values(){let e={};for(let t of this._def.values)e[t]=t;return e}get Enum(){let e={};for(let t of this._def.values)e[t]=t;return e}};it.ZodEnum=K2;K2.create=sbe;var Q2=class extends sn{_parse(e){let t=xt.util.getValidEnumValues(this._def.values),n=this._getOrReturnCtx(e);if(n.parsedType!==xt.ZodParsedType.string&&n.parsedType!==xt.ZodParsedType.number){let a=xt.util.objectValues(t);return lt.addIssueToContext(n,{expected:xt.util.joinValues(a),received:n.parsedType,code:zt.ZodIssueCode.invalid_type}),lt.INVALID}if(t.indexOf(e.data)===-1){let a=xt.util.objectValues(t);return lt.addIssueToContext(n,{received:n.data,code:zt.ZodIssueCode.invalid_enum_value,options:a}),lt.INVALID}return lt.OK(e.data)}get enum(){return this._def.values}};it.ZodNativeEnum=Q2;Q2.create=(r,e)=>new Q2({values:r,typeName:Hr.ZodNativeEnum,...fn(e)});var q0=class extends sn{_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==xt.ZodParsedType.promise&&t.common.async===!1)return lt.addIssueToContext(t,{code:zt.ZodIssueCode.invalid_type,expected:xt.ZodParsedType.promise,received:t.parsedType}),lt.INVALID;let n=t.parsedType===xt.ZodParsedType.promise?t.data:Promise.resolve(t.data);return lt.OK(n.then(a=>this._def.type.parseAsync(a,{path:t.path,errorMap:t.common.contextualErrorMap})))}};it.ZodPromise=q0;q0.create=(r,e)=>new q0({type:r,typeName:Hr.ZodPromise,...fn(e)});var ud=class extends sn{innerType(){return this._def.schema}_parse(e){let{status:t,ctx:n}=this._processInputParams(e),a=this._def.effect||null;if(a.type==="preprocess"){let s=a.transform(n.data);return n.common.async?Promise.resolve(s).then(c=>this._def.schema._parseAsync({data:c,path:n.path,parent:n})):this._def.schema._parseSync({data:s,path:n.path,parent:n})}let i={addIssue:s=>{lt.addIssueToContext(n,s),s.fatal?t.abort():t.dirty()},get path(){return n.path}};if(i.addIssue=i.addIssue.bind(i),a.type==="refinement"){let s=c=>{let l=a.refinement(c,i);if(n.common.async)return Promise.resolve(l);if(l instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return c};if(n.common.async===!1){let c=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});return c.status==="aborted"?lt.INVALID:(c.status==="dirty"&&t.dirty(),s(c.value),{status:t.value,value:c.value})}else return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(c=>c.status==="aborted"?lt.INVALID:(c.status==="dirty"&&t.dirty(),s(c.value).then(()=>({status:t.value,value:c.value}))))}if(a.type==="transform")if(n.common.async===!1){let s=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});if(!lt.isValid(s))return s;let c=a.transform(s.value,i);if(c instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:t.value,value:c}}else return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(s=>lt.isValid(s)?Promise.resolve(a.transform(s.value,i)).then(c=>({status:t.value,value:c})):s);xt.util.assertNever(a)}};it.ZodEffects=ud;it.ZodTransformer=ud;ud.create=(r,e,t)=>new ud({schema:r,typeName:Hr.ZodEffects,effect:e,...fn(t)});ud.createWithPreprocess=(r,e,t)=>new ud({schema:e,effect:{type:"preprocess",transform:r},typeName:Hr.ZodEffects,...fn(t)});var id=class extends sn{_parse(e){return this._getType(e)===xt.ZodParsedType.undefined?lt.OK(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}};it.ZodOptional=id;id.create=(r,e)=>new id({innerType:r,typeName:Hr.ZodOptional,...fn(e)});var Hf=class extends sn{_parse(e){return this._getType(e)===xt.ZodParsedType.null?lt.OK(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}};it.ZodNullable=Hf;Hf.create=(r,e)=>new Hf({innerType:r,typeName:Hr.ZodNullable,...fn(e)});var PT=class extends sn{_parse(e){let{ctx:t}=this._processInputParams(e),n=t.data;return t.parsedType===xt.ZodParsedType.undefined&&(n=this._def.defaultValue()),this._def.innerType._parse({data:n,path:t.path,parent:t})}removeDefault(){return this._def.innerType}};it.ZodDefault=PT;PT.create=(r,e)=>new id({innerType:r,typeName:Hr.ZodOptional,...fn(e)});var X2=class extends sn{_parse(e){if(this._getType(e)!==xt.ZodParsedType.nan){let n=this._getOrReturnCtx(e);return lt.addIssueToContext(n,{code:zt.ZodIssueCode.invalid_type,expected:xt.ZodParsedType.nan,received:n.parsedType}),lt.INVALID}return{status:"valid",value:e.data}}};it.ZodNaN=X2;X2.create=r=>new X2({typeName:Hr.ZodNaN,...fn(r)});it.BRAND=Symbol("zod_brand");var sI=class extends sn{_parse(e){let{ctx:t}=this._processInputParams(e),n=t.data;return this._def.type._parse({data:n,path:t.path,parent:t})}unwrap(){return this._def.type}};it.ZodBranded=sI;var iMt=(r,e={},t)=>r?B0.create().superRefine((n,a)=>{if(!r(n)){let i=typeof e=="function"?e(n):e,s=typeof i=="string"?{message:i}:i;a.addIssue({code:"custom",...s,fatal:t})}}):B0.create();it.custom=iMt;it.late={object:fi.lazycreate};var Hr;(function(r){r.ZodString="ZodString",r.ZodNumber="ZodNumber",r.ZodNaN="ZodNaN",r.ZodBigInt="ZodBigInt",r.ZodBoolean="ZodBoolean",r.ZodDate="ZodDate",r.ZodUndefined="ZodUndefined",r.ZodNull="ZodNull",r.ZodAny="ZodAny",r.ZodUnknown="ZodUnknown",r.ZodNever="ZodNever",r.ZodVoid="ZodVoid",r.ZodArray="ZodArray",r.ZodObject="ZodObject",r.ZodUnion="ZodUnion",r.ZodDiscriminatedUnion="ZodDiscriminatedUnion",r.ZodIntersection="ZodIntersection",r.ZodTuple="ZodTuple",r.ZodRecord="ZodRecord",r.ZodMap="ZodMap",r.ZodSet="ZodSet",r.ZodFunction="ZodFunction",r.ZodLazy="ZodLazy",r.ZodLiteral="ZodLiteral",r.ZodEnum="ZodEnum",r.ZodEffects="ZodEffects",r.ZodNativeEnum="ZodNativeEnum",r.ZodOptional="ZodOptional",r.ZodNullable="ZodNullable",r.ZodDefault="ZodDefault",r.ZodPromise="ZodPromise",r.ZodBranded="ZodBranded"})(Hr=it.ZodFirstPartyTypeKind||(it.ZodFirstPartyTypeKind={}));var sMt=(r,e={message:`Input not instance of ${r.name}`})=>it.custom(t=>t instanceof r,e,!0);it.instanceof=sMt;var obe=Sh.create;it.string=obe;var cbe=jf.create;it.number=cbe;var oMt=X2.create;it.nan=oMt;var cMt=U2.create;it.bigint=cMt;var ube=W2.create;it.boolean=ube;var uMt=L0.create;it.date=uMt;var lMt=j2.create;it.undefined=lMt;var dMt=z2.create;it.null=dMt;var pMt=B0.create;it.any=pMt;var hMt=Wf.create;it.unknown=hMt;var fMt=cp.create;it.never=fMt;var mMt=H2.create;it.void=mMt;var yMt=od.create;it.array=yMt;var gMt=fi.create;it.object=gMt;var vMt=fi.strictCreate;it.strictObject=vMt;var bMt=uv.create;it.union=bMt;var wMt=V2.create;it.discriminatedUnion=wMt;var xMt=lv.create;it.intersection=xMt;var TMt=cd.create;it.tuple=TMt;var _Mt=dv.create;it.record=_Mt;var CMt=G2.create;it.map=CMt;var EMt=zf.create;it.set=EMt;var kMt=O0.create;it.function=kMt;var SMt=Z2.create;it.lazy=SMt;var AMt=J2.create;it.literal=AMt;var MMt=K2.create;it.enum=MMt;var IMt=Q2.create;it.nativeEnum=IMt;var PMt=q0.create;it.promise=PMt;var lbe=ud.create;it.effect=lbe;it.transformer=lbe;var RMt=id.create;it.optional=RMt;var NMt=Hf.create;it.nullable=NMt;var OMt=ud.createWithPreprocess;it.preprocess=OMt;var LMt=()=>obe().optional();it.ostring=LMt;var BMt=()=>cbe().optional();it.onumber=BMt;var qMt=()=>ube().optional();it.oboolean=qMt;it.NEVER=lt.INVALID});var Tz=O(Dc=>{"use strict";x();T();var DMt=Dc&&Dc.__createBinding||(Object.create?function(r,e,t,n){n===void 0&&(n=t),Object.defineProperty(r,n,{enumerable:!0,get:function(){return e[t]}})}:function(r,e,t,n){n===void 0&&(n=t),r[n]=e[t]}),RT=Dc&&Dc.__exportStar||function(r,e){for(var t in r)t!=="default"&&!Object.prototype.hasOwnProperty.call(e,t)&&DMt(e,r,t)};Object.defineProperty(Dc,"__esModule",{value:!0});Dc.ZodParsedType=Dc.getParsedType=void 0;RT(aI(),Dc);RT(wz(),Dc);RT(tbe(),Dc);var pbe=ST();Object.defineProperty(Dc,"getParsedType",{enumerable:!0,get:function(){return pbe.getParsedType}});Object.defineProperty(Dc,"ZodParsedType",{enumerable:!0,get:function(){return pbe.ZodParsedType}});RT(dbe(),Dc);RT(nI(),Dc)});var Pn=O(vu=>{"use strict";x();T();var hbe=vu&&vu.__createBinding||(Object.create?function(r,e,t,n){n===void 0&&(n=t),Object.defineProperty(r,n,{enumerable:!0,get:function(){return e[t]}})}:function(r,e,t,n){n===void 0&&(n=t),r[n]=e[t]}),FMt=vu&&vu.__setModuleDefault||(Object.create?function(r,e){Object.defineProperty(r,"default",{enumerable:!0,value:e})}:function(r,e){r.default=e}),UMt=vu&&vu.__importStar||function(r){if(r&&r.__esModule)return r;var e={};if(r!=null)for(var t in r)t!=="default"&&Object.prototype.hasOwnProperty.call(r,t)&&hbe(e,r,t);return FMt(e,r),e},WMt=vu&&vu.__exportStar||function(r,e){for(var t in r)t!=="default"&&!Object.prototype.hasOwnProperty.call(e,t)&&hbe(e,r,t)};Object.defineProperty(vu,"__esModule",{value:!0});vu.z=void 0;var fbe=UMt(Tz());vu.z=fbe;WMt(Tz(),vu);vu.default=fbe});var Go=O(Vo=>{"use strict";x();T();var jMt=Xr(),Y2=_t(),Yt=Pn();function zMt(r){return r&&r.__esModule?r:{default:r}}var $2=zMt(jMt),vbe="c6634ad2d97b74baf15ff556016830c251050e6c36b9da508ce3ec80095d3dc1";function HMt(r){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:vbe;return`https://${r}.rpc.thirdweb.com/${e}`}var VMt=()=>typeof window<"u",mbe=VMt()?Yt.z.instanceof(File):Yt.z.instanceof(P.Buffer),GMt=Yt.z.union([mbe,Yt.z.object({data:Yt.z.union([mbe,Yt.z.string()]),name:Yt.z.string()})]),oI=Yt.z.union([GMt,Yt.z.string()]),bbe=1e4,ZMt=Yt.z.union([Yt.z.array(Yt.z.number()),Yt.z.string()]),JMt=Yt.z.union([Yt.z.string(),Yt.z.number(),Yt.z.bigint(),Yt.z.custom(r=>Y2.BigNumber.isBigNumber(r)),Yt.z.custom(r=>$2.default.isBN(r))]).transform(r=>{let e=$2.default.isBN(r)?new $2.default(r).toString():Y2.BigNumber.from(r).toString();return Y2.BigNumber.from(e)});JMt.transform(r=>r.toString());var wbe=Yt.z.union([Yt.z.bigint(),Yt.z.custom(r=>Y2.BigNumber.isBigNumber(r)),Yt.z.custom(r=>$2.default.isBN(r))]).transform(r=>$2.default.isBN(r)?new $2.default(r).toString():Y2.BigNumber.from(r).toString()),KMt=Yt.z.number().max(bbe,"Cannot exceed 100%").min(0,"Cannot be below 0%"),QMt=Yt.z.number().max(100,"Cannot exceed 100%").min(0,"Cannot be below 0%"),XMt=Yt.z.union([Yt.z.string().regex(/^([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/,"Invalid hex color"),Yt.z.string().regex(/^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/,"Invalid hex color").transform(r=>r.replace("#","")),Yt.z.string().length(0)]),xbe=Yt.z.union([Yt.z.string().regex(/^([0-9]+\.?[0-9]*|\.[0-9]+)$/,"Invalid amount"),Yt.z.number().min(0,"Amount cannot be negative")]).transform(r=>typeof r=="number"?r.toString():r),YMt=Yt.z.union([xbe,Yt.z.literal("unlimited")]).default("unlimited"),Tbe=Yt.z.date().transform(r=>Y2.BigNumber.from(Math.floor(r.getTime()/1e3)));Tbe.default(new Date(0));Tbe.default(new Date(Date.now()+1e3*60*60*24*365*10));function $Mt(r,e){if(typeof r!="object"||r===null)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var n=t.call(r,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}function eIt(r){var e=$Mt(r,"string");return typeof e=="symbol"?e:String(e)}function tIt(r,e,t){return e=eIt(e),e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}var ybe=Yt.z.object({}).catchall(Yt.z.union([wbe,Yt.z.unknown()])),gbe=Yt.z.union([Yt.z.array(ybe),ybe]).optional(),Cz=Yt.z.object({name:Yt.z.union([Yt.z.string(),Yt.z.number()]).optional(),description:Yt.z.string().nullable().optional(),image:oI.nullable().optional(),external_url:oI.nullable().optional(),animation_url:oI.optional(),background_color:XMt.optional(),properties:gbe,attributes:gbe}).catchall(Yt.z.union([wbe,Yt.z.unknown()])),rIt=Yt.z.union([Cz,Yt.z.string()]),nIt=Cz.extend({id:Yt.z.string(),uri:Yt.z.string(),image:Yt.z.string().nullable().optional(),external_url:Yt.z.string().nullable().optional(),animation_url:Yt.z.string().nullable().optional()}),_z=100,aIt=Yt.z.object({start:Yt.z.number().default(0),count:Yt.z.number().default(_z)}).default({start:0,count:_z});Vo.AmountSchema=xbe;Vo.BasisPointsSchema=KMt;Vo.BytesLikeSchema=ZMt;Vo.CommonNFTInput=Cz;Vo.CommonNFTOutput=nIt;Vo.DEFAULT_API_KEY=vbe;Vo.DEFAULT_QUERY_ALL_COUNT=_z;Vo.FileOrBufferOrStringSchema=oI;Vo.MAX_BPS=bbe;Vo.NFTInputOrUriSchema=rIt;Vo.PercentSchema=QMt;Vo.QuantitySchema=YMt;Vo.QueryAllParamsSchema=aIt;Vo._defineProperty=tIt;Vo.getRpcUrl=HMt});var Un=O((can,iIt)=>{iIt.exports=[{inputs:[{internalType:"bytes4",name:"interfaceId",type:"bytes4"}],name:"supportsInterface",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"}]});var Wn=O((uan,sIt)=>{sIt.exports=[{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"approved",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"}],name:"Approval",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!1,internalType:"bool",name:"approved",type:"bool"}],name:"ApprovalForAll",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"}],name:"Transfer",type:"event"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"approve",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"}],name:"balanceOf",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"getApproved",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"address",name:"operator",type:"address"}],name:"isApprovedForAll",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"ownerOf",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"safeTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"}],name:"safeTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"operator",type:"address"},{internalType:"bool",name:"_approved",type:"bool"}],name:"setApprovalForAll",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"transferFrom",outputs:[],stateMutability:"nonpayable",type:"function"}]});var jn=O((lan,oIt)=>{oIt.exports=[{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"_owner",type:"address"},{indexed:!0,internalType:"address",name:"_operator",type:"address"},{indexed:!1,internalType:"bool",name:"_approved",type:"bool"}],name:"ApprovalForAll",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"_operator",type:"address"},{indexed:!0,internalType:"address",name:"_from",type:"address"},{indexed:!0,internalType:"address",name:"_to",type:"address"},{indexed:!1,internalType:"uint256[]",name:"_ids",type:"uint256[]"},{indexed:!1,internalType:"uint256[]",name:"_values",type:"uint256[]"}],name:"TransferBatch",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"_operator",type:"address"},{indexed:!0,internalType:"address",name:"_from",type:"address"},{indexed:!0,internalType:"address",name:"_to",type:"address"},{indexed:!1,internalType:"uint256",name:"_id",type:"uint256"},{indexed:!1,internalType:"uint256",name:"_value",type:"uint256"}],name:"TransferSingle",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"string",name:"_value",type:"string"},{indexed:!0,internalType:"uint256",name:"_id",type:"uint256"}],name:"URI",type:"event"},{inputs:[{internalType:"address",name:"_owner",type:"address"},{internalType:"uint256",name:"_id",type:"uint256"}],name:"balanceOf",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address[]",name:"_owners",type:"address[]"},{internalType:"uint256[]",name:"_ids",type:"uint256[]"}],name:"balanceOfBatch",outputs:[{internalType:"uint256[]",name:"",type:"uint256[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_owner",type:"address"},{internalType:"address",name:"_operator",type:"address"}],name:"isApprovedForAll",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_from",type:"address"},{internalType:"address",name:"_to",type:"address"},{internalType:"uint256[]",name:"_ids",type:"uint256[]"},{internalType:"uint256[]",name:"_values",type:"uint256[]"},{internalType:"bytes",name:"_data",type:"bytes"}],name:"safeBatchTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_from",type:"address"},{internalType:"address",name:"_to",type:"address"},{internalType:"uint256",name:"_id",type:"uint256"},{internalType:"uint256",name:"_value",type:"uint256"},{internalType:"bytes",name:"_data",type:"bytes"}],name:"safeTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_operator",type:"address"},{internalType:"bool",name:"_approved",type:"bool"}],name:"setApprovalForAll",outputs:[],stateMutability:"nonpayable",type:"function"}]});var zn=O((dan,_be)=>{"use strict";x();T();var cIt=M.env.NODE_ENV==="production",Ez="Invariant failed";function uIt(r,e){if(!r){if(cIt)throw new Error(Ez);var t=typeof e=="function"?e():e,n=t?"".concat(Ez,": ").concat(t):Ez;throw new Error(n)}}_be.exports=uIt});var Hn=O((fan,lIt)=>{lIt.exports=[{inputs:[{internalType:"uint256",name:"amount",type:"uint256"}],name:"burn",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"burnFrom",outputs:[],stateMutability:"nonpayable",type:"function"}]});var Vn=O((man,dIt)=>{dIt.exports=[{anonymous:!1,inputs:[{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerWallet",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"string",name:"metadata",type:"string"}],indexed:!1,internalType:"struct IClaimCondition.ClaimCondition[]",name:"claimConditions",type:"tuple[]"},{indexed:!1,internalType:"bool",name:"resetEligibility",type:"bool"}],name:"ClaimConditionsUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"claimConditionIndex",type:"uint256"},{indexed:!0,internalType:"address",name:"claimer",type:"address"},{indexed:!0,internalType:"address",name:"receiver",type:"address"},{indexed:!1,internalType:"uint256",name:"startTokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"quantityClaimed",type:"uint256"}],name:"TokensClaimed",type:"event"},{inputs:[{internalType:"address",name:"receiver",type:"address"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{components:[{internalType:"bytes32[]",name:"proof",type:"bytes32[]"},{internalType:"uint256",name:"quantityLimitPerWallet",type:"uint256"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],internalType:"struct IDrop.AllowlistProof",name:"allowlistProof",type:"tuple"},{internalType:"bytes",name:"data",type:"bytes"}],name:"claim",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerWallet",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"string",name:"metadata",type:"string"}],internalType:"struct IClaimCondition.ClaimCondition[]",name:"phases",type:"tuple[]"},{internalType:"bool",name:"resetClaimEligibility",type:"bool"}],name:"setClaimConditions",outputs:[],stateMutability:"nonpayable",type:"function"}]});var Gn=O((yan,pIt)=>{pIt.exports=[{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"spender",type:"address"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"}],name:"Approval",type:"event"},{anonymous:!1,inputs:[{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerTransaction",type:"uint256"},{internalType:"uint256",name:"waitTimeInSecondsBetweenClaims",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],indexed:!1,internalType:"struct IDropClaimCondition_V2.ClaimCondition[]",name:"claimConditions",type:"tuple[]"}],name:"ClaimConditionsUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"string",name:"prevURI",type:"string"},{indexed:!1,internalType:"string",name:"newURI",type:"string"}],name:"ContractURIUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"maxTotalSupply",type:"uint256"}],name:"MaxTotalSupplyUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"count",type:"uint256"}],name:"MaxWalletClaimCountUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"claimConditionIndex",type:"uint256"},{indexed:!0,internalType:"address",name:"claimer",type:"address"},{indexed:!0,internalType:"address",name:"receiver",type:"address"},{indexed:!1,internalType:"uint256",name:"quantityClaimed",type:"uint256"}],name:"TokensClaimed",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"}],name:"Transfer",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"wallet",type:"address"},{indexed:!1,internalType:"uint256",name:"count",type:"uint256"}],name:"WalletClaimCountUpdated",type:"event"},{inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"address",name:"spender",type:"address"}],name:"allowance",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"spender",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"approve",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"balanceOf",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"receiver",type:"address"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"bytes32[]",name:"proofs",type:"bytes32[]"},{internalType:"uint256",name:"proofMaxQuantityPerTransaction",type:"uint256"}],name:"claim",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerTransaction",type:"uint256"},{internalType:"uint256",name:"waitTimeInSecondsBetweenClaims",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],internalType:"struct IDropClaimCondition_V2.ClaimCondition[]",name:"phases",type:"tuple[]"},{internalType:"bool",name:"resetClaimEligibility",type:"bool"}],name:"setClaimConditions",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"totalSupply",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"transfer",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"transferFrom",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"}]});var Zn=O((gan,hIt)=>{hIt.exports=[{anonymous:!1,inputs:[{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerWallet",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"string",name:"metadata",type:"string"}],indexed:!1,internalType:"struct IClaimCondition.ClaimCondition",name:"condition",type:"tuple"},{indexed:!1,internalType:"bool",name:"resetEligibility",type:"bool"}],name:"ClaimConditionUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"claimer",type:"address"},{indexed:!0,internalType:"address",name:"receiver",type:"address"},{indexed:!0,internalType:"uint256",name:"startTokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"quantityClaimed",type:"uint256"}],name:"TokensClaimed",type:"event"},{inputs:[{internalType:"address",name:"receiver",type:"address"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{components:[{internalType:"bytes32[]",name:"proof",type:"bytes32[]"},{internalType:"uint256",name:"quantityLimitPerWallet",type:"uint256"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],internalType:"struct IDropSinglePhase.AllowlistProof",name:"allowlistProof",type:"tuple"},{internalType:"bytes",name:"data",type:"bytes"}],name:"claim",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerWallet",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"string",name:"metadata",type:"string"}],internalType:"struct IClaimCondition.ClaimCondition",name:"phase",type:"tuple"},{internalType:"bool",name:"resetClaimEligibility",type:"bool"}],name:"setClaimConditions",outputs:[],stateMutability:"nonpayable",type:"function"}]});var Jn=O((van,fIt)=>{fIt.exports=[{anonymous:!1,inputs:[{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerTransaction",type:"uint256"},{internalType:"uint256",name:"waitTimeInSecondsBetweenClaims",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],indexed:!1,internalType:"struct IClaimCondition_V1.ClaimCondition",name:"condition",type:"tuple"},{indexed:!1,internalType:"bool",name:"resetEligibility",type:"bool"}],name:"ClaimConditionUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"claimer",type:"address"},{indexed:!0,internalType:"address",name:"receiver",type:"address"},{indexed:!0,internalType:"uint256",name:"startTokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"quantityClaimed",type:"uint256"}],name:"TokensClaimed",type:"event"},{inputs:[{internalType:"address",name:"receiver",type:"address"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{components:[{internalType:"bytes32[]",name:"proof",type:"bytes32[]"},{internalType:"uint256",name:"maxQuantityInAllowlist",type:"uint256"}],internalType:"struct IDropSinglePhase_V1.AllowlistProof",name:"allowlistProof",type:"tuple"},{internalType:"bytes",name:"data",type:"bytes"}],name:"claim",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerTransaction",type:"uint256"},{internalType:"uint256",name:"waitTimeInSecondsBetweenClaims",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],internalType:"struct IClaimCondition_V1.ClaimCondition",name:"phase",type:"tuple"},{internalType:"bool",name:"resetClaimEligibility",type:"bool"}],name:"setClaimConditions",outputs:[],stateMutability:"nonpayable",type:"function"}]});var Kn=O((ban,mIt)=>{mIt.exports=[{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"spender",type:"address"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"}],name:"Approval",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"}],name:"Transfer",type:"event"},{inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"address",name:"spender",type:"address"}],name:"allowance",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"spender",type:"address"},{internalType:"uint256",name:"value",type:"uint256"}],name:"approve",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"who",type:"address"}],name:"balanceOf",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"totalSupply",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"}],name:"transfer",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"}],name:"transferFrom",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"}]});var Qn=O((wan,yIt)=>{yIt.exports=[{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"mintedTo",type:"address"},{indexed:!1,internalType:"uint256",name:"quantityMinted",type:"uint256"}],name:"TokensMinted",type:"event"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"mintTo",outputs:[],stateMutability:"nonpayable",type:"function"}]});var Xn=O((xan,gIt)=>{gIt.exports=[{inputs:[{internalType:"bytes[]",name:"data",type:"bytes[]"}],name:"multicall",outputs:[{internalType:"bytes[]",name:"results",type:"bytes[]"}],stateMutability:"nonpayable",type:"function"}]});var Yn=O((Tan,vIt)=>{vIt.exports=[{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"signer",type:"address"},{indexed:!0,internalType:"address",name:"mintedTo",type:"address"},{components:[{internalType:"address",name:"to",type:"address"},{internalType:"address",name:"primarySaleRecipient",type:"address"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint128",name:"validityStartTimestamp",type:"uint128"},{internalType:"uint128",name:"validityEndTimestamp",type:"uint128"},{internalType:"bytes32",name:"uid",type:"bytes32"}],indexed:!1,internalType:"struct ISignatureMintERC20.MintRequest",name:"mintRequest",type:"tuple"}],name:"TokensMintedWithSignature",type:"event"},{inputs:[{components:[{internalType:"address",name:"to",type:"address"},{internalType:"address",name:"primarySaleRecipient",type:"address"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint128",name:"validityStartTimestamp",type:"uint128"},{internalType:"uint128",name:"validityEndTimestamp",type:"uint128"},{internalType:"bytes32",name:"uid",type:"bytes32"}],internalType:"struct ISignatureMintERC20.MintRequest",name:"req",type:"tuple"},{internalType:"bytes",name:"signature",type:"bytes"}],name:"mintWithSignature",outputs:[{internalType:"address",name:"signer",type:"address"}],stateMutability:"payable",type:"function"},{inputs:[{components:[{internalType:"address",name:"to",type:"address"},{internalType:"address",name:"primarySaleRecipient",type:"address"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint128",name:"validityStartTimestamp",type:"uint128"},{internalType:"uint128",name:"validityEndTimestamp",type:"uint128"},{internalType:"bytes32",name:"uid",type:"bytes32"}],internalType:"struct ISignatureMintERC20.MintRequest",name:"req",type:"tuple"},{internalType:"bytes",name:"signature",type:"bytes"}],name:"verify",outputs:[{internalType:"bool",name:"success",type:"bool"},{internalType:"address",name:"signer",type:"address"}],stateMutability:"view",type:"function"}]});var $n=O((_an,bIt)=>{bIt.exports=[{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"burn",outputs:[],stateMutability:"nonpayable",type:"function"}]});var ea=O((Can,wIt)=>{wIt.exports=[{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"claimer",type:"address"},{indexed:!0,internalType:"address",name:"receiver",type:"address"},{indexed:!0,internalType:"uint256",name:"startTokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"quantityClaimed",type:"uint256"}],name:"TokensClaimed",type:"event"},{inputs:[{internalType:"address",name:"_receiver",type:"address"},{internalType:"uint256",name:"_quantity",type:"uint256"}],name:"claim",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"_claimer",type:"address"},{internalType:"uint256",name:"_quantity",type:"uint256"}],name:"verifyClaim",outputs:[],stateMutability:"view",type:"function"}]});var ta=O((Ean,xIt)=>{xIt.exports=[{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"index",type:"uint256"},{indexed:!1,internalType:"string",name:"revealedURI",type:"string"}],name:"TokenURIRevealed",type:"event"},{inputs:[{internalType:"bytes",name:"data",type:"bytes"},{internalType:"bytes",name:"key",type:"bytes"}],name:"encryptDecrypt",outputs:[{internalType:"bytes",name:"result",type:"bytes"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"uint256",name:"identifier",type:"uint256"},{internalType:"bytes",name:"key",type:"bytes"}],name:"reveal",outputs:[{internalType:"string",name:"revealedURI",type:"string"}],stateMutability:"nonpayable",type:"function"}]});var ra=O((kan,TIt)=>{TIt.exports=[{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"approved",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"}],name:"Approval",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!1,internalType:"bool",name:"approved",type:"bool"}],name:"ApprovalForAll",type:"event"},{anonymous:!1,inputs:[{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerTransaction",type:"uint256"},{internalType:"uint256",name:"waitTimeInSecondsBetweenClaims",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],indexed:!1,internalType:"struct IDropClaimCondition_V2.ClaimCondition[]",name:"claimConditions",type:"tuple[]"}],name:"ClaimConditionsUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"maxTotalSupply",type:"uint256"}],name:"MaxTotalSupplyUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"count",type:"uint256"}],name:"MaxWalletClaimCountUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"endTokenId",type:"uint256"},{indexed:!1,internalType:"string",name:"revealedURI",type:"string"}],name:"NFTRevealed",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"claimConditionIndex",type:"uint256"},{indexed:!0,internalType:"address",name:"claimer",type:"address"},{indexed:!0,internalType:"address",name:"receiver",type:"address"},{indexed:!1,internalType:"uint256",name:"startTokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"quantityClaimed",type:"uint256"}],name:"TokensClaimed",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"startTokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"endTokenId",type:"uint256"},{indexed:!1,internalType:"string",name:"baseURI",type:"string"},{indexed:!1,internalType:"bytes",name:"encryptedBaseURI",type:"bytes"}],name:"TokensLazyMinted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"}],name:"Transfer",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"wallet",type:"address"},{indexed:!1,internalType:"uint256",name:"count",type:"uint256"}],name:"WalletClaimCountUpdated",type:"event"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"approve",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"}],name:"balanceOf",outputs:[{internalType:"uint256",name:"balance",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"receiver",type:"address"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"bytes32[]",name:"proofs",type:"bytes32[]"},{internalType:"uint256",name:"proofMaxQuantityPerTransaction",type:"uint256"}],name:"claim",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"getApproved",outputs:[{internalType:"address",name:"operator",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"address",name:"operator",type:"address"}],name:"isApprovedForAll",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"amount",type:"uint256"},{internalType:"string",name:"baseURIForTokens",type:"string"},{internalType:"bytes",name:"encryptedBaseURI",type:"bytes"}],name:"lazyMint",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"ownerOf",outputs:[{internalType:"address",name:"owner",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"safeTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"}],name:"safeTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"operator",type:"address"},{internalType:"bool",name:"_approved",type:"bool"}],name:"setApprovalForAll",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerTransaction",type:"uint256"},{internalType:"uint256",name:"waitTimeInSecondsBetweenClaims",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],internalType:"struct IDropClaimCondition_V2.ClaimCondition[]",name:"phases",type:"tuple[]"},{internalType:"bool",name:"resetClaimEligibility",type:"bool"}],name:"setClaimConditions",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes4",name:"interfaceId",type:"bytes4"}],name:"supportsInterface",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"transferFrom",outputs:[],stateMutability:"nonpayable",type:"function"}]});var na=O((San,_It)=>{_It.exports=[{inputs:[{internalType:"uint256",name:"_index",type:"uint256"}],name:"tokenByIndex",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_owner",type:"address"},{internalType:"uint256",name:"_index",type:"uint256"}],name:"tokenOfOwnerByIndex",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"}]});var aa=O((Aan,CIt)=>{CIt.exports=[{inputs:[],name:"totalSupply",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"}]});var ia=O((Man,EIt)=>{EIt.exports=[{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"startTokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"endTokenId",type:"uint256"},{indexed:!1,internalType:"string",name:"baseURI",type:"string"},{indexed:!1,internalType:"bytes",name:"encryptedBaseURI",type:"bytes"}],name:"TokensLazyMinted",type:"event"},{inputs:[{internalType:"uint256",name:"amount",type:"uint256"},{internalType:"string",name:"baseURIForTokens",type:"string"},{internalType:"bytes",name:"extraData",type:"bytes"}],name:"lazyMint",outputs:[{internalType:"uint256",name:"batchId",type:"uint256"}],stateMutability:"nonpayable",type:"function"}]});var sa=O((Ian,kIt)=>{kIt.exports=[{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"mintedTo",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenIdMinted",type:"uint256"},{indexed:!1,internalType:"string",name:"uri",type:"string"}],name:"TokensMinted",type:"event"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"string",name:"uri",type:"string"}],name:"mintTo",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"nonpayable",type:"function"}]});var oa=O((Pan,SIt)=>{SIt.exports=[{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"signer",type:"address"},{indexed:!0,internalType:"address",name:"mintedTo",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenIdMinted",type:"uint256"},{components:[{internalType:"address",name:"to",type:"address"},{internalType:"address",name:"royaltyRecipient",type:"address"},{internalType:"uint256",name:"royaltyBps",type:"uint256"},{internalType:"address",name:"primarySaleRecipient",type:"address"},{internalType:"string",name:"uri",type:"string"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint128",name:"validityStartTimestamp",type:"uint128"},{internalType:"uint128",name:"validityEndTimestamp",type:"uint128"},{internalType:"bytes32",name:"uid",type:"bytes32"}],indexed:!1,internalType:"struct ISignatureMintERC721.MintRequest",name:"mintRequest",type:"tuple"}],name:"TokensMintedWithSignature",type:"event"},{inputs:[{components:[{internalType:"address",name:"to",type:"address"},{internalType:"address",name:"royaltyRecipient",type:"address"},{internalType:"uint256",name:"royaltyBps",type:"uint256"},{internalType:"address",name:"primarySaleRecipient",type:"address"},{internalType:"string",name:"uri",type:"string"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint128",name:"validityStartTimestamp",type:"uint128"},{internalType:"uint128",name:"validityEndTimestamp",type:"uint128"},{internalType:"bytes32",name:"uid",type:"bytes32"}],internalType:"struct ISignatureMintERC721.MintRequest",name:"req",type:"tuple"},{internalType:"bytes",name:"signature",type:"bytes"}],name:"mintWithSignature",outputs:[{internalType:"address",name:"signer",type:"address"}],stateMutability:"payable",type:"function"},{inputs:[{components:[{internalType:"address",name:"to",type:"address"},{internalType:"address",name:"royaltyRecipient",type:"address"},{internalType:"uint256",name:"royaltyBps",type:"uint256"},{internalType:"address",name:"primarySaleRecipient",type:"address"},{internalType:"string",name:"uri",type:"string"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint128",name:"validityStartTimestamp",type:"uint128"},{internalType:"uint128",name:"validityEndTimestamp",type:"uint128"},{internalType:"bytes32",name:"uid",type:"bytes32"}],internalType:"struct ISignatureMintERC721.MintRequest",name:"req",type:"tuple"},{internalType:"bytes",name:"signature",type:"bytes"}],name:"verify",outputs:[{internalType:"bool",name:"success",type:"bool"},{internalType:"address",name:"signer",type:"address"}],stateMutability:"view",type:"function"}]});var ca=O((Ran,AIt)=>{AIt.exports=[{inputs:[{components:[{internalType:"address",name:"to",type:"address"},{internalType:"address",name:"royaltyRecipient",type:"address"},{internalType:"uint256",name:"royaltyBps",type:"uint256"},{internalType:"address",name:"primarySaleRecipient",type:"address"},{internalType:"string",name:"uri",type:"string"},{internalType:"uint256",name:"price",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint128",name:"validityStartTimestamp",type:"uint128"},{internalType:"uint128",name:"validityEndTimestamp",type:"uint128"},{internalType:"bytes32",name:"uid",type:"bytes32"}],internalType:"struct ITokenERC721.MintRequest",name:"_req",type:"tuple"},{internalType:"bytes",name:"_signature",type:"bytes"}],name:"mintWithSignature",outputs:[{internalType:"uint256",name:"tokenIdMinted",type:"uint256"}],stateMutability:"payable",type:"function"},{inputs:[{components:[{internalType:"address",name:"to",type:"address"},{internalType:"address",name:"royaltyRecipient",type:"address"},{internalType:"uint256",name:"royaltyBps",type:"uint256"},{internalType:"address",name:"primarySaleRecipient",type:"address"},{internalType:"string",name:"uri",type:"string"},{internalType:"uint256",name:"price",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint128",name:"validityStartTimestamp",type:"uint128"},{internalType:"uint128",name:"validityEndTimestamp",type:"uint128"},{internalType:"bytes32",name:"uid",type:"bytes32"}],internalType:"struct ITokenERC721.MintRequest",name:"_req",type:"tuple"},{internalType:"bytes",name:"_signature",type:"bytes"}],name:"verify",outputs:[{internalType:"bool",name:"",type:"bool"},{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"}]});var ua=O((Nan,MIt)=>{MIt.exports=[{anonymous:!1,inputs:[{indexed:!0,internalType:"string",name:"tier",type:"string"},{indexed:!0,internalType:"uint256",name:"startTokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"endTokenId",type:"uint256"},{indexed:!1,internalType:"string",name:"baseURI",type:"string"},{indexed:!1,internalType:"bytes",name:"encryptedBaseURI",type:"bytes"}],name:"TokensLazyMinted",type:"event"},{inputs:[],name:"getBaseURICount",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_index",type:"uint256"}],name:"getBatchIdAtIndex",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"getMetadataForAllTiers",outputs:[{components:[{internalType:"string",name:"tier",type:"string"},{components:[{internalType:"uint256",name:"startIdInclusive",type:"uint256"},{internalType:"uint256",name:"endIdNonInclusive",type:"uint256"}],internalType:"struct LazyMintWithTier.TokenRange[]",name:"ranges",type:"tuple[]"},{internalType:"string[]",name:"baseURIs",type:"string[]"}],internalType:"struct LazyMintWithTier.TierMetadata[]",name:"metadataForAllTiers",type:"tuple[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_amount",type:"uint256"},{internalType:"string",name:"_baseURIForTokens",type:"string"},{internalType:"string",name:"_tier",type:"string"},{internalType:"bytes",name:"_data",type:"bytes"}],name:"lazyMint",outputs:[{internalType:"uint256",name:"batchId",type:"uint256"}],stateMutability:"nonpayable",type:"function"}]});var la=O((Oan,IIt)=>{IIt.exports=[{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint256",name:"id",type:"uint256"},{internalType:"uint256",name:"value",type:"uint256"}],name:"burn",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint256[]",name:"ids",type:"uint256[]"},{internalType:"uint256[]",name:"values",type:"uint256[]"}],name:"burnBatch",outputs:[],stateMutability:"nonpayable",type:"function"}]});var da=O((Lan,PIt)=>{PIt.exports=[{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"claimer",type:"address"},{indexed:!0,internalType:"address",name:"receiver",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"quantityClaimed",type:"uint256"}],name:"TokensClaimed",type:"event"},{inputs:[{internalType:"address",name:"_receiver",type:"address"},{internalType:"uint256",name:"_tokenId",type:"uint256"},{internalType:"uint256",name:"_quantity",type:"uint256"}],name:"claim",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"_claimer",type:"address"},{internalType:"uint256",name:"_tokenId",type:"uint256"},{internalType:"uint256",name:"_quantity",type:"uint256"}],name:"verifyClaim",outputs:[],stateMutability:"view",type:"function"}]});var pa=O((Ban,RIt)=>{RIt.exports=[{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"},{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerWallet",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"string",name:"metadata",type:"string"}],indexed:!1,internalType:"struct IClaimCondition.ClaimCondition[]",name:"claimConditions",type:"tuple[]"},{indexed:!1,internalType:"bool",name:"resetEligibility",type:"bool"}],name:"ClaimConditionsUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"claimConditionIndex",type:"uint256"},{indexed:!0,internalType:"address",name:"claimer",type:"address"},{indexed:!0,internalType:"address",name:"receiver",type:"address"},{indexed:!1,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"quantityClaimed",type:"uint256"}],name:"TokensClaimed",type:"event"},{inputs:[{internalType:"address",name:"receiver",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{components:[{internalType:"bytes32[]",name:"proof",type:"bytes32[]"},{internalType:"uint256",name:"quantityLimitPerWallet",type:"uint256"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],internalType:"struct IDrop1155.AllowlistProof",name:"allowlistProof",type:"tuple"},{internalType:"bytes",name:"data",type:"bytes"}],name:"claim",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"},{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerWallet",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"string",name:"metadata",type:"string"}],internalType:"struct IClaimCondition.ClaimCondition[]",name:"phases",type:"tuple[]"},{internalType:"bool",name:"resetClaimEligibility",type:"bool"}],name:"setClaimConditions",outputs:[],stateMutability:"nonpayable",type:"function"}]});var ha=O((qan,NIt)=>{NIt.exports=[{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!1,internalType:"bool",name:"approved",type:"bool"}],name:"ApprovalForAll",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"},{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerTransaction",type:"uint256"},{internalType:"uint256",name:"waitTimeInSecondsBetweenClaims",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],indexed:!1,internalType:"struct IDropClaimCondition_V2.ClaimCondition[]",name:"claimConditions",type:"tuple[]"}],name:"ClaimConditionsUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"maxTotalSupply",type:"uint256"}],name:"MaxTotalSupplyUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"count",type:"uint256"}],name:"MaxWalletClaimCountUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!1,internalType:"address",name:"saleRecipient",type:"address"}],name:"SaleRecipientForTokenUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"claimConditionIndex",type:"uint256"},{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!0,internalType:"address",name:"claimer",type:"address"},{indexed:!1,internalType:"address",name:"receiver",type:"address"},{indexed:!1,internalType:"uint256",name:"quantityClaimed",type:"uint256"}],name:"TokensClaimed",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"startTokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"endTokenId",type:"uint256"},{indexed:!1,internalType:"string",name:"baseURI",type:"string"}],name:"TokensLazyMinted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256[]",name:"ids",type:"uint256[]"},{indexed:!1,internalType:"uint256[]",name:"values",type:"uint256[]"}],name:"TransferBatch",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256",name:"id",type:"uint256"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"}],name:"TransferSingle",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"string",name:"value",type:"string"},{indexed:!0,internalType:"uint256",name:"id",type:"uint256"}],name:"URI",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!0,internalType:"address",name:"wallet",type:"address"},{indexed:!1,internalType:"uint256",name:"count",type:"uint256"}],name:"WalletClaimCountUpdated",type:"event"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint256",name:"id",type:"uint256"}],name:"balanceOf",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address[]",name:"accounts",type:"address[]"},{internalType:"uint256[]",name:"ids",type:"uint256[]"}],name:"balanceOfBatch",outputs:[{internalType:"uint256[]",name:"",type:"uint256[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"receiver",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"bytes32[]",name:"proofs",type:"bytes32[]"},{internalType:"uint256",name:"proofMaxQuantityPerTransaction",type:"uint256"}],name:"claim",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"address",name:"operator",type:"address"}],name:"isApprovedForAll",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"amount",type:"uint256"},{internalType:"string",name:"baseURIForTokens",type:"string"}],name:"lazyMint",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256[]",name:"ids",type:"uint256[]"},{internalType:"uint256[]",name:"amounts",type:"uint256[]"},{internalType:"bytes",name:"data",type:"bytes"}],name:"safeBatchTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"id",type:"uint256"},{internalType:"uint256",name:"amount",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"}],name:"safeTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"operator",type:"address"},{internalType:"bool",name:"approved",type:"bool"}],name:"setApprovalForAll",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"},{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerTransaction",type:"uint256"},{internalType:"uint256",name:"waitTimeInSecondsBetweenClaims",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],internalType:"struct IDropClaimCondition_V2.ClaimCondition[]",name:"phases",type:"tuple[]"},{internalType:"bool",name:"resetClaimEligibility",type:"bool"}],name:"setClaimConditions",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes4",name:"interfaceId",type:"bytes4"}],name:"supportsInterface",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"}]});var fa=O((Dan,OIt)=>{OIt.exports=[{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"},{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerWallet",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"string",name:"metadata",type:"string"}],indexed:!1,internalType:"struct IClaimCondition.ClaimCondition",name:"condition",type:"tuple"},{indexed:!1,internalType:"bool",name:"resetEligibility",type:"bool"}],name:"ClaimConditionUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"claimer",type:"address"},{indexed:!0,internalType:"address",name:"receiver",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"quantityClaimed",type:"uint256"}],name:"TokensClaimed",type:"event"},{inputs:[{internalType:"address",name:"receiver",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{components:[{internalType:"bytes32[]",name:"proof",type:"bytes32[]"},{internalType:"uint256",name:"quantityLimitPerWallet",type:"uint256"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],internalType:"struct IDropSinglePhase1155.AllowlistProof",name:"allowlistProof",type:"tuple"},{internalType:"bytes",name:"data",type:"bytes"}],name:"claim",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"},{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerWallet",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"string",name:"metadata",type:"string"}],internalType:"struct IClaimCondition.ClaimCondition",name:"phase",type:"tuple"},{internalType:"bool",name:"resetClaimEligibility",type:"bool"}],name:"setClaimConditions",outputs:[],stateMutability:"nonpayable",type:"function"}]});var ma=O((Fan,LIt)=>{LIt.exports=[{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"},{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerTransaction",type:"uint256"},{internalType:"uint256",name:"waitTimeInSecondsBetweenClaims",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],indexed:!1,internalType:"struct IClaimCondition_V1.ClaimCondition",name:"condition",type:"tuple"},{indexed:!1,internalType:"bool",name:"resetEligibility",type:"bool"}],name:"ClaimConditionUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"claimer",type:"address"},{indexed:!0,internalType:"address",name:"receiver",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"quantityClaimed",type:"uint256"}],name:"TokensClaimed",type:"event"},{inputs:[{internalType:"address",name:"receiver",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{components:[{internalType:"bytes32[]",name:"proof",type:"bytes32[]"},{internalType:"uint256",name:"maxQuantityInAllowlist",type:"uint256"}],internalType:"struct IDropSinglePhase1155_V1.AllowlistProof",name:"allowlistProof",type:"tuple"},{internalType:"bytes",name:"data",type:"bytes"}],name:"claim",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"},{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerTransaction",type:"uint256"},{internalType:"uint256",name:"waitTimeInSecondsBetweenClaims",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],internalType:"struct IClaimCondition_V1.ClaimCondition",name:"phase",type:"tuple"},{internalType:"bool",name:"resetClaimEligibility",type:"bool"}],name:"setClaimConditions",outputs:[],stateMutability:"nonpayable",type:"function"}]});var ya=O((Uan,BIt)=>{BIt.exports=[{inputs:[],name:"nextTokenIdToMint",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"}]});var ga=O((Wan,qIt)=>{qIt.exports=[{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"mintedTo",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenIdMinted",type:"uint256"},{indexed:!1,internalType:"string",name:"uri",type:"string"},{indexed:!1,internalType:"uint256",name:"quantityMinted",type:"uint256"}],name:"TokensMinted",type:"event"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"string",name:"uri",type:"string"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"mintTo",outputs:[],stateMutability:"nonpayable",type:"function"}]});var va=O((jan,DIt)=>{DIt.exports=[{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"signer",type:"address"},{indexed:!0,internalType:"address",name:"mintedTo",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenIdMinted",type:"uint256"},{components:[{internalType:"address",name:"to",type:"address"},{internalType:"address",name:"royaltyRecipient",type:"address"},{internalType:"uint256",name:"royaltyBps",type:"uint256"},{internalType:"address",name:"primarySaleRecipient",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"string",name:"uri",type:"string"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint128",name:"validityStartTimestamp",type:"uint128"},{internalType:"uint128",name:"validityEndTimestamp",type:"uint128"},{internalType:"bytes32",name:"uid",type:"bytes32"}],indexed:!1,internalType:"struct ISignatureMintERC1155.MintRequest",name:"mintRequest",type:"tuple"}],name:"TokensMintedWithSignature",type:"event"},{inputs:[{components:[{internalType:"address",name:"to",type:"address"},{internalType:"address",name:"royaltyRecipient",type:"address"},{internalType:"uint256",name:"royaltyBps",type:"uint256"},{internalType:"address",name:"primarySaleRecipient",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"string",name:"uri",type:"string"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint128",name:"validityStartTimestamp",type:"uint128"},{internalType:"uint128",name:"validityEndTimestamp",type:"uint128"},{internalType:"bytes32",name:"uid",type:"bytes32"}],internalType:"struct ISignatureMintERC1155.MintRequest",name:"req",type:"tuple"},{internalType:"bytes",name:"signature",type:"bytes"}],name:"mintWithSignature",outputs:[{internalType:"address",name:"signer",type:"address"}],stateMutability:"payable",type:"function"},{inputs:[{components:[{internalType:"address",name:"to",type:"address"},{internalType:"address",name:"royaltyRecipient",type:"address"},{internalType:"uint256",name:"royaltyBps",type:"uint256"},{internalType:"address",name:"primarySaleRecipient",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"string",name:"uri",type:"string"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint128",name:"validityStartTimestamp",type:"uint128"},{internalType:"uint128",name:"validityEndTimestamp",type:"uint128"},{internalType:"bytes32",name:"uid",type:"bytes32"}],internalType:"struct ISignatureMintERC1155.MintRequest",name:"req",type:"tuple"},{internalType:"bytes",name:"signature",type:"bytes"}],name:"verify",outputs:[{internalType:"bool",name:"success",type:"bool"},{internalType:"address",name:"signer",type:"address"}],stateMutability:"view",type:"function"}]});var ba=O((zan,FIt)=>{FIt.exports=[{inputs:[{internalType:"address",name:"forwarder",type:"address"}],name:"isTrustedForwarder",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"}]});var wa=O((Han,UIt)=>{UIt.exports=[{anonymous:!1,inputs:[{indexed:!1,internalType:"string",name:"prevURI",type:"string"},{indexed:!1,internalType:"string",name:"newURI",type:"string"}],name:"AppURIUpdated",type:"event"},{inputs:[],name:"appURI",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"string",name:"_uri",type:"string"}],name:"setAppURI",outputs:[],stateMutability:"nonpayable",type:"function"}]});var xa=O((Van,WIt)=>{WIt.exports=[{anonymous:!1,inputs:[{indexed:!1,internalType:"string",name:"prevURI",type:"string"},{indexed:!1,internalType:"string",name:"newURI",type:"string"}],name:"ContractURIUpdated",type:"event"},{inputs:[],name:"contractURI",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"string",name:"_uri",type:"string"}],name:"setContractURI",outputs:[],stateMutability:"nonpayable",type:"function"}]});var Ta=O((Gan,jIt)=>{jIt.exports=[{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"listingId",type:"uint256"},{indexed:!0,internalType:"address",name:"buyer",type:"address"},{indexed:!1,internalType:"bool",name:"approved",type:"bool"}],name:"BuyerApprovedForListing",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"listingCreator",type:"address"},{indexed:!0,internalType:"uint256",name:"listingId",type:"uint256"}],name:"CancelledListing",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"listingId",type:"uint256"},{indexed:!0,internalType:"address",name:"currency",type:"address"},{indexed:!1,internalType:"uint256",name:"pricePerToken",type:"uint256"}],name:"CurrencyApprovedForListing",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"listingCreator",type:"address"},{indexed:!0,internalType:"uint256",name:"listingId",type:"uint256"},{indexed:!0,internalType:"address",name:"assetContract",type:"address"},{components:[{internalType:"uint256",name:"listingId",type:"uint256"},{internalType:"address",name:"listingCreator",type:"address"},{internalType:"address",name:"assetContract",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"uint128",name:"startTimestamp",type:"uint128"},{internalType:"uint128",name:"endTimestamp",type:"uint128"},{internalType:"bool",name:"reserved",type:"bool"},{internalType:"enum IDirectListings.TokenType",name:"tokenType",type:"uint8"},{internalType:"enum IDirectListings.Status",name:"status",type:"uint8"}],indexed:!1,internalType:"struct IDirectListings.Listing",name:"listing",type:"tuple"}],name:"NewListing",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"listingCreator",type:"address"},{indexed:!0,internalType:"uint256",name:"listingId",type:"uint256"},{indexed:!0,internalType:"address",name:"assetContract",type:"address"},{indexed:!1,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!1,internalType:"address",name:"buyer",type:"address"},{indexed:!1,internalType:"uint256",name:"quantityBought",type:"uint256"},{indexed:!1,internalType:"uint256",name:"totalPricePaid",type:"uint256"}],name:"NewSale",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"listingCreator",type:"address"},{indexed:!0,internalType:"uint256",name:"listingId",type:"uint256"},{indexed:!0,internalType:"address",name:"assetContract",type:"address"},{components:[{internalType:"uint256",name:"listingId",type:"uint256"},{internalType:"address",name:"listingCreator",type:"address"},{internalType:"address",name:"assetContract",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"uint128",name:"startTimestamp",type:"uint128"},{internalType:"uint128",name:"endTimestamp",type:"uint128"},{internalType:"bool",name:"reserved",type:"bool"},{internalType:"enum IDirectListings.TokenType",name:"tokenType",type:"uint8"},{internalType:"enum IDirectListings.Status",name:"status",type:"uint8"}],indexed:!1,internalType:"struct IDirectListings.Listing",name:"listing",type:"tuple"}],name:"UpdatedListing",type:"event"},{inputs:[{internalType:"uint256",name:"_listingId",type:"uint256"},{internalType:"address",name:"_buyer",type:"address"},{internalType:"bool",name:"_toApprove",type:"bool"}],name:"approveBuyerForListing",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_listingId",type:"uint256"},{internalType:"address",name:"_currency",type:"address"},{internalType:"uint256",name:"_pricePerTokenInCurrency",type:"uint256"}],name:"approveCurrencyForListing",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_listingId",type:"uint256"},{internalType:"address",name:"_buyFor",type:"address"},{internalType:"uint256",name:"_quantity",type:"uint256"},{internalType:"address",name:"_currency",type:"address"},{internalType:"uint256",name:"_expectedTotalPrice",type:"uint256"}],name:"buyFromListing",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"uint256",name:"_listingId",type:"uint256"}],name:"cancelListing",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{internalType:"address",name:"assetContract",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"uint128",name:"startTimestamp",type:"uint128"},{internalType:"uint128",name:"endTimestamp",type:"uint128"},{internalType:"bool",name:"reserved",type:"bool"}],internalType:"struct IDirectListings.ListingParameters",name:"_params",type:"tuple"}],name:"createListing",outputs:[{internalType:"uint256",name:"listingId",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_startId",type:"uint256"},{internalType:"uint256",name:"_endId",type:"uint256"}],name:"getAllListings",outputs:[{components:[{internalType:"uint256",name:"listingId",type:"uint256"},{internalType:"address",name:"listingCreator",type:"address"},{internalType:"address",name:"assetContract",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"uint128",name:"startTimestamp",type:"uint128"},{internalType:"uint128",name:"endTimestamp",type:"uint128"},{internalType:"bool",name:"reserved",type:"bool"},{internalType:"enum IDirectListings.TokenType",name:"tokenType",type:"uint8"},{internalType:"enum IDirectListings.Status",name:"status",type:"uint8"}],internalType:"struct IDirectListings.Listing[]",name:"listings",type:"tuple[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_startId",type:"uint256"},{internalType:"uint256",name:"_endId",type:"uint256"}],name:"getAllValidListings",outputs:[{components:[{internalType:"uint256",name:"listingId",type:"uint256"},{internalType:"address",name:"listingCreator",type:"address"},{internalType:"address",name:"assetContract",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"uint128",name:"startTimestamp",type:"uint128"},{internalType:"uint128",name:"endTimestamp",type:"uint128"},{internalType:"bool",name:"reserved",type:"bool"},{internalType:"enum IDirectListings.TokenType",name:"tokenType",type:"uint8"},{internalType:"enum IDirectListings.Status",name:"status",type:"uint8"}],internalType:"struct IDirectListings.Listing[]",name:"listings",type:"tuple[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_listingId",type:"uint256"}],name:"getListing",outputs:[{components:[{internalType:"uint256",name:"listingId",type:"uint256"},{internalType:"address",name:"listingCreator",type:"address"},{internalType:"address",name:"assetContract",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"uint128",name:"startTimestamp",type:"uint128"},{internalType:"uint128",name:"endTimestamp",type:"uint128"},{internalType:"bool",name:"reserved",type:"bool"},{internalType:"enum IDirectListings.TokenType",name:"tokenType",type:"uint8"},{internalType:"enum IDirectListings.Status",name:"status",type:"uint8"}],internalType:"struct IDirectListings.Listing",name:"listing",type:"tuple"}],stateMutability:"view",type:"function"},{inputs:[],name:"totalListings",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_listingId",type:"uint256"},{components:[{internalType:"address",name:"assetContract",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"uint128",name:"startTimestamp",type:"uint128"},{internalType:"uint128",name:"endTimestamp",type:"uint128"},{internalType:"bool",name:"reserved",type:"bool"}],internalType:"struct IDirectListings.ListingParameters",name:"_params",type:"tuple"}],name:"updateListing",outputs:[],stateMutability:"nonpayable",type:"function"}]});var _a=O((Zan,zIt)=>{zIt.exports=[{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"auctionId",type:"uint256"},{indexed:!0,internalType:"address",name:"assetContract",type:"address"},{indexed:!0,internalType:"address",name:"closer",type:"address"},{indexed:!1,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!1,internalType:"address",name:"auctionCreator",type:"address"},{indexed:!1,internalType:"address",name:"winningBidder",type:"address"}],name:"AuctionClosed",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"auctionCreator",type:"address"},{indexed:!0,internalType:"uint256",name:"auctionId",type:"uint256"}],name:"CancelledAuction",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"auctionCreator",type:"address"},{indexed:!0,internalType:"uint256",name:"auctionId",type:"uint256"},{indexed:!0,internalType:"address",name:"assetContract",type:"address"},{components:[{internalType:"uint256",name:"auctionId",type:"uint256"},{internalType:"address",name:"auctionCreator",type:"address"},{internalType:"address",name:"assetContract",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint256",name:"minimumBidAmount",type:"uint256"},{internalType:"uint256",name:"buyoutBidAmount",type:"uint256"},{internalType:"uint64",name:"timeBufferInSeconds",type:"uint64"},{internalType:"uint64",name:"bidBufferBps",type:"uint64"},{internalType:"uint64",name:"startTimestamp",type:"uint64"},{internalType:"uint64",name:"endTimestamp",type:"uint64"},{internalType:"enum IEnglishAuctions.TokenType",name:"tokenType",type:"uint8"},{internalType:"enum IEnglishAuctions.Status",name:"status",type:"uint8"}],indexed:!1,internalType:"struct IEnglishAuctions.Auction",name:"auction",type:"tuple"}],name:"NewAuction",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"auctionId",type:"uint256"},{indexed:!0,internalType:"address",name:"bidder",type:"address"},{indexed:!0,internalType:"address",name:"assetContract",type:"address"},{indexed:!1,internalType:"uint256",name:"bidAmount",type:"uint256"},{components:[{internalType:"uint256",name:"auctionId",type:"uint256"},{internalType:"address",name:"auctionCreator",type:"address"},{internalType:"address",name:"assetContract",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint256",name:"minimumBidAmount",type:"uint256"},{internalType:"uint256",name:"buyoutBidAmount",type:"uint256"},{internalType:"uint64",name:"timeBufferInSeconds",type:"uint64"},{internalType:"uint64",name:"bidBufferBps",type:"uint64"},{internalType:"uint64",name:"startTimestamp",type:"uint64"},{internalType:"uint64",name:"endTimestamp",type:"uint64"},{internalType:"enum IEnglishAuctions.TokenType",name:"tokenType",type:"uint8"},{internalType:"enum IEnglishAuctions.Status",name:"status",type:"uint8"}],indexed:!1,internalType:"struct IEnglishAuctions.Auction",name:"auction",type:"tuple"}],name:"NewBid",type:"event"},{inputs:[{internalType:"uint256",name:"_auctionId",type:"uint256"},{internalType:"uint256",name:"_bidAmount",type:"uint256"}],name:"bidInAuction",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"uint256",name:"_auctionId",type:"uint256"}],name:"cancelAuction",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_auctionId",type:"uint256"}],name:"collectAuctionPayout",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_auctionId",type:"uint256"}],name:"collectAuctionTokens",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{internalType:"address",name:"assetContract",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint256",name:"minimumBidAmount",type:"uint256"},{internalType:"uint256",name:"buyoutBidAmount",type:"uint256"},{internalType:"uint64",name:"timeBufferInSeconds",type:"uint64"},{internalType:"uint64",name:"bidBufferBps",type:"uint64"},{internalType:"uint64",name:"startTimestamp",type:"uint64"},{internalType:"uint64",name:"endTimestamp",type:"uint64"}],internalType:"struct IEnglishAuctions.AuctionParameters",name:"_params",type:"tuple"}],name:"createAuction",outputs:[{internalType:"uint256",name:"auctionId",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_startId",type:"uint256"},{internalType:"uint256",name:"_endId",type:"uint256"}],name:"getAllAuctions",outputs:[{components:[{internalType:"uint256",name:"auctionId",type:"uint256"},{internalType:"address",name:"auctionCreator",type:"address"},{internalType:"address",name:"assetContract",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint256",name:"minimumBidAmount",type:"uint256"},{internalType:"uint256",name:"buyoutBidAmount",type:"uint256"},{internalType:"uint64",name:"timeBufferInSeconds",type:"uint64"},{internalType:"uint64",name:"bidBufferBps",type:"uint64"},{internalType:"uint64",name:"startTimestamp",type:"uint64"},{internalType:"uint64",name:"endTimestamp",type:"uint64"},{internalType:"enum IEnglishAuctions.TokenType",name:"tokenType",type:"uint8"},{internalType:"enum IEnglishAuctions.Status",name:"status",type:"uint8"}],internalType:"struct IEnglishAuctions.Auction[]",name:"auctions",type:"tuple[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_startId",type:"uint256"},{internalType:"uint256",name:"_endId",type:"uint256"}],name:"getAllValidAuctions",outputs:[{components:[{internalType:"uint256",name:"auctionId",type:"uint256"},{internalType:"address",name:"auctionCreator",type:"address"},{internalType:"address",name:"assetContract",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint256",name:"minimumBidAmount",type:"uint256"},{internalType:"uint256",name:"buyoutBidAmount",type:"uint256"},{internalType:"uint64",name:"timeBufferInSeconds",type:"uint64"},{internalType:"uint64",name:"bidBufferBps",type:"uint64"},{internalType:"uint64",name:"startTimestamp",type:"uint64"},{internalType:"uint64",name:"endTimestamp",type:"uint64"},{internalType:"enum IEnglishAuctions.TokenType",name:"tokenType",type:"uint8"},{internalType:"enum IEnglishAuctions.Status",name:"status",type:"uint8"}],internalType:"struct IEnglishAuctions.Auction[]",name:"auctions",type:"tuple[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_auctionId",type:"uint256"}],name:"getAuction",outputs:[{components:[{internalType:"uint256",name:"auctionId",type:"uint256"},{internalType:"address",name:"auctionCreator",type:"address"},{internalType:"address",name:"assetContract",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint256",name:"minimumBidAmount",type:"uint256"},{internalType:"uint256",name:"buyoutBidAmount",type:"uint256"},{internalType:"uint64",name:"timeBufferInSeconds",type:"uint64"},{internalType:"uint64",name:"bidBufferBps",type:"uint64"},{internalType:"uint64",name:"startTimestamp",type:"uint64"},{internalType:"uint64",name:"endTimestamp",type:"uint64"},{internalType:"enum IEnglishAuctions.TokenType",name:"tokenType",type:"uint8"},{internalType:"enum IEnglishAuctions.Status",name:"status",type:"uint8"}],internalType:"struct IEnglishAuctions.Auction",name:"auction",type:"tuple"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_auctionId",type:"uint256"}],name:"getWinningBid",outputs:[{internalType:"address",name:"bidder",type:"address"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint256",name:"bidAmount",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_auctionId",type:"uint256"}],name:"isAuctionExpired",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_auctionId",type:"uint256"},{internalType:"uint256",name:"_bidAmount",type:"uint256"}],name:"isNewWinningBid",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"}]});var Ca=O((Jan,HIt)=>{HIt.exports=[{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"offeror",type:"address"},{indexed:!0,internalType:"uint256",name:"offerId",type:"uint256"},{indexed:!0,internalType:"address",name:"assetContract",type:"address"},{indexed:!1,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!1,internalType:"address",name:"seller",type:"address"},{indexed:!1,internalType:"uint256",name:"quantityBought",type:"uint256"},{indexed:!1,internalType:"uint256",name:"totalPricePaid",type:"uint256"}],name:"AcceptedOffer",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"offeror",type:"address"},{indexed:!0,internalType:"uint256",name:"offerId",type:"uint256"}],name:"CancelledOffer",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"offeror",type:"address"},{indexed:!0,internalType:"uint256",name:"offerId",type:"uint256"},{indexed:!0,internalType:"address",name:"assetContract",type:"address"},{components:[{internalType:"uint256",name:"offerId",type:"uint256"},{internalType:"address",name:"offeror",type:"address"},{internalType:"address",name:"assetContract",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint256",name:"totalPrice",type:"uint256"},{internalType:"uint256",name:"expirationTimestamp",type:"uint256"},{internalType:"enum IOffers.TokenType",name:"tokenType",type:"uint8"},{internalType:"enum IOffers.Status",name:"status",type:"uint8"}],indexed:!1,internalType:"struct IOffers.Offer",name:"offer",type:"tuple"}],name:"NewOffer",type:"event"},{inputs:[{internalType:"uint256",name:"_offerId",type:"uint256"}],name:"acceptOffer",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_offerId",type:"uint256"}],name:"cancelOffer",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_startId",type:"uint256"},{internalType:"uint256",name:"_endId",type:"uint256"}],name:"getAllOffers",outputs:[{components:[{internalType:"uint256",name:"offerId",type:"uint256"},{internalType:"address",name:"offeror",type:"address"},{internalType:"address",name:"assetContract",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint256",name:"totalPrice",type:"uint256"},{internalType:"uint256",name:"expirationTimestamp",type:"uint256"},{internalType:"enum IOffers.TokenType",name:"tokenType",type:"uint8"},{internalType:"enum IOffers.Status",name:"status",type:"uint8"}],internalType:"struct IOffers.Offer[]",name:"offers",type:"tuple[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_startId",type:"uint256"},{internalType:"uint256",name:"_endId",type:"uint256"}],name:"getAllValidOffers",outputs:[{components:[{internalType:"uint256",name:"offerId",type:"uint256"},{internalType:"address",name:"offeror",type:"address"},{internalType:"address",name:"assetContract",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint256",name:"totalPrice",type:"uint256"},{internalType:"uint256",name:"expirationTimestamp",type:"uint256"},{internalType:"enum IOffers.TokenType",name:"tokenType",type:"uint8"},{internalType:"enum IOffers.Status",name:"status",type:"uint8"}],internalType:"struct IOffers.Offer[]",name:"offers",type:"tuple[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_offerId",type:"uint256"}],name:"getOffer",outputs:[{components:[{internalType:"uint256",name:"offerId",type:"uint256"},{internalType:"address",name:"offeror",type:"address"},{internalType:"address",name:"assetContract",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint256",name:"totalPrice",type:"uint256"},{internalType:"uint256",name:"expirationTimestamp",type:"uint256"},{internalType:"enum IOffers.TokenType",name:"tokenType",type:"uint8"},{internalType:"enum IOffers.Status",name:"status",type:"uint8"}],internalType:"struct IOffers.Offer",name:"offer",type:"tuple"}],stateMutability:"view",type:"function"},{inputs:[{components:[{internalType:"address",name:"assetContract",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint256",name:"totalPrice",type:"uint256"},{internalType:"uint256",name:"expirationTimestamp",type:"uint256"}],internalType:"struct IOffers.OfferParams",name:"_params",type:"tuple"}],name:"makeOffer",outputs:[{internalType:"uint256",name:"offerId",type:"uint256"}],stateMutability:"nonpayable",type:"function"}]});var Ea=O((Kan,VIt)=>{VIt.exports=[{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"packId",type:"uint256"},{indexed:!1,internalType:"address",name:"recipient",type:"address"},{indexed:!1,internalType:"uint256",name:"totalPacksCreated",type:"uint256"}],name:"PackCreated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"opener",type:"address"},{indexed:!0,internalType:"uint256",name:"packId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"amountToOpen",type:"uint256"},{indexed:!1,internalType:"uint256",name:"requestId",type:"uint256"}],name:"PackOpenRequested",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"packId",type:"uint256"},{indexed:!0,internalType:"address",name:"opener",type:"address"},{indexed:!1,internalType:"uint256",name:"numOfPacksOpened",type:"uint256"},{components:[{internalType:"address",name:"assetContract",type:"address"},{internalType:"enum ITokenBundle.TokenType",name:"tokenType",type:"uint8"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"totalAmount",type:"uint256"}],indexed:!1,internalType:"struct ITokenBundle.Token[]",name:"rewardUnitsDistributed",type:"tuple[]"}],name:"PackOpened",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"packId",type:"uint256"},{indexed:!0,internalType:"uint256",name:"requestId",type:"uint256"}],name:"PackRandomnessFulfilled",type:"event"},{inputs:[{internalType:"address",name:"_opener",type:"address"}],name:"canClaimRewards",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"claimRewards",outputs:[{components:[{internalType:"address",name:"assetContract",type:"address"},{internalType:"enum ITokenBundle.TokenType",name:"tokenType",type:"uint8"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"totalAmount",type:"uint256"}],internalType:"struct ITokenBundle.Token[]",name:"rewardUnits",type:"tuple[]"}],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{internalType:"address",name:"assetContract",type:"address"},{internalType:"enum ITokenBundle.TokenType",name:"tokenType",type:"uint8"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"totalAmount",type:"uint256"}],internalType:"struct ITokenBundle.Token[]",name:"contents",type:"tuple[]"},{internalType:"uint256[]",name:"numOfRewardUnits",type:"uint256[]"},{internalType:"string",name:"packUri",type:"string"},{internalType:"uint128",name:"openStartTimestamp",type:"uint128"},{internalType:"uint128",name:"amountDistributedPerOpen",type:"uint128"},{internalType:"address",name:"recipient",type:"address"}],name:"createPack",outputs:[{internalType:"uint256",name:"packId",type:"uint256"},{internalType:"uint256",name:"packTotalSupply",type:"uint256"}],stateMutability:"payable",type:"function"},{inputs:[{internalType:"uint256",name:"packId",type:"uint256"},{internalType:"uint256",name:"amountToOpen",type:"uint256"}],name:"openPack",outputs:[{internalType:"uint256",name:"requestId",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_packId",type:"uint256"},{internalType:"uint256",name:"_amountToOpen",type:"uint256"},{internalType:"uint32",name:"_callBackGasLimit",type:"uint32"}],name:"openPackAndClaimRewards",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"nonpayable",type:"function"}]});var ka=O((Qan,GIt)=>{GIt.exports=[{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"previousAdminRole",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"newAdminRole",type:"bytes32"}],name:"RoleAdminChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleGranted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleRevoked",type:"event"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleAdmin",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"grantRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRole",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"renounceRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"revokeRole",outputs:[],stateMutability:"nonpayable",type:"function"}]});var Sa=O((Xan,ZIt)=>{ZIt.exports=[{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"previousAdminRole",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"newAdminRole",type:"bytes32"}],name:"RoleAdminChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleGranted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleRevoked",type:"event"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleAdmin",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"uint256",name:"index",type:"uint256"}],name:"getRoleMember",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleMemberCount",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"grantRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRole",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"renounceRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"revokeRole",outputs:[],stateMutability:"nonpayable",type:"function"}]});var Aa=O((Yan,JIt)=>{JIt.exports=[{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"platformFeeRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"platformFeeBps",type:"uint256"}],name:"PlatformFeeInfoUpdated",type:"event"},{inputs:[],name:"getPlatformFeeInfo",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_platformFeeRecipient",type:"address"},{internalType:"uint256",name:"_platformFeeBps",type:"uint256"}],name:"setPlatformFeeInfo",outputs:[],stateMutability:"nonpayable",type:"function"}]});var Ma=O(($an,KIt)=>{KIt.exports=[{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"recipient",type:"address"}],name:"PrimarySaleRecipientUpdated",type:"event"},{inputs:[],name:"primarySaleRecipient",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_saleRecipient",type:"address"}],name:"setPrimarySaleRecipient",outputs:[],stateMutability:"nonpayable",type:"function"}]});var Ia=O((ein,QIt)=>{QIt.exports=[{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes4",name:"functionSelector",type:"bytes4"},{indexed:!0,internalType:"address",name:"pluginAddress",type:"address"}],name:"PluginAdded",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes4",name:"functionSelector",type:"bytes4"},{indexed:!0,internalType:"address",name:"pluginAddress",type:"address"}],name:"PluginRemoved",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes4",name:"functionSelector",type:"bytes4"},{indexed:!0,internalType:"string",name:"functionSignature",type:"string"},{indexed:!0,internalType:"address",name:"pluginAddress",type:"address"}],name:"PluginSet",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes4",name:"functionSelector",type:"bytes4"},{indexed:!0,internalType:"address",name:"oldPluginAddress",type:"address"},{indexed:!0,internalType:"address",name:"newPluginAddress",type:"address"}],name:"PluginUpdated",type:"event"},{inputs:[{components:[{internalType:"bytes4",name:"functionSelector",type:"bytes4"},{internalType:"string",name:"functionSignature",type:"string"},{internalType:"address",name:"pluginAddress",type:"address"}],internalType:"struct IPluginMap.Plugin",name:"plugin",type:"tuple"}],name:"addPlugin",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"pluginAddress",type:"address"}],name:"getAllFunctionsOfPlugin",outputs:[{internalType:"bytes4[]",name:"",type:"bytes4[]"}],stateMutability:"view",type:"function"},{inputs:[],name:"getAllPlugins",outputs:[{components:[{internalType:"bytes4",name:"functionSelector",type:"bytes4"},{internalType:"string",name:"functionSignature",type:"string"},{internalType:"address",name:"pluginAddress",type:"address"}],internalType:"struct IPluginMap.Plugin[]",name:"",type:"tuple[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes4",name:"functionSelector",type:"bytes4"}],name:"getPluginForFunction",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes4",name:"functionSelector",type:"bytes4"}],name:"removePlugin",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{internalType:"bytes4",name:"functionSelector",type:"bytes4"},{internalType:"string",name:"functionSignature",type:"string"},{internalType:"address",name:"pluginAddress",type:"address"}],internalType:"struct IPluginMap.Plugin",name:"plugin",type:"tuple"}],name:"updatePlugin",outputs:[],stateMutability:"nonpayable",type:"function"}]});var Pa=O((tin,XIt)=>{XIt.exports=[{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"newRoyaltyRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"newRoyaltyBps",type:"uint256"}],name:"DefaultRoyalty",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!0,internalType:"address",name:"royaltyRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"royaltyBps",type:"uint256"}],name:"RoyaltyForToken",type:"event"},{inputs:[],name:"getDefaultRoyaltyInfo",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"getRoyaltyInfoForToken",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"salePrice",type:"uint256"}],name:"royaltyInfo",outputs:[{internalType:"address",name:"receiver",type:"address"},{internalType:"uint256",name:"royaltyAmount",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_royaltyRecipient",type:"address"},{internalType:"uint256",name:"_royaltyBps",type:"uint256"}],name:"setDefaultRoyaltyInfo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"address",name:"recipient",type:"address"},{internalType:"uint256",name:"bps",type:"uint256"}],name:"setRoyaltyInfoForToken",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes4",name:"interfaceId",type:"bytes4"}],name:"supportsInterface",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"}]});var Ra=O((rin,YIt)=>{YIt.exports=[{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"prevOwner",type:"address"},{indexed:!0,internalType:"address",name:"newOwner",type:"address"}],name:"OwnerUpdated",type:"event"},{inputs:[],name:"owner",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_newOwner",type:"address"}],name:"setOwner",outputs:[],stateMutability:"nonpayable",type:"function"}]});var En=O((Vf,Ebe)=>{x();T();var Cbe=typeof self<"u"?self:Vf,cI=function(){function r(){this.fetch=!1,this.DOMException=Cbe.DOMException}return r.prototype=Cbe,new r}();(function(r){var e=function(t){var n={searchParams:"URLSearchParams"in r,iterable:"Symbol"in r&&"iterator"in Symbol,blob:"FileReader"in r&&"Blob"in r&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in r,arrayBuffer:"ArrayBuffer"in r};function a(g){return g&&DataView.prototype.isPrototypeOf(g)}if(n.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(g){return g&&i.indexOf(Object.prototype.toString.call(g))>-1};function c(g){if(typeof g!="string"&&(g=String(g)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(g))throw new TypeError("Invalid character in header field name");return g.toLowerCase()}function l(g){return typeof g!="string"&&(g=String(g)),g}function d(g){var o={next:function(){var p=g.shift();return{done:p===void 0,value:p}}};return n.iterable&&(o[Symbol.iterator]=function(){return o}),o}function f(g){this.map={},g instanceof f?g.forEach(function(o,p){this.append(p,o)},this):Array.isArray(g)?g.forEach(function(o){this.append(o[0],o[1])},this):g&&Object.getOwnPropertyNames(g).forEach(function(o){this.append(o,g[o])},this)}f.prototype.append=function(g,o){g=c(g),o=l(o);var p=this.map[g];this.map[g]=p?p+", "+o:o},f.prototype.delete=function(g){delete this.map[c(g)]},f.prototype.get=function(g){return g=c(g),this.has(g)?this.map[g]:null},f.prototype.has=function(g){return this.map.hasOwnProperty(c(g))},f.prototype.set=function(g,o){this.map[c(g)]=l(o)},f.prototype.forEach=function(g,o){for(var p in this.map)this.map.hasOwnProperty(p)&&g.call(o,this.map[p],p,this)},f.prototype.keys=function(){var g=[];return this.forEach(function(o,p){g.push(p)}),d(g)},f.prototype.values=function(){var g=[];return this.forEach(function(o){g.push(o)}),d(g)},f.prototype.entries=function(){var g=[];return this.forEach(function(o,p){g.push([p,o])}),d(g)},n.iterable&&(f.prototype[Symbol.iterator]=f.prototype.entries);function w(g){if(g.bodyUsed)return Promise.reject(new TypeError("Already read"));g.bodyUsed=!0}function E(g){return new Promise(function(o,p){g.onload=function(){o(g.result)},g.onerror=function(){p(g.error)}})}function k(g){var o=new FileReader,p=E(o);return o.readAsArrayBuffer(g),p}function A(g){var o=new FileReader,p=E(o);return o.readAsText(g),p}function L(g){for(var o=new Uint8Array(g),p=new Array(o.length),y=0;y-1?o:g}function G(g,o){o=o||{};var p=o.body;if(g instanceof G){if(g.bodyUsed)throw new TypeError("Already read");this.url=g.url,this.credentials=g.credentials,o.headers||(this.headers=new f(g.headers)),this.method=g.method,this.mode=g.mode,this.signal=g.signal,!p&&g._bodyInit!=null&&(p=g._bodyInit,g.bodyUsed=!0)}else this.url=String(g);if(this.credentials=o.credentials||this.credentials||"same-origin",(o.headers||!this.headers)&&(this.headers=new f(o.headers)),this.method=H(o.method||this.method||"GET"),this.mode=o.mode||this.mode||null,this.signal=o.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&p)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(p)}G.prototype.clone=function(){return new G(this,{body:this._bodyInit})};function te(g){var o=new FormData;return g.trim().split("&").forEach(function(p){if(p){var y=p.split("="),h=y.shift().replace(/\+/g," "),v=y.join("=").replace(/\+/g," ");o.append(decodeURIComponent(h),decodeURIComponent(v))}}),o}function K(g){var o=new f,p=g.replace(/\r?\n[\t ]+/g," ");return p.split(/\r?\n/).forEach(function(y){var h=y.split(":"),v=h.shift().trim();if(v){var _=h.join(":").trim();o.append(v,_)}}),o}U.call(G.prototype);function ae(g,o){o||(o={}),this.type="default",this.status=o.status===void 0?200:o.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in o?o.statusText:"OK",this.headers=new f(o.headers),this.url=o.url||"",this._initBody(g)}U.call(ae.prototype),ae.prototype.clone=function(){return new ae(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new f(this.headers),url:this.url})},ae.error=function(){var g=new ae(null,{status:0,statusText:""});return g.type="error",g};var J=[301,302,303,307,308];ae.redirect=function(g,o){if(J.indexOf(o)===-1)throw new RangeError("Invalid status code");return new ae(null,{status:o,headers:{location:g}})},t.DOMException=r.DOMException;try{new t.DOMException}catch{t.DOMException=function(o,p){this.message=o,this.name=p;var y=Error(o);this.stack=y.stack},t.DOMException.prototype=Object.create(Error.prototype),t.DOMException.prototype.constructor=t.DOMException}function V(g,o){return new Promise(function(p,y){var h=new G(g,o);if(h.signal&&h.signal.aborted)return y(new t.DOMException("Aborted","AbortError"));var v=new XMLHttpRequest;function _(){v.abort()}v.onload=function(){var C={status:v.status,statusText:v.statusText,headers:K(v.getAllResponseHeaders()||"")};C.url="responseURL"in v?v.responseURL:C.headers.get("X-Request-URL");var m="response"in v?v.response:v.responseText;p(new ae(m,C))},v.onerror=function(){y(new TypeError("Network request failed"))},v.ontimeout=function(){y(new TypeError("Network request failed"))},v.onabort=function(){y(new t.DOMException("Aborted","AbortError"))},v.open(h.method,h.url,!0),h.credentials==="include"?v.withCredentials=!0:h.credentials==="omit"&&(v.withCredentials=!1),"responseType"in v&&n.blob&&(v.responseType="blob"),h.headers.forEach(function(C,m){v.setRequestHeader(m,C)}),h.signal&&(h.signal.addEventListener("abort",_),v.onreadystatechange=function(){v.readyState===4&&h.signal.removeEventListener("abort",_)}),v.send(typeof h._bodyInit>"u"?null:h._bodyInit)})}return V.polyfill=!0,r.fetch||(r.fetch=V,r.Headers=f,r.Request=G,r.Response=ae),t.Headers=f,t.Request=G,t.Response=ae,t.fetch=V,Object.defineProperty(t,"__esModule",{value:!0}),t}({})})(cI);cI.fetch.ponyfill=!0;delete cI.fetch.polyfill;var ew=cI;Vf=ew.fetch;Vf.default=ew.fetch;Vf.fetch=ew.fetch;Vf.Headers=ew.Headers;Vf.Request=ew.Request;Vf.Response=ew.Response;Ebe.exports=Vf});var Dke=O(D=>{"use strict";x();T();Object.defineProperty(D,"__esModule",{value:!0});var $It={name:"Ethereum Mainnet",chain:"ETH",icon:{url:"ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/ethereum/512.png",height:512,width:512,format:"png",sizes:[512,256,128,64,32,16]},rpc:["https://ethereum.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.infura.io/v3/${INFURA_API_KEY}","wss://mainnet.infura.io/ws/v3/${INFURA_API_KEY}","https://api.mycryptoapi.com/eth","https://cloudflare-eth.com"],features:[{name:"EIP1559"},{name:"EIP155"}],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://ethereum.org",shortName:"eth",chainId:1,networkId:1,slip44:60,ens:{registry:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"},explorers:[{name:"etherscan",url:"https://etherscan.io",standard:"EIP3091"}],testnet:!1,slug:"ethereum"},e9t={name:"Expanse Network",chain:"EXP",rpc:["https://node.expanse.tech"],faucets:[],nativeCurrency:{name:"Expanse Network Ether",symbol:"EXP",decimals:18},infoURL:"https://expanse.tech",shortName:"exp",chainId:2,networkId:1,slip44:40,testnet:!1,slug:"expanse-network"},t9t={name:"Ropsten",title:"Ethereum Testnet Ropsten",chain:"ETH",rpc:["https://ropsten.infura.io/v3/${INFURA_API_KEY}","wss://ropsten.infura.io/ws/v3/${INFURA_API_KEY}"],faucets:["http://fauceth.komputing.org?chain=3&address=${ADDRESS}","https://faucet.ropsten.be?${ADDRESS}"],nativeCurrency:{name:"Ropsten Ether",symbol:"ETH",decimals:18},infoURL:"https://github.com/ethereum/ropsten",shortName:"rop",chainId:3,networkId:3,ens:{registry:"0x112234455c3a32fd11230c42e7bccd4a84e02010"},explorers:[{name:"etherscan",url:"https://ropsten.etherscan.io",standard:"EIP3091"}],testnet:!0,slug:"ropsten"},r9t={name:"Rinkeby",title:"Ethereum Testnet Rinkeby",chain:"ETH",rpc:["https://rinkeby.infura.io/v3/${INFURA_API_KEY}","wss://rinkeby.infura.io/ws/v3/${INFURA_API_KEY}"],faucets:["http://fauceth.komputing.org?chain=4&address=${ADDRESS}","https://faucet.rinkeby.io"],nativeCurrency:{name:"Rinkeby Ether",symbol:"ETH",decimals:18},infoURL:"https://www.rinkeby.io",shortName:"rin",chainId:4,networkId:4,ens:{registry:"0xe7410170f87102df0055eb195163a03b7f2bff4a"},explorers:[{name:"etherscan-rinkeby",url:"https://rinkeby.etherscan.io",standard:"EIP3091"}],testnet:!0,slug:"rinkeby"},n9t={name:"Goerli",title:"Ethereum Testnet Goerli",chain:"ETH",rpc:["https://goerli.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://goerli.infura.io/v3/${INFURA_API_KEY}","wss://goerli.infura.io/v3/${INFURA_API_KEY}","https://rpc.goerli.mudit.blog/"],faucets:["https://faucet.goerli.mudit.blog","https://goerli-faucet.slock.it?address=${ADDRESS}","http://fauceth.komputing.org?chain=5&address=${ADDRESS}"],nativeCurrency:{name:"Goerli Ether",symbol:"ETH",decimals:18},infoURL:"https://goerli.net/#about",shortName:"gor",chainId:5,networkId:5,ens:{registry:"0x112234455c3a32fd11230c42e7bccd4a84e02010"},explorers:[{name:"etherscan-goerli",url:"https://goerli.etherscan.io",standard:"EIP3091"}],icon:{url:"ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/ethereum/512.png",height:512,width:512,format:"png",sizes:[512,256,128,64,32,16]},testnet:!0,slug:"goerli"},a9t={name:"Ethereum Classic Testnet Kotti",chain:"ETC",rpc:["https://www.ethercluster.com/kotti"],faucets:[],nativeCurrency:{name:"Kotti Ether",symbol:"KOT",decimals:18},infoURL:"https://explorer.jade.builders/?network=kotti",shortName:"kot",chainId:6,networkId:6,testnet:!0,slug:"ethereum-classic-testnet-kotti"},i9t={name:"ThaiChain",chain:"TCH",rpc:["https://rpc.dome.cloud","https://rpc.thaichain.org"],faucets:[],features:[{name:"EIP155"},{name:"EIP1559"}],nativeCurrency:{name:"ThaiChain Ether",symbol:"TCH",decimals:18},infoURL:"https://thaichain.io",shortName:"tch",chainId:7,networkId:7,explorers:[{name:"Thaichain Explorer",url:"https://exp.thaichain.org",standard:"EIP3091"}],testnet:!1,slug:"thaichain"},s9t={name:"Ubiq",chain:"UBQ",rpc:["https://rpc.octano.dev","https://pyrus2.ubiqscan.io"],faucets:[],nativeCurrency:{name:"Ubiq Ether",symbol:"UBQ",decimals:18},infoURL:"https://ubiqsmart.com",shortName:"ubq",chainId:8,networkId:8,slip44:108,explorers:[{name:"ubiqscan",url:"https://ubiqscan.io",standard:"EIP3091"}],testnet:!1,slug:"ubiq"},o9t={name:"Ubiq Network Testnet",chain:"UBQ",rpc:[],faucets:[],nativeCurrency:{name:"Ubiq Testnet Ether",symbol:"TUBQ",decimals:18},infoURL:"https://ethersocial.org",shortName:"tubq",chainId:9,networkId:2,testnet:!0,slug:"ubiq-network-testnet"},c9t={name:"Optimism",chain:"ETH",rpc:["https://optimism.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.optimism.io/"],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://optimism.io",shortName:"oeth",chainId:10,networkId:10,explorers:[{name:"etherscan",url:"https://optimistic.etherscan.io",standard:"EIP3091"}],icon:{url:"ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/optimism/512.png",height:512,width:512,format:"png",sizes:[512,256,128,64,32,16]},testnet:!1,slug:"optimism"},u9t={name:"Metadium Mainnet",chain:"META",rpc:["https://api.metadium.com/prod"],faucets:[],nativeCurrency:{name:"Metadium Mainnet Ether",symbol:"META",decimals:18},infoURL:"https://metadium.com",shortName:"meta",chainId:11,networkId:11,slip44:916,testnet:!1,slug:"metadium"},l9t={name:"Metadium Testnet",chain:"META",rpc:["https://api.metadium.com/dev"],faucets:[],nativeCurrency:{name:"Metadium Testnet Ether",symbol:"KAL",decimals:18},infoURL:"https://metadium.com",shortName:"kal",chainId:12,networkId:12,testnet:!0,slug:"metadium-testnet"},d9t={name:"Diode Testnet Staging",chain:"DIODE",rpc:["https://staging.diode.io:8443/","wss://staging.diode.io:8443/ws"],faucets:[],nativeCurrency:{name:"Staging Diodes",symbol:"sDIODE",decimals:18},infoURL:"https://diode.io/staging",shortName:"dstg",chainId:13,networkId:13,testnet:!0,slug:"diode-testnet-staging"},p9t={name:"Flare Mainnet",chain:"FLR",icon:{url:"ipfs://QmevAevHxRkK2zVct2Eu6Y7s38YC4SmiAiw9X7473pVtmL",width:382,height:382,format:"png"},rpc:["https://flare-api.flare.network/ext/C/rpc"],faucets:[],nativeCurrency:{name:"Flare",symbol:"FLR",decimals:18},infoURL:"https://flare.xyz",shortName:"flr",chainId:14,networkId:14,explorers:[{name:"blockscout",url:"https://flare-explorer.flare.network",standard:"EIP3091"}],testnet:!1,slug:"flare"},h9t={name:"Diode Prenet",chain:"DIODE",rpc:["https://prenet.diode.io:8443/","wss://prenet.diode.io:8443/ws"],faucets:[],nativeCurrency:{name:"Diodes",symbol:"DIODE",decimals:18},infoURL:"https://diode.io/prenet",shortName:"diode",chainId:15,networkId:15,testnet:!1,slug:"diode-prenet"},f9t={name:"Flare Testnet Coston",chain:"FLR",icon:{url:"ipfs://QmW7Ljv2eLQ1poRrhJBaVWJBF1TyfZ8QYxDeELRo6sssrj",width:382,height:382,format:"png"},rpc:["https://coston-api.flare.network/ext/bc/C/rpc"],faucets:["https://faucet.towolabs.com","https://fauceth.komputing.org?chain=16&address=${ADDRESS}"],nativeCurrency:{name:"Coston Flare",symbol:"CFLR",decimals:18},infoURL:"https://flare.xyz",shortName:"cflr",chainId:16,networkId:16,explorers:[{name:"blockscout",url:"https://coston-explorer.flare.network",standard:"EIP3091"}],testnet:!0,slug:"flare-testnet-coston"},m9t={name:"ThaiChain 2.0 ThaiFi",chain:"TCH",rpc:["https://rpc.thaifi.com"],faucets:[],nativeCurrency:{name:"Thaifi Ether",symbol:"TFI",decimals:18},infoURL:"https://exp.thaifi.com",shortName:"tfi",chainId:17,networkId:17,testnet:!1,slug:"thaichain-2-0-thaifi"},y9t={name:"ThunderCore Testnet",chain:"TST",rpc:["https://testnet-rpc.thundercore.com"],faucets:["https://faucet-testnet.thundercore.com"],nativeCurrency:{name:"ThunderCore Testnet Token",symbol:"TST",decimals:18},infoURL:"https://thundercore.com",shortName:"TST",chainId:18,networkId:18,explorers:[{name:"thundercore-blockscout-testnet",url:"https://explorer-testnet.thundercore.com",standard:"EIP3091"}],testnet:!0,slug:"thundercore-testnet"},g9t={name:"Songbird Canary-Network",chain:"SGB",icon:{url:"ipfs://QmXyvnrZY8FUxSULfnKKA99sAEkjAHtvhRx5WeHixgaEdu",width:382,height:382,format:"png"},rpc:["https://songbird-api.flare.network/ext/C/rpc","https://songbird.towolabs.com/ext/C/rpc","https://sgb.ftso.com.au/ext/bc/C/rpc","https://sgb.lightft.so/rpc","https://sgb-rpc.ftso.eu"],faucets:[],nativeCurrency:{name:"Songbird",symbol:"SGB",decimals:18},infoURL:"https://flare.xyz",shortName:"sgb",chainId:19,networkId:19,explorers:[{name:"blockscout",url:"https://songbird-explorer.flare.network",standard:"EIP3091"}],testnet:!1,slug:"songbird-canary-network"},v9t={name:"Elastos Smart Chain",chain:"ETH",rpc:["https://api.elastos.io/eth"],faucets:["https://faucet.elastos.org/"],nativeCurrency:{name:"Elastos",symbol:"ELA",decimals:18},infoURL:"https://www.elastos.org/",shortName:"esc",chainId:20,networkId:20,explorers:[{name:"elastos esc explorer",url:"https://esc.elastos.io",standard:"EIP3091"}],testnet:!1,slug:"elastos-smart-chain"},b9t={name:"Elastos Smart Chain Testnet",chain:"ETH",rpc:["https://api-testnet.elastos.io/eth"],faucets:["https://esc-faucet.elastos.io/"],nativeCurrency:{name:"Elastos",symbol:"tELA",decimals:18},infoURL:"https://www.elastos.org/",shortName:"esct",chainId:21,networkId:21,explorers:[{name:"elastos esc explorer",url:"https://esc-testnet.elastos.io",standard:"EIP3091"}],testnet:!0,slug:"elastos-smart-chain-testnet"},w9t={name:"ELA-DID-Sidechain Mainnet",chain:"ETH",rpc:[],faucets:[],nativeCurrency:{name:"Elastos",symbol:"ELA",decimals:18},infoURL:"https://www.elastos.org/",shortName:"eladid",chainId:22,networkId:22,testnet:!1,slug:"ela-did-sidechain"},x9t={name:"ELA-DID-Sidechain Testnet",chain:"ETH",rpc:[],faucets:[],nativeCurrency:{name:"Elastos",symbol:"tELA",decimals:18},infoURL:"https://elaeth.io/",shortName:"eladidt",chainId:23,networkId:23,testnet:!0,slug:"ela-did-sidechain-testnet"},T9t={name:"KardiaChain Mainnet",chain:"KAI",icon:{url:"ipfs://QmXoHaZXJevc59GuzEgBhwRSH6kio1agMRvL8bD93pARRV",format:"png",width:297,height:297},rpc:["https://rpc.kardiachain.io"],faucets:[],nativeCurrency:{name:"KardiaChain",symbol:"KAI",decimals:18},infoURL:"https://kardiachain.io",shortName:"kardiachain",chainId:24,networkId:0,redFlags:["reusedChainId"],testnet:!1,slug:"kardiachain"},_9t={name:"Cronos Mainnet Beta",chain:"CRO",rpc:["https://evm.cronos.org"],features:[{name:"EIP1559"}],faucets:[],nativeCurrency:{name:"Cronos",symbol:"CRO",decimals:18},infoURL:"https://cronos.org/",shortName:"cro",chainId:25,networkId:25,explorers:[{name:"Cronos Explorer",url:"https://cronoscan.com",standard:"none"}],testnet:!1,slug:"cronos-beta"},C9t={name:"Genesis L1 testnet",chain:"genesis",rpc:["https://testrpc.genesisl1.org"],faucets:[],nativeCurrency:{name:"L1 testcoin",symbol:"L1test",decimals:18},infoURL:"https://www.genesisl1.com",shortName:"L1test",chainId:26,networkId:26,explorers:[{name:"Genesis L1 testnet explorer",url:"https://testnet.genesisl1.org",standard:"none"}],testnet:!0,slug:"genesis-l1-testnet"},E9t={name:"ShibaChain",chain:"SHIB",rpc:["https://rpc.shibachain.net"],faucets:[],nativeCurrency:{name:"SHIBA INU COIN",symbol:"SHIB",decimals:18},infoURL:"https://www.shibachain.net",shortName:"shib",chainId:27,networkId:27,explorers:[{name:"Shiba Explorer",url:"https://exp.shibachain.net",standard:"none"}],testnet:!1,slug:"shibachain"},k9t={name:"Boba Network Rinkeby Testnet",chain:"ETH",rpc:["https://rinkeby.boba.network/"],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://boba.network",shortName:"BobaRinkeby",chainId:28,networkId:28,explorers:[{name:"Blockscout",url:"https://blockexplorer.rinkeby.boba.network",standard:"none"}],parent:{type:"L2",chain:"eip155-4",bridges:[{url:"https://gateway.rinkeby.boba.network"}]},testnet:!0,slug:"boba-network-rinkeby-testnet"},S9t={name:"Genesis L1",chain:"genesis",rpc:["https://rpc.genesisl1.org"],faucets:[],nativeCurrency:{name:"L1 coin",symbol:"L1",decimals:18},infoURL:"https://www.genesisl1.com",shortName:"L1",chainId:29,networkId:29,explorers:[{name:"Genesis L1 blockchain explorer",url:"https://explorer.genesisl1.org",standard:"none"}],testnet:!1,slug:"genesis-l1"},A9t={name:"RSK Mainnet",chain:"RSK",rpc:["https://public-node.rsk.co","https://mycrypto.rsk.co"],faucets:["https://faucet.rsk.co/"],nativeCurrency:{name:"Smart Bitcoin",symbol:"RBTC",decimals:18},infoURL:"https://rsk.co",shortName:"rsk",chainId:30,networkId:30,slip44:137,explorers:[{name:"RSK Explorer",url:"https://explorer.rsk.co",standard:"EIP3091"}],testnet:!1,slug:"rsk"},M9t={name:"RSK Testnet",chain:"RSK",rpc:["https://public-node.testnet.rsk.co","https://mycrypto.testnet.rsk.co"],faucets:["https://faucet.rsk.co/"],nativeCurrency:{name:"Testnet Smart Bitcoin",symbol:"tRBTC",decimals:18},infoURL:"https://rsk.co",shortName:"trsk",chainId:31,networkId:31,explorers:[{name:"RSK Testnet Explorer",url:"https://explorer.testnet.rsk.co",standard:"EIP3091"}],testnet:!0,slug:"rsk-testnet"},I9t={name:"GoodData Testnet",chain:"GooD",rpc:["https://test2.goodata.io"],faucets:[],nativeCurrency:{name:"GoodData Testnet Ether",symbol:"GooD",decimals:18},infoURL:"https://www.goodata.org",shortName:"GooDT",chainId:32,networkId:32,testnet:!0,slug:"gooddata-testnet"},P9t={name:"GoodData Mainnet",chain:"GooD",rpc:["https://rpc.goodata.io"],faucets:[],nativeCurrency:{name:"GoodData Mainnet Ether",symbol:"GooD",decimals:18},infoURL:"https://www.goodata.org",shortName:"GooD",chainId:33,networkId:33,testnet:!1,slug:"gooddata"},R9t={name:"Dithereum Testnet",chain:"DTH",icon:{url:"ipfs://QmSHN5GtRGpMMpszSn1hF47ZSLRLqrLxWsQ48YYdJPyjLf",width:500,height:500,format:"png"},rpc:["https://node-testnet.dithereum.io"],faucets:["https://faucet.dithereum.org"],nativeCurrency:{name:"Dither",symbol:"DTH",decimals:18},infoURL:"https://dithereum.org",shortName:"dth",chainId:34,networkId:34,testnet:!0,slug:"dithereum-testnet"},N9t={name:"TBWG Chain",chain:"TBWG",rpc:["https://rpc.tbwg.io"],faucets:[],nativeCurrency:{name:"TBWG Ether",symbol:"TBG",decimals:18},infoURL:"https://tbwg.io",shortName:"tbwg",chainId:35,networkId:35,testnet:!1,slug:"tbwg-chain"},O9t={name:"Dxchain Mainnet",chain:"Dxchain",icon:{url:"ipfs://QmYBup5bWoBfkaHntbcgW8Ji7ncad7f53deJ4Q55z4PNQs",width:128,height:128,format:"png"},rpc:["https://mainnet.dxchain.com"],faucets:[],nativeCurrency:{name:"Dxchain",symbol:"DX",decimals:18},infoURL:"https://www.dxchain.com/",shortName:"dx",chainId:36,networkId:36,explorers:[{name:"dxscan",url:"https://dxscan.io",standard:"EIP3091"}],testnet:!1,slug:"dxchain"},L9t={name:"SeedCoin-Network",chain:"SeedCoin-Network",rpc:["https://node.seedcoin.network"],faucets:[],nativeCurrency:{name:"SeedCoin",symbol:"SEED",decimals:18},infoURL:"https://www.seedcoin.network/",shortName:"SEED",icon:{url:"ipfs://QmSchLvCCZjBzcv5n22v1oFDAc2yHJ42NERyjZeL9hBgrh",width:64,height:64,format:"png"},chainId:37,networkId:37,testnet:!1,slug:"seedcoin-network"},B9t={name:"Valorbit",chain:"VAL",rpc:["https://rpc.valorbit.com/v2"],faucets:[],nativeCurrency:{name:"Valorbit",symbol:"VAL",decimals:18},infoURL:"https://valorbit.com",shortName:"val",chainId:38,networkId:38,slip44:538,testnet:!1,slug:"valorbit"},q9t={name:"Unicorn Ultra Testnet",chain:"u2u",rpc:["https://rpc-testnet.uniultra.xyz"],faucets:["https://faucet.uniultra.xyz"],nativeCurrency:{name:"Unicorn Ultra",symbol:"U2U",decimals:18},infoURL:"https://uniultra.xyz",shortName:"u2u",chainId:39,networkId:39,icon:{url:"ipfs://QmcW64RgqQVHnNbVFyfaMNKt7dJvFqEbfEHZmeyeK8dpEa",width:512,height:512,format:"png"},explorers:[{icon:"u2u",name:"U2U Explorer",url:"https://testnet.uniultra.xyz",standard:"EIP3091"}],testnet:!0,slug:"unicorn-ultra-testnet"},D9t={name:"Telos EVM Mainnet",chain:"TLOS",rpc:["https://mainnet.telos.net/evm"],faucets:[],nativeCurrency:{name:"Telos",symbol:"TLOS",decimals:18},infoURL:"https://telos.net",shortName:"TelosEVM",chainId:40,networkId:40,explorers:[{name:"teloscan",url:"https://teloscan.io",standard:"EIP3091"}],testnet:!1,slug:"telos-evm"},F9t={name:"Telos EVM Testnet",chain:"TLOS",rpc:["https://testnet.telos.net/evm"],faucets:["https://app.telos.net/testnet/developers"],nativeCurrency:{name:"Telos",symbol:"TLOS",decimals:18},infoURL:"https://telos.net",shortName:"TelosEVMTestnet",chainId:41,networkId:41,testnet:!0,slug:"telos-evm-testnet"},U9t={name:"Kovan",title:"Ethereum Testnet Kovan",chain:"ETH",rpc:["https://kovan.poa.network","http://kovan.poa.network:8545","https://kovan.infura.io/v3/${INFURA_API_KEY}","wss://kovan.infura.io/ws/v3/${INFURA_API_KEY}","ws://kovan.poa.network:8546"],faucets:["http://fauceth.komputing.org?chain=42&address=${ADDRESS}","https://faucet.kovan.network","https://gitter.im/kovan-testnet/faucet"],nativeCurrency:{name:"Kovan Ether",symbol:"ETH",decimals:18},explorers:[{name:"etherscan",url:"https://kovan.etherscan.io",standard:"EIP3091"}],infoURL:"https://kovan-testnet.github.io/website",shortName:"kov",chainId:42,networkId:42,testnet:!0,slug:"kovan"},W9t={name:"Darwinia Pangolin Testnet",chain:"pangolin",rpc:["https://pangolin-rpc.darwinia.network"],faucets:["https://docs.crab.network/dvm/wallets/dvm-metamask#apply-for-the-test-token"],nativeCurrency:{name:"Pangolin Network Native Token",symbol:"PRING",decimals:18},infoURL:"https://darwinia.network/",shortName:"pangolin",chainId:43,networkId:43,explorers:[{name:"subscan",url:"https://pangolin.subscan.io",standard:"none"}],testnet:!0,slug:"darwinia-pangolin-testnet"},j9t={name:"Darwinia Crab Network",chain:"crab",rpc:["https://crab-rpc.darwinia.network"],faucets:[],nativeCurrency:{name:"Crab Network Native Token",symbol:"CRAB",decimals:18},infoURL:"https://crab.network/",shortName:"crab",chainId:44,networkId:44,explorers:[{name:"subscan",url:"https://crab.subscan.io",standard:"none"}],testnet:!1,slug:"darwinia-crab-network"},z9t={name:"Darwinia Pangoro Testnet",chain:"pangoro",rpc:["https://pangoro-rpc.darwinia.network"],faucets:[],nativeCurrency:{name:"Pangoro Network Native Token",symbol:"ORING",decimals:18},infoURL:"https://darwinia.network/",shortName:"pangoro",chainId:45,networkId:45,explorers:[{name:"subscan",url:"https://pangoro.subscan.io",standard:"none"}],testnet:!0,slug:"darwinia-pangoro-testnet"},H9t={name:"Darwinia Network",chain:"darwinia",rpc:["https://rpc.darwinia.network"],faucets:[],nativeCurrency:{name:"Darwinia Network Native Token",symbol:"RING",decimals:18},infoURL:"https://darwinia.network/",shortName:"darwinia",chainId:46,networkId:46,explorers:[{name:"subscan",url:"https://darwinia.subscan.io",standard:"none"}],testnet:!1,slug:"darwinia-network"},V9t={name:"Ennothem Mainnet Proterozoic",chain:"ETMP",rpc:["https://rpc.etm.network"],faucets:[],nativeCurrency:{name:"Ennothem",symbol:"ETMP",decimals:18},infoURL:"https://etm.network",shortName:"etmp",chainId:48,networkId:48,icon:{url:"ipfs://QmT7DTqT1V2y42pRpt3sj9ifijfmbtkHN7D2vTfAUAS622",width:512,height:512,format:"png"},explorers:[{name:"etmpscan",url:"https://etmscan.network",icon:"etmp",standard:"EIP3091"}],testnet:!1,slug:"ennothem-proterozoic"},G9t={name:"Ennothem Testnet Pioneer",chain:"ETMP",rpc:["https://rpc.pioneer.etm.network"],faucets:[],nativeCurrency:{name:"Ennothem",symbol:"ETMP",decimals:18},infoURL:"https://etm.network",shortName:"etmpTest",chainId:49,networkId:49,icon:{url:"ipfs://QmT7DTqT1V2y42pRpt3sj9ifijfmbtkHN7D2vTfAUAS622",width:512,height:512,format:"png"},explorers:[{name:"etmp",url:"https://pioneer.etmscan.network",icon:"etmpscan",standard:"EIP3091"}],testnet:!0,slug:"ennothem-testnet-pioneer"},Z9t={name:"XinFin XDC Network",chain:"XDC",rpc:["https://erpc.xinfin.network","https://rpc.xinfin.network","https://rpc1.xinfin.network"],faucets:[],nativeCurrency:{name:"XinFin",symbol:"XDC",decimals:18},infoURL:"https://xinfin.org",shortName:"xdc",chainId:50,networkId:50,icon:{url:"ipfs://QmeRq7pabiJE2n1xU3Y5Mb4TZSX9kQ74x7a3P2Z4PqcMRX",width:1450,height:1450,format:"png"},explorers:[{name:"xdcscan",url:"https://xdcscan.io",icon:"blocksscan",standard:"EIP3091"},{name:"blocksscan",url:"https://xdc.blocksscan.io",icon:"blocksscan",standard:"EIP3091"}],testnet:!1,slug:"xinfin-xdc-network"},J9t={name:"XDC Apothem Network",chain:"XDC",rpc:["https://rpc.apothem.network","https://erpc.apothem.network"],faucets:["https://faucet.apothem.network"],nativeCurrency:{name:"XinFin",symbol:"TXDC",decimals:18},infoURL:"https://xinfin.org",shortName:"txdc",chainId:51,networkId:51,icon:{url:"ipfs://QmeRq7pabiJE2n1xU3Y5Mb4TZSX9kQ74x7a3P2Z4PqcMRX",width:1450,height:1450,format:"png"},explorers:[{name:"xdcscan",url:"https://apothem.xinfinscan.com",icon:"blocksscan",standard:"EIP3091"},{name:"blocksscan",url:"https://apothem.blocksscan.io",icon:"blocksscan",standard:"EIP3091"}],testnet:!1,slug:"xdc-apothem-network"},K9t={name:"CoinEx Smart Chain Mainnet",chain:"CSC",rpc:["https://rpc.coinex.net"],faucets:[],nativeCurrency:{name:"CoinEx Chain Native Token",symbol:"cet",decimals:18},infoURL:"https://www.coinex.org/",shortName:"cet",chainId:52,networkId:52,explorers:[{name:"coinexscan",url:"https://www.coinex.net",standard:"none"}],testnet:!1,slug:"coinex-smart-chain"},Q9t={name:"CoinEx Smart Chain Testnet",chain:"CSC",rpc:["https://testnet-rpc.coinex.net/"],faucets:[],nativeCurrency:{name:"CoinEx Chain Test Native Token",symbol:"cett",decimals:18},infoURL:"https://www.coinex.org/",shortName:"tcet",chainId:53,networkId:53,explorers:[{name:"coinexscan",url:"https://testnet.coinex.net",standard:"none"}],testnet:!0,slug:"coinex-smart-chain-testnet"},X9t={name:"Openpiece Mainnet",chain:"OPENPIECE",icon:{url:"ipfs://QmVTahJkdSH3HPYsJMK2GmqfWZjLyxE7cXy1aHEnHU3vp2",width:250,height:250,format:"png"},rpc:["https://mainnet.openpiece.io"],faucets:[],nativeCurrency:{name:"Belly",symbol:"BELLY",decimals:18},infoURL:"https://cryptopiece.online",shortName:"OP",chainId:54,networkId:54,explorers:[{name:"Belly Scan",url:"https://bellyscan.com",standard:"none"}],testnet:!1,slug:"openpiece"},Y9t={name:"Zyx Mainnet",chain:"ZYX",rpc:["https://rpc-1.zyx.network/","https://rpc-2.zyx.network/","https://rpc-3.zyx.network/","https://rpc-4.zyx.network/","https://rpc-5.zyx.network/","https://rpc-6.zyx.network/"],faucets:[],nativeCurrency:{name:"Zyx",symbol:"ZYX",decimals:18},infoURL:"https://zyx.network/",shortName:"ZYX",chainId:55,networkId:55,explorers:[{name:"zyxscan",url:"https://zyxscan.com",standard:"none"}],testnet:!1,slug:"zyx"},$9t={name:"Binance Smart Chain Mainnet",chain:"BSC",rpc:["https://binance.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://bsc-dataseed1.binance.org","https://bsc-dataseed2.binance.org","https://bsc-dataseed3.binance.org","https://bsc-dataseed4.binance.org","https://bsc-dataseed1.defibit.io","https://bsc-dataseed2.defibit.io","https://bsc-dataseed3.defibit.io","https://bsc-dataseed4.defibit.io","https://bsc-dataseed1.ninicoin.io","https://bsc-dataseed2.ninicoin.io","https://bsc-dataseed3.ninicoin.io","https://bsc-dataseed4.ninicoin.io","wss://bsc-ws-node.nariox.org"],faucets:["https://free-online-app.com/faucet-for-eth-evm-chains/"],nativeCurrency:{name:"Binance Chain Native Token",symbol:"BNB",decimals:18},infoURL:"https://www.binance.org",shortName:"bnb",chainId:56,networkId:56,slip44:714,explorers:[{name:"bscscan",url:"https://bscscan.com",standard:"EIP3091"}],icon:{url:"ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/binance-coin/512.png",height:512,width:512,format:"png",sizes:[512,256,128,64,32,16]},testnet:!1,slug:"binance-smart-chain"},ePt={name:"Syscoin Mainnet",chain:"SYS",rpc:["https://rpc.syscoin.org","wss://rpc.syscoin.org/wss"],faucets:["https://faucet.syscoin.org"],nativeCurrency:{name:"Syscoin",symbol:"SYS",decimals:18},infoURL:"https://www.syscoin.org",shortName:"sys",chainId:57,networkId:57,explorers:[{name:"Syscoin Block Explorer",url:"https://explorer.syscoin.org",standard:"EIP3091"}],testnet:!1,slug:"syscoin"},tPt={name:"Ontology Mainnet",chain:"Ontology",icon:{url:"ipfs://bafkreigmvn6spvbiirtutowpq6jmetevbxoof5plzixjoerbeswy4htfb4",width:400,height:400,format:"png"},rpc:["http://dappnode1.ont.io:20339","http://dappnode2.ont.io:20339","http://dappnode3.ont.io:20339","http://dappnode4.ont.io:20339","https://dappnode1.ont.io:10339","https://dappnode2.ont.io:10339","https://dappnode3.ont.io:10339","https://dappnode4.ont.io:10339"],faucets:[],nativeCurrency:{name:"ONG",symbol:"ONG",decimals:18},infoURL:"https://ont.io/",shortName:"OntologyMainnet",chainId:58,networkId:58,explorers:[{name:"explorer",url:"https://explorer.ont.io",standard:"EIP3091"}],testnet:!1,slug:"ontology"},rPt={name:"EOS Mainnet",chain:"EOS",rpc:["https://api.eosargentina.io"],faucets:[],nativeCurrency:{name:"EOS",symbol:"EOS",decimals:18},infoURL:"https://eoscommunity.org/",shortName:"EOSMainnet",chainId:59,networkId:59,explorers:[{name:"bloks",url:"https://bloks.eosargentina.io",standard:"EIP3091"}],testnet:!1,slug:"eos"},nPt={name:"GoChain",chain:"GO",rpc:["https://rpc.gochain.io"],faucets:["https://free-online-app.com/faucet-for-eth-evm-chains/"],nativeCurrency:{name:"GoChain Ether",symbol:"GO",decimals:18},infoURL:"https://gochain.io",shortName:"go",chainId:60,networkId:60,slip44:6060,explorers:[{name:"GoChain Explorer",url:"https://explorer.gochain.io",standard:"EIP3091"}],testnet:!1,slug:"gochain"},aPt={name:"Ethereum Classic Mainnet",chain:"ETC",rpc:["https://www.ethercluster.com/etc"],faucets:["https://free-online-app.com/faucet-for-eth-evm-chains/?"],nativeCurrency:{name:"Ethereum Classic Ether",symbol:"ETC",decimals:18},infoURL:"https://ethereumclassic.org",shortName:"etc",chainId:61,networkId:1,slip44:61,explorers:[{name:"blockscout",url:"https://blockscout.com/etc/mainnet",standard:"none"}],testnet:!1,slug:"ethereum-classic"},iPt={name:"Ethereum Classic Testnet Morden",chain:"ETC",rpc:[],faucets:[],nativeCurrency:{name:"Ethereum Classic Testnet Ether",symbol:"TETC",decimals:18},infoURL:"https://ethereumclassic.org",shortName:"tetc",chainId:62,networkId:2,testnet:!0,slug:"ethereum-classic-testnet-morden"},sPt={name:"Ethereum Classic Testnet Mordor",chain:"ETC",rpc:["https://www.ethercluster.com/mordor"],faucets:[],nativeCurrency:{name:"Mordor Classic Testnet Ether",symbol:"METC",decimals:18},infoURL:"https://github.com/eth-classic/mordor/",shortName:"metc",chainId:63,networkId:7,testnet:!0,slug:"ethereum-classic-testnet-mordor"},oPt={name:"Ellaism",chain:"ELLA",rpc:["https://jsonrpc.ellaism.org"],faucets:[],nativeCurrency:{name:"Ellaism Ether",symbol:"ELLA",decimals:18},infoURL:"https://ellaism.org",shortName:"ellaism",chainId:64,networkId:64,slip44:163,testnet:!1,slug:"ellaism"},cPt={name:"OKExChain Testnet",chain:"okexchain",rpc:["https://exchaintestrpc.okex.org"],faucets:["https://www.okex.com/drawdex"],nativeCurrency:{name:"OKExChain Global Utility Token in testnet",symbol:"OKT",decimals:18},infoURL:"https://www.okex.com/okexchain",shortName:"tokt",chainId:65,networkId:65,explorers:[{name:"OKLink",url:"https://www.oklink.com/okexchain-test",standard:"EIP3091"}],testnet:!0,slug:"okexchain-testnet"},uPt={name:"OKXChain Mainnet",chain:"okxchain",rpc:["https://exchainrpc.okex.org","https://okc-mainnet.gateway.pokt.network/v1/lb/6275309bea1b320039c893ff"],faucets:["https://free-online-app.com/faucet-for-eth-evm-chains/?"],nativeCurrency:{name:"OKXChain Global Utility Token",symbol:"OKT",decimals:18},infoURL:"https://www.okex.com/okc",shortName:"okt",chainId:66,networkId:66,explorers:[{name:"OKLink",url:"https://www.oklink.com/en/okc",standard:"EIP3091"}],testnet:!1,slug:"okxchain"},lPt={name:"DBChain Testnet",chain:"DBM",rpc:["http://test-rpc.dbmbp.com"],faucets:[],nativeCurrency:{name:"DBChain Testnet",symbol:"DBM",decimals:18},infoURL:"http://test.dbmbp.com",shortName:"dbm",chainId:67,networkId:67,testnet:!0,slug:"dbchain-testnet"},dPt={name:"SoterOne Mainnet",chain:"SOTER",rpc:["https://rpc.soter.one"],faucets:[],nativeCurrency:{name:"SoterOne Mainnet Ether",symbol:"SOTER",decimals:18},infoURL:"https://www.soterone.com",shortName:"SO1",chainId:68,networkId:68,testnet:!1,slug:"soterone"},pPt={name:"Optimism Kovan",title:"Optimism Testnet Kovan",chain:"ETH",rpc:["https://kovan.optimism.io/"],faucets:["http://fauceth.komputing.org?chain=69&address=${ADDRESS}"],nativeCurrency:{name:"Kovan Ether",symbol:"ETH",decimals:18},explorers:[{name:"etherscan",url:"https://kovan-optimistic.etherscan.io",standard:"EIP3091"}],infoURL:"https://optimism.io",shortName:"okov",chainId:69,networkId:69,testnet:!0,slug:"optimism-kovan"},hPt={name:"Hoo Smart Chain",chain:"HSC",rpc:["https://http-mainnet.hoosmartchain.com","https://http-mainnet2.hoosmartchain.com","wss://ws-mainnet.hoosmartchain.com","wss://ws-mainnet2.hoosmartchain.com"],faucets:[],nativeCurrency:{name:"Hoo Smart Chain Native Token",symbol:"HOO",decimals:18},infoURL:"https://www.hoosmartchain.com",shortName:"hsc",chainId:70,networkId:70,slip44:1170,explorers:[{name:"hooscan",url:"https://www.hooscan.com",standard:"EIP3091"}],testnet:!1,slug:"hoo-smart-chain"},fPt={name:"Conflux eSpace (Testnet)",chain:"Conflux",rpc:["https://evmtestnet.confluxrpc.com"],faucets:["https://faucet.confluxnetwork.org"],nativeCurrency:{name:"CFX",symbol:"CFX",decimals:18},infoURL:"https://confluxnetwork.org",shortName:"cfxtest",chainId:71,networkId:71,icon:{url:"ipfs://bafkreifj7n24u2dslfijfihwqvpdeigt5aj3k3sxv6s35lv75sxsfr3ojy",width:460,height:576,format:"png"},explorers:[{name:"Conflux Scan",url:"https://evmtestnet.confluxscan.net",standard:"none"}],testnet:!0,slug:"conflux-espace-testnet"},mPt={name:"DxChain Testnet",chain:"DxChain",rpc:["https://testnet-http.dxchain.com"],faucets:["https://faucet.dxscan.io"],nativeCurrency:{name:"DxChain Testnet",symbol:"DX",decimals:18},infoURL:"https://testnet.dxscan.io/",shortName:"dxc",chainId:72,networkId:72,testnet:!0,slug:"dxchain-testnet"},yPt={name:"FNCY",chain:"FNCY",rpc:["https://fncy-seed1.fncy.world"],faucets:["https://faucet-testnet.fncy.world"],nativeCurrency:{name:"FNCY",symbol:"FNCY",decimals:18},infoURL:"https://fncyscan.fncy.world",shortName:"FNCY",chainId:73,networkId:73,icon:{url:"ipfs://QmfXCh6UnaEHn3Evz7RFJ3p2ggJBRm9hunDHegeoquGuhD",width:256,height:256,format:"png"},explorers:[{name:"fncy scan",url:"https://fncyscan.fncy.world",icon:"fncy",standard:"EIP3091"}],testnet:!0,slug:"fncy"},gPt={name:"IDChain Mainnet",chain:"IDChain",rpc:["https://idchain.one/rpc/","wss://idchain.one/ws/"],faucets:[],nativeCurrency:{name:"EIDI",symbol:"EIDI",decimals:18},infoURL:"https://idchain.one/begin/",shortName:"idchain",chainId:74,networkId:74,icon:{url:"ipfs://QmZVwsY6HPXScKqZCA9SWNrr4jrQAHkPhVhMWi6Fj1DsrJ",width:162,height:129,format:"png"},explorers:[{name:"explorer",url:"https://explorer.idchain.one",icon:"etherscan",standard:"EIP3091"}],testnet:!1,slug:"idchain"},vPt={name:"Decimal Smart Chain Mainnet",chain:"DSC",rpc:["https://node.decimalchain.com/web3"],faucets:[],nativeCurrency:{name:"Decimal",symbol:"DEL",decimals:18},features:[{name:"EIP155"},{name:"EIP1559"}],infoURL:"https://decimalchain.com",shortName:"DSC",chainId:75,networkId:75,icon:{url:"ipfs://QmSgzwKnJJjys3Uq2aVVdwJ3NffLj3CXMVCph9uByTBegc",width:256,height:256,format:"png"},explorers:[{name:"DSC Explorer Mainnet",url:"https://explorer.decimalchain.com",icon:"dsc",standard:"EIP3091"}],testnet:!1,slug:"decimal-smart-chain"},bPt={name:"Mix",chain:"MIX",rpc:["https://rpc2.mix-blockchain.org:8647"],faucets:[],nativeCurrency:{name:"Mix Ether",symbol:"MIX",decimals:18},infoURL:"https://mix-blockchain.org",shortName:"mix",chainId:76,networkId:76,slip44:76,testnet:!1,slug:"mix"},wPt={name:"POA Network Sokol",chain:"POA",rpc:["https://sokol.poa.network","wss://sokol.poa.network/wss","ws://sokol.poa.network:8546"],faucets:["https://faucet.poa.network"],nativeCurrency:{name:"POA Sokol Ether",symbol:"SPOA",decimals:18},infoURL:"https://poa.network",shortName:"spoa",chainId:77,networkId:77,explorers:[{name:"blockscout",url:"https://blockscout.com/poa/sokol",standard:"none"}],testnet:!1,slug:"poa-network-sokol"},xPt={name:"PrimusChain mainnet",chain:"PC",rpc:["https://ethnode.primusmoney.com/mainnet"],faucets:[],nativeCurrency:{name:"Primus Ether",symbol:"PETH",decimals:18},infoURL:"https://primusmoney.com",shortName:"primuschain",chainId:78,networkId:78,testnet:!1,slug:"primuschain"},TPt={name:"Zenith Mainnet",chain:"Zenith",rpc:["https://dataserver-us-1.zenithchain.co/","https://dataserver-asia-3.zenithchain.co/","https://dataserver-asia-4.zenithchain.co/","https://dataserver-asia-2.zenithchain.co/","https://dataserver-asia-5.zenithchain.co/","https://dataserver-asia-6.zenithchain.co/","https://dataserver-asia-7.zenithchain.co/"],faucets:[],nativeCurrency:{name:"ZENITH",symbol:"ZENITH",decimals:18},infoURL:"https://www.zenithchain.co/",chainId:79,networkId:79,shortName:"zenith",explorers:[{name:"zenith scan",url:"https://scan.zenithchain.co",standard:"EIP3091"}],testnet:!1,slug:"zenith"},_Pt={name:"GeneChain",chain:"GeneChain",rpc:["https://rpc.genechain.io"],faucets:[],nativeCurrency:{name:"RNA",symbol:"RNA",decimals:18},infoURL:"https://scan.genechain.io/",shortName:"GeneChain",chainId:80,networkId:80,explorers:[{name:"GeneChain Scan",url:"https://scan.genechain.io",standard:"EIP3091"}],testnet:!1,slug:"genechain"},CPt={name:"Zenith Testnet (Vilnius)",chain:"Zenith",rpc:["https://vilnius.zenithchain.co/http"],faucets:["https://faucet.zenithchain.co/"],nativeCurrency:{name:"Vilnius",symbol:"VIL",decimals:18},infoURL:"https://www.zenithchain.co/",chainId:81,networkId:81,shortName:"VIL",explorers:[{name:"vilnius scan",url:"https://vilnius.scan.zenithchain.co",standard:"EIP3091"}],testnet:!0,slug:"zenith-testnet-vilnius"},EPt={name:"Meter Mainnet",chain:"METER",rpc:["https://rpc.meter.io"],faucets:["https://faucet.meter.io"],nativeCurrency:{name:"Meter",symbol:"MTR",decimals:18},infoURL:"https://www.meter.io",shortName:"Meter",chainId:82,networkId:82,explorers:[{name:"Meter Mainnet Scan",url:"https://scan.meter.io",standard:"EIP3091"}],testnet:!1,slug:"meter"},kPt={name:"Meter Testnet",chain:"METER Testnet",rpc:["https://rpctest.meter.io"],faucets:["https://faucet-warringstakes.meter.io"],nativeCurrency:{name:"Meter",symbol:"MTR",decimals:18},infoURL:"https://www.meter.io",shortName:"MeterTest",chainId:83,networkId:83,explorers:[{name:"Meter Testnet Scan",url:"https://scan-warringstakes.meter.io",standard:"EIP3091"}],testnet:!0,slug:"meter-testnet"},SPt={name:"GateChain Testnet",chainId:85,shortName:"gttest",chain:"GTTEST",networkId:85,nativeCurrency:{name:"GateToken",symbol:"GT",decimals:18},rpc:["https://testnet.gatenode.cc"],faucets:["https://www.gatescan.org/testnet/faucet"],explorers:[{name:"GateScan",url:"https://www.gatescan.org/testnet",standard:"EIP3091"}],infoURL:"https://www.gatechain.io",testnet:!0,slug:"gatechain-testnet"},APt={name:"GateChain Mainnet",chainId:86,shortName:"gt",chain:"GT",networkId:86,nativeCurrency:{name:"GateToken",symbol:"GT",decimals:18},rpc:["https://evm.gatenode.cc"],faucets:["https://www.gatescan.org/faucet"],explorers:[{name:"GateScan",url:"https://www.gatescan.org",standard:"EIP3091"}],infoURL:"https://www.gatechain.io",testnet:!1,slug:"gatechain"},MPt={name:"Nova Network",chain:"NNW",icon:{url:"ipfs://QmTTamJ55YGQwMboq4aqf3JjTEy5WDtjo4GBRQ5VdsWA6U",width:512,height:512,format:"png"},rpc:["https://connect.novanetwork.io","https://0x57.redjackstudio.com","https://rpc.novanetwork.io:9070"],faucets:[],nativeCurrency:{name:"Supernova",symbol:"SNT",decimals:18},infoURL:"https://novanetwork.io",shortName:"nnw",chainId:87,networkId:87,explorers:[{name:"novanetwork",url:"https://explorer.novanetwork.io",standard:"EIP3091"}],testnet:!1,slug:"nova-network"},IPt={name:"TomoChain",chain:"TOMO",rpc:["https://rpc.tomochain.com"],faucets:[],nativeCurrency:{name:"TomoChain",symbol:"TOMO",decimals:18},infoURL:"https://tomochain.com",shortName:"tomo",chainId:88,networkId:88,slip44:889,testnet:!1,slug:"tomochain"},PPt={name:"TomoChain Testnet",chain:"TOMO",rpc:["https://rpc.testnet.tomochain.com"],faucets:[],nativeCurrency:{name:"TomoChain",symbol:"TOMO",decimals:18},infoURL:"https://tomochain.com",shortName:"tomot",chainId:89,networkId:89,slip44:889,testnet:!0,slug:"tomochain-testnet"},RPt={name:"Garizon Stage0",chain:"GAR",icon:{url:"ipfs://QmW3WRyuLZ95K8hvV2QN6rP5yWY98sSzWyVUxD2eUjXGrc",width:1024,height:613,format:"png"},rpc:["https://s0.garizon.net/rpc"],faucets:[],nativeCurrency:{name:"Garizon",symbol:"GAR",decimals:18},infoURL:"https://garizon.com",shortName:"gar-s0",chainId:90,networkId:90,explorers:[{name:"explorer",url:"https://explorer.garizon.com",icon:"garizon",standard:"EIP3091"}],testnet:!1,slug:"garizon-stage0"},NPt={name:"Garizon Stage1",chain:"GAR",icon:{url:"ipfs://QmW3WRyuLZ95K8hvV2QN6rP5yWY98sSzWyVUxD2eUjXGrc",width:1024,height:613,format:"png"},rpc:["https://s1.garizon.net/rpc"],faucets:[],nativeCurrency:{name:"Garizon",symbol:"GAR",decimals:18},infoURL:"https://garizon.com",shortName:"gar-s1",chainId:91,networkId:91,explorers:[{name:"explorer",url:"https://explorer.garizon.com",icon:"garizon",standard:"EIP3091"}],parent:{chain:"eip155-90",type:"shard"},testnet:!1,slug:"garizon-stage1"},OPt={name:"Garizon Stage2",chain:"GAR",icon:{url:"ipfs://QmW3WRyuLZ95K8hvV2QN6rP5yWY98sSzWyVUxD2eUjXGrc",width:1024,height:613,format:"png"},rpc:["https://s2.garizon.net/rpc"],faucets:[],nativeCurrency:{name:"Garizon",symbol:"GAR",decimals:18},infoURL:"https://garizon.com",shortName:"gar-s2",chainId:92,networkId:92,explorers:[{name:"explorer",url:"https://explorer.garizon.com",icon:"garizon",standard:"EIP3091"}],parent:{chain:"eip155-90",type:"shard"},testnet:!1,slug:"garizon-stage2"},LPt={name:"Garizon Stage3",chain:"GAR",icon:{url:"ipfs://QmW3WRyuLZ95K8hvV2QN6rP5yWY98sSzWyVUxD2eUjXGrc",width:1024,height:613,format:"png"},rpc:["https://s3.garizon.net/rpc"],faucets:[],nativeCurrency:{name:"Garizon",symbol:"GAR",decimals:18},infoURL:"https://garizon.com",shortName:"gar-s3",chainId:93,networkId:93,explorers:[{name:"explorer",url:"https://explorer.garizon.com",icon:"garizon",standard:"EIP3091"}],parent:{chain:"eip155-90",type:"shard"},testnet:!1,slug:"garizon-stage3"},BPt={name:"CryptoKylin Testnet",chain:"EOS",rpc:["https://kylin.eosargentina.io"],faucets:[],nativeCurrency:{name:"EOS",symbol:"EOS",decimals:18},infoURL:"https://www.cryptokylin.io/",shortName:"KylinTestnet",chainId:95,networkId:95,explorers:[{name:"eosq",url:"https://kylin.eosargentina.io",standard:"EIP3091"}],testnet:!0,slug:"cryptokylin-testnet"},qPt={name:"NEXT Smart Chain",chain:"NSC",rpc:["https://rpc.nextsmartchain.com"],faucets:["https://faucet.nextsmartchain.com"],nativeCurrency:{name:"NEXT",symbol:"NEXT",decimals:18},infoURL:"https://www.nextsmartchain.com/",shortName:"nsc",chainId:96,networkId:96,explorers:[{name:"Next Smart Chain Explorer",url:"https://explorer.nextsmartchain.com",standard:"none"}],testnet:!1,slug:"next-smart-chain"},DPt={name:"Binance Smart Chain Testnet",chain:"BSC",rpc:["https://binance-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://data-seed-prebsc-1-s1.binance.org:8545","https://data-seed-prebsc-2-s1.binance.org:8545","https://data-seed-prebsc-1-s2.binance.org:8545","https://data-seed-prebsc-2-s2.binance.org:8545","https://data-seed-prebsc-1-s3.binance.org:8545","https://data-seed-prebsc-2-s3.binance.org:8545"],faucets:["https://testnet.binance.org/faucet-smart"],nativeCurrency:{name:"Binance Chain Native Token",symbol:"tBNB",decimals:18},infoURL:"https://testnet.binance.org/",shortName:"bnbt",chainId:97,networkId:97,explorers:[{name:"bscscan-testnet",url:"https://testnet.bscscan.com",standard:"EIP3091"}],icon:{url:"ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/binance-coin/512.png",height:512,width:512,format:"png",sizes:[512,256,128,64,32,16]},testnet:!0,slug:"binance-smart-chain-testnet"},FPt={name:"POA Network Core",chain:"POA",rpc:["https://core.poa.network"],faucets:[],nativeCurrency:{name:"POA Network Core Ether",symbol:"POA",decimals:18},infoURL:"https://poa.network",shortName:"poa",chainId:99,networkId:99,slip44:178,explorers:[{name:"blockscout",url:"https://blockscout.com/poa/core",standard:"none"}],testnet:!1,slug:"poa-network-core"},UPt={name:"Gnosis",chain:"GNO",icon:{url:"ipfs://bafybeidk4swpgdyqmpz6shd5onvpaujvwiwthrhypufnwr6xh3dausz2dm",width:1800,height:1800,format:"png"},rpc:["https://rpc.gnosischain.com","https://rpc.ankr.com/gnosis","https://gnosischain-rpc.gateway.pokt.network","https://gnosis-mainnet.public.blastapi.io","wss://rpc.gnosischain.com/wss"],faucets:["https://gnosisfaucet.com","https://faucet.gimlu.com/gnosis","https://stakely.io/faucet/gnosis-chain-xdai","https://faucet.prussia.dev/xdai"],nativeCurrency:{name:"xDAI",symbol:"xDAI",decimals:18},infoURL:"https://docs.gnosischain.com",shortName:"gno",chainId:100,networkId:100,slip44:700,explorers:[{name:"gnosisscan",url:"https://gnosisscan.io",icon:"gnosisscan",standard:"EIP3091"},{name:"blockscout",url:"https://blockscout.com/xdai/mainnet",icon:"blockscout",standard:"EIP3091"}],testnet:!1,slug:"gnosis"},WPt={name:"EtherInc",chain:"ETI",rpc:["https://api.einc.io/jsonrpc/mainnet"],faucets:[],nativeCurrency:{name:"EtherInc Ether",symbol:"ETI",decimals:18},infoURL:"https://einc.io",shortName:"eti",chainId:101,networkId:1,slip44:464,testnet:!1,slug:"etherinc"},jPt={name:"Web3Games Testnet",chain:"Web3Games",icon:{url:"ipfs://QmUc57w3UTHiWapNW9oQb1dP57ymtdemTTbpvGkjVHBRCo",width:192,height:192,format:"png"},rpc:["https://testnet-rpc-0.web3games.org/evm","https://testnet-rpc-1.web3games.org/evm","https://testnet-rpc-2.web3games.org/evm"],faucets:[],nativeCurrency:{name:"Web3Games",symbol:"W3G",decimals:18},infoURL:"https://web3games.org/",shortName:"tw3g",chainId:102,networkId:102,testnet:!0,slug:"web3games-testnet"},zPt={name:"Kaiba Lightning Chain Testnet",chain:"tKLC",rpc:["https://klc.live/"],faucets:[],nativeCurrency:{name:"Kaiba Testnet Token",symbol:"tKAIBA",decimals:18},infoURL:"https://kaibadefi.com",shortName:"tklc",chainId:104,networkId:104,icon:{url:"ipfs://bafybeihbsw3ky7yf6llpww6fabo4dicotcgwjpefscoxrppstjx25dvtea",width:932,height:932,format:"png"},explorers:[{name:"kaibascan",url:"https://kaibascan.io",icon:"kaibascan",standard:"EIP3091"}],testnet:!0,slug:"kaiba-lightning-chain-testnet"},HPt={name:"Web3Games Devnet",chain:"Web3Games",icon:{url:"ipfs://QmUc57w3UTHiWapNW9oQb1dP57ymtdemTTbpvGkjVHBRCo",width:192,height:192,format:"png"},rpc:["https://devnet.web3games.org/evm"],faucets:[],nativeCurrency:{name:"Web3Games",symbol:"W3G",decimals:18},infoURL:"https://web3games.org/",shortName:"dw3g",chainId:105,networkId:105,explorers:[{name:"Web3Games Explorer",url:"https://explorer-devnet.web3games.org",standard:"none"}],testnet:!1,slug:"web3games-devnet"},VPt={name:"Velas EVM Mainnet",chain:"Velas",icon:{url:"ipfs://QmNXiCXJxEeBd7ZYGYjPSMTSdbDd2nfodLC677gUfk9ku5",width:924,height:800,format:"png"},rpc:["https://evmexplorer.velas.com/rpc","https://explorer.velas.com/rpc"],faucets:[],nativeCurrency:{name:"Velas",symbol:"VLX",decimals:18},infoURL:"https://velas.com",shortName:"vlx",chainId:106,networkId:106,explorers:[{name:"Velas Explorer",url:"https://evmexplorer.velas.com",standard:"EIP3091"}],testnet:!1,slug:"velas-evm"},GPt={name:"Nebula Testnet",chain:"NTN",icon:{url:"ipfs://QmeFaJtQqTKKuXQR7ysS53bLFPasFBcZw445cvYJ2HGeTo",width:512,height:512,format:"png"},rpc:["https://testnet.rpc.novanetwork.io:9070"],faucets:["https://faucet.novanetwork.io"],nativeCurrency:{name:"Nebula X",symbol:"NBX",decimals:18},infoURL:"https://novanetwork.io",shortName:"ntn",chainId:107,networkId:107,explorers:[{name:"nebulatestnet",url:"https://explorer.novanetwork.io",standard:"EIP3091"}],testnet:!0,slug:"nebula-testnet"},ZPt={name:"ThunderCore Mainnet",chain:"TT",rpc:["https://mainnet-rpc.thundercore.com","https://mainnet-rpc.thundertoken.net","https://mainnet-rpc.thundercore.io"],faucets:["https://faucet.thundercore.com"],nativeCurrency:{name:"ThunderCore Token",symbol:"TT",decimals:18},infoURL:"https://thundercore.com",shortName:"TT",chainId:108,networkId:108,slip44:1001,explorers:[{name:"thundercore-viewblock",url:"https://viewblock.io/thundercore",standard:"EIP3091"}],testnet:!1,slug:"thundercore"},JPt={name:"Proton Testnet",chain:"XPR",rpc:["https://protontestnet.greymass.com/"],faucets:[],nativeCurrency:{name:"Proton",symbol:"XPR",decimals:4},infoURL:"https://protonchain.com",shortName:"xpr",chainId:110,networkId:110,testnet:!0,slug:"proton-testnet"},KPt={name:"EtherLite Chain",chain:"ETL",rpc:["https://rpc.etherlite.org"],faucets:["https://etherlite.org/faucets"],nativeCurrency:{name:"EtherLite",symbol:"ETL",decimals:18},infoURL:"https://etherlite.org",shortName:"ETL",chainId:111,networkId:111,icon:{url:"ipfs://QmbNAai1KnBnw4SPQKgrf6vBddifPCQTg2PePry1bmmZYy",width:88,height:88,format:"png"},testnet:!1,slug:"etherlite-chain"},QPt={name:"Dehvo",chain:"Dehvo",rpc:["https://connect.dehvo.com","https://rpc.dehvo.com","https://rpc1.dehvo.com","https://rpc2.dehvo.com"],faucets:["https://buy.dehvo.com"],nativeCurrency:{name:"Dehvo",symbol:"Deh",decimals:18},infoURL:"https://dehvo.com",shortName:"deh",chainId:113,networkId:113,slip44:714,explorers:[{name:"Dehvo Explorer",url:"https://explorer.dehvo.com",standard:"EIP3091"}],testnet:!1,slug:"dehvo"},XPt={name:"Flare Testnet Coston2",chain:"FLR",icon:{url:"ipfs://QmZhAYyazEBZSHWNQb9uCkNPq2MNTLoW3mjwiD3955hUjw",width:382,height:382,format:"png"},rpc:["https://coston2-api.flare.network/ext/bc/C/rpc"],faucets:["https://coston2-faucet.towolabs.com"],nativeCurrency:{name:"Coston2 Flare",symbol:"C2FLR",decimals:18},infoURL:"https://flare.xyz",shortName:"c2flr",chainId:114,networkId:114,explorers:[{name:"blockscout",url:"https://coston2-explorer.flare.network",standard:"EIP3091"}],testnet:!0,slug:"flare-testnet-coston2"},YPt={name:"DeBank Testnet",chain:"DeBank",rpc:[],faucets:[],icon:{url:"ipfs://QmW9pBps8WHRRWmyXhjLZrjZJUe8F48hUu7z98bu2RVsjN",width:400,height:400,format:"png"},nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://debank.com",shortName:"debank-testnet",chainId:115,networkId:115,explorers:[],testnet:!0,slug:"debank-testnet"},$Pt={name:"DeBank Mainnet",chain:"DeBank",rpc:[],faucets:[],icon:{url:"ipfs://QmW9pBps8WHRRWmyXhjLZrjZJUe8F48hUu7z98bu2RVsjN",width:400,height:400,format:"png"},nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://debank.com",shortName:"debank-mainnet",chainId:116,networkId:116,explorers:[],testnet:!1,slug:"debank"},e7t={name:"ENULS Mainnet",chain:"ENULS",rpc:["https://evmapi.nuls.io","https://evmapi2.nuls.io"],faucets:[],nativeCurrency:{name:"NULS",symbol:"NULS",decimals:18},infoURL:"https://nuls.io",shortName:"enuls",chainId:119,networkId:119,icon:{url:"ipfs://QmYz8LK5WkUN8UwqKfWUjnyLuYqQZWihT7J766YXft4TSy",width:26,height:41,format:"svg"},explorers:[{name:"enulsscan",url:"https://evmscan.nuls.io",icon:"enuls",standard:"EIP3091"}],testnet:!1,slug:"enuls"},t7t={name:"ENULS Testnet",chain:"ENULS",rpc:["https://beta.evmapi.nuls.io","https://beta.evmapi2.nuls.io"],faucets:["http://faucet.nuls.io"],nativeCurrency:{name:"NULS",symbol:"NULS",decimals:18},infoURL:"https://nuls.io",shortName:"enulst",chainId:120,networkId:120,icon:{url:"ipfs://QmYz8LK5WkUN8UwqKfWUjnyLuYqQZWihT7J766YXft4TSy",width:26,height:41,format:"svg"},explorers:[{name:"enulsscan",url:"https://beta.evmscan.nuls.io",icon:"enuls",standard:"EIP3091"}],testnet:!0,slug:"enuls-testnet"},r7t={name:"Fuse Mainnet",chain:"FUSE",rpc:["https://rpc.fuse.io"],faucets:[],nativeCurrency:{name:"Fuse",symbol:"FUSE",decimals:18},infoURL:"https://fuse.io/",shortName:"fuse",chainId:122,networkId:122,testnet:!1,slug:"fuse"},n7t={name:"Fuse Sparknet",chain:"fuse",rpc:["https://rpc.fusespark.io"],faucets:["https://get.fusespark.io"],nativeCurrency:{name:"Spark",symbol:"SPARK",decimals:18},infoURL:"https://docs.fuse.io/general/fuse-network-blockchain/fuse-testnet",shortName:"spark",chainId:123,networkId:123,testnet:!0,slug:"fuse-sparknet"},a7t={name:"Decentralized Web Mainnet",shortName:"dwu",chain:"DWU",chainId:124,networkId:124,rpc:["https://decentralized-web.tech/dw_rpc.php"],faucets:[],infoURL:"https://decentralized-web.tech/dw_chain.php",nativeCurrency:{name:"Decentralized Web Utility",symbol:"DWU",decimals:18},testnet:!1,slug:"decentralized-web"},i7t={name:"OYchain Testnet",chain:"OYchain",rpc:["https://rpc.testnet.oychain.io"],faucets:["https://faucet.oychain.io"],nativeCurrency:{name:"OYchain Token",symbol:"OY",decimals:18},infoURL:"https://www.oychain.io",shortName:"OYchainTestnet",chainId:125,networkId:125,slip44:125,explorers:[{name:"OYchain Testnet Explorer",url:"https://explorer.testnet.oychain.io",standard:"none"}],testnet:!0,slug:"oychain-testnet"},s7t={name:"OYchain Mainnet",chain:"OYchain",icon:{url:"ipfs://QmXW5T2MaGHznXUmQEXoyJjcdmX7dhLbj5fnqvZZKqeKzA",width:677,height:237,format:"png"},rpc:["https://rpc.mainnet.oychain.io"],faucets:[],nativeCurrency:{name:"OYchain Token",symbol:"OY",decimals:18},infoURL:"https://www.oychain.io",shortName:"OYchainMainnet",chainId:126,networkId:126,slip44:126,explorers:[{name:"OYchain Mainnet Explorer",url:"https://explorer.oychain.io",standard:"none"}],testnet:!1,slug:"oychain"},o7t={name:"Factory 127 Mainnet",chain:"FETH",rpc:[],faucets:[],nativeCurrency:{name:"Factory 127 Token",symbol:"FETH",decimals:18},infoURL:"https://www.factory127.com",shortName:"feth",chainId:127,networkId:127,slip44:127,testnet:!1,slug:"factory-127"},c7t={name:"Huobi ECO Chain Mainnet",chain:"Heco",rpc:["https://http-mainnet.hecochain.com","wss://ws-mainnet.hecochain.com"],faucets:["https://free-online-app.com/faucet-for-eth-evm-chains/"],nativeCurrency:{name:"Huobi ECO Chain Native Token",symbol:"HT",decimals:18},infoURL:"https://www.hecochain.com",shortName:"heco",chainId:128,networkId:128,slip44:1010,explorers:[{name:"hecoinfo",url:"https://hecoinfo.com",standard:"EIP3091"}],testnet:!1,slug:"huobi-eco-chain"},u7t={name:"Alyx Chain Testnet",chain:"Alyx Chain Testnet",rpc:["https://testnet-rpc.alyxchain.com"],faucets:["https://faucet.alyxchain.com"],nativeCurrency:{name:"Alyx Testnet Native Token",symbol:"ALYX",decimals:18},infoURL:"https://www.alyxchain.com",shortName:"AlyxTestnet",chainId:135,networkId:135,explorers:[{name:"alyx testnet scan",url:"https://testnet.alyxscan.com",standard:"EIP3091"}],icon:{url:"ipfs://bafkreifd43fcvh77mdcwjrpzpnlhthounc6b4u645kukqpqhduaveatf6i",width:2481,height:2481,format:"png"},testnet:!0,slug:"alyx-chain-testnet"},l7t={name:"Polygon Mainnet",chain:"Polygon",icon:{url:"ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/polygon/512.png",height:512,width:512,format:"png",sizes:[512,256,128,64,32,16]},rpc:["https://polygon.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://polygon-rpc.com/","https://rpc-mainnet.matic.network","https://matic-mainnet.chainstacklabs.com","https://rpc-mainnet.maticvigil.com","https://rpc-mainnet.matic.quiknode.pro","https://matic-mainnet-full-rpc.bwarelabs.com","https://polygon-bor.publicnode.com"],faucets:[],nativeCurrency:{name:"MATIC",symbol:"MATIC",decimals:18},infoURL:"https://polygon.technology/",shortName:"matic",chainId:137,networkId:137,slip44:966,explorers:[{name:"polygonscan",url:"https://polygonscan.com",standard:"EIP3091"}],testnet:!1,slug:"polygon"},d7t={name:"Openpiece Testnet",chain:"OPENPIECE",icon:{url:"ipfs://QmVTahJkdSH3HPYsJMK2GmqfWZjLyxE7cXy1aHEnHU3vp2",width:250,height:250,format:"png"},rpc:["https://testnet.openpiece.io"],faucets:[],nativeCurrency:{name:"Belly",symbol:"BELLY",decimals:18},infoURL:"https://cryptopiece.online",shortName:"OPtest",chainId:141,networkId:141,explorers:[{name:"Belly Scan",url:"https://testnet.bellyscan.com",standard:"none"}],testnet:!0,slug:"openpiece-testnet"},p7t={name:"DAX CHAIN",chain:"DAX",rpc:["https://rpc.prodax.io"],faucets:[],nativeCurrency:{name:"Prodax",symbol:"DAX",decimals:18},infoURL:"https://prodax.io/",shortName:"dax",chainId:142,networkId:142,testnet:!1,slug:"dax-chain"},h7t={name:"PHI Network v2",chain:"PHI",rpc:["https://connect.phi.network"],faucets:[],nativeCurrency:{name:"PHI",symbol:"\u03A6",decimals:18},infoURL:"https://phi.network",shortName:"PHI",chainId:144,networkId:144,icon:{url:"ipfs://bafkreid6pm3mic7izp3a6zlfwhhe7etd276bjfsq2xash6a4s2vmcdf65a",width:512,height:512,format:"png"},explorers:[{name:"Phiscan",url:"https://phiscan.com",icon:"phi",standard:"none"}],testnet:!1,slug:"phi-network-v2"},f7t={name:"Armonia Eva Chain Mainnet",chain:"Eva",rpc:["https://evascan.io/api/eth-rpc/"],faucets:[],nativeCurrency:{name:"Armonia Multichain Native Token",symbol:"AMAX",decimals:18},infoURL:"https://amax.network",shortName:"eva",chainId:160,networkId:160,status:"incubating",testnet:!1,slug:"armonia-eva-chain"},m7t={name:"Armonia Eva Chain Testnet",chain:"Wall-e",rpc:["https://testnet.evascan.io/api/eth-rpc/"],faucets:[],nativeCurrency:{name:"Armonia Multichain Native Token",symbol:"AMAX",decimals:18},infoURL:"https://amax.network",shortName:"wall-e",chainId:161,networkId:161,explorers:[{name:"blockscout - evascan",url:"https://testnet.evascan.io",standard:"EIP3091"}],testnet:!0,slug:"armonia-eva-chain-testnet"},y7t={name:"Lightstreams Testnet",chain:"PHT",rpc:["https://node.sirius.lightstreams.io"],faucets:["https://discuss.lightstreams.network/t/request-test-tokens"],nativeCurrency:{name:"Lightstreams PHT",symbol:"PHT",decimals:18},infoURL:"https://explorer.sirius.lightstreams.io",shortName:"tpht",chainId:162,networkId:162,testnet:!0,slug:"lightstreams-testnet"},g7t={name:"Lightstreams Mainnet",chain:"PHT",rpc:["https://node.mainnet.lightstreams.io"],faucets:[],nativeCurrency:{name:"Lightstreams PHT",symbol:"PHT",decimals:18},infoURL:"https://explorer.lightstreams.io",shortName:"pht",chainId:163,networkId:163,testnet:!1,slug:"lightstreams"},v7t={name:"Atoshi Testnet",chain:"ATOSHI",icon:{url:"ipfs://QmfFK6B4MFLrpSS46aLf7hjpt28poHFeTGEKEuH248Tbyj",width:200,height:200,format:"png"},rpc:["https://node.atoshi.io/"],faucets:[],nativeCurrency:{name:"ATOSHI",symbol:"ATOS",decimals:18},infoURL:"https://atoshi.org",shortName:"atoshi",chainId:167,networkId:167,explorers:[{name:"atoshiscan",url:"https://scan.atoverse.info",standard:"EIP3091"}],testnet:!0,slug:"atoshi-testnet"},b7t={name:"AIOZ Network",chain:"AIOZ",icon:{url:"ipfs://QmRAGPFhvQiXgoJkui7WHajpKctGFrJNhHqzYdwcWt5V3Z",width:1024,height:1024,format:"png"},rpc:["https://eth-dataseed.aioz.network"],faucets:[],nativeCurrency:{name:"AIOZ",symbol:"AIOZ",decimals:18},infoURL:"https://aioz.network",shortName:"aioz",chainId:168,networkId:168,slip44:60,explorers:[{name:"AIOZ Network Explorer",url:"https://explorer.aioz.network",standard:"EIP3091"}],testnet:!1,slug:"aioz-network"},w7t={name:"HOO Smart Chain Testnet",chain:"ETH",rpc:["https://http-testnet.hoosmartchain.com"],faucets:["https://faucet-testnet.hscscan.com/"],nativeCurrency:{name:"HOO",symbol:"HOO",decimals:18},infoURL:"https://www.hoosmartchain.com",shortName:"hoosmartchain",chainId:170,networkId:170,testnet:!0,slug:"hoo-smart-chain-testnet"},x7t={name:"Latam-Blockchain Resil Testnet",chain:"Resil",rpc:["https://rpc.latam-blockchain.com","wss://ws.latam-blockchain.com"],faucets:["https://faucet.latam-blockchain.com"],nativeCurrency:{name:"Latam-Blockchain Resil Test Native Token",symbol:"usd",decimals:18},infoURL:"https://latam-blockchain.com",shortName:"resil",chainId:172,networkId:172,testnet:!0,slug:"latam-blockchain-resil-testnet"},T7t={name:"AME Chain Mainnet",chain:"AME",rpc:["https://node1.amechain.io/"],faucets:[],nativeCurrency:{name:"AME",symbol:"AME",decimals:18},infoURL:"https://amechain.io/",shortName:"ame",chainId:180,networkId:180,explorers:[{name:"AME Scan",url:"https://amescan.io",standard:"EIP3091"}],testnet:!1,slug:"ame-chain"},_7t={name:"Seele Mainnet",chain:"Seele",rpc:["https://rpc.seelen.pro/"],faucets:[],nativeCurrency:{name:"Seele",symbol:"Seele",decimals:18},infoURL:"https://seelen.pro/",shortName:"Seele",chainId:186,networkId:186,explorers:[{name:"seeleview",url:"https://seeleview.net",standard:"none"}],testnet:!1,slug:"seele"},C7t={name:"BMC Mainnet",chain:"BMC",rpc:["https://mainnet.bmcchain.com/"],faucets:[],nativeCurrency:{name:"BTM",symbol:"BTM",decimals:18},infoURL:"https://bmc.bytom.io/",shortName:"BMC",chainId:188,networkId:188,explorers:[{name:"Blockmeta",url:"https://bmc.blockmeta.com",standard:"none"}],testnet:!1,slug:"bmc"},E7t={name:"BMC Testnet",chain:"BMC",rpc:["https://testnet.bmcchain.com"],faucets:[],nativeCurrency:{name:"BTM",symbol:"BTM",decimals:18},infoURL:"https://bmc.bytom.io/",shortName:"BMCT",chainId:189,networkId:189,explorers:[{name:"Blockmeta",url:"https://bmctestnet.blockmeta.com",standard:"none"}],testnet:!0,slug:"bmc-testnet"},k7t={name:"Crypto Emergency",chain:"CEM",rpc:["https://cemchain.com"],faucets:[],nativeCurrency:{name:"Crypto Emergency",symbol:"CEM",decimals:18},infoURL:"https://cemblockchain.com/",shortName:"cem",chainId:193,networkId:193,explorers:[{name:"cemscan",url:"https://cemscan.com",standard:"EIP3091"}],testnet:!1,slug:"crypto-emergency"},S7t={name:"BitTorrent Chain Mainnet",chain:"BTTC",rpc:["https://rpc.bittorrentchain.io/"],faucets:[],nativeCurrency:{name:"BitTorrent",symbol:"BTT",decimals:18},infoURL:"https://bittorrentchain.io/",shortName:"BTT",chainId:199,networkId:199,explorers:[{name:"bttcscan",url:"https://scan.bittorrentchain.io",standard:"none"}],testnet:!1,slug:"bittorrent-chain"},A7t={name:"Arbitrum on xDai",chain:"AOX",rpc:["https://arbitrum.xdaichain.com/"],faucets:[],nativeCurrency:{name:"xDAI",symbol:"xDAI",decimals:18},infoURL:"https://xdaichain.com",shortName:"aox",chainId:200,networkId:200,explorers:[{name:"blockscout",url:"https://blockscout.com/xdai/arbitrum",standard:"EIP3091"}],parent:{chain:"eip155-100",type:"L2"},testnet:!1,slug:"arbitrum-on-xdai"},M7t={name:"MOAC testnet",chain:"MOAC",rpc:["https://gateway.moac.io/testnet"],faucets:[],nativeCurrency:{name:"MOAC",symbol:"mc",decimals:18},infoURL:"https://moac.io",shortName:"moactest",chainId:201,networkId:201,explorers:[{name:"moac testnet explorer",url:"https://testnet.moac.io",standard:"none"}],testnet:!0,slug:"moac-testnet"},I7t={name:"Freight Trust Network",chain:"EDI",rpc:["http://13.57.207.168:3435","https://app.freighttrust.net/ftn/${API_KEY}"],faucets:["http://faucet.freight.sh"],nativeCurrency:{name:"Freight Trust Native",symbol:"0xF",decimals:18},infoURL:"https://freighttrust.com",shortName:"EDI",chainId:211,networkId:0,testnet:!1,slug:"freight-trust-network"},P7t={name:"MAP Makalu",title:"MAP Testnet Makalu",chain:"MAP",rpc:["https://testnet-rpc.maplabs.io"],faucets:["https://faucet.maplabs.io"],nativeCurrency:{name:"Makalu MAP",symbol:"MAP",decimals:18},infoURL:"https://maplabs.io",shortName:"makalu",chainId:212,networkId:212,explorers:[{name:"mapscan",url:"https://testnet.mapscan.io",standard:"EIP3091"}],testnet:!0,slug:"map-makalu"},R7t={name:"SiriusNet V2",chain:"SIN2",faucets:[],rpc:["https://rpc2.siriusnet.io"],icon:{url:"ipfs://bafybeicxuxdzrzpwsil4owqmn7wpwka2rqsohpfqmukg57pifzyxr5om2q",width:100,height:100,format:"png"},nativeCurrency:{name:"MCD",symbol:"MCD",decimals:18},infoURL:"https://siriusnet.io",shortName:"SIN2",chainId:217,networkId:217,explorers:[{name:"siriusnet explorer",url:"https://scan.siriusnet.io",standard:"none"}],testnet:!1,slug:"siriusnet-v2"},N7t={name:"LACHAIN Mainnet",chain:"LA",icon:{url:"ipfs://QmQxGA6rhuCQDXUueVcNvFRhMEWisyTmnF57TqL7h6k6cZ",width:1280,height:1280,format:"png"},rpc:["https://rpc-mainnet.lachain.io"],faucets:[],nativeCurrency:{name:"LA",symbol:"LA",decimals:18},infoURL:"https://lachain.io",shortName:"LA",chainId:225,networkId:225,explorers:[{name:"blockscout",url:"https://scan.lachain.io",standard:"EIP3091"}],testnet:!1,slug:"lachain"},O7t={name:"LACHAIN Testnet",chain:"TLA",icon:{url:"ipfs://QmQxGA6rhuCQDXUueVcNvFRhMEWisyTmnF57TqL7h6k6cZ",width:1280,height:1280,format:"png"},rpc:["https://rpc-testnet.lachain.io"],faucets:[],nativeCurrency:{name:"TLA",symbol:"TLA",decimals:18},infoURL:"https://lachain.io",shortName:"TLA",chainId:226,networkId:226,explorers:[{name:"blockscout",url:"https://scan-test.lachain.io",standard:"EIP3091"}],testnet:!0,slug:"lachain-testnet"},L7t={name:"Energy Web Chain",chain:"Energy Web Chain",rpc:["https://rpc.energyweb.org","wss://rpc.energyweb.org/ws"],faucets:["https://faucet.carbonswap.exchange","https://free-online-app.com/faucet-for-eth-evm-chains/"],nativeCurrency:{name:"Energy Web Token",symbol:"EWT",decimals:18},infoURL:"https://energyweb.org",shortName:"ewt",chainId:246,networkId:246,slip44:246,explorers:[{name:"blockscout",url:"https://explorer.energyweb.org",standard:"none"}],testnet:!1,slug:"energy-web-chain"},B7t={name:"Oasys Mainnet",chain:"Oasys",icon:{url:"ipfs://QmT84suD2ZmTSraJBfeHhTNst2vXctQijNCztok9XiVcUR",width:3600,height:3600,format:"png"},rpc:["https://rpc.mainnet.oasys.games"],faucets:[],nativeCurrency:{name:"OAS",symbol:"OAS",decimals:18},infoURL:"https://oasys.games",shortName:"OAS",chainId:248,networkId:248,explorers:[{name:"blockscout",url:"https://explorer.oasys.games",standard:"EIP3091"}],testnet:!1,slug:"oasys"},q7t={name:"Fantom Opera",chain:"FTM",rpc:["https://fantom.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.ftm.tools"],faucets:["https://free-online-app.com/faucet-for-eth-evm-chains/"],nativeCurrency:{name:"Fantom",symbol:"FTM",decimals:18},infoURL:"https://fantom.foundation",shortName:"ftm",chainId:250,networkId:250,icon:{url:"ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/fantom/512.png",height:512,width:512,format:"png",sizes:[512,256,128,64,32,16]},explorers:[{name:"ftmscan",url:"https://ftmscan.com",icon:"ftmscan",standard:"EIP3091"}],testnet:!1,slug:"fantom-opera"},D7t={name:"Huobi ECO Chain Testnet",chain:"Heco",rpc:["https://http-testnet.hecochain.com","wss://ws-testnet.hecochain.com"],faucets:["https://scan-testnet.hecochain.com/faucet"],nativeCurrency:{name:"Huobi ECO Chain Test Native Token",symbol:"htt",decimals:18},infoURL:"https://testnet.hecoinfo.com",shortName:"hecot",chainId:256,networkId:256,testnet:!0,slug:"huobi-eco-chain-testnet"},F7t={name:"Setheum",chain:"Setheum",rpc:[],faucets:[],nativeCurrency:{name:"Setheum",symbol:"SETM",decimals:18},infoURL:"https://setheum.xyz",shortName:"setm",chainId:258,networkId:258,testnet:!1,slug:"setheum"},U7t={name:"SUR Blockchain Network",chain:"SUR",rpc:["https://sur.nilin.org"],faucets:[],nativeCurrency:{name:"Suren",symbol:"SRN",decimals:18},infoURL:"https://surnet.org",shortName:"SUR",chainId:262,networkId:1,icon:{url:"ipfs://QmbUcDQHCvheYQrWk9WFJRMW5fTJQmtZqkoGUed4bhCM7T",width:3e3,height:3e3,format:"png"},explorers:[{name:"Surnet Explorer",url:"https://explorer.surnet.org",icon:"SUR",standard:"EIP3091"}],testnet:!1,slug:"sur-blockchain-network"},W7t={name:"High Performance Blockchain",chain:"HPB",rpc:["https://hpbnode.com","wss://ws.hpbnode.com"],faucets:["https://myhpbwallet.com/"],nativeCurrency:{name:"High Performance Blockchain Ether",symbol:"HPB",decimals:18},infoURL:"https://hpb.io",shortName:"hpb",chainId:269,networkId:269,slip44:269,explorers:[{name:"hscan",url:"https://hscan.org",standard:"EIP3091"}],testnet:!1,slug:"high-performance-blockchain"},j7t={name:"zkSync alpha testnet",chain:"ETH",rpc:["https://zksync2-testnet.zksync.dev"],faucets:["https://portal.zksync.io/faucet"],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://v2-docs.zksync.io/",shortName:"zksync-goerli",chainId:280,networkId:280,icon:{url:"ipfs://QmdwQDr6vmBtXmK2TmknkEuZNoaDqTasFdZdu3DRw8b2wt",width:1e3,height:1628,format:"png"},explorers:[{name:"blockscout",url:"https://zksync2-testnet.zkscan.io",icon:"blockscout",standard:"EIP3091"}],testnet:!0,slug:"zksync-alpha-testnet"},z7t={name:"Boba Network",chain:"ETH",rpc:["https://mainnet.boba.network/"],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://boba.network",shortName:"Boba",chainId:288,networkId:288,explorers:[{name:"Bobascan",url:"https://bobascan.com",standard:"none"},{name:"Blockscout",url:"https://blockexplorer.boba.network",standard:"none"}],parent:{type:"L2",chain:"eip155-1",bridges:[{url:"https://gateway.boba.network"}]},testnet:!1,slug:"boba-network"},H7t={name:"Optimism on Gnosis",chain:"OGC",rpc:["https://optimism.gnosischain.com","wss://optimism.gnosischain.com/wss"],faucets:["https://faucet.gimlu.com/gnosis"],nativeCurrency:{name:"xDAI",symbol:"xDAI",decimals:18},infoURL:"https://www.xdaichain.com/for-developers/optimism-optimistic-rollups-on-gc",shortName:"ogc",chainId:300,networkId:300,explorers:[{name:"blockscout",url:"https://blockscout.com/xdai/optimism",icon:"blockscout",standard:"EIP3091"}],testnet:!1,slug:"optimism-on-gnosis"},V7t={name:"Bobaopera",chain:"Bobaopera",rpc:["https://bobaopera.boba.network","wss://wss.bobaopera.boba.network","https://replica.bobaopera.boba.network","wss://replica-wss.bobaopera.boba.network"],faucets:[],nativeCurrency:{name:"Boba Token",symbol:"BOBA",decimals:18},infoURL:"https://boba.network",shortName:"Bobaopera",chainId:301,networkId:301,explorers:[{name:"Bobaopera block explorer",url:"https://blockexplorer.bobaopera.boba.network",standard:"none"}],testnet:!1,slug:"bobaopera"},G7t={name:"Omax Mainnet",chain:"OMAX Chain",rpc:["https://mainapi.omaxray.com"],faucets:["https://faucet.omaxray.com/"],nativeCurrency:{name:"OMAX COIN",symbol:"OMAX",decimals:18},infoURL:"https://www.omaxcoin.com/",shortName:"omax",chainId:311,networkId:311,icon:{url:"ipfs://Qmd7omPxrehSuxHHPMYd5Nr7nfrtjKdRJQEhDLfTb87w8G",width:500,height:500,format:"png"},explorers:[{name:"Omax Chain Explorer",url:"https://omaxray.com",icon:"omaxray",standard:"EIP3091"}],testnet:!1,slug:"omax"},Z7t={name:"Filecoin - Mainnet",chain:"FIL",icon:{url:"ipfs://QmS9r9XQkMHVomWcSBNDkKkz9n87h9bH9ssabeiKZtANoU",width:1e3,height:1e3,format:"png"},rpc:["https://api.node.glif.io/","https://rpc.ankr.com/filecoin"],faucets:[],nativeCurrency:{name:"filecoin",symbol:"FIL",decimals:18},infoURL:"https://filecoin.io",shortName:"filecoin",chainId:314,networkId:314,slip44:461,explorers:[{name:"Filfox",url:"https://filfox.info/en",standard:"none"},{name:"Filscan",url:"https://filscan.io",standard:"none"},{name:"Filscout",url:"https://filscout.io/en",standard:"none"}],testnet:!1,slug:"filecoin"},J7t={name:"KCC Mainnet",chain:"KCC",rpc:["https://rpc-mainnet.kcc.network","https://kcc.mytokenpocket.vip","https://public-rpc.blockpi.io/http/kcc"],faucets:["https://faucet.kcc.io/","https://free-online-app.com/faucet-for-eth-evm-chains/"],nativeCurrency:{name:"KuCoin Token",symbol:"KCS",decimals:18},infoURL:"https://kcc.io",shortName:"kcs",chainId:321,networkId:321,slip44:641,explorers:[{name:"KCC Explorer",url:"https://explorer.kcc.io/en",standard:"EIP3091"}],testnet:!1,slug:"kcc"},K7t={name:"KCC Testnet",chain:"KCC",rpc:["https://rpc-testnet.kcc.network"],faucets:["https://faucet-testnet.kcc.network"],nativeCurrency:{name:"KuCoin Testnet Token",symbol:"tKCS",decimals:18},infoURL:"https://scan-testnet.kcc.network",shortName:"kcst",chainId:322,networkId:322,explorers:[{name:"kcc-scan-testnet",url:"https://scan-testnet.kcc.network",standard:"EIP3091"}],testnet:!0,slug:"kcc-testnet"},Q7t={name:"zkSync v2",chain:"ETH",rpc:[],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://zksync.io/",shortName:"zksync",chainId:324,networkId:324,icon:{url:"ipfs://QmdwQDr6vmBtXmK2TmknkEuZNoaDqTasFdZdu3DRw8b2wt",width:1e3,height:1628,format:"png"},explorers:[{name:"zkSync v2 Block Explorer",url:"https://explorer.zksync.io",standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-1",bridges:[]},status:"incubating",testnet:!1,slug:"zksync-v2"},X7t={name:"Web3Q Mainnet",chain:"Web3Q",rpc:["https://mainnet.web3q.io:8545"],faucets:[],nativeCurrency:{name:"Web3Q",symbol:"W3Q",decimals:18},infoURL:"https://web3q.io/home.w3q/",shortName:"w3q",chainId:333,networkId:333,explorers:[{name:"w3q-mainnet",url:"https://explorer.mainnet.web3q.io",standard:"EIP3091"}],testnet:!1,slug:"web3q"},Y7t={name:"DFK Chain Test",chain:"DFK",icon:{url:"ipfs://QmQB48m15TzhUFrmu56QCRQjkrkgUaKfgCmKE8o3RzmuPJ",width:500,height:500,format:"png"},rpc:["https://subnets.avax.network/defi-kingdoms/dfk-chain-testnet/rpc"],faucets:[],nativeCurrency:{name:"Jewel",symbol:"JEWEL",decimals:18},infoURL:"https://defikingdoms.com",shortName:"DFKTEST",chainId:335,networkId:335,explorers:[{name:"ethernal",url:"https://explorer-test.dfkchain.com",icon:"ethereum",standard:"none"}],testnet:!0,slug:"dfk-chain-test"},$7t={name:"Shiden",chain:"SDN",rpc:["https://shiden.api.onfinality.io/public","https://shiden-rpc.dwellir.com","https://shiden.public.blastapi.io","wss://shiden.api.onfinality.io/public-ws","wss://shiden.public.blastapi.io","wss://shiden-rpc.dwellir.com"],faucets:[],nativeCurrency:{name:"Shiden",symbol:"SDN",decimals:18},infoURL:"https://shiden.astar.network/",shortName:"sdn",chainId:336,networkId:336,icon:{url:"ipfs://QmQySjAoWHgk3ou1yvBi2TrTcgH6KhfGiU7GcrLzrAeRkE",width:250,height:250,format:"png"},explorers:[{name:"subscan",url:"https://shiden.subscan.io",standard:"none",icon:"subscan"}],testnet:!1,slug:"shiden"},eRt={name:"Cronos Testnet",chain:"CRO",rpc:["https://evm-t3.cronos.org"],faucets:["https://cronos.org/faucet"],nativeCurrency:{name:"Cronos Test Coin",symbol:"TCRO",decimals:18},infoURL:"https://cronos.org",shortName:"tcro",chainId:338,networkId:338,explorers:[{name:"Cronos Testnet Explorer",url:"https://testnet.cronoscan.com",standard:"none"}],testnet:!0,slug:"cronos-testnet"},tRt={name:"Theta Mainnet",chain:"Theta",rpc:["https://eth-rpc-api.thetatoken.org/rpc"],faucets:[],nativeCurrency:{name:"Theta Fuel",symbol:"TFUEL",decimals:18},infoURL:"https://www.thetatoken.org/",shortName:"theta-mainnet",chainId:361,networkId:361,explorers:[{name:"Theta Mainnet Explorer",url:"https://explorer.thetatoken.org",standard:"EIP3091"}],testnet:!1,slug:"theta"},rRt={name:"Theta Sapphire Testnet",chain:"Theta",rpc:["https://eth-rpc-api-sapphire.thetatoken.org/rpc"],faucets:[],nativeCurrency:{name:"Theta Fuel",symbol:"TFUEL",decimals:18},infoURL:"https://www.thetatoken.org/",shortName:"theta-sapphire",chainId:363,networkId:363,explorers:[{name:"Theta Sapphire Testnet Explorer",url:"https://guardian-testnet-sapphire-explorer.thetatoken.org",standard:"EIP3091"}],testnet:!0,slug:"theta-sapphire-testnet"},nRt={name:"Theta Amber Testnet",chain:"Theta",rpc:["https://eth-rpc-api-amber.thetatoken.org/rpc"],faucets:[],nativeCurrency:{name:"Theta Fuel",symbol:"TFUEL",decimals:18},infoURL:"https://www.thetatoken.org/",shortName:"theta-amber",chainId:364,networkId:364,explorers:[{name:"Theta Amber Testnet Explorer",url:"https://guardian-testnet-amber-explorer.thetatoken.org",standard:"EIP3091"}],testnet:!0,slug:"theta-amber-testnet"},aRt={name:"Theta Testnet",chain:"Theta",rpc:["https://eth-rpc-api-testnet.thetatoken.org/rpc"],faucets:[],nativeCurrency:{name:"Theta Fuel",symbol:"TFUEL",decimals:18},infoURL:"https://www.thetatoken.org/",shortName:"theta-testnet",chainId:365,networkId:365,explorers:[{name:"Theta Testnet Explorer",url:"https://testnet-explorer.thetatoken.org",standard:"EIP3091"}],testnet:!0,slug:"theta-testnet"},iRt={name:"PulseChain Mainnet",shortName:"pls",chain:"PLS",chainId:369,networkId:369,infoURL:"https://pulsechain.com/",rpc:["https://rpc.mainnet.pulsechain.com/","wss://rpc.mainnet.pulsechain.com/"],faucets:[],nativeCurrency:{name:"Pulse",symbol:"PLS",decimals:18},testnet:!1,slug:"pulsechain"},sRt={name:"Consta Testnet",chain:"tCNT",rpc:["https://rpc-testnet.theconsta.com"],faucets:[],nativeCurrency:{name:"tCNT",symbol:"tCNT",decimals:18},infoURL:"http://theconsta.com",shortName:"tCNT",chainId:371,networkId:371,icon:{url:"ipfs://QmfQ1yae6uvXgBSwnwJM4Mtp8ctH66tM6mB1Hsgu4XvsC9",width:2e3,height:2e3,format:"png"},explorers:[{name:"blockscout",url:"https://explorer-testnet.theconsta.com",standard:"EIP3091"}],testnet:!0,slug:"consta-testnet"},oRt={name:"Lisinski",chain:"CRO",rpc:["https://rpc-bitfalls1.lisinski.online"],faucets:["https://pipa.lisinski.online"],nativeCurrency:{name:"Lisinski Ether",symbol:"LISINS",decimals:18},infoURL:"https://lisinski.online",shortName:"lisinski",chainId:385,networkId:385,testnet:!1,slug:"lisinski"},cRt={name:"HyperonChain TestNet",chain:"HPN",icon:{url:"ipfs://QmWxhyxXTEsWH98v7M3ck4ZL1qQoUaHG4HgtgxzD2KJQ5m",width:540,height:541,format:"png"},rpc:["https://testnet-rpc.hyperonchain.com"],faucets:["https://faucet.hyperonchain.com"],nativeCurrency:{name:"HyperonChain",symbol:"HPN",decimals:18},infoURL:"https://docs.hyperonchain.com",shortName:"hpn",chainId:400,networkId:400,explorers:[{name:"blockscout",url:"https://testnet.hyperonchain.com",icon:"hyperonchain",standard:"EIP3091"}],testnet:!0,slug:"hyperonchain-testnet"},uRt={name:"SX Network Mainnet",chain:"SX",icon:{url:"ipfs://QmSXLXqyr2H6Ja5XrmznXbWTEvF2gFaL8RXNXgyLmDHjAF",width:896,height:690,format:"png"},rpc:["https://rpc.sx.technology"],faucets:[],nativeCurrency:{name:"SX Network",symbol:"SX",decimals:18},infoURL:"https://www.sx.technology",shortName:"SX",chainId:416,networkId:416,explorers:[{name:"SX Network Explorer",url:"https://explorer.sx.technology",standard:"EIP3091"}],testnet:!1,slug:"sx-network"},lRt={name:"Optimism Goerli Testnet",chain:"ETH",rpc:["https://optimism-goerli.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://goerli.optimism.io/"],faucets:[],nativeCurrency:{name:"Goerli Ether",symbol:"ETH",decimals:18},infoURL:"https://optimism.io",shortName:"ogor",chainId:420,networkId:420,icon:{url:"ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/optimism/512.png",height:512,width:512,format:"png",sizes:[512,256,128,64,32,16]},testnet:!0,slug:"optimism-goerli-testnet"},dRt={name:"Zeeth Chain",chain:"ZeethChain",rpc:["https://rpc.zeeth.io"],faucets:[],nativeCurrency:{name:"Zeeth Token",symbol:"ZTH",decimals:18},infoURL:"",shortName:"zeeth",chainId:427,networkId:427,explorers:[{name:"Zeeth Explorer",url:"https://explorer.zeeth.io",standard:"none"}],testnet:!1,slug:"zeeth-chain"},pRt={name:"Frenchain Testnet",chain:"tfren",rpc:["https://rpc-01tn.frenchain.app"],faucets:[],nativeCurrency:{name:"tFREN",symbol:"FtREN",decimals:18},infoURL:"https://frenchain.app",shortName:"tFREN",chainId:444,networkId:444,icon:{url:"ipfs://QmQk41bYX6WpYyUAdRgomZekxP5mbvZXhfxLEEqtatyJv4",width:128,height:128,format:"png"},explorers:[{name:"blockscout",url:"https://testnet.frenscan.io",icon:"fren",standard:"EIP3091"}],testnet:!0,slug:"frenchain-testnet"},hRt={name:"Rupaya",chain:"RUPX",rpc:[],faucets:[],nativeCurrency:{name:"Rupaya",symbol:"RUPX",decimals:18},infoURL:"https://www.rupx.io",shortName:"rupx",chainId:499,networkId:499,slip44:499,testnet:!1,slug:"rupaya"},fRt={name:"Camino C-Chain",chain:"CAM",rpc:[],faucets:[],nativeCurrency:{name:"Camino",symbol:"CAM",decimals:18},infoURL:"https://camino.foundation/",shortName:"Camino",chainId:500,networkId:1e3,icon:{url:"ipfs://QmSEoUonisawfCvT3osysuZzbqUEHugtgNraePKWL8PKYa",width:768,height:768,format:"png"},explorers:[{name:"blockexplorer",url:"https://explorer.camino.foundation/mainnet",standard:"none"}],testnet:!1,slug:"camino-c-chain"},mRt={name:"Columbus Test Network",chain:"CAM",rpc:[],faucets:[],nativeCurrency:{name:"Camino",symbol:"CAM",decimals:18},infoURL:"https://camino.foundation/",shortName:"Columbus",chainId:501,networkId:1001,icon:{url:"ipfs://QmSEoUonisawfCvT3osysuZzbqUEHugtgNraePKWL8PKYa",width:768,height:768,format:"png"},explorers:[{name:"blockexplorer",url:"https://explorer.camino.foundation",standard:"none"}],testnet:!0,slug:"columbus-test-network"},yRt={name:"Double-A Chain Mainnet",chain:"AAC",rpc:["https://rpc.acuteangle.com"],faucets:[],nativeCurrency:{name:"Acuteangle Native Token",symbol:"AAC",decimals:18},infoURL:"https://www.acuteangle.com/",shortName:"aac",chainId:512,networkId:512,slip44:1512,explorers:[{name:"aacscan",url:"https://scan.acuteangle.com",standard:"EIP3091"}],icon:{url:"ipfs://QmRUrz4dULaoaMpnqd8qXT7ehwz3aaqnYKY4ePsy7isGaF",width:512,height:512,format:"png"},testnet:!1,slug:"double-a-chain"},gRt={name:"Double-A Chain Testnet",chain:"AAC",icon:{url:"ipfs://QmRUrz4dULaoaMpnqd8qXT7ehwz3aaqnYKY4ePsy7isGaF",width:512,height:512,format:"png"},rpc:["https://rpc-testnet.acuteangle.com"],faucets:["https://scan-testnet.acuteangle.com/faucet"],nativeCurrency:{name:"Acuteangle Native Token",symbol:"AAC",decimals:18},infoURL:"https://www.acuteangle.com/",shortName:"aact",chainId:513,networkId:513,explorers:[{name:"aacscan-testnet",url:"https://scan-testnet.acuteangle.com",standard:"EIP3091"}],testnet:!0,slug:"double-a-chain-testnet"},vRt={name:"Gear Zero Network Mainnet",chain:"GearZero",rpc:["https://gzn.linksme.info"],faucets:[],nativeCurrency:{name:"Gear Zero Network Native Token",symbol:"GZN",decimals:18},infoURL:"https://token.gearzero.ca/mainnet",shortName:"gz-mainnet",chainId:516,networkId:516,slip44:516,explorers:[],testnet:!1,slug:"gear-zero-network"},bRt={name:"XT Smart Chain Mainnet",chain:"XSC",icon:{url:"ipfs://QmNmAFgQKkjofaBR5mhB5ygE1Gna36YBVsGkgZQxrwW85s",width:98,height:96,format:"png"},rpc:["https://datarpc1.xsc.pub","https://datarpc2.xsc.pub","https://datarpc3.xsc.pub"],faucets:["https://xsc.pub/faucet"],nativeCurrency:{name:"XT Smart Chain Native Token",symbol:"XT",decimals:18},infoURL:"https://xsc.pub/",shortName:"xt",chainId:520,networkId:1024,explorers:[{name:"xscscan",url:"https://xscscan.pub",standard:"EIP3091"}],testnet:!1,slug:"xt-smart-chain"},wRt={name:"Firechain Mainnet",chain:"FIRE",icon:{url:"ipfs://QmYjuztyURb3Fc6ZTLgCbwQa64CcVoigF5j9cafzuSbqgf",width:512,height:512,format:"png"},rpc:["https://mainnet.rpc1.thefirechain.com"],faucets:[],nativeCurrency:{name:"Firechain",symbol:"FIRE",decimals:18},infoURL:"https://thefirechain.com",shortName:"fire",chainId:529,networkId:529,explorers:[],status:"incubating",testnet:!1,slug:"firechain"},xRt={name:"F(x)Core Mainnet Network",chain:"Fxcore",rpc:["https://fx-json-web3.functionx.io:8545"],faucets:[],nativeCurrency:{name:"Function X",symbol:"FX",decimals:18},infoURL:"https://functionx.io/",shortName:"FxCore",chainId:530,networkId:530,icon:{url:"ipfs://bafkreifrf2iq3k3dqfbvp3pacwuxu33up3usmrhojt5ielyfty7xkixu3i",width:500,height:500,format:"png"},explorers:[{name:"FunctionX Explorer",url:"https://fx-evm.functionx.io",standard:"EIP3091"}],testnet:!1,slug:"f-x-core-network"},TRt={name:"Candle",chain:"Candle",rpc:["https://candle-rpc.com/","https://rpc.cndlchain.com"],faucets:[],nativeCurrency:{name:"CANDLE",symbol:"CNDL",decimals:18},infoURL:"https://candlelabs.org/",shortName:"CNDL",chainId:534,networkId:534,slip44:674,explorers:[{name:"candleexplorer",url:"https://candleexplorer.com",standard:"EIP3091"}],testnet:!1,slug:"candle"},_Rt={name:"Vela1 Chain Mainnet",chain:"VELA1",rpc:["https://rpc.velaverse.io"],faucets:[],nativeCurrency:{name:"CLASS COIN",symbol:"CLASS",decimals:18},infoURL:"https://velaverse.io",shortName:"CLASS",chainId:555,networkId:555,explorers:[{name:"Vela1 Chain Mainnet Explorer",url:"https://exp.velaverse.io",standard:"EIP3091"}],testnet:!1,slug:"vela1-chain"},CRt={name:"Tao Network",chain:"TAO",rpc:["https://rpc.testnet.tao.network","http://rpc.testnet.tao.network:8545","https://rpc.tao.network","wss://rpc.tao.network"],faucets:[],nativeCurrency:{name:"Tao",symbol:"TAO",decimals:18},infoURL:"https://tao.network",shortName:"tao",chainId:558,networkId:558,testnet:!0,slug:"tao-network"},ERt={name:"Dogechain Testnet",chain:"DC",icon:{url:"ipfs://QmNS6B6L8FfgGSMTEi2SxD3bK5cdmKPNtQKcYaJeRWrkHs",width:732,height:732,format:"png"},rpc:["https://rpc-testnet.dogechain.dog"],faucets:["https://faucet.dogechain.dog"],nativeCurrency:{name:"Dogecoin",symbol:"DOGE",decimals:18},infoURL:"https://dogechain.dog",shortName:"dct",chainId:568,networkId:568,explorers:[{name:"dogechain testnet explorer",url:"https://explorer-testnet.dogechain.dog",standard:"EIP3091"}],testnet:!0,slug:"dogechain-testnet"},kRt={name:"Astar",chain:"ASTR",rpc:["https://rpc.astar.network:8545"],faucets:[],nativeCurrency:{name:"Astar",symbol:"ASTR",decimals:18},infoURL:"https://astar.network/",shortName:"astr",chainId:592,networkId:592,icon:{url:"ipfs://Qmdvmx3p6gXBCLUMU1qivscaTNkT6h3URdhUTZCHLwKudg",width:1e3,height:1e3,format:"png"},explorers:[{name:"subscan",url:"https://astar.subscan.io",standard:"none",icon:"subscan"}],testnet:!1,slug:"astar"},SRt={name:"Acala Mandala Testnet",chain:"mACA",rpc:[],faucets:[],nativeCurrency:{name:"Acala Mandala Token",symbol:"mACA",decimals:18},infoURL:"https://acala.network",shortName:"maca",chainId:595,networkId:595,testnet:!0,slug:"acala-mandala-testnet"},ARt={name:"Karura Network Testnet",chain:"KAR",rpc:[],faucets:[],nativeCurrency:{name:"Karura Token",symbol:"KAR",decimals:18},infoURL:"https://karura.network",shortName:"tkar",chainId:596,networkId:596,slip44:596,testnet:!0,slug:"karura-network-testnet"},MRt={name:"Acala Network Testnet",chain:"ACA",rpc:[],faucets:[],nativeCurrency:{name:"Acala Token",symbol:"ACA",decimals:18},infoURL:"https://acala.network",shortName:"taca",chainId:597,networkId:597,slip44:597,testnet:!0,slug:"acala-network-testnet"},IRt={name:"Metis Goerli Testnet",chain:"ETH",rpc:["https://goerli.gateway.metisdevops.link"],faucets:["https://goerli.faucet.metisdevops.link"],nativeCurrency:{name:"Goerli Metis",symbol:"METIS",decimals:18},infoURL:"https://www.metis.io",shortName:"metis-goerli",chainId:599,networkId:599,explorers:[{name:"blockscout",url:"https://goerli.explorer.metisdevops.link",standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-4",bridges:[{url:"https://testnet-bridge.metis.io"}]},testnet:!0,slug:"metis-goerli-testnet"},PRt={name:"Meshnyan testnet",chain:"MeshTestChain",rpc:[],faucets:[],nativeCurrency:{name:"Meshnyan Testnet Native Token",symbol:"MESHT",decimals:18},infoURL:"",shortName:"mesh-chain-testnet",chainId:600,networkId:600,testnet:!0,slug:"meshnyan-testnet"},RRt={name:"SX Network Testnet",chain:"SX",icon:{url:"ipfs://QmSXLXqyr2H6Ja5XrmznXbWTEvF2gFaL8RXNXgyLmDHjAF",width:896,height:690,format:"png"},rpc:["https://rpc.toronto.sx.technology"],faucets:["https://faucet.toronto.sx.technology"],nativeCurrency:{name:"SX Network",symbol:"SX",decimals:18},infoURL:"https://www.sx.technology",shortName:"SX-Testnet",chainId:647,networkId:647,explorers:[{name:"SX Network Toronto Explorer",url:"https://explorer.toronto.sx.technology",standard:"EIP3091"}],testnet:!0,slug:"sx-network-testnet"},NRt={name:"Endurance Smart Chain Mainnet",chain:"ACE",rpc:["https://rpc-endurance.fusionist.io/"],faucets:[],nativeCurrency:{name:"Endurance Chain Native Token",symbol:"ACE",decimals:18},infoURL:"https://ace.fusionist.io/",shortName:"ace",chainId:648,networkId:648,explorers:[{name:"Endurance Scan",url:"https://explorer.endurance.fusionist.io",standard:"EIP3091"}],testnet:!1,slug:"endurance-smart-chain"},ORt={name:"Pixie Chain Testnet",chain:"PixieChain",rpc:["https://http-testnet.chain.pixie.xyz","wss://ws-testnet.chain.pixie.xyz"],faucets:["https://chain.pixie.xyz/faucet"],nativeCurrency:{name:"Pixie Chain Testnet Native Token",symbol:"PCTT",decimals:18},infoURL:"https://scan-testnet.chain.pixie.xyz",shortName:"pixie-chain-testnet",chainId:666,networkId:666,testnet:!0,slug:"pixie-chain-testnet"},LRt={name:"Karura Network",chain:"KAR",rpc:[],faucets:[],nativeCurrency:{name:"Karura Token",symbol:"KAR",decimals:18},infoURL:"https://karura.network",shortName:"kar",chainId:686,networkId:686,slip44:686,testnet:!1,slug:"karura-network"},BRt={name:"Star Social Testnet",chain:"SNS",rpc:["https://avastar.cc/ext/bc/C/rpc"],faucets:[],nativeCurrency:{name:"Social",symbol:"SNS",decimals:18},infoURL:"https://info.avastar.cc",shortName:"SNS",chainId:700,networkId:700,explorers:[{name:"starscan",url:"https://avastar.info",standard:"EIP3091"}],testnet:!0,slug:"star-social-testnet"},qRt={name:"BlockChain Station Mainnet",chain:"BCS",rpc:["https://rpc-mainnet.bcsdev.io","wss://rpc-ws-mainnet.bcsdev.io"],faucets:[],nativeCurrency:{name:"BCS Token",symbol:"BCS",decimals:18},infoURL:"https://blockchainstation.io",shortName:"bcs",chainId:707,networkId:707,explorers:[{name:"BlockChain Station Explorer",url:"https://explorer.bcsdev.io",standard:"EIP3091"}],testnet:!1,slug:"blockchain-station"},DRt={name:"BlockChain Station Testnet",chain:"BCS",rpc:["https://rpc-testnet.bcsdev.io","wss://rpc-ws-testnet.bcsdev.io"],faucets:["https://faucet.bcsdev.io"],nativeCurrency:{name:"BCS Testnet Token",symbol:"tBCS",decimals:18},infoURL:"https://blockchainstation.io",shortName:"tbcs",chainId:708,networkId:708,explorers:[{name:"BlockChain Station Explorer",url:"https://testnet.bcsdev.io",standard:"EIP3091"}],testnet:!0,slug:"blockchain-station-testnet"},FRt={name:"Lycan Chain",chain:"LYC",rpc:["https://rpc.lycanchain.com/"],faucets:[],nativeCurrency:{name:"Lycan",symbol:"LYC",decimals:18},infoURL:"https://lycanchain.com",shortName:"LYC",chainId:721,networkId:721,icon:{url:"ipfs://Qmc8hsCbUUjnJDnXrDhFh4V1xk1gJwZbUyNJ39p72javji",width:400,height:400,format:"png"},explorers:[{name:"blockscout",url:"https://explorer.lycanchain.com",standard:"EIP3091"}],testnet:!1,slug:"lycan-chain"},URt={name:"Vention Smart Chain Testnet",chain:"VSCT",icon:{url:"ipfs://QmcNepHmbmHW1BZYM3MFqJW4awwhmDqhUPRXXmRnXwg1U4",width:250,height:250,format:"png"},rpc:["https://node-testnet.vention.network"],faucets:["https://faucet.vention.network"],nativeCurrency:{name:"VNT",symbol:"VNT",decimals:18},infoURL:"https://testnet.ventionscan.io",shortName:"vsct",chainId:741,networkId:741,explorers:[{name:"ventionscan",url:"https://testnet.ventionscan.io",standard:"EIP3091"}],testnet:!0,slug:"vention-smart-chain-testnet"},WRt={name:"QL1",chain:"QOM",status:"incubating",rpc:["https://rpc.qom.one"],faucets:[],nativeCurrency:{name:"Shiba Predator",symbol:"QOM",decimals:18},infoURL:"https://qom.one",shortName:"qom",chainId:766,networkId:766,icon:{url:"ipfs://QmRc1kJ7AgcDL1BSoMYudatWHTrz27K6WNTwGifQb5V17D",width:518,height:518,format:"png"},explorers:[{name:"QL1 Mainnet Explorer",url:"https://mainnet.qom.one",icon:"qom",standard:"EIP3091"}],testnet:!1,slug:"ql1"},jRt={name:"OpenChain Testnet",chain:"OpenChain Testnet",rpc:[],faucets:["https://faucet.openchain.info/"],nativeCurrency:{name:"Openchain Testnet",symbol:"TOPC",decimals:18},infoURL:"https://testnet.openchain.info/",shortName:"opc",chainId:776,networkId:776,explorers:[{name:"OPEN CHAIN TESTNET",url:"https://testnet.openchain.info",standard:"none"}],testnet:!0,slug:"openchain-testnet"},zRt={name:"cheapETH",chain:"cheapETH",rpc:["https://node.cheapeth.org/rpc"],faucets:[],nativeCurrency:{name:"cTH",symbol:"cTH",decimals:18},infoURL:"https://cheapeth.org/",shortName:"cth",chainId:777,networkId:777,testnet:!1,slug:"cheapeth"},HRt={name:"Acala Network",chain:"ACA",rpc:[],faucets:[],nativeCurrency:{name:"Acala Token",symbol:"ACA",decimals:18},infoURL:"https://acala.network",shortName:"aca",chainId:787,networkId:787,slip44:787,testnet:!1,slug:"acala-network"},VRt={name:"Aerochain Testnet",chain:"Aerochain",rpc:["https://testnet-rpc.aerochain.id/"],faucets:["https://faucet.aerochain.id/"],nativeCurrency:{name:"Aerochain Testnet",symbol:"TAero",decimals:18},infoURL:"https://aerochaincoin.org/",shortName:"taero",chainId:788,networkId:788,explorers:[{name:"aeroscan",url:"https://testnet.aeroscan.id",standard:"EIP3091"}],testnet:!0,slug:"aerochain-testnet"},GRt={name:"Lucid Blockchain",chain:"Lucid Blockchain",icon:{url:"ipfs://bafybeigxiyyxll4vst5cjjh732mr6zhsnligxubaldyiul2xdvvi6ibktu",width:800,height:800,format:"png"},rpc:["https://rpc.lucidcoin.io"],faucets:["https://faucet.lucidcoin.io"],nativeCurrency:{name:"LUCID",symbol:"LUCID",decimals:18},infoURL:"https://lucidcoin.io",shortName:"LUCID",chainId:800,networkId:800,explorers:[{name:"Lucid Explorer",url:"https://explorer.lucidcoin.io",standard:"none"}],testnet:!1,slug:"lucid-blockchain"},ZRt={name:"Haic",chain:"Haic",rpc:["https://orig.haichain.io/"],faucets:[],nativeCurrency:{name:"Haicoin",symbol:"HAIC",decimals:18},infoURL:"https://www.haichain.io/",shortName:"haic",chainId:803,networkId:803,testnet:!1,slug:"haic"},JRt={name:"Portal Fantasy Chain Test",chain:"PF",icon:{url:"ipfs://QmeMa6aw3ebUKJdGgbzDgcVtggzp7cQdfSrmzMYmnt5ywc",width:200,height:200,format:"png"},rpc:["https://subnets.avax.network/portal-fantasy/testnet/rpc"],faucets:[],nativeCurrency:{name:"Portal Fantasy Token",symbol:"PFT",decimals:18},infoURL:"https://portalfantasy.io",shortName:"PFTEST",chainId:808,networkId:808,explorers:[],testnet:!0,slug:"portal-fantasy-chain-test"},KRt={name:"Qitmeer",chain:"MEER",rpc:["https://evm-dataseed1.meerscan.io","https://evm-dataseed2.meerscan.io","https://evm-dataseed3.meerscan.io","https://evm-dataseed.meerscan.com","https://evm-dataseed1.meerscan.com","https://evm-dataseed2.meerscan.com"],faucets:[],nativeCurrency:{name:"Qitmeer",symbol:"MEER",decimals:18},infoURL:"https://github.com/Qitmeer",shortName:"meer",chainId:813,networkId:813,slip44:813,icon:{url:"ipfs://QmWSbMuCwQzhBB6GRLYqZ87n5cnpzpYCehCAMMQmUXj4mm",width:512,height:512,format:"png"},explorers:[{name:"meerscan",url:"https://evm.meerscan.com",standard:"none"}],testnet:!1,slug:"qitmeer"},QRt={name:"Callisto Mainnet",chain:"CLO",rpc:["https://rpc.callisto.network/"],faucets:[],nativeCurrency:{name:"Callisto",symbol:"CLO",decimals:18},infoURL:"https://callisto.network",shortName:"clo",chainId:820,networkId:1,slip44:820,testnet:!1,slug:"callisto"},XRt={name:"Taraxa Mainnet",chain:"Tara",icon:{url:"ipfs://QmQhdktNyBeXmCaVuQpi1B4yXheSUKrJA17L4wpECKzG5D",width:310,height:310,format:"png"},rpc:["https://rpc.mainnet.taraxa.io/"],faucets:[],nativeCurrency:{name:"Tara",symbol:"TARA",decimals:18},infoURL:"https://taraxa.io",shortName:"tara",chainId:841,networkId:841,explorers:[{name:"Taraxa Explorer",url:"https://explorer.mainnet.taraxa.io",standard:"none"}],testnet:!1,slug:"taraxa"},YRt={name:"Taraxa Testnet",chain:"Tara",icon:{url:"ipfs://QmQhdktNyBeXmCaVuQpi1B4yXheSUKrJA17L4wpECKzG5D",width:310,height:310,format:"png"},rpc:["https://rpc.testnet.taraxa.io/"],faucets:[],nativeCurrency:{name:"Tara",symbol:"TARA",decimals:18},infoURL:"https://taraxa.io",shortName:"taratest",chainId:842,networkId:842,explorers:[{name:"Taraxa Explorer",url:"https://explorer.testnet.taraxa.io",standard:"none"}],testnet:!0,slug:"taraxa-testnet"},$Rt={name:"Zeeth Chain Dev",chain:"ZeethChainDev",rpc:["https://rpc.dev.zeeth.io"],faucets:[],nativeCurrency:{name:"Zeeth Token",symbol:"ZTH",decimals:18},infoURL:"",shortName:"zeethdev",chainId:859,networkId:859,explorers:[{name:"Zeeth Explorer Dev",url:"https://explorer.dev.zeeth.io",standard:"none"}],testnet:!1,slug:"zeeth-chain-dev"},eNt={name:"Fantasia Chain Mainnet",chain:"FSC",rpc:["https://mainnet-data1.fantasiachain.com/","https://mainnet-data2.fantasiachain.com/","https://mainnet-data3.fantasiachain.com/"],faucets:[],nativeCurrency:{name:"FST",symbol:"FST",decimals:18},infoURL:"https://fantasia.technology/",shortName:"FSCMainnet",chainId:868,networkId:868,explorers:[{name:"FSCScan",url:"https://explorer.fantasiachain.com",standard:"EIP3091"}],testnet:!1,slug:"fantasia-chain"},tNt={name:"Dexit Network",chain:"DXT",rpc:["https://dxt.dexit.network"],faucets:["https://faucet.dexit.network"],nativeCurrency:{name:"Dexit network",symbol:"DXT",decimals:18},infoURL:"https://dexit.network",shortName:"DXT",chainId:877,networkId:877,explorers:[{name:"dxtscan",url:"https://dxtscan.com",standard:"EIP3091"}],testnet:!1,slug:"dexit-network"},rNt={name:"Ambros Chain Mainnet",chain:"ambroschain",rpc:["https://api.ambros.network"],faucets:[],nativeCurrency:{name:"AMBROS",symbol:"AMBROS",decimals:18},infoURL:"https://ambros.network",shortName:"ambros",chainId:880,networkId:880,explorers:[{name:"Ambros Chain Explorer",url:"https://ambrosscan.com",standard:"none"}],testnet:!1,slug:"ambros-chain"},nNt={name:"Wanchain",chain:"WAN",rpc:["https://gwan-ssl.wandevs.org:56891/"],faucets:[],nativeCurrency:{name:"Wancoin",symbol:"WAN",decimals:18},infoURL:"https://www.wanscan.org",shortName:"wan",chainId:888,networkId:888,slip44:5718350,testnet:!1,slug:"wanchain"},aNt={name:"Garizon Testnet Stage0",chain:"GAR",icon:{url:"ipfs://QmW3WRyuLZ95K8hvV2QN6rP5yWY98sSzWyVUxD2eUjXGrc",width:1024,height:613,format:"png"},rpc:["https://s0-testnet.garizon.net/rpc"],faucets:["https://faucet-testnet.garizon.com"],nativeCurrency:{name:"Garizon",symbol:"GAR",decimals:18},infoURL:"https://garizon.com",shortName:"gar-test-s0",chainId:900,networkId:900,explorers:[{name:"explorer",url:"https://explorer-testnet.garizon.com",icon:"garizon",standard:"EIP3091"}],testnet:!0,slug:"garizon-testnet-stage0"},iNt={name:"Garizon Testnet Stage1",chain:"GAR",icon:{url:"ipfs://QmW3WRyuLZ95K8hvV2QN6rP5yWY98sSzWyVUxD2eUjXGrc",width:1024,height:613,format:"png"},rpc:["https://s1-testnet.garizon.net/rpc"],faucets:["https://faucet-testnet.garizon.com"],nativeCurrency:{name:"Garizon",symbol:"GAR",decimals:18},infoURL:"https://garizon.com",shortName:"gar-test-s1",chainId:901,networkId:901,explorers:[{name:"explorer",url:"https://explorer-testnet.garizon.com",icon:"garizon",standard:"EIP3091"}],parent:{chain:"eip155-900",type:"shard"},testnet:!0,slug:"garizon-testnet-stage1"},sNt={name:"Garizon Testnet Stage2",chain:"GAR",icon:{url:"ipfs://QmW3WRyuLZ95K8hvV2QN6rP5yWY98sSzWyVUxD2eUjXGrc",width:1024,height:613,format:"png"},rpc:["https://s2-testnet.garizon.net/rpc"],faucets:["https://faucet-testnet.garizon.com"],nativeCurrency:{name:"Garizon",symbol:"GAR",decimals:18},infoURL:"https://garizon.com",shortName:"gar-test-s2",chainId:902,networkId:902,explorers:[{name:"explorer",url:"https://explorer-testnet.garizon.com",icon:"garizon",standard:"EIP3091"}],parent:{chain:"eip155-900",type:"shard"},testnet:!0,slug:"garizon-testnet-stage2"},oNt={name:"Garizon Testnet Stage3",chain:"GAR",icon:{url:"ipfs://QmW3WRyuLZ95K8hvV2QN6rP5yWY98sSzWyVUxD2eUjXGrc",width:1024,height:613,format:"png"},rpc:["https://s3-testnet.garizon.net/rpc"],faucets:["https://faucet-testnet.garizon.com"],nativeCurrency:{name:"Garizon",symbol:"GAR",decimals:18},infoURL:"https://garizon.com",shortName:"gar-test-s3",chainId:903,networkId:903,explorers:[{name:"explorer",url:"https://explorer-testnet.garizon.com",icon:"garizon",standard:"EIP3091"}],parent:{chain:"eip155-900",type:"shard"},testnet:!0,slug:"garizon-testnet-stage3"},cNt={name:"Portal Fantasy Chain",chain:"PF",icon:{url:"ipfs://QmeMa6aw3ebUKJdGgbzDgcVtggzp7cQdfSrmzMYmnt5ywc",width:200,height:200,format:"png"},rpc:[],faucets:[],nativeCurrency:{name:"Portal Fantasy Token",symbol:"PFT",decimals:18},infoURL:"https://portalfantasy.io",shortName:"PF",chainId:909,networkId:909,explorers:[],status:"incubating",testnet:!1,slug:"portal-fantasy-chain"},uNt={name:"Rinia Testnet",chain:"FIRE",icon:{url:"ipfs://QmRnnw2gtbU9TWJMLJ6tks7SN6HQV5rRugeoyN6csTYHt1",width:512,height:512,format:"png"},rpc:["https://rinia.rpc1.thefirechain.com"],faucets:["https://faucet.thefirechain.com"],nativeCurrency:{name:"Firechain",symbol:"FIRE",decimals:18},infoURL:"https://thefirechain.com",shortName:"tfire",chainId:917,networkId:917,explorers:[],status:"incubating",testnet:!0,slug:"rinia-testnet"},lNt={name:"PulseChain Testnet",shortName:"tpls",chain:"tPLS",chainId:940,networkId:940,infoURL:"https://pulsechain.com/",rpc:["https://rpc.v2.testnet.pulsechain.com/","wss://rpc.v2.testnet.pulsechain.com/"],faucets:["https://faucet.v2.testnet.pulsechain.com/"],nativeCurrency:{name:"Test Pulse",symbol:"tPLS",decimals:18},testnet:!0,slug:"pulsechain-testnet"},dNt={name:"PulseChain Testnet v2b",shortName:"t2bpls",chain:"t2bPLS",chainId:941,networkId:941,infoURL:"https://pulsechain.com/",rpc:["https://rpc.v2b.testnet.pulsechain.com/","wss://rpc.v2b.testnet.pulsechain.com/"],faucets:["https://faucet.v2b.testnet.pulsechain.com/"],nativeCurrency:{name:"Test Pulse",symbol:"tPLS",decimals:18},testnet:!0,slug:"pulsechain-testnet-v2b"},pNt={name:"PulseChain Testnet v3",shortName:"t3pls",chain:"t3PLS",chainId:942,networkId:942,infoURL:"https://pulsechain.com/",rpc:["https://rpc.v3.testnet.pulsechain.com/","wss://rpc.v3.testnet.pulsechain.com/"],faucets:["https://faucet.v3.testnet.pulsechain.com/"],nativeCurrency:{name:"Test Pulse",symbol:"tPLS",decimals:18},testnet:!0,slug:"pulsechain-testnet-v3"},hNt={name:"muNode Testnet",chain:"munode",rpc:[],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://munode.dev/",shortName:"munode",chainId:956,networkId:956,testnet:!0,slug:"munode-testnet"},fNt={name:"Oort Mainnet",chain:"Oort Mainnet",rpc:["https://rpc.oortech.com"],faucets:[],nativeCurrency:{name:"Oort",symbol:"CCN",decimals:18},infoURL:"https://oortech.com",shortName:"ccn",chainId:970,networkId:970,icon:{url:"ipfs://QmZ1jbxFZcuotj3eZ6iKFrg9ZXnaV8AK6sGRa7ELrceWyD",width:1043,height:1079,format:"png"},testnet:!1,slug:"oort"},mNt={name:"Oort Huygens",chain:"Huygens",rpc:[],faucets:[],nativeCurrency:{name:"Oort",symbol:"CCN",decimals:18},infoURL:"https://oortech.com",shortName:"Huygens",chainId:971,networkId:971,icon:{url:"ipfs://QmZ1jbxFZcuotj3eZ6iKFrg9ZXnaV8AK6sGRa7ELrceWyD",width:1043,height:1079,format:"png"},testnet:!1,slug:"oort-huygens"},yNt={name:"Oort Ascraeus",title:"Oort Ascraeus",chain:"Ascraeus",rpc:["https://ascraeus-rpc.oortech.com"],faucets:[],nativeCurrency:{name:"Oort",symbol:"CCNA",decimals:18},infoURL:"https://oortech.com",shortName:"Ascraeus",chainId:972,networkId:972,icon:{url:"ipfs://QmZ1jbxFZcuotj3eZ6iKFrg9ZXnaV8AK6sGRa7ELrceWyD",width:1043,height:1079,format:"png"},testnet:!1,slug:"oort-ascraeus"},gNt={name:"Nepal Blockchain Network",chain:"YETI",rpc:["https://api.nepalblockchain.dev","https://api.nepalblockchain.network"],faucets:["https://faucet.nepalblockchain.network"],nativeCurrency:{name:"Nepal Blockchain Network Ether",symbol:"YETI",decimals:18},infoURL:"https://nepalblockchain.network",shortName:"yeti",chainId:977,networkId:977,testnet:!1,slug:"nepal-blockchain-network"},vNt={name:"TOP Mainnet EVM",chain:"TOP",icon:{url:"ipfs://QmYikaM849eZrL8pGNeVhEHVTKWpxdGMvCY5oFBfZ2ndhd",width:800,height:800,format:"png"},rpc:["https://ethapi.topnetwork.org"],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://www.topnetwork.org/",shortName:"top_evm",chainId:980,networkId:0,explorers:[{name:"topscan.dev",url:"https://www.topscan.io",standard:"none"}],testnet:!1,slug:"top-evm"},bNt={name:"Memo Smart Chain Mainnet",chain:"MEMO",rpc:["https://chain.metamemo.one:8501","wss://chain.metamemo.one:16801"],faucets:["https://faucet.metamemo.one/"],nativeCurrency:{name:"Memo",symbol:"CMEMO",decimals:18},infoURL:"www.memolabs.org",shortName:"memochain",chainId:985,networkId:985,icon:{url:"ipfs://bafkreig52paynhccs4o5ew6f7mk3xoqu2bqtitmfvlgnwarh2pm33gbdrq",width:128,height:128,format:"png"},explorers:[{name:"Memo Mainnet Explorer",url:"https://scan.metamemo.one:8080",icon:"memoscan",standard:"EIP3091"}],testnet:!1,slug:"memo-smart-chain"},wNt={name:"TOP Mainnet",chain:"TOP",icon:{url:"ipfs://QmYikaM849eZrL8pGNeVhEHVTKWpxdGMvCY5oFBfZ2ndhd",width:800,height:800,format:"png"},rpc:[],faucets:[],nativeCurrency:{name:"TOP",symbol:"TOP",decimals:6},infoURL:"https://www.topnetwork.org/",shortName:"top",chainId:989,networkId:0,explorers:[{name:"topscan.dev",url:"https://www.topscan.io",standard:"none"}],testnet:!1,slug:"top"},xNt={name:"Lucky Network",chain:"LN",rpc:["https://rpc.luckynetwork.org","wss://ws.lnscan.org","https://rpc.lnscan.org"],faucets:[],nativeCurrency:{name:"Lucky",symbol:"L99",decimals:18},infoURL:"https://luckynetwork.org",shortName:"ln",chainId:998,networkId:998,icon:{url:"ipfs://bafkreidmvcd5i7touug55hj45mf2pgabxamy5fziva7mtx5n664s3yap6m",width:205,height:28,format:"png"},explorers:[{name:"blockscout",url:"https://explorer.luckynetwork.org",standard:"none"},{name:"expedition",url:"https://lnscan.org",standard:"none"}],testnet:!1,slug:"lucky-network"},TNt={name:"Wanchain Testnet",chain:"WAN",rpc:["https://gwan-ssl.wandevs.org:46891/"],faucets:[],nativeCurrency:{name:"Wancoin",symbol:"WAN",decimals:18},infoURL:"https://testnet.wanscan.org",shortName:"twan",chainId:999,networkId:999,testnet:!0,slug:"wanchain-testnet"},_Nt={name:"GTON Mainnet",chain:"GTON",rpc:["https://rpc.gton.network/"],faucets:[],nativeCurrency:{name:"GCD",symbol:"GCD",decimals:18},infoURL:"https://gton.capital",shortName:"gton",chainId:1e3,networkId:1e3,explorers:[{name:"GTON Network Explorer",url:"https://explorer.gton.network",standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-1"},testnet:!1,slug:"gton"},CNt={name:"Klaytn Testnet Baobab",chain:"KLAY",rpc:["https://api.baobab.klaytn.net:8651"],faucets:["https://baobab.wallet.klaytn.com/access?next=faucet"],nativeCurrency:{name:"KLAY",symbol:"KLAY",decimals:18},infoURL:"https://www.klaytn.com/",shortName:"Baobab",chainId:1001,networkId:1001,testnet:!0,slug:"klaytn-testnet-baobab"},ENt={name:"T-EKTA",title:"EKTA Testnet T-EKTA",chain:"T-EKTA",rpc:["https://test.ekta.io:8545"],faucets:[],nativeCurrency:{name:"T-EKTA",symbol:"T-EKTA",decimals:18},infoURL:"https://www.ekta.io",shortName:"t-ekta",chainId:1004,networkId:1004,icon:{url:"ipfs://QmfMd564KUPK8eKZDwGCT71ZC2jMnUZqP6LCtLpup3rHH1",width:2100,height:2100,format:"png"},explorers:[{name:"test-ektascan",url:"https://test.ektascan.io",icon:"ekta",standard:"EIP3091"}],testnet:!0,slug:"t-ekta"},kNt={name:"Newton Testnet",chain:"NEW",rpc:["https://rpc1.newchain.newtonproject.org"],faucets:[],nativeCurrency:{name:"Newton",symbol:"NEW",decimals:18},infoURL:"https://www.newtonproject.org/",shortName:"tnew",chainId:1007,networkId:1007,testnet:!0,slug:"newton-testnet"},SNt={name:"Eurus Mainnet",chain:"EUN",rpc:["https://mainnet.eurus.network/"],faucets:[],nativeCurrency:{name:"Eurus",symbol:"EUN",decimals:18},infoURL:"https://eurus.network",shortName:"eun",chainId:1008,networkId:1008,icon:{url:"ipfs://QmaGd5L9jGPbfyGXBFhu9gjinWJ66YtNrXq8x6Q98Eep9e",width:471,height:471,format:"svg"},explorers:[{name:"eurusexplorer",url:"https://explorer.eurus.network",icon:"eurus",standard:"none"}],testnet:!1,slug:"eurus"},ANt={name:"Evrice Network",chain:"EVC",rpc:["https://meta.evrice.com"],faucets:[],nativeCurrency:{name:"Evrice",symbol:"EVC",decimals:18},infoURL:"https://evrice.com",shortName:"EVC",chainId:1010,networkId:1010,slip44:1020,testnet:!1,slug:"evrice-network"},MNt={name:"Newton",chain:"NEW",rpc:["https://global.rpc.mainnet.newtonproject.org"],faucets:[],nativeCurrency:{name:"Newton",symbol:"NEW",decimals:18},infoURL:"https://www.newtonproject.org/",shortName:"new",chainId:1012,networkId:1012,testnet:!1,slug:"newton"},INt={name:"Sakura",chain:"Sakura",rpc:[],faucets:[],nativeCurrency:{name:"Sakura",symbol:"SKU",decimals:18},infoURL:"https://clover.finance/sakura",shortName:"sku",chainId:1022,networkId:1022,testnet:!1,slug:"sakura"},PNt={name:"Clover Testnet",chain:"Clover",rpc:[],faucets:[],nativeCurrency:{name:"Clover",symbol:"CLV",decimals:18},infoURL:"https://clover.finance",shortName:"tclv",chainId:1023,networkId:1023,testnet:!0,slug:"clover-testnet"},RNt={name:"CLV Parachain",chain:"CLV",rpc:["https://api-para.clover.finance"],faucets:[],nativeCurrency:{name:"CLV",symbol:"CLV",decimals:18},infoURL:"https://clv.org",shortName:"clv",chainId:1024,networkId:1024,testnet:!1,slug:"clv-parachain"},NNt={name:"BitTorrent Chain Testnet",chain:"BTTC",rpc:["https://testrpc.bittorrentchain.io/"],faucets:[],nativeCurrency:{name:"BitTorrent",symbol:"BTT",decimals:18},infoURL:"https://bittorrentchain.io/",shortName:"tbtt",chainId:1028,networkId:1028,explorers:[{name:"testbttcscan",url:"https://testscan.bittorrentchain.io",standard:"none"}],testnet:!0,slug:"bittorrent-chain-testnet"},ONt={name:"Conflux eSpace",chain:"Conflux",rpc:["https://evm.confluxrpc.com"],faucets:[],nativeCurrency:{name:"CFX",symbol:"CFX",decimals:18},infoURL:"https://confluxnetwork.org",shortName:"cfx",chainId:1030,networkId:1030,icon:{url:"ipfs://bafkreifj7n24u2dslfijfihwqvpdeigt5aj3k3sxv6s35lv75sxsfr3ojy",width:460,height:576,format:"png"},explorers:[{name:"Conflux Scan",url:"https://evm.confluxscan.net",standard:"none"}],testnet:!1,slug:"conflux-espace"},LNt={name:"Proxy Network Testnet",chain:"Proxy Network",rpc:["http://128.199.94.183:8041"],faucets:[],nativeCurrency:{name:"PRX",symbol:"PRX",decimals:18},infoURL:"https://theproxy.network",shortName:"prx",chainId:1031,networkId:1031,explorers:[{name:"proxy network testnet",url:"http://testnet-explorer.theproxy.network",standard:"EIP3091"}],testnet:!0,slug:"proxy-network-testnet"},BNt={name:"Bronos Testnet",chain:"Bronos",rpc:["https://evm-testnet.bronos.org"],faucets:["https://faucet.bronos.org"],nativeCurrency:{name:"tBRO",symbol:"tBRO",decimals:18},infoURL:"https://bronos.org",shortName:"bronos-testnet",chainId:1038,networkId:1038,icon:{url:"ipfs://bafybeifkgtmhnq4sxu6jn22i7ass7aih6ubodr77k6ygtu4tjbvpmkw2ga",width:500,height:500,format:"png"},explorers:[{name:"Bronos Testnet Explorer",url:"https://tbroscan.bronos.org",standard:"none",icon:"bronos"}],testnet:!0,slug:"bronos-testnet"},qNt={name:"Bronos Mainnet",chain:"Bronos",rpc:[],faucets:[],nativeCurrency:{name:"BRO",symbol:"BRO",decimals:18},infoURL:"https://bronos.org",shortName:"bronos-mainnet",chainId:1039,networkId:1039,icon:{url:"ipfs://bafybeifkgtmhnq4sxu6jn22i7ass7aih6ubodr77k6ygtu4tjbvpmkw2ga",width:500,height:500,format:"png"},explorers:[{name:"Bronos Explorer",url:"https://broscan.bronos.org",standard:"none",icon:"bronos"}],testnet:!1,slug:"bronos"},DNt={name:"Metis Andromeda Mainnet",chain:"ETH",rpc:["https://andromeda.metis.io/?owner=1088"],faucets:[],nativeCurrency:{name:"Metis",symbol:"METIS",decimals:18},infoURL:"https://www.metis.io",shortName:"metis-andromeda",chainId:1088,networkId:1088,explorers:[{name:"blockscout",url:"https://andromeda-explorer.metis.io",standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-1",bridges:[{url:"https://bridge.metis.io"}]},testnet:!1,slug:"metis-andromeda"},FNt={name:"MOAC mainnet",chain:"MOAC",rpc:[],faucets:[],nativeCurrency:{name:"MOAC",symbol:"mc",decimals:18},infoURL:"https://moac.io",shortName:"moac",chainId:1099,networkId:1099,slip44:314,explorers:[{name:"moac explorer",url:"https://explorer.moac.io",standard:"none"}],testnet:!1,slug:"moac"},UNt={name:"WEMIX3.0 Mainnet",chain:"WEMIX",rpc:["https://api.wemix.com","wss://ws.wemix.com"],faucets:[],nativeCurrency:{name:"WEMIX",symbol:"WEMIX",decimals:18},infoURL:"https://wemix.com",shortName:"wemix",chainId:1111,networkId:1111,explorers:[{name:"WEMIX Block Explorer",url:"https://explorer.wemix.com",standard:"EIP3091"}],testnet:!1,slug:"wemix3-0"},WNt={name:"WEMIX3.0 Testnet",chain:"TWEMIX",rpc:["https://api.test.wemix.com","wss://ws.test.wemix.com"],faucets:["https://wallet.test.wemix.com/faucet"],nativeCurrency:{name:"TestnetWEMIX",symbol:"tWEMIX",decimals:18},infoURL:"https://wemix.com",shortName:"twemix",chainId:1112,networkId:1112,explorers:[{name:"WEMIX Testnet Microscope",url:"https://microscope.test.wemix.com",standard:"EIP3091"}],testnet:!0,slug:"wemix3-0-testnet"},jNt={name:"Core Blockchain Testnet",chain:"Core",icon:{url:"ipfs://QmeTQaBCkpbsxNNWTpoNrMsnwnAEf1wYTcn7CiiZGfUXD2",width:200,height:217,format:"png"},rpc:["https://rpc.test.btcs.network/"],faucets:["https://scan.test.btcs.network/faucet"],nativeCurrency:{name:"Core Blockchain Testnet Native Token",symbol:"tCORE",decimals:18},infoURL:"https://www.coredao.org",shortName:"tcore",chainId:1115,networkId:1115,explorers:[{name:"Core Scan Testnet",url:"https://scan.test.btcs.network",icon:"core",standard:"EIP3091"}],testnet:!0,slug:"core-blockchain-testnet"},zNt={name:"Core Blockchain Mainnet",chain:"Core",icon:{url:"ipfs://QmeTQaBCkpbsxNNWTpoNrMsnwnAEf1wYTcn7CiiZGfUXD2",width:200,height:217,format:"png"},rpc:["https://rpc.coredao.org/"],faucets:[],nativeCurrency:{name:"Core Blockchain Native Token",symbol:"CORE",decimals:18},infoURL:"https://www.coredao.org",shortName:"core",chainId:1116,networkId:1116,explorers:[{name:"Core Scan",url:"https://scan.coredao.org",icon:"core",standard:"EIP3091"}],testnet:!1,slug:"core-blockchain"},HNt={name:"Dogcoin Mainnet",chain:"DOGS",icon:{url:"ipfs://QmZCadkExKThak3msvszZjo6UnAbUJKE61dAcg4TixuMC3",width:160,height:171,format:"png"},rpc:["https://mainnet-rpc.dogcoin.network"],faucets:["https://faucet.dogcoin.network"],nativeCurrency:{name:"Dogcoin",symbol:"DOGS",decimals:18},infoURL:"https://dogcoin.network",shortName:"DOGSm",chainId:1117,networkId:1117,explorers:[{name:"Dogcoin",url:"https://explorer.dogcoin.network",standard:"EIP3091"}],testnet:!1,slug:"dogcoin"},VNt={name:"DeFiChain EVM Network Mainnet",chain:"defichain-evm",status:"incubating",rpc:[],faucets:[],nativeCurrency:{name:"DeFiChain",symbol:"DFI",decimals:18},infoURL:"https://meta.defichain.com/",shortName:"DFI",chainId:1130,networkId:1130,slip44:1130,icon:{url:"ipfs://QmdR3YL9F95ajwVwfxAGoEzYwm9w7JNsPSfUPjSaQogVjK",width:512,height:512,format:"svg"},explorers:[],testnet:!1,slug:"defichain-evm-network"},GNt={name:"DeFiChain EVM Network Testnet",chain:"defichain-evm-testnet",status:"incubating",rpc:[],faucets:[],nativeCurrency:{name:"DeFiChain",symbol:"DFI",decimals:18},infoURL:"https://meta.defichain.com/",shortName:"DFI-T",chainId:1131,networkId:1131,icon:{url:"ipfs://QmdR3YL9F95ajwVwfxAGoEzYwm9w7JNsPSfUPjSaQogVjK",width:512,height:512,format:"svg"},explorers:[],testnet:!0,slug:"defichain-evm-network-testnet"},ZNt={name:"MathChain",chain:"MATH",rpc:["https://mathchain-asia.maiziqianbao.net/rpc","https://mathchain-us.maiziqianbao.net/rpc"],faucets:[],nativeCurrency:{name:"MathChain",symbol:"MATH",decimals:18},infoURL:"https://mathchain.org",shortName:"MATH",chainId:1139,networkId:1139,testnet:!1,slug:"mathchain"},JNt={name:"MathChain Testnet",chain:"MATH",rpc:["https://galois-hk.maiziqianbao.net/rpc"],faucets:["https://scan.boka.network/#/Galois/faucet"],nativeCurrency:{name:"MathChain",symbol:"MATH",decimals:18},infoURL:"https://mathchain.org",shortName:"tMATH",chainId:1140,networkId:1140,testnet:!0,slug:"mathchain-testnet"},KNt={name:"Smart Host Teknoloji TESTNET",chain:"SHT",rpc:["https://s2.tl.web.tr:4041"],faucets:[],nativeCurrency:{name:"Smart Host Teknoloji TESTNET",symbol:"tSHT",decimals:18},features:[{name:"EIP155"},{name:"EIP1559"}],infoURL:"https://smart-host.com.tr",shortName:"sht",chainId:1177,networkId:1177,icon:{url:"ipfs://QmTrLGHyQ1Le25Q7EgNSF5Qq8D2SocKvroDkLqurdBuSQQ",width:1655,height:1029,format:"png"},explorers:[{name:"Smart Host Teknoloji TESTNET Explorer",url:"https://s2.tl.web.tr:4000",icon:"smarthost",standard:"EIP3091"}],testnet:!0,slug:"smart-host-teknoloji-testnet"},QNt={name:"Iora Chain",chain:"IORA",icon:{url:"ipfs://bafybeiehps5cqdhqottu2efo4jeehwpkz5rbux3cjxd75rm6rjm4sgs2wi",width:250,height:250,format:"png"},rpc:["https://dataseed.iorachain.com"],faucets:[],nativeCurrency:{name:"Iora",symbol:"IORA",decimals:18},infoURL:"https://iorachain.com",shortName:"iora",chainId:1197,networkId:1197,explorers:[{name:"ioraexplorer",url:"https://explorer.iorachain.com",standard:"EIP3091"}],testnet:!1,slug:"iora-chain"},XNt={name:"Evanesco Testnet",chain:"Evanesco Testnet",rpc:["https://seed5.evanesco.org:8547"],faucets:[],nativeCurrency:{name:"AVIS",symbol:"AVIS",decimals:18},infoURL:"https://evanesco.org/",shortName:"avis",chainId:1201,networkId:1201,testnet:!0,slug:"evanesco-testnet"},YNt={name:"World Trade Technical Chain Mainnet",chain:"WTT",rpc:["https://rpc.cadaut.com","wss://rpc.cadaut.com/ws"],faucets:[],nativeCurrency:{name:"World Trade Token",symbol:"WTT",decimals:18},infoURL:"http://www.cadaut.com",shortName:"wtt",chainId:1202,networkId:2048,explorers:[{name:"WTTScout",url:"https://explorer.cadaut.com",standard:"EIP3091"}],testnet:!1,slug:"world-trade-technical-chain"},$Nt={name:"Popcateum Mainnet",chain:"POPCATEUM",rpc:["https://dataseed.popcateum.org"],faucets:[],nativeCurrency:{name:"Popcat",symbol:"POP",decimals:18},infoURL:"https://popcateum.org",shortName:"popcat",chainId:1213,networkId:1213,explorers:[{name:"popcateum explorer",url:"https://explorer.popcateum.org",standard:"none"}],testnet:!1,slug:"popcateum"},eOt={name:"EnterChain Mainnet",chain:"ENTER",rpc:["https://tapi.entercoin.net/"],faucets:[],nativeCurrency:{name:"EnterCoin",symbol:"ENTER",decimals:18},infoURL:"https://entercoin.net",shortName:"enter",chainId:1214,networkId:1214,icon:{url:"ipfs://Qmb2UYVc1MjLPi8vhszWRxqBJYoYkWQVxDJRSmtrgk6j2E",width:64,height:64,format:"png"},explorers:[{name:"Enter Explorer - Expenter",url:"https://explorer.entercoin.net",icon:"enter",standard:"EIP3091"}],testnet:!1,slug:"enterchain"},tOt={name:"Exzo Network Mainnet",chain:"EXZO",icon:{url:"ipfs://QmeYpc2JfEsHa2Bh11SKRx3sgDtMeg6T8KpXNLepBEKnbJ",width:128,height:128,format:"png"},rpc:["https://mainnet.exzo.technology"],faucets:[],nativeCurrency:{name:"Exzo",symbol:"XZO",decimals:18},infoURL:"https://exzo.network",shortName:"xzo",chainId:1229,networkId:1229,explorers:[{name:"blockscout",url:"https://exzoscan.io",standard:"EIP3091"}],testnet:!1,slug:"exzo-network"},rOt={name:"Ultron Testnet",chain:"Ultron",icon:{url:"ipfs://QmS4W4kY7XYBA4f52vuuytXh3YaTcNBXF14V9tEY6SNqhz",width:512,height:512,format:"png"},rpc:["https://ultron-dev.io"],faucets:[],nativeCurrency:{name:"Ultron",symbol:"ULX",decimals:18},infoURL:"https://ultron.foundation",shortName:"UltronTestnet",chainId:1230,networkId:1230,explorers:[{name:"Ultron Testnet Explorer",url:"https://explorer.ultron-dev.io",icon:"ultron",standard:"none"}],testnet:!0,slug:"ultron-testnet"},nOt={name:"Ultron Mainnet",chain:"Ultron",icon:{url:"ipfs://QmS4W4kY7XYBA4f52vuuytXh3YaTcNBXF14V9tEY6SNqhz",width:512,height:512,format:"png"},rpc:["https://ultron-rpc.net"],faucets:[],nativeCurrency:{name:"Ultron",symbol:"ULX",decimals:18},infoURL:"https://ultron.foundation",shortName:"UtronMainnet",chainId:1231,networkId:1231,explorers:[{name:"Ultron Explorer",url:"https://ulxscan.com",icon:"ultron",standard:"none"}],testnet:!1,slug:"ultron"},aOt={name:"Step Network",title:"Step Main Network",chain:"STEP",icon:{url:"ipfs://QmVp9jyb3UFW71867yVtymmiRw7dPY4BTnsp3hEjr9tn8L",width:512,height:512,format:"png"},rpc:["https://rpc.step.network"],faucets:[],nativeCurrency:{name:"FITFI",symbol:"FITFI",decimals:18},infoURL:"https://step.network",shortName:"step",chainId:1234,networkId:1234,explorers:[{name:"StepScan",url:"https://stepscan.io",icon:"step",standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-43114",bridges:[{url:"https://bridge.step.network"}]},testnet:!1,slug:"step-network"},iOt={name:"OM Platform Mainnet",chain:"omplatform",rpc:["https://rpc-cnx.omplatform.com/"],faucets:[],nativeCurrency:{name:"OMCOIN",symbol:"OM",decimals:18},infoURL:"https://omplatform.com/",shortName:"om",chainId:1246,networkId:1246,explorers:[{name:"OMSCAN - Expenter",url:"https://omscan.omplatform.com",standard:"none"}],testnet:!1,slug:"om-platform"},sOt={name:"CIC Chain Testnet",chain:"CICT",rpc:["https://testapi.cicscan.com"],faucets:["https://cicfaucet.com"],nativeCurrency:{name:"Crazy Internet Coin",symbol:"CICT",decimals:18},infoURL:"https://www.cicchain.net",shortName:"CICT",chainId:1252,networkId:1252,icon:{url:"ipfs://QmNekc5gpyrQkeDQcmfJLBrP5fa6GMarB13iy6aHVdQJDU",width:1024,height:768,format:"png"},explorers:[{name:"CICscan",url:"https://testnet.cicscan.com",icon:"cicchain",standard:"EIP3091"}],testnet:!0,slug:"cic-chain-testnet"},oOt={name:"HALO Mainnet",chain:"HALO",rpc:["https://nodes.halo.land"],faucets:[],nativeCurrency:{name:"HALO",symbol:"HO",decimals:18},infoURL:"https://halo.land/#/",shortName:"HO",chainId:1280,networkId:1280,explorers:[{name:"HALOexplorer",url:"https://browser.halo.land",standard:"none"}],testnet:!1,slug:"halo"},cOt={name:"Moonbeam",chain:"MOON",rpc:["https://rpc.api.moonbeam.network","wss://wss.api.moonbeam.network"],faucets:[],nativeCurrency:{name:"Glimmer",symbol:"GLMR",decimals:18},infoURL:"https://moonbeam.network/networks/moonbeam/",shortName:"mbeam",chainId:1284,networkId:1284,explorers:[{name:"moonscan",url:"https://moonbeam.moonscan.io",standard:"none"}],testnet:!1,slug:"moonbeam"},uOt={name:"Moonriver",chain:"MOON",rpc:["https://rpc.api.moonriver.moonbeam.network","wss://wss.api.moonriver.moonbeam.network"],faucets:[],nativeCurrency:{name:"Moonriver",symbol:"MOVR",decimals:18},infoURL:"https://moonbeam.network/networks/moonriver/",shortName:"mriver",chainId:1285,networkId:1285,explorers:[{name:"moonscan",url:"https://moonriver.moonscan.io",standard:"none"}],testnet:!1,slug:"moonriver"},lOt={name:"Moonbase Alpha",chain:"MOON",rpc:["https://rpc.api.moonbase.moonbeam.network","wss://wss.api.moonbase.moonbeam.network"],faucets:[],nativeCurrency:{name:"Dev",symbol:"DEV",decimals:18},infoURL:"https://docs.moonbeam.network/networks/testnet/",shortName:"mbase",chainId:1287,networkId:1287,explorers:[{name:"moonscan",url:"https://moonbase.moonscan.io",standard:"none"}],testnet:!0,slug:"moonbase-alpha"},dOt={name:"Moonrock",chain:"MOON",rpc:["https://rpc.api.moonrock.moonbeam.network","wss://wss.api.moonrock.moonbeam.network"],faucets:[],nativeCurrency:{name:"Rocs",symbol:"ROC",decimals:18},infoURL:"https://docs.moonbeam.network/learn/platform/networks/overview/",shortName:"mrock",chainId:1288,networkId:1288,testnet:!1,slug:"moonrock"},pOt={name:"Bobabeam",chain:"Bobabeam",rpc:["https://bobabeam.boba.network","wss://wss.bobabeam.boba.network","https://replica.bobabeam.boba.network","wss://replica-wss.bobabeam.boba.network"],faucets:[],nativeCurrency:{name:"Boba Token",symbol:"BOBA",decimals:18},infoURL:"https://boba.network",shortName:"Bobabeam",chainId:1294,networkId:1294,explorers:[{name:"Bobabeam block explorer",url:"https://blockexplorer.bobabeam.boba.network",standard:"none"}],testnet:!1,slug:"bobabeam"},hOt={name:"Bobabase Testnet",chain:"Bobabase Testnet",rpc:["https://bobabase.boba.network","wss://wss.bobabase.boba.network","https://replica.bobabase.boba.network","wss://replica-wss.bobabase.boba.network"],faucets:[],nativeCurrency:{name:"Boba Token",symbol:"BOBA",decimals:18},infoURL:"https://boba.network",shortName:"Bobabase",chainId:1297,networkId:1297,explorers:[{name:"Bobabase block explorer",url:"https://blockexplorer.bobabase.boba.network",standard:"none"}],testnet:!0,slug:"bobabase-testnet"},fOt={name:"Dos Fuji Subnet",chain:"DOS",rpc:["https://test.doschain.com/jsonrpc"],faucets:[],nativeCurrency:{name:"Dos Native Token",symbol:"DOS",decimals:18},infoURL:"http://doschain.io/",shortName:"DOS",chainId:1311,networkId:1311,explorers:[{name:"dos-testnet",url:"https://test.doscan.io",standard:"EIP3091"}],testnet:!0,slug:"dos-fuji-subnet"},mOt={name:"Alyx Mainnet",chain:"ALYX",rpc:["https://rpc.alyxchain.com"],faucets:[],nativeCurrency:{name:"Alyx Chain Native Token",symbol:"ALYX",decimals:18},infoURL:"https://www.alyxchain.com",shortName:"alyx",chainId:1314,networkId:1314,explorers:[{name:"alyxscan",url:"https://www.alyxscan.com",standard:"EIP3091"}],icon:{url:"ipfs://bafkreifd43fcvh77mdcwjrpzpnlhthounc6b4u645kukqpqhduaveatf6i",width:2481,height:2481,format:"png"},testnet:!1,slug:"alyx"},yOt={name:"Aitd Mainnet",chain:"AITD",icon:{url:"ipfs://QmXbBMMhjTTGAGjmqMpJm3ufFrtdkfEXCFyXYgz7nnZzsy",width:160,height:160,format:"png"},rpc:["https://walletrpc.aitd.io","https://node.aitd.io"],faucets:[],nativeCurrency:{name:"AITD Mainnet",symbol:"AITD",decimals:18},infoURL:"https://www.aitd.io/",shortName:"aitd",chainId:1319,networkId:1319,explorers:[{name:"AITD Chain Explorer Mainnet",url:"https://aitd-explorer-new.aitd.io",standard:"EIP3091"}],testnet:!1,slug:"aitd"},gOt={name:"Aitd Testnet",chain:"AITD",icon:{url:"ipfs://QmXbBMMhjTTGAGjmqMpJm3ufFrtdkfEXCFyXYgz7nnZzsy",width:160,height:160,format:"png"},rpc:["http://http-testnet.aitd.io"],faucets:["https://aitd-faucet-pre.aitdcoin.com/"],nativeCurrency:{name:"AITD Testnet",symbol:"AITD",decimals:18},infoURL:"https://www.aitd.io/",shortName:"aitdtestnet",chainId:1320,networkId:1320,explorers:[{name:"AITD Chain Explorer Testnet",url:"https://block-explorer-testnet.aitd.io",standard:"EIP3091"}],testnet:!0,slug:"aitd-testnet"},vOt={name:"CIC Chain Mainnet",chain:"CIC",rpc:["https://xapi.cicscan.com"],faucets:[],nativeCurrency:{name:"Crazy Internet Coin",symbol:"CIC",decimals:18},infoURL:"https://www.cicchain.net",shortName:"CIC",chainId:1353,networkId:1353,icon:{url:"ipfs://QmNekc5gpyrQkeDQcmfJLBrP5fa6GMarB13iy6aHVdQJDU",width:1024,height:768,format:"png"},explorers:[{name:"CICscan",url:"https://cicscan.com",icon:"cicchain",standard:"EIP3091"}],testnet:!1,slug:"cic-chain"},bOt={name:"AmStar Mainnet",chain:"AmStar",icon:{url:"ipfs://Qmd4TMQdnYxaUZqnVddh5S37NGH72g2kkK38ccCEgdZz1C",width:599,height:563,format:"png"},rpc:["https://mainnet-rpc.amstarscan.com"],faucets:[],nativeCurrency:{name:"SINSO",symbol:"SINSO",decimals:18},infoURL:"https://sinso.io",shortName:"ASAR",chainId:1388,networkId:1388,explorers:[{name:"amstarscan",url:"https://mainnet.amstarscan.com",standard:"EIP3091"}],testnet:!1,slug:"amstar"},wOt={name:"Polygon zkEVM Testnet",title:"Polygon zkEVM Testnet",chain:"Polygon",rpc:[],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://polygon.technology/solutions/polygon-zkevm/",shortName:"zkevmtest",chainId:1402,networkId:1402,explorers:[{name:"blockscout",url:"https://explorer.public.zkevm-test.net",standard:"EIP3091"}],testnet:!0,slug:"polygon-zkevm-testnet"},xOt={name:"Ctex Scan Blockchain",chain:"Ctex Scan Blockchain",icon:{url:"ipfs://bafkreid5evn4qovxo6msuekizv5zn7va62tea7w2zpdx5sskconebuhqle",width:800,height:800,format:"png"},rpc:["https://mainnet-rpc.ctexscan.com/"],faucets:["https://faucet.ctexscan.com"],nativeCurrency:{name:"CTEX",symbol:"CTEX",decimals:18},infoURL:"https://ctextoken.io",shortName:"CTEX",chainId:1455,networkId:1455,explorers:[{name:"Ctex Scan Explorer",url:"https://ctexscan.com",standard:"none"}],testnet:!1,slug:"ctex-scan-blockchain"},TOt={name:"Sherpax Mainnet",chain:"Sherpax Mainnet",rpc:["https://mainnet.sherpax.io/rpc"],faucets:[],nativeCurrency:{name:"KSX",symbol:"KSX",decimals:18},infoURL:"https://sherpax.io/",shortName:"Sherpax",chainId:1506,networkId:1506,explorers:[{name:"Sherpax Mainnet Explorer",url:"https://evm.sherpax.io",standard:"none"}],testnet:!1,slug:"sherpax"},_Ot={name:"Sherpax Testnet",chain:"Sherpax Testnet",rpc:["https://sherpax-testnet.chainx.org/rpc"],faucets:[],nativeCurrency:{name:"KSX",symbol:"KSX",decimals:18},infoURL:"https://sherpax.io/",shortName:"SherpaxTestnet",chainId:1507,networkId:1507,explorers:[{name:"Sherpax Testnet Explorer",url:"https://evm-pre.sherpax.io",standard:"none"}],testnet:!0,slug:"sherpax-testnet"},COt={name:"Beagle Messaging Chain",chain:"BMC",rpc:["https://beagle.chat/eth"],faucets:["https://faucet.beagle.chat/"],nativeCurrency:{name:"Beagle",symbol:"BG",decimals:18},infoURL:"https://beagle.chat/",shortName:"beagle",chainId:1515,networkId:1515,explorers:[{name:"Beagle Messaging Chain Explorer",url:"https://eth.beagle.chat",standard:"EIP3091"}],testnet:!1,slug:"beagle-messaging-chain"},EOt={name:"Catecoin Chain Mainnet",chain:"Catechain",rpc:["https://send.catechain.com"],faucets:[],nativeCurrency:{name:"Catecoin",symbol:"CATE",decimals:18},infoURL:"https://catechain.com",shortName:"cate",chainId:1618,networkId:1618,testnet:!1,slug:"catecoin-chain"},kOt={name:"Atheios",chain:"ATH",rpc:["https://wallet.atheios.com:8797"],faucets:[],nativeCurrency:{name:"Atheios Ether",symbol:"ATH",decimals:18},infoURL:"https://atheios.com",shortName:"ath",chainId:1620,networkId:11235813,slip44:1620,testnet:!1,slug:"atheios"},SOt={name:"Btachain",chain:"btachain",rpc:["https://dataseed1.btachain.com/"],faucets:[],nativeCurrency:{name:"Bitcoin Asset",symbol:"BTA",decimals:18},infoURL:"https://bitcoinasset.io/",shortName:"bta",chainId:1657,networkId:1657,testnet:!1,slug:"btachain"},AOt={name:"LUDAN Mainnet",chain:"LUDAN",rpc:["https://rpc.ludan.org/"],faucets:[],nativeCurrency:{name:"LUDAN",symbol:"LUDAN",decimals:18},infoURL:"https://www.ludan.org/",shortName:"LUDAN",icon:{url:"ipfs://bafkreigzeanzqgxrzzep45t776ovbwi242poqxbryuu2go5eedeuwwcsay",width:512,height:512,format:"png"},chainId:1688,networkId:1688,testnet:!1,slug:"ludan"},MOt={name:"Anytype EVM Chain",chain:"ETH",icon:{url:"ipfs://QmaARJiAQUn4Z6wG8GLEry3kTeBB3k6RfHzSZU9SPhBgcG",width:200,height:200,format:"png"},rpc:["https://geth.anytype.io"],faucets:["https://evm.anytype.io/faucet"],nativeCurrency:{name:"ANY",symbol:"ANY",decimals:18},infoURL:"https://evm.anytype.io",shortName:"AnytypeChain",chainId:1701,networkId:1701,explorers:[{name:"Anytype Explorer",url:"https://explorer.anytype.io",icon:"any",standard:"EIP3091"}],testnet:!1,slug:"anytype-evm-chain"},IOt={name:"TBSI Mainnet",title:"Thai Blockchain Service Infrastructure Mainnet",chain:"TBSI",rpc:["https://rpc.blockchain.or.th"],faucets:[],nativeCurrency:{name:"Jinda",symbol:"JINDA",decimals:18},infoURL:"https://blockchain.or.th",shortName:"TBSI",chainId:1707,networkId:1707,testnet:!1,slug:"tbsi"},POt={name:"TBSI Testnet",title:"Thai Blockchain Service Infrastructure Testnet",chain:"TBSI",rpc:["https://rpc.testnet.blockchain.or.th"],faucets:["https://faucet.blockchain.or.th"],nativeCurrency:{name:"Jinda",symbol:"JINDA",decimals:18},infoURL:"https://blockchain.or.th",shortName:"tTBSI",chainId:1708,networkId:1708,testnet:!0,slug:"tbsi-testnet"},ROt={name:"Kerleano",title:"Proof of Carbon Reduction testnet",chain:"CRC",status:"active",rpc:["https://cacib-saturn-test.francecentral.cloudapp.azure.com","wss://cacib-saturn-test.francecentral.cloudapp.azure.com:9443"],faucets:["https://github.com/ethereum-pocr/kerleano/blob/main/docs/faucet.md"],nativeCurrency:{name:"Carbon Reduction Coin",symbol:"CRC",decimals:18},infoURL:"https://github.com/ethereum-pocr/kerleano",shortName:"kerleano",chainId:1804,networkId:1804,explorers:[{name:"Lite Explorer",url:"https://ethereum-pocr.github.io/explorer/kerleano",standard:"EIP3091"}],testnet:!0,slug:"kerleano"},NOt={name:"Rabbit Analog Testnet Chain",chain:"rAna",icon:{url:"ipfs://QmdfbjjF3ZzN2jTkH9REgrA8jDS6A6c21n7rbWSVbSnvQc",width:310,height:251,format:"svg"},rpc:["https://rabbit.analog-rpc.com"],faucets:["https://analogfaucet.com"],nativeCurrency:{name:"Rabbit Analog Test Chain Native Token ",symbol:"rAna",decimals:18},infoURL:"https://rabbit.analogscan.com",shortName:"rAna",chainId:1807,networkId:1807,explorers:[{name:"blockscout",url:"https://rabbit.analogscan.com",standard:"none"}],testnet:!0,slug:"rabbit-analog-testnet-chain"},OOt={name:"Cube Chain Mainnet",chain:"Cube",icon:{url:"ipfs://QmbENgHTymTUUArX5MZ2XXH69WGenirU3oamkRD448hYdz",width:282,height:250,format:"png"},rpc:["https://http-mainnet.cube.network","wss://ws-mainnet.cube.network","https://http-mainnet-sg.cube.network","wss://ws-mainnet-sg.cube.network","https://http-mainnet-us.cube.network","wss://ws-mainnet-us.cube.network"],faucets:[],nativeCurrency:{name:"Cube Chain Native Token",symbol:"CUBE",decimals:18},infoURL:"https://www.cube.network",shortName:"cube",chainId:1818,networkId:1818,slip44:1818,explorers:[{name:"cube-scan",url:"https://cubescan.network",standard:"EIP3091"}],testnet:!1,slug:"cube-chain"},LOt={name:"Cube Chain Testnet",chain:"Cube",icon:{url:"ipfs://QmbENgHTymTUUArX5MZ2XXH69WGenirU3oamkRD448hYdz",width:282,height:250,format:"png"},rpc:["https://http-testnet.cube.network","wss://ws-testnet.cube.network","https://http-testnet-sg.cube.network","wss://ws-testnet-sg.cube.network","https://http-testnet-jp.cube.network","wss://ws-testnet-jp.cube.network","https://http-testnet-us.cube.network","wss://ws-testnet-us.cube.network"],faucets:["https://faucet.cube.network"],nativeCurrency:{name:"Cube Chain Test Native Token",symbol:"CUBET",decimals:18},infoURL:"https://www.cube.network",shortName:"cubet",chainId:1819,networkId:1819,slip44:1819,explorers:[{name:"cubetest-scan",url:"https://testnet.cubescan.network",standard:"EIP3091"}],testnet:!0,slug:"cube-chain-testnet"},BOt={name:"Teslafunds",chain:"TSF",rpc:["https://tsfapi.europool.me"],faucets:[],nativeCurrency:{name:"Teslafunds Ether",symbol:"TSF",decimals:18},infoURL:"https://teslafunds.io",shortName:"tsf",chainId:1856,networkId:1,testnet:!1,slug:"teslafunds"},qOt={name:"Gitshock Cartenz Testnet",chain:"Gitshock Cartenz",icon:{url:"ipfs://bafkreifqpj5jkjazvh24muc7wv4r22tihzzl75cevgecxhvojm4ls6mzpq",width:512,height:512,format:"png"},rpc:["https://rpc.cartenz.works"],features:[{name:"EIP155"},{name:"EIP1559"}],faucets:[],nativeCurrency:{name:"Gitshock Cartenz",symbol:"tGTFX",decimals:18},infoURL:"https://gitshock.com",shortName:"gitshockchain",chainId:1881,networkId:1881,explorers:[{name:"blockscout",url:"https://scan.cartenz.works",standard:"EIP3091"}],testnet:!0,slug:"gitshock-cartenz-testnet"},DOt={name:"BON Network",chain:"BON",rpc:["http://rpc.boyanet.org:8545","ws://rpc.boyanet.org:8546"],faucets:[],nativeCurrency:{name:"BOYACoin",symbol:"BOY",decimals:18},infoURL:"https://boyanet.org",shortName:"boya",chainId:1898,networkId:1,explorers:[{name:"explorer",url:"https://explorer.boyanet.org:4001",standard:"EIP3091"}],testnet:!1,slug:"bon-network"},FOt={name:"ONUS Chain Testnet",title:"ONUS Chain Testnet",chain:"onus",rpc:["https://rpc-testnet.onuschain.io"],faucets:[],nativeCurrency:{name:"ONUS",symbol:"ONUS",decimals:18},infoURL:"https://onuschain.io",shortName:"onus-testnet",chainId:1945,networkId:1945,explorers:[{name:"Onus explorer testnet",url:"https://explorer-testnet.onuschain.io",icon:"onus",standard:"EIP3091"}],testnet:!0,slug:"onus-chain-testnet"},UOt={name:"D-Chain Mainnet",chain:"D-Chain",rpc:["https://mainnet.d-chain.network/ext/bc/2ZiR1Bro5E59siVuwdNuRFzqL95NkvkbzyLBdrsYR9BLSHV7H4/rpc"],nativeCurrency:{name:"DOINX",symbol:"DOINX",decimals:18},shortName:"dchain-mainnet",chainId:1951,networkId:1951,icon:{url:"ipfs://QmV2vhTqS9UyrX9Q6BSCbK4JrKBnS8ErHvstMjfb2oVWaj",width:700,height:495,format:"png"},faucets:[],infoURL:"",testnet:!1,slug:"d-chain"},WOt={name:"Atelier",title:"Atelier Test Network",chain:"ALTR",rpc:["https://1971.network/atlr","wss://1971.network/atlr"],faucets:[],nativeCurrency:{name:"ATLR",symbol:"ATLR",decimals:18},infoURL:"https://1971.network/",shortName:"atlr",chainId:1971,networkId:1971,icon:{url:"ipfs://bafkreigcquvoalec3ll2m26v4wsx5enlxwyn6nk2mgfqwncyqrgwivla5u",width:200,height:200,format:"png"},testnet:!0,slug:"atelier"},jOt={name:"ONUS Chain Mainnet",title:"ONUS Chain Mainnet",chain:"onus",rpc:["https://rpc.onuschain.io","wss://ws.onuschain.io"],faucets:[],nativeCurrency:{name:"ONUS",symbol:"ONUS",decimals:18},infoURL:"https://onuschain.io",shortName:"onus-mainnet",chainId:1975,networkId:1975,explorers:[{name:"Onus explorer mainnet",url:"https://explorer.onuschain.io",icon:"onus",standard:"EIP3091"}],testnet:!1,slug:"onus-chain"},zOt={name:"Eurus Testnet",chain:"EUN",rpc:["https://testnet.eurus.network"],faucets:[],nativeCurrency:{name:"Eurus",symbol:"EUN",decimals:18},infoURL:"https://eurus.network",shortName:"euntest",chainId:1984,networkId:1984,icon:{url:"ipfs://QmaGd5L9jGPbfyGXBFhu9gjinWJ66YtNrXq8x6Q98Eep9e",width:471,height:471,format:"svg"},explorers:[{name:"testnetexplorer",url:"https://testnetexplorer.eurus.network",icon:"eurus",standard:"none"}],testnet:!0,slug:"eurus-testnet"},HOt={name:"EtherGem",chain:"EGEM",rpc:["https://jsonrpc.egem.io/custom"],faucets:[],nativeCurrency:{name:"EtherGem Ether",symbol:"EGEM",decimals:18},infoURL:"https://egem.io",shortName:"egem",chainId:1987,networkId:1987,slip44:1987,testnet:!1,slug:"ethergem"},VOt={name:"Ekta",chain:"EKTA",rpc:["https://main.ekta.io"],faucets:[],nativeCurrency:{name:"EKTA",symbol:"EKTA",decimals:18},infoURL:"https://www.ekta.io",shortName:"ekta",chainId:1994,networkId:1994,icon:{url:"ipfs://QmfMd564KUPK8eKZDwGCT71ZC2jMnUZqP6LCtLpup3rHH1",width:2100,height:2100,format:"png"},explorers:[{name:"ektascan",url:"https://ektascan.io",icon:"ekta",standard:"EIP3091"}],testnet:!1,slug:"ekta"},GOt={name:"edeXa Testnet",chain:"edeXa TestNetwork",rpc:["https://testnet.edexa.com/rpc"],faucets:["https://faucet.edexa.com/"],nativeCurrency:{name:"EDEXA",symbol:"EDX",decimals:18},infoURL:"https://edexa.com/",shortName:"edx",chainId:1995,networkId:1995,icon:{url:"ipfs://QmSgvmLpRsCiu2ySqyceA5xN4nwi7URJRNEZLffwEKXdoR",width:1028,height:1042,format:"png"},explorers:[{name:"edexa-testnet",url:"https://explorer.edexa.com",standard:"EIP3091"}],testnet:!0,slug:"edexa-testnet"},ZOt={name:"Dogechain Mainnet",chain:"DC",icon:{url:"ipfs://QmNS6B6L8FfgGSMTEi2SxD3bK5cdmKPNtQKcYaJeRWrkHs",width:732,height:732,format:"png"},rpc:["https://rpc.dogechain.dog","https://rpc-us.dogechain.dog","https://rpc01.dogechain.dog"],faucets:[],nativeCurrency:{name:"Dogecoin",symbol:"DOGE",decimals:18},infoURL:"https://dogechain.dog",shortName:"dc",chainId:2e3,networkId:2e3,explorers:[{name:"dogechain explorer",url:"https://explorer.dogechain.dog",standard:"EIP3091"}],testnet:!1,slug:"dogechain"},JOt={name:"Milkomeda C1 Mainnet",chain:"milkAda",icon:{url:"ipfs://QmdoUtvHDybu5ppYBZT8BMRp6AqByVSoQs8nFwKbaS55jd",width:367,height:367,format:"svg"},rpc:["https://rpc-mainnet-cardano-evm.c1.milkomeda.com","wss://rpc-mainnet-cardano-evm.c1.milkomeda.com"],faucets:[],nativeCurrency:{name:"milkAda",symbol:"mADA",decimals:18},infoURL:"https://milkomeda.com",shortName:"milkAda",chainId:2001,networkId:2001,explorers:[{name:"Blockscout",url:"https://explorer-mainnet-cardano-evm.c1.milkomeda.com",standard:"none"}],testnet:!1,slug:"milkomeda-c1"},KOt={name:"Milkomeda A1 Mainnet",chain:"milkALGO",icon:{url:"ipfs://QmdoUtvHDybu5ppYBZT8BMRp6AqByVSoQs8nFwKbaS55jd",width:367,height:367,format:"svg"},rpc:["https://rpc-mainnet-algorand-rollup.a1.milkomeda.com","wss://rpc-mainnet-algorand-rollup.a1.milkomeda.com/ws"],faucets:[],nativeCurrency:{name:"milkALGO",symbol:"mALGO",decimals:18},infoURL:"https://milkomeda.com",shortName:"milkALGO",chainId:2002,networkId:2002,explorers:[{name:"Blockscout",url:"https://explorer-mainnet-algorand-rollup.a1.milkomeda.com",standard:"none"}],testnet:!1,slug:"milkomeda-a1"},QOt={name:"CloudWalk Testnet",chain:"CloudWalk Testnet",rpc:[],faucets:[],nativeCurrency:{name:"CloudWalk Native Token",symbol:"CWN",decimals:18},infoURL:"https://cloudwalk.io",shortName:"cloudwalk_testnet",chainId:2008,networkId:2008,explorers:[{name:"CloudWalk Testnet Explorer",url:"https://explorer.testnet.cloudwalk.io",standard:"none"}],testnet:!0,slug:"cloudwalk-testnet"},XOt={name:"CloudWalk Mainnet",chain:"CloudWalk Mainnet",rpc:[],faucets:[],nativeCurrency:{name:"CloudWalk Native Token",symbol:"CWN",decimals:18},infoURL:"https://cloudwalk.io",shortName:"cloudwalk_mainnet",chainId:2009,networkId:2009,explorers:[{name:"CloudWalk Mainnet Explorer",url:"https://explorer.mainnet.cloudwalk.io",standard:"none"}],testnet:!1,slug:"cloudwalk"},YOt={name:"MainnetZ Mainnet",chain:"NetZ",icon:{url:"ipfs://QmT5gJ5weBiLT3GoYuF5yRTRLdPLCVZ3tXznfqW7M8fxgG",width:400,height:400,format:"png"},rpc:["https://mainnet-rpc.mainnetz.io"],faucets:["https://faucet.mainnetz.io"],nativeCurrency:{name:"MainnetZ",symbol:"NetZ",decimals:18},infoURL:"https://mainnetz.io",shortName:"NetZm",chainId:2016,networkId:2016,explorers:[{name:"MainnetZ",url:"https://explorer.mainnetz.io",standard:"EIP3091"}],testnet:!1,slug:"z-mainnet"},$Ot={name:"PublicMint Devnet",title:"Public Mint Devnet",chain:"PublicMint",rpc:["https://rpc.dev.publicmint.io:8545"],faucets:[],nativeCurrency:{name:"USD",symbol:"USD",decimals:18},infoURL:"https://publicmint.com",shortName:"pmint_dev",chainId:2018,networkId:2018,slip44:60,explorers:[{name:"PublicMint Explorer",url:"https://explorer.dev.publicmint.io",standard:"EIP3091"}],testnet:!1,slug:"publicmint-devnet"},eLt={name:"PublicMint Testnet",title:"Public Mint Testnet",chain:"PublicMint",rpc:["https://rpc.tst.publicmint.io:8545"],faucets:[],nativeCurrency:{name:"USD",symbol:"USD",decimals:18},infoURL:"https://publicmint.com",shortName:"pmint_test",chainId:2019,networkId:2019,slip44:60,explorers:[{name:"PublicMint Explorer",url:"https://explorer.tst.publicmint.io",standard:"EIP3091"}],testnet:!0,slug:"publicmint-testnet"},tLt={name:"PublicMint Mainnet",title:"Public Mint Mainnet",chain:"PublicMint",rpc:["https://rpc.publicmint.io:8545"],faucets:[],nativeCurrency:{name:"USD",symbol:"USD",decimals:18},infoURL:"https://publicmint.com",shortName:"pmint",chainId:2020,networkId:2020,slip44:60,explorers:[{name:"PublicMint Explorer",url:"https://explorer.publicmint.io",standard:"EIP3091"}],testnet:!1,slug:"publicmint"},rLt={name:"Edgeware Mainnet",chain:"EDG",rpc:["https://mainnet1.edgewa.re"],faucets:[],nativeCurrency:{name:"Edge",symbol:"EDG",decimals:18},infoURL:"http://edgewa.re",shortName:"edg",chainId:2021,networkId:2021,testnet:!1,slug:"edgeware"},nLt={name:"Beresheet Testnet",chain:"EDG",rpc:["https://beresheet1.edgewa.re"],faucets:[],nativeCurrency:{name:"Testnet Edge",symbol:"tEDG",decimals:18},infoURL:"http://edgewa.re",shortName:"edgt",chainId:2022,networkId:2022,testnet:!0,slug:"beresheet-testnet"},aLt={name:"Taycan Testnet",chain:"Taycan",rpc:["https://test-taycan.hupayx.io"],faucets:["https://ttaycan-faucet.hupayx.io/"],nativeCurrency:{name:"test-Shuffle",symbol:"tSFL",decimals:18},infoURL:"https://hupayx.io",shortName:"taycan-testnet",chainId:2023,networkId:2023,icon:{url:"ipfs://bafkreidvjcc73v747lqlyrhgbnkvkdepdvepo6baj6hmjsmjtvdyhmzzmq",width:1e3,height:1206,format:"png"},explorers:[{name:"Taycan Explorer(Blockscout)",url:"https://evmscan-test.hupayx.io",standard:"none",icon:"shuffle"},{name:"Taycan Cosmos Explorer",url:"https://cosmoscan-test.hupayx.io",standard:"none",icon:"shuffle"}],testnet:!0,slug:"taycan-testnet"},iLt={name:"Rangers Protocol Mainnet",chain:"Rangers",icon:{url:"ipfs://QmfHG3xbg4iiopagww93Gu7tmvCpPwZdiwsUjd3Dt5mRwT",width:835,height:835,format:"png"},rpc:["https://mainnet.rangersprotocol.com/api/jsonrpc"],faucets:[],nativeCurrency:{name:"Rangers Protocol Gas",symbol:"RPG",decimals:18},infoURL:"https://rangersprotocol.com",shortName:"rpg",chainId:2025,networkId:2025,slip44:1008,explorers:[{name:"rangersscan",url:"https://scan.rangersprotocol.com",standard:"none"}],testnet:!1,slug:"rangers-protocol"},sLt={name:"OriginTrail Parachain",chain:"OTP",rpc:["https://astrosat.origintrail.network","wss://parachain-rpc.origin-trail.network"],faucets:[],nativeCurrency:{name:"OriginTrail Parachain Token",symbol:"OTP",decimals:12},infoURL:"https://parachain.origintrail.io",shortName:"otp",chainId:2043,networkId:2043,testnet:!1,slug:"origintrail-parachain"},oLt={name:"Stratos Testnet",chain:"STOS",rpc:["https://web3-testnet-rpc.thestratos.org"],faucets:[],nativeCurrency:{name:"STOS",symbol:"STOS",decimals:18},infoURL:"https://www.thestratos.org",shortName:"stos-testnet",chainId:2047,networkId:2047,explorers:[{name:"Stratos EVM Explorer (Blockscout)",url:"https://web3-testnet-explorer.thestratos.org",standard:"none"},{name:"Stratos Cosmos Explorer (BigDipper)",url:"https://big-dipper-dev.thestratos.org",standard:"none"}],testnet:!0,slug:"stratos-testnet"},cLt={name:"Stratos Mainnet",chain:"STOS",rpc:[],faucets:[],nativeCurrency:{name:"STOS",symbol:"STOS",decimals:18},infoURL:"https://www.thestratos.org",shortName:"stos-mainnet",chainId:2048,networkId:2048,status:"incubating",testnet:!1,slug:"stratos"},uLt={name:"Quokkacoin Mainnet",chain:"Qkacoin",rpc:["https://rpc.qkacoin.org"],faucets:[],nativeCurrency:{name:"Qkacoin",symbol:"QKA",decimals:18},infoURL:"https://qkacoin.org",shortName:"QKA",chainId:2077,networkId:2077,explorers:[{name:"blockscout",url:"https://explorer.qkacoin.org",standard:"EIP3091"}],testnet:!1,slug:"quokkacoin"},lLt={name:"Ecoball Mainnet",chain:"ECO",rpc:["https://api.ecoball.org/ecoball/"],faucets:[],nativeCurrency:{name:"Ecoball Coin",symbol:"ECO",decimals:18},infoURL:"https://ecoball.org",shortName:"eco",chainId:2100,networkId:2100,explorers:[{name:"Ecoball Explorer",url:"https://scan.ecoball.org",standard:"EIP3091"}],testnet:!1,slug:"ecoball"},dLt={name:"Ecoball Testnet Espuma",chain:"ECO",rpc:["https://api.ecoball.org/espuma/"],faucets:[],nativeCurrency:{name:"Espuma Coin",symbol:"ECO",decimals:18},infoURL:"https://ecoball.org",shortName:"esp",chainId:2101,networkId:2101,explorers:[{name:"Ecoball Testnet Explorer",url:"https://espuma-scan.ecoball.org",standard:"EIP3091"}],testnet:!0,slug:"ecoball-testnet-espuma"},pLt={name:"Exosama Network",chain:"EXN",rpc:["https://rpc.exosama.com","wss://rpc.exosama.com"],faucets:[],nativeCurrency:{name:"Sama Token",symbol:"SAMA",decimals:18},infoURL:"https://moonsama.com",shortName:"exn",chainId:2109,networkId:2109,slip44:2109,icon:{url:"ipfs://QmaQxfwpXYTomUd24PMx5tKjosupXcm99z1jL1XLq9LWBS",width:468,height:468,format:"png"},explorers:[{name:"blockscout",url:"https://explorer.exosama.com",icon:"blockscout",standard:"EIP3091"}],testnet:!1,slug:"exosama-network"},hLt={name:"Metaplayerone Mainnet",chain:"METAD",icon:{url:"ipfs://QmZyxS9BfRGYWWDtvrV6qtthCYV4TwdjLoH2sF6MkiTYFf",width:1280,height:1280,format:"png"},rpc:["https://rpc.metaplayer.one/"],faucets:[],nativeCurrency:{name:"METAD",symbol:"METAD",decimals:18},infoURL:"https://docs.metaplayer.one/",shortName:"Metad",chainId:2122,networkId:2122,explorers:[{name:"Metad Scan",url:"https://scan.metaplayer.one",icon:"metad",standard:"EIP3091"}],testnet:!1,slug:"metaplayerone"},fLt={name:"BOSagora Mainnet",chain:"ETH",rpc:["https://mainnet.bosagora.org","https://rpc.bosagora.org"],faucets:[],nativeCurrency:{name:"BOSAGORA",symbol:"BOA",decimals:18},infoURL:"https://docs.bosagora.org",shortName:"boa",chainId:2151,networkId:2151,icon:{url:"ipfs://QmW3CT4SHmso5dRJdsjR8GL1qmt79HkdAebCn2uNaWXFYh",width:256,height:257,format:"png"},explorers:[{name:"BOASCAN",url:"https://boascan.io",icon:"agora",standard:"EIP3091"}],testnet:!1,slug:"bosagora"},mLt={name:"Findora Mainnet",chain:"Findora",rpc:["https://rpc-mainnet.findora.org"],faucets:[],nativeCurrency:{name:"FRA",symbol:"FRA",decimals:18},infoURL:"https://findora.org/",shortName:"fra",chainId:2152,networkId:2152,explorers:[{name:"findorascan",url:"https://evm.findorascan.io",standard:"EIP3091"}],testnet:!1,slug:"findora"},yLt={name:"Findora Testnet",chain:"Testnet-anvil",rpc:["https://prod-testnet.prod.findora.org:8545/"],faucets:[],nativeCurrency:{name:"FRA",symbol:"FRA",decimals:18},infoURL:"https://findora.org/",shortName:"findora-testnet",chainId:2153,networkId:2153,explorers:[{name:"findorascan",url:"https://testnet-anvil.evm.findorascan.io",standard:"EIP3091"}],testnet:!0,slug:"findora-testnet"},gLt={name:"Findora Forge",chain:"Testnet-forge",rpc:["https://prod-forge.prod.findora.org:8545/"],faucets:[],nativeCurrency:{name:"FRA",symbol:"FRA",decimals:18},infoURL:"https://findora.org/",shortName:"findora-forge",chainId:2154,networkId:2154,explorers:[{name:"findorascan",url:"https://testnet-forge.evm.findorascan.io",standard:"EIP3091"}],testnet:!0,slug:"findora-forge"},vLt={name:"Bitcoin EVM",chain:"Bitcoin EVM",rpc:["https://connect.bitcoinevm.com"],faucets:[],nativeCurrency:{name:"Bitcoin",symbol:"eBTC",decimals:18},infoURL:"https://bitcoinevm.com",shortName:"eBTC",chainId:2203,networkId:2203,icon:{url:"ipfs://bafkreic4aq265oaf6yze7ba5okefqh6vnqudyrz6ovukvbnrlhet36itle",width:200,height:200,format:"png"},explorers:[{name:"Explorer",url:"https://explorer.bitcoinevm.com",icon:"ebtc",standard:"none"}],testnet:!1,slug:"bitcoin-evm"},bLt={name:"Evanesco Mainnet",chain:"EVA",rpc:["https://seed4.evanesco.org:8546"],faucets:[],nativeCurrency:{name:"EVA",symbol:"EVA",decimals:18},infoURL:"https://evanesco.org/",shortName:"evanesco",chainId:2213,networkId:2213,icon:{url:"ipfs://QmZbmGYdfbMRrWJore3c7hyD6q7B5pXHJqTSNjbZZUK6V8",width:200,height:200,format:"png"},explorers:[{name:"Evanesco Explorer",url:"https://explorer.evanesco.org",standard:"none"}],testnet:!1,slug:"evanesco"},wLt={name:"Kava EVM Testnet",chain:"KAVA",rpc:["https://evm.testnet.kava.io","wss://wevm.testnet.kava.io"],faucets:["https://faucet.kava.io"],nativeCurrency:{name:"TKava",symbol:"TKAVA",decimals:18},infoURL:"https://www.kava.io",shortName:"tkava",chainId:2221,networkId:2221,icon:{url:"ipfs://QmdpRTk6oL1HRW9xC6cAc4Rnf9gs6zgdAcr4Z3HcLztusm",width:1186,height:360,format:"svg"},explorers:[{name:"Kava Testnet Explorer",url:"https://explorer.testnet.kava.io",standard:"EIP3091",icon:"kava"}],testnet:!0,slug:"kava-evm-testnet"},xLt={name:"Kava EVM",chain:"KAVA",rpc:["https://evm.kava.io","https://evm2.kava.io","wss://wevm.kava.io","wss://wevm2.kava.io"],faucets:[],nativeCurrency:{name:"Kava",symbol:"KAVA",decimals:18},infoURL:"https://www.kava.io",shortName:"kava",chainId:2222,networkId:2222,icon:{url:"ipfs://QmdpRTk6oL1HRW9xC6cAc4Rnf9gs6zgdAcr4Z3HcLztusm",width:1186,height:360,format:"svg"},explorers:[{name:"Kava EVM Explorer",url:"https://explorer.kava.io",standard:"EIP3091",icon:"kava"}],testnet:!1,slug:"kava-evm"},TLt={name:"VChain Mainnet",chain:"VChain",rpc:["https://bc.vcex.xyz"],faucets:[],nativeCurrency:{name:"VNDT",symbol:"VNDT",decimals:18},infoURL:"https://bo.vcex.xyz/",shortName:"VChain",chainId:2223,networkId:2223,explorers:[{name:"VChain Scan",url:"https://scan.vcex.xyz",standard:"EIP3091"}],testnet:!1,slug:"vchain"},_Lt={name:"BOMB Chain",chain:"BOMB",rpc:["https://rpc.bombchain.com"],faucets:[],nativeCurrency:{name:"BOMB Token",symbol:"BOMB",decimals:18},infoURL:"https://www.bombchain.com",shortName:"bomb",chainId:2300,networkId:2300,icon:{url:"ipfs://Qmc44uSjfdNHdcxPTgZAL8eZ8TLe4UmSHibcvKQFyGJxTB",width:1024,height:1024,format:"png"},explorers:[{name:"bombscan",icon:"bomb",url:"https://bombscan.com",standard:"EIP3091"}],testnet:!1,slug:"bomb-chain"},CLt={name:"Altcoinchain",chain:"mainnet",rpc:["https://rpc0.altcoinchain.org/rpc"],faucets:[],nativeCurrency:{name:"Altcoin",symbol:"ALT",decimals:18},infoURL:"https://altcoinchain.org",shortName:"alt",chainId:2330,networkId:2330,icon:{url:"ipfs://QmYwHmGC9CRVcKo1LSesqxU31SDj9vk2iQxcFjQArzhix4",width:720,height:720,format:"png"},status:"active",explorers:[{name:"expedition",url:"http://expedition.altcoinchain.org",icon:"altcoinchain",standard:"none"}],testnet:!1,slug:"altcoinchain"},ELt={name:"BOMB Chain Testnet",chain:"BOMB",rpc:["https://bombchain-testnet.ankr.com/bas_full_rpc_1"],faucets:["https://faucet.bombchain-testnet.ankr.com/"],nativeCurrency:{name:"BOMB Token",symbol:"tBOMB",decimals:18},infoURL:"https://www.bombmoney.com",shortName:"bombt",chainId:2399,networkId:2399,icon:{url:"ipfs://Qmc44uSjfdNHdcxPTgZAL8eZ8TLe4UmSHibcvKQFyGJxTB",width:1024,height:1024,format:"png"},explorers:[{name:"bombscan-testnet",icon:"bomb",url:"https://explorer.bombchain-testnet.ankr.com",standard:"EIP3091"}],testnet:!0,slug:"bomb-chain-testnet"},kLt={name:"TCG Verse Mainnet",chain:"TCG Verse",icon:{url:"ipfs://bafkreidg4wpewve5mdxrofneqblydkrjl3oevtgpdf3fk3z3vjqam6ocoe",width:350,height:350,format:"png"},rpc:["https://rpc.tcgverse.xyz"],faucets:[],nativeCurrency:{name:"OAS",symbol:"OAS",decimals:18},infoURL:"https://tcgverse.xyz/",shortName:"TCGV",chainId:2400,networkId:2400,explorers:[{name:"TCG Verse Explorer",url:"https://explorer.tcgverse.xyz",standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-248"},testnet:!1,slug:"tcg-verse"},SLt={name:"XODEX",chain:"XODEX",rpc:["https://mainnet.xo-dex.com/rpc","https://xo-dex.io"],faucets:[],nativeCurrency:{name:"XODEX Native Token",symbol:"XODEX",decimals:18},infoURL:"https://xo-dex.com",shortName:"xodex",chainId:2415,networkId:10,icon:{url:"ipfs://QmXt49jPfHUmDF4n8TF7ks6txiPztx6qUHanWmHnCoEAhW",width:256,height:256,format:"png"},explorers:[{name:"XODEX Explorer",url:"https://explorer.xo-dex.com",standard:"EIP3091",icon:"xodex"}],testnet:!1,slug:"xodex"},ALt={name:"Kortho Mainnet",chain:"Kortho Chain",rpc:["https://www.kortho-chain.com"],faucets:[],nativeCurrency:{name:"KorthoChain",symbol:"KTO",decimals:11},infoURL:"https://www.kortho.io/",shortName:"ktoc",chainId:2559,networkId:2559,testnet:!1,slug:"kortho"},MLt={name:"TechPay Mainnet",chain:"TPC",rpc:["https://api.techpay.io/"],faucets:[],nativeCurrency:{name:"TechPay",symbol:"TPC",decimals:18},infoURL:"https://techpay.io/",shortName:"tpc",chainId:2569,networkId:2569,icon:{url:"ipfs://QmQyTyJUnhD1dca35Vyj96pm3v3Xyw8xbG9m8HXHw3k2zR",width:578,height:701,format:"svg"},explorers:[{name:"tpcscan",url:"https://tpcscan.com",icon:"techpay",standard:"EIP3091"}],testnet:!1,slug:"techpay"},ILt={name:"PoCRNet",title:"Proof of Carbon Reduction mainnet",chain:"CRC",status:"active",rpc:["https://pocrnet.westeurope.cloudapp.azure.com/http","wss://pocrnet.westeurope.cloudapp.azure.com/ws"],faucets:[],nativeCurrency:{name:"Carbon Reduction Coin",symbol:"CRC",decimals:18},infoURL:"https://github.com/ethereum-pocr/pocrnet",shortName:"pocrnet",chainId:2606,networkId:2606,explorers:[{name:"Lite Explorer",url:"https://ethereum-pocr.github.io/explorer/pocrnet",standard:"EIP3091"}],testnet:!1,slug:"pocrnet"},PLt={name:"Redlight Chain Mainnet",chain:"REDLC",rpc:["https://dataseed2.redlightscan.finance"],faucets:[],nativeCurrency:{name:"Redlight Coin",symbol:"REDLC",decimals:18},infoURL:"https://redlight.finance/",shortName:"REDLC",chainId:2611,networkId:2611,explorers:[{name:"REDLC Explorer",url:"https://redlightscan.finance",standard:"EIP3091"}],testnet:!1,slug:"redlight-chain"},RLt={name:"EZChain C-Chain Mainnet",chain:"EZC",rpc:["https://api.ezchain.com/ext/bc/C/rpc"],faucets:[],nativeCurrency:{name:"EZChain",symbol:"EZC",decimals:18},infoURL:"https://ezchain.com",shortName:"EZChain",chainId:2612,networkId:2612,icon:{url:"ipfs://QmPKJbYCFjGmY9X2cA4b9YQjWYHQncmKnFtKyQh9rHkFTb",width:146,height:48,format:"png"},explorers:[{name:"ezchain",url:"https://cchain-explorer.ezchain.com",standard:"EIP3091"}],testnet:!1,slug:"ezchain-c-chain"},NLt={name:"EZChain C-Chain Testnet",chain:"EZC",rpc:["https://testnet-api.ezchain.com/ext/bc/C/rpc"],faucets:["https://testnet-faucet.ezchain.com"],nativeCurrency:{name:"EZChain",symbol:"EZC",decimals:18},infoURL:"https://ezchain.com",shortName:"Fuji-EZChain",chainId:2613,networkId:2613,icon:{url:"ipfs://QmPKJbYCFjGmY9X2cA4b9YQjWYHQncmKnFtKyQh9rHkFTb",width:146,height:48,format:"png"},explorers:[{name:"ezchain",url:"https://testnet-cchain-explorer.ezchain.com",standard:"EIP3091"}],testnet:!0,slug:"ezchain-c-chain-testnet"},OLt={name:"Boba Network Goerli Testnet",chain:"ETH",rpc:["https://goerli.boba.network/"],faucets:[],nativeCurrency:{name:"Goerli Ether",symbol:"ETH",decimals:18},infoURL:"https://boba.network",shortName:"Bobagoerli",chainId:2888,networkId:2888,explorers:[{name:"Blockscout",url:"https://testnet.bobascan.com",standard:"none"}],parent:{type:"L2",chain:"eip155-5",bridges:[{url:"https://gateway.goerli.boba.network"}]},testnet:!0,slug:"boba-network-goerli-testnet"},LLt={name:"BitYuan Mainnet",chain:"BTY",rpc:["https://mainnet.bityuan.com/eth"],faucets:[],nativeCurrency:{name:"BTY",symbol:"BTY",decimals:18},infoURL:"https://www.bityuan.com",shortName:"bty",chainId:2999,networkId:2999,icon:{url:"ipfs://QmUmJVof2m5e4HUXb3GmijWUFsLUNhrQiwwQG3CqcXEtHt",width:91,height:24,format:"png"},explorers:[{name:"BitYuan Block Chain Explorer",url:"https://mainnet.bityuan.com",standard:"none"}],testnet:!1,slug:"bityuan"},BLt={name:"CENNZnet Rata",chain:"CENNZnet",rpc:[],faucets:["https://app-faucet.centrality.me"],nativeCurrency:{name:"CPAY",symbol:"CPAY",decimals:18},infoURL:"https://cennz.net",shortName:"cennz-r",chainId:3e3,networkId:3e3,icon:{url:"ipfs://QmWhNm7tTi6SYbiumULDRk956hxgqaZSX77vcxBNn8fvnw",width:112,height:112,format:"svg"},testnet:!1,slug:"cennznet-rata"},qLt={name:"CENNZnet Nikau",chain:"CENNZnet",rpc:["https://nikau.centrality.me/public"],faucets:["https://app-faucet.centrality.me"],nativeCurrency:{name:"CPAY",symbol:"CPAY",decimals:18},infoURL:"https://cennz.net",shortName:"cennz-n",chainId:3001,networkId:3001,icon:{url:"ipfs://QmWhNm7tTi6SYbiumULDRk956hxgqaZSX77vcxBNn8fvnw",width:112,height:112,format:"svg"},explorers:[{name:"UNcover",url:"https://www.uncoverexplorer.com/?network=Nikau",standard:"none"}],testnet:!1,slug:"cennznet-nikau"},DLt={name:"Orlando Chain",chain:"ORL",rpc:["https://rpc-testnet.orlchain.com"],faucets:[],nativeCurrency:{name:"Orlando",symbol:"ORL",decimals:18},infoURL:"https://orlchain.com",shortName:"ORL",chainId:3031,networkId:3031,icon:{url:"ipfs://QmNsuuBBTHErnuFDcdyzaY8CKoVJtobsLJx2WQjaPjcp7g",width:512,height:528,format:"png"},explorers:[{name:"Orlando (ORL) Explorer",url:"https://orlscan.com",icon:"orl",standard:"EIP3091"}],testnet:!0,slug:"orlando-chain"},FLt={name:"Bifrost Mainnet",title:"The Bifrost Mainnet network",chain:"BFC",rpc:["https://public-01.mainnet.thebifrost.io/rpc","https://public-02.mainnet.thebifrost.io/rpc"],faucets:[],nativeCurrency:{name:"Bifrost",symbol:"BFC",decimals:18},infoURL:"https://thebifrost.io",shortName:"bfc",chainId:3068,networkId:3068,icon:{url:"ipfs://QmcHvn2Wq91ULyEH5s3uHjosX285hUgyJHwggFJUd3L5uh",width:128,height:128,format:"png"},explorers:[{name:"explorer-thebifrost",url:"https://explorer.mainnet.thebifrost.io",standard:"EIP3091"}],testnet:!1,slug:"bifrost"},ULt={name:"Filecoin - Hyperspace testnet",chain:"FIL",icon:{url:"ipfs://QmS9r9XQkMHVomWcSBNDkKkz9n87h9bH9ssabeiKZtANoU",width:1e3,height:1e3,format:"png"},rpc:["https://api.hyperspace.node.glif.io/rpc/v1","https://filecoin-hyperspace.chainstacklabs.com/rpc/v1"],faucets:["https://hyperspace.yoga/#faucet"],nativeCurrency:{name:"testnet filecoin",symbol:"tFIL",decimals:18},infoURL:"https://filecoin.io",shortName:"filecoin-hyperspace",chainId:3141,networkId:3141,slip44:1,explorers:[{name:"Filfox - Hyperspace",url:"https://hyperspace.filfox.info/en",standard:"none"},{name:"Glif Explorer - Hyperspace",url:"https://explorer.glif.io/?network=hyperspace",standard:"none"},{name:"Beryx",url:"https://beryx.zondax.ch",standard:"none"},{name:"Filmine",url:"https://explorer.filmine.io",standard:"none"},{name:"Filscan - Hyperspace",url:"https://hyperspace.filscan.io",standard:"none"}],testnet:!0,slug:"filecoin-hyperspace-testnet"},WLt={name:"Debounce Subnet Testnet",chain:"Debounce Network",icon:{url:"ipfs://bafybeib5q4hez37s7b2fx4hqt2q4ji2tuudxjhfdgnp6q3d5mqm6wsxdfq",width:256,height:256,format:"png"},rpc:["https://dev-rpc.debounce.network"],faucets:[],nativeCurrency:{name:"Debounce Network",symbol:"DB",decimals:18},infoURL:"https://debounce.network",shortName:"debounce-devnet",chainId:3306,networkId:3306,explorers:[{name:"Debounce Devnet Explorer",url:"https://explorer.debounce.network",standard:"EIP3091"}],testnet:!0,slug:"debounce-subnet-testnet"},jLt={name:"ZCore Testnet",chain:"Beach",icon:{url:"ipfs://QmQnXu13ym8W1VA3QxocaNVXGAuEPmamSCkS7bBscVk1f4",width:1050,height:1050,format:"png"},rpc:["https://rpc-testnet.zcore.cash"],faucets:["https://faucet.zcore.cash"],nativeCurrency:{name:"ZCore",symbol:"ZCR",decimals:18},infoURL:"https://zcore.cash",shortName:"zcrbeach",chainId:3331,networkId:3331,testnet:!0,slug:"zcore-testnet"},zLt={name:"Web3Q Testnet",chain:"Web3Q",rpc:["https://testnet.web3q.io:8545"],faucets:[],nativeCurrency:{name:"Web3Q",symbol:"W3Q",decimals:18},infoURL:"https://testnet.web3q.io/home.w3q/",shortName:"w3q-t",chainId:3333,networkId:3333,explorers:[{name:"w3q-testnet",url:"https://explorer.testnet.web3q.io",standard:"EIP3091"}],testnet:!0,slug:"web3q-testnet"},HLt={name:"Web3Q Galileo",chain:"Web3Q",rpc:["https://galileo.web3q.io:8545"],faucets:[],nativeCurrency:{name:"Web3Q",symbol:"W3Q",decimals:18},infoURL:"https://galileo.web3q.io/home.w3q/",shortName:"w3q-g",chainId:3334,networkId:3334,explorers:[{name:"w3q-galileo",url:"https://explorer.galileo.web3q.io",standard:"EIP3091"}],testnet:!1,slug:"web3q-galileo"},VLt={name:"Paribu Net Mainnet",chain:"PRB",rpc:["https://rpc.paribu.network"],faucets:[],nativeCurrency:{name:"PRB",symbol:"PRB",decimals:18},infoURL:"https://net.paribu.com",shortName:"prb",chainId:3400,networkId:3400,icon:{url:"ipfs://QmVgc77jYo2zrxQjhYwT4KzvSrSZ1DBJraJVX57xAvP8MD",width:2362,height:2362,format:"png"},explorers:[{name:"Paribu Net Explorer",url:"https://explorer.paribu.network",icon:"explorer",standard:"EIP3091"}],testnet:!1,slug:"paribu-net"},GLt={name:"Paribu Net Testnet",chain:"PRB",rpc:["https://rpc.testnet.paribuscan.com"],faucets:["https://faucet.paribuscan.com"],nativeCurrency:{name:"PRB",symbol:"PRB",decimals:18},infoURL:"https://net.paribu.com",shortName:"prbtestnet",chainId:3500,networkId:3500,icon:{url:"ipfs://QmVgc77jYo2zrxQjhYwT4KzvSrSZ1DBJraJVX57xAvP8MD",width:2362,height:2362,format:"png"},explorers:[{name:"Paribu Net Testnet Explorer",url:"https://testnet.paribuscan.com",icon:"explorer",standard:"EIP3091"}],testnet:!0,slug:"paribu-net-testnet"},ZLt={name:"JFIN Chain",chain:"JFIN",rpc:["https://rpc.jfinchain.com"],faucets:[],nativeCurrency:{name:"JFIN Coin",symbol:"jfin",decimals:18},infoURL:"https://jfinchain.com",shortName:"jfin",chainId:3501,networkId:3501,explorers:[{name:"JFIN Chain Explorer",url:"https://exp.jfinchain.com",standard:"EIP3091"}],testnet:!1,slug:"jfin-chain"},JLt={name:"PandoProject Mainnet",chain:"PandoProject",icon:{url:"ipfs://QmNduBtT5BNGDw7DjRwDvaZBb6gjxf46WD7BYhn4gauGc9",width:1e3,height:1628,format:"png"},rpc:["https://eth-rpc-api.pandoproject.org/rpc"],faucets:[],nativeCurrency:{name:"pando-token",symbol:"PTX",decimals:18},infoURL:"https://www.pandoproject.org/",shortName:"pando-mainnet",chainId:3601,networkId:3601,explorers:[{name:"Pando Mainnet Explorer",url:"https://explorer.pandoproject.org",standard:"none"}],testnet:!1,slug:"pandoproject"},KLt={name:"PandoProject Testnet",chain:"PandoProject",icon:{url:"ipfs://QmNduBtT5BNGDw7DjRwDvaZBb6gjxf46WD7BYhn4gauGc9",width:1e3,height:1628,format:"png"},rpc:["https://testnet.ethrpc.pandoproject.org/rpc"],faucets:[],nativeCurrency:{name:"pando-token",symbol:"PTX",decimals:18},infoURL:"https://www.pandoproject.org/",shortName:"pando-testnet",chainId:3602,networkId:3602,explorers:[{name:"Pando Testnet Explorer",url:"https://testnet.explorer.pandoproject.org",standard:"none"}],testnet:!0,slug:"pandoproject-testnet"},QLt={name:"Metacodechain",chain:"metacode",rpc:["https://j.blockcoach.com:8503"],faucets:[],nativeCurrency:{name:"J",symbol:"J",decimals:18},infoURL:"https://j.blockcoach.com:8089",shortName:"metacode",chainId:3666,networkId:3666,explorers:[{name:"meta",url:"https://j.blockcoach.com:8089",standard:"EIP3091"}],testnet:!1,slug:"metacodechain"},XLt={name:"Bittex Mainnet",chain:"BTX",rpc:["https://rpc1.bittexscan.info","https://rpc2.bittexscan.info"],faucets:[],nativeCurrency:{name:"Bittex",symbol:"BTX",decimals:18},infoURL:"https://bittexscan.com",shortName:"btx",chainId:3690,networkId:3690,icon:{url:"ipfs://QmdwQDr6vmBtXmK2TmknkEuZNoaDqTasFdZdu3DRw8b2wt",width:1e3,height:1628,format:"png"},explorers:[{name:"bittexscan",url:"https://bittexscan.com",icon:"etherscan",standard:"EIP3091"}],testnet:!1,slug:"bittex"},YLt={name:"Empire Network",chain:"EMPIRE",rpc:["https://rpc.empirenetwork.io"],faucets:[],nativeCurrency:{name:"Empire",symbol:"EMPIRE",decimals:18},infoURL:"https://www.empirenetwork.io/",shortName:"empire",chainId:3693,networkId:3693,explorers:[{name:"Empire Explorer",url:"https://explorer.empirenetwork.io",standard:"none"}],testnet:!1,slug:"empire-network"},$Lt={name:"Crossbell",chain:"Crossbell",rpc:["https://rpc.crossbell.io"],faucets:["https://faucet.crossbell.io"],nativeCurrency:{name:"Crossbell Token",symbol:"CSB",decimals:18},infoURL:"https://crossbell.io",shortName:"csb",chainId:3737,networkId:3737,icon:{url:"ipfs://QmS8zEetTb6pwdNpVjv5bz55BXiSMGP9BjTJmNcjcUT91t",format:"svg",width:408,height:408},explorers:[{name:"Crossbell Explorer",url:"https://scan.crossbell.io",standard:"EIP3091"}],testnet:!1,slug:"crossbell"},eBt={name:"DRAC Network",chain:"DRAC",rpc:["https://www.dracscan.com/rpc"],faucets:["https://www.dracscan.io/faucet"],nativeCurrency:{name:"DRAC",symbol:"DRAC",decimals:18},infoURL:"https://drac.io/",shortName:"drac",features:[{name:"EIP155"},{name:"EIP1559"}],chainId:3912,networkId:3912,icon:{url:"ipfs://QmXbsQe7QsVFZJZdBmbZVvS6LgX9ZFoaTMBs9MiQXUzJTw",width:256,height:256,format:"png"},explorers:[{name:"DRAC_Network Scan",url:"https://www.dracscan.io",icon:"DRAC",standard:"EIP3091"}],testnet:!1,slug:"drac-network"},tBt={name:"DYNO Mainnet",chain:"DYNO",rpc:["https://api.dynoprotocol.com"],faucets:["https://faucet.dynoscan.io"],nativeCurrency:{name:"DYNO Token",symbol:"DYNO",decimals:18},infoURL:"https://dynoprotocol.com",shortName:"dyno",chainId:3966,networkId:3966,explorers:[{name:"DYNO Explorer",url:"https://dynoscan.io",standard:"EIP3091"}],testnet:!1,slug:"dyno"},rBt={name:"DYNO Testnet",chain:"DYNO",rpc:["https://tapi.dynoprotocol.com"],faucets:["https://faucet.dynoscan.io"],nativeCurrency:{name:"DYNO Token",symbol:"tDYNO",decimals:18},infoURL:"https://dynoprotocol.com",shortName:"tdyno",chainId:3967,networkId:3967,explorers:[{name:"DYNO Explorer",url:"https://testnet.dynoscan.io",standard:"EIP3091"}],testnet:!0,slug:"dyno-testnet"},nBt={name:"YuanChain Mainnet",chain:"YCC",rpc:["https://mainnet.yuan.org/eth"],faucets:[],nativeCurrency:{name:"YCC",symbol:"YCC",decimals:18},infoURL:"https://www.yuan.org",shortName:"ycc",chainId:3999,networkId:3999,icon:{url:"ipfs://QmdbPhiB5W2gbHZGkYsN7i2VTKKP9casmAN2hRnpDaL9W4",width:96,height:96,format:"png"},explorers:[{name:"YuanChain Explorer",url:"https://mainnet.yuan.org",standard:"none"}],testnet:!1,slug:"yuanchain"},aBt={name:"Fantom Testnet",chain:"FTM",rpc:["https://fantom-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.testnet.fantom.network"],faucets:["https://faucet.fantom.network"],nativeCurrency:{name:"Fantom",symbol:"FTM",decimals:18},infoURL:"https://docs.fantom.foundation/quick-start/short-guide#fantom-testnet",shortName:"tftm",chainId:4002,networkId:4002,icon:{url:"ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/fantom/512.png",height:512,width:512,format:"png",sizes:[512,256,128,64,32,16]},explorers:[{name:"ftmscan",url:"https://testnet.ftmscan.com",icon:"ftmscan",standard:"EIP3091"}],testnet:!0,slug:"fantom-testnet"},iBt={name:"Bobaopera Testnet",chain:"Bobaopera Testnet",rpc:["https://testnet.bobaopera.boba.network","wss://wss.testnet.bobaopera.boba.network","https://replica.testnet.bobaopera.boba.network","wss://replica-wss.testnet.bobaopera.boba.network"],faucets:[],nativeCurrency:{name:"Boba Token",symbol:"BOBA",decimals:18},infoURL:"https://boba.network",shortName:"BobaoperaTestnet",chainId:4051,networkId:4051,explorers:[{name:"Bobaopera Testnet block explorer",url:"https://blockexplorer.testnet.bobaopera.boba.network",standard:"none"}],testnet:!0,slug:"bobaopera-testnet"},sBt={name:"Bitindi Testnet",chain:"BNI",icon:{url:"ipfs://QmRAFFPiLiSgjGTs9QaZdnR9fsDgyUdTejwSxcnPXo292s",width:60,height:72,format:"png"},rpc:["https://testnet-rpc.bitindi.org"],faucets:["https://faucet.bitindi.org"],nativeCurrency:{name:"BNI",symbol:"$BNI",decimals:18},infoURL:"https://bitindi.org",shortName:"BNIt",chainId:4096,networkId:4096,explorers:[{name:"Bitindi",url:"https://testnet.bitindiscan.com",standard:"EIP3091"}],testnet:!0,slug:"bitindi-testnet"},oBt={name:"Bitindi Mainnet",chain:"BNI",icon:{url:"ipfs://QmRAFFPiLiSgjGTs9QaZdnR9fsDgyUdTejwSxcnPXo292s",width:60,height:72,format:"png"},rpc:["https://mainnet-rpc.bitindi.org"],faucets:["https://faucet.bitindi.org"],nativeCurrency:{name:"BNI",symbol:"$BNI",decimals:18},infoURL:"https://bitindi.org",shortName:"BNIm",chainId:4099,networkId:4099,explorers:[{name:"Bitindi",url:"https://bitindiscan.com",standard:"EIP3091"}],testnet:!1,slug:"bitindi"},cBt={name:"AIOZ Network Testnet",chain:"AIOZ",icon:{url:"ipfs://QmRAGPFhvQiXgoJkui7WHajpKctGFrJNhHqzYdwcWt5V3Z",width:1024,height:1024,format:"png"},rpc:["https://eth-ds.testnet.aioz.network"],faucets:[],nativeCurrency:{name:"testAIOZ",symbol:"AIOZ",decimals:18},infoURL:"https://aioz.network",shortName:"aioz-testnet",chainId:4102,networkId:4102,slip44:60,explorers:[{name:"AIOZ Network Testnet Explorer",url:"https://testnet.explorer.aioz.network",standard:"EIP3091"}],testnet:!0,slug:"aioz-network-testnet"},uBt={name:"PHI Network V1",chain:"PHI V1",rpc:["https://rpc1.phi.network","https://rpc2.phi.network"],faucets:[],nativeCurrency:{name:"PHI",symbol:"\u03A6",decimals:18},infoURL:"https://phi.network",shortName:"PHIv1",chainId:4181,networkId:4181,icon:{url:"ipfs://bafkreid6pm3mic7izp3a6zlfwhhe7etd276bjfsq2xash6a4s2vmcdf65a",width:512,height:512,format:"png"},explorers:[{name:"PHI Explorer",url:"https://explorer.phi.network",icon:"phi",standard:"none"}],testnet:!1,slug:"phi-network-v1"},lBt={name:"Bobafuji Testnet",chain:"Bobafuji Testnet",rpc:["https://testnet.avax.boba.network","wss://wss.testnet.avax.boba.network","https://replica.testnet.avax.boba.network","wss://replica-wss.testnet.avax.boba.network"],faucets:[],nativeCurrency:{name:"Boba Token",symbol:"BOBA",decimals:18},infoURL:"https://boba.network",shortName:"BobaFujiTestnet",chainId:4328,networkId:4328,explorers:[{name:"Bobafuji Testnet block explorer",url:"https://blockexplorer.testnet.avax.boba.network",standard:"none"}],testnet:!0,slug:"bobafuji-testnet"},dBt={name:"Htmlcoin Mainnet",chain:"mainnet",rpc:["https://janus.htmlcoin.com/api/"],faucets:["https://gruvin.me/htmlcoin"],nativeCurrency:{name:"Htmlcoin",symbol:"HTML",decimals:8},infoURL:"https://htmlcoin.com",shortName:"html",chainId:4444,networkId:4444,icon:{url:"ipfs://QmR1oDRSadPerfyWMhKHNP268vPKvpczt5zPawgFSZisz2",width:1e3,height:1e3,format:"png"},status:"active",explorers:[{name:"htmlcoin",url:"https://explorer.htmlcoin.com",icon:"htmlcoin",standard:"none"}],testnet:!1,slug:"htmlcoin"},pBt={name:"IoTeX Network Mainnet",chain:"iotex.io",rpc:["https://babel-api.mainnet.iotex.io"],faucets:[],nativeCurrency:{name:"IoTeX",symbol:"IOTX",decimals:18},infoURL:"https://iotex.io",shortName:"iotex-mainnet",chainId:4689,networkId:4689,explorers:[{name:"iotexscan",url:"https://iotexscan.io",standard:"EIP3091"}],testnet:!1,slug:"iotex-network"},hBt={name:"IoTeX Network Testnet",chain:"iotex.io",rpc:["https://babel-api.testnet.iotex.io"],faucets:["https://faucet.iotex.io/"],nativeCurrency:{name:"IoTeX",symbol:"IOTX",decimals:18},infoURL:"https://iotex.io",shortName:"iotex-testnet",chainId:4690,networkId:4690,explorers:[{name:"testnet iotexscan",url:"https://testnet.iotexscan.io",standard:"EIP3091"}],testnet:!0,slug:"iotex-network-testnet"},fBt={name:"Venidium Testnet",chain:"XVM",rpc:["https://rpc-evm-testnet.venidium.io"],faucets:[],nativeCurrency:{name:"Venidium",symbol:"XVM",decimals:18},infoURL:"https://venidium.io",shortName:"txvm",chainId:4918,networkId:4918,explorers:[{name:"Venidium EVM Testnet Explorer",url:"https://evm-testnet.venidiumexplorer.com",standard:"EIP3091"}],testnet:!0,slug:"venidium-testnet"},mBt={name:"Venidium Mainnet",chain:"XVM",icon:{url:"ipfs://bafkreiaplwlym5g27jm4mjhotfqq6al2cxp3fnkmzdusqjg7wnipq5wn2e",width:1e3,height:1e3,format:"png"},rpc:["https://rpc.venidium.io"],faucets:[],nativeCurrency:{name:"Venidium",symbol:"XVM",decimals:18},infoURL:"https://venidium.io",shortName:"xvm",chainId:4919,networkId:4919,explorers:[{name:"Venidium Explorer",url:"https://evm.venidiumexplorer.com",standard:"EIP3091"}],testnet:!1,slug:"venidium"},yBt={name:"Mantle",chain:"ETH",rpc:["https://rpc.mantle.xyz"],faucets:[],nativeCurrency:{name:"BitDAO",symbol:"BIT",decimals:18},infoURL:"https://mantle.xyz",shortName:"mantle",chainId:5e3,networkId:5e3,explorers:[{name:"Mantle Explorer",url:"https://explorer.mantle.xyz",standard:"EIP3091"}],testnet:!1,slug:"mantle"},gBt={name:"Mantle Testnet",chain:"ETH",rpc:["https://rpc.testnet.mantle.xyz"],faucets:["https://faucet.testnet.mantle.xyz"],nativeCurrency:{name:"Testnet BitDAO",symbol:"BIT",decimals:18},infoURL:"https://mantle.xyz",shortName:"mantle-testnet",chainId:5001,networkId:5001,explorers:[{name:"Mantle Testnet Explorer",url:"https://explorer.testnet.mantle.xyz",standard:"EIP3091"}],testnet:!0,slug:"mantle-testnet"},vBt={name:"TLChain Network Mainnet",chain:"TLC",icon:{url:"ipfs://QmaR5TsgnWSjLys6wGaciKUbc5qYL3Es4jtgQcosVqDWR3",width:2048,height:2048,format:"png"},rpc:["https://mainnet-rpc.tlxscan.com/"],faucets:[],nativeCurrency:{name:"TLChain Network",symbol:"TLC",decimals:18},infoURL:"https://tlchain.network/",shortName:"tlc",chainId:5177,networkId:5177,explorers:[{name:"TLChain Explorer",url:"https://explorer.tlchain.network",standard:"none"}],testnet:!1,slug:"tlchain-network"},bBt={name:"EraSwap Mainnet",chain:"ESN",icon:{url:"ipfs://QmV1wZ1RVXeD7216aiVBpLkbBBHWNuoTvcSzpVQsqi2uaH",width:200,height:200,format:"png"},rpc:["https://mainnet.eraswap.network","https://rpc-mumbai.mainnet.eraswap.network"],faucets:[],nativeCurrency:{name:"EraSwap",symbol:"ES",decimals:18},infoURL:"https://eraswap.info/",shortName:"es",chainId:5197,networkId:5197,testnet:!1,slug:"eraswap"},wBt={name:"Humanode Mainnet",chain:"HMND",rpc:["https://explorer-rpc-http.mainnet.stages.humanode.io"],faucets:[],nativeCurrency:{name:"HMND",symbol:"HMND",decimals:18},infoURL:"https://humanode.io",shortName:"hmnd",chainId:5234,networkId:5234,explorers:[],testnet:!1,slug:"humanode"},xBt={name:"Uzmi Network Mainnet",chain:"UZMI",rpc:["https://network.uzmigames.com.br/"],faucets:[],nativeCurrency:{name:"UZMI",symbol:"UZMI",decimals:18},infoURL:"https://uzmigames.com.br/",shortName:"UZMI",chainId:5315,networkId:5315,testnet:!1,slug:"uzmi-network"},TBt={name:"Nahmii Mainnet",chain:"Nahmii",rpc:["https://l2.nahmii.io"],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://nahmii.io",shortName:"Nahmii",chainId:5551,networkId:5551,icon:{url:"ipfs://QmZhKXgoGpzvthr2eh8ZNgT75YvMtEBegdELAaMPPzf5QT",width:384,height:384,format:"png"},explorers:[{name:"Nahmii mainnet explorer",url:"https://explorer.nahmii.io",icon:"nahmii",standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-1",bridges:[{url:"https://bridge.nahmii.io"}]},testnet:!1,slug:"nahmii"},_Bt={name:"Nahmii Testnet",chain:"Nahmii",rpc:["https://l2.testnet.nahmii.io"],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://nahmii.io",shortName:"NahmiiTestnet",chainId:5553,networkId:5553,icon:{url:"ipfs://QmZhKXgoGpzvthr2eh8ZNgT75YvMtEBegdELAaMPPzf5QT",width:384,height:384,format:"png"},explorers:[{name:"blockscout",url:"https://explorer.testnet.nahmii.io",icon:"nahmii",standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-3",bridges:[{url:"https://bridge.nahmii.io"}]},testnet:!0,slug:"nahmii-testnet"},CBt={name:"Chain Verse Mainnet",chain:"CVERSE",icon:{url:"ipfs://QmQyJt28h4wN3QHPXUQJQYQqGiFUD77han3zibZPzHbitk",width:1e3,height:1436,format:"png"},rpc:["https://rpc.chainverse.info"],faucets:[],nativeCurrency:{name:"Oasys",symbol:"OAS",decimals:18},infoURL:"https://chainverse.info",shortName:"cverse",chainId:5555,networkId:5555,explorers:[{name:"Chain Verse Explorer",url:"https://explorer.chainverse.info",standard:"EIP3091"}],testnet:!1,slug:"chain-verse"},EBt={name:"Syscoin Tanenbaum Testnet",chain:"SYS",rpc:["https://rpc.tanenbaum.io","wss://rpc.tanenbaum.io/wss"],faucets:["https://faucet.tanenbaum.io"],nativeCurrency:{name:"Testnet Syscoin",symbol:"tSYS",decimals:18},infoURL:"https://syscoin.org",shortName:"tsys",chainId:5700,networkId:5700,explorers:[{name:"Syscoin Testnet Block Explorer",url:"https://tanenbaum.io",standard:"EIP3091"}],testnet:!0,slug:"syscoin-tanenbaum-testnet"},kBt={name:"Ganache",title:"Ganache GUI Ethereum Testnet",chain:"ETH",icon:{url:"ipfs://Qmc9N7V8CiLB4r7FEcG7GojqfiGGsRCZqcFWCahwMohbDW",width:267,height:300,format:"png"},rpc:["https://127.0.0.1:7545"],faucets:[],nativeCurrency:{name:"Ganache Test Ether",symbol:"ETH",decimals:18},infoURL:"https://trufflesuite.com/ganache/",shortName:"ggui",chainId:5777,networkId:5777,explorers:[],testnet:!0,slug:"ganache"},SBt={name:"Ontology Testnet",chain:"Ontology",icon:{url:"ipfs://bafkreigmvn6spvbiirtutowpq6jmetevbxoof5plzixjoerbeswy4htfb4",width:400,height:400,format:"png"},rpc:["http://polaris1.ont.io:20339","http://polaris2.ont.io:20339","http://polaris3.ont.io:20339","http://polaris4.ont.io:20339","https://polaris1.ont.io:10339","https://polaris2.ont.io:10339","https://polaris3.ont.io:10339","https://polaris4.ont.io:10339"],faucets:["https://developer.ont.io/"],nativeCurrency:{name:"ONG",symbol:"ONG",decimals:18},infoURL:"https://ont.io/",shortName:"OntologyTestnet",chainId:5851,networkId:5851,explorers:[{name:"explorer",url:"https://explorer.ont.io/testnet",standard:"EIP3091"}],testnet:!0,slug:"ontology-testnet"},ABt={name:"Wegochain Rubidium Mainnet",chain:"RBD",rpc:["https://proxy.wegochain.io","http://wallet.wegochain.io:7764"],faucets:[],nativeCurrency:{name:"Rubid",symbol:"RBD",decimals:18},infoURL:"https://www.wegochain.io",shortName:"rbd",chainId:5869,networkId:5869,explorers:[{name:"wegoscan2",url:"https://scan2.wegochain.io",standard:"EIP3091"}],testnet:!1,slug:"wegochain-rubidium"},MBt={name:"Tres Testnet",chain:"TresLeches",rpc:["https://rpc-test.tresleches.finance/"],faucets:["http://faucet.tresleches.finance:8080"],nativeCurrency:{name:"TRES",symbol:"TRES",decimals:18},infoURL:"https://treschain.com",shortName:"TRESTEST",chainId:6065,networkId:6065,icon:{url:"ipfs://QmS33ypsZ1Hx5LMMACaJaxePy9QNYMwu4D12niobExLK74",width:512,height:512,format:"png"},explorers:[{name:"treslechesexplorer",url:"https://explorer-test.tresleches.finance",icon:"treslechesexplorer",standard:"EIP3091"}],testnet:!0,slug:"tres-testnet"},IBt={name:"Tres Mainnet",chain:"TresLeches",rpc:["https://rpc.tresleches.finance/","https://rpc.treschain.io/"],faucets:[],nativeCurrency:{name:"TRES",symbol:"TRES",decimals:18},infoURL:"https://treschain.com",shortName:"TRESMAIN",chainId:6066,networkId:6066,icon:{url:"ipfs://QmS33ypsZ1Hx5LMMACaJaxePy9QNYMwu4D12niobExLK74",width:512,height:512,format:"png"},explorers:[{name:"treslechesexplorer",url:"https://explorer.tresleches.finance",icon:"treslechesexplorer",standard:"EIP3091"}],testnet:!1,slug:"tres"},PBt={name:"Pixie Chain Mainnet",chain:"PixieChain",rpc:["https://http-mainnet.chain.pixie.xyz","wss://ws-mainnet.chain.pixie.xyz"],faucets:[],nativeCurrency:{name:"Pixie Chain Native Token",symbol:"PIX",decimals:18},infoURL:"https://chain.pixie.xyz",shortName:"pixie-chain",chainId:6626,networkId:6626,explorers:[{name:"blockscout",url:"https://scan.chain.pixie.xyz",standard:"none"}],testnet:!1,slug:"pixie-chain"},RBt={name:"Gold Smart Chain Mainnet",chain:"STAND",icon:{url:"ipfs://QmPNuymyaKLJhCaXnyrsL8358FeTxabZFsaxMmWNU4Tzt3",width:396,height:418,format:"png"},rpc:["https://rpc-mainnet.goldsmartchain.com"],faucets:["https://faucet.goldsmartchain.com"],nativeCurrency:{name:"Standard in Gold",symbol:"STAND",decimals:18},infoURL:"https://goldsmartchain.com",shortName:"STANDm",chainId:6789,networkId:6789,explorers:[{name:"Gold Smart Chain",url:"https://mainnet.goldsmartchain.com",standard:"EIP3091"}],testnet:!1,slug:"gold-smart-chain"},NBt={name:"Tomb Chain Mainnet",chain:"Tomb Chain",rpc:["https://rpc.tombchain.com/"],faucets:[],nativeCurrency:{name:"Tomb",symbol:"TOMB",decimals:18},infoURL:"https://tombchain.com/",shortName:"tombchain",chainId:6969,networkId:6969,explorers:[{name:"tombscout",url:"https://tombscout.com",standard:"none"}],parent:{type:"L2",chain:"eip155-250",bridges:[{url:"https://lif3.com/bridge"}]},testnet:!1,slug:"tomb-chain"},OBt={name:"PolySmartChain",chain:"PSC",rpc:["https://seed0.polysmartchain.com/","https://seed1.polysmartchain.com/","https://seed2.polysmartchain.com/"],faucets:[],nativeCurrency:{name:"PSC",symbol:"PSC",decimals:18},infoURL:"https://www.polysmartchain.com/",shortName:"psc",chainId:6999,networkId:6999,testnet:!1,slug:"polysmartchain"},LBt={name:"ZetaChain Mainnet",chain:"ZetaChain",icon:{url:"ipfs://QmeABfwZ2nAxDzYyqZ1LEypPgQFMjEyrx8FfnoPLkF8R3f",width:1280,height:1280,format:"png"},rpc:["https://api.mainnet.zetachain.com/evm"],faucets:[],nativeCurrency:{name:"Zeta",symbol:"ZETA",decimals:18},infoURL:"https://docs.zetachain.com/",shortName:"zetachain-mainnet",chainId:7e3,networkId:7e3,status:"incubating",explorers:[{name:"ZetaChain Mainnet Explorer",url:"https://explorer.mainnet.zetachain.com",standard:"none"}],testnet:!1,slug:"zetachain"},BBt={name:"ZetaChain Athens Testnet",chain:"ZetaChain",icon:{url:"ipfs://QmeABfwZ2nAxDzYyqZ1LEypPgQFMjEyrx8FfnoPLkF8R3f",width:1280,height:1280,format:"png"},rpc:["https://api.athens2.zetachain.com/evm"],faucets:["https://labs.zetachain.com/get-zeta"],nativeCurrency:{name:"Zeta",symbol:"aZETA",decimals:18},infoURL:"https://docs.zetachain.com/",shortName:"zetachain-athens",chainId:7001,networkId:7001,status:"active",explorers:[{name:"ZetaChain Athens Testnet Explorer",url:"https://explorer.athens.zetachain.com",standard:"none"}],testnet:!0,slug:"zetachain-athens-testnet"},qBt={name:"Ella the heart",chain:"ella",icon:{url:"ipfs://QmVkAhSaHhH3wKoLT56Aq8dNyEH4RySPEpqPcLwsptGBDm",width:512,height:512,format:"png"},rpc:["https://rpc.ella.network"],faucets:[],nativeCurrency:{name:"Ella",symbol:"ELLA",decimals:18},infoURL:"https://ella.network",shortName:"ELLA",chainId:7027,networkId:7027,explorers:[{name:"Ella",url:"https://ella.network",standard:"EIP3091"}],testnet:!1,slug:"ella-the-heart"},DBt={name:"Planq Mainnet",chain:"Planq",icon:{url:"ipfs://QmWEy9xK5BoqxPuVs7T48WM4exJrxzkEFt45iHcxWqUy8D",width:256,height:256,format:"png"},rpc:["https://evm-rpc.planq.network"],faucets:[],nativeCurrency:{name:"Planq",symbol:"PLQ",decimals:18},infoURL:"https://planq.network",shortName:"planq",chainId:7070,networkId:7070,explorers:[{name:"Planq EVM Explorer (Blockscout)",url:"https://evm.planq.network",standard:"none"},{name:"Planq Cosmos Explorer (BigDipper)",url:"https://explorer.planq.network",standard:"none"}],testnet:!1,slug:"planq"},FBt={name:"Shyft Mainnet",chain:"SHYFT",icon:{url:"ipfs://QmUkFZC2ZmoYPTKf7AHdjwRPZoV2h1MCuHaGM4iu8SNFpi",width:400,height:400,format:"svg"},rpc:["https://rpc.shyft.network/"],faucets:[],nativeCurrency:{name:"Shyft",symbol:"SHYFT",decimals:18},infoURL:"https://shyft.network",shortName:"shyft",chainId:7341,networkId:7341,slip44:2147490989,explorers:[{name:"Shyft BX",url:"https://bx.shyft.network",standard:"EIP3091"}],testnet:!1,slug:"shyft"},UBt={name:"Canto",chain:"Canto",rpc:["https://canto.slingshot.finance"],faucets:[],nativeCurrency:{name:"Canto",symbol:"CANTO",decimals:18},infoURL:"https://canto.io",shortName:"canto",chainId:7700,networkId:7700,explorers:[{name:"Canto EVM Explorer (Blockscout)",url:"https://evm.explorer.canto.io",standard:"none"},{name:"Canto Cosmos Explorer (BigDipper)",url:"https://cosmos.explorer.canto.io",standard:"none"}],testnet:!1,slug:"canto"},WBt={name:"Rise of the Warbots Testnet",chain:"nmactest",rpc:["https://testnet1.riseofthewarbots.com","https://testnet2.riseofthewarbots.com","https://testnet3.riseofthewarbots.com","https://testnet4.riseofthewarbots.com","https://testnet5.riseofthewarbots.com"],faucets:[],nativeCurrency:{name:"Nano Machines",symbol:"NMAC",decimals:18},infoURL:"https://riseofthewarbots.com/",shortName:"RiseOfTheWarbotsTestnet",chainId:7777,networkId:7777,explorers:[{name:"avascan",url:"https://testnet.avascan.info/blockchain/2mZ9doojfwHzXN3VXDQELKnKyZYxv7833U8Yq5eTfFx3hxJtiy",standard:"none"}],testnet:!0,slug:"rise-of-the-warbots-testnet"},jBt={name:"Hazlor Testnet",chain:"SCAS",rpc:["https://hatlas.rpc.hazlor.com:8545","wss://hatlas.rpc.hazlor.com:8546"],faucets:["https://faucet.hazlor.com"],nativeCurrency:{name:"Hazlor Test Coin",symbol:"TSCAS",decimals:18},infoURL:"https://hazlor.com",shortName:"tscas",chainId:7878,networkId:7878,explorers:[{name:"Hazlor Testnet Explorer",url:"https://explorer.hazlor.com",standard:"none"}],testnet:!0,slug:"hazlor-testnet"},zBt={name:"Teleport",chain:"Teleport",rpc:["https://evm-rpc.teleport.network"],faucets:[],nativeCurrency:{name:"Tele",symbol:"TELE",decimals:18},infoURL:"https://teleport.network",shortName:"teleport",chainId:8e3,networkId:8e3,icon:{url:"ipfs://QmdP1sLnsmW9dwnfb1GxAXU1nHDzCvWBQNumvMXpdbCSuz",width:390,height:390,format:"svg"},explorers:[{name:"Teleport EVM Explorer (Blockscout)",url:"https://evm-explorer.teleport.network",standard:"none",icon:"teleport"},{name:"Teleport Cosmos Explorer (Big Dipper)",url:"https://explorer.teleport.network",standard:"none",icon:"teleport"}],testnet:!1,slug:"teleport"},HBt={name:"Teleport Testnet",chain:"Teleport",rpc:["https://evm-rpc.testnet.teleport.network"],faucets:["https://chain-docs.teleport.network/testnet/faucet.html"],nativeCurrency:{name:"Tele",symbol:"TELE",decimals:18},infoURL:"https://teleport.network",shortName:"teleport-testnet",chainId:8001,networkId:8001,icon:{url:"ipfs://QmdP1sLnsmW9dwnfb1GxAXU1nHDzCvWBQNumvMXpdbCSuz",width:390,height:390,format:"svg"},explorers:[{name:"Teleport EVM Explorer (Blockscout)",url:"https://evm-explorer.testnet.teleport.network",standard:"none",icon:"teleport"},{name:"Teleport Cosmos Explorer (Big Dipper)",url:"https://explorer.testnet.teleport.network",standard:"none",icon:"teleport"}],testnet:!0,slug:"teleport-testnet"},VBt={name:"MDGL Testnet",chain:"MDGL",rpc:["https://testnet.mdgl.io"],faucets:[],nativeCurrency:{name:"MDGL Token",symbol:"MDGLT",decimals:18},infoURL:"https://mdgl.io",shortName:"mdgl",chainId:8029,networkId:8029,testnet:!0,slug:"mdgl-testnet"},GBt={name:"Shardeum Liberty 1.X",chain:"Shardeum",icon:{url:"ipfs://Qma1bfuubpepKn7DLDy4NPSKDeT3S4VPCNhu6UmdGrb6YD",width:609,height:533,format:"png"},rpc:["https://liberty10.shardeum.org/"],faucets:["https://faucet.liberty10.shardeum.org"],nativeCurrency:{name:"Shardeum SHM",symbol:"SHM",decimals:18},infoURL:"https://docs.shardeum.org/",shortName:"Liberty10",chainId:8080,networkId:8080,explorers:[{name:"Shardeum Scan",url:"https://explorer-liberty10.shardeum.org",standard:"none"}],redFlags:["reusedChainId"],testnet:!1,slug:"shardeum-liberty-1-x"},ZBt={name:"Shardeum Liberty 2.X",chain:"Shardeum",icon:{url:"ipfs://Qma1bfuubpepKn7DLDy4NPSKDeT3S4VPCNhu6UmdGrb6YD",width:609,height:533,format:"png"},rpc:["https://liberty20.shardeum.org/"],faucets:["https://faucet.liberty20.shardeum.org"],nativeCurrency:{name:"Shardeum SHM",symbol:"SHM",decimals:18},infoURL:"https://docs.shardeum.org/",shortName:"Liberty20",chainId:8081,networkId:8081,explorers:[{name:"Shardeum Scan",url:"https://explorer-liberty20.shardeum.org",standard:"none"}],redFlags:["reusedChainId"],testnet:!1,slug:"shardeum-liberty-2-x"},JBt={name:"Shardeum Sphinx 1.X",chain:"Shardeum",icon:{url:"ipfs://Qma1bfuubpepKn7DLDy4NPSKDeT3S4VPCNhu6UmdGrb6YD",width:609,height:533,format:"png"},rpc:["https://sphinx.shardeum.org/"],faucets:["https://faucet-sphinx.shardeum.org/"],nativeCurrency:{name:"Shardeum SHM",symbol:"SHM",decimals:18},infoURL:"https://docs.shardeum.org/",shortName:"Sphinx10",chainId:8082,networkId:8082,explorers:[{name:"Shardeum Scan",url:"https://explorer-sphinx.shardeum.org",standard:"none"}],redFlags:["reusedChainId"],testnet:!1,slug:"shardeum-sphinx-1-x"},KBt={name:"StreamuX Blockchain",chain:"StreamuX",rpc:["https://u0ma6t6heb:KDNwOsRDGcyM2Oeui1p431Bteb4rvcWkuPgQNHwB4FM@u0xy4x6x82-u0e2mg517m-rpc.us0-aws.kaleido.io/"],faucets:[],nativeCurrency:{name:"StreamuX",symbol:"SmuX",decimals:18},infoURL:"https://www.streamux.cloud",shortName:"StreamuX",chainId:8098,networkId:8098,testnet:!1,slug:"streamux-blockchain"},QBt={name:"Qitmeer Network Testnet",chain:"MEER",rpc:[],faucets:[],nativeCurrency:{name:"Qitmeer Testnet",symbol:"MEER-T",decimals:18},infoURL:"https://github.com/Qitmeer",shortName:"meertest",chainId:8131,networkId:8131,icon:{url:"ipfs://QmWSbMuCwQzhBB6GRLYqZ87n5cnpzpYCehCAMMQmUXj4mm",width:512,height:512,format:"png"},explorers:[{name:"meerscan testnet",url:"https://testnet.qng.meerscan.io",standard:"none"}],testnet:!0,slug:"qitmeer-network-testnet"},XBt={name:"BeOne Chain Testnet",chain:"BOC",rpc:["https://pre-boc1.beonechain.com","https://pre-boc2.beonechain.com","https://pre-boc3.beonechain.com"],faucets:["https://testnet.beonescan.com/faucet"],nativeCurrency:{name:"BeOne Chain Testnet",symbol:"BOC",decimals:18},infoURL:"https://testnet.beonescan.com",shortName:"tBOC",chainId:8181,networkId:8181,icon:{url:"ipfs://QmbVLQnaMDu86bPyKgCvTGhFBeYwjr15hQnrCcsp1EkAGL",width:500,height:500,format:"png"},explorers:[{name:"BeOne Chain Testnet",url:"https://testnet.beonescan.com",icon:"beonechain",standard:"none"}],testnet:!0,slug:"beone-chain-testnet"},YBt={name:"Klaytn Mainnet Cypress",chain:"KLAY",rpc:["https://public-node-api.klaytnapi.com/v1/cypress"],faucets:[],nativeCurrency:{name:"KLAY",symbol:"KLAY",decimals:18},infoURL:"https://www.klaytn.com/",shortName:"Cypress",chainId:8217,networkId:8217,slip44:8217,explorers:[{name:"Klaytnscope",url:"https://scope.klaytn.com",standard:"none"}],testnet:!1,slug:"klaytn-cypress"},$Bt={name:"Blockton Blockchain",chain:"Blockton Blockchain",icon:{url:"ipfs://bafkreig3hoedafisrgc6iffdo2jcblm6kov35h72gcblc3zkmt7t4ucwhy",width:800,height:800,format:"png"},rpc:["https://rpc.blocktonscan.com/"],faucets:["https://faucet.blocktonscan.com/"],nativeCurrency:{name:"BLOCKTON",symbol:"BTON",decimals:18},infoURL:"https://blocktoncoin.com",shortName:"BTON",chainId:8272,networkId:8272,explorers:[{name:"Blockton Explorer",url:"https://blocktonscan.com",standard:"none"}],testnet:!1,slug:"blockton-blockchain"},eqt={name:"KorthoTest",chain:"Kortho",rpc:["https://www.krotho-test.net"],faucets:[],nativeCurrency:{name:"Kortho Test",symbol:"KTO",decimals:11},infoURL:"https://www.kortho.io/",shortName:"Kortho",chainId:8285,networkId:8285,testnet:!0,slug:"korthotest"},tqt={name:"Toki Network",chain:"TOKI",rpc:["https://mainnet.buildwithtoki.com/v0/rpc"],faucets:[],nativeCurrency:{name:"Toki",symbol:"TOKI",decimals:18},infoURL:"https://www.buildwithtoki.com",shortName:"toki",chainId:8654,networkId:8654,icon:{url:"ipfs://QmbCBBH4dFHGr8u1yQspCieQG9hLcPFNYdRx1wnVsX8hUw",width:512,height:512,format:"svg"},explorers:[],testnet:!1,slug:"toki-network"},rqt={name:"Toki Testnet",chain:"TOKI",rpc:["https://testnet.buildwithtoki.com/v0/rpc"],faucets:[],nativeCurrency:{name:"Toki",symbol:"TOKI",decimals:18},infoURL:"https://www.buildwithtoki.com",shortName:"toki-testnet",chainId:8655,networkId:8655,icon:{url:"ipfs://QmbCBBH4dFHGr8u1yQspCieQG9hLcPFNYdRx1wnVsX8hUw",width:512,height:512,format:"svg"},explorers:[],testnet:!0,slug:"toki-testnet"},nqt={name:"TOOL Global Mainnet",chain:"OLO",rpc:["https://mainnet-web3.wolot.io"],faucets:[],nativeCurrency:{name:"TOOL Global",symbol:"OLO",decimals:18},infoURL:"https://ibdt.io",shortName:"olo",chainId:8723,networkId:8723,slip44:479,explorers:[{name:"OLO Block Explorer",url:"https://www.olo.network",standard:"EIP3091"}],testnet:!1,slug:"tool-global"},aqt={name:"TOOL Global Testnet",chain:"OLO",rpc:["https://testnet-web3.wolot.io"],faucets:["https://testnet-explorer.wolot.io"],nativeCurrency:{name:"TOOL Global",symbol:"OLO",decimals:18},infoURL:"https://testnet-explorer.wolot.io",shortName:"tolo",chainId:8724,networkId:8724,slip44:479,testnet:!0,slug:"tool-global-testnet"},iqt={name:"Alph Network",chain:"ALPH",rpc:["https://rpc.alph.network","wss://rpc.alph.network"],faucets:[],nativeCurrency:{name:"Alph Network",symbol:"ALPH",decimals:18},infoURL:"https://alph.network",shortName:"alph",chainId:8738,networkId:8738,explorers:[{name:"alphscan",url:"https://explorer.alph.network",icon:"alphscan",standard:"EIP3091"}],testnet:!1,slug:"alph-network"},sqt={name:"TMY Chain",chain:"TMY",icon:{url:"ipfs://QmdwQDr6vmBtXmK2TmknkEuZNoaDqTasFdZdu3DRw8b2wt",width:1e3,height:1628,format:"png"},rpc:["https://node1.tmyblockchain.org/rpc"],faucets:["https://faucet.tmychain.org/"],nativeCurrency:{name:"TMY",symbol:"TMY",decimals:18},infoURL:"https://tmychain.org/",shortName:"tmy",chainId:8768,networkId:8768,testnet:!1,slug:"tmy-chain"},oqt={name:"Unique",icon:{url:"ipfs://QmbJ7CGZ2GxWMp7s6jy71UGzRsMe4w3KANKXDAExYWdaFR",width:48,height:48,format:"svg"},chain:"UNQ",rpc:["https://rpc.unique.network","https://eu-rpc.unique.network","https://asia-rpc.unique.network","https://us-rpc.unique.network"],faucets:[],nativeCurrency:{name:"Unique",symbol:"UNQ",decimals:18},infoURL:"https://unique.network",shortName:"unq",chainId:8880,networkId:8880,explorers:[{name:"Unique Scan",url:"https://uniquescan.io/unique",standard:"none"}],testnet:!1,slug:"unique"},cqt={name:"Quartz by Unique",icon:{url:"ipfs://QmaGPdccULQEFcCGxzstnmE8THfac2kSiGwvWRAiaRq4dp",width:48,height:48,format:"svg"},chain:"UNQ",rpc:["https://rpc-quartz.unique.network","https://quartz.api.onfinality.io/public-ws","https://eu-rpc-quartz.unique.network","https://asia-rpc-quartz.unique.network","https://us-rpc-quartz.unique.network"],faucets:[],nativeCurrency:{name:"Quartz",symbol:"QTZ",decimals:18},infoURL:"https://unique.network",shortName:"qtz",chainId:8881,networkId:8881,explorers:[{name:"Unique Scan / Quartz",url:"https://uniquescan.io/quartz",standard:"none"}],testnet:!1,slug:"quartz-by-unique"},uqt={name:"Opal testnet by Unique",icon:{url:"ipfs://QmYJDpmWyjDa3H6BxweFmQXk4fU8b1GU7M9EqYcaUNvXzc",width:48,height:48,format:"svg"},chain:"UNQ",rpc:["https://rpc-opal.unique.network","https://us-rpc-opal.unique.network","https://eu-rpc-opal.unique.network","https://asia-rpc-opal.unique.network"],faucets:["https://t.me/unique2faucet_opal_bot"],nativeCurrency:{name:"Opal",symbol:"UNQ",decimals:18},infoURL:"https://unique.network",shortName:"opl",chainId:8882,networkId:8882,explorers:[{name:"Unique Scan / Opal",url:"https://uniquescan.io/opal",standard:"none"}],testnet:!0,slug:"opal-testnet-by-unique"},lqt={name:"Sapphire by Unique",icon:{url:"ipfs://Qmd1PGt4cDRjFbh4ihP5QKEd4XQVwN1MkebYKdF56V74pf",width:48,height:48,format:"svg"},chain:"UNQ",rpc:["https://rpc-sapphire.unique.network","https://us-rpc-sapphire.unique.network","https://eu-rpc-sapphire.unique.network","https://asia-rpc-sapphire.unique.network"],faucets:[],nativeCurrency:{name:"Quartz",symbol:"QTZ",decimals:18},infoURL:"https://unique.network",shortName:"sph",chainId:8883,networkId:8883,explorers:[{name:"Unique Scan / Sapphire",url:"https://uniquescan.io/sapphire",standard:"none"}],testnet:!1,slug:"sapphire-by-unique"},dqt={name:"XANAChain",chain:"XANAChain",rpc:["https://mainnet.xana.net/rpc"],faucets:[],nativeCurrency:{name:"XETA",symbol:"XETA",decimals:18},infoURL:"https://xanachain.xana.net/",shortName:"XANAChain",chainId:8888,networkId:8888,icon:{url:"ipfs://QmWGNfwJ9o2vmKD3E6fjrxpbFP8W5q45zmYzHHoXwqqAoj",width:512,height:512,format:"png"},explorers:[{name:"XANAChain",url:"https://xanachain.xana.net",standard:"EIP3091"}],redFlags:["reusedChainId"],testnet:!1,slug:"xanachain"},pqt={name:"Vyvo Smart Chain",chain:"VSC",rpc:["https://vsc-dataseed.vyvo.org:8889"],faucets:[],nativeCurrency:{name:"VSC",symbol:"VSC",decimals:18},infoURL:"https://vsc-dataseed.vyvo.org",shortName:"vsc",chainId:8889,networkId:8889,testnet:!1,slug:"vyvo-smart-chain"},hqt={name:"Mammoth Mainnet",title:"Mammoth Chain",chain:"MMT",rpc:["https://dataseed.mmtscan.io","https://dataseed1.mmtscan.io","https://dataseed2.mmtscan.io"],faucets:["https://faucet.mmtscan.io/"],nativeCurrency:{name:"Mammoth Token",symbol:"MMT",decimals:18},infoURL:"https://mmtchain.io/",shortName:"mmt",chainId:8898,networkId:8898,icon:{url:"ipfs://QmaF5gi2CbDKsJ2UchNkjBqmWjv8JEDP3vePBmxeUHiaK4",width:250,height:250,format:"png"},explorers:[{name:"mmtscan",url:"https://mmtscan.io",standard:"EIP3091",icon:"mmt"}],testnet:!1,slug:"mammoth"},fqt={name:"JIBCHAIN L1",chain:"JBC",rpc:["https://rpc-l1.jibchain.net"],faucets:[],features:[{name:"EIP155"},{name:"EIP1559"}],nativeCurrency:{name:"JIBCOIN",symbol:"JBC",decimals:18},infoURL:"https://jibchain.net",shortName:"jbc",chainId:8899,networkId:8899,explorers:[{name:"JIBCHAIN Explorer",url:"https://exp-l1.jibchain.net",standard:"EIP3091"}],testnet:!1,slug:"jibchain-l1"},mqt={name:"Giant Mammoth Mainnet",title:"Giant Mammoth Chain",chain:"GMMT",rpc:["https://rpc-asia.gmmtchain.io"],faucets:[],nativeCurrency:{name:"Giant Mammoth Coin",symbol:"GMMT",decimals:18},infoURL:"https://gmmtchain.io/",shortName:"gmmt",chainId:8989,networkId:8989,icon:{url:"ipfs://QmVth4aPeskDTFqRifUugJx6gyEHCmx2PFbMWUtsCSQFkF",width:468,height:518,format:"png"},explorers:[{name:"gmmtscan",url:"https://scan.gmmtchain.io",standard:"EIP3091",icon:"gmmt"}],testnet:!1,slug:"giant-mammoth"},yqt={name:"bloxberg",chain:"bloxberg",rpc:["https://core.bloxberg.org"],faucets:["https://faucet.bloxberg.org/"],nativeCurrency:{name:"BERG",symbol:"U+25B3",decimals:18},infoURL:"https://bloxberg.org",shortName:"berg",chainId:8995,networkId:8995,testnet:!1,slug:"bloxberg"},gqt={name:"Evmos Testnet",chain:"Evmos",rpc:["https://eth.bd.evmos.dev:8545"],faucets:["https://faucet.evmos.dev"],nativeCurrency:{name:"test-Evmos",symbol:"tEVMOS",decimals:18},infoURL:"https://evmos.org",shortName:"evmos-testnet",chainId:9e3,networkId:9e3,icon:{url:"ipfs://QmeZW6VKUFTbz7PPW8PmDR3ZHa6osYPLBFPnW8T5LSU49c",width:400,height:400,format:"png"},explorers:[{name:"Evmos EVM Explorer",url:"https://evm.evmos.dev",standard:"EIP3091",icon:"evmos"},{name:"Evmos Cosmos Explorer",url:"https://explorer.evmos.dev",standard:"none",icon:"evmos"}],testnet:!0,slug:"evmos-testnet"},vqt={name:"Evmos",chain:"Evmos",rpc:["https://eth.bd.evmos.org:8545","https://evmos-evm.publicnode.com"],faucets:[],nativeCurrency:{name:"Evmos",symbol:"EVMOS",decimals:18},infoURL:"https://evmos.org",shortName:"evmos",chainId:9001,networkId:9001,icon:{url:"ipfs://QmeZW6VKUFTbz7PPW8PmDR3ZHa6osYPLBFPnW8T5LSU49c",width:400,height:400,format:"png"},explorers:[{name:"Evmos EVM Explorer (Escan)",url:"https://escan.live",standard:"none",icon:"evmos"},{name:"Evmos Cosmos Explorer (Mintscan)",url:"https://www.mintscan.io/evmos",standard:"none",icon:"evmos"}],testnet:!1,slug:"evmos"},bqt={name:"BerylBit Mainnet",chain:"BRB",rpc:["https://mainnet.berylbit.io"],faucets:["https://t.me/BerylBit"],nativeCurrency:{name:"BerylBit Chain Native Token",symbol:"BRB",decimals:18},infoURL:"https://www.beryl-bit.com",shortName:"brb",chainId:9012,networkId:9012,icon:{url:"ipfs://QmeDXHkpranzqGN1BmQqZSrFp4vGXf4JfaB5iq8WHHiwDi",width:162,height:162,format:"png"},explorers:[{name:"berylbit-explorer",url:"https://explorer.berylbit.io",standard:"EIP3091"}],testnet:!1,slug:"berylbit"},wqt={name:"Genesis Coin",chain:"Genesis",rpc:["https://genesis-gn.com","wss://genesis-gn.com"],faucets:[],nativeCurrency:{name:"GN Coin",symbol:"GNC",decimals:18},infoURL:"https://genesis-gn.com",shortName:"GENEC",chainId:9100,networkId:9100,testnet:!1,slug:"genesis-coin"},xqt={name:"Dogcoin Testnet",chain:"DOGS",icon:{url:"ipfs://QmZCadkExKThak3msvszZjo6UnAbUJKE61dAcg4TixuMC3",width:160,height:171,format:"png"},rpc:["https://testnet-rpc.dogcoin.network"],faucets:["https://faucet.dogcoin.network"],nativeCurrency:{name:"Dogcoin",symbol:"DOGS",decimals:18},infoURL:"https://dogcoin.network",shortName:"DOGSt",chainId:9339,networkId:9339,explorers:[{name:"Dogcoin",url:"https://testnet.dogcoin.network",standard:"EIP3091"}],testnet:!0,slug:"dogcoin-testnet"},Tqt={name:"Rangers Protocol Testnet Robin",chain:"Rangers",icon:{url:"ipfs://QmfHG3xbg4iiopagww93Gu7tmvCpPwZdiwsUjd3Dt5mRwT",width:835,height:835,format:"png"},rpc:["https://robin.rangersprotocol.com/api/jsonrpc"],faucets:["https://robin-faucet.rangersprotocol.com"],nativeCurrency:{name:"Rangers Protocol Gas",symbol:"tRPG",decimals:18},infoURL:"https://rangersprotocol.com",shortName:"trpg",chainId:9527,networkId:9527,explorers:[{name:"rangersscan-robin",url:"https://robin-rangersscan.rangersprotocol.com",standard:"none"}],testnet:!0,slug:"rangers-protocol-testnet-robin"},_qt={name:"QEasyWeb3 Testnet",chain:"QET",rpc:["https://qeasyweb3.com"],faucets:["http://faucet.qeasyweb3.com"],nativeCurrency:{name:"QET",symbol:"QET",decimals:18},infoURL:"https://www.qeasyweb3.com",shortName:"QETTest",chainId:9528,networkId:9528,explorers:[{name:"QEasyWeb3 Explorer",url:"https://www.qeasyweb3.com",icon:"qetscan",standard:"EIP3091"}],testnet:!0,slug:"qeasyweb3-testnet"},Cqt={name:"Oort MainnetDev",title:"Oort MainnetDev",chain:"MainnetDev",rpc:[],faucets:[],nativeCurrency:{name:"Oort",symbol:"CCN",decimals:18},infoURL:"https://oortech.com",shortName:"MainnetDev",chainId:9700,networkId:9700,icon:{url:"ipfs://QmZ1jbxFZcuotj3eZ6iKFrg9ZXnaV8AK6sGRa7ELrceWyD",width:1043,height:1079,format:"png"},testnet:!1,slug:"oort-dev"},Eqt={name:"Boba BNB Testnet",chain:"Boba BNB Testnet",rpc:["https://testnet.bnb.boba.network","wss://wss.testnet.bnb.boba.network","https://replica.testnet.bnb.boba.network","wss://replica-wss.testnet.bnb.boba.network"],faucets:[],nativeCurrency:{name:"Boba Token",symbol:"BOBA",decimals:18},infoURL:"https://boba.network",shortName:"BobaBnbTestnet",chainId:9728,networkId:9728,explorers:[{name:"Boba BNB Testnet block explorer",url:"https://blockexplorer.testnet.bnb.boba.network",standard:"none"}],testnet:!0,slug:"boba-bnb-testnet"},kqt={name:"MainnetZ Testnet",chain:"NetZ",icon:{url:"ipfs://QmT5gJ5weBiLT3GoYuF5yRTRLdPLCVZ3tXznfqW7M8fxgG",width:400,height:400,format:"png"},rpc:["https://testnet-rpc.mainnetz.io"],faucets:["https://faucet.mainnetz.io"],nativeCurrency:{name:"MainnetZ",symbol:"NetZ",decimals:18},infoURL:"https://testnet.mainnetz.io",shortName:"NetZt",chainId:9768,networkId:9768,explorers:[{name:"MainnetZ",url:"https://testnet.mainnetz.io",standard:"EIP3091"}],testnet:!0,slug:"z-testnet"},Sqt={name:"myOwn Testnet",chain:"myOwn",rpc:["https://geth.dev.bccloud.net"],faucets:[],nativeCurrency:{name:"MYN",symbol:"MYN",decimals:18},infoURL:"https://docs.bccloud.net/",shortName:"myn",chainId:9999,networkId:9999,testnet:!0,slug:"myown-testnet"},Aqt={name:"Smart Bitcoin Cash",chain:"smartBCH",rpc:["https://smartbch.greyh.at","https://rpc-mainnet.smartbch.org","https://smartbch.fountainhead.cash/mainnet","https://smartbch.devops.cash/mainnet"],faucets:[],nativeCurrency:{name:"Bitcoin Cash",symbol:"BCH",decimals:18},infoURL:"https://smartbch.org/",shortName:"smartbch",chainId:1e4,networkId:1e4,testnet:!1,slug:"smart-bitcoin-cash"},Mqt={name:"Smart Bitcoin Cash Testnet",chain:"smartBCHTest",rpc:["https://rpc-testnet.smartbch.org","https://smartbch.devops.cash/testnet"],faucets:[],nativeCurrency:{name:"Bitcoin Cash Test Token",symbol:"BCHT",decimals:18},infoURL:"http://smartbch.org/",shortName:"smartbchtest",chainId:10001,networkId:10001,testnet:!0,slug:"smart-bitcoin-cash-testnet"},Iqt={name:"Gon Chain",chain:"GonChain",icon:{url:"ipfs://QmPtiJGaApbW3ATZhPW3pKJpw3iGVrRGsZLWhrDKF9ZK18",width:1024,height:1024,format:"png"},rpc:["https://node1.testnet.gaiaopen.network","http://database1.gaiaopen.network"],faucets:[],nativeCurrency:{name:"Gon Token",symbol:"GT",decimals:18},infoURL:"",shortName:"gon",chainId:10024,networkId:10024,explorers:[{name:"Gon Explorer",url:"https://gonscan.com",standard:"none"}],testnet:!0,slug:"gon-chain"},Pqt={name:"SJATSH",chain:"ETH",rpc:["http://geth.free.idcfengye.com"],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://sjis.me",shortName:"SJ",chainId:10086,networkId:10086,testnet:!1,slug:"sjatsh"},Rqt={name:"Blockchain Genesis Mainnet",chain:"GEN",rpc:["https://eu.mainnet.xixoio.com","https://us.mainnet.xixoio.com","https://asia.mainnet.xixoio.com"],faucets:[],nativeCurrency:{name:"GEN",symbol:"GEN",decimals:18},infoURL:"https://www.xixoio.com/",shortName:"GEN",chainId:10101,networkId:10101,testnet:!1,slug:"blockchain-genesis"},Nqt={name:"Chiado Testnet",chain:"CHI",icon:{url:"ipfs://bafybeidk4swpgdyqmpz6shd5onvpaujvwiwthrhypufnwr6xh3dausz2dm",width:1800,height:1800,format:"png"},rpc:["https://rpc.chiadochain.net","https://rpc.eu-central-2.gateway.fm/v3/gnosis/archival/chiado"],faucets:["https://gnosisfaucet.com"],nativeCurrency:{name:"Chiado xDAI",symbol:"xDAI",decimals:18},infoURL:"https://docs.gnosischain.com",shortName:"chi",chainId:10200,networkId:10200,explorers:[{name:"blockscout",url:"https://blockscout.chiadochain.net",icon:"blockscout",standard:"EIP3091"}],testnet:!0,slug:"chiado-testnet"},Oqt={name:"0XTade",chain:"0XTade Chain",rpc:["https://node.0xtchain.com"],faucets:[],nativeCurrency:{name:"0XT",symbol:"0XT",decimals:18},infoURL:"https://www.0xtrade.finance/",shortName:"0xt",chainId:10248,networkId:10248,explorers:[{name:"0xtrade Scan",url:"https://www.0xtscan.com",standard:"none"}],testnet:!1,slug:"0xtade"},Lqt={name:"Numbers Mainnet",chain:"NUM",icon:{url:"ipfs://bafkreie3ba6ofosjqqiya6empkyw6u5xdrtcfzi2evvyt4u6utzeiezyhi",width:1500,height:1500,format:"png"},rpc:["https://mainnetrpc.num.network"],faucets:[],nativeCurrency:{name:"NUM Token",symbol:"NUM",decimals:18},infoURL:"https://numbersprotocol.io",shortName:"Jade",chainId:10507,networkId:10507,explorers:[{name:"ethernal",url:"https://mainnet.num.network",standard:"EIP3091"}],testnet:!1,slug:"numbers"},Bqt={name:"Numbers Testnet",chain:"NUM",icon:{url:"ipfs://bafkreie3ba6ofosjqqiya6empkyw6u5xdrtcfzi2evvyt4u6utzeiezyhi",width:1500,height:1500,format:"png"},rpc:["https://testnetrpc.num.network"],faucets:["https://faucet.avax.network/?subnet=num","https://faucet.num.network"],nativeCurrency:{name:"NUM Token",symbol:"NUM",decimals:18},infoURL:"https://numbersprotocol.io",shortName:"Snow",chainId:10508,networkId:10508,explorers:[{name:"ethernal",url:"https://testnet.num.network",standard:"EIP3091"}],testnet:!0,slug:"numbers-testnet"},qqt={name:"CryptoCoinPay",chain:"CCP",rpc:["http://node106.cryptocoinpay.info:8545","ws://node106.cryptocoinpay.info:8546"],faucets:[],icon:{url:"ipfs://QmPw1ixYYeXvTiRWoCt2jWe4YMd3B5o7TzL18SBEHXvhXX",width:200,height:200,format:"png"},nativeCurrency:{name:"CryptoCoinPay",symbol:"CCP",decimals:18},infoURL:"https://www.cryptocoinpay.co",shortName:"CCP",chainId:10823,networkId:10823,explorers:[{name:"CCP Explorer",url:"https://cryptocoinpay.info",standard:"EIP3091"}],testnet:!1,slug:"cryptocoinpay"},Dqt={name:"Quadrans Blockchain",chain:"QDC",icon:{url:"ipfs://QmZFiYHnE4TrezPz8wSap9nMxG6m98w4fv7ataj2TfLNck",width:1024,height:1024,format:"png"},rpc:["https://rpc.quadrans.io","https://rpcna.quadrans.io","https://rpceu.quadrans.io"],faucets:[],nativeCurrency:{name:"Quadrans Coin",symbol:"QDC",decimals:18},infoURL:"https://quadrans.io",shortName:"quadrans",chainId:10946,networkId:10946,explorers:[{name:"explorer",url:"https://explorer.quadrans.io",icon:"quadrans",standard:"EIP3091"}],testnet:!1,slug:"quadrans-blockchain"},Fqt={name:"Quadrans Blockchain Testnet",chain:"tQDC",icon:{url:"ipfs://QmZFiYHnE4TrezPz8wSap9nMxG6m98w4fv7ataj2TfLNck",width:1024,height:1024,format:"png"},rpc:["https://rpctest.quadrans.io","https://rpctest2.quadrans.io"],faucets:["https://faucetpage.quadrans.io"],nativeCurrency:{name:"Quadrans Testnet Coin",symbol:"tQDC",decimals:18},infoURL:"https://quadrans.io",shortName:"quadranstestnet",chainId:10947,networkId:10947,explorers:[{name:"explorer",url:"https://explorer.testnet.quadrans.io",icon:"quadrans",standard:"EIP3091"}],testnet:!0,slug:"quadrans-blockchain-testnet"},Uqt={name:"Astra",chain:"Astra",rpc:["https://rpc.astranaut.io","https://rpc1.astranaut.io"],faucets:[],nativeCurrency:{name:"Astra",symbol:"ASA",decimals:18},infoURL:"https://astranaut.io",shortName:"astra",chainId:11110,networkId:11110,icon:{url:"ipfs://QmaBtaukPNNUNjdJSUAwuFFQMLbZX1Pc3fvXKTKQcds7Kf",width:104,height:80,format:"png"},explorers:[{name:"Astra EVM Explorer (Blockscout)",url:"https://explorer.astranaut.io",standard:"none",icon:"astra"},{name:"Astra PingPub Explorer",url:"https://ping.astranaut.io/astra",standard:"none",icon:"astra"}],testnet:!1,slug:"astra"},Wqt={name:"WAGMI",chain:"WAGMI",icon:{url:"ipfs://QmNoyUXxnak8B3xgFxErkVfyVEPJUMHBzq7qJcYzkUrPR4",width:1920,height:1920,format:"png"},rpc:["https://subnets.avax.network/wagmi/wagmi-chain-testnet/rpc"],faucets:["https://faucet.avax.network/?subnet=wagmi"],nativeCurrency:{name:"WAGMI",symbol:"WGM",decimals:18},infoURL:"https://subnets-test.avax.network/wagmi/details",shortName:"WAGMI",chainId:11111,networkId:11111,explorers:[{name:"Avalanche Subnet Explorer",url:"https://subnets-test.avax.network/wagmi",standard:"EIP3091"}],testnet:!0,slug:"wagmi"},jqt={name:"Astra Testnet",chain:"Astra",rpc:["https://rpc.astranaut.dev"],faucets:["https://faucet.astranaut.dev"],nativeCurrency:{name:"test-Astra",symbol:"tASA",decimals:18},infoURL:"https://astranaut.io",shortName:"astra-testnet",chainId:11115,networkId:11115,icon:{url:"ipfs://QmaBtaukPNNUNjdJSUAwuFFQMLbZX1Pc3fvXKTKQcds7Kf",width:104,height:80,format:"png"},explorers:[{name:"Astra EVM Explorer",url:"https://explorer.astranaut.dev",standard:"EIP3091",icon:"astra"},{name:"Astra PingPub Explorer",url:"https://ping.astranaut.dev/astra",standard:"none",icon:"astra"}],testnet:!0,slug:"astra-testnet"},zqt={name:"Haqq Network",chain:"Haqq",rpc:["https://rpc.eth.haqq.network"],faucets:[],nativeCurrency:{name:"Islamic Coin",symbol:"ISLM",decimals:18},infoURL:"https://islamiccoin.net",shortName:"ISLM",chainId:11235,networkId:11235,explorers:[{name:"Mainnet HAQQ Explorer",url:"https://explorer.haqq.network",standard:"EIP3091"}],testnet:!1,slug:"haqq-network"},Hqt={name:"Shyft Testnet",chain:"SHYFTT",icon:{url:"ipfs://QmUkFZC2ZmoYPTKf7AHdjwRPZoV2h1MCuHaGM4iu8SNFpi",width:400,height:400,format:"svg"},rpc:[],faucets:[],nativeCurrency:{name:"Shyft Test Token",symbol:"SHYFTT",decimals:18},infoURL:"https://shyft.network",shortName:"shyftt",chainId:11437,networkId:11437,explorers:[{name:"Shyft Testnet BX",url:"https://bx.testnet.shyft.network",standard:"EIP3091"}],testnet:!0,slug:"shyft-testnet"},Vqt={name:"Sardis Testnet",chain:"SRDX",icon:{url:"ipfs://QmdR9QJjQEh1mBnf2WbJfehverxiP5RDPWMtEECbDP2rc3",width:512,height:512,format:"png"},rpc:["https://testnet-rpc.sardisnetwork.com"],faucets:["https://faucet.sardisnetwork.com"],nativeCurrency:{name:"Sardis",symbol:"SRDX",decimals:18},infoURL:"https://mysardis.com",shortName:"SRDXt",chainId:11612,networkId:11612,explorers:[{name:"Sardis",url:"https://testnet.sardisnetwork.com",standard:"EIP3091"}],testnet:!0,slug:"sardis-testnet"},Gqt={name:"SanR Chain",chain:"SanRChain",rpc:["https://sanrchain-node.santiment.net"],faucets:[],nativeCurrency:{name:"nSAN",symbol:"nSAN",decimals:18},infoURL:"https://sanr.app",shortName:"SAN",chainId:11888,networkId:11888,icon:{url:"ipfs://QmPLMg5mYD8XRknvYbDkD2x7FXxYan7MPTeUWZC2CihwDM",width:2048,height:2048,format:"png"},parent:{chain:"eip155-1",type:"L2",bridges:[{url:"https://sanr.app"}]},explorers:[{name:"SanR Chain Explorer",url:"https://sanrchain-explorer.santiment.net",standard:"none"}],testnet:!1,slug:"sanr-chain"},Zqt={name:"Singularity ZERO Testnet",chain:"ZERO",rpc:["https://betaenv.singularity.gold:18545"],faucets:["https://nft.singularity.gold"],nativeCurrency:{name:"ZERO",symbol:"tZERO",decimals:18},infoURL:"https://www.singularity.gold",shortName:"tZERO",chainId:12051,networkId:12051,explorers:[{name:"zeroscan",url:"https://betaenv.singularity.gold:18002",standard:"EIP3091"}],testnet:!0,slug:"singularity-zero-testnet"},Jqt={name:"Singularity ZERO Mainnet",chain:"ZERO",rpc:["https://zerorpc.singularity.gold"],faucets:["https://zeroscan.singularity.gold"],nativeCurrency:{name:"ZERO",symbol:"ZERO",decimals:18},infoURL:"https://www.singularity.gold",shortName:"ZERO",chainId:12052,networkId:12052,slip44:621,explorers:[{name:"zeroscan",url:"https://zeroscan.singularity.gold",standard:"EIP3091"}],testnet:!1,slug:"singularity-zero"},Kqt={name:"Step Testnet",title:"Step Test Network",chain:"STEP",icon:{url:"ipfs://QmVp9jyb3UFW71867yVtymmiRw7dPY4BTnsp3hEjr9tn8L",width:512,height:512,format:"png"},rpc:["https://rpc.testnet.step.network"],faucets:["https://faucet.step.network"],nativeCurrency:{name:"FITFI",symbol:"FITFI",decimals:18},infoURL:"https://step.network",shortName:"steptest",chainId:12345,networkId:12345,explorers:[{name:"StepScan",url:"https://testnet.stepscan.io",icon:"step",standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-43113"},testnet:!0,slug:"step-testnet"},Qqt={name:"SPS",chain:"SPS",rpc:["https://rpc.ssquad.games"],faucets:[],nativeCurrency:{name:"ECG",symbol:"ECG",decimals:18},infoURL:"https://ssquad.games/",shortName:"SPS",chainId:13e3,networkId:13e3,explorers:[{name:"SPS Explorer",url:"http://spsscan.ssquad.games",standard:"EIP3091"}],testnet:!1,slug:"sps"},Xqt={name:"Credit Smartchain Mainnet",chain:"CREDIT",rpc:["https://mainnet-rpc.cscscan.io"],faucets:[],nativeCurrency:{name:"Credit",symbol:"CREDIT",decimals:18},features:[{name:"EIP155"},{name:"EIP1559"}],infoURL:"https://creditsmartchain.com",shortName:"Credit",chainId:13308,networkId:1,icon:{url:"ipfs://bafkreifbso3gd4wu5wxl27xyurxctmuae2jyuy37guqtzx23nga6ba4ag4",width:1e3,height:1628,format:"png"},explorers:[{name:"CSC Scan",url:"https://explorer.cscscan.io",icon:"credit",standard:"EIP3091"}],testnet:!1,slug:"credit-smartchain"},Yqt={name:"Phoenix Mainnet",chain:"Phoenix",rpc:["https://rpc.phoenixplorer.com/"],faucets:[],nativeCurrency:{name:"Phoenix",symbol:"PHX",decimals:18},infoURL:"https://cryptophoenix.org/phoenix",shortName:"Phoenix",chainId:13381,networkId:13381,icon:{url:"ipfs://QmYiLMeKDXMSNuQmtxNdxm53xR588pcRXMf7zuiZLjQnc6",width:1501,height:1501,format:"png"},explorers:[{name:"phoenixplorer",url:"https://phoenixplorer.com",icon:"phoenixplorer",standard:"EIP3091"}],testnet:!1,slug:"phoenix"},$qt={name:"Susono",chain:"SUS",rpc:["https://gateway.opn.network/node/ext/bc/2VsZe5DstWw2bfgdx3YbjKcMsJnNDjni95sZorBEdk9L9Qr9Fr/rpc"],faucets:[],nativeCurrency:{name:"Susono",symbol:"OPN",decimals:18},infoURL:"",shortName:"sus",chainId:13812,networkId:13812,explorers:[{name:"Susono",url:"http://explorer.opn.network",standard:"none"}],testnet:!1,slug:"susono"},eDt={name:"SPS Testnet",chain:"SPS-Testnet",rpc:["https://www.3sps.net"],faucets:[],nativeCurrency:{name:"ECG",symbol:"ECG",decimals:18},infoURL:"https://ssquad.games/",shortName:"SPS-Test",chainId:14e3,networkId:14e3,explorers:[{name:"SPS Test Explorer",url:"https://explorer.3sps.net",standard:"EIP3091"}],testnet:!0,slug:"sps-testnet"},tDt={name:"Trust EVM Testnet",chain:"Trust EVM Testnet",rpc:["https://api.testnet-dev.trust.one"],faucets:["https://faucet.testnet-dev.trust.one/"],nativeCurrency:{name:"Trust EVM",symbol:"EVM",decimals:18},infoURL:"https://www.trust.one/",shortName:"TrustTestnet",chainId:15555,networkId:15555,explorers:[{name:"Trust EVM Explorer",url:"https://trustscan.one",standard:"EIP3091"}],testnet:!0,slug:"trust-evm-testnet"},rDt={name:"MetaDot Mainnet",chain:"MTT",rpc:["https://mainnet.metadot.network"],faucets:[],nativeCurrency:{name:"MetaDot Token",symbol:"MTT",decimals:18},infoURL:"https://metadot.network",shortName:"mtt",chainId:16e3,networkId:16e3,testnet:!1,slug:"metadot"},nDt={name:"MetaDot Testnet",chain:"MTTTest",rpc:["https://testnet.metadot.network"],faucets:["https://faucet.metadot.network/"],nativeCurrency:{name:"MetaDot Token TestNet",symbol:"MTTest",decimals:18},infoURL:"https://metadot.network",shortName:"mtttest",chainId:16001,networkId:16001,testnet:!0,slug:"metadot-testnet"},aDt={name:"IVAR Chain Testnet",chain:"IVAR",icon:{url:"ipfs://QmV8UmSwqGF2fxrqVEBTHbkyZueahqyYtkfH2RBF5pNysM",width:519,height:519,format:"svg"},rpc:["https://testnet-rpc.ivarex.com"],faucets:["https://tfaucet.ivarex.com/"],nativeCurrency:{name:"tIvar",symbol:"tIVAR",decimals:18},infoURL:"https://ivarex.com",shortName:"tivar",chainId:16888,networkId:16888,explorers:[{name:"ivarscan",url:"https://testnet.ivarscan.com",standard:"EIP3091"}],testnet:!0,slug:"ivar-chain-testnet"},iDt={name:"Frontier of Dreams Testnet",chain:"Game Network",rpc:["https://rpc.fod.games/"],nativeCurrency:{name:"ZKST",symbol:"ZKST",decimals:18},faucets:[],shortName:"ZKST",chainId:18e3,networkId:18e3,infoURL:"https://goexosphere.com",explorers:[{name:"Game Network",url:"https://explorer.fod.games",standard:"EIP3091"}],testnet:!0,slug:"frontier-of-dreams-testnet"},sDt={name:"Proof Of Memes",title:"Proof Of Memes Mainnet",chain:"POM",icon:{url:"ipfs://QmePhfibWz9jnGUqF9Rven4x734br1h3LxrChYTEjbbQvo",width:256,height:256,format:"png"},rpc:["https://mainnet-rpc.memescan.io","https://mainnet-rpc2.memescan.io","https://mainnet-rpc3.memescan.io","https://mainnet-rpc4.memescan.io"],faucets:[],nativeCurrency:{name:"Proof Of Memes",symbol:"POM",decimals:18},infoURL:"https://proofofmemes.org",shortName:"pom",chainId:18159,networkId:18159,explorers:[{name:"explorer-proofofmemes",url:"https://memescan.io",standard:"EIP3091"}],testnet:!1,slug:"proof-of-memes"},oDt={name:"HOME Verse Mainnet",chain:"HOME Verse",icon:{url:"ipfs://QmeGb65zSworzoHmwK3jdkPtEsQZMUSJRxf8K8Feg56soU",width:597,height:597,format:"png"},rpc:["https://rpc.mainnet.oasys.homeverse.games/"],faucets:[],nativeCurrency:{name:"OAS",symbol:"OAS",decimals:18},infoURL:"https://www.homeverse.games/",shortName:"HMV",chainId:19011,networkId:19011,explorers:[{name:"HOME Verse Explorer",url:"https://explorer.oasys.homeverse.games",standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-248"},testnet:!1,slug:"home-verse"},cDt={name:"BTCIX Network",chain:"BTCIX",rpc:["https://seed.btcix.org/rpc"],faucets:[],nativeCurrency:{name:"BTCIX Network",symbol:"BTCIX",decimals:18},infoURL:"https://bitcolojix.org",shortName:"btcix",chainId:19845,networkId:19845,explorers:[{name:"BTCIXScan",url:"https://btcixscan.com",standard:"none"}],testnet:!1,slug:"btcix-network"},uDt={name:"Callisto Testnet",chain:"CLO",rpc:["https://testnet-rpc.callisto.network/"],faucets:["https://faucet.callisto.network/"],nativeCurrency:{name:"Callisto",symbol:"CLO",decimals:18},infoURL:"https://callisto.network",shortName:"CLOTestnet",chainId:20729,networkId:79,testnet:!0,slug:"callisto-testnet"},lDt={name:"P12 Chain",chain:"P12",icon:{url:"ipfs://bafkreieiro4imoujeewc4r4thf5hxj47l56j2iwuz6d6pdj6ieb6ub3h7e",width:512,height:512,format:"png"},rpc:["https://rpc-chain.p12.games"],faucets:[],nativeCurrency:{name:"Hooked P2",symbol:"hP2",decimals:18},infoURL:"https://p12.network",features:[{name:"EIP155"},{name:"EIP1559"}],shortName:"p12",chainId:20736,networkId:20736,explorers:[{name:"P12 Chain Explorer",url:"https://explorer.p12.games",standard:"EIP3091"}],testnet:!1,slug:"p12-chain"},dDt={name:"CENNZnet Azalea",chain:"CENNZnet",rpc:["https://cennznet.unfrastructure.io/public"],faucets:[],nativeCurrency:{name:"CPAY",symbol:"CPAY",decimals:18},infoURL:"https://cennz.net",shortName:"cennz-a",chainId:21337,networkId:21337,icon:{url:"ipfs://QmWhNm7tTi6SYbiumULDRk956hxgqaZSX77vcxBNn8fvnw",width:112,height:112,format:"svg"},explorers:[{name:"UNcover",url:"https://uncoverexplorer.com",standard:"none"}],testnet:!1,slug:"cennznet-azalea"},pDt={name:"omChain Mainnet",chain:"OML",icon:{url:"ipfs://QmQtEHaejiDbmiCvbBYw9jNQv3DLK5XHCQwLRfnLNpdN5j",width:256,height:256,format:"png"},rpc:["https://seed.omchain.io"],faucets:[],nativeCurrency:{name:"omChain",symbol:"OMC",decimals:18},infoURL:"https://omchain.io",shortName:"omc",chainId:21816,networkId:21816,explorers:[{name:"omChain Explorer",url:"https://explorer.omchain.io",standard:"EIP3091"}],testnet:!1,slug:"omchain"},hDt={name:"Taycan",chain:"Taycan",rpc:["https://taycan-rpc.hupayx.io:8545"],faucets:[],nativeCurrency:{name:"shuffle",symbol:"SFL",decimals:18},infoURL:"https://hupayx.io",shortName:"SFL",chainId:22023,networkId:22023,icon:{url:"ipfs://bafkreidvjcc73v747lqlyrhgbnkvkdepdvepo6baj6hmjsmjtvdyhmzzmq",width:1e3,height:1206,format:"png"},explorers:[{name:"Taycan Explorer(Blockscout)",url:"https://taycan-evmscan.hupayx.io",standard:"none",icon:"shuffle"},{name:"Taycan Cosmos Explorer(BigDipper)",url:"https://taycan-cosmoscan.hupayx.io",standard:"none",icon:"shuffle"}],testnet:!1,slug:"taycan"},fDt={name:"MAP Mainnet",chain:"MAP",icon:{url:"ipfs://QmcLdQ8gM4iHv3CCKA9HuxmzTxY4WhjWtepUVCc3dpzKxD",width:512,height:512,format:"png"},rpc:["https://rpc.maplabs.io"],faucets:[],nativeCurrency:{name:"MAP",symbol:"MAP",decimals:18},infoURL:"https://maplabs.io",shortName:"map",chainId:22776,networkId:22776,slip44:60,explorers:[{name:"mapscan",url:"https://mapscan.io",standard:"EIP3091"}],testnet:!1,slug:"map"},mDt={name:"Opside Testnet",chain:"Opside",rpc:["https://testrpc.opside.network"],faucets:["https://faucet.opside.network"],nativeCurrency:{name:"IDE",symbol:"IDE",decimals:18},infoURL:"https://opside.network",shortName:"opside",chainId:23118,networkId:23118,icon:{url:"ipfs://QmeCyZeibUoHNoYGzy1GkzH2uhxyRHKvH51PdaUMer4VTo",width:591,height:591,format:"png"},explorers:[{name:"opsideInfo",url:"https://opside.info",standard:"EIP3091"}],testnet:!0,slug:"opside-testnet"},yDt={name:"Oasis Sapphire",chain:"Sapphire",icon:{url:"ipfs://bafkreiespupb52akiwrexxg7g72mh7m7h7lum5hmqijmpdh3kmuunzclha",width:2e3,height:2e3,format:"png"},rpc:["https://sapphire.oasis.io","wss://sapphire.oasis.io/ws"],faucets:[],nativeCurrency:{name:"Sapphire Rose",symbol:"ROSE",decimals:18},infoURL:"https://docs.oasis.io/dapp/sapphire",shortName:"sapphire",chainId:23294,networkId:23294,explorers:[{name:"Oasis Sapphire Explorer",url:"https://explorer.sapphire.oasis.io",standard:"EIP3091"}],testnet:!1,slug:"oasis-sapphire"},gDt={name:"Oasis Sapphire Testnet",chain:"Sapphire",icon:{url:"ipfs://bafkreiespupb52akiwrexxg7g72mh7m7h7lum5hmqijmpdh3kmuunzclha",width:2e3,height:2e3,format:"png"},rpc:["https://testnet.sapphire.oasis.dev","wss://testnet.sapphire.oasis.dev/ws"],faucets:[],nativeCurrency:{name:"Sapphire Test Rose",symbol:"TEST",decimals:18},infoURL:"https://docs.oasis.io/dapp/sapphire",shortName:"sapphire-testnet",chainId:23295,networkId:23295,explorers:[{name:"Oasis Sapphire Testnet Explorer",url:"https://testnet.explorer.sapphire.oasis.dev",standard:"EIP3091"}],testnet:!0,slug:"oasis-sapphire-testnet"},vDt={name:"Webchain",chain:"WEB",rpc:[],faucets:[],nativeCurrency:{name:"Webchain Ether",symbol:"WEB",decimals:18},infoURL:"https://webchain.network",shortName:"web",chainId:24484,networkId:37129,slip44:227,testnet:!1,slug:"webchain"},bDt={name:"MintMe.com Coin",chain:"MINTME",rpc:["https://node1.mintme.com"],faucets:[],nativeCurrency:{name:"MintMe.com Coin",symbol:"MINTME",decimals:18},infoURL:"https://www.mintme.com",shortName:"mintme",chainId:24734,networkId:37480,testnet:!1,slug:"mintme-com-coin"},wDt={name:"Hammer Chain Mainnet",chain:"HammerChain",rpc:["https://www.hammerchain.io/rpc"],faucets:[],nativeCurrency:{name:"GOLDT",symbol:"GOLDT",decimals:18},infoURL:"https://www.hammerchain.io",shortName:"GOLDT",chainId:25888,networkId:25888,explorers:[{name:"Hammer Chain Explorer",url:"https://www.hammerchain.io",standard:"none"}],testnet:!1,slug:"hammer-chain"},xDt={name:"Bitkub Chain Testnet",chain:"BKC",icon:{url:"ipfs://QmYFYwyquipwc9gURQGcEd4iAq7pq15chQrJ3zJJe9HuFT",width:1e3,height:1e3,format:"png"},rpc:["https://rpc-testnet.bitkubchain.io","wss://wss-testnet.bitkubchain.io"],faucets:["https://faucet.bitkubchain.com"],nativeCurrency:{name:"Bitkub Coin",symbol:"tKUB",decimals:18},infoURL:"https://www.bitkubchain.com/",shortName:"bkct",chainId:25925,networkId:25925,explorers:[{name:"bkcscan-testnet",url:"https://testnet.bkcscan.com",standard:"none",icon:"bkc"}],testnet:!0,slug:"bitkub-chain-testnet"},TDt={name:"Hertz Network Mainnet",chain:"HTZ",rpc:["https://mainnet-rpc.hertzscan.com"],faucets:[],nativeCurrency:{name:"Hertz",symbol:"HTZ",decimals:18},features:[{name:"EIP155"},{name:"EIP1559"}],infoURL:"https://www.hertz-network.com",shortName:"HTZ",chainId:26600,networkId:26600,icon:{url:"ipfs://Qmf3GYbPXmTDpSP6t7Ug2j5HjEwrY5oGhBDP7d4TQHvGnG",width:162,height:129,format:"png"},explorers:[{name:"Hertz Scan",url:"https://hertzscan.com",icon:"hertz-network",standard:"EIP3091"}],testnet:!1,slug:"hertz-network"},_Dt={name:"OasisChain Mainnet",chain:"OasisChain",rpc:["https://rpc1.oasischain.io","https://rpc2.oasischain.io","https://rpc3.oasischain.io"],faucets:["http://faucet.oasischain.io"],nativeCurrency:{name:"OAC",symbol:"OAC",decimals:18},infoURL:"https://scan.oasischain.io",shortName:"OAC",chainId:26863,networkId:26863,explorers:[{name:"OasisChain Explorer",url:"https://scan.oasischain.io",standard:"EIP3091"}],testnet:!1,slug:"oasischain"},CDt={name:"Optimism Bedrock (Goerli Alpha Testnet)",chain:"ETH",rpc:["https://alpha-1-replica-0.bedrock-goerli.optimism.io","https://alpha-1-replica-1.bedrock-goerli.optimism.io","https://alpha-1-replica-2.bedrock-goerli.optimism.io","https://alpha-1-replica-2.bedrock-goerli.optimism.io"],faucets:[],nativeCurrency:{name:"Goerli Ether",symbol:"ETH",decimals:18},infoURL:"https://community.optimism.io/docs/developers/bedrock",shortName:"obgor",chainId:28528,networkId:28528,explorers:[{name:"blockscout",url:"https://blockscout.com/optimism/bedrock-alpha",standard:"EIP3091"}],testnet:!0,slug:"optimism-bedrock-goerli-alpha-testnet"},EDt={name:"Piece testnet",chain:"PieceNetwork",icon:{url:"ipfs://QmWAU39z1kcYshAqkENRH8qUjfR5CJehCxA4GiC33p3HpH",width:800,height:800,format:"png"},rpc:["https://testnet-rpc0.piecenetwork.com"],faucets:["https://piecenetwork.com/faucet"],nativeCurrency:{name:"ECE",symbol:"ECE",decimals:18},infoURL:"https://piecenetwork.com",shortName:"Piece",chainId:30067,networkId:30067,explorers:[{name:"Piece Scan",url:"https://testnet-scan.piecenetwork.com",standard:"EIP3091"}],testnet:!0,slug:"piece-testnet"},kDt={name:"Ethersocial Network",chain:"ESN",rpc:["https://api.esn.gonspool.com"],faucets:[],nativeCurrency:{name:"Ethersocial Network Ether",symbol:"ESN",decimals:18},infoURL:"https://ethersocial.org",shortName:"esn",chainId:31102,networkId:1,slip44:31102,testnet:!1,slug:"ethersocial-network"},SDt={name:"CloudTx Mainnet",chain:"CLD",icon:{url:"ipfs://QmSEsi71AdA5HYH6VNC5QUQezFg1C7BiVQJdx1VVfGz3g3",width:713,height:830,format:"png"},rpc:["https://mainnet-rpc.cloudtx.finance"],faucets:[],nativeCurrency:{name:"CloudTx",symbol:"CLD",decimals:18},infoURL:"https://cloudtx.finance",shortName:"CLDTX",chainId:31223,networkId:31223,explorers:[{name:"cloudtxscan",url:"https://scan.cloudtx.finance",standard:"EIP3091"}],testnet:!1,slug:"cloudtx"},ADt={name:"CloudTx Testnet",chain:"CloudTx",icon:{url:"ipfs://QmSEsi71AdA5HYH6VNC5QUQezFg1C7BiVQJdx1VVfGz3g3",width:713,height:830,format:"png"},rpc:["https://testnet-rpc.cloudtx.finance"],faucets:["https://faucet.cloudtx.finance"],nativeCurrency:{name:"CloudTx",symbol:"CLD",decimals:18},infoURL:"https://cloudtx.finance/",shortName:"CLD",chainId:31224,networkId:31224,explorers:[{name:"cloudtxexplorer",url:"https://explorer.cloudtx.finance",standard:"EIP3091"}],testnet:!0,slug:"cloudtx-testnet"},MDt={name:"GoChain Testnet",chain:"GO",rpc:["https://testnet-rpc.gochain.io"],faucets:[],nativeCurrency:{name:"GoChain Coin",symbol:"GO",decimals:18},infoURL:"https://gochain.io",shortName:"got",chainId:31337,networkId:31337,slip44:6060,explorers:[{name:"GoChain Testnet Explorer",url:"https://testnet-explorer.gochain.io",standard:"EIP3091"}],testnet:!0,slug:"gochain-testnet"},IDt={name:"Filecoin - Wallaby testnet",chain:"FIL",icon:{url:"ipfs://QmS9r9XQkMHVomWcSBNDkKkz9n87h9bH9ssabeiKZtANoU",width:1e3,height:1e3,format:"png"},rpc:["https://wallaby.node.glif.io/rpc/v1"],faucets:["https://wallaby.yoga/#faucet"],nativeCurrency:{name:"testnet filecoin",symbol:"tFIL",decimals:18},infoURL:"https://filecoin.io",shortName:"filecoin-wallaby",chainId:31415,networkId:31415,slip44:1,explorers:[],testnet:!0,slug:"filecoin-wallaby-testnet"},PDt={name:"Bitgert Mainnet",chain:"Brise",rpc:["https://rpc.icecreamswap.com","https://mainnet-rpc.brisescan.com","https://chainrpc.com","https://serverrpc.com"],faucets:[],nativeCurrency:{name:"Bitrise Token",symbol:"Brise",decimals:18},infoURL:"https://bitgert.com/",shortName:"Brise",chainId:32520,networkId:32520,icon:{url:"ipfs://QmY3vKe1rG9AyHSGH1ouP3ER3EVUZRtRrFbFZEfEpMSd4V",width:512,height:512,format:"png"},explorers:[{name:"Brise Scan",url:"https://brisescan.com",icon:"brise",standard:"EIP3091"}],testnet:!1,slug:"bitgert"},RDt={name:"Fusion Mainnet",chain:"FSN",icon:{url:"ipfs://QmX3tsEoj7SdaBLLV8VyyCUAmymdEGiSGeuTbxMrEMVvth",width:31,height:31,format:"svg"},rpc:["https://mainnet.fusionnetwork.io","wss://mainnet.fusionnetwork.io"],features:[{name:"EIP155"},{name:"EIP1559"}],faucets:[],nativeCurrency:{name:"Fusion",symbol:"FSN",decimals:18},infoURL:"https://fusion.org",shortName:"fsn",chainId:32659,networkId:32659,slip44:288,explorers:[{name:"fsnscan",url:"https://fsnscan.com",icon:"fsnscan",standard:"EIP3091"}],testnet:!1,slug:"fusion"},NDt={name:"Aves Mainnet",chain:"AVS",rpc:["https://rpc.avescoin.io"],faucets:[],nativeCurrency:{name:"Aves",symbol:"AVS",decimals:18},features:[{name:"EIP155"},{name:"EIP1559"}],infoURL:"https://avescoin.io",shortName:"avs",chainId:33333,networkId:33333,icon:{url:"ipfs://QmeKQVv2QneHaaggw2NfpZ7DGMdjVhPywTdse5RzCs4oGn",width:232,height:232,format:"png"},explorers:[{name:"avescan",url:"https://avescan.io",icon:"avescan",standard:"EIP3091"}],testnet:!1,slug:"aves"},ODt={name:"J2O Taro",chain:"TARO",rpc:["https://rpc.j2o.io"],features:[{name:"EIP155"},{name:"EIP1559"}],faucets:[],nativeCurrency:{name:"TARO Coin",symbol:"taro",decimals:18},infoURL:"https://j2o.io",shortName:"j2o",chainId:35011,networkId:35011,explorers:[{name:"J2O Taro Explorer",url:"https://exp.j2o.io",icon:"j2otaro",standard:"EIP3091"}],testnet:!1,slug:"j2o-taro"},LDt={name:"Q Mainnet",chain:"Q",rpc:["https://rpc.q.org"],faucets:[],nativeCurrency:{name:"Q token",symbol:"Q",decimals:18},infoURL:"https://q.org",shortName:"q",chainId:35441,networkId:35441,icon:{url:"ipfs://QmQUQKe8VEtSthhgXnJ3EmEz94YhpVCpUDZAiU9KYyNLya",width:585,height:603,format:"png"},explorers:[{name:"Q explorer",url:"https://explorer.q.org",icon:"q",standard:"EIP3091"}],testnet:!1,slug:"q"},BDt={name:"Q Testnet",chain:"Q",rpc:["https://rpc.qtestnet.org"],faucets:[],nativeCurrency:{name:"Q token",symbol:"Q",decimals:18},infoURL:"https://q.org/",shortName:"q-testnet",chainId:35443,networkId:35443,icon:{url:"ipfs://QmQUQKe8VEtSthhgXnJ3EmEz94YhpVCpUDZAiU9KYyNLya",width:585,height:603,format:"png"},explorers:[{name:"Q explorer",url:"https://explorer.qtestnet.org",icon:"q",standard:"EIP3091"}],testnet:!0,slug:"q-testnet"},qDt={name:"Energi Mainnet",chain:"NRG",rpc:["https://nodeapi.energi.network"],faucets:[],nativeCurrency:{name:"Energi",symbol:"NRG",decimals:18},infoURL:"https://www.energi.world/",shortName:"nrg",chainId:39797,networkId:39797,slip44:39797,testnet:!1,slug:"energi"},DDt={name:"OHO Mainnet",chain:"OHO",rpc:["https://mainnet.oho.ai"],faucets:[],nativeCurrency:{name:"OHO",symbol:"OHO",decimals:18},infoURL:"https://oho.ai",shortName:"oho",chainId:39815,networkId:39815,icon:{url:"ipfs://QmZt75xixnEtFzqHTrJa8kJkV4cTXmUZqeMeHM8BcvomQc",width:512,height:512,format:"png"},explorers:[{name:"ohoscan",url:"https://ohoscan.com",icon:"ohoscan",standard:"EIP3091"}],testnet:!1,slug:"oho"},FDt={name:"Opulent-X BETA",chainId:41500,shortName:"ox-beta",chain:"Opulent-X",networkId:41500,nativeCurrency:{name:"Oxyn Gas",symbol:"OXYN",decimals:18},rpc:["https://connect.opulent-x.com"],faucets:[],infoURL:"https://beta.opulent-x.com",explorers:[{name:"Opulent-X BETA Explorer",url:"https://explorer.opulent-x.com",standard:"none"}],testnet:!1,slug:"opulent-x-beta"},UDt={name:"pegglecoin",chain:"42069",rpc:[],faucets:[],nativeCurrency:{name:"pegglecoin",symbol:"peggle",decimals:18},infoURL:"https://teampeggle.com",shortName:"PC",chainId:42069,networkId:42069,testnet:!1,slug:"pegglecoin"},WDt={name:"Arbitrum One",chainId:42161,shortName:"arb1",chain:"ETH",networkId:42161,nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpc:["https://arbitrum.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://arbitrum-mainnet.infura.io/v3/${INFURA_API_KEY}","https://arb-mainnet.g.alchemy.com/v2/${ALCHEMY_API_KEY}","https://arb1.arbitrum.io/rpc"],faucets:[],explorers:[{name:"Arbitrum Explorer",url:"https://explorer.arbitrum.io",standard:"EIP3091"},{name:"Arbiscan",url:"https://arbiscan.io",standard:"EIP3091"}],infoURL:"https://arbitrum.io",parent:{type:"L2",chain:"eip155-1",bridges:[{url:"https://bridge.arbitrum.io"}]},icon:{url:"ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/arbitrum/512.png",height:512,width:512,format:"png",sizes:[512,256,128,64,32,16]},testnet:!1,slug:"arbitrum-one"},jDt={name:"Arbitrum Nova",chainId:42170,shortName:"arb-nova",chain:"ETH",networkId:42170,nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpc:["https://nova.arbitrum.io/rpc"],faucets:[],explorers:[{name:"Arbitrum Nova Chain Explorer",url:"https://nova-explorer.arbitrum.io",icon:"blockscout",standard:"EIP3091"}],infoURL:"https://arbitrum.io",parent:{type:"L2",chain:"eip155-1",bridges:[{url:"https://bridge.arbitrum.io"}]},testnet:!1,slug:"arbitrum-nova"},zDt={name:"Celo Mainnet",chainId:42220,shortName:"celo",chain:"CELO",networkId:42220,nativeCurrency:{name:"CELO",symbol:"CELO",decimals:18},rpc:["https://forno.celo.org","wss://forno.celo.org/ws"],faucets:["https://free-online-app.com/faucet-for-eth-evm-chains/"],infoURL:"https://docs.celo.org/",explorers:[{name:"Celoscan",url:"https://celoscan.io",standard:"EIP3091"},{name:"blockscout",url:"https://explorer.celo.org",standard:"none"}],testnet:!1,slug:"celo"},HDt={name:"Oasis Emerald Testnet",chain:"Emerald",icon:{url:"ipfs://bafkreiespupb52akiwrexxg7g72mh7m7h7lum5hmqijmpdh3kmuunzclha",width:2e3,height:2e3,format:"png"},rpc:["https://testnet.emerald.oasis.dev/","wss://testnet.emerald.oasis.dev/ws"],faucets:["https://faucet.testnet.oasis.dev/"],nativeCurrency:{name:"Emerald Rose",symbol:"ROSE",decimals:18},infoURL:"https://docs.oasis.io/dapp/emerald",shortName:"emerald-testnet",chainId:42261,networkId:42261,explorers:[{name:"Oasis Emerald Testnet Explorer",url:"https://testnet.explorer.emerald.oasis.dev",standard:"EIP3091"}],testnet:!0,slug:"oasis-emerald-testnet"},VDt={name:"Oasis Emerald",chain:"Emerald",icon:{url:"ipfs://bafkreiespupb52akiwrexxg7g72mh7m7h7lum5hmqijmpdh3kmuunzclha",width:2e3,height:2e3,format:"png"},rpc:["https://emerald.oasis.dev","wss://emerald.oasis.dev/ws"],faucets:[],nativeCurrency:{name:"Emerald Rose",symbol:"ROSE",decimals:18},infoURL:"https://docs.oasis.io/dapp/emerald",shortName:"emerald",chainId:42262,networkId:42262,explorers:[{name:"Oasis Emerald Explorer",url:"https://explorer.emerald.oasis.dev",standard:"EIP3091"}],testnet:!1,slug:"oasis-emerald"},GDt={name:"Athereum",chain:"ATH",rpc:["https://ava.network:21015/ext/evm/rpc"],faucets:["http://athfaucet.ava.network//?address=${ADDRESS}"],nativeCurrency:{name:"Athereum Ether",symbol:"ATH",decimals:18},infoURL:"https://athereum.ava.network",shortName:"avaeth",chainId:43110,networkId:43110,testnet:!1,slug:"athereum"},ZDt={name:"Avalanche Fuji Testnet",chain:"AVAX",icon:{url:"ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/avalanche/512.png",height:512,width:512,format:"png",sizes:[512,256,128,64,32,16]},rpc:["https://avalanche-fuji.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.avax-test.network/ext/bc/C/rpc"],faucets:["https://faucet.avax-test.network/"],nativeCurrency:{name:"Avalanche",symbol:"AVAX",decimals:18},infoURL:"https://cchain.explorer.avax-test.network",shortName:"Fuji",chainId:43113,networkId:1,explorers:[{name:"snowtrace",url:"https://testnet.snowtrace.io",standard:"EIP3091"}],testnet:!0,slug:"avalanche-fuji-testnet"},JDt={name:"Avalanche C-Chain",chain:"AVAX",icon:{url:"ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/avalanche/512.png",height:512,width:512,format:"png",sizes:[512,256,128,64,32,16]},rpc:["https://avalanche.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.avax.network/ext/bc/C/rpc"],features:[{name:"EIP1559"}],faucets:["https://free-online-app.com/faucet-for-eth-evm-chains/"],nativeCurrency:{name:"Avalanche",symbol:"AVAX",decimals:18},infoURL:"https://www.avax.network/",shortName:"avax",chainId:43114,networkId:43114,slip44:9005,explorers:[{name:"snowtrace",url:"https://snowtrace.io",standard:"EIP3091"}],testnet:!1,slug:"avalanche-c-chain"},KDt={name:"Boba Avax",chain:"Boba Avax",rpc:["https://avax.boba.network","wss://wss.avax.boba.network","https://replica.avax.boba.network","wss://replica-wss.avax.boba.network"],faucets:[],nativeCurrency:{name:"Boba Token",symbol:"BOBA",decimals:18},infoURL:"https://docs.boba.network/for-developers/network-avalanche",shortName:"bobaavax",chainId:43288,networkId:43288,explorers:[{name:"Boba Avax Explorer",url:"https://blockexplorer.avax.boba.network",standard:"none"}],testnet:!1,slug:"boba-avax"},QDt={name:"Frenchain",chain:"fren",rpc:["https://rpc-02.frenscan.io"],faucets:[],nativeCurrency:{name:"FREN",symbol:"FREN",decimals:18},infoURL:"https://frenchain.app",shortName:"FREN",chainId:44444,networkId:44444,icon:{url:"ipfs://QmQk41bYX6WpYyUAdRgomZekxP5mbvZXhfxLEEqtatyJv4",width:128,height:128,format:"png"},explorers:[{name:"blockscout",url:"https://frenscan.io",icon:"fren",standard:"EIP3091"}],testnet:!1,slug:"frenchain"},XDt={name:"Celo Alfajores Testnet",chainId:44787,shortName:"ALFA",chain:"CELO",networkId:44787,nativeCurrency:{name:"CELO",symbol:"CELO",decimals:18},rpc:["https://alfajores-forno.celo-testnet.org","wss://alfajores-forno.celo-testnet.org/ws"],faucets:["https://celo.org/developers/faucet","https://cauldron.pretoriaresearchlab.io/alfajores-faucet"],infoURL:"https://docs.celo.org/",explorers:[{name:"Celoscan",url:"https://celoscan.io",standard:"EIP3091"}],testnet:!0,slug:"celo-alfajores-testnet"},YDt={name:"Autobahn Network",chain:"TXL",rpc:["https://rpc.autobahn.network"],faucets:[],nativeCurrency:{name:"TXL",symbol:"TXL",decimals:18},infoURL:"https://autobahn.network",shortName:"AutobahnNetwork",chainId:45e3,networkId:45e3,icon:{url:"ipfs://QmZP19pbqTco4vaP9siduLWP8pdYArFK3onfR55tvjr12s",width:489,height:489,format:"png"},explorers:[{name:"autobahn explorer",url:"https://explorer.autobahn.network",icon:"autobahn",standard:"EIP3091"}],testnet:!1,slug:"autobahn-network"},$Dt={name:"Fusion Testnet",chain:"FSN",icon:{url:"ipfs://QmX3tsEoj7SdaBLLV8VyyCUAmymdEGiSGeuTbxMrEMVvth",width:31,height:31,format:"svg"},rpc:["https://testnet.fusionnetwork.io","wss://testnet.fusionnetwork.io"],features:[{name:"EIP155"},{name:"EIP1559"}],faucets:[],nativeCurrency:{name:"Testnet Fusion",symbol:"T-FSN",decimals:18},infoURL:"https://fusion.org",shortName:"tfsn",chainId:46688,networkId:46688,slip44:288,explorers:[{name:"fsnscan",url:"https://testnet.fsnscan.com",icon:"fsnscan",standard:"EIP3091"}],testnet:!0,slug:"fusion-testnet"},eFt={name:"REI Network",chain:"REI",rpc:["https://rpc.rei.network","wss://rpc.rei.network"],faucets:[],nativeCurrency:{name:"REI",symbol:"REI",decimals:18},infoURL:"https://rei.network/",shortName:"REI",chainId:47805,networkId:47805,explorers:[{name:"rei-scan",url:"https://scan.rei.network",standard:"none"}],testnet:!1,slug:"rei-network"},tFt={name:"Floripa",title:"Wireshape Testnet Floripa",chain:"Wireshape",rpc:["https://rpc-floripa.wireshape.org"],faucets:[],nativeCurrency:{name:"WIRE",symbol:"WIRE",decimals:18},infoURL:"https://wireshape.org",shortName:"floripa",chainId:49049,networkId:49049,explorers:[{name:"Wire Explorer",url:"https://floripa-explorer.wireshape.org",standard:"EIP3091"}],testnet:!0,slug:"floripa"},rFt={name:"Bifrost Testnet",title:"The Bifrost Testnet network",chain:"BFC",rpc:["https://public-01.testnet.thebifrost.io/rpc","https://public-02.testnet.thebifrost.io/rpc"],faucets:[],nativeCurrency:{name:"Bifrost",symbol:"BFC",decimals:18},infoURL:"https://thebifrost.io",shortName:"tbfc",chainId:49088,networkId:49088,icon:{url:"ipfs://QmcHvn2Wq91ULyEH5s3uHjosX285hUgyJHwggFJUd3L5uh",width:128,height:128,format:"png"},explorers:[{name:"explorer-thebifrost",url:"https://explorer.testnet.thebifrost.io",standard:"EIP3091"}],testnet:!0,slug:"bifrost-testnet"},nFt={name:"Energi Testnet",chain:"NRG",rpc:["https://nodeapi.test.energi.network"],faucets:[],nativeCurrency:{name:"Energi",symbol:"NRG",decimals:18},infoURL:"https://www.energi.world/",shortName:"tnrg",chainId:49797,networkId:49797,slip44:49797,testnet:!0,slug:"energi-testnet"},aFt={name:"Liveplex OracleEVM",chain:"Liveplex OracleEVM Network",rpc:["https://rpc.oracle.liveplex.io"],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"",shortName:"LOE",chainId:50001,networkId:50001,explorers:[],testnet:!1,slug:"liveplex-oracleevm"},iFt={name:"GTON Testnet",chain:"GTON Testnet",rpc:["https://testnet.gton.network/"],faucets:[],nativeCurrency:{name:"GCD",symbol:"GCD",decimals:18},infoURL:"https://gton.capital",shortName:"tgton",chainId:50021,networkId:50021,explorers:[{name:"GTON Testnet Network Explorer",url:"https://explorer.testnet.gton.network",standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-3"},testnet:!0,slug:"gton-testnet"},sFt={name:"Sardis Mainnet",chain:"SRDX",icon:{url:"ipfs://QmdR9QJjQEh1mBnf2WbJfehverxiP5RDPWMtEECbDP2rc3",width:512,height:512,format:"png"},rpc:["https://mainnet-rpc.sardisnetwork.com"],faucets:["https://faucet.sardisnetwork.com"],nativeCurrency:{name:"Sardis",symbol:"SRDX",decimals:18},infoURL:"https://mysardis.com",shortName:"SRDXm",chainId:51712,networkId:51712,explorers:[{name:"Sardis",url:"https://contract-mainnet.sardisnetwork.com",standard:"EIP3091"}],testnet:!1,slug:"sardis"},oFt={name:"DFK Chain",chain:"DFK",icon:{url:"ipfs://QmQB48m15TzhUFrmu56QCRQjkrkgUaKfgCmKE8o3RzmuPJ",width:500,height:500,format:"png"},rpc:["https://subnets.avax.network/defi-kingdoms/dfk-chain/rpc"],faucets:[],nativeCurrency:{name:"Jewel",symbol:"JEWEL",decimals:18},infoURL:"https://defikingdoms.com",shortName:"DFK",chainId:53935,networkId:53935,explorers:[{name:"ethernal",url:"https://explorer.dfkchain.com",icon:"ethereum",standard:"none"}],testnet:!1,slug:"dfk-chain"},cFt={name:"Haqq Chain Testnet",chain:"TestEdge2",rpc:["https://rpc.eth.testedge2.haqq.network"],faucets:["https://testedge2.haqq.network"],nativeCurrency:{name:"Islamic Coin",symbol:"ISLMT",decimals:18},infoURL:"https://islamiccoin.net",shortName:"ISLMT",chainId:54211,networkId:54211,explorers:[{name:"TestEdge HAQQ Explorer",url:"https://explorer.testedge2.haqq.network",standard:"EIP3091"}],testnet:!0,slug:"haqq-chain-testnet"},uFt={name:"REI Chain Mainnet",chain:"REI",icon:{url:"ipfs://QmNy5d5knHVjJJS9g4kLsh9i73RTjckpKL6KZvRk6ptbhf",width:591,height:591,format:"svg"},rpc:["https://rei-rpc.moonrhythm.io"],faucets:["http://kururu.finance/faucet?chainId=55555"],nativeCurrency:{name:"Rei",symbol:"REI",decimals:18},infoURL:"https://reichain.io",shortName:"reichain",chainId:55555,networkId:55555,explorers:[{name:"reiscan",url:"https://reiscan.com",standard:"EIP3091"}],testnet:!1,slug:"rei-chain"},lFt={name:"REI Chain Testnet",chain:"REI",icon:{url:"ipfs://QmNy5d5knHVjJJS9g4kLsh9i73RTjckpKL6KZvRk6ptbhf",width:591,height:591,format:"svg"},rpc:["https://rei-testnet-rpc.moonrhythm.io"],faucets:["http://kururu.finance/faucet?chainId=55556"],nativeCurrency:{name:"tRei",symbol:"tREI",decimals:18},infoURL:"https://reichain.io",shortName:"trei",chainId:55556,networkId:55556,explorers:[{name:"reiscan",url:"https://testnet.reiscan.com",standard:"EIP3091"}],testnet:!0,slug:"rei-chain-testnet"},dFt={name:"Boba BNB Mainnet",chain:"Boba BNB Mainnet",rpc:["https://bnb.boba.network","wss://wss.bnb.boba.network","https://replica.bnb.boba.network","wss://replica-wss.bnb.boba.network"],faucets:[],nativeCurrency:{name:"Boba Token",symbol:"BOBA",decimals:18},infoURL:"https://boba.network",shortName:"BobaBnb",chainId:56288,networkId:56288,explorers:[{name:"Boba BNB block explorer",url:"https://blockexplorer.bnb.boba.network",standard:"none"}],testnet:!1,slug:"boba-bnb"},pFt={name:"Thinkium Testnet Chain 0",chain:"Thinkium",rpc:["https://test.thinkiumrpc.net/"],faucets:["https://www.thinkiumdev.net/faucet"],nativeCurrency:{name:"TKM",symbol:"TKM",decimals:18},infoURL:"https://thinkium.net/",shortName:"TKM-test0",chainId:6e4,networkId:6e4,explorers:[{name:"thinkiumscan",url:"https://test0.thinkiumscan.net",standard:"EIP3091"}],testnet:!0,slug:"thinkium-testnet-chain-0"},hFt={name:"Thinkium Testnet Chain 1",chain:"Thinkium",rpc:["https://test1.thinkiumrpc.net/"],faucets:["https://www.thinkiumdev.net/faucet"],nativeCurrency:{name:"TKM",symbol:"TKM",decimals:18},infoURL:"https://thinkium.net/",shortName:"TKM-test1",chainId:60001,networkId:60001,explorers:[{name:"thinkiumscan",url:"https://test1.thinkiumscan.net",standard:"EIP3091"}],testnet:!0,slug:"thinkium-testnet-chain-1"},fFt={name:"Thinkium Testnet Chain 2",chain:"Thinkium",rpc:["https://test2.thinkiumrpc.net/"],faucets:["https://www.thinkiumdev.net/faucet"],nativeCurrency:{name:"TKM",symbol:"TKM",decimals:18},infoURL:"https://thinkium.net/",shortName:"TKM-test2",chainId:60002,networkId:60002,explorers:[{name:"thinkiumscan",url:"https://test2.thinkiumscan.net",standard:"EIP3091"}],testnet:!0,slug:"thinkium-testnet-chain-2"},mFt={name:"Thinkium Testnet Chain 103",chain:"Thinkium",rpc:["https://test103.thinkiumrpc.net/"],faucets:["https://www.thinkiumdev.net/faucet"],nativeCurrency:{name:"TKM",symbol:"TKM",decimals:18},infoURL:"https://thinkium.net/",shortName:"TKM-test103",chainId:60103,networkId:60103,explorers:[{name:"thinkiumscan",url:"https://test103.thinkiumscan.net",standard:"EIP3091"}],testnet:!0,slug:"thinkium-testnet-chain-103"},yFt={name:"Etica Mainnet",chain:"Etica Protocol (ETI/EGAZ)",icon:{url:"ipfs://QmYSyhUqm6ArWyALBe3G64823ZpEUmFdkzKZ93hUUhNKgU",width:360,height:361,format:"png"},rpc:["https://eticamainnet.eticascan.org","https://eticamainnet.eticaprotocol.org"],faucets:["http://faucet.etica-stats.org/"],nativeCurrency:{name:"EGAZ",symbol:"EGAZ",decimals:18},infoURL:"https://eticaprotocol.org",shortName:"Etica",chainId:61803,networkId:61803,explorers:[{name:"eticascan",url:"https://eticascan.org",standard:"EIP3091"},{name:"eticastats",url:"http://explorer.etica-stats.org",standard:"EIP3091"}],testnet:!1,slug:"etica"},gFt={name:"DoKEN Super Chain Mainnet",chain:"DoKEN Super Chain",rpc:["https://sgrpc.doken.dev","https://nyrpc.doken.dev","https://ukrpc.doken.dev"],faucets:[],nativeCurrency:{name:"DoKEN",symbol:"DKN",decimals:18},infoURL:"https://doken.dev/",shortName:"DoKEN",chainId:61916,networkId:61916,icon:{url:"ipfs://bafkreifms4eio6v56oyeemnnu5luq3sc44hptan225lr45itgzu3u372iu",width:200,height:200,format:"png"},explorers:[{name:"DSC Scan",url:"https://explore.doken.dev",icon:"doken",standard:"EIP3091"}],testnet:!1,slug:"doken-super-chain"},vFt={name:"Celo Baklava Testnet",chainId:62320,shortName:"BKLV",chain:"CELO",networkId:62320,nativeCurrency:{name:"CELO",symbol:"CELO",decimals:18},rpc:["https://baklava-forno.celo-testnet.org"],faucets:["https://docs.google.com/forms/d/e/1FAIpQLSdfr1BwUTYepVmmvfVUDRCwALejZ-TUva2YujNpvrEmPAX2pg/viewform","https://cauldron.pretoriaresearchlab.io/baklava-faucet"],infoURL:"https://docs.celo.org/",testnet:!0,slug:"celo-baklava-testnet"},bFt={name:"MultiVAC Mainnet",chain:"MultiVAC",icon:{url:"ipfs://QmWb1gthhbzkiLdgcP8ccZprGbJVjFcW8Rn4uJjrw4jd3B",width:200,height:200,format:"png"},rpc:["https://rpc.mtv.ac","https://rpc-eu.mtv.ac"],faucets:[],nativeCurrency:{name:"MultiVAC",symbol:"MTV",decimals:18},infoURL:"https://mtv.ac",shortName:"mtv",chainId:62621,networkId:62621,explorers:[{name:"MultiVAC Explorer",url:"https://e.mtv.ac",standard:"none"}],testnet:!1,slug:"multivac"},wFt={name:"eCredits Mainnet",chain:"ECS",rpc:["https://rpc.ecredits.com"],faucets:[],nativeCurrency:{name:"eCredits",symbol:"ECS",decimals:18},infoURL:"https://ecredits.com",shortName:"ecs",chainId:63e3,networkId:63e3,icon:{url:"ipfs://QmU9H9JE1KtLh2Fxrd8EWTMjKGJBpgRWKUeEx7u6ic4kBY",width:32,height:32,format:"png"},explorers:[{name:"eCredits MainNet Explorer",url:"https://explorer.ecredits.com",icon:"ecredits",standard:"EIP3091"}],testnet:!1,slug:"ecredits"},xFt={name:"eCredits Testnet",chain:"ECS",rpc:["https://rpc.tst.ecredits.com"],faucets:["https://faucet.tst.ecredits.com"],nativeCurrency:{name:"eCredits",symbol:"ECS",decimals:18},infoURL:"https://ecredits.com",shortName:"ecs-testnet",chainId:63001,networkId:63001,icon:{url:"ipfs://QmU9H9JE1KtLh2Fxrd8EWTMjKGJBpgRWKUeEx7u6ic4kBY",width:32,height:32,format:"png"},explorers:[{name:"eCredits TestNet Explorer",url:"https://explorer.tst.ecredits.com",icon:"ecredits",standard:"EIP3091"}],testnet:!0,slug:"ecredits-testnet"},TFt={name:"SiriusNet",chain:"SIN",rpc:["https://u0tnafcv6j:o2T045sxuCNXL878RDQLp5__Zj-es2cvdjtgkl4etn0@u0v7kwtvtg-u0wj114sve-rpc.us0-aws.kaleido.io/"],faucets:[],nativeCurrency:{name:"MCD",symbol:"MCD",decimals:18},infoURL:"https://macaucasinolisboa.xyz",shortName:"mcl",chainId:67390,networkId:67390,explorers:[{name:"siriusnetscan",url:"https://siriusnet.tryethernal.com",standard:"EIP3091"}],testnet:!1,slug:"siriusnet"},_Ft={name:"Condrieu",title:"Ethereum Verkle Testnet Condrieu",chain:"ETH",rpc:["https://rpc.condrieu.ethdevops.io:8545"],faucets:["https://faucet.condrieu.ethdevops.io"],nativeCurrency:{name:"Condrieu Testnet Ether",symbol:"CTE",decimals:18},infoURL:"https://condrieu.ethdevops.io",shortName:"cndr",chainId:69420,networkId:69420,explorers:[{name:"Condrieu explorer",url:"https://explorer.condrieu.ethdevops.io",standard:"none"}],testnet:!0,slug:"condrieu"},CFt={name:"Thinkium Mainnet Chain 0",chain:"Thinkium",rpc:["https://proxy.thinkiumrpc.net/"],faucets:[],nativeCurrency:{name:"TKM",symbol:"TKM",decimals:18},infoURL:"https://thinkium.net/",shortName:"TKM0",chainId:7e4,networkId:7e4,explorers:[{name:"thinkiumscan",url:"https://chain0.thinkiumscan.net",standard:"EIP3091"}],testnet:!1,slug:"thinkium-chain-0"},EFt={name:"Thinkium Mainnet Chain 1",chain:"Thinkium",rpc:["https://proxy1.thinkiumrpc.net/"],faucets:[],nativeCurrency:{name:"TKM",symbol:"TKM",decimals:18},infoURL:"https://thinkium.net/",shortName:"TKM1",chainId:70001,networkId:70001,explorers:[{name:"thinkiumscan",url:"https://chain1.thinkiumscan.net",standard:"EIP3091"}],testnet:!1,slug:"thinkium-chain-1"},kFt={name:"Thinkium Mainnet Chain 2",chain:"Thinkium",rpc:["https://proxy2.thinkiumrpc.net/"],faucets:[],nativeCurrency:{name:"TKM",symbol:"TKM",decimals:18},infoURL:"https://thinkium.net/",shortName:"TKM2",chainId:70002,networkId:70002,explorers:[{name:"thinkiumscan",url:"https://chain2.thinkiumscan.net",standard:"EIP3091"}],testnet:!1,slug:"thinkium-chain-2"},SFt={name:"Thinkium Mainnet Chain 103",chain:"Thinkium",rpc:["https://proxy103.thinkiumrpc.net/"],faucets:[],nativeCurrency:{name:"TKM",symbol:"TKM",decimals:18},infoURL:"https://thinkium.net/",shortName:"TKM103",chainId:70103,networkId:70103,explorers:[{name:"thinkiumscan",url:"https://chain103.thinkiumscan.net",standard:"EIP3091"}],testnet:!1,slug:"thinkium-chain-103"},AFt={name:"Polyjuice Testnet",chain:"CKB",icon:{url:"ipfs://QmZ5gFWUxLFqqT3DkefYfRsVksMwMTc5VvBjkbHpeFMsNe",width:1001,height:1629,format:"png"},rpc:["https://godwoken-testnet-web3-rpc.ckbapp.dev","ws://godwoken-testnet-web3-rpc.ckbapp.dev/ws"],faucets:["https://faucet.nervos.org/"],nativeCurrency:{name:"CKB",symbol:"CKB",decimals:8},infoURL:"https://github.com/nervosnetwork/godwoken",shortName:"ckb",chainId:71393,networkId:1,testnet:!0,slug:"polyjuice-testnet"},MFt={name:"Godwoken Testnet v1",chain:"GWT",rpc:["https://godwoken-testnet-v1.ckbapp.dev","https://v1.testnet.godwoken.io/rpc"],faucets:["https://testnet.bridge.godwoken.io"],nativeCurrency:{name:"pCKB",symbol:"pCKB",decimals:18},infoURL:"https://www.nervos.org",shortName:"gw-testnet-v1",chainId:71401,networkId:71401,explorers:[{name:"GWScout Explorer",url:"https://gw-testnet-explorer.nervosdao.community",standard:"none"},{name:"GWScan Block Explorer",url:"https://v1.testnet.gwscan.com",standard:"none"}],testnet:!0,slug:"godwoken-testnet-v1"},IFt={name:"Godwoken Mainnet",chain:"GWT",rpc:["https://v1.mainnet.godwoken.io/rpc"],faucets:[],nativeCurrency:{name:"pCKB",symbol:"pCKB",decimals:18},infoURL:"https://www.nervos.org",shortName:"gw-mainnet-v1",chainId:71402,networkId:71402,explorers:[{name:"GWScout Explorer",url:"https://gw-mainnet-explorer.nervosdao.community",standard:"none"},{name:"GWScan Block Explorer",url:"https://v1.gwscan.com",standard:"none"}],testnet:!1,slug:"godwoken"},PFt={name:"Energy Web Volta Testnet",chain:"Volta",rpc:["https://volta-rpc.energyweb.org","wss://volta-rpc.energyweb.org/ws"],faucets:["https://voltafaucet.energyweb.org"],nativeCurrency:{name:"Volta Token",symbol:"VT",decimals:18},infoURL:"https://energyweb.org",shortName:"vt",chainId:73799,networkId:73799,testnet:!0,slug:"energy-web-volta-testnet"},RFt={name:"Mixin Virtual Machine",chain:"MVM",rpc:["https://geth.mvm.dev"],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://mvm.dev",shortName:"mvm",chainId:73927,networkId:73927,icon:{url:"ipfs://QmeuDgSprukzfV7fi9XYHYcfmT4aZZZU7idgShtRS8Vf6V",width:471,height:512,format:"png"},explorers:[{name:"mvmscan",url:"https://scan.mvm.dev",icon:"mvm",standard:"EIP3091"}],testnet:!1,slug:"mixin-virtual-machine"},NFt={name:"ResinCoin Mainnet",chain:"RESIN",icon:{url:"ipfs://QmTBszPzBeWPhjozf4TxpL2ws1NkG9yJvisx9h6MFii1zb",width:460,height:460,format:"png"},rpc:["https://mainnet.resincoin.dev"],faucets:[],nativeCurrency:{name:"Ether",symbol:"RESIN",decimals:18},infoURL:"https://resincoin.dev",shortName:"resin",chainId:75e3,networkId:75e3,explorers:[{name:"ResinScan",url:"https://explorer.resincoin.dev",standard:"none"}],testnet:!1,slug:"resincoin"},OFt={name:"Vention Smart Chain Mainnet",chain:"VSC",icon:{url:"ipfs://QmcNepHmbmHW1BZYM3MFqJW4awwhmDqhUPRXXmRnXwg1U4",width:250,height:250,format:"png"},rpc:["https://mainnet-rpc.vention.network"],faucets:["https://faucet.vention.network"],nativeCurrency:{name:"VNT",symbol:"VNT",decimals:18},infoURL:"https://ventionscan.io",shortName:"vscm",chainId:77612,networkId:77612,explorers:[{name:"ventionscan",url:"https://ventionscan.io",standard:"EIP3091"}],testnet:!1,slug:"vention-smart-chain"},LFt={name:"Firenze test network",chain:"ETH",rpc:["https://ethnode.primusmoney.com/firenze"],faucets:[],nativeCurrency:{name:"Firenze Ether",symbol:"FIN",decimals:18},infoURL:"https://primusmoney.com",shortName:"firenze",chainId:78110,networkId:78110,testnet:!0,slug:"firenze-test-network"},BFt={name:"Gold Smart Chain Testnet",chain:"STAND",icon:{url:"ipfs://QmPNuymyaKLJhCaXnyrsL8358FeTxabZFsaxMmWNU4Tzt3",width:396,height:418,format:"png"},rpc:["https://rpc-testnet.goldsmartchain.com"],faucets:["https://faucet.goldsmartchain.com"],nativeCurrency:{name:"Standard in Gold",symbol:"STAND",decimals:18},infoURL:"https://goldsmartchain.com",shortName:"STANDt",chainId:79879,networkId:79879,explorers:[{name:"Gold Smart Chain",url:"https://testnet.goldsmartchain.com",standard:"EIP3091"}],testnet:!0,slug:"gold-smart-chain-testnet"},qFt={name:"Mumbai",title:"Polygon Testnet Mumbai",chain:"Polygon",icon:{url:"ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/polygon/512.png",height:512,width:512,format:"png",sizes:[512,256,128,64,32,16]},rpc:["https://mumbai.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://matic-mumbai.chainstacklabs.com","https://rpc-mumbai.maticvigil.com","https://matic-testnet-archive-rpc.bwarelabs.com"],faucets:["https://faucet.polygon.technology/"],nativeCurrency:{name:"MATIC",symbol:"MATIC",decimals:18},infoURL:"https://polygon.technology/",shortName:"maticmum",chainId:80001,networkId:80001,explorers:[{name:"polygonscan",url:"https://mumbai.polygonscan.com",standard:"EIP3091"}],testnet:!0,slug:"mumbai"},DFt={name:"Chiliz Scoville Testnet",chain:"CHZ",rpc:["https://scoville-rpc.chiliz.com"],faucets:["https://scoville-faucet.chiliz.com"],nativeCurrency:{name:"Chiliz",symbol:"CHZ",decimals:18},icon:{url:"ipfs://QmYV5xUVZhHRzLy7ie9D8qZeygJHvNZZAxwnB9GXYy6EED",width:400,height:400,format:"png"},infoURL:"https://www.chiliz.com/en/chain",shortName:"chz",chainId:88880,networkId:88880,explorers:[{name:"scoville-explorer",url:"https://scoville-explorer.chiliz.com",standard:"none"}],testnet:!0,slug:"chiliz-scoville-testnet"},FFt={name:"IVAR Chain Mainnet",chain:"IVAR",icon:{url:"ipfs://QmV8UmSwqGF2fxrqVEBTHbkyZueahqyYtkfH2RBF5pNysM",width:519,height:519,format:"svg"},rpc:["https://mainnet-rpc.ivarex.com"],faucets:["https://faucet.ivarex.com/"],nativeCurrency:{name:"Ivar",symbol:"IVAR",decimals:18},infoURL:"https://ivarex.com",shortName:"ivar",chainId:88888,networkId:88888,explorers:[{name:"ivarscan",url:"https://ivarscan.com",standard:"EIP3091"}],testnet:!1,slug:"ivar-chain"},UFt={name:"Beverly Hills",title:"Ethereum multi-client Verkle Testnet Beverly Hills",chain:"ETH",rpc:["https://rpc.beverlyhills.ethdevops.io:8545"],faucets:["https://faucet.beverlyhills.ethdevops.io"],nativeCurrency:{name:"Beverly Hills Testnet Ether",symbol:"BVE",decimals:18},infoURL:"https://beverlyhills.ethdevops.io",shortName:"bvhl",chainId:90210,networkId:90210,status:"incubating",explorers:[{name:"Beverly Hills explorer",url:"https://explorer.beverlyhills.ethdevops.io",standard:"none"}],testnet:!0,slug:"beverly-hills"},WFt={name:"Lambda Testnet",chain:"Lambda",rpc:["https://evm.lambda.top/"],faucets:["https://faucet.lambda.top"],nativeCurrency:{name:"test-Lamb",symbol:"LAMB",decimals:18},infoURL:"https://lambda.im",shortName:"lambda-testnet",chainId:92001,networkId:92001,icon:{url:"ipfs://QmWsoME6LCghQTpGYf7EnUojaDdYo7kfkWVjE6VvNtkjwy",width:500,height:500,format:"png"},explorers:[{name:"Lambda EVM Explorer",url:"https://explorer.lambda.top",standard:"EIP3091",icon:"lambda"}],testnet:!0,slug:"lambda-testnet"},jFt={name:"UB Smart Chain(testnet)",chain:"USC",rpc:["https://testnet.rpc.uschain.network"],faucets:[],nativeCurrency:{name:"UBC",symbol:"UBC",decimals:18},infoURL:"https://www.ubchain.site",shortName:"usctest",chainId:99998,networkId:99998,testnet:!0,slug:"ub-smart-chain-testnet"},zFt={name:"UB Smart Chain",chain:"USC",rpc:["https://rpc.uschain.network"],faucets:[],nativeCurrency:{name:"UBC",symbol:"UBC",decimals:18},infoURL:"https://www.ubchain.site/",shortName:"usc",chainId:99999,networkId:99999,testnet:!1,slug:"ub-smart-chain"},HFt={name:"QuarkChain Mainnet Root",chain:"QuarkChain",rpc:["http://jrpc.mainnet.quarkchain.io:38391"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-r",chainId:1e5,networkId:1e5,testnet:!1,slug:"quarkchain-root"},VFt={name:"QuarkChain Mainnet Shard 0",chain:"QuarkChain",rpc:["https://mainnet-s0-ethapi.quarkchain.io","http://eth-jrpc.mainnet.quarkchain.io:39000"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-s0",chainId:100001,networkId:100001,parent:{chain:"eip155-100000",type:"shard"},explorers:[{name:"quarkchain-mainnet",url:"https://mainnet.quarkchain.io/0",standard:"EIP3091"}],testnet:!1,slug:"quarkchain-shard-0"},GFt={name:"QuarkChain Mainnet Shard 1",chain:"QuarkChain",rpc:["https://mainnet-s1-ethapi.quarkchain.io","http://eth-jrpc.mainnet.quarkchain.io:39001"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-s1",chainId:100002,networkId:100002,parent:{chain:"eip155-100000",type:"shard"},explorers:[{name:"quarkchain-mainnet",url:"https://mainnet.quarkchain.io/1",standard:"EIP3091"}],testnet:!1,slug:"quarkchain-shard-1"},ZFt={name:"QuarkChain Mainnet Shard 2",chain:"QuarkChain",rpc:["https://mainnet-s2-ethapi.quarkchain.io","http://eth-jrpc.mainnet.quarkchain.io:39002"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-s2",chainId:100003,networkId:100003,parent:{chain:"eip155-100000",type:"shard"},explorers:[{name:"quarkchain-mainnet",url:"https://mainnet.quarkchain.io/2",standard:"EIP3091"}],testnet:!1,slug:"quarkchain-shard-2"},JFt={name:"QuarkChain Mainnet Shard 3",chain:"QuarkChain",rpc:["https://mainnet-s3-ethapi.quarkchain.io","http://eth-jrpc.mainnet.quarkchain.io:39003"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-s3",chainId:100004,networkId:100004,parent:{chain:"eip155-100000",type:"shard"},explorers:[{name:"quarkchain-mainnet",url:"https://mainnet.quarkchain.io/3",standard:"EIP3091"}],testnet:!1,slug:"quarkchain-shard-3"},KFt={name:"QuarkChain Mainnet Shard 4",chain:"QuarkChain",rpc:["https://mainnet-s4-ethapi.quarkchain.io","http://eth-jrpc.mainnet.quarkchain.io:39004"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-s4",chainId:100005,networkId:100005,parent:{chain:"eip155-100000",type:"shard"},explorers:[{name:"quarkchain-mainnet",url:"https://mainnet.quarkchain.io/4",standard:"EIP3091"}],testnet:!1,slug:"quarkchain-shard-4"},QFt={name:"QuarkChain Mainnet Shard 5",chain:"QuarkChain",rpc:["https://mainnet-s5-ethapi.quarkchain.io","http://eth-jrpc.mainnet.quarkchain.io:39005"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-s5",chainId:100006,networkId:100006,parent:{chain:"eip155-100000",type:"shard"},explorers:[{name:"quarkchain-mainnet",url:"https://mainnet.quarkchain.io/5",standard:"EIP3091"}],testnet:!1,slug:"quarkchain-shard-5"},XFt={name:"QuarkChain Mainnet Shard 6",chain:"QuarkChain",rpc:["https://mainnet-s6-ethapi.quarkchain.io","http://eth-jrpc.mainnet.quarkchain.io:39006"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-s6",chainId:100007,networkId:100007,parent:{chain:"eip155-100000",type:"shard"},explorers:[{name:"quarkchain-mainnet",url:"https://mainnet.quarkchain.io/6",standard:"EIP3091"}],testnet:!1,slug:"quarkchain-shard-6"},YFt={name:"QuarkChain Mainnet Shard 7",chain:"QuarkChain",rpc:["https://mainnet-s7-ethapi.quarkchain.io","http://eth-jrpc.mainnet.quarkchain.io:39007"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-s7",chainId:100008,networkId:100008,parent:{chain:"eip155-100000",type:"shard"},explorers:[{name:"quarkchain-mainnet",url:"https://mainnet.quarkchain.io/7",standard:"EIP3091"}],testnet:!1,slug:"quarkchain-shard-7"},$Ft={name:"Soverun Testnet",chain:"SVRN",icon:{url:"ipfs://QmTYazUzgY9Nn2mCjWwFUSLy3dG6i2PvALpwCNQvx1zXyi",width:1154,height:1154,format:"png"},rpc:["https://testnet-rpc.soverun.com"],faucets:["https://faucet.soverun.com"],nativeCurrency:{name:"Soverun",symbol:"SVRN",decimals:18},infoURL:"https://soverun.com",shortName:"SVRNt",chainId:101010,networkId:101010,explorers:[{name:"Soverun",url:"https://testnet.soverun.com",standard:"EIP3091"}],testnet:!0,slug:"soverun-testnet"},eUt={name:"Crystaleum",chain:"crystal",rpc:["https://evm.cryptocurrencydevs.org","https://rpc.crystaleum.org"],faucets:[],nativeCurrency:{name:"CRFI",symbol:"\u25C8",decimals:18},infoURL:"https://crystaleum.org",shortName:"CRFI",chainId:103090,networkId:1,icon:{url:"ipfs://Qmbry1Uc6HnXmqFNXW5dFJ7To8EezCCjNr4TqqvAyzXS4h",width:150,height:150,format:"png"},explorers:[{name:"blockscout",url:"https://scan.crystaleum.org",icon:"crystal",standard:"EIP3091"}],testnet:!1,slug:"crystaleum"},tUt={name:"BROChain Mainnet",chain:"BRO",rpc:["https://rpc.brochain.org","http://rpc.brochain.org","https://rpc.brochain.org/mainnet","http://rpc.brochain.org/mainnet"],faucets:[],nativeCurrency:{name:"Brother",symbol:"BRO",decimals:18},infoURL:"https://brochain.org",shortName:"bro",chainId:108801,networkId:108801,explorers:[{name:"BROChain Explorer",url:"https://explorer.brochain.org",standard:"EIP3091"}],testnet:!1,slug:"brochain"},rUt={name:"QuarkChain Devnet Root",chain:"QuarkChain",rpc:["http://jrpc.devnet.quarkchain.io:38391"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-d-r",chainId:11e4,networkId:11e4,testnet:!1,slug:"quarkchain-devnet-root"},nUt={name:"QuarkChain Devnet Shard 0",chain:"QuarkChain",rpc:["https://devnet-s0-ethapi.quarkchain.io","http://eth-jrpc.devnet.quarkchain.io:39900"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-d-s0",chainId:110001,networkId:110001,parent:{chain:"eip155-110000",type:"shard"},explorers:[{name:"quarkchain-devnet",url:"https://devnet.quarkchain.io/0",standard:"EIP3091"}],testnet:!1,slug:"quarkchain-devnet-shard-0"},aUt={name:"QuarkChain Devnet Shard 1",chain:"QuarkChain",rpc:["https://devnet-s1-ethapi.quarkchain.io","http://eth-jrpc.devnet.quarkchain.io:39901"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-d-s1",chainId:110002,networkId:110002,parent:{chain:"eip155-110000",type:"shard"},explorers:[{name:"quarkchain-devnet",url:"https://devnet.quarkchain.io/1",standard:"EIP3091"}],testnet:!1,slug:"quarkchain-devnet-shard-1"},iUt={name:"QuarkChain Devnet Shard 2",chain:"QuarkChain",rpc:["https://devnet-s2-ethapi.quarkchain.io","http://eth-jrpc.devnet.quarkchain.io:39902"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-d-s2",chainId:110003,networkId:110003,parent:{chain:"eip155-110000",type:"shard"},explorers:[{name:"quarkchain-devnet",url:"https://devnet.quarkchain.io/2",standard:"EIP3091"}],testnet:!1,slug:"quarkchain-devnet-shard-2"},sUt={name:"QuarkChain Devnet Shard 3",chain:"QuarkChain",rpc:["https://devnet-s3-ethapi.quarkchain.io","http://eth-jrpc.devnet.quarkchain.io:39903"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-d-s3",chainId:110004,networkId:110004,parent:{chain:"eip155-110000",type:"shard"},explorers:[{name:"quarkchain-devnet",url:"https://devnet.quarkchain.io/3",standard:"EIP3091"}],testnet:!1,slug:"quarkchain-devnet-shard-3"},oUt={name:"QuarkChain Devnet Shard 4",chain:"QuarkChain",rpc:["https://devnet-s4-ethapi.quarkchain.io","http://eth-jrpc.devnet.quarkchain.io:39904"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-d-s4",chainId:110005,networkId:110005,parent:{chain:"eip155-110000",type:"shard"},explorers:[{name:"quarkchain-devnet",url:"https://devnet.quarkchain.io/4",standard:"EIP3091"}],testnet:!1,slug:"quarkchain-devnet-shard-4"},cUt={name:"QuarkChain Devnet Shard 5",chain:"QuarkChain",rpc:["https://devnet-s5-ethapi.quarkchain.io","http://eth-jrpc.devnet.quarkchain.io:39905"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-d-s5",chainId:110006,networkId:110006,parent:{chain:"eip155-110000",type:"shard"},explorers:[{name:"quarkchain-devnet",url:"https://devnet.quarkchain.io/5",standard:"EIP3091"}],testnet:!1,slug:"quarkchain-devnet-shard-5"},uUt={name:"QuarkChain Devnet Shard 6",chain:"QuarkChain",rpc:["https://devnet-s6-ethapi.quarkchain.io","http://eth-jrpc.devnet.quarkchain.io:39906"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-d-s6",chainId:110007,networkId:110007,parent:{chain:"eip155-110000",type:"shard"},explorers:[{name:"quarkchain-devnet",url:"https://devnet.quarkchain.io/6",standard:"EIP3091"}],testnet:!1,slug:"quarkchain-devnet-shard-6"},lUt={name:"QuarkChain Devnet Shard 7",chain:"QuarkChain",rpc:["https://devnet-s7-ethapi.quarkchain.io","http://eth-jrpc.devnet.quarkchain.io:39907"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-d-s7",chainId:110008,networkId:110008,parent:{chain:"eip155-110000",type:"shard"},explorers:[{name:"quarkchain-devnet",url:"https://devnet.quarkchain.io/7",standard:"EIP3091"}],testnet:!1,slug:"quarkchain-devnet-shard-7"},dUt={name:"ETND Chain Mainnets",chain:"ETND",rpc:["https://rpc.node1.etnd.pro/"],faucets:[],nativeCurrency:{name:"ETND",symbol:"ETND",decimals:18},infoURL:"https://www.etnd.pro",shortName:"ETND",chainId:131419,networkId:131419,icon:{url:"ipfs://Qmd26eRJxPb1jJg5Q4mC2M4kD9Jrs5vmcnr5LczHFMGwSD",width:128,height:128,format:"png"},explorers:[{name:"etndscan",url:"https://scan.etnd.pro",icon:"ETND",standard:"none"}],testnet:!1,slug:"etnd-chain-s"},pUt={name:"Condor Test Network",chain:"CONDOR",icon:{url:"ipfs://QmPRDuEJSTqp2cDUvWCp71Wns6XV8nvdeAVKWH6srpk4xM",width:752,height:752,format:"png"},rpc:["https://testnet.condor.systems/rpc"],faucets:["https://faucet.condor.systems"],nativeCurrency:{name:"Condor Native Token",symbol:"CONDOR",decimals:18},infoURL:"https://condor.systems",shortName:"condor",chainId:188881,networkId:188881,explorers:[{name:"CondorScan",url:"https://explorer.condor.systems",standard:"none"}],testnet:!0,slug:"condor-test-network"},hUt={name:"Milkomeda C1 Testnet",chain:"milkTAda",icon:{url:"ipfs://QmdoUtvHDybu5ppYBZT8BMRp6AqByVSoQs8nFwKbaS55jd",width:367,height:367,format:"svg"},rpc:["https://rpc-devnet-cardano-evm.c1.milkomeda.com","wss://rpc-devnet-cardano-evm.c1.milkomeda.com"],faucets:[],nativeCurrency:{name:"milkTAda",symbol:"mTAda",decimals:18},infoURL:"https://milkomeda.com",shortName:"milkTAda",chainId:200101,networkId:200101,explorers:[{name:"Blockscout",url:"https://explorer-devnet-cardano-evm.c1.milkomeda.com",standard:"none"}],testnet:!0,slug:"milkomeda-c1-testnet"},fUt={name:"Milkomeda A1 Testnet",chain:"milkTAlgo",icon:{url:"ipfs://QmdoUtvHDybu5ppYBZT8BMRp6AqByVSoQs8nFwKbaS55jd",width:367,height:367,format:"svg"},rpc:["https://rpc-devnet-algorand-rollup.a1.milkomeda.com"],faucets:[],nativeCurrency:{name:"milkTAlgo",symbol:"mTAlgo",decimals:18},infoURL:"https://milkomeda.com",shortName:"milkTAlgo",chainId:200202,networkId:200202,explorers:[{name:"Blockscout",url:"https://explorer-devnet-algorand-rollup.a1.milkomeda.com",standard:"none"}],testnet:!0,slug:"milkomeda-a1-testnet"},mUt={name:"Akroma",chain:"AKA",rpc:["https://remote.akroma.io"],faucets:[],nativeCurrency:{name:"Akroma Ether",symbol:"AKA",decimals:18},infoURL:"https://akroma.io",shortName:"aka",chainId:200625,networkId:200625,slip44:200625,testnet:!1,slug:"akroma"},yUt={name:"Alaya Mainnet",chain:"Alaya",rpc:["https://openapi.alaya.network/rpc","wss://openapi.alaya.network/ws"],faucets:[],nativeCurrency:{name:"ATP",symbol:"atp",decimals:18},infoURL:"https://www.alaya.network/",shortName:"alaya",chainId:201018,networkId:1,icon:{url:"ipfs://Qmci6vPcWAwmq19j98yuQxjV6UPzHtThMdCAUDbKeb8oYu",width:1140,height:1140,format:"png"},explorers:[{name:"alaya explorer",url:"https://scan.alaya.network",standard:"none"}],testnet:!1,slug:"alaya"},gUt={name:"Alaya Dev Testnet",chain:"Alaya",rpc:["https://devnetopenapi.alaya.network/rpc","wss://devnetopenapi.alaya.network/ws"],faucets:["https://faucet.alaya.network/faucet/?id=f93426c0887f11eb83b900163e06151c"],nativeCurrency:{name:"ATP",symbol:"atp",decimals:18},infoURL:"https://www.alaya.network/",shortName:"alayadev",chainId:201030,networkId:1,icon:{url:"ipfs://Qmci6vPcWAwmq19j98yuQxjV6UPzHtThMdCAUDbKeb8oYu",width:1140,height:1140,format:"png"},explorers:[{name:"alaya explorer",url:"https://devnetscan.alaya.network",standard:"none"}],testnet:!0,slug:"alaya-dev-testnet"},vUt={name:"Mythical Chain",chain:"MYTH",rpc:["https://chain-rpc.mythicalgames.com"],faucets:[],nativeCurrency:{name:"Mythos",symbol:"MYTH",decimals:18},features:[{name:"EIP155"},{name:"EIP1559"}],infoURL:"https://mythicalgames.com/",shortName:"myth",chainId:201804,networkId:201804,icon:{url:"ipfs://bafkreihru6cccfblrjz5bv36znq2l3h67u6xj5ivtc4bj5l6gzofbgtnb4",width:350,height:350,format:"png"},explorers:[{name:"Mythical Chain Explorer",url:"https://explorer.mythicalgames.com",icon:"mythical",standard:"EIP3091"}],testnet:!1,slug:"mythical-chain"},bUt={name:"Decimal Smart Chain Testnet",chain:"tDSC",rpc:["https://testnet-val.decimalchain.com/web3"],faucets:[],nativeCurrency:{name:"Decimal",symbol:"tDEL",decimals:18},features:[{name:"EIP155"},{name:"EIP1559"}],infoURL:"https://decimalchain.com",shortName:"tDSC",chainId:202020,networkId:202020,icon:{url:"ipfs://QmSgzwKnJJjys3Uq2aVVdwJ3NffLj3CXMVCph9uByTBegc",width:256,height:256,format:"png"},explorers:[{name:"DSC Explorer Testnet",url:"https://testnet.explorer.decimalchain.com",icon:"dsc",standard:"EIP3091"}],testnet:!0,slug:"decimal-smart-chain-testnet"},wUt={name:"Jellie",title:"Twala Testnet Jellie",shortName:"twl-jellie",chain:"ETH",chainId:202624,networkId:202624,icon:{url:"ipfs://QmTXJVhVKvVC7DQEnGKXvydvwpvVaUEBJrMHvsCr4nr1sK",width:1326,height:1265,format:"png"},nativeCurrency:{name:"Twala Coin",symbol:"TWL",decimals:18},rpc:["https://jellie-rpc.twala.io/","wss://jellie-rpc-wss.twala.io/"],faucets:[],infoURL:"https://twala.io/",explorers:[{name:"Jellie Blockchain Explorer",url:"https://jellie.twala.io",standard:"EIP3091",icon:"twala"}],testnet:!0,slug:"jellie"},xUt={name:"PlatON Mainnet",chain:"PlatON",rpc:["https://openapi2.platon.network/rpc","wss://openapi2.platon.network/ws"],faucets:[],nativeCurrency:{name:"LAT",symbol:"lat",decimals:18},infoURL:"https://www.platon.network",shortName:"platon",chainId:210425,networkId:1,icon:{url:"ipfs://QmT7PSXBiVBma6E15hNkivmstqLu3JSnG1jXN5pTmcCGRC",width:200,height:200,format:"png"},explorers:[{name:"PlatON explorer",url:"https://scan.platon.network",standard:"none"}],testnet:!1,slug:"platon"},TUt={name:"Mas Mainnet",chain:"MAS",rpc:["http://node.masnet.ai:8545"],faucets:[],nativeCurrency:{name:"Master Bank",symbol:"MAS",decimals:18},features:[{name:"EIP155"},{name:"EIP1559"}],infoURL:"https://masterbank.org",shortName:"mas",chainId:220315,networkId:220315,icon:{url:"ipfs://QmZ9njQhhKkpJKGnoYy6XTuDtk5CYiDFUd8atqWthqUT3Q",width:1024,height:1024,format:"png"},explorers:[{name:"explorer masnet",url:"https://explorer.masnet.ai",icon:"explorer",standard:"EIP3091"}],testnet:!1,slug:"mas"},_Ut={name:"Haymo Testnet",chain:"tHYM",rpc:["https://testnet1.haymo.network"],faucets:[],nativeCurrency:{name:"HAYMO",symbol:"HYM",decimals:18},infoURL:"https://haymoswap.web.app/",shortName:"hym",chainId:234666,networkId:234666,testnet:!0,slug:"haymo-testnet"},CUt={name:"ARTIS sigma1",chain:"ARTIS",rpc:["https://rpc.sigma1.artis.network"],faucets:[],nativeCurrency:{name:"ARTIS sigma1 Ether",symbol:"ATS",decimals:18},infoURL:"https://artis.eco",shortName:"ats",chainId:246529,networkId:246529,slip44:246529,testnet:!1,slug:"artis-sigma1"},EUt={name:"ARTIS Testnet tau1",chain:"ARTIS",rpc:["https://rpc.tau1.artis.network"],faucets:[],nativeCurrency:{name:"ARTIS tau1 Ether",symbol:"tATS",decimals:18},infoURL:"https://artis.network",shortName:"atstau",chainId:246785,networkId:246785,testnet:!0,slug:"artis-testnet-tau1"},kUt={name:"Saakuru Testnet",chain:"Saakuru",icon:{url:"ipfs://QmduEdtFobPpZWSc45MU6RKxZfTEzLux2z8ikHFhT8usqv",width:1024,height:1024,format:"png"},rpc:["https://rpc-testnet.saakuru.network"],faucets:[],nativeCurrency:{name:"OAS",symbol:"OAS",decimals:18},infoURL:"https://saakuru.network",shortName:"saakuru-testnet",chainId:247253,networkId:247253,explorers:[{name:"saakuru-explorer-testnet",url:"https://explorer-testnet.saakuru.network",standard:"EIP3091"}],testnet:!0,slug:"saakuru-testnet"},SUt={name:"CMP-Mainnet",chain:"CMP",rpc:["https://mainnet.block.caduceus.foundation","wss://mainnet.block.caduceus.foundation"],faucets:[],nativeCurrency:{name:"Caduceus Token",symbol:"CMP",decimals:18},infoURL:"https://caduceus.foundation/",shortName:"cmp-mainnet",chainId:256256,networkId:256256,explorers:[{name:"Mainnet Scan",url:"https://mainnet.scan.caduceus.foundation",standard:"none"}],testnet:!1,slug:"cmp"},AUt={name:"Gear Zero Network Testnet",chain:"GearZero",rpc:["https://gzn-test.linksme.info"],faucets:[],nativeCurrency:{name:"Gear Zero Network Native Token",symbol:"GZN",decimals:18},infoURL:"https://token.gearzero.ca/testnet",shortName:"gz-testnet",chainId:266256,networkId:266256,slip44:266256,explorers:[],testnet:!0,slug:"gear-zero-network-testnet"},MUt={name:"Social Smart Chain Mainnet",chain:"SoChain",rpc:["https://socialsmartchain.digitalnext.business"],faucets:[],nativeCurrency:{name:"SoChain",symbol:"$OC",decimals:18},infoURL:"https://digitalnext.business/SocialSmartChain",shortName:"SoChain",chainId:281121,networkId:281121,explorers:[],testnet:!1,slug:"social-smart-chain"},IUt={name:"Filecoin - Calibration testnet",chain:"FIL",icon:{url:"ipfs://QmS9r9XQkMHVomWcSBNDkKkz9n87h9bH9ssabeiKZtANoU",width:1e3,height:1e3,format:"png"},rpc:["https://api.calibration.node.glif.io/rpc/v1"],faucets:["https://faucet.calibration.fildev.network/"],nativeCurrency:{name:"testnet filecoin",symbol:"tFIL",decimals:18},infoURL:"https://filecoin.io",shortName:"filecoin-calibration",chainId:314159,networkId:314159,slip44:1,explorers:[{name:"Filscan - Calibration",url:"https://calibration.filscan.io",standard:"none"},{name:"Filscout - Calibration",url:"https://calibration.filscout.com/en",standard:"none"}],testnet:!0,slug:"filecoin-calibration-testnet"},PUt={name:"Polis Testnet",chain:"Sparta",icon:{url:"ipfs://QmagWrtyApex28H2QeXcs3jJ2F7p2K7eESz3cDbHdQ3pjG",width:1050,height:1050,format:"png"},rpc:["https://sparta-rpc.polis.tech"],faucets:["https://faucet.polis.tech"],nativeCurrency:{name:"tPolis",symbol:"tPOLIS",decimals:18},infoURL:"https://polis.tech",shortName:"sparta",chainId:333888,networkId:333888,testnet:!0,slug:"polis-testnet"},RUt={name:"Polis Mainnet",chain:"Olympus",icon:{url:"ipfs://QmagWrtyApex28H2QeXcs3jJ2F7p2K7eESz3cDbHdQ3pjG",width:1050,height:1050,format:"png"},rpc:["https://rpc.polis.tech"],faucets:["https://faucet.polis.tech"],nativeCurrency:{name:"Polis",symbol:"POLIS",decimals:18},infoURL:"https://polis.tech",shortName:"olympus",chainId:333999,networkId:333999,testnet:!1,slug:"polis"},NUt={name:"Metal C-Chain",chain:"Metal",rpc:["https://api.metalblockchain.org/ext/bc/C/rpc"],faucets:[],nativeCurrency:{name:"Metal",symbol:"METAL",decimals:18},infoURL:"https://www.metalblockchain.org/",shortName:"metal",chainId:381931,networkId:381931,slip44:9005,explorers:[{name:"metalscan",url:"https://metalscan.io",standard:"EIP3091"}],testnet:!1,slug:"metal-c-chain"},OUt={name:"Metal Tahoe C-Chain",chain:"Metal",rpc:["https://tahoe.metalblockchain.org/ext/bc/C/rpc"],faucets:[],nativeCurrency:{name:"Metal",symbol:"METAL",decimals:18},infoURL:"https://www.metalblockchain.org/",shortName:"Tahoe",chainId:381932,networkId:381932,slip44:9005,explorers:[{name:"metalscan",url:"https://tahoe.metalscan.io",standard:"EIP3091"}],testnet:!1,slug:"metal-tahoe-c-chain"},LUt={name:"Kekchain",chain:"kek",rpc:["https://mainnet.kekchain.com"],faucets:[],nativeCurrency:{name:"KEK",symbol:"KEK",decimals:18},infoURL:"https://kekchain.com",shortName:"KEK",chainId:420420,networkId:103090,icon:{url:"ipfs://QmNzwHAmaaQyuvKudrzGkrTT2GMshcmCmJ9FH8gG2mNJtM",width:401,height:401,format:"svg"},explorers:[{name:"blockscout",url:"https://mainnet-explorer.kekchain.com",icon:"kek",standard:"EIP3091"}],testnet:!1,slug:"kekchain"},BUt={name:"Kekchain (kektest)",chain:"kek",rpc:["https://testnet.kekchain.com"],faucets:[],nativeCurrency:{name:"tKEK",symbol:"tKEK",decimals:18},infoURL:"https://kekchain.com",shortName:"tKEK",chainId:420666,networkId:1,icon:{url:"ipfs://QmNzwHAmaaQyuvKudrzGkrTT2GMshcmCmJ9FH8gG2mNJtM",width:401,height:401,format:"svg"},explorers:[{name:"blockscout",url:"https://testnet-explorer.kekchain.com",icon:"kek",standard:"EIP3091"}],testnet:!0,slug:"kekchain-kektest"},qUt={name:"Arbitrum Rinkeby",title:"Arbitrum Testnet Rinkeby",chainId:421611,shortName:"arb-rinkeby",chain:"ETH",networkId:421611,nativeCurrency:{name:"Arbitrum Rinkeby Ether",symbol:"ETH",decimals:18},rpc:["https://rinkeby.arbitrum.io/rpc"],faucets:["http://fauceth.komputing.org?chain=421611&address=${ADDRESS}"],infoURL:"https://arbitrum.io",explorers:[{name:"arbiscan-testnet",url:"https://testnet.arbiscan.io",standard:"EIP3091"},{name:"arbitrum-rinkeby",url:"https://rinkeby-explorer.arbitrum.io",standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-4",bridges:[{url:"https://bridge.arbitrum.io"}]},testnet:!0,slug:"arbitrum-rinkeby"},DUt={name:"Arbitrum Goerli",title:"Arbitrum Goerli Rollup Testnet",chainId:421613,shortName:"arb-goerli",chain:"ETH",networkId:421613,nativeCurrency:{name:"Arbitrum Goerli Ether",symbol:"AGOR",decimals:18},rpc:["https://arbitrum-goerli.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://goerli-rollup.arbitrum.io/rpc/"],faucets:[],infoURL:"https://arbitrum.io/",explorers:[{name:"Arbitrum Goerli Rollup Explorer",url:"https://goerli-rollup-explorer.arbitrum.io",standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-5",bridges:[{url:"https://bridge.arbitrum.io/"}]},icon:{url:"ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/arbitrum/512.png",height:512,width:512,format:"png",sizes:[512,256,128,64,32,16]},testnet:!0,slug:"arbitrum-goerli"},FUt={name:"Fastex Chain testnet",chain:"FTN",title:"Fastex Chain testnet",rpc:["https://rpc.testnet.fastexchain.com"],features:[{name:"EIP155"},{name:"EIP1559"}],faucets:[],nativeCurrency:{name:"FTN",symbol:"FTN",decimals:18},infoURL:"https://fastex.com",shortName:"ftn",chainId:424242,networkId:424242,explorers:[{name:"blockscout",url:"https://testnet.ftnscan.com",standard:"none"}],testnet:!0,slug:"fastex-chain-testnet"},UUt={name:"Dexalot Subnet Testnet",chain:"DEXALOT",icon:{url:"ipfs://QmfVxdrWjtUKiGzqFDzAxHH2FqwP2aRuZTGcYWdWg519Xy",width:256,height:256,format:"png"},rpc:["https://subnets.avax.network/dexalot/testnet/rpc"],faucets:["https://faucet.avax.network/?subnet=dexalot"],nativeCurrency:{name:"Dexalot",symbol:"ALOT",decimals:18},infoURL:"https://dexalot.com",shortName:"dexalot-testnet",chainId:432201,networkId:432201,explorers:[{name:"Avalanche Subnet Testnet Explorer",url:"https://subnets-test.avax.network/dexalot",standard:"EIP3091"}],testnet:!0,slug:"dexalot-subnet-testnet"},WUt={name:"Dexalot Subnet",chain:"DEXALOT",icon:{url:"ipfs://QmfVxdrWjtUKiGzqFDzAxHH2FqwP2aRuZTGcYWdWg519Xy",width:256,height:256,format:"png"},rpc:["https://subnets.avax.network/dexalot/mainnet/rpc"],faucets:[],nativeCurrency:{name:"Dexalot",symbol:"ALOT",decimals:18},infoURL:"https://dexalot.com",shortName:"dexalot",chainId:432204,networkId:432204,explorers:[{name:"Avalanche Subnet Explorer",url:"https://subnets.avax.network/dexalot",standard:"EIP3091"}],testnet:!1,slug:"dexalot-subnet"},jUt={name:"Weelink Testnet",chain:"WLK",rpc:["https://weelinknode1c.gw002.oneitfarm.com"],faucets:["https://faucet.weelink.gw002.oneitfarm.com"],nativeCurrency:{name:"Weelink Chain Token",symbol:"tWLK",decimals:18},infoURL:"https://weelink.cloud",shortName:"wlkt",chainId:444900,networkId:444900,explorers:[{name:"weelink-testnet",url:"https://weelink.cloud/#/blockView/overview",standard:"none"}],testnet:!0,slug:"weelink-testnet"},zUt={name:"OpenChain Mainnet",chain:"OpenChain",rpc:["https://baas-rpc.luniverse.io:18545?lChainId=1641349324562974539"],faucets:[],nativeCurrency:{name:"OpenCoin",symbol:"OPC",decimals:10},infoURL:"https://www.openchain.live",shortName:"oc",chainId:474142,networkId:474142,explorers:[{name:"SIDE SCAN",url:"https://sidescan.luniverse.io/1641349324562974539",standard:"none"}],testnet:!1,slug:"openchain"},HUt={name:"CMP-Testnet",chain:"CMP",rpc:["https://galaxy.block.caduceus.foundation","wss://galaxy.block.caduceus.foundation"],faucets:["https://dev.caduceus.foundation/testNetwork"],nativeCurrency:{name:"Caduceus Testnet Token",symbol:"CMP",decimals:18},infoURL:"https://caduceus.foundation/",shortName:"cmp",chainId:512512,networkId:512512,explorers:[{name:"Galaxy Scan",url:"https://galaxy.scan.caduceus.foundation",standard:"none"}],testnet:!0,slug:"cmp-testnet"},VUt={name:"ethereum Fair",chainId:513100,networkId:513100,shortName:"etf",chain:"ETF",nativeCurrency:{name:"EthereumFair",symbol:"ETHF",decimals:18},rpc:["https://rpc.etherfair.org"],faucets:[],explorers:[{name:"etherfair",url:"https://explorer.etherfair.org",standard:"EIP3091"}],infoURL:"https://etherfair.org",testnet:!1,slug:"ethereum-fair"},GUt={name:"Scroll",chain:"ETH",rpc:[],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://scroll.io",shortName:"scr",chainId:534352,networkId:534352,explorers:[],parent:{type:"L2",chain:"eip155-1",bridges:[]},testnet:!1,slug:"scroll"},ZUt={name:"Scroll Alpha Testnet",chain:"ETH",status:"incubating",rpc:["https://alpha-rpc.scroll.io/l2"],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://scroll.io",shortName:"scr-alpha",chainId:534353,networkId:534353,explorers:[{name:"Scroll Alpha Testnet Block Explorer",url:"https://blockscout.scroll.io",standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-5",bridges:[]},testnet:!0,slug:"scroll-alpha-testnet"},JUt={name:"Scroll Pre-Alpha Testnet",chain:"ETH",rpc:["https://prealpha-rpc.scroll.io/l2"],faucets:["https://prealpha.scroll.io/faucet"],nativeCurrency:{name:"Ether",symbol:"TSETH",decimals:18},infoURL:"https://scroll.io",shortName:"scr-prealpha",chainId:534354,networkId:534354,explorers:[{name:"Scroll L2 Block Explorer",url:"https://l2scan.scroll.io",standard:"EIP3091"}],testnet:!0,slug:"scroll-pre-alpha-testnet"},KUt={name:"Bear Network Chain Mainnet",chain:"BRNKC",icon:{url:"ipfs://QmQqhH28QpUrreoRw5Gj8YShzdHxxVGMjfVrx3TqJNLSLv",width:1067,height:1067,format:"png"},rpc:["https://brnkc-mainnet.bearnetwork.net","https://brnkc-mainnet1.bearnetwork.net"],faucets:[],nativeCurrency:{name:"Bear Network Chain Native Token",symbol:"BRNKC",decimals:18},infoURL:"https://bearnetwork.net",shortName:"BRNKC",chainId:641230,networkId:641230,explorers:[{name:"brnkscan",url:"https://brnkscan.bearnetwork.net",standard:"EIP3091"}],testnet:!1,slug:"bear-network-chain"},QUt={name:"Vision - Vpioneer Test Chain",chain:"Vision-Vpioneer",rpc:["https://vpioneer.infragrid.v.network/ethereum/compatible"],faucets:["https://vpioneerfaucet.visionscan.org"],nativeCurrency:{name:"VS",symbol:"VS",decimals:18},infoURL:"https://visionscan.org",shortName:"vpioneer",chainId:666666,networkId:666666,slip44:60,testnet:!0,slug:"vision-vpioneer-test-chain"},XUt={name:"Bear Network Chain Testnet",chain:"BRNKCTEST",icon:{url:"ipfs://QmQqhH28QpUrreoRw5Gj8YShzdHxxVGMjfVrx3TqJNLSLv",width:1067,height:1067,format:"png"},rpc:["https://brnkc-test.bearnetwork.net"],faucets:[],nativeCurrency:{name:"Bear Network Chain Testnet Token",symbol:"tBRNKC",decimals:18},infoURL:"https://bearnetwork.net",shortName:"BRNKCTEST",chainId:751230,networkId:751230,explorers:[{name:"brnktestscan",url:"https://brnktest-scan.bearnetwork.net",standard:"EIP3091"}],testnet:!0,slug:"bear-network-chain-testnet"},YUt={name:"OctaSpace",chain:"OCTA",rpc:["https://rpc.octa.space","wss://rpc.octa.space"],faucets:[],nativeCurrency:{name:"OctaSpace",symbol:"OCTA",decimals:18},infoURL:"https://octa.space",shortName:"octa",chainId:800001,networkId:800001,icon:{url:"ipfs://QmVhezQHkqSZ5Tvtsw18giA1yBjV1URSsBQ7HenUh6p6oC",width:512,height:512,format:"png"},explorers:[{name:"blockscout",url:"https://explorer.octa.space",icon:"blockscout",standard:"EIP3091"}],testnet:!1,slug:"octaspace"},$Ut={name:"4GoodNetwork",chain:"4GN",rpc:["https://chain.deptofgood.com"],faucets:[],nativeCurrency:{name:"APTA",symbol:"APTA",decimals:18},infoURL:"https://bloqs4good.com",shortName:"bloqs4good",chainId:846e3,networkId:846e3,testnet:!1,slug:"4goodnetwork"},eWt={name:"Vision - Mainnet",chain:"Vision",rpc:["https://infragrid.v.network/ethereum/compatible"],faucets:[],nativeCurrency:{name:"VS",symbol:"VS",decimals:18},infoURL:"https://www.v.network",explorers:[{name:"Visionscan",url:"https://www.visionscan.org",standard:"EIP3091"}],shortName:"vision",chainId:888888,networkId:888888,slip44:60,testnet:!1,slug:"vision"},tWt={name:"Posichain Mainnet Shard 0",chain:"PSC",rpc:["https://api.posichain.org","https://api.s0.posichain.org"],faucets:["https://faucet.posichain.org/"],nativeCurrency:{name:"Posichain Native Token",symbol:"POSI",decimals:18},infoURL:"https://posichain.org",shortName:"psc-s0",chainId:9e5,networkId:9e5,explorers:[{name:"Posichain Explorer",url:"https://explorer.posichain.org",standard:"EIP3091"}],testnet:!1,slug:"posichain-shard-0"},rWt={name:"Posichain Testnet Shard 0",chain:"PSC",rpc:["https://api.s0.t.posichain.org"],faucets:["https://faucet.posichain.org/"],nativeCurrency:{name:"Posichain Native Token",symbol:"POSI",decimals:18},infoURL:"https://posichain.org",shortName:"psc-t-s0",chainId:91e4,networkId:91e4,explorers:[{name:"Posichain Explorer Testnet",url:"https://explorer-testnet.posichain.org",standard:"EIP3091"}],testnet:!0,slug:"posichain-testnet-shard-0"},nWt={name:"Posichain Devnet Shard 0",chain:"PSC",rpc:["https://api.s0.d.posichain.org"],faucets:["https://faucet.posichain.org/"],nativeCurrency:{name:"Posichain Native Token",symbol:"POSI",decimals:18},infoURL:"https://posichain.org",shortName:"psc-d-s0",chainId:92e4,networkId:92e4,explorers:[{name:"Posichain Explorer Devnet",url:"https://explorer-devnet.posichain.org",standard:"EIP3091"}],testnet:!1,slug:"posichain-devnet-shard-0"},aWt={name:"Posichain Devnet Shard 1",chain:"PSC",rpc:["https://api.s1.d.posichain.org"],faucets:["https://faucet.posichain.org/"],nativeCurrency:{name:"Posichain Native Token",symbol:"POSI",decimals:18},infoURL:"https://posichain.org",shortName:"psc-d-s1",chainId:920001,networkId:920001,explorers:[{name:"Posichain Explorer Devnet",url:"https://explorer-devnet.posichain.org",standard:"EIP3091"}],testnet:!1,slug:"posichain-devnet-shard-1"},iWt={name:"FNCY Testnet",chain:"FNCY",rpc:["https://fncy-testnet-seed.fncy.world"],faucets:["https://faucet-testnet.fncy.world"],nativeCurrency:{name:"FNCY",symbol:"FNCY",decimals:18},infoURL:"https://fncyscan-testnet.fncy.world",shortName:"tFNCY",chainId:923018,networkId:923018,icon:{url:"ipfs://QmfXCh6UnaEHn3Evz7RFJ3p2ggJBRm9hunDHegeoquGuhD",width:256,height:256,format:"png"},explorers:[{name:"fncy scan testnet",url:"https://fncyscan-testnet.fncy.world",icon:"fncy",standard:"EIP3091"}],testnet:!0,slug:"fncy-testnet"},sWt={name:"Eluvio Content Fabric",chain:"Eluvio",rpc:["https://host-76-74-28-226.contentfabric.io/eth/","https://host-76-74-28-232.contentfabric.io/eth/","https://host-76-74-29-2.contentfabric.io/eth/","https://host-76-74-29-8.contentfabric.io/eth/","https://host-76-74-29-34.contentfabric.io/eth/","https://host-76-74-29-35.contentfabric.io/eth/","https://host-154-14-211-98.contentfabric.io/eth/","https://host-154-14-192-66.contentfabric.io/eth/","https://host-60-240-133-202.contentfabric.io/eth/","https://host-64-235-250-98.contentfabric.io/eth/"],faucets:[],nativeCurrency:{name:"ELV",symbol:"ELV",decimals:18},infoURL:"https://eluv.io",shortName:"elv",chainId:955305,networkId:955305,slip44:1011,explorers:[{name:"blockscout",url:"https://explorer.eluv.io",standard:"EIP3091"}],testnet:!1,slug:"eluvio-content-fabric"},oWt={name:"Etho Protocol",chain:"ETHO",rpc:["https://rpc.ethoprotocol.com"],faucets:[],nativeCurrency:{name:"Etho Protocol",symbol:"ETHO",decimals:18},infoURL:"https://ethoprotocol.com",shortName:"etho",chainId:1313114,networkId:1313114,slip44:1313114,explorers:[{name:"blockscout",url:"https://explorer.ethoprotocol.com",standard:"none"}],testnet:!1,slug:"etho-protocol"},cWt={name:"Xerom",chain:"XERO",rpc:["https://rpc.xerom.org"],faucets:[],nativeCurrency:{name:"Xerom Ether",symbol:"XERO",decimals:18},infoURL:"https://xerom.org",shortName:"xero",chainId:1313500,networkId:1313500,testnet:!1,slug:"xerom"},uWt={name:"Kintsugi",title:"Kintsugi merge testnet",chain:"ETH",rpc:["https://rpc.kintsugi.themerge.dev"],faucets:["http://fauceth.komputing.org?chain=1337702&address=${ADDRESS}","https://faucet.kintsugi.themerge.dev"],nativeCurrency:{name:"kintsugi Ethere",symbol:"kiETH",decimals:18},infoURL:"https://kintsugi.themerge.dev/",shortName:"kintsugi",chainId:1337702,networkId:1337702,explorers:[{name:"kintsugi explorer",url:"https://explorer.kintsugi.themerge.dev",standard:"EIP3091"}],testnet:!0,slug:"kintsugi"},lWt={name:"Kiln",chain:"ETH",rpc:["https://rpc.kiln.themerge.dev"],faucets:["https://faucet.kiln.themerge.dev","https://kiln-faucet.pk910.de","https://kilnfaucet.com"],nativeCurrency:{name:"Testnet ETH",symbol:"ETH",decimals:18},infoURL:"https://kiln.themerge.dev/",shortName:"kiln",chainId:1337802,networkId:1337802,icon:{url:"ipfs://QmdwQDr6vmBtXmK2TmknkEuZNoaDqTasFdZdu3DRw8b2wt",width:1e3,height:1628,format:"png"},explorers:[{name:"Kiln Explorer",url:"https://explorer.kiln.themerge.dev",icon:"ethereum",standard:"EIP3091"}],testnet:!0,slug:"kiln"},dWt={name:"Zhejiang",chain:"ETH",rpc:["https://rpc.zhejiang.ethpandaops.io"],faucets:["https://faucet.zhejiang.ethpandaops.io","https://zhejiang-faucet.pk910.de"],nativeCurrency:{name:"Testnet ETH",symbol:"ETH",decimals:18},infoURL:"https://zhejiang.ethpandaops.io",shortName:"zhejiang",chainId:1337803,networkId:1337803,icon:{url:"ipfs://QmdwQDr6vmBtXmK2TmknkEuZNoaDqTasFdZdu3DRw8b2wt",width:1e3,height:1628,format:"png"},explorers:[{name:"Zhejiang Explorer",url:"https://zhejiang.beaconcha.in",icon:"ethereum",standard:"EIP3091"}],testnet:!0,slug:"zhejiang"},pWt={name:"Plian Mainnet Main",chain:"Plian",rpc:["https://mainnet.plian.io/pchain"],faucets:[],nativeCurrency:{name:"Plian Token",symbol:"PI",decimals:18},infoURL:"https://plian.org/",shortName:"plian-mainnet",chainId:2099156,networkId:2099156,explorers:[{name:"piscan",url:"https://piscan.plian.org/pchain",standard:"EIP3091"}],testnet:!1,slug:"plian-main"},hWt={name:"PlatON Dev Testnet2",chain:"PlatON",rpc:["https://devnet2openapi.platon.network/rpc","wss://devnet2openapi.platon.network/ws"],faucets:["https://devnet2faucet.platon.network/faucet"],nativeCurrency:{name:"LAT",symbol:"lat",decimals:18},infoURL:"https://www.platon.network",shortName:"platondev2",chainId:2206132,networkId:1,icon:{url:"ipfs://QmT7PSXBiVBma6E15hNkivmstqLu3JSnG1jXN5pTmcCGRC",width:200,height:200,format:"png"},explorers:[{name:"PlatON explorer",url:"https://devnet2scan.platon.network",standard:"none"}],testnet:!0,slug:"platon-dev-testnet2"},fWt={name:"Filecoin - Butterfly testnet",chain:"FIL",status:"incubating",rpc:[],faucets:["https://faucet.butterfly.fildev.network"],nativeCurrency:{name:"testnet filecoin",symbol:"tFIL",decimals:18},infoURL:"https://filecoin.io",shortName:"filecoin-butterfly",icon:{url:"ipfs://QmS9r9XQkMHVomWcSBNDkKkz9n87h9bH9ssabeiKZtANoU",width:1e3,height:1e3,format:"png"},chainId:3141592,networkId:3141592,slip44:1,explorers:[],testnet:!0,slug:"filecoin-butterfly-testnet"},mWt={name:"Imversed Mainnet",chain:"Imversed",rpc:["https://jsonrpc.imversed.network","https://ws-jsonrpc.imversed.network"],faucets:[],nativeCurrency:{name:"Imversed Token",symbol:"IMV",decimals:18},infoURL:"https://imversed.com",shortName:"imversed",chainId:5555555,networkId:5555555,icon:{url:"ipfs://QmYwvmJZ1bgTdiZUKXk4SifTpTj286CkZjMCshUyJuBFH1",width:400,height:400,format:"png"},explorers:[{name:"Imversed EVM explorer (Blockscout)",url:"https://txe.imversed.network",icon:"imversed",standard:"EIP3091"},{name:"Imversed Cosmos Explorer (Big Dipper)",url:"https://tex-c.imversed.com",icon:"imversed",standard:"none"}],testnet:!1,slug:"imversed"},yWt={name:"Imversed Testnet",chain:"Imversed",rpc:["https://jsonrpc-test.imversed.network","https://ws-jsonrpc-test.imversed.network"],faucets:[],nativeCurrency:{name:"Imversed Token",symbol:"IMV",decimals:18},infoURL:"https://imversed.com",shortName:"imversed-testnet",chainId:5555558,networkId:5555558,icon:{url:"ipfs://QmYwvmJZ1bgTdiZUKXk4SifTpTj286CkZjMCshUyJuBFH1",width:400,height:400,format:"png"},explorers:[{name:"Imversed EVM Explorer (Blockscout)",url:"https://txe-test.imversed.network",icon:"imversed",standard:"EIP3091"},{name:"Imversed Cosmos Explorer (Big Dipper)",url:"https://tex-t.imversed.com",icon:"imversed",standard:"none"}],testnet:!0,slug:"imversed-testnet"},gWt={name:"Saakuru Mainnet",chain:"Saakuru",icon:{url:"ipfs://QmduEdtFobPpZWSc45MU6RKxZfTEzLux2z8ikHFhT8usqv",width:1024,height:1024,format:"png"},rpc:["https://rpc.saakuru.network"],faucets:[],nativeCurrency:{name:"OAS",symbol:"OAS",decimals:18},infoURL:"https://saakuru.network",shortName:"saakuru",chainId:7225878,networkId:7225878,explorers:[{name:"saakuru-explorer",url:"https://explorer.saakuru.network",standard:"EIP3091"}],testnet:!1,slug:"saakuru"},vWt={name:"OpenVessel",chain:"VSL",icon:{url:"ipfs://QmeknNzGCZXQK7egwfwyxQan7Lw8bLnqYsyoEgEbDNCzJX",width:600,height:529,format:"png"},rpc:["https://mainnet-external.openvessel.io"],faucets:[],nativeCurrency:{name:"Vessel ETH",symbol:"VETH",decimals:18},infoURL:"https://www.openvessel.io",shortName:"vsl",chainId:7355310,networkId:7355310,explorers:[{name:"openvessel-mainnet",url:"https://mainnet-explorer.openvessel.io",standard:"none"}],testnet:!1,slug:"openvessel"},bWt={name:"QL1 Testnet",chain:"QOM",status:"incubating",rpc:["https://rpc.testnet.qom.one"],faucets:["https://faucet.qom.one"],nativeCurrency:{name:"Shiba Predator",symbol:"QOM",decimals:18},infoURL:"https://qom.one",shortName:"tqom",chainId:7668378,networkId:7668378,icon:{url:"ipfs://QmRc1kJ7AgcDL1BSoMYudatWHTrz27K6WNTwGifQb5V17D",width:518,height:518,format:"png"},explorers:[{name:"QL1 Testnet Explorer",url:"https://testnet.qom.one",icon:"qom",standard:"EIP3091"}],testnet:!0,slug:"ql1-testnet"},wWt={name:"Musicoin",chain:"MUSIC",rpc:["https://mewapi.musicoin.tw"],faucets:[],nativeCurrency:{name:"Musicoin",symbol:"MUSIC",decimals:18},infoURL:"https://musicoin.tw",shortName:"music",chainId:7762959,networkId:7762959,slip44:184,testnet:!1,slug:"musicoin"},xWt={name:"Plian Mainnet Subchain 1",chain:"Plian",rpc:["https://mainnet.plian.io/child_0"],faucets:[],nativeCurrency:{name:"Plian Token",symbol:"PI",decimals:18},infoURL:"https://plian.org",shortName:"plian-mainnet-l2",chainId:8007736,networkId:8007736,explorers:[{name:"piscan",url:"https://piscan.plian.org/child_0",standard:"EIP3091"}],parent:{chain:"eip155-2099156",type:"L2"},testnet:!1,slug:"plian-subchain-1"},TWt={name:"Plian Testnet Subchain 1",chain:"Plian",rpc:["https://testnet.plian.io/child_test"],faucets:[],nativeCurrency:{name:"Plian Token",symbol:"TPI",decimals:18},infoURL:"https://plian.org/",shortName:"plian-testnet-l2",chainId:10067275,networkId:10067275,explorers:[{name:"piscan",url:"https://testnet.plian.org/child_test",standard:"EIP3091"}],parent:{chain:"eip155-16658437",type:"L2"},testnet:!0,slug:"plian-testnet-subchain-1"},_Wt={name:"Soverun Mainnet",chain:"SVRN",icon:{url:"ipfs://QmTYazUzgY9Nn2mCjWwFUSLy3dG6i2PvALpwCNQvx1zXyi",width:1154,height:1154,format:"png"},rpc:["https://mainnet-rpc.soverun.com"],faucets:["https://faucet.soverun.com"],nativeCurrency:{name:"Soverun",symbol:"SVRN",decimals:18},infoURL:"https://soverun.com",shortName:"SVRNm",chainId:10101010,networkId:10101010,explorers:[{name:"Soverun",url:"https://explorer.soverun.com",standard:"EIP3091"}],testnet:!1,slug:"soverun"},CWt={name:"Sepolia",title:"Ethereum Testnet Sepolia",chain:"ETH",rpc:["https://rpc.sepolia.org","https://rpc-sepolia.rockx.com"],faucets:["http://fauceth.komputing.org?chain=11155111&address=${ADDRESS}"],nativeCurrency:{name:"Sepolia Ether",symbol:"ETH",decimals:18},infoURL:"https://sepolia.otterscan.io",shortName:"sep",chainId:11155111,networkId:11155111,explorers:[{name:"etherscan-sepolia",url:"https://sepolia.etherscan.io",standard:"EIP3091"},{name:"otterscan-sepolia",url:"https://sepolia.otterscan.io",standard:"EIP3091"}],testnet:!0,slug:"sepolia"},EWt={name:"PepChain Churchill",chain:"PEP",rpc:["https://churchill-rpc.pepchain.io"],faucets:[],nativeCurrency:{name:"PepChain Churchill Ether",symbol:"TPEP",decimals:18},infoURL:"https://pepchain.io",shortName:"tpep",chainId:13371337,networkId:13371337,testnet:!1,slug:"pepchain-churchill"},kWt={name:"Anduschain Mainnet",chain:"anduschain",rpc:["https://rpc.anduschain.io/rpc","wss://rpc.anduschain.io/ws"],faucets:[],nativeCurrency:{name:"DAON",symbol:"DEB",decimals:18},infoURL:"https://anduschain.io/",shortName:"anduschain-mainnet",chainId:14288640,networkId:14288640,explorers:[{name:"anduschain explorer",url:"https://explorer.anduschain.io",icon:"daon",standard:"none"}],testnet:!1,slug:"anduschain"},SWt={name:"Plian Testnet Main",chain:"Plian",rpc:["https://testnet.plian.io/testnet"],faucets:[],nativeCurrency:{name:"Plian Testnet Token",symbol:"TPI",decimals:18},infoURL:"https://plian.org",shortName:"plian-testnet",chainId:16658437,networkId:16658437,explorers:[{name:"piscan",url:"https://testnet.plian.org/testnet",standard:"EIP3091"}],testnet:!0,slug:"plian-testnet-main"},AWt={name:"IOLite",chain:"ILT",rpc:["https://net.iolite.io"],faucets:[],nativeCurrency:{name:"IOLite Ether",symbol:"ILT",decimals:18},infoURL:"https://iolite.io",shortName:"ilt",chainId:18289463,networkId:18289463,testnet:!1,slug:"iolite"},MWt={name:"SmartMesh Mainnet",chain:"Spectrum",rpc:["https://jsonapi1.smartmesh.cn"],faucets:[],nativeCurrency:{name:"SmartMesh Native Token",symbol:"SMT",decimals:18},infoURL:"https://smartmesh.io",shortName:"spectrum",chainId:20180430,networkId:1,explorers:[{name:"spectrum",url:"https://spectrum.pub",standard:"none"}],testnet:!1,slug:"smartmesh"},IWt={name:"quarkblockchain",chain:"QKI",rpc:["https://hz.rpc.qkiscan.cn","https://jp.rpc.qkiscan.io"],faucets:[],nativeCurrency:{name:"quarkblockchain Native Token",symbol:"QKI",decimals:18},infoURL:"https://quarkblockchain.org/",shortName:"qki",chainId:20181205,networkId:20181205,testnet:!1,slug:"quarkblockchain"},PWt={name:"Excelon Mainnet",chain:"XLON",icon:{url:"ipfs://QmTV45o4jTe6ayscF1XWh1WXk5DPck4QohR5kQocSWjvQP",width:300,height:300,format:"png"},rpc:["https://edgewallet1.xlon.org/"],faucets:[],nativeCurrency:{name:"Excelon",symbol:"xlon",decimals:18},infoURL:"https://xlon.org",shortName:"xlon",chainId:22052002,networkId:22052002,explorers:[{name:"Excelon explorer",url:"https://explorer.excelon.io",standard:"EIP3091"}],testnet:!1,slug:"excelon"},RWt={name:"Excoincial Chain Volta-Testnet",chain:"TEXL",icon:{url:"ipfs://QmeooM7QicT1YbgY93XPd5p7JsCjYhN3qjWt68X57g6bVC",width:400,height:400,format:"png"},rpc:["https://testnet-rpc.exlscan.com"],faucets:["https://faucet.exlscan.com"],nativeCurrency:{name:"TExlcoin",symbol:"TEXL",decimals:18},infoURL:"",shortName:"exlvolta",chainId:27082017,networkId:27082017,explorers:[{name:"exlscan",url:"https://testnet-explorer.exlscan.com",icon:"exl",standard:"EIP3091"}],testnet:!0,slug:"excoincial-chain-volta-testnet"},NWt={name:"Excoincial Chain Mainnet",chain:"EXL",icon:{url:"ipfs://QmeooM7QicT1YbgY93XPd5p7JsCjYhN3qjWt68X57g6bVC",width:400,height:400,format:"png"},rpc:["https://rpc.exlscan.com"],faucets:[],nativeCurrency:{name:"Exlcoin",symbol:"EXL",decimals:18},infoURL:"",shortName:"exl",chainId:27082022,networkId:27082022,explorers:[{name:"exlscan",url:"https://exlscan.com",icon:"exl",standard:"EIP3091"}],testnet:!1,slug:"excoincial-chain"},OWt={name:"Auxilium Network Mainnet",chain:"AUX",rpc:["https://rpc.auxilium.global"],faucets:[],nativeCurrency:{name:"Auxilium coin",symbol:"AUX",decimals:18},infoURL:"https://auxilium.global",shortName:"auxi",chainId:28945486,networkId:28945486,slip44:344,testnet:!1,slug:"auxilium-network"},LWt={name:"Flachain Mainnet",chain:"FLX",icon:{url:"ipfs://bafybeiadlvc4pfiykehyt2z67nvgt5w4vlov27olu5obvmryv4xzua4tae",width:256,height:256,format:"png"},rpc:["https://flachain.flaexchange.top/"],features:[{name:"EIP155"},{name:"EIP1559"}],faucets:[],nativeCurrency:{name:"Flacoin",symbol:"FLA",decimals:18},infoURL:"https://www.flaexchange.top",shortName:"fla",chainId:29032022,networkId:29032022,explorers:[{name:"FLXExplorer",url:"https://explorer.flaexchange.top",standard:"EIP3091"}],testnet:!1,slug:"flachain"},BWt={name:"Filecoin - Local testnet",chain:"FIL",status:"incubating",rpc:[],faucets:[],nativeCurrency:{name:"testnet filecoin",symbol:"tFIL",decimals:18},infoURL:"https://filecoin.io",shortName:"filecoin-local",icon:{url:"ipfs://QmS9r9XQkMHVomWcSBNDkKkz9n87h9bH9ssabeiKZtANoU",width:1e3,height:1e3,format:"png"},chainId:31415926,networkId:31415926,slip44:1,explorers:[],testnet:!0,slug:"filecoin-local-testnet"},qWt={name:"Joys Digital Mainnet",chain:"JOYS",rpc:["https://node.joys.digital"],faucets:[],nativeCurrency:{name:"JOYS",symbol:"JOYS",decimals:18},infoURL:"https://joys.digital",shortName:"JOYS",chainId:35855456,networkId:35855456,testnet:!1,slug:"joys-digital"},DWt={name:"maistestsubnet",chain:"MAI",rpc:["http://174.138.9.169:9650/ext/bc/VUKSzFZKckx4PoZF9gX5QAqLPxbLzvu1vcssPG5QuodaJtdHT/rpc"],faucets:[],nativeCurrency:{name:"maistestsubnet",symbol:"MAI",decimals:18},infoURL:"",shortName:"mais",chainId:43214913,networkId:43214913,explorers:[{name:"maistesntet",url:"http://174.138.9.169:3006/?network=maistesntet",standard:"none"}],testnet:!0,slug:"maistestsubnet"},FWt={name:"Aquachain",chain:"AQUA",rpc:["https://c.onical.org","https://tx.aquacha.in/api"],faucets:["https://aquacha.in/faucet"],nativeCurrency:{name:"Aquachain Ether",symbol:"AQUA",decimals:18},infoURL:"https://aquachain.github.io",shortName:"aqua",chainId:61717561,networkId:61717561,slip44:61717561,testnet:!1,slug:"aquachain"},UWt={name:"Autonity Bakerloo (Thames) Testnet",chain:"AUT",rpc:["https://rpc1.bakerloo.autonity.org/","wss://rpc1.bakerloo.autonity.org/ws/"],faucets:["https://faucet.autonity.org/"],nativeCurrency:{name:"Bakerloo Auton",symbol:"ATN",decimals:18},infoURL:"https://autonity.org/",shortName:"bakerloo-0",chainId:6501e4,networkId:6501e4,explorers:[{name:"autonity-blockscout",url:"https://bakerloo.autonity.org",standard:"EIP3091"}],testnet:!0,slug:"autonity-bakerloo-thames-testnet"},WWt={name:"Autonity Piccadilly (Thames) Testnet",chain:"AUT",rpc:["https://rpc1.piccadilly.autonity.org/","wss://rpc1.piccadilly.autonity.org/ws/"],faucets:["https://faucet.autonity.org/"],nativeCurrency:{name:"Piccadilly Auton",symbol:"ATN",decimals:18},infoURL:"https://autonity.org/",shortName:"piccadilly-0",chainId:651e5,networkId:651e5,explorers:[{name:"autonity-blockscout",url:"https://piccadilly.autonity.org",standard:"EIP3091"}],testnet:!0,slug:"autonity-piccadilly-thames-testnet"},jWt={name:"Joys Digital TestNet",chain:"TOYS",rpc:["https://toys.joys.cash/"],faucets:["https://faucet.joys.digital/"],nativeCurrency:{name:"TOYS",symbol:"TOYS",decimals:18},infoURL:"https://joys.digital",shortName:"TOYS",chainId:99415706,networkId:99415706,testnet:!0,slug:"joys-digital-testnet"},zWt={name:"Gather Mainnet Network",chain:"GTH",rpc:["https://mainnet.gather.network"],faucets:[],nativeCurrency:{name:"Gather",symbol:"GTH",decimals:18},infoURL:"https://gather.network",shortName:"GTH",chainId:192837465,networkId:192837465,explorers:[{name:"Blockscout",url:"https://explorer.gather.network",standard:"none"}],testnet:!1,slug:"gather-network"},HWt={name:"Neon EVM DevNet",chain:"Solana",rpc:["https://devnet.neonevm.org"],faucets:["https://neonfaucet.org"],icon:{url:"ipfs://Qmcxevb3v8PEvnvfYgcG3bCBuPhe5YAdsHeaufDChSSR3Q",width:512,height:512,format:"png"},nativeCurrency:{name:"Neon",symbol:"NEON",decimals:18},infoURL:"https://neon-labs.org",shortName:"neonevm-devnet",chainId:245022926,networkId:245022926,explorers:[{name:"native",url:"https://devnet.explorer.neon-labs.org",standard:"EIP3091"},{name:"neonscan",url:"https://devnet.neonscan.org",standard:"EIP3091"}],testnet:!1,slug:"neon-evm-devnet"},VWt={name:"Neon EVM MainNet",chain:"Solana",rpc:["https://mainnet.neonevm.org"],faucets:[],icon:{url:"ipfs://Qmcxevb3v8PEvnvfYgcG3bCBuPhe5YAdsHeaufDChSSR3Q",width:512,height:512,format:"png"},nativeCurrency:{name:"Neon",symbol:"NEON",decimals:18},infoURL:"https://neon-labs.org",shortName:"neonevm-mainnet",chainId:245022934,networkId:245022934,explorers:[{name:"native",url:"https://mainnet.explorer.neon-labs.org",standard:"EIP3091"},{name:"neonscan",url:"https://mainnet.neonscan.org",standard:"EIP3091"}],testnet:!1,slug:"neon-evm"},GWt={name:"Neon EVM TestNet",chain:"Solana",rpc:["https://testnet.neonevm.org"],faucets:[],icon:{url:"ipfs://Qmcxevb3v8PEvnvfYgcG3bCBuPhe5YAdsHeaufDChSSR3Q",width:512,height:512,format:"png"},nativeCurrency:{name:"Neon",symbol:"NEON",decimals:18},infoURL:"https://neon-labs.org",shortName:"neonevm-testnet",chainId:245022940,networkId:245022940,explorers:[{name:"native",url:"https://testnet.explorer.neon-labs.org",standard:"EIP3091"},{name:"neonscan",url:"https://testnet.neonscan.org",standard:"EIP3091"}],testnet:!0,slug:"neon-evm-testnet"},ZWt={name:"OneLedger Mainnet",chain:"OLT",icon:{url:"ipfs://QmRhqq4Gp8G9w27ND3LeFW49o5PxcxrbJsqHbpBFtzEMfC",width:225,height:225,format:"png"},rpc:["https://mainnet-rpc.oneledger.network"],faucets:[],nativeCurrency:{name:"OLT",symbol:"OLT",decimals:18},infoURL:"https://oneledger.io",shortName:"oneledger",chainId:311752642,networkId:311752642,explorers:[{name:"OneLedger Block Explorer",url:"https://mainnet-explorer.oneledger.network",standard:"EIP3091"}],testnet:!1,slug:"oneledger"},JWt={name:"Calypso NFT Hub (SKALE Testnet)",title:"Calypso NFT Hub Testnet",chain:"staging-utter-unripe-menkar",rpc:["https://staging-v3.skalenodes.com/v1/staging-utter-unripe-menkar"],faucets:["https://sfuel.dirtroad.dev/staging"],nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},infoURL:"https://calypsohub.network/",shortName:"calypso-testnet",chainId:344106930,networkId:344106930,explorers:[{name:"Blockscout",url:"https://staging-utter-unripe-menkar.explorer.staging-v3.skalenodes.com",icon:"calypso",standard:"EIP3091"}],testnet:!0,slug:"calypso-nft-hub-skale-testnet"},KWt={name:"Gather Testnet Network",chain:"GTH",rpc:["https://testnet.gather.network"],faucets:[],nativeCurrency:{name:"Gather",symbol:"GTH",decimals:18},infoURL:"https://gather.network",shortName:"tGTH",chainId:356256156,networkId:356256156,explorers:[{name:"Blockscout",url:"https://testnet-explorer.gather.network",standard:"none"}],testnet:!0,slug:"gather-testnet-network"},QWt={name:"Gather Devnet Network",chain:"GTH",rpc:["https://devnet.gather.network"],faucets:[],nativeCurrency:{name:"Gather",symbol:"GTH",decimals:18},infoURL:"https://gather.network",shortName:"dGTH",chainId:486217935,networkId:486217935,explorers:[{name:"Blockscout",url:"https://devnet-explorer.gather.network",standard:"none"}],testnet:!1,slug:"gather-devnet-network"},XWt={name:"Nebula Staging",chain:"staging-faint-slimy-achird",rpc:["https://staging-v3.skalenodes.com/v1/staging-faint-slimy-achird","wss://staging-v3.skalenodes.com/v1/ws/staging-faint-slimy-achird"],faucets:[],nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},infoURL:"https://nebulachain.io/",shortName:"nebula-staging",chainId:503129905,networkId:503129905,explorers:[{name:"nebula",url:"https://staging-faint-slimy-achird.explorer.staging-v3.skalenodes.com",icon:"nebula",standard:"EIP3091"}],testnet:!1,slug:"nebula-staging"},YWt={name:"IPOS Network",chain:"IPOS",rpc:["https://rpc.iposlab.com","https://rpc2.iposlab.com"],faucets:[],nativeCurrency:{name:"IPOS Network Ether",symbol:"IPOS",decimals:18},infoURL:"https://iposlab.com",shortName:"ipos",chainId:1122334455,networkId:1122334455,testnet:!1,slug:"ipos-network"},$Wt={name:"Aurora Mainnet",chain:"NEAR",rpc:["https://mainnet.aurora.dev"],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://aurora.dev",shortName:"aurora",chainId:1313161554,networkId:1313161554,explorers:[{name:"aurorascan.dev",url:"https://aurorascan.dev",standard:"EIP3091"}],testnet:!1,slug:"aurora"},ejt={name:"Aurora Testnet",chain:"NEAR",rpc:["https://testnet.aurora.dev/"],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://aurora.dev",shortName:"aurora-testnet",chainId:1313161555,networkId:1313161555,explorers:[{name:"aurorascan.dev",url:"https://testnet.aurorascan.dev",standard:"EIP3091"}],testnet:!0,slug:"aurora-testnet"},tjt={name:"Aurora Betanet",chain:"NEAR",rpc:[],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://aurora.dev",shortName:"aurora-betanet",chainId:1313161556,networkId:1313161556,testnet:!1,slug:"aurora-betanet"},rjt={name:"Nebula Mainnet",chain:"green-giddy-denebola",rpc:["https://mainnet.skalenodes.com/v1/green-giddy-denebola","wss://mainnet-proxy.skalenodes.com/v1/ws/green-giddy-denebola"],faucets:[],nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},infoURL:"https://nebulachain.io/",shortName:"nebula-mainnet",chainId:1482601649,networkId:1482601649,explorers:[{name:"nebula",url:"https://green-giddy-denebola.explorer.mainnet.skalenodes.com",icon:"nebula",standard:"EIP3091"}],testnet:!1,slug:"nebula"},njt={name:"Calypso NFT Hub (SKALE)",title:"Calypso NFT Hub Mainnet",chain:"honorable-steel-rasalhague",rpc:["https://mainnet.skalenodes.com/v1/honorable-steel-rasalhague"],faucets:["https://sfuel.dirtroad.dev"],nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},infoURL:"https://calypsohub.network/",shortName:"calypso-mainnet",chainId:1564830818,networkId:1564830818,explorers:[{name:"Blockscout",url:"https://honorable-steel-rasalhague.explorer.mainnet.skalenodes.com",icon:"calypso",standard:"EIP3091"}],testnet:!1,slug:"calypso-nft-hub-skale"},ajt={name:"Harmony Mainnet Shard 0",chain:"Harmony",rpc:["https://api.harmony.one","https://api.s0.t.hmny.io"],faucets:["https://free-online-app.com/faucet-for-eth-evm-chains/"],nativeCurrency:{name:"ONE",symbol:"ONE",decimals:18},infoURL:"https://www.harmony.one/",shortName:"hmy-s0",chainId:16666e5,networkId:16666e5,explorers:[{name:"Harmony Block Explorer",url:"https://explorer.harmony.one",standard:"EIP3091"}],testnet:!1,slug:"harmony-shard-0"},ijt={name:"Harmony Mainnet Shard 1",chain:"Harmony",rpc:["https://api.s1.t.hmny.io"],faucets:[],nativeCurrency:{name:"ONE",symbol:"ONE",decimals:18},infoURL:"https://www.harmony.one/",shortName:"hmy-s1",chainId:1666600001,networkId:1666600001,testnet:!1,slug:"harmony-shard-1"},sjt={name:"Harmony Mainnet Shard 2",chain:"Harmony",rpc:["https://api.s2.t.hmny.io"],faucets:[],nativeCurrency:{name:"ONE",symbol:"ONE",decimals:18},infoURL:"https://www.harmony.one/",shortName:"hmy-s2",chainId:1666600002,networkId:1666600002,testnet:!1,slug:"harmony-shard-2"},ojt={name:"Harmony Mainnet Shard 3",chain:"Harmony",rpc:["https://api.s3.t.hmny.io"],faucets:[],nativeCurrency:{name:"ONE",symbol:"ONE",decimals:18},infoURL:"https://www.harmony.one/",shortName:"hmy-s3",chainId:1666600003,networkId:1666600003,testnet:!1,slug:"harmony-shard-3"},cjt={name:"Harmony Testnet Shard 0",chain:"Harmony",rpc:["https://api.s0.b.hmny.io"],faucets:["https://faucet.pops.one"],nativeCurrency:{name:"ONE",symbol:"ONE",decimals:18},infoURL:"https://www.harmony.one/",shortName:"hmy-b-s0",chainId:16667e5,networkId:16667e5,explorers:[{name:"Harmony Testnet Block Explorer",url:"https://explorer.pops.one",standard:"EIP3091"}],testnet:!0,slug:"harmony-testnet-shard-0"},ujt={name:"Harmony Testnet Shard 1",chain:"Harmony",rpc:["https://api.s1.b.hmny.io"],faucets:[],nativeCurrency:{name:"ONE",symbol:"ONE",decimals:18},infoURL:"https://www.harmony.one/",shortName:"hmy-b-s1",chainId:1666700001,networkId:1666700001,testnet:!0,slug:"harmony-testnet-shard-1"},ljt={name:"Harmony Testnet Shard 2",chain:"Harmony",rpc:["https://api.s2.b.hmny.io"],faucets:[],nativeCurrency:{name:"ONE",symbol:"ONE",decimals:18},infoURL:"https://www.harmony.one/",shortName:"hmy-b-s2",chainId:1666700002,networkId:1666700002,testnet:!0,slug:"harmony-testnet-shard-2"},djt={name:"Harmony Testnet Shard 3",chain:"Harmony",rpc:["https://api.s3.b.hmny.io"],faucets:[],nativeCurrency:{name:"ONE",symbol:"ONE",decimals:18},infoURL:"https://www.harmony.one/",shortName:"hmy-b-s3",chainId:1666700003,networkId:1666700003,testnet:!0,slug:"harmony-testnet-shard-3"},pjt={name:"Harmony Devnet Shard 0",chain:"Harmony",rpc:["https://api.s1.ps.hmny.io","https://api.s1.ps.hmny.io"],faucets:["http://dev.faucet.easynode.one/"],nativeCurrency:{name:"ONE",symbol:"ONE",decimals:18},infoURL:"https://www.harmony.one/",shortName:"hmy-ps-s0",chainId:16669e5,networkId:16669e5,explorers:[{name:"Harmony Block Explorer",url:"https://explorer.ps.hmny.io",standard:"EIP3091"}],testnet:!1,slug:"harmony-devnet-shard-0"},hjt={name:"DataHopper",chain:"HOP",rpc:["https://23.92.21.121:8545"],faucets:[],nativeCurrency:{name:"DataHoppers",symbol:"HOP",decimals:18},infoURL:"https://www.DataHopper.com",shortName:"hop",chainId:2021121117,networkId:2021121117,testnet:!1,slug:"datahopper"},fjt={name:"Europa SKALE Chain",chain:"europa",icon:{url:"ipfs://bafkreiezcwowhm6xjrkt44cmiu6ml36rhrxx3amcg3cfkcntv2vgcvgbre",width:600,height:600,format:"png"},rpc:["https://mainnet.skalenodes.com/v1/elated-tan-skat","wss://mainnet.skalenodes.com/v1/elated-tan-skat"],faucets:["https://ruby.exchange/faucet.html","https://sfuel.mylilius.com/"],nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},infoURL:"https://europahub.network/",shortName:"europa",chainId:2046399126,networkId:2046399126,explorers:[{name:"Blockscout",url:"https://elated-tan-skat.explorer.mainnet.skalenodes.com",standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-1",bridges:[{url:"https://ruby.exchange/bridge.html"}]},testnet:!1,slug:"europa-skale-chain"},mjt={name:"Pirl",chain:"PIRL",rpc:["https://wallrpc.pirl.io"],faucets:[],nativeCurrency:{name:"Pirl Ether",symbol:"PIRL",decimals:18},infoURL:"https://pirl.io",shortName:"pirl",chainId:3125659152,networkId:3125659152,slip44:164,testnet:!1,slug:"pirl"},yjt={name:"OneLedger Testnet Frankenstein",chain:"OLT",icon:{url:"ipfs://QmRhqq4Gp8G9w27ND3LeFW49o5PxcxrbJsqHbpBFtzEMfC",width:225,height:225,format:"png"},rpc:["https://frankenstein-rpc.oneledger.network"],faucets:["https://frankenstein-faucet.oneledger.network"],nativeCurrency:{name:"OLT",symbol:"OLT",decimals:18},infoURL:"https://oneledger.io",shortName:"frankenstein",chainId:4216137055,networkId:4216137055,explorers:[{name:"OneLedger Block Explorer",url:"https://frankenstein-explorer.oneledger.network",standard:"EIP3091"}],testnet:!0,slug:"oneledger-testnet-frankenstein"},gjt={name:"Palm Testnet",chain:"Palm",rpc:["https://palm-testnet.infura.io/v3/${INFURA_API_KEY}"],faucets:[],nativeCurrency:{name:"PALM",symbol:"PALM",decimals:18},infoURL:"https://palm.io",shortName:"tpalm",chainId:11297108099,networkId:11297108099,explorers:[{name:"Palm Testnet Explorer",url:"https://explorer.palm-uat.xyz",standard:"EIP3091"}],testnet:!0,slug:"palm-testnet"},vjt={name:"Palm",chain:"Palm",rpc:["https://palm-mainnet.infura.io/v3/${INFURA_API_KEY}"],faucets:[],nativeCurrency:{name:"PALM",symbol:"PALM",decimals:18},infoURL:"https://palm.io",shortName:"palm",chainId:11297108109,networkId:11297108109,explorers:[{name:"Palm Explorer",url:"https://explorer.palm.io",standard:"EIP3091"}],testnet:!1,slug:"palm"},bjt={name:"Ntity Mainnet",chain:"Ntity",rpc:["https://rpc.ntity.io"],faucets:[],nativeCurrency:{name:"Ntity",symbol:"NTT",decimals:18},infoURL:"https://ntity.io",shortName:"ntt",chainId:197710212030,networkId:197710212030,icon:{url:"ipfs://QmSW2YhCvMpnwtPGTJAuEK2QgyWfFjmnwcrapUg6kqFsPf",width:711,height:715,format:"svg"},explorers:[{name:"Ntity Blockscout",url:"https://blockscout.ntity.io",icon:"ntity",standard:"EIP3091"}],testnet:!1,slug:"ntity"},wjt={name:"Haradev Testnet",chain:"Ntity",rpc:["https://blockchain.haradev.com"],faucets:[],nativeCurrency:{name:"Ntity Haradev",symbol:"NTTH",decimals:18},infoURL:"https://ntity.io",shortName:"ntt-haradev",chainId:197710212031,networkId:197710212031,icon:{url:"ipfs://QmSW2YhCvMpnwtPGTJAuEK2QgyWfFjmnwcrapUg6kqFsPf",width:711,height:715,format:"svg"},explorers:[{name:"Ntity Haradev Blockscout",url:"https://blockscout.haradev.com",icon:"ntity",standard:"EIP3091"}],testnet:!0,slug:"haradev-testnet"},xjt={name:"Zeniq",chain:"ZENIQ",rpc:["https://smart.zeniq.network:9545"],faucets:["https://faucet.zeniq.net/"],nativeCurrency:{name:"Zeniq",symbol:"ZENIQ",decimals:18},infoURL:"https://www.zeniq.dev/",shortName:"zeniq",chainId:383414847825,networkId:383414847825,explorers:[{name:"zeniq-smart-chain-explorer",url:"https://smart.zeniq.net",standard:"EIP3091"}],testnet:!1,slug:"zeniq"},Tjt={name:"PDC Mainnet",chain:"IPDC",rpc:["https://mainnet.ipdc.io/"],faucets:[],nativeCurrency:{name:"PDC",symbol:"PDC",decimals:18},infoURL:"https://ipdc.io",shortName:"ipdc",chainId:666301171999,networkId:666301171999,explorers:[{name:"ipdcscan",url:"https://scan.ipdc.io",standard:"EIP3091"}],testnet:!1,slug:"pdc"},_jt={name:"Molereum Network",chain:"ETH",rpc:["https://molereum.jdubedition.com"],faucets:[],nativeCurrency:{name:"Molereum Ether",symbol:"MOLE",decimals:18},infoURL:"https://github.com/Jdubedition/molereum",shortName:"mole",chainId:6022140761023,networkId:6022140761023,testnet:!1,slug:"molereum-network"},Cjt={name:"Localhost",chain:"ETH",rpc:["http://localhost:8545"],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},icon:{url:"ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/ethereum/512.png",height:512,width:512,format:"png",sizes:[16,32,64,128,256,512]},shortName:"local",chainId:1337,networkId:1337,testnet:!0,slug:"localhost"},Ejt={mode:"http"};function kbe(r,e){let{thirdwebApiKey:t,alchemyApiKey:n,infuraApiKey:a,mode:i}={...Ejt,...e},s=r.rpc.filter(E=>!!(E.startsWith("http")&&i==="http"||E.startsWith("ws")&&i==="ws")),c=s.filter(E=>E.includes("${THIRDWEB_API_KEY}")&&t).map(E=>t?E.replace("${THIRDWEB_API_KEY}",t):E),l=s.filter(E=>E.includes("${ALCHEMY_API_KEY}")&&n).map(E=>n?E.replace("${ALCHEMY_API_KEY}",n):E),d=s.filter(E=>E.includes("${INFURA_API_KEY}")&&a).map(E=>a?E.replace("${INFURA_API_KEY}",a):E),f=s.filter(E=>!E.includes("${")),w=[...c,...d,...l,...f];if(w.length===0)throw new Error(`No RPC available for chainId "${r.chainId}" with mode ${i}`);return w}function kjt(r,e){return kbe(r,e)[0]}var kz=$It,Sbe=e9t,Abe=t9t,Mbe=r9t,Sz=n9t,Ibe=a9t,Pbe=i9t,Rbe=s9t,Nbe=o9t,Az=c9t,Obe=u9t,Lbe=l9t,Bbe=d9t,qbe=p9t,Dbe=h9t,Fbe=f9t,Ube=m9t,Wbe=y9t,jbe=g9t,zbe=v9t,Hbe=b9t,Vbe=w9t,Gbe=x9t,Zbe=T9t,Jbe=_9t,Kbe=C9t,Qbe=E9t,Xbe=k9t,Ybe=S9t,$be=A9t,e2e=M9t,t2e=I9t,r2e=P9t,n2e=R9t,a2e=N9t,i2e=O9t,s2e=L9t,o2e=B9t,c2e=q9t,u2e=D9t,l2e=F9t,d2e=U9t,p2e=W9t,h2e=j9t,f2e=z9t,m2e=H9t,y2e=V9t,g2e=G9t,v2e=Z9t,b2e=J9t,w2e=K9t,x2e=Q9t,T2e=X9t,_2e=Y9t,Mz=$9t,C2e=ePt,E2e=tPt,k2e=rPt,S2e=nPt,A2e=aPt,M2e=iPt,I2e=sPt,P2e=oPt,R2e=cPt,N2e=uPt,O2e=lPt,L2e=dPt,B2e=pPt,q2e=hPt,D2e=fPt,F2e=mPt,U2e=yPt,W2e=gPt,j2e=vPt,z2e=bPt,H2e=wPt,V2e=xPt,G2e=TPt,Z2e=_Pt,J2e=CPt,K2e=EPt,Q2e=kPt,X2e=SPt,Y2e=APt,$2e=MPt,ewe=IPt,twe=PPt,rwe=RPt,nwe=NPt,awe=OPt,iwe=LPt,swe=BPt,owe=qPt,Iz=DPt,cwe=FPt,uwe=UPt,lwe=WPt,dwe=jPt,pwe=zPt,hwe=HPt,fwe=VPt,mwe=GPt,ywe=ZPt,gwe=JPt,vwe=KPt,bwe=QPt,wwe=XPt,xwe=YPt,Twe=$Pt,_we=e7t,Cwe=t7t,Ewe=r7t,kwe=n7t,Swe=a7t,Awe=i7t,Mwe=s7t,Iwe=o7t,Pwe=c7t,Rwe=u7t,Pz=l7t,Nwe=d7t,Owe=p7t,Lwe=h7t,Bwe=f7t,qwe=m7t,Dwe=y7t,Fwe=g7t,Uwe=v7t,Wwe=b7t,jwe=w7t,zwe=x7t,Hwe=T7t,Vwe=_7t,Gwe=C7t,Zwe=E7t,Jwe=k7t,Kwe=S7t,Qwe=A7t,Xwe=M7t,Ywe=I7t,$we=P7t,exe=R7t,txe=N7t,rxe=O7t,nxe=L7t,axe=B7t,Rz=q7t,ixe=D7t,sxe=F7t,oxe=U7t,cxe=W7t,uxe=j7t,lxe=z7t,dxe=H7t,pxe=V7t,hxe=G7t,fxe=Z7t,mxe=J7t,yxe=K7t,gxe=Q7t,vxe=X7t,bxe=Y7t,wxe=$7t,xxe=eRt,Txe=tRt,_xe=rRt,Cxe=nRt,Exe=aRt,kxe=iRt,Sxe=sRt,Axe=oRt,Mxe=cRt,Ixe=uRt,Nz=lRt,Pxe=dRt,Rxe=pRt,Nxe=hRt,Oxe=fRt,Lxe=mRt,Bxe=yRt,qxe=gRt,Dxe=vRt,Fxe=bRt,Uxe=wRt,Wxe=xRt,jxe=TRt,zxe=_Rt,Hxe=CRt,Vxe=ERt,Gxe=kRt,Zxe=SRt,Jxe=ARt,Kxe=MRt,Qxe=IRt,Xxe=PRt,Yxe=RRt,$xe=NRt,e5e=ORt,t5e=LRt,r5e=BRt,n5e=qRt,a5e=DRt,i5e=FRt,s5e=URt,o5e=WRt,c5e=jRt,u5e=zRt,l5e=HRt,d5e=VRt,p5e=GRt,h5e=ZRt,f5e=JRt,m5e=KRt,y5e=QRt,g5e=XRt,v5e=YRt,b5e=$Rt,w5e=eNt,x5e=tNt,T5e=rNt,_5e=nNt,C5e=aNt,E5e=iNt,k5e=sNt,S5e=oNt,A5e=cNt,M5e=uNt,I5e=lNt,P5e=dNt,R5e=pNt,N5e=hNt,O5e=fNt,L5e=mNt,B5e=yNt,q5e=gNt,D5e=vNt,F5e=bNt,U5e=wNt,W5e=xNt,j5e=TNt,z5e=_Nt,H5e=CNt,V5e=ENt,G5e=kNt,Z5e=SNt,J5e=ANt,K5e=MNt,Q5e=INt,X5e=PNt,Y5e=RNt,$5e=NNt,e3e=ONt,t3e=LNt,r3e=BNt,n3e=qNt,a3e=DNt,i3e=FNt,s3e=UNt,o3e=WNt,c3e=jNt,u3e=zNt,l3e=HNt,d3e=VNt,p3e=GNt,h3e=ZNt,f3e=JNt,m3e=KNt,y3e=QNt,g3e=XNt,v3e=YNt,b3e=$Nt,w3e=eOt,x3e=tOt,T3e=rOt,_3e=nOt,C3e=aOt,E3e=iOt,k3e=sOt,S3e=oOt,A3e=cOt,M3e=uOt,I3e=lOt,P3e=dOt,R3e=pOt,N3e=hOt,O3e=fOt,L3e=mOt,B3e=yOt,q3e=gOt,D3e=vOt,F3e=bOt,U3e=wOt,W3e=xOt,j3e=TOt,z3e=_Ot,H3e=COt,V3e=EOt,G3e=kOt,Z3e=SOt,J3e=AOt,K3e=MOt,Q3e=IOt,X3e=POt,Y3e=ROt,$3e=NOt,e6e=OOt,t6e=LOt,r6e=BOt,n6e=qOt,a6e=DOt,i6e=FOt,s6e=UOt,o6e=WOt,c6e=jOt,u6e=zOt,l6e=HOt,d6e=VOt,p6e=GOt,h6e=ZOt,f6e=JOt,m6e=KOt,y6e=QOt,g6e=XOt,v6e=YOt,b6e=$Ot,w6e=eLt,x6e=tLt,T6e=rLt,_6e=nLt,C6e=aLt,E6e=iLt,k6e=sLt,S6e=oLt,A6e=cLt,M6e=uLt,I6e=lLt,P6e=dLt,R6e=pLt,N6e=hLt,O6e=fLt,L6e=mLt,B6e=yLt,q6e=gLt,D6e=vLt,F6e=bLt,U6e=wLt,W6e=xLt,j6e=TLt,z6e=_Lt,H6e=CLt,V6e=ELt,G6e=kLt,Z6e=SLt,J6e=ALt,K6e=MLt,Q6e=ILt,X6e=PLt,Y6e=RLt,$6e=NLt,eTe=OLt,tTe=LLt,rTe=BLt,nTe=qLt,aTe=DLt,iTe=FLt,sTe=ULt,oTe=WLt,cTe=jLt,uTe=zLt,lTe=HLt,dTe=VLt,pTe=GLt,hTe=ZLt,fTe=JLt,mTe=KLt,yTe=QLt,gTe=XLt,vTe=YLt,bTe=$Lt,wTe=eBt,xTe=tBt,TTe=rBt,_Te=nBt,Oz=aBt,CTe=iBt,ETe=sBt,kTe=oBt,STe=cBt,ATe=uBt,MTe=lBt,ITe=dBt,PTe=pBt,RTe=hBt,NTe=fBt,OTe=mBt,LTe=yBt,BTe=gBt,qTe=vBt,DTe=bBt,FTe=wBt,UTe=xBt,WTe=TBt,jTe=_Bt,zTe=CBt,HTe=EBt,VTe=kBt,GTe=SBt,ZTe=ABt,JTe=MBt,KTe=IBt,QTe=PBt,XTe=RBt,YTe=NBt,$Te=OBt,e_e=LBt,t_e=BBt,r_e=qBt,n_e=DBt,a_e=FBt,i_e=UBt,s_e=WBt,o_e=jBt,c_e=zBt,u_e=HBt,l_e=VBt,d_e=GBt,p_e=ZBt,h_e=JBt,f_e=KBt,m_e=QBt,y_e=XBt,g_e=YBt,v_e=$Bt,b_e=eqt,w_e=tqt,x_e=rqt,T_e=nqt,__e=aqt,C_e=iqt,E_e=sqt,k_e=oqt,S_e=cqt,A_e=uqt,M_e=lqt,I_e=dqt,P_e=pqt,R_e=hqt,N_e=fqt,O_e=mqt,L_e=yqt,B_e=gqt,q_e=vqt,D_e=bqt,F_e=wqt,U_e=xqt,W_e=Tqt,j_e=_qt,z_e=Cqt,H_e=Eqt,V_e=kqt,G_e=Sqt,Z_e=Aqt,J_e=Mqt,K_e=Iqt,Q_e=Pqt,X_e=Rqt,Y_e=Nqt,$_e=Oqt,eCe=Lqt,tCe=Bqt,rCe=qqt,nCe=Dqt,aCe=Fqt,iCe=Uqt,sCe=Wqt,oCe=jqt,cCe=zqt,uCe=Hqt,lCe=Vqt,dCe=Gqt,pCe=Zqt,hCe=Jqt,fCe=Kqt,mCe=Qqt,yCe=Xqt,gCe=Yqt,vCe=$qt,bCe=eDt,wCe=tDt,xCe=rDt,TCe=nDt,_Ce=aDt,CCe=iDt,ECe=sDt,kCe=oDt,SCe=cDt,ACe=uDt,MCe=lDt,ICe=dDt,PCe=pDt,RCe=hDt,NCe=fDt,OCe=mDt,LCe=yDt,BCe=gDt,qCe=vDt,DCe=bDt,FCe=wDt,UCe=xDt,WCe=TDt,jCe=_Dt,zCe=CDt,HCe=EDt,VCe=kDt,GCe=SDt,ZCe=ADt,JCe=MDt,KCe=IDt,QCe=PDt,XCe=RDt,YCe=NDt,$Ce=ODt,e8e=LDt,t8e=BDt,r8e=qDt,n8e=DDt,a8e=FDt,i8e=UDt,Lz=WDt,s8e=jDt,o8e=zDt,c8e=HDt,u8e=VDt,l8e=GDt,Bz=ZDt,qz=JDt,d8e=KDt,p8e=QDt,h8e=XDt,f8e=YDt,m8e=$Dt,y8e=eFt,g8e=tFt,v8e=rFt,b8e=nFt,w8e=aFt,x8e=iFt,T8e=sFt,_8e=oFt,C8e=cFt,E8e=uFt,k8e=lFt,S8e=dFt,A8e=pFt,M8e=hFt,I8e=fFt,P8e=mFt,R8e=yFt,N8e=gFt,O8e=vFt,L8e=bFt,B8e=wFt,q8e=xFt,D8e=TFt,F8e=_Ft,U8e=CFt,W8e=EFt,j8e=kFt,z8e=SFt,H8e=AFt,V8e=MFt,G8e=IFt,Z8e=PFt,J8e=RFt,K8e=NFt,Q8e=OFt,X8e=LFt,Y8e=BFt,Dz=qFt,$8e=DFt,e4e=FFt,t4e=UFt,r4e=WFt,n4e=jFt,a4e=zFt,i4e=HFt,s4e=VFt,o4e=GFt,c4e=ZFt,u4e=JFt,l4e=KFt,d4e=QFt,p4e=XFt,h4e=YFt,f4e=$Ft,m4e=eUt,y4e=tUt,g4e=rUt,v4e=nUt,b4e=aUt,w4e=iUt,x4e=sUt,T4e=oUt,_4e=cUt,C4e=uUt,E4e=lUt,k4e=dUt,S4e=pUt,A4e=hUt,M4e=fUt,I4e=mUt,P4e=yUt,R4e=gUt,N4e=vUt,O4e=bUt,L4e=wUt,B4e=xUt,q4e=TUt,D4e=_Ut,F4e=CUt,U4e=EUt,W4e=kUt,j4e=SUt,z4e=AUt,H4e=MUt,V4e=IUt,G4e=PUt,Z4e=RUt,J4e=NUt,K4e=OUt,Q4e=LUt,X4e=BUt,Y4e=qUt,Fz=DUt,$4e=FUt,eEe=UUt,tEe=WUt,rEe=jUt,nEe=zUt,aEe=HUt,iEe=VUt,sEe=GUt,oEe=ZUt,cEe=JUt,uEe=KUt,lEe=QUt,dEe=XUt,pEe=YUt,hEe=$Ut,fEe=eWt,mEe=tWt,yEe=rWt,gEe=nWt,vEe=aWt,bEe=iWt,wEe=sWt,xEe=oWt,TEe=cWt,_Ee=uWt,CEe=lWt,EEe=dWt,kEe=pWt,SEe=hWt,AEe=fWt,MEe=mWt,IEe=yWt,PEe=gWt,REe=vWt,NEe=bWt,OEe=wWt,LEe=xWt,BEe=TWt,qEe=_Wt,DEe=CWt,FEe=EWt,UEe=kWt,WEe=SWt,jEe=AWt,zEe=MWt,HEe=IWt,VEe=PWt,GEe=RWt,ZEe=NWt,JEe=OWt,KEe=LWt,QEe=BWt,XEe=qWt,YEe=DWt,$Ee=FWt,eke=UWt,tke=WWt,rke=jWt,nke=zWt,ake=HWt,ike=VWt,ske=GWt,oke=ZWt,cke=JWt,uke=KWt,lke=QWt,dke=XWt,pke=YWt,hke=$Wt,fke=ejt,mke=tjt,yke=rjt,gke=njt,vke=ajt,bke=ijt,wke=sjt,xke=ojt,Tke=cjt,_ke=ujt,Cke=ljt,Eke=djt,kke=pjt,Ske=hjt,Ake=fjt,Mke=mjt,Ike=yjt,Pke=gjt,Rke=vjt,Nke=bjt,Oke=wjt,Lke=xjt,Bke=Tjt,qke=_jt,Uz=Cjt,Sjt=[kz,Sz,Pz,Dz,Lz,Fz,Az,Nz,Mz,Iz,Rz,Oz,qz,Bz,Uz],Ajt=[kz,Sbe,Abe,Mbe,Sz,Ibe,Pbe,Rbe,Nbe,Az,Obe,Lbe,Bbe,qbe,Dbe,Fbe,Ube,Wbe,jbe,zbe,Hbe,Vbe,Gbe,Zbe,Jbe,Kbe,Qbe,Xbe,Ybe,$be,e2e,t2e,r2e,n2e,a2e,i2e,s2e,o2e,c2e,u2e,l2e,d2e,p2e,h2e,f2e,m2e,y2e,g2e,v2e,b2e,w2e,x2e,T2e,_2e,Mz,C2e,E2e,k2e,S2e,A2e,M2e,I2e,P2e,R2e,N2e,O2e,L2e,B2e,q2e,D2e,F2e,U2e,W2e,j2e,z2e,H2e,V2e,G2e,Z2e,J2e,K2e,Q2e,X2e,Y2e,$2e,ewe,twe,rwe,nwe,awe,iwe,swe,owe,Iz,cwe,uwe,lwe,dwe,pwe,hwe,fwe,mwe,ywe,gwe,vwe,bwe,wwe,xwe,Twe,_we,Cwe,Ewe,kwe,Swe,Awe,Mwe,Iwe,Pwe,Rwe,Pz,Nwe,Owe,Lwe,Bwe,qwe,Dwe,Fwe,Uwe,Wwe,jwe,zwe,Hwe,Vwe,Gwe,Zwe,Jwe,Kwe,Qwe,Xwe,Ywe,$we,exe,txe,rxe,nxe,axe,Rz,ixe,sxe,oxe,cxe,uxe,lxe,dxe,pxe,hxe,fxe,mxe,yxe,gxe,vxe,bxe,wxe,xxe,Txe,_xe,Cxe,Exe,kxe,Sxe,Axe,Mxe,Ixe,Nz,Pxe,Rxe,Nxe,Oxe,Lxe,Bxe,qxe,Dxe,Fxe,Uxe,Wxe,jxe,zxe,Hxe,Vxe,Gxe,Zxe,Jxe,Kxe,Qxe,Xxe,Yxe,$xe,e5e,t5e,r5e,n5e,a5e,i5e,s5e,o5e,c5e,u5e,l5e,d5e,p5e,h5e,f5e,m5e,y5e,g5e,v5e,b5e,w5e,x5e,T5e,_5e,C5e,E5e,k5e,S5e,A5e,M5e,I5e,P5e,R5e,N5e,O5e,L5e,B5e,q5e,D5e,F5e,U5e,W5e,j5e,z5e,H5e,V5e,G5e,Z5e,J5e,K5e,Q5e,X5e,Y5e,$5e,e3e,t3e,r3e,n3e,a3e,i3e,s3e,o3e,c3e,u3e,l3e,d3e,p3e,h3e,f3e,m3e,y3e,g3e,v3e,b3e,w3e,x3e,T3e,_3e,C3e,E3e,k3e,S3e,A3e,M3e,I3e,P3e,R3e,N3e,O3e,L3e,B3e,q3e,D3e,F3e,U3e,W3e,j3e,z3e,H3e,V3e,G3e,Z3e,J3e,K3e,Q3e,X3e,Y3e,$3e,e6e,t6e,r6e,n6e,a6e,i6e,s6e,o6e,c6e,u6e,l6e,d6e,p6e,h6e,f6e,m6e,y6e,g6e,v6e,b6e,w6e,x6e,T6e,_6e,C6e,E6e,k6e,S6e,A6e,M6e,I6e,P6e,R6e,N6e,O6e,L6e,B6e,q6e,D6e,F6e,U6e,W6e,j6e,z6e,H6e,V6e,G6e,Z6e,J6e,K6e,Q6e,X6e,Y6e,$6e,eTe,tTe,rTe,nTe,aTe,iTe,sTe,oTe,cTe,uTe,lTe,dTe,pTe,hTe,fTe,mTe,yTe,gTe,vTe,bTe,wTe,xTe,TTe,_Te,Oz,CTe,ETe,kTe,STe,ATe,MTe,ITe,PTe,RTe,NTe,OTe,LTe,BTe,qTe,DTe,FTe,UTe,WTe,jTe,zTe,HTe,VTe,GTe,ZTe,JTe,KTe,QTe,XTe,YTe,$Te,e_e,t_e,r_e,n_e,a_e,i_e,s_e,o_e,c_e,u_e,l_e,d_e,p_e,h_e,f_e,m_e,y_e,g_e,v_e,b_e,w_e,x_e,T_e,__e,C_e,E_e,k_e,S_e,A_e,M_e,I_e,P_e,R_e,N_e,O_e,L_e,B_e,q_e,D_e,F_e,U_e,W_e,j_e,z_e,H_e,V_e,G_e,Z_e,J_e,K_e,Q_e,X_e,Y_e,$_e,eCe,tCe,rCe,nCe,aCe,iCe,sCe,oCe,cCe,uCe,lCe,dCe,pCe,hCe,fCe,mCe,yCe,gCe,vCe,bCe,wCe,xCe,TCe,_Ce,CCe,ECe,kCe,SCe,ACe,MCe,ICe,PCe,RCe,NCe,OCe,LCe,BCe,qCe,DCe,FCe,UCe,WCe,jCe,zCe,HCe,VCe,GCe,ZCe,JCe,KCe,QCe,XCe,YCe,$Ce,e8e,t8e,r8e,n8e,a8e,i8e,Lz,s8e,o8e,c8e,u8e,l8e,Bz,qz,d8e,p8e,h8e,f8e,m8e,y8e,g8e,v8e,b8e,w8e,x8e,T8e,_8e,C8e,E8e,k8e,S8e,A8e,M8e,I8e,P8e,R8e,N8e,O8e,L8e,B8e,q8e,D8e,F8e,U8e,W8e,j8e,z8e,H8e,V8e,G8e,Z8e,J8e,K8e,Q8e,X8e,Y8e,Dz,$8e,e4e,t4e,r4e,n4e,a4e,i4e,s4e,o4e,c4e,u4e,l4e,d4e,p4e,h4e,f4e,m4e,y4e,g4e,v4e,b4e,w4e,x4e,T4e,_4e,C4e,E4e,k4e,S4e,A4e,M4e,I4e,P4e,R4e,N4e,O4e,L4e,B4e,q4e,D4e,F4e,U4e,W4e,j4e,z4e,H4e,V4e,G4e,Z4e,J4e,K4e,Q4e,X4e,Y4e,Fz,$4e,eEe,tEe,rEe,nEe,aEe,iEe,sEe,oEe,cEe,uEe,lEe,dEe,pEe,hEe,fEe,mEe,yEe,gEe,vEe,bEe,wEe,xEe,TEe,_Ee,CEe,EEe,kEe,SEe,AEe,MEe,IEe,PEe,REe,NEe,OEe,LEe,BEe,qEe,DEe,FEe,UEe,WEe,jEe,zEe,HEe,VEe,GEe,ZEe,JEe,KEe,QEe,XEe,YEe,$Ee,eke,tke,rke,nke,ake,ike,ske,oke,cke,uke,lke,dke,pke,hke,fke,mke,yke,gke,vke,bke,wke,xke,Tke,_ke,Cke,Eke,kke,Ske,Ake,Mke,Ike,Pke,Rke,Nke,Oke,Lke,Bke,qke,Uz];D.AcalaMandalaTestnet=Zxe;D.AcalaNetwork=l5e;D.AcalaNetworkTestnet=Kxe;D.AerochainTestnet=d5e;D.AiozNetwork=Wwe;D.AiozNetworkTestnet=STe;D.Aitd=B3e;D.AitdTestnet=q3e;D.Akroma=I4e;D.Alaya=P4e;D.AlayaDevTestnet=R4e;D.AlphNetwork=C_e;D.Altcoinchain=H6e;D.Alyx=L3e;D.AlyxChainTestnet=Rwe;D.AmbrosChain=T5e;D.AmeChain=Hwe;D.Amstar=F3e;D.Anduschain=UEe;D.AnytypeEvmChain=K3e;D.Aquachain=$Ee;D.ArbitrumGoerli=Fz;D.ArbitrumNova=s8e;D.ArbitrumOnXdai=Qwe;D.ArbitrumOne=Lz;D.ArbitrumRinkeby=Y4e;D.ArmoniaEvaChain=Bwe;D.ArmoniaEvaChainTestnet=qwe;D.ArtisSigma1=F4e;D.ArtisTestnetTau1=U4e;D.Astar=Gxe;D.Astra=iCe;D.AstraTestnet=oCe;D.Atelier=o6e;D.Atheios=G3e;D.Athereum=l8e;D.AtoshiTestnet=Uwe;D.Aurora=hke;D.AuroraBetanet=mke;D.AuroraTestnet=fke;D.AutobahnNetwork=f8e;D.AutonityBakerlooThamesTestnet=eke;D.AutonityPiccadillyThamesTestnet=tke;D.AuxiliumNetwork=JEe;D.AvalancheCChain=qz;D.AvalancheFujiTestnet=Bz;D.Aves=YCe;D.BeagleMessagingChain=H3e;D.BearNetworkChain=uEe;D.BearNetworkChainTestnet=dEe;D.BeoneChainTestnet=y_e;D.BeresheetTestnet=_6e;D.Berylbit=D_e;D.BeverlyHills=t4e;D.Bifrost=iTe;D.BifrostTestnet=v8e;D.BinanceSmartChain=Mz;D.BinanceSmartChainTestnet=Iz;D.BitcoinEvm=D6e;D.Bitgert=QCe;D.Bitindi=kTe;D.BitindiTestnet=ETe;D.BitkubChainTestnet=UCe;D.Bittex=gTe;D.BittorrentChain=Kwe;D.BittorrentChainTestnet=$5e;D.Bityuan=tTe;D.BlockchainGenesis=X_e;D.BlockchainStation=n5e;D.BlockchainStationTestnet=a5e;D.BlocktonBlockchain=v_e;D.Bloxberg=L_e;D.Bmc=Gwe;D.BmcTestnet=Zwe;D.BobaAvax=d8e;D.BobaBnb=S8e;D.BobaBnbTestnet=H_e;D.BobaNetwork=lxe;D.BobaNetworkGoerliTestnet=eTe;D.BobaNetworkRinkebyTestnet=Xbe;D.BobabaseTestnet=N3e;D.Bobabeam=R3e;D.BobafujiTestnet=MTe;D.Bobaopera=pxe;D.BobaoperaTestnet=CTe;D.BombChain=z6e;D.BombChainTestnet=V6e;D.BonNetwork=a6e;D.Bosagora=O6e;D.Brochain=y4e;D.Bronos=n3e;D.BronosTestnet=r3e;D.Btachain=Z3e;D.BtcixNetwork=SCe;D.Callisto=y5e;D.CallistoTestnet=ACe;D.CalypsoNftHubSkale=gke;D.CalypsoNftHubSkaleTestnet=cke;D.CaminoCChain=Oxe;D.Candle=jxe;D.Canto=i_e;D.CatecoinChain=V3e;D.Celo=o8e;D.CeloAlfajoresTestnet=h8e;D.CeloBaklavaTestnet=O8e;D.CennznetAzalea=ICe;D.CennznetNikau=nTe;D.CennznetRata=rTe;D.ChainVerse=zTe;D.Cheapeth=u5e;D.ChiadoTestnet=Y_e;D.ChilizScovilleTestnet=$8e;D.CicChain=D3e;D.CicChainTestnet=k3e;D.Cloudtx=GCe;D.CloudtxTestnet=ZCe;D.Cloudwalk=g6e;D.CloudwalkTestnet=y6e;D.CloverTestnet=X5e;D.ClvParachain=Y5e;D.Cmp=j4e;D.CmpTestnet=aEe;D.CoinexSmartChain=w2e;D.CoinexSmartChainTestnet=x2e;D.ColumbusTestNetwork=Lxe;D.CondorTestNetwork=S4e;D.Condrieu=F8e;D.ConfluxEspace=e3e;D.ConfluxEspaceTestnet=D2e;D.ConstaTestnet=Sxe;D.CoreBlockchain=u3e;D.CoreBlockchainTestnet=c3e;D.CreditSmartchain=yCe;D.CronosBeta=Jbe;D.CronosTestnet=xxe;D.Crossbell=bTe;D.CryptoEmergency=Jwe;D.Cryptocoinpay=rCe;D.CryptokylinTestnet=swe;D.Crystaleum=m4e;D.CtexScanBlockchain=W3e;D.CubeChain=e6e;D.CubeChainTestnet=t6e;D.DChain=s6e;D.DarwiniaCrabNetwork=h2e;D.DarwiniaNetwork=m2e;D.DarwiniaPangolinTestnet=p2e;D.DarwiniaPangoroTestnet=f2e;D.Datahopper=Ske;D.DaxChain=Owe;D.DbchainTestnet=O2e;D.Debank=Twe;D.DebankTestnet=xwe;D.DebounceSubnetTestnet=oTe;D.DecentralizedWeb=Swe;D.DecimalSmartChain=j2e;D.DecimalSmartChainTestnet=O4e;D.DefichainEvmNetwork=d3e;D.DefichainEvmNetworkTestnet=p3e;D.Dehvo=bwe;D.DexalotSubnet=tEe;D.DexalotSubnetTestnet=eEe;D.DexitNetwork=x5e;D.DfkChain=_8e;D.DfkChainTest=bxe;D.DiodePrenet=Dbe;D.DiodeTestnetStaging=Bbe;D.DithereumTestnet=n2e;D.Dogcoin=l3e;D.DogcoinTestnet=U_e;D.Dogechain=h6e;D.DogechainTestnet=Vxe;D.DokenSuperChain=N8e;D.DosFujiSubnet=O3e;D.DoubleAChain=Bxe;D.DoubleAChainTestnet=qxe;D.DracNetwork=wTe;D.Dxchain=i2e;D.DxchainTestnet=F2e;D.Dyno=xTe;D.DynoTestnet=TTe;D.Ecoball=I6e;D.EcoballTestnetEspuma=P6e;D.Ecredits=B8e;D.EcreditsTestnet=q8e;D.EdexaTestnet=p6e;D.Edgeware=T6e;D.Ekta=d6e;D.ElaDidSidechain=Vbe;D.ElaDidSidechainTestnet=Gbe;D.ElastosSmartChain=zbe;D.ElastosSmartChainTestnet=Hbe;D.EllaTheHeart=r_e;D.Ellaism=P2e;D.EluvioContentFabric=wEe;D.EmpireNetwork=vTe;D.EnduranceSmartChain=$xe;D.Energi=r8e;D.EnergiTestnet=b8e;D.EnergyWebChain=nxe;D.EnergyWebVoltaTestnet=Z8e;D.EnnothemProterozoic=y2e;D.EnnothemTestnetPioneer=g2e;D.Enterchain=w3e;D.Enuls=_we;D.EnulsTestnet=Cwe;D.Eos=k2e;D.Eraswap=DTe;D.Ethereum=kz;D.EthereumClassic=A2e;D.EthereumClassicTestnetKotti=Ibe;D.EthereumClassicTestnetMorden=M2e;D.EthereumClassicTestnetMordor=I2e;D.EthereumFair=iEe;D.Ethergem=l6e;D.Etherinc=lwe;D.EtherliteChain=vwe;D.EthersocialNetwork=VCe;D.EthoProtocol=xEe;D.Etica=R8e;D.EtndChainS=k4e;D.EuropaSkaleChain=Ake;D.Eurus=Z5e;D.EurusTestnet=u6e;D.Evanesco=F6e;D.EvanescoTestnet=g3e;D.Evmos=q_e;D.EvmosTestnet=B_e;D.EvriceNetwork=J5e;D.Excelon=VEe;D.ExcoincialChain=ZEe;D.ExcoincialChainVoltaTestnet=GEe;D.ExosamaNetwork=R6e;D.ExpanseNetwork=Sbe;D.ExzoNetwork=x3e;D.EzchainCChain=Y6e;D.EzchainCChainTestnet=$6e;D.FXCoreNetwork=Wxe;D.Factory127=Iwe;D.FantasiaChain=w5e;D.FantomOpera=Rz;D.FantomTestnet=Oz;D.FastexChainTestnet=$4e;D.Filecoin=fxe;D.FilecoinButterflyTestnet=AEe;D.FilecoinCalibrationTestnet=V4e;D.FilecoinHyperspaceTestnet=sTe;D.FilecoinLocalTestnet=QEe;D.FilecoinWallabyTestnet=KCe;D.Findora=L6e;D.FindoraForge=q6e;D.FindoraTestnet=B6e;D.Firechain=Uxe;D.FirenzeTestNetwork=X8e;D.Flachain=KEe;D.Flare=qbe;D.FlareTestnetCoston=Fbe;D.FlareTestnetCoston2=wwe;D.Floripa=g8e;D.Fncy=U2e;D.FncyTestnet=bEe;D.FreightTrustNetwork=Ywe;D.Frenchain=p8e;D.FrenchainTestnet=Rxe;D.FrontierOfDreamsTestnet=CCe;D.Fuse=Ewe;D.FuseSparknet=kwe;D.Fusion=XCe;D.FusionTestnet=m8e;D.Ganache=VTe;D.GarizonStage0=rwe;D.GarizonStage1=nwe;D.GarizonStage2=awe;D.GarizonStage3=iwe;D.GarizonTestnetStage0=C5e;D.GarizonTestnetStage1=E5e;D.GarizonTestnetStage2=k5e;D.GarizonTestnetStage3=S5e;D.Gatechain=Y2e;D.GatechainTestnet=X2e;D.GatherDevnetNetwork=lke;D.GatherNetwork=nke;D.GatherTestnetNetwork=uke;D.GearZeroNetwork=Dxe;D.GearZeroNetworkTestnet=z4e;D.Genechain=Z2e;D.GenesisCoin=F_e;D.GenesisL1=Ybe;D.GenesisL1Testnet=Kbe;D.GiantMammoth=O_e;D.GitshockCartenzTestnet=n6e;D.Gnosis=uwe;D.Gochain=S2e;D.GochainTestnet=JCe;D.Godwoken=G8e;D.GodwokenTestnetV1=V8e;D.Goerli=Sz;D.GoldSmartChain=XTe;D.GoldSmartChainTestnet=Y8e;D.GonChain=K_e;D.Gooddata=r2e;D.GooddataTestnet=t2e;D.Gton=z5e;D.GtonTestnet=x8e;D.Haic=h5e;D.Halo=S3e;D.HammerChain=FCe;D.HaqqChainTestnet=C8e;D.HaqqNetwork=cCe;D.HaradevTestnet=Oke;D.HarmonyDevnetShard0=kke;D.HarmonyShard0=vke;D.HarmonyShard1=bke;D.HarmonyShard2=wke;D.HarmonyShard3=xke;D.HarmonyTestnetShard0=Tke;D.HarmonyTestnetShard1=_ke;D.HarmonyTestnetShard2=Cke;D.HarmonyTestnetShard3=Eke;D.HaymoTestnet=D4e;D.HazlorTestnet=o_e;D.HertzNetwork=WCe;D.HighPerformanceBlockchain=cxe;D.HomeVerse=kCe;D.HooSmartChain=q2e;D.HooSmartChainTestnet=jwe;D.Htmlcoin=ITe;D.Humanode=FTe;D.HuobiEcoChain=Pwe;D.HuobiEcoChainTestnet=ixe;D.HyperonchainTestnet=Mxe;D.Idchain=W2e;D.Imversed=MEe;D.ImversedTestnet=IEe;D.Iolite=jEe;D.IoraChain=y3e;D.IotexNetwork=PTe;D.IotexNetworkTestnet=RTe;D.IposNetwork=pke;D.IvarChain=e4e;D.IvarChainTestnet=_Ce;D.J2oTaro=$Ce;D.Jellie=L4e;D.JfinChain=hTe;D.JibchainL1=N_e;D.JoysDigital=XEe;D.JoysDigitalTestnet=rke;D.KaibaLightningChainTestnet=pwe;D.Kardiachain=Zbe;D.KaruraNetwork=t5e;D.KaruraNetworkTestnet=Jxe;D.KavaEvm=W6e;D.KavaEvmTestnet=U6e;D.Kcc=mxe;D.KccTestnet=yxe;D.Kekchain=Q4e;D.KekchainKektest=X4e;D.Kerleano=Y3e;D.Kiln=CEe;D.Kintsugi=_Ee;D.KlaytnCypress=g_e;D.KlaytnTestnetBaobab=H5e;D.Kortho=J6e;D.Korthotest=b_e;D.Kovan=d2e;D.Lachain=txe;D.LachainTestnet=rxe;D.LambdaTestnet=r4e;D.LatamBlockchainResilTestnet=zwe;D.Lightstreams=Fwe;D.LightstreamsTestnet=Dwe;D.Lisinski=Axe;D.LiveplexOracleevm=w8e;D.Localhost=Uz;D.LucidBlockchain=p5e;D.LuckyNetwork=W5e;D.Ludan=J3e;D.LycanChain=i5e;D.Maistestsubnet=YEe;D.Mammoth=R_e;D.Mantle=LTe;D.MantleTestnet=BTe;D.Map=NCe;D.MapMakalu=$we;D.Mas=q4e;D.Mathchain=h3e;D.MathchainTestnet=f3e;D.MdglTestnet=l_e;D.MemoSmartChain=F5e;D.MeshnyanTestnet=Xxe;D.Metacodechain=yTe;D.Metadium=Obe;D.MetadiumTestnet=Lbe;D.Metadot=xCe;D.MetadotTestnet=TCe;D.MetalCChain=J4e;D.MetalTahoeCChain=K4e;D.Metaplayerone=N6e;D.Meter=K2e;D.MeterTestnet=Q2e;D.MetisAndromeda=a3e;D.MetisGoerliTestnet=Qxe;D.MilkomedaA1=m6e;D.MilkomedaA1Testnet=M4e;D.MilkomedaC1=f6e;D.MilkomedaC1Testnet=A4e;D.MintmeComCoin=DCe;D.Mix=z2e;D.MixinVirtualMachine=J8e;D.Moac=i3e;D.MoacTestnet=Xwe;D.MolereumNetwork=qke;D.MoonbaseAlpha=I3e;D.Moonbeam=A3e;D.Moonriver=M3e;D.Moonrock=P3e;D.Multivac=L8e;D.Mumbai=Dz;D.MunodeTestnet=N5e;D.Musicoin=OEe;D.MyownTestnet=G_e;D.MythicalChain=N4e;D.Nahmii=WTe;D.NahmiiTestnet=jTe;D.Nebula=yke;D.NebulaStaging=dke;D.NebulaTestnet=mwe;D.NeonEvm=ike;D.NeonEvmDevnet=ake;D.NeonEvmTestnet=ske;D.NepalBlockchainNetwork=q5e;D.Newton=K5e;D.NewtonTestnet=G5e;D.NextSmartChain=owe;D.NovaNetwork=$2e;D.Ntity=Nke;D.Numbers=eCe;D.NumbersTestnet=tCe;D.OasisEmerald=u8e;D.OasisEmeraldTestnet=c8e;D.OasisSapphire=LCe;D.OasisSapphireTestnet=BCe;D.Oasischain=jCe;D.Oasys=axe;D.Octaspace=pEe;D.Oho=n8e;D.OkexchainTestnet=R2e;D.Okxchain=N2e;D.OmPlatform=E3e;D.Omax=hxe;D.Omchain=PCe;D.Oneledger=oke;D.OneledgerTestnetFrankenstein=Ike;D.Ontology=E2e;D.OntologyTestnet=GTe;D.OnusChain=c6e;D.OnusChainTestnet=i6e;D.Oort=O5e;D.OortAscraeus=B5e;D.OortDev=z_e;D.OortHuygens=L5e;D.OpalTestnetByUnique=A_e;D.Openchain=nEe;D.OpenchainTestnet=c5e;D.Openpiece=T2e;D.OpenpieceTestnet=Nwe;D.Openvessel=REe;D.OpsideTestnet=OCe;D.Optimism=Az;D.OptimismBedrockGoerliAlphaTestnet=zCe;D.OptimismGoerliTestnet=Nz;D.OptimismKovan=B2e;D.OptimismOnGnosis=dxe;D.OpulentXBeta=a8e;D.OrigintrailParachain=k6e;D.OrlandoChain=aTe;D.Oychain=Mwe;D.OychainTestnet=Awe;D.P12Chain=MCe;D.Palm=Rke;D.PalmTestnet=Pke;D.Pandoproject=fTe;D.PandoprojectTestnet=mTe;D.ParibuNet=dTe;D.ParibuNetTestnet=pTe;D.Pdc=Bke;D.Pegglecoin=i8e;D.PepchainChurchill=FEe;D.PhiNetworkV1=ATe;D.PhiNetworkV2=Lwe;D.Phoenix=gCe;D.PieceTestnet=HCe;D.Pirl=Mke;D.PixieChain=QTe;D.PixieChainTestnet=e5e;D.Planq=n_e;D.Platon=B4e;D.PlatonDevTestnet2=SEe;D.PlianMain=kEe;D.PlianSubchain1=LEe;D.PlianTestnetMain=WEe;D.PlianTestnetSubchain1=BEe;D.PoaNetworkCore=cwe;D.PoaNetworkSokol=H2e;D.Pocrnet=Q6e;D.Polis=Z4e;D.PolisTestnet=G4e;D.Polygon=Pz;D.PolygonZkevmTestnet=U3e;D.PolyjuiceTestnet=H8e;D.Polysmartchain=$Te;D.Popcateum=b3e;D.PortalFantasyChain=A5e;D.PortalFantasyChainTest=f5e;D.PosichainDevnetShard0=gEe;D.PosichainDevnetShard1=vEe;D.PosichainShard0=mEe;D.PosichainTestnetShard0=yEe;D.Primuschain=V2e;D.ProofOfMemes=ECe;D.ProtonTestnet=gwe;D.ProxyNetworkTestnet=t3e;D.Publicmint=x6e;D.PublicmintDevnet=b6e;D.PublicmintTestnet=w6e;D.Pulsechain=kxe;D.PulsechainTestnet=I5e;D.PulsechainTestnetV2b=P5e;D.PulsechainTestnetV3=R5e;D.Q=e8e;D.QTestnet=t8e;D.Qeasyweb3Testnet=j_e;D.Qitmeer=m5e;D.QitmeerNetworkTestnet=m_e;D.Ql1=o5e;D.Ql1Testnet=NEe;D.QuadransBlockchain=nCe;D.QuadransBlockchainTestnet=aCe;D.Quarkblockchain=HEe;D.QuarkchainDevnetRoot=g4e;D.QuarkchainDevnetShard0=v4e;D.QuarkchainDevnetShard1=b4e;D.QuarkchainDevnetShard2=w4e;D.QuarkchainDevnetShard3=x4e;D.QuarkchainDevnetShard4=T4e;D.QuarkchainDevnetShard5=_4e;D.QuarkchainDevnetShard6=C4e;D.QuarkchainDevnetShard7=E4e;D.QuarkchainRoot=i4e;D.QuarkchainShard0=s4e;D.QuarkchainShard1=o4e;D.QuarkchainShard2=c4e;D.QuarkchainShard3=u4e;D.QuarkchainShard4=l4e;D.QuarkchainShard5=d4e;D.QuarkchainShard6=p4e;D.QuarkchainShard7=h4e;D.QuartzByUnique=S_e;D.Quokkacoin=M6e;D.RabbitAnalogTestnetChain=$3e;D.RangersProtocol=E6e;D.RangersProtocolTestnetRobin=W_e;D.RedlightChain=X6e;D.ReiChain=E8e;D.ReiChainTestnet=k8e;D.ReiNetwork=y8e;D.Resincoin=K8e;D.RiniaTestnet=M5e;D.Rinkeby=Mbe;D.RiseOfTheWarbotsTestnet=s_e;D.Ropsten=Abe;D.Rsk=$be;D.RskTestnet=e2e;D.Rupaya=Nxe;D.Saakuru=PEe;D.SaakuruTestnet=W4e;D.Sakura=Q5e;D.SanrChain=dCe;D.SapphireByUnique=M_e;D.Sardis=T8e;D.SardisTestnet=lCe;D.Scroll=sEe;D.ScrollAlphaTestnet=oEe;D.ScrollPreAlphaTestnet=cEe;D.SeedcoinNetwork=s2e;D.Seele=Vwe;D.Sepolia=DEe;D.Setheum=sxe;D.ShardeumLiberty1X=d_e;D.ShardeumLiberty2X=p_e;D.ShardeumSphinx1X=h_e;D.Sherpax=j3e;D.SherpaxTestnet=z3e;D.Shibachain=Qbe;D.Shiden=wxe;D.Shyft=a_e;D.ShyftTestnet=uCe;D.SingularityZero=hCe;D.SingularityZeroTestnet=pCe;D.Siriusnet=D8e;D.SiriusnetV2=exe;D.Sjatsh=Q_e;D.SmartBitcoinCash=Z_e;D.SmartBitcoinCashTestnet=J_e;D.SmartHostTeknolojiTestnet=m3e;D.Smartmesh=zEe;D.SocialSmartChain=H4e;D.SongbirdCanaryNetwork=jbe;D.Soterone=L2e;D.Soverun=qEe;D.SoverunTestnet=f4e;D.Sps=mCe;D.SpsTestnet=bCe;D.StarSocialTestnet=r5e;D.StepNetwork=C3e;D.StepTestnet=fCe;D.Stratos=A6e;D.StratosTestnet=S6e;D.StreamuxBlockchain=f_e;D.SurBlockchainNetwork=oxe;D.Susono=vCe;D.SxNetwork=Ixe;D.SxNetworkTestnet=Yxe;D.Syscoin=C2e;D.SyscoinTanenbaumTestnet=HTe;D.TEkta=V5e;D.TaoNetwork=Hxe;D.Taraxa=g5e;D.TaraxaTestnet=v5e;D.Taycan=RCe;D.TaycanTestnet=C6e;D.Tbsi=Q3e;D.TbsiTestnet=X3e;D.TbwgChain=a2e;D.TcgVerse=G6e;D.Techpay=K6e;D.Teleport=c_e;D.TeleportTestnet=u_e;D.TelosEvm=u2e;D.TelosEvmTestnet=l2e;D.Teslafunds=r6e;D.Thaichain=Pbe;D.Thaichain20Thaifi=Ube;D.Theta=Txe;D.ThetaAmberTestnet=Cxe;D.ThetaSapphireTestnet=_xe;D.ThetaTestnet=Exe;D.ThinkiumChain0=U8e;D.ThinkiumChain1=W8e;D.ThinkiumChain103=z8e;D.ThinkiumChain2=j8e;D.ThinkiumTestnetChain0=A8e;D.ThinkiumTestnetChain1=M8e;D.ThinkiumTestnetChain103=P8e;D.ThinkiumTestnetChain2=I8e;D.Thundercore=ywe;D.ThundercoreTestnet=Wbe;D.TlchainNetwork=qTe;D.TmyChain=E_e;D.TokiNetwork=w_e;D.TokiTestnet=x_e;D.TombChain=YTe;D.Tomochain=ewe;D.TomochainTestnet=twe;D.ToolGlobal=T_e;D.ToolGlobalTestnet=__e;D.Top=U5e;D.TopEvm=D5e;D.Tres=KTe;D.TresTestnet=JTe;D.TrustEvmTestnet=wCe;D.UbSmartChain=a4e;D.UbSmartChainTestnet=n4e;D.Ubiq=Rbe;D.UbiqNetworkTestnet=Nbe;D.Ultron=_3e;D.UltronTestnet=T3e;D.UnicornUltraTestnet=c2e;D.Unique=k_e;D.UzmiNetwork=UTe;D.Valorbit=o2e;D.Vchain=j6e;D.Vela1Chain=zxe;D.VelasEvm=fwe;D.Venidium=OTe;D.VenidiumTestnet=NTe;D.VentionSmartChain=Q8e;D.VentionSmartChainTestnet=s5e;D.Vision=fEe;D.VisionVpioneerTestChain=lEe;D.VyvoSmartChain=P_e;D.Wagmi=sCe;D.Wanchain=_5e;D.WanchainTestnet=j5e;D.Web3gamesDevnet=hwe;D.Web3gamesTestnet=dwe;D.Web3q=vxe;D.Web3qGalileo=lTe;D.Web3qTestnet=uTe;D.Webchain=qCe;D.WeelinkTestnet=rEe;D.WegochainRubidium=ZTe;D.Wemix30=s3e;D.Wemix30Testnet=o3e;D.WorldTradeTechnicalChain=v3e;D.Xanachain=I_e;D.XdcApothemNetwork=b2e;D.Xerom=TEe;D.XinfinXdcNetwork=v2e;D.Xodex=Z6e;D.XtSmartChain=Fxe;D.Yuanchain=_Te;D.ZMainnet=v6e;D.ZTestnet=V_e;D.ZcoreTestnet=cTe;D.ZeethChain=Pxe;D.ZeethChainDev=b5e;D.Zeniq=Lke;D.Zenith=G2e;D.ZenithTestnetVilnius=J2e;D.Zetachain=e_e;D.ZetachainAthensTestnet=t_e;D.Zhejiang=EEe;D.ZksyncAlphaTestnet=uxe;D.ZksyncV2=gxe;D.Zyx=_2e;D._0xtade=$_e;D._4goodnetwork=hEe;D.allChains=Ajt;D.defaultChains=Sjt;D.getChainRPC=kjt;D.getChainRPCs=kbe});var Xqe=O(F=>{"use strict";x();T();Object.defineProperty(F,"__esModule",{value:!0});var Mjt={name:"Ethereum Mainnet",chain:"ETH",icon:{url:"ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/ethereum/512.png",height:512,width:512,format:"png",sizes:[512,256,128,64,32,16]},rpc:["https://ethereum.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.infura.io/v3/${INFURA_API_KEY}","wss://mainnet.infura.io/ws/v3/${INFURA_API_KEY}","https://api.mycryptoapi.com/eth","https://cloudflare-eth.com"],features:[{name:"EIP1559"},{name:"EIP155"}],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://ethereum.org",shortName:"eth",chainId:1,networkId:1,slip44:60,ens:{registry:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"},explorers:[{name:"etherscan",url:"https://etherscan.io",standard:"EIP3091"}],testnet:!1,slug:"ethereum"},Ijt={name:"Expanse Network",chain:"EXP",rpc:["https://node.expanse.tech"],faucets:[],nativeCurrency:{name:"Expanse Network Ether",symbol:"EXP",decimals:18},infoURL:"https://expanse.tech",shortName:"exp",chainId:2,networkId:1,slip44:40,testnet:!1,slug:"expanse-network"},Pjt={name:"Ropsten",title:"Ethereum Testnet Ropsten",chain:"ETH",rpc:["https://ropsten.infura.io/v3/${INFURA_API_KEY}","wss://ropsten.infura.io/ws/v3/${INFURA_API_KEY}"],faucets:["http://fauceth.komputing.org?chain=3&address=${ADDRESS}","https://faucet.ropsten.be?${ADDRESS}"],nativeCurrency:{name:"Ropsten Ether",symbol:"ETH",decimals:18},infoURL:"https://github.com/ethereum/ropsten",shortName:"rop",chainId:3,networkId:3,ens:{registry:"0x112234455c3a32fd11230c42e7bccd4a84e02010"},explorers:[{name:"etherscan",url:"https://ropsten.etherscan.io",standard:"EIP3091"}],testnet:!0,slug:"ropsten"},Rjt={name:"Rinkeby",title:"Ethereum Testnet Rinkeby",chain:"ETH",rpc:["https://rinkeby.infura.io/v3/${INFURA_API_KEY}","wss://rinkeby.infura.io/ws/v3/${INFURA_API_KEY}"],faucets:["http://fauceth.komputing.org?chain=4&address=${ADDRESS}","https://faucet.rinkeby.io"],nativeCurrency:{name:"Rinkeby Ether",symbol:"ETH",decimals:18},infoURL:"https://www.rinkeby.io",shortName:"rin",chainId:4,networkId:4,ens:{registry:"0xe7410170f87102df0055eb195163a03b7f2bff4a"},explorers:[{name:"etherscan-rinkeby",url:"https://rinkeby.etherscan.io",standard:"EIP3091"}],testnet:!0,slug:"rinkeby"},Njt={name:"Goerli",title:"Ethereum Testnet Goerli",chain:"ETH",rpc:["https://goerli.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://goerli.infura.io/v3/${INFURA_API_KEY}","wss://goerli.infura.io/v3/${INFURA_API_KEY}","https://rpc.goerli.mudit.blog/"],faucets:["https://faucet.goerli.mudit.blog","https://goerli-faucet.slock.it?address=${ADDRESS}","http://fauceth.komputing.org?chain=5&address=${ADDRESS}"],nativeCurrency:{name:"Goerli Ether",symbol:"ETH",decimals:18},infoURL:"https://goerli.net/#about",shortName:"gor",chainId:5,networkId:5,ens:{registry:"0x112234455c3a32fd11230c42e7bccd4a84e02010"},explorers:[{name:"etherscan-goerli",url:"https://goerli.etherscan.io",standard:"EIP3091"}],icon:{url:"ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/ethereum/512.png",height:512,width:512,format:"png",sizes:[512,256,128,64,32,16]},testnet:!0,slug:"goerli"},Ojt={name:"Ethereum Classic Testnet Kotti",chain:"ETC",rpc:["https://www.ethercluster.com/kotti"],faucets:[],nativeCurrency:{name:"Kotti Ether",symbol:"KOT",decimals:18},infoURL:"https://explorer.jade.builders/?network=kotti",shortName:"kot",chainId:6,networkId:6,testnet:!0,slug:"ethereum-classic-testnet-kotti"},Ljt={name:"ThaiChain",chain:"TCH",rpc:["https://rpc.dome.cloud","https://rpc.thaichain.org"],faucets:[],features:[{name:"EIP155"},{name:"EIP1559"}],nativeCurrency:{name:"ThaiChain Ether",symbol:"TCH",decimals:18},infoURL:"https://thaichain.io",shortName:"tch",chainId:7,networkId:7,explorers:[{name:"Thaichain Explorer",url:"https://exp.thaichain.org",standard:"EIP3091"}],testnet:!1,slug:"thaichain"},Bjt={name:"Ubiq",chain:"UBQ",rpc:["https://rpc.octano.dev","https://pyrus2.ubiqscan.io"],faucets:[],nativeCurrency:{name:"Ubiq Ether",symbol:"UBQ",decimals:18},infoURL:"https://ubiqsmart.com",shortName:"ubq",chainId:8,networkId:8,slip44:108,explorers:[{name:"ubiqscan",url:"https://ubiqscan.io",standard:"EIP3091"}],testnet:!1,slug:"ubiq"},qjt={name:"Ubiq Network Testnet",chain:"UBQ",rpc:[],faucets:[],nativeCurrency:{name:"Ubiq Testnet Ether",symbol:"TUBQ",decimals:18},infoURL:"https://ethersocial.org",shortName:"tubq",chainId:9,networkId:2,testnet:!0,slug:"ubiq-network-testnet"},Djt={name:"Optimism",chain:"ETH",rpc:["https://optimism.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.optimism.io/"],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://optimism.io",shortName:"oeth",chainId:10,networkId:10,explorers:[{name:"etherscan",url:"https://optimistic.etherscan.io",standard:"EIP3091"}],icon:{url:"ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/optimism/512.png",height:512,width:512,format:"png",sizes:[512,256,128,64,32,16]},testnet:!1,slug:"optimism"},Fjt={name:"Metadium Mainnet",chain:"META",rpc:["https://api.metadium.com/prod"],faucets:[],nativeCurrency:{name:"Metadium Mainnet Ether",symbol:"META",decimals:18},infoURL:"https://metadium.com",shortName:"meta",chainId:11,networkId:11,slip44:916,testnet:!1,slug:"metadium"},Ujt={name:"Metadium Testnet",chain:"META",rpc:["https://api.metadium.com/dev"],faucets:[],nativeCurrency:{name:"Metadium Testnet Ether",symbol:"KAL",decimals:18},infoURL:"https://metadium.com",shortName:"kal",chainId:12,networkId:12,testnet:!0,slug:"metadium-testnet"},Wjt={name:"Diode Testnet Staging",chain:"DIODE",rpc:["https://staging.diode.io:8443/","wss://staging.diode.io:8443/ws"],faucets:[],nativeCurrency:{name:"Staging Diodes",symbol:"sDIODE",decimals:18},infoURL:"https://diode.io/staging",shortName:"dstg",chainId:13,networkId:13,testnet:!0,slug:"diode-testnet-staging"},jjt={name:"Flare Mainnet",chain:"FLR",icon:{url:"ipfs://QmevAevHxRkK2zVct2Eu6Y7s38YC4SmiAiw9X7473pVtmL",width:382,height:382,format:"png"},rpc:["https://flare-api.flare.network/ext/C/rpc"],faucets:[],nativeCurrency:{name:"Flare",symbol:"FLR",decimals:18},infoURL:"https://flare.xyz",shortName:"flr",chainId:14,networkId:14,explorers:[{name:"blockscout",url:"https://flare-explorer.flare.network",standard:"EIP3091"}],testnet:!1,slug:"flare"},zjt={name:"Diode Prenet",chain:"DIODE",rpc:["https://prenet.diode.io:8443/","wss://prenet.diode.io:8443/ws"],faucets:[],nativeCurrency:{name:"Diodes",symbol:"DIODE",decimals:18},infoURL:"https://diode.io/prenet",shortName:"diode",chainId:15,networkId:15,testnet:!1,slug:"diode-prenet"},Hjt={name:"Flare Testnet Coston",chain:"FLR",icon:{url:"ipfs://QmW7Ljv2eLQ1poRrhJBaVWJBF1TyfZ8QYxDeELRo6sssrj",width:382,height:382,format:"png"},rpc:["https://coston-api.flare.network/ext/bc/C/rpc"],faucets:["https://faucet.towolabs.com","https://fauceth.komputing.org?chain=16&address=${ADDRESS}"],nativeCurrency:{name:"Coston Flare",symbol:"CFLR",decimals:18},infoURL:"https://flare.xyz",shortName:"cflr",chainId:16,networkId:16,explorers:[{name:"blockscout",url:"https://coston-explorer.flare.network",standard:"EIP3091"}],testnet:!0,slug:"flare-testnet-coston"},Vjt={name:"ThaiChain 2.0 ThaiFi",chain:"TCH",rpc:["https://rpc.thaifi.com"],faucets:[],nativeCurrency:{name:"Thaifi Ether",symbol:"TFI",decimals:18},infoURL:"https://exp.thaifi.com",shortName:"tfi",chainId:17,networkId:17,testnet:!1,slug:"thaichain-2-0-thaifi"},Gjt={name:"ThunderCore Testnet",chain:"TST",rpc:["https://testnet-rpc.thundercore.com"],faucets:["https://faucet-testnet.thundercore.com"],nativeCurrency:{name:"ThunderCore Testnet Token",symbol:"TST",decimals:18},infoURL:"https://thundercore.com",shortName:"TST",chainId:18,networkId:18,explorers:[{name:"thundercore-blockscout-testnet",url:"https://explorer-testnet.thundercore.com",standard:"EIP3091"}],testnet:!0,slug:"thundercore-testnet"},Zjt={name:"Songbird Canary-Network",chain:"SGB",icon:{url:"ipfs://QmXyvnrZY8FUxSULfnKKA99sAEkjAHtvhRx5WeHixgaEdu",width:382,height:382,format:"png"},rpc:["https://songbird-api.flare.network/ext/C/rpc","https://songbird.towolabs.com/ext/C/rpc","https://sgb.ftso.com.au/ext/bc/C/rpc","https://sgb.lightft.so/rpc","https://sgb-rpc.ftso.eu"],faucets:[],nativeCurrency:{name:"Songbird",symbol:"SGB",decimals:18},infoURL:"https://flare.xyz",shortName:"sgb",chainId:19,networkId:19,explorers:[{name:"blockscout",url:"https://songbird-explorer.flare.network",standard:"EIP3091"}],testnet:!1,slug:"songbird-canary-network"},Jjt={name:"Elastos Smart Chain",chain:"ETH",rpc:["https://api.elastos.io/eth"],faucets:["https://faucet.elastos.org/"],nativeCurrency:{name:"Elastos",symbol:"ELA",decimals:18},infoURL:"https://www.elastos.org/",shortName:"esc",chainId:20,networkId:20,explorers:[{name:"elastos esc explorer",url:"https://esc.elastos.io",standard:"EIP3091"}],testnet:!1,slug:"elastos-smart-chain"},Kjt={name:"Elastos Smart Chain Testnet",chain:"ETH",rpc:["https://api-testnet.elastos.io/eth"],faucets:["https://esc-faucet.elastos.io/"],nativeCurrency:{name:"Elastos",symbol:"tELA",decimals:18},infoURL:"https://www.elastos.org/",shortName:"esct",chainId:21,networkId:21,explorers:[{name:"elastos esc explorer",url:"https://esc-testnet.elastos.io",standard:"EIP3091"}],testnet:!0,slug:"elastos-smart-chain-testnet"},Qjt={name:"ELA-DID-Sidechain Mainnet",chain:"ETH",rpc:[],faucets:[],nativeCurrency:{name:"Elastos",symbol:"ELA",decimals:18},infoURL:"https://www.elastos.org/",shortName:"eladid",chainId:22,networkId:22,testnet:!1,slug:"ela-did-sidechain"},Xjt={name:"ELA-DID-Sidechain Testnet",chain:"ETH",rpc:[],faucets:[],nativeCurrency:{name:"Elastos",symbol:"tELA",decimals:18},infoURL:"https://elaeth.io/",shortName:"eladidt",chainId:23,networkId:23,testnet:!0,slug:"ela-did-sidechain-testnet"},Yjt={name:"KardiaChain Mainnet",chain:"KAI",icon:{url:"ipfs://QmXoHaZXJevc59GuzEgBhwRSH6kio1agMRvL8bD93pARRV",format:"png",width:297,height:297},rpc:["https://rpc.kardiachain.io"],faucets:[],nativeCurrency:{name:"KardiaChain",symbol:"KAI",decimals:18},infoURL:"https://kardiachain.io",shortName:"kardiachain",chainId:24,networkId:0,redFlags:["reusedChainId"],testnet:!1,slug:"kardiachain"},$jt={name:"Cronos Mainnet Beta",chain:"CRO",rpc:["https://evm.cronos.org"],features:[{name:"EIP1559"}],faucets:[],nativeCurrency:{name:"Cronos",symbol:"CRO",decimals:18},infoURL:"https://cronos.org/",shortName:"cro",chainId:25,networkId:25,explorers:[{name:"Cronos Explorer",url:"https://cronoscan.com",standard:"none"}],testnet:!1,slug:"cronos-beta"},ezt={name:"Genesis L1 testnet",chain:"genesis",rpc:["https://testrpc.genesisl1.org"],faucets:[],nativeCurrency:{name:"L1 testcoin",symbol:"L1test",decimals:18},infoURL:"https://www.genesisl1.com",shortName:"L1test",chainId:26,networkId:26,explorers:[{name:"Genesis L1 testnet explorer",url:"https://testnet.genesisl1.org",standard:"none"}],testnet:!0,slug:"genesis-l1-testnet"},tzt={name:"ShibaChain",chain:"SHIB",rpc:["https://rpc.shibachain.net"],faucets:[],nativeCurrency:{name:"SHIBA INU COIN",symbol:"SHIB",decimals:18},infoURL:"https://www.shibachain.net",shortName:"shib",chainId:27,networkId:27,explorers:[{name:"Shiba Explorer",url:"https://exp.shibachain.net",standard:"none"}],testnet:!1,slug:"shibachain"},rzt={name:"Boba Network Rinkeby Testnet",chain:"ETH",rpc:["https://rinkeby.boba.network/"],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://boba.network",shortName:"BobaRinkeby",chainId:28,networkId:28,explorers:[{name:"Blockscout",url:"https://blockexplorer.rinkeby.boba.network",standard:"none"}],parent:{type:"L2",chain:"eip155-4",bridges:[{url:"https://gateway.rinkeby.boba.network"}]},testnet:!0,slug:"boba-network-rinkeby-testnet"},nzt={name:"Genesis L1",chain:"genesis",rpc:["https://rpc.genesisl1.org"],faucets:[],nativeCurrency:{name:"L1 coin",symbol:"L1",decimals:18},infoURL:"https://www.genesisl1.com",shortName:"L1",chainId:29,networkId:29,explorers:[{name:"Genesis L1 blockchain explorer",url:"https://explorer.genesisl1.org",standard:"none"}],testnet:!1,slug:"genesis-l1"},azt={name:"RSK Mainnet",chain:"RSK",rpc:["https://public-node.rsk.co","https://mycrypto.rsk.co"],faucets:["https://faucet.rsk.co/"],nativeCurrency:{name:"Smart Bitcoin",symbol:"RBTC",decimals:18},infoURL:"https://rsk.co",shortName:"rsk",chainId:30,networkId:30,slip44:137,explorers:[{name:"RSK Explorer",url:"https://explorer.rsk.co",standard:"EIP3091"}],testnet:!1,slug:"rsk"},izt={name:"RSK Testnet",chain:"RSK",rpc:["https://public-node.testnet.rsk.co","https://mycrypto.testnet.rsk.co"],faucets:["https://faucet.rsk.co/"],nativeCurrency:{name:"Testnet Smart Bitcoin",symbol:"tRBTC",decimals:18},infoURL:"https://rsk.co",shortName:"trsk",chainId:31,networkId:31,explorers:[{name:"RSK Testnet Explorer",url:"https://explorer.testnet.rsk.co",standard:"EIP3091"}],testnet:!0,slug:"rsk-testnet"},szt={name:"GoodData Testnet",chain:"GooD",rpc:["https://test2.goodata.io"],faucets:[],nativeCurrency:{name:"GoodData Testnet Ether",symbol:"GooD",decimals:18},infoURL:"https://www.goodata.org",shortName:"GooDT",chainId:32,networkId:32,testnet:!0,slug:"gooddata-testnet"},ozt={name:"GoodData Mainnet",chain:"GooD",rpc:["https://rpc.goodata.io"],faucets:[],nativeCurrency:{name:"GoodData Mainnet Ether",symbol:"GooD",decimals:18},infoURL:"https://www.goodata.org",shortName:"GooD",chainId:33,networkId:33,testnet:!1,slug:"gooddata"},czt={name:"Dithereum Testnet",chain:"DTH",icon:{url:"ipfs://QmSHN5GtRGpMMpszSn1hF47ZSLRLqrLxWsQ48YYdJPyjLf",width:500,height:500,format:"png"},rpc:["https://node-testnet.dithereum.io"],faucets:["https://faucet.dithereum.org"],nativeCurrency:{name:"Dither",symbol:"DTH",decimals:18},infoURL:"https://dithereum.org",shortName:"dth",chainId:34,networkId:34,testnet:!0,slug:"dithereum-testnet"},uzt={name:"TBWG Chain",chain:"TBWG",rpc:["https://rpc.tbwg.io"],faucets:[],nativeCurrency:{name:"TBWG Ether",symbol:"TBG",decimals:18},infoURL:"https://tbwg.io",shortName:"tbwg",chainId:35,networkId:35,testnet:!1,slug:"tbwg-chain"},lzt={name:"Dxchain Mainnet",chain:"Dxchain",icon:{url:"ipfs://QmYBup5bWoBfkaHntbcgW8Ji7ncad7f53deJ4Q55z4PNQs",width:128,height:128,format:"png"},rpc:["https://mainnet.dxchain.com"],faucets:[],nativeCurrency:{name:"Dxchain",symbol:"DX",decimals:18},infoURL:"https://www.dxchain.com/",shortName:"dx",chainId:36,networkId:36,explorers:[{name:"dxscan",url:"https://dxscan.io",standard:"EIP3091"}],testnet:!1,slug:"dxchain"},dzt={name:"SeedCoin-Network",chain:"SeedCoin-Network",rpc:["https://node.seedcoin.network"],faucets:[],nativeCurrency:{name:"SeedCoin",symbol:"SEED",decimals:18},infoURL:"https://www.seedcoin.network/",shortName:"SEED",icon:{url:"ipfs://QmSchLvCCZjBzcv5n22v1oFDAc2yHJ42NERyjZeL9hBgrh",width:64,height:64,format:"png"},chainId:37,networkId:37,testnet:!1,slug:"seedcoin-network"},pzt={name:"Valorbit",chain:"VAL",rpc:["https://rpc.valorbit.com/v2"],faucets:[],nativeCurrency:{name:"Valorbit",symbol:"VAL",decimals:18},infoURL:"https://valorbit.com",shortName:"val",chainId:38,networkId:38,slip44:538,testnet:!1,slug:"valorbit"},hzt={name:"Unicorn Ultra Testnet",chain:"u2u",rpc:["https://rpc-testnet.uniultra.xyz"],faucets:["https://faucet.uniultra.xyz"],nativeCurrency:{name:"Unicorn Ultra",symbol:"U2U",decimals:18},infoURL:"https://uniultra.xyz",shortName:"u2u",chainId:39,networkId:39,icon:{url:"ipfs://QmcW64RgqQVHnNbVFyfaMNKt7dJvFqEbfEHZmeyeK8dpEa",width:512,height:512,format:"png"},explorers:[{icon:"u2u",name:"U2U Explorer",url:"https://testnet.uniultra.xyz",standard:"EIP3091"}],testnet:!0,slug:"unicorn-ultra-testnet"},fzt={name:"Telos EVM Mainnet",chain:"TLOS",rpc:["https://mainnet.telos.net/evm"],faucets:[],nativeCurrency:{name:"Telos",symbol:"TLOS",decimals:18},infoURL:"https://telos.net",shortName:"TelosEVM",chainId:40,networkId:40,explorers:[{name:"teloscan",url:"https://teloscan.io",standard:"EIP3091"}],testnet:!1,slug:"telos-evm"},mzt={name:"Telos EVM Testnet",chain:"TLOS",rpc:["https://testnet.telos.net/evm"],faucets:["https://app.telos.net/testnet/developers"],nativeCurrency:{name:"Telos",symbol:"TLOS",decimals:18},infoURL:"https://telos.net",shortName:"TelosEVMTestnet",chainId:41,networkId:41,testnet:!0,slug:"telos-evm-testnet"},yzt={name:"Kovan",title:"Ethereum Testnet Kovan",chain:"ETH",rpc:["https://kovan.poa.network","http://kovan.poa.network:8545","https://kovan.infura.io/v3/${INFURA_API_KEY}","wss://kovan.infura.io/ws/v3/${INFURA_API_KEY}","ws://kovan.poa.network:8546"],faucets:["http://fauceth.komputing.org?chain=42&address=${ADDRESS}","https://faucet.kovan.network","https://gitter.im/kovan-testnet/faucet"],nativeCurrency:{name:"Kovan Ether",symbol:"ETH",decimals:18},explorers:[{name:"etherscan",url:"https://kovan.etherscan.io",standard:"EIP3091"}],infoURL:"https://kovan-testnet.github.io/website",shortName:"kov",chainId:42,networkId:42,testnet:!0,slug:"kovan"},gzt={name:"Darwinia Pangolin Testnet",chain:"pangolin",rpc:["https://pangolin-rpc.darwinia.network"],faucets:["https://docs.crab.network/dvm/wallets/dvm-metamask#apply-for-the-test-token"],nativeCurrency:{name:"Pangolin Network Native Token",symbol:"PRING",decimals:18},infoURL:"https://darwinia.network/",shortName:"pangolin",chainId:43,networkId:43,explorers:[{name:"subscan",url:"https://pangolin.subscan.io",standard:"none"}],testnet:!0,slug:"darwinia-pangolin-testnet"},vzt={name:"Darwinia Crab Network",chain:"crab",rpc:["https://crab-rpc.darwinia.network"],faucets:[],nativeCurrency:{name:"Crab Network Native Token",symbol:"CRAB",decimals:18},infoURL:"https://crab.network/",shortName:"crab",chainId:44,networkId:44,explorers:[{name:"subscan",url:"https://crab.subscan.io",standard:"none"}],testnet:!1,slug:"darwinia-crab-network"},bzt={name:"Darwinia Pangoro Testnet",chain:"pangoro",rpc:["https://pangoro-rpc.darwinia.network"],faucets:[],nativeCurrency:{name:"Pangoro Network Native Token",symbol:"ORING",decimals:18},infoURL:"https://darwinia.network/",shortName:"pangoro",chainId:45,networkId:45,explorers:[{name:"subscan",url:"https://pangoro.subscan.io",standard:"none"}],testnet:!0,slug:"darwinia-pangoro-testnet"},wzt={name:"Darwinia Network",chain:"darwinia",rpc:["https://rpc.darwinia.network"],faucets:[],nativeCurrency:{name:"Darwinia Network Native Token",symbol:"RING",decimals:18},infoURL:"https://darwinia.network/",shortName:"darwinia",chainId:46,networkId:46,explorers:[{name:"subscan",url:"https://darwinia.subscan.io",standard:"none"}],testnet:!1,slug:"darwinia-network"},xzt={name:"Ennothem Mainnet Proterozoic",chain:"ETMP",rpc:["https://rpc.etm.network"],faucets:[],nativeCurrency:{name:"Ennothem",symbol:"ETMP",decimals:18},infoURL:"https://etm.network",shortName:"etmp",chainId:48,networkId:48,icon:{url:"ipfs://QmT7DTqT1V2y42pRpt3sj9ifijfmbtkHN7D2vTfAUAS622",width:512,height:512,format:"png"},explorers:[{name:"etmpscan",url:"https://etmscan.network",icon:"etmp",standard:"EIP3091"}],testnet:!1,slug:"ennothem-proterozoic"},Tzt={name:"Ennothem Testnet Pioneer",chain:"ETMP",rpc:["https://rpc.pioneer.etm.network"],faucets:[],nativeCurrency:{name:"Ennothem",symbol:"ETMP",decimals:18},infoURL:"https://etm.network",shortName:"etmpTest",chainId:49,networkId:49,icon:{url:"ipfs://QmT7DTqT1V2y42pRpt3sj9ifijfmbtkHN7D2vTfAUAS622",width:512,height:512,format:"png"},explorers:[{name:"etmp",url:"https://pioneer.etmscan.network",icon:"etmpscan",standard:"EIP3091"}],testnet:!0,slug:"ennothem-testnet-pioneer"},_zt={name:"XinFin XDC Network",chain:"XDC",rpc:["https://erpc.xinfin.network","https://rpc.xinfin.network","https://rpc1.xinfin.network"],faucets:[],nativeCurrency:{name:"XinFin",symbol:"XDC",decimals:18},infoURL:"https://xinfin.org",shortName:"xdc",chainId:50,networkId:50,icon:{url:"ipfs://QmeRq7pabiJE2n1xU3Y5Mb4TZSX9kQ74x7a3P2Z4PqcMRX",width:1450,height:1450,format:"png"},explorers:[{name:"xdcscan",url:"https://xdcscan.io",icon:"blocksscan",standard:"EIP3091"},{name:"blocksscan",url:"https://xdc.blocksscan.io",icon:"blocksscan",standard:"EIP3091"}],testnet:!1,slug:"xinfin-xdc-network"},Czt={name:"XDC Apothem Network",chain:"XDC",rpc:["https://rpc.apothem.network","https://erpc.apothem.network"],faucets:["https://faucet.apothem.network"],nativeCurrency:{name:"XinFin",symbol:"TXDC",decimals:18},infoURL:"https://xinfin.org",shortName:"txdc",chainId:51,networkId:51,icon:{url:"ipfs://QmeRq7pabiJE2n1xU3Y5Mb4TZSX9kQ74x7a3P2Z4PqcMRX",width:1450,height:1450,format:"png"},explorers:[{name:"xdcscan",url:"https://apothem.xinfinscan.com",icon:"blocksscan",standard:"EIP3091"},{name:"blocksscan",url:"https://apothem.blocksscan.io",icon:"blocksscan",standard:"EIP3091"}],testnet:!1,slug:"xdc-apothem-network"},Ezt={name:"CoinEx Smart Chain Mainnet",chain:"CSC",rpc:["https://rpc.coinex.net"],faucets:[],nativeCurrency:{name:"CoinEx Chain Native Token",symbol:"cet",decimals:18},infoURL:"https://www.coinex.org/",shortName:"cet",chainId:52,networkId:52,explorers:[{name:"coinexscan",url:"https://www.coinex.net",standard:"none"}],testnet:!1,slug:"coinex-smart-chain"},kzt={name:"CoinEx Smart Chain Testnet",chain:"CSC",rpc:["https://testnet-rpc.coinex.net/"],faucets:[],nativeCurrency:{name:"CoinEx Chain Test Native Token",symbol:"cett",decimals:18},infoURL:"https://www.coinex.org/",shortName:"tcet",chainId:53,networkId:53,explorers:[{name:"coinexscan",url:"https://testnet.coinex.net",standard:"none"}],testnet:!0,slug:"coinex-smart-chain-testnet"},Szt={name:"Openpiece Mainnet",chain:"OPENPIECE",icon:{url:"ipfs://QmVTahJkdSH3HPYsJMK2GmqfWZjLyxE7cXy1aHEnHU3vp2",width:250,height:250,format:"png"},rpc:["https://mainnet.openpiece.io"],faucets:[],nativeCurrency:{name:"Belly",symbol:"BELLY",decimals:18},infoURL:"https://cryptopiece.online",shortName:"OP",chainId:54,networkId:54,explorers:[{name:"Belly Scan",url:"https://bellyscan.com",standard:"none"}],testnet:!1,slug:"openpiece"},Azt={name:"Zyx Mainnet",chain:"ZYX",rpc:["https://rpc-1.zyx.network/","https://rpc-2.zyx.network/","https://rpc-3.zyx.network/","https://rpc-4.zyx.network/","https://rpc-5.zyx.network/","https://rpc-6.zyx.network/"],faucets:[],nativeCurrency:{name:"Zyx",symbol:"ZYX",decimals:18},infoURL:"https://zyx.network/",shortName:"ZYX",chainId:55,networkId:55,explorers:[{name:"zyxscan",url:"https://zyxscan.com",standard:"none"}],testnet:!1,slug:"zyx"},Mzt={name:"Binance Smart Chain Mainnet",chain:"BSC",rpc:["https://binance.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://bsc-dataseed1.binance.org","https://bsc-dataseed2.binance.org","https://bsc-dataseed3.binance.org","https://bsc-dataseed4.binance.org","https://bsc-dataseed1.defibit.io","https://bsc-dataseed2.defibit.io","https://bsc-dataseed3.defibit.io","https://bsc-dataseed4.defibit.io","https://bsc-dataseed1.ninicoin.io","https://bsc-dataseed2.ninicoin.io","https://bsc-dataseed3.ninicoin.io","https://bsc-dataseed4.ninicoin.io","wss://bsc-ws-node.nariox.org"],faucets:["https://free-online-app.com/faucet-for-eth-evm-chains/"],nativeCurrency:{name:"Binance Chain Native Token",symbol:"BNB",decimals:18},infoURL:"https://www.binance.org",shortName:"bnb",chainId:56,networkId:56,slip44:714,explorers:[{name:"bscscan",url:"https://bscscan.com",standard:"EIP3091"}],icon:{url:"ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/binance-coin/512.png",height:512,width:512,format:"png",sizes:[512,256,128,64,32,16]},testnet:!1,slug:"binance-smart-chain"},Izt={name:"Syscoin Mainnet",chain:"SYS",rpc:["https://rpc.syscoin.org","wss://rpc.syscoin.org/wss"],faucets:["https://faucet.syscoin.org"],nativeCurrency:{name:"Syscoin",symbol:"SYS",decimals:18},infoURL:"https://www.syscoin.org",shortName:"sys",chainId:57,networkId:57,explorers:[{name:"Syscoin Block Explorer",url:"https://explorer.syscoin.org",standard:"EIP3091"}],testnet:!1,slug:"syscoin"},Pzt={name:"Ontology Mainnet",chain:"Ontology",icon:{url:"ipfs://bafkreigmvn6spvbiirtutowpq6jmetevbxoof5plzixjoerbeswy4htfb4",width:400,height:400,format:"png"},rpc:["http://dappnode1.ont.io:20339","http://dappnode2.ont.io:20339","http://dappnode3.ont.io:20339","http://dappnode4.ont.io:20339","https://dappnode1.ont.io:10339","https://dappnode2.ont.io:10339","https://dappnode3.ont.io:10339","https://dappnode4.ont.io:10339"],faucets:[],nativeCurrency:{name:"ONG",symbol:"ONG",decimals:18},infoURL:"https://ont.io/",shortName:"OntologyMainnet",chainId:58,networkId:58,explorers:[{name:"explorer",url:"https://explorer.ont.io",standard:"EIP3091"}],testnet:!1,slug:"ontology"},Rzt={name:"EOS Mainnet",chain:"EOS",rpc:["https://api.eosargentina.io"],faucets:[],nativeCurrency:{name:"EOS",symbol:"EOS",decimals:18},infoURL:"https://eoscommunity.org/",shortName:"EOSMainnet",chainId:59,networkId:59,explorers:[{name:"bloks",url:"https://bloks.eosargentina.io",standard:"EIP3091"}],testnet:!1,slug:"eos"},Nzt={name:"GoChain",chain:"GO",rpc:["https://rpc.gochain.io"],faucets:["https://free-online-app.com/faucet-for-eth-evm-chains/"],nativeCurrency:{name:"GoChain Ether",symbol:"GO",decimals:18},infoURL:"https://gochain.io",shortName:"go",chainId:60,networkId:60,slip44:6060,explorers:[{name:"GoChain Explorer",url:"https://explorer.gochain.io",standard:"EIP3091"}],testnet:!1,slug:"gochain"},Ozt={name:"Ethereum Classic Mainnet",chain:"ETC",rpc:["https://www.ethercluster.com/etc"],faucets:["https://free-online-app.com/faucet-for-eth-evm-chains/?"],nativeCurrency:{name:"Ethereum Classic Ether",symbol:"ETC",decimals:18},infoURL:"https://ethereumclassic.org",shortName:"etc",chainId:61,networkId:1,slip44:61,explorers:[{name:"blockscout",url:"https://blockscout.com/etc/mainnet",standard:"none"}],testnet:!1,slug:"ethereum-classic"},Lzt={name:"Ethereum Classic Testnet Morden",chain:"ETC",rpc:[],faucets:[],nativeCurrency:{name:"Ethereum Classic Testnet Ether",symbol:"TETC",decimals:18},infoURL:"https://ethereumclassic.org",shortName:"tetc",chainId:62,networkId:2,testnet:!0,slug:"ethereum-classic-testnet-morden"},Bzt={name:"Ethereum Classic Testnet Mordor",chain:"ETC",rpc:["https://www.ethercluster.com/mordor"],faucets:[],nativeCurrency:{name:"Mordor Classic Testnet Ether",symbol:"METC",decimals:18},infoURL:"https://github.com/eth-classic/mordor/",shortName:"metc",chainId:63,networkId:7,testnet:!0,slug:"ethereum-classic-testnet-mordor"},qzt={name:"Ellaism",chain:"ELLA",rpc:["https://jsonrpc.ellaism.org"],faucets:[],nativeCurrency:{name:"Ellaism Ether",symbol:"ELLA",decimals:18},infoURL:"https://ellaism.org",shortName:"ellaism",chainId:64,networkId:64,slip44:163,testnet:!1,slug:"ellaism"},Dzt={name:"OKExChain Testnet",chain:"okexchain",rpc:["https://exchaintestrpc.okex.org"],faucets:["https://www.okex.com/drawdex"],nativeCurrency:{name:"OKExChain Global Utility Token in testnet",symbol:"OKT",decimals:18},infoURL:"https://www.okex.com/okexchain",shortName:"tokt",chainId:65,networkId:65,explorers:[{name:"OKLink",url:"https://www.oklink.com/okexchain-test",standard:"EIP3091"}],testnet:!0,slug:"okexchain-testnet"},Fzt={name:"OKXChain Mainnet",chain:"okxchain",rpc:["https://exchainrpc.okex.org","https://okc-mainnet.gateway.pokt.network/v1/lb/6275309bea1b320039c893ff"],faucets:["https://free-online-app.com/faucet-for-eth-evm-chains/?"],nativeCurrency:{name:"OKXChain Global Utility Token",symbol:"OKT",decimals:18},infoURL:"https://www.okex.com/okc",shortName:"okt",chainId:66,networkId:66,explorers:[{name:"OKLink",url:"https://www.oklink.com/en/okc",standard:"EIP3091"}],testnet:!1,slug:"okxchain"},Uzt={name:"DBChain Testnet",chain:"DBM",rpc:["http://test-rpc.dbmbp.com"],faucets:[],nativeCurrency:{name:"DBChain Testnet",symbol:"DBM",decimals:18},infoURL:"http://test.dbmbp.com",shortName:"dbm",chainId:67,networkId:67,testnet:!0,slug:"dbchain-testnet"},Wzt={name:"SoterOne Mainnet",chain:"SOTER",rpc:["https://rpc.soter.one"],faucets:[],nativeCurrency:{name:"SoterOne Mainnet Ether",symbol:"SOTER",decimals:18},infoURL:"https://www.soterone.com",shortName:"SO1",chainId:68,networkId:68,testnet:!1,slug:"soterone"},jzt={name:"Optimism Kovan",title:"Optimism Testnet Kovan",chain:"ETH",rpc:["https://kovan.optimism.io/"],faucets:["http://fauceth.komputing.org?chain=69&address=${ADDRESS}"],nativeCurrency:{name:"Kovan Ether",symbol:"ETH",decimals:18},explorers:[{name:"etherscan",url:"https://kovan-optimistic.etherscan.io",standard:"EIP3091"}],infoURL:"https://optimism.io",shortName:"okov",chainId:69,networkId:69,testnet:!0,slug:"optimism-kovan"},zzt={name:"Hoo Smart Chain",chain:"HSC",rpc:["https://http-mainnet.hoosmartchain.com","https://http-mainnet2.hoosmartchain.com","wss://ws-mainnet.hoosmartchain.com","wss://ws-mainnet2.hoosmartchain.com"],faucets:[],nativeCurrency:{name:"Hoo Smart Chain Native Token",symbol:"HOO",decimals:18},infoURL:"https://www.hoosmartchain.com",shortName:"hsc",chainId:70,networkId:70,slip44:1170,explorers:[{name:"hooscan",url:"https://www.hooscan.com",standard:"EIP3091"}],testnet:!1,slug:"hoo-smart-chain"},Hzt={name:"Conflux eSpace (Testnet)",chain:"Conflux",rpc:["https://evmtestnet.confluxrpc.com"],faucets:["https://faucet.confluxnetwork.org"],nativeCurrency:{name:"CFX",symbol:"CFX",decimals:18},infoURL:"https://confluxnetwork.org",shortName:"cfxtest",chainId:71,networkId:71,icon:{url:"ipfs://bafkreifj7n24u2dslfijfihwqvpdeigt5aj3k3sxv6s35lv75sxsfr3ojy",width:460,height:576,format:"png"},explorers:[{name:"Conflux Scan",url:"https://evmtestnet.confluxscan.net",standard:"none"}],testnet:!0,slug:"conflux-espace-testnet"},Vzt={name:"DxChain Testnet",chain:"DxChain",rpc:["https://testnet-http.dxchain.com"],faucets:["https://faucet.dxscan.io"],nativeCurrency:{name:"DxChain Testnet",symbol:"DX",decimals:18},infoURL:"https://testnet.dxscan.io/",shortName:"dxc",chainId:72,networkId:72,testnet:!0,slug:"dxchain-testnet"},Gzt={name:"FNCY",chain:"FNCY",rpc:["https://fncy-seed1.fncy.world"],faucets:["https://faucet-testnet.fncy.world"],nativeCurrency:{name:"FNCY",symbol:"FNCY",decimals:18},infoURL:"https://fncyscan.fncy.world",shortName:"FNCY",chainId:73,networkId:73,icon:{url:"ipfs://QmfXCh6UnaEHn3Evz7RFJ3p2ggJBRm9hunDHegeoquGuhD",width:256,height:256,format:"png"},explorers:[{name:"fncy scan",url:"https://fncyscan.fncy.world",icon:"fncy",standard:"EIP3091"}],testnet:!0,slug:"fncy"},Zzt={name:"IDChain Mainnet",chain:"IDChain",rpc:["https://idchain.one/rpc/","wss://idchain.one/ws/"],faucets:[],nativeCurrency:{name:"EIDI",symbol:"EIDI",decimals:18},infoURL:"https://idchain.one/begin/",shortName:"idchain",chainId:74,networkId:74,icon:{url:"ipfs://QmZVwsY6HPXScKqZCA9SWNrr4jrQAHkPhVhMWi6Fj1DsrJ",width:162,height:129,format:"png"},explorers:[{name:"explorer",url:"https://explorer.idchain.one",icon:"etherscan",standard:"EIP3091"}],testnet:!1,slug:"idchain"},Jzt={name:"Decimal Smart Chain Mainnet",chain:"DSC",rpc:["https://node.decimalchain.com/web3"],faucets:[],nativeCurrency:{name:"Decimal",symbol:"DEL",decimals:18},features:[{name:"EIP155"},{name:"EIP1559"}],infoURL:"https://decimalchain.com",shortName:"DSC",chainId:75,networkId:75,icon:{url:"ipfs://QmSgzwKnJJjys3Uq2aVVdwJ3NffLj3CXMVCph9uByTBegc",width:256,height:256,format:"png"},explorers:[{name:"DSC Explorer Mainnet",url:"https://explorer.decimalchain.com",icon:"dsc",standard:"EIP3091"}],testnet:!1,slug:"decimal-smart-chain"},Kzt={name:"Mix",chain:"MIX",rpc:["https://rpc2.mix-blockchain.org:8647"],faucets:[],nativeCurrency:{name:"Mix Ether",symbol:"MIX",decimals:18},infoURL:"https://mix-blockchain.org",shortName:"mix",chainId:76,networkId:76,slip44:76,testnet:!1,slug:"mix"},Qzt={name:"POA Network Sokol",chain:"POA",rpc:["https://sokol.poa.network","wss://sokol.poa.network/wss","ws://sokol.poa.network:8546"],faucets:["https://faucet.poa.network"],nativeCurrency:{name:"POA Sokol Ether",symbol:"SPOA",decimals:18},infoURL:"https://poa.network",shortName:"spoa",chainId:77,networkId:77,explorers:[{name:"blockscout",url:"https://blockscout.com/poa/sokol",standard:"none"}],testnet:!1,slug:"poa-network-sokol"},Xzt={name:"PrimusChain mainnet",chain:"PC",rpc:["https://ethnode.primusmoney.com/mainnet"],faucets:[],nativeCurrency:{name:"Primus Ether",symbol:"PETH",decimals:18},infoURL:"https://primusmoney.com",shortName:"primuschain",chainId:78,networkId:78,testnet:!1,slug:"primuschain"},Yzt={name:"Zenith Mainnet",chain:"Zenith",rpc:["https://dataserver-us-1.zenithchain.co/","https://dataserver-asia-3.zenithchain.co/","https://dataserver-asia-4.zenithchain.co/","https://dataserver-asia-2.zenithchain.co/","https://dataserver-asia-5.zenithchain.co/","https://dataserver-asia-6.zenithchain.co/","https://dataserver-asia-7.zenithchain.co/"],faucets:[],nativeCurrency:{name:"ZENITH",symbol:"ZENITH",decimals:18},infoURL:"https://www.zenithchain.co/",chainId:79,networkId:79,shortName:"zenith",explorers:[{name:"zenith scan",url:"https://scan.zenithchain.co",standard:"EIP3091"}],testnet:!1,slug:"zenith"},$zt={name:"GeneChain",chain:"GeneChain",rpc:["https://rpc.genechain.io"],faucets:[],nativeCurrency:{name:"RNA",symbol:"RNA",decimals:18},infoURL:"https://scan.genechain.io/",shortName:"GeneChain",chainId:80,networkId:80,explorers:[{name:"GeneChain Scan",url:"https://scan.genechain.io",standard:"EIP3091"}],testnet:!1,slug:"genechain"},eHt={name:"Zenith Testnet (Vilnius)",chain:"Zenith",rpc:["https://vilnius.zenithchain.co/http"],faucets:["https://faucet.zenithchain.co/"],nativeCurrency:{name:"Vilnius",symbol:"VIL",decimals:18},infoURL:"https://www.zenithchain.co/",chainId:81,networkId:81,shortName:"VIL",explorers:[{name:"vilnius scan",url:"https://vilnius.scan.zenithchain.co",standard:"EIP3091"}],testnet:!0,slug:"zenith-testnet-vilnius"},tHt={name:"Meter Mainnet",chain:"METER",rpc:["https://rpc.meter.io"],faucets:["https://faucet.meter.io"],nativeCurrency:{name:"Meter",symbol:"MTR",decimals:18},infoURL:"https://www.meter.io",shortName:"Meter",chainId:82,networkId:82,explorers:[{name:"Meter Mainnet Scan",url:"https://scan.meter.io",standard:"EIP3091"}],testnet:!1,slug:"meter"},rHt={name:"Meter Testnet",chain:"METER Testnet",rpc:["https://rpctest.meter.io"],faucets:["https://faucet-warringstakes.meter.io"],nativeCurrency:{name:"Meter",symbol:"MTR",decimals:18},infoURL:"https://www.meter.io",shortName:"MeterTest",chainId:83,networkId:83,explorers:[{name:"Meter Testnet Scan",url:"https://scan-warringstakes.meter.io",standard:"EIP3091"}],testnet:!0,slug:"meter-testnet"},nHt={name:"GateChain Testnet",chainId:85,shortName:"gttest",chain:"GTTEST",networkId:85,nativeCurrency:{name:"GateToken",symbol:"GT",decimals:18},rpc:["https://testnet.gatenode.cc"],faucets:["https://www.gatescan.org/testnet/faucet"],explorers:[{name:"GateScan",url:"https://www.gatescan.org/testnet",standard:"EIP3091"}],infoURL:"https://www.gatechain.io",testnet:!0,slug:"gatechain-testnet"},aHt={name:"GateChain Mainnet",chainId:86,shortName:"gt",chain:"GT",networkId:86,nativeCurrency:{name:"GateToken",symbol:"GT",decimals:18},rpc:["https://evm.gatenode.cc"],faucets:["https://www.gatescan.org/faucet"],explorers:[{name:"GateScan",url:"https://www.gatescan.org",standard:"EIP3091"}],infoURL:"https://www.gatechain.io",testnet:!1,slug:"gatechain"},iHt={name:"Nova Network",chain:"NNW",icon:{url:"ipfs://QmTTamJ55YGQwMboq4aqf3JjTEy5WDtjo4GBRQ5VdsWA6U",width:512,height:512,format:"png"},rpc:["https://connect.novanetwork.io","https://0x57.redjackstudio.com","https://rpc.novanetwork.io:9070"],faucets:[],nativeCurrency:{name:"Supernova",symbol:"SNT",decimals:18},infoURL:"https://novanetwork.io",shortName:"nnw",chainId:87,networkId:87,explorers:[{name:"novanetwork",url:"https://explorer.novanetwork.io",standard:"EIP3091"}],testnet:!1,slug:"nova-network"},sHt={name:"TomoChain",chain:"TOMO",rpc:["https://rpc.tomochain.com"],faucets:[],nativeCurrency:{name:"TomoChain",symbol:"TOMO",decimals:18},infoURL:"https://tomochain.com",shortName:"tomo",chainId:88,networkId:88,slip44:889,testnet:!1,slug:"tomochain"},oHt={name:"TomoChain Testnet",chain:"TOMO",rpc:["https://rpc.testnet.tomochain.com"],faucets:[],nativeCurrency:{name:"TomoChain",symbol:"TOMO",decimals:18},infoURL:"https://tomochain.com",shortName:"tomot",chainId:89,networkId:89,slip44:889,testnet:!0,slug:"tomochain-testnet"},cHt={name:"Garizon Stage0",chain:"GAR",icon:{url:"ipfs://QmW3WRyuLZ95K8hvV2QN6rP5yWY98sSzWyVUxD2eUjXGrc",width:1024,height:613,format:"png"},rpc:["https://s0.garizon.net/rpc"],faucets:[],nativeCurrency:{name:"Garizon",symbol:"GAR",decimals:18},infoURL:"https://garizon.com",shortName:"gar-s0",chainId:90,networkId:90,explorers:[{name:"explorer",url:"https://explorer.garizon.com",icon:"garizon",standard:"EIP3091"}],testnet:!1,slug:"garizon-stage0"},uHt={name:"Garizon Stage1",chain:"GAR",icon:{url:"ipfs://QmW3WRyuLZ95K8hvV2QN6rP5yWY98sSzWyVUxD2eUjXGrc",width:1024,height:613,format:"png"},rpc:["https://s1.garizon.net/rpc"],faucets:[],nativeCurrency:{name:"Garizon",symbol:"GAR",decimals:18},infoURL:"https://garizon.com",shortName:"gar-s1",chainId:91,networkId:91,explorers:[{name:"explorer",url:"https://explorer.garizon.com",icon:"garizon",standard:"EIP3091"}],parent:{chain:"eip155-90",type:"shard"},testnet:!1,slug:"garizon-stage1"},lHt={name:"Garizon Stage2",chain:"GAR",icon:{url:"ipfs://QmW3WRyuLZ95K8hvV2QN6rP5yWY98sSzWyVUxD2eUjXGrc",width:1024,height:613,format:"png"},rpc:["https://s2.garizon.net/rpc"],faucets:[],nativeCurrency:{name:"Garizon",symbol:"GAR",decimals:18},infoURL:"https://garizon.com",shortName:"gar-s2",chainId:92,networkId:92,explorers:[{name:"explorer",url:"https://explorer.garizon.com",icon:"garizon",standard:"EIP3091"}],parent:{chain:"eip155-90",type:"shard"},testnet:!1,slug:"garizon-stage2"},dHt={name:"Garizon Stage3",chain:"GAR",icon:{url:"ipfs://QmW3WRyuLZ95K8hvV2QN6rP5yWY98sSzWyVUxD2eUjXGrc",width:1024,height:613,format:"png"},rpc:["https://s3.garizon.net/rpc"],faucets:[],nativeCurrency:{name:"Garizon",symbol:"GAR",decimals:18},infoURL:"https://garizon.com",shortName:"gar-s3",chainId:93,networkId:93,explorers:[{name:"explorer",url:"https://explorer.garizon.com",icon:"garizon",standard:"EIP3091"}],parent:{chain:"eip155-90",type:"shard"},testnet:!1,slug:"garizon-stage3"},pHt={name:"CryptoKylin Testnet",chain:"EOS",rpc:["https://kylin.eosargentina.io"],faucets:[],nativeCurrency:{name:"EOS",symbol:"EOS",decimals:18},infoURL:"https://www.cryptokylin.io/",shortName:"KylinTestnet",chainId:95,networkId:95,explorers:[{name:"eosq",url:"https://kylin.eosargentina.io",standard:"EIP3091"}],testnet:!0,slug:"cryptokylin-testnet"},hHt={name:"NEXT Smart Chain",chain:"NSC",rpc:["https://rpc.nextsmartchain.com"],faucets:["https://faucet.nextsmartchain.com"],nativeCurrency:{name:"NEXT",symbol:"NEXT",decimals:18},infoURL:"https://www.nextsmartchain.com/",shortName:"nsc",chainId:96,networkId:96,explorers:[{name:"Next Smart Chain Explorer",url:"https://explorer.nextsmartchain.com",standard:"none"}],testnet:!1,slug:"next-smart-chain"},fHt={name:"Binance Smart Chain Testnet",chain:"BSC",rpc:["https://binance-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://data-seed-prebsc-1-s1.binance.org:8545","https://data-seed-prebsc-2-s1.binance.org:8545","https://data-seed-prebsc-1-s2.binance.org:8545","https://data-seed-prebsc-2-s2.binance.org:8545","https://data-seed-prebsc-1-s3.binance.org:8545","https://data-seed-prebsc-2-s3.binance.org:8545"],faucets:["https://testnet.binance.org/faucet-smart"],nativeCurrency:{name:"Binance Chain Native Token",symbol:"tBNB",decimals:18},infoURL:"https://testnet.binance.org/",shortName:"bnbt",chainId:97,networkId:97,explorers:[{name:"bscscan-testnet",url:"https://testnet.bscscan.com",standard:"EIP3091"}],icon:{url:"ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/binance-coin/512.png",height:512,width:512,format:"png",sizes:[512,256,128,64,32,16]},testnet:!0,slug:"binance-smart-chain-testnet"},mHt={name:"POA Network Core",chain:"POA",rpc:["https://core.poa.network"],faucets:[],nativeCurrency:{name:"POA Network Core Ether",symbol:"POA",decimals:18},infoURL:"https://poa.network",shortName:"poa",chainId:99,networkId:99,slip44:178,explorers:[{name:"blockscout",url:"https://blockscout.com/poa/core",standard:"none"}],testnet:!1,slug:"poa-network-core"},yHt={name:"Gnosis",chain:"GNO",icon:{url:"ipfs://bafybeidk4swpgdyqmpz6shd5onvpaujvwiwthrhypufnwr6xh3dausz2dm",width:1800,height:1800,format:"png"},rpc:["https://rpc.gnosischain.com","https://rpc.ankr.com/gnosis","https://gnosischain-rpc.gateway.pokt.network","https://gnosis-mainnet.public.blastapi.io","wss://rpc.gnosischain.com/wss"],faucets:["https://gnosisfaucet.com","https://faucet.gimlu.com/gnosis","https://stakely.io/faucet/gnosis-chain-xdai","https://faucet.prussia.dev/xdai"],nativeCurrency:{name:"xDAI",symbol:"xDAI",decimals:18},infoURL:"https://docs.gnosischain.com",shortName:"gno",chainId:100,networkId:100,slip44:700,explorers:[{name:"gnosisscan",url:"https://gnosisscan.io",icon:"gnosisscan",standard:"EIP3091"},{name:"blockscout",url:"https://blockscout.com/xdai/mainnet",icon:"blockscout",standard:"EIP3091"}],testnet:!1,slug:"gnosis"},gHt={name:"EtherInc",chain:"ETI",rpc:["https://api.einc.io/jsonrpc/mainnet"],faucets:[],nativeCurrency:{name:"EtherInc Ether",symbol:"ETI",decimals:18},infoURL:"https://einc.io",shortName:"eti",chainId:101,networkId:1,slip44:464,testnet:!1,slug:"etherinc"},vHt={name:"Web3Games Testnet",chain:"Web3Games",icon:{url:"ipfs://QmUc57w3UTHiWapNW9oQb1dP57ymtdemTTbpvGkjVHBRCo",width:192,height:192,format:"png"},rpc:["https://testnet-rpc-0.web3games.org/evm","https://testnet-rpc-1.web3games.org/evm","https://testnet-rpc-2.web3games.org/evm"],faucets:[],nativeCurrency:{name:"Web3Games",symbol:"W3G",decimals:18},infoURL:"https://web3games.org/",shortName:"tw3g",chainId:102,networkId:102,testnet:!0,slug:"web3games-testnet"},bHt={name:"Kaiba Lightning Chain Testnet",chain:"tKLC",rpc:["https://klc.live/"],faucets:[],nativeCurrency:{name:"Kaiba Testnet Token",symbol:"tKAIBA",decimals:18},infoURL:"https://kaibadefi.com",shortName:"tklc",chainId:104,networkId:104,icon:{url:"ipfs://bafybeihbsw3ky7yf6llpww6fabo4dicotcgwjpefscoxrppstjx25dvtea",width:932,height:932,format:"png"},explorers:[{name:"kaibascan",url:"https://kaibascan.io",icon:"kaibascan",standard:"EIP3091"}],testnet:!0,slug:"kaiba-lightning-chain-testnet"},wHt={name:"Web3Games Devnet",chain:"Web3Games",icon:{url:"ipfs://QmUc57w3UTHiWapNW9oQb1dP57ymtdemTTbpvGkjVHBRCo",width:192,height:192,format:"png"},rpc:["https://devnet.web3games.org/evm"],faucets:[],nativeCurrency:{name:"Web3Games",symbol:"W3G",decimals:18},infoURL:"https://web3games.org/",shortName:"dw3g",chainId:105,networkId:105,explorers:[{name:"Web3Games Explorer",url:"https://explorer-devnet.web3games.org",standard:"none"}],testnet:!1,slug:"web3games-devnet"},xHt={name:"Velas EVM Mainnet",chain:"Velas",icon:{url:"ipfs://QmNXiCXJxEeBd7ZYGYjPSMTSdbDd2nfodLC677gUfk9ku5",width:924,height:800,format:"png"},rpc:["https://evmexplorer.velas.com/rpc","https://explorer.velas.com/rpc"],faucets:[],nativeCurrency:{name:"Velas",symbol:"VLX",decimals:18},infoURL:"https://velas.com",shortName:"vlx",chainId:106,networkId:106,explorers:[{name:"Velas Explorer",url:"https://evmexplorer.velas.com",standard:"EIP3091"}],testnet:!1,slug:"velas-evm"},THt={name:"Nebula Testnet",chain:"NTN",icon:{url:"ipfs://QmeFaJtQqTKKuXQR7ysS53bLFPasFBcZw445cvYJ2HGeTo",width:512,height:512,format:"png"},rpc:["https://testnet.rpc.novanetwork.io:9070"],faucets:["https://faucet.novanetwork.io"],nativeCurrency:{name:"Nebula X",symbol:"NBX",decimals:18},infoURL:"https://novanetwork.io",shortName:"ntn",chainId:107,networkId:107,explorers:[{name:"nebulatestnet",url:"https://explorer.novanetwork.io",standard:"EIP3091"}],testnet:!0,slug:"nebula-testnet"},_Ht={name:"ThunderCore Mainnet",chain:"TT",rpc:["https://mainnet-rpc.thundercore.com","https://mainnet-rpc.thundertoken.net","https://mainnet-rpc.thundercore.io"],faucets:["https://faucet.thundercore.com"],nativeCurrency:{name:"ThunderCore Token",symbol:"TT",decimals:18},infoURL:"https://thundercore.com",shortName:"TT",chainId:108,networkId:108,slip44:1001,explorers:[{name:"thundercore-viewblock",url:"https://viewblock.io/thundercore",standard:"EIP3091"}],testnet:!1,slug:"thundercore"},CHt={name:"Proton Testnet",chain:"XPR",rpc:["https://protontestnet.greymass.com/"],faucets:[],nativeCurrency:{name:"Proton",symbol:"XPR",decimals:4},infoURL:"https://protonchain.com",shortName:"xpr",chainId:110,networkId:110,testnet:!0,slug:"proton-testnet"},EHt={name:"EtherLite Chain",chain:"ETL",rpc:["https://rpc.etherlite.org"],faucets:["https://etherlite.org/faucets"],nativeCurrency:{name:"EtherLite",symbol:"ETL",decimals:18},infoURL:"https://etherlite.org",shortName:"ETL",chainId:111,networkId:111,icon:{url:"ipfs://QmbNAai1KnBnw4SPQKgrf6vBddifPCQTg2PePry1bmmZYy",width:88,height:88,format:"png"},testnet:!1,slug:"etherlite-chain"},kHt={name:"Dehvo",chain:"Dehvo",rpc:["https://connect.dehvo.com","https://rpc.dehvo.com","https://rpc1.dehvo.com","https://rpc2.dehvo.com"],faucets:["https://buy.dehvo.com"],nativeCurrency:{name:"Dehvo",symbol:"Deh",decimals:18},infoURL:"https://dehvo.com",shortName:"deh",chainId:113,networkId:113,slip44:714,explorers:[{name:"Dehvo Explorer",url:"https://explorer.dehvo.com",standard:"EIP3091"}],testnet:!1,slug:"dehvo"},SHt={name:"Flare Testnet Coston2",chain:"FLR",icon:{url:"ipfs://QmZhAYyazEBZSHWNQb9uCkNPq2MNTLoW3mjwiD3955hUjw",width:382,height:382,format:"png"},rpc:["https://coston2-api.flare.network/ext/bc/C/rpc"],faucets:["https://coston2-faucet.towolabs.com"],nativeCurrency:{name:"Coston2 Flare",symbol:"C2FLR",decimals:18},infoURL:"https://flare.xyz",shortName:"c2flr",chainId:114,networkId:114,explorers:[{name:"blockscout",url:"https://coston2-explorer.flare.network",standard:"EIP3091"}],testnet:!0,slug:"flare-testnet-coston2"},AHt={name:"DeBank Testnet",chain:"DeBank",rpc:[],faucets:[],icon:{url:"ipfs://QmW9pBps8WHRRWmyXhjLZrjZJUe8F48hUu7z98bu2RVsjN",width:400,height:400,format:"png"},nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://debank.com",shortName:"debank-testnet",chainId:115,networkId:115,explorers:[],testnet:!0,slug:"debank-testnet"},MHt={name:"DeBank Mainnet",chain:"DeBank",rpc:[],faucets:[],icon:{url:"ipfs://QmW9pBps8WHRRWmyXhjLZrjZJUe8F48hUu7z98bu2RVsjN",width:400,height:400,format:"png"},nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://debank.com",shortName:"debank-mainnet",chainId:116,networkId:116,explorers:[],testnet:!1,slug:"debank"},IHt={name:"ENULS Mainnet",chain:"ENULS",rpc:["https://evmapi.nuls.io","https://evmapi2.nuls.io"],faucets:[],nativeCurrency:{name:"NULS",symbol:"NULS",decimals:18},infoURL:"https://nuls.io",shortName:"enuls",chainId:119,networkId:119,icon:{url:"ipfs://QmYz8LK5WkUN8UwqKfWUjnyLuYqQZWihT7J766YXft4TSy",width:26,height:41,format:"svg"},explorers:[{name:"enulsscan",url:"https://evmscan.nuls.io",icon:"enuls",standard:"EIP3091"}],testnet:!1,slug:"enuls"},PHt={name:"ENULS Testnet",chain:"ENULS",rpc:["https://beta.evmapi.nuls.io","https://beta.evmapi2.nuls.io"],faucets:["http://faucet.nuls.io"],nativeCurrency:{name:"NULS",symbol:"NULS",decimals:18},infoURL:"https://nuls.io",shortName:"enulst",chainId:120,networkId:120,icon:{url:"ipfs://QmYz8LK5WkUN8UwqKfWUjnyLuYqQZWihT7J766YXft4TSy",width:26,height:41,format:"svg"},explorers:[{name:"enulsscan",url:"https://beta.evmscan.nuls.io",icon:"enuls",standard:"EIP3091"}],testnet:!0,slug:"enuls-testnet"},RHt={name:"Fuse Mainnet",chain:"FUSE",rpc:["https://rpc.fuse.io"],faucets:[],nativeCurrency:{name:"Fuse",symbol:"FUSE",decimals:18},infoURL:"https://fuse.io/",shortName:"fuse",chainId:122,networkId:122,testnet:!1,slug:"fuse"},NHt={name:"Fuse Sparknet",chain:"fuse",rpc:["https://rpc.fusespark.io"],faucets:["https://get.fusespark.io"],nativeCurrency:{name:"Spark",symbol:"SPARK",decimals:18},infoURL:"https://docs.fuse.io/general/fuse-network-blockchain/fuse-testnet",shortName:"spark",chainId:123,networkId:123,testnet:!0,slug:"fuse-sparknet"},OHt={name:"Decentralized Web Mainnet",shortName:"dwu",chain:"DWU",chainId:124,networkId:124,rpc:["https://decentralized-web.tech/dw_rpc.php"],faucets:[],infoURL:"https://decentralized-web.tech/dw_chain.php",nativeCurrency:{name:"Decentralized Web Utility",symbol:"DWU",decimals:18},testnet:!1,slug:"decentralized-web"},LHt={name:"OYchain Testnet",chain:"OYchain",rpc:["https://rpc.testnet.oychain.io"],faucets:["https://faucet.oychain.io"],nativeCurrency:{name:"OYchain Token",symbol:"OY",decimals:18},infoURL:"https://www.oychain.io",shortName:"OYchainTestnet",chainId:125,networkId:125,slip44:125,explorers:[{name:"OYchain Testnet Explorer",url:"https://explorer.testnet.oychain.io",standard:"none"}],testnet:!0,slug:"oychain-testnet"},BHt={name:"OYchain Mainnet",chain:"OYchain",icon:{url:"ipfs://QmXW5T2MaGHznXUmQEXoyJjcdmX7dhLbj5fnqvZZKqeKzA",width:677,height:237,format:"png"},rpc:["https://rpc.mainnet.oychain.io"],faucets:[],nativeCurrency:{name:"OYchain Token",symbol:"OY",decimals:18},infoURL:"https://www.oychain.io",shortName:"OYchainMainnet",chainId:126,networkId:126,slip44:126,explorers:[{name:"OYchain Mainnet Explorer",url:"https://explorer.oychain.io",standard:"none"}],testnet:!1,slug:"oychain"},qHt={name:"Factory 127 Mainnet",chain:"FETH",rpc:[],faucets:[],nativeCurrency:{name:"Factory 127 Token",symbol:"FETH",decimals:18},infoURL:"https://www.factory127.com",shortName:"feth",chainId:127,networkId:127,slip44:127,testnet:!1,slug:"factory-127"},DHt={name:"Huobi ECO Chain Mainnet",chain:"Heco",rpc:["https://http-mainnet.hecochain.com","wss://ws-mainnet.hecochain.com"],faucets:["https://free-online-app.com/faucet-for-eth-evm-chains/"],nativeCurrency:{name:"Huobi ECO Chain Native Token",symbol:"HT",decimals:18},infoURL:"https://www.hecochain.com",shortName:"heco",chainId:128,networkId:128,slip44:1010,explorers:[{name:"hecoinfo",url:"https://hecoinfo.com",standard:"EIP3091"}],testnet:!1,slug:"huobi-eco-chain"},FHt={name:"Alyx Chain Testnet",chain:"Alyx Chain Testnet",rpc:["https://testnet-rpc.alyxchain.com"],faucets:["https://faucet.alyxchain.com"],nativeCurrency:{name:"Alyx Testnet Native Token",symbol:"ALYX",decimals:18},infoURL:"https://www.alyxchain.com",shortName:"AlyxTestnet",chainId:135,networkId:135,explorers:[{name:"alyx testnet scan",url:"https://testnet.alyxscan.com",standard:"EIP3091"}],icon:{url:"ipfs://bafkreifd43fcvh77mdcwjrpzpnlhthounc6b4u645kukqpqhduaveatf6i",width:2481,height:2481,format:"png"},testnet:!0,slug:"alyx-chain-testnet"},UHt={name:"Polygon Mainnet",chain:"Polygon",icon:{url:"ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/polygon/512.png",height:512,width:512,format:"png",sizes:[512,256,128,64,32,16]},rpc:["https://polygon.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://polygon-rpc.com/","https://rpc-mainnet.matic.network","https://matic-mainnet.chainstacklabs.com","https://rpc-mainnet.maticvigil.com","https://rpc-mainnet.matic.quiknode.pro","https://matic-mainnet-full-rpc.bwarelabs.com","https://polygon-bor.publicnode.com"],faucets:[],nativeCurrency:{name:"MATIC",symbol:"MATIC",decimals:18},infoURL:"https://polygon.technology/",shortName:"matic",chainId:137,networkId:137,slip44:966,explorers:[{name:"polygonscan",url:"https://polygonscan.com",standard:"EIP3091"}],testnet:!1,slug:"polygon"},WHt={name:"Openpiece Testnet",chain:"OPENPIECE",icon:{url:"ipfs://QmVTahJkdSH3HPYsJMK2GmqfWZjLyxE7cXy1aHEnHU3vp2",width:250,height:250,format:"png"},rpc:["https://testnet.openpiece.io"],faucets:[],nativeCurrency:{name:"Belly",symbol:"BELLY",decimals:18},infoURL:"https://cryptopiece.online",shortName:"OPtest",chainId:141,networkId:141,explorers:[{name:"Belly Scan",url:"https://testnet.bellyscan.com",standard:"none"}],testnet:!0,slug:"openpiece-testnet"},jHt={name:"DAX CHAIN",chain:"DAX",rpc:["https://rpc.prodax.io"],faucets:[],nativeCurrency:{name:"Prodax",symbol:"DAX",decimals:18},infoURL:"https://prodax.io/",shortName:"dax",chainId:142,networkId:142,testnet:!1,slug:"dax-chain"},zHt={name:"PHI Network v2",chain:"PHI",rpc:["https://connect.phi.network"],faucets:[],nativeCurrency:{name:"PHI",symbol:"\u03A6",decimals:18},infoURL:"https://phi.network",shortName:"PHI",chainId:144,networkId:144,icon:{url:"ipfs://bafkreid6pm3mic7izp3a6zlfwhhe7etd276bjfsq2xash6a4s2vmcdf65a",width:512,height:512,format:"png"},explorers:[{name:"Phiscan",url:"https://phiscan.com",icon:"phi",standard:"none"}],testnet:!1,slug:"phi-network-v2"},HHt={name:"Armonia Eva Chain Mainnet",chain:"Eva",rpc:["https://evascan.io/api/eth-rpc/"],faucets:[],nativeCurrency:{name:"Armonia Multichain Native Token",symbol:"AMAX",decimals:18},infoURL:"https://amax.network",shortName:"eva",chainId:160,networkId:160,status:"incubating",testnet:!1,slug:"armonia-eva-chain"},VHt={name:"Armonia Eva Chain Testnet",chain:"Wall-e",rpc:["https://testnet.evascan.io/api/eth-rpc/"],faucets:[],nativeCurrency:{name:"Armonia Multichain Native Token",symbol:"AMAX",decimals:18},infoURL:"https://amax.network",shortName:"wall-e",chainId:161,networkId:161,explorers:[{name:"blockscout - evascan",url:"https://testnet.evascan.io",standard:"EIP3091"}],testnet:!0,slug:"armonia-eva-chain-testnet"},GHt={name:"Lightstreams Testnet",chain:"PHT",rpc:["https://node.sirius.lightstreams.io"],faucets:["https://discuss.lightstreams.network/t/request-test-tokens"],nativeCurrency:{name:"Lightstreams PHT",symbol:"PHT",decimals:18},infoURL:"https://explorer.sirius.lightstreams.io",shortName:"tpht",chainId:162,networkId:162,testnet:!0,slug:"lightstreams-testnet"},ZHt={name:"Lightstreams Mainnet",chain:"PHT",rpc:["https://node.mainnet.lightstreams.io"],faucets:[],nativeCurrency:{name:"Lightstreams PHT",symbol:"PHT",decimals:18},infoURL:"https://explorer.lightstreams.io",shortName:"pht",chainId:163,networkId:163,testnet:!1,slug:"lightstreams"},JHt={name:"Atoshi Testnet",chain:"ATOSHI",icon:{url:"ipfs://QmfFK6B4MFLrpSS46aLf7hjpt28poHFeTGEKEuH248Tbyj",width:200,height:200,format:"png"},rpc:["https://node.atoshi.io/"],faucets:[],nativeCurrency:{name:"ATOSHI",symbol:"ATOS",decimals:18},infoURL:"https://atoshi.org",shortName:"atoshi",chainId:167,networkId:167,explorers:[{name:"atoshiscan",url:"https://scan.atoverse.info",standard:"EIP3091"}],testnet:!0,slug:"atoshi-testnet"},KHt={name:"AIOZ Network",chain:"AIOZ",icon:{url:"ipfs://QmRAGPFhvQiXgoJkui7WHajpKctGFrJNhHqzYdwcWt5V3Z",width:1024,height:1024,format:"png"},rpc:["https://eth-dataseed.aioz.network"],faucets:[],nativeCurrency:{name:"AIOZ",symbol:"AIOZ",decimals:18},infoURL:"https://aioz.network",shortName:"aioz",chainId:168,networkId:168,slip44:60,explorers:[{name:"AIOZ Network Explorer",url:"https://explorer.aioz.network",standard:"EIP3091"}],testnet:!1,slug:"aioz-network"},QHt={name:"HOO Smart Chain Testnet",chain:"ETH",rpc:["https://http-testnet.hoosmartchain.com"],faucets:["https://faucet-testnet.hscscan.com/"],nativeCurrency:{name:"HOO",symbol:"HOO",decimals:18},infoURL:"https://www.hoosmartchain.com",shortName:"hoosmartchain",chainId:170,networkId:170,testnet:!0,slug:"hoo-smart-chain-testnet"},XHt={name:"Latam-Blockchain Resil Testnet",chain:"Resil",rpc:["https://rpc.latam-blockchain.com","wss://ws.latam-blockchain.com"],faucets:["https://faucet.latam-blockchain.com"],nativeCurrency:{name:"Latam-Blockchain Resil Test Native Token",symbol:"usd",decimals:18},infoURL:"https://latam-blockchain.com",shortName:"resil",chainId:172,networkId:172,testnet:!0,slug:"latam-blockchain-resil-testnet"},YHt={name:"AME Chain Mainnet",chain:"AME",rpc:["https://node1.amechain.io/"],faucets:[],nativeCurrency:{name:"AME",symbol:"AME",decimals:18},infoURL:"https://amechain.io/",shortName:"ame",chainId:180,networkId:180,explorers:[{name:"AME Scan",url:"https://amescan.io",standard:"EIP3091"}],testnet:!1,slug:"ame-chain"},$Ht={name:"Seele Mainnet",chain:"Seele",rpc:["https://rpc.seelen.pro/"],faucets:[],nativeCurrency:{name:"Seele",symbol:"Seele",decimals:18},infoURL:"https://seelen.pro/",shortName:"Seele",chainId:186,networkId:186,explorers:[{name:"seeleview",url:"https://seeleview.net",standard:"none"}],testnet:!1,slug:"seele"},eVt={name:"BMC Mainnet",chain:"BMC",rpc:["https://mainnet.bmcchain.com/"],faucets:[],nativeCurrency:{name:"BTM",symbol:"BTM",decimals:18},infoURL:"https://bmc.bytom.io/",shortName:"BMC",chainId:188,networkId:188,explorers:[{name:"Blockmeta",url:"https://bmc.blockmeta.com",standard:"none"}],testnet:!1,slug:"bmc"},tVt={name:"BMC Testnet",chain:"BMC",rpc:["https://testnet.bmcchain.com"],faucets:[],nativeCurrency:{name:"BTM",symbol:"BTM",decimals:18},infoURL:"https://bmc.bytom.io/",shortName:"BMCT",chainId:189,networkId:189,explorers:[{name:"Blockmeta",url:"https://bmctestnet.blockmeta.com",standard:"none"}],testnet:!0,slug:"bmc-testnet"},rVt={name:"Crypto Emergency",chain:"CEM",rpc:["https://cemchain.com"],faucets:[],nativeCurrency:{name:"Crypto Emergency",symbol:"CEM",decimals:18},infoURL:"https://cemblockchain.com/",shortName:"cem",chainId:193,networkId:193,explorers:[{name:"cemscan",url:"https://cemscan.com",standard:"EIP3091"}],testnet:!1,slug:"crypto-emergency"},nVt={name:"BitTorrent Chain Mainnet",chain:"BTTC",rpc:["https://rpc.bittorrentchain.io/"],faucets:[],nativeCurrency:{name:"BitTorrent",symbol:"BTT",decimals:18},infoURL:"https://bittorrentchain.io/",shortName:"BTT",chainId:199,networkId:199,explorers:[{name:"bttcscan",url:"https://scan.bittorrentchain.io",standard:"none"}],testnet:!1,slug:"bittorrent-chain"},aVt={name:"Arbitrum on xDai",chain:"AOX",rpc:["https://arbitrum.xdaichain.com/"],faucets:[],nativeCurrency:{name:"xDAI",symbol:"xDAI",decimals:18},infoURL:"https://xdaichain.com",shortName:"aox",chainId:200,networkId:200,explorers:[{name:"blockscout",url:"https://blockscout.com/xdai/arbitrum",standard:"EIP3091"}],parent:{chain:"eip155-100",type:"L2"},testnet:!1,slug:"arbitrum-on-xdai"},iVt={name:"MOAC testnet",chain:"MOAC",rpc:["https://gateway.moac.io/testnet"],faucets:[],nativeCurrency:{name:"MOAC",symbol:"mc",decimals:18},infoURL:"https://moac.io",shortName:"moactest",chainId:201,networkId:201,explorers:[{name:"moac testnet explorer",url:"https://testnet.moac.io",standard:"none"}],testnet:!0,slug:"moac-testnet"},sVt={name:"Freight Trust Network",chain:"EDI",rpc:["http://13.57.207.168:3435","https://app.freighttrust.net/ftn/${API_KEY}"],faucets:["http://faucet.freight.sh"],nativeCurrency:{name:"Freight Trust Native",symbol:"0xF",decimals:18},infoURL:"https://freighttrust.com",shortName:"EDI",chainId:211,networkId:0,testnet:!1,slug:"freight-trust-network"},oVt={name:"MAP Makalu",title:"MAP Testnet Makalu",chain:"MAP",rpc:["https://testnet-rpc.maplabs.io"],faucets:["https://faucet.maplabs.io"],nativeCurrency:{name:"Makalu MAP",symbol:"MAP",decimals:18},infoURL:"https://maplabs.io",shortName:"makalu",chainId:212,networkId:212,explorers:[{name:"mapscan",url:"https://testnet.mapscan.io",standard:"EIP3091"}],testnet:!0,slug:"map-makalu"},cVt={name:"SiriusNet V2",chain:"SIN2",faucets:[],rpc:["https://rpc2.siriusnet.io"],icon:{url:"ipfs://bafybeicxuxdzrzpwsil4owqmn7wpwka2rqsohpfqmukg57pifzyxr5om2q",width:100,height:100,format:"png"},nativeCurrency:{name:"MCD",symbol:"MCD",decimals:18},infoURL:"https://siriusnet.io",shortName:"SIN2",chainId:217,networkId:217,explorers:[{name:"siriusnet explorer",url:"https://scan.siriusnet.io",standard:"none"}],testnet:!1,slug:"siriusnet-v2"},uVt={name:"LACHAIN Mainnet",chain:"LA",icon:{url:"ipfs://QmQxGA6rhuCQDXUueVcNvFRhMEWisyTmnF57TqL7h6k6cZ",width:1280,height:1280,format:"png"},rpc:["https://rpc-mainnet.lachain.io"],faucets:[],nativeCurrency:{name:"LA",symbol:"LA",decimals:18},infoURL:"https://lachain.io",shortName:"LA",chainId:225,networkId:225,explorers:[{name:"blockscout",url:"https://scan.lachain.io",standard:"EIP3091"}],testnet:!1,slug:"lachain"},lVt={name:"LACHAIN Testnet",chain:"TLA",icon:{url:"ipfs://QmQxGA6rhuCQDXUueVcNvFRhMEWisyTmnF57TqL7h6k6cZ",width:1280,height:1280,format:"png"},rpc:["https://rpc-testnet.lachain.io"],faucets:[],nativeCurrency:{name:"TLA",symbol:"TLA",decimals:18},infoURL:"https://lachain.io",shortName:"TLA",chainId:226,networkId:226,explorers:[{name:"blockscout",url:"https://scan-test.lachain.io",standard:"EIP3091"}],testnet:!0,slug:"lachain-testnet"},dVt={name:"Energy Web Chain",chain:"Energy Web Chain",rpc:["https://rpc.energyweb.org","wss://rpc.energyweb.org/ws"],faucets:["https://faucet.carbonswap.exchange","https://free-online-app.com/faucet-for-eth-evm-chains/"],nativeCurrency:{name:"Energy Web Token",symbol:"EWT",decimals:18},infoURL:"https://energyweb.org",shortName:"ewt",chainId:246,networkId:246,slip44:246,explorers:[{name:"blockscout",url:"https://explorer.energyweb.org",standard:"none"}],testnet:!1,slug:"energy-web-chain"},pVt={name:"Oasys Mainnet",chain:"Oasys",icon:{url:"ipfs://QmT84suD2ZmTSraJBfeHhTNst2vXctQijNCztok9XiVcUR",width:3600,height:3600,format:"png"},rpc:["https://rpc.mainnet.oasys.games"],faucets:[],nativeCurrency:{name:"OAS",symbol:"OAS",decimals:18},infoURL:"https://oasys.games",shortName:"OAS",chainId:248,networkId:248,explorers:[{name:"blockscout",url:"https://explorer.oasys.games",standard:"EIP3091"}],testnet:!1,slug:"oasys"},hVt={name:"Fantom Opera",chain:"FTM",rpc:["https://fantom.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.ftm.tools"],faucets:["https://free-online-app.com/faucet-for-eth-evm-chains/"],nativeCurrency:{name:"Fantom",symbol:"FTM",decimals:18},infoURL:"https://fantom.foundation",shortName:"ftm",chainId:250,networkId:250,icon:{url:"ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/fantom/512.png",height:512,width:512,format:"png",sizes:[512,256,128,64,32,16]},explorers:[{name:"ftmscan",url:"https://ftmscan.com",icon:"ftmscan",standard:"EIP3091"}],testnet:!1,slug:"fantom-opera"},fVt={name:"Huobi ECO Chain Testnet",chain:"Heco",rpc:["https://http-testnet.hecochain.com","wss://ws-testnet.hecochain.com"],faucets:["https://scan-testnet.hecochain.com/faucet"],nativeCurrency:{name:"Huobi ECO Chain Test Native Token",symbol:"htt",decimals:18},infoURL:"https://testnet.hecoinfo.com",shortName:"hecot",chainId:256,networkId:256,testnet:!0,slug:"huobi-eco-chain-testnet"},mVt={name:"Setheum",chain:"Setheum",rpc:[],faucets:[],nativeCurrency:{name:"Setheum",symbol:"SETM",decimals:18},infoURL:"https://setheum.xyz",shortName:"setm",chainId:258,networkId:258,testnet:!1,slug:"setheum"},yVt={name:"SUR Blockchain Network",chain:"SUR",rpc:["https://sur.nilin.org"],faucets:[],nativeCurrency:{name:"Suren",symbol:"SRN",decimals:18},infoURL:"https://surnet.org",shortName:"SUR",chainId:262,networkId:1,icon:{url:"ipfs://QmbUcDQHCvheYQrWk9WFJRMW5fTJQmtZqkoGUed4bhCM7T",width:3e3,height:3e3,format:"png"},explorers:[{name:"Surnet Explorer",url:"https://explorer.surnet.org",icon:"SUR",standard:"EIP3091"}],testnet:!1,slug:"sur-blockchain-network"},gVt={name:"High Performance Blockchain",chain:"HPB",rpc:["https://hpbnode.com","wss://ws.hpbnode.com"],faucets:["https://myhpbwallet.com/"],nativeCurrency:{name:"High Performance Blockchain Ether",symbol:"HPB",decimals:18},infoURL:"https://hpb.io",shortName:"hpb",chainId:269,networkId:269,slip44:269,explorers:[{name:"hscan",url:"https://hscan.org",standard:"EIP3091"}],testnet:!1,slug:"high-performance-blockchain"},vVt={name:"zkSync alpha testnet",chain:"ETH",rpc:["https://zksync2-testnet.zksync.dev"],faucets:["https://portal.zksync.io/faucet"],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://v2-docs.zksync.io/",shortName:"zksync-goerli",chainId:280,networkId:280,icon:{url:"ipfs://QmdwQDr6vmBtXmK2TmknkEuZNoaDqTasFdZdu3DRw8b2wt",width:1e3,height:1628,format:"png"},explorers:[{name:"blockscout",url:"https://zksync2-testnet.zkscan.io",icon:"blockscout",standard:"EIP3091"}],testnet:!0,slug:"zksync-alpha-testnet"},bVt={name:"Boba Network",chain:"ETH",rpc:["https://mainnet.boba.network/"],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://boba.network",shortName:"Boba",chainId:288,networkId:288,explorers:[{name:"Bobascan",url:"https://bobascan.com",standard:"none"},{name:"Blockscout",url:"https://blockexplorer.boba.network",standard:"none"}],parent:{type:"L2",chain:"eip155-1",bridges:[{url:"https://gateway.boba.network"}]},testnet:!1,slug:"boba-network"},wVt={name:"Optimism on Gnosis",chain:"OGC",rpc:["https://optimism.gnosischain.com","wss://optimism.gnosischain.com/wss"],faucets:["https://faucet.gimlu.com/gnosis"],nativeCurrency:{name:"xDAI",symbol:"xDAI",decimals:18},infoURL:"https://www.xdaichain.com/for-developers/optimism-optimistic-rollups-on-gc",shortName:"ogc",chainId:300,networkId:300,explorers:[{name:"blockscout",url:"https://blockscout.com/xdai/optimism",icon:"blockscout",standard:"EIP3091"}],testnet:!1,slug:"optimism-on-gnosis"},xVt={name:"Bobaopera",chain:"Bobaopera",rpc:["https://bobaopera.boba.network","wss://wss.bobaopera.boba.network","https://replica.bobaopera.boba.network","wss://replica-wss.bobaopera.boba.network"],faucets:[],nativeCurrency:{name:"Boba Token",symbol:"BOBA",decimals:18},infoURL:"https://boba.network",shortName:"Bobaopera",chainId:301,networkId:301,explorers:[{name:"Bobaopera block explorer",url:"https://blockexplorer.bobaopera.boba.network",standard:"none"}],testnet:!1,slug:"bobaopera"},TVt={name:"Omax Mainnet",chain:"OMAX Chain",rpc:["https://mainapi.omaxray.com"],faucets:["https://faucet.omaxray.com/"],nativeCurrency:{name:"OMAX COIN",symbol:"OMAX",decimals:18},infoURL:"https://www.omaxcoin.com/",shortName:"omax",chainId:311,networkId:311,icon:{url:"ipfs://Qmd7omPxrehSuxHHPMYd5Nr7nfrtjKdRJQEhDLfTb87w8G",width:500,height:500,format:"png"},explorers:[{name:"Omax Chain Explorer",url:"https://omaxray.com",icon:"omaxray",standard:"EIP3091"}],testnet:!1,slug:"omax"},_Vt={name:"Filecoin - Mainnet",chain:"FIL",icon:{url:"ipfs://QmS9r9XQkMHVomWcSBNDkKkz9n87h9bH9ssabeiKZtANoU",width:1e3,height:1e3,format:"png"},rpc:["https://api.node.glif.io/","https://rpc.ankr.com/filecoin"],faucets:[],nativeCurrency:{name:"filecoin",symbol:"FIL",decimals:18},infoURL:"https://filecoin.io",shortName:"filecoin",chainId:314,networkId:314,slip44:461,explorers:[{name:"Filfox",url:"https://filfox.info/en",standard:"none"},{name:"Filscan",url:"https://filscan.io",standard:"none"},{name:"Filscout",url:"https://filscout.io/en",standard:"none"}],testnet:!1,slug:"filecoin"},CVt={name:"KCC Mainnet",chain:"KCC",rpc:["https://rpc-mainnet.kcc.network","https://kcc.mytokenpocket.vip","https://public-rpc.blockpi.io/http/kcc"],faucets:["https://faucet.kcc.io/","https://free-online-app.com/faucet-for-eth-evm-chains/"],nativeCurrency:{name:"KuCoin Token",symbol:"KCS",decimals:18},infoURL:"https://kcc.io",shortName:"kcs",chainId:321,networkId:321,slip44:641,explorers:[{name:"KCC Explorer",url:"https://explorer.kcc.io/en",standard:"EIP3091"}],testnet:!1,slug:"kcc"},EVt={name:"KCC Testnet",chain:"KCC",rpc:["https://rpc-testnet.kcc.network"],faucets:["https://faucet-testnet.kcc.network"],nativeCurrency:{name:"KuCoin Testnet Token",symbol:"tKCS",decimals:18},infoURL:"https://scan-testnet.kcc.network",shortName:"kcst",chainId:322,networkId:322,explorers:[{name:"kcc-scan-testnet",url:"https://scan-testnet.kcc.network",standard:"EIP3091"}],testnet:!0,slug:"kcc-testnet"},kVt={name:"zkSync v2",chain:"ETH",rpc:[],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://zksync.io/",shortName:"zksync",chainId:324,networkId:324,icon:{url:"ipfs://QmdwQDr6vmBtXmK2TmknkEuZNoaDqTasFdZdu3DRw8b2wt",width:1e3,height:1628,format:"png"},explorers:[{name:"zkSync v2 Block Explorer",url:"https://explorer.zksync.io",standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-1",bridges:[]},status:"incubating",testnet:!1,slug:"zksync-v2"},SVt={name:"Web3Q Mainnet",chain:"Web3Q",rpc:["https://mainnet.web3q.io:8545"],faucets:[],nativeCurrency:{name:"Web3Q",symbol:"W3Q",decimals:18},infoURL:"https://web3q.io/home.w3q/",shortName:"w3q",chainId:333,networkId:333,explorers:[{name:"w3q-mainnet",url:"https://explorer.mainnet.web3q.io",standard:"EIP3091"}],testnet:!1,slug:"web3q"},AVt={name:"DFK Chain Test",chain:"DFK",icon:{url:"ipfs://QmQB48m15TzhUFrmu56QCRQjkrkgUaKfgCmKE8o3RzmuPJ",width:500,height:500,format:"png"},rpc:["https://subnets.avax.network/defi-kingdoms/dfk-chain-testnet/rpc"],faucets:[],nativeCurrency:{name:"Jewel",symbol:"JEWEL",decimals:18},infoURL:"https://defikingdoms.com",shortName:"DFKTEST",chainId:335,networkId:335,explorers:[{name:"ethernal",url:"https://explorer-test.dfkchain.com",icon:"ethereum",standard:"none"}],testnet:!0,slug:"dfk-chain-test"},MVt={name:"Shiden",chain:"SDN",rpc:["https://shiden.api.onfinality.io/public","https://shiden-rpc.dwellir.com","https://shiden.public.blastapi.io","wss://shiden.api.onfinality.io/public-ws","wss://shiden.public.blastapi.io","wss://shiden-rpc.dwellir.com"],faucets:[],nativeCurrency:{name:"Shiden",symbol:"SDN",decimals:18},infoURL:"https://shiden.astar.network/",shortName:"sdn",chainId:336,networkId:336,icon:{url:"ipfs://QmQySjAoWHgk3ou1yvBi2TrTcgH6KhfGiU7GcrLzrAeRkE",width:250,height:250,format:"png"},explorers:[{name:"subscan",url:"https://shiden.subscan.io",standard:"none",icon:"subscan"}],testnet:!1,slug:"shiden"},IVt={name:"Cronos Testnet",chain:"CRO",rpc:["https://evm-t3.cronos.org"],faucets:["https://cronos.org/faucet"],nativeCurrency:{name:"Cronos Test Coin",symbol:"TCRO",decimals:18},infoURL:"https://cronos.org",shortName:"tcro",chainId:338,networkId:338,explorers:[{name:"Cronos Testnet Explorer",url:"https://testnet.cronoscan.com",standard:"none"}],testnet:!0,slug:"cronos-testnet"},PVt={name:"Theta Mainnet",chain:"Theta",rpc:["https://eth-rpc-api.thetatoken.org/rpc"],faucets:[],nativeCurrency:{name:"Theta Fuel",symbol:"TFUEL",decimals:18},infoURL:"https://www.thetatoken.org/",shortName:"theta-mainnet",chainId:361,networkId:361,explorers:[{name:"Theta Mainnet Explorer",url:"https://explorer.thetatoken.org",standard:"EIP3091"}],testnet:!1,slug:"theta"},RVt={name:"Theta Sapphire Testnet",chain:"Theta",rpc:["https://eth-rpc-api-sapphire.thetatoken.org/rpc"],faucets:[],nativeCurrency:{name:"Theta Fuel",symbol:"TFUEL",decimals:18},infoURL:"https://www.thetatoken.org/",shortName:"theta-sapphire",chainId:363,networkId:363,explorers:[{name:"Theta Sapphire Testnet Explorer",url:"https://guardian-testnet-sapphire-explorer.thetatoken.org",standard:"EIP3091"}],testnet:!0,slug:"theta-sapphire-testnet"},NVt={name:"Theta Amber Testnet",chain:"Theta",rpc:["https://eth-rpc-api-amber.thetatoken.org/rpc"],faucets:[],nativeCurrency:{name:"Theta Fuel",symbol:"TFUEL",decimals:18},infoURL:"https://www.thetatoken.org/",shortName:"theta-amber",chainId:364,networkId:364,explorers:[{name:"Theta Amber Testnet Explorer",url:"https://guardian-testnet-amber-explorer.thetatoken.org",standard:"EIP3091"}],testnet:!0,slug:"theta-amber-testnet"},OVt={name:"Theta Testnet",chain:"Theta",rpc:["https://eth-rpc-api-testnet.thetatoken.org/rpc"],faucets:[],nativeCurrency:{name:"Theta Fuel",symbol:"TFUEL",decimals:18},infoURL:"https://www.thetatoken.org/",shortName:"theta-testnet",chainId:365,networkId:365,explorers:[{name:"Theta Testnet Explorer",url:"https://testnet-explorer.thetatoken.org",standard:"EIP3091"}],testnet:!0,slug:"theta-testnet"},LVt={name:"PulseChain Mainnet",shortName:"pls",chain:"PLS",chainId:369,networkId:369,infoURL:"https://pulsechain.com/",rpc:["https://rpc.mainnet.pulsechain.com/","wss://rpc.mainnet.pulsechain.com/"],faucets:[],nativeCurrency:{name:"Pulse",symbol:"PLS",decimals:18},testnet:!1,slug:"pulsechain"},BVt={name:"Consta Testnet",chain:"tCNT",rpc:["https://rpc-testnet.theconsta.com"],faucets:[],nativeCurrency:{name:"tCNT",symbol:"tCNT",decimals:18},infoURL:"http://theconsta.com",shortName:"tCNT",chainId:371,networkId:371,icon:{url:"ipfs://QmfQ1yae6uvXgBSwnwJM4Mtp8ctH66tM6mB1Hsgu4XvsC9",width:2e3,height:2e3,format:"png"},explorers:[{name:"blockscout",url:"https://explorer-testnet.theconsta.com",standard:"EIP3091"}],testnet:!0,slug:"consta-testnet"},qVt={name:"Lisinski",chain:"CRO",rpc:["https://rpc-bitfalls1.lisinski.online"],faucets:["https://pipa.lisinski.online"],nativeCurrency:{name:"Lisinski Ether",symbol:"LISINS",decimals:18},infoURL:"https://lisinski.online",shortName:"lisinski",chainId:385,networkId:385,testnet:!1,slug:"lisinski"},DVt={name:"HyperonChain TestNet",chain:"HPN",icon:{url:"ipfs://QmWxhyxXTEsWH98v7M3ck4ZL1qQoUaHG4HgtgxzD2KJQ5m",width:540,height:541,format:"png"},rpc:["https://testnet-rpc.hyperonchain.com"],faucets:["https://faucet.hyperonchain.com"],nativeCurrency:{name:"HyperonChain",symbol:"HPN",decimals:18},infoURL:"https://docs.hyperonchain.com",shortName:"hpn",chainId:400,networkId:400,explorers:[{name:"blockscout",url:"https://testnet.hyperonchain.com",icon:"hyperonchain",standard:"EIP3091"}],testnet:!0,slug:"hyperonchain-testnet"},FVt={name:"SX Network Mainnet",chain:"SX",icon:{url:"ipfs://QmSXLXqyr2H6Ja5XrmznXbWTEvF2gFaL8RXNXgyLmDHjAF",width:896,height:690,format:"png"},rpc:["https://rpc.sx.technology"],faucets:[],nativeCurrency:{name:"SX Network",symbol:"SX",decimals:18},infoURL:"https://www.sx.technology",shortName:"SX",chainId:416,networkId:416,explorers:[{name:"SX Network Explorer",url:"https://explorer.sx.technology",standard:"EIP3091"}],testnet:!1,slug:"sx-network"},UVt={name:"Optimism Goerli Testnet",chain:"ETH",rpc:["https://optimism-goerli.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://goerli.optimism.io/"],faucets:[],nativeCurrency:{name:"Goerli Ether",symbol:"ETH",decimals:18},infoURL:"https://optimism.io",shortName:"ogor",chainId:420,networkId:420,icon:{url:"ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/optimism/512.png",height:512,width:512,format:"png",sizes:[512,256,128,64,32,16]},testnet:!0,slug:"optimism-goerli-testnet"},WVt={name:"Zeeth Chain",chain:"ZeethChain",rpc:["https://rpc.zeeth.io"],faucets:[],nativeCurrency:{name:"Zeeth Token",symbol:"ZTH",decimals:18},infoURL:"",shortName:"zeeth",chainId:427,networkId:427,explorers:[{name:"Zeeth Explorer",url:"https://explorer.zeeth.io",standard:"none"}],testnet:!1,slug:"zeeth-chain"},jVt={name:"Frenchain Testnet",chain:"tfren",rpc:["https://rpc-01tn.frenchain.app"],faucets:[],nativeCurrency:{name:"tFREN",symbol:"FtREN",decimals:18},infoURL:"https://frenchain.app",shortName:"tFREN",chainId:444,networkId:444,icon:{url:"ipfs://QmQk41bYX6WpYyUAdRgomZekxP5mbvZXhfxLEEqtatyJv4",width:128,height:128,format:"png"},explorers:[{name:"blockscout",url:"https://testnet.frenscan.io",icon:"fren",standard:"EIP3091"}],testnet:!0,slug:"frenchain-testnet"},zVt={name:"Rupaya",chain:"RUPX",rpc:[],faucets:[],nativeCurrency:{name:"Rupaya",symbol:"RUPX",decimals:18},infoURL:"https://www.rupx.io",shortName:"rupx",chainId:499,networkId:499,slip44:499,testnet:!1,slug:"rupaya"},HVt={name:"Camino C-Chain",chain:"CAM",rpc:[],faucets:[],nativeCurrency:{name:"Camino",symbol:"CAM",decimals:18},infoURL:"https://camino.foundation/",shortName:"Camino",chainId:500,networkId:1e3,icon:{url:"ipfs://QmSEoUonisawfCvT3osysuZzbqUEHugtgNraePKWL8PKYa",width:768,height:768,format:"png"},explorers:[{name:"blockexplorer",url:"https://explorer.camino.foundation/mainnet",standard:"none"}],testnet:!1,slug:"camino-c-chain"},VVt={name:"Columbus Test Network",chain:"CAM",rpc:[],faucets:[],nativeCurrency:{name:"Camino",symbol:"CAM",decimals:18},infoURL:"https://camino.foundation/",shortName:"Columbus",chainId:501,networkId:1001,icon:{url:"ipfs://QmSEoUonisawfCvT3osysuZzbqUEHugtgNraePKWL8PKYa",width:768,height:768,format:"png"},explorers:[{name:"blockexplorer",url:"https://explorer.camino.foundation",standard:"none"}],testnet:!0,slug:"columbus-test-network"},GVt={name:"Double-A Chain Mainnet",chain:"AAC",rpc:["https://rpc.acuteangle.com"],faucets:[],nativeCurrency:{name:"Acuteangle Native Token",symbol:"AAC",decimals:18},infoURL:"https://www.acuteangle.com/",shortName:"aac",chainId:512,networkId:512,slip44:1512,explorers:[{name:"aacscan",url:"https://scan.acuteangle.com",standard:"EIP3091"}],icon:{url:"ipfs://QmRUrz4dULaoaMpnqd8qXT7ehwz3aaqnYKY4ePsy7isGaF",width:512,height:512,format:"png"},testnet:!1,slug:"double-a-chain"},ZVt={name:"Double-A Chain Testnet",chain:"AAC",icon:{url:"ipfs://QmRUrz4dULaoaMpnqd8qXT7ehwz3aaqnYKY4ePsy7isGaF",width:512,height:512,format:"png"},rpc:["https://rpc-testnet.acuteangle.com"],faucets:["https://scan-testnet.acuteangle.com/faucet"],nativeCurrency:{name:"Acuteangle Native Token",symbol:"AAC",decimals:18},infoURL:"https://www.acuteangle.com/",shortName:"aact",chainId:513,networkId:513,explorers:[{name:"aacscan-testnet",url:"https://scan-testnet.acuteangle.com",standard:"EIP3091"}],testnet:!0,slug:"double-a-chain-testnet"},JVt={name:"Gear Zero Network Mainnet",chain:"GearZero",rpc:["https://gzn.linksme.info"],faucets:[],nativeCurrency:{name:"Gear Zero Network Native Token",symbol:"GZN",decimals:18},infoURL:"https://token.gearzero.ca/mainnet",shortName:"gz-mainnet",chainId:516,networkId:516,slip44:516,explorers:[],testnet:!1,slug:"gear-zero-network"},KVt={name:"XT Smart Chain Mainnet",chain:"XSC",icon:{url:"ipfs://QmNmAFgQKkjofaBR5mhB5ygE1Gna36YBVsGkgZQxrwW85s",width:98,height:96,format:"png"},rpc:["https://datarpc1.xsc.pub","https://datarpc2.xsc.pub","https://datarpc3.xsc.pub"],faucets:["https://xsc.pub/faucet"],nativeCurrency:{name:"XT Smart Chain Native Token",symbol:"XT",decimals:18},infoURL:"https://xsc.pub/",shortName:"xt",chainId:520,networkId:1024,explorers:[{name:"xscscan",url:"https://xscscan.pub",standard:"EIP3091"}],testnet:!1,slug:"xt-smart-chain"},QVt={name:"Firechain Mainnet",chain:"FIRE",icon:{url:"ipfs://QmYjuztyURb3Fc6ZTLgCbwQa64CcVoigF5j9cafzuSbqgf",width:512,height:512,format:"png"},rpc:["https://mainnet.rpc1.thefirechain.com"],faucets:[],nativeCurrency:{name:"Firechain",symbol:"FIRE",decimals:18},infoURL:"https://thefirechain.com",shortName:"fire",chainId:529,networkId:529,explorers:[],status:"incubating",testnet:!1,slug:"firechain"},XVt={name:"F(x)Core Mainnet Network",chain:"Fxcore",rpc:["https://fx-json-web3.functionx.io:8545"],faucets:[],nativeCurrency:{name:"Function X",symbol:"FX",decimals:18},infoURL:"https://functionx.io/",shortName:"FxCore",chainId:530,networkId:530,icon:{url:"ipfs://bafkreifrf2iq3k3dqfbvp3pacwuxu33up3usmrhojt5ielyfty7xkixu3i",width:500,height:500,format:"png"},explorers:[{name:"FunctionX Explorer",url:"https://fx-evm.functionx.io",standard:"EIP3091"}],testnet:!1,slug:"f-x-core-network"},YVt={name:"Candle",chain:"Candle",rpc:["https://candle-rpc.com/","https://rpc.cndlchain.com"],faucets:[],nativeCurrency:{name:"CANDLE",symbol:"CNDL",decimals:18},infoURL:"https://candlelabs.org/",shortName:"CNDL",chainId:534,networkId:534,slip44:674,explorers:[{name:"candleexplorer",url:"https://candleexplorer.com",standard:"EIP3091"}],testnet:!1,slug:"candle"},$Vt={name:"Vela1 Chain Mainnet",chain:"VELA1",rpc:["https://rpc.velaverse.io"],faucets:[],nativeCurrency:{name:"CLASS COIN",symbol:"CLASS",decimals:18},infoURL:"https://velaverse.io",shortName:"CLASS",chainId:555,networkId:555,explorers:[{name:"Vela1 Chain Mainnet Explorer",url:"https://exp.velaverse.io",standard:"EIP3091"}],testnet:!1,slug:"vela1-chain"},eGt={name:"Tao Network",chain:"TAO",rpc:["https://rpc.testnet.tao.network","http://rpc.testnet.tao.network:8545","https://rpc.tao.network","wss://rpc.tao.network"],faucets:[],nativeCurrency:{name:"Tao",symbol:"TAO",decimals:18},infoURL:"https://tao.network",shortName:"tao",chainId:558,networkId:558,testnet:!0,slug:"tao-network"},tGt={name:"Dogechain Testnet",chain:"DC",icon:{url:"ipfs://QmNS6B6L8FfgGSMTEi2SxD3bK5cdmKPNtQKcYaJeRWrkHs",width:732,height:732,format:"png"},rpc:["https://rpc-testnet.dogechain.dog"],faucets:["https://faucet.dogechain.dog"],nativeCurrency:{name:"Dogecoin",symbol:"DOGE",decimals:18},infoURL:"https://dogechain.dog",shortName:"dct",chainId:568,networkId:568,explorers:[{name:"dogechain testnet explorer",url:"https://explorer-testnet.dogechain.dog",standard:"EIP3091"}],testnet:!0,slug:"dogechain-testnet"},rGt={name:"Astar",chain:"ASTR",rpc:["https://rpc.astar.network:8545"],faucets:[],nativeCurrency:{name:"Astar",symbol:"ASTR",decimals:18},infoURL:"https://astar.network/",shortName:"astr",chainId:592,networkId:592,icon:{url:"ipfs://Qmdvmx3p6gXBCLUMU1qivscaTNkT6h3URdhUTZCHLwKudg",width:1e3,height:1e3,format:"png"},explorers:[{name:"subscan",url:"https://astar.subscan.io",standard:"none",icon:"subscan"}],testnet:!1,slug:"astar"},nGt={name:"Acala Mandala Testnet",chain:"mACA",rpc:[],faucets:[],nativeCurrency:{name:"Acala Mandala Token",symbol:"mACA",decimals:18},infoURL:"https://acala.network",shortName:"maca",chainId:595,networkId:595,testnet:!0,slug:"acala-mandala-testnet"},aGt={name:"Karura Network Testnet",chain:"KAR",rpc:[],faucets:[],nativeCurrency:{name:"Karura Token",symbol:"KAR",decimals:18},infoURL:"https://karura.network",shortName:"tkar",chainId:596,networkId:596,slip44:596,testnet:!0,slug:"karura-network-testnet"},iGt={name:"Acala Network Testnet",chain:"ACA",rpc:[],faucets:[],nativeCurrency:{name:"Acala Token",symbol:"ACA",decimals:18},infoURL:"https://acala.network",shortName:"taca",chainId:597,networkId:597,slip44:597,testnet:!0,slug:"acala-network-testnet"},sGt={name:"Metis Goerli Testnet",chain:"ETH",rpc:["https://goerli.gateway.metisdevops.link"],faucets:["https://goerli.faucet.metisdevops.link"],nativeCurrency:{name:"Goerli Metis",symbol:"METIS",decimals:18},infoURL:"https://www.metis.io",shortName:"metis-goerli",chainId:599,networkId:599,explorers:[{name:"blockscout",url:"https://goerli.explorer.metisdevops.link",standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-4",bridges:[{url:"https://testnet-bridge.metis.io"}]},testnet:!0,slug:"metis-goerli-testnet"},oGt={name:"Meshnyan testnet",chain:"MeshTestChain",rpc:[],faucets:[],nativeCurrency:{name:"Meshnyan Testnet Native Token",symbol:"MESHT",decimals:18},infoURL:"",shortName:"mesh-chain-testnet",chainId:600,networkId:600,testnet:!0,slug:"meshnyan-testnet"},cGt={name:"SX Network Testnet",chain:"SX",icon:{url:"ipfs://QmSXLXqyr2H6Ja5XrmznXbWTEvF2gFaL8RXNXgyLmDHjAF",width:896,height:690,format:"png"},rpc:["https://rpc.toronto.sx.technology"],faucets:["https://faucet.toronto.sx.technology"],nativeCurrency:{name:"SX Network",symbol:"SX",decimals:18},infoURL:"https://www.sx.technology",shortName:"SX-Testnet",chainId:647,networkId:647,explorers:[{name:"SX Network Toronto Explorer",url:"https://explorer.toronto.sx.technology",standard:"EIP3091"}],testnet:!0,slug:"sx-network-testnet"},uGt={name:"Endurance Smart Chain Mainnet",chain:"ACE",rpc:["https://rpc-endurance.fusionist.io/"],faucets:[],nativeCurrency:{name:"Endurance Chain Native Token",symbol:"ACE",decimals:18},infoURL:"https://ace.fusionist.io/",shortName:"ace",chainId:648,networkId:648,explorers:[{name:"Endurance Scan",url:"https://explorer.endurance.fusionist.io",standard:"EIP3091"}],testnet:!1,slug:"endurance-smart-chain"},lGt={name:"Pixie Chain Testnet",chain:"PixieChain",rpc:["https://http-testnet.chain.pixie.xyz","wss://ws-testnet.chain.pixie.xyz"],faucets:["https://chain.pixie.xyz/faucet"],nativeCurrency:{name:"Pixie Chain Testnet Native Token",symbol:"PCTT",decimals:18},infoURL:"https://scan-testnet.chain.pixie.xyz",shortName:"pixie-chain-testnet",chainId:666,networkId:666,testnet:!0,slug:"pixie-chain-testnet"},dGt={name:"Karura Network",chain:"KAR",rpc:[],faucets:[],nativeCurrency:{name:"Karura Token",symbol:"KAR",decimals:18},infoURL:"https://karura.network",shortName:"kar",chainId:686,networkId:686,slip44:686,testnet:!1,slug:"karura-network"},pGt={name:"Star Social Testnet",chain:"SNS",rpc:["https://avastar.cc/ext/bc/C/rpc"],faucets:[],nativeCurrency:{name:"Social",symbol:"SNS",decimals:18},infoURL:"https://info.avastar.cc",shortName:"SNS",chainId:700,networkId:700,explorers:[{name:"starscan",url:"https://avastar.info",standard:"EIP3091"}],testnet:!0,slug:"star-social-testnet"},hGt={name:"BlockChain Station Mainnet",chain:"BCS",rpc:["https://rpc-mainnet.bcsdev.io","wss://rpc-ws-mainnet.bcsdev.io"],faucets:[],nativeCurrency:{name:"BCS Token",symbol:"BCS",decimals:18},infoURL:"https://blockchainstation.io",shortName:"bcs",chainId:707,networkId:707,explorers:[{name:"BlockChain Station Explorer",url:"https://explorer.bcsdev.io",standard:"EIP3091"}],testnet:!1,slug:"blockchain-station"},fGt={name:"BlockChain Station Testnet",chain:"BCS",rpc:["https://rpc-testnet.bcsdev.io","wss://rpc-ws-testnet.bcsdev.io"],faucets:["https://faucet.bcsdev.io"],nativeCurrency:{name:"BCS Testnet Token",symbol:"tBCS",decimals:18},infoURL:"https://blockchainstation.io",shortName:"tbcs",chainId:708,networkId:708,explorers:[{name:"BlockChain Station Explorer",url:"https://testnet.bcsdev.io",standard:"EIP3091"}],testnet:!0,slug:"blockchain-station-testnet"},mGt={name:"Lycan Chain",chain:"LYC",rpc:["https://rpc.lycanchain.com/"],faucets:[],nativeCurrency:{name:"Lycan",symbol:"LYC",decimals:18},infoURL:"https://lycanchain.com",shortName:"LYC",chainId:721,networkId:721,icon:{url:"ipfs://Qmc8hsCbUUjnJDnXrDhFh4V1xk1gJwZbUyNJ39p72javji",width:400,height:400,format:"png"},explorers:[{name:"blockscout",url:"https://explorer.lycanchain.com",standard:"EIP3091"}],testnet:!1,slug:"lycan-chain"},yGt={name:"Vention Smart Chain Testnet",chain:"VSCT",icon:{url:"ipfs://QmcNepHmbmHW1BZYM3MFqJW4awwhmDqhUPRXXmRnXwg1U4",width:250,height:250,format:"png"},rpc:["https://node-testnet.vention.network"],faucets:["https://faucet.vention.network"],nativeCurrency:{name:"VNT",symbol:"VNT",decimals:18},infoURL:"https://testnet.ventionscan.io",shortName:"vsct",chainId:741,networkId:741,explorers:[{name:"ventionscan",url:"https://testnet.ventionscan.io",standard:"EIP3091"}],testnet:!0,slug:"vention-smart-chain-testnet"},gGt={name:"QL1",chain:"QOM",status:"incubating",rpc:["https://rpc.qom.one"],faucets:[],nativeCurrency:{name:"Shiba Predator",symbol:"QOM",decimals:18},infoURL:"https://qom.one",shortName:"qom",chainId:766,networkId:766,icon:{url:"ipfs://QmRc1kJ7AgcDL1BSoMYudatWHTrz27K6WNTwGifQb5V17D",width:518,height:518,format:"png"},explorers:[{name:"QL1 Mainnet Explorer",url:"https://mainnet.qom.one",icon:"qom",standard:"EIP3091"}],testnet:!1,slug:"ql1"},vGt={name:"OpenChain Testnet",chain:"OpenChain Testnet",rpc:[],faucets:["https://faucet.openchain.info/"],nativeCurrency:{name:"Openchain Testnet",symbol:"TOPC",decimals:18},infoURL:"https://testnet.openchain.info/",shortName:"opc",chainId:776,networkId:776,explorers:[{name:"OPEN CHAIN TESTNET",url:"https://testnet.openchain.info",standard:"none"}],testnet:!0,slug:"openchain-testnet"},bGt={name:"cheapETH",chain:"cheapETH",rpc:["https://node.cheapeth.org/rpc"],faucets:[],nativeCurrency:{name:"cTH",symbol:"cTH",decimals:18},infoURL:"https://cheapeth.org/",shortName:"cth",chainId:777,networkId:777,testnet:!1,slug:"cheapeth"},wGt={name:"Acala Network",chain:"ACA",rpc:[],faucets:[],nativeCurrency:{name:"Acala Token",symbol:"ACA",decimals:18},infoURL:"https://acala.network",shortName:"aca",chainId:787,networkId:787,slip44:787,testnet:!1,slug:"acala-network"},xGt={name:"Aerochain Testnet",chain:"Aerochain",rpc:["https://testnet-rpc.aerochain.id/"],faucets:["https://faucet.aerochain.id/"],nativeCurrency:{name:"Aerochain Testnet",symbol:"TAero",decimals:18},infoURL:"https://aerochaincoin.org/",shortName:"taero",chainId:788,networkId:788,explorers:[{name:"aeroscan",url:"https://testnet.aeroscan.id",standard:"EIP3091"}],testnet:!0,slug:"aerochain-testnet"},TGt={name:"Lucid Blockchain",chain:"Lucid Blockchain",icon:{url:"ipfs://bafybeigxiyyxll4vst5cjjh732mr6zhsnligxubaldyiul2xdvvi6ibktu",width:800,height:800,format:"png"},rpc:["https://rpc.lucidcoin.io"],faucets:["https://faucet.lucidcoin.io"],nativeCurrency:{name:"LUCID",symbol:"LUCID",decimals:18},infoURL:"https://lucidcoin.io",shortName:"LUCID",chainId:800,networkId:800,explorers:[{name:"Lucid Explorer",url:"https://explorer.lucidcoin.io",standard:"none"}],testnet:!1,slug:"lucid-blockchain"},_Gt={name:"Haic",chain:"Haic",rpc:["https://orig.haichain.io/"],faucets:[],nativeCurrency:{name:"Haicoin",symbol:"HAIC",decimals:18},infoURL:"https://www.haichain.io/",shortName:"haic",chainId:803,networkId:803,testnet:!1,slug:"haic"},CGt={name:"Portal Fantasy Chain Test",chain:"PF",icon:{url:"ipfs://QmeMa6aw3ebUKJdGgbzDgcVtggzp7cQdfSrmzMYmnt5ywc",width:200,height:200,format:"png"},rpc:["https://subnets.avax.network/portal-fantasy/testnet/rpc"],faucets:[],nativeCurrency:{name:"Portal Fantasy Token",symbol:"PFT",decimals:18},infoURL:"https://portalfantasy.io",shortName:"PFTEST",chainId:808,networkId:808,explorers:[],testnet:!0,slug:"portal-fantasy-chain-test"},EGt={name:"Qitmeer",chain:"MEER",rpc:["https://evm-dataseed1.meerscan.io","https://evm-dataseed2.meerscan.io","https://evm-dataseed3.meerscan.io","https://evm-dataseed.meerscan.com","https://evm-dataseed1.meerscan.com","https://evm-dataseed2.meerscan.com"],faucets:[],nativeCurrency:{name:"Qitmeer",symbol:"MEER",decimals:18},infoURL:"https://github.com/Qitmeer",shortName:"meer",chainId:813,networkId:813,slip44:813,icon:{url:"ipfs://QmWSbMuCwQzhBB6GRLYqZ87n5cnpzpYCehCAMMQmUXj4mm",width:512,height:512,format:"png"},explorers:[{name:"meerscan",url:"https://evm.meerscan.com",standard:"none"}],testnet:!1,slug:"qitmeer"},kGt={name:"Callisto Mainnet",chain:"CLO",rpc:["https://rpc.callisto.network/"],faucets:[],nativeCurrency:{name:"Callisto",symbol:"CLO",decimals:18},infoURL:"https://callisto.network",shortName:"clo",chainId:820,networkId:1,slip44:820,testnet:!1,slug:"callisto"},SGt={name:"Taraxa Mainnet",chain:"Tara",icon:{url:"ipfs://QmQhdktNyBeXmCaVuQpi1B4yXheSUKrJA17L4wpECKzG5D",width:310,height:310,format:"png"},rpc:["https://rpc.mainnet.taraxa.io/"],faucets:[],nativeCurrency:{name:"Tara",symbol:"TARA",decimals:18},infoURL:"https://taraxa.io",shortName:"tara",chainId:841,networkId:841,explorers:[{name:"Taraxa Explorer",url:"https://explorer.mainnet.taraxa.io",standard:"none"}],testnet:!1,slug:"taraxa"},AGt={name:"Taraxa Testnet",chain:"Tara",icon:{url:"ipfs://QmQhdktNyBeXmCaVuQpi1B4yXheSUKrJA17L4wpECKzG5D",width:310,height:310,format:"png"},rpc:["https://rpc.testnet.taraxa.io/"],faucets:[],nativeCurrency:{name:"Tara",symbol:"TARA",decimals:18},infoURL:"https://taraxa.io",shortName:"taratest",chainId:842,networkId:842,explorers:[{name:"Taraxa Explorer",url:"https://explorer.testnet.taraxa.io",standard:"none"}],testnet:!0,slug:"taraxa-testnet"},MGt={name:"Zeeth Chain Dev",chain:"ZeethChainDev",rpc:["https://rpc.dev.zeeth.io"],faucets:[],nativeCurrency:{name:"Zeeth Token",symbol:"ZTH",decimals:18},infoURL:"",shortName:"zeethdev",chainId:859,networkId:859,explorers:[{name:"Zeeth Explorer Dev",url:"https://explorer.dev.zeeth.io",standard:"none"}],testnet:!1,slug:"zeeth-chain-dev"},IGt={name:"Fantasia Chain Mainnet",chain:"FSC",rpc:["https://mainnet-data1.fantasiachain.com/","https://mainnet-data2.fantasiachain.com/","https://mainnet-data3.fantasiachain.com/"],faucets:[],nativeCurrency:{name:"FST",symbol:"FST",decimals:18},infoURL:"https://fantasia.technology/",shortName:"FSCMainnet",chainId:868,networkId:868,explorers:[{name:"FSCScan",url:"https://explorer.fantasiachain.com",standard:"EIP3091"}],testnet:!1,slug:"fantasia-chain"},PGt={name:"Dexit Network",chain:"DXT",rpc:["https://dxt.dexit.network"],faucets:["https://faucet.dexit.network"],nativeCurrency:{name:"Dexit network",symbol:"DXT",decimals:18},infoURL:"https://dexit.network",shortName:"DXT",chainId:877,networkId:877,explorers:[{name:"dxtscan",url:"https://dxtscan.com",standard:"EIP3091"}],testnet:!1,slug:"dexit-network"},RGt={name:"Ambros Chain Mainnet",chain:"ambroschain",rpc:["https://api.ambros.network"],faucets:[],nativeCurrency:{name:"AMBROS",symbol:"AMBROS",decimals:18},infoURL:"https://ambros.network",shortName:"ambros",chainId:880,networkId:880,explorers:[{name:"Ambros Chain Explorer",url:"https://ambrosscan.com",standard:"none"}],testnet:!1,slug:"ambros-chain"},NGt={name:"Wanchain",chain:"WAN",rpc:["https://gwan-ssl.wandevs.org:56891/"],faucets:[],nativeCurrency:{name:"Wancoin",symbol:"WAN",decimals:18},infoURL:"https://www.wanscan.org",shortName:"wan",chainId:888,networkId:888,slip44:5718350,testnet:!1,slug:"wanchain"},OGt={name:"Garizon Testnet Stage0",chain:"GAR",icon:{url:"ipfs://QmW3WRyuLZ95K8hvV2QN6rP5yWY98sSzWyVUxD2eUjXGrc",width:1024,height:613,format:"png"},rpc:["https://s0-testnet.garizon.net/rpc"],faucets:["https://faucet-testnet.garizon.com"],nativeCurrency:{name:"Garizon",symbol:"GAR",decimals:18},infoURL:"https://garizon.com",shortName:"gar-test-s0",chainId:900,networkId:900,explorers:[{name:"explorer",url:"https://explorer-testnet.garizon.com",icon:"garizon",standard:"EIP3091"}],testnet:!0,slug:"garizon-testnet-stage0"},LGt={name:"Garizon Testnet Stage1",chain:"GAR",icon:{url:"ipfs://QmW3WRyuLZ95K8hvV2QN6rP5yWY98sSzWyVUxD2eUjXGrc",width:1024,height:613,format:"png"},rpc:["https://s1-testnet.garizon.net/rpc"],faucets:["https://faucet-testnet.garizon.com"],nativeCurrency:{name:"Garizon",symbol:"GAR",decimals:18},infoURL:"https://garizon.com",shortName:"gar-test-s1",chainId:901,networkId:901,explorers:[{name:"explorer",url:"https://explorer-testnet.garizon.com",icon:"garizon",standard:"EIP3091"}],parent:{chain:"eip155-900",type:"shard"},testnet:!0,slug:"garizon-testnet-stage1"},BGt={name:"Garizon Testnet Stage2",chain:"GAR",icon:{url:"ipfs://QmW3WRyuLZ95K8hvV2QN6rP5yWY98sSzWyVUxD2eUjXGrc",width:1024,height:613,format:"png"},rpc:["https://s2-testnet.garizon.net/rpc"],faucets:["https://faucet-testnet.garizon.com"],nativeCurrency:{name:"Garizon",symbol:"GAR",decimals:18},infoURL:"https://garizon.com",shortName:"gar-test-s2",chainId:902,networkId:902,explorers:[{name:"explorer",url:"https://explorer-testnet.garizon.com",icon:"garizon",standard:"EIP3091"}],parent:{chain:"eip155-900",type:"shard"},testnet:!0,slug:"garizon-testnet-stage2"},qGt={name:"Garizon Testnet Stage3",chain:"GAR",icon:{url:"ipfs://QmW3WRyuLZ95K8hvV2QN6rP5yWY98sSzWyVUxD2eUjXGrc",width:1024,height:613,format:"png"},rpc:["https://s3-testnet.garizon.net/rpc"],faucets:["https://faucet-testnet.garizon.com"],nativeCurrency:{name:"Garizon",symbol:"GAR",decimals:18},infoURL:"https://garizon.com",shortName:"gar-test-s3",chainId:903,networkId:903,explorers:[{name:"explorer",url:"https://explorer-testnet.garizon.com",icon:"garizon",standard:"EIP3091"}],parent:{chain:"eip155-900",type:"shard"},testnet:!0,slug:"garizon-testnet-stage3"},DGt={name:"Portal Fantasy Chain",chain:"PF",icon:{url:"ipfs://QmeMa6aw3ebUKJdGgbzDgcVtggzp7cQdfSrmzMYmnt5ywc",width:200,height:200,format:"png"},rpc:[],faucets:[],nativeCurrency:{name:"Portal Fantasy Token",symbol:"PFT",decimals:18},infoURL:"https://portalfantasy.io",shortName:"PF",chainId:909,networkId:909,explorers:[],status:"incubating",testnet:!1,slug:"portal-fantasy-chain"},FGt={name:"Rinia Testnet",chain:"FIRE",icon:{url:"ipfs://QmRnnw2gtbU9TWJMLJ6tks7SN6HQV5rRugeoyN6csTYHt1",width:512,height:512,format:"png"},rpc:["https://rinia.rpc1.thefirechain.com"],faucets:["https://faucet.thefirechain.com"],nativeCurrency:{name:"Firechain",symbol:"FIRE",decimals:18},infoURL:"https://thefirechain.com",shortName:"tfire",chainId:917,networkId:917,explorers:[],status:"incubating",testnet:!0,slug:"rinia-testnet"},UGt={name:"PulseChain Testnet",shortName:"tpls",chain:"tPLS",chainId:940,networkId:940,infoURL:"https://pulsechain.com/",rpc:["https://rpc.v2.testnet.pulsechain.com/","wss://rpc.v2.testnet.pulsechain.com/"],faucets:["https://faucet.v2.testnet.pulsechain.com/"],nativeCurrency:{name:"Test Pulse",symbol:"tPLS",decimals:18},testnet:!0,slug:"pulsechain-testnet"},WGt={name:"PulseChain Testnet v2b",shortName:"t2bpls",chain:"t2bPLS",chainId:941,networkId:941,infoURL:"https://pulsechain.com/",rpc:["https://rpc.v2b.testnet.pulsechain.com/","wss://rpc.v2b.testnet.pulsechain.com/"],faucets:["https://faucet.v2b.testnet.pulsechain.com/"],nativeCurrency:{name:"Test Pulse",symbol:"tPLS",decimals:18},testnet:!0,slug:"pulsechain-testnet-v2b"},jGt={name:"PulseChain Testnet v3",shortName:"t3pls",chain:"t3PLS",chainId:942,networkId:942,infoURL:"https://pulsechain.com/",rpc:["https://rpc.v3.testnet.pulsechain.com/","wss://rpc.v3.testnet.pulsechain.com/"],faucets:["https://faucet.v3.testnet.pulsechain.com/"],nativeCurrency:{name:"Test Pulse",symbol:"tPLS",decimals:18},testnet:!0,slug:"pulsechain-testnet-v3"},zGt={name:"muNode Testnet",chain:"munode",rpc:[],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://munode.dev/",shortName:"munode",chainId:956,networkId:956,testnet:!0,slug:"munode-testnet"},HGt={name:"Oort Mainnet",chain:"Oort Mainnet",rpc:["https://rpc.oortech.com"],faucets:[],nativeCurrency:{name:"Oort",symbol:"CCN",decimals:18},infoURL:"https://oortech.com",shortName:"ccn",chainId:970,networkId:970,icon:{url:"ipfs://QmZ1jbxFZcuotj3eZ6iKFrg9ZXnaV8AK6sGRa7ELrceWyD",width:1043,height:1079,format:"png"},testnet:!1,slug:"oort"},VGt={name:"Oort Huygens",chain:"Huygens",rpc:[],faucets:[],nativeCurrency:{name:"Oort",symbol:"CCN",decimals:18},infoURL:"https://oortech.com",shortName:"Huygens",chainId:971,networkId:971,icon:{url:"ipfs://QmZ1jbxFZcuotj3eZ6iKFrg9ZXnaV8AK6sGRa7ELrceWyD",width:1043,height:1079,format:"png"},testnet:!1,slug:"oort-huygens"},GGt={name:"Oort Ascraeus",title:"Oort Ascraeus",chain:"Ascraeus",rpc:["https://ascraeus-rpc.oortech.com"],faucets:[],nativeCurrency:{name:"Oort",symbol:"CCNA",decimals:18},infoURL:"https://oortech.com",shortName:"Ascraeus",chainId:972,networkId:972,icon:{url:"ipfs://QmZ1jbxFZcuotj3eZ6iKFrg9ZXnaV8AK6sGRa7ELrceWyD",width:1043,height:1079,format:"png"},testnet:!1,slug:"oort-ascraeus"},ZGt={name:"Nepal Blockchain Network",chain:"YETI",rpc:["https://api.nepalblockchain.dev","https://api.nepalblockchain.network"],faucets:["https://faucet.nepalblockchain.network"],nativeCurrency:{name:"Nepal Blockchain Network Ether",symbol:"YETI",decimals:18},infoURL:"https://nepalblockchain.network",shortName:"yeti",chainId:977,networkId:977,testnet:!1,slug:"nepal-blockchain-network"},JGt={name:"TOP Mainnet EVM",chain:"TOP",icon:{url:"ipfs://QmYikaM849eZrL8pGNeVhEHVTKWpxdGMvCY5oFBfZ2ndhd",width:800,height:800,format:"png"},rpc:["https://ethapi.topnetwork.org"],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://www.topnetwork.org/",shortName:"top_evm",chainId:980,networkId:0,explorers:[{name:"topscan.dev",url:"https://www.topscan.io",standard:"none"}],testnet:!1,slug:"top-evm"},KGt={name:"Memo Smart Chain Mainnet",chain:"MEMO",rpc:["https://chain.metamemo.one:8501","wss://chain.metamemo.one:16801"],faucets:["https://faucet.metamemo.one/"],nativeCurrency:{name:"Memo",symbol:"CMEMO",decimals:18},infoURL:"www.memolabs.org",shortName:"memochain",chainId:985,networkId:985,icon:{url:"ipfs://bafkreig52paynhccs4o5ew6f7mk3xoqu2bqtitmfvlgnwarh2pm33gbdrq",width:128,height:128,format:"png"},explorers:[{name:"Memo Mainnet Explorer",url:"https://scan.metamemo.one:8080",icon:"memoscan",standard:"EIP3091"}],testnet:!1,slug:"memo-smart-chain"},QGt={name:"TOP Mainnet",chain:"TOP",icon:{url:"ipfs://QmYikaM849eZrL8pGNeVhEHVTKWpxdGMvCY5oFBfZ2ndhd",width:800,height:800,format:"png"},rpc:[],faucets:[],nativeCurrency:{name:"TOP",symbol:"TOP",decimals:6},infoURL:"https://www.topnetwork.org/",shortName:"top",chainId:989,networkId:0,explorers:[{name:"topscan.dev",url:"https://www.topscan.io",standard:"none"}],testnet:!1,slug:"top"},XGt={name:"Lucky Network",chain:"LN",rpc:["https://rpc.luckynetwork.org","wss://ws.lnscan.org","https://rpc.lnscan.org"],faucets:[],nativeCurrency:{name:"Lucky",symbol:"L99",decimals:18},infoURL:"https://luckynetwork.org",shortName:"ln",chainId:998,networkId:998,icon:{url:"ipfs://bafkreidmvcd5i7touug55hj45mf2pgabxamy5fziva7mtx5n664s3yap6m",width:205,height:28,format:"png"},explorers:[{name:"blockscout",url:"https://explorer.luckynetwork.org",standard:"none"},{name:"expedition",url:"https://lnscan.org",standard:"none"}],testnet:!1,slug:"lucky-network"},YGt={name:"Wanchain Testnet",chain:"WAN",rpc:["https://gwan-ssl.wandevs.org:46891/"],faucets:[],nativeCurrency:{name:"Wancoin",symbol:"WAN",decimals:18},infoURL:"https://testnet.wanscan.org",shortName:"twan",chainId:999,networkId:999,testnet:!0,slug:"wanchain-testnet"},$Gt={name:"GTON Mainnet",chain:"GTON",rpc:["https://rpc.gton.network/"],faucets:[],nativeCurrency:{name:"GCD",symbol:"GCD",decimals:18},infoURL:"https://gton.capital",shortName:"gton",chainId:1e3,networkId:1e3,explorers:[{name:"GTON Network Explorer",url:"https://explorer.gton.network",standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-1"},testnet:!1,slug:"gton"},eZt={name:"Klaytn Testnet Baobab",chain:"KLAY",rpc:["https://api.baobab.klaytn.net:8651"],faucets:["https://baobab.wallet.klaytn.com/access?next=faucet"],nativeCurrency:{name:"KLAY",symbol:"KLAY",decimals:18},infoURL:"https://www.klaytn.com/",shortName:"Baobab",chainId:1001,networkId:1001,testnet:!0,slug:"klaytn-testnet-baobab"},tZt={name:"T-EKTA",title:"EKTA Testnet T-EKTA",chain:"T-EKTA",rpc:["https://test.ekta.io:8545"],faucets:[],nativeCurrency:{name:"T-EKTA",symbol:"T-EKTA",decimals:18},infoURL:"https://www.ekta.io",shortName:"t-ekta",chainId:1004,networkId:1004,icon:{url:"ipfs://QmfMd564KUPK8eKZDwGCT71ZC2jMnUZqP6LCtLpup3rHH1",width:2100,height:2100,format:"png"},explorers:[{name:"test-ektascan",url:"https://test.ektascan.io",icon:"ekta",standard:"EIP3091"}],testnet:!0,slug:"t-ekta"},rZt={name:"Newton Testnet",chain:"NEW",rpc:["https://rpc1.newchain.newtonproject.org"],faucets:[],nativeCurrency:{name:"Newton",symbol:"NEW",decimals:18},infoURL:"https://www.newtonproject.org/",shortName:"tnew",chainId:1007,networkId:1007,testnet:!0,slug:"newton-testnet"},nZt={name:"Eurus Mainnet",chain:"EUN",rpc:["https://mainnet.eurus.network/"],faucets:[],nativeCurrency:{name:"Eurus",symbol:"EUN",decimals:18},infoURL:"https://eurus.network",shortName:"eun",chainId:1008,networkId:1008,icon:{url:"ipfs://QmaGd5L9jGPbfyGXBFhu9gjinWJ66YtNrXq8x6Q98Eep9e",width:471,height:471,format:"svg"},explorers:[{name:"eurusexplorer",url:"https://explorer.eurus.network",icon:"eurus",standard:"none"}],testnet:!1,slug:"eurus"},aZt={name:"Evrice Network",chain:"EVC",rpc:["https://meta.evrice.com"],faucets:[],nativeCurrency:{name:"Evrice",symbol:"EVC",decimals:18},infoURL:"https://evrice.com",shortName:"EVC",chainId:1010,networkId:1010,slip44:1020,testnet:!1,slug:"evrice-network"},iZt={name:"Newton",chain:"NEW",rpc:["https://global.rpc.mainnet.newtonproject.org"],faucets:[],nativeCurrency:{name:"Newton",symbol:"NEW",decimals:18},infoURL:"https://www.newtonproject.org/",shortName:"new",chainId:1012,networkId:1012,testnet:!1,slug:"newton"},sZt={name:"Sakura",chain:"Sakura",rpc:[],faucets:[],nativeCurrency:{name:"Sakura",symbol:"SKU",decimals:18},infoURL:"https://clover.finance/sakura",shortName:"sku",chainId:1022,networkId:1022,testnet:!1,slug:"sakura"},oZt={name:"Clover Testnet",chain:"Clover",rpc:[],faucets:[],nativeCurrency:{name:"Clover",symbol:"CLV",decimals:18},infoURL:"https://clover.finance",shortName:"tclv",chainId:1023,networkId:1023,testnet:!0,slug:"clover-testnet"},cZt={name:"CLV Parachain",chain:"CLV",rpc:["https://api-para.clover.finance"],faucets:[],nativeCurrency:{name:"CLV",symbol:"CLV",decimals:18},infoURL:"https://clv.org",shortName:"clv",chainId:1024,networkId:1024,testnet:!1,slug:"clv-parachain"},uZt={name:"BitTorrent Chain Testnet",chain:"BTTC",rpc:["https://testrpc.bittorrentchain.io/"],faucets:[],nativeCurrency:{name:"BitTorrent",symbol:"BTT",decimals:18},infoURL:"https://bittorrentchain.io/",shortName:"tbtt",chainId:1028,networkId:1028,explorers:[{name:"testbttcscan",url:"https://testscan.bittorrentchain.io",standard:"none"}],testnet:!0,slug:"bittorrent-chain-testnet"},lZt={name:"Conflux eSpace",chain:"Conflux",rpc:["https://evm.confluxrpc.com"],faucets:[],nativeCurrency:{name:"CFX",symbol:"CFX",decimals:18},infoURL:"https://confluxnetwork.org",shortName:"cfx",chainId:1030,networkId:1030,icon:{url:"ipfs://bafkreifj7n24u2dslfijfihwqvpdeigt5aj3k3sxv6s35lv75sxsfr3ojy",width:460,height:576,format:"png"},explorers:[{name:"Conflux Scan",url:"https://evm.confluxscan.net",standard:"none"}],testnet:!1,slug:"conflux-espace"},dZt={name:"Proxy Network Testnet",chain:"Proxy Network",rpc:["http://128.199.94.183:8041"],faucets:[],nativeCurrency:{name:"PRX",symbol:"PRX",decimals:18},infoURL:"https://theproxy.network",shortName:"prx",chainId:1031,networkId:1031,explorers:[{name:"proxy network testnet",url:"http://testnet-explorer.theproxy.network",standard:"EIP3091"}],testnet:!0,slug:"proxy-network-testnet"},pZt={name:"Bronos Testnet",chain:"Bronos",rpc:["https://evm-testnet.bronos.org"],faucets:["https://faucet.bronos.org"],nativeCurrency:{name:"tBRO",symbol:"tBRO",decimals:18},infoURL:"https://bronos.org",shortName:"bronos-testnet",chainId:1038,networkId:1038,icon:{url:"ipfs://bafybeifkgtmhnq4sxu6jn22i7ass7aih6ubodr77k6ygtu4tjbvpmkw2ga",width:500,height:500,format:"png"},explorers:[{name:"Bronos Testnet Explorer",url:"https://tbroscan.bronos.org",standard:"none",icon:"bronos"}],testnet:!0,slug:"bronos-testnet"},hZt={name:"Bronos Mainnet",chain:"Bronos",rpc:[],faucets:[],nativeCurrency:{name:"BRO",symbol:"BRO",decimals:18},infoURL:"https://bronos.org",shortName:"bronos-mainnet",chainId:1039,networkId:1039,icon:{url:"ipfs://bafybeifkgtmhnq4sxu6jn22i7ass7aih6ubodr77k6ygtu4tjbvpmkw2ga",width:500,height:500,format:"png"},explorers:[{name:"Bronos Explorer",url:"https://broscan.bronos.org",standard:"none",icon:"bronos"}],testnet:!1,slug:"bronos"},fZt={name:"Metis Andromeda Mainnet",chain:"ETH",rpc:["https://andromeda.metis.io/?owner=1088"],faucets:[],nativeCurrency:{name:"Metis",symbol:"METIS",decimals:18},infoURL:"https://www.metis.io",shortName:"metis-andromeda",chainId:1088,networkId:1088,explorers:[{name:"blockscout",url:"https://andromeda-explorer.metis.io",standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-1",bridges:[{url:"https://bridge.metis.io"}]},testnet:!1,slug:"metis-andromeda"},mZt={name:"MOAC mainnet",chain:"MOAC",rpc:[],faucets:[],nativeCurrency:{name:"MOAC",symbol:"mc",decimals:18},infoURL:"https://moac.io",shortName:"moac",chainId:1099,networkId:1099,slip44:314,explorers:[{name:"moac explorer",url:"https://explorer.moac.io",standard:"none"}],testnet:!1,slug:"moac"},yZt={name:"WEMIX3.0 Mainnet",chain:"WEMIX",rpc:["https://api.wemix.com","wss://ws.wemix.com"],faucets:[],nativeCurrency:{name:"WEMIX",symbol:"WEMIX",decimals:18},infoURL:"https://wemix.com",shortName:"wemix",chainId:1111,networkId:1111,explorers:[{name:"WEMIX Block Explorer",url:"https://explorer.wemix.com",standard:"EIP3091"}],testnet:!1,slug:"wemix3-0"},gZt={name:"WEMIX3.0 Testnet",chain:"TWEMIX",rpc:["https://api.test.wemix.com","wss://ws.test.wemix.com"],faucets:["https://wallet.test.wemix.com/faucet"],nativeCurrency:{name:"TestnetWEMIX",symbol:"tWEMIX",decimals:18},infoURL:"https://wemix.com",shortName:"twemix",chainId:1112,networkId:1112,explorers:[{name:"WEMIX Testnet Microscope",url:"https://microscope.test.wemix.com",standard:"EIP3091"}],testnet:!0,slug:"wemix3-0-testnet"},vZt={name:"Core Blockchain Testnet",chain:"Core",icon:{url:"ipfs://QmeTQaBCkpbsxNNWTpoNrMsnwnAEf1wYTcn7CiiZGfUXD2",width:200,height:217,format:"png"},rpc:["https://rpc.test.btcs.network/"],faucets:["https://scan.test.btcs.network/faucet"],nativeCurrency:{name:"Core Blockchain Testnet Native Token",symbol:"tCORE",decimals:18},infoURL:"https://www.coredao.org",shortName:"tcore",chainId:1115,networkId:1115,explorers:[{name:"Core Scan Testnet",url:"https://scan.test.btcs.network",icon:"core",standard:"EIP3091"}],testnet:!0,slug:"core-blockchain-testnet"},bZt={name:"Core Blockchain Mainnet",chain:"Core",icon:{url:"ipfs://QmeTQaBCkpbsxNNWTpoNrMsnwnAEf1wYTcn7CiiZGfUXD2",width:200,height:217,format:"png"},rpc:["https://rpc.coredao.org/"],faucets:[],nativeCurrency:{name:"Core Blockchain Native Token",symbol:"CORE",decimals:18},infoURL:"https://www.coredao.org",shortName:"core",chainId:1116,networkId:1116,explorers:[{name:"Core Scan",url:"https://scan.coredao.org",icon:"core",standard:"EIP3091"}],testnet:!1,slug:"core-blockchain"},wZt={name:"Dogcoin Mainnet",chain:"DOGS",icon:{url:"ipfs://QmZCadkExKThak3msvszZjo6UnAbUJKE61dAcg4TixuMC3",width:160,height:171,format:"png"},rpc:["https://mainnet-rpc.dogcoin.network"],faucets:["https://faucet.dogcoin.network"],nativeCurrency:{name:"Dogcoin",symbol:"DOGS",decimals:18},infoURL:"https://dogcoin.network",shortName:"DOGSm",chainId:1117,networkId:1117,explorers:[{name:"Dogcoin",url:"https://explorer.dogcoin.network",standard:"EIP3091"}],testnet:!1,slug:"dogcoin"},xZt={name:"DeFiChain EVM Network Mainnet",chain:"defichain-evm",status:"incubating",rpc:[],faucets:[],nativeCurrency:{name:"DeFiChain",symbol:"DFI",decimals:18},infoURL:"https://meta.defichain.com/",shortName:"DFI",chainId:1130,networkId:1130,slip44:1130,icon:{url:"ipfs://QmdR3YL9F95ajwVwfxAGoEzYwm9w7JNsPSfUPjSaQogVjK",width:512,height:512,format:"svg"},explorers:[],testnet:!1,slug:"defichain-evm-network"},TZt={name:"DeFiChain EVM Network Testnet",chain:"defichain-evm-testnet",status:"incubating",rpc:[],faucets:[],nativeCurrency:{name:"DeFiChain",symbol:"DFI",decimals:18},infoURL:"https://meta.defichain.com/",shortName:"DFI-T",chainId:1131,networkId:1131,icon:{url:"ipfs://QmdR3YL9F95ajwVwfxAGoEzYwm9w7JNsPSfUPjSaQogVjK",width:512,height:512,format:"svg"},explorers:[],testnet:!0,slug:"defichain-evm-network-testnet"},_Zt={name:"MathChain",chain:"MATH",rpc:["https://mathchain-asia.maiziqianbao.net/rpc","https://mathchain-us.maiziqianbao.net/rpc"],faucets:[],nativeCurrency:{name:"MathChain",symbol:"MATH",decimals:18},infoURL:"https://mathchain.org",shortName:"MATH",chainId:1139,networkId:1139,testnet:!1,slug:"mathchain"},CZt={name:"MathChain Testnet",chain:"MATH",rpc:["https://galois-hk.maiziqianbao.net/rpc"],faucets:["https://scan.boka.network/#/Galois/faucet"],nativeCurrency:{name:"MathChain",symbol:"MATH",decimals:18},infoURL:"https://mathchain.org",shortName:"tMATH",chainId:1140,networkId:1140,testnet:!0,slug:"mathchain-testnet"},EZt={name:"Smart Host Teknoloji TESTNET",chain:"SHT",rpc:["https://s2.tl.web.tr:4041"],faucets:[],nativeCurrency:{name:"Smart Host Teknoloji TESTNET",symbol:"tSHT",decimals:18},features:[{name:"EIP155"},{name:"EIP1559"}],infoURL:"https://smart-host.com.tr",shortName:"sht",chainId:1177,networkId:1177,icon:{url:"ipfs://QmTrLGHyQ1Le25Q7EgNSF5Qq8D2SocKvroDkLqurdBuSQQ",width:1655,height:1029,format:"png"},explorers:[{name:"Smart Host Teknoloji TESTNET Explorer",url:"https://s2.tl.web.tr:4000",icon:"smarthost",standard:"EIP3091"}],testnet:!0,slug:"smart-host-teknoloji-testnet"},kZt={name:"Iora Chain",chain:"IORA",icon:{url:"ipfs://bafybeiehps5cqdhqottu2efo4jeehwpkz5rbux3cjxd75rm6rjm4sgs2wi",width:250,height:250,format:"png"},rpc:["https://dataseed.iorachain.com"],faucets:[],nativeCurrency:{name:"Iora",symbol:"IORA",decimals:18},infoURL:"https://iorachain.com",shortName:"iora",chainId:1197,networkId:1197,explorers:[{name:"ioraexplorer",url:"https://explorer.iorachain.com",standard:"EIP3091"}],testnet:!1,slug:"iora-chain"},SZt={name:"Evanesco Testnet",chain:"Evanesco Testnet",rpc:["https://seed5.evanesco.org:8547"],faucets:[],nativeCurrency:{name:"AVIS",symbol:"AVIS",decimals:18},infoURL:"https://evanesco.org/",shortName:"avis",chainId:1201,networkId:1201,testnet:!0,slug:"evanesco-testnet"},AZt={name:"World Trade Technical Chain Mainnet",chain:"WTT",rpc:["https://rpc.cadaut.com","wss://rpc.cadaut.com/ws"],faucets:[],nativeCurrency:{name:"World Trade Token",symbol:"WTT",decimals:18},infoURL:"http://www.cadaut.com",shortName:"wtt",chainId:1202,networkId:2048,explorers:[{name:"WTTScout",url:"https://explorer.cadaut.com",standard:"EIP3091"}],testnet:!1,slug:"world-trade-technical-chain"},MZt={name:"Popcateum Mainnet",chain:"POPCATEUM",rpc:["https://dataseed.popcateum.org"],faucets:[],nativeCurrency:{name:"Popcat",symbol:"POP",decimals:18},infoURL:"https://popcateum.org",shortName:"popcat",chainId:1213,networkId:1213,explorers:[{name:"popcateum explorer",url:"https://explorer.popcateum.org",standard:"none"}],testnet:!1,slug:"popcateum"},IZt={name:"EnterChain Mainnet",chain:"ENTER",rpc:["https://tapi.entercoin.net/"],faucets:[],nativeCurrency:{name:"EnterCoin",symbol:"ENTER",decimals:18},infoURL:"https://entercoin.net",shortName:"enter",chainId:1214,networkId:1214,icon:{url:"ipfs://Qmb2UYVc1MjLPi8vhszWRxqBJYoYkWQVxDJRSmtrgk6j2E",width:64,height:64,format:"png"},explorers:[{name:"Enter Explorer - Expenter",url:"https://explorer.entercoin.net",icon:"enter",standard:"EIP3091"}],testnet:!1,slug:"enterchain"},PZt={name:"Exzo Network Mainnet",chain:"EXZO",icon:{url:"ipfs://QmeYpc2JfEsHa2Bh11SKRx3sgDtMeg6T8KpXNLepBEKnbJ",width:128,height:128,format:"png"},rpc:["https://mainnet.exzo.technology"],faucets:[],nativeCurrency:{name:"Exzo",symbol:"XZO",decimals:18},infoURL:"https://exzo.network",shortName:"xzo",chainId:1229,networkId:1229,explorers:[{name:"blockscout",url:"https://exzoscan.io",standard:"EIP3091"}],testnet:!1,slug:"exzo-network"},RZt={name:"Ultron Testnet",chain:"Ultron",icon:{url:"ipfs://QmS4W4kY7XYBA4f52vuuytXh3YaTcNBXF14V9tEY6SNqhz",width:512,height:512,format:"png"},rpc:["https://ultron-dev.io"],faucets:[],nativeCurrency:{name:"Ultron",symbol:"ULX",decimals:18},infoURL:"https://ultron.foundation",shortName:"UltronTestnet",chainId:1230,networkId:1230,explorers:[{name:"Ultron Testnet Explorer",url:"https://explorer.ultron-dev.io",icon:"ultron",standard:"none"}],testnet:!0,slug:"ultron-testnet"},NZt={name:"Ultron Mainnet",chain:"Ultron",icon:{url:"ipfs://QmS4W4kY7XYBA4f52vuuytXh3YaTcNBXF14V9tEY6SNqhz",width:512,height:512,format:"png"},rpc:["https://ultron-rpc.net"],faucets:[],nativeCurrency:{name:"Ultron",symbol:"ULX",decimals:18},infoURL:"https://ultron.foundation",shortName:"UtronMainnet",chainId:1231,networkId:1231,explorers:[{name:"Ultron Explorer",url:"https://ulxscan.com",icon:"ultron",standard:"none"}],testnet:!1,slug:"ultron"},OZt={name:"Step Network",title:"Step Main Network",chain:"STEP",icon:{url:"ipfs://QmVp9jyb3UFW71867yVtymmiRw7dPY4BTnsp3hEjr9tn8L",width:512,height:512,format:"png"},rpc:["https://rpc.step.network"],faucets:[],nativeCurrency:{name:"FITFI",symbol:"FITFI",decimals:18},infoURL:"https://step.network",shortName:"step",chainId:1234,networkId:1234,explorers:[{name:"StepScan",url:"https://stepscan.io",icon:"step",standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-43114",bridges:[{url:"https://bridge.step.network"}]},testnet:!1,slug:"step-network"},LZt={name:"OM Platform Mainnet",chain:"omplatform",rpc:["https://rpc-cnx.omplatform.com/"],faucets:[],nativeCurrency:{name:"OMCOIN",symbol:"OM",decimals:18},infoURL:"https://omplatform.com/",shortName:"om",chainId:1246,networkId:1246,explorers:[{name:"OMSCAN - Expenter",url:"https://omscan.omplatform.com",standard:"none"}],testnet:!1,slug:"om-platform"},BZt={name:"CIC Chain Testnet",chain:"CICT",rpc:["https://testapi.cicscan.com"],faucets:["https://cicfaucet.com"],nativeCurrency:{name:"Crazy Internet Coin",symbol:"CICT",decimals:18},infoURL:"https://www.cicchain.net",shortName:"CICT",chainId:1252,networkId:1252,icon:{url:"ipfs://QmNekc5gpyrQkeDQcmfJLBrP5fa6GMarB13iy6aHVdQJDU",width:1024,height:768,format:"png"},explorers:[{name:"CICscan",url:"https://testnet.cicscan.com",icon:"cicchain",standard:"EIP3091"}],testnet:!0,slug:"cic-chain-testnet"},qZt={name:"HALO Mainnet",chain:"HALO",rpc:["https://nodes.halo.land"],faucets:[],nativeCurrency:{name:"HALO",symbol:"HO",decimals:18},infoURL:"https://halo.land/#/",shortName:"HO",chainId:1280,networkId:1280,explorers:[{name:"HALOexplorer",url:"https://browser.halo.land",standard:"none"}],testnet:!1,slug:"halo"},DZt={name:"Moonbeam",chain:"MOON",rpc:["https://rpc.api.moonbeam.network","wss://wss.api.moonbeam.network"],faucets:[],nativeCurrency:{name:"Glimmer",symbol:"GLMR",decimals:18},infoURL:"https://moonbeam.network/networks/moonbeam/",shortName:"mbeam",chainId:1284,networkId:1284,explorers:[{name:"moonscan",url:"https://moonbeam.moonscan.io",standard:"none"}],testnet:!1,slug:"moonbeam"},FZt={name:"Moonriver",chain:"MOON",rpc:["https://rpc.api.moonriver.moonbeam.network","wss://wss.api.moonriver.moonbeam.network"],faucets:[],nativeCurrency:{name:"Moonriver",symbol:"MOVR",decimals:18},infoURL:"https://moonbeam.network/networks/moonriver/",shortName:"mriver",chainId:1285,networkId:1285,explorers:[{name:"moonscan",url:"https://moonriver.moonscan.io",standard:"none"}],testnet:!1,slug:"moonriver"},UZt={name:"Moonbase Alpha",chain:"MOON",rpc:["https://rpc.api.moonbase.moonbeam.network","wss://wss.api.moonbase.moonbeam.network"],faucets:[],nativeCurrency:{name:"Dev",symbol:"DEV",decimals:18},infoURL:"https://docs.moonbeam.network/networks/testnet/",shortName:"mbase",chainId:1287,networkId:1287,explorers:[{name:"moonscan",url:"https://moonbase.moonscan.io",standard:"none"}],testnet:!0,slug:"moonbase-alpha"},WZt={name:"Moonrock",chain:"MOON",rpc:["https://rpc.api.moonrock.moonbeam.network","wss://wss.api.moonrock.moonbeam.network"],faucets:[],nativeCurrency:{name:"Rocs",symbol:"ROC",decimals:18},infoURL:"https://docs.moonbeam.network/learn/platform/networks/overview/",shortName:"mrock",chainId:1288,networkId:1288,testnet:!1,slug:"moonrock"},jZt={name:"Bobabeam",chain:"Bobabeam",rpc:["https://bobabeam.boba.network","wss://wss.bobabeam.boba.network","https://replica.bobabeam.boba.network","wss://replica-wss.bobabeam.boba.network"],faucets:[],nativeCurrency:{name:"Boba Token",symbol:"BOBA",decimals:18},infoURL:"https://boba.network",shortName:"Bobabeam",chainId:1294,networkId:1294,explorers:[{name:"Bobabeam block explorer",url:"https://blockexplorer.bobabeam.boba.network",standard:"none"}],testnet:!1,slug:"bobabeam"},zZt={name:"Bobabase Testnet",chain:"Bobabase Testnet",rpc:["https://bobabase.boba.network","wss://wss.bobabase.boba.network","https://replica.bobabase.boba.network","wss://replica-wss.bobabase.boba.network"],faucets:[],nativeCurrency:{name:"Boba Token",symbol:"BOBA",decimals:18},infoURL:"https://boba.network",shortName:"Bobabase",chainId:1297,networkId:1297,explorers:[{name:"Bobabase block explorer",url:"https://blockexplorer.bobabase.boba.network",standard:"none"}],testnet:!0,slug:"bobabase-testnet"},HZt={name:"Dos Fuji Subnet",chain:"DOS",rpc:["https://test.doschain.com/jsonrpc"],faucets:[],nativeCurrency:{name:"Dos Native Token",symbol:"DOS",decimals:18},infoURL:"http://doschain.io/",shortName:"DOS",chainId:1311,networkId:1311,explorers:[{name:"dos-testnet",url:"https://test.doscan.io",standard:"EIP3091"}],testnet:!0,slug:"dos-fuji-subnet"},VZt={name:"Alyx Mainnet",chain:"ALYX",rpc:["https://rpc.alyxchain.com"],faucets:[],nativeCurrency:{name:"Alyx Chain Native Token",symbol:"ALYX",decimals:18},infoURL:"https://www.alyxchain.com",shortName:"alyx",chainId:1314,networkId:1314,explorers:[{name:"alyxscan",url:"https://www.alyxscan.com",standard:"EIP3091"}],icon:{url:"ipfs://bafkreifd43fcvh77mdcwjrpzpnlhthounc6b4u645kukqpqhduaveatf6i",width:2481,height:2481,format:"png"},testnet:!1,slug:"alyx"},GZt={name:"Aitd Mainnet",chain:"AITD",icon:{url:"ipfs://QmXbBMMhjTTGAGjmqMpJm3ufFrtdkfEXCFyXYgz7nnZzsy",width:160,height:160,format:"png"},rpc:["https://walletrpc.aitd.io","https://node.aitd.io"],faucets:[],nativeCurrency:{name:"AITD Mainnet",symbol:"AITD",decimals:18},infoURL:"https://www.aitd.io/",shortName:"aitd",chainId:1319,networkId:1319,explorers:[{name:"AITD Chain Explorer Mainnet",url:"https://aitd-explorer-new.aitd.io",standard:"EIP3091"}],testnet:!1,slug:"aitd"},ZZt={name:"Aitd Testnet",chain:"AITD",icon:{url:"ipfs://QmXbBMMhjTTGAGjmqMpJm3ufFrtdkfEXCFyXYgz7nnZzsy",width:160,height:160,format:"png"},rpc:["http://http-testnet.aitd.io"],faucets:["https://aitd-faucet-pre.aitdcoin.com/"],nativeCurrency:{name:"AITD Testnet",symbol:"AITD",decimals:18},infoURL:"https://www.aitd.io/",shortName:"aitdtestnet",chainId:1320,networkId:1320,explorers:[{name:"AITD Chain Explorer Testnet",url:"https://block-explorer-testnet.aitd.io",standard:"EIP3091"}],testnet:!0,slug:"aitd-testnet"},JZt={name:"CIC Chain Mainnet",chain:"CIC",rpc:["https://xapi.cicscan.com"],faucets:[],nativeCurrency:{name:"Crazy Internet Coin",symbol:"CIC",decimals:18},infoURL:"https://www.cicchain.net",shortName:"CIC",chainId:1353,networkId:1353,icon:{url:"ipfs://QmNekc5gpyrQkeDQcmfJLBrP5fa6GMarB13iy6aHVdQJDU",width:1024,height:768,format:"png"},explorers:[{name:"CICscan",url:"https://cicscan.com",icon:"cicchain",standard:"EIP3091"}],testnet:!1,slug:"cic-chain"},KZt={name:"AmStar Mainnet",chain:"AmStar",icon:{url:"ipfs://Qmd4TMQdnYxaUZqnVddh5S37NGH72g2kkK38ccCEgdZz1C",width:599,height:563,format:"png"},rpc:["https://mainnet-rpc.amstarscan.com"],faucets:[],nativeCurrency:{name:"SINSO",symbol:"SINSO",decimals:18},infoURL:"https://sinso.io",shortName:"ASAR",chainId:1388,networkId:1388,explorers:[{name:"amstarscan",url:"https://mainnet.amstarscan.com",standard:"EIP3091"}],testnet:!1,slug:"amstar"},QZt={name:"Polygon zkEVM Testnet",title:"Polygon zkEVM Testnet",chain:"Polygon",rpc:[],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://polygon.technology/solutions/polygon-zkevm/",shortName:"zkevmtest",chainId:1402,networkId:1402,explorers:[{name:"blockscout",url:"https://explorer.public.zkevm-test.net",standard:"EIP3091"}],testnet:!0,slug:"polygon-zkevm-testnet"},XZt={name:"Ctex Scan Blockchain",chain:"Ctex Scan Blockchain",icon:{url:"ipfs://bafkreid5evn4qovxo6msuekizv5zn7va62tea7w2zpdx5sskconebuhqle",width:800,height:800,format:"png"},rpc:["https://mainnet-rpc.ctexscan.com/"],faucets:["https://faucet.ctexscan.com"],nativeCurrency:{name:"CTEX",symbol:"CTEX",decimals:18},infoURL:"https://ctextoken.io",shortName:"CTEX",chainId:1455,networkId:1455,explorers:[{name:"Ctex Scan Explorer",url:"https://ctexscan.com",standard:"none"}],testnet:!1,slug:"ctex-scan-blockchain"},YZt={name:"Sherpax Mainnet",chain:"Sherpax Mainnet",rpc:["https://mainnet.sherpax.io/rpc"],faucets:[],nativeCurrency:{name:"KSX",symbol:"KSX",decimals:18},infoURL:"https://sherpax.io/",shortName:"Sherpax",chainId:1506,networkId:1506,explorers:[{name:"Sherpax Mainnet Explorer",url:"https://evm.sherpax.io",standard:"none"}],testnet:!1,slug:"sherpax"},$Zt={name:"Sherpax Testnet",chain:"Sherpax Testnet",rpc:["https://sherpax-testnet.chainx.org/rpc"],faucets:[],nativeCurrency:{name:"KSX",symbol:"KSX",decimals:18},infoURL:"https://sherpax.io/",shortName:"SherpaxTestnet",chainId:1507,networkId:1507,explorers:[{name:"Sherpax Testnet Explorer",url:"https://evm-pre.sherpax.io",standard:"none"}],testnet:!0,slug:"sherpax-testnet"},eJt={name:"Beagle Messaging Chain",chain:"BMC",rpc:["https://beagle.chat/eth"],faucets:["https://faucet.beagle.chat/"],nativeCurrency:{name:"Beagle",symbol:"BG",decimals:18},infoURL:"https://beagle.chat/",shortName:"beagle",chainId:1515,networkId:1515,explorers:[{name:"Beagle Messaging Chain Explorer",url:"https://eth.beagle.chat",standard:"EIP3091"}],testnet:!1,slug:"beagle-messaging-chain"},tJt={name:"Catecoin Chain Mainnet",chain:"Catechain",rpc:["https://send.catechain.com"],faucets:[],nativeCurrency:{name:"Catecoin",symbol:"CATE",decimals:18},infoURL:"https://catechain.com",shortName:"cate",chainId:1618,networkId:1618,testnet:!1,slug:"catecoin-chain"},rJt={name:"Atheios",chain:"ATH",rpc:["https://wallet.atheios.com:8797"],faucets:[],nativeCurrency:{name:"Atheios Ether",symbol:"ATH",decimals:18},infoURL:"https://atheios.com",shortName:"ath",chainId:1620,networkId:11235813,slip44:1620,testnet:!1,slug:"atheios"},nJt={name:"Btachain",chain:"btachain",rpc:["https://dataseed1.btachain.com/"],faucets:[],nativeCurrency:{name:"Bitcoin Asset",symbol:"BTA",decimals:18},infoURL:"https://bitcoinasset.io/",shortName:"bta",chainId:1657,networkId:1657,testnet:!1,slug:"btachain"},aJt={name:"LUDAN Mainnet",chain:"LUDAN",rpc:["https://rpc.ludan.org/"],faucets:[],nativeCurrency:{name:"LUDAN",symbol:"LUDAN",decimals:18},infoURL:"https://www.ludan.org/",shortName:"LUDAN",icon:{url:"ipfs://bafkreigzeanzqgxrzzep45t776ovbwi242poqxbryuu2go5eedeuwwcsay",width:512,height:512,format:"png"},chainId:1688,networkId:1688,testnet:!1,slug:"ludan"},iJt={name:"Anytype EVM Chain",chain:"ETH",icon:{url:"ipfs://QmaARJiAQUn4Z6wG8GLEry3kTeBB3k6RfHzSZU9SPhBgcG",width:200,height:200,format:"png"},rpc:["https://geth.anytype.io"],faucets:["https://evm.anytype.io/faucet"],nativeCurrency:{name:"ANY",symbol:"ANY",decimals:18},infoURL:"https://evm.anytype.io",shortName:"AnytypeChain",chainId:1701,networkId:1701,explorers:[{name:"Anytype Explorer",url:"https://explorer.anytype.io",icon:"any",standard:"EIP3091"}],testnet:!1,slug:"anytype-evm-chain"},sJt={name:"TBSI Mainnet",title:"Thai Blockchain Service Infrastructure Mainnet",chain:"TBSI",rpc:["https://rpc.blockchain.or.th"],faucets:[],nativeCurrency:{name:"Jinda",symbol:"JINDA",decimals:18},infoURL:"https://blockchain.or.th",shortName:"TBSI",chainId:1707,networkId:1707,testnet:!1,slug:"tbsi"},oJt={name:"TBSI Testnet",title:"Thai Blockchain Service Infrastructure Testnet",chain:"TBSI",rpc:["https://rpc.testnet.blockchain.or.th"],faucets:["https://faucet.blockchain.or.th"],nativeCurrency:{name:"Jinda",symbol:"JINDA",decimals:18},infoURL:"https://blockchain.or.th",shortName:"tTBSI",chainId:1708,networkId:1708,testnet:!0,slug:"tbsi-testnet"},cJt={name:"Kerleano",title:"Proof of Carbon Reduction testnet",chain:"CRC",status:"active",rpc:["https://cacib-saturn-test.francecentral.cloudapp.azure.com","wss://cacib-saturn-test.francecentral.cloudapp.azure.com:9443"],faucets:["https://github.com/ethereum-pocr/kerleano/blob/main/docs/faucet.md"],nativeCurrency:{name:"Carbon Reduction Coin",symbol:"CRC",decimals:18},infoURL:"https://github.com/ethereum-pocr/kerleano",shortName:"kerleano",chainId:1804,networkId:1804,explorers:[{name:"Lite Explorer",url:"https://ethereum-pocr.github.io/explorer/kerleano",standard:"EIP3091"}],testnet:!0,slug:"kerleano"},uJt={name:"Rabbit Analog Testnet Chain",chain:"rAna",icon:{url:"ipfs://QmdfbjjF3ZzN2jTkH9REgrA8jDS6A6c21n7rbWSVbSnvQc",width:310,height:251,format:"svg"},rpc:["https://rabbit.analog-rpc.com"],faucets:["https://analogfaucet.com"],nativeCurrency:{name:"Rabbit Analog Test Chain Native Token ",symbol:"rAna",decimals:18},infoURL:"https://rabbit.analogscan.com",shortName:"rAna",chainId:1807,networkId:1807,explorers:[{name:"blockscout",url:"https://rabbit.analogscan.com",standard:"none"}],testnet:!0,slug:"rabbit-analog-testnet-chain"},lJt={name:"Cube Chain Mainnet",chain:"Cube",icon:{url:"ipfs://QmbENgHTymTUUArX5MZ2XXH69WGenirU3oamkRD448hYdz",width:282,height:250,format:"png"},rpc:["https://http-mainnet.cube.network","wss://ws-mainnet.cube.network","https://http-mainnet-sg.cube.network","wss://ws-mainnet-sg.cube.network","https://http-mainnet-us.cube.network","wss://ws-mainnet-us.cube.network"],faucets:[],nativeCurrency:{name:"Cube Chain Native Token",symbol:"CUBE",decimals:18},infoURL:"https://www.cube.network",shortName:"cube",chainId:1818,networkId:1818,slip44:1818,explorers:[{name:"cube-scan",url:"https://cubescan.network",standard:"EIP3091"}],testnet:!1,slug:"cube-chain"},dJt={name:"Cube Chain Testnet",chain:"Cube",icon:{url:"ipfs://QmbENgHTymTUUArX5MZ2XXH69WGenirU3oamkRD448hYdz",width:282,height:250,format:"png"},rpc:["https://http-testnet.cube.network","wss://ws-testnet.cube.network","https://http-testnet-sg.cube.network","wss://ws-testnet-sg.cube.network","https://http-testnet-jp.cube.network","wss://ws-testnet-jp.cube.network","https://http-testnet-us.cube.network","wss://ws-testnet-us.cube.network"],faucets:["https://faucet.cube.network"],nativeCurrency:{name:"Cube Chain Test Native Token",symbol:"CUBET",decimals:18},infoURL:"https://www.cube.network",shortName:"cubet",chainId:1819,networkId:1819,slip44:1819,explorers:[{name:"cubetest-scan",url:"https://testnet.cubescan.network",standard:"EIP3091"}],testnet:!0,slug:"cube-chain-testnet"},pJt={name:"Teslafunds",chain:"TSF",rpc:["https://tsfapi.europool.me"],faucets:[],nativeCurrency:{name:"Teslafunds Ether",symbol:"TSF",decimals:18},infoURL:"https://teslafunds.io",shortName:"tsf",chainId:1856,networkId:1,testnet:!1,slug:"teslafunds"},hJt={name:"Gitshock Cartenz Testnet",chain:"Gitshock Cartenz",icon:{url:"ipfs://bafkreifqpj5jkjazvh24muc7wv4r22tihzzl75cevgecxhvojm4ls6mzpq",width:512,height:512,format:"png"},rpc:["https://rpc.cartenz.works"],features:[{name:"EIP155"},{name:"EIP1559"}],faucets:[],nativeCurrency:{name:"Gitshock Cartenz",symbol:"tGTFX",decimals:18},infoURL:"https://gitshock.com",shortName:"gitshockchain",chainId:1881,networkId:1881,explorers:[{name:"blockscout",url:"https://scan.cartenz.works",standard:"EIP3091"}],testnet:!0,slug:"gitshock-cartenz-testnet"},fJt={name:"BON Network",chain:"BON",rpc:["http://rpc.boyanet.org:8545","ws://rpc.boyanet.org:8546"],faucets:[],nativeCurrency:{name:"BOYACoin",symbol:"BOY",decimals:18},infoURL:"https://boyanet.org",shortName:"boya",chainId:1898,networkId:1,explorers:[{name:"explorer",url:"https://explorer.boyanet.org:4001",standard:"EIP3091"}],testnet:!1,slug:"bon-network"},mJt={name:"ONUS Chain Testnet",title:"ONUS Chain Testnet",chain:"onus",rpc:["https://rpc-testnet.onuschain.io"],faucets:[],nativeCurrency:{name:"ONUS",symbol:"ONUS",decimals:18},infoURL:"https://onuschain.io",shortName:"onus-testnet",chainId:1945,networkId:1945,explorers:[{name:"Onus explorer testnet",url:"https://explorer-testnet.onuschain.io",icon:"onus",standard:"EIP3091"}],testnet:!0,slug:"onus-chain-testnet"},yJt={name:"D-Chain Mainnet",chain:"D-Chain",rpc:["https://mainnet.d-chain.network/ext/bc/2ZiR1Bro5E59siVuwdNuRFzqL95NkvkbzyLBdrsYR9BLSHV7H4/rpc"],nativeCurrency:{name:"DOINX",symbol:"DOINX",decimals:18},shortName:"dchain-mainnet",chainId:1951,networkId:1951,icon:{url:"ipfs://QmV2vhTqS9UyrX9Q6BSCbK4JrKBnS8ErHvstMjfb2oVWaj",width:700,height:495,format:"png"},faucets:[],infoURL:"",testnet:!1,slug:"d-chain"},gJt={name:"Atelier",title:"Atelier Test Network",chain:"ALTR",rpc:["https://1971.network/atlr","wss://1971.network/atlr"],faucets:[],nativeCurrency:{name:"ATLR",symbol:"ATLR",decimals:18},infoURL:"https://1971.network/",shortName:"atlr",chainId:1971,networkId:1971,icon:{url:"ipfs://bafkreigcquvoalec3ll2m26v4wsx5enlxwyn6nk2mgfqwncyqrgwivla5u",width:200,height:200,format:"png"},testnet:!0,slug:"atelier"},vJt={name:"ONUS Chain Mainnet",title:"ONUS Chain Mainnet",chain:"onus",rpc:["https://rpc.onuschain.io","wss://ws.onuschain.io"],faucets:[],nativeCurrency:{name:"ONUS",symbol:"ONUS",decimals:18},infoURL:"https://onuschain.io",shortName:"onus-mainnet",chainId:1975,networkId:1975,explorers:[{name:"Onus explorer mainnet",url:"https://explorer.onuschain.io",icon:"onus",standard:"EIP3091"}],testnet:!1,slug:"onus-chain"},bJt={name:"Eurus Testnet",chain:"EUN",rpc:["https://testnet.eurus.network"],faucets:[],nativeCurrency:{name:"Eurus",symbol:"EUN",decimals:18},infoURL:"https://eurus.network",shortName:"euntest",chainId:1984,networkId:1984,icon:{url:"ipfs://QmaGd5L9jGPbfyGXBFhu9gjinWJ66YtNrXq8x6Q98Eep9e",width:471,height:471,format:"svg"},explorers:[{name:"testnetexplorer",url:"https://testnetexplorer.eurus.network",icon:"eurus",standard:"none"}],testnet:!0,slug:"eurus-testnet"},wJt={name:"EtherGem",chain:"EGEM",rpc:["https://jsonrpc.egem.io/custom"],faucets:[],nativeCurrency:{name:"EtherGem Ether",symbol:"EGEM",decimals:18},infoURL:"https://egem.io",shortName:"egem",chainId:1987,networkId:1987,slip44:1987,testnet:!1,slug:"ethergem"},xJt={name:"Ekta",chain:"EKTA",rpc:["https://main.ekta.io"],faucets:[],nativeCurrency:{name:"EKTA",symbol:"EKTA",decimals:18},infoURL:"https://www.ekta.io",shortName:"ekta",chainId:1994,networkId:1994,icon:{url:"ipfs://QmfMd564KUPK8eKZDwGCT71ZC2jMnUZqP6LCtLpup3rHH1",width:2100,height:2100,format:"png"},explorers:[{name:"ektascan",url:"https://ektascan.io",icon:"ekta",standard:"EIP3091"}],testnet:!1,slug:"ekta"},TJt={name:"edeXa Testnet",chain:"edeXa TestNetwork",rpc:["https://testnet.edexa.com/rpc"],faucets:["https://faucet.edexa.com/"],nativeCurrency:{name:"EDEXA",symbol:"EDX",decimals:18},infoURL:"https://edexa.com/",shortName:"edx",chainId:1995,networkId:1995,icon:{url:"ipfs://QmSgvmLpRsCiu2ySqyceA5xN4nwi7URJRNEZLffwEKXdoR",width:1028,height:1042,format:"png"},explorers:[{name:"edexa-testnet",url:"https://explorer.edexa.com",standard:"EIP3091"}],testnet:!0,slug:"edexa-testnet"},_Jt={name:"Dogechain Mainnet",chain:"DC",icon:{url:"ipfs://QmNS6B6L8FfgGSMTEi2SxD3bK5cdmKPNtQKcYaJeRWrkHs",width:732,height:732,format:"png"},rpc:["https://rpc.dogechain.dog","https://rpc-us.dogechain.dog","https://rpc01.dogechain.dog"],faucets:[],nativeCurrency:{name:"Dogecoin",symbol:"DOGE",decimals:18},infoURL:"https://dogechain.dog",shortName:"dc",chainId:2e3,networkId:2e3,explorers:[{name:"dogechain explorer",url:"https://explorer.dogechain.dog",standard:"EIP3091"}],testnet:!1,slug:"dogechain"},CJt={name:"Milkomeda C1 Mainnet",chain:"milkAda",icon:{url:"ipfs://QmdoUtvHDybu5ppYBZT8BMRp6AqByVSoQs8nFwKbaS55jd",width:367,height:367,format:"svg"},rpc:["https://rpc-mainnet-cardano-evm.c1.milkomeda.com","wss://rpc-mainnet-cardano-evm.c1.milkomeda.com"],faucets:[],nativeCurrency:{name:"milkAda",symbol:"mADA",decimals:18},infoURL:"https://milkomeda.com",shortName:"milkAda",chainId:2001,networkId:2001,explorers:[{name:"Blockscout",url:"https://explorer-mainnet-cardano-evm.c1.milkomeda.com",standard:"none"}],testnet:!1,slug:"milkomeda-c1"},EJt={name:"Milkomeda A1 Mainnet",chain:"milkALGO",icon:{url:"ipfs://QmdoUtvHDybu5ppYBZT8BMRp6AqByVSoQs8nFwKbaS55jd",width:367,height:367,format:"svg"},rpc:["https://rpc-mainnet-algorand-rollup.a1.milkomeda.com","wss://rpc-mainnet-algorand-rollup.a1.milkomeda.com/ws"],faucets:[],nativeCurrency:{name:"milkALGO",symbol:"mALGO",decimals:18},infoURL:"https://milkomeda.com",shortName:"milkALGO",chainId:2002,networkId:2002,explorers:[{name:"Blockscout",url:"https://explorer-mainnet-algorand-rollup.a1.milkomeda.com",standard:"none"}],testnet:!1,slug:"milkomeda-a1"},kJt={name:"CloudWalk Testnet",chain:"CloudWalk Testnet",rpc:[],faucets:[],nativeCurrency:{name:"CloudWalk Native Token",symbol:"CWN",decimals:18},infoURL:"https://cloudwalk.io",shortName:"cloudwalk_testnet",chainId:2008,networkId:2008,explorers:[{name:"CloudWalk Testnet Explorer",url:"https://explorer.testnet.cloudwalk.io",standard:"none"}],testnet:!0,slug:"cloudwalk-testnet"},SJt={name:"CloudWalk Mainnet",chain:"CloudWalk Mainnet",rpc:[],faucets:[],nativeCurrency:{name:"CloudWalk Native Token",symbol:"CWN",decimals:18},infoURL:"https://cloudwalk.io",shortName:"cloudwalk_mainnet",chainId:2009,networkId:2009,explorers:[{name:"CloudWalk Mainnet Explorer",url:"https://explorer.mainnet.cloudwalk.io",standard:"none"}],testnet:!1,slug:"cloudwalk"},AJt={name:"MainnetZ Mainnet",chain:"NetZ",icon:{url:"ipfs://QmT5gJ5weBiLT3GoYuF5yRTRLdPLCVZ3tXznfqW7M8fxgG",width:400,height:400,format:"png"},rpc:["https://mainnet-rpc.mainnetz.io"],faucets:["https://faucet.mainnetz.io"],nativeCurrency:{name:"MainnetZ",symbol:"NetZ",decimals:18},infoURL:"https://mainnetz.io",shortName:"NetZm",chainId:2016,networkId:2016,explorers:[{name:"MainnetZ",url:"https://explorer.mainnetz.io",standard:"EIP3091"}],testnet:!1,slug:"z-mainnet"},MJt={name:"PublicMint Devnet",title:"Public Mint Devnet",chain:"PublicMint",rpc:["https://rpc.dev.publicmint.io:8545"],faucets:[],nativeCurrency:{name:"USD",symbol:"USD",decimals:18},infoURL:"https://publicmint.com",shortName:"pmint_dev",chainId:2018,networkId:2018,slip44:60,explorers:[{name:"PublicMint Explorer",url:"https://explorer.dev.publicmint.io",standard:"EIP3091"}],testnet:!1,slug:"publicmint-devnet"},IJt={name:"PublicMint Testnet",title:"Public Mint Testnet",chain:"PublicMint",rpc:["https://rpc.tst.publicmint.io:8545"],faucets:[],nativeCurrency:{name:"USD",symbol:"USD",decimals:18},infoURL:"https://publicmint.com",shortName:"pmint_test",chainId:2019,networkId:2019,slip44:60,explorers:[{name:"PublicMint Explorer",url:"https://explorer.tst.publicmint.io",standard:"EIP3091"}],testnet:!0,slug:"publicmint-testnet"},PJt={name:"PublicMint Mainnet",title:"Public Mint Mainnet",chain:"PublicMint",rpc:["https://rpc.publicmint.io:8545"],faucets:[],nativeCurrency:{name:"USD",symbol:"USD",decimals:18},infoURL:"https://publicmint.com",shortName:"pmint",chainId:2020,networkId:2020,slip44:60,explorers:[{name:"PublicMint Explorer",url:"https://explorer.publicmint.io",standard:"EIP3091"}],testnet:!1,slug:"publicmint"},RJt={name:"Edgeware Mainnet",chain:"EDG",rpc:["https://mainnet1.edgewa.re"],faucets:[],nativeCurrency:{name:"Edge",symbol:"EDG",decimals:18},infoURL:"http://edgewa.re",shortName:"edg",chainId:2021,networkId:2021,testnet:!1,slug:"edgeware"},NJt={name:"Beresheet Testnet",chain:"EDG",rpc:["https://beresheet1.edgewa.re"],faucets:[],nativeCurrency:{name:"Testnet Edge",symbol:"tEDG",decimals:18},infoURL:"http://edgewa.re",shortName:"edgt",chainId:2022,networkId:2022,testnet:!0,slug:"beresheet-testnet"},OJt={name:"Taycan Testnet",chain:"Taycan",rpc:["https://test-taycan.hupayx.io"],faucets:["https://ttaycan-faucet.hupayx.io/"],nativeCurrency:{name:"test-Shuffle",symbol:"tSFL",decimals:18},infoURL:"https://hupayx.io",shortName:"taycan-testnet",chainId:2023,networkId:2023,icon:{url:"ipfs://bafkreidvjcc73v747lqlyrhgbnkvkdepdvepo6baj6hmjsmjtvdyhmzzmq",width:1e3,height:1206,format:"png"},explorers:[{name:"Taycan Explorer(Blockscout)",url:"https://evmscan-test.hupayx.io",standard:"none",icon:"shuffle"},{name:"Taycan Cosmos Explorer",url:"https://cosmoscan-test.hupayx.io",standard:"none",icon:"shuffle"}],testnet:!0,slug:"taycan-testnet"},LJt={name:"Rangers Protocol Mainnet",chain:"Rangers",icon:{url:"ipfs://QmfHG3xbg4iiopagww93Gu7tmvCpPwZdiwsUjd3Dt5mRwT",width:835,height:835,format:"png"},rpc:["https://mainnet.rangersprotocol.com/api/jsonrpc"],faucets:[],nativeCurrency:{name:"Rangers Protocol Gas",symbol:"RPG",decimals:18},infoURL:"https://rangersprotocol.com",shortName:"rpg",chainId:2025,networkId:2025,slip44:1008,explorers:[{name:"rangersscan",url:"https://scan.rangersprotocol.com",standard:"none"}],testnet:!1,slug:"rangers-protocol"},BJt={name:"OriginTrail Parachain",chain:"OTP",rpc:["https://astrosat.origintrail.network","wss://parachain-rpc.origin-trail.network"],faucets:[],nativeCurrency:{name:"OriginTrail Parachain Token",symbol:"OTP",decimals:12},infoURL:"https://parachain.origintrail.io",shortName:"otp",chainId:2043,networkId:2043,testnet:!1,slug:"origintrail-parachain"},qJt={name:"Stratos Testnet",chain:"STOS",rpc:["https://web3-testnet-rpc.thestratos.org"],faucets:[],nativeCurrency:{name:"STOS",symbol:"STOS",decimals:18},infoURL:"https://www.thestratos.org",shortName:"stos-testnet",chainId:2047,networkId:2047,explorers:[{name:"Stratos EVM Explorer (Blockscout)",url:"https://web3-testnet-explorer.thestratos.org",standard:"none"},{name:"Stratos Cosmos Explorer (BigDipper)",url:"https://big-dipper-dev.thestratos.org",standard:"none"}],testnet:!0,slug:"stratos-testnet"},DJt={name:"Stratos Mainnet",chain:"STOS",rpc:[],faucets:[],nativeCurrency:{name:"STOS",symbol:"STOS",decimals:18},infoURL:"https://www.thestratos.org",shortName:"stos-mainnet",chainId:2048,networkId:2048,status:"incubating",testnet:!1,slug:"stratos"},FJt={name:"Quokkacoin Mainnet",chain:"Qkacoin",rpc:["https://rpc.qkacoin.org"],faucets:[],nativeCurrency:{name:"Qkacoin",symbol:"QKA",decimals:18},infoURL:"https://qkacoin.org",shortName:"QKA",chainId:2077,networkId:2077,explorers:[{name:"blockscout",url:"https://explorer.qkacoin.org",standard:"EIP3091"}],testnet:!1,slug:"quokkacoin"},UJt={name:"Ecoball Mainnet",chain:"ECO",rpc:["https://api.ecoball.org/ecoball/"],faucets:[],nativeCurrency:{name:"Ecoball Coin",symbol:"ECO",decimals:18},infoURL:"https://ecoball.org",shortName:"eco",chainId:2100,networkId:2100,explorers:[{name:"Ecoball Explorer",url:"https://scan.ecoball.org",standard:"EIP3091"}],testnet:!1,slug:"ecoball"},WJt={name:"Ecoball Testnet Espuma",chain:"ECO",rpc:["https://api.ecoball.org/espuma/"],faucets:[],nativeCurrency:{name:"Espuma Coin",symbol:"ECO",decimals:18},infoURL:"https://ecoball.org",shortName:"esp",chainId:2101,networkId:2101,explorers:[{name:"Ecoball Testnet Explorer",url:"https://espuma-scan.ecoball.org",standard:"EIP3091"}],testnet:!0,slug:"ecoball-testnet-espuma"},jJt={name:"Exosama Network",chain:"EXN",rpc:["https://rpc.exosama.com","wss://rpc.exosama.com"],faucets:[],nativeCurrency:{name:"Sama Token",symbol:"SAMA",decimals:18},infoURL:"https://moonsama.com",shortName:"exn",chainId:2109,networkId:2109,slip44:2109,icon:{url:"ipfs://QmaQxfwpXYTomUd24PMx5tKjosupXcm99z1jL1XLq9LWBS",width:468,height:468,format:"png"},explorers:[{name:"blockscout",url:"https://explorer.exosama.com",icon:"blockscout",standard:"EIP3091"}],testnet:!1,slug:"exosama-network"},zJt={name:"Metaplayerone Mainnet",chain:"METAD",icon:{url:"ipfs://QmZyxS9BfRGYWWDtvrV6qtthCYV4TwdjLoH2sF6MkiTYFf",width:1280,height:1280,format:"png"},rpc:["https://rpc.metaplayer.one/"],faucets:[],nativeCurrency:{name:"METAD",symbol:"METAD",decimals:18},infoURL:"https://docs.metaplayer.one/",shortName:"Metad",chainId:2122,networkId:2122,explorers:[{name:"Metad Scan",url:"https://scan.metaplayer.one",icon:"metad",standard:"EIP3091"}],testnet:!1,slug:"metaplayerone"},HJt={name:"BOSagora Mainnet",chain:"ETH",rpc:["https://mainnet.bosagora.org","https://rpc.bosagora.org"],faucets:[],nativeCurrency:{name:"BOSAGORA",symbol:"BOA",decimals:18},infoURL:"https://docs.bosagora.org",shortName:"boa",chainId:2151,networkId:2151,icon:{url:"ipfs://QmW3CT4SHmso5dRJdsjR8GL1qmt79HkdAebCn2uNaWXFYh",width:256,height:257,format:"png"},explorers:[{name:"BOASCAN",url:"https://boascan.io",icon:"agora",standard:"EIP3091"}],testnet:!1,slug:"bosagora"},VJt={name:"Findora Mainnet",chain:"Findora",rpc:["https://rpc-mainnet.findora.org"],faucets:[],nativeCurrency:{name:"FRA",symbol:"FRA",decimals:18},infoURL:"https://findora.org/",shortName:"fra",chainId:2152,networkId:2152,explorers:[{name:"findorascan",url:"https://evm.findorascan.io",standard:"EIP3091"}],testnet:!1,slug:"findora"},GJt={name:"Findora Testnet",chain:"Testnet-anvil",rpc:["https://prod-testnet.prod.findora.org:8545/"],faucets:[],nativeCurrency:{name:"FRA",symbol:"FRA",decimals:18},infoURL:"https://findora.org/",shortName:"findora-testnet",chainId:2153,networkId:2153,explorers:[{name:"findorascan",url:"https://testnet-anvil.evm.findorascan.io",standard:"EIP3091"}],testnet:!0,slug:"findora-testnet"},ZJt={name:"Findora Forge",chain:"Testnet-forge",rpc:["https://prod-forge.prod.findora.org:8545/"],faucets:[],nativeCurrency:{name:"FRA",symbol:"FRA",decimals:18},infoURL:"https://findora.org/",shortName:"findora-forge",chainId:2154,networkId:2154,explorers:[{name:"findorascan",url:"https://testnet-forge.evm.findorascan.io",standard:"EIP3091"}],testnet:!0,slug:"findora-forge"},JJt={name:"Bitcoin EVM",chain:"Bitcoin EVM",rpc:["https://connect.bitcoinevm.com"],faucets:[],nativeCurrency:{name:"Bitcoin",symbol:"eBTC",decimals:18},infoURL:"https://bitcoinevm.com",shortName:"eBTC",chainId:2203,networkId:2203,icon:{url:"ipfs://bafkreic4aq265oaf6yze7ba5okefqh6vnqudyrz6ovukvbnrlhet36itle",width:200,height:200,format:"png"},explorers:[{name:"Explorer",url:"https://explorer.bitcoinevm.com",icon:"ebtc",standard:"none"}],testnet:!1,slug:"bitcoin-evm"},KJt={name:"Evanesco Mainnet",chain:"EVA",rpc:["https://seed4.evanesco.org:8546"],faucets:[],nativeCurrency:{name:"EVA",symbol:"EVA",decimals:18},infoURL:"https://evanesco.org/",shortName:"evanesco",chainId:2213,networkId:2213,icon:{url:"ipfs://QmZbmGYdfbMRrWJore3c7hyD6q7B5pXHJqTSNjbZZUK6V8",width:200,height:200,format:"png"},explorers:[{name:"Evanesco Explorer",url:"https://explorer.evanesco.org",standard:"none"}],testnet:!1,slug:"evanesco"},QJt={name:"Kava EVM Testnet",chain:"KAVA",rpc:["https://evm.testnet.kava.io","wss://wevm.testnet.kava.io"],faucets:["https://faucet.kava.io"],nativeCurrency:{name:"TKava",symbol:"TKAVA",decimals:18},infoURL:"https://www.kava.io",shortName:"tkava",chainId:2221,networkId:2221,icon:{url:"ipfs://QmdpRTk6oL1HRW9xC6cAc4Rnf9gs6zgdAcr4Z3HcLztusm",width:1186,height:360,format:"svg"},explorers:[{name:"Kava Testnet Explorer",url:"https://explorer.testnet.kava.io",standard:"EIP3091",icon:"kava"}],testnet:!0,slug:"kava-evm-testnet"},XJt={name:"Kava EVM",chain:"KAVA",rpc:["https://evm.kava.io","https://evm2.kava.io","wss://wevm.kava.io","wss://wevm2.kava.io"],faucets:[],nativeCurrency:{name:"Kava",symbol:"KAVA",decimals:18},infoURL:"https://www.kava.io",shortName:"kava",chainId:2222,networkId:2222,icon:{url:"ipfs://QmdpRTk6oL1HRW9xC6cAc4Rnf9gs6zgdAcr4Z3HcLztusm",width:1186,height:360,format:"svg"},explorers:[{name:"Kava EVM Explorer",url:"https://explorer.kava.io",standard:"EIP3091",icon:"kava"}],testnet:!1,slug:"kava-evm"},YJt={name:"VChain Mainnet",chain:"VChain",rpc:["https://bc.vcex.xyz"],faucets:[],nativeCurrency:{name:"VNDT",symbol:"VNDT",decimals:18},infoURL:"https://bo.vcex.xyz/",shortName:"VChain",chainId:2223,networkId:2223,explorers:[{name:"VChain Scan",url:"https://scan.vcex.xyz",standard:"EIP3091"}],testnet:!1,slug:"vchain"},$Jt={name:"BOMB Chain",chain:"BOMB",rpc:["https://rpc.bombchain.com"],faucets:[],nativeCurrency:{name:"BOMB Token",symbol:"BOMB",decimals:18},infoURL:"https://www.bombchain.com",shortName:"bomb",chainId:2300,networkId:2300,icon:{url:"ipfs://Qmc44uSjfdNHdcxPTgZAL8eZ8TLe4UmSHibcvKQFyGJxTB",width:1024,height:1024,format:"png"},explorers:[{name:"bombscan",icon:"bomb",url:"https://bombscan.com",standard:"EIP3091"}],testnet:!1,slug:"bomb-chain"},eKt={name:"Altcoinchain",chain:"mainnet",rpc:["https://rpc0.altcoinchain.org/rpc"],faucets:[],nativeCurrency:{name:"Altcoin",symbol:"ALT",decimals:18},infoURL:"https://altcoinchain.org",shortName:"alt",chainId:2330,networkId:2330,icon:{url:"ipfs://QmYwHmGC9CRVcKo1LSesqxU31SDj9vk2iQxcFjQArzhix4",width:720,height:720,format:"png"},status:"active",explorers:[{name:"expedition",url:"http://expedition.altcoinchain.org",icon:"altcoinchain",standard:"none"}],testnet:!1,slug:"altcoinchain"},tKt={name:"BOMB Chain Testnet",chain:"BOMB",rpc:["https://bombchain-testnet.ankr.com/bas_full_rpc_1"],faucets:["https://faucet.bombchain-testnet.ankr.com/"],nativeCurrency:{name:"BOMB Token",symbol:"tBOMB",decimals:18},infoURL:"https://www.bombmoney.com",shortName:"bombt",chainId:2399,networkId:2399,icon:{url:"ipfs://Qmc44uSjfdNHdcxPTgZAL8eZ8TLe4UmSHibcvKQFyGJxTB",width:1024,height:1024,format:"png"},explorers:[{name:"bombscan-testnet",icon:"bomb",url:"https://explorer.bombchain-testnet.ankr.com",standard:"EIP3091"}],testnet:!0,slug:"bomb-chain-testnet"},rKt={name:"TCG Verse Mainnet",chain:"TCG Verse",icon:{url:"ipfs://bafkreidg4wpewve5mdxrofneqblydkrjl3oevtgpdf3fk3z3vjqam6ocoe",width:350,height:350,format:"png"},rpc:["https://rpc.tcgverse.xyz"],faucets:[],nativeCurrency:{name:"OAS",symbol:"OAS",decimals:18},infoURL:"https://tcgverse.xyz/",shortName:"TCGV",chainId:2400,networkId:2400,explorers:[{name:"TCG Verse Explorer",url:"https://explorer.tcgverse.xyz",standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-248"},testnet:!1,slug:"tcg-verse"},nKt={name:"XODEX",chain:"XODEX",rpc:["https://mainnet.xo-dex.com/rpc","https://xo-dex.io"],faucets:[],nativeCurrency:{name:"XODEX Native Token",symbol:"XODEX",decimals:18},infoURL:"https://xo-dex.com",shortName:"xodex",chainId:2415,networkId:10,icon:{url:"ipfs://QmXt49jPfHUmDF4n8TF7ks6txiPztx6qUHanWmHnCoEAhW",width:256,height:256,format:"png"},explorers:[{name:"XODEX Explorer",url:"https://explorer.xo-dex.com",standard:"EIP3091",icon:"xodex"}],testnet:!1,slug:"xodex"},aKt={name:"Kortho Mainnet",chain:"Kortho Chain",rpc:["https://www.kortho-chain.com"],faucets:[],nativeCurrency:{name:"KorthoChain",symbol:"KTO",decimals:11},infoURL:"https://www.kortho.io/",shortName:"ktoc",chainId:2559,networkId:2559,testnet:!1,slug:"kortho"},iKt={name:"TechPay Mainnet",chain:"TPC",rpc:["https://api.techpay.io/"],faucets:[],nativeCurrency:{name:"TechPay",symbol:"TPC",decimals:18},infoURL:"https://techpay.io/",shortName:"tpc",chainId:2569,networkId:2569,icon:{url:"ipfs://QmQyTyJUnhD1dca35Vyj96pm3v3Xyw8xbG9m8HXHw3k2zR",width:578,height:701,format:"svg"},explorers:[{name:"tpcscan",url:"https://tpcscan.com",icon:"techpay",standard:"EIP3091"}],testnet:!1,slug:"techpay"},sKt={name:"PoCRNet",title:"Proof of Carbon Reduction mainnet",chain:"CRC",status:"active",rpc:["https://pocrnet.westeurope.cloudapp.azure.com/http","wss://pocrnet.westeurope.cloudapp.azure.com/ws"],faucets:[],nativeCurrency:{name:"Carbon Reduction Coin",symbol:"CRC",decimals:18},infoURL:"https://github.com/ethereum-pocr/pocrnet",shortName:"pocrnet",chainId:2606,networkId:2606,explorers:[{name:"Lite Explorer",url:"https://ethereum-pocr.github.io/explorer/pocrnet",standard:"EIP3091"}],testnet:!1,slug:"pocrnet"},oKt={name:"Redlight Chain Mainnet",chain:"REDLC",rpc:["https://dataseed2.redlightscan.finance"],faucets:[],nativeCurrency:{name:"Redlight Coin",symbol:"REDLC",decimals:18},infoURL:"https://redlight.finance/",shortName:"REDLC",chainId:2611,networkId:2611,explorers:[{name:"REDLC Explorer",url:"https://redlightscan.finance",standard:"EIP3091"}],testnet:!1,slug:"redlight-chain"},cKt={name:"EZChain C-Chain Mainnet",chain:"EZC",rpc:["https://api.ezchain.com/ext/bc/C/rpc"],faucets:[],nativeCurrency:{name:"EZChain",symbol:"EZC",decimals:18},infoURL:"https://ezchain.com",shortName:"EZChain",chainId:2612,networkId:2612,icon:{url:"ipfs://QmPKJbYCFjGmY9X2cA4b9YQjWYHQncmKnFtKyQh9rHkFTb",width:146,height:48,format:"png"},explorers:[{name:"ezchain",url:"https://cchain-explorer.ezchain.com",standard:"EIP3091"}],testnet:!1,slug:"ezchain-c-chain"},uKt={name:"EZChain C-Chain Testnet",chain:"EZC",rpc:["https://testnet-api.ezchain.com/ext/bc/C/rpc"],faucets:["https://testnet-faucet.ezchain.com"],nativeCurrency:{name:"EZChain",symbol:"EZC",decimals:18},infoURL:"https://ezchain.com",shortName:"Fuji-EZChain",chainId:2613,networkId:2613,icon:{url:"ipfs://QmPKJbYCFjGmY9X2cA4b9YQjWYHQncmKnFtKyQh9rHkFTb",width:146,height:48,format:"png"},explorers:[{name:"ezchain",url:"https://testnet-cchain-explorer.ezchain.com",standard:"EIP3091"}],testnet:!0,slug:"ezchain-c-chain-testnet"},lKt={name:"Boba Network Goerli Testnet",chain:"ETH",rpc:["https://goerli.boba.network/"],faucets:[],nativeCurrency:{name:"Goerli Ether",symbol:"ETH",decimals:18},infoURL:"https://boba.network",shortName:"Bobagoerli",chainId:2888,networkId:2888,explorers:[{name:"Blockscout",url:"https://testnet.bobascan.com",standard:"none"}],parent:{type:"L2",chain:"eip155-5",bridges:[{url:"https://gateway.goerli.boba.network"}]},testnet:!0,slug:"boba-network-goerli-testnet"},dKt={name:"BitYuan Mainnet",chain:"BTY",rpc:["https://mainnet.bityuan.com/eth"],faucets:[],nativeCurrency:{name:"BTY",symbol:"BTY",decimals:18},infoURL:"https://www.bityuan.com",shortName:"bty",chainId:2999,networkId:2999,icon:{url:"ipfs://QmUmJVof2m5e4HUXb3GmijWUFsLUNhrQiwwQG3CqcXEtHt",width:91,height:24,format:"png"},explorers:[{name:"BitYuan Block Chain Explorer",url:"https://mainnet.bityuan.com",standard:"none"}],testnet:!1,slug:"bityuan"},pKt={name:"CENNZnet Rata",chain:"CENNZnet",rpc:[],faucets:["https://app-faucet.centrality.me"],nativeCurrency:{name:"CPAY",symbol:"CPAY",decimals:18},infoURL:"https://cennz.net",shortName:"cennz-r",chainId:3e3,networkId:3e3,icon:{url:"ipfs://QmWhNm7tTi6SYbiumULDRk956hxgqaZSX77vcxBNn8fvnw",width:112,height:112,format:"svg"},testnet:!1,slug:"cennznet-rata"},hKt={name:"CENNZnet Nikau",chain:"CENNZnet",rpc:["https://nikau.centrality.me/public"],faucets:["https://app-faucet.centrality.me"],nativeCurrency:{name:"CPAY",symbol:"CPAY",decimals:18},infoURL:"https://cennz.net",shortName:"cennz-n",chainId:3001,networkId:3001,icon:{url:"ipfs://QmWhNm7tTi6SYbiumULDRk956hxgqaZSX77vcxBNn8fvnw",width:112,height:112,format:"svg"},explorers:[{name:"UNcover",url:"https://www.uncoverexplorer.com/?network=Nikau",standard:"none"}],testnet:!1,slug:"cennznet-nikau"},fKt={name:"Orlando Chain",chain:"ORL",rpc:["https://rpc-testnet.orlchain.com"],faucets:[],nativeCurrency:{name:"Orlando",symbol:"ORL",decimals:18},infoURL:"https://orlchain.com",shortName:"ORL",chainId:3031,networkId:3031,icon:{url:"ipfs://QmNsuuBBTHErnuFDcdyzaY8CKoVJtobsLJx2WQjaPjcp7g",width:512,height:528,format:"png"},explorers:[{name:"Orlando (ORL) Explorer",url:"https://orlscan.com",icon:"orl",standard:"EIP3091"}],testnet:!0,slug:"orlando-chain"},mKt={name:"Bifrost Mainnet",title:"The Bifrost Mainnet network",chain:"BFC",rpc:["https://public-01.mainnet.thebifrost.io/rpc","https://public-02.mainnet.thebifrost.io/rpc"],faucets:[],nativeCurrency:{name:"Bifrost",symbol:"BFC",decimals:18},infoURL:"https://thebifrost.io",shortName:"bfc",chainId:3068,networkId:3068,icon:{url:"ipfs://QmcHvn2Wq91ULyEH5s3uHjosX285hUgyJHwggFJUd3L5uh",width:128,height:128,format:"png"},explorers:[{name:"explorer-thebifrost",url:"https://explorer.mainnet.thebifrost.io",standard:"EIP3091"}],testnet:!1,slug:"bifrost"},yKt={name:"Filecoin - Hyperspace testnet",chain:"FIL",icon:{url:"ipfs://QmS9r9XQkMHVomWcSBNDkKkz9n87h9bH9ssabeiKZtANoU",width:1e3,height:1e3,format:"png"},rpc:["https://api.hyperspace.node.glif.io/rpc/v1","https://filecoin-hyperspace.chainstacklabs.com/rpc/v1"],faucets:["https://hyperspace.yoga/#faucet"],nativeCurrency:{name:"testnet filecoin",symbol:"tFIL",decimals:18},infoURL:"https://filecoin.io",shortName:"filecoin-hyperspace",chainId:3141,networkId:3141,slip44:1,explorers:[{name:"Filfox - Hyperspace",url:"https://hyperspace.filfox.info/en",standard:"none"},{name:"Glif Explorer - Hyperspace",url:"https://explorer.glif.io/?network=hyperspace",standard:"none"},{name:"Beryx",url:"https://beryx.zondax.ch",standard:"none"},{name:"Filmine",url:"https://explorer.filmine.io",standard:"none"},{name:"Filscan - Hyperspace",url:"https://hyperspace.filscan.io",standard:"none"}],testnet:!0,slug:"filecoin-hyperspace-testnet"},gKt={name:"Debounce Subnet Testnet",chain:"Debounce Network",icon:{url:"ipfs://bafybeib5q4hez37s7b2fx4hqt2q4ji2tuudxjhfdgnp6q3d5mqm6wsxdfq",width:256,height:256,format:"png"},rpc:["https://dev-rpc.debounce.network"],faucets:[],nativeCurrency:{name:"Debounce Network",symbol:"DB",decimals:18},infoURL:"https://debounce.network",shortName:"debounce-devnet",chainId:3306,networkId:3306,explorers:[{name:"Debounce Devnet Explorer",url:"https://explorer.debounce.network",standard:"EIP3091"}],testnet:!0,slug:"debounce-subnet-testnet"},vKt={name:"ZCore Testnet",chain:"Beach",icon:{url:"ipfs://QmQnXu13ym8W1VA3QxocaNVXGAuEPmamSCkS7bBscVk1f4",width:1050,height:1050,format:"png"},rpc:["https://rpc-testnet.zcore.cash"],faucets:["https://faucet.zcore.cash"],nativeCurrency:{name:"ZCore",symbol:"ZCR",decimals:18},infoURL:"https://zcore.cash",shortName:"zcrbeach",chainId:3331,networkId:3331,testnet:!0,slug:"zcore-testnet"},bKt={name:"Web3Q Testnet",chain:"Web3Q",rpc:["https://testnet.web3q.io:8545"],faucets:[],nativeCurrency:{name:"Web3Q",symbol:"W3Q",decimals:18},infoURL:"https://testnet.web3q.io/home.w3q/",shortName:"w3q-t",chainId:3333,networkId:3333,explorers:[{name:"w3q-testnet",url:"https://explorer.testnet.web3q.io",standard:"EIP3091"}],testnet:!0,slug:"web3q-testnet"},wKt={name:"Web3Q Galileo",chain:"Web3Q",rpc:["https://galileo.web3q.io:8545"],faucets:[],nativeCurrency:{name:"Web3Q",symbol:"W3Q",decimals:18},infoURL:"https://galileo.web3q.io/home.w3q/",shortName:"w3q-g",chainId:3334,networkId:3334,explorers:[{name:"w3q-galileo",url:"https://explorer.galileo.web3q.io",standard:"EIP3091"}],testnet:!1,slug:"web3q-galileo"},xKt={name:"Paribu Net Mainnet",chain:"PRB",rpc:["https://rpc.paribu.network"],faucets:[],nativeCurrency:{name:"PRB",symbol:"PRB",decimals:18},infoURL:"https://net.paribu.com",shortName:"prb",chainId:3400,networkId:3400,icon:{url:"ipfs://QmVgc77jYo2zrxQjhYwT4KzvSrSZ1DBJraJVX57xAvP8MD",width:2362,height:2362,format:"png"},explorers:[{name:"Paribu Net Explorer",url:"https://explorer.paribu.network",icon:"explorer",standard:"EIP3091"}],testnet:!1,slug:"paribu-net"},TKt={name:"Paribu Net Testnet",chain:"PRB",rpc:["https://rpc.testnet.paribuscan.com"],faucets:["https://faucet.paribuscan.com"],nativeCurrency:{name:"PRB",symbol:"PRB",decimals:18},infoURL:"https://net.paribu.com",shortName:"prbtestnet",chainId:3500,networkId:3500,icon:{url:"ipfs://QmVgc77jYo2zrxQjhYwT4KzvSrSZ1DBJraJVX57xAvP8MD",width:2362,height:2362,format:"png"},explorers:[{name:"Paribu Net Testnet Explorer",url:"https://testnet.paribuscan.com",icon:"explorer",standard:"EIP3091"}],testnet:!0,slug:"paribu-net-testnet"},_Kt={name:"JFIN Chain",chain:"JFIN",rpc:["https://rpc.jfinchain.com"],faucets:[],nativeCurrency:{name:"JFIN Coin",symbol:"jfin",decimals:18},infoURL:"https://jfinchain.com",shortName:"jfin",chainId:3501,networkId:3501,explorers:[{name:"JFIN Chain Explorer",url:"https://exp.jfinchain.com",standard:"EIP3091"}],testnet:!1,slug:"jfin-chain"},CKt={name:"PandoProject Mainnet",chain:"PandoProject",icon:{url:"ipfs://QmNduBtT5BNGDw7DjRwDvaZBb6gjxf46WD7BYhn4gauGc9",width:1e3,height:1628,format:"png"},rpc:["https://eth-rpc-api.pandoproject.org/rpc"],faucets:[],nativeCurrency:{name:"pando-token",symbol:"PTX",decimals:18},infoURL:"https://www.pandoproject.org/",shortName:"pando-mainnet",chainId:3601,networkId:3601,explorers:[{name:"Pando Mainnet Explorer",url:"https://explorer.pandoproject.org",standard:"none"}],testnet:!1,slug:"pandoproject"},EKt={name:"PandoProject Testnet",chain:"PandoProject",icon:{url:"ipfs://QmNduBtT5BNGDw7DjRwDvaZBb6gjxf46WD7BYhn4gauGc9",width:1e3,height:1628,format:"png"},rpc:["https://testnet.ethrpc.pandoproject.org/rpc"],faucets:[],nativeCurrency:{name:"pando-token",symbol:"PTX",decimals:18},infoURL:"https://www.pandoproject.org/",shortName:"pando-testnet",chainId:3602,networkId:3602,explorers:[{name:"Pando Testnet Explorer",url:"https://testnet.explorer.pandoproject.org",standard:"none"}],testnet:!0,slug:"pandoproject-testnet"},kKt={name:"Metacodechain",chain:"metacode",rpc:["https://j.blockcoach.com:8503"],faucets:[],nativeCurrency:{name:"J",symbol:"J",decimals:18},infoURL:"https://j.blockcoach.com:8089",shortName:"metacode",chainId:3666,networkId:3666,explorers:[{name:"meta",url:"https://j.blockcoach.com:8089",standard:"EIP3091"}],testnet:!1,slug:"metacodechain"},SKt={name:"Bittex Mainnet",chain:"BTX",rpc:["https://rpc1.bittexscan.info","https://rpc2.bittexscan.info"],faucets:[],nativeCurrency:{name:"Bittex",symbol:"BTX",decimals:18},infoURL:"https://bittexscan.com",shortName:"btx",chainId:3690,networkId:3690,icon:{url:"ipfs://QmdwQDr6vmBtXmK2TmknkEuZNoaDqTasFdZdu3DRw8b2wt",width:1e3,height:1628,format:"png"},explorers:[{name:"bittexscan",url:"https://bittexscan.com",icon:"etherscan",standard:"EIP3091"}],testnet:!1,slug:"bittex"},AKt={name:"Empire Network",chain:"EMPIRE",rpc:["https://rpc.empirenetwork.io"],faucets:[],nativeCurrency:{name:"Empire",symbol:"EMPIRE",decimals:18},infoURL:"https://www.empirenetwork.io/",shortName:"empire",chainId:3693,networkId:3693,explorers:[{name:"Empire Explorer",url:"https://explorer.empirenetwork.io",standard:"none"}],testnet:!1,slug:"empire-network"},MKt={name:"Crossbell",chain:"Crossbell",rpc:["https://rpc.crossbell.io"],faucets:["https://faucet.crossbell.io"],nativeCurrency:{name:"Crossbell Token",symbol:"CSB",decimals:18},infoURL:"https://crossbell.io",shortName:"csb",chainId:3737,networkId:3737,icon:{url:"ipfs://QmS8zEetTb6pwdNpVjv5bz55BXiSMGP9BjTJmNcjcUT91t",format:"svg",width:408,height:408},explorers:[{name:"Crossbell Explorer",url:"https://scan.crossbell.io",standard:"EIP3091"}],testnet:!1,slug:"crossbell"},IKt={name:"DRAC Network",chain:"DRAC",rpc:["https://www.dracscan.com/rpc"],faucets:["https://www.dracscan.io/faucet"],nativeCurrency:{name:"DRAC",symbol:"DRAC",decimals:18},infoURL:"https://drac.io/",shortName:"drac",features:[{name:"EIP155"},{name:"EIP1559"}],chainId:3912,networkId:3912,icon:{url:"ipfs://QmXbsQe7QsVFZJZdBmbZVvS6LgX9ZFoaTMBs9MiQXUzJTw",width:256,height:256,format:"png"},explorers:[{name:"DRAC_Network Scan",url:"https://www.dracscan.io",icon:"DRAC",standard:"EIP3091"}],testnet:!1,slug:"drac-network"},PKt={name:"DYNO Mainnet",chain:"DYNO",rpc:["https://api.dynoprotocol.com"],faucets:["https://faucet.dynoscan.io"],nativeCurrency:{name:"DYNO Token",symbol:"DYNO",decimals:18},infoURL:"https://dynoprotocol.com",shortName:"dyno",chainId:3966,networkId:3966,explorers:[{name:"DYNO Explorer",url:"https://dynoscan.io",standard:"EIP3091"}],testnet:!1,slug:"dyno"},RKt={name:"DYNO Testnet",chain:"DYNO",rpc:["https://tapi.dynoprotocol.com"],faucets:["https://faucet.dynoscan.io"],nativeCurrency:{name:"DYNO Token",symbol:"tDYNO",decimals:18},infoURL:"https://dynoprotocol.com",shortName:"tdyno",chainId:3967,networkId:3967,explorers:[{name:"DYNO Explorer",url:"https://testnet.dynoscan.io",standard:"EIP3091"}],testnet:!0,slug:"dyno-testnet"},NKt={name:"YuanChain Mainnet",chain:"YCC",rpc:["https://mainnet.yuan.org/eth"],faucets:[],nativeCurrency:{name:"YCC",symbol:"YCC",decimals:18},infoURL:"https://www.yuan.org",shortName:"ycc",chainId:3999,networkId:3999,icon:{url:"ipfs://QmdbPhiB5W2gbHZGkYsN7i2VTKKP9casmAN2hRnpDaL9W4",width:96,height:96,format:"png"},explorers:[{name:"YuanChain Explorer",url:"https://mainnet.yuan.org",standard:"none"}],testnet:!1,slug:"yuanchain"},OKt={name:"Fantom Testnet",chain:"FTM",rpc:["https://fantom-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.testnet.fantom.network"],faucets:["https://faucet.fantom.network"],nativeCurrency:{name:"Fantom",symbol:"FTM",decimals:18},infoURL:"https://docs.fantom.foundation/quick-start/short-guide#fantom-testnet",shortName:"tftm",chainId:4002,networkId:4002,icon:{url:"ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/fantom/512.png",height:512,width:512,format:"png",sizes:[512,256,128,64,32,16]},explorers:[{name:"ftmscan",url:"https://testnet.ftmscan.com",icon:"ftmscan",standard:"EIP3091"}],testnet:!0,slug:"fantom-testnet"},LKt={name:"Bobaopera Testnet",chain:"Bobaopera Testnet",rpc:["https://testnet.bobaopera.boba.network","wss://wss.testnet.bobaopera.boba.network","https://replica.testnet.bobaopera.boba.network","wss://replica-wss.testnet.bobaopera.boba.network"],faucets:[],nativeCurrency:{name:"Boba Token",symbol:"BOBA",decimals:18},infoURL:"https://boba.network",shortName:"BobaoperaTestnet",chainId:4051,networkId:4051,explorers:[{name:"Bobaopera Testnet block explorer",url:"https://blockexplorer.testnet.bobaopera.boba.network",standard:"none"}],testnet:!0,slug:"bobaopera-testnet"},BKt={name:"Bitindi Testnet",chain:"BNI",icon:{url:"ipfs://QmRAFFPiLiSgjGTs9QaZdnR9fsDgyUdTejwSxcnPXo292s",width:60,height:72,format:"png"},rpc:["https://testnet-rpc.bitindi.org"],faucets:["https://faucet.bitindi.org"],nativeCurrency:{name:"BNI",symbol:"$BNI",decimals:18},infoURL:"https://bitindi.org",shortName:"BNIt",chainId:4096,networkId:4096,explorers:[{name:"Bitindi",url:"https://testnet.bitindiscan.com",standard:"EIP3091"}],testnet:!0,slug:"bitindi-testnet"},qKt={name:"Bitindi Mainnet",chain:"BNI",icon:{url:"ipfs://QmRAFFPiLiSgjGTs9QaZdnR9fsDgyUdTejwSxcnPXo292s",width:60,height:72,format:"png"},rpc:["https://mainnet-rpc.bitindi.org"],faucets:["https://faucet.bitindi.org"],nativeCurrency:{name:"BNI",symbol:"$BNI",decimals:18},infoURL:"https://bitindi.org",shortName:"BNIm",chainId:4099,networkId:4099,explorers:[{name:"Bitindi",url:"https://bitindiscan.com",standard:"EIP3091"}],testnet:!1,slug:"bitindi"},DKt={name:"AIOZ Network Testnet",chain:"AIOZ",icon:{url:"ipfs://QmRAGPFhvQiXgoJkui7WHajpKctGFrJNhHqzYdwcWt5V3Z",width:1024,height:1024,format:"png"},rpc:["https://eth-ds.testnet.aioz.network"],faucets:[],nativeCurrency:{name:"testAIOZ",symbol:"AIOZ",decimals:18},infoURL:"https://aioz.network",shortName:"aioz-testnet",chainId:4102,networkId:4102,slip44:60,explorers:[{name:"AIOZ Network Testnet Explorer",url:"https://testnet.explorer.aioz.network",standard:"EIP3091"}],testnet:!0,slug:"aioz-network-testnet"},FKt={name:"PHI Network V1",chain:"PHI V1",rpc:["https://rpc1.phi.network","https://rpc2.phi.network"],faucets:[],nativeCurrency:{name:"PHI",symbol:"\u03A6",decimals:18},infoURL:"https://phi.network",shortName:"PHIv1",chainId:4181,networkId:4181,icon:{url:"ipfs://bafkreid6pm3mic7izp3a6zlfwhhe7etd276bjfsq2xash6a4s2vmcdf65a",width:512,height:512,format:"png"},explorers:[{name:"PHI Explorer",url:"https://explorer.phi.network",icon:"phi",standard:"none"}],testnet:!1,slug:"phi-network-v1"},UKt={name:"Bobafuji Testnet",chain:"Bobafuji Testnet",rpc:["https://testnet.avax.boba.network","wss://wss.testnet.avax.boba.network","https://replica.testnet.avax.boba.network","wss://replica-wss.testnet.avax.boba.network"],faucets:[],nativeCurrency:{name:"Boba Token",symbol:"BOBA",decimals:18},infoURL:"https://boba.network",shortName:"BobaFujiTestnet",chainId:4328,networkId:4328,explorers:[{name:"Bobafuji Testnet block explorer",url:"https://blockexplorer.testnet.avax.boba.network",standard:"none"}],testnet:!0,slug:"bobafuji-testnet"},WKt={name:"Htmlcoin Mainnet",chain:"mainnet",rpc:["https://janus.htmlcoin.com/api/"],faucets:["https://gruvin.me/htmlcoin"],nativeCurrency:{name:"Htmlcoin",symbol:"HTML",decimals:8},infoURL:"https://htmlcoin.com",shortName:"html",chainId:4444,networkId:4444,icon:{url:"ipfs://QmR1oDRSadPerfyWMhKHNP268vPKvpczt5zPawgFSZisz2",width:1e3,height:1e3,format:"png"},status:"active",explorers:[{name:"htmlcoin",url:"https://explorer.htmlcoin.com",icon:"htmlcoin",standard:"none"}],testnet:!1,slug:"htmlcoin"},jKt={name:"IoTeX Network Mainnet",chain:"iotex.io",rpc:["https://babel-api.mainnet.iotex.io"],faucets:[],nativeCurrency:{name:"IoTeX",symbol:"IOTX",decimals:18},infoURL:"https://iotex.io",shortName:"iotex-mainnet",chainId:4689,networkId:4689,explorers:[{name:"iotexscan",url:"https://iotexscan.io",standard:"EIP3091"}],testnet:!1,slug:"iotex-network"},zKt={name:"IoTeX Network Testnet",chain:"iotex.io",rpc:["https://babel-api.testnet.iotex.io"],faucets:["https://faucet.iotex.io/"],nativeCurrency:{name:"IoTeX",symbol:"IOTX",decimals:18},infoURL:"https://iotex.io",shortName:"iotex-testnet",chainId:4690,networkId:4690,explorers:[{name:"testnet iotexscan",url:"https://testnet.iotexscan.io",standard:"EIP3091"}],testnet:!0,slug:"iotex-network-testnet"},HKt={name:"Venidium Testnet",chain:"XVM",rpc:["https://rpc-evm-testnet.venidium.io"],faucets:[],nativeCurrency:{name:"Venidium",symbol:"XVM",decimals:18},infoURL:"https://venidium.io",shortName:"txvm",chainId:4918,networkId:4918,explorers:[{name:"Venidium EVM Testnet Explorer",url:"https://evm-testnet.venidiumexplorer.com",standard:"EIP3091"}],testnet:!0,slug:"venidium-testnet"},VKt={name:"Venidium Mainnet",chain:"XVM",icon:{url:"ipfs://bafkreiaplwlym5g27jm4mjhotfqq6al2cxp3fnkmzdusqjg7wnipq5wn2e",width:1e3,height:1e3,format:"png"},rpc:["https://rpc.venidium.io"],faucets:[],nativeCurrency:{name:"Venidium",symbol:"XVM",decimals:18},infoURL:"https://venidium.io",shortName:"xvm",chainId:4919,networkId:4919,explorers:[{name:"Venidium Explorer",url:"https://evm.venidiumexplorer.com",standard:"EIP3091"}],testnet:!1,slug:"venidium"},GKt={name:"Mantle",chain:"ETH",rpc:["https://rpc.mantle.xyz"],faucets:[],nativeCurrency:{name:"BitDAO",symbol:"BIT",decimals:18},infoURL:"https://mantle.xyz",shortName:"mantle",chainId:5e3,networkId:5e3,explorers:[{name:"Mantle Explorer",url:"https://explorer.mantle.xyz",standard:"EIP3091"}],testnet:!1,slug:"mantle"},ZKt={name:"Mantle Testnet",chain:"ETH",rpc:["https://rpc.testnet.mantle.xyz"],faucets:["https://faucet.testnet.mantle.xyz"],nativeCurrency:{name:"Testnet BitDAO",symbol:"BIT",decimals:18},infoURL:"https://mantle.xyz",shortName:"mantle-testnet",chainId:5001,networkId:5001,explorers:[{name:"Mantle Testnet Explorer",url:"https://explorer.testnet.mantle.xyz",standard:"EIP3091"}],testnet:!0,slug:"mantle-testnet"},JKt={name:"TLChain Network Mainnet",chain:"TLC",icon:{url:"ipfs://QmaR5TsgnWSjLys6wGaciKUbc5qYL3Es4jtgQcosVqDWR3",width:2048,height:2048,format:"png"},rpc:["https://mainnet-rpc.tlxscan.com/"],faucets:[],nativeCurrency:{name:"TLChain Network",symbol:"TLC",decimals:18},infoURL:"https://tlchain.network/",shortName:"tlc",chainId:5177,networkId:5177,explorers:[{name:"TLChain Explorer",url:"https://explorer.tlchain.network",standard:"none"}],testnet:!1,slug:"tlchain-network"},KKt={name:"EraSwap Mainnet",chain:"ESN",icon:{url:"ipfs://QmV1wZ1RVXeD7216aiVBpLkbBBHWNuoTvcSzpVQsqi2uaH",width:200,height:200,format:"png"},rpc:["https://mainnet.eraswap.network","https://rpc-mumbai.mainnet.eraswap.network"],faucets:[],nativeCurrency:{name:"EraSwap",symbol:"ES",decimals:18},infoURL:"https://eraswap.info/",shortName:"es",chainId:5197,networkId:5197,testnet:!1,slug:"eraswap"},QKt={name:"Humanode Mainnet",chain:"HMND",rpc:["https://explorer-rpc-http.mainnet.stages.humanode.io"],faucets:[],nativeCurrency:{name:"HMND",symbol:"HMND",decimals:18},infoURL:"https://humanode.io",shortName:"hmnd",chainId:5234,networkId:5234,explorers:[],testnet:!1,slug:"humanode"},XKt={name:"Uzmi Network Mainnet",chain:"UZMI",rpc:["https://network.uzmigames.com.br/"],faucets:[],nativeCurrency:{name:"UZMI",symbol:"UZMI",decimals:18},infoURL:"https://uzmigames.com.br/",shortName:"UZMI",chainId:5315,networkId:5315,testnet:!1,slug:"uzmi-network"},YKt={name:"Nahmii Mainnet",chain:"Nahmii",rpc:["https://l2.nahmii.io"],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://nahmii.io",shortName:"Nahmii",chainId:5551,networkId:5551,icon:{url:"ipfs://QmZhKXgoGpzvthr2eh8ZNgT75YvMtEBegdELAaMPPzf5QT",width:384,height:384,format:"png"},explorers:[{name:"Nahmii mainnet explorer",url:"https://explorer.nahmii.io",icon:"nahmii",standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-1",bridges:[{url:"https://bridge.nahmii.io"}]},testnet:!1,slug:"nahmii"},$Kt={name:"Nahmii Testnet",chain:"Nahmii",rpc:["https://l2.testnet.nahmii.io"],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://nahmii.io",shortName:"NahmiiTestnet",chainId:5553,networkId:5553,icon:{url:"ipfs://QmZhKXgoGpzvthr2eh8ZNgT75YvMtEBegdELAaMPPzf5QT",width:384,height:384,format:"png"},explorers:[{name:"blockscout",url:"https://explorer.testnet.nahmii.io",icon:"nahmii",standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-3",bridges:[{url:"https://bridge.nahmii.io"}]},testnet:!0,slug:"nahmii-testnet"},eQt={name:"Chain Verse Mainnet",chain:"CVERSE",icon:{url:"ipfs://QmQyJt28h4wN3QHPXUQJQYQqGiFUD77han3zibZPzHbitk",width:1e3,height:1436,format:"png"},rpc:["https://rpc.chainverse.info"],faucets:[],nativeCurrency:{name:"Oasys",symbol:"OAS",decimals:18},infoURL:"https://chainverse.info",shortName:"cverse",chainId:5555,networkId:5555,explorers:[{name:"Chain Verse Explorer",url:"https://explorer.chainverse.info",standard:"EIP3091"}],testnet:!1,slug:"chain-verse"},tQt={name:"Syscoin Tanenbaum Testnet",chain:"SYS",rpc:["https://rpc.tanenbaum.io","wss://rpc.tanenbaum.io/wss"],faucets:["https://faucet.tanenbaum.io"],nativeCurrency:{name:"Testnet Syscoin",symbol:"tSYS",decimals:18},infoURL:"https://syscoin.org",shortName:"tsys",chainId:5700,networkId:5700,explorers:[{name:"Syscoin Testnet Block Explorer",url:"https://tanenbaum.io",standard:"EIP3091"}],testnet:!0,slug:"syscoin-tanenbaum-testnet"},rQt={name:"Ganache",title:"Ganache GUI Ethereum Testnet",chain:"ETH",icon:{url:"ipfs://Qmc9N7V8CiLB4r7FEcG7GojqfiGGsRCZqcFWCahwMohbDW",width:267,height:300,format:"png"},rpc:["https://127.0.0.1:7545"],faucets:[],nativeCurrency:{name:"Ganache Test Ether",symbol:"ETH",decimals:18},infoURL:"https://trufflesuite.com/ganache/",shortName:"ggui",chainId:5777,networkId:5777,explorers:[],testnet:!0,slug:"ganache"},nQt={name:"Ontology Testnet",chain:"Ontology",icon:{url:"ipfs://bafkreigmvn6spvbiirtutowpq6jmetevbxoof5plzixjoerbeswy4htfb4",width:400,height:400,format:"png"},rpc:["http://polaris1.ont.io:20339","http://polaris2.ont.io:20339","http://polaris3.ont.io:20339","http://polaris4.ont.io:20339","https://polaris1.ont.io:10339","https://polaris2.ont.io:10339","https://polaris3.ont.io:10339","https://polaris4.ont.io:10339"],faucets:["https://developer.ont.io/"],nativeCurrency:{name:"ONG",symbol:"ONG",decimals:18},infoURL:"https://ont.io/",shortName:"OntologyTestnet",chainId:5851,networkId:5851,explorers:[{name:"explorer",url:"https://explorer.ont.io/testnet",standard:"EIP3091"}],testnet:!0,slug:"ontology-testnet"},aQt={name:"Wegochain Rubidium Mainnet",chain:"RBD",rpc:["https://proxy.wegochain.io","http://wallet.wegochain.io:7764"],faucets:[],nativeCurrency:{name:"Rubid",symbol:"RBD",decimals:18},infoURL:"https://www.wegochain.io",shortName:"rbd",chainId:5869,networkId:5869,explorers:[{name:"wegoscan2",url:"https://scan2.wegochain.io",standard:"EIP3091"}],testnet:!1,slug:"wegochain-rubidium"},iQt={name:"Tres Testnet",chain:"TresLeches",rpc:["https://rpc-test.tresleches.finance/"],faucets:["http://faucet.tresleches.finance:8080"],nativeCurrency:{name:"TRES",symbol:"TRES",decimals:18},infoURL:"https://treschain.com",shortName:"TRESTEST",chainId:6065,networkId:6065,icon:{url:"ipfs://QmS33ypsZ1Hx5LMMACaJaxePy9QNYMwu4D12niobExLK74",width:512,height:512,format:"png"},explorers:[{name:"treslechesexplorer",url:"https://explorer-test.tresleches.finance",icon:"treslechesexplorer",standard:"EIP3091"}],testnet:!0,slug:"tres-testnet"},sQt={name:"Tres Mainnet",chain:"TresLeches",rpc:["https://rpc.tresleches.finance/","https://rpc.treschain.io/"],faucets:[],nativeCurrency:{name:"TRES",symbol:"TRES",decimals:18},infoURL:"https://treschain.com",shortName:"TRESMAIN",chainId:6066,networkId:6066,icon:{url:"ipfs://QmS33ypsZ1Hx5LMMACaJaxePy9QNYMwu4D12niobExLK74",width:512,height:512,format:"png"},explorers:[{name:"treslechesexplorer",url:"https://explorer.tresleches.finance",icon:"treslechesexplorer",standard:"EIP3091"}],testnet:!1,slug:"tres"},oQt={name:"Pixie Chain Mainnet",chain:"PixieChain",rpc:["https://http-mainnet.chain.pixie.xyz","wss://ws-mainnet.chain.pixie.xyz"],faucets:[],nativeCurrency:{name:"Pixie Chain Native Token",symbol:"PIX",decimals:18},infoURL:"https://chain.pixie.xyz",shortName:"pixie-chain",chainId:6626,networkId:6626,explorers:[{name:"blockscout",url:"https://scan.chain.pixie.xyz",standard:"none"}],testnet:!1,slug:"pixie-chain"},cQt={name:"Gold Smart Chain Mainnet",chain:"STAND",icon:{url:"ipfs://QmPNuymyaKLJhCaXnyrsL8358FeTxabZFsaxMmWNU4Tzt3",width:396,height:418,format:"png"},rpc:["https://rpc-mainnet.goldsmartchain.com"],faucets:["https://faucet.goldsmartchain.com"],nativeCurrency:{name:"Standard in Gold",symbol:"STAND",decimals:18},infoURL:"https://goldsmartchain.com",shortName:"STANDm",chainId:6789,networkId:6789,explorers:[{name:"Gold Smart Chain",url:"https://mainnet.goldsmartchain.com",standard:"EIP3091"}],testnet:!1,slug:"gold-smart-chain"},uQt={name:"Tomb Chain Mainnet",chain:"Tomb Chain",rpc:["https://rpc.tombchain.com/"],faucets:[],nativeCurrency:{name:"Tomb",symbol:"TOMB",decimals:18},infoURL:"https://tombchain.com/",shortName:"tombchain",chainId:6969,networkId:6969,explorers:[{name:"tombscout",url:"https://tombscout.com",standard:"none"}],parent:{type:"L2",chain:"eip155-250",bridges:[{url:"https://lif3.com/bridge"}]},testnet:!1,slug:"tomb-chain"},lQt={name:"PolySmartChain",chain:"PSC",rpc:["https://seed0.polysmartchain.com/","https://seed1.polysmartchain.com/","https://seed2.polysmartchain.com/"],faucets:[],nativeCurrency:{name:"PSC",symbol:"PSC",decimals:18},infoURL:"https://www.polysmartchain.com/",shortName:"psc",chainId:6999,networkId:6999,testnet:!1,slug:"polysmartchain"},dQt={name:"ZetaChain Mainnet",chain:"ZetaChain",icon:{url:"ipfs://QmeABfwZ2nAxDzYyqZ1LEypPgQFMjEyrx8FfnoPLkF8R3f",width:1280,height:1280,format:"png"},rpc:["https://api.mainnet.zetachain.com/evm"],faucets:[],nativeCurrency:{name:"Zeta",symbol:"ZETA",decimals:18},infoURL:"https://docs.zetachain.com/",shortName:"zetachain-mainnet",chainId:7e3,networkId:7e3,status:"incubating",explorers:[{name:"ZetaChain Mainnet Explorer",url:"https://explorer.mainnet.zetachain.com",standard:"none"}],testnet:!1,slug:"zetachain"},pQt={name:"ZetaChain Athens Testnet",chain:"ZetaChain",icon:{url:"ipfs://QmeABfwZ2nAxDzYyqZ1LEypPgQFMjEyrx8FfnoPLkF8R3f",width:1280,height:1280,format:"png"},rpc:["https://api.athens2.zetachain.com/evm"],faucets:["https://labs.zetachain.com/get-zeta"],nativeCurrency:{name:"Zeta",symbol:"aZETA",decimals:18},infoURL:"https://docs.zetachain.com/",shortName:"zetachain-athens",chainId:7001,networkId:7001,status:"active",explorers:[{name:"ZetaChain Athens Testnet Explorer",url:"https://explorer.athens.zetachain.com",standard:"none"}],testnet:!0,slug:"zetachain-athens-testnet"},hQt={name:"Ella the heart",chain:"ella",icon:{url:"ipfs://QmVkAhSaHhH3wKoLT56Aq8dNyEH4RySPEpqPcLwsptGBDm",width:512,height:512,format:"png"},rpc:["https://rpc.ella.network"],faucets:[],nativeCurrency:{name:"Ella",symbol:"ELLA",decimals:18},infoURL:"https://ella.network",shortName:"ELLA",chainId:7027,networkId:7027,explorers:[{name:"Ella",url:"https://ella.network",standard:"EIP3091"}],testnet:!1,slug:"ella-the-heart"},fQt={name:"Planq Mainnet",chain:"Planq",icon:{url:"ipfs://QmWEy9xK5BoqxPuVs7T48WM4exJrxzkEFt45iHcxWqUy8D",width:256,height:256,format:"png"},rpc:["https://evm-rpc.planq.network"],faucets:[],nativeCurrency:{name:"Planq",symbol:"PLQ",decimals:18},infoURL:"https://planq.network",shortName:"planq",chainId:7070,networkId:7070,explorers:[{name:"Planq EVM Explorer (Blockscout)",url:"https://evm.planq.network",standard:"none"},{name:"Planq Cosmos Explorer (BigDipper)",url:"https://explorer.planq.network",standard:"none"}],testnet:!1,slug:"planq"},mQt={name:"Shyft Mainnet",chain:"SHYFT",icon:{url:"ipfs://QmUkFZC2ZmoYPTKf7AHdjwRPZoV2h1MCuHaGM4iu8SNFpi",width:400,height:400,format:"svg"},rpc:["https://rpc.shyft.network/"],faucets:[],nativeCurrency:{name:"Shyft",symbol:"SHYFT",decimals:18},infoURL:"https://shyft.network",shortName:"shyft",chainId:7341,networkId:7341,slip44:2147490989,explorers:[{name:"Shyft BX",url:"https://bx.shyft.network",standard:"EIP3091"}],testnet:!1,slug:"shyft"},yQt={name:"Canto",chain:"Canto",rpc:["https://canto.slingshot.finance"],faucets:[],nativeCurrency:{name:"Canto",symbol:"CANTO",decimals:18},infoURL:"https://canto.io",shortName:"canto",chainId:7700,networkId:7700,explorers:[{name:"Canto EVM Explorer (Blockscout)",url:"https://evm.explorer.canto.io",standard:"none"},{name:"Canto Cosmos Explorer (BigDipper)",url:"https://cosmos.explorer.canto.io",standard:"none"}],testnet:!1,slug:"canto"},gQt={name:"Rise of the Warbots Testnet",chain:"nmactest",rpc:["https://testnet1.riseofthewarbots.com","https://testnet2.riseofthewarbots.com","https://testnet3.riseofthewarbots.com","https://testnet4.riseofthewarbots.com","https://testnet5.riseofthewarbots.com"],faucets:[],nativeCurrency:{name:"Nano Machines",symbol:"NMAC",decimals:18},infoURL:"https://riseofthewarbots.com/",shortName:"RiseOfTheWarbotsTestnet",chainId:7777,networkId:7777,explorers:[{name:"avascan",url:"https://testnet.avascan.info/blockchain/2mZ9doojfwHzXN3VXDQELKnKyZYxv7833U8Yq5eTfFx3hxJtiy",standard:"none"}],testnet:!0,slug:"rise-of-the-warbots-testnet"},vQt={name:"Hazlor Testnet",chain:"SCAS",rpc:["https://hatlas.rpc.hazlor.com:8545","wss://hatlas.rpc.hazlor.com:8546"],faucets:["https://faucet.hazlor.com"],nativeCurrency:{name:"Hazlor Test Coin",symbol:"TSCAS",decimals:18},infoURL:"https://hazlor.com",shortName:"tscas",chainId:7878,networkId:7878,explorers:[{name:"Hazlor Testnet Explorer",url:"https://explorer.hazlor.com",standard:"none"}],testnet:!0,slug:"hazlor-testnet"},bQt={name:"Teleport",chain:"Teleport",rpc:["https://evm-rpc.teleport.network"],faucets:[],nativeCurrency:{name:"Tele",symbol:"TELE",decimals:18},infoURL:"https://teleport.network",shortName:"teleport",chainId:8e3,networkId:8e3,icon:{url:"ipfs://QmdP1sLnsmW9dwnfb1GxAXU1nHDzCvWBQNumvMXpdbCSuz",width:390,height:390,format:"svg"},explorers:[{name:"Teleport EVM Explorer (Blockscout)",url:"https://evm-explorer.teleport.network",standard:"none",icon:"teleport"},{name:"Teleport Cosmos Explorer (Big Dipper)",url:"https://explorer.teleport.network",standard:"none",icon:"teleport"}],testnet:!1,slug:"teleport"},wQt={name:"Teleport Testnet",chain:"Teleport",rpc:["https://evm-rpc.testnet.teleport.network"],faucets:["https://chain-docs.teleport.network/testnet/faucet.html"],nativeCurrency:{name:"Tele",symbol:"TELE",decimals:18},infoURL:"https://teleport.network",shortName:"teleport-testnet",chainId:8001,networkId:8001,icon:{url:"ipfs://QmdP1sLnsmW9dwnfb1GxAXU1nHDzCvWBQNumvMXpdbCSuz",width:390,height:390,format:"svg"},explorers:[{name:"Teleport EVM Explorer (Blockscout)",url:"https://evm-explorer.testnet.teleport.network",standard:"none",icon:"teleport"},{name:"Teleport Cosmos Explorer (Big Dipper)",url:"https://explorer.testnet.teleport.network",standard:"none",icon:"teleport"}],testnet:!0,slug:"teleport-testnet"},xQt={name:"MDGL Testnet",chain:"MDGL",rpc:["https://testnet.mdgl.io"],faucets:[],nativeCurrency:{name:"MDGL Token",symbol:"MDGLT",decimals:18},infoURL:"https://mdgl.io",shortName:"mdgl",chainId:8029,networkId:8029,testnet:!0,slug:"mdgl-testnet"},TQt={name:"Shardeum Liberty 1.X",chain:"Shardeum",icon:{url:"ipfs://Qma1bfuubpepKn7DLDy4NPSKDeT3S4VPCNhu6UmdGrb6YD",width:609,height:533,format:"png"},rpc:["https://liberty10.shardeum.org/"],faucets:["https://faucet.liberty10.shardeum.org"],nativeCurrency:{name:"Shardeum SHM",symbol:"SHM",decimals:18},infoURL:"https://docs.shardeum.org/",shortName:"Liberty10",chainId:8080,networkId:8080,explorers:[{name:"Shardeum Scan",url:"https://explorer-liberty10.shardeum.org",standard:"none"}],redFlags:["reusedChainId"],testnet:!1,slug:"shardeum-liberty-1-x"},_Qt={name:"Shardeum Liberty 2.X",chain:"Shardeum",icon:{url:"ipfs://Qma1bfuubpepKn7DLDy4NPSKDeT3S4VPCNhu6UmdGrb6YD",width:609,height:533,format:"png"},rpc:["https://liberty20.shardeum.org/"],faucets:["https://faucet.liberty20.shardeum.org"],nativeCurrency:{name:"Shardeum SHM",symbol:"SHM",decimals:18},infoURL:"https://docs.shardeum.org/",shortName:"Liberty20",chainId:8081,networkId:8081,explorers:[{name:"Shardeum Scan",url:"https://explorer-liberty20.shardeum.org",standard:"none"}],redFlags:["reusedChainId"],testnet:!1,slug:"shardeum-liberty-2-x"},CQt={name:"Shardeum Sphinx 1.X",chain:"Shardeum",icon:{url:"ipfs://Qma1bfuubpepKn7DLDy4NPSKDeT3S4VPCNhu6UmdGrb6YD",width:609,height:533,format:"png"},rpc:["https://sphinx.shardeum.org/"],faucets:["https://faucet-sphinx.shardeum.org/"],nativeCurrency:{name:"Shardeum SHM",symbol:"SHM",decimals:18},infoURL:"https://docs.shardeum.org/",shortName:"Sphinx10",chainId:8082,networkId:8082,explorers:[{name:"Shardeum Scan",url:"https://explorer-sphinx.shardeum.org",standard:"none"}],redFlags:["reusedChainId"],testnet:!1,slug:"shardeum-sphinx-1-x"},EQt={name:"StreamuX Blockchain",chain:"StreamuX",rpc:["https://u0ma6t6heb:KDNwOsRDGcyM2Oeui1p431Bteb4rvcWkuPgQNHwB4FM@u0xy4x6x82-u0e2mg517m-rpc.us0-aws.kaleido.io/"],faucets:[],nativeCurrency:{name:"StreamuX",symbol:"SmuX",decimals:18},infoURL:"https://www.streamux.cloud",shortName:"StreamuX",chainId:8098,networkId:8098,testnet:!1,slug:"streamux-blockchain"},kQt={name:"Qitmeer Network Testnet",chain:"MEER",rpc:[],faucets:[],nativeCurrency:{name:"Qitmeer Testnet",symbol:"MEER-T",decimals:18},infoURL:"https://github.com/Qitmeer",shortName:"meertest",chainId:8131,networkId:8131,icon:{url:"ipfs://QmWSbMuCwQzhBB6GRLYqZ87n5cnpzpYCehCAMMQmUXj4mm",width:512,height:512,format:"png"},explorers:[{name:"meerscan testnet",url:"https://testnet.qng.meerscan.io",standard:"none"}],testnet:!0,slug:"qitmeer-network-testnet"},SQt={name:"BeOne Chain Testnet",chain:"BOC",rpc:["https://pre-boc1.beonechain.com","https://pre-boc2.beonechain.com","https://pre-boc3.beonechain.com"],faucets:["https://testnet.beonescan.com/faucet"],nativeCurrency:{name:"BeOne Chain Testnet",symbol:"BOC",decimals:18},infoURL:"https://testnet.beonescan.com",shortName:"tBOC",chainId:8181,networkId:8181,icon:{url:"ipfs://QmbVLQnaMDu86bPyKgCvTGhFBeYwjr15hQnrCcsp1EkAGL",width:500,height:500,format:"png"},explorers:[{name:"BeOne Chain Testnet",url:"https://testnet.beonescan.com",icon:"beonechain",standard:"none"}],testnet:!0,slug:"beone-chain-testnet"},AQt={name:"Klaytn Mainnet Cypress",chain:"KLAY",rpc:["https://public-node-api.klaytnapi.com/v1/cypress"],faucets:[],nativeCurrency:{name:"KLAY",symbol:"KLAY",decimals:18},infoURL:"https://www.klaytn.com/",shortName:"Cypress",chainId:8217,networkId:8217,slip44:8217,explorers:[{name:"Klaytnscope",url:"https://scope.klaytn.com",standard:"none"}],testnet:!1,slug:"klaytn-cypress"},MQt={name:"Blockton Blockchain",chain:"Blockton Blockchain",icon:{url:"ipfs://bafkreig3hoedafisrgc6iffdo2jcblm6kov35h72gcblc3zkmt7t4ucwhy",width:800,height:800,format:"png"},rpc:["https://rpc.blocktonscan.com/"],faucets:["https://faucet.blocktonscan.com/"],nativeCurrency:{name:"BLOCKTON",symbol:"BTON",decimals:18},infoURL:"https://blocktoncoin.com",shortName:"BTON",chainId:8272,networkId:8272,explorers:[{name:"Blockton Explorer",url:"https://blocktonscan.com",standard:"none"}],testnet:!1,slug:"blockton-blockchain"},IQt={name:"KorthoTest",chain:"Kortho",rpc:["https://www.krotho-test.net"],faucets:[],nativeCurrency:{name:"Kortho Test",symbol:"KTO",decimals:11},infoURL:"https://www.kortho.io/",shortName:"Kortho",chainId:8285,networkId:8285,testnet:!0,slug:"korthotest"},PQt={name:"Toki Network",chain:"TOKI",rpc:["https://mainnet.buildwithtoki.com/v0/rpc"],faucets:[],nativeCurrency:{name:"Toki",symbol:"TOKI",decimals:18},infoURL:"https://www.buildwithtoki.com",shortName:"toki",chainId:8654,networkId:8654,icon:{url:"ipfs://QmbCBBH4dFHGr8u1yQspCieQG9hLcPFNYdRx1wnVsX8hUw",width:512,height:512,format:"svg"},explorers:[],testnet:!1,slug:"toki-network"},RQt={name:"Toki Testnet",chain:"TOKI",rpc:["https://testnet.buildwithtoki.com/v0/rpc"],faucets:[],nativeCurrency:{name:"Toki",symbol:"TOKI",decimals:18},infoURL:"https://www.buildwithtoki.com",shortName:"toki-testnet",chainId:8655,networkId:8655,icon:{url:"ipfs://QmbCBBH4dFHGr8u1yQspCieQG9hLcPFNYdRx1wnVsX8hUw",width:512,height:512,format:"svg"},explorers:[],testnet:!0,slug:"toki-testnet"},NQt={name:"TOOL Global Mainnet",chain:"OLO",rpc:["https://mainnet-web3.wolot.io"],faucets:[],nativeCurrency:{name:"TOOL Global",symbol:"OLO",decimals:18},infoURL:"https://ibdt.io",shortName:"olo",chainId:8723,networkId:8723,slip44:479,explorers:[{name:"OLO Block Explorer",url:"https://www.olo.network",standard:"EIP3091"}],testnet:!1,slug:"tool-global"},OQt={name:"TOOL Global Testnet",chain:"OLO",rpc:["https://testnet-web3.wolot.io"],faucets:["https://testnet-explorer.wolot.io"],nativeCurrency:{name:"TOOL Global",symbol:"OLO",decimals:18},infoURL:"https://testnet-explorer.wolot.io",shortName:"tolo",chainId:8724,networkId:8724,slip44:479,testnet:!0,slug:"tool-global-testnet"},LQt={name:"Alph Network",chain:"ALPH",rpc:["https://rpc.alph.network","wss://rpc.alph.network"],faucets:[],nativeCurrency:{name:"Alph Network",symbol:"ALPH",decimals:18},infoURL:"https://alph.network",shortName:"alph",chainId:8738,networkId:8738,explorers:[{name:"alphscan",url:"https://explorer.alph.network",icon:"alphscan",standard:"EIP3091"}],testnet:!1,slug:"alph-network"},BQt={name:"TMY Chain",chain:"TMY",icon:{url:"ipfs://QmdwQDr6vmBtXmK2TmknkEuZNoaDqTasFdZdu3DRw8b2wt",width:1e3,height:1628,format:"png"},rpc:["https://node1.tmyblockchain.org/rpc"],faucets:["https://faucet.tmychain.org/"],nativeCurrency:{name:"TMY",symbol:"TMY",decimals:18},infoURL:"https://tmychain.org/",shortName:"tmy",chainId:8768,networkId:8768,testnet:!1,slug:"tmy-chain"},qQt={name:"Unique",icon:{url:"ipfs://QmbJ7CGZ2GxWMp7s6jy71UGzRsMe4w3KANKXDAExYWdaFR",width:48,height:48,format:"svg"},chain:"UNQ",rpc:["https://rpc.unique.network","https://eu-rpc.unique.network","https://asia-rpc.unique.network","https://us-rpc.unique.network"],faucets:[],nativeCurrency:{name:"Unique",symbol:"UNQ",decimals:18},infoURL:"https://unique.network",shortName:"unq",chainId:8880,networkId:8880,explorers:[{name:"Unique Scan",url:"https://uniquescan.io/unique",standard:"none"}],testnet:!1,slug:"unique"},DQt={name:"Quartz by Unique",icon:{url:"ipfs://QmaGPdccULQEFcCGxzstnmE8THfac2kSiGwvWRAiaRq4dp",width:48,height:48,format:"svg"},chain:"UNQ",rpc:["https://rpc-quartz.unique.network","https://quartz.api.onfinality.io/public-ws","https://eu-rpc-quartz.unique.network","https://asia-rpc-quartz.unique.network","https://us-rpc-quartz.unique.network"],faucets:[],nativeCurrency:{name:"Quartz",symbol:"QTZ",decimals:18},infoURL:"https://unique.network",shortName:"qtz",chainId:8881,networkId:8881,explorers:[{name:"Unique Scan / Quartz",url:"https://uniquescan.io/quartz",standard:"none"}],testnet:!1,slug:"quartz-by-unique"},FQt={name:"Opal testnet by Unique",icon:{url:"ipfs://QmYJDpmWyjDa3H6BxweFmQXk4fU8b1GU7M9EqYcaUNvXzc",width:48,height:48,format:"svg"},chain:"UNQ",rpc:["https://rpc-opal.unique.network","https://us-rpc-opal.unique.network","https://eu-rpc-opal.unique.network","https://asia-rpc-opal.unique.network"],faucets:["https://t.me/unique2faucet_opal_bot"],nativeCurrency:{name:"Opal",symbol:"UNQ",decimals:18},infoURL:"https://unique.network",shortName:"opl",chainId:8882,networkId:8882,explorers:[{name:"Unique Scan / Opal",url:"https://uniquescan.io/opal",standard:"none"}],testnet:!0,slug:"opal-testnet-by-unique"},UQt={name:"Sapphire by Unique",icon:{url:"ipfs://Qmd1PGt4cDRjFbh4ihP5QKEd4XQVwN1MkebYKdF56V74pf",width:48,height:48,format:"svg"},chain:"UNQ",rpc:["https://rpc-sapphire.unique.network","https://us-rpc-sapphire.unique.network","https://eu-rpc-sapphire.unique.network","https://asia-rpc-sapphire.unique.network"],faucets:[],nativeCurrency:{name:"Quartz",symbol:"QTZ",decimals:18},infoURL:"https://unique.network",shortName:"sph",chainId:8883,networkId:8883,explorers:[{name:"Unique Scan / Sapphire",url:"https://uniquescan.io/sapphire",standard:"none"}],testnet:!1,slug:"sapphire-by-unique"},WQt={name:"XANAChain",chain:"XANAChain",rpc:["https://mainnet.xana.net/rpc"],faucets:[],nativeCurrency:{name:"XETA",symbol:"XETA",decimals:18},infoURL:"https://xanachain.xana.net/",shortName:"XANAChain",chainId:8888,networkId:8888,icon:{url:"ipfs://QmWGNfwJ9o2vmKD3E6fjrxpbFP8W5q45zmYzHHoXwqqAoj",width:512,height:512,format:"png"},explorers:[{name:"XANAChain",url:"https://xanachain.xana.net",standard:"EIP3091"}],redFlags:["reusedChainId"],testnet:!1,slug:"xanachain"},jQt={name:"Vyvo Smart Chain",chain:"VSC",rpc:["https://vsc-dataseed.vyvo.org:8889"],faucets:[],nativeCurrency:{name:"VSC",symbol:"VSC",decimals:18},infoURL:"https://vsc-dataseed.vyvo.org",shortName:"vsc",chainId:8889,networkId:8889,testnet:!1,slug:"vyvo-smart-chain"},zQt={name:"Mammoth Mainnet",title:"Mammoth Chain",chain:"MMT",rpc:["https://dataseed.mmtscan.io","https://dataseed1.mmtscan.io","https://dataseed2.mmtscan.io"],faucets:["https://faucet.mmtscan.io/"],nativeCurrency:{name:"Mammoth Token",symbol:"MMT",decimals:18},infoURL:"https://mmtchain.io/",shortName:"mmt",chainId:8898,networkId:8898,icon:{url:"ipfs://QmaF5gi2CbDKsJ2UchNkjBqmWjv8JEDP3vePBmxeUHiaK4",width:250,height:250,format:"png"},explorers:[{name:"mmtscan",url:"https://mmtscan.io",standard:"EIP3091",icon:"mmt"}],testnet:!1,slug:"mammoth"},HQt={name:"JIBCHAIN L1",chain:"JBC",rpc:["https://rpc-l1.jibchain.net"],faucets:[],features:[{name:"EIP155"},{name:"EIP1559"}],nativeCurrency:{name:"JIBCOIN",symbol:"JBC",decimals:18},infoURL:"https://jibchain.net",shortName:"jbc",chainId:8899,networkId:8899,explorers:[{name:"JIBCHAIN Explorer",url:"https://exp-l1.jibchain.net",standard:"EIP3091"}],testnet:!1,slug:"jibchain-l1"},VQt={name:"Giant Mammoth Mainnet",title:"Giant Mammoth Chain",chain:"GMMT",rpc:["https://rpc-asia.gmmtchain.io"],faucets:[],nativeCurrency:{name:"Giant Mammoth Coin",symbol:"GMMT",decimals:18},infoURL:"https://gmmtchain.io/",shortName:"gmmt",chainId:8989,networkId:8989,icon:{url:"ipfs://QmVth4aPeskDTFqRifUugJx6gyEHCmx2PFbMWUtsCSQFkF",width:468,height:518,format:"png"},explorers:[{name:"gmmtscan",url:"https://scan.gmmtchain.io",standard:"EIP3091",icon:"gmmt"}],testnet:!1,slug:"giant-mammoth"},GQt={name:"bloxberg",chain:"bloxberg",rpc:["https://core.bloxberg.org"],faucets:["https://faucet.bloxberg.org/"],nativeCurrency:{name:"BERG",symbol:"U+25B3",decimals:18},infoURL:"https://bloxberg.org",shortName:"berg",chainId:8995,networkId:8995,testnet:!1,slug:"bloxberg"},ZQt={name:"Evmos Testnet",chain:"Evmos",rpc:["https://eth.bd.evmos.dev:8545"],faucets:["https://faucet.evmos.dev"],nativeCurrency:{name:"test-Evmos",symbol:"tEVMOS",decimals:18},infoURL:"https://evmos.org",shortName:"evmos-testnet",chainId:9e3,networkId:9e3,icon:{url:"ipfs://QmeZW6VKUFTbz7PPW8PmDR3ZHa6osYPLBFPnW8T5LSU49c",width:400,height:400,format:"png"},explorers:[{name:"Evmos EVM Explorer",url:"https://evm.evmos.dev",standard:"EIP3091",icon:"evmos"},{name:"Evmos Cosmos Explorer",url:"https://explorer.evmos.dev",standard:"none",icon:"evmos"}],testnet:!0,slug:"evmos-testnet"},JQt={name:"Evmos",chain:"Evmos",rpc:["https://eth.bd.evmos.org:8545","https://evmos-evm.publicnode.com"],faucets:[],nativeCurrency:{name:"Evmos",symbol:"EVMOS",decimals:18},infoURL:"https://evmos.org",shortName:"evmos",chainId:9001,networkId:9001,icon:{url:"ipfs://QmeZW6VKUFTbz7PPW8PmDR3ZHa6osYPLBFPnW8T5LSU49c",width:400,height:400,format:"png"},explorers:[{name:"Evmos EVM Explorer (Escan)",url:"https://escan.live",standard:"none",icon:"evmos"},{name:"Evmos Cosmos Explorer (Mintscan)",url:"https://www.mintscan.io/evmos",standard:"none",icon:"evmos"}],testnet:!1,slug:"evmos"},KQt={name:"BerylBit Mainnet",chain:"BRB",rpc:["https://mainnet.berylbit.io"],faucets:["https://t.me/BerylBit"],nativeCurrency:{name:"BerylBit Chain Native Token",symbol:"BRB",decimals:18},infoURL:"https://www.beryl-bit.com",shortName:"brb",chainId:9012,networkId:9012,icon:{url:"ipfs://QmeDXHkpranzqGN1BmQqZSrFp4vGXf4JfaB5iq8WHHiwDi",width:162,height:162,format:"png"},explorers:[{name:"berylbit-explorer",url:"https://explorer.berylbit.io",standard:"EIP3091"}],testnet:!1,slug:"berylbit"},QQt={name:"Genesis Coin",chain:"Genesis",rpc:["https://genesis-gn.com","wss://genesis-gn.com"],faucets:[],nativeCurrency:{name:"GN Coin",symbol:"GNC",decimals:18},infoURL:"https://genesis-gn.com",shortName:"GENEC",chainId:9100,networkId:9100,testnet:!1,slug:"genesis-coin"},XQt={name:"Dogcoin Testnet",chain:"DOGS",icon:{url:"ipfs://QmZCadkExKThak3msvszZjo6UnAbUJKE61dAcg4TixuMC3",width:160,height:171,format:"png"},rpc:["https://testnet-rpc.dogcoin.network"],faucets:["https://faucet.dogcoin.network"],nativeCurrency:{name:"Dogcoin",symbol:"DOGS",decimals:18},infoURL:"https://dogcoin.network",shortName:"DOGSt",chainId:9339,networkId:9339,explorers:[{name:"Dogcoin",url:"https://testnet.dogcoin.network",standard:"EIP3091"}],testnet:!0,slug:"dogcoin-testnet"},YQt={name:"Rangers Protocol Testnet Robin",chain:"Rangers",icon:{url:"ipfs://QmfHG3xbg4iiopagww93Gu7tmvCpPwZdiwsUjd3Dt5mRwT",width:835,height:835,format:"png"},rpc:["https://robin.rangersprotocol.com/api/jsonrpc"],faucets:["https://robin-faucet.rangersprotocol.com"],nativeCurrency:{name:"Rangers Protocol Gas",symbol:"tRPG",decimals:18},infoURL:"https://rangersprotocol.com",shortName:"trpg",chainId:9527,networkId:9527,explorers:[{name:"rangersscan-robin",url:"https://robin-rangersscan.rangersprotocol.com",standard:"none"}],testnet:!0,slug:"rangers-protocol-testnet-robin"},$Qt={name:"QEasyWeb3 Testnet",chain:"QET",rpc:["https://qeasyweb3.com"],faucets:["http://faucet.qeasyweb3.com"],nativeCurrency:{name:"QET",symbol:"QET",decimals:18},infoURL:"https://www.qeasyweb3.com",shortName:"QETTest",chainId:9528,networkId:9528,explorers:[{name:"QEasyWeb3 Explorer",url:"https://www.qeasyweb3.com",icon:"qetscan",standard:"EIP3091"}],testnet:!0,slug:"qeasyweb3-testnet"},eXt={name:"Oort MainnetDev",title:"Oort MainnetDev",chain:"MainnetDev",rpc:[],faucets:[],nativeCurrency:{name:"Oort",symbol:"CCN",decimals:18},infoURL:"https://oortech.com",shortName:"MainnetDev",chainId:9700,networkId:9700,icon:{url:"ipfs://QmZ1jbxFZcuotj3eZ6iKFrg9ZXnaV8AK6sGRa7ELrceWyD",width:1043,height:1079,format:"png"},testnet:!1,slug:"oort-dev"},tXt={name:"Boba BNB Testnet",chain:"Boba BNB Testnet",rpc:["https://testnet.bnb.boba.network","wss://wss.testnet.bnb.boba.network","https://replica.testnet.bnb.boba.network","wss://replica-wss.testnet.bnb.boba.network"],faucets:[],nativeCurrency:{name:"Boba Token",symbol:"BOBA",decimals:18},infoURL:"https://boba.network",shortName:"BobaBnbTestnet",chainId:9728,networkId:9728,explorers:[{name:"Boba BNB Testnet block explorer",url:"https://blockexplorer.testnet.bnb.boba.network",standard:"none"}],testnet:!0,slug:"boba-bnb-testnet"},rXt={name:"MainnetZ Testnet",chain:"NetZ",icon:{url:"ipfs://QmT5gJ5weBiLT3GoYuF5yRTRLdPLCVZ3tXznfqW7M8fxgG",width:400,height:400,format:"png"},rpc:["https://testnet-rpc.mainnetz.io"],faucets:["https://faucet.mainnetz.io"],nativeCurrency:{name:"MainnetZ",symbol:"NetZ",decimals:18},infoURL:"https://testnet.mainnetz.io",shortName:"NetZt",chainId:9768,networkId:9768,explorers:[{name:"MainnetZ",url:"https://testnet.mainnetz.io",standard:"EIP3091"}],testnet:!0,slug:"z-testnet"},nXt={name:"myOwn Testnet",chain:"myOwn",rpc:["https://geth.dev.bccloud.net"],faucets:[],nativeCurrency:{name:"MYN",symbol:"MYN",decimals:18},infoURL:"https://docs.bccloud.net/",shortName:"myn",chainId:9999,networkId:9999,testnet:!0,slug:"myown-testnet"},aXt={name:"Smart Bitcoin Cash",chain:"smartBCH",rpc:["https://smartbch.greyh.at","https://rpc-mainnet.smartbch.org","https://smartbch.fountainhead.cash/mainnet","https://smartbch.devops.cash/mainnet"],faucets:[],nativeCurrency:{name:"Bitcoin Cash",symbol:"BCH",decimals:18},infoURL:"https://smartbch.org/",shortName:"smartbch",chainId:1e4,networkId:1e4,testnet:!1,slug:"smart-bitcoin-cash"},iXt={name:"Smart Bitcoin Cash Testnet",chain:"smartBCHTest",rpc:["https://rpc-testnet.smartbch.org","https://smartbch.devops.cash/testnet"],faucets:[],nativeCurrency:{name:"Bitcoin Cash Test Token",symbol:"BCHT",decimals:18},infoURL:"http://smartbch.org/",shortName:"smartbchtest",chainId:10001,networkId:10001,testnet:!0,slug:"smart-bitcoin-cash-testnet"},sXt={name:"Gon Chain",chain:"GonChain",icon:{url:"ipfs://QmPtiJGaApbW3ATZhPW3pKJpw3iGVrRGsZLWhrDKF9ZK18",width:1024,height:1024,format:"png"},rpc:["https://node1.testnet.gaiaopen.network","http://database1.gaiaopen.network"],faucets:[],nativeCurrency:{name:"Gon Token",symbol:"GT",decimals:18},infoURL:"",shortName:"gon",chainId:10024,networkId:10024,explorers:[{name:"Gon Explorer",url:"https://gonscan.com",standard:"none"}],testnet:!0,slug:"gon-chain"},oXt={name:"SJATSH",chain:"ETH",rpc:["http://geth.free.idcfengye.com"],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://sjis.me",shortName:"SJ",chainId:10086,networkId:10086,testnet:!1,slug:"sjatsh"},cXt={name:"Blockchain Genesis Mainnet",chain:"GEN",rpc:["https://eu.mainnet.xixoio.com","https://us.mainnet.xixoio.com","https://asia.mainnet.xixoio.com"],faucets:[],nativeCurrency:{name:"GEN",symbol:"GEN",decimals:18},infoURL:"https://www.xixoio.com/",shortName:"GEN",chainId:10101,networkId:10101,testnet:!1,slug:"blockchain-genesis"},uXt={name:"Chiado Testnet",chain:"CHI",icon:{url:"ipfs://bafybeidk4swpgdyqmpz6shd5onvpaujvwiwthrhypufnwr6xh3dausz2dm",width:1800,height:1800,format:"png"},rpc:["https://rpc.chiadochain.net","https://rpc.eu-central-2.gateway.fm/v3/gnosis/archival/chiado"],faucets:["https://gnosisfaucet.com"],nativeCurrency:{name:"Chiado xDAI",symbol:"xDAI",decimals:18},infoURL:"https://docs.gnosischain.com",shortName:"chi",chainId:10200,networkId:10200,explorers:[{name:"blockscout",url:"https://blockscout.chiadochain.net",icon:"blockscout",standard:"EIP3091"}],testnet:!0,slug:"chiado-testnet"},lXt={name:"0XTade",chain:"0XTade Chain",rpc:["https://node.0xtchain.com"],faucets:[],nativeCurrency:{name:"0XT",symbol:"0XT",decimals:18},infoURL:"https://www.0xtrade.finance/",shortName:"0xt",chainId:10248,networkId:10248,explorers:[{name:"0xtrade Scan",url:"https://www.0xtscan.com",standard:"none"}],testnet:!1,slug:"0xtade"},dXt={name:"Numbers Mainnet",chain:"NUM",icon:{url:"ipfs://bafkreie3ba6ofosjqqiya6empkyw6u5xdrtcfzi2evvyt4u6utzeiezyhi",width:1500,height:1500,format:"png"},rpc:["https://mainnetrpc.num.network"],faucets:[],nativeCurrency:{name:"NUM Token",symbol:"NUM",decimals:18},infoURL:"https://numbersprotocol.io",shortName:"Jade",chainId:10507,networkId:10507,explorers:[{name:"ethernal",url:"https://mainnet.num.network",standard:"EIP3091"}],testnet:!1,slug:"numbers"},pXt={name:"Numbers Testnet",chain:"NUM",icon:{url:"ipfs://bafkreie3ba6ofosjqqiya6empkyw6u5xdrtcfzi2evvyt4u6utzeiezyhi",width:1500,height:1500,format:"png"},rpc:["https://testnetrpc.num.network"],faucets:["https://faucet.avax.network/?subnet=num","https://faucet.num.network"],nativeCurrency:{name:"NUM Token",symbol:"NUM",decimals:18},infoURL:"https://numbersprotocol.io",shortName:"Snow",chainId:10508,networkId:10508,explorers:[{name:"ethernal",url:"https://testnet.num.network",standard:"EIP3091"}],testnet:!0,slug:"numbers-testnet"},hXt={name:"CryptoCoinPay",chain:"CCP",rpc:["http://node106.cryptocoinpay.info:8545","ws://node106.cryptocoinpay.info:8546"],faucets:[],icon:{url:"ipfs://QmPw1ixYYeXvTiRWoCt2jWe4YMd3B5o7TzL18SBEHXvhXX",width:200,height:200,format:"png"},nativeCurrency:{name:"CryptoCoinPay",symbol:"CCP",decimals:18},infoURL:"https://www.cryptocoinpay.co",shortName:"CCP",chainId:10823,networkId:10823,explorers:[{name:"CCP Explorer",url:"https://cryptocoinpay.info",standard:"EIP3091"}],testnet:!1,slug:"cryptocoinpay"},fXt={name:"Quadrans Blockchain",chain:"QDC",icon:{url:"ipfs://QmZFiYHnE4TrezPz8wSap9nMxG6m98w4fv7ataj2TfLNck",width:1024,height:1024,format:"png"},rpc:["https://rpc.quadrans.io","https://rpcna.quadrans.io","https://rpceu.quadrans.io"],faucets:[],nativeCurrency:{name:"Quadrans Coin",symbol:"QDC",decimals:18},infoURL:"https://quadrans.io",shortName:"quadrans",chainId:10946,networkId:10946,explorers:[{name:"explorer",url:"https://explorer.quadrans.io",icon:"quadrans",standard:"EIP3091"}],testnet:!1,slug:"quadrans-blockchain"},mXt={name:"Quadrans Blockchain Testnet",chain:"tQDC",icon:{url:"ipfs://QmZFiYHnE4TrezPz8wSap9nMxG6m98w4fv7ataj2TfLNck",width:1024,height:1024,format:"png"},rpc:["https://rpctest.quadrans.io","https://rpctest2.quadrans.io"],faucets:["https://faucetpage.quadrans.io"],nativeCurrency:{name:"Quadrans Testnet Coin",symbol:"tQDC",decimals:18},infoURL:"https://quadrans.io",shortName:"quadranstestnet",chainId:10947,networkId:10947,explorers:[{name:"explorer",url:"https://explorer.testnet.quadrans.io",icon:"quadrans",standard:"EIP3091"}],testnet:!0,slug:"quadrans-blockchain-testnet"},yXt={name:"Astra",chain:"Astra",rpc:["https://rpc.astranaut.io","https://rpc1.astranaut.io"],faucets:[],nativeCurrency:{name:"Astra",symbol:"ASA",decimals:18},infoURL:"https://astranaut.io",shortName:"astra",chainId:11110,networkId:11110,icon:{url:"ipfs://QmaBtaukPNNUNjdJSUAwuFFQMLbZX1Pc3fvXKTKQcds7Kf",width:104,height:80,format:"png"},explorers:[{name:"Astra EVM Explorer (Blockscout)",url:"https://explorer.astranaut.io",standard:"none",icon:"astra"},{name:"Astra PingPub Explorer",url:"https://ping.astranaut.io/astra",standard:"none",icon:"astra"}],testnet:!1,slug:"astra"},gXt={name:"WAGMI",chain:"WAGMI",icon:{url:"ipfs://QmNoyUXxnak8B3xgFxErkVfyVEPJUMHBzq7qJcYzkUrPR4",width:1920,height:1920,format:"png"},rpc:["https://subnets.avax.network/wagmi/wagmi-chain-testnet/rpc"],faucets:["https://faucet.avax.network/?subnet=wagmi"],nativeCurrency:{name:"WAGMI",symbol:"WGM",decimals:18},infoURL:"https://subnets-test.avax.network/wagmi/details",shortName:"WAGMI",chainId:11111,networkId:11111,explorers:[{name:"Avalanche Subnet Explorer",url:"https://subnets-test.avax.network/wagmi",standard:"EIP3091"}],testnet:!0,slug:"wagmi"},vXt={name:"Astra Testnet",chain:"Astra",rpc:["https://rpc.astranaut.dev"],faucets:["https://faucet.astranaut.dev"],nativeCurrency:{name:"test-Astra",symbol:"tASA",decimals:18},infoURL:"https://astranaut.io",shortName:"astra-testnet",chainId:11115,networkId:11115,icon:{url:"ipfs://QmaBtaukPNNUNjdJSUAwuFFQMLbZX1Pc3fvXKTKQcds7Kf",width:104,height:80,format:"png"},explorers:[{name:"Astra EVM Explorer",url:"https://explorer.astranaut.dev",standard:"EIP3091",icon:"astra"},{name:"Astra PingPub Explorer",url:"https://ping.astranaut.dev/astra",standard:"none",icon:"astra"}],testnet:!0,slug:"astra-testnet"},bXt={name:"Haqq Network",chain:"Haqq",rpc:["https://rpc.eth.haqq.network"],faucets:[],nativeCurrency:{name:"Islamic Coin",symbol:"ISLM",decimals:18},infoURL:"https://islamiccoin.net",shortName:"ISLM",chainId:11235,networkId:11235,explorers:[{name:"Mainnet HAQQ Explorer",url:"https://explorer.haqq.network",standard:"EIP3091"}],testnet:!1,slug:"haqq-network"},wXt={name:"Shyft Testnet",chain:"SHYFTT",icon:{url:"ipfs://QmUkFZC2ZmoYPTKf7AHdjwRPZoV2h1MCuHaGM4iu8SNFpi",width:400,height:400,format:"svg"},rpc:[],faucets:[],nativeCurrency:{name:"Shyft Test Token",symbol:"SHYFTT",decimals:18},infoURL:"https://shyft.network",shortName:"shyftt",chainId:11437,networkId:11437,explorers:[{name:"Shyft Testnet BX",url:"https://bx.testnet.shyft.network",standard:"EIP3091"}],testnet:!0,slug:"shyft-testnet"},xXt={name:"Sardis Testnet",chain:"SRDX",icon:{url:"ipfs://QmdR9QJjQEh1mBnf2WbJfehverxiP5RDPWMtEECbDP2rc3",width:512,height:512,format:"png"},rpc:["https://testnet-rpc.sardisnetwork.com"],faucets:["https://faucet.sardisnetwork.com"],nativeCurrency:{name:"Sardis",symbol:"SRDX",decimals:18},infoURL:"https://mysardis.com",shortName:"SRDXt",chainId:11612,networkId:11612,explorers:[{name:"Sardis",url:"https://testnet.sardisnetwork.com",standard:"EIP3091"}],testnet:!0,slug:"sardis-testnet"},TXt={name:"SanR Chain",chain:"SanRChain",rpc:["https://sanrchain-node.santiment.net"],faucets:[],nativeCurrency:{name:"nSAN",symbol:"nSAN",decimals:18},infoURL:"https://sanr.app",shortName:"SAN",chainId:11888,networkId:11888,icon:{url:"ipfs://QmPLMg5mYD8XRknvYbDkD2x7FXxYan7MPTeUWZC2CihwDM",width:2048,height:2048,format:"png"},parent:{chain:"eip155-1",type:"L2",bridges:[{url:"https://sanr.app"}]},explorers:[{name:"SanR Chain Explorer",url:"https://sanrchain-explorer.santiment.net",standard:"none"}],testnet:!1,slug:"sanr-chain"},_Xt={name:"Singularity ZERO Testnet",chain:"ZERO",rpc:["https://betaenv.singularity.gold:18545"],faucets:["https://nft.singularity.gold"],nativeCurrency:{name:"ZERO",symbol:"tZERO",decimals:18},infoURL:"https://www.singularity.gold",shortName:"tZERO",chainId:12051,networkId:12051,explorers:[{name:"zeroscan",url:"https://betaenv.singularity.gold:18002",standard:"EIP3091"}],testnet:!0,slug:"singularity-zero-testnet"},CXt={name:"Singularity ZERO Mainnet",chain:"ZERO",rpc:["https://zerorpc.singularity.gold"],faucets:["https://zeroscan.singularity.gold"],nativeCurrency:{name:"ZERO",symbol:"ZERO",decimals:18},infoURL:"https://www.singularity.gold",shortName:"ZERO",chainId:12052,networkId:12052,slip44:621,explorers:[{name:"zeroscan",url:"https://zeroscan.singularity.gold",standard:"EIP3091"}],testnet:!1,slug:"singularity-zero"},EXt={name:"Step Testnet",title:"Step Test Network",chain:"STEP",icon:{url:"ipfs://QmVp9jyb3UFW71867yVtymmiRw7dPY4BTnsp3hEjr9tn8L",width:512,height:512,format:"png"},rpc:["https://rpc.testnet.step.network"],faucets:["https://faucet.step.network"],nativeCurrency:{name:"FITFI",symbol:"FITFI",decimals:18},infoURL:"https://step.network",shortName:"steptest",chainId:12345,networkId:12345,explorers:[{name:"StepScan",url:"https://testnet.stepscan.io",icon:"step",standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-43113"},testnet:!0,slug:"step-testnet"},kXt={name:"SPS",chain:"SPS",rpc:["https://rpc.ssquad.games"],faucets:[],nativeCurrency:{name:"ECG",symbol:"ECG",decimals:18},infoURL:"https://ssquad.games/",shortName:"SPS",chainId:13e3,networkId:13e3,explorers:[{name:"SPS Explorer",url:"http://spsscan.ssquad.games",standard:"EIP3091"}],testnet:!1,slug:"sps"},SXt={name:"Credit Smartchain Mainnet",chain:"CREDIT",rpc:["https://mainnet-rpc.cscscan.io"],faucets:[],nativeCurrency:{name:"Credit",symbol:"CREDIT",decimals:18},features:[{name:"EIP155"},{name:"EIP1559"}],infoURL:"https://creditsmartchain.com",shortName:"Credit",chainId:13308,networkId:1,icon:{url:"ipfs://bafkreifbso3gd4wu5wxl27xyurxctmuae2jyuy37guqtzx23nga6ba4ag4",width:1e3,height:1628,format:"png"},explorers:[{name:"CSC Scan",url:"https://explorer.cscscan.io",icon:"credit",standard:"EIP3091"}],testnet:!1,slug:"credit-smartchain"},AXt={name:"Phoenix Mainnet",chain:"Phoenix",rpc:["https://rpc.phoenixplorer.com/"],faucets:[],nativeCurrency:{name:"Phoenix",symbol:"PHX",decimals:18},infoURL:"https://cryptophoenix.org/phoenix",shortName:"Phoenix",chainId:13381,networkId:13381,icon:{url:"ipfs://QmYiLMeKDXMSNuQmtxNdxm53xR588pcRXMf7zuiZLjQnc6",width:1501,height:1501,format:"png"},explorers:[{name:"phoenixplorer",url:"https://phoenixplorer.com",icon:"phoenixplorer",standard:"EIP3091"}],testnet:!1,slug:"phoenix"},MXt={name:"Susono",chain:"SUS",rpc:["https://gateway.opn.network/node/ext/bc/2VsZe5DstWw2bfgdx3YbjKcMsJnNDjni95sZorBEdk9L9Qr9Fr/rpc"],faucets:[],nativeCurrency:{name:"Susono",symbol:"OPN",decimals:18},infoURL:"",shortName:"sus",chainId:13812,networkId:13812,explorers:[{name:"Susono",url:"http://explorer.opn.network",standard:"none"}],testnet:!1,slug:"susono"},IXt={name:"SPS Testnet",chain:"SPS-Testnet",rpc:["https://www.3sps.net"],faucets:[],nativeCurrency:{name:"ECG",symbol:"ECG",decimals:18},infoURL:"https://ssquad.games/",shortName:"SPS-Test",chainId:14e3,networkId:14e3,explorers:[{name:"SPS Test Explorer",url:"https://explorer.3sps.net",standard:"EIP3091"}],testnet:!0,slug:"sps-testnet"},PXt={name:"Trust EVM Testnet",chain:"Trust EVM Testnet",rpc:["https://api.testnet-dev.trust.one"],faucets:["https://faucet.testnet-dev.trust.one/"],nativeCurrency:{name:"Trust EVM",symbol:"EVM",decimals:18},infoURL:"https://www.trust.one/",shortName:"TrustTestnet",chainId:15555,networkId:15555,explorers:[{name:"Trust EVM Explorer",url:"https://trustscan.one",standard:"EIP3091"}],testnet:!0,slug:"trust-evm-testnet"},RXt={name:"MetaDot Mainnet",chain:"MTT",rpc:["https://mainnet.metadot.network"],faucets:[],nativeCurrency:{name:"MetaDot Token",symbol:"MTT",decimals:18},infoURL:"https://metadot.network",shortName:"mtt",chainId:16e3,networkId:16e3,testnet:!1,slug:"metadot"},NXt={name:"MetaDot Testnet",chain:"MTTTest",rpc:["https://testnet.metadot.network"],faucets:["https://faucet.metadot.network/"],nativeCurrency:{name:"MetaDot Token TestNet",symbol:"MTTest",decimals:18},infoURL:"https://metadot.network",shortName:"mtttest",chainId:16001,networkId:16001,testnet:!0,slug:"metadot-testnet"},OXt={name:"IVAR Chain Testnet",chain:"IVAR",icon:{url:"ipfs://QmV8UmSwqGF2fxrqVEBTHbkyZueahqyYtkfH2RBF5pNysM",width:519,height:519,format:"svg"},rpc:["https://testnet-rpc.ivarex.com"],faucets:["https://tfaucet.ivarex.com/"],nativeCurrency:{name:"tIvar",symbol:"tIVAR",decimals:18},infoURL:"https://ivarex.com",shortName:"tivar",chainId:16888,networkId:16888,explorers:[{name:"ivarscan",url:"https://testnet.ivarscan.com",standard:"EIP3091"}],testnet:!0,slug:"ivar-chain-testnet"},LXt={name:"Frontier of Dreams Testnet",chain:"Game Network",rpc:["https://rpc.fod.games/"],nativeCurrency:{name:"ZKST",symbol:"ZKST",decimals:18},faucets:[],shortName:"ZKST",chainId:18e3,networkId:18e3,infoURL:"https://goexosphere.com",explorers:[{name:"Game Network",url:"https://explorer.fod.games",standard:"EIP3091"}],testnet:!0,slug:"frontier-of-dreams-testnet"},BXt={name:"Proof Of Memes",title:"Proof Of Memes Mainnet",chain:"POM",icon:{url:"ipfs://QmePhfibWz9jnGUqF9Rven4x734br1h3LxrChYTEjbbQvo",width:256,height:256,format:"png"},rpc:["https://mainnet-rpc.memescan.io","https://mainnet-rpc2.memescan.io","https://mainnet-rpc3.memescan.io","https://mainnet-rpc4.memescan.io"],faucets:[],nativeCurrency:{name:"Proof Of Memes",symbol:"POM",decimals:18},infoURL:"https://proofofmemes.org",shortName:"pom",chainId:18159,networkId:18159,explorers:[{name:"explorer-proofofmemes",url:"https://memescan.io",standard:"EIP3091"}],testnet:!1,slug:"proof-of-memes"},qXt={name:"HOME Verse Mainnet",chain:"HOME Verse",icon:{url:"ipfs://QmeGb65zSworzoHmwK3jdkPtEsQZMUSJRxf8K8Feg56soU",width:597,height:597,format:"png"},rpc:["https://rpc.mainnet.oasys.homeverse.games/"],faucets:[],nativeCurrency:{name:"OAS",symbol:"OAS",decimals:18},infoURL:"https://www.homeverse.games/",shortName:"HMV",chainId:19011,networkId:19011,explorers:[{name:"HOME Verse Explorer",url:"https://explorer.oasys.homeverse.games",standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-248"},testnet:!1,slug:"home-verse"},DXt={name:"BTCIX Network",chain:"BTCIX",rpc:["https://seed.btcix.org/rpc"],faucets:[],nativeCurrency:{name:"BTCIX Network",symbol:"BTCIX",decimals:18},infoURL:"https://bitcolojix.org",shortName:"btcix",chainId:19845,networkId:19845,explorers:[{name:"BTCIXScan",url:"https://btcixscan.com",standard:"none"}],testnet:!1,slug:"btcix-network"},FXt={name:"Callisto Testnet",chain:"CLO",rpc:["https://testnet-rpc.callisto.network/"],faucets:["https://faucet.callisto.network/"],nativeCurrency:{name:"Callisto",symbol:"CLO",decimals:18},infoURL:"https://callisto.network",shortName:"CLOTestnet",chainId:20729,networkId:79,testnet:!0,slug:"callisto-testnet"},UXt={name:"P12 Chain",chain:"P12",icon:{url:"ipfs://bafkreieiro4imoujeewc4r4thf5hxj47l56j2iwuz6d6pdj6ieb6ub3h7e",width:512,height:512,format:"png"},rpc:["https://rpc-chain.p12.games"],faucets:[],nativeCurrency:{name:"Hooked P2",symbol:"hP2",decimals:18},infoURL:"https://p12.network",features:[{name:"EIP155"},{name:"EIP1559"}],shortName:"p12",chainId:20736,networkId:20736,explorers:[{name:"P12 Chain Explorer",url:"https://explorer.p12.games",standard:"EIP3091"}],testnet:!1,slug:"p12-chain"},WXt={name:"CENNZnet Azalea",chain:"CENNZnet",rpc:["https://cennznet.unfrastructure.io/public"],faucets:[],nativeCurrency:{name:"CPAY",symbol:"CPAY",decimals:18},infoURL:"https://cennz.net",shortName:"cennz-a",chainId:21337,networkId:21337,icon:{url:"ipfs://QmWhNm7tTi6SYbiumULDRk956hxgqaZSX77vcxBNn8fvnw",width:112,height:112,format:"svg"},explorers:[{name:"UNcover",url:"https://uncoverexplorer.com",standard:"none"}],testnet:!1,slug:"cennznet-azalea"},jXt={name:"omChain Mainnet",chain:"OML",icon:{url:"ipfs://QmQtEHaejiDbmiCvbBYw9jNQv3DLK5XHCQwLRfnLNpdN5j",width:256,height:256,format:"png"},rpc:["https://seed.omchain.io"],faucets:[],nativeCurrency:{name:"omChain",symbol:"OMC",decimals:18},infoURL:"https://omchain.io",shortName:"omc",chainId:21816,networkId:21816,explorers:[{name:"omChain Explorer",url:"https://explorer.omchain.io",standard:"EIP3091"}],testnet:!1,slug:"omchain"},zXt={name:"Taycan",chain:"Taycan",rpc:["https://taycan-rpc.hupayx.io:8545"],faucets:[],nativeCurrency:{name:"shuffle",symbol:"SFL",decimals:18},infoURL:"https://hupayx.io",shortName:"SFL",chainId:22023,networkId:22023,icon:{url:"ipfs://bafkreidvjcc73v747lqlyrhgbnkvkdepdvepo6baj6hmjsmjtvdyhmzzmq",width:1e3,height:1206,format:"png"},explorers:[{name:"Taycan Explorer(Blockscout)",url:"https://taycan-evmscan.hupayx.io",standard:"none",icon:"shuffle"},{name:"Taycan Cosmos Explorer(BigDipper)",url:"https://taycan-cosmoscan.hupayx.io",standard:"none",icon:"shuffle"}],testnet:!1,slug:"taycan"},HXt={name:"MAP Mainnet",chain:"MAP",icon:{url:"ipfs://QmcLdQ8gM4iHv3CCKA9HuxmzTxY4WhjWtepUVCc3dpzKxD",width:512,height:512,format:"png"},rpc:["https://rpc.maplabs.io"],faucets:[],nativeCurrency:{name:"MAP",symbol:"MAP",decimals:18},infoURL:"https://maplabs.io",shortName:"map",chainId:22776,networkId:22776,slip44:60,explorers:[{name:"mapscan",url:"https://mapscan.io",standard:"EIP3091"}],testnet:!1,slug:"map"},VXt={name:"Opside Testnet",chain:"Opside",rpc:["https://testrpc.opside.network"],faucets:["https://faucet.opside.network"],nativeCurrency:{name:"IDE",symbol:"IDE",decimals:18},infoURL:"https://opside.network",shortName:"opside",chainId:23118,networkId:23118,icon:{url:"ipfs://QmeCyZeibUoHNoYGzy1GkzH2uhxyRHKvH51PdaUMer4VTo",width:591,height:591,format:"png"},explorers:[{name:"opsideInfo",url:"https://opside.info",standard:"EIP3091"}],testnet:!0,slug:"opside-testnet"},GXt={name:"Oasis Sapphire",chain:"Sapphire",icon:{url:"ipfs://bafkreiespupb52akiwrexxg7g72mh7m7h7lum5hmqijmpdh3kmuunzclha",width:2e3,height:2e3,format:"png"},rpc:["https://sapphire.oasis.io","wss://sapphire.oasis.io/ws"],faucets:[],nativeCurrency:{name:"Sapphire Rose",symbol:"ROSE",decimals:18},infoURL:"https://docs.oasis.io/dapp/sapphire",shortName:"sapphire",chainId:23294,networkId:23294,explorers:[{name:"Oasis Sapphire Explorer",url:"https://explorer.sapphire.oasis.io",standard:"EIP3091"}],testnet:!1,slug:"oasis-sapphire"},ZXt={name:"Oasis Sapphire Testnet",chain:"Sapphire",icon:{url:"ipfs://bafkreiespupb52akiwrexxg7g72mh7m7h7lum5hmqijmpdh3kmuunzclha",width:2e3,height:2e3,format:"png"},rpc:["https://testnet.sapphire.oasis.dev","wss://testnet.sapphire.oasis.dev/ws"],faucets:[],nativeCurrency:{name:"Sapphire Test Rose",symbol:"TEST",decimals:18},infoURL:"https://docs.oasis.io/dapp/sapphire",shortName:"sapphire-testnet",chainId:23295,networkId:23295,explorers:[{name:"Oasis Sapphire Testnet Explorer",url:"https://testnet.explorer.sapphire.oasis.dev",standard:"EIP3091"}],testnet:!0,slug:"oasis-sapphire-testnet"},JXt={name:"Webchain",chain:"WEB",rpc:[],faucets:[],nativeCurrency:{name:"Webchain Ether",symbol:"WEB",decimals:18},infoURL:"https://webchain.network",shortName:"web",chainId:24484,networkId:37129,slip44:227,testnet:!1,slug:"webchain"},KXt={name:"MintMe.com Coin",chain:"MINTME",rpc:["https://node1.mintme.com"],faucets:[],nativeCurrency:{name:"MintMe.com Coin",symbol:"MINTME",decimals:18},infoURL:"https://www.mintme.com",shortName:"mintme",chainId:24734,networkId:37480,testnet:!1,slug:"mintme-com-coin"},QXt={name:"Hammer Chain Mainnet",chain:"HammerChain",rpc:["https://www.hammerchain.io/rpc"],faucets:[],nativeCurrency:{name:"GOLDT",symbol:"GOLDT",decimals:18},infoURL:"https://www.hammerchain.io",shortName:"GOLDT",chainId:25888,networkId:25888,explorers:[{name:"Hammer Chain Explorer",url:"https://www.hammerchain.io",standard:"none"}],testnet:!1,slug:"hammer-chain"},XXt={name:"Bitkub Chain Testnet",chain:"BKC",icon:{url:"ipfs://QmYFYwyquipwc9gURQGcEd4iAq7pq15chQrJ3zJJe9HuFT",width:1e3,height:1e3,format:"png"},rpc:["https://rpc-testnet.bitkubchain.io","wss://wss-testnet.bitkubchain.io"],faucets:["https://faucet.bitkubchain.com"],nativeCurrency:{name:"Bitkub Coin",symbol:"tKUB",decimals:18},infoURL:"https://www.bitkubchain.com/",shortName:"bkct",chainId:25925,networkId:25925,explorers:[{name:"bkcscan-testnet",url:"https://testnet.bkcscan.com",standard:"none",icon:"bkc"}],testnet:!0,slug:"bitkub-chain-testnet"},YXt={name:"Hertz Network Mainnet",chain:"HTZ",rpc:["https://mainnet-rpc.hertzscan.com"],faucets:[],nativeCurrency:{name:"Hertz",symbol:"HTZ",decimals:18},features:[{name:"EIP155"},{name:"EIP1559"}],infoURL:"https://www.hertz-network.com",shortName:"HTZ",chainId:26600,networkId:26600,icon:{url:"ipfs://Qmf3GYbPXmTDpSP6t7Ug2j5HjEwrY5oGhBDP7d4TQHvGnG",width:162,height:129,format:"png"},explorers:[{name:"Hertz Scan",url:"https://hertzscan.com",icon:"hertz-network",standard:"EIP3091"}],testnet:!1,slug:"hertz-network"},$Xt={name:"OasisChain Mainnet",chain:"OasisChain",rpc:["https://rpc1.oasischain.io","https://rpc2.oasischain.io","https://rpc3.oasischain.io"],faucets:["http://faucet.oasischain.io"],nativeCurrency:{name:"OAC",symbol:"OAC",decimals:18},infoURL:"https://scan.oasischain.io",shortName:"OAC",chainId:26863,networkId:26863,explorers:[{name:"OasisChain Explorer",url:"https://scan.oasischain.io",standard:"EIP3091"}],testnet:!1,slug:"oasischain"},eYt={name:"Optimism Bedrock (Goerli Alpha Testnet)",chain:"ETH",rpc:["https://alpha-1-replica-0.bedrock-goerli.optimism.io","https://alpha-1-replica-1.bedrock-goerli.optimism.io","https://alpha-1-replica-2.bedrock-goerli.optimism.io","https://alpha-1-replica-2.bedrock-goerli.optimism.io"],faucets:[],nativeCurrency:{name:"Goerli Ether",symbol:"ETH",decimals:18},infoURL:"https://community.optimism.io/docs/developers/bedrock",shortName:"obgor",chainId:28528,networkId:28528,explorers:[{name:"blockscout",url:"https://blockscout.com/optimism/bedrock-alpha",standard:"EIP3091"}],testnet:!0,slug:"optimism-bedrock-goerli-alpha-testnet"},tYt={name:"Piece testnet",chain:"PieceNetwork",icon:{url:"ipfs://QmWAU39z1kcYshAqkENRH8qUjfR5CJehCxA4GiC33p3HpH",width:800,height:800,format:"png"},rpc:["https://testnet-rpc0.piecenetwork.com"],faucets:["https://piecenetwork.com/faucet"],nativeCurrency:{name:"ECE",symbol:"ECE",decimals:18},infoURL:"https://piecenetwork.com",shortName:"Piece",chainId:30067,networkId:30067,explorers:[{name:"Piece Scan",url:"https://testnet-scan.piecenetwork.com",standard:"EIP3091"}],testnet:!0,slug:"piece-testnet"},rYt={name:"Ethersocial Network",chain:"ESN",rpc:["https://api.esn.gonspool.com"],faucets:[],nativeCurrency:{name:"Ethersocial Network Ether",symbol:"ESN",decimals:18},infoURL:"https://ethersocial.org",shortName:"esn",chainId:31102,networkId:1,slip44:31102,testnet:!1,slug:"ethersocial-network"},nYt={name:"CloudTx Mainnet",chain:"CLD",icon:{url:"ipfs://QmSEsi71AdA5HYH6VNC5QUQezFg1C7BiVQJdx1VVfGz3g3",width:713,height:830,format:"png"},rpc:["https://mainnet-rpc.cloudtx.finance"],faucets:[],nativeCurrency:{name:"CloudTx",symbol:"CLD",decimals:18},infoURL:"https://cloudtx.finance",shortName:"CLDTX",chainId:31223,networkId:31223,explorers:[{name:"cloudtxscan",url:"https://scan.cloudtx.finance",standard:"EIP3091"}],testnet:!1,slug:"cloudtx"},aYt={name:"CloudTx Testnet",chain:"CloudTx",icon:{url:"ipfs://QmSEsi71AdA5HYH6VNC5QUQezFg1C7BiVQJdx1VVfGz3g3",width:713,height:830,format:"png"},rpc:["https://testnet-rpc.cloudtx.finance"],faucets:["https://faucet.cloudtx.finance"],nativeCurrency:{name:"CloudTx",symbol:"CLD",decimals:18},infoURL:"https://cloudtx.finance/",shortName:"CLD",chainId:31224,networkId:31224,explorers:[{name:"cloudtxexplorer",url:"https://explorer.cloudtx.finance",standard:"EIP3091"}],testnet:!0,slug:"cloudtx-testnet"},iYt={name:"GoChain Testnet",chain:"GO",rpc:["https://testnet-rpc.gochain.io"],faucets:[],nativeCurrency:{name:"GoChain Coin",symbol:"GO",decimals:18},infoURL:"https://gochain.io",shortName:"got",chainId:31337,networkId:31337,slip44:6060,explorers:[{name:"GoChain Testnet Explorer",url:"https://testnet-explorer.gochain.io",standard:"EIP3091"}],testnet:!0,slug:"gochain-testnet"},sYt={name:"Filecoin - Wallaby testnet",chain:"FIL",icon:{url:"ipfs://QmS9r9XQkMHVomWcSBNDkKkz9n87h9bH9ssabeiKZtANoU",width:1e3,height:1e3,format:"png"},rpc:["https://wallaby.node.glif.io/rpc/v1"],faucets:["https://wallaby.yoga/#faucet"],nativeCurrency:{name:"testnet filecoin",symbol:"tFIL",decimals:18},infoURL:"https://filecoin.io",shortName:"filecoin-wallaby",chainId:31415,networkId:31415,slip44:1,explorers:[],testnet:!0,slug:"filecoin-wallaby-testnet"},oYt={name:"Bitgert Mainnet",chain:"Brise",rpc:["https://rpc.icecreamswap.com","https://mainnet-rpc.brisescan.com","https://chainrpc.com","https://serverrpc.com"],faucets:[],nativeCurrency:{name:"Bitrise Token",symbol:"Brise",decimals:18},infoURL:"https://bitgert.com/",shortName:"Brise",chainId:32520,networkId:32520,icon:{url:"ipfs://QmY3vKe1rG9AyHSGH1ouP3ER3EVUZRtRrFbFZEfEpMSd4V",width:512,height:512,format:"png"},explorers:[{name:"Brise Scan",url:"https://brisescan.com",icon:"brise",standard:"EIP3091"}],testnet:!1,slug:"bitgert"},cYt={name:"Fusion Mainnet",chain:"FSN",icon:{url:"ipfs://QmX3tsEoj7SdaBLLV8VyyCUAmymdEGiSGeuTbxMrEMVvth",width:31,height:31,format:"svg"},rpc:["https://mainnet.fusionnetwork.io","wss://mainnet.fusionnetwork.io"],features:[{name:"EIP155"},{name:"EIP1559"}],faucets:[],nativeCurrency:{name:"Fusion",symbol:"FSN",decimals:18},infoURL:"https://fusion.org",shortName:"fsn",chainId:32659,networkId:32659,slip44:288,explorers:[{name:"fsnscan",url:"https://fsnscan.com",icon:"fsnscan",standard:"EIP3091"}],testnet:!1,slug:"fusion"},uYt={name:"Aves Mainnet",chain:"AVS",rpc:["https://rpc.avescoin.io"],faucets:[],nativeCurrency:{name:"Aves",symbol:"AVS",decimals:18},features:[{name:"EIP155"},{name:"EIP1559"}],infoURL:"https://avescoin.io",shortName:"avs",chainId:33333,networkId:33333,icon:{url:"ipfs://QmeKQVv2QneHaaggw2NfpZ7DGMdjVhPywTdse5RzCs4oGn",width:232,height:232,format:"png"},explorers:[{name:"avescan",url:"https://avescan.io",icon:"avescan",standard:"EIP3091"}],testnet:!1,slug:"aves"},lYt={name:"J2O Taro",chain:"TARO",rpc:["https://rpc.j2o.io"],features:[{name:"EIP155"},{name:"EIP1559"}],faucets:[],nativeCurrency:{name:"TARO Coin",symbol:"taro",decimals:18},infoURL:"https://j2o.io",shortName:"j2o",chainId:35011,networkId:35011,explorers:[{name:"J2O Taro Explorer",url:"https://exp.j2o.io",icon:"j2otaro",standard:"EIP3091"}],testnet:!1,slug:"j2o-taro"},dYt={name:"Q Mainnet",chain:"Q",rpc:["https://rpc.q.org"],faucets:[],nativeCurrency:{name:"Q token",symbol:"Q",decimals:18},infoURL:"https://q.org",shortName:"q",chainId:35441,networkId:35441,icon:{url:"ipfs://QmQUQKe8VEtSthhgXnJ3EmEz94YhpVCpUDZAiU9KYyNLya",width:585,height:603,format:"png"},explorers:[{name:"Q explorer",url:"https://explorer.q.org",icon:"q",standard:"EIP3091"}],testnet:!1,slug:"q"},pYt={name:"Q Testnet",chain:"Q",rpc:["https://rpc.qtestnet.org"],faucets:[],nativeCurrency:{name:"Q token",symbol:"Q",decimals:18},infoURL:"https://q.org/",shortName:"q-testnet",chainId:35443,networkId:35443,icon:{url:"ipfs://QmQUQKe8VEtSthhgXnJ3EmEz94YhpVCpUDZAiU9KYyNLya",width:585,height:603,format:"png"},explorers:[{name:"Q explorer",url:"https://explorer.qtestnet.org",icon:"q",standard:"EIP3091"}],testnet:!0,slug:"q-testnet"},hYt={name:"Energi Mainnet",chain:"NRG",rpc:["https://nodeapi.energi.network"],faucets:[],nativeCurrency:{name:"Energi",symbol:"NRG",decimals:18},infoURL:"https://www.energi.world/",shortName:"nrg",chainId:39797,networkId:39797,slip44:39797,testnet:!1,slug:"energi"},fYt={name:"OHO Mainnet",chain:"OHO",rpc:["https://mainnet.oho.ai"],faucets:[],nativeCurrency:{name:"OHO",symbol:"OHO",decimals:18},infoURL:"https://oho.ai",shortName:"oho",chainId:39815,networkId:39815,icon:{url:"ipfs://QmZt75xixnEtFzqHTrJa8kJkV4cTXmUZqeMeHM8BcvomQc",width:512,height:512,format:"png"},explorers:[{name:"ohoscan",url:"https://ohoscan.com",icon:"ohoscan",standard:"EIP3091"}],testnet:!1,slug:"oho"},mYt={name:"Opulent-X BETA",chainId:41500,shortName:"ox-beta",chain:"Opulent-X",networkId:41500,nativeCurrency:{name:"Oxyn Gas",symbol:"OXYN",decimals:18},rpc:["https://connect.opulent-x.com"],faucets:[],infoURL:"https://beta.opulent-x.com",explorers:[{name:"Opulent-X BETA Explorer",url:"https://explorer.opulent-x.com",standard:"none"}],testnet:!1,slug:"opulent-x-beta"},yYt={name:"pegglecoin",chain:"42069",rpc:[],faucets:[],nativeCurrency:{name:"pegglecoin",symbol:"peggle",decimals:18},infoURL:"https://teampeggle.com",shortName:"PC",chainId:42069,networkId:42069,testnet:!1,slug:"pegglecoin"},gYt={name:"Arbitrum One",chainId:42161,shortName:"arb1",chain:"ETH",networkId:42161,nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpc:["https://arbitrum.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://arbitrum-mainnet.infura.io/v3/${INFURA_API_KEY}","https://arb-mainnet.g.alchemy.com/v2/${ALCHEMY_API_KEY}","https://arb1.arbitrum.io/rpc"],faucets:[],explorers:[{name:"Arbitrum Explorer",url:"https://explorer.arbitrum.io",standard:"EIP3091"},{name:"Arbiscan",url:"https://arbiscan.io",standard:"EIP3091"}],infoURL:"https://arbitrum.io",parent:{type:"L2",chain:"eip155-1",bridges:[{url:"https://bridge.arbitrum.io"}]},icon:{url:"ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/arbitrum/512.png",height:512,width:512,format:"png",sizes:[512,256,128,64,32,16]},testnet:!1,slug:"arbitrum-one"},vYt={name:"Arbitrum Nova",chainId:42170,shortName:"arb-nova",chain:"ETH",networkId:42170,nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpc:["https://nova.arbitrum.io/rpc"],faucets:[],explorers:[{name:"Arbitrum Nova Chain Explorer",url:"https://nova-explorer.arbitrum.io",icon:"blockscout",standard:"EIP3091"}],infoURL:"https://arbitrum.io",parent:{type:"L2",chain:"eip155-1",bridges:[{url:"https://bridge.arbitrum.io"}]},testnet:!1,slug:"arbitrum-nova"},bYt={name:"Celo Mainnet",chainId:42220,shortName:"celo",chain:"CELO",networkId:42220,nativeCurrency:{name:"CELO",symbol:"CELO",decimals:18},rpc:["https://forno.celo.org","wss://forno.celo.org/ws"],faucets:["https://free-online-app.com/faucet-for-eth-evm-chains/"],infoURL:"https://docs.celo.org/",explorers:[{name:"Celoscan",url:"https://celoscan.io",standard:"EIP3091"},{name:"blockscout",url:"https://explorer.celo.org",standard:"none"}],testnet:!1,slug:"celo"},wYt={name:"Oasis Emerald Testnet",chain:"Emerald",icon:{url:"ipfs://bafkreiespupb52akiwrexxg7g72mh7m7h7lum5hmqijmpdh3kmuunzclha",width:2e3,height:2e3,format:"png"},rpc:["https://testnet.emerald.oasis.dev/","wss://testnet.emerald.oasis.dev/ws"],faucets:["https://faucet.testnet.oasis.dev/"],nativeCurrency:{name:"Emerald Rose",symbol:"ROSE",decimals:18},infoURL:"https://docs.oasis.io/dapp/emerald",shortName:"emerald-testnet",chainId:42261,networkId:42261,explorers:[{name:"Oasis Emerald Testnet Explorer",url:"https://testnet.explorer.emerald.oasis.dev",standard:"EIP3091"}],testnet:!0,slug:"oasis-emerald-testnet"},xYt={name:"Oasis Emerald",chain:"Emerald",icon:{url:"ipfs://bafkreiespupb52akiwrexxg7g72mh7m7h7lum5hmqijmpdh3kmuunzclha",width:2e3,height:2e3,format:"png"},rpc:["https://emerald.oasis.dev","wss://emerald.oasis.dev/ws"],faucets:[],nativeCurrency:{name:"Emerald Rose",symbol:"ROSE",decimals:18},infoURL:"https://docs.oasis.io/dapp/emerald",shortName:"emerald",chainId:42262,networkId:42262,explorers:[{name:"Oasis Emerald Explorer",url:"https://explorer.emerald.oasis.dev",standard:"EIP3091"}],testnet:!1,slug:"oasis-emerald"},TYt={name:"Athereum",chain:"ATH",rpc:["https://ava.network:21015/ext/evm/rpc"],faucets:["http://athfaucet.ava.network//?address=${ADDRESS}"],nativeCurrency:{name:"Athereum Ether",symbol:"ATH",decimals:18},infoURL:"https://athereum.ava.network",shortName:"avaeth",chainId:43110,networkId:43110,testnet:!1,slug:"athereum"},_Yt={name:"Avalanche Fuji Testnet",chain:"AVAX",icon:{url:"ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/avalanche/512.png",height:512,width:512,format:"png",sizes:[512,256,128,64,32,16]},rpc:["https://avalanche-fuji.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.avax-test.network/ext/bc/C/rpc"],faucets:["https://faucet.avax-test.network/"],nativeCurrency:{name:"Avalanche",symbol:"AVAX",decimals:18},infoURL:"https://cchain.explorer.avax-test.network",shortName:"Fuji",chainId:43113,networkId:1,explorers:[{name:"snowtrace",url:"https://testnet.snowtrace.io",standard:"EIP3091"}],testnet:!0,slug:"avalanche-fuji-testnet"},CYt={name:"Avalanche C-Chain",chain:"AVAX",icon:{url:"ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/avalanche/512.png",height:512,width:512,format:"png",sizes:[512,256,128,64,32,16]},rpc:["https://avalanche.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.avax.network/ext/bc/C/rpc"],features:[{name:"EIP1559"}],faucets:["https://free-online-app.com/faucet-for-eth-evm-chains/"],nativeCurrency:{name:"Avalanche",symbol:"AVAX",decimals:18},infoURL:"https://www.avax.network/",shortName:"avax",chainId:43114,networkId:43114,slip44:9005,explorers:[{name:"snowtrace",url:"https://snowtrace.io",standard:"EIP3091"}],testnet:!1,slug:"avalanche-c-chain"},EYt={name:"Boba Avax",chain:"Boba Avax",rpc:["https://avax.boba.network","wss://wss.avax.boba.network","https://replica.avax.boba.network","wss://replica-wss.avax.boba.network"],faucets:[],nativeCurrency:{name:"Boba Token",symbol:"BOBA",decimals:18},infoURL:"https://docs.boba.network/for-developers/network-avalanche",shortName:"bobaavax",chainId:43288,networkId:43288,explorers:[{name:"Boba Avax Explorer",url:"https://blockexplorer.avax.boba.network",standard:"none"}],testnet:!1,slug:"boba-avax"},kYt={name:"Frenchain",chain:"fren",rpc:["https://rpc-02.frenscan.io"],faucets:[],nativeCurrency:{name:"FREN",symbol:"FREN",decimals:18},infoURL:"https://frenchain.app",shortName:"FREN",chainId:44444,networkId:44444,icon:{url:"ipfs://QmQk41bYX6WpYyUAdRgomZekxP5mbvZXhfxLEEqtatyJv4",width:128,height:128,format:"png"},explorers:[{name:"blockscout",url:"https://frenscan.io",icon:"fren",standard:"EIP3091"}],testnet:!1,slug:"frenchain"},SYt={name:"Celo Alfajores Testnet",chainId:44787,shortName:"ALFA",chain:"CELO",networkId:44787,nativeCurrency:{name:"CELO",symbol:"CELO",decimals:18},rpc:["https://alfajores-forno.celo-testnet.org","wss://alfajores-forno.celo-testnet.org/ws"],faucets:["https://celo.org/developers/faucet","https://cauldron.pretoriaresearchlab.io/alfajores-faucet"],infoURL:"https://docs.celo.org/",explorers:[{name:"Celoscan",url:"https://celoscan.io",standard:"EIP3091"}],testnet:!0,slug:"celo-alfajores-testnet"},AYt={name:"Autobahn Network",chain:"TXL",rpc:["https://rpc.autobahn.network"],faucets:[],nativeCurrency:{name:"TXL",symbol:"TXL",decimals:18},infoURL:"https://autobahn.network",shortName:"AutobahnNetwork",chainId:45e3,networkId:45e3,icon:{url:"ipfs://QmZP19pbqTco4vaP9siduLWP8pdYArFK3onfR55tvjr12s",width:489,height:489,format:"png"},explorers:[{name:"autobahn explorer",url:"https://explorer.autobahn.network",icon:"autobahn",standard:"EIP3091"}],testnet:!1,slug:"autobahn-network"},MYt={name:"Fusion Testnet",chain:"FSN",icon:{url:"ipfs://QmX3tsEoj7SdaBLLV8VyyCUAmymdEGiSGeuTbxMrEMVvth",width:31,height:31,format:"svg"},rpc:["https://testnet.fusionnetwork.io","wss://testnet.fusionnetwork.io"],features:[{name:"EIP155"},{name:"EIP1559"}],faucets:[],nativeCurrency:{name:"Testnet Fusion",symbol:"T-FSN",decimals:18},infoURL:"https://fusion.org",shortName:"tfsn",chainId:46688,networkId:46688,slip44:288,explorers:[{name:"fsnscan",url:"https://testnet.fsnscan.com",icon:"fsnscan",standard:"EIP3091"}],testnet:!0,slug:"fusion-testnet"},IYt={name:"REI Network",chain:"REI",rpc:["https://rpc.rei.network","wss://rpc.rei.network"],faucets:[],nativeCurrency:{name:"REI",symbol:"REI",decimals:18},infoURL:"https://rei.network/",shortName:"REI",chainId:47805,networkId:47805,explorers:[{name:"rei-scan",url:"https://scan.rei.network",standard:"none"}],testnet:!1,slug:"rei-network"},PYt={name:"Floripa",title:"Wireshape Testnet Floripa",chain:"Wireshape",rpc:["https://rpc-floripa.wireshape.org"],faucets:[],nativeCurrency:{name:"WIRE",symbol:"WIRE",decimals:18},infoURL:"https://wireshape.org",shortName:"floripa",chainId:49049,networkId:49049,explorers:[{name:"Wire Explorer",url:"https://floripa-explorer.wireshape.org",standard:"EIP3091"}],testnet:!0,slug:"floripa"},RYt={name:"Bifrost Testnet",title:"The Bifrost Testnet network",chain:"BFC",rpc:["https://public-01.testnet.thebifrost.io/rpc","https://public-02.testnet.thebifrost.io/rpc"],faucets:[],nativeCurrency:{name:"Bifrost",symbol:"BFC",decimals:18},infoURL:"https://thebifrost.io",shortName:"tbfc",chainId:49088,networkId:49088,icon:{url:"ipfs://QmcHvn2Wq91ULyEH5s3uHjosX285hUgyJHwggFJUd3L5uh",width:128,height:128,format:"png"},explorers:[{name:"explorer-thebifrost",url:"https://explorer.testnet.thebifrost.io",standard:"EIP3091"}],testnet:!0,slug:"bifrost-testnet"},NYt={name:"Energi Testnet",chain:"NRG",rpc:["https://nodeapi.test.energi.network"],faucets:[],nativeCurrency:{name:"Energi",symbol:"NRG",decimals:18},infoURL:"https://www.energi.world/",shortName:"tnrg",chainId:49797,networkId:49797,slip44:49797,testnet:!0,slug:"energi-testnet"},OYt={name:"Liveplex OracleEVM",chain:"Liveplex OracleEVM Network",rpc:["https://rpc.oracle.liveplex.io"],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"",shortName:"LOE",chainId:50001,networkId:50001,explorers:[],testnet:!1,slug:"liveplex-oracleevm"},LYt={name:"GTON Testnet",chain:"GTON Testnet",rpc:["https://testnet.gton.network/"],faucets:[],nativeCurrency:{name:"GCD",symbol:"GCD",decimals:18},infoURL:"https://gton.capital",shortName:"tgton",chainId:50021,networkId:50021,explorers:[{name:"GTON Testnet Network Explorer",url:"https://explorer.testnet.gton.network",standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-3"},testnet:!0,slug:"gton-testnet"},BYt={name:"Sardis Mainnet",chain:"SRDX",icon:{url:"ipfs://QmdR9QJjQEh1mBnf2WbJfehverxiP5RDPWMtEECbDP2rc3",width:512,height:512,format:"png"},rpc:["https://mainnet-rpc.sardisnetwork.com"],faucets:["https://faucet.sardisnetwork.com"],nativeCurrency:{name:"Sardis",symbol:"SRDX",decimals:18},infoURL:"https://mysardis.com",shortName:"SRDXm",chainId:51712,networkId:51712,explorers:[{name:"Sardis",url:"https://contract-mainnet.sardisnetwork.com",standard:"EIP3091"}],testnet:!1,slug:"sardis"},qYt={name:"DFK Chain",chain:"DFK",icon:{url:"ipfs://QmQB48m15TzhUFrmu56QCRQjkrkgUaKfgCmKE8o3RzmuPJ",width:500,height:500,format:"png"},rpc:["https://subnets.avax.network/defi-kingdoms/dfk-chain/rpc"],faucets:[],nativeCurrency:{name:"Jewel",symbol:"JEWEL",decimals:18},infoURL:"https://defikingdoms.com",shortName:"DFK",chainId:53935,networkId:53935,explorers:[{name:"ethernal",url:"https://explorer.dfkchain.com",icon:"ethereum",standard:"none"}],testnet:!1,slug:"dfk-chain"},DYt={name:"Haqq Chain Testnet",chain:"TestEdge2",rpc:["https://rpc.eth.testedge2.haqq.network"],faucets:["https://testedge2.haqq.network"],nativeCurrency:{name:"Islamic Coin",symbol:"ISLMT",decimals:18},infoURL:"https://islamiccoin.net",shortName:"ISLMT",chainId:54211,networkId:54211,explorers:[{name:"TestEdge HAQQ Explorer",url:"https://explorer.testedge2.haqq.network",standard:"EIP3091"}],testnet:!0,slug:"haqq-chain-testnet"},FYt={name:"REI Chain Mainnet",chain:"REI",icon:{url:"ipfs://QmNy5d5knHVjJJS9g4kLsh9i73RTjckpKL6KZvRk6ptbhf",width:591,height:591,format:"svg"},rpc:["https://rei-rpc.moonrhythm.io"],faucets:["http://kururu.finance/faucet?chainId=55555"],nativeCurrency:{name:"Rei",symbol:"REI",decimals:18},infoURL:"https://reichain.io",shortName:"reichain",chainId:55555,networkId:55555,explorers:[{name:"reiscan",url:"https://reiscan.com",standard:"EIP3091"}],testnet:!1,slug:"rei-chain"},UYt={name:"REI Chain Testnet",chain:"REI",icon:{url:"ipfs://QmNy5d5knHVjJJS9g4kLsh9i73RTjckpKL6KZvRk6ptbhf",width:591,height:591,format:"svg"},rpc:["https://rei-testnet-rpc.moonrhythm.io"],faucets:["http://kururu.finance/faucet?chainId=55556"],nativeCurrency:{name:"tRei",symbol:"tREI",decimals:18},infoURL:"https://reichain.io",shortName:"trei",chainId:55556,networkId:55556,explorers:[{name:"reiscan",url:"https://testnet.reiscan.com",standard:"EIP3091"}],testnet:!0,slug:"rei-chain-testnet"},WYt={name:"Boba BNB Mainnet",chain:"Boba BNB Mainnet",rpc:["https://bnb.boba.network","wss://wss.bnb.boba.network","https://replica.bnb.boba.network","wss://replica-wss.bnb.boba.network"],faucets:[],nativeCurrency:{name:"Boba Token",symbol:"BOBA",decimals:18},infoURL:"https://boba.network",shortName:"BobaBnb",chainId:56288,networkId:56288,explorers:[{name:"Boba BNB block explorer",url:"https://blockexplorer.bnb.boba.network",standard:"none"}],testnet:!1,slug:"boba-bnb"},jYt={name:"Thinkium Testnet Chain 0",chain:"Thinkium",rpc:["https://test.thinkiumrpc.net/"],faucets:["https://www.thinkiumdev.net/faucet"],nativeCurrency:{name:"TKM",symbol:"TKM",decimals:18},infoURL:"https://thinkium.net/",shortName:"TKM-test0",chainId:6e4,networkId:6e4,explorers:[{name:"thinkiumscan",url:"https://test0.thinkiumscan.net",standard:"EIP3091"}],testnet:!0,slug:"thinkium-testnet-chain-0"},zYt={name:"Thinkium Testnet Chain 1",chain:"Thinkium",rpc:["https://test1.thinkiumrpc.net/"],faucets:["https://www.thinkiumdev.net/faucet"],nativeCurrency:{name:"TKM",symbol:"TKM",decimals:18},infoURL:"https://thinkium.net/",shortName:"TKM-test1",chainId:60001,networkId:60001,explorers:[{name:"thinkiumscan",url:"https://test1.thinkiumscan.net",standard:"EIP3091"}],testnet:!0,slug:"thinkium-testnet-chain-1"},HYt={name:"Thinkium Testnet Chain 2",chain:"Thinkium",rpc:["https://test2.thinkiumrpc.net/"],faucets:["https://www.thinkiumdev.net/faucet"],nativeCurrency:{name:"TKM",symbol:"TKM",decimals:18},infoURL:"https://thinkium.net/",shortName:"TKM-test2",chainId:60002,networkId:60002,explorers:[{name:"thinkiumscan",url:"https://test2.thinkiumscan.net",standard:"EIP3091"}],testnet:!0,slug:"thinkium-testnet-chain-2"},VYt={name:"Thinkium Testnet Chain 103",chain:"Thinkium",rpc:["https://test103.thinkiumrpc.net/"],faucets:["https://www.thinkiumdev.net/faucet"],nativeCurrency:{name:"TKM",symbol:"TKM",decimals:18},infoURL:"https://thinkium.net/",shortName:"TKM-test103",chainId:60103,networkId:60103,explorers:[{name:"thinkiumscan",url:"https://test103.thinkiumscan.net",standard:"EIP3091"}],testnet:!0,slug:"thinkium-testnet-chain-103"},GYt={name:"Etica Mainnet",chain:"Etica Protocol (ETI/EGAZ)",icon:{url:"ipfs://QmYSyhUqm6ArWyALBe3G64823ZpEUmFdkzKZ93hUUhNKgU",width:360,height:361,format:"png"},rpc:["https://eticamainnet.eticascan.org","https://eticamainnet.eticaprotocol.org"],faucets:["http://faucet.etica-stats.org/"],nativeCurrency:{name:"EGAZ",symbol:"EGAZ",decimals:18},infoURL:"https://eticaprotocol.org",shortName:"Etica",chainId:61803,networkId:61803,explorers:[{name:"eticascan",url:"https://eticascan.org",standard:"EIP3091"},{name:"eticastats",url:"http://explorer.etica-stats.org",standard:"EIP3091"}],testnet:!1,slug:"etica"},ZYt={name:"DoKEN Super Chain Mainnet",chain:"DoKEN Super Chain",rpc:["https://sgrpc.doken.dev","https://nyrpc.doken.dev","https://ukrpc.doken.dev"],faucets:[],nativeCurrency:{name:"DoKEN",symbol:"DKN",decimals:18},infoURL:"https://doken.dev/",shortName:"DoKEN",chainId:61916,networkId:61916,icon:{url:"ipfs://bafkreifms4eio6v56oyeemnnu5luq3sc44hptan225lr45itgzu3u372iu",width:200,height:200,format:"png"},explorers:[{name:"DSC Scan",url:"https://explore.doken.dev",icon:"doken",standard:"EIP3091"}],testnet:!1,slug:"doken-super-chain"},JYt={name:"Celo Baklava Testnet",chainId:62320,shortName:"BKLV",chain:"CELO",networkId:62320,nativeCurrency:{name:"CELO",symbol:"CELO",decimals:18},rpc:["https://baklava-forno.celo-testnet.org"],faucets:["https://docs.google.com/forms/d/e/1FAIpQLSdfr1BwUTYepVmmvfVUDRCwALejZ-TUva2YujNpvrEmPAX2pg/viewform","https://cauldron.pretoriaresearchlab.io/baklava-faucet"],infoURL:"https://docs.celo.org/",testnet:!0,slug:"celo-baklava-testnet"},KYt={name:"MultiVAC Mainnet",chain:"MultiVAC",icon:{url:"ipfs://QmWb1gthhbzkiLdgcP8ccZprGbJVjFcW8Rn4uJjrw4jd3B",width:200,height:200,format:"png"},rpc:["https://rpc.mtv.ac","https://rpc-eu.mtv.ac"],faucets:[],nativeCurrency:{name:"MultiVAC",symbol:"MTV",decimals:18},infoURL:"https://mtv.ac",shortName:"mtv",chainId:62621,networkId:62621,explorers:[{name:"MultiVAC Explorer",url:"https://e.mtv.ac",standard:"none"}],testnet:!1,slug:"multivac"},QYt={name:"eCredits Mainnet",chain:"ECS",rpc:["https://rpc.ecredits.com"],faucets:[],nativeCurrency:{name:"eCredits",symbol:"ECS",decimals:18},infoURL:"https://ecredits.com",shortName:"ecs",chainId:63e3,networkId:63e3,icon:{url:"ipfs://QmU9H9JE1KtLh2Fxrd8EWTMjKGJBpgRWKUeEx7u6ic4kBY",width:32,height:32,format:"png"},explorers:[{name:"eCredits MainNet Explorer",url:"https://explorer.ecredits.com",icon:"ecredits",standard:"EIP3091"}],testnet:!1,slug:"ecredits"},XYt={name:"eCredits Testnet",chain:"ECS",rpc:["https://rpc.tst.ecredits.com"],faucets:["https://faucet.tst.ecredits.com"],nativeCurrency:{name:"eCredits",symbol:"ECS",decimals:18},infoURL:"https://ecredits.com",shortName:"ecs-testnet",chainId:63001,networkId:63001,icon:{url:"ipfs://QmU9H9JE1KtLh2Fxrd8EWTMjKGJBpgRWKUeEx7u6ic4kBY",width:32,height:32,format:"png"},explorers:[{name:"eCredits TestNet Explorer",url:"https://explorer.tst.ecredits.com",icon:"ecredits",standard:"EIP3091"}],testnet:!0,slug:"ecredits-testnet"},YYt={name:"SiriusNet",chain:"SIN",rpc:["https://u0tnafcv6j:o2T045sxuCNXL878RDQLp5__Zj-es2cvdjtgkl4etn0@u0v7kwtvtg-u0wj114sve-rpc.us0-aws.kaleido.io/"],faucets:[],nativeCurrency:{name:"MCD",symbol:"MCD",decimals:18},infoURL:"https://macaucasinolisboa.xyz",shortName:"mcl",chainId:67390,networkId:67390,explorers:[{name:"siriusnetscan",url:"https://siriusnet.tryethernal.com",standard:"EIP3091"}],testnet:!1,slug:"siriusnet"},$Yt={name:"Condrieu",title:"Ethereum Verkle Testnet Condrieu",chain:"ETH",rpc:["https://rpc.condrieu.ethdevops.io:8545"],faucets:["https://faucet.condrieu.ethdevops.io"],nativeCurrency:{name:"Condrieu Testnet Ether",symbol:"CTE",decimals:18},infoURL:"https://condrieu.ethdevops.io",shortName:"cndr",chainId:69420,networkId:69420,explorers:[{name:"Condrieu explorer",url:"https://explorer.condrieu.ethdevops.io",standard:"none"}],testnet:!0,slug:"condrieu"},e$t={name:"Thinkium Mainnet Chain 0",chain:"Thinkium",rpc:["https://proxy.thinkiumrpc.net/"],faucets:[],nativeCurrency:{name:"TKM",symbol:"TKM",decimals:18},infoURL:"https://thinkium.net/",shortName:"TKM0",chainId:7e4,networkId:7e4,explorers:[{name:"thinkiumscan",url:"https://chain0.thinkiumscan.net",standard:"EIP3091"}],testnet:!1,slug:"thinkium-chain-0"},t$t={name:"Thinkium Mainnet Chain 1",chain:"Thinkium",rpc:["https://proxy1.thinkiumrpc.net/"],faucets:[],nativeCurrency:{name:"TKM",symbol:"TKM",decimals:18},infoURL:"https://thinkium.net/",shortName:"TKM1",chainId:70001,networkId:70001,explorers:[{name:"thinkiumscan",url:"https://chain1.thinkiumscan.net",standard:"EIP3091"}],testnet:!1,slug:"thinkium-chain-1"},r$t={name:"Thinkium Mainnet Chain 2",chain:"Thinkium",rpc:["https://proxy2.thinkiumrpc.net/"],faucets:[],nativeCurrency:{name:"TKM",symbol:"TKM",decimals:18},infoURL:"https://thinkium.net/",shortName:"TKM2",chainId:70002,networkId:70002,explorers:[{name:"thinkiumscan",url:"https://chain2.thinkiumscan.net",standard:"EIP3091"}],testnet:!1,slug:"thinkium-chain-2"},n$t={name:"Thinkium Mainnet Chain 103",chain:"Thinkium",rpc:["https://proxy103.thinkiumrpc.net/"],faucets:[],nativeCurrency:{name:"TKM",symbol:"TKM",decimals:18},infoURL:"https://thinkium.net/",shortName:"TKM103",chainId:70103,networkId:70103,explorers:[{name:"thinkiumscan",url:"https://chain103.thinkiumscan.net",standard:"EIP3091"}],testnet:!1,slug:"thinkium-chain-103"},a$t={name:"Polyjuice Testnet",chain:"CKB",icon:{url:"ipfs://QmZ5gFWUxLFqqT3DkefYfRsVksMwMTc5VvBjkbHpeFMsNe",width:1001,height:1629,format:"png"},rpc:["https://godwoken-testnet-web3-rpc.ckbapp.dev","ws://godwoken-testnet-web3-rpc.ckbapp.dev/ws"],faucets:["https://faucet.nervos.org/"],nativeCurrency:{name:"CKB",symbol:"CKB",decimals:8},infoURL:"https://github.com/nervosnetwork/godwoken",shortName:"ckb",chainId:71393,networkId:1,testnet:!0,slug:"polyjuice-testnet"},i$t={name:"Godwoken Testnet v1",chain:"GWT",rpc:["https://godwoken-testnet-v1.ckbapp.dev","https://v1.testnet.godwoken.io/rpc"],faucets:["https://testnet.bridge.godwoken.io"],nativeCurrency:{name:"pCKB",symbol:"pCKB",decimals:18},infoURL:"https://www.nervos.org",shortName:"gw-testnet-v1",chainId:71401,networkId:71401,explorers:[{name:"GWScout Explorer",url:"https://gw-testnet-explorer.nervosdao.community",standard:"none"},{name:"GWScan Block Explorer",url:"https://v1.testnet.gwscan.com",standard:"none"}],testnet:!0,slug:"godwoken-testnet-v1"},s$t={name:"Godwoken Mainnet",chain:"GWT",rpc:["https://v1.mainnet.godwoken.io/rpc"],faucets:[],nativeCurrency:{name:"pCKB",symbol:"pCKB",decimals:18},infoURL:"https://www.nervos.org",shortName:"gw-mainnet-v1",chainId:71402,networkId:71402,explorers:[{name:"GWScout Explorer",url:"https://gw-mainnet-explorer.nervosdao.community",standard:"none"},{name:"GWScan Block Explorer",url:"https://v1.gwscan.com",standard:"none"}],testnet:!1,slug:"godwoken"},o$t={name:"Energy Web Volta Testnet",chain:"Volta",rpc:["https://volta-rpc.energyweb.org","wss://volta-rpc.energyweb.org/ws"],faucets:["https://voltafaucet.energyweb.org"],nativeCurrency:{name:"Volta Token",symbol:"VT",decimals:18},infoURL:"https://energyweb.org",shortName:"vt",chainId:73799,networkId:73799,testnet:!0,slug:"energy-web-volta-testnet"},c$t={name:"Mixin Virtual Machine",chain:"MVM",rpc:["https://geth.mvm.dev"],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://mvm.dev",shortName:"mvm",chainId:73927,networkId:73927,icon:{url:"ipfs://QmeuDgSprukzfV7fi9XYHYcfmT4aZZZU7idgShtRS8Vf6V",width:471,height:512,format:"png"},explorers:[{name:"mvmscan",url:"https://scan.mvm.dev",icon:"mvm",standard:"EIP3091"}],testnet:!1,slug:"mixin-virtual-machine"},u$t={name:"ResinCoin Mainnet",chain:"RESIN",icon:{url:"ipfs://QmTBszPzBeWPhjozf4TxpL2ws1NkG9yJvisx9h6MFii1zb",width:460,height:460,format:"png"},rpc:["https://mainnet.resincoin.dev"],faucets:[],nativeCurrency:{name:"Ether",symbol:"RESIN",decimals:18},infoURL:"https://resincoin.dev",shortName:"resin",chainId:75e3,networkId:75e3,explorers:[{name:"ResinScan",url:"https://explorer.resincoin.dev",standard:"none"}],testnet:!1,slug:"resincoin"},l$t={name:"Vention Smart Chain Mainnet",chain:"VSC",icon:{url:"ipfs://QmcNepHmbmHW1BZYM3MFqJW4awwhmDqhUPRXXmRnXwg1U4",width:250,height:250,format:"png"},rpc:["https://mainnet-rpc.vention.network"],faucets:["https://faucet.vention.network"],nativeCurrency:{name:"VNT",symbol:"VNT",decimals:18},infoURL:"https://ventionscan.io",shortName:"vscm",chainId:77612,networkId:77612,explorers:[{name:"ventionscan",url:"https://ventionscan.io",standard:"EIP3091"}],testnet:!1,slug:"vention-smart-chain"},d$t={name:"Firenze test network",chain:"ETH",rpc:["https://ethnode.primusmoney.com/firenze"],faucets:[],nativeCurrency:{name:"Firenze Ether",symbol:"FIN",decimals:18},infoURL:"https://primusmoney.com",shortName:"firenze",chainId:78110,networkId:78110,testnet:!0,slug:"firenze-test-network"},p$t={name:"Gold Smart Chain Testnet",chain:"STAND",icon:{url:"ipfs://QmPNuymyaKLJhCaXnyrsL8358FeTxabZFsaxMmWNU4Tzt3",width:396,height:418,format:"png"},rpc:["https://rpc-testnet.goldsmartchain.com"],faucets:["https://faucet.goldsmartchain.com"],nativeCurrency:{name:"Standard in Gold",symbol:"STAND",decimals:18},infoURL:"https://goldsmartchain.com",shortName:"STANDt",chainId:79879,networkId:79879,explorers:[{name:"Gold Smart Chain",url:"https://testnet.goldsmartchain.com",standard:"EIP3091"}],testnet:!0,slug:"gold-smart-chain-testnet"},h$t={name:"Mumbai",title:"Polygon Testnet Mumbai",chain:"Polygon",icon:{url:"ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/polygon/512.png",height:512,width:512,format:"png",sizes:[512,256,128,64,32,16]},rpc:["https://mumbai.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://matic-mumbai.chainstacklabs.com","https://rpc-mumbai.maticvigil.com","https://matic-testnet-archive-rpc.bwarelabs.com"],faucets:["https://faucet.polygon.technology/"],nativeCurrency:{name:"MATIC",symbol:"MATIC",decimals:18},infoURL:"https://polygon.technology/",shortName:"maticmum",chainId:80001,networkId:80001,explorers:[{name:"polygonscan",url:"https://mumbai.polygonscan.com",standard:"EIP3091"}],testnet:!0,slug:"mumbai"},f$t={name:"Chiliz Scoville Testnet",chain:"CHZ",rpc:["https://scoville-rpc.chiliz.com"],faucets:["https://scoville-faucet.chiliz.com"],nativeCurrency:{name:"Chiliz",symbol:"CHZ",decimals:18},icon:{url:"ipfs://QmYV5xUVZhHRzLy7ie9D8qZeygJHvNZZAxwnB9GXYy6EED",width:400,height:400,format:"png"},infoURL:"https://www.chiliz.com/en/chain",shortName:"chz",chainId:88880,networkId:88880,explorers:[{name:"scoville-explorer",url:"https://scoville-explorer.chiliz.com",standard:"none"}],testnet:!0,slug:"chiliz-scoville-testnet"},m$t={name:"IVAR Chain Mainnet",chain:"IVAR",icon:{url:"ipfs://QmV8UmSwqGF2fxrqVEBTHbkyZueahqyYtkfH2RBF5pNysM",width:519,height:519,format:"svg"},rpc:["https://mainnet-rpc.ivarex.com"],faucets:["https://faucet.ivarex.com/"],nativeCurrency:{name:"Ivar",symbol:"IVAR",decimals:18},infoURL:"https://ivarex.com",shortName:"ivar",chainId:88888,networkId:88888,explorers:[{name:"ivarscan",url:"https://ivarscan.com",standard:"EIP3091"}],testnet:!1,slug:"ivar-chain"},y$t={name:"Beverly Hills",title:"Ethereum multi-client Verkle Testnet Beverly Hills",chain:"ETH",rpc:["https://rpc.beverlyhills.ethdevops.io:8545"],faucets:["https://faucet.beverlyhills.ethdevops.io"],nativeCurrency:{name:"Beverly Hills Testnet Ether",symbol:"BVE",decimals:18},infoURL:"https://beverlyhills.ethdevops.io",shortName:"bvhl",chainId:90210,networkId:90210,status:"incubating",explorers:[{name:"Beverly Hills explorer",url:"https://explorer.beverlyhills.ethdevops.io",standard:"none"}],testnet:!0,slug:"beverly-hills"},g$t={name:"Lambda Testnet",chain:"Lambda",rpc:["https://evm.lambda.top/"],faucets:["https://faucet.lambda.top"],nativeCurrency:{name:"test-Lamb",symbol:"LAMB",decimals:18},infoURL:"https://lambda.im",shortName:"lambda-testnet",chainId:92001,networkId:92001,icon:{url:"ipfs://QmWsoME6LCghQTpGYf7EnUojaDdYo7kfkWVjE6VvNtkjwy",width:500,height:500,format:"png"},explorers:[{name:"Lambda EVM Explorer",url:"https://explorer.lambda.top",standard:"EIP3091",icon:"lambda"}],testnet:!0,slug:"lambda-testnet"},v$t={name:"UB Smart Chain(testnet)",chain:"USC",rpc:["https://testnet.rpc.uschain.network"],faucets:[],nativeCurrency:{name:"UBC",symbol:"UBC",decimals:18},infoURL:"https://www.ubchain.site",shortName:"usctest",chainId:99998,networkId:99998,testnet:!0,slug:"ub-smart-chain-testnet"},b$t={name:"UB Smart Chain",chain:"USC",rpc:["https://rpc.uschain.network"],faucets:[],nativeCurrency:{name:"UBC",symbol:"UBC",decimals:18},infoURL:"https://www.ubchain.site/",shortName:"usc",chainId:99999,networkId:99999,testnet:!1,slug:"ub-smart-chain"},w$t={name:"QuarkChain Mainnet Root",chain:"QuarkChain",rpc:["http://jrpc.mainnet.quarkchain.io:38391"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-r",chainId:1e5,networkId:1e5,testnet:!1,slug:"quarkchain-root"},x$t={name:"QuarkChain Mainnet Shard 0",chain:"QuarkChain",rpc:["https://mainnet-s0-ethapi.quarkchain.io","http://eth-jrpc.mainnet.quarkchain.io:39000"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-s0",chainId:100001,networkId:100001,parent:{chain:"eip155-100000",type:"shard"},explorers:[{name:"quarkchain-mainnet",url:"https://mainnet.quarkchain.io/0",standard:"EIP3091"}],testnet:!1,slug:"quarkchain-shard-0"},T$t={name:"QuarkChain Mainnet Shard 1",chain:"QuarkChain",rpc:["https://mainnet-s1-ethapi.quarkchain.io","http://eth-jrpc.mainnet.quarkchain.io:39001"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-s1",chainId:100002,networkId:100002,parent:{chain:"eip155-100000",type:"shard"},explorers:[{name:"quarkchain-mainnet",url:"https://mainnet.quarkchain.io/1",standard:"EIP3091"}],testnet:!1,slug:"quarkchain-shard-1"},_$t={name:"QuarkChain Mainnet Shard 2",chain:"QuarkChain",rpc:["https://mainnet-s2-ethapi.quarkchain.io","http://eth-jrpc.mainnet.quarkchain.io:39002"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-s2",chainId:100003,networkId:100003,parent:{chain:"eip155-100000",type:"shard"},explorers:[{name:"quarkchain-mainnet",url:"https://mainnet.quarkchain.io/2",standard:"EIP3091"}],testnet:!1,slug:"quarkchain-shard-2"},C$t={name:"QuarkChain Mainnet Shard 3",chain:"QuarkChain",rpc:["https://mainnet-s3-ethapi.quarkchain.io","http://eth-jrpc.mainnet.quarkchain.io:39003"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-s3",chainId:100004,networkId:100004,parent:{chain:"eip155-100000",type:"shard"},explorers:[{name:"quarkchain-mainnet",url:"https://mainnet.quarkchain.io/3",standard:"EIP3091"}],testnet:!1,slug:"quarkchain-shard-3"},E$t={name:"QuarkChain Mainnet Shard 4",chain:"QuarkChain",rpc:["https://mainnet-s4-ethapi.quarkchain.io","http://eth-jrpc.mainnet.quarkchain.io:39004"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-s4",chainId:100005,networkId:100005,parent:{chain:"eip155-100000",type:"shard"},explorers:[{name:"quarkchain-mainnet",url:"https://mainnet.quarkchain.io/4",standard:"EIP3091"}],testnet:!1,slug:"quarkchain-shard-4"},k$t={name:"QuarkChain Mainnet Shard 5",chain:"QuarkChain",rpc:["https://mainnet-s5-ethapi.quarkchain.io","http://eth-jrpc.mainnet.quarkchain.io:39005"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-s5",chainId:100006,networkId:100006,parent:{chain:"eip155-100000",type:"shard"},explorers:[{name:"quarkchain-mainnet",url:"https://mainnet.quarkchain.io/5",standard:"EIP3091"}],testnet:!1,slug:"quarkchain-shard-5"},S$t={name:"QuarkChain Mainnet Shard 6",chain:"QuarkChain",rpc:["https://mainnet-s6-ethapi.quarkchain.io","http://eth-jrpc.mainnet.quarkchain.io:39006"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-s6",chainId:100007,networkId:100007,parent:{chain:"eip155-100000",type:"shard"},explorers:[{name:"quarkchain-mainnet",url:"https://mainnet.quarkchain.io/6",standard:"EIP3091"}],testnet:!1,slug:"quarkchain-shard-6"},A$t={name:"QuarkChain Mainnet Shard 7",chain:"QuarkChain",rpc:["https://mainnet-s7-ethapi.quarkchain.io","http://eth-jrpc.mainnet.quarkchain.io:39007"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-s7",chainId:100008,networkId:100008,parent:{chain:"eip155-100000",type:"shard"},explorers:[{name:"quarkchain-mainnet",url:"https://mainnet.quarkchain.io/7",standard:"EIP3091"}],testnet:!1,slug:"quarkchain-shard-7"},M$t={name:"Soverun Testnet",chain:"SVRN",icon:{url:"ipfs://QmTYazUzgY9Nn2mCjWwFUSLy3dG6i2PvALpwCNQvx1zXyi",width:1154,height:1154,format:"png"},rpc:["https://testnet-rpc.soverun.com"],faucets:["https://faucet.soverun.com"],nativeCurrency:{name:"Soverun",symbol:"SVRN",decimals:18},infoURL:"https://soverun.com",shortName:"SVRNt",chainId:101010,networkId:101010,explorers:[{name:"Soverun",url:"https://testnet.soverun.com",standard:"EIP3091"}],testnet:!0,slug:"soverun-testnet"},I$t={name:"Crystaleum",chain:"crystal",rpc:["https://evm.cryptocurrencydevs.org","https://rpc.crystaleum.org"],faucets:[],nativeCurrency:{name:"CRFI",symbol:"\u25C8",decimals:18},infoURL:"https://crystaleum.org",shortName:"CRFI",chainId:103090,networkId:1,icon:{url:"ipfs://Qmbry1Uc6HnXmqFNXW5dFJ7To8EezCCjNr4TqqvAyzXS4h",width:150,height:150,format:"png"},explorers:[{name:"blockscout",url:"https://scan.crystaleum.org",icon:"crystal",standard:"EIP3091"}],testnet:!1,slug:"crystaleum"},P$t={name:"BROChain Mainnet",chain:"BRO",rpc:["https://rpc.brochain.org","http://rpc.brochain.org","https://rpc.brochain.org/mainnet","http://rpc.brochain.org/mainnet"],faucets:[],nativeCurrency:{name:"Brother",symbol:"BRO",decimals:18},infoURL:"https://brochain.org",shortName:"bro",chainId:108801,networkId:108801,explorers:[{name:"BROChain Explorer",url:"https://explorer.brochain.org",standard:"EIP3091"}],testnet:!1,slug:"brochain"},R$t={name:"QuarkChain Devnet Root",chain:"QuarkChain",rpc:["http://jrpc.devnet.quarkchain.io:38391"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-d-r",chainId:11e4,networkId:11e4,testnet:!1,slug:"quarkchain-devnet-root"},N$t={name:"QuarkChain Devnet Shard 0",chain:"QuarkChain",rpc:["https://devnet-s0-ethapi.quarkchain.io","http://eth-jrpc.devnet.quarkchain.io:39900"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-d-s0",chainId:110001,networkId:110001,parent:{chain:"eip155-110000",type:"shard"},explorers:[{name:"quarkchain-devnet",url:"https://devnet.quarkchain.io/0",standard:"EIP3091"}],testnet:!1,slug:"quarkchain-devnet-shard-0"},O$t={name:"QuarkChain Devnet Shard 1",chain:"QuarkChain",rpc:["https://devnet-s1-ethapi.quarkchain.io","http://eth-jrpc.devnet.quarkchain.io:39901"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-d-s1",chainId:110002,networkId:110002,parent:{chain:"eip155-110000",type:"shard"},explorers:[{name:"quarkchain-devnet",url:"https://devnet.quarkchain.io/1",standard:"EIP3091"}],testnet:!1,slug:"quarkchain-devnet-shard-1"},L$t={name:"QuarkChain Devnet Shard 2",chain:"QuarkChain",rpc:["https://devnet-s2-ethapi.quarkchain.io","http://eth-jrpc.devnet.quarkchain.io:39902"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-d-s2",chainId:110003,networkId:110003,parent:{chain:"eip155-110000",type:"shard"},explorers:[{name:"quarkchain-devnet",url:"https://devnet.quarkchain.io/2",standard:"EIP3091"}],testnet:!1,slug:"quarkchain-devnet-shard-2"},B$t={name:"QuarkChain Devnet Shard 3",chain:"QuarkChain",rpc:["https://devnet-s3-ethapi.quarkchain.io","http://eth-jrpc.devnet.quarkchain.io:39903"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-d-s3",chainId:110004,networkId:110004,parent:{chain:"eip155-110000",type:"shard"},explorers:[{name:"quarkchain-devnet",url:"https://devnet.quarkchain.io/3",standard:"EIP3091"}],testnet:!1,slug:"quarkchain-devnet-shard-3"},q$t={name:"QuarkChain Devnet Shard 4",chain:"QuarkChain",rpc:["https://devnet-s4-ethapi.quarkchain.io","http://eth-jrpc.devnet.quarkchain.io:39904"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-d-s4",chainId:110005,networkId:110005,parent:{chain:"eip155-110000",type:"shard"},explorers:[{name:"quarkchain-devnet",url:"https://devnet.quarkchain.io/4",standard:"EIP3091"}],testnet:!1,slug:"quarkchain-devnet-shard-4"},D$t={name:"QuarkChain Devnet Shard 5",chain:"QuarkChain",rpc:["https://devnet-s5-ethapi.quarkchain.io","http://eth-jrpc.devnet.quarkchain.io:39905"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-d-s5",chainId:110006,networkId:110006,parent:{chain:"eip155-110000",type:"shard"},explorers:[{name:"quarkchain-devnet",url:"https://devnet.quarkchain.io/5",standard:"EIP3091"}],testnet:!1,slug:"quarkchain-devnet-shard-5"},F$t={name:"QuarkChain Devnet Shard 6",chain:"QuarkChain",rpc:["https://devnet-s6-ethapi.quarkchain.io","http://eth-jrpc.devnet.quarkchain.io:39906"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-d-s6",chainId:110007,networkId:110007,parent:{chain:"eip155-110000",type:"shard"},explorers:[{name:"quarkchain-devnet",url:"https://devnet.quarkchain.io/6",standard:"EIP3091"}],testnet:!1,slug:"quarkchain-devnet-shard-6"},U$t={name:"QuarkChain Devnet Shard 7",chain:"QuarkChain",rpc:["https://devnet-s7-ethapi.quarkchain.io","http://eth-jrpc.devnet.quarkchain.io:39907"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-d-s7",chainId:110008,networkId:110008,parent:{chain:"eip155-110000",type:"shard"},explorers:[{name:"quarkchain-devnet",url:"https://devnet.quarkchain.io/7",standard:"EIP3091"}],testnet:!1,slug:"quarkchain-devnet-shard-7"},W$t={name:"ETND Chain Mainnets",chain:"ETND",rpc:["https://rpc.node1.etnd.pro/"],faucets:[],nativeCurrency:{name:"ETND",symbol:"ETND",decimals:18},infoURL:"https://www.etnd.pro",shortName:"ETND",chainId:131419,networkId:131419,icon:{url:"ipfs://Qmd26eRJxPb1jJg5Q4mC2M4kD9Jrs5vmcnr5LczHFMGwSD",width:128,height:128,format:"png"},explorers:[{name:"etndscan",url:"https://scan.etnd.pro",icon:"ETND",standard:"none"}],testnet:!1,slug:"etnd-chain-s"},j$t={name:"Condor Test Network",chain:"CONDOR",icon:{url:"ipfs://QmPRDuEJSTqp2cDUvWCp71Wns6XV8nvdeAVKWH6srpk4xM",width:752,height:752,format:"png"},rpc:["https://testnet.condor.systems/rpc"],faucets:["https://faucet.condor.systems"],nativeCurrency:{name:"Condor Native Token",symbol:"CONDOR",decimals:18},infoURL:"https://condor.systems",shortName:"condor",chainId:188881,networkId:188881,explorers:[{name:"CondorScan",url:"https://explorer.condor.systems",standard:"none"}],testnet:!0,slug:"condor-test-network"},z$t={name:"Milkomeda C1 Testnet",chain:"milkTAda",icon:{url:"ipfs://QmdoUtvHDybu5ppYBZT8BMRp6AqByVSoQs8nFwKbaS55jd",width:367,height:367,format:"svg"},rpc:["https://rpc-devnet-cardano-evm.c1.milkomeda.com","wss://rpc-devnet-cardano-evm.c1.milkomeda.com"],faucets:[],nativeCurrency:{name:"milkTAda",symbol:"mTAda",decimals:18},infoURL:"https://milkomeda.com",shortName:"milkTAda",chainId:200101,networkId:200101,explorers:[{name:"Blockscout",url:"https://explorer-devnet-cardano-evm.c1.milkomeda.com",standard:"none"}],testnet:!0,slug:"milkomeda-c1-testnet"},H$t={name:"Milkomeda A1 Testnet",chain:"milkTAlgo",icon:{url:"ipfs://QmdoUtvHDybu5ppYBZT8BMRp6AqByVSoQs8nFwKbaS55jd",width:367,height:367,format:"svg"},rpc:["https://rpc-devnet-algorand-rollup.a1.milkomeda.com"],faucets:[],nativeCurrency:{name:"milkTAlgo",symbol:"mTAlgo",decimals:18},infoURL:"https://milkomeda.com",shortName:"milkTAlgo",chainId:200202,networkId:200202,explorers:[{name:"Blockscout",url:"https://explorer-devnet-algorand-rollup.a1.milkomeda.com",standard:"none"}],testnet:!0,slug:"milkomeda-a1-testnet"},V$t={name:"Akroma",chain:"AKA",rpc:["https://remote.akroma.io"],faucets:[],nativeCurrency:{name:"Akroma Ether",symbol:"AKA",decimals:18},infoURL:"https://akroma.io",shortName:"aka",chainId:200625,networkId:200625,slip44:200625,testnet:!1,slug:"akroma"},G$t={name:"Alaya Mainnet",chain:"Alaya",rpc:["https://openapi.alaya.network/rpc","wss://openapi.alaya.network/ws"],faucets:[],nativeCurrency:{name:"ATP",symbol:"atp",decimals:18},infoURL:"https://www.alaya.network/",shortName:"alaya",chainId:201018,networkId:1,icon:{url:"ipfs://Qmci6vPcWAwmq19j98yuQxjV6UPzHtThMdCAUDbKeb8oYu",width:1140,height:1140,format:"png"},explorers:[{name:"alaya explorer",url:"https://scan.alaya.network",standard:"none"}],testnet:!1,slug:"alaya"},Z$t={name:"Alaya Dev Testnet",chain:"Alaya",rpc:["https://devnetopenapi.alaya.network/rpc","wss://devnetopenapi.alaya.network/ws"],faucets:["https://faucet.alaya.network/faucet/?id=f93426c0887f11eb83b900163e06151c"],nativeCurrency:{name:"ATP",symbol:"atp",decimals:18},infoURL:"https://www.alaya.network/",shortName:"alayadev",chainId:201030,networkId:1,icon:{url:"ipfs://Qmci6vPcWAwmq19j98yuQxjV6UPzHtThMdCAUDbKeb8oYu",width:1140,height:1140,format:"png"},explorers:[{name:"alaya explorer",url:"https://devnetscan.alaya.network",standard:"none"}],testnet:!0,slug:"alaya-dev-testnet"},J$t={name:"Mythical Chain",chain:"MYTH",rpc:["https://chain-rpc.mythicalgames.com"],faucets:[],nativeCurrency:{name:"Mythos",symbol:"MYTH",decimals:18},features:[{name:"EIP155"},{name:"EIP1559"}],infoURL:"https://mythicalgames.com/",shortName:"myth",chainId:201804,networkId:201804,icon:{url:"ipfs://bafkreihru6cccfblrjz5bv36znq2l3h67u6xj5ivtc4bj5l6gzofbgtnb4",width:350,height:350,format:"png"},explorers:[{name:"Mythical Chain Explorer",url:"https://explorer.mythicalgames.com",icon:"mythical",standard:"EIP3091"}],testnet:!1,slug:"mythical-chain"},K$t={name:"Decimal Smart Chain Testnet",chain:"tDSC",rpc:["https://testnet-val.decimalchain.com/web3"],faucets:[],nativeCurrency:{name:"Decimal",symbol:"tDEL",decimals:18},features:[{name:"EIP155"},{name:"EIP1559"}],infoURL:"https://decimalchain.com",shortName:"tDSC",chainId:202020,networkId:202020,icon:{url:"ipfs://QmSgzwKnJJjys3Uq2aVVdwJ3NffLj3CXMVCph9uByTBegc",width:256,height:256,format:"png"},explorers:[{name:"DSC Explorer Testnet",url:"https://testnet.explorer.decimalchain.com",icon:"dsc",standard:"EIP3091"}],testnet:!0,slug:"decimal-smart-chain-testnet"},Q$t={name:"Jellie",title:"Twala Testnet Jellie",shortName:"twl-jellie",chain:"ETH",chainId:202624,networkId:202624,icon:{url:"ipfs://QmTXJVhVKvVC7DQEnGKXvydvwpvVaUEBJrMHvsCr4nr1sK",width:1326,height:1265,format:"png"},nativeCurrency:{name:"Twala Coin",symbol:"TWL",decimals:18},rpc:["https://jellie-rpc.twala.io/","wss://jellie-rpc-wss.twala.io/"],faucets:[],infoURL:"https://twala.io/",explorers:[{name:"Jellie Blockchain Explorer",url:"https://jellie.twala.io",standard:"EIP3091",icon:"twala"}],testnet:!0,slug:"jellie"},X$t={name:"PlatON Mainnet",chain:"PlatON",rpc:["https://openapi2.platon.network/rpc","wss://openapi2.platon.network/ws"],faucets:[],nativeCurrency:{name:"LAT",symbol:"lat",decimals:18},infoURL:"https://www.platon.network",shortName:"platon",chainId:210425,networkId:1,icon:{url:"ipfs://QmT7PSXBiVBma6E15hNkivmstqLu3JSnG1jXN5pTmcCGRC",width:200,height:200,format:"png"},explorers:[{name:"PlatON explorer",url:"https://scan.platon.network",standard:"none"}],testnet:!1,slug:"platon"},Y$t={name:"Mas Mainnet",chain:"MAS",rpc:["http://node.masnet.ai:8545"],faucets:[],nativeCurrency:{name:"Master Bank",symbol:"MAS",decimals:18},features:[{name:"EIP155"},{name:"EIP1559"}],infoURL:"https://masterbank.org",shortName:"mas",chainId:220315,networkId:220315,icon:{url:"ipfs://QmZ9njQhhKkpJKGnoYy6XTuDtk5CYiDFUd8atqWthqUT3Q",width:1024,height:1024,format:"png"},explorers:[{name:"explorer masnet",url:"https://explorer.masnet.ai",icon:"explorer",standard:"EIP3091"}],testnet:!1,slug:"mas"},$$t={name:"Haymo Testnet",chain:"tHYM",rpc:["https://testnet1.haymo.network"],faucets:[],nativeCurrency:{name:"HAYMO",symbol:"HYM",decimals:18},infoURL:"https://haymoswap.web.app/",shortName:"hym",chainId:234666,networkId:234666,testnet:!0,slug:"haymo-testnet"},eer={name:"ARTIS sigma1",chain:"ARTIS",rpc:["https://rpc.sigma1.artis.network"],faucets:[],nativeCurrency:{name:"ARTIS sigma1 Ether",symbol:"ATS",decimals:18},infoURL:"https://artis.eco",shortName:"ats",chainId:246529,networkId:246529,slip44:246529,testnet:!1,slug:"artis-sigma1"},ter={name:"ARTIS Testnet tau1",chain:"ARTIS",rpc:["https://rpc.tau1.artis.network"],faucets:[],nativeCurrency:{name:"ARTIS tau1 Ether",symbol:"tATS",decimals:18},infoURL:"https://artis.network",shortName:"atstau",chainId:246785,networkId:246785,testnet:!0,slug:"artis-testnet-tau1"},rer={name:"Saakuru Testnet",chain:"Saakuru",icon:{url:"ipfs://QmduEdtFobPpZWSc45MU6RKxZfTEzLux2z8ikHFhT8usqv",width:1024,height:1024,format:"png"},rpc:["https://rpc-testnet.saakuru.network"],faucets:[],nativeCurrency:{name:"OAS",symbol:"OAS",decimals:18},infoURL:"https://saakuru.network",shortName:"saakuru-testnet",chainId:247253,networkId:247253,explorers:[{name:"saakuru-explorer-testnet",url:"https://explorer-testnet.saakuru.network",standard:"EIP3091"}],testnet:!0,slug:"saakuru-testnet"},ner={name:"CMP-Mainnet",chain:"CMP",rpc:["https://mainnet.block.caduceus.foundation","wss://mainnet.block.caduceus.foundation"],faucets:[],nativeCurrency:{name:"Caduceus Token",symbol:"CMP",decimals:18},infoURL:"https://caduceus.foundation/",shortName:"cmp-mainnet",chainId:256256,networkId:256256,explorers:[{name:"Mainnet Scan",url:"https://mainnet.scan.caduceus.foundation",standard:"none"}],testnet:!1,slug:"cmp"},aer={name:"Gear Zero Network Testnet",chain:"GearZero",rpc:["https://gzn-test.linksme.info"],faucets:[],nativeCurrency:{name:"Gear Zero Network Native Token",symbol:"GZN",decimals:18},infoURL:"https://token.gearzero.ca/testnet",shortName:"gz-testnet",chainId:266256,networkId:266256,slip44:266256,explorers:[],testnet:!0,slug:"gear-zero-network-testnet"},ier={name:"Social Smart Chain Mainnet",chain:"SoChain",rpc:["https://socialsmartchain.digitalnext.business"],faucets:[],nativeCurrency:{name:"SoChain",symbol:"$OC",decimals:18},infoURL:"https://digitalnext.business/SocialSmartChain",shortName:"SoChain",chainId:281121,networkId:281121,explorers:[],testnet:!1,slug:"social-smart-chain"},ser={name:"Filecoin - Calibration testnet",chain:"FIL",icon:{url:"ipfs://QmS9r9XQkMHVomWcSBNDkKkz9n87h9bH9ssabeiKZtANoU",width:1e3,height:1e3,format:"png"},rpc:["https://api.calibration.node.glif.io/rpc/v1"],faucets:["https://faucet.calibration.fildev.network/"],nativeCurrency:{name:"testnet filecoin",symbol:"tFIL",decimals:18},infoURL:"https://filecoin.io",shortName:"filecoin-calibration",chainId:314159,networkId:314159,slip44:1,explorers:[{name:"Filscan - Calibration",url:"https://calibration.filscan.io",standard:"none"},{name:"Filscout - Calibration",url:"https://calibration.filscout.com/en",standard:"none"}],testnet:!0,slug:"filecoin-calibration-testnet"},oer={name:"Polis Testnet",chain:"Sparta",icon:{url:"ipfs://QmagWrtyApex28H2QeXcs3jJ2F7p2K7eESz3cDbHdQ3pjG",width:1050,height:1050,format:"png"},rpc:["https://sparta-rpc.polis.tech"],faucets:["https://faucet.polis.tech"],nativeCurrency:{name:"tPolis",symbol:"tPOLIS",decimals:18},infoURL:"https://polis.tech",shortName:"sparta",chainId:333888,networkId:333888,testnet:!0,slug:"polis-testnet"},cer={name:"Polis Mainnet",chain:"Olympus",icon:{url:"ipfs://QmagWrtyApex28H2QeXcs3jJ2F7p2K7eESz3cDbHdQ3pjG",width:1050,height:1050,format:"png"},rpc:["https://rpc.polis.tech"],faucets:["https://faucet.polis.tech"],nativeCurrency:{name:"Polis",symbol:"POLIS",decimals:18},infoURL:"https://polis.tech",shortName:"olympus",chainId:333999,networkId:333999,testnet:!1,slug:"polis"},uer={name:"Metal C-Chain",chain:"Metal",rpc:["https://api.metalblockchain.org/ext/bc/C/rpc"],faucets:[],nativeCurrency:{name:"Metal",symbol:"METAL",decimals:18},infoURL:"https://www.metalblockchain.org/",shortName:"metal",chainId:381931,networkId:381931,slip44:9005,explorers:[{name:"metalscan",url:"https://metalscan.io",standard:"EIP3091"}],testnet:!1,slug:"metal-c-chain"},ler={name:"Metal Tahoe C-Chain",chain:"Metal",rpc:["https://tahoe.metalblockchain.org/ext/bc/C/rpc"],faucets:[],nativeCurrency:{name:"Metal",symbol:"METAL",decimals:18},infoURL:"https://www.metalblockchain.org/",shortName:"Tahoe",chainId:381932,networkId:381932,slip44:9005,explorers:[{name:"metalscan",url:"https://tahoe.metalscan.io",standard:"EIP3091"}],testnet:!1,slug:"metal-tahoe-c-chain"},der={name:"Kekchain",chain:"kek",rpc:["https://mainnet.kekchain.com"],faucets:[],nativeCurrency:{name:"KEK",symbol:"KEK",decimals:18},infoURL:"https://kekchain.com",shortName:"KEK",chainId:420420,networkId:103090,icon:{url:"ipfs://QmNzwHAmaaQyuvKudrzGkrTT2GMshcmCmJ9FH8gG2mNJtM",width:401,height:401,format:"svg"},explorers:[{name:"blockscout",url:"https://mainnet-explorer.kekchain.com",icon:"kek",standard:"EIP3091"}],testnet:!1,slug:"kekchain"},per={name:"Kekchain (kektest)",chain:"kek",rpc:["https://testnet.kekchain.com"],faucets:[],nativeCurrency:{name:"tKEK",symbol:"tKEK",decimals:18},infoURL:"https://kekchain.com",shortName:"tKEK",chainId:420666,networkId:1,icon:{url:"ipfs://QmNzwHAmaaQyuvKudrzGkrTT2GMshcmCmJ9FH8gG2mNJtM",width:401,height:401,format:"svg"},explorers:[{name:"blockscout",url:"https://testnet-explorer.kekchain.com",icon:"kek",standard:"EIP3091"}],testnet:!0,slug:"kekchain-kektest"},her={name:"Arbitrum Rinkeby",title:"Arbitrum Testnet Rinkeby",chainId:421611,shortName:"arb-rinkeby",chain:"ETH",networkId:421611,nativeCurrency:{name:"Arbitrum Rinkeby Ether",symbol:"ETH",decimals:18},rpc:["https://rinkeby.arbitrum.io/rpc"],faucets:["http://fauceth.komputing.org?chain=421611&address=${ADDRESS}"],infoURL:"https://arbitrum.io",explorers:[{name:"arbiscan-testnet",url:"https://testnet.arbiscan.io",standard:"EIP3091"},{name:"arbitrum-rinkeby",url:"https://rinkeby-explorer.arbitrum.io",standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-4",bridges:[{url:"https://bridge.arbitrum.io"}]},testnet:!0,slug:"arbitrum-rinkeby"},fer={name:"Arbitrum Goerli",title:"Arbitrum Goerli Rollup Testnet",chainId:421613,shortName:"arb-goerli",chain:"ETH",networkId:421613,nativeCurrency:{name:"Arbitrum Goerli Ether",symbol:"AGOR",decimals:18},rpc:["https://arbitrum-goerli.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://goerli-rollup.arbitrum.io/rpc/"],faucets:[],infoURL:"https://arbitrum.io/",explorers:[{name:"Arbitrum Goerli Rollup Explorer",url:"https://goerli-rollup-explorer.arbitrum.io",standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-5",bridges:[{url:"https://bridge.arbitrum.io/"}]},icon:{url:"ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/arbitrum/512.png",height:512,width:512,format:"png",sizes:[512,256,128,64,32,16]},testnet:!0,slug:"arbitrum-goerli"},mer={name:"Fastex Chain testnet",chain:"FTN",title:"Fastex Chain testnet",rpc:["https://rpc.testnet.fastexchain.com"],features:[{name:"EIP155"},{name:"EIP1559"}],faucets:[],nativeCurrency:{name:"FTN",symbol:"FTN",decimals:18},infoURL:"https://fastex.com",shortName:"ftn",chainId:424242,networkId:424242,explorers:[{name:"blockscout",url:"https://testnet.ftnscan.com",standard:"none"}],testnet:!0,slug:"fastex-chain-testnet"},yer={name:"Dexalot Subnet Testnet",chain:"DEXALOT",icon:{url:"ipfs://QmfVxdrWjtUKiGzqFDzAxHH2FqwP2aRuZTGcYWdWg519Xy",width:256,height:256,format:"png"},rpc:["https://subnets.avax.network/dexalot/testnet/rpc"],faucets:["https://faucet.avax.network/?subnet=dexalot"],nativeCurrency:{name:"Dexalot",symbol:"ALOT",decimals:18},infoURL:"https://dexalot.com",shortName:"dexalot-testnet",chainId:432201,networkId:432201,explorers:[{name:"Avalanche Subnet Testnet Explorer",url:"https://subnets-test.avax.network/dexalot",standard:"EIP3091"}],testnet:!0,slug:"dexalot-subnet-testnet"},ger={name:"Dexalot Subnet",chain:"DEXALOT",icon:{url:"ipfs://QmfVxdrWjtUKiGzqFDzAxHH2FqwP2aRuZTGcYWdWg519Xy",width:256,height:256,format:"png"},rpc:["https://subnets.avax.network/dexalot/mainnet/rpc"],faucets:[],nativeCurrency:{name:"Dexalot",symbol:"ALOT",decimals:18},infoURL:"https://dexalot.com",shortName:"dexalot",chainId:432204,networkId:432204,explorers:[{name:"Avalanche Subnet Explorer",url:"https://subnets.avax.network/dexalot",standard:"EIP3091"}],testnet:!1,slug:"dexalot-subnet"},ver={name:"Weelink Testnet",chain:"WLK",rpc:["https://weelinknode1c.gw002.oneitfarm.com"],faucets:["https://faucet.weelink.gw002.oneitfarm.com"],nativeCurrency:{name:"Weelink Chain Token",symbol:"tWLK",decimals:18},infoURL:"https://weelink.cloud",shortName:"wlkt",chainId:444900,networkId:444900,explorers:[{name:"weelink-testnet",url:"https://weelink.cloud/#/blockView/overview",standard:"none"}],testnet:!0,slug:"weelink-testnet"},ber={name:"OpenChain Mainnet",chain:"OpenChain",rpc:["https://baas-rpc.luniverse.io:18545?lChainId=1641349324562974539"],faucets:[],nativeCurrency:{name:"OpenCoin",symbol:"OPC",decimals:10},infoURL:"https://www.openchain.live",shortName:"oc",chainId:474142,networkId:474142,explorers:[{name:"SIDE SCAN",url:"https://sidescan.luniverse.io/1641349324562974539",standard:"none"}],testnet:!1,slug:"openchain"},wer={name:"CMP-Testnet",chain:"CMP",rpc:["https://galaxy.block.caduceus.foundation","wss://galaxy.block.caduceus.foundation"],faucets:["https://dev.caduceus.foundation/testNetwork"],nativeCurrency:{name:"Caduceus Testnet Token",symbol:"CMP",decimals:18},infoURL:"https://caduceus.foundation/",shortName:"cmp",chainId:512512,networkId:512512,explorers:[{name:"Galaxy Scan",url:"https://galaxy.scan.caduceus.foundation",standard:"none"}],testnet:!0,slug:"cmp-testnet"},xer={name:"ethereum Fair",chainId:513100,networkId:513100,shortName:"etf",chain:"ETF",nativeCurrency:{name:"EthereumFair",symbol:"ETHF",decimals:18},rpc:["https://rpc.etherfair.org"],faucets:[],explorers:[{name:"etherfair",url:"https://explorer.etherfair.org",standard:"EIP3091"}],infoURL:"https://etherfair.org",testnet:!1,slug:"ethereum-fair"},Ter={name:"Scroll",chain:"ETH",rpc:[],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://scroll.io",shortName:"scr",chainId:534352,networkId:534352,explorers:[],parent:{type:"L2",chain:"eip155-1",bridges:[]},testnet:!1,slug:"scroll"},_er={name:"Scroll Alpha Testnet",chain:"ETH",status:"incubating",rpc:["https://alpha-rpc.scroll.io/l2"],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://scroll.io",shortName:"scr-alpha",chainId:534353,networkId:534353,explorers:[{name:"Scroll Alpha Testnet Block Explorer",url:"https://blockscout.scroll.io",standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-5",bridges:[]},testnet:!0,slug:"scroll-alpha-testnet"},Cer={name:"Scroll Pre-Alpha Testnet",chain:"ETH",rpc:["https://prealpha-rpc.scroll.io/l2"],faucets:["https://prealpha.scroll.io/faucet"],nativeCurrency:{name:"Ether",symbol:"TSETH",decimals:18},infoURL:"https://scroll.io",shortName:"scr-prealpha",chainId:534354,networkId:534354,explorers:[{name:"Scroll L2 Block Explorer",url:"https://l2scan.scroll.io",standard:"EIP3091"}],testnet:!0,slug:"scroll-pre-alpha-testnet"},Eer={name:"Bear Network Chain Mainnet",chain:"BRNKC",icon:{url:"ipfs://QmQqhH28QpUrreoRw5Gj8YShzdHxxVGMjfVrx3TqJNLSLv",width:1067,height:1067,format:"png"},rpc:["https://brnkc-mainnet.bearnetwork.net","https://brnkc-mainnet1.bearnetwork.net"],faucets:[],nativeCurrency:{name:"Bear Network Chain Native Token",symbol:"BRNKC",decimals:18},infoURL:"https://bearnetwork.net",shortName:"BRNKC",chainId:641230,networkId:641230,explorers:[{name:"brnkscan",url:"https://brnkscan.bearnetwork.net",standard:"EIP3091"}],testnet:!1,slug:"bear-network-chain"},ker={name:"Vision - Vpioneer Test Chain",chain:"Vision-Vpioneer",rpc:["https://vpioneer.infragrid.v.network/ethereum/compatible"],faucets:["https://vpioneerfaucet.visionscan.org"],nativeCurrency:{name:"VS",symbol:"VS",decimals:18},infoURL:"https://visionscan.org",shortName:"vpioneer",chainId:666666,networkId:666666,slip44:60,testnet:!0,slug:"vision-vpioneer-test-chain"},Ser={name:"Bear Network Chain Testnet",chain:"BRNKCTEST",icon:{url:"ipfs://QmQqhH28QpUrreoRw5Gj8YShzdHxxVGMjfVrx3TqJNLSLv",width:1067,height:1067,format:"png"},rpc:["https://brnkc-test.bearnetwork.net"],faucets:[],nativeCurrency:{name:"Bear Network Chain Testnet Token",symbol:"tBRNKC",decimals:18},infoURL:"https://bearnetwork.net",shortName:"BRNKCTEST",chainId:751230,networkId:751230,explorers:[{name:"brnktestscan",url:"https://brnktest-scan.bearnetwork.net",standard:"EIP3091"}],testnet:!0,slug:"bear-network-chain-testnet"},Aer={name:"OctaSpace",chain:"OCTA",rpc:["https://rpc.octa.space","wss://rpc.octa.space"],faucets:[],nativeCurrency:{name:"OctaSpace",symbol:"OCTA",decimals:18},infoURL:"https://octa.space",shortName:"octa",chainId:800001,networkId:800001,icon:{url:"ipfs://QmVhezQHkqSZ5Tvtsw18giA1yBjV1URSsBQ7HenUh6p6oC",width:512,height:512,format:"png"},explorers:[{name:"blockscout",url:"https://explorer.octa.space",icon:"blockscout",standard:"EIP3091"}],testnet:!1,slug:"octaspace"},Mer={name:"4GoodNetwork",chain:"4GN",rpc:["https://chain.deptofgood.com"],faucets:[],nativeCurrency:{name:"APTA",symbol:"APTA",decimals:18},infoURL:"https://bloqs4good.com",shortName:"bloqs4good",chainId:846e3,networkId:846e3,testnet:!1,slug:"4goodnetwork"},Ier={name:"Vision - Mainnet",chain:"Vision",rpc:["https://infragrid.v.network/ethereum/compatible"],faucets:[],nativeCurrency:{name:"VS",symbol:"VS",decimals:18},infoURL:"https://www.v.network",explorers:[{name:"Visionscan",url:"https://www.visionscan.org",standard:"EIP3091"}],shortName:"vision",chainId:888888,networkId:888888,slip44:60,testnet:!1,slug:"vision"},Per={name:"Posichain Mainnet Shard 0",chain:"PSC",rpc:["https://api.posichain.org","https://api.s0.posichain.org"],faucets:["https://faucet.posichain.org/"],nativeCurrency:{name:"Posichain Native Token",symbol:"POSI",decimals:18},infoURL:"https://posichain.org",shortName:"psc-s0",chainId:9e5,networkId:9e5,explorers:[{name:"Posichain Explorer",url:"https://explorer.posichain.org",standard:"EIP3091"}],testnet:!1,slug:"posichain-shard-0"},Rer={name:"Posichain Testnet Shard 0",chain:"PSC",rpc:["https://api.s0.t.posichain.org"],faucets:["https://faucet.posichain.org/"],nativeCurrency:{name:"Posichain Native Token",symbol:"POSI",decimals:18},infoURL:"https://posichain.org",shortName:"psc-t-s0",chainId:91e4,networkId:91e4,explorers:[{name:"Posichain Explorer Testnet",url:"https://explorer-testnet.posichain.org",standard:"EIP3091"}],testnet:!0,slug:"posichain-testnet-shard-0"},Ner={name:"Posichain Devnet Shard 0",chain:"PSC",rpc:["https://api.s0.d.posichain.org"],faucets:["https://faucet.posichain.org/"],nativeCurrency:{name:"Posichain Native Token",symbol:"POSI",decimals:18},infoURL:"https://posichain.org",shortName:"psc-d-s0",chainId:92e4,networkId:92e4,explorers:[{name:"Posichain Explorer Devnet",url:"https://explorer-devnet.posichain.org",standard:"EIP3091"}],testnet:!1,slug:"posichain-devnet-shard-0"},Oer={name:"Posichain Devnet Shard 1",chain:"PSC",rpc:["https://api.s1.d.posichain.org"],faucets:["https://faucet.posichain.org/"],nativeCurrency:{name:"Posichain Native Token",symbol:"POSI",decimals:18},infoURL:"https://posichain.org",shortName:"psc-d-s1",chainId:920001,networkId:920001,explorers:[{name:"Posichain Explorer Devnet",url:"https://explorer-devnet.posichain.org",standard:"EIP3091"}],testnet:!1,slug:"posichain-devnet-shard-1"},Ler={name:"FNCY Testnet",chain:"FNCY",rpc:["https://fncy-testnet-seed.fncy.world"],faucets:["https://faucet-testnet.fncy.world"],nativeCurrency:{name:"FNCY",symbol:"FNCY",decimals:18},infoURL:"https://fncyscan-testnet.fncy.world",shortName:"tFNCY",chainId:923018,networkId:923018,icon:{url:"ipfs://QmfXCh6UnaEHn3Evz7RFJ3p2ggJBRm9hunDHegeoquGuhD",width:256,height:256,format:"png"},explorers:[{name:"fncy scan testnet",url:"https://fncyscan-testnet.fncy.world",icon:"fncy",standard:"EIP3091"}],testnet:!0,slug:"fncy-testnet"},Ber={name:"Eluvio Content Fabric",chain:"Eluvio",rpc:["https://host-76-74-28-226.contentfabric.io/eth/","https://host-76-74-28-232.contentfabric.io/eth/","https://host-76-74-29-2.contentfabric.io/eth/","https://host-76-74-29-8.contentfabric.io/eth/","https://host-76-74-29-34.contentfabric.io/eth/","https://host-76-74-29-35.contentfabric.io/eth/","https://host-154-14-211-98.contentfabric.io/eth/","https://host-154-14-192-66.contentfabric.io/eth/","https://host-60-240-133-202.contentfabric.io/eth/","https://host-64-235-250-98.contentfabric.io/eth/"],faucets:[],nativeCurrency:{name:"ELV",symbol:"ELV",decimals:18},infoURL:"https://eluv.io",shortName:"elv",chainId:955305,networkId:955305,slip44:1011,explorers:[{name:"blockscout",url:"https://explorer.eluv.io",standard:"EIP3091"}],testnet:!1,slug:"eluvio-content-fabric"},qer={name:"Etho Protocol",chain:"ETHO",rpc:["https://rpc.ethoprotocol.com"],faucets:[],nativeCurrency:{name:"Etho Protocol",symbol:"ETHO",decimals:18},infoURL:"https://ethoprotocol.com",shortName:"etho",chainId:1313114,networkId:1313114,slip44:1313114,explorers:[{name:"blockscout",url:"https://explorer.ethoprotocol.com",standard:"none"}],testnet:!1,slug:"etho-protocol"},Der={name:"Xerom",chain:"XERO",rpc:["https://rpc.xerom.org"],faucets:[],nativeCurrency:{name:"Xerom Ether",symbol:"XERO",decimals:18},infoURL:"https://xerom.org",shortName:"xero",chainId:1313500,networkId:1313500,testnet:!1,slug:"xerom"},Fer={name:"Kintsugi",title:"Kintsugi merge testnet",chain:"ETH",rpc:["https://rpc.kintsugi.themerge.dev"],faucets:["http://fauceth.komputing.org?chain=1337702&address=${ADDRESS}","https://faucet.kintsugi.themerge.dev"],nativeCurrency:{name:"kintsugi Ethere",symbol:"kiETH",decimals:18},infoURL:"https://kintsugi.themerge.dev/",shortName:"kintsugi",chainId:1337702,networkId:1337702,explorers:[{name:"kintsugi explorer",url:"https://explorer.kintsugi.themerge.dev",standard:"EIP3091"}],testnet:!0,slug:"kintsugi"},Uer={name:"Kiln",chain:"ETH",rpc:["https://rpc.kiln.themerge.dev"],faucets:["https://faucet.kiln.themerge.dev","https://kiln-faucet.pk910.de","https://kilnfaucet.com"],nativeCurrency:{name:"Testnet ETH",symbol:"ETH",decimals:18},infoURL:"https://kiln.themerge.dev/",shortName:"kiln",chainId:1337802,networkId:1337802,icon:{url:"ipfs://QmdwQDr6vmBtXmK2TmknkEuZNoaDqTasFdZdu3DRw8b2wt",width:1e3,height:1628,format:"png"},explorers:[{name:"Kiln Explorer",url:"https://explorer.kiln.themerge.dev",icon:"ethereum",standard:"EIP3091"}],testnet:!0,slug:"kiln"},Wer={name:"Zhejiang",chain:"ETH",rpc:["https://rpc.zhejiang.ethpandaops.io"],faucets:["https://faucet.zhejiang.ethpandaops.io","https://zhejiang-faucet.pk910.de"],nativeCurrency:{name:"Testnet ETH",symbol:"ETH",decimals:18},infoURL:"https://zhejiang.ethpandaops.io",shortName:"zhejiang",chainId:1337803,networkId:1337803,icon:{url:"ipfs://QmdwQDr6vmBtXmK2TmknkEuZNoaDqTasFdZdu3DRw8b2wt",width:1e3,height:1628,format:"png"},explorers:[{name:"Zhejiang Explorer",url:"https://zhejiang.beaconcha.in",icon:"ethereum",standard:"EIP3091"}],testnet:!0,slug:"zhejiang"},jer={name:"Plian Mainnet Main",chain:"Plian",rpc:["https://mainnet.plian.io/pchain"],faucets:[],nativeCurrency:{name:"Plian Token",symbol:"PI",decimals:18},infoURL:"https://plian.org/",shortName:"plian-mainnet",chainId:2099156,networkId:2099156,explorers:[{name:"piscan",url:"https://piscan.plian.org/pchain",standard:"EIP3091"}],testnet:!1,slug:"plian-main"},zer={name:"PlatON Dev Testnet2",chain:"PlatON",rpc:["https://devnet2openapi.platon.network/rpc","wss://devnet2openapi.platon.network/ws"],faucets:["https://devnet2faucet.platon.network/faucet"],nativeCurrency:{name:"LAT",symbol:"lat",decimals:18},infoURL:"https://www.platon.network",shortName:"platondev2",chainId:2206132,networkId:1,icon:{url:"ipfs://QmT7PSXBiVBma6E15hNkivmstqLu3JSnG1jXN5pTmcCGRC",width:200,height:200,format:"png"},explorers:[{name:"PlatON explorer",url:"https://devnet2scan.platon.network",standard:"none"}],testnet:!0,slug:"platon-dev-testnet2"},Her={name:"Filecoin - Butterfly testnet",chain:"FIL",status:"incubating",rpc:[],faucets:["https://faucet.butterfly.fildev.network"],nativeCurrency:{name:"testnet filecoin",symbol:"tFIL",decimals:18},infoURL:"https://filecoin.io",shortName:"filecoin-butterfly",icon:{url:"ipfs://QmS9r9XQkMHVomWcSBNDkKkz9n87h9bH9ssabeiKZtANoU",width:1e3,height:1e3,format:"png"},chainId:3141592,networkId:3141592,slip44:1,explorers:[],testnet:!0,slug:"filecoin-butterfly-testnet"},Ver={name:"Imversed Mainnet",chain:"Imversed",rpc:["https://jsonrpc.imversed.network","https://ws-jsonrpc.imversed.network"],faucets:[],nativeCurrency:{name:"Imversed Token",symbol:"IMV",decimals:18},infoURL:"https://imversed.com",shortName:"imversed",chainId:5555555,networkId:5555555,icon:{url:"ipfs://QmYwvmJZ1bgTdiZUKXk4SifTpTj286CkZjMCshUyJuBFH1",width:400,height:400,format:"png"},explorers:[{name:"Imversed EVM explorer (Blockscout)",url:"https://txe.imversed.network",icon:"imversed",standard:"EIP3091"},{name:"Imversed Cosmos Explorer (Big Dipper)",url:"https://tex-c.imversed.com",icon:"imversed",standard:"none"}],testnet:!1,slug:"imversed"},Ger={name:"Imversed Testnet",chain:"Imversed",rpc:["https://jsonrpc-test.imversed.network","https://ws-jsonrpc-test.imversed.network"],faucets:[],nativeCurrency:{name:"Imversed Token",symbol:"IMV",decimals:18},infoURL:"https://imversed.com",shortName:"imversed-testnet",chainId:5555558,networkId:5555558,icon:{url:"ipfs://QmYwvmJZ1bgTdiZUKXk4SifTpTj286CkZjMCshUyJuBFH1",width:400,height:400,format:"png"},explorers:[{name:"Imversed EVM Explorer (Blockscout)",url:"https://txe-test.imversed.network",icon:"imversed",standard:"EIP3091"},{name:"Imversed Cosmos Explorer (Big Dipper)",url:"https://tex-t.imversed.com",icon:"imversed",standard:"none"}],testnet:!0,slug:"imversed-testnet"},Zer={name:"Saakuru Mainnet",chain:"Saakuru",icon:{url:"ipfs://QmduEdtFobPpZWSc45MU6RKxZfTEzLux2z8ikHFhT8usqv",width:1024,height:1024,format:"png"},rpc:["https://rpc.saakuru.network"],faucets:[],nativeCurrency:{name:"OAS",symbol:"OAS",decimals:18},infoURL:"https://saakuru.network",shortName:"saakuru",chainId:7225878,networkId:7225878,explorers:[{name:"saakuru-explorer",url:"https://explorer.saakuru.network",standard:"EIP3091"}],testnet:!1,slug:"saakuru"},Jer={name:"OpenVessel",chain:"VSL",icon:{url:"ipfs://QmeknNzGCZXQK7egwfwyxQan7Lw8bLnqYsyoEgEbDNCzJX",width:600,height:529,format:"png"},rpc:["https://mainnet-external.openvessel.io"],faucets:[],nativeCurrency:{name:"Vessel ETH",symbol:"VETH",decimals:18},infoURL:"https://www.openvessel.io",shortName:"vsl",chainId:7355310,networkId:7355310,explorers:[{name:"openvessel-mainnet",url:"https://mainnet-explorer.openvessel.io",standard:"none"}],testnet:!1,slug:"openvessel"},Ker={name:"QL1 Testnet",chain:"QOM",status:"incubating",rpc:["https://rpc.testnet.qom.one"],faucets:["https://faucet.qom.one"],nativeCurrency:{name:"Shiba Predator",symbol:"QOM",decimals:18},infoURL:"https://qom.one",shortName:"tqom",chainId:7668378,networkId:7668378,icon:{url:"ipfs://QmRc1kJ7AgcDL1BSoMYudatWHTrz27K6WNTwGifQb5V17D",width:518,height:518,format:"png"},explorers:[{name:"QL1 Testnet Explorer",url:"https://testnet.qom.one",icon:"qom",standard:"EIP3091"}],testnet:!0,slug:"ql1-testnet"},Qer={name:"Musicoin",chain:"MUSIC",rpc:["https://mewapi.musicoin.tw"],faucets:[],nativeCurrency:{name:"Musicoin",symbol:"MUSIC",decimals:18},infoURL:"https://musicoin.tw",shortName:"music",chainId:7762959,networkId:7762959,slip44:184,testnet:!1,slug:"musicoin"},Xer={name:"Plian Mainnet Subchain 1",chain:"Plian",rpc:["https://mainnet.plian.io/child_0"],faucets:[],nativeCurrency:{name:"Plian Token",symbol:"PI",decimals:18},infoURL:"https://plian.org",shortName:"plian-mainnet-l2",chainId:8007736,networkId:8007736,explorers:[{name:"piscan",url:"https://piscan.plian.org/child_0",standard:"EIP3091"}],parent:{chain:"eip155-2099156",type:"L2"},testnet:!1,slug:"plian-subchain-1"},Yer={name:"Plian Testnet Subchain 1",chain:"Plian",rpc:["https://testnet.plian.io/child_test"],faucets:[],nativeCurrency:{name:"Plian Token",symbol:"TPI",decimals:18},infoURL:"https://plian.org/",shortName:"plian-testnet-l2",chainId:10067275,networkId:10067275,explorers:[{name:"piscan",url:"https://testnet.plian.org/child_test",standard:"EIP3091"}],parent:{chain:"eip155-16658437",type:"L2"},testnet:!0,slug:"plian-testnet-subchain-1"},$er={name:"Soverun Mainnet",chain:"SVRN",icon:{url:"ipfs://QmTYazUzgY9Nn2mCjWwFUSLy3dG6i2PvALpwCNQvx1zXyi",width:1154,height:1154,format:"png"},rpc:["https://mainnet-rpc.soverun.com"],faucets:["https://faucet.soverun.com"],nativeCurrency:{name:"Soverun",symbol:"SVRN",decimals:18},infoURL:"https://soverun.com",shortName:"SVRNm",chainId:10101010,networkId:10101010,explorers:[{name:"Soverun",url:"https://explorer.soverun.com",standard:"EIP3091"}],testnet:!1,slug:"soverun"},etr={name:"Sepolia",title:"Ethereum Testnet Sepolia",chain:"ETH",rpc:["https://rpc.sepolia.org","https://rpc-sepolia.rockx.com"],faucets:["http://fauceth.komputing.org?chain=11155111&address=${ADDRESS}"],nativeCurrency:{name:"Sepolia Ether",symbol:"ETH",decimals:18},infoURL:"https://sepolia.otterscan.io",shortName:"sep",chainId:11155111,networkId:11155111,explorers:[{name:"etherscan-sepolia",url:"https://sepolia.etherscan.io",standard:"EIP3091"},{name:"otterscan-sepolia",url:"https://sepolia.otterscan.io",standard:"EIP3091"}],testnet:!0,slug:"sepolia"},ttr={name:"PepChain Churchill",chain:"PEP",rpc:["https://churchill-rpc.pepchain.io"],faucets:[],nativeCurrency:{name:"PepChain Churchill Ether",symbol:"TPEP",decimals:18},infoURL:"https://pepchain.io",shortName:"tpep",chainId:13371337,networkId:13371337,testnet:!1,slug:"pepchain-churchill"},rtr={name:"Anduschain Mainnet",chain:"anduschain",rpc:["https://rpc.anduschain.io/rpc","wss://rpc.anduschain.io/ws"],faucets:[],nativeCurrency:{name:"DAON",symbol:"DEB",decimals:18},infoURL:"https://anduschain.io/",shortName:"anduschain-mainnet",chainId:14288640,networkId:14288640,explorers:[{name:"anduschain explorer",url:"https://explorer.anduschain.io",icon:"daon",standard:"none"}],testnet:!1,slug:"anduschain"},ntr={name:"Plian Testnet Main",chain:"Plian",rpc:["https://testnet.plian.io/testnet"],faucets:[],nativeCurrency:{name:"Plian Testnet Token",symbol:"TPI",decimals:18},infoURL:"https://plian.org",shortName:"plian-testnet",chainId:16658437,networkId:16658437,explorers:[{name:"piscan",url:"https://testnet.plian.org/testnet",standard:"EIP3091"}],testnet:!0,slug:"plian-testnet-main"},atr={name:"IOLite",chain:"ILT",rpc:["https://net.iolite.io"],faucets:[],nativeCurrency:{name:"IOLite Ether",symbol:"ILT",decimals:18},infoURL:"https://iolite.io",shortName:"ilt",chainId:18289463,networkId:18289463,testnet:!1,slug:"iolite"},itr={name:"SmartMesh Mainnet",chain:"Spectrum",rpc:["https://jsonapi1.smartmesh.cn"],faucets:[],nativeCurrency:{name:"SmartMesh Native Token",symbol:"SMT",decimals:18},infoURL:"https://smartmesh.io",shortName:"spectrum",chainId:20180430,networkId:1,explorers:[{name:"spectrum",url:"https://spectrum.pub",standard:"none"}],testnet:!1,slug:"smartmesh"},str={name:"quarkblockchain",chain:"QKI",rpc:["https://hz.rpc.qkiscan.cn","https://jp.rpc.qkiscan.io"],faucets:[],nativeCurrency:{name:"quarkblockchain Native Token",symbol:"QKI",decimals:18},infoURL:"https://quarkblockchain.org/",shortName:"qki",chainId:20181205,networkId:20181205,testnet:!1,slug:"quarkblockchain"},otr={name:"Excelon Mainnet",chain:"XLON",icon:{url:"ipfs://QmTV45o4jTe6ayscF1XWh1WXk5DPck4QohR5kQocSWjvQP",width:300,height:300,format:"png"},rpc:["https://edgewallet1.xlon.org/"],faucets:[],nativeCurrency:{name:"Excelon",symbol:"xlon",decimals:18},infoURL:"https://xlon.org",shortName:"xlon",chainId:22052002,networkId:22052002,explorers:[{name:"Excelon explorer",url:"https://explorer.excelon.io",standard:"EIP3091"}],testnet:!1,slug:"excelon"},ctr={name:"Excoincial Chain Volta-Testnet",chain:"TEXL",icon:{url:"ipfs://QmeooM7QicT1YbgY93XPd5p7JsCjYhN3qjWt68X57g6bVC",width:400,height:400,format:"png"},rpc:["https://testnet-rpc.exlscan.com"],faucets:["https://faucet.exlscan.com"],nativeCurrency:{name:"TExlcoin",symbol:"TEXL",decimals:18},infoURL:"",shortName:"exlvolta",chainId:27082017,networkId:27082017,explorers:[{name:"exlscan",url:"https://testnet-explorer.exlscan.com",icon:"exl",standard:"EIP3091"}],testnet:!0,slug:"excoincial-chain-volta-testnet"},utr={name:"Excoincial Chain Mainnet",chain:"EXL",icon:{url:"ipfs://QmeooM7QicT1YbgY93XPd5p7JsCjYhN3qjWt68X57g6bVC",width:400,height:400,format:"png"},rpc:["https://rpc.exlscan.com"],faucets:[],nativeCurrency:{name:"Exlcoin",symbol:"EXL",decimals:18},infoURL:"",shortName:"exl",chainId:27082022,networkId:27082022,explorers:[{name:"exlscan",url:"https://exlscan.com",icon:"exl",standard:"EIP3091"}],testnet:!1,slug:"excoincial-chain"},ltr={name:"Auxilium Network Mainnet",chain:"AUX",rpc:["https://rpc.auxilium.global"],faucets:[],nativeCurrency:{name:"Auxilium coin",symbol:"AUX",decimals:18},infoURL:"https://auxilium.global",shortName:"auxi",chainId:28945486,networkId:28945486,slip44:344,testnet:!1,slug:"auxilium-network"},dtr={name:"Flachain Mainnet",chain:"FLX",icon:{url:"ipfs://bafybeiadlvc4pfiykehyt2z67nvgt5w4vlov27olu5obvmryv4xzua4tae",width:256,height:256,format:"png"},rpc:["https://flachain.flaexchange.top/"],features:[{name:"EIP155"},{name:"EIP1559"}],faucets:[],nativeCurrency:{name:"Flacoin",symbol:"FLA",decimals:18},infoURL:"https://www.flaexchange.top",shortName:"fla",chainId:29032022,networkId:29032022,explorers:[{name:"FLXExplorer",url:"https://explorer.flaexchange.top",standard:"EIP3091"}],testnet:!1,slug:"flachain"},ptr={name:"Filecoin - Local testnet",chain:"FIL",status:"incubating",rpc:[],faucets:[],nativeCurrency:{name:"testnet filecoin",symbol:"tFIL",decimals:18},infoURL:"https://filecoin.io",shortName:"filecoin-local",icon:{url:"ipfs://QmS9r9XQkMHVomWcSBNDkKkz9n87h9bH9ssabeiKZtANoU",width:1e3,height:1e3,format:"png"},chainId:31415926,networkId:31415926,slip44:1,explorers:[],testnet:!0,slug:"filecoin-local-testnet"},htr={name:"Joys Digital Mainnet",chain:"JOYS",rpc:["https://node.joys.digital"],faucets:[],nativeCurrency:{name:"JOYS",symbol:"JOYS",decimals:18},infoURL:"https://joys.digital",shortName:"JOYS",chainId:35855456,networkId:35855456,testnet:!1,slug:"joys-digital"},ftr={name:"maistestsubnet",chain:"MAI",rpc:["http://174.138.9.169:9650/ext/bc/VUKSzFZKckx4PoZF9gX5QAqLPxbLzvu1vcssPG5QuodaJtdHT/rpc"],faucets:[],nativeCurrency:{name:"maistestsubnet",symbol:"MAI",decimals:18},infoURL:"",shortName:"mais",chainId:43214913,networkId:43214913,explorers:[{name:"maistesntet",url:"http://174.138.9.169:3006/?network=maistesntet",standard:"none"}],testnet:!0,slug:"maistestsubnet"},mtr={name:"Aquachain",chain:"AQUA",rpc:["https://c.onical.org","https://tx.aquacha.in/api"],faucets:["https://aquacha.in/faucet"],nativeCurrency:{name:"Aquachain Ether",symbol:"AQUA",decimals:18},infoURL:"https://aquachain.github.io",shortName:"aqua",chainId:61717561,networkId:61717561,slip44:61717561,testnet:!1,slug:"aquachain"},ytr={name:"Autonity Bakerloo (Thames) Testnet",chain:"AUT",rpc:["https://rpc1.bakerloo.autonity.org/","wss://rpc1.bakerloo.autonity.org/ws/"],faucets:["https://faucet.autonity.org/"],nativeCurrency:{name:"Bakerloo Auton",symbol:"ATN",decimals:18},infoURL:"https://autonity.org/",shortName:"bakerloo-0",chainId:6501e4,networkId:6501e4,explorers:[{name:"autonity-blockscout",url:"https://bakerloo.autonity.org",standard:"EIP3091"}],testnet:!0,slug:"autonity-bakerloo-thames-testnet"},gtr={name:"Autonity Piccadilly (Thames) Testnet",chain:"AUT",rpc:["https://rpc1.piccadilly.autonity.org/","wss://rpc1.piccadilly.autonity.org/ws/"],faucets:["https://faucet.autonity.org/"],nativeCurrency:{name:"Piccadilly Auton",symbol:"ATN",decimals:18},infoURL:"https://autonity.org/",shortName:"piccadilly-0",chainId:651e5,networkId:651e5,explorers:[{name:"autonity-blockscout",url:"https://piccadilly.autonity.org",standard:"EIP3091"}],testnet:!0,slug:"autonity-piccadilly-thames-testnet"},vtr={name:"Joys Digital TestNet",chain:"TOYS",rpc:["https://toys.joys.cash/"],faucets:["https://faucet.joys.digital/"],nativeCurrency:{name:"TOYS",symbol:"TOYS",decimals:18},infoURL:"https://joys.digital",shortName:"TOYS",chainId:99415706,networkId:99415706,testnet:!0,slug:"joys-digital-testnet"},btr={name:"Gather Mainnet Network",chain:"GTH",rpc:["https://mainnet.gather.network"],faucets:[],nativeCurrency:{name:"Gather",symbol:"GTH",decimals:18},infoURL:"https://gather.network",shortName:"GTH",chainId:192837465,networkId:192837465,explorers:[{name:"Blockscout",url:"https://explorer.gather.network",standard:"none"}],testnet:!1,slug:"gather-network"},wtr={name:"Neon EVM DevNet",chain:"Solana",rpc:["https://devnet.neonevm.org"],faucets:["https://neonfaucet.org"],icon:{url:"ipfs://Qmcxevb3v8PEvnvfYgcG3bCBuPhe5YAdsHeaufDChSSR3Q",width:512,height:512,format:"png"},nativeCurrency:{name:"Neon",symbol:"NEON",decimals:18},infoURL:"https://neon-labs.org",shortName:"neonevm-devnet",chainId:245022926,networkId:245022926,explorers:[{name:"native",url:"https://devnet.explorer.neon-labs.org",standard:"EIP3091"},{name:"neonscan",url:"https://devnet.neonscan.org",standard:"EIP3091"}],testnet:!1,slug:"neon-evm-devnet"},xtr={name:"Neon EVM MainNet",chain:"Solana",rpc:["https://mainnet.neonevm.org"],faucets:[],icon:{url:"ipfs://Qmcxevb3v8PEvnvfYgcG3bCBuPhe5YAdsHeaufDChSSR3Q",width:512,height:512,format:"png"},nativeCurrency:{name:"Neon",symbol:"NEON",decimals:18},infoURL:"https://neon-labs.org",shortName:"neonevm-mainnet",chainId:245022934,networkId:245022934,explorers:[{name:"native",url:"https://mainnet.explorer.neon-labs.org",standard:"EIP3091"},{name:"neonscan",url:"https://mainnet.neonscan.org",standard:"EIP3091"}],testnet:!1,slug:"neon-evm"},Ttr={name:"Neon EVM TestNet",chain:"Solana",rpc:["https://testnet.neonevm.org"],faucets:[],icon:{url:"ipfs://Qmcxevb3v8PEvnvfYgcG3bCBuPhe5YAdsHeaufDChSSR3Q",width:512,height:512,format:"png"},nativeCurrency:{name:"Neon",symbol:"NEON",decimals:18},infoURL:"https://neon-labs.org",shortName:"neonevm-testnet",chainId:245022940,networkId:245022940,explorers:[{name:"native",url:"https://testnet.explorer.neon-labs.org",standard:"EIP3091"},{name:"neonscan",url:"https://testnet.neonscan.org",standard:"EIP3091"}],testnet:!0,slug:"neon-evm-testnet"},_tr={name:"OneLedger Mainnet",chain:"OLT",icon:{url:"ipfs://QmRhqq4Gp8G9w27ND3LeFW49o5PxcxrbJsqHbpBFtzEMfC",width:225,height:225,format:"png"},rpc:["https://mainnet-rpc.oneledger.network"],faucets:[],nativeCurrency:{name:"OLT",symbol:"OLT",decimals:18},infoURL:"https://oneledger.io",shortName:"oneledger",chainId:311752642,networkId:311752642,explorers:[{name:"OneLedger Block Explorer",url:"https://mainnet-explorer.oneledger.network",standard:"EIP3091"}],testnet:!1,slug:"oneledger"},Ctr={name:"Calypso NFT Hub (SKALE Testnet)",title:"Calypso NFT Hub Testnet",chain:"staging-utter-unripe-menkar",rpc:["https://staging-v3.skalenodes.com/v1/staging-utter-unripe-menkar"],faucets:["https://sfuel.dirtroad.dev/staging"],nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},infoURL:"https://calypsohub.network/",shortName:"calypso-testnet",chainId:344106930,networkId:344106930,explorers:[{name:"Blockscout",url:"https://staging-utter-unripe-menkar.explorer.staging-v3.skalenodes.com",icon:"calypso",standard:"EIP3091"}],testnet:!0,slug:"calypso-nft-hub-skale-testnet"},Etr={name:"Gather Testnet Network",chain:"GTH",rpc:["https://testnet.gather.network"],faucets:[],nativeCurrency:{name:"Gather",symbol:"GTH",decimals:18},infoURL:"https://gather.network",shortName:"tGTH",chainId:356256156,networkId:356256156,explorers:[{name:"Blockscout",url:"https://testnet-explorer.gather.network",standard:"none"}],testnet:!0,slug:"gather-testnet-network"},ktr={name:"Gather Devnet Network",chain:"GTH",rpc:["https://devnet.gather.network"],faucets:[],nativeCurrency:{name:"Gather",symbol:"GTH",decimals:18},infoURL:"https://gather.network",shortName:"dGTH",chainId:486217935,networkId:486217935,explorers:[{name:"Blockscout",url:"https://devnet-explorer.gather.network",standard:"none"}],testnet:!1,slug:"gather-devnet-network"},Str={name:"Nebula Staging",chain:"staging-faint-slimy-achird",rpc:["https://staging-v3.skalenodes.com/v1/staging-faint-slimy-achird","wss://staging-v3.skalenodes.com/v1/ws/staging-faint-slimy-achird"],faucets:[],nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},infoURL:"https://nebulachain.io/",shortName:"nebula-staging",chainId:503129905,networkId:503129905,explorers:[{name:"nebula",url:"https://staging-faint-slimy-achird.explorer.staging-v3.skalenodes.com",icon:"nebula",standard:"EIP3091"}],testnet:!1,slug:"nebula-staging"},Atr={name:"IPOS Network",chain:"IPOS",rpc:["https://rpc.iposlab.com","https://rpc2.iposlab.com"],faucets:[],nativeCurrency:{name:"IPOS Network Ether",symbol:"IPOS",decimals:18},infoURL:"https://iposlab.com",shortName:"ipos",chainId:1122334455,networkId:1122334455,testnet:!1,slug:"ipos-network"},Mtr={name:"Aurora Mainnet",chain:"NEAR",rpc:["https://mainnet.aurora.dev"],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://aurora.dev",shortName:"aurora",chainId:1313161554,networkId:1313161554,explorers:[{name:"aurorascan.dev",url:"https://aurorascan.dev",standard:"EIP3091"}],testnet:!1,slug:"aurora"},Itr={name:"Aurora Testnet",chain:"NEAR",rpc:["https://testnet.aurora.dev/"],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://aurora.dev",shortName:"aurora-testnet",chainId:1313161555,networkId:1313161555,explorers:[{name:"aurorascan.dev",url:"https://testnet.aurorascan.dev",standard:"EIP3091"}],testnet:!0,slug:"aurora-testnet"},Ptr={name:"Aurora Betanet",chain:"NEAR",rpc:[],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://aurora.dev",shortName:"aurora-betanet",chainId:1313161556,networkId:1313161556,testnet:!1,slug:"aurora-betanet"},Rtr={name:"Nebula Mainnet",chain:"green-giddy-denebola",rpc:["https://mainnet.skalenodes.com/v1/green-giddy-denebola","wss://mainnet-proxy.skalenodes.com/v1/ws/green-giddy-denebola"],faucets:[],nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},infoURL:"https://nebulachain.io/",shortName:"nebula-mainnet",chainId:1482601649,networkId:1482601649,explorers:[{name:"nebula",url:"https://green-giddy-denebola.explorer.mainnet.skalenodes.com",icon:"nebula",standard:"EIP3091"}],testnet:!1,slug:"nebula"},Ntr={name:"Calypso NFT Hub (SKALE)",title:"Calypso NFT Hub Mainnet",chain:"honorable-steel-rasalhague",rpc:["https://mainnet.skalenodes.com/v1/honorable-steel-rasalhague"],faucets:["https://sfuel.dirtroad.dev"],nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},infoURL:"https://calypsohub.network/",shortName:"calypso-mainnet",chainId:1564830818,networkId:1564830818,explorers:[{name:"Blockscout",url:"https://honorable-steel-rasalhague.explorer.mainnet.skalenodes.com",icon:"calypso",standard:"EIP3091"}],testnet:!1,slug:"calypso-nft-hub-skale"},Otr={name:"Harmony Mainnet Shard 0",chain:"Harmony",rpc:["https://api.harmony.one","https://api.s0.t.hmny.io"],faucets:["https://free-online-app.com/faucet-for-eth-evm-chains/"],nativeCurrency:{name:"ONE",symbol:"ONE",decimals:18},infoURL:"https://www.harmony.one/",shortName:"hmy-s0",chainId:16666e5,networkId:16666e5,explorers:[{name:"Harmony Block Explorer",url:"https://explorer.harmony.one",standard:"EIP3091"}],testnet:!1,slug:"harmony-shard-0"},Ltr={name:"Harmony Mainnet Shard 1",chain:"Harmony",rpc:["https://api.s1.t.hmny.io"],faucets:[],nativeCurrency:{name:"ONE",symbol:"ONE",decimals:18},infoURL:"https://www.harmony.one/",shortName:"hmy-s1",chainId:1666600001,networkId:1666600001,testnet:!1,slug:"harmony-shard-1"},Btr={name:"Harmony Mainnet Shard 2",chain:"Harmony",rpc:["https://api.s2.t.hmny.io"],faucets:[],nativeCurrency:{name:"ONE",symbol:"ONE",decimals:18},infoURL:"https://www.harmony.one/",shortName:"hmy-s2",chainId:1666600002,networkId:1666600002,testnet:!1,slug:"harmony-shard-2"},qtr={name:"Harmony Mainnet Shard 3",chain:"Harmony",rpc:["https://api.s3.t.hmny.io"],faucets:[],nativeCurrency:{name:"ONE",symbol:"ONE",decimals:18},infoURL:"https://www.harmony.one/",shortName:"hmy-s3",chainId:1666600003,networkId:1666600003,testnet:!1,slug:"harmony-shard-3"},Dtr={name:"Harmony Testnet Shard 0",chain:"Harmony",rpc:["https://api.s0.b.hmny.io"],faucets:["https://faucet.pops.one"],nativeCurrency:{name:"ONE",symbol:"ONE",decimals:18},infoURL:"https://www.harmony.one/",shortName:"hmy-b-s0",chainId:16667e5,networkId:16667e5,explorers:[{name:"Harmony Testnet Block Explorer",url:"https://explorer.pops.one",standard:"EIP3091"}],testnet:!0,slug:"harmony-testnet-shard-0"},Ftr={name:"Harmony Testnet Shard 1",chain:"Harmony",rpc:["https://api.s1.b.hmny.io"],faucets:[],nativeCurrency:{name:"ONE",symbol:"ONE",decimals:18},infoURL:"https://www.harmony.one/",shortName:"hmy-b-s1",chainId:1666700001,networkId:1666700001,testnet:!0,slug:"harmony-testnet-shard-1"},Utr={name:"Harmony Testnet Shard 2",chain:"Harmony",rpc:["https://api.s2.b.hmny.io"],faucets:[],nativeCurrency:{name:"ONE",symbol:"ONE",decimals:18},infoURL:"https://www.harmony.one/",shortName:"hmy-b-s2",chainId:1666700002,networkId:1666700002,testnet:!0,slug:"harmony-testnet-shard-2"},Wtr={name:"Harmony Testnet Shard 3",chain:"Harmony",rpc:["https://api.s3.b.hmny.io"],faucets:[],nativeCurrency:{name:"ONE",symbol:"ONE",decimals:18},infoURL:"https://www.harmony.one/",shortName:"hmy-b-s3",chainId:1666700003,networkId:1666700003,testnet:!0,slug:"harmony-testnet-shard-3"},jtr={name:"Harmony Devnet Shard 0",chain:"Harmony",rpc:["https://api.s1.ps.hmny.io","https://api.s1.ps.hmny.io"],faucets:["http://dev.faucet.easynode.one/"],nativeCurrency:{name:"ONE",symbol:"ONE",decimals:18},infoURL:"https://www.harmony.one/",shortName:"hmy-ps-s0",chainId:16669e5,networkId:16669e5,explorers:[{name:"Harmony Block Explorer",url:"https://explorer.ps.hmny.io",standard:"EIP3091"}],testnet:!1,slug:"harmony-devnet-shard-0"},ztr={name:"DataHopper",chain:"HOP",rpc:["https://23.92.21.121:8545"],faucets:[],nativeCurrency:{name:"DataHoppers",symbol:"HOP",decimals:18},infoURL:"https://www.DataHopper.com",shortName:"hop",chainId:2021121117,networkId:2021121117,testnet:!1,slug:"datahopper"},Htr={name:"Europa SKALE Chain",chain:"europa",icon:{url:"ipfs://bafkreiezcwowhm6xjrkt44cmiu6ml36rhrxx3amcg3cfkcntv2vgcvgbre",width:600,height:600,format:"png"},rpc:["https://mainnet.skalenodes.com/v1/elated-tan-skat","wss://mainnet.skalenodes.com/v1/elated-tan-skat"],faucets:["https://ruby.exchange/faucet.html","https://sfuel.mylilius.com/"],nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},infoURL:"https://europahub.network/",shortName:"europa",chainId:2046399126,networkId:2046399126,explorers:[{name:"Blockscout",url:"https://elated-tan-skat.explorer.mainnet.skalenodes.com",standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-1",bridges:[{url:"https://ruby.exchange/bridge.html"}]},testnet:!1,slug:"europa-skale-chain"},Vtr={name:"Pirl",chain:"PIRL",rpc:["https://wallrpc.pirl.io"],faucets:[],nativeCurrency:{name:"Pirl Ether",symbol:"PIRL",decimals:18},infoURL:"https://pirl.io",shortName:"pirl",chainId:3125659152,networkId:3125659152,slip44:164,testnet:!1,slug:"pirl"},Gtr={name:"OneLedger Testnet Frankenstein",chain:"OLT",icon:{url:"ipfs://QmRhqq4Gp8G9w27ND3LeFW49o5PxcxrbJsqHbpBFtzEMfC",width:225,height:225,format:"png"},rpc:["https://frankenstein-rpc.oneledger.network"],faucets:["https://frankenstein-faucet.oneledger.network"],nativeCurrency:{name:"OLT",symbol:"OLT",decimals:18},infoURL:"https://oneledger.io",shortName:"frankenstein",chainId:4216137055,networkId:4216137055,explorers:[{name:"OneLedger Block Explorer",url:"https://frankenstein-explorer.oneledger.network",standard:"EIP3091"}],testnet:!0,slug:"oneledger-testnet-frankenstein"},Ztr={name:"Palm Testnet",chain:"Palm",rpc:["https://palm-testnet.infura.io/v3/${INFURA_API_KEY}"],faucets:[],nativeCurrency:{name:"PALM",symbol:"PALM",decimals:18},infoURL:"https://palm.io",shortName:"tpalm",chainId:11297108099,networkId:11297108099,explorers:[{name:"Palm Testnet Explorer",url:"https://explorer.palm-uat.xyz",standard:"EIP3091"}],testnet:!0,slug:"palm-testnet"},Jtr={name:"Palm",chain:"Palm",rpc:["https://palm-mainnet.infura.io/v3/${INFURA_API_KEY}"],faucets:[],nativeCurrency:{name:"PALM",symbol:"PALM",decimals:18},infoURL:"https://palm.io",shortName:"palm",chainId:11297108109,networkId:11297108109,explorers:[{name:"Palm Explorer",url:"https://explorer.palm.io",standard:"EIP3091"}],testnet:!1,slug:"palm"},Ktr={name:"Ntity Mainnet",chain:"Ntity",rpc:["https://rpc.ntity.io"],faucets:[],nativeCurrency:{name:"Ntity",symbol:"NTT",decimals:18},infoURL:"https://ntity.io",shortName:"ntt",chainId:197710212030,networkId:197710212030,icon:{url:"ipfs://QmSW2YhCvMpnwtPGTJAuEK2QgyWfFjmnwcrapUg6kqFsPf",width:711,height:715,format:"svg"},explorers:[{name:"Ntity Blockscout",url:"https://blockscout.ntity.io",icon:"ntity",standard:"EIP3091"}],testnet:!1,slug:"ntity"},Qtr={name:"Haradev Testnet",chain:"Ntity",rpc:["https://blockchain.haradev.com"],faucets:[],nativeCurrency:{name:"Ntity Haradev",symbol:"NTTH",decimals:18},infoURL:"https://ntity.io",shortName:"ntt-haradev",chainId:197710212031,networkId:197710212031,icon:{url:"ipfs://QmSW2YhCvMpnwtPGTJAuEK2QgyWfFjmnwcrapUg6kqFsPf",width:711,height:715,format:"svg"},explorers:[{name:"Ntity Haradev Blockscout",url:"https://blockscout.haradev.com",icon:"ntity",standard:"EIP3091"}],testnet:!0,slug:"haradev-testnet"},Xtr={name:"Zeniq",chain:"ZENIQ",rpc:["https://smart.zeniq.network:9545"],faucets:["https://faucet.zeniq.net/"],nativeCurrency:{name:"Zeniq",symbol:"ZENIQ",decimals:18},infoURL:"https://www.zeniq.dev/",shortName:"zeniq",chainId:383414847825,networkId:383414847825,explorers:[{name:"zeniq-smart-chain-explorer",url:"https://smart.zeniq.net",standard:"EIP3091"}],testnet:!1,slug:"zeniq"},Ytr={name:"PDC Mainnet",chain:"IPDC",rpc:["https://mainnet.ipdc.io/"],faucets:[],nativeCurrency:{name:"PDC",symbol:"PDC",decimals:18},infoURL:"https://ipdc.io",shortName:"ipdc",chainId:666301171999,networkId:666301171999,explorers:[{name:"ipdcscan",url:"https://scan.ipdc.io",standard:"EIP3091"}],testnet:!1,slug:"pdc"},$tr={name:"Molereum Network",chain:"ETH",rpc:["https://molereum.jdubedition.com"],faucets:[],nativeCurrency:{name:"Molereum Ether",symbol:"MOLE",decimals:18},infoURL:"https://github.com/Jdubedition/molereum",shortName:"mole",chainId:6022140761023,networkId:6022140761023,testnet:!1,slug:"molereum-network"},err={name:"Localhost",chain:"ETH",rpc:["http://localhost:8545"],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},icon:{url:"ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/ethereum/512.png",height:512,width:512,format:"png",sizes:[16,32,64,128,256,512]},shortName:"local",chainId:1337,networkId:1337,testnet:!0,slug:"localhost"},trr={mode:"http"};function Fke(r,e){let{thirdwebApiKey:t,alchemyApiKey:n,infuraApiKey:a,mode:i}={...trr,...e},s=r.rpc.filter(E=>!!(E.startsWith("http")&&i==="http"||E.startsWith("ws")&&i==="ws")),c=s.filter(E=>E.includes("${THIRDWEB_API_KEY}")&&t).map(E=>t?E.replace("${THIRDWEB_API_KEY}",t):E),l=s.filter(E=>E.includes("${ALCHEMY_API_KEY}")&&n).map(E=>n?E.replace("${ALCHEMY_API_KEY}",n):E),d=s.filter(E=>E.includes("${INFURA_API_KEY}")&&a).map(E=>a?E.replace("${INFURA_API_KEY}",a):E),f=s.filter(E=>!E.includes("${")),w=[...c,...d,...l,...f];if(w.length===0)throw new Error(`No RPC available for chainId "${r.chainId}" with mode ${i}`);return w}function rrr(r,e){return Fke(r,e)[0]}var Wz=Mjt,Uke=Ijt,Wke=Pjt,jke=Rjt,jz=Njt,zke=Ojt,Hke=Ljt,Vke=Bjt,Gke=qjt,zz=Djt,Zke=Fjt,Jke=Ujt,Kke=Wjt,Qke=jjt,Xke=zjt,Yke=Hjt,$ke=Vjt,eSe=Gjt,tSe=Zjt,rSe=Jjt,nSe=Kjt,aSe=Qjt,iSe=Xjt,sSe=Yjt,oSe=$jt,cSe=ezt,uSe=tzt,lSe=rzt,dSe=nzt,pSe=azt,hSe=izt,fSe=szt,mSe=ozt,ySe=czt,gSe=uzt,vSe=lzt,bSe=dzt,wSe=pzt,xSe=hzt,TSe=fzt,_Se=mzt,CSe=yzt,ESe=gzt,kSe=vzt,SSe=bzt,ASe=wzt,MSe=xzt,ISe=Tzt,PSe=_zt,RSe=Czt,NSe=Ezt,OSe=kzt,LSe=Szt,BSe=Azt,Hz=Mzt,qSe=Izt,DSe=Pzt,FSe=Rzt,USe=Nzt,WSe=Ozt,jSe=Lzt,zSe=Bzt,HSe=qzt,VSe=Dzt,GSe=Fzt,ZSe=Uzt,JSe=Wzt,KSe=jzt,QSe=zzt,XSe=Hzt,YSe=Vzt,$Se=Gzt,eAe=Zzt,tAe=Jzt,rAe=Kzt,nAe=Qzt,aAe=Xzt,iAe=Yzt,sAe=$zt,oAe=eHt,cAe=tHt,uAe=rHt,lAe=nHt,dAe=aHt,pAe=iHt,hAe=sHt,fAe=oHt,mAe=cHt,yAe=uHt,gAe=lHt,vAe=dHt,bAe=pHt,wAe=hHt,Vz=fHt,xAe=mHt,TAe=yHt,_Ae=gHt,CAe=vHt,EAe=bHt,kAe=wHt,SAe=xHt,AAe=THt,MAe=_Ht,IAe=CHt,PAe=EHt,RAe=kHt,NAe=SHt,OAe=AHt,LAe=MHt,BAe=IHt,qAe=PHt,DAe=RHt,FAe=NHt,UAe=OHt,WAe=LHt,jAe=BHt,zAe=qHt,HAe=DHt,VAe=FHt,Gz=UHt,GAe=WHt,ZAe=jHt,JAe=zHt,KAe=HHt,QAe=VHt,XAe=GHt,YAe=ZHt,$Ae=JHt,eMe=KHt,tMe=QHt,rMe=XHt,nMe=YHt,aMe=$Ht,iMe=eVt,sMe=tVt,oMe=rVt,cMe=nVt,uMe=aVt,lMe=iVt,dMe=sVt,pMe=oVt,hMe=cVt,fMe=uVt,mMe=lVt,yMe=dVt,gMe=pVt,Zz=hVt,vMe=fVt,bMe=mVt,wMe=yVt,xMe=gVt,TMe=vVt,_Me=bVt,CMe=wVt,EMe=xVt,kMe=TVt,SMe=_Vt,AMe=CVt,MMe=EVt,IMe=kVt,PMe=SVt,RMe=AVt,NMe=MVt,OMe=IVt,LMe=PVt,BMe=RVt,qMe=NVt,DMe=OVt,FMe=LVt,UMe=BVt,WMe=qVt,jMe=DVt,zMe=FVt,Jz=UVt,HMe=WVt,VMe=jVt,GMe=zVt,ZMe=HVt,JMe=VVt,KMe=GVt,QMe=ZVt,XMe=JVt,YMe=KVt,$Me=QVt,eIe=XVt,tIe=YVt,rIe=$Vt,nIe=eGt,aIe=tGt,iIe=rGt,sIe=nGt,oIe=aGt,cIe=iGt,uIe=sGt,lIe=oGt,dIe=cGt,pIe=uGt,hIe=lGt,fIe=dGt,mIe=pGt,yIe=hGt,gIe=fGt,vIe=mGt,bIe=yGt,wIe=gGt,xIe=vGt,TIe=bGt,_Ie=wGt,CIe=xGt,EIe=TGt,kIe=_Gt,SIe=CGt,AIe=EGt,MIe=kGt,IIe=SGt,PIe=AGt,RIe=MGt,NIe=IGt,OIe=PGt,LIe=RGt,BIe=NGt,qIe=OGt,DIe=LGt,FIe=BGt,UIe=qGt,WIe=DGt,jIe=FGt,zIe=UGt,HIe=WGt,VIe=jGt,GIe=zGt,ZIe=HGt,JIe=VGt,KIe=GGt,QIe=ZGt,XIe=JGt,YIe=KGt,$Ie=QGt,e9e=XGt,t9e=YGt,r9e=$Gt,n9e=eZt,a9e=tZt,i9e=rZt,s9e=nZt,o9e=aZt,c9e=iZt,u9e=sZt,l9e=oZt,d9e=cZt,p9e=uZt,h9e=lZt,f9e=dZt,m9e=pZt,y9e=hZt,g9e=fZt,v9e=mZt,b9e=yZt,w9e=gZt,x9e=vZt,T9e=bZt,_9e=wZt,C9e=xZt,E9e=TZt,k9e=_Zt,S9e=CZt,A9e=EZt,M9e=kZt,I9e=SZt,P9e=AZt,R9e=MZt,N9e=IZt,O9e=PZt,L9e=RZt,B9e=NZt,q9e=OZt,D9e=LZt,F9e=BZt,U9e=qZt,W9e=DZt,j9e=FZt,z9e=UZt,H9e=WZt,V9e=jZt,G9e=zZt,Z9e=HZt,J9e=VZt,K9e=GZt,Q9e=ZZt,X9e=JZt,Y9e=KZt,$9e=QZt,ePe=XZt,tPe=YZt,rPe=$Zt,nPe=eJt,aPe=tJt,iPe=rJt,sPe=nJt,oPe=aJt,cPe=iJt,uPe=sJt,lPe=oJt,dPe=cJt,pPe=uJt,hPe=lJt,fPe=dJt,mPe=pJt,yPe=hJt,gPe=fJt,vPe=mJt,bPe=yJt,wPe=gJt,xPe=vJt,TPe=bJt,_Pe=wJt,CPe=xJt,EPe=TJt,kPe=_Jt,SPe=CJt,APe=EJt,MPe=kJt,IPe=SJt,PPe=AJt,RPe=MJt,NPe=IJt,OPe=PJt,LPe=RJt,BPe=NJt,qPe=OJt,DPe=LJt,FPe=BJt,UPe=qJt,WPe=DJt,jPe=FJt,zPe=UJt,HPe=WJt,VPe=jJt,GPe=zJt,ZPe=HJt,JPe=VJt,KPe=GJt,QPe=ZJt,XPe=JJt,YPe=KJt,$Pe=QJt,e7e=XJt,t7e=YJt,r7e=$Jt,n7e=eKt,a7e=tKt,i7e=rKt,s7e=nKt,o7e=aKt,c7e=iKt,u7e=sKt,l7e=oKt,d7e=cKt,p7e=uKt,h7e=lKt,f7e=dKt,m7e=pKt,y7e=hKt,g7e=fKt,v7e=mKt,b7e=yKt,w7e=gKt,x7e=vKt,T7e=bKt,_7e=wKt,C7e=xKt,E7e=TKt,k7e=_Kt,S7e=CKt,A7e=EKt,M7e=kKt,I7e=SKt,P7e=AKt,R7e=MKt,N7e=IKt,O7e=PKt,L7e=RKt,B7e=NKt,Kz=OKt,q7e=LKt,D7e=BKt,F7e=qKt,U7e=DKt,W7e=FKt,j7e=UKt,z7e=WKt,H7e=jKt,V7e=zKt,G7e=HKt,Z7e=VKt,J7e=GKt,K7e=ZKt,Q7e=JKt,X7e=KKt,Y7e=QKt,$7e=XKt,eRe=YKt,tRe=$Kt,rRe=eQt,nRe=tQt,aRe=rQt,iRe=nQt,sRe=aQt,oRe=iQt,cRe=sQt,uRe=oQt,lRe=cQt,dRe=uQt,pRe=lQt,hRe=dQt,fRe=pQt,mRe=hQt,yRe=fQt,gRe=mQt,vRe=yQt,bRe=gQt,wRe=vQt,xRe=bQt,TRe=wQt,_Re=xQt,CRe=TQt,ERe=_Qt,kRe=CQt,SRe=EQt,ARe=kQt,MRe=SQt,IRe=AQt,PRe=MQt,RRe=IQt,NRe=PQt,ORe=RQt,LRe=NQt,BRe=OQt,qRe=LQt,DRe=BQt,FRe=qQt,URe=DQt,WRe=FQt,jRe=UQt,zRe=WQt,HRe=jQt,VRe=zQt,GRe=HQt,ZRe=VQt,JRe=GQt,KRe=ZQt,QRe=JQt,XRe=KQt,YRe=QQt,$Re=XQt,eNe=YQt,tNe=$Qt,rNe=eXt,nNe=tXt,aNe=rXt,iNe=nXt,sNe=aXt,oNe=iXt,cNe=sXt,uNe=oXt,lNe=cXt,dNe=uXt,pNe=lXt,hNe=dXt,fNe=pXt,mNe=hXt,yNe=fXt,gNe=mXt,vNe=yXt,bNe=gXt,wNe=vXt,xNe=bXt,TNe=wXt,_Ne=xXt,CNe=TXt,ENe=_Xt,kNe=CXt,SNe=EXt,ANe=kXt,MNe=SXt,INe=AXt,PNe=MXt,RNe=IXt,NNe=PXt,ONe=RXt,LNe=NXt,BNe=OXt,qNe=LXt,DNe=BXt,FNe=qXt,UNe=DXt,WNe=FXt,jNe=UXt,zNe=WXt,HNe=jXt,VNe=zXt,GNe=HXt,ZNe=VXt,JNe=GXt,KNe=ZXt,QNe=JXt,XNe=KXt,YNe=QXt,$Ne=XXt,eOe=YXt,tOe=$Xt,rOe=eYt,nOe=tYt,aOe=rYt,iOe=nYt,sOe=aYt,oOe=iYt,cOe=sYt,uOe=oYt,lOe=cYt,dOe=uYt,pOe=lYt,hOe=dYt,fOe=pYt,mOe=hYt,yOe=fYt,gOe=mYt,vOe=yYt,Qz=gYt,bOe=vYt,wOe=bYt,xOe=wYt,TOe=xYt,_Oe=TYt,Xz=_Yt,Yz=CYt,COe=EYt,EOe=kYt,kOe=SYt,SOe=AYt,AOe=MYt,MOe=IYt,IOe=PYt,POe=RYt,ROe=NYt,NOe=OYt,OOe=LYt,LOe=BYt,BOe=qYt,qOe=DYt,DOe=FYt,FOe=UYt,UOe=WYt,WOe=jYt,jOe=zYt,zOe=HYt,HOe=VYt,VOe=GYt,GOe=ZYt,ZOe=JYt,JOe=KYt,KOe=QYt,QOe=XYt,XOe=YYt,YOe=$Yt,$Oe=e$t,eLe=t$t,tLe=r$t,rLe=n$t,nLe=a$t,aLe=i$t,iLe=s$t,sLe=o$t,oLe=c$t,cLe=u$t,uLe=l$t,lLe=d$t,dLe=p$t,$z=h$t,pLe=f$t,hLe=m$t,fLe=y$t,mLe=g$t,yLe=v$t,gLe=b$t,vLe=w$t,bLe=x$t,wLe=T$t,xLe=_$t,TLe=C$t,_Le=E$t,CLe=k$t,ELe=S$t,kLe=A$t,SLe=M$t,ALe=I$t,MLe=P$t,ILe=R$t,PLe=N$t,RLe=O$t,NLe=L$t,OLe=B$t,LLe=q$t,BLe=D$t,qLe=F$t,DLe=U$t,FLe=W$t,ULe=j$t,WLe=z$t,jLe=H$t,zLe=V$t,HLe=G$t,VLe=Z$t,GLe=J$t,ZLe=K$t,JLe=Q$t,KLe=X$t,QLe=Y$t,XLe=$$t,YLe=eer,$Le=ter,eBe=rer,tBe=ner,rBe=aer,nBe=ier,aBe=ser,iBe=oer,sBe=cer,oBe=uer,cBe=ler,uBe=der,lBe=per,dBe=her,eH=fer,pBe=mer,hBe=yer,fBe=ger,mBe=ver,yBe=ber,gBe=wer,vBe=xer,bBe=Ter,wBe=_er,xBe=Cer,TBe=Eer,_Be=ker,CBe=Ser,EBe=Aer,kBe=Mer,SBe=Ier,ABe=Per,MBe=Rer,IBe=Ner,PBe=Oer,RBe=Ler,NBe=Ber,OBe=qer,LBe=Der,BBe=Fer,qBe=Uer,DBe=Wer,FBe=jer,UBe=zer,WBe=Her,jBe=Ver,zBe=Ger,HBe=Zer,VBe=Jer,GBe=Ker,ZBe=Qer,JBe=Xer,KBe=Yer,QBe=$er,XBe=etr,YBe=ttr,$Be=rtr,eqe=ntr,tqe=atr,rqe=itr,nqe=str,aqe=otr,iqe=ctr,sqe=utr,oqe=ltr,cqe=dtr,uqe=ptr,lqe=htr,dqe=ftr,pqe=mtr,hqe=ytr,fqe=gtr,mqe=vtr,yqe=btr,gqe=wtr,vqe=xtr,bqe=Ttr,wqe=_tr,xqe=Ctr,Tqe=Etr,_qe=ktr,Cqe=Str,Eqe=Atr,kqe=Mtr,Sqe=Itr,Aqe=Ptr,Mqe=Rtr,Iqe=Ntr,Pqe=Otr,Rqe=Ltr,Nqe=Btr,Oqe=qtr,Lqe=Dtr,Bqe=Ftr,qqe=Utr,Dqe=Wtr,Fqe=jtr,Uqe=ztr,Wqe=Htr,jqe=Vtr,zqe=Gtr,Hqe=Ztr,Vqe=Jtr,Gqe=Ktr,Zqe=Qtr,Jqe=Xtr,Kqe=Ytr,Qqe=$tr,tH=err,nrr=[Wz,jz,Gz,$z,Qz,eH,zz,Jz,Hz,Vz,Zz,Kz,Yz,Xz,tH],arr=[Wz,Uke,Wke,jke,jz,zke,Hke,Vke,Gke,zz,Zke,Jke,Kke,Qke,Xke,Yke,$ke,eSe,tSe,rSe,nSe,aSe,iSe,sSe,oSe,cSe,uSe,lSe,dSe,pSe,hSe,fSe,mSe,ySe,gSe,vSe,bSe,wSe,xSe,TSe,_Se,CSe,ESe,kSe,SSe,ASe,MSe,ISe,PSe,RSe,NSe,OSe,LSe,BSe,Hz,qSe,DSe,FSe,USe,WSe,jSe,zSe,HSe,VSe,GSe,ZSe,JSe,KSe,QSe,XSe,YSe,$Se,eAe,tAe,rAe,nAe,aAe,iAe,sAe,oAe,cAe,uAe,lAe,dAe,pAe,hAe,fAe,mAe,yAe,gAe,vAe,bAe,wAe,Vz,xAe,TAe,_Ae,CAe,EAe,kAe,SAe,AAe,MAe,IAe,PAe,RAe,NAe,OAe,LAe,BAe,qAe,DAe,FAe,UAe,WAe,jAe,zAe,HAe,VAe,Gz,GAe,ZAe,JAe,KAe,QAe,XAe,YAe,$Ae,eMe,tMe,rMe,nMe,aMe,iMe,sMe,oMe,cMe,uMe,lMe,dMe,pMe,hMe,fMe,mMe,yMe,gMe,Zz,vMe,bMe,wMe,xMe,TMe,_Me,CMe,EMe,kMe,SMe,AMe,MMe,IMe,PMe,RMe,NMe,OMe,LMe,BMe,qMe,DMe,FMe,UMe,WMe,jMe,zMe,Jz,HMe,VMe,GMe,ZMe,JMe,KMe,QMe,XMe,YMe,$Me,eIe,tIe,rIe,nIe,aIe,iIe,sIe,oIe,cIe,uIe,lIe,dIe,pIe,hIe,fIe,mIe,yIe,gIe,vIe,bIe,wIe,xIe,TIe,_Ie,CIe,EIe,kIe,SIe,AIe,MIe,IIe,PIe,RIe,NIe,OIe,LIe,BIe,qIe,DIe,FIe,UIe,WIe,jIe,zIe,HIe,VIe,GIe,ZIe,JIe,KIe,QIe,XIe,YIe,$Ie,e9e,t9e,r9e,n9e,a9e,i9e,s9e,o9e,c9e,u9e,l9e,d9e,p9e,h9e,f9e,m9e,y9e,g9e,v9e,b9e,w9e,x9e,T9e,_9e,C9e,E9e,k9e,S9e,A9e,M9e,I9e,P9e,R9e,N9e,O9e,L9e,B9e,q9e,D9e,F9e,U9e,W9e,j9e,z9e,H9e,V9e,G9e,Z9e,J9e,K9e,Q9e,X9e,Y9e,$9e,ePe,tPe,rPe,nPe,aPe,iPe,sPe,oPe,cPe,uPe,lPe,dPe,pPe,hPe,fPe,mPe,yPe,gPe,vPe,bPe,wPe,xPe,TPe,_Pe,CPe,EPe,kPe,SPe,APe,MPe,IPe,PPe,RPe,NPe,OPe,LPe,BPe,qPe,DPe,FPe,UPe,WPe,jPe,zPe,HPe,VPe,GPe,ZPe,JPe,KPe,QPe,XPe,YPe,$Pe,e7e,t7e,r7e,n7e,a7e,i7e,s7e,o7e,c7e,u7e,l7e,d7e,p7e,h7e,f7e,m7e,y7e,g7e,v7e,b7e,w7e,x7e,T7e,_7e,C7e,E7e,k7e,S7e,A7e,M7e,I7e,P7e,R7e,N7e,O7e,L7e,B7e,Kz,q7e,D7e,F7e,U7e,W7e,j7e,z7e,H7e,V7e,G7e,Z7e,J7e,K7e,Q7e,X7e,Y7e,$7e,eRe,tRe,rRe,nRe,aRe,iRe,sRe,oRe,cRe,uRe,lRe,dRe,pRe,hRe,fRe,mRe,yRe,gRe,vRe,bRe,wRe,xRe,TRe,_Re,CRe,ERe,kRe,SRe,ARe,MRe,IRe,PRe,RRe,NRe,ORe,LRe,BRe,qRe,DRe,FRe,URe,WRe,jRe,zRe,HRe,VRe,GRe,ZRe,JRe,KRe,QRe,XRe,YRe,$Re,eNe,tNe,rNe,nNe,aNe,iNe,sNe,oNe,cNe,uNe,lNe,dNe,pNe,hNe,fNe,mNe,yNe,gNe,vNe,bNe,wNe,xNe,TNe,_Ne,CNe,ENe,kNe,SNe,ANe,MNe,INe,PNe,RNe,NNe,ONe,LNe,BNe,qNe,DNe,FNe,UNe,WNe,jNe,zNe,HNe,VNe,GNe,ZNe,JNe,KNe,QNe,XNe,YNe,$Ne,eOe,tOe,rOe,nOe,aOe,iOe,sOe,oOe,cOe,uOe,lOe,dOe,pOe,hOe,fOe,mOe,yOe,gOe,vOe,Qz,bOe,wOe,xOe,TOe,_Oe,Xz,Yz,COe,EOe,kOe,SOe,AOe,MOe,IOe,POe,ROe,NOe,OOe,LOe,BOe,qOe,DOe,FOe,UOe,WOe,jOe,zOe,HOe,VOe,GOe,ZOe,JOe,KOe,QOe,XOe,YOe,$Oe,eLe,tLe,rLe,nLe,aLe,iLe,sLe,oLe,cLe,uLe,lLe,dLe,$z,pLe,hLe,fLe,mLe,yLe,gLe,vLe,bLe,wLe,xLe,TLe,_Le,CLe,ELe,kLe,SLe,ALe,MLe,ILe,PLe,RLe,NLe,OLe,LLe,BLe,qLe,DLe,FLe,ULe,WLe,jLe,zLe,HLe,VLe,GLe,ZLe,JLe,KLe,QLe,XLe,YLe,$Le,eBe,tBe,rBe,nBe,aBe,iBe,sBe,oBe,cBe,uBe,lBe,dBe,eH,pBe,hBe,fBe,mBe,yBe,gBe,vBe,bBe,wBe,xBe,TBe,_Be,CBe,EBe,kBe,SBe,ABe,MBe,IBe,PBe,RBe,NBe,OBe,LBe,BBe,qBe,DBe,FBe,UBe,WBe,jBe,zBe,HBe,VBe,GBe,ZBe,JBe,KBe,QBe,XBe,YBe,$Be,eqe,tqe,rqe,nqe,aqe,iqe,sqe,oqe,cqe,uqe,lqe,dqe,pqe,hqe,fqe,mqe,yqe,gqe,vqe,bqe,wqe,xqe,Tqe,_qe,Cqe,Eqe,kqe,Sqe,Aqe,Mqe,Iqe,Pqe,Rqe,Nqe,Oqe,Lqe,Bqe,qqe,Dqe,Fqe,Uqe,Wqe,jqe,zqe,Hqe,Vqe,Gqe,Zqe,Jqe,Kqe,Qqe,tH];F.AcalaMandalaTestnet=sIe;F.AcalaNetwork=_Ie;F.AcalaNetworkTestnet=cIe;F.AerochainTestnet=CIe;F.AiozNetwork=eMe;F.AiozNetworkTestnet=U7e;F.Aitd=K9e;F.AitdTestnet=Q9e;F.Akroma=zLe;F.Alaya=HLe;F.AlayaDevTestnet=VLe;F.AlphNetwork=qRe;F.Altcoinchain=n7e;F.Alyx=J9e;F.AlyxChainTestnet=VAe;F.AmbrosChain=LIe;F.AmeChain=nMe;F.Amstar=Y9e;F.Anduschain=$Be;F.AnytypeEvmChain=cPe;F.Aquachain=pqe;F.ArbitrumGoerli=eH;F.ArbitrumNova=bOe;F.ArbitrumOnXdai=uMe;F.ArbitrumOne=Qz;F.ArbitrumRinkeby=dBe;F.ArmoniaEvaChain=KAe;F.ArmoniaEvaChainTestnet=QAe;F.ArtisSigma1=YLe;F.ArtisTestnetTau1=$Le;F.Astar=iIe;F.Astra=vNe;F.AstraTestnet=wNe;F.Atelier=wPe;F.Atheios=iPe;F.Athereum=_Oe;F.AtoshiTestnet=$Ae;F.Aurora=kqe;F.AuroraBetanet=Aqe;F.AuroraTestnet=Sqe;F.AutobahnNetwork=SOe;F.AutonityBakerlooThamesTestnet=hqe;F.AutonityPiccadillyThamesTestnet=fqe;F.AuxiliumNetwork=oqe;F.AvalancheCChain=Yz;F.AvalancheFujiTestnet=Xz;F.Aves=dOe;F.BeagleMessagingChain=nPe;F.BearNetworkChain=TBe;F.BearNetworkChainTestnet=CBe;F.BeoneChainTestnet=MRe;F.BeresheetTestnet=BPe;F.Berylbit=XRe;F.BeverlyHills=fLe;F.Bifrost=v7e;F.BifrostTestnet=POe;F.BinanceSmartChain=Hz;F.BinanceSmartChainTestnet=Vz;F.BitcoinEvm=XPe;F.Bitgert=uOe;F.Bitindi=F7e;F.BitindiTestnet=D7e;F.BitkubChainTestnet=$Ne;F.Bittex=I7e;F.BittorrentChain=cMe;F.BittorrentChainTestnet=p9e;F.Bityuan=f7e;F.BlockchainGenesis=lNe;F.BlockchainStation=yIe;F.BlockchainStationTestnet=gIe;F.BlocktonBlockchain=PRe;F.Bloxberg=JRe;F.Bmc=iMe;F.BmcTestnet=sMe;F.BobaAvax=COe;F.BobaBnb=UOe;F.BobaBnbTestnet=nNe;F.BobaNetwork=_Me;F.BobaNetworkGoerliTestnet=h7e;F.BobaNetworkRinkebyTestnet=lSe;F.BobabaseTestnet=G9e;F.Bobabeam=V9e;F.BobafujiTestnet=j7e;F.Bobaopera=EMe;F.BobaoperaTestnet=q7e;F.BombChain=r7e;F.BombChainTestnet=a7e;F.BonNetwork=gPe;F.Bosagora=ZPe;F.Brochain=MLe;F.Bronos=y9e;F.BronosTestnet=m9e;F.Btachain=sPe;F.BtcixNetwork=UNe;F.Callisto=MIe;F.CallistoTestnet=WNe;F.CalypsoNftHubSkale=Iqe;F.CalypsoNftHubSkaleTestnet=xqe;F.CaminoCChain=ZMe;F.Candle=tIe;F.Canto=vRe;F.CatecoinChain=aPe;F.Celo=wOe;F.CeloAlfajoresTestnet=kOe;F.CeloBaklavaTestnet=ZOe;F.CennznetAzalea=zNe;F.CennznetNikau=y7e;F.CennznetRata=m7e;F.ChainVerse=rRe;F.Cheapeth=TIe;F.ChiadoTestnet=dNe;F.ChilizScovilleTestnet=pLe;F.CicChain=X9e;F.CicChainTestnet=F9e;F.Cloudtx=iOe;F.CloudtxTestnet=sOe;F.Cloudwalk=IPe;F.CloudwalkTestnet=MPe;F.CloverTestnet=l9e;F.ClvParachain=d9e;F.Cmp=tBe;F.CmpTestnet=gBe;F.CoinexSmartChain=NSe;F.CoinexSmartChainTestnet=OSe;F.ColumbusTestNetwork=JMe;F.CondorTestNetwork=ULe;F.Condrieu=YOe;F.ConfluxEspace=h9e;F.ConfluxEspaceTestnet=XSe;F.ConstaTestnet=UMe;F.CoreBlockchain=T9e;F.CoreBlockchainTestnet=x9e;F.CreditSmartchain=MNe;F.CronosBeta=oSe;F.CronosTestnet=OMe;F.Crossbell=R7e;F.CryptoEmergency=oMe;F.Cryptocoinpay=mNe;F.CryptokylinTestnet=bAe;F.Crystaleum=ALe;F.CtexScanBlockchain=ePe;F.CubeChain=hPe;F.CubeChainTestnet=fPe;F.DChain=bPe;F.DarwiniaCrabNetwork=kSe;F.DarwiniaNetwork=ASe;F.DarwiniaPangolinTestnet=ESe;F.DarwiniaPangoroTestnet=SSe;F.Datahopper=Uqe;F.DaxChain=ZAe;F.DbchainTestnet=ZSe;F.Debank=LAe;F.DebankTestnet=OAe;F.DebounceSubnetTestnet=w7e;F.DecentralizedWeb=UAe;F.DecimalSmartChain=tAe;F.DecimalSmartChainTestnet=ZLe;F.DefichainEvmNetwork=C9e;F.DefichainEvmNetworkTestnet=E9e;F.Dehvo=RAe;F.DexalotSubnet=fBe;F.DexalotSubnetTestnet=hBe;F.DexitNetwork=OIe;F.DfkChain=BOe;F.DfkChainTest=RMe;F.DiodePrenet=Xke;F.DiodeTestnetStaging=Kke;F.DithereumTestnet=ySe;F.Dogcoin=_9e;F.DogcoinTestnet=$Re;F.Dogechain=kPe;F.DogechainTestnet=aIe;F.DokenSuperChain=GOe;F.DosFujiSubnet=Z9e;F.DoubleAChain=KMe;F.DoubleAChainTestnet=QMe;F.DracNetwork=N7e;F.Dxchain=vSe;F.DxchainTestnet=YSe;F.Dyno=O7e;F.DynoTestnet=L7e;F.Ecoball=zPe;F.EcoballTestnetEspuma=HPe;F.Ecredits=KOe;F.EcreditsTestnet=QOe;F.EdexaTestnet=EPe;F.Edgeware=LPe;F.Ekta=CPe;F.ElaDidSidechain=aSe;F.ElaDidSidechainTestnet=iSe;F.ElastosSmartChain=rSe;F.ElastosSmartChainTestnet=nSe;F.EllaTheHeart=mRe;F.Ellaism=HSe;F.EluvioContentFabric=NBe;F.EmpireNetwork=P7e;F.EnduranceSmartChain=pIe;F.Energi=mOe;F.EnergiTestnet=ROe;F.EnergyWebChain=yMe;F.EnergyWebVoltaTestnet=sLe;F.EnnothemProterozoic=MSe;F.EnnothemTestnetPioneer=ISe;F.Enterchain=N9e;F.Enuls=BAe;F.EnulsTestnet=qAe;F.Eos=FSe;F.Eraswap=X7e;F.Ethereum=Wz;F.EthereumClassic=WSe;F.EthereumClassicTestnetKotti=zke;F.EthereumClassicTestnetMorden=jSe;F.EthereumClassicTestnetMordor=zSe;F.EthereumFair=vBe;F.Ethergem=_Pe;F.Etherinc=_Ae;F.EtherliteChain=PAe;F.EthersocialNetwork=aOe;F.EthoProtocol=OBe;F.Etica=VOe;F.EtndChainS=FLe;F.EuropaSkaleChain=Wqe;F.Eurus=s9e;F.EurusTestnet=TPe;F.Evanesco=YPe;F.EvanescoTestnet=I9e;F.Evmos=QRe;F.EvmosTestnet=KRe;F.EvriceNetwork=o9e;F.Excelon=aqe;F.ExcoincialChain=sqe;F.ExcoincialChainVoltaTestnet=iqe;F.ExosamaNetwork=VPe;F.ExpanseNetwork=Uke;F.ExzoNetwork=O9e;F.EzchainCChain=d7e;F.EzchainCChainTestnet=p7e;F.FXCoreNetwork=eIe;F.Factory127=zAe;F.FantasiaChain=NIe;F.FantomOpera=Zz;F.FantomTestnet=Kz;F.FastexChainTestnet=pBe;F.Filecoin=SMe;F.FilecoinButterflyTestnet=WBe;F.FilecoinCalibrationTestnet=aBe;F.FilecoinHyperspaceTestnet=b7e;F.FilecoinLocalTestnet=uqe;F.FilecoinWallabyTestnet=cOe;F.Findora=JPe;F.FindoraForge=QPe;F.FindoraTestnet=KPe;F.Firechain=$Me;F.FirenzeTestNetwork=lLe;F.Flachain=cqe;F.Flare=Qke;F.FlareTestnetCoston=Yke;F.FlareTestnetCoston2=NAe;F.Floripa=IOe;F.Fncy=$Se;F.FncyTestnet=RBe;F.FreightTrustNetwork=dMe;F.Frenchain=EOe;F.FrenchainTestnet=VMe;F.FrontierOfDreamsTestnet=qNe;F.Fuse=DAe;F.FuseSparknet=FAe;F.Fusion=lOe;F.FusionTestnet=AOe;F.Ganache=aRe;F.GarizonStage0=mAe;F.GarizonStage1=yAe;F.GarizonStage2=gAe;F.GarizonStage3=vAe;F.GarizonTestnetStage0=qIe;F.GarizonTestnetStage1=DIe;F.GarizonTestnetStage2=FIe;F.GarizonTestnetStage3=UIe;F.Gatechain=dAe;F.GatechainTestnet=lAe;F.GatherDevnetNetwork=_qe;F.GatherNetwork=yqe;F.GatherTestnetNetwork=Tqe;F.GearZeroNetwork=XMe;F.GearZeroNetworkTestnet=rBe;F.Genechain=sAe;F.GenesisCoin=YRe;F.GenesisL1=dSe;F.GenesisL1Testnet=cSe;F.GiantMammoth=ZRe;F.GitshockCartenzTestnet=yPe;F.Gnosis=TAe;F.Gochain=USe;F.GochainTestnet=oOe;F.Godwoken=iLe;F.GodwokenTestnetV1=aLe;F.Goerli=jz;F.GoldSmartChain=lRe;F.GoldSmartChainTestnet=dLe;F.GonChain=cNe;F.Gooddata=mSe;F.GooddataTestnet=fSe;F.Gton=r9e;F.GtonTestnet=OOe;F.Haic=kIe;F.Halo=U9e;F.HammerChain=YNe;F.HaqqChainTestnet=qOe;F.HaqqNetwork=xNe;F.HaradevTestnet=Zqe;F.HarmonyDevnetShard0=Fqe;F.HarmonyShard0=Pqe;F.HarmonyShard1=Rqe;F.HarmonyShard2=Nqe;F.HarmonyShard3=Oqe;F.HarmonyTestnetShard0=Lqe;F.HarmonyTestnetShard1=Bqe;F.HarmonyTestnetShard2=qqe;F.HarmonyTestnetShard3=Dqe;F.HaymoTestnet=XLe;F.HazlorTestnet=wRe;F.HertzNetwork=eOe;F.HighPerformanceBlockchain=xMe;F.HomeVerse=FNe;F.HooSmartChain=QSe;F.HooSmartChainTestnet=tMe;F.Htmlcoin=z7e;F.Humanode=Y7e;F.HuobiEcoChain=HAe;F.HuobiEcoChainTestnet=vMe;F.HyperonchainTestnet=jMe;F.Idchain=eAe;F.Imversed=jBe;F.ImversedTestnet=zBe;F.Iolite=tqe;F.IoraChain=M9e;F.IotexNetwork=H7e;F.IotexNetworkTestnet=V7e;F.IposNetwork=Eqe;F.IvarChain=hLe;F.IvarChainTestnet=BNe;F.J2oTaro=pOe;F.Jellie=JLe;F.JfinChain=k7e;F.JibchainL1=GRe;F.JoysDigital=lqe;F.JoysDigitalTestnet=mqe;F.KaibaLightningChainTestnet=EAe;F.Kardiachain=sSe;F.KaruraNetwork=fIe;F.KaruraNetworkTestnet=oIe;F.KavaEvm=e7e;F.KavaEvmTestnet=$Pe;F.Kcc=AMe;F.KccTestnet=MMe;F.Kekchain=uBe;F.KekchainKektest=lBe;F.Kerleano=dPe;F.Kiln=qBe;F.Kintsugi=BBe;F.KlaytnCypress=IRe;F.KlaytnTestnetBaobab=n9e;F.Kortho=o7e;F.Korthotest=RRe;F.Kovan=CSe;F.Lachain=fMe;F.LachainTestnet=mMe;F.LambdaTestnet=mLe;F.LatamBlockchainResilTestnet=rMe;F.Lightstreams=YAe;F.LightstreamsTestnet=XAe;F.Lisinski=WMe;F.LiveplexOracleevm=NOe;F.Localhost=tH;F.LucidBlockchain=EIe;F.LuckyNetwork=e9e;F.Ludan=oPe;F.LycanChain=vIe;F.Maistestsubnet=dqe;F.Mammoth=VRe;F.Mantle=J7e;F.MantleTestnet=K7e;F.Map=GNe;F.MapMakalu=pMe;F.Mas=QLe;F.Mathchain=k9e;F.MathchainTestnet=S9e;F.MdglTestnet=_Re;F.MemoSmartChain=YIe;F.MeshnyanTestnet=lIe;F.Metacodechain=M7e;F.Metadium=Zke;F.MetadiumTestnet=Jke;F.Metadot=ONe;F.MetadotTestnet=LNe;F.MetalCChain=oBe;F.MetalTahoeCChain=cBe;F.Metaplayerone=GPe;F.Meter=cAe;F.MeterTestnet=uAe;F.MetisAndromeda=g9e;F.MetisGoerliTestnet=uIe;F.MilkomedaA1=APe;F.MilkomedaA1Testnet=jLe;F.MilkomedaC1=SPe;F.MilkomedaC1Testnet=WLe;F.MintmeComCoin=XNe;F.Mix=rAe;F.MixinVirtualMachine=oLe;F.Moac=v9e;F.MoacTestnet=lMe;F.MolereumNetwork=Qqe;F.MoonbaseAlpha=z9e;F.Moonbeam=W9e;F.Moonriver=j9e;F.Moonrock=H9e;F.Multivac=JOe;F.Mumbai=$z;F.MunodeTestnet=GIe;F.Musicoin=ZBe;F.MyownTestnet=iNe;F.MythicalChain=GLe;F.Nahmii=eRe;F.NahmiiTestnet=tRe;F.Nebula=Mqe;F.NebulaStaging=Cqe;F.NebulaTestnet=AAe;F.NeonEvm=vqe;F.NeonEvmDevnet=gqe;F.NeonEvmTestnet=bqe;F.NepalBlockchainNetwork=QIe;F.Newton=c9e;F.NewtonTestnet=i9e;F.NextSmartChain=wAe;F.NovaNetwork=pAe;F.Ntity=Gqe;F.Numbers=hNe;F.NumbersTestnet=fNe;F.OasisEmerald=TOe;F.OasisEmeraldTestnet=xOe;F.OasisSapphire=JNe;F.OasisSapphireTestnet=KNe;F.Oasischain=tOe;F.Oasys=gMe;F.Octaspace=EBe;F.Oho=yOe;F.OkexchainTestnet=VSe;F.Okxchain=GSe;F.OmPlatform=D9e;F.Omax=kMe;F.Omchain=HNe;F.Oneledger=wqe;F.OneledgerTestnetFrankenstein=zqe;F.Ontology=DSe;F.OntologyTestnet=iRe;F.OnusChain=xPe;F.OnusChainTestnet=vPe;F.Oort=ZIe;F.OortAscraeus=KIe;F.OortDev=rNe;F.OortHuygens=JIe;F.OpalTestnetByUnique=WRe;F.Openchain=yBe;F.OpenchainTestnet=xIe;F.Openpiece=LSe;F.OpenpieceTestnet=GAe;F.Openvessel=VBe;F.OpsideTestnet=ZNe;F.Optimism=zz;F.OptimismBedrockGoerliAlphaTestnet=rOe;F.OptimismGoerliTestnet=Jz;F.OptimismKovan=KSe;F.OptimismOnGnosis=CMe;F.OpulentXBeta=gOe;F.OrigintrailParachain=FPe;F.OrlandoChain=g7e;F.Oychain=jAe;F.OychainTestnet=WAe;F.P12Chain=jNe;F.Palm=Vqe;F.PalmTestnet=Hqe;F.Pandoproject=S7e;F.PandoprojectTestnet=A7e;F.ParibuNet=C7e;F.ParibuNetTestnet=E7e;F.Pdc=Kqe;F.Pegglecoin=vOe;F.PepchainChurchill=YBe;F.PhiNetworkV1=W7e;F.PhiNetworkV2=JAe;F.Phoenix=INe;F.PieceTestnet=nOe;F.Pirl=jqe;F.PixieChain=uRe;F.PixieChainTestnet=hIe;F.Planq=yRe;F.Platon=KLe;F.PlatonDevTestnet2=UBe;F.PlianMain=FBe;F.PlianSubchain1=JBe;F.PlianTestnetMain=eqe;F.PlianTestnetSubchain1=KBe;F.PoaNetworkCore=xAe;F.PoaNetworkSokol=nAe;F.Pocrnet=u7e;F.Polis=sBe;F.PolisTestnet=iBe;F.Polygon=Gz;F.PolygonZkevmTestnet=$9e;F.PolyjuiceTestnet=nLe;F.Polysmartchain=pRe;F.Popcateum=R9e;F.PortalFantasyChain=WIe;F.PortalFantasyChainTest=SIe;F.PosichainDevnetShard0=IBe;F.PosichainDevnetShard1=PBe;F.PosichainShard0=ABe;F.PosichainTestnetShard0=MBe;F.Primuschain=aAe;F.ProofOfMemes=DNe;F.ProtonTestnet=IAe;F.ProxyNetworkTestnet=f9e;F.Publicmint=OPe;F.PublicmintDevnet=RPe;F.PublicmintTestnet=NPe;F.Pulsechain=FMe;F.PulsechainTestnet=zIe;F.PulsechainTestnetV2b=HIe;F.PulsechainTestnetV3=VIe;F.Q=hOe;F.QTestnet=fOe;F.Qeasyweb3Testnet=tNe;F.Qitmeer=AIe;F.QitmeerNetworkTestnet=ARe;F.Ql1=wIe;F.Ql1Testnet=GBe;F.QuadransBlockchain=yNe;F.QuadransBlockchainTestnet=gNe;F.Quarkblockchain=nqe;F.QuarkchainDevnetRoot=ILe;F.QuarkchainDevnetShard0=PLe;F.QuarkchainDevnetShard1=RLe;F.QuarkchainDevnetShard2=NLe;F.QuarkchainDevnetShard3=OLe;F.QuarkchainDevnetShard4=LLe;F.QuarkchainDevnetShard5=BLe;F.QuarkchainDevnetShard6=qLe;F.QuarkchainDevnetShard7=DLe;F.QuarkchainRoot=vLe;F.QuarkchainShard0=bLe;F.QuarkchainShard1=wLe;F.QuarkchainShard2=xLe;F.QuarkchainShard3=TLe;F.QuarkchainShard4=_Le;F.QuarkchainShard5=CLe;F.QuarkchainShard6=ELe;F.QuarkchainShard7=kLe;F.QuartzByUnique=URe;F.Quokkacoin=jPe;F.RabbitAnalogTestnetChain=pPe;F.RangersProtocol=DPe;F.RangersProtocolTestnetRobin=eNe;F.RedlightChain=l7e;F.ReiChain=DOe;F.ReiChainTestnet=FOe;F.ReiNetwork=MOe;F.Resincoin=cLe;F.RiniaTestnet=jIe;F.Rinkeby=jke;F.RiseOfTheWarbotsTestnet=bRe;F.Ropsten=Wke;F.Rsk=pSe;F.RskTestnet=hSe;F.Rupaya=GMe;F.Saakuru=HBe;F.SaakuruTestnet=eBe;F.Sakura=u9e;F.SanrChain=CNe;F.SapphireByUnique=jRe;F.Sardis=LOe;F.SardisTestnet=_Ne;F.Scroll=bBe;F.ScrollAlphaTestnet=wBe;F.ScrollPreAlphaTestnet=xBe;F.SeedcoinNetwork=bSe;F.Seele=aMe;F.Sepolia=XBe;F.Setheum=bMe;F.ShardeumLiberty1X=CRe;F.ShardeumLiberty2X=ERe;F.ShardeumSphinx1X=kRe;F.Sherpax=tPe;F.SherpaxTestnet=rPe;F.Shibachain=uSe;F.Shiden=NMe;F.Shyft=gRe;F.ShyftTestnet=TNe;F.SingularityZero=kNe;F.SingularityZeroTestnet=ENe;F.Siriusnet=XOe;F.SiriusnetV2=hMe;F.Sjatsh=uNe;F.SmartBitcoinCash=sNe;F.SmartBitcoinCashTestnet=oNe;F.SmartHostTeknolojiTestnet=A9e;F.Smartmesh=rqe;F.SocialSmartChain=nBe;F.SongbirdCanaryNetwork=tSe;F.Soterone=JSe;F.Soverun=QBe;F.SoverunTestnet=SLe;F.Sps=ANe;F.SpsTestnet=RNe;F.StarSocialTestnet=mIe;F.StepNetwork=q9e;F.StepTestnet=SNe;F.Stratos=WPe;F.StratosTestnet=UPe;F.StreamuxBlockchain=SRe;F.SurBlockchainNetwork=wMe;F.Susono=PNe;F.SxNetwork=zMe;F.SxNetworkTestnet=dIe;F.Syscoin=qSe;F.SyscoinTanenbaumTestnet=nRe;F.TEkta=a9e;F.TaoNetwork=nIe;F.Taraxa=IIe;F.TaraxaTestnet=PIe;F.Taycan=VNe;F.TaycanTestnet=qPe;F.Tbsi=uPe;F.TbsiTestnet=lPe;F.TbwgChain=gSe;F.TcgVerse=i7e;F.Techpay=c7e;F.Teleport=xRe;F.TeleportTestnet=TRe;F.TelosEvm=TSe;F.TelosEvmTestnet=_Se;F.Teslafunds=mPe;F.Thaichain=Hke;F.Thaichain20Thaifi=$ke;F.Theta=LMe;F.ThetaAmberTestnet=qMe;F.ThetaSapphireTestnet=BMe;F.ThetaTestnet=DMe;F.ThinkiumChain0=$Oe;F.ThinkiumChain1=eLe;F.ThinkiumChain103=rLe;F.ThinkiumChain2=tLe;F.ThinkiumTestnetChain0=WOe;F.ThinkiumTestnetChain1=jOe;F.ThinkiumTestnetChain103=HOe;F.ThinkiumTestnetChain2=zOe;F.Thundercore=MAe;F.ThundercoreTestnet=eSe;F.TlchainNetwork=Q7e;F.TmyChain=DRe;F.TokiNetwork=NRe;F.TokiTestnet=ORe;F.TombChain=dRe;F.Tomochain=hAe;F.TomochainTestnet=fAe;F.ToolGlobal=LRe;F.ToolGlobalTestnet=BRe;F.Top=$Ie;F.TopEvm=XIe;F.Tres=cRe;F.TresTestnet=oRe;F.TrustEvmTestnet=NNe;F.UbSmartChain=gLe;F.UbSmartChainTestnet=yLe;F.Ubiq=Vke;F.UbiqNetworkTestnet=Gke;F.Ultron=B9e;F.UltronTestnet=L9e;F.UnicornUltraTestnet=xSe;F.Unique=FRe;F.UzmiNetwork=$7e;F.Valorbit=wSe;F.Vchain=t7e;F.Vela1Chain=rIe;F.VelasEvm=SAe;F.Venidium=Z7e;F.VenidiumTestnet=G7e;F.VentionSmartChain=uLe;F.VentionSmartChainTestnet=bIe;F.Vision=SBe;F.VisionVpioneerTestChain=_Be;F.VyvoSmartChain=HRe;F.Wagmi=bNe;F.Wanchain=BIe;F.WanchainTestnet=t9e;F.Web3gamesDevnet=kAe;F.Web3gamesTestnet=CAe;F.Web3q=PMe;F.Web3qGalileo=_7e;F.Web3qTestnet=T7e;F.Webchain=QNe;F.WeelinkTestnet=mBe;F.WegochainRubidium=sRe;F.Wemix30=b9e;F.Wemix30Testnet=w9e;F.WorldTradeTechnicalChain=P9e;F.Xanachain=zRe;F.XdcApothemNetwork=RSe;F.Xerom=LBe;F.XinfinXdcNetwork=PSe;F.Xodex=s7e;F.XtSmartChain=YMe;F.Yuanchain=B7e;F.ZMainnet=PPe;F.ZTestnet=aNe;F.ZcoreTestnet=x7e;F.ZeethChain=HMe;F.ZeethChainDev=RIe;F.Zeniq=Jqe;F.Zenith=iAe;F.ZenithTestnetVilnius=oAe;F.Zetachain=hRe;F.ZetachainAthensTestnet=fRe;F.Zhejiang=DBe;F.ZksyncAlphaTestnet=TMe;F.ZksyncV2=IMe;F.Zyx=BSe;F._0xtade=pNe;F._4goodnetwork=kBe;F.allChains=arr;F.defaultChains=nrr;F.getChainRPC=rrr;F.getChainRPCs=Fke});var Na=O((din,rH)=>{"use strict";x();T();M.env.NODE_ENV==="production"?rH.exports=Dke():rH.exports=Xqe()});var Oa=O((fin,nH)=>{"use strict";x();T();var irr=Object.prototype.hasOwnProperty,Fc="~";function NT(){}Object.create&&(NT.prototype=Object.create(null),new NT().__proto__||(Fc=!1));function srr(r,e,t){this.fn=r,this.context=e,this.once=t||!1}function Yqe(r,e,t,n,a){if(typeof t!="function")throw new TypeError("The listener must be a function");var i=new srr(t,n||r,a),s=Fc?Fc+e:e;return r._events[s]?r._events[s].fn?r._events[s]=[r._events[s],i]:r._events[s].push(i):(r._events[s]=i,r._eventsCount++),r}function uI(r,e){--r._eventsCount===0?r._events=new NT:delete r._events[e]}function Zo(){this._events=new NT,this._eventsCount=0}Zo.prototype.eventNames=function(){var e=[],t,n;if(this._eventsCount===0)return e;for(n in t=this._events)irr.call(t,n)&&e.push(Fc?n.slice(1):n);return Object.getOwnPropertySymbols?e.concat(Object.getOwnPropertySymbols(t)):e};Zo.prototype.listeners=function(e){var t=Fc?Fc+e:e,n=this._events[t];if(!n)return[];if(n.fn)return[n.fn];for(var a=0,i=n.length,s=new Array(i);a{orr.exports=[{inputs:[],stateMutability:"nonpayable",type:"constructor"},{inputs:[{components:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"uint256",name:"gas",type:"uint256"},{internalType:"uint256",name:"nonce",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"}],internalType:"struct Forwarder.ForwardRequest",name:"req",type:"tuple"},{internalType:"bytes",name:"signature",type:"bytes"}],name:"execute",outputs:[{internalType:"bool",name:"",type:"bool"},{internalType:"bytes",name:"",type:"bytes"}],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"}],name:"getNonce",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{components:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"uint256",name:"gas",type:"uint256"},{internalType:"uint256",name:"nonce",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"}],internalType:"struct Forwarder.ForwardRequest",name:"req",type:"tuple"},{internalType:"bytes",name:"signature",type:"bytes"}],name:"verify",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"}]});var aH=O((vin,$qe)=>{x();T();$qe.exports=typeof self=="object"?self.FormData:window.FormData});var sH=O(iH=>{"use strict";x();T();Object.defineProperty(iH,"__esModule",{value:!0});iH.default=urr;var lI,crr=new Uint8Array(16);function urr(){if(!lI&&(lI=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!lI))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return lI(crr)}});var eDe=O(dI=>{"use strict";x();T();Object.defineProperty(dI,"__esModule",{value:!0});dI.default=void 0;var lrr=/^(?:[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;dI.default=lrr});var OT=O(pI=>{"use strict";x();T();Object.defineProperty(pI,"__esModule",{value:!0});pI.default=void 0;var drr=prr(eDe());function prr(r){return r&&r.__esModule?r:{default:r}}function hrr(r){return typeof r=="string"&&drr.default.test(r)}var frr=hrr;pI.default=frr});var BT=O(LT=>{"use strict";x();T();Object.defineProperty(LT,"__esModule",{value:!0});LT.default=void 0;LT.unsafeStringify=tDe;var mrr=yrr(OT());function yrr(r){return r&&r.__esModule?r:{default:r}}var po=[];for(let r=0;r<256;++r)po.push((r+256).toString(16).slice(1));function tDe(r,e=0){return(po[r[e+0]]+po[r[e+1]]+po[r[e+2]]+po[r[e+3]]+"-"+po[r[e+4]]+po[r[e+5]]+"-"+po[r[e+6]]+po[r[e+7]]+"-"+po[r[e+8]]+po[r[e+9]]+"-"+po[r[e+10]]+po[r[e+11]]+po[r[e+12]]+po[r[e+13]]+po[r[e+14]]+po[r[e+15]]).toLowerCase()}function grr(r,e=0){let t=tDe(r,e);if(!(0,mrr.default)(t))throw TypeError("Stringified UUID is invalid");return t}var vrr=grr;LT.default=vrr});var nDe=O(hI=>{"use strict";x();T();Object.defineProperty(hI,"__esModule",{value:!0});hI.default=void 0;var brr=xrr(sH()),wrr=BT();function xrr(r){return r&&r.__esModule?r:{default:r}}var rDe,oH,cH=0,uH=0;function Trr(r,e,t){let n=e&&t||0,a=e||new Array(16);r=r||{};let i=r.node||rDe,s=r.clockseq!==void 0?r.clockseq:oH;if(i==null||s==null){let E=r.random||(r.rng||brr.default)();i==null&&(i=rDe=[E[0]|1,E[1],E[2],E[3],E[4],E[5]]),s==null&&(s=oH=(E[6]<<8|E[7])&16383)}let c=r.msecs!==void 0?r.msecs:Date.now(),l=r.nsecs!==void 0?r.nsecs:uH+1,d=c-cH+(l-uH)/1e4;if(d<0&&r.clockseq===void 0&&(s=s+1&16383),(d<0||c>cH)&&r.nsecs===void 0&&(l=0),l>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");cH=c,uH=l,oH=s,c+=122192928e5;let f=((c&268435455)*1e4+l)%4294967296;a[n++]=f>>>24&255,a[n++]=f>>>16&255,a[n++]=f>>>8&255,a[n++]=f&255;let w=c/4294967296*1e4&268435455;a[n++]=w>>>8&255,a[n++]=w&255,a[n++]=w>>>24&15|16,a[n++]=w>>>16&255,a[n++]=s>>>8|128,a[n++]=s&255;for(let E=0;E<6;++E)a[n+E]=i[E];return e||(0,wrr.unsafeStringify)(a)}var _rr=Trr;hI.default=_rr});var lH=O(fI=>{"use strict";x();T();Object.defineProperty(fI,"__esModule",{value:!0});fI.default=void 0;var Crr=Err(OT());function Err(r){return r&&r.__esModule?r:{default:r}}function krr(r){if(!(0,Crr.default)(r))throw TypeError("Invalid UUID");let e,t=new Uint8Array(16);return t[0]=(e=parseInt(r.slice(0,8),16))>>>24,t[1]=e>>>16&255,t[2]=e>>>8&255,t[3]=e&255,t[4]=(e=parseInt(r.slice(9,13),16))>>>8,t[5]=e&255,t[6]=(e=parseInt(r.slice(14,18),16))>>>8,t[7]=e&255,t[8]=(e=parseInt(r.slice(19,23),16))>>>8,t[9]=e&255,t[10]=(e=parseInt(r.slice(24,36),16))/1099511627776&255,t[11]=e/4294967296&255,t[12]=e>>>24&255,t[13]=e>>>16&255,t[14]=e>>>8&255,t[15]=e&255,t}var Srr=krr;fI.default=Srr});var dH=O(pv=>{"use strict";x();T();Object.defineProperty(pv,"__esModule",{value:!0});pv.URL=pv.DNS=void 0;pv.default=Rrr;var Arr=BT(),Mrr=Irr(lH());function Irr(r){return r&&r.__esModule?r:{default:r}}function Prr(r){r=unescape(encodeURIComponent(r));let e=[];for(let t=0;t{"use strict";x();T();Object.defineProperty(yI,"__esModule",{value:!0});yI.default=void 0;function Nrr(r){if(typeof r=="string"){let e=unescape(encodeURIComponent(r));r=new Uint8Array(e.length);for(let t=0;t>5]>>>a%32&255,s=parseInt(n.charAt(i>>>4&15)+n.charAt(i&15),16);e.push(s)}return e}function sDe(r){return(r+64>>>9<<4)+14+1}function Lrr(r,e){r[e>>5]|=128<>5]|=(r[n/8]&255)<>16)+(e>>16)+(t>>16)<<16|t&65535}function qrr(r,e){return r<>>32-e}function mI(r,e,t,n,a,i){return D0(qrr(D0(D0(e,r),D0(n,i)),a),t)}function Jo(r,e,t,n,a,i,s){return mI(e&t|~e&n,r,e,a,i,s)}function Ko(r,e,t,n,a,i,s){return mI(e&n|t&~n,r,e,a,i,s)}function Qo(r,e,t,n,a,i,s){return mI(e^t^n,r,e,a,i,s)}function Xo(r,e,t,n,a,i,s){return mI(t^(e|~n),r,e,a,i,s)}var Drr=Nrr;yI.default=Drr});var uDe=O(gI=>{"use strict";x();T();Object.defineProperty(gI,"__esModule",{value:!0});gI.default=void 0;var Frr=cDe(dH()),Urr=cDe(oDe());function cDe(r){return r&&r.__esModule?r:{default:r}}var Wrr=(0,Frr.default)("v3",48,Urr.default),jrr=Wrr;gI.default=jrr});var lDe=O(vI=>{"use strict";x();T();Object.defineProperty(vI,"__esModule",{value:!0});vI.default=void 0;var zrr=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),Hrr={randomUUID:zrr};vI.default=Hrr});var hDe=O(bI=>{"use strict";x();T();Object.defineProperty(bI,"__esModule",{value:!0});bI.default=void 0;var dDe=pDe(lDe()),Vrr=pDe(sH()),Grr=BT();function pDe(r){return r&&r.__esModule?r:{default:r}}function Zrr(r,e,t){if(dDe.default.randomUUID&&!e&&!r)return dDe.default.randomUUID();r=r||{};let n=r.random||(r.rng||Vrr.default)();if(n[6]=n[6]&15|64,n[8]=n[8]&63|128,e){t=t||0;for(let a=0;a<16;++a)e[t+a]=n[a];return e}return(0,Grr.unsafeStringify)(n)}var Jrr=Zrr;bI.default=Jrr});var fDe=O(wI=>{"use strict";x();T();Object.defineProperty(wI,"__esModule",{value:!0});wI.default=void 0;function Krr(r,e,t,n){switch(r){case 0:return e&t^~e&n;case 1:return e^t^n;case 2:return e&t^e&n^t&n;case 3:return e^t^n}}function pH(r,e){return r<>>32-e}function Qrr(r){let e=[1518500249,1859775393,2400959708,3395469782],t=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof r=="string"){let s=unescape(encodeURIComponent(r));r=[];for(let c=0;c>>0;E=w,w=f,f=pH(d,30)>>>0,d=l,l=L}t[0]=t[0]+l>>>0,t[1]=t[1]+d>>>0,t[2]=t[2]+f>>>0,t[3]=t[3]+w>>>0,t[4]=t[4]+E>>>0}return[t[0]>>24&255,t[0]>>16&255,t[0]>>8&255,t[0]&255,t[1]>>24&255,t[1]>>16&255,t[1]>>8&255,t[1]&255,t[2]>>24&255,t[2]>>16&255,t[2]>>8&255,t[2]&255,t[3]>>24&255,t[3]>>16&255,t[3]>>8&255,t[3]&255,t[4]>>24&255,t[4]>>16&255,t[4]>>8&255,t[4]&255]}var Xrr=Qrr;wI.default=Xrr});var yDe=O(xI=>{"use strict";x();T();Object.defineProperty(xI,"__esModule",{value:!0});xI.default=void 0;var Yrr=mDe(dH()),$rr=mDe(fDe());function mDe(r){return r&&r.__esModule?r:{default:r}}var enr=(0,Yrr.default)("v5",80,$rr.default),tnr=enr;xI.default=tnr});var gDe=O(TI=>{"use strict";x();T();Object.defineProperty(TI,"__esModule",{value:!0});TI.default=void 0;var rnr="00000000-0000-0000-0000-000000000000";TI.default=rnr});var vDe=O(_I=>{"use strict";x();T();Object.defineProperty(_I,"__esModule",{value:!0});_I.default=void 0;var nnr=anr(OT());function anr(r){return r&&r.__esModule?r:{default:r}}function inr(r){if(!(0,nnr.default)(r))throw TypeError("Invalid UUID");return parseInt(r.slice(14,15),16)}var snr=inr;_I.default=snr});var hH=O(up=>{"use strict";x();T();Object.defineProperty(up,"__esModule",{value:!0});Object.defineProperty(up,"NIL",{enumerable:!0,get:function(){return dnr.default}});Object.defineProperty(up,"parse",{enumerable:!0,get:function(){return mnr.default}});Object.defineProperty(up,"stringify",{enumerable:!0,get:function(){return fnr.default}});Object.defineProperty(up,"v1",{enumerable:!0,get:function(){return onr.default}});Object.defineProperty(up,"v3",{enumerable:!0,get:function(){return cnr.default}});Object.defineProperty(up,"v4",{enumerable:!0,get:function(){return unr.default}});Object.defineProperty(up,"v5",{enumerable:!0,get:function(){return lnr.default}});Object.defineProperty(up,"validate",{enumerable:!0,get:function(){return hnr.default}});Object.defineProperty(up,"version",{enumerable:!0,get:function(){return pnr.default}});var onr=Gf(nDe()),cnr=Gf(uDe()),unr=Gf(hDe()),lnr=Gf(yDe()),dnr=Gf(gDe()),pnr=Gf(vDe()),hnr=Gf(OT()),fnr=Gf(BT()),mnr=Gf(lH());function Gf(r){return r&&r.__esModule?r:{default:r}}});var CDe=O(Ii=>{"use strict";x();T();Object.defineProperty(Ii,"__esModule",{value:!0});var ynr=En(),gnr=aH(),vnr=hH();function bDe(r){return r&&r.__esModule?r:{default:r}}var fH=bDe(ynr),bnr=bDe(gnr);function wnr(r,e){if(typeof r!="object"||r===null)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var n=t.call(r,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}function xnr(r){var e=wnr(r,"string");return typeof e=="symbol"?e:String(e)}function hv(r,e,t){return e=xnr(e),e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}var qT={"ipfs://":["https://gateway.ipfscdn.io/ipfs/","https://cloudflare-ipfs.com/ipfs/","https://ipfs.io/ipfs/"]},wDe="https://upload.nftlabs.co",mH="https://api.pinata.cloud/pinning/pinFileToIPFS";function xDe(r){let e={...r,...qT};for(let t of Object.keys(qT))if(r&&r[t]){let n=r[t].map(a=>a.replace(/\/$/,"")+"/");e[t]=[...n,...qT[t]]}return e}function yH(){return typeof window<"u"}function tw(r){return I.File&&r instanceof File}function Zf(r){return I.Buffer&&r instanceof P.Buffer}function DT(r){return!!(r&&r.name&&r.data&&typeof r.name=="string"&&(typeof r.data=="string"||Zf(r.data)))}function rw(r){return tw(r)||Zf(r)||DT(r)}function TDe(r,e){if(tw(r)&&tw(e)){if(r.name===e.name&&r.lastModified===e.lastModified&&r.size===e.size)return!0}else{if(Zf(r)&&Zf(e))return r.equals(e);if(DT(r)&&DT(e)&&r.name===e.name){if(typeof r.data=="string"&&typeof e.data=="string")return r.data===e.data;if(Zf(r.data)&&Zf(e.data))return r.data.equals(e.data)}}return!1}function _De(r,e){for(let t of Object.keys(e))for(let n of e[t])if(r.startsWith(n))return r.replace(n,t);return r}function MI(r,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,n=Object.keys(e).find(i=>r.startsWith(i)),a=n?e[n]:[];if(!(!n&&t>0||n&&t>=a.length))return n?r.replace(n,a[t]):r}function CI(r,e){return typeof r=="string"?_De(r,e):typeof r=="object"?!r||rw(r)?r:Array.isArray(r)?r.map(t=>CI(t,e)):Object.fromEntries(Object.entries(r).map(t=>{let[n,a]=t;return[n,CI(a,e)]})):r}function FT(r,e){return typeof r=="string"?MI(r,e):typeof r=="object"?!r||rw(r)?r:Array.isArray(r)?r.map(t=>FT(t,e)):Object.fromEntries(Object.entries(r).map(t=>{let[n,a]=t;return[n,FT(a,e)]})):r}function EI(r){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];if(rw(r))return e.push(r),e;if(typeof r=="object"){if(!r)return e;Array.isArray(r)?r.forEach(t=>EI(t,e)):Object.keys(r).map(t=>EI(r[t],e))}return e}function kI(r,e){if(rw(r)){if(e.length)return r=e.shift(),r;console.warn("Not enough URIs to replace all files in object.")}return typeof r=="object"?r&&(Array.isArray(r)?r.map(t=>kI(t,e)):Object.fromEntries(Object.entries(r).map(t=>{let[n,a]=t;return[n,kI(a,e)]}))):r}var SI=class{async download(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;if(n>3)throw new Error("[FAILED_TO_DOWNLOAD_ERROR] Failed to download from URI - too many attempts failed.");let a=MI(e,t,n);if(!a)throw new Error("[FAILED_TO_DOWNLOAD_ERROR] Unable to download from URI - all gateway URLs failed to respond.");let i=await fH.default(a);return i.status>=500||i.status===403||i.status===408?(console.warn(`Request to ${a} failed with status ${i.status} - ${i.statusText}`),this.download(e,t,n+1)):i}},AI=class{constructor(e){hv(this,"uploadWithGatewayUrl",void 0),this.uploadWithGatewayUrl=e?.uploadWithGatewayUrl||!1}async uploadBatch(e,t){if(t?.uploadWithoutDirectory&&e.length>1)throw new Error("[UPLOAD_WITHOUT_DIRECTORY_ERROR] Cannot upload more than one file or object without directory!");let n=new bnr.default,{form:a,fileNames:i}=this.buildFormData(n,e,t);return yH()?this.uploadBatchBrowser(a,i,t):this.uploadBatchNode(a,i,t)}async getUploadToken(){let e=await fH.default(`${wDe}/grant`,{method:"GET",headers:{"X-APP-NAME":M.env.CI?"Storage SDK CI":"Storage SDK"}});if(!e.ok)throw new Error("Failed to get upload token");return await e.text()}buildFormData(e,t,n){let a=new Map,i=[];for(let c=0;c-1&&(E=l.name.substring(k))}d=`${c+n.rewriteFileNames.fileStartNumber}${E}`}else d=`${l.name}`;else DT(l)?(f=l.data,n?.rewriteFileNames?d=`${c+n.rewriteFileNames.fileStartNumber}`:d=`${l.name}`):n?.rewriteFileNames?d=`${c+n.rewriteFileNames.fileStartNumber}`:d=`${c}`;let w=n?.uploadWithoutDirectory?"files":`files/${d}`;if(a.has(d)){if(TDe(a.get(d),l)){i.push(d);continue}throw new Error(`[DUPLICATE_FILE_NAME_ERROR] File name ${d} was passed for more than one different file.`)}a.set(d,l),i.push(d),yH()?e.append("file",new Blob([f]),w):e.append("file",f,{filepath:w})}let s={name:"Storage SDK",keyvalues:{}};return e.append("pinataMetadata",JSON.stringify(s)),n?.uploadWithoutDirectory&&e.append("pinataOptions",JSON.stringify({wrapWithDirectory:!1})),{form:e,fileNames:i.map(c=>encodeURIComponent(c))}}async uploadBatchBrowser(e,t,n){let a=await this.getUploadToken();return new Promise((i,s)=>{let c=new XMLHttpRequest,l=setTimeout(()=>{c.abort(),s(new Error("Request to upload timed out! No upload progress received in 30s"))},3e4);c.upload.addEventListener("loadstart",()=>{console.log(`[${Date.now()}] [IPFS] Started`)}),c.upload.addEventListener("progress",d=>{console.log(`[IPFS] Progress Event ${d.loaded}/${d.total}`),clearTimeout(l),d.loaded{c.abort(),s(new Error("Request to upload timed out! No upload progress received in 30s"))},3e4):console.log(`[${Date.now()}] [IPFS] Uploaded files. Waiting for response.`),d.lengthComputable&&n?.onProgress&&n?.onProgress({progress:d.loaded,total:d.total})}),c.addEventListener("load",()=>{if(console.log(`[${Date.now()}] [IPFS] Load`),clearTimeout(l),c.status>=200&&c.status<300){let d;try{d=JSON.parse(c.responseText)}catch{return s(new Error("Failed to parse JSON from upload response"))}let f=d.IpfsHash;if(!f)throw new Error("Failed to get IPFS hash from upload response");return n?.uploadWithoutDirectory?i([`ipfs://${f}`]):i(t.map(w=>`ipfs://${f}/${w}`))}return s(new Error(`Upload failed with status ${c.status} - ${c.responseText}`))}),c.addEventListener("error",()=>(console.log("[IPFS] Load"),clearTimeout(l),c.readyState!==0&&c.readyState!==4||c.status===0?s(new Error("This looks like a network error, the endpoint might be blocked by an internet provider or a firewall.")):s(new Error("Unknown upload error occured")))),c.open("POST",mH),c.setRequestHeader("Authorization",`Bearer ${a}`),c.send(e)})}async uploadBatchNode(e,t,n){let a=await this.getUploadToken();n?.onProgress&&console.warn("The onProgress option is only supported in the browser");let i=await fH.default(mH,{method:"POST",headers:{Authorization:`Bearer ${a}`,...e.getHeaders()},body:e.getBuffer()}),s=await i.json();if(!i.ok)throw console.warn(s),new Error("Failed to upload files to IPFS");let c=s.IpfsHash;if(!c)throw new Error("Failed to upload files to IPFS");return n?.uploadWithoutDirectory?[`ipfs://${c}`]:t.map(l=>`ipfs://${c}/${l}`)}},gH=class{constructor(e){hv(this,"uploader",void 0),hv(this,"downloader",void 0),hv(this,"gatewayUrls",void 0),this.uploader=e?.uploader||new AI,this.downloader=e?.downloader||new SI,this.gatewayUrls=xDe(e?.gatewayUrls)}resolveScheme(e){return MI(e,this.gatewayUrls)}async download(e){return this.downloader.download(e,this.gatewayUrls)}async downloadJSON(e){let n=await(await this.download(e)).json();return FT(n,this.gatewayUrls)}async upload(e,t){let[n]=await this.uploadBatch([e],t);return n}async uploadBatch(e,t){if(e=e.filter(i=>i!==void 0),!e.length)return[];let n=e.map(i=>rw(i)||typeof i=="string").every(i=>!!i),a=[];if(n)a=await this.uploader.uploadBatch(e,t);else{let i=(await this.uploadAndReplaceFilesWithHashes(e,t)).map(s=>typeof s=="string"?s:JSON.stringify(s));a=await this.uploader.uploadBatch(i,t)}return t?.uploadWithGatewayUrl||this.uploader.uploadWithGatewayUrl?a.map(i=>this.resolveScheme(i)):a}async uploadAndReplaceFilesWithHashes(e,t){let n=e;n=CI(n,this.gatewayUrls);let a=EI(n);if(a.length){let i=await this.uploader.uploadBatch(a,t);n=kI(n,i)}return(t?.uploadWithGatewayUrl||this.uploader.uploadWithGatewayUrl)&&(n=FT(n,this.gatewayUrls)),n}},vH=class{constructor(e){hv(this,"gatewayUrls",qT),hv(this,"storage",void 0),this.storage=e}async download(e){let[t,n]=e.includes("mock://")?e.replace("mock://","").split("/"):e.replace("ipfs://","").split("/"),a=n?this.storage[t][n]:this.storage[t];return{async json(){return Promise.resolve(JSON.parse(a))},async text(){return Promise.resolve(a)}}}},bH=class{constructor(e){hv(this,"storage",void 0),this.storage=e}async uploadBatch(e,t){let n=vnr.v4(),a=[];this.storage[n]={};let i=t?.rewriteFileNames?.fileStartNumber||0;for(let s of e){let c;if(tw(s))c=await s.text();else if(Zf(s))c=s.toString();else if(typeof s=="string")c=s;else{c=Zf(s.data)?s.data.toString():s.data;let l=s.name?s.name:`file_${i}`;this.storage[n][l]=c,a.push(`mock://${n}/${l}`);continue}this.storage[n][i.toString()]=c,a.push(`mock://${n}/${i}`),i+=1}return a}};Ii.DEFAULT_GATEWAY_URLS=qT;Ii.IpfsUploader=AI;Ii.MockDownloader=vH;Ii.MockUploader=bH;Ii.PINATA_IPFS_URL=mH;Ii.StorageDownloader=SI;Ii.TW_IPFS_SERVER_URL=wDe;Ii.ThirdwebStorage=gH;Ii.extractObjectFiles=EI;Ii.isBrowser=yH;Ii.isBufferInstance=Zf;Ii.isBufferOrStringWithName=DT;Ii.isFileBufferOrStringEqual=TDe;Ii.isFileInstance=tw;Ii.isFileOrBuffer=rw;Ii.prepareGatewayUrls=xDe;Ii.replaceGatewayUrlWithScheme=_De;Ii.replaceObjectFilesWithUris=kI;Ii.replaceObjectGatewayUrlsWithSchemes=CI;Ii.replaceObjectSchemesWithGatewayUrls=FT;Ii.replaceSchemeWithGatewayUrl=MI});var IDe=O(Pi=>{"use strict";x();T();Object.defineProperty(Pi,"__esModule",{value:!0});var Tnr=En(),_nr=aH(),Cnr=hH();function EDe(r){return r&&r.__esModule?r:{default:r}}var wH=EDe(Tnr),Enr=EDe(_nr);function knr(r,e){if(typeof r!="object"||r===null)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var n=t.call(r,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}function Snr(r){var e=knr(r,"string");return typeof e=="symbol"?e:String(e)}function fv(r,e,t){return e=Snr(e),e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}var UT={"ipfs://":["https://gateway.ipfscdn.io/ipfs/","https://cloudflare-ipfs.com/ipfs/","https://ipfs.io/ipfs/"]},kDe="https://upload.nftlabs.co",xH="https://api.pinata.cloud/pinning/pinFileToIPFS";function SDe(r){let e={...r,...UT};for(let t of Object.keys(UT))if(r&&r[t]){let n=r[t].map(a=>a.replace(/\/$/,"")+"/");e[t]=[...n,...UT[t]]}return e}function TH(){return typeof window<"u"}function nw(r){return I.File&&r instanceof File}function Jf(r){return I.Buffer&&r instanceof P.Buffer}function WT(r){return!!(r&&r.name&&r.data&&typeof r.name=="string"&&(typeof r.data=="string"||Jf(r.data)))}function aw(r){return nw(r)||Jf(r)||WT(r)}function ADe(r,e){if(nw(r)&&nw(e)){if(r.name===e.name&&r.lastModified===e.lastModified&&r.size===e.size)return!0}else{if(Jf(r)&&Jf(e))return r.equals(e);if(WT(r)&&WT(e)&&r.name===e.name){if(typeof r.data=="string"&&typeof e.data=="string")return r.data===e.data;if(Jf(r.data)&&Jf(e.data))return r.data.equals(e.data)}}return!1}function MDe(r,e){for(let t of Object.keys(e))for(let n of e[t])if(r.startsWith(n))return r.replace(n,t);return r}function LI(r,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,n=Object.keys(e).find(i=>r.startsWith(i)),a=n?e[n]:[];if(!(!n&&t>0||n&&t>=a.length))return n?r.replace(n,a[t]):r}function II(r,e){return typeof r=="string"?MDe(r,e):typeof r=="object"?!r||aw(r)?r:Array.isArray(r)?r.map(t=>II(t,e)):Object.fromEntries(Object.entries(r).map(t=>{let[n,a]=t;return[n,II(a,e)]})):r}function jT(r,e){return typeof r=="string"?LI(r,e):typeof r=="object"?!r||aw(r)?r:Array.isArray(r)?r.map(t=>jT(t,e)):Object.fromEntries(Object.entries(r).map(t=>{let[n,a]=t;return[n,jT(a,e)]})):r}function PI(r){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];if(aw(r))return e.push(r),e;if(typeof r=="object"){if(!r)return e;Array.isArray(r)?r.forEach(t=>PI(t,e)):Object.keys(r).map(t=>PI(r[t],e))}return e}function RI(r,e){if(aw(r)){if(e.length)return r=e.shift(),r;console.warn("Not enough URIs to replace all files in object.")}return typeof r=="object"?r&&(Array.isArray(r)?r.map(t=>RI(t,e)):Object.fromEntries(Object.entries(r).map(t=>{let[n,a]=t;return[n,RI(a,e)]}))):r}var NI=class{async download(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;if(n>3)throw new Error("[FAILED_TO_DOWNLOAD_ERROR] Failed to download from URI - too many attempts failed.");let a=LI(e,t,n);if(!a)throw new Error("[FAILED_TO_DOWNLOAD_ERROR] Unable to download from URI - all gateway URLs failed to respond.");let i=await wH.default(a);return i.status>=500||i.status===403||i.status===408?(console.warn(`Request to ${a} failed with status ${i.status} - ${i.statusText}`),this.download(e,t,n+1)):i}},OI=class{constructor(e){fv(this,"uploadWithGatewayUrl",void 0),this.uploadWithGatewayUrl=e?.uploadWithGatewayUrl||!1}async uploadBatch(e,t){if(t?.uploadWithoutDirectory&&e.length>1)throw new Error("[UPLOAD_WITHOUT_DIRECTORY_ERROR] Cannot upload more than one file or object without directory!");let n=new Enr.default,{form:a,fileNames:i}=this.buildFormData(n,e,t);return TH()?this.uploadBatchBrowser(a,i,t):this.uploadBatchNode(a,i,t)}async getUploadToken(){let e=await wH.default(`${kDe}/grant`,{method:"GET",headers:{"X-APP-NAME":M.env.NODE_ENV==="test"||!!M.env.CI?"Storage SDK CI":"Storage SDK"}});if(!e.ok)throw new Error("Failed to get upload token");return await e.text()}buildFormData(e,t,n){let a=new Map,i=[];for(let c=0;c-1&&(E=l.name.substring(k))}d=`${c+n.rewriteFileNames.fileStartNumber}${E}`}else d=`${l.name}`;else WT(l)?(f=l.data,n?.rewriteFileNames?d=`${c+n.rewriteFileNames.fileStartNumber}`:d=`${l.name}`):n?.rewriteFileNames?d=`${c+n.rewriteFileNames.fileStartNumber}`:d=`${c}`;let w=n?.uploadWithoutDirectory?"files":`files/${d}`;if(a.has(d)){if(ADe(a.get(d),l)){i.push(d);continue}throw new Error(`[DUPLICATE_FILE_NAME_ERROR] File name ${d} was passed for more than one different file.`)}a.set(d,l),i.push(d),TH()?e.append("file",new Blob([f]),w):e.append("file",f,{filepath:w})}let s={name:"Storage SDK",keyvalues:{}};return e.append("pinataMetadata",JSON.stringify(s)),n?.uploadWithoutDirectory&&e.append("pinataOptions",JSON.stringify({wrapWithDirectory:!1})),{form:e,fileNames:i.map(c=>encodeURIComponent(c))}}async uploadBatchBrowser(e,t,n){let a=await this.getUploadToken();return new Promise((i,s)=>{let c=new XMLHttpRequest,l=setTimeout(()=>{c.abort(),s(new Error("Request to upload timed out! No upload progress received in 30s"))},3e4);c.upload.addEventListener("loadstart",()=>{console.log(`[${Date.now()}] [IPFS] Started`)}),c.upload.addEventListener("progress",d=>{console.log(`[IPFS] Progress Event ${d.loaded}/${d.total}`),clearTimeout(l),d.loaded{c.abort(),s(new Error("Request to upload timed out! No upload progress received in 30s"))},3e4):console.log(`[${Date.now()}] [IPFS] Uploaded files. Waiting for response.`),d.lengthComputable&&n?.onProgress&&n?.onProgress({progress:d.loaded,total:d.total})}),c.addEventListener("load",()=>{if(console.log(`[${Date.now()}] [IPFS] Load`),clearTimeout(l),c.status>=200&&c.status<300){let d;try{d=JSON.parse(c.responseText)}catch{return s(new Error("Failed to parse JSON from upload response"))}let f=d.IpfsHash;if(!f)throw new Error("Failed to get IPFS hash from upload response");return n?.uploadWithoutDirectory?i([`ipfs://${f}`]):i(t.map(w=>`ipfs://${f}/${w}`))}return s(new Error(`Upload failed with status ${c.status} - ${c.responseText}`))}),c.addEventListener("error",()=>(console.log("[IPFS] Load"),clearTimeout(l),c.readyState!==0&&c.readyState!==4||c.status===0?s(new Error("This looks like a network error, the endpoint might be blocked by an internet provider or a firewall.")):s(new Error("Unknown upload error occured")))),c.open("POST",xH),c.setRequestHeader("Authorization",`Bearer ${a}`),c.send(e)})}async uploadBatchNode(e,t,n){let a=await this.getUploadToken();n?.onProgress&&console.warn("The onProgress option is only supported in the browser");let i=await wH.default(xH,{method:"POST",headers:{Authorization:`Bearer ${a}`,...e.getHeaders()},body:e.getBuffer()}),s=await i.json();if(!i.ok)throw console.warn(s),new Error("Failed to upload files to IPFS");let c=s.IpfsHash;if(!c)throw new Error("Failed to upload files to IPFS");return n?.uploadWithoutDirectory?[`ipfs://${c}`]:t.map(l=>`ipfs://${c}/${l}`)}},_H=class{constructor(e){fv(this,"uploader",void 0),fv(this,"downloader",void 0),fv(this,"gatewayUrls",void 0),this.uploader=e?.uploader||new OI,this.downloader=e?.downloader||new NI,this.gatewayUrls=SDe(e?.gatewayUrls)}resolveScheme(e){return LI(e,this.gatewayUrls)}async download(e){return this.downloader.download(e,this.gatewayUrls)}async downloadJSON(e){let n=await(await this.download(e)).json();return jT(n,this.gatewayUrls)}async upload(e,t){let[n]=await this.uploadBatch([e],t);return n}async uploadBatch(e,t){if(e=e.filter(i=>i!==void 0),!e.length)return[];let n=e.map(i=>aw(i)||typeof i=="string").every(i=>!!i),a=[];if(n)a=await this.uploader.uploadBatch(e,t);else{let i=(await this.uploadAndReplaceFilesWithHashes(e,t)).map(s=>typeof s=="string"?s:JSON.stringify(s));a=await this.uploader.uploadBatch(i,t)}return t?.uploadWithGatewayUrl||this.uploader.uploadWithGatewayUrl?a.map(i=>this.resolveScheme(i)):a}async uploadAndReplaceFilesWithHashes(e,t){let n=e;n=II(n,this.gatewayUrls);let a=PI(n);if(a.length){let i=await this.uploader.uploadBatch(a,t);n=RI(n,i)}return(t?.uploadWithGatewayUrl||this.uploader.uploadWithGatewayUrl)&&(n=jT(n,this.gatewayUrls)),n}},CH=class{constructor(e){fv(this,"gatewayUrls",UT),fv(this,"storage",void 0),this.storage=e}async download(e){let[t,n]=e.includes("mock://")?e.replace("mock://","").split("/"):e.replace("ipfs://","").split("/"),a=n?this.storage[t][n]:this.storage[t];return{async json(){return Promise.resolve(JSON.parse(a))},async text(){return Promise.resolve(a)}}}},EH=class{constructor(e){fv(this,"storage",void 0),this.storage=e}async uploadBatch(e,t){let n=Cnr.v4(),a=[];this.storage[n]={};let i=t?.rewriteFileNames?.fileStartNumber||0;for(let s of e){let c;if(nw(s))c=await s.text();else if(Jf(s))c=s.toString();else if(typeof s=="string")c=s;else{c=Jf(s.data)?s.data.toString():s.data;let l=s.name?s.name:`file_${i}`;this.storage[n][l]=c,a.push(`mock://${n}/${l}`);continue}this.storage[n][i.toString()]=c,a.push(`mock://${n}/${i}`),i+=1}return a}};Pi.DEFAULT_GATEWAY_URLS=UT;Pi.IpfsUploader=OI;Pi.MockDownloader=CH;Pi.MockUploader=EH;Pi.PINATA_IPFS_URL=xH;Pi.StorageDownloader=NI;Pi.TW_IPFS_SERVER_URL=kDe;Pi.ThirdwebStorage=_H;Pi.extractObjectFiles=PI;Pi.isBrowser=TH;Pi.isBufferInstance=Jf;Pi.isBufferOrStringWithName=WT;Pi.isFileBufferOrStringEqual=ADe;Pi.isFileInstance=nw;Pi.isFileOrBuffer=aw;Pi.prepareGatewayUrls=SDe;Pi.replaceGatewayUrlWithScheme=MDe;Pi.replaceObjectFilesWithUris=RI;Pi.replaceObjectGatewayUrlsWithSchemes=II;Pi.replaceObjectSchemesWithGatewayUrls=jT;Pi.replaceSchemeWithGatewayUrl=LI});var On=O((xsn,kH)=>{"use strict";x();T();M.env.NODE_ENV==="production"?kH.exports=CDe():kH.exports=IDe()});var Ba=O((Csn,Anr)=>{Anr.exports=[{inputs:[],name:"decimals",outputs:[{internalType:"uint8",name:"",type:"uint8"}],stateMutability:"view",type:"function"},{inputs:[],name:"name",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"symbol",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"}]});var qa=O((Esn,Mnr)=>{Mnr.exports=[{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes4",name:"functionSelector",type:"bytes4"},{indexed:!0,internalType:"address",name:"pluginAddress",type:"address"}],name:"PluginAdded",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes4",name:"functionSelector",type:"bytes4"},{indexed:!0,internalType:"address",name:"pluginAddress",type:"address"}],name:"PluginRemoved",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes4",name:"functionSelector",type:"bytes4"},{indexed:!0,internalType:"string",name:"functionSignature",type:"string"},{indexed:!0,internalType:"address",name:"pluginAddress",type:"address"}],name:"PluginSet",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes4",name:"functionSelector",type:"bytes4"},{indexed:!0,internalType:"address",name:"oldPluginAddress",type:"address"},{indexed:!0,internalType:"address",name:"newPluginAddress",type:"address"}],name:"PluginUpdated",type:"event"},{stateMutability:"payable",type:"fallback"},{inputs:[{internalType:"bytes4",name:"_selector",type:"bytes4"}],name:"_getPluginForFunction",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{components:[{internalType:"bytes4",name:"functionSelector",type:"bytes4"},{internalType:"string",name:"functionSignature",type:"string"},{internalType:"address",name:"pluginAddress",type:"address"}],internalType:"struct IPluginMap.Plugin",name:"_plugin",type:"tuple"}],name:"addPlugin",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_pluginAddress",type:"address"}],name:"getAllFunctionsOfPlugin",outputs:[{internalType:"bytes4[]",name:"registered",type:"bytes4[]"}],stateMutability:"view",type:"function"},{inputs:[],name:"getAllPlugins",outputs:[{components:[{internalType:"bytes4",name:"functionSelector",type:"bytes4"},{internalType:"string",name:"functionSignature",type:"string"},{internalType:"address",name:"pluginAddress",type:"address"}],internalType:"struct IPluginMap.Plugin[]",name:"registered",type:"tuple[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes4",name:"_selector",type:"bytes4"}],name:"getPluginForFunction",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes[]",name:"data",type:"bytes[]"}],name:"multicall",outputs:[{internalType:"bytes[]",name:"results",type:"bytes[]"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"pluginMap",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes4",name:"_selector",type:"bytes4"}],name:"removePlugin",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes4",name:"interfaceId",type:"bytes4"}],name:"supportsInterface",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{components:[{internalType:"bytes4",name:"functionSelector",type:"bytes4"},{internalType:"string",name:"functionSignature",type:"string"},{internalType:"address",name:"pluginAddress",type:"address"}],internalType:"struct IPluginMap.Plugin",name:"_plugin",type:"tuple"}],name:"updatePlugin",outputs:[],stateMutability:"nonpayable",type:"function"},{stateMutability:"payable",type:"receive"}]});var Da=O((ksn,Inr)=>{Inr.exports=[{inputs:[],name:"contractType",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"pure",type:"function"},{inputs:[],name:"contractURI",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"contractVersion",outputs:[{internalType:"uint8",name:"",type:"uint8"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"string",name:"_uri",type:"string"}],name:"setContractURI",outputs:[],stateMutability:"nonpayable",type:"function"}]});var RDe=O((Ssn,PDe)=>{x();T();PDe.exports=function(e){for(var t=new P.Buffer(e.length),n=0,a=e.length-1;n<=a;++n,--a)t[n]=e[a],t[a]=e[n];return t}});var kn=O((BI,NDe)=>{x();T();(function(r,e){typeof BI=="object"?NDe.exports=BI=e():typeof define=="function"&&define.amd?define([],e):r.CryptoJS=e()})(BI,function(){var r=r||function(e,t){var n=Object.create||function(){function L(){}return function(q){var U;return L.prototype=q,U=new L,L.prototype=null,U}}(),a={},i=a.lib={},s=i.Base=function(){return{extend:function(L){var q=n(this);return L&&q.mixIn(L),(!q.hasOwnProperty("init")||this.init===q.init)&&(q.init=function(){q.$super.init.apply(this,arguments)}),q.init.prototype=q,q.$super=this,q},create:function(){var L=this.extend();return L.init.apply(L,arguments),L},init:function(){},mixIn:function(L){for(var q in L)L.hasOwnProperty(q)&&(this[q]=L[q]);L.hasOwnProperty("toString")&&(this.toString=L.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),c=i.WordArray=s.extend({init:function(L,q){L=this.words=L||[],q!=t?this.sigBytes=q:this.sigBytes=L.length*4},toString:function(L){return(L||d).stringify(this)},concat:function(L){var q=this.words,U=L.words,j=this.sigBytes,H=L.sigBytes;if(this.clamp(),j%4)for(var G=0;G>>2]>>>24-G%4*8&255;q[j+G>>>2]|=te<<24-(j+G)%4*8}else for(var G=0;G>>2]=U[G>>>2];return this.sigBytes+=H,this},clamp:function(){var L=this.words,q=this.sigBytes;L[q>>>2]&=4294967295<<32-q%4*8,L.length=e.ceil(q/4)},clone:function(){var L=s.clone.call(this);return L.words=this.words.slice(0),L},random:function(L){for(var q=[],U=function(K){var K=K,ae=987654321,J=4294967295;return function(){ae=36969*(ae&65535)+(ae>>16)&J,K=18e3*(K&65535)+(K>>16)&J;var V=(ae<<16)+K&J;return V/=4294967296,V+=.5,V*(e.random()>.5?1:-1)}},j=0,H;j>>2]>>>24-H%4*8&255;j.push((G>>>4).toString(16)),j.push((G&15).toString(16))}return j.join("")},parse:function(L){for(var q=L.length,U=[],j=0;j>>3]|=parseInt(L.substr(j,2),16)<<24-j%8*4;return new c.init(U,q/2)}},f=l.Latin1={stringify:function(L){for(var q=L.words,U=L.sigBytes,j=[],H=0;H>>2]>>>24-H%4*8&255;j.push(String.fromCharCode(G))}return j.join("")},parse:function(L){for(var q=L.length,U=[],j=0;j>>2]|=(L.charCodeAt(j)&255)<<24-j%4*8;return new c.init(U,q)}},w=l.Utf8={stringify:function(L){try{return decodeURIComponent(escape(f.stringify(L)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(L){return f.parse(unescape(encodeURIComponent(L)))}},E=i.BufferedBlockAlgorithm=s.extend({reset:function(){this._data=new c.init,this._nDataBytes=0},_append:function(L){typeof L=="string"&&(L=w.parse(L)),this._data.concat(L),this._nDataBytes+=L.sigBytes},_process:function(L){var q=this._data,U=q.words,j=q.sigBytes,H=this.blockSize,G=H*4,te=j/G;L?te=e.ceil(te):te=e.max((te|0)-this._minBufferSize,0);var K=te*H,ae=e.min(K*4,j);if(K){for(var J=0;J{x();T();(function(r,e){typeof qI=="object"?ODe.exports=qI=e(kn()):typeof define=="function"&&define.amd?define(["./core"],e):e(r.CryptoJS)})(qI,function(r){return function(e){var t=r,n=t.lib,a=n.WordArray,i=n.Hasher,s=t.algo,c=[],l=[];(function(){function w(L){for(var q=e.sqrt(L),U=2;U<=q;U++)if(!(L%U))return!1;return!0}function E(L){return(L-(L|0))*4294967296|0}for(var k=2,A=0;A<64;)w(k)&&(A<8&&(c[A]=E(e.pow(k,1/2))),l[A]=E(e.pow(k,1/3)),A++),k++})();var d=[],f=s.SHA256=i.extend({_doReset:function(){this._hash=new a.init(c.slice(0))},_doProcessBlock:function(w,E){for(var k=this._hash.words,A=k[0],L=k[1],q=k[2],U=k[3],j=k[4],H=k[5],G=k[6],te=k[7],K=0;K<64;K++){if(K<16)d[K]=w[E+K]|0;else{var ae=d[K-15],J=(ae<<25|ae>>>7)^(ae<<14|ae>>>18)^ae>>>3,V=d[K-2],g=(V<<15|V>>>17)^(V<<13|V>>>19)^V>>>10;d[K]=J+d[K-7]+g+d[K-16]}var o=j&H^~j&G,p=A&L^A&q^L&q,y=(A<<30|A>>>2)^(A<<19|A>>>13)^(A<<10|A>>>22),h=(j<<26|j>>>6)^(j<<21|j>>>11)^(j<<7|j>>>25),v=te+h+o+l[K]+d[K],_=y+p;te=G,G=H,H=j,j=U+v|0,U=q,q=L,L=A,A=v+_|0}k[0]=k[0]+A|0,k[1]=k[1]+L|0,k[2]=k[2]+q|0,k[3]=k[3]+U|0,k[4]=k[4]+j|0,k[5]=k[5]+H|0,k[6]=k[6]+G|0,k[7]=k[7]+te|0},_doFinalize:function(){var w=this._data,E=w.words,k=this._nDataBytes*8,A=w.sigBytes*8;return E[A>>>5]|=128<<24-A%32,E[(A+64>>>9<<4)+14]=e.floor(k/4294967296),E[(A+64>>>9<<4)+15]=k,w.sigBytes=E.length*4,this._process(),this._hash},clone:function(){var w=i.clone.call(this);return w._hash=this._hash.clone(),w}});t.SHA256=i._createHelper(f),t.HmacSHA256=i._createHmacHelper(f)}(Math),r.SHA256})});var BDe=O((SH,LDe)=>{x();T();(function(r,e){typeof SH=="object"?LDe.exports=e():typeof define=="function"&&define.amd?define(e):r.treeify=e()})(SH,function(){function r(a,i){var s=i?"\u2514":"\u251C";return a?s+="\u2500 ":s+="\u2500\u2500\u2510",s}function e(a,i){var s=[];for(var c in a)!a.hasOwnProperty(c)||i&&typeof a[c]=="function"||s.push(c);return s}function t(a,i,s,c,l,d,f){var w="",E=0,k,A,L=c.slice(0);if(L.push([i,s])&&c.length>0&&(c.forEach(function(U,j){j>0&&(w+=(U[1]?" ":"\u2502")+" "),!A&&U[0]===i&&(A=!0)}),w+=r(a,s)+a,l&&(typeof i!="object"||i instanceof Date)&&(w+=": "+i),A&&(w+=" (circular ref.)"),f(w)),!A&&typeof i=="object"){var q=e(i,d);q.forEach(function(U){k=++E===q.length,t(U,i[U],k,L,l,d,f)})}}var n={};return n.asLines=function(a,i,s,c){var l=typeof s!="function"?s:!1;t(".",a,!1,[],i,l,c||s)},n.asTree=function(a,i,s){var c="";return t(".",a,!1,[],i,s,function(l){c+=l+` -`}),c},n})});var HT=O((DI,qDe)=>{x();T();(function(r,e){typeof DI=="object"?qDe.exports=DI=e(kn()):typeof define=="function"&&define.amd?define(["./core"],e):e(r.CryptoJS)})(DI,function(r){return function(e){var t=r,n=t.lib,a=n.Base,i=n.WordArray,s=t.x64={},c=s.Word=a.extend({init:function(d,f){this.high=d,this.low=f}}),l=s.WordArray=a.extend({init:function(d,f){d=this.words=d||[],f!=e?this.sigBytes=f:this.sigBytes=d.length*8},toX32:function(){for(var d=this.words,f=d.length,w=[],E=0;E{x();T();(function(r,e){typeof FI=="object"?DDe.exports=FI=e(kn()):typeof define=="function"&&define.amd?define(["./core"],e):e(r.CryptoJS)})(FI,function(r){return function(){if(typeof ArrayBuffer=="function"){var e=r,t=e.lib,n=t.WordArray,a=n.init,i=n.init=function(s){if(s instanceof ArrayBuffer&&(s=new Uint8Array(s)),(s instanceof Int8Array||typeof Uint8ClampedArray<"u"&&s instanceof Uint8ClampedArray||s instanceof Int16Array||s instanceof Uint16Array||s instanceof Int32Array||s instanceof Uint32Array||s instanceof Float32Array||s instanceof Float64Array)&&(s=new Uint8Array(s.buffer,s.byteOffset,s.byteLength)),s instanceof Uint8Array){for(var c=s.byteLength,l=[],d=0;d>>2]|=s[d]<<24-d%4*8;a.call(this,l,c)}else a.apply(this,arguments)};i.prototype=n}}(),r.lib.WordArray})});var WDe=O((UI,UDe)=>{x();T();(function(r,e){typeof UI=="object"?UDe.exports=UI=e(kn()):typeof define=="function"&&define.amd?define(["./core"],e):e(r.CryptoJS)})(UI,function(r){return function(){var e=r,t=e.lib,n=t.WordArray,a=e.enc,i=a.Utf16=a.Utf16BE={stringify:function(c){for(var l=c.words,d=c.sigBytes,f=[],w=0;w>>2]>>>16-w%4*8&65535;f.push(String.fromCharCode(E))}return f.join("")},parse:function(c){for(var l=c.length,d=[],f=0;f>>1]|=c.charCodeAt(f)<<16-f%2*16;return n.create(d,l*2)}};a.Utf16LE={stringify:function(c){for(var l=c.words,d=c.sigBytes,f=[],w=0;w>>2]>>>16-w%4*8&65535);f.push(String.fromCharCode(E))}return f.join("")},parse:function(c){for(var l=c.length,d=[],f=0;f>>1]|=s(c.charCodeAt(f)<<16-f%2*16);return n.create(d,l*2)}};function s(c){return c<<8&4278255360|c>>>8&16711935}}(),r.enc.Utf16})});var mv=O((WI,jDe)=>{x();T();(function(r,e){typeof WI=="object"?jDe.exports=WI=e(kn()):typeof define=="function"&&define.amd?define(["./core"],e):e(r.CryptoJS)})(WI,function(r){return function(){var e=r,t=e.lib,n=t.WordArray,a=e.enc,i=a.Base64={stringify:function(c){var l=c.words,d=c.sigBytes,f=this._map;c.clamp();for(var w=[],E=0;E>>2]>>>24-E%4*8&255,A=l[E+1>>>2]>>>24-(E+1)%4*8&255,L=l[E+2>>>2]>>>24-(E+2)%4*8&255,q=k<<16|A<<8|L,U=0;U<4&&E+U*.75>>6*(3-U)&63));var j=f.charAt(64);if(j)for(;w.length%4;)w.push(j);return w.join("")},parse:function(c){var l=c.length,d=this._map,f=this._reverseMap;if(!f){f=this._reverseMap=[];for(var w=0;w>>6-E%4*2;f[w>>>2]|=(k|A)<<24-w%4*8,w++}return n.create(f,w)}}(),r.enc.Base64})});var yv=O((jI,zDe)=>{x();T();(function(r,e){typeof jI=="object"?zDe.exports=jI=e(kn()):typeof define=="function"&&define.amd?define(["./core"],e):e(r.CryptoJS)})(jI,function(r){return function(e){var t=r,n=t.lib,a=n.WordArray,i=n.Hasher,s=t.algo,c=[];(function(){for(var k=0;k<64;k++)c[k]=e.abs(e.sin(k+1))*4294967296|0})();var l=s.MD5=i.extend({_doReset:function(){this._hash=new a.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(k,A){for(var L=0;L<16;L++){var q=A+L,U=k[q];k[q]=(U<<8|U>>>24)&16711935|(U<<24|U>>>8)&4278255360}var j=this._hash.words,H=k[A+0],G=k[A+1],te=k[A+2],K=k[A+3],ae=k[A+4],J=k[A+5],V=k[A+6],g=k[A+7],o=k[A+8],p=k[A+9],y=k[A+10],h=k[A+11],v=k[A+12],_=k[A+13],C=k[A+14],m=k[A+15],u=j[0],b=j[1],R=j[2],S=j[3];u=d(u,b,R,S,H,7,c[0]),S=d(S,u,b,R,G,12,c[1]),R=d(R,S,u,b,te,17,c[2]),b=d(b,R,S,u,K,22,c[3]),u=d(u,b,R,S,ae,7,c[4]),S=d(S,u,b,R,J,12,c[5]),R=d(R,S,u,b,V,17,c[6]),b=d(b,R,S,u,g,22,c[7]),u=d(u,b,R,S,o,7,c[8]),S=d(S,u,b,R,p,12,c[9]),R=d(R,S,u,b,y,17,c[10]),b=d(b,R,S,u,h,22,c[11]),u=d(u,b,R,S,v,7,c[12]),S=d(S,u,b,R,_,12,c[13]),R=d(R,S,u,b,C,17,c[14]),b=d(b,R,S,u,m,22,c[15]),u=f(u,b,R,S,G,5,c[16]),S=f(S,u,b,R,V,9,c[17]),R=f(R,S,u,b,h,14,c[18]),b=f(b,R,S,u,H,20,c[19]),u=f(u,b,R,S,J,5,c[20]),S=f(S,u,b,R,y,9,c[21]),R=f(R,S,u,b,m,14,c[22]),b=f(b,R,S,u,ae,20,c[23]),u=f(u,b,R,S,p,5,c[24]),S=f(S,u,b,R,C,9,c[25]),R=f(R,S,u,b,K,14,c[26]),b=f(b,R,S,u,o,20,c[27]),u=f(u,b,R,S,_,5,c[28]),S=f(S,u,b,R,te,9,c[29]),R=f(R,S,u,b,g,14,c[30]),b=f(b,R,S,u,v,20,c[31]),u=w(u,b,R,S,J,4,c[32]),S=w(S,u,b,R,o,11,c[33]),R=w(R,S,u,b,h,16,c[34]),b=w(b,R,S,u,C,23,c[35]),u=w(u,b,R,S,G,4,c[36]),S=w(S,u,b,R,ae,11,c[37]),R=w(R,S,u,b,g,16,c[38]),b=w(b,R,S,u,y,23,c[39]),u=w(u,b,R,S,_,4,c[40]),S=w(S,u,b,R,H,11,c[41]),R=w(R,S,u,b,K,16,c[42]),b=w(b,R,S,u,V,23,c[43]),u=w(u,b,R,S,p,4,c[44]),S=w(S,u,b,R,v,11,c[45]),R=w(R,S,u,b,m,16,c[46]),b=w(b,R,S,u,te,23,c[47]),u=E(u,b,R,S,H,6,c[48]),S=E(S,u,b,R,g,10,c[49]),R=E(R,S,u,b,C,15,c[50]),b=E(b,R,S,u,J,21,c[51]),u=E(u,b,R,S,v,6,c[52]),S=E(S,u,b,R,K,10,c[53]),R=E(R,S,u,b,y,15,c[54]),b=E(b,R,S,u,G,21,c[55]),u=E(u,b,R,S,o,6,c[56]),S=E(S,u,b,R,m,10,c[57]),R=E(R,S,u,b,V,15,c[58]),b=E(b,R,S,u,_,21,c[59]),u=E(u,b,R,S,ae,6,c[60]),S=E(S,u,b,R,h,10,c[61]),R=E(R,S,u,b,te,15,c[62]),b=E(b,R,S,u,p,21,c[63]),j[0]=j[0]+u|0,j[1]=j[1]+b|0,j[2]=j[2]+R|0,j[3]=j[3]+S|0},_doFinalize:function(){var k=this._data,A=k.words,L=this._nDataBytes*8,q=k.sigBytes*8;A[q>>>5]|=128<<24-q%32;var U=e.floor(L/4294967296),j=L;A[(q+64>>>9<<4)+15]=(U<<8|U>>>24)&16711935|(U<<24|U>>>8)&4278255360,A[(q+64>>>9<<4)+14]=(j<<8|j>>>24)&16711935|(j<<24|j>>>8)&4278255360,k.sigBytes=(A.length+1)*4,this._process();for(var H=this._hash,G=H.words,te=0;te<4;te++){var K=G[te];G[te]=(K<<8|K>>>24)&16711935|(K<<24|K>>>8)&4278255360}return H},clone:function(){var k=i.clone.call(this);return k._hash=this._hash.clone(),k}});function d(k,A,L,q,U,j,H){var G=k+(A&L|~A&q)+U+H;return(G<>>32-j)+A}function f(k,A,L,q,U,j,H){var G=k+(A&q|L&~q)+U+H;return(G<>>32-j)+A}function w(k,A,L,q,U,j,H){var G=k+(A^L^q)+U+H;return(G<>>32-j)+A}function E(k,A,L,q,U,j,H){var G=k+(L^(A|~q))+U+H;return(G<>>32-j)+A}t.MD5=i._createHelper(l),t.HmacMD5=i._createHmacHelper(l)}(Math),r.MD5})});var HI=O((zI,HDe)=>{x();T();(function(r,e){typeof zI=="object"?HDe.exports=zI=e(kn()):typeof define=="function"&&define.amd?define(["./core"],e):e(r.CryptoJS)})(zI,function(r){return function(){var e=r,t=e.lib,n=t.WordArray,a=t.Hasher,i=e.algo,s=[],c=i.SHA1=a.extend({_doReset:function(){this._hash=new n.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(l,d){for(var f=this._hash.words,w=f[0],E=f[1],k=f[2],A=f[3],L=f[4],q=0;q<80;q++){if(q<16)s[q]=l[d+q]|0;else{var U=s[q-3]^s[q-8]^s[q-14]^s[q-16];s[q]=U<<1|U>>>31}var j=(w<<5|w>>>27)+L+s[q];q<20?j+=(E&k|~E&A)+1518500249:q<40?j+=(E^k^A)+1859775393:q<60?j+=(E&k|E&A|k&A)-1894007588:j+=(E^k^A)-899497514,L=A,A=k,k=E<<30|E>>>2,E=w,w=j}f[0]=f[0]+w|0,f[1]=f[1]+E|0,f[2]=f[2]+k|0,f[3]=f[3]+A|0,f[4]=f[4]+L|0},_doFinalize:function(){var l=this._data,d=l.words,f=this._nDataBytes*8,w=l.sigBytes*8;return d[w>>>5]|=128<<24-w%32,d[(w+64>>>9<<4)+14]=Math.floor(f/4294967296),d[(w+64>>>9<<4)+15]=f,l.sigBytes=d.length*4,this._process(),this._hash},clone:function(){var l=a.clone.call(this);return l._hash=this._hash.clone(),l}});e.SHA1=a._createHelper(c),e.HmacSHA1=a._createHmacHelper(c)}(),r.SHA1})});var GDe=O((VI,VDe)=>{x();T();(function(r,e,t){typeof VI=="object"?VDe.exports=VI=e(kn(),zT()):typeof define=="function"&&define.amd?define(["./core","./sha256"],e):e(r.CryptoJS)})(VI,function(r){return function(){var e=r,t=e.lib,n=t.WordArray,a=e.algo,i=a.SHA256,s=a.SHA224=i.extend({_doReset:function(){this._hash=new n.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var c=i._doFinalize.call(this);return c.sigBytes-=4,c}});e.SHA224=i._createHelper(s),e.HmacSHA224=i._createHmacHelper(s)}(),r.SHA224})});var AH=O((GI,ZDe)=>{x();T();(function(r,e,t){typeof GI=="object"?ZDe.exports=GI=e(kn(),HT()):typeof define=="function"&&define.amd?define(["./core","./x64-core"],e):e(r.CryptoJS)})(GI,function(r){return function(){var e=r,t=e.lib,n=t.Hasher,a=e.x64,i=a.Word,s=a.WordArray,c=e.algo;function l(){return i.create.apply(i,arguments)}var d=[l(1116352408,3609767458),l(1899447441,602891725),l(3049323471,3964484399),l(3921009573,2173295548),l(961987163,4081628472),l(1508970993,3053834265),l(2453635748,2937671579),l(2870763221,3664609560),l(3624381080,2734883394),l(310598401,1164996542),l(607225278,1323610764),l(1426881987,3590304994),l(1925078388,4068182383),l(2162078206,991336113),l(2614888103,633803317),l(3248222580,3479774868),l(3835390401,2666613458),l(4022224774,944711139),l(264347078,2341262773),l(604807628,2007800933),l(770255983,1495990901),l(1249150122,1856431235),l(1555081692,3175218132),l(1996064986,2198950837),l(2554220882,3999719339),l(2821834349,766784016),l(2952996808,2566594879),l(3210313671,3203337956),l(3336571891,1034457026),l(3584528711,2466948901),l(113926993,3758326383),l(338241895,168717936),l(666307205,1188179964),l(773529912,1546045734),l(1294757372,1522805485),l(1396182291,2643833823),l(1695183700,2343527390),l(1986661051,1014477480),l(2177026350,1206759142),l(2456956037,344077627),l(2730485921,1290863460),l(2820302411,3158454273),l(3259730800,3505952657),l(3345764771,106217008),l(3516065817,3606008344),l(3600352804,1432725776),l(4094571909,1467031594),l(275423344,851169720),l(430227734,3100823752),l(506948616,1363258195),l(659060556,3750685593),l(883997877,3785050280),l(958139571,3318307427),l(1322822218,3812723403),l(1537002063,2003034995),l(1747873779,3602036899),l(1955562222,1575990012),l(2024104815,1125592928),l(2227730452,2716904306),l(2361852424,442776044),l(2428436474,593698344),l(2756734187,3733110249),l(3204031479,2999351573),l(3329325298,3815920427),l(3391569614,3928383900),l(3515267271,566280711),l(3940187606,3454069534),l(4118630271,4000239992),l(116418474,1914138554),l(174292421,2731055270),l(289380356,3203993006),l(460393269,320620315),l(685471733,587496836),l(852142971,1086792851),l(1017036298,365543100),l(1126000580,2618297676),l(1288033470,3409855158),l(1501505948,4234509866),l(1607167915,987167468),l(1816402316,1246189591)],f=[];(function(){for(var E=0;E<80;E++)f[E]=l()})();var w=c.SHA512=n.extend({_doReset:function(){this._hash=new s.init([new i.init(1779033703,4089235720),new i.init(3144134277,2227873595),new i.init(1013904242,4271175723),new i.init(2773480762,1595750129),new i.init(1359893119,2917565137),new i.init(2600822924,725511199),new i.init(528734635,4215389547),new i.init(1541459225,327033209)])},_doProcessBlock:function(E,k){for(var A=this._hash.words,L=A[0],q=A[1],U=A[2],j=A[3],H=A[4],G=A[5],te=A[6],K=A[7],ae=L.high,J=L.low,V=q.high,g=q.low,o=U.high,p=U.low,y=j.high,h=j.low,v=H.high,_=H.low,C=G.high,m=G.low,u=te.high,b=te.low,R=K.high,S=K.low,B=ae,Z=J,W=V,X=g,de=o,ne=p,pe=y,pt=h,fe=v,be=_,Tt=C,we=m,Oe=u,Pt=b,Be=R,ze=S,At=0;At<80;At++){var Me=f[At];if(At<16)var Ve=Me.high=E[k+At*2]|0,St=Me.low=E[k+At*2+1]|0;else{var Ie=f[At-15],Ze=Ie.high,Ut=Ie.low,qe=(Ze>>>1|Ut<<31)^(Ze>>>8|Ut<<24)^Ze>>>7,Xe=(Ut>>>1|Ze<<31)^(Ut>>>8|Ze<<24)^(Ut>>>7|Ze<<25),Ht=f[At-2],Ae=Ht.high,Ke=Ht.low,Gt=(Ae>>>19|Ke<<13)^(Ae<<3|Ke>>>29)^Ae>>>6,Pe=(Ke>>>19|Ae<<13)^(Ke<<3|Ae>>>29)^(Ke>>>6|Ae<<26),Qe=f[At-7],Zt=Qe.high,Re=Qe.low,Ye=f[At-16],Jt=Ye.high,Ne=Ye.low,St=Xe+Re,Ve=qe+Zt+(St>>>0>>0?1:0),St=St+Pe,Ve=Ve+Gt+(St>>>0>>0?1:0),St=St+Ne,Ve=Ve+Jt+(St>>>0>>0?1:0);Me.high=Ve,Me.low=St}var $e=fe&Tt^~fe&Oe,Vt=be&we^~be&Pt,Se=B&W^B&de^W&de,et=Z&X^Z&ne^X&ne,Rt=(B>>>28|Z<<4)^(B<<30|Z>>>2)^(B<<25|Z>>>7),Le=(Z>>>28|B<<4)^(Z<<30|B>>>2)^(Z<<25|B>>>7),tt=(fe>>>14|be<<18)^(fe>>>18|be<<14)^(fe<<23|be>>>9),Kt=(be>>>14|fe<<18)^(be>>>18|fe<<14)^(be<<23|fe>>>9),De=d[At],rt=De.high,Qt=De.low,ke=ze+Kt,Je=Be+tt+(ke>>>0>>0?1:0),ke=ke+Vt,Je=Je+$e+(ke>>>0>>0?1:0),ke=ke+Qt,Je=Je+rt+(ke>>>0>>0?1:0),ke=ke+St,Je=Je+Ve+(ke>>>0>>0?1:0),Xt=Le+et,Ue=Rt+Se+(Xt>>>0>>0?1:0);Be=Oe,ze=Pt,Oe=Tt,Pt=we,Tt=fe,we=be,be=pt+ke|0,fe=pe+Je+(be>>>0>>0?1:0)|0,pe=de,pt=ne,de=W,ne=X,W=B,X=Z,Z=ke+Xt|0,B=Je+Ue+(Z>>>0>>0?1:0)|0}J=L.low=J+Z,L.high=ae+B+(J>>>0>>0?1:0),g=q.low=g+X,q.high=V+W+(g>>>0>>0?1:0),p=U.low=p+ne,U.high=o+de+(p>>>0>>0?1:0),h=j.low=h+pt,j.high=y+pe+(h>>>0>>0?1:0),_=H.low=_+be,H.high=v+fe+(_>>>0>>0?1:0),m=G.low=m+we,G.high=C+Tt+(m>>>0>>0?1:0),b=te.low=b+Pt,te.high=u+Oe+(b>>>0>>0?1:0),S=K.low=S+ze,K.high=R+Be+(S>>>0>>0?1:0)},_doFinalize:function(){var E=this._data,k=E.words,A=this._nDataBytes*8,L=E.sigBytes*8;k[L>>>5]|=128<<24-L%32,k[(L+128>>>10<<5)+30]=Math.floor(A/4294967296),k[(L+128>>>10<<5)+31]=A,E.sigBytes=k.length*4,this._process();var q=this._hash.toX32();return q},clone:function(){var E=n.clone.call(this);return E._hash=this._hash.clone(),E},blockSize:1024/32});e.SHA512=n._createHelper(w),e.HmacSHA512=n._createHmacHelper(w)}(),r.SHA512})});var KDe=O((ZI,JDe)=>{x();T();(function(r,e,t){typeof ZI=="object"?JDe.exports=ZI=e(kn(),HT(),AH()):typeof define=="function"&&define.amd?define(["./core","./x64-core","./sha512"],e):e(r.CryptoJS)})(ZI,function(r){return function(){var e=r,t=e.x64,n=t.Word,a=t.WordArray,i=e.algo,s=i.SHA512,c=i.SHA384=s.extend({_doReset:function(){this._hash=new a.init([new n.init(3418070365,3238371032),new n.init(1654270250,914150663),new n.init(2438529370,812702999),new n.init(355462360,4144912697),new n.init(1731405415,4290775857),new n.init(2394180231,1750603025),new n.init(3675008525,1694076839),new n.init(1203062813,3204075428)])},_doFinalize:function(){var l=s._doFinalize.call(this);return l.sigBytes-=16,l}});e.SHA384=s._createHelper(c),e.HmacSHA384=s._createHmacHelper(c)}(),r.SHA384})});var XDe=O((JI,QDe)=>{x();T();(function(r,e,t){typeof JI=="object"?QDe.exports=JI=e(kn(),HT()):typeof define=="function"&&define.amd?define(["./core","./x64-core"],e):e(r.CryptoJS)})(JI,function(r){return function(e){var t=r,n=t.lib,a=n.WordArray,i=n.Hasher,s=t.x64,c=s.Word,l=t.algo,d=[],f=[],w=[];(function(){for(var A=1,L=0,q=0;q<24;q++){d[A+5*L]=(q+1)*(q+2)/2%64;var U=L%5,j=(2*A+3*L)%5;A=U,L=j}for(var A=0;A<5;A++)for(var L=0;L<5;L++)f[A+5*L]=L+(2*A+3*L)%5*5;for(var H=1,G=0;G<24;G++){for(var te=0,K=0,ae=0;ae<7;ae++){if(H&1){var J=(1<>>24)&16711935|(H<<24|H>>>8)&4278255360,G=(G<<8|G>>>24)&16711935|(G<<24|G>>>8)&4278255360;var te=q[j];te.high^=G,te.low^=H}for(var K=0;K<24;K++){for(var ae=0;ae<5;ae++){for(var J=0,V=0,g=0;g<5;g++){var te=q[ae+5*g];J^=te.high,V^=te.low}var o=E[ae];o.high=J,o.low=V}for(var ae=0;ae<5;ae++)for(var p=E[(ae+4)%5],y=E[(ae+1)%5],h=y.high,v=y.low,J=p.high^(h<<1|v>>>31),V=p.low^(v<<1|h>>>31),g=0;g<5;g++){var te=q[ae+5*g];te.high^=J,te.low^=V}for(var _=1;_<25;_++){var te=q[_],C=te.high,m=te.low,u=d[_];if(u<32)var J=C<>>32-u,V=m<>>32-u;else var J=m<>>64-u,V=C<>>64-u;var b=E[f[_]];b.high=J,b.low=V}var R=E[0],S=q[0];R.high=S.high,R.low=S.low;for(var ae=0;ae<5;ae++)for(var g=0;g<5;g++){var _=ae+5*g,te=q[_],B=E[_],Z=E[(ae+1)%5+5*g],W=E[(ae+2)%5+5*g];te.high=B.high^~Z.high&W.high,te.low=B.low^~Z.low&W.low}var te=q[0],X=w[K];te.high^=X.high,te.low^=X.low}},_doFinalize:function(){var A=this._data,L=A.words,q=this._nDataBytes*8,U=A.sigBytes*8,j=this.blockSize*32;L[U>>>5]|=1<<24-U%32,L[(e.ceil((U+1)/j)*j>>>5)-1]|=128,A.sigBytes=L.length*4,this._process();for(var H=this._state,G=this.cfg.outputLength/8,te=G/8,K=[],ae=0;ae>>24)&16711935|(V<<24|V>>>8)&4278255360,g=(g<<8|g>>>24)&16711935|(g<<24|g>>>8)&4278255360,K.push(g),K.push(V)}return new a.init(K,G)},clone:function(){for(var A=i.clone.call(this),L=A._state=this._state.slice(0),q=0;q<25;q++)L[q]=L[q].clone();return A}});t.SHA3=i._createHelper(k),t.HmacSHA3=i._createHmacHelper(k)}(Math),r.SHA3})});var $De=O((KI,YDe)=>{x();T();(function(r,e){typeof KI=="object"?YDe.exports=KI=e(kn()):typeof define=="function"&&define.amd?define(["./core"],e):e(r.CryptoJS)})(KI,function(r){return function(e){var t=r,n=t.lib,a=n.WordArray,i=n.Hasher,s=t.algo,c=a.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),l=a.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),d=a.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),f=a.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),w=a.create([0,1518500249,1859775393,2400959708,2840853838]),E=a.create([1352829926,1548603684,1836072691,2053994217,0]),k=s.RIPEMD160=i.extend({_doReset:function(){this._hash=a.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(G,te){for(var K=0;K<16;K++){var ae=te+K,J=G[ae];G[ae]=(J<<8|J>>>24)&16711935|(J<<24|J>>>8)&4278255360}var V=this._hash.words,g=w.words,o=E.words,p=c.words,y=l.words,h=d.words,v=f.words,_,C,m,u,b,R,S,B,Z,W;R=_=V[0],S=C=V[1],B=m=V[2],Z=u=V[3],W=b=V[4];for(var X,K=0;K<80;K+=1)X=_+G[te+p[K]]|0,K<16?X+=A(C,m,u)+g[0]:K<32?X+=L(C,m,u)+g[1]:K<48?X+=q(C,m,u)+g[2]:K<64?X+=U(C,m,u)+g[3]:X+=j(C,m,u)+g[4],X=X|0,X=H(X,h[K]),X=X+b|0,_=b,b=u,u=H(m,10),m=C,C=X,X=R+G[te+y[K]]|0,K<16?X+=j(S,B,Z)+o[0]:K<32?X+=U(S,B,Z)+o[1]:K<48?X+=q(S,B,Z)+o[2]:K<64?X+=L(S,B,Z)+o[3]:X+=A(S,B,Z)+o[4],X=X|0,X=H(X,v[K]),X=X+W|0,R=W,W=Z,Z=H(B,10),B=S,S=X;X=V[1]+m+Z|0,V[1]=V[2]+u+W|0,V[2]=V[3]+b+R|0,V[3]=V[4]+_+S|0,V[4]=V[0]+C+B|0,V[0]=X},_doFinalize:function(){var G=this._data,te=G.words,K=this._nDataBytes*8,ae=G.sigBytes*8;te[ae>>>5]|=128<<24-ae%32,te[(ae+64>>>9<<4)+14]=(K<<8|K>>>24)&16711935|(K<<24|K>>>8)&4278255360,G.sigBytes=(te.length+1)*4,this._process();for(var J=this._hash,V=J.words,g=0;g<5;g++){var o=V[g];V[g]=(o<<8|o>>>24)&16711935|(o<<24|o>>>8)&4278255360}return J},clone:function(){var G=i.clone.call(this);return G._hash=this._hash.clone(),G}});function A(G,te,K){return G^te^K}function L(G,te,K){return G&te|~G&K}function q(G,te,K){return(G|~te)^K}function U(G,te,K){return G&K|te&~K}function j(G,te,K){return G^(te|~K)}function H(G,te){return G<>>32-te}t.RIPEMD160=i._createHelper(k),t.HmacRIPEMD160=i._createHmacHelper(k)}(Math),r.RIPEMD160})});var XI=O((QI,eFe)=>{x();T();(function(r,e){typeof QI=="object"?eFe.exports=QI=e(kn()):typeof define=="function"&&define.amd?define(["./core"],e):e(r.CryptoJS)})(QI,function(r){(function(){var e=r,t=e.lib,n=t.Base,a=e.enc,i=a.Utf8,s=e.algo,c=s.HMAC=n.extend({init:function(l,d){l=this._hasher=new l.init,typeof d=="string"&&(d=i.parse(d));var f=l.blockSize,w=f*4;d.sigBytes>w&&(d=l.finalize(d)),d.clamp();for(var E=this._oKey=d.clone(),k=this._iKey=d.clone(),A=E.words,L=k.words,q=0;q{x();T();(function(r,e,t){typeof YI=="object"?tFe.exports=YI=e(kn(),HI(),XI()):typeof define=="function"&&define.amd?define(["./core","./sha1","./hmac"],e):e(r.CryptoJS)})(YI,function(r){return function(){var e=r,t=e.lib,n=t.Base,a=t.WordArray,i=e.algo,s=i.SHA1,c=i.HMAC,l=i.PBKDF2=n.extend({cfg:n.extend({keySize:128/32,hasher:s,iterations:1}),init:function(d){this.cfg=this.cfg.extend(d)},compute:function(d,f){for(var w=this.cfg,E=c.create(w.hasher,d),k=a.create(),A=a.create([1]),L=k.words,q=A.words,U=w.keySize,j=w.iterations;L.length{x();T();(function(r,e,t){typeof $I=="object"?nFe.exports=$I=e(kn(),HI(),XI()):typeof define=="function"&&define.amd?define(["./core","./sha1","./hmac"],e):e(r.CryptoJS)})($I,function(r){return function(){var e=r,t=e.lib,n=t.Base,a=t.WordArray,i=e.algo,s=i.MD5,c=i.EvpKDF=n.extend({cfg:n.extend({keySize:128/32,hasher:s,iterations:1}),init:function(l){this.cfg=this.cfg.extend(l)},compute:function(l,d){for(var f=this.cfg,w=f.hasher.create(),E=a.create(),k=E.words,A=f.keySize,L=f.iterations;k.length{x();T();(function(r,e,t){typeof e9=="object"?aFe.exports=e9=e(kn(),F0()):typeof define=="function"&&define.amd?define(["./core","./evpkdf"],e):e(r.CryptoJS)})(e9,function(r){r.lib.Cipher||function(e){var t=r,n=t.lib,a=n.Base,i=n.WordArray,s=n.BufferedBlockAlgorithm,c=t.enc,l=c.Utf8,d=c.Base64,f=t.algo,w=f.EvpKDF,E=n.Cipher=s.extend({cfg:a.extend(),createEncryptor:function(o,p){return this.create(this._ENC_XFORM_MODE,o,p)},createDecryptor:function(o,p){return this.create(this._DEC_XFORM_MODE,o,p)},init:function(o,p,y){this.cfg=this.cfg.extend(y),this._xformMode=o,this._key=p,this.reset()},reset:function(){s.reset.call(this),this._doReset()},process:function(o){return this._append(o),this._process()},finalize:function(o){o&&this._append(o);var p=this._doFinalize();return p},keySize:128/32,ivSize:128/32,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function o(p){return typeof p=="string"?g:ae}return function(p){return{encrypt:function(y,h,v){return o(h).encrypt(p,y,h,v)},decrypt:function(y,h,v){return o(h).decrypt(p,y,h,v)}}}}()}),k=n.StreamCipher=E.extend({_doFinalize:function(){var o=this._process(!0);return o},blockSize:1}),A=t.mode={},L=n.BlockCipherMode=a.extend({createEncryptor:function(o,p){return this.Encryptor.create(o,p)},createDecryptor:function(o,p){return this.Decryptor.create(o,p)},init:function(o,p){this._cipher=o,this._iv=p}}),q=A.CBC=function(){var o=L.extend();o.Encryptor=o.extend({processBlock:function(y,h){var v=this._cipher,_=v.blockSize;p.call(this,y,h,_),v.encryptBlock(y,h),this._prevBlock=y.slice(h,h+_)}}),o.Decryptor=o.extend({processBlock:function(y,h){var v=this._cipher,_=v.blockSize,C=y.slice(h,h+_);v.decryptBlock(y,h),p.call(this,y,h,_),this._prevBlock=C}});function p(y,h,v){var _=this._iv;if(_){var C=_;this._iv=e}else var C=this._prevBlock;for(var m=0;m>>2]&255;o.sigBytes-=p}},H=n.BlockCipher=E.extend({cfg:E.cfg.extend({mode:q,padding:j}),reset:function(){E.reset.call(this);var o=this.cfg,p=o.iv,y=o.mode;if(this._xformMode==this._ENC_XFORM_MODE)var h=y.createEncryptor;else{var h=y.createDecryptor;this._minBufferSize=1}this._mode&&this._mode.__creator==h?this._mode.init(this,p&&p.words):(this._mode=h.call(y,this,p&&p.words),this._mode.__creator=h)},_doProcessBlock:function(o,p){this._mode.processBlock(o,p)},_doFinalize:function(){var o=this.cfg.padding;if(this._xformMode==this._ENC_XFORM_MODE){o.pad(this._data,this.blockSize);var p=this._process(!0)}else{var p=this._process(!0);o.unpad(p)}return p},blockSize:128/32}),G=n.CipherParams=a.extend({init:function(o){this.mixIn(o)},toString:function(o){return(o||this.formatter).stringify(this)}}),te=t.format={},K=te.OpenSSL={stringify:function(o){var p=o.ciphertext,y=o.salt;if(y)var h=i.create([1398893684,1701076831]).concat(y).concat(p);else var h=p;return h.toString(d)},parse:function(o){var p=d.parse(o),y=p.words;if(y[0]==1398893684&&y[1]==1701076831){var h=i.create(y.slice(2,4));y.splice(0,4),p.sigBytes-=16}return G.create({ciphertext:p,salt:h})}},ae=n.SerializableCipher=a.extend({cfg:a.extend({format:K}),encrypt:function(o,p,y,h){h=this.cfg.extend(h);var v=o.createEncryptor(y,h),_=v.finalize(p),C=v.cfg;return G.create({ciphertext:_,key:y,iv:C.iv,algorithm:o,mode:C.mode,padding:C.padding,blockSize:o.blockSize,formatter:h.format})},decrypt:function(o,p,y,h){h=this.cfg.extend(h),p=this._parse(p,h.format);var v=o.createDecryptor(y,h).finalize(p.ciphertext);return v},_parse:function(o,p){return typeof o=="string"?p.parse(o,this):o}}),J=t.kdf={},V=J.OpenSSL={execute:function(o,p,y,h){h||(h=i.random(64/8));var v=w.create({keySize:p+y}).compute(o,h),_=i.create(v.words.slice(p),y*4);return v.sigBytes=p*4,G.create({key:v,iv:_,salt:h})}},g=n.PasswordBasedCipher=ae.extend({cfg:ae.cfg.extend({kdf:V}),encrypt:function(o,p,y,h){h=this.cfg.extend(h);var v=h.kdf.execute(y,o.keySize,o.ivSize);h.iv=v.iv;var _=ae.encrypt.call(this,o,p,v.key,h);return _.mixIn(v),_},decrypt:function(o,p,y,h){h=this.cfg.extend(h),p=this._parse(p,h.format);var v=h.kdf.execute(y,o.keySize,o.ivSize,p.salt);h.iv=v.iv;var _=ae.decrypt.call(this,o,p,v.key,h);return _}})}()})});var sFe=O((t9,iFe)=>{x();T();(function(r,e,t){typeof t9=="object"?iFe.exports=t9=e(kn(),Hs()):typeof define=="function"&&define.amd?define(["./core","./cipher-core"],e):e(r.CryptoJS)})(t9,function(r){return r.mode.CFB=function(){var e=r.lib.BlockCipherMode.extend();e.Encryptor=e.extend({processBlock:function(n,a){var i=this._cipher,s=i.blockSize;t.call(this,n,a,s,i),this._prevBlock=n.slice(a,a+s)}}),e.Decryptor=e.extend({processBlock:function(n,a){var i=this._cipher,s=i.blockSize,c=n.slice(a,a+s);t.call(this,n,a,s,i),this._prevBlock=c}});function t(n,a,i,s){var c=this._iv;if(c){var l=c.slice(0);this._iv=void 0}else var l=this._prevBlock;s.encryptBlock(l,0);for(var d=0;d{x();T();(function(r,e,t){typeof r9=="object"?oFe.exports=r9=e(kn(),Hs()):typeof define=="function"&&define.amd?define(["./core","./cipher-core"],e):e(r.CryptoJS)})(r9,function(r){return r.mode.CTR=function(){var e=r.lib.BlockCipherMode.extend(),t=e.Encryptor=e.extend({processBlock:function(n,a){var i=this._cipher,s=i.blockSize,c=this._iv,l=this._counter;c&&(l=this._counter=c.slice(0),this._iv=void 0);var d=l.slice(0);i.encryptBlock(d,0),l[s-1]=l[s-1]+1|0;for(var f=0;f{x();T();(function(r,e,t){typeof n9=="object"?uFe.exports=n9=e(kn(),Hs()):typeof define=="function"&&define.amd?define(["./core","./cipher-core"],e):e(r.CryptoJS)})(n9,function(r){return r.mode.CTRGladman=function(){var e=r.lib.BlockCipherMode.extend();function t(i){if((i>>24&255)===255){var s=i>>16&255,c=i>>8&255,l=i&255;s===255?(s=0,c===255?(c=0,l===255?l=0:++l):++c):++s,i=0,i+=s<<16,i+=c<<8,i+=l}else i+=1<<24;return i}function n(i){return(i[0]=t(i[0]))===0&&(i[1]=t(i[1])),i}var a=e.Encryptor=e.extend({processBlock:function(i,s){var c=this._cipher,l=c.blockSize,d=this._iv,f=this._counter;d&&(f=this._counter=d.slice(0),this._iv=void 0),n(f);var w=f.slice(0);c.encryptBlock(w,0);for(var E=0;E{x();T();(function(r,e,t){typeof a9=="object"?dFe.exports=a9=e(kn(),Hs()):typeof define=="function"&&define.amd?define(["./core","./cipher-core"],e):e(r.CryptoJS)})(a9,function(r){return r.mode.OFB=function(){var e=r.lib.BlockCipherMode.extend(),t=e.Encryptor=e.extend({processBlock:function(n,a){var i=this._cipher,s=i.blockSize,c=this._iv,l=this._keystream;c&&(l=this._keystream=c.slice(0),this._iv=void 0),i.encryptBlock(l,0);for(var d=0;d{x();T();(function(r,e,t){typeof i9=="object"?hFe.exports=i9=e(kn(),Hs()):typeof define=="function"&&define.amd?define(["./core","./cipher-core"],e):e(r.CryptoJS)})(i9,function(r){return r.mode.ECB=function(){var e=r.lib.BlockCipherMode.extend();return e.Encryptor=e.extend({processBlock:function(t,n){this._cipher.encryptBlock(t,n)}}),e.Decryptor=e.extend({processBlock:function(t,n){this._cipher.decryptBlock(t,n)}}),e}(),r.mode.ECB})});var yFe=O((s9,mFe)=>{x();T();(function(r,e,t){typeof s9=="object"?mFe.exports=s9=e(kn(),Hs()):typeof define=="function"&&define.amd?define(["./core","./cipher-core"],e):e(r.CryptoJS)})(s9,function(r){return r.pad.AnsiX923={pad:function(e,t){var n=e.sigBytes,a=t*4,i=a-n%a,s=n+i-1;e.clamp(),e.words[s>>>2]|=i<<24-s%4*8,e.sigBytes+=i},unpad:function(e){var t=e.words[e.sigBytes-1>>>2]&255;e.sigBytes-=t}},r.pad.Ansix923})});var vFe=O((o9,gFe)=>{x();T();(function(r,e,t){typeof o9=="object"?gFe.exports=o9=e(kn(),Hs()):typeof define=="function"&&define.amd?define(["./core","./cipher-core"],e):e(r.CryptoJS)})(o9,function(r){return r.pad.Iso10126={pad:function(e,t){var n=t*4,a=n-e.sigBytes%n;e.concat(r.lib.WordArray.random(a-1)).concat(r.lib.WordArray.create([a<<24],1))},unpad:function(e){var t=e.words[e.sigBytes-1>>>2]&255;e.sigBytes-=t}},r.pad.Iso10126})});var wFe=O((c9,bFe)=>{x();T();(function(r,e,t){typeof c9=="object"?bFe.exports=c9=e(kn(),Hs()):typeof define=="function"&&define.amd?define(["./core","./cipher-core"],e):e(r.CryptoJS)})(c9,function(r){return r.pad.Iso97971={pad:function(e,t){e.concat(r.lib.WordArray.create([2147483648],1)),r.pad.ZeroPadding.pad(e,t)},unpad:function(e){r.pad.ZeroPadding.unpad(e),e.sigBytes--}},r.pad.Iso97971})});var TFe=O((u9,xFe)=>{x();T();(function(r,e,t){typeof u9=="object"?xFe.exports=u9=e(kn(),Hs()):typeof define=="function"&&define.amd?define(["./core","./cipher-core"],e):e(r.CryptoJS)})(u9,function(r){return r.pad.ZeroPadding={pad:function(e,t){var n=t*4;e.clamp(),e.sigBytes+=n-(e.sigBytes%n||n)},unpad:function(e){for(var t=e.words,n=e.sigBytes-1;!(t[n>>>2]>>>24-n%4*8&255);)n--;e.sigBytes=n+1}},r.pad.ZeroPadding})});var CFe=O((l9,_Fe)=>{x();T();(function(r,e,t){typeof l9=="object"?_Fe.exports=l9=e(kn(),Hs()):typeof define=="function"&&define.amd?define(["./core","./cipher-core"],e):e(r.CryptoJS)})(l9,function(r){return r.pad.NoPadding={pad:function(){},unpad:function(){}},r.pad.NoPadding})});var kFe=O((d9,EFe)=>{x();T();(function(r,e,t){typeof d9=="object"?EFe.exports=d9=e(kn(),Hs()):typeof define=="function"&&define.amd?define(["./core","./cipher-core"],e):e(r.CryptoJS)})(d9,function(r){return function(e){var t=r,n=t.lib,a=n.CipherParams,i=t.enc,s=i.Hex,c=t.format,l=c.Hex={stringify:function(d){return d.ciphertext.toString(s)},parse:function(d){var f=s.parse(d);return a.create({ciphertext:f})}}}(),r.format.Hex})});var AFe=O((p9,SFe)=>{x();T();(function(r,e,t){typeof p9=="object"?SFe.exports=p9=e(kn(),mv(),yv(),F0(),Hs()):typeof define=="function"&&define.amd?define(["./core","./enc-base64","./md5","./evpkdf","./cipher-core"],e):e(r.CryptoJS)})(p9,function(r){return function(){var e=r,t=e.lib,n=t.BlockCipher,a=e.algo,i=[],s=[],c=[],l=[],d=[],f=[],w=[],E=[],k=[],A=[];(function(){for(var U=[],j=0;j<256;j++)j<128?U[j]=j<<1:U[j]=j<<1^283;for(var H=0,G=0,j=0;j<256;j++){var te=G^G<<1^G<<2^G<<3^G<<4;te=te>>>8^te&255^99,i[H]=te,s[te]=H;var K=U[H],ae=U[K],J=U[ae],V=U[te]*257^te*16843008;c[H]=V<<24|V>>>8,l[H]=V<<16|V>>>16,d[H]=V<<8|V>>>24,f[H]=V;var V=J*16843009^ae*65537^K*257^H*16843008;w[te]=V<<24|V>>>8,E[te]=V<<16|V>>>16,k[te]=V<<8|V>>>24,A[te]=V,H?(H=K^U[U[U[J^K]]],G^=U[U[G]]):H=G=1}})();var L=[0,1,2,4,8,16,32,64,128,27,54],q=a.AES=n.extend({_doReset:function(){if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var U=this._keyPriorReset=this._key,j=U.words,H=U.sigBytes/4,G=this._nRounds=H+6,te=(G+1)*4,K=this._keySchedule=[],ae=0;ae6&&ae%H==4&&(J=i[J>>>24]<<24|i[J>>>16&255]<<16|i[J>>>8&255]<<8|i[J&255]):(J=J<<8|J>>>24,J=i[J>>>24]<<24|i[J>>>16&255]<<16|i[J>>>8&255]<<8|i[J&255],J^=L[ae/H|0]<<24),K[ae]=K[ae-H]^J}for(var V=this._invKeySchedule=[],g=0;g>>24]]^E[i[J>>>16&255]]^k[i[J>>>8&255]]^A[i[J&255]]}}},encryptBlock:function(U,j){this._doCryptBlock(U,j,this._keySchedule,c,l,d,f,i)},decryptBlock:function(U,j){var H=U[j+1];U[j+1]=U[j+3],U[j+3]=H,this._doCryptBlock(U,j,this._invKeySchedule,w,E,k,A,s);var H=U[j+1];U[j+1]=U[j+3],U[j+3]=H},_doCryptBlock:function(U,j,H,G,te,K,ae,J){for(var V=this._nRounds,g=U[j]^H[0],o=U[j+1]^H[1],p=U[j+2]^H[2],y=U[j+3]^H[3],h=4,v=1;v>>24]^te[o>>>16&255]^K[p>>>8&255]^ae[y&255]^H[h++],C=G[o>>>24]^te[p>>>16&255]^K[y>>>8&255]^ae[g&255]^H[h++],m=G[p>>>24]^te[y>>>16&255]^K[g>>>8&255]^ae[o&255]^H[h++],u=G[y>>>24]^te[g>>>16&255]^K[o>>>8&255]^ae[p&255]^H[h++];g=_,o=C,p=m,y=u}var _=(J[g>>>24]<<24|J[o>>>16&255]<<16|J[p>>>8&255]<<8|J[y&255])^H[h++],C=(J[o>>>24]<<24|J[p>>>16&255]<<16|J[y>>>8&255]<<8|J[g&255])^H[h++],m=(J[p>>>24]<<24|J[y>>>16&255]<<16|J[g>>>8&255]<<8|J[o&255])^H[h++],u=(J[y>>>24]<<24|J[g>>>16&255]<<16|J[o>>>8&255]<<8|J[p&255])^H[h++];U[j]=_,U[j+1]=C,U[j+2]=m,U[j+3]=u},keySize:256/32});e.AES=n._createHelper(q)}(),r.AES})});var IFe=O((h9,MFe)=>{x();T();(function(r,e,t){typeof h9=="object"?MFe.exports=h9=e(kn(),mv(),yv(),F0(),Hs()):typeof define=="function"&&define.amd?define(["./core","./enc-base64","./md5","./evpkdf","./cipher-core"],e):e(r.CryptoJS)})(h9,function(r){return function(){var e=r,t=e.lib,n=t.WordArray,a=t.BlockCipher,i=e.algo,s=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],c=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],l=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],d=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],f=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],w=i.DES=a.extend({_doReset:function(){for(var L=this._key,q=L.words,U=[],j=0;j<56;j++){var H=s[j]-1;U[j]=q[H>>>5]>>>31-H%32&1}for(var G=this._subKeys=[],te=0;te<16;te++){for(var K=G[te]=[],ae=l[te],j=0;j<24;j++)K[j/6|0]|=U[(c[j]-1+ae)%28]<<31-j%6,K[4+(j/6|0)]|=U[28+(c[j+24]-1+ae)%28]<<31-j%6;K[0]=K[0]<<1|K[0]>>>31;for(var j=1;j<7;j++)K[j]=K[j]>>>(j-1)*4+3;K[7]=K[7]<<5|K[7]>>>27}for(var J=this._invSubKeys=[],j=0;j<16;j++)J[j]=G[15-j]},encryptBlock:function(L,q){this._doCryptBlock(L,q,this._subKeys)},decryptBlock:function(L,q){this._doCryptBlock(L,q,this._invSubKeys)},_doCryptBlock:function(L,q,U){this._lBlock=L[q],this._rBlock=L[q+1],E.call(this,4,252645135),E.call(this,16,65535),k.call(this,2,858993459),k.call(this,8,16711935),E.call(this,1,1431655765);for(var j=0;j<16;j++){for(var H=U[j],G=this._lBlock,te=this._rBlock,K=0,ae=0;ae<8;ae++)K|=d[ae][((te^H[ae])&f[ae])>>>0];this._lBlock=te,this._rBlock=G^K}var J=this._lBlock;this._lBlock=this._rBlock,this._rBlock=J,E.call(this,1,1431655765),k.call(this,8,16711935),k.call(this,2,858993459),E.call(this,16,65535),E.call(this,4,252645135),L[q]=this._lBlock,L[q+1]=this._rBlock},keySize:64/32,ivSize:64/32,blockSize:64/32});function E(L,q){var U=(this._lBlock>>>L^this._rBlock)&q;this._rBlock^=U,this._lBlock^=U<>>L^this._lBlock)&q;this._lBlock^=U,this._rBlock^=U<{x();T();(function(r,e,t){typeof f9=="object"?PFe.exports=f9=e(kn(),mv(),yv(),F0(),Hs()):typeof define=="function"&&define.amd?define(["./core","./enc-base64","./md5","./evpkdf","./cipher-core"],e):e(r.CryptoJS)})(f9,function(r){return function(){var e=r,t=e.lib,n=t.StreamCipher,a=e.algo,i=a.RC4=n.extend({_doReset:function(){for(var l=this._key,d=l.words,f=l.sigBytes,w=this._S=[],E=0;E<256;E++)w[E]=E;for(var E=0,k=0;E<256;E++){var A=E%f,L=d[A>>>2]>>>24-A%4*8&255;k=(k+w[E]+L)%256;var q=w[E];w[E]=w[k],w[k]=q}this._i=this._j=0},_doProcessBlock:function(l,d){l[d]^=s.call(this)},keySize:256/32,ivSize:0});function s(){for(var l=this._S,d=this._i,f=this._j,w=0,E=0;E<4;E++){d=(d+1)%256,f=(f+l[d])%256;var k=l[d];l[d]=l[f],l[f]=k,w|=l[(l[d]+l[f])%256]<<24-E*8}return this._i=d,this._j=f,w}e.RC4=n._createHelper(i);var c=a.RC4Drop=i.extend({cfg:i.cfg.extend({drop:192}),_doReset:function(){i._doReset.call(this);for(var l=this.cfg.drop;l>0;l--)s.call(this)}});e.RC4Drop=n._createHelper(c)}(),r.RC4})});var OFe=O((m9,NFe)=>{x();T();(function(r,e,t){typeof m9=="object"?NFe.exports=m9=e(kn(),mv(),yv(),F0(),Hs()):typeof define=="function"&&define.amd?define(["./core","./enc-base64","./md5","./evpkdf","./cipher-core"],e):e(r.CryptoJS)})(m9,function(r){return function(){var e=r,t=e.lib,n=t.StreamCipher,a=e.algo,i=[],s=[],c=[],l=a.Rabbit=n.extend({_doReset:function(){for(var f=this._key.words,w=this.cfg.iv,E=0;E<4;E++)f[E]=(f[E]<<8|f[E]>>>24)&16711935|(f[E]<<24|f[E]>>>8)&4278255360;var k=this._X=[f[0],f[3]<<16|f[2]>>>16,f[1],f[0]<<16|f[3]>>>16,f[2],f[1]<<16|f[0]>>>16,f[3],f[2]<<16|f[1]>>>16],A=this._C=[f[2]<<16|f[2]>>>16,f[0]&4294901760|f[1]&65535,f[3]<<16|f[3]>>>16,f[1]&4294901760|f[2]&65535,f[0]<<16|f[0]>>>16,f[2]&4294901760|f[3]&65535,f[1]<<16|f[1]>>>16,f[3]&4294901760|f[0]&65535];this._b=0;for(var E=0;E<4;E++)d.call(this);for(var E=0;E<8;E++)A[E]^=k[E+4&7];if(w){var L=w.words,q=L[0],U=L[1],j=(q<<8|q>>>24)&16711935|(q<<24|q>>>8)&4278255360,H=(U<<8|U>>>24)&16711935|(U<<24|U>>>8)&4278255360,G=j>>>16|H&4294901760,te=H<<16|j&65535;A[0]^=j,A[1]^=G,A[2]^=H,A[3]^=te,A[4]^=j,A[5]^=G,A[6]^=H,A[7]^=te;for(var E=0;E<4;E++)d.call(this)}},_doProcessBlock:function(f,w){var E=this._X;d.call(this),i[0]=E[0]^E[5]>>>16^E[3]<<16,i[1]=E[2]^E[7]>>>16^E[5]<<16,i[2]=E[4]^E[1]>>>16^E[7]<<16,i[3]=E[6]^E[3]>>>16^E[1]<<16;for(var k=0;k<4;k++)i[k]=(i[k]<<8|i[k]>>>24)&16711935|(i[k]<<24|i[k]>>>8)&4278255360,f[w+k]^=i[k]},blockSize:128/32,ivSize:64/32});function d(){for(var f=this._X,w=this._C,E=0;E<8;E++)s[E]=w[E];w[0]=w[0]+1295307597+this._b|0,w[1]=w[1]+3545052371+(w[0]>>>0>>0?1:0)|0,w[2]=w[2]+886263092+(w[1]>>>0>>0?1:0)|0,w[3]=w[3]+1295307597+(w[2]>>>0>>0?1:0)|0,w[4]=w[4]+3545052371+(w[3]>>>0>>0?1:0)|0,w[5]=w[5]+886263092+(w[4]>>>0>>0?1:0)|0,w[6]=w[6]+1295307597+(w[5]>>>0>>0?1:0)|0,w[7]=w[7]+3545052371+(w[6]>>>0>>0?1:0)|0,this._b=w[7]>>>0>>0?1:0;for(var E=0;E<8;E++){var k=f[E]+w[E],A=k&65535,L=k>>>16,q=((A*A>>>17)+A*L>>>15)+L*L,U=((k&4294901760)*k|0)+((k&65535)*k|0);c[E]=q^U}f[0]=c[0]+(c[7]<<16|c[7]>>>16)+(c[6]<<16|c[6]>>>16)|0,f[1]=c[1]+(c[0]<<8|c[0]>>>24)+c[7]|0,f[2]=c[2]+(c[1]<<16|c[1]>>>16)+(c[0]<<16|c[0]>>>16)|0,f[3]=c[3]+(c[2]<<8|c[2]>>>24)+c[1]|0,f[4]=c[4]+(c[3]<<16|c[3]>>>16)+(c[2]<<16|c[2]>>>16)|0,f[5]=c[5]+(c[4]<<8|c[4]>>>24)+c[3]|0,f[6]=c[6]+(c[5]<<16|c[5]>>>16)+(c[4]<<16|c[4]>>>16)|0,f[7]=c[7]+(c[6]<<8|c[6]>>>24)+c[5]|0}e.Rabbit=n._createHelper(l)}(),r.Rabbit})});var BFe=O((y9,LFe)=>{x();T();(function(r,e,t){typeof y9=="object"?LFe.exports=y9=e(kn(),mv(),yv(),F0(),Hs()):typeof define=="function"&&define.amd?define(["./core","./enc-base64","./md5","./evpkdf","./cipher-core"],e):e(r.CryptoJS)})(y9,function(r){return function(){var e=r,t=e.lib,n=t.StreamCipher,a=e.algo,i=[],s=[],c=[],l=a.RabbitLegacy=n.extend({_doReset:function(){var f=this._key.words,w=this.cfg.iv,E=this._X=[f[0],f[3]<<16|f[2]>>>16,f[1],f[0]<<16|f[3]>>>16,f[2],f[1]<<16|f[0]>>>16,f[3],f[2]<<16|f[1]>>>16],k=this._C=[f[2]<<16|f[2]>>>16,f[0]&4294901760|f[1]&65535,f[3]<<16|f[3]>>>16,f[1]&4294901760|f[2]&65535,f[0]<<16|f[0]>>>16,f[2]&4294901760|f[3]&65535,f[1]<<16|f[1]>>>16,f[3]&4294901760|f[0]&65535];this._b=0;for(var A=0;A<4;A++)d.call(this);for(var A=0;A<8;A++)k[A]^=E[A+4&7];if(w){var L=w.words,q=L[0],U=L[1],j=(q<<8|q>>>24)&16711935|(q<<24|q>>>8)&4278255360,H=(U<<8|U>>>24)&16711935|(U<<24|U>>>8)&4278255360,G=j>>>16|H&4294901760,te=H<<16|j&65535;k[0]^=j,k[1]^=G,k[2]^=H,k[3]^=te,k[4]^=j,k[5]^=G,k[6]^=H,k[7]^=te;for(var A=0;A<4;A++)d.call(this)}},_doProcessBlock:function(f,w){var E=this._X;d.call(this),i[0]=E[0]^E[5]>>>16^E[3]<<16,i[1]=E[2]^E[7]>>>16^E[5]<<16,i[2]=E[4]^E[1]>>>16^E[7]<<16,i[3]=E[6]^E[3]>>>16^E[1]<<16;for(var k=0;k<4;k++)i[k]=(i[k]<<8|i[k]>>>24)&16711935|(i[k]<<24|i[k]>>>8)&4278255360,f[w+k]^=i[k]},blockSize:128/32,ivSize:64/32});function d(){for(var f=this._X,w=this._C,E=0;E<8;E++)s[E]=w[E];w[0]=w[0]+1295307597+this._b|0,w[1]=w[1]+3545052371+(w[0]>>>0>>0?1:0)|0,w[2]=w[2]+886263092+(w[1]>>>0>>0?1:0)|0,w[3]=w[3]+1295307597+(w[2]>>>0>>0?1:0)|0,w[4]=w[4]+3545052371+(w[3]>>>0>>0?1:0)|0,w[5]=w[5]+886263092+(w[4]>>>0>>0?1:0)|0,w[6]=w[6]+1295307597+(w[5]>>>0>>0?1:0)|0,w[7]=w[7]+3545052371+(w[6]>>>0>>0?1:0)|0,this._b=w[7]>>>0>>0?1:0;for(var E=0;E<8;E++){var k=f[E]+w[E],A=k&65535,L=k>>>16,q=((A*A>>>17)+A*L>>>15)+L*L,U=((k&4294901760)*k|0)+((k&65535)*k|0);c[E]=q^U}f[0]=c[0]+(c[7]<<16|c[7]>>>16)+(c[6]<<16|c[6]>>>16)|0,f[1]=c[1]+(c[0]<<8|c[0]>>>24)+c[7]|0,f[2]=c[2]+(c[1]<<16|c[1]>>>16)+(c[0]<<16|c[0]>>>16)|0,f[3]=c[3]+(c[2]<<8|c[2]>>>24)+c[1]|0,f[4]=c[4]+(c[3]<<16|c[3]>>>16)+(c[2]<<16|c[2]>>>16)|0,f[5]=c[5]+(c[4]<<8|c[4]>>>24)+c[3]|0,f[6]=c[6]+(c[5]<<16|c[5]>>>16)+(c[4]<<16|c[4]>>>16)|0,f[7]=c[7]+(c[6]<<8|c[6]>>>24)+c[5]|0}e.RabbitLegacy=n._createHelper(l)}(),r.RabbitLegacy})});var DFe=O((g9,qFe)=>{x();T();(function(r,e,t){typeof g9=="object"?qFe.exports=g9=e(kn(),HT(),FDe(),WDe(),mv(),yv(),HI(),zT(),GDe(),AH(),KDe(),XDe(),$De(),XI(),rFe(),F0(),Hs(),sFe(),cFe(),lFe(),pFe(),fFe(),yFe(),vFe(),wFe(),TFe(),CFe(),kFe(),AFe(),IFe(),RFe(),OFe(),BFe()):typeof define=="function"&&define.amd?define(["./core","./x64-core","./lib-typedarrays","./enc-utf16","./enc-base64","./md5","./sha1","./sha256","./sha224","./sha512","./sha384","./sha3","./ripemd160","./hmac","./pbkdf2","./evpkdf","./cipher-core","./mode-cfb","./mode-ctr","./mode-ctr-gladman","./mode-ofb","./mode-ecb","./pad-ansix923","./pad-iso10126","./pad-iso97971","./pad-zeropadding","./pad-nopadding","./format-hex","./aes","./tripledes","./rc4","./rabbit","./rabbit-legacy"],e):r.CryptoJS=e(r.CryptoJS)})(g9,function(r){return r})});var IH=O(gv=>{"use strict";x();T();var Pnr=gv&&gv.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(gv,"__esModule",{value:!0});gv.Base=void 0;var ld=$i(),MH=Pnr(DFe()),Ah=class{print(){Ah.print(this)}_bufferIndexOf(e,t){for(let n=0;n{let n=e(t);return ld.Buffer.isBuffer(n)?n:this._isHexString(n)?ld.Buffer.from(n.replace("0x",""),"hex"):typeof n=="string"?ld.Buffer.from(n):ArrayBuffer.isView(n)?ld.Buffer.from(n.buffer,n.byteOffset,n.byteLength):ld.Buffer.from(e(MH.default.enc.Hex.parse(t.toString("hex"))).toString(MH.default.enc.Hex),"hex")}}_isHexString(e){return Ah.isHexString(e)}_log2(e){return e===1?0:1+this._log2(e/2|0)}_zip(e,t){return e.map((n,a)=>[n,t[a]])}};gv.Base=Ah;gv.default=Ah});var UFe=O(vv=>{"use strict";x();T();var v9=vv&&vv.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(vv,"__esModule",{value:!0});vv.MerkleTree=void 0;var mi=$i(),Kf=v9(RDe()),FFe=v9(zT()),Rnr=v9(BDe()),Nnr=v9(IH()),bu=class extends Nnr.default{constructor(e,t=FFe.default,n={}){if(super(),this.duplicateOdd=!1,this.hashLeaves=!1,this.isBitcoinTree=!1,this.leaves=[],this.layers=[],this.sortLeaves=!1,this.sortPairs=!1,this.sort=!1,this.fillDefaultHash=null,this.isBitcoinTree=!!n.isBitcoinTree,this.hashLeaves=!!n.hashLeaves,this.sortLeaves=!!n.sortLeaves,this.sortPairs=!!n.sortPairs,n.fillDefaultHash)if(typeof n.fillDefaultHash=="function")this.fillDefaultHash=n.fillDefaultHash;else if(mi.Buffer.isBuffer(n.fillDefaultHash)||typeof n.fillDefaultHash=="string")this.fillDefaultHash=(a,i)=>n.fillDefaultHash;else throw new Error('method "fillDefaultHash" must be a function, Buffer, or string');this.sort=!!n.sort,this.sort&&(this.sortLeaves=!0,this.sortPairs=!0),this.duplicateOdd=!!n.duplicateOdd,this.hashFn=this.bufferifyFn(t),this.processLeaves(e)}processLeaves(e){if(this.hashLeaves&&(e=e.map(this.hashFn)),this.leaves=e.map(this.bufferify),this.sortLeaves&&(this.leaves=this.leaves.sort(mi.Buffer.compare)),this.fillDefaultHash)for(let t=0;t=this.leaves.length&&this.leaves.push(this.bufferify(this.fillDefaultHash(t,this.hashFn)));this.layers=[this.leaves],this._createHashes(this.leaves)}_createHashes(e){for(;e.length>1;){let t=this.layers.length;this.layers.push([]);for(let n=0;nthis._bufferIndexOf(e,t)!==-1)):this.leaves}getLeaf(e){return e<0||e>this.leaves.length-1?mi.Buffer.from([]):this.leaves[e]}getLeafIndex(e){e=this.bufferify(e);let t=this.getLeaves();for(let n=0;nthis.bufferToHex(e))}static marshalLeaves(e){return JSON.stringify(e.map(t=>bu.bufferToHex(t)),null,2)}static unmarshalLeaves(e){let t=null;if(typeof e=="string")t=JSON.parse(e);else if(e instanceof Object)t=e;else throw new Error("Expected type of string or object");if(!t)return[];if(!Array.isArray(t))throw new Error("Expected JSON string to be array");return t.map(bu.bufferify)}getLayers(){return this.layers}getHexLayers(){return this.layers.reduce((e,t)=>(Array.isArray(t)?e.push(t.map(n=>this.bufferToHex(n))):e.push(t),e),[])}getLayersFlat(){let e=this.layers.reduce((t,n)=>(Array.isArray(n)?t.unshift(...n):t.unshift(n),t),[]);return e.unshift(mi.Buffer.from([0])),e}getHexLayersFlat(){return this.getLayersFlat().map(e=>this.bufferToHex(e))}getLayerCount(){return this.getLayers().length}getRoot(){return this.layers.length===0?mi.Buffer.from([]):this.layers[this.layers.length-1][0]||mi.Buffer.from([])}getHexRoot(){return this.bufferToHex(this.getRoot())}getProof(e,t){if(typeof e>"u")throw new Error("leaf is required");e=this.bufferify(e);let n=[];if(!Number.isInteger(t)){t=-1;for(let a=0;athis.bufferToHex(n.data))}getPositionalHexProof(e,t){return this.getProof(e,t).map(n=>[n.position==="left"?0:1,this.bufferToHex(n.data)])}static marshalProof(e){let t=e.map(n=>typeof n=="string"?n:mi.Buffer.isBuffer(n)?bu.bufferToHex(n):{position:n.position,data:bu.bufferToHex(n.data)});return JSON.stringify(t,null,2)}static unmarshalProof(e){let t=null;if(typeof e=="string")t=JSON.parse(e);else if(e instanceof Object)t=e;else throw new Error("Expected type of string or object");if(!t)return[];if(!Array.isArray(t))throw new Error("Expected JSON string to be array");return t.map(n=>{if(typeof n=="string")return bu.bufferify(n);if(n instanceof Object)return{position:n.position,data:bu.bufferify(n.data)};throw new Error("Expected item to be of type string or object")})}getProofIndices(e,t){let n=Math.pow(2,t),a=new Set;for(let d of e){let f=n+d;for(;f>1;)a.add(f^1),f=f/2|0}let i=e.map(d=>n+d),s=Array.from(a).sort((d,f)=>d-f).reverse();a=i.concat(s);let c=new Set,l=[];for(let d of a)if(!c.has(d))for(l.push(d);d>1&&(c.add(d),!!c.has(d^1));)d=d/2|0;return l.filter(d=>!e.includes(d-n))}getProofIndicesForUnevenTree(e,t){let n=Math.ceil(Math.log2(t)),a=[];for(let c=0;cw%2===0?w+1:w-1).filter(w=>!s.includes(w)),f=a.find(({index:w})=>w===c);f&&s.includes(f.leavesCount-1)&&(d=d.slice(0,-1)),i.push(d),s=[...new Set(s.map(w=>w%2===0?w/2:w%2===0?(w+1)/2:(w-1)/2))]}return i}getMultiProof(e,t){if(t||(t=e,e=this.getLayersFlat()),this.isUnevenTree()&&t.every(Number.isInteger))return this.getMultiProofForUnevenTree(t);if(!t.every(Number.isInteger)){let a=t;this.sortPairs&&(a=a.sort(mi.Buffer.compare));let i=a.map(d=>this._bufferIndexOf(this.leaves,d)).sort((d,f)=>d===f?0:d>f?1:-1);if(!i.every(d=>d!==-1))throw new Error("Element does not exist in Merkle tree");let s=[],c=[],l=[];for(let d=0;dk.indexOf(w)===E),l=[]}return c.filter(d=>!s.includes(d))}return this.getProofIndices(t,this._log2(e.length/2|0)).map(a=>e[a])}getMultiProofForUnevenTree(e,t){t||(t=e,e=this.getLayers());let n=[],a=t;for(let i of e){let s=[];for(let l of a){if(l%2===0){let f=l+1;if(!a.includes(f)&&i[f]){s.push(i[f]);continue}}let d=l-1;if(!a.includes(d)&&i[d]){s.push(i[d]);continue}}n=n.concat(s);let c=new Set;for(let l of a){if(l%2===0){c.add(l/2);continue}if(l%2===0){c.add((l+1)/2);continue}c.add((l-1)/2)}a=Array.from(c)}return n}getHexMultiProof(e,t){return this.getMultiProof(e,t).map(n=>this.bufferToHex(n))}getProofFlags(e,t){if(!Array.isArray(e)||e.length<=0)throw new Error("Invalid Inputs!");let n;if(e.every(Number.isInteger)?n=e.sort((c,l)=>c===l?0:c>l?1:-1):n=e.map(c=>this._bufferIndexOf(this.leaves,c)).sort((c,l)=>c===l?0:c>l?1:-1),!n.every(c=>c!==-1))throw new Error("Element does not exist in Merkle tree");let a=t.map(c=>this.bufferify(c)),i=[],s=[];for(let c=0;c{if(!i.includes(l[f])){let E=this._getPairNode(l,f),k=a.includes(l[f])||a.includes(E);E&&s.push(!k),i.push(l[f]),i.push(E)}return d.push(f/2|0),d},[])}return s}verify(e,t,n){let a=this.bufferify(t);if(n=this.bufferify(n),!Array.isArray(e)||!t||!n)return!1;for(let i=0;ithis.bufferify(w)),i=i.map(w=>this.bufferify(w));let l={};for(let[w,E]of this._zip(t,n))l[Math.pow(2,c)+w]=E;for(let[w,E]of this._zip(this.getProofIndices(t,c),i))l[w]=E;let d=Object.keys(l).map(w=>+w).sort((w,E)=>w-E);d=d.slice(0,d.length-1);let f=0;for(;f=2&&{}.hasOwnProperty.call(l,w^1)){let E=[l[w-w%2],l[w-w%2+1]];this.sortPairs&&(E=E.sort(mi.Buffer.compare));let k=E[1]?this.hashFn(mi.Buffer.concat(E)):E[0];l[w/2|0]=k,d.push(w/2|0)}f+=1}return!t.length||{}.hasOwnProperty.call(l,1)&&l[1].equals(e)}verifyMultiProofWithFlags(e,t,n,a){e=this.bufferify(e),t=t.map(this.bufferify),n=n.map(this.bufferify);let i=t.length,s=a.length,c=[],l=0,d=0,f=0;for(let w=0;wthis.bufferify(c)),i=i.map(c=>this.bufferify(c));let s=this.calculateRootForUnevenTree(t,n,a,i);return e.equals(s)}getDepth(){return this.getLayers().length-1}getLayersAsObject(){let e=this.getLayers().map(n=>n.map(a=>this.bufferToHex(a,!1))),t=[];for(let n=0;nw-E),s=i.map(([w])=>w),c=this.getProofIndicesForUnevenTree(s,n),l=0,d=[];for(let w=0;wq-U).map(([,q])=>q),k=f[w].map(([q])=>q),A=[...new Set(k.map(q=>q%2===0?q/2:q%2===0?(q+1)/2:(q-1)/2))],L=[];for(let q=0;q{"use strict";x();T();var WFe=bv&&bv.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(bv,"__esModule",{value:!0});bv.MerkleMountainRange=void 0;var VT=$i(),Onr=WFe(zT()),Lnr=WFe(IH()),b9=class extends Lnr.default{constructor(e=Onr.default,t=[],n,a,i){super(),this.root=VT.Buffer.alloc(0),this.size=0,this.width=0,this.hashes={},this.data={},t=t.map(this.bufferify),this.hashFn=this.bufferifyFn(e),this.hashLeafFn=n,this.peakBaggingFn=a,this.hashBranchFn=i;for(let s of t)this.append(s)}append(e){e=this.bufferify(e);let t=this.hashFn(e),n=this.bufferToHex(t);(!this.data[n]||this.bufferToHex(this.hashFn(this.data[n]))!==n)&&(this.data[n]=e);let a=this.hashLeaf(this.size+1,t);this.hashes[this.size+1]=a,this.width+=1;let i=this.getPeakIndexes(this.width);this.size=this.getSize(this.width);let s=[];for(let c=0;c0&&!((e&1<=t));s--);if(a!==n.length)throw new Error("invalid bit calculation");return n}numOfPeaks(e){let t=e,n=0;for(;t>0;)t%2===1&&n++,t=t>>1;return n}peakBagging(e,t){let n=this.getSize(e);if(this.numOfPeaks(e)!==t.length)throw new Error("received invalid number of peaks");return e===0&&!t.length?VT.Buffer.alloc(0):this.peakBaggingFn?this.bufferify(this.peakBaggingFn(n,t)):this.hashFn(VT.Buffer.concat([this.bufferify(n),...t.map(this.bufferify)]))}getSize(e){return(e<<1)-this.numOfPeaks(e)}getRoot(){return this.root}getHexRoot(){return this.bufferToHex(this.getRoot())}getNode(e){return this.hashes[e]}mountainHeight(e){let t=1;for(;1<n;)t-=(1<this.size)throw new Error("out of range");if(!this.isLeaf(e))throw new Error("not a leaf");let t=this.root,n=this.width,a=this.getPeakIndexes(this.width),i=[],s=0;for(let w=0;w=e&&s===0&&(s=a[w]);let c=0,l=0,d=this.heightAt(s),f=[];for(;s!==e;)d--,[c,l]=this.getChildren(s),s=e<=c?c:l,f[d-1]=this.hashes[e<=c?l:c];return{root:t,width:n,peakBagging:i,siblings:f}}verify(e,t,n,a,i,s){if(a=this.bufferify(a),this.getSize(t)=n){d=i[q],l=f[q];break}if(!d)throw new Error("target not found");let w=s.length+1,E=new Array(w),k=0,A=0;for(;w>0&&(E[--w]=l,l!==n);)[k,A]=this.getChildren(l),l=n>k?A:k;let L;for(;wthis.size)throw new Error("out of range");if(!this.hashes[e]){let[t,n]=this.getChildren(e),a=this._getOrCreateNode(t),i=this._getOrCreateNode(n);this.hashes[e]=this.hashBranch(e,a,i)}return this.hashes[e]}};bv.MerkleMountainRange=b9;bv.default=b9});var Fa=O(U0=>{"use strict";x();T();var Bnr=U0&&U0.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(U0,"__esModule",{value:!0});U0.MerkleTree=void 0;var zFe=Bnr(UFe());U0.MerkleTree=zFe.default;var qnr=jFe();Object.defineProperty(U0,"MerkleMountainRange",{enumerable:!0,get:function(){return qnr.MerkleMountainRange}});U0.default=zFe.default});var Ua=O((acn,HFe)=>{"use strict";x();T();HFe.exports=function r(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var n,a,i;if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(a=n;a--!==0;)if(!r(e[a],t[a]))return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(a=n;a--!==0;)if(!Object.prototype.hasOwnProperty.call(t,i[a]))return!1;for(a=n;a--!==0;){var s=i[a];if(!r(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}});var RH=O(PH=>{"use strict";x();T();Object.defineProperty(PH,"__esModule",{value:!0});PH.default=Fnr;var w9,Dnr=new Uint8Array(16);function Fnr(){if(!w9&&(w9=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!w9))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return w9(Dnr)}});var VFe=O(x9=>{"use strict";x();T();Object.defineProperty(x9,"__esModule",{value:!0});x9.default=void 0;var Unr=/^(?:[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;x9.default=Unr});var GT=O(T9=>{"use strict";x();T();Object.defineProperty(T9,"__esModule",{value:!0});T9.default=void 0;var Wnr=jnr(VFe());function jnr(r){return r&&r.__esModule?r:{default:r}}function znr(r){return typeof r=="string"&&Wnr.default.test(r)}var Hnr=znr;T9.default=Hnr});var JT=O(ZT=>{"use strict";x();T();Object.defineProperty(ZT,"__esModule",{value:!0});ZT.default=void 0;ZT.unsafeStringify=GFe;var Vnr=Gnr(GT());function Gnr(r){return r&&r.__esModule?r:{default:r}}var ho=[];for(let r=0;r<256;++r)ho.push((r+256).toString(16).slice(1));function GFe(r,e=0){return(ho[r[e+0]]+ho[r[e+1]]+ho[r[e+2]]+ho[r[e+3]]+"-"+ho[r[e+4]]+ho[r[e+5]]+"-"+ho[r[e+6]]+ho[r[e+7]]+"-"+ho[r[e+8]]+ho[r[e+9]]+"-"+ho[r[e+10]]+ho[r[e+11]]+ho[r[e+12]]+ho[r[e+13]]+ho[r[e+14]]+ho[r[e+15]]).toLowerCase()}function Znr(r,e=0){let t=GFe(r,e);if(!(0,Vnr.default)(t))throw TypeError("Stringified UUID is invalid");return t}var Jnr=Znr;ZT.default=Jnr});var JFe=O(_9=>{"use strict";x();T();Object.defineProperty(_9,"__esModule",{value:!0});_9.default=void 0;var Knr=Xnr(RH()),Qnr=JT();function Xnr(r){return r&&r.__esModule?r:{default:r}}var ZFe,NH,OH=0,LH=0;function Ynr(r,e,t){let n=e&&t||0,a=e||new Array(16);r=r||{};let i=r.node||ZFe,s=r.clockseq!==void 0?r.clockseq:NH;if(i==null||s==null){let E=r.random||(r.rng||Knr.default)();i==null&&(i=ZFe=[E[0]|1,E[1],E[2],E[3],E[4],E[5]]),s==null&&(s=NH=(E[6]<<8|E[7])&16383)}let c=r.msecs!==void 0?r.msecs:Date.now(),l=r.nsecs!==void 0?r.nsecs:LH+1,d=c-OH+(l-LH)/1e4;if(d<0&&r.clockseq===void 0&&(s=s+1&16383),(d<0||c>OH)&&r.nsecs===void 0&&(l=0),l>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");OH=c,LH=l,NH=s,c+=122192928e5;let f=((c&268435455)*1e4+l)%4294967296;a[n++]=f>>>24&255,a[n++]=f>>>16&255,a[n++]=f>>>8&255,a[n++]=f&255;let w=c/4294967296*1e4&268435455;a[n++]=w>>>8&255,a[n++]=w&255,a[n++]=w>>>24&15|16,a[n++]=w>>>16&255,a[n++]=s>>>8|128,a[n++]=s&255;for(let E=0;E<6;++E)a[n+E]=i[E];return e||(0,Qnr.unsafeStringify)(a)}var $nr=Ynr;_9.default=$nr});var BH=O(C9=>{"use strict";x();T();Object.defineProperty(C9,"__esModule",{value:!0});C9.default=void 0;var ear=tar(GT());function tar(r){return r&&r.__esModule?r:{default:r}}function rar(r){if(!(0,ear.default)(r))throw TypeError("Invalid UUID");let e,t=new Uint8Array(16);return t[0]=(e=parseInt(r.slice(0,8),16))>>>24,t[1]=e>>>16&255,t[2]=e>>>8&255,t[3]=e&255,t[4]=(e=parseInt(r.slice(9,13),16))>>>8,t[5]=e&255,t[6]=(e=parseInt(r.slice(14,18),16))>>>8,t[7]=e&255,t[8]=(e=parseInt(r.slice(19,23),16))>>>8,t[9]=e&255,t[10]=(e=parseInt(r.slice(24,36),16))/1099511627776&255,t[11]=e/4294967296&255,t[12]=e>>>24&255,t[13]=e>>>16&255,t[14]=e>>>8&255,t[15]=e&255,t}var nar=rar;C9.default=nar});var qH=O(wv=>{"use strict";x();T();Object.defineProperty(wv,"__esModule",{value:!0});wv.URL=wv.DNS=void 0;wv.default=car;var aar=JT(),iar=sar(BH());function sar(r){return r&&r.__esModule?r:{default:r}}function oar(r){r=unescape(encodeURIComponent(r));let e=[];for(let t=0;t{"use strict";x();T();Object.defineProperty(k9,"__esModule",{value:!0});k9.default=void 0;function uar(r){if(typeof r=="string"){let e=unescape(encodeURIComponent(r));r=new Uint8Array(e.length);for(let t=0;t>5]>>>a%32&255,s=parseInt(n.charAt(i>>>4&15)+n.charAt(i&15),16);e.push(s)}return e}function XFe(r){return(r+64>>>9<<4)+14+1}function dar(r,e){r[e>>5]|=128<>5]|=(r[n/8]&255)<>16)+(e>>16)+(t>>16)<<16|t&65535}function har(r,e){return r<>>32-e}function E9(r,e,t,n,a,i){return W0(har(W0(W0(e,r),W0(n,i)),a),t)}function Yo(r,e,t,n,a,i,s){return E9(e&t|~e&n,r,e,a,i,s)}function $o(r,e,t,n,a,i,s){return E9(e&n|t&~n,r,e,a,i,s)}function ec(r,e,t,n,a,i,s){return E9(e^t^n,r,e,a,i,s)}function tc(r,e,t,n,a,i,s){return E9(t^(e|~n),r,e,a,i,s)}var far=uar;k9.default=far});var eUe=O(S9=>{"use strict";x();T();Object.defineProperty(S9,"__esModule",{value:!0});S9.default=void 0;var mar=$Fe(qH()),yar=$Fe(YFe());function $Fe(r){return r&&r.__esModule?r:{default:r}}var gar=(0,mar.default)("v3",48,yar.default),bar=gar;S9.default=bar});var tUe=O(A9=>{"use strict";x();T();Object.defineProperty(A9,"__esModule",{value:!0});A9.default=void 0;var war=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),xar={randomUUID:war};A9.default=xar});var aUe=O(M9=>{"use strict";x();T();Object.defineProperty(M9,"__esModule",{value:!0});M9.default=void 0;var rUe=nUe(tUe()),Tar=nUe(RH()),_ar=JT();function nUe(r){return r&&r.__esModule?r:{default:r}}function Car(r,e,t){if(rUe.default.randomUUID&&!e&&!r)return rUe.default.randomUUID();r=r||{};let n=r.random||(r.rng||Tar.default)();if(n[6]=n[6]&15|64,n[8]=n[8]&63|128,e){t=t||0;for(let a=0;a<16;++a)e[t+a]=n[a];return e}return(0,_ar.unsafeStringify)(n)}var Ear=Car;M9.default=Ear});var iUe=O(I9=>{"use strict";x();T();Object.defineProperty(I9,"__esModule",{value:!0});I9.default=void 0;function kar(r,e,t,n){switch(r){case 0:return e&t^~e&n;case 1:return e^t^n;case 2:return e&t^e&n^t&n;case 3:return e^t^n}}function DH(r,e){return r<>>32-e}function Sar(r){let e=[1518500249,1859775393,2400959708,3395469782],t=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof r=="string"){let s=unescape(encodeURIComponent(r));r=[];for(let c=0;c>>0;E=w,w=f,f=DH(d,30)>>>0,d=l,l=L}t[0]=t[0]+l>>>0,t[1]=t[1]+d>>>0,t[2]=t[2]+f>>>0,t[3]=t[3]+w>>>0,t[4]=t[4]+E>>>0}return[t[0]>>24&255,t[0]>>16&255,t[0]>>8&255,t[0]&255,t[1]>>24&255,t[1]>>16&255,t[1]>>8&255,t[1]&255,t[2]>>24&255,t[2]>>16&255,t[2]>>8&255,t[2]&255,t[3]>>24&255,t[3]>>16&255,t[3]>>8&255,t[3]&255,t[4]>>24&255,t[4]>>16&255,t[4]>>8&255,t[4]&255]}var Aar=Sar;I9.default=Aar});var oUe=O(P9=>{"use strict";x();T();Object.defineProperty(P9,"__esModule",{value:!0});P9.default=void 0;var Mar=sUe(qH()),Iar=sUe(iUe());function sUe(r){return r&&r.__esModule?r:{default:r}}var Par=(0,Mar.default)("v5",80,Iar.default),Rar=Par;P9.default=Rar});var cUe=O(R9=>{"use strict";x();T();Object.defineProperty(R9,"__esModule",{value:!0});R9.default=void 0;var Nar="00000000-0000-0000-0000-000000000000";R9.default=Nar});var uUe=O(N9=>{"use strict";x();T();Object.defineProperty(N9,"__esModule",{value:!0});N9.default=void 0;var Oar=Lar(GT());function Lar(r){return r&&r.__esModule?r:{default:r}}function Bar(r){if(!(0,Oar.default)(r))throw TypeError("Invalid UUID");return parseInt(r.slice(14,15),16)}var qar=Bar;N9.default=qar});var Wa=O(lp=>{"use strict";x();T();Object.defineProperty(lp,"__esModule",{value:!0});Object.defineProperty(lp,"NIL",{enumerable:!0,get:function(){return jar.default}});Object.defineProperty(lp,"parse",{enumerable:!0,get:function(){return Gar.default}});Object.defineProperty(lp,"stringify",{enumerable:!0,get:function(){return Var.default}});Object.defineProperty(lp,"v1",{enumerable:!0,get:function(){return Dar.default}});Object.defineProperty(lp,"v3",{enumerable:!0,get:function(){return Far.default}});Object.defineProperty(lp,"v4",{enumerable:!0,get:function(){return Uar.default}});Object.defineProperty(lp,"v5",{enumerable:!0,get:function(){return War.default}});Object.defineProperty(lp,"validate",{enumerable:!0,get:function(){return Har.default}});Object.defineProperty(lp,"version",{enumerable:!0,get:function(){return zar.default}});var Dar=Qf(JFe()),Far=Qf(eUe()),Uar=Qf(aUe()),War=Qf(oUe()),jar=Qf(cUe()),zar=Qf(uUe()),Har=Qf(GT()),Var=Qf(JT()),Gar=Qf(BH());function Qf(r){return r&&r.__esModule?r:{default:r}}});var ja=O((tun,Zar)=>{Zar.exports=[{inputs:[],name:"name",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"symbol",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"}],name:"tokenURI",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"}]});var za=O((run,Jar)=>{Jar.exports=[{inputs:[{internalType:"uint256",name:"_id",type:"uint256"}],name:"uri",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"}]});var Ha=O((nun,Kar)=>{Kar.exports=[{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"index",type:"uint256"},{indexed:!1,internalType:"string",name:"revealedURI",type:"string"}],name:"TokenURIRevealed",type:"event"},{inputs:[{internalType:"bytes",name:"data",type:"bytes"},{internalType:"bytes",name:"key",type:"bytes"}],name:"encryptDecrypt",outputs:[{internalType:"bytes",name:"result",type:"bytes"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"uint256",name:"identifier",type:"uint256"}],name:"encryptedBaseURI",outputs:[{internalType:"bytes",name:"",type:"bytes"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"identifier",type:"uint256"},{internalType:"bytes",name:"key",type:"bytes"}],name:"reveal",outputs:[{internalType:"string",name:"revealedURI",type:"string"}],stateMutability:"nonpayable",type:"function"}]});var Va=O((aun,Qar)=>{Qar.exports=[{inputs:[{internalType:"address",name:"_trustedForwarder",type:"address"},{internalType:"address",name:"_registry",type:"address"}],stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"implementation",type:"address"},{indexed:!0,internalType:"bytes32",name:"contractType",type:"bytes32"},{indexed:!1,internalType:"uint256",name:"version",type:"uint256"}],name:"ImplementationAdded",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"implementation",type:"address"},{indexed:!1,internalType:"bool",name:"isApproved",type:"bool"}],name:"ImplementationApproved",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"implementation",type:"address"},{indexed:!1,internalType:"address",name:"proxy",type:"address"},{indexed:!0,internalType:"address",name:"deployer",type:"address"}],name:"ProxyDeployed",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"previousAdminRole",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"newAdminRole",type:"bytes32"}],name:"RoleAdminChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleGranted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleRevoked",type:"event"},{inputs:[],name:"DEFAULT_ADMIN_ROLE",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"FACTORY_ROLE",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_implementation",type:"address"}],name:"addImplementation",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"}],name:"approval",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_implementation",type:"address"},{internalType:"bool",name:"_toApprove",type:"bool"}],name:"approveImplementation",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"",type:"bytes32"}],name:"currentVersion",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"_type",type:"bytes32"},{internalType:"bytes",name:"_data",type:"bytes"}],name:"deployProxy",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_implementation",type:"address"},{internalType:"bytes",name:"_data",type:"bytes"},{internalType:"bytes32",name:"_salt",type:"bytes32"}],name:"deployProxyByImplementation",outputs:[{internalType:"address",name:"deployedProxy",type:"address"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"_type",type:"bytes32"},{internalType:"bytes",name:"_data",type:"bytes"},{internalType:"bytes32",name:"_salt",type:"bytes32"}],name:"deployProxyDeterministic",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"}],name:"deployer",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"_type",type:"bytes32"},{internalType:"uint256",name:"_version",type:"uint256"}],name:"getImplementation",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"_type",type:"bytes32"}],name:"getLatestImplementation",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleAdmin",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"uint256",name:"index",type:"uint256"}],name:"getRoleMember",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleMemberCount",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"grantRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRole",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"",type:"bytes32"},{internalType:"uint256",name:"",type:"uint256"}],name:"implementation",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"forwarder",type:"address"}],name:"isTrustedForwarder",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes[]",name:"data",type:"bytes[]"}],name:"multicall",outputs:[{internalType:"bytes[]",name:"results",type:"bytes[]"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"registry",outputs:[{internalType:"contract TWRegistry",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"renounceRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"revokeRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes4",name:"interfaceId",type:"bytes4"}],name:"supportsInterface",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"}]});var Ga=O((iun,Xar)=>{Xar.exports=[{inputs:[{internalType:"address",name:"_trustedForwarder",type:"address"}],stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"deployer",type:"address"},{indexed:!0,internalType:"address",name:"deployment",type:"address"}],name:"Added",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"deployer",type:"address"},{indexed:!0,internalType:"address",name:"deployment",type:"address"}],name:"Deleted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"previousAdminRole",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"newAdminRole",type:"bytes32"}],name:"RoleAdminChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleGranted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleRevoked",type:"event"},{inputs:[],name:"DEFAULT_ADMIN_ROLE",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"OPERATOR_ROLE",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_deployer",type:"address"},{internalType:"address",name:"_deployment",type:"address"}],name:"add",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_deployer",type:"address"}],name:"count",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_deployer",type:"address"}],name:"getAll",outputs:[{internalType:"address[]",name:"",type:"address[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleAdmin",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"uint256",name:"index",type:"uint256"}],name:"getRoleMember",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleMemberCount",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"grantRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRole",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"forwarder",type:"address"}],name:"isTrustedForwarder",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes[]",name:"data",type:"bytes[]"}],name:"multicall",outputs:[{internalType:"bytes[]",name:"results",type:"bytes[]"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_deployer",type:"address"},{internalType:"address",name:"_deployment",type:"address"}],name:"remove",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"renounceRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"revokeRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes4",name:"interfaceId",type:"bytes4"}],name:"supportsInterface",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"}]});var Za=O((sun,Yar)=>{Yar.exports=[{inputs:[{internalType:"address",name:"_trustedForwarder",type:"address"},{internalType:"contract IContractPublisher",name:"_prevPublisher",type:"address"}],stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!0,internalType:"address",name:"publisher",type:"address"},{components:[{internalType:"string",name:"contractId",type:"string"},{internalType:"uint256",name:"publishTimestamp",type:"uint256"},{internalType:"string",name:"publishMetadataUri",type:"string"},{internalType:"bytes32",name:"bytecodeHash",type:"bytes32"},{internalType:"address",name:"implementation",type:"address"}],indexed:!1,internalType:"struct IContractPublisher.CustomContractInstance",name:"publishedContract",type:"tuple"}],name:"ContractPublished",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!0,internalType:"address",name:"publisher",type:"address"},{indexed:!0,internalType:"string",name:"contractId",type:"string"}],name:"ContractUnpublished",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"bool",name:"isPaused",type:"bool"}],name:"Paused",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"publisher",type:"address"},{indexed:!1,internalType:"string",name:"prevURI",type:"string"},{indexed:!1,internalType:"string",name:"newURI",type:"string"}],name:"PublisherProfileUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"previousAdminRole",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"newAdminRole",type:"bytes32"}],name:"RoleAdminChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleGranted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleRevoked",type:"event"},{inputs:[],name:"DEFAULT_ADMIN_ROLE",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_publisher",type:"address"}],name:"getAllPublishedContracts",outputs:[{components:[{internalType:"string",name:"contractId",type:"string"},{internalType:"uint256",name:"publishTimestamp",type:"uint256"},{internalType:"string",name:"publishMetadataUri",type:"string"},{internalType:"bytes32",name:"bytecodeHash",type:"bytes32"},{internalType:"address",name:"implementation",type:"address"}],internalType:"struct IContractPublisher.CustomContractInstance[]",name:"published",type:"tuple[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_publisher",type:"address"},{internalType:"string",name:"_contractId",type:"string"}],name:"getPublishedContract",outputs:[{components:[{internalType:"string",name:"contractId",type:"string"},{internalType:"uint256",name:"publishTimestamp",type:"uint256"},{internalType:"string",name:"publishMetadataUri",type:"string"},{internalType:"bytes32",name:"bytecodeHash",type:"bytes32"},{internalType:"address",name:"implementation",type:"address"}],internalType:"struct IContractPublisher.CustomContractInstance",name:"published",type:"tuple"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_publisher",type:"address"},{internalType:"string",name:"_contractId",type:"string"}],name:"getPublishedContractVersions",outputs:[{components:[{internalType:"string",name:"contractId",type:"string"},{internalType:"uint256",name:"publishTimestamp",type:"uint256"},{internalType:"string",name:"publishMetadataUri",type:"string"},{internalType:"bytes32",name:"bytecodeHash",type:"bytes32"},{internalType:"address",name:"implementation",type:"address"}],internalType:"struct IContractPublisher.CustomContractInstance[]",name:"published",type:"tuple[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"string",name:"compilerMetadataUri",type:"string"}],name:"getPublishedUriFromCompilerUri",outputs:[{internalType:"string[]",name:"publishedMetadataUris",type:"string[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"publisher",type:"address"}],name:"getPublisherProfileUri",outputs:[{internalType:"string",name:"uri",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleAdmin",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"uint256",name:"index",type:"uint256"}],name:"getRoleMember",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleMemberCount",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"grantRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRole",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"isPaused",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"forwarder",type:"address"}],name:"isTrustedForwarder",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes[]",name:"data",type:"bytes[]"}],name:"multicall",outputs:[{internalType:"bytes[]",name:"results",type:"bytes[]"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"prevPublisher",outputs:[{internalType:"contract IContractPublisher",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_publisher",type:"address"},{internalType:"string",name:"_contractId",type:"string"},{internalType:"string",name:"_publishMetadataUri",type:"string"},{internalType:"string",name:"_compilerMetadataUri",type:"string"},{internalType:"bytes32",name:"_bytecodeHash",type:"bytes32"},{internalType:"address",name:"_implementation",type:"address"}],name:"publishContract",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"renounceRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"revokeRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bool",name:"_pause",type:"bool"}],name:"setPause",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"publisher",type:"address"},{internalType:"string",name:"uri",type:"string"}],name:"setPublisherProfileUri",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes4",name:"interfaceId",type:"bytes4"}],name:"supportsInterface",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_publisher",type:"address"},{internalType:"string",name:"_contractId",type:"string"}],name:"unpublishContract",outputs:[],stateMutability:"nonpayable",type:"function"}]});var Ja=O((oun,$ar)=>{$ar.exports=[{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"deployer",type:"address"},{indexed:!0,internalType:"address",name:"deployment",type:"address"},{indexed:!0,internalType:"uint256",name:"chainId",type:"uint256"},{indexed:!1,internalType:"string",name:"metadataUri",type:"string"}],name:"Added",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"deployer",type:"address"},{indexed:!0,internalType:"address",name:"deployment",type:"address"},{indexed:!0,internalType:"uint256",name:"chainId",type:"uint256"}],name:"Deleted",type:"event"},{inputs:[],name:"OPERATOR_ROLE",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"_msgData",outputs:[{internalType:"bytes",name:"",type:"bytes"}],stateMutability:"view",type:"function"},{inputs:[],name:"_msgSender",outputs:[{internalType:"address",name:"sender",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_deployer",type:"address"},{internalType:"address",name:"_deployment",type:"address"},{internalType:"uint256",name:"_chainId",type:"uint256"},{internalType:"string",name:"metadataUri",type:"string"}],name:"add",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"contractType",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"pure",type:"function"},{inputs:[],name:"contractVersion",outputs:[{internalType:"uint8",name:"",type:"uint8"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"address",name:"_deployer",type:"address"}],name:"count",outputs:[{internalType:"uint256",name:"deploymentCount",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_deployer",type:"address"}],name:"getAll",outputs:[{components:[{internalType:"address",name:"deploymentAddress",type:"address"},{internalType:"uint256",name:"chainId",type:"uint256"},{internalType:"string",name:"metadataURI",type:"string"}],internalType:"struct ITWMultichainRegistry.Deployment[]",name:"allDeployments",type:"tuple[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_chainId",type:"uint256"},{internalType:"address",name:"_deployment",type:"address"}],name:"getMetadataUri",outputs:[{internalType:"string",name:"metadataUri",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_deployer",type:"address"},{internalType:"address",name:"_deployment",type:"address"},{internalType:"uint256",name:"_chainId",type:"uint256"}],name:"remove",outputs:[],stateMutability:"nonpayable",type:"function"}]});var Ka=O((cun,eir)=>{eir.exports=[{inputs:[{internalType:"address",name:"_pluginMap",type:"address"},{internalType:"address[]",name:"_trustedForwarders",type:"address[]"}],stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes4",name:"functionSelector",type:"bytes4"},{indexed:!0,internalType:"address",name:"pluginAddress",type:"address"}],name:"PluginAdded",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes4",name:"functionSelector",type:"bytes4"},{indexed:!0,internalType:"address",name:"pluginAddress",type:"address"}],name:"PluginRemoved",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes4",name:"functionSelector",type:"bytes4"},{indexed:!0,internalType:"string",name:"functionSignature",type:"string"},{indexed:!0,internalType:"address",name:"pluginAddress",type:"address"}],name:"PluginSet",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes4",name:"functionSelector",type:"bytes4"},{indexed:!0,internalType:"address",name:"oldPluginAddress",type:"address"},{indexed:!0,internalType:"address",name:"newPluginAddress",type:"address"}],name:"PluginUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"previousAdminRole",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"newAdminRole",type:"bytes32"}],name:"RoleAdminChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleGranted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleRevoked",type:"event"},{stateMutability:"payable",type:"fallback"},{inputs:[],name:"DEFAULT_ADMIN_ROLE",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes4",name:"_selector",type:"bytes4"}],name:"_getPluginForFunction",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{components:[{internalType:"bytes4",name:"functionSelector",type:"bytes4"},{internalType:"string",name:"functionSignature",type:"string"},{internalType:"address",name:"pluginAddress",type:"address"}],internalType:"struct IPluginMap.Plugin",name:"_plugin",type:"tuple"}],name:"addPlugin",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_pluginAddress",type:"address"}],name:"getAllFunctionsOfPlugin",outputs:[{internalType:"bytes4[]",name:"registered",type:"bytes4[]"}],stateMutability:"view",type:"function"},{inputs:[],name:"getAllPlugins",outputs:[{components:[{internalType:"bytes4",name:"functionSelector",type:"bytes4"},{internalType:"string",name:"functionSignature",type:"string"},{internalType:"address",name:"pluginAddress",type:"address"}],internalType:"struct IPluginMap.Plugin[]",name:"registered",type:"tuple[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes4",name:"_selector",type:"bytes4"}],name:"getPluginForFunction",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleAdmin",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"uint256",name:"index",type:"uint256"}],name:"getRoleMember",outputs:[{internalType:"address",name:"member",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleMemberCount",outputs:[{internalType:"uint256",name:"count",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"grantRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRole",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRoleWithSwitch",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"forwarder",type:"address"}],name:"isTrustedForwarder",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes[]",name:"data",type:"bytes[]"}],name:"multicall",outputs:[{internalType:"bytes[]",name:"results",type:"bytes[]"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"pluginMap",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes4",name:"_selector",type:"bytes4"}],name:"removePlugin",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"renounceRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"revokeRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes4",name:"interfaceId",type:"bytes4"}],name:"supportsInterface",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{components:[{internalType:"bytes4",name:"functionSelector",type:"bytes4"},{internalType:"string",name:"functionSignature",type:"string"},{internalType:"address",name:"pluginAddress",type:"address"}],internalType:"struct IPluginMap.Plugin",name:"_plugin",type:"tuple"}],name:"updatePlugin",outputs:[],stateMutability:"nonpayable",type:"function"},{stateMutability:"payable",type:"receive"}]});var dUe=O((uun,lUe)=>{"use strict";x();T();function tir(r){if(r.length>=255)throw new TypeError("Alphabet too long");for(var e=new Uint8Array(256),t=0;t>>0,H=new Uint8Array(j);q!==U;){for(var G=k[q],te=0,K=j-1;(G!==0||te>>0,H[K]=G%s>>>0,G=G/s>>>0;if(G!==0)throw new Error("Non-zero carry");L=te,q++}for(var ae=j-L;ae!==j&&H[ae]===0;)ae++;for(var J=c.repeat(A);ae>>0,j=new Uint8Array(U);k[A];){var H=e[k.charCodeAt(A)];if(H===255)return;for(var G=0,te=U-1;(H!==0||G>>0,j[te]=H%256>>>0,H=H/256>>>0;if(H!==0)throw new Error("Non-zero carry");q=G,A++}for(var K=U-q;K!==U&&j[K]===0;)K++;for(var ae=new Uint8Array(L+(U-K)),J=L;K!==U;)ae[J++]=j[K++];return ae}function E(k){var A=w(k);if(A)return A;throw new Error("Non-base"+s+" character")}return{encode:f,decodeUnsafe:w,decode:E}}lUe.exports=tir});var Qa=O((pun,pUe)=>{x();T();var rir=dUe(),nir="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz";pUe.exports=rir(nir)});var fUe=O(hUe=>{"use strict";x();T();var rc=Go(),Vs=Uc(),air=_t();Xr();Pn();Un();Wn();jn();zn();Hn();Vn();Gn();Zn();Jn();Kn();Qn();Xn();Yn();$n();ea();ta();ra();na();aa();ia();sa();oa();ca();ua();la();da();pa();ha();fa();ma();ya();ga();va();ba();wa();xa();Ta();_a();Ca();Ea();ka();Sa();Aa();Ma();Ia();Pa();Ra();En();Na();Oa();La();On();Ba();qa();Da();Fa();Ua();Wa();ja();za();Ha();Va();Ga();Za();Ja();Ka();Qa();var iw=class extends Vs.StandardErc1155{constructor(e,t,n){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},i=arguments.length>4?arguments[4]:void 0,s=arguments.length>5?arguments[5]:void 0,c=arguments.length>6&&arguments[6]!==void 0?arguments[6]:new Vs.ContractWrapper(e,t,i,a);super(c,n,s),rc._defineProperty(this,"abi",void 0),rc._defineProperty(this,"sales",void 0),rc._defineProperty(this,"platformFees",void 0),rc._defineProperty(this,"encoder",void 0),rc._defineProperty(this,"estimator",void 0),rc._defineProperty(this,"events",void 0),rc._defineProperty(this,"metadata",void 0),rc._defineProperty(this,"roles",void 0),rc._defineProperty(this,"royalties",void 0),rc._defineProperty(this,"claimConditions",void 0),rc._defineProperty(this,"checkout",void 0),rc._defineProperty(this,"history",void 0),rc._defineProperty(this,"interceptor",void 0),rc._defineProperty(this,"erc1155",void 0),rc._defineProperty(this,"owner",void 0),this.abi=i,this.metadata=new Vs.ContractMetadata(this.contractWrapper,Vs.DropErc1155ContractSchema,this.storage),this.roles=new Vs.ContractRoles(this.contractWrapper,iw.contractRoles),this.royalties=new Vs.ContractRoyalty(this.contractWrapper,this.metadata),this.sales=new Vs.ContractPrimarySale(this.contractWrapper),this.claimConditions=new Vs.DropErc1155ClaimConditions(this.contractWrapper,this.metadata,this.storage),this.events=new Vs.ContractEvents(this.contractWrapper),this.history=new Vs.DropErc1155History(this.events),this.encoder=new Vs.ContractEncoder(this.contractWrapper),this.estimator=new Vs.GasCostEstimator(this.contractWrapper),this.platformFees=new Vs.ContractPlatformFee(this.contractWrapper),this.interceptor=new Vs.ContractInterceptor(this.contractWrapper),this.erc1155=new Vs.Erc1155(this.contractWrapper,this.storage,s),this.checkout=new Vs.PaperCheckout(this.contractWrapper),this.owner=new Vs.ContractOwner(this.contractWrapper)}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}async getAll(e){return this.erc1155.getAll(e)}async getOwned(e){return this.erc1155.getOwned(e)}async getTotalCount(){return this.erc1155.totalCount()}async isTransferRestricted(){return!await this.contractWrapper.readContract.hasRole(Vs.getRoleHash("transfer"),air.constants.AddressZero)}async createBatch(e,t){return this.erc1155.lazyMint(e,t)}async getClaimTransaction(e,t,n){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0;return this.erc1155.getClaimTransaction(e,t,n,{checkERC20Allowance:a})}async claimTo(e,t,n){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0;return this.erc1155.claimTo(e,t,n,{checkERC20Allowance:a})}async claim(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,a=await this.contractWrapper.getSignerAddress();return this.claimTo(a,e,t,n)}async burnTokens(e,t){return this.erc1155.burn(e,t)}async call(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a{iir.exports=[{inputs:[],stateMutability:"nonpayable",type:"constructor"},{inputs:[{internalType:"address",name:"operator",type:"address"}],name:"OperatorNotAllowed",type:"error"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!1,internalType:"bool",name:"approved",type:"bool"}],name:"ApprovalForAll",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"},{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerWallet",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"string",name:"metadata",type:"string"}],indexed:!1,internalType:"struct IClaimCondition.ClaimCondition[]",name:"claimConditions",type:"tuple[]"},{indexed:!1,internalType:"bool",name:"resetEligibility",type:"bool"}],name:"ClaimConditionsUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"string",name:"prevURI",type:"string"},{indexed:!1,internalType:"string",name:"newURI",type:"string"}],name:"ContractURIUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"newRoyaltyRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"newRoyaltyBps",type:"uint256"}],name:"DefaultRoyalty",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint8",name:"version",type:"uint8"}],name:"Initialized",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"maxTotalSupply",type:"uint256"}],name:"MaxTotalSupplyUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"bool",name:"restriction",type:"bool"}],name:"OperatorRestriction",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"prevOwner",type:"address"},{indexed:!0,internalType:"address",name:"newOwner",type:"address"}],name:"OwnerUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"platformFeeRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"platformFeeBps",type:"uint256"}],name:"PlatformFeeInfoUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"recipient",type:"address"}],name:"PrimarySaleRecipientUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"previousAdminRole",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"newAdminRole",type:"bytes32"}],name:"RoleAdminChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleGranted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleRevoked",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!0,internalType:"address",name:"royaltyRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"royaltyBps",type:"uint256"}],name:"RoyaltyForToken",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!1,internalType:"address",name:"saleRecipient",type:"address"}],name:"SaleRecipientForTokenUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"claimConditionIndex",type:"uint256"},{indexed:!0,internalType:"address",name:"claimer",type:"address"},{indexed:!0,internalType:"address",name:"receiver",type:"address"},{indexed:!1,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"quantityClaimed",type:"uint256"}],name:"TokensClaimed",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"startTokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"endTokenId",type:"uint256"},{indexed:!1,internalType:"string",name:"baseURI",type:"string"},{indexed:!1,internalType:"bytes",name:"encryptedBaseURI",type:"bytes"}],name:"TokensLazyMinted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256[]",name:"ids",type:"uint256[]"},{indexed:!1,internalType:"uint256[]",name:"values",type:"uint256[]"}],name:"TransferBatch",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256",name:"id",type:"uint256"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"}],name:"TransferSingle",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"string",name:"value",type:"string"},{indexed:!0,internalType:"uint256",name:"id",type:"uint256"}],name:"URI",type:"event"},{inputs:[],name:"DEFAULT_ADMIN_ROLE",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint256",name:"id",type:"uint256"}],name:"balanceOf",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address[]",name:"accounts",type:"address[]"},{internalType:"uint256[]",name:"ids",type:"uint256[]"}],name:"balanceOfBatch",outputs:[{internalType:"uint256[]",name:"",type:"uint256[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint256[]",name:"ids",type:"uint256[]"},{internalType:"uint256[]",name:"values",type:"uint256[]"}],name:"burnBatch",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_receiver",type:"address"},{internalType:"uint256",name:"_tokenId",type:"uint256"},{internalType:"uint256",name:"_quantity",type:"uint256"},{internalType:"address",name:"_currency",type:"address"},{internalType:"uint256",name:"_pricePerToken",type:"uint256"},{components:[{internalType:"bytes32[]",name:"proof",type:"bytes32[]"},{internalType:"uint256",name:"quantityLimitPerWallet",type:"uint256"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],internalType:"struct IDrop1155.AllowlistProof",name:"_allowlistProof",type:"tuple"},{internalType:"bytes",name:"_data",type:"bytes"}],name:"claim",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"}],name:"claimCondition",outputs:[{internalType:"uint256",name:"currentStartId",type:"uint256"},{internalType:"uint256",name:"count",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"contractType",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"pure",type:"function"},{inputs:[],name:"contractURI",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"contractVersion",outputs:[{internalType:"uint8",name:"",type:"uint8"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"}],name:"getActiveClaimConditionId",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"getBaseURICount",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_index",type:"uint256"}],name:"getBatchIdAtIndex",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"},{internalType:"uint256",name:"_conditionId",type:"uint256"}],name:"getClaimConditionById",outputs:[{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerWallet",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"string",name:"metadata",type:"string"}],internalType:"struct IClaimCondition.ClaimCondition",name:"condition",type:"tuple"}],stateMutability:"view",type:"function"},{inputs:[],name:"getDefaultRoyaltyInfo",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[],name:"getPlatformFeeInfo",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleAdmin",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"uint256",name:"index",type:"uint256"}],name:"getRoleMember",outputs:[{internalType:"address",name:"member",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleMemberCount",outputs:[{internalType:"uint256",name:"count",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"}],name:"getRoyaltyInfoForToken",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"},{internalType:"uint256",name:"_conditionId",type:"uint256"},{internalType:"address",name:"_claimer",type:"address"}],name:"getSupplyClaimedByWallet",outputs:[{internalType:"uint256",name:"supplyClaimedByWallet",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"grantRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRole",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRoleWithSwitch",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_defaultAdmin",type:"address"},{internalType:"string",name:"_name",type:"string"},{internalType:"string",name:"_symbol",type:"string"},{internalType:"string",name:"_contractURI",type:"string"},{internalType:"address[]",name:"_trustedForwarders",type:"address[]"},{internalType:"address",name:"_saleRecipient",type:"address"},{internalType:"address",name:"_royaltyRecipient",type:"address"},{internalType:"uint128",name:"_royaltyBps",type:"uint128"},{internalType:"uint128",name:"_platformFeeBps",type:"uint128"},{internalType:"address",name:"_platformFeeRecipient",type:"address"}],name:"initialize",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"address",name:"operator",type:"address"}],name:"isApprovedForAll",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"forwarder",type:"address"}],name:"isTrustedForwarder",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_amount",type:"uint256"},{internalType:"string",name:"_baseURIForTokens",type:"string"},{internalType:"bytes",name:"_data",type:"bytes"}],name:"lazyMint",outputs:[{internalType:"uint256",name:"batchId",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"}],name:"maxTotalSupply",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes[]",name:"data",type:"bytes[]"}],name:"multicall",outputs:[{internalType:"bytes[]",name:"results",type:"bytes[]"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"name",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"nextTokenIdToMint",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"operatorRestriction",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"owner",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"primarySaleRecipient",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"renounceRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"revokeRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"salePrice",type:"uint256"}],name:"royaltyInfo",outputs:[{internalType:"address",name:"receiver",type:"address"},{internalType:"uint256",name:"royaltyAmount",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256[]",name:"ids",type:"uint256[]"},{internalType:"uint256[]",name:"amounts",type:"uint256[]"},{internalType:"bytes",name:"data",type:"bytes"}],name:"safeBatchTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"id",type:"uint256"},{internalType:"uint256",name:"amount",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"}],name:"safeTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"}],name:"saleRecipient",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"operator",type:"address"},{internalType:"bool",name:"approved",type:"bool"}],name:"setApprovalForAll",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"},{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerWallet",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"string",name:"metadata",type:"string"}],internalType:"struct IClaimCondition.ClaimCondition[]",name:"_conditions",type:"tuple[]"},{internalType:"bool",name:"_resetClaimEligibility",type:"bool"}],name:"setClaimConditions",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"string",name:"_uri",type:"string"}],name:"setContractURI",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_royaltyRecipient",type:"address"},{internalType:"uint256",name:"_royaltyBps",type:"uint256"}],name:"setDefaultRoyaltyInfo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"},{internalType:"uint256",name:"_maxTotalSupply",type:"uint256"}],name:"setMaxTotalSupply",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bool",name:"_restriction",type:"bool"}],name:"setOperatorRestriction",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_newOwner",type:"address"}],name:"setOwner",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_platformFeeRecipient",type:"address"},{internalType:"uint256",name:"_platformFeeBps",type:"uint256"}],name:"setPlatformFeeInfo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_saleRecipient",type:"address"}],name:"setPrimarySaleRecipient",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"},{internalType:"address",name:"_recipient",type:"address"},{internalType:"uint256",name:"_bps",type:"uint256"}],name:"setRoyaltyInfoForToken",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"},{internalType:"address",name:"_saleRecipient",type:"address"}],name:"setSaleRecipientForToken",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes4",name:"interfaceId",type:"bytes4"}],name:"supportsInterface",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"symbol",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"}],name:"totalSupply",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"}],name:"uri",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_conditionId",type:"uint256"},{internalType:"address",name:"_claimer",type:"address"},{internalType:"uint256",name:"_tokenId",type:"uint256"},{internalType:"uint256",name:"_quantity",type:"uint256"},{internalType:"address",name:"_currency",type:"address"},{internalType:"uint256",name:"_pricePerToken",type:"uint256"},{components:[{internalType:"bytes32[]",name:"proof",type:"bytes32[]"},{internalType:"uint256",name:"quantityLimitPerWallet",type:"uint256"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],internalType:"struct IDrop1155.AllowlistProof",name:"_allowlistProof",type:"tuple"}],name:"verifyClaim",outputs:[{internalType:"bool",name:"isOverride",type:"bool"}],stateMutability:"view",type:"function"}]});var UH=O((bun,sir)=>{sir.exports=[{inputs:[],stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!1,internalType:"bool",name:"approved",type:"bool"}],name:"ApprovalForAll",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"},{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerTransaction",type:"uint256"},{internalType:"uint256",name:"waitTimeInSecondsBetweenClaims",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],indexed:!1,internalType:"struct IDropClaimCondition_V2.ClaimCondition[]",name:"claimConditions",type:"tuple[]"}],name:"ClaimConditionsUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"newRoyaltyRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"newRoyaltyBps",type:"uint256"}],name:"DefaultRoyalty",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint8",name:"version",type:"uint8"}],name:"Initialized",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"maxTotalSupply",type:"uint256"}],name:"MaxTotalSupplyUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"count",type:"uint256"}],name:"MaxWalletClaimCountUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"prevOwner",type:"address"},{indexed:!0,internalType:"address",name:"newOwner",type:"address"}],name:"OwnerUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"platformFeeRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"platformFeeBps",type:"uint256"}],name:"PlatformFeeInfoUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"recipient",type:"address"}],name:"PrimarySaleRecipientUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"previousAdminRole",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"newAdminRole",type:"bytes32"}],name:"RoleAdminChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleGranted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleRevoked",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!0,internalType:"address",name:"royaltyRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"royaltyBps",type:"uint256"}],name:"RoyaltyForToken",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!1,internalType:"address",name:"saleRecipient",type:"address"}],name:"SaleRecipientForTokenUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"claimConditionIndex",type:"uint256"},{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!0,internalType:"address",name:"claimer",type:"address"},{indexed:!1,internalType:"address",name:"receiver",type:"address"},{indexed:!1,internalType:"uint256",name:"quantityClaimed",type:"uint256"}],name:"TokensClaimed",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"startTokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"endTokenId",type:"uint256"},{indexed:!1,internalType:"string",name:"baseURI",type:"string"}],name:"TokensLazyMinted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256[]",name:"ids",type:"uint256[]"},{indexed:!1,internalType:"uint256[]",name:"values",type:"uint256[]"}],name:"TransferBatch",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256",name:"id",type:"uint256"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"}],name:"TransferSingle",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"string",name:"value",type:"string"},{indexed:!0,internalType:"uint256",name:"id",type:"uint256"}],name:"URI",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!0,internalType:"address",name:"wallet",type:"address"},{indexed:!1,internalType:"uint256",name:"count",type:"uint256"}],name:"WalletClaimCountUpdated",type:"event"},{inputs:[],name:"DEFAULT_ADMIN_ROLE",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint256",name:"id",type:"uint256"}],name:"balanceOf",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address[]",name:"accounts",type:"address[]"},{internalType:"uint256[]",name:"ids",type:"uint256[]"}],name:"balanceOfBatch",outputs:[{internalType:"uint256[]",name:"",type:"uint256[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint256",name:"id",type:"uint256"},{internalType:"uint256",name:"value",type:"uint256"}],name:"burn",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint256[]",name:"ids",type:"uint256[]"},{internalType:"uint256[]",name:"values",type:"uint256[]"}],name:"burnBatch",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_receiver",type:"address"},{internalType:"uint256",name:"_tokenId",type:"uint256"},{internalType:"uint256",name:"_quantity",type:"uint256"},{internalType:"address",name:"_currency",type:"address"},{internalType:"uint256",name:"_pricePerToken",type:"uint256"},{internalType:"bytes32[]",name:"_proofs",type:"bytes32[]"},{internalType:"uint256",name:"_proofMaxQuantityPerTransaction",type:"uint256"}],name:"claim",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"}],name:"claimCondition",outputs:[{internalType:"uint256",name:"currentStartId",type:"uint256"},{internalType:"uint256",name:"count",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"contractType",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"pure",type:"function"},{inputs:[],name:"contractURI",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"contractVersion",outputs:[{internalType:"uint8",name:"",type:"uint8"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"}],name:"getActiveClaimConditionId",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"},{internalType:"uint256",name:"_conditionId",type:"uint256"}],name:"getClaimConditionById",outputs:[{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerTransaction",type:"uint256"},{internalType:"uint256",name:"waitTimeInSecondsBetweenClaims",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],internalType:"struct IDropClaimCondition_V2.ClaimCondition",name:"condition",type:"tuple"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"},{internalType:"uint256",name:"_conditionId",type:"uint256"},{internalType:"address",name:"_claimer",type:"address"}],name:"getClaimTimestamp",outputs:[{internalType:"uint256",name:"lastClaimTimestamp",type:"uint256"},{internalType:"uint256",name:"nextValidClaimTimestamp",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"getDefaultRoyaltyInfo",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[],name:"getPlatformFeeInfo",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleAdmin",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"uint256",name:"index",type:"uint256"}],name:"getRoleMember",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleMemberCount",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"}],name:"getRoyaltyInfoForToken",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"grantRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRole",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_defaultAdmin",type:"address"},{internalType:"string",name:"_name",type:"string"},{internalType:"string",name:"_symbol",type:"string"},{internalType:"string",name:"_contractURI",type:"string"},{internalType:"address[]",name:"_trustedForwarders",type:"address[]"},{internalType:"address",name:"_saleRecipient",type:"address"},{internalType:"address",name:"_royaltyRecipient",type:"address"},{internalType:"uint128",name:"_royaltyBps",type:"uint128"},{internalType:"uint128",name:"_platformFeeBps",type:"uint128"},{internalType:"address",name:"_platformFeeRecipient",type:"address"}],name:"initialize",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"address",name:"operator",type:"address"}],name:"isApprovedForAll",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"forwarder",type:"address"}],name:"isTrustedForwarder",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_amount",type:"uint256"},{internalType:"string",name:"_baseURIForTokens",type:"string"}],name:"lazyMint",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"}],name:"maxTotalSupply",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"}],name:"maxWalletClaimCount",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes[]",name:"data",type:"bytes[]"}],name:"multicall",outputs:[{internalType:"bytes[]",name:"results",type:"bytes[]"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"name",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"nextTokenIdToMint",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"owner",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"primarySaleRecipient",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"renounceRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"revokeRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"salePrice",type:"uint256"}],name:"royaltyInfo",outputs:[{internalType:"address",name:"receiver",type:"address"},{internalType:"uint256",name:"royaltyAmount",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256[]",name:"ids",type:"uint256[]"},{internalType:"uint256[]",name:"amounts",type:"uint256[]"},{internalType:"bytes",name:"data",type:"bytes"}],name:"safeBatchTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"id",type:"uint256"},{internalType:"uint256",name:"amount",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"}],name:"safeTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"}],name:"saleRecipient",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"operator",type:"address"},{internalType:"bool",name:"approved",type:"bool"}],name:"setApprovalForAll",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"},{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerTransaction",type:"uint256"},{internalType:"uint256",name:"waitTimeInSecondsBetweenClaims",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],internalType:"struct IDropClaimCondition_V2.ClaimCondition[]",name:"_phases",type:"tuple[]"},{internalType:"bool",name:"_resetClaimEligibility",type:"bool"}],name:"setClaimConditions",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"string",name:"_uri",type:"string"}],name:"setContractURI",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_royaltyRecipient",type:"address"},{internalType:"uint256",name:"_royaltyBps",type:"uint256"}],name:"setDefaultRoyaltyInfo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"},{internalType:"uint256",name:"_maxTotalSupply",type:"uint256"}],name:"setMaxTotalSupply",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"},{internalType:"uint256",name:"_count",type:"uint256"}],name:"setMaxWalletClaimCount",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_newOwner",type:"address"}],name:"setOwner",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_platformFeeRecipient",type:"address"},{internalType:"uint256",name:"_platformFeeBps",type:"uint256"}],name:"setPlatformFeeInfo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_saleRecipient",type:"address"}],name:"setPrimarySaleRecipient",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"},{internalType:"address",name:"_recipient",type:"address"},{internalType:"uint256",name:"_bps",type:"uint256"}],name:"setRoyaltyInfoForToken",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"},{internalType:"address",name:"_saleRecipient",type:"address"}],name:"setSaleRecipientForToken",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"},{internalType:"address",name:"_claimer",type:"address"},{internalType:"uint256",name:"_count",type:"uint256"}],name:"setWalletClaimCount",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes4",name:"interfaceId",type:"bytes4"}],name:"supportsInterface",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"symbol",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"}],name:"totalSupply",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"}],name:"uri",outputs:[{internalType:"string",name:"_tokenURI",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_conditionId",type:"uint256"},{internalType:"address",name:"_claimer",type:"address"},{internalType:"uint256",name:"_tokenId",type:"uint256"},{internalType:"uint256",name:"_quantity",type:"uint256"},{internalType:"address",name:"_currency",type:"address"},{internalType:"uint256",name:"_pricePerToken",type:"uint256"},{internalType:"bool",name:"verifyMaxQuantityPerTransaction",type:"bool"}],name:"verifyClaim",outputs:[],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_conditionId",type:"uint256"},{internalType:"address",name:"_claimer",type:"address"},{internalType:"uint256",name:"_tokenId",type:"uint256"},{internalType:"uint256",name:"_quantity",type:"uint256"},{internalType:"bytes32[]",name:"_proofs",type:"bytes32[]"},{internalType:"uint256",name:"_proofMaxQuantityPerTransaction",type:"uint256"}],name:"verifyClaimMerkleProof",outputs:[{internalType:"bool",name:"validMerkleProof",type:"bool"},{internalType:"uint256",name:"merkleProofIndex",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"},{internalType:"address",name:"",type:"address"}],name:"walletClaimCount",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"}]});var yUe=O(mUe=>{"use strict";x();T();var wu=Go(),nc=Uc(),oir=_t();Xr();Pn();Un();Wn();jn();zn();Hn();Vn();Gn();Zn();Jn();Kn();Qn();Xn();Yn();$n();ea();ta();ra();na();aa();ia();sa();oa();ca();ua();la();da();pa();ha();fa();ma();ya();ga();va();ba();wa();xa();Ta();_a();Ca();Ea();ka();Sa();Aa();Ma();Ia();Pa();Ra();En();Na();Oa();La();On();Ba();qa();Da();Fa();Ua();Wa();ja();za();Ha();Va();Ga();Za();Ja();Ka();Qa();var sw=class extends nc.StandardErc1155{constructor(e,t,n){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},i=arguments.length>4?arguments[4]:void 0,s=arguments.length>5?arguments[5]:void 0,c=arguments.length>6&&arguments[6]!==void 0?arguments[6]:new nc.ContractWrapper(e,t,i,a);super(c,n,s),wu._defineProperty(this,"abi",void 0),wu._defineProperty(this,"metadata",void 0),wu._defineProperty(this,"roles",void 0),wu._defineProperty(this,"sales",void 0),wu._defineProperty(this,"platformFees",void 0),wu._defineProperty(this,"encoder",void 0),wu._defineProperty(this,"estimator",void 0),wu._defineProperty(this,"events",void 0),wu._defineProperty(this,"royalties",void 0),wu._defineProperty(this,"signature",void 0),wu._defineProperty(this,"interceptor",void 0),wu._defineProperty(this,"erc1155",void 0),wu._defineProperty(this,"owner",void 0),this.abi=i,this.metadata=new nc.ContractMetadata(this.contractWrapper,nc.TokenErc1155ContractSchema,this.storage),this.roles=new nc.ContractRoles(this.contractWrapper,sw.contractRoles),this.royalties=new nc.ContractRoyalty(this.contractWrapper,this.metadata),this.sales=new nc.ContractPrimarySale(this.contractWrapper),this.encoder=new nc.ContractEncoder(this.contractWrapper),this.estimator=new nc.GasCostEstimator(this.contractWrapper),this.events=new nc.ContractEvents(this.contractWrapper),this.platformFees=new nc.ContractPlatformFee(this.contractWrapper),this.interceptor=new nc.ContractInterceptor(this.contractWrapper),this.signature=new nc.Erc1155SignatureMintable(this.contractWrapper,this.storage,this.roles),this.erc1155=new nc.Erc1155(this.contractWrapper,this.storage,s),this.owner=new nc.ContractOwner(this.contractWrapper)}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}async getAll(e){return this.erc1155.getAll(e)}async getOwned(e){return this.erc1155.getOwned(e)}async getTotalCount(){return this.erc1155.totalCount()}async isTransferRestricted(){return!await this.contractWrapper.readContract.hasRole(nc.getRoleHash("transfer"),oir.constants.AddressZero)}async mint(e){return this.erc1155.mint(e)}async mintTo(e,t){return this.erc1155.mintTo(e,t)}async getMintTransaction(e,t){return this.erc1155.getMintTransaction(e,t)}async mintAdditionalSupply(e,t){return this.erc1155.mintAdditionalSupply(e,t)}async mintAdditionalSupplyTo(e,t,n){return this.erc1155.mintAdditionalSupplyTo(e,t,n)}async mintBatch(e){return this.erc1155.mintBatch(e)}async mintBatchTo(e,t){return this.erc1155.mintBatchTo(e,t)}async burn(e,t){return this.erc1155.burn(e,t)}async call(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a{cir.exports=[{inputs:[],stateMutability:"nonpayable",type:"constructor"},{inputs:[{internalType:"address",name:"operator",type:"address"}],name:"OperatorNotAllowed",type:"error"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!1,internalType:"bool",name:"approved",type:"bool"}],name:"ApprovalForAll",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"newRoyaltyRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"newRoyaltyBps",type:"uint256"}],name:"DefaultRoyalty",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint8",name:"version",type:"uint8"}],name:"Initialized",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"bool",name:"restriction",type:"bool"}],name:"OperatorRestriction",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"prevOwner",type:"address"},{indexed:!0,internalType:"address",name:"newOwner",type:"address"}],name:"OwnerUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"platformFeeRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"platformFeeBps",type:"uint256"}],name:"PlatformFeeInfoUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"recipient",type:"address"}],name:"PrimarySaleRecipientUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"previousAdminRole",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"newAdminRole",type:"bytes32"}],name:"RoleAdminChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleGranted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleRevoked",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!0,internalType:"address",name:"royaltyRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"royaltyBps",type:"uint256"}],name:"RoyaltyForToken",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"mintedTo",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenIdMinted",type:"uint256"},{indexed:!1,internalType:"string",name:"uri",type:"string"},{indexed:!1,internalType:"uint256",name:"quantityMinted",type:"uint256"}],name:"TokensMinted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"signer",type:"address"},{indexed:!0,internalType:"address",name:"mintedTo",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenIdMinted",type:"uint256"},{components:[{internalType:"address",name:"to",type:"address"},{internalType:"address",name:"royaltyRecipient",type:"address"},{internalType:"uint256",name:"royaltyBps",type:"uint256"},{internalType:"address",name:"primarySaleRecipient",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"string",name:"uri",type:"string"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint128",name:"validityStartTimestamp",type:"uint128"},{internalType:"uint128",name:"validityEndTimestamp",type:"uint128"},{internalType:"bytes32",name:"uid",type:"bytes32"}],indexed:!1,internalType:"struct ITokenERC1155.MintRequest",name:"mintRequest",type:"tuple"}],name:"TokensMintedWithSignature",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256[]",name:"ids",type:"uint256[]"},{indexed:!1,internalType:"uint256[]",name:"values",type:"uint256[]"}],name:"TransferBatch",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256",name:"id",type:"uint256"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"}],name:"TransferSingle",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"string",name:"value",type:"string"},{indexed:!0,internalType:"uint256",name:"id",type:"uint256"}],name:"URI",type:"event"},{inputs:[],name:"DEFAULT_ADMIN_ROLE",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint256",name:"id",type:"uint256"}],name:"balanceOf",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address[]",name:"accounts",type:"address[]"},{internalType:"uint256[]",name:"ids",type:"uint256[]"}],name:"balanceOfBatch",outputs:[{internalType:"uint256[]",name:"",type:"uint256[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint256",name:"id",type:"uint256"},{internalType:"uint256",name:"value",type:"uint256"}],name:"burn",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint256[]",name:"ids",type:"uint256[]"},{internalType:"uint256[]",name:"values",type:"uint256[]"}],name:"burnBatch",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"contractType",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"pure",type:"function"},{inputs:[],name:"contractURI",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"contractVersion",outputs:[{internalType:"uint8",name:"",type:"uint8"}],stateMutability:"pure",type:"function"},{inputs:[],name:"getDefaultRoyaltyInfo",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[],name:"getPlatformFeeInfo",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleAdmin",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"uint256",name:"index",type:"uint256"}],name:"getRoleMember",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleMemberCount",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"}],name:"getRoyaltyInfoForToken",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"grantRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRole",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_defaultAdmin",type:"address"},{internalType:"string",name:"_name",type:"string"},{internalType:"string",name:"_symbol",type:"string"},{internalType:"string",name:"_contractURI",type:"string"},{internalType:"address[]",name:"_trustedForwarders",type:"address[]"},{internalType:"address",name:"_primarySaleRecipient",type:"address"},{internalType:"address",name:"_royaltyRecipient",type:"address"},{internalType:"uint128",name:"_royaltyBps",type:"uint128"},{internalType:"uint128",name:"_platformFeeBps",type:"uint128"},{internalType:"address",name:"_platformFeeRecipient",type:"address"}],name:"initialize",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"address",name:"operator",type:"address"}],name:"isApprovedForAll",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"forwarder",type:"address"}],name:"isTrustedForwarder",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_to",type:"address"},{internalType:"uint256",name:"_tokenId",type:"uint256"},{internalType:"string",name:"_uri",type:"string"},{internalType:"uint256",name:"_amount",type:"uint256"}],name:"mintTo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{internalType:"address",name:"to",type:"address"},{internalType:"address",name:"royaltyRecipient",type:"address"},{internalType:"uint256",name:"royaltyBps",type:"uint256"},{internalType:"address",name:"primarySaleRecipient",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"string",name:"uri",type:"string"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint128",name:"validityStartTimestamp",type:"uint128"},{internalType:"uint128",name:"validityEndTimestamp",type:"uint128"},{internalType:"bytes32",name:"uid",type:"bytes32"}],internalType:"struct ITokenERC1155.MintRequest",name:"_req",type:"tuple"},{internalType:"bytes",name:"_signature",type:"bytes"}],name:"mintWithSignature",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"bytes[]",name:"data",type:"bytes[]"}],name:"multicall",outputs:[{internalType:"bytes[]",name:"results",type:"bytes[]"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"name",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"nextTokenIdToMint",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"operatorRestriction",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"owner",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"platformFeeRecipient",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"primarySaleRecipient",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"renounceRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"revokeRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"salePrice",type:"uint256"}],name:"royaltyInfo",outputs:[{internalType:"address",name:"receiver",type:"address"},{internalType:"uint256",name:"royaltyAmount",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256[]",name:"ids",type:"uint256[]"},{internalType:"uint256[]",name:"amounts",type:"uint256[]"},{internalType:"bytes",name:"data",type:"bytes"}],name:"safeBatchTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"id",type:"uint256"},{internalType:"uint256",name:"amount",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"}],name:"safeTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"}],name:"saleRecipientForToken",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"operator",type:"address"},{internalType:"bool",name:"approved",type:"bool"}],name:"setApprovalForAll",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"string",name:"_uri",type:"string"}],name:"setContractURI",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_royaltyRecipient",type:"address"},{internalType:"uint256",name:"_royaltyBps",type:"uint256"}],name:"setDefaultRoyaltyInfo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bool",name:"_restriction",type:"bool"}],name:"setOperatorRestriction",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_newOwner",type:"address"}],name:"setOwner",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_platformFeeRecipient",type:"address"},{internalType:"uint256",name:"_platformFeeBps",type:"uint256"}],name:"setPlatformFeeInfo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_saleRecipient",type:"address"}],name:"setPrimarySaleRecipient",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"},{internalType:"address",name:"_recipient",type:"address"},{internalType:"uint256",name:"_bps",type:"uint256"}],name:"setRoyaltyInfoForToken",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes4",name:"interfaceId",type:"bytes4"}],name:"supportsInterface",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"symbol",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"}],name:"totalSupply",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"}],name:"uri",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{components:[{internalType:"address",name:"to",type:"address"},{internalType:"address",name:"royaltyRecipient",type:"address"},{internalType:"uint256",name:"royaltyBps",type:"uint256"},{internalType:"address",name:"primarySaleRecipient",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"string",name:"uri",type:"string"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint128",name:"validityStartTimestamp",type:"uint128"},{internalType:"uint128",name:"validityEndTimestamp",type:"uint128"},{internalType:"bytes32",name:"uid",type:"bytes32"}],internalType:"struct ITokenERC1155.MintRequest",name:"_req",type:"tuple"},{internalType:"bytes",name:"_signature",type:"bytes"}],name:"verify",outputs:[{internalType:"bool",name:"",type:"bool"},{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"}]});var bUe=O(vUe=>{"use strict";x();T();var ac=Go(),Ln=Uc(),ol=_t(),uir=zn();Xr();Pn();Un();Wn();jn();Hn();Vn();Gn();Zn();Jn();Kn();Qn();Xn();Yn();$n();ea();ta();ra();na();aa();ia();sa();oa();ca();ua();la();da();pa();ha();fa();ma();ya();ga();va();ba();wa();xa();Ta();_a();Ca();Ea();ka();Sa();Aa();Ma();Ia();Pa();Ra();En();Na();Oa();La();On();Ba();qa();Da();Fa();Ua();Wa();ja();za();Ha();Va();Ga();Za();Ja();Ka();Qa();function lir(r){return r&&r.__esModule?r:{default:r}}var gUe=lir(uir),ow=class{get chainId(){return this._chainId}constructor(e,t,n){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},i=arguments.length>4?arguments[4]:void 0,s=arguments.length>5?arguments[5]:void 0,c=arguments.length>6&&arguments[6]!==void 0?arguments[6]:new Ln.ContractWrapper(e,t,i,a);ac._defineProperty(this,"abi",void 0),ac._defineProperty(this,"contractWrapper",void 0),ac._defineProperty(this,"storage",void 0),ac._defineProperty(this,"encoder",void 0),ac._defineProperty(this,"events",void 0),ac._defineProperty(this,"estimator",void 0),ac._defineProperty(this,"platformFees",void 0),ac._defineProperty(this,"metadata",void 0),ac._defineProperty(this,"roles",void 0),ac._defineProperty(this,"interceptor",void 0),ac._defineProperty(this,"direct",void 0),ac._defineProperty(this,"auction",void 0),ac._defineProperty(this,"_chainId",void 0),ac._defineProperty(this,"getAll",this.getAllListings),this._chainId=s,this.abi=i,this.contractWrapper=c,this.storage=n,this.metadata=new Ln.ContractMetadata(this.contractWrapper,Ln.MarketplaceContractSchema,this.storage),this.roles=new Ln.ContractRoles(this.contractWrapper,ow.contractRoles),this.encoder=new Ln.ContractEncoder(this.contractWrapper),this.estimator=new Ln.GasCostEstimator(this.contractWrapper),this.direct=new Ln.MarketplaceDirect(this.contractWrapper,this.storage),this.auction=new Ln.MarketplaceAuction(this.contractWrapper,this.storage),this.events=new Ln.ContractEvents(this.contractWrapper),this.platformFees=new Ln.ContractPlatformFee(this.contractWrapper),this.interceptor=new Ln.ContractInterceptor(this.contractWrapper)}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}async getListing(e){let t=await this.contractWrapper.readContract.listings(e);if(t.assetContract===ol.constants.AddressZero)throw new Ln.ListingNotFoundError(this.getAddress(),e.toString());switch(t.listingType){case Ln.ListingType.Auction:return await this.auction.mapListing(t);case Ln.ListingType.Direct:return await this.direct.mapListing(t);default:throw new Error(`Unknown listing type: ${t.listingType}`)}}async getActiveListings(e){let t=await this.getAllListingsNoFilter(!0),n=this.applyFilter(t,e),a=ol.BigNumber.from(Math.floor(Date.now()/1e3));return n.filter(i=>i.type===Ln.ListingType.Auction&&ol.BigNumber.from(i.endTimeInEpochSeconds).gt(a)&&ol.BigNumber.from(i.startTimeInEpochSeconds).lte(a)||i.type===Ln.ListingType.Direct&&i.quantity>0)}async getAllListings(e){let t=await this.getAllListingsNoFilter(!1);return this.applyFilter(t,e)}async getTotalCount(){return await this.contractWrapper.readContract.totalListings()}async isRestrictedToListerRoleOnly(){return!await this.contractWrapper.readContract.hasRole(Ln.getRoleHash("lister"),ol.constants.AddressZero)}async getBidBufferBps(){return this.contractWrapper.readContract.bidBufferBps()}async getTimeBufferInSeconds(){return this.contractWrapper.readContract.timeBuffer()}async getOffers(e){let t=await this.events.getEvents("NewOffer",{order:"desc",filters:{listingId:e}});return await Promise.all(t.map(async n=>await Ln.mapOffer(this.contractWrapper.getProvider(),ol.BigNumber.from(e),{quantityWanted:n.data.quantityWanted,pricePerToken:n.data.quantityWanted.gt(0)?n.data.totalOfferAmount.div(n.data.quantityWanted):n.data.totalOfferAmount,currency:n.data.currency,offeror:n.data.offeror})))}async buyoutListing(e,t,n){let a=await this.contractWrapper.readContract.listings(e);if(a.listingId.toString()!==e.toString())throw new Ln.ListingNotFoundError(this.getAddress(),e.toString());switch(a.listingType){case Ln.ListingType.Direct:return gUe.default(t!==void 0,"quantityDesired is required when buying out a direct listing"),await this.direct.buyoutListing(e,t,n);case Ln.ListingType.Auction:return await this.auction.buyoutListing(e);default:throw Error(`Unknown listing type: ${a.listingType}`)}}async makeOffer(e,t,n){let a=await this.contractWrapper.readContract.listings(e);if(a.listingId.toString()!==e.toString())throw new Ln.ListingNotFoundError(this.getAddress(),e.toString());let i=await this.contractWrapper.getChainID();switch(a.listingType){case Ln.ListingType.Direct:return gUe.default(n,"quantity is required when making an offer on a direct listing"),await this.direct.makeOffer(e,n,Ln.isNativeToken(a.currency)?Ln.NATIVE_TOKENS[i].wrapped.address:a.currency,t);case Ln.ListingType.Auction:return await this.auction.makeBid(e,t);default:throw Error(`Unknown listing type: ${a.listingType}`)}}async setBidBufferBps(e){await this.roles.verify(["admin"],await this.contractWrapper.getSignerAddress());let t=await this.getTimeBufferInSeconds();await this.contractWrapper.sendTransaction("setAuctionBuffers",[t,ol.BigNumber.from(e)])}async setTimeBufferInSeconds(e){await this.roles.verify(["admin"],await this.contractWrapper.getSignerAddress());let t=await this.getBidBufferBps();await this.contractWrapper.sendTransaction("setAuctionBuffers",[ol.BigNumber.from(e),t])}async allowListingFromSpecificAssetOnly(e){let t=[];(await this.roles.get("asset")).includes(ol.constants.AddressZero)&&t.push(this.encoder.encode("revokeRole",[Ln.getRoleHash("asset"),ol.constants.AddressZero])),t.push(this.encoder.encode("grantRole",[Ln.getRoleHash("asset"),e])),await this.contractWrapper.multiCall(t)}async allowListingFromAnyAsset(){let e=[],t=await this.roles.get("asset");for(let n in t)e.push(this.encoder.encode("revokeRole",[Ln.getRoleHash("asset"),n]));e.push(this.encoder.encode("grantRole",[Ln.getRoleHash("asset"),ol.constants.AddressZero])),await this.contractWrapper.multiCall(e)}async getAllListingsNoFilter(e){return(await Promise.all(Array.from(Array((await this.contractWrapper.readContract.totalListings()).toNumber()).keys()).map(async n=>{let a;try{a=await this.getListing(n)}catch(i){if(i instanceof Ln.ListingNotFoundError)return;console.warn(`Failed to get listing ${n}' - skipping. Try 'marketplace.getListing(${n})' to get the underlying error.`);return}if(a.type===Ln.ListingType.Auction)return a;if(e){let{valid:i}=await this.direct.isStillValidListing(a);if(!i)return}return a}))).filter(n=>n!==void 0)}applyFilter(e,t){let n=[...e],a=ol.BigNumber.from(t?.start||0).toNumber(),i=ol.BigNumber.from(t?.count||ac.DEFAULT_QUERY_ALL_COUNT).toNumber();return t&&(t.seller&&(n=n.filter(s=>s.sellerAddress.toString().toLowerCase()===t?.seller?.toString().toLowerCase())),t.tokenContract&&(n=n.filter(s=>s.assetContractAddress.toString().toLowerCase()===t?.tokenContract?.toString().toLowerCase())),t.tokenId!==void 0&&(n=n.filter(s=>s.tokenId.toString()===t?.tokenId?.toString())),n=n.filter((s,c)=>c>=a),n=n.slice(0,i)),n}async call(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a{dir.exports=[{inputs:[{internalType:"address",name:"_nativeTokenWrapper",type:"address"}],stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"timeBuffer",type:"uint256"},{indexed:!1,internalType:"uint256",name:"bidBufferBps",type:"uint256"}],name:"AuctionBuffersUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"listingId",type:"uint256"},{indexed:!0,internalType:"address",name:"closer",type:"address"},{indexed:!0,internalType:"bool",name:"cancelled",type:"bool"},{indexed:!1,internalType:"address",name:"auctionCreator",type:"address"},{indexed:!1,internalType:"address",name:"winningBidder",type:"address"}],name:"AuctionClosed",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint8",name:"version",type:"uint8"}],name:"Initialized",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"listingId",type:"uint256"},{indexed:!0,internalType:"address",name:"assetContract",type:"address"},{indexed:!0,internalType:"address",name:"lister",type:"address"},{components:[{internalType:"uint256",name:"listingId",type:"uint256"},{internalType:"address",name:"tokenOwner",type:"address"},{internalType:"address",name:"assetContract",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"startTime",type:"uint256"},{internalType:"uint256",name:"endTime",type:"uint256"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint256",name:"reservePricePerToken",type:"uint256"},{internalType:"uint256",name:"buyoutPricePerToken",type:"uint256"},{internalType:"enum IMarketplace.TokenType",name:"tokenType",type:"uint8"},{internalType:"enum IMarketplace.ListingType",name:"listingType",type:"uint8"}],indexed:!1,internalType:"struct IMarketplace.Listing",name:"listing",type:"tuple"}],name:"ListingAdded",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"listingId",type:"uint256"},{indexed:!0,internalType:"address",name:"listingCreator",type:"address"}],name:"ListingRemoved",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"listingId",type:"uint256"},{indexed:!0,internalType:"address",name:"listingCreator",type:"address"}],name:"ListingUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"listingId",type:"uint256"},{indexed:!0,internalType:"address",name:"offeror",type:"address"},{indexed:!0,internalType:"enum IMarketplace.ListingType",name:"listingType",type:"uint8"},{indexed:!1,internalType:"uint256",name:"quantityWanted",type:"uint256"},{indexed:!1,internalType:"uint256",name:"totalOfferAmount",type:"uint256"},{indexed:!1,internalType:"address",name:"currency",type:"address"}],name:"NewOffer",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"listingId",type:"uint256"},{indexed:!0,internalType:"address",name:"assetContract",type:"address"},{indexed:!0,internalType:"address",name:"lister",type:"address"},{indexed:!1,internalType:"address",name:"buyer",type:"address"},{indexed:!1,internalType:"uint256",name:"quantityBought",type:"uint256"},{indexed:!1,internalType:"uint256",name:"totalPricePaid",type:"uint256"}],name:"NewSale",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"platformFeeRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"platformFeeBps",type:"uint256"}],name:"PlatformFeeInfoUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"previousAdminRole",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"newAdminRole",type:"bytes32"}],name:"RoleAdminChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleGranted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleRevoked",type:"event"},{inputs:[],name:"DEFAULT_ADMIN_ROLE",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"MAX_BPS",outputs:[{internalType:"uint64",name:"",type:"uint64"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_listingId",type:"uint256"},{internalType:"address",name:"_offeror",type:"address"},{internalType:"address",name:"_currency",type:"address"},{internalType:"uint256",name:"_pricePerToken",type:"uint256"}],name:"acceptOffer",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"bidBufferBps",outputs:[{internalType:"uint64",name:"",type:"uint64"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_listingId",type:"uint256"},{internalType:"address",name:"_buyFor",type:"address"},{internalType:"uint256",name:"_quantityToBuy",type:"uint256"},{internalType:"address",name:"_currency",type:"address"},{internalType:"uint256",name:"_totalPrice",type:"uint256"}],name:"buy",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"uint256",name:"_listingId",type:"uint256"}],name:"cancelDirectListing",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_listingId",type:"uint256"},{internalType:"address",name:"_closeFor",type:"address"}],name:"closeAuction",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"contractType",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"pure",type:"function"},{inputs:[],name:"contractURI",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"contractVersion",outputs:[{internalType:"uint8",name:"",type:"uint8"}],stateMutability:"pure",type:"function"},{inputs:[{components:[{internalType:"address",name:"assetContract",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"startTime",type:"uint256"},{internalType:"uint256",name:"secondsUntilEndTime",type:"uint256"},{internalType:"uint256",name:"quantityToList",type:"uint256"},{internalType:"address",name:"currencyToAccept",type:"address"},{internalType:"uint256",name:"reservePricePerToken",type:"uint256"},{internalType:"uint256",name:"buyoutPricePerToken",type:"uint256"},{internalType:"enum IMarketplace.ListingType",name:"listingType",type:"uint8"}],internalType:"struct IMarketplace.ListingParameters",name:"_params",type:"tuple"}],name:"createListing",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"getPlatformFeeInfo",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleAdmin",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"uint256",name:"index",type:"uint256"}],name:"getRoleMember",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleMemberCount",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"grantRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRole",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_defaultAdmin",type:"address"},{internalType:"string",name:"_contractURI",type:"string"},{internalType:"address[]",name:"_trustedForwarders",type:"address[]"},{internalType:"address",name:"_platformFeeRecipient",type:"address"},{internalType:"uint256",name:"_platformFeeBps",type:"uint256"}],name:"initialize",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"forwarder",type:"address"}],name:"isTrustedForwarder",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"}],name:"listings",outputs:[{internalType:"uint256",name:"listingId",type:"uint256"},{internalType:"address",name:"tokenOwner",type:"address"},{internalType:"address",name:"assetContract",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"startTime",type:"uint256"},{internalType:"uint256",name:"endTime",type:"uint256"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint256",name:"reservePricePerToken",type:"uint256"},{internalType:"uint256",name:"buyoutPricePerToken",type:"uint256"},{internalType:"enum IMarketplace.TokenType",name:"tokenType",type:"uint8"},{internalType:"enum IMarketplace.ListingType",name:"listingType",type:"uint8"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes[]",name:"data",type:"bytes[]"}],name:"multicall",outputs:[{internalType:"bytes[]",name:"results",type:"bytes[]"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_listingId",type:"uint256"},{internalType:"uint256",name:"_quantityWanted",type:"uint256"},{internalType:"address",name:"_currency",type:"address"},{internalType:"uint256",name:"_pricePerToken",type:"uint256"},{internalType:"uint256",name:"_expirationTimestamp",type:"uint256"}],name:"offer",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"},{internalType:"address",name:"",type:"address"}],name:"offers",outputs:[{internalType:"uint256",name:"listingId",type:"uint256"},{internalType:"address",name:"offeror",type:"address"},{internalType:"uint256",name:"quantityWanted",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"uint256",name:"expirationTimestamp",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"},{internalType:"address",name:"",type:"address"},{internalType:"uint256[]",name:"",type:"uint256[]"},{internalType:"uint256[]",name:"",type:"uint256[]"},{internalType:"bytes",name:"",type:"bytes"}],name:"onERC1155BatchReceived",outputs:[{internalType:"bytes4",name:"",type:"bytes4"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"},{internalType:"address",name:"",type:"address"},{internalType:"uint256",name:"",type:"uint256"},{internalType:"uint256",name:"",type:"uint256"},{internalType:"bytes",name:"",type:"bytes"}],name:"onERC1155Received",outputs:[{internalType:"bytes4",name:"",type:"bytes4"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"},{internalType:"address",name:"",type:"address"},{internalType:"uint256",name:"",type:"uint256"},{internalType:"bytes",name:"",type:"bytes"}],name:"onERC721Received",outputs:[{internalType:"bytes4",name:"",type:"bytes4"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"renounceRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"revokeRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_timeBuffer",type:"uint256"},{internalType:"uint256",name:"_bidBufferBps",type:"uint256"}],name:"setAuctionBuffers",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"string",name:"_uri",type:"string"}],name:"setContractURI",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_platformFeeRecipient",type:"address"},{internalType:"uint256",name:"_platformFeeBps",type:"uint256"}],name:"setPlatformFeeInfo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes4",name:"interfaceId",type:"bytes4"}],name:"supportsInterface",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"timeBuffer",outputs:[{internalType:"uint64",name:"",type:"uint64"}],stateMutability:"view",type:"function"},{inputs:[],name:"totalListings",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_listingId",type:"uint256"},{internalType:"uint256",name:"_quantityToList",type:"uint256"},{internalType:"uint256",name:"_reservePricePerToken",type:"uint256"},{internalType:"uint256",name:"_buyoutPricePerToken",type:"uint256"},{internalType:"address",name:"_currencyToAccept",type:"address"},{internalType:"uint256",name:"_startTime",type:"uint256"},{internalType:"uint256",name:"_secondsUntilEndTime",type:"uint256"}],name:"updateListing",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"}],name:"winningBid",outputs:[{internalType:"uint256",name:"listingId",type:"uint256"},{internalType:"address",name:"offeror",type:"address"},{internalType:"uint256",name:"quantityWanted",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"uint256",name:"expirationTimestamp",type:"uint256"}],stateMutability:"view",type:"function"},{stateMutability:"payable",type:"receive"}]});var TUe=O(xUe=>{"use strict";x();T();var dn=Go(),ht=Uc(),O9=Pn(),pir=Un(),hir=Wn(),fir=jn(),nr=_t(),mir=zn(),yir=Kn();Xr();Hn();Vn();Gn();Zn();Jn();Qn();Xn();Yn();$n();ea();ta();ra();na();aa();ia();sa();oa();ca();ua();la();da();pa();ha();fa();ma();ya();ga();va();ba();wa();xa();Ta();_a();Ca();Ea();ka();Sa();Aa();Ma();Ia();Pa();Ra();En();Na();Oa();La();On();Ba();qa();Da();Fa();Ua();Wa();ja();za();Ha();Va();Ga();Za();Ja();Ka();Qa();function KT(r){return r&&r.__esModule?r:{default:r}}var gir=KT(pir),vir=KT(hir),bir=KT(fir),cw=KT(mir),wir=KT(yir),wUe=O9.z.object({assetContractAddress:ht.AddressSchema,tokenId:ht.BigNumberishSchema,quantity:ht.BigNumberishSchema.default(1),currencyContractAddress:ht.AddressSchema.default(ht.NATIVE_TOKEN_ADDRESS),pricePerToken:dn.AmountSchema,startTimestamp:ht.RawDateSchema.default(new Date),endTimestamp:ht.EndDateSchema,isReservedListing:O9.z.boolean().default(!1)}),zH=class{constructor(e,t){dn._defineProperty(this,"featureName",ht.FEATURE_DIRECT_LISTINGS.name),dn._defineProperty(this,"contractWrapper",void 0),dn._defineProperty(this,"storage",void 0),dn._defineProperty(this,"events",void 0),dn._defineProperty(this,"interceptor",void 0),dn._defineProperty(this,"encoder",void 0),dn._defineProperty(this,"estimator",void 0),this.contractWrapper=e,this.storage=t,this.events=new ht.ContractEvents(this.contractWrapper),this.encoder=new ht.ContractEncoder(this.contractWrapper),this.interceptor=new ht.ContractInterceptor(this.contractWrapper),this.estimator=new ht.GasCostEstimator(this.contractWrapper)}getAddress(){return this.contractWrapper.readContract.address}async getTotalCount(){return await this.contractWrapper.readContract.totalListings()}async getAll(e){let t=await this.getTotalCount(),n=nr.BigNumber.from(e?.start||0).toNumber(),a=t.toNumber();if(a===0)throw new Error("No listings exist on the contract.");let i=[];i=(await ht.getAllInBatches(n,a,this.contractWrapper.readContract.getAllListings)).flat();let c=this.applyFilter(i,e);return await Promise.all(c.map(l=>this.mapListing(l)))}async getAllValid(e){let t=await this.getTotalCount(),n=nr.BigNumber.from(e?.start||0).toNumber(),a=t.toNumber();if(a===0)throw new Error("No listings exist on the contract.");let i=[];i=(await ht.getAllInBatches(n,a,this.contractWrapper.readContract.getAllValidListings)).flat();let c=this.applyFilter(i,e);return await Promise.all(c.map(l=>this.mapListing(l)))}async getListing(e){let t=await this.contractWrapper.readContract.getListing(e);return await this.mapListing(t)}async isBuyerApprovedForListing(e,t){if(!(await this.validateListing(nr.BigNumber.from(e))).isReservedListing)throw new Error(`Listing ${e} is not a reserved listing.`);return await this.contractWrapper.readContract.isBuyerApprovedForListing(e,t)}async isCurrencyApprovedForListing(e,t){return await this.validateListing(nr.BigNumber.from(e)),await this.contractWrapper.readContract.isCurrencyApprovedForListing(e,t)}async currencyPriceForListing(e,t){let n=await this.validateListing(nr.BigNumber.from(e));if(t===n.currencyContractAddress)return n.pricePerToken;if(!await this.isCurrencyApprovedForListing(e,t))throw new Error(`Currency ${t} is not approved for Listing ${e}.`);return await this.contractWrapper.readContract.currencyPriceForListing(e,t)}async createListing(e){let t=wUe.parse(e);await ht.handleTokenApproval(this.contractWrapper,this.getAddress(),t.assetContractAddress,t.tokenId,await this.contractWrapper.getSignerAddress());let n=await ht.normalizePriceValue(this.contractWrapper.getProvider(),t.pricePerToken,t.currencyContractAddress),i=(await this.contractWrapper.getProvider().getBlock("latest")).timestamp;t.startTimestamp.lt(i)&&(t.startTimestamp=nr.BigNumber.from(i));let s=await this.contractWrapper.sendTransaction("createListing",[{assetContract:t.assetContractAddress,tokenId:t.tokenId,quantity:t.quantity,currency:ht.cleanCurrencyAddress(t.currencyContractAddress),pricePerToken:n,startTimestamp:t.startTimestamp,endTimestamp:t.endTimestamp,reserved:t.isReservedListing}],{gasLimit:5e5});return{id:this.contractWrapper.parseLogs("NewListing",s?.logs)[0].args.listingId,receipt:s}}async updateListing(e,t){let n=wUe.parse(t);await ht.handleTokenApproval(this.contractWrapper,this.getAddress(),n.assetContractAddress,n.tokenId,await this.contractWrapper.getSignerAddress());let a=await ht.normalizePriceValue(this.contractWrapper.getProvider(),n.pricePerToken,n.currencyContractAddress),i=await this.contractWrapper.sendTransaction("updateListing",[e,{assetContract:n.assetContractAddress,tokenId:n.tokenId,quantity:n.quantity,currency:ht.cleanCurrencyAddress(n.currencyContractAddress),pricePerToken:a,startTimestamp:n.startTimestamp,endTimestamp:n.endTimestamp,reserved:n.isReservedListing}],{gasLimit:5e5});return{id:this.contractWrapper.parseLogs("UpdatedListing",i?.logs)[0].args.listingId,receipt:i}}async cancelListing(e){return{receipt:await this.contractWrapper.sendTransaction("cancelListing",[e])}}async buyFromListing(e,t,n){let a=await this.validateListing(nr.BigNumber.from(e)),{valid:i,error:s}=await this.isStillValidListing(a,t);if(!i)throw new Error(`Listing ${e} is no longer valid. ${s}`);let c=n||await this.contractWrapper.getSignerAddress(),l=nr.BigNumber.from(t),d=nr.BigNumber.from(a.pricePerToken).mul(l),f=await this.contractWrapper.getCallOverrides()||{};return await ht.setErc20Allowance(this.contractWrapper,d,a.currencyContractAddress,f),{receipt:await this.contractWrapper.sendTransaction("buyFromListing",[e,c,l,a.currencyContractAddress,d],f)}}async approveBuyerForReservedListing(e,t){if(await this.isBuyerApprovedForListing(e,t))throw new Error(`Buyer ${t} already approved for listing ${e}.`);return{receipt:await this.contractWrapper.sendTransaction("approveBuyerForListing",[e,t,!0])}}async revokeBuyerApprovalForReservedListing(e,t){if(await this.isBuyerApprovedForListing(e,t))return{receipt:await this.contractWrapper.sendTransaction("approveBuyerForListing",[e,t,!1])};throw new Error(`Buyer ${t} not approved for listing ${e}.`)}async approveCurrencyForListing(e,t,n){let a=await this.validateListing(nr.BigNumber.from(e));t===a.currencyContractAddress&&cw.default(n===a.pricePerToken,"Approving listing currency with a different price.");let i=await this.contractWrapper.readContract.currencyPriceForListing(e,t);return cw.default(n===i,"Currency already approved with this price."),{receipt:await this.contractWrapper.sendTransaction("approveCurrencyForListing",[e,t,n])}}async revokeCurrencyApprovalForListing(e,t){let n=await this.validateListing(nr.BigNumber.from(e));if(t===n.currencyContractAddress)throw new Error("Can't revoke approval for main listing currency.");let a=await this.contractWrapper.readContract.currencyPriceForListing(e,t);return cw.default(!a.isZero(),"Currency not approved."),{receipt:await this.contractWrapper.sendTransaction("approveCurrencyForListing",[e,t,nr.BigNumber.from(0)])}}async validateListing(e){try{return await this.getListing(e)}catch(t){throw console.error(`Error getting the listing with id ${e}`),t}}async mapListing(e){let t=ht.Status.UNSET,a=(await this.contractWrapper.getProvider().getBlock("latest")).timestamp;switch(e.status){case 1:t=nr.BigNumber.from(e.startTimestamp).gt(a)?ht.Status.Created:nr.BigNumber.from(e.endTimestamp).lt(a)?ht.Status.Expired:ht.Status.Active;break;case 2:t=ht.Status.Completed;break;case 3:t=ht.Status.Cancelled;break}return{assetContractAddress:e.assetContract,currencyContractAddress:e.currency,pricePerToken:e.pricePerToken.toString(),currencyValuePerToken:await ht.fetchCurrencyValue(this.contractWrapper.getProvider(),e.currency,e.pricePerToken),id:e.listingId.toString(),tokenId:e.tokenId.toString(),quantity:e.quantity.toString(),startTimeInSeconds:nr.BigNumber.from(e.startTimestamp).toNumber(),asset:await ht.fetchTokenMetadataForContract(e.assetContract,this.contractWrapper.getProvider(),e.tokenId,this.storage),endTimeInSeconds:nr.BigNumber.from(e.endTimestamp).toNumber(),creatorAddress:e.listingCreator,isReservedListing:e.reserved,status:t}}async isStillValidListing(e,t){if(!await ht.isTokenApprovedForTransfer(this.contractWrapper.getProvider(),this.getAddress(),e.assetContractAddress,e.tokenId,e.creatorAddress))return{valid:!1,error:`Token '${e.tokenId}' from contract '${e.assetContractAddress}' is not approved for transfer`};let a=this.contractWrapper.getProvider(),i=new nr.Contract(e.assetContractAddress,gir.default,a),s=await i.supportsInterface(ht.InterfaceId_IERC721),c=await i.supportsInterface(ht.InterfaceId_IERC1155);if(s){let d=(await new nr.Contract(e.assetContractAddress,vir.default,a).ownerOf(e.tokenId)).toLowerCase()===e.creatorAddress.toLowerCase();return{valid:d,error:d?void 0:`Seller is not the owner of Token '${e.tokenId}' from contract '${e.assetContractAddress} anymore'`}}else if(c){let f=(await new nr.Contract(e.assetContractAddress,bir.default,a).balanceOf(e.creatorAddress,e.tokenId)).gte(t||e.quantity);return{valid:f,error:f?void 0:`Seller does not have enough balance of Token '${e.tokenId}' from contract '${e.assetContractAddress} to fulfill the listing`}}else return{valid:!1,error:"Contract does not implement ERC 1155 or ERC 721."}}applyFilter(e,t){let n=[...e];return t&&(t.seller&&(n=n.filter(a=>a.listingCreator.toString().toLowerCase()===t?.seller?.toString().toLowerCase())),t.tokenContract&&(n=n.filter(a=>a.assetContract.toString().toLowerCase()===t?.tokenContract?.toString().toLowerCase())),t.tokenId!==void 0&&(n=n.filter(a=>a.tokenId.toString()===t?.tokenId?.toString()))),t?.count&&t.countthis.mapAuction(l)))}async getAllValid(e){let t=await this.getTotalCount(),n=nr.BigNumber.from(e?.start||0).toNumber(),a=t.toNumber();if(a===0)throw new Error("No auctions exist on the contract.");let i=[];i=(await ht.getAllInBatches(n,a,this.contractWrapper.readContract.getAllValidAuctions)).flat();let c=this.applyFilter(i,e);return await Promise.all(c.map(l=>this.mapAuction(l)))}async getAuction(e){let t=await this.contractWrapper.readContract.getAuction(e);return await this.mapAuction(t)}async getWinningBid(e){await this.validateAuction(nr.BigNumber.from(e));let t=await this.contractWrapper.readContract.getWinningBid(e);if(t._bidder!==nr.constants.AddressZero)return await this.mapBid(e.toString(),t._bidder,t._currency,t._bidAmount.toString())}async isWinningBid(e,t){return await this.contractWrapper.readContract.isNewWinningBid(e,t)}async getWinner(e){let t=await this.validateAuction(nr.BigNumber.from(e)),n=await this.contractWrapper.readContract.getWinningBid(e),a=nr.BigNumber.from(Math.floor(Date.now()/1e3)),i=nr.BigNumber.from(t.endTimeInSeconds);if(a.gt(i)&&n._bidder!==nr.constants.AddressZero)return n._bidder;let c=(await this.contractWrapper.readContract.queryFilter(this.contractWrapper.readContract.filters.AuctionClosed())).find(l=>l.args.auctionId.eq(nr.BigNumber.from(e)));if(!c)throw new Error(`Could not find auction with ID ${e} in closed auctions`);return c.args.winningBidder}async createAuction(e){let t=xir.parse(e);await ht.handleTokenApproval(this.contractWrapper,this.getAddress(),t.assetContractAddress,t.tokenId,await this.contractWrapper.getSignerAddress());let n=await ht.normalizePriceValue(this.contractWrapper.getProvider(),t.buyoutBidAmount,t.currencyContractAddress),a=await ht.normalizePriceValue(this.contractWrapper.getProvider(),t.minimumBidAmount,t.currencyContractAddress),s=(await this.contractWrapper.getProvider().getBlock("latest")).timestamp;t.startTimestamp.lt(s)&&(t.startTimestamp=nr.BigNumber.from(s));let c=await this.contractWrapper.sendTransaction("createAuction",[{assetContract:t.assetContractAddress,tokenId:t.tokenId,quantity:t.quantity,currency:ht.cleanCurrencyAddress(t.currencyContractAddress),minimumBidAmount:a,buyoutBidAmount:n,timeBufferInSeconds:t.timeBufferInSeconds,bidBufferBps:t.bidBufferBps,startTimestamp:t.startTimestamp,endTimestamp:t.endTimestamp}],{gasLimit:5e5});return{id:this.contractWrapper.parseLogs("NewAuction",c?.logs)[0].args.auctionId,receipt:c}}async buyoutAuction(e){let t=await this.validateAuction(nr.BigNumber.from(e)),n=await ht.fetchCurrencyMetadata(this.contractWrapper.getProvider(),t.currencyContractAddress);return this.makeBid(e,nr.ethers.utils.formatUnits(t.buyoutBidAmount,n.decimals))}async makeBid(e,t){let n=await this.validateAuction(nr.BigNumber.from(e)),a=await ht.normalizePriceValue(this.contractWrapper.getProvider(),t,n.currencyContractAddress);if(a.eq(nr.BigNumber.from(0)))throw new Error("Cannot make a bid with 0 value");if(nr.BigNumber.from(n.buyoutBidAmount).gt(0)&&a.gt(n.buyoutBidAmount))throw new Error("Bid amount must be less than or equal to buyoutBidAmount");if(await this.getWinningBid(e)){let c=await this.isWinningBid(e,a);cw.default(c,"Bid price is too low based on the current winning bid and the bid buffer")}else{let c=a,l=nr.BigNumber.from(n.minimumBidAmount);cw.default(c.gte(l),"Bid price is too low based on minimum bid amount")}let s=await this.contractWrapper.getCallOverrides()||{};return await ht.setErc20Allowance(this.contractWrapper,a,n.currencyContractAddress,s),{receipt:await this.contractWrapper.sendTransaction("bidInAuction",[e,a],s)}}async cancelAuction(e){if(await this.getWinningBid(e))throw new Error("Bids already made.");return{receipt:await this.contractWrapper.sendTransaction("cancelAuction",[e])}}async closeAuctionForBidder(e,t){t||(t=await this.contractWrapper.getSignerAddress());let n=await this.validateAuction(nr.BigNumber.from(e));try{return{receipt:await this.contractWrapper.sendTransaction("collectAuctionTokens",[nr.BigNumber.from(e)])}}catch(a){throw a.message.includes("Marketplace: auction still active.")?new ht.AuctionHasNotEndedError(e.toString(),n.endTimeInSeconds.toString()):a}}async closeAuctionForSeller(e){let t=await this.validateAuction(nr.BigNumber.from(e));try{return{receipt:await this.contractWrapper.sendTransaction("collectAuctionPayout",[nr.BigNumber.from(e)])}}catch(n){throw n.message.includes("Marketplace: auction still active.")?new ht.AuctionHasNotEndedError(e.toString(),t.endTimeInSeconds.toString()):n}}async executeSale(e){let t=await this.validateAuction(nr.BigNumber.from(e));try{let n=await this.getWinningBid(e);cw.default(n,"No winning bid found");let a=this.encoder.encode("collectAuctionPayout",[e]),i=this.encoder.encode("collectAuctionTokens",[e]);return await this.contractWrapper.multiCall([a,i])}catch(n){throw n.message.includes("Marketplace: auction still active.")?new ht.AuctionHasNotEndedError(e.toString(),t.endTimeInSeconds.toString()):n}}async getBidBufferBps(e){return(await this.getAuction(e)).bidBufferBps}async getMinimumNextBid(e){let[t,n,a]=await Promise.all([this.getBidBufferBps(e),this.getWinningBid(e),await this.validateAuction(nr.BigNumber.from(e))]),i=n?nr.BigNumber.from(n.bidAmount):nr.BigNumber.from(a.minimumBidAmount),s=i.add(i.mul(t).div(1e4));return ht.fetchCurrencyValue(this.contractWrapper.getProvider(),a.currencyContractAddress,s)}async validateAuction(e){try{return await this.getAuction(e)}catch(t){throw console.error(`Error getting the auction with id ${e}`),t}}async mapAuction(e){let t=ht.Status.UNSET,a=(await this.contractWrapper.getProvider().getBlock("latest")).timestamp;switch(e.status){case 1:t=nr.BigNumber.from(e.startTimestamp).gt(a)?ht.Status.Created:nr.BigNumber.from(e.endTimestamp).lt(a)?ht.Status.Expired:ht.Status.Active;break;case 2:t=ht.Status.Completed;break;case 3:t=ht.Status.Cancelled;break}return{id:e.auctionId.toString(),creatorAddress:e.auctionCreator,assetContractAddress:e.assetContract,tokenId:e.tokenId.toString(),quantity:e.quantity.toString(),currencyContractAddress:e.currency,minimumBidAmount:e.minimumBidAmount.toString(),minimumBidCurrencyValue:await ht.fetchCurrencyValue(this.contractWrapper.getProvider(),e.currency,e.minimumBidAmount),buyoutBidAmount:e.buyoutBidAmount.toString(),buyoutCurrencyValue:await ht.fetchCurrencyValue(this.contractWrapper.getProvider(),e.currency,e.buyoutBidAmount),timeBufferInSeconds:nr.BigNumber.from(e.timeBufferInSeconds).toNumber(),bidBufferBps:nr.BigNumber.from(e.bidBufferBps).toNumber(),startTimeInSeconds:nr.BigNumber.from(e.startTimestamp).toNumber(),endTimeInSeconds:nr.BigNumber.from(e.endTimestamp).toNumber(),asset:await ht.fetchTokenMetadataForContract(e.assetContract,this.contractWrapper.getProvider(),e.tokenId,this.storage),status:t}}async mapBid(e,t,n,a){return{auctionId:e,bidderAddress:t,currencyContractAddress:n,bidAmount:a,bidAmountCurrencyValue:await ht.fetchCurrencyValue(this.contractWrapper.getProvider(),n,a)}}applyFilter(e,t){let n=[...e];return t&&(t.seller&&(n=n.filter(a=>a.auctionCreator.toString().toLowerCase()===t?.seller?.toString().toLowerCase())),t.tokenContract&&(n=n.filter(a=>a.assetContract.toString().toLowerCase()===t?.tokenContract?.toString().toLowerCase())),t.tokenId!==void 0&&(n=n.filter(a=>a.tokenId.toString()===t?.tokenId?.toString()))),t?.count&&t.countthis.mapOffer(l)))}async getAllValid(e){let t=await this.getTotalCount(),n=nr.BigNumber.from(e?.start||0).toNumber(),a=t.toNumber();if(a===0)throw new Error("No offers exist on the contract.");let i=[];i=(await ht.getAllInBatches(n,a,this.contractWrapper.readContract.getAllValidOffers)).flat();let c=this.applyFilter(i,e);return await Promise.all(c.map(l=>this.mapOffer(l)))}async getOffer(e){let t=await this.contractWrapper.readContract.getOffer(e);return await this.mapOffer(t)}async makeOffer(e){let t=Tir.parse(e),n=await this.contractWrapper.getChainID(),a=ht.isNativeToken(t.currencyContractAddress)?ht.NATIVE_TOKENS[n].wrapped.address:t.currencyContractAddress,i=await ht.normalizePriceValue(this.contractWrapper.getProvider(),t.totalPrice,a),s=await this.contractWrapper.getCallOverrides();await ht.setErc20Allowance(this.contractWrapper,i,a,s);let c=await this.contractWrapper.sendTransaction("makeOffer",[{assetContract:t.assetContractAddress,tokenId:t.tokenId,quantity:t.quantity,currency:a,totalPrice:i,expirationTimestamp:t.endTimestamp}],{gasLimit:5e5});return{id:this.contractWrapper.parseLogs("NewOffer",c?.logs)[0].args.offerId,receipt:c}}async cancelOffer(e){return{receipt:await this.contractWrapper.sendTransaction("cancelOffer",[e])}}async acceptOffer(e){let t=await this.validateOffer(nr.BigNumber.from(e)),{valid:n,error:a}=await this.isStillValidOffer(t);if(!n)throw new Error(`Offer ${e} is no longer valid. ${a}`);let i=await this.contractWrapper.getCallOverrides()||{};return await ht.handleTokenApproval(this.contractWrapper,this.getAddress(),t.assetContractAddress,t.tokenId,await this.contractWrapper.getSignerAddress()),{receipt:await this.contractWrapper.sendTransaction("acceptOffer",[e],i)}}async validateOffer(e){try{return await this.getOffer(e)}catch(t){throw console.error(`Error getting the offer with id ${e}`),t}}async mapOffer(e){let t=ht.Status.UNSET,a=(await this.contractWrapper.getProvider().getBlock("latest")).timestamp;switch(e.status){case 1:t=nr.BigNumber.from(e.expirationTimestamp).lt(a)?ht.Status.Expired:ht.Status.Active;break;case 2:t=ht.Status.Completed;break;case 3:t=ht.Status.Cancelled;break}return{id:e.offerId.toString(),offerorAddress:e.offeror,assetContractAddress:e.assetContract,currencyContractAddress:e.currency,tokenId:e.tokenId.toString(),quantity:e.quantity.toString(),totalPrice:e.totalPrice.toString(),currencyValue:await ht.fetchCurrencyValue(this.contractWrapper.getProvider(),e.currency,e.totalPrice),asset:await ht.fetchTokenMetadataForContract(e.assetContract,this.contractWrapper.getProvider(),e.tokenId,this.storage),endTimeInSeconds:nr.BigNumber.from(e.expirationTimestamp).toNumber(),status:t}}async isStillValidOffer(e){if(nr.BigNumber.from(Math.floor(Date.now()/1e3)).gt(e.endTimeInSeconds))return{valid:!1,error:`Offer with ID ${e.id} has expired`};let n=await this.contractWrapper.getChainID(),a=ht.isNativeToken(e.currencyContractAddress)?ht.NATIVE_TOKENS[n].wrapped.address:e.currencyContractAddress,i=this.contractWrapper.getProvider(),s=new ht.ContractWrapper(i,a,wir.default,{});return(await s.readContract.balanceOf(e.offerorAddress)).lt(e.totalPrice)?{valid:!1,error:`Offeror ${e.offerorAddress} doesn't have enough balance of token ${a}`}:(await s.readContract.allowance(e.offerorAddress,this.getAddress())).lt(e.totalPrice)?{valid:!1,error:`Offeror ${e.offerorAddress} hasn't approved enough amount of token ${a}`}:{valid:!0,error:""}}applyFilter(e,t){let n=[...e];return t&&(t.offeror&&(n=n.filter(a=>a.offeror.toString().toLowerCase()===t?.offeror?.toString().toLowerCase())),t.tokenContract&&(n=n.filter(a=>a.assetContract.toString().toLowerCase()===t?.tokenContract?.toString().toLowerCase())),t.tokenId!==void 0&&(n=n.filter(a=>a.tokenId.toString()===t?.tokenId?.toString()))),t?.count&&t.count3&&arguments[3]!==void 0?arguments[3]:{},i=arguments.length>4?arguments[4]:void 0,s=arguments.length>5?arguments[5]:void 0,c=arguments.length>6&&arguments[6]!==void 0?arguments[6]:new ht.ContractWrapper(e,t,i,a);dn._defineProperty(this,"abi",void 0),dn._defineProperty(this,"contractWrapper",void 0),dn._defineProperty(this,"storage",void 0),dn._defineProperty(this,"encoder",void 0),dn._defineProperty(this,"events",void 0),dn._defineProperty(this,"estimator",void 0),dn._defineProperty(this,"platformFees",void 0),dn._defineProperty(this,"metadata",void 0),dn._defineProperty(this,"roles",void 0),dn._defineProperty(this,"interceptor",void 0),dn._defineProperty(this,"_chainId",void 0),this._chainId=s,this.abi=i,this.contractWrapper=c,this.storage=n,this.metadata=new ht.ContractMetadata(this.contractWrapper,ht.MarketplaceContractSchema,this.storage),this.roles=new ht.ContractRoles(this.contractWrapper,uw.contractRoles),this.encoder=new ht.ContractEncoder(this.contractWrapper),this.estimator=new ht.GasCostEstimator(this.contractWrapper),this.events=new ht.ContractEvents(this.contractWrapper),this.platformFees=new ht.ContractPlatformFee(this.contractWrapper),this.interceptor=new ht.ContractInterceptor(this.contractWrapper)}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}async call(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a{_ir.exports=[{inputs:[{internalType:"address",name:"_pluginMap",type:"address"}],stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!1,internalType:"string",name:"prevURI",type:"string"},{indexed:!1,internalType:"string",name:"newURI",type:"string"}],name:"ContractURIUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"platformFeeRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"platformFeeBps",type:"uint256"}],name:"PlatformFeeInfoUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes4",name:"functionSelector",type:"bytes4"},{indexed:!0,internalType:"address",name:"pluginAddress",type:"address"}],name:"PluginAdded",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes4",name:"functionSelector",type:"bytes4"},{indexed:!0,internalType:"address",name:"pluginAddress",type:"address"}],name:"PluginRemoved",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes4",name:"functionSelector",type:"bytes4"},{indexed:!0,internalType:"string",name:"functionSignature",type:"string"},{indexed:!0,internalType:"address",name:"pluginAddress",type:"address"}],name:"PluginSet",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes4",name:"functionSelector",type:"bytes4"},{indexed:!0,internalType:"address",name:"oldPluginAddress",type:"address"},{indexed:!0,internalType:"address",name:"newPluginAddress",type:"address"}],name:"PluginUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"previousAdminRole",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"newAdminRole",type:"bytes32"}],name:"RoleAdminChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleGranted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleRevoked",type:"event"},{stateMutability:"payable",type:"fallback"},{inputs:[],name:"DEFAULT_ADMIN_ROLE",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes4",name:"_selector",type:"bytes4"}],name:"_getPluginForFunction",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{components:[{internalType:"bytes4",name:"functionSelector",type:"bytes4"},{internalType:"string",name:"functionSignature",type:"string"},{internalType:"address",name:"pluginAddress",type:"address"}],internalType:"struct IPluginMap.Plugin",name:"_plugin",type:"tuple"}],name:"addPlugin",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"contractType",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"pure",type:"function"},{inputs:[],name:"contractURI",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"contractVersion",outputs:[{internalType:"uint8",name:"",type:"uint8"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"address",name:"_pluginAddress",type:"address"}],name:"getAllFunctionsOfPlugin",outputs:[{internalType:"bytes4[]",name:"registered",type:"bytes4[]"}],stateMutability:"view",type:"function"},{inputs:[],name:"getAllPlugins",outputs:[{components:[{internalType:"bytes4",name:"functionSelector",type:"bytes4"},{internalType:"string",name:"functionSignature",type:"string"},{internalType:"address",name:"pluginAddress",type:"address"}],internalType:"struct IPluginMap.Plugin[]",name:"registered",type:"tuple[]"}],stateMutability:"view",type:"function"},{inputs:[],name:"getPlatformFeeInfo",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes4",name:"_selector",type:"bytes4"}],name:"getPluginForFunction",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleAdmin",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"uint256",name:"index",type:"uint256"}],name:"getRoleMember",outputs:[{internalType:"address",name:"member",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleMemberCount",outputs:[{internalType:"uint256",name:"count",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"grantRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRole",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRoleWithSwitch",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_defaultAdmin",type:"address"},{internalType:"string",name:"_contractURI",type:"string"},{internalType:"address[]",name:"_trustedForwarders",type:"address[]"},{internalType:"address",name:"_platformFeeRecipient",type:"address"},{internalType:"uint16",name:"_platformFeeBps",type:"uint16"}],name:"initialize",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"forwarder",type:"address"}],name:"isTrustedForwarder",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes[]",name:"data",type:"bytes[]"}],name:"multicall",outputs:[{internalType:"bytes[]",name:"results",type:"bytes[]"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"},{internalType:"address",name:"",type:"address"},{internalType:"uint256[]",name:"",type:"uint256[]"},{internalType:"uint256[]",name:"",type:"uint256[]"},{internalType:"bytes",name:"",type:"bytes"}],name:"onERC1155BatchReceived",outputs:[{internalType:"bytes4",name:"",type:"bytes4"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"},{internalType:"address",name:"",type:"address"},{internalType:"uint256",name:"",type:"uint256"},{internalType:"uint256",name:"",type:"uint256"},{internalType:"bytes",name:"",type:"bytes"}],name:"onERC1155Received",outputs:[{internalType:"bytes4",name:"",type:"bytes4"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"},{internalType:"address",name:"",type:"address"},{internalType:"uint256",name:"",type:"uint256"},{internalType:"bytes",name:"",type:"bytes"}],name:"onERC721Received",outputs:[{internalType:"bytes4",name:"",type:"bytes4"}],stateMutability:"pure",type:"function"},{inputs:[],name:"pluginMap",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes4",name:"_selector",type:"bytes4"}],name:"removePlugin",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"renounceRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"revokeRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"string",name:"_uri",type:"string"}],name:"setContractURI",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_platformFeeRecipient",type:"address"},{internalType:"uint256",name:"_platformFeeBps",type:"uint256"}],name:"setPlatformFeeInfo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes4",name:"interfaceId",type:"bytes4"}],name:"supportsInterface",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{components:[{internalType:"bytes4",name:"functionSelector",type:"bytes4"},{internalType:"string",name:"functionSignature",type:"string"},{internalType:"address",name:"pluginAddress",type:"address"}],internalType:"struct IPluginMap.Plugin",name:"_plugin",type:"tuple"}],name:"updatePlugin",outputs:[],stateMutability:"nonpayable",type:"function"},{stateMutability:"payable",type:"receive"}]});var CUe=O(_Ue=>{"use strict";x();T();var Xf=Go(),ic=Uc(),Cir=_t();Xr();Pn();Un();Wn();jn();zn();Hn();Vn();Gn();Zn();Jn();Kn();Qn();Xn();Yn();$n();ea();ta();ra();na();aa();ia();sa();oa();ca();ua();la();da();pa();ha();fa();ma();ya();ga();va();ba();wa();xa();Ta();_a();Ca();Ea();ka();Sa();Aa();Ma();Ia();Pa();Ra();En();Na();Oa();La();On();Ba();qa();Da();Fa();Ua();Wa();ja();za();Ha();Va();Ga();Za();Ja();Ka();Qa();var lw=class extends ic.StandardErc721{constructor(e,t,n){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},i=arguments.length>4?arguments[4]:void 0,s=arguments.length>5?arguments[5]:void 0,c=arguments.length>6&&arguments[6]!==void 0?arguments[6]:new ic.ContractWrapper(e,t,i,a);super(c,n,s),Xf._defineProperty(this,"abi",void 0),Xf._defineProperty(this,"encoder",void 0),Xf._defineProperty(this,"estimator",void 0),Xf._defineProperty(this,"metadata",void 0),Xf._defineProperty(this,"events",void 0),Xf._defineProperty(this,"roles",void 0),Xf._defineProperty(this,"royalties",void 0),Xf._defineProperty(this,"owner",void 0),this.abi=i,this.metadata=new ic.ContractMetadata(this.contractWrapper,ic.MultiwrapContractSchema,this.storage),this.roles=new ic.ContractRoles(this.contractWrapper,lw.contractRoles),this.encoder=new ic.ContractEncoder(this.contractWrapper),this.estimator=new ic.GasCostEstimator(this.contractWrapper),this.events=new ic.ContractEvents(this.contractWrapper),this.royalties=new ic.ContractRoyalty(this.contractWrapper,this.metadata),this.owner=new ic.ContractOwner(this.contractWrapper)}async getWrappedContents(e){let t=await this.contractWrapper.readContract.getWrappedContents(e),n=[],a=[],i=[];for(let s of t)switch(s.tokenType){case 0:{let c=await ic.fetchCurrencyMetadata(this.contractWrapper.getProvider(),s.assetContract);n.push({contractAddress:s.assetContract,quantity:Cir.ethers.utils.formatUnits(s.totalAmount,c.decimals)});break}case 1:{a.push({contractAddress:s.assetContract,tokenId:s.tokenId});break}case 2:{i.push({contractAddress:s.assetContract,tokenId:s.tokenId,quantity:s.totalAmount.toString()});break}}return{erc20Tokens:n,erc721Tokens:a,erc1155Tokens:i}}async wrap(e,t,n){let a=await ic.uploadOrExtractURI(t,this.storage),i=n||await this.contractWrapper.getSignerAddress(),s=await this.toTokenStructList(e),c=await this.contractWrapper.sendTransaction("wrap",[s,a,i]),l=this.contractWrapper.parseLogs("TokensWrapped",c?.logs);if(l.length===0)throw new Error("TokensWrapped event not found");let d=l[0].args.tokenIdOfWrappedToken;return{id:d,receipt:c,data:()=>this.get(d)}}async unwrap(e,t){let n=t||await this.contractWrapper.getSignerAddress();return{receipt:await this.contractWrapper.sendTransaction("unwrap",[e,n])}}async toTokenStructList(e){let t=[],n=this.contractWrapper.getProvider(),a=await this.contractWrapper.getSignerAddress();if(e.erc20Tokens)for(let i of e.erc20Tokens){let s=await ic.normalizePriceValue(n,i.quantity,i.contractAddress);if(!await ic.hasERC20Allowance(this.contractWrapper,i.contractAddress,s))throw new Error(`ERC20 token with contract address "${i.contractAddress}" does not have enough allowance to transfer. +"use strict"; +(() => { + var _dt = Object.create; + var v8 = Object.defineProperty; + var xdt = Object.getOwnPropertyDescriptor; + var Tdt = Object.getOwnPropertyNames; + var Edt = Object.getPrototypeOf, + Cdt = Object.prototype.hasOwnProperty; + var yp = ((r) => + typeof require < "u" + ? require + : typeof Proxy < "u" + ? new Proxy(r, { get: (e, t) => (typeof require < "u" ? require : e)[t] }) + : r)(function (r) { + if (typeof require < "u") return require.apply(this, arguments); + throw new Error('Dynamic require of "' + r + '" is not supported'); + }); + var yt = (r, e) => () => (r && (e = r((r = 0))), e); + var N = (r, e) => () => (e || r((e = { exports: {} }).exports, e), e.exports), + gd = (r, e) => { + for (var t in e) v8(r, t, { get: e[t], enumerable: !0 }); + }, + b8 = (r, e, t, n) => { + if ((e && typeof e == "object") || typeof e == "function") + for (let a of Tdt(e)) + !Cdt.call(r, a) && + a !== t && + v8(r, a, { + get: () => e[a], + enumerable: !(n = xdt(e, a)) || n.enumerable, + }); + return r; + }, + Br = (r, e, t) => (b8(r, e, "default"), t && b8(t, e, "default")), + ar = (r, e, t) => ( + (t = r != null ? _dt(Edt(r)) : {}), + b8( + e || !r || !r.__esModule + ? v8(t, "default", { value: r, enumerable: !0 }) + : t, + r + ) + ), + In = (r) => b8(v8({}, "__esModule", { value: !0 }), r); + var S, + _ = yt(() => { + S = { env: "production" }; + }); + var xne = N((w8) => { + "use strict"; + _(); + x(); + w8.byteLength = kdt; + w8.toByteArray = Mdt; + w8.fromByteArray = Bdt; + var gp = [], + sl = [], + Adt = typeof Uint8Array < "u" ? Uint8Array : Array, + _L = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; + for (dy = 0, wne = _L.length; dy < wne; ++dy) + (gp[dy] = _L[dy]), (sl[_L.charCodeAt(dy)] = dy); + var dy, wne; + sl["-".charCodeAt(0)] = 62; + sl["_".charCodeAt(0)] = 63; + function _ne(r) { + var e = r.length; + if (e % 4 > 0) + throw new Error("Invalid string. Length must be a multiple of 4"); + var t = r.indexOf("="); + t === -1 && (t = e); + var n = t === e ? 0 : 4 - (t % 4); + return [t, n]; + } + function kdt(r) { + var e = _ne(r), + t = e[0], + n = e[1]; + return ((t + n) * 3) / 4 - n; + } + function Sdt(r, e, t) { + return ((e + t) * 3) / 4 - t; + } + function Mdt(r) { + var e, + t = _ne(r), + n = t[0], + a = t[1], + i = new Adt(Sdt(r, n, a)), + s = 0, + c = a > 0 ? n - 4 : n, + l; + for (l = 0; l < c; l += 4) + (e = + (sl[r.charCodeAt(l)] << 18) | + (sl[r.charCodeAt(l + 1)] << 12) | + (sl[r.charCodeAt(l + 2)] << 6) | + sl[r.charCodeAt(l + 3)]), + (i[s++] = (e >> 16) & 255), + (i[s++] = (e >> 8) & 255), + (i[s++] = e & 255); + return ( + a === 2 && + ((e = (sl[r.charCodeAt(l)] << 2) | (sl[r.charCodeAt(l + 1)] >> 4)), + (i[s++] = e & 255)), + a === 1 && + ((e = + (sl[r.charCodeAt(l)] << 10) | + (sl[r.charCodeAt(l + 1)] << 4) | + (sl[r.charCodeAt(l + 2)] >> 2)), + (i[s++] = (e >> 8) & 255), + (i[s++] = e & 255)), + i + ); + } + function Pdt(r) { + return ( + gp[(r >> 18) & 63] + gp[(r >> 12) & 63] + gp[(r >> 6) & 63] + gp[r & 63] + ); + } + function Rdt(r, e, t) { + for (var n, a = [], i = e; i < t; i += 3) + (n = + ((r[i] << 16) & 16711680) + + ((r[i + 1] << 8) & 65280) + + (r[i + 2] & 255)), + a.push(Pdt(n)); + return a.join(""); + } + function Bdt(r) { + for ( + var e, t = r.length, n = t % 3, a = [], i = 16383, s = 0, c = t - n; + s < c; + s += i + ) + a.push(Rdt(r, s, s + i > c ? c : s + i)); + return ( + n === 1 + ? ((e = r[t - 1]), a.push(gp[e >> 2] + gp[(e << 4) & 63] + "==")) + : n === 2 && + ((e = (r[t - 2] << 8) + r[t - 1]), + a.push(gp[e >> 10] + gp[(e >> 4) & 63] + gp[(e << 2) & 63] + "=")), + a.join("") + ); + } + }); + var Tne = N((xL) => { + _(); + x(); + xL.read = function (r, e, t, n, a) { + var i, + s, + c = a * 8 - n - 1, + l = (1 << c) - 1, + d = l >> 1, + m = -7, + w = t ? a - 1 : 0, + C = t ? -1 : 1, + I = r[e + w]; + for ( + w += C, i = I & ((1 << -m) - 1), I >>= -m, m += c; + m > 0; + i = i * 256 + r[e + w], w += C, m -= 8 + ); + for ( + s = i & ((1 << -m) - 1), i >>= -m, m += n; + m > 0; + s = s * 256 + r[e + w], w += C, m -= 8 + ); + if (i === 0) i = 1 - d; + else { + if (i === l) return s ? NaN : (I ? -1 : 1) * (1 / 0); + (s = s + Math.pow(2, n)), (i = i - d); + } + return (I ? -1 : 1) * s * Math.pow(2, i - n); + }; + xL.write = function (r, e, t, n, a, i) { + var s, + c, + l, + d = i * 8 - a - 1, + m = (1 << d) - 1, + w = m >> 1, + C = a === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0, + I = n ? 0 : i - 1, + k = n ? 1 : -1, + O = e < 0 || (e === 0 && 1 / e < 0) ? 1 : 0; + for ( + e = Math.abs(e), + isNaN(e) || e === 1 / 0 + ? ((c = isNaN(e) ? 1 : 0), (s = m)) + : ((s = Math.floor(Math.log(e) / Math.LN2)), + e * (l = Math.pow(2, -s)) < 1 && (s--, (l *= 2)), + s + w >= 1 ? (e += C / l) : (e += C * Math.pow(2, 1 - w)), + e * l >= 2 && (s++, (l /= 2)), + s + w >= m + ? ((c = 0), (s = m)) + : s + w >= 1 + ? ((c = (e * l - 1) * Math.pow(2, a)), (s = s + w)) + : ((c = e * Math.pow(2, w - 1) * Math.pow(2, a)), (s = 0))); + a >= 8; + r[t + I] = c & 255, I += k, c /= 256, a -= 8 + ); + for ( + s = (s << a) | c, d += a; + d > 0; + r[t + I] = s & 255, I += k, s /= 256, d -= 8 + ); + r[t + I - k] |= O * 128; + }; + }); + var Hi = N((t1) => { + "use strict"; + _(); + x(); + var TL = xne(), + e1 = Tne(), + Ene = + typeof Symbol == "function" && typeof Symbol.for == "function" + ? Symbol.for("nodejs.util.inspect.custom") + : null; + t1.Buffer = ut; + t1.SlowBuffer = Fdt; + t1.INSPECT_MAX_BYTES = 50; + var _8 = 2147483647; + t1.kMaxLength = _8; + ut.TYPED_ARRAY_SUPPORT = Ndt(); + !ut.TYPED_ARRAY_SUPPORT && + typeof console < "u" && + typeof console.error == "function" && + console.error( + "This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support." + ); + function Ndt() { + try { + var r = new Uint8Array(1), + e = { + foo: function () { + return 42; + }, + }; + return ( + Object.setPrototypeOf(e, Uint8Array.prototype), + Object.setPrototypeOf(r, e), + r.foo() === 42 + ); + } catch { + return !1; + } + } + Object.defineProperty(ut.prototype, "parent", { + enumerable: !0, + get: function () { + if (!!ut.isBuffer(this)) return this.buffer; + }, + }); + Object.defineProperty(ut.prototype, "offset", { + enumerable: !0, + get: function () { + if (!!ut.isBuffer(this)) return this.byteOffset; + }, + }); + function Uh(r) { + if (r > _8) + throw new RangeError( + 'The value "' + r + '" is invalid for option "size"' + ); + var e = new Uint8Array(r); + return Object.setPrototypeOf(e, ut.prototype), e; + } + function ut(r, e, t) { + if (typeof r == "number") { + if (typeof e == "string") + throw new TypeError( + 'The "string" argument must be of type string. Received type number' + ); + return AL(r); + } + return Ane(r, e, t); + } + ut.poolSize = 8192; + function Ane(r, e, t) { + if (typeof r == "string") return Ldt(r, e); + if (ArrayBuffer.isView(r)) return Ddt(r); + if (r == null) + throw new TypeError( + "The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type " + + typeof r + ); + if ( + bp(r, ArrayBuffer) || + (r && bp(r.buffer, ArrayBuffer)) || + (typeof SharedArrayBuffer < "u" && + (bp(r, SharedArrayBuffer) || (r && bp(r.buffer, SharedArrayBuffer)))) + ) + return CL(r, e, t); + if (typeof r == "number") + throw new TypeError( + 'The "value" argument must not be of type number. Received type number' + ); + var n = r.valueOf && r.valueOf(); + if (n != null && n !== r) return ut.from(n, e, t); + var a = qdt(r); + if (a) return a; + if ( + typeof Symbol < "u" && + Symbol.toPrimitive != null && + typeof r[Symbol.toPrimitive] == "function" + ) + return ut.from(r[Symbol.toPrimitive]("string"), e, t); + throw new TypeError( + "The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type " + + typeof r + ); + } + ut.from = function (r, e, t) { + return Ane(r, e, t); + }; + Object.setPrototypeOf(ut.prototype, Uint8Array.prototype); + Object.setPrototypeOf(ut, Uint8Array); + function kne(r) { + if (typeof r != "number") + throw new TypeError('"size" argument must be of type number'); + if (r < 0) + throw new RangeError( + 'The value "' + r + '" is invalid for option "size"' + ); + } + function Odt(r, e, t) { + return ( + kne(r), + r <= 0 + ? Uh(r) + : e !== void 0 + ? typeof t == "string" + ? Uh(r).fill(e, t) + : Uh(r).fill(e) + : Uh(r) + ); + } + ut.alloc = function (r, e, t) { + return Odt(r, e, t); + }; + function AL(r) { + return kne(r), Uh(r < 0 ? 0 : kL(r) | 0); + } + ut.allocUnsafe = function (r) { + return AL(r); + }; + ut.allocUnsafeSlow = function (r) { + return AL(r); + }; + function Ldt(r, e) { + if ( + ((typeof e != "string" || e === "") && (e = "utf8"), !ut.isEncoding(e)) + ) + throw new TypeError("Unknown encoding: " + e); + var t = Sne(r, e) | 0, + n = Uh(t), + a = n.write(r, e); + return a !== t && (n = n.slice(0, a)), n; + } + function EL(r) { + for ( + var e = r.length < 0 ? 0 : kL(r.length) | 0, t = Uh(e), n = 0; + n < e; + n += 1 + ) + t[n] = r[n] & 255; + return t; + } + function Ddt(r) { + if (bp(r, Uint8Array)) { + var e = new Uint8Array(r); + return CL(e.buffer, e.byteOffset, e.byteLength); + } + return EL(r); + } + function CL(r, e, t) { + if (e < 0 || r.byteLength < e) + throw new RangeError('"offset" is outside of buffer bounds'); + if (r.byteLength < e + (t || 0)) + throw new RangeError('"length" is outside of buffer bounds'); + var n; + return ( + e === void 0 && t === void 0 + ? (n = new Uint8Array(r)) + : t === void 0 + ? (n = new Uint8Array(r, e)) + : (n = new Uint8Array(r, e, t)), + Object.setPrototypeOf(n, ut.prototype), + n + ); + } + function qdt(r) { + if (ut.isBuffer(r)) { + var e = kL(r.length) | 0, + t = Uh(e); + return t.length === 0 || r.copy(t, 0, 0, e), t; + } + if (r.length !== void 0) + return typeof r.length != "number" || SL(r.length) ? Uh(0) : EL(r); + if (r.type === "Buffer" && Array.isArray(r.data)) return EL(r.data); + } + function kL(r) { + if (r >= _8) + throw new RangeError( + "Attempt to allocate Buffer larger than maximum size: 0x" + + _8.toString(16) + + " bytes" + ); + return r | 0; + } + function Fdt(r) { + return +r != r && (r = 0), ut.alloc(+r); + } + ut.isBuffer = function (e) { + return e != null && e._isBuffer === !0 && e !== ut.prototype; + }; + ut.compare = function (e, t) { + if ( + (bp(e, Uint8Array) && (e = ut.from(e, e.offset, e.byteLength)), + bp(t, Uint8Array) && (t = ut.from(t, t.offset, t.byteLength)), + !ut.isBuffer(e) || !ut.isBuffer(t)) + ) + throw new TypeError( + 'The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array' + ); + if (e === t) return 0; + for ( + var n = e.length, a = t.length, i = 0, s = Math.min(n, a); + i < s; + ++i + ) + if (e[i] !== t[i]) { + (n = e[i]), (a = t[i]); + break; + } + return n < a ? -1 : a < n ? 1 : 0; + }; + ut.isEncoding = function (e) { + switch (String(e).toLowerCase()) { + case "hex": + case "utf8": + case "utf-8": + case "ascii": + case "latin1": + case "binary": + case "base64": + case "ucs2": + case "ucs-2": + case "utf16le": + case "utf-16le": + return !0; + default: + return !1; + } + }; + ut.concat = function (e, t) { + if (!Array.isArray(e)) + throw new TypeError('"list" argument must be an Array of Buffers'); + if (e.length === 0) return ut.alloc(0); + var n; + if (t === void 0) for (t = 0, n = 0; n < e.length; ++n) t += e[n].length; + var a = ut.allocUnsafe(t), + i = 0; + for (n = 0; n < e.length; ++n) { + var s = e[n]; + if (bp(s, Uint8Array)) + i + s.length > a.length + ? ut.from(s).copy(a, i) + : Uint8Array.prototype.set.call(a, s, i); + else if (ut.isBuffer(s)) s.copy(a, i); + else throw new TypeError('"list" argument must be an Array of Buffers'); + i += s.length; + } + return a; + }; + function Sne(r, e) { + if (ut.isBuffer(r)) return r.length; + if (ArrayBuffer.isView(r) || bp(r, ArrayBuffer)) return r.byteLength; + if (typeof r != "string") + throw new TypeError( + 'The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type ' + + typeof r + ); + var t = r.length, + n = arguments.length > 2 && arguments[2] === !0; + if (!n && t === 0) return 0; + for (var a = !1; ; ) + switch (e) { + case "ascii": + case "latin1": + case "binary": + return t; + case "utf8": + case "utf-8": + return IL(r).length; + case "ucs2": + case "ucs-2": + case "utf16le": + case "utf-16le": + return t * 2; + case "hex": + return t >>> 1; + case "base64": + return One(r).length; + default: + if (a) return n ? -1 : IL(r).length; + (e = ("" + e).toLowerCase()), (a = !0); + } + } + ut.byteLength = Sne; + function Wdt(r, e, t) { + var n = !1; + if ( + ((e === void 0 || e < 0) && (e = 0), + e > this.length || + ((t === void 0 || t > this.length) && (t = this.length), t <= 0) || + ((t >>>= 0), (e >>>= 0), t <= e)) + ) + return ""; + for (r || (r = "utf8"); ; ) + switch (r) { + case "hex": + return Jdt(this, e, t); + case "utf8": + case "utf-8": + return Pne(this, e, t); + case "ascii": + return Ydt(this, e, t); + case "latin1": + case "binary": + return $dt(this, e, t); + case "base64": + return Vdt(this, e, t); + case "ucs2": + case "ucs-2": + case "utf16le": + case "utf-16le": + return Zdt(this, e, t); + default: + if (n) throw new TypeError("Unknown encoding: " + r); + (r = (r + "").toLowerCase()), (n = !0); + } + } + ut.prototype._isBuffer = !0; + function py(r, e, t) { + var n = r[e]; + (r[e] = r[t]), (r[t] = n); + } + ut.prototype.swap16 = function () { + var e = this.length; + if (e % 2 !== 0) + throw new RangeError("Buffer size must be a multiple of 16-bits"); + for (var t = 0; t < e; t += 2) py(this, t, t + 1); + return this; + }; + ut.prototype.swap32 = function () { + var e = this.length; + if (e % 4 !== 0) + throw new RangeError("Buffer size must be a multiple of 32-bits"); + for (var t = 0; t < e; t += 4) py(this, t, t + 3), py(this, t + 1, t + 2); + return this; + }; + ut.prototype.swap64 = function () { + var e = this.length; + if (e % 8 !== 0) + throw new RangeError("Buffer size must be a multiple of 64-bits"); + for (var t = 0; t < e; t += 8) + py(this, t, t + 7), + py(this, t + 1, t + 6), + py(this, t + 2, t + 5), + py(this, t + 3, t + 4); + return this; + }; + ut.prototype.toString = function () { + var e = this.length; + return e === 0 + ? "" + : arguments.length === 0 + ? Pne(this, 0, e) + : Wdt.apply(this, arguments); + }; + ut.prototype.toLocaleString = ut.prototype.toString; + ut.prototype.equals = function (e) { + if (!ut.isBuffer(e)) throw new TypeError("Argument must be a Buffer"); + return this === e ? !0 : ut.compare(this, e) === 0; + }; + ut.prototype.inspect = function () { + var e = "", + t = t1.INSPECT_MAX_BYTES; + return ( + (e = this.toString("hex", 0, t) + .replace(/(.{2})/g, "$1 ") + .trim()), + this.length > t && (e += " ... "), + "" + ); + }; + Ene && (ut.prototype[Ene] = ut.prototype.inspect); + ut.prototype.compare = function (e, t, n, a, i) { + if ( + (bp(e, Uint8Array) && (e = ut.from(e, e.offset, e.byteLength)), + !ut.isBuffer(e)) + ) + throw new TypeError( + 'The "target" argument must be one of type Buffer or Uint8Array. Received type ' + + typeof e + ); + if ( + (t === void 0 && (t = 0), + n === void 0 && (n = e ? e.length : 0), + a === void 0 && (a = 0), + i === void 0 && (i = this.length), + t < 0 || n > e.length || a < 0 || i > this.length) + ) + throw new RangeError("out of range index"); + if (a >= i && t >= n) return 0; + if (a >= i) return -1; + if (t >= n) return 1; + if (((t >>>= 0), (n >>>= 0), (a >>>= 0), (i >>>= 0), this === e)) + return 0; + for ( + var s = i - a, + c = n - t, + l = Math.min(s, c), + d = this.slice(a, i), + m = e.slice(t, n), + w = 0; + w < l; + ++w + ) + if (d[w] !== m[w]) { + (s = d[w]), (c = m[w]); + break; + } + return s < c ? -1 : c < s ? 1 : 0; + }; + function Mne(r, e, t, n, a) { + if (r.length === 0) return -1; + if ( + (typeof t == "string" + ? ((n = t), (t = 0)) + : t > 2147483647 + ? (t = 2147483647) + : t < -2147483648 && (t = -2147483648), + (t = +t), + SL(t) && (t = a ? 0 : r.length - 1), + t < 0 && (t = r.length + t), + t >= r.length) + ) { + if (a) return -1; + t = r.length - 1; + } else if (t < 0) + if (a) t = 0; + else return -1; + if ((typeof e == "string" && (e = ut.from(e, n)), ut.isBuffer(e))) + return e.length === 0 ? -1 : Cne(r, e, t, n, a); + if (typeof e == "number") + return ( + (e = e & 255), + typeof Uint8Array.prototype.indexOf == "function" + ? a + ? Uint8Array.prototype.indexOf.call(r, e, t) + : Uint8Array.prototype.lastIndexOf.call(r, e, t) + : Cne(r, [e], t, n, a) + ); + throw new TypeError("val must be string, number or Buffer"); + } + function Cne(r, e, t, n, a) { + var i = 1, + s = r.length, + c = e.length; + if ( + n !== void 0 && + ((n = String(n).toLowerCase()), + n === "ucs2" || n === "ucs-2" || n === "utf16le" || n === "utf-16le") + ) { + if (r.length < 2 || e.length < 2) return -1; + (i = 2), (s /= 2), (c /= 2), (t /= 2); + } + function l(I, k) { + return i === 1 ? I[k] : I.readUInt16BE(k * i); + } + var d; + if (a) { + var m = -1; + for (d = t; d < s; d++) + if (l(r, d) === l(e, m === -1 ? 0 : d - m)) { + if ((m === -1 && (m = d), d - m + 1 === c)) return m * i; + } else m !== -1 && (d -= d - m), (m = -1); + } else + for (t + c > s && (t = s - c), d = t; d >= 0; d--) { + for (var w = !0, C = 0; C < c; C++) + if (l(r, d + C) !== l(e, C)) { + w = !1; + break; + } + if (w) return d; + } + return -1; + } + ut.prototype.includes = function (e, t, n) { + return this.indexOf(e, t, n) !== -1; + }; + ut.prototype.indexOf = function (e, t, n) { + return Mne(this, e, t, n, !0); + }; + ut.prototype.lastIndexOf = function (e, t, n) { + return Mne(this, e, t, n, !1); + }; + function Udt(r, e, t, n) { + t = Number(t) || 0; + var a = r.length - t; + n ? ((n = Number(n)), n > a && (n = a)) : (n = a); + var i = e.length; + n > i / 2 && (n = i / 2); + for (var s = 0; s < n; ++s) { + var c = parseInt(e.substr(s * 2, 2), 16); + if (SL(c)) return s; + r[t + s] = c; + } + return s; + } + function Hdt(r, e, t, n) { + return x8(IL(e, r.length - t), r, t, n); + } + function zdt(r, e, t, n) { + return x8(ept(e), r, t, n); + } + function jdt(r, e, t, n) { + return x8(One(e), r, t, n); + } + function Kdt(r, e, t, n) { + return x8(tpt(e, r.length - t), r, t, n); + } + ut.prototype.write = function (e, t, n, a) { + if (t === void 0) (a = "utf8"), (n = this.length), (t = 0); + else if (n === void 0 && typeof t == "string") + (a = t), (n = this.length), (t = 0); + else if (isFinite(t)) + (t = t >>> 0), + isFinite(n) + ? ((n = n >>> 0), a === void 0 && (a = "utf8")) + : ((a = n), (n = void 0)); + else + throw new Error( + "Buffer.write(string, encoding, offset[, length]) is no longer supported" + ); + var i = this.length - t; + if ( + ((n === void 0 || n > i) && (n = i), + (e.length > 0 && (n < 0 || t < 0)) || t > this.length) + ) + throw new RangeError("Attempt to write outside buffer bounds"); + a || (a = "utf8"); + for (var s = !1; ; ) + switch (a) { + case "hex": + return Udt(this, e, t, n); + case "utf8": + case "utf-8": + return Hdt(this, e, t, n); + case "ascii": + case "latin1": + case "binary": + return zdt(this, e, t, n); + case "base64": + return jdt(this, e, t, n); + case "ucs2": + case "ucs-2": + case "utf16le": + case "utf-16le": + return Kdt(this, e, t, n); + default: + if (s) throw new TypeError("Unknown encoding: " + a); + (a = ("" + a).toLowerCase()), (s = !0); + } + }; + ut.prototype.toJSON = function () { + return { + type: "Buffer", + data: Array.prototype.slice.call(this._arr || this, 0), + }; + }; + function Vdt(r, e, t) { + return e === 0 && t === r.length + ? TL.fromByteArray(r) + : TL.fromByteArray(r.slice(e, t)); + } + function Pne(r, e, t) { + t = Math.min(r.length, t); + for (var n = [], a = e; a < t; ) { + var i = r[a], + s = null, + c = i > 239 ? 4 : i > 223 ? 3 : i > 191 ? 2 : 1; + if (a + c <= t) { + var l, d, m, w; + switch (c) { + case 1: + i < 128 && (s = i); + break; + case 2: + (l = r[a + 1]), + (l & 192) === 128 && + ((w = ((i & 31) << 6) | (l & 63)), w > 127 && (s = w)); + break; + case 3: + (l = r[a + 1]), + (d = r[a + 2]), + (l & 192) === 128 && + (d & 192) === 128 && + ((w = ((i & 15) << 12) | ((l & 63) << 6) | (d & 63)), + w > 2047 && (w < 55296 || w > 57343) && (s = w)); + break; + case 4: + (l = r[a + 1]), + (d = r[a + 2]), + (m = r[a + 3]), + (l & 192) === 128 && + (d & 192) === 128 && + (m & 192) === 128 && + ((w = + ((i & 15) << 18) | + ((l & 63) << 12) | + ((d & 63) << 6) | + (m & 63)), + w > 65535 && w < 1114112 && (s = w)); + } + } + s === null + ? ((s = 65533), (c = 1)) + : s > 65535 && + ((s -= 65536), + n.push(((s >>> 10) & 1023) | 55296), + (s = 56320 | (s & 1023))), + n.push(s), + (a += c); + } + return Gdt(n); + } + var Ine = 4096; + function Gdt(r) { + var e = r.length; + if (e <= Ine) return String.fromCharCode.apply(String, r); + for (var t = "", n = 0; n < e; ) + t += String.fromCharCode.apply(String, r.slice(n, (n += Ine))); + return t; + } + function Ydt(r, e, t) { + var n = ""; + t = Math.min(r.length, t); + for (var a = e; a < t; ++a) n += String.fromCharCode(r[a] & 127); + return n; + } + function $dt(r, e, t) { + var n = ""; + t = Math.min(r.length, t); + for (var a = e; a < t; ++a) n += String.fromCharCode(r[a]); + return n; + } + function Jdt(r, e, t) { + var n = r.length; + (!e || e < 0) && (e = 0), (!t || t < 0 || t > n) && (t = n); + for (var a = "", i = e; i < t; ++i) a += rpt[r[i]]; + return a; + } + function Zdt(r, e, t) { + for (var n = r.slice(e, t), a = "", i = 0; i < n.length - 1; i += 2) + a += String.fromCharCode(n[i] + n[i + 1] * 256); + return a; + } + ut.prototype.slice = function (e, t) { + var n = this.length; + (e = ~~e), + (t = t === void 0 ? n : ~~t), + e < 0 ? ((e += n), e < 0 && (e = 0)) : e > n && (e = n), + t < 0 ? ((t += n), t < 0 && (t = 0)) : t > n && (t = n), + t < e && (t = e); + var a = this.subarray(e, t); + return Object.setPrototypeOf(a, ut.prototype), a; + }; + function Ts(r, e, t) { + if (r % 1 !== 0 || r < 0) throw new RangeError("offset is not uint"); + if (r + e > t) + throw new RangeError("Trying to access beyond buffer length"); + } + ut.prototype.readUintLE = ut.prototype.readUIntLE = function (e, t, n) { + (e = e >>> 0), (t = t >>> 0), n || Ts(e, t, this.length); + for (var a = this[e], i = 1, s = 0; ++s < t && (i *= 256); ) + a += this[e + s] * i; + return a; + }; + ut.prototype.readUintBE = ut.prototype.readUIntBE = function (e, t, n) { + (e = e >>> 0), (t = t >>> 0), n || Ts(e, t, this.length); + for (var a = this[e + --t], i = 1; t > 0 && (i *= 256); ) + a += this[e + --t] * i; + return a; + }; + ut.prototype.readUint8 = ut.prototype.readUInt8 = function (e, t) { + return (e = e >>> 0), t || Ts(e, 1, this.length), this[e]; + }; + ut.prototype.readUint16LE = ut.prototype.readUInt16LE = function (e, t) { + return ( + (e = e >>> 0), t || Ts(e, 2, this.length), this[e] | (this[e + 1] << 8) + ); + }; + ut.prototype.readUint16BE = ut.prototype.readUInt16BE = function (e, t) { + return ( + (e = e >>> 0), t || Ts(e, 2, this.length), (this[e] << 8) | this[e + 1] + ); + }; + ut.prototype.readUint32LE = ut.prototype.readUInt32LE = function (e, t) { + return ( + (e = e >>> 0), + t || Ts(e, 4, this.length), + (this[e] | (this[e + 1] << 8) | (this[e + 2] << 16)) + + this[e + 3] * 16777216 + ); + }; + ut.prototype.readUint32BE = ut.prototype.readUInt32BE = function (e, t) { + return ( + (e = e >>> 0), + t || Ts(e, 4, this.length), + this[e] * 16777216 + + ((this[e + 1] << 16) | (this[e + 2] << 8) | this[e + 3]) + ); + }; + ut.prototype.readIntLE = function (e, t, n) { + (e = e >>> 0), (t = t >>> 0), n || Ts(e, t, this.length); + for (var a = this[e], i = 1, s = 0; ++s < t && (i *= 256); ) + a += this[e + s] * i; + return (i *= 128), a >= i && (a -= Math.pow(2, 8 * t)), a; + }; + ut.prototype.readIntBE = function (e, t, n) { + (e = e >>> 0), (t = t >>> 0), n || Ts(e, t, this.length); + for (var a = t, i = 1, s = this[e + --a]; a > 0 && (i *= 256); ) + s += this[e + --a] * i; + return (i *= 128), s >= i && (s -= Math.pow(2, 8 * t)), s; + }; + ut.prototype.readInt8 = function (e, t) { + return ( + (e = e >>> 0), + t || Ts(e, 1, this.length), + this[e] & 128 ? (255 - this[e] + 1) * -1 : this[e] + ); + }; + ut.prototype.readInt16LE = function (e, t) { + (e = e >>> 0), t || Ts(e, 2, this.length); + var n = this[e] | (this[e + 1] << 8); + return n & 32768 ? n | 4294901760 : n; + }; + ut.prototype.readInt16BE = function (e, t) { + (e = e >>> 0), t || Ts(e, 2, this.length); + var n = this[e + 1] | (this[e] << 8); + return n & 32768 ? n | 4294901760 : n; + }; + ut.prototype.readInt32LE = function (e, t) { + return ( + (e = e >>> 0), + t || Ts(e, 4, this.length), + this[e] | (this[e + 1] << 8) | (this[e + 2] << 16) | (this[e + 3] << 24) + ); + }; + ut.prototype.readInt32BE = function (e, t) { + return ( + (e = e >>> 0), + t || Ts(e, 4, this.length), + (this[e] << 24) | (this[e + 1] << 16) | (this[e + 2] << 8) | this[e + 3] + ); + }; + ut.prototype.readFloatLE = function (e, t) { + return ( + (e = e >>> 0), t || Ts(e, 4, this.length), e1.read(this, e, !0, 23, 4) + ); + }; + ut.prototype.readFloatBE = function (e, t) { + return ( + (e = e >>> 0), t || Ts(e, 4, this.length), e1.read(this, e, !1, 23, 4) + ); + }; + ut.prototype.readDoubleLE = function (e, t) { + return ( + (e = e >>> 0), t || Ts(e, 8, this.length), e1.read(this, e, !0, 52, 8) + ); + }; + ut.prototype.readDoubleBE = function (e, t) { + return ( + (e = e >>> 0), t || Ts(e, 8, this.length), e1.read(this, e, !1, 52, 8) + ); + }; + function Yc(r, e, t, n, a, i) { + if (!ut.isBuffer(r)) + throw new TypeError('"buffer" argument must be a Buffer instance'); + if (e > a || e < i) + throw new RangeError('"value" argument is out of bounds'); + if (t + n > r.length) throw new RangeError("Index out of range"); + } + ut.prototype.writeUintLE = ut.prototype.writeUIntLE = function ( + e, + t, + n, + a + ) { + if (((e = +e), (t = t >>> 0), (n = n >>> 0), !a)) { + var i = Math.pow(2, 8 * n) - 1; + Yc(this, e, t, n, i, 0); + } + var s = 1, + c = 0; + for (this[t] = e & 255; ++c < n && (s *= 256); ) + this[t + c] = (e / s) & 255; + return t + n; + }; + ut.prototype.writeUintBE = ut.prototype.writeUIntBE = function ( + e, + t, + n, + a + ) { + if (((e = +e), (t = t >>> 0), (n = n >>> 0), !a)) { + var i = Math.pow(2, 8 * n) - 1; + Yc(this, e, t, n, i, 0); + } + var s = n - 1, + c = 1; + for (this[t + s] = e & 255; --s >= 0 && (c *= 256); ) + this[t + s] = (e / c) & 255; + return t + n; + }; + ut.prototype.writeUint8 = ut.prototype.writeUInt8 = function (e, t, n) { + return ( + (e = +e), + (t = t >>> 0), + n || Yc(this, e, t, 1, 255, 0), + (this[t] = e & 255), + t + 1 + ); + }; + ut.prototype.writeUint16LE = ut.prototype.writeUInt16LE = function ( + e, + t, + n + ) { + return ( + (e = +e), + (t = t >>> 0), + n || Yc(this, e, t, 2, 65535, 0), + (this[t] = e & 255), + (this[t + 1] = e >>> 8), + t + 2 + ); + }; + ut.prototype.writeUint16BE = ut.prototype.writeUInt16BE = function ( + e, + t, + n + ) { + return ( + (e = +e), + (t = t >>> 0), + n || Yc(this, e, t, 2, 65535, 0), + (this[t] = e >>> 8), + (this[t + 1] = e & 255), + t + 2 + ); + }; + ut.prototype.writeUint32LE = ut.prototype.writeUInt32LE = function ( + e, + t, + n + ) { + return ( + (e = +e), + (t = t >>> 0), + n || Yc(this, e, t, 4, 4294967295, 0), + (this[t + 3] = e >>> 24), + (this[t + 2] = e >>> 16), + (this[t + 1] = e >>> 8), + (this[t] = e & 255), + t + 4 + ); + }; + ut.prototype.writeUint32BE = ut.prototype.writeUInt32BE = function ( + e, + t, + n + ) { + return ( + (e = +e), + (t = t >>> 0), + n || Yc(this, e, t, 4, 4294967295, 0), + (this[t] = e >>> 24), + (this[t + 1] = e >>> 16), + (this[t + 2] = e >>> 8), + (this[t + 3] = e & 255), + t + 4 + ); + }; + ut.prototype.writeIntLE = function (e, t, n, a) { + if (((e = +e), (t = t >>> 0), !a)) { + var i = Math.pow(2, 8 * n - 1); + Yc(this, e, t, n, i - 1, -i); + } + var s = 0, + c = 1, + l = 0; + for (this[t] = e & 255; ++s < n && (c *= 256); ) + e < 0 && l === 0 && this[t + s - 1] !== 0 && (l = 1), + (this[t + s] = (((e / c) >> 0) - l) & 255); + return t + n; + }; + ut.prototype.writeIntBE = function (e, t, n, a) { + if (((e = +e), (t = t >>> 0), !a)) { + var i = Math.pow(2, 8 * n - 1); + Yc(this, e, t, n, i - 1, -i); + } + var s = n - 1, + c = 1, + l = 0; + for (this[t + s] = e & 255; --s >= 0 && (c *= 256); ) + e < 0 && l === 0 && this[t + s + 1] !== 0 && (l = 1), + (this[t + s] = (((e / c) >> 0) - l) & 255); + return t + n; + }; + ut.prototype.writeInt8 = function (e, t, n) { + return ( + (e = +e), + (t = t >>> 0), + n || Yc(this, e, t, 1, 127, -128), + e < 0 && (e = 255 + e + 1), + (this[t] = e & 255), + t + 1 + ); + }; + ut.prototype.writeInt16LE = function (e, t, n) { + return ( + (e = +e), + (t = t >>> 0), + n || Yc(this, e, t, 2, 32767, -32768), + (this[t] = e & 255), + (this[t + 1] = e >>> 8), + t + 2 + ); + }; + ut.prototype.writeInt16BE = function (e, t, n) { + return ( + (e = +e), + (t = t >>> 0), + n || Yc(this, e, t, 2, 32767, -32768), + (this[t] = e >>> 8), + (this[t + 1] = e & 255), + t + 2 + ); + }; + ut.prototype.writeInt32LE = function (e, t, n) { + return ( + (e = +e), + (t = t >>> 0), + n || Yc(this, e, t, 4, 2147483647, -2147483648), + (this[t] = e & 255), + (this[t + 1] = e >>> 8), + (this[t + 2] = e >>> 16), + (this[t + 3] = e >>> 24), + t + 4 + ); + }; + ut.prototype.writeInt32BE = function (e, t, n) { + return ( + (e = +e), + (t = t >>> 0), + n || Yc(this, e, t, 4, 2147483647, -2147483648), + e < 0 && (e = 4294967295 + e + 1), + (this[t] = e >>> 24), + (this[t + 1] = e >>> 16), + (this[t + 2] = e >>> 8), + (this[t + 3] = e & 255), + t + 4 + ); + }; + function Rne(r, e, t, n, a, i) { + if (t + n > r.length) throw new RangeError("Index out of range"); + if (t < 0) throw new RangeError("Index out of range"); + } + function Bne(r, e, t, n, a) { + return ( + (e = +e), + (t = t >>> 0), + a || Rne(r, e, t, 4, 34028234663852886e22, -34028234663852886e22), + e1.write(r, e, t, n, 23, 4), + t + 4 + ); + } + ut.prototype.writeFloatLE = function (e, t, n) { + return Bne(this, e, t, !0, n); + }; + ut.prototype.writeFloatBE = function (e, t, n) { + return Bne(this, e, t, !1, n); + }; + function Nne(r, e, t, n, a) { + return ( + (e = +e), + (t = t >>> 0), + a || Rne(r, e, t, 8, 17976931348623157e292, -17976931348623157e292), + e1.write(r, e, t, n, 52, 8), + t + 8 + ); + } + ut.prototype.writeDoubleLE = function (e, t, n) { + return Nne(this, e, t, !0, n); + }; + ut.prototype.writeDoubleBE = function (e, t, n) { + return Nne(this, e, t, !1, n); + }; + ut.prototype.copy = function (e, t, n, a) { + if (!ut.isBuffer(e)) throw new TypeError("argument should be a Buffer"); + if ( + (n || (n = 0), + !a && a !== 0 && (a = this.length), + t >= e.length && (t = e.length), + t || (t = 0), + a > 0 && a < n && (a = n), + a === n || e.length === 0 || this.length === 0) + ) + return 0; + if (t < 0) throw new RangeError("targetStart out of bounds"); + if (n < 0 || n >= this.length) throw new RangeError("Index out of range"); + if (a < 0) throw new RangeError("sourceEnd out of bounds"); + a > this.length && (a = this.length), + e.length - t < a - n && (a = e.length - t + n); + var i = a - n; + return ( + this === e && typeof Uint8Array.prototype.copyWithin == "function" + ? this.copyWithin(t, n, a) + : Uint8Array.prototype.set.call(e, this.subarray(n, a), t), + i + ); + }; + ut.prototype.fill = function (e, t, n, a) { + if (typeof e == "string") { + if ( + (typeof t == "string" + ? ((a = t), (t = 0), (n = this.length)) + : typeof n == "string" && ((a = n), (n = this.length)), + a !== void 0 && typeof a != "string") + ) + throw new TypeError("encoding must be a string"); + if (typeof a == "string" && !ut.isEncoding(a)) + throw new TypeError("Unknown encoding: " + a); + if (e.length === 1) { + var i = e.charCodeAt(0); + ((a === "utf8" && i < 128) || a === "latin1") && (e = i); + } + } else + typeof e == "number" + ? (e = e & 255) + : typeof e == "boolean" && (e = Number(e)); + if (t < 0 || this.length < t || this.length < n) + throw new RangeError("Out of range index"); + if (n <= t) return this; + (t = t >>> 0), (n = n === void 0 ? this.length : n >>> 0), e || (e = 0); + var s; + if (typeof e == "number") for (s = t; s < n; ++s) this[s] = e; + else { + var c = ut.isBuffer(e) ? e : ut.from(e, a), + l = c.length; + if (l === 0) + throw new TypeError( + 'The value "' + e + '" is invalid for argument "value"' + ); + for (s = 0; s < n - t; ++s) this[s + t] = c[s % l]; + } + return this; + }; + var Qdt = /[^+/0-9A-Za-z-_]/g; + function Xdt(r) { + if ( + ((r = r.split("=")[0]), (r = r.trim().replace(Qdt, "")), r.length < 2) + ) + return ""; + for (; r.length % 4 !== 0; ) r = r + "="; + return r; + } + function IL(r, e) { + e = e || 1 / 0; + for (var t, n = r.length, a = null, i = [], s = 0; s < n; ++s) { + if (((t = r.charCodeAt(s)), t > 55295 && t < 57344)) { + if (!a) { + if (t > 56319) { + (e -= 3) > -1 && i.push(239, 191, 189); + continue; + } else if (s + 1 === n) { + (e -= 3) > -1 && i.push(239, 191, 189); + continue; + } + a = t; + continue; + } + if (t < 56320) { + (e -= 3) > -1 && i.push(239, 191, 189), (a = t); + continue; + } + t = (((a - 55296) << 10) | (t - 56320)) + 65536; + } else a && (e -= 3) > -1 && i.push(239, 191, 189); + if (((a = null), t < 128)) { + if ((e -= 1) < 0) break; + i.push(t); + } else if (t < 2048) { + if ((e -= 2) < 0) break; + i.push((t >> 6) | 192, (t & 63) | 128); + } else if (t < 65536) { + if ((e -= 3) < 0) break; + i.push((t >> 12) | 224, ((t >> 6) & 63) | 128, (t & 63) | 128); + } else if (t < 1114112) { + if ((e -= 4) < 0) break; + i.push( + (t >> 18) | 240, + ((t >> 12) & 63) | 128, + ((t >> 6) & 63) | 128, + (t & 63) | 128 + ); + } else throw new Error("Invalid code point"); + } + return i; + } + function ept(r) { + for (var e = [], t = 0; t < r.length; ++t) e.push(r.charCodeAt(t) & 255); + return e; + } + function tpt(r, e) { + for (var t, n, a, i = [], s = 0; s < r.length && !((e -= 2) < 0); ++s) + (t = r.charCodeAt(s)), + (n = t >> 8), + (a = t % 256), + i.push(a), + i.push(n); + return i; + } + function One(r) { + return TL.toByteArray(Xdt(r)); + } + function x8(r, e, t, n) { + for (var a = 0; a < n && !(a + t >= e.length || a >= r.length); ++a) + e[a + t] = r[a]; + return a; + } + function bp(r, e) { + return ( + r instanceof e || + (r != null && + r.constructor != null && + r.constructor.name != null && + r.constructor.name === e.name) + ); + } + function SL(r) { + return r !== r; + } + var rpt = (function () { + for (var r = "0123456789abcdef", e = new Array(256), t = 0; t < 16; ++t) + for (var n = t * 16, a = 0; a < 16; ++a) e[n + a] = r[t] + r[a]; + return e; + })(); + }); + var Wne = N((xDr, Fne) => { + _(); + x(); + var Ni = (Fne.exports = {}), + vp, + wp; + function ML() { + throw new Error("setTimeout has not been defined"); + } + function PL() { + throw new Error("clearTimeout has not been defined"); + } + (function () { + try { + typeof setTimeout == "function" ? (vp = setTimeout) : (vp = ML); + } catch { + vp = ML; + } + try { + typeof clearTimeout == "function" ? (wp = clearTimeout) : (wp = PL); + } catch { + wp = PL; + } + })(); + function Lne(r) { + if (vp === setTimeout) return setTimeout(r, 0); + if ((vp === ML || !vp) && setTimeout) + return (vp = setTimeout), setTimeout(r, 0); + try { + return vp(r, 0); + } catch { + try { + return vp.call(null, r, 0); + } catch { + return vp.call(this, r, 0); + } + } + } + function npt(r) { + if (wp === clearTimeout) return clearTimeout(r); + if ((wp === PL || !wp) && clearTimeout) + return (wp = clearTimeout), clearTimeout(r); + try { + return wp(r); + } catch { + try { + return wp.call(null, r); + } catch { + return wp.call(this, r); + } + } + } + var Hh = [], + r1 = !1, + hy, + T8 = -1; + function apt() { + !r1 || + !hy || + ((r1 = !1), + hy.length ? (Hh = hy.concat(Hh)) : (T8 = -1), + Hh.length && Dne()); + } + function Dne() { + if (!r1) { + var r = Lne(apt); + r1 = !0; + for (var e = Hh.length; e; ) { + for (hy = Hh, Hh = []; ++T8 < e; ) hy && hy[T8].run(); + (T8 = -1), (e = Hh.length); + } + (hy = null), (r1 = !1), npt(r); + } + } + Ni.nextTick = function (r) { + var e = new Array(arguments.length - 1); + if (arguments.length > 1) + for (var t = 1; t < arguments.length; t++) e[t - 1] = arguments[t]; + Hh.push(new qne(r, e)), Hh.length === 1 && !r1 && Lne(Dne); + }; + function qne(r, e) { + (this.fun = r), (this.array = e); + } + qne.prototype.run = function () { + this.fun.apply(null, this.array); + }; + Ni.title = "browser"; + Ni.browser = !0; + Ni.env = {}; + Ni.argv = []; + Ni.version = ""; + Ni.versions = {}; + function zh() {} + Ni.on = zh; + Ni.addListener = zh; + Ni.once = zh; + Ni.off = zh; + Ni.removeListener = zh; + Ni.removeAllListeners = zh; + Ni.emit = zh; + Ni.prependListener = zh; + Ni.prependOnceListener = zh; + Ni.listeners = function (r) { + return []; + }; + Ni.binding = function (r) { + throw new Error("process.binding is not supported"); + }; + Ni.cwd = function () { + return "/"; + }; + Ni.chdir = function (r) { + throw new Error("process.chdir is not supported"); + }; + Ni.umask = function () { + return 0; + }; + }); + var P, + B, + ipt, + M, + x = yt(() => { + (P = ar(Hi())), + (B = ar(Wne())), + (ipt = (function (r) { + function e() { + var n = this || self; + return delete r.prototype.__magic__, n; + } + if (typeof globalThis == "object") return globalThis; + if (this) return e(); + r.defineProperty(r.prototype, "__magic__", { + configurable: !0, + get: e, + }); + var t = __magic__; + return t; + })(Object)), + (M = ipt); + }); + var Gr = N((Une, RL) => { + _(); + x(); + (function (r, e) { + "use strict"; + function t(y, h) { + if (!y) throw new Error(h || "Assertion failed"); + } + function n(y, h) { + y.super_ = h; + var b = function () {}; + (b.prototype = h.prototype), + (y.prototype = new b()), + (y.prototype.constructor = y); + } + function a(y, h, b) { + if (a.isBN(y)) return y; + (this.negative = 0), + (this.words = null), + (this.length = 0), + (this.red = null), + y !== null && + ((h === "le" || h === "be") && ((b = h), (h = 10)), + this._init(y || 0, h || 10, b || "be")); + } + typeof r == "object" ? (r.exports = a) : (e.BN = a), + (a.BN = a), + (a.wordSize = 26); + var i; + try { + typeof window < "u" && typeof window.Buffer < "u" + ? (i = window.Buffer) + : (i = Hi().Buffer); + } catch {} + (a.isBN = function (h) { + return h instanceof a + ? !0 + : h !== null && + typeof h == "object" && + h.constructor.wordSize === a.wordSize && + Array.isArray(h.words); + }), + (a.max = function (h, b) { + return h.cmp(b) > 0 ? h : b; + }), + (a.min = function (h, b) { + return h.cmp(b) < 0 ? h : b; + }), + (a.prototype._init = function (h, b, T) { + if (typeof h == "number") return this._initNumber(h, b, T); + if (typeof h == "object") return this._initArray(h, b, T); + b === "hex" && (b = 16), + t(b === (b | 0) && b >= 2 && b <= 36), + (h = h.toString().replace(/\s+/g, "")); + var E = 0; + h[0] === "-" && (E++, (this.negative = 1)), + E < h.length && + (b === 16 + ? this._parseHex(h, E, T) + : (this._parseBase(h, b, E), + T === "le" && this._initArray(this.toArray(), b, T))); + }), + (a.prototype._initNumber = function (h, b, T) { + h < 0 && ((this.negative = 1), (h = -h)), + h < 67108864 + ? ((this.words = [h & 67108863]), (this.length = 1)) + : h < 4503599627370496 + ? ((this.words = [h & 67108863, (h / 67108864) & 67108863]), + (this.length = 2)) + : (t(h < 9007199254740992), + (this.words = [h & 67108863, (h / 67108864) & 67108863, 1]), + (this.length = 3)), + T === "le" && this._initArray(this.toArray(), b, T); + }), + (a.prototype._initArray = function (h, b, T) { + if ((t(typeof h.length == "number"), h.length <= 0)) + return (this.words = [0]), (this.length = 1), this; + (this.length = Math.ceil(h.length / 3)), + (this.words = new Array(this.length)); + for (var E = 0; E < this.length; E++) this.words[E] = 0; + var f, + u, + v = 0; + if (T === "be") + for (E = h.length - 1, f = 0; E >= 0; E -= 3) + (u = h[E] | (h[E - 1] << 8) | (h[E - 2] << 16)), + (this.words[f] |= (u << v) & 67108863), + (this.words[f + 1] = (u >>> (26 - v)) & 67108863), + (v += 24), + v >= 26 && ((v -= 26), f++); + else if (T === "le") + for (E = 0, f = 0; E < h.length; E += 3) + (u = h[E] | (h[E + 1] << 8) | (h[E + 2] << 16)), + (this.words[f] |= (u << v) & 67108863), + (this.words[f + 1] = (u >>> (26 - v)) & 67108863), + (v += 24), + v >= 26 && ((v -= 26), f++); + return this._strip(); + }); + function s(y, h) { + var b = y.charCodeAt(h); + if (b >= 48 && b <= 57) return b - 48; + if (b >= 65 && b <= 70) return b - 55; + if (b >= 97 && b <= 102) return b - 87; + t(!1, "Invalid character in " + y); + } + function c(y, h, b) { + var T = s(y, b); + return b - 1 >= h && (T |= s(y, b - 1) << 4), T; + } + a.prototype._parseHex = function (h, b, T) { + (this.length = Math.ceil((h.length - b) / 6)), + (this.words = new Array(this.length)); + for (var E = 0; E < this.length; E++) this.words[E] = 0; + var f = 0, + u = 0, + v; + if (T === "be") + for (E = h.length - 1; E >= b; E -= 2) + (v = c(h, b, E) << f), + (this.words[u] |= v & 67108863), + f >= 18 + ? ((f -= 18), (u += 1), (this.words[u] |= v >>> 26)) + : (f += 8); + else { + var R = h.length - b; + for (E = R % 2 === 0 ? b + 1 : b; E < h.length; E += 2) + (v = c(h, b, E) << f), + (this.words[u] |= v & 67108863), + f >= 18 + ? ((f -= 18), (u += 1), (this.words[u] |= v >>> 26)) + : (f += 8); + } + this._strip(); + }; + function l(y, h, b, T) { + for (var E = 0, f = 0, u = Math.min(y.length, b), v = h; v < u; v++) { + var R = y.charCodeAt(v) - 48; + (E *= T), + R >= 49 ? (f = R - 49 + 10) : R >= 17 ? (f = R - 17 + 10) : (f = R), + t(R >= 0 && f < T, "Invalid character"), + (E += f); + } + return E; + } + (a.prototype._parseBase = function (h, b, T) { + (this.words = [0]), (this.length = 1); + for (var E = 0, f = 1; f <= 67108863; f *= b) E++; + E--, (f = (f / b) | 0); + for ( + var u = h.length - T, + v = u % E, + R = Math.min(u, u - v) + T, + A = 0, + L = T; + L < R; + L += E + ) + (A = l(h, L, L + E, b)), + this.imuln(f), + this.words[0] + A < 67108864 + ? (this.words[0] += A) + : this._iaddn(A); + if (v !== 0) { + var G = 1; + for (A = l(h, L, h.length, b), L = 0; L < v; L++) G *= b; + this.imuln(G), + this.words[0] + A < 67108864 + ? (this.words[0] += A) + : this._iaddn(A); + } + this._strip(); + }), + (a.prototype.copy = function (h) { + h.words = new Array(this.length); + for (var b = 0; b < this.length; b++) h.words[b] = this.words[b]; + (h.length = this.length), + (h.negative = this.negative), + (h.red = this.red); + }); + function d(y, h) { + (y.words = h.words), + (y.length = h.length), + (y.negative = h.negative), + (y.red = h.red); + } + if ( + ((a.prototype._move = function (h) { + d(h, this); + }), + (a.prototype.clone = function () { + var h = new a(null); + return this.copy(h), h; + }), + (a.prototype._expand = function (h) { + for (; this.length < h; ) this.words[this.length++] = 0; + return this; + }), + (a.prototype._strip = function () { + for (; this.length > 1 && this.words[this.length - 1] === 0; ) + this.length--; + return this._normSign(); + }), + (a.prototype._normSign = function () { + return ( + this.length === 1 && this.words[0] === 0 && (this.negative = 0), + this + ); + }), + typeof Symbol < "u" && typeof Symbol.for == "function") + ) + try { + a.prototype[Symbol.for("nodejs.util.inspect.custom")] = m; + } catch { + a.prototype.inspect = m; + } + else a.prototype.inspect = m; + function m() { + return (this.red ? ""; + } + var w = [ + "", + "0", + "00", + "000", + "0000", + "00000", + "000000", + "0000000", + "00000000", + "000000000", + "0000000000", + "00000000000", + "000000000000", + "0000000000000", + "00000000000000", + "000000000000000", + "0000000000000000", + "00000000000000000", + "000000000000000000", + "0000000000000000000", + "00000000000000000000", + "000000000000000000000", + "0000000000000000000000", + "00000000000000000000000", + "000000000000000000000000", + "0000000000000000000000000", + ], + C = [ + 0, 0, 25, 16, 12, 11, 10, 9, 8, 8, 7, 7, 7, 7, 6, 6, 6, 6, 6, 6, 6, 5, + 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, + ], + I = [ + 0, 0, 33554432, 43046721, 16777216, 48828125, 60466176, 40353607, + 16777216, 43046721, 1e7, 19487171, 35831808, 62748517, 7529536, + 11390625, 16777216, 24137569, 34012224, 47045881, 64e6, 4084101, + 5153632, 6436343, 7962624, 9765625, 11881376, 14348907, 17210368, + 20511149, 243e5, 28629151, 33554432, 39135393, 45435424, 52521875, + 60466176, + ]; + (a.prototype.toString = function (h, b) { + (h = h || 10), (b = b | 0 || 1); + var T; + if (h === 16 || h === "hex") { + T = ""; + for (var E = 0, f = 0, u = 0; u < this.length; u++) { + var v = this.words[u], + R = (((v << E) | f) & 16777215).toString(16); + (f = (v >>> (24 - E)) & 16777215), + (E += 2), + E >= 26 && ((E -= 26), u--), + f !== 0 || u !== this.length - 1 + ? (T = w[6 - R.length] + R + T) + : (T = R + T); + } + for (f !== 0 && (T = f.toString(16) + T); T.length % b !== 0; ) + T = "0" + T; + return this.negative !== 0 && (T = "-" + T), T; + } + if (h === (h | 0) && h >= 2 && h <= 36) { + var A = C[h], + L = I[h]; + T = ""; + var G = this.clone(); + for (G.negative = 0; !G.isZero(); ) { + var U = G.modrn(L).toString(h); + (G = G.idivn(L)), + G.isZero() ? (T = U + T) : (T = w[A - U.length] + U + T); + } + for (this.isZero() && (T = "0" + T); T.length % b !== 0; ) + T = "0" + T; + return this.negative !== 0 && (T = "-" + T), T; + } + t(!1, "Base should be between 2 and 36"); + }), + (a.prototype.toNumber = function () { + var h = this.words[0]; + return ( + this.length === 2 + ? (h += this.words[1] * 67108864) + : this.length === 3 && this.words[2] === 1 + ? (h += 4503599627370496 + this.words[1] * 67108864) + : this.length > 2 && + t(!1, "Number can only safely store up to 53 bits"), + this.negative !== 0 ? -h : h + ); + }), + (a.prototype.toJSON = function () { + return this.toString(16, 2); + }), + i && + (a.prototype.toBuffer = function (h, b) { + return this.toArrayLike(i, h, b); + }), + (a.prototype.toArray = function (h, b) { + return this.toArrayLike(Array, h, b); + }); + var k = function (h, b) { + return h.allocUnsafe ? h.allocUnsafe(b) : new h(b); + }; + (a.prototype.toArrayLike = function (h, b, T) { + this._strip(); + var E = this.byteLength(), + f = T || Math.max(1, E); + t(E <= f, "byte array longer than desired length"), + t(f > 0, "Requested array length <= 0"); + var u = k(h, f), + v = b === "le" ? "LE" : "BE"; + return this["_toArrayLike" + v](u, E), u; + }), + (a.prototype._toArrayLikeLE = function (h, b) { + for (var T = 0, E = 0, f = 0, u = 0; f < this.length; f++) { + var v = (this.words[f] << u) | E; + (h[T++] = v & 255), + T < h.length && (h[T++] = (v >> 8) & 255), + T < h.length && (h[T++] = (v >> 16) & 255), + u === 6 + ? (T < h.length && (h[T++] = (v >> 24) & 255), (E = 0), (u = 0)) + : ((E = v >>> 24), (u += 2)); + } + if (T < h.length) for (h[T++] = E; T < h.length; ) h[T++] = 0; + }), + (a.prototype._toArrayLikeBE = function (h, b) { + for ( + var T = h.length - 1, E = 0, f = 0, u = 0; + f < this.length; + f++ + ) { + var v = (this.words[f] << u) | E; + (h[T--] = v & 255), + T >= 0 && (h[T--] = (v >> 8) & 255), + T >= 0 && (h[T--] = (v >> 16) & 255), + u === 6 + ? (T >= 0 && (h[T--] = (v >> 24) & 255), (E = 0), (u = 0)) + : ((E = v >>> 24), (u += 2)); + } + if (T >= 0) for (h[T--] = E; T >= 0; ) h[T--] = 0; + }), + Math.clz32 + ? (a.prototype._countBits = function (h) { + return 32 - Math.clz32(h); + }) + : (a.prototype._countBits = function (h) { + var b = h, + T = 0; + return ( + b >= 4096 && ((T += 13), (b >>>= 13)), + b >= 64 && ((T += 7), (b >>>= 7)), + b >= 8 && ((T += 4), (b >>>= 4)), + b >= 2 && ((T += 2), (b >>>= 2)), + T + b + ); + }), + (a.prototype._zeroBits = function (h) { + if (h === 0) return 26; + var b = h, + T = 0; + return ( + (b & 8191) === 0 && ((T += 13), (b >>>= 13)), + (b & 127) === 0 && ((T += 7), (b >>>= 7)), + (b & 15) === 0 && ((T += 4), (b >>>= 4)), + (b & 3) === 0 && ((T += 2), (b >>>= 2)), + (b & 1) === 0 && T++, + T + ); + }), + (a.prototype.bitLength = function () { + var h = this.words[this.length - 1], + b = this._countBits(h); + return (this.length - 1) * 26 + b; + }); + function O(y) { + for (var h = new Array(y.bitLength()), b = 0; b < h.length; b++) { + var T = (b / 26) | 0, + E = b % 26; + h[b] = (y.words[T] >>> E) & 1; + } + return h; + } + (a.prototype.zeroBits = function () { + if (this.isZero()) return 0; + for (var h = 0, b = 0; b < this.length; b++) { + var T = this._zeroBits(this.words[b]); + if (((h += T), T !== 26)) break; + } + return h; + }), + (a.prototype.byteLength = function () { + return Math.ceil(this.bitLength() / 8); + }), + (a.prototype.toTwos = function (h) { + return this.negative !== 0 + ? this.abs().inotn(h).iaddn(1) + : this.clone(); + }), + (a.prototype.fromTwos = function (h) { + return this.testn(h - 1) + ? this.notn(h).iaddn(1).ineg() + : this.clone(); + }), + (a.prototype.isNeg = function () { + return this.negative !== 0; + }), + (a.prototype.neg = function () { + return this.clone().ineg(); + }), + (a.prototype.ineg = function () { + return this.isZero() || (this.negative ^= 1), this; + }), + (a.prototype.iuor = function (h) { + for (; this.length < h.length; ) this.words[this.length++] = 0; + for (var b = 0; b < h.length; b++) + this.words[b] = this.words[b] | h.words[b]; + return this._strip(); + }), + (a.prototype.ior = function (h) { + return t((this.negative | h.negative) === 0), this.iuor(h); + }), + (a.prototype.or = function (h) { + return this.length > h.length + ? this.clone().ior(h) + : h.clone().ior(this); + }), + (a.prototype.uor = function (h) { + return this.length > h.length + ? this.clone().iuor(h) + : h.clone().iuor(this); + }), + (a.prototype.iuand = function (h) { + var b; + this.length > h.length ? (b = h) : (b = this); + for (var T = 0; T < b.length; T++) + this.words[T] = this.words[T] & h.words[T]; + return (this.length = b.length), this._strip(); + }), + (a.prototype.iand = function (h) { + return t((this.negative | h.negative) === 0), this.iuand(h); + }), + (a.prototype.and = function (h) { + return this.length > h.length + ? this.clone().iand(h) + : h.clone().iand(this); + }), + (a.prototype.uand = function (h) { + return this.length > h.length + ? this.clone().iuand(h) + : h.clone().iuand(this); + }), + (a.prototype.iuxor = function (h) { + var b, T; + this.length > h.length + ? ((b = this), (T = h)) + : ((b = h), (T = this)); + for (var E = 0; E < T.length; E++) + this.words[E] = b.words[E] ^ T.words[E]; + if (this !== b) for (; E < b.length; E++) this.words[E] = b.words[E]; + return (this.length = b.length), this._strip(); + }), + (a.prototype.ixor = function (h) { + return t((this.negative | h.negative) === 0), this.iuxor(h); + }), + (a.prototype.xor = function (h) { + return this.length > h.length + ? this.clone().ixor(h) + : h.clone().ixor(this); + }), + (a.prototype.uxor = function (h) { + return this.length > h.length + ? this.clone().iuxor(h) + : h.clone().iuxor(this); + }), + (a.prototype.inotn = function (h) { + t(typeof h == "number" && h >= 0); + var b = Math.ceil(h / 26) | 0, + T = h % 26; + this._expand(b), T > 0 && b--; + for (var E = 0; E < b; E++) this.words[E] = ~this.words[E] & 67108863; + return ( + T > 0 && (this.words[E] = ~this.words[E] & (67108863 >> (26 - T))), + this._strip() + ); + }), + (a.prototype.notn = function (h) { + return this.clone().inotn(h); + }), + (a.prototype.setn = function (h, b) { + t(typeof h == "number" && h >= 0); + var T = (h / 26) | 0, + E = h % 26; + return ( + this._expand(T + 1), + b + ? (this.words[T] = this.words[T] | (1 << E)) + : (this.words[T] = this.words[T] & ~(1 << E)), + this._strip() + ); + }), + (a.prototype.iadd = function (h) { + var b; + if (this.negative !== 0 && h.negative === 0) + return ( + (this.negative = 0), + (b = this.isub(h)), + (this.negative ^= 1), + this._normSign() + ); + if (this.negative === 0 && h.negative !== 0) + return ( + (h.negative = 0), + (b = this.isub(h)), + (h.negative = 1), + b._normSign() + ); + var T, E; + this.length > h.length + ? ((T = this), (E = h)) + : ((T = h), (E = this)); + for (var f = 0, u = 0; u < E.length; u++) + (b = (T.words[u] | 0) + (E.words[u] | 0) + f), + (this.words[u] = b & 67108863), + (f = b >>> 26); + for (; f !== 0 && u < T.length; u++) + (b = (T.words[u] | 0) + f), + (this.words[u] = b & 67108863), + (f = b >>> 26); + if (((this.length = T.length), f !== 0)) + (this.words[this.length] = f), this.length++; + else if (T !== this) + for (; u < T.length; u++) this.words[u] = T.words[u]; + return this; + }), + (a.prototype.add = function (h) { + var b; + return h.negative !== 0 && this.negative === 0 + ? ((h.negative = 0), (b = this.sub(h)), (h.negative ^= 1), b) + : h.negative === 0 && this.negative !== 0 + ? ((this.negative = 0), (b = h.sub(this)), (this.negative = 1), b) + : this.length > h.length + ? this.clone().iadd(h) + : h.clone().iadd(this); + }), + (a.prototype.isub = function (h) { + if (h.negative !== 0) { + h.negative = 0; + var b = this.iadd(h); + return (h.negative = 1), b._normSign(); + } else if (this.negative !== 0) + return ( + (this.negative = 0), + this.iadd(h), + (this.negative = 1), + this._normSign() + ); + var T = this.cmp(h); + if (T === 0) + return ( + (this.negative = 0), (this.length = 1), (this.words[0] = 0), this + ); + var E, f; + T > 0 ? ((E = this), (f = h)) : ((E = h), (f = this)); + for (var u = 0, v = 0; v < f.length; v++) + (b = (E.words[v] | 0) - (f.words[v] | 0) + u), + (u = b >> 26), + (this.words[v] = b & 67108863); + for (; u !== 0 && v < E.length; v++) + (b = (E.words[v] | 0) + u), + (u = b >> 26), + (this.words[v] = b & 67108863); + if (u === 0 && v < E.length && E !== this) + for (; v < E.length; v++) this.words[v] = E.words[v]; + return ( + (this.length = Math.max(this.length, v)), + E !== this && (this.negative = 1), + this._strip() + ); + }), + (a.prototype.sub = function (h) { + return this.clone().isub(h); + }); + function D(y, h, b) { + b.negative = h.negative ^ y.negative; + var T = (y.length + h.length) | 0; + (b.length = T), (T = (T - 1) | 0); + var E = y.words[0] | 0, + f = h.words[0] | 0, + u = E * f, + v = u & 67108863, + R = (u / 67108864) | 0; + b.words[0] = v; + for (var A = 1; A < T; A++) { + for ( + var L = R >>> 26, + G = R & 67108863, + U = Math.min(A, h.length - 1), + Z = Math.max(0, A - y.length + 1); + Z <= U; + Z++ + ) { + var de = (A - Z) | 0; + (E = y.words[de] | 0), + (f = h.words[Z] | 0), + (u = E * f + G), + (L += (u / 67108864) | 0), + (G = u & 67108863); + } + (b.words[A] = G | 0), (R = L | 0); + } + return R !== 0 ? (b.words[A] = R | 0) : b.length--, b._strip(); + } + var W = function (h, b, T) { + var E = h.words, + f = b.words, + u = T.words, + v = 0, + R, + A, + L, + G = E[0] | 0, + U = G & 8191, + Z = G >>> 13, + de = E[1] | 0, + ne = de & 8191, + pe = de >>> 13, + lt = E[2] | 0, + fe = lt & 8191, + ve = lt >>> 13, + vt = E[3] | 0, + we = vt & 8191, + Ne = vt >>> 13, + kt = E[4] | 0, + Le = kt & 8191, + ze = kt >>> 13, + It = E[5] | 0, + Se = It & 8191, + Ke = It >>> 13, + Et = E[6] | 0, + Me = Et & 8191, + Ge = Et >>> 13, + Dt = E[7] | 0, + De = Dt & 8191, + Ze = Dt >>> 13, + Wt = E[8] | 0, + ke = Wt & 8191, + $e = Wt >>> 13, + Ht = E[9] | 0, + Pe = Ht & 8191, + Je = Ht >>> 13, + zt = f[0] | 0, + Re = zt & 8191, + Qe = zt >>> 13, + jt = f[1] | 0, + Be = jt & 8191, + Xe = jt >>> 13, + Ut = f[2] | 0, + Ae = Ut & 8191, + et = Ut >>> 13, + St = f[3] | 0, + Oe = St & 8191, + tt = St >>> 13, + Kt = f[4] | 0, + qe = Kt & 8191, + rt = Kt >>> 13, + Vt = f[5] | 0, + Ie = Vt & 8191, + Ye = Vt >>> 13, + Gt = f[6] | 0, + We = Gt & 8191, + it = Gt >>> 13, + Qt = f[7] | 0, + Ue = Qt & 8191, + nt = Qt >>> 13, + tr = f[8] | 0, + He = tr & 8191, + at = tr >>> 13, + Pr = f[9] | 0, + qt = Pr & 8191, + Ft = Pr >>> 13; + (T.negative = h.negative ^ b.negative), + (T.length = 19), + (R = Math.imul(U, Re)), + (A = Math.imul(U, Qe)), + (A = (A + Math.imul(Z, Re)) | 0), + (L = Math.imul(Z, Qe)); + var _r = (((v + R) | 0) + ((A & 8191) << 13)) | 0; + (v = (((L + (A >>> 13)) | 0) + (_r >>> 26)) | 0), + (_r &= 67108863), + (R = Math.imul(ne, Re)), + (A = Math.imul(ne, Qe)), + (A = (A + Math.imul(pe, Re)) | 0), + (L = Math.imul(pe, Qe)), + (R = (R + Math.imul(U, Be)) | 0), + (A = (A + Math.imul(U, Xe)) | 0), + (A = (A + Math.imul(Z, Be)) | 0), + (L = (L + Math.imul(Z, Xe)) | 0); + var xr = (((v + R) | 0) + ((A & 8191) << 13)) | 0; + (v = (((L + (A >>> 13)) | 0) + (xr >>> 26)) | 0), + (xr &= 67108863), + (R = Math.imul(fe, Re)), + (A = Math.imul(fe, Qe)), + (A = (A + Math.imul(ve, Re)) | 0), + (L = Math.imul(ve, Qe)), + (R = (R + Math.imul(ne, Be)) | 0), + (A = (A + Math.imul(ne, Xe)) | 0), + (A = (A + Math.imul(pe, Be)) | 0), + (L = (L + Math.imul(pe, Xe)) | 0), + (R = (R + Math.imul(U, Ae)) | 0), + (A = (A + Math.imul(U, et)) | 0), + (A = (A + Math.imul(Z, Ae)) | 0), + (L = (L + Math.imul(Z, et)) | 0); + var Tr = (((v + R) | 0) + ((A & 8191) << 13)) | 0; + (v = (((L + (A >>> 13)) | 0) + (Tr >>> 26)) | 0), + (Tr &= 67108863), + (R = Math.imul(we, Re)), + (A = Math.imul(we, Qe)), + (A = (A + Math.imul(Ne, Re)) | 0), + (L = Math.imul(Ne, Qe)), + (R = (R + Math.imul(fe, Be)) | 0), + (A = (A + Math.imul(fe, Xe)) | 0), + (A = (A + Math.imul(ve, Be)) | 0), + (L = (L + Math.imul(ve, Xe)) | 0), + (R = (R + Math.imul(ne, Ae)) | 0), + (A = (A + Math.imul(ne, et)) | 0), + (A = (A + Math.imul(pe, Ae)) | 0), + (L = (L + Math.imul(pe, et)) | 0), + (R = (R + Math.imul(U, Oe)) | 0), + (A = (A + Math.imul(U, tt)) | 0), + (A = (A + Math.imul(Z, Oe)) | 0), + (L = (L + Math.imul(Z, tt)) | 0); + var Er = (((v + R) | 0) + ((A & 8191) << 13)) | 0; + (v = (((L + (A >>> 13)) | 0) + (Er >>> 26)) | 0), + (Er &= 67108863), + (R = Math.imul(Le, Re)), + (A = Math.imul(Le, Qe)), + (A = (A + Math.imul(ze, Re)) | 0), + (L = Math.imul(ze, Qe)), + (R = (R + Math.imul(we, Be)) | 0), + (A = (A + Math.imul(we, Xe)) | 0), + (A = (A + Math.imul(Ne, Be)) | 0), + (L = (L + Math.imul(Ne, Xe)) | 0), + (R = (R + Math.imul(fe, Ae)) | 0), + (A = (A + Math.imul(fe, et)) | 0), + (A = (A + Math.imul(ve, Ae)) | 0), + (L = (L + Math.imul(ve, et)) | 0), + (R = (R + Math.imul(ne, Oe)) | 0), + (A = (A + Math.imul(ne, tt)) | 0), + (A = (A + Math.imul(pe, Oe)) | 0), + (L = (L + Math.imul(pe, tt)) | 0), + (R = (R + Math.imul(U, qe)) | 0), + (A = (A + Math.imul(U, rt)) | 0), + (A = (A + Math.imul(Z, qe)) | 0), + (L = (L + Math.imul(Z, rt)) | 0); + var Cr = (((v + R) | 0) + ((A & 8191) << 13)) | 0; + (v = (((L + (A >>> 13)) | 0) + (Cr >>> 26)) | 0), + (Cr &= 67108863), + (R = Math.imul(Se, Re)), + (A = Math.imul(Se, Qe)), + (A = (A + Math.imul(Ke, Re)) | 0), + (L = Math.imul(Ke, Qe)), + (R = (R + Math.imul(Le, Be)) | 0), + (A = (A + Math.imul(Le, Xe)) | 0), + (A = (A + Math.imul(ze, Be)) | 0), + (L = (L + Math.imul(ze, Xe)) | 0), + (R = (R + Math.imul(we, Ae)) | 0), + (A = (A + Math.imul(we, et)) | 0), + (A = (A + Math.imul(Ne, Ae)) | 0), + (L = (L + Math.imul(Ne, et)) | 0), + (R = (R + Math.imul(fe, Oe)) | 0), + (A = (A + Math.imul(fe, tt)) | 0), + (A = (A + Math.imul(ve, Oe)) | 0), + (L = (L + Math.imul(ve, tt)) | 0), + (R = (R + Math.imul(ne, qe)) | 0), + (A = (A + Math.imul(ne, rt)) | 0), + (A = (A + Math.imul(pe, qe)) | 0), + (L = (L + Math.imul(pe, rt)) | 0), + (R = (R + Math.imul(U, Ie)) | 0), + (A = (A + Math.imul(U, Ye)) | 0), + (A = (A + Math.imul(Z, Ie)) | 0), + (L = (L + Math.imul(Z, Ye)) | 0); + var Kr = (((v + R) | 0) + ((A & 8191) << 13)) | 0; + (v = (((L + (A >>> 13)) | 0) + (Kr >>> 26)) | 0), + (Kr &= 67108863), + (R = Math.imul(Me, Re)), + (A = Math.imul(Me, Qe)), + (A = (A + Math.imul(Ge, Re)) | 0), + (L = Math.imul(Ge, Qe)), + (R = (R + Math.imul(Se, Be)) | 0), + (A = (A + Math.imul(Se, Xe)) | 0), + (A = (A + Math.imul(Ke, Be)) | 0), + (L = (L + Math.imul(Ke, Xe)) | 0), + (R = (R + Math.imul(Le, Ae)) | 0), + (A = (A + Math.imul(Le, et)) | 0), + (A = (A + Math.imul(ze, Ae)) | 0), + (L = (L + Math.imul(ze, et)) | 0), + (R = (R + Math.imul(we, Oe)) | 0), + (A = (A + Math.imul(we, tt)) | 0), + (A = (A + Math.imul(Ne, Oe)) | 0), + (L = (L + Math.imul(Ne, tt)) | 0), + (R = (R + Math.imul(fe, qe)) | 0), + (A = (A + Math.imul(fe, rt)) | 0), + (A = (A + Math.imul(ve, qe)) | 0), + (L = (L + Math.imul(ve, rt)) | 0), + (R = (R + Math.imul(ne, Ie)) | 0), + (A = (A + Math.imul(ne, Ye)) | 0), + (A = (A + Math.imul(pe, Ie)) | 0), + (L = (L + Math.imul(pe, Ye)) | 0), + (R = (R + Math.imul(U, We)) | 0), + (A = (A + Math.imul(U, it)) | 0), + (A = (A + Math.imul(Z, We)) | 0), + (L = (L + Math.imul(Z, it)) | 0); + var Vr = (((v + R) | 0) + ((A & 8191) << 13)) | 0; + (v = (((L + (A >>> 13)) | 0) + (Vr >>> 26)) | 0), + (Vr &= 67108863), + (R = Math.imul(De, Re)), + (A = Math.imul(De, Qe)), + (A = (A + Math.imul(Ze, Re)) | 0), + (L = Math.imul(Ze, Qe)), + (R = (R + Math.imul(Me, Be)) | 0), + (A = (A + Math.imul(Me, Xe)) | 0), + (A = (A + Math.imul(Ge, Be)) | 0), + (L = (L + Math.imul(Ge, Xe)) | 0), + (R = (R + Math.imul(Se, Ae)) | 0), + (A = (A + Math.imul(Se, et)) | 0), + (A = (A + Math.imul(Ke, Ae)) | 0), + (L = (L + Math.imul(Ke, et)) | 0), + (R = (R + Math.imul(Le, Oe)) | 0), + (A = (A + Math.imul(Le, tt)) | 0), + (A = (A + Math.imul(ze, Oe)) | 0), + (L = (L + Math.imul(ze, tt)) | 0), + (R = (R + Math.imul(we, qe)) | 0), + (A = (A + Math.imul(we, rt)) | 0), + (A = (A + Math.imul(Ne, qe)) | 0), + (L = (L + Math.imul(Ne, rt)) | 0), + (R = (R + Math.imul(fe, Ie)) | 0), + (A = (A + Math.imul(fe, Ye)) | 0), + (A = (A + Math.imul(ve, Ie)) | 0), + (L = (L + Math.imul(ve, Ye)) | 0), + (R = (R + Math.imul(ne, We)) | 0), + (A = (A + Math.imul(ne, it)) | 0), + (A = (A + Math.imul(pe, We)) | 0), + (L = (L + Math.imul(pe, it)) | 0), + (R = (R + Math.imul(U, Ue)) | 0), + (A = (A + Math.imul(U, nt)) | 0), + (A = (A + Math.imul(Z, Ue)) | 0), + (L = (L + Math.imul(Z, nt)) | 0); + var Ur = (((v + R) | 0) + ((A & 8191) << 13)) | 0; + (v = (((L + (A >>> 13)) | 0) + (Ur >>> 26)) | 0), + (Ur &= 67108863), + (R = Math.imul(ke, Re)), + (A = Math.imul(ke, Qe)), + (A = (A + Math.imul($e, Re)) | 0), + (L = Math.imul($e, Qe)), + (R = (R + Math.imul(De, Be)) | 0), + (A = (A + Math.imul(De, Xe)) | 0), + (A = (A + Math.imul(Ze, Be)) | 0), + (L = (L + Math.imul(Ze, Xe)) | 0), + (R = (R + Math.imul(Me, Ae)) | 0), + (A = (A + Math.imul(Me, et)) | 0), + (A = (A + Math.imul(Ge, Ae)) | 0), + (L = (L + Math.imul(Ge, et)) | 0), + (R = (R + Math.imul(Se, Oe)) | 0), + (A = (A + Math.imul(Se, tt)) | 0), + (A = (A + Math.imul(Ke, Oe)) | 0), + (L = (L + Math.imul(Ke, tt)) | 0), + (R = (R + Math.imul(Le, qe)) | 0), + (A = (A + Math.imul(Le, rt)) | 0), + (A = (A + Math.imul(ze, qe)) | 0), + (L = (L + Math.imul(ze, rt)) | 0), + (R = (R + Math.imul(we, Ie)) | 0), + (A = (A + Math.imul(we, Ye)) | 0), + (A = (A + Math.imul(Ne, Ie)) | 0), + (L = (L + Math.imul(Ne, Ye)) | 0), + (R = (R + Math.imul(fe, We)) | 0), + (A = (A + Math.imul(fe, it)) | 0), + (A = (A + Math.imul(ve, We)) | 0), + (L = (L + Math.imul(ve, it)) | 0), + (R = (R + Math.imul(ne, Ue)) | 0), + (A = (A + Math.imul(ne, nt)) | 0), + (A = (A + Math.imul(pe, Ue)) | 0), + (L = (L + Math.imul(pe, nt)) | 0), + (R = (R + Math.imul(U, He)) | 0), + (A = (A + Math.imul(U, at)) | 0), + (A = (A + Math.imul(Z, He)) | 0), + (L = (L + Math.imul(Z, at)) | 0); + var Rr = (((v + R) | 0) + ((A & 8191) << 13)) | 0; + (v = (((L + (A >>> 13)) | 0) + (Rr >>> 26)) | 0), + (Rr &= 67108863), + (R = Math.imul(Pe, Re)), + (A = Math.imul(Pe, Qe)), + (A = (A + Math.imul(Je, Re)) | 0), + (L = Math.imul(Je, Qe)), + (R = (R + Math.imul(ke, Be)) | 0), + (A = (A + Math.imul(ke, Xe)) | 0), + (A = (A + Math.imul($e, Be)) | 0), + (L = (L + Math.imul($e, Xe)) | 0), + (R = (R + Math.imul(De, Ae)) | 0), + (A = (A + Math.imul(De, et)) | 0), + (A = (A + Math.imul(Ze, Ae)) | 0), + (L = (L + Math.imul(Ze, et)) | 0), + (R = (R + Math.imul(Me, Oe)) | 0), + (A = (A + Math.imul(Me, tt)) | 0), + (A = (A + Math.imul(Ge, Oe)) | 0), + (L = (L + Math.imul(Ge, tt)) | 0), + (R = (R + Math.imul(Se, qe)) | 0), + (A = (A + Math.imul(Se, rt)) | 0), + (A = (A + Math.imul(Ke, qe)) | 0), + (L = (L + Math.imul(Ke, rt)) | 0), + (R = (R + Math.imul(Le, Ie)) | 0), + (A = (A + Math.imul(Le, Ye)) | 0), + (A = (A + Math.imul(ze, Ie)) | 0), + (L = (L + Math.imul(ze, Ye)) | 0), + (R = (R + Math.imul(we, We)) | 0), + (A = (A + Math.imul(we, it)) | 0), + (A = (A + Math.imul(Ne, We)) | 0), + (L = (L + Math.imul(Ne, it)) | 0), + (R = (R + Math.imul(fe, Ue)) | 0), + (A = (A + Math.imul(fe, nt)) | 0), + (A = (A + Math.imul(ve, Ue)) | 0), + (L = (L + Math.imul(ve, nt)) | 0), + (R = (R + Math.imul(ne, He)) | 0), + (A = (A + Math.imul(ne, at)) | 0), + (A = (A + Math.imul(pe, He)) | 0), + (L = (L + Math.imul(pe, at)) | 0), + (R = (R + Math.imul(U, qt)) | 0), + (A = (A + Math.imul(U, Ft)) | 0), + (A = (A + Math.imul(Z, qt)) | 0), + (L = (L + Math.imul(Z, Ft)) | 0); + var Or = (((v + R) | 0) + ((A & 8191) << 13)) | 0; + (v = (((L + (A >>> 13)) | 0) + (Or >>> 26)) | 0), + (Or &= 67108863), + (R = Math.imul(Pe, Be)), + (A = Math.imul(Pe, Xe)), + (A = (A + Math.imul(Je, Be)) | 0), + (L = Math.imul(Je, Xe)), + (R = (R + Math.imul(ke, Ae)) | 0), + (A = (A + Math.imul(ke, et)) | 0), + (A = (A + Math.imul($e, Ae)) | 0), + (L = (L + Math.imul($e, et)) | 0), + (R = (R + Math.imul(De, Oe)) | 0), + (A = (A + Math.imul(De, tt)) | 0), + (A = (A + Math.imul(Ze, Oe)) | 0), + (L = (L + Math.imul(Ze, tt)) | 0), + (R = (R + Math.imul(Me, qe)) | 0), + (A = (A + Math.imul(Me, rt)) | 0), + (A = (A + Math.imul(Ge, qe)) | 0), + (L = (L + Math.imul(Ge, rt)) | 0), + (R = (R + Math.imul(Se, Ie)) | 0), + (A = (A + Math.imul(Se, Ye)) | 0), + (A = (A + Math.imul(Ke, Ie)) | 0), + (L = (L + Math.imul(Ke, Ye)) | 0), + (R = (R + Math.imul(Le, We)) | 0), + (A = (A + Math.imul(Le, it)) | 0), + (A = (A + Math.imul(ze, We)) | 0), + (L = (L + Math.imul(ze, it)) | 0), + (R = (R + Math.imul(we, Ue)) | 0), + (A = (A + Math.imul(we, nt)) | 0), + (A = (A + Math.imul(Ne, Ue)) | 0), + (L = (L + Math.imul(Ne, nt)) | 0), + (R = (R + Math.imul(fe, He)) | 0), + (A = (A + Math.imul(fe, at)) | 0), + (A = (A + Math.imul(ve, He)) | 0), + (L = (L + Math.imul(ve, at)) | 0), + (R = (R + Math.imul(ne, qt)) | 0), + (A = (A + Math.imul(ne, Ft)) | 0), + (A = (A + Math.imul(pe, qt)) | 0), + (L = (L + Math.imul(pe, Ft)) | 0); + var ur = (((v + R) | 0) + ((A & 8191) << 13)) | 0; + (v = (((L + (A >>> 13)) | 0) + (ur >>> 26)) | 0), + (ur &= 67108863), + (R = Math.imul(Pe, Ae)), + (A = Math.imul(Pe, et)), + (A = (A + Math.imul(Je, Ae)) | 0), + (L = Math.imul(Je, et)), + (R = (R + Math.imul(ke, Oe)) | 0), + (A = (A + Math.imul(ke, tt)) | 0), + (A = (A + Math.imul($e, Oe)) | 0), + (L = (L + Math.imul($e, tt)) | 0), + (R = (R + Math.imul(De, qe)) | 0), + (A = (A + Math.imul(De, rt)) | 0), + (A = (A + Math.imul(Ze, qe)) | 0), + (L = (L + Math.imul(Ze, rt)) | 0), + (R = (R + Math.imul(Me, Ie)) | 0), + (A = (A + Math.imul(Me, Ye)) | 0), + (A = (A + Math.imul(Ge, Ie)) | 0), + (L = (L + Math.imul(Ge, Ye)) | 0), + (R = (R + Math.imul(Se, We)) | 0), + (A = (A + Math.imul(Se, it)) | 0), + (A = (A + Math.imul(Ke, We)) | 0), + (L = (L + Math.imul(Ke, it)) | 0), + (R = (R + Math.imul(Le, Ue)) | 0), + (A = (A + Math.imul(Le, nt)) | 0), + (A = (A + Math.imul(ze, Ue)) | 0), + (L = (L + Math.imul(ze, nt)) | 0), + (R = (R + Math.imul(we, He)) | 0), + (A = (A + Math.imul(we, at)) | 0), + (A = (A + Math.imul(Ne, He)) | 0), + (L = (L + Math.imul(Ne, at)) | 0), + (R = (R + Math.imul(fe, qt)) | 0), + (A = (A + Math.imul(fe, Ft)) | 0), + (A = (A + Math.imul(ve, qt)) | 0), + (L = (L + Math.imul(ve, Ft)) | 0); + var Hr = (((v + R) | 0) + ((A & 8191) << 13)) | 0; + (v = (((L + (A >>> 13)) | 0) + (Hr >>> 26)) | 0), + (Hr &= 67108863), + (R = Math.imul(Pe, Oe)), + (A = Math.imul(Pe, tt)), + (A = (A + Math.imul(Je, Oe)) | 0), + (L = Math.imul(Je, tt)), + (R = (R + Math.imul(ke, qe)) | 0), + (A = (A + Math.imul(ke, rt)) | 0), + (A = (A + Math.imul($e, qe)) | 0), + (L = (L + Math.imul($e, rt)) | 0), + (R = (R + Math.imul(De, Ie)) | 0), + (A = (A + Math.imul(De, Ye)) | 0), + (A = (A + Math.imul(Ze, Ie)) | 0), + (L = (L + Math.imul(Ze, Ye)) | 0), + (R = (R + Math.imul(Me, We)) | 0), + (A = (A + Math.imul(Me, it)) | 0), + (A = (A + Math.imul(Ge, We)) | 0), + (L = (L + Math.imul(Ge, it)) | 0), + (R = (R + Math.imul(Se, Ue)) | 0), + (A = (A + Math.imul(Se, nt)) | 0), + (A = (A + Math.imul(Ke, Ue)) | 0), + (L = (L + Math.imul(Ke, nt)) | 0), + (R = (R + Math.imul(Le, He)) | 0), + (A = (A + Math.imul(Le, at)) | 0), + (A = (A + Math.imul(ze, He)) | 0), + (L = (L + Math.imul(ze, at)) | 0), + (R = (R + Math.imul(we, qt)) | 0), + (A = (A + Math.imul(we, Ft)) | 0), + (A = (A + Math.imul(Ne, qt)) | 0), + (L = (L + Math.imul(Ne, Ft)) | 0); + var hr = (((v + R) | 0) + ((A & 8191) << 13)) | 0; + (v = (((L + (A >>> 13)) | 0) + (hr >>> 26)) | 0), + (hr &= 67108863), + (R = Math.imul(Pe, qe)), + (A = Math.imul(Pe, rt)), + (A = (A + Math.imul(Je, qe)) | 0), + (L = Math.imul(Je, rt)), + (R = (R + Math.imul(ke, Ie)) | 0), + (A = (A + Math.imul(ke, Ye)) | 0), + (A = (A + Math.imul($e, Ie)) | 0), + (L = (L + Math.imul($e, Ye)) | 0), + (R = (R + Math.imul(De, We)) | 0), + (A = (A + Math.imul(De, it)) | 0), + (A = (A + Math.imul(Ze, We)) | 0), + (L = (L + Math.imul(Ze, it)) | 0), + (R = (R + Math.imul(Me, Ue)) | 0), + (A = (A + Math.imul(Me, nt)) | 0), + (A = (A + Math.imul(Ge, Ue)) | 0), + (L = (L + Math.imul(Ge, nt)) | 0), + (R = (R + Math.imul(Se, He)) | 0), + (A = (A + Math.imul(Se, at)) | 0), + (A = (A + Math.imul(Ke, He)) | 0), + (L = (L + Math.imul(Ke, at)) | 0), + (R = (R + Math.imul(Le, qt)) | 0), + (A = (A + Math.imul(Le, Ft)) | 0), + (A = (A + Math.imul(ze, qt)) | 0), + (L = (L + Math.imul(ze, Ft)) | 0); + var Lr = (((v + R) | 0) + ((A & 8191) << 13)) | 0; + (v = (((L + (A >>> 13)) | 0) + (Lr >>> 26)) | 0), + (Lr &= 67108863), + (R = Math.imul(Pe, Ie)), + (A = Math.imul(Pe, Ye)), + (A = (A + Math.imul(Je, Ie)) | 0), + (L = Math.imul(Je, Ye)), + (R = (R + Math.imul(ke, We)) | 0), + (A = (A + Math.imul(ke, it)) | 0), + (A = (A + Math.imul($e, We)) | 0), + (L = (L + Math.imul($e, it)) | 0), + (R = (R + Math.imul(De, Ue)) | 0), + (A = (A + Math.imul(De, nt)) | 0), + (A = (A + Math.imul(Ze, Ue)) | 0), + (L = (L + Math.imul(Ze, nt)) | 0), + (R = (R + Math.imul(Me, He)) | 0), + (A = (A + Math.imul(Me, at)) | 0), + (A = (A + Math.imul(Ge, He)) | 0), + (L = (L + Math.imul(Ge, at)) | 0), + (R = (R + Math.imul(Se, qt)) | 0), + (A = (A + Math.imul(Se, Ft)) | 0), + (A = (A + Math.imul(Ke, qt)) | 0), + (L = (L + Math.imul(Ke, Ft)) | 0); + var Zr = (((v + R) | 0) + ((A & 8191) << 13)) | 0; + (v = (((L + (A >>> 13)) | 0) + (Zr >>> 26)) | 0), + (Zr &= 67108863), + (R = Math.imul(Pe, We)), + (A = Math.imul(Pe, it)), + (A = (A + Math.imul(Je, We)) | 0), + (L = Math.imul(Je, it)), + (R = (R + Math.imul(ke, Ue)) | 0), + (A = (A + Math.imul(ke, nt)) | 0), + (A = (A + Math.imul($e, Ue)) | 0), + (L = (L + Math.imul($e, nt)) | 0), + (R = (R + Math.imul(De, He)) | 0), + (A = (A + Math.imul(De, at)) | 0), + (A = (A + Math.imul(Ze, He)) | 0), + (L = (L + Math.imul(Ze, at)) | 0), + (R = (R + Math.imul(Me, qt)) | 0), + (A = (A + Math.imul(Me, Ft)) | 0), + (A = (A + Math.imul(Ge, qt)) | 0), + (L = (L + Math.imul(Ge, Ft)) | 0); + var xn = (((v + R) | 0) + ((A & 8191) << 13)) | 0; + (v = (((L + (A >>> 13)) | 0) + (xn >>> 26)) | 0), + (xn &= 67108863), + (R = Math.imul(Pe, Ue)), + (A = Math.imul(Pe, nt)), + (A = (A + Math.imul(Je, Ue)) | 0), + (L = Math.imul(Je, nt)), + (R = (R + Math.imul(ke, He)) | 0), + (A = (A + Math.imul(ke, at)) | 0), + (A = (A + Math.imul($e, He)) | 0), + (L = (L + Math.imul($e, at)) | 0), + (R = (R + Math.imul(De, qt)) | 0), + (A = (A + Math.imul(De, Ft)) | 0), + (A = (A + Math.imul(Ze, qt)) | 0), + (L = (L + Math.imul(Ze, Ft)) | 0); + var Fh = (((v + R) | 0) + ((A & 8191) << 13)) | 0; + (v = (((L + (A >>> 13)) | 0) + (Fh >>> 26)) | 0), + (Fh &= 67108863), + (R = Math.imul(Pe, He)), + (A = Math.imul(Pe, at)), + (A = (A + Math.imul(Je, He)) | 0), + (L = Math.imul(Je, at)), + (R = (R + Math.imul(ke, qt)) | 0), + (A = (A + Math.imul(ke, Ft)) | 0), + (A = (A + Math.imul($e, qt)) | 0), + (L = (L + Math.imul($e, Ft)) | 0); + var uy = (((v + R) | 0) + ((A & 8191) << 13)) | 0; + (v = (((L + (A >>> 13)) | 0) + (uy >>> 26)) | 0), + (uy &= 67108863), + (R = Math.imul(Pe, qt)), + (A = Math.imul(Pe, Ft)), + (A = (A + Math.imul(Je, qt)) | 0), + (L = Math.imul(Je, Ft)); + var Wh = (((v + R) | 0) + ((A & 8191) << 13)) | 0; + return ( + (v = (((L + (A >>> 13)) | 0) + (Wh >>> 26)) | 0), + (Wh &= 67108863), + (u[0] = _r), + (u[1] = xr), + (u[2] = Tr), + (u[3] = Er), + (u[4] = Cr), + (u[5] = Kr), + (u[6] = Vr), + (u[7] = Ur), + (u[8] = Rr), + (u[9] = Or), + (u[10] = ur), + (u[11] = Hr), + (u[12] = hr), + (u[13] = Lr), + (u[14] = Zr), + (u[15] = xn), + (u[16] = Fh), + (u[17] = uy), + (u[18] = Wh), + v !== 0 && ((u[19] = v), T.length++), + T + ); + }; + Math.imul || (W = D); + function H(y, h, b) { + (b.negative = h.negative ^ y.negative), + (b.length = y.length + h.length); + for (var T = 0, E = 0, f = 0; f < b.length - 1; f++) { + var u = E; + E = 0; + for ( + var v = T & 67108863, + R = Math.min(f, h.length - 1), + A = Math.max(0, f - y.length + 1); + A <= R; + A++ + ) { + var L = f - A, + G = y.words[L] | 0, + U = h.words[A] | 0, + Z = G * U, + de = Z & 67108863; + (u = (u + ((Z / 67108864) | 0)) | 0), + (de = (de + v) | 0), + (v = de & 67108863), + (u = (u + (de >>> 26)) | 0), + (E += u >>> 26), + (u &= 67108863); + } + (b.words[f] = v), (T = u), (u = E); + } + return T !== 0 ? (b.words[f] = T) : b.length--, b._strip(); + } + function j(y, h, b) { + return H(y, h, b); + } + a.prototype.mulTo = function (h, b) { + var T, + E = this.length + h.length; + return ( + this.length === 10 && h.length === 10 + ? (T = W(this, h, b)) + : E < 63 + ? (T = D(this, h, b)) + : E < 1024 + ? (T = H(this, h, b)) + : (T = j(this, h, b)), + T + ); + }; + function V(y, h) { + (this.x = y), (this.y = h); + } + (V.prototype.makeRBT = function (h) { + for ( + var b = new Array(h), T = a.prototype._countBits(h) - 1, E = 0; + E < h; + E++ + ) + b[E] = this.revBin(E, T, h); + return b; + }), + (V.prototype.revBin = function (h, b, T) { + if (h === 0 || h === T - 1) return h; + for (var E = 0, f = 0; f < b; f++) + (E |= (h & 1) << (b - f - 1)), (h >>= 1); + return E; + }), + (V.prototype.permute = function (h, b, T, E, f, u) { + for (var v = 0; v < u; v++) (E[v] = b[h[v]]), (f[v] = T[h[v]]); + }), + (V.prototype.transform = function (h, b, T, E, f, u) { + this.permute(u, h, b, T, E, f); + for (var v = 1; v < f; v <<= 1) + for ( + var R = v << 1, + A = Math.cos((2 * Math.PI) / R), + L = Math.sin((2 * Math.PI) / R), + G = 0; + G < f; + G += R + ) + for (var U = A, Z = L, de = 0; de < v; de++) { + var ne = T[G + de], + pe = E[G + de], + lt = T[G + de + v], + fe = E[G + de + v], + ve = U * lt - Z * fe; + (fe = U * fe + Z * lt), + (lt = ve), + (T[G + de] = ne + lt), + (E[G + de] = pe + fe), + (T[G + de + v] = ne - lt), + (E[G + de + v] = pe - fe), + de !== R && + ((ve = A * U - L * Z), (Z = A * Z + L * U), (U = ve)); + } + }), + (V.prototype.guessLen13b = function (h, b) { + var T = Math.max(b, h) | 1, + E = T & 1, + f = 0; + for (T = (T / 2) | 0; T; T = T >>> 1) f++; + return 1 << (f + 1 + E); + }), + (V.prototype.conjugate = function (h, b, T) { + if (!(T <= 1)) + for (var E = 0; E < T / 2; E++) { + var f = h[E]; + (h[E] = h[T - E - 1]), + (h[T - E - 1] = f), + (f = b[E]), + (b[E] = -b[T - E - 1]), + (b[T - E - 1] = -f); + } + }), + (V.prototype.normalize13b = function (h, b) { + for (var T = 0, E = 0; E < b / 2; E++) { + var f = + Math.round(h[2 * E + 1] / b) * 8192 + + Math.round(h[2 * E] / b) + + T; + (h[E] = f & 67108863), + f < 67108864 ? (T = 0) : (T = (f / 67108864) | 0); + } + return h; + }), + (V.prototype.convert13b = function (h, b, T, E) { + for (var f = 0, u = 0; u < b; u++) + (f = f + (h[u] | 0)), + (T[2 * u] = f & 8191), + (f = f >>> 13), + (T[2 * u + 1] = f & 8191), + (f = f >>> 13); + for (u = 2 * b; u < E; ++u) T[u] = 0; + t(f === 0), t((f & -8192) === 0); + }), + (V.prototype.stub = function (h) { + for (var b = new Array(h), T = 0; T < h; T++) b[T] = 0; + return b; + }), + (V.prototype.mulp = function (h, b, T) { + var E = 2 * this.guessLen13b(h.length, b.length), + f = this.makeRBT(E), + u = this.stub(E), + v = new Array(E), + R = new Array(E), + A = new Array(E), + L = new Array(E), + G = new Array(E), + U = new Array(E), + Z = T.words; + (Z.length = E), + this.convert13b(h.words, h.length, v, E), + this.convert13b(b.words, b.length, L, E), + this.transform(v, u, R, A, E, f), + this.transform(L, u, G, U, E, f); + for (var de = 0; de < E; de++) { + var ne = R[de] * G[de] - A[de] * U[de]; + (A[de] = R[de] * U[de] + A[de] * G[de]), (R[de] = ne); + } + return ( + this.conjugate(R, A, E), + this.transform(R, A, Z, u, E, f), + this.conjugate(Z, u, E), + this.normalize13b(Z, E), + (T.negative = h.negative ^ b.negative), + (T.length = h.length + b.length), + T._strip() + ); + }), + (a.prototype.mul = function (h) { + var b = new a(null); + return ( + (b.words = new Array(this.length + h.length)), this.mulTo(h, b) + ); + }), + (a.prototype.mulf = function (h) { + var b = new a(null); + return (b.words = new Array(this.length + h.length)), j(this, h, b); + }), + (a.prototype.imul = function (h) { + return this.clone().mulTo(h, this); + }), + (a.prototype.imuln = function (h) { + var b = h < 0; + b && (h = -h), t(typeof h == "number"), t(h < 67108864); + for (var T = 0, E = 0; E < this.length; E++) { + var f = (this.words[E] | 0) * h, + u = (f & 67108863) + (T & 67108863); + (T >>= 26), + (T += (f / 67108864) | 0), + (T += u >>> 26), + (this.words[E] = u & 67108863); + } + return ( + T !== 0 && ((this.words[E] = T), this.length++), + b ? this.ineg() : this + ); + }), + (a.prototype.muln = function (h) { + return this.clone().imuln(h); + }), + (a.prototype.sqr = function () { + return this.mul(this); + }), + (a.prototype.isqr = function () { + return this.imul(this.clone()); + }), + (a.prototype.pow = function (h) { + var b = O(h); + if (b.length === 0) return new a(1); + for ( + var T = this, E = 0; + E < b.length && b[E] === 0; + E++, T = T.sqr() + ); + if (++E < b.length) + for (var f = T.sqr(); E < b.length; E++, f = f.sqr()) + b[E] !== 0 && (T = T.mul(f)); + return T; + }), + (a.prototype.iushln = function (h) { + t(typeof h == "number" && h >= 0); + var b = h % 26, + T = (h - b) / 26, + E = (67108863 >>> (26 - b)) << (26 - b), + f; + if (b !== 0) { + var u = 0; + for (f = 0; f < this.length; f++) { + var v = this.words[f] & E, + R = ((this.words[f] | 0) - v) << b; + (this.words[f] = R | u), (u = v >>> (26 - b)); + } + u && ((this.words[f] = u), this.length++); + } + if (T !== 0) { + for (f = this.length - 1; f >= 0; f--) + this.words[f + T] = this.words[f]; + for (f = 0; f < T; f++) this.words[f] = 0; + this.length += T; + } + return this._strip(); + }), + (a.prototype.ishln = function (h) { + return t(this.negative === 0), this.iushln(h); + }), + (a.prototype.iushrn = function (h, b, T) { + t(typeof h == "number" && h >= 0); + var E; + b ? (E = (b - (b % 26)) / 26) : (E = 0); + var f = h % 26, + u = Math.min((h - f) / 26, this.length), + v = 67108863 ^ ((67108863 >>> f) << f), + R = T; + if (((E -= u), (E = Math.max(0, E)), R)) { + for (var A = 0; A < u; A++) R.words[A] = this.words[A]; + R.length = u; + } + if (u !== 0) + if (this.length > u) + for (this.length -= u, A = 0; A < this.length; A++) + this.words[A] = this.words[A + u]; + else (this.words[0] = 0), (this.length = 1); + var L = 0; + for (A = this.length - 1; A >= 0 && (L !== 0 || A >= E); A--) { + var G = this.words[A] | 0; + (this.words[A] = (L << (26 - f)) | (G >>> f)), (L = G & v); + } + return ( + R && L !== 0 && (R.words[R.length++] = L), + this.length === 0 && ((this.words[0] = 0), (this.length = 1)), + this._strip() + ); + }), + (a.prototype.ishrn = function (h, b, T) { + return t(this.negative === 0), this.iushrn(h, b, T); + }), + (a.prototype.shln = function (h) { + return this.clone().ishln(h); + }), + (a.prototype.ushln = function (h) { + return this.clone().iushln(h); + }), + (a.prototype.shrn = function (h) { + return this.clone().ishrn(h); + }), + (a.prototype.ushrn = function (h) { + return this.clone().iushrn(h); + }), + (a.prototype.testn = function (h) { + t(typeof h == "number" && h >= 0); + var b = h % 26, + T = (h - b) / 26, + E = 1 << b; + if (this.length <= T) return !1; + var f = this.words[T]; + return !!(f & E); + }), + (a.prototype.imaskn = function (h) { + t(typeof h == "number" && h >= 0); + var b = h % 26, + T = (h - b) / 26; + if ( + (t(this.negative === 0, "imaskn works only with positive numbers"), + this.length <= T) + ) + return this; + if ( + (b !== 0 && T++, (this.length = Math.min(T, this.length)), b !== 0) + ) { + var E = 67108863 ^ ((67108863 >>> b) << b); + this.words[this.length - 1] &= E; + } + return this._strip(); + }), + (a.prototype.maskn = function (h) { + return this.clone().imaskn(h); + }), + (a.prototype.iaddn = function (h) { + return ( + t(typeof h == "number"), + t(h < 67108864), + h < 0 + ? this.isubn(-h) + : this.negative !== 0 + ? this.length === 1 && (this.words[0] | 0) <= h + ? ((this.words[0] = h - (this.words[0] | 0)), + (this.negative = 0), + this) + : ((this.negative = 0), + this.isubn(h), + (this.negative = 1), + this) + : this._iaddn(h) + ); + }), + (a.prototype._iaddn = function (h) { + this.words[0] += h; + for (var b = 0; b < this.length && this.words[b] >= 67108864; b++) + (this.words[b] -= 67108864), + b === this.length - 1 + ? (this.words[b + 1] = 1) + : this.words[b + 1]++; + return (this.length = Math.max(this.length, b + 1)), this; + }), + (a.prototype.isubn = function (h) { + if ((t(typeof h == "number"), t(h < 67108864), h < 0)) + return this.iaddn(-h); + if (this.negative !== 0) + return ( + (this.negative = 0), this.iaddn(h), (this.negative = 1), this + ); + if (((this.words[0] -= h), this.length === 1 && this.words[0] < 0)) + (this.words[0] = -this.words[0]), (this.negative = 1); + else + for (var b = 0; b < this.length && this.words[b] < 0; b++) + (this.words[b] += 67108864), (this.words[b + 1] -= 1); + return this._strip(); + }), + (a.prototype.addn = function (h) { + return this.clone().iaddn(h); + }), + (a.prototype.subn = function (h) { + return this.clone().isubn(h); + }), + (a.prototype.iabs = function () { + return (this.negative = 0), this; + }), + (a.prototype.abs = function () { + return this.clone().iabs(); + }), + (a.prototype._ishlnsubmul = function (h, b, T) { + var E = h.length + T, + f; + this._expand(E); + var u, + v = 0; + for (f = 0; f < h.length; f++) { + u = (this.words[f + T] | 0) + v; + var R = (h.words[f] | 0) * b; + (u -= R & 67108863), + (v = (u >> 26) - ((R / 67108864) | 0)), + (this.words[f + T] = u & 67108863); + } + for (; f < this.length - T; f++) + (u = (this.words[f + T] | 0) + v), + (v = u >> 26), + (this.words[f + T] = u & 67108863); + if (v === 0) return this._strip(); + for (t(v === -1), v = 0, f = 0; f < this.length; f++) + (u = -(this.words[f] | 0) + v), + (v = u >> 26), + (this.words[f] = u & 67108863); + return (this.negative = 1), this._strip(); + }), + (a.prototype._wordDiv = function (h, b) { + var T = this.length - h.length, + E = this.clone(), + f = h, + u = f.words[f.length - 1] | 0, + v = this._countBits(u); + (T = 26 - v), + T !== 0 && + ((f = f.ushln(T)), E.iushln(T), (u = f.words[f.length - 1] | 0)); + var R = E.length - f.length, + A; + if (b !== "mod") { + (A = new a(null)), + (A.length = R + 1), + (A.words = new Array(A.length)); + for (var L = 0; L < A.length; L++) A.words[L] = 0; + } + var G = E.clone()._ishlnsubmul(f, 1, R); + G.negative === 0 && ((E = G), A && (A.words[R] = 1)); + for (var U = R - 1; U >= 0; U--) { + var Z = + (E.words[f.length + U] | 0) * 67108864 + + (E.words[f.length + U - 1] | 0); + for ( + Z = Math.min((Z / u) | 0, 67108863), E._ishlnsubmul(f, Z, U); + E.negative !== 0; + + ) + Z--, + (E.negative = 0), + E._ishlnsubmul(f, 1, U), + E.isZero() || (E.negative ^= 1); + A && (A.words[U] = Z); + } + return ( + A && A._strip(), + E._strip(), + b !== "div" && T !== 0 && E.iushrn(T), + { div: A || null, mod: E } + ); + }), + (a.prototype.divmod = function (h, b, T) { + if ((t(!h.isZero()), this.isZero())) + return { div: new a(0), mod: new a(0) }; + var E, f, u; + return this.negative !== 0 && h.negative === 0 + ? ((u = this.neg().divmod(h, b)), + b !== "mod" && (E = u.div.neg()), + b !== "div" && + ((f = u.mod.neg()), T && f.negative !== 0 && f.iadd(h)), + { div: E, mod: f }) + : this.negative === 0 && h.negative !== 0 + ? ((u = this.divmod(h.neg(), b)), + b !== "mod" && (E = u.div.neg()), + { div: E, mod: u.mod }) + : (this.negative & h.negative) !== 0 + ? ((u = this.neg().divmod(h.neg(), b)), + b !== "div" && + ((f = u.mod.neg()), T && f.negative !== 0 && f.isub(h)), + { div: u.div, mod: f }) + : h.length > this.length || this.cmp(h) < 0 + ? { div: new a(0), mod: this } + : h.length === 1 + ? b === "div" + ? { div: this.divn(h.words[0]), mod: null } + : b === "mod" + ? { div: null, mod: new a(this.modrn(h.words[0])) } + : { + div: this.divn(h.words[0]), + mod: new a(this.modrn(h.words[0])), + } + : this._wordDiv(h, b); + }), + (a.prototype.div = function (h) { + return this.divmod(h, "div", !1).div; + }), + (a.prototype.mod = function (h) { + return this.divmod(h, "mod", !1).mod; + }), + (a.prototype.umod = function (h) { + return this.divmod(h, "mod", !0).mod; + }), + (a.prototype.divRound = function (h) { + var b = this.divmod(h); + if (b.mod.isZero()) return b.div; + var T = b.div.negative !== 0 ? b.mod.isub(h) : b.mod, + E = h.ushrn(1), + f = h.andln(1), + u = T.cmp(E); + return u < 0 || (f === 1 && u === 0) + ? b.div + : b.div.negative !== 0 + ? b.div.isubn(1) + : b.div.iaddn(1); + }), + (a.prototype.modrn = function (h) { + var b = h < 0; + b && (h = -h), t(h <= 67108863); + for (var T = (1 << 26) % h, E = 0, f = this.length - 1; f >= 0; f--) + E = (T * E + (this.words[f] | 0)) % h; + return b ? -E : E; + }), + (a.prototype.modn = function (h) { + return this.modrn(h); + }), + (a.prototype.idivn = function (h) { + var b = h < 0; + b && (h = -h), t(h <= 67108863); + for (var T = 0, E = this.length - 1; E >= 0; E--) { + var f = (this.words[E] | 0) + T * 67108864; + (this.words[E] = (f / h) | 0), (T = f % h); + } + return this._strip(), b ? this.ineg() : this; + }), + (a.prototype.divn = function (h) { + return this.clone().idivn(h); + }), + (a.prototype.egcd = function (h) { + t(h.negative === 0), t(!h.isZero()); + var b = this, + T = h.clone(); + b.negative !== 0 ? (b = b.umod(h)) : (b = b.clone()); + for ( + var E = new a(1), f = new a(0), u = new a(0), v = new a(1), R = 0; + b.isEven() && T.isEven(); + + ) + b.iushrn(1), T.iushrn(1), ++R; + for (var A = T.clone(), L = b.clone(); !b.isZero(); ) { + for ( + var G = 0, U = 1; + (b.words[0] & U) === 0 && G < 26; + ++G, U <<= 1 + ); + if (G > 0) + for (b.iushrn(G); G-- > 0; ) + (E.isOdd() || f.isOdd()) && (E.iadd(A), f.isub(L)), + E.iushrn(1), + f.iushrn(1); + for ( + var Z = 0, de = 1; + (T.words[0] & de) === 0 && Z < 26; + ++Z, de <<= 1 + ); + if (Z > 0) + for (T.iushrn(Z); Z-- > 0; ) + (u.isOdd() || v.isOdd()) && (u.iadd(A), v.isub(L)), + u.iushrn(1), + v.iushrn(1); + b.cmp(T) >= 0 + ? (b.isub(T), E.isub(u), f.isub(v)) + : (T.isub(b), u.isub(E), v.isub(f)); + } + return { a: u, b: v, gcd: T.iushln(R) }; + }), + (a.prototype._invmp = function (h) { + t(h.negative === 0), t(!h.isZero()); + var b = this, + T = h.clone(); + b.negative !== 0 ? (b = b.umod(h)) : (b = b.clone()); + for ( + var E = new a(1), f = new a(0), u = T.clone(); + b.cmpn(1) > 0 && T.cmpn(1) > 0; + + ) { + for ( + var v = 0, R = 1; + (b.words[0] & R) === 0 && v < 26; + ++v, R <<= 1 + ); + if (v > 0) + for (b.iushrn(v); v-- > 0; ) E.isOdd() && E.iadd(u), E.iushrn(1); + for ( + var A = 0, L = 1; + (T.words[0] & L) === 0 && A < 26; + ++A, L <<= 1 + ); + if (A > 0) + for (T.iushrn(A); A-- > 0; ) f.isOdd() && f.iadd(u), f.iushrn(1); + b.cmp(T) >= 0 ? (b.isub(T), E.isub(f)) : (T.isub(b), f.isub(E)); + } + var G; + return ( + b.cmpn(1) === 0 ? (G = E) : (G = f), G.cmpn(0) < 0 && G.iadd(h), G + ); + }), + (a.prototype.gcd = function (h) { + if (this.isZero()) return h.abs(); + if (h.isZero()) return this.abs(); + var b = this.clone(), + T = h.clone(); + (b.negative = 0), (T.negative = 0); + for (var E = 0; b.isEven() && T.isEven(); E++) + b.iushrn(1), T.iushrn(1); + do { + for (; b.isEven(); ) b.iushrn(1); + for (; T.isEven(); ) T.iushrn(1); + var f = b.cmp(T); + if (f < 0) { + var u = b; + (b = T), (T = u); + } else if (f === 0 || T.cmpn(1) === 0) break; + b.isub(T); + } while (!0); + return T.iushln(E); + }), + (a.prototype.invm = function (h) { + return this.egcd(h).a.umod(h); + }), + (a.prototype.isEven = function () { + return (this.words[0] & 1) === 0; + }), + (a.prototype.isOdd = function () { + return (this.words[0] & 1) === 1; + }), + (a.prototype.andln = function (h) { + return this.words[0] & h; + }), + (a.prototype.bincn = function (h) { + t(typeof h == "number"); + var b = h % 26, + T = (h - b) / 26, + E = 1 << b; + if (this.length <= T) + return this._expand(T + 1), (this.words[T] |= E), this; + for (var f = E, u = T; f !== 0 && u < this.length; u++) { + var v = this.words[u] | 0; + (v += f), (f = v >>> 26), (v &= 67108863), (this.words[u] = v); + } + return f !== 0 && ((this.words[u] = f), this.length++), this; + }), + (a.prototype.isZero = function () { + return this.length === 1 && this.words[0] === 0; + }), + (a.prototype.cmpn = function (h) { + var b = h < 0; + if (this.negative !== 0 && !b) return -1; + if (this.negative === 0 && b) return 1; + this._strip(); + var T; + if (this.length > 1) T = 1; + else { + b && (h = -h), t(h <= 67108863, "Number is too big"); + var E = this.words[0] | 0; + T = E === h ? 0 : E < h ? -1 : 1; + } + return this.negative !== 0 ? -T | 0 : T; + }), + (a.prototype.cmp = function (h) { + if (this.negative !== 0 && h.negative === 0) return -1; + if (this.negative === 0 && h.negative !== 0) return 1; + var b = this.ucmp(h); + return this.negative !== 0 ? -b | 0 : b; + }), + (a.prototype.ucmp = function (h) { + if (this.length > h.length) return 1; + if (this.length < h.length) return -1; + for (var b = 0, T = this.length - 1; T >= 0; T--) { + var E = this.words[T] | 0, + f = h.words[T] | 0; + if (E !== f) { + E < f ? (b = -1) : E > f && (b = 1); + break; + } + } + return b; + }), + (a.prototype.gtn = function (h) { + return this.cmpn(h) === 1; + }), + (a.prototype.gt = function (h) { + return this.cmp(h) === 1; + }), + (a.prototype.gten = function (h) { + return this.cmpn(h) >= 0; + }), + (a.prototype.gte = function (h) { + return this.cmp(h) >= 0; + }), + (a.prototype.ltn = function (h) { + return this.cmpn(h) === -1; + }), + (a.prototype.lt = function (h) { + return this.cmp(h) === -1; + }), + (a.prototype.lten = function (h) { + return this.cmpn(h) <= 0; + }), + (a.prototype.lte = function (h) { + return this.cmp(h) <= 0; + }), + (a.prototype.eqn = function (h) { + return this.cmpn(h) === 0; + }), + (a.prototype.eq = function (h) { + return this.cmp(h) === 0; + }), + (a.red = function (h) { + return new o(h); + }), + (a.prototype.toRed = function (h) { + return ( + t(!this.red, "Already a number in reduction context"), + t(this.negative === 0, "red works only with positives"), + h.convertTo(this)._forceRed(h) + ); + }), + (a.prototype.fromRed = function () { + return ( + t(this.red, "fromRed works only with numbers in reduction context"), + this.red.convertFrom(this) + ); + }), + (a.prototype._forceRed = function (h) { + return (this.red = h), this; + }), + (a.prototype.forceRed = function (h) { + return ( + t(!this.red, "Already a number in reduction context"), + this._forceRed(h) + ); + }), + (a.prototype.redAdd = function (h) { + return ( + t(this.red, "redAdd works only with red numbers"), + this.red.add(this, h) + ); + }), + (a.prototype.redIAdd = function (h) { + return ( + t(this.red, "redIAdd works only with red numbers"), + this.red.iadd(this, h) + ); + }), + (a.prototype.redSub = function (h) { + return ( + t(this.red, "redSub works only with red numbers"), + this.red.sub(this, h) + ); + }), + (a.prototype.redISub = function (h) { + return ( + t(this.red, "redISub works only with red numbers"), + this.red.isub(this, h) + ); + }), + (a.prototype.redShl = function (h) { + return ( + t(this.red, "redShl works only with red numbers"), + this.red.shl(this, h) + ); + }), + (a.prototype.redMul = function (h) { + return ( + t(this.red, "redMul works only with red numbers"), + this.red._verify2(this, h), + this.red.mul(this, h) + ); + }), + (a.prototype.redIMul = function (h) { + return ( + t(this.red, "redMul works only with red numbers"), + this.red._verify2(this, h), + this.red.imul(this, h) + ); + }), + (a.prototype.redSqr = function () { + return ( + t(this.red, "redSqr works only with red numbers"), + this.red._verify1(this), + this.red.sqr(this) + ); + }), + (a.prototype.redISqr = function () { + return ( + t(this.red, "redISqr works only with red numbers"), + this.red._verify1(this), + this.red.isqr(this) + ); + }), + (a.prototype.redSqrt = function () { + return ( + t(this.red, "redSqrt works only with red numbers"), + this.red._verify1(this), + this.red.sqrt(this) + ); + }), + (a.prototype.redInvm = function () { + return ( + t(this.red, "redInvm works only with red numbers"), + this.red._verify1(this), + this.red.invm(this) + ); + }), + (a.prototype.redNeg = function () { + return ( + t(this.red, "redNeg works only with red numbers"), + this.red._verify1(this), + this.red.neg(this) + ); + }), + (a.prototype.redPow = function (h) { + return ( + t(this.red && !h.red, "redPow(normalNum)"), + this.red._verify1(this), + this.red.pow(this, h) + ); + }); + var te = { k256: null, p224: null, p192: null, p25519: null }; + function $(y, h) { + (this.name = y), + (this.p = new a(h, 16)), + (this.n = this.p.bitLength()), + (this.k = new a(1).iushln(this.n).isub(this.p)), + (this.tmp = this._tmp()); + } + ($.prototype._tmp = function () { + var h = new a(null); + return (h.words = new Array(Math.ceil(this.n / 13))), h; + }), + ($.prototype.ireduce = function (h) { + var b = h, + T; + do + this.split(b, this.tmp), + (b = this.imulK(b)), + (b = b.iadd(this.tmp)), + (T = b.bitLength()); + while (T > this.n); + var E = T < this.n ? -1 : b.ucmp(this.p); + return ( + E === 0 + ? ((b.words[0] = 0), (b.length = 1)) + : E > 0 + ? b.isub(this.p) + : b.strip !== void 0 + ? b.strip() + : b._strip(), + b + ); + }), + ($.prototype.split = function (h, b) { + h.iushrn(this.n, 0, b); + }), + ($.prototype.imulK = function (h) { + return h.imul(this.k); + }); + function ae() { + $.call( + this, + "k256", + "ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f" + ); + } + n(ae, $), + (ae.prototype.split = function (h, b) { + for (var T = 4194303, E = Math.min(h.length, 9), f = 0; f < E; f++) + b.words[f] = h.words[f]; + if (((b.length = E), h.length <= 9)) { + (h.words[0] = 0), (h.length = 1); + return; + } + var u = h.words[9]; + for (b.words[b.length++] = u & T, f = 10; f < h.length; f++) { + var v = h.words[f] | 0; + (h.words[f - 10] = ((v & T) << 4) | (u >>> 22)), (u = v); + } + (u >>>= 22), + (h.words[f - 10] = u), + u === 0 && h.length > 10 ? (h.length -= 10) : (h.length -= 9); + }), + (ae.prototype.imulK = function (h) { + (h.words[h.length] = 0), (h.words[h.length + 1] = 0), (h.length += 2); + for (var b = 0, T = 0; T < h.length; T++) { + var E = h.words[T] | 0; + (b += E * 977), + (h.words[T] = b & 67108863), + (b = E * 64 + ((b / 67108864) | 0)); + } + return ( + h.words[h.length - 1] === 0 && + (h.length--, h.words[h.length - 1] === 0 && h.length--), + h + ); + }); + function Y() { + $.call( + this, + "p224", + "ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001" + ); + } + n(Y, $); + function K() { + $.call( + this, + "p192", + "ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff" + ); + } + n(K, $); + function g() { + $.call( + this, + "25519", + "7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed" + ); + } + n(g, $), + (g.prototype.imulK = function (h) { + for (var b = 0, T = 0; T < h.length; T++) { + var E = (h.words[T] | 0) * 19 + b, + f = E & 67108863; + (E >>>= 26), (h.words[T] = f), (b = E); + } + return b !== 0 && (h.words[h.length++] = b), h; + }), + (a._prime = function (h) { + if (te[h]) return te[h]; + var b; + if (h === "k256") b = new ae(); + else if (h === "p224") b = new Y(); + else if (h === "p192") b = new K(); + else if (h === "p25519") b = new g(); + else throw new Error("Unknown prime " + h); + return (te[h] = b), b; + }); + function o(y) { + if (typeof y == "string") { + var h = a._prime(y); + (this.m = h.p), (this.prime = h); + } else + t(y.gtn(1), "modulus must be greater than 1"), + (this.m = y), + (this.prime = null); + } + (o.prototype._verify1 = function (h) { + t(h.negative === 0, "red works only with positives"), + t(h.red, "red works only with red numbers"); + }), + (o.prototype._verify2 = function (h, b) { + t((h.negative | b.negative) === 0, "red works only with positives"), + t(h.red && h.red === b.red, "red works only with red numbers"); + }), + (o.prototype.imod = function (h) { + return this.prime + ? this.prime.ireduce(h)._forceRed(this) + : (d(h, h.umod(this.m)._forceRed(this)), h); + }), + (o.prototype.neg = function (h) { + return h.isZero() ? h.clone() : this.m.sub(h)._forceRed(this); + }), + (o.prototype.add = function (h, b) { + this._verify2(h, b); + var T = h.add(b); + return T.cmp(this.m) >= 0 && T.isub(this.m), T._forceRed(this); + }), + (o.prototype.iadd = function (h, b) { + this._verify2(h, b); + var T = h.iadd(b); + return T.cmp(this.m) >= 0 && T.isub(this.m), T; + }), + (o.prototype.sub = function (h, b) { + this._verify2(h, b); + var T = h.sub(b); + return T.cmpn(0) < 0 && T.iadd(this.m), T._forceRed(this); + }), + (o.prototype.isub = function (h, b) { + this._verify2(h, b); + var T = h.isub(b); + return T.cmpn(0) < 0 && T.iadd(this.m), T; + }), + (o.prototype.shl = function (h, b) { + return this._verify1(h), this.imod(h.ushln(b)); + }), + (o.prototype.imul = function (h, b) { + return this._verify2(h, b), this.imod(h.imul(b)); + }), + (o.prototype.mul = function (h, b) { + return this._verify2(h, b), this.imod(h.mul(b)); + }), + (o.prototype.isqr = function (h) { + return this.imul(h, h.clone()); + }), + (o.prototype.sqr = function (h) { + return this.mul(h, h); + }), + (o.prototype.sqrt = function (h) { + if (h.isZero()) return h.clone(); + var b = this.m.andln(3); + if ((t(b % 2 === 1), b === 3)) { + var T = this.m.add(new a(1)).iushrn(2); + return this.pow(h, T); + } + for (var E = this.m.subn(1), f = 0; !E.isZero() && E.andln(1) === 0; ) + f++, E.iushrn(1); + t(!E.isZero()); + var u = new a(1).toRed(this), + v = u.redNeg(), + R = this.m.subn(1).iushrn(1), + A = this.m.bitLength(); + for (A = new a(2 * A * A).toRed(this); this.pow(A, R).cmp(v) !== 0; ) + A.redIAdd(v); + for ( + var L = this.pow(A, E), + G = this.pow(h, E.addn(1).iushrn(1)), + U = this.pow(h, E), + Z = f; + U.cmp(u) !== 0; + + ) { + for (var de = U, ne = 0; de.cmp(u) !== 0; ne++) de = de.redSqr(); + t(ne < Z); + var pe = this.pow(L, new a(1).iushln(Z - ne - 1)); + (G = G.redMul(pe)), (L = pe.redSqr()), (U = U.redMul(L)), (Z = ne); + } + return G; + }), + (o.prototype.invm = function (h) { + var b = h._invmp(this.m); + return b.negative !== 0 + ? ((b.negative = 0), this.imod(b).redNeg()) + : this.imod(b); + }), + (o.prototype.pow = function (h, b) { + if (b.isZero()) return new a(1).toRed(this); + if (b.cmpn(1) === 0) return h.clone(); + var T = 4, + E = new Array(1 << T); + (E[0] = new a(1).toRed(this)), (E[1] = h); + for (var f = 2; f < E.length; f++) E[f] = this.mul(E[f - 1], h); + var u = E[0], + v = 0, + R = 0, + A = b.bitLength() % 26; + for (A === 0 && (A = 26), f = b.length - 1; f >= 0; f--) { + for (var L = b.words[f], G = A - 1; G >= 0; G--) { + var U = (L >> G) & 1; + if ((u !== E[0] && (u = this.sqr(u)), U === 0 && v === 0)) { + R = 0; + continue; + } + (v <<= 1), + (v |= U), + R++, + !(R !== T && (f !== 0 || G !== 0)) && + ((u = this.mul(u, E[v])), (R = 0), (v = 0)); + } + A = 26; + } + return u; + }), + (o.prototype.convertTo = function (h) { + var b = h.umod(this.m); + return b === h ? b.clone() : b; + }), + (o.prototype.convertFrom = function (h) { + var b = h.clone(); + return (b.red = null), b; + }), + (a.mont = function (h) { + return new p(h); + }); + function p(y) { + o.call(this, y), + (this.shift = this.m.bitLength()), + this.shift % 26 !== 0 && (this.shift += 26 - (this.shift % 26)), + (this.r = new a(1).iushln(this.shift)), + (this.r2 = this.imod(this.r.sqr())), + (this.rinv = this.r._invmp(this.m)), + (this.minv = this.rinv.mul(this.r).isubn(1).div(this.m)), + (this.minv = this.minv.umod(this.r)), + (this.minv = this.r.sub(this.minv)); + } + n(p, o), + (p.prototype.convertTo = function (h) { + return this.imod(h.ushln(this.shift)); + }), + (p.prototype.convertFrom = function (h) { + var b = this.imod(h.mul(this.rinv)); + return (b.red = null), b; + }), + (p.prototype.imul = function (h, b) { + if (h.isZero() || b.isZero()) + return (h.words[0] = 0), (h.length = 1), h; + var T = h.imul(b), + E = T.maskn(this.shift) + .mul(this.minv) + .imaskn(this.shift) + .mul(this.m), + f = T.isub(E).iushrn(this.shift), + u = f; + return ( + f.cmp(this.m) >= 0 + ? (u = f.isub(this.m)) + : f.cmpn(0) < 0 && (u = f.iadd(this.m)), + u._forceRed(this) + ); + }), + (p.prototype.mul = function (h, b) { + if (h.isZero() || b.isZero()) return new a(0)._forceRed(this); + var T = h.mul(b), + E = T.maskn(this.shift) + .mul(this.minv) + .imaskn(this.shift) + .mul(this.m), + f = T.isub(E).iushrn(this.shift), + u = f; + return ( + f.cmp(this.m) >= 0 + ? (u = f.isub(this.m)) + : f.cmpn(0) < 0 && (u = f.iadd(this.m)), + u._forceRed(this) + ); + }), + (p.prototype.invm = function (h) { + var b = this.imod(h._invmp(this.m).mul(this.r2)); + return b._forceRed(this); + }); + })(typeof RL > "u" || RL, Une); + }); + var Hne = N((E8) => { + "use strict"; + _(); + x(); + Object.defineProperty(E8, "__esModule", { value: !0 }); + E8.version = void 0; + E8.version = "logger/5.7.0"; + }); + var ir = N((xp) => { + "use strict"; + _(); + x(); + Object.defineProperty(xp, "__esModule", { value: !0 }); + xp.Logger = xp.ErrorCode = xp.LogLevel = void 0; + var zne = !1, + jne = !1, + C8 = { debug: 1, default: 2, info: 2, warning: 3, error: 4, off: 5 }, + Kne = C8.default, + spt = Hne(), + BL = null; + function opt() { + try { + var r = []; + if ( + (["NFD", "NFC", "NFKD", "NFKC"].forEach(function (e) { + try { + if ("test".normalize(e) !== "test") + throw new Error("bad normalize"); + } catch { + r.push(e); + } + }), + r.length) + ) + throw new Error("missing " + r.join(", ")); + if ( + String.fromCharCode(233).normalize("NFD") !== + String.fromCharCode(101, 769) + ) + throw new Error("broken implementation"); + } catch (e) { + return e.message; + } + return null; + } + var Vne = opt(), + Yne; + (function (r) { + (r.DEBUG = "DEBUG"), + (r.INFO = "INFO"), + (r.WARNING = "WARNING"), + (r.ERROR = "ERROR"), + (r.OFF = "OFF"); + })((Yne = xp.LogLevel || (xp.LogLevel = {}))); + var _p; + (function (r) { + (r.UNKNOWN_ERROR = "UNKNOWN_ERROR"), + (r.NOT_IMPLEMENTED = "NOT_IMPLEMENTED"), + (r.UNSUPPORTED_OPERATION = "UNSUPPORTED_OPERATION"), + (r.NETWORK_ERROR = "NETWORK_ERROR"), + (r.SERVER_ERROR = "SERVER_ERROR"), + (r.TIMEOUT = "TIMEOUT"), + (r.BUFFER_OVERRUN = "BUFFER_OVERRUN"), + (r.NUMERIC_FAULT = "NUMERIC_FAULT"), + (r.MISSING_NEW = "MISSING_NEW"), + (r.INVALID_ARGUMENT = "INVALID_ARGUMENT"), + (r.MISSING_ARGUMENT = "MISSING_ARGUMENT"), + (r.UNEXPECTED_ARGUMENT = "UNEXPECTED_ARGUMENT"), + (r.CALL_EXCEPTION = "CALL_EXCEPTION"), + (r.INSUFFICIENT_FUNDS = "INSUFFICIENT_FUNDS"), + (r.NONCE_EXPIRED = "NONCE_EXPIRED"), + (r.REPLACEMENT_UNDERPRICED = "REPLACEMENT_UNDERPRICED"), + (r.UNPREDICTABLE_GAS_LIMIT = "UNPREDICTABLE_GAS_LIMIT"), + (r.TRANSACTION_REPLACED = "TRANSACTION_REPLACED"), + (r.ACTION_REJECTED = "ACTION_REJECTED"); + })((_p = xp.ErrorCode || (xp.ErrorCode = {}))); + var Gne = "0123456789abcdef", + cpt = (function () { + function r(e) { + Object.defineProperty(this, "version", { + enumerable: !0, + value: e, + writable: !1, + }); + } + return ( + (r.prototype._log = function (e, t) { + var n = e.toLowerCase(); + C8[n] == null && + this.throwArgumentError("invalid log level name", "logLevel", e), + !(Kne > C8[n]) && console.log.apply(console, t); + }), + (r.prototype.debug = function () { + for (var e = [], t = 0; t < arguments.length; t++) + e[t] = arguments[t]; + this._log(r.levels.DEBUG, e); + }), + (r.prototype.info = function () { + for (var e = [], t = 0; t < arguments.length; t++) + e[t] = arguments[t]; + this._log(r.levels.INFO, e); + }), + (r.prototype.warn = function () { + for (var e = [], t = 0; t < arguments.length; t++) + e[t] = arguments[t]; + this._log(r.levels.WARNING, e); + }), + (r.prototype.makeError = function (e, t, n) { + if (jne) return this.makeError("censored error", t, {}); + t || (t = r.errors.UNKNOWN_ERROR), n || (n = {}); + var a = []; + Object.keys(n).forEach(function (d) { + var m = n[d]; + try { + if (m instanceof Uint8Array) { + for (var w = "", C = 0; C < m.length; C++) + (w += Gne[m[C] >> 4]), (w += Gne[m[C] & 15]); + a.push(d + "=Uint8Array(0x" + w + ")"); + } else a.push(d + "=" + JSON.stringify(m)); + } catch { + a.push(d + "=" + JSON.stringify(n[d].toString())); + } + }), + a.push("code=" + t), + a.push("version=" + this.version); + var i = e, + s = ""; + switch (t) { + case _p.NUMERIC_FAULT: { + s = "NUMERIC_FAULT"; + var c = e; + switch (c) { + case "overflow": + case "underflow": + case "division-by-zero": + s += "-" + c; + break; + case "negative-power": + case "negative-width": + s += "-unsupported"; + break; + case "unbound-bitwise-result": + s += "-unbound-result"; + break; + } + break; + } + case _p.CALL_EXCEPTION: + case _p.INSUFFICIENT_FUNDS: + case _p.MISSING_NEW: + case _p.NONCE_EXPIRED: + case _p.REPLACEMENT_UNDERPRICED: + case _p.TRANSACTION_REPLACED: + case _p.UNPREDICTABLE_GAS_LIMIT: + s = t; + break; + } + s && + (e += " [ See: https://links.ethers.org/v5-errors-" + s + " ]"), + a.length && (e += " (" + a.join(", ") + ")"); + var l = new Error(e); + return ( + (l.reason = i), + (l.code = t), + Object.keys(n).forEach(function (d) { + l[d] = n[d]; + }), + l + ); + }), + (r.prototype.throwError = function (e, t, n) { + throw this.makeError(e, t, n); + }), + (r.prototype.throwArgumentError = function (e, t, n) { + return this.throwError(e, r.errors.INVALID_ARGUMENT, { + argument: t, + value: n, + }); + }), + (r.prototype.assert = function (e, t, n, a) { + e || this.throwError(t, n, a); + }), + (r.prototype.assertArgument = function (e, t, n, a) { + e || this.throwArgumentError(t, n, a); + }), + (r.prototype.checkNormalize = function (e) { + e == null && (e = "platform missing String.prototype.normalize"), + Vne && + this.throwError( + "platform missing String.prototype.normalize", + r.errors.UNSUPPORTED_OPERATION, + { operation: "String.prototype.normalize", form: Vne } + ); + }), + (r.prototype.checkSafeUint53 = function (e, t) { + typeof e == "number" && + (t == null && (t = "value not safe"), + (e < 0 || e >= 9007199254740991) && + this.throwError(t, r.errors.NUMERIC_FAULT, { + operation: "checkSafeInteger", + fault: "out-of-safe-range", + value: e, + }), + e % 1 && + this.throwError(t, r.errors.NUMERIC_FAULT, { + operation: "checkSafeInteger", + fault: "non-integer", + value: e, + })); + }), + (r.prototype.checkArgumentCount = function (e, t, n) { + n ? (n = ": " + n) : (n = ""), + e < t && + this.throwError( + "missing argument" + n, + r.errors.MISSING_ARGUMENT, + { count: e, expectedCount: t } + ), + e > t && + this.throwError( + "too many arguments" + n, + r.errors.UNEXPECTED_ARGUMENT, + { count: e, expectedCount: t } + ); + }), + (r.prototype.checkNew = function (e, t) { + (e === Object || e == null) && + this.throwError("missing new", r.errors.MISSING_NEW, { + name: t.name, + }); + }), + (r.prototype.checkAbstract = function (e, t) { + e === t + ? this.throwError( + "cannot instantiate abstract class " + + JSON.stringify(t.name) + + " directly; use a sub-class", + r.errors.UNSUPPORTED_OPERATION, + { name: e.name, operation: "new" } + ) + : (e === Object || e == null) && + this.throwError("missing new", r.errors.MISSING_NEW, { + name: t.name, + }); + }), + (r.globalLogger = function () { + return BL || (BL = new r(spt.version)), BL; + }), + (r.setCensorship = function (e, t) { + if ( + (!e && + t && + this.globalLogger().throwError( + "cannot permanently disable censorship", + r.errors.UNSUPPORTED_OPERATION, + { operation: "setCensorship" } + ), + zne) + ) { + if (!e) return; + this.globalLogger().throwError( + "error censorship permanent", + r.errors.UNSUPPORTED_OPERATION, + { operation: "setCensorship" } + ); + } + (jne = !!e), (zne = !!t); + }), + (r.setLogLevel = function (e) { + var t = C8[e.toLowerCase()]; + if (t == null) { + r.globalLogger().warn("invalid log level - " + e); + return; + } + Kne = t; + }), + (r.from = function (e) { + return new r(e); + }), + (r.errors = _p), + (r.levels = Yne), + r + ); + })(); + xp.Logger = cpt; + }); + var $ne = N((I8) => { + "use strict"; + _(); + x(); + Object.defineProperty(I8, "__esModule", { value: !0 }); + I8.version = void 0; + I8.version = "bytes/5.7.0"; + }); + var Dr = N((gn) => { + "use strict"; + _(); + x(); + Object.defineProperty(gn, "__esModule", { value: !0 }); + gn.joinSignature = + gn.splitSignature = + gn.hexZeroPad = + gn.hexStripZeros = + gn.hexValue = + gn.hexConcat = + gn.hexDataSlice = + gn.hexDataLength = + gn.hexlify = + gn.isHexString = + gn.zeroPad = + gn.stripZeros = + gn.concat = + gn.arrayify = + gn.isBytes = + gn.isBytesLike = + void 0; + var upt = ir(), + lpt = $ne(), + Ai = new upt.Logger(lpt.version); + function Zne(r) { + return !!r.toHexString; + } + function n1(r) { + return ( + r.slice || + (r.slice = function () { + var e = Array.prototype.slice.call(arguments); + return n1(new Uint8Array(Array.prototype.slice.apply(r, e))); + }), + r + ); + } + function Qne(r) { + return (bd(r) && !(r.length % 2)) || k8(r); + } + gn.isBytesLike = Qne; + function Jne(r) { + return typeof r == "number" && r == r && r % 1 === 0; + } + function k8(r) { + if (r == null) return !1; + if (r.constructor === Uint8Array) return !0; + if (typeof r == "string" || !Jne(r.length) || r.length < 0) return !1; + for (var e = 0; e < r.length; e++) { + var t = r[e]; + if (!Jne(t) || t < 0 || t >= 256) return !1; + } + return !0; + } + gn.isBytes = k8; + function fy(r, e) { + if ((e || (e = {}), typeof r == "number")) { + Ai.checkSafeUint53(r, "invalid arrayify value"); + for (var t = []; r; ) + t.unshift(r & 255), (r = parseInt(String(r / 256))); + return t.length === 0 && t.push(0), n1(new Uint8Array(t)); + } + if ( + (e.allowMissingPrefix && + typeof r == "string" && + r.substring(0, 2) !== "0x" && + (r = "0x" + r), + Zne(r) && (r = r.toHexString()), + bd(r)) + ) { + var n = r.substring(2); + n.length % 2 && + (e.hexPad === "left" + ? (n = "0" + n) + : e.hexPad === "right" + ? (n += "0") + : Ai.throwArgumentError("hex data is odd-length", "value", r)); + for (var t = [], a = 0; a < n.length; a += 2) + t.push(parseInt(n.substring(a, a + 2), 16)); + return n1(new Uint8Array(t)); + } + return k8(r) + ? n1(new Uint8Array(r)) + : Ai.throwArgumentError("invalid arrayify value", "value", r); + } + gn.arrayify = fy; + function Xne(r) { + var e = r.map(function (a) { + return fy(a); + }), + t = e.reduce(function (a, i) { + return a + i.length; + }, 0), + n = new Uint8Array(t); + return ( + e.reduce(function (a, i) { + return n.set(i, a), a + i.length; + }, 0), + n1(n) + ); + } + gn.concat = Xne; + function dpt(r) { + var e = fy(r); + if (e.length === 0) return e; + for (var t = 0; t < e.length && e[t] === 0; ) t++; + return t && (e = e.slice(t)), e; + } + gn.stripZeros = dpt; + function eae(r, e) { + (r = fy(r)), + r.length > e && + Ai.throwArgumentError("value out of range", "value", arguments[0]); + var t = new Uint8Array(e); + return t.set(r, e - r.length), n1(t); + } + gn.zeroPad = eae; + function bd(r, e) { + return !( + typeof r != "string" || + !r.match(/^0x[0-9A-Fa-f]*$/) || + (e && r.length !== 2 + 2 * e) + ); + } + gn.isHexString = bd; + var NL = "0123456789abcdef"; + function po(r, e) { + if ((e || (e = {}), typeof r == "number")) { + Ai.checkSafeUint53(r, "invalid hexlify value"); + for (var t = ""; r; ) (t = NL[r & 15] + t), (r = Math.floor(r / 16)); + return t.length ? (t.length % 2 && (t = "0" + t), "0x" + t) : "0x00"; + } + if (typeof r == "bigint") + return (r = r.toString(16)), r.length % 2 ? "0x0" + r : "0x" + r; + if ( + (e.allowMissingPrefix && + typeof r == "string" && + r.substring(0, 2) !== "0x" && + (r = "0x" + r), + Zne(r)) + ) + return r.toHexString(); + if (bd(r)) + return ( + r.length % 2 && + (e.hexPad === "left" + ? (r = "0x0" + r.substring(2)) + : e.hexPad === "right" + ? (r += "0") + : Ai.throwArgumentError("hex data is odd-length", "value", r)), + r.toLowerCase() + ); + if (k8(r)) { + for (var n = "0x", a = 0; a < r.length; a++) { + var i = r[a]; + n += NL[(i & 240) >> 4] + NL[i & 15]; + } + return n; + } + return Ai.throwArgumentError("invalid hexlify value", "value", r); + } + gn.hexlify = po; + function ppt(r) { + if (typeof r != "string") r = po(r); + else if (!bd(r) || r.length % 2) return null; + return (r.length - 2) / 2; + } + gn.hexDataLength = ppt; + function hpt(r, e, t) { + return ( + typeof r != "string" + ? (r = po(r)) + : (!bd(r) || r.length % 2) && + Ai.throwArgumentError("invalid hexData", "value", r), + (e = 2 + 2 * e), + t != null ? "0x" + r.substring(e, 2 + 2 * t) : "0x" + r.substring(e) + ); + } + gn.hexDataSlice = hpt; + function fpt(r) { + var e = "0x"; + return ( + r.forEach(function (t) { + e += po(t).substring(2); + }), + e + ); + } + gn.hexConcat = fpt; + function mpt(r) { + var e = tae(po(r, { hexPad: "left" })); + return e === "0x" ? "0x0" : e; + } + gn.hexValue = mpt; + function tae(r) { + typeof r != "string" && (r = po(r)), + bd(r) || Ai.throwArgumentError("invalid hex string", "value", r), + (r = r.substring(2)); + for (var e = 0; e < r.length && r[e] === "0"; ) e++; + return "0x" + r.substring(e); + } + gn.hexStripZeros = tae; + function A8(r, e) { + for ( + typeof r != "string" + ? (r = po(r)) + : bd(r) || Ai.throwArgumentError("invalid hex string", "value", r), + r.length > 2 * e + 2 && + Ai.throwArgumentError("value out of range", "value", arguments[1]); + r.length < 2 * e + 2; + + ) + r = "0x0" + r.substring(2); + return r; + } + gn.hexZeroPad = A8; + function rae(r) { + var e = { + r: "0x", + s: "0x", + _vs: "0x", + recoveryParam: 0, + v: 0, + yParityAndS: "0x", + compact: "0x", + }; + if (Qne(r)) { + var t = fy(r); + t.length === 64 + ? ((e.v = 27 + (t[32] >> 7)), + (t[32] &= 127), + (e.r = po(t.slice(0, 32))), + (e.s = po(t.slice(32, 64)))) + : t.length === 65 + ? ((e.r = po(t.slice(0, 32))), + (e.s = po(t.slice(32, 64))), + (e.v = t[64])) + : Ai.throwArgumentError("invalid signature string", "signature", r), + e.v < 27 && + (e.v === 0 || e.v === 1 + ? (e.v += 27) + : Ai.throwArgumentError( + "signature invalid v byte", + "signature", + r + )), + (e.recoveryParam = 1 - (e.v % 2)), + e.recoveryParam && (t[32] |= 128), + (e._vs = po(t.slice(32, 64))); + } else { + if ( + ((e.r = r.r), + (e.s = r.s), + (e.v = r.v), + (e.recoveryParam = r.recoveryParam), + (e._vs = r._vs), + e._vs != null) + ) { + var n = eae(fy(e._vs), 32); + e._vs = po(n); + var a = n[0] >= 128 ? 1 : 0; + e.recoveryParam == null + ? (e.recoveryParam = a) + : e.recoveryParam !== a && + Ai.throwArgumentError( + "signature recoveryParam mismatch _vs", + "signature", + r + ), + (n[0] &= 127); + var i = po(n); + e.s == null + ? (e.s = i) + : e.s !== i && + Ai.throwArgumentError("signature v mismatch _vs", "signature", r); + } + if (e.recoveryParam == null) + e.v == null + ? Ai.throwArgumentError( + "signature missing v and recoveryParam", + "signature", + r + ) + : e.v === 0 || e.v === 1 + ? (e.recoveryParam = e.v) + : (e.recoveryParam = 1 - (e.v % 2)); + else if (e.v == null) e.v = 27 + e.recoveryParam; + else { + var s = e.v === 0 || e.v === 1 ? e.v : 1 - (e.v % 2); + e.recoveryParam !== s && + Ai.throwArgumentError( + "signature recoveryParam mismatch v", + "signature", + r + ); + } + e.r == null || !bd(e.r) + ? Ai.throwArgumentError( + "signature missing or invalid r", + "signature", + r + ) + : (e.r = A8(e.r, 32)), + e.s == null || !bd(e.s) + ? Ai.throwArgumentError( + "signature missing or invalid s", + "signature", + r + ) + : (e.s = A8(e.s, 32)); + var c = fy(e.s); + c[0] >= 128 && + Ai.throwArgumentError("signature s out of range", "signature", r), + e.recoveryParam && (c[0] |= 128); + var l = po(c); + e._vs && + (bd(e._vs) || + Ai.throwArgumentError("signature invalid _vs", "signature", r), + (e._vs = A8(e._vs, 32))), + e._vs == null + ? (e._vs = l) + : e._vs !== l && + Ai.throwArgumentError( + "signature _vs mismatch v and s", + "signature", + r + ); + } + return ( + (e.yParityAndS = e._vs), + (e.compact = e.r + e.yParityAndS.substring(2)), + e + ); + } + gn.splitSignature = rae; + function ypt(r) { + return ( + (r = rae(r)), po(Xne([r.r, r.s, r.recoveryParam ? "0x1c" : "0x1b"])) + ); + } + gn.joinSignature = ypt; + }); + var OL = N((S8) => { + "use strict"; + _(); + x(); + Object.defineProperty(S8, "__esModule", { value: !0 }); + S8.version = void 0; + S8.version = "bignumber/5.7.0"; + }); + var P8 = N((cl) => { + "use strict"; + _(); + x(); + var gpt = + (cl && cl.__importDefault) || + function (r) { + return r && r.__esModule ? r : { default: r }; + }; + Object.defineProperty(cl, "__esModule", { value: !0 }); + cl._base16To36 = cl._base36To16 = cl.BigNumber = cl.isBigNumberish = void 0; + var bpt = gpt(Gr()), + kx = bpt.default.BN, + a1 = Dr(), + i1 = ir(), + vpt = OL(), + jh = new i1.Logger(vpt.version), + LL = {}, + nae = 9007199254740991; + function wpt(r) { + return ( + r != null && + (M8.isBigNumber(r) || + (typeof r == "number" && r % 1 === 0) || + (typeof r == "string" && !!r.match(/^-?[0-9]+$/)) || + (0, a1.isHexString)(r) || + typeof r == "bigint" || + (0, a1.isBytes)(r)) + ); + } + cl.isBigNumberish = wpt; + var aae = !1, + M8 = (function () { + function r(e, t) { + e !== LL && + jh.throwError( + "cannot call constructor directly; use BigNumber.from", + i1.Logger.errors.UNSUPPORTED_OPERATION, + { operation: "new (BigNumber)" } + ), + (this._hex = t), + (this._isBigNumber = !0), + Object.freeze(this); + } + return ( + (r.prototype.fromTwos = function (e) { + return $c(cn(this).fromTwos(e)); + }), + (r.prototype.toTwos = function (e) { + return $c(cn(this).toTwos(e)); + }), + (r.prototype.abs = function () { + return this._hex[0] === "-" ? r.from(this._hex.substring(1)) : this; + }), + (r.prototype.add = function (e) { + return $c(cn(this).add(cn(e))); + }), + (r.prototype.sub = function (e) { + return $c(cn(this).sub(cn(e))); + }), + (r.prototype.div = function (e) { + var t = r.from(e); + return ( + t.isZero() && ol("division-by-zero", "div"), + $c(cn(this).div(cn(e))) + ); + }), + (r.prototype.mul = function (e) { + return $c(cn(this).mul(cn(e))); + }), + (r.prototype.mod = function (e) { + var t = cn(e); + return ( + t.isNeg() && ol("division-by-zero", "mod"), $c(cn(this).umod(t)) + ); + }), + (r.prototype.pow = function (e) { + var t = cn(e); + return ( + t.isNeg() && ol("negative-power", "pow"), $c(cn(this).pow(t)) + ); + }), + (r.prototype.and = function (e) { + var t = cn(e); + return ( + (this.isNegative() || t.isNeg()) && + ol("unbound-bitwise-result", "and"), + $c(cn(this).and(t)) + ); + }), + (r.prototype.or = function (e) { + var t = cn(e); + return ( + (this.isNegative() || t.isNeg()) && + ol("unbound-bitwise-result", "or"), + $c(cn(this).or(t)) + ); + }), + (r.prototype.xor = function (e) { + var t = cn(e); + return ( + (this.isNegative() || t.isNeg()) && + ol("unbound-bitwise-result", "xor"), + $c(cn(this).xor(t)) + ); + }), + (r.prototype.mask = function (e) { + return ( + (this.isNegative() || e < 0) && ol("negative-width", "mask"), + $c(cn(this).maskn(e)) + ); + }), + (r.prototype.shl = function (e) { + return ( + (this.isNegative() || e < 0) && ol("negative-width", "shl"), + $c(cn(this).shln(e)) + ); + }), + (r.prototype.shr = function (e) { + return ( + (this.isNegative() || e < 0) && ol("negative-width", "shr"), + $c(cn(this).shrn(e)) + ); + }), + (r.prototype.eq = function (e) { + return cn(this).eq(cn(e)); + }), + (r.prototype.lt = function (e) { + return cn(this).lt(cn(e)); + }), + (r.prototype.lte = function (e) { + return cn(this).lte(cn(e)); + }), + (r.prototype.gt = function (e) { + return cn(this).gt(cn(e)); + }), + (r.prototype.gte = function (e) { + return cn(this).gte(cn(e)); + }), + (r.prototype.isNegative = function () { + return this._hex[0] === "-"; + }), + (r.prototype.isZero = function () { + return cn(this).isZero(); + }), + (r.prototype.toNumber = function () { + try { + return cn(this).toNumber(); + } catch { + ol("overflow", "toNumber", this.toString()); + } + return null; + }), + (r.prototype.toBigInt = function () { + try { + return BigInt(this.toString()); + } catch {} + return jh.throwError( + "this platform does not support BigInt", + i1.Logger.errors.UNSUPPORTED_OPERATION, + { value: this.toString() } + ); + }), + (r.prototype.toString = function () { + return ( + arguments.length > 0 && + (arguments[0] === 10 + ? aae || + ((aae = !0), + jh.warn( + "BigNumber.toString does not accept any parameters; base-10 is assumed" + )) + : arguments[0] === 16 + ? jh.throwError( + "BigNumber.toString does not accept any parameters; use bigNumber.toHexString()", + i1.Logger.errors.UNEXPECTED_ARGUMENT, + {} + ) + : jh.throwError( + "BigNumber.toString does not accept parameters", + i1.Logger.errors.UNEXPECTED_ARGUMENT, + {} + )), + cn(this).toString(10) + ); + }), + (r.prototype.toHexString = function () { + return this._hex; + }), + (r.prototype.toJSON = function (e) { + return { type: "BigNumber", hex: this.toHexString() }; + }), + (r.from = function (e) { + if (e instanceof r) return e; + if (typeof e == "string") + return e.match(/^-?0x[0-9a-f]+$/i) + ? new r(LL, Sx(e)) + : e.match(/^-?[0-9]+$/) + ? new r(LL, Sx(new kx(e))) + : jh.throwArgumentError("invalid BigNumber string", "value", e); + if (typeof e == "number") + return ( + e % 1 && ol("underflow", "BigNumber.from", e), + (e >= nae || e <= -nae) && ol("overflow", "BigNumber.from", e), + r.from(String(e)) + ); + var t = e; + if (typeof t == "bigint") return r.from(t.toString()); + if ((0, a1.isBytes)(t)) return r.from((0, a1.hexlify)(t)); + if (t) + if (t.toHexString) { + var n = t.toHexString(); + if (typeof n == "string") return r.from(n); + } else { + var n = t._hex; + if ( + (n == null && t.type === "BigNumber" && (n = t.hex), + typeof n == "string" && + ((0, a1.isHexString)(n) || + (n[0] === "-" && (0, a1.isHexString)(n.substring(1))))) + ) + return r.from(n); + } + return jh.throwArgumentError("invalid BigNumber value", "value", e); + }), + (r.isBigNumber = function (e) { + return !!(e && e._isBigNumber); + }), + r + ); + })(); + cl.BigNumber = M8; + function Sx(r) { + if (typeof r != "string") return Sx(r.toString(16)); + if (r[0] === "-") + return ( + (r = r.substring(1)), + r[0] === "-" && jh.throwArgumentError("invalid hex", "value", r), + (r = Sx(r)), + r === "0x00" ? r : "-" + r + ); + if ((r.substring(0, 2) !== "0x" && (r = "0x" + r), r === "0x")) + return "0x00"; + for ( + r.length % 2 && (r = "0x0" + r.substring(2)); + r.length > 4 && r.substring(0, 4) === "0x00"; + + ) + r = "0x" + r.substring(4); + return r; + } + function $c(r) { + return M8.from(Sx(r)); + } + function cn(r) { + var e = M8.from(r).toHexString(); + return e[0] === "-" + ? new kx("-" + e.substring(3), 16) + : new kx(e.substring(2), 16); + } + function ol(r, e, t) { + var n = { fault: r, operation: e }; + return ( + t != null && (n.value = t), + jh.throwError(r, i1.Logger.errors.NUMERIC_FAULT, n) + ); + } + function _pt(r) { + return new kx(r, 36).toString(16); + } + cl._base36To16 = _pt; + function xpt(r) { + return new kx(r, 16).toString(36); + } + cl._base16To36 = xpt; + }); + var uae = N((Ep) => { + "use strict"; + _(); + x(); + Object.defineProperty(Ep, "__esModule", { value: !0 }); + Ep.FixedNumber = Ep.FixedFormat = Ep.parseFixed = Ep.formatFixed = void 0; + var R8 = Dr(), + Rx = ir(), + Tpt = OL(), + _c = new Rx.Logger(Tpt.version), + Kh = P8(), + Mx = {}, + sae = Kh.BigNumber.from(0), + oae = Kh.BigNumber.from(-1); + function cae(r, e, t, n) { + var a = { fault: e, operation: t }; + return ( + n !== void 0 && (a.value = n), + _c.throwError(r, Rx.Logger.errors.NUMERIC_FAULT, a) + ); + } + var Px = "0"; + for (; Px.length < 256; ) Px += Px; + function DL(r) { + if (typeof r != "number") + try { + r = Kh.BigNumber.from(r).toNumber(); + } catch {} + return typeof r == "number" && r >= 0 && r <= 256 && !(r % 1) + ? "1" + Px.substring(0, r) + : _c.throwArgumentError("invalid decimal size", "decimals", r); + } + function B8(r, e) { + e == null && (e = 0); + var t = DL(e); + r = Kh.BigNumber.from(r); + var n = r.lt(sae); + n && (r = r.mul(oae)); + for (var a = r.mod(t).toString(); a.length < t.length - 1; ) a = "0" + a; + a = a.match(/^([0-9]*[1-9]|0)(0*)/)[1]; + var i = r.div(t).toString(); + return ( + t.length === 1 ? (r = i) : (r = i + "." + a), n && (r = "-" + r), r + ); + } + Ep.formatFixed = B8; + function Tp(r, e) { + e == null && (e = 0); + var t = DL(e); + (typeof r != "string" || !r.match(/^-?[0-9.]+$/)) && + _c.throwArgumentError("invalid decimal value", "value", r); + var n = r.substring(0, 1) === "-"; + n && (r = r.substring(1)), + r === "." && _c.throwArgumentError("missing value", "value", r); + var a = r.split("."); + a.length > 2 && + _c.throwArgumentError("too many decimal points", "value", r); + var i = a[0], + s = a[1]; + for (i || (i = "0"), s || (s = "0"); s[s.length - 1] === "0"; ) + s = s.substring(0, s.length - 1); + for ( + s.length > t.length - 1 && + cae( + "fractional component exceeds decimals", + "underflow", + "parseFixed" + ), + s === "" && (s = "0"); + s.length < t.length - 1; + + ) + s += "0"; + var c = Kh.BigNumber.from(i), + l = Kh.BigNumber.from(s), + d = c.mul(t).add(l); + return n && (d = d.mul(oae)), d; + } + Ep.parseFixed = Tp; + var N8 = (function () { + function r(e, t, n, a) { + e !== Mx && + _c.throwError( + "cannot use FixedFormat constructor; use FixedFormat.from", + Rx.Logger.errors.UNSUPPORTED_OPERATION, + { operation: "new FixedFormat" } + ), + (this.signed = t), + (this.width = n), + (this.decimals = a), + (this.name = (t ? "" : "u") + "fixed" + String(n) + "x" + String(a)), + (this._multiplier = DL(a)), + Object.freeze(this); + } + return ( + (r.from = function (e) { + if (e instanceof r) return e; + typeof e == "number" && (e = "fixed128x" + e); + var t = !0, + n = 128, + a = 18; + if (typeof e == "string") { + if (e !== "fixed") + if (e === "ufixed") t = !1; + else { + var i = e.match(/^(u?)fixed([0-9]+)x([0-9]+)$/); + i || _c.throwArgumentError("invalid fixed format", "format", e), + (t = i[1] !== "u"), + (n = parseInt(i[2])), + (a = parseInt(i[3])); + } + } else if (e) { + var s = function (c, l, d) { + return e[c] == null + ? d + : (typeof e[c] !== l && + _c.throwArgumentError( + "invalid fixed format (" + c + " not " + l + ")", + "format." + c, + e[c] + ), + e[c]); + }; + (t = s("signed", "boolean", t)), + (n = s("width", "number", n)), + (a = s("decimals", "number", a)); + } + return ( + n % 8 && + _c.throwArgumentError( + "invalid fixed format width (not byte aligned)", + "format.width", + n + ), + a > 80 && + _c.throwArgumentError( + "invalid fixed format (decimals too large)", + "format.decimals", + a + ), + new r(Mx, t, n, a) + ); + }), + r + ); + })(); + Ep.FixedFormat = N8; + var qL = (function () { + function r(e, t, n, a) { + e !== Mx && + _c.throwError( + "cannot use FixedNumber constructor; use FixedNumber.from", + Rx.Logger.errors.UNSUPPORTED_OPERATION, + { operation: "new FixedFormat" } + ), + (this.format = a), + (this._hex = t), + (this._value = n), + (this._isFixedNumber = !0), + Object.freeze(this); + } + return ( + (r.prototype._checkFormat = function (e) { + this.format.name !== e.format.name && + _c.throwArgumentError( + "incompatible format; use fixedNumber.toFormat", + "other", + e + ); + }), + (r.prototype.addUnsafe = function (e) { + this._checkFormat(e); + var t = Tp(this._value, this.format.decimals), + n = Tp(e._value, e.format.decimals); + return r.fromValue(t.add(n), this.format.decimals, this.format); + }), + (r.prototype.subUnsafe = function (e) { + this._checkFormat(e); + var t = Tp(this._value, this.format.decimals), + n = Tp(e._value, e.format.decimals); + return r.fromValue(t.sub(n), this.format.decimals, this.format); + }), + (r.prototype.mulUnsafe = function (e) { + this._checkFormat(e); + var t = Tp(this._value, this.format.decimals), + n = Tp(e._value, e.format.decimals); + return r.fromValue( + t.mul(n).div(this.format._multiplier), + this.format.decimals, + this.format + ); + }), + (r.prototype.divUnsafe = function (e) { + this._checkFormat(e); + var t = Tp(this._value, this.format.decimals), + n = Tp(e._value, e.format.decimals); + return r.fromValue( + t.mul(this.format._multiplier).div(n), + this.format.decimals, + this.format + ); + }), + (r.prototype.floor = function () { + var e = this.toString().split("."); + e.length === 1 && e.push("0"); + var t = r.from(e[0], this.format), + n = !e[1].match(/^(0*)$/); + return ( + this.isNegative() && n && (t = t.subUnsafe(iae.toFormat(t.format))), + t + ); + }), + (r.prototype.ceiling = function () { + var e = this.toString().split("."); + e.length === 1 && e.push("0"); + var t = r.from(e[0], this.format), + n = !e[1].match(/^(0*)$/); + return ( + !this.isNegative() && + n && + (t = t.addUnsafe(iae.toFormat(t.format))), + t + ); + }), + (r.prototype.round = function (e) { + e == null && (e = 0); + var t = this.toString().split("."); + if ( + (t.length === 1 && t.push("0"), + (e < 0 || e > 80 || e % 1) && + _c.throwArgumentError("invalid decimal count", "decimals", e), + t[1].length <= e) + ) + return this; + var n = r.from("1" + Px.substring(0, e), this.format), + a = Ept.toFormat(this.format); + return this.mulUnsafe(n).addUnsafe(a).floor().divUnsafe(n); + }), + (r.prototype.isZero = function () { + return this._value === "0.0" || this._value === "0"; + }), + (r.prototype.isNegative = function () { + return this._value[0] === "-"; + }), + (r.prototype.toString = function () { + return this._value; + }), + (r.prototype.toHexString = function (e) { + if (e == null) return this._hex; + e % 8 && _c.throwArgumentError("invalid byte width", "width", e); + var t = Kh.BigNumber.from(this._hex) + .fromTwos(this.format.width) + .toTwos(e) + .toHexString(); + return (0, R8.hexZeroPad)(t, e / 8); + }), + (r.prototype.toUnsafeFloat = function () { + return parseFloat(this.toString()); + }), + (r.prototype.toFormat = function (e) { + return r.fromString(this._value, e); + }), + (r.fromValue = function (e, t, n) { + return ( + n == null && + t != null && + !(0, Kh.isBigNumberish)(t) && + ((n = t), (t = null)), + t == null && (t = 0), + n == null && (n = "fixed"), + r.fromString(B8(e, t), N8.from(n)) + ); + }), + (r.fromString = function (e, t) { + t == null && (t = "fixed"); + var n = N8.from(t), + a = Tp(e, n.decimals); + !n.signed && + a.lt(sae) && + cae("unsigned value cannot be negative", "overflow", "value", e); + var i = null; + n.signed + ? (i = a.toTwos(n.width).toHexString()) + : ((i = a.toHexString()), (i = (0, R8.hexZeroPad)(i, n.width / 8))); + var s = B8(a, n.decimals); + return new r(Mx, i, s, n); + }), + (r.fromBytes = function (e, t) { + t == null && (t = "fixed"); + var n = N8.from(t); + if ((0, R8.arrayify)(e).length > n.width / 8) + throw new Error("overflow"); + var a = Kh.BigNumber.from(e); + n.signed && (a = a.fromTwos(n.width)); + var i = a.toTwos((n.signed ? 0 : 1) + n.width).toHexString(), + s = B8(a, n.decimals); + return new r(Mx, i, s, n); + }), + (r.from = function (e, t) { + if (typeof e == "string") return r.fromString(e, t); + if ((0, R8.isBytes)(e)) return r.fromBytes(e, t); + try { + return r.fromValue(e, 0, t); + } catch (n) { + if (n.code !== Rx.Logger.errors.INVALID_ARGUMENT) throw n; + } + return _c.throwArgumentError("invalid FixedNumber value", "value", e); + }), + (r.isFixedNumber = function (e) { + return !!(e && e._isFixedNumber); + }), + r + ); + })(); + Ep.FixedNumber = qL; + var iae = qL.from(1), + Ept = qL.from("0.5"); + }); + var zi = N((ho) => { + "use strict"; + _(); + x(); + Object.defineProperty(ho, "__esModule", { value: !0 }); + ho._base36To16 = + ho._base16To36 = + ho.parseFixed = + ho.FixedNumber = + ho.FixedFormat = + ho.formatFixed = + ho.BigNumber = + void 0; + var Cpt = P8(); + Object.defineProperty(ho, "BigNumber", { + enumerable: !0, + get: function () { + return Cpt.BigNumber; + }, + }); + var O8 = uae(); + Object.defineProperty(ho, "formatFixed", { + enumerable: !0, + get: function () { + return O8.formatFixed; + }, + }); + Object.defineProperty(ho, "FixedFormat", { + enumerable: !0, + get: function () { + return O8.FixedFormat; + }, + }); + Object.defineProperty(ho, "FixedNumber", { + enumerable: !0, + get: function () { + return O8.FixedNumber; + }, + }); + Object.defineProperty(ho, "parseFixed", { + enumerable: !0, + get: function () { + return O8.parseFixed; + }, + }); + var lae = P8(); + Object.defineProperty(ho, "_base16To36", { + enumerable: !0, + get: function () { + return lae._base16To36; + }, + }); + Object.defineProperty(ho, "_base36To16", { + enumerable: !0, + get: function () { + return lae._base36To16; + }, + }); + }); + var dae = N((L8) => { + "use strict"; + _(); + x(); + Object.defineProperty(L8, "__esModule", { value: !0 }); + L8.version = void 0; + L8.version = "properties/5.7.0"; + }); + var ja = N((ji) => { + "use strict"; + _(); + x(); + var Ipt = + (ji && ji.__awaiter) || + function (r, e, t, n) { + function a(i) { + return i instanceof t + ? i + : new t(function (s) { + s(i); + }); + } + return new (t || (t = Promise))(function (i, s) { + function c(m) { + try { + d(n.next(m)); + } catch (w) { + s(w); + } + } + function l(m) { + try { + d(n.throw(m)); + } catch (w) { + s(w); + } + } + function d(m) { + m.done ? i(m.value) : a(m.value).then(c, l); + } + d((n = n.apply(r, e || [])).next()); + }); + }, + Apt = + (ji && ji.__generator) || + function (r, e) { + var t = { + label: 0, + sent: function () { + if (i[0] & 1) throw i[1]; + return i[1]; + }, + trys: [], + ops: [], + }, + n, + a, + i, + s; + return ( + (s = { next: c(0), throw: c(1), return: c(2) }), + typeof Symbol == "function" && + (s[Symbol.iterator] = function () { + return this; + }), + s + ); + function c(d) { + return function (m) { + return l([d, m]); + }; + } + function l(d) { + if (n) throw new TypeError("Generator is already executing."); + for (; t; ) + try { + if ( + ((n = 1), + a && + (i = + d[0] & 2 + ? a.return + : d[0] + ? a.throw || ((i = a.return) && i.call(a), 0) + : a.next) && + !(i = i.call(a, d[1])).done) + ) + return i; + switch (((a = 0), i && (d = [d[0] & 2, i.value]), d[0])) { + case 0: + case 1: + i = d; + break; + case 4: + return t.label++, { value: d[1], done: !1 }; + case 5: + t.label++, (a = d[1]), (d = [0]); + continue; + case 7: + (d = t.ops.pop()), t.trys.pop(); + continue; + default: + if ( + ((i = t.trys), + !(i = i.length > 0 && i[i.length - 1]) && + (d[0] === 6 || d[0] === 2)) + ) { + t = 0; + continue; + } + if (d[0] === 3 && (!i || (d[1] > i[0] && d[1] < i[3]))) { + t.label = d[1]; + break; + } + if (d[0] === 6 && t.label < i[1]) { + (t.label = i[1]), (i = d); + break; + } + if (i && t.label < i[2]) { + (t.label = i[2]), t.ops.push(d); + break; + } + i[2] && t.ops.pop(), t.trys.pop(); + continue; + } + d = e.call(r, t); + } catch (m) { + (d = [6, m]), (a = 0); + } finally { + n = i = 0; + } + if (d[0] & 5) throw d[1]; + return { value: d[0] ? d[1] : void 0, done: !0 }; + } + }; + Object.defineProperty(ji, "__esModule", { value: !0 }); + ji.Description = + ji.deepCopy = + ji.shallowCopy = + ji.checkProperties = + ji.resolveProperties = + ji.getStatic = + ji.defineReadOnly = + void 0; + var kpt = ir(), + Spt = dae(), + D8 = new kpt.Logger(Spt.version); + function pae(r, e, t) { + Object.defineProperty(r, e, { enumerable: !0, value: t, writable: !1 }); + } + ji.defineReadOnly = pae; + function Mpt(r, e) { + for (var t = 0; t < 32; t++) { + if (r[e]) return r[e]; + if (!r.prototype || typeof r.prototype != "object") break; + r = Object.getPrototypeOf(r.prototype).constructor; + } + return null; + } + ji.getStatic = Mpt; + function Ppt(r) { + return Ipt(this, void 0, void 0, function () { + var e, t; + return Apt(this, function (n) { + switch (n.label) { + case 0: + return ( + (e = Object.keys(r).map(function (a) { + var i = r[a]; + return Promise.resolve(i).then(function (s) { + return { key: a, value: s }; + }); + })), + [4, Promise.all(e)] + ); + case 1: + return ( + (t = n.sent()), + [ + 2, + t.reduce(function (a, i) { + return (a[i.key] = i.value), a; + }, {}), + ] + ); + } + }); + }); + } + ji.resolveProperties = Ppt; + function Rpt(r, e) { + (!r || typeof r != "object") && + D8.throwArgumentError("invalid object", "object", r), + Object.keys(r).forEach(function (t) { + e[t] || + D8.throwArgumentError( + "invalid object key - " + t, + "transaction:" + t, + r + ); + }); + } + ji.checkProperties = Rpt; + function Bpt(r) { + var e = {}; + for (var t in r) e[t] = r[t]; + return e; + } + ji.shallowCopy = Bpt; + var Npt = { bigint: !0, boolean: !0, function: !0, number: !0, string: !0 }; + function hae(r) { + if (r == null || Npt[typeof r]) return !0; + if (Array.isArray(r) || typeof r == "object") { + if (!Object.isFrozen(r)) return !1; + for (var e = Object.keys(r), t = 0; t < e.length; t++) { + var n = null; + try { + n = r[e[t]]; + } catch { + continue; + } + if (!hae(n)) return !1; + } + return !0; + } + return D8.throwArgumentError("Cannot deepCopy " + typeof r, "object", r); + } + function Opt(r) { + if (hae(r)) return r; + if (Array.isArray(r)) + return Object.freeze( + r.map(function (a) { + return q8(a); + }) + ); + if (typeof r == "object") { + var e = {}; + for (var t in r) { + var n = r[t]; + n !== void 0 && pae(e, t, q8(n)); + } + return e; + } + return D8.throwArgumentError("Cannot deepCopy " + typeof r, "object", r); + } + function q8(r) { + return Opt(r); + } + ji.deepCopy = q8; + var Lpt = (function () { + function r(e) { + for (var t in e) this[t] = q8(e[t]); + } + return r; + })(); + ji.Description = Lpt; + }); + var s1 = N((F8) => { + "use strict"; + _(); + x(); + Object.defineProperty(F8, "__esModule", { value: !0 }); + F8.version = void 0; + F8.version = "abi/5.7.0"; + }); + var V8 = N((fr) => { + "use strict"; + _(); + x(); + var z8 = + (fr && fr.__extends) || + (function () { + var r = function (e, t) { + return ( + (r = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (n, a) { + n.__proto__ = a; + }) || + function (n, a) { + for (var i in a) + Object.prototype.hasOwnProperty.call(a, i) && (n[i] = a[i]); + }), + r(e, t) + ); + }; + return function (e, t) { + if (typeof t != "function" && t !== null) + throw new TypeError( + "Class extends value " + + String(t) + + " is not a constructor or null" + ); + r(e, t); + function n() { + this.constructor = e; + } + e.prototype = + t === null + ? Object.create(t) + : ((n.prototype = t.prototype), new n()); + }; + })(); + Object.defineProperty(fr, "__esModule", { value: !0 }); + fr.ErrorFragment = + fr.FunctionFragment = + fr.ConstructorFragment = + fr.EventFragment = + fr.Fragment = + fr.ParamType = + fr.FormatTypes = + void 0; + var HL = zi(), + Dpt = ja(), + j8 = ir(), + qpt = s1(), + dn = new j8.Logger(qpt.version), + my = {}, + fae = { calldata: !0, memory: !0, storage: !0 }, + Fpt = { calldata: !0, memory: !0 }; + function W8(r, e) { + if (r === "bytes" || r === "string") { + if (fae[e]) return !0; + } else if (r === "address") { + if (e === "payable") return !0; + } else if ((r.indexOf("[") >= 0 || r === "tuple") && Fpt[e]) return !0; + return ( + (fae[e] || e === "payable") && + dn.throwArgumentError("invalid modifier", "name", e), + !1 + ); + } + function Wpt(r, e) { + var t = r; + function n(w) { + dn.throwArgumentError( + "unexpected character at position " + w, + "param", + r + ); + } + r = r.replace(/\s/g, " "); + function a(w) { + var C = { type: "", name: "", parent: w, state: { allowType: !0 } }; + return e && (C.indexed = !1), C; + } + for ( + var i = { type: "", name: "", state: { allowType: !0 } }, s = i, c = 0; + c < r.length; + c++ + ) { + var l = r[c]; + switch (l) { + case "(": + s.state.allowType && s.type === "" + ? (s.type = "tuple") + : s.state.allowParams || n(c), + (s.state.allowType = !1), + (s.type = o1(s.type)), + (s.components = [a(s)]), + (s = s.components[0]); + break; + case ")": + delete s.state, + s.name === "indexed" && + (e || n(c), (s.indexed = !0), (s.name = "")), + W8(s.type, s.name) && (s.name = ""), + (s.type = o1(s.type)); + var d = s; + (s = s.parent), + s || n(c), + delete d.parent, + (s.state.allowParams = !1), + (s.state.allowName = !0), + (s.state.allowArray = !0); + break; + case ",": + delete s.state, + s.name === "indexed" && + (e || n(c), (s.indexed = !0), (s.name = "")), + W8(s.type, s.name) && (s.name = ""), + (s.type = o1(s.type)); + var m = a(s.parent); + s.parent.components.push(m), delete s.parent, (s = m); + break; + case " ": + s.state.allowType && + s.type !== "" && + ((s.type = o1(s.type)), + delete s.state.allowType, + (s.state.allowName = !0), + (s.state.allowParams = !0)), + s.state.allowName && + s.name !== "" && + (s.name === "indexed" + ? (e || n(c), + s.indexed && n(c), + (s.indexed = !0), + (s.name = "")) + : W8(s.type, s.name) + ? (s.name = "") + : (s.state.allowName = !1)); + break; + case "[": + s.state.allowArray || n(c), + (s.type += l), + (s.state.allowArray = !1), + (s.state.allowName = !1), + (s.state.readArray = !0); + break; + case "]": + s.state.readArray || n(c), + (s.type += l), + (s.state.readArray = !1), + (s.state.allowArray = !0), + (s.state.allowName = !0); + break; + default: + s.state.allowType + ? ((s.type += l), + (s.state.allowParams = !0), + (s.state.allowArray = !0)) + : s.state.allowName + ? ((s.name += l), delete s.state.allowArray) + : s.state.readArray + ? (s.type += l) + : n(c); + } + } + return ( + s.parent && dn.throwArgumentError("unexpected eof", "param", r), + delete i.state, + s.name === "indexed" + ? (e || n(t.length - 7), + s.indexed && n(t.length - 7), + (s.indexed = !0), + (s.name = "")) + : W8(s.type, s.name) && (s.name = ""), + (i.type = o1(i.type)), + i + ); + } + function U8(r, e) { + for (var t in e) (0, Dpt.defineReadOnly)(r, t, e[t]); + } + fr.FormatTypes = Object.freeze({ + sighash: "sighash", + minimal: "minimal", + full: "full", + json: "json", + }); + var Upt = new RegExp(/^(.*)\[([0-9]*)\]$/), + yy = (function () { + function r(e, t) { + e !== my && + dn.throwError( + "use fromString", + j8.Logger.errors.UNSUPPORTED_OPERATION, + { operation: "new ParamType()" } + ), + U8(this, t); + var n = this.type.match(Upt); + n + ? U8(this, { + arrayLength: parseInt(n[2] || "-1"), + arrayChildren: r.fromObject({ + type: n[1], + components: this.components, + }), + baseType: "array", + }) + : U8(this, { + arrayLength: null, + arrayChildren: null, + baseType: this.components != null ? "tuple" : this.type, + }), + (this._isParamType = !0), + Object.freeze(this); + } + return ( + (r.prototype.format = function (e) { + if ( + (e || (e = fr.FormatTypes.sighash), + fr.FormatTypes[e] || + dn.throwArgumentError("invalid format type", "format", e), + e === fr.FormatTypes.json) + ) { + var t = { + type: this.baseType === "tuple" ? "tuple" : this.type, + name: this.name || void 0, + }; + return ( + typeof this.indexed == "boolean" && (t.indexed = this.indexed), + this.components && + (t.components = this.components.map(function (a) { + return JSON.parse(a.format(e)); + })), + JSON.stringify(t) + ); + } + var n = ""; + return ( + this.baseType === "array" + ? ((n += this.arrayChildren.format(e)), + (n += + "[" + + (this.arrayLength < 0 ? "" : String(this.arrayLength)) + + "]")) + : this.baseType === "tuple" + ? (e !== fr.FormatTypes.sighash && (n += this.type), + (n += + "(" + + this.components + .map(function (a) { + return a.format(e); + }) + .join(e === fr.FormatTypes.full ? ", " : ",") + + ")")) + : (n += this.type), + e !== fr.FormatTypes.sighash && + (this.indexed === !0 && (n += " indexed"), + e === fr.FormatTypes.full && + this.name && + (n += " " + this.name)), + n + ); + }), + (r.from = function (e, t) { + return typeof e == "string" ? r.fromString(e, t) : r.fromObject(e); + }), + (r.fromObject = function (e) { + return r.isParamType(e) + ? e + : new r(my, { + name: e.name || null, + type: o1(e.type), + indexed: e.indexed == null ? null : !!e.indexed, + components: e.components + ? e.components.map(r.fromObject) + : null, + }); + }), + (r.fromString = function (e, t) { + function n(a) { + return r.fromObject({ + name: a.name, + type: a.type, + indexed: a.indexed, + components: a.components, + }); + } + return n(Wpt(e, !!t)); + }), + (r.isParamType = function (e) { + return !!(e != null && e._isParamType); + }), + r + ); + })(); + fr.ParamType = yy; + function Bx(r, e) { + return zpt(r).map(function (t) { + return yy.fromString(t, e); + }); + } + var K8 = (function () { + function r(e, t) { + e !== my && + dn.throwError( + "use a static from method", + j8.Logger.errors.UNSUPPORTED_OPERATION, + { operation: "new Fragment()" } + ), + U8(this, t), + (this._isFragment = !0), + Object.freeze(this); + } + return ( + (r.from = function (e) { + return r.isFragment(e) + ? e + : typeof e == "string" + ? r.fromString(e) + : r.fromObject(e); + }), + (r.fromObject = function (e) { + if (r.isFragment(e)) return e; + switch (e.type) { + case "function": + return WL.fromObject(e); + case "event": + return FL.fromObject(e); + case "constructor": + return H8.fromObject(e); + case "error": + return UL.fromObject(e); + case "fallback": + case "receive": + return null; + } + return dn.throwArgumentError("invalid fragment object", "value", e); + }), + (r.fromString = function (e) { + return ( + (e = e.replace(/\s/g, " ")), + (e = e + .replace(/\(/g, " (") + .replace(/\)/g, ") ") + .replace(/\s+/g, " ")), + (e = e.trim()), + e.split(" ")[0] === "event" + ? FL.fromString(e.substring(5).trim()) + : e.split(" ")[0] === "function" + ? WL.fromString(e.substring(8).trim()) + : e.split("(")[0].trim() === "constructor" + ? H8.fromString(e.trim()) + : e.split(" ")[0] === "error" + ? UL.fromString(e.substring(5).trim()) + : dn.throwArgumentError("unsupported fragment", "value", e) + ); + }), + (r.isFragment = function (e) { + return !!(e && e._isFragment); + }), + r + ); + })(); + fr.Fragment = K8; + var FL = (function (r) { + z8(e, r); + function e() { + return (r !== null && r.apply(this, arguments)) || this; + } + return ( + (e.prototype.format = function (t) { + if ( + (t || (t = fr.FormatTypes.sighash), + fr.FormatTypes[t] || + dn.throwArgumentError("invalid format type", "format", t), + t === fr.FormatTypes.json) + ) + return JSON.stringify({ + type: "event", + anonymous: this.anonymous, + name: this.name, + inputs: this.inputs.map(function (a) { + return JSON.parse(a.format(t)); + }), + }); + var n = ""; + return ( + t !== fr.FormatTypes.sighash && (n += "event "), + (n += + this.name + + "(" + + this.inputs + .map(function (a) { + return a.format(t); + }) + .join(t === fr.FormatTypes.full ? ", " : ",") + + ") "), + t !== fr.FormatTypes.sighash && + this.anonymous && + (n += "anonymous "), + n.trim() + ); + }), + (e.from = function (t) { + return typeof t == "string" ? e.fromString(t) : e.fromObject(t); + }), + (e.fromObject = function (t) { + if (e.isEventFragment(t)) return t; + t.type !== "event" && + dn.throwArgumentError("invalid event object", "value", t); + var n = { + name: Nx(t.name), + anonymous: t.anonymous, + inputs: t.inputs ? t.inputs.map(yy.fromObject) : [], + type: "event", + }; + return new e(my, n); + }), + (e.fromString = function (t) { + var n = t.match(Ox); + n || dn.throwArgumentError("invalid event string", "value", t); + var a = !1; + return ( + n[3].split(" ").forEach(function (i) { + switch (i.trim()) { + case "anonymous": + a = !0; + break; + case "": + break; + default: + dn.warn("unknown modifier: " + i); + } + }), + e.fromObject({ + name: n[1].trim(), + anonymous: a, + inputs: Bx(n[2], !0), + type: "event", + }) + ); + }), + (e.isEventFragment = function (t) { + return t && t._isFragment && t.type === "event"; + }), + e + ); + })(K8); + fr.EventFragment = FL; + function yae(r, e) { + e.gas = null; + var t = r.split("@"); + return t.length !== 1 + ? (t.length > 2 && + dn.throwArgumentError( + "invalid human-readable ABI signature", + "value", + r + ), + t[1].match(/^[0-9]+$/) || + dn.throwArgumentError( + "invalid human-readable ABI signature gas", + "value", + r + ), + (e.gas = HL.BigNumber.from(t[1])), + t[0]) + : r; + } + function gae(r, e) { + (e.constant = !1), + (e.payable = !1), + (e.stateMutability = "nonpayable"), + r.split(" ").forEach(function (t) { + switch (t.trim()) { + case "constant": + e.constant = !0; + break; + case "payable": + (e.payable = !0), (e.stateMutability = "payable"); + break; + case "nonpayable": + (e.payable = !1), (e.stateMutability = "nonpayable"); + break; + case "pure": + (e.constant = !0), (e.stateMutability = "pure"); + break; + case "view": + (e.constant = !0), (e.stateMutability = "view"); + break; + case "external": + case "public": + case "": + break; + default: + console.log("unknown modifier: " + t); + } + }); + } + function bae(r) { + var e = { constant: !1, payable: !0, stateMutability: "payable" }; + return ( + r.stateMutability != null + ? ((e.stateMutability = r.stateMutability), + (e.constant = + e.stateMutability === "view" || e.stateMutability === "pure"), + r.constant != null && + !!r.constant !== e.constant && + dn.throwArgumentError( + "cannot have constant function with mutability " + + e.stateMutability, + "value", + r + ), + (e.payable = e.stateMutability === "payable"), + r.payable != null && + !!r.payable !== e.payable && + dn.throwArgumentError( + "cannot have payable function with mutability " + + e.stateMutability, + "value", + r + )) + : r.payable != null + ? ((e.payable = !!r.payable), + r.constant == null && + !e.payable && + r.type !== "constructor" && + dn.throwArgumentError( + "unable to determine stateMutability", + "value", + r + ), + (e.constant = !!r.constant), + e.constant + ? (e.stateMutability = "view") + : (e.stateMutability = e.payable ? "payable" : "nonpayable"), + e.payable && + e.constant && + dn.throwArgumentError( + "cannot have constant payable function", + "value", + r + )) + : r.constant != null + ? ((e.constant = !!r.constant), + (e.payable = !e.constant), + (e.stateMutability = e.constant ? "view" : "payable")) + : r.type !== "constructor" && + dn.throwArgumentError( + "unable to determine stateMutability", + "value", + r + ), + e + ); + } + var H8 = (function (r) { + z8(e, r); + function e() { + return (r !== null && r.apply(this, arguments)) || this; + } + return ( + (e.prototype.format = function (t) { + if ( + (t || (t = fr.FormatTypes.sighash), + fr.FormatTypes[t] || + dn.throwArgumentError("invalid format type", "format", t), + t === fr.FormatTypes.json) + ) + return JSON.stringify({ + type: "constructor", + stateMutability: + this.stateMutability !== "nonpayable" + ? this.stateMutability + : void 0, + payable: this.payable, + gas: this.gas ? this.gas.toNumber() : void 0, + inputs: this.inputs.map(function (a) { + return JSON.parse(a.format(t)); + }), + }); + t === fr.FormatTypes.sighash && + dn.throwError( + "cannot format a constructor for sighash", + j8.Logger.errors.UNSUPPORTED_OPERATION, + { operation: "format(sighash)" } + ); + var n = + "constructor(" + + this.inputs + .map(function (a) { + return a.format(t); + }) + .join(t === fr.FormatTypes.full ? ", " : ",") + + ") "; + return ( + this.stateMutability && + this.stateMutability !== "nonpayable" && + (n += this.stateMutability + " "), + n.trim() + ); + }), + (e.from = function (t) { + return typeof t == "string" ? e.fromString(t) : e.fromObject(t); + }), + (e.fromObject = function (t) { + if (e.isConstructorFragment(t)) return t; + t.type !== "constructor" && + dn.throwArgumentError("invalid constructor object", "value", t); + var n = bae(t); + n.constant && + dn.throwArgumentError("constructor cannot be constant", "value", t); + var a = { + name: null, + type: t.type, + inputs: t.inputs ? t.inputs.map(yy.fromObject) : [], + payable: n.payable, + stateMutability: n.stateMutability, + gas: t.gas ? HL.BigNumber.from(t.gas) : null, + }; + return new e(my, a); + }), + (e.fromString = function (t) { + var n = { type: "constructor" }; + t = yae(t, n); + var a = t.match(Ox); + return ( + (!a || a[1].trim() !== "constructor") && + dn.throwArgumentError("invalid constructor string", "value", t), + (n.inputs = Bx(a[2].trim(), !1)), + gae(a[3].trim(), n), + e.fromObject(n) + ); + }), + (e.isConstructorFragment = function (t) { + return t && t._isFragment && t.type === "constructor"; + }), + e + ); + })(K8); + fr.ConstructorFragment = H8; + var WL = (function (r) { + z8(e, r); + function e() { + return (r !== null && r.apply(this, arguments)) || this; + } + return ( + (e.prototype.format = function (t) { + if ( + (t || (t = fr.FormatTypes.sighash), + fr.FormatTypes[t] || + dn.throwArgumentError("invalid format type", "format", t), + t === fr.FormatTypes.json) + ) + return JSON.stringify({ + type: "function", + name: this.name, + constant: this.constant, + stateMutability: + this.stateMutability !== "nonpayable" + ? this.stateMutability + : void 0, + payable: this.payable, + gas: this.gas ? this.gas.toNumber() : void 0, + inputs: this.inputs.map(function (a) { + return JSON.parse(a.format(t)); + }), + outputs: this.outputs.map(function (a) { + return JSON.parse(a.format(t)); + }), + }); + var n = ""; + return ( + t !== fr.FormatTypes.sighash && (n += "function "), + (n += + this.name + + "(" + + this.inputs + .map(function (a) { + return a.format(t); + }) + .join(t === fr.FormatTypes.full ? ", " : ",") + + ") "), + t !== fr.FormatTypes.sighash && + (this.stateMutability + ? this.stateMutability !== "nonpayable" && + (n += this.stateMutability + " ") + : this.constant && (n += "view "), + this.outputs && + this.outputs.length && + (n += + "returns (" + + this.outputs + .map(function (a) { + return a.format(t); + }) + .join(", ") + + ") "), + this.gas != null && (n += "@" + this.gas.toString() + " ")), + n.trim() + ); + }), + (e.from = function (t) { + return typeof t == "string" ? e.fromString(t) : e.fromObject(t); + }), + (e.fromObject = function (t) { + if (e.isFunctionFragment(t)) return t; + t.type !== "function" && + dn.throwArgumentError("invalid function object", "value", t); + var n = bae(t), + a = { + type: t.type, + name: Nx(t.name), + constant: n.constant, + inputs: t.inputs ? t.inputs.map(yy.fromObject) : [], + outputs: t.outputs ? t.outputs.map(yy.fromObject) : [], + payable: n.payable, + stateMutability: n.stateMutability, + gas: t.gas ? HL.BigNumber.from(t.gas) : null, + }; + return new e(my, a); + }), + (e.fromString = function (t) { + var n = { type: "function" }; + t = yae(t, n); + var a = t.split(" returns "); + a.length > 2 && + dn.throwArgumentError("invalid function string", "value", t); + var i = a[0].match(Ox); + if ( + (i || + dn.throwArgumentError("invalid function signature", "value", t), + (n.name = i[1].trim()), + n.name && Nx(n.name), + (n.inputs = Bx(i[2], !1)), + gae(i[3].trim(), n), + a.length > 1) + ) { + var s = a[1].match(Ox); + (s[1].trim() != "" || s[3].trim() != "") && + dn.throwArgumentError("unexpected tokens", "value", t), + (n.outputs = Bx(s[2], !1)); + } else n.outputs = []; + return e.fromObject(n); + }), + (e.isFunctionFragment = function (t) { + return t && t._isFragment && t.type === "function"; + }), + e + ); + })(H8); + fr.FunctionFragment = WL; + function mae(r) { + var e = r.format(); + return ( + (e === "Error(string)" || e === "Panic(uint256)") && + dn.throwArgumentError( + "cannot specify user defined " + e + " error", + "fragment", + r + ), + r + ); + } + var UL = (function (r) { + z8(e, r); + function e() { + return (r !== null && r.apply(this, arguments)) || this; + } + return ( + (e.prototype.format = function (t) { + if ( + (t || (t = fr.FormatTypes.sighash), + fr.FormatTypes[t] || + dn.throwArgumentError("invalid format type", "format", t), + t === fr.FormatTypes.json) + ) + return JSON.stringify({ + type: "error", + name: this.name, + inputs: this.inputs.map(function (a) { + return JSON.parse(a.format(t)); + }), + }); + var n = ""; + return ( + t !== fr.FormatTypes.sighash && (n += "error "), + (n += + this.name + + "(" + + this.inputs + .map(function (a) { + return a.format(t); + }) + .join(t === fr.FormatTypes.full ? ", " : ",") + + ") "), + n.trim() + ); + }), + (e.from = function (t) { + return typeof t == "string" ? e.fromString(t) : e.fromObject(t); + }), + (e.fromObject = function (t) { + if (e.isErrorFragment(t)) return t; + t.type !== "error" && + dn.throwArgumentError("invalid error object", "value", t); + var n = { + type: t.type, + name: Nx(t.name), + inputs: t.inputs ? t.inputs.map(yy.fromObject) : [], + }; + return mae(new e(my, n)); + }), + (e.fromString = function (t) { + var n = { type: "error" }, + a = t.match(Ox); + return ( + a || dn.throwArgumentError("invalid error signature", "value", t), + (n.name = a[1].trim()), + n.name && Nx(n.name), + (n.inputs = Bx(a[2], !1)), + mae(e.fromObject(n)) + ); + }), + (e.isErrorFragment = function (t) { + return t && t._isFragment && t.type === "error"; + }), + e + ); + })(K8); + fr.ErrorFragment = UL; + function o1(r) { + return ( + r.match(/^uint($|[^1-9])/) + ? (r = "uint256" + r.substring(4)) + : r.match(/^int($|[^1-9])/) && (r = "int256" + r.substring(3)), + r + ); + } + var Hpt = new RegExp("^[a-zA-Z$_][a-zA-Z0-9$_]*$"); + function Nx(r) { + return ( + (!r || !r.match(Hpt)) && + dn.throwArgumentError('invalid identifier "' + r + '"', "value", r), + r + ); + } + var Ox = new RegExp("^([^)(]*)\\((.*)\\)([^)(]*)$"); + function zpt(r) { + r = r.trim(); + for (var e = [], t = "", n = 0, a = 0; a < r.length; a++) { + var i = r[a]; + i === "," && n === 0 + ? (e.push(t), (t = "")) + : ((t += i), + i === "(" + ? n++ + : i === ")" && + (n--, + n === -1 && + dn.throwArgumentError("unbalanced parenthesis", "value", r))); + } + return t && e.push(t), e; + } + }); + var ul = N((Cp) => { + "use strict"; + _(); + x(); + Object.defineProperty(Cp, "__esModule", { value: !0 }); + Cp.Reader = Cp.Writer = Cp.Coder = Cp.checkResultErrors = void 0; + var lm = Dr(), + vae = zi(), + Lx = ja(), + zL = ir(), + jpt = s1(), + jL = new zL.Logger(jpt.version); + function Kpt(r) { + var e = [], + t = function (n, a) { + if (!!Array.isArray(a)) + for (var i in a) { + var s = n.slice(); + s.push(i); + try { + t(s, a[i]); + } catch (c) { + e.push({ path: s, error: c }); + } + } + }; + return t([], r), e; + } + Cp.checkResultErrors = Kpt; + var Vpt = (function () { + function r(e, t, n, a) { + (this.name = e), + (this.type = t), + (this.localName = n), + (this.dynamic = a); + } + return ( + (r.prototype._throwError = function (e, t) { + jL.throwArgumentError(e, this.localName, t); + }), + r + ); + })(); + Cp.Coder = Vpt; + var Gpt = (function () { + function r(e) { + (0, Lx.defineReadOnly)(this, "wordSize", e || 32), + (this._data = []), + (this._dataLength = 0), + (this._padding = new Uint8Array(e)); + } + return ( + Object.defineProperty(r.prototype, "data", { + get: function () { + return (0, lm.hexConcat)(this._data); + }, + enumerable: !1, + configurable: !0, + }), + Object.defineProperty(r.prototype, "length", { + get: function () { + return this._dataLength; + }, + enumerable: !1, + configurable: !0, + }), + (r.prototype._writeData = function (e) { + return this._data.push(e), (this._dataLength += e.length), e.length; + }), + (r.prototype.appendWriter = function (e) { + return this._writeData((0, lm.concat)(e._data)); + }), + (r.prototype.writeBytes = function (e) { + var t = (0, lm.arrayify)(e), + n = t.length % this.wordSize; + return ( + n && (t = (0, lm.concat)([t, this._padding.slice(n)])), + this._writeData(t) + ); + }), + (r.prototype._getValue = function (e) { + var t = (0, lm.arrayify)(vae.BigNumber.from(e)); + return ( + t.length > this.wordSize && + jL.throwError( + "value out-of-bounds", + zL.Logger.errors.BUFFER_OVERRUN, + { length: this.wordSize, offset: t.length } + ), + t.length % this.wordSize && + (t = (0, lm.concat)([ + this._padding.slice(t.length % this.wordSize), + t, + ])), + t + ); + }), + (r.prototype.writeValue = function (e) { + return this._writeData(this._getValue(e)); + }), + (r.prototype.writeUpdatableValue = function () { + var e = this, + t = this._data.length; + return ( + this._data.push(this._padding), + (this._dataLength += this.wordSize), + function (n) { + e._data[t] = e._getValue(n); + } + ); + }), + r + ); + })(); + Cp.Writer = Gpt; + var Ypt = (function () { + function r(e, t, n, a) { + (0, Lx.defineReadOnly)(this, "_data", (0, lm.arrayify)(e)), + (0, Lx.defineReadOnly)(this, "wordSize", t || 32), + (0, Lx.defineReadOnly)(this, "_coerceFunc", n), + (0, Lx.defineReadOnly)(this, "allowLoose", a), + (this._offset = 0); + } + return ( + Object.defineProperty(r.prototype, "data", { + get: function () { + return (0, lm.hexlify)(this._data); + }, + enumerable: !1, + configurable: !0, + }), + Object.defineProperty(r.prototype, "consumed", { + get: function () { + return this._offset; + }, + enumerable: !1, + configurable: !0, + }), + (r.coerce = function (e, t) { + var n = e.match("^u?int([0-9]+)$"); + return n && parseInt(n[1]) <= 48 && (t = t.toNumber()), t; + }), + (r.prototype.coerce = function (e, t) { + return this._coerceFunc ? this._coerceFunc(e, t) : r.coerce(e, t); + }), + (r.prototype._peekBytes = function (e, t, n) { + var a = Math.ceil(t / this.wordSize) * this.wordSize; + return ( + this._offset + a > this._data.length && + (this.allowLoose && n && this._offset + t <= this._data.length + ? (a = t) + : jL.throwError( + "data out-of-bounds", + zL.Logger.errors.BUFFER_OVERRUN, + { length: this._data.length, offset: this._offset + a } + )), + this._data.slice(this._offset, this._offset + a) + ); + }), + (r.prototype.subReader = function (e) { + return new r( + this._data.slice(this._offset + e), + this.wordSize, + this._coerceFunc, + this.allowLoose + ); + }), + (r.prototype.readBytes = function (e, t) { + var n = this._peekBytes(0, e, !!t); + return (this._offset += n.length), n.slice(0, e); + }), + (r.prototype.readValue = function () { + return vae.BigNumber.from(this.readBytes(this.wordSize)); + }), + r + ); + })(); + Cp.Reader = Ypt; + }); + var KL = N((hqr, G8) => { + _(); + x(); + (function () { + "use strict"; + var r = "input is invalid type", + e = "finalize already called", + t = typeof window == "object", + n = t ? window : {}; + n.JS_SHA3_NO_WINDOW && (t = !1); + var a = !t && typeof self == "object", + i = + !n.JS_SHA3_NO_NODE_JS && + typeof S == "object" && + S.versions && + S.versions.node; + i ? (n = M) : a && (n = self); + var s = !n.JS_SHA3_NO_COMMON_JS && typeof G8 == "object" && G8.exports, + c = typeof define == "function" && define.amd, + l = !n.JS_SHA3_NO_ARRAY_BUFFER && typeof ArrayBuffer < "u", + d = "0123456789abcdef".split(""), + m = [31, 7936, 2031616, 520093696], + w = [4, 1024, 262144, 67108864], + C = [1, 256, 65536, 16777216], + I = [6, 1536, 393216, 100663296], + k = [0, 8, 16, 24], + O = [ + 1, 0, 32898, 0, 32906, 2147483648, 2147516416, 2147483648, 32907, 0, + 2147483649, 0, 2147516545, 2147483648, 32777, 2147483648, 138, 0, 136, + 0, 2147516425, 0, 2147483658, 0, 2147516555, 0, 139, 2147483648, + 32905, 2147483648, 32771, 2147483648, 32770, 2147483648, 128, + 2147483648, 32778, 0, 2147483658, 2147483648, 2147516545, 2147483648, + 32896, 2147483648, 2147483649, 0, 2147516424, 2147483648, + ], + D = [224, 256, 384, 512], + W = [128, 256], + H = ["hex", "buffer", "arrayBuffer", "array", "digest"], + j = { 128: 168, 256: 136 }; + (n.JS_SHA3_NO_NODE_JS || !Array.isArray) && + (Array.isArray = function (U) { + return Object.prototype.toString.call(U) === "[object Array]"; + }), + l && + (n.JS_SHA3_NO_ARRAY_BUFFER_IS_VIEW || !ArrayBuffer.isView) && + (ArrayBuffer.isView = function (U) { + return ( + typeof U == "object" && + U.buffer && + U.buffer.constructor === ArrayBuffer + ); + }); + for ( + var V = function (U, Z, de) { + return function (ne) { + return new A(U, Z, U).update(ne)[de](); + }; + }, + te = function (U, Z, de) { + return function (ne, pe) { + return new A(U, Z, pe).update(ne)[de](); + }; + }, + $ = function (U, Z, de) { + return function (ne, pe, lt, fe) { + return h["cshake" + U].update(ne, pe, lt, fe)[de](); + }; + }, + ae = function (U, Z, de) { + return function (ne, pe, lt, fe) { + return h["kmac" + U].update(ne, pe, lt, fe)[de](); + }; + }, + Y = function (U, Z, de, ne) { + for (var pe = 0; pe < H.length; ++pe) { + var lt = H[pe]; + U[lt] = Z(de, ne, lt); + } + return U; + }, + K = function (U, Z) { + var de = V(U, Z, "hex"); + return ( + (de.create = function () { + return new A(U, Z, U); + }), + (de.update = function (ne) { + return de.create().update(ne); + }), + Y(de, V, U, Z) + ); + }, + g = function (U, Z) { + var de = te(U, Z, "hex"); + return ( + (de.create = function (ne) { + return new A(U, Z, ne); + }), + (de.update = function (ne, pe) { + return de.create(pe).update(ne); + }), + Y(de, te, U, Z) + ); + }, + o = function (U, Z) { + var de = j[U], + ne = $(U, Z, "hex"); + return ( + (ne.create = function (pe, lt, fe) { + return !lt && !fe + ? h["shake" + U].create(pe) + : new A(U, Z, pe).bytepad([lt, fe], de); + }), + (ne.update = function (pe, lt, fe, ve) { + return ne.create(lt, fe, ve).update(pe); + }), + Y(ne, $, U, Z) + ); + }, + p = function (U, Z) { + var de = j[U], + ne = ae(U, Z, "hex"); + return ( + (ne.create = function (pe, lt, fe) { + return new L(U, Z, lt) + .bytepad(["KMAC", fe], de) + .bytepad([pe], de); + }), + (ne.update = function (pe, lt, fe, ve) { + return ne.create(pe, fe, ve).update(lt); + }), + Y(ne, ae, U, Z) + ); + }, + y = [ + { name: "keccak", padding: C, bits: D, createMethod: K }, + { name: "sha3", padding: I, bits: D, createMethod: K }, + { name: "shake", padding: m, bits: W, createMethod: g }, + { name: "cshake", padding: w, bits: W, createMethod: o }, + { name: "kmac", padding: w, bits: W, createMethod: p }, + ], + h = {}, + b = [], + T = 0; + T < y.length; + ++T + ) + for (var E = y[T], f = E.bits, u = 0; u < f.length; ++u) { + var v = E.name + "_" + f[u]; + if ( + (b.push(v), + (h[v] = E.createMethod(f[u], E.padding)), + E.name !== "sha3") + ) { + var R = E.name + f[u]; + b.push(R), (h[R] = h[v]); + } + } + function A(U, Z, de) { + (this.blocks = []), + (this.s = []), + (this.padding = Z), + (this.outputBits = de), + (this.reset = !0), + (this.finalized = !1), + (this.block = 0), + (this.start = 0), + (this.blockCount = (1600 - (U << 1)) >> 5), + (this.byteCount = this.blockCount << 2), + (this.outputBlocks = de >> 5), + (this.extraBytes = (de & 31) >> 3); + for (var ne = 0; ne < 50; ++ne) this.s[ne] = 0; + } + (A.prototype.update = function (U) { + if (this.finalized) throw new Error(e); + var Z, + de = typeof U; + if (de !== "string") { + if (de === "object") { + if (U === null) throw new Error(r); + if (l && U.constructor === ArrayBuffer) U = new Uint8Array(U); + else if (!Array.isArray(U) && (!l || !ArrayBuffer.isView(U))) + throw new Error(r); + } else throw new Error(r); + Z = !0; + } + for ( + var ne = this.blocks, + pe = this.byteCount, + lt = U.length, + fe = this.blockCount, + ve = 0, + vt = this.s, + we, + Ne; + ve < lt; + + ) { + if (this.reset) + for (this.reset = !1, ne[0] = this.block, we = 1; we < fe + 1; ++we) + ne[we] = 0; + if (Z) + for (we = this.start; ve < lt && we < pe; ++ve) + ne[we >> 2] |= U[ve] << k[we++ & 3]; + else + for (we = this.start; ve < lt && we < pe; ++ve) + (Ne = U.charCodeAt(ve)), + Ne < 128 + ? (ne[we >> 2] |= Ne << k[we++ & 3]) + : Ne < 2048 + ? ((ne[we >> 2] |= (192 | (Ne >> 6)) << k[we++ & 3]), + (ne[we >> 2] |= (128 | (Ne & 63)) << k[we++ & 3])) + : Ne < 55296 || Ne >= 57344 + ? ((ne[we >> 2] |= (224 | (Ne >> 12)) << k[we++ & 3]), + (ne[we >> 2] |= (128 | ((Ne >> 6) & 63)) << k[we++ & 3]), + (ne[we >> 2] |= (128 | (Ne & 63)) << k[we++ & 3])) + : ((Ne = + 65536 + + (((Ne & 1023) << 10) | (U.charCodeAt(++ve) & 1023))), + (ne[we >> 2] |= (240 | (Ne >> 18)) << k[we++ & 3]), + (ne[we >> 2] |= (128 | ((Ne >> 12) & 63)) << k[we++ & 3]), + (ne[we >> 2] |= (128 | ((Ne >> 6) & 63)) << k[we++ & 3]), + (ne[we >> 2] |= (128 | (Ne & 63)) << k[we++ & 3])); + if (((this.lastByteIndex = we), we >= pe)) { + for ( + this.start = we - pe, this.block = ne[fe], we = 0; + we < fe; + ++we + ) + vt[we] ^= ne[we]; + G(vt), (this.reset = !0); + } else this.start = we; + } + return this; + }), + (A.prototype.encode = function (U, Z) { + var de = U & 255, + ne = 1, + pe = [de]; + for (U = U >> 8, de = U & 255; de > 0; ) + pe.unshift(de), (U = U >> 8), (de = U & 255), ++ne; + return Z ? pe.push(ne) : pe.unshift(ne), this.update(pe), pe.length; + }), + (A.prototype.encodeString = function (U) { + var Z, + de = typeof U; + if (de !== "string") { + if (de === "object") { + if (U === null) throw new Error(r); + if (l && U.constructor === ArrayBuffer) U = new Uint8Array(U); + else if (!Array.isArray(U) && (!l || !ArrayBuffer.isView(U))) + throw new Error(r); + } else throw new Error(r); + Z = !0; + } + var ne = 0, + pe = U.length; + if (Z) ne = pe; + else + for (var lt = 0; lt < U.length; ++lt) { + var fe = U.charCodeAt(lt); + fe < 128 + ? (ne += 1) + : fe < 2048 + ? (ne += 2) + : fe < 55296 || fe >= 57344 + ? (ne += 3) + : ((fe = + 65536 + + (((fe & 1023) << 10) | (U.charCodeAt(++lt) & 1023))), + (ne += 4)); + } + return (ne += this.encode(ne * 8)), this.update(U), ne; + }), + (A.prototype.bytepad = function (U, Z) { + for (var de = this.encode(Z), ne = 0; ne < U.length; ++ne) + de += this.encodeString(U[ne]); + var pe = Z - (de % Z), + lt = []; + return (lt.length = pe), this.update(lt), this; + }), + (A.prototype.finalize = function () { + if (!this.finalized) { + this.finalized = !0; + var U = this.blocks, + Z = this.lastByteIndex, + de = this.blockCount, + ne = this.s; + if ( + ((U[Z >> 2] |= this.padding[Z & 3]), + this.lastByteIndex === this.byteCount) + ) + for (U[0] = U[de], Z = 1; Z < de + 1; ++Z) U[Z] = 0; + for (U[de - 1] |= 2147483648, Z = 0; Z < de; ++Z) ne[Z] ^= U[Z]; + G(ne); + } + }), + (A.prototype.toString = A.prototype.hex = + function () { + this.finalize(); + for ( + var U = this.blockCount, + Z = this.s, + de = this.outputBlocks, + ne = this.extraBytes, + pe = 0, + lt = 0, + fe = "", + ve; + lt < de; + + ) { + for (pe = 0; pe < U && lt < de; ++pe, ++lt) + (ve = Z[pe]), + (fe += + d[(ve >> 4) & 15] + + d[ve & 15] + + d[(ve >> 12) & 15] + + d[(ve >> 8) & 15] + + d[(ve >> 20) & 15] + + d[(ve >> 16) & 15] + + d[(ve >> 28) & 15] + + d[(ve >> 24) & 15]); + lt % U === 0 && (G(Z), (pe = 0)); + } + return ( + ne && + ((ve = Z[pe]), + (fe += d[(ve >> 4) & 15] + d[ve & 15]), + ne > 1 && (fe += d[(ve >> 12) & 15] + d[(ve >> 8) & 15]), + ne > 2 && (fe += d[(ve >> 20) & 15] + d[(ve >> 16) & 15])), + fe + ); + }), + (A.prototype.arrayBuffer = function () { + this.finalize(); + var U = this.blockCount, + Z = this.s, + de = this.outputBlocks, + ne = this.extraBytes, + pe = 0, + lt = 0, + fe = this.outputBits >> 3, + ve; + ne + ? (ve = new ArrayBuffer((de + 1) << 2)) + : (ve = new ArrayBuffer(fe)); + for (var vt = new Uint32Array(ve); lt < de; ) { + for (pe = 0; pe < U && lt < de; ++pe, ++lt) vt[lt] = Z[pe]; + lt % U === 0 && G(Z); + } + return ne && ((vt[pe] = Z[pe]), (ve = ve.slice(0, fe))), ve; + }), + (A.prototype.buffer = A.prototype.arrayBuffer), + (A.prototype.digest = A.prototype.array = + function () { + this.finalize(); + for ( + var U = this.blockCount, + Z = this.s, + de = this.outputBlocks, + ne = this.extraBytes, + pe = 0, + lt = 0, + fe = [], + ve, + vt; + lt < de; + + ) { + for (pe = 0; pe < U && lt < de; ++pe, ++lt) + (ve = lt << 2), + (vt = Z[pe]), + (fe[ve] = vt & 255), + (fe[ve + 1] = (vt >> 8) & 255), + (fe[ve + 2] = (vt >> 16) & 255), + (fe[ve + 3] = (vt >> 24) & 255); + lt % U === 0 && G(Z); + } + return ( + ne && + ((ve = lt << 2), + (vt = Z[pe]), + (fe[ve] = vt & 255), + ne > 1 && (fe[ve + 1] = (vt >> 8) & 255), + ne > 2 && (fe[ve + 2] = (vt >> 16) & 255)), + fe + ); + }); + function L(U, Z, de) { + A.call(this, U, Z, de); + } + (L.prototype = new A()), + (L.prototype.finalize = function () { + return ( + this.encode(this.outputBits, !0), A.prototype.finalize.call(this) + ); + }); + var G = function (U) { + var Z, + de, + ne, + pe, + lt, + fe, + ve, + vt, + we, + Ne, + kt, + Le, + ze, + It, + Se, + Ke, + Et, + Me, + Ge, + Dt, + De, + Ze, + Wt, + ke, + $e, + Ht, + Pe, + Je, + zt, + Re, + Qe, + jt, + Be, + Xe, + Ut, + Ae, + et, + St, + Oe, + tt, + Kt, + qe, + rt, + Vt, + Ie, + Ye, + Gt, + We, + it, + Qt, + Ue, + nt, + tr, + He, + at, + Pr, + qt, + Ft, + _r, + xr, + Tr, + Er, + Cr; + for (ne = 0; ne < 48; ne += 2) + (pe = U[0] ^ U[10] ^ U[20] ^ U[30] ^ U[40]), + (lt = U[1] ^ U[11] ^ U[21] ^ U[31] ^ U[41]), + (fe = U[2] ^ U[12] ^ U[22] ^ U[32] ^ U[42]), + (ve = U[3] ^ U[13] ^ U[23] ^ U[33] ^ U[43]), + (vt = U[4] ^ U[14] ^ U[24] ^ U[34] ^ U[44]), + (we = U[5] ^ U[15] ^ U[25] ^ U[35] ^ U[45]), + (Ne = U[6] ^ U[16] ^ U[26] ^ U[36] ^ U[46]), + (kt = U[7] ^ U[17] ^ U[27] ^ U[37] ^ U[47]), + (Le = U[8] ^ U[18] ^ U[28] ^ U[38] ^ U[48]), + (ze = U[9] ^ U[19] ^ U[29] ^ U[39] ^ U[49]), + (Z = Le ^ ((fe << 1) | (ve >>> 31))), + (de = ze ^ ((ve << 1) | (fe >>> 31))), + (U[0] ^= Z), + (U[1] ^= de), + (U[10] ^= Z), + (U[11] ^= de), + (U[20] ^= Z), + (U[21] ^= de), + (U[30] ^= Z), + (U[31] ^= de), + (U[40] ^= Z), + (U[41] ^= de), + (Z = pe ^ ((vt << 1) | (we >>> 31))), + (de = lt ^ ((we << 1) | (vt >>> 31))), + (U[2] ^= Z), + (U[3] ^= de), + (U[12] ^= Z), + (U[13] ^= de), + (U[22] ^= Z), + (U[23] ^= de), + (U[32] ^= Z), + (U[33] ^= de), + (U[42] ^= Z), + (U[43] ^= de), + (Z = fe ^ ((Ne << 1) | (kt >>> 31))), + (de = ve ^ ((kt << 1) | (Ne >>> 31))), + (U[4] ^= Z), + (U[5] ^= de), + (U[14] ^= Z), + (U[15] ^= de), + (U[24] ^= Z), + (U[25] ^= de), + (U[34] ^= Z), + (U[35] ^= de), + (U[44] ^= Z), + (U[45] ^= de), + (Z = vt ^ ((Le << 1) | (ze >>> 31))), + (de = we ^ ((ze << 1) | (Le >>> 31))), + (U[6] ^= Z), + (U[7] ^= de), + (U[16] ^= Z), + (U[17] ^= de), + (U[26] ^= Z), + (U[27] ^= de), + (U[36] ^= Z), + (U[37] ^= de), + (U[46] ^= Z), + (U[47] ^= de), + (Z = Ne ^ ((pe << 1) | (lt >>> 31))), + (de = kt ^ ((lt << 1) | (pe >>> 31))), + (U[8] ^= Z), + (U[9] ^= de), + (U[18] ^= Z), + (U[19] ^= de), + (U[28] ^= Z), + (U[29] ^= de), + (U[38] ^= Z), + (U[39] ^= de), + (U[48] ^= Z), + (U[49] ^= de), + (It = U[0]), + (Se = U[1]), + (Ye = (U[11] << 4) | (U[10] >>> 28)), + (Gt = (U[10] << 4) | (U[11] >>> 28)), + (Je = (U[20] << 3) | (U[21] >>> 29)), + (zt = (U[21] << 3) | (U[20] >>> 29)), + (xr = (U[31] << 9) | (U[30] >>> 23)), + (Tr = (U[30] << 9) | (U[31] >>> 23)), + (qe = (U[40] << 18) | (U[41] >>> 14)), + (rt = (U[41] << 18) | (U[40] >>> 14)), + (Xe = (U[2] << 1) | (U[3] >>> 31)), + (Ut = (U[3] << 1) | (U[2] >>> 31)), + (Ke = (U[13] << 12) | (U[12] >>> 20)), + (Et = (U[12] << 12) | (U[13] >>> 20)), + (We = (U[22] << 10) | (U[23] >>> 22)), + (it = (U[23] << 10) | (U[22] >>> 22)), + (Re = (U[33] << 13) | (U[32] >>> 19)), + (Qe = (U[32] << 13) | (U[33] >>> 19)), + (Er = (U[42] << 2) | (U[43] >>> 30)), + (Cr = (U[43] << 2) | (U[42] >>> 30)), + (He = (U[5] << 30) | (U[4] >>> 2)), + (at = (U[4] << 30) | (U[5] >>> 2)), + (Ae = (U[14] << 6) | (U[15] >>> 26)), + (et = (U[15] << 6) | (U[14] >>> 26)), + (Me = (U[25] << 11) | (U[24] >>> 21)), + (Ge = (U[24] << 11) | (U[25] >>> 21)), + (Qt = (U[34] << 15) | (U[35] >>> 17)), + (Ue = (U[35] << 15) | (U[34] >>> 17)), + (jt = (U[45] << 29) | (U[44] >>> 3)), + (Be = (U[44] << 29) | (U[45] >>> 3)), + (ke = (U[6] << 28) | (U[7] >>> 4)), + ($e = (U[7] << 28) | (U[6] >>> 4)), + (Pr = (U[17] << 23) | (U[16] >>> 9)), + (qt = (U[16] << 23) | (U[17] >>> 9)), + (St = (U[26] << 25) | (U[27] >>> 7)), + (Oe = (U[27] << 25) | (U[26] >>> 7)), + (Dt = (U[36] << 21) | (U[37] >>> 11)), + (De = (U[37] << 21) | (U[36] >>> 11)), + (nt = (U[47] << 24) | (U[46] >>> 8)), + (tr = (U[46] << 24) | (U[47] >>> 8)), + (Vt = (U[8] << 27) | (U[9] >>> 5)), + (Ie = (U[9] << 27) | (U[8] >>> 5)), + (Ht = (U[18] << 20) | (U[19] >>> 12)), + (Pe = (U[19] << 20) | (U[18] >>> 12)), + (Ft = (U[29] << 7) | (U[28] >>> 25)), + (_r = (U[28] << 7) | (U[29] >>> 25)), + (tt = (U[38] << 8) | (U[39] >>> 24)), + (Kt = (U[39] << 8) | (U[38] >>> 24)), + (Ze = (U[48] << 14) | (U[49] >>> 18)), + (Wt = (U[49] << 14) | (U[48] >>> 18)), + (U[0] = It ^ (~Ke & Me)), + (U[1] = Se ^ (~Et & Ge)), + (U[10] = ke ^ (~Ht & Je)), + (U[11] = $e ^ (~Pe & zt)), + (U[20] = Xe ^ (~Ae & St)), + (U[21] = Ut ^ (~et & Oe)), + (U[30] = Vt ^ (~Ye & We)), + (U[31] = Ie ^ (~Gt & it)), + (U[40] = He ^ (~Pr & Ft)), + (U[41] = at ^ (~qt & _r)), + (U[2] = Ke ^ (~Me & Dt)), + (U[3] = Et ^ (~Ge & De)), + (U[12] = Ht ^ (~Je & Re)), + (U[13] = Pe ^ (~zt & Qe)), + (U[22] = Ae ^ (~St & tt)), + (U[23] = et ^ (~Oe & Kt)), + (U[32] = Ye ^ (~We & Qt)), + (U[33] = Gt ^ (~it & Ue)), + (U[42] = Pr ^ (~Ft & xr)), + (U[43] = qt ^ (~_r & Tr)), + (U[4] = Me ^ (~Dt & Ze)), + (U[5] = Ge ^ (~De & Wt)), + (U[14] = Je ^ (~Re & jt)), + (U[15] = zt ^ (~Qe & Be)), + (U[24] = St ^ (~tt & qe)), + (U[25] = Oe ^ (~Kt & rt)), + (U[34] = We ^ (~Qt & nt)), + (U[35] = it ^ (~Ue & tr)), + (U[44] = Ft ^ (~xr & Er)), + (U[45] = _r ^ (~Tr & Cr)), + (U[6] = Dt ^ (~Ze & It)), + (U[7] = De ^ (~Wt & Se)), + (U[16] = Re ^ (~jt & ke)), + (U[17] = Qe ^ (~Be & $e)), + (U[26] = tt ^ (~qe & Xe)), + (U[27] = Kt ^ (~rt & Ut)), + (U[36] = Qt ^ (~nt & Vt)), + (U[37] = Ue ^ (~tr & Ie)), + (U[46] = xr ^ (~Er & He)), + (U[47] = Tr ^ (~Cr & at)), + (U[8] = Ze ^ (~It & Ke)), + (U[9] = Wt ^ (~Se & Et)), + (U[18] = jt ^ (~ke & Ht)), + (U[19] = Be ^ (~$e & Pe)), + (U[28] = qe ^ (~Xe & Ae)), + (U[29] = rt ^ (~Ut & et)), + (U[38] = nt ^ (~Vt & Ye)), + (U[39] = tr ^ (~Ie & Gt)), + (U[48] = Er ^ (~He & Pr)), + (U[49] = Cr ^ (~at & qt)), + (U[0] ^= O[ne]), + (U[1] ^= O[ne + 1]); + }; + if (s) G8.exports = h; + else { + for (T = 0; T < b.length; ++T) n[b[T]] = h[b[T]]; + c && + define(function () { + return h; + }); + } + })(); + }); + var Nu = N((c1) => { + "use strict"; + _(); + x(); + var $pt = + (c1 && c1.__importDefault) || + function (r) { + return r && r.__esModule ? r : { default: r }; + }; + Object.defineProperty(c1, "__esModule", { value: !0 }); + c1.keccak256 = void 0; + var Jpt = $pt(KL()), + Zpt = Dr(); + function Qpt(r) { + return "0x" + Jpt.default.keccak_256((0, Zpt.arrayify)(r)); + } + c1.keccak256 = Qpt; + }); + var wae = N((Y8) => { + "use strict"; + _(); + x(); + Object.defineProperty(Y8, "__esModule", { value: !0 }); + Y8.version = void 0; + Y8.version = "rlp/5.7.0"; + }); + var $8 = N((u1) => { + "use strict"; + _(); + x(); + Object.defineProperty(u1, "__esModule", { value: !0 }); + u1.decode = u1.encode = void 0; + var gy = Dr(), + Vh = ir(), + Xpt = wae(), + Ip = new Vh.Logger(Xpt.version); + function _ae(r) { + for (var e = []; r; ) e.unshift(r & 255), (r >>= 8); + return e; + } + function xae(r, e, t) { + for (var n = 0, a = 0; a < t; a++) n = n * 256 + r[e + a]; + return n; + } + function Eae(r) { + if (Array.isArray(r)) { + var e = []; + if ( + (r.forEach(function (i) { + e = e.concat(Eae(i)); + }), + e.length <= 55) + ) + return e.unshift(192 + e.length), e; + var t = _ae(e.length); + return t.unshift(247 + t.length), t.concat(e); + } + (0, gy.isBytesLike)(r) || + Ip.throwArgumentError("RLP object must be BytesLike", "object", r); + var n = Array.prototype.slice.call((0, gy.arrayify)(r)); + if (n.length === 1 && n[0] <= 127) return n; + if (n.length <= 55) return n.unshift(128 + n.length), n; + var a = _ae(n.length); + return a.unshift(183 + a.length), a.concat(n); + } + function eht(r) { + return (0, gy.hexlify)(Eae(r)); + } + u1.encode = eht; + function Tae(r, e, t, n) { + for (var a = []; t < e + 1 + n; ) { + var i = Cae(r, t); + a.push(i.result), + (t += i.consumed), + t > e + 1 + n && + Ip.throwError( + "child data too short", + Vh.Logger.errors.BUFFER_OVERRUN, + {} + ); + } + return { consumed: 1 + n, result: a }; + } + function Cae(r, e) { + if ( + (r.length === 0 && + Ip.throwError("data too short", Vh.Logger.errors.BUFFER_OVERRUN, {}), + r[e] >= 248) + ) { + var t = r[e] - 247; + e + 1 + t > r.length && + Ip.throwError( + "data short segment too short", + Vh.Logger.errors.BUFFER_OVERRUN, + {} + ); + var n = xae(r, e + 1, t); + return ( + e + 1 + t + n > r.length && + Ip.throwError( + "data long segment too short", + Vh.Logger.errors.BUFFER_OVERRUN, + {} + ), + Tae(r, e, e + 1 + t, t + n) + ); + } else if (r[e] >= 192) { + var a = r[e] - 192; + return ( + e + 1 + a > r.length && + Ip.throwError( + "data array too short", + Vh.Logger.errors.BUFFER_OVERRUN, + {} + ), + Tae(r, e, e + 1, a) + ); + } else if (r[e] >= 184) { + var t = r[e] - 183; + e + 1 + t > r.length && + Ip.throwError( + "data array too short", + Vh.Logger.errors.BUFFER_OVERRUN, + {} + ); + var i = xae(r, e + 1, t); + e + 1 + t + i > r.length && + Ip.throwError( + "data array too short", + Vh.Logger.errors.BUFFER_OVERRUN, + {} + ); + var s = (0, gy.hexlify)(r.slice(e + 1 + t, e + 1 + t + i)); + return { consumed: 1 + t + i, result: s }; + } else if (r[e] >= 128) { + var c = r[e] - 128; + e + 1 + c > r.length && + Ip.throwError("data too short", Vh.Logger.errors.BUFFER_OVERRUN, {}); + var s = (0, gy.hexlify)(r.slice(e + 1, e + 1 + c)); + return { consumed: 1 + c, result: s }; + } + return { consumed: 1, result: (0, gy.hexlify)(r[e]) }; + } + function tht(r) { + var e = (0, gy.arrayify)(r), + t = Cae(e, 0); + return ( + t.consumed !== e.length && + Ip.throwArgumentError("invalid rlp data", "data", r), + t.result + ); + } + u1.decode = tht; + }); + var Iae = N((J8) => { + "use strict"; + _(); + x(); + Object.defineProperty(J8, "__esModule", { value: !0 }); + J8.version = void 0; + J8.version = "address/5.7.0"; + }); + var dl = N((ll) => { + "use strict"; + _(); + x(); + Object.defineProperty(ll, "__esModule", { value: !0 }); + ll.getCreate2Address = + ll.getContractAddress = + ll.getIcapAddress = + ll.isAddress = + ll.getAddress = + void 0; + var Gh = Dr(), + VL = zi(), + GL = Nu(), + rht = $8(), + nht = ir(), + aht = Iae(), + dm = new nht.Logger(aht.version); + function Aae(r) { + (0, Gh.isHexString)(r, 20) || + dm.throwArgumentError("invalid address", "address", r), + (r = r.toLowerCase()); + for ( + var e = r.substring(2).split(""), t = new Uint8Array(40), n = 0; + n < 40; + n++ + ) + t[n] = e[n].charCodeAt(0); + for ( + var a = (0, Gh.arrayify)((0, GL.keccak256)(t)), n = 0; + n < 40; + n += 2 + ) + a[n >> 1] >> 4 >= 8 && (e[n] = e[n].toUpperCase()), + (a[n >> 1] & 15) >= 8 && (e[n + 1] = e[n + 1].toUpperCase()); + return "0x" + e.join(""); + } + var iht = 9007199254740991; + function sht(r) { + return Math.log10 ? Math.log10(r) : Math.log(r) / Math.LN10; + } + var YL = {}; + for (vd = 0; vd < 10; vd++) YL[String(vd)] = String(vd); + var vd; + for (vd = 0; vd < 26; vd++) + YL[String.fromCharCode(65 + vd)] = String(10 + vd); + var vd, + kae = Math.floor(sht(iht)); + function Sae(r) { + (r = r.toUpperCase()), (r = r.substring(4) + r.substring(0, 2) + "00"); + for ( + var e = r + .split("") + .map(function (a) { + return YL[a]; + }) + .join(""); + e.length >= kae; + + ) { + var t = e.substring(0, kae); + e = (parseInt(t, 10) % 97) + e.substring(t.length); + } + for (var n = String(98 - (parseInt(e, 10) % 97)); n.length < 2; ) + n = "0" + n; + return n; + } + function by(r) { + var e = null; + if ( + (typeof r != "string" && + dm.throwArgumentError("invalid address", "address", r), + r.match(/^(0x)?[0-9a-fA-F]{40}$/)) + ) + r.substring(0, 2) !== "0x" && (r = "0x" + r), + (e = Aae(r)), + r.match(/([A-F].*[a-f])|([a-f].*[A-F])/) && + e !== r && + dm.throwArgumentError("bad address checksum", "address", r); + else if (r.match(/^XE[0-9]{2}[0-9A-Za-z]{30,31}$/)) { + for ( + r.substring(2, 4) !== Sae(r) && + dm.throwArgumentError("bad icap checksum", "address", r), + e = (0, VL._base36To16)(r.substring(4)); + e.length < 40; + + ) + e = "0" + e; + e = Aae("0x" + e); + } else dm.throwArgumentError("invalid address", "address", r); + return e; + } + ll.getAddress = by; + function oht(r) { + try { + return by(r), !0; + } catch {} + return !1; + } + ll.isAddress = oht; + function cht(r) { + for ( + var e = (0, VL._base16To36)(by(r).substring(2)).toUpperCase(); + e.length < 30; + + ) + e = "0" + e; + return "XE" + Sae("XE00" + e) + e; + } + ll.getIcapAddress = cht; + function uht(r) { + var e = null; + try { + e = by(r.from); + } catch { + dm.throwArgumentError("missing from address", "transaction", r); + } + var t = (0, Gh.stripZeros)( + (0, Gh.arrayify)(VL.BigNumber.from(r.nonce).toHexString()) + ); + return by( + (0, Gh.hexDataSlice)((0, GL.keccak256)((0, rht.encode)([e, t])), 12) + ); + } + ll.getContractAddress = uht; + function lht(r, e, t) { + return ( + (0, Gh.hexDataLength)(e) !== 32 && + dm.throwArgumentError("salt must be 32 bytes", "salt", e), + (0, Gh.hexDataLength)(t) !== 32 && + dm.throwArgumentError( + "initCodeHash must be 32 bytes", + "initCodeHash", + t + ), + by( + (0, Gh.hexDataSlice)( + (0, GL.keccak256)((0, Gh.concat)(["0xff", by(r), e, t])), + 12 + ) + ) + ); + } + ll.getCreate2Address = lht; + }); + var Pae = N((l1) => { + "use strict"; + _(); + x(); + var dht = + (l1 && l1.__extends) || + (function () { + var r = function (e, t) { + return ( + (r = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (n, a) { + n.__proto__ = a; + }) || + function (n, a) { + for (var i in a) + Object.prototype.hasOwnProperty.call(a, i) && (n[i] = a[i]); + }), + r(e, t) + ); + }; + return function (e, t) { + if (typeof t != "function" && t !== null) + throw new TypeError( + "Class extends value " + + String(t) + + " is not a constructor or null" + ); + r(e, t); + function n() { + this.constructor = e; + } + e.prototype = + t === null + ? Object.create(t) + : ((n.prototype = t.prototype), new n()); + }; + })(); + Object.defineProperty(l1, "__esModule", { value: !0 }); + l1.AddressCoder = void 0; + var Mae = dl(), + pht = Dr(), + hht = ul(), + fht = (function (r) { + dht(e, r); + function e(t) { + return r.call(this, "address", "address", t, !1) || this; + } + return ( + (e.prototype.defaultValue = function () { + return "0x0000000000000000000000000000000000000000"; + }), + (e.prototype.encode = function (t, n) { + try { + n = (0, Mae.getAddress)(n); + } catch (a) { + this._throwError(a.message, n); + } + return t.writeValue(n); + }), + (e.prototype.decode = function (t) { + return (0, Mae.getAddress)( + (0, pht.hexZeroPad)(t.readValue().toHexString(), 20) + ); + }), + e + ); + })(hht.Coder); + l1.AddressCoder = fht; + }); + var Rae = N((d1) => { + "use strict"; + _(); + x(); + var mht = + (d1 && d1.__extends) || + (function () { + var r = function (e, t) { + return ( + (r = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (n, a) { + n.__proto__ = a; + }) || + function (n, a) { + for (var i in a) + Object.prototype.hasOwnProperty.call(a, i) && (n[i] = a[i]); + }), + r(e, t) + ); + }; + return function (e, t) { + if (typeof t != "function" && t !== null) + throw new TypeError( + "Class extends value " + + String(t) + + " is not a constructor or null" + ); + r(e, t); + function n() { + this.constructor = e; + } + e.prototype = + t === null + ? Object.create(t) + : ((n.prototype = t.prototype), new n()); + }; + })(); + Object.defineProperty(d1, "__esModule", { value: !0 }); + d1.AnonymousCoder = void 0; + var yht = ul(), + ght = (function (r) { + mht(e, r); + function e(t) { + var n = r.call(this, t.name, t.type, void 0, t.dynamic) || this; + return (n.coder = t), n; + } + return ( + (e.prototype.defaultValue = function () { + return this.coder.defaultValue(); + }), + (e.prototype.encode = function (t, n) { + return this.coder.encode(t, n); + }), + (e.prototype.decode = function (t) { + return this.coder.decode(t); + }), + e + ); + })(yht.Coder); + d1.AnonymousCoder = ght; + }); + var JL = N((Ap) => { + "use strict"; + _(); + x(); + var bht = + (Ap && Ap.__extends) || + (function () { + var r = function (e, t) { + return ( + (r = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (n, a) { + n.__proto__ = a; + }) || + function (n, a) { + for (var i in a) + Object.prototype.hasOwnProperty.call(a, i) && (n[i] = a[i]); + }), + r(e, t) + ); + }; + return function (e, t) { + if (typeof t != "function" && t !== null) + throw new TypeError( + "Class extends value " + + String(t) + + " is not a constructor or null" + ); + r(e, t); + function n() { + this.constructor = e; + } + e.prototype = + t === null + ? Object.create(t) + : ((n.prototype = t.prototype), new n()); + }; + })(); + Object.defineProperty(Ap, "__esModule", { value: !0 }); + Ap.ArrayCoder = Ap.unpack = Ap.pack = void 0; + var h1 = ir(), + vht = s1(), + p1 = new h1.Logger(vht.version), + $L = ul(), + wht = Rae(); + function Bae(r, e, t) { + var n = null; + if (Array.isArray(t)) n = t; + else if (t && typeof t == "object") { + var a = {}; + n = e.map(function (d) { + var m = d.localName; + return ( + m || + p1.throwError( + "cannot encode object for signature with missing names", + h1.Logger.errors.INVALID_ARGUMENT, + { argument: "values", coder: d, value: t } + ), + a[m] && + p1.throwError( + "cannot encode object for signature with duplicate names", + h1.Logger.errors.INVALID_ARGUMENT, + { argument: "values", coder: d, value: t } + ), + (a[m] = !0), + t[m] + ); + }); + } else p1.throwArgumentError("invalid tuple value", "tuple", t); + e.length !== n.length && + p1.throwArgumentError("types/value length mismatch", "tuple", t); + var i = new $L.Writer(r.wordSize), + s = new $L.Writer(r.wordSize), + c = []; + e.forEach(function (d, m) { + var w = n[m]; + if (d.dynamic) { + var C = s.length; + d.encode(s, w); + var I = i.writeUpdatableValue(); + c.push(function (k) { + I(k + C); + }); + } else d.encode(i, w); + }), + c.forEach(function (d) { + d(i.length); + }); + var l = r.appendWriter(i); + return (l += r.appendWriter(s)), l; + } + Ap.pack = Bae; + function Nae(r, e) { + var t = [], + n = r.subReader(0); + e.forEach(function (c) { + var l = null; + if (c.dynamic) { + var d = r.readValue(), + m = n.subReader(d.toNumber()); + try { + l = c.decode(m); + } catch (w) { + if (w.code === h1.Logger.errors.BUFFER_OVERRUN) throw w; + (l = w), + (l.baseType = c.name), + (l.name = c.localName), + (l.type = c.type); + } + } else + try { + l = c.decode(r); + } catch (w) { + if (w.code === h1.Logger.errors.BUFFER_OVERRUN) throw w; + (l = w), + (l.baseType = c.name), + (l.name = c.localName), + (l.type = c.type); + } + l != null && t.push(l); + }); + var a = e.reduce(function (c, l) { + var d = l.localName; + return d && (c[d] || (c[d] = 0), c[d]++), c; + }, {}); + e.forEach(function (c, l) { + var d = c.localName; + if ( + !(!d || a[d] !== 1) && + (d === "length" && (d = "_length"), t[d] == null) + ) { + var m = t[l]; + m instanceof Error + ? Object.defineProperty(t, d, { + enumerable: !0, + get: function () { + throw m; + }, + }) + : (t[d] = m); + } + }); + for ( + var i = function (c) { + var l = t[c]; + l instanceof Error && + Object.defineProperty(t, c, { + enumerable: !0, + get: function () { + throw l; + }, + }); + }, + s = 0; + s < t.length; + s++ + ) + i(s); + return Object.freeze(t); + } + Ap.unpack = Nae; + var _ht = (function (r) { + bht(e, r); + function e(t, n, a) { + var i = this, + s = t.type + "[" + (n >= 0 ? n : "") + "]", + c = n === -1 || t.dynamic; + return ( + (i = r.call(this, "array", s, a, c) || this), + (i.coder = t), + (i.length = n), + i + ); + } + return ( + (e.prototype.defaultValue = function () { + for ( + var t = this.coder.defaultValue(), n = [], a = 0; + a < this.length; + a++ + ) + n.push(t); + return n; + }), + (e.prototype.encode = function (t, n) { + Array.isArray(n) || this._throwError("expected array value", n); + var a = this.length; + a === -1 && ((a = n.length), t.writeValue(n.length)), + p1.checkArgumentCount( + n.length, + a, + "coder array" + (this.localName ? " " + this.localName : "") + ); + for (var i = [], s = 0; s < n.length; s++) i.push(this.coder); + return Bae(t, i, n); + }), + (e.prototype.decode = function (t) { + var n = this.length; + n === -1 && + ((n = t.readValue().toNumber()), + n * 32 > t._data.length && + p1.throwError( + "insufficient data length", + h1.Logger.errors.BUFFER_OVERRUN, + { length: t._data.length, count: n } + )); + for (var a = [], i = 0; i < n; i++) + a.push(new wht.AnonymousCoder(this.coder)); + return t.coerce(this.name, Nae(t, a)); + }), + e + ); + })($L.Coder); + Ap.ArrayCoder = _ht; + }); + var Oae = N((f1) => { + "use strict"; + _(); + x(); + var xht = + (f1 && f1.__extends) || + (function () { + var r = function (e, t) { + return ( + (r = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (n, a) { + n.__proto__ = a; + }) || + function (n, a) { + for (var i in a) + Object.prototype.hasOwnProperty.call(a, i) && (n[i] = a[i]); + }), + r(e, t) + ); + }; + return function (e, t) { + if (typeof t != "function" && t !== null) + throw new TypeError( + "Class extends value " + + String(t) + + " is not a constructor or null" + ); + r(e, t); + function n() { + this.constructor = e; + } + e.prototype = + t === null + ? Object.create(t) + : ((n.prototype = t.prototype), new n()); + }; + })(); + Object.defineProperty(f1, "__esModule", { value: !0 }); + f1.BooleanCoder = void 0; + var Tht = ul(), + Eht = (function (r) { + xht(e, r); + function e(t) { + return r.call(this, "bool", "bool", t, !1) || this; + } + return ( + (e.prototype.defaultValue = function () { + return !1; + }), + (e.prototype.encode = function (t, n) { + return t.writeValue(n ? 1 : 0); + }), + (e.prototype.decode = function (t) { + return t.coerce(this.type, !t.readValue().isZero()); + }), + e + ); + })(Tht.Coder); + f1.BooleanCoder = Eht; + }); + var ZL = N((pm) => { + "use strict"; + _(); + x(); + var Lae = + (pm && pm.__extends) || + (function () { + var r = function (e, t) { + return ( + (r = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (n, a) { + n.__proto__ = a; + }) || + function (n, a) { + for (var i in a) + Object.prototype.hasOwnProperty.call(a, i) && (n[i] = a[i]); + }), + r(e, t) + ); + }; + return function (e, t) { + if (typeof t != "function" && t !== null) + throw new TypeError( + "Class extends value " + + String(t) + + " is not a constructor or null" + ); + r(e, t); + function n() { + this.constructor = e; + } + e.prototype = + t === null + ? Object.create(t) + : ((n.prototype = t.prototype), new n()); + }; + })(); + Object.defineProperty(pm, "__esModule", { value: !0 }); + pm.BytesCoder = pm.DynamicBytesCoder = void 0; + var Dae = Dr(), + Cht = ul(), + qae = (function (r) { + Lae(e, r); + function e(t, n) { + return r.call(this, t, t, n, !0) || this; + } + return ( + (e.prototype.defaultValue = function () { + return "0x"; + }), + (e.prototype.encode = function (t, n) { + n = (0, Dae.arrayify)(n); + var a = t.writeValue(n.length); + return (a += t.writeBytes(n)), a; + }), + (e.prototype.decode = function (t) { + return t.readBytes(t.readValue().toNumber(), !0); + }), + e + ); + })(Cht.Coder); + pm.DynamicBytesCoder = qae; + var Iht = (function (r) { + Lae(e, r); + function e(t) { + return r.call(this, "bytes", t) || this; + } + return ( + (e.prototype.decode = function (t) { + return t.coerce( + this.name, + (0, Dae.hexlify)(r.prototype.decode.call(this, t)) + ); + }), + e + ); + })(qae); + pm.BytesCoder = Iht; + }); + var Wae = N((m1) => { + "use strict"; + _(); + x(); + var Aht = + (m1 && m1.__extends) || + (function () { + var r = function (e, t) { + return ( + (r = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (n, a) { + n.__proto__ = a; + }) || + function (n, a) { + for (var i in a) + Object.prototype.hasOwnProperty.call(a, i) && (n[i] = a[i]); + }), + r(e, t) + ); + }; + return function (e, t) { + if (typeof t != "function" && t !== null) + throw new TypeError( + "Class extends value " + + String(t) + + " is not a constructor or null" + ); + r(e, t); + function n() { + this.constructor = e; + } + e.prototype = + t === null + ? Object.create(t) + : ((n.prototype = t.prototype), new n()); + }; + })(); + Object.defineProperty(m1, "__esModule", { value: !0 }); + m1.FixedBytesCoder = void 0; + var Fae = Dr(), + kht = ul(), + Sht = (function (r) { + Aht(e, r); + function e(t, n) { + var a = this, + i = "bytes" + String(t); + return (a = r.call(this, i, i, n, !1) || this), (a.size = t), a; + } + return ( + (e.prototype.defaultValue = function () { + return "0x0000000000000000000000000000000000000000000000000000000000000000".substring( + 0, + 2 + this.size * 2 + ); + }), + (e.prototype.encode = function (t, n) { + var a = (0, Fae.arrayify)(n); + return ( + a.length !== this.size && + this._throwError("incorrect data length", n), + t.writeBytes(a) + ); + }), + (e.prototype.decode = function (t) { + return t.coerce( + this.name, + (0, Fae.hexlify)(t.readBytes(this.size)) + ); + }), + e + ); + })(kht.Coder); + m1.FixedBytesCoder = Sht; + }); + var Uae = N((y1) => { + "use strict"; + _(); + x(); + var Mht = + (y1 && y1.__extends) || + (function () { + var r = function (e, t) { + return ( + (r = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (n, a) { + n.__proto__ = a; + }) || + function (n, a) { + for (var i in a) + Object.prototype.hasOwnProperty.call(a, i) && (n[i] = a[i]); + }), + r(e, t) + ); + }; + return function (e, t) { + if (typeof t != "function" && t !== null) + throw new TypeError( + "Class extends value " + + String(t) + + " is not a constructor or null" + ); + r(e, t); + function n() { + this.constructor = e; + } + e.prototype = + t === null + ? Object.create(t) + : ((n.prototype = t.prototype), new n()); + }; + })(); + Object.defineProperty(y1, "__esModule", { value: !0 }); + y1.NullCoder = void 0; + var Pht = ul(), + Rht = (function (r) { + Mht(e, r); + function e(t) { + return r.call(this, "null", "", t, !1) || this; + } + return ( + (e.prototype.defaultValue = function () { + return null; + }), + (e.prototype.encode = function (t, n) { + return ( + n != null && this._throwError("not null", n), t.writeBytes([]) + ); + }), + (e.prototype.decode = function (t) { + return t.readBytes(0), t.coerce(this.name, null); + }), + e + ); + })(Pht.Coder); + y1.NullCoder = Rht; + }); + var Hae = N((Z8) => { + "use strict"; + _(); + x(); + Object.defineProperty(Z8, "__esModule", { value: !0 }); + Z8.AddressZero = void 0; + Z8.AddressZero = "0x0000000000000000000000000000000000000000"; + }); + var zae = N((Es) => { + "use strict"; + _(); + x(); + Object.defineProperty(Es, "__esModule", { value: !0 }); + Es.MaxInt256 = + Es.MinInt256 = + Es.MaxUint256 = + Es.WeiPerEther = + Es.Two = + Es.One = + Es.Zero = + Es.NegativeOne = + void 0; + var hm = zi(), + Bht = hm.BigNumber.from(-1); + Es.NegativeOne = Bht; + var Nht = hm.BigNumber.from(0); + Es.Zero = Nht; + var Oht = hm.BigNumber.from(1); + Es.One = Oht; + var Lht = hm.BigNumber.from(2); + Es.Two = Lht; + var Dht = hm.BigNumber.from("1000000000000000000"); + Es.WeiPerEther = Dht; + var qht = hm.BigNumber.from( + "0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff" + ); + Es.MaxUint256 = qht; + var Fht = hm.BigNumber.from( + "-0x8000000000000000000000000000000000000000000000000000000000000000" + ); + Es.MinInt256 = Fht; + var Wht = hm.BigNumber.from( + "0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff" + ); + Es.MaxInt256 = Wht; + }); + var jae = N((Q8) => { + "use strict"; + _(); + x(); + Object.defineProperty(Q8, "__esModule", { value: !0 }); + Q8.HashZero = void 0; + Q8.HashZero = + "0x0000000000000000000000000000000000000000000000000000000000000000"; + }); + var Kae = N((X8) => { + "use strict"; + _(); + x(); + Object.defineProperty(X8, "__esModule", { value: !0 }); + X8.EtherSymbol = void 0; + X8.EtherSymbol = "\u039E"; + }); + var vy = N((di) => { + "use strict"; + _(); + x(); + Object.defineProperty(di, "__esModule", { value: !0 }); + di.EtherSymbol = + di.HashZero = + di.MaxInt256 = + di.MinInt256 = + di.MaxUint256 = + di.WeiPerEther = + di.Two = + di.One = + di.Zero = + di.NegativeOne = + di.AddressZero = + void 0; + var Uht = Hae(); + Object.defineProperty(di, "AddressZero", { + enumerable: !0, + get: function () { + return Uht.AddressZero; + }, + }); + var fm = zae(); + Object.defineProperty(di, "NegativeOne", { + enumerable: !0, + get: function () { + return fm.NegativeOne; + }, + }); + Object.defineProperty(di, "Zero", { + enumerable: !0, + get: function () { + return fm.Zero; + }, + }); + Object.defineProperty(di, "One", { + enumerable: !0, + get: function () { + return fm.One; + }, + }); + Object.defineProperty(di, "Two", { + enumerable: !0, + get: function () { + return fm.Two; + }, + }); + Object.defineProperty(di, "WeiPerEther", { + enumerable: !0, + get: function () { + return fm.WeiPerEther; + }, + }); + Object.defineProperty(di, "MaxUint256", { + enumerable: !0, + get: function () { + return fm.MaxUint256; + }, + }); + Object.defineProperty(di, "MinInt256", { + enumerable: !0, + get: function () { + return fm.MinInt256; + }, + }); + Object.defineProperty(di, "MaxInt256", { + enumerable: !0, + get: function () { + return fm.MaxInt256; + }, + }); + var Hht = jae(); + Object.defineProperty(di, "HashZero", { + enumerable: !0, + get: function () { + return Hht.HashZero; + }, + }); + var zht = Kae(); + Object.defineProperty(di, "EtherSymbol", { + enumerable: !0, + get: function () { + return zht.EtherSymbol; + }, + }); + }); + var Vae = N((g1) => { + "use strict"; + _(); + x(); + var jht = + (g1 && g1.__extends) || + (function () { + var r = function (e, t) { + return ( + (r = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (n, a) { + n.__proto__ = a; + }) || + function (n, a) { + for (var i in a) + Object.prototype.hasOwnProperty.call(a, i) && (n[i] = a[i]); + }), + r(e, t) + ); + }; + return function (e, t) { + if (typeof t != "function" && t !== null) + throw new TypeError( + "Class extends value " + + String(t) + + " is not a constructor or null" + ); + r(e, t); + function n() { + this.constructor = e; + } + e.prototype = + t === null + ? Object.create(t) + : ((n.prototype = t.prototype), new n()); + }; + })(); + Object.defineProperty(g1, "__esModule", { value: !0 }); + g1.NumberCoder = void 0; + var Kht = zi(), + e4 = vy(), + Vht = ul(), + Ght = (function (r) { + jht(e, r); + function e(t, n, a) { + var i = this, + s = (n ? "int" : "uint") + t * 8; + return ( + (i = r.call(this, s, s, a, !1) || this), + (i.size = t), + (i.signed = n), + i + ); + } + return ( + (e.prototype.defaultValue = function () { + return 0; + }), + (e.prototype.encode = function (t, n) { + var a = Kht.BigNumber.from(n), + i = e4.MaxUint256.mask(t.wordSize * 8); + if (this.signed) { + var s = i.mask(this.size * 8 - 1); + (a.gt(s) || a.lt(s.add(e4.One).mul(e4.NegativeOne))) && + this._throwError("value out-of-bounds", n); + } else + (a.lt(e4.Zero) || a.gt(i.mask(this.size * 8))) && + this._throwError("value out-of-bounds", n); + return ( + (a = a.toTwos(this.size * 8).mask(this.size * 8)), + this.signed && + (a = a.fromTwos(this.size * 8).toTwos(8 * t.wordSize)), + t.writeValue(a) + ); + }), + (e.prototype.decode = function (t) { + var n = t.readValue().mask(this.size * 8); + return ( + this.signed && (n = n.fromTwos(this.size * 8)), + t.coerce(this.name, n) + ); + }), + e + ); + })(Vht.Coder); + g1.NumberCoder = Ght; + }); + var Gae = N((t4) => { + "use strict"; + _(); + x(); + Object.defineProperty(t4, "__esModule", { value: !0 }); + t4.version = void 0; + t4.version = "strings/5.7.0"; + }); + var n4 = N((Oi) => { + "use strict"; + _(); + x(); + Object.defineProperty(Oi, "__esModule", { value: !0 }); + Oi.toUtf8CodePoints = + Oi.toUtf8String = + Oi._toUtf8String = + Oi._toEscapedUtf8String = + Oi.toUtf8Bytes = + Oi.Utf8ErrorFuncs = + Oi.Utf8ErrorReason = + Oi.UnicodeNormalizationForm = + void 0; + var Yae = Dr(), + Yht = ir(), + $ht = Gae(), + $ae = new Yht.Logger($ht.version), + r4; + (function (r) { + (r.current = ""), + (r.NFC = "NFC"), + (r.NFD = "NFD"), + (r.NFKC = "NFKC"), + (r.NFKD = "NFKD"); + })( + (r4 = Oi.UnicodeNormalizationForm || (Oi.UnicodeNormalizationForm = {})) + ); + var pl; + (function (r) { + (r.UNEXPECTED_CONTINUE = "unexpected continuation byte"), + (r.BAD_PREFIX = "bad codepoint prefix"), + (r.OVERRUN = "string overrun"), + (r.MISSING_CONTINUE = "missing continuation byte"), + (r.OUT_OF_RANGE = "out of UTF-8 range"), + (r.UTF16_SURROGATE = "UTF-16 surrogate"), + (r.OVERLONG = "overlong representation"); + })((pl = Oi.Utf8ErrorReason || (Oi.Utf8ErrorReason = {}))); + function Jht(r, e, t, n, a) { + return $ae.throwArgumentError( + "invalid codepoint at offset " + e + "; " + r, + "bytes", + t + ); + } + function Jae(r, e, t, n, a) { + if (r === pl.BAD_PREFIX || r === pl.UNEXPECTED_CONTINUE) { + for (var i = 0, s = e + 1; s < t.length && t[s] >> 6 === 2; s++) i++; + return i; + } + return r === pl.OVERRUN ? t.length - e - 1 : 0; + } + function Zht(r, e, t, n, a) { + return r === pl.OVERLONG + ? (n.push(a), 0) + : (n.push(65533), Jae(r, e, t, n, a)); + } + Oi.Utf8ErrorFuncs = Object.freeze({ + error: Jht, + ignore: Jae, + replace: Zht, + }); + function XL(r, e) { + e == null && (e = Oi.Utf8ErrorFuncs.error), (r = (0, Yae.arrayify)(r)); + for (var t = [], n = 0; n < r.length; ) { + var a = r[n++]; + if (a >> 7 === 0) { + t.push(a); + continue; + } + var i = null, + s = null; + if ((a & 224) === 192) (i = 1), (s = 127); + else if ((a & 240) === 224) (i = 2), (s = 2047); + else if ((a & 248) === 240) (i = 3), (s = 65535); + else { + (a & 192) === 128 + ? (n += e(pl.UNEXPECTED_CONTINUE, n - 1, r, t)) + : (n += e(pl.BAD_PREFIX, n - 1, r, t)); + continue; + } + if (n - 1 + i >= r.length) { + n += e(pl.OVERRUN, n - 1, r, t); + continue; + } + for (var c = a & ((1 << (8 - i - 1)) - 1), l = 0; l < i; l++) { + var d = r[n]; + if ((d & 192) != 128) { + (n += e(pl.MISSING_CONTINUE, n, r, t)), (c = null); + break; + } + (c = (c << 6) | (d & 63)), n++; + } + if (c !== null) { + if (c > 1114111) { + n += e(pl.OUT_OF_RANGE, n - 1 - i, r, t, c); + continue; + } + if (c >= 55296 && c <= 57343) { + n += e(pl.UTF16_SURROGATE, n - 1 - i, r, t, c); + continue; + } + if (c <= s) { + n += e(pl.OVERLONG, n - 1 - i, r, t, c); + continue; + } + t.push(c); + } + } + return t; + } + function Zae(r, e) { + e === void 0 && (e = r4.current), + e != r4.current && ($ae.checkNormalize(), (r = r.normalize(e))); + for (var t = [], n = 0; n < r.length; n++) { + var a = r.charCodeAt(n); + if (a < 128) t.push(a); + else if (a < 2048) t.push((a >> 6) | 192), t.push((a & 63) | 128); + else if ((a & 64512) == 55296) { + n++; + var i = r.charCodeAt(n); + if (n >= r.length || (i & 64512) !== 56320) + throw new Error("invalid utf-8 string"); + var s = 65536 + ((a & 1023) << 10) + (i & 1023); + t.push((s >> 18) | 240), + t.push(((s >> 12) & 63) | 128), + t.push(((s >> 6) & 63) | 128), + t.push((s & 63) | 128); + } else + t.push((a >> 12) | 224), + t.push(((a >> 6) & 63) | 128), + t.push((a & 63) | 128); + } + return (0, Yae.arrayify)(t); + } + Oi.toUtf8Bytes = Zae; + function QL(r) { + var e = "0000" + r.toString(16); + return "\\u" + e.substring(e.length - 4); + } + function Qht(r, e) { + return ( + '"' + + XL(r, e) + .map(function (t) { + if (t < 256) { + switch (t) { + case 8: + return "\\b"; + case 9: + return "\\t"; + case 10: + return "\\n"; + case 13: + return "\\r"; + case 34: + return '\\"'; + case 92: + return "\\\\"; + } + if (t >= 32 && t < 127) return String.fromCharCode(t); + } + return t <= 65535 + ? QL(t) + : ((t -= 65536), + QL(((t >> 10) & 1023) + 55296) + QL((t & 1023) + 56320)); + }) + .join("") + + '"' + ); + } + Oi._toEscapedUtf8String = Qht; + function Qae(r) { + return r + .map(function (e) { + return e <= 65535 + ? String.fromCharCode(e) + : ((e -= 65536), + String.fromCharCode( + ((e >> 10) & 1023) + 55296, + (e & 1023) + 56320 + )); + }) + .join(""); + } + Oi._toUtf8String = Qae; + function Xht(r, e) { + return Qae(XL(r, e)); + } + Oi.toUtf8String = Xht; + function eft(r, e) { + return e === void 0 && (e = r4.current), XL(Zae(r, e)); + } + Oi.toUtf8CodePoints = eft; + }); + var eie = N((b1) => { + "use strict"; + _(); + x(); + Object.defineProperty(b1, "__esModule", { value: !0 }); + b1.parseBytes32String = b1.formatBytes32String = void 0; + var tft = vy(), + eD = Dr(), + Xae = n4(); + function rft(r) { + var e = (0, Xae.toUtf8Bytes)(r); + if (e.length > 31) + throw new Error("bytes32 string must be less than 32 bytes"); + return (0, eD.hexlify)((0, eD.concat)([e, tft.HashZero]).slice(0, 32)); + } + b1.formatBytes32String = rft; + function nft(r) { + var e = (0, eD.arrayify)(r); + if (e.length !== 32) + throw new Error("invalid bytes32 - not 32 bytes long"); + if (e[31] !== 0) + throw new Error("invalid bytes32 string - no null terminator"); + for (var t = 31; e[t - 1] === 0; ) t--; + return (0, Xae.toUtf8String)(e.slice(0, t)); + } + b1.parseBytes32String = nft; + }); + var iie = N((kp) => { + "use strict"; + _(); + x(); + Object.defineProperty(kp, "__esModule", { value: !0 }); + kp.nameprep = + kp._nameprepTableC = + kp._nameprepTableB2 = + kp._nameprepTableA1 = + void 0; + var Dx = n4(); + function aft(r) { + if (r.length % 4 !== 0) throw new Error("bad data"); + for (var e = [], t = 0; t < r.length; t += 4) + e.push(parseInt(r.substring(t, t + 4), 16)); + return e; + } + function tD(r, e) { + e || + (e = function (a) { + return [parseInt(a, 16)]; + }); + var t = 0, + n = {}; + return ( + r.split(",").forEach(function (a) { + var i = a.split(":"); + (t += parseInt(i[0], 16)), (n[t] = e(i[1])); + }), + n + ); + } + function tie(r) { + var e = 0; + return r.split(",").map(function (t) { + var n = t.split("-"); + n.length === 1 ? (n[1] = "0") : n[1] === "" && (n[1] = "1"); + var a = e + parseInt(n[0], 16); + return (e = parseInt(n[1], 16)), { l: a, h: e }; + }); + } + function rD(r, e) { + for (var t = 0, n = 0; n < e.length; n++) { + var a = e[n]; + if ( + ((t += a.l), r >= t && r <= t + a.h && (r - t) % (a.d || 1) === 0) + ) { + if (a.e && a.e.indexOf(r - t) !== -1) continue; + return a; + } + } + return null; + } + var ift = tie( + "221,13-1b,5f-,40-10,51-f,11-3,3-3,2-2,2-4,8,2,15,2d,28-8,88,48,27-,3-5,11-20,27-,8,28,3-5,12,18,b-a,1c-4,6-16,2-d,2-2,2,1b-4,17-9,8f-,10,f,1f-2,1c-34,33-14e,4,36-,13-,6-2,1a-f,4,9-,3-,17,8,2-2,5-,2,8-,3-,4-8,2-3,3,6-,16-6,2-,7-3,3-,17,8,3,3,3-,2,6-3,3-,4-a,5,2-6,10-b,4,8,2,4,17,8,3,6-,b,4,4-,2-e,2-4,b-10,4,9-,3-,17,8,3-,5-,9-2,3-,4-7,3-3,3,4-3,c-10,3,7-2,4,5-2,3,2,3-2,3-2,4-2,9,4-3,6-2,4,5-8,2-e,d-d,4,9,4,18,b,6-3,8,4,5-6,3-8,3-3,b-11,3,9,4,18,b,6-3,8,4,5-6,3-6,2,3-3,b-11,3,9,4,18,11-3,7-,4,5-8,2-7,3-3,b-11,3,13-2,19,a,2-,8-2,2-3,7,2,9-11,4-b,3b-3,1e-24,3,2-,3,2-,2-5,5,8,4,2,2-,3,e,4-,6,2,7-,b-,3-21,49,23-5,1c-3,9,25,10-,2-2f,23,6,3,8-2,5-5,1b-45,27-9,2a-,2-3,5b-4,45-4,53-5,8,40,2,5-,8,2,5-,28,2,5-,20,2,5-,8,2,5-,8,8,18,20,2,5-,8,28,14-5,1d-22,56-b,277-8,1e-2,52-e,e,8-a,18-8,15-b,e,4,3-b,5e-2,b-15,10,b-5,59-7,2b-555,9d-3,5b-5,17-,7-,27-,7-,9,2,2,2,20-,36,10,f-,7,14-,4,a,54-3,2-6,6-5,9-,1c-10,13-1d,1c-14,3c-,10-6,32-b,240-30,28-18,c-14,a0,115-,3,66-,b-76,5,5-,1d,24,2,5-2,2,8-,35-2,19,f-10,1d-3,311-37f,1b,5a-b,d7-19,d-3,41,57-,68-4,29-3,5f,29-37,2e-2,25-c,2c-2,4e-3,30,78-3,64-,20,19b7-49,51a7-59,48e-2,38-738,2ba5-5b,222f-,3c-94,8-b,6-4,1b,6,2,3,3,6d-20,16e-f,41-,37-7,2e-2,11-f,5-b,18-,b,14,5-3,6,88-,2,bf-2,7-,7-,7-,4-2,8,8-9,8-2ff,20,5-b,1c-b4,27-,27-cbb1,f7-9,28-2,b5-221,56,48,3-,2-,3-,5,d,2,5,3,42,5-,9,8,1d,5,6,2-2,8,153-3,123-3,33-27fd,a6da-5128,21f-5df,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3,2-1d,61-ff7d" + ), + sft = "ad,34f,1806,180b,180c,180d,200b,200c,200d,2060,feff" + .split(",") + .map(function (r) { + return parseInt(r, 16); + }), + oft = [ + { h: 25, s: 32, l: 65 }, + { h: 30, s: 32, e: [23], l: 127 }, + { h: 54, s: 1, e: [48], l: 64, d: 2 }, + { h: 14, s: 1, l: 57, d: 2 }, + { h: 44, s: 1, l: 17, d: 2 }, + { h: 10, s: 1, e: [2, 6, 8], l: 61, d: 2 }, + { h: 16, s: 1, l: 68, d: 2 }, + { h: 84, s: 1, e: [18, 24, 66], l: 19, d: 2 }, + { h: 26, s: 32, e: [17], l: 435 }, + { h: 22, s: 1, l: 71, d: 2 }, + { h: 15, s: 80, l: 40 }, + { h: 31, s: 32, l: 16 }, + { h: 32, s: 1, l: 80, d: 2 }, + { h: 52, s: 1, l: 42, d: 2 }, + { h: 12, s: 1, l: 55, d: 2 }, + { h: 40, s: 1, e: [38], l: 15, d: 2 }, + { h: 14, s: 1, l: 48, d: 2 }, + { h: 37, s: 48, l: 49 }, + { h: 148, s: 1, l: 6351, d: 2 }, + { h: 88, s: 1, l: 160, d: 2 }, + { h: 15, s: 16, l: 704 }, + { h: 25, s: 26, l: 854 }, + { h: 25, s: 32, l: 55915 }, + { h: 37, s: 40, l: 1247 }, + { h: 25, s: -119711, l: 53248 }, + { h: 25, s: -119763, l: 52 }, + { h: 25, s: -119815, l: 52 }, + { h: 25, s: -119867, e: [1, 4, 5, 7, 8, 11, 12, 17], l: 52 }, + { h: 25, s: -119919, l: 52 }, + { h: 24, s: -119971, e: [2, 7, 8, 17], l: 52 }, + { h: 24, s: -120023, e: [2, 7, 13, 15, 16, 17], l: 52 }, + { h: 25, s: -120075, l: 52 }, + { h: 25, s: -120127, l: 52 }, + { h: 25, s: -120179, l: 52 }, + { h: 25, s: -120231, l: 52 }, + { h: 25, s: -120283, l: 52 }, + { h: 25, s: -120335, l: 52 }, + { h: 24, s: -119543, e: [17], l: 56 }, + { h: 24, s: -119601, e: [17], l: 58 }, + { h: 24, s: -119659, e: [17], l: 58 }, + { h: 24, s: -119717, e: [17], l: 58 }, + { h: 24, s: -119775, e: [17], l: 58 }, + ], + cft = tD( + "b5:3bc,c3:ff,7:73,2:253,5:254,3:256,1:257,5:259,1:25b,3:260,1:263,2:269,1:268,5:26f,1:272,2:275,7:280,3:283,5:288,3:28a,1:28b,5:292,3f:195,1:1bf,29:19e,125:3b9,8b:3b2,1:3b8,1:3c5,3:3c6,1:3c0,1a:3ba,1:3c1,1:3c3,2:3b8,1:3b5,1bc9:3b9,1c:1f76,1:1f77,f:1f7a,1:1f7b,d:1f78,1:1f79,1:1f7c,1:1f7d,107:63,5:25b,4:68,1:68,1:68,3:69,1:69,1:6c,3:6e,4:70,1:71,1:72,1:72,1:72,7:7a,2:3c9,2:7a,2:6b,1:e5,1:62,1:63,3:65,1:66,2:6d,b:3b3,1:3c0,6:64,1b574:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3" + ), + uft = tD( + "179:1,2:1,2:1,5:1,2:1,a:4f,a:1,8:1,2:1,2:1,3:1,5:1,3:1,4:1,2:1,3:1,4:1,8:2,1:1,2:2,1:1,2:2,27:2,195:26,2:25,1:25,1:25,2:40,2:3f,1:3f,33:1,11:-6,1:-9,1ac7:-3a,6d:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,b:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,c:-8,2:-8,2:-8,2:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,49:-8,1:-8,1:-4a,1:-4a,d:-56,1:-56,1:-56,1:-56,d:-8,1:-8,f:-8,1:-8,3:-7" + ), + lft = tD( + "df:00730073,51:00690307,19:02BC006E,a7:006A030C,18a:002003B9,16:03B903080301,20:03C503080301,1d7:05650582,190f:00680331,1:00740308,1:0077030A,1:0079030A,1:006102BE,b6:03C50313,2:03C503130300,2:03C503130301,2:03C503130342,2a:1F0003B9,1:1F0103B9,1:1F0203B9,1:1F0303B9,1:1F0403B9,1:1F0503B9,1:1F0603B9,1:1F0703B9,1:1F0003B9,1:1F0103B9,1:1F0203B9,1:1F0303B9,1:1F0403B9,1:1F0503B9,1:1F0603B9,1:1F0703B9,1:1F2003B9,1:1F2103B9,1:1F2203B9,1:1F2303B9,1:1F2403B9,1:1F2503B9,1:1F2603B9,1:1F2703B9,1:1F2003B9,1:1F2103B9,1:1F2203B9,1:1F2303B9,1:1F2403B9,1:1F2503B9,1:1F2603B9,1:1F2703B9,1:1F6003B9,1:1F6103B9,1:1F6203B9,1:1F6303B9,1:1F6403B9,1:1F6503B9,1:1F6603B9,1:1F6703B9,1:1F6003B9,1:1F6103B9,1:1F6203B9,1:1F6303B9,1:1F6403B9,1:1F6503B9,1:1F6603B9,1:1F6703B9,3:1F7003B9,1:03B103B9,1:03AC03B9,2:03B10342,1:03B1034203B9,5:03B103B9,6:1F7403B9,1:03B703B9,1:03AE03B9,2:03B70342,1:03B7034203B9,5:03B703B9,6:03B903080300,1:03B903080301,3:03B90342,1:03B903080342,b:03C503080300,1:03C503080301,1:03C10313,2:03C50342,1:03C503080342,b:1F7C03B9,1:03C903B9,1:03CE03B9,2:03C90342,1:03C9034203B9,5:03C903B9,ac:00720073,5b:00B00063,6:00B00066,d:006E006F,a:0073006D,1:00740065006C,1:0074006D,124f:006800700061,2:00610075,2:006F0076,b:00700061,1:006E0061,1:03BC0061,1:006D0061,1:006B0061,1:006B0062,1:006D0062,1:00670062,3:00700066,1:006E0066,1:03BC0066,4:0068007A,1:006B0068007A,1:006D0068007A,1:00670068007A,1:00740068007A,15:00700061,1:006B00700061,1:006D00700061,1:006700700061,8:00700076,1:006E0076,1:03BC0076,1:006D0076,1:006B0076,1:006D0076,1:00700077,1:006E0077,1:03BC0077,1:006D0077,1:006B0077,1:006D0077,1:006B03C9,1:006D03C9,2:00620071,3:00632215006B0067,1:0063006F002E,1:00640062,1:00670079,2:00680070,2:006B006B,1:006B006D,9:00700068,2:00700070006D,1:00700072,2:00730076,1:00770062,c723:00660066,1:00660069,1:0066006C,1:006600660069,1:00660066006C,1:00730074,1:00730074,d:05740576,1:05740565,1:0574056B,1:057E0576,1:0574056D", + aft + ), + dft = tie( + "80-20,2a0-,39c,32,f71,18e,7f2-f,19-7,30-4,7-5,f81-b,5,a800-20ff,4d1-1f,110,fa-6,d174-7,2e84-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,2,1f-5f,ff7f-20001" + ); + function pft(r) { + return r.reduce(function (e, t) { + return ( + t.forEach(function (n) { + e.push(n); + }), + e + ); + }, []); + } + function rie(r) { + return !!rD(r, ift); + } + kp._nameprepTableA1 = rie; + function nie(r) { + var e = rD(r, oft); + if (e) return [r + e.s]; + var t = cft[r]; + if (t) return t; + var n = uft[r]; + if (n) return [r + n[0]]; + var a = lft[r]; + return a || null; + } + kp._nameprepTableB2 = nie; + function aie(r) { + return !!rD(r, dft); + } + kp._nameprepTableC = aie; + function hft(r) { + if (r.match(/^[a-z0-9-]*$/i) && r.length <= 59) return r.toLowerCase(); + var e = (0, Dx.toUtf8CodePoints)(r); + (e = pft( + e.map(function (n) { + if (sft.indexOf(n) >= 0) return []; + if (n >= 65024 && n <= 65039) return []; + var a = nie(n); + return a || [n]; + }) + )), + (e = (0, Dx.toUtf8CodePoints)( + (0, Dx._toUtf8String)(e), + Dx.UnicodeNormalizationForm.NFKC + )), + e.forEach(function (n) { + if (aie(n)) throw new Error("STRINGPREP_CONTAINS_PROHIBITED"); + }), + e.forEach(function (n) { + if (rie(n)) throw new Error("STRINGPREP_CONTAINS_UNASSIGNED"); + }); + var t = (0, Dx._toUtf8String)(e); + if ( + t.substring(0, 1) === "-" || + t.substring(2, 4) === "--" || + t.substring(t.length - 1) === "-" + ) + throw new Error("invalid hyphen"); + return t; + } + kp.nameprep = hft; + }); + var Ki = N((ki) => { + "use strict"; + _(); + x(); + Object.defineProperty(ki, "__esModule", { value: !0 }); + ki.nameprep = + ki.parseBytes32String = + ki.formatBytes32String = + ki.UnicodeNormalizationForm = + ki.Utf8ErrorReason = + ki.Utf8ErrorFuncs = + ki.toUtf8String = + ki.toUtf8CodePoints = + ki.toUtf8Bytes = + ki._toEscapedUtf8String = + void 0; + var sie = eie(); + Object.defineProperty(ki, "formatBytes32String", { + enumerable: !0, + get: function () { + return sie.formatBytes32String; + }, + }); + Object.defineProperty(ki, "parseBytes32String", { + enumerable: !0, + get: function () { + return sie.parseBytes32String; + }, + }); + var fft = iie(); + Object.defineProperty(ki, "nameprep", { + enumerable: !0, + get: function () { + return fft.nameprep; + }, + }); + var wy = n4(); + Object.defineProperty(ki, "_toEscapedUtf8String", { + enumerable: !0, + get: function () { + return wy._toEscapedUtf8String; + }, + }); + Object.defineProperty(ki, "toUtf8Bytes", { + enumerable: !0, + get: function () { + return wy.toUtf8Bytes; + }, + }); + Object.defineProperty(ki, "toUtf8CodePoints", { + enumerable: !0, + get: function () { + return wy.toUtf8CodePoints; + }, + }); + Object.defineProperty(ki, "toUtf8String", { + enumerable: !0, + get: function () { + return wy.toUtf8String; + }, + }); + Object.defineProperty(ki, "UnicodeNormalizationForm", { + enumerable: !0, + get: function () { + return wy.UnicodeNormalizationForm; + }, + }); + Object.defineProperty(ki, "Utf8ErrorFuncs", { + enumerable: !0, + get: function () { + return wy.Utf8ErrorFuncs; + }, + }); + Object.defineProperty(ki, "Utf8ErrorReason", { + enumerable: !0, + get: function () { + return wy.Utf8ErrorReason; + }, + }); + }); + var cie = N((v1) => { + "use strict"; + _(); + x(); + var mft = + (v1 && v1.__extends) || + (function () { + var r = function (e, t) { + return ( + (r = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (n, a) { + n.__proto__ = a; + }) || + function (n, a) { + for (var i in a) + Object.prototype.hasOwnProperty.call(a, i) && (n[i] = a[i]); + }), + r(e, t) + ); + }; + return function (e, t) { + if (typeof t != "function" && t !== null) + throw new TypeError( + "Class extends value " + + String(t) + + " is not a constructor or null" + ); + r(e, t); + function n() { + this.constructor = e; + } + e.prototype = + t === null + ? Object.create(t) + : ((n.prototype = t.prototype), new n()); + }; + })(); + Object.defineProperty(v1, "__esModule", { value: !0 }); + v1.StringCoder = void 0; + var oie = Ki(), + yft = ZL(), + gft = (function (r) { + mft(e, r); + function e(t) { + return r.call(this, "string", t) || this; + } + return ( + (e.prototype.defaultValue = function () { + return ""; + }), + (e.prototype.encode = function (t, n) { + return r.prototype.encode.call(this, t, (0, oie.toUtf8Bytes)(n)); + }), + (e.prototype.decode = function (t) { + return (0, oie.toUtf8String)(r.prototype.decode.call(this, t)); + }), + e + ); + })(yft.DynamicBytesCoder); + v1.StringCoder = gft; + }); + var lie = N((w1) => { + "use strict"; + _(); + x(); + var bft = + (w1 && w1.__extends) || + (function () { + var r = function (e, t) { + return ( + (r = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (n, a) { + n.__proto__ = a; + }) || + function (n, a) { + for (var i in a) + Object.prototype.hasOwnProperty.call(a, i) && (n[i] = a[i]); + }), + r(e, t) + ); + }; + return function (e, t) { + if (typeof t != "function" && t !== null) + throw new TypeError( + "Class extends value " + + String(t) + + " is not a constructor or null" + ); + r(e, t); + function n() { + this.constructor = e; + } + e.prototype = + t === null + ? Object.create(t) + : ((n.prototype = t.prototype), new n()); + }; + })(); + Object.defineProperty(w1, "__esModule", { value: !0 }); + w1.TupleCoder = void 0; + var vft = ul(), + uie = JL(), + wft = (function (r) { + bft(e, r); + function e(t, n) { + var a = this, + i = !1, + s = []; + t.forEach(function (l) { + l.dynamic && (i = !0), s.push(l.type); + }); + var c = "tuple(" + s.join(",") + ")"; + return ( + (a = r.call(this, "tuple", c, n, i) || this), (a.coders = t), a + ); + } + return ( + (e.prototype.defaultValue = function () { + var t = []; + this.coders.forEach(function (a) { + t.push(a.defaultValue()); + }); + var n = this.coders.reduce(function (a, i) { + var s = i.localName; + return s && (a[s] || (a[s] = 0), a[s]++), a; + }, {}); + return ( + this.coders.forEach(function (a, i) { + var s = a.localName; + !s || + n[s] !== 1 || + (s === "length" && (s = "_length"), + t[s] == null && (t[s] = t[i])); + }), + Object.freeze(t) + ); + }), + (e.prototype.encode = function (t, n) { + return (0, uie.pack)(t, this.coders, n); + }), + (e.prototype.decode = function (t) { + return t.coerce(this.name, (0, uie.unpack)(t, this.coders)); + }), + e + ); + })(vft.Coder); + w1.TupleCoder = wft; + }); + var aD = N((_1) => { + "use strict"; + _(); + x(); + Object.defineProperty(_1, "__esModule", { value: !0 }); + _1.defaultAbiCoder = _1.AbiCoder = void 0; + var _ft = Dr(), + xft = ja(), + pie = ir(), + Tft = s1(), + a4 = new pie.Logger(Tft.version), + die = ul(), + Eft = Pae(), + Cft = JL(), + Ift = Oae(), + Aft = ZL(), + kft = Wae(), + Sft = Uae(), + Mft = Vae(), + Pft = cie(), + i4 = lie(), + nD = V8(), + Rft = new RegExp(/^bytes([0-9]*)$/), + Bft = new RegExp(/^(u?int)([0-9]*)$/), + hie = (function () { + function r(e) { + (0, xft.defineReadOnly)(this, "coerceFunc", e || null); + } + return ( + (r.prototype._getCoder = function (e) { + var t = this; + switch (e.baseType) { + case "address": + return new Eft.AddressCoder(e.name); + case "bool": + return new Ift.BooleanCoder(e.name); + case "string": + return new Pft.StringCoder(e.name); + case "bytes": + return new Aft.BytesCoder(e.name); + case "array": + return new Cft.ArrayCoder( + this._getCoder(e.arrayChildren), + e.arrayLength, + e.name + ); + case "tuple": + return new i4.TupleCoder( + (e.components || []).map(function (i) { + return t._getCoder(i); + }), + e.name + ); + case "": + return new Sft.NullCoder(e.name); + } + var n = e.type.match(Bft); + if (n) { + var a = parseInt(n[2] || "256"); + return ( + (a === 0 || a > 256 || a % 8 !== 0) && + a4.throwArgumentError( + "invalid " + n[1] + " bit length", + "param", + e + ), + new Mft.NumberCoder(a / 8, n[1] === "int", e.name) + ); + } + if (((n = e.type.match(Rft)), n)) { + var a = parseInt(n[1]); + return ( + (a === 0 || a > 32) && + a4.throwArgumentError("invalid bytes length", "param", e), + new kft.FixedBytesCoder(a, e.name) + ); + } + return a4.throwArgumentError("invalid type", "type", e.type); + }), + (r.prototype._getWordSize = function () { + return 32; + }), + (r.prototype._getReader = function (e, t) { + return new die.Reader(e, this._getWordSize(), this.coerceFunc, t); + }), + (r.prototype._getWriter = function () { + return new die.Writer(this._getWordSize()); + }), + (r.prototype.getDefaultValue = function (e) { + var t = this, + n = e.map(function (i) { + return t._getCoder(nD.ParamType.from(i)); + }), + a = new i4.TupleCoder(n, "_"); + return a.defaultValue(); + }), + (r.prototype.encode = function (e, t) { + var n = this; + e.length !== t.length && + a4.throwError( + "types/values length mismatch", + pie.Logger.errors.INVALID_ARGUMENT, + { + count: { types: e.length, values: t.length }, + value: { types: e, values: t }, + } + ); + var a = e.map(function (c) { + return n._getCoder(nD.ParamType.from(c)); + }), + i = new i4.TupleCoder(a, "_"), + s = this._getWriter(); + return i.encode(s, t), s.data; + }), + (r.prototype.decode = function (e, t, n) { + var a = this, + i = e.map(function (c) { + return a._getCoder(nD.ParamType.from(c)); + }), + s = new i4.TupleCoder(i, "_"); + return s.decode(this._getReader((0, _ft.arrayify)(t), n)); + }), + r + ); + })(); + _1.AbiCoder = hie; + _1.defaultAbiCoder = new hie(); + }); + var iD = N((s4) => { + "use strict"; + _(); + x(); + Object.defineProperty(s4, "__esModule", { value: !0 }); + s4.id = void 0; + var Nft = Nu(), + Oft = Ki(); + function Lft(r) { + return (0, Nft.keccak256)((0, Oft.toUtf8Bytes)(r)); + } + s4.id = Lft; + }); + var sD = N((o4) => { + "use strict"; + _(); + x(); + Object.defineProperty(o4, "__esModule", { value: !0 }); + o4.version = void 0; + o4.version = "hash/5.7.0"; + }); + var mie = N((x1) => { + "use strict"; + _(); + x(); + Object.defineProperty(x1, "__esModule", { value: !0 }); + x1.encode = x1.decode = void 0; + var fie = Dr(); + function Dft(r) { + r = atob(r); + for (var e = [], t = 0; t < r.length; t++) e.push(r.charCodeAt(t)); + return (0, fie.arrayify)(e); + } + x1.decode = Dft; + function qft(r) { + r = (0, fie.arrayify)(r); + for (var e = "", t = 0; t < r.length; t++) e += String.fromCharCode(r[t]); + return btoa(e); + } + x1.encode = qft; + }); + var qx = N((T1) => { + "use strict"; + _(); + x(); + Object.defineProperty(T1, "__esModule", { value: !0 }); + T1.encode = T1.decode = void 0; + var yie = mie(); + Object.defineProperty(T1, "decode", { + enumerable: !0, + get: function () { + return yie.decode; + }, + }); + Object.defineProperty(T1, "encode", { + enumerable: !0, + get: function () { + return yie.encode; + }, + }); + }); + var cD = N((Cs) => { + "use strict"; + _(); + x(); + Object.defineProperty(Cs, "__esModule", { value: !0 }); + Cs.read_emoji_trie = + Cs.read_zero_terminated_array = + Cs.read_mapped_map = + Cs.read_member_array = + Cs.signed = + Cs.read_compressed_payload = + Cs.read_payload = + Cs.decode_arithmetic = + void 0; + function bie(r, e) { + e == null && (e = 1); + var t = [], + n = t.forEach, + a = function (i, s) { + n.call(i, function (c) { + s > 0 && Array.isArray(c) ? a(c, s - 1) : t.push(c); + }); + }; + return a(r, e), t; + } + function Fft(r) { + for (var e = {}, t = 0; t < r.length; t++) { + var n = r[t]; + e[n[0]] = n[1]; + } + return e; + } + function vie(r) { + var e = 0; + function t() { + return (r[e++] << 8) | r[e++]; + } + for (var n = t(), a = 1, i = [0, 1], s = 1; s < n; s++) + i.push((a += t())); + var c = t(), + l = e; + e += c; + var d = 0, + m = 0; + function w() { + return d == 0 && ((m = (m << 8) | r[e++]), (d = 8)), (m >> --d) & 1; + } + for ( + var C = 31, + I = Math.pow(2, C), + k = I >>> 1, + O = k >> 1, + D = I - 1, + W = 0, + s = 0; + s < C; + s++ + ) + W = (W << 1) | w(); + for (var H = [], j = 0, V = I; ; ) { + for ( + var te = Math.floor(((W - j + 1) * a - 1) / V), $ = 0, ae = n; + ae - $ > 1; + + ) { + var Y = ($ + ae) >>> 1; + te < i[Y] ? (ae = Y) : ($ = Y); + } + if ($ == 0) break; + H.push($); + for ( + var K = j + Math.floor((V * i[$]) / a), + g = j + Math.floor((V * i[$ + 1]) / a) - 1; + ((K ^ g) & k) == 0; + + ) + (W = ((W << 1) & D) | w()), + (K = (K << 1) & D), + (g = ((g << 1) & D) | 1); + for (; K & ~g & O; ) + (W = (W & k) | ((W << 1) & (D >>> 1)) | w()), + (K = (K << 1) ^ k), + (g = ((g ^ k) << 1) | k | 1); + (j = K), (V = 1 + g - K); + } + var o = n - 4; + return H.map(function (p) { + switch (p - o) { + case 3: + return o + 65792 + ((r[l++] << 16) | (r[l++] << 8) | r[l++]); + case 2: + return o + 256 + ((r[l++] << 8) | r[l++]); + case 1: + return o + r[l++]; + default: + return p - 1; + } + }); + } + Cs.decode_arithmetic = vie; + function wie(r) { + var e = 0; + return function () { + return r[e++]; + }; + } + Cs.read_payload = wie; + function Wft(r) { + return wie(vie(r)); + } + Cs.read_compressed_payload = Wft; + function _ie(r) { + return r & 1 ? ~r >> 1 : r >> 1; + } + Cs.signed = _ie; + function Uft(r, e) { + for (var t = Array(r), n = 0; n < r; n++) t[n] = 1 + e(); + return t; + } + function gie(r, e) { + for (var t = Array(r), n = 0, a = -1; n < r; n++) t[n] = a += 1 + e(); + return t; + } + function Hft(r, e) { + for (var t = Array(r), n = 0, a = 0; n < r; n++) t[n] = a += _ie(e()); + return t; + } + function oD(r, e) { + for ( + var t = gie(r(), r), n = r(), a = gie(n, r), i = Uft(n, r), s = 0; + s < n; + s++ + ) + for (var c = 0; c < i[s]; c++) t.push(a[s] + c); + return e + ? t.map(function (l) { + return e[l]; + }) + : t; + } + Cs.read_member_array = oD; + function zft(r) { + for (var e = []; ; ) { + var t = r(); + if (t == 0) break; + e.push(jft(t, r)); + } + for (;;) { + var t = r() - 1; + if (t < 0) break; + e.push(Kft(t, r)); + } + return Fft(bie(e)); + } + Cs.read_mapped_map = zft; + function xie(r) { + for (var e = []; ; ) { + var t = r(); + if (t == 0) break; + e.push(t); + } + return e; + } + Cs.read_zero_terminated_array = xie; + function Tie(r, e, t) { + for ( + var n = Array(r) + .fill(void 0) + .map(function () { + return []; + }), + a = 0; + a < e; + a++ + ) + Hft(r, t).forEach(function (i, s) { + return n[s].push(i); + }); + return n; + } + function jft(r, e) { + var t = 1 + e(), + n = e(), + a = xie(e), + i = Tie(a.length, 1 + r, e); + return bie( + i.map(function (s, c) { + var l = s[0], + d = s.slice(1); + return Array(a[c]) + .fill(void 0) + .map(function (m, w) { + var C = w * n; + return [ + l + w * t, + d.map(function (I) { + return I + C; + }), + ]; + }); + }) + ); + } + function Kft(r, e) { + var t = 1 + e(), + n = Tie(t, 1 + r, e); + return n.map(function (a) { + return [a[0], a.slice(1)]; + }); + } + function Vft(r) { + var e = oD(r).sort(function (n, a) { + return n - a; + }); + return t(); + function t() { + for (var n = []; ; ) { + var a = oD(r, e); + if (a.length == 0) break; + n.push({ set: new Set(a), node: t() }); + } + n.sort(function (m, w) { + return w.set.size - m.set.size; + }); + var i = r(), + s = i % 3; + i = (i / 3) | 0; + var c = !!(i & 1); + i >>= 1; + var l = i == 1, + d = i == 2; + return { branches: n, valid: s, fe0f: c, save: l, check: d }; + } + } + Cs.read_emoji_trie = Vft; + }); + var Eie = N((c4) => { + "use strict"; + _(); + x(); + Object.defineProperty(c4, "__esModule", { value: !0 }); + c4.getData = void 0; + var Gft = qx(), + Yft = cD(); + function $ft() { + return (0, Yft.read_compressed_payload)( + (0, Gft.decode)( + "AEQF2AO2DEsA2wIrAGsBRABxAN8AZwCcAEwAqgA0AGwAUgByADcATAAVAFYAIQAyACEAKAAYAFgAGwAjABQAMAAmADIAFAAfABQAKwATACoADgAbAA8AHQAYABoAGQAxADgALAAoADwAEwA9ABMAGgARAA4ADwAWABMAFgAIAA8AHgQXBYMA5BHJAS8JtAYoAe4AExozi0UAH21tAaMnBT8CrnIyhrMDhRgDygIBUAEHcoFHUPe8AXBjAewCjgDQR8IICIcEcQLwATXCDgzvHwBmBoHNAqsBdBcUAykgDhAMShskMgo8AY8jqAQfAUAfHw8BDw87MioGlCIPBwZCa4ELatMAAMspJVgsDl8AIhckSg8XAHdvTwBcIQEiDT4OPhUqbyECAEoAS34Aej8Ybx83JgT/Xw8gHxZ/7w8RICxPHA9vBw+Pfw8PHwAPFv+fAsAvCc8vEr8ivwD/EQ8Bol8OEBa/A78hrwAPCU8vESNvvwWfHwNfAVoDHr+ZAAED34YaAdJPAK7PLwSEgDLHAGo1Pz8Pvx9fUwMrpb8O/58VTzAPIBoXIyQJNF8hpwIVAT8YGAUADDNBaX3RAMomJCg9EhUeA29MABsZBTMNJipjOhc19gcIDR8bBwQHEggCWi6DIgLuAQYA+BAFCha3A5XiAEsqM7UFFgFLhAMjFTMYE1Klnw74nRVBG/ASCm0BYRN/BrsU3VoWy+S0vV8LQx+vN8gF2AC2AK5EAWwApgYDKmAAroQ0NDQ0AT+OCg7wAAIHRAbpNgVcBV0APTA5BfbPFgMLzcYL/QqqA82eBALKCjQCjqYCht0/k2+OAsXQAoP3ASTKDgDw6ACKAUYCMpIKJpRaAE4A5womABzZvs0REEKiACIQAd5QdAECAj4Ywg/wGqY2AVgAYADYvAoCGAEubA0gvAY2ALAAbpbvqpyEAGAEpgQAJgAG7gAgAEACmghUFwCqAMpAINQIwC4DthRAAPcycKgApoIdABwBfCisABoATwBqASIAvhnSBP8aH/ECeAKXAq40NjgDBTwFYQU6AXs3oABgAD4XNgmcCY1eCl5tIFZeUqGgyoNHABgAEQAaABNwWQAmABMATPMa3T34ADldyprmM1M2XociUQgLzvwAXT3xABgAEQAaABNwIGFAnADD8AAgAD4BBJWzaCcIAIEBFMAWwKoAAdq9BWAF5wLQpALEtQAKUSGkahR4GnJM+gsAwCgeFAiUAECQ0BQuL8AAIAAAADKeIheclvFqQAAETr4iAMxIARMgAMIoHhQIAn0E0pDQFC4HhznoAAAAIAI2C0/4lvFqQAAETgBJJwYCAy4ABgYAFAA8MBKYEH4eRhTkAjYeFcgACAYAeABsOqyQ5gRwDayqugEgaIIAtgoACgDmEABmBAWGme5OBJJA2m4cDeoAmITWAXwrMgOgAGwBCh6CBXYF1Tzg1wKAAFdiuABRAFwAXQBsAG8AdgBrAHYAbwCEAHEwfxQBVE5TEQADVFhTBwBDANILAqcCzgLTApQCrQL6vAAMAL8APLhNBKkE6glGKTAU4Dr4N2EYEwBCkABKk8rHAbYBmwIoAiU4Ajf/Aq4CowCAANIChzgaNBsCsTgeODcFXrgClQKdAqQBiQGYAqsCsjTsNHsfNPA0ixsAWTWiOAMFPDQSNCk2BDZHNow2TTZUNhk28Jk9VzI3QkEoAoICoQKwAqcAQAAxBV4FXbS9BW47YkIXP1ciUqs05DS/FwABUwJW11e6nHuYZmSh/RAYA8oMKvZ8KASoUAJYWAJ6ILAsAZSoqjpgA0ocBIhmDgDWAAawRDQoAAcuAj5iAHABZiR2AIgiHgCaAU68ACxuHAG0ygM8MiZIAlgBdF4GagJqAPZOHAMuBgoATkYAsABiAHgAMLoGDPj0HpKEBAAOJgAuALggTAHWAeAMEDbd20Uege0ADwAWADkAQgA9OHd+2MUQZBBhBgNNDkxxPxUQArEPqwvqERoM1irQ090ANK4H8ANYB/ADWANYB/AH8ANYB/ADWANYA1gDWBwP8B/YxRBkD00EcgWTBZAE2wiIJk4RhgctCNdUEnQjHEwDSgEBIypJITuYMxAlR0wRTQgIATZHbKx9PQNMMbBU+pCnA9AyVDlxBgMedhKlAC8PeCE1uk6DekxxpQpQT7NX9wBFBgASqwAS5gBJDSgAUCwGPQBI4zTYABNGAE2bAE3KAExdGABKaAbgAFBXAFCOAFBJABI2SWdObALDOq0//QomCZhvwHdTBkIQHCemEPgMNAG2ATwN7kvZBPIGPATKH34ZGg/OlZ0Ipi3eDO4m5C6igFsj9iqEBe5L9TzeC05RaQ9aC2YJ5DpkgU8DIgEOIowK3g06CG4Q9ArKbA3mEUYHOgPWSZsApgcCCxIdNhW2JhFirQsKOXgG/Br3C5AmsBMqev0F1BoiBk4BKhsAANAu6IWxWjJcHU9gBgQLJiPIFKlQIQ0mQLh4SRocBxYlqgKSQ3FKiFE3HpQh9zw+DWcuFFF9B/Y8BhlQC4I8n0asRQ8R0z6OPUkiSkwtBDaALDAnjAnQD4YMunxzAVoJIgmyDHITMhEYN8YIOgcaLpclJxYIIkaWYJsE+KAD9BPSAwwFQAlCBxQDthwuEy8VKgUOgSXYAvQ21i60ApBWgQEYBcwPJh/gEFFH4Q7qCJwCZgOEJewALhUiABginAhEZABgj9lTBi7MCMhqbSN1A2gU6GIRdAeSDlgHqBw0FcAc4nDJXgyGCSiksAlcAXYJmgFgBOQICjVcjKEgQmdUi1kYnCBiQUBd/QIyDGYVoES+h3kCjA9sEhwBNgF0BzoNAgJ4Ee4RbBCWCOyGBTW2M/k6JgRQIYQgEgooA1BszwsoJvoM+WoBpBJjAw00PnfvZ6xgtyUX/gcaMsZBYSHyC5NPzgydGsIYQ1QvGeUHwAP0GvQn60FYBgADpAQUOk4z7wS+C2oIjAlAAEoOpBgH2BhrCnKM0QEyjAG4mgNYkoQCcJAGOAcMAGgMiAV65gAeAqgIpAAGANADWAA6Aq4HngAaAIZCAT4DKDABIuYCkAOUCDLMAZYwAfQqBBzEDBYA+DhuSwLDsgKAa2ajBd5ZAo8CSjYBTiYEBk9IUgOwcuIA3ABMBhTgSAEWrEvMG+REAeBwLADIAPwABjYHBkIBzgH0bgC4AWALMgmjtLYBTuoqAIQAFmwB2AKKAN4ANgCA8gFUAE4FWvoF1AJQSgESMhksWGIBvAMgATQBDgB6BsyOpsoIIARuB9QCEBwV4gLvLwe2AgMi4BPOQsYCvd9WADIXUu5eZwqoCqdeaAC0YTQHMnM9UQAPH6k+yAdy/BZIiQImSwBQ5gBQQzSaNTFWSTYBpwGqKQK38AFtqwBI/wK37gK3rQK3sAK6280C0gK33AK3zxAAUEIAUD9SklKDArekArw5AEQAzAHCO147WTteO1k7XjtZO147WTteO1kDmChYI03AVU0oJqkKbV9GYewMpw3VRMk6ShPcYFJgMxPJLbgUwhXPJVcZPhq9JwYl5VUKDwUt1GYxCC00dhe9AEApaYNCY4ceMQpMHOhTklT5LRwAskujM7ANrRsWREEFSHXuYisWDwojAmSCAmJDXE6wXDchAqH4AmiZAmYKAp+FOBwMAmY8AmYnBG8EgAN/FAN+kzkHOXgYOYM6JCQCbB4CMjc4CwJtyAJtr/CLADRoRiwBaADfAOIASwYHmQyOAP8MwwAOtgJ3MAJ2o0ACeUxEAni7Hl3cRa9G9AJ8QAJ6yQJ9CgJ88UgBSH5kJQAsFklZSlwWGErNAtECAtDNSygDiFADh+dExpEzAvKiXQQDA69Lz0wuJgTQTU1NsAKLQAKK2cIcCB5EaAa4Ao44Ao5dQZiCAo7aAo5deVG1UzYLUtVUhgKT/AKTDQDqAB1VH1WwVdEHLBwplocy4nhnRTw6ApegAu+zWCKpAFomApaQApZ9nQCqWa1aCoJOADwClrYClk9cRVzSApnMApllXMtdCBoCnJw5wzqeApwXAp+cAp65iwAeEDIrEAKd8gKekwC2PmE1YfACntQCoG8BqgKeoCACnk+mY8lkKCYsAiewAiZ/AqD8AqBN2AKmMAKlzwKoAAB+AqfzaH1osgAESmodatICrOQCrK8CrWgCrQMCVx4CVd0CseLYAx9PbJgCsr4OArLpGGzhbWRtSWADJc4Ctl08QG6RAylGArhfArlIFgK5K3hwN3DiAr0aAy2zAzISAr6JcgMDM3ICvhtzI3NQAsPMAsMFc4N0TDZGdOEDPKgDPJsDPcACxX0CxkgCxhGKAshqUgLIRQLJUALJLwJkngLd03h6YniveSZL0QMYpGcDAmH1GfSVJXsMXpNevBICz2wCz20wTFTT9BSgAMeuAs90ASrrA04TfkwGAtwoAtuLAtJQA1JdA1NgAQIDVY2AikABzBfuYUZ2AILPg44C2sgC2d+EEYRKpz0DhqYAMANkD4ZyWvoAVgLfZgLeuXR4AuIw7RUB8zEoAfScAfLTiALr9ALpcXoAAur6AurlAPpIAboC7ooC652Wq5cEAu5AA4XhmHpw4XGiAvMEAGoDjheZlAL3FAORbwOSiAL3mQL52gL4Z5odmqy8OJsfA52EAv77ARwAOp8dn7QDBY4DpmsDptoA0sYDBmuhiaIGCgMMSgFgASACtgNGAJwEgLpoBgC8BGzAEowcggCEDC6kdjoAJAM0C5IKRoABZCgiAIzw3AYBLACkfng9ogigkgNmWAN6AEQCvrkEVqTGAwCsBRbAA+4iQkMCHR072jI2PTbUNsk2RjY5NvA23TZKNiU3EDcZN5I+RTxDRTBCJkK5VBYKFhZfwQCWygU3AJBRHpu+OytgNxa61A40GMsYjsn7BVwFXQVcBV0FaAVdBVwFXQVcBV0FXAVdBVwFXUsaCNyKAK4AAQUHBwKU7oICoW1e7jAEzgPxA+YDwgCkBFDAwADABKzAAOxFLhitA1UFTDeyPkM+bj51QkRCuwTQWWQ8X+0AWBYzsACNA8xwzAGm7EZ/QisoCTAbLDs6fnLfb8H2GccsbgFw13M1HAVkBW/Jxsm9CNRO8E8FDD0FBQw9FkcClOYCoMFegpDfADgcMiA2AJQACB8AsigKAIzIEAJKeBIApY5yPZQIAKQiHb4fvj5BKSRPQrZCOz0oXyxgOywfKAnGbgMClQaCAkILXgdeCD9IIGUgQj5fPoY+dT52Ao5CM0dAX9BTVG9SDzFwWTQAbxBzJF/lOEIQQglCCkKJIAls5AcClQICoKPMODEFxhi6KSAbiyfIRrMjtCgdWCAkPlFBIitCsEJRzAbMAV/OEyQzDg0OAQQEJ36i328/Mk9AybDJsQlq3tDRApUKAkFzXf1d/j9uALYP6hCoFgCTGD8kPsFKQiobrm0+zj0KSD8kPnVCRBwMDyJRTHFgMTJa5rwXQiQ2YfI/JD7BMEJEHGINTw4TOFlIRzwJO0icMQpyPyQ+wzJCRBv6DVgnKB01NgUKj2bwYzMqCoBkznBgEF+zYDIocwRIX+NgHj4HICNfh2C4CwdwFWpTG/lgUhYGAwRfv2Ts8mAaXzVgml/XYIJfuWC4HI1gUF9pYJZgMR6ilQHMAOwLAlDRefC0in4AXAEJA6PjCwc0IamOANMMCAECRQDFNRTZBgd+CwQlRA+r6+gLBDEFBnwUBXgKATIArwAGRAAHA3cDdAN2A3kDdwN9A3oDdQN7A30DfAN4A3oDfQAYEAAlAtYASwMAUAFsAHcKAHcAmgB3AHUAdQB2AHVu8UgAygDAAHcAdQB1AHYAdQALCgB3AAsAmgB3AAsCOwB3AAtu8UgAygDAAHgKAJoAdwB3AHUAdQB2AHUAeAB1AHUAdgB1bvFIAMoAwAALCgCaAHcACwB3AAsCOwB3AAtu8UgAygDAAH4ACwGgALcBpwC6AahdAu0COwLtbvFIAMoAwAALCgCaAu0ACwLtAAsCOwLtAAtu8UgAygDAA24ACwNvAAu0VsQAAzsAABCkjUIpAAsAUIusOggWcgMeBxVsGwL67U/2HlzmWOEeOgALASvuAAseAfpKUpnpGgYJDCIZM6YyARUE9ThqAD5iXQgnAJYJPnOzw0ZAEZxEKsIAkA4DhAHnTAIDxxUDK0lxCQlPYgIvIQVYJQBVqE1GakUAKGYiDToSBA1EtAYAXQJYAIF8GgMHRyAAIAjOe9YncekRAA0KACUrjwE7Ayc6AAYWAqaiKG4McEcqANoN3+Mg9TwCBhIkuCny+JwUQ29L008JluRxu3K+oAdqiHOqFH0AG5SUIfUJ5SxCGfxdipRzqTmT4V5Zb+r1Uo4Vm+NqSSEl2mNvR2JhIa8SpYO6ntdwFXHCWTCK8f2+Hxo7uiG3drDycAuKIMP5bhi06ACnqArH1rz4Rqg//lm6SgJGEVbF9xJHISaR6HxqxSnkw6shDnelHKNEfGUXSJRJ1GcsmtJw25xrZMDK9gXSm1/YMkdX4/6NKYOdtk/NQ3/NnDASjTc3fPjIjW/5sVfVObX2oTDWkr1dF9f3kxBsD3/3aQO8hPfRz+e0uEiJqt1161griu7gz8hDDwtpy+F+BWtefnKHZPAxcZoWbnznhJpy0e842j36bcNzGnIEusgGX0a8ZxsnjcSsPDZ09yZ36fCQbriHeQ72JRMILNl6ePPf2HWoVwgWAm1fb3V2sAY0+B6rAXqSwPBgseVmoqsBTSrm91+XasMYYySI8eeRxH3ZvHkMz3BQ5aJ3iUVbYPNM3/7emRtjlsMgv/9VyTsyt/mK+8fgWeT6SoFaclXqn42dAIsvAarF5vNNWHzKSkKQ/8Hfk5ZWK7r9yliOsooyBjRhfkHP4Q2DkWXQi6FG/9r/IwbmkV5T7JSopHKn1pJwm9tb5Ot0oyN1Z2mPpKXHTxx2nlK08fKk1hEYA8WgVVWL5lgx0iTv+KdojJeU23ZDjmiubXOxVXJKKi2Wjuh2HLZOFLiSC7Tls5SMh4f+Pj6xUSrNjFqLGehRNB8lC0QSLNmkJJx/wSG3MnjE9T1CkPwJI0wH2lfzwETIiVqUxg0dfu5q39Gt+hwdcxkhhNvQ4TyrBceof3Mhs/IxFci1HmHr4FMZgXEEczPiGCx0HRwzAqDq2j9AVm1kwN0mRVLWLylgtoPNapF5cY4Y1wJh/e0BBwZj44YgZrDNqvD/9Hv7GFYdUQeDJuQ3EWI4HaKqavU1XjC/n41kT4L79kqGq0kLhdTZvgP3TA3fS0ozVz+5piZsoOtIvBUFoMKbNcmBL6YxxaUAusHB38XrS8dQMnQwJfUUkpRoGr5AUeWicvBTzyK9g77+yCkf5PAysL7r/JjcZgrbvRpMW9iyaxZvKO6ceZN2EwIxKwVFPuvFuiEPGCoagbMo+SpydLrXqBzNCDGFCrO/rkcwa2xhokQZ5CdZ0AsU3JfSqJ6n5I14YA+P/uAgfhPU84Tlw7cEFfp7AEE8ey4sP12PTt4Cods1GRgDOB5xvyiR5m+Bx8O5nBCNctU8BevfV5A08x6RHd5jcwPTMDSZJOedIZ1cGQ704lxbAzqZOP05ZxaOghzSdvFBHYqomATARyAADK4elP8Ly3IrUZKfWh23Xy20uBUmLS4Pfagu9+oyVa2iPgqRP3F2CTUsvJ7+RYnN8fFZbU/HVvxvcFFDKkiTqV5UBZ3Gz54JAKByi9hkKMZJvuGgcSYXFmw08UyoQyVdfTD1/dMkCHXcTGAKeROgArsvmRrQTLUOXioOHGK2QkjHuoYFgXciZoTJd6Fs5q1QX1G+p/e26hYsEf7QZD1nnIyl/SFkNtYYmmBhpBrxl9WbY0YpHWRuw2Ll/tj9mD8P4snVzJl4F9J+1arVeTb9E5r2ILH04qStjxQNwn3m4YNqxmaNbLAqW2TN6LidwuJRqS+NXbtqxoeDXpxeGWmxzSkWxjkyCkX4NQRme6q5SAcC+M7+9ETfA/EwrzQajKakCwYyeunP6ZFlxU2oMEn1Pz31zeStW74G406ZJFCl1wAXIoUKkWotYEpOuXB1uVNxJ63dpJEqfxBeptwIHNrPz8BllZoIcBoXwgfJ+8VAUnVPvRvexnw0Ma/WiGYuJO5y8QTvEYBigFmhUxY5RqzE8OcywN/8m4UYrlaniJO75XQ6KSo9+tWHlu+hMi0UVdiKQp7NelnoZUzNaIyBPVeOwK6GNp+FfHuPOoyhaWuNvTYFkvxscMQWDh+zeFCFkgwbXftiV23ywJ4+uwRqmg9k3KzwIQpzppt8DBBOMbrqwQM5Gb05sEwdKzMiAqOloaA/lr0KA+1pr0/+HiWoiIjHA/wir2nIuS3PeU/ji3O6ZwoxcR1SZ9FhtLC5S0FIzFhbBWcGVP/KpxOPSiUoAdWUpqKH++6Scz507iCcxYI6rdMBICPJZea7OcmeFw5mObJSiqpjg2UoWNIs+cFhyDSt6geV5qgi3FunmwwDoGSMgerFOZGX1m0dMCYo5XOruxO063dwENK9DbnVM9wYFREzh4vyU1WYYJ/LRRp6oxgjqP/X5a8/4Af6p6NWkQferzBmXme0zY/4nwMJm/wd1tIqSwGz+E3xPEAOoZlJit3XddD7/BT1pllzOx+8bmQtANQ/S6fZexc6qi3W+Q2xcmXTUhuS5mpHQRvcxZUN0S5+PL9lXWUAaRZhEH8hTdAcuNMMCuVNKTEGtSUKNi3O6KhSaTzck8csZ2vWRZ+d7mW8c4IKwXIYd25S/zIftPkwPzufjEvOHWVD1m+FjpDVUTV0DGDuHj6QnaEwLu/dEgdLQOg9E1Sro9XHJ8ykLAwtPu+pxqKDuFexqON1sKQm7rwbE1E68UCfA/erovrTCG+DBSNg0l4goDQvZN6uNlbyLpcZAwj2UclycvLpIZMgv4yRlpb3YuMftozorbcGVHt/VeDV3+Fdf1TP0iuaCsPi2G4XeGhsyF1ubVDxkoJhmniQ0/jSg/eYML9KLfnCFgISWkp91eauR3IQvED0nAPXK+6hPCYs+n3+hCZbiskmVMG2da+0EsZPonUeIY8EbfusQXjsK/eFDaosbPjEfQS0RKG7yj5GG69M7MeO1HmiUYocgygJHL6M1qzUDDwUSmr99V7Sdr2F3JjQAJY+F0yH33Iv3+C9M38eML7gTgmNu/r2bUMiPvpYbZ6v1/IaESirBHNa7mPKn4dEmYg7v/+HQgPN1G79jBQ1+soydfDC2r+h2Bl/KIc5KjMK7OH6nb1jLsNf0EHVe2KBiE51ox636uyG6Lho0t3J34L5QY/ilE3mikaF4HKXG1mG1rCevT1Vv6GavltxoQe/bMrpZvRggnBxSEPEeEzkEdOxTnPXHVjUYdw8JYvjB/o7Eegc3Ma+NUxLLnsK0kJlinPmUHzHGtrk5+CAbVzFOBqpyy3QVUnzTDfC/0XD94/okH+OB+i7g9lolhWIjSnfIb+Eq43ZXOWmwvjyV/qqD+t0e+7mTEM74qP/Ozt8nmC7mRpyu63OB4KnUzFc074SqoyPUAgM+/TJGFo6T44EHnQU4X4z6qannVqgw/U7zCpwcmXV1AubIrvOmkKHazJAR55ePjp5tLBsN8vAqs3NAHdcEHOR2xQ0lsNAFzSUuxFQCFYvXLZJdOj9p4fNq6p0HBGUik2YzaI4xySy91KzhQ0+q1hjxvImRwPRf76tChlRkhRCi74NXZ9qUNeIwP+s5p+3m5nwPdNOHgSLD79n7O9m1n1uDHiMntq4nkYwV5OZ1ENbXxFd4PgrlvavZsyUO4MqYlqqn1O8W/I1dEZq5dXhrbETLaZIbC2Kj/Aa/QM+fqUOHdf0tXAQ1huZ3cmWECWSXy/43j35+Mvq9xws7JKseriZ1pEWKc8qlzNrGPUGcVgOa9cPJYIJsGnJTAUsEcDOEVULO5x0rXBijc1lgXEzQQKhROf8zIV82w8eswc78YX11KYLWQRcgHNJElBxfXr72lS2RBSl07qTKorO2uUDZr3sFhYsvnhLZn0A94KRzJ/7DEGIAhW5ZWFpL8gEwu1aLA9MuWZzNwl8Oze9Y+bX+v9gywRVnoB5I/8kXTXU3141yRLYrIOOz6SOnyHNy4SieqzkBXharjfjqq1q6tklaEbA8Qfm2DaIPs7OTq/nvJBjKfO2H9bH2cCMh1+5gspfycu8f/cuuRmtDjyqZ7uCIMyjdV3a+p3fqmXsRx4C8lujezIFHnQiVTXLXuI1XrwN3+siYYj2HHTvESUx8DlOTXpak9qFRK+L3mgJ1WsD7F4cu1aJoFoYQnu+wGDMOjJM3kiBQWHCcvhJ/HRdxodOQp45YZaOTA22Nb4XKCVxqkbwMYFhzYQYIAnCW8FW14uf98jhUG2zrKhQQ0q0CEq0t5nXyvUyvR8DvD69LU+g3i+HFWQMQ8PqZuHD+sNKAV0+M6EJC0szq7rEr7B5bQ8BcNHzvDMc9eqB5ZCQdTf80Obn4uzjwpYU7SISdtV0QGa9D3Wrh2BDQtpBKxaNFV+/Cy2P/Sv+8s7Ud0Fd74X4+o/TNztWgETUapy+majNQ68Lq3ee0ZO48VEbTZYiH1Co4OlfWef82RWeyUXo7woM03PyapGfikTnQinoNq5z5veLpeMV3HCAMTaZmA1oGLAn7XS3XYsz+XK7VMQsc4XKrmDXOLU/pSXVNUq8dIqTba///3x6LiLS6xs1xuCAYSfcQ3+rQgmu7uvf3THKt5Ooo97TqcbRqxx7EASizaQCBQllG/rYxVapMLgtLbZS64w1MDBMXX+PQpBKNwqUKOf2DDRDUXQf9EhOS0Qj4nTmlA8dzSLz/G1d+Ud8MTy/6ghhdiLpeerGY/UlDOfiuqFsMUU5/UYlP+BAmgRLuNpvrUaLlVkrqDievNVEAwF+4CoM1MZTmjxjJMsKJq+u8Zd7tNCUFy6LiyYXRJQ4VyvEQFFaCGKsxIwQkk7EzZ6LTJq2hUuPhvAW+gQnSG6J+MszC+7QCRHcnqDdyNRJ6T9xyS87A6MDutbzKGvGktpbXqtzWtXb9HsfK2cBMomjN9a4y+TaJLnXxAeX/HWzmf4cR4vALt/P4w4qgKY04ml4ZdLOinFYS6cup3G/1ie4+t1eOnpBNlqGqs75ilzkT4+DsZQxNvaSKJ//6zIbbk/M7LOhFmRc/1R+kBtz7JFGdZm/COotIdvQoXpTqP/1uqEUmCb/QWoGLMwO5ANcHzxdY48IGP5+J+zKOTBFZ4Pid+GTM+Wq12MV/H86xEJptBa6T+p3kgpwLedManBHC2GgNrFpoN2xnrMz9WFWX/8/ygSBkavq2Uv7FdCsLEYLu9LLIvAU0bNRDtzYl+/vXmjpIvuJFYjmI0im6QEYqnIeMsNjXG4vIutIGHijeAG/9EDBozKV5cldkHbLxHh25vT+ZEzbhXlqvpzKJwcEgfNwLAKFeo0/pvEE10XDB+EXRTXtSzJozQKFFAJhMxYkVaCW+E9AL7tMeU8acxidHqzb6lX4691UsDpy/LLRmT+epgW56+5Cw8tB4kMUv6s9lh3eRKbyGs+H/4mQMaYzPTf2OOdokEn+zzgvoD3FqNKk8QqGAXVsqcGdXrT62fSPkR2vROFi68A6se86UxRUk4cajfPyCC4G5wDhD+zNq4jodQ4u4n/m37Lr36n4LIAAsVr02dFi9AiwA81MYs2rm4eDlDNmdMRvEKRHfBwW5DdMNp0jPFZMeARqF/wL4XBfd+EMLBfMzpH5GH6NaW+1vrvMdg+VxDzatk3MXgO3ro3P/DpcC6+Mo4MySJhKJhSR01SGGGp5hPWmrrUgrv3lDnP+HhcI3nt3YqBoVAVTBAQT5iuhTg8nvPtd8ZeYj6w1x6RqGUBrSku7+N1+BaasZvjTk64RoIDlL8brpEcJx3OmY7jLoZsswdtmhfC/G21llXhITOwmvRDDeTTPbyASOa16cF5/A1fZAidJpqju3wYAy9avPR1ya6eNp9K8XYrrtuxlqi+bDKwlfrYdR0RRiKRVTLOH85+ZY7XSmzRpfZBJjaTa81VDcJHpZnZnSQLASGYW9l51ZV/h7eVzTi3Hv6hUsgc/51AqJRTkpbFVLXXszoBL8nBX0u/0jBLT8nH+fJePbrwURT58OY+UieRjd1vs04w0VG5VN2U6MoGZkQzKN/ptz0Q366dxoTGmj7i1NQGHi9GgnquXFYdrCfZBmeb7s0T6yrdlZH5cZuwHFyIJ/kAtGsTg0xH5taAAq44BAk1CPk9KVVbqQzrCUiFdF/6gtlPQ8bHHc1G1W92MXGZ5HEHftyLYs8mbD/9xYRUWkHmlM0zC2ilJlnNgV4bfALpQghxOUoZL7VTqtCHIaQSXm+YUMnpkXybnV+A6xlm2CVy8fn0Xlm2XRa0+zzOa21JWWmixfiPMSCZ7qA4rS93VN3pkpF1s5TonQjisHf7iU9ZGvUPOAKZcR1pbeVf/Ul7OhepGCaId9wOtqo7pJ7yLcBZ0pFkOF28y4zEI/kcUNmutBHaQpBdNM8vjCS6HZRokkeo88TBAjGyG7SR+6vUgTcyK9Imalj0kuxz0wmK+byQU11AiJFk/ya5dNduRClcnU64yGu/ieWSeOos1t3ep+RPIWQ2pyTYVbZltTbsb7NiwSi3AV+8KLWk7LxCnfZUetEM8ThnsSoGH38/nyAwFguJp8FjvlHtcWZuU4hPva0rHfr0UhOOJ/F6vS62FW7KzkmRll2HEc7oUq4fyi5T70Vl7YVIfsPHUCdHesf9Lk7WNVWO75JDkYbMI8TOW8JKVtLY9d6UJRITO8oKo0xS+o99Yy04iniGHAaGj88kEWgwv0OrHdY/nr76DOGNS59hXCGXzTKUvDl9iKpLSWYN1lxIeyywdNpTkhay74w2jFT6NS8qkjo5CxA1yfSYwp6AJIZNKIeEK5PJAW7ORgWgwp0VgzYpqovMrWxbu+DGZ6Lhie1RAqpzm8VUzKJOH3mCzWuTOLsN3VT/dv2eeYe9UjbR8YTBsLz7q60VN1sU51k+um1f8JxD5pPhbhSC8rRaB454tmh6YUWrJI3+GWY0qeWioj/tbkYITOkJaeuGt4JrJvHA+l0Gu7kY7XOaa05alMnRWVCXqFgLIwSY4uF59Ue5SU4QKuc/HamDxbr0x6csCetXGoP7Qn1Bk/J9DsynO/UD6iZ1Hyrz+jit0hDCwi/E9OjgKTbB3ZQKQ/0ZOvevfNHG0NK4Aj3Cp7NpRk07RT1i/S0EL93Ag8GRgKI9CfpajKyK6+Jj/PI1KO5/85VAwz2AwzP8FTBb075IxCXv6T9RVvWT2tUaqxDS92zrGUbWzUYk9mSs82pECH+fkqsDt93VW++4YsR/dHCYcQSYTO/KaBMDj9LSD/J/+z20Kq8XvZUAIHtm9hRPP3ItbuAu2Hm5lkPs92pd7kCxgRs0xOVBnZ13ccdA0aunrwv9SdqElJRC3g+oCu+nXyCgmXUs9yMjTMAIHfxZV+aPKcZeUBWt057Xo85Ks1Ir5gzEHCWqZEhrLZMuF11ziGtFQUds/EESajhagzcKsxamcSZxGth4UII+adPhQkUnx2WyN+4YWR+r3f8MnkyGFuR4zjzxJS8WsQYR5PTyRaD9ixa6Mh741nBHbzfjXHskGDq179xaRNrCIB1z1xRfWfjqw2pHc1zk9xlPpL8sQWAIuETZZhbnmL54rceXVNRvUiKrrqIkeogsl0XXb17ylNb0f4GA9Wd44vffEG8FSZGHEL2fbaTGRcSiCeA8PmA/f6Hz8HCS76fXUHwgwkzSwlI71ekZ7Fapmlk/KC+Hs8hUcw3N2LN5LhkVYyizYFl/uPeVP5lsoJHhhfWvvSWruCUW1ZcJOeuTbrDgywJ/qG07gZJplnTvLcYdNaH0KMYOYMGX+rB4NGPFmQsNaIwlWrfCezxre8zXBrsMT+edVLbLqN1BqB76JH4BvZTqUIMfGwPGEn+EnmTV86fPBaYbFL3DFEhjB45CewkXEAtJxk4/Ms2pPXnaRqdky0HOYdcUcE2zcXq4vaIvW2/v0nHFJH2XXe22ueDmq/18XGtELSq85j9X8q0tcNSSKJIX8FTuJF/Pf8j5PhqG2u+osvsLxYrvvfeVJL+4tkcXcr9JV7v0ERmj/X6fM3NC4j6dS1+9Umr2oPavqiAydTZPLMNRGY23LO9zAVDly7jD+70G5TPPLdhRIl4WxcYjLnM+SNcJ26FOrkrISUtPObIz5Zb3AG612krnpy15RMW+1cQjlnWFI6538qky9axd2oJmHIHP08KyP0ubGO+TQNOYuv2uh17yCIvR8VcStw7o1g0NM60sk+8Tq7YfIBJrtp53GkvzXH7OA0p8/n/u1satf/VJhtR1l8Wa6Gmaug7haSpaCaYQax6ta0mkutlb+eAOSG1aobM81D9A4iS1RRlzBBoVX6tU1S6WE2N9ORY6DfeLRC4l9Rvr5h95XDWB2mR1d4WFudpsgVYwiTwT31ljskD8ZyDOlm5DkGh9N/UB/0AI5Xvb8ZBmai2hQ4BWMqFwYnzxwB26YHSOv9WgY3JXnvoN+2R4rqGVh/LLDMtpFP+SpMGJNWvbIl5SOodbCczW2RKleksPoUeGEzrjtKHVdtZA+kfqO+rVx/iclCqwoopepvJpSTDjT+b9GWylGRF8EDbGlw6eUzmJM95Ovoz+kwLX3c2fTjFeYEsE7vUZm3mqdGJuKh2w9/QGSaqRHs99aScGOdDqkFcACoqdbBoQqqjamhH6Q9ng39JCg3lrGJwd50Qk9ovnqBTr8MME7Ps2wiVfygUmPoUBJJfJWX5Nda0nuncbFkA==" + ) + ); + } + c4.getData = $ft; + }); + var kie = N((E1) => { + "use strict"; + _(); + x(); + Object.defineProperty(E1, "__esModule", { value: !0 }); + E1.ens_normalize = E1.ens_normalize_post_check = void 0; + var Jft = Ki(), + Zft = Eie(), + u4 = (0, Zft.getData)(), + l4 = cD(), + Qft = new Set((0, l4.read_member_array)(u4)), + Xft = new Set((0, l4.read_member_array)(u4)), + emt = (0, l4.read_mapped_map)(u4), + tmt = (0, l4.read_emoji_trie)(u4), + Cie = 45, + Iie = 95; + function Aie(r) { + return (0, Jft.toUtf8CodePoints)(r); + } + function rmt(r) { + return r.filter(function (e) { + return e != 65039; + }); + } + function uD(r) { + for (var e = 0, t = r.split("."); e < t.length; e++) { + var n = t[e], + a = Aie(n); + try { + for (var i = a.lastIndexOf(Iie) - 1; i >= 0; i--) + if (a[i] !== Iie) + throw new Error("underscore only allowed at start"); + if ( + a.length >= 4 && + a.every(function (s) { + return s < 128; + }) && + a[2] === Cie && + a[3] === Cie + ) + throw new Error("invalid label extension"); + } catch (s) { + throw new Error('Invalid label "' + n + '": ' + s.message); + } + } + return r; + } + E1.ens_normalize_post_check = uD; + function nmt(r) { + return uD(amt(r, rmt)); + } + E1.ens_normalize = nmt; + function amt(r, e) { + for (var t = Aie(r).reverse(), n = []; t.length; ) { + var a = smt(t); + if (a) { + n.push.apply(n, e(a)); + continue; + } + var i = t.pop(); + if (Qft.has(i)) { + n.push(i); + continue; + } + if (!Xft.has(i)) { + var s = emt[i]; + if (s) { + n.push.apply(n, s); + continue; + } + throw new Error( + "Disallowed codepoint: 0x" + i.toString(16).toUpperCase() + ); + } + } + return uD(imt(String.fromCodePoint.apply(String, n))); + } + function imt(r) { + return r.normalize("NFC"); + } + function smt(r, e) { + var t, + n = tmt, + a, + i, + s = [], + c = r.length; + e && (e.length = 0); + for ( + var l = function () { + var m = r[--c]; + if ( + ((n = + (t = n.branches.find(function (w) { + return w.set.has(m); + })) === null || t === void 0 + ? void 0 + : t.node), + !n) + ) + return "break"; + if (n.save) i = m; + else if (n.check && m === i) return "break"; + s.push(m), + n.fe0f && (s.push(65039), c > 0 && r[c - 1] == 65039 && c--), + n.valid && + ((a = s.slice()), + n.valid == 2 && a.splice(1, 1), + e && e.push.apply(e, r.slice(c).reverse()), + (r.length = c)); + }; + c; + + ) { + var d = l(); + if (d === "break") break; + } + return a; + } + }); + var lD = N((Sp) => { + "use strict"; + _(); + x(); + Object.defineProperty(Sp, "__esModule", { value: !0 }); + Sp.dnsEncode = Sp.namehash = Sp.isValidName = Sp.ensNormalize = void 0; + var d4 = Dr(), + Pie = Ki(), + Sie = Nu(), + omt = ir(), + cmt = sD(), + umt = new omt.Logger(cmt.version), + lmt = kie(), + Rie = new Uint8Array(32); + Rie.fill(0); + function Mie(r) { + if (r.length === 0) throw new Error("invalid ENS name; empty component"); + return r; + } + function p4(r) { + var e = (0, Pie.toUtf8Bytes)((0, lmt.ens_normalize)(r)), + t = []; + if (r.length === 0) return t; + for (var n = 0, a = 0; a < e.length; a++) { + var i = e[a]; + i === 46 && (t.push(Mie(e.slice(n, a))), (n = a + 1)); + } + if (n >= e.length) throw new Error("invalid ENS name; empty component"); + return t.push(Mie(e.slice(n))), t; + } + function dmt(r) { + return p4(r) + .map(function (e) { + return (0, Pie.toUtf8String)(e); + }) + .join("."); + } + Sp.ensNormalize = dmt; + function pmt(r) { + try { + return p4(r).length !== 0; + } catch {} + return !1; + } + Sp.isValidName = pmt; + function hmt(r) { + typeof r != "string" && + umt.throwArgumentError("invalid ENS name; not a string", "name", r); + for (var e = Rie, t = p4(r); t.length; ) + e = (0, Sie.keccak256)( + (0, d4.concat)([e, (0, Sie.keccak256)(t.pop())]) + ); + return (0, d4.hexlify)(e); + } + Sp.namehash = hmt; + function fmt(r) { + return ( + (0, d4.hexlify)( + (0, d4.concat)( + p4(r).map(function (e) { + if (e.length > 63) + throw new Error( + "invalid DNS encoded entry; length exceeds 63 bytes" + ); + var t = new Uint8Array(e.length + 1); + return t.set(e, 1), (t[0] = t.length - 1), t; + }) + ) + ) + "00" + ); + } + Sp.dnsEncode = fmt; + }); + var Bie = N((_y) => { + "use strict"; + _(); + x(); + Object.defineProperty(_y, "__esModule", { value: !0 }); + _y.hashMessage = _y.messagePrefix = void 0; + var mmt = Dr(), + ymt = Nu(), + dD = Ki(); + _y.messagePrefix = `Ethereum Signed Message: +`; + function gmt(r) { + return ( + typeof r == "string" && (r = (0, dD.toUtf8Bytes)(r)), + (0, ymt.keccak256)( + (0, mmt.concat)([ + (0, dD.toUtf8Bytes)(_y.messagePrefix), + (0, dD.toUtf8Bytes)(String(r.length)), + r, + ]) + ) + ); + } + _y.hashMessage = gmt; + }); + var Hie = N((mm) => { + "use strict"; + _(); + x(); + var bmt = + (mm && mm.__awaiter) || + function (r, e, t, n) { + function a(i) { + return i instanceof t + ? i + : new t(function (s) { + s(i); + }); + } + return new (t || (t = Promise))(function (i, s) { + function c(m) { + try { + d(n.next(m)); + } catch (w) { + s(w); + } + } + function l(m) { + try { + d(n.throw(m)); + } catch (w) { + s(w); + } + } + function d(m) { + m.done ? i(m.value) : a(m.value).then(c, l); + } + d((n = n.apply(r, e || [])).next()); + }); + }, + vmt = + (mm && mm.__generator) || + function (r, e) { + var t = { + label: 0, + sent: function () { + if (i[0] & 1) throw i[1]; + return i[1]; + }, + trys: [], + ops: [], + }, + n, + a, + i, + s; + return ( + (s = { next: c(0), throw: c(1), return: c(2) }), + typeof Symbol == "function" && + (s[Symbol.iterator] = function () { + return this; + }), + s + ); + function c(d) { + return function (m) { + return l([d, m]); + }; + } + function l(d) { + if (n) throw new TypeError("Generator is already executing."); + for (; t; ) + try { + if ( + ((n = 1), + a && + (i = + d[0] & 2 + ? a.return + : d[0] + ? a.throw || ((i = a.return) && i.call(a), 0) + : a.next) && + !(i = i.call(a, d[1])).done) + ) + return i; + switch (((a = 0), i && (d = [d[0] & 2, i.value]), d[0])) { + case 0: + case 1: + i = d; + break; + case 4: + return t.label++, { value: d[1], done: !1 }; + case 5: + t.label++, (a = d[1]), (d = [0]); + continue; + case 7: + (d = t.ops.pop()), t.trys.pop(); + continue; + default: + if ( + ((i = t.trys), + !(i = i.length > 0 && i[i.length - 1]) && + (d[0] === 6 || d[0] === 2)) + ) { + t = 0; + continue; + } + if (d[0] === 3 && (!i || (d[1] > i[0] && d[1] < i[3]))) { + t.label = d[1]; + break; + } + if (d[0] === 6 && t.label < i[1]) { + (t.label = i[1]), (i = d); + break; + } + if (i && t.label < i[2]) { + (t.label = i[2]), t.ops.push(d); + break; + } + i[2] && t.ops.pop(), t.trys.pop(); + continue; + } + d = e.call(r, t); + } catch (m) { + (d = [6, m]), (a = 0); + } finally { + n = i = 0; + } + if (d[0] & 5) throw d[1]; + return { value: d[0] ? d[1] : void 0, done: !0 }; + } + }; + Object.defineProperty(mm, "__esModule", { value: !0 }); + mm.TypedDataEncoder = void 0; + var Die = dl(), + Ty = zi(), + Ks = Dr(), + C1 = Nu(), + xy = ja(), + wmt = ir(), + _mt = sD(), + gi = new wmt.Logger(_mt.version), + qie = iD(), + Fie = new Uint8Array(32); + Fie.fill(0); + var xmt = Ty.BigNumber.from(-1), + Wie = Ty.BigNumber.from(0), + Uie = Ty.BigNumber.from(1), + Tmt = Ty.BigNumber.from( + "0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff" + ); + function Emt(r) { + var e = (0, Ks.arrayify)(r), + t = e.length % 32; + return t ? (0, Ks.hexConcat)([e, Fie.slice(t)]) : (0, Ks.hexlify)(e); + } + var Cmt = (0, Ks.hexZeroPad)(Uie.toHexString(), 32), + Imt = (0, Ks.hexZeroPad)(Wie.toHexString(), 32), + Nie = { + name: "string", + version: "string", + chainId: "uint256", + verifyingContract: "address", + salt: "bytes32", + }, + pD = ["name", "version", "chainId", "verifyingContract", "salt"]; + function Oie(r) { + return function (e) { + return ( + typeof e != "string" && + gi.throwArgumentError( + "invalid domain value for " + JSON.stringify(r), + "domain." + r, + e + ), + e + ); + }; + } + var Amt = { + name: Oie("name"), + version: Oie("version"), + chainId: function (r) { + try { + return Ty.BigNumber.from(r).toString(); + } catch {} + return gi.throwArgumentError( + 'invalid domain value for "chainId"', + "domain.chainId", + r + ); + }, + verifyingContract: function (r) { + try { + return (0, Die.getAddress)(r).toLowerCase(); + } catch {} + return gi.throwArgumentError( + 'invalid domain value "verifyingContract"', + "domain.verifyingContract", + r + ); + }, + salt: function (r) { + try { + var e = (0, Ks.arrayify)(r); + if (e.length !== 32) throw new Error("bad length"); + return (0, Ks.hexlify)(e); + } catch {} + return gi.throwArgumentError( + 'invalid domain value "salt"', + "domain.salt", + r + ); + }, + }; + function hD(r) { + { + var e = r.match(/^(u?)int(\d*)$/); + if (e) { + var t = e[1] === "", + n = parseInt(e[2] || "256"); + (n % 8 !== 0 || n > 256 || (e[2] && e[2] !== String(n))) && + gi.throwArgumentError("invalid numeric width", "type", r); + var a = Tmt.mask(t ? n - 1 : n), + i = t ? a.add(Uie).mul(xmt) : Wie; + return function (c) { + var l = Ty.BigNumber.from(c); + return ( + (l.lt(i) || l.gt(a)) && + gi.throwArgumentError( + "value out-of-bounds for " + r, + "value", + c + ), + (0, Ks.hexZeroPad)(l.toTwos(256).toHexString(), 32) + ); + }; + } + } + { + var e = r.match(/^bytes(\d+)$/); + if (e) { + var s = parseInt(e[1]); + return ( + (s === 0 || s > 32 || e[1] !== String(s)) && + gi.throwArgumentError("invalid bytes width", "type", r), + function (l) { + var d = (0, Ks.arrayify)(l); + return ( + d.length !== s && + gi.throwArgumentError("invalid length for " + r, "value", l), + Emt(l) + ); + } + ); + } + } + switch (r) { + case "address": + return function (c) { + return (0, Ks.hexZeroPad)((0, Die.getAddress)(c), 32); + }; + case "bool": + return function (c) { + return c ? Cmt : Imt; + }; + case "bytes": + return function (c) { + return (0, C1.keccak256)(c); + }; + case "string": + return function (c) { + return (0, qie.id)(c); + }; + } + return null; + } + function Lie(r, e) { + return ( + r + + "(" + + e + .map(function (t) { + var n = t.name, + a = t.type; + return a + " " + n; + }) + .join(",") + + ")" + ); + } + var kmt = (function () { + function r(e) { + (0, xy.defineReadOnly)( + this, + "types", + Object.freeze((0, xy.deepCopy)(e)) + ), + (0, xy.defineReadOnly)(this, "_encoderCache", {}), + (0, xy.defineReadOnly)(this, "_types", {}); + var t = {}, + n = {}, + a = {}; + Object.keys(e).forEach(function (w) { + (t[w] = {}), (n[w] = []), (a[w] = {}); + }); + var i = function (w) { + var C = {}; + e[w].forEach(function (I) { + C[I.name] && + gi.throwArgumentError( + "duplicate variable name " + + JSON.stringify(I.name) + + " in " + + JSON.stringify(w), + "types", + e + ), + (C[I.name] = !0); + var k = I.type.match(/^([^\x5b]*)(\x5b|$)/)[1]; + k === w && + gi.throwArgumentError( + "circular type reference to " + JSON.stringify(k), + "types", + e + ); + var O = hD(k); + O || + (n[k] || + gi.throwArgumentError( + "unknown type " + JSON.stringify(k), + "types", + e + ), + n[k].push(w), + (t[w][k] = !0)); + }); + }; + for (var s in e) i(s); + var c = Object.keys(n).filter(function (w) { + return n[w].length === 0; + }); + c.length === 0 + ? gi.throwArgumentError("missing primary type", "types", e) + : c.length > 1 && + gi.throwArgumentError( + "ambiguous primary types or unused types: " + + c + .map(function (w) { + return JSON.stringify(w); + }) + .join(", "), + "types", + e + ), + (0, xy.defineReadOnly)(this, "primaryType", c[0]); + function l(w, C) { + C[w] && + gi.throwArgumentError( + "circular type reference to " + JSON.stringify(w), + "types", + e + ), + (C[w] = !0), + Object.keys(t[w]).forEach(function (I) { + !n[I] || + (l(I, C), + Object.keys(C).forEach(function (k) { + a[k][I] = !0; + })); + }), + delete C[w]; + } + l(this.primaryType, {}); + for (var d in a) { + var m = Object.keys(a[d]); + m.sort(), + (this._types[d] = + Lie(d, e[d]) + + m + .map(function (w) { + return Lie(w, e[w]); + }) + .join("")); + } + } + return ( + (r.prototype.getEncoder = function (e) { + var t = this._encoderCache[e]; + return t || (t = this._encoderCache[e] = this._getEncoder(e)), t; + }), + (r.prototype._getEncoder = function (e) { + var t = this; + { + var n = hD(e); + if (n) return n; + } + var a = e.match(/^(.*)(\x5b(\d*)\x5d)$/); + if (a) { + var i = a[1], + s = this.getEncoder(i), + c = parseInt(a[3]); + return function (m) { + c >= 0 && + m.length !== c && + gi.throwArgumentError( + "array length mismatch; expected length ${ arrayLength }", + "value", + m + ); + var w = m.map(s); + return ( + t._types[i] && (w = w.map(C1.keccak256)), + (0, C1.keccak256)((0, Ks.hexConcat)(w)) + ); + }; + } + var l = this.types[e]; + if (l) { + var d = (0, qie.id)(this._types[e]); + return function (m) { + var w = l.map(function (C) { + var I = C.name, + k = C.type, + O = t.getEncoder(k)(m[I]); + return t._types[k] ? (0, C1.keccak256)(O) : O; + }); + return w.unshift(d), (0, Ks.hexConcat)(w); + }; + } + return gi.throwArgumentError("unknown type: " + e, "type", e); + }), + (r.prototype.encodeType = function (e) { + var t = this._types[e]; + return ( + t || + gi.throwArgumentError( + "unknown type: " + JSON.stringify(e), + "name", + e + ), + t + ); + }), + (r.prototype.encodeData = function (e, t) { + return this.getEncoder(e)(t); + }), + (r.prototype.hashStruct = function (e, t) { + return (0, C1.keccak256)(this.encodeData(e, t)); + }), + (r.prototype.encode = function (e) { + return this.encodeData(this.primaryType, e); + }), + (r.prototype.hash = function (e) { + return this.hashStruct(this.primaryType, e); + }), + (r.prototype._visit = function (e, t, n) { + var a = this; + { + var i = hD(e); + if (i) return n(e, t); + } + var s = e.match(/^(.*)(\x5b(\d*)\x5d)$/); + if (s) { + var c = s[1], + l = parseInt(s[3]); + return ( + l >= 0 && + t.length !== l && + gi.throwArgumentError( + "array length mismatch; expected length ${ arrayLength }", + "value", + t + ), + t.map(function (m) { + return a._visit(c, m, n); + }) + ); + } + var d = this.types[e]; + return d + ? d.reduce(function (m, w) { + var C = w.name, + I = w.type; + return (m[C] = a._visit(I, t[C], n)), m; + }, {}) + : gi.throwArgumentError("unknown type: " + e, "type", e); + }), + (r.prototype.visit = function (e, t) { + return this._visit(this.primaryType, e, t); + }), + (r.from = function (e) { + return new r(e); + }), + (r.getPrimaryType = function (e) { + return r.from(e).primaryType; + }), + (r.hashStruct = function (e, t, n) { + return r.from(t).hashStruct(e, n); + }), + (r.hashDomain = function (e) { + var t = []; + for (var n in e) { + var a = Nie[n]; + a || + gi.throwArgumentError( + "invalid typed-data domain key: " + JSON.stringify(n), + "domain", + e + ), + t.push({ name: n, type: a }); + } + return ( + t.sort(function (i, s) { + return pD.indexOf(i.name) - pD.indexOf(s.name); + }), + r.hashStruct("EIP712Domain", { EIP712Domain: t }, e) + ); + }), + (r.encode = function (e, t, n) { + return (0, Ks.hexConcat)([ + "0x1901", + r.hashDomain(e), + r.from(t).hash(n), + ]); + }), + (r.hash = function (e, t, n) { + return (0, C1.keccak256)(r.encode(e, t, n)); + }), + (r.resolveNames = function (e, t, n, a) { + return bmt(this, void 0, void 0, function () { + var i, s, c, l, d, m, w, C; + return vmt(this, function (I) { + switch (I.label) { + case 0: + (e = (0, xy.shallowCopy)(e)), + (i = {}), + e.verifyingContract && + !(0, Ks.isHexString)(e.verifyingContract, 20) && + (i[e.verifyingContract] = "0x"), + (s = r.from(t)), + s.visit(n, function (k, O) { + return ( + k === "address" && + !(0, Ks.isHexString)(O, 20) && + (i[O] = "0x"), + O + ); + }), + (c = []); + for (l in i) c.push(l); + (d = 0), (I.label = 1); + case 1: + return d < c.length + ? ((m = c[d]), (w = i), (C = m), [4, a(m)]) + : [3, 4]; + case 2: + (w[C] = I.sent()), (I.label = 3); + case 3: + return d++, [3, 1]; + case 4: + return ( + e.verifyingContract && + i[e.verifyingContract] && + (e.verifyingContract = i[e.verifyingContract]), + (n = s.visit(n, function (k, O) { + return k === "address" && i[O] ? i[O] : O; + })), + [2, { domain: e, value: n }] + ); + } + }); + }); + }), + (r.getPayload = function (e, t, n) { + r.hashDomain(e); + var a = {}, + i = []; + pD.forEach(function (l) { + var d = e[l]; + d != null && + ((a[l] = Amt[l](d)), i.push({ name: l, type: Nie[l] })); + }); + var s = r.from(t), + c = (0, xy.shallowCopy)(t); + return ( + c.EIP712Domain + ? gi.throwArgumentError( + "types must not contain EIP712Domain type", + "types.EIP712Domain", + t + ) + : (c.EIP712Domain = i), + s.encode(n), + { + types: c, + domain: a, + primaryType: s.primaryType, + message: s.visit(n, function (l, d) { + if (l.match(/^bytes(\d*)/)) + return (0, Ks.hexlify)((0, Ks.arrayify)(d)); + if (l.match(/^u?int/)) return Ty.BigNumber.from(d).toString(); + switch (l) { + case "address": + return d.toLowerCase(); + case "bool": + return !!d; + case "string": + return ( + typeof d != "string" && + gi.throwArgumentError("invalid string", "value", d), + d + ); + } + return gi.throwArgumentError("unsupported type", "type", l); + }), + } + ); + }), + r + ); + })(); + mm.TypedDataEncoder = kmt; + }); + var Ey = N((Is) => { + "use strict"; + _(); + x(); + Object.defineProperty(Is, "__esModule", { value: !0 }); + Is._TypedDataEncoder = + Is.hashMessage = + Is.messagePrefix = + Is.ensNormalize = + Is.isValidName = + Is.namehash = + Is.dnsEncode = + Is.id = + void 0; + var Smt = iD(); + Object.defineProperty(Is, "id", { + enumerable: !0, + get: function () { + return Smt.id; + }, + }); + var fD = lD(); + Object.defineProperty(Is, "dnsEncode", { + enumerable: !0, + get: function () { + return fD.dnsEncode; + }, + }); + Object.defineProperty(Is, "isValidName", { + enumerable: !0, + get: function () { + return fD.isValidName; + }, + }); + Object.defineProperty(Is, "namehash", { + enumerable: !0, + get: function () { + return fD.namehash; + }, + }); + var zie = Bie(); + Object.defineProperty(Is, "hashMessage", { + enumerable: !0, + get: function () { + return zie.hashMessage; + }, + }); + Object.defineProperty(Is, "messagePrefix", { + enumerable: !0, + get: function () { + return zie.messagePrefix; + }, + }); + var Mmt = lD(); + Object.defineProperty(Is, "ensNormalize", { + enumerable: !0, + get: function () { + return Mmt.ensNormalize; + }, + }); + var Pmt = Hie(); + Object.defineProperty(Is, "_TypedDataEncoder", { + enumerable: !0, + get: function () { + return Pmt.TypedDataEncoder; + }, + }); + }); + var Jie = N((fo) => { + "use strict"; + _(); + x(); + var m4 = + (fo && fo.__extends) || + (function () { + var r = function (e, t) { + return ( + (r = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (n, a) { + n.__proto__ = a; + }) || + function (n, a) { + for (var i in a) + Object.prototype.hasOwnProperty.call(a, i) && (n[i] = a[i]); + }), + r(e, t) + ); + }; + return function (e, t) { + if (typeof t != "function" && t !== null) + throw new TypeError( + "Class extends value " + + String(t) + + " is not a constructor or null" + ); + r(e, t); + function n() { + this.constructor = e; + } + e.prototype = + t === null + ? Object.create(t) + : ((n.prototype = t.prototype), new n()); + }; + })(); + Object.defineProperty(fo, "__esModule", { value: !0 }); + fo.Interface = + fo.Indexed = + fo.ErrorDescription = + fo.TransactionDescription = + fo.LogDescription = + fo.checkResultErrors = + void 0; + var Rmt = dl(), + jie = zi(), + pi = Dr(), + h4 = Ey(), + Kie = Nu(), + Vs = ja(), + Bmt = aD(), + Nmt = ul(); + Object.defineProperty(fo, "checkResultErrors", { + enumerable: !0, + get: function () { + return Nmt.checkResultErrors; + }, + }); + var Yh = V8(), + f4 = ir(), + Omt = s1(), + bi = new f4.Logger(Omt.version), + Gie = (function (r) { + m4(e, r); + function e() { + return (r !== null && r.apply(this, arguments)) || this; + } + return e; + })(Vs.Description); + fo.LogDescription = Gie; + var Yie = (function (r) { + m4(e, r); + function e() { + return (r !== null && r.apply(this, arguments)) || this; + } + return e; + })(Vs.Description); + fo.TransactionDescription = Yie; + var $ie = (function (r) { + m4(e, r); + function e() { + return (r !== null && r.apply(this, arguments)) || this; + } + return e; + })(Vs.Description); + fo.ErrorDescription = $ie; + var mD = (function (r) { + m4(e, r); + function e() { + return (r !== null && r.apply(this, arguments)) || this; + } + return ( + (e.isIndexed = function (t) { + return !!(t && t._isIndexed); + }), + e + ); + })(Vs.Description); + fo.Indexed = mD; + var Lmt = { + "0x08c379a0": { + signature: "Error(string)", + name: "Error", + inputs: ["string"], + reason: !0, + }, + "0x4e487b71": { + signature: "Panic(uint256)", + name: "Panic", + inputs: ["uint256"], + }, + }; + function Vie(r, e) { + var t = new Error( + "deferred error during ABI decoding triggered accessing " + r + ); + return (t.error = e), t; + } + var Dmt = (function () { + function r(e) { + var t = this.constructor, + n = this, + a = []; + typeof e == "string" ? (a = JSON.parse(e)) : (a = e), + (0, Vs.defineReadOnly)( + this, + "fragments", + a + .map(function (i) { + return Yh.Fragment.from(i); + }) + .filter(function (i) { + return i != null; + }) + ), + (0, Vs.defineReadOnly)( + this, + "_abiCoder", + (0, Vs.getStatic)(t, "getAbiCoder")() + ), + (0, Vs.defineReadOnly)(this, "functions", {}), + (0, Vs.defineReadOnly)(this, "errors", {}), + (0, Vs.defineReadOnly)(this, "events", {}), + (0, Vs.defineReadOnly)(this, "structs", {}), + this.fragments.forEach(function (i) { + var s = null; + switch (i.type) { + case "constructor": + if (n.deploy) { + bi.warn("duplicate definition - constructor"); + return; + } + (0, Vs.defineReadOnly)(n, "deploy", i); + return; + case "function": + s = n.functions; + break; + case "event": + s = n.events; + break; + case "error": + s = n.errors; + break; + default: + return; + } + var c = i.format(); + if (s[c]) { + bi.warn("duplicate definition - " + c); + return; + } + s[c] = i; + }), + this.deploy || + (0, Vs.defineReadOnly)( + this, + "deploy", + Yh.ConstructorFragment.from({ payable: !1, type: "constructor" }) + ), + (0, Vs.defineReadOnly)(this, "_isInterface", !0); + } + return ( + (r.prototype.format = function (e) { + e || (e = Yh.FormatTypes.full), + e === Yh.FormatTypes.sighash && + bi.throwArgumentError( + "interface does not support formatting sighash", + "format", + e + ); + var t = this.fragments.map(function (n) { + return n.format(e); + }); + return e === Yh.FormatTypes.json + ? JSON.stringify( + t.map(function (n) { + return JSON.parse(n); + }) + ) + : t; + }), + (r.getAbiCoder = function () { + return Bmt.defaultAbiCoder; + }), + (r.getAddress = function (e) { + return (0, Rmt.getAddress)(e); + }), + (r.getSighash = function (e) { + return (0, pi.hexDataSlice)((0, h4.id)(e.format()), 0, 4); + }), + (r.getEventTopic = function (e) { + return (0, h4.id)(e.format()); + }), + (r.prototype.getFunction = function (e) { + if ((0, pi.isHexString)(e)) { + for (var t in this.functions) + if (e === this.getSighash(t)) return this.functions[t]; + bi.throwArgumentError("no matching function", "sighash", e); + } + if (e.indexOf("(") === -1) { + var n = e.trim(), + a = Object.keys(this.functions).filter(function (s) { + return s.split("(")[0] === n; + }); + return ( + a.length === 0 + ? bi.throwArgumentError("no matching function", "name", n) + : a.length > 1 && + bi.throwArgumentError( + "multiple matching functions", + "name", + n + ), + this.functions[a[0]] + ); + } + var i = this.functions[Yh.FunctionFragment.fromString(e).format()]; + return ( + i || bi.throwArgumentError("no matching function", "signature", e), + i + ); + }), + (r.prototype.getEvent = function (e) { + if ((0, pi.isHexString)(e)) { + var t = e.toLowerCase(); + for (var n in this.events) + if (t === this.getEventTopic(n)) return this.events[n]; + bi.throwArgumentError("no matching event", "topichash", t); + } + if (e.indexOf("(") === -1) { + var a = e.trim(), + i = Object.keys(this.events).filter(function (c) { + return c.split("(")[0] === a; + }); + return ( + i.length === 0 + ? bi.throwArgumentError("no matching event", "name", a) + : i.length > 1 && + bi.throwArgumentError("multiple matching events", "name", a), + this.events[i[0]] + ); + } + var s = this.events[Yh.EventFragment.fromString(e).format()]; + return ( + s || bi.throwArgumentError("no matching event", "signature", e), s + ); + }), + (r.prototype.getError = function (e) { + if ((0, pi.isHexString)(e)) { + var t = (0, Vs.getStatic)(this.constructor, "getSighash"); + for (var n in this.errors) { + var a = this.errors[n]; + if (e === t(a)) return this.errors[n]; + } + bi.throwArgumentError("no matching error", "sighash", e); + } + if (e.indexOf("(") === -1) { + var i = e.trim(), + s = Object.keys(this.errors).filter(function (l) { + return l.split("(")[0] === i; + }); + return ( + s.length === 0 + ? bi.throwArgumentError("no matching error", "name", i) + : s.length > 1 && + bi.throwArgumentError("multiple matching errors", "name", i), + this.errors[s[0]] + ); + } + var c = this.errors[Yh.FunctionFragment.fromString(e).format()]; + return ( + c || bi.throwArgumentError("no matching error", "signature", e), c + ); + }), + (r.prototype.getSighash = function (e) { + if (typeof e == "string") + try { + e = this.getFunction(e); + } catch (t) { + try { + e = this.getError(e); + } catch { + throw t; + } + } + return (0, Vs.getStatic)(this.constructor, "getSighash")(e); + }), + (r.prototype.getEventTopic = function (e) { + return ( + typeof e == "string" && (e = this.getEvent(e)), + (0, Vs.getStatic)(this.constructor, "getEventTopic")(e) + ); + }), + (r.prototype._decodeParams = function (e, t) { + return this._abiCoder.decode(e, t); + }), + (r.prototype._encodeParams = function (e, t) { + return this._abiCoder.encode(e, t); + }), + (r.prototype.encodeDeploy = function (e) { + return this._encodeParams(this.deploy.inputs, e || []); + }), + (r.prototype.decodeErrorResult = function (e, t) { + typeof e == "string" && (e = this.getError(e)); + var n = (0, pi.arrayify)(t); + return ( + (0, pi.hexlify)(n.slice(0, 4)) !== this.getSighash(e) && + bi.throwArgumentError( + "data signature does not match error " + e.name + ".", + "data", + (0, pi.hexlify)(n) + ), + this._decodeParams(e.inputs, n.slice(4)) + ); + }), + (r.prototype.encodeErrorResult = function (e, t) { + return ( + typeof e == "string" && (e = this.getError(e)), + (0, pi.hexlify)( + (0, pi.concat)([ + this.getSighash(e), + this._encodeParams(e.inputs, t || []), + ]) + ) + ); + }), + (r.prototype.decodeFunctionData = function (e, t) { + typeof e == "string" && (e = this.getFunction(e)); + var n = (0, pi.arrayify)(t); + return ( + (0, pi.hexlify)(n.slice(0, 4)) !== this.getSighash(e) && + bi.throwArgumentError( + "data signature does not match function " + e.name + ".", + "data", + (0, pi.hexlify)(n) + ), + this._decodeParams(e.inputs, n.slice(4)) + ); + }), + (r.prototype.encodeFunctionData = function (e, t) { + return ( + typeof e == "string" && (e = this.getFunction(e)), + (0, pi.hexlify)( + (0, pi.concat)([ + this.getSighash(e), + this._encodeParams(e.inputs, t || []), + ]) + ) + ); + }), + (r.prototype.decodeFunctionResult = function (e, t) { + typeof e == "string" && (e = this.getFunction(e)); + var n = (0, pi.arrayify)(t), + a = null, + i = "", + s = null, + c = null, + l = null; + switch (n.length % this._abiCoder._getWordSize()) { + case 0: + try { + return this._abiCoder.decode(e.outputs, n); + } catch {} + break; + case 4: { + var d = (0, pi.hexlify)(n.slice(0, 4)), + m = Lmt[d]; + if (m) + (s = this._abiCoder.decode(m.inputs, n.slice(4))), + (c = m.name), + (l = m.signature), + m.reason && (a = s[0]), + c === "Error" + ? (i = + "; VM Exception while processing transaction: reverted with reason string " + + JSON.stringify(s[0])) + : c === "Panic" && + (i = + "; VM Exception while processing transaction: reverted with panic code " + + s[0]); + else + try { + var w = this.getError(d); + (s = this._abiCoder.decode(w.inputs, n.slice(4))), + (c = w.name), + (l = w.format()); + } catch {} + break; + } + } + return bi.throwError( + "call revert exception" + i, + f4.Logger.errors.CALL_EXCEPTION, + { + method: e.format(), + data: (0, pi.hexlify)(t), + errorArgs: s, + errorName: c, + errorSignature: l, + reason: a, + } + ); + }), + (r.prototype.encodeFunctionResult = function (e, t) { + return ( + typeof e == "string" && (e = this.getFunction(e)), + (0, pi.hexlify)(this._abiCoder.encode(e.outputs, t || [])) + ); + }), + (r.prototype.encodeFilterTopics = function (e, t) { + var n = this; + typeof e == "string" && (e = this.getEvent(e)), + t.length > e.inputs.length && + bi.throwError( + "too many arguments for " + e.format(), + f4.Logger.errors.UNEXPECTED_ARGUMENT, + { argument: "values", value: t } + ); + var a = []; + e.anonymous || a.push(this.getEventTopic(e)); + var i = function (s, c) { + return s.type === "string" + ? (0, h4.id)(c) + : s.type === "bytes" + ? (0, Kie.keccak256)((0, pi.hexlify)(c)) + : (s.type === "bool" && + typeof c == "boolean" && + (c = c ? "0x01" : "0x00"), + s.type.match(/^u?int/) && + (c = jie.BigNumber.from(c).toHexString()), + s.type === "address" && n._abiCoder.encode(["address"], [c]), + (0, pi.hexZeroPad)((0, pi.hexlify)(c), 32)); + }; + for ( + t.forEach(function (s, c) { + var l = e.inputs[c]; + if (!l.indexed) { + s != null && + bi.throwArgumentError( + "cannot filter non-indexed parameters; must be null", + "contract." + l.name, + s + ); + return; + } + s == null + ? a.push(null) + : l.baseType === "array" || l.baseType === "tuple" + ? bi.throwArgumentError( + "filtering with tuples or arrays not supported", + "contract." + l.name, + s + ) + : Array.isArray(s) + ? a.push( + s.map(function (d) { + return i(l, d); + }) + ) + : a.push(i(l, s)); + }); + a.length && a[a.length - 1] === null; + + ) + a.pop(); + return a; + }), + (r.prototype.encodeEventLog = function (e, t) { + var n = this; + typeof e == "string" && (e = this.getEvent(e)); + var a = [], + i = [], + s = []; + return ( + e.anonymous || a.push(this.getEventTopic(e)), + t.length !== e.inputs.length && + bi.throwArgumentError( + "event arguments/values mismatch", + "values", + t + ), + e.inputs.forEach(function (c, l) { + var d = t[l]; + if (c.indexed) + if (c.type === "string") a.push((0, h4.id)(d)); + else if (c.type === "bytes") a.push((0, Kie.keccak256)(d)); + else { + if (c.baseType === "tuple" || c.baseType === "array") + throw new Error("not implemented"); + a.push(n._abiCoder.encode([c.type], [d])); + } + else i.push(c), s.push(d); + }), + { data: this._abiCoder.encode(i, s), topics: a } + ); + }), + (r.prototype.decodeEventLog = function (e, t, n) { + if ( + (typeof e == "string" && (e = this.getEvent(e)), + n != null && !e.anonymous) + ) { + var a = this.getEventTopic(e); + (!(0, pi.isHexString)(n[0], 32) || n[0].toLowerCase() !== a) && + bi.throwError( + "fragment/topic mismatch", + f4.Logger.errors.INVALID_ARGUMENT, + { argument: "topics[0]", expected: a, value: n[0] } + ), + (n = n.slice(1)); + } + var i = [], + s = [], + c = []; + e.inputs.forEach(function (O, D) { + O.indexed + ? O.type === "string" || + O.type === "bytes" || + O.baseType === "tuple" || + O.baseType === "array" + ? (i.push( + Yh.ParamType.fromObject({ type: "bytes32", name: O.name }) + ), + c.push(!0)) + : (i.push(O), c.push(!1)) + : (s.push(O), c.push(!1)); + }); + var l = + n != null ? this._abiCoder.decode(i, (0, pi.concat)(n)) : null, + d = this._abiCoder.decode(s, t, !0), + m = [], + w = 0, + C = 0; + e.inputs.forEach(function (O, D) { + if (O.indexed) + if (l == null) m[D] = new mD({ _isIndexed: !0, hash: null }); + else if (c[D]) m[D] = new mD({ _isIndexed: !0, hash: l[C++] }); + else + try { + m[D] = l[C++]; + } catch (H) { + m[D] = H; + } + else + try { + m[D] = d[w++]; + } catch (H) { + m[D] = H; + } + if (O.name && m[O.name] == null) { + var W = m[D]; + W instanceof Error + ? Object.defineProperty(m, O.name, { + enumerable: !0, + get: function () { + throw Vie("property " + JSON.stringify(O.name), W); + }, + }) + : (m[O.name] = W); + } + }); + for ( + var I = function (O) { + var D = m[O]; + D instanceof Error && + Object.defineProperty(m, O, { + enumerable: !0, + get: function () { + throw Vie("index " + O, D); + }, + }); + }, + k = 0; + k < m.length; + k++ + ) + I(k); + return Object.freeze(m); + }), + (r.prototype.parseTransaction = function (e) { + var t = this.getFunction(e.data.substring(0, 10).toLowerCase()); + return t + ? new Yie({ + args: this._abiCoder.decode( + t.inputs, + "0x" + e.data.substring(10) + ), + functionFragment: t, + name: t.name, + signature: t.format(), + sighash: this.getSighash(t), + value: jie.BigNumber.from(e.value || "0"), + }) + : null; + }), + (r.prototype.parseLog = function (e) { + var t = this.getEvent(e.topics[0]); + return !t || t.anonymous + ? null + : new Gie({ + eventFragment: t, + name: t.name, + signature: t.format(), + topic: this.getEventTopic(t), + args: this.decodeEventLog(t, e.data, e.topics), + }); + }), + (r.prototype.parseError = function (e) { + var t = (0, pi.hexlify)(e), + n = this.getError(t.substring(0, 10).toLowerCase()); + return n + ? new $ie({ + args: this._abiCoder.decode(n.inputs, "0x" + t.substring(10)), + errorFragment: n, + name: n.name, + signature: n.format(), + sighash: this.getSighash(n), + }) + : null; + }), + (r.isInterface = function (e) { + return !!(e && e._isInterface); + }), + r + ); + })(); + fo.Interface = Dmt; + }); + var yD = N((Ka) => { + "use strict"; + _(); + x(); + Object.defineProperty(Ka, "__esModule", { value: !0 }); + Ka.TransactionDescription = + Ka.LogDescription = + Ka.checkResultErrors = + Ka.Indexed = + Ka.Interface = + Ka.defaultAbiCoder = + Ka.AbiCoder = + Ka.FormatTypes = + Ka.ParamType = + Ka.FunctionFragment = + Ka.Fragment = + Ka.EventFragment = + Ka.ErrorFragment = + Ka.ConstructorFragment = + void 0; + var Cy = V8(); + Object.defineProperty(Ka, "ConstructorFragment", { + enumerable: !0, + get: function () { + return Cy.ConstructorFragment; + }, + }); + Object.defineProperty(Ka, "ErrorFragment", { + enumerable: !0, + get: function () { + return Cy.ErrorFragment; + }, + }); + Object.defineProperty(Ka, "EventFragment", { + enumerable: !0, + get: function () { + return Cy.EventFragment; + }, + }); + Object.defineProperty(Ka, "FormatTypes", { + enumerable: !0, + get: function () { + return Cy.FormatTypes; + }, + }); + Object.defineProperty(Ka, "Fragment", { + enumerable: !0, + get: function () { + return Cy.Fragment; + }, + }); + Object.defineProperty(Ka, "FunctionFragment", { + enumerable: !0, + get: function () { + return Cy.FunctionFragment; + }, + }); + Object.defineProperty(Ka, "ParamType", { + enumerable: !0, + get: function () { + return Cy.ParamType; + }, + }); + var Zie = aD(); + Object.defineProperty(Ka, "AbiCoder", { + enumerable: !0, + get: function () { + return Zie.AbiCoder; + }, + }); + Object.defineProperty(Ka, "defaultAbiCoder", { + enumerable: !0, + get: function () { + return Zie.defaultAbiCoder; + }, + }); + var Fx = Jie(); + Object.defineProperty(Ka, "checkResultErrors", { + enumerable: !0, + get: function () { + return Fx.checkResultErrors; + }, + }); + Object.defineProperty(Ka, "Indexed", { + enumerable: !0, + get: function () { + return Fx.Indexed; + }, + }); + Object.defineProperty(Ka, "Interface", { + enumerable: !0, + get: function () { + return Fx.Interface; + }, + }); + Object.defineProperty(Ka, "LogDescription", { + enumerable: !0, + get: function () { + return Fx.LogDescription; + }, + }); + Object.defineProperty(Ka, "TransactionDescription", { + enumerable: !0, + get: function () { + return Fx.TransactionDescription; + }, + }); + }); + var Qie = N((y4) => { + "use strict"; + _(); + x(); + Object.defineProperty(y4, "__esModule", { value: !0 }); + y4.version = void 0; + y4.version = "abstract-provider/5.7.0"; + }); + var I1 = N((As) => { + "use strict"; + _(); + x(); + var b4 = + (As && As.__extends) || + (function () { + var r = function (e, t) { + return ( + (r = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (n, a) { + n.__proto__ = a; + }) || + function (n, a) { + for (var i in a) + Object.prototype.hasOwnProperty.call(a, i) && (n[i] = a[i]); + }), + r(e, t) + ); + }; + return function (e, t) { + if (typeof t != "function" && t !== null) + throw new TypeError( + "Class extends value " + + String(t) + + " is not a constructor or null" + ); + r(e, t); + function n() { + this.constructor = e; + } + e.prototype = + t === null + ? Object.create(t) + : ((n.prototype = t.prototype), new n()); + }; + })(), + qmt = + (As && As.__awaiter) || + function (r, e, t, n) { + function a(i) { + return i instanceof t + ? i + : new t(function (s) { + s(i); + }); + } + return new (t || (t = Promise))(function (i, s) { + function c(m) { + try { + d(n.next(m)); + } catch (w) { + s(w); + } + } + function l(m) { + try { + d(n.throw(m)); + } catch (w) { + s(w); + } + } + function d(m) { + m.done ? i(m.value) : a(m.value).then(c, l); + } + d((n = n.apply(r, e || [])).next()); + }); + }, + Fmt = + (As && As.__generator) || + function (r, e) { + var t = { + label: 0, + sent: function () { + if (i[0] & 1) throw i[1]; + return i[1]; + }, + trys: [], + ops: [], + }, + n, + a, + i, + s; + return ( + (s = { next: c(0), throw: c(1), return: c(2) }), + typeof Symbol == "function" && + (s[Symbol.iterator] = function () { + return this; + }), + s + ); + function c(d) { + return function (m) { + return l([d, m]); + }; + } + function l(d) { + if (n) throw new TypeError("Generator is already executing."); + for (; t; ) + try { + if ( + ((n = 1), + a && + (i = + d[0] & 2 + ? a.return + : d[0] + ? a.throw || ((i = a.return) && i.call(a), 0) + : a.next) && + !(i = i.call(a, d[1])).done) + ) + return i; + switch (((a = 0), i && (d = [d[0] & 2, i.value]), d[0])) { + case 0: + case 1: + i = d; + break; + case 4: + return t.label++, { value: d[1], done: !1 }; + case 5: + t.label++, (a = d[1]), (d = [0]); + continue; + case 7: + (d = t.ops.pop()), t.trys.pop(); + continue; + default: + if ( + ((i = t.trys), + !(i = i.length > 0 && i[i.length - 1]) && + (d[0] === 6 || d[0] === 2)) + ) { + t = 0; + continue; + } + if (d[0] === 3 && (!i || (d[1] > i[0] && d[1] < i[3]))) { + t.label = d[1]; + break; + } + if (d[0] === 6 && t.label < i[1]) { + (t.label = i[1]), (i = d); + break; + } + if (i && t.label < i[2]) { + (t.label = i[2]), t.ops.push(d); + break; + } + i[2] && t.ops.pop(), t.trys.pop(); + continue; + } + d = e.call(r, t); + } catch (m) { + (d = [6, m]), (a = 0); + } finally { + n = i = 0; + } + if (d[0] & 5) throw d[1]; + return { value: d[0] ? d[1] : void 0, done: !0 }; + } + }; + Object.defineProperty(As, "__esModule", { value: !0 }); + As.Provider = + As.TransactionOrderForkEvent = + As.TransactionForkEvent = + As.BlockForkEvent = + As.ForkEvent = + void 0; + var Wmt = zi(), + g4 = Dr(), + gD = ja(), + Umt = ir(), + Hmt = Qie(), + Wx = new Umt.Logger(Hmt.version), + v4 = (function (r) { + b4(e, r); + function e() { + return (r !== null && r.apply(this, arguments)) || this; + } + return ( + (e.isForkEvent = function (t) { + return !!(t && t._isForkEvent); + }), + e + ); + })(gD.Description); + As.ForkEvent = v4; + var zmt = (function (r) { + b4(e, r); + function e(t, n) { + var a = this; + return ( + (0, g4.isHexString)(t, 32) || + Wx.throwArgumentError("invalid blockHash", "blockHash", t), + (a = + r.call(this, { + _isForkEvent: !0, + _isBlockForkEvent: !0, + expiry: n || 0, + blockHash: t, + }) || this), + a + ); + } + return e; + })(v4); + As.BlockForkEvent = zmt; + var jmt = (function (r) { + b4(e, r); + function e(t, n) { + var a = this; + return ( + (0, g4.isHexString)(t, 32) || + Wx.throwArgumentError("invalid transaction hash", "hash", t), + (a = + r.call(this, { + _isForkEvent: !0, + _isTransactionForkEvent: !0, + expiry: n || 0, + hash: t, + }) || this), + a + ); + } + return e; + })(v4); + As.TransactionForkEvent = jmt; + var Kmt = (function (r) { + b4(e, r); + function e(t, n, a) { + var i = this; + return ( + (0, g4.isHexString)(t, 32) || + Wx.throwArgumentError("invalid transaction hash", "beforeHash", t), + (0, g4.isHexString)(n, 32) || + Wx.throwArgumentError("invalid transaction hash", "afterHash", n), + (i = + r.call(this, { + _isForkEvent: !0, + _isTransactionOrderForkEvent: !0, + expiry: a || 0, + beforeHash: t, + afterHash: n, + }) || this), + i + ); + } + return e; + })(v4); + As.TransactionOrderForkEvent = Kmt; + var Vmt = (function () { + function r() { + var e = this.constructor; + Wx.checkAbstract(e, r), (0, gD.defineReadOnly)(this, "_isProvider", !0); + } + return ( + (r.prototype.getFeeData = function () { + return qmt(this, void 0, void 0, function () { + var e, t, n, a, i, s; + return Fmt(this, function (c) { + switch (c.label) { + case 0: + return [ + 4, + (0, gD.resolveProperties)({ + block: this.getBlock("latest"), + gasPrice: this.getGasPrice().catch(function (l) { + return null; + }), + }), + ]; + case 1: + return ( + (e = c.sent()), + (t = e.block), + (n = e.gasPrice), + (a = null), + (i = null), + (s = null), + t && + t.baseFeePerGas && + ((a = t.baseFeePerGas), + (s = Wmt.BigNumber.from("1500000000")), + (i = t.baseFeePerGas.mul(2).add(s))), + [ + 2, + { + lastBaseFeePerGas: a, + maxFeePerGas: i, + maxPriorityFeePerGas: s, + gasPrice: n, + }, + ] + ); + } + }); + }); + }), + (r.prototype.addListener = function (e, t) { + return this.on(e, t); + }), + (r.prototype.removeListener = function (e, t) { + return this.off(e, t); + }), + (r.isProvider = function (e) { + return !!(e && e._isProvider); + }), + r + ); + })(); + As.Provider = Vmt; + }); + var Xie = N((w4) => { + "use strict"; + _(); + x(); + Object.defineProperty(w4, "__esModule", { value: !0 }); + w4.version = void 0; + w4.version = "abstract-signer/5.7.0"; + }); + var Ux = N((fl) => { + "use strict"; + _(); + x(); + var Gmt = + (fl && fl.__extends) || + (function () { + var r = function (e, t) { + return ( + (r = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (n, a) { + n.__proto__ = a; + }) || + function (n, a) { + for (var i in a) + Object.prototype.hasOwnProperty.call(a, i) && (n[i] = a[i]); + }), + r(e, t) + ); + }; + return function (e, t) { + if (typeof t != "function" && t !== null) + throw new TypeError( + "Class extends value " + + String(t) + + " is not a constructor or null" + ); + r(e, t); + function n() { + this.constructor = e; + } + e.prototype = + t === null + ? Object.create(t) + : ((n.prototype = t.prototype), new n()); + }; + })(), + wd = + (fl && fl.__awaiter) || + function (r, e, t, n) { + function a(i) { + return i instanceof t + ? i + : new t(function (s) { + s(i); + }); + } + return new (t || (t = Promise))(function (i, s) { + function c(m) { + try { + d(n.next(m)); + } catch (w) { + s(w); + } + } + function l(m) { + try { + d(n.throw(m)); + } catch (w) { + s(w); + } + } + function d(m) { + m.done ? i(m.value) : a(m.value).then(c, l); + } + d((n = n.apply(r, e || [])).next()); + }); + }, + _d = + (fl && fl.__generator) || + function (r, e) { + var t = { + label: 0, + sent: function () { + if (i[0] & 1) throw i[1]; + return i[1]; + }, + trys: [], + ops: [], + }, + n, + a, + i, + s; + return ( + (s = { next: c(0), throw: c(1), return: c(2) }), + typeof Symbol == "function" && + (s[Symbol.iterator] = function () { + return this; + }), + s + ); + function c(d) { + return function (m) { + return l([d, m]); + }; + } + function l(d) { + if (n) throw new TypeError("Generator is already executing."); + for (; t; ) + try { + if ( + ((n = 1), + a && + (i = + d[0] & 2 + ? a.return + : d[0] + ? a.throw || ((i = a.return) && i.call(a), 0) + : a.next) && + !(i = i.call(a, d[1])).done) + ) + return i; + switch (((a = 0), i && (d = [d[0] & 2, i.value]), d[0])) { + case 0: + case 1: + i = d; + break; + case 4: + return t.label++, { value: d[1], done: !1 }; + case 5: + t.label++, (a = d[1]), (d = [0]); + continue; + case 7: + (d = t.ops.pop()), t.trys.pop(); + continue; + default: + if ( + ((i = t.trys), + !(i = i.length > 0 && i[i.length - 1]) && + (d[0] === 6 || d[0] === 2)) + ) { + t = 0; + continue; + } + if (d[0] === 3 && (!i || (d[1] > i[0] && d[1] < i[3]))) { + t.label = d[1]; + break; + } + if (d[0] === 6 && t.label < i[1]) { + (t.label = i[1]), (i = d); + break; + } + if (i && t.label < i[2]) { + (t.label = i[2]), t.ops.push(d); + break; + } + i[2] && t.ops.pop(), t.trys.pop(); + continue; + } + d = e.call(r, t); + } catch (m) { + (d = [6, m]), (a = 0); + } finally { + n = i = 0; + } + if (d[0] & 5) throw d[1]; + return { value: d[0] ? d[1] : void 0, done: !0 }; + } + }; + Object.defineProperty(fl, "__esModule", { value: !0 }); + fl.VoidSigner = fl.Signer = void 0; + var ym = ja(), + $h = ir(), + Ymt = Xie(), + hl = new $h.Logger(Ymt.version), + $mt = [ + "accessList", + "ccipReadEnabled", + "chainId", + "customData", + "data", + "from", + "gasLimit", + "gasPrice", + "maxFeePerGas", + "maxPriorityFeePerGas", + "nonce", + "to", + "type", + "value", + ], + Jmt = [ + $h.Logger.errors.INSUFFICIENT_FUNDS, + $h.Logger.errors.NONCE_EXPIRED, + $h.Logger.errors.REPLACEMENT_UNDERPRICED, + ], + ese = (function () { + function r() { + var e = this.constructor; + hl.checkAbstract(e, r), (0, ym.defineReadOnly)(this, "_isSigner", !0); + } + return ( + (r.prototype.getBalance = function (e) { + return wd(this, void 0, void 0, function () { + return _d(this, function (t) { + switch (t.label) { + case 0: + return ( + this._checkProvider("getBalance"), + [4, this.provider.getBalance(this.getAddress(), e)] + ); + case 1: + return [2, t.sent()]; + } + }); + }); + }), + (r.prototype.getTransactionCount = function (e) { + return wd(this, void 0, void 0, function () { + return _d(this, function (t) { + switch (t.label) { + case 0: + return ( + this._checkProvider("getTransactionCount"), + [ + 4, + this.provider.getTransactionCount(this.getAddress(), e), + ] + ); + case 1: + return [2, t.sent()]; + } + }); + }); + }), + (r.prototype.estimateGas = function (e) { + return wd(this, void 0, void 0, function () { + var t; + return _d(this, function (n) { + switch (n.label) { + case 0: + return ( + this._checkProvider("estimateGas"), + [4, (0, ym.resolveProperties)(this.checkTransaction(e))] + ); + case 1: + return (t = n.sent()), [4, this.provider.estimateGas(t)]; + case 2: + return [2, n.sent()]; + } + }); + }); + }), + (r.prototype.call = function (e, t) { + return wd(this, void 0, void 0, function () { + var n; + return _d(this, function (a) { + switch (a.label) { + case 0: + return ( + this._checkProvider("call"), + [4, (0, ym.resolveProperties)(this.checkTransaction(e))] + ); + case 1: + return (n = a.sent()), [4, this.provider.call(n, t)]; + case 2: + return [2, a.sent()]; + } + }); + }); + }), + (r.prototype.sendTransaction = function (e) { + return wd(this, void 0, void 0, function () { + var t, n; + return _d(this, function (a) { + switch (a.label) { + case 0: + return ( + this._checkProvider("sendTransaction"), + [4, this.populateTransaction(e)] + ); + case 1: + return (t = a.sent()), [4, this.signTransaction(t)]; + case 2: + return ( + (n = a.sent()), [4, this.provider.sendTransaction(n)] + ); + case 3: + return [2, a.sent()]; + } + }); + }); + }), + (r.prototype.getChainId = function () { + return wd(this, void 0, void 0, function () { + var e; + return _d(this, function (t) { + switch (t.label) { + case 0: + return ( + this._checkProvider("getChainId"), + [4, this.provider.getNetwork()] + ); + case 1: + return (e = t.sent()), [2, e.chainId]; + } + }); + }); + }), + (r.prototype.getGasPrice = function () { + return wd(this, void 0, void 0, function () { + return _d(this, function (e) { + switch (e.label) { + case 0: + return ( + this._checkProvider("getGasPrice"), + [4, this.provider.getGasPrice()] + ); + case 1: + return [2, e.sent()]; + } + }); + }); + }), + (r.prototype.getFeeData = function () { + return wd(this, void 0, void 0, function () { + return _d(this, function (e) { + switch (e.label) { + case 0: + return ( + this._checkProvider("getFeeData"), + [4, this.provider.getFeeData()] + ); + case 1: + return [2, e.sent()]; + } + }); + }); + }), + (r.prototype.resolveName = function (e) { + return wd(this, void 0, void 0, function () { + return _d(this, function (t) { + switch (t.label) { + case 0: + return ( + this._checkProvider("resolveName"), + [4, this.provider.resolveName(e)] + ); + case 1: + return [2, t.sent()]; + } + }); + }); + }), + (r.prototype.checkTransaction = function (e) { + for (var t in e) + $mt.indexOf(t) === -1 && + hl.throwArgumentError( + "invalid transaction key: " + t, + "transaction", + e + ); + var n = (0, ym.shallowCopy)(e); + return ( + n.from == null + ? (n.from = this.getAddress()) + : (n.from = Promise.all([ + Promise.resolve(n.from), + this.getAddress(), + ]).then(function (a) { + return ( + a[0].toLowerCase() !== a[1].toLowerCase() && + hl.throwArgumentError( + "from address mismatch", + "transaction", + e + ), + a[0] + ); + })), + n + ); + }), + (r.prototype.populateTransaction = function (e) { + return wd(this, void 0, void 0, function () { + var t, + n, + a, + i, + s = this; + return _d(this, function (c) { + switch (c.label) { + case 0: + return [ + 4, + (0, ym.resolveProperties)(this.checkTransaction(e)), + ]; + case 1: + return ( + (t = c.sent()), + t.to != null && + ((t.to = Promise.resolve(t.to).then(function (l) { + return wd(s, void 0, void 0, function () { + var d; + return _d(this, function (m) { + switch (m.label) { + case 0: + return l == null + ? [2, null] + : [4, this.resolveName(l)]; + case 1: + return ( + (d = m.sent()), + d == null && + hl.throwArgumentError( + "provided ENS name resolves to null", + "tx.to", + l + ), + [2, d] + ); + } + }); + }); + })), + t.to.catch(function (l) {})), + (n = + t.maxFeePerGas != null || + t.maxPriorityFeePerGas != null), + t.gasPrice != null && (t.type === 2 || n) + ? hl.throwArgumentError( + "eip-1559 transaction do not support gasPrice", + "transaction", + e + ) + : (t.type === 0 || t.type === 1) && + n && + hl.throwArgumentError( + "pre-eip-1559 transaction do not support maxFeePerGas/maxPriorityFeePerGas", + "transaction", + e + ), + (t.type === 2 || t.type == null) && + t.maxFeePerGas != null && + t.maxPriorityFeePerGas != null + ? ((t.type = 2), [3, 5]) + : [3, 2] + ); + case 2: + return t.type === 0 || t.type === 1 + ? (t.gasPrice == null && + (t.gasPrice = this.getGasPrice()), + [3, 5]) + : [3, 3]; + case 3: + return [4, this.getFeeData()]; + case 4: + (a = c.sent()), + t.type == null + ? a.maxFeePerGas != null && + a.maxPriorityFeePerGas != null + ? ((t.type = 2), + t.gasPrice != null + ? ((i = t.gasPrice), + delete t.gasPrice, + (t.maxFeePerGas = i), + (t.maxPriorityFeePerGas = i)) + : (t.maxFeePerGas == null && + (t.maxFeePerGas = a.maxFeePerGas), + t.maxPriorityFeePerGas == null && + (t.maxPriorityFeePerGas = + a.maxPriorityFeePerGas))) + : a.gasPrice != null + ? (n && + hl.throwError( + "network does not support EIP-1559", + $h.Logger.errors.UNSUPPORTED_OPERATION, + { operation: "populateTransaction" } + ), + t.gasPrice == null && (t.gasPrice = a.gasPrice), + (t.type = 0)) + : hl.throwError( + "failed to get consistent fee data", + $h.Logger.errors.UNSUPPORTED_OPERATION, + { operation: "signer.getFeeData" } + ) + : t.type === 2 && + (t.maxFeePerGas == null && + (t.maxFeePerGas = a.maxFeePerGas), + t.maxPriorityFeePerGas == null && + (t.maxPriorityFeePerGas = a.maxPriorityFeePerGas)), + (c.label = 5); + case 5: + return ( + t.nonce == null && + (t.nonce = this.getTransactionCount("pending")), + t.gasLimit == null && + (t.gasLimit = this.estimateGas(t).catch(function (l) { + if (Jmt.indexOf(l.code) >= 0) throw l; + return hl.throwError( + "cannot estimate gas; transaction may fail or may require manual gas limit", + $h.Logger.errors.UNPREDICTABLE_GAS_LIMIT, + { error: l, tx: t } + ); + })), + t.chainId == null + ? (t.chainId = this.getChainId()) + : (t.chainId = Promise.all([ + Promise.resolve(t.chainId), + this.getChainId(), + ]).then(function (l) { + return ( + l[1] !== 0 && + l[0] !== l[1] && + hl.throwArgumentError( + "chainId address mismatch", + "transaction", + e + ), + l[0] + ); + })), + [4, (0, ym.resolveProperties)(t)] + ); + case 6: + return [2, c.sent()]; + } + }); + }); + }), + (r.prototype._checkProvider = function (e) { + this.provider || + hl.throwError( + "missing provider", + $h.Logger.errors.UNSUPPORTED_OPERATION, + { operation: e || "_checkProvider" } + ); + }), + (r.isSigner = function (e) { + return !!(e && e._isSigner); + }), + r + ); + })(); + fl.Signer = ese; + var Zmt = (function (r) { + Gmt(e, r); + function e(t, n) { + var a = r.call(this) || this; + return ( + (0, ym.defineReadOnly)(a, "address", t), + (0, ym.defineReadOnly)(a, "provider", n || null), + a + ); + } + return ( + (e.prototype.getAddress = function () { + return Promise.resolve(this.address); + }), + (e.prototype._fail = function (t, n) { + return Promise.resolve().then(function () { + hl.throwError(t, $h.Logger.errors.UNSUPPORTED_OPERATION, { + operation: n, + }); + }); + }), + (e.prototype.signMessage = function (t) { + return this._fail("VoidSigner cannot sign messages", "signMessage"); + }), + (e.prototype.signTransaction = function (t) { + return this._fail( + "VoidSigner cannot sign transactions", + "signTransaction" + ); + }), + (e.prototype._signTypedData = function (t, n, a) { + return this._fail( + "VoidSigner cannot sign typed data", + "signTypedData" + ); + }), + (e.prototype.connect = function (t) { + return new e(this.address, t); + }), + e + ); + })(ese); + fl.VoidSigner = Zmt; + }); + var tse = N((DWr, Qmt) => { + Qmt.exports = { + name: "elliptic", + version: "6.5.4", + description: "EC cryptography", + main: "lib/elliptic.js", + files: ["lib"], + scripts: { + lint: "eslint lib test", + "lint:fix": "npm run lint -- --fix", + unit: "istanbul test _mocha --reporter=spec test/index.js", + test: "npm run lint && npm run unit", + version: "grunt dist && git add dist/", + }, + repository: { type: "git", url: "git@github.com:indutny/elliptic" }, + keywords: ["EC", "Elliptic", "curve", "Cryptography"], + author: "Fedor Indutny ", + license: "MIT", + bugs: { url: "https://github.com/indutny/elliptic/issues" }, + homepage: "https://github.com/indutny/elliptic", + devDependencies: { + brfs: "^2.0.2", + coveralls: "^3.1.0", + eslint: "^7.6.0", + grunt: "^1.2.1", + "grunt-browserify": "^5.3.0", + "grunt-cli": "^1.3.2", + "grunt-contrib-connect": "^3.0.0", + "grunt-contrib-copy": "^1.0.0", + "grunt-contrib-uglify": "^5.0.0", + "grunt-mocha-istanbul": "^5.0.2", + "grunt-saucelabs": "^9.0.1", + istanbul: "^0.4.5", + mocha: "^8.0.1", + }, + dependencies: { + "bn.js": "^4.11.9", + brorand: "^1.1.0", + "hash.js": "^1.0.0", + "hmac-drbg": "^1.0.1", + inherits: "^2.0.4", + "minimalistic-assert": "^1.0.1", + "minimalistic-crypto-utils": "^1.0.1", + }, + }; + }); + var Mp = N((rse, bD) => { + _(); + x(); + (function (r, e) { + "use strict"; + function t(g, o) { + if (!g) throw new Error(o || "Assertion failed"); + } + function n(g, o) { + g.super_ = o; + var p = function () {}; + (p.prototype = o.prototype), + (g.prototype = new p()), + (g.prototype.constructor = g); + } + function a(g, o, p) { + if (a.isBN(g)) return g; + (this.negative = 0), + (this.words = null), + (this.length = 0), + (this.red = null), + g !== null && + ((o === "le" || o === "be") && ((p = o), (o = 10)), + this._init(g || 0, o || 10, p || "be")); + } + typeof r == "object" ? (r.exports = a) : (e.BN = a), + (a.BN = a), + (a.wordSize = 26); + var i; + try { + typeof window < "u" && typeof window.Buffer < "u" + ? (i = window.Buffer) + : (i = Hi().Buffer); + } catch {} + (a.isBN = function (o) { + return o instanceof a + ? !0 + : o !== null && + typeof o == "object" && + o.constructor.wordSize === a.wordSize && + Array.isArray(o.words); + }), + (a.max = function (o, p) { + return o.cmp(p) > 0 ? o : p; + }), + (a.min = function (o, p) { + return o.cmp(p) < 0 ? o : p; + }), + (a.prototype._init = function (o, p, y) { + if (typeof o == "number") return this._initNumber(o, p, y); + if (typeof o == "object") return this._initArray(o, p, y); + p === "hex" && (p = 16), + t(p === (p | 0) && p >= 2 && p <= 36), + (o = o.toString().replace(/\s+/g, "")); + var h = 0; + o[0] === "-" && (h++, (this.negative = 1)), + h < o.length && + (p === 16 + ? this._parseHex(o, h, y) + : (this._parseBase(o, p, h), + y === "le" && this._initArray(this.toArray(), p, y))); + }), + (a.prototype._initNumber = function (o, p, y) { + o < 0 && ((this.negative = 1), (o = -o)), + o < 67108864 + ? ((this.words = [o & 67108863]), (this.length = 1)) + : o < 4503599627370496 + ? ((this.words = [o & 67108863, (o / 67108864) & 67108863]), + (this.length = 2)) + : (t(o < 9007199254740992), + (this.words = [o & 67108863, (o / 67108864) & 67108863, 1]), + (this.length = 3)), + y === "le" && this._initArray(this.toArray(), p, y); + }), + (a.prototype._initArray = function (o, p, y) { + if ((t(typeof o.length == "number"), o.length <= 0)) + return (this.words = [0]), (this.length = 1), this; + (this.length = Math.ceil(o.length / 3)), + (this.words = new Array(this.length)); + for (var h = 0; h < this.length; h++) this.words[h] = 0; + var b, + T, + E = 0; + if (y === "be") + for (h = o.length - 1, b = 0; h >= 0; h -= 3) + (T = o[h] | (o[h - 1] << 8) | (o[h - 2] << 16)), + (this.words[b] |= (T << E) & 67108863), + (this.words[b + 1] = (T >>> (26 - E)) & 67108863), + (E += 24), + E >= 26 && ((E -= 26), b++); + else if (y === "le") + for (h = 0, b = 0; h < o.length; h += 3) + (T = o[h] | (o[h + 1] << 8) | (o[h + 2] << 16)), + (this.words[b] |= (T << E) & 67108863), + (this.words[b + 1] = (T >>> (26 - E)) & 67108863), + (E += 24), + E >= 26 && ((E -= 26), b++); + return this.strip(); + }); + function s(g, o) { + var p = g.charCodeAt(o); + return p >= 65 && p <= 70 + ? p - 55 + : p >= 97 && p <= 102 + ? p - 87 + : (p - 48) & 15; + } + function c(g, o, p) { + var y = s(g, p); + return p - 1 >= o && (y |= s(g, p - 1) << 4), y; + } + a.prototype._parseHex = function (o, p, y) { + (this.length = Math.ceil((o.length - p) / 6)), + (this.words = new Array(this.length)); + for (var h = 0; h < this.length; h++) this.words[h] = 0; + var b = 0, + T = 0, + E; + if (y === "be") + for (h = o.length - 1; h >= p; h -= 2) + (E = c(o, p, h) << b), + (this.words[T] |= E & 67108863), + b >= 18 + ? ((b -= 18), (T += 1), (this.words[T] |= E >>> 26)) + : (b += 8); + else { + var f = o.length - p; + for (h = f % 2 === 0 ? p + 1 : p; h < o.length; h += 2) + (E = c(o, p, h) << b), + (this.words[T] |= E & 67108863), + b >= 18 + ? ((b -= 18), (T += 1), (this.words[T] |= E >>> 26)) + : (b += 8); + } + this.strip(); + }; + function l(g, o, p, y) { + for (var h = 0, b = Math.min(g.length, p), T = o; T < b; T++) { + var E = g.charCodeAt(T) - 48; + (h *= y), + E >= 49 + ? (h += E - 49 + 10) + : E >= 17 + ? (h += E - 17 + 10) + : (h += E); + } + return h; + } + (a.prototype._parseBase = function (o, p, y) { + (this.words = [0]), (this.length = 1); + for (var h = 0, b = 1; b <= 67108863; b *= p) h++; + h--, (b = (b / p) | 0); + for ( + var T = o.length - y, + E = T % h, + f = Math.min(T, T - E) + y, + u = 0, + v = y; + v < f; + v += h + ) + (u = l(o, v, v + h, p)), + this.imuln(b), + this.words[0] + u < 67108864 + ? (this.words[0] += u) + : this._iaddn(u); + if (E !== 0) { + var R = 1; + for (u = l(o, v, o.length, p), v = 0; v < E; v++) R *= p; + this.imuln(R), + this.words[0] + u < 67108864 + ? (this.words[0] += u) + : this._iaddn(u); + } + this.strip(); + }), + (a.prototype.copy = function (o) { + o.words = new Array(this.length); + for (var p = 0; p < this.length; p++) o.words[p] = this.words[p]; + (o.length = this.length), + (o.negative = this.negative), + (o.red = this.red); + }), + (a.prototype.clone = function () { + var o = new a(null); + return this.copy(o), o; + }), + (a.prototype._expand = function (o) { + for (; this.length < o; ) this.words[this.length++] = 0; + return this; + }), + (a.prototype.strip = function () { + for (; this.length > 1 && this.words[this.length - 1] === 0; ) + this.length--; + return this._normSign(); + }), + (a.prototype._normSign = function () { + return ( + this.length === 1 && this.words[0] === 0 && (this.negative = 0), + this + ); + }), + (a.prototype.inspect = function () { + return (this.red ? ""; + }); + var d = [ + "", + "0", + "00", + "000", + "0000", + "00000", + "000000", + "0000000", + "00000000", + "000000000", + "0000000000", + "00000000000", + "000000000000", + "0000000000000", + "00000000000000", + "000000000000000", + "0000000000000000", + "00000000000000000", + "000000000000000000", + "0000000000000000000", + "00000000000000000000", + "000000000000000000000", + "0000000000000000000000", + "00000000000000000000000", + "000000000000000000000000", + "0000000000000000000000000", + ], + m = [ + 0, 0, 25, 16, 12, 11, 10, 9, 8, 8, 7, 7, 7, 7, 6, 6, 6, 6, 6, 6, 6, 5, + 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, + ], + w = [ + 0, 0, 33554432, 43046721, 16777216, 48828125, 60466176, 40353607, + 16777216, 43046721, 1e7, 19487171, 35831808, 62748517, 7529536, + 11390625, 16777216, 24137569, 34012224, 47045881, 64e6, 4084101, + 5153632, 6436343, 7962624, 9765625, 11881376, 14348907, 17210368, + 20511149, 243e5, 28629151, 33554432, 39135393, 45435424, 52521875, + 60466176, + ]; + (a.prototype.toString = function (o, p) { + (o = o || 10), (p = p | 0 || 1); + var y; + if (o === 16 || o === "hex") { + y = ""; + for (var h = 0, b = 0, T = 0; T < this.length; T++) { + var E = this.words[T], + f = (((E << h) | b) & 16777215).toString(16); + (b = (E >>> (24 - h)) & 16777215), + b !== 0 || T !== this.length - 1 + ? (y = d[6 - f.length] + f + y) + : (y = f + y), + (h += 2), + h >= 26 && ((h -= 26), T--); + } + for (b !== 0 && (y = b.toString(16) + y); y.length % p !== 0; ) + y = "0" + y; + return this.negative !== 0 && (y = "-" + y), y; + } + if (o === (o | 0) && o >= 2 && o <= 36) { + var u = m[o], + v = w[o]; + y = ""; + var R = this.clone(); + for (R.negative = 0; !R.isZero(); ) { + var A = R.modn(v).toString(o); + (R = R.idivn(v)), + R.isZero() ? (y = A + y) : (y = d[u - A.length] + A + y); + } + for (this.isZero() && (y = "0" + y); y.length % p !== 0; ) + y = "0" + y; + return this.negative !== 0 && (y = "-" + y), y; + } + t(!1, "Base should be between 2 and 36"); + }), + (a.prototype.toNumber = function () { + var o = this.words[0]; + return ( + this.length === 2 + ? (o += this.words[1] * 67108864) + : this.length === 3 && this.words[2] === 1 + ? (o += 4503599627370496 + this.words[1] * 67108864) + : this.length > 2 && + t(!1, "Number can only safely store up to 53 bits"), + this.negative !== 0 ? -o : o + ); + }), + (a.prototype.toJSON = function () { + return this.toString(16); + }), + (a.prototype.toBuffer = function (o, p) { + return t(typeof i < "u"), this.toArrayLike(i, o, p); + }), + (a.prototype.toArray = function (o, p) { + return this.toArrayLike(Array, o, p); + }), + (a.prototype.toArrayLike = function (o, p, y) { + var h = this.byteLength(), + b = y || Math.max(1, h); + t(h <= b, "byte array longer than desired length"), + t(b > 0, "Requested array length <= 0"), + this.strip(); + var T = p === "le", + E = new o(b), + f, + u, + v = this.clone(); + if (T) { + for (u = 0; !v.isZero(); u++) + (f = v.andln(255)), v.iushrn(8), (E[u] = f); + for (; u < b; u++) E[u] = 0; + } else { + for (u = 0; u < b - h; u++) E[u] = 0; + for (u = 0; !v.isZero(); u++) + (f = v.andln(255)), v.iushrn(8), (E[b - u - 1] = f); + } + return E; + }), + Math.clz32 + ? (a.prototype._countBits = function (o) { + return 32 - Math.clz32(o); + }) + : (a.prototype._countBits = function (o) { + var p = o, + y = 0; + return ( + p >= 4096 && ((y += 13), (p >>>= 13)), + p >= 64 && ((y += 7), (p >>>= 7)), + p >= 8 && ((y += 4), (p >>>= 4)), + p >= 2 && ((y += 2), (p >>>= 2)), + y + p + ); + }), + (a.prototype._zeroBits = function (o) { + if (o === 0) return 26; + var p = o, + y = 0; + return ( + (p & 8191) === 0 && ((y += 13), (p >>>= 13)), + (p & 127) === 0 && ((y += 7), (p >>>= 7)), + (p & 15) === 0 && ((y += 4), (p >>>= 4)), + (p & 3) === 0 && ((y += 2), (p >>>= 2)), + (p & 1) === 0 && y++, + y + ); + }), + (a.prototype.bitLength = function () { + var o = this.words[this.length - 1], + p = this._countBits(o); + return (this.length - 1) * 26 + p; + }); + function C(g) { + for (var o = new Array(g.bitLength()), p = 0; p < o.length; p++) { + var y = (p / 26) | 0, + h = p % 26; + o[p] = (g.words[y] & (1 << h)) >>> h; + } + return o; + } + (a.prototype.zeroBits = function () { + if (this.isZero()) return 0; + for (var o = 0, p = 0; p < this.length; p++) { + var y = this._zeroBits(this.words[p]); + if (((o += y), y !== 26)) break; + } + return o; + }), + (a.prototype.byteLength = function () { + return Math.ceil(this.bitLength() / 8); + }), + (a.prototype.toTwos = function (o) { + return this.negative !== 0 + ? this.abs().inotn(o).iaddn(1) + : this.clone(); + }), + (a.prototype.fromTwos = function (o) { + return this.testn(o - 1) + ? this.notn(o).iaddn(1).ineg() + : this.clone(); + }), + (a.prototype.isNeg = function () { + return this.negative !== 0; + }), + (a.prototype.neg = function () { + return this.clone().ineg(); + }), + (a.prototype.ineg = function () { + return this.isZero() || (this.negative ^= 1), this; + }), + (a.prototype.iuor = function (o) { + for (; this.length < o.length; ) this.words[this.length++] = 0; + for (var p = 0; p < o.length; p++) + this.words[p] = this.words[p] | o.words[p]; + return this.strip(); + }), + (a.prototype.ior = function (o) { + return t((this.negative | o.negative) === 0), this.iuor(o); + }), + (a.prototype.or = function (o) { + return this.length > o.length + ? this.clone().ior(o) + : o.clone().ior(this); + }), + (a.prototype.uor = function (o) { + return this.length > o.length + ? this.clone().iuor(o) + : o.clone().iuor(this); + }), + (a.prototype.iuand = function (o) { + var p; + this.length > o.length ? (p = o) : (p = this); + for (var y = 0; y < p.length; y++) + this.words[y] = this.words[y] & o.words[y]; + return (this.length = p.length), this.strip(); + }), + (a.prototype.iand = function (o) { + return t((this.negative | o.negative) === 0), this.iuand(o); + }), + (a.prototype.and = function (o) { + return this.length > o.length + ? this.clone().iand(o) + : o.clone().iand(this); + }), + (a.prototype.uand = function (o) { + return this.length > o.length + ? this.clone().iuand(o) + : o.clone().iuand(this); + }), + (a.prototype.iuxor = function (o) { + var p, y; + this.length > o.length + ? ((p = this), (y = o)) + : ((p = o), (y = this)); + for (var h = 0; h < y.length; h++) + this.words[h] = p.words[h] ^ y.words[h]; + if (this !== p) for (; h < p.length; h++) this.words[h] = p.words[h]; + return (this.length = p.length), this.strip(); + }), + (a.prototype.ixor = function (o) { + return t((this.negative | o.negative) === 0), this.iuxor(o); + }), + (a.prototype.xor = function (o) { + return this.length > o.length + ? this.clone().ixor(o) + : o.clone().ixor(this); + }), + (a.prototype.uxor = function (o) { + return this.length > o.length + ? this.clone().iuxor(o) + : o.clone().iuxor(this); + }), + (a.prototype.inotn = function (o) { + t(typeof o == "number" && o >= 0); + var p = Math.ceil(o / 26) | 0, + y = o % 26; + this._expand(p), y > 0 && p--; + for (var h = 0; h < p; h++) this.words[h] = ~this.words[h] & 67108863; + return ( + y > 0 && (this.words[h] = ~this.words[h] & (67108863 >> (26 - y))), + this.strip() + ); + }), + (a.prototype.notn = function (o) { + return this.clone().inotn(o); + }), + (a.prototype.setn = function (o, p) { + t(typeof o == "number" && o >= 0); + var y = (o / 26) | 0, + h = o % 26; + return ( + this._expand(y + 1), + p + ? (this.words[y] = this.words[y] | (1 << h)) + : (this.words[y] = this.words[y] & ~(1 << h)), + this.strip() + ); + }), + (a.prototype.iadd = function (o) { + var p; + if (this.negative !== 0 && o.negative === 0) + return ( + (this.negative = 0), + (p = this.isub(o)), + (this.negative ^= 1), + this._normSign() + ); + if (this.negative === 0 && o.negative !== 0) + return ( + (o.negative = 0), + (p = this.isub(o)), + (o.negative = 1), + p._normSign() + ); + var y, h; + this.length > o.length + ? ((y = this), (h = o)) + : ((y = o), (h = this)); + for (var b = 0, T = 0; T < h.length; T++) + (p = (y.words[T] | 0) + (h.words[T] | 0) + b), + (this.words[T] = p & 67108863), + (b = p >>> 26); + for (; b !== 0 && T < y.length; T++) + (p = (y.words[T] | 0) + b), + (this.words[T] = p & 67108863), + (b = p >>> 26); + if (((this.length = y.length), b !== 0)) + (this.words[this.length] = b), this.length++; + else if (y !== this) + for (; T < y.length; T++) this.words[T] = y.words[T]; + return this; + }), + (a.prototype.add = function (o) { + var p; + return o.negative !== 0 && this.negative === 0 + ? ((o.negative = 0), (p = this.sub(o)), (o.negative ^= 1), p) + : o.negative === 0 && this.negative !== 0 + ? ((this.negative = 0), (p = o.sub(this)), (this.negative = 1), p) + : this.length > o.length + ? this.clone().iadd(o) + : o.clone().iadd(this); + }), + (a.prototype.isub = function (o) { + if (o.negative !== 0) { + o.negative = 0; + var p = this.iadd(o); + return (o.negative = 1), p._normSign(); + } else if (this.negative !== 0) + return ( + (this.negative = 0), + this.iadd(o), + (this.negative = 1), + this._normSign() + ); + var y = this.cmp(o); + if (y === 0) + return ( + (this.negative = 0), (this.length = 1), (this.words[0] = 0), this + ); + var h, b; + y > 0 ? ((h = this), (b = o)) : ((h = o), (b = this)); + for (var T = 0, E = 0; E < b.length; E++) + (p = (h.words[E] | 0) - (b.words[E] | 0) + T), + (T = p >> 26), + (this.words[E] = p & 67108863); + for (; T !== 0 && E < h.length; E++) + (p = (h.words[E] | 0) + T), + (T = p >> 26), + (this.words[E] = p & 67108863); + if (T === 0 && E < h.length && h !== this) + for (; E < h.length; E++) this.words[E] = h.words[E]; + return ( + (this.length = Math.max(this.length, E)), + h !== this && (this.negative = 1), + this.strip() + ); + }), + (a.prototype.sub = function (o) { + return this.clone().isub(o); + }); + function I(g, o, p) { + p.negative = o.negative ^ g.negative; + var y = (g.length + o.length) | 0; + (p.length = y), (y = (y - 1) | 0); + var h = g.words[0] | 0, + b = o.words[0] | 0, + T = h * b, + E = T & 67108863, + f = (T / 67108864) | 0; + p.words[0] = E; + for (var u = 1; u < y; u++) { + for ( + var v = f >>> 26, + R = f & 67108863, + A = Math.min(u, o.length - 1), + L = Math.max(0, u - g.length + 1); + L <= A; + L++ + ) { + var G = (u - L) | 0; + (h = g.words[G] | 0), + (b = o.words[L] | 0), + (T = h * b + R), + (v += (T / 67108864) | 0), + (R = T & 67108863); + } + (p.words[u] = R | 0), (f = v | 0); + } + return f !== 0 ? (p.words[u] = f | 0) : p.length--, p.strip(); + } + var k = function (o, p, y) { + var h = o.words, + b = p.words, + T = y.words, + E = 0, + f, + u, + v, + R = h[0] | 0, + A = R & 8191, + L = R >>> 13, + G = h[1] | 0, + U = G & 8191, + Z = G >>> 13, + de = h[2] | 0, + ne = de & 8191, + pe = de >>> 13, + lt = h[3] | 0, + fe = lt & 8191, + ve = lt >>> 13, + vt = h[4] | 0, + we = vt & 8191, + Ne = vt >>> 13, + kt = h[5] | 0, + Le = kt & 8191, + ze = kt >>> 13, + It = h[6] | 0, + Se = It & 8191, + Ke = It >>> 13, + Et = h[7] | 0, + Me = Et & 8191, + Ge = Et >>> 13, + Dt = h[8] | 0, + De = Dt & 8191, + Ze = Dt >>> 13, + Wt = h[9] | 0, + ke = Wt & 8191, + $e = Wt >>> 13, + Ht = b[0] | 0, + Pe = Ht & 8191, + Je = Ht >>> 13, + zt = b[1] | 0, + Re = zt & 8191, + Qe = zt >>> 13, + jt = b[2] | 0, + Be = jt & 8191, + Xe = jt >>> 13, + Ut = b[3] | 0, + Ae = Ut & 8191, + et = Ut >>> 13, + St = b[4] | 0, + Oe = St & 8191, + tt = St >>> 13, + Kt = b[5] | 0, + qe = Kt & 8191, + rt = Kt >>> 13, + Vt = b[6] | 0, + Ie = Vt & 8191, + Ye = Vt >>> 13, + Gt = b[7] | 0, + We = Gt & 8191, + it = Gt >>> 13, + Qt = b[8] | 0, + Ue = Qt & 8191, + nt = Qt >>> 13, + tr = b[9] | 0, + He = tr & 8191, + at = tr >>> 13; + (y.negative = o.negative ^ p.negative), + (y.length = 19), + (f = Math.imul(A, Pe)), + (u = Math.imul(A, Je)), + (u = (u + Math.imul(L, Pe)) | 0), + (v = Math.imul(L, Je)); + var Pr = (((E + f) | 0) + ((u & 8191) << 13)) | 0; + (E = (((v + (u >>> 13)) | 0) + (Pr >>> 26)) | 0), + (Pr &= 67108863), + (f = Math.imul(U, Pe)), + (u = Math.imul(U, Je)), + (u = (u + Math.imul(Z, Pe)) | 0), + (v = Math.imul(Z, Je)), + (f = (f + Math.imul(A, Re)) | 0), + (u = (u + Math.imul(A, Qe)) | 0), + (u = (u + Math.imul(L, Re)) | 0), + (v = (v + Math.imul(L, Qe)) | 0); + var qt = (((E + f) | 0) + ((u & 8191) << 13)) | 0; + (E = (((v + (u >>> 13)) | 0) + (qt >>> 26)) | 0), + (qt &= 67108863), + (f = Math.imul(ne, Pe)), + (u = Math.imul(ne, Je)), + (u = (u + Math.imul(pe, Pe)) | 0), + (v = Math.imul(pe, Je)), + (f = (f + Math.imul(U, Re)) | 0), + (u = (u + Math.imul(U, Qe)) | 0), + (u = (u + Math.imul(Z, Re)) | 0), + (v = (v + Math.imul(Z, Qe)) | 0), + (f = (f + Math.imul(A, Be)) | 0), + (u = (u + Math.imul(A, Xe)) | 0), + (u = (u + Math.imul(L, Be)) | 0), + (v = (v + Math.imul(L, Xe)) | 0); + var Ft = (((E + f) | 0) + ((u & 8191) << 13)) | 0; + (E = (((v + (u >>> 13)) | 0) + (Ft >>> 26)) | 0), + (Ft &= 67108863), + (f = Math.imul(fe, Pe)), + (u = Math.imul(fe, Je)), + (u = (u + Math.imul(ve, Pe)) | 0), + (v = Math.imul(ve, Je)), + (f = (f + Math.imul(ne, Re)) | 0), + (u = (u + Math.imul(ne, Qe)) | 0), + (u = (u + Math.imul(pe, Re)) | 0), + (v = (v + Math.imul(pe, Qe)) | 0), + (f = (f + Math.imul(U, Be)) | 0), + (u = (u + Math.imul(U, Xe)) | 0), + (u = (u + Math.imul(Z, Be)) | 0), + (v = (v + Math.imul(Z, Xe)) | 0), + (f = (f + Math.imul(A, Ae)) | 0), + (u = (u + Math.imul(A, et)) | 0), + (u = (u + Math.imul(L, Ae)) | 0), + (v = (v + Math.imul(L, et)) | 0); + var _r = (((E + f) | 0) + ((u & 8191) << 13)) | 0; + (E = (((v + (u >>> 13)) | 0) + (_r >>> 26)) | 0), + (_r &= 67108863), + (f = Math.imul(we, Pe)), + (u = Math.imul(we, Je)), + (u = (u + Math.imul(Ne, Pe)) | 0), + (v = Math.imul(Ne, Je)), + (f = (f + Math.imul(fe, Re)) | 0), + (u = (u + Math.imul(fe, Qe)) | 0), + (u = (u + Math.imul(ve, Re)) | 0), + (v = (v + Math.imul(ve, Qe)) | 0), + (f = (f + Math.imul(ne, Be)) | 0), + (u = (u + Math.imul(ne, Xe)) | 0), + (u = (u + Math.imul(pe, Be)) | 0), + (v = (v + Math.imul(pe, Xe)) | 0), + (f = (f + Math.imul(U, Ae)) | 0), + (u = (u + Math.imul(U, et)) | 0), + (u = (u + Math.imul(Z, Ae)) | 0), + (v = (v + Math.imul(Z, et)) | 0), + (f = (f + Math.imul(A, Oe)) | 0), + (u = (u + Math.imul(A, tt)) | 0), + (u = (u + Math.imul(L, Oe)) | 0), + (v = (v + Math.imul(L, tt)) | 0); + var xr = (((E + f) | 0) + ((u & 8191) << 13)) | 0; + (E = (((v + (u >>> 13)) | 0) + (xr >>> 26)) | 0), + (xr &= 67108863), + (f = Math.imul(Le, Pe)), + (u = Math.imul(Le, Je)), + (u = (u + Math.imul(ze, Pe)) | 0), + (v = Math.imul(ze, Je)), + (f = (f + Math.imul(we, Re)) | 0), + (u = (u + Math.imul(we, Qe)) | 0), + (u = (u + Math.imul(Ne, Re)) | 0), + (v = (v + Math.imul(Ne, Qe)) | 0), + (f = (f + Math.imul(fe, Be)) | 0), + (u = (u + Math.imul(fe, Xe)) | 0), + (u = (u + Math.imul(ve, Be)) | 0), + (v = (v + Math.imul(ve, Xe)) | 0), + (f = (f + Math.imul(ne, Ae)) | 0), + (u = (u + Math.imul(ne, et)) | 0), + (u = (u + Math.imul(pe, Ae)) | 0), + (v = (v + Math.imul(pe, et)) | 0), + (f = (f + Math.imul(U, Oe)) | 0), + (u = (u + Math.imul(U, tt)) | 0), + (u = (u + Math.imul(Z, Oe)) | 0), + (v = (v + Math.imul(Z, tt)) | 0), + (f = (f + Math.imul(A, qe)) | 0), + (u = (u + Math.imul(A, rt)) | 0), + (u = (u + Math.imul(L, qe)) | 0), + (v = (v + Math.imul(L, rt)) | 0); + var Tr = (((E + f) | 0) + ((u & 8191) << 13)) | 0; + (E = (((v + (u >>> 13)) | 0) + (Tr >>> 26)) | 0), + (Tr &= 67108863), + (f = Math.imul(Se, Pe)), + (u = Math.imul(Se, Je)), + (u = (u + Math.imul(Ke, Pe)) | 0), + (v = Math.imul(Ke, Je)), + (f = (f + Math.imul(Le, Re)) | 0), + (u = (u + Math.imul(Le, Qe)) | 0), + (u = (u + Math.imul(ze, Re)) | 0), + (v = (v + Math.imul(ze, Qe)) | 0), + (f = (f + Math.imul(we, Be)) | 0), + (u = (u + Math.imul(we, Xe)) | 0), + (u = (u + Math.imul(Ne, Be)) | 0), + (v = (v + Math.imul(Ne, Xe)) | 0), + (f = (f + Math.imul(fe, Ae)) | 0), + (u = (u + Math.imul(fe, et)) | 0), + (u = (u + Math.imul(ve, Ae)) | 0), + (v = (v + Math.imul(ve, et)) | 0), + (f = (f + Math.imul(ne, Oe)) | 0), + (u = (u + Math.imul(ne, tt)) | 0), + (u = (u + Math.imul(pe, Oe)) | 0), + (v = (v + Math.imul(pe, tt)) | 0), + (f = (f + Math.imul(U, qe)) | 0), + (u = (u + Math.imul(U, rt)) | 0), + (u = (u + Math.imul(Z, qe)) | 0), + (v = (v + Math.imul(Z, rt)) | 0), + (f = (f + Math.imul(A, Ie)) | 0), + (u = (u + Math.imul(A, Ye)) | 0), + (u = (u + Math.imul(L, Ie)) | 0), + (v = (v + Math.imul(L, Ye)) | 0); + var Er = (((E + f) | 0) + ((u & 8191) << 13)) | 0; + (E = (((v + (u >>> 13)) | 0) + (Er >>> 26)) | 0), + (Er &= 67108863), + (f = Math.imul(Me, Pe)), + (u = Math.imul(Me, Je)), + (u = (u + Math.imul(Ge, Pe)) | 0), + (v = Math.imul(Ge, Je)), + (f = (f + Math.imul(Se, Re)) | 0), + (u = (u + Math.imul(Se, Qe)) | 0), + (u = (u + Math.imul(Ke, Re)) | 0), + (v = (v + Math.imul(Ke, Qe)) | 0), + (f = (f + Math.imul(Le, Be)) | 0), + (u = (u + Math.imul(Le, Xe)) | 0), + (u = (u + Math.imul(ze, Be)) | 0), + (v = (v + Math.imul(ze, Xe)) | 0), + (f = (f + Math.imul(we, Ae)) | 0), + (u = (u + Math.imul(we, et)) | 0), + (u = (u + Math.imul(Ne, Ae)) | 0), + (v = (v + Math.imul(Ne, et)) | 0), + (f = (f + Math.imul(fe, Oe)) | 0), + (u = (u + Math.imul(fe, tt)) | 0), + (u = (u + Math.imul(ve, Oe)) | 0), + (v = (v + Math.imul(ve, tt)) | 0), + (f = (f + Math.imul(ne, qe)) | 0), + (u = (u + Math.imul(ne, rt)) | 0), + (u = (u + Math.imul(pe, qe)) | 0), + (v = (v + Math.imul(pe, rt)) | 0), + (f = (f + Math.imul(U, Ie)) | 0), + (u = (u + Math.imul(U, Ye)) | 0), + (u = (u + Math.imul(Z, Ie)) | 0), + (v = (v + Math.imul(Z, Ye)) | 0), + (f = (f + Math.imul(A, We)) | 0), + (u = (u + Math.imul(A, it)) | 0), + (u = (u + Math.imul(L, We)) | 0), + (v = (v + Math.imul(L, it)) | 0); + var Cr = (((E + f) | 0) + ((u & 8191) << 13)) | 0; + (E = (((v + (u >>> 13)) | 0) + (Cr >>> 26)) | 0), + (Cr &= 67108863), + (f = Math.imul(De, Pe)), + (u = Math.imul(De, Je)), + (u = (u + Math.imul(Ze, Pe)) | 0), + (v = Math.imul(Ze, Je)), + (f = (f + Math.imul(Me, Re)) | 0), + (u = (u + Math.imul(Me, Qe)) | 0), + (u = (u + Math.imul(Ge, Re)) | 0), + (v = (v + Math.imul(Ge, Qe)) | 0), + (f = (f + Math.imul(Se, Be)) | 0), + (u = (u + Math.imul(Se, Xe)) | 0), + (u = (u + Math.imul(Ke, Be)) | 0), + (v = (v + Math.imul(Ke, Xe)) | 0), + (f = (f + Math.imul(Le, Ae)) | 0), + (u = (u + Math.imul(Le, et)) | 0), + (u = (u + Math.imul(ze, Ae)) | 0), + (v = (v + Math.imul(ze, et)) | 0), + (f = (f + Math.imul(we, Oe)) | 0), + (u = (u + Math.imul(we, tt)) | 0), + (u = (u + Math.imul(Ne, Oe)) | 0), + (v = (v + Math.imul(Ne, tt)) | 0), + (f = (f + Math.imul(fe, qe)) | 0), + (u = (u + Math.imul(fe, rt)) | 0), + (u = (u + Math.imul(ve, qe)) | 0), + (v = (v + Math.imul(ve, rt)) | 0), + (f = (f + Math.imul(ne, Ie)) | 0), + (u = (u + Math.imul(ne, Ye)) | 0), + (u = (u + Math.imul(pe, Ie)) | 0), + (v = (v + Math.imul(pe, Ye)) | 0), + (f = (f + Math.imul(U, We)) | 0), + (u = (u + Math.imul(U, it)) | 0), + (u = (u + Math.imul(Z, We)) | 0), + (v = (v + Math.imul(Z, it)) | 0), + (f = (f + Math.imul(A, Ue)) | 0), + (u = (u + Math.imul(A, nt)) | 0), + (u = (u + Math.imul(L, Ue)) | 0), + (v = (v + Math.imul(L, nt)) | 0); + var Kr = (((E + f) | 0) + ((u & 8191) << 13)) | 0; + (E = (((v + (u >>> 13)) | 0) + (Kr >>> 26)) | 0), + (Kr &= 67108863), + (f = Math.imul(ke, Pe)), + (u = Math.imul(ke, Je)), + (u = (u + Math.imul($e, Pe)) | 0), + (v = Math.imul($e, Je)), + (f = (f + Math.imul(De, Re)) | 0), + (u = (u + Math.imul(De, Qe)) | 0), + (u = (u + Math.imul(Ze, Re)) | 0), + (v = (v + Math.imul(Ze, Qe)) | 0), + (f = (f + Math.imul(Me, Be)) | 0), + (u = (u + Math.imul(Me, Xe)) | 0), + (u = (u + Math.imul(Ge, Be)) | 0), + (v = (v + Math.imul(Ge, Xe)) | 0), + (f = (f + Math.imul(Se, Ae)) | 0), + (u = (u + Math.imul(Se, et)) | 0), + (u = (u + Math.imul(Ke, Ae)) | 0), + (v = (v + Math.imul(Ke, et)) | 0), + (f = (f + Math.imul(Le, Oe)) | 0), + (u = (u + Math.imul(Le, tt)) | 0), + (u = (u + Math.imul(ze, Oe)) | 0), + (v = (v + Math.imul(ze, tt)) | 0), + (f = (f + Math.imul(we, qe)) | 0), + (u = (u + Math.imul(we, rt)) | 0), + (u = (u + Math.imul(Ne, qe)) | 0), + (v = (v + Math.imul(Ne, rt)) | 0), + (f = (f + Math.imul(fe, Ie)) | 0), + (u = (u + Math.imul(fe, Ye)) | 0), + (u = (u + Math.imul(ve, Ie)) | 0), + (v = (v + Math.imul(ve, Ye)) | 0), + (f = (f + Math.imul(ne, We)) | 0), + (u = (u + Math.imul(ne, it)) | 0), + (u = (u + Math.imul(pe, We)) | 0), + (v = (v + Math.imul(pe, it)) | 0), + (f = (f + Math.imul(U, Ue)) | 0), + (u = (u + Math.imul(U, nt)) | 0), + (u = (u + Math.imul(Z, Ue)) | 0), + (v = (v + Math.imul(Z, nt)) | 0), + (f = (f + Math.imul(A, He)) | 0), + (u = (u + Math.imul(A, at)) | 0), + (u = (u + Math.imul(L, He)) | 0), + (v = (v + Math.imul(L, at)) | 0); + var Vr = (((E + f) | 0) + ((u & 8191) << 13)) | 0; + (E = (((v + (u >>> 13)) | 0) + (Vr >>> 26)) | 0), + (Vr &= 67108863), + (f = Math.imul(ke, Re)), + (u = Math.imul(ke, Qe)), + (u = (u + Math.imul($e, Re)) | 0), + (v = Math.imul($e, Qe)), + (f = (f + Math.imul(De, Be)) | 0), + (u = (u + Math.imul(De, Xe)) | 0), + (u = (u + Math.imul(Ze, Be)) | 0), + (v = (v + Math.imul(Ze, Xe)) | 0), + (f = (f + Math.imul(Me, Ae)) | 0), + (u = (u + Math.imul(Me, et)) | 0), + (u = (u + Math.imul(Ge, Ae)) | 0), + (v = (v + Math.imul(Ge, et)) | 0), + (f = (f + Math.imul(Se, Oe)) | 0), + (u = (u + Math.imul(Se, tt)) | 0), + (u = (u + Math.imul(Ke, Oe)) | 0), + (v = (v + Math.imul(Ke, tt)) | 0), + (f = (f + Math.imul(Le, qe)) | 0), + (u = (u + Math.imul(Le, rt)) | 0), + (u = (u + Math.imul(ze, qe)) | 0), + (v = (v + Math.imul(ze, rt)) | 0), + (f = (f + Math.imul(we, Ie)) | 0), + (u = (u + Math.imul(we, Ye)) | 0), + (u = (u + Math.imul(Ne, Ie)) | 0), + (v = (v + Math.imul(Ne, Ye)) | 0), + (f = (f + Math.imul(fe, We)) | 0), + (u = (u + Math.imul(fe, it)) | 0), + (u = (u + Math.imul(ve, We)) | 0), + (v = (v + Math.imul(ve, it)) | 0), + (f = (f + Math.imul(ne, Ue)) | 0), + (u = (u + Math.imul(ne, nt)) | 0), + (u = (u + Math.imul(pe, Ue)) | 0), + (v = (v + Math.imul(pe, nt)) | 0), + (f = (f + Math.imul(U, He)) | 0), + (u = (u + Math.imul(U, at)) | 0), + (u = (u + Math.imul(Z, He)) | 0), + (v = (v + Math.imul(Z, at)) | 0); + var Ur = (((E + f) | 0) + ((u & 8191) << 13)) | 0; + (E = (((v + (u >>> 13)) | 0) + (Ur >>> 26)) | 0), + (Ur &= 67108863), + (f = Math.imul(ke, Be)), + (u = Math.imul(ke, Xe)), + (u = (u + Math.imul($e, Be)) | 0), + (v = Math.imul($e, Xe)), + (f = (f + Math.imul(De, Ae)) | 0), + (u = (u + Math.imul(De, et)) | 0), + (u = (u + Math.imul(Ze, Ae)) | 0), + (v = (v + Math.imul(Ze, et)) | 0), + (f = (f + Math.imul(Me, Oe)) | 0), + (u = (u + Math.imul(Me, tt)) | 0), + (u = (u + Math.imul(Ge, Oe)) | 0), + (v = (v + Math.imul(Ge, tt)) | 0), + (f = (f + Math.imul(Se, qe)) | 0), + (u = (u + Math.imul(Se, rt)) | 0), + (u = (u + Math.imul(Ke, qe)) | 0), + (v = (v + Math.imul(Ke, rt)) | 0), + (f = (f + Math.imul(Le, Ie)) | 0), + (u = (u + Math.imul(Le, Ye)) | 0), + (u = (u + Math.imul(ze, Ie)) | 0), + (v = (v + Math.imul(ze, Ye)) | 0), + (f = (f + Math.imul(we, We)) | 0), + (u = (u + Math.imul(we, it)) | 0), + (u = (u + Math.imul(Ne, We)) | 0), + (v = (v + Math.imul(Ne, it)) | 0), + (f = (f + Math.imul(fe, Ue)) | 0), + (u = (u + Math.imul(fe, nt)) | 0), + (u = (u + Math.imul(ve, Ue)) | 0), + (v = (v + Math.imul(ve, nt)) | 0), + (f = (f + Math.imul(ne, He)) | 0), + (u = (u + Math.imul(ne, at)) | 0), + (u = (u + Math.imul(pe, He)) | 0), + (v = (v + Math.imul(pe, at)) | 0); + var Rr = (((E + f) | 0) + ((u & 8191) << 13)) | 0; + (E = (((v + (u >>> 13)) | 0) + (Rr >>> 26)) | 0), + (Rr &= 67108863), + (f = Math.imul(ke, Ae)), + (u = Math.imul(ke, et)), + (u = (u + Math.imul($e, Ae)) | 0), + (v = Math.imul($e, et)), + (f = (f + Math.imul(De, Oe)) | 0), + (u = (u + Math.imul(De, tt)) | 0), + (u = (u + Math.imul(Ze, Oe)) | 0), + (v = (v + Math.imul(Ze, tt)) | 0), + (f = (f + Math.imul(Me, qe)) | 0), + (u = (u + Math.imul(Me, rt)) | 0), + (u = (u + Math.imul(Ge, qe)) | 0), + (v = (v + Math.imul(Ge, rt)) | 0), + (f = (f + Math.imul(Se, Ie)) | 0), + (u = (u + Math.imul(Se, Ye)) | 0), + (u = (u + Math.imul(Ke, Ie)) | 0), + (v = (v + Math.imul(Ke, Ye)) | 0), + (f = (f + Math.imul(Le, We)) | 0), + (u = (u + Math.imul(Le, it)) | 0), + (u = (u + Math.imul(ze, We)) | 0), + (v = (v + Math.imul(ze, it)) | 0), + (f = (f + Math.imul(we, Ue)) | 0), + (u = (u + Math.imul(we, nt)) | 0), + (u = (u + Math.imul(Ne, Ue)) | 0), + (v = (v + Math.imul(Ne, nt)) | 0), + (f = (f + Math.imul(fe, He)) | 0), + (u = (u + Math.imul(fe, at)) | 0), + (u = (u + Math.imul(ve, He)) | 0), + (v = (v + Math.imul(ve, at)) | 0); + var Or = (((E + f) | 0) + ((u & 8191) << 13)) | 0; + (E = (((v + (u >>> 13)) | 0) + (Or >>> 26)) | 0), + (Or &= 67108863), + (f = Math.imul(ke, Oe)), + (u = Math.imul(ke, tt)), + (u = (u + Math.imul($e, Oe)) | 0), + (v = Math.imul($e, tt)), + (f = (f + Math.imul(De, qe)) | 0), + (u = (u + Math.imul(De, rt)) | 0), + (u = (u + Math.imul(Ze, qe)) | 0), + (v = (v + Math.imul(Ze, rt)) | 0), + (f = (f + Math.imul(Me, Ie)) | 0), + (u = (u + Math.imul(Me, Ye)) | 0), + (u = (u + Math.imul(Ge, Ie)) | 0), + (v = (v + Math.imul(Ge, Ye)) | 0), + (f = (f + Math.imul(Se, We)) | 0), + (u = (u + Math.imul(Se, it)) | 0), + (u = (u + Math.imul(Ke, We)) | 0), + (v = (v + Math.imul(Ke, it)) | 0), + (f = (f + Math.imul(Le, Ue)) | 0), + (u = (u + Math.imul(Le, nt)) | 0), + (u = (u + Math.imul(ze, Ue)) | 0), + (v = (v + Math.imul(ze, nt)) | 0), + (f = (f + Math.imul(we, He)) | 0), + (u = (u + Math.imul(we, at)) | 0), + (u = (u + Math.imul(Ne, He)) | 0), + (v = (v + Math.imul(Ne, at)) | 0); + var ur = (((E + f) | 0) + ((u & 8191) << 13)) | 0; + (E = (((v + (u >>> 13)) | 0) + (ur >>> 26)) | 0), + (ur &= 67108863), + (f = Math.imul(ke, qe)), + (u = Math.imul(ke, rt)), + (u = (u + Math.imul($e, qe)) | 0), + (v = Math.imul($e, rt)), + (f = (f + Math.imul(De, Ie)) | 0), + (u = (u + Math.imul(De, Ye)) | 0), + (u = (u + Math.imul(Ze, Ie)) | 0), + (v = (v + Math.imul(Ze, Ye)) | 0), + (f = (f + Math.imul(Me, We)) | 0), + (u = (u + Math.imul(Me, it)) | 0), + (u = (u + Math.imul(Ge, We)) | 0), + (v = (v + Math.imul(Ge, it)) | 0), + (f = (f + Math.imul(Se, Ue)) | 0), + (u = (u + Math.imul(Se, nt)) | 0), + (u = (u + Math.imul(Ke, Ue)) | 0), + (v = (v + Math.imul(Ke, nt)) | 0), + (f = (f + Math.imul(Le, He)) | 0), + (u = (u + Math.imul(Le, at)) | 0), + (u = (u + Math.imul(ze, He)) | 0), + (v = (v + Math.imul(ze, at)) | 0); + var Hr = (((E + f) | 0) + ((u & 8191) << 13)) | 0; + (E = (((v + (u >>> 13)) | 0) + (Hr >>> 26)) | 0), + (Hr &= 67108863), + (f = Math.imul(ke, Ie)), + (u = Math.imul(ke, Ye)), + (u = (u + Math.imul($e, Ie)) | 0), + (v = Math.imul($e, Ye)), + (f = (f + Math.imul(De, We)) | 0), + (u = (u + Math.imul(De, it)) | 0), + (u = (u + Math.imul(Ze, We)) | 0), + (v = (v + Math.imul(Ze, it)) | 0), + (f = (f + Math.imul(Me, Ue)) | 0), + (u = (u + Math.imul(Me, nt)) | 0), + (u = (u + Math.imul(Ge, Ue)) | 0), + (v = (v + Math.imul(Ge, nt)) | 0), + (f = (f + Math.imul(Se, He)) | 0), + (u = (u + Math.imul(Se, at)) | 0), + (u = (u + Math.imul(Ke, He)) | 0), + (v = (v + Math.imul(Ke, at)) | 0); + var hr = (((E + f) | 0) + ((u & 8191) << 13)) | 0; + (E = (((v + (u >>> 13)) | 0) + (hr >>> 26)) | 0), + (hr &= 67108863), + (f = Math.imul(ke, We)), + (u = Math.imul(ke, it)), + (u = (u + Math.imul($e, We)) | 0), + (v = Math.imul($e, it)), + (f = (f + Math.imul(De, Ue)) | 0), + (u = (u + Math.imul(De, nt)) | 0), + (u = (u + Math.imul(Ze, Ue)) | 0), + (v = (v + Math.imul(Ze, nt)) | 0), + (f = (f + Math.imul(Me, He)) | 0), + (u = (u + Math.imul(Me, at)) | 0), + (u = (u + Math.imul(Ge, He)) | 0), + (v = (v + Math.imul(Ge, at)) | 0); + var Lr = (((E + f) | 0) + ((u & 8191) << 13)) | 0; + (E = (((v + (u >>> 13)) | 0) + (Lr >>> 26)) | 0), + (Lr &= 67108863), + (f = Math.imul(ke, Ue)), + (u = Math.imul(ke, nt)), + (u = (u + Math.imul($e, Ue)) | 0), + (v = Math.imul($e, nt)), + (f = (f + Math.imul(De, He)) | 0), + (u = (u + Math.imul(De, at)) | 0), + (u = (u + Math.imul(Ze, He)) | 0), + (v = (v + Math.imul(Ze, at)) | 0); + var Zr = (((E + f) | 0) + ((u & 8191) << 13)) | 0; + (E = (((v + (u >>> 13)) | 0) + (Zr >>> 26)) | 0), + (Zr &= 67108863), + (f = Math.imul(ke, He)), + (u = Math.imul(ke, at)), + (u = (u + Math.imul($e, He)) | 0), + (v = Math.imul($e, at)); + var xn = (((E + f) | 0) + ((u & 8191) << 13)) | 0; + return ( + (E = (((v + (u >>> 13)) | 0) + (xn >>> 26)) | 0), + (xn &= 67108863), + (T[0] = Pr), + (T[1] = qt), + (T[2] = Ft), + (T[3] = _r), + (T[4] = xr), + (T[5] = Tr), + (T[6] = Er), + (T[7] = Cr), + (T[8] = Kr), + (T[9] = Vr), + (T[10] = Ur), + (T[11] = Rr), + (T[12] = Or), + (T[13] = ur), + (T[14] = Hr), + (T[15] = hr), + (T[16] = Lr), + (T[17] = Zr), + (T[18] = xn), + E !== 0 && ((T[19] = E), y.length++), + y + ); + }; + Math.imul || (k = I); + function O(g, o, p) { + (p.negative = o.negative ^ g.negative), + (p.length = g.length + o.length); + for (var y = 0, h = 0, b = 0; b < p.length - 1; b++) { + var T = h; + h = 0; + for ( + var E = y & 67108863, + f = Math.min(b, o.length - 1), + u = Math.max(0, b - g.length + 1); + u <= f; + u++ + ) { + var v = b - u, + R = g.words[v] | 0, + A = o.words[u] | 0, + L = R * A, + G = L & 67108863; + (T = (T + ((L / 67108864) | 0)) | 0), + (G = (G + E) | 0), + (E = G & 67108863), + (T = (T + (G >>> 26)) | 0), + (h += T >>> 26), + (T &= 67108863); + } + (p.words[b] = E), (y = T), (T = h); + } + return y !== 0 ? (p.words[b] = y) : p.length--, p.strip(); + } + function D(g, o, p) { + var y = new W(); + return y.mulp(g, o, p); + } + a.prototype.mulTo = function (o, p) { + var y, + h = this.length + o.length; + return ( + this.length === 10 && o.length === 10 + ? (y = k(this, o, p)) + : h < 63 + ? (y = I(this, o, p)) + : h < 1024 + ? (y = O(this, o, p)) + : (y = D(this, o, p)), + y + ); + }; + function W(g, o) { + (this.x = g), (this.y = o); + } + (W.prototype.makeRBT = function (o) { + for ( + var p = new Array(o), y = a.prototype._countBits(o) - 1, h = 0; + h < o; + h++ + ) + p[h] = this.revBin(h, y, o); + return p; + }), + (W.prototype.revBin = function (o, p, y) { + if (o === 0 || o === y - 1) return o; + for (var h = 0, b = 0; b < p; b++) + (h |= (o & 1) << (p - b - 1)), (o >>= 1); + return h; + }), + (W.prototype.permute = function (o, p, y, h, b, T) { + for (var E = 0; E < T; E++) (h[E] = p[o[E]]), (b[E] = y[o[E]]); + }), + (W.prototype.transform = function (o, p, y, h, b, T) { + this.permute(T, o, p, y, h, b); + for (var E = 1; E < b; E <<= 1) + for ( + var f = E << 1, + u = Math.cos((2 * Math.PI) / f), + v = Math.sin((2 * Math.PI) / f), + R = 0; + R < b; + R += f + ) + for (var A = u, L = v, G = 0; G < E; G++) { + var U = y[R + G], + Z = h[R + G], + de = y[R + G + E], + ne = h[R + G + E], + pe = A * de - L * ne; + (ne = A * ne + L * de), + (de = pe), + (y[R + G] = U + de), + (h[R + G] = Z + ne), + (y[R + G + E] = U - de), + (h[R + G + E] = Z - ne), + G !== f && + ((pe = u * A - v * L), (L = u * L + v * A), (A = pe)); + } + }), + (W.prototype.guessLen13b = function (o, p) { + var y = Math.max(p, o) | 1, + h = y & 1, + b = 0; + for (y = (y / 2) | 0; y; y = y >>> 1) b++; + return 1 << (b + 1 + h); + }), + (W.prototype.conjugate = function (o, p, y) { + if (!(y <= 1)) + for (var h = 0; h < y / 2; h++) { + var b = o[h]; + (o[h] = o[y - h - 1]), + (o[y - h - 1] = b), + (b = p[h]), + (p[h] = -p[y - h - 1]), + (p[y - h - 1] = -b); + } + }), + (W.prototype.normalize13b = function (o, p) { + for (var y = 0, h = 0; h < p / 2; h++) { + var b = + Math.round(o[2 * h + 1] / p) * 8192 + + Math.round(o[2 * h] / p) + + y; + (o[h] = b & 67108863), + b < 67108864 ? (y = 0) : (y = (b / 67108864) | 0); + } + return o; + }), + (W.prototype.convert13b = function (o, p, y, h) { + for (var b = 0, T = 0; T < p; T++) + (b = b + (o[T] | 0)), + (y[2 * T] = b & 8191), + (b = b >>> 13), + (y[2 * T + 1] = b & 8191), + (b = b >>> 13); + for (T = 2 * p; T < h; ++T) y[T] = 0; + t(b === 0), t((b & -8192) === 0); + }), + (W.prototype.stub = function (o) { + for (var p = new Array(o), y = 0; y < o; y++) p[y] = 0; + return p; + }), + (W.prototype.mulp = function (o, p, y) { + var h = 2 * this.guessLen13b(o.length, p.length), + b = this.makeRBT(h), + T = this.stub(h), + E = new Array(h), + f = new Array(h), + u = new Array(h), + v = new Array(h), + R = new Array(h), + A = new Array(h), + L = y.words; + (L.length = h), + this.convert13b(o.words, o.length, E, h), + this.convert13b(p.words, p.length, v, h), + this.transform(E, T, f, u, h, b), + this.transform(v, T, R, A, h, b); + for (var G = 0; G < h; G++) { + var U = f[G] * R[G] - u[G] * A[G]; + (u[G] = f[G] * A[G] + u[G] * R[G]), (f[G] = U); + } + return ( + this.conjugate(f, u, h), + this.transform(f, u, L, T, h, b), + this.conjugate(L, T, h), + this.normalize13b(L, h), + (y.negative = o.negative ^ p.negative), + (y.length = o.length + p.length), + y.strip() + ); + }), + (a.prototype.mul = function (o) { + var p = new a(null); + return ( + (p.words = new Array(this.length + o.length)), this.mulTo(o, p) + ); + }), + (a.prototype.mulf = function (o) { + var p = new a(null); + return (p.words = new Array(this.length + o.length)), D(this, o, p); + }), + (a.prototype.imul = function (o) { + return this.clone().mulTo(o, this); + }), + (a.prototype.imuln = function (o) { + t(typeof o == "number"), t(o < 67108864); + for (var p = 0, y = 0; y < this.length; y++) { + var h = (this.words[y] | 0) * o, + b = (h & 67108863) + (p & 67108863); + (p >>= 26), + (p += (h / 67108864) | 0), + (p += b >>> 26), + (this.words[y] = b & 67108863); + } + return p !== 0 && ((this.words[y] = p), this.length++), this; + }), + (a.prototype.muln = function (o) { + return this.clone().imuln(o); + }), + (a.prototype.sqr = function () { + return this.mul(this); + }), + (a.prototype.isqr = function () { + return this.imul(this.clone()); + }), + (a.prototype.pow = function (o) { + var p = C(o); + if (p.length === 0) return new a(1); + for ( + var y = this, h = 0; + h < p.length && p[h] === 0; + h++, y = y.sqr() + ); + if (++h < p.length) + for (var b = y.sqr(); h < p.length; h++, b = b.sqr()) + p[h] !== 0 && (y = y.mul(b)); + return y; + }), + (a.prototype.iushln = function (o) { + t(typeof o == "number" && o >= 0); + var p = o % 26, + y = (o - p) / 26, + h = (67108863 >>> (26 - p)) << (26 - p), + b; + if (p !== 0) { + var T = 0; + for (b = 0; b < this.length; b++) { + var E = this.words[b] & h, + f = ((this.words[b] | 0) - E) << p; + (this.words[b] = f | T), (T = E >>> (26 - p)); + } + T && ((this.words[b] = T), this.length++); + } + if (y !== 0) { + for (b = this.length - 1; b >= 0; b--) + this.words[b + y] = this.words[b]; + for (b = 0; b < y; b++) this.words[b] = 0; + this.length += y; + } + return this.strip(); + }), + (a.prototype.ishln = function (o) { + return t(this.negative === 0), this.iushln(o); + }), + (a.prototype.iushrn = function (o, p, y) { + t(typeof o == "number" && o >= 0); + var h; + p ? (h = (p - (p % 26)) / 26) : (h = 0); + var b = o % 26, + T = Math.min((o - b) / 26, this.length), + E = 67108863 ^ ((67108863 >>> b) << b), + f = y; + if (((h -= T), (h = Math.max(0, h)), f)) { + for (var u = 0; u < T; u++) f.words[u] = this.words[u]; + f.length = T; + } + if (T !== 0) + if (this.length > T) + for (this.length -= T, u = 0; u < this.length; u++) + this.words[u] = this.words[u + T]; + else (this.words[0] = 0), (this.length = 1); + var v = 0; + for (u = this.length - 1; u >= 0 && (v !== 0 || u >= h); u--) { + var R = this.words[u] | 0; + (this.words[u] = (v << (26 - b)) | (R >>> b)), (v = R & E); + } + return ( + f && v !== 0 && (f.words[f.length++] = v), + this.length === 0 && ((this.words[0] = 0), (this.length = 1)), + this.strip() + ); + }), + (a.prototype.ishrn = function (o, p, y) { + return t(this.negative === 0), this.iushrn(o, p, y); + }), + (a.prototype.shln = function (o) { + return this.clone().ishln(o); + }), + (a.prototype.ushln = function (o) { + return this.clone().iushln(o); + }), + (a.prototype.shrn = function (o) { + return this.clone().ishrn(o); + }), + (a.prototype.ushrn = function (o) { + return this.clone().iushrn(o); + }), + (a.prototype.testn = function (o) { + t(typeof o == "number" && o >= 0); + var p = o % 26, + y = (o - p) / 26, + h = 1 << p; + if (this.length <= y) return !1; + var b = this.words[y]; + return !!(b & h); + }), + (a.prototype.imaskn = function (o) { + t(typeof o == "number" && o >= 0); + var p = o % 26, + y = (o - p) / 26; + if ( + (t(this.negative === 0, "imaskn works only with positive numbers"), + this.length <= y) + ) + return this; + if ( + (p !== 0 && y++, (this.length = Math.min(y, this.length)), p !== 0) + ) { + var h = 67108863 ^ ((67108863 >>> p) << p); + this.words[this.length - 1] &= h; + } + return this.strip(); + }), + (a.prototype.maskn = function (o) { + return this.clone().imaskn(o); + }), + (a.prototype.iaddn = function (o) { + return ( + t(typeof o == "number"), + t(o < 67108864), + o < 0 + ? this.isubn(-o) + : this.negative !== 0 + ? this.length === 1 && (this.words[0] | 0) < o + ? ((this.words[0] = o - (this.words[0] | 0)), + (this.negative = 0), + this) + : ((this.negative = 0), + this.isubn(o), + (this.negative = 1), + this) + : this._iaddn(o) + ); + }), + (a.prototype._iaddn = function (o) { + this.words[0] += o; + for (var p = 0; p < this.length && this.words[p] >= 67108864; p++) + (this.words[p] -= 67108864), + p === this.length - 1 + ? (this.words[p + 1] = 1) + : this.words[p + 1]++; + return (this.length = Math.max(this.length, p + 1)), this; + }), + (a.prototype.isubn = function (o) { + if ((t(typeof o == "number"), t(o < 67108864), o < 0)) + return this.iaddn(-o); + if (this.negative !== 0) + return ( + (this.negative = 0), this.iaddn(o), (this.negative = 1), this + ); + if (((this.words[0] -= o), this.length === 1 && this.words[0] < 0)) + (this.words[0] = -this.words[0]), (this.negative = 1); + else + for (var p = 0; p < this.length && this.words[p] < 0; p++) + (this.words[p] += 67108864), (this.words[p + 1] -= 1); + return this.strip(); + }), + (a.prototype.addn = function (o) { + return this.clone().iaddn(o); + }), + (a.prototype.subn = function (o) { + return this.clone().isubn(o); + }), + (a.prototype.iabs = function () { + return (this.negative = 0), this; + }), + (a.prototype.abs = function () { + return this.clone().iabs(); + }), + (a.prototype._ishlnsubmul = function (o, p, y) { + var h = o.length + y, + b; + this._expand(h); + var T, + E = 0; + for (b = 0; b < o.length; b++) { + T = (this.words[b + y] | 0) + E; + var f = (o.words[b] | 0) * p; + (T -= f & 67108863), + (E = (T >> 26) - ((f / 67108864) | 0)), + (this.words[b + y] = T & 67108863); + } + for (; b < this.length - y; b++) + (T = (this.words[b + y] | 0) + E), + (E = T >> 26), + (this.words[b + y] = T & 67108863); + if (E === 0) return this.strip(); + for (t(E === -1), E = 0, b = 0; b < this.length; b++) + (T = -(this.words[b] | 0) + E), + (E = T >> 26), + (this.words[b] = T & 67108863); + return (this.negative = 1), this.strip(); + }), + (a.prototype._wordDiv = function (o, p) { + var y = this.length - o.length, + h = this.clone(), + b = o, + T = b.words[b.length - 1] | 0, + E = this._countBits(T); + (y = 26 - E), + y !== 0 && + ((b = b.ushln(y)), h.iushln(y), (T = b.words[b.length - 1] | 0)); + var f = h.length - b.length, + u; + if (p !== "mod") { + (u = new a(null)), + (u.length = f + 1), + (u.words = new Array(u.length)); + for (var v = 0; v < u.length; v++) u.words[v] = 0; + } + var R = h.clone()._ishlnsubmul(b, 1, f); + R.negative === 0 && ((h = R), u && (u.words[f] = 1)); + for (var A = f - 1; A >= 0; A--) { + var L = + (h.words[b.length + A] | 0) * 67108864 + + (h.words[b.length + A - 1] | 0); + for ( + L = Math.min((L / T) | 0, 67108863), h._ishlnsubmul(b, L, A); + h.negative !== 0; + + ) + L--, + (h.negative = 0), + h._ishlnsubmul(b, 1, A), + h.isZero() || (h.negative ^= 1); + u && (u.words[A] = L); + } + return ( + u && u.strip(), + h.strip(), + p !== "div" && y !== 0 && h.iushrn(y), + { div: u || null, mod: h } + ); + }), + (a.prototype.divmod = function (o, p, y) { + if ((t(!o.isZero()), this.isZero())) + return { div: new a(0), mod: new a(0) }; + var h, b, T; + return this.negative !== 0 && o.negative === 0 + ? ((T = this.neg().divmod(o, p)), + p !== "mod" && (h = T.div.neg()), + p !== "div" && + ((b = T.mod.neg()), y && b.negative !== 0 && b.iadd(o)), + { div: h, mod: b }) + : this.negative === 0 && o.negative !== 0 + ? ((T = this.divmod(o.neg(), p)), + p !== "mod" && (h = T.div.neg()), + { div: h, mod: T.mod }) + : (this.negative & o.negative) !== 0 + ? ((T = this.neg().divmod(o.neg(), p)), + p !== "div" && + ((b = T.mod.neg()), y && b.negative !== 0 && b.isub(o)), + { div: T.div, mod: b }) + : o.length > this.length || this.cmp(o) < 0 + ? { div: new a(0), mod: this } + : o.length === 1 + ? p === "div" + ? { div: this.divn(o.words[0]), mod: null } + : p === "mod" + ? { div: null, mod: new a(this.modn(o.words[0])) } + : { + div: this.divn(o.words[0]), + mod: new a(this.modn(o.words[0])), + } + : this._wordDiv(o, p); + }), + (a.prototype.div = function (o) { + return this.divmod(o, "div", !1).div; + }), + (a.prototype.mod = function (o) { + return this.divmod(o, "mod", !1).mod; + }), + (a.prototype.umod = function (o) { + return this.divmod(o, "mod", !0).mod; + }), + (a.prototype.divRound = function (o) { + var p = this.divmod(o); + if (p.mod.isZero()) return p.div; + var y = p.div.negative !== 0 ? p.mod.isub(o) : p.mod, + h = o.ushrn(1), + b = o.andln(1), + T = y.cmp(h); + return T < 0 || (b === 1 && T === 0) + ? p.div + : p.div.negative !== 0 + ? p.div.isubn(1) + : p.div.iaddn(1); + }), + (a.prototype.modn = function (o) { + t(o <= 67108863); + for (var p = (1 << 26) % o, y = 0, h = this.length - 1; h >= 0; h--) + y = (p * y + (this.words[h] | 0)) % o; + return y; + }), + (a.prototype.idivn = function (o) { + t(o <= 67108863); + for (var p = 0, y = this.length - 1; y >= 0; y--) { + var h = (this.words[y] | 0) + p * 67108864; + (this.words[y] = (h / o) | 0), (p = h % o); + } + return this.strip(); + }), + (a.prototype.divn = function (o) { + return this.clone().idivn(o); + }), + (a.prototype.egcd = function (o) { + t(o.negative === 0), t(!o.isZero()); + var p = this, + y = o.clone(); + p.negative !== 0 ? (p = p.umod(o)) : (p = p.clone()); + for ( + var h = new a(1), b = new a(0), T = new a(0), E = new a(1), f = 0; + p.isEven() && y.isEven(); + + ) + p.iushrn(1), y.iushrn(1), ++f; + for (var u = y.clone(), v = p.clone(); !p.isZero(); ) { + for ( + var R = 0, A = 1; + (p.words[0] & A) === 0 && R < 26; + ++R, A <<= 1 + ); + if (R > 0) + for (p.iushrn(R); R-- > 0; ) + (h.isOdd() || b.isOdd()) && (h.iadd(u), b.isub(v)), + h.iushrn(1), + b.iushrn(1); + for ( + var L = 0, G = 1; + (y.words[0] & G) === 0 && L < 26; + ++L, G <<= 1 + ); + if (L > 0) + for (y.iushrn(L); L-- > 0; ) + (T.isOdd() || E.isOdd()) && (T.iadd(u), E.isub(v)), + T.iushrn(1), + E.iushrn(1); + p.cmp(y) >= 0 + ? (p.isub(y), h.isub(T), b.isub(E)) + : (y.isub(p), T.isub(h), E.isub(b)); + } + return { a: T, b: E, gcd: y.iushln(f) }; + }), + (a.prototype._invmp = function (o) { + t(o.negative === 0), t(!o.isZero()); + var p = this, + y = o.clone(); + p.negative !== 0 ? (p = p.umod(o)) : (p = p.clone()); + for ( + var h = new a(1), b = new a(0), T = y.clone(); + p.cmpn(1) > 0 && y.cmpn(1) > 0; + + ) { + for ( + var E = 0, f = 1; + (p.words[0] & f) === 0 && E < 26; + ++E, f <<= 1 + ); + if (E > 0) + for (p.iushrn(E); E-- > 0; ) h.isOdd() && h.iadd(T), h.iushrn(1); + for ( + var u = 0, v = 1; + (y.words[0] & v) === 0 && u < 26; + ++u, v <<= 1 + ); + if (u > 0) + for (y.iushrn(u); u-- > 0; ) b.isOdd() && b.iadd(T), b.iushrn(1); + p.cmp(y) >= 0 ? (p.isub(y), h.isub(b)) : (y.isub(p), b.isub(h)); + } + var R; + return ( + p.cmpn(1) === 0 ? (R = h) : (R = b), R.cmpn(0) < 0 && R.iadd(o), R + ); + }), + (a.prototype.gcd = function (o) { + if (this.isZero()) return o.abs(); + if (o.isZero()) return this.abs(); + var p = this.clone(), + y = o.clone(); + (p.negative = 0), (y.negative = 0); + for (var h = 0; p.isEven() && y.isEven(); h++) + p.iushrn(1), y.iushrn(1); + do { + for (; p.isEven(); ) p.iushrn(1); + for (; y.isEven(); ) y.iushrn(1); + var b = p.cmp(y); + if (b < 0) { + var T = p; + (p = y), (y = T); + } else if (b === 0 || y.cmpn(1) === 0) break; + p.isub(y); + } while (!0); + return y.iushln(h); + }), + (a.prototype.invm = function (o) { + return this.egcd(o).a.umod(o); + }), + (a.prototype.isEven = function () { + return (this.words[0] & 1) === 0; + }), + (a.prototype.isOdd = function () { + return (this.words[0] & 1) === 1; + }), + (a.prototype.andln = function (o) { + return this.words[0] & o; + }), + (a.prototype.bincn = function (o) { + t(typeof o == "number"); + var p = o % 26, + y = (o - p) / 26, + h = 1 << p; + if (this.length <= y) + return this._expand(y + 1), (this.words[y] |= h), this; + for (var b = h, T = y; b !== 0 && T < this.length; T++) { + var E = this.words[T] | 0; + (E += b), (b = E >>> 26), (E &= 67108863), (this.words[T] = E); + } + return b !== 0 && ((this.words[T] = b), this.length++), this; + }), + (a.prototype.isZero = function () { + return this.length === 1 && this.words[0] === 0; + }), + (a.prototype.cmpn = function (o) { + var p = o < 0; + if (this.negative !== 0 && !p) return -1; + if (this.negative === 0 && p) return 1; + this.strip(); + var y; + if (this.length > 1) y = 1; + else { + p && (o = -o), t(o <= 67108863, "Number is too big"); + var h = this.words[0] | 0; + y = h === o ? 0 : h < o ? -1 : 1; + } + return this.negative !== 0 ? -y | 0 : y; + }), + (a.prototype.cmp = function (o) { + if (this.negative !== 0 && o.negative === 0) return -1; + if (this.negative === 0 && o.negative !== 0) return 1; + var p = this.ucmp(o); + return this.negative !== 0 ? -p | 0 : p; + }), + (a.prototype.ucmp = function (o) { + if (this.length > o.length) return 1; + if (this.length < o.length) return -1; + for (var p = 0, y = this.length - 1; y >= 0; y--) { + var h = this.words[y] | 0, + b = o.words[y] | 0; + if (h !== b) { + h < b ? (p = -1) : h > b && (p = 1); + break; + } + } + return p; + }), + (a.prototype.gtn = function (o) { + return this.cmpn(o) === 1; + }), + (a.prototype.gt = function (o) { + return this.cmp(o) === 1; + }), + (a.prototype.gten = function (o) { + return this.cmpn(o) >= 0; + }), + (a.prototype.gte = function (o) { + return this.cmp(o) >= 0; + }), + (a.prototype.ltn = function (o) { + return this.cmpn(o) === -1; + }), + (a.prototype.lt = function (o) { + return this.cmp(o) === -1; + }), + (a.prototype.lten = function (o) { + return this.cmpn(o) <= 0; + }), + (a.prototype.lte = function (o) { + return this.cmp(o) <= 0; + }), + (a.prototype.eqn = function (o) { + return this.cmpn(o) === 0; + }), + (a.prototype.eq = function (o) { + return this.cmp(o) === 0; + }), + (a.red = function (o) { + return new Y(o); + }), + (a.prototype.toRed = function (o) { + return ( + t(!this.red, "Already a number in reduction context"), + t(this.negative === 0, "red works only with positives"), + o.convertTo(this)._forceRed(o) + ); + }), + (a.prototype.fromRed = function () { + return ( + t(this.red, "fromRed works only with numbers in reduction context"), + this.red.convertFrom(this) + ); + }), + (a.prototype._forceRed = function (o) { + return (this.red = o), this; + }), + (a.prototype.forceRed = function (o) { + return ( + t(!this.red, "Already a number in reduction context"), + this._forceRed(o) + ); + }), + (a.prototype.redAdd = function (o) { + return ( + t(this.red, "redAdd works only with red numbers"), + this.red.add(this, o) + ); + }), + (a.prototype.redIAdd = function (o) { + return ( + t(this.red, "redIAdd works only with red numbers"), + this.red.iadd(this, o) + ); + }), + (a.prototype.redSub = function (o) { + return ( + t(this.red, "redSub works only with red numbers"), + this.red.sub(this, o) + ); + }), + (a.prototype.redISub = function (o) { + return ( + t(this.red, "redISub works only with red numbers"), + this.red.isub(this, o) + ); + }), + (a.prototype.redShl = function (o) { + return ( + t(this.red, "redShl works only with red numbers"), + this.red.shl(this, o) + ); + }), + (a.prototype.redMul = function (o) { + return ( + t(this.red, "redMul works only with red numbers"), + this.red._verify2(this, o), + this.red.mul(this, o) + ); + }), + (a.prototype.redIMul = function (o) { + return ( + t(this.red, "redMul works only with red numbers"), + this.red._verify2(this, o), + this.red.imul(this, o) + ); + }), + (a.prototype.redSqr = function () { + return ( + t(this.red, "redSqr works only with red numbers"), + this.red._verify1(this), + this.red.sqr(this) + ); + }), + (a.prototype.redISqr = function () { + return ( + t(this.red, "redISqr works only with red numbers"), + this.red._verify1(this), + this.red.isqr(this) + ); + }), + (a.prototype.redSqrt = function () { + return ( + t(this.red, "redSqrt works only with red numbers"), + this.red._verify1(this), + this.red.sqrt(this) + ); + }), + (a.prototype.redInvm = function () { + return ( + t(this.red, "redInvm works only with red numbers"), + this.red._verify1(this), + this.red.invm(this) + ); + }), + (a.prototype.redNeg = function () { + return ( + t(this.red, "redNeg works only with red numbers"), + this.red._verify1(this), + this.red.neg(this) + ); + }), + (a.prototype.redPow = function (o) { + return ( + t(this.red && !o.red, "redPow(normalNum)"), + this.red._verify1(this), + this.red.pow(this, o) + ); + }); + var H = { k256: null, p224: null, p192: null, p25519: null }; + function j(g, o) { + (this.name = g), + (this.p = new a(o, 16)), + (this.n = this.p.bitLength()), + (this.k = new a(1).iushln(this.n).isub(this.p)), + (this.tmp = this._tmp()); + } + (j.prototype._tmp = function () { + var o = new a(null); + return (o.words = new Array(Math.ceil(this.n / 13))), o; + }), + (j.prototype.ireduce = function (o) { + var p = o, + y; + do + this.split(p, this.tmp), + (p = this.imulK(p)), + (p = p.iadd(this.tmp)), + (y = p.bitLength()); + while (y > this.n); + var h = y < this.n ? -1 : p.ucmp(this.p); + return ( + h === 0 + ? ((p.words[0] = 0), (p.length = 1)) + : h > 0 + ? p.isub(this.p) + : p.strip !== void 0 + ? p.strip() + : p._strip(), + p + ); + }), + (j.prototype.split = function (o, p) { + o.iushrn(this.n, 0, p); + }), + (j.prototype.imulK = function (o) { + return o.imul(this.k); + }); + function V() { + j.call( + this, + "k256", + "ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f" + ); + } + n(V, j), + (V.prototype.split = function (o, p) { + for (var y = 4194303, h = Math.min(o.length, 9), b = 0; b < h; b++) + p.words[b] = o.words[b]; + if (((p.length = h), o.length <= 9)) { + (o.words[0] = 0), (o.length = 1); + return; + } + var T = o.words[9]; + for (p.words[p.length++] = T & y, b = 10; b < o.length; b++) { + var E = o.words[b] | 0; + (o.words[b - 10] = ((E & y) << 4) | (T >>> 22)), (T = E); + } + (T >>>= 22), + (o.words[b - 10] = T), + T === 0 && o.length > 10 ? (o.length -= 10) : (o.length -= 9); + }), + (V.prototype.imulK = function (o) { + (o.words[o.length] = 0), (o.words[o.length + 1] = 0), (o.length += 2); + for (var p = 0, y = 0; y < o.length; y++) { + var h = o.words[y] | 0; + (p += h * 977), + (o.words[y] = p & 67108863), + (p = h * 64 + ((p / 67108864) | 0)); + } + return ( + o.words[o.length - 1] === 0 && + (o.length--, o.words[o.length - 1] === 0 && o.length--), + o + ); + }); + function te() { + j.call( + this, + "p224", + "ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001" + ); + } + n(te, j); + function $() { + j.call( + this, + "p192", + "ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff" + ); + } + n($, j); + function ae() { + j.call( + this, + "25519", + "7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed" + ); + } + n(ae, j), + (ae.prototype.imulK = function (o) { + for (var p = 0, y = 0; y < o.length; y++) { + var h = (o.words[y] | 0) * 19 + p, + b = h & 67108863; + (h >>>= 26), (o.words[y] = b), (p = h); + } + return p !== 0 && (o.words[o.length++] = p), o; + }), + (a._prime = function (o) { + if (H[o]) return H[o]; + var p; + if (o === "k256") p = new V(); + else if (o === "p224") p = new te(); + else if (o === "p192") p = new $(); + else if (o === "p25519") p = new ae(); + else throw new Error("Unknown prime " + o); + return (H[o] = p), p; + }); + function Y(g) { + if (typeof g == "string") { + var o = a._prime(g); + (this.m = o.p), (this.prime = o); + } else + t(g.gtn(1), "modulus must be greater than 1"), + (this.m = g), + (this.prime = null); + } + (Y.prototype._verify1 = function (o) { + t(o.negative === 0, "red works only with positives"), + t(o.red, "red works only with red numbers"); + }), + (Y.prototype._verify2 = function (o, p) { + t((o.negative | p.negative) === 0, "red works only with positives"), + t(o.red && o.red === p.red, "red works only with red numbers"); + }), + (Y.prototype.imod = function (o) { + return this.prime + ? this.prime.ireduce(o)._forceRed(this) + : o.umod(this.m)._forceRed(this); + }), + (Y.prototype.neg = function (o) { + return o.isZero() ? o.clone() : this.m.sub(o)._forceRed(this); + }), + (Y.prototype.add = function (o, p) { + this._verify2(o, p); + var y = o.add(p); + return y.cmp(this.m) >= 0 && y.isub(this.m), y._forceRed(this); + }), + (Y.prototype.iadd = function (o, p) { + this._verify2(o, p); + var y = o.iadd(p); + return y.cmp(this.m) >= 0 && y.isub(this.m), y; + }), + (Y.prototype.sub = function (o, p) { + this._verify2(o, p); + var y = o.sub(p); + return y.cmpn(0) < 0 && y.iadd(this.m), y._forceRed(this); + }), + (Y.prototype.isub = function (o, p) { + this._verify2(o, p); + var y = o.isub(p); + return y.cmpn(0) < 0 && y.iadd(this.m), y; + }), + (Y.prototype.shl = function (o, p) { + return this._verify1(o), this.imod(o.ushln(p)); + }), + (Y.prototype.imul = function (o, p) { + return this._verify2(o, p), this.imod(o.imul(p)); + }), + (Y.prototype.mul = function (o, p) { + return this._verify2(o, p), this.imod(o.mul(p)); + }), + (Y.prototype.isqr = function (o) { + return this.imul(o, o.clone()); + }), + (Y.prototype.sqr = function (o) { + return this.mul(o, o); + }), + (Y.prototype.sqrt = function (o) { + if (o.isZero()) return o.clone(); + var p = this.m.andln(3); + if ((t(p % 2 === 1), p === 3)) { + var y = this.m.add(new a(1)).iushrn(2); + return this.pow(o, y); + } + for (var h = this.m.subn(1), b = 0; !h.isZero() && h.andln(1) === 0; ) + b++, h.iushrn(1); + t(!h.isZero()); + var T = new a(1).toRed(this), + E = T.redNeg(), + f = this.m.subn(1).iushrn(1), + u = this.m.bitLength(); + for (u = new a(2 * u * u).toRed(this); this.pow(u, f).cmp(E) !== 0; ) + u.redIAdd(E); + for ( + var v = this.pow(u, h), + R = this.pow(o, h.addn(1).iushrn(1)), + A = this.pow(o, h), + L = b; + A.cmp(T) !== 0; + + ) { + for (var G = A, U = 0; G.cmp(T) !== 0; U++) G = G.redSqr(); + t(U < L); + var Z = this.pow(v, new a(1).iushln(L - U - 1)); + (R = R.redMul(Z)), (v = Z.redSqr()), (A = A.redMul(v)), (L = U); + } + return R; + }), + (Y.prototype.invm = function (o) { + var p = o._invmp(this.m); + return p.negative !== 0 + ? ((p.negative = 0), this.imod(p).redNeg()) + : this.imod(p); + }), + (Y.prototype.pow = function (o, p) { + if (p.isZero()) return new a(1).toRed(this); + if (p.cmpn(1) === 0) return o.clone(); + var y = 4, + h = new Array(1 << y); + (h[0] = new a(1).toRed(this)), (h[1] = o); + for (var b = 2; b < h.length; b++) h[b] = this.mul(h[b - 1], o); + var T = h[0], + E = 0, + f = 0, + u = p.bitLength() % 26; + for (u === 0 && (u = 26), b = p.length - 1; b >= 0; b--) { + for (var v = p.words[b], R = u - 1; R >= 0; R--) { + var A = (v >> R) & 1; + if ((T !== h[0] && (T = this.sqr(T)), A === 0 && E === 0)) { + f = 0; + continue; + } + (E <<= 1), + (E |= A), + f++, + !(f !== y && (b !== 0 || R !== 0)) && + ((T = this.mul(T, h[E])), (f = 0), (E = 0)); + } + u = 26; + } + return T; + }), + (Y.prototype.convertTo = function (o) { + var p = o.umod(this.m); + return p === o ? p.clone() : p; + }), + (Y.prototype.convertFrom = function (o) { + var p = o.clone(); + return (p.red = null), p; + }), + (a.mont = function (o) { + return new K(o); + }); + function K(g) { + Y.call(this, g), + (this.shift = this.m.bitLength()), + this.shift % 26 !== 0 && (this.shift += 26 - (this.shift % 26)), + (this.r = new a(1).iushln(this.shift)), + (this.r2 = this.imod(this.r.sqr())), + (this.rinv = this.r._invmp(this.m)), + (this.minv = this.rinv.mul(this.r).isubn(1).div(this.m)), + (this.minv = this.minv.umod(this.r)), + (this.minv = this.r.sub(this.minv)); + } + n(K, Y), + (K.prototype.convertTo = function (o) { + return this.imod(o.ushln(this.shift)); + }), + (K.prototype.convertFrom = function (o) { + var p = this.imod(o.mul(this.rinv)); + return (p.red = null), p; + }), + (K.prototype.imul = function (o, p) { + if (o.isZero() || p.isZero()) + return (o.words[0] = 0), (o.length = 1), o; + var y = o.imul(p), + h = y + .maskn(this.shift) + .mul(this.minv) + .imaskn(this.shift) + .mul(this.m), + b = y.isub(h).iushrn(this.shift), + T = b; + return ( + b.cmp(this.m) >= 0 + ? (T = b.isub(this.m)) + : b.cmpn(0) < 0 && (T = b.iadd(this.m)), + T._forceRed(this) + ); + }), + (K.prototype.mul = function (o, p) { + if (o.isZero() || p.isZero()) return new a(0)._forceRed(this); + var y = o.mul(p), + h = y + .maskn(this.shift) + .mul(this.minv) + .imaskn(this.shift) + .mul(this.m), + b = y.isub(h).iushrn(this.shift), + T = b; + return ( + b.cmp(this.m) >= 0 + ? (T = b.isub(this.m)) + : b.cmpn(0) < 0 && (T = b.iadd(this.m)), + T._forceRed(this) + ); + }), + (K.prototype.invm = function (o) { + var p = this.imod(o._invmp(this.m).mul(this.r2)); + return p._forceRed(this); + }); + })(typeof bD > "u" || bD, rse); + }); + var Ou = N((WWr, ase) => { + _(); + x(); + ase.exports = nse; + function nse(r, e) { + if (!r) throw new Error(e || "Assertion failed"); + } + nse.equal = function (e, t, n) { + if (e != t) throw new Error(n || "Assertion failed: " + e + " != " + t); + }; + }); + var vD = N((ose) => { + "use strict"; + _(); + x(); + var _4 = ose; + function Xmt(r, e) { + if (Array.isArray(r)) return r.slice(); + if (!r) return []; + var t = []; + if (typeof r != "string") { + for (var n = 0; n < r.length; n++) t[n] = r[n] | 0; + return t; + } + if (e === "hex") { + (r = r.replace(/[^a-z0-9]+/gi, "")), + r.length % 2 !== 0 && (r = "0" + r); + for (var n = 0; n < r.length; n += 2) + t.push(parseInt(r[n] + r[n + 1], 16)); + } else + for (var n = 0; n < r.length; n++) { + var a = r.charCodeAt(n), + i = a >> 8, + s = a & 255; + i ? t.push(i, s) : t.push(s); + } + return t; + } + _4.toArray = Xmt; + function ise(r) { + return r.length === 1 ? "0" + r : r; + } + _4.zero2 = ise; + function sse(r) { + for (var e = "", t = 0; t < r.length; t++) e += ise(r[t].toString(16)); + return e; + } + _4.toHex = sse; + _4.encode = function (e, t) { + return t === "hex" ? sse(e) : e; + }; + }); + var Lu = N((cse) => { + "use strict"; + _(); + x(); + var xd = cse, + e0t = Mp(), + t0t = Ou(), + x4 = vD(); + xd.assert = t0t; + xd.toArray = x4.toArray; + xd.zero2 = x4.zero2; + xd.toHex = x4.toHex; + xd.encode = x4.encode; + function r0t(r, e, t) { + var n = new Array(Math.max(r.bitLength(), t) + 1); + n.fill(0); + for (var a = 1 << (e + 1), i = r.clone(), s = 0; s < n.length; s++) { + var c, + l = i.andln(a - 1); + i.isOdd() + ? (l > (a >> 1) - 1 ? (c = (a >> 1) - l) : (c = l), i.isubn(c)) + : (c = 0), + (n[s] = c), + i.iushrn(1); + } + return n; + } + xd.getNAF = r0t; + function n0t(r, e) { + var t = [[], []]; + (r = r.clone()), (e = e.clone()); + for (var n = 0, a = 0, i; r.cmpn(-n) > 0 || e.cmpn(-a) > 0; ) { + var s = (r.andln(3) + n) & 3, + c = (e.andln(3) + a) & 3; + s === 3 && (s = -1), c === 3 && (c = -1); + var l; + (s & 1) === 0 + ? (l = 0) + : ((i = (r.andln(7) + n) & 7), + (i === 3 || i === 5) && c === 2 ? (l = -s) : (l = s)), + t[0].push(l); + var d; + (c & 1) === 0 + ? (d = 0) + : ((i = (e.andln(7) + a) & 7), + (i === 3 || i === 5) && s === 2 ? (d = -c) : (d = c)), + t[1].push(d), + 2 * n === l + 1 && (n = 1 - n), + 2 * a === d + 1 && (a = 1 - a), + r.iushrn(1), + e.iushrn(1); + } + return t; + } + xd.getJSF = n0t; + function a0t(r, e, t) { + var n = "_" + e; + r.prototype[e] = function () { + return this[n] !== void 0 ? this[n] : (this[n] = t.call(this)); + }; + } + xd.cachedProperty = a0t; + function i0t(r) { + return typeof r == "string" ? xd.toArray(r, "hex") : r; + } + xd.parseBytes = i0t; + function s0t(r) { + return new e0t(r, "hex", "le"); + } + xd.intFromLE = s0t; + }); + var zr = N((wD, lse) => { + _(); + x(); + var T4 = Hi(), + Pp = T4.Buffer; + function use(r, e) { + for (var t in r) e[t] = r[t]; + } + Pp.from && Pp.alloc && Pp.allocUnsafe && Pp.allocUnsafeSlow + ? (lse.exports = T4) + : (use(T4, wD), (wD.Buffer = Iy)); + function Iy(r, e, t) { + return Pp(r, e, t); + } + Iy.prototype = Object.create(Pp.prototype); + use(Pp, Iy); + Iy.from = function (r, e, t) { + if (typeof r == "number") + throw new TypeError("Argument must not be a number"); + return Pp(r, e, t); + }; + Iy.alloc = function (r, e, t) { + if (typeof r != "number") + throw new TypeError("Argument must be a number"); + var n = Pp(r); + return ( + e !== void 0 + ? typeof t == "string" + ? n.fill(e, t) + : n.fill(e) + : n.fill(0), + n + ); + }; + Iy.allocUnsafe = function (r) { + if (typeof r != "number") + throw new TypeError("Argument must be a number"); + return Pp(r); + }; + Iy.allocUnsafeSlow = function (r) { + if (typeof r != "number") + throw new TypeError("Argument must be a number"); + return T4.SlowBuffer(r); + }; + }); + var Ay = N((ZWr, xD) => { + "use strict"; + _(); + x(); + var _D = 65536, + o0t = 4294967295; + function c0t() { + throw new Error(`Secure random number generation is not supported by this browser. +Use Chrome, Firefox or Internet Explorer 11`); + } + var u0t = zr().Buffer, + E4 = M.crypto || M.msCrypto; + E4 && E4.getRandomValues ? (xD.exports = l0t) : (xD.exports = c0t); + function l0t(r, e) { + if (r > o0t) throw new RangeError("requested too many random bytes"); + var t = u0t.allocUnsafe(r); + if (r > 0) + if (r > _D) + for (var n = 0; n < r; n += _D) + E4.getRandomValues(t.slice(n, n + _D)); + else E4.getRandomValues(t); + return typeof e == "function" + ? S.nextTick(function () { + e(null, t); + }) + : t; + } + }); + var qr = N((eUr, TD) => { + _(); + x(); + typeof Object.create == "function" + ? (TD.exports = function (e, t) { + t && + ((e.super_ = t), + (e.prototype = Object.create(t.prototype, { + constructor: { + value: e, + enumerable: !1, + writable: !0, + configurable: !0, + }, + }))); + }) + : (TD.exports = function (e, t) { + if (t) { + e.super_ = t; + var n = function () {}; + (n.prototype = t.prototype), + (e.prototype = new n()), + (e.prototype.constructor = e); + } + }); + }); + var gm = N((nUr, ED) => { + "use strict"; + _(); + x(); + var A1 = typeof Reflect == "object" ? Reflect : null, + dse = + A1 && typeof A1.apply == "function" + ? A1.apply + : function (e, t, n) { + return Function.prototype.apply.call(e, t, n); + }, + C4; + A1 && typeof A1.ownKeys == "function" + ? (C4 = A1.ownKeys) + : Object.getOwnPropertySymbols + ? (C4 = function (e) { + return Object.getOwnPropertyNames(e).concat( + Object.getOwnPropertySymbols(e) + ); + }) + : (C4 = function (e) { + return Object.getOwnPropertyNames(e); + }); + function d0t(r) { + console && console.warn && console.warn(r); + } + var hse = + Number.isNaN || + function (e) { + return e !== e; + }; + function Qa() { + Qa.init.call(this); + } + ED.exports = Qa; + ED.exports.once = m0t; + Qa.EventEmitter = Qa; + Qa.prototype._events = void 0; + Qa.prototype._eventsCount = 0; + Qa.prototype._maxListeners = void 0; + var pse = 10; + function I4(r) { + if (typeof r != "function") + throw new TypeError( + 'The "listener" argument must be of type Function. Received type ' + + typeof r + ); + } + Object.defineProperty(Qa, "defaultMaxListeners", { + enumerable: !0, + get: function () { + return pse; + }, + set: function (r) { + if (typeof r != "number" || r < 0 || hse(r)) + throw new RangeError( + 'The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received ' + + r + + "." + ); + pse = r; + }, + }); + Qa.init = function () { + (this._events === void 0 || + this._events === Object.getPrototypeOf(this)._events) && + ((this._events = Object.create(null)), (this._eventsCount = 0)), + (this._maxListeners = this._maxListeners || void 0); + }; + Qa.prototype.setMaxListeners = function (e) { + if (typeof e != "number" || e < 0 || hse(e)) + throw new RangeError( + 'The value of "n" is out of range. It must be a non-negative number. Received ' + + e + + "." + ); + return (this._maxListeners = e), this; + }; + function fse(r) { + return r._maxListeners === void 0 + ? Qa.defaultMaxListeners + : r._maxListeners; + } + Qa.prototype.getMaxListeners = function () { + return fse(this); + }; + Qa.prototype.emit = function (e) { + for (var t = [], n = 1; n < arguments.length; n++) t.push(arguments[n]); + var a = e === "error", + i = this._events; + if (i !== void 0) a = a && i.error === void 0; + else if (!a) return !1; + if (a) { + var s; + if ((t.length > 0 && (s = t[0]), s instanceof Error)) throw s; + var c = new Error( + "Unhandled error." + (s ? " (" + s.message + ")" : "") + ); + throw ((c.context = s), c); + } + var l = i[e]; + if (l === void 0) return !1; + if (typeof l == "function") dse(l, this, t); + else + for (var d = l.length, m = vse(l, d), n = 0; n < d; ++n) + dse(m[n], this, t); + return !0; + }; + function mse(r, e, t, n) { + var a, i, s; + if ( + (I4(t), + (i = r._events), + i === void 0 + ? ((i = r._events = Object.create(null)), (r._eventsCount = 0)) + : (i.newListener !== void 0 && + (r.emit("newListener", e, t.listener ? t.listener : t), + (i = r._events)), + (s = i[e])), + s === void 0) + ) + (s = i[e] = t), ++r._eventsCount; + else if ( + (typeof s == "function" + ? (s = i[e] = n ? [t, s] : [s, t]) + : n + ? s.unshift(t) + : s.push(t), + (a = fse(r)), + a > 0 && s.length > a && !s.warned) + ) { + s.warned = !0; + var c = new Error( + "Possible EventEmitter memory leak detected. " + + s.length + + " " + + String(e) + + " listeners added. Use emitter.setMaxListeners() to increase limit" + ); + (c.name = "MaxListenersExceededWarning"), + (c.emitter = r), + (c.type = e), + (c.count = s.length), + d0t(c); + } + return r; + } + Qa.prototype.addListener = function (e, t) { + return mse(this, e, t, !1); + }; + Qa.prototype.on = Qa.prototype.addListener; + Qa.prototype.prependListener = function (e, t) { + return mse(this, e, t, !0); + }; + function p0t() { + if (!this.fired) + return ( + this.target.removeListener(this.type, this.wrapFn), + (this.fired = !0), + arguments.length === 0 + ? this.listener.call(this.target) + : this.listener.apply(this.target, arguments) + ); + } + function yse(r, e, t) { + var n = { fired: !1, wrapFn: void 0, target: r, type: e, listener: t }, + a = p0t.bind(n); + return (a.listener = t), (n.wrapFn = a), a; + } + Qa.prototype.once = function (e, t) { + return I4(t), this.on(e, yse(this, e, t)), this; + }; + Qa.prototype.prependOnceListener = function (e, t) { + return I4(t), this.prependListener(e, yse(this, e, t)), this; + }; + Qa.prototype.removeListener = function (e, t) { + var n, a, i, s, c; + if ((I4(t), (a = this._events), a === void 0)) return this; + if (((n = a[e]), n === void 0)) return this; + if (n === t || n.listener === t) + --this._eventsCount === 0 + ? (this._events = Object.create(null)) + : (delete a[e], + a.removeListener && + this.emit("removeListener", e, n.listener || t)); + else if (typeof n != "function") { + for (i = -1, s = n.length - 1; s >= 0; s--) + if (n[s] === t || n[s].listener === t) { + (c = n[s].listener), (i = s); + break; + } + if (i < 0) return this; + i === 0 ? n.shift() : h0t(n, i), + n.length === 1 && (a[e] = n[0]), + a.removeListener !== void 0 && this.emit("removeListener", e, c || t); + } + return this; + }; + Qa.prototype.off = Qa.prototype.removeListener; + Qa.prototype.removeAllListeners = function (e) { + var t, n, a; + if (((n = this._events), n === void 0)) return this; + if (n.removeListener === void 0) + return ( + arguments.length === 0 + ? ((this._events = Object.create(null)), (this._eventsCount = 0)) + : n[e] !== void 0 && + (--this._eventsCount === 0 + ? (this._events = Object.create(null)) + : delete n[e]), + this + ); + if (arguments.length === 0) { + var i = Object.keys(n), + s; + for (a = 0; a < i.length; ++a) + (s = i[a]), s !== "removeListener" && this.removeAllListeners(s); + return ( + this.removeAllListeners("removeListener"), + (this._events = Object.create(null)), + (this._eventsCount = 0), + this + ); + } + if (((t = n[e]), typeof t == "function")) this.removeListener(e, t); + else if (t !== void 0) + for (a = t.length - 1; a >= 0; a--) this.removeListener(e, t[a]); + return this; + }; + function gse(r, e, t) { + var n = r._events; + if (n === void 0) return []; + var a = n[e]; + return a === void 0 + ? [] + : typeof a == "function" + ? t + ? [a.listener || a] + : [a] + : t + ? f0t(a) + : vse(a, a.length); + } + Qa.prototype.listeners = function (e) { + return gse(this, e, !0); + }; + Qa.prototype.rawListeners = function (e) { + return gse(this, e, !1); + }; + Qa.listenerCount = function (r, e) { + return typeof r.listenerCount == "function" + ? r.listenerCount(e) + : bse.call(r, e); + }; + Qa.prototype.listenerCount = bse; + function bse(r) { + var e = this._events; + if (e !== void 0) { + var t = e[r]; + if (typeof t == "function") return 1; + if (t !== void 0) return t.length; + } + return 0; + } + Qa.prototype.eventNames = function () { + return this._eventsCount > 0 ? C4(this._events) : []; + }; + function vse(r, e) { + for (var t = new Array(e), n = 0; n < e; ++n) t[n] = r[n]; + return t; + } + function h0t(r, e) { + for (; e + 1 < r.length; e++) r[e] = r[e + 1]; + r.pop(); + } + function f0t(r) { + for (var e = new Array(r.length), t = 0; t < e.length; ++t) + e[t] = r[t].listener || r[t]; + return e; + } + function m0t(r, e) { + return new Promise(function (t, n) { + function a(s) { + r.removeListener(e, i), n(s); + } + function i() { + typeof r.removeListener == "function" && r.removeListener("error", a), + t([].slice.call(arguments)); + } + wse(r, e, i, { once: !0 }), e !== "error" && y0t(r, a, { once: !0 }); + }); + } + function y0t(r, e, t) { + typeof r.on == "function" && wse(r, "error", e, t); + } + function wse(r, e, t, n) { + if (typeof r.on == "function") n.once ? r.once(e, t) : r.on(e, t); + else if (typeof r.addEventListener == "function") + r.addEventListener(e, function a(i) { + n.once && r.removeEventListener(e, a), t(i); + }); + else + throw new TypeError( + 'The "emitter" argument must be of type EventEmitter. Received type ' + + typeof r + ); + } + }); + var CD = N((sUr, _se) => { + _(); + x(); + _se.exports = gm().EventEmitter; + }); + var ID = N((uUr, xse) => { + "use strict"; + _(); + x(); + xse.exports = function () { + if ( + typeof Symbol != "function" || + typeof Object.getOwnPropertySymbols != "function" + ) + return !1; + if (typeof Symbol.iterator == "symbol") return !0; + var e = {}, + t = Symbol("test"), + n = Object(t); + if ( + typeof t == "string" || + Object.prototype.toString.call(t) !== "[object Symbol]" || + Object.prototype.toString.call(n) !== "[object Symbol]" + ) + return !1; + var a = 42; + e[t] = a; + for (t in e) return !1; + if ( + (typeof Object.keys == "function" && Object.keys(e).length !== 0) || + (typeof Object.getOwnPropertyNames == "function" && + Object.getOwnPropertyNames(e).length !== 0) + ) + return !1; + var i = Object.getOwnPropertySymbols(e); + if ( + i.length !== 1 || + i[0] !== t || + !Object.prototype.propertyIsEnumerable.call(e, t) + ) + return !1; + if (typeof Object.getOwnPropertyDescriptor == "function") { + var s = Object.getOwnPropertyDescriptor(e, t); + if (s.value !== a || s.enumerable !== !0) return !1; + } + return !0; + }; + }); + var Hx = N((pUr, Tse) => { + "use strict"; + _(); + x(); + var g0t = ID(); + Tse.exports = function () { + return g0t() && !!Symbol.toStringTag; + }; + }); + var Ise = N((mUr, Cse) => { + "use strict"; + _(); + x(); + var Ese = typeof Symbol < "u" && Symbol, + b0t = ID(); + Cse.exports = function () { + return typeof Ese != "function" || + typeof Symbol != "function" || + typeof Ese("foo") != "symbol" || + typeof Symbol("bar") != "symbol" + ? !1 + : b0t(); + }; + }); + var kse = N((bUr, Ase) => { + "use strict"; + _(); + x(); + var v0t = "Function.prototype.bind called on incompatible ", + AD = Array.prototype.slice, + w0t = Object.prototype.toString, + _0t = "[object Function]"; + Ase.exports = function (e) { + var t = this; + if (typeof t != "function" || w0t.call(t) !== _0t) + throw new TypeError(v0t + t); + for ( + var n = AD.call(arguments, 1), + a, + i = function () { + if (this instanceof a) { + var m = t.apply(this, n.concat(AD.call(arguments))); + return Object(m) === m ? m : this; + } else return t.apply(e, n.concat(AD.call(arguments))); + }, + s = Math.max(0, t.length - n.length), + c = [], + l = 0; + l < s; + l++ + ) + c.push("$" + l); + if ( + ((a = Function( + "binder", + "return function (" + + c.join(",") + + "){ return binder.apply(this,arguments); }" + )(i)), + t.prototype) + ) { + var d = function () {}; + (d.prototype = t.prototype), + (a.prototype = new d()), + (d.prototype = null); + } + return a; + }; + }); + var A4 = N((_Ur, Sse) => { + "use strict"; + _(); + x(); + var x0t = kse(); + Sse.exports = Function.prototype.bind || x0t; + }); + var Pse = N((EUr, Mse) => { + "use strict"; + _(); + x(); + var T0t = A4(); + Mse.exports = T0t.call(Function.call, Object.prototype.hasOwnProperty); + }); + var jx = N((AUr, Lse) => { + "use strict"; + _(); + x(); + var un, + P1 = SyntaxError, + Ose = Function, + M1 = TypeError, + kD = function (r) { + try { + return Ose('"use strict"; return (' + r + ").constructor;")(); + } catch {} + }, + ky = Object.getOwnPropertyDescriptor; + if (ky) + try { + ky({}, ""); + } catch { + ky = null; + } + var SD = function () { + throw new M1(); + }, + E0t = ky + ? (function () { + try { + return arguments.callee, SD; + } catch { + try { + return ky(arguments, "callee").get; + } catch { + return SD; + } + } + })() + : SD, + k1 = Ise()(), + Rp = + Object.getPrototypeOf || + function (r) { + return r.__proto__; + }, + S1 = {}, + C0t = typeof Uint8Array > "u" ? un : Rp(Uint8Array), + Sy = { + "%AggregateError%": typeof AggregateError > "u" ? un : AggregateError, + "%Array%": Array, + "%ArrayBuffer%": typeof ArrayBuffer > "u" ? un : ArrayBuffer, + "%ArrayIteratorPrototype%": k1 ? Rp([][Symbol.iterator]()) : un, + "%AsyncFromSyncIteratorPrototype%": un, + "%AsyncFunction%": S1, + "%AsyncGenerator%": S1, + "%AsyncGeneratorFunction%": S1, + "%AsyncIteratorPrototype%": S1, + "%Atomics%": typeof Atomics > "u" ? un : Atomics, + "%BigInt%": typeof BigInt > "u" ? un : BigInt, + "%BigInt64Array%": typeof BigInt64Array > "u" ? un : BigInt64Array, + "%BigUint64Array%": typeof BigUint64Array > "u" ? un : BigUint64Array, + "%Boolean%": Boolean, + "%DataView%": typeof DataView > "u" ? un : DataView, + "%Date%": Date, + "%decodeURI%": decodeURI, + "%decodeURIComponent%": decodeURIComponent, + "%encodeURI%": encodeURI, + "%encodeURIComponent%": encodeURIComponent, + "%Error%": Error, + "%eval%": eval, + "%EvalError%": EvalError, + "%Float32Array%": typeof Float32Array > "u" ? un : Float32Array, + "%Float64Array%": typeof Float64Array > "u" ? un : Float64Array, + "%FinalizationRegistry%": + typeof FinalizationRegistry > "u" ? un : FinalizationRegistry, + "%Function%": Ose, + "%GeneratorFunction%": S1, + "%Int8Array%": typeof Int8Array > "u" ? un : Int8Array, + "%Int16Array%": typeof Int16Array > "u" ? un : Int16Array, + "%Int32Array%": typeof Int32Array > "u" ? un : Int32Array, + "%isFinite%": isFinite, + "%isNaN%": isNaN, + "%IteratorPrototype%": k1 ? Rp(Rp([][Symbol.iterator]())) : un, + "%JSON%": typeof JSON == "object" ? JSON : un, + "%Map%": typeof Map > "u" ? un : Map, + "%MapIteratorPrototype%": + typeof Map > "u" || !k1 ? un : Rp(new Map()[Symbol.iterator]()), + "%Math%": Math, + "%Number%": Number, + "%Object%": Object, + "%parseFloat%": parseFloat, + "%parseInt%": parseInt, + "%Promise%": typeof Promise > "u" ? un : Promise, + "%Proxy%": typeof Proxy > "u" ? un : Proxy, + "%RangeError%": RangeError, + "%ReferenceError%": ReferenceError, + "%Reflect%": typeof Reflect > "u" ? un : Reflect, + "%RegExp%": RegExp, + "%Set%": typeof Set > "u" ? un : Set, + "%SetIteratorPrototype%": + typeof Set > "u" || !k1 ? un : Rp(new Set()[Symbol.iterator]()), + "%SharedArrayBuffer%": + typeof SharedArrayBuffer > "u" ? un : SharedArrayBuffer, + "%String%": String, + "%StringIteratorPrototype%": k1 ? Rp(""[Symbol.iterator]()) : un, + "%Symbol%": k1 ? Symbol : un, + "%SyntaxError%": P1, + "%ThrowTypeError%": E0t, + "%TypedArray%": C0t, + "%TypeError%": M1, + "%Uint8Array%": typeof Uint8Array > "u" ? un : Uint8Array, + "%Uint8ClampedArray%": + typeof Uint8ClampedArray > "u" ? un : Uint8ClampedArray, + "%Uint16Array%": typeof Uint16Array > "u" ? un : Uint16Array, + "%Uint32Array%": typeof Uint32Array > "u" ? un : Uint32Array, + "%URIError%": URIError, + "%WeakMap%": typeof WeakMap > "u" ? un : WeakMap, + "%WeakRef%": typeof WeakRef > "u" ? un : WeakRef, + "%WeakSet%": typeof WeakSet > "u" ? un : WeakSet, + }; + try { + null.error; + } catch (r) { + (Rse = Rp(Rp(r))), (Sy["%Error.prototype%"] = Rse); + } + var Rse, + I0t = function r(e) { + var t; + if (e === "%AsyncFunction%") t = kD("async function () {}"); + else if (e === "%GeneratorFunction%") t = kD("function* () {}"); + else if (e === "%AsyncGeneratorFunction%") + t = kD("async function* () {}"); + else if (e === "%AsyncGenerator%") { + var n = r("%AsyncGeneratorFunction%"); + n && (t = n.prototype); + } else if (e === "%AsyncIteratorPrototype%") { + var a = r("%AsyncGenerator%"); + a && (t = Rp(a.prototype)); + } + return (Sy[e] = t), t; + }, + Bse = { + "%ArrayBufferPrototype%": ["ArrayBuffer", "prototype"], + "%ArrayPrototype%": ["Array", "prototype"], + "%ArrayProto_entries%": ["Array", "prototype", "entries"], + "%ArrayProto_forEach%": ["Array", "prototype", "forEach"], + "%ArrayProto_keys%": ["Array", "prototype", "keys"], + "%ArrayProto_values%": ["Array", "prototype", "values"], + "%AsyncFunctionPrototype%": ["AsyncFunction", "prototype"], + "%AsyncGenerator%": ["AsyncGeneratorFunction", "prototype"], + "%AsyncGeneratorPrototype%": [ + "AsyncGeneratorFunction", + "prototype", + "prototype", + ], + "%BooleanPrototype%": ["Boolean", "prototype"], + "%DataViewPrototype%": ["DataView", "prototype"], + "%DatePrototype%": ["Date", "prototype"], + "%ErrorPrototype%": ["Error", "prototype"], + "%EvalErrorPrototype%": ["EvalError", "prototype"], + "%Float32ArrayPrototype%": ["Float32Array", "prototype"], + "%Float64ArrayPrototype%": ["Float64Array", "prototype"], + "%FunctionPrototype%": ["Function", "prototype"], + "%Generator%": ["GeneratorFunction", "prototype"], + "%GeneratorPrototype%": ["GeneratorFunction", "prototype", "prototype"], + "%Int8ArrayPrototype%": ["Int8Array", "prototype"], + "%Int16ArrayPrototype%": ["Int16Array", "prototype"], + "%Int32ArrayPrototype%": ["Int32Array", "prototype"], + "%JSONParse%": ["JSON", "parse"], + "%JSONStringify%": ["JSON", "stringify"], + "%MapPrototype%": ["Map", "prototype"], + "%NumberPrototype%": ["Number", "prototype"], + "%ObjectPrototype%": ["Object", "prototype"], + "%ObjProto_toString%": ["Object", "prototype", "toString"], + "%ObjProto_valueOf%": ["Object", "prototype", "valueOf"], + "%PromisePrototype%": ["Promise", "prototype"], + "%PromiseProto_then%": ["Promise", "prototype", "then"], + "%Promise_all%": ["Promise", "all"], + "%Promise_reject%": ["Promise", "reject"], + "%Promise_resolve%": ["Promise", "resolve"], + "%RangeErrorPrototype%": ["RangeError", "prototype"], + "%ReferenceErrorPrototype%": ["ReferenceError", "prototype"], + "%RegExpPrototype%": ["RegExp", "prototype"], + "%SetPrototype%": ["Set", "prototype"], + "%SharedArrayBufferPrototype%": ["SharedArrayBuffer", "prototype"], + "%StringPrototype%": ["String", "prototype"], + "%SymbolPrototype%": ["Symbol", "prototype"], + "%SyntaxErrorPrototype%": ["SyntaxError", "prototype"], + "%TypedArrayPrototype%": ["TypedArray", "prototype"], + "%TypeErrorPrototype%": ["TypeError", "prototype"], + "%Uint8ArrayPrototype%": ["Uint8Array", "prototype"], + "%Uint8ClampedArrayPrototype%": ["Uint8ClampedArray", "prototype"], + "%Uint16ArrayPrototype%": ["Uint16Array", "prototype"], + "%Uint32ArrayPrototype%": ["Uint32Array", "prototype"], + "%URIErrorPrototype%": ["URIError", "prototype"], + "%WeakMapPrototype%": ["WeakMap", "prototype"], + "%WeakSetPrototype%": ["WeakSet", "prototype"], + }, + zx = A4(), + k4 = Pse(), + A0t = zx.call(Function.call, Array.prototype.concat), + k0t = zx.call(Function.apply, Array.prototype.splice), + Nse = zx.call(Function.call, String.prototype.replace), + S4 = zx.call(Function.call, String.prototype.slice), + S0t = zx.call(Function.call, RegExp.prototype.exec), + M0t = + /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, + P0t = /\\(\\)?/g, + R0t = function (e) { + var t = S4(e, 0, 1), + n = S4(e, -1); + if (t === "%" && n !== "%") + throw new P1("invalid intrinsic syntax, expected closing `%`"); + if (n === "%" && t !== "%") + throw new P1("invalid intrinsic syntax, expected opening `%`"); + var a = []; + return ( + Nse(e, M0t, function (i, s, c, l) { + a[a.length] = c ? Nse(l, P0t, "$1") : s || i; + }), + a + ); + }, + B0t = function (e, t) { + var n = e, + a; + if ((k4(Bse, n) && ((a = Bse[n]), (n = "%" + a[0] + "%")), k4(Sy, n))) { + var i = Sy[n]; + if ((i === S1 && (i = I0t(n)), typeof i > "u" && !t)) + throw new M1( + "intrinsic " + + e + + " exists, but is not available. Please file an issue!" + ); + return { alias: a, name: n, value: i }; + } + throw new P1("intrinsic " + e + " does not exist!"); + }; + Lse.exports = function (e, t) { + if (typeof e != "string" || e.length === 0) + throw new M1("intrinsic name must be a non-empty string"); + if (arguments.length > 1 && typeof t != "boolean") + throw new M1('"allowMissing" argument must be a boolean'); + if (S0t(/^%?[^%]*%?$/, e) === null) + throw new P1( + "`%` may not be present anywhere but at the beginning and end of the intrinsic name" + ); + var n = R0t(e), + a = n.length > 0 ? n[0] : "", + i = B0t("%" + a + "%", t), + s = i.name, + c = i.value, + l = !1, + d = i.alias; + d && ((a = d[0]), k0t(n, A0t([0, 1], d))); + for (var m = 1, w = !0; m < n.length; m += 1) { + var C = n[m], + I = S4(C, 0, 1), + k = S4(C, -1); + if ( + (I === '"' || + I === "'" || + I === "`" || + k === '"' || + k === "'" || + k === "`") && + I !== k + ) + throw new P1("property names with quotes must have matching quotes"); + if ( + ((C === "constructor" || !w) && (l = !0), + (a += "." + C), + (s = "%" + a + "%"), + k4(Sy, s)) + ) + c = Sy[s]; + else if (c != null) { + if (!(C in c)) { + if (!t) + throw new M1( + "base intrinsic for " + + e + + " exists, but the property is not available." + ); + return; + } + if (ky && m + 1 >= n.length) { + var O = ky(c, C); + (w = !!O), + w && "get" in O && !("originalValue" in O.get) + ? (c = O.get) + : (c = c[C]); + } else (w = k4(c, C)), (c = c[C]); + w && !l && (Sy[s] = c); + } + } + return c; + }; + }); + var Hse = N((MUr, M4) => { + "use strict"; + _(); + x(); + var MD = A4(), + R1 = jx(), + Fse = R1("%Function.prototype.apply%"), + Wse = R1("%Function.prototype.call%"), + Use = R1("%Reflect.apply%", !0) || MD.call(Wse, Fse), + Dse = R1("%Object.getOwnPropertyDescriptor%", !0), + My = R1("%Object.defineProperty%", !0), + N0t = R1("%Math.max%"); + if (My) + try { + My({}, "a", { value: 1 }); + } catch { + My = null; + } + M4.exports = function (e) { + var t = Use(MD, Wse, arguments); + if (Dse && My) { + var n = Dse(t, "length"); + n.configurable && + My(t, "length", { + value: 1 + N0t(0, e.length - (arguments.length - 1)), + }); + } + return t; + }; + var qse = function () { + return Use(MD, Fse, arguments); + }; + My ? My(M4.exports, "apply", { value: qse }) : (M4.exports.apply = qse); + }); + var Kx = N((BUr, Kse) => { + "use strict"; + _(); + x(); + var zse = jx(), + jse = Hse(), + O0t = jse(zse("String.prototype.indexOf")); + Kse.exports = function (e, t) { + var n = zse(e, !!t); + return typeof n == "function" && O0t(e, ".prototype.") > -1 ? jse(n) : n; + }; + }); + var Yse = N((LUr, Gse) => { + "use strict"; + _(); + x(); + var L0t = Hx()(), + D0t = Kx(), + PD = D0t("Object.prototype.toString"), + P4 = function (e) { + return L0t && e && typeof e == "object" && Symbol.toStringTag in e + ? !1 + : PD(e) === "[object Arguments]"; + }, + Vse = function (e) { + return P4(e) + ? !0 + : e !== null && + typeof e == "object" && + typeof e.length == "number" && + e.length >= 0 && + PD(e) !== "[object Array]" && + PD(e.callee) === "[object Function]"; + }, + q0t = (function () { + return P4(arguments); + })(); + P4.isLegacyArguments = Vse; + Gse.exports = q0t ? P4 : Vse; + }); + var Zse = N((FUr, Jse) => { + "use strict"; + _(); + x(); + var F0t = Object.prototype.toString, + W0t = Function.prototype.toString, + U0t = /^\s*(?:function)?\*/, + $se = Hx()(), + RD = Object.getPrototypeOf, + H0t = function () { + if (!$se) return !1; + try { + return Function("return function*() {}")(); + } catch {} + }, + BD; + Jse.exports = function (e) { + if (typeof e != "function") return !1; + if (U0t.test(W0t.call(e))) return !0; + if (!$se) { + var t = F0t.call(e); + return t === "[object GeneratorFunction]"; + } + if (!RD) return !1; + if (typeof BD > "u") { + var n = H0t(); + BD = n ? RD(n) : !1; + } + return RD(e) === BD; + }; + }); + var toe = N((HUr, eoe) => { + "use strict"; + _(); + x(); + var Xse = Function.prototype.toString, + B1 = typeof Reflect == "object" && Reflect !== null && Reflect.apply, + OD, + R4; + if (typeof B1 == "function" && typeof Object.defineProperty == "function") + try { + (OD = Object.defineProperty({}, "length", { + get: function () { + throw R4; + }, + })), + (R4 = {}), + B1( + function () { + throw 42; + }, + null, + OD + ); + } catch (r) { + r !== R4 && (B1 = null); + } + else B1 = null; + var z0t = /^\s*class\b/, + LD = function (e) { + try { + var t = Xse.call(e); + return z0t.test(t); + } catch { + return !1; + } + }, + ND = function (e) { + try { + return LD(e) ? !1 : (Xse.call(e), !0); + } catch { + return !1; + } + }, + B4 = Object.prototype.toString, + j0t = "[object Object]", + K0t = "[object Function]", + V0t = "[object GeneratorFunction]", + G0t = "[object HTMLAllCollection]", + Y0t = "[object HTML document.all class]", + $0t = "[object HTMLCollection]", + J0t = typeof Symbol == "function" && !!Symbol.toStringTag, + Z0t = !(0 in [,]), + DD = function () { + return !1; + }; + typeof document == "object" && + ((Qse = document.all), + B4.call(Qse) === B4.call(document.all) && + (DD = function (e) { + if ((Z0t || !e) && (typeof e > "u" || typeof e == "object")) + try { + var t = B4.call(e); + return ( + (t === G0t || t === Y0t || t === $0t || t === j0t) && + e("") == null + ); + } catch {} + return !1; + })); + var Qse; + eoe.exports = B1 + ? function (e) { + if (DD(e)) return !0; + if (!e || (typeof e != "function" && typeof e != "object")) return !1; + try { + B1(e, null, OD); + } catch (t) { + if (t !== R4) return !1; + } + return !LD(e) && ND(e); + } + : function (e) { + if (DD(e)) return !0; + if (!e || (typeof e != "function" && typeof e != "object")) return !1; + if (J0t) return ND(e); + if (LD(e)) return !1; + var t = B4.call(e); + return t !== K0t && t !== V0t && !/^\[object HTML/.test(t) + ? !1 + : ND(e); + }; + }); + var qD = N((KUr, noe) => { + "use strict"; + _(); + x(); + var Q0t = toe(), + X0t = Object.prototype.toString, + roe = Object.prototype.hasOwnProperty, + eyt = function (e, t, n) { + for (var a = 0, i = e.length; a < i; a++) + roe.call(e, a) && (n == null ? t(e[a], a, e) : t.call(n, e[a], a, e)); + }, + tyt = function (e, t, n) { + for (var a = 0, i = e.length; a < i; a++) + n == null ? t(e.charAt(a), a, e) : t.call(n, e.charAt(a), a, e); + }, + ryt = function (e, t, n) { + for (var a in e) + roe.call(e, a) && (n == null ? t(e[a], a, e) : t.call(n, e[a], a, e)); + }, + nyt = function (e, t, n) { + if (!Q0t(t)) throw new TypeError("iterator must be a function"); + var a; + arguments.length >= 3 && (a = n), + X0t.call(e) === "[object Array]" + ? eyt(e, t, a) + : typeof e == "string" + ? tyt(e, t, a) + : ryt(e, t, a); + }; + noe.exports = nyt; + }); + var WD = N((YUr, aoe) => { + "use strict"; + _(); + x(); + var FD = [ + "BigInt64Array", + "BigUint64Array", + "Float32Array", + "Float64Array", + "Int16Array", + "Int32Array", + "Int8Array", + "Uint16Array", + "Uint32Array", + "Uint8Array", + "Uint8ClampedArray", + ], + ayt = typeof globalThis > "u" ? M : globalThis; + aoe.exports = function () { + for (var e = [], t = 0; t < FD.length; t++) + typeof ayt[FD[t]] == "function" && (e[e.length] = FD[t]); + return e; + }; + }); + var UD = N((ZUr, ioe) => { + "use strict"; + _(); + x(); + var iyt = jx(), + N4 = iyt("%Object.getOwnPropertyDescriptor%", !0); + if (N4) + try { + N4([], "length"); + } catch { + N4 = null; + } + ioe.exports = N4; + }); + var jD = N((eHr, loe) => { + "use strict"; + _(); + x(); + var soe = qD(), + syt = WD(), + zD = Kx(), + oyt = zD("Object.prototype.toString"), + ooe = Hx()(), + O4 = UD(), + cyt = typeof globalThis > "u" ? M : globalThis, + coe = syt(), + uyt = + zD("Array.prototype.indexOf", !0) || + function (e, t) { + for (var n = 0; n < e.length; n += 1) if (e[n] === t) return n; + return -1; + }, + lyt = zD("String.prototype.slice"), + uoe = {}, + HD = Object.getPrototypeOf; + ooe && + O4 && + HD && + soe(coe, function (r) { + var e = new cyt[r](); + if (Symbol.toStringTag in e) { + var t = HD(e), + n = O4(t, Symbol.toStringTag); + if (!n) { + var a = HD(t); + n = O4(a, Symbol.toStringTag); + } + uoe[r] = n.get; + } + }); + var dyt = function (e) { + var t = !1; + return ( + soe(uoe, function (n, a) { + if (!t) + try { + t = n.call(e) === a; + } catch {} + }), + t + ); + }; + loe.exports = function (e) { + if (!e || typeof e != "object") return !1; + if (!ooe || !(Symbol.toStringTag in e)) { + var t = lyt(oyt(e), 8, -1); + return uyt(coe, t) > -1; + } + return O4 ? dyt(e) : !1; + }; + }); + var goe = N((nHr, yoe) => { + "use strict"; + _(); + x(); + var poe = qD(), + pyt = WD(), + hoe = Kx(), + KD = UD(), + hyt = hoe("Object.prototype.toString"), + foe = Hx()(), + doe = typeof globalThis > "u" ? M : globalThis, + fyt = pyt(), + myt = hoe("String.prototype.slice"), + moe = {}, + VD = Object.getPrototypeOf; + foe && + KD && + VD && + poe(fyt, function (r) { + if (typeof doe[r] == "function") { + var e = new doe[r](); + if (Symbol.toStringTag in e) { + var t = VD(e), + n = KD(t, Symbol.toStringTag); + if (!n) { + var a = VD(t); + n = KD(a, Symbol.toStringTag); + } + moe[r] = n.get; + } + } + }); + var yyt = function (e) { + var t = !1; + return ( + poe(moe, function (n, a) { + if (!t) + try { + var i = n.call(e); + i === a && (t = i); + } catch {} + }), + t + ); + }, + gyt = jD(); + yoe.exports = function (e) { + return gyt(e) + ? !foe || !(Symbol.toStringTag in e) + ? myt(hyt(e), 8, -1) + : yyt(e) + : !1; + }; + }); + var Poe = N((tn) => { + "use strict"; + _(); + x(); + var byt = Yse(), + vyt = Zse(), + Td = goe(), + boe = jD(); + function N1(r) { + return r.call.bind(r); + } + var voe = typeof BigInt < "u", + woe = typeof Symbol < "u", + ml = N1(Object.prototype.toString), + wyt = N1(Number.prototype.valueOf), + _yt = N1(String.prototype.valueOf), + xyt = N1(Boolean.prototype.valueOf); + voe && (_oe = N1(BigInt.prototype.valueOf)); + var _oe; + woe && (xoe = N1(Symbol.prototype.valueOf)); + var xoe; + function Gx(r, e) { + if (typeof r != "object") return !1; + try { + return e(r), !0; + } catch { + return !1; + } + } + tn.isArgumentsObject = byt; + tn.isGeneratorFunction = vyt; + tn.isTypedArray = boe; + function Tyt(r) { + return ( + (typeof Promise < "u" && r instanceof Promise) || + (r !== null && + typeof r == "object" && + typeof r.then == "function" && + typeof r.catch == "function") + ); + } + tn.isPromise = Tyt; + function Eyt(r) { + return typeof ArrayBuffer < "u" && ArrayBuffer.isView + ? ArrayBuffer.isView(r) + : boe(r) || Eoe(r); + } + tn.isArrayBufferView = Eyt; + function Cyt(r) { + return Td(r) === "Uint8Array"; + } + tn.isUint8Array = Cyt; + function Iyt(r) { + return Td(r) === "Uint8ClampedArray"; + } + tn.isUint8ClampedArray = Iyt; + function Ayt(r) { + return Td(r) === "Uint16Array"; + } + tn.isUint16Array = Ayt; + function kyt(r) { + return Td(r) === "Uint32Array"; + } + tn.isUint32Array = kyt; + function Syt(r) { + return Td(r) === "Int8Array"; + } + tn.isInt8Array = Syt; + function Myt(r) { + return Td(r) === "Int16Array"; + } + tn.isInt16Array = Myt; + function Pyt(r) { + return Td(r) === "Int32Array"; + } + tn.isInt32Array = Pyt; + function Ryt(r) { + return Td(r) === "Float32Array"; + } + tn.isFloat32Array = Ryt; + function Byt(r) { + return Td(r) === "Float64Array"; + } + tn.isFloat64Array = Byt; + function Nyt(r) { + return Td(r) === "BigInt64Array"; + } + tn.isBigInt64Array = Nyt; + function Oyt(r) { + return Td(r) === "BigUint64Array"; + } + tn.isBigUint64Array = Oyt; + function L4(r) { + return ml(r) === "[object Map]"; + } + L4.working = typeof Map < "u" && L4(new Map()); + function Lyt(r) { + return typeof Map > "u" ? !1 : L4.working ? L4(r) : r instanceof Map; + } + tn.isMap = Lyt; + function D4(r) { + return ml(r) === "[object Set]"; + } + D4.working = typeof Set < "u" && D4(new Set()); + function Dyt(r) { + return typeof Set > "u" ? !1 : D4.working ? D4(r) : r instanceof Set; + } + tn.isSet = Dyt; + function q4(r) { + return ml(r) === "[object WeakMap]"; + } + q4.working = typeof WeakMap < "u" && q4(new WeakMap()); + function qyt(r) { + return typeof WeakMap > "u" + ? !1 + : q4.working + ? q4(r) + : r instanceof WeakMap; + } + tn.isWeakMap = qyt; + function YD(r) { + return ml(r) === "[object WeakSet]"; + } + YD.working = typeof WeakSet < "u" && YD(new WeakSet()); + function Fyt(r) { + return YD(r); + } + tn.isWeakSet = Fyt; + function F4(r) { + return ml(r) === "[object ArrayBuffer]"; + } + F4.working = typeof ArrayBuffer < "u" && F4(new ArrayBuffer()); + function Toe(r) { + return typeof ArrayBuffer > "u" + ? !1 + : F4.working + ? F4(r) + : r instanceof ArrayBuffer; + } + tn.isArrayBuffer = Toe; + function W4(r) { + return ml(r) === "[object DataView]"; + } + W4.working = + typeof ArrayBuffer < "u" && + typeof DataView < "u" && + W4(new DataView(new ArrayBuffer(1), 0, 1)); + function Eoe(r) { + return typeof DataView > "u" + ? !1 + : W4.working + ? W4(r) + : r instanceof DataView; + } + tn.isDataView = Eoe; + var GD = typeof SharedArrayBuffer < "u" ? SharedArrayBuffer : void 0; + function Vx(r) { + return ml(r) === "[object SharedArrayBuffer]"; + } + function Coe(r) { + return typeof GD > "u" + ? !1 + : (typeof Vx.working > "u" && (Vx.working = Vx(new GD())), + Vx.working ? Vx(r) : r instanceof GD); + } + tn.isSharedArrayBuffer = Coe; + function Wyt(r) { + return ml(r) === "[object AsyncFunction]"; + } + tn.isAsyncFunction = Wyt; + function Uyt(r) { + return ml(r) === "[object Map Iterator]"; + } + tn.isMapIterator = Uyt; + function Hyt(r) { + return ml(r) === "[object Set Iterator]"; + } + tn.isSetIterator = Hyt; + function zyt(r) { + return ml(r) === "[object Generator]"; + } + tn.isGeneratorObject = zyt; + function jyt(r) { + return ml(r) === "[object WebAssembly.Module]"; + } + tn.isWebAssemblyCompiledModule = jyt; + function Ioe(r) { + return Gx(r, wyt); + } + tn.isNumberObject = Ioe; + function Aoe(r) { + return Gx(r, _yt); + } + tn.isStringObject = Aoe; + function koe(r) { + return Gx(r, xyt); + } + tn.isBooleanObject = koe; + function Soe(r) { + return voe && Gx(r, _oe); + } + tn.isBigIntObject = Soe; + function Moe(r) { + return woe && Gx(r, xoe); + } + tn.isSymbolObject = Moe; + function Kyt(r) { + return Ioe(r) || Aoe(r) || koe(r) || Soe(r) || Moe(r); + } + tn.isBoxedPrimitive = Kyt; + function Vyt(r) { + return typeof Uint8Array < "u" && (Toe(r) || Coe(r)); + } + tn.isAnyArrayBuffer = Vyt; + ["isProxy", "isExternal", "isModuleNamespaceObject"].forEach(function (r) { + Object.defineProperty(tn, r, { + enumerable: !1, + value: function () { + throw new Error(r + " is not supported in userland"); + }, + }); + }); + }); + var Boe = N((uHr, Roe) => { + _(); + x(); + Roe.exports = function (e) { + return ( + e && + typeof e == "object" && + typeof e.copy == "function" && + typeof e.fill == "function" && + typeof e.readUInt8 == "function" + ); + }; + }); + var Y4 = N((rn) => { + _(); + x(); + var Noe = + Object.getOwnPropertyDescriptors || + function (e) { + for (var t = Object.keys(e), n = {}, a = 0; a < t.length; a++) + n[t[a]] = Object.getOwnPropertyDescriptor(e, t[a]); + return n; + }, + Gyt = /%[sdj%]/g; + rn.format = function (r) { + if (!G4(r)) { + for (var e = [], t = 0; t < arguments.length; t++) + e.push(bm(arguments[t])); + return e.join(" "); + } + for ( + var t = 1, + n = arguments, + a = n.length, + i = String(r).replace(Gyt, function (c) { + if (c === "%%") return "%"; + if (t >= a) return c; + switch (c) { + case "%s": + return String(n[t++]); + case "%d": + return Number(n[t++]); + case "%j": + try { + return JSON.stringify(n[t++]); + } catch { + return "[Circular]"; + } + default: + return c; + } + }), + s = n[t]; + t < a; + s = n[++t] + ) + V4(s) || !O1(s) ? (i += " " + s) : (i += " " + bm(s)); + return i; + }; + rn.deprecate = function (r, e) { + if (typeof S < "u" && S.noDeprecation === !0) return r; + if (typeof S > "u") + return function () { + return rn.deprecate(r, e).apply(this, arguments); + }; + var t = !1; + function n() { + if (!t) { + if (S.throwDeprecation) throw new Error(e); + S.traceDeprecation ? console.trace(e) : console.error(e), (t = !0); + } + return r.apply(this, arguments); + } + return n; + }; + var U4 = {}, + Ooe = /^$/; + S.env.NODE_DEBUG && + ((H4 = S.env.NODE_DEBUG), + (H4 = H4.replace(/[|\\{}()[\]^$+?.]/g, "\\$&") + .replace(/\*/g, ".*") + .replace(/,/g, "$|^") + .toUpperCase()), + (Ooe = new RegExp("^" + H4 + "$", "i"))); + var H4; + rn.debuglog = function (r) { + if (((r = r.toUpperCase()), !U4[r])) + if (Ooe.test(r)) { + var e = S.pid; + U4[r] = function () { + var t = rn.format.apply(rn, arguments); + console.error("%s %d: %s", r, e, t); + }; + } else U4[r] = function () {}; + return U4[r]; + }; + function bm(r, e) { + var t = { seen: [], stylize: $yt }; + return ( + arguments.length >= 3 && (t.depth = arguments[2]), + arguments.length >= 4 && (t.colors = arguments[3]), + QD(e) ? (t.showHidden = e) : e && rn._extend(t, e), + Ry(t.showHidden) && (t.showHidden = !1), + Ry(t.depth) && (t.depth = 2), + Ry(t.colors) && (t.colors = !1), + Ry(t.customInspect) && (t.customInspect = !0), + t.colors && (t.stylize = Yyt), + j4(t, r, t.depth) + ); + } + rn.inspect = bm; + bm.colors = { + bold: [1, 22], + italic: [3, 23], + underline: [4, 24], + inverse: [7, 27], + white: [37, 39], + grey: [90, 39], + black: [30, 39], + blue: [34, 39], + cyan: [36, 39], + green: [32, 39], + magenta: [35, 39], + red: [31, 39], + yellow: [33, 39], + }; + bm.styles = { + special: "cyan", + number: "yellow", + boolean: "yellow", + undefined: "grey", + null: "bold", + string: "green", + date: "magenta", + regexp: "red", + }; + function Yyt(r, e) { + var t = bm.styles[e]; + return t + ? "\x1B[" + bm.colors[t][0] + "m" + r + "\x1B[" + bm.colors[t][1] + "m" + : r; + } + function $yt(r, e) { + return r; + } + function Jyt(r) { + var e = {}; + return ( + r.forEach(function (t, n) { + e[t] = !0; + }), + e + ); + } + function j4(r, e, t) { + if ( + r.customInspect && + e && + z4(e.inspect) && + e.inspect !== rn.inspect && + !(e.constructor && e.constructor.prototype === e) + ) { + var n = e.inspect(t, r); + return G4(n) || (n = j4(r, n, t)), n; + } + var a = Zyt(r, e); + if (a) return a; + var i = Object.keys(e), + s = Jyt(i); + if ( + (r.showHidden && (i = Object.getOwnPropertyNames(e)), + $x(e) && (i.indexOf("message") >= 0 || i.indexOf("description") >= 0)) + ) + return $D(e); + if (i.length === 0) { + if (z4(e)) { + var c = e.name ? ": " + e.name : ""; + return r.stylize("[Function" + c + "]", "special"); + } + if (Yx(e)) + return r.stylize(RegExp.prototype.toString.call(e), "regexp"); + if (K4(e)) return r.stylize(Date.prototype.toString.call(e), "date"); + if ($x(e)) return $D(e); + } + var l = "", + d = !1, + m = ["{", "}"]; + if ((Loe(e) && ((d = !0), (m = ["[", "]"])), z4(e))) { + var w = e.name ? ": " + e.name : ""; + l = " [Function" + w + "]"; + } + if ( + (Yx(e) && (l = " " + RegExp.prototype.toString.call(e)), + K4(e) && (l = " " + Date.prototype.toUTCString.call(e)), + $x(e) && (l = " " + $D(e)), + i.length === 0 && (!d || e.length == 0)) + ) + return m[0] + l + m[1]; + if (t < 0) + return Yx(e) + ? r.stylize(RegExp.prototype.toString.call(e), "regexp") + : r.stylize("[Object]", "special"); + r.seen.push(e); + var C; + return ( + d + ? (C = Qyt(r, e, t, s, i)) + : (C = i.map(function (I) { + return ZD(r, e, t, s, I, d); + })), + r.seen.pop(), + Xyt(C, l, m) + ); + } + function Zyt(r, e) { + if (Ry(e)) return r.stylize("undefined", "undefined"); + if (G4(e)) { + var t = + "'" + + JSON.stringify(e) + .replace(/^"|"$/g, "") + .replace(/'/g, "\\'") + .replace(/\\"/g, '"') + + "'"; + return r.stylize(t, "string"); + } + if (Doe(e)) return r.stylize("" + e, "number"); + if (QD(e)) return r.stylize("" + e, "boolean"); + if (V4(e)) return r.stylize("null", "null"); + } + function $D(r) { + return "[" + Error.prototype.toString.call(r) + "]"; + } + function Qyt(r, e, t, n, a) { + for (var i = [], s = 0, c = e.length; s < c; ++s) + qoe(e, String(s)) ? i.push(ZD(r, e, t, n, String(s), !0)) : i.push(""); + return ( + a.forEach(function (l) { + l.match(/^\d+$/) || i.push(ZD(r, e, t, n, l, !0)); + }), + i + ); + } + function ZD(r, e, t, n, a, i) { + var s, c, l; + if ( + ((l = Object.getOwnPropertyDescriptor(e, a) || { value: e[a] }), + l.get + ? l.set + ? (c = r.stylize("[Getter/Setter]", "special")) + : (c = r.stylize("[Getter]", "special")) + : l.set && (c = r.stylize("[Setter]", "special")), + qoe(n, a) || (s = "[" + a + "]"), + c || + (r.seen.indexOf(l.value) < 0 + ? (V4(t) ? (c = j4(r, l.value, null)) : (c = j4(r, l.value, t - 1)), + c.indexOf(` +`) > -1 && + (i + ? (c = c + .split( + ` +` + ) + .map(function (d) { + return " " + d; + }) + .join( + ` +` + ) + .slice(2)) + : (c = + ` +` + + c + .split( + ` +` + ) + .map(function (d) { + return " " + d; + }).join(` +`)))) + : (c = r.stylize("[Circular]", "special"))), + Ry(s)) + ) { + if (i && a.match(/^\d+$/)) return c; + (s = JSON.stringify("" + a)), + s.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/) + ? ((s = s.slice(1, -1)), (s = r.stylize(s, "name"))) + : ((s = s + .replace(/'/g, "\\'") + .replace(/\\"/g, '"') + .replace(/(^"|"$)/g, "'")), + (s = r.stylize(s, "string"))); + } + return s + ": " + c; + } + function Xyt(r, e, t) { + var n = 0, + a = r.reduce(function (i, s) { + return ( + n++, + s.indexOf(` +`) >= 0 && n++, + i + s.replace(/\u001b\[\d\d?m/g, "").length + 1 + ); + }, 0); + return a > 60 + ? t[0] + + (e === "" + ? "" + : e + + ` + `) + + " " + + r.join(`, + `) + + " " + + t[1] + : t[0] + e + " " + r.join(", ") + " " + t[1]; + } + rn.types = Poe(); + function Loe(r) { + return Array.isArray(r); + } + rn.isArray = Loe; + function QD(r) { + return typeof r == "boolean"; + } + rn.isBoolean = QD; + function V4(r) { + return r === null; + } + rn.isNull = V4; + function egt(r) { + return r == null; + } + rn.isNullOrUndefined = egt; + function Doe(r) { + return typeof r == "number"; + } + rn.isNumber = Doe; + function G4(r) { + return typeof r == "string"; + } + rn.isString = G4; + function tgt(r) { + return typeof r == "symbol"; + } + rn.isSymbol = tgt; + function Ry(r) { + return r === void 0; + } + rn.isUndefined = Ry; + function Yx(r) { + return O1(r) && XD(r) === "[object RegExp]"; + } + rn.isRegExp = Yx; + rn.types.isRegExp = Yx; + function O1(r) { + return typeof r == "object" && r !== null; + } + rn.isObject = O1; + function K4(r) { + return O1(r) && XD(r) === "[object Date]"; + } + rn.isDate = K4; + rn.types.isDate = K4; + function $x(r) { + return O1(r) && (XD(r) === "[object Error]" || r instanceof Error); + } + rn.isError = $x; + rn.types.isNativeError = $x; + function z4(r) { + return typeof r == "function"; + } + rn.isFunction = z4; + function rgt(r) { + return ( + r === null || + typeof r == "boolean" || + typeof r == "number" || + typeof r == "string" || + typeof r == "symbol" || + typeof r > "u" + ); + } + rn.isPrimitive = rgt; + rn.isBuffer = Boe(); + function XD(r) { + return Object.prototype.toString.call(r); + } + function JD(r) { + return r < 10 ? "0" + r.toString(10) : r.toString(10); + } + var ngt = [ + "Jan", + "Feb", + "Mar", + "Apr", + "May", + "Jun", + "Jul", + "Aug", + "Sep", + "Oct", + "Nov", + "Dec", + ]; + function agt() { + var r = new Date(), + e = [JD(r.getHours()), JD(r.getMinutes()), JD(r.getSeconds())].join( + ":" + ); + return [r.getDate(), ngt[r.getMonth()], e].join(" "); + } + rn.log = function () { + console.log("%s - %s", agt(), rn.format.apply(rn, arguments)); + }; + rn.inherits = qr(); + rn._extend = function (r, e) { + if (!e || !O1(e)) return r; + for (var t = Object.keys(e), n = t.length; n--; ) r[t[n]] = e[t[n]]; + return r; + }; + function qoe(r, e) { + return Object.prototype.hasOwnProperty.call(r, e); + } + var Py = typeof Symbol < "u" ? Symbol("util.promisify.custom") : void 0; + rn.promisify = function (e) { + if (typeof e != "function") + throw new TypeError('The "original" argument must be of type Function'); + if (Py && e[Py]) { + var t = e[Py]; + if (typeof t != "function") + throw new TypeError( + 'The "util.promisify.custom" argument must be of type Function' + ); + return ( + Object.defineProperty(t, Py, { + value: t, + enumerable: !1, + writable: !1, + configurable: !0, + }), + t + ); + } + function t() { + for ( + var n, + a, + i = new Promise(function (l, d) { + (n = l), (a = d); + }), + s = [], + c = 0; + c < arguments.length; + c++ + ) + s.push(arguments[c]); + s.push(function (l, d) { + l ? a(l) : n(d); + }); + try { + e.apply(this, s); + } catch (l) { + a(l); + } + return i; + } + return ( + Object.setPrototypeOf(t, Object.getPrototypeOf(e)), + Py && + Object.defineProperty(t, Py, { + value: t, + enumerable: !1, + writable: !1, + configurable: !0, + }), + Object.defineProperties(t, Noe(e)) + ); + }; + rn.promisify.custom = Py; + function igt(r, e) { + if (!r) { + var t = new Error("Promise was rejected with a falsy value"); + (t.reason = r), (r = t); + } + return e(r); + } + function sgt(r) { + if (typeof r != "function") + throw new TypeError('The "original" argument must be of type Function'); + function e() { + for (var t = [], n = 0; n < arguments.length; n++) t.push(arguments[n]); + var a = t.pop(); + if (typeof a != "function") + throw new TypeError("The last argument must be of type Function"); + var i = this, + s = function () { + return a.apply(i, arguments); + }; + r.apply(this, t).then( + function (c) { + S.nextTick(s.bind(null, null, c)); + }, + function (c) { + S.nextTick(igt.bind(null, c, s)); + } + ); + } + return ( + Object.setPrototypeOf(e, Object.getPrototypeOf(r)), + Object.defineProperties(e, Noe(r)), + e + ); + } + rn.callbackify = sgt; + }); + var Hoe = N((mHr, Uoe) => { + "use strict"; + _(); + x(); + function Foe(r, e) { + var t = Object.keys(r); + if (Object.getOwnPropertySymbols) { + var n = Object.getOwnPropertySymbols(r); + e && + (n = n.filter(function (a) { + return Object.getOwnPropertyDescriptor(r, a).enumerable; + })), + t.push.apply(t, n); + } + return t; + } + function ogt(r) { + for (var e = 1; e < arguments.length; e++) { + var t = arguments[e] != null ? arguments[e] : {}; + e % 2 + ? Foe(Object(t), !0).forEach(function (n) { + cgt(r, n, t[n]); + }) + : Object.getOwnPropertyDescriptors + ? Object.defineProperties(r, Object.getOwnPropertyDescriptors(t)) + : Foe(Object(t)).forEach(function (n) { + Object.defineProperty( + r, + n, + Object.getOwnPropertyDescriptor(t, n) + ); + }); + } + return r; + } + function cgt(r, e, t) { + return ( + e in r + ? Object.defineProperty(r, e, { + value: t, + enumerable: !0, + configurable: !0, + writable: !0, + }) + : (r[e] = t), + r + ); + } + function ugt(r, e) { + if (!(r instanceof e)) + throw new TypeError("Cannot call a class as a function"); + } + function Woe(r, e) { + for (var t = 0; t < e.length; t++) { + var n = e[t]; + (n.enumerable = n.enumerable || !1), + (n.configurable = !0), + "value" in n && (n.writable = !0), + Object.defineProperty(r, n.key, n); + } + } + function lgt(r, e, t) { + return e && Woe(r.prototype, e), t && Woe(r, t), r; + } + var dgt = Hi(), + $4 = dgt.Buffer, + pgt = Y4(), + eq = pgt.inspect, + hgt = (eq && eq.custom) || "inspect"; + function fgt(r, e, t) { + $4.prototype.copy.call(r, e, t); + } + Uoe.exports = (function () { + function r() { + ugt(this, r), (this.head = null), (this.tail = null), (this.length = 0); + } + return ( + lgt(r, [ + { + key: "push", + value: function (t) { + var n = { data: t, next: null }; + this.length > 0 ? (this.tail.next = n) : (this.head = n), + (this.tail = n), + ++this.length; + }, + }, + { + key: "unshift", + value: function (t) { + var n = { data: t, next: this.head }; + this.length === 0 && (this.tail = n), + (this.head = n), + ++this.length; + }, + }, + { + key: "shift", + value: function () { + if (this.length !== 0) { + var t = this.head.data; + return ( + this.length === 1 + ? (this.head = this.tail = null) + : (this.head = this.head.next), + --this.length, + t + ); + } + }, + }, + { + key: "clear", + value: function () { + (this.head = this.tail = null), (this.length = 0); + }, + }, + { + key: "join", + value: function (t) { + if (this.length === 0) return ""; + for (var n = this.head, a = "" + n.data; (n = n.next); ) + a += t + n.data; + return a; + }, + }, + { + key: "concat", + value: function (t) { + if (this.length === 0) return $4.alloc(0); + for (var n = $4.allocUnsafe(t >>> 0), a = this.head, i = 0; a; ) + fgt(a.data, n, i), (i += a.data.length), (a = a.next); + return n; + }, + }, + { + key: "consume", + value: function (t, n) { + var a; + return ( + t < this.head.data.length + ? ((a = this.head.data.slice(0, t)), + (this.head.data = this.head.data.slice(t))) + : t === this.head.data.length + ? (a = this.shift()) + : (a = n ? this._getString(t) : this._getBuffer(t)), + a + ); + }, + }, + { + key: "first", + value: function () { + return this.head.data; + }, + }, + { + key: "_getString", + value: function (t) { + var n = this.head, + a = 1, + i = n.data; + for (t -= i.length; (n = n.next); ) { + var s = n.data, + c = t > s.length ? s.length : t; + if ( + (c === s.length ? (i += s) : (i += s.slice(0, t)), + (t -= c), + t === 0) + ) { + c === s.length + ? (++a, + n.next + ? (this.head = n.next) + : (this.head = this.tail = null)) + : ((this.head = n), (n.data = s.slice(c))); + break; + } + ++a; + } + return (this.length -= a), i; + }, + }, + { + key: "_getBuffer", + value: function (t) { + var n = $4.allocUnsafe(t), + a = this.head, + i = 1; + for (a.data.copy(n), t -= a.data.length; (a = a.next); ) { + var s = a.data, + c = t > s.length ? s.length : t; + if ((s.copy(n, n.length - t, 0, c), (t -= c), t === 0)) { + c === s.length + ? (++i, + a.next + ? (this.head = a.next) + : (this.head = this.tail = null)) + : ((this.head = a), (a.data = s.slice(c))); + break; + } + ++i; + } + return (this.length -= i), n; + }, + }, + { + key: hgt, + value: function (t, n) { + return eq(this, ogt({}, n, { depth: 0, customInspect: !1 })); + }, + }, + ]), + r + ); + })(); + }); + var rq = N((bHr, joe) => { + "use strict"; + _(); + x(); + function mgt(r, e) { + var t = this, + n = this._readableState && this._readableState.destroyed, + a = this._writableState && this._writableState.destroyed; + return n || a + ? (e + ? e(r) + : r && + (this._writableState + ? this._writableState.errorEmitted || + ((this._writableState.errorEmitted = !0), + S.nextTick(tq, this, r)) + : S.nextTick(tq, this, r)), + this) + : (this._readableState && (this._readableState.destroyed = !0), + this._writableState && (this._writableState.destroyed = !0), + this._destroy(r || null, function (i) { + !e && i + ? t._writableState + ? t._writableState.errorEmitted + ? S.nextTick(J4, t) + : ((t._writableState.errorEmitted = !0), + S.nextTick(zoe, t, i)) + : S.nextTick(zoe, t, i) + : e + ? (S.nextTick(J4, t), e(i)) + : S.nextTick(J4, t); + }), + this); + } + function zoe(r, e) { + tq(r, e), J4(r); + } + function J4(r) { + (r._writableState && !r._writableState.emitClose) || + (r._readableState && !r._readableState.emitClose) || + r.emit("close"); + } + function ygt() { + this._readableState && + ((this._readableState.destroyed = !1), + (this._readableState.reading = !1), + (this._readableState.ended = !1), + (this._readableState.endEmitted = !1)), + this._writableState && + ((this._writableState.destroyed = !1), + (this._writableState.ended = !1), + (this._writableState.ending = !1), + (this._writableState.finalCalled = !1), + (this._writableState.prefinished = !1), + (this._writableState.finished = !1), + (this._writableState.errorEmitted = !1)); + } + function tq(r, e) { + r.emit("error", e); + } + function ggt(r, e) { + var t = r._readableState, + n = r._writableState; + (t && t.autoDestroy) || (n && n.autoDestroy) + ? r.destroy(e) + : r.emit("error", e); + } + joe.exports = { destroy: mgt, undestroy: ygt, errorOrDestroy: ggt }; + }); + var By = N((_Hr, Goe) => { + "use strict"; + _(); + x(); + function bgt(r, e) { + (r.prototype = Object.create(e.prototype)), + (r.prototype.constructor = r), + (r.__proto__ = e); + } + var Voe = {}; + function yl(r, e, t) { + t || (t = Error); + function n(i, s, c) { + return typeof e == "string" ? e : e(i, s, c); + } + var a = (function (i) { + bgt(s, i); + function s(c, l, d) { + return i.call(this, n(c, l, d)) || this; + } + return s; + })(t); + (a.prototype.name = t.name), (a.prototype.code = r), (Voe[r] = a); + } + function Koe(r, e) { + if (Array.isArray(r)) { + var t = r.length; + return ( + (r = r.map(function (n) { + return String(n); + })), + t > 2 + ? "one of " + .concat(e, " ") + .concat(r.slice(0, t - 1).join(", "), ", or ") + r[t - 1] + : t === 2 + ? "one of ".concat(e, " ").concat(r[0], " or ").concat(r[1]) + : "of ".concat(e, " ").concat(r[0]) + ); + } else return "of ".concat(e, " ").concat(String(r)); + } + function vgt(r, e, t) { + return r.substr(!t || t < 0 ? 0 : +t, e.length) === e; + } + function wgt(r, e, t) { + return ( + (t === void 0 || t > r.length) && (t = r.length), + r.substring(t - e.length, t) === e + ); + } + function _gt(r, e, t) { + return ( + typeof t != "number" && (t = 0), + t + e.length > r.length ? !1 : r.indexOf(e, t) !== -1 + ); + } + yl( + "ERR_INVALID_OPT_VALUE", + function (r, e) { + return 'The value "' + e + '" is invalid for option "' + r + '"'; + }, + TypeError + ); + yl( + "ERR_INVALID_ARG_TYPE", + function (r, e, t) { + var n; + typeof e == "string" && vgt(e, "not ") + ? ((n = "must not be"), (e = e.replace(/^not /, ""))) + : (n = "must be"); + var a; + if (wgt(r, " argument")) + a = "The ".concat(r, " ").concat(n, " ").concat(Koe(e, "type")); + else { + var i = _gt(r, ".") ? "property" : "argument"; + a = 'The "' + .concat(r, '" ') + .concat(i, " ") + .concat(n, " ") + .concat(Koe(e, "type")); + } + return (a += ". Received type ".concat(typeof t)), a; + }, + TypeError + ); + yl("ERR_STREAM_PUSH_AFTER_EOF", "stream.push() after EOF"); + yl("ERR_METHOD_NOT_IMPLEMENTED", function (r) { + return "The " + r + " method is not implemented"; + }); + yl("ERR_STREAM_PREMATURE_CLOSE", "Premature close"); + yl("ERR_STREAM_DESTROYED", function (r) { + return "Cannot call " + r + " after a stream was destroyed"; + }); + yl("ERR_MULTIPLE_CALLBACK", "Callback called multiple times"); + yl("ERR_STREAM_CANNOT_PIPE", "Cannot pipe, not readable"); + yl("ERR_STREAM_WRITE_AFTER_END", "write after end"); + yl( + "ERR_STREAM_NULL_VALUES", + "May not write null values to stream", + TypeError + ); + yl( + "ERR_UNKNOWN_ENCODING", + function (r) { + return "Unknown encoding: " + r; + }, + TypeError + ); + yl( + "ERR_STREAM_UNSHIFT_AFTER_END_EVENT", + "stream.unshift() after end event" + ); + Goe.exports.codes = Voe; + }); + var nq = N((EHr, Yoe) => { + "use strict"; + _(); + x(); + var xgt = By().codes.ERR_INVALID_OPT_VALUE; + function Tgt(r, e, t) { + return r.highWaterMark != null ? r.highWaterMark : e ? r[t] : null; + } + function Egt(r, e, t, n) { + var a = Tgt(e, n, t); + if (a != null) { + if (!(isFinite(a) && Math.floor(a) === a) || a < 0) { + var i = n ? t : "highWaterMark"; + throw new xgt(i, a); + } + return Math.floor(a); + } + return r.objectMode ? 16 : 16 * 1024; + } + Yoe.exports = { getHighWaterMark: Egt }; + }); + var Joe = N((AHr, $oe) => { + _(); + x(); + $oe.exports = Cgt; + function Cgt(r, e) { + if (aq("noDeprecation")) return r; + var t = !1; + function n() { + if (!t) { + if (aq("throwDeprecation")) throw new Error(e); + aq("traceDeprecation") ? console.trace(e) : console.warn(e), (t = !0); + } + return r.apply(this, arguments); + } + return n; + } + function aq(r) { + try { + if (!M.localStorage) return !1; + } catch { + return !1; + } + var e = M.localStorage[r]; + return e == null ? !1 : String(e).toLowerCase() === "true"; + } + }); + var X4 = N((MHr, rce) => { + "use strict"; + _(); + x(); + rce.exports = Si; + function Qoe(r) { + var e = this; + (this.next = null), + (this.entry = null), + (this.finish = function () { + Qgt(e, r); + }); + } + var L1; + Si.WritableState = Zx; + var Igt = { deprecate: Joe() }, + Xoe = CD(), + Q4 = Hi().Buffer, + Agt = M.Uint8Array || function () {}; + function kgt(r) { + return Q4.from(r); + } + function Sgt(r) { + return Q4.isBuffer(r) || r instanceof Agt; + } + var sq = rq(), + Mgt = nq(), + Pgt = Mgt.getHighWaterMark, + vm = By().codes, + Rgt = vm.ERR_INVALID_ARG_TYPE, + Bgt = vm.ERR_METHOD_NOT_IMPLEMENTED, + Ngt = vm.ERR_MULTIPLE_CALLBACK, + Ogt = vm.ERR_STREAM_CANNOT_PIPE, + Lgt = vm.ERR_STREAM_DESTROYED, + Dgt = vm.ERR_STREAM_NULL_VALUES, + qgt = vm.ERR_STREAM_WRITE_AFTER_END, + Fgt = vm.ERR_UNKNOWN_ENCODING, + D1 = sq.errorOrDestroy; + qr()(Si, Xoe); + function Wgt() {} + function Zx(r, e, t) { + (L1 = L1 || wm()), + (r = r || {}), + typeof t != "boolean" && (t = e instanceof L1), + (this.objectMode = !!r.objectMode), + t && (this.objectMode = this.objectMode || !!r.writableObjectMode), + (this.highWaterMark = Pgt(this, r, "writableHighWaterMark", t)), + (this.finalCalled = !1), + (this.needDrain = !1), + (this.ending = !1), + (this.ended = !1), + (this.finished = !1), + (this.destroyed = !1); + var n = r.decodeStrings === !1; + (this.decodeStrings = !n), + (this.defaultEncoding = r.defaultEncoding || "utf8"), + (this.length = 0), + (this.writing = !1), + (this.corked = 0), + (this.sync = !0), + (this.bufferProcessing = !1), + (this.onwrite = function (a) { + Ggt(e, a); + }), + (this.writecb = null), + (this.writelen = 0), + (this.bufferedRequest = null), + (this.lastBufferedRequest = null), + (this.pendingcb = 0), + (this.prefinished = !1), + (this.errorEmitted = !1), + (this.emitClose = r.emitClose !== !1), + (this.autoDestroy = !!r.autoDestroy), + (this.bufferedRequestCount = 0), + (this.corkedRequestsFree = new Qoe(this)); + } + Zx.prototype.getBuffer = function () { + for (var e = this.bufferedRequest, t = []; e; ) t.push(e), (e = e.next); + return t; + }; + (function () { + try { + Object.defineProperty(Zx.prototype, "buffer", { + get: Igt.deprecate( + function () { + return this.getBuffer(); + }, + "_writableState.buffer is deprecated. Use _writableState.getBuffer instead.", + "DEP0003" + ), + }); + } catch {} + })(); + var Z4; + typeof Symbol == "function" && + Symbol.hasInstance && + typeof Function.prototype[Symbol.hasInstance] == "function" + ? ((Z4 = Function.prototype[Symbol.hasInstance]), + Object.defineProperty(Si, Symbol.hasInstance, { + value: function (e) { + return Z4.call(this, e) + ? !0 + : this !== Si + ? !1 + : e && e._writableState instanceof Zx; + }, + })) + : (Z4 = function (e) { + return e instanceof this; + }); + function Si(r) { + L1 = L1 || wm(); + var e = this instanceof L1; + if (!e && !Z4.call(Si, this)) return new Si(r); + (this._writableState = new Zx(r, this, e)), + (this.writable = !0), + r && + (typeof r.write == "function" && (this._write = r.write), + typeof r.writev == "function" && (this._writev = r.writev), + typeof r.destroy == "function" && (this._destroy = r.destroy), + typeof r.final == "function" && (this._final = r.final)), + Xoe.call(this); + } + Si.prototype.pipe = function () { + D1(this, new Ogt()); + }; + function Ugt(r, e) { + var t = new qgt(); + D1(r, t), S.nextTick(e, t); + } + function Hgt(r, e, t, n) { + var a; + return ( + t === null + ? (a = new Dgt()) + : typeof t != "string" && + !e.objectMode && + (a = new Rgt("chunk", ["string", "Buffer"], t)), + a ? (D1(r, a), S.nextTick(n, a), !1) : !0 + ); + } + Si.prototype.write = function (r, e, t) { + var n = this._writableState, + a = !1, + i = !n.objectMode && Sgt(r); + return ( + i && !Q4.isBuffer(r) && (r = kgt(r)), + typeof e == "function" && ((t = e), (e = null)), + i ? (e = "buffer") : e || (e = n.defaultEncoding), + typeof t != "function" && (t = Wgt), + n.ending + ? Ugt(this, t) + : (i || Hgt(this, n, r, t)) && + (n.pendingcb++, (a = jgt(this, n, i, r, e, t))), + a + ); + }; + Si.prototype.cork = function () { + this._writableState.corked++; + }; + Si.prototype.uncork = function () { + var r = this._writableState; + r.corked && + (r.corked--, + !r.writing && + !r.corked && + !r.bufferProcessing && + r.bufferedRequest && + ece(this, r)); + }; + Si.prototype.setDefaultEncoding = function (e) { + if ( + (typeof e == "string" && (e = e.toLowerCase()), + !( + [ + "hex", + "utf8", + "utf-8", + "ascii", + "binary", + "base64", + "ucs2", + "ucs-2", + "utf16le", + "utf-16le", + "raw", + ].indexOf((e + "").toLowerCase()) > -1 + )) + ) + throw new Fgt(e); + return (this._writableState.defaultEncoding = e), this; + }; + Object.defineProperty(Si.prototype, "writableBuffer", { + enumerable: !1, + get: function () { + return this._writableState && this._writableState.getBuffer(); + }, + }); + function zgt(r, e, t) { + return ( + !r.objectMode && + r.decodeStrings !== !1 && + typeof e == "string" && + (e = Q4.from(e, t)), + e + ); + } + Object.defineProperty(Si.prototype, "writableHighWaterMark", { + enumerable: !1, + get: function () { + return this._writableState.highWaterMark; + }, + }); + function jgt(r, e, t, n, a, i) { + if (!t) { + var s = zgt(e, n, a); + n !== s && ((t = !0), (a = "buffer"), (n = s)); + } + var c = e.objectMode ? 1 : n.length; + e.length += c; + var l = e.length < e.highWaterMark; + if ((l || (e.needDrain = !0), e.writing || e.corked)) { + var d = e.lastBufferedRequest; + (e.lastBufferedRequest = { + chunk: n, + encoding: a, + isBuf: t, + callback: i, + next: null, + }), + d + ? (d.next = e.lastBufferedRequest) + : (e.bufferedRequest = e.lastBufferedRequest), + (e.bufferedRequestCount += 1); + } else iq(r, e, !1, c, n, a, i); + return l; + } + function iq(r, e, t, n, a, i, s) { + (e.writelen = n), + (e.writecb = s), + (e.writing = !0), + (e.sync = !0), + e.destroyed + ? e.onwrite(new Lgt("write")) + : t + ? r._writev(a, e.onwrite) + : r._write(a, i, e.onwrite), + (e.sync = !1); + } + function Kgt(r, e, t, n, a) { + --e.pendingcb, + t + ? (S.nextTick(a, n), + S.nextTick(Jx, r, e), + (r._writableState.errorEmitted = !0), + D1(r, n)) + : (a(n), (r._writableState.errorEmitted = !0), D1(r, n), Jx(r, e)); + } + function Vgt(r) { + (r.writing = !1), + (r.writecb = null), + (r.length -= r.writelen), + (r.writelen = 0); + } + function Ggt(r, e) { + var t = r._writableState, + n = t.sync, + a = t.writecb; + if (typeof a != "function") throw new Ngt(); + if ((Vgt(t), e)) Kgt(r, t, n, e, a); + else { + var i = tce(t) || r.destroyed; + !i && + !t.corked && + !t.bufferProcessing && + t.bufferedRequest && + ece(r, t), + n ? S.nextTick(Zoe, r, t, i, a) : Zoe(r, t, i, a); + } + } + function Zoe(r, e, t, n) { + t || Ygt(r, e), e.pendingcb--, n(), Jx(r, e); + } + function Ygt(r, e) { + e.length === 0 && e.needDrain && ((e.needDrain = !1), r.emit("drain")); + } + function ece(r, e) { + e.bufferProcessing = !0; + var t = e.bufferedRequest; + if (r._writev && t && t.next) { + var n = e.bufferedRequestCount, + a = new Array(n), + i = e.corkedRequestsFree; + i.entry = t; + for (var s = 0, c = !0; t; ) + (a[s] = t), t.isBuf || (c = !1), (t = t.next), (s += 1); + (a.allBuffers = c), + iq(r, e, !0, e.length, a, "", i.finish), + e.pendingcb++, + (e.lastBufferedRequest = null), + i.next + ? ((e.corkedRequestsFree = i.next), (i.next = null)) + : (e.corkedRequestsFree = new Qoe(e)), + (e.bufferedRequestCount = 0); + } else { + for (; t; ) { + var l = t.chunk, + d = t.encoding, + m = t.callback, + w = e.objectMode ? 1 : l.length; + if ( + (iq(r, e, !1, w, l, d, m), + (t = t.next), + e.bufferedRequestCount--, + e.writing) + ) + break; + } + t === null && (e.lastBufferedRequest = null); + } + (e.bufferedRequest = t), (e.bufferProcessing = !1); + } + Si.prototype._write = function (r, e, t) { + t(new Bgt("_write()")); + }; + Si.prototype._writev = null; + Si.prototype.end = function (r, e, t) { + var n = this._writableState; + return ( + typeof r == "function" + ? ((t = r), (r = null), (e = null)) + : typeof e == "function" && ((t = e), (e = null)), + r != null && this.write(r, e), + n.corked && ((n.corked = 1), this.uncork()), + n.ending || Zgt(this, n, t), + this + ); + }; + Object.defineProperty(Si.prototype, "writableLength", { + enumerable: !1, + get: function () { + return this._writableState.length; + }, + }); + function tce(r) { + return ( + r.ending && + r.length === 0 && + r.bufferedRequest === null && + !r.finished && + !r.writing + ); + } + function $gt(r, e) { + r._final(function (t) { + e.pendingcb--, + t && D1(r, t), + (e.prefinished = !0), + r.emit("prefinish"), + Jx(r, e); + }); + } + function Jgt(r, e) { + !e.prefinished && + !e.finalCalled && + (typeof r._final == "function" && !e.destroyed + ? (e.pendingcb++, (e.finalCalled = !0), S.nextTick($gt, r, e)) + : ((e.prefinished = !0), r.emit("prefinish"))); + } + function Jx(r, e) { + var t = tce(e); + if ( + t && + (Jgt(r, e), + e.pendingcb === 0 && + ((e.finished = !0), r.emit("finish"), e.autoDestroy)) + ) { + var n = r._readableState; + (!n || (n.autoDestroy && n.endEmitted)) && r.destroy(); + } + return t; + } + function Zgt(r, e, t) { + (e.ending = !0), + Jx(r, e), + t && (e.finished ? S.nextTick(t) : r.once("finish", t)), + (e.ended = !0), + (r.writable = !1); + } + function Qgt(r, e, t) { + var n = r.entry; + for (r.entry = null; n; ) { + var a = n.callback; + e.pendingcb--, a(t), (n = n.next); + } + e.corkedRequestsFree.next = r; + } + Object.defineProperty(Si.prototype, "destroyed", { + enumerable: !1, + get: function () { + return this._writableState === void 0 + ? !1 + : this._writableState.destroyed; + }, + set: function (e) { + !this._writableState || (this._writableState.destroyed = e); + }, + }); + Si.prototype.destroy = sq.destroy; + Si.prototype._undestroy = sq.undestroy; + Si.prototype._destroy = function (r, e) { + e(r); + }; + }); + var wm = N((BHr, ace) => { + "use strict"; + _(); + x(); + var Xgt = + Object.keys || + function (r) { + var e = []; + for (var t in r) e.push(t); + return e; + }; + ace.exports = Bp; + var nce = rI(), + cq = X4(); + qr()(Bp, nce); + for (oq = Xgt(cq.prototype), eI = 0; eI < oq.length; eI++) + (tI = oq[eI]), Bp.prototype[tI] || (Bp.prototype[tI] = cq.prototype[tI]); + var oq, tI, eI; + function Bp(r) { + if (!(this instanceof Bp)) return new Bp(r); + nce.call(this, r), + cq.call(this, r), + (this.allowHalfOpen = !0), + r && + (r.readable === !1 && (this.readable = !1), + r.writable === !1 && (this.writable = !1), + r.allowHalfOpen === !1 && + ((this.allowHalfOpen = !1), this.once("end", ebt))); + } + Object.defineProperty(Bp.prototype, "writableHighWaterMark", { + enumerable: !1, + get: function () { + return this._writableState.highWaterMark; + }, + }); + Object.defineProperty(Bp.prototype, "writableBuffer", { + enumerable: !1, + get: function () { + return this._writableState && this._writableState.getBuffer(); + }, + }); + Object.defineProperty(Bp.prototype, "writableLength", { + enumerable: !1, + get: function () { + return this._writableState.length; + }, + }); + function ebt() { + this._writableState.ended || S.nextTick(tbt, this); + } + function tbt(r) { + r.end(); + } + Object.defineProperty(Bp.prototype, "destroyed", { + enumerable: !1, + get: function () { + return this._readableState === void 0 || this._writableState === void 0 + ? !1 + : this._readableState.destroyed && this._writableState.destroyed; + }, + set: function (e) { + this._readableState === void 0 || + this._writableState === void 0 || + ((this._readableState.destroyed = e), + (this._writableState.destroyed = e)); + }, + }); + }); + var nI = N((sce) => { + "use strict"; + _(); + x(); + var lq = zr().Buffer, + ice = + lq.isEncoding || + function (r) { + switch (((r = "" + r), r && r.toLowerCase())) { + case "hex": + case "utf8": + case "utf-8": + case "ascii": + case "binary": + case "base64": + case "ucs2": + case "ucs-2": + case "utf16le": + case "utf-16le": + case "raw": + return !0; + default: + return !1; + } + }; + function rbt(r) { + if (!r) return "utf8"; + for (var e; ; ) + switch (r) { + case "utf8": + case "utf-8": + return "utf8"; + case "ucs2": + case "ucs-2": + case "utf16le": + case "utf-16le": + return "utf16le"; + case "latin1": + case "binary": + return "latin1"; + case "base64": + case "ascii": + case "hex": + return r; + default: + if (e) return; + (r = ("" + r).toLowerCase()), (e = !0); + } + } + function nbt(r) { + var e = rbt(r); + if (typeof e != "string" && (lq.isEncoding === ice || !ice(r))) + throw new Error("Unknown encoding: " + r); + return e || r; + } + sce.StringDecoder = Qx; + function Qx(r) { + this.encoding = nbt(r); + var e; + switch (this.encoding) { + case "utf16le": + (this.text = ubt), (this.end = lbt), (e = 4); + break; + case "utf8": + (this.fillLast = sbt), (e = 4); + break; + case "base64": + (this.text = dbt), (this.end = pbt), (e = 3); + break; + default: + (this.write = hbt), (this.end = fbt); + return; + } + (this.lastNeed = 0), + (this.lastTotal = 0), + (this.lastChar = lq.allocUnsafe(e)); + } + Qx.prototype.write = function (r) { + if (r.length === 0) return ""; + var e, t; + if (this.lastNeed) { + if (((e = this.fillLast(r)), e === void 0)) return ""; + (t = this.lastNeed), (this.lastNeed = 0); + } else t = 0; + return t < r.length + ? e + ? e + this.text(r, t) + : this.text(r, t) + : e || ""; + }; + Qx.prototype.end = cbt; + Qx.prototype.text = obt; + Qx.prototype.fillLast = function (r) { + if (this.lastNeed <= r.length) + return ( + r.copy( + this.lastChar, + this.lastTotal - this.lastNeed, + 0, + this.lastNeed + ), + this.lastChar.toString(this.encoding, 0, this.lastTotal) + ); + r.copy(this.lastChar, this.lastTotal - this.lastNeed, 0, r.length), + (this.lastNeed -= r.length); + }; + function uq(r) { + return r <= 127 + ? 0 + : r >> 5 === 6 + ? 2 + : r >> 4 === 14 + ? 3 + : r >> 3 === 30 + ? 4 + : r >> 6 === 2 + ? -1 + : -2; + } + function abt(r, e, t) { + var n = e.length - 1; + if (n < t) return 0; + var a = uq(e[n]); + return a >= 0 + ? (a > 0 && (r.lastNeed = a - 1), a) + : --n < t || a === -2 + ? 0 + : ((a = uq(e[n])), + a >= 0 + ? (a > 0 && (r.lastNeed = a - 2), a) + : --n < t || a === -2 + ? 0 + : ((a = uq(e[n])), + a >= 0 + ? (a > 0 && (a === 2 ? (a = 0) : (r.lastNeed = a - 3)), a) + : 0)); + } + function ibt(r, e, t) { + if ((e[0] & 192) !== 128) return (r.lastNeed = 0), "\uFFFD"; + if (r.lastNeed > 1 && e.length > 1) { + if ((e[1] & 192) !== 128) return (r.lastNeed = 1), "\uFFFD"; + if (r.lastNeed > 2 && e.length > 2 && (e[2] & 192) !== 128) + return (r.lastNeed = 2), "\uFFFD"; + } + } + function sbt(r) { + var e = this.lastTotal - this.lastNeed, + t = ibt(this, r, e); + if (t !== void 0) return t; + if (this.lastNeed <= r.length) + return ( + r.copy(this.lastChar, e, 0, this.lastNeed), + this.lastChar.toString(this.encoding, 0, this.lastTotal) + ); + r.copy(this.lastChar, e, 0, r.length), (this.lastNeed -= r.length); + } + function obt(r, e) { + var t = abt(this, r, e); + if (!this.lastNeed) return r.toString("utf8", e); + this.lastTotal = t; + var n = r.length - (t - this.lastNeed); + return r.copy(this.lastChar, 0, n), r.toString("utf8", e, n); + } + function cbt(r) { + var e = r && r.length ? this.write(r) : ""; + return this.lastNeed ? e + "\uFFFD" : e; + } + function ubt(r, e) { + if ((r.length - e) % 2 === 0) { + var t = r.toString("utf16le", e); + if (t) { + var n = t.charCodeAt(t.length - 1); + if (n >= 55296 && n <= 56319) + return ( + (this.lastNeed = 2), + (this.lastTotal = 4), + (this.lastChar[0] = r[r.length - 2]), + (this.lastChar[1] = r[r.length - 1]), + t.slice(0, -1) + ); + } + return t; + } + return ( + (this.lastNeed = 1), + (this.lastTotal = 2), + (this.lastChar[0] = r[r.length - 1]), + r.toString("utf16le", e, r.length - 1) + ); + } + function lbt(r) { + var e = r && r.length ? this.write(r) : ""; + if (this.lastNeed) { + var t = this.lastTotal - this.lastNeed; + return e + this.lastChar.toString("utf16le", 0, t); + } + return e; + } + function dbt(r, e) { + var t = (r.length - e) % 3; + return t === 0 + ? r.toString("base64", e) + : ((this.lastNeed = 3 - t), + (this.lastTotal = 3), + t === 1 + ? (this.lastChar[0] = r[r.length - 1]) + : ((this.lastChar[0] = r[r.length - 2]), + (this.lastChar[1] = r[r.length - 1])), + r.toString("base64", e, r.length - t)); + } + function pbt(r) { + var e = r && r.length ? this.write(r) : ""; + return this.lastNeed + ? e + this.lastChar.toString("base64", 0, 3 - this.lastNeed) + : e; + } + function hbt(r) { + return r.toString(this.encoding); + } + function fbt(r) { + return r && r.length ? this.write(r) : ""; + } + }); + var Xx = N((FHr, uce) => { + "use strict"; + _(); + x(); + var oce = By().codes.ERR_STREAM_PREMATURE_CLOSE; + function mbt(r) { + var e = !1; + return function () { + if (!e) { + e = !0; + for (var t = arguments.length, n = new Array(t), a = 0; a < t; a++) + n[a] = arguments[a]; + r.apply(this, n); + } + }; + } + function ybt() {} + function gbt(r) { + return r.setHeader && typeof r.abort == "function"; + } + function cce(r, e, t) { + if (typeof e == "function") return cce(r, null, e); + e || (e = {}), (t = mbt(t || ybt)); + var n = e.readable || (e.readable !== !1 && r.readable), + a = e.writable || (e.writable !== !1 && r.writable), + i = function () { + r.writable || c(); + }, + s = r._writableState && r._writableState.finished, + c = function () { + (a = !1), (s = !0), n || t.call(r); + }, + l = r._readableState && r._readableState.endEmitted, + d = function () { + (n = !1), (l = !0), a || t.call(r); + }, + m = function (k) { + t.call(r, k); + }, + w = function () { + var k; + if (n && !l) + return ( + (!r._readableState || !r._readableState.ended) && (k = new oce()), + t.call(r, k) + ); + if (a && !s) + return ( + (!r._writableState || !r._writableState.ended) && (k = new oce()), + t.call(r, k) + ); + }, + C = function () { + r.req.on("finish", c); + }; + return ( + gbt(r) + ? (r.on("complete", c), + r.on("abort", w), + r.req ? C() : r.on("request", C)) + : a && !r._writableState && (r.on("end", i), r.on("close", i)), + r.on("end", d), + r.on("finish", c), + e.error !== !1 && r.on("error", m), + r.on("close", w), + function () { + r.removeListener("complete", c), + r.removeListener("abort", w), + r.removeListener("request", C), + r.req && r.req.removeListener("finish", c), + r.removeListener("end", i), + r.removeListener("close", i), + r.removeListener("finish", c), + r.removeListener("end", d), + r.removeListener("error", m), + r.removeListener("close", w); + } + ); + } + uce.exports = cce; + }); + var dce = N((HHr, lce) => { + "use strict"; + _(); + x(); + var aI; + function _m(r, e, t) { + return ( + e in r + ? Object.defineProperty(r, e, { + value: t, + enumerable: !0, + configurable: !0, + writable: !0, + }) + : (r[e] = t), + r + ); + } + var bbt = Xx(), + xm = Symbol("lastResolve"), + Ny = Symbol("lastReject"), + eT = Symbol("error"), + iI = Symbol("ended"), + Oy = Symbol("lastPromise"), + dq = Symbol("handlePromise"), + Ly = Symbol("stream"); + function Tm(r, e) { + return { value: r, done: e }; + } + function vbt(r) { + var e = r[xm]; + if (e !== null) { + var t = r[Ly].read(); + t !== null && + ((r[Oy] = null), (r[xm] = null), (r[Ny] = null), e(Tm(t, !1))); + } + } + function wbt(r) { + S.nextTick(vbt, r); + } + function _bt(r, e) { + return function (t, n) { + r.then(function () { + if (e[iI]) { + t(Tm(void 0, !0)); + return; + } + e[dq](t, n); + }, n); + }; + } + var xbt = Object.getPrototypeOf(function () {}), + Tbt = Object.setPrototypeOf( + ((aI = { + get stream() { + return this[Ly]; + }, + next: function () { + var e = this, + t = this[eT]; + if (t !== null) return Promise.reject(t); + if (this[iI]) return Promise.resolve(Tm(void 0, !0)); + if (this[Ly].destroyed) + return new Promise(function (s, c) { + S.nextTick(function () { + e[eT] ? c(e[eT]) : s(Tm(void 0, !0)); + }); + }); + var n = this[Oy], + a; + if (n) a = new Promise(_bt(n, this)); + else { + var i = this[Ly].read(); + if (i !== null) return Promise.resolve(Tm(i, !1)); + a = new Promise(this[dq]); + } + return (this[Oy] = a), a; + }, + }), + _m(aI, Symbol.asyncIterator, function () { + return this; + }), + _m(aI, "return", function () { + var e = this; + return new Promise(function (t, n) { + e[Ly].destroy(null, function (a) { + if (a) { + n(a); + return; + } + t(Tm(void 0, !0)); + }); + }); + }), + aI), + xbt + ), + Ebt = function (e) { + var t, + n = Object.create( + Tbt, + ((t = {}), + _m(t, Ly, { value: e, writable: !0 }), + _m(t, xm, { value: null, writable: !0 }), + _m(t, Ny, { value: null, writable: !0 }), + _m(t, eT, { value: null, writable: !0 }), + _m(t, iI, { value: e._readableState.endEmitted, writable: !0 }), + _m(t, dq, { + value: function (i, s) { + var c = n[Ly].read(); + c + ? ((n[Oy] = null), + (n[xm] = null), + (n[Ny] = null), + i(Tm(c, !1))) + : ((n[xm] = i), (n[Ny] = s)); + }, + writable: !0, + }), + t) + ); + return ( + (n[Oy] = null), + bbt(e, function (a) { + if (a && a.code !== "ERR_STREAM_PREMATURE_CLOSE") { + var i = n[Ny]; + i !== null && + ((n[Oy] = null), (n[xm] = null), (n[Ny] = null), i(a)), + (n[eT] = a); + return; + } + var s = n[xm]; + s !== null && + ((n[Oy] = null), + (n[xm] = null), + (n[Ny] = null), + s(Tm(void 0, !0))), + (n[iI] = !0); + }), + e.on("readable", wbt.bind(null, n)), + n + ); + }; + lce.exports = Ebt; + }); + var hce = N((KHr, pce) => { + _(); + x(); + pce.exports = function () { + throw new Error("Readable.from is not available in the browser"); + }; + }); + var rI = N(($Hr, Tce) => { + "use strict"; + _(); + x(); + Tce.exports = Tn; + var q1; + Tn.ReadableState = gce; + var YHr = gm().EventEmitter, + yce = function (e, t) { + return e.listeners(t).length; + }, + rT = CD(), + sI = Hi().Buffer, + Cbt = M.Uint8Array || function () {}; + function Ibt(r) { + return sI.from(r); + } + function Abt(r) { + return sI.isBuffer(r) || r instanceof Cbt; + } + var pq = Y4(), + Qr; + pq && pq.debuglog ? (Qr = pq.debuglog("stream")) : (Qr = function () {}); + var kbt = Hoe(), + vq = rq(), + Sbt = nq(), + Mbt = Sbt.getHighWaterMark, + oI = By().codes, + Pbt = oI.ERR_INVALID_ARG_TYPE, + Rbt = oI.ERR_STREAM_PUSH_AFTER_EOF, + Bbt = oI.ERR_METHOD_NOT_IMPLEMENTED, + Nbt = oI.ERR_STREAM_UNSHIFT_AFTER_END_EVENT, + F1, + hq, + fq; + qr()(Tn, rT); + var tT = vq.errorOrDestroy, + mq = ["error", "close", "destroy", "pause", "resume"]; + function Obt(r, e, t) { + if (typeof r.prependListener == "function") + return r.prependListener(e, t); + !r._events || !r._events[e] + ? r.on(e, t) + : Array.isArray(r._events[e]) + ? r._events[e].unshift(t) + : (r._events[e] = [t, r._events[e]]); + } + function gce(r, e, t) { + (q1 = q1 || wm()), + (r = r || {}), + typeof t != "boolean" && (t = e instanceof q1), + (this.objectMode = !!r.objectMode), + t && (this.objectMode = this.objectMode || !!r.readableObjectMode), + (this.highWaterMark = Mbt(this, r, "readableHighWaterMark", t)), + (this.buffer = new kbt()), + (this.length = 0), + (this.pipes = null), + (this.pipesCount = 0), + (this.flowing = null), + (this.ended = !1), + (this.endEmitted = !1), + (this.reading = !1), + (this.sync = !0), + (this.needReadable = !1), + (this.emittedReadable = !1), + (this.readableListening = !1), + (this.resumeScheduled = !1), + (this.paused = !0), + (this.emitClose = r.emitClose !== !1), + (this.autoDestroy = !!r.autoDestroy), + (this.destroyed = !1), + (this.defaultEncoding = r.defaultEncoding || "utf8"), + (this.awaitDrain = 0), + (this.readingMore = !1), + (this.decoder = null), + (this.encoding = null), + r.encoding && + (F1 || (F1 = nI().StringDecoder), + (this.decoder = new F1(r.encoding)), + (this.encoding = r.encoding)); + } + function Tn(r) { + if (((q1 = q1 || wm()), !(this instanceof Tn))) return new Tn(r); + var e = this instanceof q1; + (this._readableState = new gce(r, this, e)), + (this.readable = !0), + r && + (typeof r.read == "function" && (this._read = r.read), + typeof r.destroy == "function" && (this._destroy = r.destroy)), + rT.call(this); + } + Object.defineProperty(Tn.prototype, "destroyed", { + enumerable: !1, + get: function () { + return this._readableState === void 0 + ? !1 + : this._readableState.destroyed; + }, + set: function (e) { + !this._readableState || (this._readableState.destroyed = e); + }, + }); + Tn.prototype.destroy = vq.destroy; + Tn.prototype._undestroy = vq.undestroy; + Tn.prototype._destroy = function (r, e) { + e(r); + }; + Tn.prototype.push = function (r, e) { + var t = this._readableState, + n; + return ( + t.objectMode + ? (n = !0) + : typeof r == "string" && + ((e = e || t.defaultEncoding), + e !== t.encoding && ((r = sI.from(r, e)), (e = "")), + (n = !0)), + bce(this, r, e, !1, n) + ); + }; + Tn.prototype.unshift = function (r) { + return bce(this, r, null, !0, !1); + }; + function bce(r, e, t, n, a) { + Qr("readableAddChunk", e); + var i = r._readableState; + if (e === null) (i.reading = !1), qbt(r, i); + else { + var s; + if ((a || (s = Lbt(i, e)), s)) tT(r, s); + else if (i.objectMode || (e && e.length > 0)) + if ( + (typeof e != "string" && + !i.objectMode && + Object.getPrototypeOf(e) !== sI.prototype && + (e = Ibt(e)), + n) + ) + i.endEmitted ? tT(r, new Nbt()) : yq(r, i, e, !0); + else if (i.ended) tT(r, new Rbt()); + else { + if (i.destroyed) return !1; + (i.reading = !1), + i.decoder && !t + ? ((e = i.decoder.write(e)), + i.objectMode || e.length !== 0 ? yq(r, i, e, !1) : bq(r, i)) + : yq(r, i, e, !1); + } + else n || ((i.reading = !1), bq(r, i)); + } + return !i.ended && (i.length < i.highWaterMark || i.length === 0); + } + function yq(r, e, t, n) { + e.flowing && e.length === 0 && !e.sync + ? ((e.awaitDrain = 0), r.emit("data", t)) + : ((e.length += e.objectMode ? 1 : t.length), + n ? e.buffer.unshift(t) : e.buffer.push(t), + e.needReadable && cI(r)), + bq(r, e); + } + function Lbt(r, e) { + var t; + return ( + !Abt(e) && + typeof e != "string" && + e !== void 0 && + !r.objectMode && + (t = new Pbt("chunk", ["string", "Buffer", "Uint8Array"], e)), + t + ); + } + Tn.prototype.isPaused = function () { + return this._readableState.flowing === !1; + }; + Tn.prototype.setEncoding = function (r) { + F1 || (F1 = nI().StringDecoder); + var e = new F1(r); + (this._readableState.decoder = e), + (this._readableState.encoding = this._readableState.decoder.encoding); + for (var t = this._readableState.buffer.head, n = ""; t !== null; ) + (n += e.write(t.data)), (t = t.next); + return ( + this._readableState.buffer.clear(), + n !== "" && this._readableState.buffer.push(n), + (this._readableState.length = n.length), + this + ); + }; + var fce = 1073741824; + function Dbt(r) { + return ( + r >= fce + ? (r = fce) + : (r--, + (r |= r >>> 1), + (r |= r >>> 2), + (r |= r >>> 4), + (r |= r >>> 8), + (r |= r >>> 16), + r++), + r + ); + } + function mce(r, e) { + return r <= 0 || (e.length === 0 && e.ended) + ? 0 + : e.objectMode + ? 1 + : r !== r + ? e.flowing && e.length + ? e.buffer.head.data.length + : e.length + : (r > e.highWaterMark && (e.highWaterMark = Dbt(r)), + r <= e.length ? r : e.ended ? e.length : ((e.needReadable = !0), 0)); + } + Tn.prototype.read = function (r) { + Qr("read", r), (r = parseInt(r, 10)); + var e = this._readableState, + t = r; + if ( + (r !== 0 && (e.emittedReadable = !1), + r === 0 && + e.needReadable && + ((e.highWaterMark !== 0 + ? e.length >= e.highWaterMark + : e.length > 0) || + e.ended)) + ) + return ( + Qr("read: emitReadable", e.length, e.ended), + e.length === 0 && e.ended ? gq(this) : cI(this), + null + ); + if (((r = mce(r, e)), r === 0 && e.ended)) + return e.length === 0 && gq(this), null; + var n = e.needReadable; + Qr("need readable", n), + (e.length === 0 || e.length - r < e.highWaterMark) && + ((n = !0), Qr("length less than watermark", n)), + e.ended || e.reading + ? ((n = !1), Qr("reading or ended", n)) + : n && + (Qr("do read"), + (e.reading = !0), + (e.sync = !0), + e.length === 0 && (e.needReadable = !0), + this._read(e.highWaterMark), + (e.sync = !1), + e.reading || (r = mce(t, e))); + var a; + return ( + r > 0 ? (a = _ce(r, e)) : (a = null), + a === null + ? ((e.needReadable = e.length <= e.highWaterMark), (r = 0)) + : ((e.length -= r), (e.awaitDrain = 0)), + e.length === 0 && + (e.ended || (e.needReadable = !0), t !== r && e.ended && gq(this)), + a !== null && this.emit("data", a), + a + ); + }; + function qbt(r, e) { + if ((Qr("onEofChunk"), !e.ended)) { + if (e.decoder) { + var t = e.decoder.end(); + t && + t.length && + (e.buffer.push(t), (e.length += e.objectMode ? 1 : t.length)); + } + (e.ended = !0), + e.sync + ? cI(r) + : ((e.needReadable = !1), + e.emittedReadable || ((e.emittedReadable = !0), vce(r))); + } + } + function cI(r) { + var e = r._readableState; + Qr("emitReadable", e.needReadable, e.emittedReadable), + (e.needReadable = !1), + e.emittedReadable || + (Qr("emitReadable", e.flowing), + (e.emittedReadable = !0), + S.nextTick(vce, r)); + } + function vce(r) { + var e = r._readableState; + Qr("emitReadable_", e.destroyed, e.length, e.ended), + !e.destroyed && + (e.length || e.ended) && + (r.emit("readable"), (e.emittedReadable = !1)), + (e.needReadable = + !e.flowing && !e.ended && e.length <= e.highWaterMark), + wq(r); + } + function bq(r, e) { + e.readingMore || ((e.readingMore = !0), S.nextTick(Fbt, r, e)); + } + function Fbt(r, e) { + for ( + ; + !e.reading && + !e.ended && + (e.length < e.highWaterMark || (e.flowing && e.length === 0)); + + ) { + var t = e.length; + if ((Qr("maybeReadMore read 0"), r.read(0), t === e.length)) break; + } + e.readingMore = !1; + } + Tn.prototype._read = function (r) { + tT(this, new Bbt("_read()")); + }; + Tn.prototype.pipe = function (r, e) { + var t = this, + n = this._readableState; + switch (n.pipesCount) { + case 0: + n.pipes = r; + break; + case 1: + n.pipes = [n.pipes, r]; + break; + default: + n.pipes.push(r); + break; + } + (n.pipesCount += 1), Qr("pipe count=%d opts=%j", n.pipesCount, e); + var a = (!e || e.end !== !1) && r !== S.stdout && r !== S.stderr, + i = a ? c : O; + n.endEmitted ? S.nextTick(i) : t.once("end", i), r.on("unpipe", s); + function s(D, W) { + Qr("onunpipe"), + D === t && W && W.hasUnpiped === !1 && ((W.hasUnpiped = !0), m()); + } + function c() { + Qr("onend"), r.end(); + } + var l = Wbt(t); + r.on("drain", l); + var d = !1; + function m() { + Qr("cleanup"), + r.removeListener("close", I), + r.removeListener("finish", k), + r.removeListener("drain", l), + r.removeListener("error", C), + r.removeListener("unpipe", s), + t.removeListener("end", c), + t.removeListener("end", O), + t.removeListener("data", w), + (d = !0), + n.awaitDrain && + (!r._writableState || r._writableState.needDrain) && + l(); + } + t.on("data", w); + function w(D) { + Qr("ondata"); + var W = r.write(D); + Qr("dest.write", W), + W === !1 && + (((n.pipesCount === 1 && n.pipes === r) || + (n.pipesCount > 1 && xce(n.pipes, r) !== -1)) && + !d && + (Qr("false write response, pause", n.awaitDrain), n.awaitDrain++), + t.pause()); + } + function C(D) { + Qr("onerror", D), + O(), + r.removeListener("error", C), + yce(r, "error") === 0 && tT(r, D); + } + Obt(r, "error", C); + function I() { + r.removeListener("finish", k), O(); + } + r.once("close", I); + function k() { + Qr("onfinish"), r.removeListener("close", I), O(); + } + r.once("finish", k); + function O() { + Qr("unpipe"), t.unpipe(r); + } + return r.emit("pipe", t), n.flowing || (Qr("pipe resume"), t.resume()), r; + }; + function Wbt(r) { + return function () { + var t = r._readableState; + Qr("pipeOnDrain", t.awaitDrain), + t.awaitDrain && t.awaitDrain--, + t.awaitDrain === 0 && yce(r, "data") && ((t.flowing = !0), wq(r)); + }; + } + Tn.prototype.unpipe = function (r) { + var e = this._readableState, + t = { hasUnpiped: !1 }; + if (e.pipesCount === 0) return this; + if (e.pipesCount === 1) + return r && r !== e.pipes + ? this + : (r || (r = e.pipes), + (e.pipes = null), + (e.pipesCount = 0), + (e.flowing = !1), + r && r.emit("unpipe", this, t), + this); + if (!r) { + var n = e.pipes, + a = e.pipesCount; + (e.pipes = null), (e.pipesCount = 0), (e.flowing = !1); + for (var i = 0; i < a; i++) + n[i].emit("unpipe", this, { hasUnpiped: !1 }); + return this; + } + var s = xce(e.pipes, r); + return s === -1 + ? this + : (e.pipes.splice(s, 1), + (e.pipesCount -= 1), + e.pipesCount === 1 && (e.pipes = e.pipes[0]), + r.emit("unpipe", this, t), + this); + }; + Tn.prototype.on = function (r, e) { + var t = rT.prototype.on.call(this, r, e), + n = this._readableState; + return ( + r === "data" + ? ((n.readableListening = this.listenerCount("readable") > 0), + n.flowing !== !1 && this.resume()) + : r === "readable" && + !n.endEmitted && + !n.readableListening && + ((n.readableListening = n.needReadable = !0), + (n.flowing = !1), + (n.emittedReadable = !1), + Qr("on readable", n.length, n.reading), + n.length ? cI(this) : n.reading || S.nextTick(Ubt, this)), + t + ); + }; + Tn.prototype.addListener = Tn.prototype.on; + Tn.prototype.removeListener = function (r, e) { + var t = rT.prototype.removeListener.call(this, r, e); + return r === "readable" && S.nextTick(wce, this), t; + }; + Tn.prototype.removeAllListeners = function (r) { + var e = rT.prototype.removeAllListeners.apply(this, arguments); + return (r === "readable" || r === void 0) && S.nextTick(wce, this), e; + }; + function wce(r) { + var e = r._readableState; + (e.readableListening = r.listenerCount("readable") > 0), + e.resumeScheduled && !e.paused + ? (e.flowing = !0) + : r.listenerCount("data") > 0 && r.resume(); + } + function Ubt(r) { + Qr("readable nexttick read 0"), r.read(0); + } + Tn.prototype.resume = function () { + var r = this._readableState; + return ( + r.flowing || + (Qr("resume"), (r.flowing = !r.readableListening), Hbt(this, r)), + (r.paused = !1), + this + ); + }; + function Hbt(r, e) { + e.resumeScheduled || ((e.resumeScheduled = !0), S.nextTick(zbt, r, e)); + } + function zbt(r, e) { + Qr("resume", e.reading), + e.reading || r.read(0), + (e.resumeScheduled = !1), + r.emit("resume"), + wq(r), + e.flowing && !e.reading && r.read(0); + } + Tn.prototype.pause = function () { + return ( + Qr("call pause flowing=%j", this._readableState.flowing), + this._readableState.flowing !== !1 && + (Qr("pause"), (this._readableState.flowing = !1), this.emit("pause")), + (this._readableState.paused = !0), + this + ); + }; + function wq(r) { + var e = r._readableState; + for (Qr("flow", e.flowing); e.flowing && r.read() !== null; ); + } + Tn.prototype.wrap = function (r) { + var e = this, + t = this._readableState, + n = !1; + r.on("end", function () { + if ((Qr("wrapped end"), t.decoder && !t.ended)) { + var s = t.decoder.end(); + s && s.length && e.push(s); + } + e.push(null); + }), + r.on("data", function (s) { + if ( + (Qr("wrapped data"), + t.decoder && (s = t.decoder.write(s)), + !(t.objectMode && s == null) && + !(!t.objectMode && (!s || !s.length))) + ) { + var c = e.push(s); + c || ((n = !0), r.pause()); + } + }); + for (var a in r) + this[a] === void 0 && + typeof r[a] == "function" && + (this[a] = (function (c) { + return function () { + return r[c].apply(r, arguments); + }; + })(a)); + for (var i = 0; i < mq.length; i++) + r.on(mq[i], this.emit.bind(this, mq[i])); + return ( + (this._read = function (s) { + Qr("wrapped _read", s), n && ((n = !1), r.resume()); + }), + this + ); + }; + typeof Symbol == "function" && + (Tn.prototype[Symbol.asyncIterator] = function () { + return hq === void 0 && (hq = dce()), hq(this); + }); + Object.defineProperty(Tn.prototype, "readableHighWaterMark", { + enumerable: !1, + get: function () { + return this._readableState.highWaterMark; + }, + }); + Object.defineProperty(Tn.prototype, "readableBuffer", { + enumerable: !1, + get: function () { + return this._readableState && this._readableState.buffer; + }, + }); + Object.defineProperty(Tn.prototype, "readableFlowing", { + enumerable: !1, + get: function () { + return this._readableState.flowing; + }, + set: function (e) { + this._readableState && (this._readableState.flowing = e); + }, + }); + Tn._fromList = _ce; + Object.defineProperty(Tn.prototype, "readableLength", { + enumerable: !1, + get: function () { + return this._readableState.length; + }, + }); + function _ce(r, e) { + if (e.length === 0) return null; + var t; + return ( + e.objectMode + ? (t = e.buffer.shift()) + : !r || r >= e.length + ? (e.decoder + ? (t = e.buffer.join("")) + : e.buffer.length === 1 + ? (t = e.buffer.first()) + : (t = e.buffer.concat(e.length)), + e.buffer.clear()) + : (t = e.buffer.consume(r, e.decoder)), + t + ); + } + function gq(r) { + var e = r._readableState; + Qr("endReadable", e.endEmitted), + e.endEmitted || ((e.ended = !0), S.nextTick(jbt, e, r)); + } + function jbt(r, e) { + if ( + (Qr("endReadableNT", r.endEmitted, r.length), + !r.endEmitted && + r.length === 0 && + ((r.endEmitted = !0), + (e.readable = !1), + e.emit("end"), + r.autoDestroy)) + ) { + var t = e._writableState; + (!t || (t.autoDestroy && t.finished)) && e.destroy(); + } + } + typeof Symbol == "function" && + (Tn.from = function (r, e) { + return fq === void 0 && (fq = hce()), fq(Tn, r, e); + }); + function xce(r, e) { + for (var t = 0, n = r.length; t < n; t++) if (r[t] === e) return t; + return -1; + } + }); + var dI = N((QHr, Cce) => { + "use strict"; + _(); + x(); + Cce.exports = Jh; + var uI = By().codes, + Kbt = uI.ERR_METHOD_NOT_IMPLEMENTED, + Vbt = uI.ERR_MULTIPLE_CALLBACK, + Gbt = uI.ERR_TRANSFORM_ALREADY_TRANSFORMING, + Ybt = uI.ERR_TRANSFORM_WITH_LENGTH_0, + lI = wm(); + qr()(Jh, lI); + function $bt(r, e) { + var t = this._transformState; + t.transforming = !1; + var n = t.writecb; + if (n === null) return this.emit("error", new Vbt()); + (t.writechunk = null), + (t.writecb = null), + e != null && this.push(e), + n(r); + var a = this._readableState; + (a.reading = !1), + (a.needReadable || a.length < a.highWaterMark) && + this._read(a.highWaterMark); + } + function Jh(r) { + if (!(this instanceof Jh)) return new Jh(r); + lI.call(this, r), + (this._transformState = { + afterTransform: $bt.bind(this), + needTransform: !1, + transforming: !1, + writecb: null, + writechunk: null, + writeencoding: null, + }), + (this._readableState.needReadable = !0), + (this._readableState.sync = !1), + r && + (typeof r.transform == "function" && (this._transform = r.transform), + typeof r.flush == "function" && (this._flush = r.flush)), + this.on("prefinish", Jbt); + } + function Jbt() { + var r = this; + typeof this._flush == "function" && !this._readableState.destroyed + ? this._flush(function (e, t) { + Ece(r, e, t); + }) + : Ece(this, null, null); + } + Jh.prototype.push = function (r, e) { + return ( + (this._transformState.needTransform = !1), + lI.prototype.push.call(this, r, e) + ); + }; + Jh.prototype._transform = function (r, e, t) { + t(new Kbt("_transform()")); + }; + Jh.prototype._write = function (r, e, t) { + var n = this._transformState; + if ( + ((n.writecb = t), + (n.writechunk = r), + (n.writeencoding = e), + !n.transforming) + ) { + var a = this._readableState; + (n.needTransform || a.needReadable || a.length < a.highWaterMark) && + this._read(a.highWaterMark); + } + }; + Jh.prototype._read = function (r) { + var e = this._transformState; + e.writechunk !== null && !e.transforming + ? ((e.transforming = !0), + this._transform(e.writechunk, e.writeencoding, e.afterTransform)) + : (e.needTransform = !0); + }; + Jh.prototype._destroy = function (r, e) { + lI.prototype._destroy.call(this, r, function (t) { + e(t); + }); + }; + function Ece(r, e, t) { + if (e) return r.emit("error", e); + if ((t != null && r.push(t), r._writableState.length)) throw new Ybt(); + if (r._transformState.transforming) throw new Gbt(); + return r.push(null); + } + }); + var _q = N((tzr, Ace) => { + "use strict"; + _(); + x(); + Ace.exports = nT; + var Ice = dI(); + qr()(nT, Ice); + function nT(r) { + if (!(this instanceof nT)) return new nT(r); + Ice.call(this, r); + } + nT.prototype._transform = function (r, e, t) { + t(null, r); + }; + }); + var Tq = N((azr, Pce) => { + "use strict"; + _(); + x(); + var xq; + function Zbt(r) { + var e = !1; + return function () { + e || ((e = !0), r.apply(void 0, arguments)); + }; + } + var Mce = By().codes, + Qbt = Mce.ERR_MISSING_ARGS, + Xbt = Mce.ERR_STREAM_DESTROYED; + function kce(r) { + if (r) throw r; + } + function e1t(r) { + return r.setHeader && typeof r.abort == "function"; + } + function t1t(r, e, t, n) { + n = Zbt(n); + var a = !1; + r.on("close", function () { + a = !0; + }), + xq === void 0 && (xq = Xx()), + xq(r, { readable: e, writable: t }, function (s) { + if (s) return n(s); + (a = !0), n(); + }); + var i = !1; + return function (s) { + if (!a && !i) { + if (((i = !0), e1t(r))) return r.abort(); + if (typeof r.destroy == "function") return r.destroy(); + n(s || new Xbt("pipe")); + } + }; + } + function Sce(r) { + r(); + } + function r1t(r, e) { + return r.pipe(e); + } + function n1t(r) { + return !r.length || typeof r[r.length - 1] != "function" ? kce : r.pop(); + } + function a1t() { + for (var r = arguments.length, e = new Array(r), t = 0; t < r; t++) + e[t] = arguments[t]; + var n = n1t(e); + if ((Array.isArray(e[0]) && (e = e[0]), e.length < 2)) + throw new Qbt("streams"); + var a, + i = e.map(function (s, c) { + var l = c < e.length - 1, + d = c > 0; + return t1t(s, l, d, function (m) { + a || (a = m), m && i.forEach(Sce), !l && (i.forEach(Sce), n(a)); + }); + }); + return e.reduce(r1t); + } + Pce.exports = a1t; + }); + var aT = N((gl, Rce) => { + _(); + x(); + gl = Rce.exports = rI(); + gl.Stream = gl; + gl.Readable = gl; + gl.Writable = X4(); + gl.Duplex = wm(); + gl.Transform = dI(); + gl.PassThrough = _q(); + gl.finished = Xx(); + gl.pipeline = Tq(); + }); + var Eq = N((uzr, Nce) => { + "use strict"; + _(); + x(); + var pI = zr().Buffer, + Bce = aT().Transform, + i1t = qr(); + function s1t(r, e) { + if (!pI.isBuffer(r) && typeof r != "string") + throw new TypeError(e + " must be a string or a buffer"); + } + function Em(r) { + Bce.call(this), + (this._block = pI.allocUnsafe(r)), + (this._blockSize = r), + (this._blockOffset = 0), + (this._length = [0, 0, 0, 0]), + (this._finalized = !1); + } + i1t(Em, Bce); + Em.prototype._transform = function (r, e, t) { + var n = null; + try { + this.update(r, e); + } catch (a) { + n = a; + } + t(n); + }; + Em.prototype._flush = function (r) { + var e = null; + try { + this.push(this.digest()); + } catch (t) { + e = t; + } + r(e); + }; + Em.prototype.update = function (r, e) { + if ((s1t(r, "Data"), this._finalized)) + throw new Error("Digest already called"); + pI.isBuffer(r) || (r = pI.from(r, e)); + for ( + var t = this._block, n = 0; + this._blockOffset + r.length - n >= this._blockSize; + + ) { + for (var a = this._blockOffset; a < this._blockSize; ) t[a++] = r[n++]; + this._update(), (this._blockOffset = 0); + } + for (; n < r.length; ) t[this._blockOffset++] = r[n++]; + for (var i = 0, s = r.length * 8; s > 0; ++i) + (this._length[i] += s), + (s = (this._length[i] / 4294967296) | 0), + s > 0 && (this._length[i] -= 4294967296 * s); + return this; + }; + Em.prototype._update = function () { + throw new Error("_update is not implemented"); + }; + Em.prototype.digest = function (r) { + if (this._finalized) throw new Error("Digest already called"); + this._finalized = !0; + var e = this._digest(); + r !== void 0 && (e = e.toString(r)), + this._block.fill(0), + (this._blockOffset = 0); + for (var t = 0; t < 4; ++t) this._length[t] = 0; + return e; + }; + Em.prototype._digest = function () { + throw new Error("_digest is not implemented"); + }; + Nce.exports = Em; + }); + var mI = N((pzr, Lce) => { + "use strict"; + _(); + x(); + var o1t = qr(), + Oce = Eq(), + c1t = zr().Buffer, + u1t = new Array(16); + function hI() { + Oce.call(this, 64), + (this._a = 1732584193), + (this._b = 4023233417), + (this._c = 2562383102), + (this._d = 271733878); + } + o1t(hI, Oce); + hI.prototype._update = function () { + for (var r = u1t, e = 0; e < 16; ++e) + r[e] = this._block.readInt32LE(e * 4); + var t = this._a, + n = this._b, + a = this._c, + i = this._d; + (t = mo(t, n, a, i, r[0], 3614090360, 7)), + (i = mo(i, t, n, a, r[1], 3905402710, 12)), + (a = mo(a, i, t, n, r[2], 606105819, 17)), + (n = mo(n, a, i, t, r[3], 3250441966, 22)), + (t = mo(t, n, a, i, r[4], 4118548399, 7)), + (i = mo(i, t, n, a, r[5], 1200080426, 12)), + (a = mo(a, i, t, n, r[6], 2821735955, 17)), + (n = mo(n, a, i, t, r[7], 4249261313, 22)), + (t = mo(t, n, a, i, r[8], 1770035416, 7)), + (i = mo(i, t, n, a, r[9], 2336552879, 12)), + (a = mo(a, i, t, n, r[10], 4294925233, 17)), + (n = mo(n, a, i, t, r[11], 2304563134, 22)), + (t = mo(t, n, a, i, r[12], 1804603682, 7)), + (i = mo(i, t, n, a, r[13], 4254626195, 12)), + (a = mo(a, i, t, n, r[14], 2792965006, 17)), + (n = mo(n, a, i, t, r[15], 1236535329, 22)), + (t = yo(t, n, a, i, r[1], 4129170786, 5)), + (i = yo(i, t, n, a, r[6], 3225465664, 9)), + (a = yo(a, i, t, n, r[11], 643717713, 14)), + (n = yo(n, a, i, t, r[0], 3921069994, 20)), + (t = yo(t, n, a, i, r[5], 3593408605, 5)), + (i = yo(i, t, n, a, r[10], 38016083, 9)), + (a = yo(a, i, t, n, r[15], 3634488961, 14)), + (n = yo(n, a, i, t, r[4], 3889429448, 20)), + (t = yo(t, n, a, i, r[9], 568446438, 5)), + (i = yo(i, t, n, a, r[14], 3275163606, 9)), + (a = yo(a, i, t, n, r[3], 4107603335, 14)), + (n = yo(n, a, i, t, r[8], 1163531501, 20)), + (t = yo(t, n, a, i, r[13], 2850285829, 5)), + (i = yo(i, t, n, a, r[2], 4243563512, 9)), + (a = yo(a, i, t, n, r[7], 1735328473, 14)), + (n = yo(n, a, i, t, r[12], 2368359562, 20)), + (t = go(t, n, a, i, r[5], 4294588738, 4)), + (i = go(i, t, n, a, r[8], 2272392833, 11)), + (a = go(a, i, t, n, r[11], 1839030562, 16)), + (n = go(n, a, i, t, r[14], 4259657740, 23)), + (t = go(t, n, a, i, r[1], 2763975236, 4)), + (i = go(i, t, n, a, r[4], 1272893353, 11)), + (a = go(a, i, t, n, r[7], 4139469664, 16)), + (n = go(n, a, i, t, r[10], 3200236656, 23)), + (t = go(t, n, a, i, r[13], 681279174, 4)), + (i = go(i, t, n, a, r[0], 3936430074, 11)), + (a = go(a, i, t, n, r[3], 3572445317, 16)), + (n = go(n, a, i, t, r[6], 76029189, 23)), + (t = go(t, n, a, i, r[9], 3654602809, 4)), + (i = go(i, t, n, a, r[12], 3873151461, 11)), + (a = go(a, i, t, n, r[15], 530742520, 16)), + (n = go(n, a, i, t, r[2], 3299628645, 23)), + (t = bo(t, n, a, i, r[0], 4096336452, 6)), + (i = bo(i, t, n, a, r[7], 1126891415, 10)), + (a = bo(a, i, t, n, r[14], 2878612391, 15)), + (n = bo(n, a, i, t, r[5], 4237533241, 21)), + (t = bo(t, n, a, i, r[12], 1700485571, 6)), + (i = bo(i, t, n, a, r[3], 2399980690, 10)), + (a = bo(a, i, t, n, r[10], 4293915773, 15)), + (n = bo(n, a, i, t, r[1], 2240044497, 21)), + (t = bo(t, n, a, i, r[8], 1873313359, 6)), + (i = bo(i, t, n, a, r[15], 4264355552, 10)), + (a = bo(a, i, t, n, r[6], 2734768916, 15)), + (n = bo(n, a, i, t, r[13], 1309151649, 21)), + (t = bo(t, n, a, i, r[4], 4149444226, 6)), + (i = bo(i, t, n, a, r[11], 3174756917, 10)), + (a = bo(a, i, t, n, r[2], 718787259, 15)), + (n = bo(n, a, i, t, r[9], 3951481745, 21)), + (this._a = (this._a + t) | 0), + (this._b = (this._b + n) | 0), + (this._c = (this._c + a) | 0), + (this._d = (this._d + i) | 0); + }; + hI.prototype._digest = function () { + (this._block[this._blockOffset++] = 128), + this._blockOffset > 56 && + (this._block.fill(0, this._blockOffset, 64), + this._update(), + (this._blockOffset = 0)), + this._block.fill(0, this._blockOffset, 56), + this._block.writeUInt32LE(this._length[0], 56), + this._block.writeUInt32LE(this._length[1], 60), + this._update(); + var r = c1t.allocUnsafe(16); + return ( + r.writeInt32LE(this._a, 0), + r.writeInt32LE(this._b, 4), + r.writeInt32LE(this._c, 8), + r.writeInt32LE(this._d, 12), + r + ); + }; + function fI(r, e) { + return (r << e) | (r >>> (32 - e)); + } + function mo(r, e, t, n, a, i, s) { + return (fI((r + ((e & t) | (~e & n)) + a + i) | 0, s) + e) | 0; + } + function yo(r, e, t, n, a, i, s) { + return (fI((r + ((e & n) | (t & ~n)) + a + i) | 0, s) + e) | 0; + } + function go(r, e, t, n, a, i, s) { + return (fI((r + (e ^ t ^ n) + a + i) | 0, s) + e) | 0; + } + function bo(r, e, t, n, a, i, s) { + return (fI((r + (t ^ (e | ~n)) + a + i) | 0, s) + e) | 0; + } + Lce.exports = hI; + }); + var gI = N((mzr, zce) => { + "use strict"; + _(); + x(); + var Cq = Hi().Buffer, + l1t = qr(), + Hce = Eq(), + d1t = new Array(16), + iT = [ + 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 7, 4, 13, 1, 10, + 6, 15, 3, 12, 0, 9, 5, 2, 14, 11, 8, 3, 10, 14, 4, 9, 15, 8, 1, 2, 7, 0, + 6, 13, 11, 5, 12, 1, 9, 11, 10, 0, 8, 12, 4, 13, 3, 7, 15, 14, 5, 6, 2, + 4, 0, 5, 9, 7, 12, 2, 10, 14, 1, 3, 8, 11, 6, 15, 13, + ], + sT = [ + 5, 14, 7, 0, 9, 2, 11, 4, 13, 6, 15, 8, 1, 10, 3, 12, 6, 11, 3, 7, 0, + 13, 5, 10, 14, 15, 8, 12, 4, 9, 1, 2, 15, 5, 1, 3, 7, 14, 6, 9, 11, 8, + 12, 2, 10, 0, 4, 13, 8, 6, 4, 1, 3, 11, 15, 0, 5, 12, 2, 13, 9, 7, 10, + 14, 12, 15, 10, 4, 1, 5, 8, 7, 6, 2, 13, 14, 0, 3, 9, 11, + ], + oT = [ + 11, 14, 15, 12, 5, 8, 7, 9, 11, 13, 14, 15, 6, 7, 9, 8, 7, 6, 8, 13, 11, + 9, 7, 15, 7, 12, 15, 9, 11, 7, 13, 12, 11, 13, 6, 7, 14, 9, 13, 15, 14, + 8, 13, 6, 5, 12, 7, 5, 11, 12, 14, 15, 14, 15, 9, 8, 9, 14, 5, 6, 8, 6, + 5, 12, 9, 15, 5, 11, 6, 8, 13, 12, 5, 12, 13, 14, 11, 8, 5, 6, + ], + cT = [ + 8, 9, 9, 11, 13, 15, 15, 5, 7, 7, 8, 11, 14, 14, 12, 6, 9, 13, 15, 7, + 12, 8, 9, 11, 7, 7, 12, 7, 6, 15, 13, 11, 9, 7, 15, 11, 8, 6, 6, 14, 12, + 13, 5, 14, 13, 13, 7, 5, 15, 5, 8, 11, 14, 14, 6, 14, 6, 9, 12, 9, 12, + 5, 15, 8, 8, 5, 12, 9, 12, 5, 14, 6, 8, 13, 6, 5, 15, 13, 11, 11, + ], + uT = [0, 1518500249, 1859775393, 2400959708, 2840853838], + lT = [1352829926, 1548603684, 1836072691, 2053994217, 0]; + function yI() { + Hce.call(this, 64), + (this._a = 1732584193), + (this._b = 4023233417), + (this._c = 2562383102), + (this._d = 271733878), + (this._e = 3285377520); + } + l1t(yI, Hce); + yI.prototype._update = function () { + for (var r = d1t, e = 0; e < 16; ++e) + r[e] = this._block.readInt32LE(e * 4); + for ( + var t = this._a | 0, + n = this._b | 0, + a = this._c | 0, + i = this._d | 0, + s = this._e | 0, + c = this._a | 0, + l = this._b | 0, + d = this._c | 0, + m = this._d | 0, + w = this._e | 0, + C = 0; + C < 80; + C += 1 + ) { + var I, k; + C < 16 + ? ((I = Dce(t, n, a, i, s, r[iT[C]], uT[0], oT[C])), + (k = Uce(c, l, d, m, w, r[sT[C]], lT[0], cT[C]))) + : C < 32 + ? ((I = qce(t, n, a, i, s, r[iT[C]], uT[1], oT[C])), + (k = Wce(c, l, d, m, w, r[sT[C]], lT[1], cT[C]))) + : C < 48 + ? ((I = Fce(t, n, a, i, s, r[iT[C]], uT[2], oT[C])), + (k = Fce(c, l, d, m, w, r[sT[C]], lT[2], cT[C]))) + : C < 64 + ? ((I = Wce(t, n, a, i, s, r[iT[C]], uT[3], oT[C])), + (k = qce(c, l, d, m, w, r[sT[C]], lT[3], cT[C]))) + : ((I = Uce(t, n, a, i, s, r[iT[C]], uT[4], oT[C])), + (k = Dce(c, l, d, m, w, r[sT[C]], lT[4], cT[C]))), + (t = s), + (s = i), + (i = Dy(a, 10)), + (a = n), + (n = I), + (c = w), + (w = m), + (m = Dy(d, 10)), + (d = l), + (l = k); + } + var O = (this._b + a + m) | 0; + (this._b = (this._c + i + w) | 0), + (this._c = (this._d + s + c) | 0), + (this._d = (this._e + t + l) | 0), + (this._e = (this._a + n + d) | 0), + (this._a = O); + }; + yI.prototype._digest = function () { + (this._block[this._blockOffset++] = 128), + this._blockOffset > 56 && + (this._block.fill(0, this._blockOffset, 64), + this._update(), + (this._blockOffset = 0)), + this._block.fill(0, this._blockOffset, 56), + this._block.writeUInt32LE(this._length[0], 56), + this._block.writeUInt32LE(this._length[1], 60), + this._update(); + var r = Cq.alloc ? Cq.alloc(20) : new Cq(20); + return ( + r.writeInt32LE(this._a, 0), + r.writeInt32LE(this._b, 4), + r.writeInt32LE(this._c, 8), + r.writeInt32LE(this._d, 12), + r.writeInt32LE(this._e, 16), + r + ); + }; + function Dy(r, e) { + return (r << e) | (r >>> (32 - e)); + } + function Dce(r, e, t, n, a, i, s, c) { + return (Dy((r + (e ^ t ^ n) + i + s) | 0, c) + a) | 0; + } + function qce(r, e, t, n, a, i, s, c) { + return (Dy((r + ((e & t) | (~e & n)) + i + s) | 0, c) + a) | 0; + } + function Fce(r, e, t, n, a, i, s, c) { + return (Dy((r + ((e | ~t) ^ n) + i + s) | 0, c) + a) | 0; + } + function Wce(r, e, t, n, a, i, s, c) { + return (Dy((r + ((e & n) | (t & ~n)) + i + s) | 0, c) + a) | 0; + } + function Uce(r, e, t, n, a, i, s, c) { + return (Dy((r + (e ^ (t | ~n)) + i + s) | 0, c) + a) | 0; + } + zce.exports = yI; + }); + var qy = N((bzr, Kce) => { + _(); + x(); + var jce = zr().Buffer; + function bI(r, e) { + (this._block = jce.alloc(r)), + (this._finalSize = e), + (this._blockSize = r), + (this._len = 0); + } + bI.prototype.update = function (r, e) { + typeof r == "string" && ((e = e || "utf8"), (r = jce.from(r, e))); + for ( + var t = this._block, + n = this._blockSize, + a = r.length, + i = this._len, + s = 0; + s < a; + + ) { + for (var c = i % n, l = Math.min(a - s, n - c), d = 0; d < l; d++) + t[c + d] = r[s + d]; + (i += l), (s += l), i % n === 0 && this._update(t); + } + return (this._len += a), this; + }; + bI.prototype.digest = function (r) { + var e = this._len % this._blockSize; + (this._block[e] = 128), + this._block.fill(0, e + 1), + e >= this._finalSize && + (this._update(this._block), this._block.fill(0)); + var t = this._len * 8; + if (t <= 4294967295) this._block.writeUInt32BE(t, this._blockSize - 4); + else { + var n = (t & 4294967295) >>> 0, + a = (t - n) / 4294967296; + this._block.writeUInt32BE(a, this._blockSize - 8), + this._block.writeUInt32BE(n, this._blockSize - 4); + } + this._update(this._block); + var i = this._hash(); + return r ? i.toString(r) : i; + }; + bI.prototype._update = function () { + throw new Error("_update must be implemented by subclass"); + }; + Kce.exports = bI; + }); + var Yce = N((_zr, Gce) => { + _(); + x(); + var p1t = qr(), + Vce = qy(), + h1t = zr().Buffer, + f1t = [1518500249, 1859775393, -1894007588, -899497514], + m1t = new Array(80); + function dT() { + this.init(), (this._w = m1t), Vce.call(this, 64, 56); + } + p1t(dT, Vce); + dT.prototype.init = function () { + return ( + (this._a = 1732584193), + (this._b = 4023233417), + (this._c = 2562383102), + (this._d = 271733878), + (this._e = 3285377520), + this + ); + }; + function y1t(r) { + return (r << 5) | (r >>> 27); + } + function g1t(r) { + return (r << 30) | (r >>> 2); + } + function b1t(r, e, t, n) { + return r === 0 + ? (e & t) | (~e & n) + : r === 2 + ? (e & t) | (e & n) | (t & n) + : e ^ t ^ n; + } + dT.prototype._update = function (r) { + for ( + var e = this._w, + t = this._a | 0, + n = this._b | 0, + a = this._c | 0, + i = this._d | 0, + s = this._e | 0, + c = 0; + c < 16; + ++c + ) + e[c] = r.readInt32BE(c * 4); + for (; c < 80; ++c) e[c] = e[c - 3] ^ e[c - 8] ^ e[c - 14] ^ e[c - 16]; + for (var l = 0; l < 80; ++l) { + var d = ~~(l / 20), + m = (y1t(t) + b1t(d, n, a, i) + s + e[l] + f1t[d]) | 0; + (s = i), (i = a), (a = g1t(n)), (n = t), (t = m); + } + (this._a = (t + this._a) | 0), + (this._b = (n + this._b) | 0), + (this._c = (a + this._c) | 0), + (this._d = (i + this._d) | 0), + (this._e = (s + this._e) | 0); + }; + dT.prototype._hash = function () { + var r = h1t.allocUnsafe(20); + return ( + r.writeInt32BE(this._a | 0, 0), + r.writeInt32BE(this._b | 0, 4), + r.writeInt32BE(this._c | 0, 8), + r.writeInt32BE(this._d | 0, 12), + r.writeInt32BE(this._e | 0, 16), + r + ); + }; + Gce.exports = dT; + }); + var Zce = N((Ezr, Jce) => { + _(); + x(); + var v1t = qr(), + $ce = qy(), + w1t = zr().Buffer, + _1t = [1518500249, 1859775393, -1894007588, -899497514], + x1t = new Array(80); + function pT() { + this.init(), (this._w = x1t), $ce.call(this, 64, 56); + } + v1t(pT, $ce); + pT.prototype.init = function () { + return ( + (this._a = 1732584193), + (this._b = 4023233417), + (this._c = 2562383102), + (this._d = 271733878), + (this._e = 3285377520), + this + ); + }; + function T1t(r) { + return (r << 1) | (r >>> 31); + } + function E1t(r) { + return (r << 5) | (r >>> 27); + } + function C1t(r) { + return (r << 30) | (r >>> 2); + } + function I1t(r, e, t, n) { + return r === 0 + ? (e & t) | (~e & n) + : r === 2 + ? (e & t) | (e & n) | (t & n) + : e ^ t ^ n; + } + pT.prototype._update = function (r) { + for ( + var e = this._w, + t = this._a | 0, + n = this._b | 0, + a = this._c | 0, + i = this._d | 0, + s = this._e | 0, + c = 0; + c < 16; + ++c + ) + e[c] = r.readInt32BE(c * 4); + for (; c < 80; ++c) + e[c] = T1t(e[c - 3] ^ e[c - 8] ^ e[c - 14] ^ e[c - 16]); + for (var l = 0; l < 80; ++l) { + var d = ~~(l / 20), + m = (E1t(t) + I1t(d, n, a, i) + s + e[l] + _1t[d]) | 0; + (s = i), (i = a), (a = C1t(n)), (n = t), (t = m); + } + (this._a = (t + this._a) | 0), + (this._b = (n + this._b) | 0), + (this._c = (a + this._c) | 0), + (this._d = (i + this._d) | 0), + (this._e = (s + this._e) | 0); + }; + pT.prototype._hash = function () { + var r = w1t.allocUnsafe(20); + return ( + r.writeInt32BE(this._a | 0, 0), + r.writeInt32BE(this._b | 0, 4), + r.writeInt32BE(this._c | 0, 8), + r.writeInt32BE(this._d | 0, 12), + r.writeInt32BE(this._e | 0, 16), + r + ); + }; + Jce.exports = pT; + }); + var Iq = N((Azr, Xce) => { + _(); + x(); + var A1t = qr(), + Qce = qy(), + k1t = zr().Buffer, + S1t = [ + 1116352408, 1899447441, 3049323471, 3921009573, 961987163, 1508970993, + 2453635748, 2870763221, 3624381080, 310598401, 607225278, 1426881987, + 1925078388, 2162078206, 2614888103, 3248222580, 3835390401, 4022224774, + 264347078, 604807628, 770255983, 1249150122, 1555081692, 1996064986, + 2554220882, 2821834349, 2952996808, 3210313671, 3336571891, 3584528711, + 113926993, 338241895, 666307205, 773529912, 1294757372, 1396182291, + 1695183700, 1986661051, 2177026350, 2456956037, 2730485921, 2820302411, + 3259730800, 3345764771, 3516065817, 3600352804, 4094571909, 275423344, + 430227734, 506948616, 659060556, 883997877, 958139571, 1322822218, + 1537002063, 1747873779, 1955562222, 2024104815, 2227730452, 2361852424, + 2428436474, 2756734187, 3204031479, 3329325298, + ], + M1t = new Array(64); + function hT() { + this.init(), (this._w = M1t), Qce.call(this, 64, 56); + } + A1t(hT, Qce); + hT.prototype.init = function () { + return ( + (this._a = 1779033703), + (this._b = 3144134277), + (this._c = 1013904242), + (this._d = 2773480762), + (this._e = 1359893119), + (this._f = 2600822924), + (this._g = 528734635), + (this._h = 1541459225), + this + ); + }; + function P1t(r, e, t) { + return t ^ (r & (e ^ t)); + } + function R1t(r, e, t) { + return (r & e) | (t & (r | e)); + } + function B1t(r) { + return ( + ((r >>> 2) | (r << 30)) ^ + ((r >>> 13) | (r << 19)) ^ + ((r >>> 22) | (r << 10)) + ); + } + function N1t(r) { + return ( + ((r >>> 6) | (r << 26)) ^ + ((r >>> 11) | (r << 21)) ^ + ((r >>> 25) | (r << 7)) + ); + } + function O1t(r) { + return ((r >>> 7) | (r << 25)) ^ ((r >>> 18) | (r << 14)) ^ (r >>> 3); + } + function L1t(r) { + return ((r >>> 17) | (r << 15)) ^ ((r >>> 19) | (r << 13)) ^ (r >>> 10); + } + hT.prototype._update = function (r) { + for ( + var e = this._w, + t = this._a | 0, + n = this._b | 0, + a = this._c | 0, + i = this._d | 0, + s = this._e | 0, + c = this._f | 0, + l = this._g | 0, + d = this._h | 0, + m = 0; + m < 16; + ++m + ) + e[m] = r.readInt32BE(m * 4); + for (; m < 64; ++m) + e[m] = (L1t(e[m - 2]) + e[m - 7] + O1t(e[m - 15]) + e[m - 16]) | 0; + for (var w = 0; w < 64; ++w) { + var C = (d + N1t(s) + P1t(s, c, l) + S1t[w] + e[w]) | 0, + I = (B1t(t) + R1t(t, n, a)) | 0; + (d = l), + (l = c), + (c = s), + (s = (i + C) | 0), + (i = a), + (a = n), + (n = t), + (t = (C + I) | 0); + } + (this._a = (t + this._a) | 0), + (this._b = (n + this._b) | 0), + (this._c = (a + this._c) | 0), + (this._d = (i + this._d) | 0), + (this._e = (s + this._e) | 0), + (this._f = (c + this._f) | 0), + (this._g = (l + this._g) | 0), + (this._h = (d + this._h) | 0); + }; + hT.prototype._hash = function () { + var r = k1t.allocUnsafe(32); + return ( + r.writeInt32BE(this._a, 0), + r.writeInt32BE(this._b, 4), + r.writeInt32BE(this._c, 8), + r.writeInt32BE(this._d, 12), + r.writeInt32BE(this._e, 16), + r.writeInt32BE(this._f, 20), + r.writeInt32BE(this._g, 24), + r.writeInt32BE(this._h, 28), + r + ); + }; + Xce.exports = hT; + }); + var tue = N((Mzr, eue) => { + _(); + x(); + var D1t = qr(), + q1t = Iq(), + F1t = qy(), + W1t = zr().Buffer, + U1t = new Array(64); + function vI() { + this.init(), (this._w = U1t), F1t.call(this, 64, 56); + } + D1t(vI, q1t); + vI.prototype.init = function () { + return ( + (this._a = 3238371032), + (this._b = 914150663), + (this._c = 812702999), + (this._d = 4144912697), + (this._e = 4290775857), + (this._f = 1750603025), + (this._g = 1694076839), + (this._h = 3204075428), + this + ); + }; + vI.prototype._hash = function () { + var r = W1t.allocUnsafe(28); + return ( + r.writeInt32BE(this._a, 0), + r.writeInt32BE(this._b, 4), + r.writeInt32BE(this._c, 8), + r.writeInt32BE(this._d, 12), + r.writeInt32BE(this._e, 16), + r.writeInt32BE(this._f, 20), + r.writeInt32BE(this._g, 24), + r + ); + }; + eue.exports = vI; + }); + var Aq = N((Bzr, cue) => { + _(); + x(); + var H1t = qr(), + oue = qy(), + z1t = zr().Buffer, + rue = [ + 1116352408, 3609767458, 1899447441, 602891725, 3049323471, 3964484399, + 3921009573, 2173295548, 961987163, 4081628472, 1508970993, 3053834265, + 2453635748, 2937671579, 2870763221, 3664609560, 3624381080, 2734883394, + 310598401, 1164996542, 607225278, 1323610764, 1426881987, 3590304994, + 1925078388, 4068182383, 2162078206, 991336113, 2614888103, 633803317, + 3248222580, 3479774868, 3835390401, 2666613458, 4022224774, 944711139, + 264347078, 2341262773, 604807628, 2007800933, 770255983, 1495990901, + 1249150122, 1856431235, 1555081692, 3175218132, 1996064986, 2198950837, + 2554220882, 3999719339, 2821834349, 766784016, 2952996808, 2566594879, + 3210313671, 3203337956, 3336571891, 1034457026, 3584528711, 2466948901, + 113926993, 3758326383, 338241895, 168717936, 666307205, 1188179964, + 773529912, 1546045734, 1294757372, 1522805485, 1396182291, 2643833823, + 1695183700, 2343527390, 1986661051, 1014477480, 2177026350, 1206759142, + 2456956037, 344077627, 2730485921, 1290863460, 2820302411, 3158454273, + 3259730800, 3505952657, 3345764771, 106217008, 3516065817, 3606008344, + 3600352804, 1432725776, 4094571909, 1467031594, 275423344, 851169720, + 430227734, 3100823752, 506948616, 1363258195, 659060556, 3750685593, + 883997877, 3785050280, 958139571, 3318307427, 1322822218, 3812723403, + 1537002063, 2003034995, 1747873779, 3602036899, 1955562222, 1575990012, + 2024104815, 1125592928, 2227730452, 2716904306, 2361852424, 442776044, + 2428436474, 593698344, 2756734187, 3733110249, 3204031479, 2999351573, + 3329325298, 3815920427, 3391569614, 3928383900, 3515267271, 566280711, + 3940187606, 3454069534, 4118630271, 4000239992, 116418474, 1914138554, + 174292421, 2731055270, 289380356, 3203993006, 460393269, 320620315, + 685471733, 587496836, 852142971, 1086792851, 1017036298, 365543100, + 1126000580, 2618297676, 1288033470, 3409855158, 1501505948, 4234509866, + 1607167915, 987167468, 1816402316, 1246189591, + ], + j1t = new Array(160); + function fT() { + this.init(), (this._w = j1t), oue.call(this, 128, 112); + } + H1t(fT, oue); + fT.prototype.init = function () { + return ( + (this._ah = 1779033703), + (this._bh = 3144134277), + (this._ch = 1013904242), + (this._dh = 2773480762), + (this._eh = 1359893119), + (this._fh = 2600822924), + (this._gh = 528734635), + (this._hh = 1541459225), + (this._al = 4089235720), + (this._bl = 2227873595), + (this._cl = 4271175723), + (this._dl = 1595750129), + (this._el = 2917565137), + (this._fl = 725511199), + (this._gl = 4215389547), + (this._hl = 327033209), + this + ); + }; + function nue(r, e, t) { + return t ^ (r & (e ^ t)); + } + function aue(r, e, t) { + return (r & e) | (t & (r | e)); + } + function iue(r, e) { + return ( + ((r >>> 28) | (e << 4)) ^ + ((e >>> 2) | (r << 30)) ^ + ((e >>> 7) | (r << 25)) + ); + } + function sue(r, e) { + return ( + ((r >>> 14) | (e << 18)) ^ + ((r >>> 18) | (e << 14)) ^ + ((e >>> 9) | (r << 23)) + ); + } + function K1t(r, e) { + return ((r >>> 1) | (e << 31)) ^ ((r >>> 8) | (e << 24)) ^ (r >>> 7); + } + function V1t(r, e) { + return ( + ((r >>> 1) | (e << 31)) ^ + ((r >>> 8) | (e << 24)) ^ + ((r >>> 7) | (e << 25)) + ); + } + function G1t(r, e) { + return ((r >>> 19) | (e << 13)) ^ ((e >>> 29) | (r << 3)) ^ (r >>> 6); + } + function Y1t(r, e) { + return ( + ((r >>> 19) | (e << 13)) ^ + ((e >>> 29) | (r << 3)) ^ + ((r >>> 6) | (e << 26)) + ); + } + function ks(r, e) { + return r >>> 0 < e >>> 0 ? 1 : 0; + } + fT.prototype._update = function (r) { + for ( + var e = this._w, + t = this._ah | 0, + n = this._bh | 0, + a = this._ch | 0, + i = this._dh | 0, + s = this._eh | 0, + c = this._fh | 0, + l = this._gh | 0, + d = this._hh | 0, + m = this._al | 0, + w = this._bl | 0, + C = this._cl | 0, + I = this._dl | 0, + k = this._el | 0, + O = this._fl | 0, + D = this._gl | 0, + W = this._hl | 0, + H = 0; + H < 32; + H += 2 + ) + (e[H] = r.readInt32BE(H * 4)), (e[H + 1] = r.readInt32BE(H * 4 + 4)); + for (; H < 160; H += 2) { + var j = e[H - 30], + V = e[H - 15 * 2 + 1], + te = K1t(j, V), + $ = V1t(V, j); + (j = e[H - 2 * 2]), (V = e[H - 2 * 2 + 1]); + var ae = G1t(j, V), + Y = Y1t(V, j), + K = e[H - 7 * 2], + g = e[H - 7 * 2 + 1], + o = e[H - 16 * 2], + p = e[H - 16 * 2 + 1], + y = ($ + g) | 0, + h = (te + K + ks(y, $)) | 0; + (y = (y + Y) | 0), + (h = (h + ae + ks(y, Y)) | 0), + (y = (y + p) | 0), + (h = (h + o + ks(y, p)) | 0), + (e[H] = h), + (e[H + 1] = y); + } + for (var b = 0; b < 160; b += 2) { + (h = e[b]), (y = e[b + 1]); + var T = aue(t, n, a), + E = aue(m, w, C), + f = iue(t, m), + u = iue(m, t), + v = sue(s, k), + R = sue(k, s), + A = rue[b], + L = rue[b + 1], + G = nue(s, c, l), + U = nue(k, O, D), + Z = (W + R) | 0, + de = (d + v + ks(Z, W)) | 0; + (Z = (Z + U) | 0), + (de = (de + G + ks(Z, U)) | 0), + (Z = (Z + L) | 0), + (de = (de + A + ks(Z, L)) | 0), + (Z = (Z + y) | 0), + (de = (de + h + ks(Z, y)) | 0); + var ne = (u + E) | 0, + pe = (f + T + ks(ne, u)) | 0; + (d = l), + (W = D), + (l = c), + (D = O), + (c = s), + (O = k), + (k = (I + Z) | 0), + (s = (i + de + ks(k, I)) | 0), + (i = a), + (I = C), + (a = n), + (C = w), + (n = t), + (w = m), + (m = (Z + ne) | 0), + (t = (de + pe + ks(m, Z)) | 0); + } + (this._al = (this._al + m) | 0), + (this._bl = (this._bl + w) | 0), + (this._cl = (this._cl + C) | 0), + (this._dl = (this._dl + I) | 0), + (this._el = (this._el + k) | 0), + (this._fl = (this._fl + O) | 0), + (this._gl = (this._gl + D) | 0), + (this._hl = (this._hl + W) | 0), + (this._ah = (this._ah + t + ks(this._al, m)) | 0), + (this._bh = (this._bh + n + ks(this._bl, w)) | 0), + (this._ch = (this._ch + a + ks(this._cl, C)) | 0), + (this._dh = (this._dh + i + ks(this._dl, I)) | 0), + (this._eh = (this._eh + s + ks(this._el, k)) | 0), + (this._fh = (this._fh + c + ks(this._fl, O)) | 0), + (this._gh = (this._gh + l + ks(this._gl, D)) | 0), + (this._hh = (this._hh + d + ks(this._hl, W)) | 0); + }; + fT.prototype._hash = function () { + var r = z1t.allocUnsafe(64); + function e(t, n, a) { + r.writeInt32BE(t, a), r.writeInt32BE(n, a + 4); + } + return ( + e(this._ah, this._al, 0), + e(this._bh, this._bl, 8), + e(this._ch, this._cl, 16), + e(this._dh, this._dl, 24), + e(this._eh, this._el, 32), + e(this._fh, this._fl, 40), + e(this._gh, this._gl, 48), + e(this._hh, this._hl, 56), + r + ); + }; + cue.exports = fT; + }); + var lue = N((Lzr, uue) => { + _(); + x(); + var $1t = qr(), + J1t = Aq(), + Z1t = qy(), + Q1t = zr().Buffer, + X1t = new Array(160); + function wI() { + this.init(), (this._w = X1t), Z1t.call(this, 128, 112); + } + $1t(wI, J1t); + wI.prototype.init = function () { + return ( + (this._ah = 3418070365), + (this._bh = 1654270250), + (this._ch = 2438529370), + (this._dh = 355462360), + (this._eh = 1731405415), + (this._fh = 2394180231), + (this._gh = 3675008525), + (this._hh = 1203062813), + (this._al = 3238371032), + (this._bl = 914150663), + (this._cl = 812702999), + (this._dl = 4144912697), + (this._el = 4290775857), + (this._fl = 1750603025), + (this._gl = 1694076839), + (this._hl = 3204075428), + this + ); + }; + wI.prototype._hash = function () { + var r = Q1t.allocUnsafe(48); + function e(t, n, a) { + r.writeInt32BE(t, a), r.writeInt32BE(n, a + 4); + } + return ( + e(this._ah, this._al, 0), + e(this._bh, this._bl, 8), + e(this._ch, this._cl, 16), + e(this._dh, this._dl, 24), + e(this._eh, this._el, 32), + e(this._fh, this._fl, 40), + r + ); + }; + uue.exports = wI; + }); + var mT = N((Zh, due) => { + _(); + x(); + var Zh = (due.exports = function (e) { + e = e.toLowerCase(); + var t = Zh[e]; + if (!t) + throw new Error(e + " is not supported (we accept pull requests)"); + return new t(); + }); + Zh.sha = Yce(); + Zh.sha1 = Zce(); + Zh.sha224 = tue(); + Zh.sha256 = Iq(); + Zh.sha384 = lue(); + Zh.sha512 = Aq(); + }); + var hue = N((Uzr, pue) => { + _(); + x(); + pue.exports = bl; + var kq = gm().EventEmitter, + evt = qr(); + evt(bl, kq); + bl.Readable = rI(); + bl.Writable = X4(); + bl.Duplex = wm(); + bl.Transform = dI(); + bl.PassThrough = _q(); + bl.finished = Xx(); + bl.pipeline = Tq(); + bl.Stream = bl; + function bl() { + kq.call(this); + } + bl.prototype.pipe = function (r, e) { + var t = this; + function n(m) { + r.writable && r.write(m) === !1 && t.pause && t.pause(); + } + t.on("data", n); + function a() { + t.readable && t.resume && t.resume(); + } + r.on("drain", a), + !r._isStdio && + (!e || e.end !== !1) && + (t.on("end", s), t.on("close", c)); + var i = !1; + function s() { + i || ((i = !0), r.end()); + } + function c() { + i || ((i = !0), typeof r.destroy == "function" && r.destroy()); + } + function l(m) { + if ((d(), kq.listenerCount(this, "error") === 0)) throw m; + } + t.on("error", l), r.on("error", l); + function d() { + t.removeListener("data", n), + r.removeListener("drain", a), + t.removeListener("end", s), + t.removeListener("close", c), + t.removeListener("error", l), + r.removeListener("error", l), + t.removeListener("end", d), + t.removeListener("close", d), + r.removeListener("close", d); + } + return ( + t.on("end", d), t.on("close", d), r.on("close", d), r.emit("pipe", t), r + ); + }; + }); + var Qh = N((jzr, yue) => { + _(); + x(); + var fue = zr().Buffer, + mue = hue().Transform, + tvt = nI().StringDecoder, + rvt = qr(); + function Ed(r) { + mue.call(this), + (this.hashMode = typeof r == "string"), + this.hashMode + ? (this[r] = this._finalOrDigest) + : (this.final = this._finalOrDigest), + this._final && ((this.__final = this._final), (this._final = null)), + (this._decoder = null), + (this._encoding = null); + } + rvt(Ed, mue); + Ed.prototype.update = function (r, e, t) { + typeof r == "string" && (r = fue.from(r, e)); + var n = this._update(r); + return this.hashMode ? this : (t && (n = this._toString(n, t)), n); + }; + Ed.prototype.setAutoPadding = function () {}; + Ed.prototype.getAuthTag = function () { + throw new Error("trying to get auth tag in unsupported state"); + }; + Ed.prototype.setAuthTag = function () { + throw new Error("trying to set auth tag in unsupported state"); + }; + Ed.prototype.setAAD = function () { + throw new Error("trying to set aad in unsupported state"); + }; + Ed.prototype._transform = function (r, e, t) { + var n; + try { + this.hashMode ? this._update(r) : this.push(this._update(r)); + } catch (a) { + n = a; + } finally { + t(n); + } + }; + Ed.prototype._flush = function (r) { + var e; + try { + this.push(this.__final()); + } catch (t) { + e = t; + } + r(e); + }; + Ed.prototype._finalOrDigest = function (r) { + var e = this.__final() || fue.alloc(0); + return r && (e = this._toString(e, r, !0)), e; + }; + Ed.prototype._toString = function (r, e, t) { + if ( + (this._decoder || ((this._decoder = new tvt(e)), (this._encoding = e)), + this._encoding !== e) + ) + throw new Error("can't switch encodings"); + var n = this._decoder.write(r); + return t && (n += this._decoder.end()), n; + }; + yue.exports = Ed; + }); + var W1 = N((Gzr, bue) => { + "use strict"; + _(); + x(); + var nvt = qr(), + avt = mI(), + ivt = gI(), + svt = mT(), + gue = Qh(); + function _I(r) { + gue.call(this, "digest"), (this._hash = r); + } + nvt(_I, gue); + _I.prototype._update = function (r) { + this._hash.update(r); + }; + _I.prototype._final = function () { + return this._hash.digest(); + }; + bue.exports = function (e) { + return ( + (e = e.toLowerCase()), + e === "md5" + ? new avt() + : e === "rmd160" || e === "ripemd160" + ? new ivt() + : new _I(svt(e)) + ); + }; + }); + var _ue = N((Jzr, wue) => { + "use strict"; + _(); + x(); + var ovt = qr(), + Fy = zr().Buffer, + vue = Qh(), + cvt = Fy.alloc(128), + U1 = 64; + function xI(r, e) { + vue.call(this, "digest"), + typeof e == "string" && (e = Fy.from(e)), + (this._alg = r), + (this._key = e), + e.length > U1 + ? (e = r(e)) + : e.length < U1 && (e = Fy.concat([e, cvt], U1)); + for ( + var t = (this._ipad = Fy.allocUnsafe(U1)), + n = (this._opad = Fy.allocUnsafe(U1)), + a = 0; + a < U1; + a++ + ) + (t[a] = e[a] ^ 54), (n[a] = e[a] ^ 92); + this._hash = [t]; + } + ovt(xI, vue); + xI.prototype._update = function (r) { + this._hash.push(r); + }; + xI.prototype._final = function () { + var r = this._alg(Fy.concat(this._hash)); + return this._alg(Fy.concat([this._opad, r])); + }; + wue.exports = xI; + }); + var Sq = N((Xzr, xue) => { + _(); + x(); + var uvt = mI(); + xue.exports = function (r) { + return new uvt().update(r).digest(); + }; + }); + var Rq = N((rjr, Eue) => { + "use strict"; + _(); + x(); + var lvt = qr(), + dvt = _ue(), + Tue = Qh(), + yT = zr().Buffer, + pvt = Sq(), + Mq = gI(), + Pq = mT(), + hvt = yT.alloc(128); + function gT(r, e) { + Tue.call(this, "digest"), typeof e == "string" && (e = yT.from(e)); + var t = r === "sha512" || r === "sha384" ? 128 : 64; + if (((this._alg = r), (this._key = e), e.length > t)) { + var n = r === "rmd160" ? new Mq() : Pq(r); + e = n.update(e).digest(); + } else e.length < t && (e = yT.concat([e, hvt], t)); + for ( + var a = (this._ipad = yT.allocUnsafe(t)), + i = (this._opad = yT.allocUnsafe(t)), + s = 0; + s < t; + s++ + ) + (a[s] = e[s] ^ 54), (i[s] = e[s] ^ 92); + (this._hash = r === "rmd160" ? new Mq() : Pq(r)), this._hash.update(a); + } + lvt(gT, Tue); + gT.prototype._update = function (r) { + this._hash.update(r); + }; + gT.prototype._final = function () { + var r = this._hash.digest(), + e = this._alg === "rmd160" ? new Mq() : Pq(this._alg); + return e.update(this._opad).update(r).digest(); + }; + Eue.exports = function (e, t) { + return ( + (e = e.toLowerCase()), + e === "rmd160" || e === "ripemd160" + ? new gT("rmd160", t) + : e === "md5" + ? new dvt(pvt, t) + : new gT(e, t) + ); + }; + }); + var Bq = N((ijr, fvt) => { + fvt.exports = { + sha224WithRSAEncryption: { + sign: "rsa", + hash: "sha224", + id: "302d300d06096086480165030402040500041c", + }, + "RSA-SHA224": { + sign: "ecdsa/rsa", + hash: "sha224", + id: "302d300d06096086480165030402040500041c", + }, + sha256WithRSAEncryption: { + sign: "rsa", + hash: "sha256", + id: "3031300d060960864801650304020105000420", + }, + "RSA-SHA256": { + sign: "ecdsa/rsa", + hash: "sha256", + id: "3031300d060960864801650304020105000420", + }, + sha384WithRSAEncryption: { + sign: "rsa", + hash: "sha384", + id: "3041300d060960864801650304020205000430", + }, + "RSA-SHA384": { + sign: "ecdsa/rsa", + hash: "sha384", + id: "3041300d060960864801650304020205000430", + }, + sha512WithRSAEncryption: { + sign: "rsa", + hash: "sha512", + id: "3051300d060960864801650304020305000440", + }, + "RSA-SHA512": { + sign: "ecdsa/rsa", + hash: "sha512", + id: "3051300d060960864801650304020305000440", + }, + "RSA-SHA1": { + sign: "rsa", + hash: "sha1", + id: "3021300906052b0e03021a05000414", + }, + "ecdsa-with-SHA1": { sign: "ecdsa", hash: "sha1", id: "" }, + sha256: { sign: "ecdsa", hash: "sha256", id: "" }, + sha224: { sign: "ecdsa", hash: "sha224", id: "" }, + sha384: { sign: "ecdsa", hash: "sha384", id: "" }, + sha512: { sign: "ecdsa", hash: "sha512", id: "" }, + "DSA-SHA": { sign: "dsa", hash: "sha1", id: "" }, + "DSA-SHA1": { sign: "dsa", hash: "sha1", id: "" }, + DSA: { sign: "dsa", hash: "sha1", id: "" }, + "DSA-WITH-SHA224": { sign: "dsa", hash: "sha224", id: "" }, + "DSA-SHA224": { sign: "dsa", hash: "sha224", id: "" }, + "DSA-WITH-SHA256": { sign: "dsa", hash: "sha256", id: "" }, + "DSA-SHA256": { sign: "dsa", hash: "sha256", id: "" }, + "DSA-WITH-SHA384": { sign: "dsa", hash: "sha384", id: "" }, + "DSA-SHA384": { sign: "dsa", hash: "sha384", id: "" }, + "DSA-WITH-SHA512": { sign: "dsa", hash: "sha512", id: "" }, + "DSA-SHA512": { sign: "dsa", hash: "sha512", id: "" }, + "DSA-RIPEMD160": { sign: "dsa", hash: "rmd160", id: "" }, + ripemd160WithRSA: { + sign: "rsa", + hash: "rmd160", + id: "3021300906052b2403020105000414", + }, + "RSA-RIPEMD160": { + sign: "rsa", + hash: "rmd160", + id: "3021300906052b2403020105000414", + }, + md5WithRSAEncryption: { + sign: "rsa", + hash: "md5", + id: "3020300c06082a864886f70d020505000410", + }, + "RSA-MD5": { + sign: "rsa", + hash: "md5", + id: "3020300c06082a864886f70d020505000410", + }, + }; + }); + var Iue = N((sjr, Cue) => { + _(); + x(); + Cue.exports = Bq(); + }); + var Nq = N((ujr, Aue) => { + _(); + x(); + var mvt = Math.pow(2, 30) - 1; + Aue.exports = function (r, e) { + if (typeof r != "number") throw new TypeError("Iterations not a number"); + if (r < 0) throw new TypeError("Bad iterations"); + if (typeof e != "number") throw new TypeError("Key length not a number"); + if (e < 0 || e > mvt || e !== e) throw new TypeError("Bad key length"); + }; + }); + var Oq = N((pjr, Sue) => { + _(); + x(); + var TI; + M.process && M.process.browser + ? (TI = "utf-8") + : M.process && M.process.version + ? ((kue = parseInt(S.version.split(".")[0].slice(1), 10)), + (TI = kue >= 6 ? "utf-8" : "binary")) + : (TI = "utf-8"); + var kue; + Sue.exports = TI; + }); + var Dq = N((mjr, Mue) => { + _(); + x(); + var Lq = zr().Buffer; + Mue.exports = function (r, e, t) { + if (Lq.isBuffer(r)) return r; + if (typeof r == "string") return Lq.from(r, e); + if (ArrayBuffer.isView(r)) return Lq.from(r.buffer); + throw new TypeError( + t + " must be a string, a Buffer, a typed array or a DataView" + ); + }; + }); + var qq = N((bjr, Nue) => { + _(); + x(); + var yvt = Sq(), + gvt = gI(), + bvt = mT(), + Wy = zr().Buffer, + vvt = Nq(), + Pue = Oq(), + Rue = Dq(), + wvt = Wy.alloc(128), + EI = { + md5: 16, + sha1: 20, + sha224: 28, + sha256: 32, + sha384: 48, + sha512: 64, + rmd160: 20, + ripemd160: 20, + }; + function Bue(r, e, t) { + var n = _vt(r), + a = r === "sha512" || r === "sha384" ? 128 : 64; + e.length > a ? (e = n(e)) : e.length < a && (e = Wy.concat([e, wvt], a)); + for ( + var i = Wy.allocUnsafe(a + EI[r]), s = Wy.allocUnsafe(a + EI[r]), c = 0; + c < a; + c++ + ) + (i[c] = e[c] ^ 54), (s[c] = e[c] ^ 92); + var l = Wy.allocUnsafe(a + t + 4); + i.copy(l, 0, 0, a), + (this.ipad1 = l), + (this.ipad2 = i), + (this.opad = s), + (this.alg = r), + (this.blocksize = a), + (this.hash = n), + (this.size = EI[r]); + } + Bue.prototype.run = function (r, e) { + r.copy(e, this.blocksize); + var t = this.hash(e); + return t.copy(this.opad, this.blocksize), this.hash(this.opad); + }; + function _vt(r) { + function e(n) { + return bvt(r).update(n).digest(); + } + function t(n) { + return new gvt().update(n).digest(); + } + return r === "rmd160" || r === "ripemd160" ? t : r === "md5" ? yvt : e; + } + function xvt(r, e, t, n, a) { + vvt(t, n), + (r = Rue(r, Pue, "Password")), + (e = Rue(e, Pue, "Salt")), + (a = a || "sha1"); + var i = new Bue(a, r, e.length), + s = Wy.allocUnsafe(n), + c = Wy.allocUnsafe(e.length + 4); + e.copy(c, 0, 0, e.length); + for (var l = 0, d = EI[a], m = Math.ceil(n / d), w = 1; w <= m; w++) { + c.writeUInt32BE(w, e.length); + for (var C = i.run(c, i.ipad1), I = C, k = 1; k < t; k++) { + I = i.run(I, i.ipad2); + for (var O = 0; O < d; O++) C[O] ^= I[O]; + } + C.copy(s, l), (l += d); + } + return s; + } + Nue.exports = xvt; + }); + var Uue = N((_jr, Wue) => { + _(); + x(); + var que = zr().Buffer, + Tvt = Nq(), + Oue = Oq(), + Lue = qq(), + Due = Dq(), + CI, + bT = M.crypto && M.crypto.subtle, + Evt = { + sha: "SHA-1", + "sha-1": "SHA-1", + sha1: "SHA-1", + sha256: "SHA-256", + "sha-256": "SHA-256", + sha384: "SHA-384", + "sha-384": "SHA-384", + "sha-512": "SHA-512", + sha512: "SHA-512", + }, + Fq = []; + function Cvt(r) { + if ( + (M.process && !M.process.browser) || + !bT || + !bT.importKey || + !bT.deriveBits + ) + return Promise.resolve(!1); + if (Fq[r] !== void 0) return Fq[r]; + CI = CI || que.alloc(8); + var e = Fue(CI, CI, 10, 128, r) + .then(function () { + return !0; + }) + .catch(function () { + return !1; + }); + return (Fq[r] = e), e; + } + var Uy; + function Wq() { + return ( + Uy || + (M.process && M.process.nextTick + ? (Uy = M.process.nextTick) + : M.queueMicrotask + ? (Uy = M.queueMicrotask) + : M.setImmediate + ? (Uy = M.setImmediate) + : (Uy = M.setTimeout), + Uy) + ); + } + function Fue(r, e, t, n, a) { + return bT + .importKey("raw", r, { name: "PBKDF2" }, !1, ["deriveBits"]) + .then(function (i) { + return bT.deriveBits( + { name: "PBKDF2", salt: e, iterations: t, hash: { name: a } }, + i, + n << 3 + ); + }) + .then(function (i) { + return que.from(i); + }); + } + function Ivt(r, e) { + r.then( + function (t) { + Wq()(function () { + e(null, t); + }); + }, + function (t) { + Wq()(function () { + e(t); + }); + } + ); + } + Wue.exports = function (r, e, t, n, a, i) { + typeof a == "function" && ((i = a), (a = void 0)), (a = a || "sha1"); + var s = Evt[a.toLowerCase()]; + if (!s || typeof M.Promise != "function") { + Wq()(function () { + var c; + try { + c = Lue(r, e, t, n, a); + } catch (l) { + return i(l); + } + i(null, c); + }); + return; + } + if ( + (Tvt(t, n), + (r = Due(r, Oue, "Password")), + (e = Due(e, Oue, "Salt")), + typeof i != "function") + ) + throw new Error("No callback provided to pbkdf2"); + Ivt( + Cvt(s).then(function (c) { + return c ? Fue(r, e, t, n, s) : Lue(r, e, t, n, a); + }), + i + ); + }; + }); + var Hq = N((Uq) => { + _(); + x(); + Uq.pbkdf2 = Uue(); + Uq.pbkdf2Sync = qq(); + }); + var zq = N((vl) => { + "use strict"; + _(); + x(); + vl.readUInt32BE = function (e, t) { + var n = (e[0 + t] << 24) | (e[1 + t] << 16) | (e[2 + t] << 8) | e[3 + t]; + return n >>> 0; + }; + vl.writeUInt32BE = function (e, t, n) { + (e[0 + n] = t >>> 24), + (e[1 + n] = (t >>> 16) & 255), + (e[2 + n] = (t >>> 8) & 255), + (e[3 + n] = t & 255); + }; + vl.ip = function (e, t, n, a) { + for (var i = 0, s = 0, c = 6; c >= 0; c -= 2) { + for (var l = 0; l <= 24; l += 8) (i <<= 1), (i |= (t >>> (l + c)) & 1); + for (var l = 0; l <= 24; l += 8) (i <<= 1), (i |= (e >>> (l + c)) & 1); + } + for (var c = 6; c >= 0; c -= 2) { + for (var l = 1; l <= 25; l += 8) (s <<= 1), (s |= (t >>> (l + c)) & 1); + for (var l = 1; l <= 25; l += 8) (s <<= 1), (s |= (e >>> (l + c)) & 1); + } + (n[a + 0] = i >>> 0), (n[a + 1] = s >>> 0); + }; + vl.rip = function (e, t, n, a) { + for (var i = 0, s = 0, c = 0; c < 4; c++) + for (var l = 24; l >= 0; l -= 8) + (i <<= 1), + (i |= (t >>> (l + c)) & 1), + (i <<= 1), + (i |= (e >>> (l + c)) & 1); + for (var c = 4; c < 8; c++) + for (var l = 24; l >= 0; l -= 8) + (s <<= 1), + (s |= (t >>> (l + c)) & 1), + (s <<= 1), + (s |= (e >>> (l + c)) & 1); + (n[a + 0] = i >>> 0), (n[a + 1] = s >>> 0); + }; + vl.pc1 = function (e, t, n, a) { + for (var i = 0, s = 0, c = 7; c >= 5; c--) { + for (var l = 0; l <= 24; l += 8) (i <<= 1), (i |= (t >> (l + c)) & 1); + for (var l = 0; l <= 24; l += 8) (i <<= 1), (i |= (e >> (l + c)) & 1); + } + for (var l = 0; l <= 24; l += 8) (i <<= 1), (i |= (t >> (l + c)) & 1); + for (var c = 1; c <= 3; c++) { + for (var l = 0; l <= 24; l += 8) (s <<= 1), (s |= (t >> (l + c)) & 1); + for (var l = 0; l <= 24; l += 8) (s <<= 1), (s |= (e >> (l + c)) & 1); + } + for (var l = 0; l <= 24; l += 8) (s <<= 1), (s |= (e >> (l + c)) & 1); + (n[a + 0] = i >>> 0), (n[a + 1] = s >>> 0); + }; + vl.r28shl = function (e, t) { + return ((e << t) & 268435455) | (e >>> (28 - t)); + }; + var II = [ + 14, 11, 17, 4, 27, 23, 25, 0, 13, 22, 7, 18, 5, 9, 16, 24, 2, 20, 12, 21, + 1, 8, 15, 26, 15, 4, 25, 19, 9, 1, 26, 16, 5, 11, 23, 8, 12, 7, 17, 0, 22, + 3, 10, 14, 6, 20, 27, 24, + ]; + vl.pc2 = function (e, t, n, a) { + for (var i = 0, s = 0, c = II.length >>> 1, l = 0; l < c; l++) + (i <<= 1), (i |= (e >>> II[l]) & 1); + for (var l = c; l < II.length; l++) (s <<= 1), (s |= (t >>> II[l]) & 1); + (n[a + 0] = i >>> 0), (n[a + 1] = s >>> 0); + }; + vl.expand = function (e, t, n) { + var a = 0, + i = 0; + a = ((e & 1) << 5) | (e >>> 27); + for (var s = 23; s >= 15; s -= 4) (a <<= 6), (a |= (e >>> s) & 63); + for (var s = 11; s >= 3; s -= 4) (i |= (e >>> s) & 63), (i <<= 6); + (i |= ((e & 31) << 1) | (e >>> 31)), + (t[n + 0] = a >>> 0), + (t[n + 1] = i >>> 0); + }; + var Hue = [ + 14, 0, 4, 15, 13, 7, 1, 4, 2, 14, 15, 2, 11, 13, 8, 1, 3, 10, 10, 6, 6, + 12, 12, 11, 5, 9, 9, 5, 0, 3, 7, 8, 4, 15, 1, 12, 14, 8, 8, 2, 13, 4, 6, + 9, 2, 1, 11, 7, 15, 5, 12, 11, 9, 3, 7, 14, 3, 10, 10, 0, 5, 6, 0, 13, 15, + 3, 1, 13, 8, 4, 14, 7, 6, 15, 11, 2, 3, 8, 4, 14, 9, 12, 7, 0, 2, 1, 13, + 10, 12, 6, 0, 9, 5, 11, 10, 5, 0, 13, 14, 8, 7, 10, 11, 1, 10, 3, 4, 15, + 13, 4, 1, 2, 5, 11, 8, 6, 12, 7, 6, 12, 9, 0, 3, 5, 2, 14, 15, 9, 10, 13, + 0, 7, 9, 0, 14, 9, 6, 3, 3, 4, 15, 6, 5, 10, 1, 2, 13, 8, 12, 5, 7, 14, + 11, 12, 4, 11, 2, 15, 8, 1, 13, 1, 6, 10, 4, 13, 9, 0, 8, 6, 15, 9, 3, 8, + 0, 7, 11, 4, 1, 15, 2, 14, 12, 3, 5, 11, 10, 5, 14, 2, 7, 12, 7, 13, 13, + 8, 14, 11, 3, 5, 0, 6, 6, 15, 9, 0, 10, 3, 1, 4, 2, 7, 8, 2, 5, 12, 11, 1, + 12, 10, 4, 14, 15, 9, 10, 3, 6, 15, 9, 0, 0, 6, 12, 10, 11, 1, 7, 13, 13, + 8, 15, 9, 1, 4, 3, 5, 14, 11, 5, 12, 2, 7, 8, 2, 4, 14, 2, 14, 12, 11, 4, + 2, 1, 12, 7, 4, 10, 7, 11, 13, 6, 1, 8, 5, 5, 0, 3, 15, 15, 10, 13, 3, 0, + 9, 14, 8, 9, 6, 4, 11, 2, 8, 1, 12, 11, 7, 10, 1, 13, 14, 7, 2, 8, 13, 15, + 6, 9, 15, 12, 0, 5, 9, 6, 10, 3, 4, 0, 5, 14, 3, 12, 10, 1, 15, 10, 4, 15, + 2, 9, 7, 2, 12, 6, 9, 8, 5, 0, 6, 13, 1, 3, 13, 4, 14, 14, 0, 7, 11, 5, 3, + 11, 8, 9, 4, 14, 3, 15, 2, 5, 12, 2, 9, 8, 5, 12, 15, 3, 10, 7, 11, 0, 14, + 4, 1, 10, 7, 1, 6, 13, 0, 11, 8, 6, 13, 4, 13, 11, 0, 2, 11, 14, 7, 15, 4, + 0, 9, 8, 1, 13, 10, 3, 14, 12, 3, 9, 5, 7, 12, 5, 2, 10, 15, 6, 8, 1, 6, + 1, 6, 4, 11, 11, 13, 13, 8, 12, 1, 3, 4, 7, 10, 14, 7, 10, 9, 15, 5, 6, 0, + 8, 15, 0, 14, 5, 2, 9, 3, 2, 12, 13, 1, 2, 15, 8, 13, 4, 8, 6, 10, 15, 3, + 11, 7, 1, 4, 10, 12, 9, 5, 3, 6, 14, 11, 5, 0, 0, 14, 12, 9, 7, 2, 7, 2, + 11, 1, 4, 14, 1, 7, 9, 4, 12, 10, 14, 8, 2, 13, 0, 15, 6, 12, 10, 9, 13, + 0, 15, 3, 3, 5, 5, 6, 8, 11, + ]; + vl.substitute = function (e, t) { + for (var n = 0, a = 0; a < 4; a++) { + var i = (e >>> (18 - a * 6)) & 63, + s = Hue[a * 64 + i]; + (n <<= 4), (n |= s); + } + for (var a = 0; a < 4; a++) { + var i = (t >>> (18 - a * 6)) & 63, + s = Hue[4 * 64 + a * 64 + i]; + (n <<= 4), (n |= s); + } + return n >>> 0; + }; + var zue = [ + 16, 25, 12, 11, 3, 20, 4, 15, 31, 17, 9, 6, 27, 14, 1, 22, 30, 24, 8, 18, + 0, 5, 29, 23, 13, 19, 2, 26, 10, 21, 28, 7, + ]; + vl.permute = function (e) { + for (var t = 0, n = 0; n < zue.length; n++) + (t <<= 1), (t |= (e >>> zue[n]) & 1); + return t >>> 0; + }; + vl.padSplit = function (e, t, n) { + for (var a = e.toString(2); a.length < t; ) a = "0" + a; + for (var i = [], s = 0; s < t; s += n) i.push(a.slice(s, s + n)); + return i.join(" "); + }; + }); + var AI = N((Mjr, jue) => { + "use strict"; + _(); + x(); + var Avt = Ou(); + function wl(r) { + (this.options = r), + (this.type = this.options.type), + (this.blockSize = 8), + this._init(), + (this.buffer = new Array(this.blockSize)), + (this.bufferOff = 0); + } + jue.exports = wl; + wl.prototype._init = function () {}; + wl.prototype.update = function (e) { + return e.length === 0 + ? [] + : this.type === "decrypt" + ? this._updateDecrypt(e) + : this._updateEncrypt(e); + }; + wl.prototype._buffer = function (e, t) { + for ( + var n = Math.min(this.buffer.length - this.bufferOff, e.length - t), + a = 0; + a < n; + a++ + ) + this.buffer[this.bufferOff + a] = e[t + a]; + return (this.bufferOff += n), n; + }; + wl.prototype._flushBuffer = function (e, t) { + return ( + this._update(this.buffer, 0, e, t), (this.bufferOff = 0), this.blockSize + ); + }; + wl.prototype._updateEncrypt = function (e) { + var t = 0, + n = 0, + a = ((this.bufferOff + e.length) / this.blockSize) | 0, + i = new Array(a * this.blockSize); + this.bufferOff !== 0 && + ((t += this._buffer(e, t)), + this.bufferOff === this.buffer.length && + (n += this._flushBuffer(i, n))); + for ( + var s = e.length - ((e.length - t) % this.blockSize); + t < s; + t += this.blockSize + ) + this._update(e, t, i, n), (n += this.blockSize); + for (; t < e.length; t++, this.bufferOff++) + this.buffer[this.bufferOff] = e[t]; + return i; + }; + wl.prototype._updateDecrypt = function (e) { + for ( + var t = 0, + n = 0, + a = Math.ceil((this.bufferOff + e.length) / this.blockSize) - 1, + i = new Array(a * this.blockSize); + a > 0; + a-- + ) + (t += this._buffer(e, t)), (n += this._flushBuffer(i, n)); + return (t += this._buffer(e, t)), i; + }; + wl.prototype.final = function (e) { + var t; + e && (t = this.update(e)); + var n; + return ( + this.type === "encrypt" + ? (n = this._finalEncrypt()) + : (n = this._finalDecrypt()), + t ? t.concat(n) : n + ); + }; + wl.prototype._pad = function (e, t) { + if (t === 0) return !1; + for (; t < e.length; ) e[t++] = 0; + return !0; + }; + wl.prototype._finalEncrypt = function () { + if (!this._pad(this.buffer, this.bufferOff)) return []; + var e = new Array(this.blockSize); + return this._update(this.buffer, 0, e, 0), e; + }; + wl.prototype._unpad = function (e) { + return e; + }; + wl.prototype._finalDecrypt = function () { + Avt.equal(this.bufferOff, this.blockSize, "Not enough data to decrypt"); + var e = new Array(this.blockSize); + return this._flushBuffer(e, 0), this._unpad(e); + }; + }); + var jq = N((Bjr, Gue) => { + "use strict"; + _(); + x(); + var Kue = Ou(), + kvt = qr(), + is = zq(), + Vue = AI(); + function Svt() { + (this.tmp = new Array(2)), (this.keys = null); + } + function Np(r) { + Vue.call(this, r); + var e = new Svt(); + (this._desState = e), this.deriveKeys(e, r.key); + } + kvt(Np, Vue); + Gue.exports = Np; + Np.create = function (e) { + return new Np(e); + }; + var Mvt = [1, 1, 2, 2, 2, 2, 2, 2, 1, 2, 2, 2, 2, 2, 2, 1]; + Np.prototype.deriveKeys = function (e, t) { + (e.keys = new Array(16 * 2)), + Kue.equal(t.length, this.blockSize, "Invalid key length"); + var n = is.readUInt32BE(t, 0), + a = is.readUInt32BE(t, 4); + is.pc1(n, a, e.tmp, 0), (n = e.tmp[0]), (a = e.tmp[1]); + for (var i = 0; i < e.keys.length; i += 2) { + var s = Mvt[i >>> 1]; + (n = is.r28shl(n, s)), (a = is.r28shl(a, s)), is.pc2(n, a, e.keys, i); + } + }; + Np.prototype._update = function (e, t, n, a) { + var i = this._desState, + s = is.readUInt32BE(e, t), + c = is.readUInt32BE(e, t + 4); + is.ip(s, c, i.tmp, 0), + (s = i.tmp[0]), + (c = i.tmp[1]), + this.type === "encrypt" + ? this._encrypt(i, s, c, i.tmp, 0) + : this._decrypt(i, s, c, i.tmp, 0), + (s = i.tmp[0]), + (c = i.tmp[1]), + is.writeUInt32BE(n, s, a), + is.writeUInt32BE(n, c, a + 4); + }; + Np.prototype._pad = function (e, t) { + for (var n = e.length - t, a = t; a < e.length; a++) e[a] = n; + return !0; + }; + Np.prototype._unpad = function (e) { + for (var t = e[e.length - 1], n = e.length - t; n < e.length; n++) + Kue.equal(e[n], t); + return e.slice(0, e.length - t); + }; + Np.prototype._encrypt = function (e, t, n, a, i) { + for (var s = t, c = n, l = 0; l < e.keys.length; l += 2) { + var d = e.keys[l], + m = e.keys[l + 1]; + is.expand(c, e.tmp, 0), (d ^= e.tmp[0]), (m ^= e.tmp[1]); + var w = is.substitute(d, m), + C = is.permute(w), + I = c; + (c = (s ^ C) >>> 0), (s = I); + } + is.rip(c, s, a, i); + }; + Np.prototype._decrypt = function (e, t, n, a, i) { + for (var s = n, c = t, l = e.keys.length - 2; l >= 0; l -= 2) { + var d = e.keys[l], + m = e.keys[l + 1]; + is.expand(s, e.tmp, 0), (d ^= e.tmp[0]), (m ^= e.tmp[1]); + var w = is.substitute(d, m), + C = is.permute(w), + I = s; + (s = (c ^ C) >>> 0), (c = I); + } + is.rip(s, c, a, i); + }; + }); + var $ue = N((Yue) => { + "use strict"; + _(); + x(); + var Pvt = Ou(), + Rvt = qr(), + kI = {}; + function Bvt(r) { + Pvt.equal(r.length, 8, "Invalid IV length"), (this.iv = new Array(8)); + for (var e = 0; e < this.iv.length; e++) this.iv[e] = r[e]; + } + function Nvt(r) { + function e(i) { + r.call(this, i), this._cbcInit(); + } + Rvt(e, r); + for (var t = Object.keys(kI), n = 0; n < t.length; n++) { + var a = t[n]; + e.prototype[a] = kI[a]; + } + return ( + (e.create = function (s) { + return new e(s); + }), + e + ); + } + Yue.instantiate = Nvt; + kI._cbcInit = function () { + var e = new Bvt(this.options.iv); + this._cbcState = e; + }; + kI._update = function (e, t, n, a) { + var i = this._cbcState, + s = this.constructor.super_.prototype, + c = i.iv; + if (this.type === "encrypt") { + for (var l = 0; l < this.blockSize; l++) c[l] ^= e[t + l]; + s._update.call(this, c, 0, n, a); + for (var l = 0; l < this.blockSize; l++) c[l] = n[a + l]; + } else { + s._update.call(this, e, t, n, a); + for (var l = 0; l < this.blockSize; l++) n[a + l] ^= c[l]; + for (var l = 0; l < this.blockSize; l++) c[l] = e[t + l]; + } + }; + }); + var Que = N((Fjr, Zue) => { + "use strict"; + _(); + x(); + var Ovt = Ou(), + Lvt = qr(), + Jue = AI(), + Cm = jq(); + function Dvt(r, e) { + Ovt.equal(e.length, 24, "Invalid key length"); + var t = e.slice(0, 8), + n = e.slice(8, 16), + a = e.slice(16, 24); + r === "encrypt" + ? (this.ciphers = [ + Cm.create({ type: "encrypt", key: t }), + Cm.create({ type: "decrypt", key: n }), + Cm.create({ type: "encrypt", key: a }), + ]) + : (this.ciphers = [ + Cm.create({ type: "decrypt", key: a }), + Cm.create({ type: "encrypt", key: n }), + Cm.create({ type: "decrypt", key: t }), + ]); + } + function Hy(r) { + Jue.call(this, r); + var e = new Dvt(this.type, this.options.key); + this._edeState = e; + } + Lvt(Hy, Jue); + Zue.exports = Hy; + Hy.create = function (e) { + return new Hy(e); + }; + Hy.prototype._update = function (e, t, n, a) { + var i = this._edeState; + i.ciphers[0]._update(e, t, n, a), + i.ciphers[1]._update(n, a, n, a), + i.ciphers[2]._update(n, a, n, a); + }; + Hy.prototype._pad = Cm.prototype._pad; + Hy.prototype._unpad = Cm.prototype._unpad; + }); + var Xue = N((H1) => { + "use strict"; + _(); + x(); + H1.utils = zq(); + H1.Cipher = AI(); + H1.DES = jq(); + H1.CBC = $ue(); + H1.EDE = Que(); + }); + var rle = N((Kjr, tle) => { + _(); + x(); + var ele = Qh(), + Xh = Xue(), + qvt = qr(), + zy = zr().Buffer, + vT = { + "des-ede3-cbc": Xh.CBC.instantiate(Xh.EDE), + "des-ede3": Xh.EDE, + "des-ede-cbc": Xh.CBC.instantiate(Xh.EDE), + "des-ede": Xh.EDE, + "des-cbc": Xh.CBC.instantiate(Xh.DES), + "des-ecb": Xh.DES, + }; + vT.des = vT["des-cbc"]; + vT.des3 = vT["des-ede3-cbc"]; + tle.exports = SI; + qvt(SI, ele); + function SI(r) { + ele.call(this); + var e = r.mode.toLowerCase(), + t = vT[e], + n; + r.decrypt ? (n = "decrypt") : (n = "encrypt"); + var a = r.key; + zy.isBuffer(a) || (a = zy.from(a)), + (e === "des-ede" || e === "des-ede-cbc") && + (a = zy.concat([a, a.slice(0, 8)])); + var i = r.iv; + zy.isBuffer(i) || (i = zy.from(i)), + (this._des = t.create({ key: a, iv: i, type: n })); + } + SI.prototype._update = function (r) { + return zy.from(this._des.update(r)); + }; + SI.prototype._final = function () { + return zy.from(this._des.final()); + }; + }); + var nle = N((Kq) => { + _(); + x(); + Kq.encrypt = function (r, e) { + return r._cipher.encryptBlock(e); + }; + Kq.decrypt = function (r, e) { + return r._cipher.decryptBlock(e); + }; + }); + var z1 = N((Zjr, ale) => { + _(); + x(); + ale.exports = function (e, t) { + for ( + var n = Math.min(e.length, t.length), a = new P.Buffer(n), i = 0; + i < n; + ++i + ) + a[i] = e[i] ^ t[i]; + return a; + }; + }); + var sle = N((Vq) => { + _(); + x(); + var ile = z1(); + Vq.encrypt = function (r, e) { + var t = ile(e, r._prev); + return (r._prev = r._cipher.encryptBlock(t)), r._prev; + }; + Vq.decrypt = function (r, e) { + var t = r._prev; + r._prev = e; + var n = r._cipher.decryptBlock(e); + return ile(n, t); + }; + }); + var ule = N((cle) => { + _(); + x(); + var wT = zr().Buffer, + Fvt = z1(); + function ole(r, e, t) { + var n = e.length, + a = Fvt(e, r._cache); + return ( + (r._cache = r._cache.slice(n)), + (r._prev = wT.concat([r._prev, t ? e : a])), + a + ); + } + cle.encrypt = function (r, e, t) { + for (var n = wT.allocUnsafe(0), a; e.length; ) + if ( + (r._cache.length === 0 && + ((r._cache = r._cipher.encryptBlock(r._prev)), + (r._prev = wT.allocUnsafe(0))), + r._cache.length <= e.length) + ) + (a = r._cache.length), + (n = wT.concat([n, ole(r, e.slice(0, a), t)])), + (e = e.slice(a)); + else { + n = wT.concat([n, ole(r, e, t)]); + break; + } + return n; + }; + }); + var dle = N((lle) => { + _(); + x(); + var Gq = zr().Buffer; + function Wvt(r, e, t) { + var n = r._cipher.encryptBlock(r._prev), + a = n[0] ^ e; + return (r._prev = Gq.concat([r._prev.slice(1), Gq.from([t ? e : a])])), a; + } + lle.encrypt = function (r, e, t) { + for (var n = e.length, a = Gq.allocUnsafe(n), i = -1; ++i < n; ) + a[i] = Wvt(r, e[i], t); + return a; + }; + }); + var hle = N((ple) => { + _(); + x(); + var MI = zr().Buffer; + function Uvt(r, e, t) { + for (var n, a = -1, i = 8, s = 0, c, l; ++a < i; ) + (n = r._cipher.encryptBlock(r._prev)), + (c = e & (1 << (7 - a)) ? 128 : 0), + (l = n[0] ^ c), + (s += (l & 128) >> a % 8), + (r._prev = Hvt(r._prev, t ? c : l)); + return s; + } + function Hvt(r, e) { + var t = r.length, + n = -1, + a = MI.allocUnsafe(r.length); + for (r = MI.concat([r, MI.from([e])]); ++n < t; ) + a[n] = (r[n] << 1) | (r[n + 1] >> 7); + return a; + } + ple.encrypt = function (r, e, t) { + for (var n = e.length, a = MI.allocUnsafe(n), i = -1; ++i < n; ) + a[i] = Uvt(r, e[i], t); + return a; + }; + }); + var mle = N((fle) => { + _(); + x(); + var zvt = z1(); + function jvt(r) { + return (r._prev = r._cipher.encryptBlock(r._prev)), r._prev; + } + fle.encrypt = function (r, e) { + for (; r._cache.length < e.length; ) + r._cache = P.Buffer.concat([r._cache, jvt(r)]); + var t = r._cache.slice(0, e.length); + return (r._cache = r._cache.slice(e.length)), zvt(e, t); + }; + }); + var Yq = N((mKr, yle) => { + _(); + x(); + function Kvt(r) { + for (var e = r.length, t; e--; ) + if (((t = r.readUInt8(e)), t === 255)) r.writeUInt8(0, e); + else { + t++, r.writeUInt8(t, e); + break; + } + } + yle.exports = Kvt; + }); + var Jq = N((ble) => { + _(); + x(); + var Vvt = z1(), + gle = zr().Buffer, + Gvt = Yq(); + function Yvt(r) { + var e = r._cipher.encryptBlockRaw(r._prev); + return Gvt(r._prev), e; + } + var $q = 16; + ble.encrypt = function (r, e) { + var t = Math.ceil(e.length / $q), + n = r._cache.length; + r._cache = gle.concat([r._cache, gle.allocUnsafe(t * $q)]); + for (var a = 0; a < t; a++) { + var i = Yvt(r), + s = n + a * $q; + r._cache.writeUInt32BE(i[0], s + 0), + r._cache.writeUInt32BE(i[1], s + 4), + r._cache.writeUInt32BE(i[2], s + 8), + r._cache.writeUInt32BE(i[3], s + 12); + } + var c = r._cache.slice(0, e.length); + return (r._cache = r._cache.slice(e.length)), Vvt(e, c); + }; + }); + var Zq = N((_Kr, $vt) => { + $vt.exports = { + "aes-128-ecb": { + cipher: "AES", + key: 128, + iv: 0, + mode: "ECB", + type: "block", + }, + "aes-192-ecb": { + cipher: "AES", + key: 192, + iv: 0, + mode: "ECB", + type: "block", + }, + "aes-256-ecb": { + cipher: "AES", + key: 256, + iv: 0, + mode: "ECB", + type: "block", + }, + "aes-128-cbc": { + cipher: "AES", + key: 128, + iv: 16, + mode: "CBC", + type: "block", + }, + "aes-192-cbc": { + cipher: "AES", + key: 192, + iv: 16, + mode: "CBC", + type: "block", + }, + "aes-256-cbc": { + cipher: "AES", + key: 256, + iv: 16, + mode: "CBC", + type: "block", + }, + aes128: { cipher: "AES", key: 128, iv: 16, mode: "CBC", type: "block" }, + aes192: { cipher: "AES", key: 192, iv: 16, mode: "CBC", type: "block" }, + aes256: { cipher: "AES", key: 256, iv: 16, mode: "CBC", type: "block" }, + "aes-128-cfb": { + cipher: "AES", + key: 128, + iv: 16, + mode: "CFB", + type: "stream", + }, + "aes-192-cfb": { + cipher: "AES", + key: 192, + iv: 16, + mode: "CFB", + type: "stream", + }, + "aes-256-cfb": { + cipher: "AES", + key: 256, + iv: 16, + mode: "CFB", + type: "stream", + }, + "aes-128-cfb8": { + cipher: "AES", + key: 128, + iv: 16, + mode: "CFB8", + type: "stream", + }, + "aes-192-cfb8": { + cipher: "AES", + key: 192, + iv: 16, + mode: "CFB8", + type: "stream", + }, + "aes-256-cfb8": { + cipher: "AES", + key: 256, + iv: 16, + mode: "CFB8", + type: "stream", + }, + "aes-128-cfb1": { + cipher: "AES", + key: 128, + iv: 16, + mode: "CFB1", + type: "stream", + }, + "aes-192-cfb1": { + cipher: "AES", + key: 192, + iv: 16, + mode: "CFB1", + type: "stream", + }, + "aes-256-cfb1": { + cipher: "AES", + key: 256, + iv: 16, + mode: "CFB1", + type: "stream", + }, + "aes-128-ofb": { + cipher: "AES", + key: 128, + iv: 16, + mode: "OFB", + type: "stream", + }, + "aes-192-ofb": { + cipher: "AES", + key: 192, + iv: 16, + mode: "OFB", + type: "stream", + }, + "aes-256-ofb": { + cipher: "AES", + key: 256, + iv: 16, + mode: "OFB", + type: "stream", + }, + "aes-128-ctr": { + cipher: "AES", + key: 128, + iv: 16, + mode: "CTR", + type: "stream", + }, + "aes-192-ctr": { + cipher: "AES", + key: 192, + iv: 16, + mode: "CTR", + type: "stream", + }, + "aes-256-ctr": { + cipher: "AES", + key: 256, + iv: 16, + mode: "CTR", + type: "stream", + }, + "aes-128-gcm": { + cipher: "AES", + key: 128, + iv: 12, + mode: "GCM", + type: "auth", + }, + "aes-192-gcm": { + cipher: "AES", + key: 192, + iv: 12, + mode: "GCM", + type: "auth", + }, + "aes-256-gcm": { + cipher: "AES", + key: 256, + iv: 12, + mode: "GCM", + type: "auth", + }, + }; + }); + var RI = N((xKr, vle) => { + _(); + x(); + var Jvt = { + ECB: nle(), + CBC: sle(), + CFB: ule(), + CFB8: dle(), + CFB1: hle(), + OFB: mle(), + CTR: Jq(), + GCM: Jq(), + }, + PI = Zq(); + for (Qq in PI) PI[Qq].module = Jvt[PI[Qq].mode]; + var Qq; + vle.exports = PI; + }); + var _T = N((CKr, _le) => { + _(); + x(); + var BI = zr().Buffer; + function eF(r) { + BI.isBuffer(r) || (r = BI.from(r)); + for (var e = (r.length / 4) | 0, t = new Array(e), n = 0; n < e; n++) + t[n] = r.readUInt32BE(n * 4); + return t; + } + function Xq(r) { + for (var e = 0; e < r.length; r++) r[e] = 0; + } + function wle(r, e, t, n, a) { + for ( + var i = t[0], + s = t[1], + c = t[2], + l = t[3], + d = r[0] ^ e[0], + m = r[1] ^ e[1], + w = r[2] ^ e[2], + C = r[3] ^ e[3], + I, + k, + O, + D, + W = 4, + H = 1; + H < a; + H++ + ) + (I = + i[d >>> 24] ^ + s[(m >>> 16) & 255] ^ + c[(w >>> 8) & 255] ^ + l[C & 255] ^ + e[W++]), + (k = + i[m >>> 24] ^ + s[(w >>> 16) & 255] ^ + c[(C >>> 8) & 255] ^ + l[d & 255] ^ + e[W++]), + (O = + i[w >>> 24] ^ + s[(C >>> 16) & 255] ^ + c[(d >>> 8) & 255] ^ + l[m & 255] ^ + e[W++]), + (D = + i[C >>> 24] ^ + s[(d >>> 16) & 255] ^ + c[(m >>> 8) & 255] ^ + l[w & 255] ^ + e[W++]), + (d = I), + (m = k), + (w = O), + (C = D); + return ( + (I = + ((n[d >>> 24] << 24) | + (n[(m >>> 16) & 255] << 16) | + (n[(w >>> 8) & 255] << 8) | + n[C & 255]) ^ + e[W++]), + (k = + ((n[m >>> 24] << 24) | + (n[(w >>> 16) & 255] << 16) | + (n[(C >>> 8) & 255] << 8) | + n[d & 255]) ^ + e[W++]), + (O = + ((n[w >>> 24] << 24) | + (n[(C >>> 16) & 255] << 16) | + (n[(d >>> 8) & 255] << 8) | + n[m & 255]) ^ + e[W++]), + (D = + ((n[C >>> 24] << 24) | + (n[(d >>> 16) & 255] << 16) | + (n[(m >>> 8) & 255] << 8) | + n[w & 255]) ^ + e[W++]), + (I = I >>> 0), + (k = k >>> 0), + (O = O >>> 0), + (D = D >>> 0), + [I, k, O, D] + ); + } + var Zvt = [0, 1, 2, 4, 8, 16, 32, 64, 128, 27, 54], + Vi = (function () { + for (var r = new Array(256), e = 0; e < 256; e++) + e < 128 ? (r[e] = e << 1) : (r[e] = (e << 1) ^ 283); + for ( + var t = [], + n = [], + a = [[], [], [], []], + i = [[], [], [], []], + s = 0, + c = 0, + l = 0; + l < 256; + ++l + ) { + var d = c ^ (c << 1) ^ (c << 2) ^ (c << 3) ^ (c << 4); + (d = (d >>> 8) ^ (d & 255) ^ 99), (t[s] = d), (n[d] = s); + var m = r[s], + w = r[m], + C = r[w], + I = (r[d] * 257) ^ (d * 16843008); + (a[0][s] = (I << 24) | (I >>> 8)), + (a[1][s] = (I << 16) | (I >>> 16)), + (a[2][s] = (I << 8) | (I >>> 24)), + (a[3][s] = I), + (I = (C * 16843009) ^ (w * 65537) ^ (m * 257) ^ (s * 16843008)), + (i[0][d] = (I << 24) | (I >>> 8)), + (i[1][d] = (I << 16) | (I >>> 16)), + (i[2][d] = (I << 8) | (I >>> 24)), + (i[3][d] = I), + s === 0 ? (s = c = 1) : ((s = m ^ r[r[r[C ^ m]]]), (c ^= r[r[c]])); + } + return { SBOX: t, INV_SBOX: n, SUB_MIX: a, INV_SUB_MIX: i }; + })(); + function _l(r) { + (this._key = eF(r)), this._reset(); + } + _l.blockSize = 4 * 4; + _l.keySize = 256 / 8; + _l.prototype.blockSize = _l.blockSize; + _l.prototype.keySize = _l.keySize; + _l.prototype._reset = function () { + for ( + var r = this._key, + e = r.length, + t = e + 6, + n = (t + 1) * 4, + a = [], + i = 0; + i < e; + i++ + ) + a[i] = r[i]; + for (i = e; i < n; i++) { + var s = a[i - 1]; + i % e === 0 + ? ((s = (s << 8) | (s >>> 24)), + (s = + (Vi.SBOX[s >>> 24] << 24) | + (Vi.SBOX[(s >>> 16) & 255] << 16) | + (Vi.SBOX[(s >>> 8) & 255] << 8) | + Vi.SBOX[s & 255]), + (s ^= Zvt[(i / e) | 0] << 24)) + : e > 6 && + i % e === 4 && + (s = + (Vi.SBOX[s >>> 24] << 24) | + (Vi.SBOX[(s >>> 16) & 255] << 16) | + (Vi.SBOX[(s >>> 8) & 255] << 8) | + Vi.SBOX[s & 255]), + (a[i] = a[i - e] ^ s); + } + for (var c = [], l = 0; l < n; l++) { + var d = n - l, + m = a[d - (l % 4 ? 0 : 4)]; + l < 4 || d <= 4 + ? (c[l] = m) + : (c[l] = + Vi.INV_SUB_MIX[0][Vi.SBOX[m >>> 24]] ^ + Vi.INV_SUB_MIX[1][Vi.SBOX[(m >>> 16) & 255]] ^ + Vi.INV_SUB_MIX[2][Vi.SBOX[(m >>> 8) & 255]] ^ + Vi.INV_SUB_MIX[3][Vi.SBOX[m & 255]]); + } + (this._nRounds = t), (this._keySchedule = a), (this._invKeySchedule = c); + }; + _l.prototype.encryptBlockRaw = function (r) { + return ( + (r = eF(r)), + wle(r, this._keySchedule, Vi.SUB_MIX, Vi.SBOX, this._nRounds) + ); + }; + _l.prototype.encryptBlock = function (r) { + var e = this.encryptBlockRaw(r), + t = BI.allocUnsafe(16); + return ( + t.writeUInt32BE(e[0], 0), + t.writeUInt32BE(e[1], 4), + t.writeUInt32BE(e[2], 8), + t.writeUInt32BE(e[3], 12), + t + ); + }; + _l.prototype.decryptBlock = function (r) { + r = eF(r); + var e = r[1]; + (r[1] = r[3]), (r[3] = e); + var t = wle( + r, + this._invKeySchedule, + Vi.INV_SUB_MIX, + Vi.INV_SBOX, + this._nRounds + ), + n = BI.allocUnsafe(16); + return ( + n.writeUInt32BE(t[0], 0), + n.writeUInt32BE(t[3], 4), + n.writeUInt32BE(t[2], 8), + n.writeUInt32BE(t[1], 12), + n + ); + }; + _l.prototype.scrub = function () { + Xq(this._keySchedule), Xq(this._invKeySchedule), Xq(this._key); + }; + _le.exports.AES = _l; + }); + var Ele = N((kKr, Tle) => { + _(); + x(); + var j1 = zr().Buffer, + Qvt = j1.alloc(16, 0); + function Xvt(r) { + return [ + r.readUInt32BE(0), + r.readUInt32BE(4), + r.readUInt32BE(8), + r.readUInt32BE(12), + ]; + } + function xle(r) { + var e = j1.allocUnsafe(16); + return ( + e.writeUInt32BE(r[0] >>> 0, 0), + e.writeUInt32BE(r[1] >>> 0, 4), + e.writeUInt32BE(r[2] >>> 0, 8), + e.writeUInt32BE(r[3] >>> 0, 12), + e + ); + } + function xT(r) { + (this.h = r), + (this.state = j1.alloc(16, 0)), + (this.cache = j1.allocUnsafe(0)); + } + xT.prototype.ghash = function (r) { + for (var e = -1; ++e < r.length; ) this.state[e] ^= r[e]; + this._multiply(); + }; + xT.prototype._multiply = function () { + for ( + var r = Xvt(this.h), e = [0, 0, 0, 0], t, n, a, i = -1; + ++i < 128; + + ) { + for ( + n = (this.state[~~(i / 8)] & (1 << (7 - (i % 8)))) !== 0, + n && + ((e[0] ^= r[0]), (e[1] ^= r[1]), (e[2] ^= r[2]), (e[3] ^= r[3])), + a = (r[3] & 1) !== 0, + t = 3; + t > 0; + t-- + ) + r[t] = (r[t] >>> 1) | ((r[t - 1] & 1) << 31); + (r[0] = r[0] >>> 1), a && (r[0] = r[0] ^ (225 << 24)); + } + this.state = xle(e); + }; + xT.prototype.update = function (r) { + this.cache = j1.concat([this.cache, r]); + for (var e; this.cache.length >= 16; ) + (e = this.cache.slice(0, 16)), + (this.cache = this.cache.slice(16)), + this.ghash(e); + }; + xT.prototype.final = function (r, e) { + return ( + this.cache.length && this.ghash(j1.concat([this.cache, Qvt], 16)), + this.ghash(xle([0, r, 0, e])), + this.state + ); + }; + Tle.exports = xT; + }); + var tF = N((PKr, Ale) => { + _(); + x(); + var ewt = _T(), + Jc = zr().Buffer, + Cle = Qh(), + twt = qr(), + Ile = Ele(), + rwt = z1(), + nwt = Yq(); + function awt(r, e) { + var t = 0; + r.length !== e.length && t++; + for (var n = Math.min(r.length, e.length), a = 0; a < n; ++a) + t += r[a] ^ e[a]; + return t; + } + function iwt(r, e, t) { + if (e.length === 12) + return ( + (r._finID = Jc.concat([e, Jc.from([0, 0, 0, 1])])), + Jc.concat([e, Jc.from([0, 0, 0, 2])]) + ); + var n = new Ile(t), + a = e.length, + i = a % 16; + n.update(e), + i && ((i = 16 - i), n.update(Jc.alloc(i, 0))), + n.update(Jc.alloc(8, 0)); + var s = a * 8, + c = Jc.alloc(8); + c.writeUIntBE(s, 0, 8), n.update(c), (r._finID = n.state); + var l = Jc.from(r._finID); + return nwt(l), l; + } + function jy(r, e, t, n) { + Cle.call(this); + var a = Jc.alloc(4, 0); + this._cipher = new ewt.AES(e); + var i = this._cipher.encryptBlock(a); + (this._ghash = new Ile(i)), + (t = iwt(this, t, i)), + (this._prev = Jc.from(t)), + (this._cache = Jc.allocUnsafe(0)), + (this._secCache = Jc.allocUnsafe(0)), + (this._decrypt = n), + (this._alen = 0), + (this._len = 0), + (this._mode = r), + (this._authTag = null), + (this._called = !1); + } + twt(jy, Cle); + jy.prototype._update = function (r) { + if (!this._called && this._alen) { + var e = 16 - (this._alen % 16); + e < 16 && ((e = Jc.alloc(e, 0)), this._ghash.update(e)); + } + this._called = !0; + var t = this._mode.encrypt(this, r); + return ( + this._decrypt ? this._ghash.update(r) : this._ghash.update(t), + (this._len += r.length), + t + ); + }; + jy.prototype._final = function () { + if (this._decrypt && !this._authTag) + throw new Error("Unsupported state or unable to authenticate data"); + var r = rwt( + this._ghash.final(this._alen * 8, this._len * 8), + this._cipher.encryptBlock(this._finID) + ); + if (this._decrypt && awt(r, this._authTag)) + throw new Error("Unsupported state or unable to authenticate data"); + (this._authTag = r), this._cipher.scrub(); + }; + jy.prototype.getAuthTag = function () { + if (this._decrypt || !Jc.isBuffer(this._authTag)) + throw new Error("Attempting to get auth tag in unsupported state"); + return this._authTag; + }; + jy.prototype.setAuthTag = function (e) { + if (!this._decrypt) + throw new Error("Attempting to set auth tag in unsupported state"); + this._authTag = e; + }; + jy.prototype.setAAD = function (e) { + if (this._called) + throw new Error("Attempting to set AAD in unsupported state"); + this._ghash.update(e), (this._alen += e.length); + }; + Ale.exports = jy; + }); + var nF = N((NKr, Sle) => { + _(); + x(); + var swt = _T(), + rF = zr().Buffer, + kle = Qh(), + owt = qr(); + function NI(r, e, t, n) { + kle.call(this), + (this._cipher = new swt.AES(e)), + (this._prev = rF.from(t)), + (this._cache = rF.allocUnsafe(0)), + (this._secCache = rF.allocUnsafe(0)), + (this._decrypt = n), + (this._mode = r); + } + owt(NI, kle); + NI.prototype._update = function (r) { + return this._mode.encrypt(this, r, this._decrypt); + }; + NI.prototype._final = function () { + this._cipher.scrub(); + }; + Sle.exports = NI; + }); + var TT = N((DKr, Mle) => { + _(); + x(); + var Ky = zr().Buffer, + cwt = mI(); + function uwt(r, e, t, n) { + if ( + (Ky.isBuffer(r) || (r = Ky.from(r, "binary")), + e && (Ky.isBuffer(e) || (e = Ky.from(e, "binary")), e.length !== 8)) + ) + throw new RangeError("salt should be Buffer with 8 byte length"); + for ( + var a = t / 8, i = Ky.alloc(a), s = Ky.alloc(n || 0), c = Ky.alloc(0); + a > 0 || n > 0; + + ) { + var l = new cwt(); + l.update(c), l.update(r), e && l.update(e), (c = l.digest()); + var d = 0; + if (a > 0) { + var m = i.length - a; + (d = Math.min(a, c.length)), c.copy(i, m, 0, d), (a -= d); + } + if (d < c.length && n > 0) { + var w = s.length - n, + C = Math.min(n, c.length - d); + c.copy(s, w, d, d + C), (n -= C); + } + } + return c.fill(0), { key: i, iv: s }; + } + Mle.exports = uwt; + }); + var Nle = N((aF) => { + _(); + x(); + var Ple = RI(), + lwt = tF(), + ef = zr().Buffer, + dwt = nF(), + Rle = Qh(), + pwt = _T(), + hwt = TT(), + fwt = qr(); + function ET(r, e, t) { + Rle.call(this), + (this._cache = new OI()), + (this._cipher = new pwt.AES(e)), + (this._prev = ef.from(t)), + (this._mode = r), + (this._autopadding = !0); + } + fwt(ET, Rle); + ET.prototype._update = function (r) { + this._cache.add(r); + for (var e, t, n = []; (e = this._cache.get()); ) + (t = this._mode.encrypt(this, e)), n.push(t); + return ef.concat(n); + }; + var mwt = ef.alloc(16, 16); + ET.prototype._final = function () { + var r = this._cache.flush(); + if (this._autopadding) + return (r = this._mode.encrypt(this, r)), this._cipher.scrub(), r; + if (!r.equals(mwt)) + throw ( + (this._cipher.scrub(), new Error("data not multiple of block length")) + ); + }; + ET.prototype.setAutoPadding = function (r) { + return (this._autopadding = !!r), this; + }; + function OI() { + this.cache = ef.allocUnsafe(0); + } + OI.prototype.add = function (r) { + this.cache = ef.concat([this.cache, r]); + }; + OI.prototype.get = function () { + if (this.cache.length > 15) { + var r = this.cache.slice(0, 16); + return (this.cache = this.cache.slice(16)), r; + } + return null; + }; + OI.prototype.flush = function () { + for ( + var r = 16 - this.cache.length, e = ef.allocUnsafe(r), t = -1; + ++t < r; + + ) + e.writeUInt8(r, t); + return ef.concat([this.cache, e]); + }; + function Ble(r, e, t) { + var n = Ple[r.toLowerCase()]; + if (!n) throw new TypeError("invalid suite type"); + if ((typeof e == "string" && (e = ef.from(e)), e.length !== n.key / 8)) + throw new TypeError("invalid key length " + e.length); + if ( + (typeof t == "string" && (t = ef.from(t)), + n.mode !== "GCM" && t.length !== n.iv) + ) + throw new TypeError("invalid iv length " + t.length); + return n.type === "stream" + ? new dwt(n.module, e, t) + : n.type === "auth" + ? new lwt(n.module, e, t) + : new ET(n.module, e, t); + } + function ywt(r, e) { + var t = Ple[r.toLowerCase()]; + if (!t) throw new TypeError("invalid suite type"); + var n = hwt(e, !1, t.key, t.iv); + return Ble(r, n.key, n.iv); + } + aF.createCipheriv = Ble; + aF.createCipher = ywt; + }); + var qle = N((iF) => { + _(); + x(); + var gwt = tF(), + K1 = zr().Buffer, + Ole = RI(), + bwt = nF(), + Lle = Qh(), + vwt = _T(), + wwt = TT(), + _wt = qr(); + function CT(r, e, t) { + Lle.call(this), + (this._cache = new LI()), + (this._last = void 0), + (this._cipher = new vwt.AES(e)), + (this._prev = K1.from(t)), + (this._mode = r), + (this._autopadding = !0); + } + _wt(CT, Lle); + CT.prototype._update = function (r) { + this._cache.add(r); + for (var e, t, n = []; (e = this._cache.get(this._autopadding)); ) + (t = this._mode.decrypt(this, e)), n.push(t); + return K1.concat(n); + }; + CT.prototype._final = function () { + var r = this._cache.flush(); + if (this._autopadding) return xwt(this._mode.decrypt(this, r)); + if (r) throw new Error("data not multiple of block length"); + }; + CT.prototype.setAutoPadding = function (r) { + return (this._autopadding = !!r), this; + }; + function LI() { + this.cache = K1.allocUnsafe(0); + } + LI.prototype.add = function (r) { + this.cache = K1.concat([this.cache, r]); + }; + LI.prototype.get = function (r) { + var e; + if (r) { + if (this.cache.length > 16) + return ( + (e = this.cache.slice(0, 16)), + (this.cache = this.cache.slice(16)), + e + ); + } else if (this.cache.length >= 16) + return ( + (e = this.cache.slice(0, 16)), (this.cache = this.cache.slice(16)), e + ); + return null; + }; + LI.prototype.flush = function () { + if (this.cache.length) return this.cache; + }; + function xwt(r) { + var e = r[15]; + if (e < 1 || e > 16) throw new Error("unable to decrypt data"); + for (var t = -1; ++t < e; ) + if (r[t + (16 - e)] !== e) throw new Error("unable to decrypt data"); + if (e !== 16) return r.slice(0, 16 - e); + } + function Dle(r, e, t) { + var n = Ole[r.toLowerCase()]; + if (!n) throw new TypeError("invalid suite type"); + if ( + (typeof t == "string" && (t = K1.from(t)), + n.mode !== "GCM" && t.length !== n.iv) + ) + throw new TypeError("invalid iv length " + t.length); + if ((typeof e == "string" && (e = K1.from(e)), e.length !== n.key / 8)) + throw new TypeError("invalid key length " + e.length); + return n.type === "stream" + ? new bwt(n.module, e, t, !0) + : n.type === "auth" + ? new gwt(n.module, e, t, !0) + : new CT(n.module, e, t); + } + function Twt(r, e) { + var t = Ole[r.toLowerCase()]; + if (!t) throw new TypeError("invalid suite type"); + var n = wwt(e, !1, t.key, t.iv); + return Dle(r, n.key, n.iv); + } + iF.createDecipher = Twt; + iF.createDecipheriv = Dle; + }); + var DI = N((Cd) => { + _(); + x(); + var Fle = Nle(), + Wle = qle(), + Ewt = Zq(); + function Cwt() { + return Object.keys(Ewt); + } + Cd.createCipher = Cd.Cipher = Fle.createCipher; + Cd.createCipheriv = Cd.Cipheriv = Fle.createCipheriv; + Cd.createDecipher = Cd.Decipher = Wle.createDecipher; + Cd.createDecipheriv = Cd.Decipheriv = Wle.createDecipheriv; + Cd.listCiphers = Cd.getCiphers = Cwt; + }); + var Ule = N((tf) => { + _(); + x(); + tf["des-ecb"] = { key: 8, iv: 0 }; + tf["des-cbc"] = tf.des = { key: 8, iv: 8 }; + tf["des-ede3-cbc"] = tf.des3 = { key: 24, iv: 8 }; + tf["des-ede3"] = { key: 24, iv: 0 }; + tf["des-ede-cbc"] = { key: 16, iv: 8 }; + tf["des-ede"] = { key: 16, iv: 0 }; + }); + var Vle = N((Id) => { + _(); + x(); + var Hle = rle(), + sF = DI(), + Im = RI(), + rf = Ule(), + zle = TT(); + function Iwt(r, e) { + r = r.toLowerCase(); + var t, n; + if (Im[r]) (t = Im[r].key), (n = Im[r].iv); + else if (rf[r]) (t = rf[r].key * 8), (n = rf[r].iv); + else throw new TypeError("invalid suite type"); + var a = zle(e, !1, t, n); + return jle(r, a.key, a.iv); + } + function Awt(r, e) { + r = r.toLowerCase(); + var t, n; + if (Im[r]) (t = Im[r].key), (n = Im[r].iv); + else if (rf[r]) (t = rf[r].key * 8), (n = rf[r].iv); + else throw new TypeError("invalid suite type"); + var a = zle(e, !1, t, n); + return Kle(r, a.key, a.iv); + } + function jle(r, e, t) { + if (((r = r.toLowerCase()), Im[r])) return sF.createCipheriv(r, e, t); + if (rf[r]) return new Hle({ key: e, iv: t, mode: r }); + throw new TypeError("invalid suite type"); + } + function Kle(r, e, t) { + if (((r = r.toLowerCase()), Im[r])) return sF.createDecipheriv(r, e, t); + if (rf[r]) return new Hle({ key: e, iv: t, mode: r, decrypt: !0 }); + throw new TypeError("invalid suite type"); + } + function kwt() { + return Object.keys(rf).concat(sF.getCiphers()); + } + Id.createCipher = Id.Cipher = Iwt; + Id.createCipheriv = Id.Cipheriv = jle; + Id.createDecipher = Id.Decipher = Awt; + Id.createDecipheriv = Id.Decipheriv = Kle; + Id.listCiphers = Id.getCiphers = kwt; + }); + var cF = N((Gle, oF) => { + _(); + x(); + (function (r, e) { + "use strict"; + function t(g, o) { + if (!g) throw new Error(o || "Assertion failed"); + } + function n(g, o) { + g.super_ = o; + var p = function () {}; + (p.prototype = o.prototype), + (g.prototype = new p()), + (g.prototype.constructor = g); + } + function a(g, o, p) { + if (a.isBN(g)) return g; + (this.negative = 0), + (this.words = null), + (this.length = 0), + (this.red = null), + g !== null && + ((o === "le" || o === "be") && ((p = o), (o = 10)), + this._init(g || 0, o || 10, p || "be")); + } + typeof r == "object" ? (r.exports = a) : (e.BN = a), + (a.BN = a), + (a.wordSize = 26); + var i; + try { + typeof window < "u" && typeof window.Buffer < "u" + ? (i = window.Buffer) + : (i = Hi().Buffer); + } catch {} + (a.isBN = function (o) { + return o instanceof a + ? !0 + : o !== null && + typeof o == "object" && + o.constructor.wordSize === a.wordSize && + Array.isArray(o.words); + }), + (a.max = function (o, p) { + return o.cmp(p) > 0 ? o : p; + }), + (a.min = function (o, p) { + return o.cmp(p) < 0 ? o : p; + }), + (a.prototype._init = function (o, p, y) { + if (typeof o == "number") return this._initNumber(o, p, y); + if (typeof o == "object") return this._initArray(o, p, y); + p === "hex" && (p = 16), + t(p === (p | 0) && p >= 2 && p <= 36), + (o = o.toString().replace(/\s+/g, "")); + var h = 0; + o[0] === "-" && (h++, (this.negative = 1)), + h < o.length && + (p === 16 + ? this._parseHex(o, h, y) + : (this._parseBase(o, p, h), + y === "le" && this._initArray(this.toArray(), p, y))); + }), + (a.prototype._initNumber = function (o, p, y) { + o < 0 && ((this.negative = 1), (o = -o)), + o < 67108864 + ? ((this.words = [o & 67108863]), (this.length = 1)) + : o < 4503599627370496 + ? ((this.words = [o & 67108863, (o / 67108864) & 67108863]), + (this.length = 2)) + : (t(o < 9007199254740992), + (this.words = [o & 67108863, (o / 67108864) & 67108863, 1]), + (this.length = 3)), + y === "le" && this._initArray(this.toArray(), p, y); + }), + (a.prototype._initArray = function (o, p, y) { + if ((t(typeof o.length == "number"), o.length <= 0)) + return (this.words = [0]), (this.length = 1), this; + (this.length = Math.ceil(o.length / 3)), + (this.words = new Array(this.length)); + for (var h = 0; h < this.length; h++) this.words[h] = 0; + var b, + T, + E = 0; + if (y === "be") + for (h = o.length - 1, b = 0; h >= 0; h -= 3) + (T = o[h] | (o[h - 1] << 8) | (o[h - 2] << 16)), + (this.words[b] |= (T << E) & 67108863), + (this.words[b + 1] = (T >>> (26 - E)) & 67108863), + (E += 24), + E >= 26 && ((E -= 26), b++); + else if (y === "le") + for (h = 0, b = 0; h < o.length; h += 3) + (T = o[h] | (o[h + 1] << 8) | (o[h + 2] << 16)), + (this.words[b] |= (T << E) & 67108863), + (this.words[b + 1] = (T >>> (26 - E)) & 67108863), + (E += 24), + E >= 26 && ((E -= 26), b++); + return this.strip(); + }); + function s(g, o) { + var p = g.charCodeAt(o); + return p >= 65 && p <= 70 + ? p - 55 + : p >= 97 && p <= 102 + ? p - 87 + : (p - 48) & 15; + } + function c(g, o, p) { + var y = s(g, p); + return p - 1 >= o && (y |= s(g, p - 1) << 4), y; + } + a.prototype._parseHex = function (o, p, y) { + (this.length = Math.ceil((o.length - p) / 6)), + (this.words = new Array(this.length)); + for (var h = 0; h < this.length; h++) this.words[h] = 0; + var b = 0, + T = 0, + E; + if (y === "be") + for (h = o.length - 1; h >= p; h -= 2) + (E = c(o, p, h) << b), + (this.words[T] |= E & 67108863), + b >= 18 + ? ((b -= 18), (T += 1), (this.words[T] |= E >>> 26)) + : (b += 8); + else { + var f = o.length - p; + for (h = f % 2 === 0 ? p + 1 : p; h < o.length; h += 2) + (E = c(o, p, h) << b), + (this.words[T] |= E & 67108863), + b >= 18 + ? ((b -= 18), (T += 1), (this.words[T] |= E >>> 26)) + : (b += 8); + } + this.strip(); + }; + function l(g, o, p, y) { + for (var h = 0, b = Math.min(g.length, p), T = o; T < b; T++) { + var E = g.charCodeAt(T) - 48; + (h *= y), + E >= 49 + ? (h += E - 49 + 10) + : E >= 17 + ? (h += E - 17 + 10) + : (h += E); + } + return h; + } + (a.prototype._parseBase = function (o, p, y) { + (this.words = [0]), (this.length = 1); + for (var h = 0, b = 1; b <= 67108863; b *= p) h++; + h--, (b = (b / p) | 0); + for ( + var T = o.length - y, + E = T % h, + f = Math.min(T, T - E) + y, + u = 0, + v = y; + v < f; + v += h + ) + (u = l(o, v, v + h, p)), + this.imuln(b), + this.words[0] + u < 67108864 + ? (this.words[0] += u) + : this._iaddn(u); + if (E !== 0) { + var R = 1; + for (u = l(o, v, o.length, p), v = 0; v < E; v++) R *= p; + this.imuln(R), + this.words[0] + u < 67108864 + ? (this.words[0] += u) + : this._iaddn(u); + } + this.strip(); + }), + (a.prototype.copy = function (o) { + o.words = new Array(this.length); + for (var p = 0; p < this.length; p++) o.words[p] = this.words[p]; + (o.length = this.length), + (o.negative = this.negative), + (o.red = this.red); + }), + (a.prototype.clone = function () { + var o = new a(null); + return this.copy(o), o; + }), + (a.prototype._expand = function (o) { + for (; this.length < o; ) this.words[this.length++] = 0; + return this; + }), + (a.prototype.strip = function () { + for (; this.length > 1 && this.words[this.length - 1] === 0; ) + this.length--; + return this._normSign(); + }), + (a.prototype._normSign = function () { + return ( + this.length === 1 && this.words[0] === 0 && (this.negative = 0), + this + ); + }), + (a.prototype.inspect = function () { + return (this.red ? ""; + }); + var d = [ + "", + "0", + "00", + "000", + "0000", + "00000", + "000000", + "0000000", + "00000000", + "000000000", + "0000000000", + "00000000000", + "000000000000", + "0000000000000", + "00000000000000", + "000000000000000", + "0000000000000000", + "00000000000000000", + "000000000000000000", + "0000000000000000000", + "00000000000000000000", + "000000000000000000000", + "0000000000000000000000", + "00000000000000000000000", + "000000000000000000000000", + "0000000000000000000000000", + ], + m = [ + 0, 0, 25, 16, 12, 11, 10, 9, 8, 8, 7, 7, 7, 7, 6, 6, 6, 6, 6, 6, 6, 5, + 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, + ], + w = [ + 0, 0, 33554432, 43046721, 16777216, 48828125, 60466176, 40353607, + 16777216, 43046721, 1e7, 19487171, 35831808, 62748517, 7529536, + 11390625, 16777216, 24137569, 34012224, 47045881, 64e6, 4084101, + 5153632, 6436343, 7962624, 9765625, 11881376, 14348907, 17210368, + 20511149, 243e5, 28629151, 33554432, 39135393, 45435424, 52521875, + 60466176, + ]; + (a.prototype.toString = function (o, p) { + (o = o || 10), (p = p | 0 || 1); + var y; + if (o === 16 || o === "hex") { + y = ""; + for (var h = 0, b = 0, T = 0; T < this.length; T++) { + var E = this.words[T], + f = (((E << h) | b) & 16777215).toString(16); + (b = (E >>> (24 - h)) & 16777215), + b !== 0 || T !== this.length - 1 + ? (y = d[6 - f.length] + f + y) + : (y = f + y), + (h += 2), + h >= 26 && ((h -= 26), T--); + } + for (b !== 0 && (y = b.toString(16) + y); y.length % p !== 0; ) + y = "0" + y; + return this.negative !== 0 && (y = "-" + y), y; + } + if (o === (o | 0) && o >= 2 && o <= 36) { + var u = m[o], + v = w[o]; + y = ""; + var R = this.clone(); + for (R.negative = 0; !R.isZero(); ) { + var A = R.modn(v).toString(o); + (R = R.idivn(v)), + R.isZero() ? (y = A + y) : (y = d[u - A.length] + A + y); + } + for (this.isZero() && (y = "0" + y); y.length % p !== 0; ) + y = "0" + y; + return this.negative !== 0 && (y = "-" + y), y; + } + t(!1, "Base should be between 2 and 36"); + }), + (a.prototype.toNumber = function () { + var o = this.words[0]; + return ( + this.length === 2 + ? (o += this.words[1] * 67108864) + : this.length === 3 && this.words[2] === 1 + ? (o += 4503599627370496 + this.words[1] * 67108864) + : this.length > 2 && + t(!1, "Number can only safely store up to 53 bits"), + this.negative !== 0 ? -o : o + ); + }), + (a.prototype.toJSON = function () { + return this.toString(16); + }), + (a.prototype.toBuffer = function (o, p) { + return t(typeof i < "u"), this.toArrayLike(i, o, p); + }), + (a.prototype.toArray = function (o, p) { + return this.toArrayLike(Array, o, p); + }), + (a.prototype.toArrayLike = function (o, p, y) { + var h = this.byteLength(), + b = y || Math.max(1, h); + t(h <= b, "byte array longer than desired length"), + t(b > 0, "Requested array length <= 0"), + this.strip(); + var T = p === "le", + E = new o(b), + f, + u, + v = this.clone(); + if (T) { + for (u = 0; !v.isZero(); u++) + (f = v.andln(255)), v.iushrn(8), (E[u] = f); + for (; u < b; u++) E[u] = 0; + } else { + for (u = 0; u < b - h; u++) E[u] = 0; + for (u = 0; !v.isZero(); u++) + (f = v.andln(255)), v.iushrn(8), (E[b - u - 1] = f); + } + return E; + }), + Math.clz32 + ? (a.prototype._countBits = function (o) { + return 32 - Math.clz32(o); + }) + : (a.prototype._countBits = function (o) { + var p = o, + y = 0; + return ( + p >= 4096 && ((y += 13), (p >>>= 13)), + p >= 64 && ((y += 7), (p >>>= 7)), + p >= 8 && ((y += 4), (p >>>= 4)), + p >= 2 && ((y += 2), (p >>>= 2)), + y + p + ); + }), + (a.prototype._zeroBits = function (o) { + if (o === 0) return 26; + var p = o, + y = 0; + return ( + (p & 8191) === 0 && ((y += 13), (p >>>= 13)), + (p & 127) === 0 && ((y += 7), (p >>>= 7)), + (p & 15) === 0 && ((y += 4), (p >>>= 4)), + (p & 3) === 0 && ((y += 2), (p >>>= 2)), + (p & 1) === 0 && y++, + y + ); + }), + (a.prototype.bitLength = function () { + var o = this.words[this.length - 1], + p = this._countBits(o); + return (this.length - 1) * 26 + p; + }); + function C(g) { + for (var o = new Array(g.bitLength()), p = 0; p < o.length; p++) { + var y = (p / 26) | 0, + h = p % 26; + o[p] = (g.words[y] & (1 << h)) >>> h; + } + return o; + } + (a.prototype.zeroBits = function () { + if (this.isZero()) return 0; + for (var o = 0, p = 0; p < this.length; p++) { + var y = this._zeroBits(this.words[p]); + if (((o += y), y !== 26)) break; + } + return o; + }), + (a.prototype.byteLength = function () { + return Math.ceil(this.bitLength() / 8); + }), + (a.prototype.toTwos = function (o) { + return this.negative !== 0 + ? this.abs().inotn(o).iaddn(1) + : this.clone(); + }), + (a.prototype.fromTwos = function (o) { + return this.testn(o - 1) + ? this.notn(o).iaddn(1).ineg() + : this.clone(); + }), + (a.prototype.isNeg = function () { + return this.negative !== 0; + }), + (a.prototype.neg = function () { + return this.clone().ineg(); + }), + (a.prototype.ineg = function () { + return this.isZero() || (this.negative ^= 1), this; + }), + (a.prototype.iuor = function (o) { + for (; this.length < o.length; ) this.words[this.length++] = 0; + for (var p = 0; p < o.length; p++) + this.words[p] = this.words[p] | o.words[p]; + return this.strip(); + }), + (a.prototype.ior = function (o) { + return t((this.negative | o.negative) === 0), this.iuor(o); + }), + (a.prototype.or = function (o) { + return this.length > o.length + ? this.clone().ior(o) + : o.clone().ior(this); + }), + (a.prototype.uor = function (o) { + return this.length > o.length + ? this.clone().iuor(o) + : o.clone().iuor(this); + }), + (a.prototype.iuand = function (o) { + var p; + this.length > o.length ? (p = o) : (p = this); + for (var y = 0; y < p.length; y++) + this.words[y] = this.words[y] & o.words[y]; + return (this.length = p.length), this.strip(); + }), + (a.prototype.iand = function (o) { + return t((this.negative | o.negative) === 0), this.iuand(o); + }), + (a.prototype.and = function (o) { + return this.length > o.length + ? this.clone().iand(o) + : o.clone().iand(this); + }), + (a.prototype.uand = function (o) { + return this.length > o.length + ? this.clone().iuand(o) + : o.clone().iuand(this); + }), + (a.prototype.iuxor = function (o) { + var p, y; + this.length > o.length + ? ((p = this), (y = o)) + : ((p = o), (y = this)); + for (var h = 0; h < y.length; h++) + this.words[h] = p.words[h] ^ y.words[h]; + if (this !== p) for (; h < p.length; h++) this.words[h] = p.words[h]; + return (this.length = p.length), this.strip(); + }), + (a.prototype.ixor = function (o) { + return t((this.negative | o.negative) === 0), this.iuxor(o); + }), + (a.prototype.xor = function (o) { + return this.length > o.length + ? this.clone().ixor(o) + : o.clone().ixor(this); + }), + (a.prototype.uxor = function (o) { + return this.length > o.length + ? this.clone().iuxor(o) + : o.clone().iuxor(this); + }), + (a.prototype.inotn = function (o) { + t(typeof o == "number" && o >= 0); + var p = Math.ceil(o / 26) | 0, + y = o % 26; + this._expand(p), y > 0 && p--; + for (var h = 0; h < p; h++) this.words[h] = ~this.words[h] & 67108863; + return ( + y > 0 && (this.words[h] = ~this.words[h] & (67108863 >> (26 - y))), + this.strip() + ); + }), + (a.prototype.notn = function (o) { + return this.clone().inotn(o); + }), + (a.prototype.setn = function (o, p) { + t(typeof o == "number" && o >= 0); + var y = (o / 26) | 0, + h = o % 26; + return ( + this._expand(y + 1), + p + ? (this.words[y] = this.words[y] | (1 << h)) + : (this.words[y] = this.words[y] & ~(1 << h)), + this.strip() + ); + }), + (a.prototype.iadd = function (o) { + var p; + if (this.negative !== 0 && o.negative === 0) + return ( + (this.negative = 0), + (p = this.isub(o)), + (this.negative ^= 1), + this._normSign() + ); + if (this.negative === 0 && o.negative !== 0) + return ( + (o.negative = 0), + (p = this.isub(o)), + (o.negative = 1), + p._normSign() + ); + var y, h; + this.length > o.length + ? ((y = this), (h = o)) + : ((y = o), (h = this)); + for (var b = 0, T = 0; T < h.length; T++) + (p = (y.words[T] | 0) + (h.words[T] | 0) + b), + (this.words[T] = p & 67108863), + (b = p >>> 26); + for (; b !== 0 && T < y.length; T++) + (p = (y.words[T] | 0) + b), + (this.words[T] = p & 67108863), + (b = p >>> 26); + if (((this.length = y.length), b !== 0)) + (this.words[this.length] = b), this.length++; + else if (y !== this) + for (; T < y.length; T++) this.words[T] = y.words[T]; + return this; + }), + (a.prototype.add = function (o) { + var p; + return o.negative !== 0 && this.negative === 0 + ? ((o.negative = 0), (p = this.sub(o)), (o.negative ^= 1), p) + : o.negative === 0 && this.negative !== 0 + ? ((this.negative = 0), (p = o.sub(this)), (this.negative = 1), p) + : this.length > o.length + ? this.clone().iadd(o) + : o.clone().iadd(this); + }), + (a.prototype.isub = function (o) { + if (o.negative !== 0) { + o.negative = 0; + var p = this.iadd(o); + return (o.negative = 1), p._normSign(); + } else if (this.negative !== 0) + return ( + (this.negative = 0), + this.iadd(o), + (this.negative = 1), + this._normSign() + ); + var y = this.cmp(o); + if (y === 0) + return ( + (this.negative = 0), (this.length = 1), (this.words[0] = 0), this + ); + var h, b; + y > 0 ? ((h = this), (b = o)) : ((h = o), (b = this)); + for (var T = 0, E = 0; E < b.length; E++) + (p = (h.words[E] | 0) - (b.words[E] | 0) + T), + (T = p >> 26), + (this.words[E] = p & 67108863); + for (; T !== 0 && E < h.length; E++) + (p = (h.words[E] | 0) + T), + (T = p >> 26), + (this.words[E] = p & 67108863); + if (T === 0 && E < h.length && h !== this) + for (; E < h.length; E++) this.words[E] = h.words[E]; + return ( + (this.length = Math.max(this.length, E)), + h !== this && (this.negative = 1), + this.strip() + ); + }), + (a.prototype.sub = function (o) { + return this.clone().isub(o); + }); + function I(g, o, p) { + p.negative = o.negative ^ g.negative; + var y = (g.length + o.length) | 0; + (p.length = y), (y = (y - 1) | 0); + var h = g.words[0] | 0, + b = o.words[0] | 0, + T = h * b, + E = T & 67108863, + f = (T / 67108864) | 0; + p.words[0] = E; + for (var u = 1; u < y; u++) { + for ( + var v = f >>> 26, + R = f & 67108863, + A = Math.min(u, o.length - 1), + L = Math.max(0, u - g.length + 1); + L <= A; + L++ + ) { + var G = (u - L) | 0; + (h = g.words[G] | 0), + (b = o.words[L] | 0), + (T = h * b + R), + (v += (T / 67108864) | 0), + (R = T & 67108863); + } + (p.words[u] = R | 0), (f = v | 0); + } + return f !== 0 ? (p.words[u] = f | 0) : p.length--, p.strip(); + } + var k = function (o, p, y) { + var h = o.words, + b = p.words, + T = y.words, + E = 0, + f, + u, + v, + R = h[0] | 0, + A = R & 8191, + L = R >>> 13, + G = h[1] | 0, + U = G & 8191, + Z = G >>> 13, + de = h[2] | 0, + ne = de & 8191, + pe = de >>> 13, + lt = h[3] | 0, + fe = lt & 8191, + ve = lt >>> 13, + vt = h[4] | 0, + we = vt & 8191, + Ne = vt >>> 13, + kt = h[5] | 0, + Le = kt & 8191, + ze = kt >>> 13, + It = h[6] | 0, + Se = It & 8191, + Ke = It >>> 13, + Et = h[7] | 0, + Me = Et & 8191, + Ge = Et >>> 13, + Dt = h[8] | 0, + De = Dt & 8191, + Ze = Dt >>> 13, + Wt = h[9] | 0, + ke = Wt & 8191, + $e = Wt >>> 13, + Ht = b[0] | 0, + Pe = Ht & 8191, + Je = Ht >>> 13, + zt = b[1] | 0, + Re = zt & 8191, + Qe = zt >>> 13, + jt = b[2] | 0, + Be = jt & 8191, + Xe = jt >>> 13, + Ut = b[3] | 0, + Ae = Ut & 8191, + et = Ut >>> 13, + St = b[4] | 0, + Oe = St & 8191, + tt = St >>> 13, + Kt = b[5] | 0, + qe = Kt & 8191, + rt = Kt >>> 13, + Vt = b[6] | 0, + Ie = Vt & 8191, + Ye = Vt >>> 13, + Gt = b[7] | 0, + We = Gt & 8191, + it = Gt >>> 13, + Qt = b[8] | 0, + Ue = Qt & 8191, + nt = Qt >>> 13, + tr = b[9] | 0, + He = tr & 8191, + at = tr >>> 13; + (y.negative = o.negative ^ p.negative), + (y.length = 19), + (f = Math.imul(A, Pe)), + (u = Math.imul(A, Je)), + (u = (u + Math.imul(L, Pe)) | 0), + (v = Math.imul(L, Je)); + var Pr = (((E + f) | 0) + ((u & 8191) << 13)) | 0; + (E = (((v + (u >>> 13)) | 0) + (Pr >>> 26)) | 0), + (Pr &= 67108863), + (f = Math.imul(U, Pe)), + (u = Math.imul(U, Je)), + (u = (u + Math.imul(Z, Pe)) | 0), + (v = Math.imul(Z, Je)), + (f = (f + Math.imul(A, Re)) | 0), + (u = (u + Math.imul(A, Qe)) | 0), + (u = (u + Math.imul(L, Re)) | 0), + (v = (v + Math.imul(L, Qe)) | 0); + var qt = (((E + f) | 0) + ((u & 8191) << 13)) | 0; + (E = (((v + (u >>> 13)) | 0) + (qt >>> 26)) | 0), + (qt &= 67108863), + (f = Math.imul(ne, Pe)), + (u = Math.imul(ne, Je)), + (u = (u + Math.imul(pe, Pe)) | 0), + (v = Math.imul(pe, Je)), + (f = (f + Math.imul(U, Re)) | 0), + (u = (u + Math.imul(U, Qe)) | 0), + (u = (u + Math.imul(Z, Re)) | 0), + (v = (v + Math.imul(Z, Qe)) | 0), + (f = (f + Math.imul(A, Be)) | 0), + (u = (u + Math.imul(A, Xe)) | 0), + (u = (u + Math.imul(L, Be)) | 0), + (v = (v + Math.imul(L, Xe)) | 0); + var Ft = (((E + f) | 0) + ((u & 8191) << 13)) | 0; + (E = (((v + (u >>> 13)) | 0) + (Ft >>> 26)) | 0), + (Ft &= 67108863), + (f = Math.imul(fe, Pe)), + (u = Math.imul(fe, Je)), + (u = (u + Math.imul(ve, Pe)) | 0), + (v = Math.imul(ve, Je)), + (f = (f + Math.imul(ne, Re)) | 0), + (u = (u + Math.imul(ne, Qe)) | 0), + (u = (u + Math.imul(pe, Re)) | 0), + (v = (v + Math.imul(pe, Qe)) | 0), + (f = (f + Math.imul(U, Be)) | 0), + (u = (u + Math.imul(U, Xe)) | 0), + (u = (u + Math.imul(Z, Be)) | 0), + (v = (v + Math.imul(Z, Xe)) | 0), + (f = (f + Math.imul(A, Ae)) | 0), + (u = (u + Math.imul(A, et)) | 0), + (u = (u + Math.imul(L, Ae)) | 0), + (v = (v + Math.imul(L, et)) | 0); + var _r = (((E + f) | 0) + ((u & 8191) << 13)) | 0; + (E = (((v + (u >>> 13)) | 0) + (_r >>> 26)) | 0), + (_r &= 67108863), + (f = Math.imul(we, Pe)), + (u = Math.imul(we, Je)), + (u = (u + Math.imul(Ne, Pe)) | 0), + (v = Math.imul(Ne, Je)), + (f = (f + Math.imul(fe, Re)) | 0), + (u = (u + Math.imul(fe, Qe)) | 0), + (u = (u + Math.imul(ve, Re)) | 0), + (v = (v + Math.imul(ve, Qe)) | 0), + (f = (f + Math.imul(ne, Be)) | 0), + (u = (u + Math.imul(ne, Xe)) | 0), + (u = (u + Math.imul(pe, Be)) | 0), + (v = (v + Math.imul(pe, Xe)) | 0), + (f = (f + Math.imul(U, Ae)) | 0), + (u = (u + Math.imul(U, et)) | 0), + (u = (u + Math.imul(Z, Ae)) | 0), + (v = (v + Math.imul(Z, et)) | 0), + (f = (f + Math.imul(A, Oe)) | 0), + (u = (u + Math.imul(A, tt)) | 0), + (u = (u + Math.imul(L, Oe)) | 0), + (v = (v + Math.imul(L, tt)) | 0); + var xr = (((E + f) | 0) + ((u & 8191) << 13)) | 0; + (E = (((v + (u >>> 13)) | 0) + (xr >>> 26)) | 0), + (xr &= 67108863), + (f = Math.imul(Le, Pe)), + (u = Math.imul(Le, Je)), + (u = (u + Math.imul(ze, Pe)) | 0), + (v = Math.imul(ze, Je)), + (f = (f + Math.imul(we, Re)) | 0), + (u = (u + Math.imul(we, Qe)) | 0), + (u = (u + Math.imul(Ne, Re)) | 0), + (v = (v + Math.imul(Ne, Qe)) | 0), + (f = (f + Math.imul(fe, Be)) | 0), + (u = (u + Math.imul(fe, Xe)) | 0), + (u = (u + Math.imul(ve, Be)) | 0), + (v = (v + Math.imul(ve, Xe)) | 0), + (f = (f + Math.imul(ne, Ae)) | 0), + (u = (u + Math.imul(ne, et)) | 0), + (u = (u + Math.imul(pe, Ae)) | 0), + (v = (v + Math.imul(pe, et)) | 0), + (f = (f + Math.imul(U, Oe)) | 0), + (u = (u + Math.imul(U, tt)) | 0), + (u = (u + Math.imul(Z, Oe)) | 0), + (v = (v + Math.imul(Z, tt)) | 0), + (f = (f + Math.imul(A, qe)) | 0), + (u = (u + Math.imul(A, rt)) | 0), + (u = (u + Math.imul(L, qe)) | 0), + (v = (v + Math.imul(L, rt)) | 0); + var Tr = (((E + f) | 0) + ((u & 8191) << 13)) | 0; + (E = (((v + (u >>> 13)) | 0) + (Tr >>> 26)) | 0), + (Tr &= 67108863), + (f = Math.imul(Se, Pe)), + (u = Math.imul(Se, Je)), + (u = (u + Math.imul(Ke, Pe)) | 0), + (v = Math.imul(Ke, Je)), + (f = (f + Math.imul(Le, Re)) | 0), + (u = (u + Math.imul(Le, Qe)) | 0), + (u = (u + Math.imul(ze, Re)) | 0), + (v = (v + Math.imul(ze, Qe)) | 0), + (f = (f + Math.imul(we, Be)) | 0), + (u = (u + Math.imul(we, Xe)) | 0), + (u = (u + Math.imul(Ne, Be)) | 0), + (v = (v + Math.imul(Ne, Xe)) | 0), + (f = (f + Math.imul(fe, Ae)) | 0), + (u = (u + Math.imul(fe, et)) | 0), + (u = (u + Math.imul(ve, Ae)) | 0), + (v = (v + Math.imul(ve, et)) | 0), + (f = (f + Math.imul(ne, Oe)) | 0), + (u = (u + Math.imul(ne, tt)) | 0), + (u = (u + Math.imul(pe, Oe)) | 0), + (v = (v + Math.imul(pe, tt)) | 0), + (f = (f + Math.imul(U, qe)) | 0), + (u = (u + Math.imul(U, rt)) | 0), + (u = (u + Math.imul(Z, qe)) | 0), + (v = (v + Math.imul(Z, rt)) | 0), + (f = (f + Math.imul(A, Ie)) | 0), + (u = (u + Math.imul(A, Ye)) | 0), + (u = (u + Math.imul(L, Ie)) | 0), + (v = (v + Math.imul(L, Ye)) | 0); + var Er = (((E + f) | 0) + ((u & 8191) << 13)) | 0; + (E = (((v + (u >>> 13)) | 0) + (Er >>> 26)) | 0), + (Er &= 67108863), + (f = Math.imul(Me, Pe)), + (u = Math.imul(Me, Je)), + (u = (u + Math.imul(Ge, Pe)) | 0), + (v = Math.imul(Ge, Je)), + (f = (f + Math.imul(Se, Re)) | 0), + (u = (u + Math.imul(Se, Qe)) | 0), + (u = (u + Math.imul(Ke, Re)) | 0), + (v = (v + Math.imul(Ke, Qe)) | 0), + (f = (f + Math.imul(Le, Be)) | 0), + (u = (u + Math.imul(Le, Xe)) | 0), + (u = (u + Math.imul(ze, Be)) | 0), + (v = (v + Math.imul(ze, Xe)) | 0), + (f = (f + Math.imul(we, Ae)) | 0), + (u = (u + Math.imul(we, et)) | 0), + (u = (u + Math.imul(Ne, Ae)) | 0), + (v = (v + Math.imul(Ne, et)) | 0), + (f = (f + Math.imul(fe, Oe)) | 0), + (u = (u + Math.imul(fe, tt)) | 0), + (u = (u + Math.imul(ve, Oe)) | 0), + (v = (v + Math.imul(ve, tt)) | 0), + (f = (f + Math.imul(ne, qe)) | 0), + (u = (u + Math.imul(ne, rt)) | 0), + (u = (u + Math.imul(pe, qe)) | 0), + (v = (v + Math.imul(pe, rt)) | 0), + (f = (f + Math.imul(U, Ie)) | 0), + (u = (u + Math.imul(U, Ye)) | 0), + (u = (u + Math.imul(Z, Ie)) | 0), + (v = (v + Math.imul(Z, Ye)) | 0), + (f = (f + Math.imul(A, We)) | 0), + (u = (u + Math.imul(A, it)) | 0), + (u = (u + Math.imul(L, We)) | 0), + (v = (v + Math.imul(L, it)) | 0); + var Cr = (((E + f) | 0) + ((u & 8191) << 13)) | 0; + (E = (((v + (u >>> 13)) | 0) + (Cr >>> 26)) | 0), + (Cr &= 67108863), + (f = Math.imul(De, Pe)), + (u = Math.imul(De, Je)), + (u = (u + Math.imul(Ze, Pe)) | 0), + (v = Math.imul(Ze, Je)), + (f = (f + Math.imul(Me, Re)) | 0), + (u = (u + Math.imul(Me, Qe)) | 0), + (u = (u + Math.imul(Ge, Re)) | 0), + (v = (v + Math.imul(Ge, Qe)) | 0), + (f = (f + Math.imul(Se, Be)) | 0), + (u = (u + Math.imul(Se, Xe)) | 0), + (u = (u + Math.imul(Ke, Be)) | 0), + (v = (v + Math.imul(Ke, Xe)) | 0), + (f = (f + Math.imul(Le, Ae)) | 0), + (u = (u + Math.imul(Le, et)) | 0), + (u = (u + Math.imul(ze, Ae)) | 0), + (v = (v + Math.imul(ze, et)) | 0), + (f = (f + Math.imul(we, Oe)) | 0), + (u = (u + Math.imul(we, tt)) | 0), + (u = (u + Math.imul(Ne, Oe)) | 0), + (v = (v + Math.imul(Ne, tt)) | 0), + (f = (f + Math.imul(fe, qe)) | 0), + (u = (u + Math.imul(fe, rt)) | 0), + (u = (u + Math.imul(ve, qe)) | 0), + (v = (v + Math.imul(ve, rt)) | 0), + (f = (f + Math.imul(ne, Ie)) | 0), + (u = (u + Math.imul(ne, Ye)) | 0), + (u = (u + Math.imul(pe, Ie)) | 0), + (v = (v + Math.imul(pe, Ye)) | 0), + (f = (f + Math.imul(U, We)) | 0), + (u = (u + Math.imul(U, it)) | 0), + (u = (u + Math.imul(Z, We)) | 0), + (v = (v + Math.imul(Z, it)) | 0), + (f = (f + Math.imul(A, Ue)) | 0), + (u = (u + Math.imul(A, nt)) | 0), + (u = (u + Math.imul(L, Ue)) | 0), + (v = (v + Math.imul(L, nt)) | 0); + var Kr = (((E + f) | 0) + ((u & 8191) << 13)) | 0; + (E = (((v + (u >>> 13)) | 0) + (Kr >>> 26)) | 0), + (Kr &= 67108863), + (f = Math.imul(ke, Pe)), + (u = Math.imul(ke, Je)), + (u = (u + Math.imul($e, Pe)) | 0), + (v = Math.imul($e, Je)), + (f = (f + Math.imul(De, Re)) | 0), + (u = (u + Math.imul(De, Qe)) | 0), + (u = (u + Math.imul(Ze, Re)) | 0), + (v = (v + Math.imul(Ze, Qe)) | 0), + (f = (f + Math.imul(Me, Be)) | 0), + (u = (u + Math.imul(Me, Xe)) | 0), + (u = (u + Math.imul(Ge, Be)) | 0), + (v = (v + Math.imul(Ge, Xe)) | 0), + (f = (f + Math.imul(Se, Ae)) | 0), + (u = (u + Math.imul(Se, et)) | 0), + (u = (u + Math.imul(Ke, Ae)) | 0), + (v = (v + Math.imul(Ke, et)) | 0), + (f = (f + Math.imul(Le, Oe)) | 0), + (u = (u + Math.imul(Le, tt)) | 0), + (u = (u + Math.imul(ze, Oe)) | 0), + (v = (v + Math.imul(ze, tt)) | 0), + (f = (f + Math.imul(we, qe)) | 0), + (u = (u + Math.imul(we, rt)) | 0), + (u = (u + Math.imul(Ne, qe)) | 0), + (v = (v + Math.imul(Ne, rt)) | 0), + (f = (f + Math.imul(fe, Ie)) | 0), + (u = (u + Math.imul(fe, Ye)) | 0), + (u = (u + Math.imul(ve, Ie)) | 0), + (v = (v + Math.imul(ve, Ye)) | 0), + (f = (f + Math.imul(ne, We)) | 0), + (u = (u + Math.imul(ne, it)) | 0), + (u = (u + Math.imul(pe, We)) | 0), + (v = (v + Math.imul(pe, it)) | 0), + (f = (f + Math.imul(U, Ue)) | 0), + (u = (u + Math.imul(U, nt)) | 0), + (u = (u + Math.imul(Z, Ue)) | 0), + (v = (v + Math.imul(Z, nt)) | 0), + (f = (f + Math.imul(A, He)) | 0), + (u = (u + Math.imul(A, at)) | 0), + (u = (u + Math.imul(L, He)) | 0), + (v = (v + Math.imul(L, at)) | 0); + var Vr = (((E + f) | 0) + ((u & 8191) << 13)) | 0; + (E = (((v + (u >>> 13)) | 0) + (Vr >>> 26)) | 0), + (Vr &= 67108863), + (f = Math.imul(ke, Re)), + (u = Math.imul(ke, Qe)), + (u = (u + Math.imul($e, Re)) | 0), + (v = Math.imul($e, Qe)), + (f = (f + Math.imul(De, Be)) | 0), + (u = (u + Math.imul(De, Xe)) | 0), + (u = (u + Math.imul(Ze, Be)) | 0), + (v = (v + Math.imul(Ze, Xe)) | 0), + (f = (f + Math.imul(Me, Ae)) | 0), + (u = (u + Math.imul(Me, et)) | 0), + (u = (u + Math.imul(Ge, Ae)) | 0), + (v = (v + Math.imul(Ge, et)) | 0), + (f = (f + Math.imul(Se, Oe)) | 0), + (u = (u + Math.imul(Se, tt)) | 0), + (u = (u + Math.imul(Ke, Oe)) | 0), + (v = (v + Math.imul(Ke, tt)) | 0), + (f = (f + Math.imul(Le, qe)) | 0), + (u = (u + Math.imul(Le, rt)) | 0), + (u = (u + Math.imul(ze, qe)) | 0), + (v = (v + Math.imul(ze, rt)) | 0), + (f = (f + Math.imul(we, Ie)) | 0), + (u = (u + Math.imul(we, Ye)) | 0), + (u = (u + Math.imul(Ne, Ie)) | 0), + (v = (v + Math.imul(Ne, Ye)) | 0), + (f = (f + Math.imul(fe, We)) | 0), + (u = (u + Math.imul(fe, it)) | 0), + (u = (u + Math.imul(ve, We)) | 0), + (v = (v + Math.imul(ve, it)) | 0), + (f = (f + Math.imul(ne, Ue)) | 0), + (u = (u + Math.imul(ne, nt)) | 0), + (u = (u + Math.imul(pe, Ue)) | 0), + (v = (v + Math.imul(pe, nt)) | 0), + (f = (f + Math.imul(U, He)) | 0), + (u = (u + Math.imul(U, at)) | 0), + (u = (u + Math.imul(Z, He)) | 0), + (v = (v + Math.imul(Z, at)) | 0); + var Ur = (((E + f) | 0) + ((u & 8191) << 13)) | 0; + (E = (((v + (u >>> 13)) | 0) + (Ur >>> 26)) | 0), + (Ur &= 67108863), + (f = Math.imul(ke, Be)), + (u = Math.imul(ke, Xe)), + (u = (u + Math.imul($e, Be)) | 0), + (v = Math.imul($e, Xe)), + (f = (f + Math.imul(De, Ae)) | 0), + (u = (u + Math.imul(De, et)) | 0), + (u = (u + Math.imul(Ze, Ae)) | 0), + (v = (v + Math.imul(Ze, et)) | 0), + (f = (f + Math.imul(Me, Oe)) | 0), + (u = (u + Math.imul(Me, tt)) | 0), + (u = (u + Math.imul(Ge, Oe)) | 0), + (v = (v + Math.imul(Ge, tt)) | 0), + (f = (f + Math.imul(Se, qe)) | 0), + (u = (u + Math.imul(Se, rt)) | 0), + (u = (u + Math.imul(Ke, qe)) | 0), + (v = (v + Math.imul(Ke, rt)) | 0), + (f = (f + Math.imul(Le, Ie)) | 0), + (u = (u + Math.imul(Le, Ye)) | 0), + (u = (u + Math.imul(ze, Ie)) | 0), + (v = (v + Math.imul(ze, Ye)) | 0), + (f = (f + Math.imul(we, We)) | 0), + (u = (u + Math.imul(we, it)) | 0), + (u = (u + Math.imul(Ne, We)) | 0), + (v = (v + Math.imul(Ne, it)) | 0), + (f = (f + Math.imul(fe, Ue)) | 0), + (u = (u + Math.imul(fe, nt)) | 0), + (u = (u + Math.imul(ve, Ue)) | 0), + (v = (v + Math.imul(ve, nt)) | 0), + (f = (f + Math.imul(ne, He)) | 0), + (u = (u + Math.imul(ne, at)) | 0), + (u = (u + Math.imul(pe, He)) | 0), + (v = (v + Math.imul(pe, at)) | 0); + var Rr = (((E + f) | 0) + ((u & 8191) << 13)) | 0; + (E = (((v + (u >>> 13)) | 0) + (Rr >>> 26)) | 0), + (Rr &= 67108863), + (f = Math.imul(ke, Ae)), + (u = Math.imul(ke, et)), + (u = (u + Math.imul($e, Ae)) | 0), + (v = Math.imul($e, et)), + (f = (f + Math.imul(De, Oe)) | 0), + (u = (u + Math.imul(De, tt)) | 0), + (u = (u + Math.imul(Ze, Oe)) | 0), + (v = (v + Math.imul(Ze, tt)) | 0), + (f = (f + Math.imul(Me, qe)) | 0), + (u = (u + Math.imul(Me, rt)) | 0), + (u = (u + Math.imul(Ge, qe)) | 0), + (v = (v + Math.imul(Ge, rt)) | 0), + (f = (f + Math.imul(Se, Ie)) | 0), + (u = (u + Math.imul(Se, Ye)) | 0), + (u = (u + Math.imul(Ke, Ie)) | 0), + (v = (v + Math.imul(Ke, Ye)) | 0), + (f = (f + Math.imul(Le, We)) | 0), + (u = (u + Math.imul(Le, it)) | 0), + (u = (u + Math.imul(ze, We)) | 0), + (v = (v + Math.imul(ze, it)) | 0), + (f = (f + Math.imul(we, Ue)) | 0), + (u = (u + Math.imul(we, nt)) | 0), + (u = (u + Math.imul(Ne, Ue)) | 0), + (v = (v + Math.imul(Ne, nt)) | 0), + (f = (f + Math.imul(fe, He)) | 0), + (u = (u + Math.imul(fe, at)) | 0), + (u = (u + Math.imul(ve, He)) | 0), + (v = (v + Math.imul(ve, at)) | 0); + var Or = (((E + f) | 0) + ((u & 8191) << 13)) | 0; + (E = (((v + (u >>> 13)) | 0) + (Or >>> 26)) | 0), + (Or &= 67108863), + (f = Math.imul(ke, Oe)), + (u = Math.imul(ke, tt)), + (u = (u + Math.imul($e, Oe)) | 0), + (v = Math.imul($e, tt)), + (f = (f + Math.imul(De, qe)) | 0), + (u = (u + Math.imul(De, rt)) | 0), + (u = (u + Math.imul(Ze, qe)) | 0), + (v = (v + Math.imul(Ze, rt)) | 0), + (f = (f + Math.imul(Me, Ie)) | 0), + (u = (u + Math.imul(Me, Ye)) | 0), + (u = (u + Math.imul(Ge, Ie)) | 0), + (v = (v + Math.imul(Ge, Ye)) | 0), + (f = (f + Math.imul(Se, We)) | 0), + (u = (u + Math.imul(Se, it)) | 0), + (u = (u + Math.imul(Ke, We)) | 0), + (v = (v + Math.imul(Ke, it)) | 0), + (f = (f + Math.imul(Le, Ue)) | 0), + (u = (u + Math.imul(Le, nt)) | 0), + (u = (u + Math.imul(ze, Ue)) | 0), + (v = (v + Math.imul(ze, nt)) | 0), + (f = (f + Math.imul(we, He)) | 0), + (u = (u + Math.imul(we, at)) | 0), + (u = (u + Math.imul(Ne, He)) | 0), + (v = (v + Math.imul(Ne, at)) | 0); + var ur = (((E + f) | 0) + ((u & 8191) << 13)) | 0; + (E = (((v + (u >>> 13)) | 0) + (ur >>> 26)) | 0), + (ur &= 67108863), + (f = Math.imul(ke, qe)), + (u = Math.imul(ke, rt)), + (u = (u + Math.imul($e, qe)) | 0), + (v = Math.imul($e, rt)), + (f = (f + Math.imul(De, Ie)) | 0), + (u = (u + Math.imul(De, Ye)) | 0), + (u = (u + Math.imul(Ze, Ie)) | 0), + (v = (v + Math.imul(Ze, Ye)) | 0), + (f = (f + Math.imul(Me, We)) | 0), + (u = (u + Math.imul(Me, it)) | 0), + (u = (u + Math.imul(Ge, We)) | 0), + (v = (v + Math.imul(Ge, it)) | 0), + (f = (f + Math.imul(Se, Ue)) | 0), + (u = (u + Math.imul(Se, nt)) | 0), + (u = (u + Math.imul(Ke, Ue)) | 0), + (v = (v + Math.imul(Ke, nt)) | 0), + (f = (f + Math.imul(Le, He)) | 0), + (u = (u + Math.imul(Le, at)) | 0), + (u = (u + Math.imul(ze, He)) | 0), + (v = (v + Math.imul(ze, at)) | 0); + var Hr = (((E + f) | 0) + ((u & 8191) << 13)) | 0; + (E = (((v + (u >>> 13)) | 0) + (Hr >>> 26)) | 0), + (Hr &= 67108863), + (f = Math.imul(ke, Ie)), + (u = Math.imul(ke, Ye)), + (u = (u + Math.imul($e, Ie)) | 0), + (v = Math.imul($e, Ye)), + (f = (f + Math.imul(De, We)) | 0), + (u = (u + Math.imul(De, it)) | 0), + (u = (u + Math.imul(Ze, We)) | 0), + (v = (v + Math.imul(Ze, it)) | 0), + (f = (f + Math.imul(Me, Ue)) | 0), + (u = (u + Math.imul(Me, nt)) | 0), + (u = (u + Math.imul(Ge, Ue)) | 0), + (v = (v + Math.imul(Ge, nt)) | 0), + (f = (f + Math.imul(Se, He)) | 0), + (u = (u + Math.imul(Se, at)) | 0), + (u = (u + Math.imul(Ke, He)) | 0), + (v = (v + Math.imul(Ke, at)) | 0); + var hr = (((E + f) | 0) + ((u & 8191) << 13)) | 0; + (E = (((v + (u >>> 13)) | 0) + (hr >>> 26)) | 0), + (hr &= 67108863), + (f = Math.imul(ke, We)), + (u = Math.imul(ke, it)), + (u = (u + Math.imul($e, We)) | 0), + (v = Math.imul($e, it)), + (f = (f + Math.imul(De, Ue)) | 0), + (u = (u + Math.imul(De, nt)) | 0), + (u = (u + Math.imul(Ze, Ue)) | 0), + (v = (v + Math.imul(Ze, nt)) | 0), + (f = (f + Math.imul(Me, He)) | 0), + (u = (u + Math.imul(Me, at)) | 0), + (u = (u + Math.imul(Ge, He)) | 0), + (v = (v + Math.imul(Ge, at)) | 0); + var Lr = (((E + f) | 0) + ((u & 8191) << 13)) | 0; + (E = (((v + (u >>> 13)) | 0) + (Lr >>> 26)) | 0), + (Lr &= 67108863), + (f = Math.imul(ke, Ue)), + (u = Math.imul(ke, nt)), + (u = (u + Math.imul($e, Ue)) | 0), + (v = Math.imul($e, nt)), + (f = (f + Math.imul(De, He)) | 0), + (u = (u + Math.imul(De, at)) | 0), + (u = (u + Math.imul(Ze, He)) | 0), + (v = (v + Math.imul(Ze, at)) | 0); + var Zr = (((E + f) | 0) + ((u & 8191) << 13)) | 0; + (E = (((v + (u >>> 13)) | 0) + (Zr >>> 26)) | 0), + (Zr &= 67108863), + (f = Math.imul(ke, He)), + (u = Math.imul(ke, at)), + (u = (u + Math.imul($e, He)) | 0), + (v = Math.imul($e, at)); + var xn = (((E + f) | 0) + ((u & 8191) << 13)) | 0; + return ( + (E = (((v + (u >>> 13)) | 0) + (xn >>> 26)) | 0), + (xn &= 67108863), + (T[0] = Pr), + (T[1] = qt), + (T[2] = Ft), + (T[3] = _r), + (T[4] = xr), + (T[5] = Tr), + (T[6] = Er), + (T[7] = Cr), + (T[8] = Kr), + (T[9] = Vr), + (T[10] = Ur), + (T[11] = Rr), + (T[12] = Or), + (T[13] = ur), + (T[14] = Hr), + (T[15] = hr), + (T[16] = Lr), + (T[17] = Zr), + (T[18] = xn), + E !== 0 && ((T[19] = E), y.length++), + y + ); + }; + Math.imul || (k = I); + function O(g, o, p) { + (p.negative = o.negative ^ g.negative), + (p.length = g.length + o.length); + for (var y = 0, h = 0, b = 0; b < p.length - 1; b++) { + var T = h; + h = 0; + for ( + var E = y & 67108863, + f = Math.min(b, o.length - 1), + u = Math.max(0, b - g.length + 1); + u <= f; + u++ + ) { + var v = b - u, + R = g.words[v] | 0, + A = o.words[u] | 0, + L = R * A, + G = L & 67108863; + (T = (T + ((L / 67108864) | 0)) | 0), + (G = (G + E) | 0), + (E = G & 67108863), + (T = (T + (G >>> 26)) | 0), + (h += T >>> 26), + (T &= 67108863); + } + (p.words[b] = E), (y = T), (T = h); + } + return y !== 0 ? (p.words[b] = y) : p.length--, p.strip(); + } + function D(g, o, p) { + var y = new W(); + return y.mulp(g, o, p); + } + a.prototype.mulTo = function (o, p) { + var y, + h = this.length + o.length; + return ( + this.length === 10 && o.length === 10 + ? (y = k(this, o, p)) + : h < 63 + ? (y = I(this, o, p)) + : h < 1024 + ? (y = O(this, o, p)) + : (y = D(this, o, p)), + y + ); + }; + function W(g, o) { + (this.x = g), (this.y = o); + } + (W.prototype.makeRBT = function (o) { + for ( + var p = new Array(o), y = a.prototype._countBits(o) - 1, h = 0; + h < o; + h++ + ) + p[h] = this.revBin(h, y, o); + return p; + }), + (W.prototype.revBin = function (o, p, y) { + if (o === 0 || o === y - 1) return o; + for (var h = 0, b = 0; b < p; b++) + (h |= (o & 1) << (p - b - 1)), (o >>= 1); + return h; + }), + (W.prototype.permute = function (o, p, y, h, b, T) { + for (var E = 0; E < T; E++) (h[E] = p[o[E]]), (b[E] = y[o[E]]); + }), + (W.prototype.transform = function (o, p, y, h, b, T) { + this.permute(T, o, p, y, h, b); + for (var E = 1; E < b; E <<= 1) + for ( + var f = E << 1, + u = Math.cos((2 * Math.PI) / f), + v = Math.sin((2 * Math.PI) / f), + R = 0; + R < b; + R += f + ) + for (var A = u, L = v, G = 0; G < E; G++) { + var U = y[R + G], + Z = h[R + G], + de = y[R + G + E], + ne = h[R + G + E], + pe = A * de - L * ne; + (ne = A * ne + L * de), + (de = pe), + (y[R + G] = U + de), + (h[R + G] = Z + ne), + (y[R + G + E] = U - de), + (h[R + G + E] = Z - ne), + G !== f && + ((pe = u * A - v * L), (L = u * L + v * A), (A = pe)); + } + }), + (W.prototype.guessLen13b = function (o, p) { + var y = Math.max(p, o) | 1, + h = y & 1, + b = 0; + for (y = (y / 2) | 0; y; y = y >>> 1) b++; + return 1 << (b + 1 + h); + }), + (W.prototype.conjugate = function (o, p, y) { + if (!(y <= 1)) + for (var h = 0; h < y / 2; h++) { + var b = o[h]; + (o[h] = o[y - h - 1]), + (o[y - h - 1] = b), + (b = p[h]), + (p[h] = -p[y - h - 1]), + (p[y - h - 1] = -b); + } + }), + (W.prototype.normalize13b = function (o, p) { + for (var y = 0, h = 0; h < p / 2; h++) { + var b = + Math.round(o[2 * h + 1] / p) * 8192 + + Math.round(o[2 * h] / p) + + y; + (o[h] = b & 67108863), + b < 67108864 ? (y = 0) : (y = (b / 67108864) | 0); + } + return o; + }), + (W.prototype.convert13b = function (o, p, y, h) { + for (var b = 0, T = 0; T < p; T++) + (b = b + (o[T] | 0)), + (y[2 * T] = b & 8191), + (b = b >>> 13), + (y[2 * T + 1] = b & 8191), + (b = b >>> 13); + for (T = 2 * p; T < h; ++T) y[T] = 0; + t(b === 0), t((b & -8192) === 0); + }), + (W.prototype.stub = function (o) { + for (var p = new Array(o), y = 0; y < o; y++) p[y] = 0; + return p; + }), + (W.prototype.mulp = function (o, p, y) { + var h = 2 * this.guessLen13b(o.length, p.length), + b = this.makeRBT(h), + T = this.stub(h), + E = new Array(h), + f = new Array(h), + u = new Array(h), + v = new Array(h), + R = new Array(h), + A = new Array(h), + L = y.words; + (L.length = h), + this.convert13b(o.words, o.length, E, h), + this.convert13b(p.words, p.length, v, h), + this.transform(E, T, f, u, h, b), + this.transform(v, T, R, A, h, b); + for (var G = 0; G < h; G++) { + var U = f[G] * R[G] - u[G] * A[G]; + (u[G] = f[G] * A[G] + u[G] * R[G]), (f[G] = U); + } + return ( + this.conjugate(f, u, h), + this.transform(f, u, L, T, h, b), + this.conjugate(L, T, h), + this.normalize13b(L, h), + (y.negative = o.negative ^ p.negative), + (y.length = o.length + p.length), + y.strip() + ); + }), + (a.prototype.mul = function (o) { + var p = new a(null); + return ( + (p.words = new Array(this.length + o.length)), this.mulTo(o, p) + ); + }), + (a.prototype.mulf = function (o) { + var p = new a(null); + return (p.words = new Array(this.length + o.length)), D(this, o, p); + }), + (a.prototype.imul = function (o) { + return this.clone().mulTo(o, this); + }), + (a.prototype.imuln = function (o) { + t(typeof o == "number"), t(o < 67108864); + for (var p = 0, y = 0; y < this.length; y++) { + var h = (this.words[y] | 0) * o, + b = (h & 67108863) + (p & 67108863); + (p >>= 26), + (p += (h / 67108864) | 0), + (p += b >>> 26), + (this.words[y] = b & 67108863); + } + return p !== 0 && ((this.words[y] = p), this.length++), this; + }), + (a.prototype.muln = function (o) { + return this.clone().imuln(o); + }), + (a.prototype.sqr = function () { + return this.mul(this); + }), + (a.prototype.isqr = function () { + return this.imul(this.clone()); + }), + (a.prototype.pow = function (o) { + var p = C(o); + if (p.length === 0) return new a(1); + for ( + var y = this, h = 0; + h < p.length && p[h] === 0; + h++, y = y.sqr() + ); + if (++h < p.length) + for (var b = y.sqr(); h < p.length; h++, b = b.sqr()) + p[h] !== 0 && (y = y.mul(b)); + return y; + }), + (a.prototype.iushln = function (o) { + t(typeof o == "number" && o >= 0); + var p = o % 26, + y = (o - p) / 26, + h = (67108863 >>> (26 - p)) << (26 - p), + b; + if (p !== 0) { + var T = 0; + for (b = 0; b < this.length; b++) { + var E = this.words[b] & h, + f = ((this.words[b] | 0) - E) << p; + (this.words[b] = f | T), (T = E >>> (26 - p)); + } + T && ((this.words[b] = T), this.length++); + } + if (y !== 0) { + for (b = this.length - 1; b >= 0; b--) + this.words[b + y] = this.words[b]; + for (b = 0; b < y; b++) this.words[b] = 0; + this.length += y; + } + return this.strip(); + }), + (a.prototype.ishln = function (o) { + return t(this.negative === 0), this.iushln(o); + }), + (a.prototype.iushrn = function (o, p, y) { + t(typeof o == "number" && o >= 0); + var h; + p ? (h = (p - (p % 26)) / 26) : (h = 0); + var b = o % 26, + T = Math.min((o - b) / 26, this.length), + E = 67108863 ^ ((67108863 >>> b) << b), + f = y; + if (((h -= T), (h = Math.max(0, h)), f)) { + for (var u = 0; u < T; u++) f.words[u] = this.words[u]; + f.length = T; + } + if (T !== 0) + if (this.length > T) + for (this.length -= T, u = 0; u < this.length; u++) + this.words[u] = this.words[u + T]; + else (this.words[0] = 0), (this.length = 1); + var v = 0; + for (u = this.length - 1; u >= 0 && (v !== 0 || u >= h); u--) { + var R = this.words[u] | 0; + (this.words[u] = (v << (26 - b)) | (R >>> b)), (v = R & E); + } + return ( + f && v !== 0 && (f.words[f.length++] = v), + this.length === 0 && ((this.words[0] = 0), (this.length = 1)), + this.strip() + ); + }), + (a.prototype.ishrn = function (o, p, y) { + return t(this.negative === 0), this.iushrn(o, p, y); + }), + (a.prototype.shln = function (o) { + return this.clone().ishln(o); + }), + (a.prototype.ushln = function (o) { + return this.clone().iushln(o); + }), + (a.prototype.shrn = function (o) { + return this.clone().ishrn(o); + }), + (a.prototype.ushrn = function (o) { + return this.clone().iushrn(o); + }), + (a.prototype.testn = function (o) { + t(typeof o == "number" && o >= 0); + var p = o % 26, + y = (o - p) / 26, + h = 1 << p; + if (this.length <= y) return !1; + var b = this.words[y]; + return !!(b & h); + }), + (a.prototype.imaskn = function (o) { + t(typeof o == "number" && o >= 0); + var p = o % 26, + y = (o - p) / 26; + if ( + (t(this.negative === 0, "imaskn works only with positive numbers"), + this.length <= y) + ) + return this; + if ( + (p !== 0 && y++, (this.length = Math.min(y, this.length)), p !== 0) + ) { + var h = 67108863 ^ ((67108863 >>> p) << p); + this.words[this.length - 1] &= h; + } + return this.strip(); + }), + (a.prototype.maskn = function (o) { + return this.clone().imaskn(o); + }), + (a.prototype.iaddn = function (o) { + return ( + t(typeof o == "number"), + t(o < 67108864), + o < 0 + ? this.isubn(-o) + : this.negative !== 0 + ? this.length === 1 && (this.words[0] | 0) < o + ? ((this.words[0] = o - (this.words[0] | 0)), + (this.negative = 0), + this) + : ((this.negative = 0), + this.isubn(o), + (this.negative = 1), + this) + : this._iaddn(o) + ); + }), + (a.prototype._iaddn = function (o) { + this.words[0] += o; + for (var p = 0; p < this.length && this.words[p] >= 67108864; p++) + (this.words[p] -= 67108864), + p === this.length - 1 + ? (this.words[p + 1] = 1) + : this.words[p + 1]++; + return (this.length = Math.max(this.length, p + 1)), this; + }), + (a.prototype.isubn = function (o) { + if ((t(typeof o == "number"), t(o < 67108864), o < 0)) + return this.iaddn(-o); + if (this.negative !== 0) + return ( + (this.negative = 0), this.iaddn(o), (this.negative = 1), this + ); + if (((this.words[0] -= o), this.length === 1 && this.words[0] < 0)) + (this.words[0] = -this.words[0]), (this.negative = 1); + else + for (var p = 0; p < this.length && this.words[p] < 0; p++) + (this.words[p] += 67108864), (this.words[p + 1] -= 1); + return this.strip(); + }), + (a.prototype.addn = function (o) { + return this.clone().iaddn(o); + }), + (a.prototype.subn = function (o) { + return this.clone().isubn(o); + }), + (a.prototype.iabs = function () { + return (this.negative = 0), this; + }), + (a.prototype.abs = function () { + return this.clone().iabs(); + }), + (a.prototype._ishlnsubmul = function (o, p, y) { + var h = o.length + y, + b; + this._expand(h); + var T, + E = 0; + for (b = 0; b < o.length; b++) { + T = (this.words[b + y] | 0) + E; + var f = (o.words[b] | 0) * p; + (T -= f & 67108863), + (E = (T >> 26) - ((f / 67108864) | 0)), + (this.words[b + y] = T & 67108863); + } + for (; b < this.length - y; b++) + (T = (this.words[b + y] | 0) + E), + (E = T >> 26), + (this.words[b + y] = T & 67108863); + if (E === 0) return this.strip(); + for (t(E === -1), E = 0, b = 0; b < this.length; b++) + (T = -(this.words[b] | 0) + E), + (E = T >> 26), + (this.words[b] = T & 67108863); + return (this.negative = 1), this.strip(); + }), + (a.prototype._wordDiv = function (o, p) { + var y = this.length - o.length, + h = this.clone(), + b = o, + T = b.words[b.length - 1] | 0, + E = this._countBits(T); + (y = 26 - E), + y !== 0 && + ((b = b.ushln(y)), h.iushln(y), (T = b.words[b.length - 1] | 0)); + var f = h.length - b.length, + u; + if (p !== "mod") { + (u = new a(null)), + (u.length = f + 1), + (u.words = new Array(u.length)); + for (var v = 0; v < u.length; v++) u.words[v] = 0; + } + var R = h.clone()._ishlnsubmul(b, 1, f); + R.negative === 0 && ((h = R), u && (u.words[f] = 1)); + for (var A = f - 1; A >= 0; A--) { + var L = + (h.words[b.length + A] | 0) * 67108864 + + (h.words[b.length + A - 1] | 0); + for ( + L = Math.min((L / T) | 0, 67108863), h._ishlnsubmul(b, L, A); + h.negative !== 0; + + ) + L--, + (h.negative = 0), + h._ishlnsubmul(b, 1, A), + h.isZero() || (h.negative ^= 1); + u && (u.words[A] = L); + } + return ( + u && u.strip(), + h.strip(), + p !== "div" && y !== 0 && h.iushrn(y), + { div: u || null, mod: h } + ); + }), + (a.prototype.divmod = function (o, p, y) { + if ((t(!o.isZero()), this.isZero())) + return { div: new a(0), mod: new a(0) }; + var h, b, T; + return this.negative !== 0 && o.negative === 0 + ? ((T = this.neg().divmod(o, p)), + p !== "mod" && (h = T.div.neg()), + p !== "div" && + ((b = T.mod.neg()), y && b.negative !== 0 && b.iadd(o)), + { div: h, mod: b }) + : this.negative === 0 && o.negative !== 0 + ? ((T = this.divmod(o.neg(), p)), + p !== "mod" && (h = T.div.neg()), + { div: h, mod: T.mod }) + : (this.negative & o.negative) !== 0 + ? ((T = this.neg().divmod(o.neg(), p)), + p !== "div" && + ((b = T.mod.neg()), y && b.negative !== 0 && b.isub(o)), + { div: T.div, mod: b }) + : o.length > this.length || this.cmp(o) < 0 + ? { div: new a(0), mod: this } + : o.length === 1 + ? p === "div" + ? { div: this.divn(o.words[0]), mod: null } + : p === "mod" + ? { div: null, mod: new a(this.modn(o.words[0])) } + : { + div: this.divn(o.words[0]), + mod: new a(this.modn(o.words[0])), + } + : this._wordDiv(o, p); + }), + (a.prototype.div = function (o) { + return this.divmod(o, "div", !1).div; + }), + (a.prototype.mod = function (o) { + return this.divmod(o, "mod", !1).mod; + }), + (a.prototype.umod = function (o) { + return this.divmod(o, "mod", !0).mod; + }), + (a.prototype.divRound = function (o) { + var p = this.divmod(o); + if (p.mod.isZero()) return p.div; + var y = p.div.negative !== 0 ? p.mod.isub(o) : p.mod, + h = o.ushrn(1), + b = o.andln(1), + T = y.cmp(h); + return T < 0 || (b === 1 && T === 0) + ? p.div + : p.div.negative !== 0 + ? p.div.isubn(1) + : p.div.iaddn(1); + }), + (a.prototype.modn = function (o) { + t(o <= 67108863); + for (var p = (1 << 26) % o, y = 0, h = this.length - 1; h >= 0; h--) + y = (p * y + (this.words[h] | 0)) % o; + return y; + }), + (a.prototype.idivn = function (o) { + t(o <= 67108863); + for (var p = 0, y = this.length - 1; y >= 0; y--) { + var h = (this.words[y] | 0) + p * 67108864; + (this.words[y] = (h / o) | 0), (p = h % o); + } + return this.strip(); + }), + (a.prototype.divn = function (o) { + return this.clone().idivn(o); + }), + (a.prototype.egcd = function (o) { + t(o.negative === 0), t(!o.isZero()); + var p = this, + y = o.clone(); + p.negative !== 0 ? (p = p.umod(o)) : (p = p.clone()); + for ( + var h = new a(1), b = new a(0), T = new a(0), E = new a(1), f = 0; + p.isEven() && y.isEven(); + + ) + p.iushrn(1), y.iushrn(1), ++f; + for (var u = y.clone(), v = p.clone(); !p.isZero(); ) { + for ( + var R = 0, A = 1; + (p.words[0] & A) === 0 && R < 26; + ++R, A <<= 1 + ); + if (R > 0) + for (p.iushrn(R); R-- > 0; ) + (h.isOdd() || b.isOdd()) && (h.iadd(u), b.isub(v)), + h.iushrn(1), + b.iushrn(1); + for ( + var L = 0, G = 1; + (y.words[0] & G) === 0 && L < 26; + ++L, G <<= 1 + ); + if (L > 0) + for (y.iushrn(L); L-- > 0; ) + (T.isOdd() || E.isOdd()) && (T.iadd(u), E.isub(v)), + T.iushrn(1), + E.iushrn(1); + p.cmp(y) >= 0 + ? (p.isub(y), h.isub(T), b.isub(E)) + : (y.isub(p), T.isub(h), E.isub(b)); + } + return { a: T, b: E, gcd: y.iushln(f) }; + }), + (a.prototype._invmp = function (o) { + t(o.negative === 0), t(!o.isZero()); + var p = this, + y = o.clone(); + p.negative !== 0 ? (p = p.umod(o)) : (p = p.clone()); + for ( + var h = new a(1), b = new a(0), T = y.clone(); + p.cmpn(1) > 0 && y.cmpn(1) > 0; + + ) { + for ( + var E = 0, f = 1; + (p.words[0] & f) === 0 && E < 26; + ++E, f <<= 1 + ); + if (E > 0) + for (p.iushrn(E); E-- > 0; ) h.isOdd() && h.iadd(T), h.iushrn(1); + for ( + var u = 0, v = 1; + (y.words[0] & v) === 0 && u < 26; + ++u, v <<= 1 + ); + if (u > 0) + for (y.iushrn(u); u-- > 0; ) b.isOdd() && b.iadd(T), b.iushrn(1); + p.cmp(y) >= 0 ? (p.isub(y), h.isub(b)) : (y.isub(p), b.isub(h)); + } + var R; + return ( + p.cmpn(1) === 0 ? (R = h) : (R = b), R.cmpn(0) < 0 && R.iadd(o), R + ); + }), + (a.prototype.gcd = function (o) { + if (this.isZero()) return o.abs(); + if (o.isZero()) return this.abs(); + var p = this.clone(), + y = o.clone(); + (p.negative = 0), (y.negative = 0); + for (var h = 0; p.isEven() && y.isEven(); h++) + p.iushrn(1), y.iushrn(1); + do { + for (; p.isEven(); ) p.iushrn(1); + for (; y.isEven(); ) y.iushrn(1); + var b = p.cmp(y); + if (b < 0) { + var T = p; + (p = y), (y = T); + } else if (b === 0 || y.cmpn(1) === 0) break; + p.isub(y); + } while (!0); + return y.iushln(h); + }), + (a.prototype.invm = function (o) { + return this.egcd(o).a.umod(o); + }), + (a.prototype.isEven = function () { + return (this.words[0] & 1) === 0; + }), + (a.prototype.isOdd = function () { + return (this.words[0] & 1) === 1; + }), + (a.prototype.andln = function (o) { + return this.words[0] & o; + }), + (a.prototype.bincn = function (o) { + t(typeof o == "number"); + var p = o % 26, + y = (o - p) / 26, + h = 1 << p; + if (this.length <= y) + return this._expand(y + 1), (this.words[y] |= h), this; + for (var b = h, T = y; b !== 0 && T < this.length; T++) { + var E = this.words[T] | 0; + (E += b), (b = E >>> 26), (E &= 67108863), (this.words[T] = E); + } + return b !== 0 && ((this.words[T] = b), this.length++), this; + }), + (a.prototype.isZero = function () { + return this.length === 1 && this.words[0] === 0; + }), + (a.prototype.cmpn = function (o) { + var p = o < 0; + if (this.negative !== 0 && !p) return -1; + if (this.negative === 0 && p) return 1; + this.strip(); + var y; + if (this.length > 1) y = 1; + else { + p && (o = -o), t(o <= 67108863, "Number is too big"); + var h = this.words[0] | 0; + y = h === o ? 0 : h < o ? -1 : 1; + } + return this.negative !== 0 ? -y | 0 : y; + }), + (a.prototype.cmp = function (o) { + if (this.negative !== 0 && o.negative === 0) return -1; + if (this.negative === 0 && o.negative !== 0) return 1; + var p = this.ucmp(o); + return this.negative !== 0 ? -p | 0 : p; + }), + (a.prototype.ucmp = function (o) { + if (this.length > o.length) return 1; + if (this.length < o.length) return -1; + for (var p = 0, y = this.length - 1; y >= 0; y--) { + var h = this.words[y] | 0, + b = o.words[y] | 0; + if (h !== b) { + h < b ? (p = -1) : h > b && (p = 1); + break; + } + } + return p; + }), + (a.prototype.gtn = function (o) { + return this.cmpn(o) === 1; + }), + (a.prototype.gt = function (o) { + return this.cmp(o) === 1; + }), + (a.prototype.gten = function (o) { + return this.cmpn(o) >= 0; + }), + (a.prototype.gte = function (o) { + return this.cmp(o) >= 0; + }), + (a.prototype.ltn = function (o) { + return this.cmpn(o) === -1; + }), + (a.prototype.lt = function (o) { + return this.cmp(o) === -1; + }), + (a.prototype.lten = function (o) { + return this.cmpn(o) <= 0; + }), + (a.prototype.lte = function (o) { + return this.cmp(o) <= 0; + }), + (a.prototype.eqn = function (o) { + return this.cmpn(o) === 0; + }), + (a.prototype.eq = function (o) { + return this.cmp(o) === 0; + }), + (a.red = function (o) { + return new Y(o); + }), + (a.prototype.toRed = function (o) { + return ( + t(!this.red, "Already a number in reduction context"), + t(this.negative === 0, "red works only with positives"), + o.convertTo(this)._forceRed(o) + ); + }), + (a.prototype.fromRed = function () { + return ( + t(this.red, "fromRed works only with numbers in reduction context"), + this.red.convertFrom(this) + ); + }), + (a.prototype._forceRed = function (o) { + return (this.red = o), this; + }), + (a.prototype.forceRed = function (o) { + return ( + t(!this.red, "Already a number in reduction context"), + this._forceRed(o) + ); + }), + (a.prototype.redAdd = function (o) { + return ( + t(this.red, "redAdd works only with red numbers"), + this.red.add(this, o) + ); + }), + (a.prototype.redIAdd = function (o) { + return ( + t(this.red, "redIAdd works only with red numbers"), + this.red.iadd(this, o) + ); + }), + (a.prototype.redSub = function (o) { + return ( + t(this.red, "redSub works only with red numbers"), + this.red.sub(this, o) + ); + }), + (a.prototype.redISub = function (o) { + return ( + t(this.red, "redISub works only with red numbers"), + this.red.isub(this, o) + ); + }), + (a.prototype.redShl = function (o) { + return ( + t(this.red, "redShl works only with red numbers"), + this.red.shl(this, o) + ); + }), + (a.prototype.redMul = function (o) { + return ( + t(this.red, "redMul works only with red numbers"), + this.red._verify2(this, o), + this.red.mul(this, o) + ); + }), + (a.prototype.redIMul = function (o) { + return ( + t(this.red, "redMul works only with red numbers"), + this.red._verify2(this, o), + this.red.imul(this, o) + ); + }), + (a.prototype.redSqr = function () { + return ( + t(this.red, "redSqr works only with red numbers"), + this.red._verify1(this), + this.red.sqr(this) + ); + }), + (a.prototype.redISqr = function () { + return ( + t(this.red, "redISqr works only with red numbers"), + this.red._verify1(this), + this.red.isqr(this) + ); + }), + (a.prototype.redSqrt = function () { + return ( + t(this.red, "redSqrt works only with red numbers"), + this.red._verify1(this), + this.red.sqrt(this) + ); + }), + (a.prototype.redInvm = function () { + return ( + t(this.red, "redInvm works only with red numbers"), + this.red._verify1(this), + this.red.invm(this) + ); + }), + (a.prototype.redNeg = function () { + return ( + t(this.red, "redNeg works only with red numbers"), + this.red._verify1(this), + this.red.neg(this) + ); + }), + (a.prototype.redPow = function (o) { + return ( + t(this.red && !o.red, "redPow(normalNum)"), + this.red._verify1(this), + this.red.pow(this, o) + ); + }); + var H = { k256: null, p224: null, p192: null, p25519: null }; + function j(g, o) { + (this.name = g), + (this.p = new a(o, 16)), + (this.n = this.p.bitLength()), + (this.k = new a(1).iushln(this.n).isub(this.p)), + (this.tmp = this._tmp()); + } + (j.prototype._tmp = function () { + var o = new a(null); + return (o.words = new Array(Math.ceil(this.n / 13))), o; + }), + (j.prototype.ireduce = function (o) { + var p = o, + y; + do + this.split(p, this.tmp), + (p = this.imulK(p)), + (p = p.iadd(this.tmp)), + (y = p.bitLength()); + while (y > this.n); + var h = y < this.n ? -1 : p.ucmp(this.p); + return ( + h === 0 + ? ((p.words[0] = 0), (p.length = 1)) + : h > 0 + ? p.isub(this.p) + : p.strip !== void 0 + ? p.strip() + : p._strip(), + p + ); + }), + (j.prototype.split = function (o, p) { + o.iushrn(this.n, 0, p); + }), + (j.prototype.imulK = function (o) { + return o.imul(this.k); + }); + function V() { + j.call( + this, + "k256", + "ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f" + ); + } + n(V, j), + (V.prototype.split = function (o, p) { + for (var y = 4194303, h = Math.min(o.length, 9), b = 0; b < h; b++) + p.words[b] = o.words[b]; + if (((p.length = h), o.length <= 9)) { + (o.words[0] = 0), (o.length = 1); + return; + } + var T = o.words[9]; + for (p.words[p.length++] = T & y, b = 10; b < o.length; b++) { + var E = o.words[b] | 0; + (o.words[b - 10] = ((E & y) << 4) | (T >>> 22)), (T = E); + } + (T >>>= 22), + (o.words[b - 10] = T), + T === 0 && o.length > 10 ? (o.length -= 10) : (o.length -= 9); + }), + (V.prototype.imulK = function (o) { + (o.words[o.length] = 0), (o.words[o.length + 1] = 0), (o.length += 2); + for (var p = 0, y = 0; y < o.length; y++) { + var h = o.words[y] | 0; + (p += h * 977), + (o.words[y] = p & 67108863), + (p = h * 64 + ((p / 67108864) | 0)); + } + return ( + o.words[o.length - 1] === 0 && + (o.length--, o.words[o.length - 1] === 0 && o.length--), + o + ); + }); + function te() { + j.call( + this, + "p224", + "ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001" + ); + } + n(te, j); + function $() { + j.call( + this, + "p192", + "ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff" + ); + } + n($, j); + function ae() { + j.call( + this, + "25519", + "7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed" + ); + } + n(ae, j), + (ae.prototype.imulK = function (o) { + for (var p = 0, y = 0; y < o.length; y++) { + var h = (o.words[y] | 0) * 19 + p, + b = h & 67108863; + (h >>>= 26), (o.words[y] = b), (p = h); + } + return p !== 0 && (o.words[o.length++] = p), o; + }), + (a._prime = function (o) { + if (H[o]) return H[o]; + var p; + if (o === "k256") p = new V(); + else if (o === "p224") p = new te(); + else if (o === "p192") p = new $(); + else if (o === "p25519") p = new ae(); + else throw new Error("Unknown prime " + o); + return (H[o] = p), p; + }); + function Y(g) { + if (typeof g == "string") { + var o = a._prime(g); + (this.m = o.p), (this.prime = o); + } else + t(g.gtn(1), "modulus must be greater than 1"), + (this.m = g), + (this.prime = null); + } + (Y.prototype._verify1 = function (o) { + t(o.negative === 0, "red works only with positives"), + t(o.red, "red works only with red numbers"); + }), + (Y.prototype._verify2 = function (o, p) { + t((o.negative | p.negative) === 0, "red works only with positives"), + t(o.red && o.red === p.red, "red works only with red numbers"); + }), + (Y.prototype.imod = function (o) { + return this.prime + ? this.prime.ireduce(o)._forceRed(this) + : o.umod(this.m)._forceRed(this); + }), + (Y.prototype.neg = function (o) { + return o.isZero() ? o.clone() : this.m.sub(o)._forceRed(this); + }), + (Y.prototype.add = function (o, p) { + this._verify2(o, p); + var y = o.add(p); + return y.cmp(this.m) >= 0 && y.isub(this.m), y._forceRed(this); + }), + (Y.prototype.iadd = function (o, p) { + this._verify2(o, p); + var y = o.iadd(p); + return y.cmp(this.m) >= 0 && y.isub(this.m), y; + }), + (Y.prototype.sub = function (o, p) { + this._verify2(o, p); + var y = o.sub(p); + return y.cmpn(0) < 0 && y.iadd(this.m), y._forceRed(this); + }), + (Y.prototype.isub = function (o, p) { + this._verify2(o, p); + var y = o.isub(p); + return y.cmpn(0) < 0 && y.iadd(this.m), y; + }), + (Y.prototype.shl = function (o, p) { + return this._verify1(o), this.imod(o.ushln(p)); + }), + (Y.prototype.imul = function (o, p) { + return this._verify2(o, p), this.imod(o.imul(p)); + }), + (Y.prototype.mul = function (o, p) { + return this._verify2(o, p), this.imod(o.mul(p)); + }), + (Y.prototype.isqr = function (o) { + return this.imul(o, o.clone()); + }), + (Y.prototype.sqr = function (o) { + return this.mul(o, o); + }), + (Y.prototype.sqrt = function (o) { + if (o.isZero()) return o.clone(); + var p = this.m.andln(3); + if ((t(p % 2 === 1), p === 3)) { + var y = this.m.add(new a(1)).iushrn(2); + return this.pow(o, y); + } + for (var h = this.m.subn(1), b = 0; !h.isZero() && h.andln(1) === 0; ) + b++, h.iushrn(1); + t(!h.isZero()); + var T = new a(1).toRed(this), + E = T.redNeg(), + f = this.m.subn(1).iushrn(1), + u = this.m.bitLength(); + for (u = new a(2 * u * u).toRed(this); this.pow(u, f).cmp(E) !== 0; ) + u.redIAdd(E); + for ( + var v = this.pow(u, h), + R = this.pow(o, h.addn(1).iushrn(1)), + A = this.pow(o, h), + L = b; + A.cmp(T) !== 0; + + ) { + for (var G = A, U = 0; G.cmp(T) !== 0; U++) G = G.redSqr(); + t(U < L); + var Z = this.pow(v, new a(1).iushln(L - U - 1)); + (R = R.redMul(Z)), (v = Z.redSqr()), (A = A.redMul(v)), (L = U); + } + return R; + }), + (Y.prototype.invm = function (o) { + var p = o._invmp(this.m); + return p.negative !== 0 + ? ((p.negative = 0), this.imod(p).redNeg()) + : this.imod(p); + }), + (Y.prototype.pow = function (o, p) { + if (p.isZero()) return new a(1).toRed(this); + if (p.cmpn(1) === 0) return o.clone(); + var y = 4, + h = new Array(1 << y); + (h[0] = new a(1).toRed(this)), (h[1] = o); + for (var b = 2; b < h.length; b++) h[b] = this.mul(h[b - 1], o); + var T = h[0], + E = 0, + f = 0, + u = p.bitLength() % 26; + for (u === 0 && (u = 26), b = p.length - 1; b >= 0; b--) { + for (var v = p.words[b], R = u - 1; R >= 0; R--) { + var A = (v >> R) & 1; + if ((T !== h[0] && (T = this.sqr(T)), A === 0 && E === 0)) { + f = 0; + continue; + } + (E <<= 1), + (E |= A), + f++, + !(f !== y && (b !== 0 || R !== 0)) && + ((T = this.mul(T, h[E])), (f = 0), (E = 0)); + } + u = 26; + } + return T; + }), + (Y.prototype.convertTo = function (o) { + var p = o.umod(this.m); + return p === o ? p.clone() : p; + }), + (Y.prototype.convertFrom = function (o) { + var p = o.clone(); + return (p.red = null), p; + }), + (a.mont = function (o) { + return new K(o); + }); + function K(g) { + Y.call(this, g), + (this.shift = this.m.bitLength()), + this.shift % 26 !== 0 && (this.shift += 26 - (this.shift % 26)), + (this.r = new a(1).iushln(this.shift)), + (this.r2 = this.imod(this.r.sqr())), + (this.rinv = this.r._invmp(this.m)), + (this.minv = this.rinv.mul(this.r).isubn(1).div(this.m)), + (this.minv = this.minv.umod(this.r)), + (this.minv = this.r.sub(this.minv)); + } + n(K, Y), + (K.prototype.convertTo = function (o) { + return this.imod(o.ushln(this.shift)); + }), + (K.prototype.convertFrom = function (o) { + var p = this.imod(o.mul(this.rinv)); + return (p.red = null), p; + }), + (K.prototype.imul = function (o, p) { + if (o.isZero() || p.isZero()) + return (o.words[0] = 0), (o.length = 1), o; + var y = o.imul(p), + h = y + .maskn(this.shift) + .mul(this.minv) + .imaskn(this.shift) + .mul(this.m), + b = y.isub(h).iushrn(this.shift), + T = b; + return ( + b.cmp(this.m) >= 0 + ? (T = b.isub(this.m)) + : b.cmpn(0) < 0 && (T = b.iadd(this.m)), + T._forceRed(this) + ); + }), + (K.prototype.mul = function (o, p) { + if (o.isZero() || p.isZero()) return new a(0)._forceRed(this); + var y = o.mul(p), + h = y + .maskn(this.shift) + .mul(this.minv) + .imaskn(this.shift) + .mul(this.m), + b = y.isub(h).iushrn(this.shift), + T = b; + return ( + b.cmp(this.m) >= 0 + ? (T = b.isub(this.m)) + : b.cmpn(0) < 0 && (T = b.iadd(this.m)), + T._forceRed(this) + ); + }), + (K.prototype.invm = function (o) { + var p = this.imod(o._invmp(this.m).mul(this.r2)); + return p._forceRed(this); + }); + })(typeof oF > "u" || oF, Gle); + }); + var $le = N((Yle, uF) => { + _(); + x(); + (function (r, e) { + "use strict"; + function t(g, o) { + if (!g) throw new Error(o || "Assertion failed"); + } + function n(g, o) { + g.super_ = o; + var p = function () {}; + (p.prototype = o.prototype), + (g.prototype = new p()), + (g.prototype.constructor = g); + } + function a(g, o, p) { + if (a.isBN(g)) return g; + (this.negative = 0), + (this.words = null), + (this.length = 0), + (this.red = null), + g !== null && + ((o === "le" || o === "be") && ((p = o), (o = 10)), + this._init(g || 0, o || 10, p || "be")); + } + typeof r == "object" ? (r.exports = a) : (e.BN = a), + (a.BN = a), + (a.wordSize = 26); + var i; + try { + typeof window < "u" && typeof window.Buffer < "u" + ? (i = window.Buffer) + : (i = Hi().Buffer); + } catch {} + (a.isBN = function (o) { + return o instanceof a + ? !0 + : o !== null && + typeof o == "object" && + o.constructor.wordSize === a.wordSize && + Array.isArray(o.words); + }), + (a.max = function (o, p) { + return o.cmp(p) > 0 ? o : p; + }), + (a.min = function (o, p) { + return o.cmp(p) < 0 ? o : p; + }), + (a.prototype._init = function (o, p, y) { + if (typeof o == "number") return this._initNumber(o, p, y); + if (typeof o == "object") return this._initArray(o, p, y); + p === "hex" && (p = 16), + t(p === (p | 0) && p >= 2 && p <= 36), + (o = o.toString().replace(/\s+/g, "")); + var h = 0; + o[0] === "-" && (h++, (this.negative = 1)), + h < o.length && + (p === 16 + ? this._parseHex(o, h, y) + : (this._parseBase(o, p, h), + y === "le" && this._initArray(this.toArray(), p, y))); + }), + (a.prototype._initNumber = function (o, p, y) { + o < 0 && ((this.negative = 1), (o = -o)), + o < 67108864 + ? ((this.words = [o & 67108863]), (this.length = 1)) + : o < 4503599627370496 + ? ((this.words = [o & 67108863, (o / 67108864) & 67108863]), + (this.length = 2)) + : (t(o < 9007199254740992), + (this.words = [o & 67108863, (o / 67108864) & 67108863, 1]), + (this.length = 3)), + y === "le" && this._initArray(this.toArray(), p, y); + }), + (a.prototype._initArray = function (o, p, y) { + if ((t(typeof o.length == "number"), o.length <= 0)) + return (this.words = [0]), (this.length = 1), this; + (this.length = Math.ceil(o.length / 3)), + (this.words = new Array(this.length)); + for (var h = 0; h < this.length; h++) this.words[h] = 0; + var b, + T, + E = 0; + if (y === "be") + for (h = o.length - 1, b = 0; h >= 0; h -= 3) + (T = o[h] | (o[h - 1] << 8) | (o[h - 2] << 16)), + (this.words[b] |= (T << E) & 67108863), + (this.words[b + 1] = (T >>> (26 - E)) & 67108863), + (E += 24), + E >= 26 && ((E -= 26), b++); + else if (y === "le") + for (h = 0, b = 0; h < o.length; h += 3) + (T = o[h] | (o[h + 1] << 8) | (o[h + 2] << 16)), + (this.words[b] |= (T << E) & 67108863), + (this.words[b + 1] = (T >>> (26 - E)) & 67108863), + (E += 24), + E >= 26 && ((E -= 26), b++); + return this.strip(); + }); + function s(g, o) { + var p = g.charCodeAt(o); + return p >= 65 && p <= 70 + ? p - 55 + : p >= 97 && p <= 102 + ? p - 87 + : (p - 48) & 15; + } + function c(g, o, p) { + var y = s(g, p); + return p - 1 >= o && (y |= s(g, p - 1) << 4), y; + } + a.prototype._parseHex = function (o, p, y) { + (this.length = Math.ceil((o.length - p) / 6)), + (this.words = new Array(this.length)); + for (var h = 0; h < this.length; h++) this.words[h] = 0; + var b = 0, + T = 0, + E; + if (y === "be") + for (h = o.length - 1; h >= p; h -= 2) + (E = c(o, p, h) << b), + (this.words[T] |= E & 67108863), + b >= 18 + ? ((b -= 18), (T += 1), (this.words[T] |= E >>> 26)) + : (b += 8); + else { + var f = o.length - p; + for (h = f % 2 === 0 ? p + 1 : p; h < o.length; h += 2) + (E = c(o, p, h) << b), + (this.words[T] |= E & 67108863), + b >= 18 + ? ((b -= 18), (T += 1), (this.words[T] |= E >>> 26)) + : (b += 8); + } + this.strip(); + }; + function l(g, o, p, y) { + for (var h = 0, b = Math.min(g.length, p), T = o; T < b; T++) { + var E = g.charCodeAt(T) - 48; + (h *= y), + E >= 49 + ? (h += E - 49 + 10) + : E >= 17 + ? (h += E - 17 + 10) + : (h += E); + } + return h; + } + (a.prototype._parseBase = function (o, p, y) { + (this.words = [0]), (this.length = 1); + for (var h = 0, b = 1; b <= 67108863; b *= p) h++; + h--, (b = (b / p) | 0); + for ( + var T = o.length - y, + E = T % h, + f = Math.min(T, T - E) + y, + u = 0, + v = y; + v < f; + v += h + ) + (u = l(o, v, v + h, p)), + this.imuln(b), + this.words[0] + u < 67108864 + ? (this.words[0] += u) + : this._iaddn(u); + if (E !== 0) { + var R = 1; + for (u = l(o, v, o.length, p), v = 0; v < E; v++) R *= p; + this.imuln(R), + this.words[0] + u < 67108864 + ? (this.words[0] += u) + : this._iaddn(u); + } + this.strip(); + }), + (a.prototype.copy = function (o) { + o.words = new Array(this.length); + for (var p = 0; p < this.length; p++) o.words[p] = this.words[p]; + (o.length = this.length), + (o.negative = this.negative), + (o.red = this.red); + }), + (a.prototype.clone = function () { + var o = new a(null); + return this.copy(o), o; + }), + (a.prototype._expand = function (o) { + for (; this.length < o; ) this.words[this.length++] = 0; + return this; + }), + (a.prototype.strip = function () { + for (; this.length > 1 && this.words[this.length - 1] === 0; ) + this.length--; + return this._normSign(); + }), + (a.prototype._normSign = function () { + return ( + this.length === 1 && this.words[0] === 0 && (this.negative = 0), + this + ); + }), + (a.prototype.inspect = function () { + return (this.red ? ""; + }); + var d = [ + "", + "0", + "00", + "000", + "0000", + "00000", + "000000", + "0000000", + "00000000", + "000000000", + "0000000000", + "00000000000", + "000000000000", + "0000000000000", + "00000000000000", + "000000000000000", + "0000000000000000", + "00000000000000000", + "000000000000000000", + "0000000000000000000", + "00000000000000000000", + "000000000000000000000", + "0000000000000000000000", + "00000000000000000000000", + "000000000000000000000000", + "0000000000000000000000000", + ], + m = [ + 0, 0, 25, 16, 12, 11, 10, 9, 8, 8, 7, 7, 7, 7, 6, 6, 6, 6, 6, 6, 6, 5, + 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, + ], + w = [ + 0, 0, 33554432, 43046721, 16777216, 48828125, 60466176, 40353607, + 16777216, 43046721, 1e7, 19487171, 35831808, 62748517, 7529536, + 11390625, 16777216, 24137569, 34012224, 47045881, 64e6, 4084101, + 5153632, 6436343, 7962624, 9765625, 11881376, 14348907, 17210368, + 20511149, 243e5, 28629151, 33554432, 39135393, 45435424, 52521875, + 60466176, + ]; + (a.prototype.toString = function (o, p) { + (o = o || 10), (p = p | 0 || 1); + var y; + if (o === 16 || o === "hex") { + y = ""; + for (var h = 0, b = 0, T = 0; T < this.length; T++) { + var E = this.words[T], + f = (((E << h) | b) & 16777215).toString(16); + (b = (E >>> (24 - h)) & 16777215), + b !== 0 || T !== this.length - 1 + ? (y = d[6 - f.length] + f + y) + : (y = f + y), + (h += 2), + h >= 26 && ((h -= 26), T--); + } + for (b !== 0 && (y = b.toString(16) + y); y.length % p !== 0; ) + y = "0" + y; + return this.negative !== 0 && (y = "-" + y), y; + } + if (o === (o | 0) && o >= 2 && o <= 36) { + var u = m[o], + v = w[o]; + y = ""; + var R = this.clone(); + for (R.negative = 0; !R.isZero(); ) { + var A = R.modn(v).toString(o); + (R = R.idivn(v)), + R.isZero() ? (y = A + y) : (y = d[u - A.length] + A + y); + } + for (this.isZero() && (y = "0" + y); y.length % p !== 0; ) + y = "0" + y; + return this.negative !== 0 && (y = "-" + y), y; + } + t(!1, "Base should be between 2 and 36"); + }), + (a.prototype.toNumber = function () { + var o = this.words[0]; + return ( + this.length === 2 + ? (o += this.words[1] * 67108864) + : this.length === 3 && this.words[2] === 1 + ? (o += 4503599627370496 + this.words[1] * 67108864) + : this.length > 2 && + t(!1, "Number can only safely store up to 53 bits"), + this.negative !== 0 ? -o : o + ); + }), + (a.prototype.toJSON = function () { + return this.toString(16); + }), + (a.prototype.toBuffer = function (o, p) { + return t(typeof i < "u"), this.toArrayLike(i, o, p); + }), + (a.prototype.toArray = function (o, p) { + return this.toArrayLike(Array, o, p); + }), + (a.prototype.toArrayLike = function (o, p, y) { + var h = this.byteLength(), + b = y || Math.max(1, h); + t(h <= b, "byte array longer than desired length"), + t(b > 0, "Requested array length <= 0"), + this.strip(); + var T = p === "le", + E = new o(b), + f, + u, + v = this.clone(); + if (T) { + for (u = 0; !v.isZero(); u++) + (f = v.andln(255)), v.iushrn(8), (E[u] = f); + for (; u < b; u++) E[u] = 0; + } else { + for (u = 0; u < b - h; u++) E[u] = 0; + for (u = 0; !v.isZero(); u++) + (f = v.andln(255)), v.iushrn(8), (E[b - u - 1] = f); + } + return E; + }), + Math.clz32 + ? (a.prototype._countBits = function (o) { + return 32 - Math.clz32(o); + }) + : (a.prototype._countBits = function (o) { + var p = o, + y = 0; + return ( + p >= 4096 && ((y += 13), (p >>>= 13)), + p >= 64 && ((y += 7), (p >>>= 7)), + p >= 8 && ((y += 4), (p >>>= 4)), + p >= 2 && ((y += 2), (p >>>= 2)), + y + p + ); + }), + (a.prototype._zeroBits = function (o) { + if (o === 0) return 26; + var p = o, + y = 0; + return ( + (p & 8191) === 0 && ((y += 13), (p >>>= 13)), + (p & 127) === 0 && ((y += 7), (p >>>= 7)), + (p & 15) === 0 && ((y += 4), (p >>>= 4)), + (p & 3) === 0 && ((y += 2), (p >>>= 2)), + (p & 1) === 0 && y++, + y + ); + }), + (a.prototype.bitLength = function () { + var o = this.words[this.length - 1], + p = this._countBits(o); + return (this.length - 1) * 26 + p; + }); + function C(g) { + for (var o = new Array(g.bitLength()), p = 0; p < o.length; p++) { + var y = (p / 26) | 0, + h = p % 26; + o[p] = (g.words[y] & (1 << h)) >>> h; + } + return o; + } + (a.prototype.zeroBits = function () { + if (this.isZero()) return 0; + for (var o = 0, p = 0; p < this.length; p++) { + var y = this._zeroBits(this.words[p]); + if (((o += y), y !== 26)) break; + } + return o; + }), + (a.prototype.byteLength = function () { + return Math.ceil(this.bitLength() / 8); + }), + (a.prototype.toTwos = function (o) { + return this.negative !== 0 + ? this.abs().inotn(o).iaddn(1) + : this.clone(); + }), + (a.prototype.fromTwos = function (o) { + return this.testn(o - 1) + ? this.notn(o).iaddn(1).ineg() + : this.clone(); + }), + (a.prototype.isNeg = function () { + return this.negative !== 0; + }), + (a.prototype.neg = function () { + return this.clone().ineg(); + }), + (a.prototype.ineg = function () { + return this.isZero() || (this.negative ^= 1), this; + }), + (a.prototype.iuor = function (o) { + for (; this.length < o.length; ) this.words[this.length++] = 0; + for (var p = 0; p < o.length; p++) + this.words[p] = this.words[p] | o.words[p]; + return this.strip(); + }), + (a.prototype.ior = function (o) { + return t((this.negative | o.negative) === 0), this.iuor(o); + }), + (a.prototype.or = function (o) { + return this.length > o.length + ? this.clone().ior(o) + : o.clone().ior(this); + }), + (a.prototype.uor = function (o) { + return this.length > o.length + ? this.clone().iuor(o) + : o.clone().iuor(this); + }), + (a.prototype.iuand = function (o) { + var p; + this.length > o.length ? (p = o) : (p = this); + for (var y = 0; y < p.length; y++) + this.words[y] = this.words[y] & o.words[y]; + return (this.length = p.length), this.strip(); + }), + (a.prototype.iand = function (o) { + return t((this.negative | o.negative) === 0), this.iuand(o); + }), + (a.prototype.and = function (o) { + return this.length > o.length + ? this.clone().iand(o) + : o.clone().iand(this); + }), + (a.prototype.uand = function (o) { + return this.length > o.length + ? this.clone().iuand(o) + : o.clone().iuand(this); + }), + (a.prototype.iuxor = function (o) { + var p, y; + this.length > o.length + ? ((p = this), (y = o)) + : ((p = o), (y = this)); + for (var h = 0; h < y.length; h++) + this.words[h] = p.words[h] ^ y.words[h]; + if (this !== p) for (; h < p.length; h++) this.words[h] = p.words[h]; + return (this.length = p.length), this.strip(); + }), + (a.prototype.ixor = function (o) { + return t((this.negative | o.negative) === 0), this.iuxor(o); + }), + (a.prototype.xor = function (o) { + return this.length > o.length + ? this.clone().ixor(o) + : o.clone().ixor(this); + }), + (a.prototype.uxor = function (o) { + return this.length > o.length + ? this.clone().iuxor(o) + : o.clone().iuxor(this); + }), + (a.prototype.inotn = function (o) { + t(typeof o == "number" && o >= 0); + var p = Math.ceil(o / 26) | 0, + y = o % 26; + this._expand(p), y > 0 && p--; + for (var h = 0; h < p; h++) this.words[h] = ~this.words[h] & 67108863; + return ( + y > 0 && (this.words[h] = ~this.words[h] & (67108863 >> (26 - y))), + this.strip() + ); + }), + (a.prototype.notn = function (o) { + return this.clone().inotn(o); + }), + (a.prototype.setn = function (o, p) { + t(typeof o == "number" && o >= 0); + var y = (o / 26) | 0, + h = o % 26; + return ( + this._expand(y + 1), + p + ? (this.words[y] = this.words[y] | (1 << h)) + : (this.words[y] = this.words[y] & ~(1 << h)), + this.strip() + ); + }), + (a.prototype.iadd = function (o) { + var p; + if (this.negative !== 0 && o.negative === 0) + return ( + (this.negative = 0), + (p = this.isub(o)), + (this.negative ^= 1), + this._normSign() + ); + if (this.negative === 0 && o.negative !== 0) + return ( + (o.negative = 0), + (p = this.isub(o)), + (o.negative = 1), + p._normSign() + ); + var y, h; + this.length > o.length + ? ((y = this), (h = o)) + : ((y = o), (h = this)); + for (var b = 0, T = 0; T < h.length; T++) + (p = (y.words[T] | 0) + (h.words[T] | 0) + b), + (this.words[T] = p & 67108863), + (b = p >>> 26); + for (; b !== 0 && T < y.length; T++) + (p = (y.words[T] | 0) + b), + (this.words[T] = p & 67108863), + (b = p >>> 26); + if (((this.length = y.length), b !== 0)) + (this.words[this.length] = b), this.length++; + else if (y !== this) + for (; T < y.length; T++) this.words[T] = y.words[T]; + return this; + }), + (a.prototype.add = function (o) { + var p; + return o.negative !== 0 && this.negative === 0 + ? ((o.negative = 0), (p = this.sub(o)), (o.negative ^= 1), p) + : o.negative === 0 && this.negative !== 0 + ? ((this.negative = 0), (p = o.sub(this)), (this.negative = 1), p) + : this.length > o.length + ? this.clone().iadd(o) + : o.clone().iadd(this); + }), + (a.prototype.isub = function (o) { + if (o.negative !== 0) { + o.negative = 0; + var p = this.iadd(o); + return (o.negative = 1), p._normSign(); + } else if (this.negative !== 0) + return ( + (this.negative = 0), + this.iadd(o), + (this.negative = 1), + this._normSign() + ); + var y = this.cmp(o); + if (y === 0) + return ( + (this.negative = 0), (this.length = 1), (this.words[0] = 0), this + ); + var h, b; + y > 0 ? ((h = this), (b = o)) : ((h = o), (b = this)); + for (var T = 0, E = 0; E < b.length; E++) + (p = (h.words[E] | 0) - (b.words[E] | 0) + T), + (T = p >> 26), + (this.words[E] = p & 67108863); + for (; T !== 0 && E < h.length; E++) + (p = (h.words[E] | 0) + T), + (T = p >> 26), + (this.words[E] = p & 67108863); + if (T === 0 && E < h.length && h !== this) + for (; E < h.length; E++) this.words[E] = h.words[E]; + return ( + (this.length = Math.max(this.length, E)), + h !== this && (this.negative = 1), + this.strip() + ); + }), + (a.prototype.sub = function (o) { + return this.clone().isub(o); + }); + function I(g, o, p) { + p.negative = o.negative ^ g.negative; + var y = (g.length + o.length) | 0; + (p.length = y), (y = (y - 1) | 0); + var h = g.words[0] | 0, + b = o.words[0] | 0, + T = h * b, + E = T & 67108863, + f = (T / 67108864) | 0; + p.words[0] = E; + for (var u = 1; u < y; u++) { + for ( + var v = f >>> 26, + R = f & 67108863, + A = Math.min(u, o.length - 1), + L = Math.max(0, u - g.length + 1); + L <= A; + L++ + ) { + var G = (u - L) | 0; + (h = g.words[G] | 0), + (b = o.words[L] | 0), + (T = h * b + R), + (v += (T / 67108864) | 0), + (R = T & 67108863); + } + (p.words[u] = R | 0), (f = v | 0); + } + return f !== 0 ? (p.words[u] = f | 0) : p.length--, p.strip(); + } + var k = function (o, p, y) { + var h = o.words, + b = p.words, + T = y.words, + E = 0, + f, + u, + v, + R = h[0] | 0, + A = R & 8191, + L = R >>> 13, + G = h[1] | 0, + U = G & 8191, + Z = G >>> 13, + de = h[2] | 0, + ne = de & 8191, + pe = de >>> 13, + lt = h[3] | 0, + fe = lt & 8191, + ve = lt >>> 13, + vt = h[4] | 0, + we = vt & 8191, + Ne = vt >>> 13, + kt = h[5] | 0, + Le = kt & 8191, + ze = kt >>> 13, + It = h[6] | 0, + Se = It & 8191, + Ke = It >>> 13, + Et = h[7] | 0, + Me = Et & 8191, + Ge = Et >>> 13, + Dt = h[8] | 0, + De = Dt & 8191, + Ze = Dt >>> 13, + Wt = h[9] | 0, + ke = Wt & 8191, + $e = Wt >>> 13, + Ht = b[0] | 0, + Pe = Ht & 8191, + Je = Ht >>> 13, + zt = b[1] | 0, + Re = zt & 8191, + Qe = zt >>> 13, + jt = b[2] | 0, + Be = jt & 8191, + Xe = jt >>> 13, + Ut = b[3] | 0, + Ae = Ut & 8191, + et = Ut >>> 13, + St = b[4] | 0, + Oe = St & 8191, + tt = St >>> 13, + Kt = b[5] | 0, + qe = Kt & 8191, + rt = Kt >>> 13, + Vt = b[6] | 0, + Ie = Vt & 8191, + Ye = Vt >>> 13, + Gt = b[7] | 0, + We = Gt & 8191, + it = Gt >>> 13, + Qt = b[8] | 0, + Ue = Qt & 8191, + nt = Qt >>> 13, + tr = b[9] | 0, + He = tr & 8191, + at = tr >>> 13; + (y.negative = o.negative ^ p.negative), + (y.length = 19), + (f = Math.imul(A, Pe)), + (u = Math.imul(A, Je)), + (u = (u + Math.imul(L, Pe)) | 0), + (v = Math.imul(L, Je)); + var Pr = (((E + f) | 0) + ((u & 8191) << 13)) | 0; + (E = (((v + (u >>> 13)) | 0) + (Pr >>> 26)) | 0), + (Pr &= 67108863), + (f = Math.imul(U, Pe)), + (u = Math.imul(U, Je)), + (u = (u + Math.imul(Z, Pe)) | 0), + (v = Math.imul(Z, Je)), + (f = (f + Math.imul(A, Re)) | 0), + (u = (u + Math.imul(A, Qe)) | 0), + (u = (u + Math.imul(L, Re)) | 0), + (v = (v + Math.imul(L, Qe)) | 0); + var qt = (((E + f) | 0) + ((u & 8191) << 13)) | 0; + (E = (((v + (u >>> 13)) | 0) + (qt >>> 26)) | 0), + (qt &= 67108863), + (f = Math.imul(ne, Pe)), + (u = Math.imul(ne, Je)), + (u = (u + Math.imul(pe, Pe)) | 0), + (v = Math.imul(pe, Je)), + (f = (f + Math.imul(U, Re)) | 0), + (u = (u + Math.imul(U, Qe)) | 0), + (u = (u + Math.imul(Z, Re)) | 0), + (v = (v + Math.imul(Z, Qe)) | 0), + (f = (f + Math.imul(A, Be)) | 0), + (u = (u + Math.imul(A, Xe)) | 0), + (u = (u + Math.imul(L, Be)) | 0), + (v = (v + Math.imul(L, Xe)) | 0); + var Ft = (((E + f) | 0) + ((u & 8191) << 13)) | 0; + (E = (((v + (u >>> 13)) | 0) + (Ft >>> 26)) | 0), + (Ft &= 67108863), + (f = Math.imul(fe, Pe)), + (u = Math.imul(fe, Je)), + (u = (u + Math.imul(ve, Pe)) | 0), + (v = Math.imul(ve, Je)), + (f = (f + Math.imul(ne, Re)) | 0), + (u = (u + Math.imul(ne, Qe)) | 0), + (u = (u + Math.imul(pe, Re)) | 0), + (v = (v + Math.imul(pe, Qe)) | 0), + (f = (f + Math.imul(U, Be)) | 0), + (u = (u + Math.imul(U, Xe)) | 0), + (u = (u + Math.imul(Z, Be)) | 0), + (v = (v + Math.imul(Z, Xe)) | 0), + (f = (f + Math.imul(A, Ae)) | 0), + (u = (u + Math.imul(A, et)) | 0), + (u = (u + Math.imul(L, Ae)) | 0), + (v = (v + Math.imul(L, et)) | 0); + var _r = (((E + f) | 0) + ((u & 8191) << 13)) | 0; + (E = (((v + (u >>> 13)) | 0) + (_r >>> 26)) | 0), + (_r &= 67108863), + (f = Math.imul(we, Pe)), + (u = Math.imul(we, Je)), + (u = (u + Math.imul(Ne, Pe)) | 0), + (v = Math.imul(Ne, Je)), + (f = (f + Math.imul(fe, Re)) | 0), + (u = (u + Math.imul(fe, Qe)) | 0), + (u = (u + Math.imul(ve, Re)) | 0), + (v = (v + Math.imul(ve, Qe)) | 0), + (f = (f + Math.imul(ne, Be)) | 0), + (u = (u + Math.imul(ne, Xe)) | 0), + (u = (u + Math.imul(pe, Be)) | 0), + (v = (v + Math.imul(pe, Xe)) | 0), + (f = (f + Math.imul(U, Ae)) | 0), + (u = (u + Math.imul(U, et)) | 0), + (u = (u + Math.imul(Z, Ae)) | 0), + (v = (v + Math.imul(Z, et)) | 0), + (f = (f + Math.imul(A, Oe)) | 0), + (u = (u + Math.imul(A, tt)) | 0), + (u = (u + Math.imul(L, Oe)) | 0), + (v = (v + Math.imul(L, tt)) | 0); + var xr = (((E + f) | 0) + ((u & 8191) << 13)) | 0; + (E = (((v + (u >>> 13)) | 0) + (xr >>> 26)) | 0), + (xr &= 67108863), + (f = Math.imul(Le, Pe)), + (u = Math.imul(Le, Je)), + (u = (u + Math.imul(ze, Pe)) | 0), + (v = Math.imul(ze, Je)), + (f = (f + Math.imul(we, Re)) | 0), + (u = (u + Math.imul(we, Qe)) | 0), + (u = (u + Math.imul(Ne, Re)) | 0), + (v = (v + Math.imul(Ne, Qe)) | 0), + (f = (f + Math.imul(fe, Be)) | 0), + (u = (u + Math.imul(fe, Xe)) | 0), + (u = (u + Math.imul(ve, Be)) | 0), + (v = (v + Math.imul(ve, Xe)) | 0), + (f = (f + Math.imul(ne, Ae)) | 0), + (u = (u + Math.imul(ne, et)) | 0), + (u = (u + Math.imul(pe, Ae)) | 0), + (v = (v + Math.imul(pe, et)) | 0), + (f = (f + Math.imul(U, Oe)) | 0), + (u = (u + Math.imul(U, tt)) | 0), + (u = (u + Math.imul(Z, Oe)) | 0), + (v = (v + Math.imul(Z, tt)) | 0), + (f = (f + Math.imul(A, qe)) | 0), + (u = (u + Math.imul(A, rt)) | 0), + (u = (u + Math.imul(L, qe)) | 0), + (v = (v + Math.imul(L, rt)) | 0); + var Tr = (((E + f) | 0) + ((u & 8191) << 13)) | 0; + (E = (((v + (u >>> 13)) | 0) + (Tr >>> 26)) | 0), + (Tr &= 67108863), + (f = Math.imul(Se, Pe)), + (u = Math.imul(Se, Je)), + (u = (u + Math.imul(Ke, Pe)) | 0), + (v = Math.imul(Ke, Je)), + (f = (f + Math.imul(Le, Re)) | 0), + (u = (u + Math.imul(Le, Qe)) | 0), + (u = (u + Math.imul(ze, Re)) | 0), + (v = (v + Math.imul(ze, Qe)) | 0), + (f = (f + Math.imul(we, Be)) | 0), + (u = (u + Math.imul(we, Xe)) | 0), + (u = (u + Math.imul(Ne, Be)) | 0), + (v = (v + Math.imul(Ne, Xe)) | 0), + (f = (f + Math.imul(fe, Ae)) | 0), + (u = (u + Math.imul(fe, et)) | 0), + (u = (u + Math.imul(ve, Ae)) | 0), + (v = (v + Math.imul(ve, et)) | 0), + (f = (f + Math.imul(ne, Oe)) | 0), + (u = (u + Math.imul(ne, tt)) | 0), + (u = (u + Math.imul(pe, Oe)) | 0), + (v = (v + Math.imul(pe, tt)) | 0), + (f = (f + Math.imul(U, qe)) | 0), + (u = (u + Math.imul(U, rt)) | 0), + (u = (u + Math.imul(Z, qe)) | 0), + (v = (v + Math.imul(Z, rt)) | 0), + (f = (f + Math.imul(A, Ie)) | 0), + (u = (u + Math.imul(A, Ye)) | 0), + (u = (u + Math.imul(L, Ie)) | 0), + (v = (v + Math.imul(L, Ye)) | 0); + var Er = (((E + f) | 0) + ((u & 8191) << 13)) | 0; + (E = (((v + (u >>> 13)) | 0) + (Er >>> 26)) | 0), + (Er &= 67108863), + (f = Math.imul(Me, Pe)), + (u = Math.imul(Me, Je)), + (u = (u + Math.imul(Ge, Pe)) | 0), + (v = Math.imul(Ge, Je)), + (f = (f + Math.imul(Se, Re)) | 0), + (u = (u + Math.imul(Se, Qe)) | 0), + (u = (u + Math.imul(Ke, Re)) | 0), + (v = (v + Math.imul(Ke, Qe)) | 0), + (f = (f + Math.imul(Le, Be)) | 0), + (u = (u + Math.imul(Le, Xe)) | 0), + (u = (u + Math.imul(ze, Be)) | 0), + (v = (v + Math.imul(ze, Xe)) | 0), + (f = (f + Math.imul(we, Ae)) | 0), + (u = (u + Math.imul(we, et)) | 0), + (u = (u + Math.imul(Ne, Ae)) | 0), + (v = (v + Math.imul(Ne, et)) | 0), + (f = (f + Math.imul(fe, Oe)) | 0), + (u = (u + Math.imul(fe, tt)) | 0), + (u = (u + Math.imul(ve, Oe)) | 0), + (v = (v + Math.imul(ve, tt)) | 0), + (f = (f + Math.imul(ne, qe)) | 0), + (u = (u + Math.imul(ne, rt)) | 0), + (u = (u + Math.imul(pe, qe)) | 0), + (v = (v + Math.imul(pe, rt)) | 0), + (f = (f + Math.imul(U, Ie)) | 0), + (u = (u + Math.imul(U, Ye)) | 0), + (u = (u + Math.imul(Z, Ie)) | 0), + (v = (v + Math.imul(Z, Ye)) | 0), + (f = (f + Math.imul(A, We)) | 0), + (u = (u + Math.imul(A, it)) | 0), + (u = (u + Math.imul(L, We)) | 0), + (v = (v + Math.imul(L, it)) | 0); + var Cr = (((E + f) | 0) + ((u & 8191) << 13)) | 0; + (E = (((v + (u >>> 13)) | 0) + (Cr >>> 26)) | 0), + (Cr &= 67108863), + (f = Math.imul(De, Pe)), + (u = Math.imul(De, Je)), + (u = (u + Math.imul(Ze, Pe)) | 0), + (v = Math.imul(Ze, Je)), + (f = (f + Math.imul(Me, Re)) | 0), + (u = (u + Math.imul(Me, Qe)) | 0), + (u = (u + Math.imul(Ge, Re)) | 0), + (v = (v + Math.imul(Ge, Qe)) | 0), + (f = (f + Math.imul(Se, Be)) | 0), + (u = (u + Math.imul(Se, Xe)) | 0), + (u = (u + Math.imul(Ke, Be)) | 0), + (v = (v + Math.imul(Ke, Xe)) | 0), + (f = (f + Math.imul(Le, Ae)) | 0), + (u = (u + Math.imul(Le, et)) | 0), + (u = (u + Math.imul(ze, Ae)) | 0), + (v = (v + Math.imul(ze, et)) | 0), + (f = (f + Math.imul(we, Oe)) | 0), + (u = (u + Math.imul(we, tt)) | 0), + (u = (u + Math.imul(Ne, Oe)) | 0), + (v = (v + Math.imul(Ne, tt)) | 0), + (f = (f + Math.imul(fe, qe)) | 0), + (u = (u + Math.imul(fe, rt)) | 0), + (u = (u + Math.imul(ve, qe)) | 0), + (v = (v + Math.imul(ve, rt)) | 0), + (f = (f + Math.imul(ne, Ie)) | 0), + (u = (u + Math.imul(ne, Ye)) | 0), + (u = (u + Math.imul(pe, Ie)) | 0), + (v = (v + Math.imul(pe, Ye)) | 0), + (f = (f + Math.imul(U, We)) | 0), + (u = (u + Math.imul(U, it)) | 0), + (u = (u + Math.imul(Z, We)) | 0), + (v = (v + Math.imul(Z, it)) | 0), + (f = (f + Math.imul(A, Ue)) | 0), + (u = (u + Math.imul(A, nt)) | 0), + (u = (u + Math.imul(L, Ue)) | 0), + (v = (v + Math.imul(L, nt)) | 0); + var Kr = (((E + f) | 0) + ((u & 8191) << 13)) | 0; + (E = (((v + (u >>> 13)) | 0) + (Kr >>> 26)) | 0), + (Kr &= 67108863), + (f = Math.imul(ke, Pe)), + (u = Math.imul(ke, Je)), + (u = (u + Math.imul($e, Pe)) | 0), + (v = Math.imul($e, Je)), + (f = (f + Math.imul(De, Re)) | 0), + (u = (u + Math.imul(De, Qe)) | 0), + (u = (u + Math.imul(Ze, Re)) | 0), + (v = (v + Math.imul(Ze, Qe)) | 0), + (f = (f + Math.imul(Me, Be)) | 0), + (u = (u + Math.imul(Me, Xe)) | 0), + (u = (u + Math.imul(Ge, Be)) | 0), + (v = (v + Math.imul(Ge, Xe)) | 0), + (f = (f + Math.imul(Se, Ae)) | 0), + (u = (u + Math.imul(Se, et)) | 0), + (u = (u + Math.imul(Ke, Ae)) | 0), + (v = (v + Math.imul(Ke, et)) | 0), + (f = (f + Math.imul(Le, Oe)) | 0), + (u = (u + Math.imul(Le, tt)) | 0), + (u = (u + Math.imul(ze, Oe)) | 0), + (v = (v + Math.imul(ze, tt)) | 0), + (f = (f + Math.imul(we, qe)) | 0), + (u = (u + Math.imul(we, rt)) | 0), + (u = (u + Math.imul(Ne, qe)) | 0), + (v = (v + Math.imul(Ne, rt)) | 0), + (f = (f + Math.imul(fe, Ie)) | 0), + (u = (u + Math.imul(fe, Ye)) | 0), + (u = (u + Math.imul(ve, Ie)) | 0), + (v = (v + Math.imul(ve, Ye)) | 0), + (f = (f + Math.imul(ne, We)) | 0), + (u = (u + Math.imul(ne, it)) | 0), + (u = (u + Math.imul(pe, We)) | 0), + (v = (v + Math.imul(pe, it)) | 0), + (f = (f + Math.imul(U, Ue)) | 0), + (u = (u + Math.imul(U, nt)) | 0), + (u = (u + Math.imul(Z, Ue)) | 0), + (v = (v + Math.imul(Z, nt)) | 0), + (f = (f + Math.imul(A, He)) | 0), + (u = (u + Math.imul(A, at)) | 0), + (u = (u + Math.imul(L, He)) | 0), + (v = (v + Math.imul(L, at)) | 0); + var Vr = (((E + f) | 0) + ((u & 8191) << 13)) | 0; + (E = (((v + (u >>> 13)) | 0) + (Vr >>> 26)) | 0), + (Vr &= 67108863), + (f = Math.imul(ke, Re)), + (u = Math.imul(ke, Qe)), + (u = (u + Math.imul($e, Re)) | 0), + (v = Math.imul($e, Qe)), + (f = (f + Math.imul(De, Be)) | 0), + (u = (u + Math.imul(De, Xe)) | 0), + (u = (u + Math.imul(Ze, Be)) | 0), + (v = (v + Math.imul(Ze, Xe)) | 0), + (f = (f + Math.imul(Me, Ae)) | 0), + (u = (u + Math.imul(Me, et)) | 0), + (u = (u + Math.imul(Ge, Ae)) | 0), + (v = (v + Math.imul(Ge, et)) | 0), + (f = (f + Math.imul(Se, Oe)) | 0), + (u = (u + Math.imul(Se, tt)) | 0), + (u = (u + Math.imul(Ke, Oe)) | 0), + (v = (v + Math.imul(Ke, tt)) | 0), + (f = (f + Math.imul(Le, qe)) | 0), + (u = (u + Math.imul(Le, rt)) | 0), + (u = (u + Math.imul(ze, qe)) | 0), + (v = (v + Math.imul(ze, rt)) | 0), + (f = (f + Math.imul(we, Ie)) | 0), + (u = (u + Math.imul(we, Ye)) | 0), + (u = (u + Math.imul(Ne, Ie)) | 0), + (v = (v + Math.imul(Ne, Ye)) | 0), + (f = (f + Math.imul(fe, We)) | 0), + (u = (u + Math.imul(fe, it)) | 0), + (u = (u + Math.imul(ve, We)) | 0), + (v = (v + Math.imul(ve, it)) | 0), + (f = (f + Math.imul(ne, Ue)) | 0), + (u = (u + Math.imul(ne, nt)) | 0), + (u = (u + Math.imul(pe, Ue)) | 0), + (v = (v + Math.imul(pe, nt)) | 0), + (f = (f + Math.imul(U, He)) | 0), + (u = (u + Math.imul(U, at)) | 0), + (u = (u + Math.imul(Z, He)) | 0), + (v = (v + Math.imul(Z, at)) | 0); + var Ur = (((E + f) | 0) + ((u & 8191) << 13)) | 0; + (E = (((v + (u >>> 13)) | 0) + (Ur >>> 26)) | 0), + (Ur &= 67108863), + (f = Math.imul(ke, Be)), + (u = Math.imul(ke, Xe)), + (u = (u + Math.imul($e, Be)) | 0), + (v = Math.imul($e, Xe)), + (f = (f + Math.imul(De, Ae)) | 0), + (u = (u + Math.imul(De, et)) | 0), + (u = (u + Math.imul(Ze, Ae)) | 0), + (v = (v + Math.imul(Ze, et)) | 0), + (f = (f + Math.imul(Me, Oe)) | 0), + (u = (u + Math.imul(Me, tt)) | 0), + (u = (u + Math.imul(Ge, Oe)) | 0), + (v = (v + Math.imul(Ge, tt)) | 0), + (f = (f + Math.imul(Se, qe)) | 0), + (u = (u + Math.imul(Se, rt)) | 0), + (u = (u + Math.imul(Ke, qe)) | 0), + (v = (v + Math.imul(Ke, rt)) | 0), + (f = (f + Math.imul(Le, Ie)) | 0), + (u = (u + Math.imul(Le, Ye)) | 0), + (u = (u + Math.imul(ze, Ie)) | 0), + (v = (v + Math.imul(ze, Ye)) | 0), + (f = (f + Math.imul(we, We)) | 0), + (u = (u + Math.imul(we, it)) | 0), + (u = (u + Math.imul(Ne, We)) | 0), + (v = (v + Math.imul(Ne, it)) | 0), + (f = (f + Math.imul(fe, Ue)) | 0), + (u = (u + Math.imul(fe, nt)) | 0), + (u = (u + Math.imul(ve, Ue)) | 0), + (v = (v + Math.imul(ve, nt)) | 0), + (f = (f + Math.imul(ne, He)) | 0), + (u = (u + Math.imul(ne, at)) | 0), + (u = (u + Math.imul(pe, He)) | 0), + (v = (v + Math.imul(pe, at)) | 0); + var Rr = (((E + f) | 0) + ((u & 8191) << 13)) | 0; + (E = (((v + (u >>> 13)) | 0) + (Rr >>> 26)) | 0), + (Rr &= 67108863), + (f = Math.imul(ke, Ae)), + (u = Math.imul(ke, et)), + (u = (u + Math.imul($e, Ae)) | 0), + (v = Math.imul($e, et)), + (f = (f + Math.imul(De, Oe)) | 0), + (u = (u + Math.imul(De, tt)) | 0), + (u = (u + Math.imul(Ze, Oe)) | 0), + (v = (v + Math.imul(Ze, tt)) | 0), + (f = (f + Math.imul(Me, qe)) | 0), + (u = (u + Math.imul(Me, rt)) | 0), + (u = (u + Math.imul(Ge, qe)) | 0), + (v = (v + Math.imul(Ge, rt)) | 0), + (f = (f + Math.imul(Se, Ie)) | 0), + (u = (u + Math.imul(Se, Ye)) | 0), + (u = (u + Math.imul(Ke, Ie)) | 0), + (v = (v + Math.imul(Ke, Ye)) | 0), + (f = (f + Math.imul(Le, We)) | 0), + (u = (u + Math.imul(Le, it)) | 0), + (u = (u + Math.imul(ze, We)) | 0), + (v = (v + Math.imul(ze, it)) | 0), + (f = (f + Math.imul(we, Ue)) | 0), + (u = (u + Math.imul(we, nt)) | 0), + (u = (u + Math.imul(Ne, Ue)) | 0), + (v = (v + Math.imul(Ne, nt)) | 0), + (f = (f + Math.imul(fe, He)) | 0), + (u = (u + Math.imul(fe, at)) | 0), + (u = (u + Math.imul(ve, He)) | 0), + (v = (v + Math.imul(ve, at)) | 0); + var Or = (((E + f) | 0) + ((u & 8191) << 13)) | 0; + (E = (((v + (u >>> 13)) | 0) + (Or >>> 26)) | 0), + (Or &= 67108863), + (f = Math.imul(ke, Oe)), + (u = Math.imul(ke, tt)), + (u = (u + Math.imul($e, Oe)) | 0), + (v = Math.imul($e, tt)), + (f = (f + Math.imul(De, qe)) | 0), + (u = (u + Math.imul(De, rt)) | 0), + (u = (u + Math.imul(Ze, qe)) | 0), + (v = (v + Math.imul(Ze, rt)) | 0), + (f = (f + Math.imul(Me, Ie)) | 0), + (u = (u + Math.imul(Me, Ye)) | 0), + (u = (u + Math.imul(Ge, Ie)) | 0), + (v = (v + Math.imul(Ge, Ye)) | 0), + (f = (f + Math.imul(Se, We)) | 0), + (u = (u + Math.imul(Se, it)) | 0), + (u = (u + Math.imul(Ke, We)) | 0), + (v = (v + Math.imul(Ke, it)) | 0), + (f = (f + Math.imul(Le, Ue)) | 0), + (u = (u + Math.imul(Le, nt)) | 0), + (u = (u + Math.imul(ze, Ue)) | 0), + (v = (v + Math.imul(ze, nt)) | 0), + (f = (f + Math.imul(we, He)) | 0), + (u = (u + Math.imul(we, at)) | 0), + (u = (u + Math.imul(Ne, He)) | 0), + (v = (v + Math.imul(Ne, at)) | 0); + var ur = (((E + f) | 0) + ((u & 8191) << 13)) | 0; + (E = (((v + (u >>> 13)) | 0) + (ur >>> 26)) | 0), + (ur &= 67108863), + (f = Math.imul(ke, qe)), + (u = Math.imul(ke, rt)), + (u = (u + Math.imul($e, qe)) | 0), + (v = Math.imul($e, rt)), + (f = (f + Math.imul(De, Ie)) | 0), + (u = (u + Math.imul(De, Ye)) | 0), + (u = (u + Math.imul(Ze, Ie)) | 0), + (v = (v + Math.imul(Ze, Ye)) | 0), + (f = (f + Math.imul(Me, We)) | 0), + (u = (u + Math.imul(Me, it)) | 0), + (u = (u + Math.imul(Ge, We)) | 0), + (v = (v + Math.imul(Ge, it)) | 0), + (f = (f + Math.imul(Se, Ue)) | 0), + (u = (u + Math.imul(Se, nt)) | 0), + (u = (u + Math.imul(Ke, Ue)) | 0), + (v = (v + Math.imul(Ke, nt)) | 0), + (f = (f + Math.imul(Le, He)) | 0), + (u = (u + Math.imul(Le, at)) | 0), + (u = (u + Math.imul(ze, He)) | 0), + (v = (v + Math.imul(ze, at)) | 0); + var Hr = (((E + f) | 0) + ((u & 8191) << 13)) | 0; + (E = (((v + (u >>> 13)) | 0) + (Hr >>> 26)) | 0), + (Hr &= 67108863), + (f = Math.imul(ke, Ie)), + (u = Math.imul(ke, Ye)), + (u = (u + Math.imul($e, Ie)) | 0), + (v = Math.imul($e, Ye)), + (f = (f + Math.imul(De, We)) | 0), + (u = (u + Math.imul(De, it)) | 0), + (u = (u + Math.imul(Ze, We)) | 0), + (v = (v + Math.imul(Ze, it)) | 0), + (f = (f + Math.imul(Me, Ue)) | 0), + (u = (u + Math.imul(Me, nt)) | 0), + (u = (u + Math.imul(Ge, Ue)) | 0), + (v = (v + Math.imul(Ge, nt)) | 0), + (f = (f + Math.imul(Se, He)) | 0), + (u = (u + Math.imul(Se, at)) | 0), + (u = (u + Math.imul(Ke, He)) | 0), + (v = (v + Math.imul(Ke, at)) | 0); + var hr = (((E + f) | 0) + ((u & 8191) << 13)) | 0; + (E = (((v + (u >>> 13)) | 0) + (hr >>> 26)) | 0), + (hr &= 67108863), + (f = Math.imul(ke, We)), + (u = Math.imul(ke, it)), + (u = (u + Math.imul($e, We)) | 0), + (v = Math.imul($e, it)), + (f = (f + Math.imul(De, Ue)) | 0), + (u = (u + Math.imul(De, nt)) | 0), + (u = (u + Math.imul(Ze, Ue)) | 0), + (v = (v + Math.imul(Ze, nt)) | 0), + (f = (f + Math.imul(Me, He)) | 0), + (u = (u + Math.imul(Me, at)) | 0), + (u = (u + Math.imul(Ge, He)) | 0), + (v = (v + Math.imul(Ge, at)) | 0); + var Lr = (((E + f) | 0) + ((u & 8191) << 13)) | 0; + (E = (((v + (u >>> 13)) | 0) + (Lr >>> 26)) | 0), + (Lr &= 67108863), + (f = Math.imul(ke, Ue)), + (u = Math.imul(ke, nt)), + (u = (u + Math.imul($e, Ue)) | 0), + (v = Math.imul($e, nt)), + (f = (f + Math.imul(De, He)) | 0), + (u = (u + Math.imul(De, at)) | 0), + (u = (u + Math.imul(Ze, He)) | 0), + (v = (v + Math.imul(Ze, at)) | 0); + var Zr = (((E + f) | 0) + ((u & 8191) << 13)) | 0; + (E = (((v + (u >>> 13)) | 0) + (Zr >>> 26)) | 0), + (Zr &= 67108863), + (f = Math.imul(ke, He)), + (u = Math.imul(ke, at)), + (u = (u + Math.imul($e, He)) | 0), + (v = Math.imul($e, at)); + var xn = (((E + f) | 0) + ((u & 8191) << 13)) | 0; + return ( + (E = (((v + (u >>> 13)) | 0) + (xn >>> 26)) | 0), + (xn &= 67108863), + (T[0] = Pr), + (T[1] = qt), + (T[2] = Ft), + (T[3] = _r), + (T[4] = xr), + (T[5] = Tr), + (T[6] = Er), + (T[7] = Cr), + (T[8] = Kr), + (T[9] = Vr), + (T[10] = Ur), + (T[11] = Rr), + (T[12] = Or), + (T[13] = ur), + (T[14] = Hr), + (T[15] = hr), + (T[16] = Lr), + (T[17] = Zr), + (T[18] = xn), + E !== 0 && ((T[19] = E), y.length++), + y + ); + }; + Math.imul || (k = I); + function O(g, o, p) { + (p.negative = o.negative ^ g.negative), + (p.length = g.length + o.length); + for (var y = 0, h = 0, b = 0; b < p.length - 1; b++) { + var T = h; + h = 0; + for ( + var E = y & 67108863, + f = Math.min(b, o.length - 1), + u = Math.max(0, b - g.length + 1); + u <= f; + u++ + ) { + var v = b - u, + R = g.words[v] | 0, + A = o.words[u] | 0, + L = R * A, + G = L & 67108863; + (T = (T + ((L / 67108864) | 0)) | 0), + (G = (G + E) | 0), + (E = G & 67108863), + (T = (T + (G >>> 26)) | 0), + (h += T >>> 26), + (T &= 67108863); + } + (p.words[b] = E), (y = T), (T = h); + } + return y !== 0 ? (p.words[b] = y) : p.length--, p.strip(); + } + function D(g, o, p) { + var y = new W(); + return y.mulp(g, o, p); + } + a.prototype.mulTo = function (o, p) { + var y, + h = this.length + o.length; + return ( + this.length === 10 && o.length === 10 + ? (y = k(this, o, p)) + : h < 63 + ? (y = I(this, o, p)) + : h < 1024 + ? (y = O(this, o, p)) + : (y = D(this, o, p)), + y + ); + }; + function W(g, o) { + (this.x = g), (this.y = o); + } + (W.prototype.makeRBT = function (o) { + for ( + var p = new Array(o), y = a.prototype._countBits(o) - 1, h = 0; + h < o; + h++ + ) + p[h] = this.revBin(h, y, o); + return p; + }), + (W.prototype.revBin = function (o, p, y) { + if (o === 0 || o === y - 1) return o; + for (var h = 0, b = 0; b < p; b++) + (h |= (o & 1) << (p - b - 1)), (o >>= 1); + return h; + }), + (W.prototype.permute = function (o, p, y, h, b, T) { + for (var E = 0; E < T; E++) (h[E] = p[o[E]]), (b[E] = y[o[E]]); + }), + (W.prototype.transform = function (o, p, y, h, b, T) { + this.permute(T, o, p, y, h, b); + for (var E = 1; E < b; E <<= 1) + for ( + var f = E << 1, + u = Math.cos((2 * Math.PI) / f), + v = Math.sin((2 * Math.PI) / f), + R = 0; + R < b; + R += f + ) + for (var A = u, L = v, G = 0; G < E; G++) { + var U = y[R + G], + Z = h[R + G], + de = y[R + G + E], + ne = h[R + G + E], + pe = A * de - L * ne; + (ne = A * ne + L * de), + (de = pe), + (y[R + G] = U + de), + (h[R + G] = Z + ne), + (y[R + G + E] = U - de), + (h[R + G + E] = Z - ne), + G !== f && + ((pe = u * A - v * L), (L = u * L + v * A), (A = pe)); + } + }), + (W.prototype.guessLen13b = function (o, p) { + var y = Math.max(p, o) | 1, + h = y & 1, + b = 0; + for (y = (y / 2) | 0; y; y = y >>> 1) b++; + return 1 << (b + 1 + h); + }), + (W.prototype.conjugate = function (o, p, y) { + if (!(y <= 1)) + for (var h = 0; h < y / 2; h++) { + var b = o[h]; + (o[h] = o[y - h - 1]), + (o[y - h - 1] = b), + (b = p[h]), + (p[h] = -p[y - h - 1]), + (p[y - h - 1] = -b); + } + }), + (W.prototype.normalize13b = function (o, p) { + for (var y = 0, h = 0; h < p / 2; h++) { + var b = + Math.round(o[2 * h + 1] / p) * 8192 + + Math.round(o[2 * h] / p) + + y; + (o[h] = b & 67108863), + b < 67108864 ? (y = 0) : (y = (b / 67108864) | 0); + } + return o; + }), + (W.prototype.convert13b = function (o, p, y, h) { + for (var b = 0, T = 0; T < p; T++) + (b = b + (o[T] | 0)), + (y[2 * T] = b & 8191), + (b = b >>> 13), + (y[2 * T + 1] = b & 8191), + (b = b >>> 13); + for (T = 2 * p; T < h; ++T) y[T] = 0; + t(b === 0), t((b & -8192) === 0); + }), + (W.prototype.stub = function (o) { + for (var p = new Array(o), y = 0; y < o; y++) p[y] = 0; + return p; + }), + (W.prototype.mulp = function (o, p, y) { + var h = 2 * this.guessLen13b(o.length, p.length), + b = this.makeRBT(h), + T = this.stub(h), + E = new Array(h), + f = new Array(h), + u = new Array(h), + v = new Array(h), + R = new Array(h), + A = new Array(h), + L = y.words; + (L.length = h), + this.convert13b(o.words, o.length, E, h), + this.convert13b(p.words, p.length, v, h), + this.transform(E, T, f, u, h, b), + this.transform(v, T, R, A, h, b); + for (var G = 0; G < h; G++) { + var U = f[G] * R[G] - u[G] * A[G]; + (u[G] = f[G] * A[G] + u[G] * R[G]), (f[G] = U); + } + return ( + this.conjugate(f, u, h), + this.transform(f, u, L, T, h, b), + this.conjugate(L, T, h), + this.normalize13b(L, h), + (y.negative = o.negative ^ p.negative), + (y.length = o.length + p.length), + y.strip() + ); + }), + (a.prototype.mul = function (o) { + var p = new a(null); + return ( + (p.words = new Array(this.length + o.length)), this.mulTo(o, p) + ); + }), + (a.prototype.mulf = function (o) { + var p = new a(null); + return (p.words = new Array(this.length + o.length)), D(this, o, p); + }), + (a.prototype.imul = function (o) { + return this.clone().mulTo(o, this); + }), + (a.prototype.imuln = function (o) { + t(typeof o == "number"), t(o < 67108864); + for (var p = 0, y = 0; y < this.length; y++) { + var h = (this.words[y] | 0) * o, + b = (h & 67108863) + (p & 67108863); + (p >>= 26), + (p += (h / 67108864) | 0), + (p += b >>> 26), + (this.words[y] = b & 67108863); + } + return p !== 0 && ((this.words[y] = p), this.length++), this; + }), + (a.prototype.muln = function (o) { + return this.clone().imuln(o); + }), + (a.prototype.sqr = function () { + return this.mul(this); + }), + (a.prototype.isqr = function () { + return this.imul(this.clone()); + }), + (a.prototype.pow = function (o) { + var p = C(o); + if (p.length === 0) return new a(1); + for ( + var y = this, h = 0; + h < p.length && p[h] === 0; + h++, y = y.sqr() + ); + if (++h < p.length) + for (var b = y.sqr(); h < p.length; h++, b = b.sqr()) + p[h] !== 0 && (y = y.mul(b)); + return y; + }), + (a.prototype.iushln = function (o) { + t(typeof o == "number" && o >= 0); + var p = o % 26, + y = (o - p) / 26, + h = (67108863 >>> (26 - p)) << (26 - p), + b; + if (p !== 0) { + var T = 0; + for (b = 0; b < this.length; b++) { + var E = this.words[b] & h, + f = ((this.words[b] | 0) - E) << p; + (this.words[b] = f | T), (T = E >>> (26 - p)); + } + T && ((this.words[b] = T), this.length++); + } + if (y !== 0) { + for (b = this.length - 1; b >= 0; b--) + this.words[b + y] = this.words[b]; + for (b = 0; b < y; b++) this.words[b] = 0; + this.length += y; + } + return this.strip(); + }), + (a.prototype.ishln = function (o) { + return t(this.negative === 0), this.iushln(o); + }), + (a.prototype.iushrn = function (o, p, y) { + t(typeof o == "number" && o >= 0); + var h; + p ? (h = (p - (p % 26)) / 26) : (h = 0); + var b = o % 26, + T = Math.min((o - b) / 26, this.length), + E = 67108863 ^ ((67108863 >>> b) << b), + f = y; + if (((h -= T), (h = Math.max(0, h)), f)) { + for (var u = 0; u < T; u++) f.words[u] = this.words[u]; + f.length = T; + } + if (T !== 0) + if (this.length > T) + for (this.length -= T, u = 0; u < this.length; u++) + this.words[u] = this.words[u + T]; + else (this.words[0] = 0), (this.length = 1); + var v = 0; + for (u = this.length - 1; u >= 0 && (v !== 0 || u >= h); u--) { + var R = this.words[u] | 0; + (this.words[u] = (v << (26 - b)) | (R >>> b)), (v = R & E); + } + return ( + f && v !== 0 && (f.words[f.length++] = v), + this.length === 0 && ((this.words[0] = 0), (this.length = 1)), + this.strip() + ); + }), + (a.prototype.ishrn = function (o, p, y) { + return t(this.negative === 0), this.iushrn(o, p, y); + }), + (a.prototype.shln = function (o) { + return this.clone().ishln(o); + }), + (a.prototype.ushln = function (o) { + return this.clone().iushln(o); + }), + (a.prototype.shrn = function (o) { + return this.clone().ishrn(o); + }), + (a.prototype.ushrn = function (o) { + return this.clone().iushrn(o); + }), + (a.prototype.testn = function (o) { + t(typeof o == "number" && o >= 0); + var p = o % 26, + y = (o - p) / 26, + h = 1 << p; + if (this.length <= y) return !1; + var b = this.words[y]; + return !!(b & h); + }), + (a.prototype.imaskn = function (o) { + t(typeof o == "number" && o >= 0); + var p = o % 26, + y = (o - p) / 26; + if ( + (t(this.negative === 0, "imaskn works only with positive numbers"), + this.length <= y) + ) + return this; + if ( + (p !== 0 && y++, (this.length = Math.min(y, this.length)), p !== 0) + ) { + var h = 67108863 ^ ((67108863 >>> p) << p); + this.words[this.length - 1] &= h; + } + return this.strip(); + }), + (a.prototype.maskn = function (o) { + return this.clone().imaskn(o); + }), + (a.prototype.iaddn = function (o) { + return ( + t(typeof o == "number"), + t(o < 67108864), + o < 0 + ? this.isubn(-o) + : this.negative !== 0 + ? this.length === 1 && (this.words[0] | 0) < o + ? ((this.words[0] = o - (this.words[0] | 0)), + (this.negative = 0), + this) + : ((this.negative = 0), + this.isubn(o), + (this.negative = 1), + this) + : this._iaddn(o) + ); + }), + (a.prototype._iaddn = function (o) { + this.words[0] += o; + for (var p = 0; p < this.length && this.words[p] >= 67108864; p++) + (this.words[p] -= 67108864), + p === this.length - 1 + ? (this.words[p + 1] = 1) + : this.words[p + 1]++; + return (this.length = Math.max(this.length, p + 1)), this; + }), + (a.prototype.isubn = function (o) { + if ((t(typeof o == "number"), t(o < 67108864), o < 0)) + return this.iaddn(-o); + if (this.negative !== 0) + return ( + (this.negative = 0), this.iaddn(o), (this.negative = 1), this + ); + if (((this.words[0] -= o), this.length === 1 && this.words[0] < 0)) + (this.words[0] = -this.words[0]), (this.negative = 1); + else + for (var p = 0; p < this.length && this.words[p] < 0; p++) + (this.words[p] += 67108864), (this.words[p + 1] -= 1); + return this.strip(); + }), + (a.prototype.addn = function (o) { + return this.clone().iaddn(o); + }), + (a.prototype.subn = function (o) { + return this.clone().isubn(o); + }), + (a.prototype.iabs = function () { + return (this.negative = 0), this; + }), + (a.prototype.abs = function () { + return this.clone().iabs(); + }), + (a.prototype._ishlnsubmul = function (o, p, y) { + var h = o.length + y, + b; + this._expand(h); + var T, + E = 0; + for (b = 0; b < o.length; b++) { + T = (this.words[b + y] | 0) + E; + var f = (o.words[b] | 0) * p; + (T -= f & 67108863), + (E = (T >> 26) - ((f / 67108864) | 0)), + (this.words[b + y] = T & 67108863); + } + for (; b < this.length - y; b++) + (T = (this.words[b + y] | 0) + E), + (E = T >> 26), + (this.words[b + y] = T & 67108863); + if (E === 0) return this.strip(); + for (t(E === -1), E = 0, b = 0; b < this.length; b++) + (T = -(this.words[b] | 0) + E), + (E = T >> 26), + (this.words[b] = T & 67108863); + return (this.negative = 1), this.strip(); + }), + (a.prototype._wordDiv = function (o, p) { + var y = this.length - o.length, + h = this.clone(), + b = o, + T = b.words[b.length - 1] | 0, + E = this._countBits(T); + (y = 26 - E), + y !== 0 && + ((b = b.ushln(y)), h.iushln(y), (T = b.words[b.length - 1] | 0)); + var f = h.length - b.length, + u; + if (p !== "mod") { + (u = new a(null)), + (u.length = f + 1), + (u.words = new Array(u.length)); + for (var v = 0; v < u.length; v++) u.words[v] = 0; + } + var R = h.clone()._ishlnsubmul(b, 1, f); + R.negative === 0 && ((h = R), u && (u.words[f] = 1)); + for (var A = f - 1; A >= 0; A--) { + var L = + (h.words[b.length + A] | 0) * 67108864 + + (h.words[b.length + A - 1] | 0); + for ( + L = Math.min((L / T) | 0, 67108863), h._ishlnsubmul(b, L, A); + h.negative !== 0; + + ) + L--, + (h.negative = 0), + h._ishlnsubmul(b, 1, A), + h.isZero() || (h.negative ^= 1); + u && (u.words[A] = L); + } + return ( + u && u.strip(), + h.strip(), + p !== "div" && y !== 0 && h.iushrn(y), + { div: u || null, mod: h } + ); + }), + (a.prototype.divmod = function (o, p, y) { + if ((t(!o.isZero()), this.isZero())) + return { div: new a(0), mod: new a(0) }; + var h, b, T; + return this.negative !== 0 && o.negative === 0 + ? ((T = this.neg().divmod(o, p)), + p !== "mod" && (h = T.div.neg()), + p !== "div" && + ((b = T.mod.neg()), y && b.negative !== 0 && b.iadd(o)), + { div: h, mod: b }) + : this.negative === 0 && o.negative !== 0 + ? ((T = this.divmod(o.neg(), p)), + p !== "mod" && (h = T.div.neg()), + { div: h, mod: T.mod }) + : (this.negative & o.negative) !== 0 + ? ((T = this.neg().divmod(o.neg(), p)), + p !== "div" && + ((b = T.mod.neg()), y && b.negative !== 0 && b.isub(o)), + { div: T.div, mod: b }) + : o.length > this.length || this.cmp(o) < 0 + ? { div: new a(0), mod: this } + : o.length === 1 + ? p === "div" + ? { div: this.divn(o.words[0]), mod: null } + : p === "mod" + ? { div: null, mod: new a(this.modn(o.words[0])) } + : { + div: this.divn(o.words[0]), + mod: new a(this.modn(o.words[0])), + } + : this._wordDiv(o, p); + }), + (a.prototype.div = function (o) { + return this.divmod(o, "div", !1).div; + }), + (a.prototype.mod = function (o) { + return this.divmod(o, "mod", !1).mod; + }), + (a.prototype.umod = function (o) { + return this.divmod(o, "mod", !0).mod; + }), + (a.prototype.divRound = function (o) { + var p = this.divmod(o); + if (p.mod.isZero()) return p.div; + var y = p.div.negative !== 0 ? p.mod.isub(o) : p.mod, + h = o.ushrn(1), + b = o.andln(1), + T = y.cmp(h); + return T < 0 || (b === 1 && T === 0) + ? p.div + : p.div.negative !== 0 + ? p.div.isubn(1) + : p.div.iaddn(1); + }), + (a.prototype.modn = function (o) { + t(o <= 67108863); + for (var p = (1 << 26) % o, y = 0, h = this.length - 1; h >= 0; h--) + y = (p * y + (this.words[h] | 0)) % o; + return y; + }), + (a.prototype.idivn = function (o) { + t(o <= 67108863); + for (var p = 0, y = this.length - 1; y >= 0; y--) { + var h = (this.words[y] | 0) + p * 67108864; + (this.words[y] = (h / o) | 0), (p = h % o); + } + return this.strip(); + }), + (a.prototype.divn = function (o) { + return this.clone().idivn(o); + }), + (a.prototype.egcd = function (o) { + t(o.negative === 0), t(!o.isZero()); + var p = this, + y = o.clone(); + p.negative !== 0 ? (p = p.umod(o)) : (p = p.clone()); + for ( + var h = new a(1), b = new a(0), T = new a(0), E = new a(1), f = 0; + p.isEven() && y.isEven(); + + ) + p.iushrn(1), y.iushrn(1), ++f; + for (var u = y.clone(), v = p.clone(); !p.isZero(); ) { + for ( + var R = 0, A = 1; + (p.words[0] & A) === 0 && R < 26; + ++R, A <<= 1 + ); + if (R > 0) + for (p.iushrn(R); R-- > 0; ) + (h.isOdd() || b.isOdd()) && (h.iadd(u), b.isub(v)), + h.iushrn(1), + b.iushrn(1); + for ( + var L = 0, G = 1; + (y.words[0] & G) === 0 && L < 26; + ++L, G <<= 1 + ); + if (L > 0) + for (y.iushrn(L); L-- > 0; ) + (T.isOdd() || E.isOdd()) && (T.iadd(u), E.isub(v)), + T.iushrn(1), + E.iushrn(1); + p.cmp(y) >= 0 + ? (p.isub(y), h.isub(T), b.isub(E)) + : (y.isub(p), T.isub(h), E.isub(b)); + } + return { a: T, b: E, gcd: y.iushln(f) }; + }), + (a.prototype._invmp = function (o) { + t(o.negative === 0), t(!o.isZero()); + var p = this, + y = o.clone(); + p.negative !== 0 ? (p = p.umod(o)) : (p = p.clone()); + for ( + var h = new a(1), b = new a(0), T = y.clone(); + p.cmpn(1) > 0 && y.cmpn(1) > 0; + + ) { + for ( + var E = 0, f = 1; + (p.words[0] & f) === 0 && E < 26; + ++E, f <<= 1 + ); + if (E > 0) + for (p.iushrn(E); E-- > 0; ) h.isOdd() && h.iadd(T), h.iushrn(1); + for ( + var u = 0, v = 1; + (y.words[0] & v) === 0 && u < 26; + ++u, v <<= 1 + ); + if (u > 0) + for (y.iushrn(u); u-- > 0; ) b.isOdd() && b.iadd(T), b.iushrn(1); + p.cmp(y) >= 0 ? (p.isub(y), h.isub(b)) : (y.isub(p), b.isub(h)); + } + var R; + return ( + p.cmpn(1) === 0 ? (R = h) : (R = b), R.cmpn(0) < 0 && R.iadd(o), R + ); + }), + (a.prototype.gcd = function (o) { + if (this.isZero()) return o.abs(); + if (o.isZero()) return this.abs(); + var p = this.clone(), + y = o.clone(); + (p.negative = 0), (y.negative = 0); + for (var h = 0; p.isEven() && y.isEven(); h++) + p.iushrn(1), y.iushrn(1); + do { + for (; p.isEven(); ) p.iushrn(1); + for (; y.isEven(); ) y.iushrn(1); + var b = p.cmp(y); + if (b < 0) { + var T = p; + (p = y), (y = T); + } else if (b === 0 || y.cmpn(1) === 0) break; + p.isub(y); + } while (!0); + return y.iushln(h); + }), + (a.prototype.invm = function (o) { + return this.egcd(o).a.umod(o); + }), + (a.prototype.isEven = function () { + return (this.words[0] & 1) === 0; + }), + (a.prototype.isOdd = function () { + return (this.words[0] & 1) === 1; + }), + (a.prototype.andln = function (o) { + return this.words[0] & o; + }), + (a.prototype.bincn = function (o) { + t(typeof o == "number"); + var p = o % 26, + y = (o - p) / 26, + h = 1 << p; + if (this.length <= y) + return this._expand(y + 1), (this.words[y] |= h), this; + for (var b = h, T = y; b !== 0 && T < this.length; T++) { + var E = this.words[T] | 0; + (E += b), (b = E >>> 26), (E &= 67108863), (this.words[T] = E); + } + return b !== 0 && ((this.words[T] = b), this.length++), this; + }), + (a.prototype.isZero = function () { + return this.length === 1 && this.words[0] === 0; + }), + (a.prototype.cmpn = function (o) { + var p = o < 0; + if (this.negative !== 0 && !p) return -1; + if (this.negative === 0 && p) return 1; + this.strip(); + var y; + if (this.length > 1) y = 1; + else { + p && (o = -o), t(o <= 67108863, "Number is too big"); + var h = this.words[0] | 0; + y = h === o ? 0 : h < o ? -1 : 1; + } + return this.negative !== 0 ? -y | 0 : y; + }), + (a.prototype.cmp = function (o) { + if (this.negative !== 0 && o.negative === 0) return -1; + if (this.negative === 0 && o.negative !== 0) return 1; + var p = this.ucmp(o); + return this.negative !== 0 ? -p | 0 : p; + }), + (a.prototype.ucmp = function (o) { + if (this.length > o.length) return 1; + if (this.length < o.length) return -1; + for (var p = 0, y = this.length - 1; y >= 0; y--) { + var h = this.words[y] | 0, + b = o.words[y] | 0; + if (h !== b) { + h < b ? (p = -1) : h > b && (p = 1); + break; + } + } + return p; + }), + (a.prototype.gtn = function (o) { + return this.cmpn(o) === 1; + }), + (a.prototype.gt = function (o) { + return this.cmp(o) === 1; + }), + (a.prototype.gten = function (o) { + return this.cmpn(o) >= 0; + }), + (a.prototype.gte = function (o) { + return this.cmp(o) >= 0; + }), + (a.prototype.ltn = function (o) { + return this.cmpn(o) === -1; + }), + (a.prototype.lt = function (o) { + return this.cmp(o) === -1; + }), + (a.prototype.lten = function (o) { + return this.cmpn(o) <= 0; + }), + (a.prototype.lte = function (o) { + return this.cmp(o) <= 0; + }), + (a.prototype.eqn = function (o) { + return this.cmpn(o) === 0; + }), + (a.prototype.eq = function (o) { + return this.cmp(o) === 0; + }), + (a.red = function (o) { + return new Y(o); + }), + (a.prototype.toRed = function (o) { + return ( + t(!this.red, "Already a number in reduction context"), + t(this.negative === 0, "red works only with positives"), + o.convertTo(this)._forceRed(o) + ); + }), + (a.prototype.fromRed = function () { + return ( + t(this.red, "fromRed works only with numbers in reduction context"), + this.red.convertFrom(this) + ); + }), + (a.prototype._forceRed = function (o) { + return (this.red = o), this; + }), + (a.prototype.forceRed = function (o) { + return ( + t(!this.red, "Already a number in reduction context"), + this._forceRed(o) + ); + }), + (a.prototype.redAdd = function (o) { + return ( + t(this.red, "redAdd works only with red numbers"), + this.red.add(this, o) + ); + }), + (a.prototype.redIAdd = function (o) { + return ( + t(this.red, "redIAdd works only with red numbers"), + this.red.iadd(this, o) + ); + }), + (a.prototype.redSub = function (o) { + return ( + t(this.red, "redSub works only with red numbers"), + this.red.sub(this, o) + ); + }), + (a.prototype.redISub = function (o) { + return ( + t(this.red, "redISub works only with red numbers"), + this.red.isub(this, o) + ); + }), + (a.prototype.redShl = function (o) { + return ( + t(this.red, "redShl works only with red numbers"), + this.red.shl(this, o) + ); + }), + (a.prototype.redMul = function (o) { + return ( + t(this.red, "redMul works only with red numbers"), + this.red._verify2(this, o), + this.red.mul(this, o) + ); + }), + (a.prototype.redIMul = function (o) { + return ( + t(this.red, "redMul works only with red numbers"), + this.red._verify2(this, o), + this.red.imul(this, o) + ); + }), + (a.prototype.redSqr = function () { + return ( + t(this.red, "redSqr works only with red numbers"), + this.red._verify1(this), + this.red.sqr(this) + ); + }), + (a.prototype.redISqr = function () { + return ( + t(this.red, "redISqr works only with red numbers"), + this.red._verify1(this), + this.red.isqr(this) + ); + }), + (a.prototype.redSqrt = function () { + return ( + t(this.red, "redSqrt works only with red numbers"), + this.red._verify1(this), + this.red.sqrt(this) + ); + }), + (a.prototype.redInvm = function () { + return ( + t(this.red, "redInvm works only with red numbers"), + this.red._verify1(this), + this.red.invm(this) + ); + }), + (a.prototype.redNeg = function () { + return ( + t(this.red, "redNeg works only with red numbers"), + this.red._verify1(this), + this.red.neg(this) + ); + }), + (a.prototype.redPow = function (o) { + return ( + t(this.red && !o.red, "redPow(normalNum)"), + this.red._verify1(this), + this.red.pow(this, o) + ); + }); + var H = { k256: null, p224: null, p192: null, p25519: null }; + function j(g, o) { + (this.name = g), + (this.p = new a(o, 16)), + (this.n = this.p.bitLength()), + (this.k = new a(1).iushln(this.n).isub(this.p)), + (this.tmp = this._tmp()); + } + (j.prototype._tmp = function () { + var o = new a(null); + return (o.words = new Array(Math.ceil(this.n / 13))), o; + }), + (j.prototype.ireduce = function (o) { + var p = o, + y; + do + this.split(p, this.tmp), + (p = this.imulK(p)), + (p = p.iadd(this.tmp)), + (y = p.bitLength()); + while (y > this.n); + var h = y < this.n ? -1 : p.ucmp(this.p); + return ( + h === 0 + ? ((p.words[0] = 0), (p.length = 1)) + : h > 0 + ? p.isub(this.p) + : p.strip !== void 0 + ? p.strip() + : p._strip(), + p + ); + }), + (j.prototype.split = function (o, p) { + o.iushrn(this.n, 0, p); + }), + (j.prototype.imulK = function (o) { + return o.imul(this.k); + }); + function V() { + j.call( + this, + "k256", + "ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f" + ); + } + n(V, j), + (V.prototype.split = function (o, p) { + for (var y = 4194303, h = Math.min(o.length, 9), b = 0; b < h; b++) + p.words[b] = o.words[b]; + if (((p.length = h), o.length <= 9)) { + (o.words[0] = 0), (o.length = 1); + return; + } + var T = o.words[9]; + for (p.words[p.length++] = T & y, b = 10; b < o.length; b++) { + var E = o.words[b] | 0; + (o.words[b - 10] = ((E & y) << 4) | (T >>> 22)), (T = E); + } + (T >>>= 22), + (o.words[b - 10] = T), + T === 0 && o.length > 10 ? (o.length -= 10) : (o.length -= 9); + }), + (V.prototype.imulK = function (o) { + (o.words[o.length] = 0), (o.words[o.length + 1] = 0), (o.length += 2); + for (var p = 0, y = 0; y < o.length; y++) { + var h = o.words[y] | 0; + (p += h * 977), + (o.words[y] = p & 67108863), + (p = h * 64 + ((p / 67108864) | 0)); + } + return ( + o.words[o.length - 1] === 0 && + (o.length--, o.words[o.length - 1] === 0 && o.length--), + o + ); + }); + function te() { + j.call( + this, + "p224", + "ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001" + ); + } + n(te, j); + function $() { + j.call( + this, + "p192", + "ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff" + ); + } + n($, j); + function ae() { + j.call( + this, + "25519", + "7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed" + ); + } + n(ae, j), + (ae.prototype.imulK = function (o) { + for (var p = 0, y = 0; y < o.length; y++) { + var h = (o.words[y] | 0) * 19 + p, + b = h & 67108863; + (h >>>= 26), (o.words[y] = b), (p = h); + } + return p !== 0 && (o.words[o.length++] = p), o; + }), + (a._prime = function (o) { + if (H[o]) return H[o]; + var p; + if (o === "k256") p = new V(); + else if (o === "p224") p = new te(); + else if (o === "p192") p = new $(); + else if (o === "p25519") p = new ae(); + else throw new Error("Unknown prime " + o); + return (H[o] = p), p; + }); + function Y(g) { + if (typeof g == "string") { + var o = a._prime(g); + (this.m = o.p), (this.prime = o); + } else + t(g.gtn(1), "modulus must be greater than 1"), + (this.m = g), + (this.prime = null); + } + (Y.prototype._verify1 = function (o) { + t(o.negative === 0, "red works only with positives"), + t(o.red, "red works only with red numbers"); + }), + (Y.prototype._verify2 = function (o, p) { + t((o.negative | p.negative) === 0, "red works only with positives"), + t(o.red && o.red === p.red, "red works only with red numbers"); + }), + (Y.prototype.imod = function (o) { + return this.prime + ? this.prime.ireduce(o)._forceRed(this) + : o.umod(this.m)._forceRed(this); + }), + (Y.prototype.neg = function (o) { + return o.isZero() ? o.clone() : this.m.sub(o)._forceRed(this); + }), + (Y.prototype.add = function (o, p) { + this._verify2(o, p); + var y = o.add(p); + return y.cmp(this.m) >= 0 && y.isub(this.m), y._forceRed(this); + }), + (Y.prototype.iadd = function (o, p) { + this._verify2(o, p); + var y = o.iadd(p); + return y.cmp(this.m) >= 0 && y.isub(this.m), y; + }), + (Y.prototype.sub = function (o, p) { + this._verify2(o, p); + var y = o.sub(p); + return y.cmpn(0) < 0 && y.iadd(this.m), y._forceRed(this); + }), + (Y.prototype.isub = function (o, p) { + this._verify2(o, p); + var y = o.isub(p); + return y.cmpn(0) < 0 && y.iadd(this.m), y; + }), + (Y.prototype.shl = function (o, p) { + return this._verify1(o), this.imod(o.ushln(p)); + }), + (Y.prototype.imul = function (o, p) { + return this._verify2(o, p), this.imod(o.imul(p)); + }), + (Y.prototype.mul = function (o, p) { + return this._verify2(o, p), this.imod(o.mul(p)); + }), + (Y.prototype.isqr = function (o) { + return this.imul(o, o.clone()); + }), + (Y.prototype.sqr = function (o) { + return this.mul(o, o); + }), + (Y.prototype.sqrt = function (o) { + if (o.isZero()) return o.clone(); + var p = this.m.andln(3); + if ((t(p % 2 === 1), p === 3)) { + var y = this.m.add(new a(1)).iushrn(2); + return this.pow(o, y); + } + for (var h = this.m.subn(1), b = 0; !h.isZero() && h.andln(1) === 0; ) + b++, h.iushrn(1); + t(!h.isZero()); + var T = new a(1).toRed(this), + E = T.redNeg(), + f = this.m.subn(1).iushrn(1), + u = this.m.bitLength(); + for (u = new a(2 * u * u).toRed(this); this.pow(u, f).cmp(E) !== 0; ) + u.redIAdd(E); + for ( + var v = this.pow(u, h), + R = this.pow(o, h.addn(1).iushrn(1)), + A = this.pow(o, h), + L = b; + A.cmp(T) !== 0; + + ) { + for (var G = A, U = 0; G.cmp(T) !== 0; U++) G = G.redSqr(); + t(U < L); + var Z = this.pow(v, new a(1).iushln(L - U - 1)); + (R = R.redMul(Z)), (v = Z.redSqr()), (A = A.redMul(v)), (L = U); + } + return R; + }), + (Y.prototype.invm = function (o) { + var p = o._invmp(this.m); + return p.negative !== 0 + ? ((p.negative = 0), this.imod(p).redNeg()) + : this.imod(p); + }), + (Y.prototype.pow = function (o, p) { + if (p.isZero()) return new a(1).toRed(this); + if (p.cmpn(1) === 0) return o.clone(); + var y = 4, + h = new Array(1 << y); + (h[0] = new a(1).toRed(this)), (h[1] = o); + for (var b = 2; b < h.length; b++) h[b] = this.mul(h[b - 1], o); + var T = h[0], + E = 0, + f = 0, + u = p.bitLength() % 26; + for (u === 0 && (u = 26), b = p.length - 1; b >= 0; b--) { + for (var v = p.words[b], R = u - 1; R >= 0; R--) { + var A = (v >> R) & 1; + if ((T !== h[0] && (T = this.sqr(T)), A === 0 && E === 0)) { + f = 0; + continue; + } + (E <<= 1), + (E |= A), + f++, + !(f !== y && (b !== 0 || R !== 0)) && + ((T = this.mul(T, h[E])), (f = 0), (E = 0)); + } + u = 26; + } + return T; + }), + (Y.prototype.convertTo = function (o) { + var p = o.umod(this.m); + return p === o ? p.clone() : p; + }), + (Y.prototype.convertFrom = function (o) { + var p = o.clone(); + return (p.red = null), p; + }), + (a.mont = function (o) { + return new K(o); + }); + function K(g) { + Y.call(this, g), + (this.shift = this.m.bitLength()), + this.shift % 26 !== 0 && (this.shift += 26 - (this.shift % 26)), + (this.r = new a(1).iushln(this.shift)), + (this.r2 = this.imod(this.r.sqr())), + (this.rinv = this.r._invmp(this.m)), + (this.minv = this.rinv.mul(this.r).isubn(1).div(this.m)), + (this.minv = this.minv.umod(this.r)), + (this.minv = this.r.sub(this.minv)); + } + n(K, Y), + (K.prototype.convertTo = function (o) { + return this.imod(o.ushln(this.shift)); + }), + (K.prototype.convertFrom = function (o) { + var p = this.imod(o.mul(this.rinv)); + return (p.red = null), p; + }), + (K.prototype.imul = function (o, p) { + if (o.isZero() || p.isZero()) + return (o.words[0] = 0), (o.length = 1), o; + var y = o.imul(p), + h = y + .maskn(this.shift) + .mul(this.minv) + .imaskn(this.shift) + .mul(this.m), + b = y.isub(h).iushrn(this.shift), + T = b; + return ( + b.cmp(this.m) >= 0 + ? (T = b.isub(this.m)) + : b.cmpn(0) < 0 && (T = b.iadd(this.m)), + T._forceRed(this) + ); + }), + (K.prototype.mul = function (o, p) { + if (o.isZero() || p.isZero()) return new a(0)._forceRed(this); + var y = o.mul(p), + h = y + .maskn(this.shift) + .mul(this.minv) + .imaskn(this.shift) + .mul(this.m), + b = y.isub(h).iushrn(this.shift), + T = b; + return ( + b.cmp(this.m) >= 0 + ? (T = b.isub(this.m)) + : b.cmpn(0) < 0 && (T = b.iadd(this.m)), + T._forceRed(this) + ); + }), + (K.prototype.invm = function (o) { + var p = this.imod(o._invmp(this.m).mul(this.r2)); + return p._forceRed(this); + }); + })(typeof uF > "u" || uF, Yle); + }); + var lF = N((iVr, Jle) => { + _(); + x(); + var Vy = $le(), + Swt = qI(); + function Gy(r) { + this.rand = r || new Swt.Rand(); + } + Jle.exports = Gy; + Gy.create = function (e) { + return new Gy(e); + }; + Gy.prototype._randbelow = function (e) { + var t = e.bitLength(), + n = Math.ceil(t / 8); + do var a = new Vy(this.rand.generate(n)); + while (a.cmp(e) >= 0); + return a; + }; + Gy.prototype._randrange = function (e, t) { + var n = t.sub(e); + return e.add(this._randbelow(n)); + }; + Gy.prototype.test = function (e, t, n) { + var a = e.bitLength(), + i = Vy.mont(e), + s = new Vy(1).toRed(i); + t || (t = Math.max(1, (a / 48) | 0)); + for (var c = e.subn(1), l = 0; !c.testn(l); l++); + for (var d = e.shrn(l), m = c.toRed(i), w = !0; t > 0; t--) { + var C = this._randrange(new Vy(2), c); + n && n(C); + var I = C.toRed(i).redPow(d); + if (!(I.cmp(s) === 0 || I.cmp(m) === 0)) { + for (var k = 1; k < l; k++) { + if (((I = I.redSqr()), I.cmp(s) === 0)) return !1; + if (I.cmp(m) === 0) break; + } + if (k === l) return !1; + } + } + return w; + }; + Gy.prototype.getDivisor = function (e, t) { + var n = e.bitLength(), + a = Vy.mont(e), + i = new Vy(1).toRed(a); + t || (t = Math.max(1, (n / 48) | 0)); + for (var s = e.subn(1), c = 0; !s.testn(c); c++); + for (var l = e.shrn(c), d = s.toRed(a); t > 0; t--) { + var m = this._randrange(new Vy(2), s), + w = e.gcd(m); + if (w.cmpn(1) !== 0) return w; + var C = m.toRed(a).redPow(l); + if (!(C.cmp(i) === 0 || C.cmp(d) === 0)) { + for (var I = 1; I < c; I++) { + if (((C = C.redSqr()), C.cmp(i) === 0)) + return C.fromRed().subn(1).gcd(e); + if (C.cmp(d) === 0) break; + } + if (I === c) return (C = C.redSqr()), C.fromRed().subn(1).gcd(e); + } + } + return !1; + }; + }); + var yF = N((pVr, Xle) => { + _(); + x(); + var Mwt = Ay(); + Xle.exports = mF; + mF.simpleSieve = hF; + mF.fermatTest = fF; + var Gs = cF(), + Pwt = new Gs(24), + Rwt = lF(), + Zle = new Rwt(), + Bwt = new Gs(1), + pF = new Gs(2), + Nwt = new Gs(5), + cVr = new Gs(16), + uVr = new Gs(8), + Owt = new Gs(10), + Lwt = new Gs(3), + lVr = new Gs(7), + Dwt = new Gs(11), + Qle = new Gs(4), + dVr = new Gs(12), + dF = null; + function qwt() { + if (dF !== null) return dF; + var r = 1048576, + e = []; + e[0] = 2; + for (var t = 1, n = 3; n < r; n += 2) { + for ( + var a = Math.ceil(Math.sqrt(n)), i = 0; + i < t && e[i] <= a && n % e[i] !== 0; + i++ + ); + (t !== i && e[i] <= a) || (e[t++] = n); + } + return (dF = e), e; + } + function hF(r) { + for (var e = qwt(), t = 0; t < e.length; t++) + if (r.modn(e[t]) === 0) return r.cmpn(e[t]) === 0; + return !0; + } + function fF(r) { + var e = Gs.mont(r); + return pF.toRed(e).redPow(r.subn(1)).fromRed().cmpn(1) === 0; + } + function mF(r, e) { + if (r < 16) + return e === 2 || e === 5 ? new Gs([140, 123]) : new Gs([140, 39]); + e = new Gs(e); + for (var t, n; ; ) { + for (t = new Gs(Mwt(Math.ceil(r / 8))); t.bitLength() > r; ) t.ishrn(1); + if ((t.isEven() && t.iadd(Bwt), t.testn(1) || t.iadd(pF), e.cmp(pF))) { + if (!e.cmp(Nwt)) for (; t.mod(Owt).cmp(Lwt); ) t.iadd(Qle); + } else for (; t.mod(Pwt).cmp(Dwt); ) t.iadd(Qle); + if ( + ((n = t.shrn(1)), + hF(n) && hF(t) && fF(n) && fF(t) && Zle.test(n) && Zle.test(t)) + ) + return t; + } + } + }); + var ede = N((mVr, Fwt) => { + Fwt.exports = { + modp1: { + gen: "02", + prime: + "ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff", + }, + modp2: { + gen: "02", + prime: + "ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff", + }, + modp5: { + gen: "02", + prime: + "ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca237327ffffffffffffffff", + }, + modp14: { + gen: "02", + prime: + "ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff", + }, + modp15: { + gen: "02", + prime: + "ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff", + }, + modp16: { + gen: "02", + prime: + "ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff", + }, + modp17: { + gen: "02", + prime: + "ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff", + }, + modp18: { + gen: "02", + prime: + "ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff", + }, + }; + }); + var ade = N((yVr, nde) => { + _(); + x(); + var xl = cF(), + Wwt = lF(), + tde = new Wwt(), + Uwt = new xl(24), + Hwt = new xl(11), + zwt = new xl(10), + jwt = new xl(3), + Kwt = new xl(7), + rde = yF(), + Vwt = Ay(); + nde.exports = nf; + function Gwt(r, e) { + return ( + (e = e || "utf8"), + P.Buffer.isBuffer(r) || (r = new P.Buffer(r, e)), + (this._pub = new xl(r)), + this + ); + } + function Ywt(r, e) { + return ( + (e = e || "utf8"), + P.Buffer.isBuffer(r) || (r = new P.Buffer(r, e)), + (this._priv = new xl(r)), + this + ); + } + var FI = {}; + function $wt(r, e) { + var t = e.toString("hex"), + n = [t, r.toString(16)].join("_"); + if (n in FI) return FI[n]; + var a = 0; + if (r.isEven() || !rde.simpleSieve || !rde.fermatTest(r) || !tde.test(r)) + return ( + (a += 1), + t === "02" || t === "05" ? (a += 8) : (a += 4), + (FI[n] = a), + a + ); + tde.test(r.shrn(1)) || (a += 2); + var i; + switch (t) { + case "02": + r.mod(Uwt).cmp(Hwt) && (a += 8); + break; + case "05": + (i = r.mod(zwt)), i.cmp(jwt) && i.cmp(Kwt) && (a += 8); + break; + default: + a += 4; + } + return (FI[n] = a), a; + } + function nf(r, e, t) { + this.setGenerator(e), + (this.__prime = new xl(r)), + (this._prime = xl.mont(this.__prime)), + (this._primeLen = r.length), + (this._pub = void 0), + (this._priv = void 0), + (this._primeCode = void 0), + t + ? ((this.setPublicKey = Gwt), (this.setPrivateKey = Ywt)) + : (this._primeCode = 8); + } + Object.defineProperty(nf.prototype, "verifyError", { + enumerable: !0, + get: function () { + return ( + typeof this._primeCode != "number" && + (this._primeCode = $wt(this.__prime, this.__gen)), + this._primeCode + ); + }, + }); + nf.prototype.generateKeys = function () { + return ( + this._priv || (this._priv = new xl(Vwt(this._primeLen))), + (this._pub = this._gen.toRed(this._prime).redPow(this._priv).fromRed()), + this.getPublicKey() + ); + }; + nf.prototype.computeSecret = function (r) { + (r = new xl(r)), (r = r.toRed(this._prime)); + var e = r.redPow(this._priv).fromRed(), + t = new P.Buffer(e.toArray()), + n = this.getPrime(); + if (t.length < n.length) { + var a = new P.Buffer(n.length - t.length); + a.fill(0), (t = P.Buffer.concat([a, t])); + } + return t; + }; + nf.prototype.getPublicKey = function (e) { + return WI(this._pub, e); + }; + nf.prototype.getPrivateKey = function (e) { + return WI(this._priv, e); + }; + nf.prototype.getPrime = function (r) { + return WI(this.__prime, r); + }; + nf.prototype.getGenerator = function (r) { + return WI(this._gen, r); + }; + nf.prototype.setGenerator = function (r, e) { + return ( + (e = e || "utf8"), + P.Buffer.isBuffer(r) || (r = new P.Buffer(r, e)), + (this.__gen = r), + (this._gen = new xl(r)), + this + ); + }; + function WI(r, e) { + var t = new P.Buffer(r.toArray()); + return e ? t.toString(e) : t; + } + }); + var ode = N((V1) => { + _(); + x(); + var Jwt = yF(), + ide = ede(), + gF = ade(); + function Zwt(r) { + var e = new P.Buffer(ide[r].prime, "hex"), + t = new P.Buffer(ide[r].gen, "hex"); + return new gF(e, t); + } + var Qwt = { binary: !0, hex: !0, base64: !0 }; + function sde(r, e, t, n) { + return P.Buffer.isBuffer(e) || Qwt[e] === void 0 + ? sde(r, "binary", e, t) + : ((e = e || "binary"), + (n = n || "binary"), + (t = t || new P.Buffer([2])), + P.Buffer.isBuffer(t) || (t = new P.Buffer(t, n)), + typeof r == "number" + ? new gF(Jwt(r, t), t, !0) + : (P.Buffer.isBuffer(r) || (r = new P.Buffer(r, e)), + new gF(r, t, !0))); + } + V1.DiffieHellmanGroup = + V1.createDiffieHellmanGroup = + V1.getDiffieHellman = + Zwt; + V1.createDiffieHellman = V1.DiffieHellman = sde; + }); + var UI = N((xVr, lde) => { + _(); + x(); + var G1 = Gr(), + Xwt = Ay(); + function e2t(r) { + var e = cde(r), + t = e + .toRed(G1.mont(r.modulus)) + .redPow(new G1(r.publicExponent)) + .fromRed(); + return { blinder: t, unblinder: e.invm(r.modulus) }; + } + function cde(r) { + var e = r.modulus.byteLength(), + t; + do t = new G1(Xwt(e)); + while (t.cmp(r.modulus) >= 0 || !t.umod(r.prime1) || !t.umod(r.prime2)); + return t; + } + function ude(r, e) { + var t = e2t(e), + n = e.modulus.byteLength(), + a = new G1(r).mul(t.blinder).umod(e.modulus), + i = a.toRed(G1.mont(e.prime1)), + s = a.toRed(G1.mont(e.prime2)), + c = e.coefficient, + l = e.prime1, + d = e.prime2, + m = i.redPow(e.exponent1).fromRed(), + w = s.redPow(e.exponent2).fromRed(), + C = m.isub(w).imul(c).umod(l).imul(d); + return w + .iadd(C) + .imul(t.unblinder) + .umod(e.modulus) + .toArrayLike(P.Buffer, "be", n); + } + ude.getr = cde; + lde.exports = ude; + }); + var vF = N((dde, bF) => { + _(); + x(); + (function (r, e) { + "use strict"; + function t(g, o) { + if (!g) throw new Error(o || "Assertion failed"); + } + function n(g, o) { + g.super_ = o; + var p = function () {}; + (p.prototype = o.prototype), + (g.prototype = new p()), + (g.prototype.constructor = g); + } + function a(g, o, p) { + if (a.isBN(g)) return g; + (this.negative = 0), + (this.words = null), + (this.length = 0), + (this.red = null), + g !== null && + ((o === "le" || o === "be") && ((p = o), (o = 10)), + this._init(g || 0, o || 10, p || "be")); + } + typeof r == "object" ? (r.exports = a) : (e.BN = a), + (a.BN = a), + (a.wordSize = 26); + var i; + try { + typeof window < "u" && typeof window.Buffer < "u" + ? (i = window.Buffer) + : (i = Hi().Buffer); + } catch {} + (a.isBN = function (o) { + return o instanceof a + ? !0 + : o !== null && + typeof o == "object" && + o.constructor.wordSize === a.wordSize && + Array.isArray(o.words); + }), + (a.max = function (o, p) { + return o.cmp(p) > 0 ? o : p; + }), + (a.min = function (o, p) { + return o.cmp(p) < 0 ? o : p; + }), + (a.prototype._init = function (o, p, y) { + if (typeof o == "number") return this._initNumber(o, p, y); + if (typeof o == "object") return this._initArray(o, p, y); + p === "hex" && (p = 16), + t(p === (p | 0) && p >= 2 && p <= 36), + (o = o.toString().replace(/\s+/g, "")); + var h = 0; + o[0] === "-" && (h++, (this.negative = 1)), + h < o.length && + (p === 16 + ? this._parseHex(o, h, y) + : (this._parseBase(o, p, h), + y === "le" && this._initArray(this.toArray(), p, y))); + }), + (a.prototype._initNumber = function (o, p, y) { + o < 0 && ((this.negative = 1), (o = -o)), + o < 67108864 + ? ((this.words = [o & 67108863]), (this.length = 1)) + : o < 4503599627370496 + ? ((this.words = [o & 67108863, (o / 67108864) & 67108863]), + (this.length = 2)) + : (t(o < 9007199254740992), + (this.words = [o & 67108863, (o / 67108864) & 67108863, 1]), + (this.length = 3)), + y === "le" && this._initArray(this.toArray(), p, y); + }), + (a.prototype._initArray = function (o, p, y) { + if ((t(typeof o.length == "number"), o.length <= 0)) + return (this.words = [0]), (this.length = 1), this; + (this.length = Math.ceil(o.length / 3)), + (this.words = new Array(this.length)); + for (var h = 0; h < this.length; h++) this.words[h] = 0; + var b, + T, + E = 0; + if (y === "be") + for (h = o.length - 1, b = 0; h >= 0; h -= 3) + (T = o[h] | (o[h - 1] << 8) | (o[h - 2] << 16)), + (this.words[b] |= (T << E) & 67108863), + (this.words[b + 1] = (T >>> (26 - E)) & 67108863), + (E += 24), + E >= 26 && ((E -= 26), b++); + else if (y === "le") + for (h = 0, b = 0; h < o.length; h += 3) + (T = o[h] | (o[h + 1] << 8) | (o[h + 2] << 16)), + (this.words[b] |= (T << E) & 67108863), + (this.words[b + 1] = (T >>> (26 - E)) & 67108863), + (E += 24), + E >= 26 && ((E -= 26), b++); + return this.strip(); + }); + function s(g, o) { + var p = g.charCodeAt(o); + return p >= 65 && p <= 70 + ? p - 55 + : p >= 97 && p <= 102 + ? p - 87 + : (p - 48) & 15; + } + function c(g, o, p) { + var y = s(g, p); + return p - 1 >= o && (y |= s(g, p - 1) << 4), y; + } + a.prototype._parseHex = function (o, p, y) { + (this.length = Math.ceil((o.length - p) / 6)), + (this.words = new Array(this.length)); + for (var h = 0; h < this.length; h++) this.words[h] = 0; + var b = 0, + T = 0, + E; + if (y === "be") + for (h = o.length - 1; h >= p; h -= 2) + (E = c(o, p, h) << b), + (this.words[T] |= E & 67108863), + b >= 18 + ? ((b -= 18), (T += 1), (this.words[T] |= E >>> 26)) + : (b += 8); + else { + var f = o.length - p; + for (h = f % 2 === 0 ? p + 1 : p; h < o.length; h += 2) + (E = c(o, p, h) << b), + (this.words[T] |= E & 67108863), + b >= 18 + ? ((b -= 18), (T += 1), (this.words[T] |= E >>> 26)) + : (b += 8); + } + this.strip(); + }; + function l(g, o, p, y) { + for (var h = 0, b = Math.min(g.length, p), T = o; T < b; T++) { + var E = g.charCodeAt(T) - 48; + (h *= y), + E >= 49 + ? (h += E - 49 + 10) + : E >= 17 + ? (h += E - 17 + 10) + : (h += E); + } + return h; + } + (a.prototype._parseBase = function (o, p, y) { + (this.words = [0]), (this.length = 1); + for (var h = 0, b = 1; b <= 67108863; b *= p) h++; + h--, (b = (b / p) | 0); + for ( + var T = o.length - y, + E = T % h, + f = Math.min(T, T - E) + y, + u = 0, + v = y; + v < f; + v += h + ) + (u = l(o, v, v + h, p)), + this.imuln(b), + this.words[0] + u < 67108864 + ? (this.words[0] += u) + : this._iaddn(u); + if (E !== 0) { + var R = 1; + for (u = l(o, v, o.length, p), v = 0; v < E; v++) R *= p; + this.imuln(R), + this.words[0] + u < 67108864 + ? (this.words[0] += u) + : this._iaddn(u); + } + this.strip(); + }), + (a.prototype.copy = function (o) { + o.words = new Array(this.length); + for (var p = 0; p < this.length; p++) o.words[p] = this.words[p]; + (o.length = this.length), + (o.negative = this.negative), + (o.red = this.red); + }), + (a.prototype.clone = function () { + var o = new a(null); + return this.copy(o), o; + }), + (a.prototype._expand = function (o) { + for (; this.length < o; ) this.words[this.length++] = 0; + return this; + }), + (a.prototype.strip = function () { + for (; this.length > 1 && this.words[this.length - 1] === 0; ) + this.length--; + return this._normSign(); + }), + (a.prototype._normSign = function () { + return ( + this.length === 1 && this.words[0] === 0 && (this.negative = 0), + this + ); + }), + (a.prototype.inspect = function () { + return (this.red ? ""; + }); + var d = [ + "", + "0", + "00", + "000", + "0000", + "00000", + "000000", + "0000000", + "00000000", + "000000000", + "0000000000", + "00000000000", + "000000000000", + "0000000000000", + "00000000000000", + "000000000000000", + "0000000000000000", + "00000000000000000", + "000000000000000000", + "0000000000000000000", + "00000000000000000000", + "000000000000000000000", + "0000000000000000000000", + "00000000000000000000000", + "000000000000000000000000", + "0000000000000000000000000", + ], + m = [ + 0, 0, 25, 16, 12, 11, 10, 9, 8, 8, 7, 7, 7, 7, 6, 6, 6, 6, 6, 6, 6, 5, + 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, + ], + w = [ + 0, 0, 33554432, 43046721, 16777216, 48828125, 60466176, 40353607, + 16777216, 43046721, 1e7, 19487171, 35831808, 62748517, 7529536, + 11390625, 16777216, 24137569, 34012224, 47045881, 64e6, 4084101, + 5153632, 6436343, 7962624, 9765625, 11881376, 14348907, 17210368, + 20511149, 243e5, 28629151, 33554432, 39135393, 45435424, 52521875, + 60466176, + ]; + (a.prototype.toString = function (o, p) { + (o = o || 10), (p = p | 0 || 1); + var y; + if (o === 16 || o === "hex") { + y = ""; + for (var h = 0, b = 0, T = 0; T < this.length; T++) { + var E = this.words[T], + f = (((E << h) | b) & 16777215).toString(16); + (b = (E >>> (24 - h)) & 16777215), + b !== 0 || T !== this.length - 1 + ? (y = d[6 - f.length] + f + y) + : (y = f + y), + (h += 2), + h >= 26 && ((h -= 26), T--); + } + for (b !== 0 && (y = b.toString(16) + y); y.length % p !== 0; ) + y = "0" + y; + return this.negative !== 0 && (y = "-" + y), y; + } + if (o === (o | 0) && o >= 2 && o <= 36) { + var u = m[o], + v = w[o]; + y = ""; + var R = this.clone(); + for (R.negative = 0; !R.isZero(); ) { + var A = R.modn(v).toString(o); + (R = R.idivn(v)), + R.isZero() ? (y = A + y) : (y = d[u - A.length] + A + y); + } + for (this.isZero() && (y = "0" + y); y.length % p !== 0; ) + y = "0" + y; + return this.negative !== 0 && (y = "-" + y), y; + } + t(!1, "Base should be between 2 and 36"); + }), + (a.prototype.toNumber = function () { + var o = this.words[0]; + return ( + this.length === 2 + ? (o += this.words[1] * 67108864) + : this.length === 3 && this.words[2] === 1 + ? (o += 4503599627370496 + this.words[1] * 67108864) + : this.length > 2 && + t(!1, "Number can only safely store up to 53 bits"), + this.negative !== 0 ? -o : o + ); + }), + (a.prototype.toJSON = function () { + return this.toString(16); + }), + (a.prototype.toBuffer = function (o, p) { + return t(typeof i < "u"), this.toArrayLike(i, o, p); + }), + (a.prototype.toArray = function (o, p) { + return this.toArrayLike(Array, o, p); + }), + (a.prototype.toArrayLike = function (o, p, y) { + var h = this.byteLength(), + b = y || Math.max(1, h); + t(h <= b, "byte array longer than desired length"), + t(b > 0, "Requested array length <= 0"), + this.strip(); + var T = p === "le", + E = new o(b), + f, + u, + v = this.clone(); + if (T) { + for (u = 0; !v.isZero(); u++) + (f = v.andln(255)), v.iushrn(8), (E[u] = f); + for (; u < b; u++) E[u] = 0; + } else { + for (u = 0; u < b - h; u++) E[u] = 0; + for (u = 0; !v.isZero(); u++) + (f = v.andln(255)), v.iushrn(8), (E[b - u - 1] = f); + } + return E; + }), + Math.clz32 + ? (a.prototype._countBits = function (o) { + return 32 - Math.clz32(o); + }) + : (a.prototype._countBits = function (o) { + var p = o, + y = 0; + return ( + p >= 4096 && ((y += 13), (p >>>= 13)), + p >= 64 && ((y += 7), (p >>>= 7)), + p >= 8 && ((y += 4), (p >>>= 4)), + p >= 2 && ((y += 2), (p >>>= 2)), + y + p + ); + }), + (a.prototype._zeroBits = function (o) { + if (o === 0) return 26; + var p = o, + y = 0; + return ( + (p & 8191) === 0 && ((y += 13), (p >>>= 13)), + (p & 127) === 0 && ((y += 7), (p >>>= 7)), + (p & 15) === 0 && ((y += 4), (p >>>= 4)), + (p & 3) === 0 && ((y += 2), (p >>>= 2)), + (p & 1) === 0 && y++, + y + ); + }), + (a.prototype.bitLength = function () { + var o = this.words[this.length - 1], + p = this._countBits(o); + return (this.length - 1) * 26 + p; + }); + function C(g) { + for (var o = new Array(g.bitLength()), p = 0; p < o.length; p++) { + var y = (p / 26) | 0, + h = p % 26; + o[p] = (g.words[y] & (1 << h)) >>> h; + } + return o; + } + (a.prototype.zeroBits = function () { + if (this.isZero()) return 0; + for (var o = 0, p = 0; p < this.length; p++) { + var y = this._zeroBits(this.words[p]); + if (((o += y), y !== 26)) break; + } + return o; + }), + (a.prototype.byteLength = function () { + return Math.ceil(this.bitLength() / 8); + }), + (a.prototype.toTwos = function (o) { + return this.negative !== 0 + ? this.abs().inotn(o).iaddn(1) + : this.clone(); + }), + (a.prototype.fromTwos = function (o) { + return this.testn(o - 1) + ? this.notn(o).iaddn(1).ineg() + : this.clone(); + }), + (a.prototype.isNeg = function () { + return this.negative !== 0; + }), + (a.prototype.neg = function () { + return this.clone().ineg(); + }), + (a.prototype.ineg = function () { + return this.isZero() || (this.negative ^= 1), this; + }), + (a.prototype.iuor = function (o) { + for (; this.length < o.length; ) this.words[this.length++] = 0; + for (var p = 0; p < o.length; p++) + this.words[p] = this.words[p] | o.words[p]; + return this.strip(); + }), + (a.prototype.ior = function (o) { + return t((this.negative | o.negative) === 0), this.iuor(o); + }), + (a.prototype.or = function (o) { + return this.length > o.length + ? this.clone().ior(o) + : o.clone().ior(this); + }), + (a.prototype.uor = function (o) { + return this.length > o.length + ? this.clone().iuor(o) + : o.clone().iuor(this); + }), + (a.prototype.iuand = function (o) { + var p; + this.length > o.length ? (p = o) : (p = this); + for (var y = 0; y < p.length; y++) + this.words[y] = this.words[y] & o.words[y]; + return (this.length = p.length), this.strip(); + }), + (a.prototype.iand = function (o) { + return t((this.negative | o.negative) === 0), this.iuand(o); + }), + (a.prototype.and = function (o) { + return this.length > o.length + ? this.clone().iand(o) + : o.clone().iand(this); + }), + (a.prototype.uand = function (o) { + return this.length > o.length + ? this.clone().iuand(o) + : o.clone().iuand(this); + }), + (a.prototype.iuxor = function (o) { + var p, y; + this.length > o.length + ? ((p = this), (y = o)) + : ((p = o), (y = this)); + for (var h = 0; h < y.length; h++) + this.words[h] = p.words[h] ^ y.words[h]; + if (this !== p) for (; h < p.length; h++) this.words[h] = p.words[h]; + return (this.length = p.length), this.strip(); + }), + (a.prototype.ixor = function (o) { + return t((this.negative | o.negative) === 0), this.iuxor(o); + }), + (a.prototype.xor = function (o) { + return this.length > o.length + ? this.clone().ixor(o) + : o.clone().ixor(this); + }), + (a.prototype.uxor = function (o) { + return this.length > o.length + ? this.clone().iuxor(o) + : o.clone().iuxor(this); + }), + (a.prototype.inotn = function (o) { + t(typeof o == "number" && o >= 0); + var p = Math.ceil(o / 26) | 0, + y = o % 26; + this._expand(p), y > 0 && p--; + for (var h = 0; h < p; h++) this.words[h] = ~this.words[h] & 67108863; + return ( + y > 0 && (this.words[h] = ~this.words[h] & (67108863 >> (26 - y))), + this.strip() + ); + }), + (a.prototype.notn = function (o) { + return this.clone().inotn(o); + }), + (a.prototype.setn = function (o, p) { + t(typeof o == "number" && o >= 0); + var y = (o / 26) | 0, + h = o % 26; + return ( + this._expand(y + 1), + p + ? (this.words[y] = this.words[y] | (1 << h)) + : (this.words[y] = this.words[y] & ~(1 << h)), + this.strip() + ); + }), + (a.prototype.iadd = function (o) { + var p; + if (this.negative !== 0 && o.negative === 0) + return ( + (this.negative = 0), + (p = this.isub(o)), + (this.negative ^= 1), + this._normSign() + ); + if (this.negative === 0 && o.negative !== 0) + return ( + (o.negative = 0), + (p = this.isub(o)), + (o.negative = 1), + p._normSign() + ); + var y, h; + this.length > o.length + ? ((y = this), (h = o)) + : ((y = o), (h = this)); + for (var b = 0, T = 0; T < h.length; T++) + (p = (y.words[T] | 0) + (h.words[T] | 0) + b), + (this.words[T] = p & 67108863), + (b = p >>> 26); + for (; b !== 0 && T < y.length; T++) + (p = (y.words[T] | 0) + b), + (this.words[T] = p & 67108863), + (b = p >>> 26); + if (((this.length = y.length), b !== 0)) + (this.words[this.length] = b), this.length++; + else if (y !== this) + for (; T < y.length; T++) this.words[T] = y.words[T]; + return this; + }), + (a.prototype.add = function (o) { + var p; + return o.negative !== 0 && this.negative === 0 + ? ((o.negative = 0), (p = this.sub(o)), (o.negative ^= 1), p) + : o.negative === 0 && this.negative !== 0 + ? ((this.negative = 0), (p = o.sub(this)), (this.negative = 1), p) + : this.length > o.length + ? this.clone().iadd(o) + : o.clone().iadd(this); + }), + (a.prototype.isub = function (o) { + if (o.negative !== 0) { + o.negative = 0; + var p = this.iadd(o); + return (o.negative = 1), p._normSign(); + } else if (this.negative !== 0) + return ( + (this.negative = 0), + this.iadd(o), + (this.negative = 1), + this._normSign() + ); + var y = this.cmp(o); + if (y === 0) + return ( + (this.negative = 0), (this.length = 1), (this.words[0] = 0), this + ); + var h, b; + y > 0 ? ((h = this), (b = o)) : ((h = o), (b = this)); + for (var T = 0, E = 0; E < b.length; E++) + (p = (h.words[E] | 0) - (b.words[E] | 0) + T), + (T = p >> 26), + (this.words[E] = p & 67108863); + for (; T !== 0 && E < h.length; E++) + (p = (h.words[E] | 0) + T), + (T = p >> 26), + (this.words[E] = p & 67108863); + if (T === 0 && E < h.length && h !== this) + for (; E < h.length; E++) this.words[E] = h.words[E]; + return ( + (this.length = Math.max(this.length, E)), + h !== this && (this.negative = 1), + this.strip() + ); + }), + (a.prototype.sub = function (o) { + return this.clone().isub(o); + }); + function I(g, o, p) { + p.negative = o.negative ^ g.negative; + var y = (g.length + o.length) | 0; + (p.length = y), (y = (y - 1) | 0); + var h = g.words[0] | 0, + b = o.words[0] | 0, + T = h * b, + E = T & 67108863, + f = (T / 67108864) | 0; + p.words[0] = E; + for (var u = 1; u < y; u++) { + for ( + var v = f >>> 26, + R = f & 67108863, + A = Math.min(u, o.length - 1), + L = Math.max(0, u - g.length + 1); + L <= A; + L++ + ) { + var G = (u - L) | 0; + (h = g.words[G] | 0), + (b = o.words[L] | 0), + (T = h * b + R), + (v += (T / 67108864) | 0), + (R = T & 67108863); + } + (p.words[u] = R | 0), (f = v | 0); + } + return f !== 0 ? (p.words[u] = f | 0) : p.length--, p.strip(); + } + var k = function (o, p, y) { + var h = o.words, + b = p.words, + T = y.words, + E = 0, + f, + u, + v, + R = h[0] | 0, + A = R & 8191, + L = R >>> 13, + G = h[1] | 0, + U = G & 8191, + Z = G >>> 13, + de = h[2] | 0, + ne = de & 8191, + pe = de >>> 13, + lt = h[3] | 0, + fe = lt & 8191, + ve = lt >>> 13, + vt = h[4] | 0, + we = vt & 8191, + Ne = vt >>> 13, + kt = h[5] | 0, + Le = kt & 8191, + ze = kt >>> 13, + It = h[6] | 0, + Se = It & 8191, + Ke = It >>> 13, + Et = h[7] | 0, + Me = Et & 8191, + Ge = Et >>> 13, + Dt = h[8] | 0, + De = Dt & 8191, + Ze = Dt >>> 13, + Wt = h[9] | 0, + ke = Wt & 8191, + $e = Wt >>> 13, + Ht = b[0] | 0, + Pe = Ht & 8191, + Je = Ht >>> 13, + zt = b[1] | 0, + Re = zt & 8191, + Qe = zt >>> 13, + jt = b[2] | 0, + Be = jt & 8191, + Xe = jt >>> 13, + Ut = b[3] | 0, + Ae = Ut & 8191, + et = Ut >>> 13, + St = b[4] | 0, + Oe = St & 8191, + tt = St >>> 13, + Kt = b[5] | 0, + qe = Kt & 8191, + rt = Kt >>> 13, + Vt = b[6] | 0, + Ie = Vt & 8191, + Ye = Vt >>> 13, + Gt = b[7] | 0, + We = Gt & 8191, + it = Gt >>> 13, + Qt = b[8] | 0, + Ue = Qt & 8191, + nt = Qt >>> 13, + tr = b[9] | 0, + He = tr & 8191, + at = tr >>> 13; + (y.negative = o.negative ^ p.negative), + (y.length = 19), + (f = Math.imul(A, Pe)), + (u = Math.imul(A, Je)), + (u = (u + Math.imul(L, Pe)) | 0), + (v = Math.imul(L, Je)); + var Pr = (((E + f) | 0) + ((u & 8191) << 13)) | 0; + (E = (((v + (u >>> 13)) | 0) + (Pr >>> 26)) | 0), + (Pr &= 67108863), + (f = Math.imul(U, Pe)), + (u = Math.imul(U, Je)), + (u = (u + Math.imul(Z, Pe)) | 0), + (v = Math.imul(Z, Je)), + (f = (f + Math.imul(A, Re)) | 0), + (u = (u + Math.imul(A, Qe)) | 0), + (u = (u + Math.imul(L, Re)) | 0), + (v = (v + Math.imul(L, Qe)) | 0); + var qt = (((E + f) | 0) + ((u & 8191) << 13)) | 0; + (E = (((v + (u >>> 13)) | 0) + (qt >>> 26)) | 0), + (qt &= 67108863), + (f = Math.imul(ne, Pe)), + (u = Math.imul(ne, Je)), + (u = (u + Math.imul(pe, Pe)) | 0), + (v = Math.imul(pe, Je)), + (f = (f + Math.imul(U, Re)) | 0), + (u = (u + Math.imul(U, Qe)) | 0), + (u = (u + Math.imul(Z, Re)) | 0), + (v = (v + Math.imul(Z, Qe)) | 0), + (f = (f + Math.imul(A, Be)) | 0), + (u = (u + Math.imul(A, Xe)) | 0), + (u = (u + Math.imul(L, Be)) | 0), + (v = (v + Math.imul(L, Xe)) | 0); + var Ft = (((E + f) | 0) + ((u & 8191) << 13)) | 0; + (E = (((v + (u >>> 13)) | 0) + (Ft >>> 26)) | 0), + (Ft &= 67108863), + (f = Math.imul(fe, Pe)), + (u = Math.imul(fe, Je)), + (u = (u + Math.imul(ve, Pe)) | 0), + (v = Math.imul(ve, Je)), + (f = (f + Math.imul(ne, Re)) | 0), + (u = (u + Math.imul(ne, Qe)) | 0), + (u = (u + Math.imul(pe, Re)) | 0), + (v = (v + Math.imul(pe, Qe)) | 0), + (f = (f + Math.imul(U, Be)) | 0), + (u = (u + Math.imul(U, Xe)) | 0), + (u = (u + Math.imul(Z, Be)) | 0), + (v = (v + Math.imul(Z, Xe)) | 0), + (f = (f + Math.imul(A, Ae)) | 0), + (u = (u + Math.imul(A, et)) | 0), + (u = (u + Math.imul(L, Ae)) | 0), + (v = (v + Math.imul(L, et)) | 0); + var _r = (((E + f) | 0) + ((u & 8191) << 13)) | 0; + (E = (((v + (u >>> 13)) | 0) + (_r >>> 26)) | 0), + (_r &= 67108863), + (f = Math.imul(we, Pe)), + (u = Math.imul(we, Je)), + (u = (u + Math.imul(Ne, Pe)) | 0), + (v = Math.imul(Ne, Je)), + (f = (f + Math.imul(fe, Re)) | 0), + (u = (u + Math.imul(fe, Qe)) | 0), + (u = (u + Math.imul(ve, Re)) | 0), + (v = (v + Math.imul(ve, Qe)) | 0), + (f = (f + Math.imul(ne, Be)) | 0), + (u = (u + Math.imul(ne, Xe)) | 0), + (u = (u + Math.imul(pe, Be)) | 0), + (v = (v + Math.imul(pe, Xe)) | 0), + (f = (f + Math.imul(U, Ae)) | 0), + (u = (u + Math.imul(U, et)) | 0), + (u = (u + Math.imul(Z, Ae)) | 0), + (v = (v + Math.imul(Z, et)) | 0), + (f = (f + Math.imul(A, Oe)) | 0), + (u = (u + Math.imul(A, tt)) | 0), + (u = (u + Math.imul(L, Oe)) | 0), + (v = (v + Math.imul(L, tt)) | 0); + var xr = (((E + f) | 0) + ((u & 8191) << 13)) | 0; + (E = (((v + (u >>> 13)) | 0) + (xr >>> 26)) | 0), + (xr &= 67108863), + (f = Math.imul(Le, Pe)), + (u = Math.imul(Le, Je)), + (u = (u + Math.imul(ze, Pe)) | 0), + (v = Math.imul(ze, Je)), + (f = (f + Math.imul(we, Re)) | 0), + (u = (u + Math.imul(we, Qe)) | 0), + (u = (u + Math.imul(Ne, Re)) | 0), + (v = (v + Math.imul(Ne, Qe)) | 0), + (f = (f + Math.imul(fe, Be)) | 0), + (u = (u + Math.imul(fe, Xe)) | 0), + (u = (u + Math.imul(ve, Be)) | 0), + (v = (v + Math.imul(ve, Xe)) | 0), + (f = (f + Math.imul(ne, Ae)) | 0), + (u = (u + Math.imul(ne, et)) | 0), + (u = (u + Math.imul(pe, Ae)) | 0), + (v = (v + Math.imul(pe, et)) | 0), + (f = (f + Math.imul(U, Oe)) | 0), + (u = (u + Math.imul(U, tt)) | 0), + (u = (u + Math.imul(Z, Oe)) | 0), + (v = (v + Math.imul(Z, tt)) | 0), + (f = (f + Math.imul(A, qe)) | 0), + (u = (u + Math.imul(A, rt)) | 0), + (u = (u + Math.imul(L, qe)) | 0), + (v = (v + Math.imul(L, rt)) | 0); + var Tr = (((E + f) | 0) + ((u & 8191) << 13)) | 0; + (E = (((v + (u >>> 13)) | 0) + (Tr >>> 26)) | 0), + (Tr &= 67108863), + (f = Math.imul(Se, Pe)), + (u = Math.imul(Se, Je)), + (u = (u + Math.imul(Ke, Pe)) | 0), + (v = Math.imul(Ke, Je)), + (f = (f + Math.imul(Le, Re)) | 0), + (u = (u + Math.imul(Le, Qe)) | 0), + (u = (u + Math.imul(ze, Re)) | 0), + (v = (v + Math.imul(ze, Qe)) | 0), + (f = (f + Math.imul(we, Be)) | 0), + (u = (u + Math.imul(we, Xe)) | 0), + (u = (u + Math.imul(Ne, Be)) | 0), + (v = (v + Math.imul(Ne, Xe)) | 0), + (f = (f + Math.imul(fe, Ae)) | 0), + (u = (u + Math.imul(fe, et)) | 0), + (u = (u + Math.imul(ve, Ae)) | 0), + (v = (v + Math.imul(ve, et)) | 0), + (f = (f + Math.imul(ne, Oe)) | 0), + (u = (u + Math.imul(ne, tt)) | 0), + (u = (u + Math.imul(pe, Oe)) | 0), + (v = (v + Math.imul(pe, tt)) | 0), + (f = (f + Math.imul(U, qe)) | 0), + (u = (u + Math.imul(U, rt)) | 0), + (u = (u + Math.imul(Z, qe)) | 0), + (v = (v + Math.imul(Z, rt)) | 0), + (f = (f + Math.imul(A, Ie)) | 0), + (u = (u + Math.imul(A, Ye)) | 0), + (u = (u + Math.imul(L, Ie)) | 0), + (v = (v + Math.imul(L, Ye)) | 0); + var Er = (((E + f) | 0) + ((u & 8191) << 13)) | 0; + (E = (((v + (u >>> 13)) | 0) + (Er >>> 26)) | 0), + (Er &= 67108863), + (f = Math.imul(Me, Pe)), + (u = Math.imul(Me, Je)), + (u = (u + Math.imul(Ge, Pe)) | 0), + (v = Math.imul(Ge, Je)), + (f = (f + Math.imul(Se, Re)) | 0), + (u = (u + Math.imul(Se, Qe)) | 0), + (u = (u + Math.imul(Ke, Re)) | 0), + (v = (v + Math.imul(Ke, Qe)) | 0), + (f = (f + Math.imul(Le, Be)) | 0), + (u = (u + Math.imul(Le, Xe)) | 0), + (u = (u + Math.imul(ze, Be)) | 0), + (v = (v + Math.imul(ze, Xe)) | 0), + (f = (f + Math.imul(we, Ae)) | 0), + (u = (u + Math.imul(we, et)) | 0), + (u = (u + Math.imul(Ne, Ae)) | 0), + (v = (v + Math.imul(Ne, et)) | 0), + (f = (f + Math.imul(fe, Oe)) | 0), + (u = (u + Math.imul(fe, tt)) | 0), + (u = (u + Math.imul(ve, Oe)) | 0), + (v = (v + Math.imul(ve, tt)) | 0), + (f = (f + Math.imul(ne, qe)) | 0), + (u = (u + Math.imul(ne, rt)) | 0), + (u = (u + Math.imul(pe, qe)) | 0), + (v = (v + Math.imul(pe, rt)) | 0), + (f = (f + Math.imul(U, Ie)) | 0), + (u = (u + Math.imul(U, Ye)) | 0), + (u = (u + Math.imul(Z, Ie)) | 0), + (v = (v + Math.imul(Z, Ye)) | 0), + (f = (f + Math.imul(A, We)) | 0), + (u = (u + Math.imul(A, it)) | 0), + (u = (u + Math.imul(L, We)) | 0), + (v = (v + Math.imul(L, it)) | 0); + var Cr = (((E + f) | 0) + ((u & 8191) << 13)) | 0; + (E = (((v + (u >>> 13)) | 0) + (Cr >>> 26)) | 0), + (Cr &= 67108863), + (f = Math.imul(De, Pe)), + (u = Math.imul(De, Je)), + (u = (u + Math.imul(Ze, Pe)) | 0), + (v = Math.imul(Ze, Je)), + (f = (f + Math.imul(Me, Re)) | 0), + (u = (u + Math.imul(Me, Qe)) | 0), + (u = (u + Math.imul(Ge, Re)) | 0), + (v = (v + Math.imul(Ge, Qe)) | 0), + (f = (f + Math.imul(Se, Be)) | 0), + (u = (u + Math.imul(Se, Xe)) | 0), + (u = (u + Math.imul(Ke, Be)) | 0), + (v = (v + Math.imul(Ke, Xe)) | 0), + (f = (f + Math.imul(Le, Ae)) | 0), + (u = (u + Math.imul(Le, et)) | 0), + (u = (u + Math.imul(ze, Ae)) | 0), + (v = (v + Math.imul(ze, et)) | 0), + (f = (f + Math.imul(we, Oe)) | 0), + (u = (u + Math.imul(we, tt)) | 0), + (u = (u + Math.imul(Ne, Oe)) | 0), + (v = (v + Math.imul(Ne, tt)) | 0), + (f = (f + Math.imul(fe, qe)) | 0), + (u = (u + Math.imul(fe, rt)) | 0), + (u = (u + Math.imul(ve, qe)) | 0), + (v = (v + Math.imul(ve, rt)) | 0), + (f = (f + Math.imul(ne, Ie)) | 0), + (u = (u + Math.imul(ne, Ye)) | 0), + (u = (u + Math.imul(pe, Ie)) | 0), + (v = (v + Math.imul(pe, Ye)) | 0), + (f = (f + Math.imul(U, We)) | 0), + (u = (u + Math.imul(U, it)) | 0), + (u = (u + Math.imul(Z, We)) | 0), + (v = (v + Math.imul(Z, it)) | 0), + (f = (f + Math.imul(A, Ue)) | 0), + (u = (u + Math.imul(A, nt)) | 0), + (u = (u + Math.imul(L, Ue)) | 0), + (v = (v + Math.imul(L, nt)) | 0); + var Kr = (((E + f) | 0) + ((u & 8191) << 13)) | 0; + (E = (((v + (u >>> 13)) | 0) + (Kr >>> 26)) | 0), + (Kr &= 67108863), + (f = Math.imul(ke, Pe)), + (u = Math.imul(ke, Je)), + (u = (u + Math.imul($e, Pe)) | 0), + (v = Math.imul($e, Je)), + (f = (f + Math.imul(De, Re)) | 0), + (u = (u + Math.imul(De, Qe)) | 0), + (u = (u + Math.imul(Ze, Re)) | 0), + (v = (v + Math.imul(Ze, Qe)) | 0), + (f = (f + Math.imul(Me, Be)) | 0), + (u = (u + Math.imul(Me, Xe)) | 0), + (u = (u + Math.imul(Ge, Be)) | 0), + (v = (v + Math.imul(Ge, Xe)) | 0), + (f = (f + Math.imul(Se, Ae)) | 0), + (u = (u + Math.imul(Se, et)) | 0), + (u = (u + Math.imul(Ke, Ae)) | 0), + (v = (v + Math.imul(Ke, et)) | 0), + (f = (f + Math.imul(Le, Oe)) | 0), + (u = (u + Math.imul(Le, tt)) | 0), + (u = (u + Math.imul(ze, Oe)) | 0), + (v = (v + Math.imul(ze, tt)) | 0), + (f = (f + Math.imul(we, qe)) | 0), + (u = (u + Math.imul(we, rt)) | 0), + (u = (u + Math.imul(Ne, qe)) | 0), + (v = (v + Math.imul(Ne, rt)) | 0), + (f = (f + Math.imul(fe, Ie)) | 0), + (u = (u + Math.imul(fe, Ye)) | 0), + (u = (u + Math.imul(ve, Ie)) | 0), + (v = (v + Math.imul(ve, Ye)) | 0), + (f = (f + Math.imul(ne, We)) | 0), + (u = (u + Math.imul(ne, it)) | 0), + (u = (u + Math.imul(pe, We)) | 0), + (v = (v + Math.imul(pe, it)) | 0), + (f = (f + Math.imul(U, Ue)) | 0), + (u = (u + Math.imul(U, nt)) | 0), + (u = (u + Math.imul(Z, Ue)) | 0), + (v = (v + Math.imul(Z, nt)) | 0), + (f = (f + Math.imul(A, He)) | 0), + (u = (u + Math.imul(A, at)) | 0), + (u = (u + Math.imul(L, He)) | 0), + (v = (v + Math.imul(L, at)) | 0); + var Vr = (((E + f) | 0) + ((u & 8191) << 13)) | 0; + (E = (((v + (u >>> 13)) | 0) + (Vr >>> 26)) | 0), + (Vr &= 67108863), + (f = Math.imul(ke, Re)), + (u = Math.imul(ke, Qe)), + (u = (u + Math.imul($e, Re)) | 0), + (v = Math.imul($e, Qe)), + (f = (f + Math.imul(De, Be)) | 0), + (u = (u + Math.imul(De, Xe)) | 0), + (u = (u + Math.imul(Ze, Be)) | 0), + (v = (v + Math.imul(Ze, Xe)) | 0), + (f = (f + Math.imul(Me, Ae)) | 0), + (u = (u + Math.imul(Me, et)) | 0), + (u = (u + Math.imul(Ge, Ae)) | 0), + (v = (v + Math.imul(Ge, et)) | 0), + (f = (f + Math.imul(Se, Oe)) | 0), + (u = (u + Math.imul(Se, tt)) | 0), + (u = (u + Math.imul(Ke, Oe)) | 0), + (v = (v + Math.imul(Ke, tt)) | 0), + (f = (f + Math.imul(Le, qe)) | 0), + (u = (u + Math.imul(Le, rt)) | 0), + (u = (u + Math.imul(ze, qe)) | 0), + (v = (v + Math.imul(ze, rt)) | 0), + (f = (f + Math.imul(we, Ie)) | 0), + (u = (u + Math.imul(we, Ye)) | 0), + (u = (u + Math.imul(Ne, Ie)) | 0), + (v = (v + Math.imul(Ne, Ye)) | 0), + (f = (f + Math.imul(fe, We)) | 0), + (u = (u + Math.imul(fe, it)) | 0), + (u = (u + Math.imul(ve, We)) | 0), + (v = (v + Math.imul(ve, it)) | 0), + (f = (f + Math.imul(ne, Ue)) | 0), + (u = (u + Math.imul(ne, nt)) | 0), + (u = (u + Math.imul(pe, Ue)) | 0), + (v = (v + Math.imul(pe, nt)) | 0), + (f = (f + Math.imul(U, He)) | 0), + (u = (u + Math.imul(U, at)) | 0), + (u = (u + Math.imul(Z, He)) | 0), + (v = (v + Math.imul(Z, at)) | 0); + var Ur = (((E + f) | 0) + ((u & 8191) << 13)) | 0; + (E = (((v + (u >>> 13)) | 0) + (Ur >>> 26)) | 0), + (Ur &= 67108863), + (f = Math.imul(ke, Be)), + (u = Math.imul(ke, Xe)), + (u = (u + Math.imul($e, Be)) | 0), + (v = Math.imul($e, Xe)), + (f = (f + Math.imul(De, Ae)) | 0), + (u = (u + Math.imul(De, et)) | 0), + (u = (u + Math.imul(Ze, Ae)) | 0), + (v = (v + Math.imul(Ze, et)) | 0), + (f = (f + Math.imul(Me, Oe)) | 0), + (u = (u + Math.imul(Me, tt)) | 0), + (u = (u + Math.imul(Ge, Oe)) | 0), + (v = (v + Math.imul(Ge, tt)) | 0), + (f = (f + Math.imul(Se, qe)) | 0), + (u = (u + Math.imul(Se, rt)) | 0), + (u = (u + Math.imul(Ke, qe)) | 0), + (v = (v + Math.imul(Ke, rt)) | 0), + (f = (f + Math.imul(Le, Ie)) | 0), + (u = (u + Math.imul(Le, Ye)) | 0), + (u = (u + Math.imul(ze, Ie)) | 0), + (v = (v + Math.imul(ze, Ye)) | 0), + (f = (f + Math.imul(we, We)) | 0), + (u = (u + Math.imul(we, it)) | 0), + (u = (u + Math.imul(Ne, We)) | 0), + (v = (v + Math.imul(Ne, it)) | 0), + (f = (f + Math.imul(fe, Ue)) | 0), + (u = (u + Math.imul(fe, nt)) | 0), + (u = (u + Math.imul(ve, Ue)) | 0), + (v = (v + Math.imul(ve, nt)) | 0), + (f = (f + Math.imul(ne, He)) | 0), + (u = (u + Math.imul(ne, at)) | 0), + (u = (u + Math.imul(pe, He)) | 0), + (v = (v + Math.imul(pe, at)) | 0); + var Rr = (((E + f) | 0) + ((u & 8191) << 13)) | 0; + (E = (((v + (u >>> 13)) | 0) + (Rr >>> 26)) | 0), + (Rr &= 67108863), + (f = Math.imul(ke, Ae)), + (u = Math.imul(ke, et)), + (u = (u + Math.imul($e, Ae)) | 0), + (v = Math.imul($e, et)), + (f = (f + Math.imul(De, Oe)) | 0), + (u = (u + Math.imul(De, tt)) | 0), + (u = (u + Math.imul(Ze, Oe)) | 0), + (v = (v + Math.imul(Ze, tt)) | 0), + (f = (f + Math.imul(Me, qe)) | 0), + (u = (u + Math.imul(Me, rt)) | 0), + (u = (u + Math.imul(Ge, qe)) | 0), + (v = (v + Math.imul(Ge, rt)) | 0), + (f = (f + Math.imul(Se, Ie)) | 0), + (u = (u + Math.imul(Se, Ye)) | 0), + (u = (u + Math.imul(Ke, Ie)) | 0), + (v = (v + Math.imul(Ke, Ye)) | 0), + (f = (f + Math.imul(Le, We)) | 0), + (u = (u + Math.imul(Le, it)) | 0), + (u = (u + Math.imul(ze, We)) | 0), + (v = (v + Math.imul(ze, it)) | 0), + (f = (f + Math.imul(we, Ue)) | 0), + (u = (u + Math.imul(we, nt)) | 0), + (u = (u + Math.imul(Ne, Ue)) | 0), + (v = (v + Math.imul(Ne, nt)) | 0), + (f = (f + Math.imul(fe, He)) | 0), + (u = (u + Math.imul(fe, at)) | 0), + (u = (u + Math.imul(ve, He)) | 0), + (v = (v + Math.imul(ve, at)) | 0); + var Or = (((E + f) | 0) + ((u & 8191) << 13)) | 0; + (E = (((v + (u >>> 13)) | 0) + (Or >>> 26)) | 0), + (Or &= 67108863), + (f = Math.imul(ke, Oe)), + (u = Math.imul(ke, tt)), + (u = (u + Math.imul($e, Oe)) | 0), + (v = Math.imul($e, tt)), + (f = (f + Math.imul(De, qe)) | 0), + (u = (u + Math.imul(De, rt)) | 0), + (u = (u + Math.imul(Ze, qe)) | 0), + (v = (v + Math.imul(Ze, rt)) | 0), + (f = (f + Math.imul(Me, Ie)) | 0), + (u = (u + Math.imul(Me, Ye)) | 0), + (u = (u + Math.imul(Ge, Ie)) | 0), + (v = (v + Math.imul(Ge, Ye)) | 0), + (f = (f + Math.imul(Se, We)) | 0), + (u = (u + Math.imul(Se, it)) | 0), + (u = (u + Math.imul(Ke, We)) | 0), + (v = (v + Math.imul(Ke, it)) | 0), + (f = (f + Math.imul(Le, Ue)) | 0), + (u = (u + Math.imul(Le, nt)) | 0), + (u = (u + Math.imul(ze, Ue)) | 0), + (v = (v + Math.imul(ze, nt)) | 0), + (f = (f + Math.imul(we, He)) | 0), + (u = (u + Math.imul(we, at)) | 0), + (u = (u + Math.imul(Ne, He)) | 0), + (v = (v + Math.imul(Ne, at)) | 0); + var ur = (((E + f) | 0) + ((u & 8191) << 13)) | 0; + (E = (((v + (u >>> 13)) | 0) + (ur >>> 26)) | 0), + (ur &= 67108863), + (f = Math.imul(ke, qe)), + (u = Math.imul(ke, rt)), + (u = (u + Math.imul($e, qe)) | 0), + (v = Math.imul($e, rt)), + (f = (f + Math.imul(De, Ie)) | 0), + (u = (u + Math.imul(De, Ye)) | 0), + (u = (u + Math.imul(Ze, Ie)) | 0), + (v = (v + Math.imul(Ze, Ye)) | 0), + (f = (f + Math.imul(Me, We)) | 0), + (u = (u + Math.imul(Me, it)) | 0), + (u = (u + Math.imul(Ge, We)) | 0), + (v = (v + Math.imul(Ge, it)) | 0), + (f = (f + Math.imul(Se, Ue)) | 0), + (u = (u + Math.imul(Se, nt)) | 0), + (u = (u + Math.imul(Ke, Ue)) | 0), + (v = (v + Math.imul(Ke, nt)) | 0), + (f = (f + Math.imul(Le, He)) | 0), + (u = (u + Math.imul(Le, at)) | 0), + (u = (u + Math.imul(ze, He)) | 0), + (v = (v + Math.imul(ze, at)) | 0); + var Hr = (((E + f) | 0) + ((u & 8191) << 13)) | 0; + (E = (((v + (u >>> 13)) | 0) + (Hr >>> 26)) | 0), + (Hr &= 67108863), + (f = Math.imul(ke, Ie)), + (u = Math.imul(ke, Ye)), + (u = (u + Math.imul($e, Ie)) | 0), + (v = Math.imul($e, Ye)), + (f = (f + Math.imul(De, We)) | 0), + (u = (u + Math.imul(De, it)) | 0), + (u = (u + Math.imul(Ze, We)) | 0), + (v = (v + Math.imul(Ze, it)) | 0), + (f = (f + Math.imul(Me, Ue)) | 0), + (u = (u + Math.imul(Me, nt)) | 0), + (u = (u + Math.imul(Ge, Ue)) | 0), + (v = (v + Math.imul(Ge, nt)) | 0), + (f = (f + Math.imul(Se, He)) | 0), + (u = (u + Math.imul(Se, at)) | 0), + (u = (u + Math.imul(Ke, He)) | 0), + (v = (v + Math.imul(Ke, at)) | 0); + var hr = (((E + f) | 0) + ((u & 8191) << 13)) | 0; + (E = (((v + (u >>> 13)) | 0) + (hr >>> 26)) | 0), + (hr &= 67108863), + (f = Math.imul(ke, We)), + (u = Math.imul(ke, it)), + (u = (u + Math.imul($e, We)) | 0), + (v = Math.imul($e, it)), + (f = (f + Math.imul(De, Ue)) | 0), + (u = (u + Math.imul(De, nt)) | 0), + (u = (u + Math.imul(Ze, Ue)) | 0), + (v = (v + Math.imul(Ze, nt)) | 0), + (f = (f + Math.imul(Me, He)) | 0), + (u = (u + Math.imul(Me, at)) | 0), + (u = (u + Math.imul(Ge, He)) | 0), + (v = (v + Math.imul(Ge, at)) | 0); + var Lr = (((E + f) | 0) + ((u & 8191) << 13)) | 0; + (E = (((v + (u >>> 13)) | 0) + (Lr >>> 26)) | 0), + (Lr &= 67108863), + (f = Math.imul(ke, Ue)), + (u = Math.imul(ke, nt)), + (u = (u + Math.imul($e, Ue)) | 0), + (v = Math.imul($e, nt)), + (f = (f + Math.imul(De, He)) | 0), + (u = (u + Math.imul(De, at)) | 0), + (u = (u + Math.imul(Ze, He)) | 0), + (v = (v + Math.imul(Ze, at)) | 0); + var Zr = (((E + f) | 0) + ((u & 8191) << 13)) | 0; + (E = (((v + (u >>> 13)) | 0) + (Zr >>> 26)) | 0), + (Zr &= 67108863), + (f = Math.imul(ke, He)), + (u = Math.imul(ke, at)), + (u = (u + Math.imul($e, He)) | 0), + (v = Math.imul($e, at)); + var xn = (((E + f) | 0) + ((u & 8191) << 13)) | 0; + return ( + (E = (((v + (u >>> 13)) | 0) + (xn >>> 26)) | 0), + (xn &= 67108863), + (T[0] = Pr), + (T[1] = qt), + (T[2] = Ft), + (T[3] = _r), + (T[4] = xr), + (T[5] = Tr), + (T[6] = Er), + (T[7] = Cr), + (T[8] = Kr), + (T[9] = Vr), + (T[10] = Ur), + (T[11] = Rr), + (T[12] = Or), + (T[13] = ur), + (T[14] = Hr), + (T[15] = hr), + (T[16] = Lr), + (T[17] = Zr), + (T[18] = xn), + E !== 0 && ((T[19] = E), y.length++), + y + ); + }; + Math.imul || (k = I); + function O(g, o, p) { + (p.negative = o.negative ^ g.negative), + (p.length = g.length + o.length); + for (var y = 0, h = 0, b = 0; b < p.length - 1; b++) { + var T = h; + h = 0; + for ( + var E = y & 67108863, + f = Math.min(b, o.length - 1), + u = Math.max(0, b - g.length + 1); + u <= f; + u++ + ) { + var v = b - u, + R = g.words[v] | 0, + A = o.words[u] | 0, + L = R * A, + G = L & 67108863; + (T = (T + ((L / 67108864) | 0)) | 0), + (G = (G + E) | 0), + (E = G & 67108863), + (T = (T + (G >>> 26)) | 0), + (h += T >>> 26), + (T &= 67108863); + } + (p.words[b] = E), (y = T), (T = h); + } + return y !== 0 ? (p.words[b] = y) : p.length--, p.strip(); + } + function D(g, o, p) { + var y = new W(); + return y.mulp(g, o, p); + } + a.prototype.mulTo = function (o, p) { + var y, + h = this.length + o.length; + return ( + this.length === 10 && o.length === 10 + ? (y = k(this, o, p)) + : h < 63 + ? (y = I(this, o, p)) + : h < 1024 + ? (y = O(this, o, p)) + : (y = D(this, o, p)), + y + ); + }; + function W(g, o) { + (this.x = g), (this.y = o); + } + (W.prototype.makeRBT = function (o) { + for ( + var p = new Array(o), y = a.prototype._countBits(o) - 1, h = 0; + h < o; + h++ + ) + p[h] = this.revBin(h, y, o); + return p; + }), + (W.prototype.revBin = function (o, p, y) { + if (o === 0 || o === y - 1) return o; + for (var h = 0, b = 0; b < p; b++) + (h |= (o & 1) << (p - b - 1)), (o >>= 1); + return h; + }), + (W.prototype.permute = function (o, p, y, h, b, T) { + for (var E = 0; E < T; E++) (h[E] = p[o[E]]), (b[E] = y[o[E]]); + }), + (W.prototype.transform = function (o, p, y, h, b, T) { + this.permute(T, o, p, y, h, b); + for (var E = 1; E < b; E <<= 1) + for ( + var f = E << 1, + u = Math.cos((2 * Math.PI) / f), + v = Math.sin((2 * Math.PI) / f), + R = 0; + R < b; + R += f + ) + for (var A = u, L = v, G = 0; G < E; G++) { + var U = y[R + G], + Z = h[R + G], + de = y[R + G + E], + ne = h[R + G + E], + pe = A * de - L * ne; + (ne = A * ne + L * de), + (de = pe), + (y[R + G] = U + de), + (h[R + G] = Z + ne), + (y[R + G + E] = U - de), + (h[R + G + E] = Z - ne), + G !== f && + ((pe = u * A - v * L), (L = u * L + v * A), (A = pe)); + } + }), + (W.prototype.guessLen13b = function (o, p) { + var y = Math.max(p, o) | 1, + h = y & 1, + b = 0; + for (y = (y / 2) | 0; y; y = y >>> 1) b++; + return 1 << (b + 1 + h); + }), + (W.prototype.conjugate = function (o, p, y) { + if (!(y <= 1)) + for (var h = 0; h < y / 2; h++) { + var b = o[h]; + (o[h] = o[y - h - 1]), + (o[y - h - 1] = b), + (b = p[h]), + (p[h] = -p[y - h - 1]), + (p[y - h - 1] = -b); + } + }), + (W.prototype.normalize13b = function (o, p) { + for (var y = 0, h = 0; h < p / 2; h++) { + var b = + Math.round(o[2 * h + 1] / p) * 8192 + + Math.round(o[2 * h] / p) + + y; + (o[h] = b & 67108863), + b < 67108864 ? (y = 0) : (y = (b / 67108864) | 0); + } + return o; + }), + (W.prototype.convert13b = function (o, p, y, h) { + for (var b = 0, T = 0; T < p; T++) + (b = b + (o[T] | 0)), + (y[2 * T] = b & 8191), + (b = b >>> 13), + (y[2 * T + 1] = b & 8191), + (b = b >>> 13); + for (T = 2 * p; T < h; ++T) y[T] = 0; + t(b === 0), t((b & -8192) === 0); + }), + (W.prototype.stub = function (o) { + for (var p = new Array(o), y = 0; y < o; y++) p[y] = 0; + return p; + }), + (W.prototype.mulp = function (o, p, y) { + var h = 2 * this.guessLen13b(o.length, p.length), + b = this.makeRBT(h), + T = this.stub(h), + E = new Array(h), + f = new Array(h), + u = new Array(h), + v = new Array(h), + R = new Array(h), + A = new Array(h), + L = y.words; + (L.length = h), + this.convert13b(o.words, o.length, E, h), + this.convert13b(p.words, p.length, v, h), + this.transform(E, T, f, u, h, b), + this.transform(v, T, R, A, h, b); + for (var G = 0; G < h; G++) { + var U = f[G] * R[G] - u[G] * A[G]; + (u[G] = f[G] * A[G] + u[G] * R[G]), (f[G] = U); + } + return ( + this.conjugate(f, u, h), + this.transform(f, u, L, T, h, b), + this.conjugate(L, T, h), + this.normalize13b(L, h), + (y.negative = o.negative ^ p.negative), + (y.length = o.length + p.length), + y.strip() + ); + }), + (a.prototype.mul = function (o) { + var p = new a(null); + return ( + (p.words = new Array(this.length + o.length)), this.mulTo(o, p) + ); + }), + (a.prototype.mulf = function (o) { + var p = new a(null); + return (p.words = new Array(this.length + o.length)), D(this, o, p); + }), + (a.prototype.imul = function (o) { + return this.clone().mulTo(o, this); + }), + (a.prototype.imuln = function (o) { + t(typeof o == "number"), t(o < 67108864); + for (var p = 0, y = 0; y < this.length; y++) { + var h = (this.words[y] | 0) * o, + b = (h & 67108863) + (p & 67108863); + (p >>= 26), + (p += (h / 67108864) | 0), + (p += b >>> 26), + (this.words[y] = b & 67108863); + } + return p !== 0 && ((this.words[y] = p), this.length++), this; + }), + (a.prototype.muln = function (o) { + return this.clone().imuln(o); + }), + (a.prototype.sqr = function () { + return this.mul(this); + }), + (a.prototype.isqr = function () { + return this.imul(this.clone()); + }), + (a.prototype.pow = function (o) { + var p = C(o); + if (p.length === 0) return new a(1); + for ( + var y = this, h = 0; + h < p.length && p[h] === 0; + h++, y = y.sqr() + ); + if (++h < p.length) + for (var b = y.sqr(); h < p.length; h++, b = b.sqr()) + p[h] !== 0 && (y = y.mul(b)); + return y; + }), + (a.prototype.iushln = function (o) { + t(typeof o == "number" && o >= 0); + var p = o % 26, + y = (o - p) / 26, + h = (67108863 >>> (26 - p)) << (26 - p), + b; + if (p !== 0) { + var T = 0; + for (b = 0; b < this.length; b++) { + var E = this.words[b] & h, + f = ((this.words[b] | 0) - E) << p; + (this.words[b] = f | T), (T = E >>> (26 - p)); + } + T && ((this.words[b] = T), this.length++); + } + if (y !== 0) { + for (b = this.length - 1; b >= 0; b--) + this.words[b + y] = this.words[b]; + for (b = 0; b < y; b++) this.words[b] = 0; + this.length += y; + } + return this.strip(); + }), + (a.prototype.ishln = function (o) { + return t(this.negative === 0), this.iushln(o); + }), + (a.prototype.iushrn = function (o, p, y) { + t(typeof o == "number" && o >= 0); + var h; + p ? (h = (p - (p % 26)) / 26) : (h = 0); + var b = o % 26, + T = Math.min((o - b) / 26, this.length), + E = 67108863 ^ ((67108863 >>> b) << b), + f = y; + if (((h -= T), (h = Math.max(0, h)), f)) { + for (var u = 0; u < T; u++) f.words[u] = this.words[u]; + f.length = T; + } + if (T !== 0) + if (this.length > T) + for (this.length -= T, u = 0; u < this.length; u++) + this.words[u] = this.words[u + T]; + else (this.words[0] = 0), (this.length = 1); + var v = 0; + for (u = this.length - 1; u >= 0 && (v !== 0 || u >= h); u--) { + var R = this.words[u] | 0; + (this.words[u] = (v << (26 - b)) | (R >>> b)), (v = R & E); + } + return ( + f && v !== 0 && (f.words[f.length++] = v), + this.length === 0 && ((this.words[0] = 0), (this.length = 1)), + this.strip() + ); + }), + (a.prototype.ishrn = function (o, p, y) { + return t(this.negative === 0), this.iushrn(o, p, y); + }), + (a.prototype.shln = function (o) { + return this.clone().ishln(o); + }), + (a.prototype.ushln = function (o) { + return this.clone().iushln(o); + }), + (a.prototype.shrn = function (o) { + return this.clone().ishrn(o); + }), + (a.prototype.ushrn = function (o) { + return this.clone().iushrn(o); + }), + (a.prototype.testn = function (o) { + t(typeof o == "number" && o >= 0); + var p = o % 26, + y = (o - p) / 26, + h = 1 << p; + if (this.length <= y) return !1; + var b = this.words[y]; + return !!(b & h); + }), + (a.prototype.imaskn = function (o) { + t(typeof o == "number" && o >= 0); + var p = o % 26, + y = (o - p) / 26; + if ( + (t(this.negative === 0, "imaskn works only with positive numbers"), + this.length <= y) + ) + return this; + if ( + (p !== 0 && y++, (this.length = Math.min(y, this.length)), p !== 0) + ) { + var h = 67108863 ^ ((67108863 >>> p) << p); + this.words[this.length - 1] &= h; + } + return this.strip(); + }), + (a.prototype.maskn = function (o) { + return this.clone().imaskn(o); + }), + (a.prototype.iaddn = function (o) { + return ( + t(typeof o == "number"), + t(o < 67108864), + o < 0 + ? this.isubn(-o) + : this.negative !== 0 + ? this.length === 1 && (this.words[0] | 0) < o + ? ((this.words[0] = o - (this.words[0] | 0)), + (this.negative = 0), + this) + : ((this.negative = 0), + this.isubn(o), + (this.negative = 1), + this) + : this._iaddn(o) + ); + }), + (a.prototype._iaddn = function (o) { + this.words[0] += o; + for (var p = 0; p < this.length && this.words[p] >= 67108864; p++) + (this.words[p] -= 67108864), + p === this.length - 1 + ? (this.words[p + 1] = 1) + : this.words[p + 1]++; + return (this.length = Math.max(this.length, p + 1)), this; + }), + (a.prototype.isubn = function (o) { + if ((t(typeof o == "number"), t(o < 67108864), o < 0)) + return this.iaddn(-o); + if (this.negative !== 0) + return ( + (this.negative = 0), this.iaddn(o), (this.negative = 1), this + ); + if (((this.words[0] -= o), this.length === 1 && this.words[0] < 0)) + (this.words[0] = -this.words[0]), (this.negative = 1); + else + for (var p = 0; p < this.length && this.words[p] < 0; p++) + (this.words[p] += 67108864), (this.words[p + 1] -= 1); + return this.strip(); + }), + (a.prototype.addn = function (o) { + return this.clone().iaddn(o); + }), + (a.prototype.subn = function (o) { + return this.clone().isubn(o); + }), + (a.prototype.iabs = function () { + return (this.negative = 0), this; + }), + (a.prototype.abs = function () { + return this.clone().iabs(); + }), + (a.prototype._ishlnsubmul = function (o, p, y) { + var h = o.length + y, + b; + this._expand(h); + var T, + E = 0; + for (b = 0; b < o.length; b++) { + T = (this.words[b + y] | 0) + E; + var f = (o.words[b] | 0) * p; + (T -= f & 67108863), + (E = (T >> 26) - ((f / 67108864) | 0)), + (this.words[b + y] = T & 67108863); + } + for (; b < this.length - y; b++) + (T = (this.words[b + y] | 0) + E), + (E = T >> 26), + (this.words[b + y] = T & 67108863); + if (E === 0) return this.strip(); + for (t(E === -1), E = 0, b = 0; b < this.length; b++) + (T = -(this.words[b] | 0) + E), + (E = T >> 26), + (this.words[b] = T & 67108863); + return (this.negative = 1), this.strip(); + }), + (a.prototype._wordDiv = function (o, p) { + var y = this.length - o.length, + h = this.clone(), + b = o, + T = b.words[b.length - 1] | 0, + E = this._countBits(T); + (y = 26 - E), + y !== 0 && + ((b = b.ushln(y)), h.iushln(y), (T = b.words[b.length - 1] | 0)); + var f = h.length - b.length, + u; + if (p !== "mod") { + (u = new a(null)), + (u.length = f + 1), + (u.words = new Array(u.length)); + for (var v = 0; v < u.length; v++) u.words[v] = 0; + } + var R = h.clone()._ishlnsubmul(b, 1, f); + R.negative === 0 && ((h = R), u && (u.words[f] = 1)); + for (var A = f - 1; A >= 0; A--) { + var L = + (h.words[b.length + A] | 0) * 67108864 + + (h.words[b.length + A - 1] | 0); + for ( + L = Math.min((L / T) | 0, 67108863), h._ishlnsubmul(b, L, A); + h.negative !== 0; + + ) + L--, + (h.negative = 0), + h._ishlnsubmul(b, 1, A), + h.isZero() || (h.negative ^= 1); + u && (u.words[A] = L); + } + return ( + u && u.strip(), + h.strip(), + p !== "div" && y !== 0 && h.iushrn(y), + { div: u || null, mod: h } + ); + }), + (a.prototype.divmod = function (o, p, y) { + if ((t(!o.isZero()), this.isZero())) + return { div: new a(0), mod: new a(0) }; + var h, b, T; + return this.negative !== 0 && o.negative === 0 + ? ((T = this.neg().divmod(o, p)), + p !== "mod" && (h = T.div.neg()), + p !== "div" && + ((b = T.mod.neg()), y && b.negative !== 0 && b.iadd(o)), + { div: h, mod: b }) + : this.negative === 0 && o.negative !== 0 + ? ((T = this.divmod(o.neg(), p)), + p !== "mod" && (h = T.div.neg()), + { div: h, mod: T.mod }) + : (this.negative & o.negative) !== 0 + ? ((T = this.neg().divmod(o.neg(), p)), + p !== "div" && + ((b = T.mod.neg()), y && b.negative !== 0 && b.isub(o)), + { div: T.div, mod: b }) + : o.length > this.length || this.cmp(o) < 0 + ? { div: new a(0), mod: this } + : o.length === 1 + ? p === "div" + ? { div: this.divn(o.words[0]), mod: null } + : p === "mod" + ? { div: null, mod: new a(this.modn(o.words[0])) } + : { + div: this.divn(o.words[0]), + mod: new a(this.modn(o.words[0])), + } + : this._wordDiv(o, p); + }), + (a.prototype.div = function (o) { + return this.divmod(o, "div", !1).div; + }), + (a.prototype.mod = function (o) { + return this.divmod(o, "mod", !1).mod; + }), + (a.prototype.umod = function (o) { + return this.divmod(o, "mod", !0).mod; + }), + (a.prototype.divRound = function (o) { + var p = this.divmod(o); + if (p.mod.isZero()) return p.div; + var y = p.div.negative !== 0 ? p.mod.isub(o) : p.mod, + h = o.ushrn(1), + b = o.andln(1), + T = y.cmp(h); + return T < 0 || (b === 1 && T === 0) + ? p.div + : p.div.negative !== 0 + ? p.div.isubn(1) + : p.div.iaddn(1); + }), + (a.prototype.modn = function (o) { + t(o <= 67108863); + for (var p = (1 << 26) % o, y = 0, h = this.length - 1; h >= 0; h--) + y = (p * y + (this.words[h] | 0)) % o; + return y; + }), + (a.prototype.idivn = function (o) { + t(o <= 67108863); + for (var p = 0, y = this.length - 1; y >= 0; y--) { + var h = (this.words[y] | 0) + p * 67108864; + (this.words[y] = (h / o) | 0), (p = h % o); + } + return this.strip(); + }), + (a.prototype.divn = function (o) { + return this.clone().idivn(o); + }), + (a.prototype.egcd = function (o) { + t(o.negative === 0), t(!o.isZero()); + var p = this, + y = o.clone(); + p.negative !== 0 ? (p = p.umod(o)) : (p = p.clone()); + for ( + var h = new a(1), b = new a(0), T = new a(0), E = new a(1), f = 0; + p.isEven() && y.isEven(); + + ) + p.iushrn(1), y.iushrn(1), ++f; + for (var u = y.clone(), v = p.clone(); !p.isZero(); ) { + for ( + var R = 0, A = 1; + (p.words[0] & A) === 0 && R < 26; + ++R, A <<= 1 + ); + if (R > 0) + for (p.iushrn(R); R-- > 0; ) + (h.isOdd() || b.isOdd()) && (h.iadd(u), b.isub(v)), + h.iushrn(1), + b.iushrn(1); + for ( + var L = 0, G = 1; + (y.words[0] & G) === 0 && L < 26; + ++L, G <<= 1 + ); + if (L > 0) + for (y.iushrn(L); L-- > 0; ) + (T.isOdd() || E.isOdd()) && (T.iadd(u), E.isub(v)), + T.iushrn(1), + E.iushrn(1); + p.cmp(y) >= 0 + ? (p.isub(y), h.isub(T), b.isub(E)) + : (y.isub(p), T.isub(h), E.isub(b)); + } + return { a: T, b: E, gcd: y.iushln(f) }; + }), + (a.prototype._invmp = function (o) { + t(o.negative === 0), t(!o.isZero()); + var p = this, + y = o.clone(); + p.negative !== 0 ? (p = p.umod(o)) : (p = p.clone()); + for ( + var h = new a(1), b = new a(0), T = y.clone(); + p.cmpn(1) > 0 && y.cmpn(1) > 0; + + ) { + for ( + var E = 0, f = 1; + (p.words[0] & f) === 0 && E < 26; + ++E, f <<= 1 + ); + if (E > 0) + for (p.iushrn(E); E-- > 0; ) h.isOdd() && h.iadd(T), h.iushrn(1); + for ( + var u = 0, v = 1; + (y.words[0] & v) === 0 && u < 26; + ++u, v <<= 1 + ); + if (u > 0) + for (y.iushrn(u); u-- > 0; ) b.isOdd() && b.iadd(T), b.iushrn(1); + p.cmp(y) >= 0 ? (p.isub(y), h.isub(b)) : (y.isub(p), b.isub(h)); + } + var R; + return ( + p.cmpn(1) === 0 ? (R = h) : (R = b), R.cmpn(0) < 0 && R.iadd(o), R + ); + }), + (a.prototype.gcd = function (o) { + if (this.isZero()) return o.abs(); + if (o.isZero()) return this.abs(); + var p = this.clone(), + y = o.clone(); + (p.negative = 0), (y.negative = 0); + for (var h = 0; p.isEven() && y.isEven(); h++) + p.iushrn(1), y.iushrn(1); + do { + for (; p.isEven(); ) p.iushrn(1); + for (; y.isEven(); ) y.iushrn(1); + var b = p.cmp(y); + if (b < 0) { + var T = p; + (p = y), (y = T); + } else if (b === 0 || y.cmpn(1) === 0) break; + p.isub(y); + } while (!0); + return y.iushln(h); + }), + (a.prototype.invm = function (o) { + return this.egcd(o).a.umod(o); + }), + (a.prototype.isEven = function () { + return (this.words[0] & 1) === 0; + }), + (a.prototype.isOdd = function () { + return (this.words[0] & 1) === 1; + }), + (a.prototype.andln = function (o) { + return this.words[0] & o; + }), + (a.prototype.bincn = function (o) { + t(typeof o == "number"); + var p = o % 26, + y = (o - p) / 26, + h = 1 << p; + if (this.length <= y) + return this._expand(y + 1), (this.words[y] |= h), this; + for (var b = h, T = y; b !== 0 && T < this.length; T++) { + var E = this.words[T] | 0; + (E += b), (b = E >>> 26), (E &= 67108863), (this.words[T] = E); + } + return b !== 0 && ((this.words[T] = b), this.length++), this; + }), + (a.prototype.isZero = function () { + return this.length === 1 && this.words[0] === 0; + }), + (a.prototype.cmpn = function (o) { + var p = o < 0; + if (this.negative !== 0 && !p) return -1; + if (this.negative === 0 && p) return 1; + this.strip(); + var y; + if (this.length > 1) y = 1; + else { + p && (o = -o), t(o <= 67108863, "Number is too big"); + var h = this.words[0] | 0; + y = h === o ? 0 : h < o ? -1 : 1; + } + return this.negative !== 0 ? -y | 0 : y; + }), + (a.prototype.cmp = function (o) { + if (this.negative !== 0 && o.negative === 0) return -1; + if (this.negative === 0 && o.negative !== 0) return 1; + var p = this.ucmp(o); + return this.negative !== 0 ? -p | 0 : p; + }), + (a.prototype.ucmp = function (o) { + if (this.length > o.length) return 1; + if (this.length < o.length) return -1; + for (var p = 0, y = this.length - 1; y >= 0; y--) { + var h = this.words[y] | 0, + b = o.words[y] | 0; + if (h !== b) { + h < b ? (p = -1) : h > b && (p = 1); + break; + } + } + return p; + }), + (a.prototype.gtn = function (o) { + return this.cmpn(o) === 1; + }), + (a.prototype.gt = function (o) { + return this.cmp(o) === 1; + }), + (a.prototype.gten = function (o) { + return this.cmpn(o) >= 0; + }), + (a.prototype.gte = function (o) { + return this.cmp(o) >= 0; + }), + (a.prototype.ltn = function (o) { + return this.cmpn(o) === -1; + }), + (a.prototype.lt = function (o) { + return this.cmp(o) === -1; + }), + (a.prototype.lten = function (o) { + return this.cmpn(o) <= 0; + }), + (a.prototype.lte = function (o) { + return this.cmp(o) <= 0; + }), + (a.prototype.eqn = function (o) { + return this.cmpn(o) === 0; + }), + (a.prototype.eq = function (o) { + return this.cmp(o) === 0; + }), + (a.red = function (o) { + return new Y(o); + }), + (a.prototype.toRed = function (o) { + return ( + t(!this.red, "Already a number in reduction context"), + t(this.negative === 0, "red works only with positives"), + o.convertTo(this)._forceRed(o) + ); + }), + (a.prototype.fromRed = function () { + return ( + t(this.red, "fromRed works only with numbers in reduction context"), + this.red.convertFrom(this) + ); + }), + (a.prototype._forceRed = function (o) { + return (this.red = o), this; + }), + (a.prototype.forceRed = function (o) { + return ( + t(!this.red, "Already a number in reduction context"), + this._forceRed(o) + ); + }), + (a.prototype.redAdd = function (o) { + return ( + t(this.red, "redAdd works only with red numbers"), + this.red.add(this, o) + ); + }), + (a.prototype.redIAdd = function (o) { + return ( + t(this.red, "redIAdd works only with red numbers"), + this.red.iadd(this, o) + ); + }), + (a.prototype.redSub = function (o) { + return ( + t(this.red, "redSub works only with red numbers"), + this.red.sub(this, o) + ); + }), + (a.prototype.redISub = function (o) { + return ( + t(this.red, "redISub works only with red numbers"), + this.red.isub(this, o) + ); + }), + (a.prototype.redShl = function (o) { + return ( + t(this.red, "redShl works only with red numbers"), + this.red.shl(this, o) + ); + }), + (a.prototype.redMul = function (o) { + return ( + t(this.red, "redMul works only with red numbers"), + this.red._verify2(this, o), + this.red.mul(this, o) + ); + }), + (a.prototype.redIMul = function (o) { + return ( + t(this.red, "redMul works only with red numbers"), + this.red._verify2(this, o), + this.red.imul(this, o) + ); + }), + (a.prototype.redSqr = function () { + return ( + t(this.red, "redSqr works only with red numbers"), + this.red._verify1(this), + this.red.sqr(this) + ); + }), + (a.prototype.redISqr = function () { + return ( + t(this.red, "redISqr works only with red numbers"), + this.red._verify1(this), + this.red.isqr(this) + ); + }), + (a.prototype.redSqrt = function () { + return ( + t(this.red, "redSqrt works only with red numbers"), + this.red._verify1(this), + this.red.sqrt(this) + ); + }), + (a.prototype.redInvm = function () { + return ( + t(this.red, "redInvm works only with red numbers"), + this.red._verify1(this), + this.red.invm(this) + ); + }), + (a.prototype.redNeg = function () { + return ( + t(this.red, "redNeg works only with red numbers"), + this.red._verify1(this), + this.red.neg(this) + ); + }), + (a.prototype.redPow = function (o) { + return ( + t(this.red && !o.red, "redPow(normalNum)"), + this.red._verify1(this), + this.red.pow(this, o) + ); + }); + var H = { k256: null, p224: null, p192: null, p25519: null }; + function j(g, o) { + (this.name = g), + (this.p = new a(o, 16)), + (this.n = this.p.bitLength()), + (this.k = new a(1).iushln(this.n).isub(this.p)), + (this.tmp = this._tmp()); + } + (j.prototype._tmp = function () { + var o = new a(null); + return (o.words = new Array(Math.ceil(this.n / 13))), o; + }), + (j.prototype.ireduce = function (o) { + var p = o, + y; + do + this.split(p, this.tmp), + (p = this.imulK(p)), + (p = p.iadd(this.tmp)), + (y = p.bitLength()); + while (y > this.n); + var h = y < this.n ? -1 : p.ucmp(this.p); + return ( + h === 0 + ? ((p.words[0] = 0), (p.length = 1)) + : h > 0 + ? p.isub(this.p) + : p.strip !== void 0 + ? p.strip() + : p._strip(), + p + ); + }), + (j.prototype.split = function (o, p) { + o.iushrn(this.n, 0, p); + }), + (j.prototype.imulK = function (o) { + return o.imul(this.k); + }); + function V() { + j.call( + this, + "k256", + "ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f" + ); + } + n(V, j), + (V.prototype.split = function (o, p) { + for (var y = 4194303, h = Math.min(o.length, 9), b = 0; b < h; b++) + p.words[b] = o.words[b]; + if (((p.length = h), o.length <= 9)) { + (o.words[0] = 0), (o.length = 1); + return; + } + var T = o.words[9]; + for (p.words[p.length++] = T & y, b = 10; b < o.length; b++) { + var E = o.words[b] | 0; + (o.words[b - 10] = ((E & y) << 4) | (T >>> 22)), (T = E); + } + (T >>>= 22), + (o.words[b - 10] = T), + T === 0 && o.length > 10 ? (o.length -= 10) : (o.length -= 9); + }), + (V.prototype.imulK = function (o) { + (o.words[o.length] = 0), (o.words[o.length + 1] = 0), (o.length += 2); + for (var p = 0, y = 0; y < o.length; y++) { + var h = o.words[y] | 0; + (p += h * 977), + (o.words[y] = p & 67108863), + (p = h * 64 + ((p / 67108864) | 0)); + } + return ( + o.words[o.length - 1] === 0 && + (o.length--, o.words[o.length - 1] === 0 && o.length--), + o + ); + }); + function te() { + j.call( + this, + "p224", + "ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001" + ); + } + n(te, j); + function $() { + j.call( + this, + "p192", + "ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff" + ); + } + n($, j); + function ae() { + j.call( + this, + "25519", + "7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed" + ); + } + n(ae, j), + (ae.prototype.imulK = function (o) { + for (var p = 0, y = 0; y < o.length; y++) { + var h = (o.words[y] | 0) * 19 + p, + b = h & 67108863; + (h >>>= 26), (o.words[y] = b), (p = h); + } + return p !== 0 && (o.words[o.length++] = p), o; + }), + (a._prime = function (o) { + if (H[o]) return H[o]; + var p; + if (o === "k256") p = new V(); + else if (o === "p224") p = new te(); + else if (o === "p192") p = new $(); + else if (o === "p25519") p = new ae(); + else throw new Error("Unknown prime " + o); + return (H[o] = p), p; + }); + function Y(g) { + if (typeof g == "string") { + var o = a._prime(g); + (this.m = o.p), (this.prime = o); + } else + t(g.gtn(1), "modulus must be greater than 1"), + (this.m = g), + (this.prime = null); + } + (Y.prototype._verify1 = function (o) { + t(o.negative === 0, "red works only with positives"), + t(o.red, "red works only with red numbers"); + }), + (Y.prototype._verify2 = function (o, p) { + t((o.negative | p.negative) === 0, "red works only with positives"), + t(o.red && o.red === p.red, "red works only with red numbers"); + }), + (Y.prototype.imod = function (o) { + return this.prime + ? this.prime.ireduce(o)._forceRed(this) + : o.umod(this.m)._forceRed(this); + }), + (Y.prototype.neg = function (o) { + return o.isZero() ? o.clone() : this.m.sub(o)._forceRed(this); + }), + (Y.prototype.add = function (o, p) { + this._verify2(o, p); + var y = o.add(p); + return y.cmp(this.m) >= 0 && y.isub(this.m), y._forceRed(this); + }), + (Y.prototype.iadd = function (o, p) { + this._verify2(o, p); + var y = o.iadd(p); + return y.cmp(this.m) >= 0 && y.isub(this.m), y; + }), + (Y.prototype.sub = function (o, p) { + this._verify2(o, p); + var y = o.sub(p); + return y.cmpn(0) < 0 && y.iadd(this.m), y._forceRed(this); + }), + (Y.prototype.isub = function (o, p) { + this._verify2(o, p); + var y = o.isub(p); + return y.cmpn(0) < 0 && y.iadd(this.m), y; + }), + (Y.prototype.shl = function (o, p) { + return this._verify1(o), this.imod(o.ushln(p)); + }), + (Y.prototype.imul = function (o, p) { + return this._verify2(o, p), this.imod(o.imul(p)); + }), + (Y.prototype.mul = function (o, p) { + return this._verify2(o, p), this.imod(o.mul(p)); + }), + (Y.prototype.isqr = function (o) { + return this.imul(o, o.clone()); + }), + (Y.prototype.sqr = function (o) { + return this.mul(o, o); + }), + (Y.prototype.sqrt = function (o) { + if (o.isZero()) return o.clone(); + var p = this.m.andln(3); + if ((t(p % 2 === 1), p === 3)) { + var y = this.m.add(new a(1)).iushrn(2); + return this.pow(o, y); + } + for (var h = this.m.subn(1), b = 0; !h.isZero() && h.andln(1) === 0; ) + b++, h.iushrn(1); + t(!h.isZero()); + var T = new a(1).toRed(this), + E = T.redNeg(), + f = this.m.subn(1).iushrn(1), + u = this.m.bitLength(); + for (u = new a(2 * u * u).toRed(this); this.pow(u, f).cmp(E) !== 0; ) + u.redIAdd(E); + for ( + var v = this.pow(u, h), + R = this.pow(o, h.addn(1).iushrn(1)), + A = this.pow(o, h), + L = b; + A.cmp(T) !== 0; + + ) { + for (var G = A, U = 0; G.cmp(T) !== 0; U++) G = G.redSqr(); + t(U < L); + var Z = this.pow(v, new a(1).iushln(L - U - 1)); + (R = R.redMul(Z)), (v = Z.redSqr()), (A = A.redMul(v)), (L = U); + } + return R; + }), + (Y.prototype.invm = function (o) { + var p = o._invmp(this.m); + return p.negative !== 0 + ? ((p.negative = 0), this.imod(p).redNeg()) + : this.imod(p); + }), + (Y.prototype.pow = function (o, p) { + if (p.isZero()) return new a(1).toRed(this); + if (p.cmpn(1) === 0) return o.clone(); + var y = 4, + h = new Array(1 << y); + (h[0] = new a(1).toRed(this)), (h[1] = o); + for (var b = 2; b < h.length; b++) h[b] = this.mul(h[b - 1], o); + var T = h[0], + E = 0, + f = 0, + u = p.bitLength() % 26; + for (u === 0 && (u = 26), b = p.length - 1; b >= 0; b--) { + for (var v = p.words[b], R = u - 1; R >= 0; R--) { + var A = (v >> R) & 1; + if ((T !== h[0] && (T = this.sqr(T)), A === 0 && E === 0)) { + f = 0; + continue; + } + (E <<= 1), + (E |= A), + f++, + !(f !== y && (b !== 0 || R !== 0)) && + ((T = this.mul(T, h[E])), (f = 0), (E = 0)); + } + u = 26; + } + return T; + }), + (Y.prototype.convertTo = function (o) { + var p = o.umod(this.m); + return p === o ? p.clone() : p; + }), + (Y.prototype.convertFrom = function (o) { + var p = o.clone(); + return (p.red = null), p; + }), + (a.mont = function (o) { + return new K(o); + }); + function K(g) { + Y.call(this, g), + (this.shift = this.m.bitLength()), + this.shift % 26 !== 0 && (this.shift += 26 - (this.shift % 26)), + (this.r = new a(1).iushln(this.shift)), + (this.r2 = this.imod(this.r.sqr())), + (this.rinv = this.r._invmp(this.m)), + (this.minv = this.rinv.mul(this.r).isubn(1).div(this.m)), + (this.minv = this.minv.umod(this.r)), + (this.minv = this.r.sub(this.minv)); + } + n(K, Y), + (K.prototype.convertTo = function (o) { + return this.imod(o.ushln(this.shift)); + }), + (K.prototype.convertFrom = function (o) { + var p = this.imod(o.mul(this.rinv)); + return (p.red = null), p; + }), + (K.prototype.imul = function (o, p) { + if (o.isZero() || p.isZero()) + return (o.words[0] = 0), (o.length = 1), o; + var y = o.imul(p), + h = y + .maskn(this.shift) + .mul(this.minv) + .imaskn(this.shift) + .mul(this.m), + b = y.isub(h).iushrn(this.shift), + T = b; + return ( + b.cmp(this.m) >= 0 + ? (T = b.isub(this.m)) + : b.cmpn(0) < 0 && (T = b.iadd(this.m)), + T._forceRed(this) + ); + }), + (K.prototype.mul = function (o, p) { + if (o.isZero() || p.isZero()) return new a(0)._forceRed(this); + var y = o.mul(p), + h = y + .maskn(this.shift) + .mul(this.minv) + .imaskn(this.shift) + .mul(this.m), + b = y.isub(h).iushrn(this.shift), + T = b; + return ( + b.cmp(this.m) >= 0 + ? (T = b.isub(this.m)) + : b.cmpn(0) < 0 && (T = b.iadd(this.m)), + T._forceRed(this) + ); + }), + (K.prototype.invm = function (o) { + var p = this.imod(o._invmp(this.m).mul(this.r2)); + return p._forceRed(this); + }); + })(typeof bF > "u" || bF, dde); + }); + var zI = N((AVr, pde) => { + "use strict"; + _(); + x(); + var HI = Hi(), + Y1 = HI.Buffer, + Tl = {}, + El; + for (El in HI) + !HI.hasOwnProperty(El) || + El === "SlowBuffer" || + El === "Buffer" || + (Tl[El] = HI[El]); + var $1 = (Tl.Buffer = {}); + for (El in Y1) + !Y1.hasOwnProperty(El) || + El === "allocUnsafe" || + El === "allocUnsafeSlow" || + ($1[El] = Y1[El]); + Tl.Buffer.prototype = Y1.prototype; + (!$1.from || $1.from === Uint8Array.from) && + ($1.from = function (r, e, t) { + if (typeof r == "number") + throw new TypeError( + 'The "value" argument must not be of type number. Received type ' + + typeof r + ); + if (r && typeof r.length > "u") + throw new TypeError( + "The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type " + + typeof r + ); + return Y1(r, e, t); + }); + $1.alloc || + ($1.alloc = function (r, e, t) { + if (typeof r != "number") + throw new TypeError( + 'The "size" argument must be of type number. Received type ' + + typeof r + ); + if (r < 0 || r >= 2 * (1 << 30)) + throw new RangeError( + 'The value "' + r + '" is invalid for option "size"' + ); + var n = Y1(r); + return ( + !e || e.length === 0 + ? n.fill(0) + : typeof t == "string" + ? n.fill(e, t) + : n.fill(e), + n + ); + }); + if (!Tl.kStringMaxLength) + try { + Tl.kStringMaxLength = S.binding("buffer").kStringMaxLength; + } catch {} + Tl.constants || + ((Tl.constants = { MAX_LENGTH: Tl.kMaxLength }), + Tl.kStringMaxLength && + (Tl.constants.MAX_STRING_LENGTH = Tl.kStringMaxLength)); + pde.exports = Tl; + }); + var jI = N((hde) => { + "use strict"; + _(); + x(); + var t2t = qr(); + function Cl(r) { + this._reporterState = { + obj: null, + path: [], + options: r || {}, + errors: [], + }; + } + hde.Reporter = Cl; + Cl.prototype.isError = function (e) { + return e instanceof J1; + }; + Cl.prototype.save = function () { + let e = this._reporterState; + return { obj: e.obj, pathLen: e.path.length }; + }; + Cl.prototype.restore = function (e) { + let t = this._reporterState; + (t.obj = e.obj), (t.path = t.path.slice(0, e.pathLen)); + }; + Cl.prototype.enterKey = function (e) { + return this._reporterState.path.push(e); + }; + Cl.prototype.exitKey = function (e) { + let t = this._reporterState; + t.path = t.path.slice(0, e - 1); + }; + Cl.prototype.leaveKey = function (e, t, n) { + let a = this._reporterState; + this.exitKey(e), a.obj !== null && (a.obj[t] = n); + }; + Cl.prototype.path = function () { + return this._reporterState.path.join("/"); + }; + Cl.prototype.enterObject = function () { + let e = this._reporterState, + t = e.obj; + return (e.obj = {}), t; + }; + Cl.prototype.leaveObject = function (e) { + let t = this._reporterState, + n = t.obj; + return (t.obj = e), n; + }; + Cl.prototype.error = function (e) { + let t, + n = this._reporterState, + a = e instanceof J1; + if ( + (a + ? (t = e) + : (t = new J1( + n.path + .map(function (i) { + return "[" + JSON.stringify(i) + "]"; + }) + .join(""), + e.message || e, + e.stack + )), + !n.options.partial) + ) + throw t; + return a || n.errors.push(t), t; + }; + Cl.prototype.wrapResult = function (e) { + let t = this._reporterState; + return t.options.partial + ? { result: this.isError(e) ? null : e, errors: t.errors } + : e; + }; + function J1(r, e) { + (this.path = r), this.rethrow(e); + } + t2t(J1, Error); + J1.prototype.rethrow = function (e) { + if ( + ((this.message = e + " at: " + (this.path || "(shallow)")), + Error.captureStackTrace && Error.captureStackTrace(this, J1), + !this.stack) + ) + try { + throw new Error(this.message); + } catch (t) { + this.stack = t.stack; + } + return this; + }; + }); + var X1 = N((wF) => { + "use strict"; + _(); + x(); + var r2t = qr(), + KI = jI().Reporter, + Z1 = zI().Buffer; + function Il(r, e) { + if ((KI.call(this, e), !Z1.isBuffer(r))) { + this.error("Input not Buffer"); + return; + } + (this.base = r), (this.offset = 0), (this.length = r.length); + } + r2t(Il, KI); + wF.DecoderBuffer = Il; + Il.isDecoderBuffer = function (e) { + return e instanceof Il + ? !0 + : typeof e == "object" && + Z1.isBuffer(e.base) && + e.constructor.name === "DecoderBuffer" && + typeof e.offset == "number" && + typeof e.length == "number" && + typeof e.save == "function" && + typeof e.restore == "function" && + typeof e.isEmpty == "function" && + typeof e.readUInt8 == "function" && + typeof e.skip == "function" && + typeof e.raw == "function"; + }; + Il.prototype.save = function () { + return { offset: this.offset, reporter: KI.prototype.save.call(this) }; + }; + Il.prototype.restore = function (e) { + let t = new Il(this.base); + return ( + (t.offset = e.offset), + (t.length = this.offset), + (this.offset = e.offset), + KI.prototype.restore.call(this, e.reporter), + t + ); + }; + Il.prototype.isEmpty = function () { + return this.offset === this.length; + }; + Il.prototype.readUInt8 = function (e) { + return this.offset + 1 <= this.length + ? this.base.readUInt8(this.offset++, !0) + : this.error(e || "DecoderBuffer overrun"); + }; + Il.prototype.skip = function (e, t) { + if (!(this.offset + e <= this.length)) + return this.error(t || "DecoderBuffer overrun"); + let n = new Il(this.base); + return ( + (n._reporterState = this._reporterState), + (n.offset = this.offset), + (n.length = this.offset + e), + (this.offset += e), + n + ); + }; + Il.prototype.raw = function (e) { + return this.base.slice(e ? e.offset : this.offset, this.length); + }; + function Q1(r, e) { + if (Array.isArray(r)) + (this.length = 0), + (this.value = r.map(function (t) { + return ( + Q1.isEncoderBuffer(t) || (t = new Q1(t, e)), + (this.length += t.length), + t + ); + }, this)); + else if (typeof r == "number") { + if (!(0 <= r && r <= 255)) + return e.error("non-byte EncoderBuffer value"); + (this.value = r), (this.length = 1); + } else if (typeof r == "string") + (this.value = r), (this.length = Z1.byteLength(r)); + else if (Z1.isBuffer(r)) (this.value = r), (this.length = r.length); + else return e.error("Unsupported type: " + typeof r); + } + wF.EncoderBuffer = Q1; + Q1.isEncoderBuffer = function (e) { + return e instanceof Q1 + ? !0 + : typeof e == "object" && + e.constructor.name === "EncoderBuffer" && + typeof e.length == "number" && + typeof e.join == "function"; + }; + Q1.prototype.join = function (e, t) { + return ( + e || (e = Z1.alloc(this.length)), + t || (t = 0), + this.length === 0 || + (Array.isArray(this.value) + ? this.value.forEach(function (n) { + n.join(e, t), (t += n.length); + }) + : (typeof this.value == "number" + ? (e[t] = this.value) + : typeof this.value == "string" + ? e.write(this.value, t) + : Z1.isBuffer(this.value) && this.value.copy(e, t), + (t += this.length))), + e + ); + }; + }); + var VI = N((LVr, mde) => { + "use strict"; + _(); + x(); + var n2t = jI().Reporter, + a2t = X1().EncoderBuffer, + i2t = X1().DecoderBuffer, + xc = Ou(), + fde = [ + "seq", + "seqof", + "set", + "setof", + "objid", + "bool", + "gentime", + "utctime", + "null_", + "enum", + "int", + "objDesc", + "bitstr", + "bmpstr", + "charstr", + "genstr", + "graphstr", + "ia5str", + "iso646str", + "numstr", + "octstr", + "printstr", + "t61str", + "unistr", + "utf8str", + "videostr", + ], + s2t = [ + "key", + "obj", + "use", + "optional", + "explicit", + "implicit", + "def", + "choice", + "any", + "contains", + ].concat(fde), + o2t = [ + "_peekTag", + "_decodeTag", + "_use", + "_decodeStr", + "_decodeObjid", + "_decodeTime", + "_decodeNull", + "_decodeInt", + "_decodeBool", + "_decodeList", + "_encodeComposite", + "_encodeStr", + "_encodeObjid", + "_encodeTime", + "_encodeNull", + "_encodeInt", + "_encodeBool", + ]; + function Xa(r, e, t) { + let n = {}; + (this._baseState = n), + (n.name = t), + (n.enc = r), + (n.parent = e || null), + (n.children = null), + (n.tag = null), + (n.args = null), + (n.reverseArgs = null), + (n.choice = null), + (n.optional = !1), + (n.any = !1), + (n.obj = !1), + (n.use = null), + (n.useDecoder = null), + (n.key = null), + (n.default = null), + (n.explicit = null), + (n.implicit = null), + (n.contains = null), + n.parent || ((n.children = []), this._wrap()); + } + mde.exports = Xa; + var c2t = [ + "enc", + "parent", + "children", + "tag", + "args", + "reverseArgs", + "choice", + "optional", + "any", + "obj", + "use", + "alteredUse", + "key", + "default", + "explicit", + "implicit", + "contains", + ]; + Xa.prototype.clone = function () { + let e = this._baseState, + t = {}; + c2t.forEach(function (a) { + t[a] = e[a]; + }); + let n = new this.constructor(t.parent); + return (n._baseState = t), n; + }; + Xa.prototype._wrap = function () { + let e = this._baseState; + s2t.forEach(function (t) { + this[t] = function () { + let a = new this.constructor(this); + return e.children.push(a), a[t].apply(a, arguments); + }; + }, this); + }; + Xa.prototype._init = function (e) { + let t = this._baseState; + xc(t.parent === null), + e.call(this), + (t.children = t.children.filter(function (n) { + return n._baseState.parent === this; + }, this)), + xc.equal(t.children.length, 1, "Root node can have only one child"); + }; + Xa.prototype._useArgs = function (e) { + let t = this._baseState, + n = e.filter(function (a) { + return a instanceof this.constructor; + }, this); + (e = e.filter(function (a) { + return !(a instanceof this.constructor); + }, this)), + n.length !== 0 && + (xc(t.children === null), + (t.children = n), + n.forEach(function (a) { + a._baseState.parent = this; + }, this)), + e.length !== 0 && + (xc(t.args === null), + (t.args = e), + (t.reverseArgs = e.map(function (a) { + if (typeof a != "object" || a.constructor !== Object) return a; + let i = {}; + return ( + Object.keys(a).forEach(function (s) { + s == (s | 0) && (s |= 0); + let c = a[s]; + i[c] = s; + }), + i + ); + }))); + }; + o2t.forEach(function (r) { + Xa.prototype[r] = function () { + let t = this._baseState; + throw new Error(r + " not implemented for encoding: " + t.enc); + }; + }); + fde.forEach(function (r) { + Xa.prototype[r] = function () { + let t = this._baseState, + n = Array.prototype.slice.call(arguments); + return xc(t.tag === null), (t.tag = r), this._useArgs(n), this; + }; + }); + Xa.prototype.use = function (e) { + xc(e); + let t = this._baseState; + return xc(t.use === null), (t.use = e), this; + }; + Xa.prototype.optional = function () { + let e = this._baseState; + return (e.optional = !0), this; + }; + Xa.prototype.def = function (e) { + let t = this._baseState; + return xc(t.default === null), (t.default = e), (t.optional = !0), this; + }; + Xa.prototype.explicit = function (e) { + let t = this._baseState; + return ( + xc(t.explicit === null && t.implicit === null), (t.explicit = e), this + ); + }; + Xa.prototype.implicit = function (e) { + let t = this._baseState; + return ( + xc(t.explicit === null && t.implicit === null), (t.implicit = e), this + ); + }; + Xa.prototype.obj = function () { + let e = this._baseState, + t = Array.prototype.slice.call(arguments); + return (e.obj = !0), t.length !== 0 && this._useArgs(t), this; + }; + Xa.prototype.key = function (e) { + let t = this._baseState; + return xc(t.key === null), (t.key = e), this; + }; + Xa.prototype.any = function () { + let e = this._baseState; + return (e.any = !0), this; + }; + Xa.prototype.choice = function (e) { + let t = this._baseState; + return ( + xc(t.choice === null), + (t.choice = e), + this._useArgs( + Object.keys(e).map(function (n) { + return e[n]; + }) + ), + this + ); + }; + Xa.prototype.contains = function (e) { + let t = this._baseState; + return xc(t.use === null), (t.contains = e), this; + }; + Xa.prototype._decode = function (e, t) { + let n = this._baseState; + if (n.parent === null) return e.wrapResult(n.children[0]._decode(e, t)); + let a = n.default, + i = !0, + s = null; + if ((n.key !== null && (s = e.enterKey(n.key)), n.optional)) { + let l = null; + if ( + (n.explicit !== null + ? (l = n.explicit) + : n.implicit !== null + ? (l = n.implicit) + : n.tag !== null && (l = n.tag), + l === null && !n.any) + ) { + let d = e.save(); + try { + n.choice === null + ? this._decodeGeneric(n.tag, e, t) + : this._decodeChoice(e, t), + (i = !0); + } catch { + i = !1; + } + e.restore(d); + } else if (((i = this._peekTag(e, l, n.any)), e.isError(i))) return i; + } + let c; + if ((n.obj && i && (c = e.enterObject()), i)) { + if (n.explicit !== null) { + let d = this._decodeTag(e, n.explicit); + if (e.isError(d)) return d; + e = d; + } + let l = e.offset; + if (n.use === null && n.choice === null) { + let d; + n.any && (d = e.save()); + let m = this._decodeTag( + e, + n.implicit !== null ? n.implicit : n.tag, + n.any + ); + if (e.isError(m)) return m; + n.any ? (a = e.raw(d)) : (e = m); + } + if ( + (t && + t.track && + n.tag !== null && + t.track(e.path(), l, e.length, "tagged"), + t && + t.track && + n.tag !== null && + t.track(e.path(), e.offset, e.length, "content"), + n.any || + (n.choice === null + ? (a = this._decodeGeneric(n.tag, e, t)) + : (a = this._decodeChoice(e, t))), + e.isError(a)) + ) + return a; + if ( + (!n.any && + n.choice === null && + n.children !== null && + n.children.forEach(function (m) { + m._decode(e, t); + }), + n.contains && (n.tag === "octstr" || n.tag === "bitstr")) + ) { + let d = new i2t(a); + a = this._getUse(n.contains, e._reporterState.obj)._decode(d, t); + } + } + return ( + n.obj && i && (a = e.leaveObject(c)), + n.key !== null && (a !== null || i === !0) + ? e.leaveKey(s, n.key, a) + : s !== null && e.exitKey(s), + a + ); + }; + Xa.prototype._decodeGeneric = function (e, t, n) { + let a = this._baseState; + return e === "seq" || e === "set" + ? null + : e === "seqof" || e === "setof" + ? this._decodeList(t, e, a.args[0], n) + : /str$/.test(e) + ? this._decodeStr(t, e, n) + : e === "objid" && a.args + ? this._decodeObjid(t, a.args[0], a.args[1], n) + : e === "objid" + ? this._decodeObjid(t, null, null, n) + : e === "gentime" || e === "utctime" + ? this._decodeTime(t, e, n) + : e === "null_" + ? this._decodeNull(t, n) + : e === "bool" + ? this._decodeBool(t, n) + : e === "objDesc" + ? this._decodeStr(t, e, n) + : e === "int" || e === "enum" + ? this._decodeInt(t, a.args && a.args[0], n) + : a.use !== null + ? this._getUse(a.use, t._reporterState.obj)._decode(t, n) + : t.error("unknown tag: " + e); + }; + Xa.prototype._getUse = function (e, t) { + let n = this._baseState; + return ( + (n.useDecoder = this._use(e, t)), + xc(n.useDecoder._baseState.parent === null), + (n.useDecoder = n.useDecoder._baseState.children[0]), + n.implicit !== n.useDecoder._baseState.implicit && + ((n.useDecoder = n.useDecoder.clone()), + (n.useDecoder._baseState.implicit = n.implicit)), + n.useDecoder + ); + }; + Xa.prototype._decodeChoice = function (e, t) { + let n = this._baseState, + a = null, + i = !1; + return ( + Object.keys(n.choice).some(function (s) { + let c = e.save(), + l = n.choice[s]; + try { + let d = l._decode(e, t); + if (e.isError(d)) return !1; + (a = { type: s, value: d }), (i = !0); + } catch { + return e.restore(c), !1; + } + return !0; + }, this), + i ? a : e.error("Choice not matched") + ); + }; + Xa.prototype._createEncoderBuffer = function (e) { + return new a2t(e, this.reporter); + }; + Xa.prototype._encode = function (e, t, n) { + let a = this._baseState; + if (a.default !== null && a.default === e) return; + let i = this._encodeValue(e, t, n); + if (i !== void 0 && !this._skipDefault(i, t, n)) return i; + }; + Xa.prototype._encodeValue = function (e, t, n) { + let a = this._baseState; + if (a.parent === null) return a.children[0]._encode(e, t || new n2t()); + let i = null; + if (((this.reporter = t), a.optional && e === void 0)) + if (a.default !== null) e = a.default; + else return; + let s = null, + c = !1; + if (a.any) i = this._createEncoderBuffer(e); + else if (a.choice) i = this._encodeChoice(e, t); + else if (a.contains) + (s = this._getUse(a.contains, n)._encode(e, t)), (c = !0); + else if (a.children) + (s = a.children + .map(function (l) { + if (l._baseState.tag === "null_") return l._encode(null, t, e); + if (l._baseState.key === null) + return t.error("Child should have a key"); + let d = t.enterKey(l._baseState.key); + if (typeof e != "object") + return t.error("Child expected, but input is not object"); + let m = l._encode(e[l._baseState.key], t, e); + return t.leaveKey(d), m; + }, this) + .filter(function (l) { + return l; + })), + (s = this._createEncoderBuffer(s)); + else if (a.tag === "seqof" || a.tag === "setof") { + if (!(a.args && a.args.length === 1)) + return t.error("Too many args for : " + a.tag); + if (!Array.isArray(e)) + return t.error("seqof/setof, but data is not Array"); + let l = this.clone(); + (l._baseState.implicit = null), + (s = this._createEncoderBuffer( + e.map(function (d) { + let m = this._baseState; + return this._getUse(m.args[0], e)._encode(d, t); + }, l) + )); + } else + a.use !== null + ? (i = this._getUse(a.use, n)._encode(e, t)) + : ((s = this._encodePrimitive(a.tag, e)), (c = !0)); + if (!a.any && a.choice === null) { + let l = a.implicit !== null ? a.implicit : a.tag, + d = a.implicit === null ? "universal" : "context"; + l === null + ? a.use === null && t.error("Tag could be omitted only for .use()") + : a.use === null && (i = this._encodeComposite(l, c, d, s)); + } + return ( + a.explicit !== null && + (i = this._encodeComposite(a.explicit, !1, "context", i)), + i + ); + }; + Xa.prototype._encodeChoice = function (e, t) { + let n = this._baseState, + a = n.choice[e.type]; + return ( + a || + xc( + !1, + e.type + " not found in " + JSON.stringify(Object.keys(n.choice)) + ), + a._encode(e.value, t) + ); + }; + Xa.prototype._encodePrimitive = function (e, t) { + let n = this._baseState; + if (/str$/.test(e)) return this._encodeStr(t, e); + if (e === "objid" && n.args) + return this._encodeObjid(t, n.reverseArgs[0], n.args[1]); + if (e === "objid") return this._encodeObjid(t, null, null); + if (e === "gentime" || e === "utctime") return this._encodeTime(t, e); + if (e === "null_") return this._encodeNull(); + if (e === "int" || e === "enum") + return this._encodeInt(t, n.args && n.reverseArgs[0]); + if (e === "bool") return this._encodeBool(t); + if (e === "objDesc") return this._encodeStr(t, e); + throw new Error("Unsupported tag: " + e); + }; + Xa.prototype._isNumstr = function (e) { + return /^[0-9 ]*$/.test(e); + }; + Xa.prototype._isPrintstr = function (e) { + return /^[A-Za-z0-9 '()+,-./:=?]*$/.test(e); + }; + }); + var GI = N((Yy) => { + "use strict"; + _(); + x(); + function yde(r) { + let e = {}; + return ( + Object.keys(r).forEach(function (t) { + (t | 0) == t && (t = t | 0); + let n = r[t]; + e[n] = t; + }), + e + ); + } + Yy.tagClass = { + 0: "universal", + 1: "application", + 2: "context", + 3: "private", + }; + Yy.tagClassByName = yde(Yy.tagClass); + Yy.tag = { + 0: "end", + 1: "bool", + 2: "int", + 3: "bitstr", + 4: "octstr", + 5: "null_", + 6: "objid", + 7: "objDesc", + 8: "external", + 9: "real", + 10: "enum", + 11: "embed", + 12: "utf8str", + 13: "relativeOid", + 16: "seq", + 17: "set", + 18: "numstr", + 19: "printstr", + 20: "t61str", + 21: "videostr", + 22: "ia5str", + 23: "utctime", + 24: "gentime", + 25: "graphstr", + 26: "iso646str", + 27: "genstr", + 28: "unistr", + 29: "charstr", + 30: "bmpstr", + }; + Yy.tagByName = yde(Yy.tag); + }); + var xF = N((HVr, vde) => { + "use strict"; + _(); + x(); + var u2t = qr(), + af = zI().Buffer, + gde = VI(), + _F = GI(); + function bde(r) { + (this.enc = "der"), + (this.name = r.name), + (this.entity = r), + (this.tree = new Ad()), + this.tree._init(r.body); + } + vde.exports = bde; + bde.prototype.encode = function (e, t) { + return this.tree._encode(e, t).join(); + }; + function Ad(r) { + gde.call(this, "der", r); + } + u2t(Ad, gde); + Ad.prototype._encodeComposite = function (e, t, n, a) { + let i = l2t(e, t, n, this.reporter); + if (a.length < 128) { + let l = af.alloc(2); + return (l[0] = i), (l[1] = a.length), this._createEncoderBuffer([l, a]); + } + let s = 1; + for (let l = a.length; l >= 256; l >>= 8) s++; + let c = af.alloc(1 + 1 + s); + (c[0] = i), (c[1] = 128 | s); + for (let l = 1 + s, d = a.length; d > 0; l--, d >>= 8) c[l] = d & 255; + return this._createEncoderBuffer([c, a]); + }; + Ad.prototype._encodeStr = function (e, t) { + if (t === "bitstr") + return this._createEncoderBuffer([e.unused | 0, e.data]); + if (t === "bmpstr") { + let n = af.alloc(e.length * 2); + for (let a = 0; a < e.length; a++) + n.writeUInt16BE(e.charCodeAt(a), a * 2); + return this._createEncoderBuffer(n); + } else + return t === "numstr" + ? this._isNumstr(e) + ? this._createEncoderBuffer(e) + : this.reporter.error( + "Encoding of string type: numstr supports only digits and space" + ) + : t === "printstr" + ? this._isPrintstr(e) + ? this._createEncoderBuffer(e) + : this.reporter.error( + "Encoding of string type: printstr supports only latin upper and lower case letters, digits, space, apostrophe, left and rigth parenthesis, plus sign, comma, hyphen, dot, slash, colon, equal sign, question mark" + ) + : /str$/.test(t) + ? this._createEncoderBuffer(e) + : t === "objDesc" + ? this._createEncoderBuffer(e) + : this.reporter.error( + "Encoding of string type: " + t + " unsupported" + ); + }; + Ad.prototype._encodeObjid = function (e, t, n) { + if (typeof e == "string") { + if (!t) + return this.reporter.error( + "string objid given, but no values map found" + ); + if (!t.hasOwnProperty(e)) + return this.reporter.error("objid not found in values map"); + e = t[e].split(/[\s.]+/g); + for (let c = 0; c < e.length; c++) e[c] |= 0; + } else if (Array.isArray(e)) { + e = e.slice(); + for (let c = 0; c < e.length; c++) e[c] |= 0; + } + if (!Array.isArray(e)) + return this.reporter.error( + "objid() should be either array or string, got: " + JSON.stringify(e) + ); + if (!n) { + if (e[1] >= 40) + return this.reporter.error("Second objid identifier OOB"); + e.splice(0, 2, e[0] * 40 + e[1]); + } + let a = 0; + for (let c = 0; c < e.length; c++) { + let l = e[c]; + for (a++; l >= 128; l >>= 7) a++; + } + let i = af.alloc(a), + s = i.length - 1; + for (let c = e.length - 1; c >= 0; c--) { + let l = e[c]; + for (i[s--] = l & 127; (l >>= 7) > 0; ) i[s--] = 128 | (l & 127); + } + return this._createEncoderBuffer(i); + }; + function Al(r) { + return r < 10 ? "0" + r : r; + } + Ad.prototype._encodeTime = function (e, t) { + let n, + a = new Date(e); + return ( + t === "gentime" + ? (n = [ + Al(a.getUTCFullYear()), + Al(a.getUTCMonth() + 1), + Al(a.getUTCDate()), + Al(a.getUTCHours()), + Al(a.getUTCMinutes()), + Al(a.getUTCSeconds()), + "Z", + ].join("")) + : t === "utctime" + ? (n = [ + Al(a.getUTCFullYear() % 100), + Al(a.getUTCMonth() + 1), + Al(a.getUTCDate()), + Al(a.getUTCHours()), + Al(a.getUTCMinutes()), + Al(a.getUTCSeconds()), + "Z", + ].join("")) + : this.reporter.error("Encoding " + t + " time is not supported yet"), + this._encodeStr(n, "octstr") + ); + }; + Ad.prototype._encodeNull = function () { + return this._createEncoderBuffer(""); + }; + Ad.prototype._encodeInt = function (e, t) { + if (typeof e == "string") { + if (!t) + return this.reporter.error( + "String int or enum given, but no values map" + ); + if (!t.hasOwnProperty(e)) + return this.reporter.error( + "Values map doesn't contain: " + JSON.stringify(e) + ); + e = t[e]; + } + if (typeof e != "number" && !af.isBuffer(e)) { + let i = e.toArray(); + !e.sign && i[0] & 128 && i.unshift(0), (e = af.from(i)); + } + if (af.isBuffer(e)) { + let i = e.length; + e.length === 0 && i++; + let s = af.alloc(i); + return ( + e.copy(s), e.length === 0 && (s[0] = 0), this._createEncoderBuffer(s) + ); + } + if (e < 128) return this._createEncoderBuffer(e); + if (e < 256) return this._createEncoderBuffer([0, e]); + let n = 1; + for (let i = e; i >= 256; i >>= 8) n++; + let a = new Array(n); + for (let i = a.length - 1; i >= 0; i--) (a[i] = e & 255), (e >>= 8); + return a[0] & 128 && a.unshift(0), this._createEncoderBuffer(af.from(a)); + }; + Ad.prototype._encodeBool = function (e) { + return this._createEncoderBuffer(e ? 255 : 0); + }; + Ad.prototype._use = function (e, t) { + return typeof e == "function" && (e = e(t)), e._getEncoder("der").tree; + }; + Ad.prototype._skipDefault = function (e, t, n) { + let a = this._baseState, + i; + if (a.default === null) return !1; + let s = e.join(); + if ( + (a.defaultBuffer === void 0 && + (a.defaultBuffer = this._encodeValue(a.default, t, n).join()), + s.length !== a.defaultBuffer.length) + ) + return !1; + for (i = 0; i < s.length; i++) if (s[i] !== a.defaultBuffer[i]) return !1; + return !0; + }; + function l2t(r, e, t, n) { + let a; + if ( + (r === "seqof" ? (r = "seq") : r === "setof" && (r = "set"), + _F.tagByName.hasOwnProperty(r)) + ) + a = _F.tagByName[r]; + else if (typeof r == "number" && (r | 0) === r) a = r; + else return n.error("Unknown tag: " + r); + return a >= 31 + ? n.error("Multi-octet tag encoding unsupported") + : (e || (a |= 32), (a |= _F.tagClassByName[t || "universal"] << 6), a); + } + }); + var _de = N((KVr, wde) => { + "use strict"; + _(); + x(); + var d2t = qr(), + TF = xF(); + function EF(r) { + TF.call(this, r), (this.enc = "pem"); + } + d2t(EF, TF); + wde.exports = EF; + EF.prototype.encode = function (e, t) { + let a = TF.prototype.encode.call(this, e).toString("base64"), + i = ["-----BEGIN " + t.label + "-----"]; + for (let s = 0; s < a.length; s += 64) i.push(a.slice(s, s + 64)); + return ( + i.push("-----END " + t.label + "-----"), + i.join(` +`) + ); + }; + }); + var CF = N((Tde) => { + "use strict"; + _(); + x(); + var xde = Tde; + xde.der = xF(); + xde.pem = _de(); + }); + var AF = N((ZVr, Sde) => { + "use strict"; + _(); + x(); + var p2t = qr(), + h2t = vF(), + Ede = X1().DecoderBuffer, + Ide = VI(), + Cde = GI(); + function Ade(r) { + (this.enc = "der"), + (this.name = r.name), + (this.entity = r), + (this.tree = new Du()), + this.tree._init(r.body); + } + Sde.exports = Ade; + Ade.prototype.decode = function (e, t) { + return ( + Ede.isDecoderBuffer(e) || (e = new Ede(e, t)), this.tree._decode(e, t) + ); + }; + function Du(r) { + Ide.call(this, "der", r); + } + p2t(Du, Ide); + Du.prototype._peekTag = function (e, t, n) { + if (e.isEmpty()) return !1; + let a = e.save(), + i = IF(e, 'Failed to peek tag: "' + t + '"'); + return e.isError(i) + ? i + : (e.restore(a), + i.tag === t || i.tagStr === t || i.tagStr + "of" === t || n); + }; + Du.prototype._decodeTag = function (e, t, n) { + let a = IF(e, 'Failed to decode tag of "' + t + '"'); + if (e.isError(a)) return a; + let i = kde(e, a.primitive, 'Failed to get length of "' + t + '"'); + if (e.isError(i)) return i; + if (!n && a.tag !== t && a.tagStr !== t && a.tagStr + "of" !== t) + return e.error('Failed to match tag: "' + t + '"'); + if (a.primitive || i !== null) + return e.skip(i, 'Failed to match body of: "' + t + '"'); + let s = e.save(), + c = this._skipUntilEnd( + e, + 'Failed to skip indefinite length body: "' + this.tag + '"' + ); + return e.isError(c) + ? c + : ((i = e.offset - s.offset), + e.restore(s), + e.skip(i, 'Failed to match body of: "' + t + '"')); + }; + Du.prototype._skipUntilEnd = function (e, t) { + for (;;) { + let n = IF(e, t); + if (e.isError(n)) return n; + let a = kde(e, n.primitive, t); + if (e.isError(a)) return a; + let i; + if ( + (n.primitive || a !== null + ? (i = e.skip(a)) + : (i = this._skipUntilEnd(e, t)), + e.isError(i)) + ) + return i; + if (n.tagStr === "end") break; + } + }; + Du.prototype._decodeList = function (e, t, n, a) { + let i = []; + for (; !e.isEmpty(); ) { + let s = this._peekTag(e, "end"); + if (e.isError(s)) return s; + let c = n.decode(e, "der", a); + if (e.isError(c) && s) break; + i.push(c); + } + return i; + }; + Du.prototype._decodeStr = function (e, t) { + if (t === "bitstr") { + let n = e.readUInt8(); + return e.isError(n) ? n : { unused: n, data: e.raw() }; + } else if (t === "bmpstr") { + let n = e.raw(); + if (n.length % 2 === 1) + return e.error("Decoding of string type: bmpstr length mismatch"); + let a = ""; + for (let i = 0; i < n.length / 2; i++) + a += String.fromCharCode(n.readUInt16BE(i * 2)); + return a; + } else if (t === "numstr") { + let n = e.raw().toString("ascii"); + return this._isNumstr(n) + ? n + : e.error("Decoding of string type: numstr unsupported characters"); + } else { + if (t === "octstr") return e.raw(); + if (t === "objDesc") return e.raw(); + if (t === "printstr") { + let n = e.raw().toString("ascii"); + return this._isPrintstr(n) + ? n + : e.error( + "Decoding of string type: printstr unsupported characters" + ); + } else + return /str$/.test(t) + ? e.raw().toString() + : e.error("Decoding of string type: " + t + " unsupported"); + } + }; + Du.prototype._decodeObjid = function (e, t, n) { + let a, + i = [], + s = 0, + c = 0; + for (; !e.isEmpty(); ) + (c = e.readUInt8()), + (s <<= 7), + (s |= c & 127), + (c & 128) === 0 && (i.push(s), (s = 0)); + c & 128 && i.push(s); + let l = (i[0] / 40) | 0, + d = i[0] % 40; + if ((n ? (a = i) : (a = [l, d].concat(i.slice(1))), t)) { + let m = t[a.join(" ")]; + m === void 0 && (m = t[a.join(".")]), m !== void 0 && (a = m); + } + return a; + }; + Du.prototype._decodeTime = function (e, t) { + let n = e.raw().toString(), + a, + i, + s, + c, + l, + d; + if (t === "gentime") + (a = n.slice(0, 4) | 0), + (i = n.slice(4, 6) | 0), + (s = n.slice(6, 8) | 0), + (c = n.slice(8, 10) | 0), + (l = n.slice(10, 12) | 0), + (d = n.slice(12, 14) | 0); + else if (t === "utctime") + (a = n.slice(0, 2) | 0), + (i = n.slice(2, 4) | 0), + (s = n.slice(4, 6) | 0), + (c = n.slice(6, 8) | 0), + (l = n.slice(8, 10) | 0), + (d = n.slice(10, 12) | 0), + a < 70 ? (a = 2e3 + a) : (a = 1900 + a); + else return e.error("Decoding " + t + " time is not supported yet"); + return Date.UTC(a, i - 1, s, c, l, d, 0); + }; + Du.prototype._decodeNull = function () { + return null; + }; + Du.prototype._decodeBool = function (e) { + let t = e.readUInt8(); + return e.isError(t) ? t : t !== 0; + }; + Du.prototype._decodeInt = function (e, t) { + let n = e.raw(), + a = new h2t(n); + return t && (a = t[a.toString(10)] || a), a; + }; + Du.prototype._use = function (e, t) { + return typeof e == "function" && (e = e(t)), e._getDecoder("der").tree; + }; + function IF(r, e) { + let t = r.readUInt8(e); + if (r.isError(t)) return t; + let n = Cde.tagClass[t >> 6], + a = (t & 32) === 0; + if ((t & 31) === 31) { + let s = t; + for (t = 0; (s & 128) === 128; ) { + if (((s = r.readUInt8(e)), r.isError(s))) return s; + (t <<= 7), (t |= s & 127); + } + } else t &= 31; + let i = Cde.tag[t]; + return { cls: n, primitive: a, tag: t, tagStr: i }; + } + function kde(r, e, t) { + let n = r.readUInt8(t); + if (r.isError(n)) return n; + if (!e && n === 128) return null; + if ((n & 128) === 0) return n; + let a = n & 127; + if (a > 4) return r.error("length octect is too long"); + n = 0; + for (let i = 0; i < a; i++) { + n <<= 8; + let s = r.readUInt8(t); + if (r.isError(s)) return s; + n |= s; + } + return n; + } + }); + var Pde = N((eGr, Mde) => { + "use strict"; + _(); + x(); + var f2t = qr(), + m2t = zI().Buffer, + kF = AF(); + function SF(r) { + kF.call(this, r), (this.enc = "pem"); + } + f2t(SF, kF); + Mde.exports = SF; + SF.prototype.decode = function (e, t) { + let n = e.toString().split(/[\r\n]+/g), + a = t.label.toUpperCase(), + i = /^-----(BEGIN|END) ([^-]+)-----$/, + s = -1, + c = -1; + for (let m = 0; m < n.length; m++) { + let w = n[m].match(i); + if (w !== null && w[2] === a) + if (s === -1) { + if (w[1] !== "BEGIN") break; + s = m; + } else { + if (w[1] !== "END") break; + c = m; + break; + } + } + if (s === -1 || c === -1) + throw new Error("PEM section not found for: " + a); + let l = n.slice(s + 1, c).join(""); + l.replace(/[^a-z0-9+/=]+/gi, ""); + let d = m2t.from(l, "base64"); + return kF.prototype.decode.call(this, d, t); + }; + }); + var MF = N((Bde) => { + "use strict"; + _(); + x(); + var Rde = Bde; + Rde.der = AF(); + Rde.pem = Pde(); + }); + var Ode = N((Nde) => { + "use strict"; + _(); + x(); + var y2t = CF(), + g2t = MF(), + b2t = qr(), + v2t = Nde; + v2t.define = function (e, t) { + return new ev(e, t); + }; + function ev(r, e) { + (this.name = r), + (this.body = e), + (this.decoders = {}), + (this.encoders = {}); + } + ev.prototype._createNamed = function (e) { + let t = this.name; + function n(a) { + this._initNamed(a, t); + } + return ( + b2t(n, e), + (n.prototype._initNamed = function (i, s) { + e.call(this, i, s); + }), + new n(this) + ); + }; + ev.prototype._getDecoder = function (e) { + return ( + (e = e || "der"), + this.decoders.hasOwnProperty(e) || + (this.decoders[e] = this._createNamed(g2t[e])), + this.decoders[e] + ); + }; + ev.prototype.decode = function (e, t, n) { + return this._getDecoder(t).decode(e, n); + }; + ev.prototype._getEncoder = function (e) { + return ( + (e = e || "der"), + this.encoders.hasOwnProperty(e) || + (this.encoders[e] = this._createNamed(y2t[e])), + this.encoders[e] + ); + }; + ev.prototype.encode = function (e, t, n) { + return this._getEncoder(t).encode(e, n); + }; + }); + var Dde = N((Lde) => { + "use strict"; + _(); + x(); + var YI = Lde; + YI.Reporter = jI().Reporter; + YI.DecoderBuffer = X1().DecoderBuffer; + YI.EncoderBuffer = X1().EncoderBuffer; + YI.Node = VI(); + }); + var Wde = N((Fde) => { + "use strict"; + _(); + x(); + var qde = Fde; + qde._reverse = function (e) { + let t = {}; + return ( + Object.keys(e).forEach(function (n) { + (n | 0) == n && (n = n | 0); + let a = e[n]; + t[a] = n; + }), + t + ); + }; + qde.der = GI(); + }); + var PF = N((Ude) => { + "use strict"; + _(); + x(); + var tv = Ude; + tv.bignum = vF(); + tv.define = Ode().define; + tv.base = Dde(); + tv.constants = Wde(); + tv.decoders = MF(); + tv.encoders = CF(); + }); + var Kde = N((bGr, jde) => { + "use strict"; + _(); + x(); + var kd = PF(), + Hde = kd.define("Time", function () { + this.choice({ utcTime: this.utctime(), generalTime: this.gentime() }); + }), + w2t = kd.define("AttributeTypeValue", function () { + this.seq().obj(this.key("type").objid(), this.key("value").any()); + }), + RF = kd.define("AlgorithmIdentifier", function () { + this.seq().obj( + this.key("algorithm").objid(), + this.key("parameters").optional(), + this.key("curve").objid().optional() + ); + }), + _2t = kd.define("SubjectPublicKeyInfo", function () { + this.seq().obj( + this.key("algorithm").use(RF), + this.key("subjectPublicKey").bitstr() + ); + }), + x2t = kd.define("RelativeDistinguishedName", function () { + this.setof(w2t); + }), + T2t = kd.define("RDNSequence", function () { + this.seqof(x2t); + }), + zde = kd.define("Name", function () { + this.choice({ rdnSequence: this.use(T2t) }); + }), + E2t = kd.define("Validity", function () { + this.seq().obj( + this.key("notBefore").use(Hde), + this.key("notAfter").use(Hde) + ); + }), + C2t = kd.define("Extension", function () { + this.seq().obj( + this.key("extnID").objid(), + this.key("critical").bool().def(!1), + this.key("extnValue").octstr() + ); + }), + I2t = kd.define("TBSCertificate", function () { + this.seq().obj( + this.key("version").explicit(0).int().optional(), + this.key("serialNumber").int(), + this.key("signature").use(RF), + this.key("issuer").use(zde), + this.key("validity").use(E2t), + this.key("subject").use(zde), + this.key("subjectPublicKeyInfo").use(_2t), + this.key("issuerUniqueID").implicit(1).bitstr().optional(), + this.key("subjectUniqueID").implicit(2).bitstr().optional(), + this.key("extensions").explicit(3).seqof(C2t).optional() + ); + }), + A2t = kd.define("X509Certificate", function () { + this.seq().obj( + this.key("tbsCertificate").use(I2t), + this.key("signatureAlgorithm").use(RF), + this.key("signatureValue").bitstr() + ); + }); + jde.exports = A2t; + }); + var Gde = N((Md) => { + "use strict"; + _(); + x(); + var Sd = PF(); + Md.certificate = Kde(); + var k2t = Sd.define("RSAPrivateKey", function () { + this.seq().obj( + this.key("version").int(), + this.key("modulus").int(), + this.key("publicExponent").int(), + this.key("privateExponent").int(), + this.key("prime1").int(), + this.key("prime2").int(), + this.key("exponent1").int(), + this.key("exponent2").int(), + this.key("coefficient").int() + ); + }); + Md.RSAPrivateKey = k2t; + var S2t = Sd.define("RSAPublicKey", function () { + this.seq().obj( + this.key("modulus").int(), + this.key("publicExponent").int() + ); + }); + Md.RSAPublicKey = S2t; + var M2t = Sd.define("SubjectPublicKeyInfo", function () { + this.seq().obj( + this.key("algorithm").use(Vde), + this.key("subjectPublicKey").bitstr() + ); + }); + Md.PublicKey = M2t; + var Vde = Sd.define("AlgorithmIdentifier", function () { + this.seq().obj( + this.key("algorithm").objid(), + this.key("none").null_().optional(), + this.key("curve").objid().optional(), + this.key("params") + .seq() + .obj(this.key("p").int(), this.key("q").int(), this.key("g").int()) + .optional() + ); + }), + P2t = Sd.define("PrivateKeyInfo", function () { + this.seq().obj( + this.key("version").int(), + this.key("algorithm").use(Vde), + this.key("subjectPrivateKey").octstr() + ); + }); + Md.PrivateKey = P2t; + var R2t = Sd.define("EncryptedPrivateKeyInfo", function () { + this.seq().obj( + this.key("algorithm") + .seq() + .obj( + this.key("id").objid(), + this.key("decrypt") + .seq() + .obj( + this.key("kde") + .seq() + .obj( + this.key("id").objid(), + this.key("kdeparams") + .seq() + .obj(this.key("salt").octstr(), this.key("iters").int()) + ), + this.key("cipher") + .seq() + .obj(this.key("algo").objid(), this.key("iv").octstr()) + ) + ), + this.key("subjectPrivateKey").octstr() + ); + }); + Md.EncryptedPrivateKey = R2t; + var B2t = Sd.define("DSAPrivateKey", function () { + this.seq().obj( + this.key("version").int(), + this.key("p").int(), + this.key("q").int(), + this.key("g").int(), + this.key("pub_key").int(), + this.key("priv_key").int() + ); + }); + Md.DSAPrivateKey = B2t; + Md.DSAparam = Sd.define("DSAparam", function () { + this.int(); + }); + var N2t = Sd.define("ECPrivateKey", function () { + this.seq().obj( + this.key("version").int(), + this.key("privateKey").octstr(), + this.key("parameters").optional().explicit(0).use(O2t), + this.key("publicKey").optional().explicit(1).bitstr() + ); + }); + Md.ECPrivateKey = N2t; + var O2t = Sd.define("ECParameters", function () { + this.choice({ namedCurve: this.objid() }); + }); + Md.signature = Sd.define("signature", function () { + this.seq().obj(this.key("r").int(), this.key("s").int()); + }); + }); + var Yde = N((EGr, L2t) => { + L2t.exports = { + "2.16.840.1.101.3.4.1.1": "aes-128-ecb", + "2.16.840.1.101.3.4.1.2": "aes-128-cbc", + "2.16.840.1.101.3.4.1.3": "aes-128-ofb", + "2.16.840.1.101.3.4.1.4": "aes-128-cfb", + "2.16.840.1.101.3.4.1.21": "aes-192-ecb", + "2.16.840.1.101.3.4.1.22": "aes-192-cbc", + "2.16.840.1.101.3.4.1.23": "aes-192-ofb", + "2.16.840.1.101.3.4.1.24": "aes-192-cfb", + "2.16.840.1.101.3.4.1.41": "aes-256-ecb", + "2.16.840.1.101.3.4.1.42": "aes-256-cbc", + "2.16.840.1.101.3.4.1.43": "aes-256-ofb", + "2.16.840.1.101.3.4.1.44": "aes-256-cfb", + }; + }); + var Jde = N((CGr, $de) => { + _(); + x(); + var D2t = + /Proc-Type: 4,ENCRYPTED[\n\r]+DEK-Info: AES-((?:128)|(?:192)|(?:256))-CBC,([0-9A-H]+)[\n\r]+([0-9A-z\n\r+/=]+)[\n\r]+/m, + q2t = /^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----/m, + F2t = + /^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z\n\r+/=]+)-----END \1-----$/m, + W2t = TT(), + U2t = DI(), + $I = zr().Buffer; + $de.exports = function (r, e) { + var t = r.toString(), + n = t.match(D2t), + a; + if (n) { + var s = "aes" + n[1], + c = $I.from(n[2], "hex"), + l = $I.from(n[3].replace(/[\r\n]/g, ""), "base64"), + d = W2t(e, c.slice(0, 8), parseInt(n[1], 10)).key, + m = [], + w = U2t.createDecipheriv(s, d, c); + m.push(w.update(l)), m.push(w.final()), (a = $I.concat(m)); + } else { + var i = t.match(F2t); + a = $I.from(i[2].replace(/[\r\n]/g, ""), "base64"); + } + var C = t.match(q2t)[1]; + return { tag: C, data: a }; + }; + }); + var IT = N((kGr, Qde) => { + _(); + x(); + var Zc = Gde(), + H2t = Yde(), + z2t = Jde(), + j2t = DI(), + K2t = Hq(), + BF = zr().Buffer; + Qde.exports = Zde; + function Zde(r) { + var e; + typeof r == "object" && + !BF.isBuffer(r) && + ((e = r.passphrase), (r = r.key)), + typeof r == "string" && (r = BF.from(r)); + var t = z2t(r, e), + n = t.tag, + a = t.data, + i, + s; + switch (n) { + case "CERTIFICATE": + s = Zc.certificate.decode(a, "der").tbsCertificate + .subjectPublicKeyInfo; + case "PUBLIC KEY": + switch ( + (s || (s = Zc.PublicKey.decode(a, "der")), + (i = s.algorithm.algorithm.join(".")), + i) + ) { + case "1.2.840.113549.1.1.1": + return Zc.RSAPublicKey.decode(s.subjectPublicKey.data, "der"); + case "1.2.840.10045.2.1": + return ( + (s.subjectPrivateKey = s.subjectPublicKey), + { type: "ec", data: s } + ); + case "1.2.840.10040.4.1": + return ( + (s.algorithm.params.pub_key = Zc.DSAparam.decode( + s.subjectPublicKey.data, + "der" + )), + { type: "dsa", data: s.algorithm.params } + ); + default: + throw new Error("unknown key id " + i); + } + case "ENCRYPTED PRIVATE KEY": + (a = Zc.EncryptedPrivateKey.decode(a, "der")), (a = V2t(a, e)); + case "PRIVATE KEY": + switch ( + ((s = Zc.PrivateKey.decode(a, "der")), + (i = s.algorithm.algorithm.join(".")), + i) + ) { + case "1.2.840.113549.1.1.1": + return Zc.RSAPrivateKey.decode(s.subjectPrivateKey, "der"); + case "1.2.840.10045.2.1": + return { + curve: s.algorithm.curve, + privateKey: Zc.ECPrivateKey.decode(s.subjectPrivateKey, "der") + .privateKey, + }; + case "1.2.840.10040.4.1": + return ( + (s.algorithm.params.priv_key = Zc.DSAparam.decode( + s.subjectPrivateKey, + "der" + )), + { type: "dsa", params: s.algorithm.params } + ); + default: + throw new Error("unknown key id " + i); + } + case "RSA PUBLIC KEY": + return Zc.RSAPublicKey.decode(a, "der"); + case "RSA PRIVATE KEY": + return Zc.RSAPrivateKey.decode(a, "der"); + case "DSA PRIVATE KEY": + return { type: "dsa", params: Zc.DSAPrivateKey.decode(a, "der") }; + case "EC PRIVATE KEY": + return ( + (a = Zc.ECPrivateKey.decode(a, "der")), + { curve: a.parameters.value, privateKey: a.privateKey } + ); + default: + throw new Error("unknown key type " + n); + } + } + Zde.signature = Zc.signature; + function V2t(r, e) { + var t = r.algorithm.decrypt.kde.kdeparams.salt, + n = parseInt(r.algorithm.decrypt.kde.kdeparams.iters.toString(), 10), + a = H2t[r.algorithm.decrypt.cipher.algo.join(".")], + i = r.algorithm.decrypt.cipher.iv, + s = r.subjectPrivateKey, + c = parseInt(a.split("-")[1], 10) / 8, + l = K2t.pbkdf2Sync(e, t, n, c, "sha1"), + d = j2t.createDecipheriv(a, l, i), + m = []; + return m.push(d.update(s)), m.push(d.final()), BF.concat(m); + } + }); + var NF = N((PGr, G2t) => { + G2t.exports = { + "1.3.132.0.10": "secp256k1", + "1.3.132.0.33": "p224", + "1.2.840.10045.3.1.1": "p192", + "1.2.840.10045.3.1.7": "p256", + "1.3.132.0.34": "p384", + "1.3.132.0.35": "p521", + }; + }); + var tpe = N((RGr, ZI) => { + _(); + x(); + var vo = zr().Buffer, + $y = Rq(), + Y2t = UI(), + $2t = AT().ec, + JI = Gr(), + J2t = IT(), + Z2t = NF(); + function Q2t(r, e, t, n, a) { + var i = J2t(e); + if (i.curve) { + if (n !== "ecdsa" && n !== "ecdsa/rsa") + throw new Error("wrong private key type"); + return X2t(r, i); + } else if (i.type === "dsa") { + if (n !== "dsa") throw new Error("wrong private key type"); + return e_t(r, i, t); + } else if (n !== "rsa" && n !== "ecdsa/rsa") + throw new Error("wrong private key type"); + r = vo.concat([a, r]); + for ( + var s = i.modulus.byteLength(), c = [0, 1]; + r.length + c.length + 1 < s; + + ) + c.push(255); + c.push(0); + for (var l = -1; ++l < r.length; ) c.push(r[l]); + var d = Y2t(c, i); + return d; + } + function X2t(r, e) { + var t = Z2t[e.curve.join(".")]; + if (!t) throw new Error("unknown curve " + e.curve.join(".")); + var n = new $2t(t), + a = n.keyFromPrivate(e.privateKey), + i = a.sign(r); + return vo.from(i.toDER()); + } + function e_t(r, e, t) { + for ( + var n = e.params.priv_key, + a = e.params.p, + i = e.params.q, + s = e.params.g, + c = new JI(0), + l, + d = OF(r, i).mod(i), + m = !1, + w = Xde(n, i, r, t); + m === !1; + + ) + (l = epe(i, w, t)), + (c = n_t(s, l, a, i)), + (m = l + .invm(i) + .imul(d.add(n.mul(c))) + .mod(i)), + m.cmpn(0) === 0 && ((m = !1), (c = new JI(0))); + return t_t(c, m); + } + function t_t(r, e) { + (r = r.toArray()), + (e = e.toArray()), + r[0] & 128 && (r = [0].concat(r)), + e[0] & 128 && (e = [0].concat(e)); + var t = r.length + e.length + 4, + n = [48, t, 2, r.length]; + return (n = n.concat(r, [2, e.length], e)), vo.from(n); + } + function Xde(r, e, t, n) { + if (((r = vo.from(r.toArray())), r.length < e.byteLength())) { + var a = vo.alloc(e.byteLength() - r.length); + r = vo.concat([a, r]); + } + var i = t.length, + s = r_t(t, e), + c = vo.alloc(i); + c.fill(1); + var l = vo.alloc(i); + return ( + (l = $y(n, l) + .update(c) + .update(vo.from([0])) + .update(r) + .update(s) + .digest()), + (c = $y(n, l).update(c).digest()), + (l = $y(n, l) + .update(c) + .update(vo.from([1])) + .update(r) + .update(s) + .digest()), + (c = $y(n, l).update(c).digest()), + { k: l, v: c } + ); + } + function OF(r, e) { + var t = new JI(r), + n = (r.length << 3) - e.bitLength(); + return n > 0 && t.ishrn(n), t; + } + function r_t(r, e) { + (r = OF(r, e)), (r = r.mod(e)); + var t = vo.from(r.toArray()); + if (t.length < e.byteLength()) { + var n = vo.alloc(e.byteLength() - t.length); + t = vo.concat([n, t]); + } + return t; + } + function epe(r, e, t) { + var n, a; + do { + for (n = vo.alloc(0); n.length * 8 < r.bitLength(); ) + (e.v = $y(t, e.k).update(e.v).digest()), (n = vo.concat([n, e.v])); + (a = OF(n, r)), + (e.k = $y(t, e.k) + .update(e.v) + .update(vo.from([0])) + .digest()), + (e.v = $y(t, e.k).update(e.v).digest()); + } while (a.cmp(r) !== -1); + return a; + } + function n_t(r, e, t, n) { + return r.toRed(JI.mont(t)).redPow(e).fromRed().mod(n); + } + ZI.exports = Q2t; + ZI.exports.getKey = Xde; + ZI.exports.makeKey = epe; + }); + var ipe = N((OGr, ape) => { + _(); + x(); + var LF = zr().Buffer, + kT = Gr(), + a_t = AT().ec, + npe = IT(), + i_t = NF(); + function s_t(r, e, t, n, a) { + var i = npe(t); + if (i.type === "ec") { + if (n !== "ecdsa" && n !== "ecdsa/rsa") + throw new Error("wrong public key type"); + return o_t(r, e, i); + } else if (i.type === "dsa") { + if (n !== "dsa") throw new Error("wrong public key type"); + return c_t(r, e, i); + } else if (n !== "rsa" && n !== "ecdsa/rsa") + throw new Error("wrong public key type"); + e = LF.concat([a, e]); + for ( + var s = i.modulus.byteLength(), c = [1], l = 0; + e.length + c.length + 2 < s; + + ) + c.push(255), l++; + c.push(0); + for (var d = -1; ++d < e.length; ) c.push(e[d]); + c = LF.from(c); + var m = kT.mont(i.modulus); + (r = new kT(r).toRed(m)), + (r = r.redPow(new kT(i.publicExponent))), + (r = LF.from(r.fromRed().toArray())); + var w = l < 8 ? 1 : 0; + for ( + s = Math.min(r.length, c.length), + r.length !== c.length && (w = 1), + d = -1; + ++d < s; + + ) + w |= r[d] ^ c[d]; + return w === 0; + } + function o_t(r, e, t) { + var n = i_t[t.data.algorithm.curve.join(".")]; + if (!n) + throw new Error("unknown curve " + t.data.algorithm.curve.join(".")); + var a = new a_t(n), + i = t.data.subjectPrivateKey.data; + return a.verify(e, r, i); + } + function c_t(r, e, t) { + var n = t.data.p, + a = t.data.q, + i = t.data.g, + s = t.data.pub_key, + c = npe.signature.decode(r, "der"), + l = c.s, + d = c.r; + rpe(l, a), rpe(d, a); + var m = kT.mont(n), + w = l.invm(a), + C = i + .toRed(m) + .redPow(new kT(e).mul(w).mod(a)) + .fromRed() + .mul(s.toRed(m).redPow(d.mul(w).mod(a)).fromRed()) + .mod(n) + .mod(a); + return C.cmp(d) === 0; + } + function rpe(r, e) { + if (r.cmpn(0) <= 0) throw new Error("invalid sig"); + if (r.cmp(e) >= e) throw new Error("invalid sig"); + } + ape.exports = s_t; + }); + var dpe = N((qGr, lpe) => { + _(); + x(); + var QI = zr().Buffer, + cpe = W1(), + XI = aT(), + upe = qr(), + u_t = tpe(), + l_t = ipe(), + Jy = Bq(); + Object.keys(Jy).forEach(function (r) { + (Jy[r].id = QI.from(Jy[r].id, "hex")), (Jy[r.toLowerCase()] = Jy[r]); + }); + function ST(r) { + XI.Writable.call(this); + var e = Jy[r]; + if (!e) throw new Error("Unknown message digest"); + (this._hashType = e.hash), + (this._hash = cpe(e.hash)), + (this._tag = e.id), + (this._signType = e.sign); + } + upe(ST, XI.Writable); + ST.prototype._write = function (e, t, n) { + this._hash.update(e), n(); + }; + ST.prototype.update = function (e, t) { + return ( + typeof e == "string" && (e = QI.from(e, t)), this._hash.update(e), this + ); + }; + ST.prototype.sign = function (e, t) { + this.end(); + var n = this._hash.digest(), + a = u_t(n, e, this._hashType, this._signType, this._tag); + return t ? a.toString(t) : a; + }; + function MT(r) { + XI.Writable.call(this); + var e = Jy[r]; + if (!e) throw new Error("Unknown message digest"); + (this._hash = cpe(e.hash)), (this._tag = e.id), (this._signType = e.sign); + } + upe(MT, XI.Writable); + MT.prototype._write = function (e, t, n) { + this._hash.update(e), n(); + }; + MT.prototype.update = function (e, t) { + return ( + typeof e == "string" && (e = QI.from(e, t)), this._hash.update(e), this + ); + }; + MT.prototype.verify = function (e, t, n) { + typeof t == "string" && (t = QI.from(t, n)), this.end(); + var a = this._hash.digest(); + return l_t(t, a, e, this._signType, this._tag); + }; + function spe(r) { + return new ST(r); + } + function ope(r) { + return new MT(r); + } + lpe.exports = { + Sign: spe, + Verify: ope, + createSign: spe, + createVerify: ope, + }; + }); + var hpe = N((ppe, DF) => { + _(); + x(); + (function (r, e) { + "use strict"; + function t(g, o) { + if (!g) throw new Error(o || "Assertion failed"); + } + function n(g, o) { + g.super_ = o; + var p = function () {}; + (p.prototype = o.prototype), + (g.prototype = new p()), + (g.prototype.constructor = g); + } + function a(g, o, p) { + if (a.isBN(g)) return g; + (this.negative = 0), + (this.words = null), + (this.length = 0), + (this.red = null), + g !== null && + ((o === "le" || o === "be") && ((p = o), (o = 10)), + this._init(g || 0, o || 10, p || "be")); + } + typeof r == "object" ? (r.exports = a) : (e.BN = a), + (a.BN = a), + (a.wordSize = 26); + var i; + try { + typeof window < "u" && typeof window.Buffer < "u" + ? (i = window.Buffer) + : (i = Hi().Buffer); + } catch {} + (a.isBN = function (o) { + return o instanceof a + ? !0 + : o !== null && + typeof o == "object" && + o.constructor.wordSize === a.wordSize && + Array.isArray(o.words); + }), + (a.max = function (o, p) { + return o.cmp(p) > 0 ? o : p; + }), + (a.min = function (o, p) { + return o.cmp(p) < 0 ? o : p; + }), + (a.prototype._init = function (o, p, y) { + if (typeof o == "number") return this._initNumber(o, p, y); + if (typeof o == "object") return this._initArray(o, p, y); + p === "hex" && (p = 16), + t(p === (p | 0) && p >= 2 && p <= 36), + (o = o.toString().replace(/\s+/g, "")); + var h = 0; + o[0] === "-" && (h++, (this.negative = 1)), + h < o.length && + (p === 16 + ? this._parseHex(o, h, y) + : (this._parseBase(o, p, h), + y === "le" && this._initArray(this.toArray(), p, y))); + }), + (a.prototype._initNumber = function (o, p, y) { + o < 0 && ((this.negative = 1), (o = -o)), + o < 67108864 + ? ((this.words = [o & 67108863]), (this.length = 1)) + : o < 4503599627370496 + ? ((this.words = [o & 67108863, (o / 67108864) & 67108863]), + (this.length = 2)) + : (t(o < 9007199254740992), + (this.words = [o & 67108863, (o / 67108864) & 67108863, 1]), + (this.length = 3)), + y === "le" && this._initArray(this.toArray(), p, y); + }), + (a.prototype._initArray = function (o, p, y) { + if ((t(typeof o.length == "number"), o.length <= 0)) + return (this.words = [0]), (this.length = 1), this; + (this.length = Math.ceil(o.length / 3)), + (this.words = new Array(this.length)); + for (var h = 0; h < this.length; h++) this.words[h] = 0; + var b, + T, + E = 0; + if (y === "be") + for (h = o.length - 1, b = 0; h >= 0; h -= 3) + (T = o[h] | (o[h - 1] << 8) | (o[h - 2] << 16)), + (this.words[b] |= (T << E) & 67108863), + (this.words[b + 1] = (T >>> (26 - E)) & 67108863), + (E += 24), + E >= 26 && ((E -= 26), b++); + else if (y === "le") + for (h = 0, b = 0; h < o.length; h += 3) + (T = o[h] | (o[h + 1] << 8) | (o[h + 2] << 16)), + (this.words[b] |= (T << E) & 67108863), + (this.words[b + 1] = (T >>> (26 - E)) & 67108863), + (E += 24), + E >= 26 && ((E -= 26), b++); + return this.strip(); + }); + function s(g, o) { + var p = g.charCodeAt(o); + return p >= 65 && p <= 70 + ? p - 55 + : p >= 97 && p <= 102 + ? p - 87 + : (p - 48) & 15; + } + function c(g, o, p) { + var y = s(g, p); + return p - 1 >= o && (y |= s(g, p - 1) << 4), y; + } + a.prototype._parseHex = function (o, p, y) { + (this.length = Math.ceil((o.length - p) / 6)), + (this.words = new Array(this.length)); + for (var h = 0; h < this.length; h++) this.words[h] = 0; + var b = 0, + T = 0, + E; + if (y === "be") + for (h = o.length - 1; h >= p; h -= 2) + (E = c(o, p, h) << b), + (this.words[T] |= E & 67108863), + b >= 18 + ? ((b -= 18), (T += 1), (this.words[T] |= E >>> 26)) + : (b += 8); + else { + var f = o.length - p; + for (h = f % 2 === 0 ? p + 1 : p; h < o.length; h += 2) + (E = c(o, p, h) << b), + (this.words[T] |= E & 67108863), + b >= 18 + ? ((b -= 18), (T += 1), (this.words[T] |= E >>> 26)) + : (b += 8); + } + this.strip(); + }; + function l(g, o, p, y) { + for (var h = 0, b = Math.min(g.length, p), T = o; T < b; T++) { + var E = g.charCodeAt(T) - 48; + (h *= y), + E >= 49 + ? (h += E - 49 + 10) + : E >= 17 + ? (h += E - 17 + 10) + : (h += E); + } + return h; + } + (a.prototype._parseBase = function (o, p, y) { + (this.words = [0]), (this.length = 1); + for (var h = 0, b = 1; b <= 67108863; b *= p) h++; + h--, (b = (b / p) | 0); + for ( + var T = o.length - y, + E = T % h, + f = Math.min(T, T - E) + y, + u = 0, + v = y; + v < f; + v += h + ) + (u = l(o, v, v + h, p)), + this.imuln(b), + this.words[0] + u < 67108864 + ? (this.words[0] += u) + : this._iaddn(u); + if (E !== 0) { + var R = 1; + for (u = l(o, v, o.length, p), v = 0; v < E; v++) R *= p; + this.imuln(R), + this.words[0] + u < 67108864 + ? (this.words[0] += u) + : this._iaddn(u); + } + this.strip(); + }), + (a.prototype.copy = function (o) { + o.words = new Array(this.length); + for (var p = 0; p < this.length; p++) o.words[p] = this.words[p]; + (o.length = this.length), + (o.negative = this.negative), + (o.red = this.red); + }), + (a.prototype.clone = function () { + var o = new a(null); + return this.copy(o), o; + }), + (a.prototype._expand = function (o) { + for (; this.length < o; ) this.words[this.length++] = 0; + return this; + }), + (a.prototype.strip = function () { + for (; this.length > 1 && this.words[this.length - 1] === 0; ) + this.length--; + return this._normSign(); + }), + (a.prototype._normSign = function () { + return ( + this.length === 1 && this.words[0] === 0 && (this.negative = 0), + this + ); + }), + (a.prototype.inspect = function () { + return (this.red ? ""; + }); + var d = [ + "", + "0", + "00", + "000", + "0000", + "00000", + "000000", + "0000000", + "00000000", + "000000000", + "0000000000", + "00000000000", + "000000000000", + "0000000000000", + "00000000000000", + "000000000000000", + "0000000000000000", + "00000000000000000", + "000000000000000000", + "0000000000000000000", + "00000000000000000000", + "000000000000000000000", + "0000000000000000000000", + "00000000000000000000000", + "000000000000000000000000", + "0000000000000000000000000", + ], + m = [ + 0, 0, 25, 16, 12, 11, 10, 9, 8, 8, 7, 7, 7, 7, 6, 6, 6, 6, 6, 6, 6, 5, + 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, + ], + w = [ + 0, 0, 33554432, 43046721, 16777216, 48828125, 60466176, 40353607, + 16777216, 43046721, 1e7, 19487171, 35831808, 62748517, 7529536, + 11390625, 16777216, 24137569, 34012224, 47045881, 64e6, 4084101, + 5153632, 6436343, 7962624, 9765625, 11881376, 14348907, 17210368, + 20511149, 243e5, 28629151, 33554432, 39135393, 45435424, 52521875, + 60466176, + ]; + (a.prototype.toString = function (o, p) { + (o = o || 10), (p = p | 0 || 1); + var y; + if (o === 16 || o === "hex") { + y = ""; + for (var h = 0, b = 0, T = 0; T < this.length; T++) { + var E = this.words[T], + f = (((E << h) | b) & 16777215).toString(16); + (b = (E >>> (24 - h)) & 16777215), + b !== 0 || T !== this.length - 1 + ? (y = d[6 - f.length] + f + y) + : (y = f + y), + (h += 2), + h >= 26 && ((h -= 26), T--); + } + for (b !== 0 && (y = b.toString(16) + y); y.length % p !== 0; ) + y = "0" + y; + return this.negative !== 0 && (y = "-" + y), y; + } + if (o === (o | 0) && o >= 2 && o <= 36) { + var u = m[o], + v = w[o]; + y = ""; + var R = this.clone(); + for (R.negative = 0; !R.isZero(); ) { + var A = R.modn(v).toString(o); + (R = R.idivn(v)), + R.isZero() ? (y = A + y) : (y = d[u - A.length] + A + y); + } + for (this.isZero() && (y = "0" + y); y.length % p !== 0; ) + y = "0" + y; + return this.negative !== 0 && (y = "-" + y), y; + } + t(!1, "Base should be between 2 and 36"); + }), + (a.prototype.toNumber = function () { + var o = this.words[0]; + return ( + this.length === 2 + ? (o += this.words[1] * 67108864) + : this.length === 3 && this.words[2] === 1 + ? (o += 4503599627370496 + this.words[1] * 67108864) + : this.length > 2 && + t(!1, "Number can only safely store up to 53 bits"), + this.negative !== 0 ? -o : o + ); + }), + (a.prototype.toJSON = function () { + return this.toString(16); + }), + (a.prototype.toBuffer = function (o, p) { + return t(typeof i < "u"), this.toArrayLike(i, o, p); + }), + (a.prototype.toArray = function (o, p) { + return this.toArrayLike(Array, o, p); + }), + (a.prototype.toArrayLike = function (o, p, y) { + var h = this.byteLength(), + b = y || Math.max(1, h); + t(h <= b, "byte array longer than desired length"), + t(b > 0, "Requested array length <= 0"), + this.strip(); + var T = p === "le", + E = new o(b), + f, + u, + v = this.clone(); + if (T) { + for (u = 0; !v.isZero(); u++) + (f = v.andln(255)), v.iushrn(8), (E[u] = f); + for (; u < b; u++) E[u] = 0; + } else { + for (u = 0; u < b - h; u++) E[u] = 0; + for (u = 0; !v.isZero(); u++) + (f = v.andln(255)), v.iushrn(8), (E[b - u - 1] = f); + } + return E; + }), + Math.clz32 + ? (a.prototype._countBits = function (o) { + return 32 - Math.clz32(o); + }) + : (a.prototype._countBits = function (o) { + var p = o, + y = 0; + return ( + p >= 4096 && ((y += 13), (p >>>= 13)), + p >= 64 && ((y += 7), (p >>>= 7)), + p >= 8 && ((y += 4), (p >>>= 4)), + p >= 2 && ((y += 2), (p >>>= 2)), + y + p + ); + }), + (a.prototype._zeroBits = function (o) { + if (o === 0) return 26; + var p = o, + y = 0; + return ( + (p & 8191) === 0 && ((y += 13), (p >>>= 13)), + (p & 127) === 0 && ((y += 7), (p >>>= 7)), + (p & 15) === 0 && ((y += 4), (p >>>= 4)), + (p & 3) === 0 && ((y += 2), (p >>>= 2)), + (p & 1) === 0 && y++, + y + ); + }), + (a.prototype.bitLength = function () { + var o = this.words[this.length - 1], + p = this._countBits(o); + return (this.length - 1) * 26 + p; + }); + function C(g) { + for (var o = new Array(g.bitLength()), p = 0; p < o.length; p++) { + var y = (p / 26) | 0, + h = p % 26; + o[p] = (g.words[y] & (1 << h)) >>> h; + } + return o; + } + (a.prototype.zeroBits = function () { + if (this.isZero()) return 0; + for (var o = 0, p = 0; p < this.length; p++) { + var y = this._zeroBits(this.words[p]); + if (((o += y), y !== 26)) break; + } + return o; + }), + (a.prototype.byteLength = function () { + return Math.ceil(this.bitLength() / 8); + }), + (a.prototype.toTwos = function (o) { + return this.negative !== 0 + ? this.abs().inotn(o).iaddn(1) + : this.clone(); + }), + (a.prototype.fromTwos = function (o) { + return this.testn(o - 1) + ? this.notn(o).iaddn(1).ineg() + : this.clone(); + }), + (a.prototype.isNeg = function () { + return this.negative !== 0; + }), + (a.prototype.neg = function () { + return this.clone().ineg(); + }), + (a.prototype.ineg = function () { + return this.isZero() || (this.negative ^= 1), this; + }), + (a.prototype.iuor = function (o) { + for (; this.length < o.length; ) this.words[this.length++] = 0; + for (var p = 0; p < o.length; p++) + this.words[p] = this.words[p] | o.words[p]; + return this.strip(); + }), + (a.prototype.ior = function (o) { + return t((this.negative | o.negative) === 0), this.iuor(o); + }), + (a.prototype.or = function (o) { + return this.length > o.length + ? this.clone().ior(o) + : o.clone().ior(this); + }), + (a.prototype.uor = function (o) { + return this.length > o.length + ? this.clone().iuor(o) + : o.clone().iuor(this); + }), + (a.prototype.iuand = function (o) { + var p; + this.length > o.length ? (p = o) : (p = this); + for (var y = 0; y < p.length; y++) + this.words[y] = this.words[y] & o.words[y]; + return (this.length = p.length), this.strip(); + }), + (a.prototype.iand = function (o) { + return t((this.negative | o.negative) === 0), this.iuand(o); + }), + (a.prototype.and = function (o) { + return this.length > o.length + ? this.clone().iand(o) + : o.clone().iand(this); + }), + (a.prototype.uand = function (o) { + return this.length > o.length + ? this.clone().iuand(o) + : o.clone().iuand(this); + }), + (a.prototype.iuxor = function (o) { + var p, y; + this.length > o.length + ? ((p = this), (y = o)) + : ((p = o), (y = this)); + for (var h = 0; h < y.length; h++) + this.words[h] = p.words[h] ^ y.words[h]; + if (this !== p) for (; h < p.length; h++) this.words[h] = p.words[h]; + return (this.length = p.length), this.strip(); + }), + (a.prototype.ixor = function (o) { + return t((this.negative | o.negative) === 0), this.iuxor(o); + }), + (a.prototype.xor = function (o) { + return this.length > o.length + ? this.clone().ixor(o) + : o.clone().ixor(this); + }), + (a.prototype.uxor = function (o) { + return this.length > o.length + ? this.clone().iuxor(o) + : o.clone().iuxor(this); + }), + (a.prototype.inotn = function (o) { + t(typeof o == "number" && o >= 0); + var p = Math.ceil(o / 26) | 0, + y = o % 26; + this._expand(p), y > 0 && p--; + for (var h = 0; h < p; h++) this.words[h] = ~this.words[h] & 67108863; + return ( + y > 0 && (this.words[h] = ~this.words[h] & (67108863 >> (26 - y))), + this.strip() + ); + }), + (a.prototype.notn = function (o) { + return this.clone().inotn(o); + }), + (a.prototype.setn = function (o, p) { + t(typeof o == "number" && o >= 0); + var y = (o / 26) | 0, + h = o % 26; + return ( + this._expand(y + 1), + p + ? (this.words[y] = this.words[y] | (1 << h)) + : (this.words[y] = this.words[y] & ~(1 << h)), + this.strip() + ); + }), + (a.prototype.iadd = function (o) { + var p; + if (this.negative !== 0 && o.negative === 0) + return ( + (this.negative = 0), + (p = this.isub(o)), + (this.negative ^= 1), + this._normSign() + ); + if (this.negative === 0 && o.negative !== 0) + return ( + (o.negative = 0), + (p = this.isub(o)), + (o.negative = 1), + p._normSign() + ); + var y, h; + this.length > o.length + ? ((y = this), (h = o)) + : ((y = o), (h = this)); + for (var b = 0, T = 0; T < h.length; T++) + (p = (y.words[T] | 0) + (h.words[T] | 0) + b), + (this.words[T] = p & 67108863), + (b = p >>> 26); + for (; b !== 0 && T < y.length; T++) + (p = (y.words[T] | 0) + b), + (this.words[T] = p & 67108863), + (b = p >>> 26); + if (((this.length = y.length), b !== 0)) + (this.words[this.length] = b), this.length++; + else if (y !== this) + for (; T < y.length; T++) this.words[T] = y.words[T]; + return this; + }), + (a.prototype.add = function (o) { + var p; + return o.negative !== 0 && this.negative === 0 + ? ((o.negative = 0), (p = this.sub(o)), (o.negative ^= 1), p) + : o.negative === 0 && this.negative !== 0 + ? ((this.negative = 0), (p = o.sub(this)), (this.negative = 1), p) + : this.length > o.length + ? this.clone().iadd(o) + : o.clone().iadd(this); + }), + (a.prototype.isub = function (o) { + if (o.negative !== 0) { + o.negative = 0; + var p = this.iadd(o); + return (o.negative = 1), p._normSign(); + } else if (this.negative !== 0) + return ( + (this.negative = 0), + this.iadd(o), + (this.negative = 1), + this._normSign() + ); + var y = this.cmp(o); + if (y === 0) + return ( + (this.negative = 0), (this.length = 1), (this.words[0] = 0), this + ); + var h, b; + y > 0 ? ((h = this), (b = o)) : ((h = o), (b = this)); + for (var T = 0, E = 0; E < b.length; E++) + (p = (h.words[E] | 0) - (b.words[E] | 0) + T), + (T = p >> 26), + (this.words[E] = p & 67108863); + for (; T !== 0 && E < h.length; E++) + (p = (h.words[E] | 0) + T), + (T = p >> 26), + (this.words[E] = p & 67108863); + if (T === 0 && E < h.length && h !== this) + for (; E < h.length; E++) this.words[E] = h.words[E]; + return ( + (this.length = Math.max(this.length, E)), + h !== this && (this.negative = 1), + this.strip() + ); + }), + (a.prototype.sub = function (o) { + return this.clone().isub(o); + }); + function I(g, o, p) { + p.negative = o.negative ^ g.negative; + var y = (g.length + o.length) | 0; + (p.length = y), (y = (y - 1) | 0); + var h = g.words[0] | 0, + b = o.words[0] | 0, + T = h * b, + E = T & 67108863, + f = (T / 67108864) | 0; + p.words[0] = E; + for (var u = 1; u < y; u++) { + for ( + var v = f >>> 26, + R = f & 67108863, + A = Math.min(u, o.length - 1), + L = Math.max(0, u - g.length + 1); + L <= A; + L++ + ) { + var G = (u - L) | 0; + (h = g.words[G] | 0), + (b = o.words[L] | 0), + (T = h * b + R), + (v += (T / 67108864) | 0), + (R = T & 67108863); + } + (p.words[u] = R | 0), (f = v | 0); + } + return f !== 0 ? (p.words[u] = f | 0) : p.length--, p.strip(); + } + var k = function (o, p, y) { + var h = o.words, + b = p.words, + T = y.words, + E = 0, + f, + u, + v, + R = h[0] | 0, + A = R & 8191, + L = R >>> 13, + G = h[1] | 0, + U = G & 8191, + Z = G >>> 13, + de = h[2] | 0, + ne = de & 8191, + pe = de >>> 13, + lt = h[3] | 0, + fe = lt & 8191, + ve = lt >>> 13, + vt = h[4] | 0, + we = vt & 8191, + Ne = vt >>> 13, + kt = h[5] | 0, + Le = kt & 8191, + ze = kt >>> 13, + It = h[6] | 0, + Se = It & 8191, + Ke = It >>> 13, + Et = h[7] | 0, + Me = Et & 8191, + Ge = Et >>> 13, + Dt = h[8] | 0, + De = Dt & 8191, + Ze = Dt >>> 13, + Wt = h[9] | 0, + ke = Wt & 8191, + $e = Wt >>> 13, + Ht = b[0] | 0, + Pe = Ht & 8191, + Je = Ht >>> 13, + zt = b[1] | 0, + Re = zt & 8191, + Qe = zt >>> 13, + jt = b[2] | 0, + Be = jt & 8191, + Xe = jt >>> 13, + Ut = b[3] | 0, + Ae = Ut & 8191, + et = Ut >>> 13, + St = b[4] | 0, + Oe = St & 8191, + tt = St >>> 13, + Kt = b[5] | 0, + qe = Kt & 8191, + rt = Kt >>> 13, + Vt = b[6] | 0, + Ie = Vt & 8191, + Ye = Vt >>> 13, + Gt = b[7] | 0, + We = Gt & 8191, + it = Gt >>> 13, + Qt = b[8] | 0, + Ue = Qt & 8191, + nt = Qt >>> 13, + tr = b[9] | 0, + He = tr & 8191, + at = tr >>> 13; + (y.negative = o.negative ^ p.negative), + (y.length = 19), + (f = Math.imul(A, Pe)), + (u = Math.imul(A, Je)), + (u = (u + Math.imul(L, Pe)) | 0), + (v = Math.imul(L, Je)); + var Pr = (((E + f) | 0) + ((u & 8191) << 13)) | 0; + (E = (((v + (u >>> 13)) | 0) + (Pr >>> 26)) | 0), + (Pr &= 67108863), + (f = Math.imul(U, Pe)), + (u = Math.imul(U, Je)), + (u = (u + Math.imul(Z, Pe)) | 0), + (v = Math.imul(Z, Je)), + (f = (f + Math.imul(A, Re)) | 0), + (u = (u + Math.imul(A, Qe)) | 0), + (u = (u + Math.imul(L, Re)) | 0), + (v = (v + Math.imul(L, Qe)) | 0); + var qt = (((E + f) | 0) + ((u & 8191) << 13)) | 0; + (E = (((v + (u >>> 13)) | 0) + (qt >>> 26)) | 0), + (qt &= 67108863), + (f = Math.imul(ne, Pe)), + (u = Math.imul(ne, Je)), + (u = (u + Math.imul(pe, Pe)) | 0), + (v = Math.imul(pe, Je)), + (f = (f + Math.imul(U, Re)) | 0), + (u = (u + Math.imul(U, Qe)) | 0), + (u = (u + Math.imul(Z, Re)) | 0), + (v = (v + Math.imul(Z, Qe)) | 0), + (f = (f + Math.imul(A, Be)) | 0), + (u = (u + Math.imul(A, Xe)) | 0), + (u = (u + Math.imul(L, Be)) | 0), + (v = (v + Math.imul(L, Xe)) | 0); + var Ft = (((E + f) | 0) + ((u & 8191) << 13)) | 0; + (E = (((v + (u >>> 13)) | 0) + (Ft >>> 26)) | 0), + (Ft &= 67108863), + (f = Math.imul(fe, Pe)), + (u = Math.imul(fe, Je)), + (u = (u + Math.imul(ve, Pe)) | 0), + (v = Math.imul(ve, Je)), + (f = (f + Math.imul(ne, Re)) | 0), + (u = (u + Math.imul(ne, Qe)) | 0), + (u = (u + Math.imul(pe, Re)) | 0), + (v = (v + Math.imul(pe, Qe)) | 0), + (f = (f + Math.imul(U, Be)) | 0), + (u = (u + Math.imul(U, Xe)) | 0), + (u = (u + Math.imul(Z, Be)) | 0), + (v = (v + Math.imul(Z, Xe)) | 0), + (f = (f + Math.imul(A, Ae)) | 0), + (u = (u + Math.imul(A, et)) | 0), + (u = (u + Math.imul(L, Ae)) | 0), + (v = (v + Math.imul(L, et)) | 0); + var _r = (((E + f) | 0) + ((u & 8191) << 13)) | 0; + (E = (((v + (u >>> 13)) | 0) + (_r >>> 26)) | 0), + (_r &= 67108863), + (f = Math.imul(we, Pe)), + (u = Math.imul(we, Je)), + (u = (u + Math.imul(Ne, Pe)) | 0), + (v = Math.imul(Ne, Je)), + (f = (f + Math.imul(fe, Re)) | 0), + (u = (u + Math.imul(fe, Qe)) | 0), + (u = (u + Math.imul(ve, Re)) | 0), + (v = (v + Math.imul(ve, Qe)) | 0), + (f = (f + Math.imul(ne, Be)) | 0), + (u = (u + Math.imul(ne, Xe)) | 0), + (u = (u + Math.imul(pe, Be)) | 0), + (v = (v + Math.imul(pe, Xe)) | 0), + (f = (f + Math.imul(U, Ae)) | 0), + (u = (u + Math.imul(U, et)) | 0), + (u = (u + Math.imul(Z, Ae)) | 0), + (v = (v + Math.imul(Z, et)) | 0), + (f = (f + Math.imul(A, Oe)) | 0), + (u = (u + Math.imul(A, tt)) | 0), + (u = (u + Math.imul(L, Oe)) | 0), + (v = (v + Math.imul(L, tt)) | 0); + var xr = (((E + f) | 0) + ((u & 8191) << 13)) | 0; + (E = (((v + (u >>> 13)) | 0) + (xr >>> 26)) | 0), + (xr &= 67108863), + (f = Math.imul(Le, Pe)), + (u = Math.imul(Le, Je)), + (u = (u + Math.imul(ze, Pe)) | 0), + (v = Math.imul(ze, Je)), + (f = (f + Math.imul(we, Re)) | 0), + (u = (u + Math.imul(we, Qe)) | 0), + (u = (u + Math.imul(Ne, Re)) | 0), + (v = (v + Math.imul(Ne, Qe)) | 0), + (f = (f + Math.imul(fe, Be)) | 0), + (u = (u + Math.imul(fe, Xe)) | 0), + (u = (u + Math.imul(ve, Be)) | 0), + (v = (v + Math.imul(ve, Xe)) | 0), + (f = (f + Math.imul(ne, Ae)) | 0), + (u = (u + Math.imul(ne, et)) | 0), + (u = (u + Math.imul(pe, Ae)) | 0), + (v = (v + Math.imul(pe, et)) | 0), + (f = (f + Math.imul(U, Oe)) | 0), + (u = (u + Math.imul(U, tt)) | 0), + (u = (u + Math.imul(Z, Oe)) | 0), + (v = (v + Math.imul(Z, tt)) | 0), + (f = (f + Math.imul(A, qe)) | 0), + (u = (u + Math.imul(A, rt)) | 0), + (u = (u + Math.imul(L, qe)) | 0), + (v = (v + Math.imul(L, rt)) | 0); + var Tr = (((E + f) | 0) + ((u & 8191) << 13)) | 0; + (E = (((v + (u >>> 13)) | 0) + (Tr >>> 26)) | 0), + (Tr &= 67108863), + (f = Math.imul(Se, Pe)), + (u = Math.imul(Se, Je)), + (u = (u + Math.imul(Ke, Pe)) | 0), + (v = Math.imul(Ke, Je)), + (f = (f + Math.imul(Le, Re)) | 0), + (u = (u + Math.imul(Le, Qe)) | 0), + (u = (u + Math.imul(ze, Re)) | 0), + (v = (v + Math.imul(ze, Qe)) | 0), + (f = (f + Math.imul(we, Be)) | 0), + (u = (u + Math.imul(we, Xe)) | 0), + (u = (u + Math.imul(Ne, Be)) | 0), + (v = (v + Math.imul(Ne, Xe)) | 0), + (f = (f + Math.imul(fe, Ae)) | 0), + (u = (u + Math.imul(fe, et)) | 0), + (u = (u + Math.imul(ve, Ae)) | 0), + (v = (v + Math.imul(ve, et)) | 0), + (f = (f + Math.imul(ne, Oe)) | 0), + (u = (u + Math.imul(ne, tt)) | 0), + (u = (u + Math.imul(pe, Oe)) | 0), + (v = (v + Math.imul(pe, tt)) | 0), + (f = (f + Math.imul(U, qe)) | 0), + (u = (u + Math.imul(U, rt)) | 0), + (u = (u + Math.imul(Z, qe)) | 0), + (v = (v + Math.imul(Z, rt)) | 0), + (f = (f + Math.imul(A, Ie)) | 0), + (u = (u + Math.imul(A, Ye)) | 0), + (u = (u + Math.imul(L, Ie)) | 0), + (v = (v + Math.imul(L, Ye)) | 0); + var Er = (((E + f) | 0) + ((u & 8191) << 13)) | 0; + (E = (((v + (u >>> 13)) | 0) + (Er >>> 26)) | 0), + (Er &= 67108863), + (f = Math.imul(Me, Pe)), + (u = Math.imul(Me, Je)), + (u = (u + Math.imul(Ge, Pe)) | 0), + (v = Math.imul(Ge, Je)), + (f = (f + Math.imul(Se, Re)) | 0), + (u = (u + Math.imul(Se, Qe)) | 0), + (u = (u + Math.imul(Ke, Re)) | 0), + (v = (v + Math.imul(Ke, Qe)) | 0), + (f = (f + Math.imul(Le, Be)) | 0), + (u = (u + Math.imul(Le, Xe)) | 0), + (u = (u + Math.imul(ze, Be)) | 0), + (v = (v + Math.imul(ze, Xe)) | 0), + (f = (f + Math.imul(we, Ae)) | 0), + (u = (u + Math.imul(we, et)) | 0), + (u = (u + Math.imul(Ne, Ae)) | 0), + (v = (v + Math.imul(Ne, et)) | 0), + (f = (f + Math.imul(fe, Oe)) | 0), + (u = (u + Math.imul(fe, tt)) | 0), + (u = (u + Math.imul(ve, Oe)) | 0), + (v = (v + Math.imul(ve, tt)) | 0), + (f = (f + Math.imul(ne, qe)) | 0), + (u = (u + Math.imul(ne, rt)) | 0), + (u = (u + Math.imul(pe, qe)) | 0), + (v = (v + Math.imul(pe, rt)) | 0), + (f = (f + Math.imul(U, Ie)) | 0), + (u = (u + Math.imul(U, Ye)) | 0), + (u = (u + Math.imul(Z, Ie)) | 0), + (v = (v + Math.imul(Z, Ye)) | 0), + (f = (f + Math.imul(A, We)) | 0), + (u = (u + Math.imul(A, it)) | 0), + (u = (u + Math.imul(L, We)) | 0), + (v = (v + Math.imul(L, it)) | 0); + var Cr = (((E + f) | 0) + ((u & 8191) << 13)) | 0; + (E = (((v + (u >>> 13)) | 0) + (Cr >>> 26)) | 0), + (Cr &= 67108863), + (f = Math.imul(De, Pe)), + (u = Math.imul(De, Je)), + (u = (u + Math.imul(Ze, Pe)) | 0), + (v = Math.imul(Ze, Je)), + (f = (f + Math.imul(Me, Re)) | 0), + (u = (u + Math.imul(Me, Qe)) | 0), + (u = (u + Math.imul(Ge, Re)) | 0), + (v = (v + Math.imul(Ge, Qe)) | 0), + (f = (f + Math.imul(Se, Be)) | 0), + (u = (u + Math.imul(Se, Xe)) | 0), + (u = (u + Math.imul(Ke, Be)) | 0), + (v = (v + Math.imul(Ke, Xe)) | 0), + (f = (f + Math.imul(Le, Ae)) | 0), + (u = (u + Math.imul(Le, et)) | 0), + (u = (u + Math.imul(ze, Ae)) | 0), + (v = (v + Math.imul(ze, et)) | 0), + (f = (f + Math.imul(we, Oe)) | 0), + (u = (u + Math.imul(we, tt)) | 0), + (u = (u + Math.imul(Ne, Oe)) | 0), + (v = (v + Math.imul(Ne, tt)) | 0), + (f = (f + Math.imul(fe, qe)) | 0), + (u = (u + Math.imul(fe, rt)) | 0), + (u = (u + Math.imul(ve, qe)) | 0), + (v = (v + Math.imul(ve, rt)) | 0), + (f = (f + Math.imul(ne, Ie)) | 0), + (u = (u + Math.imul(ne, Ye)) | 0), + (u = (u + Math.imul(pe, Ie)) | 0), + (v = (v + Math.imul(pe, Ye)) | 0), + (f = (f + Math.imul(U, We)) | 0), + (u = (u + Math.imul(U, it)) | 0), + (u = (u + Math.imul(Z, We)) | 0), + (v = (v + Math.imul(Z, it)) | 0), + (f = (f + Math.imul(A, Ue)) | 0), + (u = (u + Math.imul(A, nt)) | 0), + (u = (u + Math.imul(L, Ue)) | 0), + (v = (v + Math.imul(L, nt)) | 0); + var Kr = (((E + f) | 0) + ((u & 8191) << 13)) | 0; + (E = (((v + (u >>> 13)) | 0) + (Kr >>> 26)) | 0), + (Kr &= 67108863), + (f = Math.imul(ke, Pe)), + (u = Math.imul(ke, Je)), + (u = (u + Math.imul($e, Pe)) | 0), + (v = Math.imul($e, Je)), + (f = (f + Math.imul(De, Re)) | 0), + (u = (u + Math.imul(De, Qe)) | 0), + (u = (u + Math.imul(Ze, Re)) | 0), + (v = (v + Math.imul(Ze, Qe)) | 0), + (f = (f + Math.imul(Me, Be)) | 0), + (u = (u + Math.imul(Me, Xe)) | 0), + (u = (u + Math.imul(Ge, Be)) | 0), + (v = (v + Math.imul(Ge, Xe)) | 0), + (f = (f + Math.imul(Se, Ae)) | 0), + (u = (u + Math.imul(Se, et)) | 0), + (u = (u + Math.imul(Ke, Ae)) | 0), + (v = (v + Math.imul(Ke, et)) | 0), + (f = (f + Math.imul(Le, Oe)) | 0), + (u = (u + Math.imul(Le, tt)) | 0), + (u = (u + Math.imul(ze, Oe)) | 0), + (v = (v + Math.imul(ze, tt)) | 0), + (f = (f + Math.imul(we, qe)) | 0), + (u = (u + Math.imul(we, rt)) | 0), + (u = (u + Math.imul(Ne, qe)) | 0), + (v = (v + Math.imul(Ne, rt)) | 0), + (f = (f + Math.imul(fe, Ie)) | 0), + (u = (u + Math.imul(fe, Ye)) | 0), + (u = (u + Math.imul(ve, Ie)) | 0), + (v = (v + Math.imul(ve, Ye)) | 0), + (f = (f + Math.imul(ne, We)) | 0), + (u = (u + Math.imul(ne, it)) | 0), + (u = (u + Math.imul(pe, We)) | 0), + (v = (v + Math.imul(pe, it)) | 0), + (f = (f + Math.imul(U, Ue)) | 0), + (u = (u + Math.imul(U, nt)) | 0), + (u = (u + Math.imul(Z, Ue)) | 0), + (v = (v + Math.imul(Z, nt)) | 0), + (f = (f + Math.imul(A, He)) | 0), + (u = (u + Math.imul(A, at)) | 0), + (u = (u + Math.imul(L, He)) | 0), + (v = (v + Math.imul(L, at)) | 0); + var Vr = (((E + f) | 0) + ((u & 8191) << 13)) | 0; + (E = (((v + (u >>> 13)) | 0) + (Vr >>> 26)) | 0), + (Vr &= 67108863), + (f = Math.imul(ke, Re)), + (u = Math.imul(ke, Qe)), + (u = (u + Math.imul($e, Re)) | 0), + (v = Math.imul($e, Qe)), + (f = (f + Math.imul(De, Be)) | 0), + (u = (u + Math.imul(De, Xe)) | 0), + (u = (u + Math.imul(Ze, Be)) | 0), + (v = (v + Math.imul(Ze, Xe)) | 0), + (f = (f + Math.imul(Me, Ae)) | 0), + (u = (u + Math.imul(Me, et)) | 0), + (u = (u + Math.imul(Ge, Ae)) | 0), + (v = (v + Math.imul(Ge, et)) | 0), + (f = (f + Math.imul(Se, Oe)) | 0), + (u = (u + Math.imul(Se, tt)) | 0), + (u = (u + Math.imul(Ke, Oe)) | 0), + (v = (v + Math.imul(Ke, tt)) | 0), + (f = (f + Math.imul(Le, qe)) | 0), + (u = (u + Math.imul(Le, rt)) | 0), + (u = (u + Math.imul(ze, qe)) | 0), + (v = (v + Math.imul(ze, rt)) | 0), + (f = (f + Math.imul(we, Ie)) | 0), + (u = (u + Math.imul(we, Ye)) | 0), + (u = (u + Math.imul(Ne, Ie)) | 0), + (v = (v + Math.imul(Ne, Ye)) | 0), + (f = (f + Math.imul(fe, We)) | 0), + (u = (u + Math.imul(fe, it)) | 0), + (u = (u + Math.imul(ve, We)) | 0), + (v = (v + Math.imul(ve, it)) | 0), + (f = (f + Math.imul(ne, Ue)) | 0), + (u = (u + Math.imul(ne, nt)) | 0), + (u = (u + Math.imul(pe, Ue)) | 0), + (v = (v + Math.imul(pe, nt)) | 0), + (f = (f + Math.imul(U, He)) | 0), + (u = (u + Math.imul(U, at)) | 0), + (u = (u + Math.imul(Z, He)) | 0), + (v = (v + Math.imul(Z, at)) | 0); + var Ur = (((E + f) | 0) + ((u & 8191) << 13)) | 0; + (E = (((v + (u >>> 13)) | 0) + (Ur >>> 26)) | 0), + (Ur &= 67108863), + (f = Math.imul(ke, Be)), + (u = Math.imul(ke, Xe)), + (u = (u + Math.imul($e, Be)) | 0), + (v = Math.imul($e, Xe)), + (f = (f + Math.imul(De, Ae)) | 0), + (u = (u + Math.imul(De, et)) | 0), + (u = (u + Math.imul(Ze, Ae)) | 0), + (v = (v + Math.imul(Ze, et)) | 0), + (f = (f + Math.imul(Me, Oe)) | 0), + (u = (u + Math.imul(Me, tt)) | 0), + (u = (u + Math.imul(Ge, Oe)) | 0), + (v = (v + Math.imul(Ge, tt)) | 0), + (f = (f + Math.imul(Se, qe)) | 0), + (u = (u + Math.imul(Se, rt)) | 0), + (u = (u + Math.imul(Ke, qe)) | 0), + (v = (v + Math.imul(Ke, rt)) | 0), + (f = (f + Math.imul(Le, Ie)) | 0), + (u = (u + Math.imul(Le, Ye)) | 0), + (u = (u + Math.imul(ze, Ie)) | 0), + (v = (v + Math.imul(ze, Ye)) | 0), + (f = (f + Math.imul(we, We)) | 0), + (u = (u + Math.imul(we, it)) | 0), + (u = (u + Math.imul(Ne, We)) | 0), + (v = (v + Math.imul(Ne, it)) | 0), + (f = (f + Math.imul(fe, Ue)) | 0), + (u = (u + Math.imul(fe, nt)) | 0), + (u = (u + Math.imul(ve, Ue)) | 0), + (v = (v + Math.imul(ve, nt)) | 0), + (f = (f + Math.imul(ne, He)) | 0), + (u = (u + Math.imul(ne, at)) | 0), + (u = (u + Math.imul(pe, He)) | 0), + (v = (v + Math.imul(pe, at)) | 0); + var Rr = (((E + f) | 0) + ((u & 8191) << 13)) | 0; + (E = (((v + (u >>> 13)) | 0) + (Rr >>> 26)) | 0), + (Rr &= 67108863), + (f = Math.imul(ke, Ae)), + (u = Math.imul(ke, et)), + (u = (u + Math.imul($e, Ae)) | 0), + (v = Math.imul($e, et)), + (f = (f + Math.imul(De, Oe)) | 0), + (u = (u + Math.imul(De, tt)) | 0), + (u = (u + Math.imul(Ze, Oe)) | 0), + (v = (v + Math.imul(Ze, tt)) | 0), + (f = (f + Math.imul(Me, qe)) | 0), + (u = (u + Math.imul(Me, rt)) | 0), + (u = (u + Math.imul(Ge, qe)) | 0), + (v = (v + Math.imul(Ge, rt)) | 0), + (f = (f + Math.imul(Se, Ie)) | 0), + (u = (u + Math.imul(Se, Ye)) | 0), + (u = (u + Math.imul(Ke, Ie)) | 0), + (v = (v + Math.imul(Ke, Ye)) | 0), + (f = (f + Math.imul(Le, We)) | 0), + (u = (u + Math.imul(Le, it)) | 0), + (u = (u + Math.imul(ze, We)) | 0), + (v = (v + Math.imul(ze, it)) | 0), + (f = (f + Math.imul(we, Ue)) | 0), + (u = (u + Math.imul(we, nt)) | 0), + (u = (u + Math.imul(Ne, Ue)) | 0), + (v = (v + Math.imul(Ne, nt)) | 0), + (f = (f + Math.imul(fe, He)) | 0), + (u = (u + Math.imul(fe, at)) | 0), + (u = (u + Math.imul(ve, He)) | 0), + (v = (v + Math.imul(ve, at)) | 0); + var Or = (((E + f) | 0) + ((u & 8191) << 13)) | 0; + (E = (((v + (u >>> 13)) | 0) + (Or >>> 26)) | 0), + (Or &= 67108863), + (f = Math.imul(ke, Oe)), + (u = Math.imul(ke, tt)), + (u = (u + Math.imul($e, Oe)) | 0), + (v = Math.imul($e, tt)), + (f = (f + Math.imul(De, qe)) | 0), + (u = (u + Math.imul(De, rt)) | 0), + (u = (u + Math.imul(Ze, qe)) | 0), + (v = (v + Math.imul(Ze, rt)) | 0), + (f = (f + Math.imul(Me, Ie)) | 0), + (u = (u + Math.imul(Me, Ye)) | 0), + (u = (u + Math.imul(Ge, Ie)) | 0), + (v = (v + Math.imul(Ge, Ye)) | 0), + (f = (f + Math.imul(Se, We)) | 0), + (u = (u + Math.imul(Se, it)) | 0), + (u = (u + Math.imul(Ke, We)) | 0), + (v = (v + Math.imul(Ke, it)) | 0), + (f = (f + Math.imul(Le, Ue)) | 0), + (u = (u + Math.imul(Le, nt)) | 0), + (u = (u + Math.imul(ze, Ue)) | 0), + (v = (v + Math.imul(ze, nt)) | 0), + (f = (f + Math.imul(we, He)) | 0), + (u = (u + Math.imul(we, at)) | 0), + (u = (u + Math.imul(Ne, He)) | 0), + (v = (v + Math.imul(Ne, at)) | 0); + var ur = (((E + f) | 0) + ((u & 8191) << 13)) | 0; + (E = (((v + (u >>> 13)) | 0) + (ur >>> 26)) | 0), + (ur &= 67108863), + (f = Math.imul(ke, qe)), + (u = Math.imul(ke, rt)), + (u = (u + Math.imul($e, qe)) | 0), + (v = Math.imul($e, rt)), + (f = (f + Math.imul(De, Ie)) | 0), + (u = (u + Math.imul(De, Ye)) | 0), + (u = (u + Math.imul(Ze, Ie)) | 0), + (v = (v + Math.imul(Ze, Ye)) | 0), + (f = (f + Math.imul(Me, We)) | 0), + (u = (u + Math.imul(Me, it)) | 0), + (u = (u + Math.imul(Ge, We)) | 0), + (v = (v + Math.imul(Ge, it)) | 0), + (f = (f + Math.imul(Se, Ue)) | 0), + (u = (u + Math.imul(Se, nt)) | 0), + (u = (u + Math.imul(Ke, Ue)) | 0), + (v = (v + Math.imul(Ke, nt)) | 0), + (f = (f + Math.imul(Le, He)) | 0), + (u = (u + Math.imul(Le, at)) | 0), + (u = (u + Math.imul(ze, He)) | 0), + (v = (v + Math.imul(ze, at)) | 0); + var Hr = (((E + f) | 0) + ((u & 8191) << 13)) | 0; + (E = (((v + (u >>> 13)) | 0) + (Hr >>> 26)) | 0), + (Hr &= 67108863), + (f = Math.imul(ke, Ie)), + (u = Math.imul(ke, Ye)), + (u = (u + Math.imul($e, Ie)) | 0), + (v = Math.imul($e, Ye)), + (f = (f + Math.imul(De, We)) | 0), + (u = (u + Math.imul(De, it)) | 0), + (u = (u + Math.imul(Ze, We)) | 0), + (v = (v + Math.imul(Ze, it)) | 0), + (f = (f + Math.imul(Me, Ue)) | 0), + (u = (u + Math.imul(Me, nt)) | 0), + (u = (u + Math.imul(Ge, Ue)) | 0), + (v = (v + Math.imul(Ge, nt)) | 0), + (f = (f + Math.imul(Se, He)) | 0), + (u = (u + Math.imul(Se, at)) | 0), + (u = (u + Math.imul(Ke, He)) | 0), + (v = (v + Math.imul(Ke, at)) | 0); + var hr = (((E + f) | 0) + ((u & 8191) << 13)) | 0; + (E = (((v + (u >>> 13)) | 0) + (hr >>> 26)) | 0), + (hr &= 67108863), + (f = Math.imul(ke, We)), + (u = Math.imul(ke, it)), + (u = (u + Math.imul($e, We)) | 0), + (v = Math.imul($e, it)), + (f = (f + Math.imul(De, Ue)) | 0), + (u = (u + Math.imul(De, nt)) | 0), + (u = (u + Math.imul(Ze, Ue)) | 0), + (v = (v + Math.imul(Ze, nt)) | 0), + (f = (f + Math.imul(Me, He)) | 0), + (u = (u + Math.imul(Me, at)) | 0), + (u = (u + Math.imul(Ge, He)) | 0), + (v = (v + Math.imul(Ge, at)) | 0); + var Lr = (((E + f) | 0) + ((u & 8191) << 13)) | 0; + (E = (((v + (u >>> 13)) | 0) + (Lr >>> 26)) | 0), + (Lr &= 67108863), + (f = Math.imul(ke, Ue)), + (u = Math.imul(ke, nt)), + (u = (u + Math.imul($e, Ue)) | 0), + (v = Math.imul($e, nt)), + (f = (f + Math.imul(De, He)) | 0), + (u = (u + Math.imul(De, at)) | 0), + (u = (u + Math.imul(Ze, He)) | 0), + (v = (v + Math.imul(Ze, at)) | 0); + var Zr = (((E + f) | 0) + ((u & 8191) << 13)) | 0; + (E = (((v + (u >>> 13)) | 0) + (Zr >>> 26)) | 0), + (Zr &= 67108863), + (f = Math.imul(ke, He)), + (u = Math.imul(ke, at)), + (u = (u + Math.imul($e, He)) | 0), + (v = Math.imul($e, at)); + var xn = (((E + f) | 0) + ((u & 8191) << 13)) | 0; + return ( + (E = (((v + (u >>> 13)) | 0) + (xn >>> 26)) | 0), + (xn &= 67108863), + (T[0] = Pr), + (T[1] = qt), + (T[2] = Ft), + (T[3] = _r), + (T[4] = xr), + (T[5] = Tr), + (T[6] = Er), + (T[7] = Cr), + (T[8] = Kr), + (T[9] = Vr), + (T[10] = Ur), + (T[11] = Rr), + (T[12] = Or), + (T[13] = ur), + (T[14] = Hr), + (T[15] = hr), + (T[16] = Lr), + (T[17] = Zr), + (T[18] = xn), + E !== 0 && ((T[19] = E), y.length++), + y + ); + }; + Math.imul || (k = I); + function O(g, o, p) { + (p.negative = o.negative ^ g.negative), + (p.length = g.length + o.length); + for (var y = 0, h = 0, b = 0; b < p.length - 1; b++) { + var T = h; + h = 0; + for ( + var E = y & 67108863, + f = Math.min(b, o.length - 1), + u = Math.max(0, b - g.length + 1); + u <= f; + u++ + ) { + var v = b - u, + R = g.words[v] | 0, + A = o.words[u] | 0, + L = R * A, + G = L & 67108863; + (T = (T + ((L / 67108864) | 0)) | 0), + (G = (G + E) | 0), + (E = G & 67108863), + (T = (T + (G >>> 26)) | 0), + (h += T >>> 26), + (T &= 67108863); + } + (p.words[b] = E), (y = T), (T = h); + } + return y !== 0 ? (p.words[b] = y) : p.length--, p.strip(); + } + function D(g, o, p) { + var y = new W(); + return y.mulp(g, o, p); + } + a.prototype.mulTo = function (o, p) { + var y, + h = this.length + o.length; + return ( + this.length === 10 && o.length === 10 + ? (y = k(this, o, p)) + : h < 63 + ? (y = I(this, o, p)) + : h < 1024 + ? (y = O(this, o, p)) + : (y = D(this, o, p)), + y + ); + }; + function W(g, o) { + (this.x = g), (this.y = o); + } + (W.prototype.makeRBT = function (o) { + for ( + var p = new Array(o), y = a.prototype._countBits(o) - 1, h = 0; + h < o; + h++ + ) + p[h] = this.revBin(h, y, o); + return p; + }), + (W.prototype.revBin = function (o, p, y) { + if (o === 0 || o === y - 1) return o; + for (var h = 0, b = 0; b < p; b++) + (h |= (o & 1) << (p - b - 1)), (o >>= 1); + return h; + }), + (W.prototype.permute = function (o, p, y, h, b, T) { + for (var E = 0; E < T; E++) (h[E] = p[o[E]]), (b[E] = y[o[E]]); + }), + (W.prototype.transform = function (o, p, y, h, b, T) { + this.permute(T, o, p, y, h, b); + for (var E = 1; E < b; E <<= 1) + for ( + var f = E << 1, + u = Math.cos((2 * Math.PI) / f), + v = Math.sin((2 * Math.PI) / f), + R = 0; + R < b; + R += f + ) + for (var A = u, L = v, G = 0; G < E; G++) { + var U = y[R + G], + Z = h[R + G], + de = y[R + G + E], + ne = h[R + G + E], + pe = A * de - L * ne; + (ne = A * ne + L * de), + (de = pe), + (y[R + G] = U + de), + (h[R + G] = Z + ne), + (y[R + G + E] = U - de), + (h[R + G + E] = Z - ne), + G !== f && + ((pe = u * A - v * L), (L = u * L + v * A), (A = pe)); + } + }), + (W.prototype.guessLen13b = function (o, p) { + var y = Math.max(p, o) | 1, + h = y & 1, + b = 0; + for (y = (y / 2) | 0; y; y = y >>> 1) b++; + return 1 << (b + 1 + h); + }), + (W.prototype.conjugate = function (o, p, y) { + if (!(y <= 1)) + for (var h = 0; h < y / 2; h++) { + var b = o[h]; + (o[h] = o[y - h - 1]), + (o[y - h - 1] = b), + (b = p[h]), + (p[h] = -p[y - h - 1]), + (p[y - h - 1] = -b); + } + }), + (W.prototype.normalize13b = function (o, p) { + for (var y = 0, h = 0; h < p / 2; h++) { + var b = + Math.round(o[2 * h + 1] / p) * 8192 + + Math.round(o[2 * h] / p) + + y; + (o[h] = b & 67108863), + b < 67108864 ? (y = 0) : (y = (b / 67108864) | 0); + } + return o; + }), + (W.prototype.convert13b = function (o, p, y, h) { + for (var b = 0, T = 0; T < p; T++) + (b = b + (o[T] | 0)), + (y[2 * T] = b & 8191), + (b = b >>> 13), + (y[2 * T + 1] = b & 8191), + (b = b >>> 13); + for (T = 2 * p; T < h; ++T) y[T] = 0; + t(b === 0), t((b & -8192) === 0); + }), + (W.prototype.stub = function (o) { + for (var p = new Array(o), y = 0; y < o; y++) p[y] = 0; + return p; + }), + (W.prototype.mulp = function (o, p, y) { + var h = 2 * this.guessLen13b(o.length, p.length), + b = this.makeRBT(h), + T = this.stub(h), + E = new Array(h), + f = new Array(h), + u = new Array(h), + v = new Array(h), + R = new Array(h), + A = new Array(h), + L = y.words; + (L.length = h), + this.convert13b(o.words, o.length, E, h), + this.convert13b(p.words, p.length, v, h), + this.transform(E, T, f, u, h, b), + this.transform(v, T, R, A, h, b); + for (var G = 0; G < h; G++) { + var U = f[G] * R[G] - u[G] * A[G]; + (u[G] = f[G] * A[G] + u[G] * R[G]), (f[G] = U); + } + return ( + this.conjugate(f, u, h), + this.transform(f, u, L, T, h, b), + this.conjugate(L, T, h), + this.normalize13b(L, h), + (y.negative = o.negative ^ p.negative), + (y.length = o.length + p.length), + y.strip() + ); + }), + (a.prototype.mul = function (o) { + var p = new a(null); + return ( + (p.words = new Array(this.length + o.length)), this.mulTo(o, p) + ); + }), + (a.prototype.mulf = function (o) { + var p = new a(null); + return (p.words = new Array(this.length + o.length)), D(this, o, p); + }), + (a.prototype.imul = function (o) { + return this.clone().mulTo(o, this); + }), + (a.prototype.imuln = function (o) { + t(typeof o == "number"), t(o < 67108864); + for (var p = 0, y = 0; y < this.length; y++) { + var h = (this.words[y] | 0) * o, + b = (h & 67108863) + (p & 67108863); + (p >>= 26), + (p += (h / 67108864) | 0), + (p += b >>> 26), + (this.words[y] = b & 67108863); + } + return p !== 0 && ((this.words[y] = p), this.length++), this; + }), + (a.prototype.muln = function (o) { + return this.clone().imuln(o); + }), + (a.prototype.sqr = function () { + return this.mul(this); + }), + (a.prototype.isqr = function () { + return this.imul(this.clone()); + }), + (a.prototype.pow = function (o) { + var p = C(o); + if (p.length === 0) return new a(1); + for ( + var y = this, h = 0; + h < p.length && p[h] === 0; + h++, y = y.sqr() + ); + if (++h < p.length) + for (var b = y.sqr(); h < p.length; h++, b = b.sqr()) + p[h] !== 0 && (y = y.mul(b)); + return y; + }), + (a.prototype.iushln = function (o) { + t(typeof o == "number" && o >= 0); + var p = o % 26, + y = (o - p) / 26, + h = (67108863 >>> (26 - p)) << (26 - p), + b; + if (p !== 0) { + var T = 0; + for (b = 0; b < this.length; b++) { + var E = this.words[b] & h, + f = ((this.words[b] | 0) - E) << p; + (this.words[b] = f | T), (T = E >>> (26 - p)); + } + T && ((this.words[b] = T), this.length++); + } + if (y !== 0) { + for (b = this.length - 1; b >= 0; b--) + this.words[b + y] = this.words[b]; + for (b = 0; b < y; b++) this.words[b] = 0; + this.length += y; + } + return this.strip(); + }), + (a.prototype.ishln = function (o) { + return t(this.negative === 0), this.iushln(o); + }), + (a.prototype.iushrn = function (o, p, y) { + t(typeof o == "number" && o >= 0); + var h; + p ? (h = (p - (p % 26)) / 26) : (h = 0); + var b = o % 26, + T = Math.min((o - b) / 26, this.length), + E = 67108863 ^ ((67108863 >>> b) << b), + f = y; + if (((h -= T), (h = Math.max(0, h)), f)) { + for (var u = 0; u < T; u++) f.words[u] = this.words[u]; + f.length = T; + } + if (T !== 0) + if (this.length > T) + for (this.length -= T, u = 0; u < this.length; u++) + this.words[u] = this.words[u + T]; + else (this.words[0] = 0), (this.length = 1); + var v = 0; + for (u = this.length - 1; u >= 0 && (v !== 0 || u >= h); u--) { + var R = this.words[u] | 0; + (this.words[u] = (v << (26 - b)) | (R >>> b)), (v = R & E); + } + return ( + f && v !== 0 && (f.words[f.length++] = v), + this.length === 0 && ((this.words[0] = 0), (this.length = 1)), + this.strip() + ); + }), + (a.prototype.ishrn = function (o, p, y) { + return t(this.negative === 0), this.iushrn(o, p, y); + }), + (a.prototype.shln = function (o) { + return this.clone().ishln(o); + }), + (a.prototype.ushln = function (o) { + return this.clone().iushln(o); + }), + (a.prototype.shrn = function (o) { + return this.clone().ishrn(o); + }), + (a.prototype.ushrn = function (o) { + return this.clone().iushrn(o); + }), + (a.prototype.testn = function (o) { + t(typeof o == "number" && o >= 0); + var p = o % 26, + y = (o - p) / 26, + h = 1 << p; + if (this.length <= y) return !1; + var b = this.words[y]; + return !!(b & h); + }), + (a.prototype.imaskn = function (o) { + t(typeof o == "number" && o >= 0); + var p = o % 26, + y = (o - p) / 26; + if ( + (t(this.negative === 0, "imaskn works only with positive numbers"), + this.length <= y) + ) + return this; + if ( + (p !== 0 && y++, (this.length = Math.min(y, this.length)), p !== 0) + ) { + var h = 67108863 ^ ((67108863 >>> p) << p); + this.words[this.length - 1] &= h; + } + return this.strip(); + }), + (a.prototype.maskn = function (o) { + return this.clone().imaskn(o); + }), + (a.prototype.iaddn = function (o) { + return ( + t(typeof o == "number"), + t(o < 67108864), + o < 0 + ? this.isubn(-o) + : this.negative !== 0 + ? this.length === 1 && (this.words[0] | 0) < o + ? ((this.words[0] = o - (this.words[0] | 0)), + (this.negative = 0), + this) + : ((this.negative = 0), + this.isubn(o), + (this.negative = 1), + this) + : this._iaddn(o) + ); + }), + (a.prototype._iaddn = function (o) { + this.words[0] += o; + for (var p = 0; p < this.length && this.words[p] >= 67108864; p++) + (this.words[p] -= 67108864), + p === this.length - 1 + ? (this.words[p + 1] = 1) + : this.words[p + 1]++; + return (this.length = Math.max(this.length, p + 1)), this; + }), + (a.prototype.isubn = function (o) { + if ((t(typeof o == "number"), t(o < 67108864), o < 0)) + return this.iaddn(-o); + if (this.negative !== 0) + return ( + (this.negative = 0), this.iaddn(o), (this.negative = 1), this + ); + if (((this.words[0] -= o), this.length === 1 && this.words[0] < 0)) + (this.words[0] = -this.words[0]), (this.negative = 1); + else + for (var p = 0; p < this.length && this.words[p] < 0; p++) + (this.words[p] += 67108864), (this.words[p + 1] -= 1); + return this.strip(); + }), + (a.prototype.addn = function (o) { + return this.clone().iaddn(o); + }), + (a.prototype.subn = function (o) { + return this.clone().isubn(o); + }), + (a.prototype.iabs = function () { + return (this.negative = 0), this; + }), + (a.prototype.abs = function () { + return this.clone().iabs(); + }), + (a.prototype._ishlnsubmul = function (o, p, y) { + var h = o.length + y, + b; + this._expand(h); + var T, + E = 0; + for (b = 0; b < o.length; b++) { + T = (this.words[b + y] | 0) + E; + var f = (o.words[b] | 0) * p; + (T -= f & 67108863), + (E = (T >> 26) - ((f / 67108864) | 0)), + (this.words[b + y] = T & 67108863); + } + for (; b < this.length - y; b++) + (T = (this.words[b + y] | 0) + E), + (E = T >> 26), + (this.words[b + y] = T & 67108863); + if (E === 0) return this.strip(); + for (t(E === -1), E = 0, b = 0; b < this.length; b++) + (T = -(this.words[b] | 0) + E), + (E = T >> 26), + (this.words[b] = T & 67108863); + return (this.negative = 1), this.strip(); + }), + (a.prototype._wordDiv = function (o, p) { + var y = this.length - o.length, + h = this.clone(), + b = o, + T = b.words[b.length - 1] | 0, + E = this._countBits(T); + (y = 26 - E), + y !== 0 && + ((b = b.ushln(y)), h.iushln(y), (T = b.words[b.length - 1] | 0)); + var f = h.length - b.length, + u; + if (p !== "mod") { + (u = new a(null)), + (u.length = f + 1), + (u.words = new Array(u.length)); + for (var v = 0; v < u.length; v++) u.words[v] = 0; + } + var R = h.clone()._ishlnsubmul(b, 1, f); + R.negative === 0 && ((h = R), u && (u.words[f] = 1)); + for (var A = f - 1; A >= 0; A--) { + var L = + (h.words[b.length + A] | 0) * 67108864 + + (h.words[b.length + A - 1] | 0); + for ( + L = Math.min((L / T) | 0, 67108863), h._ishlnsubmul(b, L, A); + h.negative !== 0; + + ) + L--, + (h.negative = 0), + h._ishlnsubmul(b, 1, A), + h.isZero() || (h.negative ^= 1); + u && (u.words[A] = L); + } + return ( + u && u.strip(), + h.strip(), + p !== "div" && y !== 0 && h.iushrn(y), + { div: u || null, mod: h } + ); + }), + (a.prototype.divmod = function (o, p, y) { + if ((t(!o.isZero()), this.isZero())) + return { div: new a(0), mod: new a(0) }; + var h, b, T; + return this.negative !== 0 && o.negative === 0 + ? ((T = this.neg().divmod(o, p)), + p !== "mod" && (h = T.div.neg()), + p !== "div" && + ((b = T.mod.neg()), y && b.negative !== 0 && b.iadd(o)), + { div: h, mod: b }) + : this.negative === 0 && o.negative !== 0 + ? ((T = this.divmod(o.neg(), p)), + p !== "mod" && (h = T.div.neg()), + { div: h, mod: T.mod }) + : (this.negative & o.negative) !== 0 + ? ((T = this.neg().divmod(o.neg(), p)), + p !== "div" && + ((b = T.mod.neg()), y && b.negative !== 0 && b.isub(o)), + { div: T.div, mod: b }) + : o.length > this.length || this.cmp(o) < 0 + ? { div: new a(0), mod: this } + : o.length === 1 + ? p === "div" + ? { div: this.divn(o.words[0]), mod: null } + : p === "mod" + ? { div: null, mod: new a(this.modn(o.words[0])) } + : { + div: this.divn(o.words[0]), + mod: new a(this.modn(o.words[0])), + } + : this._wordDiv(o, p); + }), + (a.prototype.div = function (o) { + return this.divmod(o, "div", !1).div; + }), + (a.prototype.mod = function (o) { + return this.divmod(o, "mod", !1).mod; + }), + (a.prototype.umod = function (o) { + return this.divmod(o, "mod", !0).mod; + }), + (a.prototype.divRound = function (o) { + var p = this.divmod(o); + if (p.mod.isZero()) return p.div; + var y = p.div.negative !== 0 ? p.mod.isub(o) : p.mod, + h = o.ushrn(1), + b = o.andln(1), + T = y.cmp(h); + return T < 0 || (b === 1 && T === 0) + ? p.div + : p.div.negative !== 0 + ? p.div.isubn(1) + : p.div.iaddn(1); + }), + (a.prototype.modn = function (o) { + t(o <= 67108863); + for (var p = (1 << 26) % o, y = 0, h = this.length - 1; h >= 0; h--) + y = (p * y + (this.words[h] | 0)) % o; + return y; + }), + (a.prototype.idivn = function (o) { + t(o <= 67108863); + for (var p = 0, y = this.length - 1; y >= 0; y--) { + var h = (this.words[y] | 0) + p * 67108864; + (this.words[y] = (h / o) | 0), (p = h % o); + } + return this.strip(); + }), + (a.prototype.divn = function (o) { + return this.clone().idivn(o); + }), + (a.prototype.egcd = function (o) { + t(o.negative === 0), t(!o.isZero()); + var p = this, + y = o.clone(); + p.negative !== 0 ? (p = p.umod(o)) : (p = p.clone()); + for ( + var h = new a(1), b = new a(0), T = new a(0), E = new a(1), f = 0; + p.isEven() && y.isEven(); + + ) + p.iushrn(1), y.iushrn(1), ++f; + for (var u = y.clone(), v = p.clone(); !p.isZero(); ) { + for ( + var R = 0, A = 1; + (p.words[0] & A) === 0 && R < 26; + ++R, A <<= 1 + ); + if (R > 0) + for (p.iushrn(R); R-- > 0; ) + (h.isOdd() || b.isOdd()) && (h.iadd(u), b.isub(v)), + h.iushrn(1), + b.iushrn(1); + for ( + var L = 0, G = 1; + (y.words[0] & G) === 0 && L < 26; + ++L, G <<= 1 + ); + if (L > 0) + for (y.iushrn(L); L-- > 0; ) + (T.isOdd() || E.isOdd()) && (T.iadd(u), E.isub(v)), + T.iushrn(1), + E.iushrn(1); + p.cmp(y) >= 0 + ? (p.isub(y), h.isub(T), b.isub(E)) + : (y.isub(p), T.isub(h), E.isub(b)); + } + return { a: T, b: E, gcd: y.iushln(f) }; + }), + (a.prototype._invmp = function (o) { + t(o.negative === 0), t(!o.isZero()); + var p = this, + y = o.clone(); + p.negative !== 0 ? (p = p.umod(o)) : (p = p.clone()); + for ( + var h = new a(1), b = new a(0), T = y.clone(); + p.cmpn(1) > 0 && y.cmpn(1) > 0; + + ) { + for ( + var E = 0, f = 1; + (p.words[0] & f) === 0 && E < 26; + ++E, f <<= 1 + ); + if (E > 0) + for (p.iushrn(E); E-- > 0; ) h.isOdd() && h.iadd(T), h.iushrn(1); + for ( + var u = 0, v = 1; + (y.words[0] & v) === 0 && u < 26; + ++u, v <<= 1 + ); + if (u > 0) + for (y.iushrn(u); u-- > 0; ) b.isOdd() && b.iadd(T), b.iushrn(1); + p.cmp(y) >= 0 ? (p.isub(y), h.isub(b)) : (y.isub(p), b.isub(h)); + } + var R; + return ( + p.cmpn(1) === 0 ? (R = h) : (R = b), R.cmpn(0) < 0 && R.iadd(o), R + ); + }), + (a.prototype.gcd = function (o) { + if (this.isZero()) return o.abs(); + if (o.isZero()) return this.abs(); + var p = this.clone(), + y = o.clone(); + (p.negative = 0), (y.negative = 0); + for (var h = 0; p.isEven() && y.isEven(); h++) + p.iushrn(1), y.iushrn(1); + do { + for (; p.isEven(); ) p.iushrn(1); + for (; y.isEven(); ) y.iushrn(1); + var b = p.cmp(y); + if (b < 0) { + var T = p; + (p = y), (y = T); + } else if (b === 0 || y.cmpn(1) === 0) break; + p.isub(y); + } while (!0); + return y.iushln(h); + }), + (a.prototype.invm = function (o) { + return this.egcd(o).a.umod(o); + }), + (a.prototype.isEven = function () { + return (this.words[0] & 1) === 0; + }), + (a.prototype.isOdd = function () { + return (this.words[0] & 1) === 1; + }), + (a.prototype.andln = function (o) { + return this.words[0] & o; + }), + (a.prototype.bincn = function (o) { + t(typeof o == "number"); + var p = o % 26, + y = (o - p) / 26, + h = 1 << p; + if (this.length <= y) + return this._expand(y + 1), (this.words[y] |= h), this; + for (var b = h, T = y; b !== 0 && T < this.length; T++) { + var E = this.words[T] | 0; + (E += b), (b = E >>> 26), (E &= 67108863), (this.words[T] = E); + } + return b !== 0 && ((this.words[T] = b), this.length++), this; + }), + (a.prototype.isZero = function () { + return this.length === 1 && this.words[0] === 0; + }), + (a.prototype.cmpn = function (o) { + var p = o < 0; + if (this.negative !== 0 && !p) return -1; + if (this.negative === 0 && p) return 1; + this.strip(); + var y; + if (this.length > 1) y = 1; + else { + p && (o = -o), t(o <= 67108863, "Number is too big"); + var h = this.words[0] | 0; + y = h === o ? 0 : h < o ? -1 : 1; + } + return this.negative !== 0 ? -y | 0 : y; + }), + (a.prototype.cmp = function (o) { + if (this.negative !== 0 && o.negative === 0) return -1; + if (this.negative === 0 && o.negative !== 0) return 1; + var p = this.ucmp(o); + return this.negative !== 0 ? -p | 0 : p; + }), + (a.prototype.ucmp = function (o) { + if (this.length > o.length) return 1; + if (this.length < o.length) return -1; + for (var p = 0, y = this.length - 1; y >= 0; y--) { + var h = this.words[y] | 0, + b = o.words[y] | 0; + if (h !== b) { + h < b ? (p = -1) : h > b && (p = 1); + break; + } + } + return p; + }), + (a.prototype.gtn = function (o) { + return this.cmpn(o) === 1; + }), + (a.prototype.gt = function (o) { + return this.cmp(o) === 1; + }), + (a.prototype.gten = function (o) { + return this.cmpn(o) >= 0; + }), + (a.prototype.gte = function (o) { + return this.cmp(o) >= 0; + }), + (a.prototype.ltn = function (o) { + return this.cmpn(o) === -1; + }), + (a.prototype.lt = function (o) { + return this.cmp(o) === -1; + }), + (a.prototype.lten = function (o) { + return this.cmpn(o) <= 0; + }), + (a.prototype.lte = function (o) { + return this.cmp(o) <= 0; + }), + (a.prototype.eqn = function (o) { + return this.cmpn(o) === 0; + }), + (a.prototype.eq = function (o) { + return this.cmp(o) === 0; + }), + (a.red = function (o) { + return new Y(o); + }), + (a.prototype.toRed = function (o) { + return ( + t(!this.red, "Already a number in reduction context"), + t(this.negative === 0, "red works only with positives"), + o.convertTo(this)._forceRed(o) + ); + }), + (a.prototype.fromRed = function () { + return ( + t(this.red, "fromRed works only with numbers in reduction context"), + this.red.convertFrom(this) + ); + }), + (a.prototype._forceRed = function (o) { + return (this.red = o), this; + }), + (a.prototype.forceRed = function (o) { + return ( + t(!this.red, "Already a number in reduction context"), + this._forceRed(o) + ); + }), + (a.prototype.redAdd = function (o) { + return ( + t(this.red, "redAdd works only with red numbers"), + this.red.add(this, o) + ); + }), + (a.prototype.redIAdd = function (o) { + return ( + t(this.red, "redIAdd works only with red numbers"), + this.red.iadd(this, o) + ); + }), + (a.prototype.redSub = function (o) { + return ( + t(this.red, "redSub works only with red numbers"), + this.red.sub(this, o) + ); + }), + (a.prototype.redISub = function (o) { + return ( + t(this.red, "redISub works only with red numbers"), + this.red.isub(this, o) + ); + }), + (a.prototype.redShl = function (o) { + return ( + t(this.red, "redShl works only with red numbers"), + this.red.shl(this, o) + ); + }), + (a.prototype.redMul = function (o) { + return ( + t(this.red, "redMul works only with red numbers"), + this.red._verify2(this, o), + this.red.mul(this, o) + ); + }), + (a.prototype.redIMul = function (o) { + return ( + t(this.red, "redMul works only with red numbers"), + this.red._verify2(this, o), + this.red.imul(this, o) + ); + }), + (a.prototype.redSqr = function () { + return ( + t(this.red, "redSqr works only with red numbers"), + this.red._verify1(this), + this.red.sqr(this) + ); + }), + (a.prototype.redISqr = function () { + return ( + t(this.red, "redISqr works only with red numbers"), + this.red._verify1(this), + this.red.isqr(this) + ); + }), + (a.prototype.redSqrt = function () { + return ( + t(this.red, "redSqrt works only with red numbers"), + this.red._verify1(this), + this.red.sqrt(this) + ); + }), + (a.prototype.redInvm = function () { + return ( + t(this.red, "redInvm works only with red numbers"), + this.red._verify1(this), + this.red.invm(this) + ); + }), + (a.prototype.redNeg = function () { + return ( + t(this.red, "redNeg works only with red numbers"), + this.red._verify1(this), + this.red.neg(this) + ); + }), + (a.prototype.redPow = function (o) { + return ( + t(this.red && !o.red, "redPow(normalNum)"), + this.red._verify1(this), + this.red.pow(this, o) + ); + }); + var H = { k256: null, p224: null, p192: null, p25519: null }; + function j(g, o) { + (this.name = g), + (this.p = new a(o, 16)), + (this.n = this.p.bitLength()), + (this.k = new a(1).iushln(this.n).isub(this.p)), + (this.tmp = this._tmp()); + } + (j.prototype._tmp = function () { + var o = new a(null); + return (o.words = new Array(Math.ceil(this.n / 13))), o; + }), + (j.prototype.ireduce = function (o) { + var p = o, + y; + do + this.split(p, this.tmp), + (p = this.imulK(p)), + (p = p.iadd(this.tmp)), + (y = p.bitLength()); + while (y > this.n); + var h = y < this.n ? -1 : p.ucmp(this.p); + return ( + h === 0 + ? ((p.words[0] = 0), (p.length = 1)) + : h > 0 + ? p.isub(this.p) + : p.strip !== void 0 + ? p.strip() + : p._strip(), + p + ); + }), + (j.prototype.split = function (o, p) { + o.iushrn(this.n, 0, p); + }), + (j.prototype.imulK = function (o) { + return o.imul(this.k); + }); + function V() { + j.call( + this, + "k256", + "ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f" + ); + } + n(V, j), + (V.prototype.split = function (o, p) { + for (var y = 4194303, h = Math.min(o.length, 9), b = 0; b < h; b++) + p.words[b] = o.words[b]; + if (((p.length = h), o.length <= 9)) { + (o.words[0] = 0), (o.length = 1); + return; + } + var T = o.words[9]; + for (p.words[p.length++] = T & y, b = 10; b < o.length; b++) { + var E = o.words[b] | 0; + (o.words[b - 10] = ((E & y) << 4) | (T >>> 22)), (T = E); + } + (T >>>= 22), + (o.words[b - 10] = T), + T === 0 && o.length > 10 ? (o.length -= 10) : (o.length -= 9); + }), + (V.prototype.imulK = function (o) { + (o.words[o.length] = 0), (o.words[o.length + 1] = 0), (o.length += 2); + for (var p = 0, y = 0; y < o.length; y++) { + var h = o.words[y] | 0; + (p += h * 977), + (o.words[y] = p & 67108863), + (p = h * 64 + ((p / 67108864) | 0)); + } + return ( + o.words[o.length - 1] === 0 && + (o.length--, o.words[o.length - 1] === 0 && o.length--), + o + ); + }); + function te() { + j.call( + this, + "p224", + "ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001" + ); + } + n(te, j); + function $() { + j.call( + this, + "p192", + "ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff" + ); + } + n($, j); + function ae() { + j.call( + this, + "25519", + "7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed" + ); + } + n(ae, j), + (ae.prototype.imulK = function (o) { + for (var p = 0, y = 0; y < o.length; y++) { + var h = (o.words[y] | 0) * 19 + p, + b = h & 67108863; + (h >>>= 26), (o.words[y] = b), (p = h); + } + return p !== 0 && (o.words[o.length++] = p), o; + }), + (a._prime = function (o) { + if (H[o]) return H[o]; + var p; + if (o === "k256") p = new V(); + else if (o === "p224") p = new te(); + else if (o === "p192") p = new $(); + else if (o === "p25519") p = new ae(); + else throw new Error("Unknown prime " + o); + return (H[o] = p), p; + }); + function Y(g) { + if (typeof g == "string") { + var o = a._prime(g); + (this.m = o.p), (this.prime = o); + } else + t(g.gtn(1), "modulus must be greater than 1"), + (this.m = g), + (this.prime = null); + } + (Y.prototype._verify1 = function (o) { + t(o.negative === 0, "red works only with positives"), + t(o.red, "red works only with red numbers"); + }), + (Y.prototype._verify2 = function (o, p) { + t((o.negative | p.negative) === 0, "red works only with positives"), + t(o.red && o.red === p.red, "red works only with red numbers"); + }), + (Y.prototype.imod = function (o) { + return this.prime + ? this.prime.ireduce(o)._forceRed(this) + : o.umod(this.m)._forceRed(this); + }), + (Y.prototype.neg = function (o) { + return o.isZero() ? o.clone() : this.m.sub(o)._forceRed(this); + }), + (Y.prototype.add = function (o, p) { + this._verify2(o, p); + var y = o.add(p); + return y.cmp(this.m) >= 0 && y.isub(this.m), y._forceRed(this); + }), + (Y.prototype.iadd = function (o, p) { + this._verify2(o, p); + var y = o.iadd(p); + return y.cmp(this.m) >= 0 && y.isub(this.m), y; + }), + (Y.prototype.sub = function (o, p) { + this._verify2(o, p); + var y = o.sub(p); + return y.cmpn(0) < 0 && y.iadd(this.m), y._forceRed(this); + }), + (Y.prototype.isub = function (o, p) { + this._verify2(o, p); + var y = o.isub(p); + return y.cmpn(0) < 0 && y.iadd(this.m), y; + }), + (Y.prototype.shl = function (o, p) { + return this._verify1(o), this.imod(o.ushln(p)); + }), + (Y.prototype.imul = function (o, p) { + return this._verify2(o, p), this.imod(o.imul(p)); + }), + (Y.prototype.mul = function (o, p) { + return this._verify2(o, p), this.imod(o.mul(p)); + }), + (Y.prototype.isqr = function (o) { + return this.imul(o, o.clone()); + }), + (Y.prototype.sqr = function (o) { + return this.mul(o, o); + }), + (Y.prototype.sqrt = function (o) { + if (o.isZero()) return o.clone(); + var p = this.m.andln(3); + if ((t(p % 2 === 1), p === 3)) { + var y = this.m.add(new a(1)).iushrn(2); + return this.pow(o, y); + } + for (var h = this.m.subn(1), b = 0; !h.isZero() && h.andln(1) === 0; ) + b++, h.iushrn(1); + t(!h.isZero()); + var T = new a(1).toRed(this), + E = T.redNeg(), + f = this.m.subn(1).iushrn(1), + u = this.m.bitLength(); + for (u = new a(2 * u * u).toRed(this); this.pow(u, f).cmp(E) !== 0; ) + u.redIAdd(E); + for ( + var v = this.pow(u, h), + R = this.pow(o, h.addn(1).iushrn(1)), + A = this.pow(o, h), + L = b; + A.cmp(T) !== 0; + + ) { + for (var G = A, U = 0; G.cmp(T) !== 0; U++) G = G.redSqr(); + t(U < L); + var Z = this.pow(v, new a(1).iushln(L - U - 1)); + (R = R.redMul(Z)), (v = Z.redSqr()), (A = A.redMul(v)), (L = U); + } + return R; + }), + (Y.prototype.invm = function (o) { + var p = o._invmp(this.m); + return p.negative !== 0 + ? ((p.negative = 0), this.imod(p).redNeg()) + : this.imod(p); + }), + (Y.prototype.pow = function (o, p) { + if (p.isZero()) return new a(1).toRed(this); + if (p.cmpn(1) === 0) return o.clone(); + var y = 4, + h = new Array(1 << y); + (h[0] = new a(1).toRed(this)), (h[1] = o); + for (var b = 2; b < h.length; b++) h[b] = this.mul(h[b - 1], o); + var T = h[0], + E = 0, + f = 0, + u = p.bitLength() % 26; + for (u === 0 && (u = 26), b = p.length - 1; b >= 0; b--) { + for (var v = p.words[b], R = u - 1; R >= 0; R--) { + var A = (v >> R) & 1; + if ((T !== h[0] && (T = this.sqr(T)), A === 0 && E === 0)) { + f = 0; + continue; + } + (E <<= 1), + (E |= A), + f++, + !(f !== y && (b !== 0 || R !== 0)) && + ((T = this.mul(T, h[E])), (f = 0), (E = 0)); + } + u = 26; + } + return T; + }), + (Y.prototype.convertTo = function (o) { + var p = o.umod(this.m); + return p === o ? p.clone() : p; + }), + (Y.prototype.convertFrom = function (o) { + var p = o.clone(); + return (p.red = null), p; + }), + (a.mont = function (o) { + return new K(o); + }); + function K(g) { + Y.call(this, g), + (this.shift = this.m.bitLength()), + this.shift % 26 !== 0 && (this.shift += 26 - (this.shift % 26)), + (this.r = new a(1).iushln(this.shift)), + (this.r2 = this.imod(this.r.sqr())), + (this.rinv = this.r._invmp(this.m)), + (this.minv = this.rinv.mul(this.r).isubn(1).div(this.m)), + (this.minv = this.minv.umod(this.r)), + (this.minv = this.r.sub(this.minv)); + } + n(K, Y), + (K.prototype.convertTo = function (o) { + return this.imod(o.ushln(this.shift)); + }), + (K.prototype.convertFrom = function (o) { + var p = this.imod(o.mul(this.rinv)); + return (p.red = null), p; + }), + (K.prototype.imul = function (o, p) { + if (o.isZero() || p.isZero()) + return (o.words[0] = 0), (o.length = 1), o; + var y = o.imul(p), + h = y + .maskn(this.shift) + .mul(this.minv) + .imaskn(this.shift) + .mul(this.m), + b = y.isub(h).iushrn(this.shift), + T = b; + return ( + b.cmp(this.m) >= 0 + ? (T = b.isub(this.m)) + : b.cmpn(0) < 0 && (T = b.iadd(this.m)), + T._forceRed(this) + ); + }), + (K.prototype.mul = function (o, p) { + if (o.isZero() || p.isZero()) return new a(0)._forceRed(this); + var y = o.mul(p), + h = y + .maskn(this.shift) + .mul(this.minv) + .imaskn(this.shift) + .mul(this.m), + b = y.isub(h).iushrn(this.shift), + T = b; + return ( + b.cmp(this.m) >= 0 + ? (T = b.isub(this.m)) + : b.cmpn(0) < 0 && (T = b.iadd(this.m)), + T._forceRed(this) + ); + }), + (K.prototype.invm = function (o) { + var p = this.imod(o._invmp(this.m).mul(this.r2)); + return p._forceRed(this); + }); + })(typeof DF > "u" || DF, ppe); + }); + var mpe = N((zGr, fpe) => { + _(); + x(); + var d_t = AT(), + p_t = hpe(); + fpe.exports = function (e) { + return new Zy(e); + }; + var qu = { + secp256k1: { name: "secp256k1", byteLength: 32 }, + secp224r1: { name: "p224", byteLength: 28 }, + prime256v1: { name: "p256", byteLength: 32 }, + prime192v1: { name: "p192", byteLength: 24 }, + ed25519: { name: "ed25519", byteLength: 32 }, + secp384r1: { name: "p384", byteLength: 48 }, + secp521r1: { name: "p521", byteLength: 66 }, + }; + qu.p224 = qu.secp224r1; + qu.p256 = qu.secp256r1 = qu.prime256v1; + qu.p192 = qu.secp192r1 = qu.prime192v1; + qu.p384 = qu.secp384r1; + qu.p521 = qu.secp521r1; + function Zy(r) { + (this.curveType = qu[r]), + this.curveType || (this.curveType = { name: r }), + (this.curve = new d_t.ec(this.curveType.name)), + (this.keys = void 0); + } + Zy.prototype.generateKeys = function (r, e) { + return (this.keys = this.curve.genKeyPair()), this.getPublicKey(r, e); + }; + Zy.prototype.computeSecret = function (r, e, t) { + (e = e || "utf8"), P.Buffer.isBuffer(r) || (r = new P.Buffer(r, e)); + var n = this.curve.keyFromPublic(r).getPublic(), + a = n.mul(this.keys.getPrivate()).getX(); + return qF(a, t, this.curveType.byteLength); + }; + Zy.prototype.getPublicKey = function (r, e) { + var t = this.keys.getPublic(e === "compressed", !0); + return ( + e === "hybrid" && (t[t.length - 1] % 2 ? (t[0] = 7) : (t[0] = 6)), + qF(t, r) + ); + }; + Zy.prototype.getPrivateKey = function (r) { + return qF(this.keys.getPrivate(), r); + }; + Zy.prototype.setPublicKey = function (r, e) { + return ( + (e = e || "utf8"), + P.Buffer.isBuffer(r) || (r = new P.Buffer(r, e)), + this.keys._importPublic(r), + this + ); + }; + Zy.prototype.setPrivateKey = function (r, e) { + (e = e || "utf8"), P.Buffer.isBuffer(r) || (r = new P.Buffer(r, e)); + var t = new p_t(r); + return ( + (t = t.toString(16)), + (this.keys = this.curve.genKeyPair()), + this.keys._importPrivate(t), + this + ); + }; + function qF(r, e, t) { + Array.isArray(r) || (r = r.toArray()); + var n = new P.Buffer(r); + if (t && n.length < t) { + var a = new P.Buffer(t - n.length); + a.fill(0), (n = P.Buffer.concat([a, n])); + } + return e ? n.toString(e) : n; + } + }); + var WF = N((VGr, ype) => { + _(); + x(); + var h_t = W1(), + FF = zr().Buffer; + ype.exports = function (r, e) { + for (var t = FF.alloc(0), n = 0, a; t.length < e; ) + (a = f_t(n++)), + (t = FF.concat([t, h_t("sha1").update(r).update(a).digest()])); + return t.slice(0, e); + }; + function f_t(r) { + var e = FF.allocUnsafe(4); + return e.writeUInt32BE(r, 0), e; + } + }); + var UF = N(($Gr, gpe) => { + _(); + x(); + gpe.exports = function (e, t) { + for (var n = e.length, a = -1; ++a < n; ) e[a] ^= t[a]; + return e; + }; + }); + var eA = N((bpe, HF) => { + _(); + x(); + (function (r, e) { + "use strict"; + function t(g, o) { + if (!g) throw new Error(o || "Assertion failed"); + } + function n(g, o) { + g.super_ = o; + var p = function () {}; + (p.prototype = o.prototype), + (g.prototype = new p()), + (g.prototype.constructor = g); + } + function a(g, o, p) { + if (a.isBN(g)) return g; + (this.negative = 0), + (this.words = null), + (this.length = 0), + (this.red = null), + g !== null && + ((o === "le" || o === "be") && ((p = o), (o = 10)), + this._init(g || 0, o || 10, p || "be")); + } + typeof r == "object" ? (r.exports = a) : (e.BN = a), + (a.BN = a), + (a.wordSize = 26); + var i; + try { + typeof window < "u" && typeof window.Buffer < "u" + ? (i = window.Buffer) + : (i = Hi().Buffer); + } catch {} + (a.isBN = function (o) { + return o instanceof a + ? !0 + : o !== null && + typeof o == "object" && + o.constructor.wordSize === a.wordSize && + Array.isArray(o.words); + }), + (a.max = function (o, p) { + return o.cmp(p) > 0 ? o : p; + }), + (a.min = function (o, p) { + return o.cmp(p) < 0 ? o : p; + }), + (a.prototype._init = function (o, p, y) { + if (typeof o == "number") return this._initNumber(o, p, y); + if (typeof o == "object") return this._initArray(o, p, y); + p === "hex" && (p = 16), + t(p === (p | 0) && p >= 2 && p <= 36), + (o = o.toString().replace(/\s+/g, "")); + var h = 0; + o[0] === "-" && (h++, (this.negative = 1)), + h < o.length && + (p === 16 + ? this._parseHex(o, h, y) + : (this._parseBase(o, p, h), + y === "le" && this._initArray(this.toArray(), p, y))); + }), + (a.prototype._initNumber = function (o, p, y) { + o < 0 && ((this.negative = 1), (o = -o)), + o < 67108864 + ? ((this.words = [o & 67108863]), (this.length = 1)) + : o < 4503599627370496 + ? ((this.words = [o & 67108863, (o / 67108864) & 67108863]), + (this.length = 2)) + : (t(o < 9007199254740992), + (this.words = [o & 67108863, (o / 67108864) & 67108863, 1]), + (this.length = 3)), + y === "le" && this._initArray(this.toArray(), p, y); + }), + (a.prototype._initArray = function (o, p, y) { + if ((t(typeof o.length == "number"), o.length <= 0)) + return (this.words = [0]), (this.length = 1), this; + (this.length = Math.ceil(o.length / 3)), + (this.words = new Array(this.length)); + for (var h = 0; h < this.length; h++) this.words[h] = 0; + var b, + T, + E = 0; + if (y === "be") + for (h = o.length - 1, b = 0; h >= 0; h -= 3) + (T = o[h] | (o[h - 1] << 8) | (o[h - 2] << 16)), + (this.words[b] |= (T << E) & 67108863), + (this.words[b + 1] = (T >>> (26 - E)) & 67108863), + (E += 24), + E >= 26 && ((E -= 26), b++); + else if (y === "le") + for (h = 0, b = 0; h < o.length; h += 3) + (T = o[h] | (o[h + 1] << 8) | (o[h + 2] << 16)), + (this.words[b] |= (T << E) & 67108863), + (this.words[b + 1] = (T >>> (26 - E)) & 67108863), + (E += 24), + E >= 26 && ((E -= 26), b++); + return this.strip(); + }); + function s(g, o) { + var p = g.charCodeAt(o); + return p >= 65 && p <= 70 + ? p - 55 + : p >= 97 && p <= 102 + ? p - 87 + : (p - 48) & 15; + } + function c(g, o, p) { + var y = s(g, p); + return p - 1 >= o && (y |= s(g, p - 1) << 4), y; + } + a.prototype._parseHex = function (o, p, y) { + (this.length = Math.ceil((o.length - p) / 6)), + (this.words = new Array(this.length)); + for (var h = 0; h < this.length; h++) this.words[h] = 0; + var b = 0, + T = 0, + E; + if (y === "be") + for (h = o.length - 1; h >= p; h -= 2) + (E = c(o, p, h) << b), + (this.words[T] |= E & 67108863), + b >= 18 + ? ((b -= 18), (T += 1), (this.words[T] |= E >>> 26)) + : (b += 8); + else { + var f = o.length - p; + for (h = f % 2 === 0 ? p + 1 : p; h < o.length; h += 2) + (E = c(o, p, h) << b), + (this.words[T] |= E & 67108863), + b >= 18 + ? ((b -= 18), (T += 1), (this.words[T] |= E >>> 26)) + : (b += 8); + } + this.strip(); + }; + function l(g, o, p, y) { + for (var h = 0, b = Math.min(g.length, p), T = o; T < b; T++) { + var E = g.charCodeAt(T) - 48; + (h *= y), + E >= 49 + ? (h += E - 49 + 10) + : E >= 17 + ? (h += E - 17 + 10) + : (h += E); + } + return h; + } + (a.prototype._parseBase = function (o, p, y) { + (this.words = [0]), (this.length = 1); + for (var h = 0, b = 1; b <= 67108863; b *= p) h++; + h--, (b = (b / p) | 0); + for ( + var T = o.length - y, + E = T % h, + f = Math.min(T, T - E) + y, + u = 0, + v = y; + v < f; + v += h + ) + (u = l(o, v, v + h, p)), + this.imuln(b), + this.words[0] + u < 67108864 + ? (this.words[0] += u) + : this._iaddn(u); + if (E !== 0) { + var R = 1; + for (u = l(o, v, o.length, p), v = 0; v < E; v++) R *= p; + this.imuln(R), + this.words[0] + u < 67108864 + ? (this.words[0] += u) + : this._iaddn(u); + } + this.strip(); + }), + (a.prototype.copy = function (o) { + o.words = new Array(this.length); + for (var p = 0; p < this.length; p++) o.words[p] = this.words[p]; + (o.length = this.length), + (o.negative = this.negative), + (o.red = this.red); + }), + (a.prototype.clone = function () { + var o = new a(null); + return this.copy(o), o; + }), + (a.prototype._expand = function (o) { + for (; this.length < o; ) this.words[this.length++] = 0; + return this; + }), + (a.prototype.strip = function () { + for (; this.length > 1 && this.words[this.length - 1] === 0; ) + this.length--; + return this._normSign(); + }), + (a.prototype._normSign = function () { + return ( + this.length === 1 && this.words[0] === 0 && (this.negative = 0), + this + ); + }), + (a.prototype.inspect = function () { + return (this.red ? ""; + }); + var d = [ + "", + "0", + "00", + "000", + "0000", + "00000", + "000000", + "0000000", + "00000000", + "000000000", + "0000000000", + "00000000000", + "000000000000", + "0000000000000", + "00000000000000", + "000000000000000", + "0000000000000000", + "00000000000000000", + "000000000000000000", + "0000000000000000000", + "00000000000000000000", + "000000000000000000000", + "0000000000000000000000", + "00000000000000000000000", + "000000000000000000000000", + "0000000000000000000000000", + ], + m = [ + 0, 0, 25, 16, 12, 11, 10, 9, 8, 8, 7, 7, 7, 7, 6, 6, 6, 6, 6, 6, 6, 5, + 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, + ], + w = [ + 0, 0, 33554432, 43046721, 16777216, 48828125, 60466176, 40353607, + 16777216, 43046721, 1e7, 19487171, 35831808, 62748517, 7529536, + 11390625, 16777216, 24137569, 34012224, 47045881, 64e6, 4084101, + 5153632, 6436343, 7962624, 9765625, 11881376, 14348907, 17210368, + 20511149, 243e5, 28629151, 33554432, 39135393, 45435424, 52521875, + 60466176, + ]; + (a.prototype.toString = function (o, p) { + (o = o || 10), (p = p | 0 || 1); + var y; + if (o === 16 || o === "hex") { + y = ""; + for (var h = 0, b = 0, T = 0; T < this.length; T++) { + var E = this.words[T], + f = (((E << h) | b) & 16777215).toString(16); + (b = (E >>> (24 - h)) & 16777215), + b !== 0 || T !== this.length - 1 + ? (y = d[6 - f.length] + f + y) + : (y = f + y), + (h += 2), + h >= 26 && ((h -= 26), T--); + } + for (b !== 0 && (y = b.toString(16) + y); y.length % p !== 0; ) + y = "0" + y; + return this.negative !== 0 && (y = "-" + y), y; + } + if (o === (o | 0) && o >= 2 && o <= 36) { + var u = m[o], + v = w[o]; + y = ""; + var R = this.clone(); + for (R.negative = 0; !R.isZero(); ) { + var A = R.modn(v).toString(o); + (R = R.idivn(v)), + R.isZero() ? (y = A + y) : (y = d[u - A.length] + A + y); + } + for (this.isZero() && (y = "0" + y); y.length % p !== 0; ) + y = "0" + y; + return this.negative !== 0 && (y = "-" + y), y; + } + t(!1, "Base should be between 2 and 36"); + }), + (a.prototype.toNumber = function () { + var o = this.words[0]; + return ( + this.length === 2 + ? (o += this.words[1] * 67108864) + : this.length === 3 && this.words[2] === 1 + ? (o += 4503599627370496 + this.words[1] * 67108864) + : this.length > 2 && + t(!1, "Number can only safely store up to 53 bits"), + this.negative !== 0 ? -o : o + ); + }), + (a.prototype.toJSON = function () { + return this.toString(16); + }), + (a.prototype.toBuffer = function (o, p) { + return t(typeof i < "u"), this.toArrayLike(i, o, p); + }), + (a.prototype.toArray = function (o, p) { + return this.toArrayLike(Array, o, p); + }), + (a.prototype.toArrayLike = function (o, p, y) { + var h = this.byteLength(), + b = y || Math.max(1, h); + t(h <= b, "byte array longer than desired length"), + t(b > 0, "Requested array length <= 0"), + this.strip(); + var T = p === "le", + E = new o(b), + f, + u, + v = this.clone(); + if (T) { + for (u = 0; !v.isZero(); u++) + (f = v.andln(255)), v.iushrn(8), (E[u] = f); + for (; u < b; u++) E[u] = 0; + } else { + for (u = 0; u < b - h; u++) E[u] = 0; + for (u = 0; !v.isZero(); u++) + (f = v.andln(255)), v.iushrn(8), (E[b - u - 1] = f); + } + return E; + }), + Math.clz32 + ? (a.prototype._countBits = function (o) { + return 32 - Math.clz32(o); + }) + : (a.prototype._countBits = function (o) { + var p = o, + y = 0; + return ( + p >= 4096 && ((y += 13), (p >>>= 13)), + p >= 64 && ((y += 7), (p >>>= 7)), + p >= 8 && ((y += 4), (p >>>= 4)), + p >= 2 && ((y += 2), (p >>>= 2)), + y + p + ); + }), + (a.prototype._zeroBits = function (o) { + if (o === 0) return 26; + var p = o, + y = 0; + return ( + (p & 8191) === 0 && ((y += 13), (p >>>= 13)), + (p & 127) === 0 && ((y += 7), (p >>>= 7)), + (p & 15) === 0 && ((y += 4), (p >>>= 4)), + (p & 3) === 0 && ((y += 2), (p >>>= 2)), + (p & 1) === 0 && y++, + y + ); + }), + (a.prototype.bitLength = function () { + var o = this.words[this.length - 1], + p = this._countBits(o); + return (this.length - 1) * 26 + p; + }); + function C(g) { + for (var o = new Array(g.bitLength()), p = 0; p < o.length; p++) { + var y = (p / 26) | 0, + h = p % 26; + o[p] = (g.words[y] & (1 << h)) >>> h; + } + return o; + } + (a.prototype.zeroBits = function () { + if (this.isZero()) return 0; + for (var o = 0, p = 0; p < this.length; p++) { + var y = this._zeroBits(this.words[p]); + if (((o += y), y !== 26)) break; + } + return o; + }), + (a.prototype.byteLength = function () { + return Math.ceil(this.bitLength() / 8); + }), + (a.prototype.toTwos = function (o) { + return this.negative !== 0 + ? this.abs().inotn(o).iaddn(1) + : this.clone(); + }), + (a.prototype.fromTwos = function (o) { + return this.testn(o - 1) + ? this.notn(o).iaddn(1).ineg() + : this.clone(); + }), + (a.prototype.isNeg = function () { + return this.negative !== 0; + }), + (a.prototype.neg = function () { + return this.clone().ineg(); + }), + (a.prototype.ineg = function () { + return this.isZero() || (this.negative ^= 1), this; + }), + (a.prototype.iuor = function (o) { + for (; this.length < o.length; ) this.words[this.length++] = 0; + for (var p = 0; p < o.length; p++) + this.words[p] = this.words[p] | o.words[p]; + return this.strip(); + }), + (a.prototype.ior = function (o) { + return t((this.negative | o.negative) === 0), this.iuor(o); + }), + (a.prototype.or = function (o) { + return this.length > o.length + ? this.clone().ior(o) + : o.clone().ior(this); + }), + (a.prototype.uor = function (o) { + return this.length > o.length + ? this.clone().iuor(o) + : o.clone().iuor(this); + }), + (a.prototype.iuand = function (o) { + var p; + this.length > o.length ? (p = o) : (p = this); + for (var y = 0; y < p.length; y++) + this.words[y] = this.words[y] & o.words[y]; + return (this.length = p.length), this.strip(); + }), + (a.prototype.iand = function (o) { + return t((this.negative | o.negative) === 0), this.iuand(o); + }), + (a.prototype.and = function (o) { + return this.length > o.length + ? this.clone().iand(o) + : o.clone().iand(this); + }), + (a.prototype.uand = function (o) { + return this.length > o.length + ? this.clone().iuand(o) + : o.clone().iuand(this); + }), + (a.prototype.iuxor = function (o) { + var p, y; + this.length > o.length + ? ((p = this), (y = o)) + : ((p = o), (y = this)); + for (var h = 0; h < y.length; h++) + this.words[h] = p.words[h] ^ y.words[h]; + if (this !== p) for (; h < p.length; h++) this.words[h] = p.words[h]; + return (this.length = p.length), this.strip(); + }), + (a.prototype.ixor = function (o) { + return t((this.negative | o.negative) === 0), this.iuxor(o); + }), + (a.prototype.xor = function (o) { + return this.length > o.length + ? this.clone().ixor(o) + : o.clone().ixor(this); + }), + (a.prototype.uxor = function (o) { + return this.length > o.length + ? this.clone().iuxor(o) + : o.clone().iuxor(this); + }), + (a.prototype.inotn = function (o) { + t(typeof o == "number" && o >= 0); + var p = Math.ceil(o / 26) | 0, + y = o % 26; + this._expand(p), y > 0 && p--; + for (var h = 0; h < p; h++) this.words[h] = ~this.words[h] & 67108863; + return ( + y > 0 && (this.words[h] = ~this.words[h] & (67108863 >> (26 - y))), + this.strip() + ); + }), + (a.prototype.notn = function (o) { + return this.clone().inotn(o); + }), + (a.prototype.setn = function (o, p) { + t(typeof o == "number" && o >= 0); + var y = (o / 26) | 0, + h = o % 26; + return ( + this._expand(y + 1), + p + ? (this.words[y] = this.words[y] | (1 << h)) + : (this.words[y] = this.words[y] & ~(1 << h)), + this.strip() + ); + }), + (a.prototype.iadd = function (o) { + var p; + if (this.negative !== 0 && o.negative === 0) + return ( + (this.negative = 0), + (p = this.isub(o)), + (this.negative ^= 1), + this._normSign() + ); + if (this.negative === 0 && o.negative !== 0) + return ( + (o.negative = 0), + (p = this.isub(o)), + (o.negative = 1), + p._normSign() + ); + var y, h; + this.length > o.length + ? ((y = this), (h = o)) + : ((y = o), (h = this)); + for (var b = 0, T = 0; T < h.length; T++) + (p = (y.words[T] | 0) + (h.words[T] | 0) + b), + (this.words[T] = p & 67108863), + (b = p >>> 26); + for (; b !== 0 && T < y.length; T++) + (p = (y.words[T] | 0) + b), + (this.words[T] = p & 67108863), + (b = p >>> 26); + if (((this.length = y.length), b !== 0)) + (this.words[this.length] = b), this.length++; + else if (y !== this) + for (; T < y.length; T++) this.words[T] = y.words[T]; + return this; + }), + (a.prototype.add = function (o) { + var p; + return o.negative !== 0 && this.negative === 0 + ? ((o.negative = 0), (p = this.sub(o)), (o.negative ^= 1), p) + : o.negative === 0 && this.negative !== 0 + ? ((this.negative = 0), (p = o.sub(this)), (this.negative = 1), p) + : this.length > o.length + ? this.clone().iadd(o) + : o.clone().iadd(this); + }), + (a.prototype.isub = function (o) { + if (o.negative !== 0) { + o.negative = 0; + var p = this.iadd(o); + return (o.negative = 1), p._normSign(); + } else if (this.negative !== 0) + return ( + (this.negative = 0), + this.iadd(o), + (this.negative = 1), + this._normSign() + ); + var y = this.cmp(o); + if (y === 0) + return ( + (this.negative = 0), (this.length = 1), (this.words[0] = 0), this + ); + var h, b; + y > 0 ? ((h = this), (b = o)) : ((h = o), (b = this)); + for (var T = 0, E = 0; E < b.length; E++) + (p = (h.words[E] | 0) - (b.words[E] | 0) + T), + (T = p >> 26), + (this.words[E] = p & 67108863); + for (; T !== 0 && E < h.length; E++) + (p = (h.words[E] | 0) + T), + (T = p >> 26), + (this.words[E] = p & 67108863); + if (T === 0 && E < h.length && h !== this) + for (; E < h.length; E++) this.words[E] = h.words[E]; + return ( + (this.length = Math.max(this.length, E)), + h !== this && (this.negative = 1), + this.strip() + ); + }), + (a.prototype.sub = function (o) { + return this.clone().isub(o); + }); + function I(g, o, p) { + p.negative = o.negative ^ g.negative; + var y = (g.length + o.length) | 0; + (p.length = y), (y = (y - 1) | 0); + var h = g.words[0] | 0, + b = o.words[0] | 0, + T = h * b, + E = T & 67108863, + f = (T / 67108864) | 0; + p.words[0] = E; + for (var u = 1; u < y; u++) { + for ( + var v = f >>> 26, + R = f & 67108863, + A = Math.min(u, o.length - 1), + L = Math.max(0, u - g.length + 1); + L <= A; + L++ + ) { + var G = (u - L) | 0; + (h = g.words[G] | 0), + (b = o.words[L] | 0), + (T = h * b + R), + (v += (T / 67108864) | 0), + (R = T & 67108863); + } + (p.words[u] = R | 0), (f = v | 0); + } + return f !== 0 ? (p.words[u] = f | 0) : p.length--, p.strip(); + } + var k = function (o, p, y) { + var h = o.words, + b = p.words, + T = y.words, + E = 0, + f, + u, + v, + R = h[0] | 0, + A = R & 8191, + L = R >>> 13, + G = h[1] | 0, + U = G & 8191, + Z = G >>> 13, + de = h[2] | 0, + ne = de & 8191, + pe = de >>> 13, + lt = h[3] | 0, + fe = lt & 8191, + ve = lt >>> 13, + vt = h[4] | 0, + we = vt & 8191, + Ne = vt >>> 13, + kt = h[5] | 0, + Le = kt & 8191, + ze = kt >>> 13, + It = h[6] | 0, + Se = It & 8191, + Ke = It >>> 13, + Et = h[7] | 0, + Me = Et & 8191, + Ge = Et >>> 13, + Dt = h[8] | 0, + De = Dt & 8191, + Ze = Dt >>> 13, + Wt = h[9] | 0, + ke = Wt & 8191, + $e = Wt >>> 13, + Ht = b[0] | 0, + Pe = Ht & 8191, + Je = Ht >>> 13, + zt = b[1] | 0, + Re = zt & 8191, + Qe = zt >>> 13, + jt = b[2] | 0, + Be = jt & 8191, + Xe = jt >>> 13, + Ut = b[3] | 0, + Ae = Ut & 8191, + et = Ut >>> 13, + St = b[4] | 0, + Oe = St & 8191, + tt = St >>> 13, + Kt = b[5] | 0, + qe = Kt & 8191, + rt = Kt >>> 13, + Vt = b[6] | 0, + Ie = Vt & 8191, + Ye = Vt >>> 13, + Gt = b[7] | 0, + We = Gt & 8191, + it = Gt >>> 13, + Qt = b[8] | 0, + Ue = Qt & 8191, + nt = Qt >>> 13, + tr = b[9] | 0, + He = tr & 8191, + at = tr >>> 13; + (y.negative = o.negative ^ p.negative), + (y.length = 19), + (f = Math.imul(A, Pe)), + (u = Math.imul(A, Je)), + (u = (u + Math.imul(L, Pe)) | 0), + (v = Math.imul(L, Je)); + var Pr = (((E + f) | 0) + ((u & 8191) << 13)) | 0; + (E = (((v + (u >>> 13)) | 0) + (Pr >>> 26)) | 0), + (Pr &= 67108863), + (f = Math.imul(U, Pe)), + (u = Math.imul(U, Je)), + (u = (u + Math.imul(Z, Pe)) | 0), + (v = Math.imul(Z, Je)), + (f = (f + Math.imul(A, Re)) | 0), + (u = (u + Math.imul(A, Qe)) | 0), + (u = (u + Math.imul(L, Re)) | 0), + (v = (v + Math.imul(L, Qe)) | 0); + var qt = (((E + f) | 0) + ((u & 8191) << 13)) | 0; + (E = (((v + (u >>> 13)) | 0) + (qt >>> 26)) | 0), + (qt &= 67108863), + (f = Math.imul(ne, Pe)), + (u = Math.imul(ne, Je)), + (u = (u + Math.imul(pe, Pe)) | 0), + (v = Math.imul(pe, Je)), + (f = (f + Math.imul(U, Re)) | 0), + (u = (u + Math.imul(U, Qe)) | 0), + (u = (u + Math.imul(Z, Re)) | 0), + (v = (v + Math.imul(Z, Qe)) | 0), + (f = (f + Math.imul(A, Be)) | 0), + (u = (u + Math.imul(A, Xe)) | 0), + (u = (u + Math.imul(L, Be)) | 0), + (v = (v + Math.imul(L, Xe)) | 0); + var Ft = (((E + f) | 0) + ((u & 8191) << 13)) | 0; + (E = (((v + (u >>> 13)) | 0) + (Ft >>> 26)) | 0), + (Ft &= 67108863), + (f = Math.imul(fe, Pe)), + (u = Math.imul(fe, Je)), + (u = (u + Math.imul(ve, Pe)) | 0), + (v = Math.imul(ve, Je)), + (f = (f + Math.imul(ne, Re)) | 0), + (u = (u + Math.imul(ne, Qe)) | 0), + (u = (u + Math.imul(pe, Re)) | 0), + (v = (v + Math.imul(pe, Qe)) | 0), + (f = (f + Math.imul(U, Be)) | 0), + (u = (u + Math.imul(U, Xe)) | 0), + (u = (u + Math.imul(Z, Be)) | 0), + (v = (v + Math.imul(Z, Xe)) | 0), + (f = (f + Math.imul(A, Ae)) | 0), + (u = (u + Math.imul(A, et)) | 0), + (u = (u + Math.imul(L, Ae)) | 0), + (v = (v + Math.imul(L, et)) | 0); + var _r = (((E + f) | 0) + ((u & 8191) << 13)) | 0; + (E = (((v + (u >>> 13)) | 0) + (_r >>> 26)) | 0), + (_r &= 67108863), + (f = Math.imul(we, Pe)), + (u = Math.imul(we, Je)), + (u = (u + Math.imul(Ne, Pe)) | 0), + (v = Math.imul(Ne, Je)), + (f = (f + Math.imul(fe, Re)) | 0), + (u = (u + Math.imul(fe, Qe)) | 0), + (u = (u + Math.imul(ve, Re)) | 0), + (v = (v + Math.imul(ve, Qe)) | 0), + (f = (f + Math.imul(ne, Be)) | 0), + (u = (u + Math.imul(ne, Xe)) | 0), + (u = (u + Math.imul(pe, Be)) | 0), + (v = (v + Math.imul(pe, Xe)) | 0), + (f = (f + Math.imul(U, Ae)) | 0), + (u = (u + Math.imul(U, et)) | 0), + (u = (u + Math.imul(Z, Ae)) | 0), + (v = (v + Math.imul(Z, et)) | 0), + (f = (f + Math.imul(A, Oe)) | 0), + (u = (u + Math.imul(A, tt)) | 0), + (u = (u + Math.imul(L, Oe)) | 0), + (v = (v + Math.imul(L, tt)) | 0); + var xr = (((E + f) | 0) + ((u & 8191) << 13)) | 0; + (E = (((v + (u >>> 13)) | 0) + (xr >>> 26)) | 0), + (xr &= 67108863), + (f = Math.imul(Le, Pe)), + (u = Math.imul(Le, Je)), + (u = (u + Math.imul(ze, Pe)) | 0), + (v = Math.imul(ze, Je)), + (f = (f + Math.imul(we, Re)) | 0), + (u = (u + Math.imul(we, Qe)) | 0), + (u = (u + Math.imul(Ne, Re)) | 0), + (v = (v + Math.imul(Ne, Qe)) | 0), + (f = (f + Math.imul(fe, Be)) | 0), + (u = (u + Math.imul(fe, Xe)) | 0), + (u = (u + Math.imul(ve, Be)) | 0), + (v = (v + Math.imul(ve, Xe)) | 0), + (f = (f + Math.imul(ne, Ae)) | 0), + (u = (u + Math.imul(ne, et)) | 0), + (u = (u + Math.imul(pe, Ae)) | 0), + (v = (v + Math.imul(pe, et)) | 0), + (f = (f + Math.imul(U, Oe)) | 0), + (u = (u + Math.imul(U, tt)) | 0), + (u = (u + Math.imul(Z, Oe)) | 0), + (v = (v + Math.imul(Z, tt)) | 0), + (f = (f + Math.imul(A, qe)) | 0), + (u = (u + Math.imul(A, rt)) | 0), + (u = (u + Math.imul(L, qe)) | 0), + (v = (v + Math.imul(L, rt)) | 0); + var Tr = (((E + f) | 0) + ((u & 8191) << 13)) | 0; + (E = (((v + (u >>> 13)) | 0) + (Tr >>> 26)) | 0), + (Tr &= 67108863), + (f = Math.imul(Se, Pe)), + (u = Math.imul(Se, Je)), + (u = (u + Math.imul(Ke, Pe)) | 0), + (v = Math.imul(Ke, Je)), + (f = (f + Math.imul(Le, Re)) | 0), + (u = (u + Math.imul(Le, Qe)) | 0), + (u = (u + Math.imul(ze, Re)) | 0), + (v = (v + Math.imul(ze, Qe)) | 0), + (f = (f + Math.imul(we, Be)) | 0), + (u = (u + Math.imul(we, Xe)) | 0), + (u = (u + Math.imul(Ne, Be)) | 0), + (v = (v + Math.imul(Ne, Xe)) | 0), + (f = (f + Math.imul(fe, Ae)) | 0), + (u = (u + Math.imul(fe, et)) | 0), + (u = (u + Math.imul(ve, Ae)) | 0), + (v = (v + Math.imul(ve, et)) | 0), + (f = (f + Math.imul(ne, Oe)) | 0), + (u = (u + Math.imul(ne, tt)) | 0), + (u = (u + Math.imul(pe, Oe)) | 0), + (v = (v + Math.imul(pe, tt)) | 0), + (f = (f + Math.imul(U, qe)) | 0), + (u = (u + Math.imul(U, rt)) | 0), + (u = (u + Math.imul(Z, qe)) | 0), + (v = (v + Math.imul(Z, rt)) | 0), + (f = (f + Math.imul(A, Ie)) | 0), + (u = (u + Math.imul(A, Ye)) | 0), + (u = (u + Math.imul(L, Ie)) | 0), + (v = (v + Math.imul(L, Ye)) | 0); + var Er = (((E + f) | 0) + ((u & 8191) << 13)) | 0; + (E = (((v + (u >>> 13)) | 0) + (Er >>> 26)) | 0), + (Er &= 67108863), + (f = Math.imul(Me, Pe)), + (u = Math.imul(Me, Je)), + (u = (u + Math.imul(Ge, Pe)) | 0), + (v = Math.imul(Ge, Je)), + (f = (f + Math.imul(Se, Re)) | 0), + (u = (u + Math.imul(Se, Qe)) | 0), + (u = (u + Math.imul(Ke, Re)) | 0), + (v = (v + Math.imul(Ke, Qe)) | 0), + (f = (f + Math.imul(Le, Be)) | 0), + (u = (u + Math.imul(Le, Xe)) | 0), + (u = (u + Math.imul(ze, Be)) | 0), + (v = (v + Math.imul(ze, Xe)) | 0), + (f = (f + Math.imul(we, Ae)) | 0), + (u = (u + Math.imul(we, et)) | 0), + (u = (u + Math.imul(Ne, Ae)) | 0), + (v = (v + Math.imul(Ne, et)) | 0), + (f = (f + Math.imul(fe, Oe)) | 0), + (u = (u + Math.imul(fe, tt)) | 0), + (u = (u + Math.imul(ve, Oe)) | 0), + (v = (v + Math.imul(ve, tt)) | 0), + (f = (f + Math.imul(ne, qe)) | 0), + (u = (u + Math.imul(ne, rt)) | 0), + (u = (u + Math.imul(pe, qe)) | 0), + (v = (v + Math.imul(pe, rt)) | 0), + (f = (f + Math.imul(U, Ie)) | 0), + (u = (u + Math.imul(U, Ye)) | 0), + (u = (u + Math.imul(Z, Ie)) | 0), + (v = (v + Math.imul(Z, Ye)) | 0), + (f = (f + Math.imul(A, We)) | 0), + (u = (u + Math.imul(A, it)) | 0), + (u = (u + Math.imul(L, We)) | 0), + (v = (v + Math.imul(L, it)) | 0); + var Cr = (((E + f) | 0) + ((u & 8191) << 13)) | 0; + (E = (((v + (u >>> 13)) | 0) + (Cr >>> 26)) | 0), + (Cr &= 67108863), + (f = Math.imul(De, Pe)), + (u = Math.imul(De, Je)), + (u = (u + Math.imul(Ze, Pe)) | 0), + (v = Math.imul(Ze, Je)), + (f = (f + Math.imul(Me, Re)) | 0), + (u = (u + Math.imul(Me, Qe)) | 0), + (u = (u + Math.imul(Ge, Re)) | 0), + (v = (v + Math.imul(Ge, Qe)) | 0), + (f = (f + Math.imul(Se, Be)) | 0), + (u = (u + Math.imul(Se, Xe)) | 0), + (u = (u + Math.imul(Ke, Be)) | 0), + (v = (v + Math.imul(Ke, Xe)) | 0), + (f = (f + Math.imul(Le, Ae)) | 0), + (u = (u + Math.imul(Le, et)) | 0), + (u = (u + Math.imul(ze, Ae)) | 0), + (v = (v + Math.imul(ze, et)) | 0), + (f = (f + Math.imul(we, Oe)) | 0), + (u = (u + Math.imul(we, tt)) | 0), + (u = (u + Math.imul(Ne, Oe)) | 0), + (v = (v + Math.imul(Ne, tt)) | 0), + (f = (f + Math.imul(fe, qe)) | 0), + (u = (u + Math.imul(fe, rt)) | 0), + (u = (u + Math.imul(ve, qe)) | 0), + (v = (v + Math.imul(ve, rt)) | 0), + (f = (f + Math.imul(ne, Ie)) | 0), + (u = (u + Math.imul(ne, Ye)) | 0), + (u = (u + Math.imul(pe, Ie)) | 0), + (v = (v + Math.imul(pe, Ye)) | 0), + (f = (f + Math.imul(U, We)) | 0), + (u = (u + Math.imul(U, it)) | 0), + (u = (u + Math.imul(Z, We)) | 0), + (v = (v + Math.imul(Z, it)) | 0), + (f = (f + Math.imul(A, Ue)) | 0), + (u = (u + Math.imul(A, nt)) | 0), + (u = (u + Math.imul(L, Ue)) | 0), + (v = (v + Math.imul(L, nt)) | 0); + var Kr = (((E + f) | 0) + ((u & 8191) << 13)) | 0; + (E = (((v + (u >>> 13)) | 0) + (Kr >>> 26)) | 0), + (Kr &= 67108863), + (f = Math.imul(ke, Pe)), + (u = Math.imul(ke, Je)), + (u = (u + Math.imul($e, Pe)) | 0), + (v = Math.imul($e, Je)), + (f = (f + Math.imul(De, Re)) | 0), + (u = (u + Math.imul(De, Qe)) | 0), + (u = (u + Math.imul(Ze, Re)) | 0), + (v = (v + Math.imul(Ze, Qe)) | 0), + (f = (f + Math.imul(Me, Be)) | 0), + (u = (u + Math.imul(Me, Xe)) | 0), + (u = (u + Math.imul(Ge, Be)) | 0), + (v = (v + Math.imul(Ge, Xe)) | 0), + (f = (f + Math.imul(Se, Ae)) | 0), + (u = (u + Math.imul(Se, et)) | 0), + (u = (u + Math.imul(Ke, Ae)) | 0), + (v = (v + Math.imul(Ke, et)) | 0), + (f = (f + Math.imul(Le, Oe)) | 0), + (u = (u + Math.imul(Le, tt)) | 0), + (u = (u + Math.imul(ze, Oe)) | 0), + (v = (v + Math.imul(ze, tt)) | 0), + (f = (f + Math.imul(we, qe)) | 0), + (u = (u + Math.imul(we, rt)) | 0), + (u = (u + Math.imul(Ne, qe)) | 0), + (v = (v + Math.imul(Ne, rt)) | 0), + (f = (f + Math.imul(fe, Ie)) | 0), + (u = (u + Math.imul(fe, Ye)) | 0), + (u = (u + Math.imul(ve, Ie)) | 0), + (v = (v + Math.imul(ve, Ye)) | 0), + (f = (f + Math.imul(ne, We)) | 0), + (u = (u + Math.imul(ne, it)) | 0), + (u = (u + Math.imul(pe, We)) | 0), + (v = (v + Math.imul(pe, it)) | 0), + (f = (f + Math.imul(U, Ue)) | 0), + (u = (u + Math.imul(U, nt)) | 0), + (u = (u + Math.imul(Z, Ue)) | 0), + (v = (v + Math.imul(Z, nt)) | 0), + (f = (f + Math.imul(A, He)) | 0), + (u = (u + Math.imul(A, at)) | 0), + (u = (u + Math.imul(L, He)) | 0), + (v = (v + Math.imul(L, at)) | 0); + var Vr = (((E + f) | 0) + ((u & 8191) << 13)) | 0; + (E = (((v + (u >>> 13)) | 0) + (Vr >>> 26)) | 0), + (Vr &= 67108863), + (f = Math.imul(ke, Re)), + (u = Math.imul(ke, Qe)), + (u = (u + Math.imul($e, Re)) | 0), + (v = Math.imul($e, Qe)), + (f = (f + Math.imul(De, Be)) | 0), + (u = (u + Math.imul(De, Xe)) | 0), + (u = (u + Math.imul(Ze, Be)) | 0), + (v = (v + Math.imul(Ze, Xe)) | 0), + (f = (f + Math.imul(Me, Ae)) | 0), + (u = (u + Math.imul(Me, et)) | 0), + (u = (u + Math.imul(Ge, Ae)) | 0), + (v = (v + Math.imul(Ge, et)) | 0), + (f = (f + Math.imul(Se, Oe)) | 0), + (u = (u + Math.imul(Se, tt)) | 0), + (u = (u + Math.imul(Ke, Oe)) | 0), + (v = (v + Math.imul(Ke, tt)) | 0), + (f = (f + Math.imul(Le, qe)) | 0), + (u = (u + Math.imul(Le, rt)) | 0), + (u = (u + Math.imul(ze, qe)) | 0), + (v = (v + Math.imul(ze, rt)) | 0), + (f = (f + Math.imul(we, Ie)) | 0), + (u = (u + Math.imul(we, Ye)) | 0), + (u = (u + Math.imul(Ne, Ie)) | 0), + (v = (v + Math.imul(Ne, Ye)) | 0), + (f = (f + Math.imul(fe, We)) | 0), + (u = (u + Math.imul(fe, it)) | 0), + (u = (u + Math.imul(ve, We)) | 0), + (v = (v + Math.imul(ve, it)) | 0), + (f = (f + Math.imul(ne, Ue)) | 0), + (u = (u + Math.imul(ne, nt)) | 0), + (u = (u + Math.imul(pe, Ue)) | 0), + (v = (v + Math.imul(pe, nt)) | 0), + (f = (f + Math.imul(U, He)) | 0), + (u = (u + Math.imul(U, at)) | 0), + (u = (u + Math.imul(Z, He)) | 0), + (v = (v + Math.imul(Z, at)) | 0); + var Ur = (((E + f) | 0) + ((u & 8191) << 13)) | 0; + (E = (((v + (u >>> 13)) | 0) + (Ur >>> 26)) | 0), + (Ur &= 67108863), + (f = Math.imul(ke, Be)), + (u = Math.imul(ke, Xe)), + (u = (u + Math.imul($e, Be)) | 0), + (v = Math.imul($e, Xe)), + (f = (f + Math.imul(De, Ae)) | 0), + (u = (u + Math.imul(De, et)) | 0), + (u = (u + Math.imul(Ze, Ae)) | 0), + (v = (v + Math.imul(Ze, et)) | 0), + (f = (f + Math.imul(Me, Oe)) | 0), + (u = (u + Math.imul(Me, tt)) | 0), + (u = (u + Math.imul(Ge, Oe)) | 0), + (v = (v + Math.imul(Ge, tt)) | 0), + (f = (f + Math.imul(Se, qe)) | 0), + (u = (u + Math.imul(Se, rt)) | 0), + (u = (u + Math.imul(Ke, qe)) | 0), + (v = (v + Math.imul(Ke, rt)) | 0), + (f = (f + Math.imul(Le, Ie)) | 0), + (u = (u + Math.imul(Le, Ye)) | 0), + (u = (u + Math.imul(ze, Ie)) | 0), + (v = (v + Math.imul(ze, Ye)) | 0), + (f = (f + Math.imul(we, We)) | 0), + (u = (u + Math.imul(we, it)) | 0), + (u = (u + Math.imul(Ne, We)) | 0), + (v = (v + Math.imul(Ne, it)) | 0), + (f = (f + Math.imul(fe, Ue)) | 0), + (u = (u + Math.imul(fe, nt)) | 0), + (u = (u + Math.imul(ve, Ue)) | 0), + (v = (v + Math.imul(ve, nt)) | 0), + (f = (f + Math.imul(ne, He)) | 0), + (u = (u + Math.imul(ne, at)) | 0), + (u = (u + Math.imul(pe, He)) | 0), + (v = (v + Math.imul(pe, at)) | 0); + var Rr = (((E + f) | 0) + ((u & 8191) << 13)) | 0; + (E = (((v + (u >>> 13)) | 0) + (Rr >>> 26)) | 0), + (Rr &= 67108863), + (f = Math.imul(ke, Ae)), + (u = Math.imul(ke, et)), + (u = (u + Math.imul($e, Ae)) | 0), + (v = Math.imul($e, et)), + (f = (f + Math.imul(De, Oe)) | 0), + (u = (u + Math.imul(De, tt)) | 0), + (u = (u + Math.imul(Ze, Oe)) | 0), + (v = (v + Math.imul(Ze, tt)) | 0), + (f = (f + Math.imul(Me, qe)) | 0), + (u = (u + Math.imul(Me, rt)) | 0), + (u = (u + Math.imul(Ge, qe)) | 0), + (v = (v + Math.imul(Ge, rt)) | 0), + (f = (f + Math.imul(Se, Ie)) | 0), + (u = (u + Math.imul(Se, Ye)) | 0), + (u = (u + Math.imul(Ke, Ie)) | 0), + (v = (v + Math.imul(Ke, Ye)) | 0), + (f = (f + Math.imul(Le, We)) | 0), + (u = (u + Math.imul(Le, it)) | 0), + (u = (u + Math.imul(ze, We)) | 0), + (v = (v + Math.imul(ze, it)) | 0), + (f = (f + Math.imul(we, Ue)) | 0), + (u = (u + Math.imul(we, nt)) | 0), + (u = (u + Math.imul(Ne, Ue)) | 0), + (v = (v + Math.imul(Ne, nt)) | 0), + (f = (f + Math.imul(fe, He)) | 0), + (u = (u + Math.imul(fe, at)) | 0), + (u = (u + Math.imul(ve, He)) | 0), + (v = (v + Math.imul(ve, at)) | 0); + var Or = (((E + f) | 0) + ((u & 8191) << 13)) | 0; + (E = (((v + (u >>> 13)) | 0) + (Or >>> 26)) | 0), + (Or &= 67108863), + (f = Math.imul(ke, Oe)), + (u = Math.imul(ke, tt)), + (u = (u + Math.imul($e, Oe)) | 0), + (v = Math.imul($e, tt)), + (f = (f + Math.imul(De, qe)) | 0), + (u = (u + Math.imul(De, rt)) | 0), + (u = (u + Math.imul(Ze, qe)) | 0), + (v = (v + Math.imul(Ze, rt)) | 0), + (f = (f + Math.imul(Me, Ie)) | 0), + (u = (u + Math.imul(Me, Ye)) | 0), + (u = (u + Math.imul(Ge, Ie)) | 0), + (v = (v + Math.imul(Ge, Ye)) | 0), + (f = (f + Math.imul(Se, We)) | 0), + (u = (u + Math.imul(Se, it)) | 0), + (u = (u + Math.imul(Ke, We)) | 0), + (v = (v + Math.imul(Ke, it)) | 0), + (f = (f + Math.imul(Le, Ue)) | 0), + (u = (u + Math.imul(Le, nt)) | 0), + (u = (u + Math.imul(ze, Ue)) | 0), + (v = (v + Math.imul(ze, nt)) | 0), + (f = (f + Math.imul(we, He)) | 0), + (u = (u + Math.imul(we, at)) | 0), + (u = (u + Math.imul(Ne, He)) | 0), + (v = (v + Math.imul(Ne, at)) | 0); + var ur = (((E + f) | 0) + ((u & 8191) << 13)) | 0; + (E = (((v + (u >>> 13)) | 0) + (ur >>> 26)) | 0), + (ur &= 67108863), + (f = Math.imul(ke, qe)), + (u = Math.imul(ke, rt)), + (u = (u + Math.imul($e, qe)) | 0), + (v = Math.imul($e, rt)), + (f = (f + Math.imul(De, Ie)) | 0), + (u = (u + Math.imul(De, Ye)) | 0), + (u = (u + Math.imul(Ze, Ie)) | 0), + (v = (v + Math.imul(Ze, Ye)) | 0), + (f = (f + Math.imul(Me, We)) | 0), + (u = (u + Math.imul(Me, it)) | 0), + (u = (u + Math.imul(Ge, We)) | 0), + (v = (v + Math.imul(Ge, it)) | 0), + (f = (f + Math.imul(Se, Ue)) | 0), + (u = (u + Math.imul(Se, nt)) | 0), + (u = (u + Math.imul(Ke, Ue)) | 0), + (v = (v + Math.imul(Ke, nt)) | 0), + (f = (f + Math.imul(Le, He)) | 0), + (u = (u + Math.imul(Le, at)) | 0), + (u = (u + Math.imul(ze, He)) | 0), + (v = (v + Math.imul(ze, at)) | 0); + var Hr = (((E + f) | 0) + ((u & 8191) << 13)) | 0; + (E = (((v + (u >>> 13)) | 0) + (Hr >>> 26)) | 0), + (Hr &= 67108863), + (f = Math.imul(ke, Ie)), + (u = Math.imul(ke, Ye)), + (u = (u + Math.imul($e, Ie)) | 0), + (v = Math.imul($e, Ye)), + (f = (f + Math.imul(De, We)) | 0), + (u = (u + Math.imul(De, it)) | 0), + (u = (u + Math.imul(Ze, We)) | 0), + (v = (v + Math.imul(Ze, it)) | 0), + (f = (f + Math.imul(Me, Ue)) | 0), + (u = (u + Math.imul(Me, nt)) | 0), + (u = (u + Math.imul(Ge, Ue)) | 0), + (v = (v + Math.imul(Ge, nt)) | 0), + (f = (f + Math.imul(Se, He)) | 0), + (u = (u + Math.imul(Se, at)) | 0), + (u = (u + Math.imul(Ke, He)) | 0), + (v = (v + Math.imul(Ke, at)) | 0); + var hr = (((E + f) | 0) + ((u & 8191) << 13)) | 0; + (E = (((v + (u >>> 13)) | 0) + (hr >>> 26)) | 0), + (hr &= 67108863), + (f = Math.imul(ke, We)), + (u = Math.imul(ke, it)), + (u = (u + Math.imul($e, We)) | 0), + (v = Math.imul($e, it)), + (f = (f + Math.imul(De, Ue)) | 0), + (u = (u + Math.imul(De, nt)) | 0), + (u = (u + Math.imul(Ze, Ue)) | 0), + (v = (v + Math.imul(Ze, nt)) | 0), + (f = (f + Math.imul(Me, He)) | 0), + (u = (u + Math.imul(Me, at)) | 0), + (u = (u + Math.imul(Ge, He)) | 0), + (v = (v + Math.imul(Ge, at)) | 0); + var Lr = (((E + f) | 0) + ((u & 8191) << 13)) | 0; + (E = (((v + (u >>> 13)) | 0) + (Lr >>> 26)) | 0), + (Lr &= 67108863), + (f = Math.imul(ke, Ue)), + (u = Math.imul(ke, nt)), + (u = (u + Math.imul($e, Ue)) | 0), + (v = Math.imul($e, nt)), + (f = (f + Math.imul(De, He)) | 0), + (u = (u + Math.imul(De, at)) | 0), + (u = (u + Math.imul(Ze, He)) | 0), + (v = (v + Math.imul(Ze, at)) | 0); + var Zr = (((E + f) | 0) + ((u & 8191) << 13)) | 0; + (E = (((v + (u >>> 13)) | 0) + (Zr >>> 26)) | 0), + (Zr &= 67108863), + (f = Math.imul(ke, He)), + (u = Math.imul(ke, at)), + (u = (u + Math.imul($e, He)) | 0), + (v = Math.imul($e, at)); + var xn = (((E + f) | 0) + ((u & 8191) << 13)) | 0; + return ( + (E = (((v + (u >>> 13)) | 0) + (xn >>> 26)) | 0), + (xn &= 67108863), + (T[0] = Pr), + (T[1] = qt), + (T[2] = Ft), + (T[3] = _r), + (T[4] = xr), + (T[5] = Tr), + (T[6] = Er), + (T[7] = Cr), + (T[8] = Kr), + (T[9] = Vr), + (T[10] = Ur), + (T[11] = Rr), + (T[12] = Or), + (T[13] = ur), + (T[14] = Hr), + (T[15] = hr), + (T[16] = Lr), + (T[17] = Zr), + (T[18] = xn), + E !== 0 && ((T[19] = E), y.length++), + y + ); + }; + Math.imul || (k = I); + function O(g, o, p) { + (p.negative = o.negative ^ g.negative), + (p.length = g.length + o.length); + for (var y = 0, h = 0, b = 0; b < p.length - 1; b++) { + var T = h; + h = 0; + for ( + var E = y & 67108863, + f = Math.min(b, o.length - 1), + u = Math.max(0, b - g.length + 1); + u <= f; + u++ + ) { + var v = b - u, + R = g.words[v] | 0, + A = o.words[u] | 0, + L = R * A, + G = L & 67108863; + (T = (T + ((L / 67108864) | 0)) | 0), + (G = (G + E) | 0), + (E = G & 67108863), + (T = (T + (G >>> 26)) | 0), + (h += T >>> 26), + (T &= 67108863); + } + (p.words[b] = E), (y = T), (T = h); + } + return y !== 0 ? (p.words[b] = y) : p.length--, p.strip(); + } + function D(g, o, p) { + var y = new W(); + return y.mulp(g, o, p); + } + a.prototype.mulTo = function (o, p) { + var y, + h = this.length + o.length; + return ( + this.length === 10 && o.length === 10 + ? (y = k(this, o, p)) + : h < 63 + ? (y = I(this, o, p)) + : h < 1024 + ? (y = O(this, o, p)) + : (y = D(this, o, p)), + y + ); + }; + function W(g, o) { + (this.x = g), (this.y = o); + } + (W.prototype.makeRBT = function (o) { + for ( + var p = new Array(o), y = a.prototype._countBits(o) - 1, h = 0; + h < o; + h++ + ) + p[h] = this.revBin(h, y, o); + return p; + }), + (W.prototype.revBin = function (o, p, y) { + if (o === 0 || o === y - 1) return o; + for (var h = 0, b = 0; b < p; b++) + (h |= (o & 1) << (p - b - 1)), (o >>= 1); + return h; + }), + (W.prototype.permute = function (o, p, y, h, b, T) { + for (var E = 0; E < T; E++) (h[E] = p[o[E]]), (b[E] = y[o[E]]); + }), + (W.prototype.transform = function (o, p, y, h, b, T) { + this.permute(T, o, p, y, h, b); + for (var E = 1; E < b; E <<= 1) + for ( + var f = E << 1, + u = Math.cos((2 * Math.PI) / f), + v = Math.sin((2 * Math.PI) / f), + R = 0; + R < b; + R += f + ) + for (var A = u, L = v, G = 0; G < E; G++) { + var U = y[R + G], + Z = h[R + G], + de = y[R + G + E], + ne = h[R + G + E], + pe = A * de - L * ne; + (ne = A * ne + L * de), + (de = pe), + (y[R + G] = U + de), + (h[R + G] = Z + ne), + (y[R + G + E] = U - de), + (h[R + G + E] = Z - ne), + G !== f && + ((pe = u * A - v * L), (L = u * L + v * A), (A = pe)); + } + }), + (W.prototype.guessLen13b = function (o, p) { + var y = Math.max(p, o) | 1, + h = y & 1, + b = 0; + for (y = (y / 2) | 0; y; y = y >>> 1) b++; + return 1 << (b + 1 + h); + }), + (W.prototype.conjugate = function (o, p, y) { + if (!(y <= 1)) + for (var h = 0; h < y / 2; h++) { + var b = o[h]; + (o[h] = o[y - h - 1]), + (o[y - h - 1] = b), + (b = p[h]), + (p[h] = -p[y - h - 1]), + (p[y - h - 1] = -b); + } + }), + (W.prototype.normalize13b = function (o, p) { + for (var y = 0, h = 0; h < p / 2; h++) { + var b = + Math.round(o[2 * h + 1] / p) * 8192 + + Math.round(o[2 * h] / p) + + y; + (o[h] = b & 67108863), + b < 67108864 ? (y = 0) : (y = (b / 67108864) | 0); + } + return o; + }), + (W.prototype.convert13b = function (o, p, y, h) { + for (var b = 0, T = 0; T < p; T++) + (b = b + (o[T] | 0)), + (y[2 * T] = b & 8191), + (b = b >>> 13), + (y[2 * T + 1] = b & 8191), + (b = b >>> 13); + for (T = 2 * p; T < h; ++T) y[T] = 0; + t(b === 0), t((b & -8192) === 0); + }), + (W.prototype.stub = function (o) { + for (var p = new Array(o), y = 0; y < o; y++) p[y] = 0; + return p; + }), + (W.prototype.mulp = function (o, p, y) { + var h = 2 * this.guessLen13b(o.length, p.length), + b = this.makeRBT(h), + T = this.stub(h), + E = new Array(h), + f = new Array(h), + u = new Array(h), + v = new Array(h), + R = new Array(h), + A = new Array(h), + L = y.words; + (L.length = h), + this.convert13b(o.words, o.length, E, h), + this.convert13b(p.words, p.length, v, h), + this.transform(E, T, f, u, h, b), + this.transform(v, T, R, A, h, b); + for (var G = 0; G < h; G++) { + var U = f[G] * R[G] - u[G] * A[G]; + (u[G] = f[G] * A[G] + u[G] * R[G]), (f[G] = U); + } + return ( + this.conjugate(f, u, h), + this.transform(f, u, L, T, h, b), + this.conjugate(L, T, h), + this.normalize13b(L, h), + (y.negative = o.negative ^ p.negative), + (y.length = o.length + p.length), + y.strip() + ); + }), + (a.prototype.mul = function (o) { + var p = new a(null); + return ( + (p.words = new Array(this.length + o.length)), this.mulTo(o, p) + ); + }), + (a.prototype.mulf = function (o) { + var p = new a(null); + return (p.words = new Array(this.length + o.length)), D(this, o, p); + }), + (a.prototype.imul = function (o) { + return this.clone().mulTo(o, this); + }), + (a.prototype.imuln = function (o) { + t(typeof o == "number"), t(o < 67108864); + for (var p = 0, y = 0; y < this.length; y++) { + var h = (this.words[y] | 0) * o, + b = (h & 67108863) + (p & 67108863); + (p >>= 26), + (p += (h / 67108864) | 0), + (p += b >>> 26), + (this.words[y] = b & 67108863); + } + return p !== 0 && ((this.words[y] = p), this.length++), this; + }), + (a.prototype.muln = function (o) { + return this.clone().imuln(o); + }), + (a.prototype.sqr = function () { + return this.mul(this); + }), + (a.prototype.isqr = function () { + return this.imul(this.clone()); + }), + (a.prototype.pow = function (o) { + var p = C(o); + if (p.length === 0) return new a(1); + for ( + var y = this, h = 0; + h < p.length && p[h] === 0; + h++, y = y.sqr() + ); + if (++h < p.length) + for (var b = y.sqr(); h < p.length; h++, b = b.sqr()) + p[h] !== 0 && (y = y.mul(b)); + return y; + }), + (a.prototype.iushln = function (o) { + t(typeof o == "number" && o >= 0); + var p = o % 26, + y = (o - p) / 26, + h = (67108863 >>> (26 - p)) << (26 - p), + b; + if (p !== 0) { + var T = 0; + for (b = 0; b < this.length; b++) { + var E = this.words[b] & h, + f = ((this.words[b] | 0) - E) << p; + (this.words[b] = f | T), (T = E >>> (26 - p)); + } + T && ((this.words[b] = T), this.length++); + } + if (y !== 0) { + for (b = this.length - 1; b >= 0; b--) + this.words[b + y] = this.words[b]; + for (b = 0; b < y; b++) this.words[b] = 0; + this.length += y; + } + return this.strip(); + }), + (a.prototype.ishln = function (o) { + return t(this.negative === 0), this.iushln(o); + }), + (a.prototype.iushrn = function (o, p, y) { + t(typeof o == "number" && o >= 0); + var h; + p ? (h = (p - (p % 26)) / 26) : (h = 0); + var b = o % 26, + T = Math.min((o - b) / 26, this.length), + E = 67108863 ^ ((67108863 >>> b) << b), + f = y; + if (((h -= T), (h = Math.max(0, h)), f)) { + for (var u = 0; u < T; u++) f.words[u] = this.words[u]; + f.length = T; + } + if (T !== 0) + if (this.length > T) + for (this.length -= T, u = 0; u < this.length; u++) + this.words[u] = this.words[u + T]; + else (this.words[0] = 0), (this.length = 1); + var v = 0; + for (u = this.length - 1; u >= 0 && (v !== 0 || u >= h); u--) { + var R = this.words[u] | 0; + (this.words[u] = (v << (26 - b)) | (R >>> b)), (v = R & E); + } + return ( + f && v !== 0 && (f.words[f.length++] = v), + this.length === 0 && ((this.words[0] = 0), (this.length = 1)), + this.strip() + ); + }), + (a.prototype.ishrn = function (o, p, y) { + return t(this.negative === 0), this.iushrn(o, p, y); + }), + (a.prototype.shln = function (o) { + return this.clone().ishln(o); + }), + (a.prototype.ushln = function (o) { + return this.clone().iushln(o); + }), + (a.prototype.shrn = function (o) { + return this.clone().ishrn(o); + }), + (a.prototype.ushrn = function (o) { + return this.clone().iushrn(o); + }), + (a.prototype.testn = function (o) { + t(typeof o == "number" && o >= 0); + var p = o % 26, + y = (o - p) / 26, + h = 1 << p; + if (this.length <= y) return !1; + var b = this.words[y]; + return !!(b & h); + }), + (a.prototype.imaskn = function (o) { + t(typeof o == "number" && o >= 0); + var p = o % 26, + y = (o - p) / 26; + if ( + (t(this.negative === 0, "imaskn works only with positive numbers"), + this.length <= y) + ) + return this; + if ( + (p !== 0 && y++, (this.length = Math.min(y, this.length)), p !== 0) + ) { + var h = 67108863 ^ ((67108863 >>> p) << p); + this.words[this.length - 1] &= h; + } + return this.strip(); + }), + (a.prototype.maskn = function (o) { + return this.clone().imaskn(o); + }), + (a.prototype.iaddn = function (o) { + return ( + t(typeof o == "number"), + t(o < 67108864), + o < 0 + ? this.isubn(-o) + : this.negative !== 0 + ? this.length === 1 && (this.words[0] | 0) < o + ? ((this.words[0] = o - (this.words[0] | 0)), + (this.negative = 0), + this) + : ((this.negative = 0), + this.isubn(o), + (this.negative = 1), + this) + : this._iaddn(o) + ); + }), + (a.prototype._iaddn = function (o) { + this.words[0] += o; + for (var p = 0; p < this.length && this.words[p] >= 67108864; p++) + (this.words[p] -= 67108864), + p === this.length - 1 + ? (this.words[p + 1] = 1) + : this.words[p + 1]++; + return (this.length = Math.max(this.length, p + 1)), this; + }), + (a.prototype.isubn = function (o) { + if ((t(typeof o == "number"), t(o < 67108864), o < 0)) + return this.iaddn(-o); + if (this.negative !== 0) + return ( + (this.negative = 0), this.iaddn(o), (this.negative = 1), this + ); + if (((this.words[0] -= o), this.length === 1 && this.words[0] < 0)) + (this.words[0] = -this.words[0]), (this.negative = 1); + else + for (var p = 0; p < this.length && this.words[p] < 0; p++) + (this.words[p] += 67108864), (this.words[p + 1] -= 1); + return this.strip(); + }), + (a.prototype.addn = function (o) { + return this.clone().iaddn(o); + }), + (a.prototype.subn = function (o) { + return this.clone().isubn(o); + }), + (a.prototype.iabs = function () { + return (this.negative = 0), this; + }), + (a.prototype.abs = function () { + return this.clone().iabs(); + }), + (a.prototype._ishlnsubmul = function (o, p, y) { + var h = o.length + y, + b; + this._expand(h); + var T, + E = 0; + for (b = 0; b < o.length; b++) { + T = (this.words[b + y] | 0) + E; + var f = (o.words[b] | 0) * p; + (T -= f & 67108863), + (E = (T >> 26) - ((f / 67108864) | 0)), + (this.words[b + y] = T & 67108863); + } + for (; b < this.length - y; b++) + (T = (this.words[b + y] | 0) + E), + (E = T >> 26), + (this.words[b + y] = T & 67108863); + if (E === 0) return this.strip(); + for (t(E === -1), E = 0, b = 0; b < this.length; b++) + (T = -(this.words[b] | 0) + E), + (E = T >> 26), + (this.words[b] = T & 67108863); + return (this.negative = 1), this.strip(); + }), + (a.prototype._wordDiv = function (o, p) { + var y = this.length - o.length, + h = this.clone(), + b = o, + T = b.words[b.length - 1] | 0, + E = this._countBits(T); + (y = 26 - E), + y !== 0 && + ((b = b.ushln(y)), h.iushln(y), (T = b.words[b.length - 1] | 0)); + var f = h.length - b.length, + u; + if (p !== "mod") { + (u = new a(null)), + (u.length = f + 1), + (u.words = new Array(u.length)); + for (var v = 0; v < u.length; v++) u.words[v] = 0; + } + var R = h.clone()._ishlnsubmul(b, 1, f); + R.negative === 0 && ((h = R), u && (u.words[f] = 1)); + for (var A = f - 1; A >= 0; A--) { + var L = + (h.words[b.length + A] | 0) * 67108864 + + (h.words[b.length + A - 1] | 0); + for ( + L = Math.min((L / T) | 0, 67108863), h._ishlnsubmul(b, L, A); + h.negative !== 0; + + ) + L--, + (h.negative = 0), + h._ishlnsubmul(b, 1, A), + h.isZero() || (h.negative ^= 1); + u && (u.words[A] = L); + } + return ( + u && u.strip(), + h.strip(), + p !== "div" && y !== 0 && h.iushrn(y), + { div: u || null, mod: h } + ); + }), + (a.prototype.divmod = function (o, p, y) { + if ((t(!o.isZero()), this.isZero())) + return { div: new a(0), mod: new a(0) }; + var h, b, T; + return this.negative !== 0 && o.negative === 0 + ? ((T = this.neg().divmod(o, p)), + p !== "mod" && (h = T.div.neg()), + p !== "div" && + ((b = T.mod.neg()), y && b.negative !== 0 && b.iadd(o)), + { div: h, mod: b }) + : this.negative === 0 && o.negative !== 0 + ? ((T = this.divmod(o.neg(), p)), + p !== "mod" && (h = T.div.neg()), + { div: h, mod: T.mod }) + : (this.negative & o.negative) !== 0 + ? ((T = this.neg().divmod(o.neg(), p)), + p !== "div" && + ((b = T.mod.neg()), y && b.negative !== 0 && b.isub(o)), + { div: T.div, mod: b }) + : o.length > this.length || this.cmp(o) < 0 + ? { div: new a(0), mod: this } + : o.length === 1 + ? p === "div" + ? { div: this.divn(o.words[0]), mod: null } + : p === "mod" + ? { div: null, mod: new a(this.modn(o.words[0])) } + : { + div: this.divn(o.words[0]), + mod: new a(this.modn(o.words[0])), + } + : this._wordDiv(o, p); + }), + (a.prototype.div = function (o) { + return this.divmod(o, "div", !1).div; + }), + (a.prototype.mod = function (o) { + return this.divmod(o, "mod", !1).mod; + }), + (a.prototype.umod = function (o) { + return this.divmod(o, "mod", !0).mod; + }), + (a.prototype.divRound = function (o) { + var p = this.divmod(o); + if (p.mod.isZero()) return p.div; + var y = p.div.negative !== 0 ? p.mod.isub(o) : p.mod, + h = o.ushrn(1), + b = o.andln(1), + T = y.cmp(h); + return T < 0 || (b === 1 && T === 0) + ? p.div + : p.div.negative !== 0 + ? p.div.isubn(1) + : p.div.iaddn(1); + }), + (a.prototype.modn = function (o) { + t(o <= 67108863); + for (var p = (1 << 26) % o, y = 0, h = this.length - 1; h >= 0; h--) + y = (p * y + (this.words[h] | 0)) % o; + return y; + }), + (a.prototype.idivn = function (o) { + t(o <= 67108863); + for (var p = 0, y = this.length - 1; y >= 0; y--) { + var h = (this.words[y] | 0) + p * 67108864; + (this.words[y] = (h / o) | 0), (p = h % o); + } + return this.strip(); + }), + (a.prototype.divn = function (o) { + return this.clone().idivn(o); + }), + (a.prototype.egcd = function (o) { + t(o.negative === 0), t(!o.isZero()); + var p = this, + y = o.clone(); + p.negative !== 0 ? (p = p.umod(o)) : (p = p.clone()); + for ( + var h = new a(1), b = new a(0), T = new a(0), E = new a(1), f = 0; + p.isEven() && y.isEven(); + + ) + p.iushrn(1), y.iushrn(1), ++f; + for (var u = y.clone(), v = p.clone(); !p.isZero(); ) { + for ( + var R = 0, A = 1; + (p.words[0] & A) === 0 && R < 26; + ++R, A <<= 1 + ); + if (R > 0) + for (p.iushrn(R); R-- > 0; ) + (h.isOdd() || b.isOdd()) && (h.iadd(u), b.isub(v)), + h.iushrn(1), + b.iushrn(1); + for ( + var L = 0, G = 1; + (y.words[0] & G) === 0 && L < 26; + ++L, G <<= 1 + ); + if (L > 0) + for (y.iushrn(L); L-- > 0; ) + (T.isOdd() || E.isOdd()) && (T.iadd(u), E.isub(v)), + T.iushrn(1), + E.iushrn(1); + p.cmp(y) >= 0 + ? (p.isub(y), h.isub(T), b.isub(E)) + : (y.isub(p), T.isub(h), E.isub(b)); + } + return { a: T, b: E, gcd: y.iushln(f) }; + }), + (a.prototype._invmp = function (o) { + t(o.negative === 0), t(!o.isZero()); + var p = this, + y = o.clone(); + p.negative !== 0 ? (p = p.umod(o)) : (p = p.clone()); + for ( + var h = new a(1), b = new a(0), T = y.clone(); + p.cmpn(1) > 0 && y.cmpn(1) > 0; + + ) { + for ( + var E = 0, f = 1; + (p.words[0] & f) === 0 && E < 26; + ++E, f <<= 1 + ); + if (E > 0) + for (p.iushrn(E); E-- > 0; ) h.isOdd() && h.iadd(T), h.iushrn(1); + for ( + var u = 0, v = 1; + (y.words[0] & v) === 0 && u < 26; + ++u, v <<= 1 + ); + if (u > 0) + for (y.iushrn(u); u-- > 0; ) b.isOdd() && b.iadd(T), b.iushrn(1); + p.cmp(y) >= 0 ? (p.isub(y), h.isub(b)) : (y.isub(p), b.isub(h)); + } + var R; + return ( + p.cmpn(1) === 0 ? (R = h) : (R = b), R.cmpn(0) < 0 && R.iadd(o), R + ); + }), + (a.prototype.gcd = function (o) { + if (this.isZero()) return o.abs(); + if (o.isZero()) return this.abs(); + var p = this.clone(), + y = o.clone(); + (p.negative = 0), (y.negative = 0); + for (var h = 0; p.isEven() && y.isEven(); h++) + p.iushrn(1), y.iushrn(1); + do { + for (; p.isEven(); ) p.iushrn(1); + for (; y.isEven(); ) y.iushrn(1); + var b = p.cmp(y); + if (b < 0) { + var T = p; + (p = y), (y = T); + } else if (b === 0 || y.cmpn(1) === 0) break; + p.isub(y); + } while (!0); + return y.iushln(h); + }), + (a.prototype.invm = function (o) { + return this.egcd(o).a.umod(o); + }), + (a.prototype.isEven = function () { + return (this.words[0] & 1) === 0; + }), + (a.prototype.isOdd = function () { + return (this.words[0] & 1) === 1; + }), + (a.prototype.andln = function (o) { + return this.words[0] & o; + }), + (a.prototype.bincn = function (o) { + t(typeof o == "number"); + var p = o % 26, + y = (o - p) / 26, + h = 1 << p; + if (this.length <= y) + return this._expand(y + 1), (this.words[y] |= h), this; + for (var b = h, T = y; b !== 0 && T < this.length; T++) { + var E = this.words[T] | 0; + (E += b), (b = E >>> 26), (E &= 67108863), (this.words[T] = E); + } + return b !== 0 && ((this.words[T] = b), this.length++), this; + }), + (a.prototype.isZero = function () { + return this.length === 1 && this.words[0] === 0; + }), + (a.prototype.cmpn = function (o) { + var p = o < 0; + if (this.negative !== 0 && !p) return -1; + if (this.negative === 0 && p) return 1; + this.strip(); + var y; + if (this.length > 1) y = 1; + else { + p && (o = -o), t(o <= 67108863, "Number is too big"); + var h = this.words[0] | 0; + y = h === o ? 0 : h < o ? -1 : 1; + } + return this.negative !== 0 ? -y | 0 : y; + }), + (a.prototype.cmp = function (o) { + if (this.negative !== 0 && o.negative === 0) return -1; + if (this.negative === 0 && o.negative !== 0) return 1; + var p = this.ucmp(o); + return this.negative !== 0 ? -p | 0 : p; + }), + (a.prototype.ucmp = function (o) { + if (this.length > o.length) return 1; + if (this.length < o.length) return -1; + for (var p = 0, y = this.length - 1; y >= 0; y--) { + var h = this.words[y] | 0, + b = o.words[y] | 0; + if (h !== b) { + h < b ? (p = -1) : h > b && (p = 1); + break; + } + } + return p; + }), + (a.prototype.gtn = function (o) { + return this.cmpn(o) === 1; + }), + (a.prototype.gt = function (o) { + return this.cmp(o) === 1; + }), + (a.prototype.gten = function (o) { + return this.cmpn(o) >= 0; + }), + (a.prototype.gte = function (o) { + return this.cmp(o) >= 0; + }), + (a.prototype.ltn = function (o) { + return this.cmpn(o) === -1; + }), + (a.prototype.lt = function (o) { + return this.cmp(o) === -1; + }), + (a.prototype.lten = function (o) { + return this.cmpn(o) <= 0; + }), + (a.prototype.lte = function (o) { + return this.cmp(o) <= 0; + }), + (a.prototype.eqn = function (o) { + return this.cmpn(o) === 0; + }), + (a.prototype.eq = function (o) { + return this.cmp(o) === 0; + }), + (a.red = function (o) { + return new Y(o); + }), + (a.prototype.toRed = function (o) { + return ( + t(!this.red, "Already a number in reduction context"), + t(this.negative === 0, "red works only with positives"), + o.convertTo(this)._forceRed(o) + ); + }), + (a.prototype.fromRed = function () { + return ( + t(this.red, "fromRed works only with numbers in reduction context"), + this.red.convertFrom(this) + ); + }), + (a.prototype._forceRed = function (o) { + return (this.red = o), this; + }), + (a.prototype.forceRed = function (o) { + return ( + t(!this.red, "Already a number in reduction context"), + this._forceRed(o) + ); + }), + (a.prototype.redAdd = function (o) { + return ( + t(this.red, "redAdd works only with red numbers"), + this.red.add(this, o) + ); + }), + (a.prototype.redIAdd = function (o) { + return ( + t(this.red, "redIAdd works only with red numbers"), + this.red.iadd(this, o) + ); + }), + (a.prototype.redSub = function (o) { + return ( + t(this.red, "redSub works only with red numbers"), + this.red.sub(this, o) + ); + }), + (a.prototype.redISub = function (o) { + return ( + t(this.red, "redISub works only with red numbers"), + this.red.isub(this, o) + ); + }), + (a.prototype.redShl = function (o) { + return ( + t(this.red, "redShl works only with red numbers"), + this.red.shl(this, o) + ); + }), + (a.prototype.redMul = function (o) { + return ( + t(this.red, "redMul works only with red numbers"), + this.red._verify2(this, o), + this.red.mul(this, o) + ); + }), + (a.prototype.redIMul = function (o) { + return ( + t(this.red, "redMul works only with red numbers"), + this.red._verify2(this, o), + this.red.imul(this, o) + ); + }), + (a.prototype.redSqr = function () { + return ( + t(this.red, "redSqr works only with red numbers"), + this.red._verify1(this), + this.red.sqr(this) + ); + }), + (a.prototype.redISqr = function () { + return ( + t(this.red, "redISqr works only with red numbers"), + this.red._verify1(this), + this.red.isqr(this) + ); + }), + (a.prototype.redSqrt = function () { + return ( + t(this.red, "redSqrt works only with red numbers"), + this.red._verify1(this), + this.red.sqrt(this) + ); + }), + (a.prototype.redInvm = function () { + return ( + t(this.red, "redInvm works only with red numbers"), + this.red._verify1(this), + this.red.invm(this) + ); + }), + (a.prototype.redNeg = function () { + return ( + t(this.red, "redNeg works only with red numbers"), + this.red._verify1(this), + this.red.neg(this) + ); + }), + (a.prototype.redPow = function (o) { + return ( + t(this.red && !o.red, "redPow(normalNum)"), + this.red._verify1(this), + this.red.pow(this, o) + ); + }); + var H = { k256: null, p224: null, p192: null, p25519: null }; + function j(g, o) { + (this.name = g), + (this.p = new a(o, 16)), + (this.n = this.p.bitLength()), + (this.k = new a(1).iushln(this.n).isub(this.p)), + (this.tmp = this._tmp()); + } + (j.prototype._tmp = function () { + var o = new a(null); + return (o.words = new Array(Math.ceil(this.n / 13))), o; + }), + (j.prototype.ireduce = function (o) { + var p = o, + y; + do + this.split(p, this.tmp), + (p = this.imulK(p)), + (p = p.iadd(this.tmp)), + (y = p.bitLength()); + while (y > this.n); + var h = y < this.n ? -1 : p.ucmp(this.p); + return ( + h === 0 + ? ((p.words[0] = 0), (p.length = 1)) + : h > 0 + ? p.isub(this.p) + : p.strip !== void 0 + ? p.strip() + : p._strip(), + p + ); + }), + (j.prototype.split = function (o, p) { + o.iushrn(this.n, 0, p); + }), + (j.prototype.imulK = function (o) { + return o.imul(this.k); + }); + function V() { + j.call( + this, + "k256", + "ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f" + ); + } + n(V, j), + (V.prototype.split = function (o, p) { + for (var y = 4194303, h = Math.min(o.length, 9), b = 0; b < h; b++) + p.words[b] = o.words[b]; + if (((p.length = h), o.length <= 9)) { + (o.words[0] = 0), (o.length = 1); + return; + } + var T = o.words[9]; + for (p.words[p.length++] = T & y, b = 10; b < o.length; b++) { + var E = o.words[b] | 0; + (o.words[b - 10] = ((E & y) << 4) | (T >>> 22)), (T = E); + } + (T >>>= 22), + (o.words[b - 10] = T), + T === 0 && o.length > 10 ? (o.length -= 10) : (o.length -= 9); + }), + (V.prototype.imulK = function (o) { + (o.words[o.length] = 0), (o.words[o.length + 1] = 0), (o.length += 2); + for (var p = 0, y = 0; y < o.length; y++) { + var h = o.words[y] | 0; + (p += h * 977), + (o.words[y] = p & 67108863), + (p = h * 64 + ((p / 67108864) | 0)); + } + return ( + o.words[o.length - 1] === 0 && + (o.length--, o.words[o.length - 1] === 0 && o.length--), + o + ); + }); + function te() { + j.call( + this, + "p224", + "ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001" + ); + } + n(te, j); + function $() { + j.call( + this, + "p192", + "ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff" + ); + } + n($, j); + function ae() { + j.call( + this, + "25519", + "7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed" + ); + } + n(ae, j), + (ae.prototype.imulK = function (o) { + for (var p = 0, y = 0; y < o.length; y++) { + var h = (o.words[y] | 0) * 19 + p, + b = h & 67108863; + (h >>>= 26), (o.words[y] = b), (p = h); + } + return p !== 0 && (o.words[o.length++] = p), o; + }), + (a._prime = function (o) { + if (H[o]) return H[o]; + var p; + if (o === "k256") p = new V(); + else if (o === "p224") p = new te(); + else if (o === "p192") p = new $(); + else if (o === "p25519") p = new ae(); + else throw new Error("Unknown prime " + o); + return (H[o] = p), p; + }); + function Y(g) { + if (typeof g == "string") { + var o = a._prime(g); + (this.m = o.p), (this.prime = o); + } else + t(g.gtn(1), "modulus must be greater than 1"), + (this.m = g), + (this.prime = null); + } + (Y.prototype._verify1 = function (o) { + t(o.negative === 0, "red works only with positives"), + t(o.red, "red works only with red numbers"); + }), + (Y.prototype._verify2 = function (o, p) { + t((o.negative | p.negative) === 0, "red works only with positives"), + t(o.red && o.red === p.red, "red works only with red numbers"); + }), + (Y.prototype.imod = function (o) { + return this.prime + ? this.prime.ireduce(o)._forceRed(this) + : o.umod(this.m)._forceRed(this); + }), + (Y.prototype.neg = function (o) { + return o.isZero() ? o.clone() : this.m.sub(o)._forceRed(this); + }), + (Y.prototype.add = function (o, p) { + this._verify2(o, p); + var y = o.add(p); + return y.cmp(this.m) >= 0 && y.isub(this.m), y._forceRed(this); + }), + (Y.prototype.iadd = function (o, p) { + this._verify2(o, p); + var y = o.iadd(p); + return y.cmp(this.m) >= 0 && y.isub(this.m), y; + }), + (Y.prototype.sub = function (o, p) { + this._verify2(o, p); + var y = o.sub(p); + return y.cmpn(0) < 0 && y.iadd(this.m), y._forceRed(this); + }), + (Y.prototype.isub = function (o, p) { + this._verify2(o, p); + var y = o.isub(p); + return y.cmpn(0) < 0 && y.iadd(this.m), y; + }), + (Y.prototype.shl = function (o, p) { + return this._verify1(o), this.imod(o.ushln(p)); + }), + (Y.prototype.imul = function (o, p) { + return this._verify2(o, p), this.imod(o.imul(p)); + }), + (Y.prototype.mul = function (o, p) { + return this._verify2(o, p), this.imod(o.mul(p)); + }), + (Y.prototype.isqr = function (o) { + return this.imul(o, o.clone()); + }), + (Y.prototype.sqr = function (o) { + return this.mul(o, o); + }), + (Y.prototype.sqrt = function (o) { + if (o.isZero()) return o.clone(); + var p = this.m.andln(3); + if ((t(p % 2 === 1), p === 3)) { + var y = this.m.add(new a(1)).iushrn(2); + return this.pow(o, y); + } + for (var h = this.m.subn(1), b = 0; !h.isZero() && h.andln(1) === 0; ) + b++, h.iushrn(1); + t(!h.isZero()); + var T = new a(1).toRed(this), + E = T.redNeg(), + f = this.m.subn(1).iushrn(1), + u = this.m.bitLength(); + for (u = new a(2 * u * u).toRed(this); this.pow(u, f).cmp(E) !== 0; ) + u.redIAdd(E); + for ( + var v = this.pow(u, h), + R = this.pow(o, h.addn(1).iushrn(1)), + A = this.pow(o, h), + L = b; + A.cmp(T) !== 0; + + ) { + for (var G = A, U = 0; G.cmp(T) !== 0; U++) G = G.redSqr(); + t(U < L); + var Z = this.pow(v, new a(1).iushln(L - U - 1)); + (R = R.redMul(Z)), (v = Z.redSqr()), (A = A.redMul(v)), (L = U); + } + return R; + }), + (Y.prototype.invm = function (o) { + var p = o._invmp(this.m); + return p.negative !== 0 + ? ((p.negative = 0), this.imod(p).redNeg()) + : this.imod(p); + }), + (Y.prototype.pow = function (o, p) { + if (p.isZero()) return new a(1).toRed(this); + if (p.cmpn(1) === 0) return o.clone(); + var y = 4, + h = new Array(1 << y); + (h[0] = new a(1).toRed(this)), (h[1] = o); + for (var b = 2; b < h.length; b++) h[b] = this.mul(h[b - 1], o); + var T = h[0], + E = 0, + f = 0, + u = p.bitLength() % 26; + for (u === 0 && (u = 26), b = p.length - 1; b >= 0; b--) { + for (var v = p.words[b], R = u - 1; R >= 0; R--) { + var A = (v >> R) & 1; + if ((T !== h[0] && (T = this.sqr(T)), A === 0 && E === 0)) { + f = 0; + continue; + } + (E <<= 1), + (E |= A), + f++, + !(f !== y && (b !== 0 || R !== 0)) && + ((T = this.mul(T, h[E])), (f = 0), (E = 0)); + } + u = 26; + } + return T; + }), + (Y.prototype.convertTo = function (o) { + var p = o.umod(this.m); + return p === o ? p.clone() : p; + }), + (Y.prototype.convertFrom = function (o) { + var p = o.clone(); + return (p.red = null), p; + }), + (a.mont = function (o) { + return new K(o); + }); + function K(g) { + Y.call(this, g), + (this.shift = this.m.bitLength()), + this.shift % 26 !== 0 && (this.shift += 26 - (this.shift % 26)), + (this.r = new a(1).iushln(this.shift)), + (this.r2 = this.imod(this.r.sqr())), + (this.rinv = this.r._invmp(this.m)), + (this.minv = this.rinv.mul(this.r).isubn(1).div(this.m)), + (this.minv = this.minv.umod(this.r)), + (this.minv = this.r.sub(this.minv)); + } + n(K, Y), + (K.prototype.convertTo = function (o) { + return this.imod(o.ushln(this.shift)); + }), + (K.prototype.convertFrom = function (o) { + var p = this.imod(o.mul(this.rinv)); + return (p.red = null), p; + }), + (K.prototype.imul = function (o, p) { + if (o.isZero() || p.isZero()) + return (o.words[0] = 0), (o.length = 1), o; + var y = o.imul(p), + h = y + .maskn(this.shift) + .mul(this.minv) + .imaskn(this.shift) + .mul(this.m), + b = y.isub(h).iushrn(this.shift), + T = b; + return ( + b.cmp(this.m) >= 0 + ? (T = b.isub(this.m)) + : b.cmpn(0) < 0 && (T = b.iadd(this.m)), + T._forceRed(this) + ); + }), + (K.prototype.mul = function (o, p) { + if (o.isZero() || p.isZero()) return new a(0)._forceRed(this); + var y = o.mul(p), + h = y + .maskn(this.shift) + .mul(this.minv) + .imaskn(this.shift) + .mul(this.m), + b = y.isub(h).iushrn(this.shift), + T = b; + return ( + b.cmp(this.m) >= 0 + ? (T = b.isub(this.m)) + : b.cmpn(0) < 0 && (T = b.iadd(this.m)), + T._forceRed(this) + ); + }), + (K.prototype.invm = function (o) { + var p = this.imod(o._invmp(this.m).mul(this.r2)); + return p._forceRed(this); + }); + })(typeof HF > "u" || HF, bpe); + }); + var zF = N((eYr, wpe) => { + _(); + x(); + var vpe = eA(), + m_t = zr().Buffer; + function y_t(r, e) { + return m_t.from( + r + .toRed(vpe.mont(e.modulus)) + .redPow(new vpe(e.publicExponent)) + .fromRed() + .toArray() + ); + } + wpe.exports = y_t; + }); + var Epe = N((nYr, Tpe) => { + _(); + x(); + var g_t = IT(), + jF = Ay(), + b_t = W1(), + _pe = WF(), + xpe = UF(), + KF = eA(), + v_t = zF(), + w_t = UI(), + Pd = zr().Buffer; + Tpe.exports = function (e, t, n) { + var a; + e.padding ? (a = e.padding) : n ? (a = 1) : (a = 4); + var i = g_t(e), + s; + if (a === 4) s = __t(i, t); + else if (a === 1) s = x_t(i, t, n); + else if (a === 3) { + if (((s = new KF(t)), s.cmp(i.modulus) >= 0)) + throw new Error("data too long for modulus"); + } else throw new Error("unknown padding"); + return n ? w_t(s, i) : v_t(s, i); + }; + function __t(r, e) { + var t = r.modulus.byteLength(), + n = e.length, + a = b_t("sha1").update(Pd.alloc(0)).digest(), + i = a.length, + s = 2 * i; + if (n > t - s - 2) throw new Error("message too long"); + var c = Pd.alloc(t - n - s - 2), + l = t - i - 1, + d = jF(i), + m = xpe(Pd.concat([a, c, Pd.alloc(1, 1), e], l), _pe(d, l)), + w = xpe(d, _pe(m, i)); + return new KF(Pd.concat([Pd.alloc(1), w, m], t)); + } + function x_t(r, e, t) { + var n = e.length, + a = r.modulus.byteLength(); + if (n > a - 11) throw new Error("message too long"); + var i; + return ( + t ? (i = Pd.alloc(a - n - 3, 255)) : (i = T_t(a - n - 3)), + new KF(Pd.concat([Pd.from([0, t ? 1 : 2]), i, Pd.alloc(1), e], a)) + ); + } + function T_t(r) { + for (var e = Pd.allocUnsafe(r), t = 0, n = jF(r * 2), a = 0, i; t < r; ) + a === n.length && ((n = jF(r * 2)), (a = 0)), + (i = n[a++]), + i && (e[t++] = i); + return e; + } + }); + var Spe = N((sYr, kpe) => { + _(); + x(); + var E_t = IT(), + Cpe = WF(), + Ipe = UF(), + Ape = eA(), + C_t = UI(), + I_t = W1(), + A_t = zF(), + PT = zr().Buffer; + kpe.exports = function (e, t, n) { + var a; + e.padding ? (a = e.padding) : n ? (a = 1) : (a = 4); + var i = E_t(e), + s = i.modulus.byteLength(); + if (t.length > s || new Ape(t).cmp(i.modulus) >= 0) + throw new Error("decryption error"); + var c; + n ? (c = A_t(new Ape(t), i)) : (c = C_t(t, i)); + var l = PT.alloc(s - c.length); + if (((c = PT.concat([l, c], s)), a === 4)) return k_t(i, c); + if (a === 1) return S_t(i, c, n); + if (a === 3) return c; + throw new Error("unknown padding"); + }; + function k_t(r, e) { + var t = r.modulus.byteLength(), + n = I_t("sha1").update(PT.alloc(0)).digest(), + a = n.length; + if (e[0] !== 0) throw new Error("decryption error"); + var i = e.slice(1, a + 1), + s = e.slice(a + 1), + c = Ipe(i, Cpe(s, a)), + l = Ipe(s, Cpe(c, t - a - 1)); + if (M_t(n, l.slice(0, a))) throw new Error("decryption error"); + for (var d = a; l[d] === 0; ) d++; + if (l[d++] !== 1) throw new Error("decryption error"); + return l.slice(d); + } + function S_t(r, e, t) { + for (var n = e.slice(0, 2), a = 2, i = 0; e[a++] !== 0; ) + if (a >= e.length) { + i++; + break; + } + var s = e.slice(2, a - 1); + if ( + (((n.toString("hex") !== "0002" && !t) || + (n.toString("hex") !== "0001" && t)) && + i++, + s.length < 8 && i++, + i) + ) + throw new Error("decryption error"); + return e.slice(a); + } + function M_t(r, e) { + (r = PT.from(r)), (e = PT.from(e)); + var t = 0, + n = r.length; + r.length !== e.length && (t++, (n = Math.min(r.length, e.length))); + for (var a = -1; ++a < n; ) t += r[a] ^ e[a]; + return t; + } + }); + var Mpe = N((Qy) => { + _(); + x(); + Qy.publicEncrypt = Epe(); + Qy.privateDecrypt = Spe(); + Qy.privateEncrypt = function (e, t) { + return Qy.publicEncrypt(e, t, !0); + }; + Qy.publicDecrypt = function (e, t) { + return Qy.privateDecrypt(e, t, !0); + }; + }); + var Wpe = N((RT) => { + "use strict"; + _(); + x(); + function Ppe() { + throw new Error(`secure random number generation not supported by this browser +use chrome, FireFox or Internet Explorer 11`); + } + var Bpe = zr(), + Rpe = Ay(), + Npe = Bpe.Buffer, + Ope = Bpe.kMaxLength, + VF = M.crypto || M.msCrypto, + Lpe = Math.pow(2, 32) - 1; + function Dpe(r, e) { + if (typeof r != "number" || r !== r) + throw new TypeError("offset must be a number"); + if (r > Lpe || r < 0) throw new TypeError("offset must be a uint32"); + if (r > Ope || r > e) throw new RangeError("offset out of range"); + } + function qpe(r, e, t) { + if (typeof r != "number" || r !== r) + throw new TypeError("size must be a number"); + if (r > Lpe || r < 0) throw new TypeError("size must be a uint32"); + if (r + e > t || r > Ope) throw new RangeError("buffer too small"); + } + (VF && VF.getRandomValues) || !S.browser + ? ((RT.randomFill = P_t), (RT.randomFillSync = R_t)) + : ((RT.randomFill = Ppe), (RT.randomFillSync = Ppe)); + function P_t(r, e, t, n) { + if (!Npe.isBuffer(r) && !(r instanceof M.Uint8Array)) + throw new TypeError('"buf" argument must be a Buffer or Uint8Array'); + if (typeof e == "function") (n = e), (e = 0), (t = r.length); + else if (typeof t == "function") (n = t), (t = r.length - e); + else if (typeof n != "function") + throw new TypeError('"cb" argument must be a function'); + return Dpe(e, r.length), qpe(t, e, r.length), Fpe(r, e, t, n); + } + function Fpe(r, e, t, n) { + if (S.browser) { + var a = r.buffer, + i = new Uint8Array(a, e, t); + if ((VF.getRandomValues(i), n)) { + S.nextTick(function () { + n(null, r); + }); + return; + } + return r; + } + if (n) { + Rpe(t, function (c, l) { + if (c) return n(c); + l.copy(r, e), n(null, r); + }); + return; + } + var s = Rpe(t); + return s.copy(r, e), r; + } + function R_t(r, e, t) { + if ( + (typeof e > "u" && (e = 0), + !Npe.isBuffer(r) && !(r instanceof M.Uint8Array)) + ) + throw new TypeError('"buf" argument must be a Buffer or Uint8Array'); + return ( + Dpe(e, r.length), + t === void 0 && (t = r.length - e), + qpe(t, e, r.length), + Fpe(r, e, t) + ); + } + }); + var zpe = N((jr) => { + "use strict"; + _(); + x(); + jr.randomBytes = jr.rng = jr.pseudoRandomBytes = jr.prng = Ay(); + jr.createHash = jr.Hash = W1(); + jr.createHmac = jr.Hmac = Rq(); + var B_t = Iue(), + N_t = Object.keys(B_t), + O_t = [ + "sha1", + "sha224", + "sha256", + "sha384", + "sha512", + "md5", + "rmd160", + ].concat(N_t); + jr.getHashes = function () { + return O_t; + }; + var Upe = Hq(); + jr.pbkdf2 = Upe.pbkdf2; + jr.pbkdf2Sync = Upe.pbkdf2Sync; + var Op = Vle(); + jr.Cipher = Op.Cipher; + jr.createCipher = Op.createCipher; + jr.Cipheriv = Op.Cipheriv; + jr.createCipheriv = Op.createCipheriv; + jr.Decipher = Op.Decipher; + jr.createDecipher = Op.createDecipher; + jr.Decipheriv = Op.Decipheriv; + jr.createDecipheriv = Op.createDecipheriv; + jr.getCiphers = Op.getCiphers; + jr.listCiphers = Op.listCiphers; + var BT = ode(); + jr.DiffieHellmanGroup = BT.DiffieHellmanGroup; + jr.createDiffieHellmanGroup = BT.createDiffieHellmanGroup; + jr.getDiffieHellman = BT.getDiffieHellman; + jr.createDiffieHellman = BT.createDiffieHellman; + jr.DiffieHellman = BT.DiffieHellman; + var tA = dpe(); + jr.createSign = tA.createSign; + jr.Sign = tA.Sign; + jr.createVerify = tA.createVerify; + jr.Verify = tA.Verify; + jr.createECDH = mpe(); + var rA = Mpe(); + jr.publicEncrypt = rA.publicEncrypt; + jr.privateEncrypt = rA.privateEncrypt; + jr.publicDecrypt = rA.publicDecrypt; + jr.privateDecrypt = rA.privateDecrypt; + var Hpe = Wpe(); + jr.randomFill = Hpe.randomFill; + jr.randomFillSync = Hpe.randomFillSync; + jr.createCredentials = function () { + throw new Error( + [ + "sorry, createCredentials is not implemented yet", + "we accept pull requests", + "https://github.com/crypto-browserify/crypto-browserify", + ].join(` +`) + ); + }; + jr.constants = { + DH_CHECK_P_NOT_SAFE_PRIME: 2, + DH_CHECK_P_NOT_PRIME: 1, + DH_UNABLE_TO_CHECK_GENERATOR: 4, + DH_NOT_SUITABLE_GENERATOR: 8, + NPN_ENABLED: 1, + ALPN_ENABLED: 1, + RSA_PKCS1_PADDING: 1, + RSA_SSLV23_PADDING: 2, + RSA_NO_PADDING: 3, + RSA_PKCS1_OAEP_PADDING: 4, + RSA_X931_PADDING: 5, + RSA_PKCS1_PSS_PADDING: 6, + POINT_CONVERSION_COMPRESSED: 2, + POINT_CONVERSION_UNCOMPRESSED: 4, + POINT_CONVERSION_HYBRID: 6, + }; + }); + var qI = N((bYr, $F) => { + _(); + x(); + var GF; + $F.exports = function (e) { + return GF || (GF = new Am(null)), GF.generate(e); + }; + function Am(r) { + this.rand = r; + } + $F.exports.Rand = Am; + Am.prototype.generate = function (e) { + return this._rand(e); + }; + Am.prototype._rand = function (e) { + if (this.rand.getBytes) return this.rand.getBytes(e); + for (var t = new Uint8Array(e), n = 0; n < t.length; n++) + t[n] = this.rand.getByte(); + return t; + }; + if (typeof self == "object") + self.crypto && self.crypto.getRandomValues + ? (Am.prototype._rand = function (e) { + var t = new Uint8Array(e); + return self.crypto.getRandomValues(t), t; + }) + : self.msCrypto && self.msCrypto.getRandomValues + ? (Am.prototype._rand = function (e) { + var t = new Uint8Array(e); + return self.msCrypto.getRandomValues(t), t; + }) + : typeof window == "object" && + (Am.prototype._rand = function () { + throw new Error("Not implemented yet"); + }); + else + try { + if (((YF = zpe()), typeof YF.randomBytes != "function")) + throw new Error("Not supported"); + Am.prototype._rand = function (e) { + return YF.randomBytes(e); + }; + } catch {} + var YF; + }); + var OT = N((_Yr, jpe) => { + "use strict"; + _(); + x(); + var Xy = Mp(), + NT = Lu(), + nA = NT.getNAF, + L_t = NT.getJSF, + aA = NT.assert; + function km(r, e) { + (this.type = r), + (this.p = new Xy(e.p, 16)), + (this.red = e.prime ? Xy.red(e.prime) : Xy.mont(this.p)), + (this.zero = new Xy(0).toRed(this.red)), + (this.one = new Xy(1).toRed(this.red)), + (this.two = new Xy(2).toRed(this.red)), + (this.n = e.n && new Xy(e.n, 16)), + (this.g = e.g && this.pointFromJSON(e.g, e.gRed)), + (this._wnafT1 = new Array(4)), + (this._wnafT2 = new Array(4)), + (this._wnafT3 = new Array(4)), + (this._wnafT4 = new Array(4)), + (this._bitLength = this.n ? this.n.bitLength() : 0); + var t = this.n && this.p.div(this.n); + !t || t.cmpn(100) > 0 + ? (this.redN = null) + : ((this._maxwellTrick = !0), (this.redN = this.n.toRed(this.red))); + } + jpe.exports = km; + km.prototype.point = function () { + throw new Error("Not implemented"); + }; + km.prototype.validate = function () { + throw new Error("Not implemented"); + }; + km.prototype._fixedNafMul = function (e, t) { + aA(e.precomputed); + var n = e._getDoubles(), + a = nA(t, 1, this._bitLength), + i = (1 << (n.step + 1)) - (n.step % 2 === 0 ? 2 : 1); + i /= 3; + var s = [], + c, + l; + for (c = 0; c < a.length; c += n.step) { + l = 0; + for (var d = c + n.step - 1; d >= c; d--) l = (l << 1) + a[d]; + s.push(l); + } + for ( + var m = this.jpoint(null, null, null), + w = this.jpoint(null, null, null), + C = i; + C > 0; + C-- + ) { + for (c = 0; c < s.length; c++) + (l = s[c]), + l === C + ? (w = w.mixedAdd(n.points[c])) + : l === -C && (w = w.mixedAdd(n.points[c].neg())); + m = m.add(w); + } + return m.toP(); + }; + km.prototype._wnafMul = function (e, t) { + var n = 4, + a = e._getNAFPoints(n); + n = a.wnd; + for ( + var i = a.points, + s = nA(t, n, this._bitLength), + c = this.jpoint(null, null, null), + l = s.length - 1; + l >= 0; + l-- + ) { + for (var d = 0; l >= 0 && s[l] === 0; l--) d++; + if ((l >= 0 && d++, (c = c.dblp(d)), l < 0)) break; + var m = s[l]; + aA(m !== 0), + e.type === "affine" + ? m > 0 + ? (c = c.mixedAdd(i[(m - 1) >> 1])) + : (c = c.mixedAdd(i[(-m - 1) >> 1].neg())) + : m > 0 + ? (c = c.add(i[(m - 1) >> 1])) + : (c = c.add(i[(-m - 1) >> 1].neg())); + } + return e.type === "affine" ? c.toP() : c; + }; + km.prototype._wnafMulAdd = function (e, t, n, a, i) { + var s = this._wnafT1, + c = this._wnafT2, + l = this._wnafT3, + d = 0, + m, + w, + C; + for (m = 0; m < a; m++) { + C = t[m]; + var I = C._getNAFPoints(e); + (s[m] = I.wnd), (c[m] = I.points); + } + for (m = a - 1; m >= 1; m -= 2) { + var k = m - 1, + O = m; + if (s[k] !== 1 || s[O] !== 1) { + (l[k] = nA(n[k], s[k], this._bitLength)), + (l[O] = nA(n[O], s[O], this._bitLength)), + (d = Math.max(l[k].length, d)), + (d = Math.max(l[O].length, d)); + continue; + } + var D = [t[k], null, null, t[O]]; + t[k].y.cmp(t[O].y) === 0 + ? ((D[1] = t[k].add(t[O])), (D[2] = t[k].toJ().mixedAdd(t[O].neg()))) + : t[k].y.cmp(t[O].y.redNeg()) === 0 + ? ((D[1] = t[k].toJ().mixedAdd(t[O])), (D[2] = t[k].add(t[O].neg()))) + : ((D[1] = t[k].toJ().mixedAdd(t[O])), + (D[2] = t[k].toJ().mixedAdd(t[O].neg()))); + var W = [-3, -1, -5, -7, 0, 7, 5, 1, 3], + H = L_t(n[k], n[O]); + for ( + d = Math.max(H[0].length, d), + l[k] = new Array(d), + l[O] = new Array(d), + w = 0; + w < d; + w++ + ) { + var j = H[0][w] | 0, + V = H[1][w] | 0; + (l[k][w] = W[(j + 1) * 3 + (V + 1)]), (l[O][w] = 0), (c[k] = D); + } + } + var te = this.jpoint(null, null, null), + $ = this._wnafT4; + for (m = d; m >= 0; m--) { + for (var ae = 0; m >= 0; ) { + var Y = !0; + for (w = 0; w < a; w++) ($[w] = l[w][m] | 0), $[w] !== 0 && (Y = !1); + if (!Y) break; + ae++, m--; + } + if ((m >= 0 && ae++, (te = te.dblp(ae)), m < 0)) break; + for (w = 0; w < a; w++) { + var K = $[w]; + K !== 0 && + (K > 0 + ? (C = c[w][(K - 1) >> 1]) + : K < 0 && (C = c[w][(-K - 1) >> 1].neg()), + C.type === "affine" ? (te = te.mixedAdd(C)) : (te = te.add(C))); + } + } + for (m = 0; m < a; m++) c[m] = null; + return i ? te : te.toP(); + }; + function kl(r, e) { + (this.curve = r), (this.type = e), (this.precomputed = null); + } + km.BasePoint = kl; + kl.prototype.eq = function () { + throw new Error("Not implemented"); + }; + kl.prototype.validate = function () { + return this.curve.validate(this); + }; + km.prototype.decodePoint = function (e, t) { + e = NT.toArray(e, t); + var n = this.p.byteLength(); + if ((e[0] === 4 || e[0] === 6 || e[0] === 7) && e.length - 1 === 2 * n) { + e[0] === 6 + ? aA(e[e.length - 1] % 2 === 0) + : e[0] === 7 && aA(e[e.length - 1] % 2 === 1); + var a = this.point(e.slice(1, 1 + n), e.slice(1 + n, 1 + 2 * n)); + return a; + } else if ((e[0] === 2 || e[0] === 3) && e.length - 1 === n) + return this.pointFromX(e.slice(1, 1 + n), e[0] === 3); + throw new Error("Unknown point format"); + }; + kl.prototype.encodeCompressed = function (e) { + return this.encode(e, !0); + }; + kl.prototype._encode = function (e) { + var t = this.curve.p.byteLength(), + n = this.getX().toArray("be", t); + return e + ? [this.getY().isEven() ? 2 : 3].concat(n) + : [4].concat(n, this.getY().toArray("be", t)); + }; + kl.prototype.encode = function (e, t) { + return NT.encode(this._encode(t), e); + }; + kl.prototype.precompute = function (e) { + if (this.precomputed) return this; + var t = { doubles: null, naf: null, beta: null }; + return ( + (t.naf = this._getNAFPoints(8)), + (t.doubles = this._getDoubles(4, e)), + (t.beta = this._getBeta()), + (this.precomputed = t), + this + ); + }; + kl.prototype._hasDoubles = function (e) { + if (!this.precomputed) return !1; + var t = this.precomputed.doubles; + return t + ? t.points.length >= Math.ceil((e.bitLength() + 1) / t.step) + : !1; + }; + kl.prototype._getDoubles = function (e, t) { + if (this.precomputed && this.precomputed.doubles) + return this.precomputed.doubles; + for (var n = [this], a = this, i = 0; i < t; i += e) { + for (var s = 0; s < e; s++) a = a.dbl(); + n.push(a); + } + return { step: e, points: n }; + }; + kl.prototype._getNAFPoints = function (e) { + if (this.precomputed && this.precomputed.naf) return this.precomputed.naf; + for ( + var t = [this], + n = (1 << e) - 1, + a = n === 1 ? null : this.dbl(), + i = 1; + i < n; + i++ + ) + t[i] = t[i - 1].add(a); + return { wnd: e, points: t }; + }; + kl.prototype._getBeta = function () { + return null; + }; + kl.prototype.dblp = function (e) { + for (var t = this, n = 0; n < e; n++) t = t.dbl(); + return t; + }; + }); + var Vpe = N((EYr, Kpe) => { + "use strict"; + _(); + x(); + var D_t = Lu(), + Mi = Mp(), + JF = qr(), + rv = OT(), + q_t = D_t.assert; + function Sl(r) { + rv.call(this, "short", r), + (this.a = new Mi(r.a, 16).toRed(this.red)), + (this.b = new Mi(r.b, 16).toRed(this.red)), + (this.tinv = this.two.redInvm()), + (this.zeroA = this.a.fromRed().cmpn(0) === 0), + (this.threeA = this.a.fromRed().sub(this.p).cmpn(-3) === 0), + (this.endo = this._getEndomorphism(r)), + (this._endoWnafT1 = new Array(4)), + (this._endoWnafT2 = new Array(4)); + } + JF(Sl, rv); + Kpe.exports = Sl; + Sl.prototype._getEndomorphism = function (e) { + if (!(!this.zeroA || !this.g || !this.n || this.p.modn(3) !== 1)) { + var t, n; + if (e.beta) t = new Mi(e.beta, 16).toRed(this.red); + else { + var a = this._getEndoRoots(this.p); + (t = a[0].cmp(a[1]) < 0 ? a[0] : a[1]), (t = t.toRed(this.red)); + } + if (e.lambda) n = new Mi(e.lambda, 16); + else { + var i = this._getEndoRoots(this.n); + this.g.mul(i[0]).x.cmp(this.g.x.redMul(t)) === 0 + ? (n = i[0]) + : ((n = i[1]), q_t(this.g.mul(n).x.cmp(this.g.x.redMul(t)) === 0)); + } + var s; + return ( + e.basis + ? (s = e.basis.map(function (c) { + return { a: new Mi(c.a, 16), b: new Mi(c.b, 16) }; + })) + : (s = this._getEndoBasis(n)), + { beta: t, lambda: n, basis: s } + ); + } + }; + Sl.prototype._getEndoRoots = function (e) { + var t = e === this.p ? this.red : Mi.mont(e), + n = new Mi(2).toRed(t).redInvm(), + a = n.redNeg(), + i = new Mi(3).toRed(t).redNeg().redSqrt().redMul(n), + s = a.redAdd(i).fromRed(), + c = a.redSub(i).fromRed(); + return [s, c]; + }; + Sl.prototype._getEndoBasis = function (e) { + for ( + var t = this.n.ushrn(Math.floor(this.n.bitLength() / 2)), + n = e, + a = this.n.clone(), + i = new Mi(1), + s = new Mi(0), + c = new Mi(0), + l = new Mi(1), + d, + m, + w, + C, + I, + k, + O, + D = 0, + W, + H; + n.cmpn(0) !== 0; + + ) { + var j = a.div(n); + (W = a.sub(j.mul(n))), (H = c.sub(j.mul(i))); + var V = l.sub(j.mul(s)); + if (!w && W.cmp(t) < 0) (d = O.neg()), (m = i), (w = W.neg()), (C = H); + else if (w && ++D === 2) break; + (O = W), (a = n), (n = W), (c = i), (i = H), (l = s), (s = V); + } + (I = W.neg()), (k = H); + var te = w.sqr().add(C.sqr()), + $ = I.sqr().add(k.sqr()); + return ( + $.cmp(te) >= 0 && ((I = d), (k = m)), + w.negative && ((w = w.neg()), (C = C.neg())), + I.negative && ((I = I.neg()), (k = k.neg())), + [ + { a: w, b: C }, + { a: I, b: k }, + ] + ); + }; + Sl.prototype._endoSplit = function (e) { + var t = this.endo.basis, + n = t[0], + a = t[1], + i = a.b.mul(e).divRound(this.n), + s = n.b.neg().mul(e).divRound(this.n), + c = i.mul(n.a), + l = s.mul(a.a), + d = i.mul(n.b), + m = s.mul(a.b), + w = e.sub(c).sub(l), + C = d.add(m).neg(); + return { k1: w, k2: C }; + }; + Sl.prototype.pointFromX = function (e, t) { + (e = new Mi(e, 16)), e.red || (e = e.toRed(this.red)); + var n = e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b), + a = n.redSqrt(); + if (a.redSqr().redSub(n).cmp(this.zero) !== 0) + throw new Error("invalid point"); + var i = a.fromRed().isOdd(); + return ((t && !i) || (!t && i)) && (a = a.redNeg()), this.point(e, a); + }; + Sl.prototype.validate = function (e) { + if (e.inf) return !0; + var t = e.x, + n = e.y, + a = this.a.redMul(t), + i = t.redSqr().redMul(t).redIAdd(a).redIAdd(this.b); + return n.redSqr().redISub(i).cmpn(0) === 0; + }; + Sl.prototype._endoWnafMulAdd = function (e, t, n) { + for ( + var a = this._endoWnafT1, i = this._endoWnafT2, s = 0; + s < e.length; + s++ + ) { + var c = this._endoSplit(t[s]), + l = e[s], + d = l._getBeta(); + c.k1.negative && (c.k1.ineg(), (l = l.neg(!0))), + c.k2.negative && (c.k2.ineg(), (d = d.neg(!0))), + (a[s * 2] = l), + (a[s * 2 + 1] = d), + (i[s * 2] = c.k1), + (i[s * 2 + 1] = c.k2); + } + for (var m = this._wnafMulAdd(1, a, i, s * 2, n), w = 0; w < s * 2; w++) + (a[w] = null), (i[w] = null); + return m; + }; + function Ss(r, e, t, n) { + rv.BasePoint.call(this, r, "affine"), + e === null && t === null + ? ((this.x = null), (this.y = null), (this.inf = !0)) + : ((this.x = new Mi(e, 16)), + (this.y = new Mi(t, 16)), + n && + (this.x.forceRed(this.curve.red), + this.y.forceRed(this.curve.red)), + this.x.red || (this.x = this.x.toRed(this.curve.red)), + this.y.red || (this.y = this.y.toRed(this.curve.red)), + (this.inf = !1)); + } + JF(Ss, rv.BasePoint); + Sl.prototype.point = function (e, t, n) { + return new Ss(this, e, t, n); + }; + Sl.prototype.pointFromJSON = function (e, t) { + return Ss.fromJSON(this, e, t); + }; + Ss.prototype._getBeta = function () { + if (!!this.curve.endo) { + var e = this.precomputed; + if (e && e.beta) return e.beta; + var t = this.curve.point(this.x.redMul(this.curve.endo.beta), this.y); + if (e) { + var n = this.curve, + a = function (i) { + return n.point(i.x.redMul(n.endo.beta), i.y); + }; + (e.beta = t), + (t.precomputed = { + beta: null, + naf: e.naf && { wnd: e.naf.wnd, points: e.naf.points.map(a) }, + doubles: e.doubles && { + step: e.doubles.step, + points: e.doubles.points.map(a), + }, + }); + } + return t; + } + }; + Ss.prototype.toJSON = function () { + return this.precomputed + ? [ + this.x, + this.y, + this.precomputed && { + doubles: this.precomputed.doubles && { + step: this.precomputed.doubles.step, + points: this.precomputed.doubles.points.slice(1), + }, + naf: this.precomputed.naf && { + wnd: this.precomputed.naf.wnd, + points: this.precomputed.naf.points.slice(1), + }, + }, + ] + : [this.x, this.y]; + }; + Ss.fromJSON = function (e, t, n) { + typeof t == "string" && (t = JSON.parse(t)); + var a = e.point(t[0], t[1], n); + if (!t[2]) return a; + function i(c) { + return e.point(c[0], c[1], n); + } + var s = t[2]; + return ( + (a.precomputed = { + beta: null, + doubles: s.doubles && { + step: s.doubles.step, + points: [a].concat(s.doubles.points.map(i)), + }, + naf: s.naf && { + wnd: s.naf.wnd, + points: [a].concat(s.naf.points.map(i)), + }, + }), + a + ); + }; + Ss.prototype.inspect = function () { + return this.isInfinity() + ? "" + : ""; + }; + Ss.prototype.isInfinity = function () { + return this.inf; + }; + Ss.prototype.add = function (e) { + if (this.inf) return e; + if (e.inf) return this; + if (this.eq(e)) return this.dbl(); + if (this.neg().eq(e)) return this.curve.point(null, null); + if (this.x.cmp(e.x) === 0) return this.curve.point(null, null); + var t = this.y.redSub(e.y); + t.cmpn(0) !== 0 && (t = t.redMul(this.x.redSub(e.x).redInvm())); + var n = t.redSqr().redISub(this.x).redISub(e.x), + a = t.redMul(this.x.redSub(n)).redISub(this.y); + return this.curve.point(n, a); + }; + Ss.prototype.dbl = function () { + if (this.inf) return this; + var e = this.y.redAdd(this.y); + if (e.cmpn(0) === 0) return this.curve.point(null, null); + var t = this.curve.a, + n = this.x.redSqr(), + a = e.redInvm(), + i = n.redAdd(n).redIAdd(n).redIAdd(t).redMul(a), + s = i.redSqr().redISub(this.x.redAdd(this.x)), + c = i.redMul(this.x.redSub(s)).redISub(this.y); + return this.curve.point(s, c); + }; + Ss.prototype.getX = function () { + return this.x.fromRed(); + }; + Ss.prototype.getY = function () { + return this.y.fromRed(); + }; + Ss.prototype.mul = function (e) { + return ( + (e = new Mi(e, 16)), + this.isInfinity() + ? this + : this._hasDoubles(e) + ? this.curve._fixedNafMul(this, e) + : this.curve.endo + ? this.curve._endoWnafMulAdd([this], [e]) + : this.curve._wnafMul(this, e) + ); + }; + Ss.prototype.mulAdd = function (e, t, n) { + var a = [this, t], + i = [e, n]; + return this.curve.endo + ? this.curve._endoWnafMulAdd(a, i) + : this.curve._wnafMulAdd(1, a, i, 2); + }; + Ss.prototype.jmulAdd = function (e, t, n) { + var a = [this, t], + i = [e, n]; + return this.curve.endo + ? this.curve._endoWnafMulAdd(a, i, !0) + : this.curve._wnafMulAdd(1, a, i, 2, !0); + }; + Ss.prototype.eq = function (e) { + return ( + this === e || + (this.inf === e.inf && + (this.inf || (this.x.cmp(e.x) === 0 && this.y.cmp(e.y) === 0))) + ); + }; + Ss.prototype.neg = function (e) { + if (this.inf) return this; + var t = this.curve.point(this.x, this.y.redNeg()); + if (e && this.precomputed) { + var n = this.precomputed, + a = function (i) { + return i.neg(); + }; + t.precomputed = { + naf: n.naf && { wnd: n.naf.wnd, points: n.naf.points.map(a) }, + doubles: n.doubles && { + step: n.doubles.step, + points: n.doubles.points.map(a), + }, + }; + } + return t; + }; + Ss.prototype.toJ = function () { + if (this.inf) return this.curve.jpoint(null, null, null); + var e = this.curve.jpoint(this.x, this.y, this.curve.one); + return e; + }; + function Ys(r, e, t, n) { + rv.BasePoint.call(this, r, "jacobian"), + e === null && t === null && n === null + ? ((this.x = this.curve.one), + (this.y = this.curve.one), + (this.z = new Mi(0))) + : ((this.x = new Mi(e, 16)), + (this.y = new Mi(t, 16)), + (this.z = new Mi(n, 16))), + this.x.red || (this.x = this.x.toRed(this.curve.red)), + this.y.red || (this.y = this.y.toRed(this.curve.red)), + this.z.red || (this.z = this.z.toRed(this.curve.red)), + (this.zOne = this.z === this.curve.one); + } + JF(Ys, rv.BasePoint); + Sl.prototype.jpoint = function (e, t, n) { + return new Ys(this, e, t, n); + }; + Ys.prototype.toP = function () { + if (this.isInfinity()) return this.curve.point(null, null); + var e = this.z.redInvm(), + t = e.redSqr(), + n = this.x.redMul(t), + a = this.y.redMul(t).redMul(e); + return this.curve.point(n, a); + }; + Ys.prototype.neg = function () { + return this.curve.jpoint(this.x, this.y.redNeg(), this.z); + }; + Ys.prototype.add = function (e) { + if (this.isInfinity()) return e; + if (e.isInfinity()) return this; + var t = e.z.redSqr(), + n = this.z.redSqr(), + a = this.x.redMul(t), + i = e.x.redMul(n), + s = this.y.redMul(t.redMul(e.z)), + c = e.y.redMul(n.redMul(this.z)), + l = a.redSub(i), + d = s.redSub(c); + if (l.cmpn(0) === 0) + return d.cmpn(0) !== 0 + ? this.curve.jpoint(null, null, null) + : this.dbl(); + var m = l.redSqr(), + w = m.redMul(l), + C = a.redMul(m), + I = d.redSqr().redIAdd(w).redISub(C).redISub(C), + k = d.redMul(C.redISub(I)).redISub(s.redMul(w)), + O = this.z.redMul(e.z).redMul(l); + return this.curve.jpoint(I, k, O); + }; + Ys.prototype.mixedAdd = function (e) { + if (this.isInfinity()) return e.toJ(); + if (e.isInfinity()) return this; + var t = this.z.redSqr(), + n = this.x, + a = e.x.redMul(t), + i = this.y, + s = e.y.redMul(t).redMul(this.z), + c = n.redSub(a), + l = i.redSub(s); + if (c.cmpn(0) === 0) + return l.cmpn(0) !== 0 + ? this.curve.jpoint(null, null, null) + : this.dbl(); + var d = c.redSqr(), + m = d.redMul(c), + w = n.redMul(d), + C = l.redSqr().redIAdd(m).redISub(w).redISub(w), + I = l.redMul(w.redISub(C)).redISub(i.redMul(m)), + k = this.z.redMul(c); + return this.curve.jpoint(C, I, k); + }; + Ys.prototype.dblp = function (e) { + if (e === 0) return this; + if (this.isInfinity()) return this; + if (!e) return this.dbl(); + var t; + if (this.curve.zeroA || this.curve.threeA) { + var n = this; + for (t = 0; t < e; t++) n = n.dbl(); + return n; + } + var a = this.curve.a, + i = this.curve.tinv, + s = this.x, + c = this.y, + l = this.z, + d = l.redSqr().redSqr(), + m = c.redAdd(c); + for (t = 0; t < e; t++) { + var w = s.redSqr(), + C = m.redSqr(), + I = C.redSqr(), + k = w.redAdd(w).redIAdd(w).redIAdd(a.redMul(d)), + O = s.redMul(C), + D = k.redSqr().redISub(O.redAdd(O)), + W = O.redISub(D), + H = k.redMul(W); + H = H.redIAdd(H).redISub(I); + var j = m.redMul(l); + t + 1 < e && (d = d.redMul(I)), (s = D), (l = j), (m = H); + } + return this.curve.jpoint(s, m.redMul(i), l); + }; + Ys.prototype.dbl = function () { + return this.isInfinity() + ? this + : this.curve.zeroA + ? this._zeroDbl() + : this.curve.threeA + ? this._threeDbl() + : this._dbl(); + }; + Ys.prototype._zeroDbl = function () { + var e, t, n; + if (this.zOne) { + var a = this.x.redSqr(), + i = this.y.redSqr(), + s = i.redSqr(), + c = this.x.redAdd(i).redSqr().redISub(a).redISub(s); + c = c.redIAdd(c); + var l = a.redAdd(a).redIAdd(a), + d = l.redSqr().redISub(c).redISub(c), + m = s.redIAdd(s); + (m = m.redIAdd(m)), + (m = m.redIAdd(m)), + (e = d), + (t = l.redMul(c.redISub(d)).redISub(m)), + (n = this.y.redAdd(this.y)); + } else { + var w = this.x.redSqr(), + C = this.y.redSqr(), + I = C.redSqr(), + k = this.x.redAdd(C).redSqr().redISub(w).redISub(I); + k = k.redIAdd(k); + var O = w.redAdd(w).redIAdd(w), + D = O.redSqr(), + W = I.redIAdd(I); + (W = W.redIAdd(W)), + (W = W.redIAdd(W)), + (e = D.redISub(k).redISub(k)), + (t = O.redMul(k.redISub(e)).redISub(W)), + (n = this.y.redMul(this.z)), + (n = n.redIAdd(n)); + } + return this.curve.jpoint(e, t, n); + }; + Ys.prototype._threeDbl = function () { + var e, t, n; + if (this.zOne) { + var a = this.x.redSqr(), + i = this.y.redSqr(), + s = i.redSqr(), + c = this.x.redAdd(i).redSqr().redISub(a).redISub(s); + c = c.redIAdd(c); + var l = a.redAdd(a).redIAdd(a).redIAdd(this.curve.a), + d = l.redSqr().redISub(c).redISub(c); + e = d; + var m = s.redIAdd(s); + (m = m.redIAdd(m)), + (m = m.redIAdd(m)), + (t = l.redMul(c.redISub(d)).redISub(m)), + (n = this.y.redAdd(this.y)); + } else { + var w = this.z.redSqr(), + C = this.y.redSqr(), + I = this.x.redMul(C), + k = this.x.redSub(w).redMul(this.x.redAdd(w)); + k = k.redAdd(k).redIAdd(k); + var O = I.redIAdd(I); + O = O.redIAdd(O); + var D = O.redAdd(O); + (e = k.redSqr().redISub(D)), + (n = this.y.redAdd(this.z).redSqr().redISub(C).redISub(w)); + var W = C.redSqr(); + (W = W.redIAdd(W)), + (W = W.redIAdd(W)), + (W = W.redIAdd(W)), + (t = k.redMul(O.redISub(e)).redISub(W)); + } + return this.curve.jpoint(e, t, n); + }; + Ys.prototype._dbl = function () { + var e = this.curve.a, + t = this.x, + n = this.y, + a = this.z, + i = a.redSqr().redSqr(), + s = t.redSqr(), + c = n.redSqr(), + l = s.redAdd(s).redIAdd(s).redIAdd(e.redMul(i)), + d = t.redAdd(t); + d = d.redIAdd(d); + var m = d.redMul(c), + w = l.redSqr().redISub(m.redAdd(m)), + C = m.redISub(w), + I = c.redSqr(); + (I = I.redIAdd(I)), (I = I.redIAdd(I)), (I = I.redIAdd(I)); + var k = l.redMul(C).redISub(I), + O = n.redAdd(n).redMul(a); + return this.curve.jpoint(w, k, O); + }; + Ys.prototype.trpl = function () { + if (!this.curve.zeroA) return this.dbl().add(this); + var e = this.x.redSqr(), + t = this.y.redSqr(), + n = this.z.redSqr(), + a = t.redSqr(), + i = e.redAdd(e).redIAdd(e), + s = i.redSqr(), + c = this.x.redAdd(t).redSqr().redISub(e).redISub(a); + (c = c.redIAdd(c)), (c = c.redAdd(c).redIAdd(c)), (c = c.redISub(s)); + var l = c.redSqr(), + d = a.redIAdd(a); + (d = d.redIAdd(d)), (d = d.redIAdd(d)), (d = d.redIAdd(d)); + var m = i.redIAdd(c).redSqr().redISub(s).redISub(l).redISub(d), + w = t.redMul(m); + (w = w.redIAdd(w)), (w = w.redIAdd(w)); + var C = this.x.redMul(l).redISub(w); + (C = C.redIAdd(C)), (C = C.redIAdd(C)); + var I = this.y.redMul(m.redMul(d.redISub(m)).redISub(c.redMul(l))); + (I = I.redIAdd(I)), (I = I.redIAdd(I)), (I = I.redIAdd(I)); + var k = this.z.redAdd(c).redSqr().redISub(n).redISub(l); + return this.curve.jpoint(C, I, k); + }; + Ys.prototype.mul = function (e, t) { + return (e = new Mi(e, t)), this.curve._wnafMul(this, e); + }; + Ys.prototype.eq = function (e) { + if (e.type === "affine") return this.eq(e.toJ()); + if (this === e) return !0; + var t = this.z.redSqr(), + n = e.z.redSqr(); + if (this.x.redMul(n).redISub(e.x.redMul(t)).cmpn(0) !== 0) return !1; + var a = t.redMul(this.z), + i = n.redMul(e.z); + return this.y.redMul(i).redISub(e.y.redMul(a)).cmpn(0) === 0; + }; + Ys.prototype.eqXToP = function (e) { + var t = this.z.redSqr(), + n = e.toRed(this.curve.red).redMul(t); + if (this.x.cmp(n) === 0) return !0; + for (var a = e.clone(), i = this.curve.redN.redMul(t); ; ) { + if ((a.iadd(this.curve.n), a.cmp(this.curve.p) >= 0)) return !1; + if ((n.redIAdd(i), this.x.cmp(n) === 0)) return !0; + } + }; + Ys.prototype.inspect = function () { + return this.isInfinity() + ? "" + : ""; + }; + Ys.prototype.isInfinity = function () { + return this.z.cmpn(0) === 0; + }; + }); + var $pe = N((AYr, Ype) => { + "use strict"; + _(); + x(); + var nv = Mp(), + Gpe = qr(), + iA = OT(), + F_t = Lu(); + function av(r) { + iA.call(this, "mont", r), + (this.a = new nv(r.a, 16).toRed(this.red)), + (this.b = new nv(r.b, 16).toRed(this.red)), + (this.i4 = new nv(4).toRed(this.red).redInvm()), + (this.two = new nv(2).toRed(this.red)), + (this.a24 = this.i4.redMul(this.a.redAdd(this.two))); + } + Gpe(av, iA); + Ype.exports = av; + av.prototype.validate = function (e) { + var t = e.normalize().x, + n = t.redSqr(), + a = n.redMul(t).redAdd(n.redMul(this.a)).redAdd(t), + i = a.redSqrt(); + return i.redSqr().cmp(a) === 0; + }; + function Ms(r, e, t) { + iA.BasePoint.call(this, r, "projective"), + e === null && t === null + ? ((this.x = this.curve.one), (this.z = this.curve.zero)) + : ((this.x = new nv(e, 16)), + (this.z = new nv(t, 16)), + this.x.red || (this.x = this.x.toRed(this.curve.red)), + this.z.red || (this.z = this.z.toRed(this.curve.red))); + } + Gpe(Ms, iA.BasePoint); + av.prototype.decodePoint = function (e, t) { + return this.point(F_t.toArray(e, t), 1); + }; + av.prototype.point = function (e, t) { + return new Ms(this, e, t); + }; + av.prototype.pointFromJSON = function (e) { + return Ms.fromJSON(this, e); + }; + Ms.prototype.precompute = function () {}; + Ms.prototype._encode = function () { + return this.getX().toArray("be", this.curve.p.byteLength()); + }; + Ms.fromJSON = function (e, t) { + return new Ms(e, t[0], t[1] || e.one); + }; + Ms.prototype.inspect = function () { + return this.isInfinity() + ? "" + : ""; + }; + Ms.prototype.isInfinity = function () { + return this.z.cmpn(0) === 0; + }; + Ms.prototype.dbl = function () { + var e = this.x.redAdd(this.z), + t = e.redSqr(), + n = this.x.redSub(this.z), + a = n.redSqr(), + i = t.redSub(a), + s = t.redMul(a), + c = i.redMul(a.redAdd(this.curve.a24.redMul(i))); + return this.curve.point(s, c); + }; + Ms.prototype.add = function () { + throw new Error("Not supported on Montgomery curve"); + }; + Ms.prototype.diffAdd = function (e, t) { + var n = this.x.redAdd(this.z), + a = this.x.redSub(this.z), + i = e.x.redAdd(e.z), + s = e.x.redSub(e.z), + c = s.redMul(n), + l = i.redMul(a), + d = t.z.redMul(c.redAdd(l).redSqr()), + m = t.x.redMul(c.redISub(l).redSqr()); + return this.curve.point(d, m); + }; + Ms.prototype.mul = function (e) { + for ( + var t = e.clone(), + n = this, + a = this.curve.point(null, null), + i = this, + s = []; + t.cmpn(0) !== 0; + t.iushrn(1) + ) + s.push(t.andln(1)); + for (var c = s.length - 1; c >= 0; c--) + s[c] === 0 + ? ((n = n.diffAdd(a, i)), (a = a.dbl())) + : ((a = n.diffAdd(a, i)), (n = n.dbl())); + return a; + }; + Ms.prototype.mulAdd = function () { + throw new Error("Not supported on Montgomery curve"); + }; + Ms.prototype.jumlAdd = function () { + throw new Error("Not supported on Montgomery curve"); + }; + Ms.prototype.eq = function (e) { + return this.getX().cmp(e.getX()) === 0; + }; + Ms.prototype.normalize = function () { + return ( + (this.x = this.x.redMul(this.z.redInvm())), + (this.z = this.curve.one), + this + ); + }; + Ms.prototype.getX = function () { + return this.normalize(), this.x.fromRed(); + }; + }); + var Qpe = N((MYr, Zpe) => { + "use strict"; + _(); + x(); + var W_t = Lu(), + sf = Mp(), + Jpe = qr(), + sA = OT(), + U_t = W_t.assert; + function Lp(r) { + (this.twisted = (r.a | 0) !== 1), + (this.mOneA = this.twisted && (r.a | 0) === -1), + (this.extended = this.mOneA), + sA.call(this, "edwards", r), + (this.a = new sf(r.a, 16).umod(this.red.m)), + (this.a = this.a.toRed(this.red)), + (this.c = new sf(r.c, 16).toRed(this.red)), + (this.c2 = this.c.redSqr()), + (this.d = new sf(r.d, 16).toRed(this.red)), + (this.dd = this.d.redAdd(this.d)), + U_t(!this.twisted || this.c.fromRed().cmpn(1) === 0), + (this.oneC = (r.c | 0) === 1); + } + Jpe(Lp, sA); + Zpe.exports = Lp; + Lp.prototype._mulA = function (e) { + return this.mOneA ? e.redNeg() : this.a.redMul(e); + }; + Lp.prototype._mulC = function (e) { + return this.oneC ? e : this.c.redMul(e); + }; + Lp.prototype.jpoint = function (e, t, n, a) { + return this.point(e, t, n, a); + }; + Lp.prototype.pointFromX = function (e, t) { + (e = new sf(e, 16)), e.red || (e = e.toRed(this.red)); + var n = e.redSqr(), + a = this.c2.redSub(this.a.redMul(n)), + i = this.one.redSub(this.c2.redMul(this.d).redMul(n)), + s = a.redMul(i.redInvm()), + c = s.redSqrt(); + if (c.redSqr().redSub(s).cmp(this.zero) !== 0) + throw new Error("invalid point"); + var l = c.fromRed().isOdd(); + return ((t && !l) || (!t && l)) && (c = c.redNeg()), this.point(e, c); + }; + Lp.prototype.pointFromY = function (e, t) { + (e = new sf(e, 16)), e.red || (e = e.toRed(this.red)); + var n = e.redSqr(), + a = n.redSub(this.c2), + i = n.redMul(this.d).redMul(this.c2).redSub(this.a), + s = a.redMul(i.redInvm()); + if (s.cmp(this.zero) === 0) { + if (t) throw new Error("invalid point"); + return this.point(this.zero, e); + } + var c = s.redSqrt(); + if (c.redSqr().redSub(s).cmp(this.zero) !== 0) + throw new Error("invalid point"); + return c.fromRed().isOdd() !== t && (c = c.redNeg()), this.point(c, e); + }; + Lp.prototype.validate = function (e) { + if (e.isInfinity()) return !0; + e.normalize(); + var t = e.x.redSqr(), + n = e.y.redSqr(), + a = t.redMul(this.a).redAdd(n), + i = this.c2.redMul(this.one.redAdd(this.d.redMul(t).redMul(n))); + return a.cmp(i) === 0; + }; + function ni(r, e, t, n, a) { + sA.BasePoint.call(this, r, "projective"), + e === null && t === null && n === null + ? ((this.x = this.curve.zero), + (this.y = this.curve.one), + (this.z = this.curve.one), + (this.t = this.curve.zero), + (this.zOne = !0)) + : ((this.x = new sf(e, 16)), + (this.y = new sf(t, 16)), + (this.z = n ? new sf(n, 16) : this.curve.one), + (this.t = a && new sf(a, 16)), + this.x.red || (this.x = this.x.toRed(this.curve.red)), + this.y.red || (this.y = this.y.toRed(this.curve.red)), + this.z.red || (this.z = this.z.toRed(this.curve.red)), + this.t && !this.t.red && (this.t = this.t.toRed(this.curve.red)), + (this.zOne = this.z === this.curve.one), + this.curve.extended && + !this.t && + ((this.t = this.x.redMul(this.y)), + this.zOne || (this.t = this.t.redMul(this.z.redInvm())))); + } + Jpe(ni, sA.BasePoint); + Lp.prototype.pointFromJSON = function (e) { + return ni.fromJSON(this, e); + }; + Lp.prototype.point = function (e, t, n, a) { + return new ni(this, e, t, n, a); + }; + ni.fromJSON = function (e, t) { + return new ni(e, t[0], t[1], t[2]); + }; + ni.prototype.inspect = function () { + return this.isInfinity() + ? "" + : ""; + }; + ni.prototype.isInfinity = function () { + return ( + this.x.cmpn(0) === 0 && + (this.y.cmp(this.z) === 0 || + (this.zOne && this.y.cmp(this.curve.c) === 0)) + ); + }; + ni.prototype._extDbl = function () { + var e = this.x.redSqr(), + t = this.y.redSqr(), + n = this.z.redSqr(); + n = n.redIAdd(n); + var a = this.curve._mulA(e), + i = this.x.redAdd(this.y).redSqr().redISub(e).redISub(t), + s = a.redAdd(t), + c = s.redSub(n), + l = a.redSub(t), + d = i.redMul(c), + m = s.redMul(l), + w = i.redMul(l), + C = c.redMul(s); + return this.curve.point(d, m, C, w); + }; + ni.prototype._projDbl = function () { + var e = this.x.redAdd(this.y).redSqr(), + t = this.x.redSqr(), + n = this.y.redSqr(), + a, + i, + s, + c, + l, + d; + if (this.curve.twisted) { + c = this.curve._mulA(t); + var m = c.redAdd(n); + this.zOne + ? ((a = e.redSub(t).redSub(n).redMul(m.redSub(this.curve.two))), + (i = m.redMul(c.redSub(n))), + (s = m.redSqr().redSub(m).redSub(m))) + : ((l = this.z.redSqr()), + (d = m.redSub(l).redISub(l)), + (a = e.redSub(t).redISub(n).redMul(d)), + (i = m.redMul(c.redSub(n))), + (s = m.redMul(d))); + } else + (c = t.redAdd(n)), + (l = this.curve._mulC(this.z).redSqr()), + (d = c.redSub(l).redSub(l)), + (a = this.curve._mulC(e.redISub(c)).redMul(d)), + (i = this.curve._mulC(c).redMul(t.redISub(n))), + (s = c.redMul(d)); + return this.curve.point(a, i, s); + }; + ni.prototype.dbl = function () { + return this.isInfinity() + ? this + : this.curve.extended + ? this._extDbl() + : this._projDbl(); + }; + ni.prototype._extAdd = function (e) { + var t = this.y.redSub(this.x).redMul(e.y.redSub(e.x)), + n = this.y.redAdd(this.x).redMul(e.y.redAdd(e.x)), + a = this.t.redMul(this.curve.dd).redMul(e.t), + i = this.z.redMul(e.z.redAdd(e.z)), + s = n.redSub(t), + c = i.redSub(a), + l = i.redAdd(a), + d = n.redAdd(t), + m = s.redMul(c), + w = l.redMul(d), + C = s.redMul(d), + I = c.redMul(l); + return this.curve.point(m, w, I, C); + }; + ni.prototype._projAdd = function (e) { + var t = this.z.redMul(e.z), + n = t.redSqr(), + a = this.x.redMul(e.x), + i = this.y.redMul(e.y), + s = this.curve.d.redMul(a).redMul(i), + c = n.redSub(s), + l = n.redAdd(s), + d = this.x.redAdd(this.y).redMul(e.x.redAdd(e.y)).redISub(a).redISub(i), + m = t.redMul(c).redMul(d), + w, + C; + return ( + this.curve.twisted + ? ((w = t.redMul(l).redMul(i.redSub(this.curve._mulA(a)))), + (C = c.redMul(l))) + : ((w = t.redMul(l).redMul(i.redSub(a))), + (C = this.curve._mulC(c).redMul(l))), + this.curve.point(m, w, C) + ); + }; + ni.prototype.add = function (e) { + return this.isInfinity() + ? e + : e.isInfinity() + ? this + : this.curve.extended + ? this._extAdd(e) + : this._projAdd(e); + }; + ni.prototype.mul = function (e) { + return this._hasDoubles(e) + ? this.curve._fixedNafMul(this, e) + : this.curve._wnafMul(this, e); + }; + ni.prototype.mulAdd = function (e, t, n) { + return this.curve._wnafMulAdd(1, [this, t], [e, n], 2, !1); + }; + ni.prototype.jmulAdd = function (e, t, n) { + return this.curve._wnafMulAdd(1, [this, t], [e, n], 2, !0); + }; + ni.prototype.normalize = function () { + if (this.zOne) return this; + var e = this.z.redInvm(); + return ( + (this.x = this.x.redMul(e)), + (this.y = this.y.redMul(e)), + this.t && (this.t = this.t.redMul(e)), + (this.z = this.curve.one), + (this.zOne = !0), + this + ); + }; + ni.prototype.neg = function () { + return this.curve.point( + this.x.redNeg(), + this.y, + this.z, + this.t && this.t.redNeg() + ); + }; + ni.prototype.getX = function () { + return this.normalize(), this.x.fromRed(); + }; + ni.prototype.getY = function () { + return this.normalize(), this.y.fromRed(); + }; + ni.prototype.eq = function (e) { + return ( + this === e || + (this.getX().cmp(e.getX()) === 0 && this.getY().cmp(e.getY()) === 0) + ); + }; + ni.prototype.eqXToP = function (e) { + var t = e.toRed(this.curve.red).redMul(this.z); + if (this.x.cmp(t) === 0) return !0; + for (var n = e.clone(), a = this.curve.redN.redMul(this.z); ; ) { + if ((n.iadd(this.curve.n), n.cmp(this.curve.p) >= 0)) return !1; + if ((t.redIAdd(a), this.x.cmp(t) === 0)) return !0; + } + }; + ni.prototype.toP = ni.prototype.normalize; + ni.prototype.mixedAdd = ni.prototype.add; + }); + var ZF = N((Xpe) => { + "use strict"; + _(); + x(); + var oA = Xpe; + oA.base = OT(); + oA.short = Vpe(); + oA.mont = $pe(); + oA.edwards = Qpe(); + }); + var Rd = N((ri) => { + "use strict"; + _(); + x(); + var H_t = Ou(), + z_t = qr(); + ri.inherits = z_t; + function j_t(r, e) { + return (r.charCodeAt(e) & 64512) !== 55296 || e < 0 || e + 1 >= r.length + ? !1 + : (r.charCodeAt(e + 1) & 64512) === 56320; + } + function K_t(r, e) { + if (Array.isArray(r)) return r.slice(); + if (!r) return []; + var t = []; + if (typeof r == "string") + if (e) { + if (e === "hex") + for ( + r = r.replace(/[^a-z0-9]+/gi, ""), + r.length % 2 !== 0 && (r = "0" + r), + a = 0; + a < r.length; + a += 2 + ) + t.push(parseInt(r[a] + r[a + 1], 16)); + } else + for (var n = 0, a = 0; a < r.length; a++) { + var i = r.charCodeAt(a); + i < 128 + ? (t[n++] = i) + : i < 2048 + ? ((t[n++] = (i >> 6) | 192), (t[n++] = (i & 63) | 128)) + : j_t(r, a) + ? ((i = 65536 + ((i & 1023) << 10) + (r.charCodeAt(++a) & 1023)), + (t[n++] = (i >> 18) | 240), + (t[n++] = ((i >> 12) & 63) | 128), + (t[n++] = ((i >> 6) & 63) | 128), + (t[n++] = (i & 63) | 128)) + : ((t[n++] = (i >> 12) | 224), + (t[n++] = ((i >> 6) & 63) | 128), + (t[n++] = (i & 63) | 128)); + } + else for (a = 0; a < r.length; a++) t[a] = r[a] | 0; + return t; + } + ri.toArray = K_t; + function V_t(r) { + for (var e = "", t = 0; t < r.length; t++) e += the(r[t].toString(16)); + return e; + } + ri.toHex = V_t; + function ehe(r) { + var e = + (r >>> 24) | + ((r >>> 8) & 65280) | + ((r << 8) & 16711680) | + ((r & 255) << 24); + return e >>> 0; + } + ri.htonl = ehe; + function G_t(r, e) { + for (var t = "", n = 0; n < r.length; n++) { + var a = r[n]; + e === "little" && (a = ehe(a)), (t += rhe(a.toString(16))); + } + return t; + } + ri.toHex32 = G_t; + function the(r) { + return r.length === 1 ? "0" + r : r; + } + ri.zero2 = the; + function rhe(r) { + return r.length === 7 + ? "0" + r + : r.length === 6 + ? "00" + r + : r.length === 5 + ? "000" + r + : r.length === 4 + ? "0000" + r + : r.length === 3 + ? "00000" + r + : r.length === 2 + ? "000000" + r + : r.length === 1 + ? "0000000" + r + : r; + } + ri.zero8 = rhe; + function Y_t(r, e, t, n) { + var a = t - e; + H_t(a % 4 === 0); + for (var i = new Array(a / 4), s = 0, c = e; s < i.length; s++, c += 4) { + var l; + n === "big" + ? (l = (r[c] << 24) | (r[c + 1] << 16) | (r[c + 2] << 8) | r[c + 3]) + : (l = (r[c + 3] << 24) | (r[c + 2] << 16) | (r[c + 1] << 8) | r[c]), + (i[s] = l >>> 0); + } + return i; + } + ri.join32 = Y_t; + function $_t(r, e) { + for ( + var t = new Array(r.length * 4), n = 0, a = 0; + n < r.length; + n++, a += 4 + ) { + var i = r[n]; + e === "big" + ? ((t[a] = i >>> 24), + (t[a + 1] = (i >>> 16) & 255), + (t[a + 2] = (i >>> 8) & 255), + (t[a + 3] = i & 255)) + : ((t[a + 3] = i >>> 24), + (t[a + 2] = (i >>> 16) & 255), + (t[a + 1] = (i >>> 8) & 255), + (t[a] = i & 255)); + } + return t; + } + ri.split32 = $_t; + function J_t(r, e) { + return (r >>> e) | (r << (32 - e)); + } + ri.rotr32 = J_t; + function Z_t(r, e) { + return (r << e) | (r >>> (32 - e)); + } + ri.rotl32 = Z_t; + function Q_t(r, e) { + return (r + e) >>> 0; + } + ri.sum32 = Q_t; + function X_t(r, e, t) { + return (r + e + t) >>> 0; + } + ri.sum32_3 = X_t; + function ext(r, e, t, n) { + return (r + e + t + n) >>> 0; + } + ri.sum32_4 = ext; + function txt(r, e, t, n, a) { + return (r + e + t + n + a) >>> 0; + } + ri.sum32_5 = txt; + function rxt(r, e, t, n) { + var a = r[e], + i = r[e + 1], + s = (n + i) >>> 0, + c = (s < n ? 1 : 0) + t + a; + (r[e] = c >>> 0), (r[e + 1] = s); + } + ri.sum64 = rxt; + function nxt(r, e, t, n) { + var a = (e + n) >>> 0, + i = (a < e ? 1 : 0) + r + t; + return i >>> 0; + } + ri.sum64_hi = nxt; + function axt(r, e, t, n) { + var a = e + n; + return a >>> 0; + } + ri.sum64_lo = axt; + function ixt(r, e, t, n, a, i, s, c) { + var l = 0, + d = e; + (d = (d + n) >>> 0), + (l += d < e ? 1 : 0), + (d = (d + i) >>> 0), + (l += d < i ? 1 : 0), + (d = (d + c) >>> 0), + (l += d < c ? 1 : 0); + var m = r + t + a + s + l; + return m >>> 0; + } + ri.sum64_4_hi = ixt; + function sxt(r, e, t, n, a, i, s, c) { + var l = e + n + i + c; + return l >>> 0; + } + ri.sum64_4_lo = sxt; + function oxt(r, e, t, n, a, i, s, c, l, d) { + var m = 0, + w = e; + (w = (w + n) >>> 0), + (m += w < e ? 1 : 0), + (w = (w + i) >>> 0), + (m += w < i ? 1 : 0), + (w = (w + c) >>> 0), + (m += w < c ? 1 : 0), + (w = (w + d) >>> 0), + (m += w < d ? 1 : 0); + var C = r + t + a + s + l + m; + return C >>> 0; + } + ri.sum64_5_hi = oxt; + function cxt(r, e, t, n, a, i, s, c, l, d) { + var m = e + n + i + c + d; + return m >>> 0; + } + ri.sum64_5_lo = cxt; + function uxt(r, e, t) { + var n = (e << (32 - t)) | (r >>> t); + return n >>> 0; + } + ri.rotr64_hi = uxt; + function lxt(r, e, t) { + var n = (r << (32 - t)) | (e >>> t); + return n >>> 0; + } + ri.rotr64_lo = lxt; + function dxt(r, e, t) { + return r >>> t; + } + ri.shr64_hi = dxt; + function pxt(r, e, t) { + var n = (r << (32 - t)) | (e >>> t); + return n >>> 0; + } + ri.shr64_lo = pxt; + }); + var iv = N((ahe) => { + "use strict"; + _(); + x(); + var nhe = Rd(), + hxt = Ou(); + function cA() { + (this.pending = null), + (this.pendingTotal = 0), + (this.blockSize = this.constructor.blockSize), + (this.outSize = this.constructor.outSize), + (this.hmacStrength = this.constructor.hmacStrength), + (this.padLength = this.constructor.padLength / 8), + (this.endian = "big"), + (this._delta8 = this.blockSize / 8), + (this._delta32 = this.blockSize / 32); + } + ahe.BlockHash = cA; + cA.prototype.update = function (e, t) { + if ( + ((e = nhe.toArray(e, t)), + this.pending + ? (this.pending = this.pending.concat(e)) + : (this.pending = e), + (this.pendingTotal += e.length), + this.pending.length >= this._delta8) + ) { + e = this.pending; + var n = e.length % this._delta8; + (this.pending = e.slice(e.length - n, e.length)), + this.pending.length === 0 && (this.pending = null), + (e = nhe.join32(e, 0, e.length - n, this.endian)); + for (var a = 0; a < e.length; a += this._delta32) + this._update(e, a, a + this._delta32); + } + return this; + }; + cA.prototype.digest = function (e) { + return ( + this.update(this._pad()), hxt(this.pending === null), this._digest(e) + ); + }; + cA.prototype._pad = function () { + var e = this.pendingTotal, + t = this._delta8, + n = t - ((e + this.padLength) % t), + a = new Array(n + this.padLength); + a[0] = 128; + for (var i = 1; i < n; i++) a[i] = 0; + if (((e <<= 3), this.endian === "big")) { + for (var s = 8; s < this.padLength; s++) a[i++] = 0; + (a[i++] = 0), + (a[i++] = 0), + (a[i++] = 0), + (a[i++] = 0), + (a[i++] = (e >>> 24) & 255), + (a[i++] = (e >>> 16) & 255), + (a[i++] = (e >>> 8) & 255), + (a[i++] = e & 255); + } else + for ( + a[i++] = e & 255, + a[i++] = (e >>> 8) & 255, + a[i++] = (e >>> 16) & 255, + a[i++] = (e >>> 24) & 255, + a[i++] = 0, + a[i++] = 0, + a[i++] = 0, + a[i++] = 0, + s = 8; + s < this.padLength; + s++ + ) + a[i++] = 0; + return a; + }; + }); + var QF = N((of) => { + "use strict"; + _(); + x(); + var fxt = Rd(), + Dp = fxt.rotr32; + function mxt(r, e, t, n) { + if (r === 0) return ihe(e, t, n); + if (r === 1 || r === 3) return ohe(e, t, n); + if (r === 2) return she(e, t, n); + } + of.ft_1 = mxt; + function ihe(r, e, t) { + return (r & e) ^ (~r & t); + } + of.ch32 = ihe; + function she(r, e, t) { + return (r & e) ^ (r & t) ^ (e & t); + } + of.maj32 = she; + function ohe(r, e, t) { + return r ^ e ^ t; + } + of.p32 = ohe; + function yxt(r) { + return Dp(r, 2) ^ Dp(r, 13) ^ Dp(r, 22); + } + of.s0_256 = yxt; + function gxt(r) { + return Dp(r, 6) ^ Dp(r, 11) ^ Dp(r, 25); + } + of.s1_256 = gxt; + function bxt(r) { + return Dp(r, 7) ^ Dp(r, 18) ^ (r >>> 3); + } + of.g0_256 = bxt; + function vxt(r) { + return Dp(r, 17) ^ Dp(r, 19) ^ (r >>> 10); + } + of.g1_256 = vxt; + }); + var lhe = N((KYr, uhe) => { + "use strict"; + _(); + x(); + var sv = Rd(), + wxt = iv(), + _xt = QF(), + XF = sv.rotl32, + LT = sv.sum32, + xxt = sv.sum32_5, + Txt = _xt.ft_1, + che = wxt.BlockHash, + Ext = [1518500249, 1859775393, 2400959708, 3395469782]; + function qp() { + if (!(this instanceof qp)) return new qp(); + che.call(this), + (this.h = [1732584193, 4023233417, 2562383102, 271733878, 3285377520]), + (this.W = new Array(80)); + } + sv.inherits(qp, che); + uhe.exports = qp; + qp.blockSize = 512; + qp.outSize = 160; + qp.hmacStrength = 80; + qp.padLength = 64; + qp.prototype._update = function (e, t) { + for (var n = this.W, a = 0; a < 16; a++) n[a] = e[t + a]; + for (; a < n.length; a++) + n[a] = XF(n[a - 3] ^ n[a - 8] ^ n[a - 14] ^ n[a - 16], 1); + var i = this.h[0], + s = this.h[1], + c = this.h[2], + l = this.h[3], + d = this.h[4]; + for (a = 0; a < n.length; a++) { + var m = ~~(a / 20), + w = xxt(XF(i, 5), Txt(m, s, c, l), d, n[a], Ext[m]); + (d = l), (l = c), (c = XF(s, 30)), (s = i), (i = w); + } + (this.h[0] = LT(this.h[0], i)), + (this.h[1] = LT(this.h[1], s)), + (this.h[2] = LT(this.h[2], c)), + (this.h[3] = LT(this.h[3], l)), + (this.h[4] = LT(this.h[4], d)); + }; + qp.prototype._digest = function (e) { + return e === "hex" + ? sv.toHex32(this.h, "big") + : sv.split32(this.h, "big"); + }; + }); + var eW = N((YYr, phe) => { + "use strict"; + _(); + x(); + var ov = Rd(), + Cxt = iv(), + cv = QF(), + Ixt = Ou(), + Bd = ov.sum32, + Axt = ov.sum32_4, + kxt = ov.sum32_5, + Sxt = cv.ch32, + Mxt = cv.maj32, + Pxt = cv.s0_256, + Rxt = cv.s1_256, + Bxt = cv.g0_256, + Nxt = cv.g1_256, + dhe = Cxt.BlockHash, + Oxt = [ + 1116352408, 1899447441, 3049323471, 3921009573, 961987163, 1508970993, + 2453635748, 2870763221, 3624381080, 310598401, 607225278, 1426881987, + 1925078388, 2162078206, 2614888103, 3248222580, 3835390401, 4022224774, + 264347078, 604807628, 770255983, 1249150122, 1555081692, 1996064986, + 2554220882, 2821834349, 2952996808, 3210313671, 3336571891, 3584528711, + 113926993, 338241895, 666307205, 773529912, 1294757372, 1396182291, + 1695183700, 1986661051, 2177026350, 2456956037, 2730485921, 2820302411, + 3259730800, 3345764771, 3516065817, 3600352804, 4094571909, 275423344, + 430227734, 506948616, 659060556, 883997877, 958139571, 1322822218, + 1537002063, 1747873779, 1955562222, 2024104815, 2227730452, 2361852424, + 2428436474, 2756734187, 3204031479, 3329325298, + ]; + function Fp() { + if (!(this instanceof Fp)) return new Fp(); + dhe.call(this), + (this.h = [ + 1779033703, 3144134277, 1013904242, 2773480762, 1359893119, + 2600822924, 528734635, 1541459225, + ]), + (this.k = Oxt), + (this.W = new Array(64)); + } + ov.inherits(Fp, dhe); + phe.exports = Fp; + Fp.blockSize = 512; + Fp.outSize = 256; + Fp.hmacStrength = 192; + Fp.padLength = 64; + Fp.prototype._update = function (e, t) { + for (var n = this.W, a = 0; a < 16; a++) n[a] = e[t + a]; + for (; a < n.length; a++) + n[a] = Axt(Nxt(n[a - 2]), n[a - 7], Bxt(n[a - 15]), n[a - 16]); + var i = this.h[0], + s = this.h[1], + c = this.h[2], + l = this.h[3], + d = this.h[4], + m = this.h[5], + w = this.h[6], + C = this.h[7]; + for (Ixt(this.k.length === n.length), a = 0; a < n.length; a++) { + var I = kxt(C, Rxt(d), Sxt(d, m, w), this.k[a], n[a]), + k = Bd(Pxt(i), Mxt(i, s, c)); + (C = w), + (w = m), + (m = d), + (d = Bd(l, I)), + (l = c), + (c = s), + (s = i), + (i = Bd(I, k)); + } + (this.h[0] = Bd(this.h[0], i)), + (this.h[1] = Bd(this.h[1], s)), + (this.h[2] = Bd(this.h[2], c)), + (this.h[3] = Bd(this.h[3], l)), + (this.h[4] = Bd(this.h[4], d)), + (this.h[5] = Bd(this.h[5], m)), + (this.h[6] = Bd(this.h[6], w)), + (this.h[7] = Bd(this.h[7], C)); + }; + Fp.prototype._digest = function (e) { + return e === "hex" + ? ov.toHex32(this.h, "big") + : ov.split32(this.h, "big"); + }; + }); + var mhe = N((ZYr, fhe) => { + "use strict"; + _(); + x(); + var tW = Rd(), + hhe = eW(); + function cf() { + if (!(this instanceof cf)) return new cf(); + hhe.call(this), + (this.h = [ + 3238371032, 914150663, 812702999, 4144912697, 4290775857, 1750603025, + 1694076839, 3204075428, + ]); + } + tW.inherits(cf, hhe); + fhe.exports = cf; + cf.blockSize = 512; + cf.outSize = 224; + cf.hmacStrength = 192; + cf.padLength = 64; + cf.prototype._digest = function (e) { + return e === "hex" + ? tW.toHex32(this.h.slice(0, 7), "big") + : tW.split32(this.h.slice(0, 7), "big"); + }; + }); + var aW = N((e$r, vhe) => { + "use strict"; + _(); + x(); + var Qc = Rd(), + Lxt = iv(), + Dxt = Ou(), + Wp = Qc.rotr64_hi, + Up = Qc.rotr64_lo, + yhe = Qc.shr64_hi, + ghe = Qc.shr64_lo, + Sm = Qc.sum64, + rW = Qc.sum64_hi, + nW = Qc.sum64_lo, + qxt = Qc.sum64_4_hi, + Fxt = Qc.sum64_4_lo, + Wxt = Qc.sum64_5_hi, + Uxt = Qc.sum64_5_lo, + bhe = Lxt.BlockHash, + Hxt = [ + 1116352408, 3609767458, 1899447441, 602891725, 3049323471, 3964484399, + 3921009573, 2173295548, 961987163, 4081628472, 1508970993, 3053834265, + 2453635748, 2937671579, 2870763221, 3664609560, 3624381080, 2734883394, + 310598401, 1164996542, 607225278, 1323610764, 1426881987, 3590304994, + 1925078388, 4068182383, 2162078206, 991336113, 2614888103, 633803317, + 3248222580, 3479774868, 3835390401, 2666613458, 4022224774, 944711139, + 264347078, 2341262773, 604807628, 2007800933, 770255983, 1495990901, + 1249150122, 1856431235, 1555081692, 3175218132, 1996064986, 2198950837, + 2554220882, 3999719339, 2821834349, 766784016, 2952996808, 2566594879, + 3210313671, 3203337956, 3336571891, 1034457026, 3584528711, 2466948901, + 113926993, 3758326383, 338241895, 168717936, 666307205, 1188179964, + 773529912, 1546045734, 1294757372, 1522805485, 1396182291, 2643833823, + 1695183700, 2343527390, 1986661051, 1014477480, 2177026350, 1206759142, + 2456956037, 344077627, 2730485921, 1290863460, 2820302411, 3158454273, + 3259730800, 3505952657, 3345764771, 106217008, 3516065817, 3606008344, + 3600352804, 1432725776, 4094571909, 1467031594, 275423344, 851169720, + 430227734, 3100823752, 506948616, 1363258195, 659060556, 3750685593, + 883997877, 3785050280, 958139571, 3318307427, 1322822218, 3812723403, + 1537002063, 2003034995, 1747873779, 3602036899, 1955562222, 1575990012, + 2024104815, 1125592928, 2227730452, 2716904306, 2361852424, 442776044, + 2428436474, 593698344, 2756734187, 3733110249, 3204031479, 2999351573, + 3329325298, 3815920427, 3391569614, 3928383900, 3515267271, 566280711, + 3940187606, 3454069534, 4118630271, 4000239992, 116418474, 1914138554, + 174292421, 2731055270, 289380356, 3203993006, 460393269, 320620315, + 685471733, 587496836, 852142971, 1086792851, 1017036298, 365543100, + 1126000580, 2618297676, 1288033470, 3409855158, 1501505948, 4234509866, + 1607167915, 987167468, 1816402316, 1246189591, + ]; + function Nd() { + if (!(this instanceof Nd)) return new Nd(); + bhe.call(this), + (this.h = [ + 1779033703, 4089235720, 3144134277, 2227873595, 1013904242, + 4271175723, 2773480762, 1595750129, 1359893119, 2917565137, + 2600822924, 725511199, 528734635, 4215389547, 1541459225, 327033209, + ]), + (this.k = Hxt), + (this.W = new Array(160)); + } + Qc.inherits(Nd, bhe); + vhe.exports = Nd; + Nd.blockSize = 1024; + Nd.outSize = 512; + Nd.hmacStrength = 192; + Nd.padLength = 128; + Nd.prototype._prepareBlock = function (e, t) { + for (var n = this.W, a = 0; a < 32; a++) n[a] = e[t + a]; + for (; a < n.length; a += 2) { + var i = Xxt(n[a - 4], n[a - 3]), + s = eTt(n[a - 4], n[a - 3]), + c = n[a - 14], + l = n[a - 13], + d = Zxt(n[a - 30], n[a - 29]), + m = Qxt(n[a - 30], n[a - 29]), + w = n[a - 32], + C = n[a - 31]; + (n[a] = qxt(i, s, c, l, d, m, w, C)), + (n[a + 1] = Fxt(i, s, c, l, d, m, w, C)); + } + }; + Nd.prototype._update = function (e, t) { + this._prepareBlock(e, t); + var n = this.W, + a = this.h[0], + i = this.h[1], + s = this.h[2], + c = this.h[3], + l = this.h[4], + d = this.h[5], + m = this.h[6], + w = this.h[7], + C = this.h[8], + I = this.h[9], + k = this.h[10], + O = this.h[11], + D = this.h[12], + W = this.h[13], + H = this.h[14], + j = this.h[15]; + Dxt(this.k.length === n.length); + for (var V = 0; V < n.length; V += 2) { + var te = H, + $ = j, + ae = $xt(C, I), + Y = Jxt(C, I), + K = zxt(C, I, k, O, D, W), + g = jxt(C, I, k, O, D, W), + o = this.k[V], + p = this.k[V + 1], + y = n[V], + h = n[V + 1], + b = Wxt(te, $, ae, Y, K, g, o, p, y, h), + T = Uxt(te, $, ae, Y, K, g, o, p, y, h); + (te = Gxt(a, i)), + ($ = Yxt(a, i)), + (ae = Kxt(a, i, s, c, l, d)), + (Y = Vxt(a, i, s, c, l, d)); + var E = rW(te, $, ae, Y), + f = nW(te, $, ae, Y); + (H = D), + (j = W), + (D = k), + (W = O), + (k = C), + (O = I), + (C = rW(m, w, b, T)), + (I = nW(w, w, b, T)), + (m = l), + (w = d), + (l = s), + (d = c), + (s = a), + (c = i), + (a = rW(b, T, E, f)), + (i = nW(b, T, E, f)); + } + Sm(this.h, 0, a, i), + Sm(this.h, 2, s, c), + Sm(this.h, 4, l, d), + Sm(this.h, 6, m, w), + Sm(this.h, 8, C, I), + Sm(this.h, 10, k, O), + Sm(this.h, 12, D, W), + Sm(this.h, 14, H, j); + }; + Nd.prototype._digest = function (e) { + return e === "hex" + ? Qc.toHex32(this.h, "big") + : Qc.split32(this.h, "big"); + }; + function zxt(r, e, t, n, a) { + var i = (r & t) ^ (~r & a); + return i < 0 && (i += 4294967296), i; + } + function jxt(r, e, t, n, a, i) { + var s = (e & n) ^ (~e & i); + return s < 0 && (s += 4294967296), s; + } + function Kxt(r, e, t, n, a) { + var i = (r & t) ^ (r & a) ^ (t & a); + return i < 0 && (i += 4294967296), i; + } + function Vxt(r, e, t, n, a, i) { + var s = (e & n) ^ (e & i) ^ (n & i); + return s < 0 && (s += 4294967296), s; + } + function Gxt(r, e) { + var t = Wp(r, e, 28), + n = Wp(e, r, 2), + a = Wp(e, r, 7), + i = t ^ n ^ a; + return i < 0 && (i += 4294967296), i; + } + function Yxt(r, e) { + var t = Up(r, e, 28), + n = Up(e, r, 2), + a = Up(e, r, 7), + i = t ^ n ^ a; + return i < 0 && (i += 4294967296), i; + } + function $xt(r, e) { + var t = Wp(r, e, 14), + n = Wp(r, e, 18), + a = Wp(e, r, 9), + i = t ^ n ^ a; + return i < 0 && (i += 4294967296), i; + } + function Jxt(r, e) { + var t = Up(r, e, 14), + n = Up(r, e, 18), + a = Up(e, r, 9), + i = t ^ n ^ a; + return i < 0 && (i += 4294967296), i; + } + function Zxt(r, e) { + var t = Wp(r, e, 1), + n = Wp(r, e, 8), + a = yhe(r, e, 7), + i = t ^ n ^ a; + return i < 0 && (i += 4294967296), i; + } + function Qxt(r, e) { + var t = Up(r, e, 1), + n = Up(r, e, 8), + a = ghe(r, e, 7), + i = t ^ n ^ a; + return i < 0 && (i += 4294967296), i; + } + function Xxt(r, e) { + var t = Wp(r, e, 19), + n = Wp(e, r, 29), + a = yhe(r, e, 6), + i = t ^ n ^ a; + return i < 0 && (i += 4294967296), i; + } + function eTt(r, e) { + var t = Up(r, e, 19), + n = Up(e, r, 29), + a = ghe(r, e, 6), + i = t ^ n ^ a; + return i < 0 && (i += 4294967296), i; + } + }); + var xhe = N((n$r, _he) => { + "use strict"; + _(); + x(); + var iW = Rd(), + whe = aW(); + function uf() { + if (!(this instanceof uf)) return new uf(); + whe.call(this), + (this.h = [ + 3418070365, 3238371032, 1654270250, 914150663, 2438529370, 812702999, + 355462360, 4144912697, 1731405415, 4290775857, 2394180231, 1750603025, + 3675008525, 1694076839, 1203062813, 3204075428, + ]); + } + iW.inherits(uf, whe); + _he.exports = uf; + uf.blockSize = 1024; + uf.outSize = 384; + uf.hmacStrength = 192; + uf.padLength = 128; + uf.prototype._digest = function (e) { + return e === "hex" + ? iW.toHex32(this.h.slice(0, 12), "big") + : iW.split32(this.h.slice(0, 12), "big"); + }; + }); + var The = N((uv) => { + "use strict"; + _(); + x(); + uv.sha1 = lhe(); + uv.sha224 = mhe(); + uv.sha256 = eW(); + uv.sha384 = xhe(); + uv.sha512 = aW(); + }); + var She = N((khe) => { + "use strict"; + _(); + x(); + var eg = Rd(), + tTt = iv(), + uA = eg.rotl32, + Ehe = eg.sum32, + DT = eg.sum32_3, + Che = eg.sum32_4, + Ahe = tTt.BlockHash; + function Hp() { + if (!(this instanceof Hp)) return new Hp(); + Ahe.call(this), + (this.h = [1732584193, 4023233417, 2562383102, 271733878, 3285377520]), + (this.endian = "little"); + } + eg.inherits(Hp, Ahe); + khe.ripemd160 = Hp; + Hp.blockSize = 512; + Hp.outSize = 160; + Hp.hmacStrength = 192; + Hp.padLength = 64; + Hp.prototype._update = function (e, t) { + for ( + var n = this.h[0], + a = this.h[1], + i = this.h[2], + s = this.h[3], + c = this.h[4], + l = n, + d = a, + m = i, + w = s, + C = c, + I = 0; + I < 80; + I++ + ) { + var k = Ehe( + uA(Che(n, Ihe(I, a, i, s), e[aTt[I] + t], rTt(I)), sTt[I]), + c + ); + (n = c), + (c = s), + (s = uA(i, 10)), + (i = a), + (a = k), + (k = Ehe( + uA(Che(l, Ihe(79 - I, d, m, w), e[iTt[I] + t], nTt(I)), oTt[I]), + C + )), + (l = C), + (C = w), + (w = uA(m, 10)), + (m = d), + (d = k); + } + (k = DT(this.h[1], i, w)), + (this.h[1] = DT(this.h[2], s, C)), + (this.h[2] = DT(this.h[3], c, l)), + (this.h[3] = DT(this.h[4], n, d)), + (this.h[4] = DT(this.h[0], a, m)), + (this.h[0] = k); + }; + Hp.prototype._digest = function (e) { + return e === "hex" + ? eg.toHex32(this.h, "little") + : eg.split32(this.h, "little"); + }; + function Ihe(r, e, t, n) { + return r <= 15 + ? e ^ t ^ n + : r <= 31 + ? (e & t) | (~e & n) + : r <= 47 + ? (e | ~t) ^ n + : r <= 63 + ? (e & n) | (t & ~n) + : e ^ (t | ~n); + } + function rTt(r) { + return r <= 15 + ? 0 + : r <= 31 + ? 1518500249 + : r <= 47 + ? 1859775393 + : r <= 63 + ? 2400959708 + : 2840853838; + } + function nTt(r) { + return r <= 15 + ? 1352829926 + : r <= 31 + ? 1548603684 + : r <= 47 + ? 1836072691 + : r <= 63 + ? 2053994217 + : 0; + } + var aTt = [ + 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 7, 4, 13, 1, 10, + 6, 15, 3, 12, 0, 9, 5, 2, 14, 11, 8, 3, 10, 14, 4, 9, 15, 8, 1, 2, 7, 0, + 6, 13, 11, 5, 12, 1, 9, 11, 10, 0, 8, 12, 4, 13, 3, 7, 15, 14, 5, 6, 2, + 4, 0, 5, 9, 7, 12, 2, 10, 14, 1, 3, 8, 11, 6, 15, 13, + ], + iTt = [ + 5, 14, 7, 0, 9, 2, 11, 4, 13, 6, 15, 8, 1, 10, 3, 12, 6, 11, 3, 7, 0, + 13, 5, 10, 14, 15, 8, 12, 4, 9, 1, 2, 15, 5, 1, 3, 7, 14, 6, 9, 11, 8, + 12, 2, 10, 0, 4, 13, 8, 6, 4, 1, 3, 11, 15, 0, 5, 12, 2, 13, 9, 7, 10, + 14, 12, 15, 10, 4, 1, 5, 8, 7, 6, 2, 13, 14, 0, 3, 9, 11, + ], + sTt = [ + 11, 14, 15, 12, 5, 8, 7, 9, 11, 13, 14, 15, 6, 7, 9, 8, 7, 6, 8, 13, 11, + 9, 7, 15, 7, 12, 15, 9, 11, 7, 13, 12, 11, 13, 6, 7, 14, 9, 13, 15, 14, + 8, 13, 6, 5, 12, 7, 5, 11, 12, 14, 15, 14, 15, 9, 8, 9, 14, 5, 6, 8, 6, + 5, 12, 9, 15, 5, 11, 6, 8, 13, 12, 5, 12, 13, 14, 11, 8, 5, 6, + ], + oTt = [ + 8, 9, 9, 11, 13, 15, 15, 5, 7, 7, 8, 11, 14, 14, 12, 6, 9, 13, 15, 7, + 12, 8, 9, 11, 7, 7, 12, 7, 6, 15, 13, 11, 9, 7, 15, 11, 8, 6, 6, 14, 12, + 13, 5, 14, 13, 13, 7, 5, 15, 5, 8, 11, 14, 14, 6, 14, 6, 9, 12, 9, 12, + 5, 15, 8, 8, 5, 12, 9, 12, 5, 14, 6, 8, 13, 6, 5, 15, 13, 11, 11, + ]; + }); + var Phe = N((p$r, Mhe) => { + "use strict"; + _(); + x(); + var cTt = Rd(), + uTt = Ou(); + function lv(r, e, t) { + if (!(this instanceof lv)) return new lv(r, e, t); + (this.Hash = r), + (this.blockSize = r.blockSize / 8), + (this.outSize = r.outSize / 8), + (this.inner = null), + (this.outer = null), + this._init(cTt.toArray(e, t)); + } + Mhe.exports = lv; + lv.prototype._init = function (e) { + e.length > this.blockSize && (e = new this.Hash().update(e).digest()), + uTt(e.length <= this.blockSize); + for (var t = e.length; t < this.blockSize; t++) e.push(0); + for (t = 0; t < e.length; t++) e[t] ^= 54; + for (this.inner = new this.Hash().update(e), t = 0; t < e.length; t++) + e[t] ^= 106; + this.outer = new this.Hash().update(e); + }; + lv.prototype.update = function (e, t) { + return this.inner.update(e, t), this; + }; + lv.prototype.digest = function (e) { + return this.outer.update(this.inner.digest()), this.outer.digest(e); + }; + }); + var qT = N((Rhe) => { + _(); + x(); + var $s = Rhe; + $s.utils = Rd(); + $s.common = iv(); + $s.sha = The(); + $s.ripemd = She(); + $s.hmac = Phe(); + $s.sha1 = $s.sha.sha1; + $s.sha256 = $s.sha.sha256; + $s.sha224 = $s.sha.sha224; + $s.sha384 = $s.sha.sha384; + $s.sha512 = $s.sha.sha512; + $s.ripemd160 = $s.ripemd.ripemd160; + }); + var Nhe = N((b$r, Bhe) => { + _(); + x(); + Bhe.exports = { + doubles: { + step: 4, + points: [ + [ + "e60fce93b59e9ec53011aabc21c23e97b2a31369b87a5ae9c44ee89e2a6dec0a", + "f7e3507399e595929db99f34f57937101296891e44d23f0be1f32cce69616821", + ], + [ + "8282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508", + "11f8a8098557dfe45e8256e830b60ace62d613ac2f7b17bed31b6eaff6e26caf", + ], + [ + "175e159f728b865a72f99cc6c6fc846de0b93833fd2222ed73fce5b551e5b739", + "d3506e0d9e3c79eba4ef97a51ff71f5eacb5955add24345c6efa6ffee9fed695", + ], + [ + "363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640", + "4e273adfc732221953b445397f3363145b9a89008199ecb62003c7f3bee9de9", + ], + [ + "8b4b5f165df3c2be8c6244b5b745638843e4a781a15bcd1b69f79a55dffdf80c", + "4aad0a6f68d308b4b3fbd7813ab0da04f9e336546162ee56b3eff0c65fd4fd36", + ], + [ + "723cbaa6e5db996d6bf771c00bd548c7b700dbffa6c0e77bcb6115925232fcda", + "96e867b5595cc498a921137488824d6e2660a0653779494801dc069d9eb39f5f", + ], + [ + "eebfa4d493bebf98ba5feec812c2d3b50947961237a919839a533eca0e7dd7fa", + "5d9a8ca3970ef0f269ee7edaf178089d9ae4cdc3a711f712ddfd4fdae1de8999", + ], + [ + "100f44da696e71672791d0a09b7bde459f1215a29b3c03bfefd7835b39a48db0", + "cdd9e13192a00b772ec8f3300c090666b7ff4a18ff5195ac0fbd5cd62bc65a09", + ], + [ + "e1031be262c7ed1b1dc9227a4a04c017a77f8d4464f3b3852c8acde6e534fd2d", + "9d7061928940405e6bb6a4176597535af292dd419e1ced79a44f18f29456a00d", + ], + [ + "feea6cae46d55b530ac2839f143bd7ec5cf8b266a41d6af52d5e688d9094696d", + "e57c6b6c97dce1bab06e4e12bf3ecd5c981c8957cc41442d3155debf18090088", + ], + [ + "da67a91d91049cdcb367be4be6ffca3cfeed657d808583de33fa978bc1ec6cb1", + "9bacaa35481642bc41f463f7ec9780e5dec7adc508f740a17e9ea8e27a68be1d", + ], + [ + "53904faa0b334cdda6e000935ef22151ec08d0f7bb11069f57545ccc1a37b7c0", + "5bc087d0bc80106d88c9eccac20d3c1c13999981e14434699dcb096b022771c8", + ], + [ + "8e7bcd0bd35983a7719cca7764ca906779b53a043a9b8bcaeff959f43ad86047", + "10b7770b2a3da4b3940310420ca9514579e88e2e47fd68b3ea10047e8460372a", + ], + [ + "385eed34c1cdff21e6d0818689b81bde71a7f4f18397e6690a841e1599c43862", + "283bebc3e8ea23f56701de19e9ebf4576b304eec2086dc8cc0458fe5542e5453", + ], + [ + "6f9d9b803ecf191637c73a4413dfa180fddf84a5947fbc9c606ed86c3fac3a7", + "7c80c68e603059ba69b8e2a30e45c4d47ea4dd2f5c281002d86890603a842160", + ], + [ + "3322d401243c4e2582a2147c104d6ecbf774d163db0f5e5313b7e0e742d0e6bd", + "56e70797e9664ef5bfb019bc4ddaf9b72805f63ea2873af624f3a2e96c28b2a0", + ], + [ + "85672c7d2de0b7da2bd1770d89665868741b3f9af7643397721d74d28134ab83", + "7c481b9b5b43b2eb6374049bfa62c2e5e77f17fcc5298f44c8e3094f790313a6", + ], + [ + "948bf809b1988a46b06c9f1919413b10f9226c60f668832ffd959af60c82a0a", + "53a562856dcb6646dc6b74c5d1c3418c6d4dff08c97cd2bed4cb7f88d8c8e589", + ], + [ + "6260ce7f461801c34f067ce0f02873a8f1b0e44dfc69752accecd819f38fd8e8", + "bc2da82b6fa5b571a7f09049776a1ef7ecd292238051c198c1a84e95b2b4ae17", + ], + [ + "e5037de0afc1d8d43d8348414bbf4103043ec8f575bfdc432953cc8d2037fa2d", + "4571534baa94d3b5f9f98d09fb990bddbd5f5b03ec481f10e0e5dc841d755bda", + ], + [ + "e06372b0f4a207adf5ea905e8f1771b4e7e8dbd1c6a6c5b725866a0ae4fce725", + "7a908974bce18cfe12a27bb2ad5a488cd7484a7787104870b27034f94eee31dd", + ], + [ + "213c7a715cd5d45358d0bbf9dc0ce02204b10bdde2a3f58540ad6908d0559754", + "4b6dad0b5ae462507013ad06245ba190bb4850f5f36a7eeddff2c27534b458f2", + ], + [ + "4e7c272a7af4b34e8dbb9352a5419a87e2838c70adc62cddf0cc3a3b08fbd53c", + "17749c766c9d0b18e16fd09f6def681b530b9614bff7dd33e0b3941817dcaae6", + ], + [ + "fea74e3dbe778b1b10f238ad61686aa5c76e3db2be43057632427e2840fb27b6", + "6e0568db9b0b13297cf674deccb6af93126b596b973f7b77701d3db7f23cb96f", + ], + [ + "76e64113f677cf0e10a2570d599968d31544e179b760432952c02a4417bdde39", + "c90ddf8dee4e95cf577066d70681f0d35e2a33d2b56d2032b4b1752d1901ac01", + ], + [ + "c738c56b03b2abe1e8281baa743f8f9a8f7cc643df26cbee3ab150242bcbb891", + "893fb578951ad2537f718f2eacbfbbbb82314eef7880cfe917e735d9699a84c3", + ], + [ + "d895626548b65b81e264c7637c972877d1d72e5f3a925014372e9f6588f6c14b", + "febfaa38f2bc7eae728ec60818c340eb03428d632bb067e179363ed75d7d991f", + ], + [ + "b8da94032a957518eb0f6433571e8761ceffc73693e84edd49150a564f676e03", + "2804dfa44805a1e4d7c99cc9762808b092cc584d95ff3b511488e4e74efdf6e7", + ], + [ + "e80fea14441fb33a7d8adab9475d7fab2019effb5156a792f1a11778e3c0df5d", + "eed1de7f638e00771e89768ca3ca94472d155e80af322ea9fcb4291b6ac9ec78", + ], + [ + "a301697bdfcd704313ba48e51d567543f2a182031efd6915ddc07bbcc4e16070", + "7370f91cfb67e4f5081809fa25d40f9b1735dbf7c0a11a130c0d1a041e177ea1", + ], + [ + "90ad85b389d6b936463f9d0512678de208cc330b11307fffab7ac63e3fb04ed4", + "e507a3620a38261affdcbd9427222b839aefabe1582894d991d4d48cb6ef150", + ], + [ + "8f68b9d2f63b5f339239c1ad981f162ee88c5678723ea3351b7b444c9ec4c0da", + "662a9f2dba063986de1d90c2b6be215dbbea2cfe95510bfdf23cbf79501fff82", + ], + [ + "e4f3fb0176af85d65ff99ff9198c36091f48e86503681e3e6686fd5053231e11", + "1e63633ad0ef4f1c1661a6d0ea02b7286cc7e74ec951d1c9822c38576feb73bc", + ], + [ + "8c00fa9b18ebf331eb961537a45a4266c7034f2f0d4e1d0716fb6eae20eae29e", + "efa47267fea521a1a9dc343a3736c974c2fadafa81e36c54e7d2a4c66702414b", + ], + [ + "e7a26ce69dd4829f3e10cec0a9e98ed3143d084f308b92c0997fddfc60cb3e41", + "2a758e300fa7984b471b006a1aafbb18d0a6b2c0420e83e20e8a9421cf2cfd51", + ], + [ + "b6459e0ee3662ec8d23540c223bcbdc571cbcb967d79424f3cf29eb3de6b80ef", + "67c876d06f3e06de1dadf16e5661db3c4b3ae6d48e35b2ff30bf0b61a71ba45", + ], + [ + "d68a80c8280bb840793234aa118f06231d6f1fc67e73c5a5deda0f5b496943e8", + "db8ba9fff4b586d00c4b1f9177b0e28b5b0e7b8f7845295a294c84266b133120", + ], + [ + "324aed7df65c804252dc0270907a30b09612aeb973449cea4095980fc28d3d5d", + "648a365774b61f2ff130c0c35aec1f4f19213b0c7e332843967224af96ab7c84", + ], + [ + "4df9c14919cde61f6d51dfdbe5fee5dceec4143ba8d1ca888e8bd373fd054c96", + "35ec51092d8728050974c23a1d85d4b5d506cdc288490192ebac06cad10d5d", + ], + [ + "9c3919a84a474870faed8a9c1cc66021523489054d7f0308cbfc99c8ac1f98cd", + "ddb84f0f4a4ddd57584f044bf260e641905326f76c64c8e6be7e5e03d4fc599d", + ], + [ + "6057170b1dd12fdf8de05f281d8e06bb91e1493a8b91d4cc5a21382120a959e5", + "9a1af0b26a6a4807add9a2daf71df262465152bc3ee24c65e899be932385a2a8", + ], + [ + "a576df8e23a08411421439a4518da31880cef0fba7d4df12b1a6973eecb94266", + "40a6bf20e76640b2c92b97afe58cd82c432e10a7f514d9f3ee8be11ae1b28ec8", + ], + [ + "7778a78c28dec3e30a05fe9629de8c38bb30d1f5cf9a3a208f763889be58ad71", + "34626d9ab5a5b22ff7098e12f2ff580087b38411ff24ac563b513fc1fd9f43ac", + ], + [ + "928955ee637a84463729fd30e7afd2ed5f96274e5ad7e5cb09eda9c06d903ac", + "c25621003d3f42a827b78a13093a95eeac3d26efa8a8d83fc5180e935bcd091f", + ], + [ + "85d0fef3ec6db109399064f3a0e3b2855645b4a907ad354527aae75163d82751", + "1f03648413a38c0be29d496e582cf5663e8751e96877331582c237a24eb1f962", + ], + [ + "ff2b0dce97eece97c1c9b6041798b85dfdfb6d8882da20308f5404824526087e", + "493d13fef524ba188af4c4dc54d07936c7b7ed6fb90e2ceb2c951e01f0c29907", + ], + [ + "827fbbe4b1e880ea9ed2b2e6301b212b57f1ee148cd6dd28780e5e2cf856e241", + "c60f9c923c727b0b71bef2c67d1d12687ff7a63186903166d605b68baec293ec", + ], + [ + "eaa649f21f51bdbae7be4ae34ce6e5217a58fdce7f47f9aa7f3b58fa2120e2b3", + "be3279ed5bbbb03ac69a80f89879aa5a01a6b965f13f7e59d47a5305ba5ad93d", + ], + [ + "e4a42d43c5cf169d9391df6decf42ee541b6d8f0c9a137401e23632dda34d24f", + "4d9f92e716d1c73526fc99ccfb8ad34ce886eedfa8d8e4f13a7f7131deba9414", + ], + [ + "1ec80fef360cbdd954160fadab352b6b92b53576a88fea4947173b9d4300bf19", + "aeefe93756b5340d2f3a4958a7abbf5e0146e77f6295a07b671cdc1cc107cefd", + ], + [ + "146a778c04670c2f91b00af4680dfa8bce3490717d58ba889ddb5928366642be", + "b318e0ec3354028add669827f9d4b2870aaa971d2f7e5ed1d0b297483d83efd0", + ], + [ + "fa50c0f61d22e5f07e3acebb1aa07b128d0012209a28b9776d76a8793180eef9", + "6b84c6922397eba9b72cd2872281a68a5e683293a57a213b38cd8d7d3f4f2811", + ], + [ + "da1d61d0ca721a11b1a5bf6b7d88e8421a288ab5d5bba5220e53d32b5f067ec2", + "8157f55a7c99306c79c0766161c91e2966a73899d279b48a655fba0f1ad836f1", + ], + [ + "a8e282ff0c9706907215ff98e8fd416615311de0446f1e062a73b0610d064e13", + "7f97355b8db81c09abfb7f3c5b2515888b679a3e50dd6bd6cef7c73111f4cc0c", + ], + [ + "174a53b9c9a285872d39e56e6913cab15d59b1fa512508c022f382de8319497c", + "ccc9dc37abfc9c1657b4155f2c47f9e6646b3a1d8cb9854383da13ac079afa73", + ], + [ + "959396981943785c3d3e57edf5018cdbe039e730e4918b3d884fdff09475b7ba", + "2e7e552888c331dd8ba0386a4b9cd6849c653f64c8709385e9b8abf87524f2fd", + ], + [ + "d2a63a50ae401e56d645a1153b109a8fcca0a43d561fba2dbb51340c9d82b151", + "e82d86fb6443fcb7565aee58b2948220a70f750af484ca52d4142174dcf89405", + ], + [ + "64587e2335471eb890ee7896d7cfdc866bacbdbd3839317b3436f9b45617e073", + "d99fcdd5bf6902e2ae96dd6447c299a185b90a39133aeab358299e5e9faf6589", + ], + [ + "8481bde0e4e4d885b3a546d3e549de042f0aa6cea250e7fd358d6c86dd45e458", + "38ee7b8cba5404dd84a25bf39cecb2ca900a79c42b262e556d64b1b59779057e", + ], + [ + "13464a57a78102aa62b6979ae817f4637ffcfed3c4b1ce30bcd6303f6caf666b", + "69be159004614580ef7e433453ccb0ca48f300a81d0942e13f495a907f6ecc27", + ], + [ + "bc4a9df5b713fe2e9aef430bcc1dc97a0cd9ccede2f28588cada3a0d2d83f366", + "d3a81ca6e785c06383937adf4b798caa6e8a9fbfa547b16d758d666581f33c1", + ], + [ + "8c28a97bf8298bc0d23d8c749452a32e694b65e30a9472a3954ab30fe5324caa", + "40a30463a3305193378fedf31f7cc0eb7ae784f0451cb9459e71dc73cbef9482", + ], + [ + "8ea9666139527a8c1dd94ce4f071fd23c8b350c5a4bb33748c4ba111faccae0", + "620efabbc8ee2782e24e7c0cfb95c5d735b783be9cf0f8e955af34a30e62b945", + ], + [ + "dd3625faef5ba06074669716bbd3788d89bdde815959968092f76cc4eb9a9787", + "7a188fa3520e30d461da2501045731ca941461982883395937f68d00c644a573", + ], + [ + "f710d79d9eb962297e4f6232b40e8f7feb2bc63814614d692c12de752408221e", + "ea98e67232d3b3295d3b535532115ccac8612c721851617526ae47a9c77bfc82", + ], + ], + }, + naf: { + wnd: 7, + points: [ + [ + "f9308a019258c31049344f85f89d5229b531c845836f99b08601f113bce036f9", + "388f7b0f632de8140fe337e62a37f3566500a99934c2231b6cb9fd7584b8e672", + ], + [ + "2f8bde4d1a07209355b4a7250a5c5128e88b84bddc619ab7cba8d569b240efe4", + "d8ac222636e5e3d6d4dba9dda6c9c426f788271bab0d6840dca87d3aa6ac62d6", + ], + [ + "5cbdf0646e5db4eaa398f365f2ea7a0e3d419b7e0330e39ce92bddedcac4f9bc", + "6aebca40ba255960a3178d6d861a54dba813d0b813fde7b5a5082628087264da", + ], + [ + "acd484e2f0c7f65309ad178a9f559abde09796974c57e714c35f110dfc27ccbe", + "cc338921b0a7d9fd64380971763b61e9add888a4375f8e0f05cc262ac64f9c37", + ], + [ + "774ae7f858a9411e5ef4246b70c65aac5649980be5c17891bbec17895da008cb", + "d984a032eb6b5e190243dd56d7b7b365372db1e2dff9d6a8301d74c9c953c61b", + ], + [ + "f28773c2d975288bc7d1d205c3748651b075fbc6610e58cddeeddf8f19405aa8", + "ab0902e8d880a89758212eb65cdaf473a1a06da521fa91f29b5cb52db03ed81", + ], + [ + "d7924d4f7d43ea965a465ae3095ff41131e5946f3c85f79e44adbcf8e27e080e", + "581e2872a86c72a683842ec228cc6defea40af2bd896d3a5c504dc9ff6a26b58", + ], + [ + "defdea4cdb677750a420fee807eacf21eb9898ae79b9768766e4faa04a2d4a34", + "4211ab0694635168e997b0ead2a93daeced1f4a04a95c0f6cfb199f69e56eb77", + ], + [ + "2b4ea0a797a443d293ef5cff444f4979f06acfebd7e86d277475656138385b6c", + "85e89bc037945d93b343083b5a1c86131a01f60c50269763b570c854e5c09b7a", + ], + [ + "352bbf4a4cdd12564f93fa332ce333301d9ad40271f8107181340aef25be59d5", + "321eb4075348f534d59c18259dda3e1f4a1b3b2e71b1039c67bd3d8bcf81998c", + ], + [ + "2fa2104d6b38d11b0230010559879124e42ab8dfeff5ff29dc9cdadd4ecacc3f", + "2de1068295dd865b64569335bd5dd80181d70ecfc882648423ba76b532b7d67", + ], + [ + "9248279b09b4d68dab21a9b066edda83263c3d84e09572e269ca0cd7f5453714", + "73016f7bf234aade5d1aa71bdea2b1ff3fc0de2a887912ffe54a32ce97cb3402", + ], + [ + "daed4f2be3a8bf278e70132fb0beb7522f570e144bf615c07e996d443dee8729", + "a69dce4a7d6c98e8d4a1aca87ef8d7003f83c230f3afa726ab40e52290be1c55", + ], + [ + "c44d12c7065d812e8acf28d7cbb19f9011ecd9e9fdf281b0e6a3b5e87d22e7db", + "2119a460ce326cdc76c45926c982fdac0e106e861edf61c5a039063f0e0e6482", + ], + [ + "6a245bf6dc698504c89a20cfded60853152b695336c28063b61c65cbd269e6b4", + "e022cf42c2bd4a708b3f5126f16a24ad8b33ba48d0423b6efd5e6348100d8a82", + ], + [ + "1697ffa6fd9de627c077e3d2fe541084ce13300b0bec1146f95ae57f0d0bd6a5", + "b9c398f186806f5d27561506e4557433a2cf15009e498ae7adee9d63d01b2396", + ], + [ + "605bdb019981718b986d0f07e834cb0d9deb8360ffb7f61df982345ef27a7479", + "2972d2de4f8d20681a78d93ec96fe23c26bfae84fb14db43b01e1e9056b8c49", + ], + [ + "62d14dab4150bf497402fdc45a215e10dcb01c354959b10cfe31c7e9d87ff33d", + "80fc06bd8cc5b01098088a1950eed0db01aa132967ab472235f5642483b25eaf", + ], + [ + "80c60ad0040f27dade5b4b06c408e56b2c50e9f56b9b8b425e555c2f86308b6f", + "1c38303f1cc5c30f26e66bad7fe72f70a65eed4cbe7024eb1aa01f56430bd57a", + ], + [ + "7a9375ad6167ad54aa74c6348cc54d344cc5dc9487d847049d5eabb0fa03c8fb", + "d0e3fa9eca8726909559e0d79269046bdc59ea10c70ce2b02d499ec224dc7f7", + ], + [ + "d528ecd9b696b54c907a9ed045447a79bb408ec39b68df504bb51f459bc3ffc9", + "eecf41253136e5f99966f21881fd656ebc4345405c520dbc063465b521409933", + ], + [ + "49370a4b5f43412ea25f514e8ecdad05266115e4a7ecb1387231808f8b45963", + "758f3f41afd6ed428b3081b0512fd62a54c3f3afbb5b6764b653052a12949c9a", + ], + [ + "77f230936ee88cbbd73df930d64702ef881d811e0e1498e2f1c13eb1fc345d74", + "958ef42a7886b6400a08266e9ba1b37896c95330d97077cbbe8eb3c7671c60d6", + ], + [ + "f2dac991cc4ce4b9ea44887e5c7c0bce58c80074ab9d4dbaeb28531b7739f530", + "e0dedc9b3b2f8dad4da1f32dec2531df9eb5fbeb0598e4fd1a117dba703a3c37", + ], + [ + "463b3d9f662621fb1b4be8fbbe2520125a216cdfc9dae3debcba4850c690d45b", + "5ed430d78c296c3543114306dd8622d7c622e27c970a1de31cb377b01af7307e", + ], + [ + "f16f804244e46e2a09232d4aff3b59976b98fac14328a2d1a32496b49998f247", + "cedabd9b82203f7e13d206fcdf4e33d92a6c53c26e5cce26d6579962c4e31df6", + ], + [ + "caf754272dc84563b0352b7a14311af55d245315ace27c65369e15f7151d41d1", + "cb474660ef35f5f2a41b643fa5e460575f4fa9b7962232a5c32f908318a04476", + ], + [ + "2600ca4b282cb986f85d0f1709979d8b44a09c07cb86d7c124497bc86f082120", + "4119b88753c15bd6a693b03fcddbb45d5ac6be74ab5f0ef44b0be9475a7e4b40", + ], + [ + "7635ca72d7e8432c338ec53cd12220bc01c48685e24f7dc8c602a7746998e435", + "91b649609489d613d1d5e590f78e6d74ecfc061d57048bad9e76f302c5b9c61", + ], + [ + "754e3239f325570cdbbf4a87deee8a66b7f2b33479d468fbc1a50743bf56cc18", + "673fb86e5bda30fb3cd0ed304ea49a023ee33d0197a695d0c5d98093c536683", + ], + [ + "e3e6bd1071a1e96aff57859c82d570f0330800661d1c952f9fe2694691d9b9e8", + "59c9e0bba394e76f40c0aa58379a3cb6a5a2283993e90c4167002af4920e37f5", + ], + [ + "186b483d056a033826ae73d88f732985c4ccb1f32ba35f4b4cc47fdcf04aa6eb", + "3b952d32c67cf77e2e17446e204180ab21fb8090895138b4a4a797f86e80888b", + ], + [ + "df9d70a6b9876ce544c98561f4be4f725442e6d2b737d9c91a8321724ce0963f", + "55eb2dafd84d6ccd5f862b785dc39d4ab157222720ef9da217b8c45cf2ba2417", + ], + [ + "5edd5cc23c51e87a497ca815d5dce0f8ab52554f849ed8995de64c5f34ce7143", + "efae9c8dbc14130661e8cec030c89ad0c13c66c0d17a2905cdc706ab7399a868", + ], + [ + "290798c2b6476830da12fe02287e9e777aa3fba1c355b17a722d362f84614fba", + "e38da76dcd440621988d00bcf79af25d5b29c094db2a23146d003afd41943e7a", + ], + [ + "af3c423a95d9f5b3054754efa150ac39cd29552fe360257362dfdecef4053b45", + "f98a3fd831eb2b749a93b0e6f35cfb40c8cd5aa667a15581bc2feded498fd9c6", + ], + [ + "766dbb24d134e745cccaa28c99bf274906bb66b26dcf98df8d2fed50d884249a", + "744b1152eacbe5e38dcc887980da38b897584a65fa06cedd2c924f97cbac5996", + ], + [ + "59dbf46f8c94759ba21277c33784f41645f7b44f6c596a58ce92e666191abe3e", + "c534ad44175fbc300f4ea6ce648309a042ce739a7919798cd85e216c4a307f6e", + ], + [ + "f13ada95103c4537305e691e74e9a4a8dd647e711a95e73cb62dc6018cfd87b8", + "e13817b44ee14de663bf4bc808341f326949e21a6a75c2570778419bdaf5733d", + ], + [ + "7754b4fa0e8aced06d4167a2c59cca4cda1869c06ebadfb6488550015a88522c", + "30e93e864e669d82224b967c3020b8fa8d1e4e350b6cbcc537a48b57841163a2", + ], + [ + "948dcadf5990e048aa3874d46abef9d701858f95de8041d2a6828c99e2262519", + "e491a42537f6e597d5d28a3224b1bc25df9154efbd2ef1d2cbba2cae5347d57e", + ], + [ + "7962414450c76c1689c7b48f8202ec37fb224cf5ac0bfa1570328a8a3d7c77ab", + "100b610ec4ffb4760d5c1fc133ef6f6b12507a051f04ac5760afa5b29db83437", + ], + [ + "3514087834964b54b15b160644d915485a16977225b8847bb0dd085137ec47ca", + "ef0afbb2056205448e1652c48e8127fc6039e77c15c2378b7e7d15a0de293311", + ], + [ + "d3cc30ad6b483e4bc79ce2c9dd8bc54993e947eb8df787b442943d3f7b527eaf", + "8b378a22d827278d89c5e9be8f9508ae3c2ad46290358630afb34db04eede0a4", + ], + [ + "1624d84780732860ce1c78fcbfefe08b2b29823db913f6493975ba0ff4847610", + "68651cf9b6da903e0914448c6cd9d4ca896878f5282be4c8cc06e2a404078575", + ], + [ + "733ce80da955a8a26902c95633e62a985192474b5af207da6df7b4fd5fc61cd4", + "f5435a2bd2badf7d485a4d8b8db9fcce3e1ef8e0201e4578c54673bc1dc5ea1d", + ], + [ + "15d9441254945064cf1a1c33bbd3b49f8966c5092171e699ef258dfab81c045c", + "d56eb30b69463e7234f5137b73b84177434800bacebfc685fc37bbe9efe4070d", + ], + [ + "a1d0fcf2ec9de675b612136e5ce70d271c21417c9d2b8aaaac138599d0717940", + "edd77f50bcb5a3cab2e90737309667f2641462a54070f3d519212d39c197a629", + ], + [ + "e22fbe15c0af8ccc5780c0735f84dbe9a790badee8245c06c7ca37331cb36980", + "a855babad5cd60c88b430a69f53a1a7a38289154964799be43d06d77d31da06", + ], + [ + "311091dd9860e8e20ee13473c1155f5f69635e394704eaa74009452246cfa9b3", + "66db656f87d1f04fffd1f04788c06830871ec5a64feee685bd80f0b1286d8374", + ], + [ + "34c1fd04d301be89b31c0442d3e6ac24883928b45a9340781867d4232ec2dbdf", + "9414685e97b1b5954bd46f730174136d57f1ceeb487443dc5321857ba73abee", + ], + [ + "f219ea5d6b54701c1c14de5b557eb42a8d13f3abbcd08affcc2a5e6b049b8d63", + "4cb95957e83d40b0f73af4544cccf6b1f4b08d3c07b27fb8d8c2962a400766d1", + ], + [ + "d7b8740f74a8fbaab1f683db8f45de26543a5490bca627087236912469a0b448", + "fa77968128d9c92ee1010f337ad4717eff15db5ed3c049b3411e0315eaa4593b", + ], + [ + "32d31c222f8f6f0ef86f7c98d3a3335ead5bcd32abdd94289fe4d3091aa824bf", + "5f3032f5892156e39ccd3d7915b9e1da2e6dac9e6f26e961118d14b8462e1661", + ], + [ + "7461f371914ab32671045a155d9831ea8793d77cd59592c4340f86cbc18347b5", + "8ec0ba238b96bec0cbdddcae0aa442542eee1ff50c986ea6b39847b3cc092ff6", + ], + [ + "ee079adb1df1860074356a25aa38206a6d716b2c3e67453d287698bad7b2b2d6", + "8dc2412aafe3be5c4c5f37e0ecc5f9f6a446989af04c4e25ebaac479ec1c8c1e", + ], + [ + "16ec93e447ec83f0467b18302ee620f7e65de331874c9dc72bfd8616ba9da6b5", + "5e4631150e62fb40d0e8c2a7ca5804a39d58186a50e497139626778e25b0674d", + ], + [ + "eaa5f980c245f6f038978290afa70b6bd8855897f98b6aa485b96065d537bd99", + "f65f5d3e292c2e0819a528391c994624d784869d7e6ea67fb18041024edc07dc", + ], + [ + "78c9407544ac132692ee1910a02439958ae04877151342ea96c4b6b35a49f51", + "f3e0319169eb9b85d5404795539a5e68fa1fbd583c064d2462b675f194a3ddb4", + ], + [ + "494f4be219a1a77016dcd838431aea0001cdc8ae7a6fc688726578d9702857a5", + "42242a969283a5f339ba7f075e36ba2af925ce30d767ed6e55f4b031880d562c", + ], + [ + "a598a8030da6d86c6bc7f2f5144ea549d28211ea58faa70ebf4c1e665c1fe9b5", + "204b5d6f84822c307e4b4a7140737aec23fc63b65b35f86a10026dbd2d864e6b", + ], + [ + "c41916365abb2b5d09192f5f2dbeafec208f020f12570a184dbadc3e58595997", + "4f14351d0087efa49d245b328984989d5caf9450f34bfc0ed16e96b58fa9913", + ], + [ + "841d6063a586fa475a724604da03bc5b92a2e0d2e0a36acfe4c73a5514742881", + "73867f59c0659e81904f9a1c7543698e62562d6744c169ce7a36de01a8d6154", + ], + [ + "5e95bb399a6971d376026947f89bde2f282b33810928be4ded112ac4d70e20d5", + "39f23f366809085beebfc71181313775a99c9aed7d8ba38b161384c746012865", + ], + [ + "36e4641a53948fd476c39f8a99fd974e5ec07564b5315d8bf99471bca0ef2f66", + "d2424b1b1abe4eb8164227b085c9aa9456ea13493fd563e06fd51cf5694c78fc", + ], + [ + "336581ea7bfbbb290c191a2f507a41cf5643842170e914faeab27c2c579f726", + "ead12168595fe1be99252129b6e56b3391f7ab1410cd1e0ef3dcdcabd2fda224", + ], + [ + "8ab89816dadfd6b6a1f2634fcf00ec8403781025ed6890c4849742706bd43ede", + "6fdcef09f2f6d0a044e654aef624136f503d459c3e89845858a47a9129cdd24e", + ], + [ + "1e33f1a746c9c5778133344d9299fcaa20b0938e8acff2544bb40284b8c5fb94", + "60660257dd11b3aa9c8ed618d24edff2306d320f1d03010e33a7d2057f3b3b6", + ], + [ + "85b7c1dcb3cec1b7ee7f30ded79dd20a0ed1f4cc18cbcfcfa410361fd8f08f31", + "3d98a9cdd026dd43f39048f25a8847f4fcafad1895d7a633c6fed3c35e999511", + ], + [ + "29df9fbd8d9e46509275f4b125d6d45d7fbe9a3b878a7af872a2800661ac5f51", + "b4c4fe99c775a606e2d8862179139ffda61dc861c019e55cd2876eb2a27d84b", + ], + [ + "a0b1cae06b0a847a3fea6e671aaf8adfdfe58ca2f768105c8082b2e449fce252", + "ae434102edde0958ec4b19d917a6a28e6b72da1834aff0e650f049503a296cf2", + ], + [ + "4e8ceafb9b3e9a136dc7ff67e840295b499dfb3b2133e4ba113f2e4c0e121e5", + "cf2174118c8b6d7a4b48f6d534ce5c79422c086a63460502b827ce62a326683c", + ], + [ + "d24a44e047e19b6f5afb81c7ca2f69080a5076689a010919f42725c2b789a33b", + "6fb8d5591b466f8fc63db50f1c0f1c69013f996887b8244d2cdec417afea8fa3", + ], + [ + "ea01606a7a6c9cdd249fdfcfacb99584001edd28abbab77b5104e98e8e3b35d4", + "322af4908c7312b0cfbfe369f7a7b3cdb7d4494bc2823700cfd652188a3ea98d", + ], + [ + "af8addbf2b661c8a6c6328655eb96651252007d8c5ea31be4ad196de8ce2131f", + "6749e67c029b85f52a034eafd096836b2520818680e26ac8f3dfbcdb71749700", + ], + [ + "e3ae1974566ca06cc516d47e0fb165a674a3dabcfca15e722f0e3450f45889", + "2aeabe7e4531510116217f07bf4d07300de97e4874f81f533420a72eeb0bd6a4", + ], + [ + "591ee355313d99721cf6993ffed1e3e301993ff3ed258802075ea8ced397e246", + "b0ea558a113c30bea60fc4775460c7901ff0b053d25ca2bdeee98f1a4be5d196", + ], + [ + "11396d55fda54c49f19aa97318d8da61fa8584e47b084945077cf03255b52984", + "998c74a8cd45ac01289d5833a7beb4744ff536b01b257be4c5767bea93ea57a4", + ], + [ + "3c5d2a1ba39c5a1790000738c9e0c40b8dcdfd5468754b6405540157e017aa7a", + "b2284279995a34e2f9d4de7396fc18b80f9b8b9fdd270f6661f79ca4c81bd257", + ], + [ + "cc8704b8a60a0defa3a99a7299f2e9c3fbc395afb04ac078425ef8a1793cc030", + "bdd46039feed17881d1e0862db347f8cf395b74fc4bcdc4e940b74e3ac1f1b13", + ], + [ + "c533e4f7ea8555aacd9777ac5cad29b97dd4defccc53ee7ea204119b2889b197", + "6f0a256bc5efdf429a2fb6242f1a43a2d9b925bb4a4b3a26bb8e0f45eb596096", + ], + [ + "c14f8f2ccb27d6f109f6d08d03cc96a69ba8c34eec07bbcf566d48e33da6593", + "c359d6923bb398f7fd4473e16fe1c28475b740dd098075e6c0e8649113dc3a38", + ], + [ + "a6cbc3046bc6a450bac24789fa17115a4c9739ed75f8f21ce441f72e0b90e6ef", + "21ae7f4680e889bb130619e2c0f95a360ceb573c70603139862afd617fa9b9f", + ], + [ + "347d6d9a02c48927ebfb86c1359b1caf130a3c0267d11ce6344b39f99d43cc38", + "60ea7f61a353524d1c987f6ecec92f086d565ab687870cb12689ff1e31c74448", + ], + [ + "da6545d2181db8d983f7dcb375ef5866d47c67b1bf31c8cf855ef7437b72656a", + "49b96715ab6878a79e78f07ce5680c5d6673051b4935bd897fea824b77dc208a", + ], + [ + "c40747cc9d012cb1a13b8148309c6de7ec25d6945d657146b9d5994b8feb1111", + "5ca560753be2a12fc6de6caf2cb489565db936156b9514e1bb5e83037e0fa2d4", + ], + [ + "4e42c8ec82c99798ccf3a610be870e78338c7f713348bd34c8203ef4037f3502", + "7571d74ee5e0fb92a7a8b33a07783341a5492144cc54bcc40a94473693606437", + ], + [ + "3775ab7089bc6af823aba2e1af70b236d251cadb0c86743287522a1b3b0dedea", + "be52d107bcfa09d8bcb9736a828cfa7fac8db17bf7a76a2c42ad961409018cf7", + ], + [ + "cee31cbf7e34ec379d94fb814d3d775ad954595d1314ba8846959e3e82f74e26", + "8fd64a14c06b589c26b947ae2bcf6bfa0149ef0be14ed4d80f448a01c43b1c6d", + ], + [ + "b4f9eaea09b6917619f6ea6a4eb5464efddb58fd45b1ebefcdc1a01d08b47986", + "39e5c9925b5a54b07433a4f18c61726f8bb131c012ca542eb24a8ac07200682a", + ], + [ + "d4263dfc3d2df923a0179a48966d30ce84e2515afc3dccc1b77907792ebcc60e", + "62dfaf07a0f78feb30e30d6295853ce189e127760ad6cf7fae164e122a208d54", + ], + [ + "48457524820fa65a4f8d35eb6930857c0032acc0a4a2de422233eeda897612c4", + "25a748ab367979d98733c38a1fa1c2e7dc6cc07db2d60a9ae7a76aaa49bd0f77", + ], + [ + "dfeeef1881101f2cb11644f3a2afdfc2045e19919152923f367a1767c11cceda", + "ecfb7056cf1de042f9420bab396793c0c390bde74b4bbdff16a83ae09a9a7517", + ], + [ + "6d7ef6b17543f8373c573f44e1f389835d89bcbc6062ced36c82df83b8fae859", + "cd450ec335438986dfefa10c57fea9bcc521a0959b2d80bbf74b190dca712d10", + ], + [ + "e75605d59102a5a2684500d3b991f2e3f3c88b93225547035af25af66e04541f", + "f5c54754a8f71ee540b9b48728473e314f729ac5308b06938360990e2bfad125", + ], + [ + "eb98660f4c4dfaa06a2be453d5020bc99a0c2e60abe388457dd43fefb1ed620c", + "6cb9a8876d9cb8520609af3add26cd20a0a7cd8a9411131ce85f44100099223e", + ], + [ + "13e87b027d8514d35939f2e6892b19922154596941888336dc3563e3b8dba942", + "fef5a3c68059a6dec5d624114bf1e91aac2b9da568d6abeb2570d55646b8adf1", + ], + [ + "ee163026e9fd6fe017c38f06a5be6fc125424b371ce2708e7bf4491691e5764a", + "1acb250f255dd61c43d94ccc670d0f58f49ae3fa15b96623e5430da0ad6c62b2", + ], + [ + "b268f5ef9ad51e4d78de3a750c2dc89b1e626d43505867999932e5db33af3d80", + "5f310d4b3c99b9ebb19f77d41c1dee018cf0d34fd4191614003e945a1216e423", + ], + [ + "ff07f3118a9df035e9fad85eb6c7bfe42b02f01ca99ceea3bf7ffdba93c4750d", + "438136d603e858a3a5c440c38eccbaddc1d2942114e2eddd4740d098ced1f0d8", + ], + [ + "8d8b9855c7c052a34146fd20ffb658bea4b9f69e0d825ebec16e8c3ce2b526a1", + "cdb559eedc2d79f926baf44fb84ea4d44bcf50fee51d7ceb30e2e7f463036758", + ], + [ + "52db0b5384dfbf05bfa9d472d7ae26dfe4b851ceca91b1eba54263180da32b63", + "c3b997d050ee5d423ebaf66a6db9f57b3180c902875679de924b69d84a7b375", + ], + [ + "e62f9490d3d51da6395efd24e80919cc7d0f29c3f3fa48c6fff543becbd43352", + "6d89ad7ba4876b0b22c2ca280c682862f342c8591f1daf5170e07bfd9ccafa7d", + ], + [ + "7f30ea2476b399b4957509c88f77d0191afa2ff5cb7b14fd6d8e7d65aaab1193", + "ca5ef7d4b231c94c3b15389a5f6311e9daff7bb67b103e9880ef4bff637acaec", + ], + [ + "5098ff1e1d9f14fb46a210fada6c903fef0fb7b4a1dd1d9ac60a0361800b7a00", + "9731141d81fc8f8084d37c6e7542006b3ee1b40d60dfe5362a5b132fd17ddc0", + ], + [ + "32b78c7de9ee512a72895be6b9cbefa6e2f3c4ccce445c96b9f2c81e2778ad58", + "ee1849f513df71e32efc3896ee28260c73bb80547ae2275ba497237794c8753c", + ], + [ + "e2cb74fddc8e9fbcd076eef2a7c72b0ce37d50f08269dfc074b581550547a4f7", + "d3aa2ed71c9dd2247a62df062736eb0baddea9e36122d2be8641abcb005cc4a4", + ], + [ + "8438447566d4d7bedadc299496ab357426009a35f235cb141be0d99cd10ae3a8", + "c4e1020916980a4da5d01ac5e6ad330734ef0d7906631c4f2390426b2edd791f", + ], + [ + "4162d488b89402039b584c6fc6c308870587d9c46f660b878ab65c82c711d67e", + "67163e903236289f776f22c25fb8a3afc1732f2b84b4e95dbda47ae5a0852649", + ], + [ + "3fad3fa84caf0f34f0f89bfd2dcf54fc175d767aec3e50684f3ba4a4bf5f683d", + "cd1bc7cb6cc407bb2f0ca647c718a730cf71872e7d0d2a53fa20efcdfe61826", + ], + [ + "674f2600a3007a00568c1a7ce05d0816c1fb84bf1370798f1c69532faeb1a86b", + "299d21f9413f33b3edf43b257004580b70db57da0b182259e09eecc69e0d38a5", + ], + [ + "d32f4da54ade74abb81b815ad1fb3b263d82d6c692714bcff87d29bd5ee9f08f", + "f9429e738b8e53b968e99016c059707782e14f4535359d582fc416910b3eea87", + ], + [ + "30e4e670435385556e593657135845d36fbb6931f72b08cb1ed954f1e3ce3ff6", + "462f9bce619898638499350113bbc9b10a878d35da70740dc695a559eb88db7b", + ], + [ + "be2062003c51cc3004682904330e4dee7f3dcd10b01e580bf1971b04d4cad297", + "62188bc49d61e5428573d48a74e1c655b1c61090905682a0d5558ed72dccb9bc", + ], + [ + "93144423ace3451ed29e0fb9ac2af211cb6e84a601df5993c419859fff5df04a", + "7c10dfb164c3425f5c71a3f9d7992038f1065224f72bb9d1d902a6d13037b47c", + ], + [ + "b015f8044f5fcbdcf21ca26d6c34fb8197829205c7b7d2a7cb66418c157b112c", + "ab8c1e086d04e813744a655b2df8d5f83b3cdc6faa3088c1d3aea1454e3a1d5f", + ], + [ + "d5e9e1da649d97d89e4868117a465a3a4f8a18de57a140d36b3f2af341a21b52", + "4cb04437f391ed73111a13cc1d4dd0db1693465c2240480d8955e8592f27447a", + ], + [ + "d3ae41047dd7ca065dbf8ed77b992439983005cd72e16d6f996a5316d36966bb", + "bd1aeb21ad22ebb22a10f0303417c6d964f8cdd7df0aca614b10dc14d125ac46", + ], + [ + "463e2763d885f958fc66cdd22800f0a487197d0a82e377b49f80af87c897b065", + "bfefacdb0e5d0fd7df3a311a94de062b26b80c61fbc97508b79992671ef7ca7f", + ], + [ + "7985fdfd127c0567c6f53ec1bb63ec3158e597c40bfe747c83cddfc910641917", + "603c12daf3d9862ef2b25fe1de289aed24ed291e0ec6708703a5bd567f32ed03", + ], + [ + "74a1ad6b5f76e39db2dd249410eac7f99e74c59cb83d2d0ed5ff1543da7703e9", + "cc6157ef18c9c63cd6193d83631bbea0093e0968942e8c33d5737fd790e0db08", + ], + [ + "30682a50703375f602d416664ba19b7fc9bab42c72747463a71d0896b22f6da3", + "553e04f6b018b4fa6c8f39e7f311d3176290d0e0f19ca73f17714d9977a22ff8", + ], + [ + "9e2158f0d7c0d5f26c3791efefa79597654e7a2b2464f52b1ee6c1347769ef57", + "712fcdd1b9053f09003a3481fa7762e9ffd7c8ef35a38509e2fbf2629008373", + ], + [ + "176e26989a43c9cfeba4029c202538c28172e566e3c4fce7322857f3be327d66", + "ed8cc9d04b29eb877d270b4878dc43c19aefd31f4eee09ee7b47834c1fa4b1c3", + ], + [ + "75d46efea3771e6e68abb89a13ad747ecf1892393dfc4f1b7004788c50374da8", + "9852390a99507679fd0b86fd2b39a868d7efc22151346e1a3ca4726586a6bed8", + ], + [ + "809a20c67d64900ffb698c4c825f6d5f2310fb0451c869345b7319f645605721", + "9e994980d9917e22b76b061927fa04143d096ccc54963e6a5ebfa5f3f8e286c1", + ], + [ + "1b38903a43f7f114ed4500b4eac7083fdefece1cf29c63528d563446f972c180", + "4036edc931a60ae889353f77fd53de4a2708b26b6f5da72ad3394119daf408f9", + ], + ], + }, + }; + }); + var lA = N((Dhe) => { + "use strict"; + _(); + x(); + var oW = Dhe, + Mm = qT(), + sW = ZF(), + lTt = Lu(), + Ohe = lTt.assert; + function Lhe(r) { + r.type === "short" + ? (this.curve = new sW.short(r)) + : r.type === "edwards" + ? (this.curve = new sW.edwards(r)) + : (this.curve = new sW.mont(r)), + (this.g = this.curve.g), + (this.n = this.curve.n), + (this.hash = r.hash), + Ohe(this.g.validate(), "Invalid curve"), + Ohe(this.g.mul(this.n).isInfinity(), "Invalid curve, G*N != O"); + } + oW.PresetCurve = Lhe; + function Pm(r, e) { + Object.defineProperty(oW, r, { + configurable: !0, + enumerable: !0, + get: function () { + var t = new Lhe(e); + return ( + Object.defineProperty(oW, r, { + configurable: !0, + enumerable: !0, + value: t, + }), + t + ); + }, + }); + } + Pm("p192", { + type: "short", + prime: "p192", + p: "ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff", + a: "ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc", + b: "64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1", + n: "ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831", + hash: Mm.sha256, + gRed: !1, + g: [ + "188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012", + "07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811", + ], + }); + Pm("p224", { + type: "short", + prime: "p224", + p: "ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001", + a: "ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe", + b: "b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4", + n: "ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d", + hash: Mm.sha256, + gRed: !1, + g: [ + "b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21", + "bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34", + ], + }); + Pm("p256", { + type: "short", + prime: null, + p: "ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff", + a: "ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc", + b: "5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b", + n: "ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551", + hash: Mm.sha256, + gRed: !1, + g: [ + "6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296", + "4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5", + ], + }); + Pm("p384", { + type: "short", + prime: null, + p: "ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff", + a: "ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc", + b: "b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef", + n: "ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973", + hash: Mm.sha384, + gRed: !1, + g: [ + "aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7", + "3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f", + ], + }); + Pm("p521", { + type: "short", + prime: null, + p: "000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff", + a: "000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc", + b: "00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00", + n: "000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409", + hash: Mm.sha512, + gRed: !1, + g: [ + "000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66", + "00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650", + ], + }); + Pm("curve25519", { + type: "mont", + prime: "p25519", + p: "7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed", + a: "76d06", + b: "1", + n: "1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed", + hash: Mm.sha256, + gRed: !1, + g: ["9"], + }); + Pm("ed25519", { + type: "edwards", + prime: "p25519", + p: "7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed", + a: "-1", + c: "1", + d: "52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3", + n: "1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed", + hash: Mm.sha256, + gRed: !1, + g: [ + "216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a", + "6666666666666666666666666666666666666666666666666666666666666658", + ], + }); + var cW; + try { + cW = Nhe(); + } catch { + cW = void 0; + } + Pm("secp256k1", { + type: "short", + prime: "k256", + p: "ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f", + a: "0", + b: "7", + n: "ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141", + h: "1", + hash: Mm.sha256, + beta: "7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee", + lambda: + "5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72", + basis: [ + { + a: "3086d221a7d46bcde86c90e49284eb15", + b: "-e4437ed6010e88286f547fa90abfe4c3", + }, + { + a: "114ca50f7a8e2f3f657c1108d9d44cfd8", + b: "3086d221a7d46bcde86c90e49284eb15", + }, + ], + gRed: !1, + g: [ + "79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798", + "483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8", + cW, + ], + }); + }); + var Whe = N((E$r, Fhe) => { + "use strict"; + _(); + x(); + var dTt = qT(), + tg = vD(), + qhe = Ou(); + function Rm(r) { + if (!(this instanceof Rm)) return new Rm(r); + (this.hash = r.hash), + (this.predResist = !!r.predResist), + (this.outLen = this.hash.outSize), + (this.minEntropy = r.minEntropy || this.hash.hmacStrength), + (this._reseed = null), + (this.reseedInterval = null), + (this.K = null), + (this.V = null); + var e = tg.toArray(r.entropy, r.entropyEnc || "hex"), + t = tg.toArray(r.nonce, r.nonceEnc || "hex"), + n = tg.toArray(r.pers, r.persEnc || "hex"); + qhe( + e.length >= this.minEntropy / 8, + "Not enough entropy. Minimum is: " + this.minEntropy + " bits" + ), + this._init(e, t, n); + } + Fhe.exports = Rm; + Rm.prototype._init = function (e, t, n) { + var a = e.concat(t).concat(n); + (this.K = new Array(this.outLen / 8)), + (this.V = new Array(this.outLen / 8)); + for (var i = 0; i < this.V.length; i++) (this.K[i] = 0), (this.V[i] = 1); + this._update(a), + (this._reseed = 1), + (this.reseedInterval = 281474976710656); + }; + Rm.prototype._hmac = function () { + return new dTt.hmac(this.hash, this.K); + }; + Rm.prototype._update = function (e) { + var t = this._hmac().update(this.V).update([0]); + e && (t = t.update(e)), + (this.K = t.digest()), + (this.V = this._hmac().update(this.V).digest()), + e && + ((this.K = this._hmac() + .update(this.V) + .update([1]) + .update(e) + .digest()), + (this.V = this._hmac().update(this.V).digest())); + }; + Rm.prototype.reseed = function (e, t, n, a) { + typeof t != "string" && ((a = n), (n = t), (t = null)), + (e = tg.toArray(e, t)), + (n = tg.toArray(n, a)), + qhe( + e.length >= this.minEntropy / 8, + "Not enough entropy. Minimum is: " + this.minEntropy + " bits" + ), + this._update(e.concat(n || [])), + (this._reseed = 1); + }; + Rm.prototype.generate = function (e, t, n, a) { + if (this._reseed > this.reseedInterval) + throw new Error("Reseed is required"); + typeof t != "string" && ((a = n), (n = t), (t = null)), + n && ((n = tg.toArray(n, a || "hex")), this._update(n)); + for (var i = []; i.length < e; ) + (this.V = this._hmac().update(this.V).digest()), (i = i.concat(this.V)); + var s = i.slice(0, e); + return this._update(n), this._reseed++, tg.encode(s, t); + }; + }); + var Hhe = N((A$r, Uhe) => { + "use strict"; + _(); + x(); + var pTt = Mp(), + hTt = Lu(), + uW = hTt.assert; + function wo(r, e) { + (this.ec = r), + (this.priv = null), + (this.pub = null), + e.priv && this._importPrivate(e.priv, e.privEnc), + e.pub && this._importPublic(e.pub, e.pubEnc); + } + Uhe.exports = wo; + wo.fromPublic = function (e, t, n) { + return t instanceof wo ? t : new wo(e, { pub: t, pubEnc: n }); + }; + wo.fromPrivate = function (e, t, n) { + return t instanceof wo ? t : new wo(e, { priv: t, privEnc: n }); + }; + wo.prototype.validate = function () { + var e = this.getPublic(); + return e.isInfinity() + ? { result: !1, reason: "Invalid public key" } + : e.validate() + ? e.mul(this.ec.curve.n).isInfinity() + ? { result: !0, reason: null } + : { result: !1, reason: "Public key * N != O" } + : { result: !1, reason: "Public key is not a point" }; + }; + wo.prototype.getPublic = function (e, t) { + return ( + typeof e == "string" && ((t = e), (e = null)), + this.pub || (this.pub = this.ec.g.mul(this.priv)), + t ? this.pub.encode(t, e) : this.pub + ); + }; + wo.prototype.getPrivate = function (e) { + return e === "hex" ? this.priv.toString(16, 2) : this.priv; + }; + wo.prototype._importPrivate = function (e, t) { + (this.priv = new pTt(e, t || 16)), + (this.priv = this.priv.umod(this.ec.curve.n)); + }; + wo.prototype._importPublic = function (e, t) { + if (e.x || e.y) { + this.ec.curve.type === "mont" + ? uW(e.x, "Need x coordinate") + : (this.ec.curve.type === "short" || + this.ec.curve.type === "edwards") && + uW(e.x && e.y, "Need both x and y coordinate"), + (this.pub = this.ec.curve.point(e.x, e.y)); + return; + } + this.pub = this.ec.curve.decodePoint(e, t); + }; + wo.prototype.derive = function (e) { + return ( + e.validate() || uW(e.validate(), "public point not validated"), + e.mul(this.priv).getX() + ); + }; + wo.prototype.sign = function (e, t, n) { + return this.ec.sign(e, this, t, n); + }; + wo.prototype.verify = function (e, t) { + return this.ec.verify(e, t, this); + }; + wo.prototype.inspect = function () { + return ( + "" + ); + }; + }); + var Khe = N((M$r, jhe) => { + "use strict"; + _(); + x(); + var dA = Mp(), + pW = Lu(), + fTt = pW.assert; + function pA(r, e) { + if (r instanceof pA) return r; + this._importDER(r, e) || + (fTt(r.r && r.s, "Signature without r or s"), + (this.r = new dA(r.r, 16)), + (this.s = new dA(r.s, 16)), + r.recoveryParam === void 0 + ? (this.recoveryParam = null) + : (this.recoveryParam = r.recoveryParam)); + } + jhe.exports = pA; + function mTt() { + this.place = 0; + } + function lW(r, e) { + var t = r[e.place++]; + if (!(t & 128)) return t; + var n = t & 15; + if (n === 0 || n > 4) return !1; + for (var a = 0, i = 0, s = e.place; i < n; i++, s++) + (a <<= 8), (a |= r[s]), (a >>>= 0); + return a <= 127 ? !1 : ((e.place = s), a); + } + function zhe(r) { + for (var e = 0, t = r.length - 1; !r[e] && !(r[e + 1] & 128) && e < t; ) + e++; + return e === 0 ? r : r.slice(e); + } + pA.prototype._importDER = function (e, t) { + e = pW.toArray(e, t); + var n = new mTt(); + if (e[n.place++] !== 48) return !1; + var a = lW(e, n); + if (a === !1 || a + n.place !== e.length || e[n.place++] !== 2) return !1; + var i = lW(e, n); + if (i === !1) return !1; + var s = e.slice(n.place, i + n.place); + if (((n.place += i), e[n.place++] !== 2)) return !1; + var c = lW(e, n); + if (c === !1 || e.length !== c + n.place) return !1; + var l = e.slice(n.place, c + n.place); + if (s[0] === 0) + if (s[1] & 128) s = s.slice(1); + else return !1; + if (l[0] === 0) + if (l[1] & 128) l = l.slice(1); + else return !1; + return ( + (this.r = new dA(s)), + (this.s = new dA(l)), + (this.recoveryParam = null), + !0 + ); + }; + function dW(r, e) { + if (e < 128) { + r.push(e); + return; + } + var t = 1 + ((Math.log(e) / Math.LN2) >>> 3); + for (r.push(t | 128); --t; ) r.push((e >>> (t << 3)) & 255); + r.push(e); + } + pA.prototype.toDER = function (e) { + var t = this.r.toArray(), + n = this.s.toArray(); + for ( + t[0] & 128 && (t = [0].concat(t)), + n[0] & 128 && (n = [0].concat(n)), + t = zhe(t), + n = zhe(n); + !n[0] && !(n[1] & 128); + + ) + n = n.slice(1); + var a = [2]; + dW(a, t.length), (a = a.concat(t)), a.push(2), dW(a, n.length); + var i = a.concat(n), + s = [48]; + return dW(s, i.length), (s = s.concat(i)), pW.encode(s, e); + }; + }); + var $he = N((B$r, Yhe) => { + "use strict"; + _(); + x(); + var rg = Mp(), + Vhe = Whe(), + yTt = Lu(), + hW = lA(), + gTt = qI(), + Ghe = yTt.assert, + fW = Hhe(), + hA = Khe(); + function Ml(r) { + if (!(this instanceof Ml)) return new Ml(r); + typeof r == "string" && + (Ghe(Object.prototype.hasOwnProperty.call(hW, r), "Unknown curve " + r), + (r = hW[r])), + r instanceof hW.PresetCurve && (r = { curve: r }), + (this.curve = r.curve.curve), + (this.n = this.curve.n), + (this.nh = this.n.ushrn(1)), + (this.g = this.curve.g), + (this.g = r.curve.g), + this.g.precompute(r.curve.n.bitLength() + 1), + (this.hash = r.hash || r.curve.hash); + } + Yhe.exports = Ml; + Ml.prototype.keyPair = function (e) { + return new fW(this, e); + }; + Ml.prototype.keyFromPrivate = function (e, t) { + return fW.fromPrivate(this, e, t); + }; + Ml.prototype.keyFromPublic = function (e, t) { + return fW.fromPublic(this, e, t); + }; + Ml.prototype.genKeyPair = function (e) { + e || (e = {}); + for ( + var t = new Vhe({ + hash: this.hash, + pers: e.pers, + persEnc: e.persEnc || "utf8", + entropy: e.entropy || gTt(this.hash.hmacStrength), + entropyEnc: (e.entropy && e.entropyEnc) || "utf8", + nonce: this.n.toArray(), + }), + n = this.n.byteLength(), + a = this.n.sub(new rg(2)); + ; + + ) { + var i = new rg(t.generate(n)); + if (!(i.cmp(a) > 0)) return i.iaddn(1), this.keyFromPrivate(i); + } + }; + Ml.prototype._truncateToN = function (e, t) { + var n = e.byteLength() * 8 - this.n.bitLength(); + return ( + n > 0 && (e = e.ushrn(n)), !t && e.cmp(this.n) >= 0 ? e.sub(this.n) : e + ); + }; + Ml.prototype.sign = function (e, t, n, a) { + typeof n == "object" && ((a = n), (n = null)), + a || (a = {}), + (t = this.keyFromPrivate(t, n)), + (e = this._truncateToN(new rg(e, 16))); + for ( + var i = this.n.byteLength(), + s = t.getPrivate().toArray("be", i), + c = e.toArray("be", i), + l = new Vhe({ + hash: this.hash, + entropy: s, + nonce: c, + pers: a.pers, + persEnc: a.persEnc || "utf8", + }), + d = this.n.sub(new rg(1)), + m = 0; + ; + m++ + ) { + var w = a.k ? a.k(m) : new rg(l.generate(this.n.byteLength())); + if ( + ((w = this._truncateToN(w, !0)), !(w.cmpn(1) <= 0 || w.cmp(d) >= 0)) + ) { + var C = this.g.mul(w); + if (!C.isInfinity()) { + var I = C.getX(), + k = I.umod(this.n); + if (k.cmpn(0) !== 0) { + var O = w.invm(this.n).mul(k.mul(t.getPrivate()).iadd(e)); + if (((O = O.umod(this.n)), O.cmpn(0) !== 0)) { + var D = (C.getY().isOdd() ? 1 : 0) | (I.cmp(k) !== 0 ? 2 : 0); + return ( + a.canonical && + O.cmp(this.nh) > 0 && + ((O = this.n.sub(O)), (D ^= 1)), + new hA({ r: k, s: O, recoveryParam: D }) + ); + } + } + } + } + } + }; + Ml.prototype.verify = function (e, t, n, a) { + (e = this._truncateToN(new rg(e, 16))), + (n = this.keyFromPublic(n, a)), + (t = new hA(t, "hex")); + var i = t.r, + s = t.s; + if ( + i.cmpn(1) < 0 || + i.cmp(this.n) >= 0 || + s.cmpn(1) < 0 || + s.cmp(this.n) >= 0 + ) + return !1; + var c = s.invm(this.n), + l = c.mul(e).umod(this.n), + d = c.mul(i).umod(this.n), + m; + return this.curve._maxwellTrick + ? ((m = this.g.jmulAdd(l, n.getPublic(), d)), + m.isInfinity() ? !1 : m.eqXToP(i)) + : ((m = this.g.mulAdd(l, n.getPublic(), d)), + m.isInfinity() ? !1 : m.getX().umod(this.n).cmp(i) === 0); + }; + Ml.prototype.recoverPubKey = function (r, e, t, n) { + Ghe((3 & t) === t, "The recovery param is more than two bits"), + (e = new hA(e, n)); + var a = this.n, + i = new rg(r), + s = e.r, + c = e.s, + l = t & 1, + d = t >> 1; + if (s.cmp(this.curve.p.umod(this.curve.n)) >= 0 && d) + throw new Error("Unable to find sencond key candinate"); + d + ? (s = this.curve.pointFromX(s.add(this.curve.n), l)) + : (s = this.curve.pointFromX(s, l)); + var m = e.r.invm(a), + w = a.sub(i).mul(m).umod(a), + C = c.mul(m).umod(a); + return this.g.mulAdd(w, s, C); + }; + Ml.prototype.getKeyRecoveryParam = function (r, e, t, n) { + if (((e = new hA(e, n)), e.recoveryParam !== null)) + return e.recoveryParam; + for (var a = 0; a < 4; a++) { + var i; + try { + i = this.recoverPubKey(r, e, a); + } catch { + continue; + } + if (i.eq(t)) return a; + } + throw new Error("Unable to find valid recovery factor"); + }; + }); + var Xhe = N((L$r, Qhe) => { + "use strict"; + _(); + x(); + var FT = Lu(), + Zhe = FT.assert, + Jhe = FT.parseBytes, + dv = FT.cachedProperty; + function Ps(r, e) { + (this.eddsa = r), + (this._secret = Jhe(e.secret)), + r.isPoint(e.pub) ? (this._pub = e.pub) : (this._pubBytes = Jhe(e.pub)); + } + Ps.fromPublic = function (e, t) { + return t instanceof Ps ? t : new Ps(e, { pub: t }); + }; + Ps.fromSecret = function (e, t) { + return t instanceof Ps ? t : new Ps(e, { secret: t }); + }; + Ps.prototype.secret = function () { + return this._secret; + }; + dv(Ps, "pubBytes", function () { + return this.eddsa.encodePoint(this.pub()); + }); + dv(Ps, "pub", function () { + return this._pubBytes + ? this.eddsa.decodePoint(this._pubBytes) + : this.eddsa.g.mul(this.priv()); + }); + dv(Ps, "privBytes", function () { + var e = this.eddsa, + t = this.hash(), + n = e.encodingLength - 1, + a = t.slice(0, e.encodingLength); + return (a[0] &= 248), (a[n] &= 127), (a[n] |= 64), a; + }); + dv(Ps, "priv", function () { + return this.eddsa.decodeInt(this.privBytes()); + }); + dv(Ps, "hash", function () { + return this.eddsa.hash().update(this.secret()).digest(); + }); + dv(Ps, "messagePrefix", function () { + return this.hash().slice(this.eddsa.encodingLength); + }); + Ps.prototype.sign = function (e) { + return ( + Zhe(this._secret, "KeyPair can only verify"), this.eddsa.sign(e, this) + ); + }; + Ps.prototype.verify = function (e, t) { + return this.eddsa.verify(e, t, this); + }; + Ps.prototype.getSecret = function (e) { + return ( + Zhe(this._secret, "KeyPair is public only"), FT.encode(this.secret(), e) + ); + }; + Ps.prototype.getPublic = function (e) { + return FT.encode(this.pubBytes(), e); + }; + Qhe.exports = Ps; + }); + var tfe = N((F$r, efe) => { + "use strict"; + _(); + x(); + var bTt = Mp(), + fA = Lu(), + vTt = fA.assert, + mA = fA.cachedProperty, + wTt = fA.parseBytes; + function ng(r, e) { + (this.eddsa = r), + typeof e != "object" && (e = wTt(e)), + Array.isArray(e) && + (e = { + R: e.slice(0, r.encodingLength), + S: e.slice(r.encodingLength), + }), + vTt(e.R && e.S, "Signature without R or S"), + r.isPoint(e.R) && (this._R = e.R), + e.S instanceof bTt && (this._S = e.S), + (this._Rencoded = Array.isArray(e.R) ? e.R : e.Rencoded), + (this._Sencoded = Array.isArray(e.S) ? e.S : e.Sencoded); + } + mA(ng, "S", function () { + return this.eddsa.decodeInt(this.Sencoded()); + }); + mA(ng, "R", function () { + return this.eddsa.decodePoint(this.Rencoded()); + }); + mA(ng, "Rencoded", function () { + return this.eddsa.encodePoint(this.R()); + }); + mA(ng, "Sencoded", function () { + return this.eddsa.encodeInt(this.S()); + }); + ng.prototype.toBytes = function () { + return this.Rencoded().concat(this.Sencoded()); + }; + ng.prototype.toHex = function () { + return fA.encode(this.toBytes(), "hex").toUpperCase(); + }; + efe.exports = ng; + }); + var sfe = N((H$r, ife) => { + "use strict"; + _(); + x(); + var _Tt = qT(), + xTt = lA(), + pv = Lu(), + TTt = pv.assert, + nfe = pv.parseBytes, + afe = Xhe(), + rfe = tfe(); + function Xc(r) { + if ( + (TTt(r === "ed25519", "only tested with ed25519 so far"), + !(this instanceof Xc)) + ) + return new Xc(r); + (r = xTt[r].curve), + (this.curve = r), + (this.g = r.g), + this.g.precompute(r.n.bitLength() + 1), + (this.pointClass = r.point().constructor), + (this.encodingLength = Math.ceil(r.n.bitLength() / 8)), + (this.hash = _Tt.sha512); + } + ife.exports = Xc; + Xc.prototype.sign = function (e, t) { + e = nfe(e); + var n = this.keyFromSecret(t), + a = this.hashInt(n.messagePrefix(), e), + i = this.g.mul(a), + s = this.encodePoint(i), + c = this.hashInt(s, n.pubBytes(), e).mul(n.priv()), + l = a.add(c).umod(this.curve.n); + return this.makeSignature({ R: i, S: l, Rencoded: s }); + }; + Xc.prototype.verify = function (e, t, n) { + (e = nfe(e)), (t = this.makeSignature(t)); + var a = this.keyFromPublic(n), + i = this.hashInt(t.Rencoded(), a.pubBytes(), e), + s = this.g.mul(t.S()), + c = t.R().add(a.pub().mul(i)); + return c.eq(s); + }; + Xc.prototype.hashInt = function () { + for (var e = this.hash(), t = 0; t < arguments.length; t++) + e.update(arguments[t]); + return pv.intFromLE(e.digest()).umod(this.curve.n); + }; + Xc.prototype.keyFromPublic = function (e) { + return afe.fromPublic(this, e); + }; + Xc.prototype.keyFromSecret = function (e) { + return afe.fromSecret(this, e); + }; + Xc.prototype.makeSignature = function (e) { + return e instanceof rfe ? e : new rfe(this, e); + }; + Xc.prototype.encodePoint = function (e) { + var t = e.getY().toArray("le", this.encodingLength); + return (t[this.encodingLength - 1] |= e.getX().isOdd() ? 128 : 0), t; + }; + Xc.prototype.decodePoint = function (e) { + e = pv.parseBytes(e); + var t = e.length - 1, + n = e.slice(0, t).concat(e[t] & -129), + a = (e[t] & 128) !== 0, + i = pv.intFromLE(n); + return this.curve.pointFromY(i, a); + }; + Xc.prototype.encodeInt = function (e) { + return e.toArray("le", this.encodingLength); + }; + Xc.prototype.decodeInt = function (e) { + return pv.intFromLE(e); + }; + Xc.prototype.isPoint = function (e) { + return e instanceof this.pointClass; + }; + }); + var AT = N((ofe) => { + "use strict"; + _(); + x(); + var ag = ofe; + ag.version = tse().version; + ag.utils = Lu(); + ag.rand = qI(); + ag.curve = ZF(); + ag.curves = lA(); + ag.ec = $he(); + ag.eddsa = sfe(); + }); + var cfe = N((hv) => { + "use strict"; + _(); + x(); + var ETt = + (hv && hv.__importDefault) || + function (r) { + return r && r.__esModule ? r : { default: r }; + }; + Object.defineProperty(hv, "__esModule", { value: !0 }); + hv.EC = void 0; + var CTt = ETt(AT()), + ITt = CTt.default.ec; + hv.EC = ITt; + }); + var ufe = N((yA) => { + "use strict"; + _(); + x(); + Object.defineProperty(yA, "__esModule", { value: !0 }); + yA.version = void 0; + yA.version = "signing-key/5.7.0"; + }); + var UT = N((Bm) => { + "use strict"; + _(); + x(); + Object.defineProperty(Bm, "__esModule", { value: !0 }); + Bm.computePublicKey = Bm.recoverPublicKey = Bm.SigningKey = void 0; + var ATt = cfe(), + Gi = Dr(), + WT = ja(), + kTt = ir(), + STt = ufe(), + yW = new kTt.Logger(STt.version), + mW = null; + function zp() { + return mW || (mW = new ATt.EC("secp256k1")), mW; + } + var lfe = (function () { + function r(e) { + (0, WT.defineReadOnly)(this, "curve", "secp256k1"), + (0, WT.defineReadOnly)(this, "privateKey", (0, Gi.hexlify)(e)), + (0, Gi.hexDataLength)(this.privateKey) !== 32 && + yW.throwArgumentError( + "invalid private key", + "privateKey", + "[[ REDACTED ]]" + ); + var t = zp().keyFromPrivate((0, Gi.arrayify)(this.privateKey)); + (0, WT.defineReadOnly)( + this, + "publicKey", + "0x" + t.getPublic(!1, "hex") + ), + (0, WT.defineReadOnly)( + this, + "compressedPublicKey", + "0x" + t.getPublic(!0, "hex") + ), + (0, WT.defineReadOnly)(this, "_isSigningKey", !0); + } + return ( + (r.prototype._addPoint = function (e) { + var t = zp().keyFromPublic((0, Gi.arrayify)(this.publicKey)), + n = zp().keyFromPublic((0, Gi.arrayify)(e)); + return "0x" + t.pub.add(n.pub).encodeCompressed("hex"); + }), + (r.prototype.signDigest = function (e) { + var t = zp().keyFromPrivate((0, Gi.arrayify)(this.privateKey)), + n = (0, Gi.arrayify)(e); + n.length !== 32 && + yW.throwArgumentError("bad digest length", "digest", e); + var a = t.sign(n, { canonical: !0 }); + return (0, Gi.splitSignature)({ + recoveryParam: a.recoveryParam, + r: (0, Gi.hexZeroPad)("0x" + a.r.toString(16), 32), + s: (0, Gi.hexZeroPad)("0x" + a.s.toString(16), 32), + }); + }), + (r.prototype.computeSharedSecret = function (e) { + var t = zp().keyFromPrivate((0, Gi.arrayify)(this.privateKey)), + n = zp().keyFromPublic((0, Gi.arrayify)(dfe(e))); + return (0, Gi.hexZeroPad)( + "0x" + t.derive(n.getPublic()).toString(16), + 32 + ); + }), + (r.isSigningKey = function (e) { + return !!(e && e._isSigningKey); + }), + r + ); + })(); + Bm.SigningKey = lfe; + function MTt(r, e) { + var t = (0, Gi.splitSignature)(e), + n = { r: (0, Gi.arrayify)(t.r), s: (0, Gi.arrayify)(t.s) }; + return ( + "0x" + + zp() + .recoverPubKey((0, Gi.arrayify)(r), n, t.recoveryParam) + .encode("hex", !1) + ); + } + Bm.recoverPublicKey = MTt; + function dfe(r, e) { + var t = (0, Gi.arrayify)(r); + if (t.length === 32) { + var n = new lfe(t); + return e + ? "0x" + zp().keyFromPrivate(t).getPublic(!0, "hex") + : n.publicKey; + } else { + if (t.length === 33) + return e + ? (0, Gi.hexlify)(t) + : "0x" + zp().keyFromPublic(t).getPublic(!1, "hex"); + if (t.length === 65) + return e + ? "0x" + zp().keyFromPublic(t).getPublic(!0, "hex") + : (0, Gi.hexlify)(t); + } + return yW.throwArgumentError( + "invalid public or private key", + "key", + "[REDACTED]" + ); + } + Bm.computePublicKey = dfe; + }); + var pfe = N((gA) => { + "use strict"; + _(); + x(); + Object.defineProperty(gA, "__esModule", { value: !0 }); + gA.version = void 0; + gA.version = "transactions/5.7.0"; + }); + var lf = N((Li) => { + "use strict"; + _(); + x(); + var PTt = + (Li && Li.__createBinding) || + (Object.create + ? function (r, e, t, n) { + n === void 0 && (n = t), + Object.defineProperty(r, n, { + enumerable: !0, + get: function () { + return e[t]; + }, + }); + } + : function (r, e, t, n) { + n === void 0 && (n = t), (r[n] = e[t]); + }), + RTt = + (Li && Li.__setModuleDefault) || + (Object.create + ? function (r, e) { + Object.defineProperty(r, "default", { enumerable: !0, value: e }); + } + : function (r, e) { + r.default = e; + }), + BTt = + (Li && Li.__importStar) || + function (r) { + if (r && r.__esModule) return r; + var e = {}; + if (r != null) + for (var t in r) + t !== "default" && + Object.prototype.hasOwnProperty.call(r, t) && + PTt(e, r, t); + return RTt(e, r), e; + }; + Object.defineProperty(Li, "__esModule", { value: !0 }); + Li.parse = + Li.serialize = + Li.accessListify = + Li.recoverAddress = + Li.computeAddress = + Li.TransactionTypes = + void 0; + var HT = dl(), + ig = zi(), + pn = Dr(), + NTt = vy(), + fv = Nu(), + OTt = ja(), + Nm = BTt($8()), + hfe = UT(), + bW = ir(), + LTt = pfe(), + xo = new bW.Logger(LTt.version), + DTt; + (function (r) { + (r[(r.legacy = 0)] = "legacy"), + (r[(r.eip2930 = 1)] = "eip2930"), + (r[(r.eip1559 = 2)] = "eip1559"); + })((DTt = Li.TransactionTypes || (Li.TransactionTypes = {}))); + function vW(r) { + return r === "0x" ? null : (0, HT.getAddress)(r); + } + function _o(r) { + return r === "0x" ? NTt.Zero : ig.BigNumber.from(r); + } + var qTt = [ + { name: "nonce", maxLength: 32, numeric: !0 }, + { name: "gasPrice", maxLength: 32, numeric: !0 }, + { name: "gasLimit", maxLength: 32, numeric: !0 }, + { name: "to", length: 20 }, + { name: "value", maxLength: 32, numeric: !0 }, + { name: "data" }, + ], + FTt = { + chainId: !0, + data: !0, + gasLimit: !0, + gasPrice: !0, + nonce: !0, + to: !0, + type: !0, + value: !0, + }; + function ffe(r) { + var e = (0, hfe.computePublicKey)(r); + return (0, HT.getAddress)( + (0, pn.hexDataSlice)((0, fv.keccak256)((0, pn.hexDataSlice)(e, 1)), 12) + ); + } + Li.computeAddress = ffe; + function wW(r, e) { + return ffe((0, hfe.recoverPublicKey)((0, pn.arrayify)(r), e)); + } + Li.recoverAddress = wW; + function Fu(r, e) { + var t = (0, pn.stripZeros)(ig.BigNumber.from(r).toHexString()); + return ( + t.length > 32 && + xo.throwArgumentError( + "invalid length for " + e, + "transaction:" + e, + r + ), + t + ); + } + function gW(r, e) { + return { + address: (0, HT.getAddress)(r), + storageKeys: (e || []).map(function (t, n) { + return ( + (0, pn.hexDataLength)(t) !== 32 && + xo.throwArgumentError( + "invalid access list storageKey", + "accessList[" + r + ":" + n + "]", + t + ), + t.toLowerCase() + ); + }), + }; + } + function bA(r) { + if (Array.isArray(r)) + return r.map(function (t, n) { + return Array.isArray(t) + ? (t.length > 2 && + xo.throwArgumentError( + "access list expected to be [ address, storageKeys[] ]", + "value[" + n + "]", + t + ), + gW(t[0], t[1])) + : gW(t.address, t.storageKeys); + }); + var e = Object.keys(r).map(function (t) { + var n = r[t].reduce(function (a, i) { + return (a[i] = !0), a; + }, {}); + return gW(t, Object.keys(n).sort()); + }); + return ( + e.sort(function (t, n) { + return t.address.localeCompare(n.address); + }), + e + ); + } + Li.accessListify = bA; + function mfe(r) { + return bA(r).map(function (e) { + return [e.address, e.storageKeys]; + }); + } + function yfe(r, e) { + if (r.gasPrice != null) { + var t = ig.BigNumber.from(r.gasPrice), + n = ig.BigNumber.from(r.maxFeePerGas || 0); + t.eq(n) || + xo.throwArgumentError( + "mismatch EIP-1559 gasPrice != maxFeePerGas", + "tx", + { gasPrice: t, maxFeePerGas: n } + ); + } + var a = [ + Fu(r.chainId || 0, "chainId"), + Fu(r.nonce || 0, "nonce"), + Fu(r.maxPriorityFeePerGas || 0, "maxPriorityFeePerGas"), + Fu(r.maxFeePerGas || 0, "maxFeePerGas"), + Fu(r.gasLimit || 0, "gasLimit"), + r.to != null ? (0, HT.getAddress)(r.to) : "0x", + Fu(r.value || 0, "value"), + r.data || "0x", + mfe(r.accessList || []), + ]; + if (e) { + var i = (0, pn.splitSignature)(e); + a.push(Fu(i.recoveryParam, "recoveryParam")), + a.push((0, pn.stripZeros)(i.r)), + a.push((0, pn.stripZeros)(i.s)); + } + return (0, pn.hexConcat)(["0x02", Nm.encode(a)]); + } + function gfe(r, e) { + var t = [ + Fu(r.chainId || 0, "chainId"), + Fu(r.nonce || 0, "nonce"), + Fu(r.gasPrice || 0, "gasPrice"), + Fu(r.gasLimit || 0, "gasLimit"), + r.to != null ? (0, HT.getAddress)(r.to) : "0x", + Fu(r.value || 0, "value"), + r.data || "0x", + mfe(r.accessList || []), + ]; + if (e) { + var n = (0, pn.splitSignature)(e); + t.push(Fu(n.recoveryParam, "recoveryParam")), + t.push((0, pn.stripZeros)(n.r)), + t.push((0, pn.stripZeros)(n.s)); + } + return (0, pn.hexConcat)(["0x01", Nm.encode(t)]); + } + function WTt(r, e) { + (0, OTt.checkProperties)(r, FTt); + var t = []; + qTt.forEach(function (s) { + var c = r[s.name] || [], + l = {}; + s.numeric && (l.hexPad = "left"), + (c = (0, pn.arrayify)((0, pn.hexlify)(c, l))), + s.length && + c.length !== s.length && + c.length > 0 && + xo.throwArgumentError( + "invalid length for " + s.name, + "transaction:" + s.name, + c + ), + s.maxLength && + ((c = (0, pn.stripZeros)(c)), + c.length > s.maxLength && + xo.throwArgumentError( + "invalid length for " + s.name, + "transaction:" + s.name, + c + )), + t.push((0, pn.hexlify)(c)); + }); + var n = 0; + if ( + (r.chainId != null + ? ((n = r.chainId), + typeof n != "number" && + xo.throwArgumentError( + "invalid transaction.chainId", + "transaction", + r + )) + : e && + !(0, pn.isBytesLike)(e) && + e.v > 28 && + (n = Math.floor((e.v - 35) / 2)), + n !== 0 && (t.push((0, pn.hexlify)(n)), t.push("0x"), t.push("0x")), + !e) + ) + return Nm.encode(t); + var a = (0, pn.splitSignature)(e), + i = 27 + a.recoveryParam; + return ( + n !== 0 + ? (t.pop(), + t.pop(), + t.pop(), + (i += n * 2 + 8), + a.v > 28 && + a.v !== i && + xo.throwArgumentError( + "transaction.chainId/signature.v mismatch", + "signature", + e + )) + : a.v !== i && + xo.throwArgumentError( + "transaction.chainId/signature.v mismatch", + "signature", + e + ), + t.push((0, pn.hexlify)(i)), + t.push((0, pn.stripZeros)((0, pn.arrayify)(a.r))), + t.push((0, pn.stripZeros)((0, pn.arrayify)(a.s))), + Nm.encode(t) + ); + } + function UTt(r, e) { + if (r.type == null || r.type === 0) + return ( + r.accessList != null && + xo.throwArgumentError( + "untyped transactions do not support accessList; include type: 1", + "transaction", + r + ), + WTt(r, e) + ); + switch (r.type) { + case 1: + return gfe(r, e); + case 2: + return yfe(r, e); + default: + break; + } + return xo.throwError( + "unsupported transaction type: " + r.type, + bW.Logger.errors.UNSUPPORTED_OPERATION, + { operation: "serializeTransaction", transactionType: r.type } + ); + } + Li.serialize = UTt; + function bfe(r, e, t) { + try { + var n = _o(e[0]).toNumber(); + if (n !== 0 && n !== 1) throw new Error("bad recid"); + r.v = n; + } catch { + xo.throwArgumentError("invalid v for transaction type: 1", "v", e[0]); + } + (r.r = (0, pn.hexZeroPad)(e[1], 32)), + (r.s = (0, pn.hexZeroPad)(e[2], 32)); + try { + var a = (0, fv.keccak256)(t(r)); + r.from = wW(a, { r: r.r, s: r.s, recoveryParam: r.v }); + } catch {} + } + function HTt(r) { + var e = Nm.decode(r.slice(1)); + e.length !== 9 && + e.length !== 12 && + xo.throwArgumentError( + "invalid component count for transaction type: 2", + "payload", + (0, pn.hexlify)(r) + ); + var t = _o(e[2]), + n = _o(e[3]), + a = { + type: 2, + chainId: _o(e[0]).toNumber(), + nonce: _o(e[1]).toNumber(), + maxPriorityFeePerGas: t, + maxFeePerGas: n, + gasPrice: null, + gasLimit: _o(e[4]), + to: vW(e[5]), + value: _o(e[6]), + data: e[7], + accessList: bA(e[8]), + }; + return ( + e.length === 9 || + ((a.hash = (0, fv.keccak256)(r)), bfe(a, e.slice(9), yfe)), + a + ); + } + function zTt(r) { + var e = Nm.decode(r.slice(1)); + e.length !== 8 && + e.length !== 11 && + xo.throwArgumentError( + "invalid component count for transaction type: 1", + "payload", + (0, pn.hexlify)(r) + ); + var t = { + type: 1, + chainId: _o(e[0]).toNumber(), + nonce: _o(e[1]).toNumber(), + gasPrice: _o(e[2]), + gasLimit: _o(e[3]), + to: vW(e[4]), + value: _o(e[5]), + data: e[6], + accessList: bA(e[7]), + }; + return ( + e.length === 8 || + ((t.hash = (0, fv.keccak256)(r)), bfe(t, e.slice(8), gfe)), + t + ); + } + function jTt(r) { + var e = Nm.decode(r); + e.length !== 9 && + e.length !== 6 && + xo.throwArgumentError("invalid raw transaction", "rawTransaction", r); + var t = { + nonce: _o(e[0]).toNumber(), + gasPrice: _o(e[1]), + gasLimit: _o(e[2]), + to: vW(e[3]), + value: _o(e[4]), + data: e[5], + chainId: 0, + }; + if (e.length === 6) return t; + try { + t.v = ig.BigNumber.from(e[6]).toNumber(); + } catch { + return t; + } + if ( + ((t.r = (0, pn.hexZeroPad)(e[7], 32)), + (t.s = (0, pn.hexZeroPad)(e[8], 32)), + ig.BigNumber.from(t.r).isZero() && ig.BigNumber.from(t.s).isZero()) + ) + (t.chainId = t.v), (t.v = 0); + else { + (t.chainId = Math.floor((t.v - 35) / 2)), + t.chainId < 0 && (t.chainId = 0); + var n = t.v - 27, + a = e.slice(0, 6); + t.chainId !== 0 && + (a.push((0, pn.hexlify)(t.chainId)), + a.push("0x"), + a.push("0x"), + (n -= t.chainId * 2 + 8)); + var i = (0, fv.keccak256)(Nm.encode(a)); + try { + t.from = wW(i, { + r: (0, pn.hexlify)(t.r), + s: (0, pn.hexlify)(t.s), + recoveryParam: n, + }); + } catch {} + t.hash = (0, fv.keccak256)(r); + } + return (t.type = null), t; + } + function KTt(r) { + var e = (0, pn.arrayify)(r); + if (e[0] > 127) return jTt(e); + switch (e[0]) { + case 1: + return zTt(e); + case 2: + return HTt(e); + default: + break; + } + return xo.throwError( + "unsupported transaction type: " + e[0], + bW.Logger.errors.UNSUPPORTED_OPERATION, + { operation: "parseTransaction", transactionType: e[0] } + ); + } + Li.parse = KTt; + }); + var vfe = N((vA) => { + "use strict"; + _(); + x(); + Object.defineProperty(vA, "__esModule", { value: !0 }); + vA.version = void 0; + vA.version = "contracts/5.7.0"; + }); + var Afe = N((To) => { + "use strict"; + _(); + x(); + var xA = + (To && To.__extends) || + (function () { + var r = function (e, t) { + return ( + (r = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (n, a) { + n.__proto__ = a; + }) || + function (n, a) { + for (var i in a) + Object.prototype.hasOwnProperty.call(a, i) && (n[i] = a[i]); + }), + r(e, t) + ); + }; + return function (e, t) { + if (typeof t != "function" && t !== null) + throw new TypeError( + "Class extends value " + + String(t) + + " is not a constructor or null" + ); + r(e, t); + function n() { + this.constructor = e; + } + e.prototype = + t === null + ? Object.create(t) + : ((n.prototype = t.prototype), new n()); + }; + })(), + Lm = + (To && To.__awaiter) || + function (r, e, t, n) { + function a(i) { + return i instanceof t + ? i + : new t(function (s) { + s(i); + }); + } + return new (t || (t = Promise))(function (i, s) { + function c(m) { + try { + d(n.next(m)); + } catch (w) { + s(w); + } + } + function l(m) { + try { + d(n.throw(m)); + } catch (w) { + s(w); + } + } + function d(m) { + m.done ? i(m.value) : a(m.value).then(c, l); + } + d((n = n.apply(r, e || [])).next()); + }); + }, + Dm = + (To && To.__generator) || + function (r, e) { + var t = { + label: 0, + sent: function () { + if (i[0] & 1) throw i[1]; + return i[1]; + }, + trys: [], + ops: [], + }, + n, + a, + i, + s; + return ( + (s = { next: c(0), throw: c(1), return: c(2) }), + typeof Symbol == "function" && + (s[Symbol.iterator] = function () { + return this; + }), + s + ); + function c(d) { + return function (m) { + return l([d, m]); + }; + } + function l(d) { + if (n) throw new TypeError("Generator is already executing."); + for (; t; ) + try { + if ( + ((n = 1), + a && + (i = + d[0] & 2 + ? a.return + : d[0] + ? a.throw || ((i = a.return) && i.call(a), 0) + : a.next) && + !(i = i.call(a, d[1])).done) + ) + return i; + switch (((a = 0), i && (d = [d[0] & 2, i.value]), d[0])) { + case 0: + case 1: + i = d; + break; + case 4: + return t.label++, { value: d[1], done: !1 }; + case 5: + t.label++, (a = d[1]), (d = [0]); + continue; + case 7: + (d = t.ops.pop()), t.trys.pop(); + continue; + default: + if ( + ((i = t.trys), + !(i = i.length > 0 && i[i.length - 1]) && + (d[0] === 6 || d[0] === 2)) + ) { + t = 0; + continue; + } + if (d[0] === 3 && (!i || (d[1] > i[0] && d[1] < i[3]))) { + t.label = d[1]; + break; + } + if (d[0] === 6 && t.label < i[1]) { + (t.label = i[1]), (i = d); + break; + } + if (i && t.label < i[2]) { + (t.label = i[2]), t.ops.push(d); + break; + } + i[2] && t.ops.pop(), t.trys.pop(); + continue; + } + d = e.call(r, t); + } catch (m) { + (d = [6, m]), (a = 0); + } finally { + n = i = 0; + } + if (d[0] & 5) throw d[1]; + return { value: d[0] ? d[1] : void 0, done: !0 }; + } + }, + VTt = + (To && To.__spreadArray) || + function (r, e, t) { + if (t || arguments.length === 2) + for (var n = 0, a = e.length, i; n < a; n++) + (i || !(n in e)) && + (i || (i = Array.prototype.slice.call(e, 0, n)), (i[n] = e[n])); + return r.concat(i || Array.prototype.slice.call(e)); + }; + Object.defineProperty(To, "__esModule", { value: !0 }); + To.ContractFactory = To.Contract = To.BaseContract = void 0; + var wA = yD(), + GTt = I1(), + _W = Ux(), + jT = dl(), + Om = zi(), + sg = Dr(), + Jt = ja(), + YTt = lf(), + Js = ir(), + $Tt = vfe(), + ei = new Js.Logger($Tt.version), + JTt = { + chainId: !0, + data: !0, + from: !0, + gasLimit: !0, + gasPrice: !0, + nonce: !0, + to: !0, + value: !0, + type: !0, + accessList: !0, + maxFeePerGas: !0, + maxPriorityFeePerGas: !0, + customData: !0, + ccipReadEnabled: !0, + }; + function _A(r, e) { + return Lm(this, void 0, void 0, function () { + var t, n; + return Dm(this, function (a) { + switch (a.label) { + case 0: + return [4, e]; + case 1: + (t = a.sent()), + typeof t != "string" && + ei.throwArgumentError( + "invalid address or ENS name", + "name", + t + ); + try { + return [2, (0, jT.getAddress)(t)]; + } catch {} + return ( + r || + ei.throwError( + "a provider or signer is needed to resolve ENS names", + Js.Logger.errors.UNSUPPORTED_OPERATION, + { operation: "resolveName" } + ), + [4, r.resolveName(t)] + ); + case 2: + return ( + (n = a.sent()), + n == null && + ei.throwArgumentError( + "resolver or addr is not configured for ENS name", + "name", + t + ), + [2, n] + ); + } + }); + }); + } + function zT(r, e, t) { + return Lm(this, void 0, void 0, function () { + return Dm(this, function (n) { + switch (n.label) { + case 0: + return Array.isArray(t) + ? [ + 4, + Promise.all( + t.map(function (a, i) { + return zT(r, Array.isArray(e) ? e[i] : e[a.name], a); + }) + ), + ] + : [3, 2]; + case 1: + return [2, n.sent()]; + case 2: + return t.type !== "address" ? [3, 4] : [4, _A(r, e)]; + case 3: + return [2, n.sent()]; + case 4: + return t.type !== "tuple" ? [3, 6] : [4, zT(r, e, t.components)]; + case 5: + return [2, n.sent()]; + case 6: + return t.baseType !== "array" + ? [3, 8] + : Array.isArray(e) + ? [ + 4, + Promise.all( + e.map(function (a) { + return zT(r, a, t.arrayChildren); + }) + ), + ] + : [ + 2, + Promise.reject( + ei.makeError( + "invalid value for array", + Js.Logger.errors.INVALID_ARGUMENT, + { argument: "value", value: e } + ) + ), + ]; + case 7: + return [2, n.sent()]; + case 8: + return [2, e]; + } + }); + }); + } + function TA(r, e, t) { + return Lm(this, void 0, void 0, function () { + var n, + a, + i, + s, + c, + l, + d, + m, + w, + C, + I = this; + return Dm(this, function (k) { + switch (k.label) { + case 0: + return ( + (n = {}), + t.length === e.inputs.length + 1 && + typeof t[t.length - 1] == "object" && + (n = (0, Jt.shallowCopy)(t.pop())), + ei.checkArgumentCount( + t.length, + e.inputs.length, + "passed to contract" + ), + r.signer + ? n.from + ? (n.from = (0, Jt.resolveProperties)({ + override: _A(r.signer, n.from), + signer: r.signer.getAddress(), + }).then(function (O) { + return Lm(I, void 0, void 0, function () { + return Dm(this, function (D) { + return ( + (0, jT.getAddress)(O.signer) !== O.override && + ei.throwError( + "Contract with a Signer cannot override from", + Js.Logger.errors.UNSUPPORTED_OPERATION, + { operation: "overrides.from" } + ), + [2, O.override] + ); + }); + }); + })) + : (n.from = r.signer.getAddress()) + : n.from && (n.from = _A(r.provider, n.from)), + [ + 4, + (0, Jt.resolveProperties)({ + args: zT(r.signer || r.provider, t, e.inputs), + address: r.resolvedAddress, + overrides: (0, Jt.resolveProperties)(n) || {}, + }), + ] + ); + case 1: + if ( + ((a = k.sent()), + (i = r.interface.encodeFunctionData(e, a.args)), + (s = { data: i, to: a.address }), + (c = a.overrides), + c.nonce != null && + (s.nonce = Om.BigNumber.from(c.nonce).toNumber()), + c.gasLimit != null && + (s.gasLimit = Om.BigNumber.from(c.gasLimit)), + c.gasPrice != null && + (s.gasPrice = Om.BigNumber.from(c.gasPrice)), + c.maxFeePerGas != null && + (s.maxFeePerGas = Om.BigNumber.from(c.maxFeePerGas)), + c.maxPriorityFeePerGas != null && + (s.maxPriorityFeePerGas = Om.BigNumber.from( + c.maxPriorityFeePerGas + )), + c.from != null && (s.from = c.from), + c.type != null && (s.type = c.type), + c.accessList != null && + (s.accessList = (0, YTt.accessListify)(c.accessList)), + s.gasLimit == null && e.gas != null) + ) { + for ( + l = 21e3, d = (0, sg.arrayify)(i), m = 0; + m < d.length; + m++ + ) + (l += 4), d[m] && (l += 64); + s.gasLimit = Om.BigNumber.from(e.gas).add(l); + } + return ( + c.value && + ((w = Om.BigNumber.from(c.value)), + !w.isZero() && + !e.payable && + ei.throwError( + "non-payable method cannot override value", + Js.Logger.errors.UNSUPPORTED_OPERATION, + { operation: "overrides.value", value: n.value } + ), + (s.value = w)), + c.customData && + (s.customData = (0, Jt.shallowCopy)(c.customData)), + c.ccipReadEnabled && (s.ccipReadEnabled = !!c.ccipReadEnabled), + delete n.nonce, + delete n.gasLimit, + delete n.gasPrice, + delete n.from, + delete n.value, + delete n.type, + delete n.accessList, + delete n.maxFeePerGas, + delete n.maxPriorityFeePerGas, + delete n.customData, + delete n.ccipReadEnabled, + (C = Object.keys(n).filter(function (O) { + return n[O] != null; + })), + C.length && + ei.throwError( + "cannot override " + + C.map(function (O) { + return JSON.stringify(O); + }).join(","), + Js.Logger.errors.UNSUPPORTED_OPERATION, + { operation: "overrides", overrides: C } + ), + [2, s] + ); + } + }); + }); + } + function ZTt(r, e) { + return function () { + for (var t = [], n = 0; n < arguments.length; n++) t[n] = arguments[n]; + return TA(r, e, t); + }; + } + function QTt(r, e) { + var t = r.signer || r.provider; + return function () { + for (var n = [], a = 0; a < arguments.length; a++) n[a] = arguments[a]; + return Lm(this, void 0, void 0, function () { + var i; + return Dm(this, function (s) { + switch (s.label) { + case 0: + return ( + t || + ei.throwError( + "estimate require a provider or signer", + Js.Logger.errors.UNSUPPORTED_OPERATION, + { operation: "estimateGas" } + ), + [4, TA(r, e, n)] + ); + case 1: + return (i = s.sent()), [4, t.estimateGas(i)]; + case 2: + return [2, s.sent()]; + } + }); + }); + }; + } + function Tfe(r, e) { + var t = e.wait.bind(e); + e.wait = function (n) { + return t(n).then(function (a) { + return ( + (a.events = a.logs.map(function (i) { + var s = (0, Jt.deepCopy)(i), + c = null; + try { + c = r.interface.parseLog(i); + } catch {} + return ( + c && + ((s.args = c.args), + (s.decode = function (l, d) { + return r.interface.decodeEventLog(c.eventFragment, l, d); + }), + (s.event = c.name), + (s.eventSignature = c.signature)), + (s.removeListener = function () { + return r.provider; + }), + (s.getBlock = function () { + return r.provider.getBlock(a.blockHash); + }), + (s.getTransaction = function () { + return r.provider.getTransaction(a.transactionHash); + }), + (s.getTransactionReceipt = function () { + return Promise.resolve(a); + }), + s + ); + })), + a + ); + }); + }; + } + function Efe(r, e, t) { + var n = r.signer || r.provider; + return function () { + for (var a = [], i = 0; i < arguments.length; i++) a[i] = arguments[i]; + return Lm(this, void 0, void 0, function () { + var s, c, l, d, m; + return Dm(this, function (w) { + switch (w.label) { + case 0: + return ( + (s = void 0), + a.length === e.inputs.length + 1 && + typeof a[a.length - 1] == "object" + ? ((c = (0, Jt.shallowCopy)(a.pop())), + c.blockTag == null ? [3, 2] : [4, c.blockTag]) + : [3, 3] + ); + case 1: + (s = w.sent()), (w.label = 2); + case 2: + delete c.blockTag, a.push(c), (w.label = 3); + case 3: + return r.deployTransaction == null + ? [3, 5] + : [4, r._deployed(s)]; + case 4: + w.sent(), (w.label = 5); + case 5: + return [4, TA(r, e, a)]; + case 6: + return (l = w.sent()), [4, n.call(l, s)]; + case 7: + d = w.sent(); + try { + return ( + (m = r.interface.decodeFunctionResult(e, d)), + t && e.outputs.length === 1 && (m = m[0]), + [2, m] + ); + } catch (C) { + throw ( + (C.code === Js.Logger.errors.CALL_EXCEPTION && + ((C.address = r.address), + (C.args = a), + (C.transaction = l)), + C) + ); + } + return [2]; + } + }); + }); + }; + } + function XTt(r, e) { + return function () { + for (var t = [], n = 0; n < arguments.length; n++) t[n] = arguments[n]; + return Lm(this, void 0, void 0, function () { + var a, i; + return Dm(this, function (s) { + switch (s.label) { + case 0: + return ( + r.signer || + ei.throwError( + "sending a transaction requires a signer", + Js.Logger.errors.UNSUPPORTED_OPERATION, + { operation: "sendTransaction" } + ), + r.deployTransaction == null ? [3, 2] : [4, r._deployed()] + ); + case 1: + s.sent(), (s.label = 2); + case 2: + return [4, TA(r, e, t)]; + case 3: + return (a = s.sent()), [4, r.signer.sendTransaction(a)]; + case 4: + return (i = s.sent()), Tfe(r, i), [2, i]; + } + }); + }); + }; + } + function wfe(r, e, t) { + return e.constant ? Efe(r, e, t) : XTt(r, e); + } + function Cfe(r) { + return r.address && (r.topics == null || r.topics.length === 0) + ? "*" + : (r.address || "*") + + "@" + + (r.topics + ? r.topics + .map(function (e) { + return Array.isArray(e) ? e.join("|") : e; + }) + .join(":") + : ""); + } + var KT = (function () { + function r(e, t) { + (0, Jt.defineReadOnly)(this, "tag", e), + (0, Jt.defineReadOnly)(this, "filter", t), + (this._listeners = []); + } + return ( + (r.prototype.addListener = function (e, t) { + this._listeners.push({ listener: e, once: t }); + }), + (r.prototype.removeListener = function (e) { + var t = !1; + this._listeners = this._listeners.filter(function (n) { + return t || n.listener !== e ? !0 : ((t = !0), !1); + }); + }), + (r.prototype.removeAllListeners = function () { + this._listeners = []; + }), + (r.prototype.listeners = function () { + return this._listeners.map(function (e) { + return e.listener; + }); + }), + (r.prototype.listenerCount = function () { + return this._listeners.length; + }), + (r.prototype.run = function (e) { + var t = this, + n = this.listenerCount(); + return ( + (this._listeners = this._listeners.filter(function (a) { + var i = e.slice(); + return ( + setTimeout(function () { + a.listener.apply(t, i); + }, 0), + !a.once + ); + })), + n + ); + }), + (r.prototype.prepareEvent = function (e) {}), + (r.prototype.getEmit = function (e) { + return [e]; + }), + r + ); + })(), + e5t = (function (r) { + xA(e, r); + function e() { + return r.call(this, "error", null) || this; + } + return e; + })(KT), + _fe = (function (r) { + xA(e, r); + function e(t, n, a, i) { + var s = this, + c = { address: t }, + l = n.getEventTopic(a); + return ( + i + ? (l !== i[0] && + ei.throwArgumentError("topic mismatch", "topics", i), + (c.topics = i.slice())) + : (c.topics = [l]), + (s = r.call(this, Cfe(c), c) || this), + (0, Jt.defineReadOnly)(s, "address", t), + (0, Jt.defineReadOnly)(s, "interface", n), + (0, Jt.defineReadOnly)(s, "fragment", a), + s + ); + } + return ( + (e.prototype.prepareEvent = function (t) { + var n = this; + r.prototype.prepareEvent.call(this, t), + (t.event = this.fragment.name), + (t.eventSignature = this.fragment.format()), + (t.decode = function (a, i) { + return n.interface.decodeEventLog(n.fragment, a, i); + }); + try { + t.args = this.interface.decodeEventLog( + this.fragment, + t.data, + t.topics + ); + } catch (a) { + (t.args = null), (t.decodeError = a); + } + }), + (e.prototype.getEmit = function (t) { + var n = (0, wA.checkResultErrors)(t.args); + if (n.length) throw n[0].error; + var a = (t.args || []).slice(); + return a.push(t), a; + }), + e + ); + })(KT), + xfe = (function (r) { + xA(e, r); + function e(t, n) { + var a = r.call(this, "*", { address: t }) || this; + return ( + (0, Jt.defineReadOnly)(a, "address", t), + (0, Jt.defineReadOnly)(a, "interface", n), + a + ); + } + return ( + (e.prototype.prepareEvent = function (t) { + var n = this; + r.prototype.prepareEvent.call(this, t); + try { + var a = this.interface.parseLog(t); + (t.event = a.name), + (t.eventSignature = a.signature), + (t.decode = function (i, s) { + return n.interface.decodeEventLog(a.eventFragment, i, s); + }), + (t.args = a.args); + } catch {} + }), + e + ); + })(KT), + Ife = (function () { + function r(e, t, n) { + var a = this.constructor, + i = this; + (0, Jt.defineReadOnly)( + this, + "interface", + (0, Jt.getStatic)(a, "getInterface")(t) + ), + n == null + ? ((0, Jt.defineReadOnly)(this, "provider", null), + (0, Jt.defineReadOnly)(this, "signer", null)) + : _W.Signer.isSigner(n) + ? ((0, Jt.defineReadOnly)(this, "provider", n.provider || null), + (0, Jt.defineReadOnly)(this, "signer", n)) + : GTt.Provider.isProvider(n) + ? ((0, Jt.defineReadOnly)(this, "provider", n), + (0, Jt.defineReadOnly)(this, "signer", null)) + : ei.throwArgumentError( + "invalid signer or provider", + "signerOrProvider", + n + ), + (0, Jt.defineReadOnly)(this, "callStatic", {}), + (0, Jt.defineReadOnly)(this, "estimateGas", {}), + (0, Jt.defineReadOnly)(this, "functions", {}), + (0, Jt.defineReadOnly)(this, "populateTransaction", {}), + (0, Jt.defineReadOnly)(this, "filters", {}); + { + var s = {}; + Object.keys(this.interface.events).forEach(function (d) { + var m = i.interface.events[d]; + (0, Jt.defineReadOnly)(i.filters, d, function () { + for (var w = [], C = 0; C < arguments.length; C++) + w[C] = arguments[C]; + return { + address: i.address, + topics: i.interface.encodeFilterTopics(m, w), + }; + }), + s[m.name] || (s[m.name] = []), + s[m.name].push(d); + }), + Object.keys(s).forEach(function (d) { + var m = s[d]; + m.length === 1 + ? (0, Jt.defineReadOnly)(i.filters, d, i.filters[m[0]]) + : ei.warn( + "Duplicate definition of " + d + " (" + m.join(", ") + ")" + ); + }); + } + if ( + ((0, Jt.defineReadOnly)(this, "_runningEvents", {}), + (0, Jt.defineReadOnly)(this, "_wrappedEmits", {}), + e == null && + ei.throwArgumentError( + "invalid contract address or ENS name", + "addressOrName", + e + ), + (0, Jt.defineReadOnly)(this, "address", e), + this.provider) + ) + (0, Jt.defineReadOnly)( + this, + "resolvedAddress", + _A(this.provider, e) + ); + else + try { + (0, Jt.defineReadOnly)( + this, + "resolvedAddress", + Promise.resolve((0, jT.getAddress)(e)) + ); + } catch { + ei.throwError( + "provider is required to use ENS name as contract address", + Js.Logger.errors.UNSUPPORTED_OPERATION, + { operation: "new Contract" } + ); + } + this.resolvedAddress.catch(function (d) {}); + var c = {}, + l = {}; + Object.keys(this.interface.functions).forEach(function (d) { + var m = i.interface.functions[d]; + if (l[d]) { + ei.warn("Duplicate ABI entry for " + JSON.stringify(d)); + return; + } + l[d] = !0; + { + var w = m.name; + c["%" + w] || (c["%" + w] = []), c["%" + w].push(d); + } + i[d] == null && (0, Jt.defineReadOnly)(i, d, wfe(i, m, !0)), + i.functions[d] == null && + (0, Jt.defineReadOnly)(i.functions, d, wfe(i, m, !1)), + i.callStatic[d] == null && + (0, Jt.defineReadOnly)(i.callStatic, d, Efe(i, m, !0)), + i.populateTransaction[d] == null && + (0, Jt.defineReadOnly)(i.populateTransaction, d, ZTt(i, m)), + i.estimateGas[d] == null && + (0, Jt.defineReadOnly)(i.estimateGas, d, QTt(i, m)); + }), + Object.keys(c).forEach(function (d) { + var m = c[d]; + if (!(m.length > 1)) { + d = d.substring(1); + var w = m[0]; + try { + i[d] == null && (0, Jt.defineReadOnly)(i, d, i[w]); + } catch {} + i.functions[d] == null && + (0, Jt.defineReadOnly)(i.functions, d, i.functions[w]), + i.callStatic[d] == null && + (0, Jt.defineReadOnly)(i.callStatic, d, i.callStatic[w]), + i.populateTransaction[d] == null && + (0, Jt.defineReadOnly)( + i.populateTransaction, + d, + i.populateTransaction[w] + ), + i.estimateGas[d] == null && + (0, Jt.defineReadOnly)(i.estimateGas, d, i.estimateGas[w]); + } + }); + } + return ( + (r.getContractAddress = function (e) { + return (0, jT.getContractAddress)(e); + }), + (r.getInterface = function (e) { + return wA.Interface.isInterface(e) ? e : new wA.Interface(e); + }), + (r.prototype.deployed = function () { + return this._deployed(); + }), + (r.prototype._deployed = function (e) { + var t = this; + return ( + this._deployedPromise || + (this.deployTransaction + ? (this._deployedPromise = this.deployTransaction + .wait() + .then(function () { + return t; + })) + : (this._deployedPromise = this.provider + .getCode(this.address, e) + .then(function (n) { + return ( + n === "0x" && + ei.throwError( + "contract not deployed", + Js.Logger.errors.UNSUPPORTED_OPERATION, + { + contractAddress: t.address, + operation: "getDeployed", + } + ), + t + ); + }))), + this._deployedPromise + ); + }), + (r.prototype.fallback = function (e) { + var t = this; + this.signer || + ei.throwError( + "sending a transactions require a signer", + Js.Logger.errors.UNSUPPORTED_OPERATION, + { operation: "sendTransaction(fallback)" } + ); + var n = (0, Jt.shallowCopy)(e || {}); + return ( + ["from", "to"].forEach(function (a) { + n[a] != null && + ei.throwError( + "cannot override " + a, + Js.Logger.errors.UNSUPPORTED_OPERATION, + { operation: a } + ); + }), + (n.to = this.resolvedAddress), + this.deployed().then(function () { + return t.signer.sendTransaction(n); + }) + ); + }), + (r.prototype.connect = function (e) { + typeof e == "string" && (e = new _W.VoidSigner(e, this.provider)); + var t = new this.constructor(this.address, this.interface, e); + return ( + this.deployTransaction && + (0, Jt.defineReadOnly)( + t, + "deployTransaction", + this.deployTransaction + ), + t + ); + }), + (r.prototype.attach = function (e) { + return new this.constructor( + e, + this.interface, + this.signer || this.provider + ); + }), + (r.isIndexed = function (e) { + return wA.Indexed.isIndexed(e); + }), + (r.prototype._normalizeRunningEvent = function (e) { + return this._runningEvents[e.tag] ? this._runningEvents[e.tag] : e; + }), + (r.prototype._getRunningEvent = function (e) { + if (typeof e == "string") { + if (e === "error") return this._normalizeRunningEvent(new e5t()); + if (e === "event") + return this._normalizeRunningEvent(new KT("event", null)); + if (e === "*") + return this._normalizeRunningEvent( + new xfe(this.address, this.interface) + ); + var t = this.interface.getEvent(e); + return this._normalizeRunningEvent( + new _fe(this.address, this.interface, t) + ); + } + if (e.topics && e.topics.length > 0) { + try { + var n = e.topics[0]; + if (typeof n != "string") throw new Error("invalid topic"); + var t = this.interface.getEvent(n); + return this._normalizeRunningEvent( + new _fe(this.address, this.interface, t, e.topics) + ); + } catch {} + var a = { address: this.address, topics: e.topics }; + return this._normalizeRunningEvent(new KT(Cfe(a), a)); + } + return this._normalizeRunningEvent( + new xfe(this.address, this.interface) + ); + }), + (r.prototype._checkRunningEvents = function (e) { + if (e.listenerCount() === 0) { + delete this._runningEvents[e.tag]; + var t = this._wrappedEmits[e.tag]; + t && + e.filter && + (this.provider.off(e.filter, t), + delete this._wrappedEmits[e.tag]); + } + }), + (r.prototype._wrapEvent = function (e, t, n) { + var a = this, + i = (0, Jt.deepCopy)(t); + return ( + (i.removeListener = function () { + !n || (e.removeListener(n), a._checkRunningEvents(e)); + }), + (i.getBlock = function () { + return a.provider.getBlock(t.blockHash); + }), + (i.getTransaction = function () { + return a.provider.getTransaction(t.transactionHash); + }), + (i.getTransactionReceipt = function () { + return a.provider.getTransactionReceipt(t.transactionHash); + }), + e.prepareEvent(i), + i + ); + }), + (r.prototype._addEventListener = function (e, t, n) { + var a = this; + if ( + (this.provider || + ei.throwError( + "events require a provider or a signer with a provider", + Js.Logger.errors.UNSUPPORTED_OPERATION, + { operation: "once" } + ), + e.addListener(t, n), + (this._runningEvents[e.tag] = e), + !this._wrappedEmits[e.tag]) + ) { + var i = function (s) { + var c = a._wrapEvent(e, s, t); + if (c.decodeError == null) + try { + var l = e.getEmit(c); + a.emit.apply(a, VTt([e.filter], l, !1)); + } catch (d) { + c.decodeError = d.error; + } + e.filter != null && a.emit("event", c), + c.decodeError != null && a.emit("error", c.decodeError, c); + }; + (this._wrappedEmits[e.tag] = i), + e.filter != null && this.provider.on(e.filter, i); + } + }), + (r.prototype.queryFilter = function (e, t, n) { + var a = this, + i = this._getRunningEvent(e), + s = (0, Jt.shallowCopy)(i.filter); + return ( + typeof t == "string" && (0, sg.isHexString)(t, 32) + ? (n != null && + ei.throwArgumentError( + "cannot specify toBlock with blockhash", + "toBlock", + n + ), + (s.blockHash = t)) + : ((s.fromBlock = t ?? 0), (s.toBlock = n ?? "latest")), + this.provider.getLogs(s).then(function (c) { + return c.map(function (l) { + return a._wrapEvent(i, l, null); + }); + }) + ); + }), + (r.prototype.on = function (e, t) { + return ( + this._addEventListener(this._getRunningEvent(e), t, !1), this + ); + }), + (r.prototype.once = function (e, t) { + return ( + this._addEventListener(this._getRunningEvent(e), t, !0), this + ); + }), + (r.prototype.emit = function (e) { + for (var t = [], n = 1; n < arguments.length; n++) + t[n - 1] = arguments[n]; + if (!this.provider) return !1; + var a = this._getRunningEvent(e), + i = a.run(t) > 0; + return this._checkRunningEvents(a), i; + }), + (r.prototype.listenerCount = function (e) { + var t = this; + return this.provider + ? e == null + ? Object.keys(this._runningEvents).reduce(function (n, a) { + return n + t._runningEvents[a].listenerCount(); + }, 0) + : this._getRunningEvent(e).listenerCount() + : 0; + }), + (r.prototype.listeners = function (e) { + if (!this.provider) return []; + if (e == null) { + var t = []; + for (var n in this._runningEvents) + this._runningEvents[n].listeners().forEach(function (a) { + t.push(a); + }); + return t; + } + return this._getRunningEvent(e).listeners(); + }), + (r.prototype.removeAllListeners = function (e) { + if (!this.provider) return this; + if (e == null) { + for (var t in this._runningEvents) { + var n = this._runningEvents[t]; + n.removeAllListeners(), this._checkRunningEvents(n); + } + return this; + } + var a = this._getRunningEvent(e); + return a.removeAllListeners(), this._checkRunningEvents(a), this; + }), + (r.prototype.off = function (e, t) { + if (!this.provider) return this; + var n = this._getRunningEvent(e); + return n.removeListener(t), this._checkRunningEvents(n), this; + }), + (r.prototype.removeListener = function (e, t) { + return this.off(e, t); + }), + r + ); + })(); + To.BaseContract = Ife; + var xW = (function (r) { + xA(e, r); + function e() { + return (r !== null && r.apply(this, arguments)) || this; + } + return e; + })(Ife); + To.Contract = xW; + var t5t = (function () { + function r(e, t, n) { + var a = this.constructor, + i = null; + typeof t == "string" + ? (i = t) + : (0, sg.isBytes)(t) + ? (i = (0, sg.hexlify)(t)) + : t && typeof t.object == "string" + ? (i = t.object) + : (i = "!"), + i.substring(0, 2) !== "0x" && (i = "0x" + i), + (!(0, sg.isHexString)(i) || i.length % 2) && + ei.throwArgumentError("invalid bytecode", "bytecode", t), + n && + !_W.Signer.isSigner(n) && + ei.throwArgumentError("invalid signer", "signer", n), + (0, Jt.defineReadOnly)(this, "bytecode", i), + (0, Jt.defineReadOnly)( + this, + "interface", + (0, Jt.getStatic)(a, "getInterface")(e) + ), + (0, Jt.defineReadOnly)(this, "signer", n || null); + } + return ( + (r.prototype.getDeployTransaction = function () { + for (var e = [], t = 0; t < arguments.length; t++) + e[t] = arguments[t]; + var n = {}; + if ( + e.length === this.interface.deploy.inputs.length + 1 && + typeof e[e.length - 1] == "object" + ) { + n = (0, Jt.shallowCopy)(e.pop()); + for (var a in n) + if (!JTt[a]) throw new Error("unknown transaction override " + a); + } + if ( + (["data", "from", "to"].forEach(function (s) { + n[s] != null && + ei.throwError( + "cannot override " + s, + Js.Logger.errors.UNSUPPORTED_OPERATION, + { operation: s } + ); + }), + n.value) + ) { + var i = Om.BigNumber.from(n.value); + !i.isZero() && + !this.interface.deploy.payable && + ei.throwError( + "non-payable constructor cannot override value", + Js.Logger.errors.UNSUPPORTED_OPERATION, + { operation: "overrides.value", value: n.value } + ); + } + return ( + ei.checkArgumentCount( + e.length, + this.interface.deploy.inputs.length, + " in Contract constructor" + ), + (n.data = (0, sg.hexlify)( + (0, sg.concat)([this.bytecode, this.interface.encodeDeploy(e)]) + )), + n + ); + }), + (r.prototype.deploy = function () { + for (var e = [], t = 0; t < arguments.length; t++) + e[t] = arguments[t]; + return Lm(this, void 0, void 0, function () { + var n, a, i, s, c, l; + return Dm(this, function (d) { + switch (d.label) { + case 0: + return ( + (n = {}), + e.length === this.interface.deploy.inputs.length + 1 && + (n = e.pop()), + ei.checkArgumentCount( + e.length, + this.interface.deploy.inputs.length, + " in Contract constructor" + ), + [4, zT(this.signer, e, this.interface.deploy.inputs)] + ); + case 1: + return ( + (a = d.sent()), + a.push(n), + (i = this.getDeployTransaction.apply(this, a)), + [4, this.signer.sendTransaction(i)] + ); + case 2: + return ( + (s = d.sent()), + (c = (0, Jt.getStatic)( + this.constructor, + "getContractAddress" + )(s)), + (l = (0, Jt.getStatic)(this.constructor, "getContract")( + c, + this.interface, + this.signer + )), + Tfe(l, s), + (0, Jt.defineReadOnly)(l, "deployTransaction", s), + [2, l] + ); + } + }); + }); + }), + (r.prototype.attach = function (e) { + return this.constructor.getContract(e, this.interface, this.signer); + }), + (r.prototype.connect = function (e) { + return new this.constructor(this.interface, this.bytecode, e); + }), + (r.fromSolidity = function (e, t) { + e == null && + ei.throwError( + "missing compiler output", + Js.Logger.errors.MISSING_ARGUMENT, + { argument: "compilerOutput" } + ), + typeof e == "string" && (e = JSON.parse(e)); + var n = e.abi, + a = null; + return ( + e.bytecode + ? (a = e.bytecode) + : e.evm && e.evm.bytecode && (a = e.evm.bytecode), + new this(n, a, t) + ); + }), + (r.getInterface = function (e) { + return xW.getInterface(e); + }), + (r.getContractAddress = function (e) { + return (0, jT.getContractAddress)(e); + }), + (r.getContract = function (e, t, n) { + return new xW(e, t, n); + }), + r + ); + })(); + To.ContractFactory = t5t; + }); + var CA = N((qm) => { + "use strict"; + _(); + x(); + Object.defineProperty(qm, "__esModule", { value: !0 }); + qm.Base58 = qm.Base32 = qm.BaseX = void 0; + var kfe = Dr(), + EA = ja(), + TW = (function () { + function r(e) { + (0, EA.defineReadOnly)(this, "alphabet", e), + (0, EA.defineReadOnly)(this, "base", e.length), + (0, EA.defineReadOnly)(this, "_alphabetMap", {}), + (0, EA.defineReadOnly)(this, "_leader", e.charAt(0)); + for (var t = 0; t < e.length; t++) this._alphabetMap[e.charAt(t)] = t; + } + return ( + (r.prototype.encode = function (e) { + var t = (0, kfe.arrayify)(e); + if (t.length === 0) return ""; + for (var n = [0], a = 0; a < t.length; ++a) { + for (var i = t[a], s = 0; s < n.length; ++s) + (i += n[s] << 8), + (n[s] = i % this.base), + (i = (i / this.base) | 0); + for (; i > 0; ) n.push(i % this.base), (i = (i / this.base) | 0); + } + for (var c = "", l = 0; t[l] === 0 && l < t.length - 1; ++l) + c += this._leader; + for (var d = n.length - 1; d >= 0; --d) c += this.alphabet[n[d]]; + return c; + }), + (r.prototype.decode = function (e) { + if (typeof e != "string") throw new TypeError("Expected String"); + var t = []; + if (e.length === 0) return new Uint8Array(t); + t.push(0); + for (var n = 0; n < e.length; n++) { + var a = this._alphabetMap[e[n]]; + if (a === void 0) + throw new Error("Non-base" + this.base + " character"); + for (var i = a, s = 0; s < t.length; ++s) + (i += t[s] * this.base), (t[s] = i & 255), (i >>= 8); + for (; i > 0; ) t.push(i & 255), (i >>= 8); + } + for (var c = 0; e[c] === this._leader && c < e.length - 1; ++c) + t.push(0); + return (0, kfe.arrayify)(new Uint8Array(t.reverse())); + }), + r + ); + })(); + qm.BaseX = TW; + var r5t = new TW("abcdefghijklmnopqrstuvwxyz234567"); + qm.Base32 = r5t; + var n5t = new TW( + "123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz" + ); + qm.Base58 = n5t; + }); + var EW = N((VT) => { + "use strict"; + _(); + x(); + Object.defineProperty(VT, "__esModule", { value: !0 }); + VT.SupportedAlgorithm = void 0; + var a5t; + (function (r) { + (r.sha256 = "sha256"), (r.sha512 = "sha512"); + })((a5t = VT.SupportedAlgorithm || (VT.SupportedAlgorithm = {}))); + }); + var Sfe = N((IA) => { + "use strict"; + _(); + x(); + Object.defineProperty(IA, "__esModule", { value: !0 }); + IA.version = void 0; + IA.version = "sha2/5.7.0"; + }); + var Pfe = N((Pl) => { + "use strict"; + _(); + x(); + var i5t = + (Pl && Pl.__importDefault) || + function (r) { + return r && r.__esModule ? r : { default: r }; + }; + Object.defineProperty(Pl, "__esModule", { value: !0 }); + Pl.computeHmac = Pl.sha512 = Pl.sha256 = Pl.ripemd160 = void 0; + var GT = i5t(qT()), + YT = Dr(), + s5t = EW(), + Mfe = ir(), + o5t = Sfe(), + c5t = new Mfe.Logger(o5t.version); + function u5t(r) { + return ( + "0x" + + GT.default + .ripemd160() + .update((0, YT.arrayify)(r)) + .digest("hex") + ); + } + Pl.ripemd160 = u5t; + function l5t(r) { + return ( + "0x" + + GT.default + .sha256() + .update((0, YT.arrayify)(r)) + .digest("hex") + ); + } + Pl.sha256 = l5t; + function d5t(r) { + return ( + "0x" + + GT.default + .sha512() + .update((0, YT.arrayify)(r)) + .digest("hex") + ); + } + Pl.sha512 = d5t; + function p5t(r, e, t) { + return ( + s5t.SupportedAlgorithm[r] || + c5t.throwError( + "unsupported algorithm " + r, + Mfe.Logger.errors.UNSUPPORTED_OPERATION, + { operation: "hmac", algorithm: r } + ), + "0x" + + GT.default + .hmac(GT.default[r], (0, YT.arrayify)(e)) + .update((0, YT.arrayify)(t)) + .digest("hex") + ); + } + Pl.computeHmac = p5t; + }); + var og = N((Rl) => { + "use strict"; + _(); + x(); + Object.defineProperty(Rl, "__esModule", { value: !0 }); + Rl.SupportedAlgorithm = + Rl.sha512 = + Rl.sha256 = + Rl.ripemd160 = + Rl.computeHmac = + void 0; + var AA = Pfe(); + Object.defineProperty(Rl, "computeHmac", { + enumerable: !0, + get: function () { + return AA.computeHmac; + }, + }); + Object.defineProperty(Rl, "ripemd160", { + enumerable: !0, + get: function () { + return AA.ripemd160; + }, + }); + Object.defineProperty(Rl, "sha256", { + enumerable: !0, + get: function () { + return AA.sha256; + }, + }); + Object.defineProperty(Rl, "sha512", { + enumerable: !0, + get: function () { + return AA.sha512; + }, + }); + var h5t = EW(); + Object.defineProperty(Rl, "SupportedAlgorithm", { + enumerable: !0, + get: function () { + return h5t.SupportedAlgorithm; + }, + }); + }); + var Bfe = N((kA) => { + "use strict"; + _(); + x(); + Object.defineProperty(kA, "__esModule", { value: !0 }); + kA.pbkdf2 = void 0; + var mv = Dr(), + Rfe = og(); + function f5t(r, e, t, n, a) { + (r = (0, mv.arrayify)(r)), (e = (0, mv.arrayify)(e)); + var i, + s = 1, + c = new Uint8Array(n), + l = new Uint8Array(e.length + 4); + l.set(e); + for (var d, m, w = 1; w <= s; w++) { + (l[e.length] = (w >> 24) & 255), + (l[e.length + 1] = (w >> 16) & 255), + (l[e.length + 2] = (w >> 8) & 255), + (l[e.length + 3] = w & 255); + var C = (0, mv.arrayify)((0, Rfe.computeHmac)(a, r, l)); + i || + ((i = C.length), + (m = new Uint8Array(i)), + (s = Math.ceil(n / i)), + (d = n - (s - 1) * i)), + m.set(C); + for (var I = 1; I < t; I++) { + C = (0, mv.arrayify)((0, Rfe.computeHmac)(a, r, C)); + for (var k = 0; k < i; k++) m[k] ^= C[k]; + } + var O = (w - 1) * i, + D = w === s ? d : i; + c.set((0, mv.arrayify)(m).slice(0, D), O); + } + return (0, mv.hexlify)(c); + } + kA.pbkdf2 = f5t; + }); + var MA = N((SA) => { + "use strict"; + _(); + x(); + Object.defineProperty(SA, "__esModule", { value: !0 }); + SA.pbkdf2 = void 0; + var m5t = Bfe(); + Object.defineProperty(SA, "pbkdf2", { + enumerable: !0, + get: function () { + return m5t.pbkdf2; + }, + }); + }); + var Nfe = N((PA) => { + "use strict"; + _(); + x(); + Object.defineProperty(PA, "__esModule", { value: !0 }); + PA.version = void 0; + PA.version = "wordlists/5.7.0"; + }); + var jp = N((cg) => { + "use strict"; + _(); + x(); + Object.defineProperty(cg, "__esModule", { value: !0 }); + cg.Wordlist = cg.logger = void 0; + var y5t = !1, + g5t = Ey(), + Ofe = ja(), + b5t = ir(), + v5t = Nfe(); + cg.logger = new b5t.Logger(v5t.version); + var w5t = (function () { + function r(e) { + var t = this.constructor; + cg.logger.checkAbstract(t, r), + (0, Ofe.defineReadOnly)(this, "locale", e); + } + return ( + (r.prototype.split = function (e) { + return e.toLowerCase().split(/ +/g); + }), + (r.prototype.join = function (e) { + return e.join(" "); + }), + (r.check = function (e) { + for (var t = [], n = 0; n < 2048; n++) { + var a = e.getWord(n); + if (n !== e.getWordIndex(a)) return "0x"; + t.push(a); + } + return (0, g5t.id)( + t.join(` +`) + + ` +` + ); + }), + (r.register = function (e, t) { + if ((t || (t = e.locale), y5t)) + try { + var n = window; + n._ethers && + n._ethers.wordlists && + (n._ethers.wordlists[t] || + (0, Ofe.defineReadOnly)(n._ethers.wordlists, t, e)); + } catch {} + }), + r + ); + })(); + cg.Wordlist = w5t; + }); + var qfe = N((yv) => { + "use strict"; + _(); + x(); + var _5t = + (yv && yv.__extends) || + (function () { + var r = function (e, t) { + return ( + (r = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (n, a) { + n.__proto__ = a; + }) || + function (n, a) { + for (var i in a) + Object.prototype.hasOwnProperty.call(a, i) && (n[i] = a[i]); + }), + r(e, t) + ); + }; + return function (e, t) { + if (typeof t != "function" && t !== null) + throw new TypeError( + "Class extends value " + + String(t) + + " is not a constructor or null" + ); + r(e, t); + function n() { + this.constructor = e; + } + e.prototype = + t === null + ? Object.create(t) + : ((n.prototype = t.prototype), new n()); + }; + })(); + Object.defineProperty(yv, "__esModule", { value: !0 }); + yv.langCz = void 0; + var CW = jp(), + x5t = + "AbdikaceAbecedaAdresaAgreseAkceAktovkaAlejAlkoholAmputaceAnanasAndulkaAnekdotaAnketaAntikaAnulovatArchaAroganceAsfaltAsistentAspiraceAstmaAstronomAtlasAtletikaAtolAutobusAzylBabkaBachorBacilBaculkaBadatelBagetaBagrBahnoBakterieBaladaBaletkaBalkonBalonekBalvanBalzaBambusBankomatBarbarBaretBarmanBarokoBarvaBaterkaBatohBavlnaBazalkaBazilikaBazukaBednaBeranBesedaBestieBetonBezinkaBezmocBeztakBicyklBidloBiftekBikinyBilanceBiografBiologBitvaBizonBlahobytBlatouchBlechaBleduleBleskBlikatBliznaBlokovatBlouditBludBobekBobrBodlinaBodnoutBohatostBojkotBojovatBokorysBolestBorecBoroviceBotaBoubelBouchatBoudaBouleBouratBoxerBradavkaBramboraBrankaBratrBreptaBriketaBrkoBrlohBronzBroskevBrunetkaBrusinkaBrzdaBrzyBublinaBubnovatBuchtaBuditelBudkaBudovaBufetBujarostBukviceBuldokBulvaBundaBunkrBurzaButikBuvolBuzolaBydletBylinaBytovkaBzukotCapartCarevnaCedrCeduleCejchCejnCelaCelerCelkemCelniceCeninaCennostCenovkaCentrumCenzorCestopisCetkaChalupaChapadloCharitaChataChechtatChemieChichotChirurgChladChlebaChlubitChmelChmuraChobotChocholChodbaCholeraChomoutChopitChorobaChovChrapotChrlitChrtChrupChtivostChudinaChutnatChvatChvilkaChvostChybaChystatChytitCibuleCigaretaCihelnaCihlaCinkotCirkusCisternaCitaceCitrusCizinecCizostClonaCokolivCouvatCtitelCtnostCudnostCuketaCukrCupotCvaknoutCvalCvikCvrkotCyklistaDalekoDarebaDatelDatumDceraDebataDechovkaDecibelDeficitDeflaceDeklDekretDemokratDepreseDerbyDeskaDetektivDikobrazDiktovatDiodaDiplomDiskDisplejDivadloDivochDlahaDlouhoDluhopisDnesDobroDobytekDocentDochutitDodnesDohledDohodaDohraDojemDojniceDokladDokolaDoktorDokumentDolarDolevaDolinaDomaDominantDomluvitDomovDonutitDopadDopisDoplnitDoposudDoprovodDopustitDorazitDorostDortDosahDoslovDostatekDosudDosytaDotazDotekDotknoutDoufatDoutnatDovozceDozaduDoznatDozorceDrahotaDrakDramatikDravecDrazeDrdolDrobnostDrogerieDrozdDrsnostDrtitDrzostDubenDuchovnoDudekDuhaDuhovkaDusitDusnoDutostDvojiceDvorecDynamitEkologEkonomieElektronElipsaEmailEmiseEmoceEmpatieEpizodaEpochaEpopejEposEsejEsenceEskortaEskymoEtiketaEuforieEvoluceExekuceExkurzeExpediceExplozeExportExtraktFackaFajfkaFakultaFanatikFantazieFarmacieFavoritFazoleFederaceFejetonFenkaFialkaFigurantFilozofFiltrFinanceFintaFixaceFjordFlanelFlirtFlotilaFondFosforFotbalFotkaFotonFrakceFreskaFrontaFukarFunkceFyzikaGalejeGarantGenetikaGeologGilotinaGlazuraGlejtGolemGolfistaGotikaGrafGramofonGranuleGrepGrilGrogGroteskaGumaHadiceHadrHalaHalenkaHanbaHanopisHarfaHarpunaHavranHebkostHejkalHejnoHejtmanHektarHelmaHematomHerecHernaHesloHezkyHistorikHladovkaHlasivkyHlavaHledatHlenHlodavecHlohHloupostHltatHlubinaHluchotaHmatHmotaHmyzHnisHnojivoHnoutHoblinaHobojHochHodinyHodlatHodnotaHodovatHojnostHokejHolinkaHolkaHolubHomoleHonitbaHonoraceHoralHordaHorizontHorkoHorlivecHormonHorninaHoroskopHorstvoHospodaHostinaHotovostHoubaHoufHoupatHouskaHovorHradbaHraniceHravostHrazdaHrbolekHrdinaHrdloHrdostHrnekHrobkaHromadaHrotHroudaHrozenHrstkaHrubostHryzatHubenostHubnoutHudbaHukotHumrHusitaHustotaHvozdHybnostHydrantHygienaHymnaHysterikIdylkaIhnedIkonaIluzeImunitaInfekceInflaceInkasoInovaceInspekceInternetInvalidaInvestorInzerceIronieJablkoJachtaJahodaJakmileJakostJalovecJantarJarmarkJaroJasanJasnoJatkaJavorJazykJedinecJedleJednatelJehlanJekotJelenJelitoJemnostJenomJepiceJeseterJevitJezdecJezeroJinakJindyJinochJiskraJistotaJitrniceJizvaJmenovatJogurtJurtaKabaretKabelKabinetKachnaKadetKadidloKahanKajakKajutaKakaoKaktusKalamitaKalhotyKalibrKalnostKameraKamkolivKamnaKanibalKanoeKantorKapalinaKapelaKapitolaKapkaKapleKapotaKaprKapustaKapybaraKaramelKarotkaKartonKasaKatalogKatedraKauceKauzaKavalecKazajkaKazetaKazivostKdekolivKdesiKedlubenKempKeramikaKinoKlacekKladivoKlamKlapotKlasikaKlaunKlecKlenbaKlepatKlesnoutKlidKlimaKlisnaKloboukKlokanKlopaKloubKlubovnaKlusatKluzkostKmenKmitatKmotrKnihaKnotKoaliceKoberecKobkaKoblihaKobylaKocourKohoutKojenecKokosKoktejlKolapsKoledaKolizeKoloKomandoKometaKomikKomnataKomoraKompasKomunitaKonatKonceptKondiceKonecKonfeseKongresKoninaKonkursKontaktKonzervaKopanecKopieKopnoutKoprovkaKorbelKorektorKormidloKoroptevKorpusKorunaKorytoKorzetKosatecKostkaKotelKotletaKotoulKoukatKoupelnaKousekKouzloKovbojKozaKozorohKrabiceKrachKrajinaKralovatKrasopisKravataKreditKrejcarKresbaKrevetaKriketKritikKrizeKrkavecKrmelecKrmivoKrocanKrokKronikaKropitKroupaKrovkaKrtekKruhadloKrupiceKrutostKrvinkaKrychleKryptaKrystalKrytKudlankaKufrKujnostKuklaKulajdaKulichKulkaKulometKulturaKunaKupodivuKurtKurzorKutilKvalitaKvasinkaKvestorKynologKyselinaKytaraKyticeKytkaKytovecKyvadloLabradorLachtanLadnostLaikLakomecLamelaLampaLanovkaLasiceLasoLasturaLatinkaLavinaLebkaLeckdyLedenLedniceLedovkaLedvinaLegendaLegieLegraceLehceLehkostLehnoutLektvarLenochodLentilkaLepenkaLepidloLetadloLetecLetmoLetokruhLevhartLevitaceLevobokLibraLichotkaLidojedLidskostLihovinaLijavecLilekLimetkaLinieLinkaLinoleumListopadLitinaLitovatLobistaLodivodLogikaLogopedLokalitaLoketLomcovatLopataLopuchLordLososLotrLoudalLouhLoukaLouskatLovecLstivostLucernaLuciferLumpLuskLustraceLviceLyraLyrikaLysinaMadamMadloMagistrMahagonMajetekMajitelMajoritaMakakMakoviceMakrelaMalbaMalinaMalovatMalviceMaminkaMandleMankoMarnostMasakrMaskotMasopustMaticeMatrikaMaturitaMazanecMazivoMazlitMazurkaMdlobaMechanikMeditaceMedovinaMelasaMelounMentolkaMetlaMetodaMetrMezeraMigraceMihnoutMihuleMikinaMikrofonMilenecMilimetrMilostMimikaMincovnaMinibarMinometMinulostMiskaMistrMixovatMladostMlhaMlhovinaMlokMlsatMluvitMnichMnohemMobilMocnostModelkaModlitbaMohylaMokroMolekulaMomentkaMonarchaMonoklMonstrumMontovatMonzunMosazMoskytMostMotivaceMotorkaMotykaMouchaMoudrostMozaikaMozekMozolMramorMravenecMrkevMrtvolaMrzetMrzutostMstitelMudrcMuflonMulatMumieMuniceMusetMutaceMuzeumMuzikantMyslivecMzdaNabouratNachytatNadaceNadbytekNadhozNadobroNadpisNahlasNahnatNahodileNahraditNaivitaNajednouNajistoNajmoutNaklonitNakonecNakrmitNalevoNamazatNamluvitNanometrNaokoNaopakNaostroNapadatNapevnoNaplnitNapnoutNaposledNaprostoNaroditNarubyNarychloNasaditNasekatNaslepoNastatNatolikNavenekNavrchNavzdoryNazvatNebeNechatNeckyNedalekoNedbatNeduhNegaceNehetNehodaNejenNejprveNeklidNelibostNemilostNemocNeochotaNeonkaNepokojNerostNervNesmyslNesouladNetvorNeuronNevinaNezvykleNicotaNijakNikamNikdyNiklNikterakNitroNoclehNohaviceNominaceNoraNorekNositelNosnostNouzeNovinyNovotaNozdraNudaNudleNugetNutitNutnostNutrieNymfaObalObarvitObavaObdivObecObehnatObejmoutObezitaObhajobaObilniceObjasnitObjektObklopitOblastOblekOblibaOblohaObludaObnosObohatitObojekOboutObrazecObrnaObrubaObrysObsahObsluhaObstaratObuvObvazObvinitObvodObvykleObyvatelObzorOcasOcelOcenitOchladitOchotaOchranaOcitnoutOdbojOdbytOdchodOdcizitOdebratOdeslatOdevzdatOdezvaOdhadceOdhoditOdjetOdjinudOdkazOdkoupitOdlivOdlukaOdmlkaOdolnostOdpadOdpisOdploutOdporOdpustitOdpykatOdrazkaOdsouditOdstupOdsunOdtokOdtudOdvahaOdvetaOdvolatOdvracetOdznakOfinaOfsajdOhlasOhniskoOhradaOhrozitOhryzekOkapOkeniceOklikaOknoOkouzlitOkovyOkrasaOkresOkrsekOkruhOkupantOkurkaOkusitOlejninaOlizovatOmakOmeletaOmezitOmladinaOmlouvatOmluvaOmylOnehdyOpakovatOpasekOperaceOpiceOpilostOpisovatOporaOpoziceOpravduOprotiOrbitalOrchestrOrgieOrliceOrlojOrtelOsadaOschnoutOsikaOsivoOslavaOslepitOslnitOslovitOsnovaOsobaOsolitOspalecOstenOstrahaOstudaOstychOsvojitOteplitOtiskOtopOtrhatOtrlostOtrokOtrubyOtvorOvanoutOvarOvesOvlivnitOvoceOxidOzdobaPachatelPacientPadouchPahorekPaktPalandaPalecPalivoPalubaPamfletPamlsekPanenkaPanikaPannaPanovatPanstvoPantoflePaprikaParketaParodiePartaParukaParybaPasekaPasivitaPastelkaPatentPatronaPavoukPaznehtPazourekPeckaPedagogPejsekPekloPelotonPenaltaPendrekPenzePeriskopPeroPestrostPetardaPeticePetrolejPevninaPexesoPianistaPihaPijavicePiklePiknikPilinaPilnostPilulkaPinzetaPipetaPisatelPistolePitevnaPivnicePivovarPlacentaPlakatPlamenPlanetaPlastikaPlatitPlavidloPlazPlechPlemenoPlentaPlesPletivoPlevelPlivatPlnitPlnoPlochaPlodinaPlombaPloutPlukPlynPobavitPobytPochodPocitPoctivecPodatPodcenitPodepsatPodhledPodivitPodkladPodmanitPodnikPodobaPodporaPodrazPodstataPodvodPodzimPoeziePohankaPohnutkaPohovorPohromaPohybPointaPojistkaPojmoutPokazitPoklesPokojPokrokPokutaPokynPolednePolibekPolknoutPolohaPolynomPomaluPominoutPomlkaPomocPomstaPomysletPonechatPonorkaPonurostPopadatPopelPopisekPoplachPoprositPopsatPopudPoradcePorcePorodPoruchaPoryvPosaditPosedPosilaPoskokPoslanecPosouditPospoluPostavaPosudekPosypPotahPotkanPotleskPotomekPotravaPotupaPotvoraPoukazPoutoPouzdroPovahaPovidlaPovlakPovozPovrchPovstatPovykPovzdechPozdravPozemekPoznatekPozorPozvatPracovatPrahoryPraktikaPralesPraotecPraporekPrasePravdaPrincipPrknoProbuditProcentoProdejProfeseProhraProjektProlomitPromilePronikatPropadProrokProsbaProtonProutekProvazPrskavkaPrstenPrudkostPrutPrvekPrvohoryPsanecPsovodPstruhPtactvoPubertaPuchPudlPukavecPuklinaPukrlePultPumpaPuncPupenPusaPusinkaPustinaPutovatPutykaPyramidaPyskPytelRacekRachotRadiaceRadniceRadonRaftRagbyRaketaRakovinaRamenoRampouchRandeRarachRaritaRasovnaRastrRatolestRazanceRazidloReagovatReakceReceptRedaktorReferentReflexRejnokReklamaRekordRekrutRektorReputaceRevizeRevmaRevolverRezervaRiskovatRizikoRobotikaRodokmenRohovkaRokleRokokoRomanetoRopovodRopuchaRorejsRosolRostlinaRotmistrRotopedRotundaRoubenkaRouchoRoupRouraRovinaRovniceRozborRozchodRozdatRozeznatRozhodceRozinkaRozjezdRozkazRozlohaRozmarRozpadRozruchRozsahRoztokRozumRozvodRubrikaRuchadloRukaviceRukopisRybaRybolovRychlostRydloRypadloRytinaRyzostSadistaSahatSakoSamecSamizdatSamotaSanitkaSardinkaSasankaSatelitSazbaSazeniceSborSchovatSebrankaSeceseSedadloSedimentSedloSehnatSejmoutSekeraSektaSekundaSekvojeSemenoSenoServisSesaditSeshoraSeskokSeslatSestraSesuvSesypatSetbaSetinaSetkatSetnoutSetrvatSeverSeznamShodaShrnoutSifonSilniceSirkaSirotekSirupSituaceSkafandrSkaliskoSkanzenSkautSkeptikSkicaSkladbaSkleniceSkloSkluzSkobaSkokanSkoroSkriptaSkrzSkupinaSkvostSkvrnaSlabikaSladidloSlaninaSlastSlavnostSledovatSlepecSlevaSlezinaSlibSlinaSlizniceSlonSloupekSlovoSluchSluhaSlunceSlupkaSlzaSmaragdSmetanaSmilstvoSmlouvaSmogSmradSmrkSmrtkaSmutekSmyslSnadSnahaSnobSobotaSochaSodovkaSokolSopkaSotvaSoubojSoucitSoudceSouhlasSouladSoumrakSoupravaSousedSoutokSouvisetSpalovnaSpasitelSpisSplavSpodekSpojenecSpoluSponzorSpornostSpoustaSprchaSpustitSrandaSrazSrdceSrnaSrnecSrovnatSrpenSrstSrubStaniceStarostaStatikaStavbaStehnoStezkaStodolaStolekStopaStornoStoupatStrachStresStrhnoutStromStrunaStudnaStupniceStvolStykSubjektSubtropySucharSudostSuknoSundatSunoutSurikataSurovinaSvahSvalstvoSvetrSvatbaSvazekSvisleSvitekSvobodaSvodidloSvorkaSvrabSykavkaSykotSynekSynovecSypatSypkostSyrovostSyselSytostTabletkaTabuleTahounTajemnoTajfunTajgaTajitTajnostTaktikaTamhleTamponTancovatTanecTankerTapetaTaveninaTazatelTechnikaTehdyTekutinaTelefonTemnotaTendenceTenistaTenorTeplotaTepnaTeprveTerapieTermoskaTextilTichoTiskopisTitulekTkadlecTkaninaTlapkaTleskatTlukotTlupaTmelToaletaTopinkaTopolTorzoTouhaToulecTradiceTraktorTrampTrasaTraverzaTrefitTrestTrezorTrhavinaTrhlinaTrochuTrojiceTroskaTroubaTrpceTrpitelTrpkostTrubecTruchlitTruhliceTrusTrvatTudyTuhnoutTuhostTundraTuristaTurnajTuzemskoTvarohTvorbaTvrdostTvrzTygrTykevUbohostUbozeUbratUbrousekUbrusUbytovnaUchoUctivostUdivitUhraditUjednatUjistitUjmoutUkazatelUklidnitUklonitUkotvitUkrojitUliceUlitaUlovitUmyvadloUnavitUniformaUniknoutUpadnoutUplatnitUplynoutUpoutatUpravitUranUrazitUsednoutUsilovatUsmrtitUsnadnitUsnoutUsouditUstlatUstrnoutUtahovatUtkatUtlumitUtonoutUtopenecUtrousitUvalitUvolnitUvozovkaUzdravitUzelUzeninaUzlinaUznatVagonValchaValounVanaVandalVanilkaVaranVarhanyVarovatVcelkuVchodVdovaVedroVegetaceVejceVelbloudVeletrhVelitelVelmocVelrybaVenkovVerandaVerzeVeselkaVeskrzeVesniceVespoduVestaVeterinaVeverkaVibraceVichrVideohraVidinaVidleVilaViniceVisetVitalitaVizeVizitkaVjezdVkladVkusVlajkaVlakVlasecVlevoVlhkostVlivVlnovkaVloupatVnucovatVnukVodaVodivostVodoznakVodstvoVojenskyVojnaVojskoVolantVolbaVolitVolnoVoskovkaVozidloVozovnaVpravoVrabecVracetVrahVrataVrbaVrcholekVrhatVrstvaVrtuleVsaditVstoupitVstupVtipVybavitVybratVychovatVydatVydraVyfotitVyhledatVyhnoutVyhoditVyhraditVyhubitVyjasnitVyjetVyjmoutVyklopitVykonatVylekatVymazatVymezitVymizetVymysletVynechatVynikatVynutitVypadatVyplatitVypravitVypustitVyrazitVyrovnatVyrvatVyslovitVysokoVystavitVysunoutVysypatVytasitVytesatVytratitVyvinoutVyvolatVyvrhelVyzdobitVyznatVzaduVzbuditVzchopitVzdorVzduchVzdychatVzestupVzhledemVzkazVzlykatVznikVzorekVzpouraVztahVztekXylofonZabratZabydletZachovatZadarmoZadusitZafoukatZahltitZahoditZahradaZahynoutZajatecZajetZajistitZaklepatZakoupitZalepitZamezitZamotatZamysletZanechatZanikatZaplatitZapojitZapsatZarazitZastavitZasunoutZatajitZatemnitZatknoutZaujmoutZavalitZaveletZavinitZavolatZavrtatZazvonitZbavitZbrusuZbudovatZbytekZdalekaZdarmaZdatnostZdivoZdobitZdrojZdvihZdymadloZeleninaZemanZeminaZeptatZezaduZezdolaZhatitZhltnoutZhlubokaZhotovitZhrubaZimaZimniceZjemnitZklamatZkoumatZkratkaZkumavkaZlatoZlehkaZlobaZlomZlostZlozvykZmapovatZmarZmatekZmijeZmizetZmocnitZmodratZmrzlinaZmutovatZnakZnalostZnamenatZnovuZobrazitZotavitZoubekZoufaleZploditZpomalitZpravaZprostitZprudkaZprvuZradaZranitZrcadloZrnitostZrnoZrovnaZrychlitZrzavostZtichaZtratitZubovinaZubrZvednoutZvenkuZveselaZvonZvratZvukovodZvyk", + $T = null; + function Lfe(r) { + if ( + $T == null && + (($T = x5t + .replace(/([A-Z])/g, " $1") + .toLowerCase() + .substring(1) + .split(" ")), + CW.Wordlist.check(r) !== + "0x25f44555f4af25b51a711136e1c7d6e50ce9f8917d39d6b1f076b2bb4d2fac1a") + ) + throw ( + (($T = null), new Error("BIP39 Wordlist for en (English) FAILED")) + ); + } + var T5t = (function (r) { + _5t(e, r); + function e() { + return r.call(this, "cz") || this; + } + return ( + (e.prototype.getWord = function (t) { + return Lfe(this), $T[t]; + }), + (e.prototype.getWordIndex = function (t) { + return Lfe(this), $T.indexOf(t); + }), + e + ); + })(CW.Wordlist), + Dfe = new T5t(); + yv.langCz = Dfe; + CW.Wordlist.register(Dfe); + }); + var Ufe = N((gv) => { + "use strict"; + _(); + x(); + var E5t = + (gv && gv.__extends) || + (function () { + var r = function (e, t) { + return ( + (r = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (n, a) { + n.__proto__ = a; + }) || + function (n, a) { + for (var i in a) + Object.prototype.hasOwnProperty.call(a, i) && (n[i] = a[i]); + }), + r(e, t) + ); + }; + return function (e, t) { + if (typeof t != "function" && t !== null) + throw new TypeError( + "Class extends value " + + String(t) + + " is not a constructor or null" + ); + r(e, t); + function n() { + this.constructor = e; + } + e.prototype = + t === null + ? Object.create(t) + : ((n.prototype = t.prototype), new n()); + }; + })(); + Object.defineProperty(gv, "__esModule", { value: !0 }); + gv.langEn = void 0; + var IW = jp(), + C5t = + "AbandonAbilityAbleAboutAboveAbsentAbsorbAbstractAbsurdAbuseAccessAccidentAccountAccuseAchieveAcidAcousticAcquireAcrossActActionActorActressActualAdaptAddAddictAddressAdjustAdmitAdultAdvanceAdviceAerobicAffairAffordAfraidAgainAgeAgentAgreeAheadAimAirAirportAisleAlarmAlbumAlcoholAlertAlienAllAlleyAllowAlmostAloneAlphaAlreadyAlsoAlterAlwaysAmateurAmazingAmongAmountAmusedAnalystAnchorAncientAngerAngleAngryAnimalAnkleAnnounceAnnualAnotherAnswerAntennaAntiqueAnxietyAnyApartApologyAppearAppleApproveAprilArchArcticAreaArenaArgueArmArmedArmorArmyAroundArrangeArrestArriveArrowArtArtefactArtistArtworkAskAspectAssaultAssetAssistAssumeAsthmaAthleteAtomAttackAttendAttitudeAttractAuctionAuditAugustAuntAuthorAutoAutumnAverageAvocadoAvoidAwakeAwareAwayAwesomeAwfulAwkwardAxisBabyBachelorBaconBadgeBagBalanceBalconyBallBambooBananaBannerBarBarelyBargainBarrelBaseBasicBasketBattleBeachBeanBeautyBecauseBecomeBeefBeforeBeginBehaveBehindBelieveBelowBeltBenchBenefitBestBetrayBetterBetweenBeyondBicycleBidBikeBindBiologyBirdBirthBitterBlackBladeBlameBlanketBlastBleakBlessBlindBloodBlossomBlouseBlueBlurBlushBoardBoatBodyBoilBombBoneBonusBookBoostBorderBoringBorrowBossBottomBounceBoxBoyBracketBrainBrandBrassBraveBreadBreezeBrickBridgeBriefBrightBringBriskBroccoliBrokenBronzeBroomBrotherBrownBrushBubbleBuddyBudgetBuffaloBuildBulbBulkBulletBundleBunkerBurdenBurgerBurstBusBusinessBusyButterBuyerBuzzCabbageCabinCableCactusCageCakeCallCalmCameraCampCanCanalCancelCandyCannonCanoeCanvasCanyonCapableCapitalCaptainCarCarbonCardCargoCarpetCarryCartCaseCashCasinoCastleCasualCatCatalogCatchCategoryCattleCaughtCauseCautionCaveCeilingCeleryCementCensusCenturyCerealCertainChairChalkChampionChangeChaosChapterChargeChaseChatCheapCheckCheeseChefCherryChestChickenChiefChildChimneyChoiceChooseChronicChuckleChunkChurnCigarCinnamonCircleCitizenCityCivilClaimClapClarifyClawClayCleanClerkCleverClickClientCliffClimbClinicClipClockClogCloseClothCloudClownClubClumpClusterClutchCoachCoastCoconutCodeCoffeeCoilCoinCollectColorColumnCombineComeComfortComicCommonCompanyConcertConductConfirmCongressConnectConsiderControlConvinceCookCoolCopperCopyCoralCoreCornCorrectCostCottonCouchCountryCoupleCourseCousinCoverCoyoteCrackCradleCraftCramCraneCrashCraterCrawlCrazyCreamCreditCreekCrewCricketCrimeCrispCriticCropCrossCrouchCrowdCrucialCruelCruiseCrumbleCrunchCrushCryCrystalCubeCultureCupCupboardCuriousCurrentCurtainCurveCushionCustomCuteCycleDadDamageDampDanceDangerDaringDashDaughterDawnDayDealDebateDebrisDecadeDecemberDecideDeclineDecorateDecreaseDeerDefenseDefineDefyDegreeDelayDeliverDemandDemiseDenialDentistDenyDepartDependDepositDepthDeputyDeriveDescribeDesertDesignDeskDespairDestroyDetailDetectDevelopDeviceDevoteDiagramDialDiamondDiaryDiceDieselDietDifferDigitalDignityDilemmaDinnerDinosaurDirectDirtDisagreeDiscoverDiseaseDishDismissDisorderDisplayDistanceDivertDivideDivorceDizzyDoctorDocumentDogDollDolphinDomainDonateDonkeyDonorDoorDoseDoubleDoveDraftDragonDramaDrasticDrawDreamDressDriftDrillDrinkDripDriveDropDrumDryDuckDumbDuneDuringDustDutchDutyDwarfDynamicEagerEagleEarlyEarnEarthEasilyEastEasyEchoEcologyEconomyEdgeEditEducateEffortEggEightEitherElbowElderElectricElegantElementElephantElevatorEliteElseEmbarkEmbodyEmbraceEmergeEmotionEmployEmpowerEmptyEnableEnactEndEndlessEndorseEnemyEnergyEnforceEngageEngineEnhanceEnjoyEnlistEnoughEnrichEnrollEnsureEnterEntireEntryEnvelopeEpisodeEqualEquipEraEraseErodeErosionErrorEruptEscapeEssayEssenceEstateEternalEthicsEvidenceEvilEvokeEvolveExactExampleExcessExchangeExciteExcludeExcuseExecuteExerciseExhaustExhibitExileExistExitExoticExpandExpectExpireExplainExposeExpressExtendExtraEyeEyebrowFabricFaceFacultyFadeFaintFaithFallFalseFameFamilyFamousFanFancyFantasyFarmFashionFatFatalFatherFatigueFaultFavoriteFeatureFebruaryFederalFeeFeedFeelFemaleFenceFestivalFetchFeverFewFiberFictionFieldFigureFileFilmFilterFinalFindFineFingerFinishFireFirmFirstFiscalFishFitFitnessFixFlagFlameFlashFlatFlavorFleeFlightFlipFloatFlockFloorFlowerFluidFlushFlyFoamFocusFogFoilFoldFollowFoodFootForceForestForgetForkFortuneForumForwardFossilFosterFoundFoxFragileFrameFrequentFreshFriendFringeFrogFrontFrostFrownFrozenFruitFuelFunFunnyFurnaceFuryFutureGadgetGainGalaxyGalleryGameGapGarageGarbageGardenGarlicGarmentGasGaspGateGatherGaugeGazeGeneralGeniusGenreGentleGenuineGestureGhostGiantGiftGiggleGingerGiraffeGirlGiveGladGlanceGlareGlassGlideGlimpseGlobeGloomGloryGloveGlowGlueGoatGoddessGoldGoodGooseGorillaGospelGossipGovernGownGrabGraceGrainGrantGrapeGrassGravityGreatGreenGridGriefGritGroceryGroupGrowGruntGuardGuessGuideGuiltGuitarGunGymHabitHairHalfHammerHamsterHandHappyHarborHardHarshHarvestHatHaveHawkHazardHeadHealthHeartHeavyHedgehogHeightHelloHelmetHelpHenHeroHiddenHighHillHintHipHireHistoryHobbyHockeyHoldHoleHolidayHollowHomeHoneyHoodHopeHornHorrorHorseHospitalHostHotelHourHoverHubHugeHumanHumbleHumorHundredHungryHuntHurdleHurryHurtHusbandHybridIceIconIdeaIdentifyIdleIgnoreIllIllegalIllnessImageImitateImmenseImmuneImpactImposeImproveImpulseInchIncludeIncomeIncreaseIndexIndicateIndoorIndustryInfantInflictInformInhaleInheritInitialInjectInjuryInmateInnerInnocentInputInquiryInsaneInsectInsideInspireInstallIntactInterestIntoInvestInviteInvolveIronIslandIsolateIssueItemIvoryJacketJaguarJarJazzJealousJeansJellyJewelJobJoinJokeJourneyJoyJudgeJuiceJumpJungleJuniorJunkJustKangarooKeenKeepKetchupKeyKickKidKidneyKindKingdomKissKitKitchenKiteKittenKiwiKneeKnifeKnockKnowLabLabelLaborLadderLadyLakeLampLanguageLaptopLargeLaterLatinLaughLaundryLavaLawLawnLawsuitLayerLazyLeaderLeafLearnLeaveLectureLeftLegLegalLegendLeisureLemonLendLengthLensLeopardLessonLetterLevelLiarLibertyLibraryLicenseLifeLiftLightLikeLimbLimitLinkLionLiquidListLittleLiveLizardLoadLoanLobsterLocalLockLogicLonelyLongLoopLotteryLoudLoungeLoveLoyalLuckyLuggageLumberLunarLunchLuxuryLyricsMachineMadMagicMagnetMaidMailMainMajorMakeMammalManManageMandateMangoMansionManualMapleMarbleMarchMarginMarineMarketMarriageMaskMassMasterMatchMaterialMathMatrixMatterMaximumMazeMeadowMeanMeasureMeatMechanicMedalMediaMelodyMeltMemberMemoryMentionMenuMercyMergeMeritMerryMeshMessageMetalMethodMiddleMidnightMilkMillionMimicMindMinimumMinorMinuteMiracleMirrorMiseryMissMistakeMixMixedMixtureMobileModelModifyMomMomentMonitorMonkeyMonsterMonthMoonMoralMoreMorningMosquitoMotherMotionMotorMountainMouseMoveMovieMuchMuffinMuleMultiplyMuscleMuseumMushroomMusicMustMutualMyselfMysteryMythNaiveNameNapkinNarrowNastyNationNatureNearNeckNeedNegativeNeglectNeitherNephewNerveNestNetNetworkNeutralNeverNewsNextNiceNightNobleNoiseNomineeNoodleNormalNorthNoseNotableNoteNothingNoticeNovelNowNuclearNumberNurseNutOakObeyObjectObligeObscureObserveObtainObviousOccurOceanOctoberOdorOffOfferOfficeOftenOilOkayOldOliveOlympicOmitOnceOneOnionOnlineOnlyOpenOperaOpinionOpposeOptionOrangeOrbitOrchardOrderOrdinaryOrganOrientOriginalOrphanOstrichOtherOutdoorOuterOutputOutsideOvalOvenOverOwnOwnerOxygenOysterOzonePactPaddlePagePairPalacePalmPandaPanelPanicPantherPaperParadeParentParkParrotPartyPassPatchPathPatientPatrolPatternPausePavePaymentPeacePeanutPearPeasantPelicanPenPenaltyPencilPeoplePepperPerfectPermitPersonPetPhonePhotoPhrasePhysicalPianoPicnicPicturePiecePigPigeonPillPilotPinkPioneerPipePistolPitchPizzaPlacePlanetPlasticPlatePlayPleasePledgePluckPlugPlungePoemPoetPointPolarPolePolicePondPonyPoolPopularPortionPositionPossiblePostPotatoPotteryPovertyPowderPowerPracticePraisePredictPreferPreparePresentPrettyPreventPricePridePrimaryPrintPriorityPrisonPrivatePrizeProblemProcessProduceProfitProgramProjectPromoteProofPropertyProsperProtectProudProvidePublicPuddingPullPulpPulsePumpkinPunchPupilPuppyPurchasePurityPurposePursePushPutPuzzlePyramidQualityQuantumQuarterQuestionQuickQuitQuizQuoteRabbitRaccoonRaceRackRadarRadioRailRainRaiseRallyRampRanchRandomRangeRapidRareRateRatherRavenRawRazorReadyRealReasonRebelRebuildRecallReceiveRecipeRecordRecycleReduceReflectReformRefuseRegionRegretRegularRejectRelaxReleaseReliefRelyRemainRememberRemindRemoveRenderRenewRentReopenRepairRepeatReplaceReportRequireRescueResembleResistResourceResponseResultRetireRetreatReturnReunionRevealReviewRewardRhythmRibRibbonRiceRichRideRidgeRifleRightRigidRingRiotRippleRiskRitualRivalRiverRoadRoastRobotRobustRocketRomanceRoofRookieRoomRoseRotateRoughRoundRouteRoyalRubberRudeRugRuleRunRunwayRuralSadSaddleSadnessSafeSailSaladSalmonSalonSaltSaluteSameSampleSandSatisfySatoshiSauceSausageSaveSayScaleScanScareScatterSceneSchemeSchoolScienceScissorsScorpionScoutScrapScreenScriptScrubSeaSearchSeasonSeatSecondSecretSectionSecuritySeedSeekSegmentSelectSellSeminarSeniorSenseSentenceSeriesServiceSessionSettleSetupSevenShadowShaftShallowShareShedShellSheriffShieldShiftShineShipShiverShockShoeShootShopShortShoulderShoveShrimpShrugShuffleShySiblingSickSideSiegeSightSignSilentSilkSillySilverSimilarSimpleSinceSingSirenSisterSituateSixSizeSkateSketchSkiSkillSkinSkirtSkullSlabSlamSleepSlenderSliceSlideSlightSlimSloganSlotSlowSlushSmallSmartSmileSmokeSmoothSnackSnakeSnapSniffSnowSoapSoccerSocialSockSodaSoftSolarSoldierSolidSolutionSolveSomeoneSongSoonSorrySortSoulSoundSoupSourceSouthSpaceSpareSpatialSpawnSpeakSpecialSpeedSpellSpendSphereSpiceSpiderSpikeSpinSpiritSplitSpoilSponsorSpoonSportSpotSpraySpreadSpringSpySquareSqueezeSquirrelStableStadiumStaffStageStairsStampStandStartStateStaySteakSteelStemStepStereoStickStillStingStockStomachStoneStoolStoryStoveStrategyStreetStrikeStrongStruggleStudentStuffStumbleStyleSubjectSubmitSubwaySuccessSuchSuddenSufferSugarSuggestSuitSummerSunSunnySunsetSuperSupplySupremeSureSurfaceSurgeSurpriseSurroundSurveySuspectSustainSwallowSwampSwapSwarmSwearSweetSwiftSwimSwingSwitchSwordSymbolSymptomSyrupSystemTableTackleTagTailTalentTalkTankTapeTargetTaskTasteTattooTaxiTeachTeamTellTenTenantTennisTentTermTestTextThankThatThemeThenTheoryThereTheyThingThisThoughtThreeThriveThrowThumbThunderTicketTideTigerTiltTimberTimeTinyTipTiredTissueTitleToastTobaccoTodayToddlerToeTogetherToiletTokenTomatoTomorrowToneTongueTonightToolToothTopTopicToppleTorchTornadoTortoiseTossTotalTouristTowardTowerTownToyTrackTradeTrafficTragicTrainTransferTrapTrashTravelTrayTreatTreeTrendTrialTribeTrickTriggerTrimTripTrophyTroubleTruckTrueTrulyTrumpetTrustTruthTryTubeTuitionTumbleTunaTunnelTurkeyTurnTurtleTwelveTwentyTwiceTwinTwistTwoTypeTypicalUglyUmbrellaUnableUnawareUncleUncoverUnderUndoUnfairUnfoldUnhappyUniformUniqueUnitUniverseUnknownUnlockUntilUnusualUnveilUpdateUpgradeUpholdUponUpperUpsetUrbanUrgeUsageUseUsedUsefulUselessUsualUtilityVacantVacuumVagueValidValleyValveVanVanishVaporVariousVastVaultVehicleVelvetVendorVentureVenueVerbVerifyVersionVeryVesselVeteranViableVibrantViciousVictoryVideoViewVillageVintageViolinVirtualVirusVisaVisitVisualVitalVividVocalVoiceVoidVolcanoVolumeVoteVoyageWageWagonWaitWalkWallWalnutWantWarfareWarmWarriorWashWaspWasteWaterWaveWayWealthWeaponWearWeaselWeatherWebWeddingWeekendWeirdWelcomeWestWetWhaleWhatWheatWheelWhenWhereWhipWhisperWideWidthWifeWildWillWinWindowWineWingWinkWinnerWinterWireWisdomWiseWishWitnessWolfWomanWonderWoodWoolWordWorkWorldWorryWorthWrapWreckWrestleWristWriteWrongYardYearYellowYouYoungYouthZebraZeroZoneZoo", + JT = null; + function Ffe(r) { + if ( + JT == null && + ((JT = C5t.replace(/([A-Z])/g, " $1") + .toLowerCase() + .substring(1) + .split(" ")), + IW.Wordlist.check(r) !== + "0x3c8acc1e7b08d8e76f9fda015ef48dc8c710a73cb7e0f77b2c18a9b5a7adde60") + ) + throw ( + ((JT = null), new Error("BIP39 Wordlist for en (English) FAILED")) + ); + } + var I5t = (function (r) { + E5t(e, r); + function e() { + return r.call(this, "en") || this; + } + return ( + (e.prototype.getWord = function (t) { + return Ffe(this), JT[t]; + }), + (e.prototype.getWordIndex = function (t) { + return Ffe(this), JT.indexOf(t); + }), + e + ); + })(IW.Wordlist), + Wfe = new I5t(); + gv.langEn = Wfe; + IW.Wordlist.register(Wfe); + }); + var Vfe = N((bv) => { + "use strict"; + _(); + x(); + var A5t = + (bv && bv.__extends) || + (function () { + var r = function (e, t) { + return ( + (r = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (n, a) { + n.__proto__ = a; + }) || + function (n, a) { + for (var i in a) + Object.prototype.hasOwnProperty.call(a, i) && (n[i] = a[i]); + }), + r(e, t) + ); + }; + return function (e, t) { + if (typeof t != "function" && t !== null) + throw new TypeError( + "Class extends value " + + String(t) + + " is not a constructor or null" + ); + r(e, t); + function n() { + this.constructor = e; + } + e.prototype = + t === null + ? Object.create(t) + : ((n.prototype = t.prototype), new n()); + }; + })(); + Object.defineProperty(bv, "__esModule", { value: !0 }); + bv.langEs = void 0; + var RA = Ki(), + BA = jp(), + k5t = + "A/bacoAbdomenAbejaAbiertoAbogadoAbonoAbortoAbrazoAbrirAbueloAbusoAcabarAcademiaAccesoAccio/nAceiteAcelgaAcentoAceptarA/cidoAclararAcne/AcogerAcosoActivoActoActrizActuarAcudirAcuerdoAcusarAdictoAdmitirAdoptarAdornoAduanaAdultoAe/reoAfectarAficio/nAfinarAfirmarA/gilAgitarAgoni/aAgostoAgotarAgregarAgrioAguaAgudoA/guilaAgujaAhogoAhorroAireAislarAjedrezAjenoAjusteAlacra/nAlambreAlarmaAlbaA/lbumAlcaldeAldeaAlegreAlejarAlertaAletaAlfilerAlgaAlgodo/nAliadoAlientoAlivioAlmaAlmejaAlmi/barAltarAltezaAltivoAltoAlturaAlumnoAlzarAmableAmanteAmapolaAmargoAmasarA/mbarA/mbitoAmenoAmigoAmistadAmorAmparoAmplioAnchoAncianoAnclaAndarAnde/nAnemiaA/nguloAnilloA/nimoAni/sAnotarAntenaAntiguoAntojoAnualAnularAnuncioA~adirA~ejoA~oApagarAparatoApetitoApioAplicarApodoAporteApoyoAprenderAprobarApuestaApuroAradoAra~aArarA/rbitroA/rbolArbustoArchivoArcoArderArdillaArduoA/reaA/ridoAriesArmoni/aArne/sAromaArpaArpo/nArregloArrozArrugaArteArtistaAsaAsadoAsaltoAscensoAsegurarAseoAsesorAsientoAsiloAsistirAsnoAsombroA/speroAstillaAstroAstutoAsumirAsuntoAtajoAtaqueAtarAtentoAteoA/ticoAtletaA/tomoAtraerAtrozAtu/nAudazAudioAugeAulaAumentoAusenteAutorAvalAvanceAvaroAveAvellanaAvenaAvestruzAvio/nAvisoAyerAyudaAyunoAzafra/nAzarAzoteAzu/carAzufreAzulBabaBaborBacheBahi/aBaileBajarBalanzaBalco/nBaldeBambu/BancoBandaBa~oBarbaBarcoBarnizBarroBa/sculaBasto/nBasuraBatallaBateri/aBatirBatutaBau/lBazarBebe/BebidaBelloBesarBesoBestiaBichoBienBingoBlancoBloqueBlusaBoaBobinaBoboBocaBocinaBodaBodegaBoinaBolaBoleroBolsaBombaBondadBonitoBonoBonsa/iBordeBorrarBosqueBoteBoti/nBo/vedaBozalBravoBrazoBrechaBreveBrilloBrincoBrisaBrocaBromaBronceBroteBrujaBruscoBrutoBuceoBucleBuenoBueyBufandaBufo/nBu/hoBuitreBultoBurbujaBurlaBurroBuscarButacaBuzo/nCaballoCabezaCabinaCabraCacaoCada/verCadenaCaerCafe/Cai/daCaima/nCajaCajo/nCalCalamarCalcioCaldoCalidadCalleCalmaCalorCalvoCamaCambioCamelloCaminoCampoCa/ncerCandilCanelaCanguroCanicaCantoCa~aCa~o/nCaobaCaosCapazCapita/nCapoteCaptarCapuchaCaraCarbo/nCa/rcelCaretaCargaCari~oCarneCarpetaCarroCartaCasaCascoCaseroCaspaCastorCatorceCatreCaudalCausaCazoCebollaCederCedroCeldaCe/lebreCelosoCe/lulaCementoCenizaCentroCercaCerdoCerezaCeroCerrarCertezaCe/spedCetroChacalChalecoChampu/ChanclaChapaCharlaChicoChisteChivoChoqueChozaChuletaChuparCiclo/nCiegoCieloCienCiertoCifraCigarroCimaCincoCineCintaCipre/sCircoCiruelaCisneCitaCiudadClamorClanClaroClaseClaveClienteClimaCli/nicaCobreCoccio/nCochinoCocinaCocoCo/digoCodoCofreCogerCoheteCoji/nCojoColaColchaColegioColgarColinaCollarColmoColumnaCombateComerComidaCo/modoCompraCondeConejoCongaConocerConsejoContarCopaCopiaCorazo/nCorbataCorchoCordo/nCoronaCorrerCoserCosmosCostaCra/neoCra/terCrearCrecerCrei/doCremaCri/aCrimenCriptaCrisisCromoCro/nicaCroquetaCrudoCruzCuadroCuartoCuatroCuboCubrirCucharaCuelloCuentoCuerdaCuestaCuevaCuidarCulebraCulpaCultoCumbreCumplirCunaCunetaCuotaCupo/nCu/pulaCurarCuriosoCursoCurvaCutisDamaDanzaDarDardoDa/tilDeberDe/bilDe/cadaDecirDedoDefensaDefinirDejarDelfi/nDelgadoDelitoDemoraDensoDentalDeporteDerechoDerrotaDesayunoDeseoDesfileDesnudoDestinoDesvi/oDetalleDetenerDeudaDi/aDiabloDiademaDiamanteDianaDiarioDibujoDictarDienteDietaDiezDifi/cilDignoDilemaDiluirDineroDirectoDirigirDiscoDise~oDisfrazDivaDivinoDobleDoceDolorDomingoDonDonarDoradoDormirDorsoDosDosisDrago/nDrogaDuchaDudaDueloDue~oDulceDu/oDuqueDurarDurezaDuroE/banoEbrioEcharEcoEcuadorEdadEdicio/nEdificioEditorEducarEfectoEficazEjeEjemploElefanteElegirElementoElevarElipseE/liteElixirElogioEludirEmbudoEmitirEmocio/nEmpateEmpe~oEmpleoEmpresaEnanoEncargoEnchufeEnci/aEnemigoEneroEnfadoEnfermoEnga~oEnigmaEnlaceEnormeEnredoEnsayoEnse~arEnteroEntrarEnvaseEnvi/oE/pocaEquipoErizoEscalaEscenaEscolarEscribirEscudoEsenciaEsferaEsfuerzoEspadaEspejoEspi/aEsposaEspumaEsqui/EstarEsteEstiloEstufaEtapaEternoE/ticaEtniaEvadirEvaluarEventoEvitarExactoExamenExcesoExcusaExentoExigirExilioExistirE/xitoExpertoExplicarExponerExtremoFa/bricaFa/bulaFachadaFa/cilFactorFaenaFajaFaldaFalloFalsoFaltarFamaFamiliaFamosoFarao/nFarmaciaFarolFarsaFaseFatigaFaunaFavorFaxFebreroFechaFelizFeoFeriaFerozFe/rtilFervorFesti/nFiableFianzaFiarFibraFiccio/nFichaFideoFiebreFielFieraFiestaFiguraFijarFijoFilaFileteFilialFiltroFinFincaFingirFinitoFirmaFlacoFlautaFlechaFlorFlotaFluirFlujoFlu/orFobiaFocaFogataFogo/nFolioFolletoFondoFormaForroFortunaForzarFosaFotoFracasoFra/gilFranjaFraseFraudeFrei/rFrenoFresaFri/oFritoFrutaFuegoFuenteFuerzaFugaFumarFuncio/nFundaFurgo/nFuriaFusilFu/tbolFuturoGacelaGafasGaitaGajoGalaGaleri/aGalloGambaGanarGanchoGangaGansoGarajeGarzaGasolinaGastarGatoGavila/nGemeloGemirGenGe/neroGenioGenteGeranioGerenteGermenGestoGiganteGimnasioGirarGiroGlaciarGloboGloriaGolGolfoGolosoGolpeGomaGordoGorilaGorraGotaGoteoGozarGradaGra/ficoGranoGrasaGratisGraveGrietaGrilloGripeGrisGritoGrosorGru/aGruesoGrumoGrupoGuanteGuapoGuardiaGuerraGui/aGui~oGuionGuisoGuitarraGusanoGustarHaberHa/bilHablarHacerHachaHadaHallarHamacaHarinaHazHaza~aHebillaHebraHechoHeladoHelioHembraHerirHermanoHe/roeHervirHieloHierroHi/gadoHigieneHijoHimnoHistoriaHocicoHogarHogueraHojaHombreHongoHonorHonraHoraHormigaHornoHostilHoyoHuecoHuelgaHuertaHuesoHuevoHuidaHuirHumanoHu/medoHumildeHumoHundirHuraca/nHurtoIconoIdealIdiomaI/doloIglesiaIglu/IgualIlegalIlusio/nImagenIma/nImitarImparImperioImponerImpulsoIncapazI/ndiceInerteInfielInformeIngenioInicioInmensoInmuneInnatoInsectoInstanteIntere/sI/ntimoIntuirInu/tilInviernoIraIrisIroni/aIslaIsloteJabali/Jabo/nJamo/nJarabeJardi/nJarraJaulaJazmi/nJefeJeringaJineteJornadaJorobaJovenJoyaJuergaJuevesJuezJugadorJugoJugueteJuicioJuncoJunglaJunioJuntarJu/piterJurarJustoJuvenilJuzgarKiloKoalaLabioLacioLacraLadoLadro/nLagartoLa/grimaLagunaLaicoLamerLa/minaLa/mparaLanaLanchaLangostaLanzaLa/pizLargoLarvaLa/stimaLataLa/texLatirLaurelLavarLazoLealLeccio/nLecheLectorLeerLegio/nLegumbreLejanoLenguaLentoLe~aLeo/nLeopardoLesio/nLetalLetraLeveLeyendaLibertadLibroLicorLi/derLidiarLienzoLigaLigeroLimaLi/miteLimo/nLimpioLinceLindoLi/neaLingoteLinoLinternaLi/quidoLisoListaLiteraLitioLitroLlagaLlamaLlantoLlaveLlegarLlenarLlevarLlorarLloverLluviaLoboLocio/nLocoLocuraLo/gicaLogroLombrizLomoLonjaLoteLuchaLucirLugarLujoLunaLunesLupaLustroLutoLuzMacetaMachoMaderaMadreMaduroMaestroMafiaMagiaMagoMai/zMaldadMaletaMallaMaloMama/MamboMamutMancoMandoManejarMangaManiqui/ManjarManoMansoMantaMa~anaMapaMa/quinaMarMarcoMareaMarfilMargenMaridoMa/rmolMarro/nMartesMarzoMasaMa/scaraMasivoMatarMateriaMatizMatrizMa/ximoMayorMazorcaMechaMedallaMedioMe/dulaMejillaMejorMelenaMelo/nMemoriaMenorMensajeMenteMenu/MercadoMerengueMe/ritoMesMeso/nMetaMeterMe/todoMetroMezclaMiedoMielMiembroMigaMilMilagroMilitarMillo/nMimoMinaMineroMi/nimoMinutoMiopeMirarMisaMiseriaMisilMismoMitadMitoMochilaMocio/nModaModeloMohoMojarMoldeMolerMolinoMomentoMomiaMonarcaMonedaMonjaMontoMo~oMoradaMorderMorenoMorirMorroMorsaMortalMoscaMostrarMotivoMoverMo/vilMozoMuchoMudarMuebleMuelaMuerteMuestraMugreMujerMulaMuletaMultaMundoMu~ecaMuralMuroMu/sculoMuseoMusgoMu/sicaMusloNa/carNacio/nNadarNaipeNaranjaNarizNarrarNasalNatalNativoNaturalNa/useaNavalNaveNavidadNecioNe/ctarNegarNegocioNegroNeo/nNervioNetoNeutroNevarNeveraNichoNidoNieblaNietoNi~ezNi~oNi/tidoNivelNoblezaNocheNo/minaNoriaNormaNorteNotaNoticiaNovatoNovelaNovioNubeNucaNu/cleoNudilloNudoNueraNueveNuezNuloNu/meroNutriaOasisObesoObispoObjetoObraObreroObservarObtenerObvioOcaOcasoOce/anoOchentaOchoOcioOcreOctavoOctubreOcultoOcuparOcurrirOdiarOdioOdiseaOesteOfensaOfertaOficioOfrecerOgroOi/doOi/rOjoOlaOleadaOlfatoOlivoOllaOlmoOlorOlvidoOmbligoOndaOnzaOpacoOpcio/nO/peraOpinarOponerOptarO/pticaOpuestoOracio/nOradorOralO/rbitaOrcaOrdenOrejaO/rganoOrgi/aOrgulloOrienteOrigenOrillaOroOrquestaOrugaOsadi/aOscuroOseznoOsoOstraOto~oOtroOvejaO/vuloO/xidoOxi/genoOyenteOzonoPactoPadrePaellaPa/ginaPagoPai/sPa/jaroPalabraPalcoPaletaPa/lidoPalmaPalomaPalparPanPanalPa/nicoPanteraPa~ueloPapa/PapelPapillaPaquetePararParcelaParedParirParoPa/rpadoParquePa/rrafoPartePasarPaseoPasio/nPasoPastaPataPatioPatriaPausaPautaPavoPayasoPeato/nPecadoPeceraPechoPedalPedirPegarPeinePelarPelda~oPeleaPeligroPellejoPeloPelucaPenaPensarPe~o/nPeo/nPeorPepinoPeque~oPeraPerchaPerderPerezaPerfilPericoPerlaPermisoPerroPersonaPesaPescaPe/simoPesta~aPe/taloPetro/leoPezPezu~aPicarPicho/nPiePiedraPiernaPiezaPijamaPilarPilotoPimientaPinoPintorPinzaPi~aPiojoPipaPirataPisarPiscinaPisoPistaPito/nPizcaPlacaPlanPlataPlayaPlazaPleitoPlenoPlomoPlumaPluralPobrePocoPoderPodioPoemaPoesi/aPoetaPolenPolici/aPolloPolvoPomadaPomeloPomoPompaPonerPorcio/nPortalPosadaPoseerPosiblePostePotenciaPotroPozoPradoPrecozPreguntaPremioPrensaPresoPrevioPrimoPri/ncipePrisio/nPrivarProaProbarProcesoProductoProezaProfesorProgramaProlePromesaProntoPropioPro/ximoPruebaPu/blicoPucheroPudorPuebloPuertaPuestoPulgaPulirPulmo/nPulpoPulsoPumaPuntoPu~alPu~oPupaPupilaPure/QuedarQuejaQuemarQuererQuesoQuietoQui/micaQuinceQuitarRa/banoRabiaRaboRacio/nRadicalRai/zRamaRampaRanchoRangoRapazRa/pidoRaptoRasgoRaspaRatoRayoRazaRazo/nReaccio/nRealidadReba~oReboteRecaerRecetaRechazoRecogerRecreoRectoRecursoRedRedondoReducirReflejoReformaRefra/nRefugioRegaloRegirReglaRegresoRehe/nReinoRei/rRejaRelatoRelevoRelieveRellenoRelojRemarRemedioRemoRencorRendirRentaRepartoRepetirReposoReptilResRescateResinaRespetoRestoResumenRetiroRetornoRetratoReunirReve/sRevistaReyRezarRicoRiegoRiendaRiesgoRifaRi/gidoRigorRinco/nRi~o/nRi/oRiquezaRisaRitmoRitoRizoRobleRoceRociarRodarRodeoRodillaRoerRojizoRojoRomeroRomperRonRoncoRondaRopaRoperoRosaRoscaRostroRotarRubi/RuborRudoRuedaRugirRuidoRuinaRuletaRuloRumboRumorRupturaRutaRutinaSa/badoSaberSabioSableSacarSagazSagradoSalaSaldoSaleroSalirSalmo/nSalo/nSalsaSaltoSaludSalvarSambaSancio/nSandi/aSanearSangreSanidadSanoSantoSapoSaqueSardinaSarte/nSastreSata/nSaunaSaxofo/nSeccio/nSecoSecretoSectaSedSeguirSeisSelloSelvaSemanaSemillaSendaSensorSe~alSe~orSepararSepiaSequi/aSerSerieSermo/nServirSesentaSesio/nSetaSetentaSeveroSexoSextoSidraSiestaSieteSigloSignoSi/labaSilbarSilencioSillaSi/mboloSimioSirenaSistemaSitioSituarSobreSocioSodioSolSolapaSoldadoSoledadSo/lidoSoltarSolucio/nSombraSondeoSonidoSonoroSonrisaSopaSoplarSoporteSordoSorpresaSorteoSoste/nSo/tanoSuaveSubirSucesoSudorSuegraSueloSue~oSuerteSufrirSujetoSulta/nSumarSuperarSuplirSuponerSupremoSurSurcoSure~oSurgirSustoSutilTabacoTabiqueTablaTabu/TacoTactoTajoTalarTalcoTalentoTallaTalo/nTama~oTamborTangoTanqueTapaTapeteTapiaTapo/nTaquillaTardeTareaTarifaTarjetaTarotTarroTartaTatuajeTauroTazaTazo/nTeatroTechoTeclaTe/cnicaTejadoTejerTejidoTelaTele/fonoTemaTemorTemploTenazTenderTenerTenisTensoTeori/aTerapiaTercoTe/rminoTernuraTerrorTesisTesoroTestigoTeteraTextoTezTibioTiburo/nTiempoTiendaTierraTiesoTigreTijeraTildeTimbreTi/midoTimoTintaTi/oTi/picoTipoTiraTiro/nTita/nTi/tereTi/tuloTizaToallaTobilloTocarTocinoTodoTogaToldoTomarTonoTontoToparTopeToqueTo/raxToreroTormentaTorneoToroTorpedoTorreTorsoTortugaTosToscoToserTo/xicoTrabajoTractorTraerTra/ficoTragoTrajeTramoTranceTratoTraumaTrazarTre/bolTreguaTreintaTrenTreparTresTribuTrigoTripaTristeTriunfoTrofeoTrompaTroncoTropaTroteTrozoTrucoTruenoTrufaTuberi/aTuboTuertoTumbaTumorTu/nelTu/nicaTurbinaTurismoTurnoTutorUbicarU/lceraUmbralUnidadUnirUniversoUnoUntarU~aUrbanoUrbeUrgenteUrnaUsarUsuarioU/tilUtopi/aUvaVacaVaci/oVacunaVagarVagoVainaVajillaValeVa/lidoValleValorVa/lvulaVampiroVaraVariarVaro/nVasoVecinoVectorVehi/culoVeinteVejezVelaVeleroVelozVenaVencerVendaVenenoVengarVenirVentaVenusVerVeranoVerboVerdeVeredaVerjaVersoVerterVi/aViajeVibrarVicioVi/ctimaVidaVi/deoVidrioViejoViernesVigorVilVillaVinagreVinoVi~edoVioli/nViralVirgoVirtudVisorVi/speraVistaVitaminaViudoVivazViveroVivirVivoVolca/nVolumenVolverVorazVotarVotoVozVueloVulgarYacerYateYeguaYemaYernoYesoYodoYogaYogurZafiroZanjaZapatoZarzaZonaZorroZumoZurdo", + zfe = {}, + ZT = null; + function jfe(r) { + return ( + BA.logger.checkNormalize(), + (0, RA.toUtf8String)( + Array.prototype.filter.call( + (0, RA.toUtf8Bytes)(r.normalize("NFD").toLowerCase()), + function (e) { + return (e >= 65 && e <= 90) || (e >= 97 && e <= 123); + } + ) + ) + ); + } + function S5t(r) { + var e = []; + return ( + Array.prototype.forEach.call((0, RA.toUtf8Bytes)(r), function (t) { + t === 47 + ? (e.push(204), e.push(129)) + : t === 126 + ? (e.push(110), e.push(204), e.push(131)) + : e.push(t); + }), + (0, RA.toUtf8String)(e) + ); + } + function Hfe(r) { + if ( + ZT == null && + ((ZT = k5t + .replace(/([A-Z])/g, " $1") + .toLowerCase() + .substring(1) + .split(" ") + .map(function (e) { + return S5t(e); + })), + ZT.forEach(function (e, t) { + zfe[jfe(e)] = t; + }), + BA.Wordlist.check(r) !== + "0xf74fb7092aeacdfbf8959557de22098da512207fb9f109cb526994938cf40300") + ) + throw ( + ((ZT = null), new Error("BIP39 Wordlist for es (Spanish) FAILED")) + ); + } + var M5t = (function (r) { + A5t(e, r); + function e() { + return r.call(this, "es") || this; + } + return ( + (e.prototype.getWord = function (t) { + return Hfe(this), ZT[t]; + }), + (e.prototype.getWordIndex = function (t) { + return Hfe(this), zfe[jfe(t)]; + }), + e + ); + })(BA.Wordlist), + Kfe = new M5t(); + bv.langEs = Kfe; + BA.Wordlist.register(Kfe); + }); + var Zfe = N((vv) => { + "use strict"; + _(); + x(); + var P5t = + (vv && vv.__extends) || + (function () { + var r = function (e, t) { + return ( + (r = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (n, a) { + n.__proto__ = a; + }) || + function (n, a) { + for (var i in a) + Object.prototype.hasOwnProperty.call(a, i) && (n[i] = a[i]); + }), + r(e, t) + ); + }; + return function (e, t) { + if (typeof t != "function" && t !== null) + throw new TypeError( + "Class extends value " + + String(t) + + " is not a constructor or null" + ); + r(e, t); + function n() { + this.constructor = e; + } + e.prototype = + t === null + ? Object.create(t) + : ((n.prototype = t.prototype), new n()); + }; + })(); + Object.defineProperty(vv, "__esModule", { value: !0 }); + vv.langFr = void 0; + var NA = Ki(), + OA = jp(), + R5t = + "AbaisserAbandonAbdiquerAbeilleAbolirAborderAboutirAboyerAbrasifAbreuverAbriterAbrogerAbruptAbsenceAbsoluAbsurdeAbusifAbyssalAcade/mieAcajouAcarienAccablerAccepterAcclamerAccoladeAccrocheAccuserAcerbeAchatAcheterAcidulerAcierAcompteAcque/rirAcronymeActeurActifActuelAdepteAde/quatAdhe/sifAdjectifAdjugerAdmettreAdmirerAdopterAdorerAdoucirAdresseAdroitAdulteAdverbeAe/rerAe/ronefAffaireAffecterAfficheAffreuxAffublerAgacerAgencerAgileAgiterAgraferAgre/ableAgrumeAiderAiguilleAilierAimableAisanceAjouterAjusterAlarmerAlchimieAlerteAlge-breAlgueAlie/nerAlimentAlle/gerAlliageAllouerAllumerAlourdirAlpagaAltesseAlve/oleAmateurAmbiguAmbreAme/nagerAmertumeAmidonAmiralAmorcerAmourAmovibleAmphibieAmpleurAmusantAnalyseAnaphoreAnarchieAnatomieAncienAne/antirAngleAngoisseAnguleuxAnimalAnnexerAnnonceAnnuelAnodinAnomalieAnonymeAnormalAntenneAntidoteAnxieuxApaiserApe/ritifAplanirApologieAppareilAppelerApporterAppuyerAquariumAqueducArbitreArbusteArdeurArdoiseArgentArlequinArmatureArmementArmoireArmureArpenterArracherArriverArroserArsenicArte/rielArticleAspectAsphalteAspirerAssautAsservirAssietteAssocierAssurerAsticotAstreAstuceAtelierAtomeAtriumAtroceAttaqueAttentifAttirerAttraperAubaineAubergeAudaceAudibleAugurerAuroreAutomneAutrucheAvalerAvancerAvariceAvenirAverseAveugleAviateurAvideAvionAviserAvoineAvouerAvrilAxialAxiomeBadgeBafouerBagageBaguetteBaignadeBalancerBalconBaleineBalisageBambinBancaireBandageBanlieueBannie-reBanquierBarbierBarilBaronBarqueBarrageBassinBastionBatailleBateauBatterieBaudrierBavarderBeletteBe/lierBeloteBe/ne/ficeBerceauBergerBerlineBermudaBesaceBesogneBe/tailBeurreBiberonBicycleBiduleBijouBilanBilingueBillardBinaireBiologieBiopsieBiotypeBiscuitBisonBistouriBitumeBizarreBlafardBlagueBlanchirBlessantBlinderBlondBloquerBlousonBobardBobineBoireBoiserBolideBonbonBondirBonheurBonifierBonusBordureBorneBotteBoucleBoueuxBougieBoulonBouquinBourseBoussoleBoutiqueBoxeurBrancheBrasierBraveBrebisBre-cheBreuvageBricolerBrigadeBrillantBriocheBriqueBrochureBroderBronzerBrousseBroyeurBrumeBrusqueBrutalBruyantBuffleBuissonBulletinBureauBurinBustierButinerButoirBuvableBuvetteCabanonCabineCachetteCadeauCadreCafe/ineCaillouCaissonCalculerCalepinCalibreCalmerCalomnieCalvaireCamaradeCame/raCamionCampagneCanalCanetonCanonCantineCanularCapableCaporalCapriceCapsuleCapterCapucheCarabineCarboneCaresserCaribouCarnageCarotteCarreauCartonCascadeCasierCasqueCassureCauserCautionCavalierCaverneCaviarCe/dilleCeintureCe/lesteCelluleCendrierCensurerCentralCercleCe/re/bralCeriseCernerCerveauCesserChagrinChaiseChaleurChambreChanceChapitreCharbonChasseurChatonChaussonChavirerChemiseChenilleChe/quierChercherChevalChienChiffreChignonChime-reChiotChlorureChocolatChoisirChoseChouetteChromeChuteCigareCigogneCimenterCine/maCintrerCirculerCirerCirqueCiterneCitoyenCitronCivilClaironClameurClaquerClasseClavierClientClignerClimatClivageClocheClonageCloporteCobaltCobraCocasseCocotierCoderCodifierCoffreCognerCohe/sionCoifferCoincerCole-reColibriCollineColmaterColonelCombatCome/dieCommandeCompactConcertConduireConfierCongelerConnoterConsonneContactConvexeCopainCopieCorailCorbeauCordageCornicheCorpusCorrectCorte-geCosmiqueCostumeCotonCoudeCoupureCourageCouteauCouvrirCoyoteCrabeCrainteCravateCrayonCre/atureCre/diterCre/meuxCreuserCrevetteCriblerCrierCristalCrite-reCroireCroquerCrotaleCrucialCruelCrypterCubiqueCueillirCuille-reCuisineCuivreCulminerCultiverCumulerCupideCuratifCurseurCyanureCycleCylindreCyniqueDaignerDamierDangerDanseurDauphinDe/battreDe/biterDe/borderDe/briderDe/butantDe/calerDe/cembreDe/chirerDe/ciderDe/clarerDe/corerDe/crireDe/cuplerDe/daleDe/ductifDe/esseDe/fensifDe/filerDe/frayerDe/gagerDe/givrerDe/glutirDe/graferDe/jeunerDe/liceDe/logerDemanderDemeurerDe/molirDe/nicherDe/nouerDentelleDe/nuderDe/partDe/penserDe/phaserDe/placerDe/poserDe/rangerDe/roberDe/sastreDescenteDe/sertDe/signerDe/sobe/irDessinerDestrierDe/tacherDe/testerDe/tourerDe/tresseDevancerDevenirDevinerDevoirDiableDialogueDiamantDicterDiffe/rerDige/rerDigitalDigneDiluerDimancheDiminuerDioxydeDirectifDirigerDiscuterDisposerDissiperDistanceDivertirDiviserDocileDocteurDogmeDoigtDomaineDomicileDompterDonateurDonjonDonnerDopamineDortoirDorureDosageDoseurDossierDotationDouanierDoubleDouceurDouterDoyenDragonDraperDresserDribblerDroitureDuperieDuplexeDurableDurcirDynastieE/blouirE/carterE/charpeE/chelleE/clairerE/clipseE/cloreE/cluseE/coleE/conomieE/corceE/couterE/craserE/cre/merE/crivainE/crouE/cumeE/cureuilE/difierE/duquerEffacerEffectifEffigieEffortEffrayerEffusionE/galiserE/garerE/jecterE/laborerE/largirE/lectronE/le/gantE/le/phantE/le-veE/ligibleE/litismeE/logeE/luciderE/luderEmballerEmbellirEmbryonE/meraudeE/missionEmmenerE/motionE/mouvoirEmpereurEmployerEmporterEmpriseE/mulsionEncadrerEnche-reEnclaveEncocheEndiguerEndosserEndroitEnduireE/nergieEnfanceEnfermerEnfouirEngagerEnginEngloberE/nigmeEnjamberEnjeuEnleverEnnemiEnnuyeuxEnrichirEnrobageEnseigneEntasserEntendreEntierEntourerEntraverE/nume/rerEnvahirEnviableEnvoyerEnzymeE/olienE/paissirE/pargneE/patantE/pauleE/picerieE/pide/mieE/pierE/pilogueE/pineE/pisodeE/pitapheE/poqueE/preuveE/prouverE/puisantE/querreE/quipeE/rigerE/rosionErreurE/ruptionEscalierEspadonEspe-ceEspie-gleEspoirEspritEsquiverEssayerEssenceEssieuEssorerEstimeEstomacEstradeE/tage-reE/talerE/tancheE/tatiqueE/teindreE/tendoirE/ternelE/thanolE/thiqueEthnieE/tirerE/tofferE/toileE/tonnantE/tourdirE/trangeE/troitE/tudeEuphorieE/valuerE/vasionE/ventailE/videnceE/viterE/volutifE/voquerExactExage/rerExaucerExcellerExcitantExclusifExcuseExe/cuterExempleExercerExhalerExhorterExigenceExilerExisterExotiqueExpe/dierExplorerExposerExprimerExquisExtensifExtraireExulterFableFabuleuxFacetteFacileFactureFaiblirFalaiseFameuxFamilleFarceurFarfeluFarineFaroucheFascinerFatalFatigueFauconFautifFaveurFavoriFe/brileFe/conderFe/de/rerFe/linFemmeFe/murFendoirFe/odalFermerFe/roceFerveurFestivalFeuilleFeutreFe/vrierFiascoFicelerFictifFide-leFigureFilatureFiletageFilie-reFilleulFilmerFilouFiltrerFinancerFinirFioleFirmeFissureFixerFlairerFlammeFlasqueFlatteurFle/auFle-cheFleurFlexionFloconFloreFluctuerFluideFluvialFolieFonderieFongibleFontaineForcerForgeronFormulerFortuneFossileFoudreFouge-reFouillerFoulureFourmiFragileFraiseFranchirFrapperFrayeurFre/gateFreinerFrelonFre/mirFre/ne/sieFre-reFriableFrictionFrissonFrivoleFroidFromageFrontalFrotterFruitFugitifFuiteFureurFurieuxFurtifFusionFuturGagnerGalaxieGalerieGambaderGarantirGardienGarnirGarrigueGazelleGazonGe/antGe/latineGe/luleGendarmeGe/ne/ralGe/nieGenouGentilGe/ologieGe/ome-treGe/raniumGermeGestuelGeyserGibierGiclerGirafeGivreGlaceGlaiveGlisserGlobeGloireGlorieuxGolfeurGommeGonflerGorgeGorilleGoudronGouffreGoulotGoupilleGourmandGoutteGraduelGraffitiGraineGrandGrappinGratuitGravirGrenatGriffureGrillerGrimperGrognerGronderGrotteGroupeGrugerGrutierGruye-reGue/pardGuerrierGuideGuimauveGuitareGustatifGymnasteGyrostatHabitudeHachoirHalteHameauHangarHannetonHaricotHarmonieHarponHasardHe/liumHe/matomeHerbeHe/rissonHermineHe/ronHe/siterHeureuxHibernerHibouHilarantHistoireHiverHomardHommageHomoge-neHonneurHonorerHonteuxHordeHorizonHorlogeHormoneHorribleHouleuxHousseHublotHuileuxHumainHumbleHumideHumourHurlerHydromelHygie-neHymneHypnoseIdylleIgnorerIguaneIlliciteIllusionImageImbiberImiterImmenseImmobileImmuableImpactImpe/rialImplorerImposerImprimerImputerIncarnerIncendieIncidentInclinerIncoloreIndexerIndiceInductifIne/ditIneptieInexactInfiniInfligerInformerInfusionInge/rerInhalerInhiberInjecterInjureInnocentInoculerInonderInscrireInsecteInsigneInsoliteInspirerInstinctInsulterIntactIntenseIntimeIntrigueIntuitifInutileInvasionInventerInviterInvoquerIroniqueIrradierIrre/elIrriterIsolerIvoireIvresseJaguarJaillirJambeJanvierJardinJaugerJauneJavelotJetableJetonJeudiJeunesseJoindreJoncherJonglerJoueurJouissifJournalJovialJoyauJoyeuxJubilerJugementJuniorJuponJuristeJusticeJuteuxJuve/nileKayakKimonoKiosqueLabelLabialLabourerLace/rerLactoseLaguneLaineLaisserLaitierLambeauLamelleLampeLanceurLangageLanterneLapinLargeurLarmeLaurierLavaboLavoirLectureLe/galLe/gerLe/gumeLessiveLettreLevierLexiqueLe/zardLiasseLibe/rerLibreLicenceLicorneLie-geLie-vreLigatureLigoterLigueLimerLimiteLimonadeLimpideLine/aireLingotLionceauLiquideLisie-reListerLithiumLitigeLittoralLivreurLogiqueLointainLoisirLombricLoterieLouerLourdLoutreLouveLoyalLubieLucideLucratifLueurLugubreLuisantLumie-reLunaireLundiLuronLutterLuxueuxMachineMagasinMagentaMagiqueMaigreMaillonMaintienMairieMaisonMajorerMalaxerMale/ficeMalheurMaliceMalletteMammouthMandaterManiableManquantManteauManuelMarathonMarbreMarchandMardiMaritimeMarqueurMarronMartelerMascotteMassifMate/rielMatie-reMatraqueMaudireMaussadeMauveMaximalMe/chantMe/connuMe/dailleMe/decinMe/diterMe/duseMeilleurMe/langeMe/lodieMembreMe/moireMenacerMenerMenhirMensongeMentorMercrediMe/riteMerleMessagerMesureMe/talMe/te/oreMe/thodeMe/tierMeubleMiaulerMicrobeMietteMignonMigrerMilieuMillionMimiqueMinceMine/ralMinimalMinorerMinuteMiracleMiroiterMissileMixteMobileModerneMoelleuxMondialMoniteurMonnaieMonotoneMonstreMontagneMonumentMoqueurMorceauMorsureMortierMoteurMotifMoucheMoufleMoulinMoussonMoutonMouvantMultipleMunitionMurailleMure-neMurmureMuscleMuse/umMusicienMutationMuterMutuelMyriadeMyrtilleMyste-reMythiqueNageurNappeNarquoisNarrerNatationNationNatureNaufrageNautiqueNavireNe/buleuxNectarNe/fasteNe/gationNe/gligerNe/gocierNeigeNerveuxNettoyerNeuroneNeutronNeveuNicheNickelNitrateNiveauNobleNocifNocturneNoirceurNoisetteNomadeNombreuxNommerNormatifNotableNotifierNotoireNourrirNouveauNovateurNovembreNoviceNuageNuancerNuireNuisibleNume/roNuptialNuqueNutritifObe/irObjectifObligerObscurObserverObstacleObtenirObturerOccasionOccuperOce/anOctobreOctroyerOctuplerOculaireOdeurOdorantOffenserOfficierOffrirOgiveOiseauOisillonOlfactifOlivierOmbrageOmettreOnctueuxOndulerOne/reuxOniriqueOpaleOpaqueOpe/rerOpinionOpportunOpprimerOpterOptiqueOrageuxOrangeOrbiteOrdonnerOreilleOrganeOrgueilOrificeOrnementOrqueOrtieOscillerOsmoseOssatureOtarieOuraganOursonOutilOutragerOuvrageOvationOxydeOxyge-neOzonePaisiblePalacePalmare-sPalourdePalperPanachePandaPangolinPaniquerPanneauPanoramaPantalonPapayePapierPapoterPapyrusParadoxeParcelleParesseParfumerParlerParoleParrainParsemerPartagerParureParvenirPassionPaste-quePaternelPatiencePatronPavillonPavoiserPayerPaysagePeignePeintrePelagePe/licanPellePelousePeluchePendulePe/ne/trerPe/niblePensifPe/nuriePe/pitePe/plumPerdrixPerforerPe/riodePermuterPerplexePersilPertePeserPe/talePetitPe/trirPeuplePharaonPhobiePhoquePhotonPhrasePhysiquePianoPicturalPie-cePierrePieuvrePilotePinceauPipettePiquerPiroguePiscinePistonPivoterPixelPizzaPlacardPlafondPlaisirPlanerPlaquePlastronPlateauPleurerPlexusPliagePlombPlongerPluiePlumagePochettePoe/siePoe-tePointePoirierPoissonPoivrePolairePolicierPollenPolygonePommadePompierPonctuelPonde/rerPoneyPortiquePositionPosse/derPosturePotagerPoteauPotionPoucePoulainPoumonPourprePoussinPouvoirPrairiePratiquePre/cieuxPre/direPre/fixePre/ludePre/nomPre/sencePre/textePre/voirPrimitifPrincePrisonPriverProble-meProce/derProdigeProfondProgre-sProieProjeterProloguePromenerPropreProspe-reProte/gerProuesseProverbePrudencePruneauPsychosePublicPuceronPuiserPulpePulsarPunaisePunitifPupitrePurifierPuzzlePyramideQuasarQuerelleQuestionQuie/tudeQuitterQuotientRacineRaconterRadieuxRagondinRaideurRaisinRalentirRallongeRamasserRapideRasageRatisserRavagerRavinRayonnerRe/actifRe/agirRe/aliserRe/animerRecevoirRe/citerRe/clamerRe/colterRecruterReculerRecyclerRe/digerRedouterRefaireRe/flexeRe/formerRefrainRefugeRe/galienRe/gionRe/glageRe/gulierRe/ite/rerRejeterRejouerRelatifReleverReliefRemarqueReme-deRemiseRemonterRemplirRemuerRenardRenfortReniflerRenoncerRentrerRenvoiReplierReporterRepriseReptileRequinRe/serveRe/sineuxRe/soudreRespectResterRe/sultatRe/tablirRetenirRe/ticuleRetomberRetracerRe/unionRe/ussirRevancheRevivreRe/volteRe/vulsifRichesseRideauRieurRigideRigolerRincerRiposterRisibleRisqueRituelRivalRivie-reRocheuxRomanceRompreRonceRondinRoseauRosierRotatifRotorRotuleRougeRouilleRouleauRoutineRoyaumeRubanRubisRucheRuelleRugueuxRuinerRuisseauRuserRustiqueRythmeSablerSaboterSabreSacocheSafariSagesseSaisirSaladeSaliveSalonSaluerSamediSanctionSanglierSarcasmeSardineSaturerSaugrenuSaumonSauterSauvageSavantSavonnerScalpelScandaleSce/le/ratSce/narioSceptreSche/maScienceScinderScoreScrutinSculpterSe/anceSe/cableSe/cherSecouerSe/cre/terSe/datifSe/duireSeigneurSe/jourSe/lectifSemaineSemblerSemenceSe/minalSe/nateurSensibleSentenceSe/parerSe/quenceSereinSergentSe/rieuxSerrureSe/rumServiceSe/sameSe/virSevrageSextupleSide/ralSie-cleSie/gerSifflerSigleSignalSilenceSiliciumSimpleSince-reSinistreSiphonSiropSismiqueSituerSkierSocialSocleSodiumSoigneuxSoldatSoleilSolitudeSolubleSombreSommeilSomnolerSondeSongeurSonnetteSonoreSorcierSortirSosieSottiseSoucieuxSoudureSouffleSouleverSoupapeSourceSoutirerSouvenirSpacieuxSpatialSpe/cialSphe-reSpiralStableStationSternumStimulusStipulerStrictStudieuxStupeurStylisteSublimeSubstratSubtilSubvenirSucce-sSucreSuffixeSugge/rerSuiveurSulfateSuperbeSupplierSurfaceSuricateSurmenerSurpriseSursautSurvieSuspectSyllabeSymboleSyme/trieSynapseSyntaxeSyste-meTabacTablierTactileTaillerTalentTalismanTalonnerTambourTamiserTangibleTapisTaquinerTarderTarifTartineTasseTatamiTatouageTaupeTaureauTaxerTe/moinTemporelTenailleTendreTeneurTenirTensionTerminerTerneTerribleTe/tineTexteThe-meThe/orieThe/rapieThoraxTibiaTie-deTimideTirelireTiroirTissuTitaneTitreTituberTobogganTole/rantTomateToniqueTonneauToponymeTorcheTordreTornadeTorpilleTorrentTorseTortueTotemToucherTournageTousserToxineTractionTraficTragiqueTrahirTrainTrancherTravailTre-fleTremperTre/sorTreuilTriageTribunalTricoterTrilogieTriompheTriplerTriturerTrivialTromboneTroncTropicalTroupeauTuileTulipeTumulteTunnelTurbineTuteurTutoyerTuyauTympanTyphonTypiqueTyranUbuesqueUltimeUltrasonUnanimeUnifierUnionUniqueUnitaireUniversUraniumUrbainUrticantUsageUsineUsuelUsureUtileUtopieVacarmeVaccinVagabondVagueVaillantVaincreVaisseauValableValiseVallonValveVampireVanilleVapeurVarierVaseuxVassalVasteVecteurVedetteVe/ge/talVe/hiculeVeinardVe/loceVendrediVe/ne/rerVengerVenimeuxVentouseVerdureVe/rinVernirVerrouVerserVertuVestonVe/te/ranVe/tusteVexantVexerViaducViandeVictoireVidangeVide/oVignetteVigueurVilainVillageVinaigreViolonVipe-reVirementVirtuoseVirusVisageViseurVisionVisqueuxVisuelVitalVitesseViticoleVitrineVivaceVivipareVocationVoguerVoileVoisinVoitureVolailleVolcanVoltigerVolumeVoraceVortexVoterVouloirVoyageVoyelleWagonXe/nonYachtZe-breZe/nithZesteZoologie", + QT = null, + Yfe = {}; + function $fe(r) { + return ( + OA.logger.checkNormalize(), + (0, NA.toUtf8String)( + Array.prototype.filter.call( + (0, NA.toUtf8Bytes)(r.normalize("NFD").toLowerCase()), + function (e) { + return (e >= 65 && e <= 90) || (e >= 97 && e <= 123); + } + ) + ) + ); + } + function B5t(r) { + var e = []; + return ( + Array.prototype.forEach.call((0, NA.toUtf8Bytes)(r), function (t) { + t === 47 + ? (e.push(204), e.push(129)) + : t === 45 + ? (e.push(204), e.push(128)) + : e.push(t); + }), + (0, NA.toUtf8String)(e) + ); + } + function Gfe(r) { + if ( + QT == null && + ((QT = R5t.replace(/([A-Z])/g, " $1") + .toLowerCase() + .substring(1) + .split(" ") + .map(function (e) { + return B5t(e); + })), + QT.forEach(function (e, t) { + Yfe[$fe(e)] = t; + }), + OA.Wordlist.check(r) !== + "0x51deb7ae009149dc61a6bd18a918eb7ac78d2775726c68e598b92d002519b045") + ) + throw ((QT = null), new Error("BIP39 Wordlist for fr (French) FAILED")); + } + var N5t = (function (r) { + P5t(e, r); + function e() { + return r.call(this, "fr") || this; + } + return ( + (e.prototype.getWord = function (t) { + return Gfe(this), QT[t]; + }), + (e.prototype.getWordIndex = function (t) { + return Gfe(this), Yfe[$fe(t)]; + }), + e + ); + })(OA.Wordlist), + Jfe = new N5t(); + vv.langFr = Jfe; + OA.Wordlist.register(Jfe); + }); + var tme = N((wv) => { + "use strict"; + _(); + x(); + var O5t = + (wv && wv.__extends) || + (function () { + var r = function (e, t) { + return ( + (r = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (n, a) { + n.__proto__ = a; + }) || + function (n, a) { + for (var i in a) + Object.prototype.hasOwnProperty.call(a, i) && (n[i] = a[i]); + }), + r(e, t) + ); + }; + return function (e, t) { + if (typeof t != "function" && t !== null) + throw new TypeError( + "Class extends value " + + String(t) + + " is not a constructor or null" + ); + r(e, t); + function n() { + this.constructor = e; + } + e.prototype = + t === null + ? Object.create(t) + : ((n.prototype = t.prototype), new n()); + }; + })(); + Object.defineProperty(wv, "__esModule", { value: !0 }); + wv.langJa = void 0; + var L5t = Dr(), + Bl = Ki(), + LA = jp(), + D5t = [ + "AQRASRAGBAGUAIRAHBAghAURAdBAdcAnoAMEAFBAFCBKFBQRBSFBCXBCDBCHBGFBEQBpBBpQBIkBHNBeOBgFBVCBhBBhNBmOBmRBiHBiFBUFBZDBvFBsXBkFBlcBjYBwDBMBBTBBTRBWBBWXXaQXaRXQWXSRXCFXYBXpHXOQXHRXhRXuRXmXXbRXlXXwDXTRXrCXWQXWGaBWaKcaYgasFadQalmaMBacAKaRKKBKKXKKjKQRKDRKCYKCRKIDKeVKHcKlXKjHKrYNAHNBWNaRNKcNIBNIONmXNsXNdXNnBNMBNRBNrXNWDNWMNFOQABQAHQBrQXBQXFQaRQKXQKDQKOQKFQNBQNDQQgQCXQCDQGBQGDQGdQYXQpBQpQQpHQLXQHuQgBQhBQhCQuFQmXQiDQUFQZDQsFQdRQkHQbRQlOQlmQPDQjDQwXQMBQMDQcFQTBQTHQrDDXQDNFDGBDGQDGRDpFDhFDmXDZXDbRDMYDRdDTRDrXSAhSBCSBrSGQSEQSHBSVRShYShkSyQSuFSiBSdcSoESocSlmSMBSFBSFKSFNSFdSFcCByCaRCKcCSBCSRCCrCGbCEHCYXCpBCpQCIBCIHCeNCgBCgFCVECVcCmkCmwCZXCZFCdRClOClmClFCjDCjdCnXCwBCwXCcRCFQCFjGXhGNhGDEGDMGCDGCHGIFGgBGVXGVEGVRGmXGsXGdYGoSGbRGnXGwXGwDGWRGFNGFLGFOGFdGFkEABEBDEBFEXOEaBEKSENBENDEYXEIgEIkEgBEgQEgHEhFEudEuFEiBEiHEiFEZDEvBEsXEsFEdXEdREkFEbBEbRElFEPCEfkEFNYAEYAhYBNYQdYDXYSRYCEYYoYgQYgRYuRYmCYZTYdBYbEYlXYjQYRbYWRpKXpQopQnpSFpCXpIBpISphNpdBpdRpbRpcZpFBpFNpFDpFopFrLADLBuLXQLXcLaFLCXLEhLpBLpFLHXLeVLhILdHLdRLoDLbRLrXIABIBQIBCIBsIBoIBMIBRIXaIaRIKYIKRINBINuICDIGBIIDIIkIgRIxFIyQIiHIdRIbYIbRIlHIwRIMYIcRIRVITRIFBIFNIFQOABOAFOBQOaFONBONMOQFOSFOCDOGBOEQOpBOLXOIBOIFOgQOgFOyQOycOmXOsXOdIOkHOMEOMkOWWHBNHXNHXWHNXHDuHDRHSuHSRHHoHhkHmRHdRHkQHlcHlRHwBHWcgAEgAggAkgBNgBQgBEgXOgYcgLXgHjgyQgiBgsFgdagMYgWSgFQgFEVBTVXEVKBVKNVKDVKYVKRVNBVNYVDBVDxVSBVSRVCjVGNVLXVIFVhBVhcVsXVdRVbRVlRhBYhKYhDYhGShxWhmNhdahdkhbRhjohMXhTRxAXxXSxKBxNBxEQxeNxeQxhXxsFxdbxlHxjcxFBxFNxFQxFOxFoyNYyYoybcyMYuBQuBRuBruDMuCouHBudQukkuoBulVuMXuFEmCYmCRmpRmeDmiMmjdmTFmFQiADiBOiaRiKRiNBiNRiSFiGkiGFiERipRiLFiIFihYibHijBijEiMXiWBiFBiFCUBQUXFUaRUNDUNcUNRUNFUDBUSHUCDUGBUGFUEqULNULoUIRUeEUeYUgBUhFUuRUiFUsXUdFUkHUbBUjSUjYUwXUMDUcHURdUTBUrBUrXUrQZAFZXZZaRZKFZNBZQFZCXZGBZYdZpBZLDZIFZHXZHNZeQZVRZVFZmXZiBZvFZdFZkFZbHZbFZwXZcCZcRZRBvBQvBGvBLvBWvCovMYsAFsBDsaRsKFsNFsDrsSHsSFsCXsCRsEBsEHsEfspBsLBsLDsIgsIRseGsbRsFBsFQsFSdNBdSRdCVdGHdYDdHcdVbdySduDdsXdlRdwXdWYdWcdWRkBMkXOkaRkNIkNFkSFkCFkYBkpRkeNkgBkhVkmXksFklVkMBkWDkFNoBNoaQoaFoNBoNXoNaoNEoSRoEroYXoYCoYbopRopFomXojkowXorFbBEbEIbdBbjYlaRlDElMXlFDjKjjSRjGBjYBjYkjpRjLXjIBjOFjeVjbRjwBnXQnSHnpFnLXnINnMBnTRwXBwXNwXYwNFwQFwSBwGFwLXwLDweNwgBwuHwjDwnXMBXMpFMIBMeNMTHcaQcNBcDHcSFcCXcpBcLXcLDcgFcuFcnXcwXccDcTQcrFTQErXNrCHrpFrgFrbFrTHrFcWNYWNbWEHWMXWTR", + "ABGHABIJAEAVAYJQALZJAIaRAHNXAHdcAHbRAZJMAZJRAZTRAdVJAklmAbcNAjdRAMnRAMWYAWpRAWgRAFgBAFhBAFdcBNJBBNJDBQKBBQhcBQlmBDEJBYJkBYJTBpNBBpJFBIJBBIJDBIcABOKXBOEJBOVJBOiJBOZJBepBBeLXBeIFBegBBgGJBVJXBuocBiJRBUJQBlXVBlITBwNFBMYVBcqXBTlmBWNFBWiJBWnRBFGHBFwXXKGJXNJBXNZJXDTTXSHSXSVRXSlHXCJDXGQJXEhXXYQJXYbRXOfXXeNcXVJFXhQJXhEJXdTRXjdXXMhBXcQTXRGBXTEBXTnQXFCXXFOFXFgFaBaFaBNJaBCJaBpBaBwXaNJKaNJDaQIBaDpRaEPDaHMFamDJalEJaMZJaFaFaFNBaFQJaFLDaFVHKBCYKBEBKBHDKXaFKXGdKXEJKXpHKXIBKXZDKXwXKKwLKNacKNYJKNJoKNWcKDGdKDTRKChXKGaRKGhBKGbRKEBTKEaRKEPTKLMDKLWRKOHDKVJcKdBcKlIBKlOPKFSBKFEPKFpFNBNJNJBQNBGHNBEPNBHXNBgFNBVXNBZDNBsXNBwXNNaRNNJDNNJENNJkNDCJNDVDNGJRNJiDNZJNNsCJNJFNNFSBNFCXNFEPNFLXNFIFQJBFQCaRQJEQQLJDQLJFQIaRQOqXQHaFQHHQQVJXQVJDQhNJQmEIQZJFQsJXQJrFQWbRDJABDBYJDXNFDXCXDXLXDXZDDXsJDQqXDSJFDJCXDEPkDEqXDYmQDpSJDOCkDOGQDHEIDVJDDuDuDWEBDJFgSBNDSBSFSBGHSBIBSBTQSKVYSJQNSJQiSJCXSEqXSJYVSIiJSOMYSHAHSHaQSeCFSepQSegBSHdHSHrFShSJSJuHSJUFSkNRSrSrSWEBSFaHSJFQSFCXSFGDSFYXSFODSFgBSFVXSFhBSFxFSFkFSFbBSFMFCADdCJXBCXaFCXKFCXNFCXCXCXGBCXEJCXYBCXLDCXIBCXOPCXHXCXgBCXhBCXiBCXlDCXcHCJNBCJNFCDCJCDGBCDVXCDhBCDiDCDJdCCmNCpJFCIaRCOqXCHCHCHZJCViJCuCuCmddCJiFCdNBCdHhClEJCnUJCreSCWlgCWTRCFBFCFNBCFYBCFVFCFhFCFdSCFTBCFWDGBNBGBQFGJBCGBEqGBpBGBgQGNBEGNJYGNkOGNJRGDUFGJpQGHaBGJeNGJeEGVBlGVKjGiJDGvJHGsVJGkEBGMIJGWjNGFBFGFCXGFGBGFYXGFpBGFMFEASJEAWpEJNFECJVEIXSEIQJEOqXEOcFEeNcEHEJEHlFEJgFEhlmEmDJEmZJEiMBEUqXEoSREPBFEPXFEPKFEPSFEPEFEPpFEPLXEPIBEJPdEPcFEPTBEJnXEqlHEMpREFCXEFODEFcFYASJYJAFYBaBYBVXYXpFYDhBYCJBYJGFYYbRYeNcYJeVYiIJYZJcYvJgYvJRYJsXYsJFYMYMYreVpBNHpBEJpBwXpQxFpYEJpeNDpJeDpeSFpeCHpHUJpHbBpHcHpmUJpiiJpUJrpsJuplITpFaBpFQqpFGBpFEfpFYBpFpBpFLJpFIDpFgBpFVXpFyQpFuFpFlFpFjDpFnXpFwXpJFMpFTBLXCJLXEFLXhFLXUJLXbFLalmLNJBLSJQLCLCLGJBLLDJLHaFLeNFLeSHLeCXLepFLhaRLZsJLsJDLsJrLocaLlLlLMdbLFNBLFSBLFEHLFkFIBBFIBXFIBaQIBKXIBSFIBpHIBLXIBgBIBhBIBuHIBmXIBiFIBZXIBvFIBbFIBjQIBwXIBWFIKTRIQUJIDGFICjQIYSRIINXIJeCIVaRImEkIZJFIvJRIsJXIdCJIJoRIbBQIjYBIcqXITFVIreVIFKFIFSFIFCJIFGFIFLDIFIBIJFOIFgBIFVXIJFhIFxFIFmXIFdHIFbBIJFrIJFWOBGBOQfXOOKjOUqXOfXBOqXEOcqXORVJOFIBOFlDHBIOHXiFHNTRHCJXHIaRHHJDHHEJHVbRHZJYHbIBHRsJHRkDHWlmgBKFgBSBgBCDgBGHgBpBgBIBgBVJgBuBgBvFgKDTgQVXgDUJgGSJgOqXgmUMgZIJgTUJgWIEgFBFgFNBgFDJgFSFgFGBgFYXgJFOgFgQgFVXgFhBgFbHgJFWVJABVQKcVDgFVOfXVeDFVhaRVmGdViJYVMaRVFNHhBNDhBCXhBEqhBpFhBLXhNJBhSJRheVXhhKEhxlmhZIJhdBQhkIJhbMNhMUJhMZJxNJgxQUJxDEkxDdFxSJRxplmxeSBxeCXxeGFxeYXxepQxegBxWVcxFEQxFLXxFIBxFgBxFxDxFZtxFdcxFbBxFwXyDJXyDlcuASJuDJpuDIBuCpJuGSJuIJFueEFuZIJusJXudWEuoIBuWGJuFBcuFKEuFNFuFQFuFDJuFGJuFVJuFUtuFdHuFTBmBYJmNJYmQhkmLJDmLJomIdXmiJYmvJRmsJRmklmmMBymMuCmclmmcnQiJABiJBNiJBDiBSFiBCJiBEFiBYBiBpFiBLXiBTHiJNciDEfiCZJiECJiJEqiOkHiHKFieNDiHJQieQcieDHieSFieCXieGFieEFieIHiegFihUJixNoioNXiFaBiFKFiFNDiFEPiFYXitFOitFHiFgBiFVEiFmXiFitiFbBiFMFiFrFUCXQUIoQUIJcUHQJUeCEUHwXUUJDUUqXUdWcUcqXUrnQUFNDUFSHUFCFUFEfUFLXUtFOZBXOZXSBZXpFZXVXZEQJZEJkZpDJZOqXZeNHZeCDZUqXZFBQZFEHZFLXvBAFvBKFvBCXvBEPvBpHvBIDvBgFvBuHvQNJvFNFvFGBvFIBvJFcsXCDsXLXsXsXsXlFsXcHsQqXsJQFsEqXseIFsFEHsFjDdBxOdNpRdNJRdEJbdpJRdhZJdnSJdrjNdFNJdFQHdFhNkNJDkYaRkHNRkHSRkVbRkuMRkjSJkcqDoSJFoEiJoYZJoOfXohEBoMGQocqXbBAFbBXFbBaFbBNDbBGBbBLXbBTBbBWDbGJYbIJHbFQqbFpQlDgQlOrFlVJRjGEBjZJRnXvJnXbBnEfHnOPDngJRnxfXnUJWwXEJwNpJwDpBwEfXwrEBMDCJMDGHMDIJMLJDcQGDcQpHcqXccqNFcqCXcFCJRBSBRBGBRBEJRBpQTBNFTBQJTBpBTBVXTFABTFSBTFCFTFGBTFMDrXCJrXLDrDNJrEfHrFQJrFitWNjdWNTR", + "AKLJMANOPFASNJIAEJWXAYJNRAIIbRAIcdaAeEfDAgidRAdjNYAMYEJAMIbRAFNJBAFpJFBBIJYBDZJFBSiJhBGdEBBEJfXBEJqXBEJWRBpaUJBLXrXBIYJMBOcfXBeEfFBestXBjNJRBcDJOBFEqXXNvJRXDMBhXCJNYXOAWpXONJWXHDEBXeIaRXhYJDXZJSJXMDJOXcASJXFVJXaBQqXaBZJFasXdQaFSJQaFEfXaFpJHaFOqXKBNSRKXvJBKQJhXKEJQJKEJGFKINJBKIJjNKgJNSKVElmKVhEBKiJGFKlBgJKjnUJKwsJYKMFIJKFNJDKFIJFKFOfXNJBSFNJBCXNBpJFNJBvQNJBMBNJLJXNJOqXNJeCXNJeGFNdsJCNbTKFNwXUJQNFEPQDiJcQDMSJQSFpBQGMQJQJeOcQyCJEQUJEBQJFBrQFEJqDXDJFDJXpBDJXIMDGiJhDIJGRDJeYcDHrDJDVXgFDkAWpDkIgRDjDEqDMvJRDJFNFDJFIBSKclmSJQOFSJQVHSJQjDSJGJBSJGJFSECJoSHEJqSJHTBSJVJDSViJYSZJNBSJsJDSFSJFSFEfXSJFLXCBUJVCJXSBCJXpBCXVJXCJXsXCJXdFCJNJHCLIJgCHiJFCVNJMChCJhCUHEJCsJTRCJdYcCoQJCCFEfXCFIJgCFUJxCFstFGJBaQGJBIDGQJqXGYJNRGJHKFGeQqDGHEJFGJeLXGHIiJGHdBlGUJEBGkIJTGFQPDGJFEqEAGegEJIJBEJVJXEhQJTEiJNcEJZJFEJoEqEjDEqEPDsXEPGJBEPOqXEPeQFEfDiDEJfEFEfepQEfMiJEqXNBEqDIDEqeSFEqVJXEMvJRYXNJDYXEJHYKVJcYYJEBYJeEcYJUqXYFpJFYFstXpAZJMpBSJFpNBNFpeQPDpHLJDpHIJFpHgJFpeitFpHZJFpJFADpFSJFpJFCJpFOqXpFitBpJFZJLXIJFLIJgRLVNJWLVHJMLwNpJLFGJBLFLJDLFOqXLJFUJIBDJXIBGJBIJBYQIJBIBIBOqXIBcqDIEGJFILNJTIIJEBIOiJhIJeNBIJeIBIhiJIIWoTRIJFAHIJFpBIJFuHIFUtFIJFTHOSBYJOEcqXOHEJqOvBpFOkVJrObBVJOncqDOcNJkHhNJRHuHJuHdMhBgBUqXgBsJXgONJBgHNJDgHHJQgJeitgHsJXgJyNagyDJBgZJDrgsVJQgkEJNgkjSJgJFAHgFCJDgFZtMVJXNFVXQfXVJXDJVXoQJVQVJQVDEfXVDvJHVEqNFVeQfXVHpJFVHxfXVVJSRVVmaRVlIJOhCXVJhHjYkhxCJVhWVUJhWiJcxBNJIxeEqDxfXBFxcFEPxFSJFxFYJXyBDQJydaUJyFOPDuYCJYuLvJRuHLJXuZJLDuFOPDuFZJHuFcqXmKHJdmCQJcmOsVJiJAGFitLCFieOfXiestXiZJMEikNJQirXzFiFQqXiFIJFiFZJFiFvtFUHpJFUteIcUteOcUVCJkUhdHcUbEJEUJqXQUMNJhURjYkUFitFZDGJHZJIxDZJVJXZJFDJZJFpQvBNJBvBSJFvJxBrseQqDsVFVJdFLJDkEJNBkmNJYkFLJDoQJOPoGsJRoEAHBoEJfFbBQqDbBZJHbFVJXlFIJBjYIrXjeitcjjCEBjWMNBwXQfXwXOaFwDsJXwCJTRwrCZJMDNJQcDDJFcqDOPRYiJFTBsJXTQIJBTFEfXTFLJDrXEJFrEJXMrFZJFWEJdEWYTlm", + "ABCDEFACNJTRAMBDJdAcNJVXBLNJEBXSIdWRXErNJkXYDJMBXZJCJaXMNJaYKKVJKcKDEJqXKDcNJhKVJrNYKbgJVXKFVJSBNBYBwDNJeQfXNJeEqXNhGJWENJFiJRQlIJbEQJfXxDQqXcfXQFNDEJQFwXUJDYcnUJDJIBgQDIUJTRDJFEqDSJQSJFSJQIJFSOPeZtSJFZJHCJXQfXCTDEqFGJBSJFGJBOfXGJBcqXGJHNJDGJRLiJEJfXEqEJFEJPEFpBEJYJBZJFYBwXUJYiJMEBYJZJyTYTONJXpQMFXFpeGIDdpJFstXpJFcPDLBVSJRLHQJqXLJFZJFIJBNJDIJBUqXIBkFDJIJEJPTIYJGWRIJeQPDIJeEfHIJFsJXOqGDSFHXEJqXgJCsJCgGQJqXgdQYJEgFMFNBgJFcqDVJwXUJVJFZJchIgJCCxOEJqXxOwXUJyDJBVRuscisciJBiJBieUtqXiJFDJkiFsJXQUGEZJcUJFsJXZtXIrXZDZJDrZJFNJDZJFstXvJFQqXvJFCJEsJXQJqkhkNGBbDJdTRbYJMEBlDwXUJMEFiJFcfXNJDRcNJWMTBLJXC", + "BraFUtHBFSJFdbNBLJXVJQoYJNEBSJBEJfHSJHwXUJCJdAZJMGjaFVJXEJPNJBlEJfFiJFpFbFEJqIJBVJCrIBdHiJhOPFChvJVJZJNJWxGFNIFLueIBQJqUHEJfUFstOZJDrlXEASJRlXVJXSFwVJNJWD", + "QJEJNNJDQJEJIBSFQJEJxegBQJEJfHEPSJBmXEJFSJCDEJqXLXNJFQqXIcQsFNJFIFEJqXUJgFsJXIJBUJEJfHNFvJxEqXNJnXUJFQqD", + "IJBEJqXZJ", + ], + q5t = + "~~AzB~X~a~KN~Q~D~S~C~G~E~Y~p~L~I~O~eH~g~V~hxyumi~~U~~Z~~v~~s~~dkoblPjfnqwMcRTr~W~~~F~~~~~Jt", + Wu = null; + function Qfe(r) { + return (0, L5t.hexlify)((0, Bl.toUtf8Bytes)(r)); + } + var F5t = "0xe3818de38284e3818f", + W5t = "0xe3818de38283e3818f"; + function Xfe(r) { + if (Wu !== null) return; + Wu = []; + var e = {}; + (e[(0, Bl.toUtf8String)([227, 130, 154])] = !1), + (e[(0, Bl.toUtf8String)([227, 130, 153])] = !1), + (e[(0, Bl.toUtf8String)([227, 130, 133])] = (0, Bl.toUtf8String)([ + 227, 130, 134, + ])), + (e[(0, Bl.toUtf8String)([227, 129, 163])] = (0, Bl.toUtf8String)([ + 227, 129, 164, + ])), + (e[(0, Bl.toUtf8String)([227, 130, 131])] = (0, Bl.toUtf8String)([ + 227, 130, 132, + ])), + (e[(0, Bl.toUtf8String)([227, 130, 135])] = (0, Bl.toUtf8String)([ + 227, 130, 136, + ])); + function t(w) { + for (var C = "", I = 0; I < w.length; I++) { + var k = w[I], + O = e[k]; + O !== !1 && (O && (k = O), (C += k)); + } + return C; + } + function n(w, C) { + return (w = t(w)), (C = t(C)), w < C ? -1 : w > C ? 1 : 0; + } + for (var a = 3; a <= 9; a++) + for (var i = D5t[a - 3], s = 0; s < i.length; s += a) { + for (var c = [], l = 0; l < a; l++) { + var d = q5t.indexOf(i[s + l]); + c.push(227), c.push(d & 64 ? 130 : 129), c.push((d & 63) + 128); + } + Wu.push((0, Bl.toUtf8String)(c)); + } + if ((Wu.sort(n), Qfe(Wu[442]) === F5t && Qfe(Wu[443]) === W5t)) { + var m = Wu[442]; + (Wu[442] = Wu[443]), (Wu[443] = m); + } + if ( + LA.Wordlist.check(r) !== + "0xcb36b09e6baa935787fd762ce65e80b0c6a8dabdfbc3a7f86ac0e2c4fd111600" + ) + throw ( + ((Wu = null), new Error("BIP39 Wordlist for ja (Japanese) FAILED")) + ); + } + var U5t = (function (r) { + O5t(e, r); + function e() { + return r.call(this, "ja") || this; + } + return ( + (e.prototype.getWord = function (t) { + return Xfe(this), Wu[t]; + }), + (e.prototype.getWordIndex = function (t) { + return Xfe(this), Wu.indexOf(t); + }), + (e.prototype.split = function (t) { + return LA.logger.checkNormalize(), t.split(/(?:\u3000| )+/g); + }), + (e.prototype.join = function (t) { + return t.join("\u3000"); + }), + e + ); + })(LA.Wordlist), + eme = new U5t(); + wv.langJa = eme; + LA.Wordlist.register(eme); + }); + var ame = N((_v) => { + "use strict"; + _(); + x(); + var H5t = + (_v && _v.__extends) || + (function () { + var r = function (e, t) { + return ( + (r = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (n, a) { + n.__proto__ = a; + }) || + function (n, a) { + for (var i in a) + Object.prototype.hasOwnProperty.call(a, i) && (n[i] = a[i]); + }), + r(e, t) + ); + }; + return function (e, t) { + if (typeof t != "function" && t !== null) + throw new TypeError( + "Class extends value " + + String(t) + + " is not a constructor or null" + ); + r(e, t); + function n() { + this.constructor = e; + } + e.prototype = + t === null + ? Object.create(t) + : ((n.prototype = t.prototype), new n()); + }; + })(); + Object.defineProperty(_v, "__esModule", { value: !0 }); + _v.langKo = void 0; + var z5t = Ki(), + AW = jp(), + j5t = [ + "OYAa", + "ATAZoATBl3ATCTrATCl8ATDloATGg3ATHT8ATJT8ATJl3ATLlvATLn4ATMT8ATMX8ATMboATMgoAToLbAToMTATrHgATvHnAT3AnAT3JbAT3MTAT8DbAT8JTAT8LmAT8MYAT8MbAT#LnAUHT8AUHZvAUJXrAUJX8AULnrAXJnvAXLUoAXLgvAXMn6AXRg3AXrMbAX3JTAX3QbAYLn3AZLgvAZrSUAZvAcAZ8AaAZ8AbAZ8AnAZ8HnAZ8LgAZ8MYAZ8MgAZ8OnAaAboAaDTrAaFTrAaJTrAaJboAaLVoAaMXvAaOl8AaSeoAbAUoAbAg8AbAl4AbGnrAbMT8AbMXrAbMn4AbQb8AbSV8AbvRlAb8AUAb8AnAb8HgAb8JTAb8NTAb8RbAcGboAcLnvAcMT8AcMX8AcSToAcrAaAcrFnAc8AbAc8MgAfGgrAfHboAfJnvAfLV8AfLkoAfMT8AfMnoAfQb8AfScrAfSgrAgAZ8AgFl3AgGX8AgHZvAgHgrAgJXoAgJX8AgJboAgLZoAgLn4AgOX8AgoATAgoAnAgoCUAgoJgAgoLXAgoMYAgoSeAgrDUAgrJTAhrFnAhrLjAhrQgAjAgoAjJnrAkMX8AkOnoAlCTvAlCV8AlClvAlFg4AlFl6AlFn3AloSnAlrAXAlrAfAlrFUAlrFbAlrGgAlrOXAlvKnAlvMTAl3AbAl3MnAnATrAnAcrAnCZ3AnCl8AnDg8AnFboAnFl3AnHX4AnHbrAnHgrAnIl3AnJgvAnLXoAnLX4AnLbrAnLgrAnLhrAnMXoAnMgrAnOn3AnSbrAnSeoAnvLnAn3OnCTGgvCTSlvCTvAUCTvKnCTvNTCT3CZCT3GUCT3MTCT8HnCUCZrCULf8CULnvCU3HnCU3JUCY6NUCbDb8CbFZoCbLnrCboOTCboScCbrFnCbvLnCb8AgCb8HgCb$LnCkLfoClBn3CloDUDTHT8DTLl3DTSU8DTrAaDTrLXDTrLjDTrOYDTrOgDTvFXDTvFnDT3HUDT3LfDUCT9DUDT4DUFVoDUFV8DUFkoDUGgrDUJnrDULl8DUMT8DUMXrDUMX4DUMg8DUOUoDUOgvDUOg8DUSToDUSZ8DbDXoDbDgoDbGT8DbJn3DbLg3DbLn4DbMXrDbMg8DbOToDboJXGTClvGTDT8GTFZrGTLVoGTLlvGTLl3GTMg8GTOTvGTSlrGToCUGTrDgGTrJYGTrScGTtLnGTvAnGTvQgGUCZrGUDTvGUFZoGUHXrGULnvGUMT8GUoMgGXoLnGXrMXGXrMnGXvFnGYLnvGZOnvGZvOnGZ8LaGZ8LmGbAl3GbDYvGbDlrGbHX3GbJl4GbLV8GbLn3GbMn4GboJTGboRfGbvFUGb3GUGb4JnGgDX3GgFl$GgJlrGgLX6GgLZoGgLf8GgOXoGgrAgGgrJXGgrMYGgrScGgvATGgvOYGnAgoGnJgvGnLZoGnLg3GnLnrGnQn8GnSbrGnrMgHTClvHTDToHTFT3HTQT8HToJTHToJgHTrDUHTrMnHTvFYHTvRfHT8MnHT8SUHUAZ8HUBb4HUDTvHUoMYHXFl6HXJX6HXQlrHXrAUHXrMnHXrSbHXvFYHXvKXHX3LjHX3MeHYvQlHZrScHZvDbHbAcrHbFT3HbFl3HbJT8HbLTrHbMT8HbMXrHbMbrHbQb8HbSX3HboDbHboJTHbrFUHbrHgHbrJTHb8JTHb8MnHb8QgHgAlrHgDT3HgGgrHgHgrHgJTrHgJT8HgLX@HgLnrHgMT8HgMX8HgMboHgOnrHgQToHgRg3HgoHgHgrCbHgrFnHgrLVHgvAcHgvAfHnAloHnCTrHnCnvHnGTrHnGZ8HnGnvHnJT8HnLf8HnLkvHnMg8HnRTrITvFUITvFnJTAXrJTCV8JTFT3JTFT8JTFn4JTGgvJTHT8JTJT8JTJXvJTJl3JTJnvJTLX4JTLf8JTLhvJTMT8JTMXrJTMnrJTObrJTQT8JTSlvJT8DUJT8FkJT8MTJT8OXJT8OgJT8QUJT8RfJUHZoJXFT4JXFlrJXGZ8JXGnrJXLV8JXLgvJXMXoJXMX3JXNboJXPlvJXoJTJXoLkJXrAXJXrHUJXrJgJXvJTJXvOnJX4KnJYAl3JYJT8JYLhvJYQToJYrQXJY6NUJbAl3JbCZrJbDloJbGT8JbGgrJbJXvJbJboJbLf8JbLhrJbLl3JbMnvJbRg8JbSZ8JboDbJbrCZJbrSUJb3KnJb8LnJfRn8JgAXrJgCZrJgDTrJgGZrJgGZ8JgHToJgJT8JgJXoJgJgvJgLX4JgLZ3JgLZ8JgLn4JgMgrJgMn4JgOgvJgPX6JgRnvJgSToJgoCZJgoJbJgoMYJgrJXJgrJgJgrLjJg6MTJlCn3JlGgvJlJl8Jl4AnJl8FnJl8HgJnAToJnATrJnAbvJnDUoJnGnrJnJXrJnJXvJnLhvJnLnrJnLnvJnMToJnMT8JnMXvJnMX3JnMg8JnMlrJnMn4JnOX8JnST4JnSX3JnoAgJnoAnJnoJTJnoObJnrAbJnrAkJnrHnJnrJTJnrJYJnrOYJnrScJnvCUJnvFaJnvJgJnvJnJnvOYJnvQUJnvRUJn3FnJn3JTKnFl3KnLT6LTDlvLTMnoLTOn3LTRl3LTSb4LTSlrLToAnLToJgLTrAULTrAcLTrCULTrHgLTrMgLT3JnLULnrLUMX8LUoJgLVATrLVDTrLVLb8LVoJgLV8MgLV8RTLXDg3LXFlrLXrCnLXrLXLX3GTLX4GgLX4OYLZAXrLZAcrLZAgrLZAhrLZDXyLZDlrLZFbrLZFl3LZJX6LZJX8LZLc8LZLnrLZSU8LZoJTLZoJnLZrAgLZrAnLZrJYLZrLULZrMgLZrSkLZvAnLZvGULZvJeLZvOTLZ3FZLZ4JXLZ8STLZ8ScLaAT3LaAl3LaHT8LaJTrLaJT8LaJXrLaJgvLaJl4LaLVoLaMXrLaMXvLaMX8LbClvLbFToLbHlrLbJn4LbLZ3LbLhvLbMXrLbMnoLbvSULcLnrLc8HnLc8MTLdrMnLeAgoLeOgvLeOn3LfAl3LfLnvLfMl3LfOX8Lf8AnLf8JXLf8LXLgJTrLgJXrLgJl8LgMX8LgRZrLhCToLhrAbLhrFULhrJXLhvJYLjHTrLjHX4LjJX8LjLhrLjSX3LjSZ4LkFX4LkGZ8LkGgvLkJTrLkMXoLkSToLkSU8LkSZ8LkoOYLl3FfLl3MgLmAZrLmCbrLmGgrLmHboLmJnoLmJn3LmLfoLmLhrLmSToLnAX6LnAb6LnCZ3LnCb3LnDTvLnDb8LnFl3LnGnrLnHZvLnHgvLnITvLnJT8LnJX8LnJlvLnLf8LnLg6LnLhvLnLnoLnMXrLnMg8LnQlvLnSbrLnrAgLnrAnLnrDbLnrFkLnrJdLnrMULnrOYLnrSTLnvAnLnvDULnvHgLnvOYLnvOnLn3GgLn4DULn4JTLn4JnMTAZoMTAloMTDb8MTFT8MTJnoMTJnrMTLZrMTLhrMTLkvMTMX8MTRTrMToATMTrDnMTrOnMT3JnMT4MnMT8FUMT8FaMT8FlMT8GTMT8GbMT8GnMT8HnMT8JTMT8JbMT8OTMUCl8MUJTrMUJU8MUMX8MURTrMUSToMXAX6MXAb6MXCZoMXFXrMXHXrMXLgvMXOgoMXrAUMXrAnMXrHgMXrJYMXrJnMXrMTMXrMgMXrOYMXrSZMXrSgMXvDUMXvOTMX3JgMX3OTMX4JnMX8DbMX8FnMX8HbMX8HgMX8HnMX8LbMX8MnMX8OnMYAb8MYGboMYHTvMYHX4MYLTrMYLnvMYMToMYOgvMYRg3MYSTrMbAToMbAXrMbAl3MbAn8MbGZ8MbJT8MbJXrMbMXvMbMX8MbMnoMbrMUMb8AfMb8FbMb8FkMcJXoMeLnrMgFl3MgGTvMgGXoMgGgrMgGnrMgHT8MgHZrMgJnoMgLnrMgLnvMgMT8MgQUoMgrHnMgvAnMg8HgMg8JYMg8LfMloJnMl8ATMl8AXMl8JYMnAToMnAT4MnAZ8MnAl3MnAl4MnCl8MnHT8MnHg8MnJnoMnLZoMnLhrMnMXoMnMX3MnMnrMnOgvMnrFbMnrFfMnrFnMnrNTMnvJXNTMl8OTCT3OTFV8OTFn3OTHZvOTJXrOTOl3OT3ATOT3JUOT3LZOT3LeOT3MbOT8ATOT8AbOT8AgOT8MbOUCXvOUMX3OXHXvOXLl3OXrMUOXvDbOX6NUOX8JbOYFZoOYLbrOYLkoOYMg8OYSX3ObHTrObHT4ObJgrObLhrObMX3ObOX8Ob8FnOeAlrOeJT8OeJXrOeJnrOeLToOeMb8OgJXoOgLXoOgMnrOgOXrOgOloOgoAgOgoJbOgoMYOgoSTOg8AbOjLX4OjMnoOjSV8OnLVoOnrAgOn3DUPXQlrPXvFXPbvFTPdAT3PlFn3PnvFbQTLn4QToAgQToMTQULV8QURg8QUoJnQXCXvQbFbrQb8AaQb8AcQb8FbQb8MYQb8ScQeAlrQeLhrQjAn3QlFXoQloJgQloSnRTLnvRTrGURTrJTRUJZrRUoJlRUrQnRZrLmRZrMnRZrSnRZ8ATRZ8JbRZ8ScRbMT8RbST3RfGZrRfMX8RfMgrRfSZrRnAbrRnGT8RnvJgRnvLfRnvMTRn8AaSTClvSTJgrSTOXrSTRg3STRnvSToAcSToAfSToAnSToHnSToLjSToMTSTrAaSTrEUST3BYST8AgST8LmSUAZvSUAgrSUDT4SUDT8SUGgvSUJXoSUJXvSULTrSU8JTSU8LjSV8AnSV8JgSXFToSXLf8SYvAnSZrDUSZrMUSZrMnSZ8HgSZ8JTSZ8JgSZ8MYSZ8QUSaQUoSbCT3SbHToSbQYvSbSl4SboJnSbvFbSb8HbSb8JgSb8OTScGZrScHgrScJTvScMT8ScSToScoHbScrMTScvAnSeAZrSeAcrSeHboSeJUoSeLhrSeMT8SeMXrSe6JgSgHTrSkJnoSkLnvSk8CUSlFl3SlrSnSl8GnSmAboSmGT8SmJU8", + "ATLnDlATrAZoATrJX4ATrMT8ATrMX4ATrRTrATvDl8ATvJUoATvMl8AT3AToAT3MX8AT8CT3AT8DT8AT8HZrAT8HgoAUAgFnAUCTFnAXoMX8AXrAT8AXrGgvAXrJXvAXrOgoAXvLl3AZvAgoAZvFbrAZvJXoAZvJl8AZvJn3AZvMX8AZvSbrAZ8FZoAZ8LZ8AZ8MU8AZ8OTvAZ8SV8AZ8SX3AbAgFZAboJnoAbvGboAb8ATrAb8AZoAb8AgrAb8Al4Ab8Db8Ab8JnoAb8LX4Ab8LZrAb8LhrAb8MT8Ab8OUoAb8Qb8Ab8ST8AcrAUoAcrAc8AcrCZ3AcrFT3AcrFZrAcrJl4AcrJn3AcrMX3AcrOTvAc8AZ8Ac8MT8AfAcJXAgoFn4AgoGgvAgoGnrAgoLc8AgoMXoAgrLnrAkrSZ8AlFXCTAloHboAlrHbrAlrLhrAlrLkoAl3CZrAl3LUoAl3LZrAnrAl4AnrMT8An3HT4BT3IToBX4MnvBb!Ln$CTGXMnCToLZ4CTrHT8CT3JTrCT3RZrCT#GTvCU6GgvCU8Db8CU8GZrCU8HT8CboLl3CbrGgrCbrMU8Cb8DT3Cb8GnrCb8LX4Cb8MT8Cb8ObrCgrGgvCgrKX4Cl8FZoDTrAbvDTrDboDTrGT6DTrJgrDTrMX3DTrRZrDTrRg8DTvAVvDTvFZoDT3DT8DT3Ln3DT4HZrDT4MT8DT8AlrDT8MT8DUAkGbDUDbJnDYLnQlDbDUOYDbMTAnDbMXSnDboAT3DboFn4DboLnvDj6JTrGTCgFTGTGgFnGTJTMnGTLnPlGToJT8GTrCT3GTrLVoGTrLnvGTrMX3GTrMboGTvKl3GZClFnGZrDT3GZ8DTrGZ8FZ8GZ8MXvGZ8On8GZ8ST3GbCnQXGbMbFnGboFboGboJg3GboMXoGb3JTvGb3JboGb3Mn6Gb3Qb8GgDXLjGgMnAUGgrDloGgrHX4GgrSToGgvAXrGgvAZvGgvFbrGgvLl3GgvMnvGnDnLXGnrATrGnrMboGnuLl3HTATMnHTAgCnHTCTCTHTrGTvHTrHTvHTrJX8HTrLl8HTrMT8HTrMgoHTrOTrHTuOn3HTvAZrHTvDTvHTvGboHTvJU8HTvLl3HTvMXrHTvQb4HT4GT6HT4JT8HT4Jb#HT8Al3HT8GZrHT8GgrHT8HX4HT8Jb8HT8JnoHT8LTrHT8LgvHT8SToHT8SV8HUoJUoHUoJX8HUoLnrHXrLZoHXvAl3HX3LnrHX4FkvHX4LhrHX4MXoHX4OnoHZrAZ8HZrDb8HZrGZ8HZrJnrHZvGZ8HZvLnvHZ8JnvHZ8LhrHbCXJlHbMTAnHboJl4HbpLl3HbrJX8HbrLnrHbrMnvHbvRYrHgoSTrHgrFV8HgrGZ8HgrJXoHgrRnvHgvBb!HgvGTrHgvHX4HgvHn!HgvLTrHgvSU8HnDnLbHnFbJbHnvDn8Hn6GgvHn!BTvJTCTLnJTQgFnJTrAnvJTrLX4JTrOUoJTvFn3JTvLnrJTvNToJT3AgoJT3Jn4JT3LhvJT3ObrJT8AcrJT8Al3JT8JT8JT8JnoJT8LX4JT8LnrJT8MX3JT8Rg3JT8Sc8JUoBTvJU8AToJU8GZ8JU8GgvJU8JTrJU8JXrJU8JnrJU8LnvJU8ScvJXHnJlJXrGgvJXrJU8JXrLhrJXrMT8JXrMXrJXrQUoJXvCTvJXvGZ8JXvGgrJXvQT8JX8Ab8JX8DT8JX8GZ8JX8HZvJX8LnrJX8MT8JX8MXoJX8MnvJX8ST3JYGnCTJbAkGbJbCTAnJbLTAcJboDT3JboLb6JbrAnvJbrCn3JbrDl8JbrGboJbrIZoJbrJnvJbrMnvJbrQb4Jb8RZrJeAbAnJgJnFbJgScAnJgrATrJgvHZ8JgvMn4JlJlFbJlLiQXJlLjOnJlRbOlJlvNXoJlvRl3Jl4AcrJl8AUoJl8MnrJnFnMlJnHgGbJnoDT8JnoFV8JnoGgvJnoIT8JnoQToJnoRg3JnrCZ3JnrGgrJnrHTvJnrLf8JnrOX8JnvAT3JnvFZoJnvGT8JnvJl4JnvMT8JnvMX8JnvOXrJnvPX6JnvSX3JnvSZrJn3MT8Jn3MX8Jn3RTrLTATKnLTJnLTLTMXKnLTRTQlLToGb8LTrAZ8LTrCZ8LTrDb8LTrHT8LT3PX6LT4FZoLT$CTvLT$GgrLUvHX3LVoATrLVoAgoLVoJboLVoMX3LVoRg3LV8CZ3LV8FZoLV8GTvLXrDXoLXrFbrLXvAgvLXvFlrLXvLl3LXvRn6LX4Mb8LX8GT8LYCXMnLYrMnrLZoSTvLZrAZvLZrAloLZrFToLZrJXvLZrJboLZrJl4LZrLnrLZrMT8LZrOgvLZrRnvLZrST4LZvMX8LZvSlvLZ8AgoLZ8CT3LZ8JT8LZ8LV8LZ8LZoLZ8Lg8LZ8SV8LZ8SbrLZ$HT8LZ$Mn4La6CTvLbFbMnLbRYFTLbSnFZLboJT8LbrAT9LbrGb3LbrQb8LcrJX8LcrMXrLerHTvLerJbrLerNboLgrDb8LgrGZ8LgrHTrLgrMXrLgrSU8LgvJTrLgvLl3Lg6Ll3LhrLnrLhrMT8LhvAl4LiLnQXLkoAgrLkoJT8LkoJn4LlrSU8Ll3FZoLl3HTrLl3JX8Ll3JnoLl3LToLmLeFbLnDUFbLnLVAnLnrATrLnrAZoLnrAb8LnrAlrLnrGgvLnrJU8LnrLZrLnrLhrLnrMb8LnrOXrLnrSZ8LnvAb4LnvDTrLnvDl8LnvHTrLnvHbrLnvJT8LnvJU8LnvJbrLnvLhvLnvMX8LnvMb8LnvNnoLnvSU8Ln3Al3Ln4FZoLn4GT6Ln4JgvLn4LhrLn4MT8Ln4SToMToCZrMToJX8MToLX4MToLf8MToRg3MTrEloMTvGb6MT3BTrMT3Lb6MT8AcrMT8AgrMT8GZrMT8JnoMT8LnrMT8MX3MUOUAnMXAbFnMXoAloMXoJX8MXoLf8MXoLl8MXrAb8MXrDTvMXrGT8MXrGgrMXrHTrMXrLf8MXrMU8MXrOXvMXrQb8MXvGT8MXvHTrMXvLVoMX3AX3MX3Jn3MX3LhrMX3MX3MX4AlrMX4OboMX8GTvMX8GZrMX8GgrMX8JT8MX8JX8MX8LhrMX8MT8MYDUFbMYMgDbMbGnFfMbvLX4MbvLl3Mb8Mb8Mb8ST4MgGXCnMg8ATrMg8AgoMg8CZrMg8DTrMg8DboMg8HTrMg8JgrMg8LT8MloJXoMl8AhrMl8JT8MnLgAUMnoJXrMnoLX4MnoLhrMnoMT8MnrAl4MnrDb8MnrOTvMnrOgvMnrQb8MnrSU8MnvGgrMnvHZ8Mn3MToMn4DTrMn4LTrMn4Mg8NnBXAnOTFTFnOToAToOTrGgvOTrJX8OT3JXoOT6MTrOT8GgrOT8HTpOT8MToOUoHT8OUoJT8OUoLn3OXrAgoOXrDg8OXrMT8OXvSToOX6CTvOX8CZrOX8OgrOb6HgvOb8AToOb8MT8OcvLZ8OgvAlrOgvHTvOgvJTrOgvJnrOgvLZrOgvLn4OgvMT8OgvRTrOg8AZoOg8DbvOnrOXoOnvJn4OnvLhvOnvRTrOn3GgoOn3JnvOn6JbvOn8OTrPTGYFTPbBnFnPbGnDnPgDYQTPlrAnvPlrETvPlrLnvPlrMXvPlvFX4QTMTAnQTrJU8QYCnJlQYJlQlQbGTQbQb8JnrQb8LZoQb8LnvQb8MT8Qb8Ml8Qb8ST4QloAl4QloHZvQloJX8QloMn8QnJZOlRTrAZvRTrDTrRTvJn4RTvLhvRT4Jb8RZrAZrRZ8AkrRZ8JU8RZ8LV8RZ8LnvRbJlQXRg3GboRg3MnvRg8AZ8Rg8JboRg8Jl4RnLTCbRnvFl3RnvQb8SToAl4SToCZrSToFZoSToHXrSToJU8SToJgvSToJl4SToLhrSToMX3STrAlvSTrCT9STrCgrSTrGgrSTrHXrSTrHboSTrJnoSTrNboSTvLnrST4AZoST8Ab8ST8JT8SUoJn3SU6HZ#SU6JTvSU8Db8SU8HboSU8LgrSV8JT8SZrAcrSZrAl3SZrJT8SZrJnvSZrMT8SZvLUoSZ4FZoSZ8JnoSZ8RZrScoLnrScoMT8ScoMX8ScrAT4ScrAZ8ScrLZ8ScrLkvScvDb8ScvLf8ScvNToSgrFZrShvKnrSloHUoSloLnrSlrMXoSl8HgrSmrJUoSn3BX6", + "ATFlOn3ATLgrDYAT4MTAnAT8LTMnAYJnRTrAbGgJnrAbLV8LnAbvNTAnAeFbLg3AgOYMXoAlQbFboAnDboAfAnJgoJTBToDgAnBUJbAl3BboDUAnCTDlvLnCTFTrSnCYoQTLnDTwAbAnDUDTrSnDUHgHgrDX8LXFnDbJXAcrETvLTLnGTFTQbrGTMnGToGT3DUFbGUJlPX3GbQg8LnGboJbFnGb3GgAYGgAg8ScGgMbAXrGgvAbAnGnJTLnvGnvATFgHTDT6ATHTrDlJnHYLnMn8HZrSbJTHZ8LTFnHbFTJUoHgSeMT8HgrLjAnHgvAbAnHlFUrDlHnDgvAnHnHTFT3HnQTGnrJTAaMXvJTGbCn3JTOgrAnJXvAXMnJbMg8SnJbMnRg3Jb8LTMnJnAl3OnJnGYrQlJnJlQY3LTDlCn3LTJjLg3LTLgvFXLTMg3GTLV8HUOgLXFZLg3LXNXrMnLX8QXFnLX9AlMYLYLXPXrLZAbJU8LZDUJU8LZMXrSnLZ$AgFnLaPXrDULbFYrMnLbMn8LXLboJgJgLeFbLg3LgLZrSnLgOYAgoLhrRnJlLkCTrSnLkOnLhrLnFX%AYLnFZoJXLnHTvJbLnLloAbMTATLf8MTHgJn3MTMXrAXMT3MTFnMUITvFnMXFX%AYMXMXvFbMXrFTDbMYAcMX3MbLf8SnMb8JbFnMgMXrMTMgvAXFnMgvGgCmMnAloSnMnFnJTrOXvMXSnOX8HTMnObJT8ScObLZFl3ObMXCZoPTLgrQXPUFnoQXPU3RXJlPX3RkQXPbrJXQlPlrJbFnQUAhrDbQXGnCXvQYLnHlvQbLfLnvRTOgvJbRXJYrQlRYLnrQlRbLnrQlRlFT8JlRlFnrQXSTClCn3STHTrAnSTLZQlrSTMnGTrSToHgGbSTrGTDnSTvGXCnST3HgFbSU3HXAXSbAnJn3SbFT8LnScLfLnv", + "AT3JgJX8AT8FZoSnAT8JgFV8AT8LhrDbAZ8JT8DbAb8GgLhrAb8SkLnvAe8MT8SnAlMYJXLVAl3GYDTvAl3LfLnvBUDTvLl3CTOn3HTrCT3DUGgrCU8MT8AbCbFTrJUoCgrDb8MTDTLV8JX8DTLnLXQlDT8LZrSnDUQb8FZ8DUST4JnvDb8ScOUoDj6GbJl4GTLfCYMlGToAXvFnGboAXvLnGgAcrJn3GgvFnSToGnLf8JnvGn#HTDToHTLnFXJlHTvATFToHTvHTDToHTvMTAgoHT3STClvHT4AlFl6HT8HTDToHUoDgJTrHUoScMX3HbRZrMXoHboJg8LTHgDb8JTrHgMToLf8HgvLnLnoHnHn3HT4Hn6MgvAnJTJU8ScvJT3AaQT8JT8HTrAnJXrRg8AnJbAloMXoJbrATFToJbvMnoSnJgDb6GgvJgDb8MXoJgSX3JU8JguATFToJlPYLnQlJlQkDnLbJlQlFYJlJl8Lf8OTJnCTFnLbJnLTHXMnJnLXGXCnJnoFfRg3JnrMYRg3Jn3HgFl3KT8Dg8LnLTRlFnPTLTvPbLbvLVoSbrCZLXMY6HT3LXNU7DlrLXNXDTATLX8DX8LnLZDb8JU8LZMnoLhrLZSToJU8LZrLaLnrLZvJn3SnLZ8LhrSnLaJnoMT8LbFlrHTvLbrFTLnrLbvATLlvLb6OTFn3LcLnJZOlLeAT6Mn4LeJT3ObrLg6LXFlrLhrJg8LnLhvDlPX4LhvLfLnvLj6JTFT3LnFbrMXoLnQluCTvLnrQXCY6LnvLfLnvLnvMgLnvLnvSeLf8MTMbrJn3MT3JgST3MT8AnATrMT8LULnrMUMToCZrMUScvLf8MXoDT8SnMX6ATFToMX8AXMT8MX8FkMT8MX8HTrDUMX8ScoSnMYJT6CTvMgAcrMXoMg8SToAfMlvAXLg3MnFl3AnvOT3AnFl3OUoATHT8OU3RnLXrOXrOXrSnObPbvFn6Og8HgrSnOg8OX8DbPTvAgoJgPU3RYLnrPXrDnJZrPb8CTGgvPlrLTDlvPlvFUJnoQUvFXrQlQeMnoAl3QlrQlrSnRTFTrJUoSTDlLiLXSTFg6HT3STJgoMn4STrFTJTrSTrLZFl3ST4FnMXoSUrDlHUoScvHTvSnSfLkvMXo", + "AUoAcrMXoAZ8HboAg8AbOg6ATFgAg8AloMXoAl3AT8JTrAl8MX8MXoCT3SToJU8Cl8Db8MXoDT8HgrATrDboOT8MXoGTOTrATMnGT8LhrAZ8GnvFnGnQXHToGgvAcrHTvAXvLl3HbrAZoMXoHgBlFXLg3HgMnFXrSnHgrSb8JUoHn6HT8LgvITvATrJUoJUoLZrRnvJU8HT8Jb8JXvFX8QT8JXvLToJTrJYrQnGnQXJgrJnoATrJnoJU8ScvJnvMnvMXoLTCTLgrJXLTJlRTvQlLbRnJlQYvLbrMb8LnvLbvFn3RnoLdCVSTGZrLeSTvGXCnLg3MnoLn3MToLlrETvMT8SToAl3MbrDU6GTvMb8LX4LhrPlrLXGXCnSToLf8Rg3STrDb8LTrSTvLTHXMnSb3RYLnMnSgOg6ATFg", + "HUDlGnrQXrJTrHgLnrAcJYMb8DULc8LTvFgGnCk3Mg8JbAnLX4QYvFYHnMXrRUoJnGnvFnRlvFTJlQnoSTrBXHXrLYSUJgLfoMT8Se8DTrHbDb", + "AbDl8SToJU8An3RbAb8ST8DUSTrGnrAgoLbFU6Db8LTrMg8AaHT8Jb8ObDl8SToJU8Pb3RlvFYoJl", + ], + K5t = + "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789!@#$%^&*"; + function V5t(r) { + return ( + r >= 40 ? (r = r + 168 - 40) : r >= 19 && (r = r + 97 - 19), + (0, z5t.toUtf8String)([225, (r >> 6) + 132, (r & 63) + 128]) + ); + } + var ug = null; + function rme(r) { + if ( + ug == null && + ((ug = []), + j5t.forEach(function (e, t) { + t += 4; + for (var n = 0; n < e.length; n += t) { + for (var a = "", i = 0; i < t; i++) a += V5t(K5t.indexOf(e[n + i])); + ug.push(a); + } + }), + ug.sort(), + AW.Wordlist.check(r) !== + "0xf9eddeace9c5d3da9c93cf7d3cd38f6a13ed3affb933259ae865714e8a3ae71a") + ) + throw ((ug = null), new Error("BIP39 Wordlist for ko (Korean) FAILED")); + } + var G5t = (function (r) { + H5t(e, r); + function e() { + return r.call(this, "ko") || this; + } + return ( + (e.prototype.getWord = function (t) { + return rme(this), ug[t]; + }), + (e.prototype.getWordIndex = function (t) { + return rme(this), ug.indexOf(t); + }), + e + ); + })(AW.Wordlist), + nme = new G5t(); + _v.langKo = nme; + AW.Wordlist.register(nme); + }); + var ome = N((xv) => { + "use strict"; + _(); + x(); + var Y5t = + (xv && xv.__extends) || + (function () { + var r = function (e, t) { + return ( + (r = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (n, a) { + n.__proto__ = a; + }) || + function (n, a) { + for (var i in a) + Object.prototype.hasOwnProperty.call(a, i) && (n[i] = a[i]); + }), + r(e, t) + ); + }; + return function (e, t) { + if (typeof t != "function" && t !== null) + throw new TypeError( + "Class extends value " + + String(t) + + " is not a constructor or null" + ); + r(e, t); + function n() { + this.constructor = e; + } + e.prototype = + t === null + ? Object.create(t) + : ((n.prototype = t.prototype), new n()); + }; + })(); + Object.defineProperty(xv, "__esModule", { value: !0 }); + xv.langIt = void 0; + var kW = jp(), + $5t = + "AbacoAbbaglioAbbinatoAbeteAbissoAbolireAbrasivoAbrogatoAccadereAccennoAccusatoAcetoneAchilleAcidoAcquaAcreAcrilicoAcrobataAcutoAdagioAddebitoAddomeAdeguatoAderireAdipeAdottareAdulareAffabileAffettoAffissoAffrantoAforismaAfosoAfricanoAgaveAgenteAgevoleAggancioAgireAgitareAgonismoAgricoloAgrumetoAguzzoAlabardaAlatoAlbatroAlberatoAlboAlbumeAlceAlcolicoAlettoneAlfaAlgebraAlianteAlibiAlimentoAllagatoAllegroAllievoAllodolaAllusivoAlmenoAlogenoAlpacaAlpestreAltalenaAlternoAlticcioAltroveAlunnoAlveoloAlzareAmalgamaAmanitaAmarenaAmbitoAmbratoAmebaAmericaAmetistaAmicoAmmassoAmmendaAmmirareAmmonitoAmoreAmpioAmpliareAmuletoAnacardoAnagrafeAnalistaAnarchiaAnatraAncaAncellaAncoraAndareAndreaAnelloAngeloAngolareAngustoAnimaAnnegareAnnidatoAnnoAnnuncioAnonimoAnticipoAnziApaticoAperturaApodeApparireAppetitoAppoggioApprodoAppuntoAprileArabicaArachideAragostaAraldicaArancioAraturaArazzoArbitroArchivioArditoArenileArgentoArgineArgutoAriaArmoniaArneseArredatoArringaArrostoArsenicoArsoArteficeArzilloAsciuttoAscoltoAsepsiAsetticoAsfaltoAsinoAsolaAspiratoAsproAssaggioAsseAssolutoAssurdoAstaAstenutoAsticeAstrattoAtavicoAteismoAtomicoAtonoAttesaAttivareAttornoAttritoAttualeAusilioAustriaAutistaAutonomoAutunnoAvanzatoAvereAvvenireAvvisoAvvolgereAzioneAzotoAzzimoAzzurroBabeleBaccanoBacinoBacoBadessaBadilataBagnatoBaitaBalconeBaldoBalenaBallataBalzanoBambinoBandireBaraondaBarbaroBarcaBaritonoBarlumeBaroccoBasilicoBassoBatostaBattutoBauleBavaBavosaBeccoBeffaBelgioBelvaBendaBenevoleBenignoBenzinaBereBerlinaBetaBibitaBiciBidoneBifidoBigaBilanciaBimboBinocoloBiologoBipedeBipolareBirbanteBirraBiscottoBisestoBisnonnoBisonteBisturiBizzarroBlandoBlattaBollitoBonificoBordoBoscoBotanicoBottinoBozzoloBraccioBradipoBramaBrancaBravuraBretellaBrevettoBrezzaBrigliaBrillanteBrindareBroccoloBrodoBronzinaBrulloBrunoBubboneBucaBudinoBuffoneBuioBulboBuonoBurloneBurrascaBussolaBustaCadettoCaducoCalamaroCalcoloCalesseCalibroCalmoCaloriaCambusaCamerataCamiciaCamminoCamolaCampaleCanapaCandelaCaneCaninoCanottoCantinaCapaceCapelloCapitoloCapogiroCapperoCapraCapsulaCarapaceCarcassaCardoCarismaCarovanaCarrettoCartolinaCasaccioCascataCasermaCasoCassoneCastelloCasualeCatastaCatenaCatrameCautoCavilloCedibileCedrataCefaloCelebreCellulareCenaCenoneCentesimoCeramicaCercareCertoCerumeCervelloCesoiaCespoCetoChelaChiaroChiccaChiedereChimeraChinaChirurgoChitarraCiaoCiclismoCifrareCignoCilindroCiottoloCircaCirrosiCitricoCittadinoCiuffoCivettaCivileClassicoClinicaCloroCoccoCodardoCodiceCoerenteCognomeCollareColmatoColoreColposoColtivatoColzaComaCometaCommandoComodoComputerComuneConcisoCondurreConfermaCongelareConiugeConnessoConoscereConsumoContinuoConvegnoCopertoCopioneCoppiaCopricapoCorazzaCordataCoricatoCorniceCorollaCorpoCorredoCorsiaCorteseCosmicoCostanteCotturaCovatoCratereCravattaCreatoCredereCremosoCrescitaCretaCricetoCrinaleCrisiCriticoCroceCronacaCrostataCrucialeCruscaCucireCuculoCuginoCullatoCupolaCuratoreCursoreCurvoCuscinoCustodeDadoDainoDalmataDamerinoDanielaDannosoDanzareDatatoDavantiDavveroDebuttoDecennioDecisoDeclinoDecolloDecretoDedicatoDefinitoDeformeDegnoDelegareDelfinoDelirioDeltaDemenzaDenotatoDentroDepositoDerapataDerivareDerogaDescrittoDesertoDesiderioDesumereDetersivoDevotoDiametroDicembreDiedroDifesoDiffusoDigerireDigitaleDiluvioDinamicoDinnanziDipintoDiplomaDipoloDiradareDireDirottoDirupoDisagioDiscretoDisfareDisgeloDispostoDistanzaDisumanoDitoDivanoDiveltoDividereDivoratoDobloneDocenteDoganaleDogmaDolceDomatoDomenicaDominareDondoloDonoDormireDoteDottoreDovutoDozzinaDragoDruidoDubbioDubitareDucaleDunaDuomoDupliceDuraturoEbanoEccessoEccoEclissiEconomiaEderaEdicolaEdileEditoriaEducareEgemoniaEgliEgoismoEgregioElaboratoElargireEleganteElencatoElettoElevareElficoElicaElmoElsaElusoEmanatoEmblemaEmessoEmiroEmotivoEmozioneEmpiricoEmuloEndemicoEnduroEnergiaEnfasiEnotecaEntrareEnzimaEpatiteEpilogoEpisodioEpocaleEppureEquatoreErarioErbaErbosoEredeEremitaErigereErmeticoEroeErosivoErranteEsagonoEsameEsanimeEsaudireEscaEsempioEsercitoEsibitoEsigenteEsistereEsitoEsofagoEsortatoEsosoEspansoEspressoEssenzaEssoEstesoEstimareEstoniaEstrosoEsultareEtilicoEtnicoEtruscoEttoEuclideoEuropaEvasoEvidenzaEvitatoEvolutoEvvivaFabbricaFaccendaFachiroFalcoFamigliaFanaleFanfaraFangoFantasmaFareFarfallaFarinosoFarmacoFasciaFastosoFasulloFaticareFatoFavolosoFebbreFecolaFedeFegatoFelpaFeltroFemminaFendereFenomenoFermentoFerroFertileFessuraFestivoFettaFeudoFiabaFiduciaFifaFiguratoFiloFinanzaFinestraFinireFioreFiscaleFisicoFiumeFlaconeFlamencoFleboFlemmaFloridoFluenteFluoroFobicoFocacciaFocosoFoderatoFoglioFolataFolcloreFolgoreFondenteFoneticoFoniaFontanaForbitoForchettaForestaFormicaFornaioForoFortezzaForzareFosfatoFossoFracassoFranaFrassinoFratelloFreccettaFrenataFrescoFrigoFrollinoFrondeFrugaleFruttaFucilataFucsiaFuggenteFulmineFulvoFumanteFumettoFumosoFuneFunzioneFuocoFurboFurgoneFuroreFusoFutileGabbianoGaffeGalateoGallinaGaloppoGamberoGammaGaranziaGarboGarofanoGarzoneGasdottoGasolioGastricoGattoGaudioGazeboGazzellaGecoGelatinaGelsoGemelloGemmatoGeneGenitoreGennaioGenotipoGergoGhepardoGhiaccioGhisaGialloGildaGineproGiocareGioielloGiornoGioveGiratoGironeGittataGiudizioGiuratoGiustoGlobuloGlutineGnomoGobbaGolfGomitoGommoneGonfioGonnaGovernoGracileGradoGraficoGrammoGrandeGrattareGravosoGraziaGrecaGreggeGrifoneGrigioGrinzaGrottaGruppoGuadagnoGuaioGuantoGuardareGufoGuidareIbernatoIconaIdenticoIdillioIdoloIdraIdricoIdrogenoIgieneIgnaroIgnoratoIlareIllesoIllogicoIlludereImballoImbevutoImboccoImbutoImmaneImmersoImmolatoImpaccoImpetoImpiegoImportoImprontaInalareInarcareInattivoIncantoIncendioInchinoIncisivoInclusoIncontroIncrocioIncuboIndagineIndiaIndoleIneditoInfattiInfilareInflittoIngaggioIngegnoIngleseIngordoIngrossoInnescoInodoreInoltrareInondatoInsanoInsettoInsiemeInsonniaInsulinaIntasatoInteroIntonacoIntuitoInumidireInvalidoInveceInvitoIperboleIpnoticoIpotesiIppicaIrideIrlandaIronicoIrrigatoIrrorareIsolatoIsotopoIstericoIstitutoIstriceItaliaIterareLabbroLabirintoLaccaLaceratoLacrimaLacunaLaddoveLagoLampoLancettaLanternaLardosoLargaLaringeLastraLatenzaLatinoLattugaLavagnaLavoroLegaleLeggeroLemboLentezzaLenzaLeoneLepreLesivoLessatoLestoLetteraleLevaLevigatoLiberoLidoLievitoLillaLimaturaLimitareLimpidoLineareLinguaLiquidoLiraLiricaLiscaLiteLitigioLivreaLocandaLodeLogicaLombareLondraLongevoLoquaceLorenzoLotoLotteriaLuceLucidatoLumacaLuminosoLungoLupoLuppoloLusingaLussoLuttoMacabroMacchinaMaceroMacinatoMadamaMagicoMagliaMagneteMagroMaiolicaMalafedeMalgradoMalintesoMalsanoMaltoMalumoreManaManciaMandorlaMangiareManifestoMannaroManovraMansardaMantideManubrioMappaMaratonaMarcireMarettaMarmoMarsupioMascheraMassaiaMastinoMaterassoMatricolaMattoneMaturoMazurcaMeandroMeccanicoMecenateMedesimoMeditareMegaMelassaMelisMelodiaMeningeMenoMensolaMercurioMerendaMerloMeschinoMeseMessereMestoloMetalloMetodoMettereMiagolareMicaMicelioMicheleMicroboMidolloMieleMiglioreMilanoMiliteMimosaMineraleMiniMinoreMirinoMirtilloMiscelaMissivaMistoMisurareMitezzaMitigareMitraMittenteMnemonicoModelloModificaModuloMoganoMogioMoleMolossoMonasteroMoncoMondinaMonetarioMonileMonotonoMonsoneMontatoMonvisoMoraMordereMorsicatoMostroMotivatoMotosegaMottoMovenzaMovimentoMozzoMuccaMucosaMuffaMughettoMugnaioMulattoMulinelloMultiploMummiaMuntoMuovereMuraleMusaMuscoloMusicaMutevoleMutoNababboNaftaNanometroNarcisoNariceNarratoNascereNastrareNaturaleNauticaNaviglioNebulosaNecrosiNegativoNegozioNemmenoNeofitaNerettoNervoNessunoNettunoNeutraleNeveNevroticoNicchiaNinfaNitidoNobileNocivoNodoNomeNominaNordicoNormaleNorvegeseNostranoNotareNotiziaNotturnoNovellaNucleoNullaNumeroNuovoNutrireNuvolaNuzialeOasiObbedireObbligoObeliscoOblioOboloObsoletoOccasioneOcchioOccidenteOccorrereOccultareOcraOculatoOdiernoOdorareOffertaOffrireOffuscatoOggettoOggiOgnunoOlandeseOlfattoOliatoOlivaOlogrammaOltreOmaggioOmbelicoOmbraOmegaOmissioneOndosoOnereOniceOnnivoroOnorevoleOntaOperatoOpinioneOppostoOracoloOrafoOrdineOrecchinoOreficeOrfanoOrganicoOrigineOrizzonteOrmaOrmeggioOrnativoOrologioOrrendoOrribileOrtensiaOrticaOrzataOrzoOsareOscurareOsmosiOspedaleOspiteOssaOssidareOstacoloOsteOtiteOtreOttagonoOttimoOttobreOvaleOvestOvinoOviparoOvocitoOvunqueOvviareOzioPacchettoPacePacificoPadellaPadronePaesePagaPaginaPalazzinaPalesarePallidoPaloPaludePandoroPannelloPaoloPaonazzoPapricaParabolaParcellaParerePargoloPariParlatoParolaPartireParvenzaParzialePassivoPasticcaPataccaPatologiaPattumePavonePeccatoPedalarePedonalePeggioPelosoPenarePendicePenisolaPennutoPenombraPensarePentolaPepePepitaPerbenePercorsoPerdonatoPerforarePergamenaPeriodoPermessoPernoPerplessoPersuasoPertugioPervasoPesatorePesistaPesoPestiferoPetaloPettinePetulantePezzoPiacerePiantaPiattinoPiccinoPicozzaPiegaPietraPifferoPigiamaPigolioPigroPilaPiliferoPillolaPilotaPimpantePinetaPinnaPinoloPioggiaPiomboPiramidePireticoPiritePirolisiPitonePizzicoPlaceboPlanarePlasmaPlatanoPlenarioPochezzaPoderosoPodismoPoesiaPoggiarePolentaPoligonoPollicePolmonitePolpettaPolsoPoltronaPolverePomicePomodoroPontePopolosoPorfidoPorosoPorporaPorrePortataPosaPositivoPossessoPostulatoPotassioPoterePranzoPrassiPraticaPreclusoPredicaPrefissoPregiatoPrelievoPremerePrenotarePreparatoPresenzaPretestoPrevalsoPrimaPrincipePrivatoProblemaProcuraProdurreProfumoProgettoProlungaPromessaPronomePropostaProrogaProtesoProvaPrudentePrugnaPruritoPsichePubblicoPudicaPugilatoPugnoPulcePulitoPulsantePuntarePupazzoPupillaPuroQuadroQualcosaQuasiQuerelaQuotaRaccoltoRaddoppioRadicaleRadunatoRafficaRagazzoRagioneRagnoRamarroRamingoRamoRandagioRantolareRapatoRapinaRappresoRasaturaRaschiatoRasenteRassegnaRastrelloRataRavvedutoRealeRecepireRecintoReclutaReconditoRecuperoRedditoRedimereRegalatoRegistroRegolaRegressoRelazioneRemareRemotoRennaReplicaReprimereReputareResaResidenteResponsoRestauroReteRetinaRetoricaRettificaRevocatoRiassuntoRibadireRibelleRibrezzoRicaricaRiccoRicevereRiciclatoRicordoRicredutoRidicoloRidurreRifasareRiflessoRiformaRifugioRigareRigettatoRighelloRilassatoRilevatoRimanereRimbalzoRimedioRimorchioRinascitaRincaroRinforzoRinnovoRinomatoRinsavitoRintoccoRinunciaRinvenireRiparatoRipetutoRipienoRiportareRipresaRipulireRisataRischioRiservaRisibileRisoRispettoRistoroRisultatoRisvoltoRitardoRitegnoRitmicoRitrovoRiunioneRivaRiversoRivincitaRivoltoRizomaRobaRoboticoRobustoRocciaRocoRodaggioRodereRoditoreRogitoRollioRomanticoRompereRonzioRosolareRospoRotanteRotondoRotulaRovescioRubizzoRubricaRugaRullinoRumineRumorosoRuoloRupeRussareRusticoSabatoSabbiareSabotatoSagomaSalassoSaldaturaSalgemmaSalivareSalmoneSaloneSaltareSalutoSalvoSapereSapidoSaporitoSaracenoSarcasmoSartoSassosoSatelliteSatiraSatolloSaturnoSavanaSavioSaziatoSbadiglioSbalzoSbancatoSbarraSbattereSbavareSbendareSbirciareSbloccatoSbocciatoSbrinareSbruffoneSbuffareScabrosoScadenzaScalaScambiareScandaloScapolaScarsoScatenareScavatoSceltoScenicoScettroSchedaSchienaSciarpaScienzaScindereScippoSciroppoScivoloSclerareScodellaScolpitoScompartoSconfortoScoprireScortaScossoneScozzeseScribaScrollareScrutinioScuderiaScultoreScuolaScuroScusareSdebitareSdoganareSeccaturaSecondoSedanoSeggiolaSegnalatoSegregatoSeguitoSelciatoSelettivoSellaSelvaggioSemaforoSembrareSemeSeminatoSempreSensoSentireSepoltoSequenzaSerataSerbatoSerenoSerioSerpenteSerraglioServireSestinaSetolaSettimanaSfaceloSfaldareSfamatoSfarzosoSfaticatoSferaSfidaSfilatoSfingeSfocatoSfoderareSfogoSfoltireSforzatoSfrattoSfruttatoSfuggitoSfumareSfusoSgabelloSgarbatoSgonfiareSgorbioSgrassatoSguardoSibiloSiccomeSierraSiglaSignoreSilenzioSillabaSimboloSimpaticoSimulatoSinfoniaSingoloSinistroSinoSintesiSinusoideSiparioSismaSistoleSituatoSlittaSlogaturaSlovenoSmarritoSmemoratoSmentitoSmeraldoSmilzoSmontareSmottatoSmussatoSnellireSnervatoSnodoSobbalzoSobrioSoccorsoSocialeSodaleSoffittoSognoSoldatoSolenneSolidoSollazzoSoloSolubileSolventeSomaticoSommaSondaSonettoSonniferoSopireSoppesoSopraSorgereSorpassoSorrisoSorsoSorteggioSorvolatoSospiroSostaSottileSpadaSpallaSpargereSpatolaSpaventoSpazzolaSpecieSpedireSpegnereSpelaturaSperanzaSpessoreSpettraleSpezzatoSpiaSpigolosoSpillatoSpinosoSpiraleSplendidoSportivoSposoSprangaSprecareSpronatoSpruzzoSpuntinoSquilloSradicareSrotolatoStabileStaccoStaffaStagnareStampatoStantioStarnutoStaseraStatutoSteloSteppaSterzoStilettoStimaStirpeStivaleStizzosoStonatoStoricoStrappoStregatoStriduloStrozzareStruttoStuccareStufoStupendoSubentroSuccosoSudoreSuggeritoSugoSultanoSuonareSuperboSupportoSurgelatoSurrogatoSussurroSuturaSvagareSvedeseSveglioSvelareSvenutoSveziaSviluppoSvistaSvizzeraSvoltaSvuotareTabaccoTabulatoTacciareTaciturnoTaleTalismanoTamponeTanninoTaraTardivoTargatoTariffaTarpareTartarugaTastoTatticoTavernaTavolataTazzaTecaTecnicoTelefonoTemerarioTempoTemutoTendoneTeneroTensioneTentacoloTeoremaTermeTerrazzoTerzettoTesiTesseratoTestatoTetroTettoiaTifareTigellaTimbroTintoTipicoTipografoTiraggioTiroTitanioTitoloTitubanteTizioTizzoneToccareTollerareToltoTombolaTomoTonfoTonsillaTopazioTopologiaToppaTorbaTornareTorroneTortoraToscanoTossireTostaturaTotanoTraboccoTracheaTrafilaTragediaTralcioTramontoTransitoTrapanoTrarreTraslocoTrattatoTraveTrecciaTremolioTrespoloTributoTrichecoTrifoglioTrilloTrinceaTrioTristezzaTrituratoTrivellaTrombaTronoTroppoTrottolaTrovareTruccatoTubaturaTuffatoTulipanoTumultoTunisiaTurbareTurchinoTutaTutelaUbicatoUccelloUccisoreUdireUditivoUffaUfficioUgualeUlisseUltimatoUmanoUmileUmorismoUncinettoUngereUnghereseUnicornoUnificatoUnisonoUnitarioUnteUovoUpupaUraganoUrgenzaUrloUsanzaUsatoUscitoUsignoloUsuraioUtensileUtilizzoUtopiaVacanteVaccinatoVagabondoVagliatoValangaValgoValicoVallettaValorosoValutareValvolaVampataVangareVanitosoVanoVantaggioVanveraVaporeVaranoVarcatoVarianteVascaVedettaVedovaVedutoVegetaleVeicoloVelcroVelinaVellutoVeloceVenatoVendemmiaVentoVeraceVerbaleVergognaVerificaVeroVerrucaVerticaleVescicaVessilloVestaleVeteranoVetrinaVetustoViandanteVibranteVicendaVichingoVicinanzaVidimareVigiliaVignetoVigoreVileVillanoViminiVincitoreViolaViperaVirgolaVirologoVirulentoViscosoVisioneVispoVissutoVisuraVitaVitelloVittimaVivandaVividoViziareVoceVogaVolatileVolereVolpeVoragineVulcanoZampognaZannaZappatoZatteraZavorraZefiroZelanteZeloZenzeroZerbinoZibettoZincoZirconeZittoZollaZoticoZuccheroZufoloZuluZuppa", + XT = null; + function ime(r) { + if ( + XT == null && + ((XT = $5t + .replace(/([A-Z])/g, " $1") + .toLowerCase() + .substring(1) + .split(" ")), + kW.Wordlist.check(r) !== + "0x5c1362d88fd4cf614a96f3234941d29f7d37c08c5292fde03bf62c2db6ff7620") + ) + throw ( + ((XT = null), new Error("BIP39 Wordlist for it (Italian) FAILED")) + ); + } + var J5t = (function (r) { + Y5t(e, r); + function e() { + return r.call(this, "it") || this; + } + return ( + (e.prototype.getWord = function (t) { + return ime(this), XT[t]; + }), + (e.prototype.getWordIndex = function (t) { + return ime(this), XT.indexOf(t); + }), + e + ); + })(kW.Wordlist), + sme = new J5t(); + xv.langIt = sme; + kW.Wordlist.register(sme); + }); + var dme = N((Fm) => { + "use strict"; + _(); + x(); + var Z5t = + (Fm && Fm.__extends) || + (function () { + var r = function (e, t) { + return ( + (r = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (n, a) { + n.__proto__ = a; + }) || + function (n, a) { + for (var i in a) + Object.prototype.hasOwnProperty.call(a, i) && (n[i] = a[i]); + }), + r(e, t) + ); + }; + return function (e, t) { + if (typeof t != "function" && t !== null) + throw new TypeError( + "Class extends value " + + String(t) + + " is not a constructor or null" + ); + r(e, t); + function n() { + this.constructor = e; + } + e.prototype = + t === null + ? Object.create(t) + : ((n.prototype = t.prototype), new n()); + }; + })(); + Object.defineProperty(Fm, "__esModule", { value: !0 }); + Fm.langZhTw = Fm.langZhCn = void 0; + var Q5t = Ki(), + e5 = jp(), + SW = + "}aE#4A=Yv&co#4N#6G=cJ&SM#66|/Z#4t&kn~46#4K~4q%b9=IR#7l,mB#7W_X2*dl}Uo~7s}Uf&Iw#9c&cw~6O&H6&wx&IG%v5=IQ~8a&Pv#47$PR&50%Ko&QM&3l#5f,D9#4L|/H&tQ;v0~6n]nN> 2), + 128 + MW.indexOf(SW[t * 3 + 1]), + 128 + MW.indexOf(SW[t * 3 + 2]), + ]; + if (r.locale === "zh_tw") + for (var i = n % 4, s = i; s < 3; s++) + a[s] = MW.indexOf(X5t[e++]) + (s == 0 ? 228 : 128); + Tv[r.locale].push((0, Q5t.toUtf8String)(a)); + } + if (e5.Wordlist.check(r) !== e3t[r.locale]) + throw ( + ((Tv[r.locale] = null), + new Error("BIP39 Wordlist for " + r.locale + " (Chinese) FAILED")) + ); + } + } + var ume = (function (r) { + Z5t(e, r); + function e(t) { + return r.call(this, "zh_" + t) || this; + } + return ( + (e.prototype.getWord = function (t) { + return cme(this), Tv[this.locale][t]; + }), + (e.prototype.getWordIndex = function (t) { + return cme(this), Tv[this.locale].indexOf(t); + }), + (e.prototype.split = function (t) { + return (t = t.replace(/(?:\u3000| )+/g, "")), t.split(""); + }), + e + ); + })(e5.Wordlist), + PW = new ume("cn"); + Fm.langZhCn = PW; + e5.Wordlist.register(PW); + e5.Wordlist.register(PW, "zh"); + var lme = new ume("tw"); + Fm.langZhTw = lme; + e5.Wordlist.register(lme); + }); + var pme = N((DA) => { + "use strict"; + _(); + x(); + Object.defineProperty(DA, "__esModule", { value: !0 }); + DA.wordlists = void 0; + var r3t = qfe(), + n3t = Ufe(), + a3t = Vfe(), + i3t = Zfe(), + s3t = tme(), + o3t = ame(), + c3t = ome(), + RW = dme(); + DA.wordlists = { + cz: r3t.langCz, + en: n3t.langEn, + es: a3t.langEs, + fr: i3t.langFr, + it: c3t.langIt, + ja: s3t.langJa, + ko: o3t.langKo, + zh: RW.langZhCn, + zh_cn: RW.langZhCn, + zh_tw: RW.langZhTw, + }; + }); + var BW = N((Wm) => { + "use strict"; + _(); + x(); + Object.defineProperty(Wm, "__esModule", { value: !0 }); + Wm.wordlists = Wm.Wordlist = Wm.logger = void 0; + var hme = jp(); + Object.defineProperty(Wm, "logger", { + enumerable: !0, + get: function () { + return hme.logger; + }, + }); + Object.defineProperty(Wm, "Wordlist", { + enumerable: !0, + get: function () { + return hme.Wordlist; + }, + }); + var u3t = pme(); + Object.defineProperty(Wm, "wordlists", { + enumerable: !0, + get: function () { + return u3t.wordlists; + }, + }); + }); + var fme = N((qA) => { + "use strict"; + _(); + x(); + Object.defineProperty(qA, "__esModule", { value: !0 }); + qA.version = void 0; + qA.version = "hdnode/5.7.0"; + }); + var WA = N((Co) => { + "use strict"; + _(); + x(); + Object.defineProperty(Co, "__esModule", { value: !0 }); + Co.getAccountPath = + Co.isValidMnemonic = + Co.entropyToMnemonic = + Co.mnemonicToEntropy = + Co.mnemonicToSeed = + Co.HDNode = + Co.defaultPath = + void 0; + var bme = CA(), + ti = Dr(), + vme = zi(), + t5 = Ki(), + l3t = MA(), + Eo = ja(), + mme = UT(), + Kp = og(), + d3t = lf(), + yme = BW(), + p3t = ir(), + h3t = fme(), + r5 = new p3t.Logger(h3t.version), + f3t = vme.BigNumber.from( + "0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141" + ), + m3t = (0, t5.toUtf8Bytes)("Bitcoin seed"), + Cv = 2147483648; + function wme(r) { + return ((1 << r) - 1) << (8 - r); + } + function y3t(r) { + return (1 << r) - 1; + } + function FA(r) { + return (0, ti.hexZeroPad)((0, ti.hexlify)(r), 32); + } + function gme(r) { + return bme.Base58.encode( + (0, ti.concat)([ + r, + (0, ti.hexDataSlice)((0, Kp.sha256)((0, Kp.sha256)(r)), 0, 4), + ]) + ); + } + function NW(r) { + if (r == null) return yme.wordlists.en; + if (typeof r == "string") { + var e = yme.wordlists[r]; + return ( + e == null && r5.throwArgumentError("unknown locale", "wordlist", r), e + ); + } + return r; + } + var Ev = {}; + Co.defaultPath = "m/44'/60'/0'/0/0"; + var g3t = (function () { + function r(e, t, n, a, i, s, c, l) { + if (e !== Ev) + throw new Error("HDNode constructor cannot be called directly"); + if (t) { + var d = new mme.SigningKey(t); + (0, Eo.defineReadOnly)(this, "privateKey", d.privateKey), + (0, Eo.defineReadOnly)(this, "publicKey", d.compressedPublicKey); + } else + (0, Eo.defineReadOnly)(this, "privateKey", null), + (0, Eo.defineReadOnly)(this, "publicKey", (0, ti.hexlify)(n)); + (0, Eo.defineReadOnly)(this, "parentFingerprint", a), + (0, Eo.defineReadOnly)( + this, + "fingerprint", + (0, ti.hexDataSlice)( + (0, Kp.ripemd160)((0, Kp.sha256)(this.publicKey)), + 0, + 4 + ) + ), + (0, Eo.defineReadOnly)( + this, + "address", + (0, d3t.computeAddress)(this.publicKey) + ), + (0, Eo.defineReadOnly)(this, "chainCode", i), + (0, Eo.defineReadOnly)(this, "index", s), + (0, Eo.defineReadOnly)(this, "depth", c), + l == null + ? ((0, Eo.defineReadOnly)(this, "mnemonic", null), + (0, Eo.defineReadOnly)(this, "path", null)) + : typeof l == "string" + ? ((0, Eo.defineReadOnly)(this, "mnemonic", null), + (0, Eo.defineReadOnly)(this, "path", l)) + : ((0, Eo.defineReadOnly)(this, "mnemonic", l), + (0, Eo.defineReadOnly)(this, "path", l.path)); + } + return ( + Object.defineProperty(r.prototype, "extendedKey", { + get: function () { + if (this.depth >= 256) throw new Error("Depth too large!"); + return gme( + (0, ti.concat)([ + this.privateKey != null ? "0x0488ADE4" : "0x0488B21E", + (0, ti.hexlify)(this.depth), + this.parentFingerprint, + (0, ti.hexZeroPad)((0, ti.hexlify)(this.index), 4), + this.chainCode, + this.privateKey != null + ? (0, ti.concat)(["0x00", this.privateKey]) + : this.publicKey, + ]) + ); + }, + enumerable: !1, + configurable: !0, + }), + (r.prototype.neuter = function () { + return new r( + Ev, + null, + this.publicKey, + this.parentFingerprint, + this.chainCode, + this.index, + this.depth, + this.path + ); + }), + (r.prototype._derive = function (e) { + if (e > 4294967295) throw new Error("invalid index - " + String(e)); + var t = this.path; + t && (t += "/" + (e & ~Cv)); + var n = new Uint8Array(37); + if (e & Cv) { + if (!this.privateKey) + throw new Error("cannot derive child of neutered node"); + n.set((0, ti.arrayify)(this.privateKey), 1), t && (t += "'"); + } else n.set((0, ti.arrayify)(this.publicKey)); + for (var a = 24; a >= 0; a -= 8) + n[33 + (a >> 3)] = (e >> (24 - a)) & 255; + var i = (0, ti.arrayify)( + (0, Kp.computeHmac)( + Kp.SupportedAlgorithm.sha512, + this.chainCode, + n + ) + ), + s = i.slice(0, 32), + c = i.slice(32), + l = null, + d = null; + if (this.privateKey) + l = FA(vme.BigNumber.from(s).add(this.privateKey).mod(f3t)); + else { + var m = new mme.SigningKey((0, ti.hexlify)(s)); + d = m._addPoint(this.publicKey); + } + var w = t, + C = this.mnemonic; + return ( + C && + (w = Object.freeze({ + phrase: C.phrase, + path: t, + locale: C.locale || "en", + })), + new r(Ev, l, d, this.fingerprint, FA(c), e, this.depth + 1, w) + ); + }), + (r.prototype.derivePath = function (e) { + var t = e.split("/"); + if (t.length === 0 || (t[0] === "m" && this.depth !== 0)) + throw new Error("invalid path - " + e); + t[0] === "m" && t.shift(); + for (var n = this, a = 0; a < t.length; a++) { + var i = t[a]; + if (i.match(/^[0-9]+'$/)) { + var s = parseInt(i.substring(0, i.length - 1)); + if (s >= Cv) throw new Error("invalid path index - " + i); + n = n._derive(Cv + s); + } else if (i.match(/^[0-9]+$/)) { + var s = parseInt(i); + if (s >= Cv) throw new Error("invalid path index - " + i); + n = n._derive(s); + } else throw new Error("invalid path component - " + i); + } + return n; + }), + (r._fromSeed = function (e, t) { + var n = (0, ti.arrayify)(e); + if (n.length < 16 || n.length > 64) throw new Error("invalid seed"); + var a = (0, ti.arrayify)( + (0, Kp.computeHmac)(Kp.SupportedAlgorithm.sha512, m3t, n) + ); + return new r( + Ev, + FA(a.slice(0, 32)), + null, + "0x00000000", + FA(a.slice(32)), + 0, + 0, + t + ); + }), + (r.fromMnemonic = function (e, t, n) { + return ( + (n = NW(n)), + (e = xme(OW(e, n), n)), + r._fromSeed(_me(e, t), { phrase: e, path: "m", locale: n.locale }) + ); + }), + (r.fromSeed = function (e) { + return r._fromSeed(e, null); + }), + (r.fromExtendedKey = function (e) { + var t = bme.Base58.decode(e); + (t.length !== 82 || gme(t.slice(0, 78)) !== e) && + r5.throwArgumentError( + "invalid extended key", + "extendedKey", + "[REDACTED]" + ); + var n = t[4], + a = (0, ti.hexlify)(t.slice(5, 9)), + i = parseInt((0, ti.hexlify)(t.slice(9, 13)).substring(2), 16), + s = (0, ti.hexlify)(t.slice(13, 45)), + c = t.slice(45, 78); + switch ((0, ti.hexlify)(t.slice(0, 4))) { + case "0x0488b21e": + case "0x043587cf": + return new r(Ev, null, (0, ti.hexlify)(c), a, s, i, n, null); + case "0x0488ade4": + case "0x04358394 ": + if (c[0] !== 0) break; + return new r( + Ev, + (0, ti.hexlify)(c.slice(1)), + null, + a, + s, + i, + n, + null + ); + } + return r5.throwArgumentError( + "invalid extended key", + "extendedKey", + "[REDACTED]" + ); + }), + r + ); + })(); + Co.HDNode = g3t; + function _me(r, e) { + e || (e = ""); + var t = (0, t5.toUtf8Bytes)( + "mnemonic" + e, + t5.UnicodeNormalizationForm.NFKD + ); + return (0, l3t.pbkdf2)( + (0, t5.toUtf8Bytes)(r, t5.UnicodeNormalizationForm.NFKD), + t, + 2048, + 64, + "sha512" + ); + } + Co.mnemonicToSeed = _me; + function OW(r, e) { + (e = NW(e)), r5.checkNormalize(); + var t = e.split(r); + if (t.length % 3 !== 0) throw new Error("invalid mnemonic"); + for ( + var n = (0, ti.arrayify)( + new Uint8Array(Math.ceil((11 * t.length) / 8)) + ), + a = 0, + i = 0; + i < t.length; + i++ + ) { + var s = e.getWordIndex(t[i].normalize("NFKD")); + if (s === -1) throw new Error("invalid mnemonic"); + for (var c = 0; c < 11; c++) + s & (1 << (10 - c)) && (n[a >> 3] |= 1 << (7 - (a % 8))), a++; + } + var l = (32 * t.length) / 3, + d = t.length / 3, + m = wme(d), + w = (0, ti.arrayify)((0, Kp.sha256)(n.slice(0, l / 8)))[0] & m; + if (w !== (n[n.length - 1] & m)) throw new Error("invalid checksum"); + return (0, ti.hexlify)(n.slice(0, l / 8)); + } + Co.mnemonicToEntropy = OW; + function xme(r, e) { + if ( + ((e = NW(e)), + (r = (0, ti.arrayify)(r)), + r.length % 4 !== 0 || r.length < 16 || r.length > 32) + ) + throw new Error("invalid entropy"); + for (var t = [0], n = 11, a = 0; a < r.length; a++) + n > 8 + ? ((t[t.length - 1] <<= 8), (t[t.length - 1] |= r[a]), (n -= 8)) + : ((t[t.length - 1] <<= n), + (t[t.length - 1] |= r[a] >> (8 - n)), + t.push(r[a] & y3t(8 - n)), + (n += 3)); + var i = r.length / 4, + s = (0, ti.arrayify)((0, Kp.sha256)(r))[0] & wme(i); + return ( + (t[t.length - 1] <<= i), + (t[t.length - 1] |= s >> (8 - i)), + e.join( + t.map(function (c) { + return e.getWord(c); + }) + ) + ); + } + Co.entropyToMnemonic = xme; + function b3t(r, e) { + try { + return OW(r, e), !0; + } catch {} + return !1; + } + Co.isValidMnemonic = b3t; + function v3t(r) { + return ( + (typeof r != "number" || r < 0 || r >= Cv || r % 1) && + r5.throwArgumentError("invalid account index", "index", r), + "m/44'/60'/" + r + "'/0/0" + ); + } + Co.getAccountPath = v3t; + }); + var Tme = N((UA) => { + "use strict"; + _(); + x(); + Object.defineProperty(UA, "__esModule", { value: !0 }); + UA.version = void 0; + UA.version = "random/5.7.0"; + }); + var Ime = N((zA) => { + "use strict"; + _(); + x(); + Object.defineProperty(zA, "__esModule", { value: !0 }); + zA.randomBytes = void 0; + var w3t = Dr(), + Cme = ir(), + _3t = Tme(), + LW = new Cme.Logger(_3t.version); + function x3t() { + if (typeof self < "u") return self; + if (typeof window < "u") return window; + if (typeof M < "u") return M; + throw new Error("unable to locate global object"); + } + var Eme = x3t(), + HA = Eme.crypto || Eme.msCrypto; + (!HA || !HA.getRandomValues) && + (LW.warn("WARNING: Missing strong random number source"), + (HA = { + getRandomValues: function (r) { + return LW.throwError( + "no secure random source avaialble", + Cme.Logger.errors.UNSUPPORTED_OPERATION, + { operation: "crypto.getRandomValues" } + ); + }, + })); + function T3t(r) { + (r <= 0 || r > 1024 || r % 1 || r != r) && + LW.throwArgumentError("invalid length", "length", r); + var e = new Uint8Array(r); + return HA.getRandomValues(e), (0, w3t.arrayify)(e); + } + zA.randomBytes = T3t; + }); + var Ame = N((jA) => { + "use strict"; + _(); + x(); + Object.defineProperty(jA, "__esModule", { value: !0 }); + jA.shuffled = void 0; + function E3t(r) { + r = r.slice(); + for (var e = r.length - 1; e > 0; e--) { + var t = Math.floor(Math.random() * (e + 1)), + n = r[e]; + (r[e] = r[t]), (r[t] = n); + } + return r; + } + jA.shuffled = E3t; + }); + var n5 = N((Iv) => { + "use strict"; + _(); + x(); + Object.defineProperty(Iv, "__esModule", { value: !0 }); + Iv.shuffled = Iv.randomBytes = void 0; + var C3t = Ime(); + Object.defineProperty(Iv, "randomBytes", { + enumerable: !0, + get: function () { + return C3t.randomBytes; + }, + }); + var I3t = Ame(); + Object.defineProperty(Iv, "shuffled", { + enumerable: !0, + get: function () { + return I3t.shuffled; + }, + }); + }); + var qW = N((DW, kme) => { + "use strict"; + _(); + x(); + (function (r) { + function e(u) { + return parseInt(u) === u; + } + function t(u) { + if (!e(u.length)) return !1; + for (var v = 0; v < u.length; v++) + if (!e(u[v]) || u[v] < 0 || u[v] > 255) return !1; + return !0; + } + function n(u, v) { + if (u.buffer && ArrayBuffer.isView(u) && u.name === "Uint8Array") + return ( + v && + (u.slice ? (u = u.slice()) : (u = Array.prototype.slice.call(u))), + u + ); + if (Array.isArray(u)) { + if (!t(u)) throw new Error("Array contains invalid value: " + u); + return new Uint8Array(u); + } + if (e(u.length) && t(u)) return new Uint8Array(u); + throw new Error("unsupported array-like object"); + } + function a(u) { + return new Uint8Array(u); + } + function i(u, v, R, A, L) { + (A != null || L != null) && + (u.slice + ? (u = u.slice(A, L)) + : (u = Array.prototype.slice.call(u, A, L))), + v.set(u, R); + } + var s = (function () { + function u(R) { + var A = [], + L = 0; + for (R = encodeURI(R); L < R.length; ) { + var G = R.charCodeAt(L++); + G === 37 + ? (A.push(parseInt(R.substr(L, 2), 16)), (L += 2)) + : A.push(G); + } + return n(A); + } + function v(R) { + for (var A = [], L = 0; L < R.length; ) { + var G = R[L]; + G < 128 + ? (A.push(String.fromCharCode(G)), L++) + : G > 191 && G < 224 + ? (A.push( + String.fromCharCode(((G & 31) << 6) | (R[L + 1] & 63)) + ), + (L += 2)) + : (A.push( + String.fromCharCode( + ((G & 15) << 12) | + ((R[L + 1] & 63) << 6) | + (R[L + 2] & 63) + ) + ), + (L += 3)); + } + return A.join(""); + } + return { toBytes: u, fromBytes: v }; + })(), + c = (function () { + function u(A) { + for (var L = [], G = 0; G < A.length; G += 2) + L.push(parseInt(A.substr(G, 2), 16)); + return L; + } + var v = "0123456789abcdef"; + function R(A) { + for (var L = [], G = 0; G < A.length; G++) { + var U = A[G]; + L.push(v[(U & 240) >> 4] + v[U & 15]); + } + return L.join(""); + } + return { toBytes: u, fromBytes: R }; + })(), + l = { 16: 10, 24: 12, 32: 14 }, + d = [ + 1, 2, 4, 8, 16, 32, 64, 128, 27, 54, 108, 216, 171, 77, 154, 47, 94, + 188, 99, 198, 151, 53, 106, 212, 179, 125, 250, 239, 197, 145, + ], + m = [ + 99, 124, 119, 123, 242, 107, 111, 197, 48, 1, 103, 43, 254, 215, 171, + 118, 202, 130, 201, 125, 250, 89, 71, 240, 173, 212, 162, 175, 156, + 164, 114, 192, 183, 253, 147, 38, 54, 63, 247, 204, 52, 165, 229, 241, + 113, 216, 49, 21, 4, 199, 35, 195, 24, 150, 5, 154, 7, 18, 128, 226, + 235, 39, 178, 117, 9, 131, 44, 26, 27, 110, 90, 160, 82, 59, 214, 179, + 41, 227, 47, 132, 83, 209, 0, 237, 32, 252, 177, 91, 106, 203, 190, + 57, 74, 76, 88, 207, 208, 239, 170, 251, 67, 77, 51, 133, 69, 249, 2, + 127, 80, 60, 159, 168, 81, 163, 64, 143, 146, 157, 56, 245, 188, 182, + 218, 33, 16, 255, 243, 210, 205, 12, 19, 236, 95, 151, 68, 23, 196, + 167, 126, 61, 100, 93, 25, 115, 96, 129, 79, 220, 34, 42, 144, 136, + 70, 238, 184, 20, 222, 94, 11, 219, 224, 50, 58, 10, 73, 6, 36, 92, + 194, 211, 172, 98, 145, 149, 228, 121, 231, 200, 55, 109, 141, 213, + 78, 169, 108, 86, 244, 234, 101, 122, 174, 8, 186, 120, 37, 46, 28, + 166, 180, 198, 232, 221, 116, 31, 75, 189, 139, 138, 112, 62, 181, + 102, 72, 3, 246, 14, 97, 53, 87, 185, 134, 193, 29, 158, 225, 248, + 152, 17, 105, 217, 142, 148, 155, 30, 135, 233, 206, 85, 40, 223, 140, + 161, 137, 13, 191, 230, 66, 104, 65, 153, 45, 15, 176, 84, 187, 22, + ], + w = [ + 82, 9, 106, 213, 48, 54, 165, 56, 191, 64, 163, 158, 129, 243, 215, + 251, 124, 227, 57, 130, 155, 47, 255, 135, 52, 142, 67, 68, 196, 222, + 233, 203, 84, 123, 148, 50, 166, 194, 35, 61, 238, 76, 149, 11, 66, + 250, 195, 78, 8, 46, 161, 102, 40, 217, 36, 178, 118, 91, 162, 73, + 109, 139, 209, 37, 114, 248, 246, 100, 134, 104, 152, 22, 212, 164, + 92, 204, 93, 101, 182, 146, 108, 112, 72, 80, 253, 237, 185, 218, 94, + 21, 70, 87, 167, 141, 157, 132, 144, 216, 171, 0, 140, 188, 211, 10, + 247, 228, 88, 5, 184, 179, 69, 6, 208, 44, 30, 143, 202, 63, 15, 2, + 193, 175, 189, 3, 1, 19, 138, 107, 58, 145, 17, 65, 79, 103, 220, 234, + 151, 242, 207, 206, 240, 180, 230, 115, 150, 172, 116, 34, 231, 173, + 53, 133, 226, 249, 55, 232, 28, 117, 223, 110, 71, 241, 26, 113, 29, + 41, 197, 137, 111, 183, 98, 14, 170, 24, 190, 27, 252, 86, 62, 75, + 198, 210, 121, 32, 154, 219, 192, 254, 120, 205, 90, 244, 31, 221, + 168, 51, 136, 7, 199, 49, 177, 18, 16, 89, 39, 128, 236, 95, 96, 81, + 127, 169, 25, 181, 74, 13, 45, 229, 122, 159, 147, 201, 156, 239, 160, + 224, 59, 77, 174, 42, 245, 176, 200, 235, 187, 60, 131, 83, 153, 97, + 23, 43, 4, 126, 186, 119, 214, 38, 225, 105, 20, 99, 85, 33, 12, 125, + ], + C = [ + 3328402341, 4168907908, 4000806809, 4135287693, 4294111757, + 3597364157, 3731845041, 2445657428, 1613770832, 33620227, 3462883241, + 1445669757, 3892248089, 3050821474, 1303096294, 3967186586, + 2412431941, 528646813, 2311702848, 4202528135, 4026202645, 2992200171, + 2387036105, 4226871307, 1101901292, 3017069671, 1604494077, + 1169141738, 597466303, 1403299063, 3832705686, 2613100635, 1974974402, + 3791519004, 1033081774, 1277568618, 1815492186, 2118074177, + 4126668546, 2211236943, 1748251740, 1369810420, 3521504564, + 4193382664, 3799085459, 2883115123, 1647391059, 706024767, 134480908, + 2512897874, 1176707941, 2646852446, 806885416, 932615841, 168101135, + 798661301, 235341577, 605164086, 461406363, 3756188221, 3454790438, + 1311188841, 2142417613, 3933566367, 302582043, 495158174, 1479289972, + 874125870, 907746093, 3698224818, 3025820398, 1537253627, 2756858614, + 1983593293, 3084310113, 2108928974, 1378429307, 3722699582, + 1580150641, 327451799, 2790478837, 3117535592, 0, 3253595436, + 1075847264, 3825007647, 2041688520, 3059440621, 3563743934, + 2378943302, 1740553945, 1916352843, 2487896798, 2555137236, + 2958579944, 2244988746, 3151024235, 3320835882, 1336584933, + 3992714006, 2252555205, 2588757463, 1714631509, 293963156, 2319795663, + 3925473552, 67240454, 4269768577, 2689618160, 2017213508, 631218106, + 1269344483, 2723238387, 1571005438, 2151694528, 93294474, 1066570413, + 563977660, 1882732616, 4059428100, 1673313503, 2008463041, 2950355573, + 1109467491, 537923632, 3858759450, 4260623118, 3218264685, 2177748300, + 403442708, 638784309, 3287084079, 3193921505, 899127202, 2286175436, + 773265209, 2479146071, 1437050866, 4236148354, 2050833735, 3362022572, + 3126681063, 840505643, 3866325909, 3227541664, 427917720, 2655997905, + 2749160575, 1143087718, 1412049534, 999329963, 193497219, 2353415882, + 3354324521, 1807268051, 672404540, 2816401017, 3160301282, 369822493, + 2916866934, 3688947771, 1681011286, 1949973070, 336202270, 2454276571, + 201721354, 1210328172, 3093060836, 2680341085, 3184776046, 1135389935, + 3294782118, 965841320, 831886756, 3554993207, 4068047243, 3588745010, + 2345191491, 1849112409, 3664604599, 26054028, 2983581028, 2622377682, + 1235855840, 3630984372, 2891339514, 4092916743, 3488279077, + 3395642799, 4101667470, 1202630377, 268961816, 1874508501, 4034427016, + 1243948399, 1546530418, 941366308, 1470539505, 1941222599, 2546386513, + 3421038627, 2715671932, 3899946140, 1042226977, 2521517021, + 1639824860, 227249030, 260737669, 3765465232, 2084453954, 1907733956, + 3429263018, 2420656344, 100860677, 4160157185, 470683154, 3261161891, + 1781871967, 2924959737, 1773779408, 394692241, 2579611992, 974986535, + 664706745, 3655459128, 3958962195, 731420851, 571543859, 3530123707, + 2849626480, 126783113, 865375399, 765172662, 1008606754, 361203602, + 3387549984, 2278477385, 2857719295, 1344809080, 2782912378, 59542671, + 1503764984, 160008576, 437062935, 1707065306, 3622233649, 2218934982, + 3496503480, 2185314755, 697932208, 1512910199, 504303377, 2075177163, + 2824099068, 1841019862, 739644986, + ], + I = [ + 2781242211, 2230877308, 2582542199, 2381740923, 234877682, 3184946027, + 2984144751, 1418839493, 1348481072, 50462977, 2848876391, 2102799147, + 434634494, 1656084439, 3863849899, 2599188086, 1167051466, 2636087938, + 1082771913, 2281340285, 368048890, 3954334041, 3381544775, 201060592, + 3963727277, 1739838676, 4250903202, 3930435503, 3206782108, + 4149453988, 2531553906, 1536934080, 3262494647, 484572669, 2923271059, + 1783375398, 1517041206, 1098792767, 49674231, 1334037708, 1550332980, + 4098991525, 886171109, 150598129, 2481090929, 1940642008, 1398944049, + 1059722517, 201851908, 1385547719, 1699095331, 1587397571, 674240536, + 2704774806, 252314885, 3039795866, 151914247, 908333586, 2602270848, + 1038082786, 651029483, 1766729511, 3447698098, 2682942837, 454166793, + 2652734339, 1951935532, 775166490, 758520603, 3000790638, 4004797018, + 4217086112, 4137964114, 1299594043, 1639438038, 3464344499, + 2068982057, 1054729187, 1901997871, 2534638724, 4121318227, + 1757008337, 0, 750906861, 1614815264, 535035132, 3363418545, + 3988151131, 3201591914, 1183697867, 3647454910, 1265776953, + 3734260298, 3566750796, 3903871064, 1250283471, 1807470800, 717615087, + 3847203498, 384695291, 3313910595, 3617213773, 1432761139, 2484176261, + 3481945413, 283769337, 100925954, 2180939647, 4037038160, 1148730428, + 3123027871, 3813386408, 4087501137, 4267549603, 3229630528, + 2315620239, 2906624658, 3156319645, 1215313976, 82966005, 3747855548, + 3245848246, 1974459098, 1665278241, 807407632, 451280895, 251524083, + 1841287890, 1283575245, 337120268, 891687699, 801369324, 3787349855, + 2721421207, 3431482436, 959321879, 1469301956, 4065699751, 2197585534, + 1199193405, 2898814052, 3887750493, 724703513, 2514908019, 2696962144, + 2551808385, 3516813135, 2141445340, 1715741218, 2119445034, + 2872807568, 2198571144, 3398190662, 700968686, 3547052216, 1009259540, + 2041044702, 3803995742, 487983883, 1991105499, 1004265696, 1449407026, + 1316239930, 504629770, 3683797321, 168560134, 1816667172, 3837287516, + 1570751170, 1857934291, 4014189740, 2797888098, 2822345105, + 2754712981, 936633572, 2347923833, 852879335, 1133234376, 1500395319, + 3084545389, 2348912013, 1689376213, 3533459022, 3762923945, + 3034082412, 4205598294, 133428468, 634383082, 2949277029, 2398386810, + 3913789102, 403703816, 3580869306, 2297460856, 1867130149, 1918643758, + 607656988, 4049053350, 3346248884, 1368901318, 600565992, 2090982877, + 2632479860, 557719327, 3717614411, 3697393085, 2249034635, 2232388234, + 2430627952, 1115438654, 3295786421, 2865522278, 3633334344, 84280067, + 33027830, 303828494, 2747425121, 1600795957, 4188952407, 3496589753, + 2434238086, 1486471617, 658119965, 3106381470, 953803233, 334231800, + 3005978776, 857870609, 3151128937, 1890179545, 2298973838, 2805175444, + 3056442267, 574365214, 2450884487, 550103529, 1233637070, 4289353045, + 2018519080, 2057691103, 2399374476, 4166623649, 2148108681, 387583245, + 3664101311, 836232934, 3330556482, 3100665960, 3280093505, 2955516313, + 2002398509, 287182607, 3413881008, 4238890068, 3597515707, 975967766, + ], + k = [ + 1671808611, 2089089148, 2006576759, 2072901243, 4061003762, + 1807603307, 1873927791, 3310653893, 810573872, 16974337, 1739181671, + 729634347, 4263110654, 3613570519, 2883997099, 1989864566, 3393556426, + 2191335298, 3376449993, 2106063485, 4195741690, 1508618841, + 1204391495, 4027317232, 2917941677, 3563566036, 2734514082, + 2951366063, 2629772188, 2767672228, 1922491506, 3227229120, + 3082974647, 4246528509, 2477669779, 644500518, 911895606, 1061256767, + 4144166391, 3427763148, 878471220, 2784252325, 3845444069, 4043897329, + 1905517169, 3631459288, 827548209, 356461077, 67897348, 3344078279, + 593839651, 3277757891, 405286936, 2527147926, 84871685, 2595565466, + 118033927, 305538066, 2157648768, 3795705826, 3945188843, 661212711, + 2999812018, 1973414517, 152769033, 2208177539, 745822252, 439235610, + 455947803, 1857215598, 1525593178, 2700827552, 1391895634, 994932283, + 3596728278, 3016654259, 695947817, 3812548067, 795958831, 2224493444, + 1408607827, 3513301457, 0, 3979133421, 543178784, 4229948412, + 2982705585, 1542305371, 1790891114, 3410398667, 3201918910, 961245753, + 1256100938, 1289001036, 1491644504, 3477767631, 3496721360, + 4012557807, 2867154858, 4212583931, 1137018435, 1305975373, 861234739, + 2241073541, 1171229253, 4178635257, 33948674, 2139225727, 1357946960, + 1011120188, 2679776671, 2833468328, 1374921297, 2751356323, + 1086357568, 2408187279, 2460827538, 2646352285, 944271416, 4110742005, + 3168756668, 3066132406, 3665145818, 560153121, 271589392, 4279952895, + 4077846003, 3530407890, 3444343245, 202643468, 322250259, 3962553324, + 1608629855, 2543990167, 1154254916, 389623319, 3294073796, 2817676711, + 2122513534, 1028094525, 1689045092, 1575467613, 422261273, 1939203699, + 1621147744, 2174228865, 1339137615, 3699352540, 577127458, 712922154, + 2427141008, 2290289544, 1187679302, 3995715566, 3100863416, 339486740, + 3732514782, 1591917662, 186455563, 3681988059, 3762019296, 844522546, + 978220090, 169743370, 1239126601, 101321734, 611076132, 1558493276, + 3260915650, 3547250131, 2901361580, 1655096418, 2443721105, + 2510565781, 3828863972, 2039214713, 3878868455, 3359869896, 928607799, + 1840765549, 2374762893, 3580146133, 1322425422, 2850048425, + 1823791212, 1459268694, 4094161908, 3928346602, 1706019429, + 2056189050, 2934523822, 135794696, 3134549946, 2022240376, 628050469, + 779246638, 472135708, 2800834470, 3032970164, 3327236038, 3894660072, + 3715932637, 1956440180, 522272287, 1272813131, 3185336765, 2340818315, + 2323976074, 1888542832, 1044544574, 3049550261, 1722469478, + 1222152264, 50660867, 4127324150, 236067854, 1638122081, 895445557, + 1475980887, 3117443513, 2257655686, 3243809217, 489110045, 2662934430, + 3778599393, 4162055160, 2561878936, 288563729, 1773916777, 3648039385, + 2391345038, 2493985684, 2612407707, 505560094, 2274497927, 3911240169, + 3460925390, 1442818645, 678973480, 3749357023, 2358182796, 2717407649, + 2306869641, 219617805, 3218761151, 3862026214, 1120306242, 1756942440, + 1103331905, 2578459033, 762796589, 252780047, 2966125488, 1425844308, + 3151392187, 372911126, + ], + O = [ + 1667474886, 2088535288, 2004326894, 2071694838, 4075949567, + 1802223062, 1869591006, 3318043793, 808472672, 16843522, 1734846926, + 724270422, 4278065639, 3621216949, 2880169549, 1987484396, 3402253711, + 2189597983, 3385409673, 2105378810, 4210693615, 1499065266, + 1195886990, 4042263547, 2913856577, 3570689971, 2728590687, + 2947541573, 2627518243, 2762274643, 1920112356, 3233831835, + 3082273397, 4261223649, 2475929149, 640051788, 909531756, 1061110142, + 4160160501, 3435941763, 875846760, 2779116625, 3857003729, 4059105529, + 1903268834, 3638064043, 825316194, 353713962, 67374088, 3351728789, + 589522246, 3284360861, 404236336, 2526454071, 84217610, 2593830191, + 117901582, 303183396, 2155911963, 3806477791, 3958056653, 656894286, + 2998062463, 1970642922, 151591698, 2206440989, 741110872, 437923380, + 454765878, 1852748508, 1515908788, 2694904667, 1381168804, 993742198, + 3604373943, 3014905469, 690584402, 3823320797, 791638366, 2223281939, + 1398011302, 3520161977, 0, 3991743681, 538992704, 4244381667, + 2981218425, 1532751286, 1785380564, 3419096717, 3200178535, 960056178, + 1246420628, 1280103576, 1482221744, 3486468741, 3503319995, + 4025428677, 2863326543, 4227536621, 1128514950, 1296947098, 859002214, + 2240123921, 1162203018, 4193849577, 33687044, 2139062782, 1347481760, + 1010582648, 2678045221, 2829640523, 1364325282, 2745433693, + 1077985408, 2408548869, 2459086143, 2644360225, 943212656, 4126475505, + 3166494563, 3065430391, 3671750063, 555836226, 269496352, 4294908645, + 4092792573, 3537006015, 3452783745, 202118168, 320025894, 3974901699, + 1600119230, 2543297077, 1145359496, 387397934, 3301201811, 2812801621, + 2122220284, 1027426170, 1684319432, 1566435258, 421079858, 1936954854, + 1616945344, 2172753945, 1330631070, 3705438115, 572679748, 707427924, + 2425400123, 2290647819, 1179044492, 4008585671, 3099120491, 336870440, + 3739122087, 1583276732, 185277718, 3688593069, 3772791771, 842159716, + 976899700, 168435220, 1229577106, 101059084, 606366792, 1549591736, + 3267517855, 3553849021, 2897014595, 1650632388, 2442242105, + 2509612081, 3840161747, 2038008818, 3890688725, 3368567691, 926374254, + 1835907034, 2374863873, 3587531953, 1313788572, 2846482505, + 1819063512, 1448540844, 4109633523, 3941213647, 1701162954, + 2054852340, 2930698567, 134748176, 3132806511, 2021165296, 623210314, + 774795868, 471606328, 2795958615, 3031746419, 3334885783, 3907527627, + 3722280097, 1953799400, 522133822, 1263263126, 3183336545, 2341176845, + 2324333839, 1886425312, 1044267644, 3048588401, 1718004428, + 1212733584, 50529542, 4143317495, 235803164, 1633788866, 892690282, + 1465383342, 3115962473, 2256965911, 3250673817, 488449850, 2661202215, + 3789633753, 4177007595, 2560144171, 286339874, 1768537042, 3654906025, + 2391705863, 2492770099, 2610673197, 505291324, 2273808917, 3924369609, + 3469625735, 1431699370, 673740880, 3755965093, 2358021891, 2711746649, + 2307489801, 218961690, 3217021541, 3873845719, 1111672452, 1751693520, + 1094828930, 2576986153, 757954394, 252645662, 2964376443, 1414855848, + 3149649517, 370555436, + ], + D = [ + 1374988112, 2118214995, 437757123, 975658646, 1001089995, 530400753, + 2902087851, 1273168787, 540080725, 2910219766, 2295101073, 4110568485, + 1340463100, 3307916247, 641025152, 3043140495, 3736164937, 632953703, + 1172967064, 1576976609, 3274667266, 2169303058, 2370213795, + 1809054150, 59727847, 361929877, 3211623147, 2505202138, 3569255213, + 1484005843, 1239443753, 2395588676, 1975683434, 4102977912, + 2572697195, 666464733, 3202437046, 4035489047, 3374361702, 2110667444, + 1675577880, 3843699074, 2538681184, 1649639237, 2976151520, + 3144396420, 4269907996, 4178062228, 1883793496, 2403728665, + 2497604743, 1383856311, 2876494627, 1917518562, 3810496343, + 1716890410, 3001755655, 800440835, 2261089178, 3543599269, 807962610, + 599762354, 33778362, 3977675356, 2328828971, 2809771154, 4077384432, + 1315562145, 1708848333, 101039829, 3509871135, 3299278474, 875451293, + 2733856160, 92987698, 2767645557, 193195065, 1080094634, 1584504582, + 3178106961, 1042385657, 2531067453, 3711829422, 1306967366, + 2438237621, 1908694277, 67556463, 1615861247, 429456164, 3602770327, + 2302690252, 1742315127, 2968011453, 126454664, 3877198648, 2043211483, + 2709260871, 2084704233, 4169408201, 0, 159417987, 841739592, + 504459436, 1817866830, 4245618683, 260388950, 1034867998, 908933415, + 168810852, 1750902305, 2606453969, 607530554, 202008497, 2472011535, + 3035535058, 463180190, 2160117071, 1641816226, 1517767529, 470948374, + 3801332234, 3231722213, 1008918595, 303765277, 235474187, 4069246893, + 766945465, 337553864, 1475418501, 2943682380, 4003061179, 2743034109, + 4144047775, 1551037884, 1147550661, 1543208500, 2336434550, + 3408119516, 3069049960, 3102011747, 3610369226, 1113818384, 328671808, + 2227573024, 2236228733, 3535486456, 2935566865, 3341394285, 496906059, + 3702665459, 226906860, 2009195472, 733156972, 2842737049, 294930682, + 1206477858, 2835123396, 2700099354, 1451044056, 573804783, 2269728455, + 3644379585, 2362090238, 2564033334, 2801107407, 2776292904, + 3669462566, 1068351396, 742039012, 1350078989, 1784663195, 1417561698, + 4136440770, 2430122216, 775550814, 2193862645, 2673705150, 1775276924, + 1876241833, 3475313331, 3366754619, 270040487, 3902563182, 3678124923, + 3441850377, 1851332852, 3969562369, 2203032232, 3868552805, + 2868897406, 566021896, 4011190502, 3135740889, 1248802510, 3936291284, + 699432150, 832877231, 708780849, 3332740144, 899835584, 1951317047, + 4236429990, 3767586992, 866637845, 4043610186, 1106041591, 2144161806, + 395441711, 1984812685, 1139781709, 3433712980, 3835036895, 2664543715, + 1282050075, 3240894392, 1181045119, 2640243204, 25965917, 4203181171, + 4211818798, 3009879386, 2463879762, 3910161971, 1842759443, + 2597806476, 933301370, 1509430414, 3943906441, 3467192302, 3076639029, + 3776767469, 2051518780, 2631065433, 1441952575, 404016761, 1942435775, + 1408749034, 1610459739, 3745345300, 2017778566, 3400528769, + 3110650942, 941896748, 3265478751, 371049330, 3168937228, 675039627, + 4279080257, 967311729, 135050206, 3635733660, 1683407248, 2076935265, + 3576870512, 1215061108, 3501741890, + ], + W = [ + 1347548327, 1400783205, 3273267108, 2520393566, 3409685355, + 4045380933, 2880240216, 2471224067, 1428173050, 4138563181, + 2441661558, 636813900, 4233094615, 3620022987, 2149987652, 2411029155, + 1239331162, 1730525723, 2554718734, 3781033664, 46346101, 310463728, + 2743944855, 3328955385, 3875770207, 2501218972, 3955191162, + 3667219033, 768917123, 3545789473, 692707433, 1150208456, 1786102409, + 2029293177, 1805211710, 3710368113, 3065962831, 401639597, 1724457132, + 3028143674, 409198410, 2196052529, 1620529459, 1164071807, 3769721975, + 2226875310, 486441376, 2499348523, 1483753576, 428819965, 2274680428, + 3075636216, 598438867, 3799141122, 1474502543, 711349675, 129166120, + 53458370, 2592523643, 2782082824, 4063242375, 2988687269, 3120694122, + 1559041666, 730517276, 2460449204, 4042459122, 2706270690, 3446004468, + 3573941694, 533804130, 2328143614, 2637442643, 2695033685, 839224033, + 1973745387, 957055980, 2856345839, 106852767, 1371368976, 4181598602, + 1033297158, 2933734917, 1179510461, 3046200461, 91341917, 1862534868, + 4284502037, 605657339, 2547432937, 3431546947, 2003294622, 3182487618, + 2282195339, 954669403, 3682191598, 1201765386, 3917234703, 3388507166, + 0, 2198438022, 1211247597, 2887651696, 1315723890, 4227665663, + 1443857720, 507358933, 657861945, 1678381017, 560487590, 3516619604, + 975451694, 2970356327, 261314535, 3535072918, 2652609425, 1333838021, + 2724322336, 1767536459, 370938394, 182621114, 3854606378, 1128014560, + 487725847, 185469197, 2918353863, 3106780840, 3356761769, 2237133081, + 1286567175, 3152976349, 4255350624, 2683765030, 3160175349, + 3309594171, 878443390, 1988838185, 3704300486, 1756818940, 1673061617, + 3403100636, 272786309, 1075025698, 545572369, 2105887268, 4174560061, + 296679730, 1841768865, 1260232239, 4091327024, 3960309330, 3497509347, + 1814803222, 2578018489, 4195456072, 575138148, 3299409036, 446754879, + 3629546796, 4011996048, 3347532110, 3252238545, 4270639778, 915985419, + 3483825537, 681933534, 651868046, 2755636671, 3828103837, 223377554, + 2607439820, 1649704518, 3270937875, 3901806776, 1580087799, + 4118987695, 3198115200, 2087309459, 2842678573, 3016697106, + 1003007129, 2802849917, 1860738147, 2077965243, 164439672, 4100872472, + 32283319, 2827177882, 1709610350, 2125135846, 136428751, 3874428392, + 3652904859, 3460984630, 3572145929, 3593056380, 2939266226, 824852259, + 818324884, 3224740454, 930369212, 2801566410, 2967507152, 355706840, + 1257309336, 4148292826, 243256656, 790073846, 2373340630, 1296297904, + 1422699085, 3756299780, 3818836405, 457992840, 3099667487, 2135319889, + 77422314, 1560382517, 1945798516, 788204353, 1521706781, 1385356242, + 870912086, 325965383, 2358957921, 2050466060, 2388260884, 2313884476, + 4006521127, 901210569, 3990953189, 1014646705, 1503449823, 1062597235, + 2031621326, 3212035895, 3931371469, 1533017514, 350174575, 2256028891, + 2177544179, 1052338372, 741876788, 1606591296, 1914052035, 213705253, + 2334669897, 1107234197, 1899603969, 3725069491, 2631447780, + 2422494913, 1635502980, 1893020342, 1950903388, 1120974935, + ], + H = [ + 2807058932, 1699970625, 2764249623, 1586903591, 1808481195, + 1173430173, 1487645946, 59984867, 4199882800, 1844882806, 1989249228, + 1277555970, 3623636965, 3419915562, 1149249077, 2744104290, + 1514790577, 459744698, 244860394, 3235995134, 1963115311, 4027744588, + 2544078150, 4190530515, 1608975247, 2627016082, 2062270317, + 1507497298, 2200818878, 567498868, 1764313568, 3359936201, 2305455554, + 2037970062, 1047239e3, 1910319033, 1337376481, 2904027272, 2892417312, + 984907214, 1243112415, 830661914, 861968209, 2135253587, 2011214180, + 2927934315, 2686254721, 731183368, 1750626376, 4246310725, 1820824798, + 4172763771, 3542330227, 48394827, 2404901663, 2871682645, 671593195, + 3254988725, 2073724613, 145085239, 2280796200, 2779915199, 1790575107, + 2187128086, 472615631, 3029510009, 4075877127, 3802222185, 4107101658, + 3201631749, 1646252340, 4270507174, 1402811438, 1436590835, + 3778151818, 3950355702, 3963161475, 4020912224, 2667994737, 273792366, + 2331590177, 104699613, 95345982, 3175501286, 2377486676, 1560637892, + 3564045318, 369057872, 4213447064, 3919042237, 1137477952, 2658625497, + 1119727848, 2340947849, 1530455833, 4007360968, 172466556, 266959938, + 516552836, 0, 2256734592, 3980931627, 1890328081, 1917742170, + 4294704398, 945164165, 3575528878, 958871085, 3647212047, 2787207260, + 1423022939, 775562294, 1739656202, 3876557655, 2530391278, 2443058075, + 3310321856, 547512796, 1265195639, 437656594, 3121275539, 719700128, + 3762502690, 387781147, 218828297, 3350065803, 2830708150, 2848461854, + 428169201, 122466165, 3720081049, 1627235199, 648017665, 4122762354, + 1002783846, 2117360635, 695634755, 3336358691, 4234721005, 4049844452, + 3704280881, 2232435299, 574624663, 287343814, 612205898, 1039717051, + 840019705, 2708326185, 793451934, 821288114, 1391201670, 3822090177, + 376187827, 3113855344, 1224348052, 1679968233, 2361698556, 1058709744, + 752375421, 2431590963, 1321699145, 3519142200, 2734591178, 188127444, + 2177869557, 3727205754, 2384911031, 3215212461, 2648976442, + 2450346104, 3432737375, 1180849278, 331544205, 3102249176, 4150144569, + 2952102595, 2159976285, 2474404304, 766078933, 313773861, 2570832044, + 2108100632, 1668212892, 3145456443, 2013908262, 418672217, 3070356634, + 2594734927, 1852171925, 3867060991, 3473416636, 3907448597, + 2614737639, 919489135, 164948639, 2094410160, 2997825956, 590424639, + 2486224549, 1723872674, 3157750862, 3399941250, 3501252752, + 3625268135, 2555048196, 3673637356, 1343127501, 4130281361, + 3599595085, 2957853679, 1297403050, 81781910, 3051593425, 2283490410, + 532201772, 1367295589, 3926170974, 895287692, 1953757831, 1093597963, + 492483431, 3528626907, 1446242576, 1192455638, 1636604631, 209336225, + 344873464, 1015671571, 669961897, 3375740769, 3857572124, 2973530695, + 3747192018, 1933530610, 3464042516, 935293895, 3454686199, 2858115069, + 1863638845, 3683022916, 4085369519, 3292445032, 875313188, 1080017571, + 3279033885, 621591778, 1233856572, 2504130317, 24197544, 3017672716, + 3835484340, 3247465558, 2220981195, 3060847922, 1551124588, + 1463996600, + ], + j = [ + 4104605777, 1097159550, 396673818, 660510266, 2875968315, 2638606623, + 4200115116, 3808662347, 821712160, 1986918061, 3430322568, 38544885, + 3856137295, 718002117, 893681702, 1654886325, 2975484382, 3122358053, + 3926825029, 4274053469, 796197571, 1290801793, 1184342925, 3556361835, + 2405426947, 2459735317, 1836772287, 1381620373, 3196267988, + 1948373848, 3764988233, 3385345166, 3263785589, 2390325492, + 1480485785, 3111247143, 3780097726, 2293045232, 548169417, 3459953789, + 3746175075, 439452389, 1362321559, 1400849762, 1685577905, 1806599355, + 2174754046, 137073913, 1214797936, 1174215055, 3731654548, 2079897426, + 1943217067, 1258480242, 529487843, 1437280870, 3945269170, 3049390895, + 3313212038, 923313619, 679998e3, 3215307299, 57326082, 377642221, + 3474729866, 2041877159, 133361907, 1776460110, 3673476453, 96392454, + 878845905, 2801699524, 777231668, 4082475170, 2330014213, 4142626212, + 2213296395, 1626319424, 1906247262, 1846563261, 562755902, 3708173718, + 1040559837, 3871163981, 1418573201, 3294430577, 114585348, 1343618912, + 2566595609, 3186202582, 1078185097, 3651041127, 3896688048, + 2307622919, 425408743, 3371096953, 2081048481, 1108339068, 2216610296, + 0, 2156299017, 736970802, 292596766, 1517440620, 251657213, + 2235061775, 2933202493, 758720310, 265905162, 1554391400, 1532285339, + 908999204, 174567692, 1474760595, 4002861748, 2610011675, 3234156416, + 3693126241, 2001430874, 303699484, 2478443234, 2687165888, 585122620, + 454499602, 151849742, 2345119218, 3064510765, 514443284, 4044981591, + 1963412655, 2581445614, 2137062819, 19308535, 1928707164, 1715193156, + 4219352155, 1126790795, 600235211, 3992742070, 3841024952, 836553431, + 1669664834, 2535604243, 3323011204, 1243905413, 3141400786, + 4180808110, 698445255, 2653899549, 2989552604, 2253581325, 3252932727, + 3004591147, 1891211689, 2487810577, 3915653703, 4237083816, + 4030667424, 2100090966, 865136418, 1229899655, 953270745, 3399679628, + 3557504664, 4118925222, 2061379749, 3079546586, 2915017791, 983426092, + 2022837584, 1607244650, 2118541908, 2366882550, 3635996816, 972512814, + 3283088770, 1568718495, 3499326569, 3576539503, 621982671, 2895723464, + 410887952, 2623762152, 1002142683, 645401037, 1494807662, 2595684844, + 1335535747, 2507040230, 4293295786, 3167684641, 367585007, 3885750714, + 1865862730, 2668221674, 2960971305, 2763173681, 1059270954, + 2777952454, 2724642869, 1320957812, 2194319100, 2429595872, + 2815956275, 77089521, 3973773121, 3444575871, 2448830231, 1305906550, + 4021308739, 2857194700, 2516901860, 3518358430, 1787304780, 740276417, + 1699839814, 1592394909, 2352307457, 2272556026, 188821243, 1729977011, + 3687994002, 274084841, 3594982253, 3613494426, 2701949495, 4162096729, + 322734571, 2837966542, 1640576439, 484830689, 1202797690, 3537852828, + 4067639125, 349075736, 3342319475, 4157467219, 4255800159, 1030690015, + 1155237496, 2951971274, 1757691577, 607398968, 2738905026, 499347990, + 3794078908, 1011452712, 227885567, 2818666809, 213114376, 3034881240, + 1455525988, 3414450555, 850817237, 1817998408, 3092726480, + ], + V = [ + 0, 235474187, 470948374, 303765277, 941896748, 908933415, 607530554, + 708780849, 1883793496, 2118214995, 1817866830, 1649639237, 1215061108, + 1181045119, 1417561698, 1517767529, 3767586992, 4003061179, + 4236429990, 4069246893, 3635733660, 3602770327, 3299278474, + 3400528769, 2430122216, 2664543715, 2362090238, 2193862645, + 2835123396, 2801107407, 3035535058, 3135740889, 3678124923, + 3576870512, 3341394285, 3374361702, 3810496343, 3977675356, + 4279080257, 4043610186, 2876494627, 2776292904, 3076639029, + 3110650942, 2472011535, 2640243204, 2403728665, 2169303058, + 1001089995, 899835584, 666464733, 699432150, 59727847, 226906860, + 530400753, 294930682, 1273168787, 1172967064, 1475418501, 1509430414, + 1942435775, 2110667444, 1876241833, 1641816226, 2910219766, + 2743034109, 2976151520, 3211623147, 2505202138, 2606453969, + 2302690252, 2269728455, 3711829422, 3543599269, 3240894392, + 3475313331, 3843699074, 3943906441, 4178062228, 4144047775, + 1306967366, 1139781709, 1374988112, 1610459739, 1975683434, + 2076935265, 1775276924, 1742315127, 1034867998, 866637845, 566021896, + 800440835, 92987698, 193195065, 429456164, 395441711, 1984812685, + 2017778566, 1784663195, 1683407248, 1315562145, 1080094634, + 1383856311, 1551037884, 101039829, 135050206, 437757123, 337553864, + 1042385657, 807962610, 573804783, 742039012, 2531067453, 2564033334, + 2328828971, 2227573024, 2935566865, 2700099354, 3001755655, + 3168937228, 3868552805, 3902563182, 4203181171, 4102977912, + 3736164937, 3501741890, 3265478751, 3433712980, 1106041591, + 1340463100, 1576976609, 1408749034, 2043211483, 2009195472, + 1708848333, 1809054150, 832877231, 1068351396, 766945465, 599762354, + 159417987, 126454664, 361929877, 463180190, 2709260871, 2943682380, + 3178106961, 3009879386, 2572697195, 2538681184, 2236228733, + 2336434550, 3509871135, 3745345300, 3441850377, 3274667266, + 3910161971, 3877198648, 4110568485, 4211818798, 2597806476, + 2497604743, 2261089178, 2295101073, 2733856160, 2902087851, + 3202437046, 2968011453, 3936291284, 3835036895, 4136440770, + 4169408201, 3535486456, 3702665459, 3467192302, 3231722213, + 2051518780, 1951317047, 1716890410, 1750902305, 1113818384, + 1282050075, 1584504582, 1350078989, 168810852, 67556463, 371049330, + 404016761, 841739592, 1008918595, 775550814, 540080725, 3969562369, + 3801332234, 4035489047, 4269907996, 3569255213, 3669462566, + 3366754619, 3332740144, 2631065433, 2463879762, 2160117071, + 2395588676, 2767645557, 2868897406, 3102011747, 3069049960, 202008497, + 33778362, 270040487, 504459436, 875451293, 975658646, 675039627, + 641025152, 2084704233, 1917518562, 1615861247, 1851332852, 1147550661, + 1248802510, 1484005843, 1451044056, 933301370, 967311729, 733156972, + 632953703, 260388950, 25965917, 328671808, 496906059, 1206477858, + 1239443753, 1543208500, 1441952575, 2144161806, 1908694277, + 1675577880, 1842759443, 3610369226, 3644379585, 3408119516, + 3307916247, 4011190502, 3776767469, 4077384432, 4245618683, + 2809771154, 2842737049, 3144396420, 3043140495, 2673705150, + 2438237621, 2203032232, 2370213795, + ], + te = [ + 0, 185469197, 370938394, 487725847, 741876788, 657861945, 975451694, + 824852259, 1483753576, 1400783205, 1315723890, 1164071807, 1950903388, + 2135319889, 1649704518, 1767536459, 2967507152, 3152976349, + 2801566410, 2918353863, 2631447780, 2547432937, 2328143614, + 2177544179, 3901806776, 3818836405, 4270639778, 4118987695, + 3299409036, 3483825537, 3535072918, 3652904859, 2077965243, + 1893020342, 1841768865, 1724457132, 1474502543, 1559041666, + 1107234197, 1257309336, 598438867, 681933534, 901210569, 1052338372, + 261314535, 77422314, 428819965, 310463728, 3409685355, 3224740454, + 3710368113, 3593056380, 3875770207, 3960309330, 4045380933, + 4195456072, 2471224067, 2554718734, 2237133081, 2388260884, + 3212035895, 3028143674, 2842678573, 2724322336, 4138563181, + 4255350624, 3769721975, 3955191162, 3667219033, 3516619604, + 3431546947, 3347532110, 2933734917, 2782082824, 3099667487, + 3016697106, 2196052529, 2313884476, 2499348523, 2683765030, + 1179510461, 1296297904, 1347548327, 1533017514, 1786102409, + 1635502980, 2087309459, 2003294622, 507358933, 355706840, 136428751, + 53458370, 839224033, 957055980, 605657339, 790073846, 2373340630, + 2256028891, 2607439820, 2422494913, 2706270690, 2856345839, + 3075636216, 3160175349, 3573941694, 3725069491, 3273267108, + 3356761769, 4181598602, 4063242375, 4011996048, 3828103837, + 1033297158, 915985419, 730517276, 545572369, 296679730, 446754879, + 129166120, 213705253, 1709610350, 1860738147, 1945798516, 2029293177, + 1239331162, 1120974935, 1606591296, 1422699085, 4148292826, + 4233094615, 3781033664, 3931371469, 3682191598, 3497509347, + 3446004468, 3328955385, 2939266226, 2755636671, 3106780840, + 2988687269, 2198438022, 2282195339, 2501218972, 2652609425, + 1201765386, 1286567175, 1371368976, 1521706781, 1805211710, + 1620529459, 2105887268, 1988838185, 533804130, 350174575, 164439672, + 46346101, 870912086, 954669403, 636813900, 788204353, 2358957921, + 2274680428, 2592523643, 2441661558, 2695033685, 2880240216, + 3065962831, 3182487618, 3572145929, 3756299780, 3270937875, + 3388507166, 4174560061, 4091327024, 4006521127, 3854606378, + 1014646705, 930369212, 711349675, 560487590, 272786309, 457992840, + 106852767, 223377554, 1678381017, 1862534868, 1914052035, 2031621326, + 1211247597, 1128014560, 1580087799, 1428173050, 32283319, 182621114, + 401639597, 486441376, 768917123, 651868046, 1003007129, 818324884, + 1503449823, 1385356242, 1333838021, 1150208456, 1973745387, + 2125135846, 1673061617, 1756818940, 2970356327, 3120694122, + 2802849917, 2887651696, 2637442643, 2520393566, 2334669897, + 2149987652, 3917234703, 3799141122, 4284502037, 4100872472, + 3309594171, 3460984630, 3545789473, 3629546796, 2050466060, + 1899603969, 1814803222, 1730525723, 1443857720, 1560382517, + 1075025698, 1260232239, 575138148, 692707433, 878443390, 1062597235, + 243256656, 91341917, 409198410, 325965383, 3403100636, 3252238545, + 3704300486, 3620022987, 3874428392, 3990953189, 4042459122, + 4227665663, 2460449204, 2578018489, 2226875310, 2411029155, + 3198115200, 3046200461, 2827177882, 2743944855, + ], + $ = [ + 0, 218828297, 437656594, 387781147, 875313188, 958871085, 775562294, + 590424639, 1750626376, 1699970625, 1917742170, 2135253587, 1551124588, + 1367295589, 1180849278, 1265195639, 3501252752, 3720081049, + 3399941250, 3350065803, 3835484340, 3919042237, 4270507174, + 4085369519, 3102249176, 3051593425, 2734591178, 2952102595, + 2361698556, 2177869557, 2530391278, 2614737639, 3145456443, + 3060847922, 2708326185, 2892417312, 2404901663, 2187128086, + 2504130317, 2555048196, 3542330227, 3727205754, 3375740769, + 3292445032, 3876557655, 3926170974, 4246310725, 4027744588, + 1808481195, 1723872674, 1910319033, 2094410160, 1608975247, + 1391201670, 1173430173, 1224348052, 59984867, 244860394, 428169201, + 344873464, 935293895, 984907214, 766078933, 547512796, 1844882806, + 1627235199, 2011214180, 2062270317, 1507497298, 1423022939, + 1137477952, 1321699145, 95345982, 145085239, 532201772, 313773861, + 830661914, 1015671571, 731183368, 648017665, 3175501286, 2957853679, + 2807058932, 2858115069, 2305455554, 2220981195, 2474404304, + 2658625497, 3575528878, 3625268135, 3473416636, 3254988725, + 3778151818, 3963161475, 4213447064, 4130281361, 3599595085, + 3683022916, 3432737375, 3247465558, 3802222185, 4020912224, + 4172763771, 4122762354, 3201631749, 3017672716, 2764249623, + 2848461854, 2331590177, 2280796200, 2431590963, 2648976442, 104699613, + 188127444, 472615631, 287343814, 840019705, 1058709744, 671593195, + 621591778, 1852171925, 1668212892, 1953757831, 2037970062, 1514790577, + 1463996600, 1080017571, 1297403050, 3673637356, 3623636965, + 3235995134, 3454686199, 4007360968, 3822090177, 4107101658, + 4190530515, 2997825956, 3215212461, 2830708150, 2779915199, + 2256734592, 2340947849, 2627016082, 2443058075, 172466556, 122466165, + 273792366, 492483431, 1047239e3, 861968209, 612205898, 695634755, + 1646252340, 1863638845, 2013908262, 1963115311, 1446242576, + 1530455833, 1277555970, 1093597963, 1636604631, 1820824798, + 2073724613, 1989249228, 1436590835, 1487645946, 1337376481, + 1119727848, 164948639, 81781910, 331544205, 516552836, 1039717051, + 821288114, 669961897, 719700128, 2973530695, 3157750862, 2871682645, + 2787207260, 2232435299, 2283490410, 2667994737, 2450346104, + 3647212047, 3564045318, 3279033885, 3464042516, 3980931627, + 3762502690, 4150144569, 4199882800, 3070356634, 3121275539, + 2904027272, 2686254721, 2200818878, 2384911031, 2570832044, + 2486224549, 3747192018, 3528626907, 3310321856, 3359936201, + 3950355702, 3867060991, 4049844452, 4234721005, 1739656202, + 1790575107, 2108100632, 1890328081, 1402811438, 1586903591, + 1233856572, 1149249077, 266959938, 48394827, 369057872, 418672217, + 1002783846, 919489135, 567498868, 752375421, 209336225, 24197544, + 376187827, 459744698, 945164165, 895287692, 574624663, 793451934, + 1679968233, 1764313568, 2117360635, 1933530610, 1343127501, + 1560637892, 1243112415, 1192455638, 3704280881, 3519142200, + 3336358691, 3419915562, 3907448597, 3857572124, 4075877127, + 4294704398, 3029510009, 3113855344, 2927934315, 2744104290, + 2159976285, 2377486676, 2594734927, 2544078150, + ], + ae = [ + 0, 151849742, 303699484, 454499602, 607398968, 758720310, 908999204, + 1059270954, 1214797936, 1097159550, 1517440620, 1400849762, + 1817998408, 1699839814, 2118541908, 2001430874, 2429595872, + 2581445614, 2194319100, 2345119218, 3034881240, 3186202582, + 2801699524, 2951971274, 3635996816, 3518358430, 3399679628, + 3283088770, 4237083816, 4118925222, 4002861748, 3885750714, + 1002142683, 850817237, 698445255, 548169417, 529487843, 377642221, + 227885567, 77089521, 1943217067, 2061379749, 1640576439, 1757691577, + 1474760595, 1592394909, 1174215055, 1290801793, 2875968315, + 2724642869, 3111247143, 2960971305, 2405426947, 2253581325, + 2638606623, 2487810577, 3808662347, 3926825029, 4044981591, + 4162096729, 3342319475, 3459953789, 3576539503, 3693126241, + 1986918061, 2137062819, 1685577905, 1836772287, 1381620373, + 1532285339, 1078185097, 1229899655, 1040559837, 923313619, 740276417, + 621982671, 439452389, 322734571, 137073913, 19308535, 3871163981, + 4021308739, 4104605777, 4255800159, 3263785589, 3414450555, + 3499326569, 3651041127, 2933202493, 2815956275, 3167684641, + 3049390895, 2330014213, 2213296395, 2566595609, 2448830231, + 1305906550, 1155237496, 1607244650, 1455525988, 1776460110, + 1626319424, 2079897426, 1928707164, 96392454, 213114376, 396673818, + 514443284, 562755902, 679998e3, 865136418, 983426092, 3708173718, + 3557504664, 3474729866, 3323011204, 4180808110, 4030667424, + 3945269170, 3794078908, 2507040230, 2623762152, 2272556026, + 2390325492, 2975484382, 3092726480, 2738905026, 2857194700, + 3973773121, 3856137295, 4274053469, 4157467219, 3371096953, + 3252932727, 3673476453, 3556361835, 2763173681, 2915017791, + 3064510765, 3215307299, 2156299017, 2307622919, 2459735317, + 2610011675, 2081048481, 1963412655, 1846563261, 1729977011, + 1480485785, 1362321559, 1243905413, 1126790795, 878845905, 1030690015, + 645401037, 796197571, 274084841, 425408743, 38544885, 188821243, + 3613494426, 3731654548, 3313212038, 3430322568, 4082475170, + 4200115116, 3780097726, 3896688048, 2668221674, 2516901860, + 2366882550, 2216610296, 3141400786, 2989552604, 2837966542, + 2687165888, 1202797690, 1320957812, 1437280870, 1554391400, + 1669664834, 1787304780, 1906247262, 2022837584, 265905162, 114585348, + 499347990, 349075736, 736970802, 585122620, 972512814, 821712160, + 2595684844, 2478443234, 2293045232, 2174754046, 3196267988, + 3079546586, 2895723464, 2777952454, 3537852828, 3687994002, + 3234156416, 3385345166, 4142626212, 4293295786, 3841024952, + 3992742070, 174567692, 57326082, 410887952, 292596766, 777231668, + 660510266, 1011452712, 893681702, 1108339068, 1258480242, 1343618912, + 1494807662, 1715193156, 1865862730, 1948373848, 2100090966, + 2701949495, 2818666809, 3004591147, 3122358053, 2235061775, + 2352307457, 2535604243, 2653899549, 3915653703, 3764988233, + 4219352155, 4067639125, 3444575871, 3294430577, 3746175075, + 3594982253, 836553431, 953270745, 600235211, 718002117, 367585007, + 484830689, 133361907, 251657213, 2041877159, 1891211689, 1806599355, + 1654886325, 1568718495, 1418573201, 1335535747, 1184342925, + ]; + function Y(u) { + for (var v = [], R = 0; R < u.length; R += 4) + v.push((u[R] << 24) | (u[R + 1] << 16) | (u[R + 2] << 8) | u[R + 3]); + return v; + } + var K = function (u) { + if (!(this instanceof K)) + throw Error("AES must be instanitated with `new`"); + Object.defineProperty(this, "key", { value: n(u, !0) }), + this._prepare(); + }; + (K.prototype._prepare = function () { + var u = l[this.key.length]; + if (u == null) + throw new Error("invalid key size (must be 16, 24 or 32 bytes)"); + (this._Ke = []), (this._Kd = []); + for (var v = 0; v <= u; v++) + this._Ke.push([0, 0, 0, 0]), this._Kd.push([0, 0, 0, 0]); + for ( + var R = (u + 1) * 4, + A = this.key.length / 4, + L = Y(this.key), + G, + v = 0; + v < A; + v++ + ) + (G = v >> 2), + (this._Ke[G][v % 4] = L[v]), + (this._Kd[u - G][v % 4] = L[v]); + for (var U = 0, Z = A, de; Z < R; ) { + if ( + ((de = L[A - 1]), + (L[0] ^= + (m[(de >> 16) & 255] << 24) ^ + (m[(de >> 8) & 255] << 16) ^ + (m[de & 255] << 8) ^ + m[(de >> 24) & 255] ^ + (d[U] << 24)), + (U += 1), + A != 8) + ) + for (var v = 1; v < A; v++) L[v] ^= L[v - 1]; + else { + for (var v = 1; v < A / 2; v++) L[v] ^= L[v - 1]; + (de = L[A / 2 - 1]), + (L[A / 2] ^= + m[de & 255] ^ + (m[(de >> 8) & 255] << 8) ^ + (m[(de >> 16) & 255] << 16) ^ + (m[(de >> 24) & 255] << 24)); + for (var v = A / 2 + 1; v < A; v++) L[v] ^= L[v - 1]; + } + for (var v = 0, ne, pe; v < A && Z < R; ) + (ne = Z >> 2), + (pe = Z % 4), + (this._Ke[ne][pe] = L[v]), + (this._Kd[u - ne][pe] = L[v++]), + Z++; + } + for (var ne = 1; ne < u; ne++) + for (var pe = 0; pe < 4; pe++) + (de = this._Kd[ne][pe]), + (this._Kd[ne][pe] = + V[(de >> 24) & 255] ^ + te[(de >> 16) & 255] ^ + $[(de >> 8) & 255] ^ + ae[de & 255]); + }), + (K.prototype.encrypt = function (u) { + if (u.length != 16) + throw new Error("invalid plaintext size (must be 16 bytes)"); + for ( + var v = this._Ke.length - 1, R = [0, 0, 0, 0], A = Y(u), L = 0; + L < 4; + L++ + ) + A[L] ^= this._Ke[0][L]; + for (var G = 1; G < v; G++) { + for (var L = 0; L < 4; L++) + R[L] = + C[(A[L] >> 24) & 255] ^ + I[(A[(L + 1) % 4] >> 16) & 255] ^ + k[(A[(L + 2) % 4] >> 8) & 255] ^ + O[A[(L + 3) % 4] & 255] ^ + this._Ke[G][L]; + A = R.slice(); + } + for (var U = a(16), Z, L = 0; L < 4; L++) + (Z = this._Ke[v][L]), + (U[4 * L] = (m[(A[L] >> 24) & 255] ^ (Z >> 24)) & 255), + (U[4 * L + 1] = + (m[(A[(L + 1) % 4] >> 16) & 255] ^ (Z >> 16)) & 255), + (U[4 * L + 2] = + (m[(A[(L + 2) % 4] >> 8) & 255] ^ (Z >> 8)) & 255), + (U[4 * L + 3] = (m[A[(L + 3) % 4] & 255] ^ Z) & 255); + return U; + }), + (K.prototype.decrypt = function (u) { + if (u.length != 16) + throw new Error("invalid ciphertext size (must be 16 bytes)"); + for ( + var v = this._Kd.length - 1, R = [0, 0, 0, 0], A = Y(u), L = 0; + L < 4; + L++ + ) + A[L] ^= this._Kd[0][L]; + for (var G = 1; G < v; G++) { + for (var L = 0; L < 4; L++) + R[L] = + D[(A[L] >> 24) & 255] ^ + W[(A[(L + 3) % 4] >> 16) & 255] ^ + H[(A[(L + 2) % 4] >> 8) & 255] ^ + j[A[(L + 1) % 4] & 255] ^ + this._Kd[G][L]; + A = R.slice(); + } + for (var U = a(16), Z, L = 0; L < 4; L++) + (Z = this._Kd[v][L]), + (U[4 * L] = (w[(A[L] >> 24) & 255] ^ (Z >> 24)) & 255), + (U[4 * L + 1] = + (w[(A[(L + 3) % 4] >> 16) & 255] ^ (Z >> 16)) & 255), + (U[4 * L + 2] = + (w[(A[(L + 2) % 4] >> 8) & 255] ^ (Z >> 8)) & 255), + (U[4 * L + 3] = (w[A[(L + 1) % 4] & 255] ^ Z) & 255); + return U; + }); + var g = function (u) { + if (!(this instanceof g)) + throw Error("AES must be instanitated with `new`"); + (this.description = "Electronic Code Block"), + (this.name = "ecb"), + (this._aes = new K(u)); + }; + (g.prototype.encrypt = function (u) { + if (((u = n(u)), u.length % 16 !== 0)) + throw new Error( + "invalid plaintext size (must be multiple of 16 bytes)" + ); + for (var v = a(u.length), R = a(16), A = 0; A < u.length; A += 16) + i(u, R, 0, A, A + 16), (R = this._aes.encrypt(R)), i(R, v, A); + return v; + }), + (g.prototype.decrypt = function (u) { + if (((u = n(u)), u.length % 16 !== 0)) + throw new Error( + "invalid ciphertext size (must be multiple of 16 bytes)" + ); + for (var v = a(u.length), R = a(16), A = 0; A < u.length; A += 16) + i(u, R, 0, A, A + 16), (R = this._aes.decrypt(R)), i(R, v, A); + return v; + }); + var o = function (u, v) { + if (!(this instanceof o)) + throw Error("AES must be instanitated with `new`"); + if ( + ((this.description = "Cipher Block Chaining"), + (this.name = "cbc"), + !v) + ) + v = a(16); + else if (v.length != 16) + throw new Error( + "invalid initialation vector size (must be 16 bytes)" + ); + (this._lastCipherblock = n(v, !0)), (this._aes = new K(u)); + }; + (o.prototype.encrypt = function (u) { + if (((u = n(u)), u.length % 16 !== 0)) + throw new Error( + "invalid plaintext size (must be multiple of 16 bytes)" + ); + for (var v = a(u.length), R = a(16), A = 0; A < u.length; A += 16) { + i(u, R, 0, A, A + 16); + for (var L = 0; L < 16; L++) R[L] ^= this._lastCipherblock[L]; + (this._lastCipherblock = this._aes.encrypt(R)), + i(this._lastCipherblock, v, A); + } + return v; + }), + (o.prototype.decrypt = function (u) { + if (((u = n(u)), u.length % 16 !== 0)) + throw new Error( + "invalid ciphertext size (must be multiple of 16 bytes)" + ); + for (var v = a(u.length), R = a(16), A = 0; A < u.length; A += 16) { + i(u, R, 0, A, A + 16), (R = this._aes.decrypt(R)); + for (var L = 0; L < 16; L++) + v[A + L] = R[L] ^ this._lastCipherblock[L]; + i(u, this._lastCipherblock, 0, A, A + 16); + } + return v; + }); + var p = function (u, v, R) { + if (!(this instanceof p)) + throw Error("AES must be instanitated with `new`"); + if (((this.description = "Cipher Feedback"), (this.name = "cfb"), !v)) + v = a(16); + else if (v.length != 16) + throw new Error("invalid initialation vector size (must be 16 size)"); + R || (R = 1), + (this.segmentSize = R), + (this._shiftRegister = n(v, !0)), + (this._aes = new K(u)); + }; + (p.prototype.encrypt = function (u) { + if (u.length % this.segmentSize != 0) + throw new Error("invalid plaintext size (must be segmentSize bytes)"); + for (var v = n(u, !0), R, A = 0; A < v.length; A += this.segmentSize) { + R = this._aes.encrypt(this._shiftRegister); + for (var L = 0; L < this.segmentSize; L++) v[A + L] ^= R[L]; + i(this._shiftRegister, this._shiftRegister, 0, this.segmentSize), + i( + v, + this._shiftRegister, + 16 - this.segmentSize, + A, + A + this.segmentSize + ); + } + return v; + }), + (p.prototype.decrypt = function (u) { + if (u.length % this.segmentSize != 0) + throw new Error( + "invalid ciphertext size (must be segmentSize bytes)" + ); + for ( + var v = n(u, !0), R, A = 0; + A < v.length; + A += this.segmentSize + ) { + R = this._aes.encrypt(this._shiftRegister); + for (var L = 0; L < this.segmentSize; L++) v[A + L] ^= R[L]; + i(this._shiftRegister, this._shiftRegister, 0, this.segmentSize), + i( + u, + this._shiftRegister, + 16 - this.segmentSize, + A, + A + this.segmentSize + ); + } + return v; + }); + var y = function (u, v) { + if (!(this instanceof y)) + throw Error("AES must be instanitated with `new`"); + if (((this.description = "Output Feedback"), (this.name = "ofb"), !v)) + v = a(16); + else if (v.length != 16) + throw new Error( + "invalid initialation vector size (must be 16 bytes)" + ); + (this._lastPrecipher = n(v, !0)), + (this._lastPrecipherIndex = 16), + (this._aes = new K(u)); + }; + (y.prototype.encrypt = function (u) { + for (var v = n(u, !0), R = 0; R < v.length; R++) + this._lastPrecipherIndex === 16 && + ((this._lastPrecipher = this._aes.encrypt(this._lastPrecipher)), + (this._lastPrecipherIndex = 0)), + (v[R] ^= this._lastPrecipher[this._lastPrecipherIndex++]); + return v; + }), + (y.prototype.decrypt = y.prototype.encrypt); + var h = function (u) { + if (!(this instanceof h)) + throw Error("Counter must be instanitated with `new`"); + u !== 0 && !u && (u = 1), + typeof u == "number" + ? ((this._counter = a(16)), this.setValue(u)) + : this.setBytes(u); + }; + (h.prototype.setValue = function (u) { + if (typeof u != "number" || parseInt(u) != u) + throw new Error("invalid counter value (must be an integer)"); + for (var v = 15; v >= 0; --v) + (this._counter[v] = u % 256), (u = u >> 8); + }), + (h.prototype.setBytes = function (u) { + if (((u = n(u, !0)), u.length != 16)) + throw new Error("invalid counter bytes size (must be 16 bytes)"); + this._counter = u; + }), + (h.prototype.increment = function () { + for (var u = 15; u >= 0; u--) + if (this._counter[u] === 255) this._counter[u] = 0; + else { + this._counter[u]++; + break; + } + }); + var b = function (u, v) { + if (!(this instanceof b)) + throw Error("AES must be instanitated with `new`"); + (this.description = "Counter"), + (this.name = "ctr"), + v instanceof h || (v = new h(v)), + (this._counter = v), + (this._remainingCounter = null), + (this._remainingCounterIndex = 16), + (this._aes = new K(u)); + }; + (b.prototype.encrypt = function (u) { + for (var v = n(u, !0), R = 0; R < v.length; R++) + this._remainingCounterIndex === 16 && + ((this._remainingCounter = this._aes.encrypt( + this._counter._counter + )), + (this._remainingCounterIndex = 0), + this._counter.increment()), + (v[R] ^= this._remainingCounter[this._remainingCounterIndex++]); + return v; + }), + (b.prototype.decrypt = b.prototype.encrypt); + function T(u) { + u = n(u, !0); + var v = 16 - (u.length % 16), + R = a(u.length + v); + i(u, R); + for (var A = u.length; A < R.length; A++) R[A] = v; + return R; + } + function E(u) { + if (((u = n(u, !0)), u.length < 16)) + throw new Error("PKCS#7 invalid length"); + var v = u[u.length - 1]; + if (v > 16) throw new Error("PKCS#7 padding byte out of range"); + for (var R = u.length - v, A = 0; A < v; A++) + if (u[R + A] !== v) throw new Error("PKCS#7 invalid padding byte"); + var L = a(R); + return i(u, L, 0, 0, R), L; + } + var f = { + AES: K, + Counter: h, + ModeOfOperation: { ecb: g, cbc: o, cfb: p, ofb: y, ctr: b }, + utils: { hex: c, utf8: s }, + padding: { pkcs7: { pad: T, strip: E } }, + _arrayTest: { coerceArray: n, createArray: a, copyArray: i }, + }; + typeof DW < "u" + ? (kme.exports = f) + : typeof define == "function" && define.amd + ? define(f) + : (r.aesjs && (f._aesjs = r.aesjs), (r.aesjs = f)); + })(DW); + }); + var FW = N((KA) => { + "use strict"; + _(); + x(); + Object.defineProperty(KA, "__esModule", { value: !0 }); + KA.version = void 0; + KA.version = "json-wallets/5.7.0"; + }); + var WW = N((Nl) => { + "use strict"; + _(); + x(); + Object.defineProperty(Nl, "__esModule", { value: !0 }); + Nl.uuidV4 = + Nl.searchPath = + Nl.getPassword = + Nl.zpad = + Nl.looseArrayify = + void 0; + var VA = Dr(), + Sme = Ki(); + function A3t(r) { + return ( + typeof r == "string" && r.substring(0, 2) !== "0x" && (r = "0x" + r), + (0, VA.arrayify)(r) + ); + } + Nl.looseArrayify = A3t; + function k3t(r, e) { + for (r = String(r); r.length < e; ) r = "0" + r; + return r; + } + Nl.zpad = k3t; + function S3t(r) { + return typeof r == "string" + ? (0, Sme.toUtf8Bytes)(r, Sme.UnicodeNormalizationForm.NFKC) + : (0, VA.arrayify)(r); + } + Nl.getPassword = S3t; + function M3t(r, e) { + for ( + var t = r, n = e.toLowerCase().split("/"), a = 0; + a < n.length; + a++ + ) { + var i = null; + for (var s in t) + if (s.toLowerCase() === n[a]) { + i = t[s]; + break; + } + if (i === null) return null; + t = i; + } + return t; + } + Nl.searchPath = M3t; + function P3t(r) { + var e = (0, VA.arrayify)(r); + (e[6] = (e[6] & 15) | 64), (e[8] = (e[8] & 63) | 128); + var t = (0, VA.hexlify)(e); + return [ + t.substring(2, 10), + t.substring(10, 14), + t.substring(14, 18), + t.substring(18, 22), + t.substring(22, 34), + ].join("-"); + } + Nl.uuidV4 = P3t; + }); + var Bme = N((Vp) => { + "use strict"; + _(); + x(); + var R3t = + (Vp && Vp.__extends) || + (function () { + var r = function (e, t) { + return ( + (r = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (n, a) { + n.__proto__ = a; + }) || + function (n, a) { + for (var i in a) + Object.prototype.hasOwnProperty.call(a, i) && (n[i] = a[i]); + }), + r(e, t) + ); + }; + return function (e, t) { + if (typeof t != "function" && t !== null) + throw new TypeError( + "Class extends value " + + String(t) + + " is not a constructor or null" + ); + r(e, t); + function n() { + this.constructor = e; + } + e.prototype = + t === null + ? Object.create(t) + : ((n.prototype = t.prototype), new n()); + }; + })(), + B3t = + (Vp && Vp.__importDefault) || + function (r) { + return r && r.__esModule ? r : { default: r }; + }; + Object.defineProperty(Vp, "__esModule", { value: !0 }); + Vp.decrypt = Vp.CrowdsaleAccount = void 0; + var Mme = B3t(qW()), + N3t = dl(), + Pme = Dr(), + O3t = Nu(), + L3t = MA(), + D3t = Ki(), + q3t = ja(), + F3t = ir(), + W3t = FW(), + U3t = new F3t.Logger(W3t.version), + GA = WW(), + Rme = (function (r) { + R3t(e, r); + function e() { + return (r !== null && r.apply(this, arguments)) || this; + } + return ( + (e.prototype.isCrowdsaleAccount = function (t) { + return !!(t && t._isCrowdsaleAccount); + }), + e + ); + })(q3t.Description); + Vp.CrowdsaleAccount = Rme; + function H3t(r, e) { + var t = JSON.parse(r); + e = (0, GA.getPassword)(e); + var n = (0, N3t.getAddress)((0, GA.searchPath)(t, "ethaddr")), + a = (0, GA.looseArrayify)((0, GA.searchPath)(t, "encseed")); + (!a || a.length % 16 !== 0) && + U3t.throwArgumentError("invalid encseed", "json", r); + for ( + var i = (0, Pme.arrayify)( + (0, L3t.pbkdf2)(e, e, 2e3, 32, "sha256") + ).slice(0, 16), + s = a.slice(0, 16), + c = a.slice(16), + l = new Mme.default.ModeOfOperation.cbc(i, s), + d = Mme.default.padding.pkcs7.strip((0, Pme.arrayify)(l.decrypt(c))), + m = "", + w = 0; + w < d.length; + w++ + ) + m += String.fromCharCode(d[w]); + var C = (0, D3t.toUtf8Bytes)(m), + I = (0, O3t.keccak256)(C); + return new Rme({ _isCrowdsaleAccount: !0, address: n, privateKey: I }); + } + Vp.decrypt = H3t; + }); + var Dme = N((Um) => { + "use strict"; + _(); + x(); + Object.defineProperty(Um, "__esModule", { value: !0 }); + Um.getJsonWalletAddress = + Um.isKeystoreWallet = + Um.isCrowdsaleWallet = + void 0; + var Nme = dl(); + function Ome(r) { + var e = null; + try { + e = JSON.parse(r); + } catch { + return !1; + } + return e.encseed && e.ethaddr; + } + Um.isCrowdsaleWallet = Ome; + function Lme(r) { + var e = null; + try { + e = JSON.parse(r); + } catch { + return !1; + } + return !( + !e.version || + parseInt(e.version) !== e.version || + parseInt(e.version) !== 3 + ); + } + Um.isKeystoreWallet = Lme; + function z3t(r) { + if (Ome(r)) + try { + return (0, Nme.getAddress)(JSON.parse(r).ethaddr); + } catch { + return null; + } + if (Lme(r)) + try { + return (0, Nme.getAddress)(JSON.parse(r).address); + } catch { + return null; + } + return null; + } + Um.getJsonWalletAddress = z3t; + }); + var Fme = N((UW, qme) => { + "use strict"; + _(); + x(); + (function (r) { + function t(I) { + let k = new Uint32Array([ + 1116352408, 1899447441, 3049323471, 3921009573, 961987163, + 1508970993, 2453635748, 2870763221, 3624381080, 310598401, + 607225278, 1426881987, 1925078388, 2162078206, 2614888103, + 3248222580, 3835390401, 4022224774, 264347078, 604807628, 770255983, + 1249150122, 1555081692, 1996064986, 2554220882, 2821834349, + 2952996808, 3210313671, 3336571891, 3584528711, 113926993, + 338241895, 666307205, 773529912, 1294757372, 1396182291, 1695183700, + 1986661051, 2177026350, 2456956037, 2730485921, 2820302411, + 3259730800, 3345764771, 3516065817, 3600352804, 4094571909, + 275423344, 430227734, 506948616, 659060556, 883997877, 958139571, + 1322822218, 1537002063, 1747873779, 1955562222, 2024104815, + 2227730452, 2361852424, 2428436474, 2756734187, 3204031479, + 3329325298, + ]), + O = 1779033703, + D = 3144134277, + W = 1013904242, + H = 2773480762, + j = 1359893119, + V = 2600822924, + te = 528734635, + $ = 1541459225, + ae = new Uint32Array(64); + function Y(b) { + let T = 0, + E = b.length; + for (; E >= 64; ) { + let f = O, + u = D, + v = W, + R = H, + A = j, + L = V, + G = te, + U = $, + Z, + de, + ne, + pe, + lt; + for (de = 0; de < 16; de++) + (ne = T + de * 4), + (ae[de] = + ((b[ne] & 255) << 24) | + ((b[ne + 1] & 255) << 16) | + ((b[ne + 2] & 255) << 8) | + (b[ne + 3] & 255)); + for (de = 16; de < 64; de++) + (Z = ae[de - 2]), + (pe = + ((Z >>> 17) | (Z << (32 - 17))) ^ + ((Z >>> 19) | (Z << (32 - 19))) ^ + (Z >>> 10)), + (Z = ae[de - 15]), + (lt = + ((Z >>> 7) | (Z << (32 - 7))) ^ + ((Z >>> 18) | (Z << (32 - 18))) ^ + (Z >>> 3)), + (ae[de] = + (((pe + ae[de - 7]) | 0) + ((lt + ae[de - 16]) | 0)) | 0); + for (de = 0; de < 64; de++) + (pe = + ((((((A >>> 6) | (A << (32 - 6))) ^ + ((A >>> 11) | (A << (32 - 11))) ^ + ((A >>> 25) | (A << (32 - 25)))) + + ((A & L) ^ (~A & G))) | + 0) + + ((U + ((k[de] + ae[de]) | 0)) | 0)) | + 0), + (lt = + ((((f >>> 2) | (f << (32 - 2))) ^ + ((f >>> 13) | (f << (32 - 13))) ^ + ((f >>> 22) | (f << (32 - 22)))) + + ((f & u) ^ (f & v) ^ (u & v))) | + 0), + (U = G), + (G = L), + (L = A), + (A = (R + pe) | 0), + (R = v), + (v = u), + (u = f), + (f = (pe + lt) | 0); + (O = (O + f) | 0), + (D = (D + u) | 0), + (W = (W + v) | 0), + (H = (H + R) | 0), + (j = (j + A) | 0), + (V = (V + L) | 0), + (te = (te + G) | 0), + ($ = ($ + U) | 0), + (T += 64), + (E -= 64); + } + } + Y(I); + let K, + g = I.length % 64, + o = (I.length / 536870912) | 0, + p = I.length << 3, + y = g < 56 ? 56 : 120, + h = I.slice(I.length - g, I.length); + for (h.push(128), K = g + 1; K < y; K++) h.push(0); + return ( + h.push((o >>> 24) & 255), + h.push((o >>> 16) & 255), + h.push((o >>> 8) & 255), + h.push((o >>> 0) & 255), + h.push((p >>> 24) & 255), + h.push((p >>> 16) & 255), + h.push((p >>> 8) & 255), + h.push((p >>> 0) & 255), + Y(h), + [ + (O >>> 24) & 255, + (O >>> 16) & 255, + (O >>> 8) & 255, + (O >>> 0) & 255, + (D >>> 24) & 255, + (D >>> 16) & 255, + (D >>> 8) & 255, + (D >>> 0) & 255, + (W >>> 24) & 255, + (W >>> 16) & 255, + (W >>> 8) & 255, + (W >>> 0) & 255, + (H >>> 24) & 255, + (H >>> 16) & 255, + (H >>> 8) & 255, + (H >>> 0) & 255, + (j >>> 24) & 255, + (j >>> 16) & 255, + (j >>> 8) & 255, + (j >>> 0) & 255, + (V >>> 24) & 255, + (V >>> 16) & 255, + (V >>> 8) & 255, + (V >>> 0) & 255, + (te >>> 24) & 255, + (te >>> 16) & 255, + (te >>> 8) & 255, + (te >>> 0) & 255, + ($ >>> 24) & 255, + ($ >>> 16) & 255, + ($ >>> 8) & 255, + ($ >>> 0) & 255, + ] + ); + } + function n(I, k, O) { + I = I.length <= 64 ? I : t(I); + let D = 64 + k.length + 4, + W = new Array(D), + H = new Array(64), + j, + V = []; + for (j = 0; j < 64; j++) W[j] = 54; + for (j = 0; j < I.length; j++) W[j] ^= I[j]; + for (j = 0; j < k.length; j++) W[64 + j] = k[j]; + for (j = D - 4; j < D; j++) W[j] = 0; + for (j = 0; j < 64; j++) H[j] = 92; + for (j = 0; j < I.length; j++) H[j] ^= I[j]; + function te() { + for (let $ = D - 1; $ >= D - 4; $--) { + if ((W[$]++, W[$] <= 255)) return; + W[$] = 0; + } + } + for (; O >= 32; ) te(), (V = V.concat(t(H.concat(t(W))))), (O -= 32); + return ( + O > 0 && (te(), (V = V.concat(t(H.concat(t(W))).slice(0, O)))), V + ); + } + function a(I, k, O, D, W) { + let H; + for (l(I, (2 * O - 1) * 16, W, 0, 16), H = 0; H < 2 * O; H++) + c(I, H * 16, W, 16), s(W, D), l(W, 0, I, k + H * 16, 16); + for (H = 0; H < O; H++) l(I, k + H * 2 * 16, I, H * 16, 16); + for (H = 0; H < O; H++) l(I, k + (H * 2 + 1) * 16, I, (H + O) * 16, 16); + } + function i(I, k) { + return (I << k) | (I >>> (32 - k)); + } + function s(I, k) { + l(I, 0, k, 0, 16); + for (let O = 8; O > 0; O -= 2) + (k[4] ^= i(k[0] + k[12], 7)), + (k[8] ^= i(k[4] + k[0], 9)), + (k[12] ^= i(k[8] + k[4], 13)), + (k[0] ^= i(k[12] + k[8], 18)), + (k[9] ^= i(k[5] + k[1], 7)), + (k[13] ^= i(k[9] + k[5], 9)), + (k[1] ^= i(k[13] + k[9], 13)), + (k[5] ^= i(k[1] + k[13], 18)), + (k[14] ^= i(k[10] + k[6], 7)), + (k[2] ^= i(k[14] + k[10], 9)), + (k[6] ^= i(k[2] + k[14], 13)), + (k[10] ^= i(k[6] + k[2], 18)), + (k[3] ^= i(k[15] + k[11], 7)), + (k[7] ^= i(k[3] + k[15], 9)), + (k[11] ^= i(k[7] + k[3], 13)), + (k[15] ^= i(k[11] + k[7], 18)), + (k[1] ^= i(k[0] + k[3], 7)), + (k[2] ^= i(k[1] + k[0], 9)), + (k[3] ^= i(k[2] + k[1], 13)), + (k[0] ^= i(k[3] + k[2], 18)), + (k[6] ^= i(k[5] + k[4], 7)), + (k[7] ^= i(k[6] + k[5], 9)), + (k[4] ^= i(k[7] + k[6], 13)), + (k[5] ^= i(k[4] + k[7], 18)), + (k[11] ^= i(k[10] + k[9], 7)), + (k[8] ^= i(k[11] + k[10], 9)), + (k[9] ^= i(k[8] + k[11], 13)), + (k[10] ^= i(k[9] + k[8], 18)), + (k[12] ^= i(k[15] + k[14], 7)), + (k[13] ^= i(k[12] + k[15], 9)), + (k[14] ^= i(k[13] + k[12], 13)), + (k[15] ^= i(k[14] + k[13], 18)); + for (let O = 0; O < 16; ++O) I[O] += k[O]; + } + function c(I, k, O, D) { + for (let W = 0; W < D; W++) O[W] ^= I[k + W]; + } + function l(I, k, O, D, W) { + for (; W--; ) O[D++] = I[k++]; + } + function d(I) { + if (!I || typeof I.length != "number") return !1; + for (let k = 0; k < I.length; k++) { + let O = I[k]; + if (typeof O != "number" || O % 1 || O < 0 || O >= 256) return !1; + } + return !0; + } + function m(I, k) { + if (typeof I != "number" || I % 1) throw new Error("invalid " + k); + return I; + } + function w(I, k, O, D, W, H, j) { + if ( + ((O = m(O, "N")), + (D = m(D, "r")), + (W = m(W, "p")), + (H = m(H, "dkLen")), + O === 0 || (O & (O - 1)) !== 0) + ) + throw new Error("N must be power of 2"); + if (O > 2147483647 / 128 / D) throw new Error("N too large"); + if (D > 2147483647 / 128 / W) throw new Error("r too large"); + if (!d(I)) throw new Error("password must be an array or buffer"); + if (((I = Array.prototype.slice.call(I)), !d(k))) + throw new Error("salt must be an array or buffer"); + k = Array.prototype.slice.call(k); + let V = n(I, k, W * 128 * D), + te = new Uint32Array(W * 32 * D); + for (let A = 0; A < te.length; A++) { + let L = A * 4; + te[A] = + ((V[L + 3] & 255) << 24) | + ((V[L + 2] & 255) << 16) | + ((V[L + 1] & 255) << 8) | + ((V[L + 0] & 255) << 0); + } + let $ = new Uint32Array(64 * D), + ae = new Uint32Array(32 * D * O), + Y = 32 * D, + K = new Uint32Array(16), + g = new Uint32Array(16), + o = W * O * 2, + p = 0, + y = null, + h = !1, + b = 0, + T = 0, + E, + f, + u = j ? parseInt(1e3 / D) : 4294967295, + v = typeof setImmediate < "u" ? setImmediate : setTimeout, + R = function () { + if (h) return j(new Error("cancelled"), p / o); + let A; + switch (b) { + case 0: + (f = T * 32 * D), l(te, f, $, 0, Y), (b = 1), (E = 0); + case 1: + (A = O - E), A > u && (A = u); + for (let G = 0; G < A; G++) + l($, 0, ae, (E + G) * Y, Y), a($, Y, D, K, g); + if (((E += A), (p += A), j)) { + let G = parseInt((1e3 * p) / o); + if (G !== y) { + if (((h = j(null, p / o)), h)) break; + y = G; + } + } + if (E < O) break; + (E = 0), (b = 2); + case 2: + (A = O - E), A > u && (A = u); + for (let G = 0; G < A; G++) { + let U = (2 * D - 1) * 16, + Z = $[U] & (O - 1); + c(ae, Z * Y, $, Y), a($, Y, D, K, g); + } + if (((E += A), (p += A), j)) { + let G = parseInt((1e3 * p) / o); + if (G !== y) { + if (((h = j(null, p / o)), h)) break; + y = G; + } + } + if (E < O) break; + if ((l($, 0, te, f, Y), T++, T < W)) { + b = 0; + break; + } + V = []; + for (let G = 0; G < te.length; G++) + V.push((te[G] >> 0) & 255), + V.push((te[G] >> 8) & 255), + V.push((te[G] >> 16) & 255), + V.push((te[G] >> 24) & 255); + let L = n(I, V, H); + return j && j(null, 1, L), L; + } + j && v(R); + }; + if (!j) + for (;;) { + let A = R(); + if (A != null) return A; + } + R(); + } + let C = { + scrypt: function (I, k, O, D, W, H, j) { + return new Promise(function (V, te) { + let $ = 0; + j && j(0), + w(I, k, O, D, W, H, function (ae, Y, K) { + if (ae) te(ae); + else if (K) j && $ !== 1 && j(1), V(new Uint8Array(K)); + else if (j && Y !== $) return ($ = Y), j(Y); + }); + }); + }, + syncScrypt: function (I, k, O, D, W, H) { + return new Uint8Array(w(I, k, O, D, W, H)); + }, + }; + typeof UW < "u" + ? (qme.exports = C) + : typeof define == "function" && define.amd + ? define(C) + : r && (r.scrypt && (r._scrypt = r.scrypt), (r.scrypt = C)); + })(UW); + }); + var $me = N((Rs) => { + "use strict"; + _(); + x(); + var j3t = + (Rs && Rs.__extends) || + (function () { + var r = function (e, t) { + return ( + (r = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (n, a) { + n.__proto__ = a; + }) || + function (n, a) { + for (var i in a) + Object.prototype.hasOwnProperty.call(a, i) && (n[i] = a[i]); + }), + r(e, t) + ); + }; + return function (e, t) { + if (typeof t != "function" && t !== null) + throw new TypeError( + "Class extends value " + + String(t) + + " is not a constructor or null" + ); + r(e, t); + function n() { + this.constructor = e; + } + e.prototype = + t === null + ? Object.create(t) + : ((n.prototype = t.prototype), new n()); + }; + })(), + K3t = + (Rs && Rs.__awaiter) || + function (r, e, t, n) { + function a(i) { + return i instanceof t + ? i + : new t(function (s) { + s(i); + }); + } + return new (t || (t = Promise))(function (i, s) { + function c(m) { + try { + d(n.next(m)); + } catch (w) { + s(w); + } + } + function l(m) { + try { + d(n.throw(m)); + } catch (w) { + s(w); + } + } + function d(m) { + m.done ? i(m.value) : a(m.value).then(c, l); + } + d((n = n.apply(r, e || [])).next()); + }); + }, + V3t = + (Rs && Rs.__generator) || + function (r, e) { + var t = { + label: 0, + sent: function () { + if (i[0] & 1) throw i[1]; + return i[1]; + }, + trys: [], + ops: [], + }, + n, + a, + i, + s; + return ( + (s = { next: c(0), throw: c(1), return: c(2) }), + typeof Symbol == "function" && + (s[Symbol.iterator] = function () { + return this; + }), + s + ); + function c(d) { + return function (m) { + return l([d, m]); + }; + } + function l(d) { + if (n) throw new TypeError("Generator is already executing."); + for (; t; ) + try { + if ( + ((n = 1), + a && + (i = + d[0] & 2 + ? a.return + : d[0] + ? a.throw || ((i = a.return) && i.call(a), 0) + : a.next) && + !(i = i.call(a, d[1])).done) + ) + return i; + switch (((a = 0), i && (d = [d[0] & 2, i.value]), d[0])) { + case 0: + case 1: + i = d; + break; + case 4: + return t.label++, { value: d[1], done: !1 }; + case 5: + t.label++, (a = d[1]), (d = [0]); + continue; + case 7: + (d = t.ops.pop()), t.trys.pop(); + continue; + default: + if ( + ((i = t.trys), + !(i = i.length > 0 && i[i.length - 1]) && + (d[0] === 6 || d[0] === 2)) + ) { + t = 0; + continue; + } + if (d[0] === 3 && (!i || (d[1] > i[0] && d[1] < i[3]))) { + t.label = d[1]; + break; + } + if (d[0] === 6 && t.label < i[1]) { + (t.label = i[1]), (i = d); + break; + } + if (i && t.label < i[2]) { + (t.label = i[2]), t.ops.push(d); + break; + } + i[2] && t.ops.pop(), t.trys.pop(); + continue; + } + d = e.call(r, t); + } catch (m) { + (d = [6, m]), (a = 0); + } finally { + n = i = 0; + } + if (d[0] & 5) throw d[1]; + return { value: d[0] ? d[1] : void 0, done: !0 }; + } + }, + Ume = + (Rs && Rs.__importDefault) || + function (r) { + return r && r.__esModule ? r : { default: r }; + }; + Object.defineProperty(Rs, "__esModule", { value: !0 }); + Rs.encrypt = Rs.decrypt = Rs.decryptSync = Rs.KeystoreAccount = void 0; + var Hm = Ume(qW()), + jW = Ume(Fme()), + Hme = dl(), + Yi = Dr(), + lg = WA(), + zme = Nu(), + G3t = MA(), + YA = n5(), + Y3t = ja(), + jme = lf(), + En = WW(), + HW = ir(), + $3t = FW(), + zW = new HW.Logger($3t.version); + function Wme(r) { + return r != null && r.mnemonic && r.mnemonic.phrase; + } + var Kme = (function (r) { + j3t(e, r); + function e() { + return (r !== null && r.apply(this, arguments)) || this; + } + return ( + (e.prototype.isKeystoreAccount = function (t) { + return !!(t && t._isKeystoreAccount); + }), + e + ); + })(Y3t.Description); + Rs.KeystoreAccount = Kme; + function J3t(r, e, t) { + var n = (0, En.searchPath)(r, "crypto/cipher"); + if (n === "aes-128-ctr") { + var a = (0, En.looseArrayify)( + (0, En.searchPath)(r, "crypto/cipherparams/iv") + ), + i = new Hm.default.Counter(a), + s = new Hm.default.ModeOfOperation.ctr(e, i); + return (0, Yi.arrayify)(s.decrypt(t)); + } + return null; + } + function Vme(r, e) { + var t = (0, En.looseArrayify)((0, En.searchPath)(r, "crypto/ciphertext")), + n = (0, Yi.hexlify)( + (0, zme.keccak256)((0, Yi.concat)([e.slice(16, 32), t])) + ).substring(2); + if (n !== (0, En.searchPath)(r, "crypto/mac").toLowerCase()) + throw new Error("invalid password"); + var a = J3t(r, e.slice(0, 16), t); + a || + zW.throwError( + "unsupported cipher", + HW.Logger.errors.UNSUPPORTED_OPERATION, + { operation: "decrypt" } + ); + var i = e.slice(32, 64), + s = (0, jme.computeAddress)(a); + if (r.address) { + var c = r.address.toLowerCase(); + if ( + (c.substring(0, 2) !== "0x" && (c = "0x" + c), + (0, Hme.getAddress)(c) !== s) + ) + throw new Error("address mismatch"); + } + var l = { + _isKeystoreAccount: !0, + address: s, + privateKey: (0, Yi.hexlify)(a), + }; + if ((0, En.searchPath)(r, "x-ethers/version") === "0.1") { + var d = (0, En.looseArrayify)( + (0, En.searchPath)(r, "x-ethers/mnemonicCiphertext") + ), + m = (0, En.looseArrayify)( + (0, En.searchPath)(r, "x-ethers/mnemonicCounter") + ), + w = new Hm.default.Counter(m), + C = new Hm.default.ModeOfOperation.ctr(i, w), + I = (0, En.searchPath)(r, "x-ethers/path") || lg.defaultPath, + k = (0, En.searchPath)(r, "x-ethers/locale") || "en", + O = (0, Yi.arrayify)(C.decrypt(d)); + try { + var D = (0, lg.entropyToMnemonic)(O, k), + W = lg.HDNode.fromMnemonic(D, null, k).derivePath(I); + if (W.privateKey != l.privateKey) + throw new Error("mnemonic mismatch"); + l.mnemonic = W.mnemonic; + } catch (H) { + if ( + H.code !== HW.Logger.errors.INVALID_ARGUMENT || + H.argument !== "wordlist" + ) + throw H; + } + } + return new Kme(l); + } + function Gme(r, e, t, n, a) { + return (0, Yi.arrayify)((0, G3t.pbkdf2)(r, e, t, n, a)); + } + function Z3t(r, e, t, n, a) { + return Promise.resolve(Gme(r, e, t, n, a)); + } + function Yme(r, e, t, n, a) { + var i = (0, En.getPassword)(e), + s = (0, En.searchPath)(r, "crypto/kdf"); + if (s && typeof s == "string") { + var c = function (D, W) { + return zW.throwArgumentError( + "invalid key-derivation function parameters", + D, + W + ); + }; + if (s.toLowerCase() === "scrypt") { + var l = (0, En.looseArrayify)( + (0, En.searchPath)(r, "crypto/kdfparams/salt") + ), + d = parseInt((0, En.searchPath)(r, "crypto/kdfparams/n")), + m = parseInt((0, En.searchPath)(r, "crypto/kdfparams/r")), + w = parseInt((0, En.searchPath)(r, "crypto/kdfparams/p")); + (!d || !m || !w) && c("kdf", s), (d & (d - 1)) !== 0 && c("N", d); + var C = parseInt((0, En.searchPath)(r, "crypto/kdfparams/dklen")); + return C !== 32 && c("dklen", C), n(i, l, d, m, w, 64, a); + } else if (s.toLowerCase() === "pbkdf2") { + var l = (0, En.looseArrayify)( + (0, En.searchPath)(r, "crypto/kdfparams/salt") + ), + I = null, + k = (0, En.searchPath)(r, "crypto/kdfparams/prf"); + k === "hmac-sha256" + ? (I = "sha256") + : k === "hmac-sha512" + ? (I = "sha512") + : c("prf", k); + var O = parseInt((0, En.searchPath)(r, "crypto/kdfparams/c")), + C = parseInt((0, En.searchPath)(r, "crypto/kdfparams/dklen")); + return C !== 32 && c("dklen", C), t(i, l, O, C, I); + } + } + return zW.throwArgumentError( + "unsupported key-derivation function", + "kdf", + s + ); + } + function Q3t(r, e) { + var t = JSON.parse(r), + n = Yme(t, e, Gme, jW.default.syncScrypt); + return Vme(t, n); + } + Rs.decryptSync = Q3t; + function X3t(r, e, t) { + return K3t(this, void 0, void 0, function () { + var n, a; + return V3t(this, function (i) { + switch (i.label) { + case 0: + return ( + (n = JSON.parse(r)), [4, Yme(n, e, Z3t, jW.default.scrypt, t)] + ); + case 1: + return (a = i.sent()), [2, Vme(n, a)]; + } + }); + }); + } + Rs.decrypt = X3t; + function e6t(r, e, t, n) { + try { + if ( + (0, Hme.getAddress)(r.address) !== + (0, jme.computeAddress)(r.privateKey) + ) + throw new Error("address/privateKey mismatch"); + if (Wme(r)) { + var a = r.mnemonic, + i = lg.HDNode.fromMnemonic(a.phrase, null, a.locale).derivePath( + a.path || lg.defaultPath + ); + if (i.privateKey != r.privateKey) + throw new Error("mnemonic mismatch"); + } + } catch (j) { + return Promise.reject(j); + } + typeof t == "function" && !n && ((n = t), (t = {})), t || (t = {}); + var s = (0, Yi.arrayify)(r.privateKey), + c = (0, En.getPassword)(e), + l = null, + d = null, + m = null; + if (Wme(r)) { + var w = r.mnemonic; + (l = (0, Yi.arrayify)( + (0, lg.mnemonicToEntropy)(w.phrase, w.locale || "en") + )), + (d = w.path || lg.defaultPath), + (m = w.locale || "en"); + } + var C = t.client; + C || (C = "ethers.js"); + var I = null; + t.salt ? (I = (0, Yi.arrayify)(t.salt)) : (I = (0, YA.randomBytes)(32)); + var k = null; + if (t.iv) { + if (((k = (0, Yi.arrayify)(t.iv)), k.length !== 16)) + throw new Error("invalid iv"); + } else k = (0, YA.randomBytes)(16); + var O = null; + if (t.uuid) { + if (((O = (0, Yi.arrayify)(t.uuid)), O.length !== 16)) + throw new Error("invalid uuid"); + } else O = (0, YA.randomBytes)(16); + var D = 1 << 17, + W = 8, + H = 1; + return ( + t.scrypt && + (t.scrypt.N && (D = t.scrypt.N), + t.scrypt.r && (W = t.scrypt.r), + t.scrypt.p && (H = t.scrypt.p)), + jW.default.scrypt(c, I, D, W, H, 64, n).then(function (j) { + j = (0, Yi.arrayify)(j); + var V = j.slice(0, 16), + te = j.slice(16, 32), + $ = j.slice(32, 64), + ae = new Hm.default.Counter(k), + Y = new Hm.default.ModeOfOperation.ctr(V, ae), + K = (0, Yi.arrayify)(Y.encrypt(s)), + g = (0, zme.keccak256)((0, Yi.concat)([te, K])), + o = { + address: r.address.substring(2).toLowerCase(), + id: (0, En.uuidV4)(O), + version: 3, + crypto: { + cipher: "aes-128-ctr", + cipherparams: { iv: (0, Yi.hexlify)(k).substring(2) }, + ciphertext: (0, Yi.hexlify)(K).substring(2), + kdf: "scrypt", + kdfparams: { + salt: (0, Yi.hexlify)(I).substring(2), + n: D, + dklen: 32, + p: H, + r: W, + }, + mac: g.substring(2), + }, + }; + if (l) { + var p = (0, YA.randomBytes)(16), + y = new Hm.default.Counter(p), + h = new Hm.default.ModeOfOperation.ctr($, y), + b = (0, Yi.arrayify)(h.encrypt(l)), + T = new Date(), + E = + T.getUTCFullYear() + + "-" + + (0, En.zpad)(T.getUTCMonth() + 1, 2) + + "-" + + (0, En.zpad)(T.getUTCDate(), 2) + + "T" + + (0, En.zpad)(T.getUTCHours(), 2) + + "-" + + (0, En.zpad)(T.getUTCMinutes(), 2) + + "-" + + (0, En.zpad)(T.getUTCSeconds(), 2) + + ".0Z"; + o["x-ethers"] = { + client: C, + gethFilename: "UTC--" + E + "--" + o.address, + mnemonicCounter: (0, Yi.hexlify)(p).substring(2), + mnemonicCiphertext: (0, Yi.hexlify)(b).substring(2), + path: d, + locale: m, + version: "0.1", + }; + } + return JSON.stringify(o); + }) + ); + } + Rs.encrypt = e6t; + }); + var VW = N(($i) => { + "use strict"; + _(); + x(); + Object.defineProperty($i, "__esModule", { value: !0 }); + $i.decryptJsonWalletSync = + $i.decryptJsonWallet = + $i.getJsonWalletAddress = + $i.isKeystoreWallet = + $i.isCrowdsaleWallet = + $i.encryptKeystore = + $i.decryptKeystoreSync = + $i.decryptKeystore = + $i.decryptCrowdsale = + void 0; + var KW = Bme(); + Object.defineProperty($i, "decryptCrowdsale", { + enumerable: !0, + get: function () { + return KW.decrypt; + }, + }); + var dg = Dme(); + Object.defineProperty($i, "getJsonWalletAddress", { + enumerable: !0, + get: function () { + return dg.getJsonWalletAddress; + }, + }); + Object.defineProperty($i, "isCrowdsaleWallet", { + enumerable: !0, + get: function () { + return dg.isCrowdsaleWallet; + }, + }); + Object.defineProperty($i, "isKeystoreWallet", { + enumerable: !0, + get: function () { + return dg.isKeystoreWallet; + }, + }); + var a5 = $me(); + Object.defineProperty($i, "decryptKeystore", { + enumerable: !0, + get: function () { + return a5.decrypt; + }, + }); + Object.defineProperty($i, "decryptKeystoreSync", { + enumerable: !0, + get: function () { + return a5.decryptSync; + }, + }); + Object.defineProperty($i, "encryptKeystore", { + enumerable: !0, + get: function () { + return a5.encrypt; + }, + }); + function t6t(r, e, t) { + if ((0, dg.isCrowdsaleWallet)(r)) { + t && t(0); + var n = (0, KW.decrypt)(r, e); + return t && t(1), Promise.resolve(n); + } + return (0, dg.isKeystoreWallet)(r) + ? (0, a5.decrypt)(r, e, t) + : Promise.reject(new Error("invalid JSON wallet")); + } + $i.decryptJsonWallet = t6t; + function r6t(r, e) { + if ((0, dg.isCrowdsaleWallet)(r)) return (0, KW.decrypt)(r, e); + if ((0, dg.isKeystoreWallet)(r)) return (0, a5.decryptSync)(r, e); + throw new Error("invalid JSON wallet"); + } + $i.decryptJsonWalletSync = r6t; + }); + var Jme = N(($A) => { + "use strict"; + _(); + x(); + Object.defineProperty($A, "__esModule", { value: !0 }); + $A.version = void 0; + $A.version = "wallet/5.7.0"; + }); + var $W = N((eu) => { + "use strict"; + _(); + x(); + var n6t = + (eu && eu.__extends) || + (function () { + var r = function (e, t) { + return ( + (r = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (n, a) { + n.__proto__ = a; + }) || + function (n, a) { + for (var i in a) + Object.prototype.hasOwnProperty.call(a, i) && (n[i] = a[i]); + }), + r(e, t) + ); + }; + return function (e, t) { + if (typeof t != "function" && t !== null) + throw new TypeError( + "Class extends value " + + String(t) + + " is not a constructor or null" + ); + r(e, t); + function n() { + this.constructor = e; + } + e.prototype = + t === null + ? Object.create(t) + : ((n.prototype = t.prototype), new n()); + }; + })(), + Zme = + (eu && eu.__awaiter) || + function (r, e, t, n) { + function a(i) { + return i instanceof t + ? i + : new t(function (s) { + s(i); + }); + } + return new (t || (t = Promise))(function (i, s) { + function c(m) { + try { + d(n.next(m)); + } catch (w) { + s(w); + } + } + function l(m) { + try { + d(n.throw(m)); + } catch (w) { + s(w); + } + } + function d(m) { + m.done ? i(m.value) : a(m.value).then(c, l); + } + d((n = n.apply(r, e || [])).next()); + }); + }, + Qme = + (eu && eu.__generator) || + function (r, e) { + var t = { + label: 0, + sent: function () { + if (i[0] & 1) throw i[1]; + return i[1]; + }, + trys: [], + ops: [], + }, + n, + a, + i, + s; + return ( + (s = { next: c(0), throw: c(1), return: c(2) }), + typeof Symbol == "function" && + (s[Symbol.iterator] = function () { + return this; + }), + s + ); + function c(d) { + return function (m) { + return l([d, m]); + }; + } + function l(d) { + if (n) throw new TypeError("Generator is already executing."); + for (; t; ) + try { + if ( + ((n = 1), + a && + (i = + d[0] & 2 + ? a.return + : d[0] + ? a.throw || ((i = a.return) && i.call(a), 0) + : a.next) && + !(i = i.call(a, d[1])).done) + ) + return i; + switch (((a = 0), i && (d = [d[0] & 2, i.value]), d[0])) { + case 0: + case 1: + i = d; + break; + case 4: + return t.label++, { value: d[1], done: !1 }; + case 5: + t.label++, (a = d[1]), (d = [0]); + continue; + case 7: + (d = t.ops.pop()), t.trys.pop(); + continue; + default: + if ( + ((i = t.trys), + !(i = i.length > 0 && i[i.length - 1]) && + (d[0] === 6 || d[0] === 2)) + ) { + t = 0; + continue; + } + if (d[0] === 3 && (!i || (d[1] > i[0] && d[1] < i[3]))) { + t.label = d[1]; + break; + } + if (d[0] === 6 && t.label < i[1]) { + (t.label = i[1]), (i = d); + break; + } + if (i && t.label < i[2]) { + (t.label = i[2]), t.ops.push(d); + break; + } + i[2] && t.ops.pop(), t.trys.pop(); + continue; + } + d = e.call(r, t); + } catch (m) { + (d = [6, m]), (a = 0); + } finally { + n = i = 0; + } + if (d[0] & 5) throw d[1]; + return { value: d[0] ? d[1] : void 0, done: !0 }; + } + }; + Object.defineProperty(eu, "__esModule", { value: !0 }); + eu.verifyTypedData = eu.verifyMessage = eu.Wallet = void 0; + var Xme = dl(), + a6t = I1(), + i6t = Ux(), + kv = Dr(), + s5 = Ey(), + i5 = WA(), + e0e = Nu(), + Gp = ja(), + s6t = n5(), + GW = UT(), + YW = VW(), + pg = lf(), + t0e = ir(), + o6t = Jme(), + Av = new t0e.Logger(o6t.version); + function c6t(r) { + return ( + r != null && (0, kv.isHexString)(r.privateKey, 32) && r.address != null + ); + } + function u6t(r) { + var e = r.mnemonic; + return e && e.phrase; + } + var l6t = (function (r) { + n6t(e, r); + function e(t, n) { + var a = r.call(this) || this; + if (c6t(t)) { + var i = new GW.SigningKey(t.privateKey); + if ( + ((0, Gp.defineReadOnly)(a, "_signingKey", function () { + return i; + }), + (0, Gp.defineReadOnly)( + a, + "address", + (0, pg.computeAddress)(a.publicKey) + ), + a.address !== (0, Xme.getAddress)(t.address) && + Av.throwArgumentError( + "privateKey/address mismatch", + "privateKey", + "[REDACTED]" + ), + u6t(t)) + ) { + var s = t.mnemonic; + (0, Gp.defineReadOnly)(a, "_mnemonic", function () { + return { + phrase: s.phrase, + path: s.path || i5.defaultPath, + locale: s.locale || "en", + }; + }); + var c = a.mnemonic, + l = i5.HDNode.fromMnemonic(c.phrase, null, c.locale).derivePath( + c.path + ); + (0, pg.computeAddress)(l.privateKey) !== a.address && + Av.throwArgumentError( + "mnemonic/address mismatch", + "privateKey", + "[REDACTED]" + ); + } else + (0, Gp.defineReadOnly)(a, "_mnemonic", function () { + return null; + }); + } else { + if (GW.SigningKey.isSigningKey(t)) + t.curve !== "secp256k1" && + Av.throwArgumentError( + "unsupported curve; must be secp256k1", + "privateKey", + "[REDACTED]" + ), + (0, Gp.defineReadOnly)(a, "_signingKey", function () { + return t; + }); + else { + typeof t == "string" && + t.match(/^[0-9a-f]*$/i) && + t.length === 64 && + (t = "0x" + t); + var d = new GW.SigningKey(t); + (0, Gp.defineReadOnly)(a, "_signingKey", function () { + return d; + }); + } + (0, Gp.defineReadOnly)(a, "_mnemonic", function () { + return null; + }), + (0, Gp.defineReadOnly)( + a, + "address", + (0, pg.computeAddress)(a.publicKey) + ); + } + return ( + n && + !a6t.Provider.isProvider(n) && + Av.throwArgumentError("invalid provider", "provider", n), + (0, Gp.defineReadOnly)(a, "provider", n || null), + a + ); + } + return ( + Object.defineProperty(e.prototype, "mnemonic", { + get: function () { + return this._mnemonic(); + }, + enumerable: !1, + configurable: !0, + }), + Object.defineProperty(e.prototype, "privateKey", { + get: function () { + return this._signingKey().privateKey; + }, + enumerable: !1, + configurable: !0, + }), + Object.defineProperty(e.prototype, "publicKey", { + get: function () { + return this._signingKey().publicKey; + }, + enumerable: !1, + configurable: !0, + }), + (e.prototype.getAddress = function () { + return Promise.resolve(this.address); + }), + (e.prototype.connect = function (t) { + return new e(this, t); + }), + (e.prototype.signTransaction = function (t) { + var n = this; + return (0, Gp.resolveProperties)(t).then(function (a) { + a.from != null && + ((0, Xme.getAddress)(a.from) !== n.address && + Av.throwArgumentError( + "transaction from address mismatch", + "transaction.from", + t.from + ), + delete a.from); + var i = n + ._signingKey() + .signDigest((0, e0e.keccak256)((0, pg.serialize)(a))); + return (0, pg.serialize)(a, i); + }); + }), + (e.prototype.signMessage = function (t) { + return Zme(this, void 0, void 0, function () { + return Qme(this, function (n) { + return [ + 2, + (0, kv.joinSignature)( + this._signingKey().signDigest((0, s5.hashMessage)(t)) + ), + ]; + }); + }); + }), + (e.prototype._signTypedData = function (t, n, a) { + return Zme(this, void 0, void 0, function () { + var i, + s = this; + return Qme(this, function (c) { + switch (c.label) { + case 0: + return [ + 4, + s5._TypedDataEncoder.resolveNames(t, n, a, function (l) { + return ( + s.provider == null && + Av.throwError( + "cannot resolve ENS names without a provider", + t0e.Logger.errors.UNSUPPORTED_OPERATION, + { operation: "resolveName", value: l } + ), + s.provider.resolveName(l) + ); + }), + ]; + case 1: + return ( + (i = c.sent()), + [ + 2, + (0, kv.joinSignature)( + this._signingKey().signDigest( + s5._TypedDataEncoder.hash(i.domain, n, i.value) + ) + ), + ] + ); + } + }); + }); + }), + (e.prototype.encrypt = function (t, n, a) { + if ( + (typeof n == "function" && !a && ((a = n), (n = {})), + a && typeof a != "function") + ) + throw new Error("invalid callback"); + return n || (n = {}), (0, YW.encryptKeystore)(this, t, n, a); + }), + (e.createRandom = function (t) { + var n = (0, s6t.randomBytes)(16); + t || (t = {}), + t.extraEntropy && + (n = (0, kv.arrayify)( + (0, kv.hexDataSlice)( + (0, e0e.keccak256)((0, kv.concat)([n, t.extraEntropy])), + 0, + 16 + ) + )); + var a = (0, i5.entropyToMnemonic)(n, t.locale); + return e.fromMnemonic(a, t.path, t.locale); + }), + (e.fromEncryptedJson = function (t, n, a) { + return (0, YW.decryptJsonWallet)(t, n, a).then(function (i) { + return new e(i); + }); + }), + (e.fromEncryptedJsonSync = function (t, n) { + return new e((0, YW.decryptJsonWalletSync)(t, n)); + }), + (e.fromMnemonic = function (t, n, a) { + return ( + n || (n = i5.defaultPath), + new e(i5.HDNode.fromMnemonic(t, null, a).derivePath(n)) + ); + }), + e + ); + })(i6t.Signer); + eu.Wallet = l6t; + function d6t(r, e) { + return (0, pg.recoverAddress)((0, s5.hashMessage)(r), e); + } + eu.verifyMessage = d6t; + function p6t(r, e, t, n) { + return (0, pg.recoverAddress)(s5._TypedDataEncoder.hash(r, e, t), n); + } + eu.verifyTypedData = p6t; + }); + var r0e = N((JA) => { + "use strict"; + _(); + x(); + Object.defineProperty(JA, "__esModule", { value: !0 }); + JA.version = void 0; + JA.version = "networks/5.7.1"; + }); + var JW = N((XA) => { + "use strict"; + _(); + x(); + Object.defineProperty(XA, "__esModule", { value: !0 }); + XA.getNetwork = void 0; + var h6t = ir(), + f6t = r0e(), + n0e = new h6t.Logger(f6t.version); + function m6t(r) { + return r && typeof r.renetwork == "function"; + } + function df(r) { + var e = function (t, n) { + n == null && (n = {}); + var a = []; + if (t.InfuraProvider && n.infura !== "-") + try { + a.push(new t.InfuraProvider(r, n.infura)); + } catch {} + if (t.EtherscanProvider && n.etherscan !== "-") + try { + a.push(new t.EtherscanProvider(r, n.etherscan)); + } catch {} + if (t.AlchemyProvider && n.alchemy !== "-") + try { + a.push(new t.AlchemyProvider(r, n.alchemy)); + } catch {} + if (t.PocketProvider && n.pocket !== "-") { + var i = ["goerli", "ropsten", "rinkeby", "sepolia"]; + try { + var s = new t.PocketProvider(r, n.pocket); + s.network && i.indexOf(s.network.name) === -1 && a.push(s); + } catch {} + } + if (t.CloudflareProvider && n.cloudflare !== "-") + try { + a.push(new t.CloudflareProvider(r)); + } catch {} + if (t.AnkrProvider && n.ankr !== "-") + try { + var i = ["ropsten"], + s = new t.AnkrProvider(r, n.ankr); + s.network && i.indexOf(s.network.name) === -1 && a.push(s); + } catch {} + if (a.length === 0) return null; + if (t.FallbackProvider) { + var c = 1; + return ( + n.quorum != null ? (c = n.quorum) : r === "homestead" && (c = 2), + new t.FallbackProvider(a, c) + ); + } + return a[0]; + }; + return ( + (e.renetwork = function (t) { + return df(t); + }), + e + ); + } + function QA(r, e) { + var t = function (n, a) { + return n.JsonRpcProvider ? new n.JsonRpcProvider(r, e) : null; + }; + return ( + (t.renetwork = function (n) { + return QA(r, n); + }), + t + ); + } + var a0e = { + chainId: 1, + ensAddress: "0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e", + name: "homestead", + _defaultProvider: df("homestead"), + }, + i0e = { + chainId: 3, + ensAddress: "0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e", + name: "ropsten", + _defaultProvider: df("ropsten"), + }, + s0e = { + chainId: 63, + name: "classicMordor", + _defaultProvider: QA( + "https://www.ethercluster.com/mordor", + "classicMordor" + ), + }, + ZA = { + unspecified: { chainId: 0, name: "unspecified" }, + homestead: a0e, + mainnet: a0e, + morden: { chainId: 2, name: "morden" }, + ropsten: i0e, + testnet: i0e, + rinkeby: { + chainId: 4, + ensAddress: "0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e", + name: "rinkeby", + _defaultProvider: df("rinkeby"), + }, + kovan: { chainId: 42, name: "kovan", _defaultProvider: df("kovan") }, + goerli: { + chainId: 5, + ensAddress: "0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e", + name: "goerli", + _defaultProvider: df("goerli"), + }, + kintsugi: { chainId: 1337702, name: "kintsugi" }, + sepolia: { + chainId: 11155111, + name: "sepolia", + _defaultProvider: df("sepolia"), + }, + classic: { + chainId: 61, + name: "classic", + _defaultProvider: QA("https://www.ethercluster.com/etc", "classic"), + }, + classicMorden: { chainId: 62, name: "classicMorden" }, + classicMordor: s0e, + classicTestnet: s0e, + classicKotti: { + chainId: 6, + name: "classicKotti", + _defaultProvider: QA( + "https://www.ethercluster.com/kotti", + "classicKotti" + ), + }, + xdai: { chainId: 100, name: "xdai" }, + matic: { chainId: 137, name: "matic", _defaultProvider: df("matic") }, + maticmum: { chainId: 80001, name: "maticmum" }, + optimism: { + chainId: 10, + name: "optimism", + _defaultProvider: df("optimism"), + }, + "optimism-kovan": { chainId: 69, name: "optimism-kovan" }, + "optimism-goerli": { chainId: 420, name: "optimism-goerli" }, + arbitrum: { chainId: 42161, name: "arbitrum" }, + "arbitrum-rinkeby": { chainId: 421611, name: "arbitrum-rinkeby" }, + "arbitrum-goerli": { chainId: 421613, name: "arbitrum-goerli" }, + bnb: { chainId: 56, name: "bnb" }, + bnbt: { chainId: 97, name: "bnbt" }, + }; + function y6t(r) { + if (r == null) return null; + if (typeof r == "number") { + for (var e in ZA) { + var t = ZA[e]; + if (t.chainId === r) + return { + name: t.name, + chainId: t.chainId, + ensAddress: t.ensAddress || null, + _defaultProvider: t._defaultProvider || null, + }; + } + return { chainId: r, name: "unknown" }; + } + if (typeof r == "string") { + var n = ZA[r]; + return n == null + ? null + : { + name: n.name, + chainId: n.chainId, + ensAddress: n.ensAddress, + _defaultProvider: n._defaultProvider || null, + }; + } + var a = ZA[r.name]; + if (!a) + return ( + typeof r.chainId != "number" && + n0e.throwArgumentError("invalid network chainId", "network", r), + r + ); + r.chainId !== 0 && + r.chainId !== a.chainId && + n0e.throwArgumentError("network chainId mismatch", "network", r); + var i = r._defaultProvider || null; + return ( + i == null && + a._defaultProvider && + (m6t(a._defaultProvider) + ? (i = a._defaultProvider.renetwork(r)) + : (i = a._defaultProvider)), + { + name: r.name, + chainId: a.chainId, + ensAddress: r.ensAddress || a.ensAddress || null, + _defaultProvider: i, + } + ); + } + XA.getNetwork = y6t; + }); + var o0e = N((ek) => { + "use strict"; + _(); + x(); + Object.defineProperty(ek, "__esModule", { value: !0 }); + ek.version = void 0; + ek.version = "web/5.7.1"; + }); + var c0e = N((zm) => { + "use strict"; + _(); + x(); + var g6t = + (zm && zm.__awaiter) || + function (r, e, t, n) { + function a(i) { + return i instanceof t + ? i + : new t(function (s) { + s(i); + }); + } + return new (t || (t = Promise))(function (i, s) { + function c(m) { + try { + d(n.next(m)); + } catch (w) { + s(w); + } + } + function l(m) { + try { + d(n.throw(m)); + } catch (w) { + s(w); + } + } + function d(m) { + m.done ? i(m.value) : a(m.value).then(c, l); + } + d((n = n.apply(r, e || [])).next()); + }); + }, + b6t = + (zm && zm.__generator) || + function (r, e) { + var t = { + label: 0, + sent: function () { + if (i[0] & 1) throw i[1]; + return i[1]; + }, + trys: [], + ops: [], + }, + n, + a, + i, + s; + return ( + (s = { next: c(0), throw: c(1), return: c(2) }), + typeof Symbol == "function" && + (s[Symbol.iterator] = function () { + return this; + }), + s + ); + function c(d) { + return function (m) { + return l([d, m]); + }; + } + function l(d) { + if (n) throw new TypeError("Generator is already executing."); + for (; t; ) + try { + if ( + ((n = 1), + a && + (i = + d[0] & 2 + ? a.return + : d[0] + ? a.throw || ((i = a.return) && i.call(a), 0) + : a.next) && + !(i = i.call(a, d[1])).done) + ) + return i; + switch (((a = 0), i && (d = [d[0] & 2, i.value]), d[0])) { + case 0: + case 1: + i = d; + break; + case 4: + return t.label++, { value: d[1], done: !1 }; + case 5: + t.label++, (a = d[1]), (d = [0]); + continue; + case 7: + (d = t.ops.pop()), t.trys.pop(); + continue; + default: + if ( + ((i = t.trys), + !(i = i.length > 0 && i[i.length - 1]) && + (d[0] === 6 || d[0] === 2)) + ) { + t = 0; + continue; + } + if (d[0] === 3 && (!i || (d[1] > i[0] && d[1] < i[3]))) { + t.label = d[1]; + break; + } + if (d[0] === 6 && t.label < i[1]) { + (t.label = i[1]), (i = d); + break; + } + if (i && t.label < i[2]) { + (t.label = i[2]), t.ops.push(d); + break; + } + i[2] && t.ops.pop(), t.trys.pop(); + continue; + } + d = e.call(r, t); + } catch (m) { + (d = [6, m]), (a = 0); + } finally { + n = i = 0; + } + if (d[0] & 5) throw d[1]; + return { value: d[0] ? d[1] : void 0, done: !0 }; + } + }; + Object.defineProperty(zm, "__esModule", { value: !0 }); + zm.getUrl = void 0; + var v6t = Dr(); + function w6t(r, e) { + return g6t(this, void 0, void 0, function () { + var t, n, a, i, s; + return b6t(this, function (c) { + switch (c.label) { + case 0: + return ( + e == null && (e = {}), + (t = { + method: e.method || "GET", + headers: e.headers || {}, + body: e.body || void 0, + }), + e.skipFetchSetup !== !0 && + ((t.mode = "cors"), + (t.cache = "no-cache"), + (t.credentials = "same-origin"), + (t.redirect = "follow"), + (t.referrer = "client")), + e.fetchOptions != null && + ((n = e.fetchOptions), + n.mode && (t.mode = n.mode), + n.cache && (t.cache = n.cache), + n.credentials && (t.credentials = n.credentials), + n.redirect && (t.redirect = n.redirect), + n.referrer && (t.referrer = n.referrer)), + [4, fetch(r, t)] + ); + case 1: + return (a = c.sent()), [4, a.arrayBuffer()]; + case 2: + return ( + (i = c.sent()), + (s = {}), + a.headers.forEach + ? a.headers.forEach(function (l, d) { + s[d.toLowerCase()] = l; + }) + : a.headers.keys().forEach(function (l) { + s[l.toLowerCase()] = a.headers.get(l); + }), + [ + 2, + { + headers: s, + statusCode: a.status, + statusMessage: a.statusText, + body: (0, v6t.arrayify)(new Uint8Array(i)), + }, + ] + ); + } + }); + }); + } + zm.getUrl = w6t; + }); + var hg = N((Ol) => { + "use strict"; + _(); + x(); + var _6t = + (Ol && Ol.__awaiter) || + function (r, e, t, n) { + function a(i) { + return i instanceof t + ? i + : new t(function (s) { + s(i); + }); + } + return new (t || (t = Promise))(function (i, s) { + function c(m) { + try { + d(n.next(m)); + } catch (w) { + s(w); + } + } + function l(m) { + try { + d(n.throw(m)); + } catch (w) { + s(w); + } + } + function d(m) { + m.done ? i(m.value) : a(m.value).then(c, l); + } + d((n = n.apply(r, e || [])).next()); + }); + }, + x6t = + (Ol && Ol.__generator) || + function (r, e) { + var t = { + label: 0, + sent: function () { + if (i[0] & 1) throw i[1]; + return i[1]; + }, + trys: [], + ops: [], + }, + n, + a, + i, + s; + return ( + (s = { next: c(0), throw: c(1), return: c(2) }), + typeof Symbol == "function" && + (s[Symbol.iterator] = function () { + return this; + }), + s + ); + function c(d) { + return function (m) { + return l([d, m]); + }; + } + function l(d) { + if (n) throw new TypeError("Generator is already executing."); + for (; t; ) + try { + if ( + ((n = 1), + a && + (i = + d[0] & 2 + ? a.return + : d[0] + ? a.throw || ((i = a.return) && i.call(a), 0) + : a.next) && + !(i = i.call(a, d[1])).done) + ) + return i; + switch (((a = 0), i && (d = [d[0] & 2, i.value]), d[0])) { + case 0: + case 1: + i = d; + break; + case 4: + return t.label++, { value: d[1], done: !1 }; + case 5: + t.label++, (a = d[1]), (d = [0]); + continue; + case 7: + (d = t.ops.pop()), t.trys.pop(); + continue; + default: + if ( + ((i = t.trys), + !(i = i.length > 0 && i[i.length - 1]) && + (d[0] === 6 || d[0] === 2)) + ) { + t = 0; + continue; + } + if (d[0] === 3 && (!i || (d[1] > i[0] && d[1] < i[3]))) { + t.label = d[1]; + break; + } + if (d[0] === 6 && t.label < i[1]) { + (t.label = i[1]), (i = d); + break; + } + if (i && t.label < i[2]) { + (t.label = i[2]), t.ops.push(d); + break; + } + i[2] && t.ops.pop(), t.trys.pop(); + continue; + } + d = e.call(r, t); + } catch (m) { + (d = [6, m]), (a = 0); + } finally { + n = i = 0; + } + if (d[0] & 5) throw d[1]; + return { value: d[0] ? d[1] : void 0, done: !0 }; + } + }; + Object.defineProperty(Ol, "__esModule", { value: !0 }); + Ol.poll = Ol.fetchJson = Ol._fetchData = void 0; + var u0e = qx(), + l0e = Dr(), + tk = ja(), + o5 = Ki(), + pf = ir(), + T6t = o0e(), + Od = new pf.Logger(T6t.version), + E6t = c0e(); + function d0e(r) { + return new Promise(function (e) { + setTimeout(e, r); + }); + } + function jm(r, e) { + if (r == null) return null; + if (typeof r == "string") return r; + if ((0, l0e.isBytesLike)(r)) { + if ( + e && + (e.split("/")[0] === "text" || + e.split(";")[0].trim() === "application/json") + ) + try { + return (0, o5.toUtf8String)(r); + } catch {} + return (0, l0e.hexlify)(r); + } + return r; + } + function C6t(r) { + return (0, o5.toUtf8Bytes)( + r.replace(/%([0-9a-f][0-9a-f])/gi, function (e, t) { + return String.fromCharCode(parseInt(t, 16)); + }) + ); + } + function p0e(r, e, t) { + var n = + typeof r == "object" && r.throttleLimit != null ? r.throttleLimit : 12; + Od.assertArgument( + n > 0 && n % 1 === 0, + "invalid connection throttle limit", + "connection.throttleLimit", + n + ); + var a = typeof r == "object" ? r.throttleCallback : null, + i = + typeof r == "object" && typeof r.throttleSlotInterval == "number" + ? r.throttleSlotInterval + : 100; + Od.assertArgument( + i > 0 && i % 1 === 0, + "invalid connection throttle slot interval", + "connection.throttleSlotInterval", + i + ); + var s = typeof r == "object" ? !!r.errorPassThrough : !1, + c = {}, + l = null, + d = { method: "GET" }, + m = !1, + w = 2 * 60 * 1e3; + if (typeof r == "string") l = r; + else if (typeof r == "object") { + if ( + ((r == null || r.url == null) && + Od.throwArgumentError("missing URL", "connection.url", r), + (l = r.url), + typeof r.timeout == "number" && r.timeout > 0 && (w = r.timeout), + r.headers) + ) + for (var C in r.headers) + (c[C.toLowerCase()] = { key: C, value: String(r.headers[C]) }), + ["if-none-match", "if-modified-since"].indexOf(C.toLowerCase()) >= + 0 && (m = !0); + if ( + ((d.allowGzip = !!r.allowGzip), r.user != null && r.password != null) + ) { + l.substring(0, 6) !== "https:" && + r.allowInsecureAuthentication !== !0 && + Od.throwError( + "basic authentication requires a secure https url", + pf.Logger.errors.INVALID_ARGUMENT, + { argument: "url", url: l, user: r.user, password: "[REDACTED]" } + ); + var I = r.user + ":" + r.password; + c.authorization = { + key: "Authorization", + value: "Basic " + (0, u0e.encode)((0, o5.toUtf8Bytes)(I)), + }; + } + r.skipFetchSetup != null && (d.skipFetchSetup = !!r.skipFetchSetup), + r.fetchOptions != null && + (d.fetchOptions = (0, tk.shallowCopy)(r.fetchOptions)); + } + var k = new RegExp("^data:([^;:]*)?(;base64)?,(.*)$", "i"), + O = l ? l.match(k) : null; + if (O) + try { + var D = { + statusCode: 200, + statusMessage: "OK", + headers: { "content-type": O[1] || "text/plain" }, + body: O[2] ? (0, u0e.decode)(O[3]) : C6t(O[3]), + }, + W = D.body; + return t && (W = t(D.body, D)), Promise.resolve(W); + } catch (te) { + Od.throwError( + "processing response error", + pf.Logger.errors.SERVER_ERROR, + { + body: jm(O[1], O[2]), + error: te, + requestBody: null, + requestMethod: "GET", + url: l, + } + ); + } + e && + ((d.method = "POST"), + (d.body = e), + c["content-type"] == null && + (c["content-type"] = { + key: "Content-Type", + value: "application/octet-stream", + }), + c["content-length"] == null && + (c["content-length"] = { + key: "Content-Length", + value: String(e.length), + })); + var H = {}; + Object.keys(c).forEach(function (te) { + var $ = c[te]; + H[$.key] = $.value; + }), + (d.headers = H); + var j = (function () { + var te = null, + $ = new Promise(function (Y, K) { + w && + (te = setTimeout(function () { + te != null && + ((te = null), + K( + Od.makeError("timeout", pf.Logger.errors.TIMEOUT, { + requestBody: jm(d.body, H["content-type"]), + requestMethod: d.method, + timeout: w, + url: l, + }) + )); + }, w)); + }), + ae = function () { + te != null && (clearTimeout(te), (te = null)); + }; + return { promise: $, cancel: ae }; + })(), + V = (function () { + return _6t(this, void 0, void 0, function () { + var te, $, ae, h, Y, K, g, o, p, y, h, b; + return x6t(this, function (T) { + switch (T.label) { + case 0: + (te = 0), (T.label = 1); + case 1: + if (!(te < n)) return [3, 20]; + ($ = null), (T.label = 2); + case 2: + return T.trys.push([2, 9, , 10]), [4, (0, E6t.getUrl)(l, d)]; + case 3: + return ( + ($ = T.sent()), + te < n + ? $.statusCode === 301 || $.statusCode === 302 + ? ((ae = $.headers.location || ""), + d.method === "GET" && ae.match(/^https:/) + ? ((l = $.headers.location), [3, 19]) + : [3, 8]) + : [3, 4] + : [3, 8] + ); + case 4: + return $.statusCode !== 429 + ? [3, 8] + : ((h = !0), a ? [4, a(te, l)] : [3, 6]); + case 5: + (h = T.sent()), (T.label = 6); + case 6: + return h + ? ((Y = 0), + (K = $.headers["retry-after"]), + typeof K == "string" && K.match(/^[1-9][0-9]*$/) + ? (Y = parseInt(K) * 1e3) + : (Y = + i * + parseInt(String(Math.random() * Math.pow(2, te)))), + [4, d0e(Y)]) + : [3, 8]; + case 7: + return T.sent(), [3, 19]; + case 8: + return [3, 10]; + case 9: + return ( + (g = T.sent()), + ($ = g.response), + $ == null && + (j.cancel(), + Od.throwError( + "missing response", + pf.Logger.errors.SERVER_ERROR, + { + requestBody: jm(d.body, H["content-type"]), + requestMethod: d.method, + serverError: g, + url: l, + } + )), + [3, 10] + ); + case 10: + if ( + ((o = $.body), + m && $.statusCode === 304 + ? (o = null) + : !s && + ($.statusCode < 200 || $.statusCode >= 300) && + (j.cancel(), + Od.throwError( + "bad response", + pf.Logger.errors.SERVER_ERROR, + { + status: $.statusCode, + headers: $.headers, + body: jm( + o, + $.headers ? $.headers["content-type"] : null + ), + requestBody: jm(d.body, H["content-type"]), + requestMethod: d.method, + url: l, + } + )), + !t) + ) + return [3, 18]; + T.label = 11; + case 11: + return T.trys.push([11, 13, , 18]), [4, t(o, $)]; + case 12: + return (p = T.sent()), j.cancel(), [2, p]; + case 13: + return ( + (y = T.sent()), + y.throttleRetry && te < n + ? ((h = !0), a ? [4, a(te, l)] : [3, 15]) + : [3, 17] + ); + case 14: + (h = T.sent()), (T.label = 15); + case 15: + return h + ? ((b = + i * parseInt(String(Math.random() * Math.pow(2, te)))), + [4, d0e(b)]) + : [3, 17]; + case 16: + return T.sent(), [3, 19]; + case 17: + return ( + j.cancel(), + Od.throwError( + "processing response error", + pf.Logger.errors.SERVER_ERROR, + { + body: jm( + o, + $.headers ? $.headers["content-type"] : null + ), + error: y, + requestBody: jm(d.body, H["content-type"]), + requestMethod: d.method, + url: l, + } + ), + [3, 18] + ); + case 18: + return j.cancel(), [2, o]; + case 19: + return te++, [3, 1]; + case 20: + return [ + 2, + Od.throwError( + "failed response", + pf.Logger.errors.SERVER_ERROR, + { + requestBody: jm(d.body, H["content-type"]), + requestMethod: d.method, + url: l, + } + ), + ]; + } + }); + }); + })(); + return Promise.race([j.promise, V]); + } + Ol._fetchData = p0e; + function I6t(r, e, t) { + var n = function (c, l) { + var d = null; + if (c != null) + try { + d = JSON.parse((0, o5.toUtf8String)(c)); + } catch (m) { + Od.throwError("invalid JSON", pf.Logger.errors.SERVER_ERROR, { + body: c, + error: m, + }); + } + return t && (d = t(d, l)), d; + }, + a = null; + if (e != null) { + a = (0, o5.toUtf8Bytes)(e); + var i = typeof r == "string" ? { url: r } : (0, tk.shallowCopy)(r); + if (i.headers) { + var s = + Object.keys(i.headers).filter(function (c) { + return c.toLowerCase() === "content-type"; + }).length !== 0; + s || + ((i.headers = (0, tk.shallowCopy)(i.headers)), + (i.headers["content-type"] = "application/json")); + } else i.headers = { "content-type": "application/json" }; + r = i; + } + return p0e(r, a, n); + } + Ol.fetchJson = I6t; + function A6t(r, e) { + return ( + e || (e = {}), + (e = (0, tk.shallowCopy)(e)), + e.floor == null && (e.floor = 0), + e.ceiling == null && (e.ceiling = 1e4), + e.interval == null && (e.interval = 250), + new Promise(function (t, n) { + var a = null, + i = !1, + s = function () { + return i ? !1 : ((i = !0), a && clearTimeout(a), !0); + }; + e.timeout && + (a = setTimeout(function () { + s() && n(new Error("timeout")); + }, e.timeout)); + var c = e.retryLimit, + l = 0; + function d() { + return r().then( + function (m) { + if (m !== void 0) s() && t(m); + else if (e.oncePoll) e.oncePoll.once("poll", d); + else if (e.onceBlock) e.onceBlock.once("block", d); + else if (!i) { + if ((l++, l > c)) { + s() && n(new Error("retry limit reached")); + return; + } + var w = + e.interval * + parseInt(String(Math.random() * Math.pow(2, l))); + w < e.floor && (w = e.floor), + w > e.ceiling && (w = e.ceiling), + setTimeout(d, w); + } + return null; + }, + function (m) { + s() && n(m); + } + ); + } + d(); + }) + ); + } + Ol.poll = A6t; + }); + var y0e = N((CQr, m0e) => { + "use strict"; + _(); + x(); + var nk = "qpzry9x8gf2tvdw0s3jn54khce6mua7l", + ZW = {}; + for (c5 = 0; c5 < nk.length; c5++) { + if (((rk = nk.charAt(c5)), ZW[rk] !== void 0)) + throw new TypeError(rk + " is ambiguous"); + ZW[rk] = c5; + } + var rk, c5; + function Sv(r) { + var e = r >> 25; + return ( + ((r & 33554431) << 5) ^ + (-((e >> 0) & 1) & 996825010) ^ + (-((e >> 1) & 1) & 642813549) ^ + (-((e >> 2) & 1) & 513874426) ^ + (-((e >> 3) & 1) & 1027748829) ^ + (-((e >> 4) & 1) & 705979059) + ); + } + function h0e(r) { + for (var e = 1, t = 0; t < r.length; ++t) { + var n = r.charCodeAt(t); + if (n < 33 || n > 126) return "Invalid prefix (" + r + ")"; + e = Sv(e) ^ (n >> 5); + } + for (e = Sv(e), t = 0; t < r.length; ++t) { + var a = r.charCodeAt(t); + e = Sv(e) ^ (a & 31); + } + return e; + } + function k6t(r, e, t) { + if (((t = t || 90), r.length + 7 + e.length > t)) + throw new TypeError("Exceeds length limit"); + r = r.toLowerCase(); + var n = h0e(r); + if (typeof n == "string") throw new Error(n); + for (var a = r + "1", i = 0; i < e.length; ++i) { + var s = e[i]; + if (s >> 5 !== 0) throw new Error("Non 5-bit word"); + (n = Sv(n) ^ s), (a += nk.charAt(s)); + } + for (i = 0; i < 6; ++i) n = Sv(n); + for (n ^= 1, i = 0; i < 6; ++i) { + var c = (n >> ((5 - i) * 5)) & 31; + a += nk.charAt(c); + } + return a; + } + function f0e(r, e) { + if (((e = e || 90), r.length < 8)) return r + " too short"; + if (r.length > e) return "Exceeds length limit"; + var t = r.toLowerCase(), + n = r.toUpperCase(); + if (r !== t && r !== n) return "Mixed-case string " + r; + r = t; + var a = r.lastIndexOf("1"); + if (a === -1) return "No separator character for " + r; + if (a === 0) return "Missing prefix for " + r; + var i = r.slice(0, a), + s = r.slice(a + 1); + if (s.length < 6) return "Data too short"; + var c = h0e(i); + if (typeof c == "string") return c; + for (var l = [], d = 0; d < s.length; ++d) { + var m = s.charAt(d), + w = ZW[m]; + if (w === void 0) return "Unknown character " + m; + (c = Sv(c) ^ w), !(d + 6 >= s.length) && l.push(w); + } + return c !== 1 ? "Invalid checksum for " + r : { prefix: i, words: l }; + } + function S6t() { + var r = f0e.apply(null, arguments); + if (typeof r == "object") return r; + } + function M6t(r) { + var e = f0e.apply(null, arguments); + if (typeof e == "object") return e; + throw new Error(e); + } + function ak(r, e, t, n) { + for (var a = 0, i = 0, s = (1 << t) - 1, c = [], l = 0; l < r.length; ++l) + for (a = (a << e) | r[l], i += e; i >= t; ) + (i -= t), c.push((a >> i) & s); + if (n) i > 0 && c.push((a << (t - i)) & s); + else { + if (i >= e) return "Excess padding"; + if ((a << (t - i)) & s) return "Non-zero padding"; + } + return c; + } + function P6t(r) { + var e = ak(r, 8, 5, !0); + if (Array.isArray(e)) return e; + } + function R6t(r) { + var e = ak(r, 8, 5, !0); + if (Array.isArray(e)) return e; + throw new Error(e); + } + function B6t(r) { + var e = ak(r, 5, 8, !1); + if (Array.isArray(e)) return e; + } + function N6t(r) { + var e = ak(r, 5, 8, !1); + if (Array.isArray(e)) return e; + throw new Error(e); + } + m0e.exports = { + decodeUnsafe: S6t, + decode: M6t, + encode: k6t, + toWordsUnsafe: P6t, + toWords: R6t, + fromWordsUnsafe: B6t, + fromWords: N6t, + }; + }); + var Zs = N((ik) => { + "use strict"; + _(); + x(); + Object.defineProperty(ik, "__esModule", { value: !0 }); + ik.version = void 0; + ik.version = "providers/5.7.2"; + }); + var Km = N(($p) => { + "use strict"; + _(); + x(); + Object.defineProperty($p, "__esModule", { value: !0 }); + $p.showThrottleMessage = + $p.isCommunityResource = + $p.isCommunityResourcable = + $p.Formatter = + void 0; + var QW = dl(), + hf = zi(), + Yp = Dr(), + O6t = vy(), + L6t = ja(), + g0e = lf(), + D6t = ir(), + q6t = Zs(), + u5 = new D6t.Logger(q6t.version), + F6t = (function () { + function r() { + this.formats = this.getDefaultFormats(); + } + return ( + (r.prototype.getDefaultFormats = function () { + var e = this, + t = {}, + n = this.address.bind(this), + a = this.bigNumber.bind(this), + i = this.blockTag.bind(this), + s = this.data.bind(this), + c = this.hash.bind(this), + l = this.hex.bind(this), + d = this.number.bind(this), + m = this.type.bind(this), + w = function (C) { + return e.data(C, !0); + }; + return ( + (t.transaction = { + hash: c, + type: m, + accessList: r.allowNull(this.accessList.bind(this), null), + blockHash: r.allowNull(c, null), + blockNumber: r.allowNull(d, null), + transactionIndex: r.allowNull(d, null), + confirmations: r.allowNull(d, null), + from: n, + gasPrice: r.allowNull(a), + maxPriorityFeePerGas: r.allowNull(a), + maxFeePerGas: r.allowNull(a), + gasLimit: a, + to: r.allowNull(n, null), + value: a, + nonce: d, + data: s, + r: r.allowNull(this.uint256), + s: r.allowNull(this.uint256), + v: r.allowNull(d), + creates: r.allowNull(n, null), + raw: r.allowNull(s), + }), + (t.transactionRequest = { + from: r.allowNull(n), + nonce: r.allowNull(d), + gasLimit: r.allowNull(a), + gasPrice: r.allowNull(a), + maxPriorityFeePerGas: r.allowNull(a), + maxFeePerGas: r.allowNull(a), + to: r.allowNull(n), + value: r.allowNull(a), + data: r.allowNull(w), + type: r.allowNull(d), + accessList: r.allowNull(this.accessList.bind(this), null), + }), + (t.receiptLog = { + transactionIndex: d, + blockNumber: d, + transactionHash: c, + address: n, + topics: r.arrayOf(c), + data: s, + logIndex: d, + blockHash: c, + }), + (t.receipt = { + to: r.allowNull(this.address, null), + from: r.allowNull(this.address, null), + contractAddress: r.allowNull(n, null), + transactionIndex: d, + root: r.allowNull(l), + gasUsed: a, + logsBloom: r.allowNull(s), + blockHash: c, + transactionHash: c, + logs: r.arrayOf(this.receiptLog.bind(this)), + blockNumber: d, + confirmations: r.allowNull(d, null), + cumulativeGasUsed: a, + effectiveGasPrice: r.allowNull(a), + status: r.allowNull(d), + type: m, + }), + (t.block = { + hash: r.allowNull(c), + parentHash: c, + number: d, + timestamp: d, + nonce: r.allowNull(l), + difficulty: this.difficulty.bind(this), + gasLimit: a, + gasUsed: a, + miner: r.allowNull(n), + extraData: s, + transactions: r.allowNull(r.arrayOf(c)), + baseFeePerGas: r.allowNull(a), + }), + (t.blockWithTransactions = (0, L6t.shallowCopy)(t.block)), + (t.blockWithTransactions.transactions = r.allowNull( + r.arrayOf(this.transactionResponse.bind(this)) + )), + (t.filter = { + fromBlock: r.allowNull(i, void 0), + toBlock: r.allowNull(i, void 0), + blockHash: r.allowNull(c, void 0), + address: r.allowNull(n, void 0), + topics: r.allowNull(this.topics.bind(this), void 0), + }), + (t.filterLog = { + blockNumber: r.allowNull(d), + blockHash: r.allowNull(c), + transactionIndex: d, + removed: r.allowNull(this.boolean.bind(this)), + address: n, + data: r.allowFalsish(s, "0x"), + topics: r.arrayOf(c), + transactionHash: c, + logIndex: d, + }), + t + ); + }), + (r.prototype.accessList = function (e) { + return (0, g0e.accessListify)(e || []); + }), + (r.prototype.number = function (e) { + return e === "0x" ? 0 : hf.BigNumber.from(e).toNumber(); + }), + (r.prototype.type = function (e) { + return e === "0x" || e == null + ? 0 + : hf.BigNumber.from(e).toNumber(); + }), + (r.prototype.bigNumber = function (e) { + return hf.BigNumber.from(e); + }), + (r.prototype.boolean = function (e) { + if (typeof e == "boolean") return e; + if (typeof e == "string") { + if (((e = e.toLowerCase()), e === "true")) return !0; + if (e === "false") return !1; + } + throw new Error("invalid boolean - " + e); + }), + (r.prototype.hex = function (e, t) { + return typeof e == "string" && + (!t && e.substring(0, 2) !== "0x" && (e = "0x" + e), + (0, Yp.isHexString)(e)) + ? e.toLowerCase() + : u5.throwArgumentError("invalid hash", "value", e); + }), + (r.prototype.data = function (e, t) { + var n = this.hex(e, t); + if (n.length % 2 !== 0) + throw new Error("invalid data; odd-length - " + e); + return n; + }), + (r.prototype.address = function (e) { + return (0, QW.getAddress)(e); + }), + (r.prototype.callAddress = function (e) { + if (!(0, Yp.isHexString)(e, 32)) return null; + var t = (0, QW.getAddress)((0, Yp.hexDataSlice)(e, 12)); + return t === O6t.AddressZero ? null : t; + }), + (r.prototype.contractAddress = function (e) { + return (0, QW.getContractAddress)(e); + }), + (r.prototype.blockTag = function (e) { + if (e == null) return "latest"; + if (e === "earliest") return "0x0"; + switch (e) { + case "earliest": + return "0x0"; + case "latest": + case "pending": + case "safe": + case "finalized": + return e; + } + if (typeof e == "number" || (0, Yp.isHexString)(e)) + return (0, Yp.hexValue)(e); + throw new Error("invalid blockTag"); + }), + (r.prototype.hash = function (e, t) { + var n = this.hex(e, t); + return (0, Yp.hexDataLength)(n) !== 32 + ? u5.throwArgumentError("invalid hash", "value", e) + : n; + }), + (r.prototype.difficulty = function (e) { + if (e == null) return null; + var t = hf.BigNumber.from(e); + try { + return t.toNumber(); + } catch {} + return null; + }), + (r.prototype.uint256 = function (e) { + if (!(0, Yp.isHexString)(e)) throw new Error("invalid uint256"); + return (0, Yp.hexZeroPad)(e, 32); + }), + (r.prototype._block = function (e, t) { + e.author != null && e.miner == null && (e.miner = e.author); + var n = e._difficulty != null ? e._difficulty : e.difficulty, + a = r.check(t, e); + return (a._difficulty = n == null ? null : hf.BigNumber.from(n)), a; + }), + (r.prototype.block = function (e) { + return this._block(e, this.formats.block); + }), + (r.prototype.blockWithTransactions = function (e) { + return this._block(e, this.formats.blockWithTransactions); + }), + (r.prototype.transactionRequest = function (e) { + return r.check(this.formats.transactionRequest, e); + }), + (r.prototype.transactionResponse = function (e) { + e.gas != null && e.gasLimit == null && (e.gasLimit = e.gas), + e.to && + hf.BigNumber.from(e.to).isZero() && + (e.to = "0x0000000000000000000000000000000000000000"), + e.input != null && e.data == null && (e.data = e.input), + e.to == null && + e.creates == null && + (e.creates = this.contractAddress(e)), + (e.type === 1 || e.type === 2) && + e.accessList == null && + (e.accessList = []); + var t = r.check(this.formats.transaction, e); + if (e.chainId != null) { + var n = e.chainId; + (0, Yp.isHexString)(n) && (n = hf.BigNumber.from(n).toNumber()), + (t.chainId = n); + } else { + var n = e.networkId; + n == null && t.v == null && (n = e.chainId), + (0, Yp.isHexString)(n) && (n = hf.BigNumber.from(n).toNumber()), + typeof n != "number" && + t.v != null && + ((n = (t.v - 35) / 2), n < 0 && (n = 0), (n = parseInt(n))), + typeof n != "number" && (n = 0), + (t.chainId = n); + } + return ( + t.blockHash && + t.blockHash.replace(/0/g, "") === "x" && + (t.blockHash = null), + t + ); + }), + (r.prototype.transaction = function (e) { + return (0, g0e.parse)(e); + }), + (r.prototype.receiptLog = function (e) { + return r.check(this.formats.receiptLog, e); + }), + (r.prototype.receipt = function (e) { + var t = r.check(this.formats.receipt, e); + if (t.root != null) + if (t.root.length <= 4) { + var n = hf.BigNumber.from(t.root).toNumber(); + n === 0 || n === 1 + ? (t.status != null && + t.status !== n && + u5.throwArgumentError( + "alt-root-status/status mismatch", + "value", + { root: t.root, status: t.status } + ), + (t.status = n), + delete t.root) + : u5.throwArgumentError( + "invalid alt-root-status", + "value.root", + t.root + ); + } else + t.root.length !== 66 && + u5.throwArgumentError( + "invalid root hash", + "value.root", + t.root + ); + return t.status != null && (t.byzantium = !0), t; + }), + (r.prototype.topics = function (e) { + var t = this; + return Array.isArray(e) + ? e.map(function (n) { + return t.topics(n); + }) + : e != null + ? this.hash(e, !0) + : null; + }), + (r.prototype.filter = function (e) { + return r.check(this.formats.filter, e); + }), + (r.prototype.filterLog = function (e) { + return r.check(this.formats.filterLog, e); + }), + (r.check = function (e, t) { + var n = {}; + for (var a in e) + try { + var i = e[a](t[a]); + i !== void 0 && (n[a] = i); + } catch (s) { + throw ((s.checkKey = a), (s.checkValue = t[a]), s); + } + return n; + }), + (r.allowNull = function (e, t) { + return function (n) { + return n == null ? t : e(n); + }; + }), + (r.allowFalsish = function (e, t) { + return function (n) { + return n ? e(n) : t; + }; + }), + (r.arrayOf = function (e) { + return function (t) { + if (!Array.isArray(t)) throw new Error("not an array"); + var n = []; + return ( + t.forEach(function (a) { + n.push(e(a)); + }), + n + ); + }; + }), + r + ); + })(); + $p.Formatter = F6t; + function v0e(r) { + return r && typeof r.isCommunityResource == "function"; + } + $p.isCommunityResourcable = v0e; + function W6t(r) { + return v0e(r) && r.isCommunityResource(); + } + $p.isCommunityResource = W6t; + var b0e = !1; + function U6t() { + b0e || + ((b0e = !0), + console.log("========= NOTICE ========="), + console.log( + "Request-Rate Exceeded (this message will not be repeated)" + ), + console.log(""), + console.log( + "The default API keys for each service are provided as a highly-throttled," + ), + console.log( + "community resource for low-traffic projects and early prototyping." + ), + console.log(""), + console.log( + "While your application will continue to function, we highly recommended" + ), + console.log( + "signing up for your own API keys to improve performance, increase your" + ), + console.log( + "request rate/limit and enable other perks, such as metrics and advanced APIs." + ), + console.log(""), + console.log("For more details: https://docs.ethers.io/api-keys/"), + console.log("==========================")); + } + $p.showThrottleMessage = U6t; + }); + var h5 = N((Ao) => { + "use strict"; + _(); + x(); + var H6t = + (Ao && Ao.__extends) || + (function () { + var r = function (e, t) { + return ( + (r = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (n, a) { + n.__proto__ = a; + }) || + function (n, a) { + for (var i in a) + Object.prototype.hasOwnProperty.call(a, i) && (n[i] = a[i]); + }), + r(e, t) + ); + }; + return function (e, t) { + if (typeof t != "function" && t !== null) + throw new TypeError( + "Class extends value " + + String(t) + + " is not a constructor or null" + ); + r(e, t); + function n() { + this.constructor = e; + } + e.prototype = + t === null + ? Object.create(t) + : ((n.prototype = t.prototype), new n()); + }; + })(), + Ir = + (Ao && Ao.__awaiter) || + function (r, e, t, n) { + function a(i) { + return i instanceof t + ? i + : new t(function (s) { + s(i); + }); + } + return new (t || (t = Promise))(function (i, s) { + function c(m) { + try { + d(n.next(m)); + } catch (w) { + s(w); + } + } + function l(m) { + try { + d(n.throw(m)); + } catch (w) { + s(w); + } + } + function d(m) { + m.done ? i(m.value) : a(m.value).then(c, l); + } + d((n = n.apply(r, e || [])).next()); + }); + }, + Ar = + (Ao && Ao.__generator) || + function (r, e) { + var t = { + label: 0, + sent: function () { + if (i[0] & 1) throw i[1]; + return i[1]; + }, + trys: [], + ops: [], + }, + n, + a, + i, + s; + return ( + (s = { next: c(0), throw: c(1), return: c(2) }), + typeof Symbol == "function" && + (s[Symbol.iterator] = function () { + return this; + }), + s + ); + function c(d) { + return function (m) { + return l([d, m]); + }; + } + function l(d) { + if (n) throw new TypeError("Generator is already executing."); + for (; t; ) + try { + if ( + ((n = 1), + a && + (i = + d[0] & 2 + ? a.return + : d[0] + ? a.throw || ((i = a.return) && i.call(a), 0) + : a.next) && + !(i = i.call(a, d[1])).done) + ) + return i; + switch (((a = 0), i && (d = [d[0] & 2, i.value]), d[0])) { + case 0: + case 1: + i = d; + break; + case 4: + return t.label++, { value: d[1], done: !1 }; + case 5: + t.label++, (a = d[1]), (d = [0]); + continue; + case 7: + (d = t.ops.pop()), t.trys.pop(); + continue; + default: + if ( + ((i = t.trys), + !(i = i.length > 0 && i[i.length - 1]) && + (d[0] === 6 || d[0] === 2)) + ) { + t = 0; + continue; + } + if (d[0] === 3 && (!i || (d[1] > i[0] && d[1] < i[3]))) { + t.label = d[1]; + break; + } + if (d[0] === 6 && t.label < i[1]) { + (t.label = i[1]), (i = d); + break; + } + if (i && t.label < i[2]) { + (t.label = i[2]), t.ops.push(d); + break; + } + i[2] && t.ops.pop(), t.trys.pop(); + continue; + } + d = e.call(r, t); + } catch (m) { + (d = [6, m]), (a = 0); + } finally { + n = i = 0; + } + if (d[0] & 5) throw d[1]; + return { value: d[0] ? d[1] : void 0, done: !0 }; + } + }, + z6t = + (Ao && Ao.__importDefault) || + function (r) { + return r && r.__esModule ? r : { default: r }; + }; + Object.defineProperty(Ao, "__esModule", { value: !0 }); + Ao.BaseProvider = Ao.Resolver = Ao.Event = void 0; + var S0e = I1(), + j6t = qx(), + rU = CA(), + Io = zi(), + mr = Dr(), + K6t = vy(), + d5 = Ey(), + V6t = JW(), + Di = ja(), + w0e = og(), + nU = Ki(), + Pv = hg(), + _0e = z6t(y0e()), + nn = ir(), + G6t = Zs(), + Xr = new nn.Logger(G6t.version), + x0e = Km(), + Y6t = 10; + function T0e(r) { + return r == null + ? "null" + : ((0, mr.hexDataLength)(r) !== 32 && + Xr.throwArgumentError("invalid topic", "topic", r), + r.toLowerCase()); + } + function E0e(r) { + for (r = r.slice(); r.length > 0 && r[r.length - 1] == null; ) r.pop(); + return r + .map(function (e) { + if (Array.isArray(e)) { + var t = {}; + e.forEach(function (a) { + t[T0e(a)] = !0; + }); + var n = Object.keys(t); + return n.sort(), n.join("|"); + } else return T0e(e); + }) + .join("&"); + } + function $6t(r) { + return r === "" + ? [] + : r.split(/&/g).map(function (e) { + if (e === "") return []; + var t = e.split("|").map(function (n) { + return n === "null" ? null : n; + }); + return t.length === 1 ? t[0] : t; + }); + } + function Mv(r) { + if (typeof r == "string") { + if (((r = r.toLowerCase()), (0, mr.hexDataLength)(r) === 32)) + return "tx:" + r; + if (r.indexOf(":") === -1) return r; + } else { + if (Array.isArray(r)) return "filter:*:" + E0e(r); + if (S0e.ForkEvent.isForkEvent(r)) + throw (Xr.warn("not implemented"), new Error("not implemented")); + if (r && typeof r == "object") + return "filter:" + (r.address || "*") + ":" + E0e(r.topics || []); + } + throw new Error("invalid event - " + r); + } + function l5() { + return new Date().getTime(); + } + function C0e(r) { + return new Promise(function (e) { + setTimeout(e, r); + }); + } + var J6t = ["block", "network", "pending", "poll"], + M0e = (function () { + function r(e, t, n) { + (0, Di.defineReadOnly)(this, "tag", e), + (0, Di.defineReadOnly)(this, "listener", t), + (0, Di.defineReadOnly)(this, "once", n), + (this._lastBlockNumber = -2), + (this._inflight = !1); + } + return ( + Object.defineProperty(r.prototype, "event", { + get: function () { + switch (this.type) { + case "tx": + return this.hash; + case "filter": + return this.filter; + } + return this.tag; + }, + enumerable: !1, + configurable: !0, + }), + Object.defineProperty(r.prototype, "type", { + get: function () { + return this.tag.split(":")[0]; + }, + enumerable: !1, + configurable: !0, + }), + Object.defineProperty(r.prototype, "hash", { + get: function () { + var e = this.tag.split(":"); + return e[0] !== "tx" ? null : e[1]; + }, + enumerable: !1, + configurable: !0, + }), + Object.defineProperty(r.prototype, "filter", { + get: function () { + var e = this.tag.split(":"); + if (e[0] !== "filter") return null; + var t = e[1], + n = $6t(e[2]), + a = {}; + return ( + n.length > 0 && (a.topics = n), + t && t !== "*" && (a.address = t), + a + ); + }, + enumerable: !1, + configurable: !0, + }), + (r.prototype.pollable = function () { + return this.tag.indexOf(":") >= 0 || J6t.indexOf(this.tag) >= 0; + }), + r + ); + })(); + Ao.Event = M0e; + var Z6t = { + 0: { symbol: "btc", p2pkh: 0, p2sh: 5, prefix: "bc" }, + 2: { symbol: "ltc", p2pkh: 48, p2sh: 50, prefix: "ltc" }, + 3: { symbol: "doge", p2pkh: 30, p2sh: 22 }, + 60: { symbol: "eth", ilk: "eth" }, + 61: { symbol: "etc", ilk: "eth" }, + 700: { symbol: "xdai", ilk: "eth" }, + }; + function XW(r) { + return (0, mr.hexZeroPad)(Io.BigNumber.from(r).toHexString(), 32); + } + function I0e(r) { + return rU.Base58.encode( + (0, mr.concat)([ + r, + (0, mr.hexDataSlice)((0, w0e.sha256)((0, w0e.sha256)(r)), 0, 4), + ]) + ); + } + var P0e = new RegExp("^(ipfs)://(.*)$", "i"), + A0e = [ + new RegExp("^(https)://(.*)$", "i"), + new RegExp("^(data):(.*)$", "i"), + P0e, + new RegExp("^eip155:[0-9]+/(erc[0-9]+):(.*)$", "i"), + ]; + function sk(r, e) { + try { + return (0, nU.toUtf8String)(p5(r, e)); + } catch {} + return null; + } + function p5(r, e) { + if (r === "0x") return null; + var t = Io.BigNumber.from((0, mr.hexDataSlice)(r, e, e + 32)).toNumber(), + n = Io.BigNumber.from((0, mr.hexDataSlice)(r, t, t + 32)).toNumber(); + return (0, mr.hexDataSlice)(r, t + 32, t + 32 + n); + } + function eU(r) { + return ( + r.match(/^ipfs:\/\/ipfs\//i) + ? (r = r.substring(12)) + : r.match(/^ipfs:\/\//i) + ? (r = r.substring(7)) + : Xr.throwArgumentError("unsupported IPFS format", "link", r), + "https://gateway.ipfs.io/ipfs/" + r + ); + } + function k0e(r) { + var e = (0, mr.arrayify)(r); + if (e.length > 32) throw new Error("internal; should not happen"); + var t = new Uint8Array(32); + return t.set(e, 32 - e.length), t; + } + function Q6t(r) { + if (r.length % 32 === 0) return r; + var e = new Uint8Array(Math.ceil(r.length / 32) * 32); + return e.set(r), e; + } + function R0e(r) { + for (var e = [], t = 0, n = 0; n < r.length; n++) e.push(null), (t += 32); + for (var n = 0; n < r.length; n++) { + var a = (0, mr.arrayify)(r[n]); + (e[n] = k0e(t)), + e.push(k0e(a.length)), + e.push(Q6t(a)), + (t += 32 + Math.ceil(a.length / 32) * 32); + } + return (0, mr.hexConcat)(e); + } + var aU = (function () { + function r(e, t, n, a) { + (0, Di.defineReadOnly)(this, "provider", e), + (0, Di.defineReadOnly)(this, "name", n), + (0, Di.defineReadOnly)(this, "address", e.formatter.address(t)), + (0, Di.defineReadOnly)(this, "_resolvedAddress", a); + } + return ( + (r.prototype.supportsWildcard = function () { + var e = this; + return ( + this._supportsEip2544 || + (this._supportsEip2544 = this.provider + .call({ + to: this.address, + data: "0x01ffc9a79061b92300000000000000000000000000000000000000000000000000000000", + }) + .then(function (t) { + return Io.BigNumber.from(t).eq(1); + }) + .catch(function (t) { + if (t.code === nn.Logger.errors.CALL_EXCEPTION) return !1; + throw ((e._supportsEip2544 = null), t); + })), + this._supportsEip2544 + ); + }), + (r.prototype._fetch = function (e, t) { + return Ir(this, void 0, void 0, function () { + var n, a, i, s; + return Ar(this, function (c) { + switch (c.label) { + case 0: + return ( + (n = { + to: this.address, + ccipReadEnabled: !0, + data: (0, mr.hexConcat)([ + e, + (0, d5.namehash)(this.name), + t || "0x", + ]), + }), + (a = !1), + [4, this.supportsWildcard()] + ); + case 1: + c.sent() && + ((a = !0), + (n.data = (0, mr.hexConcat)([ + "0x9061b923", + R0e([(0, d5.dnsEncode)(this.name), n.data]), + ]))), + (c.label = 2); + case 2: + return c.trys.push([2, 4, , 5]), [4, this.provider.call(n)]; + case 3: + return ( + (i = c.sent()), + (0, mr.arrayify)(i).length % 32 === 4 && + Xr.throwError( + "resolver threw error", + nn.Logger.errors.CALL_EXCEPTION, + { transaction: n, data: i } + ), + a && (i = p5(i, 0)), + [2, i] + ); + case 4: + if ( + ((s = c.sent()), s.code === nn.Logger.errors.CALL_EXCEPTION) + ) + return [2, null]; + throw s; + case 5: + return [2]; + } + }); + }); + }), + (r.prototype._fetchBytes = function (e, t) { + return Ir(this, void 0, void 0, function () { + var n; + return Ar(this, function (a) { + switch (a.label) { + case 0: + return [4, this._fetch(e, t)]; + case 1: + return (n = a.sent()), n != null ? [2, p5(n, 0)] : [2, null]; + } + }); + }); + }), + (r.prototype._getAddress = function (e, t) { + var n = Z6t[String(e)]; + if ( + (n == null && + Xr.throwError( + "unsupported coin type: " + e, + nn.Logger.errors.UNSUPPORTED_OPERATION, + { operation: "getAddress(" + e + ")" } + ), + n.ilk === "eth") + ) + return this.provider.formatter.address(t); + var a = (0, mr.arrayify)(t); + if (n.p2pkh != null) { + var i = t.match(/^0x76a9([0-9a-f][0-9a-f])([0-9a-f]*)88ac$/); + if (i) { + var s = parseInt(i[1], 16); + if (i[2].length === s * 2 && s >= 1 && s <= 75) + return I0e((0, mr.concat)([[n.p2pkh], "0x" + i[2]])); + } + } + if (n.p2sh != null) { + var c = t.match(/^0xa9([0-9a-f][0-9a-f])([0-9a-f]*)87$/); + if (c) { + var l = parseInt(c[1], 16); + if (c[2].length === l * 2 && l >= 1 && l <= 75) + return I0e((0, mr.concat)([[n.p2sh], "0x" + c[2]])); + } + } + if (n.prefix != null) { + var d = a[1], + m = a[0]; + if ( + (m === 0 ? d !== 20 && d !== 32 && (m = -1) : (m = -1), + m >= 0 && a.length === 2 + d && d >= 1 && d <= 75) + ) { + var w = _0e.default.toWords(a.slice(2)); + return w.unshift(m), _0e.default.encode(n.prefix, w); + } + } + return null; + }), + (r.prototype.getAddress = function (e) { + return Ir(this, void 0, void 0, function () { + var t, n, a, i; + return Ar(this, function (s) { + switch (s.label) { + case 0: + if ((e == null && (e = 60), e !== 60)) return [3, 4]; + s.label = 1; + case 1: + return ( + s.trys.push([1, 3, , 4]), [4, this._fetch("0x3b3b57de")] + ); + case 2: + return ( + (t = s.sent()), + t === "0x" || t === K6t.HashZero + ? [2, null] + : [2, this.provider.formatter.callAddress(t)] + ); + case 3: + if ( + ((n = s.sent()), n.code === nn.Logger.errors.CALL_EXCEPTION) + ) + return [2, null]; + throw n; + case 4: + return [4, this._fetchBytes("0xf1cb7e06", XW(e))]; + case 5: + return ( + (a = s.sent()), + a == null || a === "0x" + ? [2, null] + : ((i = this._getAddress(e, a)), + i == null && + Xr.throwError( + "invalid or unsupported coin data", + nn.Logger.errors.UNSUPPORTED_OPERATION, + { + operation: "getAddress(" + e + ")", + coinType: e, + data: a, + } + ), + [2, i]) + ); + } + }); + }); + }), + (r.prototype.getAvatar = function () { + return Ir(this, void 0, void 0, function () { + var e, + t, + n, + a, + i, + s, + c, + l, + d, + m, + w, + C, + I, + k, + O, + D, + W, + H, + j, + V, + te, + $, + ae, + Y, + K; + return Ar(this, function (g) { + switch (g.label) { + case 0: + (e = [{ type: "name", content: this.name }]), (g.label = 1); + case 1: + return ( + g.trys.push([1, 19, , 20]), [4, this.getText("avatar")] + ); + case 2: + if (((t = g.sent()), t == null)) return [2, null]; + (n = 0), (g.label = 3); + case 3: + if (!(n < A0e.length)) return [3, 18]; + if (((a = t.match(A0e[n])), a == null)) return [3, 17]; + switch (((i = a[1].toLowerCase()), (s = i), s)) { + case "https": + return [3, 4]; + case "data": + return [3, 5]; + case "ipfs": + return [3, 6]; + case "erc721": + return [3, 7]; + case "erc1155": + return [3, 7]; + } + return [3, 17]; + case 4: + return ( + e.push({ type: "url", content: t }), + [2, { linkage: e, url: t }] + ); + case 5: + return ( + e.push({ type: "data", content: t }), + [2, { linkage: e, url: t }] + ); + case 6: + return ( + e.push({ type: "ipfs", content: t }), + [2, { linkage: e, url: eU(t) }] + ); + case 7: + return ( + (c = i === "erc721" ? "0xc87b56dd" : "0x0e89341c"), + e.push({ type: i, content: t }), + (d = this._resolvedAddress), + d ? [3, 9] : [4, this.getAddress()] + ); + case 8: + (d = g.sent()), (g.label = 9); + case 9: + return ( + (l = d), + (m = (a[2] || "").split("/")), + m.length !== 2 + ? [2, null] + : [4, this.provider.formatter.address(m[0])] + ); + case 10: + return ( + (w = g.sent()), + (C = (0, mr.hexZeroPad)( + Io.BigNumber.from(m[1]).toHexString(), + 32 + )), + i !== "erc721" + ? [3, 12] + : ((O = (k = this.provider.formatter).callAddress), + [ + 4, + this.provider.call({ + to: w, + data: (0, mr.hexConcat)(["0x6352211e", C]), + }), + ]) + ); + case 11: + return ( + (I = O.apply(k, [g.sent()])), + l !== I + ? [2, null] + : (e.push({ type: "owner", content: I }), [3, 14]) + ); + case 12: + return i !== "erc1155" + ? [3, 14] + : ((H = (W = Io.BigNumber).from), + [ + 4, + this.provider.call({ + to: w, + data: (0, mr.hexConcat)([ + "0x00fdd58e", + (0, mr.hexZeroPad)(l, 32), + C, + ]), + }), + ]); + case 13: + if (((D = H.apply(W, [g.sent()])), D.isZero())) + return [2, null]; + e.push({ type: "balance", content: D.toString() }), + (g.label = 14); + case 14: + return ( + (j = { + to: this.provider.formatter.address(m[0]), + data: (0, mr.hexConcat)([c, C]), + }), + (te = sk), + [4, this.provider.call(j)] + ); + case 15: + return ( + (V = te.apply(void 0, [g.sent(), 0])), + V == null + ? [2, null] + : (e.push({ type: "metadata-url-base", content: V }), + i === "erc1155" && + ((V = V.replace("{id}", C.substring(2))), + e.push({ + type: "metadata-url-expanded", + content: V, + })), + V.match(/^ipfs:/i) && (V = eU(V)), + e.push({ type: "metadata-url", content: V }), + [4, (0, Pv.fetchJson)(V)]) + ); + case 16: + if ((($ = g.sent()), !$)) return [2, null]; + if ( + (e.push({ type: "metadata", content: JSON.stringify($) }), + (ae = $.image), + typeof ae != "string") + ) + return [2, null]; + if (!ae.match(/^(https:\/\/|data:)/i)) { + if (((Y = ae.match(P0e)), Y == null)) return [2, null]; + e.push({ type: "url-ipfs", content: ae }), (ae = eU(ae)); + } + return ( + e.push({ type: "url", content: ae }), + [2, { linkage: e, url: ae }] + ); + case 17: + return n++, [3, 3]; + case 18: + return [3, 20]; + case 19: + return (K = g.sent()), [3, 20]; + case 20: + return [2, null]; + } + }); + }); + }), + (r.prototype.getContentHash = function () { + return Ir(this, void 0, void 0, function () { + var e, t, n, a, i, s, c, l, d; + return Ar(this, function (m) { + switch (m.label) { + case 0: + return [4, this._fetchBytes("0xbc1c58d1")]; + case 1: + return ( + (e = m.sent()), + e == null || e === "0x" + ? [2, null] + : ((t = e.match( + /^0xe3010170(([0-9a-f][0-9a-f])([0-9a-f][0-9a-f])([0-9a-f]*))$/ + )), + t && ((n = parseInt(t[3], 16)), t[4].length === n * 2) + ? [2, "ipfs://" + rU.Base58.encode("0x" + t[1])] + : ((a = e.match( + /^0xe5010172(([0-9a-f][0-9a-f])([0-9a-f][0-9a-f])([0-9a-f]*))$/ + )), + a && + ((i = parseInt(a[3], 16)), a[4].length === i * 2) + ? [2, "ipns://" + rU.Base58.encode("0x" + a[1])] + : ((s = e.match(/^0xe40101fa011b20([0-9a-f]*)$/)), + s && s[1].length === 32 * 2 + ? [2, "bzz://" + s[1]] + : ((c = e.match(/^0x90b2c605([0-9a-f]*)$/)), + c && c[1].length === 34 * 2 + ? ((l = { "=": "", "+": "-", "/": "_" }), + (d = (0, j6t.encode)( + "0x" + c[1] + ).replace(/[=+\/]/g, function (w) { + return l[w]; + })), + [2, "sia://" + d]) + : [ + 2, + Xr.throwError( + "invalid or unsupported content hash data", + nn.Logger.errors + .UNSUPPORTED_OPERATION, + { + operation: "getContentHash()", + data: e, + } + ), + ])))) + ); + } + }); + }); + }), + (r.prototype.getText = function (e) { + return Ir(this, void 0, void 0, function () { + var t, n; + return Ar(this, function (a) { + switch (a.label) { + case 0: + return ( + (t = (0, nU.toUtf8Bytes)(e)), + (t = (0, mr.concat)([XW(64), XW(t.length), t])), + t.length % 32 !== 0 && + (t = (0, mr.concat)([ + t, + (0, mr.hexZeroPad)("0x", 32 - (e.length % 32)), + ])), + [4, this._fetchBytes("0x59d1d43c", (0, mr.hexlify)(t))] + ); + case 1: + return ( + (n = a.sent()), + n == null || n === "0x" + ? [2, null] + : [2, (0, nU.toUtf8String)(n)] + ); + } + }); + }); + }), + r + ); + })(); + Ao.Resolver = aU; + var tU = null, + X6t = 1, + eEt = (function (r) { + H6t(e, r); + function e(t) { + var n = this.constructor, + a = r.call(this) || this; + if ( + ((a._events = []), + (a._emitted = { block: -2 }), + (a.disableCcipRead = !1), + (a.formatter = n.getFormatter()), + (0, Di.defineReadOnly)(a, "anyNetwork", t === "any"), + a.anyNetwork && (t = a.detectNetwork()), + t instanceof Promise) + ) + (a._networkPromise = t), + t.catch(function (s) {}), + a._ready().catch(function (s) {}); + else { + var i = (0, Di.getStatic)(n, "getNetwork")(t); + i + ? ((0, Di.defineReadOnly)(a, "_network", i), + a.emit("network", i, null)) + : Xr.throwArgumentError("invalid network", "network", t); + } + return ( + (a._maxInternalBlockNumber = -1024), + (a._lastBlockNumber = -2), + (a._maxFilterBlockRange = 10), + (a._pollingInterval = 4e3), + (a._fastQueryDate = 0), + a + ); + } + return ( + (e.prototype._ready = function () { + return Ir(this, void 0, void 0, function () { + var t, n; + return Ar(this, function (a) { + switch (a.label) { + case 0: + if (this._network != null) return [3, 7]; + if (((t = null), !this._networkPromise)) return [3, 4]; + a.label = 1; + case 1: + return a.trys.push([1, 3, , 4]), [4, this._networkPromise]; + case 2: + return (t = a.sent()), [3, 4]; + case 3: + return (n = a.sent()), [3, 4]; + case 4: + return t != null ? [3, 6] : [4, this.detectNetwork()]; + case 5: + (t = a.sent()), (a.label = 6); + case 6: + t || + Xr.throwError( + "no network detected", + nn.Logger.errors.UNKNOWN_ERROR, + {} + ), + this._network == null && + (this.anyNetwork + ? (this._network = t) + : (0, Di.defineReadOnly)(this, "_network", t), + this.emit("network", t, null)), + (a.label = 7); + case 7: + return [2, this._network]; + } + }); + }); + }), + Object.defineProperty(e.prototype, "ready", { + get: function () { + var t = this; + return (0, Pv.poll)(function () { + return t._ready().then( + function (n) { + return n; + }, + function (n) { + if ( + !( + n.code === nn.Logger.errors.NETWORK_ERROR && + n.event === "noNetwork" + ) + ) + throw n; + } + ); + }); + }, + enumerable: !1, + configurable: !0, + }), + (e.getFormatter = function () { + return tU == null && (tU = new x0e.Formatter()), tU; + }), + (e.getNetwork = function (t) { + return (0, V6t.getNetwork)(t ?? "homestead"); + }), + (e.prototype.ccipReadFetch = function (t, n, a) { + return Ir(this, void 0, void 0, function () { + var i, s, c, l, d, m, w, C, I; + return Ar(this, function (k) { + switch (k.label) { + case 0: + if (this.disableCcipRead || a.length === 0) + return [2, null]; + (i = t.to.toLowerCase()), + (s = n.toLowerCase()), + (c = []), + (l = 0), + (k.label = 1); + case 1: + return l < a.length + ? ((d = a[l]), + (m = d.replace("{sender}", i).replace("{data}", s)), + (w = + d.indexOf("{data}") >= 0 + ? null + : JSON.stringify({ data: s, sender: i })), + [ + 4, + (0, Pv.fetchJson)( + { url: m, errorPassThrough: !0 }, + w, + function (O, D) { + return (O.status = D.statusCode), O; + } + ), + ]) + : [3, 4]; + case 2: + if (((C = k.sent()), C.data)) return [2, C.data]; + if ( + ((I = C.message || "unknown error"), + C.status >= 400 && C.status < 500) + ) + return [ + 2, + Xr.throwError( + "response not found during CCIP fetch: " + I, + nn.Logger.errors.SERVER_ERROR, + { url: d, errorMessage: I } + ), + ]; + c.push(I), (k.label = 3); + case 3: + return l++, [3, 1]; + case 4: + return [ + 2, + Xr.throwError( + "error encountered during CCIP fetch: " + + c + .map(function (O) { + return JSON.stringify(O); + }) + .join(", "), + nn.Logger.errors.SERVER_ERROR, + { urls: a, errorMessages: c } + ), + ]; + } + }); + }); + }), + (e.prototype._getInternalBlockNumber = function (t) { + return Ir(this, void 0, void 0, function () { + var n, + a, + i, + s, + c, + l = this; + return Ar(this, function (d) { + switch (d.label) { + case 0: + return [4, this._ready()]; + case 1: + if ((d.sent(), !(t > 0))) return [3, 7]; + d.label = 2; + case 2: + if (!this._internalBlockNumber) return [3, 7]; + (n = this._internalBlockNumber), (d.label = 3); + case 3: + return d.trys.push([3, 5, , 6]), [4, n]; + case 4: + return ( + (a = d.sent()), + l5() - a.respTime <= t ? [2, a.blockNumber] : [3, 7] + ); + case 5: + return ( + (i = d.sent()), + this._internalBlockNumber === n ? [3, 7] : [3, 6] + ); + case 6: + return [3, 2]; + case 7: + return ( + (s = l5()), + (c = (0, Di.resolveProperties)({ + blockNumber: this.perform("getBlockNumber", {}), + networkError: this.getNetwork().then( + function (m) { + return null; + }, + function (m) { + return m; + } + ), + }).then(function (m) { + var w = m.blockNumber, + C = m.networkError; + if (C) + throw ( + (l._internalBlockNumber === c && + (l._internalBlockNumber = null), + C) + ); + var I = l5(); + return ( + (w = Io.BigNumber.from(w).toNumber()), + w < l._maxInternalBlockNumber && + (w = l._maxInternalBlockNumber), + (l._maxInternalBlockNumber = w), + l._setFastBlockNumber(w), + { blockNumber: w, reqTime: s, respTime: I } + ); + })), + (this._internalBlockNumber = c), + c.catch(function (m) { + l._internalBlockNumber === c && + (l._internalBlockNumber = null); + }), + [4, c] + ); + case 8: + return [2, d.sent().blockNumber]; + } + }); + }); + }), + (e.prototype.poll = function () { + return Ir(this, void 0, void 0, function () { + var t, + n, + a, + i, + s, + c = this; + return Ar(this, function (l) { + switch (l.label) { + case 0: + (t = X6t++), (n = []), (a = null), (l.label = 1); + case 1: + return ( + l.trys.push([1, 3, , 4]), + [ + 4, + this._getInternalBlockNumber( + 100 + this.pollingInterval / 2 + ), + ] + ); + case 2: + return (a = l.sent()), [3, 4]; + case 3: + return (i = l.sent()), this.emit("error", i), [2]; + case 4: + if ( + (this._setFastBlockNumber(a), + this.emit("poll", t, a), + a === this._lastBlockNumber) + ) + return this.emit("didPoll", t), [2]; + if ( + (this._emitted.block === -2 && + (this._emitted.block = a - 1), + Math.abs(this._emitted.block - a) > 1e3) + ) + Xr.warn( + "network block skew detected; skipping block events (emitted=" + + this._emitted.block + + " blockNumber" + + a + + ")" + ), + this.emit( + "error", + Xr.makeError( + "network block skew detected", + nn.Logger.errors.NETWORK_ERROR, + { + blockNumber: a, + event: "blockSkew", + previousBlockNumber: this._emitted.block, + } + ) + ), + this.emit("block", a); + else + for (s = this._emitted.block + 1; s <= a; s++) + this.emit("block", s); + return ( + this._emitted.block !== a && + ((this._emitted.block = a), + Object.keys(this._emitted).forEach(function (d) { + if (d !== "block") { + var m = c._emitted[d]; + m !== "pending" && + a - m > 12 && + delete c._emitted[d]; + } + })), + this._lastBlockNumber === -2 && + (this._lastBlockNumber = a - 1), + this._events.forEach(function (d) { + switch (d.type) { + case "tx": { + var m = d.hash, + w = c + .getTransactionReceipt(m) + .then(function (k) { + return ( + !k || + k.blockNumber == null || + ((c._emitted["t:" + m] = k.blockNumber), + c.emit(m, k)), + null + ); + }) + .catch(function (k) { + c.emit("error", k); + }); + n.push(w); + break; + } + case "filter": { + if (!d._inflight) { + (d._inflight = !0), + d._lastBlockNumber === -2 && + (d._lastBlockNumber = a - 1); + var C = d.filter; + (C.fromBlock = d._lastBlockNumber + 1), + (C.toBlock = a); + var I = C.toBlock - c._maxFilterBlockRange; + I > C.fromBlock && (C.fromBlock = I), + C.fromBlock < 0 && (C.fromBlock = 0); + var w = c + .getLogs(C) + .then(function (O) { + (d._inflight = !1), + O.length !== 0 && + O.forEach(function (D) { + D.blockNumber > d._lastBlockNumber && + (d._lastBlockNumber = D.blockNumber), + (c._emitted["b:" + D.blockHash] = + D.blockNumber), + (c._emitted[ + "t:" + D.transactionHash + ] = D.blockNumber), + c.emit(C, D); + }); + }) + .catch(function (O) { + c.emit("error", O), (d._inflight = !1); + }); + n.push(w); + } + break; + } + } + }), + (this._lastBlockNumber = a), + Promise.all(n) + .then(function () { + c.emit("didPoll", t); + }) + .catch(function (d) { + c.emit("error", d); + }), + [2] + ); + } + }); + }); + }), + (e.prototype.resetEventsBlock = function (t) { + (this._lastBlockNumber = t - 1), this.polling && this.poll(); + }), + Object.defineProperty(e.prototype, "network", { + get: function () { + return this._network; + }, + enumerable: !1, + configurable: !0, + }), + (e.prototype.detectNetwork = function () { + return Ir(this, void 0, void 0, function () { + return Ar(this, function (t) { + return [ + 2, + Xr.throwError( + "provider does not support network detection", + nn.Logger.errors.UNSUPPORTED_OPERATION, + { operation: "provider.detectNetwork" } + ), + ]; + }); + }); + }), + (e.prototype.getNetwork = function () { + return Ir(this, void 0, void 0, function () { + var t, n, a; + return Ar(this, function (i) { + switch (i.label) { + case 0: + return [4, this._ready()]; + case 1: + return (t = i.sent()), [4, this.detectNetwork()]; + case 2: + return ( + (n = i.sent()), + t.chainId === n.chainId + ? [3, 5] + : this.anyNetwork + ? ((this._network = n), + (this._lastBlockNumber = -2), + (this._fastBlockNumber = null), + (this._fastBlockNumberPromise = null), + (this._fastQueryDate = 0), + (this._emitted.block = -2), + (this._maxInternalBlockNumber = -1024), + (this._internalBlockNumber = null), + this.emit("network", n, t), + [4, C0e(0)]) + : [3, 4] + ); + case 3: + return i.sent(), [2, this._network]; + case 4: + throw ( + ((a = Xr.makeError( + "underlying network changed", + nn.Logger.errors.NETWORK_ERROR, + { event: "changed", network: t, detectedNetwork: n } + )), + this.emit("error", a), + a) + ); + case 5: + return [2, t]; + } + }); + }); + }), + Object.defineProperty(e.prototype, "blockNumber", { + get: function () { + var t = this; + return ( + this._getInternalBlockNumber( + 100 + this.pollingInterval / 2 + ).then( + function (n) { + t._setFastBlockNumber(n); + }, + function (n) {} + ), + this._fastBlockNumber != null ? this._fastBlockNumber : -1 + ); + }, + enumerable: !1, + configurable: !0, + }), + Object.defineProperty(e.prototype, "polling", { + get: function () { + return this._poller != null; + }, + set: function (t) { + var n = this; + t && !this._poller + ? ((this._poller = setInterval(function () { + n.poll(); + }, this.pollingInterval)), + this._bootstrapPoll || + (this._bootstrapPoll = setTimeout(function () { + n.poll(), + (n._bootstrapPoll = setTimeout(function () { + n._poller || n.poll(), (n._bootstrapPoll = null); + }, n.pollingInterval)); + }, 0))) + : !t && + this._poller && + (clearInterval(this._poller), (this._poller = null)); + }, + enumerable: !1, + configurable: !0, + }), + Object.defineProperty(e.prototype, "pollingInterval", { + get: function () { + return this._pollingInterval; + }, + set: function (t) { + var n = this; + if (typeof t != "number" || t <= 0 || parseInt(String(t)) != t) + throw new Error("invalid polling interval"); + (this._pollingInterval = t), + this._poller && + (clearInterval(this._poller), + (this._poller = setInterval(function () { + n.poll(); + }, this._pollingInterval))); + }, + enumerable: !1, + configurable: !0, + }), + (e.prototype._getFastBlockNumber = function () { + var t = this, + n = l5(); + return ( + n - this._fastQueryDate > 2 * this._pollingInterval && + ((this._fastQueryDate = n), + (this._fastBlockNumberPromise = this.getBlockNumber().then( + function (a) { + return ( + (t._fastBlockNumber == null || a > t._fastBlockNumber) && + (t._fastBlockNumber = a), + t._fastBlockNumber + ); + } + ))), + this._fastBlockNumberPromise + ); + }), + (e.prototype._setFastBlockNumber = function (t) { + (this._fastBlockNumber != null && t < this._fastBlockNumber) || + ((this._fastQueryDate = l5()), + (this._fastBlockNumber == null || t > this._fastBlockNumber) && + ((this._fastBlockNumber = t), + (this._fastBlockNumberPromise = Promise.resolve(t)))); + }), + (e.prototype.waitForTransaction = function (t, n, a) { + return Ir(this, void 0, void 0, function () { + return Ar(this, function (i) { + return [2, this._waitForTransaction(t, n ?? 1, a || 0, null)]; + }); + }); + }), + (e.prototype._waitForTransaction = function (t, n, a, i) { + return Ir(this, void 0, void 0, function () { + var s, + c = this; + return Ar(this, function (l) { + switch (l.label) { + case 0: + return [4, this.getTransactionReceipt(t)]; + case 1: + return ( + (s = l.sent()), + (s ? s.confirmations : 0) >= n + ? [2, s] + : [ + 2, + new Promise(function (d, m) { + var w = [], + C = !1, + I = function () { + return C + ? !0 + : ((C = !0), + w.forEach(function (j) { + j(); + }), + !1); + }, + k = function (j) { + j.confirmations < n || I() || d(j); + }; + if ( + (c.on(t, k), + w.push(function () { + c.removeListener(t, k); + }), + i) + ) { + var O = i.startBlock, + D = null, + W = function (j) { + return Ir(c, void 0, void 0, function () { + var V = this; + return Ar(this, function (te) { + switch (te.label) { + case 0: + return C ? [2] : [4, C0e(1e3)]; + case 1: + return ( + te.sent(), + this.getTransactionCount( + i.from + ).then( + function ($) { + return Ir( + V, + void 0, + void 0, + function () { + var ae, Y, K, g, o, p; + return Ar( + this, + function (y) { + switch (y.label) { + case 0: + return C + ? [2] + : $ <= i.nonce + ? ((O = j), + [3, 9]) + : [3, 1]; + case 1: + return [ + 4, + this.getTransaction( + t + ), + ]; + case 2: + if ( + ((ae = + y.sent()), + ae && + ae.blockNumber != + null) + ) + return [2]; + D == null && + ((D = O - 3), + D < + i.startBlock && + (D = + i.startBlock)), + (y.label = 3); + case 3: + return D <= j + ? C + ? [2] + : [ + 4, + this.getBlockWithTransactions( + D + ), + ] + : [3, 9]; + case 4: + (Y = y.sent()), + (K = 0), + (y.label = 5); + case 5: + return K < + Y.transactions + .length + ? ((g = + Y + .transactions[ + K + ]), + g.hash === t + ? [2] + : g.from === + i.from && + g.nonce === + i.nonce + ? C + ? [2] + : [ + 4, + this.waitForTransaction( + g.hash, + n + ), + ] + : [3, 7]) + : [3, 8]; + case 6: + return ( + (o = y.sent()), + I() + ? [2] + : ((p = + "replaced"), + g.data === + i.data && + g.to === + i.to && + g.value.eq( + i.value + ) + ? (p = + "repriced") + : g.data === + "0x" && + g.from === + g.to && + g.value.isZero() && + (p = + "cancelled"), + m( + Xr.makeError( + "transaction was replaced", + nn + .Logger + .errors + .TRANSACTION_REPLACED, + { + cancelled: + p === + "replaced" || + p === + "cancelled", + reason: + p, + replacement: + this._wrapTransaction( + g + ), + hash: t, + receipt: + o, + } + ) + ), + [2]) + ); + case 7: + return ( + K++, [3, 5] + ); + case 8: + return ( + D++, [3, 3] + ); + case 9: + return C + ? [2] + : (this.once( + "block", + W + ), + [2]); + } + } + ); + } + ); + }, + function ($) { + C || V.once("block", W); + } + ), + [2] + ); + } + }); + }); + }; + if (C) return; + c.once("block", W), + w.push(function () { + c.removeListener("block", W); + }); + } + if (typeof a == "number" && a > 0) { + var H = setTimeout(function () { + I() || + m( + Xr.makeError( + "timeout exceeded", + nn.Logger.errors.TIMEOUT, + { timeout: a } + ) + ); + }, a); + H.unref && H.unref(), + w.push(function () { + clearTimeout(H); + }); + } + }), + ] + ); + } + }); + }); + }), + (e.prototype.getBlockNumber = function () { + return Ir(this, void 0, void 0, function () { + return Ar(this, function (t) { + return [2, this._getInternalBlockNumber(0)]; + }); + }); + }), + (e.prototype.getGasPrice = function () { + return Ir(this, void 0, void 0, function () { + var t; + return Ar(this, function (n) { + switch (n.label) { + case 0: + return [4, this.getNetwork()]; + case 1: + return n.sent(), [4, this.perform("getGasPrice", {})]; + case 2: + t = n.sent(); + try { + return [2, Io.BigNumber.from(t)]; + } catch (a) { + return [ + 2, + Xr.throwError( + "bad result from backend", + nn.Logger.errors.SERVER_ERROR, + { method: "getGasPrice", result: t, error: a } + ), + ]; + } + return [2]; + } + }); + }); + }), + (e.prototype.getBalance = function (t, n) { + return Ir(this, void 0, void 0, function () { + var a, i; + return Ar(this, function (s) { + switch (s.label) { + case 0: + return [4, this.getNetwork()]; + case 1: + return ( + s.sent(), + [ + 4, + (0, Di.resolveProperties)({ + address: this._getAddress(t), + blockTag: this._getBlockTag(n), + }), + ] + ); + case 2: + return (a = s.sent()), [4, this.perform("getBalance", a)]; + case 3: + i = s.sent(); + try { + return [2, Io.BigNumber.from(i)]; + } catch (c) { + return [ + 2, + Xr.throwError( + "bad result from backend", + nn.Logger.errors.SERVER_ERROR, + { + method: "getBalance", + params: a, + result: i, + error: c, + } + ), + ]; + } + return [2]; + } + }); + }); + }), + (e.prototype.getTransactionCount = function (t, n) { + return Ir(this, void 0, void 0, function () { + var a, i; + return Ar(this, function (s) { + switch (s.label) { + case 0: + return [4, this.getNetwork()]; + case 1: + return ( + s.sent(), + [ + 4, + (0, Di.resolveProperties)({ + address: this._getAddress(t), + blockTag: this._getBlockTag(n), + }), + ] + ); + case 2: + return ( + (a = s.sent()), + [4, this.perform("getTransactionCount", a)] + ); + case 3: + i = s.sent(); + try { + return [2, Io.BigNumber.from(i).toNumber()]; + } catch (c) { + return [ + 2, + Xr.throwError( + "bad result from backend", + nn.Logger.errors.SERVER_ERROR, + { + method: "getTransactionCount", + params: a, + result: i, + error: c, + } + ), + ]; + } + return [2]; + } + }); + }); + }), + (e.prototype.getCode = function (t, n) { + return Ir(this, void 0, void 0, function () { + var a, i; + return Ar(this, function (s) { + switch (s.label) { + case 0: + return [4, this.getNetwork()]; + case 1: + return ( + s.sent(), + [ + 4, + (0, Di.resolveProperties)({ + address: this._getAddress(t), + blockTag: this._getBlockTag(n), + }), + ] + ); + case 2: + return (a = s.sent()), [4, this.perform("getCode", a)]; + case 3: + i = s.sent(); + try { + return [2, (0, mr.hexlify)(i)]; + } catch (c) { + return [ + 2, + Xr.throwError( + "bad result from backend", + nn.Logger.errors.SERVER_ERROR, + { method: "getCode", params: a, result: i, error: c } + ), + ]; + } + return [2]; + } + }); + }); + }), + (e.prototype.getStorageAt = function (t, n, a) { + return Ir(this, void 0, void 0, function () { + var i, s; + return Ar(this, function (c) { + switch (c.label) { + case 0: + return [4, this.getNetwork()]; + case 1: + return ( + c.sent(), + [ + 4, + (0, Di.resolveProperties)({ + address: this._getAddress(t), + blockTag: this._getBlockTag(a), + position: Promise.resolve(n).then(function (l) { + return (0, mr.hexValue)(l); + }), + }), + ] + ); + case 2: + return (i = c.sent()), [4, this.perform("getStorageAt", i)]; + case 3: + s = c.sent(); + try { + return [2, (0, mr.hexlify)(s)]; + } catch (l) { + return [ + 2, + Xr.throwError( + "bad result from backend", + nn.Logger.errors.SERVER_ERROR, + { + method: "getStorageAt", + params: i, + result: s, + error: l, + } + ), + ]; + } + return [2]; + } + }); + }); + }), + (e.prototype._wrapTransaction = function (t, n, a) { + var i = this; + if (n != null && (0, mr.hexDataLength)(n) !== 32) + throw new Error("invalid response - sendTransaction"); + var s = t; + return ( + n != null && + t.hash !== n && + Xr.throwError( + "Transaction hash mismatch from Provider.sendTransaction.", + nn.Logger.errors.UNKNOWN_ERROR, + { expectedHash: t.hash, returnedHash: n } + ), + (s.wait = function (c, l) { + return Ir(i, void 0, void 0, function () { + var d, m; + return Ar(this, function (w) { + switch (w.label) { + case 0: + return ( + c == null && (c = 1), + l == null && (l = 0), + (d = void 0), + c !== 0 && + a != null && + (d = { + data: t.data, + from: t.from, + nonce: t.nonce, + to: t.to, + value: t.value, + startBlock: a, + }), + [4, this._waitForTransaction(t.hash, c, l, d)] + ); + case 1: + return ( + (m = w.sent()), + m == null && c === 0 + ? [2, null] + : ((this._emitted["t:" + t.hash] = m.blockNumber), + m.status === 0 && + Xr.throwError( + "transaction failed", + nn.Logger.errors.CALL_EXCEPTION, + { + transactionHash: t.hash, + transaction: t, + receipt: m, + } + ), + [2, m]) + ); + } + }); + }); + }), + s + ); + }), + (e.prototype.sendTransaction = function (t) { + return Ir(this, void 0, void 0, function () { + var n, a, i, s, c; + return Ar(this, function (l) { + switch (l.label) { + case 0: + return [4, this.getNetwork()]; + case 1: + return ( + l.sent(), + [ + 4, + Promise.resolve(t).then(function (d) { + return (0, mr.hexlify)(d); + }), + ] + ); + case 2: + return ( + (n = l.sent()), + (a = this.formatter.transaction(t)), + a.confirmations == null && (a.confirmations = 0), + [ + 4, + this._getInternalBlockNumber( + 100 + 2 * this.pollingInterval + ), + ] + ); + case 3: + (i = l.sent()), (l.label = 4); + case 4: + return ( + l.trys.push([4, 6, , 7]), + [ + 4, + this.perform("sendTransaction", { + signedTransaction: n, + }), + ] + ); + case 5: + return (s = l.sent()), [2, this._wrapTransaction(a, s, i)]; + case 6: + throw ( + ((c = l.sent()), + (c.transaction = a), + (c.transactionHash = a.hash), + c) + ); + case 7: + return [2]; + } + }); + }); + }), + (e.prototype._getTransactionRequest = function (t) { + return Ir(this, void 0, void 0, function () { + var n, + a, + i, + s, + c = this; + return Ar(this, function (l) { + switch (l.label) { + case 0: + return [4, t]; + case 1: + return ( + (n = l.sent()), + (a = {}), + ["from", "to"].forEach(function (d) { + n[d] != null && + (a[d] = Promise.resolve(n[d]).then(function (m) { + return m ? c._getAddress(m) : null; + })); + }), + [ + "gasLimit", + "gasPrice", + "maxFeePerGas", + "maxPriorityFeePerGas", + "value", + ].forEach(function (d) { + n[d] != null && + (a[d] = Promise.resolve(n[d]).then(function (m) { + return m ? Io.BigNumber.from(m) : null; + })); + }), + ["type"].forEach(function (d) { + n[d] != null && + (a[d] = Promise.resolve(n[d]).then(function (m) { + return m ?? null; + })); + }), + n.accessList && + (a.accessList = this.formatter.accessList( + n.accessList + )), + ["data"].forEach(function (d) { + n[d] != null && + (a[d] = Promise.resolve(n[d]).then(function (m) { + return m ? (0, mr.hexlify)(m) : null; + })); + }), + (s = (i = this.formatter).transactionRequest), + [4, (0, Di.resolveProperties)(a)] + ); + case 2: + return [2, s.apply(i, [l.sent()])]; + } + }); + }); + }), + (e.prototype._getFilter = function (t) { + return Ir(this, void 0, void 0, function () { + var n, + a, + i, + s = this; + return Ar(this, function (c) { + switch (c.label) { + case 0: + return [4, t]; + case 1: + return ( + (t = c.sent()), + (n = {}), + t.address != null && + (n.address = this._getAddress(t.address)), + ["blockHash", "topics"].forEach(function (l) { + t[l] != null && (n[l] = t[l]); + }), + ["fromBlock", "toBlock"].forEach(function (l) { + t[l] != null && (n[l] = s._getBlockTag(t[l])); + }), + (i = (a = this.formatter).filter), + [4, (0, Di.resolveProperties)(n)] + ); + case 2: + return [2, i.apply(a, [c.sent()])]; + } + }); + }); + }), + (e.prototype._call = function (t, n, a) { + return Ir(this, void 0, void 0, function () { + var i, s, c, l, d, m, w, C, I, k, O, D, W, H, j, V; + return Ar(this, function (te) { + switch (te.label) { + case 0: + return ( + a >= Y6t && + Xr.throwError( + "CCIP read exceeded maximum redirections", + nn.Logger.errors.SERVER_ERROR, + { redirects: a, transaction: t } + ), + (i = t.to), + [4, this.perform("call", { transaction: t, blockTag: n })] + ); + case 1: + if ( + ((s = te.sent()), + !( + a >= 0 && + n === "latest" && + i != null && + s.substring(0, 10) === "0x556f1830" && + (0, mr.hexDataLength)(s) % 32 === 4 + )) + ) + return [3, 5]; + te.label = 2; + case 2: + for ( + te.trys.push([2, 4, , 5]), + c = (0, mr.hexDataSlice)(s, 4), + l = (0, mr.hexDataSlice)(c, 0, 32), + Io.BigNumber.from(l).eq(i) || + Xr.throwError( + "CCIP Read sender did not match", + nn.Logger.errors.CALL_EXCEPTION, + { + name: "OffchainLookup", + signature: + "OffchainLookup(address,string[],bytes,bytes4,bytes)", + transaction: t, + data: s, + } + ), + d = [], + m = Io.BigNumber.from( + (0, mr.hexDataSlice)(c, 32, 64) + ).toNumber(), + w = Io.BigNumber.from( + (0, mr.hexDataSlice)(c, m, m + 32) + ).toNumber(), + C = (0, mr.hexDataSlice)(c, m + 32), + I = 0; + I < w; + I++ + ) + (k = sk(C, I * 32)), + k == null && + Xr.throwError( + "CCIP Read contained corrupt URL string", + nn.Logger.errors.CALL_EXCEPTION, + { + name: "OffchainLookup", + signature: + "OffchainLookup(address,string[],bytes,bytes4,bytes)", + transaction: t, + data: s, + } + ), + d.push(k); + return ( + (O = p5(c, 64)), + Io.BigNumber.from( + (0, mr.hexDataSlice)(c, 100, 128) + ).isZero() || + Xr.throwError( + "CCIP Read callback selector included junk", + nn.Logger.errors.CALL_EXCEPTION, + { + name: "OffchainLookup", + signature: + "OffchainLookup(address,string[],bytes,bytes4,bytes)", + transaction: t, + data: s, + } + ), + (D = (0, mr.hexDataSlice)(c, 96, 100)), + (W = p5(c, 128)), + [4, this.ccipReadFetch(t, O, d)] + ); + case 3: + return ( + (H = te.sent()), + H == null && + Xr.throwError( + "CCIP Read disabled or provided no URLs", + nn.Logger.errors.CALL_EXCEPTION, + { + name: "OffchainLookup", + signature: + "OffchainLookup(address,string[],bytes,bytes4,bytes)", + transaction: t, + data: s, + } + ), + (j = { + to: i, + data: (0, mr.hexConcat)([D, R0e([H, W])]), + }), + [2, this._call(j, n, a + 1)] + ); + case 4: + if ( + ((V = te.sent()), + V.code === nn.Logger.errors.SERVER_ERROR) + ) + throw V; + return [3, 5]; + case 5: + try { + return [2, (0, mr.hexlify)(s)]; + } catch ($) { + return [ + 2, + Xr.throwError( + "bad result from backend", + nn.Logger.errors.SERVER_ERROR, + { + method: "call", + params: { transaction: t, blockTag: n }, + result: s, + error: $, + } + ), + ]; + } + return [2]; + } + }); + }); + }), + (e.prototype.call = function (t, n) { + return Ir(this, void 0, void 0, function () { + var a; + return Ar(this, function (i) { + switch (i.label) { + case 0: + return [4, this.getNetwork()]; + case 1: + return ( + i.sent(), + [ + 4, + (0, Di.resolveProperties)({ + transaction: this._getTransactionRequest(t), + blockTag: this._getBlockTag(n), + ccipReadEnabled: Promise.resolve(t.ccipReadEnabled), + }), + ] + ); + case 2: + return ( + (a = i.sent()), + [ + 2, + this._call( + a.transaction, + a.blockTag, + a.ccipReadEnabled ? 0 : -1 + ), + ] + ); + } + }); + }); + }), + (e.prototype.estimateGas = function (t) { + return Ir(this, void 0, void 0, function () { + var n, a; + return Ar(this, function (i) { + switch (i.label) { + case 0: + return [4, this.getNetwork()]; + case 1: + return ( + i.sent(), + [ + 4, + (0, Di.resolveProperties)({ + transaction: this._getTransactionRequest(t), + }), + ] + ); + case 2: + return (n = i.sent()), [4, this.perform("estimateGas", n)]; + case 3: + a = i.sent(); + try { + return [2, Io.BigNumber.from(a)]; + } catch (s) { + return [ + 2, + Xr.throwError( + "bad result from backend", + nn.Logger.errors.SERVER_ERROR, + { + method: "estimateGas", + params: n, + result: a, + error: s, + } + ), + ]; + } + return [2]; + } + }); + }); + }), + (e.prototype._getAddress = function (t) { + return Ir(this, void 0, void 0, function () { + var n; + return Ar(this, function (a) { + switch (a.label) { + case 0: + return [4, t]; + case 1: + return ( + (t = a.sent()), + typeof t != "string" && + Xr.throwArgumentError( + "invalid address or ENS name", + "name", + t + ), + [4, this.resolveName(t)] + ); + case 2: + return ( + (n = a.sent()), + n == null && + Xr.throwError( + "ENS name not configured", + nn.Logger.errors.UNSUPPORTED_OPERATION, + { + operation: "resolveName(" + JSON.stringify(t) + ")", + } + ), + [2, n] + ); + } + }); + }); + }), + (e.prototype._getBlock = function (t, n) { + return Ir(this, void 0, void 0, function () { + var a, + i, + s, + c, + l = this; + return Ar(this, function (d) { + switch (d.label) { + case 0: + return [4, this.getNetwork()]; + case 1: + return d.sent(), [4, t]; + case 2: + return ( + (t = d.sent()), + (a = -128), + (i = { includeTransactions: !!n }), + (0, mr.isHexString)(t, 32) + ? ((i.blockHash = t), [3, 6]) + : [3, 3] + ); + case 3: + return ( + d.trys.push([3, 5, , 6]), + (s = i), + [4, this._getBlockTag(t)] + ); + case 4: + return ( + (s.blockTag = d.sent()), + (0, mr.isHexString)(i.blockTag) && + (a = parseInt(i.blockTag.substring(2), 16)), + [3, 6] + ); + case 5: + return ( + (c = d.sent()), + Xr.throwArgumentError( + "invalid block hash or block tag", + "blockHashOrBlockTag", + t + ), + [3, 6] + ); + case 6: + return [ + 2, + (0, Pv.poll)( + function () { + return Ir(l, void 0, void 0, function () { + var m, + w, + C, + I, + k, + O, + D = this; + return Ar(this, function (W) { + switch (W.label) { + case 0: + return [4, this.perform("getBlock", i)]; + case 1: + if (((m = W.sent()), m == null)) + return i.blockHash != null && + this._emitted["b:" + i.blockHash] == null + ? [2, null] + : i.blockTag != null && + a > this._emitted.block + ? [2, null] + : [2, void 0]; + if (!n) return [3, 8]; + (w = null), (C = 0), (W.label = 2); + case 2: + return C < m.transactions.length + ? ((I = m.transactions[C]), + I.blockNumber != null + ? [3, 3] + : ((I.confirmations = 0), [3, 6])) + : [3, 7]; + case 3: + return I.confirmations != null + ? [3, 6] + : w != null + ? [3, 5] + : [ + 4, + this._getInternalBlockNumber( + 100 + 2 * this.pollingInterval + ), + ]; + case 4: + (w = W.sent()), (W.label = 5); + case 5: + (k = w - I.blockNumber + 1), + k <= 0 && (k = 1), + (I.confirmations = k), + (W.label = 6); + case 6: + return C++, [3, 2]; + case 7: + return ( + (O = + this.formatter.blockWithTransactions(m)), + (O.transactions = O.transactions.map( + function (H) { + return D._wrapTransaction(H); + } + )), + [2, O] + ); + case 8: + return [2, this.formatter.block(m)]; + } + }); + }); + }, + { oncePoll: this } + ), + ]; + } + }); + }); + }), + (e.prototype.getBlock = function (t) { + return this._getBlock(t, !1); + }), + (e.prototype.getBlockWithTransactions = function (t) { + return this._getBlock(t, !0); + }), + (e.prototype.getTransaction = function (t) { + return Ir(this, void 0, void 0, function () { + var n, + a = this; + return Ar(this, function (i) { + switch (i.label) { + case 0: + return [4, this.getNetwork()]; + case 1: + return i.sent(), [4, t]; + case 2: + return ( + (t = i.sent()), + (n = { transactionHash: this.formatter.hash(t, !0) }), + [ + 2, + (0, Pv.poll)( + function () { + return Ir(a, void 0, void 0, function () { + var s, c, l, d; + return Ar(this, function (m) { + switch (m.label) { + case 0: + return [ + 4, + this.perform("getTransaction", n), + ]; + case 1: + return ( + (s = m.sent()), + s == null + ? this._emitted["t:" + t] == null + ? [2, null] + : [2, void 0] + : ((c = + this.formatter.transactionResponse( + s + )), + c.blockNumber != null + ? [3, 2] + : ((c.confirmations = 0), [3, 4])) + ); + case 2: + return c.confirmations != null + ? [3, 4] + : [ + 4, + this._getInternalBlockNumber( + 100 + 2 * this.pollingInterval + ), + ]; + case 3: + (l = m.sent()), + (d = l - c.blockNumber + 1), + d <= 0 && (d = 1), + (c.confirmations = d), + (m.label = 4); + case 4: + return [2, this._wrapTransaction(c)]; + } + }); + }); + }, + { oncePoll: this } + ), + ] + ); + } + }); + }); + }), + (e.prototype.getTransactionReceipt = function (t) { + return Ir(this, void 0, void 0, function () { + var n, + a = this; + return Ar(this, function (i) { + switch (i.label) { + case 0: + return [4, this.getNetwork()]; + case 1: + return i.sent(), [4, t]; + case 2: + return ( + (t = i.sent()), + (n = { transactionHash: this.formatter.hash(t, !0) }), + [ + 2, + (0, Pv.poll)( + function () { + return Ir(a, void 0, void 0, function () { + var s, c, l, d; + return Ar(this, function (m) { + switch (m.label) { + case 0: + return [ + 4, + this.perform("getTransactionReceipt", n), + ]; + case 1: + return ( + (s = m.sent()), + s == null + ? this._emitted["t:" + t] == null + ? [2, null] + : [2, void 0] + : s.blockHash == null + ? [2, void 0] + : ((c = this.formatter.receipt(s)), + c.blockNumber != null + ? [3, 2] + : ((c.confirmations = 0), [3, 4])) + ); + case 2: + return c.confirmations != null + ? [3, 4] + : [ + 4, + this._getInternalBlockNumber( + 100 + 2 * this.pollingInterval + ), + ]; + case 3: + (l = m.sent()), + (d = l - c.blockNumber + 1), + d <= 0 && (d = 1), + (c.confirmations = d), + (m.label = 4); + case 4: + return [2, c]; + } + }); + }); + }, + { oncePoll: this } + ), + ] + ); + } + }); + }); + }), + (e.prototype.getLogs = function (t) { + return Ir(this, void 0, void 0, function () { + var n, a; + return Ar(this, function (i) { + switch (i.label) { + case 0: + return [4, this.getNetwork()]; + case 1: + return ( + i.sent(), + [ + 4, + (0, Di.resolveProperties)({ + filter: this._getFilter(t), + }), + ] + ); + case 2: + return (n = i.sent()), [4, this.perform("getLogs", n)]; + case 3: + return ( + (a = i.sent()), + a.forEach(function (s) { + s.removed == null && (s.removed = !1); + }), + [ + 2, + x0e.Formatter.arrayOf( + this.formatter.filterLog.bind(this.formatter) + )(a), + ] + ); + } + }); + }); + }), + (e.prototype.getEtherPrice = function () { + return Ir(this, void 0, void 0, function () { + return Ar(this, function (t) { + switch (t.label) { + case 0: + return [4, this.getNetwork()]; + case 1: + return t.sent(), [2, this.perform("getEtherPrice", {})]; + } + }); + }); + }), + (e.prototype._getBlockTag = function (t) { + return Ir(this, void 0, void 0, function () { + var n; + return Ar(this, function (a) { + switch (a.label) { + case 0: + return [4, t]; + case 1: + return ( + (t = a.sent()), + typeof t == "number" && t < 0 + ? (t % 1 && + Xr.throwArgumentError( + "invalid BlockTag", + "blockTag", + t + ), + [ + 4, + this._getInternalBlockNumber( + 100 + 2 * this.pollingInterval + ), + ]) + : [3, 3] + ); + case 2: + return ( + (n = a.sent()), + (n += t), + n < 0 && (n = 0), + [2, this.formatter.blockTag(n)] + ); + case 3: + return [2, this.formatter.blockTag(t)]; + } + }); + }); + }), + (e.prototype.getResolver = function (t) { + return Ir(this, void 0, void 0, function () { + var n, a, i, s; + return Ar(this, function (c) { + switch (c.label) { + case 0: + (n = t), (c.label = 1); + case 1: + return n === "" || n === "." + ? [2, null] + : t !== "eth" && n === "eth" + ? [2, null] + : [4, this._getResolver(n, "getResolver")]; + case 2: + return ( + (a = c.sent()), + a == null + ? [3, 5] + : ((i = new aU(this, a, t)), + (s = n !== t), + s ? [4, i.supportsWildcard()] : [3, 4]) + ); + case 3: + (s = !c.sent()), (c.label = 4); + case 4: + return s ? [2, null] : [2, i]; + case 5: + return (n = n.split(".").slice(1).join(".")), [3, 1]; + case 6: + return [2]; + } + }); + }); + }), + (e.prototype._getResolver = function (t, n) { + return Ir(this, void 0, void 0, function () { + var a, i, s; + return Ar(this, function (c) { + switch (c.label) { + case 0: + return n == null && (n = "ENS"), [4, this.getNetwork()]; + case 1: + (a = c.sent()), + a.ensAddress || + Xr.throwError( + "network does not support ENS", + nn.Logger.errors.UNSUPPORTED_OPERATION, + { operation: n, network: a.name } + ), + (c.label = 2); + case 2: + return ( + c.trys.push([2, 4, , 5]), + [ + 4, + this.call({ + to: a.ensAddress, + data: "0x0178b8bf" + (0, d5.namehash)(t).substring(2), + }), + ] + ); + case 3: + return (i = c.sent()), [2, this.formatter.callAddress(i)]; + case 4: + return (s = c.sent()), [3, 5]; + case 5: + return [2, null]; + } + }); + }); + }), + (e.prototype.resolveName = function (t) { + return Ir(this, void 0, void 0, function () { + var n; + return Ar(this, function (a) { + switch (a.label) { + case 0: + return [4, t]; + case 1: + t = a.sent(); + try { + return [2, Promise.resolve(this.formatter.address(t))]; + } catch (i) { + if ((0, mr.isHexString)(t)) throw i; + } + return ( + typeof t != "string" && + Xr.throwArgumentError("invalid ENS name", "name", t), + [4, this.getResolver(t)] + ); + case 2: + return (n = a.sent()), n ? [4, n.getAddress()] : [2, null]; + case 3: + return [2, a.sent()]; + } + }); + }); + }), + (e.prototype.lookupAddress = function (t) { + return Ir(this, void 0, void 0, function () { + var n, a, i, s, c; + return Ar(this, function (l) { + switch (l.label) { + case 0: + return [4, t]; + case 1: + return ( + (t = l.sent()), + (t = this.formatter.address(t)), + (n = t.substring(2).toLowerCase() + ".addr.reverse"), + [4, this._getResolver(n, "lookupAddress")] + ); + case 2: + return ( + (a = l.sent()), + a == null + ? [2, null] + : ((s = sk), + [ + 4, + this.call({ + to: a, + data: + "0x691f3431" + (0, d5.namehash)(n).substring(2), + }), + ]) + ); + case 3: + return ( + (i = s.apply(void 0, [l.sent(), 0])), + [4, this.resolveName(i)] + ); + case 4: + return (c = l.sent()), c != t ? [2, null] : [2, i]; + } + }); + }); + }), + (e.prototype.getAvatar = function (t) { + return Ir(this, void 0, void 0, function () { + var n, a, i, s, c, l, d, m, w, C; + return Ar(this, function (I) { + switch (I.label) { + case 0: + return ( + (n = null), + (0, mr.isHexString)(t) + ? ((a = this.formatter.address(t)), + (i = a.substring(2).toLowerCase() + ".addr.reverse"), + [4, this._getResolver(i, "getAvatar")]) + : [3, 10] + ); + case 1: + if (((s = I.sent()), !s)) return [2, null]; + (n = new aU(this, s, i)), (I.label = 2); + case 2: + return I.trys.push([2, 4, , 5]), [4, n.getAvatar()]; + case 3: + return (c = I.sent()), c ? [2, c.url] : [3, 5]; + case 4: + if ( + ((l = I.sent()), + l.code !== nn.Logger.errors.CALL_EXCEPTION) + ) + throw l; + return [3, 5]; + case 5: + return ( + I.trys.push([5, 8, , 9]), + (m = sk), + [ + 4, + this.call({ + to: s, + data: "0x691f3431" + (0, d5.namehash)(i).substring(2), + }), + ] + ); + case 6: + return ( + (d = m.apply(void 0, [I.sent(), 0])), + [4, this.getResolver(d)] + ); + case 7: + return (n = I.sent()), [3, 9]; + case 8: + if ( + ((w = I.sent()), + w.code !== nn.Logger.errors.CALL_EXCEPTION) + ) + throw w; + return [2, null]; + case 9: + return [3, 12]; + case 10: + return [4, this.getResolver(t)]; + case 11: + if (((n = I.sent()), !n)) return [2, null]; + I.label = 12; + case 12: + return [4, n.getAvatar()]; + case 13: + return (C = I.sent()), C == null ? [2, null] : [2, C.url]; + } + }); + }); + }), + (e.prototype.perform = function (t, n) { + return Xr.throwError( + t + " not implemented", + nn.Logger.errors.NOT_IMPLEMENTED, + { operation: t } + ); + }), + (e.prototype._startEvent = function (t) { + this.polling = + this._events.filter(function (n) { + return n.pollable(); + }).length > 0; + }), + (e.prototype._stopEvent = function (t) { + this.polling = + this._events.filter(function (n) { + return n.pollable(); + }).length > 0; + }), + (e.prototype._addEventListener = function (t, n, a) { + var i = new M0e(Mv(t), n, a); + return this._events.push(i), this._startEvent(i), this; + }), + (e.prototype.on = function (t, n) { + return this._addEventListener(t, n, !1); + }), + (e.prototype.once = function (t, n) { + return this._addEventListener(t, n, !0); + }), + (e.prototype.emit = function (t) { + for (var n = this, a = [], i = 1; i < arguments.length; i++) + a[i - 1] = arguments[i]; + var s = !1, + c = [], + l = Mv(t); + return ( + (this._events = this._events.filter(function (d) { + return d.tag !== l + ? !0 + : (setTimeout(function () { + d.listener.apply(n, a); + }, 0), + (s = !0), + d.once ? (c.push(d), !1) : !0); + })), + c.forEach(function (d) { + n._stopEvent(d); + }), + s + ); + }), + (e.prototype.listenerCount = function (t) { + if (!t) return this._events.length; + var n = Mv(t); + return this._events.filter(function (a) { + return a.tag === n; + }).length; + }), + (e.prototype.listeners = function (t) { + if (t == null) + return this._events.map(function (a) { + return a.listener; + }); + var n = Mv(t); + return this._events + .filter(function (a) { + return a.tag === n; + }) + .map(function (a) { + return a.listener; + }); + }), + (e.prototype.off = function (t, n) { + var a = this; + if (n == null) return this.removeAllListeners(t); + var i = [], + s = !1, + c = Mv(t); + return ( + (this._events = this._events.filter(function (l) { + return l.tag !== c || l.listener != n || s + ? !0 + : ((s = !0), i.push(l), !1); + })), + i.forEach(function (l) { + a._stopEvent(l); + }), + this + ); + }), + (e.prototype.removeAllListeners = function (t) { + var n = this, + a = []; + if (t == null) (a = this._events), (this._events = []); + else { + var i = Mv(t); + this._events = this._events.filter(function (s) { + return s.tag !== i ? !0 : (a.push(s), !1); + }); + } + return ( + a.forEach(function (s) { + n._stopEvent(s); + }), + this + ); + }), + e + ); + })(S0e.Provider); + Ao.BaseProvider = eEt; + }); + var Bv = N((Ll) => { + "use strict"; + _(); + x(); + var oU = + (Ll && Ll.__extends) || + (function () { + var r = function (e, t) { + return ( + (r = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (n, a) { + n.__proto__ = a; + }) || + function (n, a) { + for (var i in a) + Object.prototype.hasOwnProperty.call(a, i) && (n[i] = a[i]); + }), + r(e, t) + ); + }; + return function (e, t) { + if (typeof t != "function" && t !== null) + throw new TypeError( + "Class extends value " + + String(t) + + " is not a constructor or null" + ); + r(e, t); + function n() { + this.constructor = e; + } + e.prototype = + t === null + ? Object.create(t) + : ((n.prototype = t.prototype), new n()); + }; + })(), + ff = + (Ll && Ll.__awaiter) || + function (r, e, t, n) { + function a(i) { + return i instanceof t + ? i + : new t(function (s) { + s(i); + }); + } + return new (t || (t = Promise))(function (i, s) { + function c(m) { + try { + d(n.next(m)); + } catch (w) { + s(w); + } + } + function l(m) { + try { + d(n.throw(m)); + } catch (w) { + s(w); + } + } + function d(m) { + m.done ? i(m.value) : a(m.value).then(c, l); + } + d((n = n.apply(r, e || [])).next()); + }); + }, + mf = + (Ll && Ll.__generator) || + function (r, e) { + var t = { + label: 0, + sent: function () { + if (i[0] & 1) throw i[1]; + return i[1]; + }, + trys: [], + ops: [], + }, + n, + a, + i, + s; + return ( + (s = { next: c(0), throw: c(1), return: c(2) }), + typeof Symbol == "function" && + (s[Symbol.iterator] = function () { + return this; + }), + s + ); + function c(d) { + return function (m) { + return l([d, m]); + }; + } + function l(d) { + if (n) throw new TypeError("Generator is already executing."); + for (; t; ) + try { + if ( + ((n = 1), + a && + (i = + d[0] & 2 + ? a.return + : d[0] + ? a.throw || ((i = a.return) && i.call(a), 0) + : a.next) && + !(i = i.call(a, d[1])).done) + ) + return i; + switch (((a = 0), i && (d = [d[0] & 2, i.value]), d[0])) { + case 0: + case 1: + i = d; + break; + case 4: + return t.label++, { value: d[1], done: !1 }; + case 5: + t.label++, (a = d[1]), (d = [0]); + continue; + case 7: + (d = t.ops.pop()), t.trys.pop(); + continue; + default: + if ( + ((i = t.trys), + !(i = i.length > 0 && i[i.length - 1]) && + (d[0] === 6 || d[0] === 2)) + ) { + t = 0; + continue; + } + if (d[0] === 3 && (!i || (d[1] > i[0] && d[1] < i[3]))) { + t.label = d[1]; + break; + } + if (d[0] === 6 && t.label < i[1]) { + (t.label = i[1]), (i = d); + break; + } + if (i && t.label < i[2]) { + (t.label = i[2]), t.ops.push(d); + break; + } + i[2] && t.ops.pop(), t.trys.pop(); + continue; + } + d = e.call(r, t); + } catch (m) { + (d = [6, m]), (a = 0); + } finally { + n = i = 0; + } + if (d[0] & 5) throw d[1]; + return { value: d[0] ? d[1] : void 0, done: !0 }; + } + }; + Object.defineProperty(Ll, "__esModule", { value: !0 }); + Ll.JsonRpcProvider = Ll.JsonRpcSigner = void 0; + var tEt = Ux(), + iU = zi(), + Rv = Dr(), + B0e = Ey(), + qi = ja(), + N0e = Ki(), + rEt = lf(), + L0e = hg(), + ss = ir(), + nEt = Zs(), + Ji = new ss.Logger(nEt.version), + aEt = h5(), + iEt = ["call", "estimateGas"]; + function m5(r, e) { + if (r == null) return null; + if (typeof r.message == "string" && r.message.match("reverted")) { + var t = (0, Rv.isHexString)(r.data) ? r.data : null; + if (!e || t) return { message: r.message, data: t }; + } + if (typeof r == "object") { + for (var n in r) { + var a = m5(r[n], e); + if (a) return a; + } + return null; + } + if (typeof r == "string") + try { + return m5(JSON.parse(r), e); + } catch {} + return null; + } + function D0e(r, e, t) { + var n = t.transaction || t.signedTransaction; + if (r === "call") { + var a = m5(e, !0); + if (a) return a.data; + Ji.throwError( + "missing revert data in call exception; Transaction reverted without a reason string", + ss.Logger.errors.CALL_EXCEPTION, + { data: "0x", transaction: n, error: e } + ); + } + if (r === "estimateGas") { + var a = m5(e.body, !1); + a == null && (a = m5(e, !1)), + a && + Ji.throwError( + "cannot estimate gas; transaction may fail or may require manual gas limit", + ss.Logger.errors.UNPREDICTABLE_GAS_LIMIT, + { reason: a.message, method: r, transaction: n, error: e } + ); + } + var i = e.message; + throw ( + (e.code === ss.Logger.errors.SERVER_ERROR && + e.error && + typeof e.error.message == "string" + ? (i = e.error.message) + : typeof e.body == "string" + ? (i = e.body) + : typeof e.responseText == "string" && (i = e.responseText), + (i = (i || "").toLowerCase()), + i.match( + /insufficient funds|base fee exceeds gas limit|InsufficientFunds/i + ) && + Ji.throwError( + "insufficient funds for intrinsic transaction cost", + ss.Logger.errors.INSUFFICIENT_FUNDS, + { error: e, method: r, transaction: n } + ), + i.match(/nonce (is )?too low/i) && + Ji.throwError( + "nonce has already been used", + ss.Logger.errors.NONCE_EXPIRED, + { error: e, method: r, transaction: n } + ), + i.match( + /replacement transaction underpriced|transaction gas price.*too low/i + ) && + Ji.throwError( + "replacement fee too low", + ss.Logger.errors.REPLACEMENT_UNDERPRICED, + { error: e, method: r, transaction: n } + ), + i.match(/only replay-protected/i) && + Ji.throwError( + "legacy pre-eip-155 transactions not supported", + ss.Logger.errors.UNSUPPORTED_OPERATION, + { error: e, method: r, transaction: n } + ), + iEt.indexOf(r) >= 0 && + i.match( + /gas required exceeds allowance|always failing transaction|execution reverted|revert/ + ) && + Ji.throwError( + "cannot estimate gas; transaction may fail or may require manual gas limit", + ss.Logger.errors.UNPREDICTABLE_GAS_LIMIT, + { error: e, method: r, transaction: n } + ), + e) + ); + } + function O0e(r) { + return new Promise(function (e) { + setTimeout(e, r); + }); + } + function sEt(r) { + if (r.error) { + var e = new Error(r.error.message); + throw ((e.code = r.error.code), (e.data = r.error.data), e); + } + return r.result; + } + function f5(r) { + return r && r.toLowerCase(); + } + var sU = {}, + cU = (function (r) { + oU(e, r); + function e(t, n, a) { + var i = r.call(this) || this; + if (t !== sU) + throw new Error( + "do not call the JsonRpcSigner constructor directly; use provider.getSigner" + ); + return ( + (0, qi.defineReadOnly)(i, "provider", n), + a == null && (a = 0), + typeof a == "string" + ? ((0, qi.defineReadOnly)( + i, + "_address", + i.provider.formatter.address(a) + ), + (0, qi.defineReadOnly)(i, "_index", null)) + : typeof a == "number" + ? ((0, qi.defineReadOnly)(i, "_index", a), + (0, qi.defineReadOnly)(i, "_address", null)) + : Ji.throwArgumentError( + "invalid address or index", + "addressOrIndex", + a + ), + i + ); + } + return ( + (e.prototype.connect = function (t) { + return Ji.throwError( + "cannot alter JSON-RPC Signer connection", + ss.Logger.errors.UNSUPPORTED_OPERATION, + { operation: "connect" } + ); + }), + (e.prototype.connectUnchecked = function () { + return new oEt(sU, this.provider, this._address || this._index); + }), + (e.prototype.getAddress = function () { + var t = this; + return this._address + ? Promise.resolve(this._address) + : this.provider.send("eth_accounts", []).then(function (n) { + return ( + n.length <= t._index && + Ji.throwError( + "unknown account #" + t._index, + ss.Logger.errors.UNSUPPORTED_OPERATION, + { operation: "getAddress" } + ), + t.provider.formatter.address(n[t._index]) + ); + }); + }), + (e.prototype.sendUncheckedTransaction = function (t) { + var n = this; + t = (0, qi.shallowCopy)(t); + var a = this.getAddress().then(function (s) { + return s && (s = s.toLowerCase()), s; + }); + if (t.gasLimit == null) { + var i = (0, qi.shallowCopy)(t); + (i.from = a), (t.gasLimit = this.provider.estimateGas(i)); + } + return ( + t.to != null && + (t.to = Promise.resolve(t.to).then(function (s) { + return ff(n, void 0, void 0, function () { + var c; + return mf(this, function (l) { + switch (l.label) { + case 0: + return s == null + ? [2, null] + : [4, this.provider.resolveName(s)]; + case 1: + return ( + (c = l.sent()), + c == null && + Ji.throwArgumentError( + "provided ENS name resolves to null", + "tx.to", + s + ), + [2, c] + ); + } + }); + }); + })), + (0, qi.resolveProperties)({ + tx: (0, qi.resolveProperties)(t), + sender: a, + }).then(function (s) { + var c = s.tx, + l = s.sender; + c.from != null + ? c.from.toLowerCase() !== l && + Ji.throwArgumentError( + "from address mismatch", + "transaction", + t + ) + : (c.from = l); + var d = n.provider.constructor.hexlifyTransaction(c, { + from: !0, + }); + return n.provider.send("eth_sendTransaction", [d]).then( + function (m) { + return m; + }, + function (m) { + return ( + typeof m.message == "string" && + m.message.match(/user denied/i) && + Ji.throwError( + "user rejected transaction", + ss.Logger.errors.ACTION_REJECTED, + { action: "sendTransaction", transaction: c } + ), + D0e("sendTransaction", m, d) + ); + } + ); + }) + ); + }), + (e.prototype.signTransaction = function (t) { + return Ji.throwError( + "signing transactions is unsupported", + ss.Logger.errors.UNSUPPORTED_OPERATION, + { operation: "signTransaction" } + ); + }), + (e.prototype.sendTransaction = function (t) { + return ff(this, void 0, void 0, function () { + var n, + a, + i, + s = this; + return mf(this, function (c) { + switch (c.label) { + case 0: + return [ + 4, + this.provider._getInternalBlockNumber( + 100 + 2 * this.provider.pollingInterval + ), + ]; + case 1: + return ( + (n = c.sent()), [4, this.sendUncheckedTransaction(t)] + ); + case 2: + (a = c.sent()), (c.label = 3); + case 3: + return ( + c.trys.push([3, 5, , 6]), + [ + 4, + (0, L0e.poll)( + function () { + return ff(s, void 0, void 0, function () { + var l; + return mf(this, function (d) { + switch (d.label) { + case 0: + return [4, this.provider.getTransaction(a)]; + case 1: + return ( + (l = d.sent()), + l === null + ? [2, void 0] + : [ + 2, + this.provider._wrapTransaction( + l, + a, + n + ), + ] + ); + } + }); + }); + }, + { oncePoll: this.provider } + ), + ] + ); + case 4: + return [2, c.sent()]; + case 5: + throw ((i = c.sent()), (i.transactionHash = a), i); + case 6: + return [2]; + } + }); + }); + }), + (e.prototype.signMessage = function (t) { + return ff(this, void 0, void 0, function () { + var n, a, i; + return mf(this, function (s) { + switch (s.label) { + case 0: + return ( + (n = typeof t == "string" ? (0, N0e.toUtf8Bytes)(t) : t), + [4, this.getAddress()] + ); + case 1: + (a = s.sent()), (s.label = 2); + case 2: + return ( + s.trys.push([2, 4, , 5]), + [ + 4, + this.provider.send("personal_sign", [ + (0, Rv.hexlify)(n), + a.toLowerCase(), + ]), + ] + ); + case 3: + return [2, s.sent()]; + case 4: + throw ( + ((i = s.sent()), + typeof i.message == "string" && + i.message.match(/user denied/i) && + Ji.throwError( + "user rejected signing", + ss.Logger.errors.ACTION_REJECTED, + { action: "signMessage", from: a, messageData: t } + ), + i) + ); + case 5: + return [2]; + } + }); + }); + }), + (e.prototype._legacySignMessage = function (t) { + return ff(this, void 0, void 0, function () { + var n, a, i; + return mf(this, function (s) { + switch (s.label) { + case 0: + return ( + (n = typeof t == "string" ? (0, N0e.toUtf8Bytes)(t) : t), + [4, this.getAddress()] + ); + case 1: + (a = s.sent()), (s.label = 2); + case 2: + return ( + s.trys.push([2, 4, , 5]), + [ + 4, + this.provider.send("eth_sign", [ + a.toLowerCase(), + (0, Rv.hexlify)(n), + ]), + ] + ); + case 3: + return [2, s.sent()]; + case 4: + throw ( + ((i = s.sent()), + typeof i.message == "string" && + i.message.match(/user denied/i) && + Ji.throwError( + "user rejected signing", + ss.Logger.errors.ACTION_REJECTED, + { + action: "_legacySignMessage", + from: a, + messageData: t, + } + ), + i) + ); + case 5: + return [2]; + } + }); + }); + }), + (e.prototype._signTypedData = function (t, n, a) { + return ff(this, void 0, void 0, function () { + var i, + s, + c, + l = this; + return mf(this, function (d) { + switch (d.label) { + case 0: + return [ + 4, + B0e._TypedDataEncoder.resolveNames(t, n, a, function (m) { + return l.provider.resolveName(m); + }), + ]; + case 1: + return (i = d.sent()), [4, this.getAddress()]; + case 2: + (s = d.sent()), (d.label = 3); + case 3: + return ( + d.trys.push([3, 5, , 6]), + [ + 4, + this.provider.send("eth_signTypedData_v4", [ + s.toLowerCase(), + JSON.stringify( + B0e._TypedDataEncoder.getPayload( + i.domain, + n, + i.value + ) + ), + ]), + ] + ); + case 4: + return [2, d.sent()]; + case 5: + throw ( + ((c = d.sent()), + typeof c.message == "string" && + c.message.match(/user denied/i) && + Ji.throwError( + "user rejected signing", + ss.Logger.errors.ACTION_REJECTED, + { + action: "_signTypedData", + from: s, + messageData: { + domain: i.domain, + types: n, + value: i.value, + }, + } + ), + c) + ); + case 6: + return [2]; + } + }); + }); + }), + (e.prototype.unlock = function (t) { + return ff(this, void 0, void 0, function () { + var n, a; + return mf(this, function (i) { + switch (i.label) { + case 0: + return (n = this.provider), [4, this.getAddress()]; + case 1: + return ( + (a = i.sent()), + [ + 2, + n.send("personal_unlockAccount", [ + a.toLowerCase(), + t, + null, + ]), + ] + ); + } + }); + }); + }), + e + ); + })(tEt.Signer); + Ll.JsonRpcSigner = cU; + var oEt = (function (r) { + oU(e, r); + function e() { + return (r !== null && r.apply(this, arguments)) || this; + } + return ( + (e.prototype.sendTransaction = function (t) { + var n = this; + return this.sendUncheckedTransaction(t).then(function (a) { + return { + hash: a, + nonce: null, + gasLimit: null, + gasPrice: null, + data: null, + value: null, + chainId: null, + confirmations: 0, + from: null, + wait: function (i) { + return n.provider.waitForTransaction(a, i); + }, + }; + }); + }), + e + ); + })(cU), + cEt = { + chainId: !0, + data: !0, + gasLimit: !0, + gasPrice: !0, + nonce: !0, + to: !0, + value: !0, + type: !0, + accessList: !0, + maxFeePerGas: !0, + maxPriorityFeePerGas: !0, + }, + uEt = (function (r) { + oU(e, r); + function e(t, n) { + var a = this, + i = n; + return ( + i == null && + (i = new Promise(function (s, c) { + setTimeout(function () { + a.detectNetwork().then( + function (l) { + s(l); + }, + function (l) { + c(l); + } + ); + }, 0); + })), + (a = r.call(this, i) || this), + t || (t = (0, qi.getStatic)(a.constructor, "defaultUrl")()), + typeof t == "string" + ? (0, qi.defineReadOnly)( + a, + "connection", + Object.freeze({ url: t }) + ) + : (0, qi.defineReadOnly)( + a, + "connection", + Object.freeze((0, qi.shallowCopy)(t)) + ), + (a._nextId = 42), + a + ); + } + return ( + Object.defineProperty(e.prototype, "_cache", { + get: function () { + return ( + this._eventLoopCache == null && (this._eventLoopCache = {}), + this._eventLoopCache + ); + }, + enumerable: !1, + configurable: !0, + }), + (e.defaultUrl = function () { + return "http://localhost:8545"; + }), + (e.prototype.detectNetwork = function () { + var t = this; + return ( + this._cache.detectNetwork || + ((this._cache.detectNetwork = this._uncachedDetectNetwork()), + setTimeout(function () { + t._cache.detectNetwork = null; + }, 0)), + this._cache.detectNetwork + ); + }), + (e.prototype._uncachedDetectNetwork = function () { + return ff(this, void 0, void 0, function () { + var t, n, a, i; + return mf(this, function (s) { + switch (s.label) { + case 0: + return [4, O0e(0)]; + case 1: + s.sent(), (t = null), (s.label = 2); + case 2: + return ( + s.trys.push([2, 4, , 9]), + [4, this.send("eth_chainId", [])] + ); + case 3: + return (t = s.sent()), [3, 9]; + case 4: + (n = s.sent()), (s.label = 5); + case 5: + return ( + s.trys.push([5, 7, , 8]), + [4, this.send("net_version", [])] + ); + case 6: + return (t = s.sent()), [3, 8]; + case 7: + return (a = s.sent()), [3, 8]; + case 8: + return [3, 9]; + case 9: + if (t != null) { + i = (0, qi.getStatic)(this.constructor, "getNetwork"); + try { + return [2, i(iU.BigNumber.from(t).toNumber())]; + } catch (c) { + return [ + 2, + Ji.throwError( + "could not detect network", + ss.Logger.errors.NETWORK_ERROR, + { + chainId: t, + event: "invalidNetwork", + serverError: c, + } + ), + ]; + } + } + return [ + 2, + Ji.throwError( + "could not detect network", + ss.Logger.errors.NETWORK_ERROR, + { event: "noNetwork" } + ), + ]; + } + }); + }); + }), + (e.prototype.getSigner = function (t) { + return new cU(sU, this, t); + }), + (e.prototype.getUncheckedSigner = function (t) { + return this.getSigner(t).connectUnchecked(); + }), + (e.prototype.listAccounts = function () { + var t = this; + return this.send("eth_accounts", []).then(function (n) { + return n.map(function (a) { + return t.formatter.address(a); + }); + }); + }), + (e.prototype.send = function (t, n) { + var a = this, + i = { method: t, params: n, id: this._nextId++, jsonrpc: "2.0" }; + this.emit("debug", { + action: "request", + request: (0, qi.deepCopy)(i), + provider: this, + }); + var s = ["eth_chainId", "eth_blockNumber"].indexOf(t) >= 0; + if (s && this._cache[t]) return this._cache[t]; + var c = (0, L0e.fetchJson)( + this.connection, + JSON.stringify(i), + sEt + ).then( + function (l) { + return ( + a.emit("debug", { + action: "response", + request: i, + response: l, + provider: a, + }), + l + ); + }, + function (l) { + throw ( + (a.emit("debug", { + action: "response", + error: l, + request: i, + provider: a, + }), + l) + ); + } + ); + return ( + s && + ((this._cache[t] = c), + setTimeout(function () { + a._cache[t] = null; + }, 0)), + c + ); + }), + (e.prototype.prepareRequest = function (t, n) { + switch (t) { + case "getBlockNumber": + return ["eth_blockNumber", []]; + case "getGasPrice": + return ["eth_gasPrice", []]; + case "getBalance": + return ["eth_getBalance", [f5(n.address), n.blockTag]]; + case "getTransactionCount": + return ["eth_getTransactionCount", [f5(n.address), n.blockTag]]; + case "getCode": + return ["eth_getCode", [f5(n.address), n.blockTag]]; + case "getStorageAt": + return [ + "eth_getStorageAt", + [ + f5(n.address), + (0, Rv.hexZeroPad)(n.position, 32), + n.blockTag, + ], + ]; + case "sendTransaction": + return ["eth_sendRawTransaction", [n.signedTransaction]]; + case "getBlock": + return n.blockTag + ? [ + "eth_getBlockByNumber", + [n.blockTag, !!n.includeTransactions], + ] + : n.blockHash + ? [ + "eth_getBlockByHash", + [n.blockHash, !!n.includeTransactions], + ] + : null; + case "getTransaction": + return ["eth_getTransactionByHash", [n.transactionHash]]; + case "getTransactionReceipt": + return ["eth_getTransactionReceipt", [n.transactionHash]]; + case "call": { + var a = (0, qi.getStatic)( + this.constructor, + "hexlifyTransaction" + ); + return [ + "eth_call", + [a(n.transaction, { from: !0 }), n.blockTag], + ]; + } + case "estimateGas": { + var a = (0, qi.getStatic)( + this.constructor, + "hexlifyTransaction" + ); + return ["eth_estimateGas", [a(n.transaction, { from: !0 })]]; + } + case "getLogs": + return ( + n.filter && + n.filter.address != null && + (n.filter.address = f5(n.filter.address)), + ["eth_getLogs", [n.filter]] + ); + default: + break; + } + return null; + }), + (e.prototype.perform = function (t, n) { + return ff(this, void 0, void 0, function () { + var a, i, s, c; + return mf(this, function (l) { + switch (l.label) { + case 0: + return t === "call" || t === "estimateGas" + ? ((a = n.transaction), + a && + a.type != null && + iU.BigNumber.from(a.type).isZero() + ? a.maxFeePerGas == null && + a.maxPriorityFeePerGas == null + ? [4, this.getFeeData()] + : [3, 2] + : [3, 2]) + : [3, 2]; + case 1: + (i = l.sent()), + i.maxFeePerGas == null && + i.maxPriorityFeePerGas == null && + ((n = (0, qi.shallowCopy)(n)), + (n.transaction = (0, qi.shallowCopy)(a)), + delete n.transaction.type), + (l.label = 2); + case 2: + (s = this.prepareRequest(t, n)), + s == null && + Ji.throwError( + t + " not implemented", + ss.Logger.errors.NOT_IMPLEMENTED, + { operation: t } + ), + (l.label = 3); + case 3: + return l.trys.push([3, 5, , 6]), [4, this.send(s[0], s[1])]; + case 4: + return [2, l.sent()]; + case 5: + return (c = l.sent()), [2, D0e(t, c, n)]; + case 6: + return [2]; + } + }); + }); + }), + (e.prototype._startEvent = function (t) { + t.tag === "pending" && this._startPending(), + r.prototype._startEvent.call(this, t); + }), + (e.prototype._startPending = function () { + if (this._pendingFilter == null) { + var t = this, + n = this.send("eth_newPendingTransactionFilter", []); + (this._pendingFilter = n), + n + .then(function (a) { + function i() { + t.send("eth_getFilterChanges", [a]) + .then(function (s) { + if (t._pendingFilter != n) return null; + var c = Promise.resolve(); + return ( + s.forEach(function (l) { + (t._emitted["t:" + l.toLowerCase()] = "pending"), + (c = c.then(function () { + return t.getTransaction(l).then(function (d) { + return t.emit("pending", d), null; + }); + })); + }), + c.then(function () { + return O0e(1e3); + }) + ); + }) + .then(function () { + if (t._pendingFilter != n) { + t.send("eth_uninstallFilter", [a]); + return; + } + return ( + setTimeout(function () { + i(); + }, 0), + null + ); + }) + .catch(function (s) {}); + } + return i(), a; + }) + .catch(function (a) {}); + } + }), + (e.prototype._stopEvent = function (t) { + t.tag === "pending" && + this.listenerCount("pending") === 0 && + (this._pendingFilter = null), + r.prototype._stopEvent.call(this, t); + }), + (e.hexlifyTransaction = function (t, n) { + var a = (0, qi.shallowCopy)(cEt); + if (n) for (var i in n) n[i] && (a[i] = !0); + (0, qi.checkProperties)(t, a); + var s = {}; + return ( + [ + "chainId", + "gasLimit", + "gasPrice", + "type", + "maxFeePerGas", + "maxPriorityFeePerGas", + "nonce", + "value", + ].forEach(function (c) { + if (t[c] != null) { + var l = (0, Rv.hexValue)(iU.BigNumber.from(t[c])); + c === "gasLimit" && (c = "gas"), (s[c] = l); + } + }), + ["from", "to", "data"].forEach(function (c) { + t[c] != null && (s[c] = (0, Rv.hexlify)(t[c])); + }), + t.accessList && + (s.accessList = (0, rEt.accessListify)(t.accessList)), + s + ); + }), + e + ); + })(aEt.BaseProvider); + Ll.JsonRpcProvider = uEt; + }); + var W0e = N((Nv) => { + "use strict"; + _(); + x(); + Object.defineProperty(Nv, "__esModule", { value: !0 }); + Nv.WebSocket = void 0; + var q0e = ir(), + lEt = Zs(), + ok = null; + Nv.WebSocket = ok; + try { + if (((Nv.WebSocket = ok = WebSocket), ok == null)) + throw new Error("inject please"); + } catch { + (F0e = new q0e.Logger(lEt.version)), + (Nv.WebSocket = ok = + function () { + F0e.throwError( + "WebSockets not supported in this environment", + q0e.Logger.errors.UNSUPPORTED_OPERATION, + { operation: "new WebSocket()" } + ); + }); + } + var F0e; + }); + var uk = N((Jp) => { + "use strict"; + _(); + x(); + var dEt = + (Jp && Jp.__extends) || + (function () { + var r = function (e, t) { + return ( + (r = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (n, a) { + n.__proto__ = a; + }) || + function (n, a) { + for (var i in a) + Object.prototype.hasOwnProperty.call(a, i) && (n[i] = a[i]); + }), + r(e, t) + ); + }; + return function (e, t) { + if (typeof t != "function" && t !== null) + throw new TypeError( + "Class extends value " + + String(t) + + " is not a constructor or null" + ); + r(e, t); + function n() { + this.constructor = e; + } + e.prototype = + t === null + ? Object.create(t) + : ((n.prototype = t.prototype), new n()); + }; + })(), + uU = + (Jp && Jp.__awaiter) || + function (r, e, t, n) { + function a(i) { + return i instanceof t + ? i + : new t(function (s) { + s(i); + }); + } + return new (t || (t = Promise))(function (i, s) { + function c(m) { + try { + d(n.next(m)); + } catch (w) { + s(w); + } + } + function l(m) { + try { + d(n.throw(m)); + } catch (w) { + s(w); + } + } + function d(m) { + m.done ? i(m.value) : a(m.value).then(c, l); + } + d((n = n.apply(r, e || [])).next()); + }); + }, + lU = + (Jp && Jp.__generator) || + function (r, e) { + var t = { + label: 0, + sent: function () { + if (i[0] & 1) throw i[1]; + return i[1]; + }, + trys: [], + ops: [], + }, + n, + a, + i, + s; + return ( + (s = { next: c(0), throw: c(1), return: c(2) }), + typeof Symbol == "function" && + (s[Symbol.iterator] = function () { + return this; + }), + s + ); + function c(d) { + return function (m) { + return l([d, m]); + }; + } + function l(d) { + if (n) throw new TypeError("Generator is already executing."); + for (; t; ) + try { + if ( + ((n = 1), + a && + (i = + d[0] & 2 + ? a.return + : d[0] + ? a.throw || ((i = a.return) && i.call(a), 0) + : a.next) && + !(i = i.call(a, d[1])).done) + ) + return i; + switch (((a = 0), i && (d = [d[0] & 2, i.value]), d[0])) { + case 0: + case 1: + i = d; + break; + case 4: + return t.label++, { value: d[1], done: !1 }; + case 5: + t.label++, (a = d[1]), (d = [0]); + continue; + case 7: + (d = t.ops.pop()), t.trys.pop(); + continue; + default: + if ( + ((i = t.trys), + !(i = i.length > 0 && i[i.length - 1]) && + (d[0] === 6 || d[0] === 2)) + ) { + t = 0; + continue; + } + if (d[0] === 3 && (!i || (d[1] > i[0] && d[1] < i[3]))) { + t.label = d[1]; + break; + } + if (d[0] === 6 && t.label < i[1]) { + (t.label = i[1]), (i = d); + break; + } + if (i && t.label < i[2]) { + (t.label = i[2]), t.ops.push(d); + break; + } + i[2] && t.ops.pop(), t.trys.pop(); + continue; + } + d = e.call(r, t); + } catch (m) { + (d = [6, m]), (a = 0); + } finally { + n = i = 0; + } + if (d[0] & 5) throw d[1]; + return { value: d[0] ? d[1] : void 0, done: !0 }; + } + }; + Object.defineProperty(Jp, "__esModule", { value: !0 }); + Jp.WebSocketProvider = void 0; + var pEt = zi(), + Vm = ja(), + hEt = Bv(), + U0e = W0e(), + y5 = ir(), + fEt = Zs(), + ck = new y5.Logger(fEt.version), + mEt = 1, + yEt = (function (r) { + dEt(e, r); + function e(t, n) { + var a = this; + n === "any" && + ck.throwError( + "WebSocketProvider does not support 'any' network yet", + y5.Logger.errors.UNSUPPORTED_OPERATION, + { operation: "network:any" } + ), + typeof t == "string" + ? (a = r.call(this, t, n) || this) + : (a = r.call(this, "_websocket", n) || this), + (a._pollingInterval = -1), + (a._wsReady = !1), + typeof t == "string" + ? (0, Vm.defineReadOnly)( + a, + "_websocket", + new U0e.WebSocket(a.connection.url) + ) + : (0, Vm.defineReadOnly)(a, "_websocket", t), + (0, Vm.defineReadOnly)(a, "_requests", {}), + (0, Vm.defineReadOnly)(a, "_subs", {}), + (0, Vm.defineReadOnly)(a, "_subIds", {}), + (0, Vm.defineReadOnly)( + a, + "_detectNetwork", + r.prototype.detectNetwork.call(a) + ), + (a.websocket.onopen = function () { + (a._wsReady = !0), + Object.keys(a._requests).forEach(function (s) { + a.websocket.send(a._requests[s].payload); + }); + }), + (a.websocket.onmessage = function (s) { + var c = s.data, + l = JSON.parse(c); + if (l.id != null) { + var d = String(l.id), + m = a._requests[d]; + if ((delete a._requests[d], l.result !== void 0)) + m.callback(null, l.result), + a.emit("debug", { + action: "response", + request: JSON.parse(m.payload), + response: l.result, + provider: a, + }); + else { + var w = null; + l.error + ? ((w = new Error(l.error.message || "unknown error")), + (0, Vm.defineReadOnly)(w, "code", l.error.code || null), + (0, Vm.defineReadOnly)(w, "response", c)) + : (w = new Error("unknown error")), + m.callback(w, void 0), + a.emit("debug", { + action: "response", + error: w, + request: JSON.parse(m.payload), + provider: a, + }); + } + } else if (l.method === "eth_subscription") { + var C = a._subs[l.params.subscription]; + C && C.processFunc(l.params.result); + } else console.warn("this should not happen"); + }); + var i = setInterval(function () { + a.emit("poll"); + }, 1e3); + return i.unref && i.unref(), a; + } + return ( + Object.defineProperty(e.prototype, "websocket", { + get: function () { + return this._websocket; + }, + enumerable: !1, + configurable: !0, + }), + (e.prototype.detectNetwork = function () { + return this._detectNetwork; + }), + Object.defineProperty(e.prototype, "pollingInterval", { + get: function () { + return 0; + }, + set: function (t) { + ck.throwError( + "cannot set polling interval on WebSocketProvider", + y5.Logger.errors.UNSUPPORTED_OPERATION, + { operation: "setPollingInterval" } + ); + }, + enumerable: !1, + configurable: !0, + }), + (e.prototype.resetEventsBlock = function (t) { + ck.throwError( + "cannot reset events block on WebSocketProvider", + y5.Logger.errors.UNSUPPORTED_OPERATION, + { operation: "resetEventBlock" } + ); + }), + (e.prototype.poll = function () { + return uU(this, void 0, void 0, function () { + return lU(this, function (t) { + return [2, null]; + }); + }); + }), + Object.defineProperty(e.prototype, "polling", { + set: function (t) { + !t || + ck.throwError( + "cannot set polling on WebSocketProvider", + y5.Logger.errors.UNSUPPORTED_OPERATION, + { operation: "setPolling" } + ); + }, + enumerable: !1, + configurable: !0, + }), + (e.prototype.send = function (t, n) { + var a = this, + i = mEt++; + return new Promise(function (s, c) { + function l(m, w) { + return m ? c(m) : s(w); + } + var d = JSON.stringify({ + method: t, + params: n, + id: i, + jsonrpc: "2.0", + }); + a.emit("debug", { + action: "request", + request: JSON.parse(d), + provider: a, + }), + (a._requests[String(i)] = { callback: l, payload: d }), + a._wsReady && a.websocket.send(d); + }); + }), + (e.defaultUrl = function () { + return "ws://localhost:8546"; + }), + (e.prototype._subscribe = function (t, n, a) { + return uU(this, void 0, void 0, function () { + var i, + s, + c = this; + return lU(this, function (l) { + switch (l.label) { + case 0: + return ( + (i = this._subIds[t]), + i == null && + ((i = Promise.all(n).then(function (d) { + return c.send("eth_subscribe", d); + })), + (this._subIds[t] = i)), + [4, i] + ); + case 1: + return ( + (s = l.sent()), + (this._subs[s] = { tag: t, processFunc: a }), + [2] + ); + } + }); + }); + }), + (e.prototype._startEvent = function (t) { + var n = this; + switch (t.type) { + case "block": + this._subscribe("block", ["newHeads"], function (i) { + var s = pEt.BigNumber.from(i.number).toNumber(); + (n._emitted.block = s), n.emit("block", s); + }); + break; + case "pending": + this._subscribe( + "pending", + ["newPendingTransactions"], + function (i) { + n.emit("pending", i); + } + ); + break; + case "filter": + this._subscribe( + t.tag, + ["logs", this._getFilter(t.filter)], + function (i) { + i.removed == null && (i.removed = !1), + n.emit(t.filter, n.formatter.filterLog(i)); + } + ); + break; + case "tx": { + var a = function (i) { + var s = i.hash; + n.getTransactionReceipt(s).then(function (c) { + !c || n.emit(s, c); + }); + }; + a(t), + this._subscribe("tx", ["newHeads"], function (i) { + n._events + .filter(function (s) { + return s.type === "tx"; + }) + .forEach(a); + }); + break; + } + case "debug": + case "poll": + case "willPoll": + case "didPoll": + case "error": + break; + default: + console.log("unhandled:", t); + break; + } + }), + (e.prototype._stopEvent = function (t) { + var n = this, + a = t.tag; + if (t.type === "tx") { + if ( + this._events.filter(function (s) { + return s.type === "tx"; + }).length + ) + return; + a = "tx"; + } else if (this.listenerCount(t.event)) return; + var i = this._subIds[a]; + !i || + (delete this._subIds[a], + i.then(function (s) { + !n._subs[s] || + (delete n._subs[s], n.send("eth_unsubscribe", [s])); + })); + }), + (e.prototype.destroy = function () { + return uU(this, void 0, void 0, function () { + var t = this; + return lU(this, function (n) { + switch (n.label) { + case 0: + return this.websocket.readyState !== + U0e.WebSocket.CONNECTING + ? [3, 2] + : [ + 4, + new Promise(function (a) { + (t.websocket.onopen = function () { + a(!0); + }), + (t.websocket.onerror = function () { + a(!1); + }); + }), + ]; + case 1: + n.sent(), (n.label = 2); + case 2: + return this.websocket.close(1e3), [2]; + } + }); + }); + }), + e + ); + })(hEt.JsonRpcProvider); + Jp.WebSocketProvider = yEt; + }); + var Gm = N((Dl) => { + "use strict"; + _(); + x(); + var H0e = + (Dl && Dl.__extends) || + (function () { + var r = function (e, t) { + return ( + (r = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (n, a) { + n.__proto__ = a; + }) || + function (n, a) { + for (var i in a) + Object.prototype.hasOwnProperty.call(a, i) && (n[i] = a[i]); + }), + r(e, t) + ); + }; + return function (e, t) { + if (typeof t != "function" && t !== null) + throw new TypeError( + "Class extends value " + + String(t) + + " is not a constructor or null" + ); + r(e, t); + function n() { + this.constructor = e; + } + e.prototype = + t === null + ? Object.create(t) + : ((n.prototype = t.prototype), new n()); + }; + })(), + gEt = + (Dl && Dl.__awaiter) || + function (r, e, t, n) { + function a(i) { + return i instanceof t + ? i + : new t(function (s) { + s(i); + }); + } + return new (t || (t = Promise))(function (i, s) { + function c(m) { + try { + d(n.next(m)); + } catch (w) { + s(w); + } + } + function l(m) { + try { + d(n.throw(m)); + } catch (w) { + s(w); + } + } + function d(m) { + m.done ? i(m.value) : a(m.value).then(c, l); + } + d((n = n.apply(r, e || [])).next()); + }); + }, + bEt = + (Dl && Dl.__generator) || + function (r, e) { + var t = { + label: 0, + sent: function () { + if (i[0] & 1) throw i[1]; + return i[1]; + }, + trys: [], + ops: [], + }, + n, + a, + i, + s; + return ( + (s = { next: c(0), throw: c(1), return: c(2) }), + typeof Symbol == "function" && + (s[Symbol.iterator] = function () { + return this; + }), + s + ); + function c(d) { + return function (m) { + return l([d, m]); + }; + } + function l(d) { + if (n) throw new TypeError("Generator is already executing."); + for (; t; ) + try { + if ( + ((n = 1), + a && + (i = + d[0] & 2 + ? a.return + : d[0] + ? a.throw || ((i = a.return) && i.call(a), 0) + : a.next) && + !(i = i.call(a, d[1])).done) + ) + return i; + switch (((a = 0), i && (d = [d[0] & 2, i.value]), d[0])) { + case 0: + case 1: + i = d; + break; + case 4: + return t.label++, { value: d[1], done: !1 }; + case 5: + t.label++, (a = d[1]), (d = [0]); + continue; + case 7: + (d = t.ops.pop()), t.trys.pop(); + continue; + default: + if ( + ((i = t.trys), + !(i = i.length > 0 && i[i.length - 1]) && + (d[0] === 6 || d[0] === 2)) + ) { + t = 0; + continue; + } + if (d[0] === 3 && (!i || (d[1] > i[0] && d[1] < i[3]))) { + t.label = d[1]; + break; + } + if (d[0] === 6 && t.label < i[1]) { + (t.label = i[1]), (i = d); + break; + } + if (i && t.label < i[2]) { + (t.label = i[2]), t.ops.push(d); + break; + } + i[2] && t.ops.pop(), t.trys.pop(); + continue; + } + d = e.call(r, t); + } catch (m) { + (d = [6, m]), (a = 0); + } finally { + n = i = 0; + } + if (d[0] & 5) throw d[1]; + return { value: d[0] ? d[1] : void 0, done: !0 }; + } + }; + Object.defineProperty(Dl, "__esModule", { value: !0 }); + Dl.UrlJsonRpcProvider = Dl.StaticJsonRpcProvider = void 0; + var Ov = ja(), + lk = ir(), + vEt = Zs(), + g5 = new lk.Logger(vEt.version), + wEt = Bv(), + z0e = (function (r) { + H0e(e, r); + function e() { + return (r !== null && r.apply(this, arguments)) || this; + } + return ( + (e.prototype.detectNetwork = function () { + return gEt(this, void 0, void 0, function () { + var t; + return bEt(this, function (n) { + switch (n.label) { + case 0: + return ( + (t = this.network), + t != null + ? [3, 2] + : [4, r.prototype.detectNetwork.call(this)] + ); + case 1: + (t = n.sent()), + t || + g5.throwError( + "no network detected", + lk.Logger.errors.UNKNOWN_ERROR, + {} + ), + this._network == null && + ((0, Ov.defineReadOnly)(this, "_network", t), + this.emit("network", t, null)), + (n.label = 2); + case 2: + return [2, t]; + } + }); + }); + }), + e + ); + })(wEt.JsonRpcProvider); + Dl.StaticJsonRpcProvider = z0e; + var _Et = (function (r) { + H0e(e, r); + function e(t, n) { + var a = this.constructor, + i = this; + g5.checkAbstract(a, e), + (t = (0, Ov.getStatic)(a, "getNetwork")(t)), + (n = (0, Ov.getStatic)(a, "getApiKey")(n)); + var s = (0, Ov.getStatic)(a, "getUrl")(t, n); + return ( + (i = r.call(this, s, t) || this), + typeof n == "string" + ? (0, Ov.defineReadOnly)(i, "apiKey", n) + : n != null && + Object.keys(n).forEach(function (c) { + (0, Ov.defineReadOnly)(i, c, n[c]); + }), + i + ); + } + return ( + (e.prototype._startPending = function () { + g5.warn("WARNING: API provider does not support pending filters"); + }), + (e.prototype.isCommunityResource = function () { + return !1; + }), + (e.prototype.getSigner = function (t) { + return g5.throwError( + "API provider does not support signing", + lk.Logger.errors.UNSUPPORTED_OPERATION, + { operation: "getSigner" } + ); + }), + (e.prototype.listAccounts = function () { + return Promise.resolve([]); + }), + (e.getApiKey = function (t) { + return t; + }), + (e.getUrl = function (t, n) { + return g5.throwError( + "not implemented; sub-classes must override getUrl", + lk.Logger.errors.NOT_IMPLEMENTED, + { operation: "getUrl" } + ); + }), + e + ); + })(z0e); + Dl.UrlJsonRpcProvider = _Et; + }); + var Y0e = N((Ym) => { + "use strict"; + _(); + x(); + var K0e = + (Ym && Ym.__extends) || + (function () { + var r = function (e, t) { + return ( + (r = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (n, a) { + n.__proto__ = a; + }) || + function (n, a) { + for (var i in a) + Object.prototype.hasOwnProperty.call(a, i) && (n[i] = a[i]); + }), + r(e, t) + ); + }; + return function (e, t) { + if (typeof t != "function" && t !== null) + throw new TypeError( + "Class extends value " + + String(t) + + " is not a constructor or null" + ); + r(e, t); + function n() { + this.constructor = e; + } + e.prototype = + t === null + ? Object.create(t) + : ((n.prototype = t.prototype), new n()); + }; + })(); + Object.defineProperty(Ym, "__esModule", { value: !0 }); + Ym.AlchemyProvider = Ym.AlchemyWebSocketProvider = void 0; + var xEt = ja(), + TEt = Km(), + EEt = uk(), + CEt = ir(), + IEt = Zs(), + j0e = new CEt.Logger(IEt.version), + AEt = Gm(), + dk = "_gg7wSSi0KMBsdKnGVfHDueq6xMB9EkC", + V0e = (function (r) { + K0e(e, r); + function e(t, n) { + var a = this, + i = new G0e(t, n), + s = i.connection.url + .replace(/^http/i, "ws") + .replace(".alchemyapi.", ".ws.alchemyapi."); + return ( + (a = r.call(this, s, i.network) || this), + (0, xEt.defineReadOnly)(a, "apiKey", i.apiKey), + a + ); + } + return ( + (e.prototype.isCommunityResource = function () { + return this.apiKey === dk; + }), + e + ); + })(EEt.WebSocketProvider); + Ym.AlchemyWebSocketProvider = V0e; + var G0e = (function (r) { + K0e(e, r); + function e() { + return (r !== null && r.apply(this, arguments)) || this; + } + return ( + (e.getWebSocketProvider = function (t, n) { + return new V0e(t, n); + }), + (e.getApiKey = function (t) { + return t == null + ? dk + : (t && + typeof t != "string" && + j0e.throwArgumentError("invalid apiKey", "apiKey", t), + t); + }), + (e.getUrl = function (t, n) { + var a = null; + switch (t.name) { + case "homestead": + a = "eth-mainnet.alchemyapi.io/v2/"; + break; + case "goerli": + a = "eth-goerli.g.alchemy.com/v2/"; + break; + case "matic": + a = "polygon-mainnet.g.alchemy.com/v2/"; + break; + case "maticmum": + a = "polygon-mumbai.g.alchemy.com/v2/"; + break; + case "arbitrum": + a = "arb-mainnet.g.alchemy.com/v2/"; + break; + case "arbitrum-goerli": + a = "arb-goerli.g.alchemy.com/v2/"; + break; + case "optimism": + a = "opt-mainnet.g.alchemy.com/v2/"; + break; + case "optimism-goerli": + a = "opt-goerli.g.alchemy.com/v2/"; + break; + default: + j0e.throwArgumentError( + "unsupported network", + "network", + arguments[0] + ); + } + return { + allowGzip: !0, + url: "https://" + a + n, + throttleCallback: function (i, s) { + return ( + n === dk && (0, TEt.showThrottleMessage)(), Promise.resolve(!0) + ); + }, + }; + }), + (e.prototype.isCommunityResource = function () { + return this.apiKey === dk; + }), + e + ); + })(AEt.UrlJsonRpcProvider); + Ym.AlchemyProvider = G0e; + }); + var $0e = N((Lv) => { + "use strict"; + _(); + x(); + var kEt = + (Lv && Lv.__extends) || + (function () { + var r = function (e, t) { + return ( + (r = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (n, a) { + n.__proto__ = a; + }) || + function (n, a) { + for (var i in a) + Object.prototype.hasOwnProperty.call(a, i) && (n[i] = a[i]); + }), + r(e, t) + ); + }; + return function (e, t) { + if (typeof t != "function" && t !== null) + throw new TypeError( + "Class extends value " + + String(t) + + " is not a constructor or null" + ); + r(e, t); + function n() { + this.constructor = e; + } + e.prototype = + t === null + ? Object.create(t) + : ((n.prototype = t.prototype), new n()); + }; + })(); + Object.defineProperty(Lv, "__esModule", { value: !0 }); + Lv.AnkrProvider = void 0; + var SEt = Km(), + MEt = Gm(), + PEt = ir(), + REt = Zs(), + BEt = new PEt.Logger(REt.version), + pk = "9f7d929b018cdffb338517efa06f58359e86ff1ffd350bc889738523659e7972"; + function NEt(r) { + switch (r) { + case "homestead": + return "rpc.ankr.com/eth/"; + case "ropsten": + return "rpc.ankr.com/eth_ropsten/"; + case "rinkeby": + return "rpc.ankr.com/eth_rinkeby/"; + case "goerli": + return "rpc.ankr.com/eth_goerli/"; + case "matic": + return "rpc.ankr.com/polygon/"; + case "arbitrum": + return "rpc.ankr.com/arbitrum/"; + } + return BEt.throwArgumentError("unsupported network", "name", r); + } + var OEt = (function (r) { + kEt(e, r); + function e() { + return (r !== null && r.apply(this, arguments)) || this; + } + return ( + (e.prototype.isCommunityResource = function () { + return this.apiKey === pk; + }), + (e.getApiKey = function (t) { + return t ?? pk; + }), + (e.getUrl = function (t, n) { + n == null && (n = pk); + var a = { + allowGzip: !0, + url: "https://" + NEt(t.name) + n, + throttleCallback: function (i, s) { + return ( + n.apiKey === pk && (0, SEt.showThrottleMessage)(), + Promise.resolve(!0) + ); + }, + }; + return ( + n.projectSecret != null && + ((a.user = ""), (a.password = n.projectSecret)), + a + ); + }), + e + ); + })(MEt.UrlJsonRpcProvider); + Lv.AnkrProvider = OEt; + }); + var Z0e = N((Zp) => { + "use strict"; + _(); + x(); + var LEt = + (Zp && Zp.__extends) || + (function () { + var r = function (e, t) { + return ( + (r = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (n, a) { + n.__proto__ = a; + }) || + function (n, a) { + for (var i in a) + Object.prototype.hasOwnProperty.call(a, i) && (n[i] = a[i]); + }), + r(e, t) + ); + }; + return function (e, t) { + if (typeof t != "function" && t !== null) + throw new TypeError( + "Class extends value " + + String(t) + + " is not a constructor or null" + ); + r(e, t); + function n() { + this.constructor = e; + } + e.prototype = + t === null + ? Object.create(t) + : ((n.prototype = t.prototype), new n()); + }; + })(), + DEt = + (Zp && Zp.__awaiter) || + function (r, e, t, n) { + function a(i) { + return i instanceof t + ? i + : new t(function (s) { + s(i); + }); + } + return new (t || (t = Promise))(function (i, s) { + function c(m) { + try { + d(n.next(m)); + } catch (w) { + s(w); + } + } + function l(m) { + try { + d(n.throw(m)); + } catch (w) { + s(w); + } + } + function d(m) { + m.done ? i(m.value) : a(m.value).then(c, l); + } + d((n = n.apply(r, e || [])).next()); + }); + }, + qEt = + (Zp && Zp.__generator) || + function (r, e) { + var t = { + label: 0, + sent: function () { + if (i[0] & 1) throw i[1]; + return i[1]; + }, + trys: [], + ops: [], + }, + n, + a, + i, + s; + return ( + (s = { next: c(0), throw: c(1), return: c(2) }), + typeof Symbol == "function" && + (s[Symbol.iterator] = function () { + return this; + }), + s + ); + function c(d) { + return function (m) { + return l([d, m]); + }; + } + function l(d) { + if (n) throw new TypeError("Generator is already executing."); + for (; t; ) + try { + if ( + ((n = 1), + a && + (i = + d[0] & 2 + ? a.return + : d[0] + ? a.throw || ((i = a.return) && i.call(a), 0) + : a.next) && + !(i = i.call(a, d[1])).done) + ) + return i; + switch (((a = 0), i && (d = [d[0] & 2, i.value]), d[0])) { + case 0: + case 1: + i = d; + break; + case 4: + return t.label++, { value: d[1], done: !1 }; + case 5: + t.label++, (a = d[1]), (d = [0]); + continue; + case 7: + (d = t.ops.pop()), t.trys.pop(); + continue; + default: + if ( + ((i = t.trys), + !(i = i.length > 0 && i[i.length - 1]) && + (d[0] === 6 || d[0] === 2)) + ) { + t = 0; + continue; + } + if (d[0] === 3 && (!i || (d[1] > i[0] && d[1] < i[3]))) { + t.label = d[1]; + break; + } + if (d[0] === 6 && t.label < i[1]) { + (t.label = i[1]), (i = d); + break; + } + if (i && t.label < i[2]) { + (t.label = i[2]), t.ops.push(d); + break; + } + i[2] && t.ops.pop(), t.trys.pop(); + continue; + } + d = e.call(r, t); + } catch (m) { + (d = [6, m]), (a = 0); + } finally { + n = i = 0; + } + if (d[0] & 5) throw d[1]; + return { value: d[0] ? d[1] : void 0, done: !0 }; + } + }; + Object.defineProperty(Zp, "__esModule", { value: !0 }); + Zp.CloudflareProvider = void 0; + var FEt = Gm(), + WEt = ir(), + UEt = Zs(), + J0e = new WEt.Logger(UEt.version), + HEt = (function (r) { + LEt(e, r); + function e() { + return (r !== null && r.apply(this, arguments)) || this; + } + return ( + (e.getApiKey = function (t) { + return ( + t != null && + J0e.throwArgumentError( + "apiKey not supported for cloudflare", + "apiKey", + t + ), + null + ); + }), + (e.getUrl = function (t, n) { + var a = null; + switch (t.name) { + case "homestead": + a = "https://cloudflare-eth.com/"; + break; + default: + J0e.throwArgumentError( + "unsupported network", + "network", + arguments[0] + ); + } + return a; + }), + (e.prototype.perform = function (t, n) { + return DEt(this, void 0, void 0, function () { + var a; + return qEt(this, function (i) { + switch (i.label) { + case 0: + return t !== "getBlockNumber" + ? [3, 2] + : [ + 4, + r.prototype.perform.call(this, "getBlock", { + blockTag: "latest", + }), + ]; + case 1: + return (a = i.sent()), [2, a.number]; + case 2: + return [2, r.prototype.perform.call(this, t, n)]; + } + }); + }); + }), + e + ); + })(FEt.UrlJsonRpcProvider); + Zp.CloudflareProvider = HEt; + }); + var tye = N((Xp) => { + "use strict"; + _(); + x(); + var zEt = + (Xp && Xp.__extends) || + (function () { + var r = function (e, t) { + return ( + (r = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (n, a) { + n.__proto__ = a; + }) || + function (n, a) { + for (var i in a) + Object.prototype.hasOwnProperty.call(a, i) && (n[i] = a[i]); + }), + r(e, t) + ); + }; + return function (e, t) { + if (typeof t != "function" && t !== null) + throw new TypeError( + "Class extends value " + + String(t) + + " is not a constructor or null" + ); + r(e, t); + function n() { + this.constructor = e; + } + e.prototype = + t === null + ? Object.create(t) + : ((n.prototype = t.prototype), new n()); + }; + })(), + hk = + (Xp && Xp.__awaiter) || + function (r, e, t, n) { + function a(i) { + return i instanceof t + ? i + : new t(function (s) { + s(i); + }); + } + return new (t || (t = Promise))(function (i, s) { + function c(m) { + try { + d(n.next(m)); + } catch (w) { + s(w); + } + } + function l(m) { + try { + d(n.throw(m)); + } catch (w) { + s(w); + } + } + function d(m) { + m.done ? i(m.value) : a(m.value).then(c, l); + } + d((n = n.apply(r, e || [])).next()); + }); + }, + fk = + (Xp && Xp.__generator) || + function (r, e) { + var t = { + label: 0, + sent: function () { + if (i[0] & 1) throw i[1]; + return i[1]; + }, + trys: [], + ops: [], + }, + n, + a, + i, + s; + return ( + (s = { next: c(0), throw: c(1), return: c(2) }), + typeof Symbol == "function" && + (s[Symbol.iterator] = function () { + return this; + }), + s + ); + function c(d) { + return function (m) { + return l([d, m]); + }; + } + function l(d) { + if (n) throw new TypeError("Generator is already executing."); + for (; t; ) + try { + if ( + ((n = 1), + a && + (i = + d[0] & 2 + ? a.return + : d[0] + ? a.throw || ((i = a.return) && i.call(a), 0) + : a.next) && + !(i = i.call(a, d[1])).done) + ) + return i; + switch (((a = 0), i && (d = [d[0] & 2, i.value]), d[0])) { + case 0: + case 1: + i = d; + break; + case 4: + return t.label++, { value: d[1], done: !1 }; + case 5: + t.label++, (a = d[1]), (d = [0]); + continue; + case 7: + (d = t.ops.pop()), t.trys.pop(); + continue; + default: + if ( + ((i = t.trys), + !(i = i.length > 0 && i[i.length - 1]) && + (d[0] === 6 || d[0] === 2)) + ) { + t = 0; + continue; + } + if (d[0] === 3 && (!i || (d[1] > i[0] && d[1] < i[3]))) { + t.label = d[1]; + break; + } + if (d[0] === 6 && t.label < i[1]) { + (t.label = i[1]), (i = d); + break; + } + if (i && t.label < i[2]) { + (t.label = i[2]), t.ops.push(d); + break; + } + i[2] && t.ops.pop(), t.trys.pop(); + continue; + } + d = e.call(r, t); + } catch (m) { + (d = [6, m]), (a = 0); + } finally { + n = i = 0; + } + if (d[0] & 5) throw d[1]; + return { value: d[0] ? d[1] : void 0, done: !0 }; + } + }; + Object.defineProperty(Xp, "__esModule", { value: !0 }); + Xp.EtherscanProvider = void 0; + var mk = Dr(), + dU = ja(), + jEt = lf(), + KEt = hg(), + VEt = Km(), + Qp = ir(), + GEt = Zs(), + $m = new Qp.Logger(GEt.version), + YEt = h5(); + function Q0e(r) { + var e = {}; + for (var t in r) + if (r[t] != null) { + var n = r[t]; + (t === "type" && n === 0) || + ({ + type: !0, + gasLimit: !0, + gasPrice: !0, + maxFeePerGs: !0, + maxPriorityFeePerGas: !0, + nonce: !0, + value: !0, + }[t] + ? (n = (0, mk.hexValue)((0, mk.hexlify)(n))) + : t === "accessList" + ? (n = + "[" + + (0, jEt.accessListify)(n) + .map(function (a) { + return ( + '{address:"' + + a.address + + '",storageKeys:["' + + a.storageKeys.join('","') + + '"]}' + ); + }) + .join(",") + + "]") + : (n = (0, mk.hexlify)(n)), + (e[t] = n)); + } + return e; + } + function $Et(r) { + if ( + r.status == 0 && + (r.message === "No records found" || + r.message === "No transactions found") + ) + return r.result; + if ( + r.status != 1 || + typeof r.message != "string" || + !r.message.match(/^OK/) + ) { + var e = new Error("invalid response"); + throw ( + ((e.result = JSON.stringify(r)), + (r.result || "").toLowerCase().indexOf("rate limit") >= 0 && + (e.throttleRetry = !0), + e) + ); + } + return r.result; + } + function X0e(r) { + if ( + r && + r.status == 0 && + r.message == "NOTOK" && + (r.result || "").toLowerCase().indexOf("rate limit") >= 0 + ) { + var e = new Error("throttled response"); + throw ((e.result = JSON.stringify(r)), (e.throttleRetry = !0), e); + } + if (r.jsonrpc != "2.0") { + var e = new Error("invalid response"); + throw ((e.result = JSON.stringify(r)), e); + } + if (r.error) { + var e = new Error(r.error.message || "unknown error"); + throw ( + (r.error.code && (e.code = r.error.code), + r.error.data && (e.data = r.error.data), + e) + ); + } + return r.result; + } + function eye(r) { + if (r === "pending") throw new Error("pending not supported"); + return r === "latest" ? r : parseInt(r.substring(2), 16); + } + function pU(r, e, t) { + if (r === "call" && e.code === Qp.Logger.errors.SERVER_ERROR) { + var n = e.error; + if ( + n && + (n.message.match(/reverted/i) || + n.message.match(/VM execution error/i)) + ) { + var a = n.data; + if ( + (a && (a = "0x" + a.replace(/^.*0x/i, "")), (0, mk.isHexString)(a)) + ) + return a; + $m.throwError( + "missing revert data in call exception", + Qp.Logger.errors.CALL_EXCEPTION, + { error: e, data: "0x" } + ); + } + } + var i = e.message; + throw ( + (e.code === Qp.Logger.errors.SERVER_ERROR && + (e.error && typeof e.error.message == "string" + ? (i = e.error.message) + : typeof e.body == "string" + ? (i = e.body) + : typeof e.responseText == "string" && (i = e.responseText)), + (i = (i || "").toLowerCase()), + i.match(/insufficient funds/) && + $m.throwError( + "insufficient funds for intrinsic transaction cost", + Qp.Logger.errors.INSUFFICIENT_FUNDS, + { error: e, method: r, transaction: t } + ), + i.match( + /same hash was already imported|transaction nonce is too low|nonce too low/ + ) && + $m.throwError( + "nonce has already been used", + Qp.Logger.errors.NONCE_EXPIRED, + { error: e, method: r, transaction: t } + ), + i.match(/another transaction with same nonce/) && + $m.throwError( + "replacement fee too low", + Qp.Logger.errors.REPLACEMENT_UNDERPRICED, + { error: e, method: r, transaction: t } + ), + i.match(/execution failed due to an exception|execution reverted/) && + $m.throwError( + "cannot estimate gas; transaction may fail or may require manual gas limit", + Qp.Logger.errors.UNPREDICTABLE_GAS_LIMIT, + { error: e, method: r, transaction: t } + ), + e) + ); + } + var JEt = (function (r) { + zEt(e, r); + function e(t, n) { + var a = r.call(this, t) || this; + return ( + (0, dU.defineReadOnly)(a, "baseUrl", a.getBaseUrl()), + (0, dU.defineReadOnly)(a, "apiKey", n || null), + a + ); + } + return ( + (e.prototype.getBaseUrl = function () { + switch (this.network ? this.network.name : "invalid") { + case "homestead": + return "https://api.etherscan.io"; + case "goerli": + return "https://api-goerli.etherscan.io"; + case "sepolia": + return "https://api-sepolia.etherscan.io"; + case "matic": + return "https://api.polygonscan.com"; + case "maticmum": + return "https://api-testnet.polygonscan.com"; + case "arbitrum": + return "https://api.arbiscan.io"; + case "arbitrum-goerli": + return "https://api-goerli.arbiscan.io"; + case "optimism": + return "https://api-optimistic.etherscan.io"; + case "optimism-goerli": + return "https://api-goerli-optimistic.etherscan.io"; + default: + } + return $m.throwArgumentError( + "unsupported network", + "network", + this.network.name + ); + }), + (e.prototype.getUrl = function (t, n) { + var a = Object.keys(n).reduce(function (s, c) { + var l = n[c]; + return l != null && (s += "&" + c + "=" + l), s; + }, ""), + i = this.apiKey ? "&apikey=" + this.apiKey : ""; + return this.baseUrl + "/api?module=" + t + a + i; + }), + (e.prototype.getPostUrl = function () { + return this.baseUrl + "/api"; + }), + (e.prototype.getPostData = function (t, n) { + return (n.module = t), (n.apikey = this.apiKey), n; + }), + (e.prototype.fetch = function (t, n, a) { + return hk(this, void 0, void 0, function () { + var i, + s, + c, + l, + d, + m, + w = this; + return fk(this, function (C) { + switch (C.label) { + case 0: + return ( + (i = a ? this.getPostUrl() : this.getUrl(t, n)), + (s = a ? this.getPostData(t, n) : null), + (c = t === "proxy" ? X0e : $Et), + this.emit("debug", { + action: "request", + request: i, + provider: this, + }), + (l = { + url: i, + throttleSlotInterval: 1e3, + throttleCallback: function (I, k) { + return ( + w.isCommunityResource() && + (0, VEt.showThrottleMessage)(), + Promise.resolve(!0) + ); + }, + }), + (d = null), + s && + ((l.headers = { + "content-type": + "application/x-www-form-urlencoded; charset=UTF-8", + }), + (d = Object.keys(s) + .map(function (I) { + return I + "=" + s[I]; + }) + .join("&"))), + [4, (0, KEt.fetchJson)(l, d, c || X0e)] + ); + case 1: + return ( + (m = C.sent()), + this.emit("debug", { + action: "response", + request: i, + response: (0, dU.deepCopy)(m), + provider: this, + }), + [2, m] + ); + } + }); + }); + }), + (e.prototype.detectNetwork = function () { + return hk(this, void 0, void 0, function () { + return fk(this, function (t) { + return [2, this.network]; + }); + }); + }), + (e.prototype.perform = function (t, n) { + return hk(this, void 0, void 0, function () { + var a, s, i, s, c, l, d, m, w, C, I, k, O; + return fk(this, function (D) { + switch (D.label) { + case 0: + switch (((a = t), a)) { + case "getBlockNumber": + return [3, 1]; + case "getGasPrice": + return [3, 2]; + case "getBalance": + return [3, 3]; + case "getTransactionCount": + return [3, 4]; + case "getCode": + return [3, 5]; + case "getStorageAt": + return [3, 6]; + case "sendTransaction": + return [3, 7]; + case "getBlock": + return [3, 8]; + case "getTransaction": + return [3, 9]; + case "getTransactionReceipt": + return [3, 10]; + case "call": + return [3, 11]; + case "estimateGas": + return [3, 15]; + case "getLogs": + return [3, 19]; + case "getEtherPrice": + return [3, 26]; + } + return [3, 28]; + case 1: + return [ + 2, + this.fetch("proxy", { action: "eth_blockNumber" }), + ]; + case 2: + return [2, this.fetch("proxy", { action: "eth_gasPrice" })]; + case 3: + return [ + 2, + this.fetch("account", { + action: "balance", + address: n.address, + tag: n.blockTag, + }), + ]; + case 4: + return [ + 2, + this.fetch("proxy", { + action: "eth_getTransactionCount", + address: n.address, + tag: n.blockTag, + }), + ]; + case 5: + return [ + 2, + this.fetch("proxy", { + action: "eth_getCode", + address: n.address, + tag: n.blockTag, + }), + ]; + case 6: + return [ + 2, + this.fetch("proxy", { + action: "eth_getStorageAt", + address: n.address, + position: n.position, + tag: n.blockTag, + }), + ]; + case 7: + return [ + 2, + this.fetch( + "proxy", + { + action: "eth_sendRawTransaction", + hex: n.signedTransaction, + }, + !0 + ).catch(function (W) { + return pU("sendTransaction", W, n.signedTransaction); + }), + ]; + case 8: + if (n.blockTag) + return [ + 2, + this.fetch("proxy", { + action: "eth_getBlockByNumber", + tag: n.blockTag, + boolean: n.includeTransactions ? "true" : "false", + }), + ]; + throw new Error("getBlock by blockHash not implemented"); + case 9: + return [ + 2, + this.fetch("proxy", { + action: "eth_getTransactionByHash", + txhash: n.transactionHash, + }), + ]; + case 10: + return [ + 2, + this.fetch("proxy", { + action: "eth_getTransactionReceipt", + txhash: n.transactionHash, + }), + ]; + case 11: + if (n.blockTag !== "latest") + throw new Error( + "EtherscanProvider does not support blockTag for call" + ); + (s = Q0e(n.transaction)), + (s.module = "proxy"), + (s.action = "eth_call"), + (D.label = 12); + case 12: + return ( + D.trys.push([12, 14, , 15]), [4, this.fetch("proxy", s, !0)] + ); + case 13: + return [2, D.sent()]; + case 14: + return (i = D.sent()), [2, pU("call", i, n.transaction)]; + case 15: + (s = Q0e(n.transaction)), + (s.module = "proxy"), + (s.action = "eth_estimateGas"), + (D.label = 16); + case 16: + return ( + D.trys.push([16, 18, , 19]), [4, this.fetch("proxy", s, !0)] + ); + case 17: + return [2, D.sent()]; + case 18: + return ( + (c = D.sent()), [2, pU("estimateGas", c, n.transaction)] + ); + case 19: + return ( + (l = { action: "getLogs" }), + n.filter.fromBlock && + (l.fromBlock = eye(n.filter.fromBlock)), + n.filter.toBlock && (l.toBlock = eye(n.filter.toBlock)), + n.filter.address && (l.address = n.filter.address), + n.filter.topics && + n.filter.topics.length > 0 && + (n.filter.topics.length > 1 && + $m.throwError( + "unsupported topic count", + Qp.Logger.errors.UNSUPPORTED_OPERATION, + { topics: n.filter.topics } + ), + n.filter.topics.length === 1 && + ((d = n.filter.topics[0]), + (typeof d != "string" || d.length !== 66) && + $m.throwError( + "unsupported topic format", + Qp.Logger.errors.UNSUPPORTED_OPERATION, + { topic0: d } + ), + (l.topic0 = d))), + [4, this.fetch("logs", l)] + ); + case 20: + (m = D.sent()), (w = {}), (C = 0), (D.label = 21); + case 21: + return C < m.length + ? ((I = m[C]), + I.blockHash != null + ? [3, 24] + : w[I.blockNumber] != null + ? [3, 23] + : [4, this.getBlock(I.blockNumber)]) + : [3, 25]; + case 22: + (k = D.sent()), + k && (w[I.blockNumber] = k.hash), + (D.label = 23); + case 23: + (I.blockHash = w[I.blockNumber]), (D.label = 24); + case 24: + return C++, [3, 21]; + case 25: + return [2, m]; + case 26: + return this.network.name !== "homestead" + ? [2, 0] + : ((O = parseFloat), + [4, this.fetch("stats", { action: "ethprice" })]); + case 27: + return [2, O.apply(void 0, [D.sent().ethusd])]; + case 28: + return [3, 29]; + case 29: + return [2, r.prototype.perform.call(this, t, n)]; + } + }); + }); + }), + (e.prototype.getHistory = function (t, n, a) { + return hk(this, void 0, void 0, function () { + var i, + s, + c, + l = this; + return fk(this, function (d) { + switch (d.label) { + case 0: + return (c = { action: "txlist" }), [4, this.resolveName(t)]; + case 1: + return ( + (i = + ((c.address = d.sent()), + (c.startblock = n ?? 0), + (c.endblock = a ?? 99999999), + (c.sort = "asc"), + c)), + [4, this.fetch("account", i)] + ); + case 2: + return ( + (s = d.sent()), + [ + 2, + s.map(function (m) { + ["contractAddress", "to"].forEach(function (C) { + m[C] == "" && delete m[C]; + }), + m.creates == null && + m.contractAddress != null && + (m.creates = m.contractAddress); + var w = l.formatter.transactionResponse(m); + return ( + m.timeStamp && (w.timestamp = parseInt(m.timeStamp)), + w + ); + }), + ] + ); + } + }); + }); + }), + (e.prototype.isCommunityResource = function () { + return this.apiKey == null; + }), + e + ); + })(YEt.BaseProvider); + Xp.EtherscanProvider = JEt; + }); + var sye = N((th) => { + "use strict"; + _(); + x(); + var ZEt = + (th && th.__extends) || + (function () { + var r = function (e, t) { + return ( + (r = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (n, a) { + n.__proto__ = a; + }) || + function (n, a) { + for (var i in a) + Object.prototype.hasOwnProperty.call(a, i) && (n[i] = a[i]); + }), + r(e, t) + ); + }; + return function (e, t) { + if (typeof t != "function" && t !== null) + throw new TypeError( + "Class extends value " + + String(t) + + " is not a constructor or null" + ); + r(e, t); + function n() { + this.constructor = e; + } + e.prototype = + t === null + ? Object.create(t) + : ((n.prototype = t.prototype), new n()); + }; + })(), + bk = + (th && th.__awaiter) || + function (r, e, t, n) { + function a(i) { + return i instanceof t + ? i + : new t(function (s) { + s(i); + }); + } + return new (t || (t = Promise))(function (i, s) { + function c(m) { + try { + d(n.next(m)); + } catch (w) { + s(w); + } + } + function l(m) { + try { + d(n.throw(m)); + } catch (w) { + s(w); + } + } + function d(m) { + m.done ? i(m.value) : a(m.value).then(c, l); + } + d((n = n.apply(r, e || [])).next()); + }); + }, + v5 = + (th && th.__generator) || + function (r, e) { + var t = { + label: 0, + sent: function () { + if (i[0] & 1) throw i[1]; + return i[1]; + }, + trys: [], + ops: [], + }, + n, + a, + i, + s; + return ( + (s = { next: c(0), throw: c(1), return: c(2) }), + typeof Symbol == "function" && + (s[Symbol.iterator] = function () { + return this; + }), + s + ); + function c(d) { + return function (m) { + return l([d, m]); + }; + } + function l(d) { + if (n) throw new TypeError("Generator is already executing."); + for (; t; ) + try { + if ( + ((n = 1), + a && + (i = + d[0] & 2 + ? a.return + : d[0] + ? a.throw || ((i = a.return) && i.call(a), 0) + : a.next) && + !(i = i.call(a, d[1])).done) + ) + return i; + switch (((a = 0), i && (d = [d[0] & 2, i.value]), d[0])) { + case 0: + case 1: + i = d; + break; + case 4: + return t.label++, { value: d[1], done: !1 }; + case 5: + t.label++, (a = d[1]), (d = [0]); + continue; + case 7: + (d = t.ops.pop()), t.trys.pop(); + continue; + default: + if ( + ((i = t.trys), + !(i = i.length > 0 && i[i.length - 1]) && + (d[0] === 6 || d[0] === 2)) + ) { + t = 0; + continue; + } + if (d[0] === 3 && (!i || (d[1] > i[0] && d[1] < i[3]))) { + t.label = d[1]; + break; + } + if (d[0] === 6 && t.label < i[1]) { + (t.label = i[1]), (i = d); + break; + } + if (i && t.label < i[2]) { + (t.label = i[2]), t.ops.push(d); + break; + } + i[2] && t.ops.pop(), t.trys.pop(); + continue; + } + d = e.call(r, t); + } catch (m) { + (d = [6, m]), (a = 0); + } finally { + n = i = 0; + } + if (d[0] & 5) throw d[1]; + return { value: d[0] ? d[1] : void 0, done: !0 }; + } + }; + Object.defineProperty(th, "__esModule", { value: !0 }); + th.FallbackProvider = void 0; + var QEt = I1(), + XEt = zi(), + Dv = Dr(), + eh = ja(), + eCt = n5(), + tCt = hg(), + rCt = h5(), + rye = Km(), + Jm = ir(), + nCt = Zs(), + fg = new Jm.Logger(nCt.version); + function yk() { + return new Date().getTime(); + } + function nye(r) { + for (var e = null, t = 0; t < r.length; t++) { + var n = r[t]; + if (n == null) return null; + e + ? (e.name === n.name && + e.chainId === n.chainId && + (e.ensAddress === n.ensAddress || + (e.ensAddress == null && n.ensAddress == null))) || + fg.throwArgumentError("provider mismatch", "networks", r) + : (e = n); + } + return e; + } + function aye(r, e) { + r = r.slice().sort(); + var t = Math.floor(r.length / 2); + if (r.length % 2) return r[t]; + var n = r[t - 1], + a = r[t]; + return e != null && Math.abs(n - a) > e ? null : (n + a) / 2; + } + function qv(r) { + if (r === null) return "null"; + if (typeof r == "number" || typeof r == "boolean") + return JSON.stringify(r); + if (typeof r == "string") return r; + if (XEt.BigNumber.isBigNumber(r)) return r.toString(); + if (Array.isArray(r)) + return JSON.stringify( + r.map(function (t) { + return qv(t); + }) + ); + if (typeof r == "object") { + var e = Object.keys(r); + return ( + e.sort(), + "{" + + e + .map(function (t) { + var n = r[t]; + return ( + typeof n == "function" ? (n = "[function]") : (n = qv(n)), + JSON.stringify(t) + ":" + n + ); + }) + .join(",") + + "}" + ); + } + throw new Error("unknown value type: " + typeof r); + } + var aCt = 1; + function iye(r) { + var e = null, + t = null, + n = new Promise(function (s) { + (e = function () { + t && (clearTimeout(t), (t = null)), s(); + }), + (t = setTimeout(e, r)); + }), + a = function (s) { + return (n = n.then(s)), n; + }; + function i() { + return n; + } + return { cancel: e, getPromise: i, wait: a }; + } + var iCt = [ + Jm.Logger.errors.CALL_EXCEPTION, + Jm.Logger.errors.INSUFFICIENT_FUNDS, + Jm.Logger.errors.NONCE_EXPIRED, + Jm.Logger.errors.REPLACEMENT_UNDERPRICED, + Jm.Logger.errors.UNPREDICTABLE_GAS_LIMIT, + ], + sCt = [ + "address", + "args", + "errorArgs", + "errorSignature", + "method", + "transaction", + ]; + function gk(r, e) { + var t = { weight: r.weight }; + return ( + Object.defineProperty(t, "provider", { + get: function () { + return r.provider; + }, + }), + r.start && (t.start = r.start), + e && (t.duration = e - r.start), + r.done && + (r.error ? (t.error = r.error) : (t.result = r.result || null)), + t + ); + } + function oCt(r, e) { + return function (t) { + var n = {}; + t.forEach(function (c) { + var l = r(c.result); + n[l] || (n[l] = { count: 0, result: c.result }), n[l].count++; + }); + for (var a = Object.keys(n), i = 0; i < a.length; i++) { + var s = n[a[i]]; + if (s.count >= e) return s.result; + } + }; + } + function cCt(r, e, t) { + var n = qv; + switch (e) { + case "getBlockNumber": + return function (a) { + var i = a.map(function (c) { + return c.result; + }), + s = aye( + a.map(function (c) { + return c.result; + }), + 2 + ); + if (s != null) + return ( + (s = Math.ceil(s)), + i.indexOf(s + 1) >= 0 && s++, + s >= r._highestBlockNumber && (r._highestBlockNumber = s), + r._highestBlockNumber + ); + }; + case "getGasPrice": + return function (a) { + var i = a.map(function (s) { + return s.result; + }); + return i.sort(), i[Math.floor(i.length / 2)]; + }; + case "getEtherPrice": + return function (a) { + return aye( + a.map(function (i) { + return i.result; + }) + ); + }; + case "getBalance": + case "getTransactionCount": + case "getCode": + case "getStorageAt": + case "call": + case "estimateGas": + case "getLogs": + break; + case "getTransaction": + case "getTransactionReceipt": + n = function (a) { + return a == null + ? null + : ((a = (0, eh.shallowCopy)(a)), (a.confirmations = -1), qv(a)); + }; + break; + case "getBlock": + t.includeTransactions + ? (n = function (a) { + return a == null + ? null + : ((a = (0, eh.shallowCopy)(a)), + (a.transactions = a.transactions.map(function (i) { + return ( + (i = (0, eh.shallowCopy)(i)), (i.confirmations = -1), i + ); + })), + qv(a)); + }) + : (n = function (a) { + return a == null ? null : qv(a); + }); + break; + default: + throw new Error("unknown method: " + e); + } + return oCt(n, r.quorum); + } + function b5(r, e) { + return bk(this, void 0, void 0, function () { + var t; + return v5(this, function (n) { + return ( + (t = r.provider), + (t.blockNumber != null && t.blockNumber >= e) || e === -1 + ? [2, t] + : [ + 2, + (0, tCt.poll)( + function () { + return new Promise(function (a, i) { + setTimeout(function () { + return t.blockNumber >= e + ? a(t) + : r.cancelled + ? a(null) + : a(void 0); + }, 0); + }); + }, + { oncePoll: t } + ), + ] + ); + }); + }); + } + function uCt(r, e, t, n) { + return bk(this, void 0, void 0, function () { + var a, i, s; + return v5(this, function (c) { + switch (c.label) { + case 0: + switch (((a = r.provider), (i = t), i)) { + case "getBlockNumber": + return [3, 1]; + case "getGasPrice": + return [3, 1]; + case "getEtherPrice": + return [3, 2]; + case "getBalance": + return [3, 3]; + case "getTransactionCount": + return [3, 3]; + case "getCode": + return [3, 3]; + case "getStorageAt": + return [3, 6]; + case "getBlock": + return [3, 9]; + case "call": + return [3, 12]; + case "estimateGas": + return [3, 12]; + case "getTransaction": + return [3, 15]; + case "getTransactionReceipt": + return [3, 15]; + case "getLogs": + return [3, 16]; + } + return [3, 19]; + case 1: + return [2, a[t]()]; + case 2: + return a.getEtherPrice ? [2, a.getEtherPrice()] : [3, 19]; + case 3: + return n.blockTag && (0, Dv.isHexString)(n.blockTag) + ? [4, b5(r, e)] + : [3, 5]; + case 4: + (a = c.sent()), (c.label = 5); + case 5: + return [2, a[t](n.address, n.blockTag || "latest")]; + case 6: + return n.blockTag && (0, Dv.isHexString)(n.blockTag) + ? [4, b5(r, e)] + : [3, 8]; + case 7: + (a = c.sent()), (c.label = 8); + case 8: + return [ + 2, + a.getStorageAt(n.address, n.position, n.blockTag || "latest"), + ]; + case 9: + return n.blockTag && (0, Dv.isHexString)(n.blockTag) + ? [4, b5(r, e)] + : [3, 11]; + case 10: + (a = c.sent()), (c.label = 11); + case 11: + return [ + 2, + a[ + n.includeTransactions + ? "getBlockWithTransactions" + : "getBlock" + ](n.blockTag || n.blockHash), + ]; + case 12: + return n.blockTag && (0, Dv.isHexString)(n.blockTag) + ? [4, b5(r, e)] + : [3, 14]; + case 13: + (a = c.sent()), (c.label = 14); + case 14: + return t === "call" && n.blockTag + ? [2, a[t](n.transaction, n.blockTag)] + : [2, a[t](n.transaction)]; + case 15: + return [2, a[t](n.transactionHash)]; + case 16: + return ( + (s = n.filter), + (s.fromBlock && (0, Dv.isHexString)(s.fromBlock)) || + (s.toBlock && (0, Dv.isHexString)(s.toBlock)) + ? [4, b5(r, e)] + : [3, 18] + ); + case 17: + (a = c.sent()), (c.label = 18); + case 18: + return [2, a.getLogs(s)]; + case 19: + return [ + 2, + fg.throwError( + "unknown method error", + Jm.Logger.errors.UNKNOWN_ERROR, + { method: t, params: n } + ), + ]; + } + }); + }); + } + var lCt = (function (r) { + ZEt(e, r); + function e(t, n) { + var a = this; + t.length === 0 && + fg.throwArgumentError("missing providers", "providers", t); + var i = t.map(function (l, d) { + if (QEt.Provider.isProvider(l)) { + var m = (0, rye.isCommunityResource)(l) ? 2e3 : 750, + w = 1; + return Object.freeze({ + provider: l, + weight: 1, + stallTimeout: m, + priority: w, + }); + } + var C = (0, eh.shallowCopy)(l); + C.priority == null && (C.priority = 1), + C.stallTimeout == null && + (C.stallTimeout = (0, rye.isCommunityResource)(l) ? 2e3 : 750), + C.weight == null && (C.weight = 1); + var I = C.weight; + return ( + (I % 1 || I > 512 || I < 1) && + fg.throwArgumentError( + "invalid weight; must be integer in [1, 512]", + "providers[" + d + "].weight", + I + ), + Object.freeze(C) + ); + }), + s = i.reduce(function (l, d) { + return l + d.weight; + }, 0); + n == null + ? (n = s / 2) + : n > s && + fg.throwArgumentError( + "quorum will always fail; larger than total weight", + "quorum", + n + ); + var c = nye( + i.map(function (l) { + return l.provider.network; + }) + ); + return ( + c == null && + (c = new Promise(function (l, d) { + setTimeout(function () { + a.detectNetwork().then(l, d); + }, 0); + })), + (a = r.call(this, c) || this), + (0, eh.defineReadOnly)(a, "providerConfigs", Object.freeze(i)), + (0, eh.defineReadOnly)(a, "quorum", n), + (a._highestBlockNumber = -1), + a + ); + } + return ( + (e.prototype.detectNetwork = function () { + return bk(this, void 0, void 0, function () { + var t; + return v5(this, function (n) { + switch (n.label) { + case 0: + return [ + 4, + Promise.all( + this.providerConfigs.map(function (a) { + return a.provider.getNetwork(); + }) + ), + ]; + case 1: + return (t = n.sent()), [2, nye(t)]; + } + }); + }); + }), + (e.prototype.perform = function (t, n) { + return bk(this, void 0, void 0, function () { + var a, + i, + s, + c, + l, + d, + m, + w, + C, + I, + k, + O = this; + return v5(this, function (D) { + switch (D.label) { + case 0: + return t !== "sendTransaction" + ? [3, 2] + : [ + 4, + Promise.all( + this.providerConfigs.map(function (W) { + return W.provider + .sendTransaction(n.signedTransaction) + .then( + function (H) { + return H.hash; + }, + function (H) { + return H; + } + ); + }) + ), + ]; + case 1: + for (a = D.sent(), i = 0; i < a.length; i++) + if (((s = a[i]), typeof s == "string")) return [2, s]; + throw a[0]; + case 2: + return this._highestBlockNumber === -1 && + t !== "getBlockNumber" + ? [4, this.getBlockNumber()] + : [3, 4]; + case 3: + D.sent(), (D.label = 4); + case 4: + (c = cCt(this, t, n)), + (l = (0, eCt.shuffled)( + this.providerConfigs.map(eh.shallowCopy) + )), + l.sort(function (W, H) { + return W.priority - H.priority; + }), + (d = this._highestBlockNumber), + (m = 0), + (w = !0), + (C = function () { + var W, H, j, V, te, $, ae; + return v5(this, function (Y) { + switch (Y.label) { + case 0: + for ( + W = yk(), + H = l + .filter(function (K) { + return ( + K.runner && W - K.start < K.stallTimeout + ); + }) + .reduce(function (K, g) { + return K + g.weight; + }, 0), + j = function () { + var K = l[m++], + g = aCt++; + (K.start = yk()), + (K.staller = iye(K.stallTimeout)), + K.staller.wait(function () { + K.staller = null; + }), + (K.runner = uCt(K, d, t, n).then( + function (o) { + (K.done = !0), + (K.result = o), + O.listenerCount("debug") && + O.emit("debug", { + action: "request", + rid: g, + backend: gk(K, yk()), + request: { + method: t, + params: (0, eh.deepCopy)(n), + }, + provider: O, + }); + }, + function (o) { + (K.done = !0), + (K.error = o), + O.listenerCount("debug") && + O.emit("debug", { + action: "request", + rid: g, + backend: gk(K, yk()), + request: { + method: t, + params: (0, eh.deepCopy)(n), + }, + provider: O, + }); + } + )), + I.listenerCount("debug") && + I.emit("debug", { + action: "request", + rid: g, + backend: gk(K, null), + request: { + method: t, + params: (0, eh.deepCopy)(n), + }, + provider: I, + }), + (H += K.weight); + }; + H < I.quorum && m < l.length; + + ) + j(); + return ( + (V = []), + l.forEach(function (K) { + K.done || + !K.runner || + (V.push(K.runner), + K.staller && V.push(K.staller.getPromise())); + }), + V.length ? [4, Promise.race(V)] : [3, 2] + ); + case 1: + Y.sent(), (Y.label = 2); + case 2: + return ( + (te = l.filter(function (K) { + return K.done && K.error == null; + })), + te.length >= I.quorum + ? (($ = c(te)), + $ !== void 0 + ? (l.forEach(function (K) { + K.staller && K.staller.cancel(), + (K.cancelled = !0); + }), + [2, { value: $ }]) + : w + ? [3, 4] + : [4, iye(100).getPromise()]) + : [3, 5] + ); + case 3: + Y.sent(), (Y.label = 4); + case 4: + (w = !1), (Y.label = 5); + case 5: + return ( + (ae = l.reduce(function (K, g) { + if (!g.done || g.error == null) return K; + var o = g.error.code; + return ( + iCt.indexOf(o) >= 0 && + (K[o] || + (K[o] = { error: g.error, weight: 0 }), + (K[o].weight += g.weight)), + K + ); + }, {})), + Object.keys(ae).forEach(function (K) { + var g = ae[K]; + if (!(g.weight < O.quorum)) { + l.forEach(function (y) { + y.staller && y.staller.cancel(), + (y.cancelled = !0); + }); + var o = g.error, + p = {}; + sCt.forEach(function (y) { + o[y] != null && (p[y] = o[y]); + }), + fg.throwError(o.reason || o.message, K, p); + } + }), + l.filter(function (K) { + return !K.done; + }).length === 0 + ? [2, "break"] + : [2] + ); + } + }); + }), + (I = this), + (D.label = 5); + case 5: + return [5, C()]; + case 6: + return ( + (k = D.sent()), + typeof k == "object" + ? [2, k.value] + : k === "break" + ? [3, 7] + : [3, 5] + ); + case 7: + return ( + l.forEach(function (W) { + W.staller && W.staller.cancel(), (W.cancelled = !0); + }), + [ + 2, + fg.throwError( + "failed to meet quorum", + Jm.Logger.errors.SERVER_ERROR, + { + method: t, + params: n, + results: l.map(function (W) { + return gk(W); + }), + provider: this, + } + ), + ] + ); + } + }); + }); + }), + e + ); + })(rCt.BaseProvider); + th.FallbackProvider = lCt; + }); + var oye = N((vk) => { + "use strict"; + _(); + x(); + Object.defineProperty(vk, "__esModule", { value: !0 }); + vk.IpcProvider = void 0; + var dCt = null; + vk.IpcProvider = dCt; + }); + var dye = N((Zm) => { + "use strict"; + _(); + x(); + var cye = + (Zm && Zm.__extends) || + (function () { + var r = function (e, t) { + return ( + (r = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (n, a) { + n.__proto__ = a; + }) || + function (n, a) { + for (var i in a) + Object.prototype.hasOwnProperty.call(a, i) && (n[i] = a[i]); + }), + r(e, t) + ); + }; + return function (e, t) { + if (typeof t != "function" && t !== null) + throw new TypeError( + "Class extends value " + + String(t) + + " is not a constructor or null" + ); + r(e, t); + function n() { + this.constructor = e; + } + e.prototype = + t === null + ? Object.create(t) + : ((n.prototype = t.prototype), new n()); + }; + })(); + Object.defineProperty(Zm, "__esModule", { value: !0 }); + Zm.InfuraProvider = Zm.InfuraWebSocketProvider = void 0; + var hU = ja(), + pCt = uk(), + hCt = Km(), + fU = ir(), + fCt = Zs(), + wk = new fU.Logger(fCt.version), + mCt = Gm(), + w5 = "84842078b09946638c03157f83405213", + uye = (function (r) { + cye(e, r); + function e(t, n) { + var a = this, + i = new lye(t, n), + s = i.connection; + s.password && + wk.throwError( + "INFURA WebSocket project secrets unsupported", + fU.Logger.errors.UNSUPPORTED_OPERATION, + { operation: "InfuraProvider.getWebSocketProvider()" } + ); + var c = s.url.replace(/^http/i, "ws").replace("/v3/", "/ws/v3/"); + return ( + (a = r.call(this, c, t) || this), + (0, hU.defineReadOnly)(a, "apiKey", i.projectId), + (0, hU.defineReadOnly)(a, "projectId", i.projectId), + (0, hU.defineReadOnly)(a, "projectSecret", i.projectSecret), + a + ); + } + return ( + (e.prototype.isCommunityResource = function () { + return this.projectId === w5; + }), + e + ); + })(pCt.WebSocketProvider); + Zm.InfuraWebSocketProvider = uye; + var lye = (function (r) { + cye(e, r); + function e() { + return (r !== null && r.apply(this, arguments)) || this; + } + return ( + (e.getWebSocketProvider = function (t, n) { + return new uye(t, n); + }), + (e.getApiKey = function (t) { + var n = { apiKey: w5, projectId: w5, projectSecret: null }; + return ( + t == null || + (typeof t == "string" + ? (n.projectId = t) + : t.projectSecret != null + ? (wk.assertArgument( + typeof t.projectId == "string", + "projectSecret requires a projectId", + "projectId", + t.projectId + ), + wk.assertArgument( + typeof t.projectSecret == "string", + "invalid projectSecret", + "projectSecret", + "[REDACTED]" + ), + (n.projectId = t.projectId), + (n.projectSecret = t.projectSecret)) + : t.projectId && (n.projectId = t.projectId), + (n.apiKey = n.projectId)), + n + ); + }), + (e.getUrl = function (t, n) { + var a = null; + switch (t ? t.name : "unknown") { + case "homestead": + a = "mainnet.infura.io"; + break; + case "goerli": + a = "goerli.infura.io"; + break; + case "sepolia": + a = "sepolia.infura.io"; + break; + case "matic": + a = "polygon-mainnet.infura.io"; + break; + case "maticmum": + a = "polygon-mumbai.infura.io"; + break; + case "optimism": + a = "optimism-mainnet.infura.io"; + break; + case "optimism-goerli": + a = "optimism-goerli.infura.io"; + break; + case "arbitrum": + a = "arbitrum-mainnet.infura.io"; + break; + case "arbitrum-goerli": + a = "arbitrum-goerli.infura.io"; + break; + default: + wk.throwError( + "unsupported network", + fU.Logger.errors.INVALID_ARGUMENT, + { argument: "network", value: t } + ); + } + var i = { + allowGzip: !0, + url: "https://" + a + "/v3/" + n.projectId, + throttleCallback: function (s, c) { + return ( + n.projectId === w5 && (0, hCt.showThrottleMessage)(), + Promise.resolve(!0) + ); + }, + }; + return ( + n.projectSecret != null && + ((i.user = ""), (i.password = n.projectSecret)), + i + ); + }), + (e.prototype.isCommunityResource = function () { + return this.projectId === w5; + }), + e + ); + })(mCt.UrlJsonRpcProvider); + Zm.InfuraProvider = lye; + }); + var pye = N((Fv) => { + "use strict"; + _(); + x(); + var yCt = + (Fv && Fv.__extends) || + (function () { + var r = function (e, t) { + return ( + (r = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (n, a) { + n.__proto__ = a; + }) || + function (n, a) { + for (var i in a) + Object.prototype.hasOwnProperty.call(a, i) && (n[i] = a[i]); + }), + r(e, t) + ); + }; + return function (e, t) { + if (typeof t != "function" && t !== null) + throw new TypeError( + "Class extends value " + + String(t) + + " is not a constructor or null" + ); + r(e, t); + function n() { + this.constructor = e; + } + e.prototype = + t === null + ? Object.create(t) + : ((n.prototype = t.prototype), new n()); + }; + })(); + Object.defineProperty(Fv, "__esModule", { value: !0 }); + Fv.JsonRpcBatchProvider = void 0; + var gCt = ja(), + bCt = hg(), + vCt = Bv(), + wCt = (function (r) { + yCt(e, r); + function e() { + return (r !== null && r.apply(this, arguments)) || this; + } + return ( + (e.prototype.send = function (t, n) { + var a = this, + i = { method: t, params: n, id: this._nextId++, jsonrpc: "2.0" }; + this._pendingBatch == null && (this._pendingBatch = []); + var s = { request: i, resolve: null, reject: null }, + c = new Promise(function (l, d) { + (s.resolve = l), (s.reject = d); + }); + return ( + this._pendingBatch.push(s), + this._pendingBatchAggregator || + (this._pendingBatchAggregator = setTimeout(function () { + var l = a._pendingBatch; + (a._pendingBatch = null), (a._pendingBatchAggregator = null); + var d = l.map(function (m) { + return m.request; + }); + return ( + a.emit("debug", { + action: "requestBatch", + request: (0, gCt.deepCopy)(d), + provider: a, + }), + (0, bCt.fetchJson)(a.connection, JSON.stringify(d)).then( + function (m) { + a.emit("debug", { + action: "response", + request: d, + response: m, + provider: a, + }), + l.forEach(function (w, C) { + var I = m[C]; + if (I.error) { + var k = new Error(I.error.message); + (k.code = I.error.code), + (k.data = I.error.data), + w.reject(k); + } else w.resolve(I.result); + }); + }, + function (m) { + a.emit("debug", { + action: "response", + error: m, + request: d, + provider: a, + }), + l.forEach(function (w) { + w.reject(m); + }); + } + ) + ); + }, 10)), + c + ); + }), + e + ); + })(vCt.JsonRpcProvider); + Fv.JsonRpcBatchProvider = wCt; + }); + var hye = N((Wv) => { + "use strict"; + _(); + x(); + var _Ct = + (Wv && Wv.__extends) || + (function () { + var r = function (e, t) { + return ( + (r = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (n, a) { + n.__proto__ = a; + }) || + function (n, a) { + for (var i in a) + Object.prototype.hasOwnProperty.call(a, i) && (n[i] = a[i]); + }), + r(e, t) + ); + }; + return function (e, t) { + if (typeof t != "function" && t !== null) + throw new TypeError( + "Class extends value " + + String(t) + + " is not a constructor or null" + ); + r(e, t); + function n() { + this.constructor = e; + } + e.prototype = + t === null + ? Object.create(t) + : ((n.prototype = t.prototype), new n()); + }; + })(); + Object.defineProperty(Wv, "__esModule", { value: !0 }); + Wv.NodesmithProvider = void 0; + var xCt = Gm(), + TCt = ir(), + ECt = Zs(), + mU = new TCt.Logger(ECt.version), + CCt = "ETHERS_JS_SHARED", + ICt = (function (r) { + _Ct(e, r); + function e() { + return (r !== null && r.apply(this, arguments)) || this; + } + return ( + (e.getApiKey = function (t) { + return ( + t && + typeof t != "string" && + mU.throwArgumentError("invalid apiKey", "apiKey", t), + t || CCt + ); + }), + (e.getUrl = function (t, n) { + mU.warn( + "NodeSmith will be discontinued on 2019-12-20; please migrate to another platform." + ); + var a = null; + switch (t.name) { + case "homestead": + a = "https://ethereum.api.nodesmith.io/v1/mainnet/jsonrpc"; + break; + case "ropsten": + a = "https://ethereum.api.nodesmith.io/v1/ropsten/jsonrpc"; + break; + case "rinkeby": + a = "https://ethereum.api.nodesmith.io/v1/rinkeby/jsonrpc"; + break; + case "goerli": + a = "https://ethereum.api.nodesmith.io/v1/goerli/jsonrpc"; + break; + case "kovan": + a = "https://ethereum.api.nodesmith.io/v1/kovan/jsonrpc"; + break; + default: + mU.throwArgumentError( + "unsupported network", + "network", + arguments[0] + ); + } + return a + "?apiKey=" + n; + }), + e + ); + })(xCt.UrlJsonRpcProvider); + Wv.NodesmithProvider = ICt; + }); + var gye = N((Uv) => { + "use strict"; + _(); + x(); + var ACt = + (Uv && Uv.__extends) || + (function () { + var r = function (e, t) { + return ( + (r = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (n, a) { + n.__proto__ = a; + }) || + function (n, a) { + for (var i in a) + Object.prototype.hasOwnProperty.call(a, i) && (n[i] = a[i]); + }), + r(e, t) + ); + }; + return function (e, t) { + if (typeof t != "function" && t !== null) + throw new TypeError( + "Class extends value " + + String(t) + + " is not a constructor or null" + ); + r(e, t); + function n() { + this.constructor = e; + } + e.prototype = + t === null + ? Object.create(t) + : ((n.prototype = t.prototype), new n()); + }; + })(); + Object.defineProperty(Uv, "__esModule", { value: !0 }); + Uv.PocketProvider = void 0; + var yye = ir(), + kCt = Zs(), + fye = new yye.Logger(kCt.version), + SCt = Gm(), + mye = "62e1ad51b37b8e00394bda3b", + MCt = (function (r) { + ACt(e, r); + function e() { + return (r !== null && r.apply(this, arguments)) || this; + } + return ( + (e.getApiKey = function (t) { + var n = { + applicationId: null, + loadBalancer: !0, + applicationSecretKey: null, + }; + return ( + t == null + ? (n.applicationId = mye) + : typeof t == "string" + ? (n.applicationId = t) + : t.applicationSecretKey != null + ? ((n.applicationId = t.applicationId), + (n.applicationSecretKey = t.applicationSecretKey)) + : t.applicationId + ? (n.applicationId = t.applicationId) + : fye.throwArgumentError( + "unsupported PocketProvider apiKey", + "apiKey", + t + ), + n + ); + }), + (e.getUrl = function (t, n) { + var a = null; + switch (t ? t.name : "unknown") { + case "goerli": + a = "eth-goerli.gateway.pokt.network"; + break; + case "homestead": + a = "eth-mainnet.gateway.pokt.network"; + break; + case "kovan": + a = "poa-kovan.gateway.pokt.network"; + break; + case "matic": + a = "poly-mainnet.gateway.pokt.network"; + break; + case "maticmum": + a = "polygon-mumbai-rpc.gateway.pokt.network"; + break; + case "rinkeby": + a = "eth-rinkeby.gateway.pokt.network"; + break; + case "ropsten": + a = "eth-ropsten.gateway.pokt.network"; + break; + default: + fye.throwError( + "unsupported network", + yye.Logger.errors.INVALID_ARGUMENT, + { argument: "network", value: t } + ); + } + var i = "https://" + a + "/v1/lb/" + n.applicationId, + s = { headers: {}, url: i }; + return ( + n.applicationSecretKey != null && + ((s.user = ""), (s.password = n.applicationSecretKey)), + s + ); + }), + (e.prototype.isCommunityResource = function () { + return this.applicationId === mye; + }), + e + ); + })(SCt.UrlJsonRpcProvider); + Uv.PocketProvider = MCt; + }); + var wye = N((Hv) => { + "use strict"; + _(); + x(); + var PCt = + (Hv && Hv.__extends) || + (function () { + var r = function (e, t) { + return ( + (r = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (n, a) { + n.__proto__ = a; + }) || + function (n, a) { + for (var i in a) + Object.prototype.hasOwnProperty.call(a, i) && (n[i] = a[i]); + }), + r(e, t) + ); + }; + return function (e, t) { + if (typeof t != "function" && t !== null) + throw new TypeError( + "Class extends value " + + String(t) + + " is not a constructor or null" + ); + r(e, t); + function n() { + this.constructor = e; + } + e.prototype = + t === null + ? Object.create(t) + : ((n.prototype = t.prototype), new n()); + }; + })(); + Object.defineProperty(Hv, "__esModule", { value: !0 }); + Hv.Web3Provider = void 0; + var _k = ja(), + RCt = ir(), + BCt = Zs(), + bye = new RCt.Logger(BCt.version), + NCt = Bv(), + OCt = 1; + function vye(r, e) { + var t = "Web3LegacyFetcher"; + return function (n, a) { + var i = this, + s = { method: n, params: a, id: OCt++, jsonrpc: "2.0" }; + return new Promise(function (c, l) { + i.emit("debug", { + action: "request", + fetcher: t, + request: (0, _k.deepCopy)(s), + provider: i, + }), + e(s, function (d, m) { + if (d) + return ( + i.emit("debug", { + action: "response", + fetcher: t, + error: d, + request: s, + provider: i, + }), + l(d) + ); + if ( + (i.emit("debug", { + action: "response", + fetcher: t, + request: s, + response: m, + provider: i, + }), + m.error) + ) { + var w = new Error(m.error.message); + return (w.code = m.error.code), (w.data = m.error.data), l(w); + } + c(m.result); + }); + }); + }; + } + function LCt(r) { + return function (e, t) { + var n = this; + t == null && (t = []); + var a = { method: e, params: t }; + return ( + this.emit("debug", { + action: "request", + fetcher: "Eip1193Fetcher", + request: (0, _k.deepCopy)(a), + provider: this, + }), + r.request(a).then( + function (i) { + return ( + n.emit("debug", { + action: "response", + fetcher: "Eip1193Fetcher", + request: a, + response: i, + provider: n, + }), + i + ); + }, + function (i) { + throw ( + (n.emit("debug", { + action: "response", + fetcher: "Eip1193Fetcher", + request: a, + error: i, + provider: n, + }), + i) + ); + } + ) + ); + }; + } + var DCt = (function (r) { + PCt(e, r); + function e(t, n) { + var a = this; + t == null && bye.throwArgumentError("missing provider", "provider", t); + var i = null, + s = null, + c = null; + return ( + typeof t == "function" + ? ((i = "unknown:"), (s = t)) + : ((i = t.host || t.path || ""), + !i && t.isMetaMask && (i = "metamask"), + (c = t), + t.request + ? (i === "" && (i = "eip-1193:"), (s = LCt(t))) + : t.sendAsync + ? (s = vye(t, t.sendAsync.bind(t))) + : t.send + ? (s = vye(t, t.send.bind(t))) + : bye.throwArgumentError("unsupported provider", "provider", t), + i || (i = "unknown:")), + (a = r.call(this, i, n) || this), + (0, _k.defineReadOnly)(a, "jsonRpcFetchFunc", s), + (0, _k.defineReadOnly)(a, "provider", c), + a + ); + } + return ( + (e.prototype.send = function (t, n) { + return this.jsonRpcFetchFunc(t, n); + }), + e + ); + })(NCt.JsonRpcProvider); + Hv.Web3Provider = DCt; + }); + var bU = N((Zt) => { + "use strict"; + _(); + x(); + Object.defineProperty(Zt, "__esModule", { value: !0 }); + Zt.Formatter = + Zt.showThrottleMessage = + Zt.isCommunityResourcable = + Zt.isCommunityResource = + Zt.getNetwork = + Zt.getDefaultProvider = + Zt.JsonRpcSigner = + Zt.IpcProvider = + Zt.WebSocketProvider = + Zt.Web3Provider = + Zt.StaticJsonRpcProvider = + Zt.PocketProvider = + Zt.NodesmithProvider = + Zt.JsonRpcBatchProvider = + Zt.JsonRpcProvider = + Zt.InfuraWebSocketProvider = + Zt.InfuraProvider = + Zt.EtherscanProvider = + Zt.CloudflareProvider = + Zt.AnkrProvider = + Zt.AlchemyWebSocketProvider = + Zt.AlchemyProvider = + Zt.FallbackProvider = + Zt.UrlJsonRpcProvider = + Zt.Resolver = + Zt.BaseProvider = + Zt.Provider = + void 0; + var qCt = I1(); + Object.defineProperty(Zt, "Provider", { + enumerable: !0, + get: function () { + return qCt.Provider; + }, + }); + var xye = JW(); + Object.defineProperty(Zt, "getNetwork", { + enumerable: !0, + get: function () { + return xye.getNetwork; + }, + }); + var Tye = h5(); + Object.defineProperty(Zt, "BaseProvider", { + enumerable: !0, + get: function () { + return Tye.BaseProvider; + }, + }); + Object.defineProperty(Zt, "Resolver", { + enumerable: !0, + get: function () { + return Tye.Resolver; + }, + }); + var yU = Y0e(); + Object.defineProperty(Zt, "AlchemyProvider", { + enumerable: !0, + get: function () { + return yU.AlchemyProvider; + }, + }); + Object.defineProperty(Zt, "AlchemyWebSocketProvider", { + enumerable: !0, + get: function () { + return yU.AlchemyWebSocketProvider; + }, + }); + var Eye = $0e(); + Object.defineProperty(Zt, "AnkrProvider", { + enumerable: !0, + get: function () { + return Eye.AnkrProvider; + }, + }); + var Cye = Z0e(); + Object.defineProperty(Zt, "CloudflareProvider", { + enumerable: !0, + get: function () { + return Cye.CloudflareProvider; + }, + }); + var Iye = tye(); + Object.defineProperty(Zt, "EtherscanProvider", { + enumerable: !0, + get: function () { + return Iye.EtherscanProvider; + }, + }); + var Aye = sye(); + Object.defineProperty(Zt, "FallbackProvider", { + enumerable: !0, + get: function () { + return Aye.FallbackProvider; + }, + }); + var kye = oye(); + Object.defineProperty(Zt, "IpcProvider", { + enumerable: !0, + get: function () { + return kye.IpcProvider; + }, + }); + var gU = dye(); + Object.defineProperty(Zt, "InfuraProvider", { + enumerable: !0, + get: function () { + return gU.InfuraProvider; + }, + }); + Object.defineProperty(Zt, "InfuraWebSocketProvider", { + enumerable: !0, + get: function () { + return gU.InfuraWebSocketProvider; + }, + }); + var xk = Bv(); + Object.defineProperty(Zt, "JsonRpcProvider", { + enumerable: !0, + get: function () { + return xk.JsonRpcProvider; + }, + }); + Object.defineProperty(Zt, "JsonRpcSigner", { + enumerable: !0, + get: function () { + return xk.JsonRpcSigner; + }, + }); + var FCt = pye(); + Object.defineProperty(Zt, "JsonRpcBatchProvider", { + enumerable: !0, + get: function () { + return FCt.JsonRpcBatchProvider; + }, + }); + var Sye = hye(); + Object.defineProperty(Zt, "NodesmithProvider", { + enumerable: !0, + get: function () { + return Sye.NodesmithProvider; + }, + }); + var Mye = gye(); + Object.defineProperty(Zt, "PocketProvider", { + enumerable: !0, + get: function () { + return Mye.PocketProvider; + }, + }); + var Pye = Gm(); + Object.defineProperty(Zt, "StaticJsonRpcProvider", { + enumerable: !0, + get: function () { + return Pye.StaticJsonRpcProvider; + }, + }); + Object.defineProperty(Zt, "UrlJsonRpcProvider", { + enumerable: !0, + get: function () { + return Pye.UrlJsonRpcProvider; + }, + }); + var Rye = wye(); + Object.defineProperty(Zt, "Web3Provider", { + enumerable: !0, + get: function () { + return Rye.Web3Provider; + }, + }); + var Bye = uk(); + Object.defineProperty(Zt, "WebSocketProvider", { + enumerable: !0, + get: function () { + return Bye.WebSocketProvider; + }, + }); + var Tk = Km(); + Object.defineProperty(Zt, "Formatter", { + enumerable: !0, + get: function () { + return Tk.Formatter; + }, + }); + Object.defineProperty(Zt, "isCommunityResourcable", { + enumerable: !0, + get: function () { + return Tk.isCommunityResourcable; + }, + }); + Object.defineProperty(Zt, "isCommunityResource", { + enumerable: !0, + get: function () { + return Tk.isCommunityResource; + }, + }); + Object.defineProperty(Zt, "showThrottleMessage", { + enumerable: !0, + get: function () { + return Tk.showThrottleMessage; + }, + }); + var Nye = ir(), + WCt = Zs(), + _ye = new Nye.Logger(WCt.version); + function UCt(r, e) { + if ((r == null && (r = "homestead"), typeof r == "string")) { + var t = r.match(/^(ws|http)s?:/i); + if (t) + switch (t[1].toLowerCase()) { + case "http": + case "https": + return new xk.JsonRpcProvider(r); + case "ws": + case "wss": + return new Bye.WebSocketProvider(r); + default: + _ye.throwArgumentError("unsupported URL scheme", "network", r); + } + } + var n = (0, xye.getNetwork)(r); + return ( + (!n || !n._defaultProvider) && + _ye.throwError( + "unsupported getDefaultProvider network", + Nye.Logger.errors.NETWORK_ERROR, + { operation: "getDefaultProvider", network: r } + ), + n._defaultProvider( + { + FallbackProvider: Aye.FallbackProvider, + AlchemyProvider: yU.AlchemyProvider, + AnkrProvider: Eye.AnkrProvider, + CloudflareProvider: Cye.CloudflareProvider, + EtherscanProvider: Iye.EtherscanProvider, + InfuraProvider: gU.InfuraProvider, + JsonRpcProvider: xk.JsonRpcProvider, + NodesmithProvider: Sye.NodesmithProvider, + PocketProvider: Mye.PocketProvider, + Web3Provider: Rye.Web3Provider, + IpcProvider: kye.IpcProvider, + }, + e + ) + ); + } + Zt.getDefaultProvider = UCt; + }); + var Oye = N((Ek) => { + "use strict"; + _(); + x(); + Object.defineProperty(Ek, "__esModule", { value: !0 }); + Ek.version = void 0; + Ek.version = "solidity/5.7.0"; + }); + var Dye = N((Qm) => { + "use strict"; + _(); + x(); + Object.defineProperty(Qm, "__esModule", { value: !0 }); + Qm.sha256 = Qm.keccak256 = Qm.pack = void 0; + var HCt = zi(), + Ld = Dr(), + zCt = Nu(), + jCt = og(), + KCt = Ki(), + VCt = new RegExp("^bytes([0-9]+)$"), + GCt = new RegExp("^(u?int)([0-9]*)$"), + YCt = new RegExp("^(.*)\\[([0-9]*)\\]$"), + $Ct = "0000000000000000000000000000000000000000000000000000000000000000", + JCt = ir(), + ZCt = Oye(), + zv = new JCt.Logger(ZCt.version); + function Lye(r, e, t) { + switch (r) { + case "address": + return t ? (0, Ld.zeroPad)(e, 32) : (0, Ld.arrayify)(e); + case "string": + return (0, KCt.toUtf8Bytes)(e); + case "bytes": + return (0, Ld.arrayify)(e); + case "bool": + return ( + (e = e ? "0x01" : "0x00"), + t ? (0, Ld.zeroPad)(e, 32) : (0, Ld.arrayify)(e) + ); + } + var n = r.match(GCt); + if (n) { + var a = parseInt(n[2] || "256"); + return ( + ((n[2] && String(a) !== n[2]) || a % 8 !== 0 || a === 0 || a > 256) && + zv.throwArgumentError("invalid number type", "type", r), + t && (a = 256), + (e = HCt.BigNumber.from(e).toTwos(a)), + (0, Ld.zeroPad)(e, a / 8) + ); + } + if (((n = r.match(VCt)), n)) { + var a = parseInt(n[1]); + return ( + (String(a) !== n[1] || a === 0 || a > 32) && + zv.throwArgumentError("invalid bytes type", "type", r), + (0, Ld.arrayify)(e).byteLength !== a && + zv.throwArgumentError("invalid value for " + r, "value", e), + t ? (0, Ld.arrayify)((e + $Ct).substring(0, 66)) : e + ); + } + if (((n = r.match(YCt)), n && Array.isArray(e))) { + var i = n[1], + s = parseInt(n[2] || String(e.length)); + s != e.length && + zv.throwArgumentError("invalid array length for " + r, "value", e); + var c = []; + return ( + e.forEach(function (l) { + c.push(Lye(i, l, !0)); + }), + (0, Ld.concat)(c) + ); + } + return zv.throwArgumentError("invalid type", "type", r); + } + function vU(r, e) { + r.length != e.length && + zv.throwArgumentError( + "wrong number of values; expected ${ types.length }", + "values", + e + ); + var t = []; + return ( + r.forEach(function (n, a) { + t.push(Lye(n, e[a])); + }), + (0, Ld.hexlify)((0, Ld.concat)(t)) + ); + } + Qm.pack = vU; + function QCt(r, e) { + return (0, zCt.keccak256)(vU(r, e)); + } + Qm.keccak256 = QCt; + function XCt(r, e) { + return (0, jCt.sha256)(vU(r, e)); + } + Qm.sha256 = XCt; + }); + var qye = N((Ck) => { + "use strict"; + _(); + x(); + Object.defineProperty(Ck, "__esModule", { value: !0 }); + Ck.version = void 0; + Ck.version = "units/5.7.0"; + }); + var jye = N((ql) => { + "use strict"; + _(); + x(); + Object.defineProperty(ql, "__esModule", { value: !0 }); + ql.parseEther = + ql.formatEther = + ql.parseUnits = + ql.formatUnits = + ql.commify = + void 0; + var Fye = zi(), + e8t = ir(), + t8t = qye(), + Wye = new e8t.Logger(t8t.version), + Uye = ["wei", "kwei", "mwei", "gwei", "szabo", "finney", "ether"]; + function r8t(r) { + var e = String(r).split("."); + (e.length > 2 || + !e[0].match(/^-?[0-9]*$/) || + (e[1] && !e[1].match(/^[0-9]*$/)) || + r === "." || + r === "-.") && + Wye.throwArgumentError("invalid value", "value", r); + var t = e[0], + n = ""; + for ( + t.substring(0, 1) === "-" && ((n = "-"), (t = t.substring(1))); + t.substring(0, 1) === "0"; + + ) + t = t.substring(1); + t === "" && (t = "0"); + var a = ""; + for ( + e.length === 2 && (a = "." + (e[1] || "0")); + a.length > 2 && a[a.length - 1] === "0"; + + ) + a = a.substring(0, a.length - 1); + for (var i = []; t.length; ) + if (t.length <= 3) { + i.unshift(t); + break; + } else { + var s = t.length - 3; + i.unshift(t.substring(s)), (t = t.substring(0, s)); + } + return n + i.join(",") + a; + } + ql.commify = r8t; + function Hye(r, e) { + if (typeof e == "string") { + var t = Uye.indexOf(e); + t !== -1 && (e = 3 * t); + } + return (0, Fye.formatFixed)(r, e ?? 18); + } + ql.formatUnits = Hye; + function zye(r, e) { + if ( + (typeof r != "string" && + Wye.throwArgumentError("value must be a string", "value", r), + typeof e == "string") + ) { + var t = Uye.indexOf(e); + t !== -1 && (e = 3 * t); + } + return (0, Fye.parseFixed)(r, e ?? 18); + } + ql.parseUnits = zye; + function n8t(r) { + return Hye(r, 18); + } + ql.formatEther = n8t; + function a8t(r) { + return zye(r, 18); + } + ql.parseEther = a8t; + }); + var hi = N((Ee) => { + "use strict"; + _(); + x(); + var i8t = + (Ee && Ee.__createBinding) || + (Object.create + ? function (r, e, t, n) { + n === void 0 && (n = t), + Object.defineProperty(r, n, { + enumerable: !0, + get: function () { + return e[t]; + }, + }); + } + : function (r, e, t, n) { + n === void 0 && (n = t), (r[n] = e[t]); + }), + s8t = + (Ee && Ee.__setModuleDefault) || + (Object.create + ? function (r, e) { + Object.defineProperty(r, "default", { enumerable: !0, value: e }); + } + : function (r, e) { + r.default = e; + }), + Kye = + (Ee && Ee.__importStar) || + function (r) { + if (r && r.__esModule) return r; + var e = {}; + if (r != null) + for (var t in r) + t !== "default" && + Object.prototype.hasOwnProperty.call(r, t) && + i8t(e, r, t); + return s8t(e, r), e; + }; + Object.defineProperty(Ee, "__esModule", { value: !0 }); + Ee.formatBytes32String = + Ee.Utf8ErrorFuncs = + Ee.toUtf8String = + Ee.toUtf8CodePoints = + Ee.toUtf8Bytes = + Ee._toEscapedUtf8String = + Ee.nameprep = + Ee.hexDataSlice = + Ee.hexDataLength = + Ee.hexZeroPad = + Ee.hexValue = + Ee.hexStripZeros = + Ee.hexConcat = + Ee.isHexString = + Ee.hexlify = + Ee.base64 = + Ee.base58 = + Ee.TransactionDescription = + Ee.LogDescription = + Ee.Interface = + Ee.SigningKey = + Ee.HDNode = + Ee.defaultPath = + Ee.isBytesLike = + Ee.isBytes = + Ee.zeroPad = + Ee.stripZeros = + Ee.concat = + Ee.arrayify = + Ee.shallowCopy = + Ee.resolveProperties = + Ee.getStatic = + Ee.defineReadOnly = + Ee.deepCopy = + Ee.checkProperties = + Ee.poll = + Ee.fetchJson = + Ee._fetchData = + Ee.RLP = + Ee.Logger = + Ee.checkResultErrors = + Ee.FormatTypes = + Ee.ParamType = + Ee.FunctionFragment = + Ee.EventFragment = + Ee.ErrorFragment = + Ee.ConstructorFragment = + Ee.Fragment = + Ee.defaultAbiCoder = + Ee.AbiCoder = + void 0; + Ee.Indexed = + Ee.Utf8ErrorReason = + Ee.UnicodeNormalizationForm = + Ee.SupportedAlgorithm = + Ee.mnemonicToSeed = + Ee.isValidMnemonic = + Ee.entropyToMnemonic = + Ee.mnemonicToEntropy = + Ee.getAccountPath = + Ee.verifyTypedData = + Ee.verifyMessage = + Ee.recoverPublicKey = + Ee.computePublicKey = + Ee.recoverAddress = + Ee.computeAddress = + Ee.getJsonWalletAddress = + Ee.TransactionTypes = + Ee.serializeTransaction = + Ee.parseTransaction = + Ee.accessListify = + Ee.joinSignature = + Ee.splitSignature = + Ee.soliditySha256 = + Ee.solidityKeccak256 = + Ee.solidityPack = + Ee.shuffled = + Ee.randomBytes = + Ee.sha512 = + Ee.sha256 = + Ee.ripemd160 = + Ee.keccak256 = + Ee.computeHmac = + Ee.commify = + Ee.parseUnits = + Ee.formatUnits = + Ee.parseEther = + Ee.formatEther = + Ee.isAddress = + Ee.getCreate2Address = + Ee.getContractAddress = + Ee.getIcapAddress = + Ee.getAddress = + Ee._TypedDataEncoder = + Ee.id = + Ee.isValidName = + Ee.namehash = + Ee.hashMessage = + Ee.dnsEncode = + Ee.parseBytes32String = + void 0; + var tu = yD(); + Object.defineProperty(Ee, "AbiCoder", { + enumerable: !0, + get: function () { + return tu.AbiCoder; + }, + }); + Object.defineProperty(Ee, "checkResultErrors", { + enumerable: !0, + get: function () { + return tu.checkResultErrors; + }, + }); + Object.defineProperty(Ee, "ConstructorFragment", { + enumerable: !0, + get: function () { + return tu.ConstructorFragment; + }, + }); + Object.defineProperty(Ee, "defaultAbiCoder", { + enumerable: !0, + get: function () { + return tu.defaultAbiCoder; + }, + }); + Object.defineProperty(Ee, "ErrorFragment", { + enumerable: !0, + get: function () { + return tu.ErrorFragment; + }, + }); + Object.defineProperty(Ee, "EventFragment", { + enumerable: !0, + get: function () { + return tu.EventFragment; + }, + }); + Object.defineProperty(Ee, "FormatTypes", { + enumerable: !0, + get: function () { + return tu.FormatTypes; + }, + }); + Object.defineProperty(Ee, "Fragment", { + enumerable: !0, + get: function () { + return tu.Fragment; + }, + }); + Object.defineProperty(Ee, "FunctionFragment", { + enumerable: !0, + get: function () { + return tu.FunctionFragment; + }, + }); + Object.defineProperty(Ee, "Indexed", { + enumerable: !0, + get: function () { + return tu.Indexed; + }, + }); + Object.defineProperty(Ee, "Interface", { + enumerable: !0, + get: function () { + return tu.Interface; + }, + }); + Object.defineProperty(Ee, "LogDescription", { + enumerable: !0, + get: function () { + return tu.LogDescription; + }, + }); + Object.defineProperty(Ee, "ParamType", { + enumerable: !0, + get: function () { + return tu.ParamType; + }, + }); + Object.defineProperty(Ee, "TransactionDescription", { + enumerable: !0, + get: function () { + return tu.TransactionDescription; + }, + }); + var _5 = dl(); + Object.defineProperty(Ee, "getAddress", { + enumerable: !0, + get: function () { + return _5.getAddress; + }, + }); + Object.defineProperty(Ee, "getCreate2Address", { + enumerable: !0, + get: function () { + return _5.getCreate2Address; + }, + }); + Object.defineProperty(Ee, "getContractAddress", { + enumerable: !0, + get: function () { + return _5.getContractAddress; + }, + }); + Object.defineProperty(Ee, "getIcapAddress", { + enumerable: !0, + get: function () { + return _5.getIcapAddress; + }, + }); + Object.defineProperty(Ee, "isAddress", { + enumerable: !0, + get: function () { + return _5.isAddress; + }, + }); + var o8t = Kye(qx()); + Ee.base64 = o8t; + var c8t = CA(); + Object.defineProperty(Ee, "base58", { + enumerable: !0, + get: function () { + return c8t.Base58; + }, + }); + var ko = Dr(); + Object.defineProperty(Ee, "arrayify", { + enumerable: !0, + get: function () { + return ko.arrayify; + }, + }); + Object.defineProperty(Ee, "concat", { + enumerable: !0, + get: function () { + return ko.concat; + }, + }); + Object.defineProperty(Ee, "hexConcat", { + enumerable: !0, + get: function () { + return ko.hexConcat; + }, + }); + Object.defineProperty(Ee, "hexDataSlice", { + enumerable: !0, + get: function () { + return ko.hexDataSlice; + }, + }); + Object.defineProperty(Ee, "hexDataLength", { + enumerable: !0, + get: function () { + return ko.hexDataLength; + }, + }); + Object.defineProperty(Ee, "hexlify", { + enumerable: !0, + get: function () { + return ko.hexlify; + }, + }); + Object.defineProperty(Ee, "hexStripZeros", { + enumerable: !0, + get: function () { + return ko.hexStripZeros; + }, + }); + Object.defineProperty(Ee, "hexValue", { + enumerable: !0, + get: function () { + return ko.hexValue; + }, + }); + Object.defineProperty(Ee, "hexZeroPad", { + enumerable: !0, + get: function () { + return ko.hexZeroPad; + }, + }); + Object.defineProperty(Ee, "isBytes", { + enumerable: !0, + get: function () { + return ko.isBytes; + }, + }); + Object.defineProperty(Ee, "isBytesLike", { + enumerable: !0, + get: function () { + return ko.isBytesLike; + }, + }); + Object.defineProperty(Ee, "isHexString", { + enumerable: !0, + get: function () { + return ko.isHexString; + }, + }); + Object.defineProperty(Ee, "joinSignature", { + enumerable: !0, + get: function () { + return ko.joinSignature; + }, + }); + Object.defineProperty(Ee, "zeroPad", { + enumerable: !0, + get: function () { + return ko.zeroPad; + }, + }); + Object.defineProperty(Ee, "splitSignature", { + enumerable: !0, + get: function () { + return ko.splitSignature; + }, + }); + Object.defineProperty(Ee, "stripZeros", { + enumerable: !0, + get: function () { + return ko.stripZeros; + }, + }); + var jv = Ey(); + Object.defineProperty(Ee, "_TypedDataEncoder", { + enumerable: !0, + get: function () { + return jv._TypedDataEncoder; + }, + }); + Object.defineProperty(Ee, "dnsEncode", { + enumerable: !0, + get: function () { + return jv.dnsEncode; + }, + }); + Object.defineProperty(Ee, "hashMessage", { + enumerable: !0, + get: function () { + return jv.hashMessage; + }, + }); + Object.defineProperty(Ee, "id", { + enumerable: !0, + get: function () { + return jv.id; + }, + }); + Object.defineProperty(Ee, "isValidName", { + enumerable: !0, + get: function () { + return jv.isValidName; + }, + }); + Object.defineProperty(Ee, "namehash", { + enumerable: !0, + get: function () { + return jv.namehash; + }, + }); + var mg = WA(); + Object.defineProperty(Ee, "defaultPath", { + enumerable: !0, + get: function () { + return mg.defaultPath; + }, + }); + Object.defineProperty(Ee, "entropyToMnemonic", { + enumerable: !0, + get: function () { + return mg.entropyToMnemonic; + }, + }); + Object.defineProperty(Ee, "getAccountPath", { + enumerable: !0, + get: function () { + return mg.getAccountPath; + }, + }); + Object.defineProperty(Ee, "HDNode", { + enumerable: !0, + get: function () { + return mg.HDNode; + }, + }); + Object.defineProperty(Ee, "isValidMnemonic", { + enumerable: !0, + get: function () { + return mg.isValidMnemonic; + }, + }); + Object.defineProperty(Ee, "mnemonicToEntropy", { + enumerable: !0, + get: function () { + return mg.mnemonicToEntropy; + }, + }); + Object.defineProperty(Ee, "mnemonicToSeed", { + enumerable: !0, + get: function () { + return mg.mnemonicToSeed; + }, + }); + var u8t = VW(); + Object.defineProperty(Ee, "getJsonWalletAddress", { + enumerable: !0, + get: function () { + return u8t.getJsonWalletAddress; + }, + }); + var l8t = Nu(); + Object.defineProperty(Ee, "keccak256", { + enumerable: !0, + get: function () { + return l8t.keccak256; + }, + }); + var d8t = ir(); + Object.defineProperty(Ee, "Logger", { + enumerable: !0, + get: function () { + return d8t.Logger; + }, + }); + var Ik = og(); + Object.defineProperty(Ee, "computeHmac", { + enumerable: !0, + get: function () { + return Ik.computeHmac; + }, + }); + Object.defineProperty(Ee, "ripemd160", { + enumerable: !0, + get: function () { + return Ik.ripemd160; + }, + }); + Object.defineProperty(Ee, "sha256", { + enumerable: !0, + get: function () { + return Ik.sha256; + }, + }); + Object.defineProperty(Ee, "sha512", { + enumerable: !0, + get: function () { + return Ik.sha512; + }, + }); + var wU = Dye(); + Object.defineProperty(Ee, "solidityKeccak256", { + enumerable: !0, + get: function () { + return wU.keccak256; + }, + }); + Object.defineProperty(Ee, "solidityPack", { + enumerable: !0, + get: function () { + return wU.pack; + }, + }); + Object.defineProperty(Ee, "soliditySha256", { + enumerable: !0, + get: function () { + return wU.sha256; + }, + }); + var Vye = n5(); + Object.defineProperty(Ee, "randomBytes", { + enumerable: !0, + get: function () { + return Vye.randomBytes; + }, + }); + Object.defineProperty(Ee, "shuffled", { + enumerable: !0, + get: function () { + return Vye.shuffled; + }, + }); + var Kv = ja(); + Object.defineProperty(Ee, "checkProperties", { + enumerable: !0, + get: function () { + return Kv.checkProperties; + }, + }); + Object.defineProperty(Ee, "deepCopy", { + enumerable: !0, + get: function () { + return Kv.deepCopy; + }, + }); + Object.defineProperty(Ee, "defineReadOnly", { + enumerable: !0, + get: function () { + return Kv.defineReadOnly; + }, + }); + Object.defineProperty(Ee, "getStatic", { + enumerable: !0, + get: function () { + return Kv.getStatic; + }, + }); + Object.defineProperty(Ee, "resolveProperties", { + enumerable: !0, + get: function () { + return Kv.resolveProperties; + }, + }); + Object.defineProperty(Ee, "shallowCopy", { + enumerable: !0, + get: function () { + return Kv.shallowCopy; + }, + }); + var p8t = Kye($8()); + Ee.RLP = p8t; + var _U = UT(); + Object.defineProperty(Ee, "computePublicKey", { + enumerable: !0, + get: function () { + return _U.computePublicKey; + }, + }); + Object.defineProperty(Ee, "recoverPublicKey", { + enumerable: !0, + get: function () { + return _U.recoverPublicKey; + }, + }); + Object.defineProperty(Ee, "SigningKey", { + enumerable: !0, + get: function () { + return _U.SigningKey; + }, + }); + var Xm = Ki(); + Object.defineProperty(Ee, "formatBytes32String", { + enumerable: !0, + get: function () { + return Xm.formatBytes32String; + }, + }); + Object.defineProperty(Ee, "nameprep", { + enumerable: !0, + get: function () { + return Xm.nameprep; + }, + }); + Object.defineProperty(Ee, "parseBytes32String", { + enumerable: !0, + get: function () { + return Xm.parseBytes32String; + }, + }); + Object.defineProperty(Ee, "_toEscapedUtf8String", { + enumerable: !0, + get: function () { + return Xm._toEscapedUtf8String; + }, + }); + Object.defineProperty(Ee, "toUtf8Bytes", { + enumerable: !0, + get: function () { + return Xm.toUtf8Bytes; + }, + }); + Object.defineProperty(Ee, "toUtf8CodePoints", { + enumerable: !0, + get: function () { + return Xm.toUtf8CodePoints; + }, + }); + Object.defineProperty(Ee, "toUtf8String", { + enumerable: !0, + get: function () { + return Xm.toUtf8String; + }, + }); + Object.defineProperty(Ee, "Utf8ErrorFuncs", { + enumerable: !0, + get: function () { + return Xm.Utf8ErrorFuncs; + }, + }); + var Vv = lf(); + Object.defineProperty(Ee, "accessListify", { + enumerable: !0, + get: function () { + return Vv.accessListify; + }, + }); + Object.defineProperty(Ee, "computeAddress", { + enumerable: !0, + get: function () { + return Vv.computeAddress; + }, + }); + Object.defineProperty(Ee, "parseTransaction", { + enumerable: !0, + get: function () { + return Vv.parse; + }, + }); + Object.defineProperty(Ee, "recoverAddress", { + enumerable: !0, + get: function () { + return Vv.recoverAddress; + }, + }); + Object.defineProperty(Ee, "serializeTransaction", { + enumerable: !0, + get: function () { + return Vv.serialize; + }, + }); + Object.defineProperty(Ee, "TransactionTypes", { + enumerable: !0, + get: function () { + return Vv.TransactionTypes; + }, + }); + var x5 = jye(); + Object.defineProperty(Ee, "commify", { + enumerable: !0, + get: function () { + return x5.commify; + }, + }); + Object.defineProperty(Ee, "formatEther", { + enumerable: !0, + get: function () { + return x5.formatEther; + }, + }); + Object.defineProperty(Ee, "parseEther", { + enumerable: !0, + get: function () { + return x5.parseEther; + }, + }); + Object.defineProperty(Ee, "formatUnits", { + enumerable: !0, + get: function () { + return x5.formatUnits; + }, + }); + Object.defineProperty(Ee, "parseUnits", { + enumerable: !0, + get: function () { + return x5.parseUnits; + }, + }); + var Gye = $W(); + Object.defineProperty(Ee, "verifyMessage", { + enumerable: !0, + get: function () { + return Gye.verifyMessage; + }, + }); + Object.defineProperty(Ee, "verifyTypedData", { + enumerable: !0, + get: function () { + return Gye.verifyTypedData; + }, + }); + var xU = hg(); + Object.defineProperty(Ee, "_fetchData", { + enumerable: !0, + get: function () { + return xU._fetchData; + }, + }); + Object.defineProperty(Ee, "fetchJson", { + enumerable: !0, + get: function () { + return xU.fetchJson; + }, + }); + Object.defineProperty(Ee, "poll", { + enumerable: !0, + get: function () { + return xU.poll; + }, + }); + var h8t = og(); + Object.defineProperty(Ee, "SupportedAlgorithm", { + enumerable: !0, + get: function () { + return h8t.SupportedAlgorithm; + }, + }); + var Yye = Ki(); + Object.defineProperty(Ee, "UnicodeNormalizationForm", { + enumerable: !0, + get: function () { + return Yye.UnicodeNormalizationForm; + }, + }); + Object.defineProperty(Ee, "Utf8ErrorReason", { + enumerable: !0, + get: function () { + return Yye.Utf8ErrorReason; + }, + }); + }); + var $ye = N((Ak) => { + "use strict"; + _(); + x(); + Object.defineProperty(Ak, "__esModule", { value: !0 }); + Ak.version = void 0; + Ak.version = "ethers/5.7.2"; + }); + var CU = N((Nr) => { + "use strict"; + _(); + x(); + var f8t = + (Nr && Nr.__createBinding) || + (Object.create + ? function (r, e, t, n) { + n === void 0 && (n = t), + Object.defineProperty(r, n, { + enumerable: !0, + get: function () { + return e[t]; + }, + }); + } + : function (r, e, t, n) { + n === void 0 && (n = t), (r[n] = e[t]); + }), + m8t = + (Nr && Nr.__setModuleDefault) || + (Object.create + ? function (r, e) { + Object.defineProperty(r, "default", { enumerable: !0, value: e }); + } + : function (r, e) { + r.default = e; + }), + TU = + (Nr && Nr.__importStar) || + function (r) { + if (r && r.__esModule) return r; + var e = {}; + if (r != null) + for (var t in r) + t !== "default" && + Object.prototype.hasOwnProperty.call(r, t) && + f8t(e, r, t); + return m8t(e, r), e; + }; + Object.defineProperty(Nr, "__esModule", { value: !0 }); + Nr.Wordlist = + Nr.version = + Nr.wordlists = + Nr.utils = + Nr.logger = + Nr.errors = + Nr.constants = + Nr.FixedNumber = + Nr.BigNumber = + Nr.ContractFactory = + Nr.Contract = + Nr.BaseContract = + Nr.providers = + Nr.getDefaultProvider = + Nr.VoidSigner = + Nr.Wallet = + Nr.Signer = + void 0; + var EU = Afe(); + Object.defineProperty(Nr, "BaseContract", { + enumerable: !0, + get: function () { + return EU.BaseContract; + }, + }); + Object.defineProperty(Nr, "Contract", { + enumerable: !0, + get: function () { + return EU.Contract; + }, + }); + Object.defineProperty(Nr, "ContractFactory", { + enumerable: !0, + get: function () { + return EU.ContractFactory; + }, + }); + var Jye = zi(); + Object.defineProperty(Nr, "BigNumber", { + enumerable: !0, + get: function () { + return Jye.BigNumber; + }, + }); + Object.defineProperty(Nr, "FixedNumber", { + enumerable: !0, + get: function () { + return Jye.FixedNumber; + }, + }); + var Zye = Ux(); + Object.defineProperty(Nr, "Signer", { + enumerable: !0, + get: function () { + return Zye.Signer; + }, + }); + Object.defineProperty(Nr, "VoidSigner", { + enumerable: !0, + get: function () { + return Zye.VoidSigner; + }, + }); + var y8t = $W(); + Object.defineProperty(Nr, "Wallet", { + enumerable: !0, + get: function () { + return y8t.Wallet; + }, + }); + var g8t = TU(vy()); + Nr.constants = g8t; + var b8t = TU(bU()); + Nr.providers = b8t; + var v8t = bU(); + Object.defineProperty(Nr, "getDefaultProvider", { + enumerable: !0, + get: function () { + return v8t.getDefaultProvider; + }, + }); + var Qye = BW(); + Object.defineProperty(Nr, "Wordlist", { + enumerable: !0, + get: function () { + return Qye.Wordlist; + }, + }); + Object.defineProperty(Nr, "wordlists", { + enumerable: !0, + get: function () { + return Qye.wordlists; + }, + }); + var w8t = TU(hi()); + Nr.utils = w8t; + var Xye = ir(); + Object.defineProperty(Nr, "errors", { + enumerable: !0, + get: function () { + return Xye.ErrorCode; + }, + }); + var ege = $ye(); + Object.defineProperty(Nr, "version", { + enumerable: !0, + get: function () { + return ege.version; + }, + }); + var _8t = new Xye.Logger(ege.version); + Nr.logger = _8t; + }); + var wt = N((kr) => { + "use strict"; + _(); + x(); + var x8t = + (kr && kr.__createBinding) || + (Object.create + ? function (r, e, t, n) { + n === void 0 && (n = t), + Object.defineProperty(r, n, { + enumerable: !0, + get: function () { + return e[t]; + }, + }); + } + : function (r, e, t, n) { + n === void 0 && (n = t), (r[n] = e[t]); + }), + T8t = + (kr && kr.__setModuleDefault) || + (Object.create + ? function (r, e) { + Object.defineProperty(r, "default", { enumerable: !0, value: e }); + } + : function (r, e) { + r.default = e; + }), + E8t = + (kr && kr.__importStar) || + function (r) { + if (r && r.__esModule) return r; + var e = {}; + if (r != null) + for (var t in r) + t !== "default" && + Object.prototype.hasOwnProperty.call(r, t) && + x8t(e, r, t); + return T8t(e, r), e; + }; + Object.defineProperty(kr, "__esModule", { value: !0 }); + kr.Wordlist = + kr.version = + kr.wordlists = + kr.utils = + kr.logger = + kr.errors = + kr.constants = + kr.FixedNumber = + kr.BigNumber = + kr.ContractFactory = + kr.Contract = + kr.BaseContract = + kr.providers = + kr.getDefaultProvider = + kr.VoidSigner = + kr.Wallet = + kr.Signer = + kr.ethers = + void 0; + var tge = E8t(CU()); + kr.ethers = tge; + try { + (IU = window), IU._ethers == null && (IU._ethers = tge); + } catch {} + var IU, + Qs = CU(); + Object.defineProperty(kr, "Signer", { + enumerable: !0, + get: function () { + return Qs.Signer; + }, + }); + Object.defineProperty(kr, "Wallet", { + enumerable: !0, + get: function () { + return Qs.Wallet; + }, + }); + Object.defineProperty(kr, "VoidSigner", { + enumerable: !0, + get: function () { + return Qs.VoidSigner; + }, + }); + Object.defineProperty(kr, "getDefaultProvider", { + enumerable: !0, + get: function () { + return Qs.getDefaultProvider; + }, + }); + Object.defineProperty(kr, "providers", { + enumerable: !0, + get: function () { + return Qs.providers; + }, + }); + Object.defineProperty(kr, "BaseContract", { + enumerable: !0, + get: function () { + return Qs.BaseContract; + }, + }); + Object.defineProperty(kr, "Contract", { + enumerable: !0, + get: function () { + return Qs.Contract; + }, + }); + Object.defineProperty(kr, "ContractFactory", { + enumerable: !0, + get: function () { + return Qs.ContractFactory; + }, + }); + Object.defineProperty(kr, "BigNumber", { + enumerable: !0, + get: function () { + return Qs.BigNumber; + }, + }); + Object.defineProperty(kr, "FixedNumber", { + enumerable: !0, + get: function () { + return Qs.FixedNumber; + }, + }); + Object.defineProperty(kr, "constants", { + enumerable: !0, + get: function () { + return Qs.constants; + }, + }); + Object.defineProperty(kr, "errors", { + enumerable: !0, + get: function () { + return Qs.errors; + }, + }); + Object.defineProperty(kr, "logger", { + enumerable: !0, + get: function () { + return Qs.logger; + }, + }); + Object.defineProperty(kr, "utils", { + enumerable: !0, + get: function () { + return Qs.utils; + }, + }); + Object.defineProperty(kr, "wordlists", { + enumerable: !0, + get: function () { + return Qs.wordlists; + }, + }); + Object.defineProperty(kr, "version", { + enumerable: !0, + get: function () { + return Qs.version; + }, + }); + Object.defineProperty(kr, "Wordlist", { + enumerable: !0, + get: function () { + return Qs.Wordlist; + }, + }); + }); + var kU = N((AU) => { + "use strict"; + _(); + x(); + Object.defineProperty(AU, "__esModule", { value: !0 }); + AU.default = I8t; + var kk, + C8t = new Uint8Array(16); + function I8t() { + if ( + !kk && + ((kk = + typeof crypto < "u" && + crypto.getRandomValues && + crypto.getRandomValues.bind(crypto)), + !kk) + ) + throw new Error( + "crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported" + ); + return kk(C8t); + } + }); + var rge = N((Sk) => { + "use strict"; + _(); + x(); + Object.defineProperty(Sk, "__esModule", { value: !0 }); + Sk.default = void 0; + var A8t = + /^(?:[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; + Sk.default = A8t; + }); + var T5 = N((Mk) => { + "use strict"; + _(); + x(); + Object.defineProperty(Mk, "__esModule", { value: !0 }); + Mk.default = void 0; + var k8t = S8t(rge()); + function S8t(r) { + return r && r.__esModule ? r : { default: r }; + } + function M8t(r) { + return typeof r == "string" && k8t.default.test(r); + } + var P8t = M8t; + Mk.default = P8t; + }); + var C5 = N((E5) => { + "use strict"; + _(); + x(); + Object.defineProperty(E5, "__esModule", { value: !0 }); + E5.default = void 0; + E5.unsafeStringify = nge; + var R8t = B8t(T5()); + function B8t(r) { + return r && r.__esModule ? r : { default: r }; + } + var Xs = []; + for (let r = 0; r < 256; ++r) Xs.push((r + 256).toString(16).slice(1)); + function nge(r, e = 0) { + return ( + Xs[r[e + 0]] + + Xs[r[e + 1]] + + Xs[r[e + 2]] + + Xs[r[e + 3]] + + "-" + + Xs[r[e + 4]] + + Xs[r[e + 5]] + + "-" + + Xs[r[e + 6]] + + Xs[r[e + 7]] + + "-" + + Xs[r[e + 8]] + + Xs[r[e + 9]] + + "-" + + Xs[r[e + 10]] + + Xs[r[e + 11]] + + Xs[r[e + 12]] + + Xs[r[e + 13]] + + Xs[r[e + 14]] + + Xs[r[e + 15]] + ).toLowerCase(); + } + function N8t(r, e = 0) { + let t = nge(r, e); + if (!(0, R8t.default)(t)) throw TypeError("Stringified UUID is invalid"); + return t; + } + var O8t = N8t; + E5.default = O8t; + }); + var ige = N((Pk) => { + "use strict"; + _(); + x(); + Object.defineProperty(Pk, "__esModule", { value: !0 }); + Pk.default = void 0; + var L8t = q8t(kU()), + D8t = C5(); + function q8t(r) { + return r && r.__esModule ? r : { default: r }; + } + var age, + SU, + MU = 0, + PU = 0; + function F8t(r, e, t) { + let n = (e && t) || 0, + a = e || new Array(16); + r = r || {}; + let i = r.node || age, + s = r.clockseq !== void 0 ? r.clockseq : SU; + if (i == null || s == null) { + let C = r.random || (r.rng || L8t.default)(); + i == null && (i = age = [C[0] | 1, C[1], C[2], C[3], C[4], C[5]]), + s == null && (s = SU = ((C[6] << 8) | C[7]) & 16383); + } + let c = r.msecs !== void 0 ? r.msecs : Date.now(), + l = r.nsecs !== void 0 ? r.nsecs : PU + 1, + d = c - MU + (l - PU) / 1e4; + if ( + (d < 0 && r.clockseq === void 0 && (s = (s + 1) & 16383), + (d < 0 || c > MU) && r.nsecs === void 0 && (l = 0), + l >= 1e4) + ) + throw new Error("uuid.v1(): Can't create more than 10M uuids/sec"); + (MU = c), (PU = l), (SU = s), (c += 122192928e5); + let m = ((c & 268435455) * 1e4 + l) % 4294967296; + (a[n++] = (m >>> 24) & 255), + (a[n++] = (m >>> 16) & 255), + (a[n++] = (m >>> 8) & 255), + (a[n++] = m & 255); + let w = ((c / 4294967296) * 1e4) & 268435455; + (a[n++] = (w >>> 8) & 255), + (a[n++] = w & 255), + (a[n++] = ((w >>> 24) & 15) | 16), + (a[n++] = (w >>> 16) & 255), + (a[n++] = (s >>> 8) | 128), + (a[n++] = s & 255); + for (let C = 0; C < 6; ++C) a[n + C] = i[C]; + return e || (0, D8t.unsafeStringify)(a); + } + var W8t = F8t; + Pk.default = W8t; + }); + var RU = N((Rk) => { + "use strict"; + _(); + x(); + Object.defineProperty(Rk, "__esModule", { value: !0 }); + Rk.default = void 0; + var U8t = H8t(T5()); + function H8t(r) { + return r && r.__esModule ? r : { default: r }; + } + function z8t(r) { + if (!(0, U8t.default)(r)) throw TypeError("Invalid UUID"); + let e, + t = new Uint8Array(16); + return ( + (t[0] = (e = parseInt(r.slice(0, 8), 16)) >>> 24), + (t[1] = (e >>> 16) & 255), + (t[2] = (e >>> 8) & 255), + (t[3] = e & 255), + (t[4] = (e = parseInt(r.slice(9, 13), 16)) >>> 8), + (t[5] = e & 255), + (t[6] = (e = parseInt(r.slice(14, 18), 16)) >>> 8), + (t[7] = e & 255), + (t[8] = (e = parseInt(r.slice(19, 23), 16)) >>> 8), + (t[9] = e & 255), + (t[10] = ((e = parseInt(r.slice(24, 36), 16)) / 1099511627776) & 255), + (t[11] = (e / 4294967296) & 255), + (t[12] = (e >>> 24) & 255), + (t[13] = (e >>> 16) & 255), + (t[14] = (e >>> 8) & 255), + (t[15] = e & 255), + t + ); + } + var j8t = z8t; + Rk.default = j8t; + }); + var BU = N((yg) => { + "use strict"; + _(); + x(); + Object.defineProperty(yg, "__esModule", { value: !0 }); + yg.URL = yg.DNS = void 0; + yg.default = $8t; + var K8t = C5(), + V8t = G8t(RU()); + function G8t(r) { + return r && r.__esModule ? r : { default: r }; + } + function Y8t(r) { + r = unescape(encodeURIComponent(r)); + let e = []; + for (let t = 0; t < r.length; ++t) e.push(r.charCodeAt(t)); + return e; + } + var sge = "6ba7b810-9dad-11d1-80b4-00c04fd430c8"; + yg.DNS = sge; + var oge = "6ba7b811-9dad-11d1-80b4-00c04fd430c8"; + yg.URL = oge; + function $8t(r, e, t) { + function n(a, i, s, c) { + var l; + if ( + (typeof a == "string" && (a = Y8t(a)), + typeof i == "string" && (i = (0, V8t.default)(i)), + ((l = i) === null || l === void 0 ? void 0 : l.length) !== 16) + ) + throw TypeError( + "Namespace must be array-like (16 iterable integer values, 0-255)" + ); + let d = new Uint8Array(16 + a.length); + if ( + (d.set(i), + d.set(a, i.length), + (d = t(d)), + (d[6] = (d[6] & 15) | e), + (d[8] = (d[8] & 63) | 128), + s) + ) { + c = c || 0; + for (let m = 0; m < 16; ++m) s[c + m] = d[m]; + return s; + } + return (0, K8t.unsafeStringify)(d); + } + try { + n.name = r; + } catch {} + return (n.DNS = sge), (n.URL = oge), n; + } + }); + var uge = N((Nk) => { + "use strict"; + _(); + x(); + Object.defineProperty(Nk, "__esModule", { value: !0 }); + Nk.default = void 0; + function J8t(r) { + if (typeof r == "string") { + let e = unescape(encodeURIComponent(r)); + r = new Uint8Array(e.length); + for (let t = 0; t < e.length; ++t) r[t] = e.charCodeAt(t); + } + return Z8t(Q8t(X8t(r), r.length * 8)); + } + function Z8t(r) { + let e = [], + t = r.length * 32, + n = "0123456789abcdef"; + for (let a = 0; a < t; a += 8) { + let i = (r[a >> 5] >>> a % 32) & 255, + s = parseInt(n.charAt((i >>> 4) & 15) + n.charAt(i & 15), 16); + e.push(s); + } + return e; + } + function cge(r) { + return (((r + 64) >>> 9) << 4) + 14 + 1; + } + function Q8t(r, e) { + (r[e >> 5] |= 128 << e % 32), (r[cge(e) - 1] = e); + let t = 1732584193, + n = -271733879, + a = -1732584194, + i = 271733878; + for (let s = 0; s < r.length; s += 16) { + let c = t, + l = n, + d = a, + m = i; + (t = So(t, n, a, i, r[s], 7, -680876936)), + (i = So(i, t, n, a, r[s + 1], 12, -389564586)), + (a = So(a, i, t, n, r[s + 2], 17, 606105819)), + (n = So(n, a, i, t, r[s + 3], 22, -1044525330)), + (t = So(t, n, a, i, r[s + 4], 7, -176418897)), + (i = So(i, t, n, a, r[s + 5], 12, 1200080426)), + (a = So(a, i, t, n, r[s + 6], 17, -1473231341)), + (n = So(n, a, i, t, r[s + 7], 22, -45705983)), + (t = So(t, n, a, i, r[s + 8], 7, 1770035416)), + (i = So(i, t, n, a, r[s + 9], 12, -1958414417)), + (a = So(a, i, t, n, r[s + 10], 17, -42063)), + (n = So(n, a, i, t, r[s + 11], 22, -1990404162)), + (t = So(t, n, a, i, r[s + 12], 7, 1804603682)), + (i = So(i, t, n, a, r[s + 13], 12, -40341101)), + (a = So(a, i, t, n, r[s + 14], 17, -1502002290)), + (n = So(n, a, i, t, r[s + 15], 22, 1236535329)), + (t = Mo(t, n, a, i, r[s + 1], 5, -165796510)), + (i = Mo(i, t, n, a, r[s + 6], 9, -1069501632)), + (a = Mo(a, i, t, n, r[s + 11], 14, 643717713)), + (n = Mo(n, a, i, t, r[s], 20, -373897302)), + (t = Mo(t, n, a, i, r[s + 5], 5, -701558691)), + (i = Mo(i, t, n, a, r[s + 10], 9, 38016083)), + (a = Mo(a, i, t, n, r[s + 15], 14, -660478335)), + (n = Mo(n, a, i, t, r[s + 4], 20, -405537848)), + (t = Mo(t, n, a, i, r[s + 9], 5, 568446438)), + (i = Mo(i, t, n, a, r[s + 14], 9, -1019803690)), + (a = Mo(a, i, t, n, r[s + 3], 14, -187363961)), + (n = Mo(n, a, i, t, r[s + 8], 20, 1163531501)), + (t = Mo(t, n, a, i, r[s + 13], 5, -1444681467)), + (i = Mo(i, t, n, a, r[s + 2], 9, -51403784)), + (a = Mo(a, i, t, n, r[s + 7], 14, 1735328473)), + (n = Mo(n, a, i, t, r[s + 12], 20, -1926607734)), + (t = Po(t, n, a, i, r[s + 5], 4, -378558)), + (i = Po(i, t, n, a, r[s + 8], 11, -2022574463)), + (a = Po(a, i, t, n, r[s + 11], 16, 1839030562)), + (n = Po(n, a, i, t, r[s + 14], 23, -35309556)), + (t = Po(t, n, a, i, r[s + 1], 4, -1530992060)), + (i = Po(i, t, n, a, r[s + 4], 11, 1272893353)), + (a = Po(a, i, t, n, r[s + 7], 16, -155497632)), + (n = Po(n, a, i, t, r[s + 10], 23, -1094730640)), + (t = Po(t, n, a, i, r[s + 13], 4, 681279174)), + (i = Po(i, t, n, a, r[s], 11, -358537222)), + (a = Po(a, i, t, n, r[s + 3], 16, -722521979)), + (n = Po(n, a, i, t, r[s + 6], 23, 76029189)), + (t = Po(t, n, a, i, r[s + 9], 4, -640364487)), + (i = Po(i, t, n, a, r[s + 12], 11, -421815835)), + (a = Po(a, i, t, n, r[s + 15], 16, 530742520)), + (n = Po(n, a, i, t, r[s + 2], 23, -995338651)), + (t = Ro(t, n, a, i, r[s], 6, -198630844)), + (i = Ro(i, t, n, a, r[s + 7], 10, 1126891415)), + (a = Ro(a, i, t, n, r[s + 14], 15, -1416354905)), + (n = Ro(n, a, i, t, r[s + 5], 21, -57434055)), + (t = Ro(t, n, a, i, r[s + 12], 6, 1700485571)), + (i = Ro(i, t, n, a, r[s + 3], 10, -1894986606)), + (a = Ro(a, i, t, n, r[s + 10], 15, -1051523)), + (n = Ro(n, a, i, t, r[s + 1], 21, -2054922799)), + (t = Ro(t, n, a, i, r[s + 8], 6, 1873313359)), + (i = Ro(i, t, n, a, r[s + 15], 10, -30611744)), + (a = Ro(a, i, t, n, r[s + 6], 15, -1560198380)), + (n = Ro(n, a, i, t, r[s + 13], 21, 1309151649)), + (t = Ro(t, n, a, i, r[s + 4], 6, -145523070)), + (i = Ro(i, t, n, a, r[s + 11], 10, -1120210379)), + (a = Ro(a, i, t, n, r[s + 2], 15, 718787259)), + (n = Ro(n, a, i, t, r[s + 9], 21, -343485551)), + (t = e0(t, c)), + (n = e0(n, l)), + (a = e0(a, d)), + (i = e0(i, m)); + } + return [t, n, a, i]; + } + function X8t(r) { + if (r.length === 0) return []; + let e = r.length * 8, + t = new Uint32Array(cge(e)); + for (let n = 0; n < e; n += 8) t[n >> 5] |= (r[n / 8] & 255) << n % 32; + return t; + } + function e0(r, e) { + let t = (r & 65535) + (e & 65535); + return (((r >> 16) + (e >> 16) + (t >> 16)) << 16) | (t & 65535); + } + function e4t(r, e) { + return (r << e) | (r >>> (32 - e)); + } + function Bk(r, e, t, n, a, i) { + return e0(e4t(e0(e0(e, r), e0(n, i)), a), t); + } + function So(r, e, t, n, a, i, s) { + return Bk((e & t) | (~e & n), r, e, a, i, s); + } + function Mo(r, e, t, n, a, i, s) { + return Bk((e & n) | (t & ~n), r, e, a, i, s); + } + function Po(r, e, t, n, a, i, s) { + return Bk(e ^ t ^ n, r, e, a, i, s); + } + function Ro(r, e, t, n, a, i, s) { + return Bk(t ^ (e | ~n), r, e, a, i, s); + } + var t4t = J8t; + Nk.default = t4t; + }); + var dge = N((Ok) => { + "use strict"; + _(); + x(); + Object.defineProperty(Ok, "__esModule", { value: !0 }); + Ok.default = void 0; + var r4t = lge(BU()), + n4t = lge(uge()); + function lge(r) { + return r && r.__esModule ? r : { default: r }; + } + var a4t = (0, r4t.default)("v3", 48, n4t.default), + i4t = a4t; + Ok.default = i4t; + }); + var pge = N((Lk) => { + "use strict"; + _(); + x(); + Object.defineProperty(Lk, "__esModule", { value: !0 }); + Lk.default = void 0; + var s4t = + typeof crypto < "u" && + crypto.randomUUID && + crypto.randomUUID.bind(crypto), + o4t = { randomUUID: s4t }; + Lk.default = o4t; + }); + var mge = N((Dk) => { + "use strict"; + _(); + x(); + Object.defineProperty(Dk, "__esModule", { value: !0 }); + Dk.default = void 0; + var hge = fge(pge()), + c4t = fge(kU()), + u4t = C5(); + function fge(r) { + return r && r.__esModule ? r : { default: r }; + } + function l4t(r, e, t) { + if (hge.default.randomUUID && !e && !r) return hge.default.randomUUID(); + r = r || {}; + let n = r.random || (r.rng || c4t.default)(); + if (((n[6] = (n[6] & 15) | 64), (n[8] = (n[8] & 63) | 128), e)) { + t = t || 0; + for (let a = 0; a < 16; ++a) e[t + a] = n[a]; + return e; + } + return (0, u4t.unsafeStringify)(n); + } + var d4t = l4t; + Dk.default = d4t; + }); + var yge = N((qk) => { + "use strict"; + _(); + x(); + Object.defineProperty(qk, "__esModule", { value: !0 }); + qk.default = void 0; + function p4t(r, e, t, n) { + switch (r) { + case 0: + return (e & t) ^ (~e & n); + case 1: + return e ^ t ^ n; + case 2: + return (e & t) ^ (e & n) ^ (t & n); + case 3: + return e ^ t ^ n; + } + } + function NU(r, e) { + return (r << e) | (r >>> (32 - e)); + } + function h4t(r) { + let e = [1518500249, 1859775393, 2400959708, 3395469782], + t = [1732584193, 4023233417, 2562383102, 271733878, 3285377520]; + if (typeof r == "string") { + let s = unescape(encodeURIComponent(r)); + r = []; + for (let c = 0; c < s.length; ++c) r.push(s.charCodeAt(c)); + } else Array.isArray(r) || (r = Array.prototype.slice.call(r)); + r.push(128); + let n = r.length / 4 + 2, + a = Math.ceil(n / 16), + i = new Array(a); + for (let s = 0; s < a; ++s) { + let c = new Uint32Array(16); + for (let l = 0; l < 16; ++l) + c[l] = + (r[s * 64 + l * 4] << 24) | + (r[s * 64 + l * 4 + 1] << 16) | + (r[s * 64 + l * 4 + 2] << 8) | + r[s * 64 + l * 4 + 3]; + i[s] = c; + } + (i[a - 1][14] = ((r.length - 1) * 8) / Math.pow(2, 32)), + (i[a - 1][14] = Math.floor(i[a - 1][14])), + (i[a - 1][15] = ((r.length - 1) * 8) & 4294967295); + for (let s = 0; s < a; ++s) { + let c = new Uint32Array(80); + for (let I = 0; I < 16; ++I) c[I] = i[s][I]; + for (let I = 16; I < 80; ++I) + c[I] = NU(c[I - 3] ^ c[I - 8] ^ c[I - 14] ^ c[I - 16], 1); + let l = t[0], + d = t[1], + m = t[2], + w = t[3], + C = t[4]; + for (let I = 0; I < 80; ++I) { + let k = Math.floor(I / 20), + O = (NU(l, 5) + p4t(k, d, m, w) + C + e[k] + c[I]) >>> 0; + (C = w), (w = m), (m = NU(d, 30) >>> 0), (d = l), (l = O); + } + (t[0] = (t[0] + l) >>> 0), + (t[1] = (t[1] + d) >>> 0), + (t[2] = (t[2] + m) >>> 0), + (t[3] = (t[3] + w) >>> 0), + (t[4] = (t[4] + C) >>> 0); + } + return [ + (t[0] >> 24) & 255, + (t[0] >> 16) & 255, + (t[0] >> 8) & 255, + t[0] & 255, + (t[1] >> 24) & 255, + (t[1] >> 16) & 255, + (t[1] >> 8) & 255, + t[1] & 255, + (t[2] >> 24) & 255, + (t[2] >> 16) & 255, + (t[2] >> 8) & 255, + t[2] & 255, + (t[3] >> 24) & 255, + (t[3] >> 16) & 255, + (t[3] >> 8) & 255, + t[3] & 255, + (t[4] >> 24) & 255, + (t[4] >> 16) & 255, + (t[4] >> 8) & 255, + t[4] & 255, + ]; + } + var f4t = h4t; + qk.default = f4t; + }); + var bge = N((Fk) => { + "use strict"; + _(); + x(); + Object.defineProperty(Fk, "__esModule", { value: !0 }); + Fk.default = void 0; + var m4t = gge(BU()), + y4t = gge(yge()); + function gge(r) { + return r && r.__esModule ? r : { default: r }; + } + var g4t = (0, m4t.default)("v5", 80, y4t.default), + b4t = g4t; + Fk.default = b4t; + }); + var vge = N((Wk) => { + "use strict"; + _(); + x(); + Object.defineProperty(Wk, "__esModule", { value: !0 }); + Wk.default = void 0; + var v4t = "00000000-0000-0000-0000-000000000000"; + Wk.default = v4t; + }); + var wge = N((Uk) => { + "use strict"; + _(); + x(); + Object.defineProperty(Uk, "__esModule", { value: !0 }); + Uk.default = void 0; + var w4t = _4t(T5()); + function _4t(r) { + return r && r.__esModule ? r : { default: r }; + } + function x4t(r) { + if (!(0, w4t.default)(r)) throw TypeError("Invalid UUID"); + return parseInt(r.slice(14, 15), 16); + } + var T4t = x4t; + Uk.default = T4t; + }); + var I5 = N((Dd) => { + "use strict"; + _(); + x(); + Object.defineProperty(Dd, "__esModule", { value: !0 }); + Object.defineProperty(Dd, "NIL", { + enumerable: !0, + get: function () { + return k4t.default; + }, + }); + Object.defineProperty(Dd, "parse", { + enumerable: !0, + get: function () { + return R4t.default; + }, + }); + Object.defineProperty(Dd, "stringify", { + enumerable: !0, + get: function () { + return P4t.default; + }, + }); + Object.defineProperty(Dd, "v1", { + enumerable: !0, + get: function () { + return E4t.default; + }, + }); + Object.defineProperty(Dd, "v3", { + enumerable: !0, + get: function () { + return C4t.default; + }, + }); + Object.defineProperty(Dd, "v4", { + enumerable: !0, + get: function () { + return I4t.default; + }, + }); + Object.defineProperty(Dd, "v5", { + enumerable: !0, + get: function () { + return A4t.default; + }, + }); + Object.defineProperty(Dd, "validate", { + enumerable: !0, + get: function () { + return M4t.default; + }, + }); + Object.defineProperty(Dd, "version", { + enumerable: !0, + get: function () { + return S4t.default; + }, + }); + var E4t = yf(ige()), + C4t = yf(dge()), + I4t = yf(mge()), + A4t = yf(bge()), + k4t = yf(vge()), + S4t = yf(wge()), + M4t = yf(T5()), + P4t = yf(C5()), + R4t = yf(RU()); + function yf(r) { + return r && r.__esModule ? r : { default: r }; + } + }); + var A5 = N((ci) => { + "use strict"; + _(); + x(); + Object.defineProperty(ci, "__esModule", { value: !0 }); + ci.getParsedType = ci.ZodParsedType = ci.util = void 0; + var _ge; + (function (r) { + r.assertEqual = (a) => a; + function e(a) {} + r.assertIs = e; + function t(a) { + throw new Error(); + } + (r.assertNever = t), + (r.arrayToEnum = (a) => { + let i = {}; + for (let s of a) i[s] = s; + return i; + }), + (r.getValidEnumValues = (a) => { + let i = r.objectKeys(a).filter((c) => typeof a[a[c]] != "number"), + s = {}; + for (let c of i) s[c] = a[c]; + return r.objectValues(s); + }), + (r.objectValues = (a) => + r.objectKeys(a).map(function (i) { + return a[i]; + })), + (r.objectKeys = + typeof Object.keys == "function" + ? (a) => Object.keys(a) + : (a) => { + let i = []; + for (let s in a) + Object.prototype.hasOwnProperty.call(a, s) && i.push(s); + return i; + }), + (r.find = (a, i) => { + for (let s of a) if (i(s)) return s; + }), + (r.isInteger = + typeof Number.isInteger == "function" + ? (a) => Number.isInteger(a) + : (a) => + typeof a == "number" && isFinite(a) && Math.floor(a) === a); + function n(a, i = " | ") { + return a.map((s) => (typeof s == "string" ? `'${s}'` : s)).join(i); + } + (r.joinValues = n), + (r.jsonStringifyReplacer = (a, i) => + typeof i == "bigint" ? i.toString() : i); + })((_ge = ci.util || (ci.util = {}))); + ci.ZodParsedType = _ge.arrayToEnum([ + "string", + "nan", + "number", + "integer", + "float", + "boolean", + "date", + "bigint", + "symbol", + "function", + "undefined", + "null", + "array", + "object", + "unknown", + "promise", + "void", + "never", + "map", + "set", + ]); + var B4t = (r) => { + switch (typeof r) { + case "undefined": + return ci.ZodParsedType.undefined; + case "string": + return ci.ZodParsedType.string; + case "number": + return isNaN(r) ? ci.ZodParsedType.nan : ci.ZodParsedType.number; + case "boolean": + return ci.ZodParsedType.boolean; + case "function": + return ci.ZodParsedType.function; + case "bigint": + return ci.ZodParsedType.bigint; + case "symbol": + return ci.ZodParsedType.symbol; + case "object": + return Array.isArray(r) + ? ci.ZodParsedType.array + : r === null + ? ci.ZodParsedType.null + : r.then && + typeof r.then == "function" && + r.catch && + typeof r.catch == "function" + ? ci.ZodParsedType.promise + : typeof Map < "u" && r instanceof Map + ? ci.ZodParsedType.map + : typeof Set < "u" && r instanceof Set + ? ci.ZodParsedType.set + : typeof Date < "u" && r instanceof Date + ? ci.ZodParsedType.date + : ci.ZodParsedType.object; + default: + return ci.ZodParsedType.unknown; + } + }; + ci.getParsedType = B4t; + }); + var Hk = N((t0) => { + "use strict"; + _(); + x(); + Object.defineProperty(t0, "__esModule", { value: !0 }); + t0.ZodError = t0.quotelessJson = t0.ZodIssueCode = void 0; + var xge = A5(); + t0.ZodIssueCode = xge.util.arrayToEnum([ + "invalid_type", + "invalid_literal", + "custom", + "invalid_union", + "invalid_union_discriminator", + "invalid_enum_value", + "unrecognized_keys", + "invalid_arguments", + "invalid_return_type", + "invalid_date", + "invalid_string", + "too_small", + "too_big", + "invalid_intersection_types", + "not_multiple_of", + "not_finite", + ]); + var N4t = (r) => JSON.stringify(r, null, 2).replace(/"([^"]+)":/g, "$1:"); + t0.quotelessJson = N4t; + var k5 = class extends Error { + constructor(e) { + super(), + (this.issues = []), + (this.addIssue = (n) => { + this.issues = [...this.issues, n]; + }), + (this.addIssues = (n = []) => { + this.issues = [...this.issues, ...n]; + }); + let t = new.target.prototype; + Object.setPrototypeOf + ? Object.setPrototypeOf(this, t) + : (this.__proto__ = t), + (this.name = "ZodError"), + (this.issues = e); + } + get errors() { + return this.issues; + } + format(e) { + let t = + e || + function (i) { + return i.message; + }, + n = { _errors: [] }, + a = (i) => { + for (let s of i.issues) + if (s.code === "invalid_union") s.unionErrors.map(a); + else if (s.code === "invalid_return_type") a(s.returnTypeError); + else if (s.code === "invalid_arguments") a(s.argumentsError); + else if (s.path.length === 0) n._errors.push(t(s)); + else { + let c = n, + l = 0; + for (; l < s.path.length; ) { + let d = s.path[l]; + l === s.path.length - 1 + ? ((c[d] = c[d] || { _errors: [] }), + c[d]._errors.push(t(s))) + : (c[d] = c[d] || { _errors: [] }), + (c = c[d]), + l++; + } + } + }; + return a(this), n; + } + toString() { + return this.message; + } + get message() { + return JSON.stringify(this.issues, xge.util.jsonStringifyReplacer, 2); + } + get isEmpty() { + return this.issues.length === 0; + } + flatten(e = (t) => t.message) { + let t = {}, + n = []; + for (let a of this.issues) + a.path.length > 0 + ? ((t[a.path[0]] = t[a.path[0]] || []), t[a.path[0]].push(e(a))) + : n.push(e(a)); + return { formErrors: n, fieldErrors: t }; + } + get formErrors() { + return this.flatten(); + } + }; + t0.ZodError = k5; + k5.create = (r) => new k5(r); + }); + var LU = N((OU) => { + "use strict"; + _(); + x(); + Object.defineProperty(OU, "__esModule", { value: !0 }); + var gg = A5(), + Bo = Hk(), + O4t = (r, e) => { + let t; + switch (r.code) { + case Bo.ZodIssueCode.invalid_type: + r.received === gg.ZodParsedType.undefined + ? (t = "Required") + : (t = `Expected ${r.expected}, received ${r.received}`); + break; + case Bo.ZodIssueCode.invalid_literal: + t = `Invalid literal value, expected ${JSON.stringify( + r.expected, + gg.util.jsonStringifyReplacer + )}`; + break; + case Bo.ZodIssueCode.unrecognized_keys: + t = `Unrecognized key(s) in object: ${gg.util.joinValues( + r.keys, + ", " + )}`; + break; + case Bo.ZodIssueCode.invalid_union: + t = "Invalid input"; + break; + case Bo.ZodIssueCode.invalid_union_discriminator: + t = `Invalid discriminator value. Expected ${gg.util.joinValues( + r.options + )}`; + break; + case Bo.ZodIssueCode.invalid_enum_value: + t = `Invalid enum value. Expected ${gg.util.joinValues( + r.options + )}, received '${r.received}'`; + break; + case Bo.ZodIssueCode.invalid_arguments: + t = "Invalid function arguments"; + break; + case Bo.ZodIssueCode.invalid_return_type: + t = "Invalid function return type"; + break; + case Bo.ZodIssueCode.invalid_date: + t = "Invalid date"; + break; + case Bo.ZodIssueCode.invalid_string: + typeof r.validation == "object" + ? "startsWith" in r.validation + ? (t = `Invalid input: must start with "${r.validation.startsWith}"`) + : "endsWith" in r.validation + ? (t = `Invalid input: must end with "${r.validation.endsWith}"`) + : gg.util.assertNever(r.validation) + : r.validation !== "regex" + ? (t = `Invalid ${r.validation}`) + : (t = "Invalid"); + break; + case Bo.ZodIssueCode.too_small: + r.type === "array" + ? (t = `Array must contain ${ + r.exact ? "exactly" : r.inclusive ? "at least" : "more than" + } ${r.minimum} element(s)`) + : r.type === "string" + ? (t = `String must contain ${ + r.exact ? "exactly" : r.inclusive ? "at least" : "over" + } ${r.minimum} character(s)`) + : r.type === "number" + ? (t = `Number must be ${ + r.exact + ? "exactly equal to " + : r.inclusive + ? "greater than or equal to " + : "greater than " + }${r.minimum}`) + : r.type === "date" + ? (t = `Date must be ${ + r.exact + ? "exactly equal to " + : r.inclusive + ? "greater than or equal to " + : "greater than " + }${new Date(r.minimum)}`) + : (t = "Invalid input"); + break; + case Bo.ZodIssueCode.too_big: + r.type === "array" + ? (t = `Array must contain ${ + r.exact ? "exactly" : r.inclusive ? "at most" : "less than" + } ${r.maximum} element(s)`) + : r.type === "string" + ? (t = `String must contain ${ + r.exact ? "exactly" : r.inclusive ? "at most" : "under" + } ${r.maximum} character(s)`) + : r.type === "number" + ? (t = `Number must be ${ + r.exact + ? "exactly" + : r.inclusive + ? "less than or equal to" + : "less than" + } ${r.maximum}`) + : r.type === "date" + ? (t = `Date must be ${ + r.exact + ? "exactly" + : r.inclusive + ? "smaller than or equal to" + : "smaller than" + } ${new Date(r.maximum)}`) + : (t = "Invalid input"); + break; + case Bo.ZodIssueCode.custom: + t = "Invalid input"; + break; + case Bo.ZodIssueCode.invalid_intersection_types: + t = "Intersection results could not be merged"; + break; + case Bo.ZodIssueCode.not_multiple_of: + t = `Number must be a multiple of ${r.multipleOf}`; + break; + case Bo.ZodIssueCode.not_finite: + t = "Number must be finite"; + break; + default: + (t = e.defaultError), gg.util.assertNever(r); + } + return { message: t }; + }; + OU.default = O4t; + }); + var zk = N((rh) => { + "use strict"; + _(); + x(); + var L4t = + (rh && rh.__importDefault) || + function (r) { + return r && r.__esModule ? r : { default: r }; + }; + Object.defineProperty(rh, "__esModule", { value: !0 }); + rh.getErrorMap = rh.setErrorMap = rh.defaultErrorMap = void 0; + var Tge = L4t(LU()); + rh.defaultErrorMap = Tge.default; + var Ege = Tge.default; + function D4t(r) { + Ege = r; + } + rh.setErrorMap = D4t; + function q4t() { + return Ege; + } + rh.getErrorMap = q4t; + }); + var DU = N((Va) => { + "use strict"; + _(); + x(); + var F4t = + (Va && Va.__importDefault) || + function (r) { + return r && r.__esModule ? r : { default: r }; + }; + Object.defineProperty(Va, "__esModule", { value: !0 }); + Va.isAsync = + Va.isValid = + Va.isDirty = + Va.isAborted = + Va.OK = + Va.DIRTY = + Va.INVALID = + Va.ParseStatus = + Va.addIssueToContext = + Va.EMPTY_PATH = + Va.makeIssue = + void 0; + var W4t = zk(), + U4t = F4t(LU()), + H4t = (r) => { + let { data: e, path: t, errorMaps: n, issueData: a } = r, + i = [...t, ...(a.path || [])], + s = { ...a, path: i }, + c = "", + l = n + .filter((d) => !!d) + .slice() + .reverse(); + for (let d of l) c = d(s, { data: e, defaultError: c }).message; + return { ...a, path: i, message: a.message || c }; + }; + Va.makeIssue = H4t; + Va.EMPTY_PATH = []; + function z4t(r, e) { + let t = (0, Va.makeIssue)({ + issueData: e, + data: r.data, + path: r.path, + errorMaps: [ + r.common.contextualErrorMap, + r.schemaErrorMap, + (0, W4t.getErrorMap)(), + U4t.default, + ].filter((n) => !!n), + }); + r.common.issues.push(t); + } + Va.addIssueToContext = z4t; + var S5 = class { + constructor() { + this.value = "valid"; + } + dirty() { + this.value === "valid" && (this.value = "dirty"); + } + abort() { + this.value !== "aborted" && (this.value = "aborted"); + } + static mergeArray(e, t) { + let n = []; + for (let a of t) { + if (a.status === "aborted") return Va.INVALID; + a.status === "dirty" && e.dirty(), n.push(a.value); + } + return { status: e.value, value: n }; + } + static async mergeObjectAsync(e, t) { + let n = []; + for (let a of t) n.push({ key: await a.key, value: await a.value }); + return S5.mergeObjectSync(e, n); + } + static mergeObjectSync(e, t) { + let n = {}; + for (let a of t) { + let { key: i, value: s } = a; + if (i.status === "aborted" || s.status === "aborted") + return Va.INVALID; + i.status === "dirty" && e.dirty(), + s.status === "dirty" && e.dirty(), + (typeof s.value < "u" || a.alwaysSet) && (n[i.value] = s.value); + } + return { status: e.value, value: n }; + } + }; + Va.ParseStatus = S5; + Va.INVALID = Object.freeze({ status: "aborted" }); + var j4t = (r) => ({ status: "dirty", value: r }); + Va.DIRTY = j4t; + var K4t = (r) => ({ status: "valid", value: r }); + Va.OK = K4t; + var V4t = (r) => r.status === "aborted"; + Va.isAborted = V4t; + var G4t = (r) => r.status === "dirty"; + Va.isDirty = G4t; + var Y4t = (r) => r.status === "valid"; + Va.isValid = Y4t; + var $4t = (r) => typeof Promise < "u" && r instanceof Promise; + Va.isAsync = $4t; + }); + var Ige = N((Cge) => { + "use strict"; + _(); + x(); + Object.defineProperty(Cge, "__esModule", { value: !0 }); + }); + var Age = N((M5) => { + "use strict"; + _(); + x(); + Object.defineProperty(M5, "__esModule", { value: !0 }); + M5.errorUtil = void 0; + var J4t; + (function (r) { + (r.errToObj = (e) => (typeof e == "string" ? { message: e } : e || {})), + (r.toString = (e) => (typeof e == "string" ? e : e?.message)); + })((J4t = M5.errorUtil || (M5.errorUtil = {}))); + }); + var Oge = N((je) => { + "use strict"; + _(); + x(); + Object.defineProperty(je, "__esModule", { value: !0 }); + je.date = + je.boolean = + je.bigint = + je.array = + je.any = + je.coerce = + je.ZodFirstPartyTypeKind = + je.late = + je.ZodSchema = + je.Schema = + je.custom = + je.ZodPipeline = + je.ZodBranded = + je.BRAND = + je.ZodNaN = + je.ZodCatch = + je.ZodDefault = + je.ZodNullable = + je.ZodOptional = + je.ZodTransformer = + je.ZodEffects = + je.ZodPromise = + je.ZodNativeEnum = + je.ZodEnum = + je.ZodLiteral = + je.ZodLazy = + je.ZodFunction = + je.ZodSet = + je.ZodMap = + je.ZodRecord = + je.ZodTuple = + je.ZodIntersection = + je.ZodDiscriminatedUnion = + je.ZodUnion = + je.ZodObject = + je.objectUtil = + je.ZodArray = + je.ZodVoid = + je.ZodNever = + je.ZodUnknown = + je.ZodAny = + je.ZodNull = + je.ZodUndefined = + je.ZodSymbol = + je.ZodDate = + je.ZodBoolean = + je.ZodBigInt = + je.ZodNumber = + je.ZodString = + je.ZodType = + void 0; + je.NEVER = + je.void = + je.unknown = + je.union = + je.undefined = + je.tuple = + je.transformer = + je.symbol = + je.string = + je.strictObject = + je.set = + je.record = + je.promise = + je.preprocess = + je.pipeline = + je.ostring = + je.optional = + je.onumber = + je.oboolean = + je.object = + je.number = + je.nullable = + je.null = + je.never = + je.nativeEnum = + je.nan = + je.map = + je.literal = + je.lazy = + je.intersection = + je.instanceof = + je.function = + je.enum = + je.effect = + je.discriminatedUnion = + void 0; + var jk = zk(), + hn = Age(), + ot = DU(), + bt = A5(), + Ct = Hk(), + Fl = class { + constructor(e, t, n, a) { + (this.parent = e), (this.data = t), (this._path = n), (this._key = a); + } + get path() { + return this._path.concat(this._key); + } + }, + kge = (r, e) => { + if ((0, ot.isValid)(e)) return { success: !0, data: e.value }; + if (!r.common.issues.length) + throw new Error("Validation failed but no issues detected."); + return { success: !1, error: new Ct.ZodError(r.common.issues) }; + }; + function Fr(r) { + if (!r) return {}; + let { + errorMap: e, + invalid_type_error: t, + required_error: n, + description: a, + } = r; + if (e && (t || n)) + throw new Error( + `Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.` + ); + return e + ? { errorMap: e, description: a } + : { + errorMap: (s, c) => + s.code !== "invalid_type" + ? { message: c.defaultError } + : typeof c.data > "u" + ? { message: n ?? c.defaultError } + : { message: t ?? c.defaultError }, + description: a, + }; + } + var Wr = class { + constructor(e) { + (this.spa = this.safeParseAsync), + (this._def = e), + (this.parse = this.parse.bind(this)), + (this.safeParse = this.safeParse.bind(this)), + (this.parseAsync = this.parseAsync.bind(this)), + (this.safeParseAsync = this.safeParseAsync.bind(this)), + (this.spa = this.spa.bind(this)), + (this.refine = this.refine.bind(this)), + (this.refinement = this.refinement.bind(this)), + (this.superRefine = this.superRefine.bind(this)), + (this.optional = this.optional.bind(this)), + (this.nullable = this.nullable.bind(this)), + (this.nullish = this.nullish.bind(this)), + (this.array = this.array.bind(this)), + (this.promise = this.promise.bind(this)), + (this.or = this.or.bind(this)), + (this.and = this.and.bind(this)), + (this.transform = this.transform.bind(this)), + (this.brand = this.brand.bind(this)), + (this.default = this.default.bind(this)), + (this.catch = this.catch.bind(this)), + (this.describe = this.describe.bind(this)), + (this.pipe = this.pipe.bind(this)), + (this.isNullable = this.isNullable.bind(this)), + (this.isOptional = this.isOptional.bind(this)); + } + get description() { + return this._def.description; + } + _getType(e) { + return (0, bt.getParsedType)(e.data); + } + _getOrReturnCtx(e, t) { + return ( + t || { + common: e.parent.common, + data: e.data, + parsedType: (0, bt.getParsedType)(e.data), + schemaErrorMap: this._def.errorMap, + path: e.path, + parent: e.parent, + } + ); + } + _processInputParams(e) { + return { + status: new ot.ParseStatus(), + ctx: { + common: e.parent.common, + data: e.data, + parsedType: (0, bt.getParsedType)(e.data), + schemaErrorMap: this._def.errorMap, + path: e.path, + parent: e.parent, + }, + }; + } + _parseSync(e) { + let t = this._parse(e); + if ((0, ot.isAsync)(t)) + throw new Error("Synchronous parse encountered promise."); + return t; + } + _parseAsync(e) { + let t = this._parse(e); + return Promise.resolve(t); + } + parse(e, t) { + let n = this.safeParse(e, t); + if (n.success) return n.data; + throw n.error; + } + safeParse(e, t) { + var n; + let a = { + common: { + issues: [], + async: (n = t?.async) !== null && n !== void 0 ? n : !1, + contextualErrorMap: t?.errorMap, + }, + path: t?.path || [], + schemaErrorMap: this._def.errorMap, + parent: null, + data: e, + parsedType: (0, bt.getParsedType)(e), + }, + i = this._parseSync({ data: e, path: a.path, parent: a }); + return kge(a, i); + } + async parseAsync(e, t) { + let n = await this.safeParseAsync(e, t); + if (n.success) return n.data; + throw n.error; + } + async safeParseAsync(e, t) { + let n = { + common: { issues: [], contextualErrorMap: t?.errorMap, async: !0 }, + path: t?.path || [], + schemaErrorMap: this._def.errorMap, + parent: null, + data: e, + parsedType: (0, bt.getParsedType)(e), + }, + a = this._parse({ data: e, path: n.path, parent: n }), + i = await ((0, ot.isAsync)(a) ? a : Promise.resolve(a)); + return kge(n, i); + } + refine(e, t) { + let n = (a) => + typeof t == "string" || typeof t > "u" + ? { message: t } + : typeof t == "function" + ? t(a) + : t; + return this._refinement((a, i) => { + let s = e(a), + c = () => i.addIssue({ code: Ct.ZodIssueCode.custom, ...n(a) }); + return typeof Promise < "u" && s instanceof Promise + ? s.then((l) => (l ? !0 : (c(), !1))) + : s + ? !0 + : (c(), !1); + }); + } + refinement(e, t) { + return this._refinement((n, a) => + e(n) ? !0 : (a.addIssue(typeof t == "function" ? t(n, a) : t), !1) + ); + } + _refinement(e) { + return new Hu({ + schema: this, + typeName: yr.ZodEffects, + effect: { type: "refinement", refinement: e }, + }); + } + superRefine(e) { + return this._refinement(e); + } + optional() { + return qd.create(this, this._def); + } + nullable() { + return wf.create(this, this._def); + } + nullish() { + return this.nullable().optional(); + } + array() { + return Uu.create(this, this._def); + } + promise() { + return a0.create(this, this._def); + } + or(e) { + return xg.create([this, e], this._def); + } + and(e) { + return Tg.create(this, e, this._def); + } + transform(e) { + return new Hu({ + ...Fr(this._def), + schema: this, + typeName: yr.ZodEffects, + effect: { type: "transform", transform: e }, + }); + } + default(e) { + let t = typeof e == "function" ? e : () => e; + return new kg({ + ...Fr(this._def), + innerType: this, + defaultValue: t, + typeName: yr.ZodDefault, + }); + } + brand() { + return new Vk({ + typeName: yr.ZodBranded, + type: this, + ...Fr(this._def), + }); + } + catch(e) { + let t = typeof e == "function" ? e : () => e; + return new Qv({ + ...Fr(this._def), + innerType: this, + catchValue: t, + typeName: yr.ZodCatch, + }); + } + describe(e) { + let t = this.constructor; + return new t({ ...this._def, description: e }); + } + pipe(e) { + return Sg.create(this, e); + } + isOptional() { + return this.safeParse(void 0).success; + } + isNullable() { + return this.safeParse(null).success; + } + }; + je.ZodType = Wr; + je.Schema = Wr; + je.ZodSchema = Wr; + var Z4t = /^c[^\s-]{8,}$/i, + Q4t = /^[a-z][a-z0-9]*$/, + X4t = + /^([a-f0-9]{8}-[a-f0-9]{4}-[1-5][a-f0-9]{3}-[a-f0-9]{4}-[a-f0-9]{12}|00000000-0000-0000-0000-000000000000)$/i, + eIt = + /^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|([^-]([a-zA-Z0-9-]*\.)+[a-zA-Z]{2,}))$/, + tIt = (r) => + r.precision + ? r.offset + ? new RegExp( + `^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${r.precision}}(([+-]\\d{2}(:?\\d{2})?)|Z)$` + ) + : new RegExp( + `^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${r.precision}}Z$` + ) + : r.precision === 0 + ? r.offset + ? new RegExp( + "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(([+-]\\d{2}(:?\\d{2})?)|Z)$" + ) + : new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$") + : r.offset + ? new RegExp( + "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?(([+-]\\d{2}(:?\\d{2})?)|Z)$" + ) + : new RegExp( + "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?Z$" + ), + Fd = class extends Wr { + constructor() { + super(...arguments), + (this._regex = (e, t, n) => + this.refinement((a) => e.test(a), { + validation: t, + code: Ct.ZodIssueCode.invalid_string, + ...hn.errorUtil.errToObj(n), + })), + (this.nonempty = (e) => this.min(1, hn.errorUtil.errToObj(e))), + (this.trim = () => + new Fd({ + ...this._def, + checks: [...this._def.checks, { kind: "trim" }], + })); + } + _parse(e) { + if ( + (this._def.coerce && (e.data = String(e.data)), + this._getType(e) !== bt.ZodParsedType.string) + ) { + let i = this._getOrReturnCtx(e); + return ( + (0, ot.addIssueToContext)(i, { + code: Ct.ZodIssueCode.invalid_type, + expected: bt.ZodParsedType.string, + received: i.parsedType, + }), + ot.INVALID + ); + } + let n = new ot.ParseStatus(), + a; + for (let i of this._def.checks) + if (i.kind === "min") + e.data.length < i.value && + ((a = this._getOrReturnCtx(e, a)), + (0, ot.addIssueToContext)(a, { + code: Ct.ZodIssueCode.too_small, + minimum: i.value, + type: "string", + inclusive: !0, + exact: !1, + message: i.message, + }), + n.dirty()); + else if (i.kind === "max") + e.data.length > i.value && + ((a = this._getOrReturnCtx(e, a)), + (0, ot.addIssueToContext)(a, { + code: Ct.ZodIssueCode.too_big, + maximum: i.value, + type: "string", + inclusive: !0, + exact: !1, + message: i.message, + }), + n.dirty()); + else if (i.kind === "length") { + let s = e.data.length > i.value, + c = e.data.length < i.value; + (s || c) && + ((a = this._getOrReturnCtx(e, a)), + s + ? (0, ot.addIssueToContext)(a, { + code: Ct.ZodIssueCode.too_big, + maximum: i.value, + type: "string", + inclusive: !0, + exact: !0, + message: i.message, + }) + : c && + (0, ot.addIssueToContext)(a, { + code: Ct.ZodIssueCode.too_small, + minimum: i.value, + type: "string", + inclusive: !0, + exact: !0, + message: i.message, + }), + n.dirty()); + } else if (i.kind === "email") + eIt.test(e.data) || + ((a = this._getOrReturnCtx(e, a)), + (0, ot.addIssueToContext)(a, { + validation: "email", + code: Ct.ZodIssueCode.invalid_string, + message: i.message, + }), + n.dirty()); + else if (i.kind === "uuid") + X4t.test(e.data) || + ((a = this._getOrReturnCtx(e, a)), + (0, ot.addIssueToContext)(a, { + validation: "uuid", + code: Ct.ZodIssueCode.invalid_string, + message: i.message, + }), + n.dirty()); + else if (i.kind === "cuid") + Z4t.test(e.data) || + ((a = this._getOrReturnCtx(e, a)), + (0, ot.addIssueToContext)(a, { + validation: "cuid", + code: Ct.ZodIssueCode.invalid_string, + message: i.message, + }), + n.dirty()); + else if (i.kind === "cuid2") + Q4t.test(e.data) || + ((a = this._getOrReturnCtx(e, a)), + (0, ot.addIssueToContext)(a, { + validation: "cuid2", + code: Ct.ZodIssueCode.invalid_string, + message: i.message, + }), + n.dirty()); + else if (i.kind === "url") + try { + new URL(e.data); + } catch { + (a = this._getOrReturnCtx(e, a)), + (0, ot.addIssueToContext)(a, { + validation: "url", + code: Ct.ZodIssueCode.invalid_string, + message: i.message, + }), + n.dirty(); + } + else + i.kind === "regex" + ? ((i.regex.lastIndex = 0), + i.regex.test(e.data) || + ((a = this._getOrReturnCtx(e, a)), + (0, ot.addIssueToContext)(a, { + validation: "regex", + code: Ct.ZodIssueCode.invalid_string, + message: i.message, + }), + n.dirty())) + : i.kind === "trim" + ? (e.data = e.data.trim()) + : i.kind === "startsWith" + ? e.data.startsWith(i.value) || + ((a = this._getOrReturnCtx(e, a)), + (0, ot.addIssueToContext)(a, { + code: Ct.ZodIssueCode.invalid_string, + validation: { startsWith: i.value }, + message: i.message, + }), + n.dirty()) + : i.kind === "endsWith" + ? e.data.endsWith(i.value) || + ((a = this._getOrReturnCtx(e, a)), + (0, ot.addIssueToContext)(a, { + code: Ct.ZodIssueCode.invalid_string, + validation: { endsWith: i.value }, + message: i.message, + }), + n.dirty()) + : i.kind === "datetime" + ? tIt(i).test(e.data) || + ((a = this._getOrReturnCtx(e, a)), + (0, ot.addIssueToContext)(a, { + code: Ct.ZodIssueCode.invalid_string, + validation: "datetime", + message: i.message, + }), + n.dirty()) + : bt.util.assertNever(i); + return { status: n.value, value: e.data }; + } + _addCheck(e) { + return new Fd({ ...this._def, checks: [...this._def.checks, e] }); + } + email(e) { + return this._addCheck({ kind: "email", ...hn.errorUtil.errToObj(e) }); + } + url(e) { + return this._addCheck({ kind: "url", ...hn.errorUtil.errToObj(e) }); + } + uuid(e) { + return this._addCheck({ kind: "uuid", ...hn.errorUtil.errToObj(e) }); + } + cuid(e) { + return this._addCheck({ kind: "cuid", ...hn.errorUtil.errToObj(e) }); + } + cuid2(e) { + return this._addCheck({ kind: "cuid2", ...hn.errorUtil.errToObj(e) }); + } + datetime(e) { + var t; + return typeof e == "string" + ? this._addCheck({ + kind: "datetime", + precision: null, + offset: !1, + message: e, + }) + : this._addCheck({ + kind: "datetime", + precision: typeof e?.precision > "u" ? null : e?.precision, + offset: (t = e?.offset) !== null && t !== void 0 ? t : !1, + ...hn.errorUtil.errToObj(e?.message), + }); + } + regex(e, t) { + return this._addCheck({ + kind: "regex", + regex: e, + ...hn.errorUtil.errToObj(t), + }); + } + startsWith(e, t) { + return this._addCheck({ + kind: "startsWith", + value: e, + ...hn.errorUtil.errToObj(t), + }); + } + endsWith(e, t) { + return this._addCheck({ + kind: "endsWith", + value: e, + ...hn.errorUtil.errToObj(t), + }); + } + min(e, t) { + return this._addCheck({ + kind: "min", + value: e, + ...hn.errorUtil.errToObj(t), + }); + } + max(e, t) { + return this._addCheck({ + kind: "max", + value: e, + ...hn.errorUtil.errToObj(t), + }); + } + length(e, t) { + return this._addCheck({ + kind: "length", + value: e, + ...hn.errorUtil.errToObj(t), + }); + } + get isDatetime() { + return !!this._def.checks.find((e) => e.kind === "datetime"); + } + get isEmail() { + return !!this._def.checks.find((e) => e.kind === "email"); + } + get isURL() { + return !!this._def.checks.find((e) => e.kind === "url"); + } + get isUUID() { + return !!this._def.checks.find((e) => e.kind === "uuid"); + } + get isCUID() { + return !!this._def.checks.find((e) => e.kind === "cuid"); + } + get isCUID2() { + return !!this._def.checks.find((e) => e.kind === "cuid2"); + } + get minLength() { + let e = null; + for (let t of this._def.checks) + t.kind === "min" && (e === null || t.value > e) && (e = t.value); + return e; + } + get maxLength() { + let e = null; + for (let t of this._def.checks) + t.kind === "max" && (e === null || t.value < e) && (e = t.value); + return e; + } + }; + je.ZodString = Fd; + Fd.create = (r) => { + var e; + return new Fd({ + checks: [], + typeName: yr.ZodString, + coerce: (e = r?.coerce) !== null && e !== void 0 ? e : !1, + ...Fr(r), + }); + }; + function rIt(r, e) { + let t = (r.toString().split(".")[1] || "").length, + n = (e.toString().split(".")[1] || "").length, + a = t > n ? t : n, + i = parseInt(r.toFixed(a).replace(".", "")), + s = parseInt(e.toFixed(a).replace(".", "")); + return (i % s) / Math.pow(10, a); + } + var nh = class extends Wr { + constructor() { + super(...arguments), + (this.min = this.gte), + (this.max = this.lte), + (this.step = this.multipleOf); + } + _parse(e) { + if ( + (this._def.coerce && (e.data = Number(e.data)), + this._getType(e) !== bt.ZodParsedType.number) + ) { + let i = this._getOrReturnCtx(e); + return ( + (0, ot.addIssueToContext)(i, { + code: Ct.ZodIssueCode.invalid_type, + expected: bt.ZodParsedType.number, + received: i.parsedType, + }), + ot.INVALID + ); + } + let n, + a = new ot.ParseStatus(); + for (let i of this._def.checks) + i.kind === "int" + ? bt.util.isInteger(e.data) || + ((n = this._getOrReturnCtx(e, n)), + (0, ot.addIssueToContext)(n, { + code: Ct.ZodIssueCode.invalid_type, + expected: "integer", + received: "float", + message: i.message, + }), + a.dirty()) + : i.kind === "min" + ? (i.inclusive ? e.data < i.value : e.data <= i.value) && + ((n = this._getOrReturnCtx(e, n)), + (0, ot.addIssueToContext)(n, { + code: Ct.ZodIssueCode.too_small, + minimum: i.value, + type: "number", + inclusive: i.inclusive, + exact: !1, + message: i.message, + }), + a.dirty()) + : i.kind === "max" + ? (i.inclusive ? e.data > i.value : e.data >= i.value) && + ((n = this._getOrReturnCtx(e, n)), + (0, ot.addIssueToContext)(n, { + code: Ct.ZodIssueCode.too_big, + maximum: i.value, + type: "number", + inclusive: i.inclusive, + exact: !1, + message: i.message, + }), + a.dirty()) + : i.kind === "multipleOf" + ? rIt(e.data, i.value) !== 0 && + ((n = this._getOrReturnCtx(e, n)), + (0, ot.addIssueToContext)(n, { + code: Ct.ZodIssueCode.not_multiple_of, + multipleOf: i.value, + message: i.message, + }), + a.dirty()) + : i.kind === "finite" + ? Number.isFinite(e.data) || + ((n = this._getOrReturnCtx(e, n)), + (0, ot.addIssueToContext)(n, { + code: Ct.ZodIssueCode.not_finite, + message: i.message, + }), + a.dirty()) + : bt.util.assertNever(i); + return { status: a.value, value: e.data }; + } + gte(e, t) { + return this.setLimit("min", e, !0, hn.errorUtil.toString(t)); + } + gt(e, t) { + return this.setLimit("min", e, !1, hn.errorUtil.toString(t)); + } + lte(e, t) { + return this.setLimit("max", e, !0, hn.errorUtil.toString(t)); + } + lt(e, t) { + return this.setLimit("max", e, !1, hn.errorUtil.toString(t)); + } + setLimit(e, t, n, a) { + return new nh({ + ...this._def, + checks: [ + ...this._def.checks, + { + kind: e, + value: t, + inclusive: n, + message: hn.errorUtil.toString(a), + }, + ], + }); + } + _addCheck(e) { + return new nh({ ...this._def, checks: [...this._def.checks, e] }); + } + int(e) { + return this._addCheck({ + kind: "int", + message: hn.errorUtil.toString(e), + }); + } + positive(e) { + return this._addCheck({ + kind: "min", + value: 0, + inclusive: !1, + message: hn.errorUtil.toString(e), + }); + } + negative(e) { + return this._addCheck({ + kind: "max", + value: 0, + inclusive: !1, + message: hn.errorUtil.toString(e), + }); + } + nonpositive(e) { + return this._addCheck({ + kind: "max", + value: 0, + inclusive: !0, + message: hn.errorUtil.toString(e), + }); + } + nonnegative(e) { + return this._addCheck({ + kind: "min", + value: 0, + inclusive: !0, + message: hn.errorUtil.toString(e), + }); + } + multipleOf(e, t) { + return this._addCheck({ + kind: "multipleOf", + value: e, + message: hn.errorUtil.toString(t), + }); + } + finite(e) { + return this._addCheck({ + kind: "finite", + message: hn.errorUtil.toString(e), + }); + } + get minValue() { + let e = null; + for (let t of this._def.checks) + t.kind === "min" && (e === null || t.value > e) && (e = t.value); + return e; + } + get maxValue() { + let e = null; + for (let t of this._def.checks) + t.kind === "max" && (e === null || t.value < e) && (e = t.value); + return e; + } + get isInt() { + return !!this._def.checks.find( + (e) => + e.kind === "int" || + (e.kind === "multipleOf" && bt.util.isInteger(e.value)) + ); + } + get isFinite() { + let e = null, + t = null; + for (let n of this._def.checks) { + if ( + n.kind === "finite" || + n.kind === "int" || + n.kind === "multipleOf" + ) + return !0; + n.kind === "min" + ? (t === null || n.value > t) && (t = n.value) + : n.kind === "max" && (e === null || n.value < e) && (e = n.value); + } + return Number.isFinite(t) && Number.isFinite(e); + } + }; + je.ZodNumber = nh; + nh.create = (r) => + new nh({ + checks: [], + typeName: yr.ZodNumber, + coerce: r?.coerce || !1, + ...Fr(r), + }); + var bg = class extends Wr { + _parse(e) { + if ( + (this._def.coerce && (e.data = BigInt(e.data)), + this._getType(e) !== bt.ZodParsedType.bigint) + ) { + let n = this._getOrReturnCtx(e); + return ( + (0, ot.addIssueToContext)(n, { + code: Ct.ZodIssueCode.invalid_type, + expected: bt.ZodParsedType.bigint, + received: n.parsedType, + }), + ot.INVALID + ); + } + return (0, ot.OK)(e.data); + } + }; + je.ZodBigInt = bg; + bg.create = (r) => { + var e; + return new bg({ + typeName: yr.ZodBigInt, + coerce: (e = r?.coerce) !== null && e !== void 0 ? e : !1, + ...Fr(r), + }); + }; + var vg = class extends Wr { + _parse(e) { + if ( + (this._def.coerce && (e.data = Boolean(e.data)), + this._getType(e) !== bt.ZodParsedType.boolean) + ) { + let n = this._getOrReturnCtx(e); + return ( + (0, ot.addIssueToContext)(n, { + code: Ct.ZodIssueCode.invalid_type, + expected: bt.ZodParsedType.boolean, + received: n.parsedType, + }), + ot.INVALID + ); + } + return (0, ot.OK)(e.data); + } + }; + je.ZodBoolean = vg; + vg.create = (r) => + new vg({ typeName: yr.ZodBoolean, coerce: r?.coerce || !1, ...Fr(r) }); + var bf = class extends Wr { + _parse(e) { + if ( + (this._def.coerce && (e.data = new Date(e.data)), + this._getType(e) !== bt.ZodParsedType.date) + ) { + let i = this._getOrReturnCtx(e); + return ( + (0, ot.addIssueToContext)(i, { + code: Ct.ZodIssueCode.invalid_type, + expected: bt.ZodParsedType.date, + received: i.parsedType, + }), + ot.INVALID + ); + } + if (isNaN(e.data.getTime())) { + let i = this._getOrReturnCtx(e); + return ( + (0, ot.addIssueToContext)(i, { + code: Ct.ZodIssueCode.invalid_date, + }), + ot.INVALID + ); + } + let n = new ot.ParseStatus(), + a; + for (let i of this._def.checks) + i.kind === "min" + ? e.data.getTime() < i.value && + ((a = this._getOrReturnCtx(e, a)), + (0, ot.addIssueToContext)(a, { + code: Ct.ZodIssueCode.too_small, + message: i.message, + inclusive: !0, + exact: !1, + minimum: i.value, + type: "date", + }), + n.dirty()) + : i.kind === "max" + ? e.data.getTime() > i.value && + ((a = this._getOrReturnCtx(e, a)), + (0, ot.addIssueToContext)(a, { + code: Ct.ZodIssueCode.too_big, + message: i.message, + inclusive: !0, + exact: !1, + maximum: i.value, + type: "date", + }), + n.dirty()) + : bt.util.assertNever(i); + return { status: n.value, value: new Date(e.data.getTime()) }; + } + _addCheck(e) { + return new bf({ ...this._def, checks: [...this._def.checks, e] }); + } + min(e, t) { + return this._addCheck({ + kind: "min", + value: e.getTime(), + message: hn.errorUtil.toString(t), + }); + } + max(e, t) { + return this._addCheck({ + kind: "max", + value: e.getTime(), + message: hn.errorUtil.toString(t), + }); + } + get minDate() { + let e = null; + for (let t of this._def.checks) + t.kind === "min" && (e === null || t.value > e) && (e = t.value); + return e != null ? new Date(e) : null; + } + get maxDate() { + let e = null; + for (let t of this._def.checks) + t.kind === "max" && (e === null || t.value < e) && (e = t.value); + return e != null ? new Date(e) : null; + } + }; + je.ZodDate = bf; + bf.create = (r) => + new bf({ + checks: [], + coerce: r?.coerce || !1, + typeName: yr.ZodDate, + ...Fr(r), + }); + var Yv = class extends Wr { + _parse(e) { + if (this._getType(e) !== bt.ZodParsedType.symbol) { + let n = this._getOrReturnCtx(e); + return ( + (0, ot.addIssueToContext)(n, { + code: Ct.ZodIssueCode.invalid_type, + expected: bt.ZodParsedType.symbol, + received: n.parsedType, + }), + ot.INVALID + ); + } + return (0, ot.OK)(e.data); + } + }; + je.ZodSymbol = Yv; + Yv.create = (r) => new Yv({ typeName: yr.ZodSymbol, ...Fr(r) }); + var wg = class extends Wr { + _parse(e) { + if (this._getType(e) !== bt.ZodParsedType.undefined) { + let n = this._getOrReturnCtx(e); + return ( + (0, ot.addIssueToContext)(n, { + code: Ct.ZodIssueCode.invalid_type, + expected: bt.ZodParsedType.undefined, + received: n.parsedType, + }), + ot.INVALID + ); + } + return (0, ot.OK)(e.data); + } + }; + je.ZodUndefined = wg; + wg.create = (r) => new wg({ typeName: yr.ZodUndefined, ...Fr(r) }); + var _g = class extends Wr { + _parse(e) { + if (this._getType(e) !== bt.ZodParsedType.null) { + let n = this._getOrReturnCtx(e); + return ( + (0, ot.addIssueToContext)(n, { + code: Ct.ZodIssueCode.invalid_type, + expected: bt.ZodParsedType.null, + received: n.parsedType, + }), + ot.INVALID + ); + } + return (0, ot.OK)(e.data); + } + }; + je.ZodNull = _g; + _g.create = (r) => new _g({ typeName: yr.ZodNull, ...Fr(r) }); + var n0 = class extends Wr { + constructor() { + super(...arguments), (this._any = !0); + } + _parse(e) { + return (0, ot.OK)(e.data); + } + }; + je.ZodAny = n0; + n0.create = (r) => new n0({ typeName: yr.ZodAny, ...Fr(r) }); + var gf = class extends Wr { + constructor() { + super(...arguments), (this._unknown = !0); + } + _parse(e) { + return (0, ot.OK)(e.data); + } + }; + je.ZodUnknown = gf; + gf.create = (r) => new gf({ typeName: yr.ZodUnknown, ...Fr(r) }); + var Wd = class extends Wr { + _parse(e) { + let t = this._getOrReturnCtx(e); + return ( + (0, ot.addIssueToContext)(t, { + code: Ct.ZodIssueCode.invalid_type, + expected: bt.ZodParsedType.never, + received: t.parsedType, + }), + ot.INVALID + ); + } + }; + je.ZodNever = Wd; + Wd.create = (r) => new Wd({ typeName: yr.ZodNever, ...Fr(r) }); + var $v = class extends Wr { + _parse(e) { + if (this._getType(e) !== bt.ZodParsedType.undefined) { + let n = this._getOrReturnCtx(e); + return ( + (0, ot.addIssueToContext)(n, { + code: Ct.ZodIssueCode.invalid_type, + expected: bt.ZodParsedType.void, + received: n.parsedType, + }), + ot.INVALID + ); + } + return (0, ot.OK)(e.data); + } + }; + je.ZodVoid = $v; + $v.create = (r) => new $v({ typeName: yr.ZodVoid, ...Fr(r) }); + var Uu = class extends Wr { + _parse(e) { + let { ctx: t, status: n } = this._processInputParams(e), + a = this._def; + if (t.parsedType !== bt.ZodParsedType.array) + return ( + (0, ot.addIssueToContext)(t, { + code: Ct.ZodIssueCode.invalid_type, + expected: bt.ZodParsedType.array, + received: t.parsedType, + }), + ot.INVALID + ); + if (a.exactLength !== null) { + let s = t.data.length > a.exactLength.value, + c = t.data.length < a.exactLength.value; + (s || c) && + ((0, ot.addIssueToContext)(t, { + code: s ? Ct.ZodIssueCode.too_big : Ct.ZodIssueCode.too_small, + minimum: c ? a.exactLength.value : void 0, + maximum: s ? a.exactLength.value : void 0, + type: "array", + inclusive: !0, + exact: !0, + message: a.exactLength.message, + }), + n.dirty()); + } + if ( + (a.minLength !== null && + t.data.length < a.minLength.value && + ((0, ot.addIssueToContext)(t, { + code: Ct.ZodIssueCode.too_small, + minimum: a.minLength.value, + type: "array", + inclusive: !0, + exact: !1, + message: a.minLength.message, + }), + n.dirty()), + a.maxLength !== null && + t.data.length > a.maxLength.value && + ((0, ot.addIssueToContext)(t, { + code: Ct.ZodIssueCode.too_big, + maximum: a.maxLength.value, + type: "array", + inclusive: !0, + exact: !1, + message: a.maxLength.message, + }), + n.dirty()), + t.common.async) + ) + return Promise.all( + [...t.data].map((s, c) => + a.type._parseAsync(new Fl(t, s, t.path, c)) + ) + ).then((s) => ot.ParseStatus.mergeArray(n, s)); + let i = [...t.data].map((s, c) => + a.type._parseSync(new Fl(t, s, t.path, c)) + ); + return ot.ParseStatus.mergeArray(n, i); + } + get element() { + return this._def.type; + } + min(e, t) { + return new Uu({ + ...this._def, + minLength: { value: e, message: hn.errorUtil.toString(t) }, + }); + } + max(e, t) { + return new Uu({ + ...this._def, + maxLength: { value: e, message: hn.errorUtil.toString(t) }, + }); + } + length(e, t) { + return new Uu({ + ...this._def, + exactLength: { value: e, message: hn.errorUtil.toString(t) }, + }); + } + nonempty(e) { + return this.min(1, e); + } + }; + je.ZodArray = Uu; + Uu.create = (r, e) => + new Uu({ + type: r, + minLength: null, + maxLength: null, + exactLength: null, + typeName: yr.ZodArray, + ...Fr(e), + }); + var Sge; + (function (r) { + r.mergeShapes = (e, t) => ({ ...e, ...t }); + })((Sge = je.objectUtil || (je.objectUtil = {}))); + function Gv(r) { + if (r instanceof ui) { + let e = {}; + for (let t in r.shape) { + let n = r.shape[t]; + e[t] = qd.create(Gv(n)); + } + return new ui({ ...r._def, shape: () => e }); + } else + return r instanceof Uu + ? Uu.create(Gv(r.element)) + : r instanceof qd + ? qd.create(Gv(r.unwrap())) + : r instanceof wf + ? wf.create(Gv(r.unwrap())) + : r instanceof Wl + ? Wl.create(r.items.map((e) => Gv(e))) + : r; + } + var ui = class extends Wr { + constructor() { + super(...arguments), + (this._cached = null), + (this.nonstrict = this.passthrough), + (this.augment = this.extend); + } + _getCached() { + if (this._cached !== null) return this._cached; + let e = this._def.shape(), + t = bt.util.objectKeys(e); + return (this._cached = { shape: e, keys: t }); + } + _parse(e) { + if (this._getType(e) !== bt.ZodParsedType.object) { + let d = this._getOrReturnCtx(e); + return ( + (0, ot.addIssueToContext)(d, { + code: Ct.ZodIssueCode.invalid_type, + expected: bt.ZodParsedType.object, + received: d.parsedType, + }), + ot.INVALID + ); + } + let { status: n, ctx: a } = this._processInputParams(e), + { shape: i, keys: s } = this._getCached(), + c = []; + if ( + !( + this._def.catchall instanceof Wd && + this._def.unknownKeys === "strip" + ) + ) + for (let d in a.data) s.includes(d) || c.push(d); + let l = []; + for (let d of s) { + let m = i[d], + w = a.data[d]; + l.push({ + key: { status: "valid", value: d }, + value: m._parse(new Fl(a, w, a.path, d)), + alwaysSet: d in a.data, + }); + } + if (this._def.catchall instanceof Wd) { + let d = this._def.unknownKeys; + if (d === "passthrough") + for (let m of c) + l.push({ + key: { status: "valid", value: m }, + value: { status: "valid", value: a.data[m] }, + }); + else if (d === "strict") + c.length > 0 && + ((0, ot.addIssueToContext)(a, { + code: Ct.ZodIssueCode.unrecognized_keys, + keys: c, + }), + n.dirty()); + else if (d !== "strip") + throw new Error( + "Internal ZodObject error: invalid unknownKeys value." + ); + } else { + let d = this._def.catchall; + for (let m of c) { + let w = a.data[m]; + l.push({ + key: { status: "valid", value: m }, + value: d._parse(new Fl(a, w, a.path, m)), + alwaysSet: m in a.data, + }); + } + } + return a.common.async + ? Promise.resolve() + .then(async () => { + let d = []; + for (let m of l) { + let w = await m.key; + d.push({ + key: w, + value: await m.value, + alwaysSet: m.alwaysSet, + }); + } + return d; + }) + .then((d) => ot.ParseStatus.mergeObjectSync(n, d)) + : ot.ParseStatus.mergeObjectSync(n, l); + } + get shape() { + return this._def.shape(); + } + strict(e) { + return ( + hn.errorUtil.errToObj, + new ui({ + ...this._def, + unknownKeys: "strict", + ...(e !== void 0 + ? { + errorMap: (t, n) => { + var a, i, s, c; + let l = + (s = + (i = (a = this._def).errorMap) === null || i === void 0 + ? void 0 + : i.call(a, t, n).message) !== null && s !== void 0 + ? s + : n.defaultError; + return t.code === "unrecognized_keys" + ? { + message: + (c = hn.errorUtil.errToObj(e).message) !== null && + c !== void 0 + ? c + : l, + } + : { message: l }; + }, + } + : {}), + }) + ); + } + strip() { + return new ui({ ...this._def, unknownKeys: "strip" }); + } + passthrough() { + return new ui({ ...this._def, unknownKeys: "passthrough" }); + } + extend(e) { + return new ui({ + ...this._def, + shape: () => ({ ...this._def.shape(), ...e }), + }); + } + merge(e) { + return new ui({ + unknownKeys: e._def.unknownKeys, + catchall: e._def.catchall, + shape: () => Sge.mergeShapes(this._def.shape(), e._def.shape()), + typeName: yr.ZodObject, + }); + } + setKey(e, t) { + return this.augment({ [e]: t }); + } + catchall(e) { + return new ui({ ...this._def, catchall: e }); + } + pick(e) { + let t = {}; + return ( + bt.util.objectKeys(e).forEach((n) => { + e[n] && this.shape[n] && (t[n] = this.shape[n]); + }), + new ui({ ...this._def, shape: () => t }) + ); + } + omit(e) { + let t = {}; + return ( + bt.util.objectKeys(this.shape).forEach((n) => { + e[n] || (t[n] = this.shape[n]); + }), + new ui({ ...this._def, shape: () => t }) + ); + } + deepPartial() { + return Gv(this); + } + partial(e) { + let t = {}; + return ( + bt.util.objectKeys(this.shape).forEach((n) => { + let a = this.shape[n]; + e && !e[n] ? (t[n] = a) : (t[n] = a.optional()); + }), + new ui({ ...this._def, shape: () => t }) + ); + } + required(e) { + let t = {}; + return ( + bt.util.objectKeys(this.shape).forEach((n) => { + if (e && !e[n]) t[n] = this.shape[n]; + else { + let i = this.shape[n]; + for (; i instanceof qd; ) i = i._def.innerType; + t[n] = i; + } + }), + new ui({ ...this._def, shape: () => t }) + ); + } + keyof() { + return Mge(bt.util.objectKeys(this.shape)); + } + }; + je.ZodObject = ui; + ui.create = (r, e) => + new ui({ + shape: () => r, + unknownKeys: "strip", + catchall: Wd.create(), + typeName: yr.ZodObject, + ...Fr(e), + }); + ui.strictCreate = (r, e) => + new ui({ + shape: () => r, + unknownKeys: "strict", + catchall: Wd.create(), + typeName: yr.ZodObject, + ...Fr(e), + }); + ui.lazycreate = (r, e) => + new ui({ + shape: r, + unknownKeys: "strip", + catchall: Wd.create(), + typeName: yr.ZodObject, + ...Fr(e), + }); + var xg = class extends Wr { + _parse(e) { + let { ctx: t } = this._processInputParams(e), + n = this._def.options; + function a(i) { + for (let c of i) if (c.result.status === "valid") return c.result; + for (let c of i) + if (c.result.status === "dirty") + return t.common.issues.push(...c.ctx.common.issues), c.result; + let s = i.map((c) => new Ct.ZodError(c.ctx.common.issues)); + return ( + (0, ot.addIssueToContext)(t, { + code: Ct.ZodIssueCode.invalid_union, + unionErrors: s, + }), + ot.INVALID + ); + } + if (t.common.async) + return Promise.all( + n.map(async (i) => { + let s = { + ...t, + common: { ...t.common, issues: [] }, + parent: null, + }; + return { + result: await i._parseAsync({ + data: t.data, + path: t.path, + parent: s, + }), + ctx: s, + }; + }) + ).then(a); + { + let i, + s = []; + for (let l of n) { + let d = { ...t, common: { ...t.common, issues: [] }, parent: null }, + m = l._parseSync({ data: t.data, path: t.path, parent: d }); + if (m.status === "valid") return m; + m.status === "dirty" && !i && (i = { result: m, ctx: d }), + d.common.issues.length && s.push(d.common.issues); + } + if (i) return t.common.issues.push(...i.ctx.common.issues), i.result; + let c = s.map((l) => new Ct.ZodError(l)); + return ( + (0, ot.addIssueToContext)(t, { + code: Ct.ZodIssueCode.invalid_union, + unionErrors: c, + }), + ot.INVALID + ); + } + } + get options() { + return this._def.options; + } + }; + je.ZodUnion = xg; + xg.create = (r, e) => + new xg({ options: r, typeName: yr.ZodUnion, ...Fr(e) }); + var Kk = (r) => + r instanceof Cg + ? Kk(r.schema) + : r instanceof Hu + ? Kk(r.innerType()) + : r instanceof Ig + ? [r.value] + : r instanceof ah + ? r.options + : r instanceof Ag + ? Object.keys(r.enum) + : r instanceof kg + ? Kk(r._def.innerType) + : r instanceof wg + ? [void 0] + : r instanceof _g + ? [null] + : null, + Jv = class extends Wr { + _parse(e) { + let { ctx: t } = this._processInputParams(e); + if (t.parsedType !== bt.ZodParsedType.object) + return ( + (0, ot.addIssueToContext)(t, { + code: Ct.ZodIssueCode.invalid_type, + expected: bt.ZodParsedType.object, + received: t.parsedType, + }), + ot.INVALID + ); + let n = this.discriminator, + a = t.data[n], + i = this.optionsMap.get(a); + return i + ? t.common.async + ? i._parseAsync({ data: t.data, path: t.path, parent: t }) + : i._parseSync({ data: t.data, path: t.path, parent: t }) + : ((0, ot.addIssueToContext)(t, { + code: Ct.ZodIssueCode.invalid_union_discriminator, + options: Array.from(this.optionsMap.keys()), + path: [n], + }), + ot.INVALID); + } + get discriminator() { + return this._def.discriminator; + } + get options() { + return this._def.options; + } + get optionsMap() { + return this._def.optionsMap; + } + static create(e, t, n) { + let a = new Map(); + for (let i of t) { + let s = Kk(i.shape[e]); + if (!s) + throw new Error( + `A discriminator value for key \`${e}\` could not be extracted from all schema options` + ); + for (let c of s) { + if (a.has(c)) + throw new Error( + `Discriminator property ${String( + e + )} has duplicate value ${String(c)}` + ); + a.set(c, i); + } + } + return new Jv({ + typeName: yr.ZodDiscriminatedUnion, + discriminator: e, + options: t, + optionsMap: a, + ...Fr(n), + }); + } + }; + je.ZodDiscriminatedUnion = Jv; + function qU(r, e) { + let t = (0, bt.getParsedType)(r), + n = (0, bt.getParsedType)(e); + if (r === e) return { valid: !0, data: r }; + if (t === bt.ZodParsedType.object && n === bt.ZodParsedType.object) { + let a = bt.util.objectKeys(e), + i = bt.util.objectKeys(r).filter((c) => a.indexOf(c) !== -1), + s = { ...r, ...e }; + for (let c of i) { + let l = qU(r[c], e[c]); + if (!l.valid) return { valid: !1 }; + s[c] = l.data; + } + return { valid: !0, data: s }; + } else if (t === bt.ZodParsedType.array && n === bt.ZodParsedType.array) { + if (r.length !== e.length) return { valid: !1 }; + let a = []; + for (let i = 0; i < r.length; i++) { + let s = r[i], + c = e[i], + l = qU(s, c); + if (!l.valid) return { valid: !1 }; + a.push(l.data); + } + return { valid: !0, data: a }; + } else + return t === bt.ZodParsedType.date && + n === bt.ZodParsedType.date && + +r == +e + ? { valid: !0, data: r } + : { valid: !1 }; + } + var Tg = class extends Wr { + _parse(e) { + let { status: t, ctx: n } = this._processInputParams(e), + a = (i, s) => { + if ((0, ot.isAborted)(i) || (0, ot.isAborted)(s)) return ot.INVALID; + let c = qU(i.value, s.value); + return c.valid + ? (((0, ot.isDirty)(i) || (0, ot.isDirty)(s)) && t.dirty(), + { status: t.value, value: c.data }) + : ((0, ot.addIssueToContext)(n, { + code: Ct.ZodIssueCode.invalid_intersection_types, + }), + ot.INVALID); + }; + return n.common.async + ? Promise.all([ + this._def.left._parseAsync({ + data: n.data, + path: n.path, + parent: n, + }), + this._def.right._parseAsync({ + data: n.data, + path: n.path, + parent: n, + }), + ]).then(([i, s]) => a(i, s)) + : a( + this._def.left._parseSync({ + data: n.data, + path: n.path, + parent: n, + }), + this._def.right._parseSync({ + data: n.data, + path: n.path, + parent: n, + }) + ); + } + }; + je.ZodIntersection = Tg; + Tg.create = (r, e, t) => + new Tg({ left: r, right: e, typeName: yr.ZodIntersection, ...Fr(t) }); + var Wl = class extends Wr { + _parse(e) { + let { status: t, ctx: n } = this._processInputParams(e); + if (n.parsedType !== bt.ZodParsedType.array) + return ( + (0, ot.addIssueToContext)(n, { + code: Ct.ZodIssueCode.invalid_type, + expected: bt.ZodParsedType.array, + received: n.parsedType, + }), + ot.INVALID + ); + if (n.data.length < this._def.items.length) + return ( + (0, ot.addIssueToContext)(n, { + code: Ct.ZodIssueCode.too_small, + minimum: this._def.items.length, + inclusive: !0, + exact: !1, + type: "array", + }), + ot.INVALID + ); + !this._def.rest && + n.data.length > this._def.items.length && + ((0, ot.addIssueToContext)(n, { + code: Ct.ZodIssueCode.too_big, + maximum: this._def.items.length, + inclusive: !0, + exact: !1, + type: "array", + }), + t.dirty()); + let i = [...n.data] + .map((s, c) => { + let l = this._def.items[c] || this._def.rest; + return l ? l._parse(new Fl(n, s, n.path, c)) : null; + }) + .filter((s) => !!s); + return n.common.async + ? Promise.all(i).then((s) => ot.ParseStatus.mergeArray(t, s)) + : ot.ParseStatus.mergeArray(t, i); + } + get items() { + return this._def.items; + } + rest(e) { + return new Wl({ ...this._def, rest: e }); + } + }; + je.ZodTuple = Wl; + Wl.create = (r, e) => { + if (!Array.isArray(r)) + throw new Error( + "You must pass an array of schemas to z.tuple([ ... ])" + ); + return new Wl({ items: r, typeName: yr.ZodTuple, rest: null, ...Fr(e) }); + }; + var Eg = class extends Wr { + get keySchema() { + return this._def.keyType; + } + get valueSchema() { + return this._def.valueType; + } + _parse(e) { + let { status: t, ctx: n } = this._processInputParams(e); + if (n.parsedType !== bt.ZodParsedType.object) + return ( + (0, ot.addIssueToContext)(n, { + code: Ct.ZodIssueCode.invalid_type, + expected: bt.ZodParsedType.object, + received: n.parsedType, + }), + ot.INVALID + ); + let a = [], + i = this._def.keyType, + s = this._def.valueType; + for (let c in n.data) + a.push({ + key: i._parse(new Fl(n, c, n.path, c)), + value: s._parse(new Fl(n, n.data[c], n.path, c)), + }); + return n.common.async + ? ot.ParseStatus.mergeObjectAsync(t, a) + : ot.ParseStatus.mergeObjectSync(t, a); + } + get element() { + return this._def.valueType; + } + static create(e, t, n) { + return t instanceof Wr + ? new Eg({ + keyType: e, + valueType: t, + typeName: yr.ZodRecord, + ...Fr(n), + }) + : new Eg({ + keyType: Fd.create(), + valueType: e, + typeName: yr.ZodRecord, + ...Fr(t), + }); + } + }; + je.ZodRecord = Eg; + var Zv = class extends Wr { + _parse(e) { + let { status: t, ctx: n } = this._processInputParams(e); + if (n.parsedType !== bt.ZodParsedType.map) + return ( + (0, ot.addIssueToContext)(n, { + code: Ct.ZodIssueCode.invalid_type, + expected: bt.ZodParsedType.map, + received: n.parsedType, + }), + ot.INVALID + ); + let a = this._def.keyType, + i = this._def.valueType, + s = [...n.data.entries()].map(([c, l], d) => ({ + key: a._parse(new Fl(n, c, n.path, [d, "key"])), + value: i._parse(new Fl(n, l, n.path, [d, "value"])), + })); + if (n.common.async) { + let c = new Map(); + return Promise.resolve().then(async () => { + for (let l of s) { + let d = await l.key, + m = await l.value; + if (d.status === "aborted" || m.status === "aborted") + return ot.INVALID; + (d.status === "dirty" || m.status === "dirty") && t.dirty(), + c.set(d.value, m.value); + } + return { status: t.value, value: c }; + }); + } else { + let c = new Map(); + for (let l of s) { + let d = l.key, + m = l.value; + if (d.status === "aborted" || m.status === "aborted") + return ot.INVALID; + (d.status === "dirty" || m.status === "dirty") && t.dirty(), + c.set(d.value, m.value); + } + return { status: t.value, value: c }; + } + } + }; + je.ZodMap = Zv; + Zv.create = (r, e, t) => + new Zv({ valueType: e, keyType: r, typeName: yr.ZodMap, ...Fr(t) }); + var vf = class extends Wr { + _parse(e) { + let { status: t, ctx: n } = this._processInputParams(e); + if (n.parsedType !== bt.ZodParsedType.set) + return ( + (0, ot.addIssueToContext)(n, { + code: Ct.ZodIssueCode.invalid_type, + expected: bt.ZodParsedType.set, + received: n.parsedType, + }), + ot.INVALID + ); + let a = this._def; + a.minSize !== null && + n.data.size < a.minSize.value && + ((0, ot.addIssueToContext)(n, { + code: Ct.ZodIssueCode.too_small, + minimum: a.minSize.value, + type: "set", + inclusive: !0, + exact: !1, + message: a.minSize.message, + }), + t.dirty()), + a.maxSize !== null && + n.data.size > a.maxSize.value && + ((0, ot.addIssueToContext)(n, { + code: Ct.ZodIssueCode.too_big, + maximum: a.maxSize.value, + type: "set", + inclusive: !0, + exact: !1, + message: a.maxSize.message, + }), + t.dirty()); + let i = this._def.valueType; + function s(l) { + let d = new Set(); + for (let m of l) { + if (m.status === "aborted") return ot.INVALID; + m.status === "dirty" && t.dirty(), d.add(m.value); + } + return { status: t.value, value: d }; + } + let c = [...n.data.values()].map((l, d) => + i._parse(new Fl(n, l, n.path, d)) + ); + return n.common.async ? Promise.all(c).then((l) => s(l)) : s(c); + } + min(e, t) { + return new vf({ + ...this._def, + minSize: { value: e, message: hn.errorUtil.toString(t) }, + }); + } + max(e, t) { + return new vf({ + ...this._def, + maxSize: { value: e, message: hn.errorUtil.toString(t) }, + }); + } + size(e, t) { + return this.min(e, t).max(e, t); + } + nonempty(e) { + return this.min(1, e); + } + }; + je.ZodSet = vf; + vf.create = (r, e) => + new vf({ + valueType: r, + minSize: null, + maxSize: null, + typeName: yr.ZodSet, + ...Fr(e), + }); + var r0 = class extends Wr { + constructor() { + super(...arguments), (this.validate = this.implement); + } + _parse(e) { + let { ctx: t } = this._processInputParams(e); + if (t.parsedType !== bt.ZodParsedType.function) + return ( + (0, ot.addIssueToContext)(t, { + code: Ct.ZodIssueCode.invalid_type, + expected: bt.ZodParsedType.function, + received: t.parsedType, + }), + ot.INVALID + ); + function n(c, l) { + return (0, ot.makeIssue)({ + data: c, + path: t.path, + errorMaps: [ + t.common.contextualErrorMap, + t.schemaErrorMap, + (0, jk.getErrorMap)(), + jk.defaultErrorMap, + ].filter((d) => !!d), + issueData: { + code: Ct.ZodIssueCode.invalid_arguments, + argumentsError: l, + }, + }); + } + function a(c, l) { + return (0, ot.makeIssue)({ + data: c, + path: t.path, + errorMaps: [ + t.common.contextualErrorMap, + t.schemaErrorMap, + (0, jk.getErrorMap)(), + jk.defaultErrorMap, + ].filter((d) => !!d), + issueData: { + code: Ct.ZodIssueCode.invalid_return_type, + returnTypeError: l, + }, + }); + } + let i = { errorMap: t.common.contextualErrorMap }, + s = t.data; + return this._def.returns instanceof a0 + ? (0, ot.OK)(async (...c) => { + let l = new Ct.ZodError([]), + d = await this._def.args.parseAsync(c, i).catch((C) => { + throw (l.addIssue(n(c, C)), l); + }), + m = await s(...d); + return await this._def.returns._def.type + .parseAsync(m, i) + .catch((C) => { + throw (l.addIssue(a(m, C)), l); + }); + }) + : (0, ot.OK)((...c) => { + let l = this._def.args.safeParse(c, i); + if (!l.success) throw new Ct.ZodError([n(c, l.error)]); + let d = s(...l.data), + m = this._def.returns.safeParse(d, i); + if (!m.success) throw new Ct.ZodError([a(d, m.error)]); + return m.data; + }); + } + parameters() { + return this._def.args; + } + returnType() { + return this._def.returns; + } + args(...e) { + return new r0({ ...this._def, args: Wl.create(e).rest(gf.create()) }); + } + returns(e) { + return new r0({ ...this._def, returns: e }); + } + implement(e) { + return this.parse(e); + } + strictImplement(e) { + return this.parse(e); + } + static create(e, t, n) { + return new r0({ + args: e || Wl.create([]).rest(gf.create()), + returns: t || gf.create(), + typeName: yr.ZodFunction, + ...Fr(n), + }); + } + }; + je.ZodFunction = r0; + var Cg = class extends Wr { + get schema() { + return this._def.getter(); + } + _parse(e) { + let { ctx: t } = this._processInputParams(e); + return this._def + .getter() + ._parse({ data: t.data, path: t.path, parent: t }); + } + }; + je.ZodLazy = Cg; + Cg.create = (r, e) => new Cg({ getter: r, typeName: yr.ZodLazy, ...Fr(e) }); + var Ig = class extends Wr { + _parse(e) { + if (e.data !== this._def.value) { + let t = this._getOrReturnCtx(e); + return ( + (0, ot.addIssueToContext)(t, { + received: t.data, + code: Ct.ZodIssueCode.invalid_literal, + expected: this._def.value, + }), + ot.INVALID + ); + } + return { status: "valid", value: e.data }; + } + get value() { + return this._def.value; + } + }; + je.ZodLiteral = Ig; + Ig.create = (r, e) => + new Ig({ value: r, typeName: yr.ZodLiteral, ...Fr(e) }); + function Mge(r, e) { + return new ah({ values: r, typeName: yr.ZodEnum, ...Fr(e) }); + } + var ah = class extends Wr { + _parse(e) { + if (typeof e.data != "string") { + let t = this._getOrReturnCtx(e), + n = this._def.values; + return ( + (0, ot.addIssueToContext)(t, { + expected: bt.util.joinValues(n), + received: t.parsedType, + code: Ct.ZodIssueCode.invalid_type, + }), + ot.INVALID + ); + } + if (this._def.values.indexOf(e.data) === -1) { + let t = this._getOrReturnCtx(e), + n = this._def.values; + return ( + (0, ot.addIssueToContext)(t, { + received: t.data, + code: Ct.ZodIssueCode.invalid_enum_value, + options: n, + }), + ot.INVALID + ); + } + return (0, ot.OK)(e.data); + } + get options() { + return this._def.values; + } + get enum() { + let e = {}; + for (let t of this._def.values) e[t] = t; + return e; + } + get Values() { + let e = {}; + for (let t of this._def.values) e[t] = t; + return e; + } + get Enum() { + let e = {}; + for (let t of this._def.values) e[t] = t; + return e; + } + extract(e) { + return ah.create(e); + } + exclude(e) { + return ah.create(this.options.filter((t) => !e.includes(t))); + } + }; + je.ZodEnum = ah; + ah.create = Mge; + var Ag = class extends Wr { + _parse(e) { + let t = bt.util.getValidEnumValues(this._def.values), + n = this._getOrReturnCtx(e); + if ( + n.parsedType !== bt.ZodParsedType.string && + n.parsedType !== bt.ZodParsedType.number + ) { + let a = bt.util.objectValues(t); + return ( + (0, ot.addIssueToContext)(n, { + expected: bt.util.joinValues(a), + received: n.parsedType, + code: Ct.ZodIssueCode.invalid_type, + }), + ot.INVALID + ); + } + if (t.indexOf(e.data) === -1) { + let a = bt.util.objectValues(t); + return ( + (0, ot.addIssueToContext)(n, { + received: n.data, + code: Ct.ZodIssueCode.invalid_enum_value, + options: a, + }), + ot.INVALID + ); + } + return (0, ot.OK)(e.data); + } + get enum() { + return this._def.values; + } + }; + je.ZodNativeEnum = Ag; + Ag.create = (r, e) => + new Ag({ values: r, typeName: yr.ZodNativeEnum, ...Fr(e) }); + var a0 = class extends Wr { + unwrap() { + return this._def.type; + } + _parse(e) { + let { ctx: t } = this._processInputParams(e); + if (t.parsedType !== bt.ZodParsedType.promise && t.common.async === !1) + return ( + (0, ot.addIssueToContext)(t, { + code: Ct.ZodIssueCode.invalid_type, + expected: bt.ZodParsedType.promise, + received: t.parsedType, + }), + ot.INVALID + ); + let n = + t.parsedType === bt.ZodParsedType.promise + ? t.data + : Promise.resolve(t.data); + return (0, ot.OK)( + n.then((a) => + this._def.type.parseAsync(a, { + path: t.path, + errorMap: t.common.contextualErrorMap, + }) + ) + ); + } + }; + je.ZodPromise = a0; + a0.create = (r, e) => + new a0({ type: r, typeName: yr.ZodPromise, ...Fr(e) }); + var Hu = class extends Wr { + innerType() { + return this._def.schema; + } + sourceType() { + return this._def.schema._def.typeName === yr.ZodEffects + ? this._def.schema.sourceType() + : this._def.schema; + } + _parse(e) { + let { status: t, ctx: n } = this._processInputParams(e), + a = this._def.effect || null; + if (a.type === "preprocess") { + let s = a.transform(n.data); + return n.common.async + ? Promise.resolve(s).then((c) => + this._def.schema._parseAsync({ + data: c, + path: n.path, + parent: n, + }) + ) + : this._def.schema._parseSync({ data: s, path: n.path, parent: n }); + } + let i = { + addIssue: (s) => { + (0, ot.addIssueToContext)(n, s), s.fatal ? t.abort() : t.dirty(); + }, + get path() { + return n.path; + }, + }; + if (((i.addIssue = i.addIssue.bind(i)), a.type === "refinement")) { + let s = (c) => { + let l = a.refinement(c, i); + if (n.common.async) return Promise.resolve(l); + if (l instanceof Promise) + throw new Error( + "Async refinement encountered during synchronous parse operation. Use .parseAsync instead." + ); + return c; + }; + if (n.common.async === !1) { + let c = this._def.schema._parseSync({ + data: n.data, + path: n.path, + parent: n, + }); + return c.status === "aborted" + ? ot.INVALID + : (c.status === "dirty" && t.dirty(), + s(c.value), + { status: t.value, value: c.value }); + } else + return this._def.schema + ._parseAsync({ data: n.data, path: n.path, parent: n }) + .then((c) => + c.status === "aborted" + ? ot.INVALID + : (c.status === "dirty" && t.dirty(), + s(c.value).then(() => ({ + status: t.value, + value: c.value, + }))) + ); + } + if (a.type === "transform") + if (n.common.async === !1) { + let s = this._def.schema._parseSync({ + data: n.data, + path: n.path, + parent: n, + }); + if (!(0, ot.isValid)(s)) return s; + let c = a.transform(s.value, i); + if (c instanceof Promise) + throw new Error( + "Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead." + ); + return { status: t.value, value: c }; + } else + return this._def.schema + ._parseAsync({ data: n.data, path: n.path, parent: n }) + .then((s) => + (0, ot.isValid)(s) + ? Promise.resolve(a.transform(s.value, i)).then((c) => ({ + status: t.value, + value: c, + })) + : s + ); + bt.util.assertNever(a); + } + }; + je.ZodEffects = Hu; + je.ZodTransformer = Hu; + Hu.create = (r, e, t) => + new Hu({ schema: r, typeName: yr.ZodEffects, effect: e, ...Fr(t) }); + Hu.createWithPreprocess = (r, e, t) => + new Hu({ + schema: e, + effect: { type: "preprocess", transform: r }, + typeName: yr.ZodEffects, + ...Fr(t), + }); + var qd = class extends Wr { + _parse(e) { + return this._getType(e) === bt.ZodParsedType.undefined + ? (0, ot.OK)(void 0) + : this._def.innerType._parse(e); + } + unwrap() { + return this._def.innerType; + } + }; + je.ZodOptional = qd; + qd.create = (r, e) => + new qd({ innerType: r, typeName: yr.ZodOptional, ...Fr(e) }); + var wf = class extends Wr { + _parse(e) { + return this._getType(e) === bt.ZodParsedType.null + ? (0, ot.OK)(null) + : this._def.innerType._parse(e); + } + unwrap() { + return this._def.innerType; + } + }; + je.ZodNullable = wf; + wf.create = (r, e) => + new wf({ innerType: r, typeName: yr.ZodNullable, ...Fr(e) }); + var kg = class extends Wr { + _parse(e) { + let { ctx: t } = this._processInputParams(e), + n = t.data; + return ( + t.parsedType === bt.ZodParsedType.undefined && + (n = this._def.defaultValue()), + this._def.innerType._parse({ data: n, path: t.path, parent: t }) + ); + } + removeDefault() { + return this._def.innerType; + } + }; + je.ZodDefault = kg; + kg.create = (r, e) => + new kg({ + innerType: r, + typeName: yr.ZodDefault, + defaultValue: + typeof e.default == "function" ? e.default : () => e.default, + ...Fr(e), + }); + var Qv = class extends Wr { + _parse(e) { + let { ctx: t } = this._processInputParams(e), + n = this._def.innerType._parse({ + data: t.data, + path: t.path, + parent: { ...t, common: { ...t.common, issues: [] } }, + }); + return (0, ot.isAsync)(n) + ? n.then((a) => ({ + status: "valid", + value: a.status === "valid" ? a.value : this._def.catchValue(), + })) + : { + status: "valid", + value: n.status === "valid" ? n.value : this._def.catchValue(), + }; + } + removeCatch() { + return this._def.innerType; + } + }; + je.ZodCatch = Qv; + Qv.create = (r, e) => + new Qv({ + innerType: r, + typeName: yr.ZodCatch, + catchValue: typeof e.catch == "function" ? e.catch : () => e.catch, + ...Fr(e), + }); + var Xv = class extends Wr { + _parse(e) { + if (this._getType(e) !== bt.ZodParsedType.nan) { + let n = this._getOrReturnCtx(e); + return ( + (0, ot.addIssueToContext)(n, { + code: Ct.ZodIssueCode.invalid_type, + expected: bt.ZodParsedType.nan, + received: n.parsedType, + }), + ot.INVALID + ); + } + return { status: "valid", value: e.data }; + } + }; + je.ZodNaN = Xv; + Xv.create = (r) => new Xv({ typeName: yr.ZodNaN, ...Fr(r) }); + je.BRAND = Symbol("zod_brand"); + var Vk = class extends Wr { + _parse(e) { + let { ctx: t } = this._processInputParams(e), + n = t.data; + return this._def.type._parse({ data: n, path: t.path, parent: t }); + } + unwrap() { + return this._def.type; + } + }; + je.ZodBranded = Vk; + var Sg = class extends Wr { + _parse(e) { + let { status: t, ctx: n } = this._processInputParams(e); + if (n.common.async) + return (async () => { + let i = await this._def.in._parseAsync({ + data: n.data, + path: n.path, + parent: n, + }); + return i.status === "aborted" + ? ot.INVALID + : i.status === "dirty" + ? (t.dirty(), (0, ot.DIRTY)(i.value)) + : this._def.out._parseAsync({ + data: i.value, + path: n.path, + parent: n, + }); + })(); + { + let a = this._def.in._parseSync({ + data: n.data, + path: n.path, + parent: n, + }); + return a.status === "aborted" + ? ot.INVALID + : a.status === "dirty" + ? (t.dirty(), { status: "dirty", value: a.value }) + : this._def.out._parseSync({ + data: a.value, + path: n.path, + parent: n, + }); + } + } + static create(e, t) { + return new Sg({ in: e, out: t, typeName: yr.ZodPipeline }); + } + }; + je.ZodPipeline = Sg; + var nIt = (r, e = {}, t) => + r + ? n0.create().superRefine((n, a) => { + if (!r(n)) { + let i = typeof e == "function" ? e(n) : e, + s = typeof i == "string" ? { message: i } : i; + a.addIssue({ code: "custom", ...s, fatal: t }); + } + }) + : n0.create(); + je.custom = nIt; + je.late = { object: ui.lazycreate }; + var yr; + (function (r) { + (r.ZodString = "ZodString"), + (r.ZodNumber = "ZodNumber"), + (r.ZodNaN = "ZodNaN"), + (r.ZodBigInt = "ZodBigInt"), + (r.ZodBoolean = "ZodBoolean"), + (r.ZodDate = "ZodDate"), + (r.ZodSymbol = "ZodSymbol"), + (r.ZodUndefined = "ZodUndefined"), + (r.ZodNull = "ZodNull"), + (r.ZodAny = "ZodAny"), + (r.ZodUnknown = "ZodUnknown"), + (r.ZodNever = "ZodNever"), + (r.ZodVoid = "ZodVoid"), + (r.ZodArray = "ZodArray"), + (r.ZodObject = "ZodObject"), + (r.ZodUnion = "ZodUnion"), + (r.ZodDiscriminatedUnion = "ZodDiscriminatedUnion"), + (r.ZodIntersection = "ZodIntersection"), + (r.ZodTuple = "ZodTuple"), + (r.ZodRecord = "ZodRecord"), + (r.ZodMap = "ZodMap"), + (r.ZodSet = "ZodSet"), + (r.ZodFunction = "ZodFunction"), + (r.ZodLazy = "ZodLazy"), + (r.ZodLiteral = "ZodLiteral"), + (r.ZodEnum = "ZodEnum"), + (r.ZodEffects = "ZodEffects"), + (r.ZodNativeEnum = "ZodNativeEnum"), + (r.ZodOptional = "ZodOptional"), + (r.ZodNullable = "ZodNullable"), + (r.ZodDefault = "ZodDefault"), + (r.ZodCatch = "ZodCatch"), + (r.ZodPromise = "ZodPromise"), + (r.ZodBranded = "ZodBranded"), + (r.ZodPipeline = "ZodPipeline"); + })((yr = je.ZodFirstPartyTypeKind || (je.ZodFirstPartyTypeKind = {}))); + var aIt = (r, e = { message: `Input not instance of ${r.name}` }) => + (0, je.custom)((t) => t instanceof r, e, !0); + je.instanceof = aIt; + var Pge = Fd.create; + je.string = Pge; + var Rge = nh.create; + je.number = Rge; + var iIt = Xv.create; + je.nan = iIt; + var sIt = bg.create; + je.bigint = sIt; + var Bge = vg.create; + je.boolean = Bge; + var oIt = bf.create; + je.date = oIt; + var cIt = Yv.create; + je.symbol = cIt; + var uIt = wg.create; + je.undefined = uIt; + var lIt = _g.create; + je.null = lIt; + var dIt = n0.create; + je.any = dIt; + var pIt = gf.create; + je.unknown = pIt; + var hIt = Wd.create; + je.never = hIt; + var fIt = $v.create; + je.void = fIt; + var mIt = Uu.create; + je.array = mIt; + var yIt = ui.create; + je.object = yIt; + var gIt = ui.strictCreate; + je.strictObject = gIt; + var bIt = xg.create; + je.union = bIt; + var vIt = Jv.create; + je.discriminatedUnion = vIt; + var wIt = Tg.create; + je.intersection = wIt; + var _It = Wl.create; + je.tuple = _It; + var xIt = Eg.create; + je.record = xIt; + var TIt = Zv.create; + je.map = TIt; + var EIt = vf.create; + je.set = EIt; + var CIt = r0.create; + je.function = CIt; + var IIt = Cg.create; + je.lazy = IIt; + var AIt = Ig.create; + je.literal = AIt; + var kIt = ah.create; + je.enum = kIt; + var SIt = Ag.create; + je.nativeEnum = SIt; + var MIt = a0.create; + je.promise = MIt; + var Nge = Hu.create; + je.effect = Nge; + je.transformer = Nge; + var PIt = qd.create; + je.optional = PIt; + var RIt = wf.create; + je.nullable = RIt; + var BIt = Hu.createWithPreprocess; + je.preprocess = BIt; + var NIt = Sg.create; + je.pipeline = NIt; + var OIt = () => Pge().optional(); + je.ostring = OIt; + var LIt = () => Rge().optional(); + je.onumber = LIt; + var DIt = () => Bge().optional(); + je.oboolean = DIt; + je.coerce = { + string: (r) => Fd.create({ ...r, coerce: !0 }), + number: (r) => nh.create({ ...r, coerce: !0 }), + boolean: (r) => vg.create({ ...r, coerce: !0 }), + bigint: (r) => bg.create({ ...r, coerce: !0 }), + date: (r) => bf.create({ ...r, coerce: !0 }), + }; + je.NEVER = ot.INVALID; + }); + var FU = N((Ul) => { + "use strict"; + _(); + x(); + var qIt = + (Ul && Ul.__createBinding) || + (Object.create + ? function (r, e, t, n) { + n === void 0 && (n = t), + Object.defineProperty(r, n, { + enumerable: !0, + get: function () { + return e[t]; + }, + }); + } + : function (r, e, t, n) { + n === void 0 && (n = t), (r[n] = e[t]); + }), + ew = + (Ul && Ul.__exportStar) || + function (r, e) { + for (var t in r) + t !== "default" && + !Object.prototype.hasOwnProperty.call(e, t) && + qIt(e, r, t); + }; + Object.defineProperty(Ul, "__esModule", { value: !0 }); + ew(zk(), Ul); + ew(DU(), Ul); + ew(Ige(), Ul); + ew(A5(), Ul); + ew(Oge(), Ul); + ew(Hk(), Ul); + }); + var an = N((ru) => { + "use strict"; + _(); + x(); + var Lge = + (ru && ru.__createBinding) || + (Object.create + ? function (r, e, t, n) { + n === void 0 && (n = t), + Object.defineProperty(r, n, { + enumerable: !0, + get: function () { + return e[t]; + }, + }); + } + : function (r, e, t, n) { + n === void 0 && (n = t), (r[n] = e[t]); + }), + FIt = + (ru && ru.__setModuleDefault) || + (Object.create + ? function (r, e) { + Object.defineProperty(r, "default", { enumerable: !0, value: e }); + } + : function (r, e) { + r.default = e; + }), + WIt = + (ru && ru.__importStar) || + function (r) { + if (r && r.__esModule) return r; + var e = {}; + if (r != null) + for (var t in r) + t !== "default" && + Object.prototype.hasOwnProperty.call(r, t) && + Lge(e, r, t); + return FIt(e, r), e; + }, + UIt = + (ru && ru.__exportStar) || + function (r, e) { + for (var t in r) + t !== "default" && + !Object.prototype.hasOwnProperty.call(e, t) && + Lge(e, r, t); + }; + Object.defineProperty(ru, "__esModule", { value: !0 }); + ru.z = void 0; + var Dge = WIt(FU()); + ru.z = Dge; + UIt(FU(), ru); + ru.default = Dge; + }); + var Gge = N((Tc) => { + "use strict"; + _(); + x(); + var qge = wt(), + Fge = I5(), + _t = an(); + function HIt(r, e) { + if (typeof r != "object" || r === null) return r; + var t = r[Symbol.toPrimitive]; + if (t !== void 0) { + var n = t.call(r, e || "default"); + if (typeof n != "object") return n; + throw new TypeError("@@toPrimitive must return a primitive value."); + } + return (e === "string" ? String : Number)(r); + } + function zIt(r) { + var e = HIt(r, "string"); + return typeof e == "symbol" ? e : String(e); + } + function UU(r, e, t) { + return ( + (e = zIt(e)), + e in r + ? Object.defineProperty(r, e, { + value: t, + enumerable: !0, + configurable: !0, + writable: !0, + }) + : (r[e] = t), + r + ); + } + var jIt = _t.z.string().refine( + (r) => qge.utils.isAddress(r), + (r) => ({ message: `${r} is not a valid address` }) + ), + Gk = _t.z + .date() + .transform((r) => qge.BigNumber.from(Math.floor(r.getTime() / 1e3))), + Wge = _t.z.union([_t.z.literal("evm"), _t.z.literal("solana")]), + KIt = _t.z.union([ + _t.z.string(), + _t.z.number(), + _t.z.boolean(), + _t.z.null(), + ]), + Yk = _t.z.lazy(() => _t.z.union([KIt, _t.z.array(Yk), _t.z.record(Yk)]), { + invalid_type_error: "Provided value was not valid JSON", + }), + Uge = _t.z + .object({ + domain: _t.z.string().optional(), + statement: _t.z.string().optional(), + uri: _t.z.string().optional(), + version: _t.z.string().optional(), + chainId: _t.z.string().optional(), + nonce: _t.z.string().optional(), + expirationTime: _t.z.date().optional(), + invalidBefore: _t.z.date().optional(), + resources: _t.z.array(_t.z.string()).optional(), + }) + .optional(), + $k = _t.z.object({ + type: Wge, + domain: _t.z.string(), + address: _t.z.string(), + statement: _t.z + .string() + .default( + "Please ensure that the domain above matches the URL of the current website." + ), + uri: _t.z.string().optional(), + version: _t.z.string().default("1"), + chain_id: _t.z.string().optional(), + nonce: _t.z.string().default(Fge.v4()), + issued_at: _t.z + .date() + .default(new Date()) + .transform((r) => r.toISOString()), + expiration_time: _t.z.date().transform((r) => r.toISOString()), + invalid_before: _t.z + .date() + .default(new Date()) + .transform((r) => r.toISOString()), + resources: _t.z.array(_t.z.string()).optional(), + }), + Hge = _t.z.object({ payload: $k, signature: _t.z.string() }), + zge = _t.z.object({ + domain: _t.z.string().optional(), + statement: _t.z.string().optional(), + uri: _t.z.string().optional(), + version: _t.z.string().optional(), + chainId: _t.z.string().optional(), + validateNonce: _t.z.function().args(_t.z.string()).optional(), + resources: _t.z.array(_t.z.string()).optional(), + }), + jge = zge.optional(), + Kge = _t.z + .object({ + domain: _t.z.string().optional(), + tokenId: _t.z.string().optional(), + expirationTime: _t.z.date().optional(), + invalidBefore: _t.z.date().optional(), + session: _t.z + .union([Yk, _t.z.function().args(_t.z.string())]) + .optional(), + verifyOptions: zge.omit({ domain: !0 }).optional(), + }) + .optional(), + zU = _t.z.object({ + iss: _t.z.string(), + sub: _t.z.string(), + aud: _t.z.string(), + exp: Gk.transform((r) => r.toNumber()), + nbf: Gk.transform((r) => r.toNumber()), + iat: Gk.transform((r) => r.toNumber()), + jti: _t.z.string().default(Fge.v4()), + ctx: Yk.optional(), + }), + VIt = _t.z.object({ payload: zU, signature: _t.z.string() }), + Vge = _t.z + .object({ + domain: _t.z.string().optional(), + validateTokenId: _t.z.function().args(_t.z.string()).optional(), + }) + .optional(), + GIt = Hge.extend({ + payload: $k.extend({ + issued_at: _t.z.string(), + expiration_time: _t.z.string(), + invalid_before: _t.z.string(), + }), + }), + WU = () => typeof window < "u", + HU = class { + constructor(e, t) { + UU(this, "domain", void 0), + UU(this, "wallet", void 0), + (this.wallet = e), + (this.domain = t); + } + updateWallet(e) { + this.wallet = e; + } + async login(e) { + let t = Uge.parse(e), + n = t?.chainId; + if (!n && this.wallet.getChainId) + try { + n = (await this.wallet.getChainId()).toString(); + } catch {} + let a = $k.parse({ + type: this.wallet.type, + domain: t?.domain || this.domain, + address: await this.wallet.getAddress(), + statement: t?.statement, + version: t?.version, + uri: t?.uri || (WU() ? window.location.origin : void 0), + chain_id: n, + nonce: t?.nonce, + expiration_time: + t?.expirationTime || new Date(Date.now() + 1e3 * 60 * 5), + invalid_before: t?.invalidBefore, + resources: t?.resources, + }), + i = this.generateMessage(a), + s = await this.wallet.signMessage(i); + return { payload: a, signature: s }; + } + async verify(e, t) { + let n = jge.parse(t); + if (e.payload.type !== this.wallet.type) + throw new Error( + `Expected chain type '${this.wallet.type}' does not match chain type on payload '${e.payload.type}'` + ); + let a = n?.domain || this.domain; + if (e.payload.domain !== a) + throw new Error( + `Expected domain '${a}' does not match domain on payload '${e.payload.domain}'` + ); + if (n?.statement && e.payload.statement !== n.statement) + throw new Error( + `Expected statement '${n.statement}' does not match statement on payload '${e.payload.statement}'` + ); + if (n?.uri && e.payload.uri !== n.uri) + throw new Error( + `Expected URI '${n.uri}' does not match URI on payload '${e.payload.uri}'` + ); + if (n?.version && e.payload.version !== n.version) + throw new Error( + `Expected version '${n.version}' does not match version on payload '${e.payload.version}'` + ); + if (n?.chainId && e.payload.chain_id !== n.chainId) + throw new Error( + `Expected chain ID '${n.chainId}' does not match chain ID on payload '${e.payload.chain_id}'` + ); + if (n?.validateNonce !== void 0) + try { + await n.validateNonce(e.payload.nonce); + } catch { + throw new Error("Login request nonce is invalid"); + } + let i = new Date(); + if (i < new Date(e.payload.invalid_before)) + throw new Error("Login request is not yet valid"); + if (i > new Date(e.payload.expiration_time)) + throw new Error("Login request has expired"); + if (n?.resources) { + let d = n.resources.filter( + (m) => !e.payload.resources?.includes(m) + ); + if (d.length > 0) + throw new Error( + `Login request is missing required resources: ${d.join(", ")}` + ); + } + let s = this.generateMessage(e.payload), + c = + this.wallet.type === "evm" && e.payload.chain_id + ? parseInt(e.payload.chain_id) + : void 0; + if ( + !(await this.verifySignature(s, e.signature, e.payload.address, c)) + ) + throw new Error( + `Signer address does not match payload address '${e.payload.address.toLowerCase()}'` + ); + return e.payload.address; + } + async generate(e, t) { + if (WU()) + throw new Error( + "Authentication tokens should not be generated in the browser, as they must be signed by a server-side admin wallet." + ); + let n = Kge.parse(t), + a = n?.domain || this.domain, + i = await this.verify(e, { domain: a, ...n?.verifyOptions }), + s; + if (typeof n?.session == "function") { + let D = await n.session(i); + D && (s = D); + } else s = n?.session; + let c = await this.wallet.getAddress(), + l = zU.parse({ + iss: c, + sub: i, + aud: a, + nbf: n?.invalidBefore || new Date(), + exp: + n?.expirationTime || new Date(Date.now() + 1e3 * 60 * 60 * 5), + iat: new Date(), + jti: n?.tokenId, + ctx: s, + }), + d = JSON.stringify(l), + m = await this.wallet.signMessage(d), + w = { alg: "ES256", typ: "JWT" }, + C = P.Buffer.from(JSON.stringify(w)).toString("base64"), + I = P.Buffer.from(JSON.stringify(l)) + .toString("base64") + .replace(/=/g, ""), + k = P.Buffer.from(m).toString("base64"); + return `${C}.${I}.${k}`; + } + async authenticate(e, t) { + if (WU()) + throw new Error( + "Should not authenticate tokens in the browser, as they must be verified by the server-side admin wallet." + ); + let n = Vge.parse(t), + a = n?.domain || this.domain, + i = e.split(".")[1], + s = e.split(".")[2], + c = JSON.parse(P.Buffer.from(i, "base64").toString()), + l = P.Buffer.from(s, "base64").toString(); + if (n?.validateTokenId !== void 0) + try { + await n.validateTokenId(c.jti); + } catch { + throw new Error("Token ID is invalid"); + } + if (c.aud !== a) + throw new Error( + `Expected token to be for the domain '${a}', but found token with domain '${c.aud}'` + ); + let d = Math.floor(new Date().getTime() / 1e3); + if (d < c.nbf) + throw new Error( + `This token is invalid before epoch time '${c.nbf}', current epoch time is '${d}'` + ); + if (d > c.exp) + throw new Error( + `This token expired at epoch time '${c.exp}', current epoch time is '${d}'` + ); + let m = await this.wallet.getAddress(); + if (m.toLowerCase() !== c.iss.toLowerCase()) + throw new Error( + `Expected the connected wallet address '${m}' to match the token issuer address '${c.iss}'` + ); + let w; + if (this.wallet.getChainId) + try { + w = await this.wallet.getChainId(); + } catch {} + if (!(await this.verifySignature(JSON.stringify(c), l, m, w))) + throw new Error( + `The connected wallet address '${m}' did not sign the token` + ); + return { address: c.sub, session: c.ctx }; + } + async verifySignature(e, t, n, a) { + return this.wallet.verifySignature(e, t, n, a); + } + generateMessage(e) { + let t = e.type === "evm" ? "Ethereum" : "Solana", + a = [ + `${e.domain} wants you to sign in with your ${t} account:`, + e.address, + ].join(` +`); + (a = [a, e.statement].join(` + +`)), + e.statement && + (a += ` +`); + let i = []; + if (e.uri) { + let w = `URI: ${e.uri}`; + i.push(w); + } + let s = `Version: ${e.version}`; + if ((i.push(s), e.chain_id)) { + let w = "Chain ID: " + e.chain_id || "1"; + i.push(w); + } + let c = `Nonce: ${e.nonce}`; + i.push(c); + let l = `Issued At: ${e.issued_at}`; + i.push(l); + let d = `Expiration Time: ${e.expiration_time}`; + if ((i.push(d), e.invalid_before)) { + let w = `Not Before: ${e.invalid_before}`; + i.push(w); + } + e.resources && + i.push( + ["Resources:", ...e.resources.map((w) => `- ${w}`)].join(` +`) + ); + let m = i.join(` +`); + return [a, m].join(` +`); + } + }; + Tc.AccountTypeSchema = Wge; + Tc.AddressSchema = jIt; + Tc.AuthenticateOptionsSchema = Vge; + Tc.AuthenticationPayloadDataSchema = zU; + Tc.AuthenticationPayloadSchema = VIt; + Tc.GenerateOptionsSchema = Kge; + Tc.LoginOptionsSchema = Uge; + Tc.LoginPayloadDataSchema = $k; + Tc.LoginPayloadOutputSchema = GIt; + Tc.LoginPayloadSchema = Hge; + Tc.RawDateSchema = Gk; + Tc.ThirdwebAuth = HU; + Tc.VerifyOptionsSchema = jge; + Tc._defineProperty = UU; + }); + var Yge = N((Ec) => { + "use strict"; + _(); + x(); + Object.defineProperty(Ec, "__esModule", { value: !0 }); + var zu = Gge(); + wt(); + I5(); + an(); + Ec.AccountTypeSchema = zu.AccountTypeSchema; + Ec.AddressSchema = zu.AddressSchema; + Ec.AuthenticateOptionsSchema = zu.AuthenticateOptionsSchema; + Ec.AuthenticationPayloadDataSchema = zu.AuthenticationPayloadDataSchema; + Ec.AuthenticationPayloadSchema = zu.AuthenticationPayloadSchema; + Ec.GenerateOptionsSchema = zu.GenerateOptionsSchema; + Ec.LoginOptionsSchema = zu.LoginOptionsSchema; + Ec.LoginPayloadDataSchema = zu.LoginPayloadDataSchema; + Ec.LoginPayloadOutputSchema = zu.LoginPayloadOutputSchema; + Ec.LoginPayloadSchema = zu.LoginPayloadSchema; + Ec.RawDateSchema = zu.RawDateSchema; + Ec.ThirdwebAuth = zu.ThirdwebAuth; + Ec.VerifyOptionsSchema = zu.VerifyOptionsSchema; + }); + var abe = N((Cc) => { + "use strict"; + _(); + x(); + var $ge = wt(), + Jge = I5(), + xt = an(); + function YIt(r, e) { + if (typeof r != "object" || r === null) return r; + var t = r[Symbol.toPrimitive]; + if (t !== void 0) { + var n = t.call(r, e || "default"); + if (typeof n != "object") return n; + throw new TypeError("@@toPrimitive must return a primitive value."); + } + return (e === "string" ? String : Number)(r); + } + function $It(r) { + var e = YIt(r, "string"); + return typeof e == "symbol" ? e : String(e); + } + function KU(r, e, t) { + return ( + (e = $It(e)), + e in r + ? Object.defineProperty(r, e, { + value: t, + enumerable: !0, + configurable: !0, + writable: !0, + }) + : (r[e] = t), + r + ); + } + var JIt = xt.z.string().refine( + (r) => $ge.utils.isAddress(r), + (r) => ({ message: `${r} is not a valid address` }) + ), + Jk = xt.z + .date() + .transform((r) => $ge.BigNumber.from(Math.floor(r.getTime() / 1e3))), + Zge = xt.z.union([xt.z.literal("evm"), xt.z.literal("solana")]), + ZIt = xt.z.union([ + xt.z.string(), + xt.z.number(), + xt.z.boolean(), + xt.z.null(), + ]), + Zk = xt.z.lazy(() => xt.z.union([ZIt, xt.z.array(Zk), xt.z.record(Zk)]), { + invalid_type_error: "Provided value was not valid JSON", + }), + Qge = xt.z + .object({ + domain: xt.z.string().optional(), + statement: xt.z.string().optional(), + uri: xt.z.string().optional(), + version: xt.z.string().optional(), + chainId: xt.z.string().optional(), + nonce: xt.z.string().optional(), + expirationTime: xt.z.date().optional(), + invalidBefore: xt.z.date().optional(), + resources: xt.z.array(xt.z.string()).optional(), + }) + .optional(), + Qk = xt.z.object({ + type: Zge, + domain: xt.z.string(), + address: xt.z.string(), + statement: xt.z + .string() + .default( + "Please ensure that the domain above matches the URL of the current website." + ), + uri: xt.z.string().optional(), + version: xt.z.string().default("1"), + chain_id: xt.z.string().optional(), + nonce: xt.z.string().default(Jge.v4()), + issued_at: xt.z + .date() + .default(new Date()) + .transform((r) => r.toISOString()), + expiration_time: xt.z.date().transform((r) => r.toISOString()), + invalid_before: xt.z + .date() + .default(new Date()) + .transform((r) => r.toISOString()), + resources: xt.z.array(xt.z.string()).optional(), + }), + Xge = xt.z.object({ payload: Qk, signature: xt.z.string() }), + ebe = xt.z.object({ + domain: xt.z.string().optional(), + statement: xt.z.string().optional(), + uri: xt.z.string().optional(), + version: xt.z.string().optional(), + chainId: xt.z.string().optional(), + validateNonce: xt.z.function().args(xt.z.string()).optional(), + resources: xt.z.array(xt.z.string()).optional(), + }), + tbe = ebe.optional(), + rbe = xt.z + .object({ + domain: xt.z.string().optional(), + tokenId: xt.z.string().optional(), + expirationTime: xt.z.date().optional(), + invalidBefore: xt.z.date().optional(), + session: xt.z + .union([Zk, xt.z.function().args(xt.z.string())]) + .optional(), + verifyOptions: ebe.omit({ domain: !0 }).optional(), + }) + .optional(), + GU = xt.z.object({ + iss: xt.z.string(), + sub: xt.z.string(), + aud: xt.z.string(), + exp: Jk.transform((r) => r.toNumber()), + nbf: Jk.transform((r) => r.toNumber()), + iat: Jk.transform((r) => r.toNumber()), + jti: xt.z.string().default(Jge.v4()), + ctx: Zk.optional(), + }), + QIt = xt.z.object({ payload: GU, signature: xt.z.string() }), + nbe = xt.z + .object({ + domain: xt.z.string().optional(), + validateTokenId: xt.z.function().args(xt.z.string()).optional(), + }) + .optional(), + XIt = Xge.extend({ + payload: Qk.extend({ + issued_at: xt.z.string(), + expiration_time: xt.z.string(), + invalid_before: xt.z.string(), + }), + }), + jU = () => typeof window < "u", + VU = class { + constructor(e, t) { + KU(this, "domain", void 0), + KU(this, "wallet", void 0), + (this.wallet = e), + (this.domain = t); + } + updateWallet(e) { + this.wallet = e; + } + async login(e) { + let t = Qge.parse(e), + n = t?.chainId; + if (!n && this.wallet.getChainId) + try { + n = (await this.wallet.getChainId()).toString(); + } catch {} + let a = Qk.parse({ + type: this.wallet.type, + domain: t?.domain || this.domain, + address: await this.wallet.getAddress(), + statement: t?.statement, + version: t?.version, + uri: t?.uri || (jU() ? window.location.origin : void 0), + chain_id: n, + nonce: t?.nonce, + expiration_time: + t?.expirationTime || new Date(Date.now() + 1e3 * 60 * 5), + invalid_before: t?.invalidBefore, + resources: t?.resources, + }), + i = this.generateMessage(a), + s = await this.wallet.signMessage(i); + return { payload: a, signature: s }; + } + async verify(e, t) { + let n = tbe.parse(t); + if (e.payload.type !== this.wallet.type) + throw new Error( + `Expected chain type '${this.wallet.type}' does not match chain type on payload '${e.payload.type}'` + ); + let a = n?.domain || this.domain; + if (e.payload.domain !== a) + throw new Error( + `Expected domain '${a}' does not match domain on payload '${e.payload.domain}'` + ); + if (n?.statement && e.payload.statement !== n.statement) + throw new Error( + `Expected statement '${n.statement}' does not match statement on payload '${e.payload.statement}'` + ); + if (n?.uri && e.payload.uri !== n.uri) + throw new Error( + `Expected URI '${n.uri}' does not match URI on payload '${e.payload.uri}'` + ); + if (n?.version && e.payload.version !== n.version) + throw new Error( + `Expected version '${n.version}' does not match version on payload '${e.payload.version}'` + ); + if (n?.chainId && e.payload.chain_id !== n.chainId) + throw new Error( + `Expected chain ID '${n.chainId}' does not match chain ID on payload '${e.payload.chain_id}'` + ); + if (n?.validateNonce !== void 0) + try { + await n.validateNonce(e.payload.nonce); + } catch { + throw new Error("Login request nonce is invalid"); + } + let i = new Date(); + if (i < new Date(e.payload.invalid_before)) + throw new Error("Login request is not yet valid"); + if (i > new Date(e.payload.expiration_time)) + throw new Error("Login request has expired"); + if (n?.resources) { + let d = n.resources.filter( + (m) => !e.payload.resources?.includes(m) + ); + if (d.length > 0) + throw new Error( + `Login request is missing required resources: ${d.join(", ")}` + ); + } + let s = this.generateMessage(e.payload), + c = + this.wallet.type === "evm" && e.payload.chain_id + ? parseInt(e.payload.chain_id) + : void 0; + if ( + !(await this.verifySignature(s, e.signature, e.payload.address, c)) + ) + throw new Error( + `Signer address does not match payload address '${e.payload.address.toLowerCase()}'` + ); + return e.payload.address; + } + async generate(e, t) { + if (jU()) + throw new Error( + "Authentication tokens should not be generated in the browser, as they must be signed by a server-side admin wallet." + ); + let n = rbe.parse(t), + a = n?.domain || this.domain, + i = await this.verify(e, { domain: a, ...n?.verifyOptions }), + s; + if (typeof n?.session == "function") { + let D = await n.session(i); + D && (s = D); + } else s = n?.session; + let c = await this.wallet.getAddress(), + l = GU.parse({ + iss: c, + sub: i, + aud: a, + nbf: n?.invalidBefore || new Date(), + exp: + n?.expirationTime || new Date(Date.now() + 1e3 * 60 * 60 * 5), + iat: new Date(), + jti: n?.tokenId, + ctx: s, + }), + d = JSON.stringify(l), + m = await this.wallet.signMessage(d), + w = { alg: "ES256", typ: "JWT" }, + C = P.Buffer.from(JSON.stringify(w)).toString("base64"), + I = P.Buffer.from(JSON.stringify(l)) + .toString("base64") + .replace(/=/g, ""), + k = P.Buffer.from(m).toString("base64"); + return `${C}.${I}.${k}`; + } + async authenticate(e, t) { + if (jU()) + throw new Error( + "Should not authenticate tokens in the browser, as they must be verified by the server-side admin wallet." + ); + let n = nbe.parse(t), + a = n?.domain || this.domain, + i = e.split(".")[1], + s = e.split(".")[2], + c = JSON.parse(P.Buffer.from(i, "base64").toString()), + l = P.Buffer.from(s, "base64").toString(); + if (n?.validateTokenId !== void 0) + try { + await n.validateTokenId(c.jti); + } catch { + throw new Error("Token ID is invalid"); + } + if (c.aud !== a) + throw new Error( + `Expected token to be for the domain '${a}', but found token with domain '${c.aud}'` + ); + let d = Math.floor(new Date().getTime() / 1e3); + if (d < c.nbf) + throw new Error( + `This token is invalid before epoch time '${c.nbf}', current epoch time is '${d}'` + ); + if (d > c.exp) + throw new Error( + `This token expired at epoch time '${c.exp}', current epoch time is '${d}'` + ); + let m = await this.wallet.getAddress(); + if (m.toLowerCase() !== c.iss.toLowerCase()) + throw new Error( + `Expected the connected wallet address '${m}' to match the token issuer address '${c.iss}'` + ); + let w; + if (this.wallet.getChainId) + try { + w = await this.wallet.getChainId(); + } catch {} + if (!(await this.verifySignature(JSON.stringify(c), l, m, w))) + throw new Error( + `The connected wallet address '${m}' did not sign the token` + ); + return { address: c.sub, session: c.ctx }; + } + async verifySignature(e, t, n, a) { + return this.wallet.verifySignature(e, t, n, a); + } + generateMessage(e) { + let t = e.type === "evm" ? "Ethereum" : "Solana", + a = [ + `${e.domain} wants you to sign in with your ${t} account:`, + e.address, + ].join(` +`); + (a = [a, e.statement].join(` + +`)), + e.statement && + (a += ` +`); + let i = []; + if (e.uri) { + let w = `URI: ${e.uri}`; + i.push(w); + } + let s = `Version: ${e.version}`; + if ((i.push(s), e.chain_id)) { + let w = "Chain ID: " + e.chain_id || "1"; + i.push(w); + } + let c = `Nonce: ${e.nonce}`; + i.push(c); + let l = `Issued At: ${e.issued_at}`; + i.push(l); + let d = `Expiration Time: ${e.expiration_time}`; + if ((i.push(d), e.invalid_before)) { + let w = `Not Before: ${e.invalid_before}`; + i.push(w); + } + e.resources && + i.push( + ["Resources:", ...e.resources.map((w) => `- ${w}`)].join(` +`) + ); + let m = i.join(` +`); + return [a, m].join(` +`); + } + }; + Cc.AccountTypeSchema = Zge; + Cc.AddressSchema = JIt; + Cc.AuthenticateOptionsSchema = nbe; + Cc.AuthenticationPayloadDataSchema = GU; + Cc.AuthenticationPayloadSchema = QIt; + Cc.GenerateOptionsSchema = rbe; + Cc.LoginOptionsSchema = Qge; + Cc.LoginPayloadDataSchema = Qk; + Cc.LoginPayloadOutputSchema = XIt; + Cc.LoginPayloadSchema = Xge; + Cc.RawDateSchema = Jk; + Cc.ThirdwebAuth = VU; + Cc.VerifyOptionsSchema = tbe; + Cc._defineProperty = KU; + }); + var ibe = N((Ic) => { + "use strict"; + _(); + x(); + Object.defineProperty(Ic, "__esModule", { value: !0 }); + var ju = abe(); + wt(); + I5(); + an(); + Ic.AccountTypeSchema = ju.AccountTypeSchema; + Ic.AddressSchema = ju.AddressSchema; + Ic.AuthenticateOptionsSchema = ju.AuthenticateOptionsSchema; + Ic.AuthenticationPayloadDataSchema = ju.AuthenticationPayloadDataSchema; + Ic.AuthenticationPayloadSchema = ju.AuthenticationPayloadSchema; + Ic.GenerateOptionsSchema = ju.GenerateOptionsSchema; + Ic.LoginOptionsSchema = ju.LoginOptionsSchema; + Ic.LoginPayloadDataSchema = ju.LoginPayloadDataSchema; + Ic.LoginPayloadOutputSchema = ju.LoginPayloadOutputSchema; + Ic.LoginPayloadSchema = ju.LoginPayloadSchema; + Ic.RawDateSchema = ju.RawDateSchema; + Ic.ThirdwebAuth = ju.ThirdwebAuth; + Ic.VerifyOptionsSchema = ju.VerifyOptionsSchema; + }); + var sbe = N((Dtn, YU) => { + "use strict"; + _(); + x(); + S.env.NODE_ENV === "production" + ? (YU.exports = Yge()) + : (YU.exports = ibe()); + }); + var obe = N((Wtn, JU) => { + _(); + x(); + var $U = (function (r) { + "use strict"; + var e = Object.prototype, + t = e.hasOwnProperty, + n = + Object.defineProperty || + function (E, f, u) { + E[f] = u.value; + }, + a, + i = typeof Symbol == "function" ? Symbol : {}, + s = i.iterator || "@@iterator", + c = i.asyncIterator || "@@asyncIterator", + l = i.toStringTag || "@@toStringTag"; + function d(E, f, u) { + return ( + Object.defineProperty(E, f, { + value: u, + enumerable: !0, + configurable: !0, + writable: !0, + }), + E[f] + ); + } + try { + d({}, ""); + } catch { + d = function (f, u, v) { + return (f[u] = v); + }; + } + function m(E, f, u, v) { + var R = f && f.prototype instanceof W ? f : W, + A = Object.create(R.prototype), + L = new h(v || []); + return n(A, "_invoke", { value: g(E, u, L) }), A; + } + r.wrap = m; + function w(E, f, u) { + try { + return { type: "normal", arg: E.call(f, u) }; + } catch (v) { + return { type: "throw", arg: v }; + } + } + var C = "suspendedStart", + I = "suspendedYield", + k = "executing", + O = "completed", + D = {}; + function W() {} + function H() {} + function j() {} + var V = {}; + d(V, s, function () { + return this; + }); + var te = Object.getPrototypeOf, + $ = te && te(te(b([]))); + $ && $ !== e && t.call($, s) && (V = $); + var ae = (j.prototype = W.prototype = Object.create(V)); + (H.prototype = j), + n(ae, "constructor", { value: j, configurable: !0 }), + n(j, "constructor", { value: H, configurable: !0 }), + (H.displayName = d(j, l, "GeneratorFunction")); + function Y(E) { + ["next", "throw", "return"].forEach(function (f) { + d(E, f, function (u) { + return this._invoke(f, u); + }); + }); + } + (r.isGeneratorFunction = function (E) { + var f = typeof E == "function" && E.constructor; + return f + ? f === H || (f.displayName || f.name) === "GeneratorFunction" + : !1; + }), + (r.mark = function (E) { + return ( + Object.setPrototypeOf + ? Object.setPrototypeOf(E, j) + : ((E.__proto__ = j), d(E, l, "GeneratorFunction")), + (E.prototype = Object.create(ae)), + E + ); + }), + (r.awrap = function (E) { + return { __await: E }; + }); + function K(E, f) { + function u(A, L, G, U) { + var Z = w(E[A], E, L); + if (Z.type === "throw") U(Z.arg); + else { + var de = Z.arg, + ne = de.value; + return ne && typeof ne == "object" && t.call(ne, "__await") + ? f.resolve(ne.__await).then( + function (pe) { + u("next", pe, G, U); + }, + function (pe) { + u("throw", pe, G, U); + } + ) + : f.resolve(ne).then( + function (pe) { + (de.value = pe), G(de); + }, + function (pe) { + return u("throw", pe, G, U); + } + ); + } + } + var v; + function R(A, L) { + function G() { + return new f(function (U, Z) { + u(A, L, U, Z); + }); + } + return (v = v ? v.then(G, G) : G()); + } + n(this, "_invoke", { value: R }); + } + Y(K.prototype), + d(K.prototype, c, function () { + return this; + }), + (r.AsyncIterator = K), + (r.async = function (E, f, u, v, R) { + R === void 0 && (R = Promise); + var A = new K(m(E, f, u, v), R); + return r.isGeneratorFunction(f) + ? A + : A.next().then(function (L) { + return L.done ? L.value : A.next(); + }); + }); + function g(E, f, u) { + var v = C; + return function (A, L) { + if (v === k) throw new Error("Generator is already running"); + if (v === O) { + if (A === "throw") throw L; + return T(); + } + for (u.method = A, u.arg = L; ; ) { + var G = u.delegate; + if (G) { + var U = o(G, u); + if (U) { + if (U === D) continue; + return U; + } + } + if (u.method === "next") u.sent = u._sent = u.arg; + else if (u.method === "throw") { + if (v === C) throw ((v = O), u.arg); + u.dispatchException(u.arg); + } else u.method === "return" && u.abrupt("return", u.arg); + v = k; + var Z = w(E, f, u); + if (Z.type === "normal") { + if (((v = u.done ? O : I), Z.arg === D)) continue; + return { value: Z.arg, done: u.done }; + } else + Z.type === "throw" && + ((v = O), (u.method = "throw"), (u.arg = Z.arg)); + } + }; + } + function o(E, f) { + var u = f.method, + v = E.iterator[u]; + if (v === a) + return ( + (f.delegate = null), + (u === "throw" && + E.iterator.return && + ((f.method = "return"), + (f.arg = a), + o(E, f), + f.method === "throw")) || + (u !== "return" && + ((f.method = "throw"), + (f.arg = new TypeError( + "The iterator does not provide a '" + u + "' method" + )))), + D + ); + var R = w(v, E.iterator, f.arg); + if (R.type === "throw") + return (f.method = "throw"), (f.arg = R.arg), (f.delegate = null), D; + var A = R.arg; + if (!A) + return ( + (f.method = "throw"), + (f.arg = new TypeError("iterator result is not an object")), + (f.delegate = null), + D + ); + if (A.done) + (f[E.resultName] = A.value), + (f.next = E.nextLoc), + f.method !== "return" && ((f.method = "next"), (f.arg = a)); + else return A; + return (f.delegate = null), D; + } + Y(ae), + d(ae, l, "Generator"), + d(ae, s, function () { + return this; + }), + d(ae, "toString", function () { + return "[object Generator]"; + }); + function p(E) { + var f = { tryLoc: E[0] }; + 1 in E && (f.catchLoc = E[1]), + 2 in E && ((f.finallyLoc = E[2]), (f.afterLoc = E[3])), + this.tryEntries.push(f); + } + function y(E) { + var f = E.completion || {}; + (f.type = "normal"), delete f.arg, (E.completion = f); + } + function h(E) { + (this.tryEntries = [{ tryLoc: "root" }]), + E.forEach(p, this), + this.reset(!0); + } + r.keys = function (E) { + var f = Object(E), + u = []; + for (var v in f) u.push(v); + return ( + u.reverse(), + function R() { + for (; u.length; ) { + var A = u.pop(); + if (A in f) return (R.value = A), (R.done = !1), R; + } + return (R.done = !0), R; + } + ); + }; + function b(E) { + if (E) { + var f = E[s]; + if (f) return f.call(E); + if (typeof E.next == "function") return E; + if (!isNaN(E.length)) { + var u = -1, + v = function R() { + for (; ++u < E.length; ) + if (t.call(E, u)) return (R.value = E[u]), (R.done = !1), R; + return (R.value = a), (R.done = !0), R; + }; + return (v.next = v); + } + } + return { next: T }; + } + r.values = b; + function T() { + return { value: a, done: !0 }; + } + return ( + (h.prototype = { + constructor: h, + reset: function (E) { + if ( + ((this.prev = 0), + (this.next = 0), + (this.sent = this._sent = a), + (this.done = !1), + (this.delegate = null), + (this.method = "next"), + (this.arg = a), + this.tryEntries.forEach(y), + !E) + ) + for (var f in this) + f.charAt(0) === "t" && + t.call(this, f) && + !isNaN(+f.slice(1)) && + (this[f] = a); + }, + stop: function () { + this.done = !0; + var E = this.tryEntries[0], + f = E.completion; + if (f.type === "throw") throw f.arg; + return this.rval; + }, + dispatchException: function (E) { + if (this.done) throw E; + var f = this; + function u(U, Z) { + return ( + (A.type = "throw"), + (A.arg = E), + (f.next = U), + Z && ((f.method = "next"), (f.arg = a)), + !!Z + ); + } + for (var v = this.tryEntries.length - 1; v >= 0; --v) { + var R = this.tryEntries[v], + A = R.completion; + if (R.tryLoc === "root") return u("end"); + if (R.tryLoc <= this.prev) { + var L = t.call(R, "catchLoc"), + G = t.call(R, "finallyLoc"); + if (L && G) { + if (this.prev < R.catchLoc) return u(R.catchLoc, !0); + if (this.prev < R.finallyLoc) return u(R.finallyLoc); + } else if (L) { + if (this.prev < R.catchLoc) return u(R.catchLoc, !0); + } else if (G) { + if (this.prev < R.finallyLoc) return u(R.finallyLoc); + } else + throw new Error("try statement without catch or finally"); + } + } + }, + abrupt: function (E, f) { + for (var u = this.tryEntries.length - 1; u >= 0; --u) { + var v = this.tryEntries[u]; + if ( + v.tryLoc <= this.prev && + t.call(v, "finallyLoc") && + this.prev < v.finallyLoc + ) { + var R = v; + break; + } + } + R && + (E === "break" || E === "continue") && + R.tryLoc <= f && + f <= R.finallyLoc && + (R = null); + var A = R ? R.completion : {}; + return ( + (A.type = E), + (A.arg = f), + R + ? ((this.method = "next"), (this.next = R.finallyLoc), D) + : this.complete(A) + ); + }, + complete: function (E, f) { + if (E.type === "throw") throw E.arg; + return ( + E.type === "break" || E.type === "continue" + ? (this.next = E.arg) + : E.type === "return" + ? ((this.rval = this.arg = E.arg), + (this.method = "return"), + (this.next = "end")) + : E.type === "normal" && f && (this.next = f), + D + ); + }, + finish: function (E) { + for (var f = this.tryEntries.length - 1; f >= 0; --f) { + var u = this.tryEntries[f]; + if (u.finallyLoc === E) + return this.complete(u.completion, u.afterLoc), y(u), D; + } + }, + catch: function (E) { + for (var f = this.tryEntries.length - 1; f >= 0; --f) { + var u = this.tryEntries[f]; + if (u.tryLoc === E) { + var v = u.completion; + if (v.type === "throw") { + var R = v.arg; + y(u); + } + return R; + } + } + throw new Error("illegal catch attempt"); + }, + delegateYield: function (E, f, u) { + return ( + (this.delegate = { iterator: b(E), resultName: f, nextLoc: u }), + this.method === "next" && (this.arg = a), + D + ); + }, + }), + r + ); + })(typeof JU == "object" ? JU.exports : {}); + try { + regeneratorRuntime = $U; + } catch { + typeof globalThis == "object" + ? (globalThis.regeneratorRuntime = $U) + : Function("r", "regeneratorRuntime = r")($U); + } + }); + var P5 = N((ih) => { + "use strict"; + _(); + x(); + Object.defineProperty(ih, "__esModule", { value: !0 }); + var cbe = nAt(obe()); + function ZU(r, e) { + (e == null || e > r.length) && (e = r.length); + for (var t = 0, n = new Array(e); t < e; t++) n[t] = r[t]; + return n; + } + function eAt(r) { + if (Array.isArray(r)) return ZU(r); + } + function ube(r, e, t, n, a, i, s) { + try { + var c = r[i](s), + l = c.value; + } catch (d) { + t(d); + return; + } + c.done ? e(l) : Promise.resolve(l).then(n, a); + } + function tAt(r) { + return function () { + var e = this, + t = arguments; + return new Promise(function (n, a) { + var i = r.apply(e, t); + function s(l) { + ube(i, n, a, s, c, "next", l); + } + function c(l) { + ube(i, n, a, s, c, "throw", l); + } + s(void 0); + }); + }; + } + function dbe(r, e) { + if (!(r instanceof e)) + throw new TypeError("Cannot call a class as a function"); + } + function rAt(r, e, t) { + return ( + e in r + ? Object.defineProperty(r, e, { + value: t, + enumerable: !0, + configurable: !0, + writable: !0, + }) + : (r[e] = t), + r + ); + } + function nAt(r) { + return r && r.__esModule ? r : { default: r }; + } + function aAt(r) { + if ( + (typeof Symbol < "u" && r[Symbol.iterator] != null) || + r["@@iterator"] != null + ) + return Array.from(r); + } + function iAt() { + throw new TypeError( + "Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method." + ); + } + function tw(r) { + for (var e = 1; e < arguments.length; e++) { + var t = arguments[e] != null ? arguments[e] : {}, + n = Object.keys(t); + typeof Object.getOwnPropertySymbols == "function" && + (n = n.concat( + Object.getOwnPropertySymbols(t).filter(function (a) { + return Object.getOwnPropertyDescriptor(t, a).enumerable; + }) + )), + n.forEach(function (a) { + rAt(r, a, t[a]); + }); + } + return r; + } + function sAt(r, e) { + var t = Object.keys(r); + if (Object.getOwnPropertySymbols) { + var n = Object.getOwnPropertySymbols(r); + e && + (n = n.filter(function (a) { + return Object.getOwnPropertyDescriptor(r, a).enumerable; + })), + t.push.apply(t, n); + } + return t; + } + function pbe(r, e) { + return ( + (e = e ?? {}), + Object.getOwnPropertyDescriptors + ? Object.defineProperties(r, Object.getOwnPropertyDescriptors(e)) + : sAt(Object(e)).forEach(function (t) { + Object.defineProperty( + r, + t, + Object.getOwnPropertyDescriptor(e, t) + ); + }), + r + ); + } + function hbe(r, e) { + if (r == null) return {}; + var t = oAt(r, e), + n, + a; + if (Object.getOwnPropertySymbols) { + var i = Object.getOwnPropertySymbols(r); + for (a = 0; a < i.length; a++) + (n = i[a]), + !(e.indexOf(n) >= 0) && + (!Object.prototype.propertyIsEnumerable.call(r, n) || + (t[n] = r[n])); + } + return t; + } + function oAt(r, e) { + if (r == null) return {}; + var t = {}, + n = Object.keys(r), + a, + i; + for (i = 0; i < n.length; i++) + (a = n[i]), !(e.indexOf(a) >= 0) && (t[a] = r[a]); + return t; + } + function fbe(r) { + return eAt(r) || aAt(r) || uAt(r) || iAt(); + } + var cAt = function (r) { + return r && typeof Symbol < "u" && r.constructor === Symbol + ? "symbol" + : typeof r; + }; + function uAt(r, e) { + if (!!r) { + if (typeof r == "string") return ZU(r, e); + var t = Object.prototype.toString.call(r).slice(8, -1); + if ( + (t === "Object" && r.constructor && (t = r.constructor.name), + t === "Map" || t === "Set") + ) + return Array.from(t); + if ( + t === "Arguments" || + /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) + ) + return ZU(r, e); + } + } + Object.defineProperty(ih, "__esModule", { value: !0 }); + function Rn(r) { + for (var e = void 0, t = r[0], n = 1; n < r.length; ) { + var a = r[n], + i = r[n + 1]; + if ( + ((n += 2), + (a === "optionalAccess" || a === "optionalCall") && t == null) + ) + return; + if (a === "access" || a === "optionalAccess") (e = t), (t = i(t)); + else if (a === "call" || a === "optionalCall") { + var s; + (t = i(function () { + for (var c = arguments.length, l = new Array(c), d = 0; d < c; d++) + l[d] = arguments[d]; + return (s = t).call.apply(s, [e].concat(fbe(l))); + })), + (e = void 0); + } + } + return t; + } + var mbe = Object.defineProperty, + lAt = function (r, e, t) { + return e in r + ? mbe(r, e, { + enumerable: !0, + configurable: !0, + writable: !0, + value: t, + }) + : (r[e] = t); + }, + bn = function (r, e) { + return mbe(r, "name", { value: e, configurable: !0 }); + }, + Fi = function (r, e, t) { + return ( + lAt( + r, + (typeof e > "u" ? "undefined" : cAt(e)) !== "symbol" ? e + "" : e, + t + ), + t + ); + }, + ybe = "https://pay.coinbase.com", + gbe = bn(function (r) { + var e = r.host, + t = e === void 0 ? ybe : e, + n = r.destinationWallets, + a = hbe(r, ["host", "destinationWallets"]), + i = new URL(t); + return ( + (i.pathname = "/buy/select-asset"), + i.searchParams.append("destinationWallets", JSON.stringify(n)), + Object.keys(a).forEach(function (s) { + var c = a[s]; + c !== void 0 && i.searchParams.append(s, c.toString()); + }), + i.searchParams.sort(), + i.toString() + ); + }, "generateOnRampURL"), + bbe = "cbpay-embedded-onramp", + dAt = bn(function (r) { + var e = r.url, + t = r.width, + n = t === void 0 ? "100%" : t, + a = r.height, + i = a === void 0 ? "100%" : a, + s = r.position, + c = s === void 0 ? "fixed" : s, + l = r.top, + d = l === void 0 ? "0px" : l, + m = document.createElement("iframe"); + return ( + (m.style.border = "unset"), + (m.style.borderWidth = "0"), + (m.style.width = n.toString()), + (m.style.height = i.toString()), + (m.style.position = c), + (m.style.top = d), + (m.id = bbe), + (m.src = e), + m + ); + }, "createEmbeddedContent"), + lbe; + (function (r) { + (r.LaunchEmbedded = "launch_embedded"), + (r.AppReady = "app_ready"), + (r.AppParams = "app_params"), + (r.SigninSuccess = "signin_success"), + (r.Success = "success"), + (r.Exit = "exit"), + (r.Event = "event"), + (r.Error = "error"), + (r.PixelReady = "pixel_ready"), + (r.OnAppParamsNonce = "on_app_params_nonce"); + })(lbe || (lbe = {})); + var vbe = bn(function (r, e) { + var t = e.onMessage, + n = e.shouldUnsubscribe, + a = n === void 0 ? !0 : n, + i = e.allowedOrigin, + s = e.onValidateOrigin, + c = + s === void 0 + ? bn(function () { + return Promise.resolve(!0); + }, "onValidateOrigin") + : s, + l = bn(function (d) { + var m = fAt(d.data), + w = m.eventName, + C = m.data, + I = !i || d.origin === i; + w === r && + tAt( + cbe.default.mark(function k() { + return cbe.default.wrap(function (D) { + for (;;) + switch ((D.prev = D.next)) { + case 0: + if (((D.t0 = I), !D.t0)) { + D.next = 5; + break; + } + return (D.next = 4), c(d.origin); + case 4: + D.t0 = D.sent; + case 5: + if (!D.t0) { + D.next = 7; + break; + } + t(C), a && window.removeEventListener("message", l); + case 7: + case "end": + return D.stop(); + } + }, k); + }) + )(); + }, "onMessage"); + return ( + window.addEventListener("message", l), + function () { + window.removeEventListener("message", l); + } + ); + }, "onBroadcastedPostMessage"), + pAt = bn(function (r) { + return r !== window + ? r + : hAt(r) + ? { + postMessage: function (e) { + return r.ReactNativeWebView.postMessage(e); + }, + } + : r.opener + ? r.opener + : r.parent !== r.self + ? r.parent + : void 0; + }, "getSdkTarget"), + hAt = bn(function (r) { + try { + return ( + Rn([ + r, + "access", + function (e) { + return e.ReactNativeWebView; + }, + "optionalAccess", + function (e) { + return e.postMessage; + }, + ]) !== void 0 + ); + } catch { + return !1; + } + }, "isMobileSdkTarget"), + eH = bn(function (r, e) { + var t = + arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, + n = t.allowedOrigin, + a = n === void 0 ? "*" : n, + i = t.data, + s = mAt(e, i); + r.postMessage(s, a); + }, "broadcastPostMessage"), + fAt = bn(function (r) { + try { + return JSON.parse(r); + } catch { + return { eventName: r }; + } + }, "parsePostMessage"), + mAt = bn(function (r, e) { + return e ? JSON.stringify({ eventName: r, data: e }) : r; + }, "formatPostMessage"), + yAt = "/embed", + gAt = 5e3, + QU = "coinbase-sdk-connect", + i0 = { + signin: { width: 460, height: 730 }, + widget: { width: 430, height: 600 }, + }, + wbe = function r(e) { + var t = e.host, + n = t === void 0 ? ybe : t, + a = e.appId, + i = e.appParams, + s = e.onReady, + c = e.onFallbackOpen, + l = e.debug, + d = this; + dbe(this, r), + Fi(this, "state", "loading"), + Fi(this, "nonce", ""), + Fi(this, "eventStreamListeners", {}), + Fi(this, "unsubs", []), + Fi(this, "isLoggedIn", !1), + Fi( + this, + "openExperience", + bn(function (m) { + if ( + (d.log("Attempting to open experience", { state: d.state }), + d.state !== "waiting_for_response" && d.state !== "loading") + ) { + if (d.state === "failed") { + Rn([ + d, + "access", + function (te) { + return te.onFallbackOpen; + }, + "optionalCall", + function (te) { + return te(); + }, + ]); + return; + } + if (!d.nonce) + throw new Error( + "Attempted to open CB Pay experience without nonce" + ); + var w = d.nonce; + (d.nonce = ""), d.setupExperienceListeners(m); + var C = m.path, + I = m.experienceLoggedIn, + k = m.experienceLoggedOut, + O = m.embeddedContentStyles, + D = new URL("".concat(d.host).concat(C)); + D.searchParams.append("appId", d.appId), + D.searchParams.append("type", "secure_standalone"); + var W = d.isLoggedIn ? I : k || I; + D.searchParams.append("nonce", w); + var H = D.toString(); + if ( + (d.log("Opening experience", { + experience: W, + isLoggedIn: d.isLoggedIn, + }), + W === "embedded") + ) { + var j = bn(function () { + var te = dAt(tw({ url: H }, O)); + Rn([ + O, + "optionalAccess", + function ($) { + return $.target; + }, + ]) + ? Rn([ + document, + "access", + function ($) { + return $.querySelector; + }, + "call", + function ($) { + return $( + Rn([ + O, + "optionalAccess", + function (ae) { + return ae.target; + }, + ]) + ); + }, + "optionalAccess", + function ($) { + return $.replaceChildren; + }, + "call", + function ($) { + return $(te); + }, + ]) + : document.body.appendChild(te); + }, "openEmbeddedExperience"); + d.isLoggedIn ? j() : d.startDirectSignin(j); + } else + W === "popup" && + Rn([ + window, + "access", + function (te) { + return te.chrome; + }, + "optionalAccess", + function (te) { + return te.windows; + }, + "optionalAccess", + function (te) { + return te.create; + }, + ]) + ? window.chrome.windows.create( + { + url: H, + setSelfAsOpener: !0, + type: "popup", + focused: !0, + width: i0.signin.width, + height: i0.signin.height, + left: window.screenLeft - i0.signin.width - 10, + top: window.screenTop, + }, + function (te) { + d.addEventStreamListener("open", function () { + Rn([ + te, + "optionalAccess", + function ($) { + return $.id; + }, + ]) && + chrome.windows.update(te.id, { + width: i0.widget.width, + height: i0.widget.height, + left: window.screenLeft - i0.widget.width - 10, + top: window.screenTop, + }); + }); + } + ) + : W === "new_tab" && + Rn([ + window, + "access", + function (te) { + return te.chrome; + }, + "optionalAccess", + function (te) { + return te.tabs; + }, + "optionalAccess", + function (te) { + return te.create; + }, + ]) + ? window.chrome.tabs.create({ url: H }) + : XU(H, W); + var V = bn(function () { + d.sendAppParams(), d.removeEventStreamListener("open", V); + }, "onOpen"); + d.addEventStreamListener("open", V); + } + }, "openExperience") + ), + Fi( + this, + "endExperience", + bn(function () { + Rn([ + document, + "access", + function (m) { + return m.getElementById; + }, + "call", + function (m) { + return m(bbe); + }, + "optionalAccess", + function (m) { + return m.remove; + }, + "call", + function (m) { + return m(); + }, + ]); + }, "endExperience") + ), + Fi( + this, + "destroy", + bn(function () { + Rn([ + document, + "access", + function (m) { + return m.getElementById; + }, + "call", + function (m) { + return m(QU); + }, + "optionalAccess", + function (m) { + return m.remove; + }, + "call", + function (m) { + return m(); + }, + ]), + d.unsubs.forEach(function (m) { + return m(); + }); + }, "destroy") + ), + Fi( + this, + "addPixelReadyListener", + bn(function () { + d.onMessage("pixel_ready", { + shouldUnsubscribe: !1, + onMessage: function (m) { + d.log("Received message: pixel_ready"), + (d.isLoggedIn = !!Rn([ + m, + "optionalAccess", + function (w) { + return w.isLoggedIn; + }, + ])), + Rn([ + d, + "access", + function (w) { + return w.removeErrorListener; + }, + "optionalCall", + function (w) { + return w(); + }, + ]), + d.sendAppParams(function () { + Rn([ + d, + "access", + function (w) { + return w.onReadyCallback; + }, + "optionalCall", + function (w) { + return w(); + }, + ]); + }); + }, + }); + }, "addPixelReadyListener") + ), + Fi( + this, + "addErrorListener", + bn(function () { + d.removeErrorListener = d.onMessage("error", { + shouldUnsubscribe: !0, + onMessage: function (m) { + if ((d.log("Received message: error"), m)) { + var w = typeof m == "string" ? m : JSON.stringify(m); + Rn([ + d, + "access", + function (C) { + return C.onReadyCallback; + }, + "optionalCall", + function (C) { + return C(new Error(w)); + }, + ]); + } + }, + }); + }, "addErrorListener") + ), + Fi( + this, + "embedPixel", + bn(function () { + Rn([ + document, + "access", + function (w) { + return w.getElementById; + }, + "call", + function (w) { + return w(QU); + }, + "optionalAccess", + function (w) { + return w.remove; + }, + "call", + function (w) { + return w(); + }, + ]); + var m = _be({ host: d.host, appId: d.appId }); + (m.onerror = d.onFailedToLoad), + (d.pixelIframe = m), + document.body.appendChild(m); + }, "embedPixel") + ), + Fi( + this, + "onFailedToLoad", + bn(function () { + if (((d.state = "failed"), d.onFallbackOpen)) + d.debug && + console.warn( + "Failed to load CB Pay pixel. Falling back to opening in new tab." + ), + Rn([ + d, + "access", + function (w) { + return w.onReadyCallback; + }, + "optionalCall", + function (w) { + return w(); + }, + ]); + else { + var m = new Error("Failed to load CB Pay pixel"); + d.debug && console.error(m), + Rn([ + d, + "access", + function (w) { + return w.onReadyCallback; + }, + "optionalCall", + function (w) { + return w(m); + }, + ]); + } + }, "onFailedToLoad") + ), + Fi( + this, + "sendAppParams", + bn(function (m) { + Rn([ + d, + "access", + function (w) { + return w.pixelIframe; + }, + "optionalAccess", + function (w) { + return w.contentWindow; + }, + ]) + ? (d.log("Sending message: app_params"), + d.onMessage("on_app_params_nonce", { + onMessage: function (w) { + (d.state = "ready"), + (d.nonce = + Rn([ + w, + "optionalAccess", + function (C) { + return C.nonce; + }, + ]) || ""), + Rn([ + m, + "optionalCall", + function (C) { + return C(); + }, + ]); + }, + }), + (d.state = "waiting_for_response"), + eH(d.pixelIframe.contentWindow, "app_params", { + data: d.appParams, + })) + : (console.error("Failed to find pixel content window"), + (d.state = "failed"), + Rn([ + d, + "access", + function (w) { + return w.onFallbackOpen; + }, + "optionalCall", + function (w) { + return w(); + }, + ])); + }, "sendAppParams") + ), + Fi( + this, + "setupExperienceListeners", + bn(function (m) { + var w = m.onSuccess, + C = m.onExit, + I = m.onEvent; + d.onMessage("event", { + shouldUnsubscribe: !1, + onMessage: function (k) { + var O = k; + Rn([ + d, + "access", + function (D) { + return D.eventStreamListeners; + }, + "access", + function (D) { + return D[O.eventName]; + }, + "optionalAccess", + function (D) { + return D.forEach; + }, + "call", + function (D) { + return D(function (W) { + return Rn([ + W, + "optionalCall", + function (H) { + return H(); + }, + ]); + }); + }, + ]), + O.eventName === "success" && + Rn([ + w, + "optionalCall", + function (D) { + return D(); + }, + ]), + O.eventName === "exit" && + Rn([ + C, + "optionalCall", + function (D) { + return D(O.error); + }, + ]), + Rn([ + I, + "optionalCall", + function (D) { + return D(k); + }, + ]); + }, + }); + }, "setupExperienceListeners") + ), + Fi( + this, + "startDirectSignin", + bn(function (m) { + var w = new URLSearchParams(); + w.set("appId", d.appId), w.set("type", "direct"); + var C = "".concat(d.host, "/signin?").concat(w.toString()), + I = XU(C, "popup"); + d.onMessage("signin_success", { + onMessage: function () { + Rn([ + I, + "optionalAccess", + function (k) { + return k.close; + }, + "call", + function (k) { + return k(); + }, + ]), + m(); + }, + }); + }, "startDirectSignin") + ), + Fi( + this, + "addEventStreamListener", + bn(function (m, w) { + d.eventStreamListeners[m] + ? Rn([ + d, + "access", + function (C) { + return C.eventStreamListeners; + }, + "access", + function (C) { + return C[m]; + }, + "optionalAccess", + function (C) { + return C.push; + }, + "call", + function (C) { + return C(w); + }, + ]) + : (d.eventStreamListeners[m] = [w]); + }, "addEventStreamListener") + ), + Fi( + this, + "removeEventStreamListener", + bn(function (m, w) { + if (d.eventStreamListeners[m]) { + var C = Rn([ + d, + "access", + function (I) { + return I.eventStreamListeners; + }, + "access", + function (I) { + return I[m]; + }, + "optionalAccess", + function (I) { + return I.filter; + }, + "call", + function (I) { + return I(function (k) { + return k !== w; + }); + }, + ]); + d.eventStreamListeners[m] = C; + } + }, "removeEventStreamListener") + ), + Fi( + this, + "onMessage", + bn(function () { + for ( + var m = arguments.length, w = new Array(m), C = 0; + C < m; + C++ + ) + w[C] = arguments[C]; + var I = vbe(w[0], tw({ allowedOrigin: d.host }, w[1])); + return d.unsubs.push(I), I; + }, "onMessage") + ), + Fi( + this, + "log", + bn(function () { + for ( + var m = arguments.length, w = new Array(m), C = 0; + C < m; + C++ + ) + w[C] = arguments[C]; + if (d.debug) { + var I; + (I = console).log.apply(I, ["[CBPAY]"].concat(fbe(w))); + } + }, "log") + ), + (this.host = n), + (this.appId = a), + (this.appParams = i), + (this.onReadyCallback = s), + (this.onFallbackOpen = c), + (this.debug = l || !1), + this.addPixelReadyListener(), + this.addErrorListener(), + this.embedPixel(), + setTimeout(function () { + d.state !== "ready" && d.onFailedToLoad(); + }, gAt); + }; + bn(wbe, "CoinbasePixel"); + function _be(r) { + var e = r.host, + t = r.appId, + n = document.createElement("iframe"); + (n.style.border = "unset"), + (n.style.borderWidth = "0"), + (n.style.width = "0"), + (n.style.height = "0"), + (n.style.height = "0"), + (n.id = QU); + var a = new URL("".concat(e).concat(yAt)); + return a.searchParams.append("appId", t), (n.src = a.toString()), n; + } + bn(_be, "createPixel"); + function XU(r, e) { + return window.open( + r, + "Coinbase", + e === "popup" + ? "toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, copyhistory=no, height=" + .concat(i0.signin.height, ",width=") + .concat(i0.signin.width) + : void 0 + ); + } + bn(XU, "openWindow"); + var bAt = { buy: "/buy", checkout: "/checkout" }, + tH = function r(e) { + var t = this; + if ( + (dbe(this, r), + Fi( + this, + "open", + bn(function () { + var a = t.options, + i = a.widget, + s = a.experienceLoggedIn, + c = a.experienceLoggedOut, + l = a.embeddedContentStyles, + d = a.onExit, + m = a.onSuccess, + w = a.onEvent, + C = a.closeOnSuccess, + I = a.closeOnExit; + t.pixel.openExperience({ + path: bAt[i], + experienceLoggedIn: s, + experienceLoggedOut: c, + embeddedContentStyles: l, + onExit: function () { + Rn([ + d, + "optionalCall", + function (k) { + return k(); + }, + ]), + I && t.pixel.endExperience(); + }, + onSuccess: function () { + Rn([ + m, + "optionalCall", + function (k) { + return k(); + }, + ]), + C && t.pixel.endExperience(); + }, + onEvent: w, + }); + }, "open") + ), + Fi( + this, + "destroy", + bn(function () { + t.pixel.destroy(); + }, "destroy") + ), + (this.options = e), + (this.pixel = new wbe( + pbe(tw({}, e), { appParams: tw({ widget: e.widget }, e.appParams) }) + )), + e.target) + ) { + var n = document.querySelector(e.target); + n && n.addEventListener("click", this.open); + } + }; + bn(tH, "CBPayInstance"); + var vAt = bn(function (r, e) { + var t = r.experienceLoggedIn, + n = t === void 0 ? "embedded" : t, + a = r.widgetParameters, + i = hbe(r, ["experienceLoggedIn", "widgetParameters"]), + s = new tH( + pbe(tw({}, i), { + widget: "buy", + experienceLoggedIn: n, + appParams: a, + onReady: function (c) { + c ? e(c, null) : e(null, s); + }, + onFallbackOpen: function () { + var c = gbe(tw({ appId: i.appId, host: i.host }, a)); + window.open(c); + }, + }) + ); + }, "initOnRamp"); + function xbe(r, e) { + eH(r, "event", { data: e }); + } + bn(xbe, "broadcastEvent"); + ih.CBPayInstance = tH; + ih.broadcastEvent = xbe; + ih.broadcastPostMessage = eH; + ih.generateOnRampURL = gbe; + ih.getSdkTarget = pAt; + ih.initOnRamp = vAt; + ih.onBroadcastedPostMessage = vbe; + }); + var Ebe = N((aH) => { + "use strict"; + _(); + x(); + Object.defineProperty(aH, "__esModule", { value: !0 }); + var wAt = P5(); + function _At(r, e) { + if (e.has(r)) + throw new TypeError( + "Cannot initialize the same private elements twice on an object" + ); + } + function xAt(r, e, t) { + _At(r, e), e.set(r, t); + } + function TAt(r, e) { + return e.get ? e.get.call(r) : e.value; + } + function Tbe(r, e, t) { + if (!e.has(r)) + throw new TypeError( + "attempted to " + t + " private field on non-instance" + ); + return e.get(r); + } + function EAt(r, e) { + var t = Tbe(r, e, "get"); + return TAt(r, t); + } + function CAt(r, e, t) { + if (e.set) e.set.call(r, t); + else { + if (!e.writable) + throw new TypeError("attempted to set read only private field"); + e.value = t; + } + } + function IAt(r, e, t) { + var n = Tbe(r, e, "set"); + return CAt(r, n, t), t; + } + var AAt = { [-1]: "solana", 1: "ethereum", 69: "optimism", 137: "polygon" }, + rH = new WeakMap(), + nH = class { + constructor(e) { + xAt(this, rH, { writable: !0, value: void 0 }), + IAt(this, rH, e.appId); + } + async fundWallet(e) { + let { address: t, chainId: n, assets: a } = e; + return new Promise((i, s) => { + wAt.initOnRamp( + { + appId: EAt(this, rH), + widgetParameters: { + destinationWallets: [ + { address: t, assets: a, supportedNetworks: [AAt[n]] }, + ], + }, + experienceLoggedIn: "embedded", + experienceLoggedOut: "popup", + closeOnExit: !0, + onSuccess: () => { + i(); + }, + onExit(c) { + return c ? s(c) : i(); + }, + }, + (c, l) => { + if (c || !l) return s(c); + l.open(); + } + ); + }); + } + }; + aH.CoinbasePayIntegration = nH; + }); + var Cbe = N((iH) => { + "use strict"; + _(); + x(); + Object.defineProperty(iH, "__esModule", { value: !0 }); + var kAt = Ebe(); + P5(); + iH.CoinbasePayIntegration = kAt.CoinbasePayIntegration; + }); + var Abe = N((cH) => { + "use strict"; + _(); + x(); + Object.defineProperty(cH, "__esModule", { value: !0 }); + var SAt = P5(); + function MAt(r, e) { + if (e.has(r)) + throw new TypeError( + "Cannot initialize the same private elements twice on an object" + ); + } + function PAt(r, e, t) { + MAt(r, e), e.set(r, t); + } + function RAt(r, e) { + return e.get ? e.get.call(r) : e.value; + } + function Ibe(r, e, t) { + if (!e.has(r)) + throw new TypeError( + "attempted to " + t + " private field on non-instance" + ); + return e.get(r); + } + function BAt(r, e) { + var t = Ibe(r, e, "get"); + return RAt(r, t); + } + function NAt(r, e, t) { + if (e.set) e.set.call(r, t); + else { + if (!e.writable) + throw new TypeError("attempted to set read only private field"); + e.value = t; + } + } + function OAt(r, e, t) { + var n = Ibe(r, e, "set"); + return NAt(r, n, t), t; + } + var LAt = { [-1]: "solana", 1: "ethereum", 69: "optimism", 137: "polygon" }, + sH = new WeakMap(), + oH = class { + constructor(e) { + PAt(this, sH, { writable: !0, value: void 0 }), + OAt(this, sH, e.appId); + } + async fundWallet(e) { + let { address: t, chainId: n, assets: a } = e; + return new Promise((i, s) => { + SAt.initOnRamp( + { + appId: BAt(this, sH), + widgetParameters: { + destinationWallets: [ + { address: t, assets: a, supportedNetworks: [LAt[n]] }, + ], + }, + experienceLoggedIn: "embedded", + experienceLoggedOut: "popup", + closeOnExit: !0, + onSuccess: () => { + i(); + }, + onExit(c) { + return c ? s(c) : i(); + }, + }, + (c, l) => { + if (c || !l) return s(c); + l.open(); + } + ); + }); + } + }; + cH.CoinbasePayIntegration = oH; + }); + var kbe = N((uH) => { + "use strict"; + _(); + x(); + Object.defineProperty(uH, "__esModule", { value: !0 }); + var DAt = Abe(); + P5(); + uH.CoinbasePayIntegration = DAt.CoinbasePayIntegration; + }); + var Sbe = N((arn, lH) => { + "use strict"; + _(); + x(); + S.env.NODE_ENV === "production" + ? (lH.exports = Cbe()) + : (lH.exports = kbe()); + }); + var Oo = N((No) => { + "use strict"; + _(); + x(); + var qAt = Gr(), + rw = wt(), + Yt = an(); + function FAt(r) { + return r && r.__esModule ? r : { default: r }; + } + var nw = FAt(qAt), + Bbe = "c6634ad2d97b74baf15ff556016830c251050e6c36b9da508ce3ec80095d3dc1"; + function WAt(r) { + let e = + arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : Bbe; + return `https://${r}.rpc.thirdweb.com/${e}`; + } + var UAt = () => typeof window < "u", + Mbe = UAt() ? Yt.z.instanceof(File) : Yt.z.instanceof(P.Buffer), + HAt = Yt.z.union([ + Mbe, + Yt.z.object({ + data: Yt.z.union([Mbe, Yt.z.string()]), + name: Yt.z.string(), + }), + ]), + Xk = Yt.z.union([HAt, Yt.z.string()]), + Nbe = 1e4, + zAt = Yt.z.union([Yt.z.array(Yt.z.number()), Yt.z.string()]), + jAt = Yt.z + .union([ + Yt.z.string(), + Yt.z.number(), + Yt.z.bigint(), + Yt.z.custom((r) => rw.BigNumber.isBigNumber(r)), + Yt.z.custom((r) => nw.default.isBN(r)), + ]) + .transform((r) => { + let e = nw.default.isBN(r) + ? new nw.default(r).toString() + : rw.BigNumber.from(r).toString(); + return rw.BigNumber.from(e); + }); + jAt.transform((r) => r.toString()); + var Obe = Yt.z + .union([ + Yt.z.bigint(), + Yt.z.custom((r) => rw.BigNumber.isBigNumber(r)), + Yt.z.custom((r) => nw.default.isBN(r)), + ]) + .transform((r) => + nw.default.isBN(r) + ? new nw.default(r).toString() + : rw.BigNumber.from(r).toString() + ), + KAt = Yt.z + .number() + .max(Nbe, "Cannot exceed 100%") + .min(0, "Cannot be below 0%"), + VAt = Yt.z + .number() + .max(100, "Cannot exceed 100%") + .min(0, "Cannot be below 0%"), + GAt = Yt.z.union([ + Yt.z + .string() + .regex(/^([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/, "Invalid hex color"), + Yt.z + .string() + .regex(/^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/, "Invalid hex color") + .transform((r) => r.replace("#", "")), + Yt.z.string().length(0), + ]), + Lbe = Yt.z + .union([ + Yt.z.string().regex(/^([0-9]+\.?[0-9]*|\.[0-9]+)$/, "Invalid amount"), + Yt.z.number().min(0, "Amount cannot be negative"), + ]) + .transform((r) => (typeof r == "number" ? r.toString() : r)), + YAt = Yt.z.union([Lbe, Yt.z.literal("unlimited")]).default("unlimited"), + Dbe = Yt.z + .date() + .transform((r) => rw.BigNumber.from(Math.floor(r.getTime() / 1e3))); + Dbe.default(new Date(0)); + Dbe.default(new Date(Date.now() + 1e3 * 60 * 60 * 24 * 365 * 10)); + function $At(r, e) { + if (typeof r != "object" || r === null) return r; + var t = r[Symbol.toPrimitive]; + if (t !== void 0) { + var n = t.call(r, e || "default"); + if (typeof n != "object") return n; + throw new TypeError("@@toPrimitive must return a primitive value."); + } + return (e === "string" ? String : Number)(r); + } + function JAt(r) { + var e = $At(r, "string"); + return typeof e == "symbol" ? e : String(e); + } + function ZAt(r, e, t) { + return ( + (e = JAt(e)), + e in r + ? Object.defineProperty(r, e, { + value: t, + enumerable: !0, + configurable: !0, + writable: !0, + }) + : (r[e] = t), + r + ); + } + var Pbe = Yt.z.object({}).catchall(Yt.z.union([Obe, Yt.z.unknown()])), + Rbe = Yt.z.union([Yt.z.array(Pbe), Pbe]).optional(), + pH = Yt.z + .object({ + name: Yt.z.union([Yt.z.string(), Yt.z.number()]).optional(), + description: Yt.z.string().nullable().optional(), + image: Xk.nullable().optional(), + external_url: Xk.nullable().optional(), + animation_url: Xk.optional(), + background_color: GAt.optional(), + properties: Rbe, + attributes: Rbe, + }) + .catchall(Yt.z.union([Obe, Yt.z.unknown()])), + QAt = Yt.z.union([pH, Yt.z.string()]), + XAt = pH.extend({ + id: Yt.z.string(), + uri: Yt.z.string(), + image: Yt.z.string().nullable().optional(), + external_url: Yt.z.string().nullable().optional(), + animation_url: Yt.z.string().nullable().optional(), + }), + dH = 100, + ekt = Yt.z + .object({ + start: Yt.z.number().default(0), + count: Yt.z.number().default(dH), + }) + .default({ start: 0, count: dH }); + No.AmountSchema = Lbe; + No.BasisPointsSchema = KAt; + No.BytesLikeSchema = zAt; + No.CommonNFTInput = pH; + No.CommonNFTOutput = XAt; + No.DEFAULT_API_KEY = Bbe; + No.DEFAULT_QUERY_ALL_COUNT = dH; + No.FileOrBufferOrStringSchema = Xk; + No.MAX_BPS = Nbe; + No.NFTInputOrUriSchema = QAt; + No.PercentSchema = VAt; + No.QuantitySchema = YAt; + No.QueryAllParamsSchema = ekt; + No._defineProperty = ZAt; + No.getRpcUrl = WAt; + }); + var Bn = N((lrn, tkt) => { + tkt.exports = [ + { + inputs: [ + { internalType: "bytes4", name: "interfaceId", type: "bytes4" }, + ], + name: "supportsInterface", + outputs: [{ internalType: "bool", name: "", type: "bool" }], + stateMutability: "view", + type: "function", + }, + ]; + }); + var Nn = N((drn, rkt) => { + rkt.exports = [ + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "address", + name: "owner", + type: "address", + }, + { + indexed: !0, + internalType: "address", + name: "approved", + type: "address", + }, + { + indexed: !0, + internalType: "uint256", + name: "tokenId", + type: "uint256", + }, + ], + name: "Approval", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "address", + name: "owner", + type: "address", + }, + { + indexed: !0, + internalType: "address", + name: "operator", + type: "address", + }, + { indexed: !1, internalType: "bool", name: "approved", type: "bool" }, + ], + name: "ApprovalForAll", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "address", + name: "from", + type: "address", + }, + { indexed: !0, internalType: "address", name: "to", type: "address" }, + { + indexed: !0, + internalType: "uint256", + name: "tokenId", + type: "uint256", + }, + ], + name: "Transfer", + type: "event", + }, + { + inputs: [ + { internalType: "address", name: "to", type: "address" }, + { internalType: "uint256", name: "tokenId", type: "uint256" }, + ], + name: "approve", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [{ internalType: "address", name: "owner", type: "address" }], + name: "balanceOf", + outputs: [{ internalType: "uint256", name: "", type: "uint256" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [{ internalType: "uint256", name: "tokenId", type: "uint256" }], + name: "getApproved", + outputs: [{ internalType: "address", name: "", type: "address" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "owner", type: "address" }, + { internalType: "address", name: "operator", type: "address" }, + ], + name: "isApprovedForAll", + outputs: [{ internalType: "bool", name: "", type: "bool" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [{ internalType: "uint256", name: "tokenId", type: "uint256" }], + name: "ownerOf", + outputs: [{ internalType: "address", name: "", type: "address" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "from", type: "address" }, + { internalType: "address", name: "to", type: "address" }, + { internalType: "uint256", name: "tokenId", type: "uint256" }, + ], + name: "safeTransferFrom", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "from", type: "address" }, + { internalType: "address", name: "to", type: "address" }, + { internalType: "uint256", name: "tokenId", type: "uint256" }, + { internalType: "bytes", name: "data", type: "bytes" }, + ], + name: "safeTransferFrom", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "operator", type: "address" }, + { internalType: "bool", name: "_approved", type: "bool" }, + ], + name: "setApprovalForAll", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "from", type: "address" }, + { internalType: "address", name: "to", type: "address" }, + { internalType: "uint256", name: "tokenId", type: "uint256" }, + ], + name: "transferFrom", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + ]; + }); + var On = N((prn, nkt) => { + nkt.exports = [ + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "address", + name: "_owner", + type: "address", + }, + { + indexed: !0, + internalType: "address", + name: "_operator", + type: "address", + }, + { + indexed: !1, + internalType: "bool", + name: "_approved", + type: "bool", + }, + ], + name: "ApprovalForAll", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "address", + name: "_operator", + type: "address", + }, + { + indexed: !0, + internalType: "address", + name: "_from", + type: "address", + }, + { + indexed: !0, + internalType: "address", + name: "_to", + type: "address", + }, + { + indexed: !1, + internalType: "uint256[]", + name: "_ids", + type: "uint256[]", + }, + { + indexed: !1, + internalType: "uint256[]", + name: "_values", + type: "uint256[]", + }, + ], + name: "TransferBatch", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "address", + name: "_operator", + type: "address", + }, + { + indexed: !0, + internalType: "address", + name: "_from", + type: "address", + }, + { + indexed: !0, + internalType: "address", + name: "_to", + type: "address", + }, + { + indexed: !1, + internalType: "uint256", + name: "_id", + type: "uint256", + }, + { + indexed: !1, + internalType: "uint256", + name: "_value", + type: "uint256", + }, + ], + name: "TransferSingle", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !1, + internalType: "string", + name: "_value", + type: "string", + }, + { + indexed: !0, + internalType: "uint256", + name: "_id", + type: "uint256", + }, + ], + name: "URI", + type: "event", + }, + { + inputs: [ + { internalType: "address", name: "_owner", type: "address" }, + { internalType: "uint256", name: "_id", type: "uint256" }, + ], + name: "balanceOf", + outputs: [{ internalType: "uint256", name: "", type: "uint256" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "address[]", name: "_owners", type: "address[]" }, + { internalType: "uint256[]", name: "_ids", type: "uint256[]" }, + ], + name: "balanceOfBatch", + outputs: [{ internalType: "uint256[]", name: "", type: "uint256[]" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "_owner", type: "address" }, + { internalType: "address", name: "_operator", type: "address" }, + ], + name: "isApprovedForAll", + outputs: [{ internalType: "bool", name: "", type: "bool" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "_from", type: "address" }, + { internalType: "address", name: "_to", type: "address" }, + { internalType: "uint256[]", name: "_ids", type: "uint256[]" }, + { internalType: "uint256[]", name: "_values", type: "uint256[]" }, + { internalType: "bytes", name: "_data", type: "bytes" }, + ], + name: "safeBatchTransferFrom", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "_from", type: "address" }, + { internalType: "address", name: "_to", type: "address" }, + { internalType: "uint256", name: "_id", type: "uint256" }, + { internalType: "uint256", name: "_value", type: "uint256" }, + { internalType: "bytes", name: "_data", type: "bytes" }, + ], + name: "safeTransferFrom", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "_operator", type: "address" }, + { internalType: "bool", name: "_approved", type: "bool" }, + ], + name: "setApprovalForAll", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + ]; + }); + var Ln = N((hrn, qbe) => { + "use strict"; + _(); + x(); + var akt = S.env.NODE_ENV === "production", + hH = "Invariant failed"; + function ikt(r, e) { + if (!r) { + if (akt) throw new Error(hH); + var t = typeof e == "function" ? e() : e, + n = t ? "".concat(hH, ": ").concat(t) : hH; + throw new Error(n); + } + } + qbe.exports = ikt; + }); + var Dn = N((yrn, skt) => { + skt.exports = [ + { + inputs: [{ internalType: "uint256", name: "amount", type: "uint256" }], + name: "burn", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "account", type: "address" }, + { internalType: "uint256", name: "amount", type: "uint256" }, + ], + name: "burnFrom", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + ]; + }); + var qn = N((grn, okt) => { + okt.exports = [ + { + anonymous: !1, + inputs: [ + { + components: [ + { + internalType: "uint256", + name: "startTimestamp", + type: "uint256", + }, + { + internalType: "uint256", + name: "maxClaimableSupply", + type: "uint256", + }, + { + internalType: "uint256", + name: "supplyClaimed", + type: "uint256", + }, + { + internalType: "uint256", + name: "quantityLimitPerWallet", + type: "uint256", + }, + { internalType: "bytes32", name: "merkleRoot", type: "bytes32" }, + { + internalType: "uint256", + name: "pricePerToken", + type: "uint256", + }, + { internalType: "address", name: "currency", type: "address" }, + { internalType: "string", name: "metadata", type: "string" }, + ], + indexed: !1, + internalType: "struct IClaimCondition.ClaimCondition[]", + name: "claimConditions", + type: "tuple[]", + }, + { + indexed: !1, + internalType: "bool", + name: "resetEligibility", + type: "bool", + }, + ], + name: "ClaimConditionsUpdated", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "uint256", + name: "claimConditionIndex", + type: "uint256", + }, + { + indexed: !0, + internalType: "address", + name: "claimer", + type: "address", + }, + { + indexed: !0, + internalType: "address", + name: "receiver", + type: "address", + }, + { + indexed: !1, + internalType: "uint256", + name: "startTokenId", + type: "uint256", + }, + { + indexed: !1, + internalType: "uint256", + name: "quantityClaimed", + type: "uint256", + }, + ], + name: "TokensClaimed", + type: "event", + }, + { + inputs: [ + { internalType: "address", name: "receiver", type: "address" }, + { internalType: "uint256", name: "quantity", type: "uint256" }, + { internalType: "address", name: "currency", type: "address" }, + { internalType: "uint256", name: "pricePerToken", type: "uint256" }, + { + components: [ + { internalType: "bytes32[]", name: "proof", type: "bytes32[]" }, + { + internalType: "uint256", + name: "quantityLimitPerWallet", + type: "uint256", + }, + { + internalType: "uint256", + name: "pricePerToken", + type: "uint256", + }, + { internalType: "address", name: "currency", type: "address" }, + ], + internalType: "struct IDrop.AllowlistProof", + name: "allowlistProof", + type: "tuple", + }, + { internalType: "bytes", name: "data", type: "bytes" }, + ], + name: "claim", + outputs: [], + stateMutability: "payable", + type: "function", + }, + { + inputs: [ + { + components: [ + { + internalType: "uint256", + name: "startTimestamp", + type: "uint256", + }, + { + internalType: "uint256", + name: "maxClaimableSupply", + type: "uint256", + }, + { + internalType: "uint256", + name: "supplyClaimed", + type: "uint256", + }, + { + internalType: "uint256", + name: "quantityLimitPerWallet", + type: "uint256", + }, + { internalType: "bytes32", name: "merkleRoot", type: "bytes32" }, + { + internalType: "uint256", + name: "pricePerToken", + type: "uint256", + }, + { internalType: "address", name: "currency", type: "address" }, + { internalType: "string", name: "metadata", type: "string" }, + ], + internalType: "struct IClaimCondition.ClaimCondition[]", + name: "phases", + type: "tuple[]", + }, + { internalType: "bool", name: "resetClaimEligibility", type: "bool" }, + ], + name: "setClaimConditions", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + ]; + }); + var Fn = N((brn, ckt) => { + ckt.exports = [ + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "address", + name: "owner", + type: "address", + }, + { + indexed: !0, + internalType: "address", + name: "spender", + type: "address", + }, + { + indexed: !1, + internalType: "uint256", + name: "value", + type: "uint256", + }, + ], + name: "Approval", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + components: [ + { + internalType: "uint256", + name: "startTimestamp", + type: "uint256", + }, + { + internalType: "uint256", + name: "maxClaimableSupply", + type: "uint256", + }, + { + internalType: "uint256", + name: "supplyClaimed", + type: "uint256", + }, + { + internalType: "uint256", + name: "quantityLimitPerTransaction", + type: "uint256", + }, + { + internalType: "uint256", + name: "waitTimeInSecondsBetweenClaims", + type: "uint256", + }, + { internalType: "bytes32", name: "merkleRoot", type: "bytes32" }, + { + internalType: "uint256", + name: "pricePerToken", + type: "uint256", + }, + { internalType: "address", name: "currency", type: "address" }, + ], + indexed: !1, + internalType: "struct IDropClaimCondition_V2.ClaimCondition[]", + name: "claimConditions", + type: "tuple[]", + }, + ], + name: "ClaimConditionsUpdated", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !1, + internalType: "string", + name: "prevURI", + type: "string", + }, + { + indexed: !1, + internalType: "string", + name: "newURI", + type: "string", + }, + ], + name: "ContractURIUpdated", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !1, + internalType: "uint256", + name: "maxTotalSupply", + type: "uint256", + }, + ], + name: "MaxTotalSupplyUpdated", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !1, + internalType: "uint256", + name: "count", + type: "uint256", + }, + ], + name: "MaxWalletClaimCountUpdated", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "uint256", + name: "claimConditionIndex", + type: "uint256", + }, + { + indexed: !0, + internalType: "address", + name: "claimer", + type: "address", + }, + { + indexed: !0, + internalType: "address", + name: "receiver", + type: "address", + }, + { + indexed: !1, + internalType: "uint256", + name: "quantityClaimed", + type: "uint256", + }, + ], + name: "TokensClaimed", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "address", + name: "from", + type: "address", + }, + { indexed: !0, internalType: "address", name: "to", type: "address" }, + { + indexed: !1, + internalType: "uint256", + name: "value", + type: "uint256", + }, + ], + name: "Transfer", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "address", + name: "wallet", + type: "address", + }, + { + indexed: !1, + internalType: "uint256", + name: "count", + type: "uint256", + }, + ], + name: "WalletClaimCountUpdated", + type: "event", + }, + { + inputs: [ + { internalType: "address", name: "owner", type: "address" }, + { internalType: "address", name: "spender", type: "address" }, + ], + name: "allowance", + outputs: [{ internalType: "uint256", name: "", type: "uint256" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "spender", type: "address" }, + { internalType: "uint256", name: "amount", type: "uint256" }, + ], + name: "approve", + outputs: [{ internalType: "bool", name: "", type: "bool" }], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [{ internalType: "address", name: "account", type: "address" }], + name: "balanceOf", + outputs: [{ internalType: "uint256", name: "", type: "uint256" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "receiver", type: "address" }, + { internalType: "uint256", name: "quantity", type: "uint256" }, + { internalType: "address", name: "currency", type: "address" }, + { internalType: "uint256", name: "pricePerToken", type: "uint256" }, + { internalType: "bytes32[]", name: "proofs", type: "bytes32[]" }, + { + internalType: "uint256", + name: "proofMaxQuantityPerTransaction", + type: "uint256", + }, + ], + name: "claim", + outputs: [], + stateMutability: "payable", + type: "function", + }, + { + inputs: [ + { + components: [ + { + internalType: "uint256", + name: "startTimestamp", + type: "uint256", + }, + { + internalType: "uint256", + name: "maxClaimableSupply", + type: "uint256", + }, + { + internalType: "uint256", + name: "supplyClaimed", + type: "uint256", + }, + { + internalType: "uint256", + name: "quantityLimitPerTransaction", + type: "uint256", + }, + { + internalType: "uint256", + name: "waitTimeInSecondsBetweenClaims", + type: "uint256", + }, + { internalType: "bytes32", name: "merkleRoot", type: "bytes32" }, + { + internalType: "uint256", + name: "pricePerToken", + type: "uint256", + }, + { internalType: "address", name: "currency", type: "address" }, + ], + internalType: "struct IDropClaimCondition_V2.ClaimCondition[]", + name: "phases", + type: "tuple[]", + }, + { internalType: "bool", name: "resetClaimEligibility", type: "bool" }, + ], + name: "setClaimConditions", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [], + name: "totalSupply", + outputs: [{ internalType: "uint256", name: "", type: "uint256" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "to", type: "address" }, + { internalType: "uint256", name: "amount", type: "uint256" }, + ], + name: "transfer", + outputs: [{ internalType: "bool", name: "", type: "bool" }], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "from", type: "address" }, + { internalType: "address", name: "to", type: "address" }, + { internalType: "uint256", name: "amount", type: "uint256" }, + ], + name: "transferFrom", + outputs: [{ internalType: "bool", name: "", type: "bool" }], + stateMutability: "nonpayable", + type: "function", + }, + ]; + }); + var Wn = N((vrn, ukt) => { + ukt.exports = [ + { + anonymous: !1, + inputs: [ + { + components: [ + { + internalType: "uint256", + name: "startTimestamp", + type: "uint256", + }, + { + internalType: "uint256", + name: "maxClaimableSupply", + type: "uint256", + }, + { + internalType: "uint256", + name: "supplyClaimed", + type: "uint256", + }, + { + internalType: "uint256", + name: "quantityLimitPerWallet", + type: "uint256", + }, + { internalType: "bytes32", name: "merkleRoot", type: "bytes32" }, + { + internalType: "uint256", + name: "pricePerToken", + type: "uint256", + }, + { internalType: "address", name: "currency", type: "address" }, + { internalType: "string", name: "metadata", type: "string" }, + ], + indexed: !1, + internalType: "struct IClaimCondition.ClaimCondition", + name: "condition", + type: "tuple", + }, + { + indexed: !1, + internalType: "bool", + name: "resetEligibility", + type: "bool", + }, + ], + name: "ClaimConditionUpdated", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "address", + name: "claimer", + type: "address", + }, + { + indexed: !0, + internalType: "address", + name: "receiver", + type: "address", + }, + { + indexed: !0, + internalType: "uint256", + name: "startTokenId", + type: "uint256", + }, + { + indexed: !1, + internalType: "uint256", + name: "quantityClaimed", + type: "uint256", + }, + ], + name: "TokensClaimed", + type: "event", + }, + { + inputs: [ + { internalType: "address", name: "receiver", type: "address" }, + { internalType: "uint256", name: "quantity", type: "uint256" }, + { internalType: "address", name: "currency", type: "address" }, + { internalType: "uint256", name: "pricePerToken", type: "uint256" }, + { + components: [ + { internalType: "bytes32[]", name: "proof", type: "bytes32[]" }, + { + internalType: "uint256", + name: "quantityLimitPerWallet", + type: "uint256", + }, + { + internalType: "uint256", + name: "pricePerToken", + type: "uint256", + }, + { internalType: "address", name: "currency", type: "address" }, + ], + internalType: "struct IDropSinglePhase.AllowlistProof", + name: "allowlistProof", + type: "tuple", + }, + { internalType: "bytes", name: "data", type: "bytes" }, + ], + name: "claim", + outputs: [], + stateMutability: "payable", + type: "function", + }, + { + inputs: [ + { + components: [ + { + internalType: "uint256", + name: "startTimestamp", + type: "uint256", + }, + { + internalType: "uint256", + name: "maxClaimableSupply", + type: "uint256", + }, + { + internalType: "uint256", + name: "supplyClaimed", + type: "uint256", + }, + { + internalType: "uint256", + name: "quantityLimitPerWallet", + type: "uint256", + }, + { internalType: "bytes32", name: "merkleRoot", type: "bytes32" }, + { + internalType: "uint256", + name: "pricePerToken", + type: "uint256", + }, + { internalType: "address", name: "currency", type: "address" }, + { internalType: "string", name: "metadata", type: "string" }, + ], + internalType: "struct IClaimCondition.ClaimCondition", + name: "phase", + type: "tuple", + }, + { internalType: "bool", name: "resetClaimEligibility", type: "bool" }, + ], + name: "setClaimConditions", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + ]; + }); + var Un = N((wrn, lkt) => { + lkt.exports = [ + { + anonymous: !1, + inputs: [ + { + components: [ + { + internalType: "uint256", + name: "startTimestamp", + type: "uint256", + }, + { + internalType: "uint256", + name: "maxClaimableSupply", + type: "uint256", + }, + { + internalType: "uint256", + name: "supplyClaimed", + type: "uint256", + }, + { + internalType: "uint256", + name: "quantityLimitPerTransaction", + type: "uint256", + }, + { + internalType: "uint256", + name: "waitTimeInSecondsBetweenClaims", + type: "uint256", + }, + { internalType: "bytes32", name: "merkleRoot", type: "bytes32" }, + { + internalType: "uint256", + name: "pricePerToken", + type: "uint256", + }, + { internalType: "address", name: "currency", type: "address" }, + ], + indexed: !1, + internalType: "struct IClaimCondition_V1.ClaimCondition", + name: "condition", + type: "tuple", + }, + { + indexed: !1, + internalType: "bool", + name: "resetEligibility", + type: "bool", + }, + ], + name: "ClaimConditionUpdated", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "address", + name: "claimer", + type: "address", + }, + { + indexed: !0, + internalType: "address", + name: "receiver", + type: "address", + }, + { + indexed: !0, + internalType: "uint256", + name: "startTokenId", + type: "uint256", + }, + { + indexed: !1, + internalType: "uint256", + name: "quantityClaimed", + type: "uint256", + }, + ], + name: "TokensClaimed", + type: "event", + }, + { + inputs: [ + { internalType: "address", name: "receiver", type: "address" }, + { internalType: "uint256", name: "quantity", type: "uint256" }, + { internalType: "address", name: "currency", type: "address" }, + { internalType: "uint256", name: "pricePerToken", type: "uint256" }, + { + components: [ + { internalType: "bytes32[]", name: "proof", type: "bytes32[]" }, + { + internalType: "uint256", + name: "maxQuantityInAllowlist", + type: "uint256", + }, + ], + internalType: "struct IDropSinglePhase_V1.AllowlistProof", + name: "allowlistProof", + type: "tuple", + }, + { internalType: "bytes", name: "data", type: "bytes" }, + ], + name: "claim", + outputs: [], + stateMutability: "payable", + type: "function", + }, + { + inputs: [ + { + components: [ + { + internalType: "uint256", + name: "startTimestamp", + type: "uint256", + }, + { + internalType: "uint256", + name: "maxClaimableSupply", + type: "uint256", + }, + { + internalType: "uint256", + name: "supplyClaimed", + type: "uint256", + }, + { + internalType: "uint256", + name: "quantityLimitPerTransaction", + type: "uint256", + }, + { + internalType: "uint256", + name: "waitTimeInSecondsBetweenClaims", + type: "uint256", + }, + { internalType: "bytes32", name: "merkleRoot", type: "bytes32" }, + { + internalType: "uint256", + name: "pricePerToken", + type: "uint256", + }, + { internalType: "address", name: "currency", type: "address" }, + ], + internalType: "struct IClaimCondition_V1.ClaimCondition", + name: "phase", + type: "tuple", + }, + { internalType: "bool", name: "resetClaimEligibility", type: "bool" }, + ], + name: "setClaimConditions", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + ]; + }); + var Hn = N((_rn, dkt) => { + dkt.exports = [ + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "address", + name: "owner", + type: "address", + }, + { + indexed: !0, + internalType: "address", + name: "spender", + type: "address", + }, + { + indexed: !1, + internalType: "uint256", + name: "value", + type: "uint256", + }, + ], + name: "Approval", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "address", + name: "from", + type: "address", + }, + { indexed: !0, internalType: "address", name: "to", type: "address" }, + { + indexed: !1, + internalType: "uint256", + name: "value", + type: "uint256", + }, + ], + name: "Transfer", + type: "event", + }, + { + inputs: [ + { internalType: "address", name: "owner", type: "address" }, + { internalType: "address", name: "spender", type: "address" }, + ], + name: "allowance", + outputs: [{ internalType: "uint256", name: "", type: "uint256" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "spender", type: "address" }, + { internalType: "uint256", name: "value", type: "uint256" }, + ], + name: "approve", + outputs: [{ internalType: "bool", name: "", type: "bool" }], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [{ internalType: "address", name: "who", type: "address" }], + name: "balanceOf", + outputs: [{ internalType: "uint256", name: "", type: "uint256" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "totalSupply", + outputs: [{ internalType: "uint256", name: "", type: "uint256" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "to", type: "address" }, + { internalType: "uint256", name: "value", type: "uint256" }, + ], + name: "transfer", + outputs: [{ internalType: "bool", name: "", type: "bool" }], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "from", type: "address" }, + { internalType: "address", name: "to", type: "address" }, + { internalType: "uint256", name: "value", type: "uint256" }, + ], + name: "transferFrom", + outputs: [{ internalType: "bool", name: "", type: "bool" }], + stateMutability: "nonpayable", + type: "function", + }, + ]; + }); + var zn = N((xrn, pkt) => { + pkt.exports = [ + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "address", + name: "mintedTo", + type: "address", + }, + { + indexed: !1, + internalType: "uint256", + name: "quantityMinted", + type: "uint256", + }, + ], + name: "TokensMinted", + type: "event", + }, + { + inputs: [ + { internalType: "address", name: "to", type: "address" }, + { internalType: "uint256", name: "amount", type: "uint256" }, + ], + name: "mintTo", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + ]; + }); + var jn = N((Trn, hkt) => { + hkt.exports = [ + { + inputs: [{ internalType: "bytes[]", name: "data", type: "bytes[]" }], + name: "multicall", + outputs: [ + { internalType: "bytes[]", name: "results", type: "bytes[]" }, + ], + stateMutability: "nonpayable", + type: "function", + }, + ]; + }); + var Kn = N((Ern, fkt) => { + fkt.exports = [ + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "address", + name: "signer", + type: "address", + }, + { + indexed: !0, + internalType: "address", + name: "mintedTo", + type: "address", + }, + { + components: [ + { internalType: "address", name: "to", type: "address" }, + { + internalType: "address", + name: "primarySaleRecipient", + type: "address", + }, + { internalType: "uint256", name: "quantity", type: "uint256" }, + { + internalType: "uint256", + name: "pricePerToken", + type: "uint256", + }, + { internalType: "address", name: "currency", type: "address" }, + { + internalType: "uint128", + name: "validityStartTimestamp", + type: "uint128", + }, + { + internalType: "uint128", + name: "validityEndTimestamp", + type: "uint128", + }, + { internalType: "bytes32", name: "uid", type: "bytes32" }, + ], + indexed: !1, + internalType: "struct ISignatureMintERC20.MintRequest", + name: "mintRequest", + type: "tuple", + }, + ], + name: "TokensMintedWithSignature", + type: "event", + }, + { + inputs: [ + { + components: [ + { internalType: "address", name: "to", type: "address" }, + { + internalType: "address", + name: "primarySaleRecipient", + type: "address", + }, + { internalType: "uint256", name: "quantity", type: "uint256" }, + { + internalType: "uint256", + name: "pricePerToken", + type: "uint256", + }, + { internalType: "address", name: "currency", type: "address" }, + { + internalType: "uint128", + name: "validityStartTimestamp", + type: "uint128", + }, + { + internalType: "uint128", + name: "validityEndTimestamp", + type: "uint128", + }, + { internalType: "bytes32", name: "uid", type: "bytes32" }, + ], + internalType: "struct ISignatureMintERC20.MintRequest", + name: "req", + type: "tuple", + }, + { internalType: "bytes", name: "signature", type: "bytes" }, + ], + name: "mintWithSignature", + outputs: [{ internalType: "address", name: "signer", type: "address" }], + stateMutability: "payable", + type: "function", + }, + { + inputs: [ + { + components: [ + { internalType: "address", name: "to", type: "address" }, + { + internalType: "address", + name: "primarySaleRecipient", + type: "address", + }, + { internalType: "uint256", name: "quantity", type: "uint256" }, + { + internalType: "uint256", + name: "pricePerToken", + type: "uint256", + }, + { internalType: "address", name: "currency", type: "address" }, + { + internalType: "uint128", + name: "validityStartTimestamp", + type: "uint128", + }, + { + internalType: "uint128", + name: "validityEndTimestamp", + type: "uint128", + }, + { internalType: "bytes32", name: "uid", type: "bytes32" }, + ], + internalType: "struct ISignatureMintERC20.MintRequest", + name: "req", + type: "tuple", + }, + { internalType: "bytes", name: "signature", type: "bytes" }, + ], + name: "verify", + outputs: [ + { internalType: "bool", name: "success", type: "bool" }, + { internalType: "address", name: "signer", type: "address" }, + ], + stateMutability: "view", + type: "function", + }, + ]; + }); + var Vn = N((Crn, mkt) => { + mkt.exports = [ + { + inputs: [{ internalType: "uint256", name: "tokenId", type: "uint256" }], + name: "burn", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + ]; + }); + var Gn = N((Irn, ykt) => { + ykt.exports = [ + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "address", + name: "claimer", + type: "address", + }, + { + indexed: !0, + internalType: "address", + name: "receiver", + type: "address", + }, + { + indexed: !0, + internalType: "uint256", + name: "startTokenId", + type: "uint256", + }, + { + indexed: !1, + internalType: "uint256", + name: "quantityClaimed", + type: "uint256", + }, + ], + name: "TokensClaimed", + type: "event", + }, + { + inputs: [ + { internalType: "address", name: "_receiver", type: "address" }, + { internalType: "uint256", name: "_quantity", type: "uint256" }, + ], + name: "claim", + outputs: [], + stateMutability: "payable", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "_claimer", type: "address" }, + { internalType: "uint256", name: "_quantity", type: "uint256" }, + ], + name: "verifyClaim", + outputs: [], + stateMutability: "view", + type: "function", + }, + ]; + }); + var Yn = N((Arn, gkt) => { + gkt.exports = [ + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "uint256", + name: "index", + type: "uint256", + }, + { + indexed: !1, + internalType: "string", + name: "revealedURI", + type: "string", + }, + ], + name: "TokenURIRevealed", + type: "event", + }, + { + inputs: [ + { internalType: "bytes", name: "data", type: "bytes" }, + { internalType: "bytes", name: "key", type: "bytes" }, + ], + name: "encryptDecrypt", + outputs: [{ internalType: "bytes", name: "result", type: "bytes" }], + stateMutability: "pure", + type: "function", + }, + { + inputs: [ + { internalType: "uint256", name: "identifier", type: "uint256" }, + { internalType: "bytes", name: "key", type: "bytes" }, + ], + name: "reveal", + outputs: [ + { internalType: "string", name: "revealedURI", type: "string" }, + ], + stateMutability: "nonpayable", + type: "function", + }, + ]; + }); + var $n = N((krn, bkt) => { + bkt.exports = [ + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "address", + name: "owner", + type: "address", + }, + { + indexed: !0, + internalType: "address", + name: "approved", + type: "address", + }, + { + indexed: !0, + internalType: "uint256", + name: "tokenId", + type: "uint256", + }, + ], + name: "Approval", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "address", + name: "owner", + type: "address", + }, + { + indexed: !0, + internalType: "address", + name: "operator", + type: "address", + }, + { indexed: !1, internalType: "bool", name: "approved", type: "bool" }, + ], + name: "ApprovalForAll", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + components: [ + { + internalType: "uint256", + name: "startTimestamp", + type: "uint256", + }, + { + internalType: "uint256", + name: "maxClaimableSupply", + type: "uint256", + }, + { + internalType: "uint256", + name: "supplyClaimed", + type: "uint256", + }, + { + internalType: "uint256", + name: "quantityLimitPerTransaction", + type: "uint256", + }, + { + internalType: "uint256", + name: "waitTimeInSecondsBetweenClaims", + type: "uint256", + }, + { internalType: "bytes32", name: "merkleRoot", type: "bytes32" }, + { + internalType: "uint256", + name: "pricePerToken", + type: "uint256", + }, + { internalType: "address", name: "currency", type: "address" }, + ], + indexed: !1, + internalType: "struct IDropClaimCondition_V2.ClaimCondition[]", + name: "claimConditions", + type: "tuple[]", + }, + ], + name: "ClaimConditionsUpdated", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !1, + internalType: "uint256", + name: "maxTotalSupply", + type: "uint256", + }, + ], + name: "MaxTotalSupplyUpdated", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !1, + internalType: "uint256", + name: "count", + type: "uint256", + }, + ], + name: "MaxWalletClaimCountUpdated", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !1, + internalType: "uint256", + name: "endTokenId", + type: "uint256", + }, + { + indexed: !1, + internalType: "string", + name: "revealedURI", + type: "string", + }, + ], + name: "NFTRevealed", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "uint256", + name: "claimConditionIndex", + type: "uint256", + }, + { + indexed: !0, + internalType: "address", + name: "claimer", + type: "address", + }, + { + indexed: !0, + internalType: "address", + name: "receiver", + type: "address", + }, + { + indexed: !1, + internalType: "uint256", + name: "startTokenId", + type: "uint256", + }, + { + indexed: !1, + internalType: "uint256", + name: "quantityClaimed", + type: "uint256", + }, + ], + name: "TokensClaimed", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !1, + internalType: "uint256", + name: "startTokenId", + type: "uint256", + }, + { + indexed: !1, + internalType: "uint256", + name: "endTokenId", + type: "uint256", + }, + { + indexed: !1, + internalType: "string", + name: "baseURI", + type: "string", + }, + { + indexed: !1, + internalType: "bytes", + name: "encryptedBaseURI", + type: "bytes", + }, + ], + name: "TokensLazyMinted", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "address", + name: "from", + type: "address", + }, + { indexed: !0, internalType: "address", name: "to", type: "address" }, + { + indexed: !0, + internalType: "uint256", + name: "tokenId", + type: "uint256", + }, + ], + name: "Transfer", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "address", + name: "wallet", + type: "address", + }, + { + indexed: !1, + internalType: "uint256", + name: "count", + type: "uint256", + }, + ], + name: "WalletClaimCountUpdated", + type: "event", + }, + { + inputs: [ + { internalType: "address", name: "to", type: "address" }, + { internalType: "uint256", name: "tokenId", type: "uint256" }, + ], + name: "approve", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [{ internalType: "address", name: "owner", type: "address" }], + name: "balanceOf", + outputs: [ + { internalType: "uint256", name: "balance", type: "uint256" }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "receiver", type: "address" }, + { internalType: "uint256", name: "quantity", type: "uint256" }, + { internalType: "address", name: "currency", type: "address" }, + { internalType: "uint256", name: "pricePerToken", type: "uint256" }, + { internalType: "bytes32[]", name: "proofs", type: "bytes32[]" }, + { + internalType: "uint256", + name: "proofMaxQuantityPerTransaction", + type: "uint256", + }, + ], + name: "claim", + outputs: [], + stateMutability: "payable", + type: "function", + }, + { + inputs: [{ internalType: "uint256", name: "tokenId", type: "uint256" }], + name: "getApproved", + outputs: [ + { internalType: "address", name: "operator", type: "address" }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "owner", type: "address" }, + { internalType: "address", name: "operator", type: "address" }, + ], + name: "isApprovedForAll", + outputs: [{ internalType: "bool", name: "", type: "bool" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "uint256", name: "amount", type: "uint256" }, + { internalType: "string", name: "baseURIForTokens", type: "string" }, + { internalType: "bytes", name: "encryptedBaseURI", type: "bytes" }, + ], + name: "lazyMint", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [{ internalType: "uint256", name: "tokenId", type: "uint256" }], + name: "ownerOf", + outputs: [{ internalType: "address", name: "owner", type: "address" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "from", type: "address" }, + { internalType: "address", name: "to", type: "address" }, + { internalType: "uint256", name: "tokenId", type: "uint256" }, + ], + name: "safeTransferFrom", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "from", type: "address" }, + { internalType: "address", name: "to", type: "address" }, + { internalType: "uint256", name: "tokenId", type: "uint256" }, + { internalType: "bytes", name: "data", type: "bytes" }, + ], + name: "safeTransferFrom", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "operator", type: "address" }, + { internalType: "bool", name: "_approved", type: "bool" }, + ], + name: "setApprovalForAll", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + components: [ + { + internalType: "uint256", + name: "startTimestamp", + type: "uint256", + }, + { + internalType: "uint256", + name: "maxClaimableSupply", + type: "uint256", + }, + { + internalType: "uint256", + name: "supplyClaimed", + type: "uint256", + }, + { + internalType: "uint256", + name: "quantityLimitPerTransaction", + type: "uint256", + }, + { + internalType: "uint256", + name: "waitTimeInSecondsBetweenClaims", + type: "uint256", + }, + { internalType: "bytes32", name: "merkleRoot", type: "bytes32" }, + { + internalType: "uint256", + name: "pricePerToken", + type: "uint256", + }, + { internalType: "address", name: "currency", type: "address" }, + ], + internalType: "struct IDropClaimCondition_V2.ClaimCondition[]", + name: "phases", + type: "tuple[]", + }, + { internalType: "bool", name: "resetClaimEligibility", type: "bool" }, + ], + name: "setClaimConditions", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "bytes4", name: "interfaceId", type: "bytes4" }, + ], + name: "supportsInterface", + outputs: [{ internalType: "bool", name: "", type: "bool" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "from", type: "address" }, + { internalType: "address", name: "to", type: "address" }, + { internalType: "uint256", name: "tokenId", type: "uint256" }, + ], + name: "transferFrom", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + ]; + }); + var Jn = N((Srn, vkt) => { + vkt.exports = [ + { + inputs: [{ internalType: "uint256", name: "_index", type: "uint256" }], + name: "tokenByIndex", + outputs: [{ internalType: "uint256", name: "", type: "uint256" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "_owner", type: "address" }, + { internalType: "uint256", name: "_index", type: "uint256" }, + ], + name: "tokenOfOwnerByIndex", + outputs: [{ internalType: "uint256", name: "", type: "uint256" }], + stateMutability: "view", + type: "function", + }, + ]; + }); + var Zn = N((Mrn, wkt) => { + wkt.exports = [ + { + inputs: [], + name: "totalSupply", + outputs: [{ internalType: "uint256", name: "", type: "uint256" }], + stateMutability: "view", + type: "function", + }, + ]; + }); + var Qn = N((Prn, _kt) => { + _kt.exports = [ + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "uint256", + name: "startTokenId", + type: "uint256", + }, + { + indexed: !1, + internalType: "uint256", + name: "endTokenId", + type: "uint256", + }, + { + indexed: !1, + internalType: "string", + name: "baseURI", + type: "string", + }, + { + indexed: !1, + internalType: "bytes", + name: "encryptedBaseURI", + type: "bytes", + }, + ], + name: "TokensLazyMinted", + type: "event", + }, + { + inputs: [ + { internalType: "uint256", name: "amount", type: "uint256" }, + { internalType: "string", name: "baseURIForTokens", type: "string" }, + { internalType: "bytes", name: "extraData", type: "bytes" }, + ], + name: "lazyMint", + outputs: [ + { internalType: "uint256", name: "batchId", type: "uint256" }, + ], + stateMutability: "nonpayable", + type: "function", + }, + ]; + }); + var Xn = N((Rrn, xkt) => { + xkt.exports = [ + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "address", + name: "mintedTo", + type: "address", + }, + { + indexed: !0, + internalType: "uint256", + name: "tokenIdMinted", + type: "uint256", + }, + { indexed: !1, internalType: "string", name: "uri", type: "string" }, + ], + name: "TokensMinted", + type: "event", + }, + { + inputs: [ + { internalType: "address", name: "to", type: "address" }, + { internalType: "string", name: "uri", type: "string" }, + ], + name: "mintTo", + outputs: [{ internalType: "uint256", name: "", type: "uint256" }], + stateMutability: "nonpayable", + type: "function", + }, + ]; + }); + var ea = N((Brn, Tkt) => { + Tkt.exports = [ + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "address", + name: "signer", + type: "address", + }, + { + indexed: !0, + internalType: "address", + name: "mintedTo", + type: "address", + }, + { + indexed: !0, + internalType: "uint256", + name: "tokenIdMinted", + type: "uint256", + }, + { + components: [ + { internalType: "address", name: "to", type: "address" }, + { + internalType: "address", + name: "royaltyRecipient", + type: "address", + }, + { internalType: "uint256", name: "royaltyBps", type: "uint256" }, + { + internalType: "address", + name: "primarySaleRecipient", + type: "address", + }, + { internalType: "string", name: "uri", type: "string" }, + { internalType: "uint256", name: "quantity", type: "uint256" }, + { + internalType: "uint256", + name: "pricePerToken", + type: "uint256", + }, + { internalType: "address", name: "currency", type: "address" }, + { + internalType: "uint128", + name: "validityStartTimestamp", + type: "uint128", + }, + { + internalType: "uint128", + name: "validityEndTimestamp", + type: "uint128", + }, + { internalType: "bytes32", name: "uid", type: "bytes32" }, + ], + indexed: !1, + internalType: "struct ISignatureMintERC721.MintRequest", + name: "mintRequest", + type: "tuple", + }, + ], + name: "TokensMintedWithSignature", + type: "event", + }, + { + inputs: [ + { + components: [ + { internalType: "address", name: "to", type: "address" }, + { + internalType: "address", + name: "royaltyRecipient", + type: "address", + }, + { internalType: "uint256", name: "royaltyBps", type: "uint256" }, + { + internalType: "address", + name: "primarySaleRecipient", + type: "address", + }, + { internalType: "string", name: "uri", type: "string" }, + { internalType: "uint256", name: "quantity", type: "uint256" }, + { + internalType: "uint256", + name: "pricePerToken", + type: "uint256", + }, + { internalType: "address", name: "currency", type: "address" }, + { + internalType: "uint128", + name: "validityStartTimestamp", + type: "uint128", + }, + { + internalType: "uint128", + name: "validityEndTimestamp", + type: "uint128", + }, + { internalType: "bytes32", name: "uid", type: "bytes32" }, + ], + internalType: "struct ISignatureMintERC721.MintRequest", + name: "req", + type: "tuple", + }, + { internalType: "bytes", name: "signature", type: "bytes" }, + ], + name: "mintWithSignature", + outputs: [{ internalType: "address", name: "signer", type: "address" }], + stateMutability: "payable", + type: "function", + }, + { + inputs: [ + { + components: [ + { internalType: "address", name: "to", type: "address" }, + { + internalType: "address", + name: "royaltyRecipient", + type: "address", + }, + { internalType: "uint256", name: "royaltyBps", type: "uint256" }, + { + internalType: "address", + name: "primarySaleRecipient", + type: "address", + }, + { internalType: "string", name: "uri", type: "string" }, + { internalType: "uint256", name: "quantity", type: "uint256" }, + { + internalType: "uint256", + name: "pricePerToken", + type: "uint256", + }, + { internalType: "address", name: "currency", type: "address" }, + { + internalType: "uint128", + name: "validityStartTimestamp", + type: "uint128", + }, + { + internalType: "uint128", + name: "validityEndTimestamp", + type: "uint128", + }, + { internalType: "bytes32", name: "uid", type: "bytes32" }, + ], + internalType: "struct ISignatureMintERC721.MintRequest", + name: "req", + type: "tuple", + }, + { internalType: "bytes", name: "signature", type: "bytes" }, + ], + name: "verify", + outputs: [ + { internalType: "bool", name: "success", type: "bool" }, + { internalType: "address", name: "signer", type: "address" }, + ], + stateMutability: "view", + type: "function", + }, + ]; + }); + var ta = N((Nrn, Ekt) => { + Ekt.exports = [ + { + inputs: [ + { + components: [ + { internalType: "address", name: "to", type: "address" }, + { + internalType: "address", + name: "royaltyRecipient", + type: "address", + }, + { internalType: "uint256", name: "royaltyBps", type: "uint256" }, + { + internalType: "address", + name: "primarySaleRecipient", + type: "address", + }, + { internalType: "string", name: "uri", type: "string" }, + { internalType: "uint256", name: "price", type: "uint256" }, + { internalType: "address", name: "currency", type: "address" }, + { + internalType: "uint128", + name: "validityStartTimestamp", + type: "uint128", + }, + { + internalType: "uint128", + name: "validityEndTimestamp", + type: "uint128", + }, + { internalType: "bytes32", name: "uid", type: "bytes32" }, + ], + internalType: "struct ITokenERC721.MintRequest", + name: "_req", + type: "tuple", + }, + { internalType: "bytes", name: "_signature", type: "bytes" }, + ], + name: "mintWithSignature", + outputs: [ + { internalType: "uint256", name: "tokenIdMinted", type: "uint256" }, + ], + stateMutability: "payable", + type: "function", + }, + { + inputs: [ + { + components: [ + { internalType: "address", name: "to", type: "address" }, + { + internalType: "address", + name: "royaltyRecipient", + type: "address", + }, + { internalType: "uint256", name: "royaltyBps", type: "uint256" }, + { + internalType: "address", + name: "primarySaleRecipient", + type: "address", + }, + { internalType: "string", name: "uri", type: "string" }, + { internalType: "uint256", name: "price", type: "uint256" }, + { internalType: "address", name: "currency", type: "address" }, + { + internalType: "uint128", + name: "validityStartTimestamp", + type: "uint128", + }, + { + internalType: "uint128", + name: "validityEndTimestamp", + type: "uint128", + }, + { internalType: "bytes32", name: "uid", type: "bytes32" }, + ], + internalType: "struct ITokenERC721.MintRequest", + name: "_req", + type: "tuple", + }, + { internalType: "bytes", name: "_signature", type: "bytes" }, + ], + name: "verify", + outputs: [ + { internalType: "bool", name: "", type: "bool" }, + { internalType: "address", name: "", type: "address" }, + ], + stateMutability: "view", + type: "function", + }, + ]; + }); + var ra = N((Orn, Ckt) => { + Ckt.exports = [ + { + anonymous: !1, + inputs: [ + { indexed: !0, internalType: "string", name: "tier", type: "string" }, + { + indexed: !0, + internalType: "uint256", + name: "startTokenId", + type: "uint256", + }, + { + indexed: !1, + internalType: "uint256", + name: "endTokenId", + type: "uint256", + }, + { + indexed: !1, + internalType: "string", + name: "baseURI", + type: "string", + }, + { + indexed: !1, + internalType: "bytes", + name: "encryptedBaseURI", + type: "bytes", + }, + ], + name: "TokensLazyMinted", + type: "event", + }, + { + inputs: [], + name: "getBaseURICount", + outputs: [{ internalType: "uint256", name: "", type: "uint256" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [{ internalType: "uint256", name: "_index", type: "uint256" }], + name: "getBatchIdAtIndex", + outputs: [{ internalType: "uint256", name: "", type: "uint256" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "getMetadataForAllTiers", + outputs: [ + { + components: [ + { internalType: "string", name: "tier", type: "string" }, + { + components: [ + { + internalType: "uint256", + name: "startIdInclusive", + type: "uint256", + }, + { + internalType: "uint256", + name: "endIdNonInclusive", + type: "uint256", + }, + ], + internalType: "struct LazyMintWithTier.TokenRange[]", + name: "ranges", + type: "tuple[]", + }, + { internalType: "string[]", name: "baseURIs", type: "string[]" }, + ], + internalType: "struct LazyMintWithTier.TierMetadata[]", + name: "metadataForAllTiers", + type: "tuple[]", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "uint256", name: "_amount", type: "uint256" }, + { internalType: "string", name: "_baseURIForTokens", type: "string" }, + { internalType: "string", name: "_tier", type: "string" }, + { internalType: "bytes", name: "_data", type: "bytes" }, + ], + name: "lazyMint", + outputs: [ + { internalType: "uint256", name: "batchId", type: "uint256" }, + ], + stateMutability: "nonpayable", + type: "function", + }, + ]; + }); + var na = N((Lrn, Ikt) => { + Ikt.exports = [ + { + inputs: [ + { internalType: "address", name: "account", type: "address" }, + { internalType: "uint256", name: "id", type: "uint256" }, + { internalType: "uint256", name: "value", type: "uint256" }, + ], + name: "burn", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "account", type: "address" }, + { internalType: "uint256[]", name: "ids", type: "uint256[]" }, + { internalType: "uint256[]", name: "values", type: "uint256[]" }, + ], + name: "burnBatch", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + ]; + }); + var aa = N((Drn, Akt) => { + Akt.exports = [ + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "address", + name: "claimer", + type: "address", + }, + { + indexed: !0, + internalType: "address", + name: "receiver", + type: "address", + }, + { + indexed: !0, + internalType: "uint256", + name: "tokenId", + type: "uint256", + }, + { + indexed: !1, + internalType: "uint256", + name: "quantityClaimed", + type: "uint256", + }, + ], + name: "TokensClaimed", + type: "event", + }, + { + inputs: [ + { internalType: "address", name: "_receiver", type: "address" }, + { internalType: "uint256", name: "_tokenId", type: "uint256" }, + { internalType: "uint256", name: "_quantity", type: "uint256" }, + ], + name: "claim", + outputs: [], + stateMutability: "payable", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "_claimer", type: "address" }, + { internalType: "uint256", name: "_tokenId", type: "uint256" }, + { internalType: "uint256", name: "_quantity", type: "uint256" }, + ], + name: "verifyClaim", + outputs: [], + stateMutability: "view", + type: "function", + }, + ]; + }); + var ia = N((qrn, kkt) => { + kkt.exports = [ + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "uint256", + name: "tokenId", + type: "uint256", + }, + { + components: [ + { + internalType: "uint256", + name: "startTimestamp", + type: "uint256", + }, + { + internalType: "uint256", + name: "maxClaimableSupply", + type: "uint256", + }, + { + internalType: "uint256", + name: "supplyClaimed", + type: "uint256", + }, + { + internalType: "uint256", + name: "quantityLimitPerWallet", + type: "uint256", + }, + { internalType: "bytes32", name: "merkleRoot", type: "bytes32" }, + { + internalType: "uint256", + name: "pricePerToken", + type: "uint256", + }, + { internalType: "address", name: "currency", type: "address" }, + { internalType: "string", name: "metadata", type: "string" }, + ], + indexed: !1, + internalType: "struct IClaimCondition.ClaimCondition[]", + name: "claimConditions", + type: "tuple[]", + }, + { + indexed: !1, + internalType: "bool", + name: "resetEligibility", + type: "bool", + }, + ], + name: "ClaimConditionsUpdated", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "uint256", + name: "claimConditionIndex", + type: "uint256", + }, + { + indexed: !0, + internalType: "address", + name: "claimer", + type: "address", + }, + { + indexed: !0, + internalType: "address", + name: "receiver", + type: "address", + }, + { + indexed: !1, + internalType: "uint256", + name: "tokenId", + type: "uint256", + }, + { + indexed: !1, + internalType: "uint256", + name: "quantityClaimed", + type: "uint256", + }, + ], + name: "TokensClaimed", + type: "event", + }, + { + inputs: [ + { internalType: "address", name: "receiver", type: "address" }, + { internalType: "uint256", name: "tokenId", type: "uint256" }, + { internalType: "uint256", name: "quantity", type: "uint256" }, + { internalType: "address", name: "currency", type: "address" }, + { internalType: "uint256", name: "pricePerToken", type: "uint256" }, + { + components: [ + { internalType: "bytes32[]", name: "proof", type: "bytes32[]" }, + { + internalType: "uint256", + name: "quantityLimitPerWallet", + type: "uint256", + }, + { + internalType: "uint256", + name: "pricePerToken", + type: "uint256", + }, + { internalType: "address", name: "currency", type: "address" }, + ], + internalType: "struct IDrop1155.AllowlistProof", + name: "allowlistProof", + type: "tuple", + }, + { internalType: "bytes", name: "data", type: "bytes" }, + ], + name: "claim", + outputs: [], + stateMutability: "payable", + type: "function", + }, + { + inputs: [ + { internalType: "uint256", name: "tokenId", type: "uint256" }, + { + components: [ + { + internalType: "uint256", + name: "startTimestamp", + type: "uint256", + }, + { + internalType: "uint256", + name: "maxClaimableSupply", + type: "uint256", + }, + { + internalType: "uint256", + name: "supplyClaimed", + type: "uint256", + }, + { + internalType: "uint256", + name: "quantityLimitPerWallet", + type: "uint256", + }, + { internalType: "bytes32", name: "merkleRoot", type: "bytes32" }, + { + internalType: "uint256", + name: "pricePerToken", + type: "uint256", + }, + { internalType: "address", name: "currency", type: "address" }, + { internalType: "string", name: "metadata", type: "string" }, + ], + internalType: "struct IClaimCondition.ClaimCondition[]", + name: "phases", + type: "tuple[]", + }, + { internalType: "bool", name: "resetClaimEligibility", type: "bool" }, + ], + name: "setClaimConditions", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + ]; + }); + var sa = N((Frn, Skt) => { + Skt.exports = [ + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "address", + name: "account", + type: "address", + }, + { + indexed: !0, + internalType: "address", + name: "operator", + type: "address", + }, + { indexed: !1, internalType: "bool", name: "approved", type: "bool" }, + ], + name: "ApprovalForAll", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "uint256", + name: "tokenId", + type: "uint256", + }, + { + components: [ + { + internalType: "uint256", + name: "startTimestamp", + type: "uint256", + }, + { + internalType: "uint256", + name: "maxClaimableSupply", + type: "uint256", + }, + { + internalType: "uint256", + name: "supplyClaimed", + type: "uint256", + }, + { + internalType: "uint256", + name: "quantityLimitPerTransaction", + type: "uint256", + }, + { + internalType: "uint256", + name: "waitTimeInSecondsBetweenClaims", + type: "uint256", + }, + { internalType: "bytes32", name: "merkleRoot", type: "bytes32" }, + { + internalType: "uint256", + name: "pricePerToken", + type: "uint256", + }, + { internalType: "address", name: "currency", type: "address" }, + ], + indexed: !1, + internalType: "struct IDropClaimCondition_V2.ClaimCondition[]", + name: "claimConditions", + type: "tuple[]", + }, + ], + name: "ClaimConditionsUpdated", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !1, + internalType: "uint256", + name: "tokenId", + type: "uint256", + }, + { + indexed: !1, + internalType: "uint256", + name: "maxTotalSupply", + type: "uint256", + }, + ], + name: "MaxTotalSupplyUpdated", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !1, + internalType: "uint256", + name: "tokenId", + type: "uint256", + }, + { + indexed: !1, + internalType: "uint256", + name: "count", + type: "uint256", + }, + ], + name: "MaxWalletClaimCountUpdated", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "uint256", + name: "tokenId", + type: "uint256", + }, + { + indexed: !1, + internalType: "address", + name: "saleRecipient", + type: "address", + }, + ], + name: "SaleRecipientForTokenUpdated", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "uint256", + name: "claimConditionIndex", + type: "uint256", + }, + { + indexed: !0, + internalType: "uint256", + name: "tokenId", + type: "uint256", + }, + { + indexed: !0, + internalType: "address", + name: "claimer", + type: "address", + }, + { + indexed: !1, + internalType: "address", + name: "receiver", + type: "address", + }, + { + indexed: !1, + internalType: "uint256", + name: "quantityClaimed", + type: "uint256", + }, + ], + name: "TokensClaimed", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !1, + internalType: "uint256", + name: "startTokenId", + type: "uint256", + }, + { + indexed: !1, + internalType: "uint256", + name: "endTokenId", + type: "uint256", + }, + { + indexed: !1, + internalType: "string", + name: "baseURI", + type: "string", + }, + ], + name: "TokensLazyMinted", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "address", + name: "operator", + type: "address", + }, + { + indexed: !0, + internalType: "address", + name: "from", + type: "address", + }, + { indexed: !0, internalType: "address", name: "to", type: "address" }, + { + indexed: !1, + internalType: "uint256[]", + name: "ids", + type: "uint256[]", + }, + { + indexed: !1, + internalType: "uint256[]", + name: "values", + type: "uint256[]", + }, + ], + name: "TransferBatch", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "address", + name: "operator", + type: "address", + }, + { + indexed: !0, + internalType: "address", + name: "from", + type: "address", + }, + { indexed: !0, internalType: "address", name: "to", type: "address" }, + { indexed: !1, internalType: "uint256", name: "id", type: "uint256" }, + { + indexed: !1, + internalType: "uint256", + name: "value", + type: "uint256", + }, + ], + name: "TransferSingle", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !1, + internalType: "string", + name: "value", + type: "string", + }, + { indexed: !0, internalType: "uint256", name: "id", type: "uint256" }, + ], + name: "URI", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !1, + internalType: "uint256", + name: "tokenId", + type: "uint256", + }, + { + indexed: !0, + internalType: "address", + name: "wallet", + type: "address", + }, + { + indexed: !1, + internalType: "uint256", + name: "count", + type: "uint256", + }, + ], + name: "WalletClaimCountUpdated", + type: "event", + }, + { + inputs: [ + { internalType: "address", name: "account", type: "address" }, + { internalType: "uint256", name: "id", type: "uint256" }, + ], + name: "balanceOf", + outputs: [{ internalType: "uint256", name: "", type: "uint256" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "address[]", name: "accounts", type: "address[]" }, + { internalType: "uint256[]", name: "ids", type: "uint256[]" }, + ], + name: "balanceOfBatch", + outputs: [{ internalType: "uint256[]", name: "", type: "uint256[]" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "receiver", type: "address" }, + { internalType: "uint256", name: "tokenId", type: "uint256" }, + { internalType: "uint256", name: "quantity", type: "uint256" }, + { internalType: "address", name: "currency", type: "address" }, + { internalType: "uint256", name: "pricePerToken", type: "uint256" }, + { internalType: "bytes32[]", name: "proofs", type: "bytes32[]" }, + { + internalType: "uint256", + name: "proofMaxQuantityPerTransaction", + type: "uint256", + }, + ], + name: "claim", + outputs: [], + stateMutability: "payable", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "account", type: "address" }, + { internalType: "address", name: "operator", type: "address" }, + ], + name: "isApprovedForAll", + outputs: [{ internalType: "bool", name: "", type: "bool" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "uint256", name: "amount", type: "uint256" }, + { internalType: "string", name: "baseURIForTokens", type: "string" }, + ], + name: "lazyMint", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "from", type: "address" }, + { internalType: "address", name: "to", type: "address" }, + { internalType: "uint256[]", name: "ids", type: "uint256[]" }, + { internalType: "uint256[]", name: "amounts", type: "uint256[]" }, + { internalType: "bytes", name: "data", type: "bytes" }, + ], + name: "safeBatchTransferFrom", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "from", type: "address" }, + { internalType: "address", name: "to", type: "address" }, + { internalType: "uint256", name: "id", type: "uint256" }, + { internalType: "uint256", name: "amount", type: "uint256" }, + { internalType: "bytes", name: "data", type: "bytes" }, + ], + name: "safeTransferFrom", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "operator", type: "address" }, + { internalType: "bool", name: "approved", type: "bool" }, + ], + name: "setApprovalForAll", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "uint256", name: "tokenId", type: "uint256" }, + { + components: [ + { + internalType: "uint256", + name: "startTimestamp", + type: "uint256", + }, + { + internalType: "uint256", + name: "maxClaimableSupply", + type: "uint256", + }, + { + internalType: "uint256", + name: "supplyClaimed", + type: "uint256", + }, + { + internalType: "uint256", + name: "quantityLimitPerTransaction", + type: "uint256", + }, + { + internalType: "uint256", + name: "waitTimeInSecondsBetweenClaims", + type: "uint256", + }, + { internalType: "bytes32", name: "merkleRoot", type: "bytes32" }, + { + internalType: "uint256", + name: "pricePerToken", + type: "uint256", + }, + { internalType: "address", name: "currency", type: "address" }, + ], + internalType: "struct IDropClaimCondition_V2.ClaimCondition[]", + name: "phases", + type: "tuple[]", + }, + { internalType: "bool", name: "resetClaimEligibility", type: "bool" }, + ], + name: "setClaimConditions", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "bytes4", name: "interfaceId", type: "bytes4" }, + ], + name: "supportsInterface", + outputs: [{ internalType: "bool", name: "", type: "bool" }], + stateMutability: "view", + type: "function", + }, + ]; + }); + var oa = N((Wrn, Mkt) => { + Mkt.exports = [ + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "uint256", + name: "tokenId", + type: "uint256", + }, + { + components: [ + { + internalType: "uint256", + name: "startTimestamp", + type: "uint256", + }, + { + internalType: "uint256", + name: "maxClaimableSupply", + type: "uint256", + }, + { + internalType: "uint256", + name: "supplyClaimed", + type: "uint256", + }, + { + internalType: "uint256", + name: "quantityLimitPerWallet", + type: "uint256", + }, + { internalType: "bytes32", name: "merkleRoot", type: "bytes32" }, + { + internalType: "uint256", + name: "pricePerToken", + type: "uint256", + }, + { internalType: "address", name: "currency", type: "address" }, + { internalType: "string", name: "metadata", type: "string" }, + ], + indexed: !1, + internalType: "struct IClaimCondition.ClaimCondition", + name: "condition", + type: "tuple", + }, + { + indexed: !1, + internalType: "bool", + name: "resetEligibility", + type: "bool", + }, + ], + name: "ClaimConditionUpdated", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "address", + name: "claimer", + type: "address", + }, + { + indexed: !0, + internalType: "address", + name: "receiver", + type: "address", + }, + { + indexed: !0, + internalType: "uint256", + name: "tokenId", + type: "uint256", + }, + { + indexed: !1, + internalType: "uint256", + name: "quantityClaimed", + type: "uint256", + }, + ], + name: "TokensClaimed", + type: "event", + }, + { + inputs: [ + { internalType: "address", name: "receiver", type: "address" }, + { internalType: "uint256", name: "tokenId", type: "uint256" }, + { internalType: "uint256", name: "quantity", type: "uint256" }, + { internalType: "address", name: "currency", type: "address" }, + { internalType: "uint256", name: "pricePerToken", type: "uint256" }, + { + components: [ + { internalType: "bytes32[]", name: "proof", type: "bytes32[]" }, + { + internalType: "uint256", + name: "quantityLimitPerWallet", + type: "uint256", + }, + { + internalType: "uint256", + name: "pricePerToken", + type: "uint256", + }, + { internalType: "address", name: "currency", type: "address" }, + ], + internalType: "struct IDropSinglePhase1155.AllowlistProof", + name: "allowlistProof", + type: "tuple", + }, + { internalType: "bytes", name: "data", type: "bytes" }, + ], + name: "claim", + outputs: [], + stateMutability: "payable", + type: "function", + }, + { + inputs: [ + { internalType: "uint256", name: "tokenId", type: "uint256" }, + { + components: [ + { + internalType: "uint256", + name: "startTimestamp", + type: "uint256", + }, + { + internalType: "uint256", + name: "maxClaimableSupply", + type: "uint256", + }, + { + internalType: "uint256", + name: "supplyClaimed", + type: "uint256", + }, + { + internalType: "uint256", + name: "quantityLimitPerWallet", + type: "uint256", + }, + { internalType: "bytes32", name: "merkleRoot", type: "bytes32" }, + { + internalType: "uint256", + name: "pricePerToken", + type: "uint256", + }, + { internalType: "address", name: "currency", type: "address" }, + { internalType: "string", name: "metadata", type: "string" }, + ], + internalType: "struct IClaimCondition.ClaimCondition", + name: "phase", + type: "tuple", + }, + { internalType: "bool", name: "resetClaimEligibility", type: "bool" }, + ], + name: "setClaimConditions", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + ]; + }); + var ca = N((Urn, Pkt) => { + Pkt.exports = [ + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "uint256", + name: "tokenId", + type: "uint256", + }, + { + components: [ + { + internalType: "uint256", + name: "startTimestamp", + type: "uint256", + }, + { + internalType: "uint256", + name: "maxClaimableSupply", + type: "uint256", + }, + { + internalType: "uint256", + name: "supplyClaimed", + type: "uint256", + }, + { + internalType: "uint256", + name: "quantityLimitPerTransaction", + type: "uint256", + }, + { + internalType: "uint256", + name: "waitTimeInSecondsBetweenClaims", + type: "uint256", + }, + { internalType: "bytes32", name: "merkleRoot", type: "bytes32" }, + { + internalType: "uint256", + name: "pricePerToken", + type: "uint256", + }, + { internalType: "address", name: "currency", type: "address" }, + ], + indexed: !1, + internalType: "struct IClaimCondition_V1.ClaimCondition", + name: "condition", + type: "tuple", + }, + { + indexed: !1, + internalType: "bool", + name: "resetEligibility", + type: "bool", + }, + ], + name: "ClaimConditionUpdated", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "address", + name: "claimer", + type: "address", + }, + { + indexed: !0, + internalType: "address", + name: "receiver", + type: "address", + }, + { + indexed: !0, + internalType: "uint256", + name: "tokenId", + type: "uint256", + }, + { + indexed: !1, + internalType: "uint256", + name: "quantityClaimed", + type: "uint256", + }, + ], + name: "TokensClaimed", + type: "event", + }, + { + inputs: [ + { internalType: "address", name: "receiver", type: "address" }, + { internalType: "uint256", name: "tokenId", type: "uint256" }, + { internalType: "uint256", name: "quantity", type: "uint256" }, + { internalType: "address", name: "currency", type: "address" }, + { internalType: "uint256", name: "pricePerToken", type: "uint256" }, + { + components: [ + { internalType: "bytes32[]", name: "proof", type: "bytes32[]" }, + { + internalType: "uint256", + name: "maxQuantityInAllowlist", + type: "uint256", + }, + ], + internalType: "struct IDropSinglePhase1155_V1.AllowlistProof", + name: "allowlistProof", + type: "tuple", + }, + { internalType: "bytes", name: "data", type: "bytes" }, + ], + name: "claim", + outputs: [], + stateMutability: "payable", + type: "function", + }, + { + inputs: [ + { internalType: "uint256", name: "tokenId", type: "uint256" }, + { + components: [ + { + internalType: "uint256", + name: "startTimestamp", + type: "uint256", + }, + { + internalType: "uint256", + name: "maxClaimableSupply", + type: "uint256", + }, + { + internalType: "uint256", + name: "supplyClaimed", + type: "uint256", + }, + { + internalType: "uint256", + name: "quantityLimitPerTransaction", + type: "uint256", + }, + { + internalType: "uint256", + name: "waitTimeInSecondsBetweenClaims", + type: "uint256", + }, + { internalType: "bytes32", name: "merkleRoot", type: "bytes32" }, + { + internalType: "uint256", + name: "pricePerToken", + type: "uint256", + }, + { internalType: "address", name: "currency", type: "address" }, + ], + internalType: "struct IClaimCondition_V1.ClaimCondition", + name: "phase", + type: "tuple", + }, + { internalType: "bool", name: "resetClaimEligibility", type: "bool" }, + ], + name: "setClaimConditions", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + ]; + }); + var ua = N((Hrn, Rkt) => { + Rkt.exports = [ + { + inputs: [], + name: "nextTokenIdToMint", + outputs: [{ internalType: "uint256", name: "", type: "uint256" }], + stateMutability: "view", + type: "function", + }, + ]; + }); + var la = N((zrn, Bkt) => { + Bkt.exports = [ + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "address", + name: "mintedTo", + type: "address", + }, + { + indexed: !0, + internalType: "uint256", + name: "tokenIdMinted", + type: "uint256", + }, + { indexed: !1, internalType: "string", name: "uri", type: "string" }, + { + indexed: !1, + internalType: "uint256", + name: "quantityMinted", + type: "uint256", + }, + ], + name: "TokensMinted", + type: "event", + }, + { + inputs: [ + { internalType: "address", name: "to", type: "address" }, + { internalType: "uint256", name: "tokenId", type: "uint256" }, + { internalType: "string", name: "uri", type: "string" }, + { internalType: "uint256", name: "amount", type: "uint256" }, + ], + name: "mintTo", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + ]; + }); + var da = N((jrn, Nkt) => { + Nkt.exports = [ + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "address", + name: "signer", + type: "address", + }, + { + indexed: !0, + internalType: "address", + name: "mintedTo", + type: "address", + }, + { + indexed: !0, + internalType: "uint256", + name: "tokenIdMinted", + type: "uint256", + }, + { + components: [ + { internalType: "address", name: "to", type: "address" }, + { + internalType: "address", + name: "royaltyRecipient", + type: "address", + }, + { internalType: "uint256", name: "royaltyBps", type: "uint256" }, + { + internalType: "address", + name: "primarySaleRecipient", + type: "address", + }, + { internalType: "uint256", name: "tokenId", type: "uint256" }, + { internalType: "string", name: "uri", type: "string" }, + { internalType: "uint256", name: "quantity", type: "uint256" }, + { + internalType: "uint256", + name: "pricePerToken", + type: "uint256", + }, + { internalType: "address", name: "currency", type: "address" }, + { + internalType: "uint128", + name: "validityStartTimestamp", + type: "uint128", + }, + { + internalType: "uint128", + name: "validityEndTimestamp", + type: "uint128", + }, + { internalType: "bytes32", name: "uid", type: "bytes32" }, + ], + indexed: !1, + internalType: "struct ISignatureMintERC1155.MintRequest", + name: "mintRequest", + type: "tuple", + }, + ], + name: "TokensMintedWithSignature", + type: "event", + }, + { + inputs: [ + { + components: [ + { internalType: "address", name: "to", type: "address" }, + { + internalType: "address", + name: "royaltyRecipient", + type: "address", + }, + { internalType: "uint256", name: "royaltyBps", type: "uint256" }, + { + internalType: "address", + name: "primarySaleRecipient", + type: "address", + }, + { internalType: "uint256", name: "tokenId", type: "uint256" }, + { internalType: "string", name: "uri", type: "string" }, + { internalType: "uint256", name: "quantity", type: "uint256" }, + { + internalType: "uint256", + name: "pricePerToken", + type: "uint256", + }, + { internalType: "address", name: "currency", type: "address" }, + { + internalType: "uint128", + name: "validityStartTimestamp", + type: "uint128", + }, + { + internalType: "uint128", + name: "validityEndTimestamp", + type: "uint128", + }, + { internalType: "bytes32", name: "uid", type: "bytes32" }, + ], + internalType: "struct ISignatureMintERC1155.MintRequest", + name: "req", + type: "tuple", + }, + { internalType: "bytes", name: "signature", type: "bytes" }, + ], + name: "mintWithSignature", + outputs: [{ internalType: "address", name: "signer", type: "address" }], + stateMutability: "payable", + type: "function", + }, + { + inputs: [ + { + components: [ + { internalType: "address", name: "to", type: "address" }, + { + internalType: "address", + name: "royaltyRecipient", + type: "address", + }, + { internalType: "uint256", name: "royaltyBps", type: "uint256" }, + { + internalType: "address", + name: "primarySaleRecipient", + type: "address", + }, + { internalType: "uint256", name: "tokenId", type: "uint256" }, + { internalType: "string", name: "uri", type: "string" }, + { internalType: "uint256", name: "quantity", type: "uint256" }, + { + internalType: "uint256", + name: "pricePerToken", + type: "uint256", + }, + { internalType: "address", name: "currency", type: "address" }, + { + internalType: "uint128", + name: "validityStartTimestamp", + type: "uint128", + }, + { + internalType: "uint128", + name: "validityEndTimestamp", + type: "uint128", + }, + { internalType: "bytes32", name: "uid", type: "bytes32" }, + ], + internalType: "struct ISignatureMintERC1155.MintRequest", + name: "req", + type: "tuple", + }, + { internalType: "bytes", name: "signature", type: "bytes" }, + ], + name: "verify", + outputs: [ + { internalType: "bool", name: "success", type: "bool" }, + { internalType: "address", name: "signer", type: "address" }, + ], + stateMutability: "view", + type: "function", + }, + ]; + }); + var pa = N((Krn, Okt) => { + Okt.exports = [ + { + inputs: [ + { internalType: "address", name: "forwarder", type: "address" }, + ], + name: "isTrustedForwarder", + outputs: [{ internalType: "bool", name: "", type: "bool" }], + stateMutability: "view", + type: "function", + }, + ]; + }); + var ha = N((Vrn, Lkt) => { + Lkt.exports = [ + { + anonymous: !1, + inputs: [ + { + indexed: !1, + internalType: "string", + name: "prevURI", + type: "string", + }, + { + indexed: !1, + internalType: "string", + name: "newURI", + type: "string", + }, + ], + name: "AppURIUpdated", + type: "event", + }, + { + inputs: [], + name: "appURI", + outputs: [{ internalType: "string", name: "", type: "string" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [{ internalType: "string", name: "_uri", type: "string" }], + name: "setAppURI", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + ]; + }); + var fa = N((Grn, Dkt) => { + Dkt.exports = [ + { + anonymous: !1, + inputs: [ + { + indexed: !1, + internalType: "string", + name: "prevURI", + type: "string", + }, + { + indexed: !1, + internalType: "string", + name: "newURI", + type: "string", + }, + ], + name: "ContractURIUpdated", + type: "event", + }, + { + inputs: [], + name: "contractURI", + outputs: [{ internalType: "string", name: "", type: "string" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [{ internalType: "string", name: "_uri", type: "string" }], + name: "setContractURI", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + ]; + }); + var ma = N((Yrn, qkt) => { + qkt.exports = [ + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "uint256", + name: "listingId", + type: "uint256", + }, + { + indexed: !0, + internalType: "address", + name: "buyer", + type: "address", + }, + { indexed: !1, internalType: "bool", name: "approved", type: "bool" }, + ], + name: "BuyerApprovedForListing", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "address", + name: "listingCreator", + type: "address", + }, + { + indexed: !0, + internalType: "uint256", + name: "listingId", + type: "uint256", + }, + ], + name: "CancelledListing", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "uint256", + name: "listingId", + type: "uint256", + }, + { + indexed: !0, + internalType: "address", + name: "currency", + type: "address", + }, + { + indexed: !1, + internalType: "uint256", + name: "pricePerToken", + type: "uint256", + }, + ], + name: "CurrencyApprovedForListing", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "address", + name: "listingCreator", + type: "address", + }, + { + indexed: !0, + internalType: "uint256", + name: "listingId", + type: "uint256", + }, + { + indexed: !0, + internalType: "address", + name: "assetContract", + type: "address", + }, + { + components: [ + { internalType: "uint256", name: "listingId", type: "uint256" }, + { + internalType: "address", + name: "listingCreator", + type: "address", + }, + { + internalType: "address", + name: "assetContract", + type: "address", + }, + { internalType: "uint256", name: "tokenId", type: "uint256" }, + { internalType: "uint256", name: "quantity", type: "uint256" }, + { internalType: "address", name: "currency", type: "address" }, + { + internalType: "uint256", + name: "pricePerToken", + type: "uint256", + }, + { + internalType: "uint128", + name: "startTimestamp", + type: "uint128", + }, + { + internalType: "uint128", + name: "endTimestamp", + type: "uint128", + }, + { internalType: "bool", name: "reserved", type: "bool" }, + { + internalType: "enum IDirectListings.TokenType", + name: "tokenType", + type: "uint8", + }, + { + internalType: "enum IDirectListings.Status", + name: "status", + type: "uint8", + }, + ], + indexed: !1, + internalType: "struct IDirectListings.Listing", + name: "listing", + type: "tuple", + }, + ], + name: "NewListing", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "address", + name: "listingCreator", + type: "address", + }, + { + indexed: !0, + internalType: "uint256", + name: "listingId", + type: "uint256", + }, + { + indexed: !0, + internalType: "address", + name: "assetContract", + type: "address", + }, + { + indexed: !1, + internalType: "uint256", + name: "tokenId", + type: "uint256", + }, + { + indexed: !1, + internalType: "address", + name: "buyer", + type: "address", + }, + { + indexed: !1, + internalType: "uint256", + name: "quantityBought", + type: "uint256", + }, + { + indexed: !1, + internalType: "uint256", + name: "totalPricePaid", + type: "uint256", + }, + ], + name: "NewSale", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "address", + name: "listingCreator", + type: "address", + }, + { + indexed: !0, + internalType: "uint256", + name: "listingId", + type: "uint256", + }, + { + indexed: !0, + internalType: "address", + name: "assetContract", + type: "address", + }, + { + components: [ + { internalType: "uint256", name: "listingId", type: "uint256" }, + { + internalType: "address", + name: "listingCreator", + type: "address", + }, + { + internalType: "address", + name: "assetContract", + type: "address", + }, + { internalType: "uint256", name: "tokenId", type: "uint256" }, + { internalType: "uint256", name: "quantity", type: "uint256" }, + { internalType: "address", name: "currency", type: "address" }, + { + internalType: "uint256", + name: "pricePerToken", + type: "uint256", + }, + { + internalType: "uint128", + name: "startTimestamp", + type: "uint128", + }, + { + internalType: "uint128", + name: "endTimestamp", + type: "uint128", + }, + { internalType: "bool", name: "reserved", type: "bool" }, + { + internalType: "enum IDirectListings.TokenType", + name: "tokenType", + type: "uint8", + }, + { + internalType: "enum IDirectListings.Status", + name: "status", + type: "uint8", + }, + ], + indexed: !1, + internalType: "struct IDirectListings.Listing", + name: "listing", + type: "tuple", + }, + ], + name: "UpdatedListing", + type: "event", + }, + { + inputs: [ + { internalType: "uint256", name: "_listingId", type: "uint256" }, + { internalType: "address", name: "_buyer", type: "address" }, + { internalType: "bool", name: "_toApprove", type: "bool" }, + ], + name: "approveBuyerForListing", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "uint256", name: "_listingId", type: "uint256" }, + { internalType: "address", name: "_currency", type: "address" }, + { + internalType: "uint256", + name: "_pricePerTokenInCurrency", + type: "uint256", + }, + ], + name: "approveCurrencyForListing", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "uint256", name: "_listingId", type: "uint256" }, + { internalType: "address", name: "_buyFor", type: "address" }, + { internalType: "uint256", name: "_quantity", type: "uint256" }, + { internalType: "address", name: "_currency", type: "address" }, + { + internalType: "uint256", + name: "_expectedTotalPrice", + type: "uint256", + }, + ], + name: "buyFromListing", + outputs: [], + stateMutability: "payable", + type: "function", + }, + { + inputs: [ + { internalType: "uint256", name: "_listingId", type: "uint256" }, + ], + name: "cancelListing", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + components: [ + { + internalType: "address", + name: "assetContract", + type: "address", + }, + { internalType: "uint256", name: "tokenId", type: "uint256" }, + { internalType: "uint256", name: "quantity", type: "uint256" }, + { internalType: "address", name: "currency", type: "address" }, + { + internalType: "uint256", + name: "pricePerToken", + type: "uint256", + }, + { + internalType: "uint128", + name: "startTimestamp", + type: "uint128", + }, + { + internalType: "uint128", + name: "endTimestamp", + type: "uint128", + }, + { internalType: "bool", name: "reserved", type: "bool" }, + ], + internalType: "struct IDirectListings.ListingParameters", + name: "_params", + type: "tuple", + }, + ], + name: "createListing", + outputs: [ + { internalType: "uint256", name: "listingId", type: "uint256" }, + ], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "uint256", name: "_startId", type: "uint256" }, + { internalType: "uint256", name: "_endId", type: "uint256" }, + ], + name: "getAllListings", + outputs: [ + { + components: [ + { internalType: "uint256", name: "listingId", type: "uint256" }, + { + internalType: "address", + name: "listingCreator", + type: "address", + }, + { + internalType: "address", + name: "assetContract", + type: "address", + }, + { internalType: "uint256", name: "tokenId", type: "uint256" }, + { internalType: "uint256", name: "quantity", type: "uint256" }, + { internalType: "address", name: "currency", type: "address" }, + { + internalType: "uint256", + name: "pricePerToken", + type: "uint256", + }, + { + internalType: "uint128", + name: "startTimestamp", + type: "uint128", + }, + { + internalType: "uint128", + name: "endTimestamp", + type: "uint128", + }, + { internalType: "bool", name: "reserved", type: "bool" }, + { + internalType: "enum IDirectListings.TokenType", + name: "tokenType", + type: "uint8", + }, + { + internalType: "enum IDirectListings.Status", + name: "status", + type: "uint8", + }, + ], + internalType: "struct IDirectListings.Listing[]", + name: "listings", + type: "tuple[]", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "uint256", name: "_startId", type: "uint256" }, + { internalType: "uint256", name: "_endId", type: "uint256" }, + ], + name: "getAllValidListings", + outputs: [ + { + components: [ + { internalType: "uint256", name: "listingId", type: "uint256" }, + { + internalType: "address", + name: "listingCreator", + type: "address", + }, + { + internalType: "address", + name: "assetContract", + type: "address", + }, + { internalType: "uint256", name: "tokenId", type: "uint256" }, + { internalType: "uint256", name: "quantity", type: "uint256" }, + { internalType: "address", name: "currency", type: "address" }, + { + internalType: "uint256", + name: "pricePerToken", + type: "uint256", + }, + { + internalType: "uint128", + name: "startTimestamp", + type: "uint128", + }, + { + internalType: "uint128", + name: "endTimestamp", + type: "uint128", + }, + { internalType: "bool", name: "reserved", type: "bool" }, + { + internalType: "enum IDirectListings.TokenType", + name: "tokenType", + type: "uint8", + }, + { + internalType: "enum IDirectListings.Status", + name: "status", + type: "uint8", + }, + ], + internalType: "struct IDirectListings.Listing[]", + name: "listings", + type: "tuple[]", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "uint256", name: "_listingId", type: "uint256" }, + ], + name: "getListing", + outputs: [ + { + components: [ + { internalType: "uint256", name: "listingId", type: "uint256" }, + { + internalType: "address", + name: "listingCreator", + type: "address", + }, + { + internalType: "address", + name: "assetContract", + type: "address", + }, + { internalType: "uint256", name: "tokenId", type: "uint256" }, + { internalType: "uint256", name: "quantity", type: "uint256" }, + { internalType: "address", name: "currency", type: "address" }, + { + internalType: "uint256", + name: "pricePerToken", + type: "uint256", + }, + { + internalType: "uint128", + name: "startTimestamp", + type: "uint128", + }, + { + internalType: "uint128", + name: "endTimestamp", + type: "uint128", + }, + { internalType: "bool", name: "reserved", type: "bool" }, + { + internalType: "enum IDirectListings.TokenType", + name: "tokenType", + type: "uint8", + }, + { + internalType: "enum IDirectListings.Status", + name: "status", + type: "uint8", + }, + ], + internalType: "struct IDirectListings.Listing", + name: "listing", + type: "tuple", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "totalListings", + outputs: [{ internalType: "uint256", name: "", type: "uint256" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "uint256", name: "_listingId", type: "uint256" }, + { + components: [ + { + internalType: "address", + name: "assetContract", + type: "address", + }, + { internalType: "uint256", name: "tokenId", type: "uint256" }, + { internalType: "uint256", name: "quantity", type: "uint256" }, + { internalType: "address", name: "currency", type: "address" }, + { + internalType: "uint256", + name: "pricePerToken", + type: "uint256", + }, + { + internalType: "uint128", + name: "startTimestamp", + type: "uint128", + }, + { + internalType: "uint128", + name: "endTimestamp", + type: "uint128", + }, + { internalType: "bool", name: "reserved", type: "bool" }, + ], + internalType: "struct IDirectListings.ListingParameters", + name: "_params", + type: "tuple", + }, + ], + name: "updateListing", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + ]; + }); + var ya = N(($rn, Fkt) => { + Fkt.exports = [ + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "uint256", + name: "auctionId", + type: "uint256", + }, + { + indexed: !0, + internalType: "address", + name: "assetContract", + type: "address", + }, + { + indexed: !0, + internalType: "address", + name: "closer", + type: "address", + }, + { + indexed: !1, + internalType: "uint256", + name: "tokenId", + type: "uint256", + }, + { + indexed: !1, + internalType: "address", + name: "auctionCreator", + type: "address", + }, + { + indexed: !1, + internalType: "address", + name: "winningBidder", + type: "address", + }, + ], + name: "AuctionClosed", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "address", + name: "auctionCreator", + type: "address", + }, + { + indexed: !0, + internalType: "uint256", + name: "auctionId", + type: "uint256", + }, + ], + name: "CancelledAuction", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "address", + name: "auctionCreator", + type: "address", + }, + { + indexed: !0, + internalType: "uint256", + name: "auctionId", + type: "uint256", + }, + { + indexed: !0, + internalType: "address", + name: "assetContract", + type: "address", + }, + { + components: [ + { internalType: "uint256", name: "auctionId", type: "uint256" }, + { + internalType: "address", + name: "auctionCreator", + type: "address", + }, + { + internalType: "address", + name: "assetContract", + type: "address", + }, + { internalType: "uint256", name: "tokenId", type: "uint256" }, + { internalType: "uint256", name: "quantity", type: "uint256" }, + { internalType: "address", name: "currency", type: "address" }, + { + internalType: "uint256", + name: "minimumBidAmount", + type: "uint256", + }, + { + internalType: "uint256", + name: "buyoutBidAmount", + type: "uint256", + }, + { + internalType: "uint64", + name: "timeBufferInSeconds", + type: "uint64", + }, + { internalType: "uint64", name: "bidBufferBps", type: "uint64" }, + { + internalType: "uint64", + name: "startTimestamp", + type: "uint64", + }, + { internalType: "uint64", name: "endTimestamp", type: "uint64" }, + { + internalType: "enum IEnglishAuctions.TokenType", + name: "tokenType", + type: "uint8", + }, + { + internalType: "enum IEnglishAuctions.Status", + name: "status", + type: "uint8", + }, + ], + indexed: !1, + internalType: "struct IEnglishAuctions.Auction", + name: "auction", + type: "tuple", + }, + ], + name: "NewAuction", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "uint256", + name: "auctionId", + type: "uint256", + }, + { + indexed: !0, + internalType: "address", + name: "bidder", + type: "address", + }, + { + indexed: !0, + internalType: "address", + name: "assetContract", + type: "address", + }, + { + indexed: !1, + internalType: "uint256", + name: "bidAmount", + type: "uint256", + }, + { + components: [ + { internalType: "uint256", name: "auctionId", type: "uint256" }, + { + internalType: "address", + name: "auctionCreator", + type: "address", + }, + { + internalType: "address", + name: "assetContract", + type: "address", + }, + { internalType: "uint256", name: "tokenId", type: "uint256" }, + { internalType: "uint256", name: "quantity", type: "uint256" }, + { internalType: "address", name: "currency", type: "address" }, + { + internalType: "uint256", + name: "minimumBidAmount", + type: "uint256", + }, + { + internalType: "uint256", + name: "buyoutBidAmount", + type: "uint256", + }, + { + internalType: "uint64", + name: "timeBufferInSeconds", + type: "uint64", + }, + { internalType: "uint64", name: "bidBufferBps", type: "uint64" }, + { + internalType: "uint64", + name: "startTimestamp", + type: "uint64", + }, + { internalType: "uint64", name: "endTimestamp", type: "uint64" }, + { + internalType: "enum IEnglishAuctions.TokenType", + name: "tokenType", + type: "uint8", + }, + { + internalType: "enum IEnglishAuctions.Status", + name: "status", + type: "uint8", + }, + ], + indexed: !1, + internalType: "struct IEnglishAuctions.Auction", + name: "auction", + type: "tuple", + }, + ], + name: "NewBid", + type: "event", + }, + { + inputs: [ + { internalType: "uint256", name: "_auctionId", type: "uint256" }, + { internalType: "uint256", name: "_bidAmount", type: "uint256" }, + ], + name: "bidInAuction", + outputs: [], + stateMutability: "payable", + type: "function", + }, + { + inputs: [ + { internalType: "uint256", name: "_auctionId", type: "uint256" }, + ], + name: "cancelAuction", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "uint256", name: "_auctionId", type: "uint256" }, + ], + name: "collectAuctionPayout", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "uint256", name: "_auctionId", type: "uint256" }, + ], + name: "collectAuctionTokens", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + components: [ + { + internalType: "address", + name: "assetContract", + type: "address", + }, + { internalType: "uint256", name: "tokenId", type: "uint256" }, + { internalType: "uint256", name: "quantity", type: "uint256" }, + { internalType: "address", name: "currency", type: "address" }, + { + internalType: "uint256", + name: "minimumBidAmount", + type: "uint256", + }, + { + internalType: "uint256", + name: "buyoutBidAmount", + type: "uint256", + }, + { + internalType: "uint64", + name: "timeBufferInSeconds", + type: "uint64", + }, + { internalType: "uint64", name: "bidBufferBps", type: "uint64" }, + { + internalType: "uint64", + name: "startTimestamp", + type: "uint64", + }, + { internalType: "uint64", name: "endTimestamp", type: "uint64" }, + ], + internalType: "struct IEnglishAuctions.AuctionParameters", + name: "_params", + type: "tuple", + }, + ], + name: "createAuction", + outputs: [ + { internalType: "uint256", name: "auctionId", type: "uint256" }, + ], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "uint256", name: "_startId", type: "uint256" }, + { internalType: "uint256", name: "_endId", type: "uint256" }, + ], + name: "getAllAuctions", + outputs: [ + { + components: [ + { internalType: "uint256", name: "auctionId", type: "uint256" }, + { + internalType: "address", + name: "auctionCreator", + type: "address", + }, + { + internalType: "address", + name: "assetContract", + type: "address", + }, + { internalType: "uint256", name: "tokenId", type: "uint256" }, + { internalType: "uint256", name: "quantity", type: "uint256" }, + { internalType: "address", name: "currency", type: "address" }, + { + internalType: "uint256", + name: "minimumBidAmount", + type: "uint256", + }, + { + internalType: "uint256", + name: "buyoutBidAmount", + type: "uint256", + }, + { + internalType: "uint64", + name: "timeBufferInSeconds", + type: "uint64", + }, + { internalType: "uint64", name: "bidBufferBps", type: "uint64" }, + { + internalType: "uint64", + name: "startTimestamp", + type: "uint64", + }, + { internalType: "uint64", name: "endTimestamp", type: "uint64" }, + { + internalType: "enum IEnglishAuctions.TokenType", + name: "tokenType", + type: "uint8", + }, + { + internalType: "enum IEnglishAuctions.Status", + name: "status", + type: "uint8", + }, + ], + internalType: "struct IEnglishAuctions.Auction[]", + name: "auctions", + type: "tuple[]", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "uint256", name: "_startId", type: "uint256" }, + { internalType: "uint256", name: "_endId", type: "uint256" }, + ], + name: "getAllValidAuctions", + outputs: [ + { + components: [ + { internalType: "uint256", name: "auctionId", type: "uint256" }, + { + internalType: "address", + name: "auctionCreator", + type: "address", + }, + { + internalType: "address", + name: "assetContract", + type: "address", + }, + { internalType: "uint256", name: "tokenId", type: "uint256" }, + { internalType: "uint256", name: "quantity", type: "uint256" }, + { internalType: "address", name: "currency", type: "address" }, + { + internalType: "uint256", + name: "minimumBidAmount", + type: "uint256", + }, + { + internalType: "uint256", + name: "buyoutBidAmount", + type: "uint256", + }, + { + internalType: "uint64", + name: "timeBufferInSeconds", + type: "uint64", + }, + { internalType: "uint64", name: "bidBufferBps", type: "uint64" }, + { + internalType: "uint64", + name: "startTimestamp", + type: "uint64", + }, + { internalType: "uint64", name: "endTimestamp", type: "uint64" }, + { + internalType: "enum IEnglishAuctions.TokenType", + name: "tokenType", + type: "uint8", + }, + { + internalType: "enum IEnglishAuctions.Status", + name: "status", + type: "uint8", + }, + ], + internalType: "struct IEnglishAuctions.Auction[]", + name: "auctions", + type: "tuple[]", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "uint256", name: "_auctionId", type: "uint256" }, + ], + name: "getAuction", + outputs: [ + { + components: [ + { internalType: "uint256", name: "auctionId", type: "uint256" }, + { + internalType: "address", + name: "auctionCreator", + type: "address", + }, + { + internalType: "address", + name: "assetContract", + type: "address", + }, + { internalType: "uint256", name: "tokenId", type: "uint256" }, + { internalType: "uint256", name: "quantity", type: "uint256" }, + { internalType: "address", name: "currency", type: "address" }, + { + internalType: "uint256", + name: "minimumBidAmount", + type: "uint256", + }, + { + internalType: "uint256", + name: "buyoutBidAmount", + type: "uint256", + }, + { + internalType: "uint64", + name: "timeBufferInSeconds", + type: "uint64", + }, + { internalType: "uint64", name: "bidBufferBps", type: "uint64" }, + { + internalType: "uint64", + name: "startTimestamp", + type: "uint64", + }, + { internalType: "uint64", name: "endTimestamp", type: "uint64" }, + { + internalType: "enum IEnglishAuctions.TokenType", + name: "tokenType", + type: "uint8", + }, + { + internalType: "enum IEnglishAuctions.Status", + name: "status", + type: "uint8", + }, + ], + internalType: "struct IEnglishAuctions.Auction", + name: "auction", + type: "tuple", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "uint256", name: "_auctionId", type: "uint256" }, + ], + name: "getWinningBid", + outputs: [ + { internalType: "address", name: "bidder", type: "address" }, + { internalType: "address", name: "currency", type: "address" }, + { internalType: "uint256", name: "bidAmount", type: "uint256" }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "uint256", name: "_auctionId", type: "uint256" }, + ], + name: "isAuctionExpired", + outputs: [{ internalType: "bool", name: "", type: "bool" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "uint256", name: "_auctionId", type: "uint256" }, + { internalType: "uint256", name: "_bidAmount", type: "uint256" }, + ], + name: "isNewWinningBid", + outputs: [{ internalType: "bool", name: "", type: "bool" }], + stateMutability: "view", + type: "function", + }, + ]; + }); + var ga = N((Jrn, Wkt) => { + Wkt.exports = [ + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "address", + name: "offeror", + type: "address", + }, + { + indexed: !0, + internalType: "uint256", + name: "offerId", + type: "uint256", + }, + { + indexed: !0, + internalType: "address", + name: "assetContract", + type: "address", + }, + { + indexed: !1, + internalType: "uint256", + name: "tokenId", + type: "uint256", + }, + { + indexed: !1, + internalType: "address", + name: "seller", + type: "address", + }, + { + indexed: !1, + internalType: "uint256", + name: "quantityBought", + type: "uint256", + }, + { + indexed: !1, + internalType: "uint256", + name: "totalPricePaid", + type: "uint256", + }, + ], + name: "AcceptedOffer", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "address", + name: "offeror", + type: "address", + }, + { + indexed: !0, + internalType: "uint256", + name: "offerId", + type: "uint256", + }, + ], + name: "CancelledOffer", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "address", + name: "offeror", + type: "address", + }, + { + indexed: !0, + internalType: "uint256", + name: "offerId", + type: "uint256", + }, + { + indexed: !0, + internalType: "address", + name: "assetContract", + type: "address", + }, + { + components: [ + { internalType: "uint256", name: "offerId", type: "uint256" }, + { internalType: "address", name: "offeror", type: "address" }, + { + internalType: "address", + name: "assetContract", + type: "address", + }, + { internalType: "uint256", name: "tokenId", type: "uint256" }, + { internalType: "uint256", name: "quantity", type: "uint256" }, + { internalType: "address", name: "currency", type: "address" }, + { internalType: "uint256", name: "totalPrice", type: "uint256" }, + { + internalType: "uint256", + name: "expirationTimestamp", + type: "uint256", + }, + { + internalType: "enum IOffers.TokenType", + name: "tokenType", + type: "uint8", + }, + { + internalType: "enum IOffers.Status", + name: "status", + type: "uint8", + }, + ], + indexed: !1, + internalType: "struct IOffers.Offer", + name: "offer", + type: "tuple", + }, + ], + name: "NewOffer", + type: "event", + }, + { + inputs: [ + { internalType: "uint256", name: "_offerId", type: "uint256" }, + ], + name: "acceptOffer", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "uint256", name: "_offerId", type: "uint256" }, + ], + name: "cancelOffer", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "uint256", name: "_startId", type: "uint256" }, + { internalType: "uint256", name: "_endId", type: "uint256" }, + ], + name: "getAllOffers", + outputs: [ + { + components: [ + { internalType: "uint256", name: "offerId", type: "uint256" }, + { internalType: "address", name: "offeror", type: "address" }, + { + internalType: "address", + name: "assetContract", + type: "address", + }, + { internalType: "uint256", name: "tokenId", type: "uint256" }, + { internalType: "uint256", name: "quantity", type: "uint256" }, + { internalType: "address", name: "currency", type: "address" }, + { internalType: "uint256", name: "totalPrice", type: "uint256" }, + { + internalType: "uint256", + name: "expirationTimestamp", + type: "uint256", + }, + { + internalType: "enum IOffers.TokenType", + name: "tokenType", + type: "uint8", + }, + { + internalType: "enum IOffers.Status", + name: "status", + type: "uint8", + }, + ], + internalType: "struct IOffers.Offer[]", + name: "offers", + type: "tuple[]", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "uint256", name: "_startId", type: "uint256" }, + { internalType: "uint256", name: "_endId", type: "uint256" }, + ], + name: "getAllValidOffers", + outputs: [ + { + components: [ + { internalType: "uint256", name: "offerId", type: "uint256" }, + { internalType: "address", name: "offeror", type: "address" }, + { + internalType: "address", + name: "assetContract", + type: "address", + }, + { internalType: "uint256", name: "tokenId", type: "uint256" }, + { internalType: "uint256", name: "quantity", type: "uint256" }, + { internalType: "address", name: "currency", type: "address" }, + { internalType: "uint256", name: "totalPrice", type: "uint256" }, + { + internalType: "uint256", + name: "expirationTimestamp", + type: "uint256", + }, + { + internalType: "enum IOffers.TokenType", + name: "tokenType", + type: "uint8", + }, + { + internalType: "enum IOffers.Status", + name: "status", + type: "uint8", + }, + ], + internalType: "struct IOffers.Offer[]", + name: "offers", + type: "tuple[]", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "uint256", name: "_offerId", type: "uint256" }, + ], + name: "getOffer", + outputs: [ + { + components: [ + { internalType: "uint256", name: "offerId", type: "uint256" }, + { internalType: "address", name: "offeror", type: "address" }, + { + internalType: "address", + name: "assetContract", + type: "address", + }, + { internalType: "uint256", name: "tokenId", type: "uint256" }, + { internalType: "uint256", name: "quantity", type: "uint256" }, + { internalType: "address", name: "currency", type: "address" }, + { internalType: "uint256", name: "totalPrice", type: "uint256" }, + { + internalType: "uint256", + name: "expirationTimestamp", + type: "uint256", + }, + { + internalType: "enum IOffers.TokenType", + name: "tokenType", + type: "uint8", + }, + { + internalType: "enum IOffers.Status", + name: "status", + type: "uint8", + }, + ], + internalType: "struct IOffers.Offer", + name: "offer", + type: "tuple", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { + components: [ + { + internalType: "address", + name: "assetContract", + type: "address", + }, + { internalType: "uint256", name: "tokenId", type: "uint256" }, + { internalType: "uint256", name: "quantity", type: "uint256" }, + { internalType: "address", name: "currency", type: "address" }, + { internalType: "uint256", name: "totalPrice", type: "uint256" }, + { + internalType: "uint256", + name: "expirationTimestamp", + type: "uint256", + }, + ], + internalType: "struct IOffers.OfferParams", + name: "_params", + type: "tuple", + }, + ], + name: "makeOffer", + outputs: [ + { internalType: "uint256", name: "offerId", type: "uint256" }, + ], + stateMutability: "nonpayable", + type: "function", + }, + ]; + }); + var ba = N((Zrn, Ukt) => { + Ukt.exports = [ + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "uint256", + name: "packId", + type: "uint256", + }, + { + indexed: !1, + internalType: "address", + name: "recipient", + type: "address", + }, + { + indexed: !1, + internalType: "uint256", + name: "totalPacksCreated", + type: "uint256", + }, + ], + name: "PackCreated", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "address", + name: "opener", + type: "address", + }, + { + indexed: !0, + internalType: "uint256", + name: "packId", + type: "uint256", + }, + { + indexed: !1, + internalType: "uint256", + name: "amountToOpen", + type: "uint256", + }, + { + indexed: !1, + internalType: "uint256", + name: "requestId", + type: "uint256", + }, + ], + name: "PackOpenRequested", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "uint256", + name: "packId", + type: "uint256", + }, + { + indexed: !0, + internalType: "address", + name: "opener", + type: "address", + }, + { + indexed: !1, + internalType: "uint256", + name: "numOfPacksOpened", + type: "uint256", + }, + { + components: [ + { + internalType: "address", + name: "assetContract", + type: "address", + }, + { + internalType: "enum ITokenBundle.TokenType", + name: "tokenType", + type: "uint8", + }, + { internalType: "uint256", name: "tokenId", type: "uint256" }, + { internalType: "uint256", name: "totalAmount", type: "uint256" }, + ], + indexed: !1, + internalType: "struct ITokenBundle.Token[]", + name: "rewardUnitsDistributed", + type: "tuple[]", + }, + ], + name: "PackOpened", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "uint256", + name: "packId", + type: "uint256", + }, + { + indexed: !0, + internalType: "uint256", + name: "requestId", + type: "uint256", + }, + ], + name: "PackRandomnessFulfilled", + type: "event", + }, + { + inputs: [{ internalType: "address", name: "_opener", type: "address" }], + name: "canClaimRewards", + outputs: [{ internalType: "bool", name: "", type: "bool" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "claimRewards", + outputs: [ + { + components: [ + { + internalType: "address", + name: "assetContract", + type: "address", + }, + { + internalType: "enum ITokenBundle.TokenType", + name: "tokenType", + type: "uint8", + }, + { internalType: "uint256", name: "tokenId", type: "uint256" }, + { internalType: "uint256", name: "totalAmount", type: "uint256" }, + ], + internalType: "struct ITokenBundle.Token[]", + name: "rewardUnits", + type: "tuple[]", + }, + ], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + components: [ + { + internalType: "address", + name: "assetContract", + type: "address", + }, + { + internalType: "enum ITokenBundle.TokenType", + name: "tokenType", + type: "uint8", + }, + { internalType: "uint256", name: "tokenId", type: "uint256" }, + { internalType: "uint256", name: "totalAmount", type: "uint256" }, + ], + internalType: "struct ITokenBundle.Token[]", + name: "contents", + type: "tuple[]", + }, + { + internalType: "uint256[]", + name: "numOfRewardUnits", + type: "uint256[]", + }, + { internalType: "string", name: "packUri", type: "string" }, + { + internalType: "uint128", + name: "openStartTimestamp", + type: "uint128", + }, + { + internalType: "uint128", + name: "amountDistributedPerOpen", + type: "uint128", + }, + { internalType: "address", name: "recipient", type: "address" }, + ], + name: "createPack", + outputs: [ + { internalType: "uint256", name: "packId", type: "uint256" }, + { internalType: "uint256", name: "packTotalSupply", type: "uint256" }, + ], + stateMutability: "payable", + type: "function", + }, + { + inputs: [ + { internalType: "uint256", name: "packId", type: "uint256" }, + { internalType: "uint256", name: "amountToOpen", type: "uint256" }, + ], + name: "openPack", + outputs: [ + { internalType: "uint256", name: "requestId", type: "uint256" }, + ], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "uint256", name: "_packId", type: "uint256" }, + { internalType: "uint256", name: "_amountToOpen", type: "uint256" }, + { internalType: "uint32", name: "_callBackGasLimit", type: "uint32" }, + ], + name: "openPackAndClaimRewards", + outputs: [{ internalType: "uint256", name: "", type: "uint256" }], + stateMutability: "nonpayable", + type: "function", + }, + ]; + }); + var va = N((Qrn, Hkt) => { + Hkt.exports = [ + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "bytes32", + name: "role", + type: "bytes32", + }, + { + indexed: !0, + internalType: "bytes32", + name: "previousAdminRole", + type: "bytes32", + }, + { + indexed: !0, + internalType: "bytes32", + name: "newAdminRole", + type: "bytes32", + }, + ], + name: "RoleAdminChanged", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "bytes32", + name: "role", + type: "bytes32", + }, + { + indexed: !0, + internalType: "address", + name: "account", + type: "address", + }, + { + indexed: !0, + internalType: "address", + name: "sender", + type: "address", + }, + ], + name: "RoleGranted", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "bytes32", + name: "role", + type: "bytes32", + }, + { + indexed: !0, + internalType: "address", + name: "account", + type: "address", + }, + { + indexed: !0, + internalType: "address", + name: "sender", + type: "address", + }, + ], + name: "RoleRevoked", + type: "event", + }, + { + inputs: [{ internalType: "bytes32", name: "role", type: "bytes32" }], + name: "getRoleAdmin", + outputs: [{ internalType: "bytes32", name: "", type: "bytes32" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "bytes32", name: "role", type: "bytes32" }, + { internalType: "address", name: "account", type: "address" }, + ], + name: "grantRole", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "bytes32", name: "role", type: "bytes32" }, + { internalType: "address", name: "account", type: "address" }, + ], + name: "hasRole", + outputs: [{ internalType: "bool", name: "", type: "bool" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "bytes32", name: "role", type: "bytes32" }, + { internalType: "address", name: "account", type: "address" }, + ], + name: "renounceRole", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "bytes32", name: "role", type: "bytes32" }, + { internalType: "address", name: "account", type: "address" }, + ], + name: "revokeRole", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + ]; + }); + var wa = N((Xrn, zkt) => { + zkt.exports = [ + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "bytes32", + name: "role", + type: "bytes32", + }, + { + indexed: !0, + internalType: "bytes32", + name: "previousAdminRole", + type: "bytes32", + }, + { + indexed: !0, + internalType: "bytes32", + name: "newAdminRole", + type: "bytes32", + }, + ], + name: "RoleAdminChanged", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "bytes32", + name: "role", + type: "bytes32", + }, + { + indexed: !0, + internalType: "address", + name: "account", + type: "address", + }, + { + indexed: !0, + internalType: "address", + name: "sender", + type: "address", + }, + ], + name: "RoleGranted", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "bytes32", + name: "role", + type: "bytes32", + }, + { + indexed: !0, + internalType: "address", + name: "account", + type: "address", + }, + { + indexed: !0, + internalType: "address", + name: "sender", + type: "address", + }, + ], + name: "RoleRevoked", + type: "event", + }, + { + inputs: [{ internalType: "bytes32", name: "role", type: "bytes32" }], + name: "getRoleAdmin", + outputs: [{ internalType: "bytes32", name: "", type: "bytes32" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "bytes32", name: "role", type: "bytes32" }, + { internalType: "uint256", name: "index", type: "uint256" }, + ], + name: "getRoleMember", + outputs: [{ internalType: "address", name: "", type: "address" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [{ internalType: "bytes32", name: "role", type: "bytes32" }], + name: "getRoleMemberCount", + outputs: [{ internalType: "uint256", name: "", type: "uint256" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "bytes32", name: "role", type: "bytes32" }, + { internalType: "address", name: "account", type: "address" }, + ], + name: "grantRole", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "bytes32", name: "role", type: "bytes32" }, + { internalType: "address", name: "account", type: "address" }, + ], + name: "hasRole", + outputs: [{ internalType: "bool", name: "", type: "bool" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "bytes32", name: "role", type: "bytes32" }, + { internalType: "address", name: "account", type: "address" }, + ], + name: "renounceRole", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "bytes32", name: "role", type: "bytes32" }, + { internalType: "address", name: "account", type: "address" }, + ], + name: "revokeRole", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + ]; + }); + var _a = N((enn, jkt) => { + jkt.exports = [ + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "address", + name: "platformFeeRecipient", + type: "address", + }, + { + indexed: !1, + internalType: "uint256", + name: "platformFeeBps", + type: "uint256", + }, + ], + name: "PlatformFeeInfoUpdated", + type: "event", + }, + { + inputs: [], + name: "getPlatformFeeInfo", + outputs: [ + { internalType: "address", name: "", type: "address" }, + { internalType: "uint16", name: "", type: "uint16" }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { + internalType: "address", + name: "_platformFeeRecipient", + type: "address", + }, + { internalType: "uint256", name: "_platformFeeBps", type: "uint256" }, + ], + name: "setPlatformFeeInfo", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + ]; + }); + var xa = N((tnn, Kkt) => { + Kkt.exports = [ + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "address", + name: "recipient", + type: "address", + }, + ], + name: "PrimarySaleRecipientUpdated", + type: "event", + }, + { + inputs: [], + name: "primarySaleRecipient", + outputs: [{ internalType: "address", name: "", type: "address" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "_saleRecipient", type: "address" }, + ], + name: "setPrimarySaleRecipient", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + ]; + }); + var Ta = N((rnn, Vkt) => { + Vkt.exports = [ + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "bytes4", + name: "functionSelector", + type: "bytes4", + }, + { + indexed: !0, + internalType: "address", + name: "pluginAddress", + type: "address", + }, + ], + name: "PluginAdded", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "bytes4", + name: "functionSelector", + type: "bytes4", + }, + { + indexed: !0, + internalType: "address", + name: "pluginAddress", + type: "address", + }, + ], + name: "PluginRemoved", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "bytes4", + name: "functionSelector", + type: "bytes4", + }, + { + indexed: !0, + internalType: "string", + name: "functionSignature", + type: "string", + }, + { + indexed: !0, + internalType: "address", + name: "pluginAddress", + type: "address", + }, + ], + name: "PluginSet", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "bytes4", + name: "functionSelector", + type: "bytes4", + }, + { + indexed: !0, + internalType: "address", + name: "oldPluginAddress", + type: "address", + }, + { + indexed: !0, + internalType: "address", + name: "newPluginAddress", + type: "address", + }, + ], + name: "PluginUpdated", + type: "event", + }, + { + inputs: [ + { + components: [ + { + internalType: "bytes4", + name: "functionSelector", + type: "bytes4", + }, + { + internalType: "string", + name: "functionSignature", + type: "string", + }, + { + internalType: "address", + name: "pluginAddress", + type: "address", + }, + ], + internalType: "struct IPluginMap.Plugin", + name: "plugin", + type: "tuple", + }, + ], + name: "addPlugin", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "pluginAddress", type: "address" }, + ], + name: "getAllFunctionsOfPlugin", + outputs: [{ internalType: "bytes4[]", name: "", type: "bytes4[]" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "getAllPlugins", + outputs: [ + { + components: [ + { + internalType: "bytes4", + name: "functionSelector", + type: "bytes4", + }, + { + internalType: "string", + name: "functionSignature", + type: "string", + }, + { + internalType: "address", + name: "pluginAddress", + type: "address", + }, + ], + internalType: "struct IPluginMap.Plugin[]", + name: "", + type: "tuple[]", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "bytes4", name: "functionSelector", type: "bytes4" }, + ], + name: "getPluginForFunction", + outputs: [{ internalType: "address", name: "", type: "address" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "bytes4", name: "functionSelector", type: "bytes4" }, + ], + name: "removePlugin", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + components: [ + { + internalType: "bytes4", + name: "functionSelector", + type: "bytes4", + }, + { + internalType: "string", + name: "functionSignature", + type: "string", + }, + { + internalType: "address", + name: "pluginAddress", + type: "address", + }, + ], + internalType: "struct IPluginMap.Plugin", + name: "plugin", + type: "tuple", + }, + ], + name: "updatePlugin", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + ]; + }); + var Ea = N((nnn, Gkt) => { + Gkt.exports = [ + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "address", + name: "newRoyaltyRecipient", + type: "address", + }, + { + indexed: !1, + internalType: "uint256", + name: "newRoyaltyBps", + type: "uint256", + }, + ], + name: "DefaultRoyalty", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "uint256", + name: "tokenId", + type: "uint256", + }, + { + indexed: !0, + internalType: "address", + name: "royaltyRecipient", + type: "address", + }, + { + indexed: !1, + internalType: "uint256", + name: "royaltyBps", + type: "uint256", + }, + ], + name: "RoyaltyForToken", + type: "event", + }, + { + inputs: [], + name: "getDefaultRoyaltyInfo", + outputs: [ + { internalType: "address", name: "", type: "address" }, + { internalType: "uint16", name: "", type: "uint16" }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [{ internalType: "uint256", name: "tokenId", type: "uint256" }], + name: "getRoyaltyInfoForToken", + outputs: [ + { internalType: "address", name: "", type: "address" }, + { internalType: "uint16", name: "", type: "uint16" }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "uint256", name: "tokenId", type: "uint256" }, + { internalType: "uint256", name: "salePrice", type: "uint256" }, + ], + name: "royaltyInfo", + outputs: [ + { internalType: "address", name: "receiver", type: "address" }, + { internalType: "uint256", name: "royaltyAmount", type: "uint256" }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { + internalType: "address", + name: "_royaltyRecipient", + type: "address", + }, + { internalType: "uint256", name: "_royaltyBps", type: "uint256" }, + ], + name: "setDefaultRoyaltyInfo", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "uint256", name: "tokenId", type: "uint256" }, + { internalType: "address", name: "recipient", type: "address" }, + { internalType: "uint256", name: "bps", type: "uint256" }, + ], + name: "setRoyaltyInfoForToken", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "bytes4", name: "interfaceId", type: "bytes4" }, + ], + name: "supportsInterface", + outputs: [{ internalType: "bool", name: "", type: "bool" }], + stateMutability: "view", + type: "function", + }, + ]; + }); + var Ca = N((ann, Ykt) => { + Ykt.exports = [ + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "address", + name: "prevOwner", + type: "address", + }, + { + indexed: !0, + internalType: "address", + name: "newOwner", + type: "address", + }, + ], + name: "OwnerUpdated", + type: "event", + }, + { + inputs: [], + name: "owner", + outputs: [{ internalType: "address", name: "", type: "address" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "_newOwner", type: "address" }, + ], + name: "setOwner", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + ]; + }); + var vn = N((_f, Wbe) => { + _(); + x(); + var Fbe = typeof self < "u" ? self : _f, + eS = (function () { + function r() { + (this.fetch = !1), (this.DOMException = Fbe.DOMException); + } + return (r.prototype = Fbe), new r(); + })(); + (function (r) { + var e = (function (t) { + var n = { + searchParams: "URLSearchParams" in r, + iterable: "Symbol" in r && "iterator" in Symbol, + blob: + "FileReader" in r && + "Blob" in r && + (function () { + try { + return new Blob(), !0; + } catch { + return !1; + } + })(), + formData: "FormData" in r, + arrayBuffer: "ArrayBuffer" in r, + }; + function a(g) { + return g && DataView.prototype.isPrototypeOf(g); + } + if (n.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 (g) { + return g && i.indexOf(Object.prototype.toString.call(g)) > -1; + }; + function c(g) { + if ( + (typeof g != "string" && (g = String(g)), + /[^a-z0-9\-#$%&'*+.^_`|~]/i.test(g)) + ) + throw new TypeError("Invalid character in header field name"); + return g.toLowerCase(); + } + function l(g) { + return typeof g != "string" && (g = String(g)), g; + } + function d(g) { + var o = { + next: function () { + var p = g.shift(); + return { done: p === void 0, value: p }; + }, + }; + return ( + n.iterable && + (o[Symbol.iterator] = function () { + return o; + }), + o + ); + } + function m(g) { + (this.map = {}), + g instanceof m + ? g.forEach(function (o, p) { + this.append(p, o); + }, this) + : Array.isArray(g) + ? g.forEach(function (o) { + this.append(o[0], o[1]); + }, this) + : g && + Object.getOwnPropertyNames(g).forEach(function (o) { + this.append(o, g[o]); + }, this); + } + (m.prototype.append = function (g, o) { + (g = c(g)), (o = l(o)); + var p = this.map[g]; + this.map[g] = p ? p + ", " + o : o; + }), + (m.prototype.delete = function (g) { + delete this.map[c(g)]; + }), + (m.prototype.get = function (g) { + return (g = c(g)), this.has(g) ? this.map[g] : null; + }), + (m.prototype.has = function (g) { + return this.map.hasOwnProperty(c(g)); + }), + (m.prototype.set = function (g, o) { + this.map[c(g)] = l(o); + }), + (m.prototype.forEach = function (g, o) { + for (var p in this.map) + this.map.hasOwnProperty(p) && g.call(o, this.map[p], p, this); + }), + (m.prototype.keys = function () { + var g = []; + return ( + this.forEach(function (o, p) { + g.push(p); + }), + d(g) + ); + }), + (m.prototype.values = function () { + var g = []; + return ( + this.forEach(function (o) { + g.push(o); + }), + d(g) + ); + }), + (m.prototype.entries = function () { + var g = []; + return ( + this.forEach(function (o, p) { + g.push([p, o]); + }), + d(g) + ); + }), + n.iterable && (m.prototype[Symbol.iterator] = m.prototype.entries); + function w(g) { + if (g.bodyUsed) return Promise.reject(new TypeError("Already read")); + g.bodyUsed = !0; + } + function C(g) { + return new Promise(function (o, p) { + (g.onload = function () { + o(g.result); + }), + (g.onerror = function () { + p(g.error); + }); + }); + } + function I(g) { + var o = new FileReader(), + p = C(o); + return o.readAsArrayBuffer(g), p; + } + function k(g) { + var o = new FileReader(), + p = C(o); + return o.readAsText(g), p; + } + function O(g) { + for ( + var o = new Uint8Array(g), p = new Array(o.length), y = 0; + y < o.length; + y++ + ) + p[y] = String.fromCharCode(o[y]); + return p.join(""); + } + function D(g) { + if (g.slice) return g.slice(0); + var o = new Uint8Array(g.byteLength); + return o.set(new Uint8Array(g)), o.buffer; + } + function W() { + return ( + (this.bodyUsed = !1), + (this._initBody = function (g) { + (this._bodyInit = g), + g + ? typeof g == "string" + ? (this._bodyText = g) + : n.blob && Blob.prototype.isPrototypeOf(g) + ? (this._bodyBlob = g) + : n.formData && FormData.prototype.isPrototypeOf(g) + ? (this._bodyFormData = g) + : n.searchParams && + URLSearchParams.prototype.isPrototypeOf(g) + ? (this._bodyText = g.toString()) + : n.arrayBuffer && n.blob && a(g) + ? ((this._bodyArrayBuffer = D(g.buffer)), + (this._bodyInit = new Blob([this._bodyArrayBuffer]))) + : n.arrayBuffer && + (ArrayBuffer.prototype.isPrototypeOf(g) || s(g)) + ? (this._bodyArrayBuffer = D(g)) + : (this._bodyText = g = Object.prototype.toString.call(g)) + : (this._bodyText = ""), + this.headers.get("content-type") || + (typeof g == "string" + ? this.headers.set( + "content-type", + "text/plain;charset=UTF-8" + ) + : this._bodyBlob && this._bodyBlob.type + ? this.headers.set("content-type", this._bodyBlob.type) + : n.searchParams && + URLSearchParams.prototype.isPrototypeOf(g) && + this.headers.set( + "content-type", + "application/x-www-form-urlencoded;charset=UTF-8" + )); + }), + n.blob && + ((this.blob = function () { + var g = w(this); + if (g) return g; + if (this._bodyBlob) return Promise.resolve(this._bodyBlob); + if (this._bodyArrayBuffer) + return Promise.resolve(new Blob([this._bodyArrayBuffer])); + if (this._bodyFormData) + throw new Error("could not read FormData body as blob"); + return Promise.resolve(new Blob([this._bodyText])); + }), + (this.arrayBuffer = function () { + return this._bodyArrayBuffer + ? w(this) || Promise.resolve(this._bodyArrayBuffer) + : this.blob().then(I); + })), + (this.text = function () { + var g = w(this); + if (g) return g; + if (this._bodyBlob) return k(this._bodyBlob); + if (this._bodyArrayBuffer) + return Promise.resolve(O(this._bodyArrayBuffer)); + if (this._bodyFormData) + throw new Error("could not read FormData body as text"); + return Promise.resolve(this._bodyText); + }), + n.formData && + (this.formData = function () { + return this.text().then(te); + }), + (this.json = function () { + return this.text().then(JSON.parse); + }), + this + ); + } + var H = ["DELETE", "GET", "HEAD", "OPTIONS", "POST", "PUT"]; + function j(g) { + var o = g.toUpperCase(); + return H.indexOf(o) > -1 ? o : g; + } + function V(g, o) { + o = o || {}; + var p = o.body; + if (g instanceof V) { + if (g.bodyUsed) throw new TypeError("Already read"); + (this.url = g.url), + (this.credentials = g.credentials), + o.headers || (this.headers = new m(g.headers)), + (this.method = g.method), + (this.mode = g.mode), + (this.signal = g.signal), + !p && + g._bodyInit != null && + ((p = g._bodyInit), (g.bodyUsed = !0)); + } else this.url = String(g); + if ( + ((this.credentials = + o.credentials || this.credentials || "same-origin"), + (o.headers || !this.headers) && (this.headers = new m(o.headers)), + (this.method = j(o.method || this.method || "GET")), + (this.mode = o.mode || this.mode || null), + (this.signal = o.signal || this.signal), + (this.referrer = null), + (this.method === "GET" || this.method === "HEAD") && p) + ) + throw new TypeError("Body not allowed for GET or HEAD requests"); + this._initBody(p); + } + V.prototype.clone = function () { + return new V(this, { body: this._bodyInit }); + }; + function te(g) { + var o = new FormData(); + return ( + g + .trim() + .split("&") + .forEach(function (p) { + if (p) { + var y = p.split("="), + h = y.shift().replace(/\+/g, " "), + b = y.join("=").replace(/\+/g, " "); + o.append(decodeURIComponent(h), decodeURIComponent(b)); + } + }), + o + ); + } + function $(g) { + var o = new m(), + p = g.replace(/\r?\n[\t ]+/g, " "); + return ( + p.split(/\r?\n/).forEach(function (y) { + var h = y.split(":"), + b = h.shift().trim(); + if (b) { + var T = h.join(":").trim(); + o.append(b, T); + } + }), + o + ); + } + W.call(V.prototype); + function ae(g, o) { + o || (o = {}), + (this.type = "default"), + (this.status = o.status === void 0 ? 200 : o.status), + (this.ok = this.status >= 200 && this.status < 300), + (this.statusText = "statusText" in o ? o.statusText : "OK"), + (this.headers = new m(o.headers)), + (this.url = o.url || ""), + this._initBody(g); + } + W.call(ae.prototype), + (ae.prototype.clone = function () { + return new ae(this._bodyInit, { + status: this.status, + statusText: this.statusText, + headers: new m(this.headers), + url: this.url, + }); + }), + (ae.error = function () { + var g = new ae(null, { status: 0, statusText: "" }); + return (g.type = "error"), g; + }); + var Y = [301, 302, 303, 307, 308]; + (ae.redirect = function (g, o) { + if (Y.indexOf(o) === -1) throw new RangeError("Invalid status code"); + return new ae(null, { status: o, headers: { location: g } }); + }), + (t.DOMException = r.DOMException); + try { + new t.DOMException(); + } catch { + (t.DOMException = function (o, p) { + (this.message = o), (this.name = p); + var y = Error(o); + this.stack = y.stack; + }), + (t.DOMException.prototype = Object.create(Error.prototype)), + (t.DOMException.prototype.constructor = t.DOMException); + } + function K(g, o) { + return new Promise(function (p, y) { + var h = new V(g, o); + if (h.signal && h.signal.aborted) + return y(new t.DOMException("Aborted", "AbortError")); + var b = new XMLHttpRequest(); + function T() { + b.abort(); + } + (b.onload = function () { + var E = { + status: b.status, + statusText: b.statusText, + headers: $(b.getAllResponseHeaders() || ""), + }; + E.url = + "responseURL" in b + ? b.responseURL + : E.headers.get("X-Request-URL"); + var f = "response" in b ? b.response : b.responseText; + p(new ae(f, E)); + }), + (b.onerror = function () { + y(new TypeError("Network request failed")); + }), + (b.ontimeout = function () { + y(new TypeError("Network request failed")); + }), + (b.onabort = function () { + y(new t.DOMException("Aborted", "AbortError")); + }), + b.open(h.method, h.url, !0), + h.credentials === "include" + ? (b.withCredentials = !0) + : h.credentials === "omit" && (b.withCredentials = !1), + "responseType" in b && n.blob && (b.responseType = "blob"), + h.headers.forEach(function (E, f) { + b.setRequestHeader(f, E); + }), + h.signal && + (h.signal.addEventListener("abort", T), + (b.onreadystatechange = function () { + b.readyState === 4 && + h.signal.removeEventListener("abort", T); + })), + b.send(typeof h._bodyInit > "u" ? null : h._bodyInit); + }); + } + return ( + (K.polyfill = !0), + r.fetch || + ((r.fetch = K), + (r.Headers = m), + (r.Request = V), + (r.Response = ae)), + (t.Headers = m), + (t.Request = V), + (t.Response = ae), + (t.fetch = K), + Object.defineProperty(t, "__esModule", { value: !0 }), + t + ); + })({}); + })(eS); + eS.fetch.ponyfill = !0; + delete eS.fetch.polyfill; + var aw = eS; + _f = aw.fetch; + _f.default = aw.fetch; + _f.fetch = aw.fetch; + _f.Headers = aw.Headers; + _f.Request = aw.Request; + _f.Response = aw.Response; + Wbe.exports = _f; + }); + var v4e = N((q) => { + "use strict"; + _(); + x(); + Object.defineProperty(q, "__esModule", { value: !0 }); + var $kt = { + name: "Ethereum Mainnet", + chain: "ETH", + icon: { + url: "ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/ethereum/512.png", + height: 512, + width: 512, + format: "png", + sizes: [512, 256, 128, 64, 32, 16], + }, + rpc: [ + "https://ethereum.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://eth-mainnet.g.alchemy.com/v2/${ALCHEMY_API_KEY}", + "https://mainnet.infura.io/v3/${INFURA_API_KEY}", + "wss://mainnet.infura.io/ws/v3/${INFURA_API_KEY}", + "https://api.mycryptoapi.com/eth", + "https://cloudflare-eth.com", + ], + features: [{ name: "EIP1559" }, { name: "EIP155" }], + faucets: [], + nativeCurrency: { name: "Ether", symbol: "ETH", decimals: 18 }, + infoURL: "https://ethereum.org", + shortName: "eth", + chainId: 1, + networkId: 1, + slip44: 60, + ens: { registry: "0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e" }, + explorers: [ + { + name: "etherscan", + url: "https://etherscan.io", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "ethereum", + }, + Jkt = { + name: "Expanse Network", + chain: "EXP", + rpc: [ + "https://expanse-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://node.expanse.tech", + ], + faucets: [], + nativeCurrency: { + name: "Expanse Network Ether", + symbol: "EXP", + decimals: 18, + }, + infoURL: "https://expanse.tech", + shortName: "exp", + chainId: 2, + networkId: 1, + slip44: 40, + testnet: !1, + slug: "expanse-network", + }, + Zkt = { + name: "Ropsten", + title: "Ethereum Testnet Ropsten", + chain: "ETH", + rpc: [ + "https://ropsten.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://ropsten.infura.io/v3/${INFURA_API_KEY}", + "wss://ropsten.infura.io/ws/v3/${INFURA_API_KEY}", + ], + faucets: [ + "http://fauceth.komputing.org?chain=3&address=${ADDRESS}", + "https://faucet.ropsten.be?${ADDRESS}", + ], + nativeCurrency: { name: "Ropsten Ether", symbol: "ETH", decimals: 18 }, + infoURL: "https://github.com/ethereum/ropsten", + shortName: "rop", + chainId: 3, + networkId: 3, + ens: { registry: "0x112234455c3a32fd11230c42e7bccd4a84e02010" }, + explorers: [ + { + name: "etherscan", + url: "https://ropsten.etherscan.io", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "ropsten", + }, + Qkt = { + name: "Rinkeby", + title: "Ethereum Testnet Rinkeby", + chain: "ETH", + rpc: [ + "https://rinkeby.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rinkeby.infura.io/v3/${INFURA_API_KEY}", + "wss://rinkeby.infura.io/ws/v3/${INFURA_API_KEY}", + ], + faucets: [ + "http://fauceth.komputing.org?chain=4&address=${ADDRESS}", + "https://faucet.rinkeby.io", + ], + nativeCurrency: { name: "Rinkeby Ether", symbol: "ETH", decimals: 18 }, + infoURL: "https://www.rinkeby.io", + shortName: "rin", + chainId: 4, + networkId: 4, + ens: { registry: "0xe7410170f87102df0055eb195163a03b7f2bff4a" }, + explorers: [ + { + name: "etherscan-rinkeby", + url: "https://rinkeby.etherscan.io", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "rinkeby", + }, + Xkt = { + name: "Goerli", + title: "Ethereum Testnet Goerli", + chain: "ETH", + rpc: [ + "https://goerli.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://eth-goerli.g.alchemy.com/v2/${ALCHEMY_API_KEY}", + "https://goerli.infura.io/v3/${INFURA_API_KEY}", + "wss://goerli.infura.io/v3/${INFURA_API_KEY}", + "https://rpc.goerli.mudit.blog/", + ], + faucets: [ + "https://faucet.goerli.mudit.blog", + "https://goerli-faucet.slock.it?address=${ADDRESS}", + "http://fauceth.komputing.org?chain=5&address=${ADDRESS}", + ], + nativeCurrency: { name: "Goerli Ether", symbol: "ETH", decimals: 18 }, + infoURL: "https://goerli.net/#about", + shortName: "gor", + chainId: 5, + networkId: 5, + ens: { registry: "0x112234455c3a32fd11230c42e7bccd4a84e02010" }, + explorers: [ + { + name: "etherscan-goerli", + url: "https://goerli.etherscan.io", + standard: "EIP3091", + }, + ], + icon: { + url: "ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/ethereum/512.png", + height: 512, + width: 512, + format: "png", + sizes: [512, 256, 128, 64, 32, 16], + }, + testnet: !0, + slug: "goerli", + }, + eSt = { + name: "Ethereum Classic Testnet Kotti", + chain: "ETC", + rpc: [ + "https://ethereum-classic-testnet-kotti.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://www.ethercluster.com/kotti", + ], + faucets: [], + nativeCurrency: { name: "Kotti Ether", symbol: "KOT", decimals: 18 }, + infoURL: "https://explorer.jade.builders/?network=kotti", + shortName: "kot", + chainId: 6, + networkId: 6, + testnet: !0, + slug: "ethereum-classic-testnet-kotti", + }, + tSt = { + name: "ThaiChain", + chain: "TCH", + rpc: [ + "https://thaichain.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.dome.cloud", + "https://rpc.thaichain.org", + ], + faucets: [], + features: [{ name: "EIP155" }, { name: "EIP1559" }], + nativeCurrency: { + name: "ThaiChain Ether", + symbol: "TCH", + decimals: 18, + }, + infoURL: "https://thaichain.io", + shortName: "tch", + chainId: 7, + networkId: 7, + explorers: [ + { + name: "Thaichain Explorer", + url: "https://exp.thaichain.org", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "thaichain", + }, + rSt = { + name: "Ubiq", + chain: "UBQ", + rpc: [ + "https://ubiq.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.octano.dev", + "https://pyrus2.ubiqscan.io", + ], + faucets: [], + nativeCurrency: { name: "Ubiq Ether", symbol: "UBQ", decimals: 18 }, + infoURL: "https://ubiqsmart.com", + shortName: "ubq", + chainId: 8, + networkId: 8, + slip44: 108, + explorers: [ + { name: "ubiqscan", url: "https://ubiqscan.io", standard: "EIP3091" }, + ], + testnet: !1, + slug: "ubiq", + }, + nSt = { + name: "Ubiq Network Testnet", + chain: "UBQ", + rpc: [], + faucets: [], + nativeCurrency: { + name: "Ubiq Testnet Ether", + symbol: "TUBQ", + decimals: 18, + }, + infoURL: "https://ethersocial.org", + shortName: "tubq", + chainId: 9, + networkId: 2, + testnet: !0, + slug: "ubiq-network-testnet", + }, + aSt = { + name: "Optimism", + chain: "ETH", + rpc: [ + "https://optimism.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://opt-mainnet.g.alchemy.com/v2/${ALCHEMY_API_KEY}", + "https://optimism-mainnet.infura.io/v3/${INFURA_API_KEY}", + "https://mainnet.optimism.io/", + ], + faucets: [], + nativeCurrency: { name: "Ether", symbol: "ETH", decimals: 18 }, + infoURL: "https://optimism.io", + shortName: "oeth", + chainId: 10, + networkId: 10, + explorers: [ + { + name: "etherscan", + url: "https://optimistic.etherscan.io", + standard: "EIP3091", + }, + ], + icon: { + url: "ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/optimism/512.png", + height: 512, + width: 512, + format: "png", + sizes: [512, 256, 128, 64, 32, 16], + }, + testnet: !1, + slug: "optimism", + }, + iSt = { + name: "Metadium Mainnet", + chain: "META", + rpc: [ + "https://metadium.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://api.metadium.com/prod", + ], + faucets: [], + nativeCurrency: { + name: "Metadium Mainnet Ether", + symbol: "META", + decimals: 18, + }, + infoURL: "https://metadium.com", + shortName: "meta", + chainId: 11, + networkId: 11, + slip44: 916, + testnet: !1, + slug: "metadium", + }, + sSt = { + name: "Metadium Testnet", + chain: "META", + rpc: [ + "https://metadium-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://api.metadium.com/dev", + ], + faucets: [], + nativeCurrency: { + name: "Metadium Testnet Ether", + symbol: "KAL", + decimals: 18, + }, + infoURL: "https://metadium.com", + shortName: "kal", + chainId: 12, + networkId: 12, + testnet: !0, + slug: "metadium-testnet", + }, + oSt = { + name: "Diode Testnet Staging", + chain: "DIODE", + rpc: [ + "https://diode-testnet-staging.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://staging.diode.io:8443/", + "wss://staging.diode.io:8443/ws", + ], + faucets: [], + nativeCurrency: { + name: "Staging Diodes", + symbol: "sDIODE", + decimals: 18, + }, + infoURL: "https://diode.io/staging", + shortName: "dstg", + chainId: 13, + networkId: 13, + testnet: !0, + slug: "diode-testnet-staging", + }, + cSt = { + name: "Flare Mainnet", + chain: "FLR", + icon: { + url: "ipfs://QmevAevHxRkK2zVct2Eu6Y7s38YC4SmiAiw9X7473pVtmL", + width: 382, + height: 382, + format: "png", + }, + rpc: [ + "https://flare.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://flare-api.flare.network/ext/C/rpc", + ], + faucets: [], + nativeCurrency: { name: "Flare", symbol: "FLR", decimals: 18 }, + infoURL: "https://flare.xyz", + shortName: "flr", + chainId: 14, + networkId: 14, + explorers: [ + { + name: "blockscout", + url: "https://flare-explorer.flare.network", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "flare", + }, + uSt = { + name: "Diode Prenet", + chain: "DIODE", + rpc: [ + "https://diode-prenet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://prenet.diode.io:8443/", + "wss://prenet.diode.io:8443/ws", + ], + faucets: [], + nativeCurrency: { name: "Diodes", symbol: "DIODE", decimals: 18 }, + infoURL: "https://diode.io/prenet", + shortName: "diode", + chainId: 15, + networkId: 15, + testnet: !1, + slug: "diode-prenet", + }, + lSt = { + name: "Flare Testnet Coston", + chain: "FLR", + icon: { + url: "ipfs://QmW7Ljv2eLQ1poRrhJBaVWJBF1TyfZ8QYxDeELRo6sssrj", + width: 382, + height: 382, + format: "png", + }, + rpc: [ + "https://flare-testnet-coston.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://coston-api.flare.network/ext/bc/C/rpc", + ], + faucets: [ + "https://faucet.towolabs.com", + "https://fauceth.komputing.org?chain=16&address=${ADDRESS}", + ], + nativeCurrency: { name: "Coston Flare", symbol: "CFLR", decimals: 18 }, + infoURL: "https://flare.xyz", + shortName: "cflr", + chainId: 16, + networkId: 16, + explorers: [ + { + name: "blockscout", + url: "https://coston-explorer.flare.network", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "flare-testnet-coston", + }, + dSt = { + name: "ThaiChain 2.0 ThaiFi", + chain: "TCH", + rpc: [ + "https://thaichain-2-0-thaifi.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.thaifi.com", + ], + faucets: [], + nativeCurrency: { name: "Thaifi Ether", symbol: "TFI", decimals: 18 }, + infoURL: "https://exp.thaifi.com", + shortName: "tfi", + chainId: 17, + networkId: 17, + testnet: !1, + slug: "thaichain-2-0-thaifi", + }, + pSt = { + name: "ThunderCore Testnet", + chain: "TST", + rpc: [ + "https://thundercore-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://testnet-rpc.thundercore.com", + ], + faucets: ["https://faucet-testnet.thundercore.com"], + nativeCurrency: { + name: "ThunderCore Testnet Token", + symbol: "TST", + decimals: 18, + }, + infoURL: "https://thundercore.com", + shortName: "TST", + chainId: 18, + networkId: 18, + explorers: [ + { + name: "thundercore-blockscout-testnet", + url: "https://explorer-testnet.thundercore.com", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "thundercore-testnet", + }, + hSt = { + name: "Songbird Canary-Network", + chain: "SGB", + icon: { + url: "ipfs://QmXyvnrZY8FUxSULfnKKA99sAEkjAHtvhRx5WeHixgaEdu", + width: 382, + height: 382, + format: "png", + }, + rpc: [ + "https://songbird-canary-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://songbird-api.flare.network/ext/C/rpc", + "https://sgb.ftso.com.au/ext/bc/C/rpc", + "https://sgb.lightft.so/rpc", + "https://sgb-rpc.ftso.eu", + ], + faucets: [], + nativeCurrency: { name: "Songbird", symbol: "SGB", decimals: 18 }, + infoURL: "https://flare.xyz", + shortName: "sgb", + chainId: 19, + networkId: 19, + explorers: [ + { + name: "blockscout", + url: "https://songbird-explorer.flare.network", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "songbird-canary-network", + }, + fSt = { + name: "Elastos Smart Chain", + chain: "ETH", + rpc: [ + "https://elastos-smart-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://api.elastos.io/eth", + ], + faucets: ["https://faucet.elastos.org/"], + nativeCurrency: { name: "Elastos", symbol: "ELA", decimals: 18 }, + infoURL: "https://www.elastos.org/", + shortName: "esc", + chainId: 20, + networkId: 20, + explorers: [ + { + name: "elastos esc explorer", + url: "https://esc.elastos.io", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "elastos-smart-chain", + }, + mSt = { + name: "Elastos Smart Chain Testnet", + chain: "ETH", + rpc: [ + "https://elastos-smart-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://api-testnet.elastos.io/eth", + ], + faucets: ["https://esc-faucet.elastos.io/"], + nativeCurrency: { name: "Elastos", symbol: "tELA", decimals: 18 }, + infoURL: "https://www.elastos.org/", + shortName: "esct", + chainId: 21, + networkId: 21, + explorers: [ + { + name: "elastos esc explorer", + url: "https://esc-testnet.elastos.io", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "elastos-smart-chain-testnet", + }, + ySt = { + name: "ELA-DID-Sidechain Mainnet", + chain: "ETH", + rpc: [], + faucets: [], + nativeCurrency: { name: "Elastos", symbol: "ELA", decimals: 18 }, + infoURL: "https://www.elastos.org/", + shortName: "eladid", + chainId: 22, + networkId: 22, + testnet: !1, + slug: "ela-did-sidechain", + }, + gSt = { + name: "ELA-DID-Sidechain Testnet", + chain: "ETH", + rpc: [], + faucets: [], + nativeCurrency: { name: "Elastos", symbol: "tELA", decimals: 18 }, + infoURL: "https://elaeth.io/", + shortName: "eladidt", + chainId: 23, + networkId: 23, + testnet: !0, + slug: "ela-did-sidechain-testnet", + }, + bSt = { + name: "KardiaChain Mainnet", + chain: "KAI", + icon: { + url: "ipfs://QmXoHaZXJevc59GuzEgBhwRSH6kio1agMRvL8bD93pARRV", + format: "png", + width: 297, + height: 297, + }, + rpc: [ + "https://kardiachain.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.kardiachain.io", + ], + faucets: [], + nativeCurrency: { name: "KardiaChain", symbol: "KAI", decimals: 18 }, + infoURL: "https://kardiachain.io", + shortName: "kardiachain", + chainId: 24, + networkId: 0, + redFlags: ["reusedChainId"], + testnet: !1, + slug: "kardiachain", + }, + vSt = { + name: "Cronos Mainnet Beta", + chain: "CRO", + rpc: [ + "https://cronos-beta.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://evm.cronos.org", + ], + features: [{ name: "EIP1559" }], + faucets: [], + nativeCurrency: { name: "Cronos", symbol: "CRO", decimals: 18 }, + infoURL: "https://cronos.org/", + shortName: "cro", + chainId: 25, + networkId: 25, + explorers: [ + { + name: "Cronos Explorer", + url: "https://cronoscan.com", + standard: "none", + }, + ], + testnet: !1, + slug: "cronos-beta", + }, + wSt = { + name: "Genesis L1 testnet", + chain: "genesis", + rpc: [ + "https://genesis-l1-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://testrpc.genesisl1.org", + ], + faucets: [], + nativeCurrency: { name: "L1 testcoin", symbol: "L1test", decimals: 18 }, + infoURL: "https://www.genesisl1.com", + shortName: "L1test", + chainId: 26, + networkId: 26, + explorers: [ + { + name: "Genesis L1 testnet explorer", + url: "https://testnet.genesisl1.org", + standard: "none", + }, + ], + testnet: !0, + slug: "genesis-l1-testnet", + }, + _St = { + name: "ShibaChain", + chain: "SHIB", + rpc: [ + "https://shibachain.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.shibachain.net", + ], + faucets: [], + nativeCurrency: { + name: "SHIBA INU COIN", + symbol: "SHIB", + decimals: 18, + }, + infoURL: "https://www.shibachain.net", + shortName: "shib", + chainId: 27, + networkId: 27, + explorers: [ + { + name: "Shiba Explorer", + url: "https://exp.shibachain.net", + standard: "none", + }, + ], + testnet: !1, + slug: "shibachain", + }, + xSt = { + name: "Boba Network Rinkeby Testnet", + chain: "ETH", + rpc: [ + "https://boba-network-rinkeby-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rinkeby.boba.network/", + ], + faucets: [], + nativeCurrency: { name: "Ether", symbol: "ETH", decimals: 18 }, + infoURL: "https://boba.network", + shortName: "BobaRinkeby", + chainId: 28, + networkId: 28, + explorers: [ + { + name: "Blockscout", + url: "https://blockexplorer.rinkeby.boba.network", + standard: "none", + }, + ], + parent: { + type: "L2", + chain: "eip155-4", + bridges: [{ url: "https://gateway.rinkeby.boba.network" }], + }, + testnet: !0, + slug: "boba-network-rinkeby-testnet", + }, + TSt = { + name: "Genesis L1", + chain: "genesis", + rpc: [ + "https://genesis-l1.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.genesisl1.org", + ], + faucets: [], + nativeCurrency: { name: "L1 coin", symbol: "L1", decimals: 18 }, + infoURL: "https://www.genesisl1.com", + shortName: "L1", + chainId: 29, + networkId: 29, + explorers: [ + { + name: "Genesis L1 blockchain explorer", + url: "https://explorer.genesisl1.org", + standard: "none", + }, + ], + testnet: !1, + slug: "genesis-l1", + }, + ESt = { + name: "RSK Mainnet", + chain: "RSK", + rpc: [ + "https://rsk.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://public-node.rsk.co", + "https://mycrypto.rsk.co", + ], + faucets: ["https://faucet.rsk.co/"], + nativeCurrency: { name: "Smart Bitcoin", symbol: "RBTC", decimals: 18 }, + infoURL: "https://rsk.co", + shortName: "rsk", + chainId: 30, + networkId: 30, + slip44: 137, + explorers: [ + { + name: "RSK Explorer", + url: "https://explorer.rsk.co", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "rsk", + }, + CSt = { + name: "RSK Testnet", + chain: "RSK", + rpc: [ + "https://rsk-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://public-node.testnet.rsk.co", + "https://mycrypto.testnet.rsk.co", + ], + faucets: ["https://faucet.rsk.co/"], + nativeCurrency: { + name: "Testnet Smart Bitcoin", + symbol: "tRBTC", + decimals: 18, + }, + infoURL: "https://rsk.co", + shortName: "trsk", + chainId: 31, + networkId: 31, + explorers: [ + { + name: "RSK Testnet Explorer", + url: "https://explorer.testnet.rsk.co", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "rsk-testnet", + }, + ISt = { + name: "GoodData Testnet", + chain: "GooD", + rpc: [ + "https://gooddata-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://test2.goodata.io", + ], + faucets: [], + nativeCurrency: { + name: "GoodData Testnet Ether", + symbol: "GooD", + decimals: 18, + }, + infoURL: "https://www.goodata.org", + shortName: "GooDT", + chainId: 32, + networkId: 32, + testnet: !0, + slug: "gooddata-testnet", + }, + ASt = { + name: "GoodData Mainnet", + chain: "GooD", + rpc: [ + "https://gooddata.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.goodata.io", + ], + faucets: [], + nativeCurrency: { + name: "GoodData Mainnet Ether", + symbol: "GooD", + decimals: 18, + }, + infoURL: "https://www.goodata.org", + shortName: "GooD", + chainId: 33, + networkId: 33, + testnet: !1, + slug: "gooddata", + }, + kSt = { + name: "Dithereum Testnet", + chain: "DTH", + icon: { + url: "ipfs://QmSHN5GtRGpMMpszSn1hF47ZSLRLqrLxWsQ48YYdJPyjLf", + width: 500, + height: 500, + format: "png", + }, + rpc: [ + "https://dithereum-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://node-testnet.dithereum.io", + ], + faucets: ["https://faucet.dithereum.org"], + nativeCurrency: { name: "Dither", symbol: "DTH", decimals: 18 }, + infoURL: "https://dithereum.org", + shortName: "dth", + chainId: 34, + networkId: 34, + testnet: !0, + slug: "dithereum-testnet", + }, + SSt = { + name: "TBWG Chain", + chain: "TBWG", + rpc: [ + "https://tbwg-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.tbwg.io", + ], + faucets: [], + nativeCurrency: { name: "TBWG Ether", symbol: "TBG", decimals: 18 }, + infoURL: "https://tbwg.io", + shortName: "tbwg", + chainId: 35, + networkId: 35, + testnet: !1, + slug: "tbwg-chain", + }, + MSt = { + name: "Dxchain Mainnet", + chain: "Dxchain", + icon: { + url: "ipfs://QmYBup5bWoBfkaHntbcgW8Ji7ncad7f53deJ4Q55z4PNQs", + width: 128, + height: 128, + format: "png", + }, + rpc: [ + "https://dxchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://mainnet.dxchain.com", + ], + faucets: [], + nativeCurrency: { name: "Dxchain", symbol: "DX", decimals: 18 }, + infoURL: "https://www.dxchain.com/", + shortName: "dx", + chainId: 36, + networkId: 36, + explorers: [ + { name: "dxscan", url: "https://dxscan.io", standard: "EIP3091" }, + ], + testnet: !1, + slug: "dxchain", + }, + PSt = { + name: "SeedCoin-Network", + chain: "SeedCoin-Network", + rpc: [ + "https://seedcoin-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://node.seedcoin.network", + ], + faucets: [], + nativeCurrency: { name: "SeedCoin", symbol: "SEED", decimals: 18 }, + infoURL: "https://www.seedcoin.network/", + shortName: "SEED", + icon: { + url: "ipfs://QmSchLvCCZjBzcv5n22v1oFDAc2yHJ42NERyjZeL9hBgrh", + width: 64, + height: 64, + format: "png", + }, + chainId: 37, + networkId: 37, + testnet: !1, + slug: "seedcoin-network", + }, + RSt = { + name: "Valorbit", + chain: "VAL", + rpc: [ + "https://valorbit.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.valorbit.com/v2", + ], + faucets: [], + nativeCurrency: { name: "Valorbit", symbol: "VAL", decimals: 18 }, + infoURL: "https://valorbit.com", + shortName: "val", + chainId: 38, + networkId: 38, + slip44: 538, + testnet: !1, + slug: "valorbit", + }, + BSt = { + name: "Unicorn Ultra Testnet", + chain: "u2u", + rpc: [ + "https://unicorn-ultra-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc-testnet.uniultra.xyz", + ], + faucets: ["https://faucet.uniultra.xyz"], + nativeCurrency: { name: "Unicorn Ultra", symbol: "U2U", decimals: 18 }, + infoURL: "https://uniultra.xyz", + shortName: "u2u", + chainId: 39, + networkId: 39, + icon: { + url: "ipfs://QmcW64RgqQVHnNbVFyfaMNKt7dJvFqEbfEHZmeyeK8dpEa", + width: 512, + height: 512, + format: "png", + }, + explorers: [ + { + icon: "u2u", + name: "U2U Explorer", + url: "https://testnet.uniultra.xyz", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "unicorn-ultra-testnet", + }, + NSt = { + name: "Telos EVM Mainnet", + chain: "TLOS", + rpc: [ + "https://telos-evm.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://mainnet.telos.net/evm", + ], + faucets: [], + nativeCurrency: { name: "Telos", symbol: "TLOS", decimals: 18 }, + infoURL: "https://telos.net", + shortName: "TelosEVM", + chainId: 40, + networkId: 40, + explorers: [ + { name: "teloscan", url: "https://teloscan.io", standard: "EIP3091" }, + ], + testnet: !1, + slug: "telos-evm", + }, + OSt = { + name: "Telos EVM Testnet", + chain: "TLOS", + rpc: [ + "https://telos-evm-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://testnet.telos.net/evm", + ], + faucets: ["https://app.telos.net/testnet/developers"], + nativeCurrency: { name: "Telos", symbol: "TLOS", decimals: 18 }, + infoURL: "https://telos.net", + shortName: "TelosEVMTestnet", + chainId: 41, + networkId: 41, + testnet: !0, + slug: "telos-evm-testnet", + }, + LSt = { + name: "Kovan", + title: "Ethereum Testnet Kovan", + chain: "ETH", + rpc: [ + "https://kovan.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://kovan.poa.network", + "http://kovan.poa.network:8545", + "https://kovan.infura.io/v3/${INFURA_API_KEY}", + "wss://kovan.infura.io/ws/v3/${INFURA_API_KEY}", + "ws://kovan.poa.network:8546", + ], + faucets: [ + "http://fauceth.komputing.org?chain=42&address=${ADDRESS}", + "https://faucet.kovan.network", + "https://gitter.im/kovan-testnet/faucet", + ], + nativeCurrency: { name: "Kovan Ether", symbol: "ETH", decimals: 18 }, + explorers: [ + { + name: "etherscan", + url: "https://kovan.etherscan.io", + standard: "EIP3091", + }, + ], + infoURL: "https://kovan-testnet.github.io/website", + shortName: "kov", + chainId: 42, + networkId: 42, + testnet: !0, + slug: "kovan", + }, + DSt = { + name: "Darwinia Pangolin Testnet", + chain: "pangolin", + rpc: [ + "https://darwinia-pangolin-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://pangolin-rpc.darwinia.network", + ], + faucets: [ + "https://docs.crab.network/dvm/wallets/dvm-metamask#apply-for-the-test-token", + ], + nativeCurrency: { + name: "Pangolin Network Native Token", + symbol: "PRING", + decimals: 18, + }, + infoURL: "https://darwinia.network/", + shortName: "pangolin", + chainId: 43, + networkId: 43, + explorers: [ + { + name: "subscan", + url: "https://pangolin.subscan.io", + standard: "none", + }, + ], + testnet: !0, + slug: "darwinia-pangolin-testnet", + }, + qSt = { + name: "Darwinia Crab Network", + chain: "crab", + rpc: [ + "https://darwinia-crab-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://crab-rpc.darwinia.network", + ], + faucets: [], + nativeCurrency: { + name: "Crab Network Native Token", + symbol: "CRAB", + decimals: 18, + }, + infoURL: "https://crab.network/", + shortName: "crab", + chainId: 44, + networkId: 44, + explorers: [ + { name: "subscan", url: "https://crab.subscan.io", standard: "none" }, + ], + testnet: !1, + slug: "darwinia-crab-network", + }, + FSt = { + name: "Darwinia Pangoro Testnet", + chain: "pangoro", + rpc: [ + "https://darwinia-pangoro-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://pangoro-rpc.darwinia.network", + ], + faucets: [], + nativeCurrency: { + name: "Pangoro Network Native Token", + symbol: "ORING", + decimals: 18, + }, + infoURL: "https://darwinia.network/", + shortName: "pangoro", + chainId: 45, + networkId: 45, + explorers: [ + { + name: "subscan", + url: "https://pangoro.subscan.io", + standard: "none", + }, + ], + testnet: !0, + slug: "darwinia-pangoro-testnet", + }, + WSt = { + name: "Darwinia Network", + chain: "darwinia", + rpc: [ + "https://darwinia-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.darwinia.network", + ], + faucets: [], + nativeCurrency: { + name: "Darwinia Network Native Token", + symbol: "RING", + decimals: 18, + }, + infoURL: "https://darwinia.network/", + shortName: "darwinia", + chainId: 46, + networkId: 46, + explorers: [ + { + name: "subscan", + url: "https://darwinia.subscan.io", + standard: "none", + }, + ], + testnet: !1, + slug: "darwinia-network", + }, + USt = { + name: "Ennothem Mainnet Proterozoic", + chain: "ETMP", + rpc: [ + "https://ennothem-proterozoic.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.etm.network", + ], + faucets: [], + nativeCurrency: { name: "Ennothem", symbol: "ETMP", decimals: 18 }, + infoURL: "https://etm.network", + shortName: "etmp", + chainId: 48, + networkId: 48, + icon: { + url: "ipfs://QmT7DTqT1V2y42pRpt3sj9ifijfmbtkHN7D2vTfAUAS622", + width: 512, + height: 512, + format: "png", + }, + explorers: [ + { + name: "etmpscan", + url: "https://etmscan.network", + icon: "etmp", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "ennothem-proterozoic", + }, + HSt = { + name: "Ennothem Testnet Pioneer", + chain: "ETMP", + rpc: [ + "https://ennothem-testnet-pioneer.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.pioneer.etm.network", + ], + faucets: [], + nativeCurrency: { name: "Ennothem", symbol: "ETMP", decimals: 18 }, + infoURL: "https://etm.network", + shortName: "etmpTest", + chainId: 49, + networkId: 49, + icon: { + url: "ipfs://QmT7DTqT1V2y42pRpt3sj9ifijfmbtkHN7D2vTfAUAS622", + width: 512, + height: 512, + format: "png", + }, + explorers: [ + { + name: "etmp", + url: "https://pioneer.etmscan.network", + icon: "etmpscan", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "ennothem-testnet-pioneer", + }, + zSt = { + name: "XinFin XDC Network", + chain: "XDC", + rpc: [ + "https://xinfin-xdc-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://erpc.xinfin.network", + "https://rpc.xinfin.network", + "https://rpc1.xinfin.network", + ], + faucets: [], + nativeCurrency: { name: "XinFin", symbol: "XDC", decimals: 18 }, + infoURL: "https://xinfin.org", + shortName: "xdc", + chainId: 50, + networkId: 50, + icon: { + url: "ipfs://QmeRq7pabiJE2n1xU3Y5Mb4TZSX9kQ74x7a3P2Z4PqcMRX", + width: 1450, + height: 1450, + format: "png", + }, + explorers: [ + { + name: "xdcscan", + url: "https://xdcscan.io", + icon: "blocksscan", + standard: "EIP3091", + }, + { + name: "blocksscan", + url: "https://xdc.blocksscan.io", + icon: "blocksscan", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "xinfin-xdc-network", + }, + jSt = { + name: "XDC Apothem Network", + chain: "XDC", + rpc: [ + "https://xdc-apothem-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.apothem.network", + "https://erpc.apothem.network", + ], + faucets: ["https://faucet.apothem.network"], + nativeCurrency: { name: "XinFin", symbol: "TXDC", decimals: 18 }, + infoURL: "https://xinfin.org", + shortName: "txdc", + chainId: 51, + networkId: 51, + icon: { + url: "ipfs://QmeRq7pabiJE2n1xU3Y5Mb4TZSX9kQ74x7a3P2Z4PqcMRX", + width: 1450, + height: 1450, + format: "png", + }, + explorers: [ + { + name: "xdcscan", + url: "https://apothem.xinfinscan.com", + icon: "blocksscan", + standard: "EIP3091", + }, + { + name: "blocksscan", + url: "https://apothem.blocksscan.io", + icon: "blocksscan", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "xdc-apothem-network", + }, + KSt = { + name: "CoinEx Smart Chain Mainnet", + chain: "CSC", + rpc: [ + "https://coinex-smart-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.coinex.net", + ], + faucets: [], + nativeCurrency: { + name: "CoinEx Chain Native Token", + symbol: "cet", + decimals: 18, + }, + infoURL: "https://www.coinex.org/", + shortName: "cet", + chainId: 52, + networkId: 52, + explorers: [ + { + name: "coinexscan", + url: "https://www.coinex.net", + standard: "none", + }, + ], + testnet: !1, + slug: "coinex-smart-chain", + }, + VSt = { + name: "CoinEx Smart Chain Testnet", + chain: "CSC", + rpc: [ + "https://coinex-smart-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://testnet-rpc.coinex.net/", + ], + faucets: [], + nativeCurrency: { + name: "CoinEx Chain Test Native Token", + symbol: "cett", + decimals: 18, + }, + infoURL: "https://www.coinex.org/", + shortName: "tcet", + chainId: 53, + networkId: 53, + explorers: [ + { + name: "coinexscan", + url: "https://testnet.coinex.net", + standard: "none", + }, + ], + testnet: !0, + slug: "coinex-smart-chain-testnet", + }, + GSt = { + name: "Openpiece Mainnet", + chain: "OPENPIECE", + icon: { + url: "ipfs://QmVTahJkdSH3HPYsJMK2GmqfWZjLyxE7cXy1aHEnHU3vp2", + width: 250, + height: 250, + format: "png", + }, + rpc: [ + "https://openpiece.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://mainnet.openpiece.io", + ], + faucets: [], + nativeCurrency: { name: "Belly", symbol: "BELLY", decimals: 18 }, + infoURL: "https://cryptopiece.online", + shortName: "OP", + chainId: 54, + networkId: 54, + explorers: [ + { + name: "Belly Scan", + url: "https://bellyscan.com", + standard: "none", + }, + ], + testnet: !1, + slug: "openpiece", + }, + YSt = { + name: "Zyx Mainnet", + chain: "ZYX", + rpc: [ + "https://zyx.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc-1.zyx.network/", + "https://rpc-2.zyx.network/", + "https://rpc-3.zyx.network/", + "https://rpc-4.zyx.network/", + "https://rpc-5.zyx.network/", + "https://rpc-6.zyx.network/", + ], + faucets: [], + nativeCurrency: { name: "Zyx", symbol: "ZYX", decimals: 18 }, + infoURL: "https://zyx.network/", + shortName: "ZYX", + chainId: 55, + networkId: 55, + explorers: [ + { name: "zyxscan", url: "https://zyxscan.com", standard: "none" }, + ], + testnet: !1, + slug: "zyx", + }, + $St = { + name: "Binance Smart Chain Mainnet", + chain: "BSC", + rpc: [ + "https://binance.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "wss://bsc-ws-node.nariox.org", + "https://bsc-dataseed4.ninicoin.io", + "https://bsc-dataseed3.ninicoin.io", + "https://bsc-dataseed2.ninicoin.io", + "https://bsc-dataseed1.ninicoin.io", + "https://bsc-dataseed4.defibit.io", + "https://bsc-dataseed3.defibit.io", + "https://bsc-dataseed2.defibit.io", + "https://bsc-dataseed1.defibit.io", + "https://bsc-dataseed4.binance.org", + "https://bsc-dataseed3.binance.org", + "https://bsc-dataseed2.binance.org", + "https://bsc-dataseed1.binance.org", + ], + faucets: ["https://free-online-app.com/faucet-for-eth-evm-chains/"], + nativeCurrency: { + name: "Binance Chain Native Token", + symbol: "BNB", + decimals: 18, + }, + infoURL: "https://www.binance.org", + shortName: "bnb", + chainId: 56, + networkId: 56, + slip44: 714, + explorers: [ + { name: "bscscan", url: "https://bscscan.com", standard: "EIP3091" }, + ], + icon: { + url: "ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/binance-coin/512.png", + height: 512, + width: 512, + format: "png", + sizes: [512, 256, 128, 64, 32, 16], + }, + testnet: !1, + slug: "binance", + }, + JSt = { + name: "Syscoin Mainnet", + chain: "SYS", + rpc: [ + "https://syscoin.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.syscoin.org", + "wss://rpc.syscoin.org/wss", + ], + faucets: ["https://faucet.syscoin.org"], + nativeCurrency: { name: "Syscoin", symbol: "SYS", decimals: 18 }, + infoURL: "https://www.syscoin.org", + shortName: "sys", + chainId: 57, + networkId: 57, + explorers: [ + { + name: "Syscoin Block Explorer", + url: "https://explorer.syscoin.org", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "syscoin", + }, + ZSt = { + name: "Ontology Mainnet", + chain: "Ontology", + icon: { + url: "ipfs://bafkreigmvn6spvbiirtutowpq6jmetevbxoof5plzixjoerbeswy4htfb4", + width: 400, + height: 400, + format: "png", + }, + rpc: [ + "https://ontology.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "http://dappnode1.ont.io:20339", + "http://dappnode2.ont.io:20339", + "http://dappnode3.ont.io:20339", + "http://dappnode4.ont.io:20339", + "https://dappnode1.ont.io:10339", + "https://dappnode2.ont.io:10339", + "https://dappnode3.ont.io:10339", + "https://dappnode4.ont.io:10339", + ], + faucets: [], + nativeCurrency: { name: "ONG", symbol: "ONG", decimals: 18 }, + infoURL: "https://ont.io/", + shortName: "OntologyMainnet", + chainId: 58, + networkId: 58, + explorers: [ + { + name: "explorer", + url: "https://explorer.ont.io", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "ontology", + }, + QSt = { + name: "EOS Mainnet", + chain: "EOS", + rpc: [ + "https://eos.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://api.eosargentina.io", + ], + faucets: [], + nativeCurrency: { name: "EOS", symbol: "EOS", decimals: 18 }, + infoURL: "https://eoscommunity.org/", + shortName: "EOSMainnet", + chainId: 59, + networkId: 59, + explorers: [ + { + name: "bloks", + url: "https://bloks.eosargentina.io", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "eos", + }, + XSt = { + name: "GoChain", + chain: "GO", + rpc: [ + "https://gochain.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.gochain.io", + ], + faucets: ["https://free-online-app.com/faucet-for-eth-evm-chains/"], + nativeCurrency: { name: "GoChain Ether", symbol: "GO", decimals: 18 }, + infoURL: "https://gochain.io", + shortName: "go", + chainId: 60, + networkId: 60, + slip44: 6060, + explorers: [ + { + name: "GoChain Explorer", + url: "https://explorer.gochain.io", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "gochain", + }, + eMt = { + name: "Ethereum Classic Mainnet", + chain: "ETC", + rpc: [ + "https://ethereum-classic.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://www.ethercluster.com/etc", + ], + faucets: ["https://free-online-app.com/faucet-for-eth-evm-chains/?"], + nativeCurrency: { + name: "Ethereum Classic Ether", + symbol: "ETC", + decimals: 18, + }, + infoURL: "https://ethereumclassic.org", + shortName: "etc", + chainId: 61, + networkId: 1, + slip44: 61, + explorers: [ + { + name: "blockscout", + url: "https://blockscout.com/etc/mainnet", + standard: "none", + }, + ], + testnet: !1, + slug: "ethereum-classic", + }, + tMt = { + name: "Ethereum Classic Testnet Morden", + chain: "ETC", + rpc: [], + faucets: [], + nativeCurrency: { + name: "Ethereum Classic Testnet Ether", + symbol: "TETC", + decimals: 18, + }, + infoURL: "https://ethereumclassic.org", + shortName: "tetc", + chainId: 62, + networkId: 2, + testnet: !0, + slug: "ethereum-classic-testnet-morden", + }, + rMt = { + name: "Ethereum Classic Testnet Mordor", + chain: "ETC", + rpc: [ + "https://ethereum-classic-testnet-mordor.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://www.ethercluster.com/mordor", + ], + faucets: [], + nativeCurrency: { + name: "Mordor Classic Testnet Ether", + symbol: "METC", + decimals: 18, + }, + infoURL: "https://github.com/eth-classic/mordor/", + shortName: "metc", + chainId: 63, + networkId: 7, + testnet: !0, + slug: "ethereum-classic-testnet-mordor", + }, + nMt = { + name: "Ellaism", + chain: "ELLA", + rpc: [ + "https://ellaism.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://jsonrpc.ellaism.org", + ], + faucets: [], + nativeCurrency: { name: "Ellaism Ether", symbol: "ELLA", decimals: 18 }, + infoURL: "https://ellaism.org", + shortName: "ellaism", + chainId: 64, + networkId: 64, + slip44: 163, + testnet: !1, + slug: "ellaism", + }, + aMt = { + name: "OKExChain Testnet", + chain: "okexchain", + rpc: [ + "https://okexchain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://exchaintestrpc.okex.org", + ], + faucets: ["https://www.okex.com/drawdex"], + nativeCurrency: { + name: "OKExChain Global Utility Token in testnet", + symbol: "OKT", + decimals: 18, + }, + infoURL: "https://www.okex.com/okexchain", + shortName: "tokt", + chainId: 65, + networkId: 65, + explorers: [ + { + name: "OKLink", + url: "https://www.oklink.com/okexchain-test", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "okexchain-testnet", + }, + iMt = { + name: "OKXChain Mainnet", + chain: "okxchain", + rpc: [ + "https://okxchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://exchainrpc.okex.org", + "https://okc-mainnet.gateway.pokt.network/v1/lb/6275309bea1b320039c893ff", + ], + faucets: ["https://free-online-app.com/faucet-for-eth-evm-chains/?"], + nativeCurrency: { + name: "OKXChain Global Utility Token", + symbol: "OKT", + decimals: 18, + }, + infoURL: "https://www.okex.com/okc", + shortName: "okt", + chainId: 66, + networkId: 66, + explorers: [ + { + name: "OKLink", + url: "https://www.oklink.com/en/okc", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "okxchain", + }, + sMt = { + name: "DBChain Testnet", + chain: "DBM", + rpc: [ + "https://dbchain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "http://test-rpc.dbmbp.com", + ], + faucets: [], + nativeCurrency: { + name: "DBChain Testnet", + symbol: "DBM", + decimals: 18, + }, + infoURL: "http://test.dbmbp.com", + shortName: "dbm", + chainId: 67, + networkId: 67, + testnet: !0, + slug: "dbchain-testnet", + }, + oMt = { + name: "SoterOne Mainnet", + chain: "SOTER", + rpc: [ + "https://soterone.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.soter.one", + ], + faucets: [], + nativeCurrency: { + name: "SoterOne Mainnet Ether", + symbol: "SOTER", + decimals: 18, + }, + infoURL: "https://www.soterone.com", + shortName: "SO1", + chainId: 68, + networkId: 68, + testnet: !1, + slug: "soterone", + }, + cMt = { + name: "Optimism Kovan", + title: "Optimism Testnet Kovan", + chain: "ETH", + rpc: [ + "https://optimism-kovan.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://kovan.optimism.io/", + ], + faucets: ["http://fauceth.komputing.org?chain=69&address=${ADDRESS}"], + nativeCurrency: { name: "Kovan Ether", symbol: "ETH", decimals: 18 }, + explorers: [ + { + name: "etherscan", + url: "https://kovan-optimistic.etherscan.io", + standard: "EIP3091", + }, + ], + infoURL: "https://optimism.io", + shortName: "okov", + chainId: 69, + networkId: 69, + testnet: !0, + slug: "optimism-kovan", + }, + uMt = { + name: "Hoo Smart Chain", + chain: "HSC", + rpc: [ + "https://hoo-smart-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://http-mainnet.hoosmartchain.com", + "https://http-mainnet2.hoosmartchain.com", + "wss://ws-mainnet.hoosmartchain.com", + "wss://ws-mainnet2.hoosmartchain.com", + ], + faucets: [], + nativeCurrency: { + name: "Hoo Smart Chain Native Token", + symbol: "HOO", + decimals: 18, + }, + infoURL: "https://www.hoosmartchain.com", + shortName: "hsc", + chainId: 70, + networkId: 70, + slip44: 1170, + explorers: [ + { + name: "hooscan", + url: "https://www.hooscan.com", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "hoo-smart-chain", + }, + lMt = { + name: "Conflux eSpace (Testnet)", + chain: "Conflux", + rpc: [ + "https://conflux-espace-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://evmtestnet.confluxrpc.com", + ], + faucets: ["https://faucet.confluxnetwork.org"], + nativeCurrency: { name: "CFX", symbol: "CFX", decimals: 18 }, + infoURL: "https://confluxnetwork.org", + shortName: "cfxtest", + chainId: 71, + networkId: 71, + icon: { + url: "ipfs://bafkreifj7n24u2dslfijfihwqvpdeigt5aj3k3sxv6s35lv75sxsfr3ojy", + width: 460, + height: 576, + format: "png", + }, + explorers: [ + { + name: "Conflux Scan", + url: "https://evmtestnet.confluxscan.net", + standard: "none", + }, + ], + testnet: !0, + slug: "conflux-espace-testnet", + }, + dMt = { + name: "DxChain Testnet", + chain: "DxChain", + rpc: [ + "https://dxchain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://testnet-http.dxchain.com", + ], + faucets: ["https://faucet.dxscan.io"], + nativeCurrency: { name: "DxChain Testnet", symbol: "DX", decimals: 18 }, + infoURL: "https://testnet.dxscan.io/", + shortName: "dxc", + chainId: 72, + networkId: 72, + testnet: !0, + slug: "dxchain-testnet", + }, + pMt = { + name: "FNCY", + chain: "FNCY", + rpc: [ + "https://fncy.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://fncy-seed1.fncy.world", + ], + faucets: ["https://faucet-testnet.fncy.world"], + nativeCurrency: { name: "FNCY", symbol: "FNCY", decimals: 18 }, + infoURL: "https://fncyscan.fncy.world", + shortName: "FNCY", + chainId: 73, + networkId: 73, + icon: { + url: "ipfs://QmfXCh6UnaEHn3Evz7RFJ3p2ggJBRm9hunDHegeoquGuhD", + width: 256, + height: 256, + format: "png", + }, + explorers: [ + { + name: "fncy scan", + url: "https://fncyscan.fncy.world", + icon: "fncy", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "fncy", + }, + hMt = { + name: "IDChain Mainnet", + chain: "IDChain", + rpc: [ + "https://idchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://idchain.one/rpc/", + "wss://idchain.one/ws/", + ], + faucets: [], + nativeCurrency: { name: "EIDI", symbol: "EIDI", decimals: 18 }, + infoURL: "https://idchain.one/begin/", + shortName: "idchain", + chainId: 74, + networkId: 74, + icon: { + url: "ipfs://QmZVwsY6HPXScKqZCA9SWNrr4jrQAHkPhVhMWi6Fj1DsrJ", + width: 162, + height: 129, + format: "png", + }, + explorers: [ + { + name: "explorer", + url: "https://explorer.idchain.one", + icon: "etherscan", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "idchain", + }, + fMt = { + name: "Decimal Smart Chain Mainnet", + chain: "DSC", + rpc: [ + "https://decimal-smart-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://node.decimalchain.com/web3", + ], + faucets: [], + nativeCurrency: { name: "Decimal", symbol: "DEL", decimals: 18 }, + features: [{ name: "EIP155" }, { name: "EIP1559" }], + infoURL: "https://decimalchain.com", + shortName: "DSC", + chainId: 75, + networkId: 75, + icon: { + url: "ipfs://QmSgzwKnJJjys3Uq2aVVdwJ3NffLj3CXMVCph9uByTBegc", + width: 256, + height: 256, + format: "png", + }, + explorers: [ + { + name: "DSC Explorer Mainnet", + url: "https://explorer.decimalchain.com", + icon: "dsc", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "decimal-smart-chain", + }, + mMt = { + name: "Mix", + chain: "MIX", + rpc: [ + "https://mix.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc2.mix-blockchain.org:8647", + ], + faucets: [], + nativeCurrency: { name: "Mix Ether", symbol: "MIX", decimals: 18 }, + infoURL: "https://mix-blockchain.org", + shortName: "mix", + chainId: 76, + networkId: 76, + slip44: 76, + testnet: !1, + slug: "mix", + }, + yMt = { + name: "POA Network Sokol", + chain: "POA", + rpc: [ + "https://poa-network-sokol.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://sokol.poa.network", + "wss://sokol.poa.network/wss", + "ws://sokol.poa.network:8546", + ], + faucets: ["https://faucet.poa.network"], + nativeCurrency: { + name: "POA Sokol Ether", + symbol: "SPOA", + decimals: 18, + }, + infoURL: "https://poa.network", + shortName: "spoa", + chainId: 77, + networkId: 77, + explorers: [ + { + name: "blockscout", + url: "https://blockscout.com/poa/sokol", + standard: "none", + }, + ], + testnet: !1, + slug: "poa-network-sokol", + }, + gMt = { + name: "PrimusChain mainnet", + chain: "PC", + rpc: [ + "https://primuschain.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://ethnode.primusmoney.com/mainnet", + ], + faucets: [], + nativeCurrency: { name: "Primus Ether", symbol: "PETH", decimals: 18 }, + infoURL: "https://primusmoney.com", + shortName: "primuschain", + chainId: 78, + networkId: 78, + testnet: !1, + slug: "primuschain", + }, + bMt = { + name: "Zenith Mainnet", + chain: "Zenith", + rpc: [ + "https://zenith.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://dataserver-us-1.zenithchain.co/", + "https://dataserver-asia-3.zenithchain.co/", + "https://dataserver-asia-4.zenithchain.co/", + "https://dataserver-asia-2.zenithchain.co/", + "https://dataserver-asia-5.zenithchain.co/", + "https://dataserver-asia-6.zenithchain.co/", + "https://dataserver-asia-7.zenithchain.co/", + ], + faucets: [], + nativeCurrency: { name: "ZENITH", symbol: "ZENITH", decimals: 18 }, + infoURL: "https://www.zenithchain.co/", + chainId: 79, + networkId: 79, + shortName: "zenith", + explorers: [ + { + name: "zenith scan", + url: "https://scan.zenithchain.co", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "zenith", + }, + vMt = { + name: "GeneChain", + chain: "GeneChain", + rpc: [ + "https://genechain.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.genechain.io", + ], + faucets: [], + nativeCurrency: { name: "RNA", symbol: "RNA", decimals: 18 }, + infoURL: "https://scan.genechain.io/", + shortName: "GeneChain", + chainId: 80, + networkId: 80, + explorers: [ + { + name: "GeneChain Scan", + url: "https://scan.genechain.io", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "genechain", + }, + wMt = { + name: "Zenith Testnet (Vilnius)", + chain: "Zenith", + rpc: [ + "https://zenith-testnet-vilnius.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://vilnius.zenithchain.co/http", + ], + faucets: ["https://faucet.zenithchain.co/"], + nativeCurrency: { name: "Vilnius", symbol: "VIL", decimals: 18 }, + infoURL: "https://www.zenithchain.co/", + chainId: 81, + networkId: 81, + shortName: "VIL", + explorers: [ + { + name: "vilnius scan", + url: "https://vilnius.scan.zenithchain.co", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "zenith-testnet-vilnius", + }, + _Mt = { + name: "Meter Mainnet", + chain: "METER", + rpc: [ + "https://meter.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.meter.io", + ], + faucets: ["https://faucet.meter.io"], + nativeCurrency: { name: "Meter", symbol: "MTR", decimals: 18 }, + infoURL: "https://www.meter.io", + shortName: "Meter", + chainId: 82, + networkId: 82, + explorers: [ + { + name: "Meter Mainnet Scan", + url: "https://scan.meter.io", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "meter", + }, + xMt = { + name: "Meter Testnet", + chain: "METER Testnet", + rpc: [ + "https://meter-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpctest.meter.io", + ], + faucets: ["https://faucet-warringstakes.meter.io"], + nativeCurrency: { name: "Meter", symbol: "MTR", decimals: 18 }, + infoURL: "https://www.meter.io", + shortName: "MeterTest", + chainId: 83, + networkId: 83, + explorers: [ + { + name: "Meter Testnet Scan", + url: "https://scan-warringstakes.meter.io", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "meter-testnet", + }, + TMt = { + name: "GateChain Testnet", + chainId: 85, + shortName: "gttest", + chain: "GTTEST", + networkId: 85, + nativeCurrency: { name: "GateToken", symbol: "GT", decimals: 18 }, + rpc: [ + "https://gatechain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://testnet.gatenode.cc", + ], + faucets: ["https://www.gatescan.org/testnet/faucet"], + explorers: [ + { + name: "GateScan", + url: "https://www.gatescan.org/testnet", + standard: "EIP3091", + }, + ], + infoURL: "https://www.gatechain.io", + testnet: !0, + slug: "gatechain-testnet", + }, + EMt = { + name: "GateChain Mainnet", + chainId: 86, + shortName: "gt", + chain: "GT", + networkId: 86, + nativeCurrency: { name: "GateToken", symbol: "GT", decimals: 18 }, + rpc: [ + "https://gatechain.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://evm.gatenode.cc", + ], + faucets: ["https://www.gatescan.org/faucet"], + explorers: [ + { + name: "GateScan", + url: "https://www.gatescan.org", + standard: "EIP3091", + }, + ], + infoURL: "https://www.gatechain.io", + testnet: !1, + slug: "gatechain", + }, + CMt = { + name: "Nova Network", + chain: "NNW", + icon: { + url: "ipfs://QmTTamJ55YGQwMboq4aqf3JjTEy5WDtjo4GBRQ5VdsWA6U", + width: 512, + height: 512, + format: "png", + }, + rpc: [ + "https://nova-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://connect.novanetwork.io", + "https://0x57.redjackstudio.com", + "https://rpc.novanetwork.io:9070", + ], + faucets: [], + nativeCurrency: { name: "Supernova", symbol: "SNT", decimals: 18 }, + infoURL: "https://novanetwork.io", + shortName: "nnw", + chainId: 87, + networkId: 87, + explorers: [ + { + name: "novanetwork", + url: "https://explorer.novanetwork.io", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "nova-network", + }, + IMt = { + name: "TomoChain", + chain: "TOMO", + rpc: [ + "https://tomochain.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.tomochain.com", + ], + faucets: [], + nativeCurrency: { name: "TomoChain", symbol: "TOMO", decimals: 18 }, + infoURL: "https://tomochain.com", + shortName: "tomo", + chainId: 88, + networkId: 88, + slip44: 889, + testnet: !1, + slug: "tomochain", + }, + AMt = { + name: "TomoChain Testnet", + chain: "TOMO", + rpc: [ + "https://tomochain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.testnet.tomochain.com", + ], + faucets: [], + nativeCurrency: { name: "TomoChain", symbol: "TOMO", decimals: 18 }, + infoURL: "https://tomochain.com", + shortName: "tomot", + chainId: 89, + networkId: 89, + slip44: 889, + testnet: !0, + slug: "tomochain-testnet", + }, + kMt = { + name: "Garizon Stage0", + chain: "GAR", + icon: { + url: "ipfs://QmW3WRyuLZ95K8hvV2QN6rP5yWY98sSzWyVUxD2eUjXGrc", + width: 1024, + height: 613, + format: "png", + }, + rpc: [ + "https://garizon-stage0.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://s0.garizon.net/rpc", + ], + faucets: [], + nativeCurrency: { name: "Garizon", symbol: "GAR", decimals: 18 }, + infoURL: "https://garizon.com", + shortName: "gar-s0", + chainId: 90, + networkId: 90, + explorers: [ + { + name: "explorer", + url: "https://explorer.garizon.com", + icon: "garizon", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "garizon-stage0", + }, + SMt = { + name: "Garizon Stage1", + chain: "GAR", + icon: { + url: "ipfs://QmW3WRyuLZ95K8hvV2QN6rP5yWY98sSzWyVUxD2eUjXGrc", + width: 1024, + height: 613, + format: "png", + }, + rpc: [ + "https://garizon-stage1.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://s1.garizon.net/rpc", + ], + faucets: [], + nativeCurrency: { name: "Garizon", symbol: "GAR", decimals: 18 }, + infoURL: "https://garizon.com", + shortName: "gar-s1", + chainId: 91, + networkId: 91, + explorers: [ + { + name: "explorer", + url: "https://explorer.garizon.com", + icon: "garizon", + standard: "EIP3091", + }, + ], + parent: { chain: "eip155-90", type: "shard" }, + testnet: !1, + slug: "garizon-stage1", + }, + MMt = { + name: "Garizon Stage2", + chain: "GAR", + icon: { + url: "ipfs://QmW3WRyuLZ95K8hvV2QN6rP5yWY98sSzWyVUxD2eUjXGrc", + width: 1024, + height: 613, + format: "png", + }, + rpc: [ + "https://garizon-stage2.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://s2.garizon.net/rpc", + ], + faucets: [], + nativeCurrency: { name: "Garizon", symbol: "GAR", decimals: 18 }, + infoURL: "https://garizon.com", + shortName: "gar-s2", + chainId: 92, + networkId: 92, + explorers: [ + { + name: "explorer", + url: "https://explorer.garizon.com", + icon: "garizon", + standard: "EIP3091", + }, + ], + parent: { chain: "eip155-90", type: "shard" }, + testnet: !1, + slug: "garizon-stage2", + }, + PMt = { + name: "Garizon Stage3", + chain: "GAR", + icon: { + url: "ipfs://QmW3WRyuLZ95K8hvV2QN6rP5yWY98sSzWyVUxD2eUjXGrc", + width: 1024, + height: 613, + format: "png", + }, + rpc: [ + "https://garizon-stage3.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://s3.garizon.net/rpc", + ], + faucets: [], + nativeCurrency: { name: "Garizon", symbol: "GAR", decimals: 18 }, + infoURL: "https://garizon.com", + shortName: "gar-s3", + chainId: 93, + networkId: 93, + explorers: [ + { + name: "explorer", + url: "https://explorer.garizon.com", + icon: "garizon", + standard: "EIP3091", + }, + ], + parent: { chain: "eip155-90", type: "shard" }, + testnet: !1, + slug: "garizon-stage3", + }, + RMt = { + name: "CryptoKylin Testnet", + chain: "EOS", + rpc: [ + "https://cryptokylin-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://kylin.eosargentina.io", + ], + faucets: [], + nativeCurrency: { name: "EOS", symbol: "EOS", decimals: 18 }, + infoURL: "https://www.cryptokylin.io/", + shortName: "KylinTestnet", + chainId: 95, + networkId: 95, + explorers: [ + { + name: "eosq", + url: "https://kylin.eosargentina.io", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "cryptokylin-testnet", + }, + BMt = { + name: "Bitkub Chain", + chain: "BKC", + icon: { + url: "ipfs://QmYFYwyquipwc9gURQGcEd4iAq7pq15chQrJ3zJJe9HuFT", + width: 1e3, + height: 1e3, + format: "png", + }, + rpc: [ + "https://bitkub-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.bitkubchain.io", + "wss://wss.bitkubchain.io", + ], + faucets: [], + nativeCurrency: { name: "Bitkub Coin", symbol: "KUB", decimals: 18 }, + infoURL: "https://www.bitkubchain.com/", + shortName: "bkc", + chainId: 96, + networkId: 96, + explorers: [ + { + name: "Bitkub Chain Explorer", + url: "https://bkcscan.com", + standard: "none", + icon: "bkc", + }, + ], + redFlags: ["reusedChainId"], + testnet: !1, + slug: "bitkub-chain", + }, + NMt = { + name: "Binance Smart Chain Testnet", + chain: "BSC", + rpc: [ + "https://binance-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://data-seed-prebsc-2-s3.binance.org:8545", + "https://data-seed-prebsc-1-s3.binance.org:8545", + "https://data-seed-prebsc-2-s2.binance.org:8545", + "https://data-seed-prebsc-1-s2.binance.org:8545", + "https://data-seed-prebsc-2-s1.binance.org:8545", + "https://data-seed-prebsc-1-s1.binance.org:8545", + ], + faucets: ["https://testnet.binance.org/faucet-smart"], + nativeCurrency: { + name: "Binance Chain Native Token", + symbol: "tBNB", + decimals: 18, + }, + infoURL: "https://testnet.binance.org/", + shortName: "bnbt", + chainId: 97, + networkId: 97, + explorers: [ + { + name: "bscscan-testnet", + url: "https://testnet.bscscan.com", + standard: "EIP3091", + }, + ], + icon: { + url: "ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/binance-coin/512.png", + height: 512, + width: 512, + format: "png", + sizes: [512, 256, 128, 64, 32, 16], + }, + testnet: !0, + slug: "binance-testnet", + }, + OMt = { + name: "POA Network Core", + chain: "POA", + rpc: [ + "https://poa-network-core.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://core.poa.network", + ], + faucets: [], + nativeCurrency: { + name: "POA Network Core Ether", + symbol: "POA", + decimals: 18, + }, + infoURL: "https://poa.network", + shortName: "poa", + chainId: 99, + networkId: 99, + slip44: 178, + explorers: [ + { + name: "blockscout", + url: "https://blockscout.com/poa/core", + standard: "none", + }, + ], + testnet: !1, + slug: "poa-network-core", + }, + LMt = { + name: "Gnosis", + chain: "GNO", + icon: { + url: "ipfs://bafybeidk4swpgdyqmpz6shd5onvpaujvwiwthrhypufnwr6xh3dausz2dm", + width: 1800, + height: 1800, + format: "png", + }, + rpc: [ + "https://gnosis.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.gnosischain.com", + "https://rpc.ankr.com/gnosis", + "https://gnosischain-rpc.gateway.pokt.network", + "https://gnosis-mainnet.public.blastapi.io", + "wss://rpc.gnosischain.com/wss", + ], + faucets: [ + "https://gnosisfaucet.com", + "https://faucet.gimlu.com/gnosis", + "https://stakely.io/faucet/gnosis-chain-xdai", + "https://faucet.prussia.dev/xdai", + ], + nativeCurrency: { name: "xDAI", symbol: "xDAI", decimals: 18 }, + infoURL: "https://docs.gnosischain.com", + shortName: "gno", + chainId: 100, + networkId: 100, + slip44: 700, + explorers: [ + { + name: "gnosisscan", + url: "https://gnosisscan.io", + icon: "gnosisscan", + standard: "EIP3091", + }, + { + name: "blockscout", + url: "https://blockscout.com/xdai/mainnet", + icon: "blockscout", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "gnosis", + }, + DMt = { + name: "EtherInc", + chain: "ETI", + rpc: [ + "https://etherinc.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://api.einc.io/jsonrpc/mainnet", + ], + faucets: [], + nativeCurrency: { name: "EtherInc Ether", symbol: "ETI", decimals: 18 }, + infoURL: "https://einc.io", + shortName: "eti", + chainId: 101, + networkId: 1, + slip44: 464, + testnet: !1, + slug: "etherinc", + }, + qMt = { + name: "Web3Games Testnet", + chain: "Web3Games", + icon: { + url: "ipfs://QmUc57w3UTHiWapNW9oQb1dP57ymtdemTTbpvGkjVHBRCo", + width: 192, + height: 192, + format: "png", + }, + rpc: [ + "https://web3games-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://testnet-rpc-0.web3games.org/evm", + "https://testnet-rpc-1.web3games.org/evm", + "https://testnet-rpc-2.web3games.org/evm", + ], + faucets: [], + nativeCurrency: { name: "Web3Games", symbol: "W3G", decimals: 18 }, + infoURL: "https://web3games.org/", + shortName: "tw3g", + chainId: 102, + networkId: 102, + testnet: !0, + slug: "web3games-testnet", + }, + FMt = { + name: "Kaiba Lightning Chain Testnet", + chain: "tKLC", + rpc: [ + "https://kaiba-lightning-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://klc.live/", + ], + faucets: [], + nativeCurrency: { + name: "Kaiba Testnet Token", + symbol: "tKAIBA", + decimals: 18, + }, + infoURL: "https://kaibadefi.com", + shortName: "tklc", + chainId: 104, + networkId: 104, + icon: { + url: "ipfs://bafybeihbsw3ky7yf6llpww6fabo4dicotcgwjpefscoxrppstjx25dvtea", + width: 932, + height: 932, + format: "png", + }, + explorers: [ + { + name: "kaibascan", + url: "https://kaibascan.io", + icon: "kaibascan", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "kaiba-lightning-chain-testnet", + }, + WMt = { + name: "Web3Games Devnet", + chain: "Web3Games", + icon: { + url: "ipfs://QmUc57w3UTHiWapNW9oQb1dP57ymtdemTTbpvGkjVHBRCo", + width: 192, + height: 192, + format: "png", + }, + rpc: [ + "https://web3games-devnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://devnet.web3games.org/evm", + ], + faucets: [], + nativeCurrency: { name: "Web3Games", symbol: "W3G", decimals: 18 }, + infoURL: "https://web3games.org/", + shortName: "dw3g", + chainId: 105, + networkId: 105, + explorers: [ + { + name: "Web3Games Explorer", + url: "https://explorer-devnet.web3games.org", + standard: "none", + }, + ], + testnet: !1, + slug: "web3games-devnet", + }, + UMt = { + name: "Velas EVM Mainnet", + chain: "Velas", + icon: { + url: "ipfs://QmNXiCXJxEeBd7ZYGYjPSMTSdbDd2nfodLC677gUfk9ku5", + width: 924, + height: 800, + format: "png", + }, + rpc: [ + "https://velas-evm.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://evmexplorer.velas.com/rpc", + "https://explorer.velas.com/rpc", + ], + faucets: [], + nativeCurrency: { name: "Velas", symbol: "VLX", decimals: 18 }, + infoURL: "https://velas.com", + shortName: "vlx", + chainId: 106, + networkId: 106, + explorers: [ + { + name: "Velas Explorer", + url: "https://evmexplorer.velas.com", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "velas-evm", + }, + HMt = { + name: "Nebula Testnet", + chain: "NTN", + icon: { + url: "ipfs://QmeFaJtQqTKKuXQR7ysS53bLFPasFBcZw445cvYJ2HGeTo", + width: 512, + height: 512, + format: "png", + }, + rpc: [ + "https://nebula-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://testnet.rpc.novanetwork.io:9070", + ], + faucets: ["https://faucet.novanetwork.io"], + nativeCurrency: { name: "Nebula X", symbol: "NBX", decimals: 18 }, + infoURL: "https://novanetwork.io", + shortName: "ntn", + chainId: 107, + networkId: 107, + explorers: [ + { + name: "nebulatestnet", + url: "https://explorer.novanetwork.io", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "nebula-testnet", + }, + zMt = { + name: "ThunderCore Mainnet", + chain: "TT", + rpc: [ + "https://thundercore.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://mainnet-rpc.thundercore.com", + "https://mainnet-rpc.thundertoken.net", + "https://mainnet-rpc.thundercore.io", + ], + faucets: ["https://faucet.thundercore.com"], + nativeCurrency: { + name: "ThunderCore Token", + symbol: "TT", + decimals: 18, + }, + infoURL: "https://thundercore.com", + shortName: "TT", + chainId: 108, + networkId: 108, + slip44: 1001, + explorers: [ + { + name: "thundercore-viewblock", + url: "https://viewblock.io/thundercore", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "thundercore", + }, + jMt = { + name: "Proton Testnet", + chain: "XPR", + rpc: [ + "https://proton-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://protontestnet.greymass.com/", + ], + faucets: [], + nativeCurrency: { name: "Proton", symbol: "XPR", decimals: 4 }, + infoURL: "https://protonchain.com", + shortName: "xpr", + chainId: 110, + networkId: 110, + testnet: !0, + slug: "proton-testnet", + }, + KMt = { + name: "EtherLite Chain", + chain: "ETL", + rpc: [ + "https://etherlite-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.etherlite.org", + ], + faucets: ["https://etherlite.org/faucets"], + nativeCurrency: { name: "EtherLite", symbol: "ETL", decimals: 18 }, + infoURL: "https://etherlite.org", + shortName: "ETL", + chainId: 111, + networkId: 111, + icon: { + url: "ipfs://QmbNAai1KnBnw4SPQKgrf6vBddifPCQTg2PePry1bmmZYy", + width: 88, + height: 88, + format: "png", + }, + testnet: !1, + slug: "etherlite-chain", + }, + VMt = { + name: "Dehvo", + chain: "Dehvo", + rpc: [ + "https://dehvo.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://connect.dehvo.com", + "https://rpc.dehvo.com", + "https://rpc1.dehvo.com", + "https://rpc2.dehvo.com", + ], + faucets: ["https://buy.dehvo.com"], + nativeCurrency: { name: "Dehvo", symbol: "Deh", decimals: 18 }, + infoURL: "https://dehvo.com", + shortName: "deh", + chainId: 113, + networkId: 113, + slip44: 714, + explorers: [ + { + name: "Dehvo Explorer", + url: "https://explorer.dehvo.com", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "dehvo", + }, + GMt = { + name: "Flare Testnet Coston2", + chain: "FLR", + icon: { + url: "ipfs://QmZhAYyazEBZSHWNQb9uCkNPq2MNTLoW3mjwiD3955hUjw", + width: 382, + height: 382, + format: "png", + }, + rpc: [ + "https://flare-testnet-coston2.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://coston2-api.flare.network/ext/bc/C/rpc", + ], + faucets: ["https://coston2-faucet.towolabs.com"], + nativeCurrency: { + name: "Coston2 Flare", + symbol: "C2FLR", + decimals: 18, + }, + infoURL: "https://flare.xyz", + shortName: "c2flr", + chainId: 114, + networkId: 114, + explorers: [ + { + name: "blockscout", + url: "https://coston2-explorer.flare.network", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "flare-testnet-coston2", + }, + YMt = { + name: "DeBank Testnet", + chain: "DeBank", + rpc: [], + faucets: [], + icon: { + url: "ipfs://QmW9pBps8WHRRWmyXhjLZrjZJUe8F48hUu7z98bu2RVsjN", + width: 400, + height: 400, + format: "png", + }, + nativeCurrency: { name: "Ether", symbol: "ETH", decimals: 18 }, + infoURL: "https://debank.com", + shortName: "debank-testnet", + chainId: 115, + networkId: 115, + explorers: [], + testnet: !0, + slug: "debank-testnet", + }, + $Mt = { + name: "DeBank Mainnet", + chain: "DeBank", + rpc: [], + faucets: [], + icon: { + url: "ipfs://QmW9pBps8WHRRWmyXhjLZrjZJUe8F48hUu7z98bu2RVsjN", + width: 400, + height: 400, + format: "png", + }, + nativeCurrency: { name: "Ether", symbol: "ETH", decimals: 18 }, + infoURL: "https://debank.com", + shortName: "debank-mainnet", + chainId: 116, + networkId: 116, + explorers: [], + testnet: !1, + slug: "debank", + }, + JMt = { + name: "ENULS Mainnet", + chain: "ENULS", + rpc: [ + "https://enuls.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://evmapi.nuls.io", + "https://evmapi2.nuls.io", + ], + faucets: [], + nativeCurrency: { name: "NULS", symbol: "NULS", decimals: 18 }, + infoURL: "https://nuls.io", + shortName: "enuls", + chainId: 119, + networkId: 119, + icon: { + url: "ipfs://QmYz8LK5WkUN8UwqKfWUjnyLuYqQZWihT7J766YXft4TSy", + width: 26, + height: 41, + format: "svg", + }, + explorers: [ + { + name: "enulsscan", + url: "https://evmscan.nuls.io", + icon: "enuls", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "enuls", + }, + ZMt = { + name: "ENULS Testnet", + chain: "ENULS", + rpc: [ + "https://enuls-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://beta.evmapi.nuls.io", + "https://beta.evmapi2.nuls.io", + ], + faucets: ["http://faucet.nuls.io"], + nativeCurrency: { name: "NULS", symbol: "NULS", decimals: 18 }, + infoURL: "https://nuls.io", + shortName: "enulst", + chainId: 120, + networkId: 120, + icon: { + url: "ipfs://QmYz8LK5WkUN8UwqKfWUjnyLuYqQZWihT7J766YXft4TSy", + width: 26, + height: 41, + format: "svg", + }, + explorers: [ + { + name: "enulsscan", + url: "https://beta.evmscan.nuls.io", + icon: "enuls", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "enuls-testnet", + }, + QMt = { + name: "Realchain Mainnet", + chain: "REAL", + rpc: [ + "https://realchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rcl-dataseed1.rclsidechain.com", + "https://rcl-dataseed2.rclsidechain.com", + "https://rcl-dataseed3.rclsidechain.com", + "https://rcl-dataseed4.rclsidechain.com", + "wss://rcl-dataseed1.rclsidechain.com/v1/", + "wss://rcl-dataseed2.rclsidechain.com/v1/", + "wss://rcl-dataseed3.rclsidechain.com/v1/", + "wss://rcl-dataseed4.rclsidechain.com/v1/", + ], + faucets: ["https://faucet.rclsidechain.com"], + nativeCurrency: { name: "Realchain", symbol: "REAL", decimals: 18 }, + infoURL: "https://www.rclsidechain.com/", + shortName: "REAL", + chainId: 121, + networkId: 121, + slip44: 714, + explorers: [ + { name: "realscan", url: "https://rclscan.com", standard: "EIP3091" }, + ], + testnet: !1, + slug: "realchain", + }, + XMt = { + name: "Fuse Mainnet", + chain: "FUSE", + rpc: [ + "https://fuse.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.fuse.io", + ], + faucets: [], + nativeCurrency: { name: "Fuse", symbol: "FUSE", decimals: 18 }, + infoURL: "https://fuse.io/", + shortName: "fuse", + chainId: 122, + networkId: 122, + testnet: !1, + slug: "fuse", + }, + ePt = { + name: "Fuse Sparknet", + chain: "fuse", + rpc: [ + "https://fuse-sparknet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.fusespark.io", + ], + faucets: ["https://get.fusespark.io"], + nativeCurrency: { name: "Spark", symbol: "SPARK", decimals: 18 }, + infoURL: + "https://docs.fuse.io/general/fuse-network-blockchain/fuse-testnet", + shortName: "spark", + chainId: 123, + networkId: 123, + testnet: !0, + slug: "fuse-sparknet", + }, + tPt = { + name: "Decentralized Web Mainnet", + shortName: "dwu", + chain: "DWU", + chainId: 124, + networkId: 124, + rpc: [ + "https://decentralized-web.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://decentralized-web.tech/dw_rpc.php", + ], + faucets: [], + infoURL: "https://decentralized-web.tech/dw_chain.php", + nativeCurrency: { + name: "Decentralized Web Utility", + symbol: "DWU", + decimals: 18, + }, + testnet: !1, + slug: "decentralized-web", + }, + rPt = { + name: "OYchain Testnet", + chain: "OYchain", + rpc: [ + "https://oychain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.testnet.oychain.io", + ], + faucets: ["https://faucet.oychain.io"], + nativeCurrency: { name: "OYchain Token", symbol: "OY", decimals: 18 }, + infoURL: "https://www.oychain.io", + shortName: "OYchainTestnet", + chainId: 125, + networkId: 125, + slip44: 125, + explorers: [ + { + name: "OYchain Testnet Explorer", + url: "https://explorer.testnet.oychain.io", + standard: "none", + }, + ], + testnet: !0, + slug: "oychain-testnet", + }, + nPt = { + name: "OYchain Mainnet", + chain: "OYchain", + icon: { + url: "ipfs://QmXW5T2MaGHznXUmQEXoyJjcdmX7dhLbj5fnqvZZKqeKzA", + width: 677, + height: 237, + format: "png", + }, + rpc: [ + "https://oychain.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.mainnet.oychain.io", + ], + faucets: [], + nativeCurrency: { name: "OYchain Token", symbol: "OY", decimals: 18 }, + infoURL: "https://www.oychain.io", + shortName: "OYchainMainnet", + chainId: 126, + networkId: 126, + slip44: 126, + explorers: [ + { + name: "OYchain Mainnet Explorer", + url: "https://explorer.oychain.io", + standard: "none", + }, + ], + testnet: !1, + slug: "oychain", + }, + aPt = { + name: "Factory 127 Mainnet", + chain: "FETH", + rpc: [], + faucets: [], + nativeCurrency: { + name: "Factory 127 Token", + symbol: "FETH", + decimals: 18, + }, + infoURL: "https://www.factory127.com", + shortName: "feth", + chainId: 127, + networkId: 127, + slip44: 127, + testnet: !1, + slug: "factory-127", + }, + iPt = { + name: "Huobi ECO Chain Mainnet", + chain: "Heco", + rpc: [ + "https://huobi-eco-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://http-mainnet.hecochain.com", + "wss://ws-mainnet.hecochain.com", + ], + faucets: ["https://free-online-app.com/faucet-for-eth-evm-chains/"], + nativeCurrency: { + name: "Huobi ECO Chain Native Token", + symbol: "HT", + decimals: 18, + }, + infoURL: "https://www.hecochain.com", + shortName: "heco", + chainId: 128, + networkId: 128, + slip44: 1010, + explorers: [ + { + name: "hecoinfo", + url: "https://hecoinfo.com", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "huobi-eco-chain", + }, + sPt = { + name: "Alyx Chain Testnet", + chain: "Alyx Chain Testnet", + rpc: [ + "https://alyx-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://testnet-rpc.alyxchain.com", + ], + faucets: ["https://faucet.alyxchain.com"], + nativeCurrency: { + name: "Alyx Testnet Native Token", + symbol: "ALYX", + decimals: 18, + }, + infoURL: "https://www.alyxchain.com", + shortName: "AlyxTestnet", + chainId: 135, + networkId: 135, + explorers: [ + { + name: "alyx testnet scan", + url: "https://testnet.alyxscan.com", + standard: "EIP3091", + }, + ], + icon: { + url: "ipfs://bafkreifd43fcvh77mdcwjrpzpnlhthounc6b4u645kukqpqhduaveatf6i", + width: 2481, + height: 2481, + format: "png", + }, + testnet: !0, + slug: "alyx-chain-testnet", + }, + oPt = { + name: "Polygon Mainnet", + chain: "Polygon", + icon: { + url: "ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/polygon/512.png", + height: 512, + width: 512, + format: "png", + sizes: [512, 256, 128, 64, 32, 16], + }, + rpc: [ + "https://polygon.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://polygon-mainnet.g.alchemy.com/v2/${ALCHEMY_API_KEY}", + "https://polygon-mainnet.infura.io/v3/${INFURA_API_KEY}", + "https://polygon-rpc.com/", + "https://rpc-mainnet.matic.network", + "https://matic-mainnet.chainstacklabs.com", + "https://rpc-mainnet.maticvigil.com", + "https://rpc-mainnet.matic.quiknode.pro", + "https://matic-mainnet-full-rpc.bwarelabs.com", + "https://polygon-bor.publicnode.com", + ], + faucets: [], + nativeCurrency: { name: "MATIC", symbol: "MATIC", decimals: 18 }, + infoURL: "https://polygon.technology/", + shortName: "matic", + chainId: 137, + networkId: 137, + slip44: 966, + explorers: [ + { + name: "polygonscan", + url: "https://polygonscan.com", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "polygon", + }, + cPt = { + name: "Openpiece Testnet", + chain: "OPENPIECE", + icon: { + url: "ipfs://QmVTahJkdSH3HPYsJMK2GmqfWZjLyxE7cXy1aHEnHU3vp2", + width: 250, + height: 250, + format: "png", + }, + rpc: [ + "https://openpiece-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://testnet.openpiece.io", + ], + faucets: [], + nativeCurrency: { name: "Belly", symbol: "BELLY", decimals: 18 }, + infoURL: "https://cryptopiece.online", + shortName: "OPtest", + chainId: 141, + networkId: 141, + explorers: [ + { + name: "Belly Scan", + url: "https://testnet.bellyscan.com", + standard: "none", + }, + ], + testnet: !0, + slug: "openpiece-testnet", + }, + uPt = { + name: "DAX CHAIN", + chain: "DAX", + rpc: [ + "https://dax-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.prodax.io", + ], + faucets: [], + nativeCurrency: { name: "Prodax", symbol: "DAX", decimals: 18 }, + infoURL: "https://prodax.io/", + shortName: "dax", + chainId: 142, + networkId: 142, + testnet: !1, + slug: "dax-chain", + }, + lPt = { + name: "PHI Network v2", + chain: "PHI", + rpc: [ + "https://phi-network-v2.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://connect.phi.network", + ], + faucets: [], + nativeCurrency: { name: "PHI", symbol: "\u03A6", decimals: 18 }, + infoURL: "https://phi.network", + shortName: "PHI", + chainId: 144, + networkId: 144, + icon: { + url: "ipfs://bafkreid6pm3mic7izp3a6zlfwhhe7etd276bjfsq2xash6a4s2vmcdf65a", + width: 512, + height: 512, + format: "png", + }, + explorers: [ + { + name: "Phiscan", + url: "https://phiscan.com", + icon: "phi", + standard: "none", + }, + ], + testnet: !1, + slug: "phi-network-v2", + }, + dPt = { + name: "Armonia Eva Chain Mainnet", + chain: "Eva", + rpc: [ + "https://armonia-eva-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://evascan.io/api/eth-rpc/", + ], + faucets: [], + nativeCurrency: { + name: "Armonia Multichain Native Token", + symbol: "AMAX", + decimals: 18, + }, + infoURL: "https://amax.network", + shortName: "eva", + chainId: 160, + networkId: 160, + status: "incubating", + testnet: !1, + slug: "armonia-eva-chain", + }, + pPt = { + name: "Armonia Eva Chain Testnet", + chain: "Wall-e", + rpc: [ + "https://armonia-eva-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://testnet.evascan.io/api/eth-rpc/", + ], + faucets: [], + nativeCurrency: { + name: "Armonia Multichain Native Token", + symbol: "AMAX", + decimals: 18, + }, + infoURL: "https://amax.network", + shortName: "wall-e", + chainId: 161, + networkId: 161, + explorers: [ + { + name: "blockscout - evascan", + url: "https://testnet.evascan.io", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "armonia-eva-chain-testnet", + }, + hPt = { + name: "Lightstreams Testnet", + chain: "PHT", + rpc: [ + "https://lightstreams-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://node.sirius.lightstreams.io", + ], + faucets: ["https://discuss.lightstreams.network/t/request-test-tokens"], + nativeCurrency: { + name: "Lightstreams PHT", + symbol: "PHT", + decimals: 18, + }, + infoURL: "https://explorer.sirius.lightstreams.io", + shortName: "tpht", + chainId: 162, + networkId: 162, + testnet: !0, + slug: "lightstreams-testnet", + }, + fPt = { + name: "Lightstreams Mainnet", + chain: "PHT", + rpc: [ + "https://lightstreams.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://node.mainnet.lightstreams.io", + ], + faucets: [], + nativeCurrency: { + name: "Lightstreams PHT", + symbol: "PHT", + decimals: 18, + }, + infoURL: "https://explorer.lightstreams.io", + shortName: "pht", + chainId: 163, + networkId: 163, + testnet: !1, + slug: "lightstreams", + }, + mPt = { + name: "Atoshi Testnet", + chain: "ATOSHI", + icon: { + url: "ipfs://QmfFK6B4MFLrpSS46aLf7hjpt28poHFeTGEKEuH248Tbyj", + width: 200, + height: 200, + format: "png", + }, + rpc: [ + "https://atoshi-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://node.atoshi.io/", + ], + faucets: [], + nativeCurrency: { name: "ATOSHI", symbol: "ATOS", decimals: 18 }, + infoURL: "https://atoshi.org", + shortName: "atoshi", + chainId: 167, + networkId: 167, + explorers: [ + { + name: "atoshiscan", + url: "https://scan.atoverse.info", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "atoshi-testnet", + }, + yPt = { + name: "AIOZ Network", + chain: "AIOZ", + icon: { + url: "ipfs://QmRAGPFhvQiXgoJkui7WHajpKctGFrJNhHqzYdwcWt5V3Z", + width: 1024, + height: 1024, + format: "png", + }, + rpc: [ + "https://aioz-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://eth-dataseed.aioz.network", + ], + faucets: [], + nativeCurrency: { name: "AIOZ", symbol: "AIOZ", decimals: 18 }, + infoURL: "https://aioz.network", + shortName: "aioz", + chainId: 168, + networkId: 168, + slip44: 60, + explorers: [ + { + name: "AIOZ Network Explorer", + url: "https://explorer.aioz.network", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "aioz-network", + }, + gPt = { + name: "HOO Smart Chain Testnet", + chain: "ETH", + rpc: [ + "https://hoo-smart-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://http-testnet.hoosmartchain.com", + ], + faucets: ["https://faucet-testnet.hscscan.com/"], + nativeCurrency: { name: "HOO", symbol: "HOO", decimals: 18 }, + infoURL: "https://www.hoosmartchain.com", + shortName: "hoosmartchain", + chainId: 170, + networkId: 170, + testnet: !0, + slug: "hoo-smart-chain-testnet", + }, + bPt = { + name: "Latam-Blockchain Resil Testnet", + chain: "Resil", + rpc: [ + "https://latam-blockchain-resil-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.latam-blockchain.com", + "wss://ws.latam-blockchain.com", + ], + faucets: ["https://faucet.latam-blockchain.com"], + nativeCurrency: { + name: "Latam-Blockchain Resil Test Native Token", + symbol: "usd", + decimals: 18, + }, + infoURL: "https://latam-blockchain.com", + shortName: "resil", + chainId: 172, + networkId: 172, + testnet: !0, + slug: "latam-blockchain-resil-testnet", + }, + vPt = { + name: "AME Chain Mainnet", + chain: "AME", + rpc: [ + "https://ame-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://node1.amechain.io/", + ], + faucets: [], + nativeCurrency: { name: "AME", symbol: "AME", decimals: 18 }, + infoURL: "https://amechain.io/", + shortName: "ame", + chainId: 180, + networkId: 180, + explorers: [ + { name: "AME Scan", url: "https://amescan.io", standard: "EIP3091" }, + ], + testnet: !1, + slug: "ame-chain", + }, + wPt = { + name: "Seele Mainnet", + chain: "Seele", + rpc: [ + "https://seele.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.seelen.pro/", + ], + faucets: [], + nativeCurrency: { name: "Seele", symbol: "Seele", decimals: 18 }, + infoURL: "https://seelen.pro/", + shortName: "Seele", + chainId: 186, + networkId: 186, + explorers: [ + { name: "seeleview", url: "https://seeleview.net", standard: "none" }, + ], + testnet: !1, + slug: "seele", + }, + _Pt = { + name: "BMC Mainnet", + chain: "BMC", + rpc: [ + "https://bmc.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://mainnet.bmcchain.com/", + ], + faucets: [], + nativeCurrency: { name: "BTM", symbol: "BTM", decimals: 18 }, + infoURL: "https://bmc.bytom.io/", + shortName: "BMC", + chainId: 188, + networkId: 188, + explorers: [ + { + name: "Blockmeta", + url: "https://bmc.blockmeta.com", + standard: "none", + }, + ], + testnet: !1, + slug: "bmc", + }, + xPt = { + name: "BMC Testnet", + chain: "BMC", + rpc: [ + "https://bmc-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://testnet.bmcchain.com", + ], + faucets: [], + nativeCurrency: { name: "BTM", symbol: "BTM", decimals: 18 }, + infoURL: "https://bmc.bytom.io/", + shortName: "BMCT", + chainId: 189, + networkId: 189, + explorers: [ + { + name: "Blockmeta", + url: "https://bmctestnet.blockmeta.com", + standard: "none", + }, + ], + testnet: !0, + slug: "bmc-testnet", + }, + TPt = { + name: "Crypto Emergency", + chain: "CEM", + rpc: [ + "https://crypto-emergency.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://cemchain.com", + ], + faucets: [], + nativeCurrency: { + name: "Crypto Emergency", + symbol: "CEM", + decimals: 18, + }, + infoURL: "https://cemblockchain.com/", + shortName: "cem", + chainId: 193, + networkId: 193, + explorers: [ + { name: "cemscan", url: "https://cemscan.com", standard: "EIP3091" }, + ], + testnet: !1, + slug: "crypto-emergency", + }, + EPt = { + name: "BitTorrent Chain Mainnet", + chain: "BTTC", + rpc: [ + "https://bittorrent-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.bittorrentchain.io/", + ], + faucets: [], + nativeCurrency: { name: "BitTorrent", symbol: "BTT", decimals: 18 }, + infoURL: "https://bittorrentchain.io/", + shortName: "BTT", + chainId: 199, + networkId: 199, + explorers: [ + { + name: "bttcscan", + url: "https://scan.bittorrentchain.io", + standard: "none", + }, + ], + testnet: !1, + slug: "bittorrent-chain", + }, + CPt = { + name: "Arbitrum on xDai", + chain: "AOX", + rpc: [ + "https://arbitrum-on-xdai.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://arbitrum.xdaichain.com/", + ], + faucets: [], + nativeCurrency: { name: "xDAI", symbol: "xDAI", decimals: 18 }, + infoURL: "https://xdaichain.com", + shortName: "aox", + chainId: 200, + networkId: 200, + explorers: [ + { + name: "blockscout", + url: "https://blockscout.com/xdai/arbitrum", + standard: "EIP3091", + }, + ], + parent: { chain: "eip155-100", type: "L2" }, + testnet: !1, + slug: "arbitrum-on-xdai", + }, + IPt = { + name: "MOAC testnet", + chain: "MOAC", + rpc: [ + "https://moac-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://gateway.moac.io/testnet", + ], + faucets: [], + nativeCurrency: { name: "MOAC", symbol: "mc", decimals: 18 }, + infoURL: "https://moac.io", + shortName: "moactest", + chainId: 201, + networkId: 201, + explorers: [ + { + name: "moac testnet explorer", + url: "https://testnet.moac.io", + standard: "none", + }, + ], + testnet: !0, + slug: "moac-testnet", + }, + APt = { + name: "Freight Trust Network", + chain: "EDI", + rpc: [ + "https://freight-trust-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "http://13.57.207.168:3435", + "https://app.freighttrust.net/ftn/${API_KEY}", + ], + faucets: ["http://faucet.freight.sh"], + nativeCurrency: { + name: "Freight Trust Native", + symbol: "0xF", + decimals: 18, + }, + infoURL: "https://freighttrust.com", + shortName: "EDI", + chainId: 211, + networkId: 0, + testnet: !1, + slug: "freight-trust-network", + }, + kPt = { + name: "MAP Makalu", + title: "MAP Testnet Makalu", + chain: "MAP", + rpc: [ + "https://map-makalu.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://testnet-rpc.maplabs.io", + ], + faucets: ["https://faucet.maplabs.io"], + nativeCurrency: { name: "Makalu MAP", symbol: "MAP", decimals: 18 }, + infoURL: "https://maplabs.io", + shortName: "makalu", + chainId: 212, + networkId: 212, + explorers: [ + { + name: "mapscan", + url: "https://testnet.mapscan.io", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "map-makalu", + }, + SPt = { + name: "SiriusNet V2", + chain: "SIN2", + faucets: [], + rpc: [ + "https://siriusnet-v2.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc2.siriusnet.io", + ], + icon: { + url: "ipfs://bafybeicxuxdzrzpwsil4owqmn7wpwka2rqsohpfqmukg57pifzyxr5om2q", + width: 100, + height: 100, + format: "png", + }, + nativeCurrency: { name: "MCD", symbol: "MCD", decimals: 18 }, + infoURL: "https://siriusnet.io", + shortName: "SIN2", + chainId: 217, + networkId: 217, + explorers: [ + { + name: "siriusnet explorer", + url: "https://scan.siriusnet.io", + standard: "none", + }, + ], + testnet: !1, + slug: "siriusnet-v2", + }, + MPt = { + name: "LACHAIN Mainnet", + chain: "LA", + icon: { + url: "ipfs://QmQxGA6rhuCQDXUueVcNvFRhMEWisyTmnF57TqL7h6k6cZ", + width: 1280, + height: 1280, + format: "png", + }, + rpc: [ + "https://lachain.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc-mainnet.lachain.io", + ], + faucets: [], + nativeCurrency: { name: "LA", symbol: "LA", decimals: 18 }, + infoURL: "https://lachain.io", + shortName: "LA", + chainId: 225, + networkId: 225, + explorers: [ + { + name: "blockscout", + url: "https://scan.lachain.io", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "lachain", + }, + PPt = { + name: "LACHAIN Testnet", + chain: "TLA", + icon: { + url: "ipfs://QmQxGA6rhuCQDXUueVcNvFRhMEWisyTmnF57TqL7h6k6cZ", + width: 1280, + height: 1280, + format: "png", + }, + rpc: [ + "https://lachain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc-testnet.lachain.io", + ], + faucets: [], + nativeCurrency: { name: "TLA", symbol: "TLA", decimals: 18 }, + infoURL: "https://lachain.io", + shortName: "TLA", + chainId: 226, + networkId: 226, + explorers: [ + { + name: "blockscout", + url: "https://scan-test.lachain.io", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "lachain-testnet", + }, + RPt = { + name: "Energy Web Chain", + chain: "Energy Web Chain", + rpc: [ + "https://energy-web-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.energyweb.org", + "wss://rpc.energyweb.org/ws", + ], + faucets: [ + "https://faucet.carbonswap.exchange", + "https://free-online-app.com/faucet-for-eth-evm-chains/", + ], + nativeCurrency: { + name: "Energy Web Token", + symbol: "EWT", + decimals: 18, + }, + infoURL: "https://energyweb.org", + shortName: "ewt", + chainId: 246, + networkId: 246, + slip44: 246, + explorers: [ + { + name: "blockscout", + url: "https://explorer.energyweb.org", + standard: "none", + }, + ], + testnet: !1, + slug: "energy-web-chain", + }, + BPt = { + name: "Oasys Mainnet", + chain: "Oasys", + icon: { + url: "ipfs://QmT84suD2ZmTSraJBfeHhTNst2vXctQijNCztok9XiVcUR", + width: 3600, + height: 3600, + format: "png", + }, + rpc: [ + "https://oasys.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.mainnet.oasys.games", + ], + faucets: [], + nativeCurrency: { name: "OAS", symbol: "OAS", decimals: 18 }, + infoURL: "https://oasys.games", + shortName: "OAS", + chainId: 248, + networkId: 248, + explorers: [ + { + name: "blockscout", + url: "https://explorer.oasys.games", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "oasys", + }, + NPt = { + name: "Fantom Opera", + chain: "FTM", + rpc: [ + "https://fantom.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.ftm.tools", + ], + faucets: ["https://free-online-app.com/faucet-for-eth-evm-chains/"], + nativeCurrency: { name: "Fantom", symbol: "FTM", decimals: 18 }, + infoURL: "https://fantom.foundation", + shortName: "ftm", + chainId: 250, + networkId: 250, + icon: { + url: "ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/fantom/512.png", + height: 512, + width: 512, + format: "png", + sizes: [512, 256, 128, 64, 32, 16], + }, + explorers: [ + { + name: "ftmscan", + url: "https://ftmscan.com", + icon: "ftmscan", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "fantom", + }, + OPt = { + name: "Huobi ECO Chain Testnet", + chain: "Heco", + rpc: [ + "https://huobi-eco-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://http-testnet.hecochain.com", + "wss://ws-testnet.hecochain.com", + ], + faucets: ["https://scan-testnet.hecochain.com/faucet"], + nativeCurrency: { + name: "Huobi ECO Chain Test Native Token", + symbol: "htt", + decimals: 18, + }, + infoURL: "https://testnet.hecoinfo.com", + shortName: "hecot", + chainId: 256, + networkId: 256, + testnet: !0, + slug: "huobi-eco-chain-testnet", + }, + LPt = { + name: "Setheum", + chain: "Setheum", + rpc: [], + faucets: [], + nativeCurrency: { name: "Setheum", symbol: "SETM", decimals: 18 }, + infoURL: "https://setheum.xyz", + shortName: "setm", + chainId: 258, + networkId: 258, + testnet: !1, + slug: "setheum", + }, + DPt = { + name: "SUR Blockchain Network", + chain: "SUR", + rpc: [ + "https://sur-blockchain-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://sur.nilin.org", + ], + faucets: [], + nativeCurrency: { name: "Suren", symbol: "SRN", decimals: 18 }, + infoURL: "https://surnet.org", + shortName: "SUR", + chainId: 262, + networkId: 1, + icon: { + url: "ipfs://QmbUcDQHCvheYQrWk9WFJRMW5fTJQmtZqkoGUed4bhCM7T", + width: 3e3, + height: 3e3, + format: "png", + }, + explorers: [ + { + name: "Surnet Explorer", + url: "https://explorer.surnet.org", + icon: "SUR", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "sur-blockchain-network", + }, + qPt = { + name: "High Performance Blockchain", + chain: "HPB", + rpc: [ + "https://high-performance-blockchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://hpbnode.com", + "wss://ws.hpbnode.com", + ], + faucets: ["https://myhpbwallet.com/"], + nativeCurrency: { + name: "High Performance Blockchain Ether", + symbol: "HPB", + decimals: 18, + }, + infoURL: "https://hpb.io", + shortName: "hpb", + chainId: 269, + networkId: 269, + slip44: 269, + explorers: [ + { name: "hscan", url: "https://hscan.org", standard: "EIP3091" }, + ], + testnet: !1, + slug: "high-performance-blockchain", + }, + FPt = { + name: "zkSync Era Testnet", + chain: "ETH", + rpc: [ + "https://zksync-era-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://zksync2-testnet.zksync.dev", + ], + faucets: ["https://goerli.portal.zksync.io/faucet"], + nativeCurrency: { name: "Ether", symbol: "ETH", decimals: 18 }, + infoURL: "https://era.zksync.io/docs/", + shortName: "zksync-goerli", + chainId: 280, + networkId: 280, + icon: { + url: "ipfs://Qma6H9xd8Ydah1bAFnmDuau1jeMh5NjGEL8tpdnjLbJ7m2", + width: 512, + height: 512, + format: "svg", + }, + explorers: [ + { + name: "zkSync Era Block Explorer", + url: "https://goerli.explorer.zksync.io", + icon: "zksync-era", + standard: "EIP3091", + }, + ], + parent: { + type: "L2", + chain: "eip155-1", + bridges: [{ url: "https://goerli.portal.zksync.io/bridge" }], + }, + testnet: !0, + slug: "zksync-era-testnet", + }, + WPt = { + name: "Boba Network", + chain: "ETH", + rpc: [ + "https://boba-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://mainnet.boba.network/", + ], + faucets: [], + nativeCurrency: { name: "Ether", symbol: "ETH", decimals: 18 }, + infoURL: "https://boba.network", + shortName: "Boba", + chainId: 288, + networkId: 288, + explorers: [ + { name: "Bobascan", url: "https://bobascan.com", standard: "none" }, + { + name: "Blockscout", + url: "https://blockexplorer.boba.network", + standard: "none", + }, + ], + parent: { + type: "L2", + chain: "eip155-1", + bridges: [{ url: "https://gateway.boba.network" }], + }, + testnet: !1, + slug: "boba-network", + }, + UPt = { + name: "Hedera Mainnet", + chain: "Hedera", + icon: { + url: "ipfs://QmQikzhvZKyMmbZJd7BVLZb2YTBDMgNDnaMCAErsVjsfuz", + width: 1500, + height: 1500, + format: "png", + }, + rpc: [ + "https://hedera.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://mainnet.hashio.io/api", + ], + features: [{ name: "EIP155" }, { name: "EIP1559" }], + faucets: [], + nativeCurrency: { name: "hbar", symbol: "HBAR", decimals: 8 }, + infoURL: "https://hedera.com", + shortName: "hedera-mainnet", + chainId: 295, + networkId: 295, + slip44: 3030, + explorers: [ + { + name: "HashScan", + url: "https://hashscan.io/mainnet/dashboard", + standard: "none", + }, + { + name: "Arkhia Explorer", + url: "https://explorer.arkhia.io", + standard: "none", + }, + { + name: "DragonGlass", + url: "https://app.dragonglass.me", + standard: "none", + }, + { + name: "Hedera Explorer", + url: "https://hederaexplorer.io", + standard: "none", + }, + { + name: "Ledger Works Explore", + url: "https://explore.lworks.io", + standard: "none", + }, + ], + testnet: !1, + slug: "hedera", + }, + HPt = { + name: "Hedera Testnet", + chain: "Hedera", + icon: { + url: "ipfs://QmQikzhvZKyMmbZJd7BVLZb2YTBDMgNDnaMCAErsVjsfuz", + width: 1500, + height: 1500, + format: "png", + }, + rpc: [ + "https://hedera-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://testnet.hashio.io/api", + ], + features: [{ name: "EIP155" }, { name: "EIP1559" }], + faucets: ["https://portal.hedera.com"], + nativeCurrency: { name: "hbar", symbol: "HBAR", decimals: 8 }, + infoURL: "https://hedera.com", + shortName: "hedera-testnet", + chainId: 296, + networkId: 296, + slip44: 3030, + explorers: [ + { + name: "HashScan", + url: "https://hashscan.io/testnet/dashboard", + standard: "none", + }, + { + name: "Arkhia Explorer", + url: "https://explorer.arkhia.io", + standard: "none", + }, + { + name: "DragonGlass", + url: "https://app.dragonglass.me", + standard: "none", + }, + { + name: "Hedera Explorer", + url: "https://hederaexplorer.io", + standard: "none", + }, + { + name: "Ledger Works Explore", + url: "https://explore.lworks.io", + standard: "none", + }, + ], + testnet: !0, + slug: "hedera-testnet", + }, + zPt = { + name: "Hedera Previewnet", + chain: "Hedera", + icon: { + url: "ipfs://QmQikzhvZKyMmbZJd7BVLZb2YTBDMgNDnaMCAErsVjsfuz", + width: 1500, + height: 1500, + format: "png", + }, + rpc: [ + "https://hedera-previewnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://previewnet.hashio.io/api", + ], + features: [{ name: "EIP155" }, { name: "EIP1559" }], + faucets: ["https://portal.hedera.com"], + nativeCurrency: { name: "hbar", symbol: "HBAR", decimals: 8 }, + infoURL: "https://hedera.com", + shortName: "hedera-previewnet", + chainId: 297, + networkId: 297, + slip44: 3030, + explorers: [ + { + name: "HashScan", + url: "https://hashscan.io/previewnet/dashboard", + standard: "none", + }, + ], + testnet: !1, + slug: "hedera-previewnet", + }, + jPt = { + name: "Hedera Localnet", + chain: "Hedera", + icon: { + url: "ipfs://QmQikzhvZKyMmbZJd7BVLZb2YTBDMgNDnaMCAErsVjsfuz", + width: 1500, + height: 1500, + format: "png", + }, + rpc: [], + features: [{ name: "EIP155" }, { name: "EIP1559" }], + faucets: [], + nativeCurrency: { name: "hbar", symbol: "HBAR", decimals: 8 }, + infoURL: "https://hedera.com", + shortName: "hedera-localnet", + chainId: 298, + networkId: 298, + slip44: 3030, + explorers: [], + testnet: !1, + slug: "hedera-localnet", + }, + KPt = { + name: "Optimism on Gnosis", + chain: "OGC", + rpc: [ + "https://optimism-on-gnosis.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://optimism.gnosischain.com", + "wss://optimism.gnosischain.com/wss", + ], + faucets: ["https://faucet.gimlu.com/gnosis"], + nativeCurrency: { name: "xDAI", symbol: "xDAI", decimals: 18 }, + infoURL: + "https://www.xdaichain.com/for-developers/optimism-optimistic-rollups-on-gc", + shortName: "ogc", + chainId: 300, + networkId: 300, + explorers: [ + { + name: "blockscout", + url: "https://blockscout.com/xdai/optimism", + icon: "blockscout", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "optimism-on-gnosis", + }, + VPt = { + name: "Bobaopera", + chain: "Bobaopera", + rpc: [ + "https://bobaopera.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://bobaopera.boba.network", + "wss://wss.bobaopera.boba.network", + "https://replica.bobaopera.boba.network", + "wss://replica-wss.bobaopera.boba.network", + ], + faucets: [], + nativeCurrency: { name: "Boba Token", symbol: "BOBA", decimals: 18 }, + infoURL: "https://boba.network", + shortName: "Bobaopera", + chainId: 301, + networkId: 301, + explorers: [ + { + name: "Bobaopera block explorer", + url: "https://blockexplorer.bobaopera.boba.network", + standard: "none", + }, + ], + testnet: !1, + slug: "bobaopera", + }, + GPt = { + name: "Omax Mainnet", + chain: "OMAX Chain", + rpc: [ + "https://omax.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://mainapi.omaxray.com", + ], + faucets: ["https://faucet.omaxray.com/"], + nativeCurrency: { name: "OMAX COIN", symbol: "OMAX", decimals: 18 }, + infoURL: "https://www.omaxcoin.com/", + shortName: "omax", + chainId: 311, + networkId: 311, + icon: { + url: "ipfs://Qmd7omPxrehSuxHHPMYd5Nr7nfrtjKdRJQEhDLfTb87w8G", + width: 500, + height: 500, + format: "png", + }, + explorers: [ + { + name: "Omax Chain Explorer", + url: "https://omaxray.com", + icon: "omaxray", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "omax", + }, + YPt = { + name: "Filecoin - Mainnet", + chain: "FIL", + icon: { + url: "ipfs://QmS9r9XQkMHVomWcSBNDkKkz9n87h9bH9ssabeiKZtANoU", + width: 1e3, + height: 1e3, + format: "png", + }, + rpc: [ + "https://filecoin.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://api.node.glif.io/", + "https://rpc.ankr.com/filecoin", + ], + faucets: [], + nativeCurrency: { name: "filecoin", symbol: "FIL", decimals: 18 }, + infoURL: "https://filecoin.io", + shortName: "filecoin", + chainId: 314, + networkId: 314, + slip44: 461, + explorers: [ + { name: "Filfox", url: "https://filfox.info/en", standard: "none" }, + { name: "Filscan", url: "https://filscan.io", standard: "none" }, + { name: "Filscout", url: "https://filscout.io/en", standard: "none" }, + ], + testnet: !1, + slug: "filecoin", + }, + $Pt = { + name: "KCC Mainnet", + chain: "KCC", + rpc: [ + "https://kcc.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc-mainnet.kcc.network", + "https://kcc.mytokenpocket.vip", + "https://public-rpc.blockpi.io/http/kcc", + ], + faucets: [ + "https://faucet.kcc.io/", + "https://free-online-app.com/faucet-for-eth-evm-chains/", + ], + nativeCurrency: { name: "KuCoin Token", symbol: "KCS", decimals: 18 }, + infoURL: "https://kcc.io", + shortName: "kcs", + chainId: 321, + networkId: 321, + slip44: 641, + explorers: [ + { + name: "KCC Explorer", + url: "https://explorer.kcc.io/en", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "kcc", + }, + JPt = { + name: "KCC Testnet", + chain: "KCC", + rpc: [ + "https://kcc-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc-testnet.kcc.network", + ], + faucets: ["https://faucet-testnet.kcc.network"], + nativeCurrency: { + name: "KuCoin Testnet Token", + symbol: "tKCS", + decimals: 18, + }, + infoURL: "https://scan-testnet.kcc.network", + shortName: "kcst", + chainId: 322, + networkId: 322, + explorers: [ + { + name: "kcc-scan-testnet", + url: "https://scan-testnet.kcc.network", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "kcc-testnet", + }, + ZPt = { + name: "zkSync Era Mainnet", + chain: "ETH", + rpc: [ + "https://zksync-era.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://zksync2-mainnet.zksync.io", + ], + faucets: [], + nativeCurrency: { name: "Ether", symbol: "ETH", decimals: 18 }, + infoURL: "https://zksync.io/", + shortName: "zksync", + chainId: 324, + networkId: 324, + icon: { + url: "ipfs://Qma6H9xd8Ydah1bAFnmDuau1jeMh5NjGEL8tpdnjLbJ7m2", + width: 512, + height: 512, + format: "svg", + }, + explorers: [ + { + name: "zkSync Era Block Explorer", + url: "https://explorer.zksync.io", + icon: "zksync-era", + standard: "EIP3091", + }, + ], + parent: { + type: "L2", + chain: "eip155-1", + bridges: [{ url: "https://portal.zksync.io/bridge" }], + }, + testnet: !1, + slug: "zksync-era", + }, + QPt = { + name: "Web3Q Mainnet", + chain: "Web3Q", + rpc: [ + "https://web3q.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://mainnet.web3q.io:8545", + ], + faucets: [], + nativeCurrency: { name: "Web3Q", symbol: "W3Q", decimals: 18 }, + infoURL: "https://web3q.io/home.w3q/", + shortName: "w3q", + chainId: 333, + networkId: 333, + explorers: [ + { + name: "w3q-mainnet", + url: "https://explorer.mainnet.web3q.io", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "web3q", + }, + XPt = { + name: "DFK Chain Test", + chain: "DFK", + icon: { + url: "ipfs://QmQB48m15TzhUFrmu56QCRQjkrkgUaKfgCmKE8o3RzmuPJ", + width: 500, + height: 500, + format: "png", + }, + rpc: [ + "https://dfk-chain-test.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://subnets.avax.network/defi-kingdoms/dfk-chain-testnet/rpc", + ], + faucets: [], + nativeCurrency: { name: "Jewel", symbol: "JEWEL", decimals: 18 }, + infoURL: "https://defikingdoms.com", + shortName: "DFKTEST", + chainId: 335, + networkId: 335, + explorers: [ + { + name: "ethernal", + url: "https://explorer-test.dfkchain.com", + icon: "ethereum", + standard: "none", + }, + ], + testnet: !0, + slug: "dfk-chain-test", + }, + e9t = { + name: "Shiden", + chain: "SDN", + rpc: [ + "https://shiden.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://shiden.api.onfinality.io/public", + "https://shiden-rpc.dwellir.com", + "https://shiden.public.blastapi.io", + "wss://shiden.api.onfinality.io/public-ws", + "wss://shiden.public.blastapi.io", + "wss://shiden-rpc.dwellir.com", + ], + faucets: [], + nativeCurrency: { name: "Shiden", symbol: "SDN", decimals: 18 }, + infoURL: "https://shiden.astar.network/", + shortName: "sdn", + chainId: 336, + networkId: 336, + icon: { + url: "ipfs://QmQySjAoWHgk3ou1yvBi2TrTcgH6KhfGiU7GcrLzrAeRkE", + width: 250, + height: 250, + format: "png", + }, + explorers: [ + { + name: "subscan", + url: "https://shiden.subscan.io", + standard: "none", + icon: "subscan", + }, + ], + testnet: !1, + slug: "shiden", + }, + t9t = { + name: "Cronos Testnet", + chain: "CRO", + rpc: [ + "https://cronos-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://evm-t3.cronos.org", + ], + faucets: ["https://cronos.org/faucet"], + nativeCurrency: { + name: "Cronos Test Coin", + symbol: "TCRO", + decimals: 18, + }, + infoURL: "https://cronos.org", + shortName: "tcro", + chainId: 338, + networkId: 338, + explorers: [ + { + name: "Cronos Testnet Explorer", + url: "https://testnet.cronoscan.com", + standard: "none", + }, + ], + testnet: !0, + slug: "cronos-testnet", + }, + r9t = { + name: "Theta Mainnet", + chain: "Theta", + rpc: [ + "https://theta.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://eth-rpc-api.thetatoken.org/rpc", + ], + faucets: [], + nativeCurrency: { name: "Theta Fuel", symbol: "TFUEL", decimals: 18 }, + infoURL: "https://www.thetatoken.org/", + shortName: "theta-mainnet", + chainId: 361, + networkId: 361, + explorers: [ + { + name: "Theta Mainnet Explorer", + url: "https://explorer.thetatoken.org", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "theta", + }, + n9t = { + name: "Theta Sapphire Testnet", + chain: "Theta", + rpc: [ + "https://theta-sapphire-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://eth-rpc-api-sapphire.thetatoken.org/rpc", + ], + faucets: [], + nativeCurrency: { name: "Theta Fuel", symbol: "TFUEL", decimals: 18 }, + infoURL: "https://www.thetatoken.org/", + shortName: "theta-sapphire", + chainId: 363, + networkId: 363, + explorers: [ + { + name: "Theta Sapphire Testnet Explorer", + url: "https://guardian-testnet-sapphire-explorer.thetatoken.org", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "theta-sapphire-testnet", + }, + a9t = { + name: "Theta Amber Testnet", + chain: "Theta", + rpc: [ + "https://theta-amber-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://eth-rpc-api-amber.thetatoken.org/rpc", + ], + faucets: [], + nativeCurrency: { name: "Theta Fuel", symbol: "TFUEL", decimals: 18 }, + infoURL: "https://www.thetatoken.org/", + shortName: "theta-amber", + chainId: 364, + networkId: 364, + explorers: [ + { + name: "Theta Amber Testnet Explorer", + url: "https://guardian-testnet-amber-explorer.thetatoken.org", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "theta-amber-testnet", + }, + i9t = { + name: "Theta Testnet", + chain: "Theta", + rpc: [ + "https://theta-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://eth-rpc-api-testnet.thetatoken.org/rpc", + ], + faucets: [], + nativeCurrency: { name: "Theta Fuel", symbol: "TFUEL", decimals: 18 }, + infoURL: "https://www.thetatoken.org/", + shortName: "theta-testnet", + chainId: 365, + networkId: 365, + explorers: [ + { + name: "Theta Testnet Explorer", + url: "https://testnet-explorer.thetatoken.org", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "theta-testnet", + }, + s9t = { + name: "PulseChain Mainnet", + shortName: "pls", + chain: "PLS", + chainId: 369, + networkId: 369, + infoURL: "https://pulsechain.com/", + rpc: [ + "https://pulsechain.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.mainnet.pulsechain.com/", + "wss://rpc.mainnet.pulsechain.com/", + ], + faucets: [], + nativeCurrency: { name: "Pulse", symbol: "PLS", decimals: 18 }, + testnet: !1, + slug: "pulsechain", + }, + o9t = { + name: "Consta Testnet", + chain: "tCNT", + rpc: [ + "https://consta-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc-testnet.theconsta.com", + ], + faucets: [], + nativeCurrency: { name: "tCNT", symbol: "tCNT", decimals: 18 }, + infoURL: "http://theconsta.com", + shortName: "tCNT", + chainId: 371, + networkId: 371, + icon: { + url: "ipfs://QmfQ1yae6uvXgBSwnwJM4Mtp8ctH66tM6mB1Hsgu4XvsC9", + width: 2e3, + height: 2e3, + format: "png", + }, + explorers: [ + { + name: "blockscout", + url: "https://explorer-testnet.theconsta.com", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "consta-testnet", + }, + c9t = { + name: "Lisinski", + chain: "CRO", + rpc: [ + "https://lisinski.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc-bitfalls1.lisinski.online", + ], + faucets: ["https://pipa.lisinski.online"], + nativeCurrency: { + name: "Lisinski Ether", + symbol: "LISINS", + decimals: 18, + }, + infoURL: "https://lisinski.online", + shortName: "lisinski", + chainId: 385, + networkId: 385, + testnet: !1, + slug: "lisinski", + }, + u9t = { + name: "HyperonChain TestNet", + chain: "HPN", + icon: { + url: "ipfs://QmWxhyxXTEsWH98v7M3ck4ZL1qQoUaHG4HgtgxzD2KJQ5m", + width: 540, + height: 541, + format: "png", + }, + rpc: [ + "https://hyperonchain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://testnet-rpc.hyperonchain.com", + ], + faucets: ["https://faucet.hyperonchain.com"], + nativeCurrency: { name: "HyperonChain", symbol: "HPN", decimals: 18 }, + infoURL: "https://docs.hyperonchain.com", + shortName: "hpn", + chainId: 400, + networkId: 400, + explorers: [ + { + name: "blockscout", + url: "https://testnet.hyperonchain.com", + icon: "hyperonchain", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "hyperonchain-testnet", + }, + l9t = { + name: "SX Network Mainnet", + chain: "SX", + icon: { + url: "ipfs://QmSXLXqyr2H6Ja5XrmznXbWTEvF2gFaL8RXNXgyLmDHjAF", + width: 896, + height: 690, + format: "png", + }, + rpc: [ + "https://sx-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.sx.technology", + ], + faucets: [], + nativeCurrency: { name: "SX Network", symbol: "SX", decimals: 18 }, + infoURL: "https://www.sx.technology", + shortName: "SX", + chainId: 416, + networkId: 416, + explorers: [ + { + name: "SX Network Explorer", + url: "https://explorer.sx.technology", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "sx-network", + }, + d9t = { + name: "Optimism Goerli Testnet", + chain: "ETH", + rpc: [ + "https://optimism-goerli.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://opt-goerli.g.alchemy.com/v2/${ALCHEMY_API_KEY}", + "https://optimism-goerli.infura.io/v3/${INFURA_API_KEY}", + "https://goerli.optimism.io/", + ], + faucets: [], + nativeCurrency: { name: "Goerli Ether", symbol: "ETH", decimals: 18 }, + infoURL: "https://optimism.io", + shortName: "ogor", + chainId: 420, + networkId: 420, + icon: { + url: "ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/optimism/512.png", + height: 512, + width: 512, + format: "png", + sizes: [512, 256, 128, 64, 32, 16], + }, + testnet: !0, + slug: "optimism-goerli", + }, + p9t = { + name: "Zeeth Chain", + chain: "ZeethChain", + rpc: [ + "https://zeeth-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.zeeth.io", + ], + faucets: [], + nativeCurrency: { name: "Zeeth Token", symbol: "ZTH", decimals: 18 }, + infoURL: "", + shortName: "zeeth", + chainId: 427, + networkId: 427, + explorers: [ + { + name: "Zeeth Explorer", + url: "https://explorer.zeeth.io", + standard: "none", + }, + ], + testnet: !1, + slug: "zeeth-chain", + }, + h9t = { + name: "Frenchain Testnet", + chain: "tfren", + rpc: [ + "https://frenchain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc-01tn.frenchain.app", + ], + faucets: [], + nativeCurrency: { name: "tFREN", symbol: "FtREN", decimals: 18 }, + infoURL: "https://frenchain.app", + shortName: "tFREN", + chainId: 444, + networkId: 444, + icon: { + url: "ipfs://QmQk41bYX6WpYyUAdRgomZekxP5mbvZXhfxLEEqtatyJv4", + width: 128, + height: 128, + format: "png", + }, + explorers: [ + { + name: "blockscout", + url: "https://testnet.frenscan.io", + icon: "fren", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "frenchain-testnet", + }, + f9t = { + name: "Rupaya", + chain: "RUPX", + rpc: [], + faucets: [], + nativeCurrency: { name: "Rupaya", symbol: "RUPX", decimals: 18 }, + infoURL: "https://www.rupx.io", + shortName: "rupx", + chainId: 499, + networkId: 499, + slip44: 499, + testnet: !1, + slug: "rupaya", + }, + m9t = { + name: "Camino C-Chain", + chain: "CAM", + rpc: [], + faucets: [], + nativeCurrency: { name: "Camino", symbol: "CAM", decimals: 18 }, + infoURL: "https://camino.foundation/", + shortName: "Camino", + chainId: 500, + networkId: 1e3, + icon: { + url: "ipfs://QmSEoUonisawfCvT3osysuZzbqUEHugtgNraePKWL8PKYa", + width: 768, + height: 768, + format: "png", + }, + explorers: [ + { + name: "blockexplorer", + url: "https://explorer.camino.foundation/mainnet", + standard: "none", + }, + ], + testnet: !1, + slug: "camino-c-chain", + }, + y9t = { + name: "Columbus Test Network", + chain: "CAM", + rpc: [], + faucets: [], + nativeCurrency: { name: "Camino", symbol: "CAM", decimals: 18 }, + infoURL: "https://camino.foundation/", + shortName: "Columbus", + chainId: 501, + networkId: 1001, + icon: { + url: "ipfs://QmSEoUonisawfCvT3osysuZzbqUEHugtgNraePKWL8PKYa", + width: 768, + height: 768, + format: "png", + }, + explorers: [ + { + name: "blockexplorer", + url: "https://explorer.camino.foundation", + standard: "none", + }, + ], + testnet: !0, + slug: "columbus-test-network", + }, + g9t = { + name: "Double-A Chain Mainnet", + chain: "AAC", + rpc: [ + "https://double-a-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.acuteangle.com", + ], + faucets: [], + nativeCurrency: { + name: "Acuteangle Native Token", + symbol: "AAC", + decimals: 18, + }, + infoURL: "https://www.acuteangle.com/", + shortName: "aac", + chainId: 512, + networkId: 512, + slip44: 1512, + explorers: [ + { + name: "aacscan", + url: "https://scan.acuteangle.com", + standard: "EIP3091", + }, + ], + icon: { + url: "ipfs://QmRUrz4dULaoaMpnqd8qXT7ehwz3aaqnYKY4ePsy7isGaF", + width: 512, + height: 512, + format: "png", + }, + testnet: !1, + slug: "double-a-chain", + }, + b9t = { + name: "Double-A Chain Testnet", + chain: "AAC", + icon: { + url: "ipfs://QmRUrz4dULaoaMpnqd8qXT7ehwz3aaqnYKY4ePsy7isGaF", + width: 512, + height: 512, + format: "png", + }, + rpc: [ + "https://double-a-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc-testnet.acuteangle.com", + ], + faucets: ["https://scan-testnet.acuteangle.com/faucet"], + nativeCurrency: { + name: "Acuteangle Native Token", + symbol: "AAC", + decimals: 18, + }, + infoURL: "https://www.acuteangle.com/", + shortName: "aact", + chainId: 513, + networkId: 513, + explorers: [ + { + name: "aacscan-testnet", + url: "https://scan-testnet.acuteangle.com", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "double-a-chain-testnet", + }, + v9t = { + name: "Gear Zero Network Mainnet", + chain: "GearZero", + rpc: [ + "https://gear-zero-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://gzn.linksme.info", + ], + faucets: [], + nativeCurrency: { + name: "Gear Zero Network Native Token", + symbol: "GZN", + decimals: 18, + }, + infoURL: "https://token.gearzero.ca/mainnet", + shortName: "gz-mainnet", + chainId: 516, + networkId: 516, + slip44: 516, + explorers: [], + testnet: !1, + slug: "gear-zero-network", + }, + w9t = { + name: "XT Smart Chain Mainnet", + chain: "XSC", + icon: { + url: "ipfs://QmNmAFgQKkjofaBR5mhB5ygE1Gna36YBVsGkgZQxrwW85s", + width: 98, + height: 96, + format: "png", + }, + rpc: [ + "https://xt-smart-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://datarpc1.xsc.pub", + "https://datarpc2.xsc.pub", + "https://datarpc3.xsc.pub", + ], + faucets: ["https://xsc.pub/faucet"], + nativeCurrency: { + name: "XT Smart Chain Native Token", + symbol: "XT", + decimals: 18, + }, + infoURL: "https://xsc.pub/", + shortName: "xt", + chainId: 520, + networkId: 1024, + explorers: [ + { name: "xscscan", url: "https://xscscan.pub", standard: "EIP3091" }, + ], + testnet: !1, + slug: "xt-smart-chain", + }, + _9t = { + name: "Firechain Mainnet", + chain: "FIRE", + icon: { + url: "ipfs://QmYjuztyURb3Fc6ZTLgCbwQa64CcVoigF5j9cafzuSbqgf", + width: 512, + height: 512, + format: "png", + }, + rpc: [ + "https://firechain.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://mainnet.rpc1.thefirechain.com", + ], + faucets: [], + nativeCurrency: { name: "Firechain", symbol: "FIRE", decimals: 18 }, + infoURL: "https://thefirechain.com", + shortName: "fire", + chainId: 529, + networkId: 529, + explorers: [], + status: "incubating", + testnet: !1, + slug: "firechain", + }, + x9t = { + name: "F(x)Core Mainnet Network", + chain: "Fxcore", + rpc: [ + "https://f-x-core-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://fx-json-web3.functionx.io:8545", + ], + faucets: [], + nativeCurrency: { name: "Function X", symbol: "FX", decimals: 18 }, + infoURL: "https://functionx.io/", + shortName: "FxCore", + chainId: 530, + networkId: 530, + icon: { + url: "ipfs://bafkreifrf2iq3k3dqfbvp3pacwuxu33up3usmrhojt5ielyfty7xkixu3i", + width: 500, + height: 500, + format: "png", + }, + explorers: [ + { + name: "FunctionX Explorer", + url: "https://fx-evm.functionx.io", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "f-x-core-network", + }, + T9t = { + name: "Candle", + chain: "Candle", + rpc: [ + "https://candle.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://candle-rpc.com/", + "https://rpc.cndlchain.com", + ], + faucets: [], + nativeCurrency: { name: "CANDLE", symbol: "CNDL", decimals: 18 }, + infoURL: "https://candlelabs.org/", + shortName: "CNDL", + chainId: 534, + networkId: 534, + slip44: 674, + explorers: [ + { + name: "candleexplorer", + url: "https://candleexplorer.com", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "candle", + }, + E9t = { + name: "Vela1 Chain Mainnet", + chain: "VELA1", + rpc: [ + "https://vela1-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.velaverse.io", + ], + faucets: [], + nativeCurrency: { name: "CLASS COIN", symbol: "CLASS", decimals: 18 }, + infoURL: "https://velaverse.io", + shortName: "CLASS", + chainId: 555, + networkId: 555, + explorers: [ + { + name: "Vela1 Chain Mainnet Explorer", + url: "https://exp.velaverse.io", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "vela1-chain", + }, + C9t = { + name: "Tao Network", + chain: "TAO", + rpc: [ + "https://tao-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.testnet.tao.network", + "http://rpc.testnet.tao.network:8545", + "https://rpc.tao.network", + "wss://rpc.tao.network", + ], + faucets: [], + nativeCurrency: { name: "Tao", symbol: "TAO", decimals: 18 }, + infoURL: "https://tao.network", + shortName: "tao", + chainId: 558, + networkId: 558, + testnet: !0, + slug: "tao-network", + }, + I9t = { + name: "Dogechain Testnet", + chain: "DC", + icon: { + url: "ipfs://QmNS6B6L8FfgGSMTEi2SxD3bK5cdmKPNtQKcYaJeRWrkHs", + width: 732, + height: 732, + format: "png", + }, + rpc: [ + "https://dogechain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc-testnet.dogechain.dog", + ], + faucets: ["https://faucet.dogechain.dog"], + nativeCurrency: { name: "Dogecoin", symbol: "DOGE", decimals: 18 }, + infoURL: "https://dogechain.dog", + shortName: "dct", + chainId: 568, + networkId: 568, + explorers: [ + { + name: "dogechain testnet explorer", + url: "https://explorer-testnet.dogechain.dog", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "dogechain-testnet", + }, + A9t = { + name: "Astar", + chain: "ASTR", + rpc: [ + "https://astar.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.astar.network:8545", + ], + faucets: [], + nativeCurrency: { name: "Astar", symbol: "ASTR", decimals: 18 }, + infoURL: "https://astar.network/", + shortName: "astr", + chainId: 592, + networkId: 592, + icon: { + url: "ipfs://Qmdvmx3p6gXBCLUMU1qivscaTNkT6h3URdhUTZCHLwKudg", + width: 1e3, + height: 1e3, + format: "png", + }, + explorers: [ + { + name: "subscan", + url: "https://astar.subscan.io", + standard: "none", + icon: "subscan", + }, + ], + testnet: !1, + slug: "astar", + }, + k9t = { + name: "Acala Mandala Testnet", + chain: "mACA", + rpc: [], + faucets: [], + nativeCurrency: { + name: "Acala Mandala Token", + symbol: "mACA", + decimals: 18, + }, + infoURL: "https://acala.network", + shortName: "maca", + chainId: 595, + networkId: 595, + testnet: !0, + slug: "acala-mandala-testnet", + }, + S9t = { + name: "Karura Network Testnet", + chain: "KAR", + rpc: [], + faucets: [], + nativeCurrency: { name: "Karura Token", symbol: "KAR", decimals: 18 }, + infoURL: "https://karura.network", + shortName: "tkar", + chainId: 596, + networkId: 596, + slip44: 596, + testnet: !0, + slug: "karura-network-testnet", + }, + M9t = { + name: "Acala Network Testnet", + chain: "ACA", + rpc: [], + faucets: [], + nativeCurrency: { name: "Acala Token", symbol: "ACA", decimals: 18 }, + infoURL: "https://acala.network", + shortName: "taca", + chainId: 597, + networkId: 597, + slip44: 597, + testnet: !0, + slug: "acala-network-testnet", + }, + P9t = { + name: "Metis Goerli Testnet", + chain: "ETH", + rpc: [ + "https://metis-goerli-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://goerli.gateway.metisdevops.link", + ], + faucets: ["https://goerli.faucet.metisdevops.link"], + nativeCurrency: { name: "Goerli Metis", symbol: "METIS", decimals: 18 }, + infoURL: "https://www.metis.io", + shortName: "metis-goerli", + chainId: 599, + networkId: 599, + explorers: [ + { + name: "blockscout", + url: "https://goerli.explorer.metisdevops.link", + standard: "EIP3091", + }, + ], + parent: { + type: "L2", + chain: "eip155-4", + bridges: [{ url: "https://testnet-bridge.metis.io" }], + }, + testnet: !0, + slug: "metis-goerli-testnet", + }, + R9t = { + name: "Meshnyan testnet", + chain: "MeshTestChain", + rpc: [], + faucets: [], + nativeCurrency: { + name: "Meshnyan Testnet Native Token", + symbol: "MESHT", + decimals: 18, + }, + infoURL: "", + shortName: "mesh-chain-testnet", + chainId: 600, + networkId: 600, + testnet: !0, + slug: "meshnyan-testnet", + }, + B9t = { + name: "Graphlinq Blockchain Mainnet", + chain: "GLQ Blockchain", + rpc: [ + "https://graphlinq-blockchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://glq-dataseed.graphlinq.io", + ], + faucets: [], + nativeCurrency: { name: "GLQ", symbol: "GLQ", decimals: 18 }, + infoURL: "https://graphlinq.io", + shortName: "glq", + chainId: 614, + networkId: 614, + explorers: [ + { + name: "GLQ Explorer", + url: "https://explorer.graphlinq.io", + standard: "none", + }, + ], + testnet: !1, + slug: "graphlinq-blockchain", + }, + N9t = { + name: "SX Network Testnet", + chain: "SX", + icon: { + url: "ipfs://QmSXLXqyr2H6Ja5XrmznXbWTEvF2gFaL8RXNXgyLmDHjAF", + width: 896, + height: 690, + format: "png", + }, + rpc: [ + "https://sx-network-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.toronto.sx.technology", + ], + faucets: ["https://faucet.toronto.sx.technology"], + nativeCurrency: { name: "SX Network", symbol: "SX", decimals: 18 }, + infoURL: "https://www.sx.technology", + shortName: "SX-Testnet", + chainId: 647, + networkId: 647, + explorers: [ + { + name: "SX Network Toronto Explorer", + url: "https://explorer.toronto.sx.technology", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "sx-network-testnet", + }, + O9t = { + name: "Endurance Smart Chain Mainnet", + chain: "ACE", + rpc: [ + "https://endurance-smart-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc-endurance.fusionist.io/", + ], + faucets: [], + nativeCurrency: { + name: "Endurance Chain Native Token", + symbol: "ACE", + decimals: 18, + }, + infoURL: "https://ace.fusionist.io/", + shortName: "ace", + chainId: 648, + networkId: 648, + explorers: [ + { + name: "Endurance Scan", + url: "https://explorer.endurance.fusionist.io", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "endurance-smart-chain", + }, + L9t = { + name: "Pixie Chain Testnet", + chain: "PixieChain", + rpc: [ + "https://pixie-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://http-testnet.chain.pixie.xyz", + "wss://ws-testnet.chain.pixie.xyz", + ], + faucets: ["https://chain.pixie.xyz/faucet"], + nativeCurrency: { + name: "Pixie Chain Testnet Native Token", + symbol: "PCTT", + decimals: 18, + }, + infoURL: "https://scan-testnet.chain.pixie.xyz", + shortName: "pixie-chain-testnet", + chainId: 666, + networkId: 666, + testnet: !0, + slug: "pixie-chain-testnet", + }, + D9t = { + name: "Karura Network", + chain: "KAR", + rpc: [], + faucets: [], + nativeCurrency: { name: "Karura Token", symbol: "KAR", decimals: 18 }, + infoURL: "https://karura.network", + shortName: "kar", + chainId: 686, + networkId: 686, + slip44: 686, + testnet: !1, + slug: "karura-network", + }, + q9t = { + name: "Star Social Testnet", + chain: "SNS", + rpc: [ + "https://star-social-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://avastar.cc/ext/bc/C/rpc", + ], + faucets: [], + nativeCurrency: { name: "Social", symbol: "SNS", decimals: 18 }, + infoURL: "https://info.avastar.cc", + shortName: "SNS", + chainId: 700, + networkId: 700, + explorers: [ + { + name: "starscan", + url: "https://avastar.info", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "star-social-testnet", + }, + F9t = { + name: "BlockChain Station Mainnet", + chain: "BCS", + rpc: [ + "https://blockchain-station.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc-mainnet.bcsdev.io", + "wss://rpc-ws-mainnet.bcsdev.io", + ], + faucets: [], + nativeCurrency: { name: "BCS Token", symbol: "BCS", decimals: 18 }, + infoURL: "https://blockchainstation.io", + shortName: "bcs", + chainId: 707, + networkId: 707, + explorers: [ + { + name: "BlockChain Station Explorer", + url: "https://explorer.bcsdev.io", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "blockchain-station", + }, + W9t = { + name: "BlockChain Station Testnet", + chain: "BCS", + rpc: [ + "https://blockchain-station-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc-testnet.bcsdev.io", + "wss://rpc-ws-testnet.bcsdev.io", + ], + faucets: ["https://faucet.bcsdev.io"], + nativeCurrency: { + name: "BCS Testnet Token", + symbol: "tBCS", + decimals: 18, + }, + infoURL: "https://blockchainstation.io", + shortName: "tbcs", + chainId: 708, + networkId: 708, + explorers: [ + { + name: "BlockChain Station Explorer", + url: "https://testnet.bcsdev.io", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "blockchain-station-testnet", + }, + U9t = { + name: "Lycan Chain", + chain: "LYC", + rpc: [ + "https://lycan-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.lycanchain.com/", + ], + faucets: [], + nativeCurrency: { name: "Lycan", symbol: "LYC", decimals: 18 }, + infoURL: "https://lycanchain.com", + shortName: "LYC", + chainId: 721, + networkId: 721, + icon: { + url: "ipfs://Qmc8hsCbUUjnJDnXrDhFh4V1xk1gJwZbUyNJ39p72javji", + width: 400, + height: 400, + format: "png", + }, + explorers: [ + { + name: "blockscout", + url: "https://explorer.lycanchain.com", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "lycan-chain", + }, + H9t = { + name: "Canto Testnet", + chain: "Canto Tesnet", + rpc: [ + "https://canto-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://eth.plexnode.wtf/", + ], + faucets: [], + nativeCurrency: { name: "Canto", symbol: "CANTO", decimals: 18 }, + infoURL: "https://canto.io", + shortName: "tcanto", + chainId: 740, + networkId: 740, + explorers: [ + { + name: "Canto Tesnet Explorer (Neobase)", + url: "http://testnet-explorer.canto.neobase.one", + standard: "none", + }, + ], + testnet: !0, + slug: "canto-testnet", + }, + z9t = { + name: "Vention Smart Chain Testnet", + chain: "VSCT", + icon: { + url: "ipfs://QmcNepHmbmHW1BZYM3MFqJW4awwhmDqhUPRXXmRnXwg1U4", + width: 250, + height: 250, + format: "png", + }, + rpc: [ + "https://vention-smart-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://node-testnet.vention.network", + ], + faucets: ["https://faucet.vention.network"], + nativeCurrency: { name: "VNT", symbol: "VNT", decimals: 18 }, + infoURL: "https://testnet.ventionscan.io", + shortName: "vsct", + chainId: 741, + networkId: 741, + explorers: [ + { + name: "ventionscan", + url: "https://testnet.ventionscan.io", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "vention-smart-chain-testnet", + }, + j9t = { + name: "QL1", + chain: "QOM", + status: "incubating", + rpc: [ + "https://ql1.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.qom.one", + ], + faucets: [], + nativeCurrency: { name: "Shiba Predator", symbol: "QOM", decimals: 18 }, + infoURL: "https://qom.one", + shortName: "qom", + chainId: 766, + networkId: 766, + icon: { + url: "ipfs://QmRc1kJ7AgcDL1BSoMYudatWHTrz27K6WNTwGifQb5V17D", + width: 518, + height: 518, + format: "png", + }, + explorers: [ + { + name: "QL1 Mainnet Explorer", + url: "https://mainnet.qom.one", + icon: "qom", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "ql1", + }, + K9t = { + name: "OpenChain Testnet", + chain: "OpenChain Testnet", + rpc: [], + faucets: ["https://faucet.openchain.info/"], + nativeCurrency: { + name: "Openchain Testnet", + symbol: "TOPC", + decimals: 18, + }, + infoURL: "https://testnet.openchain.info/", + shortName: "opc", + chainId: 776, + networkId: 776, + explorers: [ + { + name: "OPEN CHAIN TESTNET", + url: "https://testnet.openchain.info", + standard: "none", + }, + ], + testnet: !0, + slug: "openchain-testnet", + }, + V9t = { + name: "cheapETH", + chain: "cheapETH", + rpc: [ + "https://cheapeth.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://node.cheapeth.org/rpc", + ], + faucets: [], + nativeCurrency: { name: "cTH", symbol: "cTH", decimals: 18 }, + infoURL: "https://cheapeth.org/", + shortName: "cth", + chainId: 777, + networkId: 777, + testnet: !1, + slug: "cheapeth", + }, + G9t = { + name: "Acala Network", + chain: "ACA", + rpc: [], + faucets: [], + nativeCurrency: { name: "Acala Token", symbol: "ACA", decimals: 18 }, + infoURL: "https://acala.network", + shortName: "aca", + chainId: 787, + networkId: 787, + slip44: 787, + testnet: !1, + slug: "acala-network", + }, + Y9t = { + name: "Aerochain Testnet", + chain: "Aerochain", + rpc: [ + "https://aerochain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://testnet-rpc.aerochain.id/", + ], + faucets: ["https://faucet.aerochain.id/"], + nativeCurrency: { + name: "Aerochain Testnet", + symbol: "TAero", + decimals: 18, + }, + infoURL: "https://aerochaincoin.org/", + shortName: "taero", + chainId: 788, + networkId: 788, + explorers: [ + { + name: "aeroscan", + url: "https://testnet.aeroscan.id", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "aerochain-testnet", + }, + $9t = { + name: "Lucid Blockchain", + chain: "Lucid Blockchain", + icon: { + url: "ipfs://bafybeigxiyyxll4vst5cjjh732mr6zhsnligxubaldyiul2xdvvi6ibktu", + width: 800, + height: 800, + format: "png", + }, + rpc: [ + "https://lucid-blockchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.lucidcoin.io", + ], + faucets: ["https://faucet.lucidcoin.io"], + nativeCurrency: { name: "LUCID", symbol: "LUCID", decimals: 18 }, + infoURL: "https://lucidcoin.io", + shortName: "LUCID", + chainId: 800, + networkId: 800, + explorers: [ + { + name: "Lucid Explorer", + url: "https://explorer.lucidcoin.io", + standard: "none", + }, + ], + testnet: !1, + slug: "lucid-blockchain", + }, + J9t = { + name: "Haic", + chain: "Haic", + rpc: [ + "https://haic.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://orig.haichain.io/", + ], + faucets: [], + nativeCurrency: { name: "Haicoin", symbol: "HAIC", decimals: 18 }, + infoURL: "https://www.haichain.io/", + shortName: "haic", + chainId: 803, + networkId: 803, + testnet: !1, + slug: "haic", + }, + Z9t = { + name: "Portal Fantasy Chain Test", + chain: "PF", + icon: { + url: "ipfs://QmeMa6aw3ebUKJdGgbzDgcVtggzp7cQdfSrmzMYmnt5ywc", + width: 200, + height: 200, + format: "png", + }, + rpc: [ + "https://portal-fantasy-chain-test.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://subnets.avax.network/portal-fantasy/testnet/rpc", + ], + faucets: [], + nativeCurrency: { + name: "Portal Fantasy Token", + symbol: "PFT", + decimals: 18, + }, + infoURL: "https://portalfantasy.io", + shortName: "PFTEST", + chainId: 808, + networkId: 808, + explorers: [], + testnet: !0, + slug: "portal-fantasy-chain-test", + }, + Q9t = { + name: "Qitmeer", + chain: "MEER", + rpc: [ + "https://qitmeer.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://evm-dataseed1.meerscan.io", + "https://evm-dataseed2.meerscan.io", + "https://evm-dataseed3.meerscan.io", + "https://evm-dataseed.meerscan.com", + "https://evm-dataseed1.meerscan.com", + "https://evm-dataseed2.meerscan.com", + ], + faucets: [], + nativeCurrency: { name: "Qitmeer", symbol: "MEER", decimals: 18 }, + infoURL: "https://github.com/Qitmeer", + shortName: "meer", + chainId: 813, + networkId: 813, + slip44: 813, + icon: { + url: "ipfs://QmWSbMuCwQzhBB6GRLYqZ87n5cnpzpYCehCAMMQmUXj4mm", + width: 512, + height: 512, + format: "png", + }, + explorers: [ + { + name: "meerscan", + url: "https://evm.meerscan.com", + standard: "none", + }, + ], + testnet: !1, + slug: "qitmeer", + }, + X9t = { + name: "Callisto Mainnet", + chain: "CLO", + rpc: [ + "https://callisto.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.callisto.network/", + ], + faucets: [], + nativeCurrency: { name: "Callisto", symbol: "CLO", decimals: 18 }, + infoURL: "https://callisto.network", + shortName: "clo", + chainId: 820, + networkId: 1, + slip44: 820, + testnet: !1, + slug: "callisto", + }, + eRt = { + name: "Taraxa Mainnet", + chain: "Tara", + icon: { + url: "ipfs://QmQhdktNyBeXmCaVuQpi1B4yXheSUKrJA17L4wpECKzG5D", + width: 310, + height: 310, + format: "png", + }, + rpc: [ + "https://taraxa.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.mainnet.taraxa.io/", + ], + faucets: [], + nativeCurrency: { name: "Tara", symbol: "TARA", decimals: 18 }, + infoURL: "https://taraxa.io", + shortName: "tara", + chainId: 841, + networkId: 841, + explorers: [ + { + name: "Taraxa Explorer", + url: "https://explorer.mainnet.taraxa.io", + standard: "none", + }, + ], + testnet: !1, + slug: "taraxa", + }, + tRt = { + name: "Taraxa Testnet", + chain: "Tara", + icon: { + url: "ipfs://QmQhdktNyBeXmCaVuQpi1B4yXheSUKrJA17L4wpECKzG5D", + width: 310, + height: 310, + format: "png", + }, + rpc: [ + "https://taraxa-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.testnet.taraxa.io/", + ], + faucets: [], + nativeCurrency: { name: "Tara", symbol: "TARA", decimals: 18 }, + infoURL: "https://taraxa.io", + shortName: "taratest", + chainId: 842, + networkId: 842, + explorers: [ + { + name: "Taraxa Explorer", + url: "https://explorer.testnet.taraxa.io", + standard: "none", + }, + ], + testnet: !0, + slug: "taraxa-testnet", + }, + rRt = { + name: "Zeeth Chain Dev", + chain: "ZeethChainDev", + rpc: [ + "https://zeeth-chain-dev.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.dev.zeeth.io", + ], + faucets: [], + nativeCurrency: { name: "Zeeth Token", symbol: "ZTH", decimals: 18 }, + infoURL: "", + shortName: "zeethdev", + chainId: 859, + networkId: 859, + explorers: [ + { + name: "Zeeth Explorer Dev", + url: "https://explorer.dev.zeeth.io", + standard: "none", + }, + ], + testnet: !1, + slug: "zeeth-chain-dev", + }, + nRt = { + name: "Fantasia Chain Mainnet", + chain: "FSC", + rpc: [ + "https://fantasia-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://mainnet-data1.fantasiachain.com/", + "https://mainnet-data2.fantasiachain.com/", + "https://mainnet-data3.fantasiachain.com/", + ], + faucets: [], + nativeCurrency: { name: "FST", symbol: "FST", decimals: 18 }, + infoURL: "https://fantasia.technology/", + shortName: "FSCMainnet", + chainId: 868, + networkId: 868, + explorers: [ + { + name: "FSCScan", + url: "https://explorer.fantasiachain.com", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "fantasia-chain", + }, + aRt = { + name: "Bandai Namco Research Verse Mainnet", + chain: "Bandai Namco Research Verse", + icon: { + url: "ipfs://bafkreifhetalm3vpvjrg5u5d2momkcgvkz6rhltur5co3rslltbxzpr6yq", + width: 2048, + height: 2048, + format: "png", + }, + rpc: [ + "https://bandai-namco-research-verse.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.main.oasvrs.bnken.net", + ], + faucets: [], + nativeCurrency: { name: "OAS", symbol: "OAS", decimals: 18 }, + infoURL: "https://www.bandainamco-mirai.com/en/", + shortName: "BNKEN", + chainId: 876, + networkId: 876, + explorers: [ + { + name: "Bandai Namco Research Verse Explorer", + url: "https://explorer.main.oasvrs.bnken.net", + standard: "EIP3091", + }, + ], + parent: { type: "L2", chain: "eip155-248" }, + testnet: !1, + slug: "bandai-namco-research-verse", + }, + iRt = { + name: "Dexit Network", + chain: "DXT", + rpc: [ + "https://dexit-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://dxt.dexit.network", + ], + faucets: ["https://faucet.dexit.network"], + nativeCurrency: { name: "Dexit network", symbol: "DXT", decimals: 18 }, + infoURL: "https://dexit.network", + shortName: "DXT", + chainId: 877, + networkId: 877, + explorers: [ + { name: "dxtscan", url: "https://dxtscan.com", standard: "EIP3091" }, + ], + testnet: !1, + slug: "dexit-network", + }, + sRt = { + name: "Ambros Chain Mainnet", + chain: "ambroschain", + rpc: [ + "https://ambros-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://api.ambros.network", + ], + faucets: [], + nativeCurrency: { name: "AMBROS", symbol: "AMBROS", decimals: 18 }, + infoURL: "https://ambros.network", + shortName: "ambros", + chainId: 880, + networkId: 880, + explorers: [ + { + name: "Ambros Chain Explorer", + url: "https://ambrosscan.com", + standard: "none", + }, + ], + testnet: !1, + slug: "ambros-chain", + }, + oRt = { + name: "Wanchain", + chain: "WAN", + rpc: [ + "https://wanchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://gwan-ssl.wandevs.org:56891/", + ], + faucets: [], + nativeCurrency: { name: "Wancoin", symbol: "WAN", decimals: 18 }, + infoURL: "https://www.wanscan.org", + shortName: "wan", + chainId: 888, + networkId: 888, + slip44: 5718350, + testnet: !1, + slug: "wanchain", + }, + cRt = { + name: "Garizon Testnet Stage0", + chain: "GAR", + icon: { + url: "ipfs://QmW3WRyuLZ95K8hvV2QN6rP5yWY98sSzWyVUxD2eUjXGrc", + width: 1024, + height: 613, + format: "png", + }, + rpc: [ + "https://garizon-testnet-stage0.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://s0-testnet.garizon.net/rpc", + ], + faucets: ["https://faucet-testnet.garizon.com"], + nativeCurrency: { name: "Garizon", symbol: "GAR", decimals: 18 }, + infoURL: "https://garizon.com", + shortName: "gar-test-s0", + chainId: 900, + networkId: 900, + explorers: [ + { + name: "explorer", + url: "https://explorer-testnet.garizon.com", + icon: "garizon", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "garizon-testnet-stage0", + }, + uRt = { + name: "Garizon Testnet Stage1", + chain: "GAR", + icon: { + url: "ipfs://QmW3WRyuLZ95K8hvV2QN6rP5yWY98sSzWyVUxD2eUjXGrc", + width: 1024, + height: 613, + format: "png", + }, + rpc: [ + "https://garizon-testnet-stage1.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://s1-testnet.garizon.net/rpc", + ], + faucets: ["https://faucet-testnet.garizon.com"], + nativeCurrency: { name: "Garizon", symbol: "GAR", decimals: 18 }, + infoURL: "https://garizon.com", + shortName: "gar-test-s1", + chainId: 901, + networkId: 901, + explorers: [ + { + name: "explorer", + url: "https://explorer-testnet.garizon.com", + icon: "garizon", + standard: "EIP3091", + }, + ], + parent: { chain: "eip155-900", type: "shard" }, + testnet: !0, + slug: "garizon-testnet-stage1", + }, + lRt = { + name: "Garizon Testnet Stage2", + chain: "GAR", + icon: { + url: "ipfs://QmW3WRyuLZ95K8hvV2QN6rP5yWY98sSzWyVUxD2eUjXGrc", + width: 1024, + height: 613, + format: "png", + }, + rpc: [ + "https://garizon-testnet-stage2.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://s2-testnet.garizon.net/rpc", + ], + faucets: ["https://faucet-testnet.garizon.com"], + nativeCurrency: { name: "Garizon", symbol: "GAR", decimals: 18 }, + infoURL: "https://garizon.com", + shortName: "gar-test-s2", + chainId: 902, + networkId: 902, + explorers: [ + { + name: "explorer", + url: "https://explorer-testnet.garizon.com", + icon: "garizon", + standard: "EIP3091", + }, + ], + parent: { chain: "eip155-900", type: "shard" }, + testnet: !0, + slug: "garizon-testnet-stage2", + }, + dRt = { + name: "Garizon Testnet Stage3", + chain: "GAR", + icon: { + url: "ipfs://QmW3WRyuLZ95K8hvV2QN6rP5yWY98sSzWyVUxD2eUjXGrc", + width: 1024, + height: 613, + format: "png", + }, + rpc: [ + "https://garizon-testnet-stage3.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://s3-testnet.garizon.net/rpc", + ], + faucets: ["https://faucet-testnet.garizon.com"], + nativeCurrency: { name: "Garizon", symbol: "GAR", decimals: 18 }, + infoURL: "https://garizon.com", + shortName: "gar-test-s3", + chainId: 903, + networkId: 903, + explorers: [ + { + name: "explorer", + url: "https://explorer-testnet.garizon.com", + icon: "garizon", + standard: "EIP3091", + }, + ], + parent: { chain: "eip155-900", type: "shard" }, + testnet: !0, + slug: "garizon-testnet-stage3", + }, + pRt = { + name: "Portal Fantasy Chain", + chain: "PF", + icon: { + url: "ipfs://QmeMa6aw3ebUKJdGgbzDgcVtggzp7cQdfSrmzMYmnt5ywc", + width: 200, + height: 200, + format: "png", + }, + rpc: [], + faucets: [], + nativeCurrency: { + name: "Portal Fantasy Token", + symbol: "PFT", + decimals: 18, + }, + infoURL: "https://portalfantasy.io", + shortName: "PF", + chainId: 909, + networkId: 909, + explorers: [], + status: "incubating", + testnet: !1, + slug: "portal-fantasy-chain", + }, + hRt = { + name: "Rinia Testnet", + chain: "FIRE", + icon: { + url: "ipfs://QmRnnw2gtbU9TWJMLJ6tks7SN6HQV5rRugeoyN6csTYHt1", + width: 512, + height: 512, + format: "png", + }, + rpc: [ + "https://rinia-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rinia.rpc1.thefirechain.com", + ], + faucets: ["https://faucet.thefirechain.com"], + nativeCurrency: { name: "Firechain", symbol: "FIRE", decimals: 18 }, + infoURL: "https://thefirechain.com", + shortName: "tfire", + chainId: 917, + networkId: 917, + explorers: [], + status: "incubating", + testnet: !0, + slug: "rinia-testnet", + }, + fRt = { + name: "PulseChain Testnet", + shortName: "tpls", + chain: "tPLS", + chainId: 940, + networkId: 940, + infoURL: "https://pulsechain.com/", + rpc: [ + "https://pulsechain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.v2.testnet.pulsechain.com/", + "wss://rpc.v2.testnet.pulsechain.com/", + ], + faucets: ["https://faucet.v2.testnet.pulsechain.com/"], + nativeCurrency: { name: "Test Pulse", symbol: "tPLS", decimals: 18 }, + testnet: !0, + slug: "pulsechain-testnet", + }, + mRt = { + name: "PulseChain Testnet v2b", + shortName: "t2bpls", + chain: "t2bPLS", + chainId: 941, + networkId: 941, + infoURL: "https://pulsechain.com/", + rpc: [ + "https://pulsechain-testnet-v2b.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.v2b.testnet.pulsechain.com/", + "wss://rpc.v2b.testnet.pulsechain.com/", + ], + faucets: ["https://faucet.v2b.testnet.pulsechain.com/"], + nativeCurrency: { name: "Test Pulse", symbol: "tPLS", decimals: 18 }, + testnet: !0, + slug: "pulsechain-testnet-v2b", + }, + yRt = { + name: "PulseChain Testnet v3", + shortName: "t3pls", + chain: "t3PLS", + chainId: 942, + networkId: 942, + infoURL: "https://pulsechain.com/", + rpc: [ + "https://pulsechain-testnet-v3.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.v3.testnet.pulsechain.com/", + "wss://rpc.v3.testnet.pulsechain.com/", + ], + faucets: ["https://faucet.v3.testnet.pulsechain.com/"], + nativeCurrency: { name: "Test Pulse", symbol: "tPLS", decimals: 18 }, + testnet: !0, + slug: "pulsechain-testnet-v3", + }, + gRt = { + name: "muNode Testnet", + chain: "munode", + rpc: [], + faucets: [], + nativeCurrency: { name: "Ether", symbol: "ETH", decimals: 18 }, + infoURL: "https://munode.dev/", + shortName: "munode", + chainId: 956, + networkId: 956, + testnet: !0, + slug: "munode-testnet", + }, + bRt = { + name: "Oort Mainnet", + chain: "Oort Mainnet", + rpc: [ + "https://oort.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.oortech.com", + ], + faucets: [], + nativeCurrency: { name: "Oort", symbol: "CCN", decimals: 18 }, + infoURL: "https://oortech.com", + shortName: "ccn", + chainId: 970, + networkId: 970, + icon: { + url: "ipfs://QmZ1jbxFZcuotj3eZ6iKFrg9ZXnaV8AK6sGRa7ELrceWyD", + width: 1043, + height: 1079, + format: "png", + }, + testnet: !1, + slug: "oort", + }, + vRt = { + name: "Oort Huygens", + chain: "Huygens", + rpc: [], + faucets: [], + nativeCurrency: { name: "Oort", symbol: "CCN", decimals: 18 }, + infoURL: "https://oortech.com", + shortName: "Huygens", + chainId: 971, + networkId: 971, + icon: { + url: "ipfs://QmZ1jbxFZcuotj3eZ6iKFrg9ZXnaV8AK6sGRa7ELrceWyD", + width: 1043, + height: 1079, + format: "png", + }, + testnet: !1, + slug: "oort-huygens", + }, + wRt = { + name: "Oort Ascraeus", + title: "Oort Ascraeus", + chain: "Ascraeus", + rpc: [ + "https://oort-ascraeus.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://ascraeus-rpc.oortech.com", + ], + faucets: [], + nativeCurrency: { name: "Oort", symbol: "CCNA", decimals: 18 }, + infoURL: "https://oortech.com", + shortName: "Ascraeus", + chainId: 972, + networkId: 972, + icon: { + url: "ipfs://QmZ1jbxFZcuotj3eZ6iKFrg9ZXnaV8AK6sGRa7ELrceWyD", + width: 1043, + height: 1079, + format: "png", + }, + testnet: !1, + slug: "oort-ascraeus", + }, + _Rt = { + name: "Nepal Blockchain Network", + chain: "YETI", + rpc: [ + "https://nepal-blockchain-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://api.nepalblockchain.dev", + "https://api.nepalblockchain.network", + ], + faucets: ["https://faucet.nepalblockchain.network"], + nativeCurrency: { + name: "Nepal Blockchain Network Ether", + symbol: "YETI", + decimals: 18, + }, + infoURL: "https://nepalblockchain.network", + shortName: "yeti", + chainId: 977, + networkId: 977, + testnet: !1, + slug: "nepal-blockchain-network", + }, + xRt = { + name: "TOP Mainnet EVM", + chain: "TOP", + icon: { + url: "ipfs://QmYikaM849eZrL8pGNeVhEHVTKWpxdGMvCY5oFBfZ2ndhd", + width: 800, + height: 800, + format: "png", + }, + rpc: [ + "https://top-evm.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://ethapi.topnetwork.org", + ], + faucets: [], + nativeCurrency: { name: "Ether", symbol: "ETH", decimals: 18 }, + infoURL: "https://www.topnetwork.org/", + shortName: "top_evm", + chainId: 980, + networkId: 0, + explorers: [ + { + name: "topscan.dev", + url: "https://www.topscan.io", + standard: "none", + }, + ], + testnet: !1, + slug: "top-evm", + }, + TRt = { + name: "Memo Smart Chain Mainnet", + chain: "MEMO", + rpc: [ + "https://memo-smart-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://chain.metamemo.one:8501", + "wss://chain.metamemo.one:16801", + ], + faucets: ["https://faucet.metamemo.one/"], + nativeCurrency: { name: "Memo", symbol: "CMEMO", decimals: 18 }, + infoURL: "www.memolabs.org", + shortName: "memochain", + chainId: 985, + networkId: 985, + icon: { + url: "ipfs://bafkreig52paynhccs4o5ew6f7mk3xoqu2bqtitmfvlgnwarh2pm33gbdrq", + width: 128, + height: 128, + format: "png", + }, + explorers: [ + { + name: "Memo Mainnet Explorer", + url: "https://scan.metamemo.one:8080", + icon: "memoscan", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "memo-smart-chain", + }, + ERt = { + name: "TOP Mainnet", + chain: "TOP", + icon: { + url: "ipfs://QmYikaM849eZrL8pGNeVhEHVTKWpxdGMvCY5oFBfZ2ndhd", + width: 800, + height: 800, + format: "png", + }, + rpc: [], + faucets: [], + nativeCurrency: { name: "TOP", symbol: "TOP", decimals: 6 }, + infoURL: "https://www.topnetwork.org/", + shortName: "top", + chainId: 989, + networkId: 0, + explorers: [ + { + name: "topscan.dev", + url: "https://www.topscan.io", + standard: "none", + }, + ], + testnet: !1, + slug: "top", + }, + CRt = { + name: "Lucky Network", + chain: "LN", + rpc: [ + "https://lucky-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.luckynetwork.org", + "wss://ws.lnscan.org", + "https://rpc.lnscan.org", + ], + faucets: [], + nativeCurrency: { name: "Lucky", symbol: "L99", decimals: 18 }, + infoURL: "https://luckynetwork.org", + shortName: "ln", + chainId: 998, + networkId: 998, + icon: { + url: "ipfs://bafkreidmvcd5i7touug55hj45mf2pgabxamy5fziva7mtx5n664s3yap6m", + width: 205, + height: 28, + format: "png", + }, + explorers: [ + { + name: "blockscout", + url: "https://explorer.luckynetwork.org", + standard: "none", + }, + { name: "expedition", url: "https://lnscan.org", standard: "none" }, + ], + testnet: !1, + slug: "lucky-network", + }, + IRt = { + name: "Wanchain Testnet", + chain: "WAN", + rpc: [ + "https://wanchain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://gwan-ssl.wandevs.org:46891/", + ], + faucets: [], + nativeCurrency: { name: "Wancoin", symbol: "WAN", decimals: 18 }, + infoURL: "https://testnet.wanscan.org", + shortName: "twan", + chainId: 999, + networkId: 999, + testnet: !0, + slug: "wanchain-testnet", + }, + ARt = { + name: "GTON Mainnet", + chain: "GTON", + rpc: [ + "https://gton.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.gton.network/", + ], + faucets: [], + nativeCurrency: { name: "GCD", symbol: "GCD", decimals: 18 }, + infoURL: "https://gton.capital", + shortName: "gton", + chainId: 1e3, + networkId: 1e3, + explorers: [ + { + name: "GTON Network Explorer", + url: "https://explorer.gton.network", + standard: "EIP3091", + }, + ], + parent: { type: "L2", chain: "eip155-1" }, + testnet: !1, + slug: "gton", + }, + kRt = { + name: "Klaytn Testnet Baobab", + chain: "KLAY", + rpc: [ + "https://klaytn-testnet-baobab.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://api.baobab.klaytn.net:8651", + ], + faucets: ["https://baobab.wallet.klaytn.com/access?next=faucet"], + nativeCurrency: { name: "KLAY", symbol: "KLAY", decimals: 18 }, + infoURL: "https://www.klaytn.com/", + shortName: "Baobab", + chainId: 1001, + networkId: 1001, + testnet: !0, + slug: "klaytn-testnet-baobab", + }, + SRt = { + name: "T-EKTA", + title: "EKTA Testnet T-EKTA", + chain: "T-EKTA", + rpc: [ + "https://t-ekta.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://test.ekta.io:8545", + ], + faucets: [], + nativeCurrency: { name: "T-EKTA", symbol: "T-EKTA", decimals: 18 }, + infoURL: "https://www.ekta.io", + shortName: "t-ekta", + chainId: 1004, + networkId: 1004, + icon: { + url: "ipfs://QmfMd564KUPK8eKZDwGCT71ZC2jMnUZqP6LCtLpup3rHH1", + width: 2100, + height: 2100, + format: "png", + }, + explorers: [ + { + name: "test-ektascan", + url: "https://test.ektascan.io", + icon: "ekta", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "t-ekta", + }, + MRt = { + name: "Newton Testnet", + chain: "NEW", + rpc: [ + "https://newton-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc1.newchain.newtonproject.org", + ], + faucets: [], + nativeCurrency: { name: "Newton", symbol: "NEW", decimals: 18 }, + infoURL: "https://www.newtonproject.org/", + shortName: "tnew", + chainId: 1007, + networkId: 1007, + testnet: !0, + slug: "newton-testnet", + }, + PRt = { + name: "Eurus Mainnet", + chain: "EUN", + rpc: [ + "https://eurus.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://mainnet.eurus.network/", + ], + faucets: [], + nativeCurrency: { name: "Eurus", symbol: "EUN", decimals: 18 }, + infoURL: "https://eurus.network", + shortName: "eun", + chainId: 1008, + networkId: 1008, + icon: { + url: "ipfs://QmaGd5L9jGPbfyGXBFhu9gjinWJ66YtNrXq8x6Q98Eep9e", + width: 471, + height: 471, + format: "svg", + }, + explorers: [ + { + name: "eurusexplorer", + url: "https://explorer.eurus.network", + icon: "eurus", + standard: "none", + }, + ], + testnet: !1, + slug: "eurus", + }, + RRt = { + name: "Evrice Network", + chain: "EVC", + rpc: [ + "https://evrice-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://meta.evrice.com", + ], + faucets: [], + nativeCurrency: { name: "Evrice", symbol: "EVC", decimals: 18 }, + infoURL: "https://evrice.com", + shortName: "EVC", + chainId: 1010, + networkId: 1010, + slip44: 1020, + testnet: !1, + slug: "evrice-network", + }, + BRt = { + name: "Newton", + chain: "NEW", + rpc: [ + "https://newton.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://global.rpc.mainnet.newtonproject.org", + ], + faucets: [], + nativeCurrency: { name: "Newton", symbol: "NEW", decimals: 18 }, + infoURL: "https://www.newtonproject.org/", + shortName: "new", + chainId: 1012, + networkId: 1012, + testnet: !1, + slug: "newton", + }, + NRt = { + name: "Sakura", + chain: "Sakura", + rpc: [], + faucets: [], + nativeCurrency: { name: "Sakura", symbol: "SKU", decimals: 18 }, + infoURL: "https://clover.finance/sakura", + shortName: "sku", + chainId: 1022, + networkId: 1022, + testnet: !1, + slug: "sakura", + }, + ORt = { + name: "Clover Testnet", + chain: "Clover", + rpc: [], + faucets: [], + nativeCurrency: { name: "Clover", symbol: "CLV", decimals: 18 }, + infoURL: "https://clover.finance", + shortName: "tclv", + chainId: 1023, + networkId: 1023, + testnet: !0, + slug: "clover-testnet", + }, + LRt = { + name: "CLV Parachain", + chain: "CLV", + rpc: [ + "https://clv-parachain.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://api-para.clover.finance", + ], + faucets: [], + nativeCurrency: { name: "CLV", symbol: "CLV", decimals: 18 }, + infoURL: "https://clv.org", + shortName: "clv", + chainId: 1024, + networkId: 1024, + testnet: !1, + slug: "clv-parachain", + }, + DRt = { + name: "BitTorrent Chain Testnet", + chain: "BTTC", + rpc: [ + "https://bittorrent-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://testrpc.bittorrentchain.io/", + ], + faucets: [], + nativeCurrency: { name: "BitTorrent", symbol: "BTT", decimals: 18 }, + infoURL: "https://bittorrentchain.io/", + shortName: "tbtt", + chainId: 1028, + networkId: 1028, + explorers: [ + { + name: "testbttcscan", + url: "https://testscan.bittorrentchain.io", + standard: "none", + }, + ], + testnet: !0, + slug: "bittorrent-chain-testnet", + }, + qRt = { + name: "Conflux eSpace", + chain: "Conflux", + rpc: [ + "https://conflux-espace.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://evm.confluxrpc.com", + ], + faucets: [], + nativeCurrency: { name: "CFX", symbol: "CFX", decimals: 18 }, + infoURL: "https://confluxnetwork.org", + shortName: "cfx", + chainId: 1030, + networkId: 1030, + icon: { + url: "ipfs://bafkreifj7n24u2dslfijfihwqvpdeigt5aj3k3sxv6s35lv75sxsfr3ojy", + width: 460, + height: 576, + format: "png", + }, + explorers: [ + { + name: "Conflux Scan", + url: "https://evm.confluxscan.net", + standard: "none", + }, + ], + testnet: !1, + slug: "conflux-espace", + }, + FRt = { + name: "Proxy Network Testnet", + chain: "Proxy Network", + rpc: [ + "https://proxy-network-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "http://128.199.94.183:8041", + ], + faucets: [], + nativeCurrency: { name: "PRX", symbol: "PRX", decimals: 18 }, + infoURL: "https://theproxy.network", + shortName: "prx", + chainId: 1031, + networkId: 1031, + explorers: [ + { + name: "proxy network testnet", + url: "http://testnet-explorer.theproxy.network", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "proxy-network-testnet", + }, + WRt = { + name: "Bronos Testnet", + chain: "Bronos", + rpc: [ + "https://bronos-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://evm-testnet.bronos.org", + ], + faucets: ["https://faucet.bronos.org"], + nativeCurrency: { name: "tBRO", symbol: "tBRO", decimals: 18 }, + infoURL: "https://bronos.org", + shortName: "bronos-testnet", + chainId: 1038, + networkId: 1038, + icon: { + url: "ipfs://bafybeifkgtmhnq4sxu6jn22i7ass7aih6ubodr77k6ygtu4tjbvpmkw2ga", + width: 500, + height: 500, + format: "png", + }, + explorers: [ + { + name: "Bronos Testnet Explorer", + url: "https://tbroscan.bronos.org", + standard: "none", + icon: "bronos", + }, + ], + testnet: !0, + slug: "bronos-testnet", + }, + URt = { + name: "Bronos Mainnet", + chain: "Bronos", + rpc: [], + faucets: [], + nativeCurrency: { name: "BRO", symbol: "BRO", decimals: 18 }, + infoURL: "https://bronos.org", + shortName: "bronos-mainnet", + chainId: 1039, + networkId: 1039, + icon: { + url: "ipfs://bafybeifkgtmhnq4sxu6jn22i7ass7aih6ubodr77k6ygtu4tjbvpmkw2ga", + width: 500, + height: 500, + format: "png", + }, + explorers: [ + { + name: "Bronos Explorer", + url: "https://broscan.bronos.org", + standard: "none", + icon: "bronos", + }, + ], + testnet: !1, + slug: "bronos", + }, + HRt = { + name: "Metis Andromeda Mainnet", + chain: "ETH", + rpc: [ + "https://metis-andromeda.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://andromeda.metis.io/?owner=1088", + ], + faucets: [], + nativeCurrency: { name: "Metis", symbol: "METIS", decimals: 18 }, + infoURL: "https://www.metis.io", + shortName: "metis-andromeda", + chainId: 1088, + networkId: 1088, + explorers: [ + { + name: "blockscout", + url: "https://andromeda-explorer.metis.io", + standard: "EIP3091", + }, + ], + parent: { + type: "L2", + chain: "eip155-1", + bridges: [{ url: "https://bridge.metis.io" }], + }, + testnet: !1, + slug: "metis-andromeda", + }, + zRt = { + name: "MOAC mainnet", + chain: "MOAC", + rpc: [], + faucets: [], + nativeCurrency: { name: "MOAC", symbol: "mc", decimals: 18 }, + infoURL: "https://moac.io", + shortName: "moac", + chainId: 1099, + networkId: 1099, + slip44: 314, + explorers: [ + { + name: "moac explorer", + url: "https://explorer.moac.io", + standard: "none", + }, + ], + testnet: !1, + slug: "moac", + }, + jRt = { + name: "WEMIX3.0 Mainnet", + chain: "WEMIX", + rpc: [ + "https://wemix3-0.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://api.wemix.com", + "wss://ws.wemix.com", + ], + faucets: [], + nativeCurrency: { name: "WEMIX", symbol: "WEMIX", decimals: 18 }, + infoURL: "https://wemix.com", + shortName: "wemix", + chainId: 1111, + networkId: 1111, + explorers: [ + { + name: "WEMIX Block Explorer", + url: "https://explorer.wemix.com", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "wemix3-0", + }, + KRt = { + name: "WEMIX3.0 Testnet", + chain: "TWEMIX", + rpc: [ + "https://wemix3-0-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://api.test.wemix.com", + "wss://ws.test.wemix.com", + ], + faucets: ["https://wallet.test.wemix.com/faucet"], + nativeCurrency: { + name: "TestnetWEMIX", + symbol: "tWEMIX", + decimals: 18, + }, + infoURL: "https://wemix.com", + shortName: "twemix", + chainId: 1112, + networkId: 1112, + explorers: [ + { + name: "WEMIX Testnet Microscope", + url: "https://microscope.test.wemix.com", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "wemix3-0-testnet", + }, + VRt = { + name: "Core Blockchain Testnet", + chain: "Core", + icon: { + url: "ipfs://QmeTQaBCkpbsxNNWTpoNrMsnwnAEf1wYTcn7CiiZGfUXD2", + width: 200, + height: 217, + format: "png", + }, + rpc: [ + "https://core-blockchain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.test.btcs.network/", + ], + faucets: ["https://scan.test.btcs.network/faucet"], + nativeCurrency: { + name: "Core Blockchain Testnet Native Token", + symbol: "tCORE", + decimals: 18, + }, + infoURL: "https://www.coredao.org", + shortName: "tcore", + chainId: 1115, + networkId: 1115, + explorers: [ + { + name: "Core Scan Testnet", + url: "https://scan.test.btcs.network", + icon: "core", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "core-blockchain-testnet", + }, + GRt = { + name: "Core Blockchain Mainnet", + chain: "Core", + icon: { + url: "ipfs://QmeTQaBCkpbsxNNWTpoNrMsnwnAEf1wYTcn7CiiZGfUXD2", + width: 200, + height: 217, + format: "png", + }, + rpc: [ + "https://core-blockchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.coredao.org/", + ], + faucets: [], + nativeCurrency: { + name: "Core Blockchain Native Token", + symbol: "CORE", + decimals: 18, + }, + infoURL: "https://www.coredao.org", + shortName: "core", + chainId: 1116, + networkId: 1116, + explorers: [ + { + name: "Core Scan", + url: "https://scan.coredao.org", + icon: "core", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "core-blockchain", + }, + YRt = { + name: "Dogcoin Mainnet", + chain: "DOGS", + icon: { + url: "ipfs://QmZCadkExKThak3msvszZjo6UnAbUJKE61dAcg4TixuMC3", + width: 160, + height: 171, + format: "png", + }, + rpc: [ + "https://dogcoin.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://mainnet-rpc.dogcoin.network", + ], + faucets: ["https://faucet.dogcoin.network"], + nativeCurrency: { name: "Dogcoin", symbol: "DOGS", decimals: 18 }, + infoURL: "https://dogcoin.network", + shortName: "DOGSm", + chainId: 1117, + networkId: 1117, + explorers: [ + { + name: "Dogcoin", + url: "https://explorer.dogcoin.network", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "dogcoin", + }, + $Rt = { + name: "DeFiChain EVM Network Mainnet", + chain: "defichain-evm", + status: "incubating", + rpc: [], + faucets: [], + nativeCurrency: { name: "DeFiChain", symbol: "DFI", decimals: 18 }, + infoURL: "https://meta.defichain.com/", + shortName: "DFI", + chainId: 1130, + networkId: 1130, + slip44: 1130, + icon: { + url: "ipfs://QmdR3YL9F95ajwVwfxAGoEzYwm9w7JNsPSfUPjSaQogVjK", + width: 512, + height: 512, + format: "svg", + }, + explorers: [], + testnet: !1, + slug: "defichain-evm-network", + }, + JRt = { + name: "DeFiChain EVM Network Testnet", + chain: "defichain-evm-testnet", + status: "incubating", + rpc: [], + faucets: [], + nativeCurrency: { name: "DeFiChain", symbol: "DFI", decimals: 18 }, + infoURL: "https://meta.defichain.com/", + shortName: "DFI-T", + chainId: 1131, + networkId: 1131, + icon: { + url: "ipfs://QmdR3YL9F95ajwVwfxAGoEzYwm9w7JNsPSfUPjSaQogVjK", + width: 512, + height: 512, + format: "svg", + }, + explorers: [], + testnet: !0, + slug: "defichain-evm-network-testnet", + }, + ZRt = { + name: "AmStar Testnet", + chain: "AmStar", + icon: { + url: "ipfs://Qmd4TMQdnYxaUZqnVddh5S37NGH72g2kkK38ccCEgdZz1C", + width: 599, + height: 563, + format: "png", + }, + rpc: [ + "https://amstar-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://testnet-rpc.amstarscan.com", + ], + faucets: [], + nativeCurrency: { name: "SINSO", symbol: "SINSO", decimals: 18 }, + infoURL: "https://sinso.io", + shortName: "ASARt", + chainId: 1138, + networkId: 1138, + explorers: [ + { + name: "amstarscan-testnet", + url: "https://testnet.amstarscan.com", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "amstar-testnet", + }, + QRt = { + name: "MathChain", + chain: "MATH", + rpc: [ + "https://mathchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://mathchain-asia.maiziqianbao.net/rpc", + "https://mathchain-us.maiziqianbao.net/rpc", + ], + faucets: [], + nativeCurrency: { name: "MathChain", symbol: "MATH", decimals: 18 }, + infoURL: "https://mathchain.org", + shortName: "MATH", + chainId: 1139, + networkId: 1139, + testnet: !1, + slug: "mathchain", + }, + XRt = { + name: "MathChain Testnet", + chain: "MATH", + rpc: [ + "https://mathchain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://galois-hk.maiziqianbao.net/rpc", + ], + faucets: ["https://scan.boka.network/#/Galois/faucet"], + nativeCurrency: { name: "MathChain", symbol: "MATH", decimals: 18 }, + infoURL: "https://mathchain.org", + shortName: "tMATH", + chainId: 1140, + networkId: 1140, + testnet: !0, + slug: "mathchain-testnet", + }, + e7t = { + name: "Smart Host Teknoloji TESTNET", + chain: "SHT", + rpc: [ + "https://smart-host-teknoloji-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://s2.tl.web.tr:4041", + ], + faucets: [], + nativeCurrency: { + name: "Smart Host Teknoloji TESTNET", + symbol: "tSHT", + decimals: 18, + }, + features: [{ name: "EIP155" }, { name: "EIP1559" }], + infoURL: "https://smart-host.com.tr", + shortName: "sht", + chainId: 1177, + networkId: 1177, + icon: { + url: "ipfs://QmTrLGHyQ1Le25Q7EgNSF5Qq8D2SocKvroDkLqurdBuSQQ", + width: 1655, + height: 1029, + format: "png", + }, + explorers: [ + { + name: "Smart Host Teknoloji TESTNET Explorer", + url: "https://s2.tl.web.tr:4000", + icon: "smarthost", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "smart-host-teknoloji-testnet", + }, + t7t = { + name: "Iora Chain", + chain: "IORA", + icon: { + url: "ipfs://bafybeiehps5cqdhqottu2efo4jeehwpkz5rbux3cjxd75rm6rjm4sgs2wi", + width: 250, + height: 250, + format: "png", + }, + rpc: [ + "https://iora-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://dataseed.iorachain.com", + ], + faucets: [], + nativeCurrency: { name: "Iora", symbol: "IORA", decimals: 18 }, + infoURL: "https://iorachain.com", + shortName: "iora", + chainId: 1197, + networkId: 1197, + explorers: [ + { + name: "ioraexplorer", + url: "https://explorer.iorachain.com", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "iora-chain", + }, + r7t = { + name: "Evanesco Testnet", + chain: "Evanesco Testnet", + rpc: [ + "https://evanesco-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://seed5.evanesco.org:8547", + ], + faucets: [], + nativeCurrency: { name: "AVIS", symbol: "AVIS", decimals: 18 }, + infoURL: "https://evanesco.org/", + shortName: "avis", + chainId: 1201, + networkId: 1201, + testnet: !0, + slug: "evanesco-testnet", + }, + n7t = { + name: "World Trade Technical Chain Mainnet", + chain: "WTT", + rpc: [ + "https://world-trade-technical-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.cadaut.com", + "wss://rpc.cadaut.com/ws", + ], + faucets: [], + nativeCurrency: { + name: "World Trade Token", + symbol: "WTT", + decimals: 18, + }, + infoURL: "http://www.cadaut.com", + shortName: "wtt", + chainId: 1202, + networkId: 2048, + explorers: [ + { + name: "WTTScout", + url: "https://explorer.cadaut.com", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "world-trade-technical-chain", + }, + a7t = { + name: "Popcateum Mainnet", + chain: "POPCATEUM", + rpc: [ + "https://popcateum.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://dataseed.popcateum.org", + ], + faucets: [], + nativeCurrency: { name: "Popcat", symbol: "POP", decimals: 18 }, + infoURL: "https://popcateum.org", + shortName: "popcat", + chainId: 1213, + networkId: 1213, + explorers: [ + { + name: "popcateum explorer", + url: "https://explorer.popcateum.org", + standard: "none", + }, + ], + testnet: !1, + slug: "popcateum", + }, + i7t = { + name: "EnterChain Mainnet", + chain: "ENTER", + rpc: [ + "https://enterchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://tapi.entercoin.net/", + ], + faucets: [], + nativeCurrency: { name: "EnterCoin", symbol: "ENTER", decimals: 18 }, + infoURL: "https://entercoin.net", + shortName: "enter", + chainId: 1214, + networkId: 1214, + icon: { + url: "ipfs://Qmb2UYVc1MjLPi8vhszWRxqBJYoYkWQVxDJRSmtrgk6j2E", + width: 64, + height: 64, + format: "png", + }, + explorers: [ + { + name: "Enter Explorer - Expenter", + url: "https://explorer.entercoin.net", + icon: "enter", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "enterchain", + }, + s7t = { + name: "Exzo Network Mainnet", + chain: "EXZO", + icon: { + url: "ipfs://QmeYpc2JfEsHa2Bh11SKRx3sgDtMeg6T8KpXNLepBEKnbJ", + width: 128, + height: 128, + format: "png", + }, + rpc: [ + "https://exzo-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://mainnet.exzo.technology", + ], + faucets: [], + nativeCurrency: { name: "Exzo", symbol: "XZO", decimals: 18 }, + infoURL: "https://exzo.network", + shortName: "xzo", + chainId: 1229, + networkId: 1229, + explorers: [ + { + name: "blockscout", + url: "https://exzoscan.io", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "exzo-network", + }, + o7t = { + name: "Ultron Testnet", + chain: "Ultron", + icon: { + url: "ipfs://QmS4W4kY7XYBA4f52vuuytXh3YaTcNBXF14V9tEY6SNqhz", + width: 512, + height: 512, + format: "png", + }, + rpc: [ + "https://ultron-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://ultron-dev.io", + ], + faucets: [], + nativeCurrency: { name: "Ultron", symbol: "ULX", decimals: 18 }, + infoURL: "https://ultron.foundation", + shortName: "UltronTestnet", + chainId: 1230, + networkId: 1230, + explorers: [ + { + name: "Ultron Testnet Explorer", + url: "https://explorer.ultron-dev.io", + icon: "ultron", + standard: "none", + }, + ], + testnet: !0, + slug: "ultron-testnet", + }, + c7t = { + name: "Ultron Mainnet", + chain: "Ultron", + icon: { + url: "ipfs://QmS4W4kY7XYBA4f52vuuytXh3YaTcNBXF14V9tEY6SNqhz", + width: 512, + height: 512, + format: "png", + }, + rpc: [ + "https://ultron.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://ultron-rpc.net", + ], + faucets: [], + nativeCurrency: { name: "Ultron", symbol: "ULX", decimals: 18 }, + infoURL: "https://ultron.foundation", + shortName: "UtronMainnet", + chainId: 1231, + networkId: 1231, + explorers: [ + { + name: "Ultron Explorer", + url: "https://ulxscan.com", + icon: "ultron", + standard: "none", + }, + ], + testnet: !1, + slug: "ultron", + }, + u7t = { + name: "Step Network", + title: "Step Main Network", + chain: "STEP", + icon: { + url: "ipfs://QmVp9jyb3UFW71867yVtymmiRw7dPY4BTnsp3hEjr9tn8L", + width: 512, + height: 512, + format: "png", + }, + rpc: [ + "https://step-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.step.network", + ], + faucets: [], + nativeCurrency: { name: "FITFI", symbol: "FITFI", decimals: 18 }, + infoURL: "https://step.network", + shortName: "step", + chainId: 1234, + networkId: 1234, + explorers: [ + { + name: "StepScan", + url: "https://stepscan.io", + icon: "step", + standard: "EIP3091", + }, + ], + parent: { + type: "L2", + chain: "eip155-43114", + bridges: [{ url: "https://bridge.step.network" }], + }, + testnet: !1, + slug: "step-network", + }, + l7t = { + name: "OM Platform Mainnet", + chain: "omplatform", + rpc: [ + "https://om-platform.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc-cnx.omplatform.com/", + ], + faucets: [], + nativeCurrency: { name: "OMCOIN", symbol: "OM", decimals: 18 }, + infoURL: "https://omplatform.com/", + shortName: "om", + chainId: 1246, + networkId: 1246, + explorers: [ + { + name: "OMSCAN - Expenter", + url: "https://omscan.omplatform.com", + standard: "none", + }, + ], + testnet: !1, + slug: "om-platform", + }, + d7t = { + name: "CIC Chain Testnet", + chain: "CICT", + rpc: [ + "https://cic-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://testapi.cicscan.com", + ], + faucets: ["https://cicfaucet.com"], + nativeCurrency: { + name: "Crazy Internet Coin", + symbol: "CICT", + decimals: 18, + }, + infoURL: "https://www.cicchain.net", + shortName: "CICT", + chainId: 1252, + networkId: 1252, + icon: { + url: "ipfs://QmNekc5gpyrQkeDQcmfJLBrP5fa6GMarB13iy6aHVdQJDU", + width: 1024, + height: 768, + format: "png", + }, + explorers: [ + { + name: "CICscan", + url: "https://testnet.cicscan.com", + icon: "cicchain", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "cic-chain-testnet", + }, + p7t = { + name: "HALO Mainnet", + chain: "HALO", + rpc: [ + "https://halo.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://nodes.halo.land", + ], + faucets: [], + nativeCurrency: { name: "HALO", symbol: "HO", decimals: 18 }, + infoURL: "https://halo.land/#/", + shortName: "HO", + chainId: 1280, + networkId: 1280, + explorers: [ + { + name: "HALOexplorer", + url: "https://browser.halo.land", + standard: "none", + }, + ], + testnet: !1, + slug: "halo", + }, + h7t = { + name: "Moonbeam", + chain: "MOON", + rpc: [ + "https://moonbeam.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.api.moonbeam.network", + "wss://wss.api.moonbeam.network", + ], + faucets: [], + nativeCurrency: { name: "Glimmer", symbol: "GLMR", decimals: 18 }, + infoURL: "https://moonbeam.network/networks/moonbeam/", + shortName: "mbeam", + chainId: 1284, + networkId: 1284, + explorers: [ + { + name: "moonscan", + url: "https://moonbeam.moonscan.io", + standard: "none", + }, + ], + testnet: !1, + slug: "moonbeam", + }, + f7t = { + name: "Moonriver", + chain: "MOON", + rpc: [ + "https://moonriver.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.api.moonriver.moonbeam.network", + "wss://wss.api.moonriver.moonbeam.network", + ], + faucets: [], + nativeCurrency: { name: "Moonriver", symbol: "MOVR", decimals: 18 }, + infoURL: "https://moonbeam.network/networks/moonriver/", + shortName: "mriver", + chainId: 1285, + networkId: 1285, + explorers: [ + { + name: "moonscan", + url: "https://moonriver.moonscan.io", + standard: "none", + }, + ], + testnet: !1, + slug: "moonriver", + }, + m7t = { + name: "Moonbase Alpha", + chain: "MOON", + rpc: [ + "https://moonbase-alpha.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.api.moonbase.moonbeam.network", + "wss://wss.api.moonbase.moonbeam.network", + ], + faucets: [], + nativeCurrency: { name: "Dev", symbol: "DEV", decimals: 18 }, + infoURL: "https://docs.moonbeam.network/networks/testnet/", + shortName: "mbase", + chainId: 1287, + networkId: 1287, + explorers: [ + { + name: "moonscan", + url: "https://moonbase.moonscan.io", + standard: "none", + }, + ], + testnet: !0, + slug: "moonbase-alpha", + }, + y7t = { + name: "Moonrock", + chain: "MOON", + rpc: [ + "https://moonrock.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.api.moonrock.moonbeam.network", + "wss://wss.api.moonrock.moonbeam.network", + ], + faucets: [], + nativeCurrency: { name: "Rocs", symbol: "ROC", decimals: 18 }, + infoURL: + "https://docs.moonbeam.network/learn/platform/networks/overview/", + shortName: "mrock", + chainId: 1288, + networkId: 1288, + testnet: !1, + slug: "moonrock", + }, + g7t = { + name: "Bobabeam", + chain: "Bobabeam", + rpc: [ + "https://bobabeam.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://bobabeam.boba.network", + "wss://wss.bobabeam.boba.network", + "https://replica.bobabeam.boba.network", + "wss://replica-wss.bobabeam.boba.network", + ], + faucets: [], + nativeCurrency: { name: "Boba Token", symbol: "BOBA", decimals: 18 }, + infoURL: "https://boba.network", + shortName: "Bobabeam", + chainId: 1294, + networkId: 1294, + explorers: [ + { + name: "Bobabeam block explorer", + url: "https://blockexplorer.bobabeam.boba.network", + standard: "none", + }, + ], + testnet: !1, + slug: "bobabeam", + }, + b7t = { + name: "Bobabase Testnet", + chain: "Bobabase Testnet", + rpc: [ + "https://bobabase-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://bobabase.boba.network", + "wss://wss.bobabase.boba.network", + "https://replica.bobabase.boba.network", + "wss://replica-wss.bobabase.boba.network", + ], + faucets: [], + nativeCurrency: { name: "Boba Token", symbol: "BOBA", decimals: 18 }, + infoURL: "https://boba.network", + shortName: "Bobabase", + chainId: 1297, + networkId: 1297, + explorers: [ + { + name: "Bobabase block explorer", + url: "https://blockexplorer.bobabase.boba.network", + standard: "none", + }, + ], + testnet: !0, + slug: "bobabase-testnet", + }, + v7t = { + name: "Dos Fuji Subnet", + chain: "DOS", + rpc: [ + "https://dos-fuji-subnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://test.doschain.com/jsonrpc", + ], + faucets: [], + nativeCurrency: { + name: "Dos Native Token", + symbol: "DOS", + decimals: 18, + }, + infoURL: "http://doschain.io/", + shortName: "DOS", + chainId: 1311, + networkId: 1311, + explorers: [ + { + name: "dos-testnet", + url: "https://test.doscan.io", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "dos-fuji-subnet", + }, + w7t = { + name: "Alyx Mainnet", + chain: "ALYX", + rpc: [ + "https://alyx.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.alyxchain.com", + ], + faucets: [], + nativeCurrency: { + name: "Alyx Chain Native Token", + symbol: "ALYX", + decimals: 18, + }, + infoURL: "https://www.alyxchain.com", + shortName: "alyx", + chainId: 1314, + networkId: 1314, + explorers: [ + { + name: "alyxscan", + url: "https://www.alyxscan.com", + standard: "EIP3091", + }, + ], + icon: { + url: "ipfs://bafkreifd43fcvh77mdcwjrpzpnlhthounc6b4u645kukqpqhduaveatf6i", + width: 2481, + height: 2481, + format: "png", + }, + testnet: !1, + slug: "alyx", + }, + _7t = { + name: "Aitd Mainnet", + chain: "AITD", + icon: { + url: "ipfs://QmXbBMMhjTTGAGjmqMpJm3ufFrtdkfEXCFyXYgz7nnZzsy", + width: 160, + height: 160, + format: "png", + }, + rpc: [ + "https://aitd.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://walletrpc.aitd.io", + "https://node.aitd.io", + ], + faucets: [], + nativeCurrency: { name: "AITD Mainnet", symbol: "AITD", decimals: 18 }, + infoURL: "https://www.aitd.io/", + shortName: "aitd", + chainId: 1319, + networkId: 1319, + explorers: [ + { + name: "AITD Chain Explorer Mainnet", + url: "https://aitd-explorer-new.aitd.io", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "aitd", + }, + x7t = { + name: "Aitd Testnet", + chain: "AITD", + icon: { + url: "ipfs://QmXbBMMhjTTGAGjmqMpJm3ufFrtdkfEXCFyXYgz7nnZzsy", + width: 160, + height: 160, + format: "png", + }, + rpc: [ + "https://aitd-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "http://http-testnet.aitd.io", + ], + faucets: ["https://aitd-faucet-pre.aitdcoin.com/"], + nativeCurrency: { name: "AITD Testnet", symbol: "AITD", decimals: 18 }, + infoURL: "https://www.aitd.io/", + shortName: "aitdtestnet", + chainId: 1320, + networkId: 1320, + explorers: [ + { + name: "AITD Chain Explorer Testnet", + url: "https://block-explorer-testnet.aitd.io", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "aitd-testnet", + }, + T7t = { + name: "Elysium Testnet", + title: + "An L1, carbon-neutral, tree-planting, metaverse dedicated blockchain created by VulcanForged", + chain: "Elysium", + rpc: [ + "https://elysium-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://elysium-test-rpc.vulcanforged.com", + ], + faucets: [], + nativeCurrency: { name: "LAVA", symbol: "LAVA", decimals: 18 }, + infoURL: "https://elysiumscan.vulcanforged.com", + shortName: "ELST", + chainId: 1338, + networkId: 1338, + explorers: [ + { + name: "Elysium testnet explorer", + url: "https://elysium-explorer.vulcanforged.com", + standard: "none", + }, + ], + testnet: !0, + slug: "elysium-testnet", + }, + E7t = { + name: "Elysium Mainnet", + title: + "An L1, carbon-neutral, tree-planting, metaverse dedicated blockchain created by VulcanForged", + chain: "Elysium", + rpc: [ + "https://elysium.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://elysium-rpc.vulcanforged.com", + ], + faucets: [], + nativeCurrency: { name: "LAVA", symbol: "LAVA", decimals: 18 }, + infoURL: "https://elysiumscan.vulcanforged.com", + shortName: "ELSM", + chainId: 1339, + networkId: 1339, + explorers: [ + { + name: "Elysium mainnet explorer", + url: "https://explorer.elysiumchain.tech", + standard: "none", + }, + ], + testnet: !1, + slug: "elysium", + }, + C7t = { + name: "CIC Chain Mainnet", + chain: "CIC", + rpc: [ + "https://cic-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://xapi.cicscan.com", + ], + faucets: [], + nativeCurrency: { + name: "Crazy Internet Coin", + symbol: "CIC", + decimals: 18, + }, + infoURL: "https://www.cicchain.net", + shortName: "CIC", + chainId: 1353, + networkId: 1353, + icon: { + url: "ipfs://QmNekc5gpyrQkeDQcmfJLBrP5fa6GMarB13iy6aHVdQJDU", + width: 1024, + height: 768, + format: "png", + }, + explorers: [ + { + name: "CICscan", + url: "https://cicscan.com", + icon: "cicchain", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "cic-chain", + }, + I7t = { + name: "AmStar Mainnet", + chain: "AmStar", + icon: { + url: "ipfs://Qmd4TMQdnYxaUZqnVddh5S37NGH72g2kkK38ccCEgdZz1C", + width: 599, + height: 563, + format: "png", + }, + rpc: [ + "https://amstar.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://mainnet-rpc.amstarscan.com", + ], + faucets: [], + nativeCurrency: { name: "SINSO", symbol: "SINSO", decimals: 18 }, + infoURL: "https://sinso.io", + shortName: "ASAR", + chainId: 1388, + networkId: 1388, + explorers: [ + { + name: "amstarscan", + url: "https://mainnet.amstarscan.com", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "amstar", + }, + A7t = { + name: "Polygon zkEVM Testnet", + title: "Polygon zkEVM Testnet", + chain: "Polygon", + rpc: [ + "https://polygon-zkevm-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.public.zkevm-test.net", + ], + faucets: [], + nativeCurrency: { name: "Ether", symbol: "ETH", decimals: 18 }, + infoURL: "https://polygon.technology/solutions/polygon-zkevm/", + shortName: "testnet-zkEVM-mango", + chainId: 1422, + networkId: 1422, + explorers: [ + { + name: "Polygon zkEVM explorer", + url: "https://explorer.public.zkevm-test.net", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "polygon-zkevm-testnet", + }, + k7t = { + name: "Ctex Scan Blockchain", + chain: "Ctex Scan Blockchain", + icon: { + url: "ipfs://bafkreid5evn4qovxo6msuekizv5zn7va62tea7w2zpdx5sskconebuhqle", + width: 800, + height: 800, + format: "png", + }, + rpc: [ + "https://ctex-scan-blockchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://mainnet-rpc.ctexscan.com/", + ], + faucets: ["https://faucet.ctexscan.com"], + nativeCurrency: { name: "CTEX", symbol: "CTEX", decimals: 18 }, + infoURL: "https://ctextoken.io", + shortName: "CTEX", + chainId: 1455, + networkId: 1455, + explorers: [ + { + name: "Ctex Scan Explorer", + url: "https://ctexscan.com", + standard: "none", + }, + ], + testnet: !1, + slug: "ctex-scan-blockchain", + }, + S7t = { + name: "Sherpax Mainnet", + chain: "Sherpax Mainnet", + rpc: [ + "https://sherpax.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://mainnet.sherpax.io/rpc", + ], + faucets: [], + nativeCurrency: { name: "KSX", symbol: "KSX", decimals: 18 }, + infoURL: "https://sherpax.io/", + shortName: "Sherpax", + chainId: 1506, + networkId: 1506, + explorers: [ + { + name: "Sherpax Mainnet Explorer", + url: "https://evm.sherpax.io", + standard: "none", + }, + ], + testnet: !1, + slug: "sherpax", + }, + M7t = { + name: "Sherpax Testnet", + chain: "Sherpax Testnet", + rpc: [ + "https://sherpax-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://sherpax-testnet.chainx.org/rpc", + ], + faucets: [], + nativeCurrency: { name: "KSX", symbol: "KSX", decimals: 18 }, + infoURL: "https://sherpax.io/", + shortName: "SherpaxTestnet", + chainId: 1507, + networkId: 1507, + explorers: [ + { + name: "Sherpax Testnet Explorer", + url: "https://evm-pre.sherpax.io", + standard: "none", + }, + ], + testnet: !0, + slug: "sherpax-testnet", + }, + P7t = { + name: "Beagle Messaging Chain", + chain: "BMC", + rpc: [ + "https://beagle-messaging-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://beagle.chat/eth", + ], + faucets: ["https://faucet.beagle.chat/"], + nativeCurrency: { name: "Beagle", symbol: "BG", decimals: 18 }, + infoURL: "https://beagle.chat/", + shortName: "beagle", + chainId: 1515, + networkId: 1515, + explorers: [ + { + name: "Beagle Messaging Chain Explorer", + url: "https://eth.beagle.chat", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "beagle-messaging-chain", + }, + R7t = { + name: "Catecoin Chain Mainnet", + chain: "Catechain", + rpc: [ + "https://catecoin-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://send.catechain.com", + ], + faucets: [], + nativeCurrency: { name: "Catecoin", symbol: "CATE", decimals: 18 }, + infoURL: "https://catechain.com", + shortName: "cate", + chainId: 1618, + networkId: 1618, + testnet: !1, + slug: "catecoin-chain", + }, + B7t = { + name: "Atheios", + chain: "ATH", + rpc: [ + "https://atheios.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://wallet.atheios.com:8797", + ], + faucets: [], + nativeCurrency: { name: "Atheios Ether", symbol: "ATH", decimals: 18 }, + infoURL: "https://atheios.com", + shortName: "ath", + chainId: 1620, + networkId: 11235813, + slip44: 1620, + testnet: !1, + slug: "atheios", + }, + N7t = { + name: "Btachain", + chain: "btachain", + rpc: [ + "https://btachain.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://dataseed1.btachain.com/", + ], + faucets: [], + nativeCurrency: { name: "Bitcoin Asset", symbol: "BTA", decimals: 18 }, + infoURL: "https://bitcoinasset.io/", + shortName: "bta", + chainId: 1657, + networkId: 1657, + testnet: !1, + slug: "btachain", + }, + O7t = { + name: "LUDAN Mainnet", + chain: "LUDAN", + rpc: [ + "https://ludan.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.ludan.org/", + ], + faucets: [], + nativeCurrency: { name: "LUDAN", symbol: "LUDAN", decimals: 18 }, + infoURL: "https://www.ludan.org/", + shortName: "LUDAN", + icon: { + url: "ipfs://bafkreigzeanzqgxrzzep45t776ovbwi242poqxbryuu2go5eedeuwwcsay", + width: 512, + height: 512, + format: "png", + }, + chainId: 1688, + networkId: 1688, + testnet: !1, + slug: "ludan", + }, + L7t = { + name: "Anytype EVM Chain", + chain: "ETH", + icon: { + url: "ipfs://QmaARJiAQUn4Z6wG8GLEry3kTeBB3k6RfHzSZU9SPhBgcG", + width: 200, + height: 200, + format: "png", + }, + rpc: [ + "https://anytype-evm-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://geth.anytype.io", + ], + faucets: ["https://evm.anytype.io/faucet"], + nativeCurrency: { name: "ANY", symbol: "ANY", decimals: 18 }, + infoURL: "https://evm.anytype.io", + shortName: "AnytypeChain", + chainId: 1701, + networkId: 1701, + explorers: [ + { + name: "Anytype Explorer", + url: "https://explorer.anytype.io", + icon: "any", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "anytype-evm-chain", + }, + D7t = { + name: "TBSI Mainnet", + title: "Thai Blockchain Service Infrastructure Mainnet", + chain: "TBSI", + rpc: [ + "https://tbsi.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.blockchain.or.th", + ], + faucets: [], + nativeCurrency: { name: "Jinda", symbol: "JINDA", decimals: 18 }, + infoURL: "https://blockchain.or.th", + shortName: "TBSI", + chainId: 1707, + networkId: 1707, + testnet: !1, + slug: "tbsi", + }, + q7t = { + name: "TBSI Testnet", + title: "Thai Blockchain Service Infrastructure Testnet", + chain: "TBSI", + rpc: [ + "https://tbsi-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.testnet.blockchain.or.th", + ], + faucets: ["https://faucet.blockchain.or.th"], + nativeCurrency: { name: "Jinda", symbol: "JINDA", decimals: 18 }, + infoURL: "https://blockchain.or.th", + shortName: "tTBSI", + chainId: 1708, + networkId: 1708, + testnet: !0, + slug: "tbsi-testnet", + }, + F7t = { + name: "Kerleano", + title: "Proof of Carbon Reduction testnet", + chain: "CRC", + status: "active", + rpc: [ + "https://kerleano.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://cacib-saturn-test.francecentral.cloudapp.azure.com", + "wss://cacib-saturn-test.francecentral.cloudapp.azure.com:9443", + ], + faucets: [ + "https://github.com/ethereum-pocr/kerleano/blob/main/docs/faucet.md", + ], + nativeCurrency: { + name: "Carbon Reduction Coin", + symbol: "CRC", + decimals: 18, + }, + infoURL: "https://github.com/ethereum-pocr/kerleano", + shortName: "kerleano", + chainId: 1804, + networkId: 1804, + explorers: [ + { + name: "Lite Explorer", + url: "https://ethereum-pocr.github.io/explorer/kerleano", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "kerleano", + }, + W7t = { + name: "Rabbit Analog Testnet Chain", + chain: "rAna", + icon: { + url: "ipfs://QmdfbjjF3ZzN2jTkH9REgrA8jDS6A6c21n7rbWSVbSnvQc", + width: 310, + height: 251, + format: "svg", + }, + rpc: [ + "https://rabbit-analog-testnet-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rabbit.analog-rpc.com", + ], + faucets: ["https://analogfaucet.com"], + nativeCurrency: { + name: "Rabbit Analog Test Chain Native Token ", + symbol: "rAna", + decimals: 18, + }, + infoURL: "https://rabbit.analogscan.com", + shortName: "rAna", + chainId: 1807, + networkId: 1807, + explorers: [ + { + name: "blockscout", + url: "https://rabbit.analogscan.com", + standard: "none", + }, + ], + testnet: !0, + slug: "rabbit-analog-testnet-chain", + }, + U7t = { + name: "Cube Chain Mainnet", + chain: "Cube", + icon: { + url: "ipfs://QmbENgHTymTUUArX5MZ2XXH69WGenirU3oamkRD448hYdz", + width: 282, + height: 250, + format: "png", + }, + rpc: [ + "https://cube-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://http-mainnet.cube.network", + "wss://ws-mainnet.cube.network", + "https://http-mainnet-sg.cube.network", + "wss://ws-mainnet-sg.cube.network", + "https://http-mainnet-us.cube.network", + "wss://ws-mainnet-us.cube.network", + ], + faucets: [], + nativeCurrency: { + name: "Cube Chain Native Token", + symbol: "CUBE", + decimals: 18, + }, + infoURL: "https://www.cube.network", + shortName: "cube", + chainId: 1818, + networkId: 1818, + slip44: 1818, + explorers: [ + { + name: "cube-scan", + url: "https://cubescan.network", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "cube-chain", + }, + H7t = { + name: "Cube Chain Testnet", + chain: "Cube", + icon: { + url: "ipfs://QmbENgHTymTUUArX5MZ2XXH69WGenirU3oamkRD448hYdz", + width: 282, + height: 250, + format: "png", + }, + rpc: [ + "https://cube-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://http-testnet.cube.network", + "wss://ws-testnet.cube.network", + "https://http-testnet-sg.cube.network", + "wss://ws-testnet-sg.cube.network", + "https://http-testnet-jp.cube.network", + "wss://ws-testnet-jp.cube.network", + "https://http-testnet-us.cube.network", + "wss://ws-testnet-us.cube.network", + ], + faucets: ["https://faucet.cube.network"], + nativeCurrency: { + name: "Cube Chain Test Native Token", + symbol: "CUBET", + decimals: 18, + }, + infoURL: "https://www.cube.network", + shortName: "cubet", + chainId: 1819, + networkId: 1819, + slip44: 1819, + explorers: [ + { + name: "cubetest-scan", + url: "https://testnet.cubescan.network", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "cube-chain-testnet", + }, + z7t = { + name: "Teslafunds", + chain: "TSF", + rpc: [ + "https://teslafunds.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://tsfapi.europool.me", + ], + faucets: [], + nativeCurrency: { + name: "Teslafunds Ether", + symbol: "TSF", + decimals: 18, + }, + infoURL: "https://teslafunds.io", + shortName: "tsf", + chainId: 1856, + networkId: 1, + testnet: !1, + slug: "teslafunds", + }, + j7t = { + name: "Gitshock Cartenz Testnet", + chain: "Gitshock Cartenz", + icon: { + url: "ipfs://bafkreifqpj5jkjazvh24muc7wv4r22tihzzl75cevgecxhvojm4ls6mzpq", + width: 512, + height: 512, + format: "png", + }, + rpc: [ + "https://gitshock-cartenz-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.cartenz.works", + ], + features: [{ name: "EIP155" }, { name: "EIP1559" }], + faucets: [], + nativeCurrency: { + name: "Gitshock Cartenz", + symbol: "tGTFX", + decimals: 18, + }, + infoURL: "https://gitshock.com", + shortName: "gitshockchain", + chainId: 1881, + networkId: 1881, + explorers: [ + { + name: "blockscout", + url: "https://scan.cartenz.works", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "gitshock-cartenz-testnet", + }, + K7t = { + name: "BON Network", + chain: "BON", + rpc: [ + "https://bon-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "http://rpc.boyanet.org:8545", + "ws://rpc.boyanet.org:8546", + ], + faucets: [], + nativeCurrency: { name: "BOYACoin", symbol: "BOY", decimals: 18 }, + infoURL: "https://boyanet.org", + shortName: "boya", + chainId: 1898, + networkId: 1, + explorers: [ + { + name: "explorer", + url: "https://explorer.boyanet.org:4001", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "bon-network", + }, + V7t = { + name: "ONUS Chain Testnet", + title: "ONUS Chain Testnet", + chain: "onus", + rpc: [ + "https://onus-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc-testnet.onuschain.io", + ], + faucets: [], + nativeCurrency: { name: "ONUS", symbol: "ONUS", decimals: 18 }, + infoURL: "https://onuschain.io", + shortName: "onus-testnet", + chainId: 1945, + networkId: 1945, + explorers: [ + { + name: "Onus explorer testnet", + url: "https://explorer-testnet.onuschain.io", + icon: "onus", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "onus-chain-testnet", + }, + G7t = { + name: "D-Chain Mainnet", + chain: "D-Chain", + rpc: [ + "https://d-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://mainnet.d-chain.network/ext/bc/2ZiR1Bro5E59siVuwdNuRFzqL95NkvkbzyLBdrsYR9BLSHV7H4/rpc", + ], + nativeCurrency: { name: "DOINX", symbol: "DOINX", decimals: 18 }, + shortName: "dchain-mainnet", + chainId: 1951, + networkId: 1951, + icon: { + url: "ipfs://QmV2vhTqS9UyrX9Q6BSCbK4JrKBnS8ErHvstMjfb2oVWaj", + width: 700, + height: 495, + format: "png", + }, + faucets: [], + infoURL: "", + testnet: !1, + slug: "d-chain", + }, + Y7t = { + name: "Atelier", + title: "Atelier Test Network", + chain: "ALTR", + rpc: [ + "https://atelier.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://1971.network/atlr", + "wss://1971.network/atlr", + ], + faucets: [], + nativeCurrency: { name: "ATLR", symbol: "ATLR", decimals: 18 }, + infoURL: "https://1971.network/", + shortName: "atlr", + chainId: 1971, + networkId: 1971, + icon: { + url: "ipfs://bafkreigcquvoalec3ll2m26v4wsx5enlxwyn6nk2mgfqwncyqrgwivla5u", + width: 200, + height: 200, + format: "png", + }, + testnet: !0, + slug: "atelier", + }, + $7t = { + name: "ONUS Chain Mainnet", + title: "ONUS Chain Mainnet", + chain: "onus", + rpc: [ + "https://onus-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.onuschain.io", + "wss://ws.onuschain.io", + ], + faucets: [], + nativeCurrency: { name: "ONUS", symbol: "ONUS", decimals: 18 }, + infoURL: "https://onuschain.io", + shortName: "onus-mainnet", + chainId: 1975, + networkId: 1975, + explorers: [ + { + name: "Onus explorer mainnet", + url: "https://explorer.onuschain.io", + icon: "onus", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "onus-chain", + }, + J7t = { + name: "Eurus Testnet", + chain: "EUN", + rpc: [ + "https://eurus-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://testnet.eurus.network", + ], + faucets: [], + nativeCurrency: { name: "Eurus", symbol: "EUN", decimals: 18 }, + infoURL: "https://eurus.network", + shortName: "euntest", + chainId: 1984, + networkId: 1984, + icon: { + url: "ipfs://QmaGd5L9jGPbfyGXBFhu9gjinWJ66YtNrXq8x6Q98Eep9e", + width: 471, + height: 471, + format: "svg", + }, + explorers: [ + { + name: "testnetexplorer", + url: "https://testnetexplorer.eurus.network", + icon: "eurus", + standard: "none", + }, + ], + testnet: !0, + slug: "eurus-testnet", + }, + Z7t = { + name: "EtherGem", + chain: "EGEM", + rpc: [ + "https://ethergem.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://jsonrpc.egem.io/custom", + ], + faucets: [], + nativeCurrency: { + name: "EtherGem Ether", + symbol: "EGEM", + decimals: 18, + }, + infoURL: "https://egem.io", + shortName: "egem", + chainId: 1987, + networkId: 1987, + slip44: 1987, + testnet: !1, + slug: "ethergem", + }, + Q7t = { + name: "Ekta", + chain: "EKTA", + rpc: [ + "https://ekta.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://main.ekta.io", + ], + faucets: [], + nativeCurrency: { name: "EKTA", symbol: "EKTA", decimals: 18 }, + infoURL: "https://www.ekta.io", + shortName: "ekta", + chainId: 1994, + networkId: 1994, + icon: { + url: "ipfs://QmfMd564KUPK8eKZDwGCT71ZC2jMnUZqP6LCtLpup3rHH1", + width: 2100, + height: 2100, + format: "png", + }, + explorers: [ + { + name: "ektascan", + url: "https://ektascan.io", + icon: "ekta", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "ekta", + }, + X7t = { + name: "edeXa Testnet", + chain: "edeXa TestNetwork", + rpc: [ + "https://edexa-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://testnet.edexa.com/rpc", + ], + faucets: ["https://faucet.edexa.com/"], + nativeCurrency: { name: "EDEXA", symbol: "EDX", decimals: 18 }, + infoURL: "https://edexa.com/", + shortName: "edx", + chainId: 1995, + networkId: 1995, + icon: { + url: "ipfs://QmSgvmLpRsCiu2ySqyceA5xN4nwi7URJRNEZLffwEKXdoR", + width: 1028, + height: 1042, + format: "png", + }, + explorers: [ + { + name: "edexa-testnet", + url: "https://explorer.edexa.com", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "edexa-testnet", + }, + eBt = { + name: "Dogechain Mainnet", + chain: "DC", + icon: { + url: "ipfs://QmNS6B6L8FfgGSMTEi2SxD3bK5cdmKPNtQKcYaJeRWrkHs", + width: 732, + height: 732, + format: "png", + }, + rpc: [ + "https://dogechain.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.dogechain.dog", + "https://rpc-us.dogechain.dog", + "https://rpc01.dogechain.dog", + ], + faucets: [], + nativeCurrency: { name: "Dogecoin", symbol: "DOGE", decimals: 18 }, + infoURL: "https://dogechain.dog", + shortName: "dc", + chainId: 2e3, + networkId: 2e3, + explorers: [ + { + name: "dogechain explorer", + url: "https://explorer.dogechain.dog", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "dogechain", + }, + tBt = { + name: "Milkomeda C1 Mainnet", + chain: "milkAda", + icon: { + url: "ipfs://QmdoUtvHDybu5ppYBZT8BMRp6AqByVSoQs8nFwKbaS55jd", + width: 367, + height: 367, + format: "svg", + }, + rpc: [ + "https://milkomeda-c1.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc-mainnet-cardano-evm.c1.milkomeda.com", + "wss://rpc-mainnet-cardano-evm.c1.milkomeda.com", + ], + faucets: [], + nativeCurrency: { name: "milkAda", symbol: "mADA", decimals: 18 }, + infoURL: "https://milkomeda.com", + shortName: "milkAda", + chainId: 2001, + networkId: 2001, + explorers: [ + { + name: "Blockscout", + url: "https://explorer-mainnet-cardano-evm.c1.milkomeda.com", + standard: "none", + }, + ], + testnet: !1, + slug: "milkomeda-c1", + }, + rBt = { + name: "Milkomeda A1 Mainnet", + chain: "milkALGO", + icon: { + url: "ipfs://QmdoUtvHDybu5ppYBZT8BMRp6AqByVSoQs8nFwKbaS55jd", + width: 367, + height: 367, + format: "svg", + }, + rpc: [ + "https://milkomeda-a1.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc-mainnet-algorand-rollup.a1.milkomeda.com", + "wss://rpc-mainnet-algorand-rollup.a1.milkomeda.com/ws", + ], + faucets: [], + nativeCurrency: { name: "milkALGO", symbol: "mALGO", decimals: 18 }, + infoURL: "https://milkomeda.com", + shortName: "milkALGO", + chainId: 2002, + networkId: 2002, + explorers: [ + { + name: "Blockscout", + url: "https://explorer-mainnet-algorand-rollup.a1.milkomeda.com", + standard: "none", + }, + ], + testnet: !1, + slug: "milkomeda-a1", + }, + nBt = { + name: "CloudWalk Testnet", + chain: "CloudWalk Testnet", + rpc: [], + faucets: [], + nativeCurrency: { + name: "CloudWalk Native Token", + symbol: "CWN", + decimals: 18, + }, + infoURL: "https://cloudwalk.io", + shortName: "cloudwalk_testnet", + chainId: 2008, + networkId: 2008, + explorers: [ + { + name: "CloudWalk Testnet Explorer", + url: "https://explorer.testnet.cloudwalk.io", + standard: "none", + }, + ], + testnet: !0, + slug: "cloudwalk-testnet", + }, + aBt = { + name: "CloudWalk Mainnet", + chain: "CloudWalk Mainnet", + rpc: [], + faucets: [], + nativeCurrency: { + name: "CloudWalk Native Token", + symbol: "CWN", + decimals: 18, + }, + infoURL: "https://cloudwalk.io", + shortName: "cloudwalk_mainnet", + chainId: 2009, + networkId: 2009, + explorers: [ + { + name: "CloudWalk Mainnet Explorer", + url: "https://explorer.mainnet.cloudwalk.io", + standard: "none", + }, + ], + testnet: !1, + slug: "cloudwalk", + }, + iBt = { + name: "MainnetZ Mainnet", + chain: "NetZ", + icon: { + url: "ipfs://QmT5gJ5weBiLT3GoYuF5yRTRLdPLCVZ3tXznfqW7M8fxgG", + width: 400, + height: 400, + format: "png", + }, + rpc: [ + "https://z-mainnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://mainnet-rpc.mainnetz.io", + ], + faucets: ["https://faucet.mainnetz.io"], + nativeCurrency: { name: "MainnetZ", symbol: "NetZ", decimals: 18 }, + infoURL: "https://mainnetz.io", + shortName: "NetZm", + chainId: 2016, + networkId: 2016, + explorers: [ + { + name: "MainnetZ", + url: "https://explorer.mainnetz.io", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "z-mainnet", + }, + sBt = { + name: "PublicMint Devnet", + title: "Public Mint Devnet", + chain: "PublicMint", + rpc: [ + "https://publicmint-devnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.dev.publicmint.io:8545", + ], + faucets: [], + nativeCurrency: { name: "USD", symbol: "USD", decimals: 18 }, + infoURL: "https://publicmint.com", + shortName: "pmint_dev", + chainId: 2018, + networkId: 2018, + slip44: 60, + explorers: [ + { + name: "PublicMint Explorer", + url: "https://explorer.dev.publicmint.io", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "publicmint-devnet", + }, + oBt = { + name: "PublicMint Testnet", + title: "Public Mint Testnet", + chain: "PublicMint", + rpc: [ + "https://publicmint-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.tst.publicmint.io:8545", + ], + faucets: [], + nativeCurrency: { name: "USD", symbol: "USD", decimals: 18 }, + infoURL: "https://publicmint.com", + shortName: "pmint_test", + chainId: 2019, + networkId: 2019, + slip44: 60, + explorers: [ + { + name: "PublicMint Explorer", + url: "https://explorer.tst.publicmint.io", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "publicmint-testnet", + }, + cBt = { + name: "PublicMint Mainnet", + title: "Public Mint Mainnet", + chain: "PublicMint", + rpc: [ + "https://publicmint.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.publicmint.io:8545", + ], + faucets: [], + nativeCurrency: { name: "USD", symbol: "USD", decimals: 18 }, + infoURL: "https://publicmint.com", + shortName: "pmint", + chainId: 2020, + networkId: 2020, + slip44: 60, + explorers: [ + { + name: "PublicMint Explorer", + url: "https://explorer.publicmint.io", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "publicmint", + }, + uBt = { + name: "Edgeware Mainnet", + chain: "EDG", + rpc: [ + "https://edgeware.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://mainnet1.edgewa.re", + ], + faucets: [], + nativeCurrency: { name: "Edge", symbol: "EDG", decimals: 18 }, + infoURL: "http://edgewa.re", + shortName: "edg", + chainId: 2021, + networkId: 2021, + testnet: !1, + slug: "edgeware", + }, + lBt = { + name: "Beresheet Testnet", + chain: "EDG", + rpc: [ + "https://beresheet-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://beresheet1.edgewa.re", + ], + faucets: [], + nativeCurrency: { name: "Testnet Edge", symbol: "tEDG", decimals: 18 }, + infoURL: "http://edgewa.re", + shortName: "edgt", + chainId: 2022, + networkId: 2022, + testnet: !0, + slug: "beresheet-testnet", + }, + dBt = { + name: "Taycan Testnet", + chain: "Taycan", + rpc: [ + "https://taycan-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://test-taycan.hupayx.io", + ], + faucets: ["https://ttaycan-faucet.hupayx.io/"], + nativeCurrency: { name: "test-Shuffle", symbol: "tSFL", decimals: 18 }, + infoURL: "https://hupayx.io", + shortName: "taycan-testnet", + chainId: 2023, + networkId: 2023, + icon: { + url: "ipfs://bafkreidvjcc73v747lqlyrhgbnkvkdepdvepo6baj6hmjsmjtvdyhmzzmq", + width: 1e3, + height: 1206, + format: "png", + }, + explorers: [ + { + name: "Taycan Explorer(Blockscout)", + url: "https://evmscan-test.hupayx.io", + standard: "none", + icon: "shuffle", + }, + { + name: "Taycan Cosmos Explorer", + url: "https://cosmoscan-test.hupayx.io", + standard: "none", + icon: "shuffle", + }, + ], + testnet: !0, + slug: "taycan-testnet", + }, + pBt = { + name: "Rangers Protocol Mainnet", + chain: "Rangers", + icon: { + url: "ipfs://QmfHG3xbg4iiopagww93Gu7tmvCpPwZdiwsUjd3Dt5mRwT", + width: 835, + height: 835, + format: "png", + }, + rpc: [ + "https://rangers-protocol.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://mainnet.rangersprotocol.com/api/jsonrpc", + ], + faucets: [], + nativeCurrency: { + name: "Rangers Protocol Gas", + symbol: "RPG", + decimals: 18, + }, + infoURL: "https://rangersprotocol.com", + shortName: "rpg", + chainId: 2025, + networkId: 2025, + slip44: 1008, + explorers: [ + { + name: "rangersscan", + url: "https://scan.rangersprotocol.com", + standard: "none", + }, + ], + testnet: !1, + slug: "rangers-protocol", + }, + hBt = { + name: "OriginTrail Parachain", + chain: "OTP", + rpc: [ + "https://origintrail-parachain.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://astrosat.origintrail.network", + "wss://parachain-rpc.origin-trail.network", + ], + faucets: [], + nativeCurrency: { + name: "OriginTrail Parachain Token", + symbol: "OTP", + decimals: 12, + }, + infoURL: "https://parachain.origintrail.io", + shortName: "otp", + chainId: 2043, + networkId: 2043, + testnet: !1, + slug: "origintrail-parachain", + }, + fBt = { + name: "Stratos Testnet", + chain: "STOS", + rpc: [ + "https://stratos-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://web3-testnet-rpc.thestratos.org", + ], + faucets: [], + nativeCurrency: { name: "STOS", symbol: "STOS", decimals: 18 }, + infoURL: "https://www.thestratos.org", + shortName: "stos-testnet", + chainId: 2047, + networkId: 2047, + explorers: [ + { + name: "Stratos EVM Explorer (Blockscout)", + url: "https://web3-testnet-explorer.thestratos.org", + standard: "none", + }, + { + name: "Stratos Cosmos Explorer (BigDipper)", + url: "https://big-dipper-dev.thestratos.org", + standard: "none", + }, + ], + testnet: !0, + slug: "stratos-testnet", + }, + mBt = { + name: "Stratos Mainnet", + chain: "STOS", + rpc: [], + faucets: [], + nativeCurrency: { name: "STOS", symbol: "STOS", decimals: 18 }, + infoURL: "https://www.thestratos.org", + shortName: "stos-mainnet", + chainId: 2048, + networkId: 2048, + status: "incubating", + testnet: !1, + slug: "stratos", + }, + yBt = { + name: "Quokkacoin Mainnet", + chain: "Qkacoin", + rpc: [ + "https://quokkacoin.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.qkacoin.org", + ], + faucets: [], + nativeCurrency: { name: "Qkacoin", symbol: "QKA", decimals: 18 }, + infoURL: "https://qkacoin.org", + shortName: "QKA", + chainId: 2077, + networkId: 2077, + explorers: [ + { + name: "blockscout", + url: "https://explorer.qkacoin.org", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "quokkacoin", + }, + gBt = { + name: "Ecoball Mainnet", + chain: "ECO", + rpc: [ + "https://ecoball.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://api.ecoball.org/ecoball/", + ], + faucets: [], + nativeCurrency: { name: "Ecoball Coin", symbol: "ECO", decimals: 18 }, + infoURL: "https://ecoball.org", + shortName: "eco", + chainId: 2100, + networkId: 2100, + explorers: [ + { + name: "Ecoball Explorer", + url: "https://scan.ecoball.org", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "ecoball", + }, + bBt = { + name: "Ecoball Testnet Espuma", + chain: "ECO", + rpc: [ + "https://ecoball-testnet-espuma.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://api.ecoball.org/espuma/", + ], + faucets: [], + nativeCurrency: { name: "Espuma Coin", symbol: "ECO", decimals: 18 }, + infoURL: "https://ecoball.org", + shortName: "esp", + chainId: 2101, + networkId: 2101, + explorers: [ + { + name: "Ecoball Testnet Explorer", + url: "https://espuma-scan.ecoball.org", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "ecoball-testnet-espuma", + }, + vBt = { + name: "Exosama Network", + chain: "EXN", + rpc: [ + "https://exosama-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.exosama.com", + "wss://rpc.exosama.com", + ], + faucets: [], + nativeCurrency: { name: "Sama Token", symbol: "SAMA", decimals: 18 }, + infoURL: "https://moonsama.com", + shortName: "exn", + chainId: 2109, + networkId: 2109, + slip44: 2109, + icon: { + url: "ipfs://QmaQxfwpXYTomUd24PMx5tKjosupXcm99z1jL1XLq9LWBS", + width: 468, + height: 468, + format: "png", + }, + explorers: [ + { + name: "blockscout", + url: "https://explorer.exosama.com", + icon: "blockscout", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "exosama-network", + }, + wBt = { + name: "Metaplayerone Mainnet", + chain: "METAD", + icon: { + url: "ipfs://QmZyxS9BfRGYWWDtvrV6qtthCYV4TwdjLoH2sF6MkiTYFf", + width: 1280, + height: 1280, + format: "png", + }, + rpc: [ + "https://metaplayerone.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.metaplayer.one/", + ], + faucets: [], + nativeCurrency: { name: "METAD", symbol: "METAD", decimals: 18 }, + infoURL: "https://docs.metaplayer.one/", + shortName: "Metad", + chainId: 2122, + networkId: 2122, + explorers: [ + { + name: "Metad Scan", + url: "https://scan.metaplayer.one", + icon: "metad", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "metaplayerone", + }, + _Bt = { + name: "BOSagora Mainnet", + chain: "ETH", + rpc: [ + "https://bosagora.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://mainnet.bosagora.org", + "https://rpc.bosagora.org", + ], + faucets: [], + nativeCurrency: { name: "BOSAGORA", symbol: "BOA", decimals: 18 }, + infoURL: "https://docs.bosagora.org", + shortName: "boa", + chainId: 2151, + networkId: 2151, + icon: { + url: "ipfs://QmW3CT4SHmso5dRJdsjR8GL1qmt79HkdAebCn2uNaWXFYh", + width: 256, + height: 257, + format: "png", + }, + explorers: [ + { + name: "BOASCAN", + url: "https://boascan.io", + icon: "agora", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "bosagora", + }, + xBt = { + name: "Findora Mainnet", + chain: "Findora", + rpc: [ + "https://findora.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc-mainnet.findora.org", + ], + faucets: [], + nativeCurrency: { name: "FRA", symbol: "FRA", decimals: 18 }, + infoURL: "https://findora.org/", + shortName: "fra", + chainId: 2152, + networkId: 2152, + explorers: [ + { + name: "findorascan", + url: "https://evm.findorascan.io", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "findora", + }, + TBt = { + name: "Findora Testnet", + chain: "Testnet-anvil", + rpc: [ + "https://findora-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://prod-testnet.prod.findora.org:8545/", + ], + faucets: [], + nativeCurrency: { name: "FRA", symbol: "FRA", decimals: 18 }, + infoURL: "https://findora.org/", + shortName: "findora-testnet", + chainId: 2153, + networkId: 2153, + explorers: [ + { + name: "findorascan", + url: "https://testnet-anvil.evm.findorascan.io", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "findora-testnet", + }, + EBt = { + name: "Findora Forge", + chain: "Testnet-forge", + rpc: [ + "https://findora-forge.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://prod-forge.prod.findora.org:8545/", + ], + faucets: [], + nativeCurrency: { name: "FRA", symbol: "FRA", decimals: 18 }, + infoURL: "https://findora.org/", + shortName: "findora-forge", + chainId: 2154, + networkId: 2154, + explorers: [ + { + name: "findorascan", + url: "https://testnet-forge.evm.findorascan.io", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "findora-forge", + }, + CBt = { + name: "Bitcoin EVM", + chain: "Bitcoin EVM", + rpc: [ + "https://bitcoin-evm.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://connect.bitcoinevm.com", + ], + faucets: [], + nativeCurrency: { name: "Bitcoin", symbol: "eBTC", decimals: 18 }, + infoURL: "https://bitcoinevm.com", + shortName: "eBTC", + chainId: 2203, + networkId: 2203, + icon: { + url: "ipfs://bafkreic4aq265oaf6yze7ba5okefqh6vnqudyrz6ovukvbnrlhet36itle", + width: 200, + height: 200, + format: "png", + }, + explorers: [ + { + name: "Explorer", + url: "https://explorer.bitcoinevm.com", + icon: "ebtc", + standard: "none", + }, + ], + testnet: !1, + slug: "bitcoin-evm", + }, + IBt = { + name: "Evanesco Mainnet", + chain: "EVA", + rpc: [ + "https://evanesco.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://seed4.evanesco.org:8546", + ], + faucets: [], + nativeCurrency: { name: "EVA", symbol: "EVA", decimals: 18 }, + infoURL: "https://evanesco.org/", + shortName: "evanesco", + chainId: 2213, + networkId: 2213, + icon: { + url: "ipfs://QmZbmGYdfbMRrWJore3c7hyD6q7B5pXHJqTSNjbZZUK6V8", + width: 200, + height: 200, + format: "png", + }, + explorers: [ + { + name: "Evanesco Explorer", + url: "https://explorer.evanesco.org", + standard: "none", + }, + ], + testnet: !1, + slug: "evanesco", + }, + ABt = { + name: "Kava EVM Testnet", + chain: "KAVA", + rpc: [ + "https://kava-evm-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://evm.testnet.kava.io", + "wss://wevm.testnet.kava.io", + ], + faucets: ["https://faucet.kava.io"], + nativeCurrency: { name: "TKava", symbol: "TKAVA", decimals: 18 }, + infoURL: "https://www.kava.io", + shortName: "tkava", + chainId: 2221, + networkId: 2221, + icon: { + url: "ipfs://QmdpRTk6oL1HRW9xC6cAc4Rnf9gs6zgdAcr4Z3HcLztusm", + width: 1186, + height: 360, + format: "svg", + }, + explorers: [ + { + name: "Kava Testnet Explorer", + url: "https://explorer.testnet.kava.io", + standard: "EIP3091", + icon: "kava", + }, + ], + testnet: !0, + slug: "kava-evm-testnet", + }, + kBt = { + name: "Kava EVM", + chain: "KAVA", + rpc: [ + "https://kava-evm.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://evm.kava.io", + "https://evm2.kava.io", + "wss://wevm.kava.io", + "wss://wevm2.kava.io", + ], + faucets: [], + nativeCurrency: { name: "Kava", symbol: "KAVA", decimals: 18 }, + infoURL: "https://www.kava.io", + shortName: "kava", + chainId: 2222, + networkId: 2222, + icon: { + url: "ipfs://QmdpRTk6oL1HRW9xC6cAc4Rnf9gs6zgdAcr4Z3HcLztusm", + width: 1186, + height: 360, + format: "svg", + }, + explorers: [ + { + name: "Kava EVM Explorer", + url: "https://explorer.kava.io", + standard: "EIP3091", + icon: "kava", + }, + ], + testnet: !1, + slug: "kava-evm", + }, + SBt = { + name: "VChain Mainnet", + chain: "VChain", + rpc: [ + "https://vchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://bc.vcex.xyz", + ], + faucets: [], + nativeCurrency: { name: "VNDT", symbol: "VNDT", decimals: 18 }, + infoURL: "https://bo.vcex.xyz/", + shortName: "VChain", + chainId: 2223, + networkId: 2223, + explorers: [ + { + name: "VChain Scan", + url: "https://scan.vcex.xyz", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "vchain", + }, + MBt = { + name: "BOMB Chain", + chain: "BOMB", + rpc: [ + "https://bomb-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.bombchain.com", + ], + faucets: [], + nativeCurrency: { name: "BOMB Token", symbol: "BOMB", decimals: 18 }, + infoURL: "https://www.bombchain.com", + shortName: "bomb", + chainId: 2300, + networkId: 2300, + icon: { + url: "ipfs://Qmc44uSjfdNHdcxPTgZAL8eZ8TLe4UmSHibcvKQFyGJxTB", + width: 1024, + height: 1024, + format: "png", + }, + explorers: [ + { + name: "bombscan", + icon: "bomb", + url: "https://bombscan.com", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "bomb-chain", + }, + PBt = { + name: "Altcoinchain", + chain: "mainnet", + rpc: [ + "https://altcoinchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc0.altcoinchain.org/rpc", + ], + faucets: [], + nativeCurrency: { name: "Altcoin", symbol: "ALT", decimals: 18 }, + infoURL: "https://altcoinchain.org", + shortName: "alt", + chainId: 2330, + networkId: 2330, + icon: { + url: "ipfs://QmYwHmGC9CRVcKo1LSesqxU31SDj9vk2iQxcFjQArzhix4", + width: 720, + height: 720, + format: "png", + }, + status: "active", + explorers: [ + { + name: "expedition", + url: "http://expedition.altcoinchain.org", + icon: "altcoinchain", + standard: "none", + }, + ], + testnet: !1, + slug: "altcoinchain", + }, + RBt = { + name: "BOMB Chain Testnet", + chain: "BOMB", + rpc: [ + "https://bomb-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://bombchain-testnet.ankr.com/bas_full_rpc_1", + ], + faucets: ["https://faucet.bombchain-testnet.ankr.com/"], + nativeCurrency: { name: "BOMB Token", symbol: "tBOMB", decimals: 18 }, + infoURL: "https://www.bombmoney.com", + shortName: "bombt", + chainId: 2399, + networkId: 2399, + icon: { + url: "ipfs://Qmc44uSjfdNHdcxPTgZAL8eZ8TLe4UmSHibcvKQFyGJxTB", + width: 1024, + height: 1024, + format: "png", + }, + explorers: [ + { + name: "bombscan-testnet", + icon: "bomb", + url: "https://explorer.bombchain-testnet.ankr.com", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "bomb-chain-testnet", + }, + BBt = { + name: "TCG Verse Mainnet", + chain: "TCG Verse", + icon: { + url: "ipfs://bafkreidg4wpewve5mdxrofneqblydkrjl3oevtgpdf3fk3z3vjqam6ocoe", + width: 350, + height: 350, + format: "png", + }, + rpc: [ + "https://tcg-verse.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.tcgverse.xyz", + ], + faucets: [], + nativeCurrency: { name: "OAS", symbol: "OAS", decimals: 18 }, + infoURL: "https://tcgverse.xyz/", + shortName: "TCGV", + chainId: 2400, + networkId: 2400, + explorers: [ + { + name: "TCG Verse Explorer", + url: "https://explorer.tcgverse.xyz", + standard: "EIP3091", + }, + ], + parent: { type: "L2", chain: "eip155-248" }, + testnet: !1, + slug: "tcg-verse", + }, + NBt = { + name: "XODEX", + chain: "XODEX", + rpc: [ + "https://xodex.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://mainnet.xo-dex.com/rpc", + "https://xo-dex.io", + ], + faucets: [], + nativeCurrency: { + name: "XODEX Native Token", + symbol: "XODEX", + decimals: 18, + }, + infoURL: "https://xo-dex.com", + shortName: "xodex", + chainId: 2415, + networkId: 10, + icon: { + url: "ipfs://QmXt49jPfHUmDF4n8TF7ks6txiPztx6qUHanWmHnCoEAhW", + width: 256, + height: 256, + format: "png", + }, + explorers: [ + { + name: "XODEX Explorer", + url: "https://explorer.xo-dex.com", + standard: "EIP3091", + icon: "xodex", + }, + ], + testnet: !1, + slug: "xodex", + }, + OBt = { + name: "Kortho Mainnet", + chain: "Kortho Chain", + rpc: [ + "https://kortho.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://www.kortho-chain.com", + ], + faucets: [], + nativeCurrency: { name: "KorthoChain", symbol: "KTO", decimals: 11 }, + infoURL: "https://www.kortho.io/", + shortName: "ktoc", + chainId: 2559, + networkId: 2559, + testnet: !1, + slug: "kortho", + }, + LBt = { + name: "TechPay Mainnet", + chain: "TPC", + rpc: [ + "https://techpay.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://api.techpay.io/", + ], + faucets: [], + nativeCurrency: { name: "TechPay", symbol: "TPC", decimals: 18 }, + infoURL: "https://techpay.io/", + shortName: "tpc", + chainId: 2569, + networkId: 2569, + icon: { + url: "ipfs://QmQyTyJUnhD1dca35Vyj96pm3v3Xyw8xbG9m8HXHw3k2zR", + width: 578, + height: 701, + format: "svg", + }, + explorers: [ + { + name: "tpcscan", + url: "https://tpcscan.com", + icon: "techpay", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "techpay", + }, + DBt = { + name: "PoCRNet", + title: "Proof of Carbon Reduction mainnet", + chain: "CRC", + status: "active", + rpc: [ + "https://pocrnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://pocrnet.westeurope.cloudapp.azure.com/http", + "wss://pocrnet.westeurope.cloudapp.azure.com/ws", + ], + faucets: [], + nativeCurrency: { + name: "Carbon Reduction Coin", + symbol: "CRC", + decimals: 18, + }, + infoURL: "https://github.com/ethereum-pocr/pocrnet", + shortName: "pocrnet", + chainId: 2606, + networkId: 2606, + explorers: [ + { + name: "Lite Explorer", + url: "https://ethereum-pocr.github.io/explorer/pocrnet", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "pocrnet", + }, + qBt = { + name: "Redlight Chain Mainnet", + chain: "REDLC", + rpc: [ + "https://redlight-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://dataseed2.redlightscan.finance", + ], + faucets: [], + nativeCurrency: { + name: "Redlight Coin", + symbol: "REDLC", + decimals: 18, + }, + infoURL: "https://redlight.finance/", + shortName: "REDLC", + chainId: 2611, + networkId: 2611, + explorers: [ + { + name: "REDLC Explorer", + url: "https://redlightscan.finance", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "redlight-chain", + }, + FBt = { + name: "EZChain C-Chain Mainnet", + chain: "EZC", + rpc: [ + "https://ezchain-c-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://api.ezchain.com/ext/bc/C/rpc", + ], + faucets: [], + nativeCurrency: { name: "EZChain", symbol: "EZC", decimals: 18 }, + infoURL: "https://ezchain.com", + shortName: "EZChain", + chainId: 2612, + networkId: 2612, + icon: { + url: "ipfs://QmPKJbYCFjGmY9X2cA4b9YQjWYHQncmKnFtKyQh9rHkFTb", + width: 146, + height: 48, + format: "png", + }, + explorers: [ + { + name: "ezchain", + url: "https://cchain-explorer.ezchain.com", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "ezchain-c-chain", + }, + WBt = { + name: "EZChain C-Chain Testnet", + chain: "EZC", + rpc: [ + "https://ezchain-c-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://testnet-api.ezchain.com/ext/bc/C/rpc", + ], + faucets: ["https://testnet-faucet.ezchain.com"], + nativeCurrency: { name: "EZChain", symbol: "EZC", decimals: 18 }, + infoURL: "https://ezchain.com", + shortName: "Fuji-EZChain", + chainId: 2613, + networkId: 2613, + icon: { + url: "ipfs://QmPKJbYCFjGmY9X2cA4b9YQjWYHQncmKnFtKyQh9rHkFTb", + width: 146, + height: 48, + format: "png", + }, + explorers: [ + { + name: "ezchain", + url: "https://testnet-cchain-explorer.ezchain.com", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "ezchain-c-chain-testnet", + }, + UBt = { + name: "Boba Network Goerli Testnet", + chain: "ETH", + rpc: [ + "https://boba-network-goerli-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://goerli.boba.network/", + ], + faucets: [], + nativeCurrency: { name: "Goerli Ether", symbol: "ETH", decimals: 18 }, + infoURL: "https://boba.network", + shortName: "Bobagoerli", + chainId: 2888, + networkId: 2888, + explorers: [ + { + name: "Blockscout", + url: "https://testnet.bobascan.com", + standard: "none", + }, + ], + parent: { + type: "L2", + chain: "eip155-5", + bridges: [{ url: "https://gateway.goerli.boba.network" }], + }, + testnet: !0, + slug: "boba-network-goerli-testnet", + }, + HBt = { + name: "BitYuan Mainnet", + chain: "BTY", + rpc: [ + "https://bityuan.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://mainnet.bityuan.com/eth", + ], + faucets: [], + nativeCurrency: { name: "BTY", symbol: "BTY", decimals: 18 }, + infoURL: "https://www.bityuan.com", + shortName: "bty", + chainId: 2999, + networkId: 2999, + icon: { + url: "ipfs://QmUmJVof2m5e4HUXb3GmijWUFsLUNhrQiwwQG3CqcXEtHt", + width: 91, + height: 24, + format: "png", + }, + explorers: [ + { + name: "BitYuan Block Chain Explorer", + url: "https://mainnet.bityuan.com", + standard: "none", + }, + ], + testnet: !1, + slug: "bityuan", + }, + zBt = { + name: "CENNZnet Rata", + chain: "CENNZnet", + rpc: [], + faucets: ["https://app-faucet.centrality.me"], + nativeCurrency: { name: "CPAY", symbol: "CPAY", decimals: 18 }, + infoURL: "https://cennz.net", + shortName: "cennz-r", + chainId: 3e3, + networkId: 3e3, + icon: { + url: "ipfs://QmWhNm7tTi6SYbiumULDRk956hxgqaZSX77vcxBNn8fvnw", + width: 112, + height: 112, + format: "svg", + }, + testnet: !1, + slug: "cennznet-rata", + }, + jBt = { + name: "CENNZnet Nikau", + chain: "CENNZnet", + rpc: [ + "https://cennznet-nikau.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://nikau.centrality.me/public", + ], + faucets: ["https://app-faucet.centrality.me"], + nativeCurrency: { name: "CPAY", symbol: "CPAY", decimals: 18 }, + infoURL: "https://cennz.net", + shortName: "cennz-n", + chainId: 3001, + networkId: 3001, + icon: { + url: "ipfs://QmWhNm7tTi6SYbiumULDRk956hxgqaZSX77vcxBNn8fvnw", + width: 112, + height: 112, + format: "svg", + }, + explorers: [ + { + name: "UNcover", + url: "https://www.uncoverexplorer.com/?network=Nikau", + standard: "none", + }, + ], + testnet: !1, + slug: "cennznet-nikau", + }, + KBt = { + name: "Orlando Chain", + chain: "ORL", + rpc: [ + "https://orlando-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc-testnet.orlchain.com", + ], + faucets: [], + nativeCurrency: { name: "Orlando", symbol: "ORL", decimals: 18 }, + infoURL: "https://orlchain.com", + shortName: "ORL", + chainId: 3031, + networkId: 3031, + icon: { + url: "ipfs://QmNsuuBBTHErnuFDcdyzaY8CKoVJtobsLJx2WQjaPjcp7g", + width: 512, + height: 528, + format: "png", + }, + explorers: [ + { + name: "Orlando (ORL) Explorer", + url: "https://orlscan.com", + icon: "orl", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "orlando-chain", + }, + VBt = { + name: "Bifrost Mainnet", + title: "The Bifrost Mainnet network", + chain: "BFC", + rpc: [ + "https://bifrost.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://public-01.mainnet.thebifrost.io/rpc", + "https://public-02.mainnet.thebifrost.io/rpc", + ], + faucets: [], + nativeCurrency: { name: "Bifrost", symbol: "BFC", decimals: 18 }, + infoURL: "https://thebifrost.io", + shortName: "bfc", + chainId: 3068, + networkId: 3068, + icon: { + url: "ipfs://QmcHvn2Wq91ULyEH5s3uHjosX285hUgyJHwggFJUd3L5uh", + width: 128, + height: 128, + format: "png", + }, + explorers: [ + { + name: "explorer-thebifrost", + url: "https://explorer.mainnet.thebifrost.io", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "bifrost", + }, + GBt = { + name: "Filecoin - Hyperspace testnet", + chain: "FIL", + icon: { + url: "ipfs://QmS9r9XQkMHVomWcSBNDkKkz9n87h9bH9ssabeiKZtANoU", + width: 1e3, + height: 1e3, + format: "png", + }, + rpc: [ + "https://filecoin-hyperspace-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://api.hyperspace.node.glif.io/rpc/v1", + "https://filecoin-hyperspace.chainstacklabs.com/rpc/v1", + ], + faucets: ["https://hyperspace.yoga/#faucet"], + nativeCurrency: { + name: "testnet filecoin", + symbol: "tFIL", + decimals: 18, + }, + infoURL: "https://filecoin.io", + shortName: "filecoin-hyperspace", + chainId: 3141, + networkId: 3141, + slip44: 1, + explorers: [ + { + name: "Filfox - Hyperspace", + url: "https://hyperspace.filfox.info/en", + standard: "none", + }, + { + name: "Glif Explorer - Hyperspace", + url: "https://explorer.glif.io/?network=hyperspace", + standard: "none", + }, + { name: "Beryx", url: "https://beryx.zondax.ch", standard: "none" }, + { + name: "Filmine", + url: "https://explorer.filmine.io", + standard: "none", + }, + { + name: "Filscan - Hyperspace", + url: "https://hyperspace.filscan.io", + standard: "none", + }, + ], + testnet: !0, + slug: "filecoin-hyperspace-testnet", + }, + YBt = { + name: "Debounce Subnet Testnet", + chain: "Debounce Network", + icon: { + url: "ipfs://bafybeib5q4hez37s7b2fx4hqt2q4ji2tuudxjhfdgnp6q3d5mqm6wsxdfq", + width: 256, + height: 256, + format: "png", + }, + rpc: [ + "https://debounce-subnet-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://dev-rpc.debounce.network", + ], + faucets: [], + nativeCurrency: { + name: "Debounce Network", + symbol: "DB", + decimals: 18, + }, + infoURL: "https://debounce.network", + shortName: "debounce-devnet", + chainId: 3306, + networkId: 3306, + explorers: [ + { + name: "Debounce Devnet Explorer", + url: "https://explorer.debounce.network", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "debounce-subnet-testnet", + }, + $Bt = { + name: "ZCore Testnet", + chain: "Beach", + icon: { + url: "ipfs://QmQnXu13ym8W1VA3QxocaNVXGAuEPmamSCkS7bBscVk1f4", + width: 1050, + height: 1050, + format: "png", + }, + rpc: [ + "https://zcore-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc-testnet.zcore.cash", + ], + faucets: ["https://faucet.zcore.cash"], + nativeCurrency: { name: "ZCore", symbol: "ZCR", decimals: 18 }, + infoURL: "https://zcore.cash", + shortName: "zcrbeach", + chainId: 3331, + networkId: 3331, + testnet: !0, + slug: "zcore-testnet", + }, + JBt = { + name: "Web3Q Testnet", + chain: "Web3Q", + rpc: [ + "https://web3q-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://testnet.web3q.io:8545", + ], + faucets: [], + nativeCurrency: { name: "Web3Q", symbol: "W3Q", decimals: 18 }, + infoURL: "https://testnet.web3q.io/home.w3q/", + shortName: "w3q-t", + chainId: 3333, + networkId: 3333, + explorers: [ + { + name: "w3q-testnet", + url: "https://explorer.testnet.web3q.io", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "web3q-testnet", + }, + ZBt = { + name: "Web3Q Galileo", + chain: "Web3Q", + rpc: [ + "https://web3q-galileo.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://galileo.web3q.io:8545", + ], + faucets: [], + nativeCurrency: { name: "Web3Q", symbol: "W3Q", decimals: 18 }, + infoURL: "https://galileo.web3q.io/home.w3q/", + shortName: "w3q-g", + chainId: 3334, + networkId: 3334, + explorers: [ + { + name: "w3q-galileo", + url: "https://explorer.galileo.web3q.io", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "web3q-galileo", + }, + QBt = { + name: "Paribu Net Mainnet", + chain: "PRB", + rpc: [ + "https://paribu-net.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.paribu.network", + ], + faucets: [], + nativeCurrency: { name: "PRB", symbol: "PRB", decimals: 18 }, + infoURL: "https://net.paribu.com", + shortName: "prb", + chainId: 3400, + networkId: 3400, + icon: { + url: "ipfs://QmVgc77jYo2zrxQjhYwT4KzvSrSZ1DBJraJVX57xAvP8MD", + width: 2362, + height: 2362, + format: "png", + }, + explorers: [ + { + name: "Paribu Net Explorer", + url: "https://explorer.paribu.network", + icon: "explorer", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "paribu-net", + }, + XBt = { + name: "Paribu Net Testnet", + chain: "PRB", + rpc: [ + "https://paribu-net-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.testnet.paribuscan.com", + ], + faucets: ["https://faucet.paribuscan.com"], + nativeCurrency: { name: "PRB", symbol: "PRB", decimals: 18 }, + infoURL: "https://net.paribu.com", + shortName: "prbtestnet", + chainId: 3500, + networkId: 3500, + icon: { + url: "ipfs://QmVgc77jYo2zrxQjhYwT4KzvSrSZ1DBJraJVX57xAvP8MD", + width: 2362, + height: 2362, + format: "png", + }, + explorers: [ + { + name: "Paribu Net Testnet Explorer", + url: "https://testnet.paribuscan.com", + icon: "explorer", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "paribu-net-testnet", + }, + eNt = { + name: "JFIN Chain", + chain: "JFIN", + rpc: [ + "https://jfin-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.jfinchain.com", + ], + faucets: [], + nativeCurrency: { name: "JFIN Coin", symbol: "jfin", decimals: 18 }, + infoURL: "https://jfinchain.com", + shortName: "jfin", + chainId: 3501, + networkId: 3501, + explorers: [ + { + name: "JFIN Chain Explorer", + url: "https://exp.jfinchain.com", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "jfin-chain", + }, + tNt = { + name: "PandoProject Mainnet", + chain: "PandoProject", + icon: { + url: "ipfs://QmNduBtT5BNGDw7DjRwDvaZBb6gjxf46WD7BYhn4gauGc9", + width: 1e3, + height: 1628, + format: "png", + }, + rpc: [ + "https://pandoproject.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://eth-rpc-api.pandoproject.org/rpc", + ], + faucets: [], + nativeCurrency: { name: "pando-token", symbol: "PTX", decimals: 18 }, + infoURL: "https://www.pandoproject.org/", + shortName: "pando-mainnet", + chainId: 3601, + networkId: 3601, + explorers: [ + { + name: "Pando Mainnet Explorer", + url: "https://explorer.pandoproject.org", + standard: "none", + }, + ], + testnet: !1, + slug: "pandoproject", + }, + rNt = { + name: "PandoProject Testnet", + chain: "PandoProject", + icon: { + url: "ipfs://QmNduBtT5BNGDw7DjRwDvaZBb6gjxf46WD7BYhn4gauGc9", + width: 1e3, + height: 1628, + format: "png", + }, + rpc: [ + "https://pandoproject-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://testnet.ethrpc.pandoproject.org/rpc", + ], + faucets: [], + nativeCurrency: { name: "pando-token", symbol: "PTX", decimals: 18 }, + infoURL: "https://www.pandoproject.org/", + shortName: "pando-testnet", + chainId: 3602, + networkId: 3602, + explorers: [ + { + name: "Pando Testnet Explorer", + url: "https://testnet.explorer.pandoproject.org", + standard: "none", + }, + ], + testnet: !0, + slug: "pandoproject-testnet", + }, + nNt = { + name: "Metacodechain", + chain: "metacode", + rpc: [ + "https://metacodechain.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://j.blockcoach.com:8503", + ], + faucets: [], + nativeCurrency: { name: "J", symbol: "J", decimals: 18 }, + infoURL: "https://j.blockcoach.com:8089", + shortName: "metacode", + chainId: 3666, + networkId: 3666, + explorers: [ + { + name: "meta", + url: "https://j.blockcoach.com:8089", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "metacodechain", + }, + aNt = { + name: "Bittex Mainnet", + chain: "BTX", + rpc: [ + "https://bittex.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc1.bittexscan.info", + "https://rpc2.bittexscan.info", + ], + faucets: [], + nativeCurrency: { name: "Bittex", symbol: "BTX", decimals: 18 }, + infoURL: "https://bittexscan.com", + shortName: "btx", + chainId: 3690, + networkId: 3690, + icon: { + url: "ipfs://QmdwQDr6vmBtXmK2TmknkEuZNoaDqTasFdZdu3DRw8b2wt", + width: 1e3, + height: 1628, + format: "png", + }, + explorers: [ + { + name: "bittexscan", + url: "https://bittexscan.com", + icon: "etherscan", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "bittex", + }, + iNt = { + name: "Empire Network", + chain: "EMPIRE", + rpc: [ + "https://empire-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.empirenetwork.io", + ], + faucets: [], + nativeCurrency: { name: "Empire", symbol: "EMPIRE", decimals: 18 }, + infoURL: "https://www.empirenetwork.io/", + shortName: "empire", + chainId: 3693, + networkId: 3693, + explorers: [ + { + name: "Empire Explorer", + url: "https://explorer.empirenetwork.io", + standard: "none", + }, + ], + testnet: !1, + slug: "empire-network", + }, + sNt = { + name: "Crossbell", + chain: "Crossbell", + rpc: [ + "https://crossbell.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.crossbell.io", + ], + faucets: ["https://faucet.crossbell.io"], + nativeCurrency: { + name: "Crossbell Token", + symbol: "CSB", + decimals: 18, + }, + infoURL: "https://crossbell.io", + shortName: "csb", + chainId: 3737, + networkId: 3737, + icon: { + url: "ipfs://QmS8zEetTb6pwdNpVjv5bz55BXiSMGP9BjTJmNcjcUT91t", + format: "svg", + width: 408, + height: 408, + }, + explorers: [ + { + name: "Crossbell Explorer", + url: "https://scan.crossbell.io", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "crossbell", + }, + oNt = { + name: "DRAC Network", + chain: "DRAC", + rpc: [ + "https://drac-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://www.dracscan.com/rpc", + ], + faucets: ["https://www.dracscan.io/faucet"], + nativeCurrency: { name: "DRAC", symbol: "DRAC", decimals: 18 }, + infoURL: "https://drac.io/", + shortName: "drac", + features: [{ name: "EIP155" }, { name: "EIP1559" }], + chainId: 3912, + networkId: 3912, + icon: { + url: "ipfs://QmXbsQe7QsVFZJZdBmbZVvS6LgX9ZFoaTMBs9MiQXUzJTw", + width: 256, + height: 256, + format: "png", + }, + explorers: [ + { + name: "DRAC_Network Scan", + url: "https://www.dracscan.io", + icon: "DRAC", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "drac-network", + }, + cNt = { + name: "DYNO Mainnet", + chain: "DYNO", + rpc: [ + "https://dyno.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://api.dynoprotocol.com", + ], + faucets: ["https://faucet.dynoscan.io"], + nativeCurrency: { name: "DYNO Token", symbol: "DYNO", decimals: 18 }, + infoURL: "https://dynoprotocol.com", + shortName: "dyno", + chainId: 3966, + networkId: 3966, + explorers: [ + { + name: "DYNO Explorer", + url: "https://dynoscan.io", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "dyno", + }, + uNt = { + name: "DYNO Testnet", + chain: "DYNO", + rpc: [ + "https://dyno-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://tapi.dynoprotocol.com", + ], + faucets: ["https://faucet.dynoscan.io"], + nativeCurrency: { name: "DYNO Token", symbol: "tDYNO", decimals: 18 }, + infoURL: "https://dynoprotocol.com", + shortName: "tdyno", + chainId: 3967, + networkId: 3967, + explorers: [ + { + name: "DYNO Explorer", + url: "https://testnet.dynoscan.io", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "dyno-testnet", + }, + lNt = { + name: "YuanChain Mainnet", + chain: "YCC", + rpc: [ + "https://yuanchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://mainnet.yuan.org/eth", + ], + faucets: [], + nativeCurrency: { name: "YCC", symbol: "YCC", decimals: 18 }, + infoURL: "https://www.yuan.org", + shortName: "ycc", + chainId: 3999, + networkId: 3999, + icon: { + url: "ipfs://QmdbPhiB5W2gbHZGkYsN7i2VTKKP9casmAN2hRnpDaL9W4", + width: 96, + height: 96, + format: "png", + }, + explorers: [ + { + name: "YuanChain Explorer", + url: "https://mainnet.yuan.org", + standard: "none", + }, + ], + testnet: !1, + slug: "yuanchain", + }, + dNt = { + name: "Fantom Testnet", + chain: "FTM", + rpc: [ + "https://fantom-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.testnet.fantom.network", + ], + faucets: ["https://faucet.fantom.network"], + nativeCurrency: { name: "Fantom", symbol: "FTM", decimals: 18 }, + infoURL: + "https://docs.fantom.foundation/quick-start/short-guide#fantom-testnet", + shortName: "tftm", + chainId: 4002, + networkId: 4002, + icon: { + url: "ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/fantom/512.png", + height: 512, + width: 512, + format: "png", + sizes: [512, 256, 128, 64, 32, 16], + }, + explorers: [ + { + name: "ftmscan", + url: "https://testnet.ftmscan.com", + icon: "ftmscan", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "fantom-testnet", + }, + pNt = { + name: "Bobaopera Testnet", + chain: "Bobaopera Testnet", + rpc: [ + "https://bobaopera-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://testnet.bobaopera.boba.network", + "wss://wss.testnet.bobaopera.boba.network", + "https://replica.testnet.bobaopera.boba.network", + "wss://replica-wss.testnet.bobaopera.boba.network", + ], + faucets: [], + nativeCurrency: { name: "Boba Token", symbol: "BOBA", decimals: 18 }, + infoURL: "https://boba.network", + shortName: "BobaoperaTestnet", + chainId: 4051, + networkId: 4051, + explorers: [ + { + name: "Bobaopera Testnet block explorer", + url: "https://blockexplorer.testnet.bobaopera.boba.network", + standard: "none", + }, + ], + testnet: !0, + slug: "bobaopera-testnet", + }, + hNt = { + name: "Bitindi Testnet", + chain: "BNI", + icon: { + url: "ipfs://QmRAFFPiLiSgjGTs9QaZdnR9fsDgyUdTejwSxcnPXo292s", + width: 60, + height: 72, + format: "png", + }, + rpc: [ + "https://bitindi-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://testnet-rpc.bitindi.org", + ], + faucets: ["https://faucet.bitindi.org"], + nativeCurrency: { name: "BNI", symbol: "$BNI", decimals: 18 }, + infoURL: "https://bitindi.org", + shortName: "BNIt", + chainId: 4096, + networkId: 4096, + explorers: [ + { + name: "Bitindi", + url: "https://testnet.bitindiscan.com", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "bitindi-testnet", + }, + fNt = { + name: "Bitindi Mainnet", + chain: "BNI", + icon: { + url: "ipfs://QmRAFFPiLiSgjGTs9QaZdnR9fsDgyUdTejwSxcnPXo292s", + width: 60, + height: 72, + format: "png", + }, + rpc: [ + "https://bitindi.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://mainnet-rpc.bitindi.org", + ], + faucets: ["https://faucet.bitindi.org"], + nativeCurrency: { name: "BNI", symbol: "$BNI", decimals: 18 }, + infoURL: "https://bitindi.org", + shortName: "BNIm", + chainId: 4099, + networkId: 4099, + explorers: [ + { + name: "Bitindi", + url: "https://bitindiscan.com", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "bitindi", + }, + mNt = { + name: "AIOZ Network Testnet", + chain: "AIOZ", + icon: { + url: "ipfs://QmRAGPFhvQiXgoJkui7WHajpKctGFrJNhHqzYdwcWt5V3Z", + width: 1024, + height: 1024, + format: "png", + }, + rpc: [ + "https://aioz-network-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://eth-ds.testnet.aioz.network", + ], + faucets: [], + nativeCurrency: { name: "testAIOZ", symbol: "AIOZ", decimals: 18 }, + infoURL: "https://aioz.network", + shortName: "aioz-testnet", + chainId: 4102, + networkId: 4102, + slip44: 60, + explorers: [ + { + name: "AIOZ Network Testnet Explorer", + url: "https://testnet.explorer.aioz.network", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "aioz-network-testnet", + }, + yNt = { + name: "PHI Network V1", + chain: "PHI V1", + rpc: [ + "https://phi-network-v1.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc1.phi.network", + "https://rpc2.phi.network", + ], + faucets: [], + nativeCurrency: { name: "PHI", symbol: "\u03A6", decimals: 18 }, + infoURL: "https://phi.network", + shortName: "PHIv1", + chainId: 4181, + networkId: 4181, + icon: { + url: "ipfs://bafkreid6pm3mic7izp3a6zlfwhhe7etd276bjfsq2xash6a4s2vmcdf65a", + width: 512, + height: 512, + format: "png", + }, + explorers: [ + { + name: "PHI Explorer", + url: "https://explorer.phi.network", + icon: "phi", + standard: "none", + }, + ], + testnet: !1, + slug: "phi-network-v1", + }, + gNt = { + name: "Bobafuji Testnet", + chain: "Bobafuji Testnet", + rpc: [ + "https://bobafuji-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://testnet.avax.boba.network", + "wss://wss.testnet.avax.boba.network", + "https://replica.testnet.avax.boba.network", + "wss://replica-wss.testnet.avax.boba.network", + ], + faucets: [], + nativeCurrency: { name: "Boba Token", symbol: "BOBA", decimals: 18 }, + infoURL: "https://boba.network", + shortName: "BobaFujiTestnet", + chainId: 4328, + networkId: 4328, + explorers: [ + { + name: "Bobafuji Testnet block explorer", + url: "https://blockexplorer.testnet.avax.boba.network", + standard: "none", + }, + ], + testnet: !0, + slug: "bobafuji-testnet", + }, + bNt = { + name: "Htmlcoin Mainnet", + chain: "mainnet", + rpc: [ + "https://htmlcoin.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://janus.htmlcoin.com/api/", + ], + faucets: ["https://gruvin.me/htmlcoin"], + nativeCurrency: { name: "Htmlcoin", symbol: "HTML", decimals: 8 }, + infoURL: "https://htmlcoin.com", + shortName: "html", + chainId: 4444, + networkId: 4444, + icon: { + url: "ipfs://QmR1oDRSadPerfyWMhKHNP268vPKvpczt5zPawgFSZisz2", + width: 1e3, + height: 1e3, + format: "png", + }, + status: "active", + explorers: [ + { + name: "htmlcoin", + url: "https://explorer.htmlcoin.com", + icon: "htmlcoin", + standard: "none", + }, + ], + testnet: !1, + slug: "htmlcoin", + }, + vNt = { + name: "IoTeX Network Mainnet", + chain: "iotex.io", + rpc: [ + "https://iotex-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://babel-api.mainnet.iotex.io", + ], + faucets: [], + nativeCurrency: { name: "IoTeX", symbol: "IOTX", decimals: 18 }, + infoURL: "https://iotex.io", + shortName: "iotex-mainnet", + chainId: 4689, + networkId: 4689, + explorers: [ + { + name: "iotexscan", + url: "https://iotexscan.io", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "iotex-network", + }, + wNt = { + name: "IoTeX Network Testnet", + chain: "iotex.io", + rpc: [ + "https://iotex-network-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://babel-api.testnet.iotex.io", + ], + faucets: ["https://faucet.iotex.io/"], + nativeCurrency: { name: "IoTeX", symbol: "IOTX", decimals: 18 }, + infoURL: "https://iotex.io", + shortName: "iotex-testnet", + chainId: 4690, + networkId: 4690, + explorers: [ + { + name: "testnet iotexscan", + url: "https://testnet.iotexscan.io", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "iotex-network-testnet", + }, + _Nt = { + name: "BlackFort Exchange Network Testnet", + chain: "TBXN", + rpc: [ + "https://blackfort-exchange-network-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://testnet.blackfort.network/rpc", + ], + faucets: [], + nativeCurrency: { + name: "BlackFort Testnet Token", + symbol: "TBXN", + decimals: 18, + }, + features: [{ name: "EIP155" }, { name: "EIP1559" }], + infoURL: "https://blackfort.exchange", + shortName: "TBXN", + chainId: 4777, + networkId: 4777, + icon: { + url: "ipfs://QmPasA8xykRtJDivB2bcKDiRCUNWDPtfUTTKVAcaF2wVxC", + width: 1968, + height: 1968, + format: "png", + }, + explorers: [ + { + name: "blockscout", + url: "https://testnet-explorer.blackfort.network", + icon: "blockscout", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "blackfort-exchange-network-testnet", + }, + xNt = { + name: "Venidium Testnet", + chain: "XVM", + rpc: [ + "https://venidium-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc-evm-testnet.venidium.io", + ], + faucets: [], + nativeCurrency: { name: "Venidium", symbol: "XVM", decimals: 18 }, + infoURL: "https://venidium.io", + shortName: "txvm", + chainId: 4918, + networkId: 4918, + explorers: [ + { + name: "Venidium EVM Testnet Explorer", + url: "https://evm-testnet.venidiumexplorer.com", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "venidium-testnet", + }, + TNt = { + name: "Venidium Mainnet", + chain: "XVM", + icon: { + url: "ipfs://bafkreiaplwlym5g27jm4mjhotfqq6al2cxp3fnkmzdusqjg7wnipq5wn2e", + width: 1e3, + height: 1e3, + format: "png", + }, + rpc: [ + "https://venidium.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.venidium.io", + ], + faucets: [], + nativeCurrency: { name: "Venidium", symbol: "XVM", decimals: 18 }, + infoURL: "https://venidium.io", + shortName: "xvm", + chainId: 4919, + networkId: 4919, + explorers: [ + { + name: "Venidium Explorer", + url: "https://evm.venidiumexplorer.com", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "venidium", + }, + ENt = { + name: "BlackFort Exchange Network", + chain: "BXN", + rpc: [ + "https://blackfort-exchange-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://mainnet.blackfort.network/rpc", + "https://mainnet-1.blackfort.network/rpc", + "https://mainnet-2.blackfort.network/rpc", + "https://mainnet-3.blackfort.network/rpc", + ], + faucets: [], + nativeCurrency: { + name: "BlackFort Token", + symbol: "BXN", + decimals: 18, + }, + features: [{ name: "EIP155" }, { name: "EIP1559" }], + infoURL: "https://blackfort.exchange", + shortName: "BXN", + chainId: 4999, + networkId: 4999, + icon: { + url: "ipfs://QmPasA8xykRtJDivB2bcKDiRCUNWDPtfUTTKVAcaF2wVxC", + width: 1968, + height: 1968, + format: "png", + }, + explorers: [ + { + name: "blockscout", + url: "https://explorer.blackfort.network", + icon: "blockscout", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "blackfort-exchange-network", + }, + CNt = { + name: "Mantle", + chain: "ETH", + rpc: [ + "https://mantle.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.mantle.xyz", + ], + faucets: [], + nativeCurrency: { name: "BitDAO", symbol: "BIT", decimals: 18 }, + infoURL: "https://mantle.xyz", + shortName: "mantle", + chainId: 5e3, + networkId: 5e3, + explorers: [ + { + name: "Mantle Explorer", + url: "https://explorer.mantle.xyz", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "mantle", + }, + INt = { + name: "Mantle Testnet", + chain: "ETH", + rpc: [ + "https://mantle-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.testnet.mantle.xyz", + ], + faucets: ["https://faucet.testnet.mantle.xyz"], + nativeCurrency: { name: "Testnet BitDAO", symbol: "BIT", decimals: 18 }, + infoURL: "https://mantle.xyz", + shortName: "mantle-testnet", + chainId: 5001, + networkId: 5001, + explorers: [ + { + name: "Mantle Testnet Explorer", + url: "https://explorer.testnet.mantle.xyz", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "mantle-testnet", + }, + ANt = { + name: "TLChain Network Mainnet", + chain: "TLC", + icon: { + url: "ipfs://QmaR5TsgnWSjLys6wGaciKUbc5qYL3Es4jtgQcosVqDWR3", + width: 2048, + height: 2048, + format: "png", + }, + rpc: [ + "https://tlchain-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://mainnet-rpc.tlxscan.com/", + ], + faucets: [], + nativeCurrency: { + name: "TLChain Network", + symbol: "TLC", + decimals: 18, + }, + infoURL: "https://tlchain.network/", + shortName: "tlc", + chainId: 5177, + networkId: 5177, + explorers: [ + { + name: "TLChain Explorer", + url: "https://explorer.tlchain.network", + standard: "none", + }, + ], + testnet: !1, + slug: "tlchain-network", + }, + kNt = { + name: "EraSwap Mainnet", + chain: "ESN", + icon: { + url: "ipfs://QmV1wZ1RVXeD7216aiVBpLkbBBHWNuoTvcSzpVQsqi2uaH", + width: 200, + height: 200, + format: "png", + }, + rpc: [ + "https://eraswap.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://mainnet.eraswap.network", + "https://rpc-mumbai.mainnet.eraswap.network", + ], + faucets: [], + nativeCurrency: { name: "EraSwap", symbol: "ES", decimals: 18 }, + infoURL: "https://eraswap.info/", + shortName: "es", + chainId: 5197, + networkId: 5197, + testnet: !1, + slug: "eraswap", + }, + SNt = { + name: "Humanode Mainnet", + chain: "HMND", + rpc: [ + "https://humanode.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://explorer-rpc-http.mainnet.stages.humanode.io", + ], + faucets: [], + nativeCurrency: { name: "HMND", symbol: "HMND", decimals: 18 }, + infoURL: "https://humanode.io", + shortName: "hmnd", + chainId: 5234, + networkId: 5234, + explorers: [], + testnet: !1, + slug: "humanode", + }, + MNt = { + name: "Uzmi Network Mainnet", + chain: "UZMI", + rpc: [ + "https://uzmi-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://network.uzmigames.com.br/", + ], + faucets: [], + nativeCurrency: { name: "UZMI", symbol: "UZMI", decimals: 18 }, + infoURL: "https://uzmigames.com.br/", + shortName: "UZMI", + chainId: 5315, + networkId: 5315, + testnet: !1, + slug: "uzmi-network", + }, + PNt = { + name: "Nahmii Mainnet", + chain: "Nahmii", + rpc: [ + "https://nahmii.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://l2.nahmii.io", + ], + faucets: [], + nativeCurrency: { name: "Ether", symbol: "ETH", decimals: 18 }, + infoURL: "https://nahmii.io", + shortName: "Nahmii", + chainId: 5551, + networkId: 5551, + icon: { + url: "ipfs://QmZhKXgoGpzvthr2eh8ZNgT75YvMtEBegdELAaMPPzf5QT", + width: 384, + height: 384, + format: "png", + }, + explorers: [ + { + name: "Nahmii mainnet explorer", + url: "https://explorer.nahmii.io", + icon: "nahmii", + standard: "EIP3091", + }, + ], + parent: { + type: "L2", + chain: "eip155-1", + bridges: [{ url: "https://bridge.nahmii.io" }], + }, + testnet: !1, + slug: "nahmii", + }, + RNt = { + name: "Nahmii Testnet", + chain: "Nahmii", + rpc: [ + "https://nahmii-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://l2.testnet.nahmii.io", + ], + faucets: [], + nativeCurrency: { name: "Ether", symbol: "ETH", decimals: 18 }, + infoURL: "https://nahmii.io", + shortName: "NahmiiTestnet", + chainId: 5553, + networkId: 5553, + icon: { + url: "ipfs://QmZhKXgoGpzvthr2eh8ZNgT75YvMtEBegdELAaMPPzf5QT", + width: 384, + height: 384, + format: "png", + }, + explorers: [ + { + name: "blockscout", + url: "https://explorer.testnet.nahmii.io", + icon: "nahmii", + standard: "EIP3091", + }, + ], + parent: { + type: "L2", + chain: "eip155-3", + bridges: [{ url: "https://bridge.nahmii.io" }], + }, + testnet: !0, + slug: "nahmii-testnet", + }, + BNt = { + name: "Chain Verse Mainnet", + chain: "CVERSE", + icon: { + url: "ipfs://QmQyJt28h4wN3QHPXUQJQYQqGiFUD77han3zibZPzHbitk", + width: 1e3, + height: 1436, + format: "png", + }, + rpc: [ + "https://chain-verse.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.chainverse.info", + ], + faucets: [], + nativeCurrency: { name: "Oasys", symbol: "OAS", decimals: 18 }, + infoURL: "https://chainverse.info", + shortName: "cverse", + chainId: 5555, + networkId: 5555, + explorers: [ + { + name: "Chain Verse Explorer", + url: "https://explorer.chainverse.info", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "chain-verse", + }, + NNt = { + name: "Syscoin Tanenbaum Testnet", + chain: "SYS", + rpc: [ + "https://syscoin-tanenbaum-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.tanenbaum.io", + "wss://rpc.tanenbaum.io/wss", + ], + faucets: ["https://faucet.tanenbaum.io"], + nativeCurrency: { + name: "Testnet Syscoin", + symbol: "tSYS", + decimals: 18, + }, + infoURL: "https://syscoin.org", + shortName: "tsys", + chainId: 5700, + networkId: 5700, + explorers: [ + { + name: "Syscoin Testnet Block Explorer", + url: "https://tanenbaum.io", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "syscoin-tanenbaum-testnet", + }, + ONt = { + name: "Ganache", + title: "Ganache GUI Ethereum Testnet", + chain: "ETH", + icon: { + url: "ipfs://Qmc9N7V8CiLB4r7FEcG7GojqfiGGsRCZqcFWCahwMohbDW", + width: 267, + height: 300, + format: "png", + }, + rpc: [ + "https://ganache.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://127.0.0.1:7545", + ], + faucets: [], + nativeCurrency: { + name: "Ganache Test Ether", + symbol: "ETH", + decimals: 18, + }, + infoURL: "https://trufflesuite.com/ganache/", + shortName: "ggui", + chainId: 5777, + networkId: 5777, + explorers: [], + testnet: !0, + slug: "ganache", + }, + LNt = { + name: "Ontology Testnet", + chain: "Ontology", + icon: { + url: "ipfs://bafkreigmvn6spvbiirtutowpq6jmetevbxoof5plzixjoerbeswy4htfb4", + width: 400, + height: 400, + format: "png", + }, + rpc: [ + "https://ontology-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "http://polaris1.ont.io:20339", + "http://polaris2.ont.io:20339", + "http://polaris3.ont.io:20339", + "http://polaris4.ont.io:20339", + "https://polaris1.ont.io:10339", + "https://polaris2.ont.io:10339", + "https://polaris3.ont.io:10339", + "https://polaris4.ont.io:10339", + ], + faucets: ["https://developer.ont.io/"], + nativeCurrency: { name: "ONG", symbol: "ONG", decimals: 18 }, + infoURL: "https://ont.io/", + shortName: "OntologyTestnet", + chainId: 5851, + networkId: 5851, + explorers: [ + { + name: "explorer", + url: "https://explorer.ont.io/testnet", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "ontology-testnet", + }, + DNt = { + name: "Wegochain Rubidium Mainnet", + chain: "RBD", + rpc: [ + "https://wegochain-rubidium.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://proxy.wegochain.io", + "http://wallet.wegochain.io:7764", + ], + faucets: [], + nativeCurrency: { name: "Rubid", symbol: "RBD", decimals: 18 }, + infoURL: "https://www.wegochain.io", + shortName: "rbd", + chainId: 5869, + networkId: 5869, + explorers: [ + { + name: "wegoscan2", + url: "https://scan2.wegochain.io", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "wegochain-rubidium", + }, + qNt = { + name: "Tres Testnet", + chain: "TresLeches", + rpc: [ + "https://tres-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc-test.tresleches.finance/", + ], + faucets: ["http://faucet.tresleches.finance:8080"], + nativeCurrency: { name: "TRES", symbol: "TRES", decimals: 18 }, + infoURL: "https://treschain.com", + shortName: "TRESTEST", + chainId: 6065, + networkId: 6065, + icon: { + url: "ipfs://QmS33ypsZ1Hx5LMMACaJaxePy9QNYMwu4D12niobExLK74", + width: 512, + height: 512, + format: "png", + }, + explorers: [ + { + name: "treslechesexplorer", + url: "https://explorer-test.tresleches.finance", + icon: "treslechesexplorer", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "tres-testnet", + }, + FNt = { + name: "Tres Mainnet", + chain: "TresLeches", + rpc: [ + "https://tres.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.tresleches.finance/", + "https://rpc.treschain.io/", + ], + faucets: [], + nativeCurrency: { name: "TRES", symbol: "TRES", decimals: 18 }, + infoURL: "https://treschain.com", + shortName: "TRESMAIN", + chainId: 6066, + networkId: 6066, + icon: { + url: "ipfs://QmS33ypsZ1Hx5LMMACaJaxePy9QNYMwu4D12niobExLK74", + width: 512, + height: 512, + format: "png", + }, + explorers: [ + { + name: "treslechesexplorer", + url: "https://explorer.tresleches.finance", + icon: "treslechesexplorer", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "tres", + }, + WNt = { + name: "Pixie Chain Mainnet", + chain: "PixieChain", + rpc: [ + "https://pixie-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://http-mainnet.chain.pixie.xyz", + "wss://ws-mainnet.chain.pixie.xyz", + ], + faucets: [], + nativeCurrency: { + name: "Pixie Chain Native Token", + symbol: "PIX", + decimals: 18, + }, + infoURL: "https://chain.pixie.xyz", + shortName: "pixie-chain", + chainId: 6626, + networkId: 6626, + explorers: [ + { + name: "blockscout", + url: "https://scan.chain.pixie.xyz", + standard: "none", + }, + ], + testnet: !1, + slug: "pixie-chain", + }, + UNt = { + name: "Gold Smart Chain Mainnet", + chain: "STAND", + icon: { + url: "ipfs://QmPNuymyaKLJhCaXnyrsL8358FeTxabZFsaxMmWNU4Tzt3", + width: 396, + height: 418, + format: "png", + }, + rpc: [ + "https://gold-smart-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc-mainnet.goldsmartchain.com", + ], + faucets: ["https://faucet.goldsmartchain.com"], + nativeCurrency: { + name: "Standard in Gold", + symbol: "STAND", + decimals: 18, + }, + infoURL: "https://goldsmartchain.com", + shortName: "STANDm", + chainId: 6789, + networkId: 6789, + explorers: [ + { + name: "Gold Smart Chain", + url: "https://mainnet.goldsmartchain.com", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "gold-smart-chain", + }, + HNt = { + name: "Tomb Chain Mainnet", + chain: "Tomb Chain", + rpc: [ + "https://tomb-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.tombchain.com/", + ], + faucets: [], + nativeCurrency: { name: "Tomb", symbol: "TOMB", decimals: 18 }, + infoURL: "https://tombchain.com/", + shortName: "tombchain", + chainId: 6969, + networkId: 6969, + explorers: [ + { name: "tombscout", url: "https://tombscout.com", standard: "none" }, + ], + parent: { + type: "L2", + chain: "eip155-250", + bridges: [{ url: "https://lif3.com/bridge" }], + }, + testnet: !1, + slug: "tomb-chain", + }, + zNt = { + name: "PolySmartChain", + chain: "PSC", + rpc: [ + "https://polysmartchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://seed0.polysmartchain.com/", + "https://seed1.polysmartchain.com/", + "https://seed2.polysmartchain.com/", + ], + faucets: [], + nativeCurrency: { name: "PSC", symbol: "PSC", decimals: 18 }, + infoURL: "https://www.polysmartchain.com/", + shortName: "psc", + chainId: 6999, + networkId: 6999, + testnet: !1, + slug: "polysmartchain", + }, + jNt = { + name: "ZetaChain Mainnet", + chain: "ZetaChain", + icon: { + url: "ipfs://QmeABfwZ2nAxDzYyqZ1LEypPgQFMjEyrx8FfnoPLkF8R3f", + width: 1280, + height: 1280, + format: "png", + }, + rpc: [ + "https://zetachain.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://api.mainnet.zetachain.com/evm", + ], + faucets: [], + nativeCurrency: { name: "Zeta", symbol: "ZETA", decimals: 18 }, + infoURL: "https://docs.zetachain.com/", + shortName: "zetachain-mainnet", + chainId: 7e3, + networkId: 7e3, + status: "incubating", + explorers: [ + { + name: "ZetaChain Mainnet Explorer", + url: "https://explorer.mainnet.zetachain.com", + standard: "none", + }, + ], + testnet: !1, + slug: "zetachain", + }, + KNt = { + name: "ZetaChain Athens Testnet", + chain: "ZetaChain", + icon: { + url: "ipfs://QmeABfwZ2nAxDzYyqZ1LEypPgQFMjEyrx8FfnoPLkF8R3f", + width: 1280, + height: 1280, + format: "png", + }, + rpc: [ + "https://zetachain-athens-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://api.athens2.zetachain.com/evm", + ], + faucets: ["https://labs.zetachain.com/get-zeta"], + nativeCurrency: { name: "Zeta", symbol: "aZETA", decimals: 18 }, + infoURL: "https://docs.zetachain.com/", + shortName: "zetachain-athens", + chainId: 7001, + networkId: 7001, + status: "active", + explorers: [ + { + name: "ZetaChain Athens Testnet Explorer", + url: "https://explorer.athens.zetachain.com", + standard: "none", + }, + ], + testnet: !0, + slug: "zetachain-athens-testnet", + }, + VNt = { + name: "Ella the heart", + chain: "ella", + icon: { + url: "ipfs://QmVkAhSaHhH3wKoLT56Aq8dNyEH4RySPEpqPcLwsptGBDm", + width: 512, + height: 512, + format: "png", + }, + rpc: [ + "https://ella-the-heart.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.ella.network", + ], + faucets: [], + nativeCurrency: { name: "Ella", symbol: "ELLA", decimals: 18 }, + infoURL: "https://ella.network", + shortName: "ELLA", + chainId: 7027, + networkId: 7027, + explorers: [ + { name: "Ella", url: "https://ella.network", standard: "EIP3091" }, + ], + testnet: !1, + slug: "ella-the-heart", + }, + GNt = { + name: "Planq Mainnet", + chain: "Planq", + icon: { + url: "ipfs://QmWEy9xK5BoqxPuVs7T48WM4exJrxzkEFt45iHcxWqUy8D", + width: 256, + height: 256, + format: "png", + }, + rpc: [ + "https://planq.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://evm-rpc.planq.network", + ], + faucets: [], + nativeCurrency: { name: "Planq", symbol: "PLQ", decimals: 18 }, + infoURL: "https://planq.network", + shortName: "planq", + chainId: 7070, + networkId: 7070, + explorers: [ + { + name: "Planq EVM Explorer (Blockscout)", + url: "https://evm.planq.network", + standard: "none", + }, + { + name: "Planq Cosmos Explorer (BigDipper)", + url: "https://explorer.planq.network", + standard: "none", + }, + ], + testnet: !1, + slug: "planq", + }, + YNt = { + name: "Shyft Mainnet", + chain: "SHYFT", + icon: { + url: "ipfs://QmUkFZC2ZmoYPTKf7AHdjwRPZoV2h1MCuHaGM4iu8SNFpi", + width: 400, + height: 400, + format: "svg", + }, + rpc: [ + "https://shyft.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.shyft.network/", + ], + faucets: [], + nativeCurrency: { name: "Shyft", symbol: "SHYFT", decimals: 18 }, + infoURL: "https://shyft.network", + shortName: "shyft", + chainId: 7341, + networkId: 7341, + slip44: 2147490989, + explorers: [ + { + name: "Shyft BX", + url: "https://bx.shyft.network", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "shyft", + }, + $Nt = { + name: "Canto", + chain: "Canto", + rpc: [ + "https://canto.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://canto.slingshot.finance", + "https://canto.neobase.one", + "https://mainnode.plexnode.org:8545", + ], + faucets: [], + nativeCurrency: { name: "Canto", symbol: "CANTO", decimals: 18 }, + infoURL: "https://canto.io", + shortName: "canto", + chainId: 7700, + networkId: 7700, + explorers: [ + { + name: "Canto EVM Explorer (Blockscout)", + url: "https://evm.explorer.canto.io", + standard: "none", + }, + { + name: "Canto Cosmos Explorer", + url: "https://cosmos-explorers.neobase.one", + standard: "none", + }, + { + name: "Canto EVM Explorer (Blockscout)", + url: "https://tuber.build", + standard: "none", + }, + ], + testnet: !1, + slug: "canto", + }, + JNt = { + name: "Rise of the Warbots Testnet", + chain: "nmactest", + rpc: [ + "https://rise-of-the-warbots-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://testnet1.riseofthewarbots.com", + "https://testnet2.riseofthewarbots.com", + "https://testnet3.riseofthewarbots.com", + "https://testnet4.riseofthewarbots.com", + "https://testnet5.riseofthewarbots.com", + ], + faucets: [], + nativeCurrency: { name: "Nano Machines", symbol: "NMAC", decimals: 18 }, + infoURL: "https://riseofthewarbots.com/", + shortName: "RiseOfTheWarbotsTestnet", + chainId: 7777, + networkId: 7777, + explorers: [ + { + name: "avascan", + url: "https://testnet.avascan.info/blockchain/2mZ9doojfwHzXN3VXDQELKnKyZYxv7833U8Yq5eTfFx3hxJtiy", + standard: "none", + }, + ], + testnet: !0, + slug: "rise-of-the-warbots-testnet", + }, + ZNt = { + name: "Hazlor Testnet", + chain: "SCAS", + rpc: [ + "https://hazlor-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://hatlas.rpc.hazlor.com:8545", + "wss://hatlas.rpc.hazlor.com:8546", + ], + faucets: ["https://faucet.hazlor.com"], + nativeCurrency: { + name: "Hazlor Test Coin", + symbol: "TSCAS", + decimals: 18, + }, + infoURL: "https://hazlor.com", + shortName: "tscas", + chainId: 7878, + networkId: 7878, + explorers: [ + { + name: "Hazlor Testnet Explorer", + url: "https://explorer.hazlor.com", + standard: "none", + }, + ], + testnet: !0, + slug: "hazlor-testnet", + }, + QNt = { + name: "Teleport", + chain: "Teleport", + rpc: [ + "https://teleport.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://evm-rpc.teleport.network", + ], + faucets: [], + nativeCurrency: { name: "Tele", symbol: "TELE", decimals: 18 }, + infoURL: "https://teleport.network", + shortName: "teleport", + chainId: 8e3, + networkId: 8e3, + icon: { + url: "ipfs://QmdP1sLnsmW9dwnfb1GxAXU1nHDzCvWBQNumvMXpdbCSuz", + width: 390, + height: 390, + format: "svg", + }, + explorers: [ + { + name: "Teleport EVM Explorer (Blockscout)", + url: "https://evm-explorer.teleport.network", + standard: "none", + icon: "teleport", + }, + { + name: "Teleport Cosmos Explorer (Big Dipper)", + url: "https://explorer.teleport.network", + standard: "none", + icon: "teleport", + }, + ], + testnet: !1, + slug: "teleport", + }, + XNt = { + name: "Teleport Testnet", + chain: "Teleport", + rpc: [ + "https://teleport-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://evm-rpc.testnet.teleport.network", + ], + faucets: ["https://chain-docs.teleport.network/testnet/faucet.html"], + nativeCurrency: { name: "Tele", symbol: "TELE", decimals: 18 }, + infoURL: "https://teleport.network", + shortName: "teleport-testnet", + chainId: 8001, + networkId: 8001, + icon: { + url: "ipfs://QmdP1sLnsmW9dwnfb1GxAXU1nHDzCvWBQNumvMXpdbCSuz", + width: 390, + height: 390, + format: "svg", + }, + explorers: [ + { + name: "Teleport EVM Explorer (Blockscout)", + url: "https://evm-explorer.testnet.teleport.network", + standard: "none", + icon: "teleport", + }, + { + name: "Teleport Cosmos Explorer (Big Dipper)", + url: "https://explorer.testnet.teleport.network", + standard: "none", + icon: "teleport", + }, + ], + testnet: !0, + slug: "teleport-testnet", + }, + eOt = { + name: "MDGL Testnet", + chain: "MDGL", + rpc: [ + "https://mdgl-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://testnet.mdgl.io", + ], + faucets: [], + nativeCurrency: { name: "MDGL Token", symbol: "MDGLT", decimals: 18 }, + infoURL: "https://mdgl.io", + shortName: "mdgl", + chainId: 8029, + networkId: 8029, + testnet: !0, + slug: "mdgl-testnet", + }, + tOt = { + name: "Shardeum Liberty 1.X", + chain: "Shardeum", + icon: { + url: "ipfs://Qma1bfuubpepKn7DLDy4NPSKDeT3S4VPCNhu6UmdGrb6YD", + width: 609, + height: 533, + format: "png", + }, + rpc: [ + "https://shardeum-liberty-1-x.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://liberty10.shardeum.org/", + ], + faucets: ["https://faucet.liberty10.shardeum.org"], + nativeCurrency: { name: "Shardeum SHM", symbol: "SHM", decimals: 18 }, + infoURL: "https://docs.shardeum.org/", + shortName: "Liberty10", + chainId: 8080, + networkId: 8080, + explorers: [ + { + name: "Shardeum Scan", + url: "https://explorer-liberty10.shardeum.org", + standard: "none", + }, + ], + redFlags: ["reusedChainId"], + testnet: !1, + slug: "shardeum-liberty-1-x", + }, + rOt = { + name: "Shardeum Liberty 2.X", + chain: "Shardeum", + icon: { + url: "ipfs://Qma1bfuubpepKn7DLDy4NPSKDeT3S4VPCNhu6UmdGrb6YD", + width: 609, + height: 533, + format: "png", + }, + rpc: [ + "https://shardeum-liberty-2-x.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://liberty20.shardeum.org/", + ], + faucets: ["https://faucet.liberty20.shardeum.org"], + nativeCurrency: { name: "Shardeum SHM", symbol: "SHM", decimals: 18 }, + infoURL: "https://docs.shardeum.org/", + shortName: "Liberty20", + chainId: 8081, + networkId: 8081, + explorers: [ + { + name: "Shardeum Scan", + url: "https://explorer-liberty20.shardeum.org", + standard: "none", + }, + ], + redFlags: ["reusedChainId"], + testnet: !1, + slug: "shardeum-liberty-2-x", + }, + nOt = { + name: "Shardeum Sphinx 1.X", + chain: "Shardeum", + icon: { + url: "ipfs://Qma1bfuubpepKn7DLDy4NPSKDeT3S4VPCNhu6UmdGrb6YD", + width: 609, + height: 533, + format: "png", + }, + rpc: [ + "https://shardeum-sphinx-1-x.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://sphinx.shardeum.org/", + ], + faucets: ["https://faucet-sphinx.shardeum.org/"], + nativeCurrency: { name: "Shardeum SHM", symbol: "SHM", decimals: 18 }, + infoURL: "https://docs.shardeum.org/", + shortName: "Sphinx10", + chainId: 8082, + networkId: 8082, + explorers: [ + { + name: "Shardeum Scan", + url: "https://explorer-sphinx.shardeum.org", + standard: "none", + }, + ], + redFlags: ["reusedChainId"], + testnet: !1, + slug: "shardeum-sphinx-1-x", + }, + aOt = { + name: "StreamuX Blockchain", + chain: "StreamuX", + rpc: [ + "https://streamux-blockchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://u0ma6t6heb:KDNwOsRDGcyM2Oeui1p431Bteb4rvcWkuPgQNHwB4FM@u0xy4x6x82-u0e2mg517m-rpc.us0-aws.kaleido.io/", + ], + faucets: [], + nativeCurrency: { name: "StreamuX", symbol: "SmuX", decimals: 18 }, + infoURL: "https://www.streamux.cloud", + shortName: "StreamuX", + chainId: 8098, + networkId: 8098, + testnet: !1, + slug: "streamux-blockchain", + }, + iOt = { + name: "Qitmeer Network Testnet", + chain: "MEER", + rpc: [], + faucets: [], + nativeCurrency: { + name: "Qitmeer Testnet", + symbol: "MEER-T", + decimals: 18, + }, + infoURL: "https://github.com/Qitmeer", + shortName: "meertest", + chainId: 8131, + networkId: 8131, + icon: { + url: "ipfs://QmWSbMuCwQzhBB6GRLYqZ87n5cnpzpYCehCAMMQmUXj4mm", + width: 512, + height: 512, + format: "png", + }, + explorers: [ + { + name: "meerscan testnet", + url: "https://testnet.qng.meerscan.io", + standard: "none", + }, + ], + testnet: !0, + slug: "qitmeer-network-testnet", + }, + sOt = { + name: "BeOne Chain Testnet", + chain: "BOC", + rpc: [ + "https://beone-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://pre-boc1.beonechain.com", + "https://pre-boc2.beonechain.com", + "https://pre-boc3.beonechain.com", + ], + faucets: ["https://testnet.beonescan.com/faucet"], + nativeCurrency: { + name: "BeOne Chain Testnet", + symbol: "BOC", + decimals: 18, + }, + infoURL: "https://testnet.beonescan.com", + shortName: "tBOC", + chainId: 8181, + networkId: 8181, + icon: { + url: "ipfs://QmbVLQnaMDu86bPyKgCvTGhFBeYwjr15hQnrCcsp1EkAGL", + width: 500, + height: 500, + format: "png", + }, + explorers: [ + { + name: "BeOne Chain Testnet", + url: "https://testnet.beonescan.com", + icon: "beonechain", + standard: "none", + }, + ], + testnet: !0, + slug: "beone-chain-testnet", + }, + oOt = { + name: "Klaytn Mainnet Cypress", + chain: "KLAY", + rpc: [ + "https://klaytn-cypress.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://public-node-api.klaytnapi.com/v1/cypress", + ], + faucets: [], + nativeCurrency: { name: "KLAY", symbol: "KLAY", decimals: 18 }, + infoURL: "https://www.klaytn.com/", + shortName: "Cypress", + chainId: 8217, + networkId: 8217, + slip44: 8217, + explorers: [ + { + name: "Klaytnscope", + url: "https://scope.klaytn.com", + standard: "none", + }, + ], + testnet: !1, + slug: "klaytn-cypress", + }, + cOt = { + name: "Blockton Blockchain", + chain: "Blockton Blockchain", + icon: { + url: "ipfs://bafkreig3hoedafisrgc6iffdo2jcblm6kov35h72gcblc3zkmt7t4ucwhy", + width: 800, + height: 800, + format: "png", + }, + rpc: [ + "https://blockton-blockchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.blocktonscan.com/", + ], + faucets: ["https://faucet.blocktonscan.com/"], + nativeCurrency: { name: "BLOCKTON", symbol: "BTON", decimals: 18 }, + infoURL: "https://blocktoncoin.com", + shortName: "BTON", + chainId: 8272, + networkId: 8272, + explorers: [ + { + name: "Blockton Explorer", + url: "https://blocktonscan.com", + standard: "none", + }, + ], + testnet: !1, + slug: "blockton-blockchain", + }, + uOt = { + name: "KorthoTest", + chain: "Kortho", + rpc: [ + "https://korthotest.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://www.krotho-test.net", + ], + faucets: [], + nativeCurrency: { name: "Kortho Test", symbol: "KTO", decimals: 11 }, + infoURL: "https://www.kortho.io/", + shortName: "Kortho", + chainId: 8285, + networkId: 8285, + testnet: !0, + slug: "korthotest", + }, + lOt = { + name: "Toki Network", + chain: "TOKI", + rpc: [ + "https://toki-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://mainnet.buildwithtoki.com/v0/rpc", + ], + faucets: [], + nativeCurrency: { name: "Toki", symbol: "TOKI", decimals: 18 }, + infoURL: "https://www.buildwithtoki.com", + shortName: "toki", + chainId: 8654, + networkId: 8654, + icon: { + url: "ipfs://QmbCBBH4dFHGr8u1yQspCieQG9hLcPFNYdRx1wnVsX8hUw", + width: 512, + height: 512, + format: "svg", + }, + explorers: [], + testnet: !1, + slug: "toki-network", + }, + dOt = { + name: "Toki Testnet", + chain: "TOKI", + rpc: [ + "https://toki-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://testnet.buildwithtoki.com/v0/rpc", + ], + faucets: [], + nativeCurrency: { name: "Toki", symbol: "TOKI", decimals: 18 }, + infoURL: "https://www.buildwithtoki.com", + shortName: "toki-testnet", + chainId: 8655, + networkId: 8655, + icon: { + url: "ipfs://QmbCBBH4dFHGr8u1yQspCieQG9hLcPFNYdRx1wnVsX8hUw", + width: 512, + height: 512, + format: "svg", + }, + explorers: [], + testnet: !0, + slug: "toki-testnet", + }, + pOt = { + name: "TOOL Global Mainnet", + chain: "OLO", + rpc: [ + "https://tool-global.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://mainnet-web3.wolot.io", + ], + faucets: [], + nativeCurrency: { name: "TOOL Global", symbol: "OLO", decimals: 18 }, + infoURL: "https://ibdt.io", + shortName: "olo", + chainId: 8723, + networkId: 8723, + slip44: 479, + explorers: [ + { + name: "OLO Block Explorer", + url: "https://www.olo.network", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "tool-global", + }, + hOt = { + name: "TOOL Global Testnet", + chain: "OLO", + rpc: [ + "https://tool-global-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://testnet-web3.wolot.io", + ], + faucets: ["https://testnet-explorer.wolot.io"], + nativeCurrency: { name: "TOOL Global", symbol: "OLO", decimals: 18 }, + infoURL: "https://testnet-explorer.wolot.io", + shortName: "tolo", + chainId: 8724, + networkId: 8724, + slip44: 479, + testnet: !0, + slug: "tool-global-testnet", + }, + fOt = { + name: "Alph Network", + chain: "ALPH", + rpc: [ + "https://alph-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.alph.network", + "wss://rpc.alph.network", + ], + faucets: [], + nativeCurrency: { name: "Alph Network", symbol: "ALPH", decimals: 18 }, + infoURL: "https://alph.network", + shortName: "alph", + chainId: 8738, + networkId: 8738, + explorers: [ + { + name: "alphscan", + url: "https://explorer.alph.network", + icon: "alphscan", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "alph-network", + }, + mOt = { + name: "TMY Chain", + chain: "TMY", + icon: { + url: "ipfs://QmdwQDr6vmBtXmK2TmknkEuZNoaDqTasFdZdu3DRw8b2wt", + width: 1e3, + height: 1628, + format: "png", + }, + rpc: [ + "https://tmy-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://node1.tmyblockchain.org/rpc", + ], + faucets: ["https://faucet.tmychain.org/"], + nativeCurrency: { name: "TMY", symbol: "TMY", decimals: 18 }, + infoURL: "https://tmychain.org/", + shortName: "tmy", + chainId: 8768, + networkId: 8768, + testnet: !1, + slug: "tmy-chain", + }, + yOt = { + name: "MARO Blockchain Mainnet", + chain: "MARO Blockchain", + icon: { + url: "ipfs://bafkreig47k53aipns6nu3u5fxpysp7mogzk6zyvatgpbam7yut3yvtuefa", + width: 160, + height: 160, + format: "png", + }, + rpc: [ + "https://maro-blockchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc-mainnet.ma.ro", + ], + faucets: [], + nativeCurrency: { name: "MARO", symbol: "MARO", decimals: 18 }, + infoURL: "https://ma.ro/", + shortName: "maro", + chainId: 8848, + networkId: 8848, + explorers: [ + { name: "MARO Scan", url: "https://scan.ma.ro/#", standard: "none" }, + ], + testnet: !1, + slug: "maro-blockchain", + }, + gOt = { + name: "Unique", + icon: { + url: "ipfs://QmbJ7CGZ2GxWMp7s6jy71UGzRsMe4w3KANKXDAExYWdaFR", + width: 48, + height: 48, + format: "svg", + }, + chain: "UNQ", + rpc: [ + "https://unique.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.unique.network", + "https://eu-rpc.unique.network", + "https://asia-rpc.unique.network", + "https://us-rpc.unique.network", + ], + faucets: [], + nativeCurrency: { name: "Unique", symbol: "UNQ", decimals: 18 }, + infoURL: "https://unique.network", + shortName: "unq", + chainId: 8880, + networkId: 8880, + explorers: [ + { + name: "Unique Scan", + url: "https://uniquescan.io/unique", + standard: "none", + }, + ], + testnet: !1, + slug: "unique", + }, + bOt = { + name: "Quartz by Unique", + icon: { + url: "ipfs://QmaGPdccULQEFcCGxzstnmE8THfac2kSiGwvWRAiaRq4dp", + width: 48, + height: 48, + format: "svg", + }, + chain: "UNQ", + rpc: [ + "https://quartz-by-unique.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc-quartz.unique.network", + "https://quartz.api.onfinality.io/public-ws", + "https://eu-rpc-quartz.unique.network", + "https://asia-rpc-quartz.unique.network", + "https://us-rpc-quartz.unique.network", + ], + faucets: [], + nativeCurrency: { name: "Quartz", symbol: "QTZ", decimals: 18 }, + infoURL: "https://unique.network", + shortName: "qtz", + chainId: 8881, + networkId: 8881, + explorers: [ + { + name: "Unique Scan / Quartz", + url: "https://uniquescan.io/quartz", + standard: "none", + }, + ], + testnet: !1, + slug: "quartz-by-unique", + }, + vOt = { + name: "Opal testnet by Unique", + icon: { + url: "ipfs://QmYJDpmWyjDa3H6BxweFmQXk4fU8b1GU7M9EqYcaUNvXzc", + width: 48, + height: 48, + format: "svg", + }, + chain: "UNQ", + rpc: [ + "https://opal-testnet-by-unique.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc-opal.unique.network", + "https://us-rpc-opal.unique.network", + "https://eu-rpc-opal.unique.network", + "https://asia-rpc-opal.unique.network", + ], + faucets: ["https://t.me/unique2faucet_opal_bot"], + nativeCurrency: { name: "Opal", symbol: "UNQ", decimals: 18 }, + infoURL: "https://unique.network", + shortName: "opl", + chainId: 8882, + networkId: 8882, + explorers: [ + { + name: "Unique Scan / Opal", + url: "https://uniquescan.io/opal", + standard: "none", + }, + ], + testnet: !0, + slug: "opal-testnet-by-unique", + }, + wOt = { + name: "Sapphire by Unique", + icon: { + url: "ipfs://Qmd1PGt4cDRjFbh4ihP5QKEd4XQVwN1MkebYKdF56V74pf", + width: 48, + height: 48, + format: "svg", + }, + chain: "UNQ", + rpc: [ + "https://sapphire-by-unique.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc-sapphire.unique.network", + "https://us-rpc-sapphire.unique.network", + "https://eu-rpc-sapphire.unique.network", + "https://asia-rpc-sapphire.unique.network", + ], + faucets: [], + nativeCurrency: { name: "Quartz", symbol: "QTZ", decimals: 18 }, + infoURL: "https://unique.network", + shortName: "sph", + chainId: 8883, + networkId: 8883, + explorers: [ + { + name: "Unique Scan / Sapphire", + url: "https://uniquescan.io/sapphire", + standard: "none", + }, + ], + testnet: !1, + slug: "sapphire-by-unique", + }, + _Ot = { + name: "XANAChain", + chain: "XANAChain", + rpc: [ + "https://xanachain.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://mainnet.xana.net/rpc", + ], + faucets: [], + nativeCurrency: { name: "XETA", symbol: "XETA", decimals: 18 }, + infoURL: "https://xanachain.xana.net/", + shortName: "XANAChain", + chainId: 8888, + networkId: 8888, + icon: { + url: "ipfs://QmWGNfwJ9o2vmKD3E6fjrxpbFP8W5q45zmYzHHoXwqqAoj", + width: 512, + height: 512, + format: "png", + }, + explorers: [ + { + name: "XANAChain", + url: "https://xanachain.xana.net", + standard: "EIP3091", + }, + ], + redFlags: ["reusedChainId"], + testnet: !1, + slug: "xanachain", + }, + xOt = { + name: "Vyvo Smart Chain", + chain: "VSC", + rpc: [ + "https://vyvo-smart-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://vsc-dataseed.vyvo.org:8889", + ], + faucets: [], + nativeCurrency: { name: "VSC", symbol: "VSC", decimals: 18 }, + infoURL: "https://vsc-dataseed.vyvo.org", + shortName: "vsc", + chainId: 8889, + networkId: 8889, + testnet: !1, + slug: "vyvo-smart-chain", + }, + TOt = { + name: "Mammoth Mainnet", + title: "Mammoth Chain", + chain: "MMT", + rpc: [ + "https://mammoth.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://dataseed.mmtscan.io", + "https://dataseed1.mmtscan.io", + "https://dataseed2.mmtscan.io", + ], + faucets: ["https://faucet.mmtscan.io/"], + nativeCurrency: { name: "Mammoth Token", symbol: "MMT", decimals: 18 }, + infoURL: "https://mmtchain.io/", + shortName: "mmt", + chainId: 8898, + networkId: 8898, + icon: { + url: "ipfs://QmaF5gi2CbDKsJ2UchNkjBqmWjv8JEDP3vePBmxeUHiaK4", + width: 250, + height: 250, + format: "png", + }, + explorers: [ + { + name: "mmtscan", + url: "https://mmtscan.io", + standard: "EIP3091", + icon: "mmt", + }, + ], + testnet: !1, + slug: "mammoth", + }, + EOt = { + name: "JIBCHAIN L1", + chain: "JBC", + rpc: [ + "https://jibchain-l1.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc-l1.jibchain.net", + ], + faucets: [], + features: [{ name: "EIP155" }, { name: "EIP1559" }], + nativeCurrency: { name: "JIBCOIN", symbol: "JBC", decimals: 18 }, + infoURL: "https://jibchain.net", + shortName: "jbc", + chainId: 8899, + networkId: 8899, + explorers: [ + { + name: "JIBCHAIN Explorer", + url: "https://exp-l1.jibchain.net", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "jibchain-l1", + }, + COt = { + name: "Giant Mammoth Mainnet", + title: "Giant Mammoth Chain", + chain: "GMMT", + rpc: [ + "https://giant-mammoth.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc-asia.gmmtchain.io", + ], + faucets: [], + nativeCurrency: { + name: "Giant Mammoth Coin", + symbol: "GMMT", + decimals: 18, + }, + infoURL: "https://gmmtchain.io/", + shortName: "gmmt", + chainId: 8989, + networkId: 8989, + icon: { + url: "ipfs://QmVth4aPeskDTFqRifUugJx6gyEHCmx2PFbMWUtsCSQFkF", + width: 468, + height: 518, + format: "png", + }, + explorers: [ + { + name: "gmmtscan", + url: "https://scan.gmmtchain.io", + standard: "EIP3091", + icon: "gmmt", + }, + ], + testnet: !1, + slug: "giant-mammoth", + }, + IOt = { + name: "bloxberg", + chain: "bloxberg", + rpc: [ + "https://bloxberg.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://core.bloxberg.org", + ], + faucets: ["https://faucet.bloxberg.org/"], + nativeCurrency: { name: "BERG", symbol: "U+25B3", decimals: 18 }, + infoURL: "https://bloxberg.org", + shortName: "berg", + chainId: 8995, + networkId: 8995, + testnet: !1, + slug: "bloxberg", + }, + AOt = { + name: "Evmos Testnet", + chain: "Evmos", + rpc: [ + "https://evmos-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://eth.bd.evmos.dev:8545", + ], + faucets: ["https://faucet.evmos.dev"], + nativeCurrency: { name: "test-Evmos", symbol: "tEVMOS", decimals: 18 }, + infoURL: "https://evmos.org", + shortName: "evmos-testnet", + chainId: 9e3, + networkId: 9e3, + icon: { + url: "ipfs://QmeZW6VKUFTbz7PPW8PmDR3ZHa6osYPLBFPnW8T5LSU49c", + width: 400, + height: 400, + format: "png", + }, + explorers: [ + { + name: "Evmos EVM Explorer", + url: "https://evm.evmos.dev", + standard: "EIP3091", + icon: "evmos", + }, + { + name: "Evmos Cosmos Explorer", + url: "https://explorer.evmos.dev", + standard: "none", + icon: "evmos", + }, + ], + testnet: !0, + slug: "evmos-testnet", + }, + kOt = { + name: "Evmos", + chain: "Evmos", + rpc: [ + "https://evmos.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://eth.bd.evmos.org:8545", + "https://evmos-evm.publicnode.com", + ], + faucets: [], + nativeCurrency: { name: "Evmos", symbol: "EVMOS", decimals: 18 }, + infoURL: "https://evmos.org", + shortName: "evmos", + chainId: 9001, + networkId: 9001, + icon: { + url: "ipfs://QmeZW6VKUFTbz7PPW8PmDR3ZHa6osYPLBFPnW8T5LSU49c", + width: 400, + height: 400, + format: "png", + }, + explorers: [ + { + name: "Evmos EVM Explorer (Escan)", + url: "https://escan.live", + standard: "none", + icon: "evmos", + }, + { + name: "Evmos Cosmos Explorer (Mintscan)", + url: "https://www.mintscan.io/evmos", + standard: "none", + icon: "evmos", + }, + ], + testnet: !1, + slug: "evmos", + }, + SOt = { + name: "BerylBit Mainnet", + chain: "BRB", + rpc: [ + "https://berylbit.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://mainnet.berylbit.io", + ], + faucets: ["https://t.me/BerylBit"], + nativeCurrency: { + name: "BerylBit Chain Native Token", + symbol: "BRB", + decimals: 18, + }, + infoURL: "https://www.beryl-bit.com", + shortName: "brb", + chainId: 9012, + networkId: 9012, + icon: { + url: "ipfs://QmeDXHkpranzqGN1BmQqZSrFp4vGXf4JfaB5iq8WHHiwDi", + width: 162, + height: 162, + format: "png", + }, + explorers: [ + { + name: "berylbit-explorer", + url: "https://explorer.berylbit.io", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "berylbit", + }, + MOt = { + name: "Genesis Coin", + chain: "Genesis", + rpc: [ + "https://genesis-coin.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://genesis-gn.com", + "wss://genesis-gn.com", + ], + faucets: [], + nativeCurrency: { name: "GN Coin", symbol: "GNC", decimals: 18 }, + infoURL: "https://genesis-gn.com", + shortName: "GENEC", + chainId: 9100, + networkId: 9100, + testnet: !1, + slug: "genesis-coin", + }, + POt = { + name: "Dogcoin Testnet", + chain: "DOGS", + icon: { + url: "ipfs://QmZCadkExKThak3msvszZjo6UnAbUJKE61dAcg4TixuMC3", + width: 160, + height: 171, + format: "png", + }, + rpc: [ + "https://dogcoin-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://testnet-rpc.dogcoin.network", + ], + faucets: ["https://faucet.dogcoin.network"], + nativeCurrency: { name: "Dogcoin", symbol: "DOGS", decimals: 18 }, + infoURL: "https://dogcoin.network", + shortName: "DOGSt", + chainId: 9339, + networkId: 9339, + explorers: [ + { + name: "Dogcoin", + url: "https://testnet.dogcoin.network", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "dogcoin-testnet", + }, + ROt = { + name: "Rangers Protocol Testnet Robin", + chain: "Rangers", + icon: { + url: "ipfs://QmfHG3xbg4iiopagww93Gu7tmvCpPwZdiwsUjd3Dt5mRwT", + width: 835, + height: 835, + format: "png", + }, + rpc: [ + "https://rangers-protocol-testnet-robin.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://robin.rangersprotocol.com/api/jsonrpc", + ], + faucets: ["https://robin-faucet.rangersprotocol.com"], + nativeCurrency: { + name: "Rangers Protocol Gas", + symbol: "tRPG", + decimals: 18, + }, + infoURL: "https://rangersprotocol.com", + shortName: "trpg", + chainId: 9527, + networkId: 9527, + explorers: [ + { + name: "rangersscan-robin", + url: "https://robin-rangersscan.rangersprotocol.com", + standard: "none", + }, + ], + testnet: !0, + slug: "rangers-protocol-testnet-robin", + }, + BOt = { + name: "QEasyWeb3 Testnet", + chain: "QET", + rpc: [ + "https://qeasyweb3-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://qeasyweb3.com", + ], + faucets: ["http://faucet.qeasyweb3.com"], + nativeCurrency: { name: "QET", symbol: "QET", decimals: 18 }, + infoURL: "https://www.qeasyweb3.com", + shortName: "QETTest", + chainId: 9528, + networkId: 9528, + explorers: [ + { + name: "QEasyWeb3 Explorer", + url: "https://www.qeasyweb3.com", + icon: "qetscan", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "qeasyweb3-testnet", + }, + NOt = { + name: "Oort MainnetDev", + title: "Oort MainnetDev", + chain: "MainnetDev", + rpc: [], + faucets: [], + nativeCurrency: { name: "Oort", symbol: "CCN", decimals: 18 }, + infoURL: "https://oortech.com", + shortName: "MainnetDev", + chainId: 9700, + networkId: 9700, + icon: { + url: "ipfs://QmZ1jbxFZcuotj3eZ6iKFrg9ZXnaV8AK6sGRa7ELrceWyD", + width: 1043, + height: 1079, + format: "png", + }, + testnet: !1, + slug: "oort-dev", + }, + OOt = { + name: "Boba BNB Testnet", + chain: "Boba BNB Testnet", + rpc: [ + "https://boba-bnb-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://testnet.bnb.boba.network", + "wss://wss.testnet.bnb.boba.network", + "https://replica.testnet.bnb.boba.network", + "wss://replica-wss.testnet.bnb.boba.network", + ], + faucets: [], + nativeCurrency: { name: "Boba Token", symbol: "BOBA", decimals: 18 }, + infoURL: "https://boba.network", + shortName: "BobaBnbTestnet", + chainId: 9728, + networkId: 9728, + explorers: [ + { + name: "Boba BNB Testnet block explorer", + url: "https://blockexplorer.testnet.bnb.boba.network", + standard: "none", + }, + ], + testnet: !0, + slug: "boba-bnb-testnet", + }, + LOt = { + name: "MainnetZ Testnet", + chain: "NetZ", + icon: { + url: "ipfs://QmT5gJ5weBiLT3GoYuF5yRTRLdPLCVZ3tXznfqW7M8fxgG", + width: 400, + height: 400, + format: "png", + }, + rpc: [ + "https://z-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://testnet-rpc.mainnetz.io", + ], + faucets: ["https://faucet.mainnetz.io"], + nativeCurrency: { name: "MainnetZ", symbol: "NetZ", decimals: 18 }, + infoURL: "https://testnet.mainnetz.io", + shortName: "NetZt", + chainId: 9768, + networkId: 9768, + explorers: [ + { + name: "MainnetZ", + url: "https://testnet.mainnetz.io", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "z-testnet", + }, + DOt = { + name: "myOwn Testnet", + chain: "myOwn", + rpc: [ + "https://myown-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://geth.dev.bccloud.net", + ], + faucets: [], + nativeCurrency: { name: "MYN", symbol: "MYN", decimals: 18 }, + infoURL: "https://docs.bccloud.net/", + shortName: "myn", + chainId: 9999, + networkId: 9999, + testnet: !0, + slug: "myown-testnet", + }, + qOt = { + name: "Smart Bitcoin Cash", + chain: "smartBCH", + rpc: [ + "https://smart-bitcoin-cash.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://smartbch.greyh.at", + "https://rpc-mainnet.smartbch.org", + "https://smartbch.fountainhead.cash/mainnet", + "https://smartbch.devops.cash/mainnet", + ], + faucets: [], + nativeCurrency: { name: "Bitcoin Cash", symbol: "BCH", decimals: 18 }, + infoURL: "https://smartbch.org/", + shortName: "smartbch", + chainId: 1e4, + networkId: 1e4, + testnet: !1, + slug: "smart-bitcoin-cash", + }, + FOt = { + name: "Smart Bitcoin Cash Testnet", + chain: "smartBCHTest", + rpc: [ + "https://smart-bitcoin-cash-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc-testnet.smartbch.org", + "https://smartbch.devops.cash/testnet", + ], + faucets: [], + nativeCurrency: { + name: "Bitcoin Cash Test Token", + symbol: "BCHT", + decimals: 18, + }, + infoURL: "http://smartbch.org/", + shortName: "smartbchtest", + chainId: 10001, + networkId: 10001, + testnet: !0, + slug: "smart-bitcoin-cash-testnet", + }, + WOt = { + name: "Gon Chain", + chain: "GonChain", + icon: { + url: "ipfs://QmPtiJGaApbW3ATZhPW3pKJpw3iGVrRGsZLWhrDKF9ZK18", + width: 1024, + height: 1024, + format: "png", + }, + rpc: [ + "https://gon-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://node1.testnet.gaiaopen.network", + "http://database1.gaiaopen.network", + ], + faucets: [], + nativeCurrency: { name: "Gon Token", symbol: "GT", decimals: 18 }, + infoURL: "", + shortName: "gon", + chainId: 10024, + networkId: 10024, + explorers: [ + { + name: "Gon Explorer", + url: "https://gonscan.com", + standard: "none", + }, + ], + testnet: !0, + slug: "gon-chain", + }, + UOt = { + name: "SJATSH", + chain: "ETH", + rpc: [ + "https://sjatsh.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "http://geth.free.idcfengye.com", + ], + faucets: [], + nativeCurrency: { name: "Ether", symbol: "ETH", decimals: 18 }, + infoURL: "https://sjis.me", + shortName: "SJ", + chainId: 10086, + networkId: 10086, + testnet: !1, + slug: "sjatsh", + }, + HOt = { + name: "Blockchain Genesis Mainnet", + chain: "GEN", + rpc: [ + "https://blockchain-genesis.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://eu.mainnet.xixoio.com", + "https://us.mainnet.xixoio.com", + "https://asia.mainnet.xixoio.com", + ], + faucets: [], + nativeCurrency: { name: "GEN", symbol: "GEN", decimals: 18 }, + infoURL: "https://www.xixoio.com/", + shortName: "GEN", + chainId: 10101, + networkId: 10101, + testnet: !1, + slug: "blockchain-genesis", + }, + zOt = { + name: "Chiado Testnet", + chain: "CHI", + icon: { + url: "ipfs://bafybeidk4swpgdyqmpz6shd5onvpaujvwiwthrhypufnwr6xh3dausz2dm", + width: 1800, + height: 1800, + format: "png", + }, + rpc: [ + "https://chiado-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.chiadochain.net", + "https://rpc.eu-central-2.gateway.fm/v3/gnosis/archival/chiado", + ], + faucets: ["https://gnosisfaucet.com"], + nativeCurrency: { name: "Chiado xDAI", symbol: "xDAI", decimals: 18 }, + infoURL: "https://docs.gnosischain.com", + shortName: "chi", + chainId: 10200, + networkId: 10200, + explorers: [ + { + name: "blockscout", + url: "https://blockscout.chiadochain.net", + icon: "blockscout", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "chiado-testnet", + }, + jOt = { + name: "0XTade", + chain: "0XTade Chain", + rpc: [ + "https://0xtade.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://node.0xtchain.com", + ], + faucets: [], + nativeCurrency: { name: "0XT", symbol: "0XT", decimals: 18 }, + infoURL: "https://www.0xtrade.finance/", + shortName: "0xt", + chainId: 10248, + networkId: 10248, + explorers: [ + { + name: "0xtrade Scan", + url: "https://www.0xtscan.com", + standard: "none", + }, + ], + testnet: !1, + slug: "0xtade", + }, + KOt = { + name: "Numbers Mainnet", + chain: "NUM", + icon: { + url: "ipfs://bafkreie3ba6ofosjqqiya6empkyw6u5xdrtcfzi2evvyt4u6utzeiezyhi", + width: 1500, + height: 1500, + format: "png", + }, + rpc: [ + "https://numbers.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://mainnetrpc.num.network", + ], + faucets: [], + nativeCurrency: { name: "NUM Token", symbol: "NUM", decimals: 18 }, + infoURL: "https://numbersprotocol.io", + shortName: "Jade", + chainId: 10507, + networkId: 10507, + explorers: [ + { + name: "ethernal", + url: "https://mainnet.num.network", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "numbers", + }, + VOt = { + name: "Numbers Testnet", + chain: "NUM", + icon: { + url: "ipfs://bafkreie3ba6ofosjqqiya6empkyw6u5xdrtcfzi2evvyt4u6utzeiezyhi", + width: 1500, + height: 1500, + format: "png", + }, + rpc: [ + "https://numbers-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://testnetrpc.num.network", + ], + faucets: [ + "https://faucet.avax.network/?subnet=num", + "https://faucet.num.network", + ], + nativeCurrency: { name: "NUM Token", symbol: "NUM", decimals: 18 }, + infoURL: "https://numbersprotocol.io", + shortName: "Snow", + chainId: 10508, + networkId: 10508, + explorers: [ + { + name: "ethernal", + url: "https://testnet.num.network", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "numbers-testnet", + }, + GOt = { + name: "CryptoCoinPay", + chain: "CCP", + rpc: [ + "https://cryptocoinpay.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "http://node106.cryptocoinpay.info:8545", + "ws://node106.cryptocoinpay.info:8546", + ], + faucets: [], + icon: { + url: "ipfs://QmPw1ixYYeXvTiRWoCt2jWe4YMd3B5o7TzL18SBEHXvhXX", + width: 200, + height: 200, + format: "png", + }, + nativeCurrency: { name: "CryptoCoinPay", symbol: "CCP", decimals: 18 }, + infoURL: "https://www.cryptocoinpay.co", + shortName: "CCP", + chainId: 10823, + networkId: 10823, + explorers: [ + { + name: "CCP Explorer", + url: "https://cryptocoinpay.info", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "cryptocoinpay", + }, + YOt = { + name: "Quadrans Blockchain", + chain: "QDC", + icon: { + url: "ipfs://QmZFiYHnE4TrezPz8wSap9nMxG6m98w4fv7ataj2TfLNck", + width: 1024, + height: 1024, + format: "png", + }, + rpc: [ + "https://quadrans-blockchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.quadrans.io", + "https://rpcna.quadrans.io", + "https://rpceu.quadrans.io", + ], + faucets: [], + nativeCurrency: { name: "Quadrans Coin", symbol: "QDC", decimals: 18 }, + infoURL: "https://quadrans.io", + shortName: "quadrans", + chainId: 10946, + networkId: 10946, + explorers: [ + { + name: "explorer", + url: "https://explorer.quadrans.io", + icon: "quadrans", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "quadrans-blockchain", + }, + $Ot = { + name: "Quadrans Blockchain Testnet", + chain: "tQDC", + icon: { + url: "ipfs://QmZFiYHnE4TrezPz8wSap9nMxG6m98w4fv7ataj2TfLNck", + width: 1024, + height: 1024, + format: "png", + }, + rpc: [ + "https://quadrans-blockchain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpctest.quadrans.io", + "https://rpctest2.quadrans.io", + ], + faucets: ["https://faucetpage.quadrans.io"], + nativeCurrency: { + name: "Quadrans Testnet Coin", + symbol: "tQDC", + decimals: 18, + }, + infoURL: "https://quadrans.io", + shortName: "quadranstestnet", + chainId: 10947, + networkId: 10947, + explorers: [ + { + name: "explorer", + url: "https://explorer.testnet.quadrans.io", + icon: "quadrans", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "quadrans-blockchain-testnet", + }, + JOt = { + name: "Astra", + chain: "Astra", + rpc: [ + "https://astra.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.astranaut.io", + "https://rpc1.astranaut.io", + ], + faucets: [], + nativeCurrency: { name: "Astra", symbol: "ASA", decimals: 18 }, + infoURL: "https://astranaut.io", + shortName: "astra", + chainId: 11110, + networkId: 11110, + icon: { + url: "ipfs://QmaBtaukPNNUNjdJSUAwuFFQMLbZX1Pc3fvXKTKQcds7Kf", + width: 104, + height: 80, + format: "png", + }, + explorers: [ + { + name: "Astra EVM Explorer (Blockscout)", + url: "https://explorer.astranaut.io", + standard: "none", + icon: "astra", + }, + { + name: "Astra PingPub Explorer", + url: "https://ping.astranaut.io/astra", + standard: "none", + icon: "astra", + }, + ], + testnet: !1, + slug: "astra", + }, + ZOt = { + name: "WAGMI", + chain: "WAGMI", + icon: { + url: "ipfs://QmNoyUXxnak8B3xgFxErkVfyVEPJUMHBzq7qJcYzkUrPR4", + width: 1920, + height: 1920, + format: "png", + }, + rpc: [ + "https://wagmi.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://subnets.avax.network/wagmi/wagmi-chain-testnet/rpc", + ], + faucets: ["https://faucet.avax.network/?subnet=wagmi"], + nativeCurrency: { name: "WAGMI", symbol: "WGM", decimals: 18 }, + infoURL: "https://subnets-test.avax.network/wagmi/details", + shortName: "WAGMI", + chainId: 11111, + networkId: 11111, + explorers: [ + { + name: "Avalanche Subnet Explorer", + url: "https://subnets-test.avax.network/wagmi", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "wagmi", + }, + QOt = { + name: "Astra Testnet", + chain: "Astra", + rpc: [ + "https://astra-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.astranaut.dev", + ], + faucets: ["https://faucet.astranaut.dev"], + nativeCurrency: { name: "test-Astra", symbol: "tASA", decimals: 18 }, + infoURL: "https://astranaut.io", + shortName: "astra-testnet", + chainId: 11115, + networkId: 11115, + icon: { + url: "ipfs://QmaBtaukPNNUNjdJSUAwuFFQMLbZX1Pc3fvXKTKQcds7Kf", + width: 104, + height: 80, + format: "png", + }, + explorers: [ + { + name: "Astra EVM Explorer", + url: "https://explorer.astranaut.dev", + standard: "EIP3091", + icon: "astra", + }, + { + name: "Astra PingPub Explorer", + url: "https://ping.astranaut.dev/astra", + standard: "none", + icon: "astra", + }, + ], + testnet: !0, + slug: "astra-testnet", + }, + XOt = { + name: "Haqq Network", + chain: "Haqq", + rpc: [ + "https://haqq-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.eth.haqq.network", + ], + faucets: [], + nativeCurrency: { name: "Islamic Coin", symbol: "ISLM", decimals: 18 }, + infoURL: "https://islamiccoin.net", + shortName: "ISLM", + chainId: 11235, + networkId: 11235, + explorers: [ + { + name: "Mainnet HAQQ Explorer", + url: "https://explorer.haqq.network", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "haqq-network", + }, + eLt = { + name: "Shyft Testnet", + chain: "SHYFTT", + icon: { + url: "ipfs://QmUkFZC2ZmoYPTKf7AHdjwRPZoV2h1MCuHaGM4iu8SNFpi", + width: 400, + height: 400, + format: "svg", + }, + rpc: [], + faucets: [], + nativeCurrency: { + name: "Shyft Test Token", + symbol: "SHYFTT", + decimals: 18, + }, + infoURL: "https://shyft.network", + shortName: "shyftt", + chainId: 11437, + networkId: 11437, + explorers: [ + { + name: "Shyft Testnet BX", + url: "https://bx.testnet.shyft.network", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "shyft-testnet", + }, + tLt = { + name: "Sardis Testnet", + chain: "SRDX", + icon: { + url: "ipfs://QmdR9QJjQEh1mBnf2WbJfehverxiP5RDPWMtEECbDP2rc3", + width: 512, + height: 512, + format: "png", + }, + rpc: [ + "https://sardis-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://testnet-rpc.sardisnetwork.com", + ], + faucets: ["https://faucet.sardisnetwork.com"], + nativeCurrency: { name: "Sardis", symbol: "SRDX", decimals: 18 }, + infoURL: "https://mysardis.com", + shortName: "SRDXt", + chainId: 11612, + networkId: 11612, + explorers: [ + { + name: "Sardis", + url: "https://testnet.sardisnetwork.com", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "sardis-testnet", + }, + rLt = { + name: "SanR Chain", + chain: "SanRChain", + rpc: [ + "https://sanr-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://sanrchain-node.santiment.net", + ], + faucets: [], + nativeCurrency: { name: "nSAN", symbol: "nSAN", decimals: 18 }, + infoURL: "https://sanr.app", + shortName: "SAN", + chainId: 11888, + networkId: 11888, + icon: { + url: "ipfs://QmPLMg5mYD8XRknvYbDkD2x7FXxYan7MPTeUWZC2CihwDM", + width: 2048, + height: 2048, + format: "png", + }, + parent: { + chain: "eip155-1", + type: "L2", + bridges: [{ url: "https://sanr.app" }], + }, + explorers: [ + { + name: "SanR Chain Explorer", + url: "https://sanrchain-explorer.santiment.net", + standard: "none", + }, + ], + testnet: !1, + slug: "sanr-chain", + }, + nLt = { + name: "Singularity ZERO Testnet", + chain: "ZERO", + rpc: [ + "https://singularity-zero-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://betaenv.singularity.gold:18545", + ], + faucets: ["https://nft.singularity.gold"], + nativeCurrency: { name: "ZERO", symbol: "tZERO", decimals: 18 }, + infoURL: "https://www.singularity.gold", + shortName: "tZERO", + chainId: 12051, + networkId: 12051, + explorers: [ + { + name: "zeroscan", + url: "https://betaenv.singularity.gold:18002", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "singularity-zero-testnet", + }, + aLt = { + name: "Singularity ZERO Mainnet", + chain: "ZERO", + rpc: [ + "https://singularity-zero.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://zerorpc.singularity.gold", + ], + faucets: ["https://zeroscan.singularity.gold"], + nativeCurrency: { name: "ZERO", symbol: "ZERO", decimals: 18 }, + infoURL: "https://www.singularity.gold", + shortName: "ZERO", + chainId: 12052, + networkId: 12052, + slip44: 621, + explorers: [ + { + name: "zeroscan", + url: "https://zeroscan.singularity.gold", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "singularity-zero", + }, + iLt = { + name: "BLG Testnet", + chain: "BLG", + icon: { + url: "ipfs://QmUN5j2cre8GHKv52JE8ag88aAnRmuHMGFxePPvKMogisC", + width: 512, + height: 512, + format: "svg", + }, + rpc: [ + "https://blg-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.blgchain.com", + ], + faucets: ["https://faucet.blgchain.com"], + nativeCurrency: { name: "Blg", symbol: "BLG", decimals: 18 }, + infoURL: "https://blgchain.com", + shortName: "blgchain", + chainId: 12321, + networkId: 12321, + testnet: !0, + slug: "blg-testnet", + }, + sLt = { + name: "Step Testnet", + title: "Step Test Network", + chain: "STEP", + icon: { + url: "ipfs://QmVp9jyb3UFW71867yVtymmiRw7dPY4BTnsp3hEjr9tn8L", + width: 512, + height: 512, + format: "png", + }, + rpc: [ + "https://step-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.testnet.step.network", + ], + faucets: ["https://faucet.step.network"], + nativeCurrency: { name: "FITFI", symbol: "FITFI", decimals: 18 }, + infoURL: "https://step.network", + shortName: "steptest", + chainId: 12345, + networkId: 12345, + explorers: [ + { + name: "StepScan", + url: "https://testnet.stepscan.io", + icon: "step", + standard: "EIP3091", + }, + ], + parent: { type: "L2", chain: "eip155-43113" }, + testnet: !0, + slug: "step-testnet", + }, + oLt = { + name: "SPS", + chain: "SPS", + rpc: [ + "https://sps.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.ssquad.games", + ], + faucets: [], + nativeCurrency: { name: "ECG", symbol: "ECG", decimals: 18 }, + infoURL: "https://ssquad.games/", + shortName: "SPS", + chainId: 13e3, + networkId: 13e3, + explorers: [ + { + name: "SPS Explorer", + url: "http://spsscan.ssquad.games", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "sps", + }, + cLt = { + name: "Credit Smartchain Mainnet", + chain: "CREDIT", + rpc: [ + "https://credit-smartchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://mainnet-rpc.cscscan.io", + ], + faucets: [], + nativeCurrency: { name: "Credit", symbol: "CREDIT", decimals: 18 }, + features: [{ name: "EIP155" }, { name: "EIP1559" }], + infoURL: "https://creditsmartchain.com", + shortName: "Credit", + chainId: 13308, + networkId: 1, + icon: { + url: "ipfs://bafkreifbso3gd4wu5wxl27xyurxctmuae2jyuy37guqtzx23nga6ba4ag4", + width: 1e3, + height: 1628, + format: "png", + }, + explorers: [ + { + name: "CSC Scan", + url: "https://explorer.cscscan.io", + icon: "credit", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "credit-smartchain", + }, + uLt = { + name: "Phoenix Mainnet", + chain: "Phoenix", + rpc: [ + "https://phoenix.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.phoenixplorer.com/", + ], + faucets: [], + nativeCurrency: { name: "Phoenix", symbol: "PHX", decimals: 18 }, + infoURL: "https://cryptophoenix.org/phoenix", + shortName: "Phoenix", + chainId: 13381, + networkId: 13381, + icon: { + url: "ipfs://QmYiLMeKDXMSNuQmtxNdxm53xR588pcRXMf7zuiZLjQnc6", + width: 1501, + height: 1501, + format: "png", + }, + explorers: [ + { + name: "phoenixplorer", + url: "https://phoenixplorer.com", + icon: "phoenixplorer", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "phoenix", + }, + lLt = { + name: "Susono", + chain: "SUS", + rpc: [ + "https://susono.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://gateway.opn.network/node/ext/bc/2VsZe5DstWw2bfgdx3YbjKcMsJnNDjni95sZorBEdk9L9Qr9Fr/rpc", + ], + faucets: [], + nativeCurrency: { name: "Susono", symbol: "OPN", decimals: 18 }, + infoURL: "", + shortName: "sus", + chainId: 13812, + networkId: 13812, + explorers: [ + { + name: "Susono", + url: "http://explorer.opn.network", + standard: "none", + }, + ], + testnet: !1, + slug: "susono", + }, + dLt = { + name: "SPS Testnet", + chain: "SPS-Testnet", + rpc: [ + "https://sps-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://www.3sps.net", + ], + faucets: [], + nativeCurrency: { name: "ECG", symbol: "ECG", decimals: 18 }, + infoURL: "https://ssquad.games/", + shortName: "SPS-Test", + chainId: 14e3, + networkId: 14e3, + explorers: [ + { + name: "SPS Test Explorer", + url: "https://explorer.3sps.net", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "sps-testnet", + }, + pLt = { + name: "Trust EVM Testnet", + chain: "Trust EVM Testnet", + rpc: [ + "https://trust-evm-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://api.testnet-dev.trust.one", + ], + faucets: ["https://faucet.testnet-dev.trust.one/"], + nativeCurrency: { name: "Trust EVM", symbol: "EVM", decimals: 18 }, + infoURL: "https://www.trust.one/", + shortName: "TrustTestnet", + chainId: 15555, + networkId: 15555, + explorers: [ + { + name: "Trust EVM Explorer", + url: "https://trustscan.one", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "trust-evm-testnet", + }, + hLt = { + name: "MetaDot Mainnet", + chain: "MTT", + rpc: [ + "https://metadot.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://mainnet.metadot.network", + ], + faucets: [], + nativeCurrency: { name: "MetaDot Token", symbol: "MTT", decimals: 18 }, + infoURL: "https://metadot.network", + shortName: "mtt", + chainId: 16e3, + networkId: 16e3, + testnet: !1, + slug: "metadot", + }, + fLt = { + name: "MetaDot Testnet", + chain: "MTTTest", + rpc: [ + "https://metadot-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://testnet.metadot.network", + ], + faucets: ["https://faucet.metadot.network/"], + nativeCurrency: { + name: "MetaDot Token TestNet", + symbol: "MTTest", + decimals: 18, + }, + infoURL: "https://metadot.network", + shortName: "mtttest", + chainId: 16001, + networkId: 16001, + testnet: !0, + slug: "metadot-testnet", + }, + mLt = { + name: "AirDAO Mainnet", + chain: "ambnet", + icon: { + url: "ipfs://QmSxXjvWng3Diz4YwXDV2VqSPgMyzLYBNfkjJcr7rzkxom", + width: 400, + height: 400, + format: "png", + }, + rpc: [ + "https://airdao.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://network.ambrosus.io", + ], + faucets: [], + nativeCurrency: { name: "Amber", symbol: "AMB", decimals: 18 }, + infoURL: "https://airdao.io", + shortName: "airdao", + chainId: 16718, + networkId: 16718, + explorers: [ + { + name: "AirDAO Network Explorer", + url: "https://airdao.io/explorer", + standard: "none", + }, + ], + testnet: !1, + slug: "airdao", + }, + yLt = { + name: "IVAR Chain Testnet", + chain: "IVAR", + icon: { + url: "ipfs://QmV8UmSwqGF2fxrqVEBTHbkyZueahqyYtkfH2RBF5pNysM", + width: 519, + height: 519, + format: "svg", + }, + rpc: [ + "https://ivar-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://testnet-rpc.ivarex.com", + ], + faucets: ["https://tfaucet.ivarex.com/"], + nativeCurrency: { name: "tIvar", symbol: "tIVAR", decimals: 18 }, + infoURL: "https://ivarex.com", + shortName: "tivar", + chainId: 16888, + networkId: 16888, + explorers: [ + { + name: "ivarscan", + url: "https://testnet.ivarscan.com", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "ivar-chain-testnet", + }, + gLt = { + name: "Frontier of Dreams Testnet", + chain: "Game Network", + rpc: [ + "https://frontier-of-dreams-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.fod.games/", + ], + nativeCurrency: { name: "ZKST", symbol: "ZKST", decimals: 18 }, + faucets: [], + shortName: "ZKST", + chainId: 18e3, + networkId: 18e3, + infoURL: "https://goexosphere.com", + explorers: [ + { + name: "Game Network", + url: "https://explorer.fod.games", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "frontier-of-dreams-testnet", + }, + bLt = { + name: "Proof Of Memes", + title: "Proof Of Memes Mainnet", + chain: "POM", + icon: { + url: "ipfs://QmePhfibWz9jnGUqF9Rven4x734br1h3LxrChYTEjbbQvo", + width: 256, + height: 256, + format: "png", + }, + rpc: [ + "https://proof-of-memes.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://mainnet-rpc.memescan.io", + "https://mainnet-rpc2.memescan.io", + "https://mainnet-rpc3.memescan.io", + "https://mainnet-rpc4.memescan.io", + ], + faucets: [], + nativeCurrency: { name: "Proof Of Memes", symbol: "POM", decimals: 18 }, + infoURL: "https://proofofmemes.org", + shortName: "pom", + chainId: 18159, + networkId: 18159, + explorers: [ + { + name: "explorer-proofofmemes", + url: "https://memescan.io", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "proof-of-memes", + }, + vLt = { + name: "HOME Verse Mainnet", + chain: "HOME Verse", + icon: { + url: "ipfs://QmeGb65zSworzoHmwK3jdkPtEsQZMUSJRxf8K8Feg56soU", + width: 597, + height: 597, + format: "png", + }, + rpc: [ + "https://home-verse.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.mainnet.oasys.homeverse.games/", + ], + faucets: [], + nativeCurrency: { name: "OAS", symbol: "OAS", decimals: 18 }, + infoURL: "https://www.homeverse.games/", + shortName: "HMV", + chainId: 19011, + networkId: 19011, + explorers: [ + { + name: "HOME Verse Explorer", + url: "https://explorer.oasys.homeverse.games", + standard: "EIP3091", + }, + ], + parent: { type: "L2", chain: "eip155-248" }, + testnet: !1, + slug: "home-verse", + }, + wLt = { + name: "BTCIX Network", + chain: "BTCIX", + rpc: [ + "https://btcix-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://seed.btcix.org/rpc", + ], + faucets: [], + nativeCurrency: { + name: "BTCIX Network", + symbol: "BTCIX", + decimals: 18, + }, + infoURL: "https://bitcolojix.org", + shortName: "btcix", + chainId: 19845, + networkId: 19845, + explorers: [ + { name: "BTCIXScan", url: "https://btcixscan.com", standard: "none" }, + ], + testnet: !1, + slug: "btcix-network", + }, + _Lt = { + name: "Callisto Testnet", + chain: "CLO", + rpc: [ + "https://callisto-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://testnet-rpc.callisto.network/", + ], + faucets: ["https://faucet.callisto.network/"], + nativeCurrency: { name: "Callisto", symbol: "CLO", decimals: 18 }, + infoURL: "https://callisto.network", + shortName: "CLOTestnet", + chainId: 20729, + networkId: 79, + testnet: !0, + slug: "callisto-testnet", + }, + xLt = { + name: "P12 Chain", + chain: "P12", + icon: { + url: "ipfs://bafkreieiro4imoujeewc4r4thf5hxj47l56j2iwuz6d6pdj6ieb6ub3h7e", + width: 512, + height: 512, + format: "png", + }, + rpc: [ + "https://p12-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc-chain.p12.games", + ], + faucets: [], + nativeCurrency: { name: "Hooked P2", symbol: "hP2", decimals: 18 }, + infoURL: "https://p12.network", + features: [{ name: "EIP155" }, { name: "EIP1559" }], + shortName: "p12", + chainId: 20736, + networkId: 20736, + explorers: [ + { + name: "P12 Chain Explorer", + url: "https://explorer.p12.games", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "p12-chain", + }, + TLt = { + name: "CENNZnet Azalea", + chain: "CENNZnet", + rpc: [ + "https://cennznet-azalea.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://cennznet.unfrastructure.io/public", + ], + faucets: [], + nativeCurrency: { name: "CPAY", symbol: "CPAY", decimals: 18 }, + infoURL: "https://cennz.net", + shortName: "cennz-a", + chainId: 21337, + networkId: 21337, + icon: { + url: "ipfs://QmWhNm7tTi6SYbiumULDRk956hxgqaZSX77vcxBNn8fvnw", + width: 112, + height: 112, + format: "svg", + }, + explorers: [ + { + name: "UNcover", + url: "https://uncoverexplorer.com", + standard: "none", + }, + ], + testnet: !1, + slug: "cennznet-azalea", + }, + ELt = { + name: "omChain Mainnet", + chain: "OML", + icon: { + url: "ipfs://QmQtEHaejiDbmiCvbBYw9jNQv3DLK5XHCQwLRfnLNpdN5j", + width: 256, + height: 256, + format: "png", + }, + rpc: [ + "https://omchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://seed.omchain.io", + ], + faucets: [], + nativeCurrency: { name: "omChain", symbol: "OMC", decimals: 18 }, + infoURL: "https://omchain.io", + shortName: "omc", + chainId: 21816, + networkId: 21816, + explorers: [ + { + name: "omChain Explorer", + url: "https://explorer.omchain.io", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "omchain", + }, + CLt = { + name: "Taycan", + chain: "Taycan", + rpc: [ + "https://taycan.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://taycan-rpc.hupayx.io:8545", + ], + faucets: [], + nativeCurrency: { name: "shuffle", symbol: "SFL", decimals: 18 }, + infoURL: "https://hupayx.io", + shortName: "SFL", + chainId: 22023, + networkId: 22023, + icon: { + url: "ipfs://bafkreidvjcc73v747lqlyrhgbnkvkdepdvepo6baj6hmjsmjtvdyhmzzmq", + width: 1e3, + height: 1206, + format: "png", + }, + explorers: [ + { + name: "Taycan Explorer(Blockscout)", + url: "https://taycan-evmscan.hupayx.io", + standard: "none", + icon: "shuffle", + }, + { + name: "Taycan Cosmos Explorer(BigDipper)", + url: "https://taycan-cosmoscan.hupayx.io", + standard: "none", + icon: "shuffle", + }, + ], + testnet: !1, + slug: "taycan", + }, + ILt = { + name: "AirDAO Testnet", + chain: "ambnet-test", + icon: { + url: "ipfs://QmSxXjvWng3Diz4YwXDV2VqSPgMyzLYBNfkjJcr7rzkxom", + width: 400, + height: 400, + format: "png", + }, + rpc: [ + "https://airdao-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://network.ambrosus-test.io", + ], + faucets: [], + nativeCurrency: { name: "Amber", symbol: "AMB", decimals: 18 }, + infoURL: "https://testnet.airdao.io", + shortName: "airdao-test", + chainId: 22040, + networkId: 22040, + explorers: [ + { + name: "AirDAO Network Explorer", + url: "https://testnet.airdao.io/explorer", + standard: "none", + }, + ], + testnet: !0, + slug: "airdao-testnet", + }, + ALt = { + name: "MAP Mainnet", + chain: "MAP", + icon: { + url: "ipfs://QmcLdQ8gM4iHv3CCKA9HuxmzTxY4WhjWtepUVCc3dpzKxD", + width: 512, + height: 512, + format: "png", + }, + rpc: [ + "https://map.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.maplabs.io", + ], + faucets: [], + nativeCurrency: { name: "MAP", symbol: "MAP", decimals: 18 }, + infoURL: "https://maplabs.io", + shortName: "map", + chainId: 22776, + networkId: 22776, + slip44: 60, + explorers: [ + { name: "mapscan", url: "https://mapscan.io", standard: "EIP3091" }, + ], + testnet: !1, + slug: "map", + }, + kLt = { + name: "Opside Testnet", + chain: "Opside", + rpc: [ + "https://opside-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://testrpc.opside.network", + ], + faucets: ["https://faucet.opside.network"], + nativeCurrency: { name: "IDE", symbol: "IDE", decimals: 18 }, + infoURL: "https://opside.network", + shortName: "opside", + chainId: 23118, + networkId: 23118, + icon: { + url: "ipfs://QmeCyZeibUoHNoYGzy1GkzH2uhxyRHKvH51PdaUMer4VTo", + width: 591, + height: 591, + format: "png", + }, + explorers: [ + { + name: "opsideInfo", + url: "https://opside.info", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "opside-testnet", + }, + SLt = { + name: "Oasis Sapphire", + chain: "Sapphire", + icon: { + url: "ipfs://bafkreiespupb52akiwrexxg7g72mh7m7h7lum5hmqijmpdh3kmuunzclha", + width: 2e3, + height: 2e3, + format: "png", + }, + rpc: [ + "https://oasis-sapphire.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://sapphire.oasis.io", + "wss://sapphire.oasis.io/ws", + ], + faucets: [], + nativeCurrency: { name: "Sapphire Rose", symbol: "ROSE", decimals: 18 }, + infoURL: "https://docs.oasis.io/dapp/sapphire", + shortName: "sapphire", + chainId: 23294, + networkId: 23294, + explorers: [ + { + name: "Oasis Sapphire Explorer", + url: "https://explorer.sapphire.oasis.io", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "oasis-sapphire", + }, + MLt = { + name: "Oasis Sapphire Testnet", + chain: "Sapphire", + icon: { + url: "ipfs://bafkreiespupb52akiwrexxg7g72mh7m7h7lum5hmqijmpdh3kmuunzclha", + width: 2e3, + height: 2e3, + format: "png", + }, + rpc: [ + "https://oasis-sapphire-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://testnet.sapphire.oasis.dev", + "wss://testnet.sapphire.oasis.dev/ws", + ], + faucets: [], + nativeCurrency: { + name: "Sapphire Test Rose", + symbol: "TEST", + decimals: 18, + }, + infoURL: "https://docs.oasis.io/dapp/sapphire", + shortName: "sapphire-testnet", + chainId: 23295, + networkId: 23295, + explorers: [ + { + name: "Oasis Sapphire Testnet Explorer", + url: "https://testnet.explorer.sapphire.oasis.dev", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "oasis-sapphire-testnet", + }, + PLt = { + name: "Webchain", + chain: "WEB", + rpc: [], + faucets: [], + nativeCurrency: { name: "Webchain Ether", symbol: "WEB", decimals: 18 }, + infoURL: "https://webchain.network", + shortName: "web", + chainId: 24484, + networkId: 37129, + slip44: 227, + testnet: !1, + slug: "webchain", + }, + RLt = { + name: "MintMe.com Coin", + chain: "MINTME", + rpc: [ + "https://mintme-com-coin.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://node1.mintme.com", + ], + faucets: [], + nativeCurrency: { + name: "MintMe.com Coin", + symbol: "MINTME", + decimals: 18, + }, + infoURL: "https://www.mintme.com", + shortName: "mintme", + chainId: 24734, + networkId: 37480, + testnet: !1, + slug: "mintme-com-coin", + }, + BLt = { + name: "Hammer Chain Mainnet", + chain: "HammerChain", + rpc: [ + "https://hammer-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://www.hammerchain.io/rpc", + ], + faucets: [], + nativeCurrency: { name: "GOLDT", symbol: "GOLDT", decimals: 18 }, + infoURL: "https://www.hammerchain.io", + shortName: "GOLDT", + chainId: 25888, + networkId: 25888, + explorers: [ + { + name: "Hammer Chain Explorer", + url: "https://www.hammerchain.io", + standard: "none", + }, + ], + testnet: !1, + slug: "hammer-chain", + }, + NLt = { + name: "Bitkub Chain Testnet", + chain: "BKC", + icon: { + url: "ipfs://QmYFYwyquipwc9gURQGcEd4iAq7pq15chQrJ3zJJe9HuFT", + width: 1e3, + height: 1e3, + format: "png", + }, + rpc: [ + "https://bitkub-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc-testnet.bitkubchain.io", + "wss://wss-testnet.bitkubchain.io", + ], + faucets: ["https://faucet.bitkubchain.com"], + nativeCurrency: { name: "Bitkub Coin", symbol: "tKUB", decimals: 18 }, + infoURL: "https://www.bitkubchain.com/", + shortName: "bkct", + chainId: 25925, + networkId: 25925, + explorers: [ + { + name: "bkcscan-testnet", + url: "https://testnet.bkcscan.com", + standard: "none", + icon: "bkc", + }, + ], + testnet: !0, + slug: "bitkub-chain-testnet", + }, + OLt = { + name: "Hertz Network Mainnet", + chain: "HTZ", + rpc: [ + "https://hertz-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://mainnet-rpc.hertzscan.com", + ], + faucets: [], + nativeCurrency: { name: "Hertz", symbol: "HTZ", decimals: 18 }, + features: [{ name: "EIP155" }, { name: "EIP1559" }], + infoURL: "https://www.hertz-network.com", + shortName: "HTZ", + chainId: 26600, + networkId: 26600, + icon: { + url: "ipfs://Qmf3GYbPXmTDpSP6t7Ug2j5HjEwrY5oGhBDP7d4TQHvGnG", + width: 162, + height: 129, + format: "png", + }, + explorers: [ + { + name: "Hertz Scan", + url: "https://hertzscan.com", + icon: "hertz-network", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "hertz-network", + }, + LLt = { + name: "OasisChain Mainnet", + chain: "OasisChain", + rpc: [ + "https://oasischain.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc1.oasischain.io", + "https://rpc2.oasischain.io", + "https://rpc3.oasischain.io", + ], + faucets: ["http://faucet.oasischain.io"], + nativeCurrency: { name: "OAC", symbol: "OAC", decimals: 18 }, + infoURL: "https://scan.oasischain.io", + shortName: "OAC", + chainId: 26863, + networkId: 26863, + explorers: [ + { + name: "OasisChain Explorer", + url: "https://scan.oasischain.io", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "oasischain", + }, + DLt = { + name: "Optimism Bedrock (Goerli Alpha Testnet)", + chain: "ETH", + rpc: [ + "https://optimism-bedrock-goerli-alpha-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://alpha-1-replica-0.bedrock-goerli.optimism.io", + "https://alpha-1-replica-1.bedrock-goerli.optimism.io", + "https://alpha-1-replica-2.bedrock-goerli.optimism.io", + ], + faucets: [], + nativeCurrency: { name: "Goerli Ether", symbol: "ETH", decimals: 18 }, + infoURL: "https://community.optimism.io/docs/developers/bedrock", + shortName: "obgor", + chainId: 28528, + networkId: 28528, + explorers: [ + { + name: "blockscout", + url: "https://blockscout.com/optimism/bedrock-alpha", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "optimism-bedrock-goerli-alpha-testnet", + }, + qLt = { + name: "Piece testnet", + chain: "PieceNetwork", + icon: { + url: "ipfs://QmWAU39z1kcYshAqkENRH8qUjfR5CJehCxA4GiC33p3HpH", + width: 800, + height: 800, + format: "png", + }, + rpc: [ + "https://piece-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://testnet-rpc0.piecenetwork.com", + ], + faucets: ["https://piecenetwork.com/faucet"], + nativeCurrency: { name: "ECE", symbol: "ECE", decimals: 18 }, + infoURL: "https://piecenetwork.com", + shortName: "Piece", + chainId: 30067, + networkId: 30067, + explorers: [ + { + name: "Piece Scan", + url: "https://testnet-scan.piecenetwork.com", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "piece-testnet", + }, + FLt = { + name: "Ethersocial Network", + chain: "ESN", + rpc: [ + "https://ethersocial-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://api.esn.gonspool.com", + ], + faucets: [], + nativeCurrency: { + name: "Ethersocial Network Ether", + symbol: "ESN", + decimals: 18, + }, + infoURL: "https://ethersocial.org", + shortName: "esn", + chainId: 31102, + networkId: 1, + slip44: 31102, + testnet: !1, + slug: "ethersocial-network", + }, + WLt = { + name: "CloudTx Mainnet", + chain: "CLD", + icon: { + url: "ipfs://QmSEsi71AdA5HYH6VNC5QUQezFg1C7BiVQJdx1VVfGz3g3", + width: 713, + height: 830, + format: "png", + }, + rpc: [ + "https://cloudtx.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://mainnet-rpc.cloudtx.finance", + ], + faucets: [], + nativeCurrency: { name: "CloudTx", symbol: "CLD", decimals: 18 }, + infoURL: "https://cloudtx.finance", + shortName: "CLDTX", + chainId: 31223, + networkId: 31223, + explorers: [ + { + name: "cloudtxscan", + url: "https://scan.cloudtx.finance", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "cloudtx", + }, + ULt = { + name: "CloudTx Testnet", + chain: "CloudTx", + icon: { + url: "ipfs://QmSEsi71AdA5HYH6VNC5QUQezFg1C7BiVQJdx1VVfGz3g3", + width: 713, + height: 830, + format: "png", + }, + rpc: [ + "https://cloudtx-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://testnet-rpc.cloudtx.finance", + ], + faucets: ["https://faucet.cloudtx.finance"], + nativeCurrency: { name: "CloudTx", symbol: "CLD", decimals: 18 }, + infoURL: "https://cloudtx.finance/", + shortName: "CLD", + chainId: 31224, + networkId: 31224, + explorers: [ + { + name: "cloudtxexplorer", + url: "https://explorer.cloudtx.finance", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "cloudtx-testnet", + }, + HLt = { + name: "GoChain Testnet", + chain: "GO", + rpc: [ + "https://gochain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://testnet-rpc.gochain.io", + ], + faucets: [], + nativeCurrency: { name: "GoChain Coin", symbol: "GO", decimals: 18 }, + infoURL: "https://gochain.io", + shortName: "got", + chainId: 31337, + networkId: 31337, + slip44: 6060, + explorers: [ + { + name: "GoChain Testnet Explorer", + url: "https://testnet-explorer.gochain.io", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "gochain-testnet", + }, + zLt = { + name: "Filecoin - Wallaby testnet", + chain: "FIL", + icon: { + url: "ipfs://QmS9r9XQkMHVomWcSBNDkKkz9n87h9bH9ssabeiKZtANoU", + width: 1e3, + height: 1e3, + format: "png", + }, + rpc: [ + "https://filecoin-wallaby-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://wallaby.node.glif.io/rpc/v1", + ], + faucets: ["https://wallaby.yoga/#faucet"], + nativeCurrency: { + name: "testnet filecoin", + symbol: "tFIL", + decimals: 18, + }, + infoURL: "https://filecoin.io", + shortName: "filecoin-wallaby", + chainId: 31415, + networkId: 31415, + slip44: 1, + explorers: [], + testnet: !0, + slug: "filecoin-wallaby-testnet", + }, + jLt = { + name: "Bitgert Mainnet", + chain: "Brise", + rpc: [ + "https://bitgert.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.icecreamswap.com", + "https://mainnet-rpc.brisescan.com", + "https://chainrpc.com", + "https://serverrpc.com", + ], + faucets: [], + nativeCurrency: { + name: "Bitrise Token", + symbol: "Brise", + decimals: 18, + }, + infoURL: "https://bitgert.com/", + shortName: "Brise", + chainId: 32520, + networkId: 32520, + icon: { + url: "ipfs://QmY3vKe1rG9AyHSGH1ouP3ER3EVUZRtRrFbFZEfEpMSd4V", + width: 512, + height: 512, + format: "png", + }, + explorers: [ + { + name: "Brise Scan", + url: "https://brisescan.com", + icon: "brise", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "bitgert", + }, + KLt = { + name: "Fusion Mainnet", + chain: "FSN", + icon: { + url: "ipfs://QmX3tsEoj7SdaBLLV8VyyCUAmymdEGiSGeuTbxMrEMVvth", + width: 31, + height: 31, + format: "svg", + }, + rpc: [ + "https://fusion.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://mainnet.fusionnetwork.io", + "wss://mainnet.fusionnetwork.io", + ], + features: [{ name: "EIP155" }, { name: "EIP1559" }], + faucets: [], + nativeCurrency: { name: "Fusion", symbol: "FSN", decimals: 18 }, + infoURL: "https://fusion.org", + shortName: "fsn", + chainId: 32659, + networkId: 32659, + slip44: 288, + explorers: [ + { + name: "fsnscan", + url: "https://fsnscan.com", + icon: "fsnscan", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "fusion", + }, + VLt = { + name: "Aves Mainnet", + chain: "AVS", + rpc: [ + "https://aves.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.avescoin.io", + ], + faucets: [], + nativeCurrency: { name: "Aves", symbol: "AVS", decimals: 18 }, + features: [{ name: "EIP155" }, { name: "EIP1559" }], + infoURL: "https://avescoin.io", + shortName: "avs", + chainId: 33333, + networkId: 33333, + icon: { + url: "ipfs://QmeKQVv2QneHaaggw2NfpZ7DGMdjVhPywTdse5RzCs4oGn", + width: 232, + height: 232, + format: "png", + }, + explorers: [ + { + name: "avescan", + url: "https://avescan.io", + icon: "avescan", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "aves", + }, + GLt = { + name: "J2O Taro", + chain: "TARO", + rpc: [ + "https://j2o-taro.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.j2o.io", + ], + features: [{ name: "EIP155" }, { name: "EIP1559" }], + faucets: [], + nativeCurrency: { name: "TARO Coin", symbol: "taro", decimals: 18 }, + infoURL: "https://j2o.io", + shortName: "j2o", + chainId: 35011, + networkId: 35011, + explorers: [ + { + name: "J2O Taro Explorer", + url: "https://exp.j2o.io", + icon: "j2otaro", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "j2o-taro", + }, + YLt = { + name: "Q Mainnet", + chain: "Q", + rpc: [ + "https://q.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.q.org", + ], + faucets: [], + nativeCurrency: { name: "Q token", symbol: "Q", decimals: 18 }, + infoURL: "https://q.org", + shortName: "q", + chainId: 35441, + networkId: 35441, + icon: { + url: "ipfs://QmQUQKe8VEtSthhgXnJ3EmEz94YhpVCpUDZAiU9KYyNLya", + width: 585, + height: 603, + format: "png", + }, + explorers: [ + { + name: "Q explorer", + url: "https://explorer.q.org", + icon: "q", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "q", + }, + $Lt = { + name: "Q Testnet", + chain: "Q", + rpc: [ + "https://q-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.qtestnet.org", + ], + faucets: [], + nativeCurrency: { name: "Q token", symbol: "Q", decimals: 18 }, + infoURL: "https://q.org/", + shortName: "q-testnet", + chainId: 35443, + networkId: 35443, + icon: { + url: "ipfs://QmQUQKe8VEtSthhgXnJ3EmEz94YhpVCpUDZAiU9KYyNLya", + width: 585, + height: 603, + format: "png", + }, + explorers: [ + { + name: "Q explorer", + url: "https://explorer.qtestnet.org", + icon: "q", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "q-testnet", + }, + JLt = { + name: "Energi Mainnet", + chain: "NRG", + rpc: [ + "https://energi.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://nodeapi.energi.network", + ], + faucets: [], + nativeCurrency: { name: "Energi", symbol: "NRG", decimals: 18 }, + infoURL: "https://www.energi.world/", + shortName: "nrg", + chainId: 39797, + networkId: 39797, + slip44: 39797, + testnet: !1, + slug: "energi", + }, + ZLt = { + name: "OHO Mainnet", + chain: "OHO", + rpc: [ + "https://oho.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://mainnet.oho.ai", + ], + faucets: [], + nativeCurrency: { name: "OHO", symbol: "OHO", decimals: 18 }, + infoURL: "https://oho.ai", + shortName: "oho", + chainId: 39815, + networkId: 39815, + icon: { + url: "ipfs://QmZt75xixnEtFzqHTrJa8kJkV4cTXmUZqeMeHM8BcvomQc", + width: 512, + height: 512, + format: "png", + }, + explorers: [ + { + name: "ohoscan", + url: "https://ohoscan.com", + icon: "ohoscan", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "oho", + }, + QLt = { + name: "Opulent-X BETA", + chainId: 41500, + shortName: "ox-beta", + chain: "Opulent-X", + networkId: 41500, + nativeCurrency: { name: "Oxyn Gas", symbol: "OXYN", decimals: 18 }, + rpc: [ + "https://opulent-x-beta.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://connect.opulent-x.com", + ], + faucets: [], + infoURL: "https://beta.opulent-x.com", + explorers: [ + { + name: "Opulent-X BETA Explorer", + url: "https://explorer.opulent-x.com", + standard: "none", + }, + ], + testnet: !1, + slug: "opulent-x-beta", + }, + XLt = { + name: "pegglecoin", + chain: "42069", + rpc: [], + faucets: [], + nativeCurrency: { name: "pegglecoin", symbol: "peggle", decimals: 18 }, + infoURL: "https://teampeggle.com", + shortName: "PC", + chainId: 42069, + networkId: 42069, + testnet: !1, + slug: "pegglecoin", + }, + eDt = { + name: "Arbitrum One", + chainId: 42161, + shortName: "arb1", + chain: "ETH", + networkId: 42161, + nativeCurrency: { name: "Ether", symbol: "ETH", decimals: 18 }, + rpc: [ + "https://arbitrum.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://arbitrum-mainnet.infura.io/v3/${INFURA_API_KEY}", + "https://arb-mainnet.g.alchemy.com/v2/${ALCHEMY_API_KEY}", + "https://arb1.arbitrum.io/rpc", + ], + faucets: [], + explorers: [ + { + name: "Arbitrum Explorer", + url: "https://explorer.arbitrum.io", + standard: "EIP3091", + }, + { name: "Arbiscan", url: "https://arbiscan.io", standard: "EIP3091" }, + ], + infoURL: "https://arbitrum.io", + parent: { + type: "L2", + chain: "eip155-1", + bridges: [{ url: "https://bridge.arbitrum.io" }], + }, + icon: { + url: "ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/arbitrum/512.png", + height: 512, + width: 512, + format: "png", + sizes: [512, 256, 128, 64, 32, 16], + }, + testnet: !1, + slug: "arbitrum", + }, + tDt = { + name: "Arbitrum Nova", + chainId: 42170, + shortName: "arb-nova", + chain: "ETH", + networkId: 42170, + nativeCurrency: { name: "Ether", symbol: "ETH", decimals: 18 }, + rpc: [ + "https://arbitrum-nova.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://nova.arbitrum.io/rpc", + ], + faucets: [], + explorers: [ + { + name: "Arbitrum Nova Chain Explorer", + url: "https://nova-explorer.arbitrum.io", + icon: "blockscout", + standard: "EIP3091", + }, + ], + infoURL: "https://arbitrum.io", + parent: { + type: "L2", + chain: "eip155-1", + bridges: [{ url: "https://bridge.arbitrum.io" }], + }, + testnet: !1, + slug: "arbitrum-nova", + }, + rDt = { + name: "Celo Mainnet", + chainId: 42220, + shortName: "celo", + chain: "CELO", + networkId: 42220, + nativeCurrency: { name: "CELO", symbol: "CELO", decimals: 18 }, + rpc: [ + "https://celo.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://forno.celo.org", + "wss://forno.celo.org/ws", + ], + faucets: ["https://free-online-app.com/faucet-for-eth-evm-chains/"], + infoURL: "https://docs.celo.org/", + explorers: [ + { name: "Celoscan", url: "https://celoscan.io", standard: "EIP3091" }, + { + name: "blockscout", + url: "https://explorer.celo.org", + standard: "none", + }, + ], + testnet: !1, + slug: "celo", + }, + nDt = { + name: "Oasis Emerald Testnet", + chain: "Emerald", + icon: { + url: "ipfs://bafkreiespupb52akiwrexxg7g72mh7m7h7lum5hmqijmpdh3kmuunzclha", + width: 2e3, + height: 2e3, + format: "png", + }, + rpc: [ + "https://oasis-emerald-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://testnet.emerald.oasis.dev/", + "wss://testnet.emerald.oasis.dev/ws", + ], + faucets: ["https://faucet.testnet.oasis.dev/"], + nativeCurrency: { name: "Emerald Rose", symbol: "ROSE", decimals: 18 }, + infoURL: "https://docs.oasis.io/dapp/emerald", + shortName: "emerald-testnet", + chainId: 42261, + networkId: 42261, + explorers: [ + { + name: "Oasis Emerald Testnet Explorer", + url: "https://testnet.explorer.emerald.oasis.dev", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "oasis-emerald-testnet", + }, + aDt = { + name: "Oasis Emerald", + chain: "Emerald", + icon: { + url: "ipfs://bafkreiespupb52akiwrexxg7g72mh7m7h7lum5hmqijmpdh3kmuunzclha", + width: 2e3, + height: 2e3, + format: "png", + }, + rpc: [ + "https://oasis-emerald.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://emerald.oasis.dev", + "wss://emerald.oasis.dev/ws", + ], + faucets: [], + nativeCurrency: { name: "Emerald Rose", symbol: "ROSE", decimals: 18 }, + infoURL: "https://docs.oasis.io/dapp/emerald", + shortName: "emerald", + chainId: 42262, + networkId: 42262, + explorers: [ + { + name: "Oasis Emerald Explorer", + url: "https://explorer.emerald.oasis.dev", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "oasis-emerald", + }, + iDt = { + name: "Athereum", + chain: "ATH", + rpc: [ + "https://athereum.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://ava.network:21015/ext/evm/rpc", + ], + faucets: ["http://athfaucet.ava.network//?address=${ADDRESS}"], + nativeCurrency: { name: "Athereum Ether", symbol: "ATH", decimals: 18 }, + infoURL: "https://athereum.ava.network", + shortName: "avaeth", + chainId: 43110, + networkId: 43110, + testnet: !1, + slug: "athereum", + }, + sDt = { + name: "Avalanche Fuji Testnet", + chain: "AVAX", + icon: { + url: "ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/avalanche/512.png", + height: 512, + width: 512, + format: "png", + sizes: [512, 256, 128, 64, 32, 16], + }, + rpc: [ + "https://avalanche-fuji.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://avalanche-fuji.infura.io/v3/${INFURA_API_KEY}", + "https://api.avax-test.network/ext/bc/C/rpc", + ], + faucets: ["https://faucet.avax-test.network/"], + nativeCurrency: { name: "Avalanche", symbol: "AVAX", decimals: 18 }, + infoURL: "https://cchain.explorer.avax-test.network", + shortName: "Fuji", + chainId: 43113, + networkId: 1, + explorers: [ + { + name: "snowtrace", + url: "https://testnet.snowtrace.io", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "avalanche-fuji", + }, + oDt = { + name: "Avalanche C-Chain", + chain: "AVAX", + icon: { + url: "ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/avalanche/512.png", + height: 512, + width: 512, + format: "png", + sizes: [512, 256, 128, 64, 32, 16], + }, + rpc: [ + "https://avalanche.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://avalanche-mainnet.infura.io/v3/${INFURA_API_KEY}", + "https://api.avax.network/ext/bc/C/rpc", + ], + features: [{ name: "EIP1559" }], + faucets: ["https://free-online-app.com/faucet-for-eth-evm-chains/"], + nativeCurrency: { name: "Avalanche", symbol: "AVAX", decimals: 18 }, + infoURL: "https://www.avax.network/", + shortName: "avax", + chainId: 43114, + networkId: 43114, + slip44: 9005, + explorers: [ + { + name: "snowtrace", + url: "https://snowtrace.io", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "avalanche", + }, + cDt = { + name: "Boba Avax", + chain: "Boba Avax", + rpc: [ + "https://boba-avax.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://avax.boba.network", + "wss://wss.avax.boba.network", + "https://replica.avax.boba.network", + "wss://replica-wss.avax.boba.network", + ], + faucets: [], + nativeCurrency: { name: "Boba Token", symbol: "BOBA", decimals: 18 }, + infoURL: "https://docs.boba.network/for-developers/network-avalanche", + shortName: "bobaavax", + chainId: 43288, + networkId: 43288, + explorers: [ + { + name: "Boba Avax Explorer", + url: "https://blockexplorer.avax.boba.network", + standard: "none", + }, + ], + testnet: !1, + slug: "boba-avax", + }, + uDt = { + name: "Frenchain", + chain: "fren", + rpc: [ + "https://frenchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc-02.frenscan.io", + ], + faucets: [], + nativeCurrency: { name: "FREN", symbol: "FREN", decimals: 18 }, + infoURL: "https://frenchain.app", + shortName: "FREN", + chainId: 44444, + networkId: 44444, + icon: { + url: "ipfs://QmQk41bYX6WpYyUAdRgomZekxP5mbvZXhfxLEEqtatyJv4", + width: 128, + height: 128, + format: "png", + }, + explorers: [ + { + name: "blockscout", + url: "https://frenscan.io", + icon: "fren", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "frenchain", + }, + lDt = { + name: "Celo Alfajores Testnet", + chainId: 44787, + shortName: "ALFA", + chain: "CELO", + networkId: 44787, + nativeCurrency: { name: "CELO", symbol: "CELO", decimals: 18 }, + rpc: [ + "https://celo-alfajores-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://alfajores-forno.celo-testnet.org", + "wss://alfajores-forno.celo-testnet.org/ws", + ], + faucets: [ + "https://celo.org/developers/faucet", + "https://cauldron.pretoriaresearchlab.io/alfajores-faucet", + ], + infoURL: "https://docs.celo.org/", + explorers: [ + { name: "Celoscan", url: "https://celoscan.io", standard: "EIP3091" }, + ], + testnet: !0, + slug: "celo-alfajores-testnet", + }, + dDt = { + name: "Autobahn Network", + chain: "TXL", + rpc: [ + "https://autobahn-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.autobahn.network", + ], + faucets: [], + nativeCurrency: { name: "TXL", symbol: "TXL", decimals: 18 }, + infoURL: "https://autobahn.network", + shortName: "AutobahnNetwork", + chainId: 45e3, + networkId: 45e3, + icon: { + url: "ipfs://QmZP19pbqTco4vaP9siduLWP8pdYArFK3onfR55tvjr12s", + width: 489, + height: 489, + format: "png", + }, + explorers: [ + { + name: "autobahn explorer", + url: "https://explorer.autobahn.network", + icon: "autobahn", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "autobahn-network", + }, + pDt = { + name: "Fusion Testnet", + chain: "FSN", + icon: { + url: "ipfs://QmX3tsEoj7SdaBLLV8VyyCUAmymdEGiSGeuTbxMrEMVvth", + width: 31, + height: 31, + format: "svg", + }, + rpc: [ + "https://fusion-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://testnet.fusionnetwork.io", + "wss://testnet.fusionnetwork.io", + ], + features: [{ name: "EIP155" }, { name: "EIP1559" }], + faucets: [], + nativeCurrency: { + name: "Testnet Fusion", + symbol: "T-FSN", + decimals: 18, + }, + infoURL: "https://fusion.org", + shortName: "tfsn", + chainId: 46688, + networkId: 46688, + slip44: 288, + explorers: [ + { + name: "fsnscan", + url: "https://testnet.fsnscan.com", + icon: "fsnscan", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "fusion-testnet", + }, + hDt = { + name: "REI Network", + chain: "REI", + rpc: [ + "https://rei-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.rei.network", + "wss://rpc.rei.network", + ], + faucets: [], + nativeCurrency: { name: "REI", symbol: "REI", decimals: 18 }, + infoURL: "https://rei.network/", + shortName: "REI", + chainId: 47805, + networkId: 47805, + explorers: [ + { + name: "rei-scan", + url: "https://scan.rei.network", + standard: "none", + }, + ], + testnet: !1, + slug: "rei-network", + }, + fDt = { + name: "Floripa", + title: "Wireshape Testnet Floripa", + chain: "Wireshape", + rpc: [ + "https://floripa.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc-floripa.wireshape.org", + ], + faucets: [], + nativeCurrency: { name: "WIRE", symbol: "WIRE", decimals: 18 }, + infoURL: "https://wireshape.org", + shortName: "floripa", + chainId: 49049, + networkId: 49049, + explorers: [ + { + name: "Wire Explorer", + url: "https://floripa-explorer.wireshape.org", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "floripa", + }, + mDt = { + name: "Bifrost Testnet", + title: "The Bifrost Testnet network", + chain: "BFC", + rpc: [ + "https://bifrost-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://public-01.testnet.thebifrost.io/rpc", + "https://public-02.testnet.thebifrost.io/rpc", + ], + faucets: [], + nativeCurrency: { name: "Bifrost", symbol: "BFC", decimals: 18 }, + infoURL: "https://thebifrost.io", + shortName: "tbfc", + chainId: 49088, + networkId: 49088, + icon: { + url: "ipfs://QmcHvn2Wq91ULyEH5s3uHjosX285hUgyJHwggFJUd3L5uh", + width: 128, + height: 128, + format: "png", + }, + explorers: [ + { + name: "explorer-thebifrost", + url: "https://explorer.testnet.thebifrost.io", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "bifrost-testnet", + }, + yDt = { + name: "Energi Testnet", + chain: "NRG", + rpc: [ + "https://energi-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://nodeapi.test.energi.network", + ], + faucets: [], + nativeCurrency: { name: "Energi", symbol: "NRG", decimals: 18 }, + infoURL: "https://www.energi.world/", + shortName: "tnrg", + chainId: 49797, + networkId: 49797, + slip44: 49797, + testnet: !0, + slug: "energi-testnet", + }, + gDt = { + name: "Liveplex OracleEVM", + chain: "Liveplex OracleEVM Network", + rpc: [ + "https://liveplex-oracleevm.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.oracle.liveplex.io", + ], + faucets: [], + nativeCurrency: { name: "Ether", symbol: "ETH", decimals: 18 }, + infoURL: "", + shortName: "LOE", + chainId: 50001, + networkId: 50001, + explorers: [], + testnet: !1, + slug: "liveplex-oracleevm", + }, + bDt = { + name: "GTON Testnet", + chain: "GTON Testnet", + rpc: [ + "https://gton-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://testnet.gton.network/", + ], + faucets: [], + nativeCurrency: { name: "GCD", symbol: "GCD", decimals: 18 }, + infoURL: "https://gton.capital", + shortName: "tgton", + chainId: 50021, + networkId: 50021, + explorers: [ + { + name: "GTON Testnet Network Explorer", + url: "https://explorer.testnet.gton.network", + standard: "EIP3091", + }, + ], + parent: { type: "L2", chain: "eip155-3" }, + testnet: !0, + slug: "gton-testnet", + }, + vDt = { + name: "Sardis Mainnet", + chain: "SRDX", + icon: { + url: "ipfs://QmdR9QJjQEh1mBnf2WbJfehverxiP5RDPWMtEECbDP2rc3", + width: 512, + height: 512, + format: "png", + }, + rpc: [ + "https://sardis.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://mainnet-rpc.sardisnetwork.com", + ], + faucets: ["https://faucet.sardisnetwork.com"], + nativeCurrency: { name: "Sardis", symbol: "SRDX", decimals: 18 }, + infoURL: "https://mysardis.com", + shortName: "SRDXm", + chainId: 51712, + networkId: 51712, + explorers: [ + { + name: "Sardis", + url: "https://contract-mainnet.sardisnetwork.com", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "sardis", + }, + wDt = { + name: "DFK Chain", + chain: "DFK", + icon: { + url: "ipfs://QmQB48m15TzhUFrmu56QCRQjkrkgUaKfgCmKE8o3RzmuPJ", + width: 500, + height: 500, + format: "png", + }, + rpc: [ + "https://dfk-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://subnets.avax.network/defi-kingdoms/dfk-chain/rpc", + ], + faucets: [], + nativeCurrency: { name: "Jewel", symbol: "JEWEL", decimals: 18 }, + infoURL: "https://defikingdoms.com", + shortName: "DFK", + chainId: 53935, + networkId: 53935, + explorers: [ + { + name: "ethernal", + url: "https://explorer.dfkchain.com", + icon: "ethereum", + standard: "none", + }, + ], + testnet: !1, + slug: "dfk-chain", + }, + _Dt = { + name: "Haqq Chain Testnet", + chain: "TestEdge2", + rpc: [ + "https://haqq-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.eth.testedge2.haqq.network", + ], + faucets: ["https://testedge2.haqq.network"], + nativeCurrency: { name: "Islamic Coin", symbol: "ISLMT", decimals: 18 }, + infoURL: "https://islamiccoin.net", + shortName: "ISLMT", + chainId: 54211, + networkId: 54211, + explorers: [ + { + name: "TestEdge HAQQ Explorer", + url: "https://explorer.testedge2.haqq.network", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "haqq-chain-testnet", + }, + xDt = { + name: "REI Chain Mainnet", + chain: "REI", + icon: { + url: "ipfs://QmNy5d5knHVjJJS9g4kLsh9i73RTjckpKL6KZvRk6ptbhf", + width: 591, + height: 591, + format: "svg", + }, + rpc: [ + "https://rei-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rei-rpc.moonrhythm.io", + ], + faucets: ["http://kururu.finance/faucet?chainId=55555"], + nativeCurrency: { name: "Rei", symbol: "REI", decimals: 18 }, + infoURL: "https://reichain.io", + shortName: "reichain", + chainId: 55555, + networkId: 55555, + explorers: [ + { name: "reiscan", url: "https://reiscan.com", standard: "EIP3091" }, + ], + testnet: !1, + slug: "rei-chain", + }, + TDt = { + name: "REI Chain Testnet", + chain: "REI", + icon: { + url: "ipfs://QmNy5d5knHVjJJS9g4kLsh9i73RTjckpKL6KZvRk6ptbhf", + width: 591, + height: 591, + format: "svg", + }, + rpc: [ + "https://rei-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rei-testnet-rpc.moonrhythm.io", + ], + faucets: ["http://kururu.finance/faucet?chainId=55556"], + nativeCurrency: { name: "tRei", symbol: "tREI", decimals: 18 }, + infoURL: "https://reichain.io", + shortName: "trei", + chainId: 55556, + networkId: 55556, + explorers: [ + { + name: "reiscan", + url: "https://testnet.reiscan.com", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "rei-chain-testnet", + }, + EDt = { + name: "Boba BNB Mainnet", + chain: "Boba BNB Mainnet", + rpc: [ + "https://boba-bnb.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://bnb.boba.network", + "wss://wss.bnb.boba.network", + "https://replica.bnb.boba.network", + "wss://replica-wss.bnb.boba.network", + ], + faucets: [], + nativeCurrency: { name: "Boba Token", symbol: "BOBA", decimals: 18 }, + infoURL: "https://boba.network", + shortName: "BobaBnb", + chainId: 56288, + networkId: 56288, + explorers: [ + { + name: "Boba BNB block explorer", + url: "https://blockexplorer.bnb.boba.network", + standard: "none", + }, + ], + testnet: !1, + slug: "boba-bnb", + }, + CDt = { + name: "Thinkium Testnet Chain 0", + chain: "Thinkium", + rpc: [ + "https://thinkium-testnet-chain-0.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://test.thinkiumrpc.net/", + ], + faucets: ["https://www.thinkiumdev.net/faucet"], + nativeCurrency: { name: "TKM", symbol: "TKM", decimals: 18 }, + infoURL: "https://thinkium.net/", + shortName: "TKM-test0", + chainId: 6e4, + networkId: 6e4, + explorers: [ + { + name: "thinkiumscan", + url: "https://test0.thinkiumscan.net", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "thinkium-testnet-chain-0", + }, + IDt = { + name: "Thinkium Testnet Chain 1", + chain: "Thinkium", + rpc: [ + "https://thinkium-testnet-chain-1.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://test1.thinkiumrpc.net/", + ], + faucets: ["https://www.thinkiumdev.net/faucet"], + nativeCurrency: { name: "TKM", symbol: "TKM", decimals: 18 }, + infoURL: "https://thinkium.net/", + shortName: "TKM-test1", + chainId: 60001, + networkId: 60001, + explorers: [ + { + name: "thinkiumscan", + url: "https://test1.thinkiumscan.net", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "thinkium-testnet-chain-1", + }, + ADt = { + name: "Thinkium Testnet Chain 2", + chain: "Thinkium", + rpc: [ + "https://thinkium-testnet-chain-2.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://test2.thinkiumrpc.net/", + ], + faucets: ["https://www.thinkiumdev.net/faucet"], + nativeCurrency: { name: "TKM", symbol: "TKM", decimals: 18 }, + infoURL: "https://thinkium.net/", + shortName: "TKM-test2", + chainId: 60002, + networkId: 60002, + explorers: [ + { + name: "thinkiumscan", + url: "https://test2.thinkiumscan.net", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "thinkium-testnet-chain-2", + }, + kDt = { + name: "Thinkium Testnet Chain 103", + chain: "Thinkium", + rpc: [ + "https://thinkium-testnet-chain-103.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://test103.thinkiumrpc.net/", + ], + faucets: ["https://www.thinkiumdev.net/faucet"], + nativeCurrency: { name: "TKM", symbol: "TKM", decimals: 18 }, + infoURL: "https://thinkium.net/", + shortName: "TKM-test103", + chainId: 60103, + networkId: 60103, + explorers: [ + { + name: "thinkiumscan", + url: "https://test103.thinkiumscan.net", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "thinkium-testnet-chain-103", + }, + SDt = { + name: "Etica Mainnet", + chain: "Etica Protocol (ETI/EGAZ)", + icon: { + url: "ipfs://QmYSyhUqm6ArWyALBe3G64823ZpEUmFdkzKZ93hUUhNKgU", + width: 360, + height: 361, + format: "png", + }, + rpc: [ + "https://etica.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://eticamainnet.eticascan.org", + "https://eticamainnet.eticaprotocol.org", + ], + faucets: ["http://faucet.etica-stats.org/"], + nativeCurrency: { name: "EGAZ", symbol: "EGAZ", decimals: 18 }, + infoURL: "https://eticaprotocol.org", + shortName: "Etica", + chainId: 61803, + networkId: 61803, + explorers: [ + { + name: "eticascan", + url: "https://eticascan.org", + standard: "EIP3091", + }, + { + name: "eticastats", + url: "http://explorer.etica-stats.org", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "etica", + }, + MDt = { + name: "DoKEN Super Chain Mainnet", + chain: "DoKEN Super Chain", + rpc: [ + "https://doken-super-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://sgrpc.doken.dev", + "https://nyrpc.doken.dev", + "https://ukrpc.doken.dev", + ], + faucets: [], + nativeCurrency: { name: "DoKEN", symbol: "DKN", decimals: 18 }, + infoURL: "https://doken.dev/", + shortName: "DoKEN", + chainId: 61916, + networkId: 61916, + icon: { + url: "ipfs://bafkreifms4eio6v56oyeemnnu5luq3sc44hptan225lr45itgzu3u372iu", + width: 200, + height: 200, + format: "png", + }, + explorers: [ + { + name: "DSC Scan", + url: "https://explore.doken.dev", + icon: "doken", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "doken-super-chain", + }, + PDt = { + name: "Celo Baklava Testnet", + chainId: 62320, + shortName: "BKLV", + chain: "CELO", + networkId: 62320, + nativeCurrency: { name: "CELO", symbol: "CELO", decimals: 18 }, + rpc: [ + "https://celo-baklava-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://baklava-forno.celo-testnet.org", + ], + faucets: [ + "https://docs.google.com/forms/d/e/1FAIpQLSdfr1BwUTYepVmmvfVUDRCwALejZ-TUva2YujNpvrEmPAX2pg/viewform", + "https://cauldron.pretoriaresearchlab.io/baklava-faucet", + ], + infoURL: "https://docs.celo.org/", + testnet: !0, + slug: "celo-baklava-testnet", + }, + RDt = { + name: "MultiVAC Mainnet", + chain: "MultiVAC", + icon: { + url: "ipfs://QmWb1gthhbzkiLdgcP8ccZprGbJVjFcW8Rn4uJjrw4jd3B", + width: 200, + height: 200, + format: "png", + }, + rpc: [ + "https://multivac.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.mtv.ac", + "https://rpc-eu.mtv.ac", + ], + faucets: [], + nativeCurrency: { name: "MultiVAC", symbol: "MTV", decimals: 18 }, + infoURL: "https://mtv.ac", + shortName: "mtv", + chainId: 62621, + networkId: 62621, + explorers: [ + { + name: "MultiVAC Explorer", + url: "https://e.mtv.ac", + standard: "none", + }, + ], + testnet: !1, + slug: "multivac", + }, + BDt = { + name: "eCredits Mainnet", + chain: "ECS", + rpc: [ + "https://ecredits.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.ecredits.com", + ], + faucets: [], + nativeCurrency: { name: "eCredits", symbol: "ECS", decimals: 18 }, + infoURL: "https://ecredits.com", + shortName: "ecs", + chainId: 63e3, + networkId: 63e3, + icon: { + url: "ipfs://QmU9H9JE1KtLh2Fxrd8EWTMjKGJBpgRWKUeEx7u6ic4kBY", + width: 32, + height: 32, + format: "png", + }, + explorers: [ + { + name: "eCredits MainNet Explorer", + url: "https://explorer.ecredits.com", + icon: "ecredits", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "ecredits", + }, + NDt = { + name: "eCredits Testnet", + chain: "ECS", + rpc: [ + "https://ecredits-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.tst.ecredits.com", + ], + faucets: ["https://faucet.tst.ecredits.com"], + nativeCurrency: { name: "eCredits", symbol: "ECS", decimals: 18 }, + infoURL: "https://ecredits.com", + shortName: "ecs-testnet", + chainId: 63001, + networkId: 63001, + icon: { + url: "ipfs://QmU9H9JE1KtLh2Fxrd8EWTMjKGJBpgRWKUeEx7u6ic4kBY", + width: 32, + height: 32, + format: "png", + }, + explorers: [ + { + name: "eCredits TestNet Explorer", + url: "https://explorer.tst.ecredits.com", + icon: "ecredits", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "ecredits-testnet", + }, + ODt = { + name: "SiriusNet", + chain: "SIN", + rpc: [ + "https://siriusnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://u0tnafcv6j:o2T045sxuCNXL878RDQLp5__Zj-es2cvdjtgkl4etn0@u0v7kwtvtg-u0wj114sve-rpc.us0-aws.kaleido.io/", + ], + faucets: [], + nativeCurrency: { name: "MCD", symbol: "MCD", decimals: 18 }, + infoURL: "https://macaucasinolisboa.xyz", + shortName: "mcl", + chainId: 67390, + networkId: 67390, + explorers: [ + { + name: "siriusnetscan", + url: "https://siriusnet.tryethernal.com", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "siriusnet", + }, + LDt = { + name: "Condrieu", + title: "Ethereum Verkle Testnet Condrieu", + chain: "ETH", + rpc: [ + "https://condrieu.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.condrieu.ethdevops.io:8545", + ], + faucets: ["https://faucet.condrieu.ethdevops.io"], + nativeCurrency: { + name: "Condrieu Testnet Ether", + symbol: "CTE", + decimals: 18, + }, + infoURL: "https://condrieu.ethdevops.io", + shortName: "cndr", + chainId: 69420, + networkId: 69420, + explorers: [ + { + name: "Condrieu explorer", + url: "https://explorer.condrieu.ethdevops.io", + standard: "none", + }, + ], + testnet: !0, + slug: "condrieu", + }, + DDt = { + name: "Thinkium Mainnet Chain 0", + chain: "Thinkium", + rpc: [ + "https://thinkium-chain-0.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://proxy.thinkiumrpc.net/", + ], + faucets: [], + nativeCurrency: { name: "TKM", symbol: "TKM", decimals: 18 }, + infoURL: "https://thinkium.net/", + shortName: "TKM0", + chainId: 7e4, + networkId: 7e4, + explorers: [ + { + name: "thinkiumscan", + url: "https://chain0.thinkiumscan.net", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "thinkium-chain-0", + }, + qDt = { + name: "Thinkium Mainnet Chain 1", + chain: "Thinkium", + rpc: [ + "https://thinkium-chain-1.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://proxy1.thinkiumrpc.net/", + ], + faucets: [], + nativeCurrency: { name: "TKM", symbol: "TKM", decimals: 18 }, + infoURL: "https://thinkium.net/", + shortName: "TKM1", + chainId: 70001, + networkId: 70001, + explorers: [ + { + name: "thinkiumscan", + url: "https://chain1.thinkiumscan.net", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "thinkium-chain-1", + }, + FDt = { + name: "Thinkium Mainnet Chain 2", + chain: "Thinkium", + rpc: [ + "https://thinkium-chain-2.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://proxy2.thinkiumrpc.net/", + ], + faucets: [], + nativeCurrency: { name: "TKM", symbol: "TKM", decimals: 18 }, + infoURL: "https://thinkium.net/", + shortName: "TKM2", + chainId: 70002, + networkId: 70002, + explorers: [ + { + name: "thinkiumscan", + url: "https://chain2.thinkiumscan.net", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "thinkium-chain-2", + }, + WDt = { + name: "Thinkium Mainnet Chain 103", + chain: "Thinkium", + rpc: [ + "https://thinkium-chain-103.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://proxy103.thinkiumrpc.net/", + ], + faucets: [], + nativeCurrency: { name: "TKM", symbol: "TKM", decimals: 18 }, + infoURL: "https://thinkium.net/", + shortName: "TKM103", + chainId: 70103, + networkId: 70103, + explorers: [ + { + name: "thinkiumscan", + url: "https://chain103.thinkiumscan.net", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "thinkium-chain-103", + }, + UDt = { + name: "Polyjuice Testnet", + chain: "CKB", + icon: { + url: "ipfs://QmZ5gFWUxLFqqT3DkefYfRsVksMwMTc5VvBjkbHpeFMsNe", + width: 1001, + height: 1629, + format: "png", + }, + rpc: [ + "https://polyjuice-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://godwoken-testnet-web3-rpc.ckbapp.dev", + "ws://godwoken-testnet-web3-rpc.ckbapp.dev/ws", + ], + faucets: ["https://faucet.nervos.org/"], + nativeCurrency: { name: "CKB", symbol: "CKB", decimals: 8 }, + infoURL: "https://github.com/nervosnetwork/godwoken", + shortName: "ckb", + chainId: 71393, + networkId: 1, + testnet: !0, + slug: "polyjuice-testnet", + }, + HDt = { + name: "Godwoken Testnet v1", + chain: "GWT", + rpc: [ + "https://godwoken-testnet-v1.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://godwoken-testnet-v1.ckbapp.dev", + "https://v1.testnet.godwoken.io/rpc", + ], + faucets: ["https://testnet.bridge.godwoken.io"], + nativeCurrency: { name: "pCKB", symbol: "pCKB", decimals: 18 }, + infoURL: "https://www.nervos.org", + shortName: "gw-testnet-v1", + chainId: 71401, + networkId: 71401, + explorers: [ + { + name: "GWScout Explorer", + url: "https://gw-testnet-explorer.nervosdao.community", + standard: "none", + }, + { + name: "GWScan Block Explorer", + url: "https://v1.testnet.gwscan.com", + standard: "none", + }, + ], + testnet: !0, + slug: "godwoken-testnet-v1", + }, + zDt = { + name: "Godwoken Mainnet", + chain: "GWT", + rpc: [ + "https://godwoken.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://v1.mainnet.godwoken.io/rpc", + ], + faucets: [], + nativeCurrency: { name: "pCKB", symbol: "pCKB", decimals: 18 }, + infoURL: "https://www.nervos.org", + shortName: "gw-mainnet-v1", + chainId: 71402, + networkId: 71402, + explorers: [ + { + name: "GWScout Explorer", + url: "https://gw-mainnet-explorer.nervosdao.community", + standard: "none", + }, + { + name: "GWScan Block Explorer", + url: "https://v1.gwscan.com", + standard: "none", + }, + ], + testnet: !1, + slug: "godwoken", + }, + jDt = { + name: "Energy Web Volta Testnet", + chain: "Volta", + rpc: [ + "https://energy-web-volta-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://volta-rpc.energyweb.org", + "wss://volta-rpc.energyweb.org/ws", + ], + faucets: ["https://voltafaucet.energyweb.org"], + nativeCurrency: { name: "Volta Token", symbol: "VT", decimals: 18 }, + infoURL: "https://energyweb.org", + shortName: "vt", + chainId: 73799, + networkId: 73799, + testnet: !0, + slug: "energy-web-volta-testnet", + }, + KDt = { + name: "Mixin Virtual Machine", + chain: "MVM", + rpc: [ + "https://mixin-virtual-machine.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://geth.mvm.dev", + ], + faucets: [], + nativeCurrency: { name: "Ether", symbol: "ETH", decimals: 18 }, + infoURL: "https://mvm.dev", + shortName: "mvm", + chainId: 73927, + networkId: 73927, + icon: { + url: "ipfs://QmeuDgSprukzfV7fi9XYHYcfmT4aZZZU7idgShtRS8Vf6V", + width: 471, + height: 512, + format: "png", + }, + explorers: [ + { + name: "mvmscan", + url: "https://scan.mvm.dev", + icon: "mvm", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "mixin-virtual-machine", + }, + VDt = { + name: "ResinCoin Mainnet", + chain: "RESIN", + icon: { + url: "ipfs://QmTBszPzBeWPhjozf4TxpL2ws1NkG9yJvisx9h6MFii1zb", + width: 460, + height: 460, + format: "png", + }, + rpc: [], + faucets: [], + nativeCurrency: { name: "Ether", symbol: "RESIN", decimals: 18 }, + infoURL: "https://resincoin.dev", + shortName: "resin", + chainId: 75e3, + networkId: 75e3, + explorers: [ + { + name: "ResinScan", + url: "https://explorer.resincoin.dev", + standard: "none", + }, + ], + testnet: !1, + slug: "resincoin", + }, + GDt = { + name: "Vention Smart Chain Mainnet", + chain: "VSC", + icon: { + url: "ipfs://QmcNepHmbmHW1BZYM3MFqJW4awwhmDqhUPRXXmRnXwg1U4", + width: 250, + height: 250, + format: "png", + }, + rpc: [ + "https://vention-smart-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://mainnet-rpc.vention.network", + ], + faucets: ["https://faucet.vention.network"], + nativeCurrency: { name: "VNT", symbol: "VNT", decimals: 18 }, + infoURL: "https://ventionscan.io", + shortName: "vscm", + chainId: 77612, + networkId: 77612, + explorers: [ + { + name: "ventionscan", + url: "https://ventionscan.io", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "vention-smart-chain", + }, + YDt = { + name: "Firenze test network", + chain: "ETH", + rpc: [ + "https://firenze-test-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://ethnode.primusmoney.com/firenze", + ], + faucets: [], + nativeCurrency: { name: "Firenze Ether", symbol: "FIN", decimals: 18 }, + infoURL: "https://primusmoney.com", + shortName: "firenze", + chainId: 78110, + networkId: 78110, + testnet: !0, + slug: "firenze-test-network", + }, + $Dt = { + name: "Gold Smart Chain Testnet", + chain: "STAND", + icon: { + url: "ipfs://QmPNuymyaKLJhCaXnyrsL8358FeTxabZFsaxMmWNU4Tzt3", + width: 396, + height: 418, + format: "png", + }, + rpc: [ + "https://gold-smart-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc-testnet.goldsmartchain.com", + ], + faucets: ["https://faucet.goldsmartchain.com"], + nativeCurrency: { + name: "Standard in Gold", + symbol: "STAND", + decimals: 18, + }, + infoURL: "https://goldsmartchain.com", + shortName: "STANDt", + chainId: 79879, + networkId: 79879, + explorers: [ + { + name: "Gold Smart Chain", + url: "https://testnet.goldsmartchain.com", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "gold-smart-chain-testnet", + }, + JDt = { + name: "Mumbai", + title: "Polygon Testnet Mumbai", + chain: "Polygon", + icon: { + url: "ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/polygon/512.png", + height: 512, + width: 512, + format: "png", + sizes: [512, 256, 128, 64, 32, 16], + }, + rpc: [ + "https://mumbai.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://polygon-mumbai.g.alchemy.com/v2/${ALCHEMY_API_KEY}", + "https://polygon-mumbai.infura.io/v3/${INFURA_API_KEY}", + "https://matic-mumbai.chainstacklabs.com", + "https://rpc-mumbai.maticvigil.com", + "https://matic-testnet-archive-rpc.bwarelabs.com", + ], + faucets: ["https://faucet.polygon.technology/"], + nativeCurrency: { name: "MATIC", symbol: "MATIC", decimals: 18 }, + infoURL: "https://polygon.technology/", + shortName: "maticmum", + chainId: 80001, + networkId: 80001, + explorers: [ + { + name: "polygonscan", + url: "https://mumbai.polygonscan.com", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "mumbai", + }, + ZDt = { + name: "Chiliz Scoville Testnet", + chain: "CHZ", + rpc: [ + "https://chiliz-scoville-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://scoville-rpc.chiliz.com", + ], + faucets: ["https://scoville-faucet.chiliz.com"], + nativeCurrency: { name: "Chiliz", symbol: "CHZ", decimals: 18 }, + icon: { + url: "ipfs://QmYV5xUVZhHRzLy7ie9D8qZeygJHvNZZAxwnB9GXYy6EED", + width: 400, + height: 400, + format: "png", + }, + infoURL: "https://www.chiliz.com/en/chain", + shortName: "chz", + chainId: 88880, + networkId: 88880, + explorers: [ + { + name: "scoville-explorer", + url: "https://scoville-explorer.chiliz.com", + standard: "none", + }, + ], + testnet: !0, + slug: "chiliz-scoville-testnet", + }, + QDt = { + name: "IVAR Chain Mainnet", + chain: "IVAR", + icon: { + url: "ipfs://QmV8UmSwqGF2fxrqVEBTHbkyZueahqyYtkfH2RBF5pNysM", + width: 519, + height: 519, + format: "svg", + }, + rpc: [ + "https://ivar-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://mainnet-rpc.ivarex.com", + ], + faucets: ["https://faucet.ivarex.com/"], + nativeCurrency: { name: "Ivar", symbol: "IVAR", decimals: 18 }, + infoURL: "https://ivarex.com", + shortName: "ivar", + chainId: 88888, + networkId: 88888, + explorers: [ + { + name: "ivarscan", + url: "https://ivarscan.com", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "ivar-chain", + }, + XDt = { + name: "Beverly Hills", + title: "Ethereum multi-client Verkle Testnet Beverly Hills", + chain: "ETH", + rpc: [ + "https://beverly-hills.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.beverlyhills.ethdevops.io:8545", + ], + faucets: ["https://faucet.beverlyhills.ethdevops.io"], + nativeCurrency: { + name: "Beverly Hills Testnet Ether", + symbol: "BVE", + decimals: 18, + }, + infoURL: "https://beverlyhills.ethdevops.io", + shortName: "bvhl", + chainId: 90210, + networkId: 90210, + status: "incubating", + explorers: [ + { + name: "Beverly Hills explorer", + url: "https://explorer.beverlyhills.ethdevops.io", + standard: "none", + }, + ], + testnet: !0, + slug: "beverly-hills", + }, + eqt = { + name: "Lambda Testnet", + chain: "Lambda", + rpc: [ + "https://lambda-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://evm.lambda.top/", + ], + faucets: ["https://faucet.lambda.top"], + nativeCurrency: { name: "test-Lamb", symbol: "LAMB", decimals: 18 }, + infoURL: "https://lambda.im", + shortName: "lambda-testnet", + chainId: 92001, + networkId: 92001, + icon: { + url: "ipfs://QmWsoME6LCghQTpGYf7EnUojaDdYo7kfkWVjE6VvNtkjwy", + width: 500, + height: 500, + format: "png", + }, + explorers: [ + { + name: "Lambda EVM Explorer", + url: "https://explorer.lambda.top", + standard: "EIP3091", + icon: "lambda", + }, + ], + testnet: !0, + slug: "lambda-testnet", + }, + tqt = { + name: "UB Smart Chain(testnet)", + chain: "USC", + rpc: [ + "https://ub-smart-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://testnet.rpc.uschain.network", + ], + faucets: [], + nativeCurrency: { name: "UBC", symbol: "UBC", decimals: 18 }, + infoURL: "https://www.ubchain.site", + shortName: "usctest", + chainId: 99998, + networkId: 99998, + testnet: !0, + slug: "ub-smart-chain-testnet", + }, + rqt = { + name: "UB Smart Chain", + chain: "USC", + rpc: [ + "https://ub-smart-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.uschain.network", + ], + faucets: [], + nativeCurrency: { name: "UBC", symbol: "UBC", decimals: 18 }, + infoURL: "https://www.ubchain.site/", + shortName: "usc", + chainId: 99999, + networkId: 99999, + testnet: !1, + slug: "ub-smart-chain", + }, + nqt = { + name: "QuarkChain Mainnet Root", + chain: "QuarkChain", + rpc: [ + "https://quarkchain-root.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "http://jrpc.mainnet.quarkchain.io:38391", + ], + faucets: [], + nativeCurrency: { name: "QKC", symbol: "QKC", decimals: 18 }, + infoURL: "https://www.quarkchain.io", + shortName: "qkc-r", + chainId: 1e5, + networkId: 1e5, + testnet: !1, + slug: "quarkchain-root", + }, + aqt = { + name: "QuarkChain Mainnet Shard 0", + chain: "QuarkChain", + rpc: [ + "https://quarkchain-shard-0.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://mainnet-s0-ethapi.quarkchain.io", + "http://eth-jrpc.mainnet.quarkchain.io:39000", + ], + faucets: [], + nativeCurrency: { name: "QKC", symbol: "QKC", decimals: 18 }, + infoURL: "https://www.quarkchain.io", + shortName: "qkc-s0", + chainId: 100001, + networkId: 100001, + parent: { chain: "eip155-100000", type: "shard" }, + explorers: [ + { + name: "quarkchain-mainnet", + url: "https://mainnet.quarkchain.io/0", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "quarkchain-shard-0", + }, + iqt = { + name: "QuarkChain Mainnet Shard 1", + chain: "QuarkChain", + rpc: [ + "https://quarkchain-shard-1.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://mainnet-s1-ethapi.quarkchain.io", + "http://eth-jrpc.mainnet.quarkchain.io:39001", + ], + faucets: [], + nativeCurrency: { name: "QKC", symbol: "QKC", decimals: 18 }, + infoURL: "https://www.quarkchain.io", + shortName: "qkc-s1", + chainId: 100002, + networkId: 100002, + parent: { chain: "eip155-100000", type: "shard" }, + explorers: [ + { + name: "quarkchain-mainnet", + url: "https://mainnet.quarkchain.io/1", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "quarkchain-shard-1", + }, + sqt = { + name: "QuarkChain Mainnet Shard 2", + chain: "QuarkChain", + rpc: [ + "https://quarkchain-shard-2.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://mainnet-s2-ethapi.quarkchain.io", + "http://eth-jrpc.mainnet.quarkchain.io:39002", + ], + faucets: [], + nativeCurrency: { name: "QKC", symbol: "QKC", decimals: 18 }, + infoURL: "https://www.quarkchain.io", + shortName: "qkc-s2", + chainId: 100003, + networkId: 100003, + parent: { chain: "eip155-100000", type: "shard" }, + explorers: [ + { + name: "quarkchain-mainnet", + url: "https://mainnet.quarkchain.io/2", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "quarkchain-shard-2", + }, + oqt = { + name: "QuarkChain Mainnet Shard 3", + chain: "QuarkChain", + rpc: [ + "https://quarkchain-shard-3.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://mainnet-s3-ethapi.quarkchain.io", + "http://eth-jrpc.mainnet.quarkchain.io:39003", + ], + faucets: [], + nativeCurrency: { name: "QKC", symbol: "QKC", decimals: 18 }, + infoURL: "https://www.quarkchain.io", + shortName: "qkc-s3", + chainId: 100004, + networkId: 100004, + parent: { chain: "eip155-100000", type: "shard" }, + explorers: [ + { + name: "quarkchain-mainnet", + url: "https://mainnet.quarkchain.io/3", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "quarkchain-shard-3", + }, + cqt = { + name: "QuarkChain Mainnet Shard 4", + chain: "QuarkChain", + rpc: [ + "https://quarkchain-shard-4.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://mainnet-s4-ethapi.quarkchain.io", + "http://eth-jrpc.mainnet.quarkchain.io:39004", + ], + faucets: [], + nativeCurrency: { name: "QKC", symbol: "QKC", decimals: 18 }, + infoURL: "https://www.quarkchain.io", + shortName: "qkc-s4", + chainId: 100005, + networkId: 100005, + parent: { chain: "eip155-100000", type: "shard" }, + explorers: [ + { + name: "quarkchain-mainnet", + url: "https://mainnet.quarkchain.io/4", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "quarkchain-shard-4", + }, + uqt = { + name: "QuarkChain Mainnet Shard 5", + chain: "QuarkChain", + rpc: [ + "https://quarkchain-shard-5.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://mainnet-s5-ethapi.quarkchain.io", + "http://eth-jrpc.mainnet.quarkchain.io:39005", + ], + faucets: [], + nativeCurrency: { name: "QKC", symbol: "QKC", decimals: 18 }, + infoURL: "https://www.quarkchain.io", + shortName: "qkc-s5", + chainId: 100006, + networkId: 100006, + parent: { chain: "eip155-100000", type: "shard" }, + explorers: [ + { + name: "quarkchain-mainnet", + url: "https://mainnet.quarkchain.io/5", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "quarkchain-shard-5", + }, + lqt = { + name: "QuarkChain Mainnet Shard 6", + chain: "QuarkChain", + rpc: [ + "https://quarkchain-shard-6.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://mainnet-s6-ethapi.quarkchain.io", + "http://eth-jrpc.mainnet.quarkchain.io:39006", + ], + faucets: [], + nativeCurrency: { name: "QKC", symbol: "QKC", decimals: 18 }, + infoURL: "https://www.quarkchain.io", + shortName: "qkc-s6", + chainId: 100007, + networkId: 100007, + parent: { chain: "eip155-100000", type: "shard" }, + explorers: [ + { + name: "quarkchain-mainnet", + url: "https://mainnet.quarkchain.io/6", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "quarkchain-shard-6", + }, + dqt = { + name: "QuarkChain Mainnet Shard 7", + chain: "QuarkChain", + rpc: [ + "https://quarkchain-shard-7.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://mainnet-s7-ethapi.quarkchain.io", + "http://eth-jrpc.mainnet.quarkchain.io:39007", + ], + faucets: [], + nativeCurrency: { name: "QKC", symbol: "QKC", decimals: 18 }, + infoURL: "https://www.quarkchain.io", + shortName: "qkc-s7", + chainId: 100008, + networkId: 100008, + parent: { chain: "eip155-100000", type: "shard" }, + explorers: [ + { + name: "quarkchain-mainnet", + url: "https://mainnet.quarkchain.io/7", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "quarkchain-shard-7", + }, + pqt = { + name: "VeChain", + chain: "VeChain", + rpc: [], + faucets: [], + nativeCurrency: { name: "VeChain", symbol: "VET", decimals: 18 }, + infoURL: "https://vechain.org", + shortName: "vechain", + chainId: 100009, + networkId: 100009, + explorers: [ + { + name: "VeChain Stats", + url: "https://vechainstats.com", + standard: "none", + }, + { + name: "VeChain Explorer", + url: "https://explore.vechain.org", + standard: "none", + }, + ], + testnet: !1, + slug: "vechain", + }, + hqt = { + name: "VeChain Testnet", + chain: "VeChain", + rpc: [], + faucets: ["https://faucet.vecha.in"], + nativeCurrency: { name: "VeChain", symbol: "VET", decimals: 18 }, + infoURL: "https://vechain.org", + shortName: "vechain-testnet", + chainId: 100010, + networkId: 100010, + explorers: [ + { + name: "VeChain Explorer", + url: "https://explore-testnet.vechain.org", + standard: "none", + }, + ], + testnet: !0, + slug: "vechain-testnet", + }, + fqt = { + name: "Soverun Testnet", + chain: "SVRN", + icon: { + url: "ipfs://QmTYazUzgY9Nn2mCjWwFUSLy3dG6i2PvALpwCNQvx1zXyi", + width: 1154, + height: 1154, + format: "png", + }, + rpc: [ + "https://soverun-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://testnet-rpc.soverun.com", + ], + faucets: ["https://faucet.soverun.com"], + nativeCurrency: { name: "Soverun", symbol: "SVRN", decimals: 18 }, + infoURL: "https://soverun.com", + shortName: "SVRNt", + chainId: 101010, + networkId: 101010, + explorers: [ + { + name: "Soverun", + url: "https://testnet.soverun.com", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "soverun-testnet", + }, + mqt = { + name: "Crystaleum", + chain: "crystal", + rpc: [ + "https://crystaleum.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://evm.cryptocurrencydevs.org", + "https://rpc.crystaleum.org", + ], + faucets: [], + nativeCurrency: { name: "CRFI", symbol: "\u25C8", decimals: 18 }, + infoURL: "https://crystaleum.org", + shortName: "CRFI", + chainId: 103090, + networkId: 1, + icon: { + url: "ipfs://Qmbry1Uc6HnXmqFNXW5dFJ7To8EezCCjNr4TqqvAyzXS4h", + width: 150, + height: 150, + format: "png", + }, + explorers: [ + { + name: "blockscout", + url: "https://scan.crystaleum.org", + icon: "crystal", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "crystaleum", + }, + yqt = { + name: "BROChain Mainnet", + chain: "BRO", + rpc: [ + "https://brochain.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.brochain.org", + "http://rpc.brochain.org", + "https://rpc.brochain.org/mainnet", + "http://rpc.brochain.org/mainnet", + ], + faucets: [], + nativeCurrency: { name: "Brother", symbol: "BRO", decimals: 18 }, + infoURL: "https://brochain.org", + shortName: "bro", + chainId: 108801, + networkId: 108801, + explorers: [ + { + name: "BROChain Explorer", + url: "https://explorer.brochain.org", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "brochain", + }, + gqt = { + name: "QuarkChain Devnet Root", + chain: "QuarkChain", + rpc: [ + "https://quarkchain-devnet-root.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "http://jrpc.devnet.quarkchain.io:38391", + ], + faucets: [], + nativeCurrency: { name: "QKC", symbol: "QKC", decimals: 18 }, + infoURL: "https://www.quarkchain.io", + shortName: "qkc-d-r", + chainId: 11e4, + networkId: 11e4, + testnet: !1, + slug: "quarkchain-devnet-root", + }, + bqt = { + name: "QuarkChain Devnet Shard 0", + chain: "QuarkChain", + rpc: [ + "https://quarkchain-devnet-shard-0.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://devnet-s0-ethapi.quarkchain.io", + "http://eth-jrpc.devnet.quarkchain.io:39900", + ], + faucets: [], + nativeCurrency: { name: "QKC", symbol: "QKC", decimals: 18 }, + infoURL: "https://www.quarkchain.io", + shortName: "qkc-d-s0", + chainId: 110001, + networkId: 110001, + parent: { chain: "eip155-110000", type: "shard" }, + explorers: [ + { + name: "quarkchain-devnet", + url: "https://devnet.quarkchain.io/0", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "quarkchain-devnet-shard-0", + }, + vqt = { + name: "QuarkChain Devnet Shard 1", + chain: "QuarkChain", + rpc: [ + "https://quarkchain-devnet-shard-1.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://devnet-s1-ethapi.quarkchain.io", + "http://eth-jrpc.devnet.quarkchain.io:39901", + ], + faucets: [], + nativeCurrency: { name: "QKC", symbol: "QKC", decimals: 18 }, + infoURL: "https://www.quarkchain.io", + shortName: "qkc-d-s1", + chainId: 110002, + networkId: 110002, + parent: { chain: "eip155-110000", type: "shard" }, + explorers: [ + { + name: "quarkchain-devnet", + url: "https://devnet.quarkchain.io/1", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "quarkchain-devnet-shard-1", + }, + wqt = { + name: "QuarkChain Devnet Shard 2", + chain: "QuarkChain", + rpc: [ + "https://quarkchain-devnet-shard-2.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://devnet-s2-ethapi.quarkchain.io", + "http://eth-jrpc.devnet.quarkchain.io:39902", + ], + faucets: [], + nativeCurrency: { name: "QKC", symbol: "QKC", decimals: 18 }, + infoURL: "https://www.quarkchain.io", + shortName: "qkc-d-s2", + chainId: 110003, + networkId: 110003, + parent: { chain: "eip155-110000", type: "shard" }, + explorers: [ + { + name: "quarkchain-devnet", + url: "https://devnet.quarkchain.io/2", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "quarkchain-devnet-shard-2", + }, + _qt = { + name: "QuarkChain Devnet Shard 3", + chain: "QuarkChain", + rpc: [ + "https://quarkchain-devnet-shard-3.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://devnet-s3-ethapi.quarkchain.io", + "http://eth-jrpc.devnet.quarkchain.io:39903", + ], + faucets: [], + nativeCurrency: { name: "QKC", symbol: "QKC", decimals: 18 }, + infoURL: "https://www.quarkchain.io", + shortName: "qkc-d-s3", + chainId: 110004, + networkId: 110004, + parent: { chain: "eip155-110000", type: "shard" }, + explorers: [ + { + name: "quarkchain-devnet", + url: "https://devnet.quarkchain.io/3", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "quarkchain-devnet-shard-3", + }, + xqt = { + name: "QuarkChain Devnet Shard 4", + chain: "QuarkChain", + rpc: [ + "https://quarkchain-devnet-shard-4.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://devnet-s4-ethapi.quarkchain.io", + "http://eth-jrpc.devnet.quarkchain.io:39904", + ], + faucets: [], + nativeCurrency: { name: "QKC", symbol: "QKC", decimals: 18 }, + infoURL: "https://www.quarkchain.io", + shortName: "qkc-d-s4", + chainId: 110005, + networkId: 110005, + parent: { chain: "eip155-110000", type: "shard" }, + explorers: [ + { + name: "quarkchain-devnet", + url: "https://devnet.quarkchain.io/4", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "quarkchain-devnet-shard-4", + }, + Tqt = { + name: "QuarkChain Devnet Shard 5", + chain: "QuarkChain", + rpc: [ + "https://quarkchain-devnet-shard-5.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://devnet-s5-ethapi.quarkchain.io", + "http://eth-jrpc.devnet.quarkchain.io:39905", + ], + faucets: [], + nativeCurrency: { name: "QKC", symbol: "QKC", decimals: 18 }, + infoURL: "https://www.quarkchain.io", + shortName: "qkc-d-s5", + chainId: 110006, + networkId: 110006, + parent: { chain: "eip155-110000", type: "shard" }, + explorers: [ + { + name: "quarkchain-devnet", + url: "https://devnet.quarkchain.io/5", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "quarkchain-devnet-shard-5", + }, + Eqt = { + name: "QuarkChain Devnet Shard 6", + chain: "QuarkChain", + rpc: [ + "https://quarkchain-devnet-shard-6.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://devnet-s6-ethapi.quarkchain.io", + "http://eth-jrpc.devnet.quarkchain.io:39906", + ], + faucets: [], + nativeCurrency: { name: "QKC", symbol: "QKC", decimals: 18 }, + infoURL: "https://www.quarkchain.io", + shortName: "qkc-d-s6", + chainId: 110007, + networkId: 110007, + parent: { chain: "eip155-110000", type: "shard" }, + explorers: [ + { + name: "quarkchain-devnet", + url: "https://devnet.quarkchain.io/6", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "quarkchain-devnet-shard-6", + }, + Cqt = { + name: "QuarkChain Devnet Shard 7", + chain: "QuarkChain", + rpc: [ + "https://quarkchain-devnet-shard-7.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://devnet-s7-ethapi.quarkchain.io", + "http://eth-jrpc.devnet.quarkchain.io:39907", + ], + faucets: [], + nativeCurrency: { name: "QKC", symbol: "QKC", decimals: 18 }, + infoURL: "https://www.quarkchain.io", + shortName: "qkc-d-s7", + chainId: 110008, + networkId: 110008, + parent: { chain: "eip155-110000", type: "shard" }, + explorers: [ + { + name: "quarkchain-devnet", + url: "https://devnet.quarkchain.io/7", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "quarkchain-devnet-shard-7", + }, + Iqt = { + name: "ETND Chain Mainnets", + chain: "ETND", + rpc: [ + "https://etnd-chain-s.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.node1.etnd.pro/", + ], + faucets: [], + nativeCurrency: { name: "ETND", symbol: "ETND", decimals: 18 }, + infoURL: "https://www.etnd.pro", + shortName: "ETND", + chainId: 131419, + networkId: 131419, + icon: { + url: "ipfs://Qmd26eRJxPb1jJg5Q4mC2M4kD9Jrs5vmcnr5LczHFMGwSD", + width: 128, + height: 128, + format: "png", + }, + explorers: [ + { + name: "etndscan", + url: "https://scan.etnd.pro", + icon: "ETND", + standard: "none", + }, + ], + testnet: !1, + slug: "etnd-chain-s", + }, + Aqt = { + name: "Condor Test Network", + chain: "CONDOR", + icon: { + url: "ipfs://QmPRDuEJSTqp2cDUvWCp71Wns6XV8nvdeAVKWH6srpk4xM", + width: 752, + height: 752, + format: "png", + }, + rpc: [ + "https://condor-test-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://testnet.condor.systems/rpc", + ], + faucets: ["https://faucet.condor.systems"], + nativeCurrency: { + name: "Condor Native Token", + symbol: "CONDOR", + decimals: 18, + }, + infoURL: "https://condor.systems", + shortName: "condor", + chainId: 188881, + networkId: 188881, + explorers: [ + { + name: "CondorScan", + url: "https://explorer.condor.systems", + standard: "none", + }, + ], + testnet: !0, + slug: "condor-test-network", + }, + kqt = { + name: "Milkomeda C1 Testnet", + chain: "milkTAda", + icon: { + url: "ipfs://QmdoUtvHDybu5ppYBZT8BMRp6AqByVSoQs8nFwKbaS55jd", + width: 367, + height: 367, + format: "svg", + }, + rpc: [ + "https://milkomeda-c1-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc-devnet-cardano-evm.c1.milkomeda.com", + "wss://rpc-devnet-cardano-evm.c1.milkomeda.com", + ], + faucets: [], + nativeCurrency: { name: "milkTAda", symbol: "mTAda", decimals: 18 }, + infoURL: "https://milkomeda.com", + shortName: "milkTAda", + chainId: 200101, + networkId: 200101, + explorers: [ + { + name: "Blockscout", + url: "https://explorer-devnet-cardano-evm.c1.milkomeda.com", + standard: "none", + }, + ], + testnet: !0, + slug: "milkomeda-c1-testnet", + }, + Sqt = { + name: "Milkomeda A1 Testnet", + chain: "milkTAlgo", + icon: { + url: "ipfs://QmdoUtvHDybu5ppYBZT8BMRp6AqByVSoQs8nFwKbaS55jd", + width: 367, + height: 367, + format: "svg", + }, + rpc: [ + "https://milkomeda-a1-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc-devnet-algorand-rollup.a1.milkomeda.com", + ], + faucets: [], + nativeCurrency: { name: "milkTAlgo", symbol: "mTAlgo", decimals: 18 }, + infoURL: "https://milkomeda.com", + shortName: "milkTAlgo", + chainId: 200202, + networkId: 200202, + explorers: [ + { + name: "Blockscout", + url: "https://explorer-devnet-algorand-rollup.a1.milkomeda.com", + standard: "none", + }, + ], + testnet: !0, + slug: "milkomeda-a1-testnet", + }, + Mqt = { + name: "Akroma", + chain: "AKA", + rpc: [ + "https://akroma.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://remote.akroma.io", + ], + faucets: [], + nativeCurrency: { name: "Akroma Ether", symbol: "AKA", decimals: 18 }, + infoURL: "https://akroma.io", + shortName: "aka", + chainId: 200625, + networkId: 200625, + slip44: 200625, + testnet: !1, + slug: "akroma", + }, + Pqt = { + name: "Alaya Mainnet", + chain: "Alaya", + rpc: [ + "https://alaya.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://openapi.alaya.network/rpc", + "wss://openapi.alaya.network/ws", + ], + faucets: [], + nativeCurrency: { name: "ATP", symbol: "atp", decimals: 18 }, + infoURL: "https://www.alaya.network/", + shortName: "alaya", + chainId: 201018, + networkId: 1, + icon: { + url: "ipfs://Qmci6vPcWAwmq19j98yuQxjV6UPzHtThMdCAUDbKeb8oYu", + width: 1140, + height: 1140, + format: "png", + }, + explorers: [ + { + name: "alaya explorer", + url: "https://scan.alaya.network", + standard: "none", + }, + ], + testnet: !1, + slug: "alaya", + }, + Rqt = { + name: "Alaya Dev Testnet", + chain: "Alaya", + rpc: [ + "https://alaya-dev-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://devnetopenapi.alaya.network/rpc", + "wss://devnetopenapi.alaya.network/ws", + ], + faucets: [ + "https://faucet.alaya.network/faucet/?id=f93426c0887f11eb83b900163e06151c", + ], + nativeCurrency: { name: "ATP", symbol: "atp", decimals: 18 }, + infoURL: "https://www.alaya.network/", + shortName: "alayadev", + chainId: 201030, + networkId: 1, + icon: { + url: "ipfs://Qmci6vPcWAwmq19j98yuQxjV6UPzHtThMdCAUDbKeb8oYu", + width: 1140, + height: 1140, + format: "png", + }, + explorers: [ + { + name: "alaya explorer", + url: "https://devnetscan.alaya.network", + standard: "none", + }, + ], + testnet: !0, + slug: "alaya-dev-testnet", + }, + Bqt = { + name: "Mythical Chain", + chain: "MYTH", + rpc: [ + "https://mythical-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://chain-rpc.mythicalgames.com", + ], + faucets: [], + nativeCurrency: { name: "Mythos", symbol: "MYTH", decimals: 18 }, + features: [{ name: "EIP155" }, { name: "EIP1559" }], + infoURL: "https://mythicalgames.com/", + shortName: "myth", + chainId: 201804, + networkId: 201804, + icon: { + url: "ipfs://bafkreihru6cccfblrjz5bv36znq2l3h67u6xj5ivtc4bj5l6gzofbgtnb4", + width: 350, + height: 350, + format: "png", + }, + explorers: [ + { + name: "Mythical Chain Explorer", + url: "https://explorer.mythicalgames.com", + icon: "mythical", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "mythical-chain", + }, + Nqt = { + name: "Decimal Smart Chain Testnet", + chain: "tDSC", + rpc: [ + "https://decimal-smart-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://testnet-val.decimalchain.com/web3", + ], + faucets: [], + nativeCurrency: { name: "Decimal", symbol: "tDEL", decimals: 18 }, + features: [{ name: "EIP155" }, { name: "EIP1559" }], + infoURL: "https://decimalchain.com", + shortName: "tDSC", + chainId: 202020, + networkId: 202020, + icon: { + url: "ipfs://QmSgzwKnJJjys3Uq2aVVdwJ3NffLj3CXMVCph9uByTBegc", + width: 256, + height: 256, + format: "png", + }, + explorers: [ + { + name: "DSC Explorer Testnet", + url: "https://testnet.explorer.decimalchain.com", + icon: "dsc", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "decimal-smart-chain-testnet", + }, + Oqt = { + name: "Jellie", + title: "Twala Testnet Jellie", + shortName: "twl-jellie", + chain: "ETH", + chainId: 202624, + networkId: 202624, + icon: { + url: "ipfs://QmTXJVhVKvVC7DQEnGKXvydvwpvVaUEBJrMHvsCr4nr1sK", + width: 1326, + height: 1265, + format: "png", + }, + nativeCurrency: { name: "Twala Coin", symbol: "TWL", decimals: 18 }, + rpc: [ + "https://jellie.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://jellie-rpc.twala.io/", + "wss://jellie-rpc-wss.twala.io/", + ], + faucets: [], + infoURL: "https://twala.io/", + explorers: [ + { + name: "Jellie Blockchain Explorer", + url: "https://jellie.twala.io", + standard: "EIP3091", + icon: "twala", + }, + ], + testnet: !0, + slug: "jellie", + }, + Lqt = { + name: "PlatON Mainnet", + chain: "PlatON", + rpc: [ + "https://platon.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://openapi2.platon.network/rpc", + "wss://openapi2.platon.network/ws", + ], + faucets: [], + nativeCurrency: { name: "LAT", symbol: "lat", decimals: 18 }, + infoURL: "https://www.platon.network", + shortName: "platon", + chainId: 210425, + networkId: 1, + icon: { + url: "ipfs://QmT7PSXBiVBma6E15hNkivmstqLu3JSnG1jXN5pTmcCGRC", + width: 200, + height: 200, + format: "png", + }, + explorers: [ + { + name: "PlatON explorer", + url: "https://scan.platon.network", + standard: "none", + }, + ], + testnet: !1, + slug: "platon", + }, + Dqt = { + name: "Mas Mainnet", + chain: "MAS", + rpc: [ + "https://mas.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "http://node.masnet.ai:8545", + ], + faucets: [], + nativeCurrency: { name: "Master Bank", symbol: "MAS", decimals: 18 }, + features: [{ name: "EIP155" }, { name: "EIP1559" }], + infoURL: "https://masterbank.org", + shortName: "mas", + chainId: 220315, + networkId: 220315, + icon: { + url: "ipfs://QmZ9njQhhKkpJKGnoYy6XTuDtk5CYiDFUd8atqWthqUT3Q", + width: 1024, + height: 1024, + format: "png", + }, + explorers: [ + { + name: "explorer masnet", + url: "https://explorer.masnet.ai", + icon: "explorer", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "mas", + }, + qqt = { + name: "Haymo Testnet", + chain: "tHYM", + rpc: [ + "https://haymo-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://testnet1.haymo.network", + ], + faucets: [], + nativeCurrency: { name: "HAYMO", symbol: "HYM", decimals: 18 }, + infoURL: "https://haymoswap.web.app/", + shortName: "hym", + chainId: 234666, + networkId: 234666, + testnet: !0, + slug: "haymo-testnet", + }, + Fqt = { + name: "ARTIS sigma1", + chain: "ARTIS", + rpc: [ + "https://artis-sigma1.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.sigma1.artis.network", + ], + faucets: [], + nativeCurrency: { + name: "ARTIS sigma1 Ether", + symbol: "ATS", + decimals: 18, + }, + infoURL: "https://artis.eco", + shortName: "ats", + chainId: 246529, + networkId: 246529, + slip44: 246529, + testnet: !1, + slug: "artis-sigma1", + }, + Wqt = { + name: "ARTIS Testnet tau1", + chain: "ARTIS", + rpc: [ + "https://artis-testnet-tau1.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.tau1.artis.network", + ], + faucets: [], + nativeCurrency: { + name: "ARTIS tau1 Ether", + symbol: "tATS", + decimals: 18, + }, + infoURL: "https://artis.network", + shortName: "atstau", + chainId: 246785, + networkId: 246785, + testnet: !0, + slug: "artis-testnet-tau1", + }, + Uqt = { + name: "Saakuru Testnet", + chain: "Saakuru", + icon: { + url: "ipfs://QmduEdtFobPpZWSc45MU6RKxZfTEzLux2z8ikHFhT8usqv", + width: 1024, + height: 1024, + format: "png", + }, + rpc: [ + "https://saakuru-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc-testnet.saakuru.network", + ], + faucets: [], + nativeCurrency: { name: "OAS", symbol: "OAS", decimals: 18 }, + infoURL: "https://saakuru.network", + shortName: "saakuru-testnet", + chainId: 247253, + networkId: 247253, + explorers: [ + { + name: "saakuru-explorer-testnet", + url: "https://explorer-testnet.saakuru.network", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "saakuru-testnet", + }, + Hqt = { + name: "CMP-Mainnet", + chain: "CMP", + rpc: [ + "https://cmp.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://mainnet.block.caduceus.foundation", + "wss://mainnet.block.caduceus.foundation", + ], + faucets: [], + nativeCurrency: { name: "Caduceus Token", symbol: "CMP", decimals: 18 }, + infoURL: "https://caduceus.foundation/", + shortName: "cmp-mainnet", + chainId: 256256, + networkId: 256256, + explorers: [ + { + name: "Mainnet Scan", + url: "https://mainnet.scan.caduceus.foundation", + standard: "none", + }, + ], + testnet: !1, + slug: "cmp", + }, + zqt = { + name: "Gear Zero Network Testnet", + chain: "GearZero", + rpc: [ + "https://gear-zero-network-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://gzn-test.linksme.info", + ], + faucets: [], + nativeCurrency: { + name: "Gear Zero Network Native Token", + symbol: "GZN", + decimals: 18, + }, + infoURL: "https://token.gearzero.ca/testnet", + shortName: "gz-testnet", + chainId: 266256, + networkId: 266256, + slip44: 266256, + explorers: [], + testnet: !0, + slug: "gear-zero-network-testnet", + }, + jqt = { + name: "Social Smart Chain Mainnet", + chain: "SoChain", + rpc: [ + "https://social-smart-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://socialsmartchain.digitalnext.business", + ], + faucets: [], + nativeCurrency: { name: "SoChain", symbol: "$OC", decimals: 18 }, + infoURL: "https://digitalnext.business/SocialSmartChain", + shortName: "SoChain", + chainId: 281121, + networkId: 281121, + explorers: [], + testnet: !1, + slug: "social-smart-chain", + }, + Kqt = { + name: "Filecoin - Calibration testnet", + chain: "FIL", + icon: { + url: "ipfs://QmS9r9XQkMHVomWcSBNDkKkz9n87h9bH9ssabeiKZtANoU", + width: 1e3, + height: 1e3, + format: "png", + }, + rpc: [ + "https://filecoin-calibration-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://api.calibration.node.glif.io/rpc/v1", + ], + faucets: ["https://faucet.calibration.fildev.network/"], + nativeCurrency: { + name: "testnet filecoin", + symbol: "tFIL", + decimals: 18, + }, + infoURL: "https://filecoin.io", + shortName: "filecoin-calibration", + chainId: 314159, + networkId: 314159, + slip44: 1, + explorers: [ + { + name: "Filscan - Calibration", + url: "https://calibration.filscan.io", + standard: "none", + }, + { + name: "Filscout - Calibration", + url: "https://calibration.filscout.com/en", + standard: "none", + }, + ], + testnet: !0, + slug: "filecoin-calibration-testnet", + }, + Vqt = { + name: "Oone Chain Testnet", + chain: "OONE", + rpc: [ + "https://oone-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://blockchain-test.adigium.world", + ], + faucets: ["https://apps-test.adigium.com/faucet"], + nativeCurrency: { name: "Oone", symbol: "tOONE", decimals: 18 }, + infoURL: "https://oone.world", + shortName: "oonetest", + chainId: 333777, + networkId: 333777, + explorers: [ + { + name: "expedition", + url: "https://explorer-test.adigium.world", + standard: "none", + }, + ], + testnet: !0, + slug: "oone-chain-testnet", + }, + Gqt = { + name: "Polis Testnet", + chain: "Sparta", + icon: { + url: "ipfs://QmagWrtyApex28H2QeXcs3jJ2F7p2K7eESz3cDbHdQ3pjG", + width: 1050, + height: 1050, + format: "png", + }, + rpc: [ + "https://polis-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://sparta-rpc.polis.tech", + ], + faucets: ["https://faucet.polis.tech"], + nativeCurrency: { name: "tPolis", symbol: "tPOLIS", decimals: 18 }, + infoURL: "https://polis.tech", + shortName: "sparta", + chainId: 333888, + networkId: 333888, + testnet: !0, + slug: "polis-testnet", + }, + Yqt = { + name: "Polis Mainnet", + chain: "Olympus", + icon: { + url: "ipfs://QmagWrtyApex28H2QeXcs3jJ2F7p2K7eESz3cDbHdQ3pjG", + width: 1050, + height: 1050, + format: "png", + }, + rpc: [ + "https://polis.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.polis.tech", + ], + faucets: ["https://faucet.polis.tech"], + nativeCurrency: { name: "Polis", symbol: "POLIS", decimals: 18 }, + infoURL: "https://polis.tech", + shortName: "olympus", + chainId: 333999, + networkId: 333999, + testnet: !1, + slug: "polis", + }, + $qt = { + name: "Metal C-Chain", + chain: "Metal", + rpc: [ + "https://metal-c-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://api.metalblockchain.org/ext/bc/C/rpc", + ], + faucets: [], + nativeCurrency: { name: "Metal", symbol: "METAL", decimals: 18 }, + infoURL: "https://www.metalblockchain.org/", + shortName: "metal", + chainId: 381931, + networkId: 381931, + slip44: 9005, + explorers: [ + { + name: "metalscan", + url: "https://metalscan.io", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "metal-c-chain", + }, + Jqt = { + name: "Metal Tahoe C-Chain", + chain: "Metal", + rpc: [ + "https://metal-tahoe-c-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://tahoe.metalblockchain.org/ext/bc/C/rpc", + ], + faucets: [], + nativeCurrency: { name: "Metal", symbol: "METAL", decimals: 18 }, + infoURL: "https://www.metalblockchain.org/", + shortName: "Tahoe", + chainId: 381932, + networkId: 381932, + slip44: 9005, + explorers: [ + { + name: "metalscan", + url: "https://tahoe.metalscan.io", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "metal-tahoe-c-chain", + }, + Zqt = { + name: "Kekchain", + chain: "kek", + rpc: [ + "https://kekchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://mainnet.kekchain.com", + ], + faucets: [], + nativeCurrency: { name: "KEK", symbol: "KEK", decimals: 18 }, + infoURL: "https://kekchain.com", + shortName: "KEK", + chainId: 420420, + networkId: 103090, + icon: { + url: "ipfs://QmNzwHAmaaQyuvKudrzGkrTT2GMshcmCmJ9FH8gG2mNJtM", + width: 401, + height: 401, + format: "svg", + }, + explorers: [ + { + name: "blockscout", + url: "https://mainnet-explorer.kekchain.com", + icon: "kek", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "kekchain", + }, + Qqt = { + name: "Kekchain (kektest)", + chain: "kek", + rpc: [ + "https://kekchain-kektest.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://testnet.kekchain.com", + ], + faucets: [], + nativeCurrency: { name: "tKEK", symbol: "tKEK", decimals: 18 }, + infoURL: "https://kekchain.com", + shortName: "tKEK", + chainId: 420666, + networkId: 1, + icon: { + url: "ipfs://QmNzwHAmaaQyuvKudrzGkrTT2GMshcmCmJ9FH8gG2mNJtM", + width: 401, + height: 401, + format: "svg", + }, + explorers: [ + { + name: "blockscout", + url: "https://testnet-explorer.kekchain.com", + icon: "kek", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "kekchain-kektest", + }, + Xqt = { + name: "Arbitrum Rinkeby", + title: "Arbitrum Testnet Rinkeby", + chainId: 421611, + shortName: "arb-rinkeby", + chain: "ETH", + networkId: 421611, + nativeCurrency: { + name: "Arbitrum Rinkeby Ether", + symbol: "ETH", + decimals: 18, + }, + rpc: [ + "https://arbitrum-rinkeby.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rinkeby.arbitrum.io/rpc", + ], + faucets: [ + "http://fauceth.komputing.org?chain=421611&address=${ADDRESS}", + ], + infoURL: "https://arbitrum.io", + explorers: [ + { + name: "arbiscan-testnet", + url: "https://testnet.arbiscan.io", + standard: "EIP3091", + }, + { + name: "arbitrum-rinkeby", + url: "https://rinkeby-explorer.arbitrum.io", + standard: "EIP3091", + }, + ], + parent: { + type: "L2", + chain: "eip155-4", + bridges: [{ url: "https://bridge.arbitrum.io" }], + }, + testnet: !0, + slug: "arbitrum-rinkeby", + }, + eFt = { + name: "Arbitrum Goerli", + title: "Arbitrum Goerli Rollup Testnet", + chainId: 421613, + shortName: "arb-goerli", + chain: "ETH", + networkId: 421613, + nativeCurrency: { + name: "Arbitrum Goerli Ether", + symbol: "AGOR", + decimals: 18, + }, + rpc: [ + "https://arbitrum-goerli.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://arb-goerli.g.alchemy.com/v2/${ALCHEMY_API_KEY}", + "https://abritrum-goerli.infura.io/v3/${INFURA_API_KEY}", + "https://goerli-rollup.arbitrum.io/rpc/", + ], + faucets: [], + infoURL: "https://arbitrum.io/", + explorers: [ + { + name: "Arbitrum Goerli Rollup Explorer", + url: "https://goerli-rollup-explorer.arbitrum.io", + standard: "EIP3091", + }, + ], + parent: { + type: "L2", + chain: "eip155-5", + bridges: [{ url: "https://bridge.arbitrum.io/" }], + }, + icon: { + url: "ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/arbitrum/512.png", + height: 512, + width: 512, + format: "png", + sizes: [512, 256, 128, 64, 32, 16], + }, + testnet: !0, + slug: "arbitrum-goerli", + }, + tFt = { + name: "Fastex Chain testnet", + chain: "FTN", + title: "Fastex Chain testnet", + rpc: [ + "https://fastex-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.testnet.fastexchain.com", + ], + features: [{ name: "EIP155" }, { name: "EIP1559" }], + faucets: [], + nativeCurrency: { name: "FTN", symbol: "FTN", decimals: 18 }, + infoURL: "https://fastex.com", + shortName: "ftn", + chainId: 424242, + networkId: 424242, + explorers: [ + { + name: "blockscout", + url: "https://testnet.ftnscan.com", + standard: "none", + }, + ], + testnet: !0, + slug: "fastex-chain-testnet", + }, + rFt = { + name: "Dexalot Subnet Testnet", + chain: "DEXALOT", + icon: { + url: "ipfs://QmfVxdrWjtUKiGzqFDzAxHH2FqwP2aRuZTGcYWdWg519Xy", + width: 256, + height: 256, + format: "png", + }, + rpc: [ + "https://dexalot-subnet-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://subnets.avax.network/dexalot/testnet/rpc", + ], + faucets: ["https://faucet.avax.network/?subnet=dexalot"], + nativeCurrency: { name: "Dexalot", symbol: "ALOT", decimals: 18 }, + infoURL: "https://dexalot.com", + shortName: "dexalot-testnet", + chainId: 432201, + networkId: 432201, + explorers: [ + { + name: "Avalanche Subnet Testnet Explorer", + url: "https://subnets-test.avax.network/dexalot", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "dexalot-subnet-testnet", + }, + nFt = { + name: "Dexalot Subnet", + chain: "DEXALOT", + icon: { + url: "ipfs://QmfVxdrWjtUKiGzqFDzAxHH2FqwP2aRuZTGcYWdWg519Xy", + width: 256, + height: 256, + format: "png", + }, + rpc: [ + "https://dexalot-subnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://subnets.avax.network/dexalot/mainnet/rpc", + ], + faucets: [], + nativeCurrency: { name: "Dexalot", symbol: "ALOT", decimals: 18 }, + infoURL: "https://dexalot.com", + shortName: "dexalot", + chainId: 432204, + networkId: 432204, + explorers: [ + { + name: "Avalanche Subnet Explorer", + url: "https://subnets.avax.network/dexalot", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "dexalot-subnet", + }, + aFt = { + name: "Weelink Testnet", + chain: "WLK", + rpc: [ + "https://weelink-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://weelinknode1c.gw002.oneitfarm.com", + ], + faucets: ["https://faucet.weelink.gw002.oneitfarm.com"], + nativeCurrency: { + name: "Weelink Chain Token", + symbol: "tWLK", + decimals: 18, + }, + infoURL: "https://weelink.cloud", + shortName: "wlkt", + chainId: 444900, + networkId: 444900, + explorers: [ + { + name: "weelink-testnet", + url: "https://weelink.cloud/#/blockView/overview", + standard: "none", + }, + ], + testnet: !0, + slug: "weelink-testnet", + }, + iFt = { + name: "OpenChain Mainnet", + chain: "OpenChain", + rpc: [ + "https://openchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://baas-rpc.luniverse.io:18545?lChainId=1641349324562974539", + ], + faucets: [], + nativeCurrency: { name: "OpenCoin", symbol: "OPC", decimals: 10 }, + infoURL: "https://www.openchain.live", + shortName: "oc", + chainId: 474142, + networkId: 474142, + explorers: [ + { + name: "SIDE SCAN", + url: "https://sidescan.luniverse.io/1641349324562974539", + standard: "none", + }, + ], + testnet: !1, + slug: "openchain", + }, + sFt = { + name: "CMP-Testnet", + chain: "CMP", + rpc: [ + "https://cmp-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://galaxy.block.caduceus.foundation", + "wss://galaxy.block.caduceus.foundation", + ], + faucets: ["https://dev.caduceus.foundation/testNetwork"], + nativeCurrency: { + name: "Caduceus Testnet Token", + symbol: "CMP", + decimals: 18, + }, + infoURL: "https://caduceus.foundation/", + shortName: "cmp", + chainId: 512512, + networkId: 512512, + explorers: [ + { + name: "Galaxy Scan", + url: "https://galaxy.scan.caduceus.foundation", + standard: "none", + }, + ], + testnet: !0, + slug: "cmp-testnet", + }, + oFt = { + name: "ethereum Fair", + chainId: 513100, + networkId: 513100, + shortName: "etf", + chain: "ETF", + nativeCurrency: { name: "EthereumFair", symbol: "ETHF", decimals: 18 }, + rpc: [ + "https://ethereum-fair.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.etherfair.org", + ], + faucets: [], + explorers: [ + { + name: "etherfair", + url: "https://explorer.etherfair.org", + standard: "EIP3091", + }, + ], + infoURL: "https://etherfair.org", + testnet: !1, + slug: "ethereum-fair", + }, + cFt = { + name: "Scroll", + chain: "ETH", + rpc: [], + faucets: [], + nativeCurrency: { name: "Ether", symbol: "ETH", decimals: 18 }, + infoURL: "https://scroll.io", + shortName: "scr", + chainId: 534352, + networkId: 534352, + explorers: [], + parent: { type: "L2", chain: "eip155-1", bridges: [] }, + testnet: !1, + slug: "scroll", + }, + uFt = { + name: "Scroll Alpha Testnet", + chain: "ETH", + status: "incubating", + rpc: [ + "https://scroll-alpha-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://alpha-rpc.scroll.io/l2", + ], + faucets: [], + nativeCurrency: { name: "Ether", symbol: "ETH", decimals: 18 }, + infoURL: "https://scroll.io", + shortName: "scr-alpha", + chainId: 534353, + networkId: 534353, + explorers: [ + { + name: "Scroll Alpha Testnet Block Explorer", + url: "https://blockscout.scroll.io", + standard: "EIP3091", + }, + ], + parent: { type: "L2", chain: "eip155-5", bridges: [] }, + testnet: !0, + slug: "scroll-alpha-testnet", + }, + lFt = { + name: "Scroll Pre-Alpha Testnet", + chain: "ETH", + rpc: [ + "https://scroll-pre-alpha-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://prealpha-rpc.scroll.io/l2", + ], + faucets: ["https://prealpha.scroll.io/faucet"], + nativeCurrency: { name: "Ether", symbol: "TSETH", decimals: 18 }, + infoURL: "https://scroll.io", + shortName: "scr-prealpha", + chainId: 534354, + networkId: 534354, + explorers: [ + { + name: "Scroll L2 Block Explorer", + url: "https://l2scan.scroll.io", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "scroll-pre-alpha-testnet", + }, + dFt = { + name: "Bear Network Chain Mainnet", + chain: "BRNKC", + icon: { + url: "ipfs://QmQqhH28QpUrreoRw5Gj8YShzdHxxVGMjfVrx3TqJNLSLv", + width: 1067, + height: 1067, + format: "png", + }, + rpc: [ + "https://bear-network-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://brnkc-mainnet.bearnetwork.net", + "https://brnkc-mainnet1.bearnetwork.net", + ], + faucets: [], + nativeCurrency: { + name: "Bear Network Chain Native Token", + symbol: "BRNKC", + decimals: 18, + }, + infoURL: "https://bearnetwork.net", + shortName: "BRNKC", + chainId: 641230, + networkId: 641230, + explorers: [ + { + name: "brnkscan", + url: "https://brnkscan.bearnetwork.net", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "bear-network-chain", + }, + pFt = { + name: "Vision - Vpioneer Test Chain", + chain: "Vision-Vpioneer", + rpc: [ + "https://vision-vpioneer-test-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://vpioneer.infragrid.v.network/ethereum/compatible", + ], + faucets: ["https://vpioneerfaucet.visionscan.org"], + nativeCurrency: { name: "VS", symbol: "VS", decimals: 18 }, + infoURL: "https://visionscan.org", + shortName: "vpioneer", + chainId: 666666, + networkId: 666666, + slip44: 60, + testnet: !0, + slug: "vision-vpioneer-test-chain", + }, + hFt = { + name: "Bear Network Chain Testnet", + chain: "BRNKCTEST", + icon: { + url: "ipfs://QmQqhH28QpUrreoRw5Gj8YShzdHxxVGMjfVrx3TqJNLSLv", + width: 1067, + height: 1067, + format: "png", + }, + rpc: [ + "https://bear-network-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://brnkc-test.bearnetwork.net", + ], + faucets: ["https://faucet.bearnetwork.net"], + nativeCurrency: { + name: "Bear Network Chain Testnet Token", + symbol: "tBRNKC", + decimals: 18, + }, + infoURL: "https://bearnetwork.net", + shortName: "BRNKCTEST", + chainId: 751230, + networkId: 751230, + explorers: [ + { + name: "brnktestscan", + url: "https://brnktest-scan.bearnetwork.net", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "bear-network-chain-testnet", + }, + fFt = { + name: "OctaSpace", + chain: "OCTA", + rpc: [ + "https://octaspace.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.octa.space", + "wss://rpc.octa.space", + ], + faucets: [], + nativeCurrency: { name: "OctaSpace", symbol: "OCTA", decimals: 18 }, + infoURL: "https://octa.space", + shortName: "octa", + chainId: 800001, + networkId: 800001, + icon: { + url: "ipfs://QmVhezQHkqSZ5Tvtsw18giA1yBjV1URSsBQ7HenUh6p6oC", + width: 512, + height: 512, + format: "png", + }, + explorers: [ + { + name: "blockscout", + url: "https://explorer.octa.space", + icon: "blockscout", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "octaspace", + }, + mFt = { + name: "4GoodNetwork", + chain: "4GN", + rpc: [ + "https://4goodnetwork.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://chain.deptofgood.com", + ], + faucets: [], + nativeCurrency: { name: "APTA", symbol: "APTA", decimals: 18 }, + infoURL: "https://bloqs4good.com", + shortName: "bloqs4good", + chainId: 846e3, + networkId: 846e3, + testnet: !1, + slug: "4goodnetwork", + }, + yFt = { + name: "Vision - Mainnet", + chain: "Vision", + rpc: [ + "https://vision.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://infragrid.v.network/ethereum/compatible", + ], + faucets: [], + nativeCurrency: { name: "VS", symbol: "VS", decimals: 18 }, + infoURL: "https://www.v.network", + explorers: [ + { + name: "Visionscan", + url: "https://www.visionscan.org", + standard: "EIP3091", + }, + ], + shortName: "vision", + chainId: 888888, + networkId: 888888, + slip44: 60, + testnet: !1, + slug: "vision", + }, + gFt = { + name: "Posichain Mainnet Shard 0", + chain: "PSC", + rpc: [ + "https://posichain-shard-0.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://api.posichain.org", + "https://api.s0.posichain.org", + ], + faucets: ["https://faucet.posichain.org/"], + nativeCurrency: { + name: "Posichain Native Token", + symbol: "POSI", + decimals: 18, + }, + infoURL: "https://posichain.org", + shortName: "psc-s0", + chainId: 9e5, + networkId: 9e5, + explorers: [ + { + name: "Posichain Explorer", + url: "https://explorer.posichain.org", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "posichain-shard-0", + }, + bFt = { + name: "Posichain Testnet Shard 0", + chain: "PSC", + rpc: [ + "https://posichain-testnet-shard-0.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://api.s0.t.posichain.org", + ], + faucets: ["https://faucet.posichain.org/"], + nativeCurrency: { + name: "Posichain Native Token", + symbol: "POSI", + decimals: 18, + }, + infoURL: "https://posichain.org", + shortName: "psc-t-s0", + chainId: 91e4, + networkId: 91e4, + explorers: [ + { + name: "Posichain Explorer Testnet", + url: "https://explorer-testnet.posichain.org", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "posichain-testnet-shard-0", + }, + vFt = { + name: "Posichain Devnet Shard 0", + chain: "PSC", + rpc: [ + "https://posichain-devnet-shard-0.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://api.s0.d.posichain.org", + ], + faucets: ["https://faucet.posichain.org/"], + nativeCurrency: { + name: "Posichain Native Token", + symbol: "POSI", + decimals: 18, + }, + infoURL: "https://posichain.org", + shortName: "psc-d-s0", + chainId: 92e4, + networkId: 92e4, + explorers: [ + { + name: "Posichain Explorer Devnet", + url: "https://explorer-devnet.posichain.org", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "posichain-devnet-shard-0", + }, + wFt = { + name: "Posichain Devnet Shard 1", + chain: "PSC", + rpc: [ + "https://posichain-devnet-shard-1.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://api.s1.d.posichain.org", + ], + faucets: ["https://faucet.posichain.org/"], + nativeCurrency: { + name: "Posichain Native Token", + symbol: "POSI", + decimals: 18, + }, + infoURL: "https://posichain.org", + shortName: "psc-d-s1", + chainId: 920001, + networkId: 920001, + explorers: [ + { + name: "Posichain Explorer Devnet", + url: "https://explorer-devnet.posichain.org", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "posichain-devnet-shard-1", + }, + _Ft = { + name: "FNCY Testnet", + chain: "FNCY", + rpc: [ + "https://fncy-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://fncy-testnet-seed.fncy.world", + ], + faucets: ["https://faucet-testnet.fncy.world"], + nativeCurrency: { name: "FNCY", symbol: "FNCY", decimals: 18 }, + infoURL: "https://fncyscan-testnet.fncy.world", + shortName: "tFNCY", + chainId: 923018, + networkId: 923018, + icon: { + url: "ipfs://QmfXCh6UnaEHn3Evz7RFJ3p2ggJBRm9hunDHegeoquGuhD", + width: 256, + height: 256, + format: "png", + }, + explorers: [ + { + name: "fncy scan testnet", + url: "https://fncyscan-testnet.fncy.world", + icon: "fncy", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "fncy-testnet", + }, + xFt = { + name: "Eluvio Content Fabric", + chain: "Eluvio", + rpc: [ + "https://eluvio-content-fabric.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://host-76-74-28-226.contentfabric.io/eth/", + "https://host-76-74-28-232.contentfabric.io/eth/", + "https://host-76-74-29-2.contentfabric.io/eth/", + "https://host-76-74-29-8.contentfabric.io/eth/", + "https://host-76-74-29-34.contentfabric.io/eth/", + "https://host-76-74-29-35.contentfabric.io/eth/", + "https://host-154-14-211-98.contentfabric.io/eth/", + "https://host-154-14-192-66.contentfabric.io/eth/", + "https://host-60-240-133-202.contentfabric.io/eth/", + "https://host-64-235-250-98.contentfabric.io/eth/", + ], + faucets: [], + nativeCurrency: { name: "ELV", symbol: "ELV", decimals: 18 }, + infoURL: "https://eluv.io", + shortName: "elv", + chainId: 955305, + networkId: 955305, + slip44: 1011, + explorers: [ + { + name: "blockscout", + url: "https://explorer.eluv.io", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "eluvio-content-fabric", + }, + TFt = { + name: "Etho Protocol", + chain: "ETHO", + rpc: [ + "https://etho-protocol.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.ethoprotocol.com", + ], + faucets: [], + nativeCurrency: { name: "Etho Protocol", symbol: "ETHO", decimals: 18 }, + infoURL: "https://ethoprotocol.com", + shortName: "etho", + chainId: 1313114, + networkId: 1313114, + slip44: 1313114, + explorers: [ + { + name: "blockscout", + url: "https://explorer.ethoprotocol.com", + standard: "none", + }, + ], + testnet: !1, + slug: "etho-protocol", + }, + EFt = { + name: "Xerom", + chain: "XERO", + rpc: [ + "https://xerom.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.xerom.org", + ], + faucets: [], + nativeCurrency: { name: "Xerom Ether", symbol: "XERO", decimals: 18 }, + infoURL: "https://xerom.org", + shortName: "xero", + chainId: 1313500, + networkId: 1313500, + testnet: !1, + slug: "xerom", + }, + CFt = { + name: "Kintsugi", + title: "Kintsugi merge testnet", + chain: "ETH", + rpc: [ + "https://kintsugi.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.kintsugi.themerge.dev", + ], + faucets: [ + "http://fauceth.komputing.org?chain=1337702&address=${ADDRESS}", + "https://faucet.kintsugi.themerge.dev", + ], + nativeCurrency: { + name: "kintsugi Ethere", + symbol: "kiETH", + decimals: 18, + }, + infoURL: "https://kintsugi.themerge.dev/", + shortName: "kintsugi", + chainId: 1337702, + networkId: 1337702, + explorers: [ + { + name: "kintsugi explorer", + url: "https://explorer.kintsugi.themerge.dev", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "kintsugi", + }, + IFt = { + name: "Kiln", + chain: "ETH", + rpc: [ + "https://kiln.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.kiln.themerge.dev", + ], + faucets: [ + "https://faucet.kiln.themerge.dev", + "https://kiln-faucet.pk910.de", + "https://kilnfaucet.com", + ], + nativeCurrency: { name: "Testnet ETH", symbol: "ETH", decimals: 18 }, + infoURL: "https://kiln.themerge.dev/", + shortName: "kiln", + chainId: 1337802, + networkId: 1337802, + icon: { + url: "ipfs://QmdwQDr6vmBtXmK2TmknkEuZNoaDqTasFdZdu3DRw8b2wt", + width: 1e3, + height: 1628, + format: "png", + }, + explorers: [ + { + name: "Kiln Explorer", + url: "https://explorer.kiln.themerge.dev", + icon: "ethereum", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "kiln", + }, + AFt = { + name: "Zhejiang", + chain: "ETH", + rpc: [ + "https://zhejiang.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.zhejiang.ethpandaops.io", + ], + faucets: [ + "https://faucet.zhejiang.ethpandaops.io", + "https://zhejiang-faucet.pk910.de", + ], + nativeCurrency: { name: "Testnet ETH", symbol: "ETH", decimals: 18 }, + infoURL: "https://zhejiang.ethpandaops.io", + shortName: "zhejiang", + chainId: 1337803, + networkId: 1337803, + icon: { + url: "ipfs://QmdwQDr6vmBtXmK2TmknkEuZNoaDqTasFdZdu3DRw8b2wt", + width: 1e3, + height: 1628, + format: "png", + }, + explorers: [ + { + name: "Zhejiang Explorer", + url: "https://zhejiang.beaconcha.in", + icon: "ethereum", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "zhejiang", + }, + kFt = { + name: "Plian Mainnet Main", + chain: "Plian", + rpc: [ + "https://plian-main.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://mainnet.plian.io/pchain", + ], + faucets: [], + nativeCurrency: { name: "Plian Token", symbol: "PI", decimals: 18 }, + infoURL: "https://plian.org/", + shortName: "plian-mainnet", + chainId: 2099156, + networkId: 2099156, + explorers: [ + { + name: "piscan", + url: "https://piscan.plian.org/pchain", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "plian-main", + }, + SFt = { + name: "PlatON Dev Testnet2", + chain: "PlatON", + rpc: [ + "https://platon-dev-testnet2.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://devnet2openapi.platon.network/rpc", + "wss://devnet2openapi.platon.network/ws", + ], + faucets: ["https://devnet2faucet.platon.network/faucet"], + nativeCurrency: { name: "LAT", symbol: "lat", decimals: 18 }, + infoURL: "https://www.platon.network", + shortName: "platondev2", + chainId: 2206132, + networkId: 1, + icon: { + url: "ipfs://QmT7PSXBiVBma6E15hNkivmstqLu3JSnG1jXN5pTmcCGRC", + width: 200, + height: 200, + format: "png", + }, + explorers: [ + { + name: "PlatON explorer", + url: "https://devnet2scan.platon.network", + standard: "none", + }, + ], + testnet: !0, + slug: "platon-dev-testnet2", + }, + MFt = { + name: "Filecoin - Butterfly testnet", + chain: "FIL", + status: "incubating", + rpc: [], + faucets: ["https://faucet.butterfly.fildev.network"], + nativeCurrency: { + name: "testnet filecoin", + symbol: "tFIL", + decimals: 18, + }, + infoURL: "https://filecoin.io", + shortName: "filecoin-butterfly", + icon: { + url: "ipfs://QmS9r9XQkMHVomWcSBNDkKkz9n87h9bH9ssabeiKZtANoU", + width: 1e3, + height: 1e3, + format: "png", + }, + chainId: 3141592, + networkId: 3141592, + slip44: 1, + explorers: [], + testnet: !0, + slug: "filecoin-butterfly-testnet", + }, + PFt = { + name: "Imversed Mainnet", + chain: "Imversed", + rpc: [ + "https://imversed.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://jsonrpc.imversed.network", + "https://ws-jsonrpc.imversed.network", + ], + faucets: [], + nativeCurrency: { name: "Imversed Token", symbol: "IMV", decimals: 18 }, + infoURL: "https://imversed.com", + shortName: "imversed", + chainId: 5555555, + networkId: 5555555, + icon: { + url: "ipfs://QmYwvmJZ1bgTdiZUKXk4SifTpTj286CkZjMCshUyJuBFH1", + width: 400, + height: 400, + format: "png", + }, + explorers: [ + { + name: "Imversed EVM explorer (Blockscout)", + url: "https://txe.imversed.network", + icon: "imversed", + standard: "EIP3091", + }, + { + name: "Imversed Cosmos Explorer (Big Dipper)", + url: "https://tex-c.imversed.com", + icon: "imversed", + standard: "none", + }, + ], + testnet: !1, + slug: "imversed", + }, + RFt = { + name: "Imversed Testnet", + chain: "Imversed", + rpc: [ + "https://imversed-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://jsonrpc-test.imversed.network", + "https://ws-jsonrpc-test.imversed.network", + ], + faucets: [], + nativeCurrency: { name: "Imversed Token", symbol: "IMV", decimals: 18 }, + infoURL: "https://imversed.com", + shortName: "imversed-testnet", + chainId: 5555558, + networkId: 5555558, + icon: { + url: "ipfs://QmYwvmJZ1bgTdiZUKXk4SifTpTj286CkZjMCshUyJuBFH1", + width: 400, + height: 400, + format: "png", + }, + explorers: [ + { + name: "Imversed EVM Explorer (Blockscout)", + url: "https://txe-test.imversed.network", + icon: "imversed", + standard: "EIP3091", + }, + { + name: "Imversed Cosmos Explorer (Big Dipper)", + url: "https://tex-t.imversed.com", + icon: "imversed", + standard: "none", + }, + ], + testnet: !0, + slug: "imversed-testnet", + }, + BFt = { + name: "Saakuru Mainnet", + chain: "Saakuru", + icon: { + url: "ipfs://QmduEdtFobPpZWSc45MU6RKxZfTEzLux2z8ikHFhT8usqv", + width: 1024, + height: 1024, + format: "png", + }, + rpc: [ + "https://saakuru.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.saakuru.network", + ], + faucets: [], + nativeCurrency: { name: "OAS", symbol: "OAS", decimals: 18 }, + infoURL: "https://saakuru.network", + shortName: "saakuru", + chainId: 7225878, + networkId: 7225878, + explorers: [ + { + name: "saakuru-explorer", + url: "https://explorer.saakuru.network", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "saakuru", + }, + NFt = { + name: "OpenVessel", + chain: "VSL", + icon: { + url: "ipfs://QmeknNzGCZXQK7egwfwyxQan7Lw8bLnqYsyoEgEbDNCzJX", + width: 600, + height: 529, + format: "png", + }, + rpc: [ + "https://openvessel.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://mainnet-external.openvessel.io", + ], + faucets: [], + nativeCurrency: { name: "Vessel ETH", symbol: "VETH", decimals: 18 }, + infoURL: "https://www.openvessel.io", + shortName: "vsl", + chainId: 7355310, + networkId: 7355310, + explorers: [ + { + name: "openvessel-mainnet", + url: "https://mainnet-explorer.openvessel.io", + standard: "none", + }, + ], + testnet: !1, + slug: "openvessel", + }, + OFt = { + name: "QL1 Testnet", + chain: "QOM", + status: "incubating", + rpc: [ + "https://ql1-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.testnet.qom.one", + ], + faucets: ["https://faucet.qom.one"], + nativeCurrency: { name: "Shiba Predator", symbol: "QOM", decimals: 18 }, + infoURL: "https://qom.one", + shortName: "tqom", + chainId: 7668378, + networkId: 7668378, + icon: { + url: "ipfs://QmRc1kJ7AgcDL1BSoMYudatWHTrz27K6WNTwGifQb5V17D", + width: 518, + height: 518, + format: "png", + }, + explorers: [ + { + name: "QL1 Testnet Explorer", + url: "https://testnet.qom.one", + icon: "qom", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "ql1-testnet", + }, + LFt = { + name: "Musicoin", + chain: "MUSIC", + rpc: [ + "https://musicoin.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://mewapi.musicoin.tw", + ], + faucets: [], + nativeCurrency: { name: "Musicoin", symbol: "MUSIC", decimals: 18 }, + infoURL: "https://musicoin.tw", + shortName: "music", + chainId: 7762959, + networkId: 7762959, + slip44: 184, + testnet: !1, + slug: "musicoin", + }, + DFt = { + name: "Plian Mainnet Subchain 1", + chain: "Plian", + rpc: [ + "https://plian-subchain-1.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://mainnet.plian.io/child_0", + ], + faucets: [], + nativeCurrency: { name: "Plian Token", symbol: "PI", decimals: 18 }, + infoURL: "https://plian.org", + shortName: "plian-mainnet-l2", + chainId: 8007736, + networkId: 8007736, + explorers: [ + { + name: "piscan", + url: "https://piscan.plian.org/child_0", + standard: "EIP3091", + }, + ], + parent: { chain: "eip155-2099156", type: "L2" }, + testnet: !1, + slug: "plian-subchain-1", + }, + qFt = { + name: "Plian Testnet Subchain 1", + chain: "Plian", + rpc: [ + "https://plian-testnet-subchain-1.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://testnet.plian.io/child_test", + ], + faucets: [], + nativeCurrency: { name: "Plian Token", symbol: "TPI", decimals: 18 }, + infoURL: "https://plian.org/", + shortName: "plian-testnet-l2", + chainId: 10067275, + networkId: 10067275, + explorers: [ + { + name: "piscan", + url: "https://testnet.plian.org/child_test", + standard: "EIP3091", + }, + ], + parent: { chain: "eip155-16658437", type: "L2" }, + testnet: !0, + slug: "plian-testnet-subchain-1", + }, + FFt = { + name: "Soverun Mainnet", + chain: "SVRN", + icon: { + url: "ipfs://QmTYazUzgY9Nn2mCjWwFUSLy3dG6i2PvALpwCNQvx1zXyi", + width: 1154, + height: 1154, + format: "png", + }, + rpc: [ + "https://soverun.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://mainnet-rpc.soverun.com", + ], + faucets: ["https://faucet.soverun.com"], + nativeCurrency: { name: "Soverun", symbol: "SVRN", decimals: 18 }, + infoURL: "https://soverun.com", + shortName: "SVRNm", + chainId: 10101010, + networkId: 10101010, + explorers: [ + { + name: "Soverun", + url: "https://explorer.soverun.com", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "soverun", + }, + WFt = { + name: "Sepolia", + title: "Ethereum Testnet Sepolia", + chain: "ETH", + rpc: [ + "https://sepolia.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.sepolia.org", + "https://rpc-sepolia.rockx.com", + ], + faucets: [ + "http://fauceth.komputing.org?chain=11155111&address=${ADDRESS}", + ], + nativeCurrency: { name: "Sepolia Ether", symbol: "ETH", decimals: 18 }, + infoURL: "https://sepolia.otterscan.io", + shortName: "sep", + chainId: 11155111, + networkId: 11155111, + explorers: [ + { + name: "etherscan-sepolia", + url: "https://sepolia.etherscan.io", + standard: "EIP3091", + }, + { + name: "otterscan-sepolia", + url: "https://sepolia.otterscan.io", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "sepolia", + }, + UFt = { + name: "PepChain Churchill", + chain: "PEP", + rpc: [ + "https://pepchain-churchill.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://churchill-rpc.pepchain.io", + ], + faucets: [], + nativeCurrency: { + name: "PepChain Churchill Ether", + symbol: "TPEP", + decimals: 18, + }, + infoURL: "https://pepchain.io", + shortName: "tpep", + chainId: 13371337, + networkId: 13371337, + testnet: !1, + slug: "pepchain-churchill", + }, + HFt = { + name: "Anduschain Mainnet", + chain: "anduschain", + rpc: [ + "https://anduschain.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.anduschain.io/rpc", + "wss://rpc.anduschain.io/ws", + ], + faucets: [], + nativeCurrency: { name: "DAON", symbol: "DEB", decimals: 18 }, + infoURL: "https://anduschain.io/", + shortName: "anduschain-mainnet", + chainId: 14288640, + networkId: 14288640, + explorers: [ + { + name: "anduschain explorer", + url: "https://explorer.anduschain.io", + icon: "daon", + standard: "none", + }, + ], + testnet: !1, + slug: "anduschain", + }, + zFt = { + name: "Plian Testnet Main", + chain: "Plian", + rpc: [ + "https://plian-testnet-main.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://testnet.plian.io/testnet", + ], + faucets: [], + nativeCurrency: { + name: "Plian Testnet Token", + symbol: "TPI", + decimals: 18, + }, + infoURL: "https://plian.org", + shortName: "plian-testnet", + chainId: 16658437, + networkId: 16658437, + explorers: [ + { + name: "piscan", + url: "https://testnet.plian.org/testnet", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "plian-testnet-main", + }, + jFt = { + name: "IOLite", + chain: "ILT", + rpc: [ + "https://iolite.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://net.iolite.io", + ], + faucets: [], + nativeCurrency: { name: "IOLite Ether", symbol: "ILT", decimals: 18 }, + infoURL: "https://iolite.io", + shortName: "ilt", + chainId: 18289463, + networkId: 18289463, + testnet: !1, + slug: "iolite", + }, + KFt = { + name: "SmartMesh Mainnet", + chain: "Spectrum", + rpc: [ + "https://smartmesh.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://jsonapi1.smartmesh.cn", + ], + faucets: [], + nativeCurrency: { + name: "SmartMesh Native Token", + symbol: "SMT", + decimals: 18, + }, + infoURL: "https://smartmesh.io", + shortName: "spectrum", + chainId: 20180430, + networkId: 1, + explorers: [ + { name: "spectrum", url: "https://spectrum.pub", standard: "none" }, + ], + testnet: !1, + slug: "smartmesh", + }, + VFt = { + name: "quarkblockchain", + chain: "QKI", + rpc: [ + "https://quarkblockchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://hz.rpc.qkiscan.cn", + "https://jp.rpc.qkiscan.io", + ], + faucets: [], + nativeCurrency: { + name: "quarkblockchain Native Token", + symbol: "QKI", + decimals: 18, + }, + infoURL: "https://quarkblockchain.org/", + shortName: "qki", + chainId: 20181205, + networkId: 20181205, + testnet: !1, + slug: "quarkblockchain", + }, + GFt = { + name: "Excelon Mainnet", + chain: "XLON", + icon: { + url: "ipfs://QmTV45o4jTe6ayscF1XWh1WXk5DPck4QohR5kQocSWjvQP", + width: 300, + height: 300, + format: "png", + }, + rpc: [ + "https://excelon.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://edgewallet1.xlon.org/", + ], + faucets: [], + nativeCurrency: { name: "Excelon", symbol: "xlon", decimals: 18 }, + infoURL: "https://xlon.org", + shortName: "xlon", + chainId: 22052002, + networkId: 22052002, + explorers: [ + { + name: "Excelon explorer", + url: "https://explorer.excelon.io", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "excelon", + }, + YFt = { + name: "Excoincial Chain Volta-Testnet", + chain: "TEXL", + icon: { + url: "ipfs://QmeooM7QicT1YbgY93XPd5p7JsCjYhN3qjWt68X57g6bVC", + width: 400, + height: 400, + format: "png", + }, + rpc: [ + "https://excoincial-chain-volta-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://testnet-rpc.exlscan.com", + ], + faucets: ["https://faucet.exlscan.com"], + nativeCurrency: { name: "TExlcoin", symbol: "TEXL", decimals: 18 }, + infoURL: "", + shortName: "exlvolta", + chainId: 27082017, + networkId: 27082017, + explorers: [ + { + name: "exlscan", + url: "https://testnet-explorer.exlscan.com", + icon: "exl", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "excoincial-chain-volta-testnet", + }, + $Ft = { + name: "Excoincial Chain Mainnet", + chain: "EXL", + icon: { + url: "ipfs://QmeooM7QicT1YbgY93XPd5p7JsCjYhN3qjWt68X57g6bVC", + width: 400, + height: 400, + format: "png", + }, + rpc: [ + "https://excoincial-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.exlscan.com", + ], + faucets: [], + nativeCurrency: { name: "Exlcoin", symbol: "EXL", decimals: 18 }, + infoURL: "", + shortName: "exl", + chainId: 27082022, + networkId: 27082022, + explorers: [ + { + name: "exlscan", + url: "https://exlscan.com", + icon: "exl", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "excoincial-chain", + }, + JFt = { + name: "Auxilium Network Mainnet", + chain: "AUX", + rpc: [ + "https://auxilium-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.auxilium.global", + ], + faucets: [], + nativeCurrency: { name: "Auxilium coin", symbol: "AUX", decimals: 18 }, + infoURL: "https://auxilium.global", + shortName: "auxi", + chainId: 28945486, + networkId: 28945486, + slip44: 344, + testnet: !1, + slug: "auxilium-network", + }, + ZFt = { + name: "Flachain Mainnet", + chain: "FLX", + icon: { + url: "ipfs://bafybeiadlvc4pfiykehyt2z67nvgt5w4vlov27olu5obvmryv4xzua4tae", + width: 256, + height: 256, + format: "png", + }, + rpc: [ + "https://flachain.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://flachain.flaexchange.top/", + ], + features: [{ name: "EIP155" }, { name: "EIP1559" }], + faucets: [], + nativeCurrency: { name: "Flacoin", symbol: "FLA", decimals: 18 }, + infoURL: "https://www.flaexchange.top", + shortName: "fla", + chainId: 29032022, + networkId: 29032022, + explorers: [ + { + name: "FLXExplorer", + url: "https://explorer.flaexchange.top", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "flachain", + }, + QFt = { + name: "Filecoin - Local testnet", + chain: "FIL", + status: "incubating", + rpc: [], + faucets: [], + nativeCurrency: { + name: "testnet filecoin", + symbol: "tFIL", + decimals: 18, + }, + infoURL: "https://filecoin.io", + shortName: "filecoin-local", + icon: { + url: "ipfs://QmS9r9XQkMHVomWcSBNDkKkz9n87h9bH9ssabeiKZtANoU", + width: 1e3, + height: 1e3, + format: "png", + }, + chainId: 31415926, + networkId: 31415926, + slip44: 1, + explorers: [], + testnet: !0, + slug: "filecoin-local-testnet", + }, + XFt = { + name: "Joys Digital Mainnet", + chain: "JOYS", + rpc: [ + "https://joys-digital.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://node.joys.digital", + ], + faucets: [], + nativeCurrency: { name: "JOYS", symbol: "JOYS", decimals: 18 }, + infoURL: "https://joys.digital", + shortName: "JOYS", + chainId: 35855456, + networkId: 35855456, + testnet: !1, + slug: "joys-digital", + }, + eWt = { + name: "maistestsubnet", + chain: "MAI", + rpc: [ + "https://maistestsubnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "http://174.138.9.169:9650/ext/bc/VUKSzFZKckx4PoZF9gX5QAqLPxbLzvu1vcssPG5QuodaJtdHT/rpc", + ], + faucets: [], + nativeCurrency: { name: "maistestsubnet", symbol: "MAI", decimals: 18 }, + infoURL: "", + shortName: "mais", + chainId: 43214913, + networkId: 43214913, + explorers: [ + { + name: "maistesntet", + url: "http://174.138.9.169:3006/?network=maistesntet", + standard: "none", + }, + ], + testnet: !0, + slug: "maistestsubnet", + }, + tWt = { + name: "Aquachain", + chain: "AQUA", + rpc: [ + "https://aquachain.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://c.onical.org", + "https://tx.aquacha.in/api", + ], + faucets: ["https://aquacha.in/faucet"], + nativeCurrency: { + name: "Aquachain Ether", + symbol: "AQUA", + decimals: 18, + }, + infoURL: "https://aquachain.github.io", + shortName: "aqua", + chainId: 61717561, + networkId: 61717561, + slip44: 61717561, + testnet: !1, + slug: "aquachain", + }, + rWt = { + name: "Autonity Bakerloo (Thames) Testnet", + chain: "AUT", + rpc: [ + "https://autonity-bakerloo-thames-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc1.bakerloo.autonity.org/", + "wss://rpc1.bakerloo.autonity.org/ws/", + ], + faucets: ["https://faucet.autonity.org/"], + nativeCurrency: { name: "Bakerloo Auton", symbol: "ATN", decimals: 18 }, + infoURL: "https://autonity.org/", + shortName: "bakerloo-0", + chainId: 6501e4, + networkId: 6501e4, + explorers: [ + { + name: "autonity-blockscout", + url: "https://bakerloo.autonity.org", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "autonity-bakerloo-thames-testnet", + }, + nWt = { + name: "Autonity Piccadilly (Thames) Testnet", + chain: "AUT", + rpc: [ + "https://autonity-piccadilly-thames-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc1.piccadilly.autonity.org/", + "wss://rpc1.piccadilly.autonity.org/ws/", + ], + faucets: ["https://faucet.autonity.org/"], + nativeCurrency: { + name: "Piccadilly Auton", + symbol: "ATN", + decimals: 18, + }, + infoURL: "https://autonity.org/", + shortName: "piccadilly-0", + chainId: 651e5, + networkId: 651e5, + explorers: [ + { + name: "autonity-blockscout", + url: "https://piccadilly.autonity.org", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "autonity-piccadilly-thames-testnet", + }, + aWt = { + name: "Joys Digital TestNet", + chain: "TOYS", + rpc: [ + "https://joys-digital-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://toys.joys.cash/", + ], + faucets: ["https://faucet.joys.digital/"], + nativeCurrency: { name: "TOYS", symbol: "TOYS", decimals: 18 }, + infoURL: "https://joys.digital", + shortName: "TOYS", + chainId: 99415706, + networkId: 99415706, + testnet: !0, + slug: "joys-digital-testnet", + }, + iWt = { + name: "Gather Mainnet Network", + chain: "GTH", + rpc: [ + "https://gather-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://mainnet.gather.network", + ], + faucets: [], + nativeCurrency: { name: "Gather", symbol: "GTH", decimals: 18 }, + infoURL: "https://gather.network", + shortName: "GTH", + chainId: 192837465, + networkId: 192837465, + explorers: [ + { + name: "Blockscout", + url: "https://explorer.gather.network", + standard: "none", + }, + ], + testnet: !1, + slug: "gather-network", + }, + sWt = { + name: "Neon EVM DevNet", + chain: "Solana", + rpc: [ + "https://neon-evm-devnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://devnet.neonevm.org", + ], + faucets: ["https://neonfaucet.org"], + icon: { + url: "ipfs://Qmcxevb3v8PEvnvfYgcG3bCBuPhe5YAdsHeaufDChSSR3Q", + width: 512, + height: 512, + format: "png", + }, + nativeCurrency: { name: "Neon", symbol: "NEON", decimals: 18 }, + infoURL: "https://neon-labs.org", + shortName: "neonevm-devnet", + chainId: 245022926, + networkId: 245022926, + explorers: [ + { + name: "native", + url: "https://devnet.explorer.neon-labs.org", + standard: "EIP3091", + }, + { + name: "neonscan", + url: "https://devnet.neonscan.org", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "neon-evm-devnet", + }, + oWt = { + name: "Neon EVM MainNet", + chain: "Solana", + rpc: [ + "https://neon-evm.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://mainnet.neonevm.org", + ], + faucets: [], + icon: { + url: "ipfs://Qmcxevb3v8PEvnvfYgcG3bCBuPhe5YAdsHeaufDChSSR3Q", + width: 512, + height: 512, + format: "png", + }, + nativeCurrency: { name: "Neon", symbol: "NEON", decimals: 18 }, + infoURL: "https://neon-labs.org", + shortName: "neonevm-mainnet", + chainId: 245022934, + networkId: 245022934, + explorers: [ + { + name: "native", + url: "https://mainnet.explorer.neon-labs.org", + standard: "EIP3091", + }, + { + name: "neonscan", + url: "https://mainnet.neonscan.org", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "neon-evm", + }, + cWt = { + name: "Neon EVM TestNet", + chain: "Solana", + rpc: [ + "https://neon-evm-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://testnet.neonevm.org", + ], + faucets: [], + icon: { + url: "ipfs://Qmcxevb3v8PEvnvfYgcG3bCBuPhe5YAdsHeaufDChSSR3Q", + width: 512, + height: 512, + format: "png", + }, + nativeCurrency: { name: "Neon", symbol: "NEON", decimals: 18 }, + infoURL: "https://neon-labs.org", + shortName: "neonevm-testnet", + chainId: 245022940, + networkId: 245022940, + explorers: [ + { + name: "native", + url: "https://testnet.explorer.neon-labs.org", + standard: "EIP3091", + }, + { + name: "neonscan", + url: "https://testnet.neonscan.org", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "neon-evm-testnet", + }, + uWt = { + name: "OneLedger Mainnet", + chain: "OLT", + icon: { + url: "ipfs://QmRhqq4Gp8G9w27ND3LeFW49o5PxcxrbJsqHbpBFtzEMfC", + width: 225, + height: 225, + format: "png", + }, + rpc: [ + "https://oneledger.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://mainnet-rpc.oneledger.network", + ], + faucets: [], + nativeCurrency: { name: "OLT", symbol: "OLT", decimals: 18 }, + infoURL: "https://oneledger.io", + shortName: "oneledger", + chainId: 311752642, + networkId: 311752642, + explorers: [ + { + name: "OneLedger Block Explorer", + url: "https://mainnet-explorer.oneledger.network", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "oneledger", + }, + lWt = { + name: "Calypso NFT Hub (SKALE Testnet)", + title: "Calypso NFT Hub Testnet", + chain: "staging-utter-unripe-menkar", + rpc: [ + "https://calypso-nft-hub-skale-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://staging-v3.skalenodes.com/v1/staging-utter-unripe-menkar", + ], + faucets: ["https://sfuel.dirtroad.dev/staging"], + nativeCurrency: { name: "sFUEL", symbol: "sFUEL", decimals: 18 }, + infoURL: "https://calypsohub.network/", + shortName: "calypso-testnet", + chainId: 344106930, + networkId: 344106930, + explorers: [ + { + name: "Blockscout", + url: "https://staging-utter-unripe-menkar.explorer.staging-v3.skalenodes.com", + icon: "calypso", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "calypso-nft-hub-skale-testnet", + }, + dWt = { + name: "Gather Testnet Network", + chain: "GTH", + rpc: [ + "https://gather-testnet-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://testnet.gather.network", + ], + faucets: [], + nativeCurrency: { name: "Gather", symbol: "GTH", decimals: 18 }, + infoURL: "https://gather.network", + shortName: "tGTH", + chainId: 356256156, + networkId: 356256156, + explorers: [ + { + name: "Blockscout", + url: "https://testnet-explorer.gather.network", + standard: "none", + }, + ], + testnet: !0, + slug: "gather-testnet-network", + }, + pWt = { + name: "Gather Devnet Network", + chain: "GTH", + rpc: [ + "https://gather-devnet-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://devnet.gather.network", + ], + faucets: [], + nativeCurrency: { name: "Gather", symbol: "GTH", decimals: 18 }, + infoURL: "https://gather.network", + shortName: "dGTH", + chainId: 486217935, + networkId: 486217935, + explorers: [ + { + name: "Blockscout", + url: "https://devnet-explorer.gather.network", + standard: "none", + }, + ], + testnet: !1, + slug: "gather-devnet-network", + }, + hWt = { + name: "Nebula Staging", + chain: "staging-faint-slimy-achird", + rpc: [ + "https://nebula-staging.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://staging-v3.skalenodes.com/v1/staging-faint-slimy-achird", + "wss://staging-v3.skalenodes.com/v1/ws/staging-faint-slimy-achird", + ], + faucets: [], + nativeCurrency: { name: "sFUEL", symbol: "sFUEL", decimals: 18 }, + infoURL: "https://nebulachain.io/", + shortName: "nebula-staging", + chainId: 503129905, + networkId: 503129905, + explorers: [ + { + name: "nebula", + url: "https://staging-faint-slimy-achird.explorer.staging-v3.skalenodes.com", + icon: "nebula", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "nebula-staging", + }, + fWt = { + name: "IPOS Network", + chain: "IPOS", + rpc: [ + "https://ipos-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.iposlab.com", + "https://rpc2.iposlab.com", + ], + faucets: [], + nativeCurrency: { + name: "IPOS Network Ether", + symbol: "IPOS", + decimals: 18, + }, + infoURL: "https://iposlab.com", + shortName: "ipos", + chainId: 1122334455, + networkId: 1122334455, + testnet: !1, + slug: "ipos-network", + }, + mWt = { + name: "Aurora Mainnet", + chain: "NEAR", + rpc: [ + "https://aurora.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://mainnet.aurora.dev", + ], + faucets: [], + nativeCurrency: { name: "Ether", symbol: "ETH", decimals: 18 }, + infoURL: "https://aurora.dev", + shortName: "aurora", + chainId: 1313161554, + networkId: 1313161554, + explorers: [ + { + name: "aurorascan.dev", + url: "https://aurorascan.dev", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "aurora", + }, + yWt = { + name: "Aurora Testnet", + chain: "NEAR", + rpc: [ + "https://aurora-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://testnet.aurora.dev/", + ], + faucets: [], + nativeCurrency: { name: "Ether", symbol: "ETH", decimals: 18 }, + infoURL: "https://aurora.dev", + shortName: "aurora-testnet", + chainId: 1313161555, + networkId: 1313161555, + explorers: [ + { + name: "aurorascan.dev", + url: "https://testnet.aurorascan.dev", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "aurora-testnet", + }, + gWt = { + name: "Aurora Betanet", + chain: "NEAR", + rpc: [], + faucets: [], + nativeCurrency: { name: "Ether", symbol: "ETH", decimals: 18 }, + infoURL: "https://aurora.dev", + shortName: "aurora-betanet", + chainId: 1313161556, + networkId: 1313161556, + testnet: !1, + slug: "aurora-betanet", + }, + bWt = { + name: "Nebula Mainnet", + chain: "green-giddy-denebola", + rpc: [ + "https://nebula.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://mainnet.skalenodes.com/v1/green-giddy-denebola", + "wss://mainnet-proxy.skalenodes.com/v1/ws/green-giddy-denebola", + ], + faucets: [], + nativeCurrency: { name: "sFUEL", symbol: "sFUEL", decimals: 18 }, + infoURL: "https://nebulachain.io/", + shortName: "nebula-mainnet", + chainId: 1482601649, + networkId: 1482601649, + explorers: [ + { + name: "nebula", + url: "https://green-giddy-denebola.explorer.mainnet.skalenodes.com", + icon: "nebula", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "nebula", + }, + vWt = { + name: "Calypso NFT Hub (SKALE)", + title: "Calypso NFT Hub Mainnet", + chain: "honorable-steel-rasalhague", + rpc: [ + "https://calypso-nft-hub-skale.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://mainnet.skalenodes.com/v1/honorable-steel-rasalhague", + ], + faucets: ["https://sfuel.dirtroad.dev"], + nativeCurrency: { name: "sFUEL", symbol: "sFUEL", decimals: 18 }, + infoURL: "https://calypsohub.network/", + shortName: "calypso-mainnet", + chainId: 1564830818, + networkId: 1564830818, + explorers: [ + { + name: "Blockscout", + url: "https://honorable-steel-rasalhague.explorer.mainnet.skalenodes.com", + icon: "calypso", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "calypso-nft-hub-skale", + }, + wWt = { + name: "Harmony Mainnet Shard 0", + chain: "Harmony", + rpc: [ + "https://harmony-shard-0.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://api.harmony.one", + "https://api.s0.t.hmny.io", + ], + faucets: ["https://free-online-app.com/faucet-for-eth-evm-chains/"], + nativeCurrency: { name: "ONE", symbol: "ONE", decimals: 18 }, + infoURL: "https://www.harmony.one/", + shortName: "hmy-s0", + chainId: 16666e5, + networkId: 16666e5, + explorers: [ + { + name: "Harmony Block Explorer", + url: "https://explorer.harmony.one", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "harmony-shard-0", + }, + _Wt = { + name: "Harmony Mainnet Shard 1", + chain: "Harmony", + rpc: [ + "https://harmony-shard-1.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://api.s1.t.hmny.io", + ], + faucets: [], + nativeCurrency: { name: "ONE", symbol: "ONE", decimals: 18 }, + infoURL: "https://www.harmony.one/", + shortName: "hmy-s1", + chainId: 1666600001, + networkId: 1666600001, + testnet: !1, + slug: "harmony-shard-1", + }, + xWt = { + name: "Harmony Mainnet Shard 2", + chain: "Harmony", + rpc: [ + "https://harmony-shard-2.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://api.s2.t.hmny.io", + ], + faucets: [], + nativeCurrency: { name: "ONE", symbol: "ONE", decimals: 18 }, + infoURL: "https://www.harmony.one/", + shortName: "hmy-s2", + chainId: 1666600002, + networkId: 1666600002, + testnet: !1, + slug: "harmony-shard-2", + }, + TWt = { + name: "Harmony Mainnet Shard 3", + chain: "Harmony", + rpc: [ + "https://harmony-shard-3.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://api.s3.t.hmny.io", + ], + faucets: [], + nativeCurrency: { name: "ONE", symbol: "ONE", decimals: 18 }, + infoURL: "https://www.harmony.one/", + shortName: "hmy-s3", + chainId: 1666600003, + networkId: 1666600003, + testnet: !1, + slug: "harmony-shard-3", + }, + EWt = { + name: "Harmony Testnet Shard 0", + chain: "Harmony", + rpc: [ + "https://harmony-testnet-shard-0.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://api.s0.b.hmny.io", + ], + faucets: ["https://faucet.pops.one"], + nativeCurrency: { name: "ONE", symbol: "ONE", decimals: 18 }, + infoURL: "https://www.harmony.one/", + shortName: "hmy-b-s0", + chainId: 16667e5, + networkId: 16667e5, + explorers: [ + { + name: "Harmony Testnet Block Explorer", + url: "https://explorer.pops.one", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "harmony-testnet-shard-0", + }, + CWt = { + name: "Harmony Testnet Shard 1", + chain: "Harmony", + rpc: [ + "https://harmony-testnet-shard-1.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://api.s1.b.hmny.io", + ], + faucets: [], + nativeCurrency: { name: "ONE", symbol: "ONE", decimals: 18 }, + infoURL: "https://www.harmony.one/", + shortName: "hmy-b-s1", + chainId: 1666700001, + networkId: 1666700001, + testnet: !0, + slug: "harmony-testnet-shard-1", + }, + IWt = { + name: "Harmony Testnet Shard 2", + chain: "Harmony", + rpc: [ + "https://harmony-testnet-shard-2.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://api.s2.b.hmny.io", + ], + faucets: [], + nativeCurrency: { name: "ONE", symbol: "ONE", decimals: 18 }, + infoURL: "https://www.harmony.one/", + shortName: "hmy-b-s2", + chainId: 1666700002, + networkId: 1666700002, + testnet: !0, + slug: "harmony-testnet-shard-2", + }, + AWt = { + name: "Harmony Testnet Shard 3", + chain: "Harmony", + rpc: [ + "https://harmony-testnet-shard-3.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://api.s3.b.hmny.io", + ], + faucets: [], + nativeCurrency: { name: "ONE", symbol: "ONE", decimals: 18 }, + infoURL: "https://www.harmony.one/", + shortName: "hmy-b-s3", + chainId: 1666700003, + networkId: 1666700003, + testnet: !0, + slug: "harmony-testnet-shard-3", + }, + kWt = { + name: "Harmony Devnet Shard 0", + chain: "Harmony", + rpc: [ + "https://harmony-devnet-shard-0.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://api.s1.ps.hmny.io", + ], + faucets: ["http://dev.faucet.easynode.one/"], + nativeCurrency: { name: "ONE", symbol: "ONE", decimals: 18 }, + infoURL: "https://www.harmony.one/", + shortName: "hmy-ps-s0", + chainId: 16669e5, + networkId: 16669e5, + explorers: [ + { + name: "Harmony Block Explorer", + url: "https://explorer.ps.hmny.io", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "harmony-devnet-shard-0", + }, + SWt = { + name: "DataHopper", + chain: "HOP", + rpc: [ + "https://datahopper.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://23.92.21.121:8545", + ], + faucets: [], + nativeCurrency: { name: "DataHoppers", symbol: "HOP", decimals: 18 }, + infoURL: "https://www.DataHopper.com", + shortName: "hop", + chainId: 2021121117, + networkId: 2021121117, + testnet: !1, + slug: "datahopper", + }, + MWt = { + name: "Europa SKALE Chain", + chain: "europa", + icon: { + url: "ipfs://bafkreiezcwowhm6xjrkt44cmiu6ml36rhrxx3amcg3cfkcntv2vgcvgbre", + width: 600, + height: 600, + format: "png", + }, + rpc: [ + "https://europa-skale-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://mainnet.skalenodes.com/v1/elated-tan-skat", + "wss://mainnet.skalenodes.com/v1/elated-tan-skat", + ], + faucets: [ + "https://ruby.exchange/faucet.html", + "https://sfuel.mylilius.com/", + ], + nativeCurrency: { name: "sFUEL", symbol: "sFUEL", decimals: 18 }, + infoURL: "https://europahub.network/", + shortName: "europa", + chainId: 2046399126, + networkId: 2046399126, + explorers: [ + { + name: "Blockscout", + url: "https://elated-tan-skat.explorer.mainnet.skalenodes.com", + standard: "EIP3091", + }, + ], + parent: { + type: "L2", + chain: "eip155-1", + bridges: [{ url: "https://ruby.exchange/bridge.html" }], + }, + testnet: !1, + slug: "europa-skale-chain", + }, + PWt = { + name: "Pirl", + chain: "PIRL", + rpc: [ + "https://pirl.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://wallrpc.pirl.io", + ], + faucets: [], + nativeCurrency: { name: "Pirl Ether", symbol: "PIRL", decimals: 18 }, + infoURL: "https://pirl.io", + shortName: "pirl", + chainId: 3125659152, + networkId: 3125659152, + slip44: 164, + testnet: !1, + slug: "pirl", + }, + RWt = { + name: "OneLedger Testnet Frankenstein", + chain: "OLT", + icon: { + url: "ipfs://QmRhqq4Gp8G9w27ND3LeFW49o5PxcxrbJsqHbpBFtzEMfC", + width: 225, + height: 225, + format: "png", + }, + rpc: [ + "https://oneledger-testnet-frankenstein.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://frankenstein-rpc.oneledger.network", + ], + faucets: ["https://frankenstein-faucet.oneledger.network"], + nativeCurrency: { name: "OLT", symbol: "OLT", decimals: 18 }, + infoURL: "https://oneledger.io", + shortName: "frankenstein", + chainId: 4216137055, + networkId: 4216137055, + explorers: [ + { + name: "OneLedger Block Explorer", + url: "https://frankenstein-explorer.oneledger.network", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "oneledger-testnet-frankenstein", + }, + BWt = { + name: "Palm Testnet", + chain: "Palm", + rpc: [ + "https://palm-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://palm-testnet.infura.io/v3/${INFURA_API_KEY}", + ], + faucets: [], + nativeCurrency: { name: "PALM", symbol: "PALM", decimals: 18 }, + infoURL: "https://palm.io", + shortName: "tpalm", + chainId: 11297108099, + networkId: 11297108099, + explorers: [ + { + name: "Palm Testnet Explorer", + url: "https://explorer.palm-uat.xyz", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "palm-testnet", + }, + NWt = { + name: "Palm", + chain: "Palm", + rpc: [ + "https://palm.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://palm-mainnet.infura.io/v3/${INFURA_API_KEY}", + ], + faucets: [], + nativeCurrency: { name: "PALM", symbol: "PALM", decimals: 18 }, + infoURL: "https://palm.io", + shortName: "palm", + chainId: 11297108109, + networkId: 11297108109, + explorers: [ + { + name: "Palm Explorer", + url: "https://explorer.palm.io", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "palm", + }, + OWt = { + name: "Ntity Mainnet", + chain: "Ntity", + rpc: [ + "https://ntity.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.ntity.io", + ], + faucets: [], + nativeCurrency: { name: "Ntity", symbol: "NTT", decimals: 18 }, + infoURL: "https://ntity.io", + shortName: "ntt", + chainId: 197710212030, + networkId: 197710212030, + icon: { + url: "ipfs://QmSW2YhCvMpnwtPGTJAuEK2QgyWfFjmnwcrapUg6kqFsPf", + width: 711, + height: 715, + format: "svg", + }, + explorers: [ + { + name: "Ntity Blockscout", + url: "https://blockscout.ntity.io", + icon: "ntity", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "ntity", + }, + LWt = { + name: "Haradev Testnet", + chain: "Ntity", + rpc: [ + "https://haradev-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://blockchain.haradev.com", + ], + faucets: [], + nativeCurrency: { name: "Ntity Haradev", symbol: "NTTH", decimals: 18 }, + infoURL: "https://ntity.io", + shortName: "ntt-haradev", + chainId: 197710212031, + networkId: 197710212031, + icon: { + url: "ipfs://QmSW2YhCvMpnwtPGTJAuEK2QgyWfFjmnwcrapUg6kqFsPf", + width: 711, + height: 715, + format: "svg", + }, + explorers: [ + { + name: "Ntity Haradev Blockscout", + url: "https://blockscout.haradev.com", + icon: "ntity", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "haradev-testnet", + }, + DWt = { + name: "Zeniq", + chain: "ZENIQ", + rpc: [ + "https://zeniq.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://smart.zeniq.network:9545", + ], + faucets: ["https://faucet.zeniq.net/"], + nativeCurrency: { name: "Zeniq", symbol: "ZENIQ", decimals: 18 }, + infoURL: "https://www.zeniq.dev/", + shortName: "zeniq", + chainId: 383414847825, + networkId: 383414847825, + explorers: [ + { + name: "zeniq-smart-chain-explorer", + url: "https://smart.zeniq.net", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "zeniq", + }, + qWt = { + name: "PDC Mainnet", + chain: "IPDC", + rpc: [ + "https://pdc.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://mainnet.ipdc.io/", + ], + faucets: [], + nativeCurrency: { name: "PDC", symbol: "PDC", decimals: 18 }, + infoURL: "https://ipdc.io", + shortName: "ipdc", + chainId: 666301171999, + networkId: 666301171999, + explorers: [ + { + name: "ipdcscan", + url: "https://scan.ipdc.io", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "pdc", + }, + FWt = { + name: "Molereum Network", + chain: "ETH", + rpc: [ + "https://molereum-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://molereum.jdubedition.com", + ], + faucets: [], + nativeCurrency: { + name: "Molereum Ether", + symbol: "MOLE", + decimals: 18, + }, + infoURL: "https://github.com/Jdubedition/molereum", + shortName: "mole", + chainId: 6022140761023, + networkId: 6022140761023, + testnet: !1, + slug: "molereum-network", + }, + WWt = { + name: "Localhost", + chain: "ETH", + rpc: ["http://localhost:8545"], + faucets: [], + nativeCurrency: { name: "Ether", symbol: "ETH", decimals: 18 }, + icon: { + url: "ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/ethereum/512.png", + height: 512, + width: 512, + format: "png", + sizes: [16, 32, 64, 128, 256, 512], + }, + shortName: "local", + chainId: 1337, + networkId: 1337, + testnet: !0, + slug: "localhost", + }, + UWt = { mode: "http" }; + function Ube(r, e) { + let { + thirdwebApiKey: t, + alchemyApiKey: n, + infuraApiKey: a, + mode: i, + } = { ...UWt, ...e }, + s = r.rpc.filter( + (C) => + !!( + (C.startsWith("http") && i === "http") || + (C.startsWith("ws") && i === "ws") + ) + ), + c = s + .filter((C) => C.includes("${THIRDWEB_API_KEY}") && t) + .map((C) => (t ? C.replace("${THIRDWEB_API_KEY}", t) : C)), + l = s + .filter((C) => C.includes("${ALCHEMY_API_KEY}") && n) + .map((C) => (n ? C.replace("${ALCHEMY_API_KEY}", n) : C)), + d = s + .filter((C) => C.includes("${INFURA_API_KEY}") && a) + .map((C) => (a ? C.replace("${INFURA_API_KEY}", a) : C)), + m = s.filter((C) => !C.includes("${")), + w = [...c, ...d, ...l, ...m]; + if (w.length === 0) + throw new Error( + `No RPC available for chainId "${r.chainId}" with mode ${i}` + ); + return w; + } + function HWt(r, e) { + return Ube(r, e)[0]; + } + function zWt(r) { + let [e] = r.rpc; + return { + name: r.name, + chain: r.chain, + rpc: [e], + nativeCurrency: r.nativeCurrency, + shortName: r.shortName, + chainId: r.chainId, + testnet: r.testnet, + slug: r.slug, + }; + } + function jWt(r, e) { + let t = []; + return ( + e?.rpc && (typeof e.rpc == "string" ? (t = [e.rpc]) : (t = e.rpc)), + { ...r, rpc: [...t, ...r.rpc] } + ); + } + var fH = $kt, + Hbe = Jkt, + zbe = Zkt, + jbe = Qkt, + mH = Xkt, + Kbe = eSt, + Vbe = tSt, + Gbe = rSt, + Ybe = nSt, + yH = aSt, + $be = iSt, + Jbe = sSt, + Zbe = oSt, + Qbe = cSt, + Xbe = uSt, + e1e = lSt, + t1e = dSt, + r1e = pSt, + n1e = hSt, + a1e = fSt, + i1e = mSt, + s1e = ySt, + o1e = gSt, + c1e = bSt, + u1e = vSt, + l1e = wSt, + d1e = _St, + p1e = xSt, + h1e = TSt, + f1e = ESt, + m1e = CSt, + y1e = ISt, + g1e = ASt, + b1e = kSt, + v1e = SSt, + w1e = MSt, + _1e = PSt, + x1e = RSt, + T1e = BSt, + E1e = NSt, + C1e = OSt, + I1e = LSt, + A1e = DSt, + k1e = qSt, + S1e = FSt, + M1e = WSt, + P1e = USt, + R1e = HSt, + B1e = zSt, + N1e = jSt, + O1e = KSt, + L1e = VSt, + D1e = GSt, + q1e = YSt, + gH = $St, + F1e = JSt, + W1e = ZSt, + U1e = QSt, + H1e = XSt, + z1e = eMt, + j1e = tMt, + K1e = rMt, + V1e = nMt, + G1e = aMt, + Y1e = iMt, + $1e = sMt, + J1e = oMt, + Z1e = cMt, + Q1e = uMt, + X1e = lMt, + eve = dMt, + tve = pMt, + rve = hMt, + nve = fMt, + ave = mMt, + ive = yMt, + sve = gMt, + ove = bMt, + cve = vMt, + uve = wMt, + lve = _Mt, + dve = xMt, + pve = TMt, + hve = EMt, + fve = CMt, + mve = IMt, + yve = AMt, + gve = kMt, + bve = SMt, + vve = MMt, + wve = PMt, + _ve = RMt, + xve = BMt, + bH = NMt, + Tve = OMt, + Eve = LMt, + Cve = DMt, + Ive = qMt, + Ave = FMt, + kve = WMt, + Sve = UMt, + Mve = HMt, + Pve = zMt, + Rve = jMt, + Bve = KMt, + Nve = VMt, + Ove = GMt, + Lve = YMt, + Dve = $Mt, + qve = JMt, + Fve = ZMt, + Wve = QMt, + Uve = XMt, + Hve = ePt, + zve = tPt, + jve = rPt, + Kve = nPt, + Vve = aPt, + Gve = iPt, + Yve = sPt, + vH = oPt, + $ve = cPt, + Jve = uPt, + Zve = lPt, + Qve = dPt, + Xve = pPt, + ewe = hPt, + twe = fPt, + rwe = mPt, + nwe = yPt, + awe = gPt, + iwe = bPt, + swe = vPt, + owe = wPt, + cwe = _Pt, + uwe = xPt, + lwe = TPt, + dwe = EPt, + pwe = CPt, + hwe = IPt, + fwe = APt, + mwe = kPt, + ywe = SPt, + gwe = MPt, + bwe = PPt, + vwe = RPt, + wwe = BPt, + wH = NPt, + _we = OPt, + xwe = LPt, + Twe = DPt, + Ewe = qPt, + Cwe = FPt, + Iwe = WPt, + Awe = UPt, + kwe = HPt, + Swe = zPt, + Mwe = jPt, + Pwe = KPt, + Rwe = VPt, + Bwe = GPt, + Nwe = YPt, + Owe = $Pt, + Lwe = JPt, + Dwe = ZPt, + qwe = QPt, + Fwe = XPt, + Wwe = e9t, + Uwe = t9t, + Hwe = r9t, + zwe = n9t, + jwe = a9t, + Kwe = i9t, + Vwe = s9t, + Gwe = o9t, + Ywe = c9t, + $we = u9t, + Jwe = l9t, + _H = d9t, + Zwe = p9t, + Qwe = h9t, + Xwe = f9t, + e2e = m9t, + t2e = y9t, + r2e = g9t, + n2e = b9t, + a2e = v9t, + i2e = w9t, + s2e = _9t, + o2e = x9t, + c2e = T9t, + u2e = E9t, + l2e = C9t, + d2e = I9t, + p2e = A9t, + h2e = k9t, + f2e = S9t, + m2e = M9t, + y2e = P9t, + g2e = R9t, + b2e = B9t, + v2e = N9t, + w2e = O9t, + _2e = L9t, + x2e = D9t, + T2e = q9t, + E2e = F9t, + C2e = W9t, + I2e = U9t, + A2e = H9t, + k2e = z9t, + S2e = j9t, + M2e = K9t, + P2e = V9t, + R2e = G9t, + B2e = Y9t, + N2e = $9t, + O2e = J9t, + L2e = Z9t, + D2e = Q9t, + q2e = X9t, + F2e = eRt, + W2e = tRt, + U2e = rRt, + H2e = nRt, + z2e = aRt, + j2e = iRt, + K2e = sRt, + V2e = oRt, + G2e = cRt, + Y2e = uRt, + $2e = lRt, + J2e = dRt, + Z2e = pRt, + Q2e = hRt, + X2e = fRt, + e_e = mRt, + t_e = yRt, + r_e = gRt, + n_e = bRt, + a_e = vRt, + i_e = wRt, + s_e = _Rt, + o_e = xRt, + c_e = TRt, + u_e = ERt, + l_e = CRt, + d_e = IRt, + p_e = ARt, + h_e = kRt, + f_e = SRt, + m_e = MRt, + y_e = PRt, + g_e = RRt, + b_e = BRt, + v_e = NRt, + w_e = ORt, + __e = LRt, + x_e = DRt, + T_e = qRt, + E_e = FRt, + C_e = WRt, + I_e = URt, + A_e = HRt, + k_e = zRt, + S_e = jRt, + M_e = KRt, + P_e = VRt, + R_e = GRt, + B_e = YRt, + N_e = $Rt, + O_e = JRt, + L_e = ZRt, + D_e = QRt, + q_e = XRt, + F_e = e7t, + W_e = t7t, + U_e = r7t, + H_e = n7t, + z_e = a7t, + j_e = i7t, + K_e = s7t, + V_e = o7t, + G_e = c7t, + Y_e = u7t, + $_e = l7t, + J_e = d7t, + Z_e = p7t, + Q_e = h7t, + X_e = f7t, + exe = m7t, + txe = y7t, + rxe = g7t, + nxe = b7t, + axe = v7t, + ixe = w7t, + sxe = _7t, + oxe = x7t, + cxe = T7t, + uxe = E7t, + lxe = C7t, + dxe = I7t, + pxe = A7t, + hxe = k7t, + fxe = S7t, + mxe = M7t, + yxe = P7t, + gxe = R7t, + bxe = B7t, + vxe = N7t, + wxe = O7t, + _xe = L7t, + xxe = D7t, + Txe = q7t, + Exe = F7t, + Cxe = W7t, + Ixe = U7t, + Axe = H7t, + kxe = z7t, + Sxe = j7t, + Mxe = K7t, + Pxe = V7t, + Rxe = G7t, + Bxe = Y7t, + Nxe = $7t, + Oxe = J7t, + Lxe = Z7t, + Dxe = Q7t, + qxe = X7t, + Fxe = eBt, + Wxe = tBt, + Uxe = rBt, + Hxe = nBt, + zxe = aBt, + jxe = iBt, + Kxe = sBt, + Vxe = oBt, + Gxe = cBt, + Yxe = uBt, + $xe = lBt, + Jxe = dBt, + Zxe = pBt, + Qxe = hBt, + Xxe = fBt, + eTe = mBt, + tTe = yBt, + rTe = gBt, + nTe = bBt, + aTe = vBt, + iTe = wBt, + sTe = _Bt, + oTe = xBt, + cTe = TBt, + uTe = EBt, + lTe = CBt, + dTe = IBt, + pTe = ABt, + hTe = kBt, + fTe = SBt, + mTe = MBt, + yTe = PBt, + gTe = RBt, + bTe = BBt, + vTe = NBt, + wTe = OBt, + _Te = LBt, + xTe = DBt, + TTe = qBt, + ETe = FBt, + CTe = WBt, + ITe = UBt, + ATe = HBt, + kTe = zBt, + STe = jBt, + MTe = KBt, + PTe = VBt, + RTe = GBt, + BTe = YBt, + NTe = $Bt, + OTe = JBt, + LTe = ZBt, + DTe = QBt, + qTe = XBt, + FTe = eNt, + WTe = tNt, + UTe = rNt, + HTe = nNt, + zTe = aNt, + jTe = iNt, + KTe = sNt, + VTe = oNt, + GTe = cNt, + YTe = uNt, + $Te = lNt, + xH = dNt, + JTe = pNt, + ZTe = hNt, + QTe = fNt, + XTe = mNt, + e5e = yNt, + t5e = gNt, + r5e = bNt, + n5e = vNt, + a5e = wNt, + i5e = _Nt, + s5e = xNt, + o5e = TNt, + c5e = ENt, + u5e = CNt, + l5e = INt, + d5e = ANt, + p5e = kNt, + h5e = SNt, + f5e = MNt, + m5e = PNt, + y5e = RNt, + g5e = BNt, + b5e = NNt, + v5e = ONt, + w5e = LNt, + _5e = DNt, + x5e = qNt, + T5e = FNt, + E5e = WNt, + C5e = UNt, + I5e = HNt, + A5e = zNt, + k5e = jNt, + S5e = KNt, + M5e = VNt, + P5e = GNt, + R5e = YNt, + B5e = $Nt, + N5e = JNt, + O5e = ZNt, + L5e = QNt, + D5e = XNt, + q5e = eOt, + F5e = tOt, + W5e = rOt, + U5e = nOt, + H5e = aOt, + z5e = iOt, + j5e = sOt, + K5e = oOt, + V5e = cOt, + G5e = uOt, + Y5e = lOt, + $5e = dOt, + J5e = pOt, + Z5e = hOt, + Q5e = fOt, + X5e = mOt, + e3e = yOt, + t3e = gOt, + r3e = bOt, + n3e = vOt, + a3e = wOt, + i3e = _Ot, + s3e = xOt, + o3e = TOt, + c3e = EOt, + u3e = COt, + l3e = IOt, + d3e = AOt, + p3e = kOt, + h3e = SOt, + f3e = MOt, + m3e = POt, + y3e = ROt, + g3e = BOt, + b3e = NOt, + v3e = OOt, + w3e = LOt, + _3e = DOt, + x3e = qOt, + T3e = FOt, + E3e = WOt, + C3e = UOt, + I3e = HOt, + A3e = zOt, + k3e = jOt, + S3e = KOt, + M3e = VOt, + P3e = GOt, + R3e = YOt, + B3e = $Ot, + N3e = JOt, + O3e = ZOt, + L3e = QOt, + D3e = XOt, + q3e = eLt, + F3e = tLt, + W3e = rLt, + U3e = nLt, + H3e = aLt, + z3e = iLt, + j3e = sLt, + K3e = oLt, + V3e = cLt, + G3e = uLt, + Y3e = lLt, + $3e = dLt, + J3e = pLt, + Z3e = hLt, + Q3e = fLt, + X3e = mLt, + e6e = yLt, + t6e = gLt, + r6e = bLt, + n6e = vLt, + a6e = wLt, + i6e = _Lt, + s6e = xLt, + o6e = TLt, + c6e = ELt, + u6e = CLt, + l6e = ILt, + d6e = ALt, + p6e = kLt, + h6e = SLt, + f6e = MLt, + m6e = PLt, + y6e = RLt, + g6e = BLt, + b6e = NLt, + v6e = OLt, + w6e = LLt, + _6e = DLt, + x6e = qLt, + T6e = FLt, + E6e = WLt, + C6e = ULt, + I6e = HLt, + A6e = zLt, + k6e = jLt, + S6e = KLt, + M6e = VLt, + P6e = GLt, + R6e = YLt, + B6e = $Lt, + N6e = JLt, + O6e = ZLt, + L6e = QLt, + D6e = XLt, + TH = eDt, + q6e = tDt, + F6e = rDt, + W6e = nDt, + U6e = aDt, + H6e = iDt, + EH = sDt, + CH = oDt, + z6e = cDt, + j6e = uDt, + K6e = lDt, + V6e = dDt, + G6e = pDt, + Y6e = hDt, + $6e = fDt, + J6e = mDt, + Z6e = yDt, + Q6e = gDt, + X6e = bDt, + eEe = vDt, + tEe = wDt, + rEe = _Dt, + nEe = xDt, + aEe = TDt, + iEe = EDt, + sEe = CDt, + oEe = IDt, + cEe = ADt, + uEe = kDt, + lEe = SDt, + dEe = MDt, + pEe = PDt, + hEe = RDt, + fEe = BDt, + mEe = NDt, + yEe = ODt, + gEe = LDt, + bEe = DDt, + vEe = qDt, + wEe = FDt, + _Ee = WDt, + xEe = UDt, + TEe = HDt, + EEe = zDt, + CEe = jDt, + IEe = KDt, + AEe = VDt, + kEe = GDt, + SEe = YDt, + MEe = $Dt, + IH = JDt, + PEe = ZDt, + REe = QDt, + BEe = XDt, + NEe = eqt, + OEe = tqt, + LEe = rqt, + DEe = nqt, + qEe = aqt, + FEe = iqt, + WEe = sqt, + UEe = oqt, + HEe = cqt, + zEe = uqt, + jEe = lqt, + KEe = dqt, + VEe = pqt, + GEe = hqt, + YEe = fqt, + $Ee = mqt, + JEe = yqt, + ZEe = gqt, + QEe = bqt, + XEe = vqt, + eCe = wqt, + tCe = _qt, + rCe = xqt, + nCe = Tqt, + aCe = Eqt, + iCe = Cqt, + sCe = Iqt, + oCe = Aqt, + cCe = kqt, + uCe = Sqt, + lCe = Mqt, + dCe = Pqt, + pCe = Rqt, + hCe = Bqt, + fCe = Nqt, + mCe = Oqt, + yCe = Lqt, + gCe = Dqt, + bCe = qqt, + vCe = Fqt, + wCe = Wqt, + _Ce = Uqt, + xCe = Hqt, + TCe = zqt, + ECe = jqt, + CCe = Kqt, + ICe = Vqt, + ACe = Gqt, + kCe = Yqt, + SCe = $qt, + MCe = Jqt, + PCe = Zqt, + RCe = Qqt, + BCe = Xqt, + AH = eFt, + NCe = tFt, + OCe = rFt, + LCe = nFt, + DCe = aFt, + qCe = iFt, + FCe = sFt, + WCe = oFt, + UCe = cFt, + HCe = uFt, + zCe = lFt, + jCe = dFt, + KCe = pFt, + VCe = hFt, + GCe = fFt, + YCe = mFt, + $Ce = yFt, + JCe = gFt, + ZCe = bFt, + QCe = vFt, + XCe = wFt, + e8e = _Ft, + t8e = xFt, + r8e = TFt, + n8e = EFt, + a8e = CFt, + i8e = IFt, + s8e = AFt, + o8e = kFt, + c8e = SFt, + u8e = MFt, + l8e = PFt, + d8e = RFt, + p8e = BFt, + h8e = NFt, + f8e = OFt, + m8e = LFt, + y8e = DFt, + g8e = qFt, + b8e = FFt, + v8e = WFt, + w8e = UFt, + _8e = HFt, + x8e = zFt, + T8e = jFt, + E8e = KFt, + C8e = VFt, + I8e = GFt, + A8e = YFt, + k8e = $Ft, + S8e = JFt, + M8e = ZFt, + P8e = QFt, + R8e = XFt, + B8e = eWt, + N8e = tWt, + O8e = rWt, + L8e = nWt, + D8e = aWt, + q8e = iWt, + F8e = sWt, + W8e = oWt, + U8e = cWt, + H8e = uWt, + z8e = lWt, + j8e = dWt, + K8e = pWt, + V8e = hWt, + G8e = fWt, + Y8e = mWt, + $8e = yWt, + J8e = gWt, + Z8e = bWt, + Q8e = vWt, + X8e = wWt, + e4e = _Wt, + t4e = xWt, + r4e = TWt, + n4e = EWt, + a4e = CWt, + i4e = IWt, + s4e = AWt, + o4e = kWt, + c4e = SWt, + u4e = MWt, + l4e = PWt, + d4e = RWt, + p4e = BWt, + h4e = NWt, + f4e = OWt, + m4e = LWt, + y4e = DWt, + g4e = qWt, + b4e = FWt, + kH = WWt, + KWt = [fH, mH, vH, IH, TH, AH, yH, _H, gH, bH, wH, xH, CH, EH, kH], + VWt = [ + fH, + Hbe, + zbe, + jbe, + mH, + Kbe, + Vbe, + Gbe, + Ybe, + yH, + $be, + Jbe, + Zbe, + Qbe, + Xbe, + e1e, + t1e, + r1e, + n1e, + a1e, + i1e, + s1e, + o1e, + c1e, + u1e, + l1e, + d1e, + p1e, + h1e, + f1e, + m1e, + y1e, + g1e, + b1e, + v1e, + w1e, + _1e, + x1e, + T1e, + E1e, + C1e, + I1e, + A1e, + k1e, + S1e, + M1e, + P1e, + R1e, + B1e, + N1e, + O1e, + L1e, + D1e, + q1e, + gH, + F1e, + W1e, + U1e, + H1e, + z1e, + j1e, + K1e, + V1e, + G1e, + Y1e, + $1e, + J1e, + Z1e, + Q1e, + X1e, + eve, + tve, + rve, + nve, + ave, + ive, + sve, + ove, + cve, + uve, + lve, + dve, + pve, + hve, + fve, + mve, + yve, + gve, + bve, + vve, + wve, + _ve, + xve, + bH, + Tve, + Eve, + Cve, + Ive, + Ave, + kve, + Sve, + Mve, + Pve, + Rve, + Bve, + Nve, + Ove, + Lve, + Dve, + qve, + Fve, + Wve, + Uve, + Hve, + zve, + jve, + Kve, + Vve, + Gve, + Yve, + vH, + $ve, + Jve, + Zve, + Qve, + Xve, + ewe, + twe, + rwe, + nwe, + awe, + iwe, + swe, + owe, + cwe, + uwe, + lwe, + dwe, + pwe, + hwe, + fwe, + mwe, + ywe, + gwe, + bwe, + vwe, + wwe, + wH, + _we, + xwe, + Twe, + Ewe, + Cwe, + Iwe, + Awe, + kwe, + Swe, + Mwe, + Pwe, + Rwe, + Bwe, + Nwe, + Owe, + Lwe, + Dwe, + qwe, + Fwe, + Wwe, + Uwe, + Hwe, + zwe, + jwe, + Kwe, + Vwe, + Gwe, + Ywe, + $we, + Jwe, + _H, + Zwe, + Qwe, + Xwe, + e2e, + t2e, + r2e, + n2e, + a2e, + i2e, + s2e, + o2e, + c2e, + u2e, + l2e, + d2e, + p2e, + h2e, + f2e, + m2e, + y2e, + g2e, + b2e, + v2e, + w2e, + _2e, + x2e, + T2e, + E2e, + C2e, + I2e, + A2e, + k2e, + S2e, + M2e, + P2e, + R2e, + B2e, + N2e, + O2e, + L2e, + D2e, + q2e, + F2e, + W2e, + U2e, + H2e, + z2e, + j2e, + K2e, + V2e, + G2e, + Y2e, + $2e, + J2e, + Z2e, + Q2e, + X2e, + e_e, + t_e, + r_e, + n_e, + a_e, + i_e, + s_e, + o_e, + c_e, + u_e, + l_e, + d_e, + p_e, + h_e, + f_e, + m_e, + y_e, + g_e, + b_e, + v_e, + w_e, + __e, + x_e, + T_e, + E_e, + C_e, + I_e, + A_e, + k_e, + S_e, + M_e, + P_e, + R_e, + B_e, + N_e, + O_e, + L_e, + D_e, + q_e, + F_e, + W_e, + U_e, + H_e, + z_e, + j_e, + K_e, + V_e, + G_e, + Y_e, + $_e, + J_e, + Z_e, + Q_e, + X_e, + exe, + txe, + rxe, + nxe, + axe, + ixe, + sxe, + oxe, + cxe, + uxe, + lxe, + dxe, + pxe, + hxe, + fxe, + mxe, + yxe, + gxe, + bxe, + vxe, + wxe, + _xe, + xxe, + Txe, + Exe, + Cxe, + Ixe, + Axe, + kxe, + Sxe, + Mxe, + Pxe, + Rxe, + Bxe, + Nxe, + Oxe, + Lxe, + Dxe, + qxe, + Fxe, + Wxe, + Uxe, + Hxe, + zxe, + jxe, + Kxe, + Vxe, + Gxe, + Yxe, + $xe, + Jxe, + Zxe, + Qxe, + Xxe, + eTe, + tTe, + rTe, + nTe, + aTe, + iTe, + sTe, + oTe, + cTe, + uTe, + lTe, + dTe, + pTe, + hTe, + fTe, + mTe, + yTe, + gTe, + bTe, + vTe, + wTe, + _Te, + xTe, + TTe, + ETe, + CTe, + ITe, + ATe, + kTe, + STe, + MTe, + PTe, + RTe, + BTe, + NTe, + OTe, + LTe, + DTe, + qTe, + FTe, + WTe, + UTe, + HTe, + zTe, + jTe, + KTe, + VTe, + GTe, + YTe, + $Te, + xH, + JTe, + ZTe, + QTe, + XTe, + e5e, + t5e, + r5e, + n5e, + a5e, + i5e, + s5e, + o5e, + c5e, + u5e, + l5e, + d5e, + p5e, + h5e, + f5e, + m5e, + y5e, + g5e, + b5e, + v5e, + w5e, + _5e, + x5e, + T5e, + E5e, + C5e, + I5e, + A5e, + k5e, + S5e, + M5e, + P5e, + R5e, + B5e, + N5e, + O5e, + L5e, + D5e, + q5e, + F5e, + W5e, + U5e, + H5e, + z5e, + j5e, + K5e, + V5e, + G5e, + Y5e, + $5e, + J5e, + Z5e, + Q5e, + X5e, + e3e, + t3e, + r3e, + n3e, + a3e, + i3e, + s3e, + o3e, + c3e, + u3e, + l3e, + d3e, + p3e, + h3e, + f3e, + m3e, + y3e, + g3e, + b3e, + v3e, + w3e, + _3e, + x3e, + T3e, + E3e, + C3e, + I3e, + A3e, + k3e, + S3e, + M3e, + P3e, + R3e, + B3e, + N3e, + O3e, + L3e, + D3e, + q3e, + F3e, + W3e, + U3e, + H3e, + z3e, + j3e, + K3e, + V3e, + G3e, + Y3e, + $3e, + J3e, + Z3e, + Q3e, + X3e, + e6e, + t6e, + r6e, + n6e, + a6e, + i6e, + s6e, + o6e, + c6e, + u6e, + l6e, + d6e, + p6e, + h6e, + f6e, + m6e, + y6e, + g6e, + b6e, + v6e, + w6e, + _6e, + x6e, + T6e, + E6e, + C6e, + I6e, + A6e, + k6e, + S6e, + M6e, + P6e, + R6e, + B6e, + N6e, + O6e, + L6e, + D6e, + TH, + q6e, + F6e, + W6e, + U6e, + H6e, + EH, + CH, + z6e, + j6e, + K6e, + V6e, + G6e, + Y6e, + $6e, + J6e, + Z6e, + Q6e, + X6e, + eEe, + tEe, + rEe, + nEe, + aEe, + iEe, + sEe, + oEe, + cEe, + uEe, + lEe, + dEe, + pEe, + hEe, + fEe, + mEe, + yEe, + gEe, + bEe, + vEe, + wEe, + _Ee, + xEe, + TEe, + EEe, + CEe, + IEe, + AEe, + kEe, + SEe, + MEe, + IH, + PEe, + REe, + BEe, + NEe, + OEe, + LEe, + DEe, + qEe, + FEe, + WEe, + UEe, + HEe, + zEe, + jEe, + KEe, + VEe, + GEe, + YEe, + $Ee, + JEe, + ZEe, + QEe, + XEe, + eCe, + tCe, + rCe, + nCe, + aCe, + iCe, + sCe, + oCe, + cCe, + uCe, + lCe, + dCe, + pCe, + hCe, + fCe, + mCe, + yCe, + gCe, + bCe, + vCe, + wCe, + _Ce, + xCe, + TCe, + ECe, + CCe, + ICe, + ACe, + kCe, + SCe, + MCe, + PCe, + RCe, + BCe, + AH, + NCe, + OCe, + LCe, + DCe, + qCe, + FCe, + WCe, + UCe, + HCe, + zCe, + jCe, + KCe, + VCe, + GCe, + YCe, + $Ce, + JCe, + ZCe, + QCe, + XCe, + e8e, + t8e, + r8e, + n8e, + a8e, + i8e, + s8e, + o8e, + c8e, + u8e, + l8e, + d8e, + p8e, + h8e, + f8e, + m8e, + y8e, + g8e, + b8e, + v8e, + w8e, + _8e, + x8e, + T8e, + E8e, + C8e, + I8e, + A8e, + k8e, + S8e, + M8e, + P8e, + R8e, + B8e, + N8e, + O8e, + L8e, + D8e, + q8e, + F8e, + W8e, + U8e, + H8e, + z8e, + j8e, + K8e, + V8e, + G8e, + Y8e, + $8e, + J8e, + Z8e, + Q8e, + X8e, + e4e, + t4e, + r4e, + n4e, + a4e, + i4e, + s4e, + o4e, + c4e, + u4e, + l4e, + d4e, + p4e, + h4e, + f4e, + m4e, + y4e, + g4e, + b4e, + kH, + ]; + q.AcalaMandalaTestnet = h2e; + q.AcalaNetwork = R2e; + q.AcalaNetworkTestnet = m2e; + q.AerochainTestnet = B2e; + q.AiozNetwork = nwe; + q.AiozNetworkTestnet = XTe; + q.Airdao = X3e; + q.AirdaoTestnet = l6e; + q.Aitd = sxe; + q.AitdTestnet = oxe; + q.Akroma = lCe; + q.Alaya = dCe; + q.AlayaDevTestnet = pCe; + q.AlphNetwork = Q5e; + q.Altcoinchain = yTe; + q.Alyx = ixe; + q.AlyxChainTestnet = Yve; + q.AmbrosChain = K2e; + q.AmeChain = swe; + q.Amstar = dxe; + q.AmstarTestnet = L_e; + q.Anduschain = _8e; + q.AnytypeEvmChain = _xe; + q.Aquachain = N8e; + q.Arbitrum = TH; + q.ArbitrumGoerli = AH; + q.ArbitrumNova = q6e; + q.ArbitrumOnXdai = pwe; + q.ArbitrumRinkeby = BCe; + q.ArmoniaEvaChain = Qve; + q.ArmoniaEvaChainTestnet = Xve; + q.ArtisSigma1 = vCe; + q.ArtisTestnetTau1 = wCe; + q.Astar = p2e; + q.Astra = N3e; + q.AstraTestnet = L3e; + q.Atelier = Bxe; + q.Atheios = bxe; + q.Athereum = H6e; + q.AtoshiTestnet = rwe; + q.Aurora = Y8e; + q.AuroraBetanet = J8e; + q.AuroraTestnet = $8e; + q.AutobahnNetwork = V6e; + q.AutonityBakerlooThamesTestnet = O8e; + q.AutonityPiccadillyThamesTestnet = L8e; + q.AuxiliumNetwork = S8e; + q.Avalanche = CH; + q.AvalancheFuji = EH; + q.Aves = M6e; + q.BandaiNamcoResearchVerse = z2e; + q.BeagleMessagingChain = yxe; + q.BearNetworkChain = jCe; + q.BearNetworkChainTestnet = VCe; + q.BeoneChainTestnet = j5e; + q.BeresheetTestnet = $xe; + q.Berylbit = h3e; + q.BeverlyHills = BEe; + q.Bifrost = PTe; + q.BifrostTestnet = J6e; + q.Binance = gH; + q.BinanceTestnet = bH; + q.BitcoinEvm = lTe; + q.Bitgert = k6e; + q.Bitindi = QTe; + q.BitindiTestnet = ZTe; + q.BitkubChain = xve; + q.BitkubChainTestnet = b6e; + q.Bittex = zTe; + q.BittorrentChain = dwe; + q.BittorrentChainTestnet = x_e; + q.Bityuan = ATe; + q.BlackfortExchangeNetwork = c5e; + q.BlackfortExchangeNetworkTestnet = i5e; + q.BlgTestnet = z3e; + q.BlockchainGenesis = I3e; + q.BlockchainStation = E2e; + q.BlockchainStationTestnet = C2e; + q.BlocktonBlockchain = V5e; + q.Bloxberg = l3e; + q.Bmc = cwe; + q.BmcTestnet = uwe; + q.BobaAvax = z6e; + q.BobaBnb = iEe; + q.BobaBnbTestnet = v3e; + q.BobaNetwork = Iwe; + q.BobaNetworkGoerliTestnet = ITe; + q.BobaNetworkRinkebyTestnet = p1e; + q.BobabaseTestnet = nxe; + q.Bobabeam = rxe; + q.BobafujiTestnet = t5e; + q.Bobaopera = Rwe; + q.BobaoperaTestnet = JTe; + q.BombChain = mTe; + q.BombChainTestnet = gTe; + q.BonNetwork = Mxe; + q.Bosagora = sTe; + q.Brochain = JEe; + q.Bronos = I_e; + q.BronosTestnet = C_e; + q.Btachain = vxe; + q.BtcixNetwork = a6e; + q.Callisto = q2e; + q.CallistoTestnet = i6e; + q.CalypsoNftHubSkale = Q8e; + q.CalypsoNftHubSkaleTestnet = z8e; + q.CaminoCChain = e2e; + q.Candle = c2e; + q.Canto = B5e; + q.CantoTestnet = A2e; + q.CatecoinChain = gxe; + q.Celo = F6e; + q.CeloAlfajoresTestnet = K6e; + q.CeloBaklavaTestnet = pEe; + q.CennznetAzalea = o6e; + q.CennznetNikau = STe; + q.CennznetRata = kTe; + q.ChainVerse = g5e; + q.Cheapeth = P2e; + q.ChiadoTestnet = A3e; + q.ChilizScovilleTestnet = PEe; + q.CicChain = lxe; + q.CicChainTestnet = J_e; + q.Cloudtx = E6e; + q.CloudtxTestnet = C6e; + q.Cloudwalk = zxe; + q.CloudwalkTestnet = Hxe; + q.CloverTestnet = w_e; + q.ClvParachain = __e; + q.Cmp = xCe; + q.CmpTestnet = FCe; + q.CoinexSmartChain = O1e; + q.CoinexSmartChainTestnet = L1e; + q.ColumbusTestNetwork = t2e; + q.CondorTestNetwork = oCe; + q.Condrieu = gEe; + q.ConfluxEspace = T_e; + q.ConfluxEspaceTestnet = X1e; + q.ConstaTestnet = Gwe; + q.CoreBlockchain = R_e; + q.CoreBlockchainTestnet = P_e; + q.CreditSmartchain = V3e; + q.CronosBeta = u1e; + q.CronosTestnet = Uwe; + q.Crossbell = KTe; + q.CryptoEmergency = lwe; + q.Cryptocoinpay = P3e; + q.CryptokylinTestnet = _ve; + q.Crystaleum = $Ee; + q.CtexScanBlockchain = hxe; + q.CubeChain = Ixe; + q.CubeChainTestnet = Axe; + q.DChain = Rxe; + q.DarwiniaCrabNetwork = k1e; + q.DarwiniaNetwork = M1e; + q.DarwiniaPangolinTestnet = A1e; + q.DarwiniaPangoroTestnet = S1e; + q.Datahopper = c4e; + q.DaxChain = Jve; + q.DbchainTestnet = $1e; + q.Debank = Dve; + q.DebankTestnet = Lve; + q.DebounceSubnetTestnet = BTe; + q.DecentralizedWeb = zve; + q.DecimalSmartChain = nve; + q.DecimalSmartChainTestnet = fCe; + q.DefichainEvmNetwork = N_e; + q.DefichainEvmNetworkTestnet = O_e; + q.Dehvo = Nve; + q.DexalotSubnet = LCe; + q.DexalotSubnetTestnet = OCe; + q.DexitNetwork = j2e; + q.DfkChain = tEe; + q.DfkChainTest = Fwe; + q.DiodePrenet = Xbe; + q.DiodeTestnetStaging = Zbe; + q.DithereumTestnet = b1e; + q.Dogcoin = B_e; + q.DogcoinTestnet = m3e; + q.Dogechain = Fxe; + q.DogechainTestnet = d2e; + q.DokenSuperChain = dEe; + q.DosFujiSubnet = axe; + q.DoubleAChain = r2e; + q.DoubleAChainTestnet = n2e; + q.DracNetwork = VTe; + q.Dxchain = w1e; + q.DxchainTestnet = eve; + q.Dyno = GTe; + q.DynoTestnet = YTe; + q.Ecoball = rTe; + q.EcoballTestnetEspuma = nTe; + q.Ecredits = fEe; + q.EcreditsTestnet = mEe; + q.EdexaTestnet = qxe; + q.Edgeware = Yxe; + q.Ekta = Dxe; + q.ElaDidSidechain = s1e; + q.ElaDidSidechainTestnet = o1e; + q.ElastosSmartChain = a1e; + q.ElastosSmartChainTestnet = i1e; + q.EllaTheHeart = M5e; + q.Ellaism = V1e; + q.EluvioContentFabric = t8e; + q.Elysium = uxe; + q.ElysiumTestnet = cxe; + q.EmpireNetwork = jTe; + q.EnduranceSmartChain = w2e; + q.Energi = N6e; + q.EnergiTestnet = Z6e; + q.EnergyWebChain = vwe; + q.EnergyWebVoltaTestnet = CEe; + q.EnnothemProterozoic = P1e; + q.EnnothemTestnetPioneer = R1e; + q.Enterchain = j_e; + q.Enuls = qve; + q.EnulsTestnet = Fve; + q.Eos = U1e; + q.Eraswap = p5e; + q.Ethereum = fH; + q.EthereumClassic = z1e; + q.EthereumClassicTestnetKotti = Kbe; + q.EthereumClassicTestnetMorden = j1e; + q.EthereumClassicTestnetMordor = K1e; + q.EthereumFair = WCe; + q.Ethergem = Lxe; + q.Etherinc = Cve; + q.EtherliteChain = Bve; + q.EthersocialNetwork = T6e; + q.EthoProtocol = r8e; + q.Etica = lEe; + q.EtndChainS = sCe; + q.EuropaSkaleChain = u4e; + q.Eurus = y_e; + q.EurusTestnet = Oxe; + q.Evanesco = dTe; + q.EvanescoTestnet = U_e; + q.Evmos = p3e; + q.EvmosTestnet = d3e; + q.EvriceNetwork = g_e; + q.Excelon = I8e; + q.ExcoincialChain = k8e; + q.ExcoincialChainVoltaTestnet = A8e; + q.ExosamaNetwork = aTe; + q.ExpanseNetwork = Hbe; + q.ExzoNetwork = K_e; + q.EzchainCChain = ETe; + q.EzchainCChainTestnet = CTe; + q.FXCoreNetwork = o2e; + q.Factory127 = Vve; + q.FantasiaChain = H2e; + q.Fantom = wH; + q.FantomTestnet = xH; + q.FastexChainTestnet = NCe; + q.Filecoin = Nwe; + q.FilecoinButterflyTestnet = u8e; + q.FilecoinCalibrationTestnet = CCe; + q.FilecoinHyperspaceTestnet = RTe; + q.FilecoinLocalTestnet = P8e; + q.FilecoinWallabyTestnet = A6e; + q.Findora = oTe; + q.FindoraForge = uTe; + q.FindoraTestnet = cTe; + q.Firechain = s2e; + q.FirenzeTestNetwork = SEe; + q.Flachain = M8e; + q.Flare = Qbe; + q.FlareTestnetCoston = e1e; + q.FlareTestnetCoston2 = Ove; + q.Floripa = $6e; + q.Fncy = tve; + q.FncyTestnet = e8e; + q.FreightTrustNetwork = fwe; + q.Frenchain = j6e; + q.FrenchainTestnet = Qwe; + q.FrontierOfDreamsTestnet = t6e; + q.Fuse = Uve; + q.FuseSparknet = Hve; + q.Fusion = S6e; + q.FusionTestnet = G6e; + q.Ganache = v5e; + q.GarizonStage0 = gve; + q.GarizonStage1 = bve; + q.GarizonStage2 = vve; + q.GarizonStage3 = wve; + q.GarizonTestnetStage0 = G2e; + q.GarizonTestnetStage1 = Y2e; + q.GarizonTestnetStage2 = $2e; + q.GarizonTestnetStage3 = J2e; + q.Gatechain = hve; + q.GatechainTestnet = pve; + q.GatherDevnetNetwork = K8e; + q.GatherNetwork = q8e; + q.GatherTestnetNetwork = j8e; + q.GearZeroNetwork = a2e; + q.GearZeroNetworkTestnet = TCe; + q.Genechain = cve; + q.GenesisCoin = f3e; + q.GenesisL1 = h1e; + q.GenesisL1Testnet = l1e; + q.GiantMammoth = u3e; + q.GitshockCartenzTestnet = Sxe; + q.Gnosis = Eve; + q.Gochain = H1e; + q.GochainTestnet = I6e; + q.Godwoken = EEe; + q.GodwokenTestnetV1 = TEe; + q.Goerli = mH; + q.GoldSmartChain = C5e; + q.GoldSmartChainTestnet = MEe; + q.GonChain = E3e; + q.Gooddata = g1e; + q.GooddataTestnet = y1e; + q.GraphlinqBlockchain = b2e; + q.Gton = p_e; + q.GtonTestnet = X6e; + q.Haic = O2e; + q.Halo = Z_e; + q.HammerChain = g6e; + q.HaqqChainTestnet = rEe; + q.HaqqNetwork = D3e; + q.HaradevTestnet = m4e; + q.HarmonyDevnetShard0 = o4e; + q.HarmonyShard0 = X8e; + q.HarmonyShard1 = e4e; + q.HarmonyShard2 = t4e; + q.HarmonyShard3 = r4e; + q.HarmonyTestnetShard0 = n4e; + q.HarmonyTestnetShard1 = a4e; + q.HarmonyTestnetShard2 = i4e; + q.HarmonyTestnetShard3 = s4e; + q.HaymoTestnet = bCe; + q.HazlorTestnet = O5e; + q.Hedera = Awe; + q.HederaLocalnet = Mwe; + q.HederaPreviewnet = Swe; + q.HederaTestnet = kwe; + q.HertzNetwork = v6e; + q.HighPerformanceBlockchain = Ewe; + q.HomeVerse = n6e; + q.HooSmartChain = Q1e; + q.HooSmartChainTestnet = awe; + q.Htmlcoin = r5e; + q.Humanode = h5e; + q.HuobiEcoChain = Gve; + q.HuobiEcoChainTestnet = _we; + q.HyperonchainTestnet = $we; + q.Idchain = rve; + q.Imversed = l8e; + q.ImversedTestnet = d8e; + q.Iolite = T8e; + q.IoraChain = W_e; + q.IotexNetwork = n5e; + q.IotexNetworkTestnet = a5e; + q.IposNetwork = G8e; + q.IvarChain = REe; + q.IvarChainTestnet = e6e; + q.J2oTaro = P6e; + q.Jellie = mCe; + q.JfinChain = FTe; + q.JibchainL1 = c3e; + q.JoysDigital = R8e; + q.JoysDigitalTestnet = D8e; + q.KaibaLightningChainTestnet = Ave; + q.Kardiachain = c1e; + q.KaruraNetwork = x2e; + q.KaruraNetworkTestnet = f2e; + q.KavaEvm = hTe; + q.KavaEvmTestnet = pTe; + q.Kcc = Owe; + q.KccTestnet = Lwe; + q.Kekchain = PCe; + q.KekchainKektest = RCe; + q.Kerleano = Exe; + q.Kiln = i8e; + q.Kintsugi = a8e; + q.KlaytnCypress = K5e; + q.KlaytnTestnetBaobab = h_e; + q.Kortho = wTe; + q.Korthotest = G5e; + q.Kovan = I1e; + q.Lachain = gwe; + q.LachainTestnet = bwe; + q.LambdaTestnet = NEe; + q.LatamBlockchainResilTestnet = iwe; + q.Lightstreams = twe; + q.LightstreamsTestnet = ewe; + q.Lisinski = Ywe; + q.LiveplexOracleevm = Q6e; + q.Localhost = kH; + q.LucidBlockchain = N2e; + q.LuckyNetwork = l_e; + q.Ludan = wxe; + q.LycanChain = I2e; + q.Maistestsubnet = B8e; + q.Mammoth = o3e; + q.Mantle = u5e; + q.MantleTestnet = l5e; + q.Map = d6e; + q.MapMakalu = mwe; + q.MaroBlockchain = e3e; + q.Mas = gCe; + q.Mathchain = D_e; + q.MathchainTestnet = q_e; + q.MdglTestnet = q5e; + q.MemoSmartChain = c_e; + q.MeshnyanTestnet = g2e; + q.Metacodechain = HTe; + q.Metadium = $be; + q.MetadiumTestnet = Jbe; + q.Metadot = Z3e; + q.MetadotTestnet = Q3e; + q.MetalCChain = SCe; + q.MetalTahoeCChain = MCe; + q.Metaplayerone = iTe; + q.Meter = lve; + q.MeterTestnet = dve; + q.MetisAndromeda = A_e; + q.MetisGoerliTestnet = y2e; + q.MilkomedaA1 = Uxe; + q.MilkomedaA1Testnet = uCe; + q.MilkomedaC1 = Wxe; + q.MilkomedaC1Testnet = cCe; + q.MintmeComCoin = y6e; + q.Mix = ave; + q.MixinVirtualMachine = IEe; + q.Moac = k_e; + q.MoacTestnet = hwe; + q.MolereumNetwork = b4e; + q.MoonbaseAlpha = exe; + q.Moonbeam = Q_e; + q.Moonriver = X_e; + q.Moonrock = txe; + q.Multivac = hEe; + q.Mumbai = IH; + q.MunodeTestnet = r_e; + q.Musicoin = m8e; + q.MyownTestnet = _3e; + q.MythicalChain = hCe; + q.Nahmii = m5e; + q.NahmiiTestnet = y5e; + q.Nebula = Z8e; + q.NebulaStaging = V8e; + q.NebulaTestnet = Mve; + q.NeonEvm = W8e; + q.NeonEvmDevnet = F8e; + q.NeonEvmTestnet = U8e; + q.NepalBlockchainNetwork = s_e; + q.Newton = b_e; + q.NewtonTestnet = m_e; + q.NovaNetwork = fve; + q.Ntity = f4e; + q.Numbers = S3e; + q.NumbersTestnet = M3e; + q.OasisEmerald = U6e; + q.OasisEmeraldTestnet = W6e; + q.OasisSapphire = h6e; + q.OasisSapphireTestnet = f6e; + q.Oasischain = w6e; + q.Oasys = wwe; + q.Octaspace = GCe; + q.Oho = O6e; + q.OkexchainTestnet = G1e; + q.Okxchain = Y1e; + q.OmPlatform = $_e; + q.Omax = Bwe; + q.Omchain = c6e; + q.Oneledger = H8e; + q.OneledgerTestnetFrankenstein = d4e; + q.Ontology = W1e; + q.OntologyTestnet = w5e; + q.OnusChain = Nxe; + q.OnusChainTestnet = Pxe; + q.OoneChainTestnet = ICe; + q.Oort = n_e; + q.OortAscraeus = i_e; + q.OortDev = b3e; + q.OortHuygens = a_e; + q.OpalTestnetByUnique = n3e; + q.Openchain = qCe; + q.OpenchainTestnet = M2e; + q.Openpiece = D1e; + q.OpenpieceTestnet = $ve; + q.Openvessel = h8e; + q.OpsideTestnet = p6e; + q.Optimism = yH; + q.OptimismBedrockGoerliAlphaTestnet = _6e; + q.OptimismGoerli = _H; + q.OptimismKovan = Z1e; + q.OptimismOnGnosis = Pwe; + q.OpulentXBeta = L6e; + q.OrigintrailParachain = Qxe; + q.OrlandoChain = MTe; + q.Oychain = Kve; + q.OychainTestnet = jve; + q.P12Chain = s6e; + q.Palm = h4e; + q.PalmTestnet = p4e; + q.Pandoproject = WTe; + q.PandoprojectTestnet = UTe; + q.ParibuNet = DTe; + q.ParibuNetTestnet = qTe; + q.Pdc = g4e; + q.Pegglecoin = D6e; + q.PepchainChurchill = w8e; + q.PhiNetworkV1 = e5e; + q.PhiNetworkV2 = Zve; + q.Phoenix = G3e; + q.PieceTestnet = x6e; + q.Pirl = l4e; + q.PixieChain = E5e; + q.PixieChainTestnet = _2e; + q.Planq = P5e; + q.Platon = yCe; + q.PlatonDevTestnet2 = c8e; + q.PlianMain = o8e; + q.PlianSubchain1 = y8e; + q.PlianTestnetMain = x8e; + q.PlianTestnetSubchain1 = g8e; + q.PoaNetworkCore = Tve; + q.PoaNetworkSokol = ive; + q.Pocrnet = xTe; + q.Polis = kCe; + q.PolisTestnet = ACe; + q.Polygon = vH; + q.PolygonZkevmTestnet = pxe; + q.PolyjuiceTestnet = xEe; + q.Polysmartchain = A5e; + q.Popcateum = z_e; + q.PortalFantasyChain = Z2e; + q.PortalFantasyChainTest = L2e; + q.PosichainDevnetShard0 = QCe; + q.PosichainDevnetShard1 = XCe; + q.PosichainShard0 = JCe; + q.PosichainTestnetShard0 = ZCe; + q.Primuschain = sve; + q.ProofOfMemes = r6e; + q.ProtonTestnet = Rve; + q.ProxyNetworkTestnet = E_e; + q.Publicmint = Gxe; + q.PublicmintDevnet = Kxe; + q.PublicmintTestnet = Vxe; + q.Pulsechain = Vwe; + q.PulsechainTestnet = X2e; + q.PulsechainTestnetV2b = e_e; + q.PulsechainTestnetV3 = t_e; + q.Q = R6e; + q.QTestnet = B6e; + q.Qeasyweb3Testnet = g3e; + q.Qitmeer = D2e; + q.QitmeerNetworkTestnet = z5e; + q.Ql1 = S2e; + q.Ql1Testnet = f8e; + q.QuadransBlockchain = R3e; + q.QuadransBlockchainTestnet = B3e; + q.Quarkblockchain = C8e; + q.QuarkchainDevnetRoot = ZEe; + q.QuarkchainDevnetShard0 = QEe; + q.QuarkchainDevnetShard1 = XEe; + q.QuarkchainDevnetShard2 = eCe; + q.QuarkchainDevnetShard3 = tCe; + q.QuarkchainDevnetShard4 = rCe; + q.QuarkchainDevnetShard5 = nCe; + q.QuarkchainDevnetShard6 = aCe; + q.QuarkchainDevnetShard7 = iCe; + q.QuarkchainRoot = DEe; + q.QuarkchainShard0 = qEe; + q.QuarkchainShard1 = FEe; + q.QuarkchainShard2 = WEe; + q.QuarkchainShard3 = UEe; + q.QuarkchainShard4 = HEe; + q.QuarkchainShard5 = zEe; + q.QuarkchainShard6 = jEe; + q.QuarkchainShard7 = KEe; + q.QuartzByUnique = r3e; + q.Quokkacoin = tTe; + q.RabbitAnalogTestnetChain = Cxe; + q.RangersProtocol = Zxe; + q.RangersProtocolTestnetRobin = y3e; + q.Realchain = Wve; + q.RedlightChain = TTe; + q.ReiChain = nEe; + q.ReiChainTestnet = aEe; + q.ReiNetwork = Y6e; + q.Resincoin = AEe; + q.RiniaTestnet = Q2e; + q.Rinkeby = jbe; + q.RiseOfTheWarbotsTestnet = N5e; + q.Ropsten = zbe; + q.Rsk = f1e; + q.RskTestnet = m1e; + q.Rupaya = Xwe; + q.Saakuru = p8e; + q.SaakuruTestnet = _Ce; + q.Sakura = v_e; + q.SanrChain = W3e; + q.SapphireByUnique = a3e; + q.Sardis = eEe; + q.SardisTestnet = F3e; + q.Scroll = UCe; + q.ScrollAlphaTestnet = HCe; + q.ScrollPreAlphaTestnet = zCe; + q.SeedcoinNetwork = _1e; + q.Seele = owe; + q.Sepolia = v8e; + q.Setheum = xwe; + q.ShardeumLiberty1X = F5e; + q.ShardeumLiberty2X = W5e; + q.ShardeumSphinx1X = U5e; + q.Sherpax = fxe; + q.SherpaxTestnet = mxe; + q.Shibachain = d1e; + q.Shiden = Wwe; + q.Shyft = R5e; + q.ShyftTestnet = q3e; + q.SingularityZero = H3e; + q.SingularityZeroTestnet = U3e; + q.Siriusnet = yEe; + q.SiriusnetV2 = ywe; + q.Sjatsh = C3e; + q.SmartBitcoinCash = x3e; + q.SmartBitcoinCashTestnet = T3e; + q.SmartHostTeknolojiTestnet = F_e; + q.Smartmesh = E8e; + q.SocialSmartChain = ECe; + q.SongbirdCanaryNetwork = n1e; + q.Soterone = J1e; + q.Soverun = b8e; + q.SoverunTestnet = YEe; + q.Sps = K3e; + q.SpsTestnet = $3e; + q.StarSocialTestnet = T2e; + q.StepNetwork = Y_e; + q.StepTestnet = j3e; + q.Stratos = eTe; + q.StratosTestnet = Xxe; + q.StreamuxBlockchain = H5e; + q.SurBlockchainNetwork = Twe; + q.Susono = Y3e; + q.SxNetwork = Jwe; + q.SxNetworkTestnet = v2e; + q.Syscoin = F1e; + q.SyscoinTanenbaumTestnet = b5e; + q.TEkta = f_e; + q.TaoNetwork = l2e; + q.Taraxa = F2e; + q.TaraxaTestnet = W2e; + q.Taycan = u6e; + q.TaycanTestnet = Jxe; + q.Tbsi = xxe; + q.TbsiTestnet = Txe; + q.TbwgChain = v1e; + q.TcgVerse = bTe; + q.Techpay = _Te; + q.Teleport = L5e; + q.TeleportTestnet = D5e; + q.TelosEvm = E1e; + q.TelosEvmTestnet = C1e; + q.Teslafunds = kxe; + q.Thaichain = Vbe; + q.Thaichain20Thaifi = t1e; + q.Theta = Hwe; + q.ThetaAmberTestnet = jwe; + q.ThetaSapphireTestnet = zwe; + q.ThetaTestnet = Kwe; + q.ThinkiumChain0 = bEe; + q.ThinkiumChain1 = vEe; + q.ThinkiumChain103 = _Ee; + q.ThinkiumChain2 = wEe; + q.ThinkiumTestnetChain0 = sEe; + q.ThinkiumTestnetChain1 = oEe; + q.ThinkiumTestnetChain103 = uEe; + q.ThinkiumTestnetChain2 = cEe; + q.Thundercore = Pve; + q.ThundercoreTestnet = r1e; + q.TlchainNetwork = d5e; + q.TmyChain = X5e; + q.TokiNetwork = Y5e; + q.TokiTestnet = $5e; + q.TombChain = I5e; + q.Tomochain = mve; + q.TomochainTestnet = yve; + q.ToolGlobal = J5e; + q.ToolGlobalTestnet = Z5e; + q.Top = u_e; + q.TopEvm = o_e; + q.Tres = T5e; + q.TresTestnet = x5e; + q.TrustEvmTestnet = J3e; + q.UbSmartChain = LEe; + q.UbSmartChainTestnet = OEe; + q.Ubiq = Gbe; + q.UbiqNetworkTestnet = Ybe; + q.Ultron = G_e; + q.UltronTestnet = V_e; + q.UnicornUltraTestnet = T1e; + q.Unique = t3e; + q.UzmiNetwork = f5e; + q.Valorbit = x1e; + q.Vchain = fTe; + q.Vechain = VEe; + q.VechainTestnet = GEe; + q.Vela1Chain = u2e; + q.VelasEvm = Sve; + q.Venidium = o5e; + q.VenidiumTestnet = s5e; + q.VentionSmartChain = kEe; + q.VentionSmartChainTestnet = k2e; + q.Vision = $Ce; + q.VisionVpioneerTestChain = KCe; + q.VyvoSmartChain = s3e; + q.Wagmi = O3e; + q.Wanchain = V2e; + q.WanchainTestnet = d_e; + q.Web3gamesDevnet = kve; + q.Web3gamesTestnet = Ive; + q.Web3q = qwe; + q.Web3qGalileo = LTe; + q.Web3qTestnet = OTe; + q.Webchain = m6e; + q.WeelinkTestnet = DCe; + q.WegochainRubidium = _5e; + q.Wemix30 = S_e; + q.Wemix30Testnet = M_e; + q.WorldTradeTechnicalChain = H_e; + q.Xanachain = i3e; + q.XdcApothemNetwork = N1e; + q.Xerom = n8e; + q.XinfinXdcNetwork = B1e; + q.Xodex = vTe; + q.XtSmartChain = i2e; + q.Yuanchain = $Te; + q.ZMainnet = jxe; + q.ZTestnet = w3e; + q.ZcoreTestnet = NTe; + q.ZeethChain = Zwe; + q.ZeethChainDev = U2e; + q.Zeniq = y4e; + q.Zenith = ove; + q.ZenithTestnetVilnius = uve; + q.Zetachain = k5e; + q.ZetachainAthensTestnet = S5e; + q.Zhejiang = s8e; + q.ZksyncEra = Dwe; + q.ZksyncEraTestnet = Cwe; + q.Zyx = q1e; + q._0xtade = k3e; + q._4goodnetwork = YCe; + q.allChains = VWt; + q.configureChain = jWt; + q.defaultChains = KWt; + q.getChainRPC = HWt; + q.getChainRPCs = Ube; + q.minimizeChain = zWt; + }); + var QLe = N((F) => { + "use strict"; + _(); + x(); + Object.defineProperty(F, "__esModule", { value: !0 }); + var GWt = { + name: "Ethereum Mainnet", + chain: "ETH", + icon: { + url: "ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/ethereum/512.png", + height: 512, + width: 512, + format: "png", + sizes: [512, 256, 128, 64, 32, 16], + }, + rpc: [ + "https://ethereum.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://eth-mainnet.g.alchemy.com/v2/${ALCHEMY_API_KEY}", + "https://mainnet.infura.io/v3/${INFURA_API_KEY}", + "wss://mainnet.infura.io/ws/v3/${INFURA_API_KEY}", + "https://api.mycryptoapi.com/eth", + "https://cloudflare-eth.com", + ], + features: [{ name: "EIP1559" }, { name: "EIP155" }], + faucets: [], + nativeCurrency: { name: "Ether", symbol: "ETH", decimals: 18 }, + infoURL: "https://ethereum.org", + shortName: "eth", + chainId: 1, + networkId: 1, + slip44: 60, + ens: { registry: "0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e" }, + explorers: [ + { + name: "etherscan", + url: "https://etherscan.io", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "ethereum", + }, + YWt = { + name: "Expanse Network", + chain: "EXP", + rpc: [ + "https://expanse-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://node.expanse.tech", + ], + faucets: [], + nativeCurrency: { + name: "Expanse Network Ether", + symbol: "EXP", + decimals: 18, + }, + infoURL: "https://expanse.tech", + shortName: "exp", + chainId: 2, + networkId: 1, + slip44: 40, + testnet: !1, + slug: "expanse-network", + }, + $Wt = { + name: "Ropsten", + title: "Ethereum Testnet Ropsten", + chain: "ETH", + rpc: [ + "https://ropsten.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://ropsten.infura.io/v3/${INFURA_API_KEY}", + "wss://ropsten.infura.io/ws/v3/${INFURA_API_KEY}", + ], + faucets: [ + "http://fauceth.komputing.org?chain=3&address=${ADDRESS}", + "https://faucet.ropsten.be?${ADDRESS}", + ], + nativeCurrency: { name: "Ropsten Ether", symbol: "ETH", decimals: 18 }, + infoURL: "https://github.com/ethereum/ropsten", + shortName: "rop", + chainId: 3, + networkId: 3, + ens: { registry: "0x112234455c3a32fd11230c42e7bccd4a84e02010" }, + explorers: [ + { + name: "etherscan", + url: "https://ropsten.etherscan.io", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "ropsten", + }, + JWt = { + name: "Rinkeby", + title: "Ethereum Testnet Rinkeby", + chain: "ETH", + rpc: [ + "https://rinkeby.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rinkeby.infura.io/v3/${INFURA_API_KEY}", + "wss://rinkeby.infura.io/ws/v3/${INFURA_API_KEY}", + ], + faucets: [ + "http://fauceth.komputing.org?chain=4&address=${ADDRESS}", + "https://faucet.rinkeby.io", + ], + nativeCurrency: { name: "Rinkeby Ether", symbol: "ETH", decimals: 18 }, + infoURL: "https://www.rinkeby.io", + shortName: "rin", + chainId: 4, + networkId: 4, + ens: { registry: "0xe7410170f87102df0055eb195163a03b7f2bff4a" }, + explorers: [ + { + name: "etherscan-rinkeby", + url: "https://rinkeby.etherscan.io", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "rinkeby", + }, + ZWt = { + name: "Goerli", + title: "Ethereum Testnet Goerli", + chain: "ETH", + rpc: [ + "https://goerli.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://eth-goerli.g.alchemy.com/v2/${ALCHEMY_API_KEY}", + "https://goerli.infura.io/v3/${INFURA_API_KEY}", + "wss://goerli.infura.io/v3/${INFURA_API_KEY}", + "https://rpc.goerli.mudit.blog/", + ], + faucets: [ + "https://faucet.goerli.mudit.blog", + "https://goerli-faucet.slock.it?address=${ADDRESS}", + "http://fauceth.komputing.org?chain=5&address=${ADDRESS}", + ], + nativeCurrency: { name: "Goerli Ether", symbol: "ETH", decimals: 18 }, + infoURL: "https://goerli.net/#about", + shortName: "gor", + chainId: 5, + networkId: 5, + ens: { registry: "0x112234455c3a32fd11230c42e7bccd4a84e02010" }, + explorers: [ + { + name: "etherscan-goerli", + url: "https://goerli.etherscan.io", + standard: "EIP3091", + }, + ], + icon: { + url: "ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/ethereum/512.png", + height: 512, + width: 512, + format: "png", + sizes: [512, 256, 128, 64, 32, 16], + }, + testnet: !0, + slug: "goerli", + }, + QWt = { + name: "Ethereum Classic Testnet Kotti", + chain: "ETC", + rpc: [ + "https://ethereum-classic-testnet-kotti.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://www.ethercluster.com/kotti", + ], + faucets: [], + nativeCurrency: { name: "Kotti Ether", symbol: "KOT", decimals: 18 }, + infoURL: "https://explorer.jade.builders/?network=kotti", + shortName: "kot", + chainId: 6, + networkId: 6, + testnet: !0, + slug: "ethereum-classic-testnet-kotti", + }, + XWt = { + name: "ThaiChain", + chain: "TCH", + rpc: [ + "https://thaichain.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.dome.cloud", + "https://rpc.thaichain.org", + ], + faucets: [], + features: [{ name: "EIP155" }, { name: "EIP1559" }], + nativeCurrency: { + name: "ThaiChain Ether", + symbol: "TCH", + decimals: 18, + }, + infoURL: "https://thaichain.io", + shortName: "tch", + chainId: 7, + networkId: 7, + explorers: [ + { + name: "Thaichain Explorer", + url: "https://exp.thaichain.org", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "thaichain", + }, + eUt = { + name: "Ubiq", + chain: "UBQ", + rpc: [ + "https://ubiq.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.octano.dev", + "https://pyrus2.ubiqscan.io", + ], + faucets: [], + nativeCurrency: { name: "Ubiq Ether", symbol: "UBQ", decimals: 18 }, + infoURL: "https://ubiqsmart.com", + shortName: "ubq", + chainId: 8, + networkId: 8, + slip44: 108, + explorers: [ + { name: "ubiqscan", url: "https://ubiqscan.io", standard: "EIP3091" }, + ], + testnet: !1, + slug: "ubiq", + }, + tUt = { + name: "Ubiq Network Testnet", + chain: "UBQ", + rpc: [], + faucets: [], + nativeCurrency: { + name: "Ubiq Testnet Ether", + symbol: "TUBQ", + decimals: 18, + }, + infoURL: "https://ethersocial.org", + shortName: "tubq", + chainId: 9, + networkId: 2, + testnet: !0, + slug: "ubiq-network-testnet", + }, + rUt = { + name: "Optimism", + chain: "ETH", + rpc: [ + "https://optimism.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://opt-mainnet.g.alchemy.com/v2/${ALCHEMY_API_KEY}", + "https://optimism-mainnet.infura.io/v3/${INFURA_API_KEY}", + "https://mainnet.optimism.io/", + ], + faucets: [], + nativeCurrency: { name: "Ether", symbol: "ETH", decimals: 18 }, + infoURL: "https://optimism.io", + shortName: "oeth", + chainId: 10, + networkId: 10, + explorers: [ + { + name: "etherscan", + url: "https://optimistic.etherscan.io", + standard: "EIP3091", + }, + ], + icon: { + url: "ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/optimism/512.png", + height: 512, + width: 512, + format: "png", + sizes: [512, 256, 128, 64, 32, 16], + }, + testnet: !1, + slug: "optimism", + }, + nUt = { + name: "Metadium Mainnet", + chain: "META", + rpc: [ + "https://metadium.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://api.metadium.com/prod", + ], + faucets: [], + nativeCurrency: { + name: "Metadium Mainnet Ether", + symbol: "META", + decimals: 18, + }, + infoURL: "https://metadium.com", + shortName: "meta", + chainId: 11, + networkId: 11, + slip44: 916, + testnet: !1, + slug: "metadium", + }, + aUt = { + name: "Metadium Testnet", + chain: "META", + rpc: [ + "https://metadium-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://api.metadium.com/dev", + ], + faucets: [], + nativeCurrency: { + name: "Metadium Testnet Ether", + symbol: "KAL", + decimals: 18, + }, + infoURL: "https://metadium.com", + shortName: "kal", + chainId: 12, + networkId: 12, + testnet: !0, + slug: "metadium-testnet", + }, + iUt = { + name: "Diode Testnet Staging", + chain: "DIODE", + rpc: [ + "https://diode-testnet-staging.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://staging.diode.io:8443/", + "wss://staging.diode.io:8443/ws", + ], + faucets: [], + nativeCurrency: { + name: "Staging Diodes", + symbol: "sDIODE", + decimals: 18, + }, + infoURL: "https://diode.io/staging", + shortName: "dstg", + chainId: 13, + networkId: 13, + testnet: !0, + slug: "diode-testnet-staging", + }, + sUt = { + name: "Flare Mainnet", + chain: "FLR", + icon: { + url: "ipfs://QmevAevHxRkK2zVct2Eu6Y7s38YC4SmiAiw9X7473pVtmL", + width: 382, + height: 382, + format: "png", + }, + rpc: [ + "https://flare.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://flare-api.flare.network/ext/C/rpc", + ], + faucets: [], + nativeCurrency: { name: "Flare", symbol: "FLR", decimals: 18 }, + infoURL: "https://flare.xyz", + shortName: "flr", + chainId: 14, + networkId: 14, + explorers: [ + { + name: "blockscout", + url: "https://flare-explorer.flare.network", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "flare", + }, + oUt = { + name: "Diode Prenet", + chain: "DIODE", + rpc: [ + "https://diode-prenet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://prenet.diode.io:8443/", + "wss://prenet.diode.io:8443/ws", + ], + faucets: [], + nativeCurrency: { name: "Diodes", symbol: "DIODE", decimals: 18 }, + infoURL: "https://diode.io/prenet", + shortName: "diode", + chainId: 15, + networkId: 15, + testnet: !1, + slug: "diode-prenet", + }, + cUt = { + name: "Flare Testnet Coston", + chain: "FLR", + icon: { + url: "ipfs://QmW7Ljv2eLQ1poRrhJBaVWJBF1TyfZ8QYxDeELRo6sssrj", + width: 382, + height: 382, + format: "png", + }, + rpc: [ + "https://flare-testnet-coston.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://coston-api.flare.network/ext/bc/C/rpc", + ], + faucets: [ + "https://faucet.towolabs.com", + "https://fauceth.komputing.org?chain=16&address=${ADDRESS}", + ], + nativeCurrency: { name: "Coston Flare", symbol: "CFLR", decimals: 18 }, + infoURL: "https://flare.xyz", + shortName: "cflr", + chainId: 16, + networkId: 16, + explorers: [ + { + name: "blockscout", + url: "https://coston-explorer.flare.network", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "flare-testnet-coston", + }, + uUt = { + name: "ThaiChain 2.0 ThaiFi", + chain: "TCH", + rpc: [ + "https://thaichain-2-0-thaifi.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.thaifi.com", + ], + faucets: [], + nativeCurrency: { name: "Thaifi Ether", symbol: "TFI", decimals: 18 }, + infoURL: "https://exp.thaifi.com", + shortName: "tfi", + chainId: 17, + networkId: 17, + testnet: !1, + slug: "thaichain-2-0-thaifi", + }, + lUt = { + name: "ThunderCore Testnet", + chain: "TST", + rpc: [ + "https://thundercore-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://testnet-rpc.thundercore.com", + ], + faucets: ["https://faucet-testnet.thundercore.com"], + nativeCurrency: { + name: "ThunderCore Testnet Token", + symbol: "TST", + decimals: 18, + }, + infoURL: "https://thundercore.com", + shortName: "TST", + chainId: 18, + networkId: 18, + explorers: [ + { + name: "thundercore-blockscout-testnet", + url: "https://explorer-testnet.thundercore.com", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "thundercore-testnet", + }, + dUt = { + name: "Songbird Canary-Network", + chain: "SGB", + icon: { + url: "ipfs://QmXyvnrZY8FUxSULfnKKA99sAEkjAHtvhRx5WeHixgaEdu", + width: 382, + height: 382, + format: "png", + }, + rpc: [ + "https://songbird-canary-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://songbird-api.flare.network/ext/C/rpc", + "https://sgb.ftso.com.au/ext/bc/C/rpc", + "https://sgb.lightft.so/rpc", + "https://sgb-rpc.ftso.eu", + ], + faucets: [], + nativeCurrency: { name: "Songbird", symbol: "SGB", decimals: 18 }, + infoURL: "https://flare.xyz", + shortName: "sgb", + chainId: 19, + networkId: 19, + explorers: [ + { + name: "blockscout", + url: "https://songbird-explorer.flare.network", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "songbird-canary-network", + }, + pUt = { + name: "Elastos Smart Chain", + chain: "ETH", + rpc: [ + "https://elastos-smart-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://api.elastos.io/eth", + ], + faucets: ["https://faucet.elastos.org/"], + nativeCurrency: { name: "Elastos", symbol: "ELA", decimals: 18 }, + infoURL: "https://www.elastos.org/", + shortName: "esc", + chainId: 20, + networkId: 20, + explorers: [ + { + name: "elastos esc explorer", + url: "https://esc.elastos.io", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "elastos-smart-chain", + }, + hUt = { + name: "Elastos Smart Chain Testnet", + chain: "ETH", + rpc: [ + "https://elastos-smart-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://api-testnet.elastos.io/eth", + ], + faucets: ["https://esc-faucet.elastos.io/"], + nativeCurrency: { name: "Elastos", symbol: "tELA", decimals: 18 }, + infoURL: "https://www.elastos.org/", + shortName: "esct", + chainId: 21, + networkId: 21, + explorers: [ + { + name: "elastos esc explorer", + url: "https://esc-testnet.elastos.io", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "elastos-smart-chain-testnet", + }, + fUt = { + name: "ELA-DID-Sidechain Mainnet", + chain: "ETH", + rpc: [], + faucets: [], + nativeCurrency: { name: "Elastos", symbol: "ELA", decimals: 18 }, + infoURL: "https://www.elastos.org/", + shortName: "eladid", + chainId: 22, + networkId: 22, + testnet: !1, + slug: "ela-did-sidechain", + }, + mUt = { + name: "ELA-DID-Sidechain Testnet", + chain: "ETH", + rpc: [], + faucets: [], + nativeCurrency: { name: "Elastos", symbol: "tELA", decimals: 18 }, + infoURL: "https://elaeth.io/", + shortName: "eladidt", + chainId: 23, + networkId: 23, + testnet: !0, + slug: "ela-did-sidechain-testnet", + }, + yUt = { + name: "KardiaChain Mainnet", + chain: "KAI", + icon: { + url: "ipfs://QmXoHaZXJevc59GuzEgBhwRSH6kio1agMRvL8bD93pARRV", + format: "png", + width: 297, + height: 297, + }, + rpc: [ + "https://kardiachain.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.kardiachain.io", + ], + faucets: [], + nativeCurrency: { name: "KardiaChain", symbol: "KAI", decimals: 18 }, + infoURL: "https://kardiachain.io", + shortName: "kardiachain", + chainId: 24, + networkId: 0, + redFlags: ["reusedChainId"], + testnet: !1, + slug: "kardiachain", + }, + gUt = { + name: "Cronos Mainnet Beta", + chain: "CRO", + rpc: [ + "https://cronos-beta.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://evm.cronos.org", + ], + features: [{ name: "EIP1559" }], + faucets: [], + nativeCurrency: { name: "Cronos", symbol: "CRO", decimals: 18 }, + infoURL: "https://cronos.org/", + shortName: "cro", + chainId: 25, + networkId: 25, + explorers: [ + { + name: "Cronos Explorer", + url: "https://cronoscan.com", + standard: "none", + }, + ], + testnet: !1, + slug: "cronos-beta", + }, + bUt = { + name: "Genesis L1 testnet", + chain: "genesis", + rpc: [ + "https://genesis-l1-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://testrpc.genesisl1.org", + ], + faucets: [], + nativeCurrency: { name: "L1 testcoin", symbol: "L1test", decimals: 18 }, + infoURL: "https://www.genesisl1.com", + shortName: "L1test", + chainId: 26, + networkId: 26, + explorers: [ + { + name: "Genesis L1 testnet explorer", + url: "https://testnet.genesisl1.org", + standard: "none", + }, + ], + testnet: !0, + slug: "genesis-l1-testnet", + }, + vUt = { + name: "ShibaChain", + chain: "SHIB", + rpc: [ + "https://shibachain.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.shibachain.net", + ], + faucets: [], + nativeCurrency: { + name: "SHIBA INU COIN", + symbol: "SHIB", + decimals: 18, + }, + infoURL: "https://www.shibachain.net", + shortName: "shib", + chainId: 27, + networkId: 27, + explorers: [ + { + name: "Shiba Explorer", + url: "https://exp.shibachain.net", + standard: "none", + }, + ], + testnet: !1, + slug: "shibachain", + }, + wUt = { + name: "Boba Network Rinkeby Testnet", + chain: "ETH", + rpc: [ + "https://boba-network-rinkeby-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rinkeby.boba.network/", + ], + faucets: [], + nativeCurrency: { name: "Ether", symbol: "ETH", decimals: 18 }, + infoURL: "https://boba.network", + shortName: "BobaRinkeby", + chainId: 28, + networkId: 28, + explorers: [ + { + name: "Blockscout", + url: "https://blockexplorer.rinkeby.boba.network", + standard: "none", + }, + ], + parent: { + type: "L2", + chain: "eip155-4", + bridges: [{ url: "https://gateway.rinkeby.boba.network" }], + }, + testnet: !0, + slug: "boba-network-rinkeby-testnet", + }, + _Ut = { + name: "Genesis L1", + chain: "genesis", + rpc: [ + "https://genesis-l1.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.genesisl1.org", + ], + faucets: [], + nativeCurrency: { name: "L1 coin", symbol: "L1", decimals: 18 }, + infoURL: "https://www.genesisl1.com", + shortName: "L1", + chainId: 29, + networkId: 29, + explorers: [ + { + name: "Genesis L1 blockchain explorer", + url: "https://explorer.genesisl1.org", + standard: "none", + }, + ], + testnet: !1, + slug: "genesis-l1", + }, + xUt = { + name: "RSK Mainnet", + chain: "RSK", + rpc: [ + "https://rsk.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://public-node.rsk.co", + "https://mycrypto.rsk.co", + ], + faucets: ["https://faucet.rsk.co/"], + nativeCurrency: { name: "Smart Bitcoin", symbol: "RBTC", decimals: 18 }, + infoURL: "https://rsk.co", + shortName: "rsk", + chainId: 30, + networkId: 30, + slip44: 137, + explorers: [ + { + name: "RSK Explorer", + url: "https://explorer.rsk.co", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "rsk", + }, + TUt = { + name: "RSK Testnet", + chain: "RSK", + rpc: [ + "https://rsk-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://public-node.testnet.rsk.co", + "https://mycrypto.testnet.rsk.co", + ], + faucets: ["https://faucet.rsk.co/"], + nativeCurrency: { + name: "Testnet Smart Bitcoin", + symbol: "tRBTC", + decimals: 18, + }, + infoURL: "https://rsk.co", + shortName: "trsk", + chainId: 31, + networkId: 31, + explorers: [ + { + name: "RSK Testnet Explorer", + url: "https://explorer.testnet.rsk.co", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "rsk-testnet", + }, + EUt = { + name: "GoodData Testnet", + chain: "GooD", + rpc: [ + "https://gooddata-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://test2.goodata.io", + ], + faucets: [], + nativeCurrency: { + name: "GoodData Testnet Ether", + symbol: "GooD", + decimals: 18, + }, + infoURL: "https://www.goodata.org", + shortName: "GooDT", + chainId: 32, + networkId: 32, + testnet: !0, + slug: "gooddata-testnet", + }, + CUt = { + name: "GoodData Mainnet", + chain: "GooD", + rpc: [ + "https://gooddata.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.goodata.io", + ], + faucets: [], + nativeCurrency: { + name: "GoodData Mainnet Ether", + symbol: "GooD", + decimals: 18, + }, + infoURL: "https://www.goodata.org", + shortName: "GooD", + chainId: 33, + networkId: 33, + testnet: !1, + slug: "gooddata", + }, + IUt = { + name: "Dithereum Testnet", + chain: "DTH", + icon: { + url: "ipfs://QmSHN5GtRGpMMpszSn1hF47ZSLRLqrLxWsQ48YYdJPyjLf", + width: 500, + height: 500, + format: "png", + }, + rpc: [ + "https://dithereum-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://node-testnet.dithereum.io", + ], + faucets: ["https://faucet.dithereum.org"], + nativeCurrency: { name: "Dither", symbol: "DTH", decimals: 18 }, + infoURL: "https://dithereum.org", + shortName: "dth", + chainId: 34, + networkId: 34, + testnet: !0, + slug: "dithereum-testnet", + }, + AUt = { + name: "TBWG Chain", + chain: "TBWG", + rpc: [ + "https://tbwg-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.tbwg.io", + ], + faucets: [], + nativeCurrency: { name: "TBWG Ether", symbol: "TBG", decimals: 18 }, + infoURL: "https://tbwg.io", + shortName: "tbwg", + chainId: 35, + networkId: 35, + testnet: !1, + slug: "tbwg-chain", + }, + kUt = { + name: "Dxchain Mainnet", + chain: "Dxchain", + icon: { + url: "ipfs://QmYBup5bWoBfkaHntbcgW8Ji7ncad7f53deJ4Q55z4PNQs", + width: 128, + height: 128, + format: "png", + }, + rpc: [ + "https://dxchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://mainnet.dxchain.com", + ], + faucets: [], + nativeCurrency: { name: "Dxchain", symbol: "DX", decimals: 18 }, + infoURL: "https://www.dxchain.com/", + shortName: "dx", + chainId: 36, + networkId: 36, + explorers: [ + { name: "dxscan", url: "https://dxscan.io", standard: "EIP3091" }, + ], + testnet: !1, + slug: "dxchain", + }, + SUt = { + name: "SeedCoin-Network", + chain: "SeedCoin-Network", + rpc: [ + "https://seedcoin-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://node.seedcoin.network", + ], + faucets: [], + nativeCurrency: { name: "SeedCoin", symbol: "SEED", decimals: 18 }, + infoURL: "https://www.seedcoin.network/", + shortName: "SEED", + icon: { + url: "ipfs://QmSchLvCCZjBzcv5n22v1oFDAc2yHJ42NERyjZeL9hBgrh", + width: 64, + height: 64, + format: "png", + }, + chainId: 37, + networkId: 37, + testnet: !1, + slug: "seedcoin-network", + }, + MUt = { + name: "Valorbit", + chain: "VAL", + rpc: [ + "https://valorbit.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.valorbit.com/v2", + ], + faucets: [], + nativeCurrency: { name: "Valorbit", symbol: "VAL", decimals: 18 }, + infoURL: "https://valorbit.com", + shortName: "val", + chainId: 38, + networkId: 38, + slip44: 538, + testnet: !1, + slug: "valorbit", + }, + PUt = { + name: "Unicorn Ultra Testnet", + chain: "u2u", + rpc: [ + "https://unicorn-ultra-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc-testnet.uniultra.xyz", + ], + faucets: ["https://faucet.uniultra.xyz"], + nativeCurrency: { name: "Unicorn Ultra", symbol: "U2U", decimals: 18 }, + infoURL: "https://uniultra.xyz", + shortName: "u2u", + chainId: 39, + networkId: 39, + icon: { + url: "ipfs://QmcW64RgqQVHnNbVFyfaMNKt7dJvFqEbfEHZmeyeK8dpEa", + width: 512, + height: 512, + format: "png", + }, + explorers: [ + { + icon: "u2u", + name: "U2U Explorer", + url: "https://testnet.uniultra.xyz", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "unicorn-ultra-testnet", + }, + RUt = { + name: "Telos EVM Mainnet", + chain: "TLOS", + rpc: [ + "https://telos-evm.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://mainnet.telos.net/evm", + ], + faucets: [], + nativeCurrency: { name: "Telos", symbol: "TLOS", decimals: 18 }, + infoURL: "https://telos.net", + shortName: "TelosEVM", + chainId: 40, + networkId: 40, + explorers: [ + { name: "teloscan", url: "https://teloscan.io", standard: "EIP3091" }, + ], + testnet: !1, + slug: "telos-evm", + }, + BUt = { + name: "Telos EVM Testnet", + chain: "TLOS", + rpc: [ + "https://telos-evm-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://testnet.telos.net/evm", + ], + faucets: ["https://app.telos.net/testnet/developers"], + nativeCurrency: { name: "Telos", symbol: "TLOS", decimals: 18 }, + infoURL: "https://telos.net", + shortName: "TelosEVMTestnet", + chainId: 41, + networkId: 41, + testnet: !0, + slug: "telos-evm-testnet", + }, + NUt = { + name: "Kovan", + title: "Ethereum Testnet Kovan", + chain: "ETH", + rpc: [ + "https://kovan.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://kovan.poa.network", + "http://kovan.poa.network:8545", + "https://kovan.infura.io/v3/${INFURA_API_KEY}", + "wss://kovan.infura.io/ws/v3/${INFURA_API_KEY}", + "ws://kovan.poa.network:8546", + ], + faucets: [ + "http://fauceth.komputing.org?chain=42&address=${ADDRESS}", + "https://faucet.kovan.network", + "https://gitter.im/kovan-testnet/faucet", + ], + nativeCurrency: { name: "Kovan Ether", symbol: "ETH", decimals: 18 }, + explorers: [ + { + name: "etherscan", + url: "https://kovan.etherscan.io", + standard: "EIP3091", + }, + ], + infoURL: "https://kovan-testnet.github.io/website", + shortName: "kov", + chainId: 42, + networkId: 42, + testnet: !0, + slug: "kovan", + }, + OUt = { + name: "Darwinia Pangolin Testnet", + chain: "pangolin", + rpc: [ + "https://darwinia-pangolin-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://pangolin-rpc.darwinia.network", + ], + faucets: [ + "https://docs.crab.network/dvm/wallets/dvm-metamask#apply-for-the-test-token", + ], + nativeCurrency: { + name: "Pangolin Network Native Token", + symbol: "PRING", + decimals: 18, + }, + infoURL: "https://darwinia.network/", + shortName: "pangolin", + chainId: 43, + networkId: 43, + explorers: [ + { + name: "subscan", + url: "https://pangolin.subscan.io", + standard: "none", + }, + ], + testnet: !0, + slug: "darwinia-pangolin-testnet", + }, + LUt = { + name: "Darwinia Crab Network", + chain: "crab", + rpc: [ + "https://darwinia-crab-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://crab-rpc.darwinia.network", + ], + faucets: [], + nativeCurrency: { + name: "Crab Network Native Token", + symbol: "CRAB", + decimals: 18, + }, + infoURL: "https://crab.network/", + shortName: "crab", + chainId: 44, + networkId: 44, + explorers: [ + { name: "subscan", url: "https://crab.subscan.io", standard: "none" }, + ], + testnet: !1, + slug: "darwinia-crab-network", + }, + DUt = { + name: "Darwinia Pangoro Testnet", + chain: "pangoro", + rpc: [ + "https://darwinia-pangoro-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://pangoro-rpc.darwinia.network", + ], + faucets: [], + nativeCurrency: { + name: "Pangoro Network Native Token", + symbol: "ORING", + decimals: 18, + }, + infoURL: "https://darwinia.network/", + shortName: "pangoro", + chainId: 45, + networkId: 45, + explorers: [ + { + name: "subscan", + url: "https://pangoro.subscan.io", + standard: "none", + }, + ], + testnet: !0, + slug: "darwinia-pangoro-testnet", + }, + qUt = { + name: "Darwinia Network", + chain: "darwinia", + rpc: [ + "https://darwinia-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.darwinia.network", + ], + faucets: [], + nativeCurrency: { + name: "Darwinia Network Native Token", + symbol: "RING", + decimals: 18, + }, + infoURL: "https://darwinia.network/", + shortName: "darwinia", + chainId: 46, + networkId: 46, + explorers: [ + { + name: "subscan", + url: "https://darwinia.subscan.io", + standard: "none", + }, + ], + testnet: !1, + slug: "darwinia-network", + }, + FUt = { + name: "Ennothem Mainnet Proterozoic", + chain: "ETMP", + rpc: [ + "https://ennothem-proterozoic.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.etm.network", + ], + faucets: [], + nativeCurrency: { name: "Ennothem", symbol: "ETMP", decimals: 18 }, + infoURL: "https://etm.network", + shortName: "etmp", + chainId: 48, + networkId: 48, + icon: { + url: "ipfs://QmT7DTqT1V2y42pRpt3sj9ifijfmbtkHN7D2vTfAUAS622", + width: 512, + height: 512, + format: "png", + }, + explorers: [ + { + name: "etmpscan", + url: "https://etmscan.network", + icon: "etmp", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "ennothem-proterozoic", + }, + WUt = { + name: "Ennothem Testnet Pioneer", + chain: "ETMP", + rpc: [ + "https://ennothem-testnet-pioneer.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.pioneer.etm.network", + ], + faucets: [], + nativeCurrency: { name: "Ennothem", symbol: "ETMP", decimals: 18 }, + infoURL: "https://etm.network", + shortName: "etmpTest", + chainId: 49, + networkId: 49, + icon: { + url: "ipfs://QmT7DTqT1V2y42pRpt3sj9ifijfmbtkHN7D2vTfAUAS622", + width: 512, + height: 512, + format: "png", + }, + explorers: [ + { + name: "etmp", + url: "https://pioneer.etmscan.network", + icon: "etmpscan", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "ennothem-testnet-pioneer", + }, + UUt = { + name: "XinFin XDC Network", + chain: "XDC", + rpc: [ + "https://xinfin-xdc-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://erpc.xinfin.network", + "https://rpc.xinfin.network", + "https://rpc1.xinfin.network", + ], + faucets: [], + nativeCurrency: { name: "XinFin", symbol: "XDC", decimals: 18 }, + infoURL: "https://xinfin.org", + shortName: "xdc", + chainId: 50, + networkId: 50, + icon: { + url: "ipfs://QmeRq7pabiJE2n1xU3Y5Mb4TZSX9kQ74x7a3P2Z4PqcMRX", + width: 1450, + height: 1450, + format: "png", + }, + explorers: [ + { + name: "xdcscan", + url: "https://xdcscan.io", + icon: "blocksscan", + standard: "EIP3091", + }, + { + name: "blocksscan", + url: "https://xdc.blocksscan.io", + icon: "blocksscan", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "xinfin-xdc-network", + }, + HUt = { + name: "XDC Apothem Network", + chain: "XDC", + rpc: [ + "https://xdc-apothem-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.apothem.network", + "https://erpc.apothem.network", + ], + faucets: ["https://faucet.apothem.network"], + nativeCurrency: { name: "XinFin", symbol: "TXDC", decimals: 18 }, + infoURL: "https://xinfin.org", + shortName: "txdc", + chainId: 51, + networkId: 51, + icon: { + url: "ipfs://QmeRq7pabiJE2n1xU3Y5Mb4TZSX9kQ74x7a3P2Z4PqcMRX", + width: 1450, + height: 1450, + format: "png", + }, + explorers: [ + { + name: "xdcscan", + url: "https://apothem.xinfinscan.com", + icon: "blocksscan", + standard: "EIP3091", + }, + { + name: "blocksscan", + url: "https://apothem.blocksscan.io", + icon: "blocksscan", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "xdc-apothem-network", + }, + zUt = { + name: "CoinEx Smart Chain Mainnet", + chain: "CSC", + rpc: [ + "https://coinex-smart-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.coinex.net", + ], + faucets: [], + nativeCurrency: { + name: "CoinEx Chain Native Token", + symbol: "cet", + decimals: 18, + }, + infoURL: "https://www.coinex.org/", + shortName: "cet", + chainId: 52, + networkId: 52, + explorers: [ + { + name: "coinexscan", + url: "https://www.coinex.net", + standard: "none", + }, + ], + testnet: !1, + slug: "coinex-smart-chain", + }, + jUt = { + name: "CoinEx Smart Chain Testnet", + chain: "CSC", + rpc: [ + "https://coinex-smart-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://testnet-rpc.coinex.net/", + ], + faucets: [], + nativeCurrency: { + name: "CoinEx Chain Test Native Token", + symbol: "cett", + decimals: 18, + }, + infoURL: "https://www.coinex.org/", + shortName: "tcet", + chainId: 53, + networkId: 53, + explorers: [ + { + name: "coinexscan", + url: "https://testnet.coinex.net", + standard: "none", + }, + ], + testnet: !0, + slug: "coinex-smart-chain-testnet", + }, + KUt = { + name: "Openpiece Mainnet", + chain: "OPENPIECE", + icon: { + url: "ipfs://QmVTahJkdSH3HPYsJMK2GmqfWZjLyxE7cXy1aHEnHU3vp2", + width: 250, + height: 250, + format: "png", + }, + rpc: [ + "https://openpiece.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://mainnet.openpiece.io", + ], + faucets: [], + nativeCurrency: { name: "Belly", symbol: "BELLY", decimals: 18 }, + infoURL: "https://cryptopiece.online", + shortName: "OP", + chainId: 54, + networkId: 54, + explorers: [ + { + name: "Belly Scan", + url: "https://bellyscan.com", + standard: "none", + }, + ], + testnet: !1, + slug: "openpiece", + }, + VUt = { + name: "Zyx Mainnet", + chain: "ZYX", + rpc: [ + "https://zyx.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc-1.zyx.network/", + "https://rpc-2.zyx.network/", + "https://rpc-3.zyx.network/", + "https://rpc-4.zyx.network/", + "https://rpc-5.zyx.network/", + "https://rpc-6.zyx.network/", + ], + faucets: [], + nativeCurrency: { name: "Zyx", symbol: "ZYX", decimals: 18 }, + infoURL: "https://zyx.network/", + shortName: "ZYX", + chainId: 55, + networkId: 55, + explorers: [ + { name: "zyxscan", url: "https://zyxscan.com", standard: "none" }, + ], + testnet: !1, + slug: "zyx", + }, + GUt = { + name: "Binance Smart Chain Mainnet", + chain: "BSC", + rpc: [ + "https://binance.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "wss://bsc-ws-node.nariox.org", + "https://bsc-dataseed4.ninicoin.io", + "https://bsc-dataseed3.ninicoin.io", + "https://bsc-dataseed2.ninicoin.io", + "https://bsc-dataseed1.ninicoin.io", + "https://bsc-dataseed4.defibit.io", + "https://bsc-dataseed3.defibit.io", + "https://bsc-dataseed2.defibit.io", + "https://bsc-dataseed1.defibit.io", + "https://bsc-dataseed4.binance.org", + "https://bsc-dataseed3.binance.org", + "https://bsc-dataseed2.binance.org", + "https://bsc-dataseed1.binance.org", + ], + faucets: ["https://free-online-app.com/faucet-for-eth-evm-chains/"], + nativeCurrency: { + name: "Binance Chain Native Token", + symbol: "BNB", + decimals: 18, + }, + infoURL: "https://www.binance.org", + shortName: "bnb", + chainId: 56, + networkId: 56, + slip44: 714, + explorers: [ + { name: "bscscan", url: "https://bscscan.com", standard: "EIP3091" }, + ], + icon: { + url: "ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/binance-coin/512.png", + height: 512, + width: 512, + format: "png", + sizes: [512, 256, 128, 64, 32, 16], + }, + testnet: !1, + slug: "binance", + }, + YUt = { + name: "Syscoin Mainnet", + chain: "SYS", + rpc: [ + "https://syscoin.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.syscoin.org", + "wss://rpc.syscoin.org/wss", + ], + faucets: ["https://faucet.syscoin.org"], + nativeCurrency: { name: "Syscoin", symbol: "SYS", decimals: 18 }, + infoURL: "https://www.syscoin.org", + shortName: "sys", + chainId: 57, + networkId: 57, + explorers: [ + { + name: "Syscoin Block Explorer", + url: "https://explorer.syscoin.org", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "syscoin", + }, + $Ut = { + name: "Ontology Mainnet", + chain: "Ontology", + icon: { + url: "ipfs://bafkreigmvn6spvbiirtutowpq6jmetevbxoof5plzixjoerbeswy4htfb4", + width: 400, + height: 400, + format: "png", + }, + rpc: [ + "https://ontology.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "http://dappnode1.ont.io:20339", + "http://dappnode2.ont.io:20339", + "http://dappnode3.ont.io:20339", + "http://dappnode4.ont.io:20339", + "https://dappnode1.ont.io:10339", + "https://dappnode2.ont.io:10339", + "https://dappnode3.ont.io:10339", + "https://dappnode4.ont.io:10339", + ], + faucets: [], + nativeCurrency: { name: "ONG", symbol: "ONG", decimals: 18 }, + infoURL: "https://ont.io/", + shortName: "OntologyMainnet", + chainId: 58, + networkId: 58, + explorers: [ + { + name: "explorer", + url: "https://explorer.ont.io", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "ontology", + }, + JUt = { + name: "EOS Mainnet", + chain: "EOS", + rpc: [ + "https://eos.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://api.eosargentina.io", + ], + faucets: [], + nativeCurrency: { name: "EOS", symbol: "EOS", decimals: 18 }, + infoURL: "https://eoscommunity.org/", + shortName: "EOSMainnet", + chainId: 59, + networkId: 59, + explorers: [ + { + name: "bloks", + url: "https://bloks.eosargentina.io", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "eos", + }, + ZUt = { + name: "GoChain", + chain: "GO", + rpc: [ + "https://gochain.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.gochain.io", + ], + faucets: ["https://free-online-app.com/faucet-for-eth-evm-chains/"], + nativeCurrency: { name: "GoChain Ether", symbol: "GO", decimals: 18 }, + infoURL: "https://gochain.io", + shortName: "go", + chainId: 60, + networkId: 60, + slip44: 6060, + explorers: [ + { + name: "GoChain Explorer", + url: "https://explorer.gochain.io", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "gochain", + }, + QUt = { + name: "Ethereum Classic Mainnet", + chain: "ETC", + rpc: [ + "https://ethereum-classic.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://www.ethercluster.com/etc", + ], + faucets: ["https://free-online-app.com/faucet-for-eth-evm-chains/?"], + nativeCurrency: { + name: "Ethereum Classic Ether", + symbol: "ETC", + decimals: 18, + }, + infoURL: "https://ethereumclassic.org", + shortName: "etc", + chainId: 61, + networkId: 1, + slip44: 61, + explorers: [ + { + name: "blockscout", + url: "https://blockscout.com/etc/mainnet", + standard: "none", + }, + ], + testnet: !1, + slug: "ethereum-classic", + }, + XUt = { + name: "Ethereum Classic Testnet Morden", + chain: "ETC", + rpc: [], + faucets: [], + nativeCurrency: { + name: "Ethereum Classic Testnet Ether", + symbol: "TETC", + decimals: 18, + }, + infoURL: "https://ethereumclassic.org", + shortName: "tetc", + chainId: 62, + networkId: 2, + testnet: !0, + slug: "ethereum-classic-testnet-morden", + }, + eHt = { + name: "Ethereum Classic Testnet Mordor", + chain: "ETC", + rpc: [ + "https://ethereum-classic-testnet-mordor.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://www.ethercluster.com/mordor", + ], + faucets: [], + nativeCurrency: { + name: "Mordor Classic Testnet Ether", + symbol: "METC", + decimals: 18, + }, + infoURL: "https://github.com/eth-classic/mordor/", + shortName: "metc", + chainId: 63, + networkId: 7, + testnet: !0, + slug: "ethereum-classic-testnet-mordor", + }, + tHt = { + name: "Ellaism", + chain: "ELLA", + rpc: [ + "https://ellaism.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://jsonrpc.ellaism.org", + ], + faucets: [], + nativeCurrency: { name: "Ellaism Ether", symbol: "ELLA", decimals: 18 }, + infoURL: "https://ellaism.org", + shortName: "ellaism", + chainId: 64, + networkId: 64, + slip44: 163, + testnet: !1, + slug: "ellaism", + }, + rHt = { + name: "OKExChain Testnet", + chain: "okexchain", + rpc: [ + "https://okexchain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://exchaintestrpc.okex.org", + ], + faucets: ["https://www.okex.com/drawdex"], + nativeCurrency: { + name: "OKExChain Global Utility Token in testnet", + symbol: "OKT", + decimals: 18, + }, + infoURL: "https://www.okex.com/okexchain", + shortName: "tokt", + chainId: 65, + networkId: 65, + explorers: [ + { + name: "OKLink", + url: "https://www.oklink.com/okexchain-test", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "okexchain-testnet", + }, + nHt = { + name: "OKXChain Mainnet", + chain: "okxchain", + rpc: [ + "https://okxchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://exchainrpc.okex.org", + "https://okc-mainnet.gateway.pokt.network/v1/lb/6275309bea1b320039c893ff", + ], + faucets: ["https://free-online-app.com/faucet-for-eth-evm-chains/?"], + nativeCurrency: { + name: "OKXChain Global Utility Token", + symbol: "OKT", + decimals: 18, + }, + infoURL: "https://www.okex.com/okc", + shortName: "okt", + chainId: 66, + networkId: 66, + explorers: [ + { + name: "OKLink", + url: "https://www.oklink.com/en/okc", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "okxchain", + }, + aHt = { + name: "DBChain Testnet", + chain: "DBM", + rpc: [ + "https://dbchain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "http://test-rpc.dbmbp.com", + ], + faucets: [], + nativeCurrency: { + name: "DBChain Testnet", + symbol: "DBM", + decimals: 18, + }, + infoURL: "http://test.dbmbp.com", + shortName: "dbm", + chainId: 67, + networkId: 67, + testnet: !0, + slug: "dbchain-testnet", + }, + iHt = { + name: "SoterOne Mainnet", + chain: "SOTER", + rpc: [ + "https://soterone.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.soter.one", + ], + faucets: [], + nativeCurrency: { + name: "SoterOne Mainnet Ether", + symbol: "SOTER", + decimals: 18, + }, + infoURL: "https://www.soterone.com", + shortName: "SO1", + chainId: 68, + networkId: 68, + testnet: !1, + slug: "soterone", + }, + sHt = { + name: "Optimism Kovan", + title: "Optimism Testnet Kovan", + chain: "ETH", + rpc: [ + "https://optimism-kovan.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://kovan.optimism.io/", + ], + faucets: ["http://fauceth.komputing.org?chain=69&address=${ADDRESS}"], + nativeCurrency: { name: "Kovan Ether", symbol: "ETH", decimals: 18 }, + explorers: [ + { + name: "etherscan", + url: "https://kovan-optimistic.etherscan.io", + standard: "EIP3091", + }, + ], + infoURL: "https://optimism.io", + shortName: "okov", + chainId: 69, + networkId: 69, + testnet: !0, + slug: "optimism-kovan", + }, + oHt = { + name: "Hoo Smart Chain", + chain: "HSC", + rpc: [ + "https://hoo-smart-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://http-mainnet.hoosmartchain.com", + "https://http-mainnet2.hoosmartchain.com", + "wss://ws-mainnet.hoosmartchain.com", + "wss://ws-mainnet2.hoosmartchain.com", + ], + faucets: [], + nativeCurrency: { + name: "Hoo Smart Chain Native Token", + symbol: "HOO", + decimals: 18, + }, + infoURL: "https://www.hoosmartchain.com", + shortName: "hsc", + chainId: 70, + networkId: 70, + slip44: 1170, + explorers: [ + { + name: "hooscan", + url: "https://www.hooscan.com", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "hoo-smart-chain", + }, + cHt = { + name: "Conflux eSpace (Testnet)", + chain: "Conflux", + rpc: [ + "https://conflux-espace-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://evmtestnet.confluxrpc.com", + ], + faucets: ["https://faucet.confluxnetwork.org"], + nativeCurrency: { name: "CFX", symbol: "CFX", decimals: 18 }, + infoURL: "https://confluxnetwork.org", + shortName: "cfxtest", + chainId: 71, + networkId: 71, + icon: { + url: "ipfs://bafkreifj7n24u2dslfijfihwqvpdeigt5aj3k3sxv6s35lv75sxsfr3ojy", + width: 460, + height: 576, + format: "png", + }, + explorers: [ + { + name: "Conflux Scan", + url: "https://evmtestnet.confluxscan.net", + standard: "none", + }, + ], + testnet: !0, + slug: "conflux-espace-testnet", + }, + uHt = { + name: "DxChain Testnet", + chain: "DxChain", + rpc: [ + "https://dxchain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://testnet-http.dxchain.com", + ], + faucets: ["https://faucet.dxscan.io"], + nativeCurrency: { name: "DxChain Testnet", symbol: "DX", decimals: 18 }, + infoURL: "https://testnet.dxscan.io/", + shortName: "dxc", + chainId: 72, + networkId: 72, + testnet: !0, + slug: "dxchain-testnet", + }, + lHt = { + name: "FNCY", + chain: "FNCY", + rpc: [ + "https://fncy.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://fncy-seed1.fncy.world", + ], + faucets: ["https://faucet-testnet.fncy.world"], + nativeCurrency: { name: "FNCY", symbol: "FNCY", decimals: 18 }, + infoURL: "https://fncyscan.fncy.world", + shortName: "FNCY", + chainId: 73, + networkId: 73, + icon: { + url: "ipfs://QmfXCh6UnaEHn3Evz7RFJ3p2ggJBRm9hunDHegeoquGuhD", + width: 256, + height: 256, + format: "png", + }, + explorers: [ + { + name: "fncy scan", + url: "https://fncyscan.fncy.world", + icon: "fncy", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "fncy", + }, + dHt = { + name: "IDChain Mainnet", + chain: "IDChain", + rpc: [ + "https://idchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://idchain.one/rpc/", + "wss://idchain.one/ws/", + ], + faucets: [], + nativeCurrency: { name: "EIDI", symbol: "EIDI", decimals: 18 }, + infoURL: "https://idchain.one/begin/", + shortName: "idchain", + chainId: 74, + networkId: 74, + icon: { + url: "ipfs://QmZVwsY6HPXScKqZCA9SWNrr4jrQAHkPhVhMWi6Fj1DsrJ", + width: 162, + height: 129, + format: "png", + }, + explorers: [ + { + name: "explorer", + url: "https://explorer.idchain.one", + icon: "etherscan", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "idchain", + }, + pHt = { + name: "Decimal Smart Chain Mainnet", + chain: "DSC", + rpc: [ + "https://decimal-smart-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://node.decimalchain.com/web3", + ], + faucets: [], + nativeCurrency: { name: "Decimal", symbol: "DEL", decimals: 18 }, + features: [{ name: "EIP155" }, { name: "EIP1559" }], + infoURL: "https://decimalchain.com", + shortName: "DSC", + chainId: 75, + networkId: 75, + icon: { + url: "ipfs://QmSgzwKnJJjys3Uq2aVVdwJ3NffLj3CXMVCph9uByTBegc", + width: 256, + height: 256, + format: "png", + }, + explorers: [ + { + name: "DSC Explorer Mainnet", + url: "https://explorer.decimalchain.com", + icon: "dsc", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "decimal-smart-chain", + }, + hHt = { + name: "Mix", + chain: "MIX", + rpc: [ + "https://mix.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc2.mix-blockchain.org:8647", + ], + faucets: [], + nativeCurrency: { name: "Mix Ether", symbol: "MIX", decimals: 18 }, + infoURL: "https://mix-blockchain.org", + shortName: "mix", + chainId: 76, + networkId: 76, + slip44: 76, + testnet: !1, + slug: "mix", + }, + fHt = { + name: "POA Network Sokol", + chain: "POA", + rpc: [ + "https://poa-network-sokol.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://sokol.poa.network", + "wss://sokol.poa.network/wss", + "ws://sokol.poa.network:8546", + ], + faucets: ["https://faucet.poa.network"], + nativeCurrency: { + name: "POA Sokol Ether", + symbol: "SPOA", + decimals: 18, + }, + infoURL: "https://poa.network", + shortName: "spoa", + chainId: 77, + networkId: 77, + explorers: [ + { + name: "blockscout", + url: "https://blockscout.com/poa/sokol", + standard: "none", + }, + ], + testnet: !1, + slug: "poa-network-sokol", + }, + mHt = { + name: "PrimusChain mainnet", + chain: "PC", + rpc: [ + "https://primuschain.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://ethnode.primusmoney.com/mainnet", + ], + faucets: [], + nativeCurrency: { name: "Primus Ether", symbol: "PETH", decimals: 18 }, + infoURL: "https://primusmoney.com", + shortName: "primuschain", + chainId: 78, + networkId: 78, + testnet: !1, + slug: "primuschain", + }, + yHt = { + name: "Zenith Mainnet", + chain: "Zenith", + rpc: [ + "https://zenith.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://dataserver-us-1.zenithchain.co/", + "https://dataserver-asia-3.zenithchain.co/", + "https://dataserver-asia-4.zenithchain.co/", + "https://dataserver-asia-2.zenithchain.co/", + "https://dataserver-asia-5.zenithchain.co/", + "https://dataserver-asia-6.zenithchain.co/", + "https://dataserver-asia-7.zenithchain.co/", + ], + faucets: [], + nativeCurrency: { name: "ZENITH", symbol: "ZENITH", decimals: 18 }, + infoURL: "https://www.zenithchain.co/", + chainId: 79, + networkId: 79, + shortName: "zenith", + explorers: [ + { + name: "zenith scan", + url: "https://scan.zenithchain.co", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "zenith", + }, + gHt = { + name: "GeneChain", + chain: "GeneChain", + rpc: [ + "https://genechain.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.genechain.io", + ], + faucets: [], + nativeCurrency: { name: "RNA", symbol: "RNA", decimals: 18 }, + infoURL: "https://scan.genechain.io/", + shortName: "GeneChain", + chainId: 80, + networkId: 80, + explorers: [ + { + name: "GeneChain Scan", + url: "https://scan.genechain.io", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "genechain", + }, + bHt = { + name: "Zenith Testnet (Vilnius)", + chain: "Zenith", + rpc: [ + "https://zenith-testnet-vilnius.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://vilnius.zenithchain.co/http", + ], + faucets: ["https://faucet.zenithchain.co/"], + nativeCurrency: { name: "Vilnius", symbol: "VIL", decimals: 18 }, + infoURL: "https://www.zenithchain.co/", + chainId: 81, + networkId: 81, + shortName: "VIL", + explorers: [ + { + name: "vilnius scan", + url: "https://vilnius.scan.zenithchain.co", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "zenith-testnet-vilnius", + }, + vHt = { + name: "Meter Mainnet", + chain: "METER", + rpc: [ + "https://meter.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.meter.io", + ], + faucets: ["https://faucet.meter.io"], + nativeCurrency: { name: "Meter", symbol: "MTR", decimals: 18 }, + infoURL: "https://www.meter.io", + shortName: "Meter", + chainId: 82, + networkId: 82, + explorers: [ + { + name: "Meter Mainnet Scan", + url: "https://scan.meter.io", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "meter", + }, + wHt = { + name: "Meter Testnet", + chain: "METER Testnet", + rpc: [ + "https://meter-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpctest.meter.io", + ], + faucets: ["https://faucet-warringstakes.meter.io"], + nativeCurrency: { name: "Meter", symbol: "MTR", decimals: 18 }, + infoURL: "https://www.meter.io", + shortName: "MeterTest", + chainId: 83, + networkId: 83, + explorers: [ + { + name: "Meter Testnet Scan", + url: "https://scan-warringstakes.meter.io", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "meter-testnet", + }, + _Ht = { + name: "GateChain Testnet", + chainId: 85, + shortName: "gttest", + chain: "GTTEST", + networkId: 85, + nativeCurrency: { name: "GateToken", symbol: "GT", decimals: 18 }, + rpc: [ + "https://gatechain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://testnet.gatenode.cc", + ], + faucets: ["https://www.gatescan.org/testnet/faucet"], + explorers: [ + { + name: "GateScan", + url: "https://www.gatescan.org/testnet", + standard: "EIP3091", + }, + ], + infoURL: "https://www.gatechain.io", + testnet: !0, + slug: "gatechain-testnet", + }, + xHt = { + name: "GateChain Mainnet", + chainId: 86, + shortName: "gt", + chain: "GT", + networkId: 86, + nativeCurrency: { name: "GateToken", symbol: "GT", decimals: 18 }, + rpc: [ + "https://gatechain.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://evm.gatenode.cc", + ], + faucets: ["https://www.gatescan.org/faucet"], + explorers: [ + { + name: "GateScan", + url: "https://www.gatescan.org", + standard: "EIP3091", + }, + ], + infoURL: "https://www.gatechain.io", + testnet: !1, + slug: "gatechain", + }, + THt = { + name: "Nova Network", + chain: "NNW", + icon: { + url: "ipfs://QmTTamJ55YGQwMboq4aqf3JjTEy5WDtjo4GBRQ5VdsWA6U", + width: 512, + height: 512, + format: "png", + }, + rpc: [ + "https://nova-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://connect.novanetwork.io", + "https://0x57.redjackstudio.com", + "https://rpc.novanetwork.io:9070", + ], + faucets: [], + nativeCurrency: { name: "Supernova", symbol: "SNT", decimals: 18 }, + infoURL: "https://novanetwork.io", + shortName: "nnw", + chainId: 87, + networkId: 87, + explorers: [ + { + name: "novanetwork", + url: "https://explorer.novanetwork.io", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "nova-network", + }, + EHt = { + name: "TomoChain", + chain: "TOMO", + rpc: [ + "https://tomochain.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.tomochain.com", + ], + faucets: [], + nativeCurrency: { name: "TomoChain", symbol: "TOMO", decimals: 18 }, + infoURL: "https://tomochain.com", + shortName: "tomo", + chainId: 88, + networkId: 88, + slip44: 889, + testnet: !1, + slug: "tomochain", + }, + CHt = { + name: "TomoChain Testnet", + chain: "TOMO", + rpc: [ + "https://tomochain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.testnet.tomochain.com", + ], + faucets: [], + nativeCurrency: { name: "TomoChain", symbol: "TOMO", decimals: 18 }, + infoURL: "https://tomochain.com", + shortName: "tomot", + chainId: 89, + networkId: 89, + slip44: 889, + testnet: !0, + slug: "tomochain-testnet", + }, + IHt = { + name: "Garizon Stage0", + chain: "GAR", + icon: { + url: "ipfs://QmW3WRyuLZ95K8hvV2QN6rP5yWY98sSzWyVUxD2eUjXGrc", + width: 1024, + height: 613, + format: "png", + }, + rpc: [ + "https://garizon-stage0.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://s0.garizon.net/rpc", + ], + faucets: [], + nativeCurrency: { name: "Garizon", symbol: "GAR", decimals: 18 }, + infoURL: "https://garizon.com", + shortName: "gar-s0", + chainId: 90, + networkId: 90, + explorers: [ + { + name: "explorer", + url: "https://explorer.garizon.com", + icon: "garizon", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "garizon-stage0", + }, + AHt = { + name: "Garizon Stage1", + chain: "GAR", + icon: { + url: "ipfs://QmW3WRyuLZ95K8hvV2QN6rP5yWY98sSzWyVUxD2eUjXGrc", + width: 1024, + height: 613, + format: "png", + }, + rpc: [ + "https://garizon-stage1.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://s1.garizon.net/rpc", + ], + faucets: [], + nativeCurrency: { name: "Garizon", symbol: "GAR", decimals: 18 }, + infoURL: "https://garizon.com", + shortName: "gar-s1", + chainId: 91, + networkId: 91, + explorers: [ + { + name: "explorer", + url: "https://explorer.garizon.com", + icon: "garizon", + standard: "EIP3091", + }, + ], + parent: { chain: "eip155-90", type: "shard" }, + testnet: !1, + slug: "garizon-stage1", + }, + kHt = { + name: "Garizon Stage2", + chain: "GAR", + icon: { + url: "ipfs://QmW3WRyuLZ95K8hvV2QN6rP5yWY98sSzWyVUxD2eUjXGrc", + width: 1024, + height: 613, + format: "png", + }, + rpc: [ + "https://garizon-stage2.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://s2.garizon.net/rpc", + ], + faucets: [], + nativeCurrency: { name: "Garizon", symbol: "GAR", decimals: 18 }, + infoURL: "https://garizon.com", + shortName: "gar-s2", + chainId: 92, + networkId: 92, + explorers: [ + { + name: "explorer", + url: "https://explorer.garizon.com", + icon: "garizon", + standard: "EIP3091", + }, + ], + parent: { chain: "eip155-90", type: "shard" }, + testnet: !1, + slug: "garizon-stage2", + }, + SHt = { + name: "Garizon Stage3", + chain: "GAR", + icon: { + url: "ipfs://QmW3WRyuLZ95K8hvV2QN6rP5yWY98sSzWyVUxD2eUjXGrc", + width: 1024, + height: 613, + format: "png", + }, + rpc: [ + "https://garizon-stage3.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://s3.garizon.net/rpc", + ], + faucets: [], + nativeCurrency: { name: "Garizon", symbol: "GAR", decimals: 18 }, + infoURL: "https://garizon.com", + shortName: "gar-s3", + chainId: 93, + networkId: 93, + explorers: [ + { + name: "explorer", + url: "https://explorer.garizon.com", + icon: "garizon", + standard: "EIP3091", + }, + ], + parent: { chain: "eip155-90", type: "shard" }, + testnet: !1, + slug: "garizon-stage3", + }, + MHt = { + name: "CryptoKylin Testnet", + chain: "EOS", + rpc: [ + "https://cryptokylin-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://kylin.eosargentina.io", + ], + faucets: [], + nativeCurrency: { name: "EOS", symbol: "EOS", decimals: 18 }, + infoURL: "https://www.cryptokylin.io/", + shortName: "KylinTestnet", + chainId: 95, + networkId: 95, + explorers: [ + { + name: "eosq", + url: "https://kylin.eosargentina.io", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "cryptokylin-testnet", + }, + PHt = { + name: "Bitkub Chain", + chain: "BKC", + icon: { + url: "ipfs://QmYFYwyquipwc9gURQGcEd4iAq7pq15chQrJ3zJJe9HuFT", + width: 1e3, + height: 1e3, + format: "png", + }, + rpc: [ + "https://bitkub-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.bitkubchain.io", + "wss://wss.bitkubchain.io", + ], + faucets: [], + nativeCurrency: { name: "Bitkub Coin", symbol: "KUB", decimals: 18 }, + infoURL: "https://www.bitkubchain.com/", + shortName: "bkc", + chainId: 96, + networkId: 96, + explorers: [ + { + name: "Bitkub Chain Explorer", + url: "https://bkcscan.com", + standard: "none", + icon: "bkc", + }, + ], + redFlags: ["reusedChainId"], + testnet: !1, + slug: "bitkub-chain", + }, + RHt = { + name: "Binance Smart Chain Testnet", + chain: "BSC", + rpc: [ + "https://binance-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://data-seed-prebsc-2-s3.binance.org:8545", + "https://data-seed-prebsc-1-s3.binance.org:8545", + "https://data-seed-prebsc-2-s2.binance.org:8545", + "https://data-seed-prebsc-1-s2.binance.org:8545", + "https://data-seed-prebsc-2-s1.binance.org:8545", + "https://data-seed-prebsc-1-s1.binance.org:8545", + ], + faucets: ["https://testnet.binance.org/faucet-smart"], + nativeCurrency: { + name: "Binance Chain Native Token", + symbol: "tBNB", + decimals: 18, + }, + infoURL: "https://testnet.binance.org/", + shortName: "bnbt", + chainId: 97, + networkId: 97, + explorers: [ + { + name: "bscscan-testnet", + url: "https://testnet.bscscan.com", + standard: "EIP3091", + }, + ], + icon: { + url: "ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/binance-coin/512.png", + height: 512, + width: 512, + format: "png", + sizes: [512, 256, 128, 64, 32, 16], + }, + testnet: !0, + slug: "binance-testnet", + }, + BHt = { + name: "POA Network Core", + chain: "POA", + rpc: [ + "https://poa-network-core.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://core.poa.network", + ], + faucets: [], + nativeCurrency: { + name: "POA Network Core Ether", + symbol: "POA", + decimals: 18, + }, + infoURL: "https://poa.network", + shortName: "poa", + chainId: 99, + networkId: 99, + slip44: 178, + explorers: [ + { + name: "blockscout", + url: "https://blockscout.com/poa/core", + standard: "none", + }, + ], + testnet: !1, + slug: "poa-network-core", + }, + NHt = { + name: "Gnosis", + chain: "GNO", + icon: { + url: "ipfs://bafybeidk4swpgdyqmpz6shd5onvpaujvwiwthrhypufnwr6xh3dausz2dm", + width: 1800, + height: 1800, + format: "png", + }, + rpc: [ + "https://gnosis.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.gnosischain.com", + "https://rpc.ankr.com/gnosis", + "https://gnosischain-rpc.gateway.pokt.network", + "https://gnosis-mainnet.public.blastapi.io", + "wss://rpc.gnosischain.com/wss", + ], + faucets: [ + "https://gnosisfaucet.com", + "https://faucet.gimlu.com/gnosis", + "https://stakely.io/faucet/gnosis-chain-xdai", + "https://faucet.prussia.dev/xdai", + ], + nativeCurrency: { name: "xDAI", symbol: "xDAI", decimals: 18 }, + infoURL: "https://docs.gnosischain.com", + shortName: "gno", + chainId: 100, + networkId: 100, + slip44: 700, + explorers: [ + { + name: "gnosisscan", + url: "https://gnosisscan.io", + icon: "gnosisscan", + standard: "EIP3091", + }, + { + name: "blockscout", + url: "https://blockscout.com/xdai/mainnet", + icon: "blockscout", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "gnosis", + }, + OHt = { + name: "EtherInc", + chain: "ETI", + rpc: [ + "https://etherinc.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://api.einc.io/jsonrpc/mainnet", + ], + faucets: [], + nativeCurrency: { name: "EtherInc Ether", symbol: "ETI", decimals: 18 }, + infoURL: "https://einc.io", + shortName: "eti", + chainId: 101, + networkId: 1, + slip44: 464, + testnet: !1, + slug: "etherinc", + }, + LHt = { + name: "Web3Games Testnet", + chain: "Web3Games", + icon: { + url: "ipfs://QmUc57w3UTHiWapNW9oQb1dP57ymtdemTTbpvGkjVHBRCo", + width: 192, + height: 192, + format: "png", + }, + rpc: [ + "https://web3games-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://testnet-rpc-0.web3games.org/evm", + "https://testnet-rpc-1.web3games.org/evm", + "https://testnet-rpc-2.web3games.org/evm", + ], + faucets: [], + nativeCurrency: { name: "Web3Games", symbol: "W3G", decimals: 18 }, + infoURL: "https://web3games.org/", + shortName: "tw3g", + chainId: 102, + networkId: 102, + testnet: !0, + slug: "web3games-testnet", + }, + DHt = { + name: "Kaiba Lightning Chain Testnet", + chain: "tKLC", + rpc: [ + "https://kaiba-lightning-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://klc.live/", + ], + faucets: [], + nativeCurrency: { + name: "Kaiba Testnet Token", + symbol: "tKAIBA", + decimals: 18, + }, + infoURL: "https://kaibadefi.com", + shortName: "tklc", + chainId: 104, + networkId: 104, + icon: { + url: "ipfs://bafybeihbsw3ky7yf6llpww6fabo4dicotcgwjpefscoxrppstjx25dvtea", + width: 932, + height: 932, + format: "png", + }, + explorers: [ + { + name: "kaibascan", + url: "https://kaibascan.io", + icon: "kaibascan", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "kaiba-lightning-chain-testnet", + }, + qHt = { + name: "Web3Games Devnet", + chain: "Web3Games", + icon: { + url: "ipfs://QmUc57w3UTHiWapNW9oQb1dP57ymtdemTTbpvGkjVHBRCo", + width: 192, + height: 192, + format: "png", + }, + rpc: [ + "https://web3games-devnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://devnet.web3games.org/evm", + ], + faucets: [], + nativeCurrency: { name: "Web3Games", symbol: "W3G", decimals: 18 }, + infoURL: "https://web3games.org/", + shortName: "dw3g", + chainId: 105, + networkId: 105, + explorers: [ + { + name: "Web3Games Explorer", + url: "https://explorer-devnet.web3games.org", + standard: "none", + }, + ], + testnet: !1, + slug: "web3games-devnet", + }, + FHt = { + name: "Velas EVM Mainnet", + chain: "Velas", + icon: { + url: "ipfs://QmNXiCXJxEeBd7ZYGYjPSMTSdbDd2nfodLC677gUfk9ku5", + width: 924, + height: 800, + format: "png", + }, + rpc: [ + "https://velas-evm.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://evmexplorer.velas.com/rpc", + "https://explorer.velas.com/rpc", + ], + faucets: [], + nativeCurrency: { name: "Velas", symbol: "VLX", decimals: 18 }, + infoURL: "https://velas.com", + shortName: "vlx", + chainId: 106, + networkId: 106, + explorers: [ + { + name: "Velas Explorer", + url: "https://evmexplorer.velas.com", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "velas-evm", + }, + WHt = { + name: "Nebula Testnet", + chain: "NTN", + icon: { + url: "ipfs://QmeFaJtQqTKKuXQR7ysS53bLFPasFBcZw445cvYJ2HGeTo", + width: 512, + height: 512, + format: "png", + }, + rpc: [ + "https://nebula-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://testnet.rpc.novanetwork.io:9070", + ], + faucets: ["https://faucet.novanetwork.io"], + nativeCurrency: { name: "Nebula X", symbol: "NBX", decimals: 18 }, + infoURL: "https://novanetwork.io", + shortName: "ntn", + chainId: 107, + networkId: 107, + explorers: [ + { + name: "nebulatestnet", + url: "https://explorer.novanetwork.io", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "nebula-testnet", + }, + UHt = { + name: "ThunderCore Mainnet", + chain: "TT", + rpc: [ + "https://thundercore.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://mainnet-rpc.thundercore.com", + "https://mainnet-rpc.thundertoken.net", + "https://mainnet-rpc.thundercore.io", + ], + faucets: ["https://faucet.thundercore.com"], + nativeCurrency: { + name: "ThunderCore Token", + symbol: "TT", + decimals: 18, + }, + infoURL: "https://thundercore.com", + shortName: "TT", + chainId: 108, + networkId: 108, + slip44: 1001, + explorers: [ + { + name: "thundercore-viewblock", + url: "https://viewblock.io/thundercore", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "thundercore", + }, + HHt = { + name: "Proton Testnet", + chain: "XPR", + rpc: [ + "https://proton-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://protontestnet.greymass.com/", + ], + faucets: [], + nativeCurrency: { name: "Proton", symbol: "XPR", decimals: 4 }, + infoURL: "https://protonchain.com", + shortName: "xpr", + chainId: 110, + networkId: 110, + testnet: !0, + slug: "proton-testnet", + }, + zHt = { + name: "EtherLite Chain", + chain: "ETL", + rpc: [ + "https://etherlite-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.etherlite.org", + ], + faucets: ["https://etherlite.org/faucets"], + nativeCurrency: { name: "EtherLite", symbol: "ETL", decimals: 18 }, + infoURL: "https://etherlite.org", + shortName: "ETL", + chainId: 111, + networkId: 111, + icon: { + url: "ipfs://QmbNAai1KnBnw4SPQKgrf6vBddifPCQTg2PePry1bmmZYy", + width: 88, + height: 88, + format: "png", + }, + testnet: !1, + slug: "etherlite-chain", + }, + jHt = { + name: "Dehvo", + chain: "Dehvo", + rpc: [ + "https://dehvo.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://connect.dehvo.com", + "https://rpc.dehvo.com", + "https://rpc1.dehvo.com", + "https://rpc2.dehvo.com", + ], + faucets: ["https://buy.dehvo.com"], + nativeCurrency: { name: "Dehvo", symbol: "Deh", decimals: 18 }, + infoURL: "https://dehvo.com", + shortName: "deh", + chainId: 113, + networkId: 113, + slip44: 714, + explorers: [ + { + name: "Dehvo Explorer", + url: "https://explorer.dehvo.com", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "dehvo", + }, + KHt = { + name: "Flare Testnet Coston2", + chain: "FLR", + icon: { + url: "ipfs://QmZhAYyazEBZSHWNQb9uCkNPq2MNTLoW3mjwiD3955hUjw", + width: 382, + height: 382, + format: "png", + }, + rpc: [ + "https://flare-testnet-coston2.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://coston2-api.flare.network/ext/bc/C/rpc", + ], + faucets: ["https://coston2-faucet.towolabs.com"], + nativeCurrency: { + name: "Coston2 Flare", + symbol: "C2FLR", + decimals: 18, + }, + infoURL: "https://flare.xyz", + shortName: "c2flr", + chainId: 114, + networkId: 114, + explorers: [ + { + name: "blockscout", + url: "https://coston2-explorer.flare.network", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "flare-testnet-coston2", + }, + VHt = { + name: "DeBank Testnet", + chain: "DeBank", + rpc: [], + faucets: [], + icon: { + url: "ipfs://QmW9pBps8WHRRWmyXhjLZrjZJUe8F48hUu7z98bu2RVsjN", + width: 400, + height: 400, + format: "png", + }, + nativeCurrency: { name: "Ether", symbol: "ETH", decimals: 18 }, + infoURL: "https://debank.com", + shortName: "debank-testnet", + chainId: 115, + networkId: 115, + explorers: [], + testnet: !0, + slug: "debank-testnet", + }, + GHt = { + name: "DeBank Mainnet", + chain: "DeBank", + rpc: [], + faucets: [], + icon: { + url: "ipfs://QmW9pBps8WHRRWmyXhjLZrjZJUe8F48hUu7z98bu2RVsjN", + width: 400, + height: 400, + format: "png", + }, + nativeCurrency: { name: "Ether", symbol: "ETH", decimals: 18 }, + infoURL: "https://debank.com", + shortName: "debank-mainnet", + chainId: 116, + networkId: 116, + explorers: [], + testnet: !1, + slug: "debank", + }, + YHt = { + name: "ENULS Mainnet", + chain: "ENULS", + rpc: [ + "https://enuls.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://evmapi.nuls.io", + "https://evmapi2.nuls.io", + ], + faucets: [], + nativeCurrency: { name: "NULS", symbol: "NULS", decimals: 18 }, + infoURL: "https://nuls.io", + shortName: "enuls", + chainId: 119, + networkId: 119, + icon: { + url: "ipfs://QmYz8LK5WkUN8UwqKfWUjnyLuYqQZWihT7J766YXft4TSy", + width: 26, + height: 41, + format: "svg", + }, + explorers: [ + { + name: "enulsscan", + url: "https://evmscan.nuls.io", + icon: "enuls", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "enuls", + }, + $Ht = { + name: "ENULS Testnet", + chain: "ENULS", + rpc: [ + "https://enuls-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://beta.evmapi.nuls.io", + "https://beta.evmapi2.nuls.io", + ], + faucets: ["http://faucet.nuls.io"], + nativeCurrency: { name: "NULS", symbol: "NULS", decimals: 18 }, + infoURL: "https://nuls.io", + shortName: "enulst", + chainId: 120, + networkId: 120, + icon: { + url: "ipfs://QmYz8LK5WkUN8UwqKfWUjnyLuYqQZWihT7J766YXft4TSy", + width: 26, + height: 41, + format: "svg", + }, + explorers: [ + { + name: "enulsscan", + url: "https://beta.evmscan.nuls.io", + icon: "enuls", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "enuls-testnet", + }, + JHt = { + name: "Realchain Mainnet", + chain: "REAL", + rpc: [ + "https://realchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rcl-dataseed1.rclsidechain.com", + "https://rcl-dataseed2.rclsidechain.com", + "https://rcl-dataseed3.rclsidechain.com", + "https://rcl-dataseed4.rclsidechain.com", + "wss://rcl-dataseed1.rclsidechain.com/v1/", + "wss://rcl-dataseed2.rclsidechain.com/v1/", + "wss://rcl-dataseed3.rclsidechain.com/v1/", + "wss://rcl-dataseed4.rclsidechain.com/v1/", + ], + faucets: ["https://faucet.rclsidechain.com"], + nativeCurrency: { name: "Realchain", symbol: "REAL", decimals: 18 }, + infoURL: "https://www.rclsidechain.com/", + shortName: "REAL", + chainId: 121, + networkId: 121, + slip44: 714, + explorers: [ + { name: "realscan", url: "https://rclscan.com", standard: "EIP3091" }, + ], + testnet: !1, + slug: "realchain", + }, + ZHt = { + name: "Fuse Mainnet", + chain: "FUSE", + rpc: [ + "https://fuse.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.fuse.io", + ], + faucets: [], + nativeCurrency: { name: "Fuse", symbol: "FUSE", decimals: 18 }, + infoURL: "https://fuse.io/", + shortName: "fuse", + chainId: 122, + networkId: 122, + testnet: !1, + slug: "fuse", + }, + QHt = { + name: "Fuse Sparknet", + chain: "fuse", + rpc: [ + "https://fuse-sparknet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.fusespark.io", + ], + faucets: ["https://get.fusespark.io"], + nativeCurrency: { name: "Spark", symbol: "SPARK", decimals: 18 }, + infoURL: + "https://docs.fuse.io/general/fuse-network-blockchain/fuse-testnet", + shortName: "spark", + chainId: 123, + networkId: 123, + testnet: !0, + slug: "fuse-sparknet", + }, + XHt = { + name: "Decentralized Web Mainnet", + shortName: "dwu", + chain: "DWU", + chainId: 124, + networkId: 124, + rpc: [ + "https://decentralized-web.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://decentralized-web.tech/dw_rpc.php", + ], + faucets: [], + infoURL: "https://decentralized-web.tech/dw_chain.php", + nativeCurrency: { + name: "Decentralized Web Utility", + symbol: "DWU", + decimals: 18, + }, + testnet: !1, + slug: "decentralized-web", + }, + ezt = { + name: "OYchain Testnet", + chain: "OYchain", + rpc: [ + "https://oychain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.testnet.oychain.io", + ], + faucets: ["https://faucet.oychain.io"], + nativeCurrency: { name: "OYchain Token", symbol: "OY", decimals: 18 }, + infoURL: "https://www.oychain.io", + shortName: "OYchainTestnet", + chainId: 125, + networkId: 125, + slip44: 125, + explorers: [ + { + name: "OYchain Testnet Explorer", + url: "https://explorer.testnet.oychain.io", + standard: "none", + }, + ], + testnet: !0, + slug: "oychain-testnet", + }, + tzt = { + name: "OYchain Mainnet", + chain: "OYchain", + icon: { + url: "ipfs://QmXW5T2MaGHznXUmQEXoyJjcdmX7dhLbj5fnqvZZKqeKzA", + width: 677, + height: 237, + format: "png", + }, + rpc: [ + "https://oychain.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.mainnet.oychain.io", + ], + faucets: [], + nativeCurrency: { name: "OYchain Token", symbol: "OY", decimals: 18 }, + infoURL: "https://www.oychain.io", + shortName: "OYchainMainnet", + chainId: 126, + networkId: 126, + slip44: 126, + explorers: [ + { + name: "OYchain Mainnet Explorer", + url: "https://explorer.oychain.io", + standard: "none", + }, + ], + testnet: !1, + slug: "oychain", + }, + rzt = { + name: "Factory 127 Mainnet", + chain: "FETH", + rpc: [], + faucets: [], + nativeCurrency: { + name: "Factory 127 Token", + symbol: "FETH", + decimals: 18, + }, + infoURL: "https://www.factory127.com", + shortName: "feth", + chainId: 127, + networkId: 127, + slip44: 127, + testnet: !1, + slug: "factory-127", + }, + nzt = { + name: "Huobi ECO Chain Mainnet", + chain: "Heco", + rpc: [ + "https://huobi-eco-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://http-mainnet.hecochain.com", + "wss://ws-mainnet.hecochain.com", + ], + faucets: ["https://free-online-app.com/faucet-for-eth-evm-chains/"], + nativeCurrency: { + name: "Huobi ECO Chain Native Token", + symbol: "HT", + decimals: 18, + }, + infoURL: "https://www.hecochain.com", + shortName: "heco", + chainId: 128, + networkId: 128, + slip44: 1010, + explorers: [ + { + name: "hecoinfo", + url: "https://hecoinfo.com", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "huobi-eco-chain", + }, + azt = { + name: "Alyx Chain Testnet", + chain: "Alyx Chain Testnet", + rpc: [ + "https://alyx-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://testnet-rpc.alyxchain.com", + ], + faucets: ["https://faucet.alyxchain.com"], + nativeCurrency: { + name: "Alyx Testnet Native Token", + symbol: "ALYX", + decimals: 18, + }, + infoURL: "https://www.alyxchain.com", + shortName: "AlyxTestnet", + chainId: 135, + networkId: 135, + explorers: [ + { + name: "alyx testnet scan", + url: "https://testnet.alyxscan.com", + standard: "EIP3091", + }, + ], + icon: { + url: "ipfs://bafkreifd43fcvh77mdcwjrpzpnlhthounc6b4u645kukqpqhduaveatf6i", + width: 2481, + height: 2481, + format: "png", + }, + testnet: !0, + slug: "alyx-chain-testnet", + }, + izt = { + name: "Polygon Mainnet", + chain: "Polygon", + icon: { + url: "ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/polygon/512.png", + height: 512, + width: 512, + format: "png", + sizes: [512, 256, 128, 64, 32, 16], + }, + rpc: [ + "https://polygon.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://polygon-mainnet.g.alchemy.com/v2/${ALCHEMY_API_KEY}", + "https://polygon-mainnet.infura.io/v3/${INFURA_API_KEY}", + "https://polygon-rpc.com/", + "https://rpc-mainnet.matic.network", + "https://matic-mainnet.chainstacklabs.com", + "https://rpc-mainnet.maticvigil.com", + "https://rpc-mainnet.matic.quiknode.pro", + "https://matic-mainnet-full-rpc.bwarelabs.com", + "https://polygon-bor.publicnode.com", + ], + faucets: [], + nativeCurrency: { name: "MATIC", symbol: "MATIC", decimals: 18 }, + infoURL: "https://polygon.technology/", + shortName: "matic", + chainId: 137, + networkId: 137, + slip44: 966, + explorers: [ + { + name: "polygonscan", + url: "https://polygonscan.com", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "polygon", + }, + szt = { + name: "Openpiece Testnet", + chain: "OPENPIECE", + icon: { + url: "ipfs://QmVTahJkdSH3HPYsJMK2GmqfWZjLyxE7cXy1aHEnHU3vp2", + width: 250, + height: 250, + format: "png", + }, + rpc: [ + "https://openpiece-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://testnet.openpiece.io", + ], + faucets: [], + nativeCurrency: { name: "Belly", symbol: "BELLY", decimals: 18 }, + infoURL: "https://cryptopiece.online", + shortName: "OPtest", + chainId: 141, + networkId: 141, + explorers: [ + { + name: "Belly Scan", + url: "https://testnet.bellyscan.com", + standard: "none", + }, + ], + testnet: !0, + slug: "openpiece-testnet", + }, + ozt = { + name: "DAX CHAIN", + chain: "DAX", + rpc: [ + "https://dax-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.prodax.io", + ], + faucets: [], + nativeCurrency: { name: "Prodax", symbol: "DAX", decimals: 18 }, + infoURL: "https://prodax.io/", + shortName: "dax", + chainId: 142, + networkId: 142, + testnet: !1, + slug: "dax-chain", + }, + czt = { + name: "PHI Network v2", + chain: "PHI", + rpc: [ + "https://phi-network-v2.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://connect.phi.network", + ], + faucets: [], + nativeCurrency: { name: "PHI", symbol: "\u03A6", decimals: 18 }, + infoURL: "https://phi.network", + shortName: "PHI", + chainId: 144, + networkId: 144, + icon: { + url: "ipfs://bafkreid6pm3mic7izp3a6zlfwhhe7etd276bjfsq2xash6a4s2vmcdf65a", + width: 512, + height: 512, + format: "png", + }, + explorers: [ + { + name: "Phiscan", + url: "https://phiscan.com", + icon: "phi", + standard: "none", + }, + ], + testnet: !1, + slug: "phi-network-v2", + }, + uzt = { + name: "Armonia Eva Chain Mainnet", + chain: "Eva", + rpc: [ + "https://armonia-eva-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://evascan.io/api/eth-rpc/", + ], + faucets: [], + nativeCurrency: { + name: "Armonia Multichain Native Token", + symbol: "AMAX", + decimals: 18, + }, + infoURL: "https://amax.network", + shortName: "eva", + chainId: 160, + networkId: 160, + status: "incubating", + testnet: !1, + slug: "armonia-eva-chain", + }, + lzt = { + name: "Armonia Eva Chain Testnet", + chain: "Wall-e", + rpc: [ + "https://armonia-eva-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://testnet.evascan.io/api/eth-rpc/", + ], + faucets: [], + nativeCurrency: { + name: "Armonia Multichain Native Token", + symbol: "AMAX", + decimals: 18, + }, + infoURL: "https://amax.network", + shortName: "wall-e", + chainId: 161, + networkId: 161, + explorers: [ + { + name: "blockscout - evascan", + url: "https://testnet.evascan.io", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "armonia-eva-chain-testnet", + }, + dzt = { + name: "Lightstreams Testnet", + chain: "PHT", + rpc: [ + "https://lightstreams-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://node.sirius.lightstreams.io", + ], + faucets: ["https://discuss.lightstreams.network/t/request-test-tokens"], + nativeCurrency: { + name: "Lightstreams PHT", + symbol: "PHT", + decimals: 18, + }, + infoURL: "https://explorer.sirius.lightstreams.io", + shortName: "tpht", + chainId: 162, + networkId: 162, + testnet: !0, + slug: "lightstreams-testnet", + }, + pzt = { + name: "Lightstreams Mainnet", + chain: "PHT", + rpc: [ + "https://lightstreams.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://node.mainnet.lightstreams.io", + ], + faucets: [], + nativeCurrency: { + name: "Lightstreams PHT", + symbol: "PHT", + decimals: 18, + }, + infoURL: "https://explorer.lightstreams.io", + shortName: "pht", + chainId: 163, + networkId: 163, + testnet: !1, + slug: "lightstreams", + }, + hzt = { + name: "Atoshi Testnet", + chain: "ATOSHI", + icon: { + url: "ipfs://QmfFK6B4MFLrpSS46aLf7hjpt28poHFeTGEKEuH248Tbyj", + width: 200, + height: 200, + format: "png", + }, + rpc: [ + "https://atoshi-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://node.atoshi.io/", + ], + faucets: [], + nativeCurrency: { name: "ATOSHI", symbol: "ATOS", decimals: 18 }, + infoURL: "https://atoshi.org", + shortName: "atoshi", + chainId: 167, + networkId: 167, + explorers: [ + { + name: "atoshiscan", + url: "https://scan.atoverse.info", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "atoshi-testnet", + }, + fzt = { + name: "AIOZ Network", + chain: "AIOZ", + icon: { + url: "ipfs://QmRAGPFhvQiXgoJkui7WHajpKctGFrJNhHqzYdwcWt5V3Z", + width: 1024, + height: 1024, + format: "png", + }, + rpc: [ + "https://aioz-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://eth-dataseed.aioz.network", + ], + faucets: [], + nativeCurrency: { name: "AIOZ", symbol: "AIOZ", decimals: 18 }, + infoURL: "https://aioz.network", + shortName: "aioz", + chainId: 168, + networkId: 168, + slip44: 60, + explorers: [ + { + name: "AIOZ Network Explorer", + url: "https://explorer.aioz.network", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "aioz-network", + }, + mzt = { + name: "HOO Smart Chain Testnet", + chain: "ETH", + rpc: [ + "https://hoo-smart-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://http-testnet.hoosmartchain.com", + ], + faucets: ["https://faucet-testnet.hscscan.com/"], + nativeCurrency: { name: "HOO", symbol: "HOO", decimals: 18 }, + infoURL: "https://www.hoosmartchain.com", + shortName: "hoosmartchain", + chainId: 170, + networkId: 170, + testnet: !0, + slug: "hoo-smart-chain-testnet", + }, + yzt = { + name: "Latam-Blockchain Resil Testnet", + chain: "Resil", + rpc: [ + "https://latam-blockchain-resil-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.latam-blockchain.com", + "wss://ws.latam-blockchain.com", + ], + faucets: ["https://faucet.latam-blockchain.com"], + nativeCurrency: { + name: "Latam-Blockchain Resil Test Native Token", + symbol: "usd", + decimals: 18, + }, + infoURL: "https://latam-blockchain.com", + shortName: "resil", + chainId: 172, + networkId: 172, + testnet: !0, + slug: "latam-blockchain-resil-testnet", + }, + gzt = { + name: "AME Chain Mainnet", + chain: "AME", + rpc: [ + "https://ame-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://node1.amechain.io/", + ], + faucets: [], + nativeCurrency: { name: "AME", symbol: "AME", decimals: 18 }, + infoURL: "https://amechain.io/", + shortName: "ame", + chainId: 180, + networkId: 180, + explorers: [ + { name: "AME Scan", url: "https://amescan.io", standard: "EIP3091" }, + ], + testnet: !1, + slug: "ame-chain", + }, + bzt = { + name: "Seele Mainnet", + chain: "Seele", + rpc: [ + "https://seele.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.seelen.pro/", + ], + faucets: [], + nativeCurrency: { name: "Seele", symbol: "Seele", decimals: 18 }, + infoURL: "https://seelen.pro/", + shortName: "Seele", + chainId: 186, + networkId: 186, + explorers: [ + { name: "seeleview", url: "https://seeleview.net", standard: "none" }, + ], + testnet: !1, + slug: "seele", + }, + vzt = { + name: "BMC Mainnet", + chain: "BMC", + rpc: [ + "https://bmc.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://mainnet.bmcchain.com/", + ], + faucets: [], + nativeCurrency: { name: "BTM", symbol: "BTM", decimals: 18 }, + infoURL: "https://bmc.bytom.io/", + shortName: "BMC", + chainId: 188, + networkId: 188, + explorers: [ + { + name: "Blockmeta", + url: "https://bmc.blockmeta.com", + standard: "none", + }, + ], + testnet: !1, + slug: "bmc", + }, + wzt = { + name: "BMC Testnet", + chain: "BMC", + rpc: [ + "https://bmc-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://testnet.bmcchain.com", + ], + faucets: [], + nativeCurrency: { name: "BTM", symbol: "BTM", decimals: 18 }, + infoURL: "https://bmc.bytom.io/", + shortName: "BMCT", + chainId: 189, + networkId: 189, + explorers: [ + { + name: "Blockmeta", + url: "https://bmctestnet.blockmeta.com", + standard: "none", + }, + ], + testnet: !0, + slug: "bmc-testnet", + }, + _zt = { + name: "Crypto Emergency", + chain: "CEM", + rpc: [ + "https://crypto-emergency.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://cemchain.com", + ], + faucets: [], + nativeCurrency: { + name: "Crypto Emergency", + symbol: "CEM", + decimals: 18, + }, + infoURL: "https://cemblockchain.com/", + shortName: "cem", + chainId: 193, + networkId: 193, + explorers: [ + { name: "cemscan", url: "https://cemscan.com", standard: "EIP3091" }, + ], + testnet: !1, + slug: "crypto-emergency", + }, + xzt = { + name: "BitTorrent Chain Mainnet", + chain: "BTTC", + rpc: [ + "https://bittorrent-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.bittorrentchain.io/", + ], + faucets: [], + nativeCurrency: { name: "BitTorrent", symbol: "BTT", decimals: 18 }, + infoURL: "https://bittorrentchain.io/", + shortName: "BTT", + chainId: 199, + networkId: 199, + explorers: [ + { + name: "bttcscan", + url: "https://scan.bittorrentchain.io", + standard: "none", + }, + ], + testnet: !1, + slug: "bittorrent-chain", + }, + Tzt = { + name: "Arbitrum on xDai", + chain: "AOX", + rpc: [ + "https://arbitrum-on-xdai.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://arbitrum.xdaichain.com/", + ], + faucets: [], + nativeCurrency: { name: "xDAI", symbol: "xDAI", decimals: 18 }, + infoURL: "https://xdaichain.com", + shortName: "aox", + chainId: 200, + networkId: 200, + explorers: [ + { + name: "blockscout", + url: "https://blockscout.com/xdai/arbitrum", + standard: "EIP3091", + }, + ], + parent: { chain: "eip155-100", type: "L2" }, + testnet: !1, + slug: "arbitrum-on-xdai", + }, + Ezt = { + name: "MOAC testnet", + chain: "MOAC", + rpc: [ + "https://moac-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://gateway.moac.io/testnet", + ], + faucets: [], + nativeCurrency: { name: "MOAC", symbol: "mc", decimals: 18 }, + infoURL: "https://moac.io", + shortName: "moactest", + chainId: 201, + networkId: 201, + explorers: [ + { + name: "moac testnet explorer", + url: "https://testnet.moac.io", + standard: "none", + }, + ], + testnet: !0, + slug: "moac-testnet", + }, + Czt = { + name: "Freight Trust Network", + chain: "EDI", + rpc: [ + "https://freight-trust-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "http://13.57.207.168:3435", + "https://app.freighttrust.net/ftn/${API_KEY}", + ], + faucets: ["http://faucet.freight.sh"], + nativeCurrency: { + name: "Freight Trust Native", + symbol: "0xF", + decimals: 18, + }, + infoURL: "https://freighttrust.com", + shortName: "EDI", + chainId: 211, + networkId: 0, + testnet: !1, + slug: "freight-trust-network", + }, + Izt = { + name: "MAP Makalu", + title: "MAP Testnet Makalu", + chain: "MAP", + rpc: [ + "https://map-makalu.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://testnet-rpc.maplabs.io", + ], + faucets: ["https://faucet.maplabs.io"], + nativeCurrency: { name: "Makalu MAP", symbol: "MAP", decimals: 18 }, + infoURL: "https://maplabs.io", + shortName: "makalu", + chainId: 212, + networkId: 212, + explorers: [ + { + name: "mapscan", + url: "https://testnet.mapscan.io", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "map-makalu", + }, + Azt = { + name: "SiriusNet V2", + chain: "SIN2", + faucets: [], + rpc: [ + "https://siriusnet-v2.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc2.siriusnet.io", + ], + icon: { + url: "ipfs://bafybeicxuxdzrzpwsil4owqmn7wpwka2rqsohpfqmukg57pifzyxr5om2q", + width: 100, + height: 100, + format: "png", + }, + nativeCurrency: { name: "MCD", symbol: "MCD", decimals: 18 }, + infoURL: "https://siriusnet.io", + shortName: "SIN2", + chainId: 217, + networkId: 217, + explorers: [ + { + name: "siriusnet explorer", + url: "https://scan.siriusnet.io", + standard: "none", + }, + ], + testnet: !1, + slug: "siriusnet-v2", + }, + kzt = { + name: "LACHAIN Mainnet", + chain: "LA", + icon: { + url: "ipfs://QmQxGA6rhuCQDXUueVcNvFRhMEWisyTmnF57TqL7h6k6cZ", + width: 1280, + height: 1280, + format: "png", + }, + rpc: [ + "https://lachain.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc-mainnet.lachain.io", + ], + faucets: [], + nativeCurrency: { name: "LA", symbol: "LA", decimals: 18 }, + infoURL: "https://lachain.io", + shortName: "LA", + chainId: 225, + networkId: 225, + explorers: [ + { + name: "blockscout", + url: "https://scan.lachain.io", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "lachain", + }, + Szt = { + name: "LACHAIN Testnet", + chain: "TLA", + icon: { + url: "ipfs://QmQxGA6rhuCQDXUueVcNvFRhMEWisyTmnF57TqL7h6k6cZ", + width: 1280, + height: 1280, + format: "png", + }, + rpc: [ + "https://lachain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc-testnet.lachain.io", + ], + faucets: [], + nativeCurrency: { name: "TLA", symbol: "TLA", decimals: 18 }, + infoURL: "https://lachain.io", + shortName: "TLA", + chainId: 226, + networkId: 226, + explorers: [ + { + name: "blockscout", + url: "https://scan-test.lachain.io", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "lachain-testnet", + }, + Mzt = { + name: "Energy Web Chain", + chain: "Energy Web Chain", + rpc: [ + "https://energy-web-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.energyweb.org", + "wss://rpc.energyweb.org/ws", + ], + faucets: [ + "https://faucet.carbonswap.exchange", + "https://free-online-app.com/faucet-for-eth-evm-chains/", + ], + nativeCurrency: { + name: "Energy Web Token", + symbol: "EWT", + decimals: 18, + }, + infoURL: "https://energyweb.org", + shortName: "ewt", + chainId: 246, + networkId: 246, + slip44: 246, + explorers: [ + { + name: "blockscout", + url: "https://explorer.energyweb.org", + standard: "none", + }, + ], + testnet: !1, + slug: "energy-web-chain", + }, + Pzt = { + name: "Oasys Mainnet", + chain: "Oasys", + icon: { + url: "ipfs://QmT84suD2ZmTSraJBfeHhTNst2vXctQijNCztok9XiVcUR", + width: 3600, + height: 3600, + format: "png", + }, + rpc: [ + "https://oasys.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.mainnet.oasys.games", + ], + faucets: [], + nativeCurrency: { name: "OAS", symbol: "OAS", decimals: 18 }, + infoURL: "https://oasys.games", + shortName: "OAS", + chainId: 248, + networkId: 248, + explorers: [ + { + name: "blockscout", + url: "https://explorer.oasys.games", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "oasys", + }, + Rzt = { + name: "Fantom Opera", + chain: "FTM", + rpc: [ + "https://fantom.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.ftm.tools", + ], + faucets: ["https://free-online-app.com/faucet-for-eth-evm-chains/"], + nativeCurrency: { name: "Fantom", symbol: "FTM", decimals: 18 }, + infoURL: "https://fantom.foundation", + shortName: "ftm", + chainId: 250, + networkId: 250, + icon: { + url: "ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/fantom/512.png", + height: 512, + width: 512, + format: "png", + sizes: [512, 256, 128, 64, 32, 16], + }, + explorers: [ + { + name: "ftmscan", + url: "https://ftmscan.com", + icon: "ftmscan", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "fantom", + }, + Bzt = { + name: "Huobi ECO Chain Testnet", + chain: "Heco", + rpc: [ + "https://huobi-eco-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://http-testnet.hecochain.com", + "wss://ws-testnet.hecochain.com", + ], + faucets: ["https://scan-testnet.hecochain.com/faucet"], + nativeCurrency: { + name: "Huobi ECO Chain Test Native Token", + symbol: "htt", + decimals: 18, + }, + infoURL: "https://testnet.hecoinfo.com", + shortName: "hecot", + chainId: 256, + networkId: 256, + testnet: !0, + slug: "huobi-eco-chain-testnet", + }, + Nzt = { + name: "Setheum", + chain: "Setheum", + rpc: [], + faucets: [], + nativeCurrency: { name: "Setheum", symbol: "SETM", decimals: 18 }, + infoURL: "https://setheum.xyz", + shortName: "setm", + chainId: 258, + networkId: 258, + testnet: !1, + slug: "setheum", + }, + Ozt = { + name: "SUR Blockchain Network", + chain: "SUR", + rpc: [ + "https://sur-blockchain-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://sur.nilin.org", + ], + faucets: [], + nativeCurrency: { name: "Suren", symbol: "SRN", decimals: 18 }, + infoURL: "https://surnet.org", + shortName: "SUR", + chainId: 262, + networkId: 1, + icon: { + url: "ipfs://QmbUcDQHCvheYQrWk9WFJRMW5fTJQmtZqkoGUed4bhCM7T", + width: 3e3, + height: 3e3, + format: "png", + }, + explorers: [ + { + name: "Surnet Explorer", + url: "https://explorer.surnet.org", + icon: "SUR", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "sur-blockchain-network", + }, + Lzt = { + name: "High Performance Blockchain", + chain: "HPB", + rpc: [ + "https://high-performance-blockchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://hpbnode.com", + "wss://ws.hpbnode.com", + ], + faucets: ["https://myhpbwallet.com/"], + nativeCurrency: { + name: "High Performance Blockchain Ether", + symbol: "HPB", + decimals: 18, + }, + infoURL: "https://hpb.io", + shortName: "hpb", + chainId: 269, + networkId: 269, + slip44: 269, + explorers: [ + { name: "hscan", url: "https://hscan.org", standard: "EIP3091" }, + ], + testnet: !1, + slug: "high-performance-blockchain", + }, + Dzt = { + name: "zkSync Era Testnet", + chain: "ETH", + rpc: [ + "https://zksync-era-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://zksync2-testnet.zksync.dev", + ], + faucets: ["https://goerli.portal.zksync.io/faucet"], + nativeCurrency: { name: "Ether", symbol: "ETH", decimals: 18 }, + infoURL: "https://era.zksync.io/docs/", + shortName: "zksync-goerli", + chainId: 280, + networkId: 280, + icon: { + url: "ipfs://Qma6H9xd8Ydah1bAFnmDuau1jeMh5NjGEL8tpdnjLbJ7m2", + width: 512, + height: 512, + format: "svg", + }, + explorers: [ + { + name: "zkSync Era Block Explorer", + url: "https://goerli.explorer.zksync.io", + icon: "zksync-era", + standard: "EIP3091", + }, + ], + parent: { + type: "L2", + chain: "eip155-1", + bridges: [{ url: "https://goerli.portal.zksync.io/bridge" }], + }, + testnet: !0, + slug: "zksync-era-testnet", + }, + qzt = { + name: "Boba Network", + chain: "ETH", + rpc: [ + "https://boba-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://mainnet.boba.network/", + ], + faucets: [], + nativeCurrency: { name: "Ether", symbol: "ETH", decimals: 18 }, + infoURL: "https://boba.network", + shortName: "Boba", + chainId: 288, + networkId: 288, + explorers: [ + { name: "Bobascan", url: "https://bobascan.com", standard: "none" }, + { + name: "Blockscout", + url: "https://blockexplorer.boba.network", + standard: "none", + }, + ], + parent: { + type: "L2", + chain: "eip155-1", + bridges: [{ url: "https://gateway.boba.network" }], + }, + testnet: !1, + slug: "boba-network", + }, + Fzt = { + name: "Hedera Mainnet", + chain: "Hedera", + icon: { + url: "ipfs://QmQikzhvZKyMmbZJd7BVLZb2YTBDMgNDnaMCAErsVjsfuz", + width: 1500, + height: 1500, + format: "png", + }, + rpc: [ + "https://hedera.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://mainnet.hashio.io/api", + ], + features: [{ name: "EIP155" }, { name: "EIP1559" }], + faucets: [], + nativeCurrency: { name: "hbar", symbol: "HBAR", decimals: 8 }, + infoURL: "https://hedera.com", + shortName: "hedera-mainnet", + chainId: 295, + networkId: 295, + slip44: 3030, + explorers: [ + { + name: "HashScan", + url: "https://hashscan.io/mainnet/dashboard", + standard: "none", + }, + { + name: "Arkhia Explorer", + url: "https://explorer.arkhia.io", + standard: "none", + }, + { + name: "DragonGlass", + url: "https://app.dragonglass.me", + standard: "none", + }, + { + name: "Hedera Explorer", + url: "https://hederaexplorer.io", + standard: "none", + }, + { + name: "Ledger Works Explore", + url: "https://explore.lworks.io", + standard: "none", + }, + ], + testnet: !1, + slug: "hedera", + }, + Wzt = { + name: "Hedera Testnet", + chain: "Hedera", + icon: { + url: "ipfs://QmQikzhvZKyMmbZJd7BVLZb2YTBDMgNDnaMCAErsVjsfuz", + width: 1500, + height: 1500, + format: "png", + }, + rpc: [ + "https://hedera-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://testnet.hashio.io/api", + ], + features: [{ name: "EIP155" }, { name: "EIP1559" }], + faucets: ["https://portal.hedera.com"], + nativeCurrency: { name: "hbar", symbol: "HBAR", decimals: 8 }, + infoURL: "https://hedera.com", + shortName: "hedera-testnet", + chainId: 296, + networkId: 296, + slip44: 3030, + explorers: [ + { + name: "HashScan", + url: "https://hashscan.io/testnet/dashboard", + standard: "none", + }, + { + name: "Arkhia Explorer", + url: "https://explorer.arkhia.io", + standard: "none", + }, + { + name: "DragonGlass", + url: "https://app.dragonglass.me", + standard: "none", + }, + { + name: "Hedera Explorer", + url: "https://hederaexplorer.io", + standard: "none", + }, + { + name: "Ledger Works Explore", + url: "https://explore.lworks.io", + standard: "none", + }, + ], + testnet: !0, + slug: "hedera-testnet", + }, + Uzt = { + name: "Hedera Previewnet", + chain: "Hedera", + icon: { + url: "ipfs://QmQikzhvZKyMmbZJd7BVLZb2YTBDMgNDnaMCAErsVjsfuz", + width: 1500, + height: 1500, + format: "png", + }, + rpc: [ + "https://hedera-previewnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://previewnet.hashio.io/api", + ], + features: [{ name: "EIP155" }, { name: "EIP1559" }], + faucets: ["https://portal.hedera.com"], + nativeCurrency: { name: "hbar", symbol: "HBAR", decimals: 8 }, + infoURL: "https://hedera.com", + shortName: "hedera-previewnet", + chainId: 297, + networkId: 297, + slip44: 3030, + explorers: [ + { + name: "HashScan", + url: "https://hashscan.io/previewnet/dashboard", + standard: "none", + }, + ], + testnet: !1, + slug: "hedera-previewnet", + }, + Hzt = { + name: "Hedera Localnet", + chain: "Hedera", + icon: { + url: "ipfs://QmQikzhvZKyMmbZJd7BVLZb2YTBDMgNDnaMCAErsVjsfuz", + width: 1500, + height: 1500, + format: "png", + }, + rpc: [], + features: [{ name: "EIP155" }, { name: "EIP1559" }], + faucets: [], + nativeCurrency: { name: "hbar", symbol: "HBAR", decimals: 8 }, + infoURL: "https://hedera.com", + shortName: "hedera-localnet", + chainId: 298, + networkId: 298, + slip44: 3030, + explorers: [], + testnet: !1, + slug: "hedera-localnet", + }, + zzt = { + name: "Optimism on Gnosis", + chain: "OGC", + rpc: [ + "https://optimism-on-gnosis.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://optimism.gnosischain.com", + "wss://optimism.gnosischain.com/wss", + ], + faucets: ["https://faucet.gimlu.com/gnosis"], + nativeCurrency: { name: "xDAI", symbol: "xDAI", decimals: 18 }, + infoURL: + "https://www.xdaichain.com/for-developers/optimism-optimistic-rollups-on-gc", + shortName: "ogc", + chainId: 300, + networkId: 300, + explorers: [ + { + name: "blockscout", + url: "https://blockscout.com/xdai/optimism", + icon: "blockscout", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "optimism-on-gnosis", + }, + jzt = { + name: "Bobaopera", + chain: "Bobaopera", + rpc: [ + "https://bobaopera.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://bobaopera.boba.network", + "wss://wss.bobaopera.boba.network", + "https://replica.bobaopera.boba.network", + "wss://replica-wss.bobaopera.boba.network", + ], + faucets: [], + nativeCurrency: { name: "Boba Token", symbol: "BOBA", decimals: 18 }, + infoURL: "https://boba.network", + shortName: "Bobaopera", + chainId: 301, + networkId: 301, + explorers: [ + { + name: "Bobaopera block explorer", + url: "https://blockexplorer.bobaopera.boba.network", + standard: "none", + }, + ], + testnet: !1, + slug: "bobaopera", + }, + Kzt = { + name: "Omax Mainnet", + chain: "OMAX Chain", + rpc: [ + "https://omax.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://mainapi.omaxray.com", + ], + faucets: ["https://faucet.omaxray.com/"], + nativeCurrency: { name: "OMAX COIN", symbol: "OMAX", decimals: 18 }, + infoURL: "https://www.omaxcoin.com/", + shortName: "omax", + chainId: 311, + networkId: 311, + icon: { + url: "ipfs://Qmd7omPxrehSuxHHPMYd5Nr7nfrtjKdRJQEhDLfTb87w8G", + width: 500, + height: 500, + format: "png", + }, + explorers: [ + { + name: "Omax Chain Explorer", + url: "https://omaxray.com", + icon: "omaxray", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "omax", + }, + Vzt = { + name: "Filecoin - Mainnet", + chain: "FIL", + icon: { + url: "ipfs://QmS9r9XQkMHVomWcSBNDkKkz9n87h9bH9ssabeiKZtANoU", + width: 1e3, + height: 1e3, + format: "png", + }, + rpc: [ + "https://filecoin.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://api.node.glif.io/", + "https://rpc.ankr.com/filecoin", + ], + faucets: [], + nativeCurrency: { name: "filecoin", symbol: "FIL", decimals: 18 }, + infoURL: "https://filecoin.io", + shortName: "filecoin", + chainId: 314, + networkId: 314, + slip44: 461, + explorers: [ + { name: "Filfox", url: "https://filfox.info/en", standard: "none" }, + { name: "Filscan", url: "https://filscan.io", standard: "none" }, + { name: "Filscout", url: "https://filscout.io/en", standard: "none" }, + ], + testnet: !1, + slug: "filecoin", + }, + Gzt = { + name: "KCC Mainnet", + chain: "KCC", + rpc: [ + "https://kcc.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc-mainnet.kcc.network", + "https://kcc.mytokenpocket.vip", + "https://public-rpc.blockpi.io/http/kcc", + ], + faucets: [ + "https://faucet.kcc.io/", + "https://free-online-app.com/faucet-for-eth-evm-chains/", + ], + nativeCurrency: { name: "KuCoin Token", symbol: "KCS", decimals: 18 }, + infoURL: "https://kcc.io", + shortName: "kcs", + chainId: 321, + networkId: 321, + slip44: 641, + explorers: [ + { + name: "KCC Explorer", + url: "https://explorer.kcc.io/en", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "kcc", + }, + Yzt = { + name: "KCC Testnet", + chain: "KCC", + rpc: [ + "https://kcc-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc-testnet.kcc.network", + ], + faucets: ["https://faucet-testnet.kcc.network"], + nativeCurrency: { + name: "KuCoin Testnet Token", + symbol: "tKCS", + decimals: 18, + }, + infoURL: "https://scan-testnet.kcc.network", + shortName: "kcst", + chainId: 322, + networkId: 322, + explorers: [ + { + name: "kcc-scan-testnet", + url: "https://scan-testnet.kcc.network", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "kcc-testnet", + }, + $zt = { + name: "zkSync Era Mainnet", + chain: "ETH", + rpc: [ + "https://zksync-era.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://zksync2-mainnet.zksync.io", + ], + faucets: [], + nativeCurrency: { name: "Ether", symbol: "ETH", decimals: 18 }, + infoURL: "https://zksync.io/", + shortName: "zksync", + chainId: 324, + networkId: 324, + icon: { + url: "ipfs://Qma6H9xd8Ydah1bAFnmDuau1jeMh5NjGEL8tpdnjLbJ7m2", + width: 512, + height: 512, + format: "svg", + }, + explorers: [ + { + name: "zkSync Era Block Explorer", + url: "https://explorer.zksync.io", + icon: "zksync-era", + standard: "EIP3091", + }, + ], + parent: { + type: "L2", + chain: "eip155-1", + bridges: [{ url: "https://portal.zksync.io/bridge" }], + }, + testnet: !1, + slug: "zksync-era", + }, + Jzt = { + name: "Web3Q Mainnet", + chain: "Web3Q", + rpc: [ + "https://web3q.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://mainnet.web3q.io:8545", + ], + faucets: [], + nativeCurrency: { name: "Web3Q", symbol: "W3Q", decimals: 18 }, + infoURL: "https://web3q.io/home.w3q/", + shortName: "w3q", + chainId: 333, + networkId: 333, + explorers: [ + { + name: "w3q-mainnet", + url: "https://explorer.mainnet.web3q.io", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "web3q", + }, + Zzt = { + name: "DFK Chain Test", + chain: "DFK", + icon: { + url: "ipfs://QmQB48m15TzhUFrmu56QCRQjkrkgUaKfgCmKE8o3RzmuPJ", + width: 500, + height: 500, + format: "png", + }, + rpc: [ + "https://dfk-chain-test.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://subnets.avax.network/defi-kingdoms/dfk-chain-testnet/rpc", + ], + faucets: [], + nativeCurrency: { name: "Jewel", symbol: "JEWEL", decimals: 18 }, + infoURL: "https://defikingdoms.com", + shortName: "DFKTEST", + chainId: 335, + networkId: 335, + explorers: [ + { + name: "ethernal", + url: "https://explorer-test.dfkchain.com", + icon: "ethereum", + standard: "none", + }, + ], + testnet: !0, + slug: "dfk-chain-test", + }, + Qzt = { + name: "Shiden", + chain: "SDN", + rpc: [ + "https://shiden.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://shiden.api.onfinality.io/public", + "https://shiden-rpc.dwellir.com", + "https://shiden.public.blastapi.io", + "wss://shiden.api.onfinality.io/public-ws", + "wss://shiden.public.blastapi.io", + "wss://shiden-rpc.dwellir.com", + ], + faucets: [], + nativeCurrency: { name: "Shiden", symbol: "SDN", decimals: 18 }, + infoURL: "https://shiden.astar.network/", + shortName: "sdn", + chainId: 336, + networkId: 336, + icon: { + url: "ipfs://QmQySjAoWHgk3ou1yvBi2TrTcgH6KhfGiU7GcrLzrAeRkE", + width: 250, + height: 250, + format: "png", + }, + explorers: [ + { + name: "subscan", + url: "https://shiden.subscan.io", + standard: "none", + icon: "subscan", + }, + ], + testnet: !1, + slug: "shiden", + }, + Xzt = { + name: "Cronos Testnet", + chain: "CRO", + rpc: [ + "https://cronos-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://evm-t3.cronos.org", + ], + faucets: ["https://cronos.org/faucet"], + nativeCurrency: { + name: "Cronos Test Coin", + symbol: "TCRO", + decimals: 18, + }, + infoURL: "https://cronos.org", + shortName: "tcro", + chainId: 338, + networkId: 338, + explorers: [ + { + name: "Cronos Testnet Explorer", + url: "https://testnet.cronoscan.com", + standard: "none", + }, + ], + testnet: !0, + slug: "cronos-testnet", + }, + ejt = { + name: "Theta Mainnet", + chain: "Theta", + rpc: [ + "https://theta.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://eth-rpc-api.thetatoken.org/rpc", + ], + faucets: [], + nativeCurrency: { name: "Theta Fuel", symbol: "TFUEL", decimals: 18 }, + infoURL: "https://www.thetatoken.org/", + shortName: "theta-mainnet", + chainId: 361, + networkId: 361, + explorers: [ + { + name: "Theta Mainnet Explorer", + url: "https://explorer.thetatoken.org", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "theta", + }, + tjt = { + name: "Theta Sapphire Testnet", + chain: "Theta", + rpc: [ + "https://theta-sapphire-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://eth-rpc-api-sapphire.thetatoken.org/rpc", + ], + faucets: [], + nativeCurrency: { name: "Theta Fuel", symbol: "TFUEL", decimals: 18 }, + infoURL: "https://www.thetatoken.org/", + shortName: "theta-sapphire", + chainId: 363, + networkId: 363, + explorers: [ + { + name: "Theta Sapphire Testnet Explorer", + url: "https://guardian-testnet-sapphire-explorer.thetatoken.org", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "theta-sapphire-testnet", + }, + rjt = { + name: "Theta Amber Testnet", + chain: "Theta", + rpc: [ + "https://theta-amber-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://eth-rpc-api-amber.thetatoken.org/rpc", + ], + faucets: [], + nativeCurrency: { name: "Theta Fuel", symbol: "TFUEL", decimals: 18 }, + infoURL: "https://www.thetatoken.org/", + shortName: "theta-amber", + chainId: 364, + networkId: 364, + explorers: [ + { + name: "Theta Amber Testnet Explorer", + url: "https://guardian-testnet-amber-explorer.thetatoken.org", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "theta-amber-testnet", + }, + njt = { + name: "Theta Testnet", + chain: "Theta", + rpc: [ + "https://theta-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://eth-rpc-api-testnet.thetatoken.org/rpc", + ], + faucets: [], + nativeCurrency: { name: "Theta Fuel", symbol: "TFUEL", decimals: 18 }, + infoURL: "https://www.thetatoken.org/", + shortName: "theta-testnet", + chainId: 365, + networkId: 365, + explorers: [ + { + name: "Theta Testnet Explorer", + url: "https://testnet-explorer.thetatoken.org", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "theta-testnet", + }, + ajt = { + name: "PulseChain Mainnet", + shortName: "pls", + chain: "PLS", + chainId: 369, + networkId: 369, + infoURL: "https://pulsechain.com/", + rpc: [ + "https://pulsechain.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.mainnet.pulsechain.com/", + "wss://rpc.mainnet.pulsechain.com/", + ], + faucets: [], + nativeCurrency: { name: "Pulse", symbol: "PLS", decimals: 18 }, + testnet: !1, + slug: "pulsechain", + }, + ijt = { + name: "Consta Testnet", + chain: "tCNT", + rpc: [ + "https://consta-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc-testnet.theconsta.com", + ], + faucets: [], + nativeCurrency: { name: "tCNT", symbol: "tCNT", decimals: 18 }, + infoURL: "http://theconsta.com", + shortName: "tCNT", + chainId: 371, + networkId: 371, + icon: { + url: "ipfs://QmfQ1yae6uvXgBSwnwJM4Mtp8ctH66tM6mB1Hsgu4XvsC9", + width: 2e3, + height: 2e3, + format: "png", + }, + explorers: [ + { + name: "blockscout", + url: "https://explorer-testnet.theconsta.com", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "consta-testnet", + }, + sjt = { + name: "Lisinski", + chain: "CRO", + rpc: [ + "https://lisinski.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc-bitfalls1.lisinski.online", + ], + faucets: ["https://pipa.lisinski.online"], + nativeCurrency: { + name: "Lisinski Ether", + symbol: "LISINS", + decimals: 18, + }, + infoURL: "https://lisinski.online", + shortName: "lisinski", + chainId: 385, + networkId: 385, + testnet: !1, + slug: "lisinski", + }, + ojt = { + name: "HyperonChain TestNet", + chain: "HPN", + icon: { + url: "ipfs://QmWxhyxXTEsWH98v7M3ck4ZL1qQoUaHG4HgtgxzD2KJQ5m", + width: 540, + height: 541, + format: "png", + }, + rpc: [ + "https://hyperonchain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://testnet-rpc.hyperonchain.com", + ], + faucets: ["https://faucet.hyperonchain.com"], + nativeCurrency: { name: "HyperonChain", symbol: "HPN", decimals: 18 }, + infoURL: "https://docs.hyperonchain.com", + shortName: "hpn", + chainId: 400, + networkId: 400, + explorers: [ + { + name: "blockscout", + url: "https://testnet.hyperonchain.com", + icon: "hyperonchain", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "hyperonchain-testnet", + }, + cjt = { + name: "SX Network Mainnet", + chain: "SX", + icon: { + url: "ipfs://QmSXLXqyr2H6Ja5XrmznXbWTEvF2gFaL8RXNXgyLmDHjAF", + width: 896, + height: 690, + format: "png", + }, + rpc: [ + "https://sx-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.sx.technology", + ], + faucets: [], + nativeCurrency: { name: "SX Network", symbol: "SX", decimals: 18 }, + infoURL: "https://www.sx.technology", + shortName: "SX", + chainId: 416, + networkId: 416, + explorers: [ + { + name: "SX Network Explorer", + url: "https://explorer.sx.technology", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "sx-network", + }, + ujt = { + name: "Optimism Goerli Testnet", + chain: "ETH", + rpc: [ + "https://optimism-goerli.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://opt-goerli.g.alchemy.com/v2/${ALCHEMY_API_KEY}", + "https://optimism-goerli.infura.io/v3/${INFURA_API_KEY}", + "https://goerli.optimism.io/", + ], + faucets: [], + nativeCurrency: { name: "Goerli Ether", symbol: "ETH", decimals: 18 }, + infoURL: "https://optimism.io", + shortName: "ogor", + chainId: 420, + networkId: 420, + icon: { + url: "ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/optimism/512.png", + height: 512, + width: 512, + format: "png", + sizes: [512, 256, 128, 64, 32, 16], + }, + testnet: !0, + slug: "optimism-goerli", + }, + ljt = { + name: "Zeeth Chain", + chain: "ZeethChain", + rpc: [ + "https://zeeth-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.zeeth.io", + ], + faucets: [], + nativeCurrency: { name: "Zeeth Token", symbol: "ZTH", decimals: 18 }, + infoURL: "", + shortName: "zeeth", + chainId: 427, + networkId: 427, + explorers: [ + { + name: "Zeeth Explorer", + url: "https://explorer.zeeth.io", + standard: "none", + }, + ], + testnet: !1, + slug: "zeeth-chain", + }, + djt = { + name: "Frenchain Testnet", + chain: "tfren", + rpc: [ + "https://frenchain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc-01tn.frenchain.app", + ], + faucets: [], + nativeCurrency: { name: "tFREN", symbol: "FtREN", decimals: 18 }, + infoURL: "https://frenchain.app", + shortName: "tFREN", + chainId: 444, + networkId: 444, + icon: { + url: "ipfs://QmQk41bYX6WpYyUAdRgomZekxP5mbvZXhfxLEEqtatyJv4", + width: 128, + height: 128, + format: "png", + }, + explorers: [ + { + name: "blockscout", + url: "https://testnet.frenscan.io", + icon: "fren", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "frenchain-testnet", + }, + pjt = { + name: "Rupaya", + chain: "RUPX", + rpc: [], + faucets: [], + nativeCurrency: { name: "Rupaya", symbol: "RUPX", decimals: 18 }, + infoURL: "https://www.rupx.io", + shortName: "rupx", + chainId: 499, + networkId: 499, + slip44: 499, + testnet: !1, + slug: "rupaya", + }, + hjt = { + name: "Camino C-Chain", + chain: "CAM", + rpc: [], + faucets: [], + nativeCurrency: { name: "Camino", symbol: "CAM", decimals: 18 }, + infoURL: "https://camino.foundation/", + shortName: "Camino", + chainId: 500, + networkId: 1e3, + icon: { + url: "ipfs://QmSEoUonisawfCvT3osysuZzbqUEHugtgNraePKWL8PKYa", + width: 768, + height: 768, + format: "png", + }, + explorers: [ + { + name: "blockexplorer", + url: "https://explorer.camino.foundation/mainnet", + standard: "none", + }, + ], + testnet: !1, + slug: "camino-c-chain", + }, + fjt = { + name: "Columbus Test Network", + chain: "CAM", + rpc: [], + faucets: [], + nativeCurrency: { name: "Camino", symbol: "CAM", decimals: 18 }, + infoURL: "https://camino.foundation/", + shortName: "Columbus", + chainId: 501, + networkId: 1001, + icon: { + url: "ipfs://QmSEoUonisawfCvT3osysuZzbqUEHugtgNraePKWL8PKYa", + width: 768, + height: 768, + format: "png", + }, + explorers: [ + { + name: "blockexplorer", + url: "https://explorer.camino.foundation", + standard: "none", + }, + ], + testnet: !0, + slug: "columbus-test-network", + }, + mjt = { + name: "Double-A Chain Mainnet", + chain: "AAC", + rpc: [ + "https://double-a-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.acuteangle.com", + ], + faucets: [], + nativeCurrency: { + name: "Acuteangle Native Token", + symbol: "AAC", + decimals: 18, + }, + infoURL: "https://www.acuteangle.com/", + shortName: "aac", + chainId: 512, + networkId: 512, + slip44: 1512, + explorers: [ + { + name: "aacscan", + url: "https://scan.acuteangle.com", + standard: "EIP3091", + }, + ], + icon: { + url: "ipfs://QmRUrz4dULaoaMpnqd8qXT7ehwz3aaqnYKY4ePsy7isGaF", + width: 512, + height: 512, + format: "png", + }, + testnet: !1, + slug: "double-a-chain", + }, + yjt = { + name: "Double-A Chain Testnet", + chain: "AAC", + icon: { + url: "ipfs://QmRUrz4dULaoaMpnqd8qXT7ehwz3aaqnYKY4ePsy7isGaF", + width: 512, + height: 512, + format: "png", + }, + rpc: [ + "https://double-a-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc-testnet.acuteangle.com", + ], + faucets: ["https://scan-testnet.acuteangle.com/faucet"], + nativeCurrency: { + name: "Acuteangle Native Token", + symbol: "AAC", + decimals: 18, + }, + infoURL: "https://www.acuteangle.com/", + shortName: "aact", + chainId: 513, + networkId: 513, + explorers: [ + { + name: "aacscan-testnet", + url: "https://scan-testnet.acuteangle.com", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "double-a-chain-testnet", + }, + gjt = { + name: "Gear Zero Network Mainnet", + chain: "GearZero", + rpc: [ + "https://gear-zero-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://gzn.linksme.info", + ], + faucets: [], + nativeCurrency: { + name: "Gear Zero Network Native Token", + symbol: "GZN", + decimals: 18, + }, + infoURL: "https://token.gearzero.ca/mainnet", + shortName: "gz-mainnet", + chainId: 516, + networkId: 516, + slip44: 516, + explorers: [], + testnet: !1, + slug: "gear-zero-network", + }, + bjt = { + name: "XT Smart Chain Mainnet", + chain: "XSC", + icon: { + url: "ipfs://QmNmAFgQKkjofaBR5mhB5ygE1Gna36YBVsGkgZQxrwW85s", + width: 98, + height: 96, + format: "png", + }, + rpc: [ + "https://xt-smart-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://datarpc1.xsc.pub", + "https://datarpc2.xsc.pub", + "https://datarpc3.xsc.pub", + ], + faucets: ["https://xsc.pub/faucet"], + nativeCurrency: { + name: "XT Smart Chain Native Token", + symbol: "XT", + decimals: 18, + }, + infoURL: "https://xsc.pub/", + shortName: "xt", + chainId: 520, + networkId: 1024, + explorers: [ + { name: "xscscan", url: "https://xscscan.pub", standard: "EIP3091" }, + ], + testnet: !1, + slug: "xt-smart-chain", + }, + vjt = { + name: "Firechain Mainnet", + chain: "FIRE", + icon: { + url: "ipfs://QmYjuztyURb3Fc6ZTLgCbwQa64CcVoigF5j9cafzuSbqgf", + width: 512, + height: 512, + format: "png", + }, + rpc: [ + "https://firechain.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://mainnet.rpc1.thefirechain.com", + ], + faucets: [], + nativeCurrency: { name: "Firechain", symbol: "FIRE", decimals: 18 }, + infoURL: "https://thefirechain.com", + shortName: "fire", + chainId: 529, + networkId: 529, + explorers: [], + status: "incubating", + testnet: !1, + slug: "firechain", + }, + wjt = { + name: "F(x)Core Mainnet Network", + chain: "Fxcore", + rpc: [ + "https://f-x-core-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://fx-json-web3.functionx.io:8545", + ], + faucets: [], + nativeCurrency: { name: "Function X", symbol: "FX", decimals: 18 }, + infoURL: "https://functionx.io/", + shortName: "FxCore", + chainId: 530, + networkId: 530, + icon: { + url: "ipfs://bafkreifrf2iq3k3dqfbvp3pacwuxu33up3usmrhojt5ielyfty7xkixu3i", + width: 500, + height: 500, + format: "png", + }, + explorers: [ + { + name: "FunctionX Explorer", + url: "https://fx-evm.functionx.io", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "f-x-core-network", + }, + _jt = { + name: "Candle", + chain: "Candle", + rpc: [ + "https://candle.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://candle-rpc.com/", + "https://rpc.cndlchain.com", + ], + faucets: [], + nativeCurrency: { name: "CANDLE", symbol: "CNDL", decimals: 18 }, + infoURL: "https://candlelabs.org/", + shortName: "CNDL", + chainId: 534, + networkId: 534, + slip44: 674, + explorers: [ + { + name: "candleexplorer", + url: "https://candleexplorer.com", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "candle", + }, + xjt = { + name: "Vela1 Chain Mainnet", + chain: "VELA1", + rpc: [ + "https://vela1-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.velaverse.io", + ], + faucets: [], + nativeCurrency: { name: "CLASS COIN", symbol: "CLASS", decimals: 18 }, + infoURL: "https://velaverse.io", + shortName: "CLASS", + chainId: 555, + networkId: 555, + explorers: [ + { + name: "Vela1 Chain Mainnet Explorer", + url: "https://exp.velaverse.io", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "vela1-chain", + }, + Tjt = { + name: "Tao Network", + chain: "TAO", + rpc: [ + "https://tao-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.testnet.tao.network", + "http://rpc.testnet.tao.network:8545", + "https://rpc.tao.network", + "wss://rpc.tao.network", + ], + faucets: [], + nativeCurrency: { name: "Tao", symbol: "TAO", decimals: 18 }, + infoURL: "https://tao.network", + shortName: "tao", + chainId: 558, + networkId: 558, + testnet: !0, + slug: "tao-network", + }, + Ejt = { + name: "Dogechain Testnet", + chain: "DC", + icon: { + url: "ipfs://QmNS6B6L8FfgGSMTEi2SxD3bK5cdmKPNtQKcYaJeRWrkHs", + width: 732, + height: 732, + format: "png", + }, + rpc: [ + "https://dogechain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc-testnet.dogechain.dog", + ], + faucets: ["https://faucet.dogechain.dog"], + nativeCurrency: { name: "Dogecoin", symbol: "DOGE", decimals: 18 }, + infoURL: "https://dogechain.dog", + shortName: "dct", + chainId: 568, + networkId: 568, + explorers: [ + { + name: "dogechain testnet explorer", + url: "https://explorer-testnet.dogechain.dog", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "dogechain-testnet", + }, + Cjt = { + name: "Astar", + chain: "ASTR", + rpc: [ + "https://astar.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.astar.network:8545", + ], + faucets: [], + nativeCurrency: { name: "Astar", symbol: "ASTR", decimals: 18 }, + infoURL: "https://astar.network/", + shortName: "astr", + chainId: 592, + networkId: 592, + icon: { + url: "ipfs://Qmdvmx3p6gXBCLUMU1qivscaTNkT6h3URdhUTZCHLwKudg", + width: 1e3, + height: 1e3, + format: "png", + }, + explorers: [ + { + name: "subscan", + url: "https://astar.subscan.io", + standard: "none", + icon: "subscan", + }, + ], + testnet: !1, + slug: "astar", + }, + Ijt = { + name: "Acala Mandala Testnet", + chain: "mACA", + rpc: [], + faucets: [], + nativeCurrency: { + name: "Acala Mandala Token", + symbol: "mACA", + decimals: 18, + }, + infoURL: "https://acala.network", + shortName: "maca", + chainId: 595, + networkId: 595, + testnet: !0, + slug: "acala-mandala-testnet", + }, + Ajt = { + name: "Karura Network Testnet", + chain: "KAR", + rpc: [], + faucets: [], + nativeCurrency: { name: "Karura Token", symbol: "KAR", decimals: 18 }, + infoURL: "https://karura.network", + shortName: "tkar", + chainId: 596, + networkId: 596, + slip44: 596, + testnet: !0, + slug: "karura-network-testnet", + }, + kjt = { + name: "Acala Network Testnet", + chain: "ACA", + rpc: [], + faucets: [], + nativeCurrency: { name: "Acala Token", symbol: "ACA", decimals: 18 }, + infoURL: "https://acala.network", + shortName: "taca", + chainId: 597, + networkId: 597, + slip44: 597, + testnet: !0, + slug: "acala-network-testnet", + }, + Sjt = { + name: "Metis Goerli Testnet", + chain: "ETH", + rpc: [ + "https://metis-goerli-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://goerli.gateway.metisdevops.link", + ], + faucets: ["https://goerli.faucet.metisdevops.link"], + nativeCurrency: { name: "Goerli Metis", symbol: "METIS", decimals: 18 }, + infoURL: "https://www.metis.io", + shortName: "metis-goerli", + chainId: 599, + networkId: 599, + explorers: [ + { + name: "blockscout", + url: "https://goerli.explorer.metisdevops.link", + standard: "EIP3091", + }, + ], + parent: { + type: "L2", + chain: "eip155-4", + bridges: [{ url: "https://testnet-bridge.metis.io" }], + }, + testnet: !0, + slug: "metis-goerli-testnet", + }, + Mjt = { + name: "Meshnyan testnet", + chain: "MeshTestChain", + rpc: [], + faucets: [], + nativeCurrency: { + name: "Meshnyan Testnet Native Token", + symbol: "MESHT", + decimals: 18, + }, + infoURL: "", + shortName: "mesh-chain-testnet", + chainId: 600, + networkId: 600, + testnet: !0, + slug: "meshnyan-testnet", + }, + Pjt = { + name: "Graphlinq Blockchain Mainnet", + chain: "GLQ Blockchain", + rpc: [ + "https://graphlinq-blockchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://glq-dataseed.graphlinq.io", + ], + faucets: [], + nativeCurrency: { name: "GLQ", symbol: "GLQ", decimals: 18 }, + infoURL: "https://graphlinq.io", + shortName: "glq", + chainId: 614, + networkId: 614, + explorers: [ + { + name: "GLQ Explorer", + url: "https://explorer.graphlinq.io", + standard: "none", + }, + ], + testnet: !1, + slug: "graphlinq-blockchain", + }, + Rjt = { + name: "SX Network Testnet", + chain: "SX", + icon: { + url: "ipfs://QmSXLXqyr2H6Ja5XrmznXbWTEvF2gFaL8RXNXgyLmDHjAF", + width: 896, + height: 690, + format: "png", + }, + rpc: [ + "https://sx-network-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.toronto.sx.technology", + ], + faucets: ["https://faucet.toronto.sx.technology"], + nativeCurrency: { name: "SX Network", symbol: "SX", decimals: 18 }, + infoURL: "https://www.sx.technology", + shortName: "SX-Testnet", + chainId: 647, + networkId: 647, + explorers: [ + { + name: "SX Network Toronto Explorer", + url: "https://explorer.toronto.sx.technology", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "sx-network-testnet", + }, + Bjt = { + name: "Endurance Smart Chain Mainnet", + chain: "ACE", + rpc: [ + "https://endurance-smart-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc-endurance.fusionist.io/", + ], + faucets: [], + nativeCurrency: { + name: "Endurance Chain Native Token", + symbol: "ACE", + decimals: 18, + }, + infoURL: "https://ace.fusionist.io/", + shortName: "ace", + chainId: 648, + networkId: 648, + explorers: [ + { + name: "Endurance Scan", + url: "https://explorer.endurance.fusionist.io", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "endurance-smart-chain", + }, + Njt = { + name: "Pixie Chain Testnet", + chain: "PixieChain", + rpc: [ + "https://pixie-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://http-testnet.chain.pixie.xyz", + "wss://ws-testnet.chain.pixie.xyz", + ], + faucets: ["https://chain.pixie.xyz/faucet"], + nativeCurrency: { + name: "Pixie Chain Testnet Native Token", + symbol: "PCTT", + decimals: 18, + }, + infoURL: "https://scan-testnet.chain.pixie.xyz", + shortName: "pixie-chain-testnet", + chainId: 666, + networkId: 666, + testnet: !0, + slug: "pixie-chain-testnet", + }, + Ojt = { + name: "Karura Network", + chain: "KAR", + rpc: [], + faucets: [], + nativeCurrency: { name: "Karura Token", symbol: "KAR", decimals: 18 }, + infoURL: "https://karura.network", + shortName: "kar", + chainId: 686, + networkId: 686, + slip44: 686, + testnet: !1, + slug: "karura-network", + }, + Ljt = { + name: "Star Social Testnet", + chain: "SNS", + rpc: [ + "https://star-social-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://avastar.cc/ext/bc/C/rpc", + ], + faucets: [], + nativeCurrency: { name: "Social", symbol: "SNS", decimals: 18 }, + infoURL: "https://info.avastar.cc", + shortName: "SNS", + chainId: 700, + networkId: 700, + explorers: [ + { + name: "starscan", + url: "https://avastar.info", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "star-social-testnet", + }, + Djt = { + name: "BlockChain Station Mainnet", + chain: "BCS", + rpc: [ + "https://blockchain-station.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc-mainnet.bcsdev.io", + "wss://rpc-ws-mainnet.bcsdev.io", + ], + faucets: [], + nativeCurrency: { name: "BCS Token", symbol: "BCS", decimals: 18 }, + infoURL: "https://blockchainstation.io", + shortName: "bcs", + chainId: 707, + networkId: 707, + explorers: [ + { + name: "BlockChain Station Explorer", + url: "https://explorer.bcsdev.io", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "blockchain-station", + }, + qjt = { + name: "BlockChain Station Testnet", + chain: "BCS", + rpc: [ + "https://blockchain-station-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc-testnet.bcsdev.io", + "wss://rpc-ws-testnet.bcsdev.io", + ], + faucets: ["https://faucet.bcsdev.io"], + nativeCurrency: { + name: "BCS Testnet Token", + symbol: "tBCS", + decimals: 18, + }, + infoURL: "https://blockchainstation.io", + shortName: "tbcs", + chainId: 708, + networkId: 708, + explorers: [ + { + name: "BlockChain Station Explorer", + url: "https://testnet.bcsdev.io", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "blockchain-station-testnet", + }, + Fjt = { + name: "Lycan Chain", + chain: "LYC", + rpc: [ + "https://lycan-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.lycanchain.com/", + ], + faucets: [], + nativeCurrency: { name: "Lycan", symbol: "LYC", decimals: 18 }, + infoURL: "https://lycanchain.com", + shortName: "LYC", + chainId: 721, + networkId: 721, + icon: { + url: "ipfs://Qmc8hsCbUUjnJDnXrDhFh4V1xk1gJwZbUyNJ39p72javji", + width: 400, + height: 400, + format: "png", + }, + explorers: [ + { + name: "blockscout", + url: "https://explorer.lycanchain.com", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "lycan-chain", + }, + Wjt = { + name: "Canto Testnet", + chain: "Canto Tesnet", + rpc: [ + "https://canto-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://eth.plexnode.wtf/", + ], + faucets: [], + nativeCurrency: { name: "Canto", symbol: "CANTO", decimals: 18 }, + infoURL: "https://canto.io", + shortName: "tcanto", + chainId: 740, + networkId: 740, + explorers: [ + { + name: "Canto Tesnet Explorer (Neobase)", + url: "http://testnet-explorer.canto.neobase.one", + standard: "none", + }, + ], + testnet: !0, + slug: "canto-testnet", + }, + Ujt = { + name: "Vention Smart Chain Testnet", + chain: "VSCT", + icon: { + url: "ipfs://QmcNepHmbmHW1BZYM3MFqJW4awwhmDqhUPRXXmRnXwg1U4", + width: 250, + height: 250, + format: "png", + }, + rpc: [ + "https://vention-smart-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://node-testnet.vention.network", + ], + faucets: ["https://faucet.vention.network"], + nativeCurrency: { name: "VNT", symbol: "VNT", decimals: 18 }, + infoURL: "https://testnet.ventionscan.io", + shortName: "vsct", + chainId: 741, + networkId: 741, + explorers: [ + { + name: "ventionscan", + url: "https://testnet.ventionscan.io", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "vention-smart-chain-testnet", + }, + Hjt = { + name: "QL1", + chain: "QOM", + status: "incubating", + rpc: [ + "https://ql1.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.qom.one", + ], + faucets: [], + nativeCurrency: { name: "Shiba Predator", symbol: "QOM", decimals: 18 }, + infoURL: "https://qom.one", + shortName: "qom", + chainId: 766, + networkId: 766, + icon: { + url: "ipfs://QmRc1kJ7AgcDL1BSoMYudatWHTrz27K6WNTwGifQb5V17D", + width: 518, + height: 518, + format: "png", + }, + explorers: [ + { + name: "QL1 Mainnet Explorer", + url: "https://mainnet.qom.one", + icon: "qom", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "ql1", + }, + zjt = { + name: "OpenChain Testnet", + chain: "OpenChain Testnet", + rpc: [], + faucets: ["https://faucet.openchain.info/"], + nativeCurrency: { + name: "Openchain Testnet", + symbol: "TOPC", + decimals: 18, + }, + infoURL: "https://testnet.openchain.info/", + shortName: "opc", + chainId: 776, + networkId: 776, + explorers: [ + { + name: "OPEN CHAIN TESTNET", + url: "https://testnet.openchain.info", + standard: "none", + }, + ], + testnet: !0, + slug: "openchain-testnet", + }, + jjt = { + name: "cheapETH", + chain: "cheapETH", + rpc: [ + "https://cheapeth.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://node.cheapeth.org/rpc", + ], + faucets: [], + nativeCurrency: { name: "cTH", symbol: "cTH", decimals: 18 }, + infoURL: "https://cheapeth.org/", + shortName: "cth", + chainId: 777, + networkId: 777, + testnet: !1, + slug: "cheapeth", + }, + Kjt = { + name: "Acala Network", + chain: "ACA", + rpc: [], + faucets: [], + nativeCurrency: { name: "Acala Token", symbol: "ACA", decimals: 18 }, + infoURL: "https://acala.network", + shortName: "aca", + chainId: 787, + networkId: 787, + slip44: 787, + testnet: !1, + slug: "acala-network", + }, + Vjt = { + name: "Aerochain Testnet", + chain: "Aerochain", + rpc: [ + "https://aerochain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://testnet-rpc.aerochain.id/", + ], + faucets: ["https://faucet.aerochain.id/"], + nativeCurrency: { + name: "Aerochain Testnet", + symbol: "TAero", + decimals: 18, + }, + infoURL: "https://aerochaincoin.org/", + shortName: "taero", + chainId: 788, + networkId: 788, + explorers: [ + { + name: "aeroscan", + url: "https://testnet.aeroscan.id", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "aerochain-testnet", + }, + Gjt = { + name: "Lucid Blockchain", + chain: "Lucid Blockchain", + icon: { + url: "ipfs://bafybeigxiyyxll4vst5cjjh732mr6zhsnligxubaldyiul2xdvvi6ibktu", + width: 800, + height: 800, + format: "png", + }, + rpc: [ + "https://lucid-blockchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.lucidcoin.io", + ], + faucets: ["https://faucet.lucidcoin.io"], + nativeCurrency: { name: "LUCID", symbol: "LUCID", decimals: 18 }, + infoURL: "https://lucidcoin.io", + shortName: "LUCID", + chainId: 800, + networkId: 800, + explorers: [ + { + name: "Lucid Explorer", + url: "https://explorer.lucidcoin.io", + standard: "none", + }, + ], + testnet: !1, + slug: "lucid-blockchain", + }, + Yjt = { + name: "Haic", + chain: "Haic", + rpc: [ + "https://haic.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://orig.haichain.io/", + ], + faucets: [], + nativeCurrency: { name: "Haicoin", symbol: "HAIC", decimals: 18 }, + infoURL: "https://www.haichain.io/", + shortName: "haic", + chainId: 803, + networkId: 803, + testnet: !1, + slug: "haic", + }, + $jt = { + name: "Portal Fantasy Chain Test", + chain: "PF", + icon: { + url: "ipfs://QmeMa6aw3ebUKJdGgbzDgcVtggzp7cQdfSrmzMYmnt5ywc", + width: 200, + height: 200, + format: "png", + }, + rpc: [ + "https://portal-fantasy-chain-test.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://subnets.avax.network/portal-fantasy/testnet/rpc", + ], + faucets: [], + nativeCurrency: { + name: "Portal Fantasy Token", + symbol: "PFT", + decimals: 18, + }, + infoURL: "https://portalfantasy.io", + shortName: "PFTEST", + chainId: 808, + networkId: 808, + explorers: [], + testnet: !0, + slug: "portal-fantasy-chain-test", + }, + Jjt = { + name: "Qitmeer", + chain: "MEER", + rpc: [ + "https://qitmeer.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://evm-dataseed1.meerscan.io", + "https://evm-dataseed2.meerscan.io", + "https://evm-dataseed3.meerscan.io", + "https://evm-dataseed.meerscan.com", + "https://evm-dataseed1.meerscan.com", + "https://evm-dataseed2.meerscan.com", + ], + faucets: [], + nativeCurrency: { name: "Qitmeer", symbol: "MEER", decimals: 18 }, + infoURL: "https://github.com/Qitmeer", + shortName: "meer", + chainId: 813, + networkId: 813, + slip44: 813, + icon: { + url: "ipfs://QmWSbMuCwQzhBB6GRLYqZ87n5cnpzpYCehCAMMQmUXj4mm", + width: 512, + height: 512, + format: "png", + }, + explorers: [ + { + name: "meerscan", + url: "https://evm.meerscan.com", + standard: "none", + }, + ], + testnet: !1, + slug: "qitmeer", + }, + Zjt = { + name: "Callisto Mainnet", + chain: "CLO", + rpc: [ + "https://callisto.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.callisto.network/", + ], + faucets: [], + nativeCurrency: { name: "Callisto", symbol: "CLO", decimals: 18 }, + infoURL: "https://callisto.network", + shortName: "clo", + chainId: 820, + networkId: 1, + slip44: 820, + testnet: !1, + slug: "callisto", + }, + Qjt = { + name: "Taraxa Mainnet", + chain: "Tara", + icon: { + url: "ipfs://QmQhdktNyBeXmCaVuQpi1B4yXheSUKrJA17L4wpECKzG5D", + width: 310, + height: 310, + format: "png", + }, + rpc: [ + "https://taraxa.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.mainnet.taraxa.io/", + ], + faucets: [], + nativeCurrency: { name: "Tara", symbol: "TARA", decimals: 18 }, + infoURL: "https://taraxa.io", + shortName: "tara", + chainId: 841, + networkId: 841, + explorers: [ + { + name: "Taraxa Explorer", + url: "https://explorer.mainnet.taraxa.io", + standard: "none", + }, + ], + testnet: !1, + slug: "taraxa", + }, + Xjt = { + name: "Taraxa Testnet", + chain: "Tara", + icon: { + url: "ipfs://QmQhdktNyBeXmCaVuQpi1B4yXheSUKrJA17L4wpECKzG5D", + width: 310, + height: 310, + format: "png", + }, + rpc: [ + "https://taraxa-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.testnet.taraxa.io/", + ], + faucets: [], + nativeCurrency: { name: "Tara", symbol: "TARA", decimals: 18 }, + infoURL: "https://taraxa.io", + shortName: "taratest", + chainId: 842, + networkId: 842, + explorers: [ + { + name: "Taraxa Explorer", + url: "https://explorer.testnet.taraxa.io", + standard: "none", + }, + ], + testnet: !0, + slug: "taraxa-testnet", + }, + eKt = { + name: "Zeeth Chain Dev", + chain: "ZeethChainDev", + rpc: [ + "https://zeeth-chain-dev.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.dev.zeeth.io", + ], + faucets: [], + nativeCurrency: { name: "Zeeth Token", symbol: "ZTH", decimals: 18 }, + infoURL: "", + shortName: "zeethdev", + chainId: 859, + networkId: 859, + explorers: [ + { + name: "Zeeth Explorer Dev", + url: "https://explorer.dev.zeeth.io", + standard: "none", + }, + ], + testnet: !1, + slug: "zeeth-chain-dev", + }, + tKt = { + name: "Fantasia Chain Mainnet", + chain: "FSC", + rpc: [ + "https://fantasia-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://mainnet-data1.fantasiachain.com/", + "https://mainnet-data2.fantasiachain.com/", + "https://mainnet-data3.fantasiachain.com/", + ], + faucets: [], + nativeCurrency: { name: "FST", symbol: "FST", decimals: 18 }, + infoURL: "https://fantasia.technology/", + shortName: "FSCMainnet", + chainId: 868, + networkId: 868, + explorers: [ + { + name: "FSCScan", + url: "https://explorer.fantasiachain.com", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "fantasia-chain", + }, + rKt = { + name: "Bandai Namco Research Verse Mainnet", + chain: "Bandai Namco Research Verse", + icon: { + url: "ipfs://bafkreifhetalm3vpvjrg5u5d2momkcgvkz6rhltur5co3rslltbxzpr6yq", + width: 2048, + height: 2048, + format: "png", + }, + rpc: [ + "https://bandai-namco-research-verse.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.main.oasvrs.bnken.net", + ], + faucets: [], + nativeCurrency: { name: "OAS", symbol: "OAS", decimals: 18 }, + infoURL: "https://www.bandainamco-mirai.com/en/", + shortName: "BNKEN", + chainId: 876, + networkId: 876, + explorers: [ + { + name: "Bandai Namco Research Verse Explorer", + url: "https://explorer.main.oasvrs.bnken.net", + standard: "EIP3091", + }, + ], + parent: { type: "L2", chain: "eip155-248" }, + testnet: !1, + slug: "bandai-namco-research-verse", + }, + nKt = { + name: "Dexit Network", + chain: "DXT", + rpc: [ + "https://dexit-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://dxt.dexit.network", + ], + faucets: ["https://faucet.dexit.network"], + nativeCurrency: { name: "Dexit network", symbol: "DXT", decimals: 18 }, + infoURL: "https://dexit.network", + shortName: "DXT", + chainId: 877, + networkId: 877, + explorers: [ + { name: "dxtscan", url: "https://dxtscan.com", standard: "EIP3091" }, + ], + testnet: !1, + slug: "dexit-network", + }, + aKt = { + name: "Ambros Chain Mainnet", + chain: "ambroschain", + rpc: [ + "https://ambros-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://api.ambros.network", + ], + faucets: [], + nativeCurrency: { name: "AMBROS", symbol: "AMBROS", decimals: 18 }, + infoURL: "https://ambros.network", + shortName: "ambros", + chainId: 880, + networkId: 880, + explorers: [ + { + name: "Ambros Chain Explorer", + url: "https://ambrosscan.com", + standard: "none", + }, + ], + testnet: !1, + slug: "ambros-chain", + }, + iKt = { + name: "Wanchain", + chain: "WAN", + rpc: [ + "https://wanchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://gwan-ssl.wandevs.org:56891/", + ], + faucets: [], + nativeCurrency: { name: "Wancoin", symbol: "WAN", decimals: 18 }, + infoURL: "https://www.wanscan.org", + shortName: "wan", + chainId: 888, + networkId: 888, + slip44: 5718350, + testnet: !1, + slug: "wanchain", + }, + sKt = { + name: "Garizon Testnet Stage0", + chain: "GAR", + icon: { + url: "ipfs://QmW3WRyuLZ95K8hvV2QN6rP5yWY98sSzWyVUxD2eUjXGrc", + width: 1024, + height: 613, + format: "png", + }, + rpc: [ + "https://garizon-testnet-stage0.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://s0-testnet.garizon.net/rpc", + ], + faucets: ["https://faucet-testnet.garizon.com"], + nativeCurrency: { name: "Garizon", symbol: "GAR", decimals: 18 }, + infoURL: "https://garizon.com", + shortName: "gar-test-s0", + chainId: 900, + networkId: 900, + explorers: [ + { + name: "explorer", + url: "https://explorer-testnet.garizon.com", + icon: "garizon", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "garizon-testnet-stage0", + }, + oKt = { + name: "Garizon Testnet Stage1", + chain: "GAR", + icon: { + url: "ipfs://QmW3WRyuLZ95K8hvV2QN6rP5yWY98sSzWyVUxD2eUjXGrc", + width: 1024, + height: 613, + format: "png", + }, + rpc: [ + "https://garizon-testnet-stage1.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://s1-testnet.garizon.net/rpc", + ], + faucets: ["https://faucet-testnet.garizon.com"], + nativeCurrency: { name: "Garizon", symbol: "GAR", decimals: 18 }, + infoURL: "https://garizon.com", + shortName: "gar-test-s1", + chainId: 901, + networkId: 901, + explorers: [ + { + name: "explorer", + url: "https://explorer-testnet.garizon.com", + icon: "garizon", + standard: "EIP3091", + }, + ], + parent: { chain: "eip155-900", type: "shard" }, + testnet: !0, + slug: "garizon-testnet-stage1", + }, + cKt = { + name: "Garizon Testnet Stage2", + chain: "GAR", + icon: { + url: "ipfs://QmW3WRyuLZ95K8hvV2QN6rP5yWY98sSzWyVUxD2eUjXGrc", + width: 1024, + height: 613, + format: "png", + }, + rpc: [ + "https://garizon-testnet-stage2.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://s2-testnet.garizon.net/rpc", + ], + faucets: ["https://faucet-testnet.garizon.com"], + nativeCurrency: { name: "Garizon", symbol: "GAR", decimals: 18 }, + infoURL: "https://garizon.com", + shortName: "gar-test-s2", + chainId: 902, + networkId: 902, + explorers: [ + { + name: "explorer", + url: "https://explorer-testnet.garizon.com", + icon: "garizon", + standard: "EIP3091", + }, + ], + parent: { chain: "eip155-900", type: "shard" }, + testnet: !0, + slug: "garizon-testnet-stage2", + }, + uKt = { + name: "Garizon Testnet Stage3", + chain: "GAR", + icon: { + url: "ipfs://QmW3WRyuLZ95K8hvV2QN6rP5yWY98sSzWyVUxD2eUjXGrc", + width: 1024, + height: 613, + format: "png", + }, + rpc: [ + "https://garizon-testnet-stage3.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://s3-testnet.garizon.net/rpc", + ], + faucets: ["https://faucet-testnet.garizon.com"], + nativeCurrency: { name: "Garizon", symbol: "GAR", decimals: 18 }, + infoURL: "https://garizon.com", + shortName: "gar-test-s3", + chainId: 903, + networkId: 903, + explorers: [ + { + name: "explorer", + url: "https://explorer-testnet.garizon.com", + icon: "garizon", + standard: "EIP3091", + }, + ], + parent: { chain: "eip155-900", type: "shard" }, + testnet: !0, + slug: "garizon-testnet-stage3", + }, + lKt = { + name: "Portal Fantasy Chain", + chain: "PF", + icon: { + url: "ipfs://QmeMa6aw3ebUKJdGgbzDgcVtggzp7cQdfSrmzMYmnt5ywc", + width: 200, + height: 200, + format: "png", + }, + rpc: [], + faucets: [], + nativeCurrency: { + name: "Portal Fantasy Token", + symbol: "PFT", + decimals: 18, + }, + infoURL: "https://portalfantasy.io", + shortName: "PF", + chainId: 909, + networkId: 909, + explorers: [], + status: "incubating", + testnet: !1, + slug: "portal-fantasy-chain", + }, + dKt = { + name: "Rinia Testnet", + chain: "FIRE", + icon: { + url: "ipfs://QmRnnw2gtbU9TWJMLJ6tks7SN6HQV5rRugeoyN6csTYHt1", + width: 512, + height: 512, + format: "png", + }, + rpc: [ + "https://rinia-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rinia.rpc1.thefirechain.com", + ], + faucets: ["https://faucet.thefirechain.com"], + nativeCurrency: { name: "Firechain", symbol: "FIRE", decimals: 18 }, + infoURL: "https://thefirechain.com", + shortName: "tfire", + chainId: 917, + networkId: 917, + explorers: [], + status: "incubating", + testnet: !0, + slug: "rinia-testnet", + }, + pKt = { + name: "PulseChain Testnet", + shortName: "tpls", + chain: "tPLS", + chainId: 940, + networkId: 940, + infoURL: "https://pulsechain.com/", + rpc: [ + "https://pulsechain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.v2.testnet.pulsechain.com/", + "wss://rpc.v2.testnet.pulsechain.com/", + ], + faucets: ["https://faucet.v2.testnet.pulsechain.com/"], + nativeCurrency: { name: "Test Pulse", symbol: "tPLS", decimals: 18 }, + testnet: !0, + slug: "pulsechain-testnet", + }, + hKt = { + name: "PulseChain Testnet v2b", + shortName: "t2bpls", + chain: "t2bPLS", + chainId: 941, + networkId: 941, + infoURL: "https://pulsechain.com/", + rpc: [ + "https://pulsechain-testnet-v2b.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.v2b.testnet.pulsechain.com/", + "wss://rpc.v2b.testnet.pulsechain.com/", + ], + faucets: ["https://faucet.v2b.testnet.pulsechain.com/"], + nativeCurrency: { name: "Test Pulse", symbol: "tPLS", decimals: 18 }, + testnet: !0, + slug: "pulsechain-testnet-v2b", + }, + fKt = { + name: "PulseChain Testnet v3", + shortName: "t3pls", + chain: "t3PLS", + chainId: 942, + networkId: 942, + infoURL: "https://pulsechain.com/", + rpc: [ + "https://pulsechain-testnet-v3.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.v3.testnet.pulsechain.com/", + "wss://rpc.v3.testnet.pulsechain.com/", + ], + faucets: ["https://faucet.v3.testnet.pulsechain.com/"], + nativeCurrency: { name: "Test Pulse", symbol: "tPLS", decimals: 18 }, + testnet: !0, + slug: "pulsechain-testnet-v3", + }, + mKt = { + name: "muNode Testnet", + chain: "munode", + rpc: [], + faucets: [], + nativeCurrency: { name: "Ether", symbol: "ETH", decimals: 18 }, + infoURL: "https://munode.dev/", + shortName: "munode", + chainId: 956, + networkId: 956, + testnet: !0, + slug: "munode-testnet", + }, + yKt = { + name: "Oort Mainnet", + chain: "Oort Mainnet", + rpc: [ + "https://oort.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.oortech.com", + ], + faucets: [], + nativeCurrency: { name: "Oort", symbol: "CCN", decimals: 18 }, + infoURL: "https://oortech.com", + shortName: "ccn", + chainId: 970, + networkId: 970, + icon: { + url: "ipfs://QmZ1jbxFZcuotj3eZ6iKFrg9ZXnaV8AK6sGRa7ELrceWyD", + width: 1043, + height: 1079, + format: "png", + }, + testnet: !1, + slug: "oort", + }, + gKt = { + name: "Oort Huygens", + chain: "Huygens", + rpc: [], + faucets: [], + nativeCurrency: { name: "Oort", symbol: "CCN", decimals: 18 }, + infoURL: "https://oortech.com", + shortName: "Huygens", + chainId: 971, + networkId: 971, + icon: { + url: "ipfs://QmZ1jbxFZcuotj3eZ6iKFrg9ZXnaV8AK6sGRa7ELrceWyD", + width: 1043, + height: 1079, + format: "png", + }, + testnet: !1, + slug: "oort-huygens", + }, + bKt = { + name: "Oort Ascraeus", + title: "Oort Ascraeus", + chain: "Ascraeus", + rpc: [ + "https://oort-ascraeus.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://ascraeus-rpc.oortech.com", + ], + faucets: [], + nativeCurrency: { name: "Oort", symbol: "CCNA", decimals: 18 }, + infoURL: "https://oortech.com", + shortName: "Ascraeus", + chainId: 972, + networkId: 972, + icon: { + url: "ipfs://QmZ1jbxFZcuotj3eZ6iKFrg9ZXnaV8AK6sGRa7ELrceWyD", + width: 1043, + height: 1079, + format: "png", + }, + testnet: !1, + slug: "oort-ascraeus", + }, + vKt = { + name: "Nepal Blockchain Network", + chain: "YETI", + rpc: [ + "https://nepal-blockchain-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://api.nepalblockchain.dev", + "https://api.nepalblockchain.network", + ], + faucets: ["https://faucet.nepalblockchain.network"], + nativeCurrency: { + name: "Nepal Blockchain Network Ether", + symbol: "YETI", + decimals: 18, + }, + infoURL: "https://nepalblockchain.network", + shortName: "yeti", + chainId: 977, + networkId: 977, + testnet: !1, + slug: "nepal-blockchain-network", + }, + wKt = { + name: "TOP Mainnet EVM", + chain: "TOP", + icon: { + url: "ipfs://QmYikaM849eZrL8pGNeVhEHVTKWpxdGMvCY5oFBfZ2ndhd", + width: 800, + height: 800, + format: "png", + }, + rpc: [ + "https://top-evm.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://ethapi.topnetwork.org", + ], + faucets: [], + nativeCurrency: { name: "Ether", symbol: "ETH", decimals: 18 }, + infoURL: "https://www.topnetwork.org/", + shortName: "top_evm", + chainId: 980, + networkId: 0, + explorers: [ + { + name: "topscan.dev", + url: "https://www.topscan.io", + standard: "none", + }, + ], + testnet: !1, + slug: "top-evm", + }, + _Kt = { + name: "Memo Smart Chain Mainnet", + chain: "MEMO", + rpc: [ + "https://memo-smart-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://chain.metamemo.one:8501", + "wss://chain.metamemo.one:16801", + ], + faucets: ["https://faucet.metamemo.one/"], + nativeCurrency: { name: "Memo", symbol: "CMEMO", decimals: 18 }, + infoURL: "www.memolabs.org", + shortName: "memochain", + chainId: 985, + networkId: 985, + icon: { + url: "ipfs://bafkreig52paynhccs4o5ew6f7mk3xoqu2bqtitmfvlgnwarh2pm33gbdrq", + width: 128, + height: 128, + format: "png", + }, + explorers: [ + { + name: "Memo Mainnet Explorer", + url: "https://scan.metamemo.one:8080", + icon: "memoscan", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "memo-smart-chain", + }, + xKt = { + name: "TOP Mainnet", + chain: "TOP", + icon: { + url: "ipfs://QmYikaM849eZrL8pGNeVhEHVTKWpxdGMvCY5oFBfZ2ndhd", + width: 800, + height: 800, + format: "png", + }, + rpc: [], + faucets: [], + nativeCurrency: { name: "TOP", symbol: "TOP", decimals: 6 }, + infoURL: "https://www.topnetwork.org/", + shortName: "top", + chainId: 989, + networkId: 0, + explorers: [ + { + name: "topscan.dev", + url: "https://www.topscan.io", + standard: "none", + }, + ], + testnet: !1, + slug: "top", + }, + TKt = { + name: "Lucky Network", + chain: "LN", + rpc: [ + "https://lucky-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.luckynetwork.org", + "wss://ws.lnscan.org", + "https://rpc.lnscan.org", + ], + faucets: [], + nativeCurrency: { name: "Lucky", symbol: "L99", decimals: 18 }, + infoURL: "https://luckynetwork.org", + shortName: "ln", + chainId: 998, + networkId: 998, + icon: { + url: "ipfs://bafkreidmvcd5i7touug55hj45mf2pgabxamy5fziva7mtx5n664s3yap6m", + width: 205, + height: 28, + format: "png", + }, + explorers: [ + { + name: "blockscout", + url: "https://explorer.luckynetwork.org", + standard: "none", + }, + { name: "expedition", url: "https://lnscan.org", standard: "none" }, + ], + testnet: !1, + slug: "lucky-network", + }, + EKt = { + name: "Wanchain Testnet", + chain: "WAN", + rpc: [ + "https://wanchain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://gwan-ssl.wandevs.org:46891/", + ], + faucets: [], + nativeCurrency: { name: "Wancoin", symbol: "WAN", decimals: 18 }, + infoURL: "https://testnet.wanscan.org", + shortName: "twan", + chainId: 999, + networkId: 999, + testnet: !0, + slug: "wanchain-testnet", + }, + CKt = { + name: "GTON Mainnet", + chain: "GTON", + rpc: [ + "https://gton.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.gton.network/", + ], + faucets: [], + nativeCurrency: { name: "GCD", symbol: "GCD", decimals: 18 }, + infoURL: "https://gton.capital", + shortName: "gton", + chainId: 1e3, + networkId: 1e3, + explorers: [ + { + name: "GTON Network Explorer", + url: "https://explorer.gton.network", + standard: "EIP3091", + }, + ], + parent: { type: "L2", chain: "eip155-1" }, + testnet: !1, + slug: "gton", + }, + IKt = { + name: "Klaytn Testnet Baobab", + chain: "KLAY", + rpc: [ + "https://klaytn-testnet-baobab.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://api.baobab.klaytn.net:8651", + ], + faucets: ["https://baobab.wallet.klaytn.com/access?next=faucet"], + nativeCurrency: { name: "KLAY", symbol: "KLAY", decimals: 18 }, + infoURL: "https://www.klaytn.com/", + shortName: "Baobab", + chainId: 1001, + networkId: 1001, + testnet: !0, + slug: "klaytn-testnet-baobab", + }, + AKt = { + name: "T-EKTA", + title: "EKTA Testnet T-EKTA", + chain: "T-EKTA", + rpc: [ + "https://t-ekta.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://test.ekta.io:8545", + ], + faucets: [], + nativeCurrency: { name: "T-EKTA", symbol: "T-EKTA", decimals: 18 }, + infoURL: "https://www.ekta.io", + shortName: "t-ekta", + chainId: 1004, + networkId: 1004, + icon: { + url: "ipfs://QmfMd564KUPK8eKZDwGCT71ZC2jMnUZqP6LCtLpup3rHH1", + width: 2100, + height: 2100, + format: "png", + }, + explorers: [ + { + name: "test-ektascan", + url: "https://test.ektascan.io", + icon: "ekta", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "t-ekta", + }, + kKt = { + name: "Newton Testnet", + chain: "NEW", + rpc: [ + "https://newton-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc1.newchain.newtonproject.org", + ], + faucets: [], + nativeCurrency: { name: "Newton", symbol: "NEW", decimals: 18 }, + infoURL: "https://www.newtonproject.org/", + shortName: "tnew", + chainId: 1007, + networkId: 1007, + testnet: !0, + slug: "newton-testnet", + }, + SKt = { + name: "Eurus Mainnet", + chain: "EUN", + rpc: [ + "https://eurus.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://mainnet.eurus.network/", + ], + faucets: [], + nativeCurrency: { name: "Eurus", symbol: "EUN", decimals: 18 }, + infoURL: "https://eurus.network", + shortName: "eun", + chainId: 1008, + networkId: 1008, + icon: { + url: "ipfs://QmaGd5L9jGPbfyGXBFhu9gjinWJ66YtNrXq8x6Q98Eep9e", + width: 471, + height: 471, + format: "svg", + }, + explorers: [ + { + name: "eurusexplorer", + url: "https://explorer.eurus.network", + icon: "eurus", + standard: "none", + }, + ], + testnet: !1, + slug: "eurus", + }, + MKt = { + name: "Evrice Network", + chain: "EVC", + rpc: [ + "https://evrice-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://meta.evrice.com", + ], + faucets: [], + nativeCurrency: { name: "Evrice", symbol: "EVC", decimals: 18 }, + infoURL: "https://evrice.com", + shortName: "EVC", + chainId: 1010, + networkId: 1010, + slip44: 1020, + testnet: !1, + slug: "evrice-network", + }, + PKt = { + name: "Newton", + chain: "NEW", + rpc: [ + "https://newton.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://global.rpc.mainnet.newtonproject.org", + ], + faucets: [], + nativeCurrency: { name: "Newton", symbol: "NEW", decimals: 18 }, + infoURL: "https://www.newtonproject.org/", + shortName: "new", + chainId: 1012, + networkId: 1012, + testnet: !1, + slug: "newton", + }, + RKt = { + name: "Sakura", + chain: "Sakura", + rpc: [], + faucets: [], + nativeCurrency: { name: "Sakura", symbol: "SKU", decimals: 18 }, + infoURL: "https://clover.finance/sakura", + shortName: "sku", + chainId: 1022, + networkId: 1022, + testnet: !1, + slug: "sakura", + }, + BKt = { + name: "Clover Testnet", + chain: "Clover", + rpc: [], + faucets: [], + nativeCurrency: { name: "Clover", symbol: "CLV", decimals: 18 }, + infoURL: "https://clover.finance", + shortName: "tclv", + chainId: 1023, + networkId: 1023, + testnet: !0, + slug: "clover-testnet", + }, + NKt = { + name: "CLV Parachain", + chain: "CLV", + rpc: [ + "https://clv-parachain.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://api-para.clover.finance", + ], + faucets: [], + nativeCurrency: { name: "CLV", symbol: "CLV", decimals: 18 }, + infoURL: "https://clv.org", + shortName: "clv", + chainId: 1024, + networkId: 1024, + testnet: !1, + slug: "clv-parachain", + }, + OKt = { + name: "BitTorrent Chain Testnet", + chain: "BTTC", + rpc: [ + "https://bittorrent-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://testrpc.bittorrentchain.io/", + ], + faucets: [], + nativeCurrency: { name: "BitTorrent", symbol: "BTT", decimals: 18 }, + infoURL: "https://bittorrentchain.io/", + shortName: "tbtt", + chainId: 1028, + networkId: 1028, + explorers: [ + { + name: "testbttcscan", + url: "https://testscan.bittorrentchain.io", + standard: "none", + }, + ], + testnet: !0, + slug: "bittorrent-chain-testnet", + }, + LKt = { + name: "Conflux eSpace", + chain: "Conflux", + rpc: [ + "https://conflux-espace.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://evm.confluxrpc.com", + ], + faucets: [], + nativeCurrency: { name: "CFX", symbol: "CFX", decimals: 18 }, + infoURL: "https://confluxnetwork.org", + shortName: "cfx", + chainId: 1030, + networkId: 1030, + icon: { + url: "ipfs://bafkreifj7n24u2dslfijfihwqvpdeigt5aj3k3sxv6s35lv75sxsfr3ojy", + width: 460, + height: 576, + format: "png", + }, + explorers: [ + { + name: "Conflux Scan", + url: "https://evm.confluxscan.net", + standard: "none", + }, + ], + testnet: !1, + slug: "conflux-espace", + }, + DKt = { + name: "Proxy Network Testnet", + chain: "Proxy Network", + rpc: [ + "https://proxy-network-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "http://128.199.94.183:8041", + ], + faucets: [], + nativeCurrency: { name: "PRX", symbol: "PRX", decimals: 18 }, + infoURL: "https://theproxy.network", + shortName: "prx", + chainId: 1031, + networkId: 1031, + explorers: [ + { + name: "proxy network testnet", + url: "http://testnet-explorer.theproxy.network", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "proxy-network-testnet", + }, + qKt = { + name: "Bronos Testnet", + chain: "Bronos", + rpc: [ + "https://bronos-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://evm-testnet.bronos.org", + ], + faucets: ["https://faucet.bronos.org"], + nativeCurrency: { name: "tBRO", symbol: "tBRO", decimals: 18 }, + infoURL: "https://bronos.org", + shortName: "bronos-testnet", + chainId: 1038, + networkId: 1038, + icon: { + url: "ipfs://bafybeifkgtmhnq4sxu6jn22i7ass7aih6ubodr77k6ygtu4tjbvpmkw2ga", + width: 500, + height: 500, + format: "png", + }, + explorers: [ + { + name: "Bronos Testnet Explorer", + url: "https://tbroscan.bronos.org", + standard: "none", + icon: "bronos", + }, + ], + testnet: !0, + slug: "bronos-testnet", + }, + FKt = { + name: "Bronos Mainnet", + chain: "Bronos", + rpc: [], + faucets: [], + nativeCurrency: { name: "BRO", symbol: "BRO", decimals: 18 }, + infoURL: "https://bronos.org", + shortName: "bronos-mainnet", + chainId: 1039, + networkId: 1039, + icon: { + url: "ipfs://bafybeifkgtmhnq4sxu6jn22i7ass7aih6ubodr77k6ygtu4tjbvpmkw2ga", + width: 500, + height: 500, + format: "png", + }, + explorers: [ + { + name: "Bronos Explorer", + url: "https://broscan.bronos.org", + standard: "none", + icon: "bronos", + }, + ], + testnet: !1, + slug: "bronos", + }, + WKt = { + name: "Metis Andromeda Mainnet", + chain: "ETH", + rpc: [ + "https://metis-andromeda.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://andromeda.metis.io/?owner=1088", + ], + faucets: [], + nativeCurrency: { name: "Metis", symbol: "METIS", decimals: 18 }, + infoURL: "https://www.metis.io", + shortName: "metis-andromeda", + chainId: 1088, + networkId: 1088, + explorers: [ + { + name: "blockscout", + url: "https://andromeda-explorer.metis.io", + standard: "EIP3091", + }, + ], + parent: { + type: "L2", + chain: "eip155-1", + bridges: [{ url: "https://bridge.metis.io" }], + }, + testnet: !1, + slug: "metis-andromeda", + }, + UKt = { + name: "MOAC mainnet", + chain: "MOAC", + rpc: [], + faucets: [], + nativeCurrency: { name: "MOAC", symbol: "mc", decimals: 18 }, + infoURL: "https://moac.io", + shortName: "moac", + chainId: 1099, + networkId: 1099, + slip44: 314, + explorers: [ + { + name: "moac explorer", + url: "https://explorer.moac.io", + standard: "none", + }, + ], + testnet: !1, + slug: "moac", + }, + HKt = { + name: "WEMIX3.0 Mainnet", + chain: "WEMIX", + rpc: [ + "https://wemix3-0.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://api.wemix.com", + "wss://ws.wemix.com", + ], + faucets: [], + nativeCurrency: { name: "WEMIX", symbol: "WEMIX", decimals: 18 }, + infoURL: "https://wemix.com", + shortName: "wemix", + chainId: 1111, + networkId: 1111, + explorers: [ + { + name: "WEMIX Block Explorer", + url: "https://explorer.wemix.com", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "wemix3-0", + }, + zKt = { + name: "WEMIX3.0 Testnet", + chain: "TWEMIX", + rpc: [ + "https://wemix3-0-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://api.test.wemix.com", + "wss://ws.test.wemix.com", + ], + faucets: ["https://wallet.test.wemix.com/faucet"], + nativeCurrency: { + name: "TestnetWEMIX", + symbol: "tWEMIX", + decimals: 18, + }, + infoURL: "https://wemix.com", + shortName: "twemix", + chainId: 1112, + networkId: 1112, + explorers: [ + { + name: "WEMIX Testnet Microscope", + url: "https://microscope.test.wemix.com", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "wemix3-0-testnet", + }, + jKt = { + name: "Core Blockchain Testnet", + chain: "Core", + icon: { + url: "ipfs://QmeTQaBCkpbsxNNWTpoNrMsnwnAEf1wYTcn7CiiZGfUXD2", + width: 200, + height: 217, + format: "png", + }, + rpc: [ + "https://core-blockchain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.test.btcs.network/", + ], + faucets: ["https://scan.test.btcs.network/faucet"], + nativeCurrency: { + name: "Core Blockchain Testnet Native Token", + symbol: "tCORE", + decimals: 18, + }, + infoURL: "https://www.coredao.org", + shortName: "tcore", + chainId: 1115, + networkId: 1115, + explorers: [ + { + name: "Core Scan Testnet", + url: "https://scan.test.btcs.network", + icon: "core", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "core-blockchain-testnet", + }, + KKt = { + name: "Core Blockchain Mainnet", + chain: "Core", + icon: { + url: "ipfs://QmeTQaBCkpbsxNNWTpoNrMsnwnAEf1wYTcn7CiiZGfUXD2", + width: 200, + height: 217, + format: "png", + }, + rpc: [ + "https://core-blockchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.coredao.org/", + ], + faucets: [], + nativeCurrency: { + name: "Core Blockchain Native Token", + symbol: "CORE", + decimals: 18, + }, + infoURL: "https://www.coredao.org", + shortName: "core", + chainId: 1116, + networkId: 1116, + explorers: [ + { + name: "Core Scan", + url: "https://scan.coredao.org", + icon: "core", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "core-blockchain", + }, + VKt = { + name: "Dogcoin Mainnet", + chain: "DOGS", + icon: { + url: "ipfs://QmZCadkExKThak3msvszZjo6UnAbUJKE61dAcg4TixuMC3", + width: 160, + height: 171, + format: "png", + }, + rpc: [ + "https://dogcoin.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://mainnet-rpc.dogcoin.network", + ], + faucets: ["https://faucet.dogcoin.network"], + nativeCurrency: { name: "Dogcoin", symbol: "DOGS", decimals: 18 }, + infoURL: "https://dogcoin.network", + shortName: "DOGSm", + chainId: 1117, + networkId: 1117, + explorers: [ + { + name: "Dogcoin", + url: "https://explorer.dogcoin.network", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "dogcoin", + }, + GKt = { + name: "DeFiChain EVM Network Mainnet", + chain: "defichain-evm", + status: "incubating", + rpc: [], + faucets: [], + nativeCurrency: { name: "DeFiChain", symbol: "DFI", decimals: 18 }, + infoURL: "https://meta.defichain.com/", + shortName: "DFI", + chainId: 1130, + networkId: 1130, + slip44: 1130, + icon: { + url: "ipfs://QmdR3YL9F95ajwVwfxAGoEzYwm9w7JNsPSfUPjSaQogVjK", + width: 512, + height: 512, + format: "svg", + }, + explorers: [], + testnet: !1, + slug: "defichain-evm-network", + }, + YKt = { + name: "DeFiChain EVM Network Testnet", + chain: "defichain-evm-testnet", + status: "incubating", + rpc: [], + faucets: [], + nativeCurrency: { name: "DeFiChain", symbol: "DFI", decimals: 18 }, + infoURL: "https://meta.defichain.com/", + shortName: "DFI-T", + chainId: 1131, + networkId: 1131, + icon: { + url: "ipfs://QmdR3YL9F95ajwVwfxAGoEzYwm9w7JNsPSfUPjSaQogVjK", + width: 512, + height: 512, + format: "svg", + }, + explorers: [], + testnet: !0, + slug: "defichain-evm-network-testnet", + }, + $Kt = { + name: "AmStar Testnet", + chain: "AmStar", + icon: { + url: "ipfs://Qmd4TMQdnYxaUZqnVddh5S37NGH72g2kkK38ccCEgdZz1C", + width: 599, + height: 563, + format: "png", + }, + rpc: [ + "https://amstar-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://testnet-rpc.amstarscan.com", + ], + faucets: [], + nativeCurrency: { name: "SINSO", symbol: "SINSO", decimals: 18 }, + infoURL: "https://sinso.io", + shortName: "ASARt", + chainId: 1138, + networkId: 1138, + explorers: [ + { + name: "amstarscan-testnet", + url: "https://testnet.amstarscan.com", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "amstar-testnet", + }, + JKt = { + name: "MathChain", + chain: "MATH", + rpc: [ + "https://mathchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://mathchain-asia.maiziqianbao.net/rpc", + "https://mathchain-us.maiziqianbao.net/rpc", + ], + faucets: [], + nativeCurrency: { name: "MathChain", symbol: "MATH", decimals: 18 }, + infoURL: "https://mathchain.org", + shortName: "MATH", + chainId: 1139, + networkId: 1139, + testnet: !1, + slug: "mathchain", + }, + ZKt = { + name: "MathChain Testnet", + chain: "MATH", + rpc: [ + "https://mathchain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://galois-hk.maiziqianbao.net/rpc", + ], + faucets: ["https://scan.boka.network/#/Galois/faucet"], + nativeCurrency: { name: "MathChain", symbol: "MATH", decimals: 18 }, + infoURL: "https://mathchain.org", + shortName: "tMATH", + chainId: 1140, + networkId: 1140, + testnet: !0, + slug: "mathchain-testnet", + }, + QKt = { + name: "Smart Host Teknoloji TESTNET", + chain: "SHT", + rpc: [ + "https://smart-host-teknoloji-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://s2.tl.web.tr:4041", + ], + faucets: [], + nativeCurrency: { + name: "Smart Host Teknoloji TESTNET", + symbol: "tSHT", + decimals: 18, + }, + features: [{ name: "EIP155" }, { name: "EIP1559" }], + infoURL: "https://smart-host.com.tr", + shortName: "sht", + chainId: 1177, + networkId: 1177, + icon: { + url: "ipfs://QmTrLGHyQ1Le25Q7EgNSF5Qq8D2SocKvroDkLqurdBuSQQ", + width: 1655, + height: 1029, + format: "png", + }, + explorers: [ + { + name: "Smart Host Teknoloji TESTNET Explorer", + url: "https://s2.tl.web.tr:4000", + icon: "smarthost", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "smart-host-teknoloji-testnet", + }, + XKt = { + name: "Iora Chain", + chain: "IORA", + icon: { + url: "ipfs://bafybeiehps5cqdhqottu2efo4jeehwpkz5rbux3cjxd75rm6rjm4sgs2wi", + width: 250, + height: 250, + format: "png", + }, + rpc: [ + "https://iora-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://dataseed.iorachain.com", + ], + faucets: [], + nativeCurrency: { name: "Iora", symbol: "IORA", decimals: 18 }, + infoURL: "https://iorachain.com", + shortName: "iora", + chainId: 1197, + networkId: 1197, + explorers: [ + { + name: "ioraexplorer", + url: "https://explorer.iorachain.com", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "iora-chain", + }, + eVt = { + name: "Evanesco Testnet", + chain: "Evanesco Testnet", + rpc: [ + "https://evanesco-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://seed5.evanesco.org:8547", + ], + faucets: [], + nativeCurrency: { name: "AVIS", symbol: "AVIS", decimals: 18 }, + infoURL: "https://evanesco.org/", + shortName: "avis", + chainId: 1201, + networkId: 1201, + testnet: !0, + slug: "evanesco-testnet", + }, + tVt = { + name: "World Trade Technical Chain Mainnet", + chain: "WTT", + rpc: [ + "https://world-trade-technical-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.cadaut.com", + "wss://rpc.cadaut.com/ws", + ], + faucets: [], + nativeCurrency: { + name: "World Trade Token", + symbol: "WTT", + decimals: 18, + }, + infoURL: "http://www.cadaut.com", + shortName: "wtt", + chainId: 1202, + networkId: 2048, + explorers: [ + { + name: "WTTScout", + url: "https://explorer.cadaut.com", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "world-trade-technical-chain", + }, + rVt = { + name: "Popcateum Mainnet", + chain: "POPCATEUM", + rpc: [ + "https://popcateum.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://dataseed.popcateum.org", + ], + faucets: [], + nativeCurrency: { name: "Popcat", symbol: "POP", decimals: 18 }, + infoURL: "https://popcateum.org", + shortName: "popcat", + chainId: 1213, + networkId: 1213, + explorers: [ + { + name: "popcateum explorer", + url: "https://explorer.popcateum.org", + standard: "none", + }, + ], + testnet: !1, + slug: "popcateum", + }, + nVt = { + name: "EnterChain Mainnet", + chain: "ENTER", + rpc: [ + "https://enterchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://tapi.entercoin.net/", + ], + faucets: [], + nativeCurrency: { name: "EnterCoin", symbol: "ENTER", decimals: 18 }, + infoURL: "https://entercoin.net", + shortName: "enter", + chainId: 1214, + networkId: 1214, + icon: { + url: "ipfs://Qmb2UYVc1MjLPi8vhszWRxqBJYoYkWQVxDJRSmtrgk6j2E", + width: 64, + height: 64, + format: "png", + }, + explorers: [ + { + name: "Enter Explorer - Expenter", + url: "https://explorer.entercoin.net", + icon: "enter", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "enterchain", + }, + aVt = { + name: "Exzo Network Mainnet", + chain: "EXZO", + icon: { + url: "ipfs://QmeYpc2JfEsHa2Bh11SKRx3sgDtMeg6T8KpXNLepBEKnbJ", + width: 128, + height: 128, + format: "png", + }, + rpc: [ + "https://exzo-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://mainnet.exzo.technology", + ], + faucets: [], + nativeCurrency: { name: "Exzo", symbol: "XZO", decimals: 18 }, + infoURL: "https://exzo.network", + shortName: "xzo", + chainId: 1229, + networkId: 1229, + explorers: [ + { + name: "blockscout", + url: "https://exzoscan.io", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "exzo-network", + }, + iVt = { + name: "Ultron Testnet", + chain: "Ultron", + icon: { + url: "ipfs://QmS4W4kY7XYBA4f52vuuytXh3YaTcNBXF14V9tEY6SNqhz", + width: 512, + height: 512, + format: "png", + }, + rpc: [ + "https://ultron-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://ultron-dev.io", + ], + faucets: [], + nativeCurrency: { name: "Ultron", symbol: "ULX", decimals: 18 }, + infoURL: "https://ultron.foundation", + shortName: "UltronTestnet", + chainId: 1230, + networkId: 1230, + explorers: [ + { + name: "Ultron Testnet Explorer", + url: "https://explorer.ultron-dev.io", + icon: "ultron", + standard: "none", + }, + ], + testnet: !0, + slug: "ultron-testnet", + }, + sVt = { + name: "Ultron Mainnet", + chain: "Ultron", + icon: { + url: "ipfs://QmS4W4kY7XYBA4f52vuuytXh3YaTcNBXF14V9tEY6SNqhz", + width: 512, + height: 512, + format: "png", + }, + rpc: [ + "https://ultron.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://ultron-rpc.net", + ], + faucets: [], + nativeCurrency: { name: "Ultron", symbol: "ULX", decimals: 18 }, + infoURL: "https://ultron.foundation", + shortName: "UtronMainnet", + chainId: 1231, + networkId: 1231, + explorers: [ + { + name: "Ultron Explorer", + url: "https://ulxscan.com", + icon: "ultron", + standard: "none", + }, + ], + testnet: !1, + slug: "ultron", + }, + oVt = { + name: "Step Network", + title: "Step Main Network", + chain: "STEP", + icon: { + url: "ipfs://QmVp9jyb3UFW71867yVtymmiRw7dPY4BTnsp3hEjr9tn8L", + width: 512, + height: 512, + format: "png", + }, + rpc: [ + "https://step-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.step.network", + ], + faucets: [], + nativeCurrency: { name: "FITFI", symbol: "FITFI", decimals: 18 }, + infoURL: "https://step.network", + shortName: "step", + chainId: 1234, + networkId: 1234, + explorers: [ + { + name: "StepScan", + url: "https://stepscan.io", + icon: "step", + standard: "EIP3091", + }, + ], + parent: { + type: "L2", + chain: "eip155-43114", + bridges: [{ url: "https://bridge.step.network" }], + }, + testnet: !1, + slug: "step-network", + }, + cVt = { + name: "OM Platform Mainnet", + chain: "omplatform", + rpc: [ + "https://om-platform.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc-cnx.omplatform.com/", + ], + faucets: [], + nativeCurrency: { name: "OMCOIN", symbol: "OM", decimals: 18 }, + infoURL: "https://omplatform.com/", + shortName: "om", + chainId: 1246, + networkId: 1246, + explorers: [ + { + name: "OMSCAN - Expenter", + url: "https://omscan.omplatform.com", + standard: "none", + }, + ], + testnet: !1, + slug: "om-platform", + }, + uVt = { + name: "CIC Chain Testnet", + chain: "CICT", + rpc: [ + "https://cic-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://testapi.cicscan.com", + ], + faucets: ["https://cicfaucet.com"], + nativeCurrency: { + name: "Crazy Internet Coin", + symbol: "CICT", + decimals: 18, + }, + infoURL: "https://www.cicchain.net", + shortName: "CICT", + chainId: 1252, + networkId: 1252, + icon: { + url: "ipfs://QmNekc5gpyrQkeDQcmfJLBrP5fa6GMarB13iy6aHVdQJDU", + width: 1024, + height: 768, + format: "png", + }, + explorers: [ + { + name: "CICscan", + url: "https://testnet.cicscan.com", + icon: "cicchain", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "cic-chain-testnet", + }, + lVt = { + name: "HALO Mainnet", + chain: "HALO", + rpc: [ + "https://halo.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://nodes.halo.land", + ], + faucets: [], + nativeCurrency: { name: "HALO", symbol: "HO", decimals: 18 }, + infoURL: "https://halo.land/#/", + shortName: "HO", + chainId: 1280, + networkId: 1280, + explorers: [ + { + name: "HALOexplorer", + url: "https://browser.halo.land", + standard: "none", + }, + ], + testnet: !1, + slug: "halo", + }, + dVt = { + name: "Moonbeam", + chain: "MOON", + rpc: [ + "https://moonbeam.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.api.moonbeam.network", + "wss://wss.api.moonbeam.network", + ], + faucets: [], + nativeCurrency: { name: "Glimmer", symbol: "GLMR", decimals: 18 }, + infoURL: "https://moonbeam.network/networks/moonbeam/", + shortName: "mbeam", + chainId: 1284, + networkId: 1284, + explorers: [ + { + name: "moonscan", + url: "https://moonbeam.moonscan.io", + standard: "none", + }, + ], + testnet: !1, + slug: "moonbeam", + }, + pVt = { + name: "Moonriver", + chain: "MOON", + rpc: [ + "https://moonriver.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.api.moonriver.moonbeam.network", + "wss://wss.api.moonriver.moonbeam.network", + ], + faucets: [], + nativeCurrency: { name: "Moonriver", symbol: "MOVR", decimals: 18 }, + infoURL: "https://moonbeam.network/networks/moonriver/", + shortName: "mriver", + chainId: 1285, + networkId: 1285, + explorers: [ + { + name: "moonscan", + url: "https://moonriver.moonscan.io", + standard: "none", + }, + ], + testnet: !1, + slug: "moonriver", + }, + hVt = { + name: "Moonbase Alpha", + chain: "MOON", + rpc: [ + "https://moonbase-alpha.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.api.moonbase.moonbeam.network", + "wss://wss.api.moonbase.moonbeam.network", + ], + faucets: [], + nativeCurrency: { name: "Dev", symbol: "DEV", decimals: 18 }, + infoURL: "https://docs.moonbeam.network/networks/testnet/", + shortName: "mbase", + chainId: 1287, + networkId: 1287, + explorers: [ + { + name: "moonscan", + url: "https://moonbase.moonscan.io", + standard: "none", + }, + ], + testnet: !0, + slug: "moonbase-alpha", + }, + fVt = { + name: "Moonrock", + chain: "MOON", + rpc: [ + "https://moonrock.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.api.moonrock.moonbeam.network", + "wss://wss.api.moonrock.moonbeam.network", + ], + faucets: [], + nativeCurrency: { name: "Rocs", symbol: "ROC", decimals: 18 }, + infoURL: + "https://docs.moonbeam.network/learn/platform/networks/overview/", + shortName: "mrock", + chainId: 1288, + networkId: 1288, + testnet: !1, + slug: "moonrock", + }, + mVt = { + name: "Bobabeam", + chain: "Bobabeam", + rpc: [ + "https://bobabeam.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://bobabeam.boba.network", + "wss://wss.bobabeam.boba.network", + "https://replica.bobabeam.boba.network", + "wss://replica-wss.bobabeam.boba.network", + ], + faucets: [], + nativeCurrency: { name: "Boba Token", symbol: "BOBA", decimals: 18 }, + infoURL: "https://boba.network", + shortName: "Bobabeam", + chainId: 1294, + networkId: 1294, + explorers: [ + { + name: "Bobabeam block explorer", + url: "https://blockexplorer.bobabeam.boba.network", + standard: "none", + }, + ], + testnet: !1, + slug: "bobabeam", + }, + yVt = { + name: "Bobabase Testnet", + chain: "Bobabase Testnet", + rpc: [ + "https://bobabase-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://bobabase.boba.network", + "wss://wss.bobabase.boba.network", + "https://replica.bobabase.boba.network", + "wss://replica-wss.bobabase.boba.network", + ], + faucets: [], + nativeCurrency: { name: "Boba Token", symbol: "BOBA", decimals: 18 }, + infoURL: "https://boba.network", + shortName: "Bobabase", + chainId: 1297, + networkId: 1297, + explorers: [ + { + name: "Bobabase block explorer", + url: "https://blockexplorer.bobabase.boba.network", + standard: "none", + }, + ], + testnet: !0, + slug: "bobabase-testnet", + }, + gVt = { + name: "Dos Fuji Subnet", + chain: "DOS", + rpc: [ + "https://dos-fuji-subnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://test.doschain.com/jsonrpc", + ], + faucets: [], + nativeCurrency: { + name: "Dos Native Token", + symbol: "DOS", + decimals: 18, + }, + infoURL: "http://doschain.io/", + shortName: "DOS", + chainId: 1311, + networkId: 1311, + explorers: [ + { + name: "dos-testnet", + url: "https://test.doscan.io", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "dos-fuji-subnet", + }, + bVt = { + name: "Alyx Mainnet", + chain: "ALYX", + rpc: [ + "https://alyx.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.alyxchain.com", + ], + faucets: [], + nativeCurrency: { + name: "Alyx Chain Native Token", + symbol: "ALYX", + decimals: 18, + }, + infoURL: "https://www.alyxchain.com", + shortName: "alyx", + chainId: 1314, + networkId: 1314, + explorers: [ + { + name: "alyxscan", + url: "https://www.alyxscan.com", + standard: "EIP3091", + }, + ], + icon: { + url: "ipfs://bafkreifd43fcvh77mdcwjrpzpnlhthounc6b4u645kukqpqhduaveatf6i", + width: 2481, + height: 2481, + format: "png", + }, + testnet: !1, + slug: "alyx", + }, + vVt = { + name: "Aitd Mainnet", + chain: "AITD", + icon: { + url: "ipfs://QmXbBMMhjTTGAGjmqMpJm3ufFrtdkfEXCFyXYgz7nnZzsy", + width: 160, + height: 160, + format: "png", + }, + rpc: [ + "https://aitd.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://walletrpc.aitd.io", + "https://node.aitd.io", + ], + faucets: [], + nativeCurrency: { name: "AITD Mainnet", symbol: "AITD", decimals: 18 }, + infoURL: "https://www.aitd.io/", + shortName: "aitd", + chainId: 1319, + networkId: 1319, + explorers: [ + { + name: "AITD Chain Explorer Mainnet", + url: "https://aitd-explorer-new.aitd.io", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "aitd", + }, + wVt = { + name: "Aitd Testnet", + chain: "AITD", + icon: { + url: "ipfs://QmXbBMMhjTTGAGjmqMpJm3ufFrtdkfEXCFyXYgz7nnZzsy", + width: 160, + height: 160, + format: "png", + }, + rpc: [ + "https://aitd-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "http://http-testnet.aitd.io", + ], + faucets: ["https://aitd-faucet-pre.aitdcoin.com/"], + nativeCurrency: { name: "AITD Testnet", symbol: "AITD", decimals: 18 }, + infoURL: "https://www.aitd.io/", + shortName: "aitdtestnet", + chainId: 1320, + networkId: 1320, + explorers: [ + { + name: "AITD Chain Explorer Testnet", + url: "https://block-explorer-testnet.aitd.io", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "aitd-testnet", + }, + _Vt = { + name: "Elysium Testnet", + title: + "An L1, carbon-neutral, tree-planting, metaverse dedicated blockchain created by VulcanForged", + chain: "Elysium", + rpc: [ + "https://elysium-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://elysium-test-rpc.vulcanforged.com", + ], + faucets: [], + nativeCurrency: { name: "LAVA", symbol: "LAVA", decimals: 18 }, + infoURL: "https://elysiumscan.vulcanforged.com", + shortName: "ELST", + chainId: 1338, + networkId: 1338, + explorers: [ + { + name: "Elysium testnet explorer", + url: "https://elysium-explorer.vulcanforged.com", + standard: "none", + }, + ], + testnet: !0, + slug: "elysium-testnet", + }, + xVt = { + name: "Elysium Mainnet", + title: + "An L1, carbon-neutral, tree-planting, metaverse dedicated blockchain created by VulcanForged", + chain: "Elysium", + rpc: [ + "https://elysium.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://elysium-rpc.vulcanforged.com", + ], + faucets: [], + nativeCurrency: { name: "LAVA", symbol: "LAVA", decimals: 18 }, + infoURL: "https://elysiumscan.vulcanforged.com", + shortName: "ELSM", + chainId: 1339, + networkId: 1339, + explorers: [ + { + name: "Elysium mainnet explorer", + url: "https://explorer.elysiumchain.tech", + standard: "none", + }, + ], + testnet: !1, + slug: "elysium", + }, + TVt = { + name: "CIC Chain Mainnet", + chain: "CIC", + rpc: [ + "https://cic-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://xapi.cicscan.com", + ], + faucets: [], + nativeCurrency: { + name: "Crazy Internet Coin", + symbol: "CIC", + decimals: 18, + }, + infoURL: "https://www.cicchain.net", + shortName: "CIC", + chainId: 1353, + networkId: 1353, + icon: { + url: "ipfs://QmNekc5gpyrQkeDQcmfJLBrP5fa6GMarB13iy6aHVdQJDU", + width: 1024, + height: 768, + format: "png", + }, + explorers: [ + { + name: "CICscan", + url: "https://cicscan.com", + icon: "cicchain", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "cic-chain", + }, + EVt = { + name: "AmStar Mainnet", + chain: "AmStar", + icon: { + url: "ipfs://Qmd4TMQdnYxaUZqnVddh5S37NGH72g2kkK38ccCEgdZz1C", + width: 599, + height: 563, + format: "png", + }, + rpc: [ + "https://amstar.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://mainnet-rpc.amstarscan.com", + ], + faucets: [], + nativeCurrency: { name: "SINSO", symbol: "SINSO", decimals: 18 }, + infoURL: "https://sinso.io", + shortName: "ASAR", + chainId: 1388, + networkId: 1388, + explorers: [ + { + name: "amstarscan", + url: "https://mainnet.amstarscan.com", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "amstar", + }, + CVt = { + name: "Polygon zkEVM Testnet", + title: "Polygon zkEVM Testnet", + chain: "Polygon", + rpc: [ + "https://polygon-zkevm-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.public.zkevm-test.net", + ], + faucets: [], + nativeCurrency: { name: "Ether", symbol: "ETH", decimals: 18 }, + infoURL: "https://polygon.technology/solutions/polygon-zkevm/", + shortName: "testnet-zkEVM-mango", + chainId: 1422, + networkId: 1422, + explorers: [ + { + name: "Polygon zkEVM explorer", + url: "https://explorer.public.zkevm-test.net", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "polygon-zkevm-testnet", + }, + IVt = { + name: "Ctex Scan Blockchain", + chain: "Ctex Scan Blockchain", + icon: { + url: "ipfs://bafkreid5evn4qovxo6msuekizv5zn7va62tea7w2zpdx5sskconebuhqle", + width: 800, + height: 800, + format: "png", + }, + rpc: [ + "https://ctex-scan-blockchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://mainnet-rpc.ctexscan.com/", + ], + faucets: ["https://faucet.ctexscan.com"], + nativeCurrency: { name: "CTEX", symbol: "CTEX", decimals: 18 }, + infoURL: "https://ctextoken.io", + shortName: "CTEX", + chainId: 1455, + networkId: 1455, + explorers: [ + { + name: "Ctex Scan Explorer", + url: "https://ctexscan.com", + standard: "none", + }, + ], + testnet: !1, + slug: "ctex-scan-blockchain", + }, + AVt = { + name: "Sherpax Mainnet", + chain: "Sherpax Mainnet", + rpc: [ + "https://sherpax.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://mainnet.sherpax.io/rpc", + ], + faucets: [], + nativeCurrency: { name: "KSX", symbol: "KSX", decimals: 18 }, + infoURL: "https://sherpax.io/", + shortName: "Sherpax", + chainId: 1506, + networkId: 1506, + explorers: [ + { + name: "Sherpax Mainnet Explorer", + url: "https://evm.sherpax.io", + standard: "none", + }, + ], + testnet: !1, + slug: "sherpax", + }, + kVt = { + name: "Sherpax Testnet", + chain: "Sherpax Testnet", + rpc: [ + "https://sherpax-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://sherpax-testnet.chainx.org/rpc", + ], + faucets: [], + nativeCurrency: { name: "KSX", symbol: "KSX", decimals: 18 }, + infoURL: "https://sherpax.io/", + shortName: "SherpaxTestnet", + chainId: 1507, + networkId: 1507, + explorers: [ + { + name: "Sherpax Testnet Explorer", + url: "https://evm-pre.sherpax.io", + standard: "none", + }, + ], + testnet: !0, + slug: "sherpax-testnet", + }, + SVt = { + name: "Beagle Messaging Chain", + chain: "BMC", + rpc: [ + "https://beagle-messaging-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://beagle.chat/eth", + ], + faucets: ["https://faucet.beagle.chat/"], + nativeCurrency: { name: "Beagle", symbol: "BG", decimals: 18 }, + infoURL: "https://beagle.chat/", + shortName: "beagle", + chainId: 1515, + networkId: 1515, + explorers: [ + { + name: "Beagle Messaging Chain Explorer", + url: "https://eth.beagle.chat", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "beagle-messaging-chain", + }, + MVt = { + name: "Catecoin Chain Mainnet", + chain: "Catechain", + rpc: [ + "https://catecoin-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://send.catechain.com", + ], + faucets: [], + nativeCurrency: { name: "Catecoin", symbol: "CATE", decimals: 18 }, + infoURL: "https://catechain.com", + shortName: "cate", + chainId: 1618, + networkId: 1618, + testnet: !1, + slug: "catecoin-chain", + }, + PVt = { + name: "Atheios", + chain: "ATH", + rpc: [ + "https://atheios.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://wallet.atheios.com:8797", + ], + faucets: [], + nativeCurrency: { name: "Atheios Ether", symbol: "ATH", decimals: 18 }, + infoURL: "https://atheios.com", + shortName: "ath", + chainId: 1620, + networkId: 11235813, + slip44: 1620, + testnet: !1, + slug: "atheios", + }, + RVt = { + name: "Btachain", + chain: "btachain", + rpc: [ + "https://btachain.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://dataseed1.btachain.com/", + ], + faucets: [], + nativeCurrency: { name: "Bitcoin Asset", symbol: "BTA", decimals: 18 }, + infoURL: "https://bitcoinasset.io/", + shortName: "bta", + chainId: 1657, + networkId: 1657, + testnet: !1, + slug: "btachain", + }, + BVt = { + name: "LUDAN Mainnet", + chain: "LUDAN", + rpc: [ + "https://ludan.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.ludan.org/", + ], + faucets: [], + nativeCurrency: { name: "LUDAN", symbol: "LUDAN", decimals: 18 }, + infoURL: "https://www.ludan.org/", + shortName: "LUDAN", + icon: { + url: "ipfs://bafkreigzeanzqgxrzzep45t776ovbwi242poqxbryuu2go5eedeuwwcsay", + width: 512, + height: 512, + format: "png", + }, + chainId: 1688, + networkId: 1688, + testnet: !1, + slug: "ludan", + }, + NVt = { + name: "Anytype EVM Chain", + chain: "ETH", + icon: { + url: "ipfs://QmaARJiAQUn4Z6wG8GLEry3kTeBB3k6RfHzSZU9SPhBgcG", + width: 200, + height: 200, + format: "png", + }, + rpc: [ + "https://anytype-evm-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://geth.anytype.io", + ], + faucets: ["https://evm.anytype.io/faucet"], + nativeCurrency: { name: "ANY", symbol: "ANY", decimals: 18 }, + infoURL: "https://evm.anytype.io", + shortName: "AnytypeChain", + chainId: 1701, + networkId: 1701, + explorers: [ + { + name: "Anytype Explorer", + url: "https://explorer.anytype.io", + icon: "any", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "anytype-evm-chain", + }, + OVt = { + name: "TBSI Mainnet", + title: "Thai Blockchain Service Infrastructure Mainnet", + chain: "TBSI", + rpc: [ + "https://tbsi.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.blockchain.or.th", + ], + faucets: [], + nativeCurrency: { name: "Jinda", symbol: "JINDA", decimals: 18 }, + infoURL: "https://blockchain.or.th", + shortName: "TBSI", + chainId: 1707, + networkId: 1707, + testnet: !1, + slug: "tbsi", + }, + LVt = { + name: "TBSI Testnet", + title: "Thai Blockchain Service Infrastructure Testnet", + chain: "TBSI", + rpc: [ + "https://tbsi-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.testnet.blockchain.or.th", + ], + faucets: ["https://faucet.blockchain.or.th"], + nativeCurrency: { name: "Jinda", symbol: "JINDA", decimals: 18 }, + infoURL: "https://blockchain.or.th", + shortName: "tTBSI", + chainId: 1708, + networkId: 1708, + testnet: !0, + slug: "tbsi-testnet", + }, + DVt = { + name: "Kerleano", + title: "Proof of Carbon Reduction testnet", + chain: "CRC", + status: "active", + rpc: [ + "https://kerleano.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://cacib-saturn-test.francecentral.cloudapp.azure.com", + "wss://cacib-saturn-test.francecentral.cloudapp.azure.com:9443", + ], + faucets: [ + "https://github.com/ethereum-pocr/kerleano/blob/main/docs/faucet.md", + ], + nativeCurrency: { + name: "Carbon Reduction Coin", + symbol: "CRC", + decimals: 18, + }, + infoURL: "https://github.com/ethereum-pocr/kerleano", + shortName: "kerleano", + chainId: 1804, + networkId: 1804, + explorers: [ + { + name: "Lite Explorer", + url: "https://ethereum-pocr.github.io/explorer/kerleano", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "kerleano", + }, + qVt = { + name: "Rabbit Analog Testnet Chain", + chain: "rAna", + icon: { + url: "ipfs://QmdfbjjF3ZzN2jTkH9REgrA8jDS6A6c21n7rbWSVbSnvQc", + width: 310, + height: 251, + format: "svg", + }, + rpc: [ + "https://rabbit-analog-testnet-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rabbit.analog-rpc.com", + ], + faucets: ["https://analogfaucet.com"], + nativeCurrency: { + name: "Rabbit Analog Test Chain Native Token ", + symbol: "rAna", + decimals: 18, + }, + infoURL: "https://rabbit.analogscan.com", + shortName: "rAna", + chainId: 1807, + networkId: 1807, + explorers: [ + { + name: "blockscout", + url: "https://rabbit.analogscan.com", + standard: "none", + }, + ], + testnet: !0, + slug: "rabbit-analog-testnet-chain", + }, + FVt = { + name: "Cube Chain Mainnet", + chain: "Cube", + icon: { + url: "ipfs://QmbENgHTymTUUArX5MZ2XXH69WGenirU3oamkRD448hYdz", + width: 282, + height: 250, + format: "png", + }, + rpc: [ + "https://cube-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://http-mainnet.cube.network", + "wss://ws-mainnet.cube.network", + "https://http-mainnet-sg.cube.network", + "wss://ws-mainnet-sg.cube.network", + "https://http-mainnet-us.cube.network", + "wss://ws-mainnet-us.cube.network", + ], + faucets: [], + nativeCurrency: { + name: "Cube Chain Native Token", + symbol: "CUBE", + decimals: 18, + }, + infoURL: "https://www.cube.network", + shortName: "cube", + chainId: 1818, + networkId: 1818, + slip44: 1818, + explorers: [ + { + name: "cube-scan", + url: "https://cubescan.network", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "cube-chain", + }, + WVt = { + name: "Cube Chain Testnet", + chain: "Cube", + icon: { + url: "ipfs://QmbENgHTymTUUArX5MZ2XXH69WGenirU3oamkRD448hYdz", + width: 282, + height: 250, + format: "png", + }, + rpc: [ + "https://cube-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://http-testnet.cube.network", + "wss://ws-testnet.cube.network", + "https://http-testnet-sg.cube.network", + "wss://ws-testnet-sg.cube.network", + "https://http-testnet-jp.cube.network", + "wss://ws-testnet-jp.cube.network", + "https://http-testnet-us.cube.network", + "wss://ws-testnet-us.cube.network", + ], + faucets: ["https://faucet.cube.network"], + nativeCurrency: { + name: "Cube Chain Test Native Token", + symbol: "CUBET", + decimals: 18, + }, + infoURL: "https://www.cube.network", + shortName: "cubet", + chainId: 1819, + networkId: 1819, + slip44: 1819, + explorers: [ + { + name: "cubetest-scan", + url: "https://testnet.cubescan.network", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "cube-chain-testnet", + }, + UVt = { + name: "Teslafunds", + chain: "TSF", + rpc: [ + "https://teslafunds.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://tsfapi.europool.me", + ], + faucets: [], + nativeCurrency: { + name: "Teslafunds Ether", + symbol: "TSF", + decimals: 18, + }, + infoURL: "https://teslafunds.io", + shortName: "tsf", + chainId: 1856, + networkId: 1, + testnet: !1, + slug: "teslafunds", + }, + HVt = { + name: "Gitshock Cartenz Testnet", + chain: "Gitshock Cartenz", + icon: { + url: "ipfs://bafkreifqpj5jkjazvh24muc7wv4r22tihzzl75cevgecxhvojm4ls6mzpq", + width: 512, + height: 512, + format: "png", + }, + rpc: [ + "https://gitshock-cartenz-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.cartenz.works", + ], + features: [{ name: "EIP155" }, { name: "EIP1559" }], + faucets: [], + nativeCurrency: { + name: "Gitshock Cartenz", + symbol: "tGTFX", + decimals: 18, + }, + infoURL: "https://gitshock.com", + shortName: "gitshockchain", + chainId: 1881, + networkId: 1881, + explorers: [ + { + name: "blockscout", + url: "https://scan.cartenz.works", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "gitshock-cartenz-testnet", + }, + zVt = { + name: "BON Network", + chain: "BON", + rpc: [ + "https://bon-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "http://rpc.boyanet.org:8545", + "ws://rpc.boyanet.org:8546", + ], + faucets: [], + nativeCurrency: { name: "BOYACoin", symbol: "BOY", decimals: 18 }, + infoURL: "https://boyanet.org", + shortName: "boya", + chainId: 1898, + networkId: 1, + explorers: [ + { + name: "explorer", + url: "https://explorer.boyanet.org:4001", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "bon-network", + }, + jVt = { + name: "ONUS Chain Testnet", + title: "ONUS Chain Testnet", + chain: "onus", + rpc: [ + "https://onus-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc-testnet.onuschain.io", + ], + faucets: [], + nativeCurrency: { name: "ONUS", symbol: "ONUS", decimals: 18 }, + infoURL: "https://onuschain.io", + shortName: "onus-testnet", + chainId: 1945, + networkId: 1945, + explorers: [ + { + name: "Onus explorer testnet", + url: "https://explorer-testnet.onuschain.io", + icon: "onus", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "onus-chain-testnet", + }, + KVt = { + name: "D-Chain Mainnet", + chain: "D-Chain", + rpc: [ + "https://d-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://mainnet.d-chain.network/ext/bc/2ZiR1Bro5E59siVuwdNuRFzqL95NkvkbzyLBdrsYR9BLSHV7H4/rpc", + ], + nativeCurrency: { name: "DOINX", symbol: "DOINX", decimals: 18 }, + shortName: "dchain-mainnet", + chainId: 1951, + networkId: 1951, + icon: { + url: "ipfs://QmV2vhTqS9UyrX9Q6BSCbK4JrKBnS8ErHvstMjfb2oVWaj", + width: 700, + height: 495, + format: "png", + }, + faucets: [], + infoURL: "", + testnet: !1, + slug: "d-chain", + }, + VVt = { + name: "Atelier", + title: "Atelier Test Network", + chain: "ALTR", + rpc: [ + "https://atelier.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://1971.network/atlr", + "wss://1971.network/atlr", + ], + faucets: [], + nativeCurrency: { name: "ATLR", symbol: "ATLR", decimals: 18 }, + infoURL: "https://1971.network/", + shortName: "atlr", + chainId: 1971, + networkId: 1971, + icon: { + url: "ipfs://bafkreigcquvoalec3ll2m26v4wsx5enlxwyn6nk2mgfqwncyqrgwivla5u", + width: 200, + height: 200, + format: "png", + }, + testnet: !0, + slug: "atelier", + }, + GVt = { + name: "ONUS Chain Mainnet", + title: "ONUS Chain Mainnet", + chain: "onus", + rpc: [ + "https://onus-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.onuschain.io", + "wss://ws.onuschain.io", + ], + faucets: [], + nativeCurrency: { name: "ONUS", symbol: "ONUS", decimals: 18 }, + infoURL: "https://onuschain.io", + shortName: "onus-mainnet", + chainId: 1975, + networkId: 1975, + explorers: [ + { + name: "Onus explorer mainnet", + url: "https://explorer.onuschain.io", + icon: "onus", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "onus-chain", + }, + YVt = { + name: "Eurus Testnet", + chain: "EUN", + rpc: [ + "https://eurus-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://testnet.eurus.network", + ], + faucets: [], + nativeCurrency: { name: "Eurus", symbol: "EUN", decimals: 18 }, + infoURL: "https://eurus.network", + shortName: "euntest", + chainId: 1984, + networkId: 1984, + icon: { + url: "ipfs://QmaGd5L9jGPbfyGXBFhu9gjinWJ66YtNrXq8x6Q98Eep9e", + width: 471, + height: 471, + format: "svg", + }, + explorers: [ + { + name: "testnetexplorer", + url: "https://testnetexplorer.eurus.network", + icon: "eurus", + standard: "none", + }, + ], + testnet: !0, + slug: "eurus-testnet", + }, + $Vt = { + name: "EtherGem", + chain: "EGEM", + rpc: [ + "https://ethergem.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://jsonrpc.egem.io/custom", + ], + faucets: [], + nativeCurrency: { + name: "EtherGem Ether", + symbol: "EGEM", + decimals: 18, + }, + infoURL: "https://egem.io", + shortName: "egem", + chainId: 1987, + networkId: 1987, + slip44: 1987, + testnet: !1, + slug: "ethergem", + }, + JVt = { + name: "Ekta", + chain: "EKTA", + rpc: [ + "https://ekta.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://main.ekta.io", + ], + faucets: [], + nativeCurrency: { name: "EKTA", symbol: "EKTA", decimals: 18 }, + infoURL: "https://www.ekta.io", + shortName: "ekta", + chainId: 1994, + networkId: 1994, + icon: { + url: "ipfs://QmfMd564KUPK8eKZDwGCT71ZC2jMnUZqP6LCtLpup3rHH1", + width: 2100, + height: 2100, + format: "png", + }, + explorers: [ + { + name: "ektascan", + url: "https://ektascan.io", + icon: "ekta", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "ekta", + }, + ZVt = { + name: "edeXa Testnet", + chain: "edeXa TestNetwork", + rpc: [ + "https://edexa-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://testnet.edexa.com/rpc", + ], + faucets: ["https://faucet.edexa.com/"], + nativeCurrency: { name: "EDEXA", symbol: "EDX", decimals: 18 }, + infoURL: "https://edexa.com/", + shortName: "edx", + chainId: 1995, + networkId: 1995, + icon: { + url: "ipfs://QmSgvmLpRsCiu2ySqyceA5xN4nwi7URJRNEZLffwEKXdoR", + width: 1028, + height: 1042, + format: "png", + }, + explorers: [ + { + name: "edexa-testnet", + url: "https://explorer.edexa.com", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "edexa-testnet", + }, + QVt = { + name: "Dogechain Mainnet", + chain: "DC", + icon: { + url: "ipfs://QmNS6B6L8FfgGSMTEi2SxD3bK5cdmKPNtQKcYaJeRWrkHs", + width: 732, + height: 732, + format: "png", + }, + rpc: [ + "https://dogechain.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.dogechain.dog", + "https://rpc-us.dogechain.dog", + "https://rpc01.dogechain.dog", + ], + faucets: [], + nativeCurrency: { name: "Dogecoin", symbol: "DOGE", decimals: 18 }, + infoURL: "https://dogechain.dog", + shortName: "dc", + chainId: 2e3, + networkId: 2e3, + explorers: [ + { + name: "dogechain explorer", + url: "https://explorer.dogechain.dog", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "dogechain", + }, + XVt = { + name: "Milkomeda C1 Mainnet", + chain: "milkAda", + icon: { + url: "ipfs://QmdoUtvHDybu5ppYBZT8BMRp6AqByVSoQs8nFwKbaS55jd", + width: 367, + height: 367, + format: "svg", + }, + rpc: [ + "https://milkomeda-c1.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc-mainnet-cardano-evm.c1.milkomeda.com", + "wss://rpc-mainnet-cardano-evm.c1.milkomeda.com", + ], + faucets: [], + nativeCurrency: { name: "milkAda", symbol: "mADA", decimals: 18 }, + infoURL: "https://milkomeda.com", + shortName: "milkAda", + chainId: 2001, + networkId: 2001, + explorers: [ + { + name: "Blockscout", + url: "https://explorer-mainnet-cardano-evm.c1.milkomeda.com", + standard: "none", + }, + ], + testnet: !1, + slug: "milkomeda-c1", + }, + eGt = { + name: "Milkomeda A1 Mainnet", + chain: "milkALGO", + icon: { + url: "ipfs://QmdoUtvHDybu5ppYBZT8BMRp6AqByVSoQs8nFwKbaS55jd", + width: 367, + height: 367, + format: "svg", + }, + rpc: [ + "https://milkomeda-a1.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc-mainnet-algorand-rollup.a1.milkomeda.com", + "wss://rpc-mainnet-algorand-rollup.a1.milkomeda.com/ws", + ], + faucets: [], + nativeCurrency: { name: "milkALGO", symbol: "mALGO", decimals: 18 }, + infoURL: "https://milkomeda.com", + shortName: "milkALGO", + chainId: 2002, + networkId: 2002, + explorers: [ + { + name: "Blockscout", + url: "https://explorer-mainnet-algorand-rollup.a1.milkomeda.com", + standard: "none", + }, + ], + testnet: !1, + slug: "milkomeda-a1", + }, + tGt = { + name: "CloudWalk Testnet", + chain: "CloudWalk Testnet", + rpc: [], + faucets: [], + nativeCurrency: { + name: "CloudWalk Native Token", + symbol: "CWN", + decimals: 18, + }, + infoURL: "https://cloudwalk.io", + shortName: "cloudwalk_testnet", + chainId: 2008, + networkId: 2008, + explorers: [ + { + name: "CloudWalk Testnet Explorer", + url: "https://explorer.testnet.cloudwalk.io", + standard: "none", + }, + ], + testnet: !0, + slug: "cloudwalk-testnet", + }, + rGt = { + name: "CloudWalk Mainnet", + chain: "CloudWalk Mainnet", + rpc: [], + faucets: [], + nativeCurrency: { + name: "CloudWalk Native Token", + symbol: "CWN", + decimals: 18, + }, + infoURL: "https://cloudwalk.io", + shortName: "cloudwalk_mainnet", + chainId: 2009, + networkId: 2009, + explorers: [ + { + name: "CloudWalk Mainnet Explorer", + url: "https://explorer.mainnet.cloudwalk.io", + standard: "none", + }, + ], + testnet: !1, + slug: "cloudwalk", + }, + nGt = { + name: "MainnetZ Mainnet", + chain: "NetZ", + icon: { + url: "ipfs://QmT5gJ5weBiLT3GoYuF5yRTRLdPLCVZ3tXznfqW7M8fxgG", + width: 400, + height: 400, + format: "png", + }, + rpc: [ + "https://z-mainnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://mainnet-rpc.mainnetz.io", + ], + faucets: ["https://faucet.mainnetz.io"], + nativeCurrency: { name: "MainnetZ", symbol: "NetZ", decimals: 18 }, + infoURL: "https://mainnetz.io", + shortName: "NetZm", + chainId: 2016, + networkId: 2016, + explorers: [ + { + name: "MainnetZ", + url: "https://explorer.mainnetz.io", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "z-mainnet", + }, + aGt = { + name: "PublicMint Devnet", + title: "Public Mint Devnet", + chain: "PublicMint", + rpc: [ + "https://publicmint-devnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.dev.publicmint.io:8545", + ], + faucets: [], + nativeCurrency: { name: "USD", symbol: "USD", decimals: 18 }, + infoURL: "https://publicmint.com", + shortName: "pmint_dev", + chainId: 2018, + networkId: 2018, + slip44: 60, + explorers: [ + { + name: "PublicMint Explorer", + url: "https://explorer.dev.publicmint.io", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "publicmint-devnet", + }, + iGt = { + name: "PublicMint Testnet", + title: "Public Mint Testnet", + chain: "PublicMint", + rpc: [ + "https://publicmint-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.tst.publicmint.io:8545", + ], + faucets: [], + nativeCurrency: { name: "USD", symbol: "USD", decimals: 18 }, + infoURL: "https://publicmint.com", + shortName: "pmint_test", + chainId: 2019, + networkId: 2019, + slip44: 60, + explorers: [ + { + name: "PublicMint Explorer", + url: "https://explorer.tst.publicmint.io", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "publicmint-testnet", + }, + sGt = { + name: "PublicMint Mainnet", + title: "Public Mint Mainnet", + chain: "PublicMint", + rpc: [ + "https://publicmint.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.publicmint.io:8545", + ], + faucets: [], + nativeCurrency: { name: "USD", symbol: "USD", decimals: 18 }, + infoURL: "https://publicmint.com", + shortName: "pmint", + chainId: 2020, + networkId: 2020, + slip44: 60, + explorers: [ + { + name: "PublicMint Explorer", + url: "https://explorer.publicmint.io", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "publicmint", + }, + oGt = { + name: "Edgeware Mainnet", + chain: "EDG", + rpc: [ + "https://edgeware.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://mainnet1.edgewa.re", + ], + faucets: [], + nativeCurrency: { name: "Edge", symbol: "EDG", decimals: 18 }, + infoURL: "http://edgewa.re", + shortName: "edg", + chainId: 2021, + networkId: 2021, + testnet: !1, + slug: "edgeware", + }, + cGt = { + name: "Beresheet Testnet", + chain: "EDG", + rpc: [ + "https://beresheet-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://beresheet1.edgewa.re", + ], + faucets: [], + nativeCurrency: { name: "Testnet Edge", symbol: "tEDG", decimals: 18 }, + infoURL: "http://edgewa.re", + shortName: "edgt", + chainId: 2022, + networkId: 2022, + testnet: !0, + slug: "beresheet-testnet", + }, + uGt = { + name: "Taycan Testnet", + chain: "Taycan", + rpc: [ + "https://taycan-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://test-taycan.hupayx.io", + ], + faucets: ["https://ttaycan-faucet.hupayx.io/"], + nativeCurrency: { name: "test-Shuffle", symbol: "tSFL", decimals: 18 }, + infoURL: "https://hupayx.io", + shortName: "taycan-testnet", + chainId: 2023, + networkId: 2023, + icon: { + url: "ipfs://bafkreidvjcc73v747lqlyrhgbnkvkdepdvepo6baj6hmjsmjtvdyhmzzmq", + width: 1e3, + height: 1206, + format: "png", + }, + explorers: [ + { + name: "Taycan Explorer(Blockscout)", + url: "https://evmscan-test.hupayx.io", + standard: "none", + icon: "shuffle", + }, + { + name: "Taycan Cosmos Explorer", + url: "https://cosmoscan-test.hupayx.io", + standard: "none", + icon: "shuffle", + }, + ], + testnet: !0, + slug: "taycan-testnet", + }, + lGt = { + name: "Rangers Protocol Mainnet", + chain: "Rangers", + icon: { + url: "ipfs://QmfHG3xbg4iiopagww93Gu7tmvCpPwZdiwsUjd3Dt5mRwT", + width: 835, + height: 835, + format: "png", + }, + rpc: [ + "https://rangers-protocol.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://mainnet.rangersprotocol.com/api/jsonrpc", + ], + faucets: [], + nativeCurrency: { + name: "Rangers Protocol Gas", + symbol: "RPG", + decimals: 18, + }, + infoURL: "https://rangersprotocol.com", + shortName: "rpg", + chainId: 2025, + networkId: 2025, + slip44: 1008, + explorers: [ + { + name: "rangersscan", + url: "https://scan.rangersprotocol.com", + standard: "none", + }, + ], + testnet: !1, + slug: "rangers-protocol", + }, + dGt = { + name: "OriginTrail Parachain", + chain: "OTP", + rpc: [ + "https://origintrail-parachain.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://astrosat.origintrail.network", + "wss://parachain-rpc.origin-trail.network", + ], + faucets: [], + nativeCurrency: { + name: "OriginTrail Parachain Token", + symbol: "OTP", + decimals: 12, + }, + infoURL: "https://parachain.origintrail.io", + shortName: "otp", + chainId: 2043, + networkId: 2043, + testnet: !1, + slug: "origintrail-parachain", + }, + pGt = { + name: "Stratos Testnet", + chain: "STOS", + rpc: [ + "https://stratos-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://web3-testnet-rpc.thestratos.org", + ], + faucets: [], + nativeCurrency: { name: "STOS", symbol: "STOS", decimals: 18 }, + infoURL: "https://www.thestratos.org", + shortName: "stos-testnet", + chainId: 2047, + networkId: 2047, + explorers: [ + { + name: "Stratos EVM Explorer (Blockscout)", + url: "https://web3-testnet-explorer.thestratos.org", + standard: "none", + }, + { + name: "Stratos Cosmos Explorer (BigDipper)", + url: "https://big-dipper-dev.thestratos.org", + standard: "none", + }, + ], + testnet: !0, + slug: "stratos-testnet", + }, + hGt = { + name: "Stratos Mainnet", + chain: "STOS", + rpc: [], + faucets: [], + nativeCurrency: { name: "STOS", symbol: "STOS", decimals: 18 }, + infoURL: "https://www.thestratos.org", + shortName: "stos-mainnet", + chainId: 2048, + networkId: 2048, + status: "incubating", + testnet: !1, + slug: "stratos", + }, + fGt = { + name: "Quokkacoin Mainnet", + chain: "Qkacoin", + rpc: [ + "https://quokkacoin.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.qkacoin.org", + ], + faucets: [], + nativeCurrency: { name: "Qkacoin", symbol: "QKA", decimals: 18 }, + infoURL: "https://qkacoin.org", + shortName: "QKA", + chainId: 2077, + networkId: 2077, + explorers: [ + { + name: "blockscout", + url: "https://explorer.qkacoin.org", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "quokkacoin", + }, + mGt = { + name: "Ecoball Mainnet", + chain: "ECO", + rpc: [ + "https://ecoball.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://api.ecoball.org/ecoball/", + ], + faucets: [], + nativeCurrency: { name: "Ecoball Coin", symbol: "ECO", decimals: 18 }, + infoURL: "https://ecoball.org", + shortName: "eco", + chainId: 2100, + networkId: 2100, + explorers: [ + { + name: "Ecoball Explorer", + url: "https://scan.ecoball.org", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "ecoball", + }, + yGt = { + name: "Ecoball Testnet Espuma", + chain: "ECO", + rpc: [ + "https://ecoball-testnet-espuma.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://api.ecoball.org/espuma/", + ], + faucets: [], + nativeCurrency: { name: "Espuma Coin", symbol: "ECO", decimals: 18 }, + infoURL: "https://ecoball.org", + shortName: "esp", + chainId: 2101, + networkId: 2101, + explorers: [ + { + name: "Ecoball Testnet Explorer", + url: "https://espuma-scan.ecoball.org", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "ecoball-testnet-espuma", + }, + gGt = { + name: "Exosama Network", + chain: "EXN", + rpc: [ + "https://exosama-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.exosama.com", + "wss://rpc.exosama.com", + ], + faucets: [], + nativeCurrency: { name: "Sama Token", symbol: "SAMA", decimals: 18 }, + infoURL: "https://moonsama.com", + shortName: "exn", + chainId: 2109, + networkId: 2109, + slip44: 2109, + icon: { + url: "ipfs://QmaQxfwpXYTomUd24PMx5tKjosupXcm99z1jL1XLq9LWBS", + width: 468, + height: 468, + format: "png", + }, + explorers: [ + { + name: "blockscout", + url: "https://explorer.exosama.com", + icon: "blockscout", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "exosama-network", + }, + bGt = { + name: "Metaplayerone Mainnet", + chain: "METAD", + icon: { + url: "ipfs://QmZyxS9BfRGYWWDtvrV6qtthCYV4TwdjLoH2sF6MkiTYFf", + width: 1280, + height: 1280, + format: "png", + }, + rpc: [ + "https://metaplayerone.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.metaplayer.one/", + ], + faucets: [], + nativeCurrency: { name: "METAD", symbol: "METAD", decimals: 18 }, + infoURL: "https://docs.metaplayer.one/", + shortName: "Metad", + chainId: 2122, + networkId: 2122, + explorers: [ + { + name: "Metad Scan", + url: "https://scan.metaplayer.one", + icon: "metad", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "metaplayerone", + }, + vGt = { + name: "BOSagora Mainnet", + chain: "ETH", + rpc: [ + "https://bosagora.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://mainnet.bosagora.org", + "https://rpc.bosagora.org", + ], + faucets: [], + nativeCurrency: { name: "BOSAGORA", symbol: "BOA", decimals: 18 }, + infoURL: "https://docs.bosagora.org", + shortName: "boa", + chainId: 2151, + networkId: 2151, + icon: { + url: "ipfs://QmW3CT4SHmso5dRJdsjR8GL1qmt79HkdAebCn2uNaWXFYh", + width: 256, + height: 257, + format: "png", + }, + explorers: [ + { + name: "BOASCAN", + url: "https://boascan.io", + icon: "agora", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "bosagora", + }, + wGt = { + name: "Findora Mainnet", + chain: "Findora", + rpc: [ + "https://findora.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc-mainnet.findora.org", + ], + faucets: [], + nativeCurrency: { name: "FRA", symbol: "FRA", decimals: 18 }, + infoURL: "https://findora.org/", + shortName: "fra", + chainId: 2152, + networkId: 2152, + explorers: [ + { + name: "findorascan", + url: "https://evm.findorascan.io", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "findora", + }, + _Gt = { + name: "Findora Testnet", + chain: "Testnet-anvil", + rpc: [ + "https://findora-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://prod-testnet.prod.findora.org:8545/", + ], + faucets: [], + nativeCurrency: { name: "FRA", symbol: "FRA", decimals: 18 }, + infoURL: "https://findora.org/", + shortName: "findora-testnet", + chainId: 2153, + networkId: 2153, + explorers: [ + { + name: "findorascan", + url: "https://testnet-anvil.evm.findorascan.io", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "findora-testnet", + }, + xGt = { + name: "Findora Forge", + chain: "Testnet-forge", + rpc: [ + "https://findora-forge.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://prod-forge.prod.findora.org:8545/", + ], + faucets: [], + nativeCurrency: { name: "FRA", symbol: "FRA", decimals: 18 }, + infoURL: "https://findora.org/", + shortName: "findora-forge", + chainId: 2154, + networkId: 2154, + explorers: [ + { + name: "findorascan", + url: "https://testnet-forge.evm.findorascan.io", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "findora-forge", + }, + TGt = { + name: "Bitcoin EVM", + chain: "Bitcoin EVM", + rpc: [ + "https://bitcoin-evm.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://connect.bitcoinevm.com", + ], + faucets: [], + nativeCurrency: { name: "Bitcoin", symbol: "eBTC", decimals: 18 }, + infoURL: "https://bitcoinevm.com", + shortName: "eBTC", + chainId: 2203, + networkId: 2203, + icon: { + url: "ipfs://bafkreic4aq265oaf6yze7ba5okefqh6vnqudyrz6ovukvbnrlhet36itle", + width: 200, + height: 200, + format: "png", + }, + explorers: [ + { + name: "Explorer", + url: "https://explorer.bitcoinevm.com", + icon: "ebtc", + standard: "none", + }, + ], + testnet: !1, + slug: "bitcoin-evm", + }, + EGt = { + name: "Evanesco Mainnet", + chain: "EVA", + rpc: [ + "https://evanesco.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://seed4.evanesco.org:8546", + ], + faucets: [], + nativeCurrency: { name: "EVA", symbol: "EVA", decimals: 18 }, + infoURL: "https://evanesco.org/", + shortName: "evanesco", + chainId: 2213, + networkId: 2213, + icon: { + url: "ipfs://QmZbmGYdfbMRrWJore3c7hyD6q7B5pXHJqTSNjbZZUK6V8", + width: 200, + height: 200, + format: "png", + }, + explorers: [ + { + name: "Evanesco Explorer", + url: "https://explorer.evanesco.org", + standard: "none", + }, + ], + testnet: !1, + slug: "evanesco", + }, + CGt = { + name: "Kava EVM Testnet", + chain: "KAVA", + rpc: [ + "https://kava-evm-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://evm.testnet.kava.io", + "wss://wevm.testnet.kava.io", + ], + faucets: ["https://faucet.kava.io"], + nativeCurrency: { name: "TKava", symbol: "TKAVA", decimals: 18 }, + infoURL: "https://www.kava.io", + shortName: "tkava", + chainId: 2221, + networkId: 2221, + icon: { + url: "ipfs://QmdpRTk6oL1HRW9xC6cAc4Rnf9gs6zgdAcr4Z3HcLztusm", + width: 1186, + height: 360, + format: "svg", + }, + explorers: [ + { + name: "Kava Testnet Explorer", + url: "https://explorer.testnet.kava.io", + standard: "EIP3091", + icon: "kava", + }, + ], + testnet: !0, + slug: "kava-evm-testnet", + }, + IGt = { + name: "Kava EVM", + chain: "KAVA", + rpc: [ + "https://kava-evm.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://evm.kava.io", + "https://evm2.kava.io", + "wss://wevm.kava.io", + "wss://wevm2.kava.io", + ], + faucets: [], + nativeCurrency: { name: "Kava", symbol: "KAVA", decimals: 18 }, + infoURL: "https://www.kava.io", + shortName: "kava", + chainId: 2222, + networkId: 2222, + icon: { + url: "ipfs://QmdpRTk6oL1HRW9xC6cAc4Rnf9gs6zgdAcr4Z3HcLztusm", + width: 1186, + height: 360, + format: "svg", + }, + explorers: [ + { + name: "Kava EVM Explorer", + url: "https://explorer.kava.io", + standard: "EIP3091", + icon: "kava", + }, + ], + testnet: !1, + slug: "kava-evm", + }, + AGt = { + name: "VChain Mainnet", + chain: "VChain", + rpc: [ + "https://vchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://bc.vcex.xyz", + ], + faucets: [], + nativeCurrency: { name: "VNDT", symbol: "VNDT", decimals: 18 }, + infoURL: "https://bo.vcex.xyz/", + shortName: "VChain", + chainId: 2223, + networkId: 2223, + explorers: [ + { + name: "VChain Scan", + url: "https://scan.vcex.xyz", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "vchain", + }, + kGt = { + name: "BOMB Chain", + chain: "BOMB", + rpc: [ + "https://bomb-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.bombchain.com", + ], + faucets: [], + nativeCurrency: { name: "BOMB Token", symbol: "BOMB", decimals: 18 }, + infoURL: "https://www.bombchain.com", + shortName: "bomb", + chainId: 2300, + networkId: 2300, + icon: { + url: "ipfs://Qmc44uSjfdNHdcxPTgZAL8eZ8TLe4UmSHibcvKQFyGJxTB", + width: 1024, + height: 1024, + format: "png", + }, + explorers: [ + { + name: "bombscan", + icon: "bomb", + url: "https://bombscan.com", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "bomb-chain", + }, + SGt = { + name: "Altcoinchain", + chain: "mainnet", + rpc: [ + "https://altcoinchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc0.altcoinchain.org/rpc", + ], + faucets: [], + nativeCurrency: { name: "Altcoin", symbol: "ALT", decimals: 18 }, + infoURL: "https://altcoinchain.org", + shortName: "alt", + chainId: 2330, + networkId: 2330, + icon: { + url: "ipfs://QmYwHmGC9CRVcKo1LSesqxU31SDj9vk2iQxcFjQArzhix4", + width: 720, + height: 720, + format: "png", + }, + status: "active", + explorers: [ + { + name: "expedition", + url: "http://expedition.altcoinchain.org", + icon: "altcoinchain", + standard: "none", + }, + ], + testnet: !1, + slug: "altcoinchain", + }, + MGt = { + name: "BOMB Chain Testnet", + chain: "BOMB", + rpc: [ + "https://bomb-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://bombchain-testnet.ankr.com/bas_full_rpc_1", + ], + faucets: ["https://faucet.bombchain-testnet.ankr.com/"], + nativeCurrency: { name: "BOMB Token", symbol: "tBOMB", decimals: 18 }, + infoURL: "https://www.bombmoney.com", + shortName: "bombt", + chainId: 2399, + networkId: 2399, + icon: { + url: "ipfs://Qmc44uSjfdNHdcxPTgZAL8eZ8TLe4UmSHibcvKQFyGJxTB", + width: 1024, + height: 1024, + format: "png", + }, + explorers: [ + { + name: "bombscan-testnet", + icon: "bomb", + url: "https://explorer.bombchain-testnet.ankr.com", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "bomb-chain-testnet", + }, + PGt = { + name: "TCG Verse Mainnet", + chain: "TCG Verse", + icon: { + url: "ipfs://bafkreidg4wpewve5mdxrofneqblydkrjl3oevtgpdf3fk3z3vjqam6ocoe", + width: 350, + height: 350, + format: "png", + }, + rpc: [ + "https://tcg-verse.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.tcgverse.xyz", + ], + faucets: [], + nativeCurrency: { name: "OAS", symbol: "OAS", decimals: 18 }, + infoURL: "https://tcgverse.xyz/", + shortName: "TCGV", + chainId: 2400, + networkId: 2400, + explorers: [ + { + name: "TCG Verse Explorer", + url: "https://explorer.tcgverse.xyz", + standard: "EIP3091", + }, + ], + parent: { type: "L2", chain: "eip155-248" }, + testnet: !1, + slug: "tcg-verse", + }, + RGt = { + name: "XODEX", + chain: "XODEX", + rpc: [ + "https://xodex.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://mainnet.xo-dex.com/rpc", + "https://xo-dex.io", + ], + faucets: [], + nativeCurrency: { + name: "XODEX Native Token", + symbol: "XODEX", + decimals: 18, + }, + infoURL: "https://xo-dex.com", + shortName: "xodex", + chainId: 2415, + networkId: 10, + icon: { + url: "ipfs://QmXt49jPfHUmDF4n8TF7ks6txiPztx6qUHanWmHnCoEAhW", + width: 256, + height: 256, + format: "png", + }, + explorers: [ + { + name: "XODEX Explorer", + url: "https://explorer.xo-dex.com", + standard: "EIP3091", + icon: "xodex", + }, + ], + testnet: !1, + slug: "xodex", + }, + BGt = { + name: "Kortho Mainnet", + chain: "Kortho Chain", + rpc: [ + "https://kortho.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://www.kortho-chain.com", + ], + faucets: [], + nativeCurrency: { name: "KorthoChain", symbol: "KTO", decimals: 11 }, + infoURL: "https://www.kortho.io/", + shortName: "ktoc", + chainId: 2559, + networkId: 2559, + testnet: !1, + slug: "kortho", + }, + NGt = { + name: "TechPay Mainnet", + chain: "TPC", + rpc: [ + "https://techpay.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://api.techpay.io/", + ], + faucets: [], + nativeCurrency: { name: "TechPay", symbol: "TPC", decimals: 18 }, + infoURL: "https://techpay.io/", + shortName: "tpc", + chainId: 2569, + networkId: 2569, + icon: { + url: "ipfs://QmQyTyJUnhD1dca35Vyj96pm3v3Xyw8xbG9m8HXHw3k2zR", + width: 578, + height: 701, + format: "svg", + }, + explorers: [ + { + name: "tpcscan", + url: "https://tpcscan.com", + icon: "techpay", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "techpay", + }, + OGt = { + name: "PoCRNet", + title: "Proof of Carbon Reduction mainnet", + chain: "CRC", + status: "active", + rpc: [ + "https://pocrnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://pocrnet.westeurope.cloudapp.azure.com/http", + "wss://pocrnet.westeurope.cloudapp.azure.com/ws", + ], + faucets: [], + nativeCurrency: { + name: "Carbon Reduction Coin", + symbol: "CRC", + decimals: 18, + }, + infoURL: "https://github.com/ethereum-pocr/pocrnet", + shortName: "pocrnet", + chainId: 2606, + networkId: 2606, + explorers: [ + { + name: "Lite Explorer", + url: "https://ethereum-pocr.github.io/explorer/pocrnet", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "pocrnet", + }, + LGt = { + name: "Redlight Chain Mainnet", + chain: "REDLC", + rpc: [ + "https://redlight-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://dataseed2.redlightscan.finance", + ], + faucets: [], + nativeCurrency: { + name: "Redlight Coin", + symbol: "REDLC", + decimals: 18, + }, + infoURL: "https://redlight.finance/", + shortName: "REDLC", + chainId: 2611, + networkId: 2611, + explorers: [ + { + name: "REDLC Explorer", + url: "https://redlightscan.finance", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "redlight-chain", + }, + DGt = { + name: "EZChain C-Chain Mainnet", + chain: "EZC", + rpc: [ + "https://ezchain-c-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://api.ezchain.com/ext/bc/C/rpc", + ], + faucets: [], + nativeCurrency: { name: "EZChain", symbol: "EZC", decimals: 18 }, + infoURL: "https://ezchain.com", + shortName: "EZChain", + chainId: 2612, + networkId: 2612, + icon: { + url: "ipfs://QmPKJbYCFjGmY9X2cA4b9YQjWYHQncmKnFtKyQh9rHkFTb", + width: 146, + height: 48, + format: "png", + }, + explorers: [ + { + name: "ezchain", + url: "https://cchain-explorer.ezchain.com", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "ezchain-c-chain", + }, + qGt = { + name: "EZChain C-Chain Testnet", + chain: "EZC", + rpc: [ + "https://ezchain-c-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://testnet-api.ezchain.com/ext/bc/C/rpc", + ], + faucets: ["https://testnet-faucet.ezchain.com"], + nativeCurrency: { name: "EZChain", symbol: "EZC", decimals: 18 }, + infoURL: "https://ezchain.com", + shortName: "Fuji-EZChain", + chainId: 2613, + networkId: 2613, + icon: { + url: "ipfs://QmPKJbYCFjGmY9X2cA4b9YQjWYHQncmKnFtKyQh9rHkFTb", + width: 146, + height: 48, + format: "png", + }, + explorers: [ + { + name: "ezchain", + url: "https://testnet-cchain-explorer.ezchain.com", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "ezchain-c-chain-testnet", + }, + FGt = { + name: "Boba Network Goerli Testnet", + chain: "ETH", + rpc: [ + "https://boba-network-goerli-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://goerli.boba.network/", + ], + faucets: [], + nativeCurrency: { name: "Goerli Ether", symbol: "ETH", decimals: 18 }, + infoURL: "https://boba.network", + shortName: "Bobagoerli", + chainId: 2888, + networkId: 2888, + explorers: [ + { + name: "Blockscout", + url: "https://testnet.bobascan.com", + standard: "none", + }, + ], + parent: { + type: "L2", + chain: "eip155-5", + bridges: [{ url: "https://gateway.goerli.boba.network" }], + }, + testnet: !0, + slug: "boba-network-goerli-testnet", + }, + WGt = { + name: "BitYuan Mainnet", + chain: "BTY", + rpc: [ + "https://bityuan.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://mainnet.bityuan.com/eth", + ], + faucets: [], + nativeCurrency: { name: "BTY", symbol: "BTY", decimals: 18 }, + infoURL: "https://www.bityuan.com", + shortName: "bty", + chainId: 2999, + networkId: 2999, + icon: { + url: "ipfs://QmUmJVof2m5e4HUXb3GmijWUFsLUNhrQiwwQG3CqcXEtHt", + width: 91, + height: 24, + format: "png", + }, + explorers: [ + { + name: "BitYuan Block Chain Explorer", + url: "https://mainnet.bityuan.com", + standard: "none", + }, + ], + testnet: !1, + slug: "bityuan", + }, + UGt = { + name: "CENNZnet Rata", + chain: "CENNZnet", + rpc: [], + faucets: ["https://app-faucet.centrality.me"], + nativeCurrency: { name: "CPAY", symbol: "CPAY", decimals: 18 }, + infoURL: "https://cennz.net", + shortName: "cennz-r", + chainId: 3e3, + networkId: 3e3, + icon: { + url: "ipfs://QmWhNm7tTi6SYbiumULDRk956hxgqaZSX77vcxBNn8fvnw", + width: 112, + height: 112, + format: "svg", + }, + testnet: !1, + slug: "cennznet-rata", + }, + HGt = { + name: "CENNZnet Nikau", + chain: "CENNZnet", + rpc: [ + "https://cennznet-nikau.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://nikau.centrality.me/public", + ], + faucets: ["https://app-faucet.centrality.me"], + nativeCurrency: { name: "CPAY", symbol: "CPAY", decimals: 18 }, + infoURL: "https://cennz.net", + shortName: "cennz-n", + chainId: 3001, + networkId: 3001, + icon: { + url: "ipfs://QmWhNm7tTi6SYbiumULDRk956hxgqaZSX77vcxBNn8fvnw", + width: 112, + height: 112, + format: "svg", + }, + explorers: [ + { + name: "UNcover", + url: "https://www.uncoverexplorer.com/?network=Nikau", + standard: "none", + }, + ], + testnet: !1, + slug: "cennznet-nikau", + }, + zGt = { + name: "Orlando Chain", + chain: "ORL", + rpc: [ + "https://orlando-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc-testnet.orlchain.com", + ], + faucets: [], + nativeCurrency: { name: "Orlando", symbol: "ORL", decimals: 18 }, + infoURL: "https://orlchain.com", + shortName: "ORL", + chainId: 3031, + networkId: 3031, + icon: { + url: "ipfs://QmNsuuBBTHErnuFDcdyzaY8CKoVJtobsLJx2WQjaPjcp7g", + width: 512, + height: 528, + format: "png", + }, + explorers: [ + { + name: "Orlando (ORL) Explorer", + url: "https://orlscan.com", + icon: "orl", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "orlando-chain", + }, + jGt = { + name: "Bifrost Mainnet", + title: "The Bifrost Mainnet network", + chain: "BFC", + rpc: [ + "https://bifrost.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://public-01.mainnet.thebifrost.io/rpc", + "https://public-02.mainnet.thebifrost.io/rpc", + ], + faucets: [], + nativeCurrency: { name: "Bifrost", symbol: "BFC", decimals: 18 }, + infoURL: "https://thebifrost.io", + shortName: "bfc", + chainId: 3068, + networkId: 3068, + icon: { + url: "ipfs://QmcHvn2Wq91ULyEH5s3uHjosX285hUgyJHwggFJUd3L5uh", + width: 128, + height: 128, + format: "png", + }, + explorers: [ + { + name: "explorer-thebifrost", + url: "https://explorer.mainnet.thebifrost.io", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "bifrost", + }, + KGt = { + name: "Filecoin - Hyperspace testnet", + chain: "FIL", + icon: { + url: "ipfs://QmS9r9XQkMHVomWcSBNDkKkz9n87h9bH9ssabeiKZtANoU", + width: 1e3, + height: 1e3, + format: "png", + }, + rpc: [ + "https://filecoin-hyperspace-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://api.hyperspace.node.glif.io/rpc/v1", + "https://filecoin-hyperspace.chainstacklabs.com/rpc/v1", + ], + faucets: ["https://hyperspace.yoga/#faucet"], + nativeCurrency: { + name: "testnet filecoin", + symbol: "tFIL", + decimals: 18, + }, + infoURL: "https://filecoin.io", + shortName: "filecoin-hyperspace", + chainId: 3141, + networkId: 3141, + slip44: 1, + explorers: [ + { + name: "Filfox - Hyperspace", + url: "https://hyperspace.filfox.info/en", + standard: "none", + }, + { + name: "Glif Explorer - Hyperspace", + url: "https://explorer.glif.io/?network=hyperspace", + standard: "none", + }, + { name: "Beryx", url: "https://beryx.zondax.ch", standard: "none" }, + { + name: "Filmine", + url: "https://explorer.filmine.io", + standard: "none", + }, + { + name: "Filscan - Hyperspace", + url: "https://hyperspace.filscan.io", + standard: "none", + }, + ], + testnet: !0, + slug: "filecoin-hyperspace-testnet", + }, + VGt = { + name: "Debounce Subnet Testnet", + chain: "Debounce Network", + icon: { + url: "ipfs://bafybeib5q4hez37s7b2fx4hqt2q4ji2tuudxjhfdgnp6q3d5mqm6wsxdfq", + width: 256, + height: 256, + format: "png", + }, + rpc: [ + "https://debounce-subnet-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://dev-rpc.debounce.network", + ], + faucets: [], + nativeCurrency: { + name: "Debounce Network", + symbol: "DB", + decimals: 18, + }, + infoURL: "https://debounce.network", + shortName: "debounce-devnet", + chainId: 3306, + networkId: 3306, + explorers: [ + { + name: "Debounce Devnet Explorer", + url: "https://explorer.debounce.network", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "debounce-subnet-testnet", + }, + GGt = { + name: "ZCore Testnet", + chain: "Beach", + icon: { + url: "ipfs://QmQnXu13ym8W1VA3QxocaNVXGAuEPmamSCkS7bBscVk1f4", + width: 1050, + height: 1050, + format: "png", + }, + rpc: [ + "https://zcore-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc-testnet.zcore.cash", + ], + faucets: ["https://faucet.zcore.cash"], + nativeCurrency: { name: "ZCore", symbol: "ZCR", decimals: 18 }, + infoURL: "https://zcore.cash", + shortName: "zcrbeach", + chainId: 3331, + networkId: 3331, + testnet: !0, + slug: "zcore-testnet", + }, + YGt = { + name: "Web3Q Testnet", + chain: "Web3Q", + rpc: [ + "https://web3q-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://testnet.web3q.io:8545", + ], + faucets: [], + nativeCurrency: { name: "Web3Q", symbol: "W3Q", decimals: 18 }, + infoURL: "https://testnet.web3q.io/home.w3q/", + shortName: "w3q-t", + chainId: 3333, + networkId: 3333, + explorers: [ + { + name: "w3q-testnet", + url: "https://explorer.testnet.web3q.io", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "web3q-testnet", + }, + $Gt = { + name: "Web3Q Galileo", + chain: "Web3Q", + rpc: [ + "https://web3q-galileo.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://galileo.web3q.io:8545", + ], + faucets: [], + nativeCurrency: { name: "Web3Q", symbol: "W3Q", decimals: 18 }, + infoURL: "https://galileo.web3q.io/home.w3q/", + shortName: "w3q-g", + chainId: 3334, + networkId: 3334, + explorers: [ + { + name: "w3q-galileo", + url: "https://explorer.galileo.web3q.io", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "web3q-galileo", + }, + JGt = { + name: "Paribu Net Mainnet", + chain: "PRB", + rpc: [ + "https://paribu-net.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.paribu.network", + ], + faucets: [], + nativeCurrency: { name: "PRB", symbol: "PRB", decimals: 18 }, + infoURL: "https://net.paribu.com", + shortName: "prb", + chainId: 3400, + networkId: 3400, + icon: { + url: "ipfs://QmVgc77jYo2zrxQjhYwT4KzvSrSZ1DBJraJVX57xAvP8MD", + width: 2362, + height: 2362, + format: "png", + }, + explorers: [ + { + name: "Paribu Net Explorer", + url: "https://explorer.paribu.network", + icon: "explorer", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "paribu-net", + }, + ZGt = { + name: "Paribu Net Testnet", + chain: "PRB", + rpc: [ + "https://paribu-net-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.testnet.paribuscan.com", + ], + faucets: ["https://faucet.paribuscan.com"], + nativeCurrency: { name: "PRB", symbol: "PRB", decimals: 18 }, + infoURL: "https://net.paribu.com", + shortName: "prbtestnet", + chainId: 3500, + networkId: 3500, + icon: { + url: "ipfs://QmVgc77jYo2zrxQjhYwT4KzvSrSZ1DBJraJVX57xAvP8MD", + width: 2362, + height: 2362, + format: "png", + }, + explorers: [ + { + name: "Paribu Net Testnet Explorer", + url: "https://testnet.paribuscan.com", + icon: "explorer", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "paribu-net-testnet", + }, + QGt = { + name: "JFIN Chain", + chain: "JFIN", + rpc: [ + "https://jfin-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.jfinchain.com", + ], + faucets: [], + nativeCurrency: { name: "JFIN Coin", symbol: "jfin", decimals: 18 }, + infoURL: "https://jfinchain.com", + shortName: "jfin", + chainId: 3501, + networkId: 3501, + explorers: [ + { + name: "JFIN Chain Explorer", + url: "https://exp.jfinchain.com", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "jfin-chain", + }, + XGt = { + name: "PandoProject Mainnet", + chain: "PandoProject", + icon: { + url: "ipfs://QmNduBtT5BNGDw7DjRwDvaZBb6gjxf46WD7BYhn4gauGc9", + width: 1e3, + height: 1628, + format: "png", + }, + rpc: [ + "https://pandoproject.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://eth-rpc-api.pandoproject.org/rpc", + ], + faucets: [], + nativeCurrency: { name: "pando-token", symbol: "PTX", decimals: 18 }, + infoURL: "https://www.pandoproject.org/", + shortName: "pando-mainnet", + chainId: 3601, + networkId: 3601, + explorers: [ + { + name: "Pando Mainnet Explorer", + url: "https://explorer.pandoproject.org", + standard: "none", + }, + ], + testnet: !1, + slug: "pandoproject", + }, + eYt = { + name: "PandoProject Testnet", + chain: "PandoProject", + icon: { + url: "ipfs://QmNduBtT5BNGDw7DjRwDvaZBb6gjxf46WD7BYhn4gauGc9", + width: 1e3, + height: 1628, + format: "png", + }, + rpc: [ + "https://pandoproject-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://testnet.ethrpc.pandoproject.org/rpc", + ], + faucets: [], + nativeCurrency: { name: "pando-token", symbol: "PTX", decimals: 18 }, + infoURL: "https://www.pandoproject.org/", + shortName: "pando-testnet", + chainId: 3602, + networkId: 3602, + explorers: [ + { + name: "Pando Testnet Explorer", + url: "https://testnet.explorer.pandoproject.org", + standard: "none", + }, + ], + testnet: !0, + slug: "pandoproject-testnet", + }, + tYt = { + name: "Metacodechain", + chain: "metacode", + rpc: [ + "https://metacodechain.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://j.blockcoach.com:8503", + ], + faucets: [], + nativeCurrency: { name: "J", symbol: "J", decimals: 18 }, + infoURL: "https://j.blockcoach.com:8089", + shortName: "metacode", + chainId: 3666, + networkId: 3666, + explorers: [ + { + name: "meta", + url: "https://j.blockcoach.com:8089", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "metacodechain", + }, + rYt = { + name: "Bittex Mainnet", + chain: "BTX", + rpc: [ + "https://bittex.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc1.bittexscan.info", + "https://rpc2.bittexscan.info", + ], + faucets: [], + nativeCurrency: { name: "Bittex", symbol: "BTX", decimals: 18 }, + infoURL: "https://bittexscan.com", + shortName: "btx", + chainId: 3690, + networkId: 3690, + icon: { + url: "ipfs://QmdwQDr6vmBtXmK2TmknkEuZNoaDqTasFdZdu3DRw8b2wt", + width: 1e3, + height: 1628, + format: "png", + }, + explorers: [ + { + name: "bittexscan", + url: "https://bittexscan.com", + icon: "etherscan", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "bittex", + }, + nYt = { + name: "Empire Network", + chain: "EMPIRE", + rpc: [ + "https://empire-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.empirenetwork.io", + ], + faucets: [], + nativeCurrency: { name: "Empire", symbol: "EMPIRE", decimals: 18 }, + infoURL: "https://www.empirenetwork.io/", + shortName: "empire", + chainId: 3693, + networkId: 3693, + explorers: [ + { + name: "Empire Explorer", + url: "https://explorer.empirenetwork.io", + standard: "none", + }, + ], + testnet: !1, + slug: "empire-network", + }, + aYt = { + name: "Crossbell", + chain: "Crossbell", + rpc: [ + "https://crossbell.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.crossbell.io", + ], + faucets: ["https://faucet.crossbell.io"], + nativeCurrency: { + name: "Crossbell Token", + symbol: "CSB", + decimals: 18, + }, + infoURL: "https://crossbell.io", + shortName: "csb", + chainId: 3737, + networkId: 3737, + icon: { + url: "ipfs://QmS8zEetTb6pwdNpVjv5bz55BXiSMGP9BjTJmNcjcUT91t", + format: "svg", + width: 408, + height: 408, + }, + explorers: [ + { + name: "Crossbell Explorer", + url: "https://scan.crossbell.io", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "crossbell", + }, + iYt = { + name: "DRAC Network", + chain: "DRAC", + rpc: [ + "https://drac-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://www.dracscan.com/rpc", + ], + faucets: ["https://www.dracscan.io/faucet"], + nativeCurrency: { name: "DRAC", symbol: "DRAC", decimals: 18 }, + infoURL: "https://drac.io/", + shortName: "drac", + features: [{ name: "EIP155" }, { name: "EIP1559" }], + chainId: 3912, + networkId: 3912, + icon: { + url: "ipfs://QmXbsQe7QsVFZJZdBmbZVvS6LgX9ZFoaTMBs9MiQXUzJTw", + width: 256, + height: 256, + format: "png", + }, + explorers: [ + { + name: "DRAC_Network Scan", + url: "https://www.dracscan.io", + icon: "DRAC", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "drac-network", + }, + sYt = { + name: "DYNO Mainnet", + chain: "DYNO", + rpc: [ + "https://dyno.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://api.dynoprotocol.com", + ], + faucets: ["https://faucet.dynoscan.io"], + nativeCurrency: { name: "DYNO Token", symbol: "DYNO", decimals: 18 }, + infoURL: "https://dynoprotocol.com", + shortName: "dyno", + chainId: 3966, + networkId: 3966, + explorers: [ + { + name: "DYNO Explorer", + url: "https://dynoscan.io", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "dyno", + }, + oYt = { + name: "DYNO Testnet", + chain: "DYNO", + rpc: [ + "https://dyno-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://tapi.dynoprotocol.com", + ], + faucets: ["https://faucet.dynoscan.io"], + nativeCurrency: { name: "DYNO Token", symbol: "tDYNO", decimals: 18 }, + infoURL: "https://dynoprotocol.com", + shortName: "tdyno", + chainId: 3967, + networkId: 3967, + explorers: [ + { + name: "DYNO Explorer", + url: "https://testnet.dynoscan.io", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "dyno-testnet", + }, + cYt = { + name: "YuanChain Mainnet", + chain: "YCC", + rpc: [ + "https://yuanchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://mainnet.yuan.org/eth", + ], + faucets: [], + nativeCurrency: { name: "YCC", symbol: "YCC", decimals: 18 }, + infoURL: "https://www.yuan.org", + shortName: "ycc", + chainId: 3999, + networkId: 3999, + icon: { + url: "ipfs://QmdbPhiB5W2gbHZGkYsN7i2VTKKP9casmAN2hRnpDaL9W4", + width: 96, + height: 96, + format: "png", + }, + explorers: [ + { + name: "YuanChain Explorer", + url: "https://mainnet.yuan.org", + standard: "none", + }, + ], + testnet: !1, + slug: "yuanchain", + }, + uYt = { + name: "Fantom Testnet", + chain: "FTM", + rpc: [ + "https://fantom-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.testnet.fantom.network", + ], + faucets: ["https://faucet.fantom.network"], + nativeCurrency: { name: "Fantom", symbol: "FTM", decimals: 18 }, + infoURL: + "https://docs.fantom.foundation/quick-start/short-guide#fantom-testnet", + shortName: "tftm", + chainId: 4002, + networkId: 4002, + icon: { + url: "ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/fantom/512.png", + height: 512, + width: 512, + format: "png", + sizes: [512, 256, 128, 64, 32, 16], + }, + explorers: [ + { + name: "ftmscan", + url: "https://testnet.ftmscan.com", + icon: "ftmscan", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "fantom-testnet", + }, + lYt = { + name: "Bobaopera Testnet", + chain: "Bobaopera Testnet", + rpc: [ + "https://bobaopera-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://testnet.bobaopera.boba.network", + "wss://wss.testnet.bobaopera.boba.network", + "https://replica.testnet.bobaopera.boba.network", + "wss://replica-wss.testnet.bobaopera.boba.network", + ], + faucets: [], + nativeCurrency: { name: "Boba Token", symbol: "BOBA", decimals: 18 }, + infoURL: "https://boba.network", + shortName: "BobaoperaTestnet", + chainId: 4051, + networkId: 4051, + explorers: [ + { + name: "Bobaopera Testnet block explorer", + url: "https://blockexplorer.testnet.bobaopera.boba.network", + standard: "none", + }, + ], + testnet: !0, + slug: "bobaopera-testnet", + }, + dYt = { + name: "Bitindi Testnet", + chain: "BNI", + icon: { + url: "ipfs://QmRAFFPiLiSgjGTs9QaZdnR9fsDgyUdTejwSxcnPXo292s", + width: 60, + height: 72, + format: "png", + }, + rpc: [ + "https://bitindi-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://testnet-rpc.bitindi.org", + ], + faucets: ["https://faucet.bitindi.org"], + nativeCurrency: { name: "BNI", symbol: "$BNI", decimals: 18 }, + infoURL: "https://bitindi.org", + shortName: "BNIt", + chainId: 4096, + networkId: 4096, + explorers: [ + { + name: "Bitindi", + url: "https://testnet.bitindiscan.com", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "bitindi-testnet", + }, + pYt = { + name: "Bitindi Mainnet", + chain: "BNI", + icon: { + url: "ipfs://QmRAFFPiLiSgjGTs9QaZdnR9fsDgyUdTejwSxcnPXo292s", + width: 60, + height: 72, + format: "png", + }, + rpc: [ + "https://bitindi.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://mainnet-rpc.bitindi.org", + ], + faucets: ["https://faucet.bitindi.org"], + nativeCurrency: { name: "BNI", symbol: "$BNI", decimals: 18 }, + infoURL: "https://bitindi.org", + shortName: "BNIm", + chainId: 4099, + networkId: 4099, + explorers: [ + { + name: "Bitindi", + url: "https://bitindiscan.com", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "bitindi", + }, + hYt = { + name: "AIOZ Network Testnet", + chain: "AIOZ", + icon: { + url: "ipfs://QmRAGPFhvQiXgoJkui7WHajpKctGFrJNhHqzYdwcWt5V3Z", + width: 1024, + height: 1024, + format: "png", + }, + rpc: [ + "https://aioz-network-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://eth-ds.testnet.aioz.network", + ], + faucets: [], + nativeCurrency: { name: "testAIOZ", symbol: "AIOZ", decimals: 18 }, + infoURL: "https://aioz.network", + shortName: "aioz-testnet", + chainId: 4102, + networkId: 4102, + slip44: 60, + explorers: [ + { + name: "AIOZ Network Testnet Explorer", + url: "https://testnet.explorer.aioz.network", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "aioz-network-testnet", + }, + fYt = { + name: "PHI Network V1", + chain: "PHI V1", + rpc: [ + "https://phi-network-v1.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc1.phi.network", + "https://rpc2.phi.network", + ], + faucets: [], + nativeCurrency: { name: "PHI", symbol: "\u03A6", decimals: 18 }, + infoURL: "https://phi.network", + shortName: "PHIv1", + chainId: 4181, + networkId: 4181, + icon: { + url: "ipfs://bafkreid6pm3mic7izp3a6zlfwhhe7etd276bjfsq2xash6a4s2vmcdf65a", + width: 512, + height: 512, + format: "png", + }, + explorers: [ + { + name: "PHI Explorer", + url: "https://explorer.phi.network", + icon: "phi", + standard: "none", + }, + ], + testnet: !1, + slug: "phi-network-v1", + }, + mYt = { + name: "Bobafuji Testnet", + chain: "Bobafuji Testnet", + rpc: [ + "https://bobafuji-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://testnet.avax.boba.network", + "wss://wss.testnet.avax.boba.network", + "https://replica.testnet.avax.boba.network", + "wss://replica-wss.testnet.avax.boba.network", + ], + faucets: [], + nativeCurrency: { name: "Boba Token", symbol: "BOBA", decimals: 18 }, + infoURL: "https://boba.network", + shortName: "BobaFujiTestnet", + chainId: 4328, + networkId: 4328, + explorers: [ + { + name: "Bobafuji Testnet block explorer", + url: "https://blockexplorer.testnet.avax.boba.network", + standard: "none", + }, + ], + testnet: !0, + slug: "bobafuji-testnet", + }, + yYt = { + name: "Htmlcoin Mainnet", + chain: "mainnet", + rpc: [ + "https://htmlcoin.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://janus.htmlcoin.com/api/", + ], + faucets: ["https://gruvin.me/htmlcoin"], + nativeCurrency: { name: "Htmlcoin", symbol: "HTML", decimals: 8 }, + infoURL: "https://htmlcoin.com", + shortName: "html", + chainId: 4444, + networkId: 4444, + icon: { + url: "ipfs://QmR1oDRSadPerfyWMhKHNP268vPKvpczt5zPawgFSZisz2", + width: 1e3, + height: 1e3, + format: "png", + }, + status: "active", + explorers: [ + { + name: "htmlcoin", + url: "https://explorer.htmlcoin.com", + icon: "htmlcoin", + standard: "none", + }, + ], + testnet: !1, + slug: "htmlcoin", + }, + gYt = { + name: "IoTeX Network Mainnet", + chain: "iotex.io", + rpc: [ + "https://iotex-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://babel-api.mainnet.iotex.io", + ], + faucets: [], + nativeCurrency: { name: "IoTeX", symbol: "IOTX", decimals: 18 }, + infoURL: "https://iotex.io", + shortName: "iotex-mainnet", + chainId: 4689, + networkId: 4689, + explorers: [ + { + name: "iotexscan", + url: "https://iotexscan.io", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "iotex-network", + }, + bYt = { + name: "IoTeX Network Testnet", + chain: "iotex.io", + rpc: [ + "https://iotex-network-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://babel-api.testnet.iotex.io", + ], + faucets: ["https://faucet.iotex.io/"], + nativeCurrency: { name: "IoTeX", symbol: "IOTX", decimals: 18 }, + infoURL: "https://iotex.io", + shortName: "iotex-testnet", + chainId: 4690, + networkId: 4690, + explorers: [ + { + name: "testnet iotexscan", + url: "https://testnet.iotexscan.io", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "iotex-network-testnet", + }, + vYt = { + name: "BlackFort Exchange Network Testnet", + chain: "TBXN", + rpc: [ + "https://blackfort-exchange-network-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://testnet.blackfort.network/rpc", + ], + faucets: [], + nativeCurrency: { + name: "BlackFort Testnet Token", + symbol: "TBXN", + decimals: 18, + }, + features: [{ name: "EIP155" }, { name: "EIP1559" }], + infoURL: "https://blackfort.exchange", + shortName: "TBXN", + chainId: 4777, + networkId: 4777, + icon: { + url: "ipfs://QmPasA8xykRtJDivB2bcKDiRCUNWDPtfUTTKVAcaF2wVxC", + width: 1968, + height: 1968, + format: "png", + }, + explorers: [ + { + name: "blockscout", + url: "https://testnet-explorer.blackfort.network", + icon: "blockscout", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "blackfort-exchange-network-testnet", + }, + wYt = { + name: "Venidium Testnet", + chain: "XVM", + rpc: [ + "https://venidium-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc-evm-testnet.venidium.io", + ], + faucets: [], + nativeCurrency: { name: "Venidium", symbol: "XVM", decimals: 18 }, + infoURL: "https://venidium.io", + shortName: "txvm", + chainId: 4918, + networkId: 4918, + explorers: [ + { + name: "Venidium EVM Testnet Explorer", + url: "https://evm-testnet.venidiumexplorer.com", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "venidium-testnet", + }, + _Yt = { + name: "Venidium Mainnet", + chain: "XVM", + icon: { + url: "ipfs://bafkreiaplwlym5g27jm4mjhotfqq6al2cxp3fnkmzdusqjg7wnipq5wn2e", + width: 1e3, + height: 1e3, + format: "png", + }, + rpc: [ + "https://venidium.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.venidium.io", + ], + faucets: [], + nativeCurrency: { name: "Venidium", symbol: "XVM", decimals: 18 }, + infoURL: "https://venidium.io", + shortName: "xvm", + chainId: 4919, + networkId: 4919, + explorers: [ + { + name: "Venidium Explorer", + url: "https://evm.venidiumexplorer.com", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "venidium", + }, + xYt = { + name: "BlackFort Exchange Network", + chain: "BXN", + rpc: [ + "https://blackfort-exchange-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://mainnet.blackfort.network/rpc", + "https://mainnet-1.blackfort.network/rpc", + "https://mainnet-2.blackfort.network/rpc", + "https://mainnet-3.blackfort.network/rpc", + ], + faucets: [], + nativeCurrency: { + name: "BlackFort Token", + symbol: "BXN", + decimals: 18, + }, + features: [{ name: "EIP155" }, { name: "EIP1559" }], + infoURL: "https://blackfort.exchange", + shortName: "BXN", + chainId: 4999, + networkId: 4999, + icon: { + url: "ipfs://QmPasA8xykRtJDivB2bcKDiRCUNWDPtfUTTKVAcaF2wVxC", + width: 1968, + height: 1968, + format: "png", + }, + explorers: [ + { + name: "blockscout", + url: "https://explorer.blackfort.network", + icon: "blockscout", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "blackfort-exchange-network", + }, + TYt = { + name: "Mantle", + chain: "ETH", + rpc: [ + "https://mantle.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.mantle.xyz", + ], + faucets: [], + nativeCurrency: { name: "BitDAO", symbol: "BIT", decimals: 18 }, + infoURL: "https://mantle.xyz", + shortName: "mantle", + chainId: 5e3, + networkId: 5e3, + explorers: [ + { + name: "Mantle Explorer", + url: "https://explorer.mantle.xyz", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "mantle", + }, + EYt = { + name: "Mantle Testnet", + chain: "ETH", + rpc: [ + "https://mantle-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.testnet.mantle.xyz", + ], + faucets: ["https://faucet.testnet.mantle.xyz"], + nativeCurrency: { name: "Testnet BitDAO", symbol: "BIT", decimals: 18 }, + infoURL: "https://mantle.xyz", + shortName: "mantle-testnet", + chainId: 5001, + networkId: 5001, + explorers: [ + { + name: "Mantle Testnet Explorer", + url: "https://explorer.testnet.mantle.xyz", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "mantle-testnet", + }, + CYt = { + name: "TLChain Network Mainnet", + chain: "TLC", + icon: { + url: "ipfs://QmaR5TsgnWSjLys6wGaciKUbc5qYL3Es4jtgQcosVqDWR3", + width: 2048, + height: 2048, + format: "png", + }, + rpc: [ + "https://tlchain-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://mainnet-rpc.tlxscan.com/", + ], + faucets: [], + nativeCurrency: { + name: "TLChain Network", + symbol: "TLC", + decimals: 18, + }, + infoURL: "https://tlchain.network/", + shortName: "tlc", + chainId: 5177, + networkId: 5177, + explorers: [ + { + name: "TLChain Explorer", + url: "https://explorer.tlchain.network", + standard: "none", + }, + ], + testnet: !1, + slug: "tlchain-network", + }, + IYt = { + name: "EraSwap Mainnet", + chain: "ESN", + icon: { + url: "ipfs://QmV1wZ1RVXeD7216aiVBpLkbBBHWNuoTvcSzpVQsqi2uaH", + width: 200, + height: 200, + format: "png", + }, + rpc: [ + "https://eraswap.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://mainnet.eraswap.network", + "https://rpc-mumbai.mainnet.eraswap.network", + ], + faucets: [], + nativeCurrency: { name: "EraSwap", symbol: "ES", decimals: 18 }, + infoURL: "https://eraswap.info/", + shortName: "es", + chainId: 5197, + networkId: 5197, + testnet: !1, + slug: "eraswap", + }, + AYt = { + name: "Humanode Mainnet", + chain: "HMND", + rpc: [ + "https://humanode.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://explorer-rpc-http.mainnet.stages.humanode.io", + ], + faucets: [], + nativeCurrency: { name: "HMND", symbol: "HMND", decimals: 18 }, + infoURL: "https://humanode.io", + shortName: "hmnd", + chainId: 5234, + networkId: 5234, + explorers: [], + testnet: !1, + slug: "humanode", + }, + kYt = { + name: "Uzmi Network Mainnet", + chain: "UZMI", + rpc: [ + "https://uzmi-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://network.uzmigames.com.br/", + ], + faucets: [], + nativeCurrency: { name: "UZMI", symbol: "UZMI", decimals: 18 }, + infoURL: "https://uzmigames.com.br/", + shortName: "UZMI", + chainId: 5315, + networkId: 5315, + testnet: !1, + slug: "uzmi-network", + }, + SYt = { + name: "Nahmii Mainnet", + chain: "Nahmii", + rpc: [ + "https://nahmii.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://l2.nahmii.io", + ], + faucets: [], + nativeCurrency: { name: "Ether", symbol: "ETH", decimals: 18 }, + infoURL: "https://nahmii.io", + shortName: "Nahmii", + chainId: 5551, + networkId: 5551, + icon: { + url: "ipfs://QmZhKXgoGpzvthr2eh8ZNgT75YvMtEBegdELAaMPPzf5QT", + width: 384, + height: 384, + format: "png", + }, + explorers: [ + { + name: "Nahmii mainnet explorer", + url: "https://explorer.nahmii.io", + icon: "nahmii", + standard: "EIP3091", + }, + ], + parent: { + type: "L2", + chain: "eip155-1", + bridges: [{ url: "https://bridge.nahmii.io" }], + }, + testnet: !1, + slug: "nahmii", + }, + MYt = { + name: "Nahmii Testnet", + chain: "Nahmii", + rpc: [ + "https://nahmii-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://l2.testnet.nahmii.io", + ], + faucets: [], + nativeCurrency: { name: "Ether", symbol: "ETH", decimals: 18 }, + infoURL: "https://nahmii.io", + shortName: "NahmiiTestnet", + chainId: 5553, + networkId: 5553, + icon: { + url: "ipfs://QmZhKXgoGpzvthr2eh8ZNgT75YvMtEBegdELAaMPPzf5QT", + width: 384, + height: 384, + format: "png", + }, + explorers: [ + { + name: "blockscout", + url: "https://explorer.testnet.nahmii.io", + icon: "nahmii", + standard: "EIP3091", + }, + ], + parent: { + type: "L2", + chain: "eip155-3", + bridges: [{ url: "https://bridge.nahmii.io" }], + }, + testnet: !0, + slug: "nahmii-testnet", + }, + PYt = { + name: "Chain Verse Mainnet", + chain: "CVERSE", + icon: { + url: "ipfs://QmQyJt28h4wN3QHPXUQJQYQqGiFUD77han3zibZPzHbitk", + width: 1e3, + height: 1436, + format: "png", + }, + rpc: [ + "https://chain-verse.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.chainverse.info", + ], + faucets: [], + nativeCurrency: { name: "Oasys", symbol: "OAS", decimals: 18 }, + infoURL: "https://chainverse.info", + shortName: "cverse", + chainId: 5555, + networkId: 5555, + explorers: [ + { + name: "Chain Verse Explorer", + url: "https://explorer.chainverse.info", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "chain-verse", + }, + RYt = { + name: "Syscoin Tanenbaum Testnet", + chain: "SYS", + rpc: [ + "https://syscoin-tanenbaum-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.tanenbaum.io", + "wss://rpc.tanenbaum.io/wss", + ], + faucets: ["https://faucet.tanenbaum.io"], + nativeCurrency: { + name: "Testnet Syscoin", + symbol: "tSYS", + decimals: 18, + }, + infoURL: "https://syscoin.org", + shortName: "tsys", + chainId: 5700, + networkId: 5700, + explorers: [ + { + name: "Syscoin Testnet Block Explorer", + url: "https://tanenbaum.io", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "syscoin-tanenbaum-testnet", + }, + BYt = { + name: "Ganache", + title: "Ganache GUI Ethereum Testnet", + chain: "ETH", + icon: { + url: "ipfs://Qmc9N7V8CiLB4r7FEcG7GojqfiGGsRCZqcFWCahwMohbDW", + width: 267, + height: 300, + format: "png", + }, + rpc: [ + "https://ganache.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://127.0.0.1:7545", + ], + faucets: [], + nativeCurrency: { + name: "Ganache Test Ether", + symbol: "ETH", + decimals: 18, + }, + infoURL: "https://trufflesuite.com/ganache/", + shortName: "ggui", + chainId: 5777, + networkId: 5777, + explorers: [], + testnet: !0, + slug: "ganache", + }, + NYt = { + name: "Ontology Testnet", + chain: "Ontology", + icon: { + url: "ipfs://bafkreigmvn6spvbiirtutowpq6jmetevbxoof5plzixjoerbeswy4htfb4", + width: 400, + height: 400, + format: "png", + }, + rpc: [ + "https://ontology-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "http://polaris1.ont.io:20339", + "http://polaris2.ont.io:20339", + "http://polaris3.ont.io:20339", + "http://polaris4.ont.io:20339", + "https://polaris1.ont.io:10339", + "https://polaris2.ont.io:10339", + "https://polaris3.ont.io:10339", + "https://polaris4.ont.io:10339", + ], + faucets: ["https://developer.ont.io/"], + nativeCurrency: { name: "ONG", symbol: "ONG", decimals: 18 }, + infoURL: "https://ont.io/", + shortName: "OntologyTestnet", + chainId: 5851, + networkId: 5851, + explorers: [ + { + name: "explorer", + url: "https://explorer.ont.io/testnet", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "ontology-testnet", + }, + OYt = { + name: "Wegochain Rubidium Mainnet", + chain: "RBD", + rpc: [ + "https://wegochain-rubidium.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://proxy.wegochain.io", + "http://wallet.wegochain.io:7764", + ], + faucets: [], + nativeCurrency: { name: "Rubid", symbol: "RBD", decimals: 18 }, + infoURL: "https://www.wegochain.io", + shortName: "rbd", + chainId: 5869, + networkId: 5869, + explorers: [ + { + name: "wegoscan2", + url: "https://scan2.wegochain.io", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "wegochain-rubidium", + }, + LYt = { + name: "Tres Testnet", + chain: "TresLeches", + rpc: [ + "https://tres-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc-test.tresleches.finance/", + ], + faucets: ["http://faucet.tresleches.finance:8080"], + nativeCurrency: { name: "TRES", symbol: "TRES", decimals: 18 }, + infoURL: "https://treschain.com", + shortName: "TRESTEST", + chainId: 6065, + networkId: 6065, + icon: { + url: "ipfs://QmS33ypsZ1Hx5LMMACaJaxePy9QNYMwu4D12niobExLK74", + width: 512, + height: 512, + format: "png", + }, + explorers: [ + { + name: "treslechesexplorer", + url: "https://explorer-test.tresleches.finance", + icon: "treslechesexplorer", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "tres-testnet", + }, + DYt = { + name: "Tres Mainnet", + chain: "TresLeches", + rpc: [ + "https://tres.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.tresleches.finance/", + "https://rpc.treschain.io/", + ], + faucets: [], + nativeCurrency: { name: "TRES", symbol: "TRES", decimals: 18 }, + infoURL: "https://treschain.com", + shortName: "TRESMAIN", + chainId: 6066, + networkId: 6066, + icon: { + url: "ipfs://QmS33ypsZ1Hx5LMMACaJaxePy9QNYMwu4D12niobExLK74", + width: 512, + height: 512, + format: "png", + }, + explorers: [ + { + name: "treslechesexplorer", + url: "https://explorer.tresleches.finance", + icon: "treslechesexplorer", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "tres", + }, + qYt = { + name: "Pixie Chain Mainnet", + chain: "PixieChain", + rpc: [ + "https://pixie-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://http-mainnet.chain.pixie.xyz", + "wss://ws-mainnet.chain.pixie.xyz", + ], + faucets: [], + nativeCurrency: { + name: "Pixie Chain Native Token", + symbol: "PIX", + decimals: 18, + }, + infoURL: "https://chain.pixie.xyz", + shortName: "pixie-chain", + chainId: 6626, + networkId: 6626, + explorers: [ + { + name: "blockscout", + url: "https://scan.chain.pixie.xyz", + standard: "none", + }, + ], + testnet: !1, + slug: "pixie-chain", + }, + FYt = { + name: "Gold Smart Chain Mainnet", + chain: "STAND", + icon: { + url: "ipfs://QmPNuymyaKLJhCaXnyrsL8358FeTxabZFsaxMmWNU4Tzt3", + width: 396, + height: 418, + format: "png", + }, + rpc: [ + "https://gold-smart-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc-mainnet.goldsmartchain.com", + ], + faucets: ["https://faucet.goldsmartchain.com"], + nativeCurrency: { + name: "Standard in Gold", + symbol: "STAND", + decimals: 18, + }, + infoURL: "https://goldsmartchain.com", + shortName: "STANDm", + chainId: 6789, + networkId: 6789, + explorers: [ + { + name: "Gold Smart Chain", + url: "https://mainnet.goldsmartchain.com", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "gold-smart-chain", + }, + WYt = { + name: "Tomb Chain Mainnet", + chain: "Tomb Chain", + rpc: [ + "https://tomb-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.tombchain.com/", + ], + faucets: [], + nativeCurrency: { name: "Tomb", symbol: "TOMB", decimals: 18 }, + infoURL: "https://tombchain.com/", + shortName: "tombchain", + chainId: 6969, + networkId: 6969, + explorers: [ + { name: "tombscout", url: "https://tombscout.com", standard: "none" }, + ], + parent: { + type: "L2", + chain: "eip155-250", + bridges: [{ url: "https://lif3.com/bridge" }], + }, + testnet: !1, + slug: "tomb-chain", + }, + UYt = { + name: "PolySmartChain", + chain: "PSC", + rpc: [ + "https://polysmartchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://seed0.polysmartchain.com/", + "https://seed1.polysmartchain.com/", + "https://seed2.polysmartchain.com/", + ], + faucets: [], + nativeCurrency: { name: "PSC", symbol: "PSC", decimals: 18 }, + infoURL: "https://www.polysmartchain.com/", + shortName: "psc", + chainId: 6999, + networkId: 6999, + testnet: !1, + slug: "polysmartchain", + }, + HYt = { + name: "ZetaChain Mainnet", + chain: "ZetaChain", + icon: { + url: "ipfs://QmeABfwZ2nAxDzYyqZ1LEypPgQFMjEyrx8FfnoPLkF8R3f", + width: 1280, + height: 1280, + format: "png", + }, + rpc: [ + "https://zetachain.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://api.mainnet.zetachain.com/evm", + ], + faucets: [], + nativeCurrency: { name: "Zeta", symbol: "ZETA", decimals: 18 }, + infoURL: "https://docs.zetachain.com/", + shortName: "zetachain-mainnet", + chainId: 7e3, + networkId: 7e3, + status: "incubating", + explorers: [ + { + name: "ZetaChain Mainnet Explorer", + url: "https://explorer.mainnet.zetachain.com", + standard: "none", + }, + ], + testnet: !1, + slug: "zetachain", + }, + zYt = { + name: "ZetaChain Athens Testnet", + chain: "ZetaChain", + icon: { + url: "ipfs://QmeABfwZ2nAxDzYyqZ1LEypPgQFMjEyrx8FfnoPLkF8R3f", + width: 1280, + height: 1280, + format: "png", + }, + rpc: [ + "https://zetachain-athens-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://api.athens2.zetachain.com/evm", + ], + faucets: ["https://labs.zetachain.com/get-zeta"], + nativeCurrency: { name: "Zeta", symbol: "aZETA", decimals: 18 }, + infoURL: "https://docs.zetachain.com/", + shortName: "zetachain-athens", + chainId: 7001, + networkId: 7001, + status: "active", + explorers: [ + { + name: "ZetaChain Athens Testnet Explorer", + url: "https://explorer.athens.zetachain.com", + standard: "none", + }, + ], + testnet: !0, + slug: "zetachain-athens-testnet", + }, + jYt = { + name: "Ella the heart", + chain: "ella", + icon: { + url: "ipfs://QmVkAhSaHhH3wKoLT56Aq8dNyEH4RySPEpqPcLwsptGBDm", + width: 512, + height: 512, + format: "png", + }, + rpc: [ + "https://ella-the-heart.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.ella.network", + ], + faucets: [], + nativeCurrency: { name: "Ella", symbol: "ELLA", decimals: 18 }, + infoURL: "https://ella.network", + shortName: "ELLA", + chainId: 7027, + networkId: 7027, + explorers: [ + { name: "Ella", url: "https://ella.network", standard: "EIP3091" }, + ], + testnet: !1, + slug: "ella-the-heart", + }, + KYt = { + name: "Planq Mainnet", + chain: "Planq", + icon: { + url: "ipfs://QmWEy9xK5BoqxPuVs7T48WM4exJrxzkEFt45iHcxWqUy8D", + width: 256, + height: 256, + format: "png", + }, + rpc: [ + "https://planq.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://evm-rpc.planq.network", + ], + faucets: [], + nativeCurrency: { name: "Planq", symbol: "PLQ", decimals: 18 }, + infoURL: "https://planq.network", + shortName: "planq", + chainId: 7070, + networkId: 7070, + explorers: [ + { + name: "Planq EVM Explorer (Blockscout)", + url: "https://evm.planq.network", + standard: "none", + }, + { + name: "Planq Cosmos Explorer (BigDipper)", + url: "https://explorer.planq.network", + standard: "none", + }, + ], + testnet: !1, + slug: "planq", + }, + VYt = { + name: "Shyft Mainnet", + chain: "SHYFT", + icon: { + url: "ipfs://QmUkFZC2ZmoYPTKf7AHdjwRPZoV2h1MCuHaGM4iu8SNFpi", + width: 400, + height: 400, + format: "svg", + }, + rpc: [ + "https://shyft.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.shyft.network/", + ], + faucets: [], + nativeCurrency: { name: "Shyft", symbol: "SHYFT", decimals: 18 }, + infoURL: "https://shyft.network", + shortName: "shyft", + chainId: 7341, + networkId: 7341, + slip44: 2147490989, + explorers: [ + { + name: "Shyft BX", + url: "https://bx.shyft.network", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "shyft", + }, + GYt = { + name: "Canto", + chain: "Canto", + rpc: [ + "https://canto.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://canto.slingshot.finance", + "https://canto.neobase.one", + "https://mainnode.plexnode.org:8545", + ], + faucets: [], + nativeCurrency: { name: "Canto", symbol: "CANTO", decimals: 18 }, + infoURL: "https://canto.io", + shortName: "canto", + chainId: 7700, + networkId: 7700, + explorers: [ + { + name: "Canto EVM Explorer (Blockscout)", + url: "https://evm.explorer.canto.io", + standard: "none", + }, + { + name: "Canto Cosmos Explorer", + url: "https://cosmos-explorers.neobase.one", + standard: "none", + }, + { + name: "Canto EVM Explorer (Blockscout)", + url: "https://tuber.build", + standard: "none", + }, + ], + testnet: !1, + slug: "canto", + }, + YYt = { + name: "Rise of the Warbots Testnet", + chain: "nmactest", + rpc: [ + "https://rise-of-the-warbots-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://testnet1.riseofthewarbots.com", + "https://testnet2.riseofthewarbots.com", + "https://testnet3.riseofthewarbots.com", + "https://testnet4.riseofthewarbots.com", + "https://testnet5.riseofthewarbots.com", + ], + faucets: [], + nativeCurrency: { name: "Nano Machines", symbol: "NMAC", decimals: 18 }, + infoURL: "https://riseofthewarbots.com/", + shortName: "RiseOfTheWarbotsTestnet", + chainId: 7777, + networkId: 7777, + explorers: [ + { + name: "avascan", + url: "https://testnet.avascan.info/blockchain/2mZ9doojfwHzXN3VXDQELKnKyZYxv7833U8Yq5eTfFx3hxJtiy", + standard: "none", + }, + ], + testnet: !0, + slug: "rise-of-the-warbots-testnet", + }, + $Yt = { + name: "Hazlor Testnet", + chain: "SCAS", + rpc: [ + "https://hazlor-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://hatlas.rpc.hazlor.com:8545", + "wss://hatlas.rpc.hazlor.com:8546", + ], + faucets: ["https://faucet.hazlor.com"], + nativeCurrency: { + name: "Hazlor Test Coin", + symbol: "TSCAS", + decimals: 18, + }, + infoURL: "https://hazlor.com", + shortName: "tscas", + chainId: 7878, + networkId: 7878, + explorers: [ + { + name: "Hazlor Testnet Explorer", + url: "https://explorer.hazlor.com", + standard: "none", + }, + ], + testnet: !0, + slug: "hazlor-testnet", + }, + JYt = { + name: "Teleport", + chain: "Teleport", + rpc: [ + "https://teleport.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://evm-rpc.teleport.network", + ], + faucets: [], + nativeCurrency: { name: "Tele", symbol: "TELE", decimals: 18 }, + infoURL: "https://teleport.network", + shortName: "teleport", + chainId: 8e3, + networkId: 8e3, + icon: { + url: "ipfs://QmdP1sLnsmW9dwnfb1GxAXU1nHDzCvWBQNumvMXpdbCSuz", + width: 390, + height: 390, + format: "svg", + }, + explorers: [ + { + name: "Teleport EVM Explorer (Blockscout)", + url: "https://evm-explorer.teleport.network", + standard: "none", + icon: "teleport", + }, + { + name: "Teleport Cosmos Explorer (Big Dipper)", + url: "https://explorer.teleport.network", + standard: "none", + icon: "teleport", + }, + ], + testnet: !1, + slug: "teleport", + }, + ZYt = { + name: "Teleport Testnet", + chain: "Teleport", + rpc: [ + "https://teleport-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://evm-rpc.testnet.teleport.network", + ], + faucets: ["https://chain-docs.teleport.network/testnet/faucet.html"], + nativeCurrency: { name: "Tele", symbol: "TELE", decimals: 18 }, + infoURL: "https://teleport.network", + shortName: "teleport-testnet", + chainId: 8001, + networkId: 8001, + icon: { + url: "ipfs://QmdP1sLnsmW9dwnfb1GxAXU1nHDzCvWBQNumvMXpdbCSuz", + width: 390, + height: 390, + format: "svg", + }, + explorers: [ + { + name: "Teleport EVM Explorer (Blockscout)", + url: "https://evm-explorer.testnet.teleport.network", + standard: "none", + icon: "teleport", + }, + { + name: "Teleport Cosmos Explorer (Big Dipper)", + url: "https://explorer.testnet.teleport.network", + standard: "none", + icon: "teleport", + }, + ], + testnet: !0, + slug: "teleport-testnet", + }, + QYt = { + name: "MDGL Testnet", + chain: "MDGL", + rpc: [ + "https://mdgl-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://testnet.mdgl.io", + ], + faucets: [], + nativeCurrency: { name: "MDGL Token", symbol: "MDGLT", decimals: 18 }, + infoURL: "https://mdgl.io", + shortName: "mdgl", + chainId: 8029, + networkId: 8029, + testnet: !0, + slug: "mdgl-testnet", + }, + XYt = { + name: "Shardeum Liberty 1.X", + chain: "Shardeum", + icon: { + url: "ipfs://Qma1bfuubpepKn7DLDy4NPSKDeT3S4VPCNhu6UmdGrb6YD", + width: 609, + height: 533, + format: "png", + }, + rpc: [ + "https://shardeum-liberty-1-x.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://liberty10.shardeum.org/", + ], + faucets: ["https://faucet.liberty10.shardeum.org"], + nativeCurrency: { name: "Shardeum SHM", symbol: "SHM", decimals: 18 }, + infoURL: "https://docs.shardeum.org/", + shortName: "Liberty10", + chainId: 8080, + networkId: 8080, + explorers: [ + { + name: "Shardeum Scan", + url: "https://explorer-liberty10.shardeum.org", + standard: "none", + }, + ], + redFlags: ["reusedChainId"], + testnet: !1, + slug: "shardeum-liberty-1-x", + }, + e$t = { + name: "Shardeum Liberty 2.X", + chain: "Shardeum", + icon: { + url: "ipfs://Qma1bfuubpepKn7DLDy4NPSKDeT3S4VPCNhu6UmdGrb6YD", + width: 609, + height: 533, + format: "png", + }, + rpc: [ + "https://shardeum-liberty-2-x.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://liberty20.shardeum.org/", + ], + faucets: ["https://faucet.liberty20.shardeum.org"], + nativeCurrency: { name: "Shardeum SHM", symbol: "SHM", decimals: 18 }, + infoURL: "https://docs.shardeum.org/", + shortName: "Liberty20", + chainId: 8081, + networkId: 8081, + explorers: [ + { + name: "Shardeum Scan", + url: "https://explorer-liberty20.shardeum.org", + standard: "none", + }, + ], + redFlags: ["reusedChainId"], + testnet: !1, + slug: "shardeum-liberty-2-x", + }, + t$t = { + name: "Shardeum Sphinx 1.X", + chain: "Shardeum", + icon: { + url: "ipfs://Qma1bfuubpepKn7DLDy4NPSKDeT3S4VPCNhu6UmdGrb6YD", + width: 609, + height: 533, + format: "png", + }, + rpc: [ + "https://shardeum-sphinx-1-x.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://sphinx.shardeum.org/", + ], + faucets: ["https://faucet-sphinx.shardeum.org/"], + nativeCurrency: { name: "Shardeum SHM", symbol: "SHM", decimals: 18 }, + infoURL: "https://docs.shardeum.org/", + shortName: "Sphinx10", + chainId: 8082, + networkId: 8082, + explorers: [ + { + name: "Shardeum Scan", + url: "https://explorer-sphinx.shardeum.org", + standard: "none", + }, + ], + redFlags: ["reusedChainId"], + testnet: !1, + slug: "shardeum-sphinx-1-x", + }, + r$t = { + name: "StreamuX Blockchain", + chain: "StreamuX", + rpc: [ + "https://streamux-blockchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://u0ma6t6heb:KDNwOsRDGcyM2Oeui1p431Bteb4rvcWkuPgQNHwB4FM@u0xy4x6x82-u0e2mg517m-rpc.us0-aws.kaleido.io/", + ], + faucets: [], + nativeCurrency: { name: "StreamuX", symbol: "SmuX", decimals: 18 }, + infoURL: "https://www.streamux.cloud", + shortName: "StreamuX", + chainId: 8098, + networkId: 8098, + testnet: !1, + slug: "streamux-blockchain", + }, + n$t = { + name: "Qitmeer Network Testnet", + chain: "MEER", + rpc: [], + faucets: [], + nativeCurrency: { + name: "Qitmeer Testnet", + symbol: "MEER-T", + decimals: 18, + }, + infoURL: "https://github.com/Qitmeer", + shortName: "meertest", + chainId: 8131, + networkId: 8131, + icon: { + url: "ipfs://QmWSbMuCwQzhBB6GRLYqZ87n5cnpzpYCehCAMMQmUXj4mm", + width: 512, + height: 512, + format: "png", + }, + explorers: [ + { + name: "meerscan testnet", + url: "https://testnet.qng.meerscan.io", + standard: "none", + }, + ], + testnet: !0, + slug: "qitmeer-network-testnet", + }, + a$t = { + name: "BeOne Chain Testnet", + chain: "BOC", + rpc: [ + "https://beone-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://pre-boc1.beonechain.com", + "https://pre-boc2.beonechain.com", + "https://pre-boc3.beonechain.com", + ], + faucets: ["https://testnet.beonescan.com/faucet"], + nativeCurrency: { + name: "BeOne Chain Testnet", + symbol: "BOC", + decimals: 18, + }, + infoURL: "https://testnet.beonescan.com", + shortName: "tBOC", + chainId: 8181, + networkId: 8181, + icon: { + url: "ipfs://QmbVLQnaMDu86bPyKgCvTGhFBeYwjr15hQnrCcsp1EkAGL", + width: 500, + height: 500, + format: "png", + }, + explorers: [ + { + name: "BeOne Chain Testnet", + url: "https://testnet.beonescan.com", + icon: "beonechain", + standard: "none", + }, + ], + testnet: !0, + slug: "beone-chain-testnet", + }, + i$t = { + name: "Klaytn Mainnet Cypress", + chain: "KLAY", + rpc: [ + "https://klaytn-cypress.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://public-node-api.klaytnapi.com/v1/cypress", + ], + faucets: [], + nativeCurrency: { name: "KLAY", symbol: "KLAY", decimals: 18 }, + infoURL: "https://www.klaytn.com/", + shortName: "Cypress", + chainId: 8217, + networkId: 8217, + slip44: 8217, + explorers: [ + { + name: "Klaytnscope", + url: "https://scope.klaytn.com", + standard: "none", + }, + ], + testnet: !1, + slug: "klaytn-cypress", + }, + s$t = { + name: "Blockton Blockchain", + chain: "Blockton Blockchain", + icon: { + url: "ipfs://bafkreig3hoedafisrgc6iffdo2jcblm6kov35h72gcblc3zkmt7t4ucwhy", + width: 800, + height: 800, + format: "png", + }, + rpc: [ + "https://blockton-blockchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.blocktonscan.com/", + ], + faucets: ["https://faucet.blocktonscan.com/"], + nativeCurrency: { name: "BLOCKTON", symbol: "BTON", decimals: 18 }, + infoURL: "https://blocktoncoin.com", + shortName: "BTON", + chainId: 8272, + networkId: 8272, + explorers: [ + { + name: "Blockton Explorer", + url: "https://blocktonscan.com", + standard: "none", + }, + ], + testnet: !1, + slug: "blockton-blockchain", + }, + o$t = { + name: "KorthoTest", + chain: "Kortho", + rpc: [ + "https://korthotest.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://www.krotho-test.net", + ], + faucets: [], + nativeCurrency: { name: "Kortho Test", symbol: "KTO", decimals: 11 }, + infoURL: "https://www.kortho.io/", + shortName: "Kortho", + chainId: 8285, + networkId: 8285, + testnet: !0, + slug: "korthotest", + }, + c$t = { + name: "Toki Network", + chain: "TOKI", + rpc: [ + "https://toki-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://mainnet.buildwithtoki.com/v0/rpc", + ], + faucets: [], + nativeCurrency: { name: "Toki", symbol: "TOKI", decimals: 18 }, + infoURL: "https://www.buildwithtoki.com", + shortName: "toki", + chainId: 8654, + networkId: 8654, + icon: { + url: "ipfs://QmbCBBH4dFHGr8u1yQspCieQG9hLcPFNYdRx1wnVsX8hUw", + width: 512, + height: 512, + format: "svg", + }, + explorers: [], + testnet: !1, + slug: "toki-network", + }, + u$t = { + name: "Toki Testnet", + chain: "TOKI", + rpc: [ + "https://toki-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://testnet.buildwithtoki.com/v0/rpc", + ], + faucets: [], + nativeCurrency: { name: "Toki", symbol: "TOKI", decimals: 18 }, + infoURL: "https://www.buildwithtoki.com", + shortName: "toki-testnet", + chainId: 8655, + networkId: 8655, + icon: { + url: "ipfs://QmbCBBH4dFHGr8u1yQspCieQG9hLcPFNYdRx1wnVsX8hUw", + width: 512, + height: 512, + format: "svg", + }, + explorers: [], + testnet: !0, + slug: "toki-testnet", + }, + l$t = { + name: "TOOL Global Mainnet", + chain: "OLO", + rpc: [ + "https://tool-global.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://mainnet-web3.wolot.io", + ], + faucets: [], + nativeCurrency: { name: "TOOL Global", symbol: "OLO", decimals: 18 }, + infoURL: "https://ibdt.io", + shortName: "olo", + chainId: 8723, + networkId: 8723, + slip44: 479, + explorers: [ + { + name: "OLO Block Explorer", + url: "https://www.olo.network", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "tool-global", + }, + d$t = { + name: "TOOL Global Testnet", + chain: "OLO", + rpc: [ + "https://tool-global-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://testnet-web3.wolot.io", + ], + faucets: ["https://testnet-explorer.wolot.io"], + nativeCurrency: { name: "TOOL Global", symbol: "OLO", decimals: 18 }, + infoURL: "https://testnet-explorer.wolot.io", + shortName: "tolo", + chainId: 8724, + networkId: 8724, + slip44: 479, + testnet: !0, + slug: "tool-global-testnet", + }, + p$t = { + name: "Alph Network", + chain: "ALPH", + rpc: [ + "https://alph-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.alph.network", + "wss://rpc.alph.network", + ], + faucets: [], + nativeCurrency: { name: "Alph Network", symbol: "ALPH", decimals: 18 }, + infoURL: "https://alph.network", + shortName: "alph", + chainId: 8738, + networkId: 8738, + explorers: [ + { + name: "alphscan", + url: "https://explorer.alph.network", + icon: "alphscan", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "alph-network", + }, + h$t = { + name: "TMY Chain", + chain: "TMY", + icon: { + url: "ipfs://QmdwQDr6vmBtXmK2TmknkEuZNoaDqTasFdZdu3DRw8b2wt", + width: 1e3, + height: 1628, + format: "png", + }, + rpc: [ + "https://tmy-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://node1.tmyblockchain.org/rpc", + ], + faucets: ["https://faucet.tmychain.org/"], + nativeCurrency: { name: "TMY", symbol: "TMY", decimals: 18 }, + infoURL: "https://tmychain.org/", + shortName: "tmy", + chainId: 8768, + networkId: 8768, + testnet: !1, + slug: "tmy-chain", + }, + f$t = { + name: "MARO Blockchain Mainnet", + chain: "MARO Blockchain", + icon: { + url: "ipfs://bafkreig47k53aipns6nu3u5fxpysp7mogzk6zyvatgpbam7yut3yvtuefa", + width: 160, + height: 160, + format: "png", + }, + rpc: [ + "https://maro-blockchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc-mainnet.ma.ro", + ], + faucets: [], + nativeCurrency: { name: "MARO", symbol: "MARO", decimals: 18 }, + infoURL: "https://ma.ro/", + shortName: "maro", + chainId: 8848, + networkId: 8848, + explorers: [ + { name: "MARO Scan", url: "https://scan.ma.ro/#", standard: "none" }, + ], + testnet: !1, + slug: "maro-blockchain", + }, + m$t = { + name: "Unique", + icon: { + url: "ipfs://QmbJ7CGZ2GxWMp7s6jy71UGzRsMe4w3KANKXDAExYWdaFR", + width: 48, + height: 48, + format: "svg", + }, + chain: "UNQ", + rpc: [ + "https://unique.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.unique.network", + "https://eu-rpc.unique.network", + "https://asia-rpc.unique.network", + "https://us-rpc.unique.network", + ], + faucets: [], + nativeCurrency: { name: "Unique", symbol: "UNQ", decimals: 18 }, + infoURL: "https://unique.network", + shortName: "unq", + chainId: 8880, + networkId: 8880, + explorers: [ + { + name: "Unique Scan", + url: "https://uniquescan.io/unique", + standard: "none", + }, + ], + testnet: !1, + slug: "unique", + }, + y$t = { + name: "Quartz by Unique", + icon: { + url: "ipfs://QmaGPdccULQEFcCGxzstnmE8THfac2kSiGwvWRAiaRq4dp", + width: 48, + height: 48, + format: "svg", + }, + chain: "UNQ", + rpc: [ + "https://quartz-by-unique.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc-quartz.unique.network", + "https://quartz.api.onfinality.io/public-ws", + "https://eu-rpc-quartz.unique.network", + "https://asia-rpc-quartz.unique.network", + "https://us-rpc-quartz.unique.network", + ], + faucets: [], + nativeCurrency: { name: "Quartz", symbol: "QTZ", decimals: 18 }, + infoURL: "https://unique.network", + shortName: "qtz", + chainId: 8881, + networkId: 8881, + explorers: [ + { + name: "Unique Scan / Quartz", + url: "https://uniquescan.io/quartz", + standard: "none", + }, + ], + testnet: !1, + slug: "quartz-by-unique", + }, + g$t = { + name: "Opal testnet by Unique", + icon: { + url: "ipfs://QmYJDpmWyjDa3H6BxweFmQXk4fU8b1GU7M9EqYcaUNvXzc", + width: 48, + height: 48, + format: "svg", + }, + chain: "UNQ", + rpc: [ + "https://opal-testnet-by-unique.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc-opal.unique.network", + "https://us-rpc-opal.unique.network", + "https://eu-rpc-opal.unique.network", + "https://asia-rpc-opal.unique.network", + ], + faucets: ["https://t.me/unique2faucet_opal_bot"], + nativeCurrency: { name: "Opal", symbol: "UNQ", decimals: 18 }, + infoURL: "https://unique.network", + shortName: "opl", + chainId: 8882, + networkId: 8882, + explorers: [ + { + name: "Unique Scan / Opal", + url: "https://uniquescan.io/opal", + standard: "none", + }, + ], + testnet: !0, + slug: "opal-testnet-by-unique", + }, + b$t = { + name: "Sapphire by Unique", + icon: { + url: "ipfs://Qmd1PGt4cDRjFbh4ihP5QKEd4XQVwN1MkebYKdF56V74pf", + width: 48, + height: 48, + format: "svg", + }, + chain: "UNQ", + rpc: [ + "https://sapphire-by-unique.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc-sapphire.unique.network", + "https://us-rpc-sapphire.unique.network", + "https://eu-rpc-sapphire.unique.network", + "https://asia-rpc-sapphire.unique.network", + ], + faucets: [], + nativeCurrency: { name: "Quartz", symbol: "QTZ", decimals: 18 }, + infoURL: "https://unique.network", + shortName: "sph", + chainId: 8883, + networkId: 8883, + explorers: [ + { + name: "Unique Scan / Sapphire", + url: "https://uniquescan.io/sapphire", + standard: "none", + }, + ], + testnet: !1, + slug: "sapphire-by-unique", + }, + v$t = { + name: "XANAChain", + chain: "XANAChain", + rpc: [ + "https://xanachain.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://mainnet.xana.net/rpc", + ], + faucets: [], + nativeCurrency: { name: "XETA", symbol: "XETA", decimals: 18 }, + infoURL: "https://xanachain.xana.net/", + shortName: "XANAChain", + chainId: 8888, + networkId: 8888, + icon: { + url: "ipfs://QmWGNfwJ9o2vmKD3E6fjrxpbFP8W5q45zmYzHHoXwqqAoj", + width: 512, + height: 512, + format: "png", + }, + explorers: [ + { + name: "XANAChain", + url: "https://xanachain.xana.net", + standard: "EIP3091", + }, + ], + redFlags: ["reusedChainId"], + testnet: !1, + slug: "xanachain", + }, + w$t = { + name: "Vyvo Smart Chain", + chain: "VSC", + rpc: [ + "https://vyvo-smart-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://vsc-dataseed.vyvo.org:8889", + ], + faucets: [], + nativeCurrency: { name: "VSC", symbol: "VSC", decimals: 18 }, + infoURL: "https://vsc-dataseed.vyvo.org", + shortName: "vsc", + chainId: 8889, + networkId: 8889, + testnet: !1, + slug: "vyvo-smart-chain", + }, + _$t = { + name: "Mammoth Mainnet", + title: "Mammoth Chain", + chain: "MMT", + rpc: [ + "https://mammoth.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://dataseed.mmtscan.io", + "https://dataseed1.mmtscan.io", + "https://dataseed2.mmtscan.io", + ], + faucets: ["https://faucet.mmtscan.io/"], + nativeCurrency: { name: "Mammoth Token", symbol: "MMT", decimals: 18 }, + infoURL: "https://mmtchain.io/", + shortName: "mmt", + chainId: 8898, + networkId: 8898, + icon: { + url: "ipfs://QmaF5gi2CbDKsJ2UchNkjBqmWjv8JEDP3vePBmxeUHiaK4", + width: 250, + height: 250, + format: "png", + }, + explorers: [ + { + name: "mmtscan", + url: "https://mmtscan.io", + standard: "EIP3091", + icon: "mmt", + }, + ], + testnet: !1, + slug: "mammoth", + }, + x$t = { + name: "JIBCHAIN L1", + chain: "JBC", + rpc: [ + "https://jibchain-l1.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc-l1.jibchain.net", + ], + faucets: [], + features: [{ name: "EIP155" }, { name: "EIP1559" }], + nativeCurrency: { name: "JIBCOIN", symbol: "JBC", decimals: 18 }, + infoURL: "https://jibchain.net", + shortName: "jbc", + chainId: 8899, + networkId: 8899, + explorers: [ + { + name: "JIBCHAIN Explorer", + url: "https://exp-l1.jibchain.net", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "jibchain-l1", + }, + T$t = { + name: "Giant Mammoth Mainnet", + title: "Giant Mammoth Chain", + chain: "GMMT", + rpc: [ + "https://giant-mammoth.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc-asia.gmmtchain.io", + ], + faucets: [], + nativeCurrency: { + name: "Giant Mammoth Coin", + symbol: "GMMT", + decimals: 18, + }, + infoURL: "https://gmmtchain.io/", + shortName: "gmmt", + chainId: 8989, + networkId: 8989, + icon: { + url: "ipfs://QmVth4aPeskDTFqRifUugJx6gyEHCmx2PFbMWUtsCSQFkF", + width: 468, + height: 518, + format: "png", + }, + explorers: [ + { + name: "gmmtscan", + url: "https://scan.gmmtchain.io", + standard: "EIP3091", + icon: "gmmt", + }, + ], + testnet: !1, + slug: "giant-mammoth", + }, + E$t = { + name: "bloxberg", + chain: "bloxberg", + rpc: [ + "https://bloxberg.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://core.bloxberg.org", + ], + faucets: ["https://faucet.bloxberg.org/"], + nativeCurrency: { name: "BERG", symbol: "U+25B3", decimals: 18 }, + infoURL: "https://bloxberg.org", + shortName: "berg", + chainId: 8995, + networkId: 8995, + testnet: !1, + slug: "bloxberg", + }, + C$t = { + name: "Evmos Testnet", + chain: "Evmos", + rpc: [ + "https://evmos-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://eth.bd.evmos.dev:8545", + ], + faucets: ["https://faucet.evmos.dev"], + nativeCurrency: { name: "test-Evmos", symbol: "tEVMOS", decimals: 18 }, + infoURL: "https://evmos.org", + shortName: "evmos-testnet", + chainId: 9e3, + networkId: 9e3, + icon: { + url: "ipfs://QmeZW6VKUFTbz7PPW8PmDR3ZHa6osYPLBFPnW8T5LSU49c", + width: 400, + height: 400, + format: "png", + }, + explorers: [ + { + name: "Evmos EVM Explorer", + url: "https://evm.evmos.dev", + standard: "EIP3091", + icon: "evmos", + }, + { + name: "Evmos Cosmos Explorer", + url: "https://explorer.evmos.dev", + standard: "none", + icon: "evmos", + }, + ], + testnet: !0, + slug: "evmos-testnet", + }, + I$t = { + name: "Evmos", + chain: "Evmos", + rpc: [ + "https://evmos.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://eth.bd.evmos.org:8545", + "https://evmos-evm.publicnode.com", + ], + faucets: [], + nativeCurrency: { name: "Evmos", symbol: "EVMOS", decimals: 18 }, + infoURL: "https://evmos.org", + shortName: "evmos", + chainId: 9001, + networkId: 9001, + icon: { + url: "ipfs://QmeZW6VKUFTbz7PPW8PmDR3ZHa6osYPLBFPnW8T5LSU49c", + width: 400, + height: 400, + format: "png", + }, + explorers: [ + { + name: "Evmos EVM Explorer (Escan)", + url: "https://escan.live", + standard: "none", + icon: "evmos", + }, + { + name: "Evmos Cosmos Explorer (Mintscan)", + url: "https://www.mintscan.io/evmos", + standard: "none", + icon: "evmos", + }, + ], + testnet: !1, + slug: "evmos", + }, + A$t = { + name: "BerylBit Mainnet", + chain: "BRB", + rpc: [ + "https://berylbit.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://mainnet.berylbit.io", + ], + faucets: ["https://t.me/BerylBit"], + nativeCurrency: { + name: "BerylBit Chain Native Token", + symbol: "BRB", + decimals: 18, + }, + infoURL: "https://www.beryl-bit.com", + shortName: "brb", + chainId: 9012, + networkId: 9012, + icon: { + url: "ipfs://QmeDXHkpranzqGN1BmQqZSrFp4vGXf4JfaB5iq8WHHiwDi", + width: 162, + height: 162, + format: "png", + }, + explorers: [ + { + name: "berylbit-explorer", + url: "https://explorer.berylbit.io", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "berylbit", + }, + k$t = { + name: "Genesis Coin", + chain: "Genesis", + rpc: [ + "https://genesis-coin.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://genesis-gn.com", + "wss://genesis-gn.com", + ], + faucets: [], + nativeCurrency: { name: "GN Coin", symbol: "GNC", decimals: 18 }, + infoURL: "https://genesis-gn.com", + shortName: "GENEC", + chainId: 9100, + networkId: 9100, + testnet: !1, + slug: "genesis-coin", + }, + S$t = { + name: "Dogcoin Testnet", + chain: "DOGS", + icon: { + url: "ipfs://QmZCadkExKThak3msvszZjo6UnAbUJKE61dAcg4TixuMC3", + width: 160, + height: 171, + format: "png", + }, + rpc: [ + "https://dogcoin-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://testnet-rpc.dogcoin.network", + ], + faucets: ["https://faucet.dogcoin.network"], + nativeCurrency: { name: "Dogcoin", symbol: "DOGS", decimals: 18 }, + infoURL: "https://dogcoin.network", + shortName: "DOGSt", + chainId: 9339, + networkId: 9339, + explorers: [ + { + name: "Dogcoin", + url: "https://testnet.dogcoin.network", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "dogcoin-testnet", + }, + M$t = { + name: "Rangers Protocol Testnet Robin", + chain: "Rangers", + icon: { + url: "ipfs://QmfHG3xbg4iiopagww93Gu7tmvCpPwZdiwsUjd3Dt5mRwT", + width: 835, + height: 835, + format: "png", + }, + rpc: [ + "https://rangers-protocol-testnet-robin.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://robin.rangersprotocol.com/api/jsonrpc", + ], + faucets: ["https://robin-faucet.rangersprotocol.com"], + nativeCurrency: { + name: "Rangers Protocol Gas", + symbol: "tRPG", + decimals: 18, + }, + infoURL: "https://rangersprotocol.com", + shortName: "trpg", + chainId: 9527, + networkId: 9527, + explorers: [ + { + name: "rangersscan-robin", + url: "https://robin-rangersscan.rangersprotocol.com", + standard: "none", + }, + ], + testnet: !0, + slug: "rangers-protocol-testnet-robin", + }, + P$t = { + name: "QEasyWeb3 Testnet", + chain: "QET", + rpc: [ + "https://qeasyweb3-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://qeasyweb3.com", + ], + faucets: ["http://faucet.qeasyweb3.com"], + nativeCurrency: { name: "QET", symbol: "QET", decimals: 18 }, + infoURL: "https://www.qeasyweb3.com", + shortName: "QETTest", + chainId: 9528, + networkId: 9528, + explorers: [ + { + name: "QEasyWeb3 Explorer", + url: "https://www.qeasyweb3.com", + icon: "qetscan", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "qeasyweb3-testnet", + }, + R$t = { + name: "Oort MainnetDev", + title: "Oort MainnetDev", + chain: "MainnetDev", + rpc: [], + faucets: [], + nativeCurrency: { name: "Oort", symbol: "CCN", decimals: 18 }, + infoURL: "https://oortech.com", + shortName: "MainnetDev", + chainId: 9700, + networkId: 9700, + icon: { + url: "ipfs://QmZ1jbxFZcuotj3eZ6iKFrg9ZXnaV8AK6sGRa7ELrceWyD", + width: 1043, + height: 1079, + format: "png", + }, + testnet: !1, + slug: "oort-dev", + }, + B$t = { + name: "Boba BNB Testnet", + chain: "Boba BNB Testnet", + rpc: [ + "https://boba-bnb-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://testnet.bnb.boba.network", + "wss://wss.testnet.bnb.boba.network", + "https://replica.testnet.bnb.boba.network", + "wss://replica-wss.testnet.bnb.boba.network", + ], + faucets: [], + nativeCurrency: { name: "Boba Token", symbol: "BOBA", decimals: 18 }, + infoURL: "https://boba.network", + shortName: "BobaBnbTestnet", + chainId: 9728, + networkId: 9728, + explorers: [ + { + name: "Boba BNB Testnet block explorer", + url: "https://blockexplorer.testnet.bnb.boba.network", + standard: "none", + }, + ], + testnet: !0, + slug: "boba-bnb-testnet", + }, + N$t = { + name: "MainnetZ Testnet", + chain: "NetZ", + icon: { + url: "ipfs://QmT5gJ5weBiLT3GoYuF5yRTRLdPLCVZ3tXznfqW7M8fxgG", + width: 400, + height: 400, + format: "png", + }, + rpc: [ + "https://z-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://testnet-rpc.mainnetz.io", + ], + faucets: ["https://faucet.mainnetz.io"], + nativeCurrency: { name: "MainnetZ", symbol: "NetZ", decimals: 18 }, + infoURL: "https://testnet.mainnetz.io", + shortName: "NetZt", + chainId: 9768, + networkId: 9768, + explorers: [ + { + name: "MainnetZ", + url: "https://testnet.mainnetz.io", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "z-testnet", + }, + O$t = { + name: "myOwn Testnet", + chain: "myOwn", + rpc: [ + "https://myown-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://geth.dev.bccloud.net", + ], + faucets: [], + nativeCurrency: { name: "MYN", symbol: "MYN", decimals: 18 }, + infoURL: "https://docs.bccloud.net/", + shortName: "myn", + chainId: 9999, + networkId: 9999, + testnet: !0, + slug: "myown-testnet", + }, + L$t = { + name: "Smart Bitcoin Cash", + chain: "smartBCH", + rpc: [ + "https://smart-bitcoin-cash.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://smartbch.greyh.at", + "https://rpc-mainnet.smartbch.org", + "https://smartbch.fountainhead.cash/mainnet", + "https://smartbch.devops.cash/mainnet", + ], + faucets: [], + nativeCurrency: { name: "Bitcoin Cash", symbol: "BCH", decimals: 18 }, + infoURL: "https://smartbch.org/", + shortName: "smartbch", + chainId: 1e4, + networkId: 1e4, + testnet: !1, + slug: "smart-bitcoin-cash", + }, + D$t = { + name: "Smart Bitcoin Cash Testnet", + chain: "smartBCHTest", + rpc: [ + "https://smart-bitcoin-cash-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc-testnet.smartbch.org", + "https://smartbch.devops.cash/testnet", + ], + faucets: [], + nativeCurrency: { + name: "Bitcoin Cash Test Token", + symbol: "BCHT", + decimals: 18, + }, + infoURL: "http://smartbch.org/", + shortName: "smartbchtest", + chainId: 10001, + networkId: 10001, + testnet: !0, + slug: "smart-bitcoin-cash-testnet", + }, + q$t = { + name: "Gon Chain", + chain: "GonChain", + icon: { + url: "ipfs://QmPtiJGaApbW3ATZhPW3pKJpw3iGVrRGsZLWhrDKF9ZK18", + width: 1024, + height: 1024, + format: "png", + }, + rpc: [ + "https://gon-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://node1.testnet.gaiaopen.network", + "http://database1.gaiaopen.network", + ], + faucets: [], + nativeCurrency: { name: "Gon Token", symbol: "GT", decimals: 18 }, + infoURL: "", + shortName: "gon", + chainId: 10024, + networkId: 10024, + explorers: [ + { + name: "Gon Explorer", + url: "https://gonscan.com", + standard: "none", + }, + ], + testnet: !0, + slug: "gon-chain", + }, + F$t = { + name: "SJATSH", + chain: "ETH", + rpc: [ + "https://sjatsh.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "http://geth.free.idcfengye.com", + ], + faucets: [], + nativeCurrency: { name: "Ether", symbol: "ETH", decimals: 18 }, + infoURL: "https://sjis.me", + shortName: "SJ", + chainId: 10086, + networkId: 10086, + testnet: !1, + slug: "sjatsh", + }, + W$t = { + name: "Blockchain Genesis Mainnet", + chain: "GEN", + rpc: [ + "https://blockchain-genesis.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://eu.mainnet.xixoio.com", + "https://us.mainnet.xixoio.com", + "https://asia.mainnet.xixoio.com", + ], + faucets: [], + nativeCurrency: { name: "GEN", symbol: "GEN", decimals: 18 }, + infoURL: "https://www.xixoio.com/", + shortName: "GEN", + chainId: 10101, + networkId: 10101, + testnet: !1, + slug: "blockchain-genesis", + }, + U$t = { + name: "Chiado Testnet", + chain: "CHI", + icon: { + url: "ipfs://bafybeidk4swpgdyqmpz6shd5onvpaujvwiwthrhypufnwr6xh3dausz2dm", + width: 1800, + height: 1800, + format: "png", + }, + rpc: [ + "https://chiado-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.chiadochain.net", + "https://rpc.eu-central-2.gateway.fm/v3/gnosis/archival/chiado", + ], + faucets: ["https://gnosisfaucet.com"], + nativeCurrency: { name: "Chiado xDAI", symbol: "xDAI", decimals: 18 }, + infoURL: "https://docs.gnosischain.com", + shortName: "chi", + chainId: 10200, + networkId: 10200, + explorers: [ + { + name: "blockscout", + url: "https://blockscout.chiadochain.net", + icon: "blockscout", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "chiado-testnet", + }, + H$t = { + name: "0XTade", + chain: "0XTade Chain", + rpc: [ + "https://0xtade.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://node.0xtchain.com", + ], + faucets: [], + nativeCurrency: { name: "0XT", symbol: "0XT", decimals: 18 }, + infoURL: "https://www.0xtrade.finance/", + shortName: "0xt", + chainId: 10248, + networkId: 10248, + explorers: [ + { + name: "0xtrade Scan", + url: "https://www.0xtscan.com", + standard: "none", + }, + ], + testnet: !1, + slug: "0xtade", + }, + z$t = { + name: "Numbers Mainnet", + chain: "NUM", + icon: { + url: "ipfs://bafkreie3ba6ofosjqqiya6empkyw6u5xdrtcfzi2evvyt4u6utzeiezyhi", + width: 1500, + height: 1500, + format: "png", + }, + rpc: [ + "https://numbers.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://mainnetrpc.num.network", + ], + faucets: [], + nativeCurrency: { name: "NUM Token", symbol: "NUM", decimals: 18 }, + infoURL: "https://numbersprotocol.io", + shortName: "Jade", + chainId: 10507, + networkId: 10507, + explorers: [ + { + name: "ethernal", + url: "https://mainnet.num.network", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "numbers", + }, + j$t = { + name: "Numbers Testnet", + chain: "NUM", + icon: { + url: "ipfs://bafkreie3ba6ofosjqqiya6empkyw6u5xdrtcfzi2evvyt4u6utzeiezyhi", + width: 1500, + height: 1500, + format: "png", + }, + rpc: [ + "https://numbers-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://testnetrpc.num.network", + ], + faucets: [ + "https://faucet.avax.network/?subnet=num", + "https://faucet.num.network", + ], + nativeCurrency: { name: "NUM Token", symbol: "NUM", decimals: 18 }, + infoURL: "https://numbersprotocol.io", + shortName: "Snow", + chainId: 10508, + networkId: 10508, + explorers: [ + { + name: "ethernal", + url: "https://testnet.num.network", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "numbers-testnet", + }, + K$t = { + name: "CryptoCoinPay", + chain: "CCP", + rpc: [ + "https://cryptocoinpay.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "http://node106.cryptocoinpay.info:8545", + "ws://node106.cryptocoinpay.info:8546", + ], + faucets: [], + icon: { + url: "ipfs://QmPw1ixYYeXvTiRWoCt2jWe4YMd3B5o7TzL18SBEHXvhXX", + width: 200, + height: 200, + format: "png", + }, + nativeCurrency: { name: "CryptoCoinPay", symbol: "CCP", decimals: 18 }, + infoURL: "https://www.cryptocoinpay.co", + shortName: "CCP", + chainId: 10823, + networkId: 10823, + explorers: [ + { + name: "CCP Explorer", + url: "https://cryptocoinpay.info", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "cryptocoinpay", + }, + V$t = { + name: "Quadrans Blockchain", + chain: "QDC", + icon: { + url: "ipfs://QmZFiYHnE4TrezPz8wSap9nMxG6m98w4fv7ataj2TfLNck", + width: 1024, + height: 1024, + format: "png", + }, + rpc: [ + "https://quadrans-blockchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.quadrans.io", + "https://rpcna.quadrans.io", + "https://rpceu.quadrans.io", + ], + faucets: [], + nativeCurrency: { name: "Quadrans Coin", symbol: "QDC", decimals: 18 }, + infoURL: "https://quadrans.io", + shortName: "quadrans", + chainId: 10946, + networkId: 10946, + explorers: [ + { + name: "explorer", + url: "https://explorer.quadrans.io", + icon: "quadrans", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "quadrans-blockchain", + }, + G$t = { + name: "Quadrans Blockchain Testnet", + chain: "tQDC", + icon: { + url: "ipfs://QmZFiYHnE4TrezPz8wSap9nMxG6m98w4fv7ataj2TfLNck", + width: 1024, + height: 1024, + format: "png", + }, + rpc: [ + "https://quadrans-blockchain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpctest.quadrans.io", + "https://rpctest2.quadrans.io", + ], + faucets: ["https://faucetpage.quadrans.io"], + nativeCurrency: { + name: "Quadrans Testnet Coin", + symbol: "tQDC", + decimals: 18, + }, + infoURL: "https://quadrans.io", + shortName: "quadranstestnet", + chainId: 10947, + networkId: 10947, + explorers: [ + { + name: "explorer", + url: "https://explorer.testnet.quadrans.io", + icon: "quadrans", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "quadrans-blockchain-testnet", + }, + Y$t = { + name: "Astra", + chain: "Astra", + rpc: [ + "https://astra.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.astranaut.io", + "https://rpc1.astranaut.io", + ], + faucets: [], + nativeCurrency: { name: "Astra", symbol: "ASA", decimals: 18 }, + infoURL: "https://astranaut.io", + shortName: "astra", + chainId: 11110, + networkId: 11110, + icon: { + url: "ipfs://QmaBtaukPNNUNjdJSUAwuFFQMLbZX1Pc3fvXKTKQcds7Kf", + width: 104, + height: 80, + format: "png", + }, + explorers: [ + { + name: "Astra EVM Explorer (Blockscout)", + url: "https://explorer.astranaut.io", + standard: "none", + icon: "astra", + }, + { + name: "Astra PingPub Explorer", + url: "https://ping.astranaut.io/astra", + standard: "none", + icon: "astra", + }, + ], + testnet: !1, + slug: "astra", + }, + $$t = { + name: "WAGMI", + chain: "WAGMI", + icon: { + url: "ipfs://QmNoyUXxnak8B3xgFxErkVfyVEPJUMHBzq7qJcYzkUrPR4", + width: 1920, + height: 1920, + format: "png", + }, + rpc: [ + "https://wagmi.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://subnets.avax.network/wagmi/wagmi-chain-testnet/rpc", + ], + faucets: ["https://faucet.avax.network/?subnet=wagmi"], + nativeCurrency: { name: "WAGMI", symbol: "WGM", decimals: 18 }, + infoURL: "https://subnets-test.avax.network/wagmi/details", + shortName: "WAGMI", + chainId: 11111, + networkId: 11111, + explorers: [ + { + name: "Avalanche Subnet Explorer", + url: "https://subnets-test.avax.network/wagmi", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "wagmi", + }, + J$t = { + name: "Astra Testnet", + chain: "Astra", + rpc: [ + "https://astra-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.astranaut.dev", + ], + faucets: ["https://faucet.astranaut.dev"], + nativeCurrency: { name: "test-Astra", symbol: "tASA", decimals: 18 }, + infoURL: "https://astranaut.io", + shortName: "astra-testnet", + chainId: 11115, + networkId: 11115, + icon: { + url: "ipfs://QmaBtaukPNNUNjdJSUAwuFFQMLbZX1Pc3fvXKTKQcds7Kf", + width: 104, + height: 80, + format: "png", + }, + explorers: [ + { + name: "Astra EVM Explorer", + url: "https://explorer.astranaut.dev", + standard: "EIP3091", + icon: "astra", + }, + { + name: "Astra PingPub Explorer", + url: "https://ping.astranaut.dev/astra", + standard: "none", + icon: "astra", + }, + ], + testnet: !0, + slug: "astra-testnet", + }, + Z$t = { + name: "Haqq Network", + chain: "Haqq", + rpc: [ + "https://haqq-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.eth.haqq.network", + ], + faucets: [], + nativeCurrency: { name: "Islamic Coin", symbol: "ISLM", decimals: 18 }, + infoURL: "https://islamiccoin.net", + shortName: "ISLM", + chainId: 11235, + networkId: 11235, + explorers: [ + { + name: "Mainnet HAQQ Explorer", + url: "https://explorer.haqq.network", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "haqq-network", + }, + Q$t = { + name: "Shyft Testnet", + chain: "SHYFTT", + icon: { + url: "ipfs://QmUkFZC2ZmoYPTKf7AHdjwRPZoV2h1MCuHaGM4iu8SNFpi", + width: 400, + height: 400, + format: "svg", + }, + rpc: [], + faucets: [], + nativeCurrency: { + name: "Shyft Test Token", + symbol: "SHYFTT", + decimals: 18, + }, + infoURL: "https://shyft.network", + shortName: "shyftt", + chainId: 11437, + networkId: 11437, + explorers: [ + { + name: "Shyft Testnet BX", + url: "https://bx.testnet.shyft.network", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "shyft-testnet", + }, + X$t = { + name: "Sardis Testnet", + chain: "SRDX", + icon: { + url: "ipfs://QmdR9QJjQEh1mBnf2WbJfehverxiP5RDPWMtEECbDP2rc3", + width: 512, + height: 512, + format: "png", + }, + rpc: [ + "https://sardis-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://testnet-rpc.sardisnetwork.com", + ], + faucets: ["https://faucet.sardisnetwork.com"], + nativeCurrency: { name: "Sardis", symbol: "SRDX", decimals: 18 }, + infoURL: "https://mysardis.com", + shortName: "SRDXt", + chainId: 11612, + networkId: 11612, + explorers: [ + { + name: "Sardis", + url: "https://testnet.sardisnetwork.com", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "sardis-testnet", + }, + eJt = { + name: "SanR Chain", + chain: "SanRChain", + rpc: [ + "https://sanr-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://sanrchain-node.santiment.net", + ], + faucets: [], + nativeCurrency: { name: "nSAN", symbol: "nSAN", decimals: 18 }, + infoURL: "https://sanr.app", + shortName: "SAN", + chainId: 11888, + networkId: 11888, + icon: { + url: "ipfs://QmPLMg5mYD8XRknvYbDkD2x7FXxYan7MPTeUWZC2CihwDM", + width: 2048, + height: 2048, + format: "png", + }, + parent: { + chain: "eip155-1", + type: "L2", + bridges: [{ url: "https://sanr.app" }], + }, + explorers: [ + { + name: "SanR Chain Explorer", + url: "https://sanrchain-explorer.santiment.net", + standard: "none", + }, + ], + testnet: !1, + slug: "sanr-chain", + }, + tJt = { + name: "Singularity ZERO Testnet", + chain: "ZERO", + rpc: [ + "https://singularity-zero-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://betaenv.singularity.gold:18545", + ], + faucets: ["https://nft.singularity.gold"], + nativeCurrency: { name: "ZERO", symbol: "tZERO", decimals: 18 }, + infoURL: "https://www.singularity.gold", + shortName: "tZERO", + chainId: 12051, + networkId: 12051, + explorers: [ + { + name: "zeroscan", + url: "https://betaenv.singularity.gold:18002", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "singularity-zero-testnet", + }, + rJt = { + name: "Singularity ZERO Mainnet", + chain: "ZERO", + rpc: [ + "https://singularity-zero.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://zerorpc.singularity.gold", + ], + faucets: ["https://zeroscan.singularity.gold"], + nativeCurrency: { name: "ZERO", symbol: "ZERO", decimals: 18 }, + infoURL: "https://www.singularity.gold", + shortName: "ZERO", + chainId: 12052, + networkId: 12052, + slip44: 621, + explorers: [ + { + name: "zeroscan", + url: "https://zeroscan.singularity.gold", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "singularity-zero", + }, + nJt = { + name: "BLG Testnet", + chain: "BLG", + icon: { + url: "ipfs://QmUN5j2cre8GHKv52JE8ag88aAnRmuHMGFxePPvKMogisC", + width: 512, + height: 512, + format: "svg", + }, + rpc: [ + "https://blg-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.blgchain.com", + ], + faucets: ["https://faucet.blgchain.com"], + nativeCurrency: { name: "Blg", symbol: "BLG", decimals: 18 }, + infoURL: "https://blgchain.com", + shortName: "blgchain", + chainId: 12321, + networkId: 12321, + testnet: !0, + slug: "blg-testnet", + }, + aJt = { + name: "Step Testnet", + title: "Step Test Network", + chain: "STEP", + icon: { + url: "ipfs://QmVp9jyb3UFW71867yVtymmiRw7dPY4BTnsp3hEjr9tn8L", + width: 512, + height: 512, + format: "png", + }, + rpc: [ + "https://step-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.testnet.step.network", + ], + faucets: ["https://faucet.step.network"], + nativeCurrency: { name: "FITFI", symbol: "FITFI", decimals: 18 }, + infoURL: "https://step.network", + shortName: "steptest", + chainId: 12345, + networkId: 12345, + explorers: [ + { + name: "StepScan", + url: "https://testnet.stepscan.io", + icon: "step", + standard: "EIP3091", + }, + ], + parent: { type: "L2", chain: "eip155-43113" }, + testnet: !0, + slug: "step-testnet", + }, + iJt = { + name: "SPS", + chain: "SPS", + rpc: [ + "https://sps.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.ssquad.games", + ], + faucets: [], + nativeCurrency: { name: "ECG", symbol: "ECG", decimals: 18 }, + infoURL: "https://ssquad.games/", + shortName: "SPS", + chainId: 13e3, + networkId: 13e3, + explorers: [ + { + name: "SPS Explorer", + url: "http://spsscan.ssquad.games", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "sps", + }, + sJt = { + name: "Credit Smartchain Mainnet", + chain: "CREDIT", + rpc: [ + "https://credit-smartchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://mainnet-rpc.cscscan.io", + ], + faucets: [], + nativeCurrency: { name: "Credit", symbol: "CREDIT", decimals: 18 }, + features: [{ name: "EIP155" }, { name: "EIP1559" }], + infoURL: "https://creditsmartchain.com", + shortName: "Credit", + chainId: 13308, + networkId: 1, + icon: { + url: "ipfs://bafkreifbso3gd4wu5wxl27xyurxctmuae2jyuy37guqtzx23nga6ba4ag4", + width: 1e3, + height: 1628, + format: "png", + }, + explorers: [ + { + name: "CSC Scan", + url: "https://explorer.cscscan.io", + icon: "credit", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "credit-smartchain", + }, + oJt = { + name: "Phoenix Mainnet", + chain: "Phoenix", + rpc: [ + "https://phoenix.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.phoenixplorer.com/", + ], + faucets: [], + nativeCurrency: { name: "Phoenix", symbol: "PHX", decimals: 18 }, + infoURL: "https://cryptophoenix.org/phoenix", + shortName: "Phoenix", + chainId: 13381, + networkId: 13381, + icon: { + url: "ipfs://QmYiLMeKDXMSNuQmtxNdxm53xR588pcRXMf7zuiZLjQnc6", + width: 1501, + height: 1501, + format: "png", + }, + explorers: [ + { + name: "phoenixplorer", + url: "https://phoenixplorer.com", + icon: "phoenixplorer", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "phoenix", + }, + cJt = { + name: "Susono", + chain: "SUS", + rpc: [ + "https://susono.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://gateway.opn.network/node/ext/bc/2VsZe5DstWw2bfgdx3YbjKcMsJnNDjni95sZorBEdk9L9Qr9Fr/rpc", + ], + faucets: [], + nativeCurrency: { name: "Susono", symbol: "OPN", decimals: 18 }, + infoURL: "", + shortName: "sus", + chainId: 13812, + networkId: 13812, + explorers: [ + { + name: "Susono", + url: "http://explorer.opn.network", + standard: "none", + }, + ], + testnet: !1, + slug: "susono", + }, + uJt = { + name: "SPS Testnet", + chain: "SPS-Testnet", + rpc: [ + "https://sps-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://www.3sps.net", + ], + faucets: [], + nativeCurrency: { name: "ECG", symbol: "ECG", decimals: 18 }, + infoURL: "https://ssquad.games/", + shortName: "SPS-Test", + chainId: 14e3, + networkId: 14e3, + explorers: [ + { + name: "SPS Test Explorer", + url: "https://explorer.3sps.net", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "sps-testnet", + }, + lJt = { + name: "Trust EVM Testnet", + chain: "Trust EVM Testnet", + rpc: [ + "https://trust-evm-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://api.testnet-dev.trust.one", + ], + faucets: ["https://faucet.testnet-dev.trust.one/"], + nativeCurrency: { name: "Trust EVM", symbol: "EVM", decimals: 18 }, + infoURL: "https://www.trust.one/", + shortName: "TrustTestnet", + chainId: 15555, + networkId: 15555, + explorers: [ + { + name: "Trust EVM Explorer", + url: "https://trustscan.one", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "trust-evm-testnet", + }, + dJt = { + name: "MetaDot Mainnet", + chain: "MTT", + rpc: [ + "https://metadot.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://mainnet.metadot.network", + ], + faucets: [], + nativeCurrency: { name: "MetaDot Token", symbol: "MTT", decimals: 18 }, + infoURL: "https://metadot.network", + shortName: "mtt", + chainId: 16e3, + networkId: 16e3, + testnet: !1, + slug: "metadot", + }, + pJt = { + name: "MetaDot Testnet", + chain: "MTTTest", + rpc: [ + "https://metadot-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://testnet.metadot.network", + ], + faucets: ["https://faucet.metadot.network/"], + nativeCurrency: { + name: "MetaDot Token TestNet", + symbol: "MTTest", + decimals: 18, + }, + infoURL: "https://metadot.network", + shortName: "mtttest", + chainId: 16001, + networkId: 16001, + testnet: !0, + slug: "metadot-testnet", + }, + hJt = { + name: "AirDAO Mainnet", + chain: "ambnet", + icon: { + url: "ipfs://QmSxXjvWng3Diz4YwXDV2VqSPgMyzLYBNfkjJcr7rzkxom", + width: 400, + height: 400, + format: "png", + }, + rpc: [ + "https://airdao.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://network.ambrosus.io", + ], + faucets: [], + nativeCurrency: { name: "Amber", symbol: "AMB", decimals: 18 }, + infoURL: "https://airdao.io", + shortName: "airdao", + chainId: 16718, + networkId: 16718, + explorers: [ + { + name: "AirDAO Network Explorer", + url: "https://airdao.io/explorer", + standard: "none", + }, + ], + testnet: !1, + slug: "airdao", + }, + fJt = { + name: "IVAR Chain Testnet", + chain: "IVAR", + icon: { + url: "ipfs://QmV8UmSwqGF2fxrqVEBTHbkyZueahqyYtkfH2RBF5pNysM", + width: 519, + height: 519, + format: "svg", + }, + rpc: [ + "https://ivar-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://testnet-rpc.ivarex.com", + ], + faucets: ["https://tfaucet.ivarex.com/"], + nativeCurrency: { name: "tIvar", symbol: "tIVAR", decimals: 18 }, + infoURL: "https://ivarex.com", + shortName: "tivar", + chainId: 16888, + networkId: 16888, + explorers: [ + { + name: "ivarscan", + url: "https://testnet.ivarscan.com", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "ivar-chain-testnet", + }, + mJt = { + name: "Frontier of Dreams Testnet", + chain: "Game Network", + rpc: [ + "https://frontier-of-dreams-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.fod.games/", + ], + nativeCurrency: { name: "ZKST", symbol: "ZKST", decimals: 18 }, + faucets: [], + shortName: "ZKST", + chainId: 18e3, + networkId: 18e3, + infoURL: "https://goexosphere.com", + explorers: [ + { + name: "Game Network", + url: "https://explorer.fod.games", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "frontier-of-dreams-testnet", + }, + yJt = { + name: "Proof Of Memes", + title: "Proof Of Memes Mainnet", + chain: "POM", + icon: { + url: "ipfs://QmePhfibWz9jnGUqF9Rven4x734br1h3LxrChYTEjbbQvo", + width: 256, + height: 256, + format: "png", + }, + rpc: [ + "https://proof-of-memes.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://mainnet-rpc.memescan.io", + "https://mainnet-rpc2.memescan.io", + "https://mainnet-rpc3.memescan.io", + "https://mainnet-rpc4.memescan.io", + ], + faucets: [], + nativeCurrency: { name: "Proof Of Memes", symbol: "POM", decimals: 18 }, + infoURL: "https://proofofmemes.org", + shortName: "pom", + chainId: 18159, + networkId: 18159, + explorers: [ + { + name: "explorer-proofofmemes", + url: "https://memescan.io", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "proof-of-memes", + }, + gJt = { + name: "HOME Verse Mainnet", + chain: "HOME Verse", + icon: { + url: "ipfs://QmeGb65zSworzoHmwK3jdkPtEsQZMUSJRxf8K8Feg56soU", + width: 597, + height: 597, + format: "png", + }, + rpc: [ + "https://home-verse.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.mainnet.oasys.homeverse.games/", + ], + faucets: [], + nativeCurrency: { name: "OAS", symbol: "OAS", decimals: 18 }, + infoURL: "https://www.homeverse.games/", + shortName: "HMV", + chainId: 19011, + networkId: 19011, + explorers: [ + { + name: "HOME Verse Explorer", + url: "https://explorer.oasys.homeverse.games", + standard: "EIP3091", + }, + ], + parent: { type: "L2", chain: "eip155-248" }, + testnet: !1, + slug: "home-verse", + }, + bJt = { + name: "BTCIX Network", + chain: "BTCIX", + rpc: [ + "https://btcix-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://seed.btcix.org/rpc", + ], + faucets: [], + nativeCurrency: { + name: "BTCIX Network", + symbol: "BTCIX", + decimals: 18, + }, + infoURL: "https://bitcolojix.org", + shortName: "btcix", + chainId: 19845, + networkId: 19845, + explorers: [ + { name: "BTCIXScan", url: "https://btcixscan.com", standard: "none" }, + ], + testnet: !1, + slug: "btcix-network", + }, + vJt = { + name: "Callisto Testnet", + chain: "CLO", + rpc: [ + "https://callisto-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://testnet-rpc.callisto.network/", + ], + faucets: ["https://faucet.callisto.network/"], + nativeCurrency: { name: "Callisto", symbol: "CLO", decimals: 18 }, + infoURL: "https://callisto.network", + shortName: "CLOTestnet", + chainId: 20729, + networkId: 79, + testnet: !0, + slug: "callisto-testnet", + }, + wJt = { + name: "P12 Chain", + chain: "P12", + icon: { + url: "ipfs://bafkreieiro4imoujeewc4r4thf5hxj47l56j2iwuz6d6pdj6ieb6ub3h7e", + width: 512, + height: 512, + format: "png", + }, + rpc: [ + "https://p12-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc-chain.p12.games", + ], + faucets: [], + nativeCurrency: { name: "Hooked P2", symbol: "hP2", decimals: 18 }, + infoURL: "https://p12.network", + features: [{ name: "EIP155" }, { name: "EIP1559" }], + shortName: "p12", + chainId: 20736, + networkId: 20736, + explorers: [ + { + name: "P12 Chain Explorer", + url: "https://explorer.p12.games", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "p12-chain", + }, + _Jt = { + name: "CENNZnet Azalea", + chain: "CENNZnet", + rpc: [ + "https://cennznet-azalea.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://cennznet.unfrastructure.io/public", + ], + faucets: [], + nativeCurrency: { name: "CPAY", symbol: "CPAY", decimals: 18 }, + infoURL: "https://cennz.net", + shortName: "cennz-a", + chainId: 21337, + networkId: 21337, + icon: { + url: "ipfs://QmWhNm7tTi6SYbiumULDRk956hxgqaZSX77vcxBNn8fvnw", + width: 112, + height: 112, + format: "svg", + }, + explorers: [ + { + name: "UNcover", + url: "https://uncoverexplorer.com", + standard: "none", + }, + ], + testnet: !1, + slug: "cennznet-azalea", + }, + xJt = { + name: "omChain Mainnet", + chain: "OML", + icon: { + url: "ipfs://QmQtEHaejiDbmiCvbBYw9jNQv3DLK5XHCQwLRfnLNpdN5j", + width: 256, + height: 256, + format: "png", + }, + rpc: [ + "https://omchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://seed.omchain.io", + ], + faucets: [], + nativeCurrency: { name: "omChain", symbol: "OMC", decimals: 18 }, + infoURL: "https://omchain.io", + shortName: "omc", + chainId: 21816, + networkId: 21816, + explorers: [ + { + name: "omChain Explorer", + url: "https://explorer.omchain.io", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "omchain", + }, + TJt = { + name: "Taycan", + chain: "Taycan", + rpc: [ + "https://taycan.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://taycan-rpc.hupayx.io:8545", + ], + faucets: [], + nativeCurrency: { name: "shuffle", symbol: "SFL", decimals: 18 }, + infoURL: "https://hupayx.io", + shortName: "SFL", + chainId: 22023, + networkId: 22023, + icon: { + url: "ipfs://bafkreidvjcc73v747lqlyrhgbnkvkdepdvepo6baj6hmjsmjtvdyhmzzmq", + width: 1e3, + height: 1206, + format: "png", + }, + explorers: [ + { + name: "Taycan Explorer(Blockscout)", + url: "https://taycan-evmscan.hupayx.io", + standard: "none", + icon: "shuffle", + }, + { + name: "Taycan Cosmos Explorer(BigDipper)", + url: "https://taycan-cosmoscan.hupayx.io", + standard: "none", + icon: "shuffle", + }, + ], + testnet: !1, + slug: "taycan", + }, + EJt = { + name: "AirDAO Testnet", + chain: "ambnet-test", + icon: { + url: "ipfs://QmSxXjvWng3Diz4YwXDV2VqSPgMyzLYBNfkjJcr7rzkxom", + width: 400, + height: 400, + format: "png", + }, + rpc: [ + "https://airdao-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://network.ambrosus-test.io", + ], + faucets: [], + nativeCurrency: { name: "Amber", symbol: "AMB", decimals: 18 }, + infoURL: "https://testnet.airdao.io", + shortName: "airdao-test", + chainId: 22040, + networkId: 22040, + explorers: [ + { + name: "AirDAO Network Explorer", + url: "https://testnet.airdao.io/explorer", + standard: "none", + }, + ], + testnet: !0, + slug: "airdao-testnet", + }, + CJt = { + name: "MAP Mainnet", + chain: "MAP", + icon: { + url: "ipfs://QmcLdQ8gM4iHv3CCKA9HuxmzTxY4WhjWtepUVCc3dpzKxD", + width: 512, + height: 512, + format: "png", + }, + rpc: [ + "https://map.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.maplabs.io", + ], + faucets: [], + nativeCurrency: { name: "MAP", symbol: "MAP", decimals: 18 }, + infoURL: "https://maplabs.io", + shortName: "map", + chainId: 22776, + networkId: 22776, + slip44: 60, + explorers: [ + { name: "mapscan", url: "https://mapscan.io", standard: "EIP3091" }, + ], + testnet: !1, + slug: "map", + }, + IJt = { + name: "Opside Testnet", + chain: "Opside", + rpc: [ + "https://opside-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://testrpc.opside.network", + ], + faucets: ["https://faucet.opside.network"], + nativeCurrency: { name: "IDE", symbol: "IDE", decimals: 18 }, + infoURL: "https://opside.network", + shortName: "opside", + chainId: 23118, + networkId: 23118, + icon: { + url: "ipfs://QmeCyZeibUoHNoYGzy1GkzH2uhxyRHKvH51PdaUMer4VTo", + width: 591, + height: 591, + format: "png", + }, + explorers: [ + { + name: "opsideInfo", + url: "https://opside.info", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "opside-testnet", + }, + AJt = { + name: "Oasis Sapphire", + chain: "Sapphire", + icon: { + url: "ipfs://bafkreiespupb52akiwrexxg7g72mh7m7h7lum5hmqijmpdh3kmuunzclha", + width: 2e3, + height: 2e3, + format: "png", + }, + rpc: [ + "https://oasis-sapphire.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://sapphire.oasis.io", + "wss://sapphire.oasis.io/ws", + ], + faucets: [], + nativeCurrency: { name: "Sapphire Rose", symbol: "ROSE", decimals: 18 }, + infoURL: "https://docs.oasis.io/dapp/sapphire", + shortName: "sapphire", + chainId: 23294, + networkId: 23294, + explorers: [ + { + name: "Oasis Sapphire Explorer", + url: "https://explorer.sapphire.oasis.io", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "oasis-sapphire", + }, + kJt = { + name: "Oasis Sapphire Testnet", + chain: "Sapphire", + icon: { + url: "ipfs://bafkreiespupb52akiwrexxg7g72mh7m7h7lum5hmqijmpdh3kmuunzclha", + width: 2e3, + height: 2e3, + format: "png", + }, + rpc: [ + "https://oasis-sapphire-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://testnet.sapphire.oasis.dev", + "wss://testnet.sapphire.oasis.dev/ws", + ], + faucets: [], + nativeCurrency: { + name: "Sapphire Test Rose", + symbol: "TEST", + decimals: 18, + }, + infoURL: "https://docs.oasis.io/dapp/sapphire", + shortName: "sapphire-testnet", + chainId: 23295, + networkId: 23295, + explorers: [ + { + name: "Oasis Sapphire Testnet Explorer", + url: "https://testnet.explorer.sapphire.oasis.dev", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "oasis-sapphire-testnet", + }, + SJt = { + name: "Webchain", + chain: "WEB", + rpc: [], + faucets: [], + nativeCurrency: { name: "Webchain Ether", symbol: "WEB", decimals: 18 }, + infoURL: "https://webchain.network", + shortName: "web", + chainId: 24484, + networkId: 37129, + slip44: 227, + testnet: !1, + slug: "webchain", + }, + MJt = { + name: "MintMe.com Coin", + chain: "MINTME", + rpc: [ + "https://mintme-com-coin.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://node1.mintme.com", + ], + faucets: [], + nativeCurrency: { + name: "MintMe.com Coin", + symbol: "MINTME", + decimals: 18, + }, + infoURL: "https://www.mintme.com", + shortName: "mintme", + chainId: 24734, + networkId: 37480, + testnet: !1, + slug: "mintme-com-coin", + }, + PJt = { + name: "Hammer Chain Mainnet", + chain: "HammerChain", + rpc: [ + "https://hammer-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://www.hammerchain.io/rpc", + ], + faucets: [], + nativeCurrency: { name: "GOLDT", symbol: "GOLDT", decimals: 18 }, + infoURL: "https://www.hammerchain.io", + shortName: "GOLDT", + chainId: 25888, + networkId: 25888, + explorers: [ + { + name: "Hammer Chain Explorer", + url: "https://www.hammerchain.io", + standard: "none", + }, + ], + testnet: !1, + slug: "hammer-chain", + }, + RJt = { + name: "Bitkub Chain Testnet", + chain: "BKC", + icon: { + url: "ipfs://QmYFYwyquipwc9gURQGcEd4iAq7pq15chQrJ3zJJe9HuFT", + width: 1e3, + height: 1e3, + format: "png", + }, + rpc: [ + "https://bitkub-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc-testnet.bitkubchain.io", + "wss://wss-testnet.bitkubchain.io", + ], + faucets: ["https://faucet.bitkubchain.com"], + nativeCurrency: { name: "Bitkub Coin", symbol: "tKUB", decimals: 18 }, + infoURL: "https://www.bitkubchain.com/", + shortName: "bkct", + chainId: 25925, + networkId: 25925, + explorers: [ + { + name: "bkcscan-testnet", + url: "https://testnet.bkcscan.com", + standard: "none", + icon: "bkc", + }, + ], + testnet: !0, + slug: "bitkub-chain-testnet", + }, + BJt = { + name: "Hertz Network Mainnet", + chain: "HTZ", + rpc: [ + "https://hertz-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://mainnet-rpc.hertzscan.com", + ], + faucets: [], + nativeCurrency: { name: "Hertz", symbol: "HTZ", decimals: 18 }, + features: [{ name: "EIP155" }, { name: "EIP1559" }], + infoURL: "https://www.hertz-network.com", + shortName: "HTZ", + chainId: 26600, + networkId: 26600, + icon: { + url: "ipfs://Qmf3GYbPXmTDpSP6t7Ug2j5HjEwrY5oGhBDP7d4TQHvGnG", + width: 162, + height: 129, + format: "png", + }, + explorers: [ + { + name: "Hertz Scan", + url: "https://hertzscan.com", + icon: "hertz-network", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "hertz-network", + }, + NJt = { + name: "OasisChain Mainnet", + chain: "OasisChain", + rpc: [ + "https://oasischain.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc1.oasischain.io", + "https://rpc2.oasischain.io", + "https://rpc3.oasischain.io", + ], + faucets: ["http://faucet.oasischain.io"], + nativeCurrency: { name: "OAC", symbol: "OAC", decimals: 18 }, + infoURL: "https://scan.oasischain.io", + shortName: "OAC", + chainId: 26863, + networkId: 26863, + explorers: [ + { + name: "OasisChain Explorer", + url: "https://scan.oasischain.io", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "oasischain", + }, + OJt = { + name: "Optimism Bedrock (Goerli Alpha Testnet)", + chain: "ETH", + rpc: [ + "https://optimism-bedrock-goerli-alpha-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://alpha-1-replica-0.bedrock-goerli.optimism.io", + "https://alpha-1-replica-1.bedrock-goerli.optimism.io", + "https://alpha-1-replica-2.bedrock-goerli.optimism.io", + ], + faucets: [], + nativeCurrency: { name: "Goerli Ether", symbol: "ETH", decimals: 18 }, + infoURL: "https://community.optimism.io/docs/developers/bedrock", + shortName: "obgor", + chainId: 28528, + networkId: 28528, + explorers: [ + { + name: "blockscout", + url: "https://blockscout.com/optimism/bedrock-alpha", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "optimism-bedrock-goerli-alpha-testnet", + }, + LJt = { + name: "Piece testnet", + chain: "PieceNetwork", + icon: { + url: "ipfs://QmWAU39z1kcYshAqkENRH8qUjfR5CJehCxA4GiC33p3HpH", + width: 800, + height: 800, + format: "png", + }, + rpc: [ + "https://piece-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://testnet-rpc0.piecenetwork.com", + ], + faucets: ["https://piecenetwork.com/faucet"], + nativeCurrency: { name: "ECE", symbol: "ECE", decimals: 18 }, + infoURL: "https://piecenetwork.com", + shortName: "Piece", + chainId: 30067, + networkId: 30067, + explorers: [ + { + name: "Piece Scan", + url: "https://testnet-scan.piecenetwork.com", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "piece-testnet", + }, + DJt = { + name: "Ethersocial Network", + chain: "ESN", + rpc: [ + "https://ethersocial-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://api.esn.gonspool.com", + ], + faucets: [], + nativeCurrency: { + name: "Ethersocial Network Ether", + symbol: "ESN", + decimals: 18, + }, + infoURL: "https://ethersocial.org", + shortName: "esn", + chainId: 31102, + networkId: 1, + slip44: 31102, + testnet: !1, + slug: "ethersocial-network", + }, + qJt = { + name: "CloudTx Mainnet", + chain: "CLD", + icon: { + url: "ipfs://QmSEsi71AdA5HYH6VNC5QUQezFg1C7BiVQJdx1VVfGz3g3", + width: 713, + height: 830, + format: "png", + }, + rpc: [ + "https://cloudtx.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://mainnet-rpc.cloudtx.finance", + ], + faucets: [], + nativeCurrency: { name: "CloudTx", symbol: "CLD", decimals: 18 }, + infoURL: "https://cloudtx.finance", + shortName: "CLDTX", + chainId: 31223, + networkId: 31223, + explorers: [ + { + name: "cloudtxscan", + url: "https://scan.cloudtx.finance", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "cloudtx", + }, + FJt = { + name: "CloudTx Testnet", + chain: "CloudTx", + icon: { + url: "ipfs://QmSEsi71AdA5HYH6VNC5QUQezFg1C7BiVQJdx1VVfGz3g3", + width: 713, + height: 830, + format: "png", + }, + rpc: [ + "https://cloudtx-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://testnet-rpc.cloudtx.finance", + ], + faucets: ["https://faucet.cloudtx.finance"], + nativeCurrency: { name: "CloudTx", symbol: "CLD", decimals: 18 }, + infoURL: "https://cloudtx.finance/", + shortName: "CLD", + chainId: 31224, + networkId: 31224, + explorers: [ + { + name: "cloudtxexplorer", + url: "https://explorer.cloudtx.finance", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "cloudtx-testnet", + }, + WJt = { + name: "GoChain Testnet", + chain: "GO", + rpc: [ + "https://gochain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://testnet-rpc.gochain.io", + ], + faucets: [], + nativeCurrency: { name: "GoChain Coin", symbol: "GO", decimals: 18 }, + infoURL: "https://gochain.io", + shortName: "got", + chainId: 31337, + networkId: 31337, + slip44: 6060, + explorers: [ + { + name: "GoChain Testnet Explorer", + url: "https://testnet-explorer.gochain.io", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "gochain-testnet", + }, + UJt = { + name: "Filecoin - Wallaby testnet", + chain: "FIL", + icon: { + url: "ipfs://QmS9r9XQkMHVomWcSBNDkKkz9n87h9bH9ssabeiKZtANoU", + width: 1e3, + height: 1e3, + format: "png", + }, + rpc: [ + "https://filecoin-wallaby-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://wallaby.node.glif.io/rpc/v1", + ], + faucets: ["https://wallaby.yoga/#faucet"], + nativeCurrency: { + name: "testnet filecoin", + symbol: "tFIL", + decimals: 18, + }, + infoURL: "https://filecoin.io", + shortName: "filecoin-wallaby", + chainId: 31415, + networkId: 31415, + slip44: 1, + explorers: [], + testnet: !0, + slug: "filecoin-wallaby-testnet", + }, + HJt = { + name: "Bitgert Mainnet", + chain: "Brise", + rpc: [ + "https://bitgert.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.icecreamswap.com", + "https://mainnet-rpc.brisescan.com", + "https://chainrpc.com", + "https://serverrpc.com", + ], + faucets: [], + nativeCurrency: { + name: "Bitrise Token", + symbol: "Brise", + decimals: 18, + }, + infoURL: "https://bitgert.com/", + shortName: "Brise", + chainId: 32520, + networkId: 32520, + icon: { + url: "ipfs://QmY3vKe1rG9AyHSGH1ouP3ER3EVUZRtRrFbFZEfEpMSd4V", + width: 512, + height: 512, + format: "png", + }, + explorers: [ + { + name: "Brise Scan", + url: "https://brisescan.com", + icon: "brise", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "bitgert", + }, + zJt = { + name: "Fusion Mainnet", + chain: "FSN", + icon: { + url: "ipfs://QmX3tsEoj7SdaBLLV8VyyCUAmymdEGiSGeuTbxMrEMVvth", + width: 31, + height: 31, + format: "svg", + }, + rpc: [ + "https://fusion.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://mainnet.fusionnetwork.io", + "wss://mainnet.fusionnetwork.io", + ], + features: [{ name: "EIP155" }, { name: "EIP1559" }], + faucets: [], + nativeCurrency: { name: "Fusion", symbol: "FSN", decimals: 18 }, + infoURL: "https://fusion.org", + shortName: "fsn", + chainId: 32659, + networkId: 32659, + slip44: 288, + explorers: [ + { + name: "fsnscan", + url: "https://fsnscan.com", + icon: "fsnscan", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "fusion", + }, + jJt = { + name: "Aves Mainnet", + chain: "AVS", + rpc: [ + "https://aves.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.avescoin.io", + ], + faucets: [], + nativeCurrency: { name: "Aves", symbol: "AVS", decimals: 18 }, + features: [{ name: "EIP155" }, { name: "EIP1559" }], + infoURL: "https://avescoin.io", + shortName: "avs", + chainId: 33333, + networkId: 33333, + icon: { + url: "ipfs://QmeKQVv2QneHaaggw2NfpZ7DGMdjVhPywTdse5RzCs4oGn", + width: 232, + height: 232, + format: "png", + }, + explorers: [ + { + name: "avescan", + url: "https://avescan.io", + icon: "avescan", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "aves", + }, + KJt = { + name: "J2O Taro", + chain: "TARO", + rpc: [ + "https://j2o-taro.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.j2o.io", + ], + features: [{ name: "EIP155" }, { name: "EIP1559" }], + faucets: [], + nativeCurrency: { name: "TARO Coin", symbol: "taro", decimals: 18 }, + infoURL: "https://j2o.io", + shortName: "j2o", + chainId: 35011, + networkId: 35011, + explorers: [ + { + name: "J2O Taro Explorer", + url: "https://exp.j2o.io", + icon: "j2otaro", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "j2o-taro", + }, + VJt = { + name: "Q Mainnet", + chain: "Q", + rpc: [ + "https://q.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.q.org", + ], + faucets: [], + nativeCurrency: { name: "Q token", symbol: "Q", decimals: 18 }, + infoURL: "https://q.org", + shortName: "q", + chainId: 35441, + networkId: 35441, + icon: { + url: "ipfs://QmQUQKe8VEtSthhgXnJ3EmEz94YhpVCpUDZAiU9KYyNLya", + width: 585, + height: 603, + format: "png", + }, + explorers: [ + { + name: "Q explorer", + url: "https://explorer.q.org", + icon: "q", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "q", + }, + GJt = { + name: "Q Testnet", + chain: "Q", + rpc: [ + "https://q-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.qtestnet.org", + ], + faucets: [], + nativeCurrency: { name: "Q token", symbol: "Q", decimals: 18 }, + infoURL: "https://q.org/", + shortName: "q-testnet", + chainId: 35443, + networkId: 35443, + icon: { + url: "ipfs://QmQUQKe8VEtSthhgXnJ3EmEz94YhpVCpUDZAiU9KYyNLya", + width: 585, + height: 603, + format: "png", + }, + explorers: [ + { + name: "Q explorer", + url: "https://explorer.qtestnet.org", + icon: "q", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "q-testnet", + }, + YJt = { + name: "Energi Mainnet", + chain: "NRG", + rpc: [ + "https://energi.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://nodeapi.energi.network", + ], + faucets: [], + nativeCurrency: { name: "Energi", symbol: "NRG", decimals: 18 }, + infoURL: "https://www.energi.world/", + shortName: "nrg", + chainId: 39797, + networkId: 39797, + slip44: 39797, + testnet: !1, + slug: "energi", + }, + $Jt = { + name: "OHO Mainnet", + chain: "OHO", + rpc: [ + "https://oho.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://mainnet.oho.ai", + ], + faucets: [], + nativeCurrency: { name: "OHO", symbol: "OHO", decimals: 18 }, + infoURL: "https://oho.ai", + shortName: "oho", + chainId: 39815, + networkId: 39815, + icon: { + url: "ipfs://QmZt75xixnEtFzqHTrJa8kJkV4cTXmUZqeMeHM8BcvomQc", + width: 512, + height: 512, + format: "png", + }, + explorers: [ + { + name: "ohoscan", + url: "https://ohoscan.com", + icon: "ohoscan", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "oho", + }, + JJt = { + name: "Opulent-X BETA", + chainId: 41500, + shortName: "ox-beta", + chain: "Opulent-X", + networkId: 41500, + nativeCurrency: { name: "Oxyn Gas", symbol: "OXYN", decimals: 18 }, + rpc: [ + "https://opulent-x-beta.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://connect.opulent-x.com", + ], + faucets: [], + infoURL: "https://beta.opulent-x.com", + explorers: [ + { + name: "Opulent-X BETA Explorer", + url: "https://explorer.opulent-x.com", + standard: "none", + }, + ], + testnet: !1, + slug: "opulent-x-beta", + }, + ZJt = { + name: "pegglecoin", + chain: "42069", + rpc: [], + faucets: [], + nativeCurrency: { name: "pegglecoin", symbol: "peggle", decimals: 18 }, + infoURL: "https://teampeggle.com", + shortName: "PC", + chainId: 42069, + networkId: 42069, + testnet: !1, + slug: "pegglecoin", + }, + QJt = { + name: "Arbitrum One", + chainId: 42161, + shortName: "arb1", + chain: "ETH", + networkId: 42161, + nativeCurrency: { name: "Ether", symbol: "ETH", decimals: 18 }, + rpc: [ + "https://arbitrum.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://arbitrum-mainnet.infura.io/v3/${INFURA_API_KEY}", + "https://arb-mainnet.g.alchemy.com/v2/${ALCHEMY_API_KEY}", + "https://arb1.arbitrum.io/rpc", + ], + faucets: [], + explorers: [ + { + name: "Arbitrum Explorer", + url: "https://explorer.arbitrum.io", + standard: "EIP3091", + }, + { name: "Arbiscan", url: "https://arbiscan.io", standard: "EIP3091" }, + ], + infoURL: "https://arbitrum.io", + parent: { + type: "L2", + chain: "eip155-1", + bridges: [{ url: "https://bridge.arbitrum.io" }], + }, + icon: { + url: "ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/arbitrum/512.png", + height: 512, + width: 512, + format: "png", + sizes: [512, 256, 128, 64, 32, 16], + }, + testnet: !1, + slug: "arbitrum", + }, + XJt = { + name: "Arbitrum Nova", + chainId: 42170, + shortName: "arb-nova", + chain: "ETH", + networkId: 42170, + nativeCurrency: { name: "Ether", symbol: "ETH", decimals: 18 }, + rpc: [ + "https://arbitrum-nova.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://nova.arbitrum.io/rpc", + ], + faucets: [], + explorers: [ + { + name: "Arbitrum Nova Chain Explorer", + url: "https://nova-explorer.arbitrum.io", + icon: "blockscout", + standard: "EIP3091", + }, + ], + infoURL: "https://arbitrum.io", + parent: { + type: "L2", + chain: "eip155-1", + bridges: [{ url: "https://bridge.arbitrum.io" }], + }, + testnet: !1, + slug: "arbitrum-nova", + }, + eZt = { + name: "Celo Mainnet", + chainId: 42220, + shortName: "celo", + chain: "CELO", + networkId: 42220, + nativeCurrency: { name: "CELO", symbol: "CELO", decimals: 18 }, + rpc: [ + "https://celo.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://forno.celo.org", + "wss://forno.celo.org/ws", + ], + faucets: ["https://free-online-app.com/faucet-for-eth-evm-chains/"], + infoURL: "https://docs.celo.org/", + explorers: [ + { name: "Celoscan", url: "https://celoscan.io", standard: "EIP3091" }, + { + name: "blockscout", + url: "https://explorer.celo.org", + standard: "none", + }, + ], + testnet: !1, + slug: "celo", + }, + tZt = { + name: "Oasis Emerald Testnet", + chain: "Emerald", + icon: { + url: "ipfs://bafkreiespupb52akiwrexxg7g72mh7m7h7lum5hmqijmpdh3kmuunzclha", + width: 2e3, + height: 2e3, + format: "png", + }, + rpc: [ + "https://oasis-emerald-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://testnet.emerald.oasis.dev/", + "wss://testnet.emerald.oasis.dev/ws", + ], + faucets: ["https://faucet.testnet.oasis.dev/"], + nativeCurrency: { name: "Emerald Rose", symbol: "ROSE", decimals: 18 }, + infoURL: "https://docs.oasis.io/dapp/emerald", + shortName: "emerald-testnet", + chainId: 42261, + networkId: 42261, + explorers: [ + { + name: "Oasis Emerald Testnet Explorer", + url: "https://testnet.explorer.emerald.oasis.dev", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "oasis-emerald-testnet", + }, + rZt = { + name: "Oasis Emerald", + chain: "Emerald", + icon: { + url: "ipfs://bafkreiespupb52akiwrexxg7g72mh7m7h7lum5hmqijmpdh3kmuunzclha", + width: 2e3, + height: 2e3, + format: "png", + }, + rpc: [ + "https://oasis-emerald.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://emerald.oasis.dev", + "wss://emerald.oasis.dev/ws", + ], + faucets: [], + nativeCurrency: { name: "Emerald Rose", symbol: "ROSE", decimals: 18 }, + infoURL: "https://docs.oasis.io/dapp/emerald", + shortName: "emerald", + chainId: 42262, + networkId: 42262, + explorers: [ + { + name: "Oasis Emerald Explorer", + url: "https://explorer.emerald.oasis.dev", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "oasis-emerald", + }, + nZt = { + name: "Athereum", + chain: "ATH", + rpc: [ + "https://athereum.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://ava.network:21015/ext/evm/rpc", + ], + faucets: ["http://athfaucet.ava.network//?address=${ADDRESS}"], + nativeCurrency: { name: "Athereum Ether", symbol: "ATH", decimals: 18 }, + infoURL: "https://athereum.ava.network", + shortName: "avaeth", + chainId: 43110, + networkId: 43110, + testnet: !1, + slug: "athereum", + }, + aZt = { + name: "Avalanche Fuji Testnet", + chain: "AVAX", + icon: { + url: "ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/avalanche/512.png", + height: 512, + width: 512, + format: "png", + sizes: [512, 256, 128, 64, 32, 16], + }, + rpc: [ + "https://avalanche-fuji.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://avalanche-fuji.infura.io/v3/${INFURA_API_KEY}", + "https://api.avax-test.network/ext/bc/C/rpc", + ], + faucets: ["https://faucet.avax-test.network/"], + nativeCurrency: { name: "Avalanche", symbol: "AVAX", decimals: 18 }, + infoURL: "https://cchain.explorer.avax-test.network", + shortName: "Fuji", + chainId: 43113, + networkId: 1, + explorers: [ + { + name: "snowtrace", + url: "https://testnet.snowtrace.io", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "avalanche-fuji", + }, + iZt = { + name: "Avalanche C-Chain", + chain: "AVAX", + icon: { + url: "ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/avalanche/512.png", + height: 512, + width: 512, + format: "png", + sizes: [512, 256, 128, 64, 32, 16], + }, + rpc: [ + "https://avalanche.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://avalanche-mainnet.infura.io/v3/${INFURA_API_KEY}", + "https://api.avax.network/ext/bc/C/rpc", + ], + features: [{ name: "EIP1559" }], + faucets: ["https://free-online-app.com/faucet-for-eth-evm-chains/"], + nativeCurrency: { name: "Avalanche", symbol: "AVAX", decimals: 18 }, + infoURL: "https://www.avax.network/", + shortName: "avax", + chainId: 43114, + networkId: 43114, + slip44: 9005, + explorers: [ + { + name: "snowtrace", + url: "https://snowtrace.io", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "avalanche", + }, + sZt = { + name: "Boba Avax", + chain: "Boba Avax", + rpc: [ + "https://boba-avax.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://avax.boba.network", + "wss://wss.avax.boba.network", + "https://replica.avax.boba.network", + "wss://replica-wss.avax.boba.network", + ], + faucets: [], + nativeCurrency: { name: "Boba Token", symbol: "BOBA", decimals: 18 }, + infoURL: "https://docs.boba.network/for-developers/network-avalanche", + shortName: "bobaavax", + chainId: 43288, + networkId: 43288, + explorers: [ + { + name: "Boba Avax Explorer", + url: "https://blockexplorer.avax.boba.network", + standard: "none", + }, + ], + testnet: !1, + slug: "boba-avax", + }, + oZt = { + name: "Frenchain", + chain: "fren", + rpc: [ + "https://frenchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc-02.frenscan.io", + ], + faucets: [], + nativeCurrency: { name: "FREN", symbol: "FREN", decimals: 18 }, + infoURL: "https://frenchain.app", + shortName: "FREN", + chainId: 44444, + networkId: 44444, + icon: { + url: "ipfs://QmQk41bYX6WpYyUAdRgomZekxP5mbvZXhfxLEEqtatyJv4", + width: 128, + height: 128, + format: "png", + }, + explorers: [ + { + name: "blockscout", + url: "https://frenscan.io", + icon: "fren", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "frenchain", + }, + cZt = { + name: "Celo Alfajores Testnet", + chainId: 44787, + shortName: "ALFA", + chain: "CELO", + networkId: 44787, + nativeCurrency: { name: "CELO", symbol: "CELO", decimals: 18 }, + rpc: [ + "https://celo-alfajores-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://alfajores-forno.celo-testnet.org", + "wss://alfajores-forno.celo-testnet.org/ws", + ], + faucets: [ + "https://celo.org/developers/faucet", + "https://cauldron.pretoriaresearchlab.io/alfajores-faucet", + ], + infoURL: "https://docs.celo.org/", + explorers: [ + { name: "Celoscan", url: "https://celoscan.io", standard: "EIP3091" }, + ], + testnet: !0, + slug: "celo-alfajores-testnet", + }, + uZt = { + name: "Autobahn Network", + chain: "TXL", + rpc: [ + "https://autobahn-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.autobahn.network", + ], + faucets: [], + nativeCurrency: { name: "TXL", symbol: "TXL", decimals: 18 }, + infoURL: "https://autobahn.network", + shortName: "AutobahnNetwork", + chainId: 45e3, + networkId: 45e3, + icon: { + url: "ipfs://QmZP19pbqTco4vaP9siduLWP8pdYArFK3onfR55tvjr12s", + width: 489, + height: 489, + format: "png", + }, + explorers: [ + { + name: "autobahn explorer", + url: "https://explorer.autobahn.network", + icon: "autobahn", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "autobahn-network", + }, + lZt = { + name: "Fusion Testnet", + chain: "FSN", + icon: { + url: "ipfs://QmX3tsEoj7SdaBLLV8VyyCUAmymdEGiSGeuTbxMrEMVvth", + width: 31, + height: 31, + format: "svg", + }, + rpc: [ + "https://fusion-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://testnet.fusionnetwork.io", + "wss://testnet.fusionnetwork.io", + ], + features: [{ name: "EIP155" }, { name: "EIP1559" }], + faucets: [], + nativeCurrency: { + name: "Testnet Fusion", + symbol: "T-FSN", + decimals: 18, + }, + infoURL: "https://fusion.org", + shortName: "tfsn", + chainId: 46688, + networkId: 46688, + slip44: 288, + explorers: [ + { + name: "fsnscan", + url: "https://testnet.fsnscan.com", + icon: "fsnscan", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "fusion-testnet", + }, + dZt = { + name: "REI Network", + chain: "REI", + rpc: [ + "https://rei-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.rei.network", + "wss://rpc.rei.network", + ], + faucets: [], + nativeCurrency: { name: "REI", symbol: "REI", decimals: 18 }, + infoURL: "https://rei.network/", + shortName: "REI", + chainId: 47805, + networkId: 47805, + explorers: [ + { + name: "rei-scan", + url: "https://scan.rei.network", + standard: "none", + }, + ], + testnet: !1, + slug: "rei-network", + }, + pZt = { + name: "Floripa", + title: "Wireshape Testnet Floripa", + chain: "Wireshape", + rpc: [ + "https://floripa.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc-floripa.wireshape.org", + ], + faucets: [], + nativeCurrency: { name: "WIRE", symbol: "WIRE", decimals: 18 }, + infoURL: "https://wireshape.org", + shortName: "floripa", + chainId: 49049, + networkId: 49049, + explorers: [ + { + name: "Wire Explorer", + url: "https://floripa-explorer.wireshape.org", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "floripa", + }, + hZt = { + name: "Bifrost Testnet", + title: "The Bifrost Testnet network", + chain: "BFC", + rpc: [ + "https://bifrost-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://public-01.testnet.thebifrost.io/rpc", + "https://public-02.testnet.thebifrost.io/rpc", + ], + faucets: [], + nativeCurrency: { name: "Bifrost", symbol: "BFC", decimals: 18 }, + infoURL: "https://thebifrost.io", + shortName: "tbfc", + chainId: 49088, + networkId: 49088, + icon: { + url: "ipfs://QmcHvn2Wq91ULyEH5s3uHjosX285hUgyJHwggFJUd3L5uh", + width: 128, + height: 128, + format: "png", + }, + explorers: [ + { + name: "explorer-thebifrost", + url: "https://explorer.testnet.thebifrost.io", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "bifrost-testnet", + }, + fZt = { + name: "Energi Testnet", + chain: "NRG", + rpc: [ + "https://energi-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://nodeapi.test.energi.network", + ], + faucets: [], + nativeCurrency: { name: "Energi", symbol: "NRG", decimals: 18 }, + infoURL: "https://www.energi.world/", + shortName: "tnrg", + chainId: 49797, + networkId: 49797, + slip44: 49797, + testnet: !0, + slug: "energi-testnet", + }, + mZt = { + name: "Liveplex OracleEVM", + chain: "Liveplex OracleEVM Network", + rpc: [ + "https://liveplex-oracleevm.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.oracle.liveplex.io", + ], + faucets: [], + nativeCurrency: { name: "Ether", symbol: "ETH", decimals: 18 }, + infoURL: "", + shortName: "LOE", + chainId: 50001, + networkId: 50001, + explorers: [], + testnet: !1, + slug: "liveplex-oracleevm", + }, + yZt = { + name: "GTON Testnet", + chain: "GTON Testnet", + rpc: [ + "https://gton-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://testnet.gton.network/", + ], + faucets: [], + nativeCurrency: { name: "GCD", symbol: "GCD", decimals: 18 }, + infoURL: "https://gton.capital", + shortName: "tgton", + chainId: 50021, + networkId: 50021, + explorers: [ + { + name: "GTON Testnet Network Explorer", + url: "https://explorer.testnet.gton.network", + standard: "EIP3091", + }, + ], + parent: { type: "L2", chain: "eip155-3" }, + testnet: !0, + slug: "gton-testnet", + }, + gZt = { + name: "Sardis Mainnet", + chain: "SRDX", + icon: { + url: "ipfs://QmdR9QJjQEh1mBnf2WbJfehverxiP5RDPWMtEECbDP2rc3", + width: 512, + height: 512, + format: "png", + }, + rpc: [ + "https://sardis.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://mainnet-rpc.sardisnetwork.com", + ], + faucets: ["https://faucet.sardisnetwork.com"], + nativeCurrency: { name: "Sardis", symbol: "SRDX", decimals: 18 }, + infoURL: "https://mysardis.com", + shortName: "SRDXm", + chainId: 51712, + networkId: 51712, + explorers: [ + { + name: "Sardis", + url: "https://contract-mainnet.sardisnetwork.com", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "sardis", + }, + bZt = { + name: "DFK Chain", + chain: "DFK", + icon: { + url: "ipfs://QmQB48m15TzhUFrmu56QCRQjkrkgUaKfgCmKE8o3RzmuPJ", + width: 500, + height: 500, + format: "png", + }, + rpc: [ + "https://dfk-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://subnets.avax.network/defi-kingdoms/dfk-chain/rpc", + ], + faucets: [], + nativeCurrency: { name: "Jewel", symbol: "JEWEL", decimals: 18 }, + infoURL: "https://defikingdoms.com", + shortName: "DFK", + chainId: 53935, + networkId: 53935, + explorers: [ + { + name: "ethernal", + url: "https://explorer.dfkchain.com", + icon: "ethereum", + standard: "none", + }, + ], + testnet: !1, + slug: "dfk-chain", + }, + vZt = { + name: "Haqq Chain Testnet", + chain: "TestEdge2", + rpc: [ + "https://haqq-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.eth.testedge2.haqq.network", + ], + faucets: ["https://testedge2.haqq.network"], + nativeCurrency: { name: "Islamic Coin", symbol: "ISLMT", decimals: 18 }, + infoURL: "https://islamiccoin.net", + shortName: "ISLMT", + chainId: 54211, + networkId: 54211, + explorers: [ + { + name: "TestEdge HAQQ Explorer", + url: "https://explorer.testedge2.haqq.network", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "haqq-chain-testnet", + }, + wZt = { + name: "REI Chain Mainnet", + chain: "REI", + icon: { + url: "ipfs://QmNy5d5knHVjJJS9g4kLsh9i73RTjckpKL6KZvRk6ptbhf", + width: 591, + height: 591, + format: "svg", + }, + rpc: [ + "https://rei-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rei-rpc.moonrhythm.io", + ], + faucets: ["http://kururu.finance/faucet?chainId=55555"], + nativeCurrency: { name: "Rei", symbol: "REI", decimals: 18 }, + infoURL: "https://reichain.io", + shortName: "reichain", + chainId: 55555, + networkId: 55555, + explorers: [ + { name: "reiscan", url: "https://reiscan.com", standard: "EIP3091" }, + ], + testnet: !1, + slug: "rei-chain", + }, + _Zt = { + name: "REI Chain Testnet", + chain: "REI", + icon: { + url: "ipfs://QmNy5d5knHVjJJS9g4kLsh9i73RTjckpKL6KZvRk6ptbhf", + width: 591, + height: 591, + format: "svg", + }, + rpc: [ + "https://rei-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rei-testnet-rpc.moonrhythm.io", + ], + faucets: ["http://kururu.finance/faucet?chainId=55556"], + nativeCurrency: { name: "tRei", symbol: "tREI", decimals: 18 }, + infoURL: "https://reichain.io", + shortName: "trei", + chainId: 55556, + networkId: 55556, + explorers: [ + { + name: "reiscan", + url: "https://testnet.reiscan.com", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "rei-chain-testnet", + }, + xZt = { + name: "Boba BNB Mainnet", + chain: "Boba BNB Mainnet", + rpc: [ + "https://boba-bnb.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://bnb.boba.network", + "wss://wss.bnb.boba.network", + "https://replica.bnb.boba.network", + "wss://replica-wss.bnb.boba.network", + ], + faucets: [], + nativeCurrency: { name: "Boba Token", symbol: "BOBA", decimals: 18 }, + infoURL: "https://boba.network", + shortName: "BobaBnb", + chainId: 56288, + networkId: 56288, + explorers: [ + { + name: "Boba BNB block explorer", + url: "https://blockexplorer.bnb.boba.network", + standard: "none", + }, + ], + testnet: !1, + slug: "boba-bnb", + }, + TZt = { + name: "Thinkium Testnet Chain 0", + chain: "Thinkium", + rpc: [ + "https://thinkium-testnet-chain-0.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://test.thinkiumrpc.net/", + ], + faucets: ["https://www.thinkiumdev.net/faucet"], + nativeCurrency: { name: "TKM", symbol: "TKM", decimals: 18 }, + infoURL: "https://thinkium.net/", + shortName: "TKM-test0", + chainId: 6e4, + networkId: 6e4, + explorers: [ + { + name: "thinkiumscan", + url: "https://test0.thinkiumscan.net", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "thinkium-testnet-chain-0", + }, + EZt = { + name: "Thinkium Testnet Chain 1", + chain: "Thinkium", + rpc: [ + "https://thinkium-testnet-chain-1.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://test1.thinkiumrpc.net/", + ], + faucets: ["https://www.thinkiumdev.net/faucet"], + nativeCurrency: { name: "TKM", symbol: "TKM", decimals: 18 }, + infoURL: "https://thinkium.net/", + shortName: "TKM-test1", + chainId: 60001, + networkId: 60001, + explorers: [ + { + name: "thinkiumscan", + url: "https://test1.thinkiumscan.net", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "thinkium-testnet-chain-1", + }, + CZt = { + name: "Thinkium Testnet Chain 2", + chain: "Thinkium", + rpc: [ + "https://thinkium-testnet-chain-2.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://test2.thinkiumrpc.net/", + ], + faucets: ["https://www.thinkiumdev.net/faucet"], + nativeCurrency: { name: "TKM", symbol: "TKM", decimals: 18 }, + infoURL: "https://thinkium.net/", + shortName: "TKM-test2", + chainId: 60002, + networkId: 60002, + explorers: [ + { + name: "thinkiumscan", + url: "https://test2.thinkiumscan.net", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "thinkium-testnet-chain-2", + }, + IZt = { + name: "Thinkium Testnet Chain 103", + chain: "Thinkium", + rpc: [ + "https://thinkium-testnet-chain-103.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://test103.thinkiumrpc.net/", + ], + faucets: ["https://www.thinkiumdev.net/faucet"], + nativeCurrency: { name: "TKM", symbol: "TKM", decimals: 18 }, + infoURL: "https://thinkium.net/", + shortName: "TKM-test103", + chainId: 60103, + networkId: 60103, + explorers: [ + { + name: "thinkiumscan", + url: "https://test103.thinkiumscan.net", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "thinkium-testnet-chain-103", + }, + AZt = { + name: "Etica Mainnet", + chain: "Etica Protocol (ETI/EGAZ)", + icon: { + url: "ipfs://QmYSyhUqm6ArWyALBe3G64823ZpEUmFdkzKZ93hUUhNKgU", + width: 360, + height: 361, + format: "png", + }, + rpc: [ + "https://etica.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://eticamainnet.eticascan.org", + "https://eticamainnet.eticaprotocol.org", + ], + faucets: ["http://faucet.etica-stats.org/"], + nativeCurrency: { name: "EGAZ", symbol: "EGAZ", decimals: 18 }, + infoURL: "https://eticaprotocol.org", + shortName: "Etica", + chainId: 61803, + networkId: 61803, + explorers: [ + { + name: "eticascan", + url: "https://eticascan.org", + standard: "EIP3091", + }, + { + name: "eticastats", + url: "http://explorer.etica-stats.org", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "etica", + }, + kZt = { + name: "DoKEN Super Chain Mainnet", + chain: "DoKEN Super Chain", + rpc: [ + "https://doken-super-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://sgrpc.doken.dev", + "https://nyrpc.doken.dev", + "https://ukrpc.doken.dev", + ], + faucets: [], + nativeCurrency: { name: "DoKEN", symbol: "DKN", decimals: 18 }, + infoURL: "https://doken.dev/", + shortName: "DoKEN", + chainId: 61916, + networkId: 61916, + icon: { + url: "ipfs://bafkreifms4eio6v56oyeemnnu5luq3sc44hptan225lr45itgzu3u372iu", + width: 200, + height: 200, + format: "png", + }, + explorers: [ + { + name: "DSC Scan", + url: "https://explore.doken.dev", + icon: "doken", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "doken-super-chain", + }, + SZt = { + name: "Celo Baklava Testnet", + chainId: 62320, + shortName: "BKLV", + chain: "CELO", + networkId: 62320, + nativeCurrency: { name: "CELO", symbol: "CELO", decimals: 18 }, + rpc: [ + "https://celo-baklava-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://baklava-forno.celo-testnet.org", + ], + faucets: [ + "https://docs.google.com/forms/d/e/1FAIpQLSdfr1BwUTYepVmmvfVUDRCwALejZ-TUva2YujNpvrEmPAX2pg/viewform", + "https://cauldron.pretoriaresearchlab.io/baklava-faucet", + ], + infoURL: "https://docs.celo.org/", + testnet: !0, + slug: "celo-baklava-testnet", + }, + MZt = { + name: "MultiVAC Mainnet", + chain: "MultiVAC", + icon: { + url: "ipfs://QmWb1gthhbzkiLdgcP8ccZprGbJVjFcW8Rn4uJjrw4jd3B", + width: 200, + height: 200, + format: "png", + }, + rpc: [ + "https://multivac.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.mtv.ac", + "https://rpc-eu.mtv.ac", + ], + faucets: [], + nativeCurrency: { name: "MultiVAC", symbol: "MTV", decimals: 18 }, + infoURL: "https://mtv.ac", + shortName: "mtv", + chainId: 62621, + networkId: 62621, + explorers: [ + { + name: "MultiVAC Explorer", + url: "https://e.mtv.ac", + standard: "none", + }, + ], + testnet: !1, + slug: "multivac", + }, + PZt = { + name: "eCredits Mainnet", + chain: "ECS", + rpc: [ + "https://ecredits.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.ecredits.com", + ], + faucets: [], + nativeCurrency: { name: "eCredits", symbol: "ECS", decimals: 18 }, + infoURL: "https://ecredits.com", + shortName: "ecs", + chainId: 63e3, + networkId: 63e3, + icon: { + url: "ipfs://QmU9H9JE1KtLh2Fxrd8EWTMjKGJBpgRWKUeEx7u6ic4kBY", + width: 32, + height: 32, + format: "png", + }, + explorers: [ + { + name: "eCredits MainNet Explorer", + url: "https://explorer.ecredits.com", + icon: "ecredits", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "ecredits", + }, + RZt = { + name: "eCredits Testnet", + chain: "ECS", + rpc: [ + "https://ecredits-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.tst.ecredits.com", + ], + faucets: ["https://faucet.tst.ecredits.com"], + nativeCurrency: { name: "eCredits", symbol: "ECS", decimals: 18 }, + infoURL: "https://ecredits.com", + shortName: "ecs-testnet", + chainId: 63001, + networkId: 63001, + icon: { + url: "ipfs://QmU9H9JE1KtLh2Fxrd8EWTMjKGJBpgRWKUeEx7u6ic4kBY", + width: 32, + height: 32, + format: "png", + }, + explorers: [ + { + name: "eCredits TestNet Explorer", + url: "https://explorer.tst.ecredits.com", + icon: "ecredits", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "ecredits-testnet", + }, + BZt = { + name: "SiriusNet", + chain: "SIN", + rpc: [ + "https://siriusnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://u0tnafcv6j:o2T045sxuCNXL878RDQLp5__Zj-es2cvdjtgkl4etn0@u0v7kwtvtg-u0wj114sve-rpc.us0-aws.kaleido.io/", + ], + faucets: [], + nativeCurrency: { name: "MCD", symbol: "MCD", decimals: 18 }, + infoURL: "https://macaucasinolisboa.xyz", + shortName: "mcl", + chainId: 67390, + networkId: 67390, + explorers: [ + { + name: "siriusnetscan", + url: "https://siriusnet.tryethernal.com", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "siriusnet", + }, + NZt = { + name: "Condrieu", + title: "Ethereum Verkle Testnet Condrieu", + chain: "ETH", + rpc: [ + "https://condrieu.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.condrieu.ethdevops.io:8545", + ], + faucets: ["https://faucet.condrieu.ethdevops.io"], + nativeCurrency: { + name: "Condrieu Testnet Ether", + symbol: "CTE", + decimals: 18, + }, + infoURL: "https://condrieu.ethdevops.io", + shortName: "cndr", + chainId: 69420, + networkId: 69420, + explorers: [ + { + name: "Condrieu explorer", + url: "https://explorer.condrieu.ethdevops.io", + standard: "none", + }, + ], + testnet: !0, + slug: "condrieu", + }, + OZt = { + name: "Thinkium Mainnet Chain 0", + chain: "Thinkium", + rpc: [ + "https://thinkium-chain-0.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://proxy.thinkiumrpc.net/", + ], + faucets: [], + nativeCurrency: { name: "TKM", symbol: "TKM", decimals: 18 }, + infoURL: "https://thinkium.net/", + shortName: "TKM0", + chainId: 7e4, + networkId: 7e4, + explorers: [ + { + name: "thinkiumscan", + url: "https://chain0.thinkiumscan.net", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "thinkium-chain-0", + }, + LZt = { + name: "Thinkium Mainnet Chain 1", + chain: "Thinkium", + rpc: [ + "https://thinkium-chain-1.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://proxy1.thinkiumrpc.net/", + ], + faucets: [], + nativeCurrency: { name: "TKM", symbol: "TKM", decimals: 18 }, + infoURL: "https://thinkium.net/", + shortName: "TKM1", + chainId: 70001, + networkId: 70001, + explorers: [ + { + name: "thinkiumscan", + url: "https://chain1.thinkiumscan.net", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "thinkium-chain-1", + }, + DZt = { + name: "Thinkium Mainnet Chain 2", + chain: "Thinkium", + rpc: [ + "https://thinkium-chain-2.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://proxy2.thinkiumrpc.net/", + ], + faucets: [], + nativeCurrency: { name: "TKM", symbol: "TKM", decimals: 18 }, + infoURL: "https://thinkium.net/", + shortName: "TKM2", + chainId: 70002, + networkId: 70002, + explorers: [ + { + name: "thinkiumscan", + url: "https://chain2.thinkiumscan.net", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "thinkium-chain-2", + }, + qZt = { + name: "Thinkium Mainnet Chain 103", + chain: "Thinkium", + rpc: [ + "https://thinkium-chain-103.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://proxy103.thinkiumrpc.net/", + ], + faucets: [], + nativeCurrency: { name: "TKM", symbol: "TKM", decimals: 18 }, + infoURL: "https://thinkium.net/", + shortName: "TKM103", + chainId: 70103, + networkId: 70103, + explorers: [ + { + name: "thinkiumscan", + url: "https://chain103.thinkiumscan.net", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "thinkium-chain-103", + }, + FZt = { + name: "Polyjuice Testnet", + chain: "CKB", + icon: { + url: "ipfs://QmZ5gFWUxLFqqT3DkefYfRsVksMwMTc5VvBjkbHpeFMsNe", + width: 1001, + height: 1629, + format: "png", + }, + rpc: [ + "https://polyjuice-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://godwoken-testnet-web3-rpc.ckbapp.dev", + "ws://godwoken-testnet-web3-rpc.ckbapp.dev/ws", + ], + faucets: ["https://faucet.nervos.org/"], + nativeCurrency: { name: "CKB", symbol: "CKB", decimals: 8 }, + infoURL: "https://github.com/nervosnetwork/godwoken", + shortName: "ckb", + chainId: 71393, + networkId: 1, + testnet: !0, + slug: "polyjuice-testnet", + }, + WZt = { + name: "Godwoken Testnet v1", + chain: "GWT", + rpc: [ + "https://godwoken-testnet-v1.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://godwoken-testnet-v1.ckbapp.dev", + "https://v1.testnet.godwoken.io/rpc", + ], + faucets: ["https://testnet.bridge.godwoken.io"], + nativeCurrency: { name: "pCKB", symbol: "pCKB", decimals: 18 }, + infoURL: "https://www.nervos.org", + shortName: "gw-testnet-v1", + chainId: 71401, + networkId: 71401, + explorers: [ + { + name: "GWScout Explorer", + url: "https://gw-testnet-explorer.nervosdao.community", + standard: "none", + }, + { + name: "GWScan Block Explorer", + url: "https://v1.testnet.gwscan.com", + standard: "none", + }, + ], + testnet: !0, + slug: "godwoken-testnet-v1", + }, + UZt = { + name: "Godwoken Mainnet", + chain: "GWT", + rpc: [ + "https://godwoken.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://v1.mainnet.godwoken.io/rpc", + ], + faucets: [], + nativeCurrency: { name: "pCKB", symbol: "pCKB", decimals: 18 }, + infoURL: "https://www.nervos.org", + shortName: "gw-mainnet-v1", + chainId: 71402, + networkId: 71402, + explorers: [ + { + name: "GWScout Explorer", + url: "https://gw-mainnet-explorer.nervosdao.community", + standard: "none", + }, + { + name: "GWScan Block Explorer", + url: "https://v1.gwscan.com", + standard: "none", + }, + ], + testnet: !1, + slug: "godwoken", + }, + HZt = { + name: "Energy Web Volta Testnet", + chain: "Volta", + rpc: [ + "https://energy-web-volta-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://volta-rpc.energyweb.org", + "wss://volta-rpc.energyweb.org/ws", + ], + faucets: ["https://voltafaucet.energyweb.org"], + nativeCurrency: { name: "Volta Token", symbol: "VT", decimals: 18 }, + infoURL: "https://energyweb.org", + shortName: "vt", + chainId: 73799, + networkId: 73799, + testnet: !0, + slug: "energy-web-volta-testnet", + }, + zZt = { + name: "Mixin Virtual Machine", + chain: "MVM", + rpc: [ + "https://mixin-virtual-machine.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://geth.mvm.dev", + ], + faucets: [], + nativeCurrency: { name: "Ether", symbol: "ETH", decimals: 18 }, + infoURL: "https://mvm.dev", + shortName: "mvm", + chainId: 73927, + networkId: 73927, + icon: { + url: "ipfs://QmeuDgSprukzfV7fi9XYHYcfmT4aZZZU7idgShtRS8Vf6V", + width: 471, + height: 512, + format: "png", + }, + explorers: [ + { + name: "mvmscan", + url: "https://scan.mvm.dev", + icon: "mvm", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "mixin-virtual-machine", + }, + jZt = { + name: "ResinCoin Mainnet", + chain: "RESIN", + icon: { + url: "ipfs://QmTBszPzBeWPhjozf4TxpL2ws1NkG9yJvisx9h6MFii1zb", + width: 460, + height: 460, + format: "png", + }, + rpc: [], + faucets: [], + nativeCurrency: { name: "Ether", symbol: "RESIN", decimals: 18 }, + infoURL: "https://resincoin.dev", + shortName: "resin", + chainId: 75e3, + networkId: 75e3, + explorers: [ + { + name: "ResinScan", + url: "https://explorer.resincoin.dev", + standard: "none", + }, + ], + testnet: !1, + slug: "resincoin", + }, + KZt = { + name: "Vention Smart Chain Mainnet", + chain: "VSC", + icon: { + url: "ipfs://QmcNepHmbmHW1BZYM3MFqJW4awwhmDqhUPRXXmRnXwg1U4", + width: 250, + height: 250, + format: "png", + }, + rpc: [ + "https://vention-smart-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://mainnet-rpc.vention.network", + ], + faucets: ["https://faucet.vention.network"], + nativeCurrency: { name: "VNT", symbol: "VNT", decimals: 18 }, + infoURL: "https://ventionscan.io", + shortName: "vscm", + chainId: 77612, + networkId: 77612, + explorers: [ + { + name: "ventionscan", + url: "https://ventionscan.io", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "vention-smart-chain", + }, + VZt = { + name: "Firenze test network", + chain: "ETH", + rpc: [ + "https://firenze-test-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://ethnode.primusmoney.com/firenze", + ], + faucets: [], + nativeCurrency: { name: "Firenze Ether", symbol: "FIN", decimals: 18 }, + infoURL: "https://primusmoney.com", + shortName: "firenze", + chainId: 78110, + networkId: 78110, + testnet: !0, + slug: "firenze-test-network", + }, + GZt = { + name: "Gold Smart Chain Testnet", + chain: "STAND", + icon: { + url: "ipfs://QmPNuymyaKLJhCaXnyrsL8358FeTxabZFsaxMmWNU4Tzt3", + width: 396, + height: 418, + format: "png", + }, + rpc: [ + "https://gold-smart-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc-testnet.goldsmartchain.com", + ], + faucets: ["https://faucet.goldsmartchain.com"], + nativeCurrency: { + name: "Standard in Gold", + symbol: "STAND", + decimals: 18, + }, + infoURL: "https://goldsmartchain.com", + shortName: "STANDt", + chainId: 79879, + networkId: 79879, + explorers: [ + { + name: "Gold Smart Chain", + url: "https://testnet.goldsmartchain.com", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "gold-smart-chain-testnet", + }, + YZt = { + name: "Mumbai", + title: "Polygon Testnet Mumbai", + chain: "Polygon", + icon: { + url: "ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/polygon/512.png", + height: 512, + width: 512, + format: "png", + sizes: [512, 256, 128, 64, 32, 16], + }, + rpc: [ + "https://mumbai.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://polygon-mumbai.g.alchemy.com/v2/${ALCHEMY_API_KEY}", + "https://polygon-mumbai.infura.io/v3/${INFURA_API_KEY}", + "https://matic-mumbai.chainstacklabs.com", + "https://rpc-mumbai.maticvigil.com", + "https://matic-testnet-archive-rpc.bwarelabs.com", + ], + faucets: ["https://faucet.polygon.technology/"], + nativeCurrency: { name: "MATIC", symbol: "MATIC", decimals: 18 }, + infoURL: "https://polygon.technology/", + shortName: "maticmum", + chainId: 80001, + networkId: 80001, + explorers: [ + { + name: "polygonscan", + url: "https://mumbai.polygonscan.com", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "mumbai", + }, + $Zt = { + name: "Chiliz Scoville Testnet", + chain: "CHZ", + rpc: [ + "https://chiliz-scoville-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://scoville-rpc.chiliz.com", + ], + faucets: ["https://scoville-faucet.chiliz.com"], + nativeCurrency: { name: "Chiliz", symbol: "CHZ", decimals: 18 }, + icon: { + url: "ipfs://QmYV5xUVZhHRzLy7ie9D8qZeygJHvNZZAxwnB9GXYy6EED", + width: 400, + height: 400, + format: "png", + }, + infoURL: "https://www.chiliz.com/en/chain", + shortName: "chz", + chainId: 88880, + networkId: 88880, + explorers: [ + { + name: "scoville-explorer", + url: "https://scoville-explorer.chiliz.com", + standard: "none", + }, + ], + testnet: !0, + slug: "chiliz-scoville-testnet", + }, + JZt = { + name: "IVAR Chain Mainnet", + chain: "IVAR", + icon: { + url: "ipfs://QmV8UmSwqGF2fxrqVEBTHbkyZueahqyYtkfH2RBF5pNysM", + width: 519, + height: 519, + format: "svg", + }, + rpc: [ + "https://ivar-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://mainnet-rpc.ivarex.com", + ], + faucets: ["https://faucet.ivarex.com/"], + nativeCurrency: { name: "Ivar", symbol: "IVAR", decimals: 18 }, + infoURL: "https://ivarex.com", + shortName: "ivar", + chainId: 88888, + networkId: 88888, + explorers: [ + { + name: "ivarscan", + url: "https://ivarscan.com", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "ivar-chain", + }, + ZZt = { + name: "Beverly Hills", + title: "Ethereum multi-client Verkle Testnet Beverly Hills", + chain: "ETH", + rpc: [ + "https://beverly-hills.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.beverlyhills.ethdevops.io:8545", + ], + faucets: ["https://faucet.beverlyhills.ethdevops.io"], + nativeCurrency: { + name: "Beverly Hills Testnet Ether", + symbol: "BVE", + decimals: 18, + }, + infoURL: "https://beverlyhills.ethdevops.io", + shortName: "bvhl", + chainId: 90210, + networkId: 90210, + status: "incubating", + explorers: [ + { + name: "Beverly Hills explorer", + url: "https://explorer.beverlyhills.ethdevops.io", + standard: "none", + }, + ], + testnet: !0, + slug: "beverly-hills", + }, + QZt = { + name: "Lambda Testnet", + chain: "Lambda", + rpc: [ + "https://lambda-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://evm.lambda.top/", + ], + faucets: ["https://faucet.lambda.top"], + nativeCurrency: { name: "test-Lamb", symbol: "LAMB", decimals: 18 }, + infoURL: "https://lambda.im", + shortName: "lambda-testnet", + chainId: 92001, + networkId: 92001, + icon: { + url: "ipfs://QmWsoME6LCghQTpGYf7EnUojaDdYo7kfkWVjE6VvNtkjwy", + width: 500, + height: 500, + format: "png", + }, + explorers: [ + { + name: "Lambda EVM Explorer", + url: "https://explorer.lambda.top", + standard: "EIP3091", + icon: "lambda", + }, + ], + testnet: !0, + slug: "lambda-testnet", + }, + XZt = { + name: "UB Smart Chain(testnet)", + chain: "USC", + rpc: [ + "https://ub-smart-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://testnet.rpc.uschain.network", + ], + faucets: [], + nativeCurrency: { name: "UBC", symbol: "UBC", decimals: 18 }, + infoURL: "https://www.ubchain.site", + shortName: "usctest", + chainId: 99998, + networkId: 99998, + testnet: !0, + slug: "ub-smart-chain-testnet", + }, + eQt = { + name: "UB Smart Chain", + chain: "USC", + rpc: [ + "https://ub-smart-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.uschain.network", + ], + faucets: [], + nativeCurrency: { name: "UBC", symbol: "UBC", decimals: 18 }, + infoURL: "https://www.ubchain.site/", + shortName: "usc", + chainId: 99999, + networkId: 99999, + testnet: !1, + slug: "ub-smart-chain", + }, + tQt = { + name: "QuarkChain Mainnet Root", + chain: "QuarkChain", + rpc: [ + "https://quarkchain-root.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "http://jrpc.mainnet.quarkchain.io:38391", + ], + faucets: [], + nativeCurrency: { name: "QKC", symbol: "QKC", decimals: 18 }, + infoURL: "https://www.quarkchain.io", + shortName: "qkc-r", + chainId: 1e5, + networkId: 1e5, + testnet: !1, + slug: "quarkchain-root", + }, + rQt = { + name: "QuarkChain Mainnet Shard 0", + chain: "QuarkChain", + rpc: [ + "https://quarkchain-shard-0.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://mainnet-s0-ethapi.quarkchain.io", + "http://eth-jrpc.mainnet.quarkchain.io:39000", + ], + faucets: [], + nativeCurrency: { name: "QKC", symbol: "QKC", decimals: 18 }, + infoURL: "https://www.quarkchain.io", + shortName: "qkc-s0", + chainId: 100001, + networkId: 100001, + parent: { chain: "eip155-100000", type: "shard" }, + explorers: [ + { + name: "quarkchain-mainnet", + url: "https://mainnet.quarkchain.io/0", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "quarkchain-shard-0", + }, + nQt = { + name: "QuarkChain Mainnet Shard 1", + chain: "QuarkChain", + rpc: [ + "https://quarkchain-shard-1.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://mainnet-s1-ethapi.quarkchain.io", + "http://eth-jrpc.mainnet.quarkchain.io:39001", + ], + faucets: [], + nativeCurrency: { name: "QKC", symbol: "QKC", decimals: 18 }, + infoURL: "https://www.quarkchain.io", + shortName: "qkc-s1", + chainId: 100002, + networkId: 100002, + parent: { chain: "eip155-100000", type: "shard" }, + explorers: [ + { + name: "quarkchain-mainnet", + url: "https://mainnet.quarkchain.io/1", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "quarkchain-shard-1", + }, + aQt = { + name: "QuarkChain Mainnet Shard 2", + chain: "QuarkChain", + rpc: [ + "https://quarkchain-shard-2.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://mainnet-s2-ethapi.quarkchain.io", + "http://eth-jrpc.mainnet.quarkchain.io:39002", + ], + faucets: [], + nativeCurrency: { name: "QKC", symbol: "QKC", decimals: 18 }, + infoURL: "https://www.quarkchain.io", + shortName: "qkc-s2", + chainId: 100003, + networkId: 100003, + parent: { chain: "eip155-100000", type: "shard" }, + explorers: [ + { + name: "quarkchain-mainnet", + url: "https://mainnet.quarkchain.io/2", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "quarkchain-shard-2", + }, + iQt = { + name: "QuarkChain Mainnet Shard 3", + chain: "QuarkChain", + rpc: [ + "https://quarkchain-shard-3.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://mainnet-s3-ethapi.quarkchain.io", + "http://eth-jrpc.mainnet.quarkchain.io:39003", + ], + faucets: [], + nativeCurrency: { name: "QKC", symbol: "QKC", decimals: 18 }, + infoURL: "https://www.quarkchain.io", + shortName: "qkc-s3", + chainId: 100004, + networkId: 100004, + parent: { chain: "eip155-100000", type: "shard" }, + explorers: [ + { + name: "quarkchain-mainnet", + url: "https://mainnet.quarkchain.io/3", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "quarkchain-shard-3", + }, + sQt = { + name: "QuarkChain Mainnet Shard 4", + chain: "QuarkChain", + rpc: [ + "https://quarkchain-shard-4.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://mainnet-s4-ethapi.quarkchain.io", + "http://eth-jrpc.mainnet.quarkchain.io:39004", + ], + faucets: [], + nativeCurrency: { name: "QKC", symbol: "QKC", decimals: 18 }, + infoURL: "https://www.quarkchain.io", + shortName: "qkc-s4", + chainId: 100005, + networkId: 100005, + parent: { chain: "eip155-100000", type: "shard" }, + explorers: [ + { + name: "quarkchain-mainnet", + url: "https://mainnet.quarkchain.io/4", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "quarkchain-shard-4", + }, + oQt = { + name: "QuarkChain Mainnet Shard 5", + chain: "QuarkChain", + rpc: [ + "https://quarkchain-shard-5.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://mainnet-s5-ethapi.quarkchain.io", + "http://eth-jrpc.mainnet.quarkchain.io:39005", + ], + faucets: [], + nativeCurrency: { name: "QKC", symbol: "QKC", decimals: 18 }, + infoURL: "https://www.quarkchain.io", + shortName: "qkc-s5", + chainId: 100006, + networkId: 100006, + parent: { chain: "eip155-100000", type: "shard" }, + explorers: [ + { + name: "quarkchain-mainnet", + url: "https://mainnet.quarkchain.io/5", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "quarkchain-shard-5", + }, + cQt = { + name: "QuarkChain Mainnet Shard 6", + chain: "QuarkChain", + rpc: [ + "https://quarkchain-shard-6.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://mainnet-s6-ethapi.quarkchain.io", + "http://eth-jrpc.mainnet.quarkchain.io:39006", + ], + faucets: [], + nativeCurrency: { name: "QKC", symbol: "QKC", decimals: 18 }, + infoURL: "https://www.quarkchain.io", + shortName: "qkc-s6", + chainId: 100007, + networkId: 100007, + parent: { chain: "eip155-100000", type: "shard" }, + explorers: [ + { + name: "quarkchain-mainnet", + url: "https://mainnet.quarkchain.io/6", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "quarkchain-shard-6", + }, + uQt = { + name: "QuarkChain Mainnet Shard 7", + chain: "QuarkChain", + rpc: [ + "https://quarkchain-shard-7.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://mainnet-s7-ethapi.quarkchain.io", + "http://eth-jrpc.mainnet.quarkchain.io:39007", + ], + faucets: [], + nativeCurrency: { name: "QKC", symbol: "QKC", decimals: 18 }, + infoURL: "https://www.quarkchain.io", + shortName: "qkc-s7", + chainId: 100008, + networkId: 100008, + parent: { chain: "eip155-100000", type: "shard" }, + explorers: [ + { + name: "quarkchain-mainnet", + url: "https://mainnet.quarkchain.io/7", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "quarkchain-shard-7", + }, + lQt = { + name: "VeChain", + chain: "VeChain", + rpc: [], + faucets: [], + nativeCurrency: { name: "VeChain", symbol: "VET", decimals: 18 }, + infoURL: "https://vechain.org", + shortName: "vechain", + chainId: 100009, + networkId: 100009, + explorers: [ + { + name: "VeChain Stats", + url: "https://vechainstats.com", + standard: "none", + }, + { + name: "VeChain Explorer", + url: "https://explore.vechain.org", + standard: "none", + }, + ], + testnet: !1, + slug: "vechain", + }, + dQt = { + name: "VeChain Testnet", + chain: "VeChain", + rpc: [], + faucets: ["https://faucet.vecha.in"], + nativeCurrency: { name: "VeChain", symbol: "VET", decimals: 18 }, + infoURL: "https://vechain.org", + shortName: "vechain-testnet", + chainId: 100010, + networkId: 100010, + explorers: [ + { + name: "VeChain Explorer", + url: "https://explore-testnet.vechain.org", + standard: "none", + }, + ], + testnet: !0, + slug: "vechain-testnet", + }, + pQt = { + name: "Soverun Testnet", + chain: "SVRN", + icon: { + url: "ipfs://QmTYazUzgY9Nn2mCjWwFUSLy3dG6i2PvALpwCNQvx1zXyi", + width: 1154, + height: 1154, + format: "png", + }, + rpc: [ + "https://soverun-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://testnet-rpc.soverun.com", + ], + faucets: ["https://faucet.soverun.com"], + nativeCurrency: { name: "Soverun", symbol: "SVRN", decimals: 18 }, + infoURL: "https://soverun.com", + shortName: "SVRNt", + chainId: 101010, + networkId: 101010, + explorers: [ + { + name: "Soverun", + url: "https://testnet.soverun.com", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "soverun-testnet", + }, + hQt = { + name: "Crystaleum", + chain: "crystal", + rpc: [ + "https://crystaleum.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://evm.cryptocurrencydevs.org", + "https://rpc.crystaleum.org", + ], + faucets: [], + nativeCurrency: { name: "CRFI", symbol: "\u25C8", decimals: 18 }, + infoURL: "https://crystaleum.org", + shortName: "CRFI", + chainId: 103090, + networkId: 1, + icon: { + url: "ipfs://Qmbry1Uc6HnXmqFNXW5dFJ7To8EezCCjNr4TqqvAyzXS4h", + width: 150, + height: 150, + format: "png", + }, + explorers: [ + { + name: "blockscout", + url: "https://scan.crystaleum.org", + icon: "crystal", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "crystaleum", + }, + fQt = { + name: "BROChain Mainnet", + chain: "BRO", + rpc: [ + "https://brochain.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.brochain.org", + "http://rpc.brochain.org", + "https://rpc.brochain.org/mainnet", + "http://rpc.brochain.org/mainnet", + ], + faucets: [], + nativeCurrency: { name: "Brother", symbol: "BRO", decimals: 18 }, + infoURL: "https://brochain.org", + shortName: "bro", + chainId: 108801, + networkId: 108801, + explorers: [ + { + name: "BROChain Explorer", + url: "https://explorer.brochain.org", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "brochain", + }, + mQt = { + name: "QuarkChain Devnet Root", + chain: "QuarkChain", + rpc: [ + "https://quarkchain-devnet-root.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "http://jrpc.devnet.quarkchain.io:38391", + ], + faucets: [], + nativeCurrency: { name: "QKC", symbol: "QKC", decimals: 18 }, + infoURL: "https://www.quarkchain.io", + shortName: "qkc-d-r", + chainId: 11e4, + networkId: 11e4, + testnet: !1, + slug: "quarkchain-devnet-root", + }, + yQt = { + name: "QuarkChain Devnet Shard 0", + chain: "QuarkChain", + rpc: [ + "https://quarkchain-devnet-shard-0.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://devnet-s0-ethapi.quarkchain.io", + "http://eth-jrpc.devnet.quarkchain.io:39900", + ], + faucets: [], + nativeCurrency: { name: "QKC", symbol: "QKC", decimals: 18 }, + infoURL: "https://www.quarkchain.io", + shortName: "qkc-d-s0", + chainId: 110001, + networkId: 110001, + parent: { chain: "eip155-110000", type: "shard" }, + explorers: [ + { + name: "quarkchain-devnet", + url: "https://devnet.quarkchain.io/0", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "quarkchain-devnet-shard-0", + }, + gQt = { + name: "QuarkChain Devnet Shard 1", + chain: "QuarkChain", + rpc: [ + "https://quarkchain-devnet-shard-1.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://devnet-s1-ethapi.quarkchain.io", + "http://eth-jrpc.devnet.quarkchain.io:39901", + ], + faucets: [], + nativeCurrency: { name: "QKC", symbol: "QKC", decimals: 18 }, + infoURL: "https://www.quarkchain.io", + shortName: "qkc-d-s1", + chainId: 110002, + networkId: 110002, + parent: { chain: "eip155-110000", type: "shard" }, + explorers: [ + { + name: "quarkchain-devnet", + url: "https://devnet.quarkchain.io/1", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "quarkchain-devnet-shard-1", + }, + bQt = { + name: "QuarkChain Devnet Shard 2", + chain: "QuarkChain", + rpc: [ + "https://quarkchain-devnet-shard-2.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://devnet-s2-ethapi.quarkchain.io", + "http://eth-jrpc.devnet.quarkchain.io:39902", + ], + faucets: [], + nativeCurrency: { name: "QKC", symbol: "QKC", decimals: 18 }, + infoURL: "https://www.quarkchain.io", + shortName: "qkc-d-s2", + chainId: 110003, + networkId: 110003, + parent: { chain: "eip155-110000", type: "shard" }, + explorers: [ + { + name: "quarkchain-devnet", + url: "https://devnet.quarkchain.io/2", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "quarkchain-devnet-shard-2", + }, + vQt = { + name: "QuarkChain Devnet Shard 3", + chain: "QuarkChain", + rpc: [ + "https://quarkchain-devnet-shard-3.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://devnet-s3-ethapi.quarkchain.io", + "http://eth-jrpc.devnet.quarkchain.io:39903", + ], + faucets: [], + nativeCurrency: { name: "QKC", symbol: "QKC", decimals: 18 }, + infoURL: "https://www.quarkchain.io", + shortName: "qkc-d-s3", + chainId: 110004, + networkId: 110004, + parent: { chain: "eip155-110000", type: "shard" }, + explorers: [ + { + name: "quarkchain-devnet", + url: "https://devnet.quarkchain.io/3", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "quarkchain-devnet-shard-3", + }, + wQt = { + name: "QuarkChain Devnet Shard 4", + chain: "QuarkChain", + rpc: [ + "https://quarkchain-devnet-shard-4.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://devnet-s4-ethapi.quarkchain.io", + "http://eth-jrpc.devnet.quarkchain.io:39904", + ], + faucets: [], + nativeCurrency: { name: "QKC", symbol: "QKC", decimals: 18 }, + infoURL: "https://www.quarkchain.io", + shortName: "qkc-d-s4", + chainId: 110005, + networkId: 110005, + parent: { chain: "eip155-110000", type: "shard" }, + explorers: [ + { + name: "quarkchain-devnet", + url: "https://devnet.quarkchain.io/4", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "quarkchain-devnet-shard-4", + }, + _Qt = { + name: "QuarkChain Devnet Shard 5", + chain: "QuarkChain", + rpc: [ + "https://quarkchain-devnet-shard-5.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://devnet-s5-ethapi.quarkchain.io", + "http://eth-jrpc.devnet.quarkchain.io:39905", + ], + faucets: [], + nativeCurrency: { name: "QKC", symbol: "QKC", decimals: 18 }, + infoURL: "https://www.quarkchain.io", + shortName: "qkc-d-s5", + chainId: 110006, + networkId: 110006, + parent: { chain: "eip155-110000", type: "shard" }, + explorers: [ + { + name: "quarkchain-devnet", + url: "https://devnet.quarkchain.io/5", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "quarkchain-devnet-shard-5", + }, + xQt = { + name: "QuarkChain Devnet Shard 6", + chain: "QuarkChain", + rpc: [ + "https://quarkchain-devnet-shard-6.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://devnet-s6-ethapi.quarkchain.io", + "http://eth-jrpc.devnet.quarkchain.io:39906", + ], + faucets: [], + nativeCurrency: { name: "QKC", symbol: "QKC", decimals: 18 }, + infoURL: "https://www.quarkchain.io", + shortName: "qkc-d-s6", + chainId: 110007, + networkId: 110007, + parent: { chain: "eip155-110000", type: "shard" }, + explorers: [ + { + name: "quarkchain-devnet", + url: "https://devnet.quarkchain.io/6", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "quarkchain-devnet-shard-6", + }, + TQt = { + name: "QuarkChain Devnet Shard 7", + chain: "QuarkChain", + rpc: [ + "https://quarkchain-devnet-shard-7.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://devnet-s7-ethapi.quarkchain.io", + "http://eth-jrpc.devnet.quarkchain.io:39907", + ], + faucets: [], + nativeCurrency: { name: "QKC", symbol: "QKC", decimals: 18 }, + infoURL: "https://www.quarkchain.io", + shortName: "qkc-d-s7", + chainId: 110008, + networkId: 110008, + parent: { chain: "eip155-110000", type: "shard" }, + explorers: [ + { + name: "quarkchain-devnet", + url: "https://devnet.quarkchain.io/7", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "quarkchain-devnet-shard-7", + }, + EQt = { + name: "ETND Chain Mainnets", + chain: "ETND", + rpc: [ + "https://etnd-chain-s.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.node1.etnd.pro/", + ], + faucets: [], + nativeCurrency: { name: "ETND", symbol: "ETND", decimals: 18 }, + infoURL: "https://www.etnd.pro", + shortName: "ETND", + chainId: 131419, + networkId: 131419, + icon: { + url: "ipfs://Qmd26eRJxPb1jJg5Q4mC2M4kD9Jrs5vmcnr5LczHFMGwSD", + width: 128, + height: 128, + format: "png", + }, + explorers: [ + { + name: "etndscan", + url: "https://scan.etnd.pro", + icon: "ETND", + standard: "none", + }, + ], + testnet: !1, + slug: "etnd-chain-s", + }, + CQt = { + name: "Condor Test Network", + chain: "CONDOR", + icon: { + url: "ipfs://QmPRDuEJSTqp2cDUvWCp71Wns6XV8nvdeAVKWH6srpk4xM", + width: 752, + height: 752, + format: "png", + }, + rpc: [ + "https://condor-test-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://testnet.condor.systems/rpc", + ], + faucets: ["https://faucet.condor.systems"], + nativeCurrency: { + name: "Condor Native Token", + symbol: "CONDOR", + decimals: 18, + }, + infoURL: "https://condor.systems", + shortName: "condor", + chainId: 188881, + networkId: 188881, + explorers: [ + { + name: "CondorScan", + url: "https://explorer.condor.systems", + standard: "none", + }, + ], + testnet: !0, + slug: "condor-test-network", + }, + IQt = { + name: "Milkomeda C1 Testnet", + chain: "milkTAda", + icon: { + url: "ipfs://QmdoUtvHDybu5ppYBZT8BMRp6AqByVSoQs8nFwKbaS55jd", + width: 367, + height: 367, + format: "svg", + }, + rpc: [ + "https://milkomeda-c1-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc-devnet-cardano-evm.c1.milkomeda.com", + "wss://rpc-devnet-cardano-evm.c1.milkomeda.com", + ], + faucets: [], + nativeCurrency: { name: "milkTAda", symbol: "mTAda", decimals: 18 }, + infoURL: "https://milkomeda.com", + shortName: "milkTAda", + chainId: 200101, + networkId: 200101, + explorers: [ + { + name: "Blockscout", + url: "https://explorer-devnet-cardano-evm.c1.milkomeda.com", + standard: "none", + }, + ], + testnet: !0, + slug: "milkomeda-c1-testnet", + }, + AQt = { + name: "Milkomeda A1 Testnet", + chain: "milkTAlgo", + icon: { + url: "ipfs://QmdoUtvHDybu5ppYBZT8BMRp6AqByVSoQs8nFwKbaS55jd", + width: 367, + height: 367, + format: "svg", + }, + rpc: [ + "https://milkomeda-a1-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc-devnet-algorand-rollup.a1.milkomeda.com", + ], + faucets: [], + nativeCurrency: { name: "milkTAlgo", symbol: "mTAlgo", decimals: 18 }, + infoURL: "https://milkomeda.com", + shortName: "milkTAlgo", + chainId: 200202, + networkId: 200202, + explorers: [ + { + name: "Blockscout", + url: "https://explorer-devnet-algorand-rollup.a1.milkomeda.com", + standard: "none", + }, + ], + testnet: !0, + slug: "milkomeda-a1-testnet", + }, + kQt = { + name: "Akroma", + chain: "AKA", + rpc: [ + "https://akroma.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://remote.akroma.io", + ], + faucets: [], + nativeCurrency: { name: "Akroma Ether", symbol: "AKA", decimals: 18 }, + infoURL: "https://akroma.io", + shortName: "aka", + chainId: 200625, + networkId: 200625, + slip44: 200625, + testnet: !1, + slug: "akroma", + }, + SQt = { + name: "Alaya Mainnet", + chain: "Alaya", + rpc: [ + "https://alaya.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://openapi.alaya.network/rpc", + "wss://openapi.alaya.network/ws", + ], + faucets: [], + nativeCurrency: { name: "ATP", symbol: "atp", decimals: 18 }, + infoURL: "https://www.alaya.network/", + shortName: "alaya", + chainId: 201018, + networkId: 1, + icon: { + url: "ipfs://Qmci6vPcWAwmq19j98yuQxjV6UPzHtThMdCAUDbKeb8oYu", + width: 1140, + height: 1140, + format: "png", + }, + explorers: [ + { + name: "alaya explorer", + url: "https://scan.alaya.network", + standard: "none", + }, + ], + testnet: !1, + slug: "alaya", + }, + MQt = { + name: "Alaya Dev Testnet", + chain: "Alaya", + rpc: [ + "https://alaya-dev-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://devnetopenapi.alaya.network/rpc", + "wss://devnetopenapi.alaya.network/ws", + ], + faucets: [ + "https://faucet.alaya.network/faucet/?id=f93426c0887f11eb83b900163e06151c", + ], + nativeCurrency: { name: "ATP", symbol: "atp", decimals: 18 }, + infoURL: "https://www.alaya.network/", + shortName: "alayadev", + chainId: 201030, + networkId: 1, + icon: { + url: "ipfs://Qmci6vPcWAwmq19j98yuQxjV6UPzHtThMdCAUDbKeb8oYu", + width: 1140, + height: 1140, + format: "png", + }, + explorers: [ + { + name: "alaya explorer", + url: "https://devnetscan.alaya.network", + standard: "none", + }, + ], + testnet: !0, + slug: "alaya-dev-testnet", + }, + PQt = { + name: "Mythical Chain", + chain: "MYTH", + rpc: [ + "https://mythical-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://chain-rpc.mythicalgames.com", + ], + faucets: [], + nativeCurrency: { name: "Mythos", symbol: "MYTH", decimals: 18 }, + features: [{ name: "EIP155" }, { name: "EIP1559" }], + infoURL: "https://mythicalgames.com/", + shortName: "myth", + chainId: 201804, + networkId: 201804, + icon: { + url: "ipfs://bafkreihru6cccfblrjz5bv36znq2l3h67u6xj5ivtc4bj5l6gzofbgtnb4", + width: 350, + height: 350, + format: "png", + }, + explorers: [ + { + name: "Mythical Chain Explorer", + url: "https://explorer.mythicalgames.com", + icon: "mythical", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "mythical-chain", + }, + RQt = { + name: "Decimal Smart Chain Testnet", + chain: "tDSC", + rpc: [ + "https://decimal-smart-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://testnet-val.decimalchain.com/web3", + ], + faucets: [], + nativeCurrency: { name: "Decimal", symbol: "tDEL", decimals: 18 }, + features: [{ name: "EIP155" }, { name: "EIP1559" }], + infoURL: "https://decimalchain.com", + shortName: "tDSC", + chainId: 202020, + networkId: 202020, + icon: { + url: "ipfs://QmSgzwKnJJjys3Uq2aVVdwJ3NffLj3CXMVCph9uByTBegc", + width: 256, + height: 256, + format: "png", + }, + explorers: [ + { + name: "DSC Explorer Testnet", + url: "https://testnet.explorer.decimalchain.com", + icon: "dsc", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "decimal-smart-chain-testnet", + }, + BQt = { + name: "Jellie", + title: "Twala Testnet Jellie", + shortName: "twl-jellie", + chain: "ETH", + chainId: 202624, + networkId: 202624, + icon: { + url: "ipfs://QmTXJVhVKvVC7DQEnGKXvydvwpvVaUEBJrMHvsCr4nr1sK", + width: 1326, + height: 1265, + format: "png", + }, + nativeCurrency: { name: "Twala Coin", symbol: "TWL", decimals: 18 }, + rpc: [ + "https://jellie.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://jellie-rpc.twala.io/", + "wss://jellie-rpc-wss.twala.io/", + ], + faucets: [], + infoURL: "https://twala.io/", + explorers: [ + { + name: "Jellie Blockchain Explorer", + url: "https://jellie.twala.io", + standard: "EIP3091", + icon: "twala", + }, + ], + testnet: !0, + slug: "jellie", + }, + NQt = { + name: "PlatON Mainnet", + chain: "PlatON", + rpc: [ + "https://platon.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://openapi2.platon.network/rpc", + "wss://openapi2.platon.network/ws", + ], + faucets: [], + nativeCurrency: { name: "LAT", symbol: "lat", decimals: 18 }, + infoURL: "https://www.platon.network", + shortName: "platon", + chainId: 210425, + networkId: 1, + icon: { + url: "ipfs://QmT7PSXBiVBma6E15hNkivmstqLu3JSnG1jXN5pTmcCGRC", + width: 200, + height: 200, + format: "png", + }, + explorers: [ + { + name: "PlatON explorer", + url: "https://scan.platon.network", + standard: "none", + }, + ], + testnet: !1, + slug: "platon", + }, + OQt = { + name: "Mas Mainnet", + chain: "MAS", + rpc: [ + "https://mas.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "http://node.masnet.ai:8545", + ], + faucets: [], + nativeCurrency: { name: "Master Bank", symbol: "MAS", decimals: 18 }, + features: [{ name: "EIP155" }, { name: "EIP1559" }], + infoURL: "https://masterbank.org", + shortName: "mas", + chainId: 220315, + networkId: 220315, + icon: { + url: "ipfs://QmZ9njQhhKkpJKGnoYy6XTuDtk5CYiDFUd8atqWthqUT3Q", + width: 1024, + height: 1024, + format: "png", + }, + explorers: [ + { + name: "explorer masnet", + url: "https://explorer.masnet.ai", + icon: "explorer", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "mas", + }, + LQt = { + name: "Haymo Testnet", + chain: "tHYM", + rpc: [ + "https://haymo-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://testnet1.haymo.network", + ], + faucets: [], + nativeCurrency: { name: "HAYMO", symbol: "HYM", decimals: 18 }, + infoURL: "https://haymoswap.web.app/", + shortName: "hym", + chainId: 234666, + networkId: 234666, + testnet: !0, + slug: "haymo-testnet", + }, + DQt = { + name: "ARTIS sigma1", + chain: "ARTIS", + rpc: [ + "https://artis-sigma1.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.sigma1.artis.network", + ], + faucets: [], + nativeCurrency: { + name: "ARTIS sigma1 Ether", + symbol: "ATS", + decimals: 18, + }, + infoURL: "https://artis.eco", + shortName: "ats", + chainId: 246529, + networkId: 246529, + slip44: 246529, + testnet: !1, + slug: "artis-sigma1", + }, + qQt = { + name: "ARTIS Testnet tau1", + chain: "ARTIS", + rpc: [ + "https://artis-testnet-tau1.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.tau1.artis.network", + ], + faucets: [], + nativeCurrency: { + name: "ARTIS tau1 Ether", + symbol: "tATS", + decimals: 18, + }, + infoURL: "https://artis.network", + shortName: "atstau", + chainId: 246785, + networkId: 246785, + testnet: !0, + slug: "artis-testnet-tau1", + }, + FQt = { + name: "Saakuru Testnet", + chain: "Saakuru", + icon: { + url: "ipfs://QmduEdtFobPpZWSc45MU6RKxZfTEzLux2z8ikHFhT8usqv", + width: 1024, + height: 1024, + format: "png", + }, + rpc: [ + "https://saakuru-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc-testnet.saakuru.network", + ], + faucets: [], + nativeCurrency: { name: "OAS", symbol: "OAS", decimals: 18 }, + infoURL: "https://saakuru.network", + shortName: "saakuru-testnet", + chainId: 247253, + networkId: 247253, + explorers: [ + { + name: "saakuru-explorer-testnet", + url: "https://explorer-testnet.saakuru.network", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "saakuru-testnet", + }, + WQt = { + name: "CMP-Mainnet", + chain: "CMP", + rpc: [ + "https://cmp.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://mainnet.block.caduceus.foundation", + "wss://mainnet.block.caduceus.foundation", + ], + faucets: [], + nativeCurrency: { name: "Caduceus Token", symbol: "CMP", decimals: 18 }, + infoURL: "https://caduceus.foundation/", + shortName: "cmp-mainnet", + chainId: 256256, + networkId: 256256, + explorers: [ + { + name: "Mainnet Scan", + url: "https://mainnet.scan.caduceus.foundation", + standard: "none", + }, + ], + testnet: !1, + slug: "cmp", + }, + UQt = { + name: "Gear Zero Network Testnet", + chain: "GearZero", + rpc: [ + "https://gear-zero-network-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://gzn-test.linksme.info", + ], + faucets: [], + nativeCurrency: { + name: "Gear Zero Network Native Token", + symbol: "GZN", + decimals: 18, + }, + infoURL: "https://token.gearzero.ca/testnet", + shortName: "gz-testnet", + chainId: 266256, + networkId: 266256, + slip44: 266256, + explorers: [], + testnet: !0, + slug: "gear-zero-network-testnet", + }, + HQt = { + name: "Social Smart Chain Mainnet", + chain: "SoChain", + rpc: [ + "https://social-smart-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://socialsmartchain.digitalnext.business", + ], + faucets: [], + nativeCurrency: { name: "SoChain", symbol: "$OC", decimals: 18 }, + infoURL: "https://digitalnext.business/SocialSmartChain", + shortName: "SoChain", + chainId: 281121, + networkId: 281121, + explorers: [], + testnet: !1, + slug: "social-smart-chain", + }, + zQt = { + name: "Filecoin - Calibration testnet", + chain: "FIL", + icon: { + url: "ipfs://QmS9r9XQkMHVomWcSBNDkKkz9n87h9bH9ssabeiKZtANoU", + width: 1e3, + height: 1e3, + format: "png", + }, + rpc: [ + "https://filecoin-calibration-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://api.calibration.node.glif.io/rpc/v1", + ], + faucets: ["https://faucet.calibration.fildev.network/"], + nativeCurrency: { + name: "testnet filecoin", + symbol: "tFIL", + decimals: 18, + }, + infoURL: "https://filecoin.io", + shortName: "filecoin-calibration", + chainId: 314159, + networkId: 314159, + slip44: 1, + explorers: [ + { + name: "Filscan - Calibration", + url: "https://calibration.filscan.io", + standard: "none", + }, + { + name: "Filscout - Calibration", + url: "https://calibration.filscout.com/en", + standard: "none", + }, + ], + testnet: !0, + slug: "filecoin-calibration-testnet", + }, + jQt = { + name: "Oone Chain Testnet", + chain: "OONE", + rpc: [ + "https://oone-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://blockchain-test.adigium.world", + ], + faucets: ["https://apps-test.adigium.com/faucet"], + nativeCurrency: { name: "Oone", symbol: "tOONE", decimals: 18 }, + infoURL: "https://oone.world", + shortName: "oonetest", + chainId: 333777, + networkId: 333777, + explorers: [ + { + name: "expedition", + url: "https://explorer-test.adigium.world", + standard: "none", + }, + ], + testnet: !0, + slug: "oone-chain-testnet", + }, + KQt = { + name: "Polis Testnet", + chain: "Sparta", + icon: { + url: "ipfs://QmagWrtyApex28H2QeXcs3jJ2F7p2K7eESz3cDbHdQ3pjG", + width: 1050, + height: 1050, + format: "png", + }, + rpc: [ + "https://polis-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://sparta-rpc.polis.tech", + ], + faucets: ["https://faucet.polis.tech"], + nativeCurrency: { name: "tPolis", symbol: "tPOLIS", decimals: 18 }, + infoURL: "https://polis.tech", + shortName: "sparta", + chainId: 333888, + networkId: 333888, + testnet: !0, + slug: "polis-testnet", + }, + VQt = { + name: "Polis Mainnet", + chain: "Olympus", + icon: { + url: "ipfs://QmagWrtyApex28H2QeXcs3jJ2F7p2K7eESz3cDbHdQ3pjG", + width: 1050, + height: 1050, + format: "png", + }, + rpc: [ + "https://polis.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.polis.tech", + ], + faucets: ["https://faucet.polis.tech"], + nativeCurrency: { name: "Polis", symbol: "POLIS", decimals: 18 }, + infoURL: "https://polis.tech", + shortName: "olympus", + chainId: 333999, + networkId: 333999, + testnet: !1, + slug: "polis", + }, + GQt = { + name: "Metal C-Chain", + chain: "Metal", + rpc: [ + "https://metal-c-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://api.metalblockchain.org/ext/bc/C/rpc", + ], + faucets: [], + nativeCurrency: { name: "Metal", symbol: "METAL", decimals: 18 }, + infoURL: "https://www.metalblockchain.org/", + shortName: "metal", + chainId: 381931, + networkId: 381931, + slip44: 9005, + explorers: [ + { + name: "metalscan", + url: "https://metalscan.io", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "metal-c-chain", + }, + YQt = { + name: "Metal Tahoe C-Chain", + chain: "Metal", + rpc: [ + "https://metal-tahoe-c-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://tahoe.metalblockchain.org/ext/bc/C/rpc", + ], + faucets: [], + nativeCurrency: { name: "Metal", symbol: "METAL", decimals: 18 }, + infoURL: "https://www.metalblockchain.org/", + shortName: "Tahoe", + chainId: 381932, + networkId: 381932, + slip44: 9005, + explorers: [ + { + name: "metalscan", + url: "https://tahoe.metalscan.io", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "metal-tahoe-c-chain", + }, + $Qt = { + name: "Kekchain", + chain: "kek", + rpc: [ + "https://kekchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://mainnet.kekchain.com", + ], + faucets: [], + nativeCurrency: { name: "KEK", symbol: "KEK", decimals: 18 }, + infoURL: "https://kekchain.com", + shortName: "KEK", + chainId: 420420, + networkId: 103090, + icon: { + url: "ipfs://QmNzwHAmaaQyuvKudrzGkrTT2GMshcmCmJ9FH8gG2mNJtM", + width: 401, + height: 401, + format: "svg", + }, + explorers: [ + { + name: "blockscout", + url: "https://mainnet-explorer.kekchain.com", + icon: "kek", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "kekchain", + }, + JQt = { + name: "Kekchain (kektest)", + chain: "kek", + rpc: [ + "https://kekchain-kektest.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://testnet.kekchain.com", + ], + faucets: [], + nativeCurrency: { name: "tKEK", symbol: "tKEK", decimals: 18 }, + infoURL: "https://kekchain.com", + shortName: "tKEK", + chainId: 420666, + networkId: 1, + icon: { + url: "ipfs://QmNzwHAmaaQyuvKudrzGkrTT2GMshcmCmJ9FH8gG2mNJtM", + width: 401, + height: 401, + format: "svg", + }, + explorers: [ + { + name: "blockscout", + url: "https://testnet-explorer.kekchain.com", + icon: "kek", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "kekchain-kektest", + }, + ZQt = { + name: "Arbitrum Rinkeby", + title: "Arbitrum Testnet Rinkeby", + chainId: 421611, + shortName: "arb-rinkeby", + chain: "ETH", + networkId: 421611, + nativeCurrency: { + name: "Arbitrum Rinkeby Ether", + symbol: "ETH", + decimals: 18, + }, + rpc: [ + "https://arbitrum-rinkeby.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rinkeby.arbitrum.io/rpc", + ], + faucets: [ + "http://fauceth.komputing.org?chain=421611&address=${ADDRESS}", + ], + infoURL: "https://arbitrum.io", + explorers: [ + { + name: "arbiscan-testnet", + url: "https://testnet.arbiscan.io", + standard: "EIP3091", + }, + { + name: "arbitrum-rinkeby", + url: "https://rinkeby-explorer.arbitrum.io", + standard: "EIP3091", + }, + ], + parent: { + type: "L2", + chain: "eip155-4", + bridges: [{ url: "https://bridge.arbitrum.io" }], + }, + testnet: !0, + slug: "arbitrum-rinkeby", + }, + QQt = { + name: "Arbitrum Goerli", + title: "Arbitrum Goerli Rollup Testnet", + chainId: 421613, + shortName: "arb-goerli", + chain: "ETH", + networkId: 421613, + nativeCurrency: { + name: "Arbitrum Goerli Ether", + symbol: "AGOR", + decimals: 18, + }, + rpc: [ + "https://arbitrum-goerli.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://arb-goerli.g.alchemy.com/v2/${ALCHEMY_API_KEY}", + "https://abritrum-goerli.infura.io/v3/${INFURA_API_KEY}", + "https://goerli-rollup.arbitrum.io/rpc/", + ], + faucets: [], + infoURL: "https://arbitrum.io/", + explorers: [ + { + name: "Arbitrum Goerli Rollup Explorer", + url: "https://goerli-rollup-explorer.arbitrum.io", + standard: "EIP3091", + }, + ], + parent: { + type: "L2", + chain: "eip155-5", + bridges: [{ url: "https://bridge.arbitrum.io/" }], + }, + icon: { + url: "ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/arbitrum/512.png", + height: 512, + width: 512, + format: "png", + sizes: [512, 256, 128, 64, 32, 16], + }, + testnet: !0, + slug: "arbitrum-goerli", + }, + XQt = { + name: "Fastex Chain testnet", + chain: "FTN", + title: "Fastex Chain testnet", + rpc: [ + "https://fastex-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.testnet.fastexchain.com", + ], + features: [{ name: "EIP155" }, { name: "EIP1559" }], + faucets: [], + nativeCurrency: { name: "FTN", symbol: "FTN", decimals: 18 }, + infoURL: "https://fastex.com", + shortName: "ftn", + chainId: 424242, + networkId: 424242, + explorers: [ + { + name: "blockscout", + url: "https://testnet.ftnscan.com", + standard: "none", + }, + ], + testnet: !0, + slug: "fastex-chain-testnet", + }, + eXt = { + name: "Dexalot Subnet Testnet", + chain: "DEXALOT", + icon: { + url: "ipfs://QmfVxdrWjtUKiGzqFDzAxHH2FqwP2aRuZTGcYWdWg519Xy", + width: 256, + height: 256, + format: "png", + }, + rpc: [ + "https://dexalot-subnet-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://subnets.avax.network/dexalot/testnet/rpc", + ], + faucets: ["https://faucet.avax.network/?subnet=dexalot"], + nativeCurrency: { name: "Dexalot", symbol: "ALOT", decimals: 18 }, + infoURL: "https://dexalot.com", + shortName: "dexalot-testnet", + chainId: 432201, + networkId: 432201, + explorers: [ + { + name: "Avalanche Subnet Testnet Explorer", + url: "https://subnets-test.avax.network/dexalot", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "dexalot-subnet-testnet", + }, + tXt = { + name: "Dexalot Subnet", + chain: "DEXALOT", + icon: { + url: "ipfs://QmfVxdrWjtUKiGzqFDzAxHH2FqwP2aRuZTGcYWdWg519Xy", + width: 256, + height: 256, + format: "png", + }, + rpc: [ + "https://dexalot-subnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://subnets.avax.network/dexalot/mainnet/rpc", + ], + faucets: [], + nativeCurrency: { name: "Dexalot", symbol: "ALOT", decimals: 18 }, + infoURL: "https://dexalot.com", + shortName: "dexalot", + chainId: 432204, + networkId: 432204, + explorers: [ + { + name: "Avalanche Subnet Explorer", + url: "https://subnets.avax.network/dexalot", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "dexalot-subnet", + }, + rXt = { + name: "Weelink Testnet", + chain: "WLK", + rpc: [ + "https://weelink-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://weelinknode1c.gw002.oneitfarm.com", + ], + faucets: ["https://faucet.weelink.gw002.oneitfarm.com"], + nativeCurrency: { + name: "Weelink Chain Token", + symbol: "tWLK", + decimals: 18, + }, + infoURL: "https://weelink.cloud", + shortName: "wlkt", + chainId: 444900, + networkId: 444900, + explorers: [ + { + name: "weelink-testnet", + url: "https://weelink.cloud/#/blockView/overview", + standard: "none", + }, + ], + testnet: !0, + slug: "weelink-testnet", + }, + nXt = { + name: "OpenChain Mainnet", + chain: "OpenChain", + rpc: [ + "https://openchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://baas-rpc.luniverse.io:18545?lChainId=1641349324562974539", + ], + faucets: [], + nativeCurrency: { name: "OpenCoin", symbol: "OPC", decimals: 10 }, + infoURL: "https://www.openchain.live", + shortName: "oc", + chainId: 474142, + networkId: 474142, + explorers: [ + { + name: "SIDE SCAN", + url: "https://sidescan.luniverse.io/1641349324562974539", + standard: "none", + }, + ], + testnet: !1, + slug: "openchain", + }, + aXt = { + name: "CMP-Testnet", + chain: "CMP", + rpc: [ + "https://cmp-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://galaxy.block.caduceus.foundation", + "wss://galaxy.block.caduceus.foundation", + ], + faucets: ["https://dev.caduceus.foundation/testNetwork"], + nativeCurrency: { + name: "Caduceus Testnet Token", + symbol: "CMP", + decimals: 18, + }, + infoURL: "https://caduceus.foundation/", + shortName: "cmp", + chainId: 512512, + networkId: 512512, + explorers: [ + { + name: "Galaxy Scan", + url: "https://galaxy.scan.caduceus.foundation", + standard: "none", + }, + ], + testnet: !0, + slug: "cmp-testnet", + }, + iXt = { + name: "ethereum Fair", + chainId: 513100, + networkId: 513100, + shortName: "etf", + chain: "ETF", + nativeCurrency: { name: "EthereumFair", symbol: "ETHF", decimals: 18 }, + rpc: [ + "https://ethereum-fair.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.etherfair.org", + ], + faucets: [], + explorers: [ + { + name: "etherfair", + url: "https://explorer.etherfair.org", + standard: "EIP3091", + }, + ], + infoURL: "https://etherfair.org", + testnet: !1, + slug: "ethereum-fair", + }, + sXt = { + name: "Scroll", + chain: "ETH", + rpc: [], + faucets: [], + nativeCurrency: { name: "Ether", symbol: "ETH", decimals: 18 }, + infoURL: "https://scroll.io", + shortName: "scr", + chainId: 534352, + networkId: 534352, + explorers: [], + parent: { type: "L2", chain: "eip155-1", bridges: [] }, + testnet: !1, + slug: "scroll", + }, + oXt = { + name: "Scroll Alpha Testnet", + chain: "ETH", + status: "incubating", + rpc: [ + "https://scroll-alpha-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://alpha-rpc.scroll.io/l2", + ], + faucets: [], + nativeCurrency: { name: "Ether", symbol: "ETH", decimals: 18 }, + infoURL: "https://scroll.io", + shortName: "scr-alpha", + chainId: 534353, + networkId: 534353, + explorers: [ + { + name: "Scroll Alpha Testnet Block Explorer", + url: "https://blockscout.scroll.io", + standard: "EIP3091", + }, + ], + parent: { type: "L2", chain: "eip155-5", bridges: [] }, + testnet: !0, + slug: "scroll-alpha-testnet", + }, + cXt = { + name: "Scroll Pre-Alpha Testnet", + chain: "ETH", + rpc: [ + "https://scroll-pre-alpha-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://prealpha-rpc.scroll.io/l2", + ], + faucets: ["https://prealpha.scroll.io/faucet"], + nativeCurrency: { name: "Ether", symbol: "TSETH", decimals: 18 }, + infoURL: "https://scroll.io", + shortName: "scr-prealpha", + chainId: 534354, + networkId: 534354, + explorers: [ + { + name: "Scroll L2 Block Explorer", + url: "https://l2scan.scroll.io", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "scroll-pre-alpha-testnet", + }, + uXt = { + name: "Bear Network Chain Mainnet", + chain: "BRNKC", + icon: { + url: "ipfs://QmQqhH28QpUrreoRw5Gj8YShzdHxxVGMjfVrx3TqJNLSLv", + width: 1067, + height: 1067, + format: "png", + }, + rpc: [ + "https://bear-network-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://brnkc-mainnet.bearnetwork.net", + "https://brnkc-mainnet1.bearnetwork.net", + ], + faucets: [], + nativeCurrency: { + name: "Bear Network Chain Native Token", + symbol: "BRNKC", + decimals: 18, + }, + infoURL: "https://bearnetwork.net", + shortName: "BRNKC", + chainId: 641230, + networkId: 641230, + explorers: [ + { + name: "brnkscan", + url: "https://brnkscan.bearnetwork.net", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "bear-network-chain", + }, + lXt = { + name: "Vision - Vpioneer Test Chain", + chain: "Vision-Vpioneer", + rpc: [ + "https://vision-vpioneer-test-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://vpioneer.infragrid.v.network/ethereum/compatible", + ], + faucets: ["https://vpioneerfaucet.visionscan.org"], + nativeCurrency: { name: "VS", symbol: "VS", decimals: 18 }, + infoURL: "https://visionscan.org", + shortName: "vpioneer", + chainId: 666666, + networkId: 666666, + slip44: 60, + testnet: !0, + slug: "vision-vpioneer-test-chain", + }, + dXt = { + name: "Bear Network Chain Testnet", + chain: "BRNKCTEST", + icon: { + url: "ipfs://QmQqhH28QpUrreoRw5Gj8YShzdHxxVGMjfVrx3TqJNLSLv", + width: 1067, + height: 1067, + format: "png", + }, + rpc: [ + "https://bear-network-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://brnkc-test.bearnetwork.net", + ], + faucets: ["https://faucet.bearnetwork.net"], + nativeCurrency: { + name: "Bear Network Chain Testnet Token", + symbol: "tBRNKC", + decimals: 18, + }, + infoURL: "https://bearnetwork.net", + shortName: "BRNKCTEST", + chainId: 751230, + networkId: 751230, + explorers: [ + { + name: "brnktestscan", + url: "https://brnktest-scan.bearnetwork.net", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "bear-network-chain-testnet", + }, + pXt = { + name: "OctaSpace", + chain: "OCTA", + rpc: [ + "https://octaspace.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.octa.space", + "wss://rpc.octa.space", + ], + faucets: [], + nativeCurrency: { name: "OctaSpace", symbol: "OCTA", decimals: 18 }, + infoURL: "https://octa.space", + shortName: "octa", + chainId: 800001, + networkId: 800001, + icon: { + url: "ipfs://QmVhezQHkqSZ5Tvtsw18giA1yBjV1URSsBQ7HenUh6p6oC", + width: 512, + height: 512, + format: "png", + }, + explorers: [ + { + name: "blockscout", + url: "https://explorer.octa.space", + icon: "blockscout", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "octaspace", + }, + hXt = { + name: "4GoodNetwork", + chain: "4GN", + rpc: [ + "https://4goodnetwork.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://chain.deptofgood.com", + ], + faucets: [], + nativeCurrency: { name: "APTA", symbol: "APTA", decimals: 18 }, + infoURL: "https://bloqs4good.com", + shortName: "bloqs4good", + chainId: 846e3, + networkId: 846e3, + testnet: !1, + slug: "4goodnetwork", + }, + fXt = { + name: "Vision - Mainnet", + chain: "Vision", + rpc: [ + "https://vision.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://infragrid.v.network/ethereum/compatible", + ], + faucets: [], + nativeCurrency: { name: "VS", symbol: "VS", decimals: 18 }, + infoURL: "https://www.v.network", + explorers: [ + { + name: "Visionscan", + url: "https://www.visionscan.org", + standard: "EIP3091", + }, + ], + shortName: "vision", + chainId: 888888, + networkId: 888888, + slip44: 60, + testnet: !1, + slug: "vision", + }, + mXt = { + name: "Posichain Mainnet Shard 0", + chain: "PSC", + rpc: [ + "https://posichain-shard-0.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://api.posichain.org", + "https://api.s0.posichain.org", + ], + faucets: ["https://faucet.posichain.org/"], + nativeCurrency: { + name: "Posichain Native Token", + symbol: "POSI", + decimals: 18, + }, + infoURL: "https://posichain.org", + shortName: "psc-s0", + chainId: 9e5, + networkId: 9e5, + explorers: [ + { + name: "Posichain Explorer", + url: "https://explorer.posichain.org", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "posichain-shard-0", + }, + yXt = { + name: "Posichain Testnet Shard 0", + chain: "PSC", + rpc: [ + "https://posichain-testnet-shard-0.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://api.s0.t.posichain.org", + ], + faucets: ["https://faucet.posichain.org/"], + nativeCurrency: { + name: "Posichain Native Token", + symbol: "POSI", + decimals: 18, + }, + infoURL: "https://posichain.org", + shortName: "psc-t-s0", + chainId: 91e4, + networkId: 91e4, + explorers: [ + { + name: "Posichain Explorer Testnet", + url: "https://explorer-testnet.posichain.org", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "posichain-testnet-shard-0", + }, + gXt = { + name: "Posichain Devnet Shard 0", + chain: "PSC", + rpc: [ + "https://posichain-devnet-shard-0.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://api.s0.d.posichain.org", + ], + faucets: ["https://faucet.posichain.org/"], + nativeCurrency: { + name: "Posichain Native Token", + symbol: "POSI", + decimals: 18, + }, + infoURL: "https://posichain.org", + shortName: "psc-d-s0", + chainId: 92e4, + networkId: 92e4, + explorers: [ + { + name: "Posichain Explorer Devnet", + url: "https://explorer-devnet.posichain.org", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "posichain-devnet-shard-0", + }, + bXt = { + name: "Posichain Devnet Shard 1", + chain: "PSC", + rpc: [ + "https://posichain-devnet-shard-1.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://api.s1.d.posichain.org", + ], + faucets: ["https://faucet.posichain.org/"], + nativeCurrency: { + name: "Posichain Native Token", + symbol: "POSI", + decimals: 18, + }, + infoURL: "https://posichain.org", + shortName: "psc-d-s1", + chainId: 920001, + networkId: 920001, + explorers: [ + { + name: "Posichain Explorer Devnet", + url: "https://explorer-devnet.posichain.org", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "posichain-devnet-shard-1", + }, + vXt = { + name: "FNCY Testnet", + chain: "FNCY", + rpc: [ + "https://fncy-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://fncy-testnet-seed.fncy.world", + ], + faucets: ["https://faucet-testnet.fncy.world"], + nativeCurrency: { name: "FNCY", symbol: "FNCY", decimals: 18 }, + infoURL: "https://fncyscan-testnet.fncy.world", + shortName: "tFNCY", + chainId: 923018, + networkId: 923018, + icon: { + url: "ipfs://QmfXCh6UnaEHn3Evz7RFJ3p2ggJBRm9hunDHegeoquGuhD", + width: 256, + height: 256, + format: "png", + }, + explorers: [ + { + name: "fncy scan testnet", + url: "https://fncyscan-testnet.fncy.world", + icon: "fncy", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "fncy-testnet", + }, + wXt = { + name: "Eluvio Content Fabric", + chain: "Eluvio", + rpc: [ + "https://eluvio-content-fabric.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://host-76-74-28-226.contentfabric.io/eth/", + "https://host-76-74-28-232.contentfabric.io/eth/", + "https://host-76-74-29-2.contentfabric.io/eth/", + "https://host-76-74-29-8.contentfabric.io/eth/", + "https://host-76-74-29-34.contentfabric.io/eth/", + "https://host-76-74-29-35.contentfabric.io/eth/", + "https://host-154-14-211-98.contentfabric.io/eth/", + "https://host-154-14-192-66.contentfabric.io/eth/", + "https://host-60-240-133-202.contentfabric.io/eth/", + "https://host-64-235-250-98.contentfabric.io/eth/", + ], + faucets: [], + nativeCurrency: { name: "ELV", symbol: "ELV", decimals: 18 }, + infoURL: "https://eluv.io", + shortName: "elv", + chainId: 955305, + networkId: 955305, + slip44: 1011, + explorers: [ + { + name: "blockscout", + url: "https://explorer.eluv.io", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "eluvio-content-fabric", + }, + _Xt = { + name: "Etho Protocol", + chain: "ETHO", + rpc: [ + "https://etho-protocol.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.ethoprotocol.com", + ], + faucets: [], + nativeCurrency: { name: "Etho Protocol", symbol: "ETHO", decimals: 18 }, + infoURL: "https://ethoprotocol.com", + shortName: "etho", + chainId: 1313114, + networkId: 1313114, + slip44: 1313114, + explorers: [ + { + name: "blockscout", + url: "https://explorer.ethoprotocol.com", + standard: "none", + }, + ], + testnet: !1, + slug: "etho-protocol", + }, + xXt = { + name: "Xerom", + chain: "XERO", + rpc: [ + "https://xerom.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.xerom.org", + ], + faucets: [], + nativeCurrency: { name: "Xerom Ether", symbol: "XERO", decimals: 18 }, + infoURL: "https://xerom.org", + shortName: "xero", + chainId: 1313500, + networkId: 1313500, + testnet: !1, + slug: "xerom", + }, + TXt = { + name: "Kintsugi", + title: "Kintsugi merge testnet", + chain: "ETH", + rpc: [ + "https://kintsugi.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.kintsugi.themerge.dev", + ], + faucets: [ + "http://fauceth.komputing.org?chain=1337702&address=${ADDRESS}", + "https://faucet.kintsugi.themerge.dev", + ], + nativeCurrency: { + name: "kintsugi Ethere", + symbol: "kiETH", + decimals: 18, + }, + infoURL: "https://kintsugi.themerge.dev/", + shortName: "kintsugi", + chainId: 1337702, + networkId: 1337702, + explorers: [ + { + name: "kintsugi explorer", + url: "https://explorer.kintsugi.themerge.dev", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "kintsugi", + }, + EXt = { + name: "Kiln", + chain: "ETH", + rpc: [ + "https://kiln.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.kiln.themerge.dev", + ], + faucets: [ + "https://faucet.kiln.themerge.dev", + "https://kiln-faucet.pk910.de", + "https://kilnfaucet.com", + ], + nativeCurrency: { name: "Testnet ETH", symbol: "ETH", decimals: 18 }, + infoURL: "https://kiln.themerge.dev/", + shortName: "kiln", + chainId: 1337802, + networkId: 1337802, + icon: { + url: "ipfs://QmdwQDr6vmBtXmK2TmknkEuZNoaDqTasFdZdu3DRw8b2wt", + width: 1e3, + height: 1628, + format: "png", + }, + explorers: [ + { + name: "Kiln Explorer", + url: "https://explorer.kiln.themerge.dev", + icon: "ethereum", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "kiln", + }, + CXt = { + name: "Zhejiang", + chain: "ETH", + rpc: [ + "https://zhejiang.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.zhejiang.ethpandaops.io", + ], + faucets: [ + "https://faucet.zhejiang.ethpandaops.io", + "https://zhejiang-faucet.pk910.de", + ], + nativeCurrency: { name: "Testnet ETH", symbol: "ETH", decimals: 18 }, + infoURL: "https://zhejiang.ethpandaops.io", + shortName: "zhejiang", + chainId: 1337803, + networkId: 1337803, + icon: { + url: "ipfs://QmdwQDr6vmBtXmK2TmknkEuZNoaDqTasFdZdu3DRw8b2wt", + width: 1e3, + height: 1628, + format: "png", + }, + explorers: [ + { + name: "Zhejiang Explorer", + url: "https://zhejiang.beaconcha.in", + icon: "ethereum", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "zhejiang", + }, + IXt = { + name: "Plian Mainnet Main", + chain: "Plian", + rpc: [ + "https://plian-main.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://mainnet.plian.io/pchain", + ], + faucets: [], + nativeCurrency: { name: "Plian Token", symbol: "PI", decimals: 18 }, + infoURL: "https://plian.org/", + shortName: "plian-mainnet", + chainId: 2099156, + networkId: 2099156, + explorers: [ + { + name: "piscan", + url: "https://piscan.plian.org/pchain", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "plian-main", + }, + AXt = { + name: "PlatON Dev Testnet2", + chain: "PlatON", + rpc: [ + "https://platon-dev-testnet2.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://devnet2openapi.platon.network/rpc", + "wss://devnet2openapi.platon.network/ws", + ], + faucets: ["https://devnet2faucet.platon.network/faucet"], + nativeCurrency: { name: "LAT", symbol: "lat", decimals: 18 }, + infoURL: "https://www.platon.network", + shortName: "platondev2", + chainId: 2206132, + networkId: 1, + icon: { + url: "ipfs://QmT7PSXBiVBma6E15hNkivmstqLu3JSnG1jXN5pTmcCGRC", + width: 200, + height: 200, + format: "png", + }, + explorers: [ + { + name: "PlatON explorer", + url: "https://devnet2scan.platon.network", + standard: "none", + }, + ], + testnet: !0, + slug: "platon-dev-testnet2", + }, + kXt = { + name: "Filecoin - Butterfly testnet", + chain: "FIL", + status: "incubating", + rpc: [], + faucets: ["https://faucet.butterfly.fildev.network"], + nativeCurrency: { + name: "testnet filecoin", + symbol: "tFIL", + decimals: 18, + }, + infoURL: "https://filecoin.io", + shortName: "filecoin-butterfly", + icon: { + url: "ipfs://QmS9r9XQkMHVomWcSBNDkKkz9n87h9bH9ssabeiKZtANoU", + width: 1e3, + height: 1e3, + format: "png", + }, + chainId: 3141592, + networkId: 3141592, + slip44: 1, + explorers: [], + testnet: !0, + slug: "filecoin-butterfly-testnet", + }, + SXt = { + name: "Imversed Mainnet", + chain: "Imversed", + rpc: [ + "https://imversed.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://jsonrpc.imversed.network", + "https://ws-jsonrpc.imversed.network", + ], + faucets: [], + nativeCurrency: { name: "Imversed Token", symbol: "IMV", decimals: 18 }, + infoURL: "https://imversed.com", + shortName: "imversed", + chainId: 5555555, + networkId: 5555555, + icon: { + url: "ipfs://QmYwvmJZ1bgTdiZUKXk4SifTpTj286CkZjMCshUyJuBFH1", + width: 400, + height: 400, + format: "png", + }, + explorers: [ + { + name: "Imversed EVM explorer (Blockscout)", + url: "https://txe.imversed.network", + icon: "imversed", + standard: "EIP3091", + }, + { + name: "Imversed Cosmos Explorer (Big Dipper)", + url: "https://tex-c.imversed.com", + icon: "imversed", + standard: "none", + }, + ], + testnet: !1, + slug: "imversed", + }, + MXt = { + name: "Imversed Testnet", + chain: "Imversed", + rpc: [ + "https://imversed-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://jsonrpc-test.imversed.network", + "https://ws-jsonrpc-test.imversed.network", + ], + faucets: [], + nativeCurrency: { name: "Imversed Token", symbol: "IMV", decimals: 18 }, + infoURL: "https://imversed.com", + shortName: "imversed-testnet", + chainId: 5555558, + networkId: 5555558, + icon: { + url: "ipfs://QmYwvmJZ1bgTdiZUKXk4SifTpTj286CkZjMCshUyJuBFH1", + width: 400, + height: 400, + format: "png", + }, + explorers: [ + { + name: "Imversed EVM Explorer (Blockscout)", + url: "https://txe-test.imversed.network", + icon: "imversed", + standard: "EIP3091", + }, + { + name: "Imversed Cosmos Explorer (Big Dipper)", + url: "https://tex-t.imversed.com", + icon: "imversed", + standard: "none", + }, + ], + testnet: !0, + slug: "imversed-testnet", + }, + PXt = { + name: "Saakuru Mainnet", + chain: "Saakuru", + icon: { + url: "ipfs://QmduEdtFobPpZWSc45MU6RKxZfTEzLux2z8ikHFhT8usqv", + width: 1024, + height: 1024, + format: "png", + }, + rpc: [ + "https://saakuru.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.saakuru.network", + ], + faucets: [], + nativeCurrency: { name: "OAS", symbol: "OAS", decimals: 18 }, + infoURL: "https://saakuru.network", + shortName: "saakuru", + chainId: 7225878, + networkId: 7225878, + explorers: [ + { + name: "saakuru-explorer", + url: "https://explorer.saakuru.network", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "saakuru", + }, + RXt = { + name: "OpenVessel", + chain: "VSL", + icon: { + url: "ipfs://QmeknNzGCZXQK7egwfwyxQan7Lw8bLnqYsyoEgEbDNCzJX", + width: 600, + height: 529, + format: "png", + }, + rpc: [ + "https://openvessel.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://mainnet-external.openvessel.io", + ], + faucets: [], + nativeCurrency: { name: "Vessel ETH", symbol: "VETH", decimals: 18 }, + infoURL: "https://www.openvessel.io", + shortName: "vsl", + chainId: 7355310, + networkId: 7355310, + explorers: [ + { + name: "openvessel-mainnet", + url: "https://mainnet-explorer.openvessel.io", + standard: "none", + }, + ], + testnet: !1, + slug: "openvessel", + }, + BXt = { + name: "QL1 Testnet", + chain: "QOM", + status: "incubating", + rpc: [ + "https://ql1-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.testnet.qom.one", + ], + faucets: ["https://faucet.qom.one"], + nativeCurrency: { name: "Shiba Predator", symbol: "QOM", decimals: 18 }, + infoURL: "https://qom.one", + shortName: "tqom", + chainId: 7668378, + networkId: 7668378, + icon: { + url: "ipfs://QmRc1kJ7AgcDL1BSoMYudatWHTrz27K6WNTwGifQb5V17D", + width: 518, + height: 518, + format: "png", + }, + explorers: [ + { + name: "QL1 Testnet Explorer", + url: "https://testnet.qom.one", + icon: "qom", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "ql1-testnet", + }, + NXt = { + name: "Musicoin", + chain: "MUSIC", + rpc: [ + "https://musicoin.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://mewapi.musicoin.tw", + ], + faucets: [], + nativeCurrency: { name: "Musicoin", symbol: "MUSIC", decimals: 18 }, + infoURL: "https://musicoin.tw", + shortName: "music", + chainId: 7762959, + networkId: 7762959, + slip44: 184, + testnet: !1, + slug: "musicoin", + }, + OXt = { + name: "Plian Mainnet Subchain 1", + chain: "Plian", + rpc: [ + "https://plian-subchain-1.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://mainnet.plian.io/child_0", + ], + faucets: [], + nativeCurrency: { name: "Plian Token", symbol: "PI", decimals: 18 }, + infoURL: "https://plian.org", + shortName: "plian-mainnet-l2", + chainId: 8007736, + networkId: 8007736, + explorers: [ + { + name: "piscan", + url: "https://piscan.plian.org/child_0", + standard: "EIP3091", + }, + ], + parent: { chain: "eip155-2099156", type: "L2" }, + testnet: !1, + slug: "plian-subchain-1", + }, + LXt = { + name: "Plian Testnet Subchain 1", + chain: "Plian", + rpc: [ + "https://plian-testnet-subchain-1.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://testnet.plian.io/child_test", + ], + faucets: [], + nativeCurrency: { name: "Plian Token", symbol: "TPI", decimals: 18 }, + infoURL: "https://plian.org/", + shortName: "plian-testnet-l2", + chainId: 10067275, + networkId: 10067275, + explorers: [ + { + name: "piscan", + url: "https://testnet.plian.org/child_test", + standard: "EIP3091", + }, + ], + parent: { chain: "eip155-16658437", type: "L2" }, + testnet: !0, + slug: "plian-testnet-subchain-1", + }, + DXt = { + name: "Soverun Mainnet", + chain: "SVRN", + icon: { + url: "ipfs://QmTYazUzgY9Nn2mCjWwFUSLy3dG6i2PvALpwCNQvx1zXyi", + width: 1154, + height: 1154, + format: "png", + }, + rpc: [ + "https://soverun.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://mainnet-rpc.soverun.com", + ], + faucets: ["https://faucet.soverun.com"], + nativeCurrency: { name: "Soverun", symbol: "SVRN", decimals: 18 }, + infoURL: "https://soverun.com", + shortName: "SVRNm", + chainId: 10101010, + networkId: 10101010, + explorers: [ + { + name: "Soverun", + url: "https://explorer.soverun.com", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "soverun", + }, + qXt = { + name: "Sepolia", + title: "Ethereum Testnet Sepolia", + chain: "ETH", + rpc: [ + "https://sepolia.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.sepolia.org", + "https://rpc-sepolia.rockx.com", + ], + faucets: [ + "http://fauceth.komputing.org?chain=11155111&address=${ADDRESS}", + ], + nativeCurrency: { name: "Sepolia Ether", symbol: "ETH", decimals: 18 }, + infoURL: "https://sepolia.otterscan.io", + shortName: "sep", + chainId: 11155111, + networkId: 11155111, + explorers: [ + { + name: "etherscan-sepolia", + url: "https://sepolia.etherscan.io", + standard: "EIP3091", + }, + { + name: "otterscan-sepolia", + url: "https://sepolia.otterscan.io", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "sepolia", + }, + FXt = { + name: "PepChain Churchill", + chain: "PEP", + rpc: [ + "https://pepchain-churchill.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://churchill-rpc.pepchain.io", + ], + faucets: [], + nativeCurrency: { + name: "PepChain Churchill Ether", + symbol: "TPEP", + decimals: 18, + }, + infoURL: "https://pepchain.io", + shortName: "tpep", + chainId: 13371337, + networkId: 13371337, + testnet: !1, + slug: "pepchain-churchill", + }, + WXt = { + name: "Anduschain Mainnet", + chain: "anduschain", + rpc: [ + "https://anduschain.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.anduschain.io/rpc", + "wss://rpc.anduschain.io/ws", + ], + faucets: [], + nativeCurrency: { name: "DAON", symbol: "DEB", decimals: 18 }, + infoURL: "https://anduschain.io/", + shortName: "anduschain-mainnet", + chainId: 14288640, + networkId: 14288640, + explorers: [ + { + name: "anduschain explorer", + url: "https://explorer.anduschain.io", + icon: "daon", + standard: "none", + }, + ], + testnet: !1, + slug: "anduschain", + }, + UXt = { + name: "Plian Testnet Main", + chain: "Plian", + rpc: [ + "https://plian-testnet-main.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://testnet.plian.io/testnet", + ], + faucets: [], + nativeCurrency: { + name: "Plian Testnet Token", + symbol: "TPI", + decimals: 18, + }, + infoURL: "https://plian.org", + shortName: "plian-testnet", + chainId: 16658437, + networkId: 16658437, + explorers: [ + { + name: "piscan", + url: "https://testnet.plian.org/testnet", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "plian-testnet-main", + }, + HXt = { + name: "IOLite", + chain: "ILT", + rpc: [ + "https://iolite.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://net.iolite.io", + ], + faucets: [], + nativeCurrency: { name: "IOLite Ether", symbol: "ILT", decimals: 18 }, + infoURL: "https://iolite.io", + shortName: "ilt", + chainId: 18289463, + networkId: 18289463, + testnet: !1, + slug: "iolite", + }, + zXt = { + name: "SmartMesh Mainnet", + chain: "Spectrum", + rpc: [ + "https://smartmesh.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://jsonapi1.smartmesh.cn", + ], + faucets: [], + nativeCurrency: { + name: "SmartMesh Native Token", + symbol: "SMT", + decimals: 18, + }, + infoURL: "https://smartmesh.io", + shortName: "spectrum", + chainId: 20180430, + networkId: 1, + explorers: [ + { name: "spectrum", url: "https://spectrum.pub", standard: "none" }, + ], + testnet: !1, + slug: "smartmesh", + }, + jXt = { + name: "quarkblockchain", + chain: "QKI", + rpc: [ + "https://quarkblockchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://hz.rpc.qkiscan.cn", + "https://jp.rpc.qkiscan.io", + ], + faucets: [], + nativeCurrency: { + name: "quarkblockchain Native Token", + symbol: "QKI", + decimals: 18, + }, + infoURL: "https://quarkblockchain.org/", + shortName: "qki", + chainId: 20181205, + networkId: 20181205, + testnet: !1, + slug: "quarkblockchain", + }, + KXt = { + name: "Excelon Mainnet", + chain: "XLON", + icon: { + url: "ipfs://QmTV45o4jTe6ayscF1XWh1WXk5DPck4QohR5kQocSWjvQP", + width: 300, + height: 300, + format: "png", + }, + rpc: [ + "https://excelon.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://edgewallet1.xlon.org/", + ], + faucets: [], + nativeCurrency: { name: "Excelon", symbol: "xlon", decimals: 18 }, + infoURL: "https://xlon.org", + shortName: "xlon", + chainId: 22052002, + networkId: 22052002, + explorers: [ + { + name: "Excelon explorer", + url: "https://explorer.excelon.io", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "excelon", + }, + VXt = { + name: "Excoincial Chain Volta-Testnet", + chain: "TEXL", + icon: { + url: "ipfs://QmeooM7QicT1YbgY93XPd5p7JsCjYhN3qjWt68X57g6bVC", + width: 400, + height: 400, + format: "png", + }, + rpc: [ + "https://excoincial-chain-volta-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://testnet-rpc.exlscan.com", + ], + faucets: ["https://faucet.exlscan.com"], + nativeCurrency: { name: "TExlcoin", symbol: "TEXL", decimals: 18 }, + infoURL: "", + shortName: "exlvolta", + chainId: 27082017, + networkId: 27082017, + explorers: [ + { + name: "exlscan", + url: "https://testnet-explorer.exlscan.com", + icon: "exl", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "excoincial-chain-volta-testnet", + }, + GXt = { + name: "Excoincial Chain Mainnet", + chain: "EXL", + icon: { + url: "ipfs://QmeooM7QicT1YbgY93XPd5p7JsCjYhN3qjWt68X57g6bVC", + width: 400, + height: 400, + format: "png", + }, + rpc: [ + "https://excoincial-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.exlscan.com", + ], + faucets: [], + nativeCurrency: { name: "Exlcoin", symbol: "EXL", decimals: 18 }, + infoURL: "", + shortName: "exl", + chainId: 27082022, + networkId: 27082022, + explorers: [ + { + name: "exlscan", + url: "https://exlscan.com", + icon: "exl", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "excoincial-chain", + }, + YXt = { + name: "Auxilium Network Mainnet", + chain: "AUX", + rpc: [ + "https://auxilium-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.auxilium.global", + ], + faucets: [], + nativeCurrency: { name: "Auxilium coin", symbol: "AUX", decimals: 18 }, + infoURL: "https://auxilium.global", + shortName: "auxi", + chainId: 28945486, + networkId: 28945486, + slip44: 344, + testnet: !1, + slug: "auxilium-network", + }, + $Xt = { + name: "Flachain Mainnet", + chain: "FLX", + icon: { + url: "ipfs://bafybeiadlvc4pfiykehyt2z67nvgt5w4vlov27olu5obvmryv4xzua4tae", + width: 256, + height: 256, + format: "png", + }, + rpc: [ + "https://flachain.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://flachain.flaexchange.top/", + ], + features: [{ name: "EIP155" }, { name: "EIP1559" }], + faucets: [], + nativeCurrency: { name: "Flacoin", symbol: "FLA", decimals: 18 }, + infoURL: "https://www.flaexchange.top", + shortName: "fla", + chainId: 29032022, + networkId: 29032022, + explorers: [ + { + name: "FLXExplorer", + url: "https://explorer.flaexchange.top", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "flachain", + }, + JXt = { + name: "Filecoin - Local testnet", + chain: "FIL", + status: "incubating", + rpc: [], + faucets: [], + nativeCurrency: { + name: "testnet filecoin", + symbol: "tFIL", + decimals: 18, + }, + infoURL: "https://filecoin.io", + shortName: "filecoin-local", + icon: { + url: "ipfs://QmS9r9XQkMHVomWcSBNDkKkz9n87h9bH9ssabeiKZtANoU", + width: 1e3, + height: 1e3, + format: "png", + }, + chainId: 31415926, + networkId: 31415926, + slip44: 1, + explorers: [], + testnet: !0, + slug: "filecoin-local-testnet", + }, + ZXt = { + name: "Joys Digital Mainnet", + chain: "JOYS", + rpc: [ + "https://joys-digital.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://node.joys.digital", + ], + faucets: [], + nativeCurrency: { name: "JOYS", symbol: "JOYS", decimals: 18 }, + infoURL: "https://joys.digital", + shortName: "JOYS", + chainId: 35855456, + networkId: 35855456, + testnet: !1, + slug: "joys-digital", + }, + QXt = { + name: "maistestsubnet", + chain: "MAI", + rpc: [ + "https://maistestsubnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "http://174.138.9.169:9650/ext/bc/VUKSzFZKckx4PoZF9gX5QAqLPxbLzvu1vcssPG5QuodaJtdHT/rpc", + ], + faucets: [], + nativeCurrency: { name: "maistestsubnet", symbol: "MAI", decimals: 18 }, + infoURL: "", + shortName: "mais", + chainId: 43214913, + networkId: 43214913, + explorers: [ + { + name: "maistesntet", + url: "http://174.138.9.169:3006/?network=maistesntet", + standard: "none", + }, + ], + testnet: !0, + slug: "maistestsubnet", + }, + XXt = { + name: "Aquachain", + chain: "AQUA", + rpc: [ + "https://aquachain.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://c.onical.org", + "https://tx.aquacha.in/api", + ], + faucets: ["https://aquacha.in/faucet"], + nativeCurrency: { + name: "Aquachain Ether", + symbol: "AQUA", + decimals: 18, + }, + infoURL: "https://aquachain.github.io", + shortName: "aqua", + chainId: 61717561, + networkId: 61717561, + slip44: 61717561, + testnet: !1, + slug: "aquachain", + }, + eer = { + name: "Autonity Bakerloo (Thames) Testnet", + chain: "AUT", + rpc: [ + "https://autonity-bakerloo-thames-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc1.bakerloo.autonity.org/", + "wss://rpc1.bakerloo.autonity.org/ws/", + ], + faucets: ["https://faucet.autonity.org/"], + nativeCurrency: { name: "Bakerloo Auton", symbol: "ATN", decimals: 18 }, + infoURL: "https://autonity.org/", + shortName: "bakerloo-0", + chainId: 6501e4, + networkId: 6501e4, + explorers: [ + { + name: "autonity-blockscout", + url: "https://bakerloo.autonity.org", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "autonity-bakerloo-thames-testnet", + }, + ter = { + name: "Autonity Piccadilly (Thames) Testnet", + chain: "AUT", + rpc: [ + "https://autonity-piccadilly-thames-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc1.piccadilly.autonity.org/", + "wss://rpc1.piccadilly.autonity.org/ws/", + ], + faucets: ["https://faucet.autonity.org/"], + nativeCurrency: { + name: "Piccadilly Auton", + symbol: "ATN", + decimals: 18, + }, + infoURL: "https://autonity.org/", + shortName: "piccadilly-0", + chainId: 651e5, + networkId: 651e5, + explorers: [ + { + name: "autonity-blockscout", + url: "https://piccadilly.autonity.org", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "autonity-piccadilly-thames-testnet", + }, + rer = { + name: "Joys Digital TestNet", + chain: "TOYS", + rpc: [ + "https://joys-digital-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://toys.joys.cash/", + ], + faucets: ["https://faucet.joys.digital/"], + nativeCurrency: { name: "TOYS", symbol: "TOYS", decimals: 18 }, + infoURL: "https://joys.digital", + shortName: "TOYS", + chainId: 99415706, + networkId: 99415706, + testnet: !0, + slug: "joys-digital-testnet", + }, + ner = { + name: "Gather Mainnet Network", + chain: "GTH", + rpc: [ + "https://gather-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://mainnet.gather.network", + ], + faucets: [], + nativeCurrency: { name: "Gather", symbol: "GTH", decimals: 18 }, + infoURL: "https://gather.network", + shortName: "GTH", + chainId: 192837465, + networkId: 192837465, + explorers: [ + { + name: "Blockscout", + url: "https://explorer.gather.network", + standard: "none", + }, + ], + testnet: !1, + slug: "gather-network", + }, + aer = { + name: "Neon EVM DevNet", + chain: "Solana", + rpc: [ + "https://neon-evm-devnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://devnet.neonevm.org", + ], + faucets: ["https://neonfaucet.org"], + icon: { + url: "ipfs://Qmcxevb3v8PEvnvfYgcG3bCBuPhe5YAdsHeaufDChSSR3Q", + width: 512, + height: 512, + format: "png", + }, + nativeCurrency: { name: "Neon", symbol: "NEON", decimals: 18 }, + infoURL: "https://neon-labs.org", + shortName: "neonevm-devnet", + chainId: 245022926, + networkId: 245022926, + explorers: [ + { + name: "native", + url: "https://devnet.explorer.neon-labs.org", + standard: "EIP3091", + }, + { + name: "neonscan", + url: "https://devnet.neonscan.org", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "neon-evm-devnet", + }, + ier = { + name: "Neon EVM MainNet", + chain: "Solana", + rpc: [ + "https://neon-evm.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://mainnet.neonevm.org", + ], + faucets: [], + icon: { + url: "ipfs://Qmcxevb3v8PEvnvfYgcG3bCBuPhe5YAdsHeaufDChSSR3Q", + width: 512, + height: 512, + format: "png", + }, + nativeCurrency: { name: "Neon", symbol: "NEON", decimals: 18 }, + infoURL: "https://neon-labs.org", + shortName: "neonevm-mainnet", + chainId: 245022934, + networkId: 245022934, + explorers: [ + { + name: "native", + url: "https://mainnet.explorer.neon-labs.org", + standard: "EIP3091", + }, + { + name: "neonscan", + url: "https://mainnet.neonscan.org", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "neon-evm", + }, + ser = { + name: "Neon EVM TestNet", + chain: "Solana", + rpc: [ + "https://neon-evm-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://testnet.neonevm.org", + ], + faucets: [], + icon: { + url: "ipfs://Qmcxevb3v8PEvnvfYgcG3bCBuPhe5YAdsHeaufDChSSR3Q", + width: 512, + height: 512, + format: "png", + }, + nativeCurrency: { name: "Neon", symbol: "NEON", decimals: 18 }, + infoURL: "https://neon-labs.org", + shortName: "neonevm-testnet", + chainId: 245022940, + networkId: 245022940, + explorers: [ + { + name: "native", + url: "https://testnet.explorer.neon-labs.org", + standard: "EIP3091", + }, + { + name: "neonscan", + url: "https://testnet.neonscan.org", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "neon-evm-testnet", + }, + oer = { + name: "OneLedger Mainnet", + chain: "OLT", + icon: { + url: "ipfs://QmRhqq4Gp8G9w27ND3LeFW49o5PxcxrbJsqHbpBFtzEMfC", + width: 225, + height: 225, + format: "png", + }, + rpc: [ + "https://oneledger.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://mainnet-rpc.oneledger.network", + ], + faucets: [], + nativeCurrency: { name: "OLT", symbol: "OLT", decimals: 18 }, + infoURL: "https://oneledger.io", + shortName: "oneledger", + chainId: 311752642, + networkId: 311752642, + explorers: [ + { + name: "OneLedger Block Explorer", + url: "https://mainnet-explorer.oneledger.network", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "oneledger", + }, + cer = { + name: "Calypso NFT Hub (SKALE Testnet)", + title: "Calypso NFT Hub Testnet", + chain: "staging-utter-unripe-menkar", + rpc: [ + "https://calypso-nft-hub-skale-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://staging-v3.skalenodes.com/v1/staging-utter-unripe-menkar", + ], + faucets: ["https://sfuel.dirtroad.dev/staging"], + nativeCurrency: { name: "sFUEL", symbol: "sFUEL", decimals: 18 }, + infoURL: "https://calypsohub.network/", + shortName: "calypso-testnet", + chainId: 344106930, + networkId: 344106930, + explorers: [ + { + name: "Blockscout", + url: "https://staging-utter-unripe-menkar.explorer.staging-v3.skalenodes.com", + icon: "calypso", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "calypso-nft-hub-skale-testnet", + }, + uer = { + name: "Gather Testnet Network", + chain: "GTH", + rpc: [ + "https://gather-testnet-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://testnet.gather.network", + ], + faucets: [], + nativeCurrency: { name: "Gather", symbol: "GTH", decimals: 18 }, + infoURL: "https://gather.network", + shortName: "tGTH", + chainId: 356256156, + networkId: 356256156, + explorers: [ + { + name: "Blockscout", + url: "https://testnet-explorer.gather.network", + standard: "none", + }, + ], + testnet: !0, + slug: "gather-testnet-network", + }, + ler = { + name: "Gather Devnet Network", + chain: "GTH", + rpc: [ + "https://gather-devnet-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://devnet.gather.network", + ], + faucets: [], + nativeCurrency: { name: "Gather", symbol: "GTH", decimals: 18 }, + infoURL: "https://gather.network", + shortName: "dGTH", + chainId: 486217935, + networkId: 486217935, + explorers: [ + { + name: "Blockscout", + url: "https://devnet-explorer.gather.network", + standard: "none", + }, + ], + testnet: !1, + slug: "gather-devnet-network", + }, + der = { + name: "Nebula Staging", + chain: "staging-faint-slimy-achird", + rpc: [ + "https://nebula-staging.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://staging-v3.skalenodes.com/v1/staging-faint-slimy-achird", + "wss://staging-v3.skalenodes.com/v1/ws/staging-faint-slimy-achird", + ], + faucets: [], + nativeCurrency: { name: "sFUEL", symbol: "sFUEL", decimals: 18 }, + infoURL: "https://nebulachain.io/", + shortName: "nebula-staging", + chainId: 503129905, + networkId: 503129905, + explorers: [ + { + name: "nebula", + url: "https://staging-faint-slimy-achird.explorer.staging-v3.skalenodes.com", + icon: "nebula", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "nebula-staging", + }, + per = { + name: "IPOS Network", + chain: "IPOS", + rpc: [ + "https://ipos-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.iposlab.com", + "https://rpc2.iposlab.com", + ], + faucets: [], + nativeCurrency: { + name: "IPOS Network Ether", + symbol: "IPOS", + decimals: 18, + }, + infoURL: "https://iposlab.com", + shortName: "ipos", + chainId: 1122334455, + networkId: 1122334455, + testnet: !1, + slug: "ipos-network", + }, + her = { + name: "Aurora Mainnet", + chain: "NEAR", + rpc: [ + "https://aurora.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://mainnet.aurora.dev", + ], + faucets: [], + nativeCurrency: { name: "Ether", symbol: "ETH", decimals: 18 }, + infoURL: "https://aurora.dev", + shortName: "aurora", + chainId: 1313161554, + networkId: 1313161554, + explorers: [ + { + name: "aurorascan.dev", + url: "https://aurorascan.dev", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "aurora", + }, + fer = { + name: "Aurora Testnet", + chain: "NEAR", + rpc: [ + "https://aurora-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://testnet.aurora.dev/", + ], + faucets: [], + nativeCurrency: { name: "Ether", symbol: "ETH", decimals: 18 }, + infoURL: "https://aurora.dev", + shortName: "aurora-testnet", + chainId: 1313161555, + networkId: 1313161555, + explorers: [ + { + name: "aurorascan.dev", + url: "https://testnet.aurorascan.dev", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "aurora-testnet", + }, + mer = { + name: "Aurora Betanet", + chain: "NEAR", + rpc: [], + faucets: [], + nativeCurrency: { name: "Ether", symbol: "ETH", decimals: 18 }, + infoURL: "https://aurora.dev", + shortName: "aurora-betanet", + chainId: 1313161556, + networkId: 1313161556, + testnet: !1, + slug: "aurora-betanet", + }, + yer = { + name: "Nebula Mainnet", + chain: "green-giddy-denebola", + rpc: [ + "https://nebula.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://mainnet.skalenodes.com/v1/green-giddy-denebola", + "wss://mainnet-proxy.skalenodes.com/v1/ws/green-giddy-denebola", + ], + faucets: [], + nativeCurrency: { name: "sFUEL", symbol: "sFUEL", decimals: 18 }, + infoURL: "https://nebulachain.io/", + shortName: "nebula-mainnet", + chainId: 1482601649, + networkId: 1482601649, + explorers: [ + { + name: "nebula", + url: "https://green-giddy-denebola.explorer.mainnet.skalenodes.com", + icon: "nebula", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "nebula", + }, + ger = { + name: "Calypso NFT Hub (SKALE)", + title: "Calypso NFT Hub Mainnet", + chain: "honorable-steel-rasalhague", + rpc: [ + "https://calypso-nft-hub-skale.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://mainnet.skalenodes.com/v1/honorable-steel-rasalhague", + ], + faucets: ["https://sfuel.dirtroad.dev"], + nativeCurrency: { name: "sFUEL", symbol: "sFUEL", decimals: 18 }, + infoURL: "https://calypsohub.network/", + shortName: "calypso-mainnet", + chainId: 1564830818, + networkId: 1564830818, + explorers: [ + { + name: "Blockscout", + url: "https://honorable-steel-rasalhague.explorer.mainnet.skalenodes.com", + icon: "calypso", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "calypso-nft-hub-skale", + }, + ber = { + name: "Harmony Mainnet Shard 0", + chain: "Harmony", + rpc: [ + "https://harmony-shard-0.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://api.harmony.one", + "https://api.s0.t.hmny.io", + ], + faucets: ["https://free-online-app.com/faucet-for-eth-evm-chains/"], + nativeCurrency: { name: "ONE", symbol: "ONE", decimals: 18 }, + infoURL: "https://www.harmony.one/", + shortName: "hmy-s0", + chainId: 16666e5, + networkId: 16666e5, + explorers: [ + { + name: "Harmony Block Explorer", + url: "https://explorer.harmony.one", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "harmony-shard-0", + }, + ver = { + name: "Harmony Mainnet Shard 1", + chain: "Harmony", + rpc: [ + "https://harmony-shard-1.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://api.s1.t.hmny.io", + ], + faucets: [], + nativeCurrency: { name: "ONE", symbol: "ONE", decimals: 18 }, + infoURL: "https://www.harmony.one/", + shortName: "hmy-s1", + chainId: 1666600001, + networkId: 1666600001, + testnet: !1, + slug: "harmony-shard-1", + }, + wer = { + name: "Harmony Mainnet Shard 2", + chain: "Harmony", + rpc: [ + "https://harmony-shard-2.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://api.s2.t.hmny.io", + ], + faucets: [], + nativeCurrency: { name: "ONE", symbol: "ONE", decimals: 18 }, + infoURL: "https://www.harmony.one/", + shortName: "hmy-s2", + chainId: 1666600002, + networkId: 1666600002, + testnet: !1, + slug: "harmony-shard-2", + }, + _er = { + name: "Harmony Mainnet Shard 3", + chain: "Harmony", + rpc: [ + "https://harmony-shard-3.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://api.s3.t.hmny.io", + ], + faucets: [], + nativeCurrency: { name: "ONE", symbol: "ONE", decimals: 18 }, + infoURL: "https://www.harmony.one/", + shortName: "hmy-s3", + chainId: 1666600003, + networkId: 1666600003, + testnet: !1, + slug: "harmony-shard-3", + }, + xer = { + name: "Harmony Testnet Shard 0", + chain: "Harmony", + rpc: [ + "https://harmony-testnet-shard-0.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://api.s0.b.hmny.io", + ], + faucets: ["https://faucet.pops.one"], + nativeCurrency: { name: "ONE", symbol: "ONE", decimals: 18 }, + infoURL: "https://www.harmony.one/", + shortName: "hmy-b-s0", + chainId: 16667e5, + networkId: 16667e5, + explorers: [ + { + name: "Harmony Testnet Block Explorer", + url: "https://explorer.pops.one", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "harmony-testnet-shard-0", + }, + Ter = { + name: "Harmony Testnet Shard 1", + chain: "Harmony", + rpc: [ + "https://harmony-testnet-shard-1.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://api.s1.b.hmny.io", + ], + faucets: [], + nativeCurrency: { name: "ONE", symbol: "ONE", decimals: 18 }, + infoURL: "https://www.harmony.one/", + shortName: "hmy-b-s1", + chainId: 1666700001, + networkId: 1666700001, + testnet: !0, + slug: "harmony-testnet-shard-1", + }, + Eer = { + name: "Harmony Testnet Shard 2", + chain: "Harmony", + rpc: [ + "https://harmony-testnet-shard-2.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://api.s2.b.hmny.io", + ], + faucets: [], + nativeCurrency: { name: "ONE", symbol: "ONE", decimals: 18 }, + infoURL: "https://www.harmony.one/", + shortName: "hmy-b-s2", + chainId: 1666700002, + networkId: 1666700002, + testnet: !0, + slug: "harmony-testnet-shard-2", + }, + Cer = { + name: "Harmony Testnet Shard 3", + chain: "Harmony", + rpc: [ + "https://harmony-testnet-shard-3.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://api.s3.b.hmny.io", + ], + faucets: [], + nativeCurrency: { name: "ONE", symbol: "ONE", decimals: 18 }, + infoURL: "https://www.harmony.one/", + shortName: "hmy-b-s3", + chainId: 1666700003, + networkId: 1666700003, + testnet: !0, + slug: "harmony-testnet-shard-3", + }, + Ier = { + name: "Harmony Devnet Shard 0", + chain: "Harmony", + rpc: [ + "https://harmony-devnet-shard-0.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://api.s1.ps.hmny.io", + ], + faucets: ["http://dev.faucet.easynode.one/"], + nativeCurrency: { name: "ONE", symbol: "ONE", decimals: 18 }, + infoURL: "https://www.harmony.one/", + shortName: "hmy-ps-s0", + chainId: 16669e5, + networkId: 16669e5, + explorers: [ + { + name: "Harmony Block Explorer", + url: "https://explorer.ps.hmny.io", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "harmony-devnet-shard-0", + }, + Aer = { + name: "DataHopper", + chain: "HOP", + rpc: [ + "https://datahopper.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://23.92.21.121:8545", + ], + faucets: [], + nativeCurrency: { name: "DataHoppers", symbol: "HOP", decimals: 18 }, + infoURL: "https://www.DataHopper.com", + shortName: "hop", + chainId: 2021121117, + networkId: 2021121117, + testnet: !1, + slug: "datahopper", + }, + ker = { + name: "Europa SKALE Chain", + chain: "europa", + icon: { + url: "ipfs://bafkreiezcwowhm6xjrkt44cmiu6ml36rhrxx3amcg3cfkcntv2vgcvgbre", + width: 600, + height: 600, + format: "png", + }, + rpc: [ + "https://europa-skale-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://mainnet.skalenodes.com/v1/elated-tan-skat", + "wss://mainnet.skalenodes.com/v1/elated-tan-skat", + ], + faucets: [ + "https://ruby.exchange/faucet.html", + "https://sfuel.mylilius.com/", + ], + nativeCurrency: { name: "sFUEL", symbol: "sFUEL", decimals: 18 }, + infoURL: "https://europahub.network/", + shortName: "europa", + chainId: 2046399126, + networkId: 2046399126, + explorers: [ + { + name: "Blockscout", + url: "https://elated-tan-skat.explorer.mainnet.skalenodes.com", + standard: "EIP3091", + }, + ], + parent: { + type: "L2", + chain: "eip155-1", + bridges: [{ url: "https://ruby.exchange/bridge.html" }], + }, + testnet: !1, + slug: "europa-skale-chain", + }, + Ser = { + name: "Pirl", + chain: "PIRL", + rpc: [ + "https://pirl.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://wallrpc.pirl.io", + ], + faucets: [], + nativeCurrency: { name: "Pirl Ether", symbol: "PIRL", decimals: 18 }, + infoURL: "https://pirl.io", + shortName: "pirl", + chainId: 3125659152, + networkId: 3125659152, + slip44: 164, + testnet: !1, + slug: "pirl", + }, + Mer = { + name: "OneLedger Testnet Frankenstein", + chain: "OLT", + icon: { + url: "ipfs://QmRhqq4Gp8G9w27ND3LeFW49o5PxcxrbJsqHbpBFtzEMfC", + width: 225, + height: 225, + format: "png", + }, + rpc: [ + "https://oneledger-testnet-frankenstein.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://frankenstein-rpc.oneledger.network", + ], + faucets: ["https://frankenstein-faucet.oneledger.network"], + nativeCurrency: { name: "OLT", symbol: "OLT", decimals: 18 }, + infoURL: "https://oneledger.io", + shortName: "frankenstein", + chainId: 4216137055, + networkId: 4216137055, + explorers: [ + { + name: "OneLedger Block Explorer", + url: "https://frankenstein-explorer.oneledger.network", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "oneledger-testnet-frankenstein", + }, + Per = { + name: "Palm Testnet", + chain: "Palm", + rpc: [ + "https://palm-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://palm-testnet.infura.io/v3/${INFURA_API_KEY}", + ], + faucets: [], + nativeCurrency: { name: "PALM", symbol: "PALM", decimals: 18 }, + infoURL: "https://palm.io", + shortName: "tpalm", + chainId: 11297108099, + networkId: 11297108099, + explorers: [ + { + name: "Palm Testnet Explorer", + url: "https://explorer.palm-uat.xyz", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "palm-testnet", + }, + Rer = { + name: "Palm", + chain: "Palm", + rpc: [ + "https://palm.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://palm-mainnet.infura.io/v3/${INFURA_API_KEY}", + ], + faucets: [], + nativeCurrency: { name: "PALM", symbol: "PALM", decimals: 18 }, + infoURL: "https://palm.io", + shortName: "palm", + chainId: 11297108109, + networkId: 11297108109, + explorers: [ + { + name: "Palm Explorer", + url: "https://explorer.palm.io", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "palm", + }, + Ber = { + name: "Ntity Mainnet", + chain: "Ntity", + rpc: [ + "https://ntity.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://rpc.ntity.io", + ], + faucets: [], + nativeCurrency: { name: "Ntity", symbol: "NTT", decimals: 18 }, + infoURL: "https://ntity.io", + shortName: "ntt", + chainId: 197710212030, + networkId: 197710212030, + icon: { + url: "ipfs://QmSW2YhCvMpnwtPGTJAuEK2QgyWfFjmnwcrapUg6kqFsPf", + width: 711, + height: 715, + format: "svg", + }, + explorers: [ + { + name: "Ntity Blockscout", + url: "https://blockscout.ntity.io", + icon: "ntity", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "ntity", + }, + Ner = { + name: "Haradev Testnet", + chain: "Ntity", + rpc: [ + "https://haradev-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://blockchain.haradev.com", + ], + faucets: [], + nativeCurrency: { name: "Ntity Haradev", symbol: "NTTH", decimals: 18 }, + infoURL: "https://ntity.io", + shortName: "ntt-haradev", + chainId: 197710212031, + networkId: 197710212031, + icon: { + url: "ipfs://QmSW2YhCvMpnwtPGTJAuEK2QgyWfFjmnwcrapUg6kqFsPf", + width: 711, + height: 715, + format: "svg", + }, + explorers: [ + { + name: "Ntity Haradev Blockscout", + url: "https://blockscout.haradev.com", + icon: "ntity", + standard: "EIP3091", + }, + ], + testnet: !0, + slug: "haradev-testnet", + }, + Oer = { + name: "Zeniq", + chain: "ZENIQ", + rpc: [ + "https://zeniq.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://smart.zeniq.network:9545", + ], + faucets: ["https://faucet.zeniq.net/"], + nativeCurrency: { name: "Zeniq", symbol: "ZENIQ", decimals: 18 }, + infoURL: "https://www.zeniq.dev/", + shortName: "zeniq", + chainId: 383414847825, + networkId: 383414847825, + explorers: [ + { + name: "zeniq-smart-chain-explorer", + url: "https://smart.zeniq.net", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "zeniq", + }, + Ler = { + name: "PDC Mainnet", + chain: "IPDC", + rpc: [ + "https://pdc.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://mainnet.ipdc.io/", + ], + faucets: [], + nativeCurrency: { name: "PDC", symbol: "PDC", decimals: 18 }, + infoURL: "https://ipdc.io", + shortName: "ipdc", + chainId: 666301171999, + networkId: 666301171999, + explorers: [ + { + name: "ipdcscan", + url: "https://scan.ipdc.io", + standard: "EIP3091", + }, + ], + testnet: !1, + slug: "pdc", + }, + Der = { + name: "Molereum Network", + chain: "ETH", + rpc: [ + "https://molereum-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://molereum.jdubedition.com", + ], + faucets: [], + nativeCurrency: { + name: "Molereum Ether", + symbol: "MOLE", + decimals: 18, + }, + infoURL: "https://github.com/Jdubedition/molereum", + shortName: "mole", + chainId: 6022140761023, + networkId: 6022140761023, + testnet: !1, + slug: "molereum-network", + }, + qer = { + name: "Localhost", + chain: "ETH", + rpc: ["http://localhost:8545"], + faucets: [], + nativeCurrency: { name: "Ether", symbol: "ETH", decimals: 18 }, + icon: { + url: "ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/ethereum/512.png", + height: 512, + width: 512, + format: "png", + sizes: [16, 32, 64, 128, 256, 512], + }, + shortName: "local", + chainId: 1337, + networkId: 1337, + testnet: !0, + slug: "localhost", + }, + Fer = { mode: "http" }; + function w4e(r, e) { + let { + thirdwebApiKey: t, + alchemyApiKey: n, + infuraApiKey: a, + mode: i, + } = { ...Fer, ...e }, + s = r.rpc.filter( + (C) => + !!( + (C.startsWith("http") && i === "http") || + (C.startsWith("ws") && i === "ws") + ) + ), + c = s + .filter((C) => C.includes("${THIRDWEB_API_KEY}") && t) + .map((C) => (t ? C.replace("${THIRDWEB_API_KEY}", t) : C)), + l = s + .filter((C) => C.includes("${ALCHEMY_API_KEY}") && n) + .map((C) => (n ? C.replace("${ALCHEMY_API_KEY}", n) : C)), + d = s + .filter((C) => C.includes("${INFURA_API_KEY}") && a) + .map((C) => (a ? C.replace("${INFURA_API_KEY}", a) : C)), + m = s.filter((C) => !C.includes("${")), + w = [...c, ...d, ...l, ...m]; + if (w.length === 0) + throw new Error( + `No RPC available for chainId "${r.chainId}" with mode ${i}` + ); + return w; + } + function Wer(r, e) { + return w4e(r, e)[0]; + } + function Uer(r) { + let [e] = r.rpc; + return { + name: r.name, + chain: r.chain, + rpc: [e], + nativeCurrency: r.nativeCurrency, + shortName: r.shortName, + chainId: r.chainId, + testnet: r.testnet, + slug: r.slug, + }; + } + function Her(r, e) { + let t = []; + return ( + e?.rpc && (typeof e.rpc == "string" ? (t = [e.rpc]) : (t = e.rpc)), + { ...r, rpc: [...t, ...r.rpc] } + ); + } + var SH = GWt, + _4e = YWt, + x4e = $Wt, + T4e = JWt, + MH = ZWt, + E4e = QWt, + C4e = XWt, + I4e = eUt, + A4e = tUt, + PH = rUt, + k4e = nUt, + S4e = aUt, + M4e = iUt, + P4e = sUt, + R4e = oUt, + B4e = cUt, + N4e = uUt, + O4e = lUt, + L4e = dUt, + D4e = pUt, + q4e = hUt, + F4e = fUt, + W4e = mUt, + U4e = yUt, + H4e = gUt, + z4e = bUt, + j4e = vUt, + K4e = wUt, + V4e = _Ut, + G4e = xUt, + Y4e = TUt, + $4e = EUt, + J4e = CUt, + Z4e = IUt, + Q4e = AUt, + X4e = kUt, + eIe = SUt, + tIe = MUt, + rIe = PUt, + nIe = RUt, + aIe = BUt, + iIe = NUt, + sIe = OUt, + oIe = LUt, + cIe = DUt, + uIe = qUt, + lIe = FUt, + dIe = WUt, + pIe = UUt, + hIe = HUt, + fIe = zUt, + mIe = jUt, + yIe = KUt, + gIe = VUt, + RH = GUt, + bIe = YUt, + vIe = $Ut, + wIe = JUt, + _Ie = ZUt, + xIe = QUt, + TIe = XUt, + EIe = eHt, + CIe = tHt, + IIe = rHt, + AIe = nHt, + kIe = aHt, + SIe = iHt, + MIe = sHt, + PIe = oHt, + RIe = cHt, + BIe = uHt, + NIe = lHt, + OIe = dHt, + LIe = pHt, + DIe = hHt, + qIe = fHt, + FIe = mHt, + WIe = yHt, + UIe = gHt, + HIe = bHt, + zIe = vHt, + jIe = wHt, + KIe = _Ht, + VIe = xHt, + GIe = THt, + YIe = EHt, + $Ie = CHt, + JIe = IHt, + ZIe = AHt, + QIe = kHt, + XIe = SHt, + eAe = MHt, + tAe = PHt, + BH = RHt, + rAe = BHt, + nAe = NHt, + aAe = OHt, + iAe = LHt, + sAe = DHt, + oAe = qHt, + cAe = FHt, + uAe = WHt, + lAe = UHt, + dAe = HHt, + pAe = zHt, + hAe = jHt, + fAe = KHt, + mAe = VHt, + yAe = GHt, + gAe = YHt, + bAe = $Ht, + vAe = JHt, + wAe = ZHt, + _Ae = QHt, + xAe = XHt, + TAe = ezt, + EAe = tzt, + CAe = rzt, + IAe = nzt, + AAe = azt, + NH = izt, + kAe = szt, + SAe = ozt, + MAe = czt, + PAe = uzt, + RAe = lzt, + BAe = dzt, + NAe = pzt, + OAe = hzt, + LAe = fzt, + DAe = mzt, + qAe = yzt, + FAe = gzt, + WAe = bzt, + UAe = vzt, + HAe = wzt, + zAe = _zt, + jAe = xzt, + KAe = Tzt, + VAe = Ezt, + GAe = Czt, + YAe = Izt, + $Ae = Azt, + JAe = kzt, + ZAe = Szt, + QAe = Mzt, + XAe = Pzt, + OH = Rzt, + eke = Bzt, + tke = Nzt, + rke = Ozt, + nke = Lzt, + ake = Dzt, + ike = qzt, + ske = Fzt, + oke = Wzt, + cke = Uzt, + uke = Hzt, + lke = zzt, + dke = jzt, + pke = Kzt, + hke = Vzt, + fke = Gzt, + mke = Yzt, + yke = $zt, + gke = Jzt, + bke = Zzt, + vke = Qzt, + wke = Xzt, + _ke = ejt, + xke = tjt, + Tke = rjt, + Eke = njt, + Cke = ajt, + Ike = ijt, + Ake = sjt, + kke = ojt, + Ske = cjt, + LH = ujt, + Mke = ljt, + Pke = djt, + Rke = pjt, + Bke = hjt, + Nke = fjt, + Oke = mjt, + Lke = yjt, + Dke = gjt, + qke = bjt, + Fke = vjt, + Wke = wjt, + Uke = _jt, + Hke = xjt, + zke = Tjt, + jke = Ejt, + Kke = Cjt, + Vke = Ijt, + Gke = Ajt, + Yke = kjt, + $ke = Sjt, + Jke = Mjt, + Zke = Pjt, + Qke = Rjt, + Xke = Bjt, + eSe = Njt, + tSe = Ojt, + rSe = Ljt, + nSe = Djt, + aSe = qjt, + iSe = Fjt, + sSe = Wjt, + oSe = Ujt, + cSe = Hjt, + uSe = zjt, + lSe = jjt, + dSe = Kjt, + pSe = Vjt, + hSe = Gjt, + fSe = Yjt, + mSe = $jt, + ySe = Jjt, + gSe = Zjt, + bSe = Qjt, + vSe = Xjt, + wSe = eKt, + _Se = tKt, + xSe = rKt, + TSe = nKt, + ESe = aKt, + CSe = iKt, + ISe = sKt, + ASe = oKt, + kSe = cKt, + SSe = uKt, + MSe = lKt, + PSe = dKt, + RSe = pKt, + BSe = hKt, + NSe = fKt, + OSe = mKt, + LSe = yKt, + DSe = gKt, + qSe = bKt, + FSe = vKt, + WSe = wKt, + USe = _Kt, + HSe = xKt, + zSe = TKt, + jSe = EKt, + KSe = CKt, + VSe = IKt, + GSe = AKt, + YSe = kKt, + $Se = SKt, + JSe = MKt, + ZSe = PKt, + QSe = RKt, + XSe = BKt, + eMe = NKt, + tMe = OKt, + rMe = LKt, + nMe = DKt, + aMe = qKt, + iMe = FKt, + sMe = WKt, + oMe = UKt, + cMe = HKt, + uMe = zKt, + lMe = jKt, + dMe = KKt, + pMe = VKt, + hMe = GKt, + fMe = YKt, + mMe = $Kt, + yMe = JKt, + gMe = ZKt, + bMe = QKt, + vMe = XKt, + wMe = eVt, + _Me = tVt, + xMe = rVt, + TMe = nVt, + EMe = aVt, + CMe = iVt, + IMe = sVt, + AMe = oVt, + kMe = cVt, + SMe = uVt, + MMe = lVt, + PMe = dVt, + RMe = pVt, + BMe = hVt, + NMe = fVt, + OMe = mVt, + LMe = yVt, + DMe = gVt, + qMe = bVt, + FMe = vVt, + WMe = wVt, + UMe = _Vt, + HMe = xVt, + zMe = TVt, + jMe = EVt, + KMe = CVt, + VMe = IVt, + GMe = AVt, + YMe = kVt, + $Me = SVt, + JMe = MVt, + ZMe = PVt, + QMe = RVt, + XMe = BVt, + ePe = NVt, + tPe = OVt, + rPe = LVt, + nPe = DVt, + aPe = qVt, + iPe = FVt, + sPe = WVt, + oPe = UVt, + cPe = HVt, + uPe = zVt, + lPe = jVt, + dPe = KVt, + pPe = VVt, + hPe = GVt, + fPe = YVt, + mPe = $Vt, + yPe = JVt, + gPe = ZVt, + bPe = QVt, + vPe = XVt, + wPe = eGt, + _Pe = tGt, + xPe = rGt, + TPe = nGt, + EPe = aGt, + CPe = iGt, + IPe = sGt, + APe = oGt, + kPe = cGt, + SPe = uGt, + MPe = lGt, + PPe = dGt, + RPe = pGt, + BPe = hGt, + NPe = fGt, + OPe = mGt, + LPe = yGt, + DPe = gGt, + qPe = bGt, + FPe = vGt, + WPe = wGt, + UPe = _Gt, + HPe = xGt, + zPe = TGt, + jPe = EGt, + KPe = CGt, + VPe = IGt, + GPe = AGt, + YPe = kGt, + $Pe = SGt, + JPe = MGt, + ZPe = PGt, + QPe = RGt, + XPe = BGt, + e9e = NGt, + t9e = OGt, + r9e = LGt, + n9e = DGt, + a9e = qGt, + i9e = FGt, + s9e = WGt, + o9e = UGt, + c9e = HGt, + u9e = zGt, + l9e = jGt, + d9e = KGt, + p9e = VGt, + h9e = GGt, + f9e = YGt, + m9e = $Gt, + y9e = JGt, + g9e = ZGt, + b9e = QGt, + v9e = XGt, + w9e = eYt, + _9e = tYt, + x9e = rYt, + T9e = nYt, + E9e = aYt, + C9e = iYt, + I9e = sYt, + A9e = oYt, + k9e = cYt, + DH = uYt, + S9e = lYt, + M9e = dYt, + P9e = pYt, + R9e = hYt, + B9e = fYt, + N9e = mYt, + O9e = yYt, + L9e = gYt, + D9e = bYt, + q9e = vYt, + F9e = wYt, + W9e = _Yt, + U9e = xYt, + H9e = TYt, + z9e = EYt, + j9e = CYt, + K9e = IYt, + V9e = AYt, + G9e = kYt, + Y9e = SYt, + $9e = MYt, + J9e = PYt, + Z9e = RYt, + Q9e = BYt, + X9e = NYt, + eRe = OYt, + tRe = LYt, + rRe = DYt, + nRe = qYt, + aRe = FYt, + iRe = WYt, + sRe = UYt, + oRe = HYt, + cRe = zYt, + uRe = jYt, + lRe = KYt, + dRe = VYt, + pRe = GYt, + hRe = YYt, + fRe = $Yt, + mRe = JYt, + yRe = ZYt, + gRe = QYt, + bRe = XYt, + vRe = e$t, + wRe = t$t, + _Re = r$t, + xRe = n$t, + TRe = a$t, + ERe = i$t, + CRe = s$t, + IRe = o$t, + ARe = c$t, + kRe = u$t, + SRe = l$t, + MRe = d$t, + PRe = p$t, + RRe = h$t, + BRe = f$t, + NRe = m$t, + ORe = y$t, + LRe = g$t, + DRe = b$t, + qRe = v$t, + FRe = w$t, + WRe = _$t, + URe = x$t, + HRe = T$t, + zRe = E$t, + jRe = C$t, + KRe = I$t, + VRe = A$t, + GRe = k$t, + YRe = S$t, + $Re = M$t, + JRe = P$t, + ZRe = R$t, + QRe = B$t, + XRe = N$t, + e7e = O$t, + t7e = L$t, + r7e = D$t, + n7e = q$t, + a7e = F$t, + i7e = W$t, + s7e = U$t, + o7e = H$t, + c7e = z$t, + u7e = j$t, + l7e = K$t, + d7e = V$t, + p7e = G$t, + h7e = Y$t, + f7e = $$t, + m7e = J$t, + y7e = Z$t, + g7e = Q$t, + b7e = X$t, + v7e = eJt, + w7e = tJt, + _7e = rJt, + x7e = nJt, + T7e = aJt, + E7e = iJt, + C7e = sJt, + I7e = oJt, + A7e = cJt, + k7e = uJt, + S7e = lJt, + M7e = dJt, + P7e = pJt, + R7e = hJt, + B7e = fJt, + N7e = mJt, + O7e = yJt, + L7e = gJt, + D7e = bJt, + q7e = vJt, + F7e = wJt, + W7e = _Jt, + U7e = xJt, + H7e = TJt, + z7e = EJt, + j7e = CJt, + K7e = IJt, + V7e = AJt, + G7e = kJt, + Y7e = SJt, + $7e = MJt, + J7e = PJt, + Z7e = RJt, + Q7e = BJt, + X7e = NJt, + eBe = OJt, + tBe = LJt, + rBe = DJt, + nBe = qJt, + aBe = FJt, + iBe = WJt, + sBe = UJt, + oBe = HJt, + cBe = zJt, + uBe = jJt, + lBe = KJt, + dBe = VJt, + pBe = GJt, + hBe = YJt, + fBe = $Jt, + mBe = JJt, + yBe = ZJt, + qH = QJt, + gBe = XJt, + bBe = eZt, + vBe = tZt, + wBe = rZt, + _Be = nZt, + FH = aZt, + WH = iZt, + xBe = sZt, + TBe = oZt, + EBe = cZt, + CBe = uZt, + IBe = lZt, + ABe = dZt, + kBe = pZt, + SBe = hZt, + MBe = fZt, + PBe = mZt, + RBe = yZt, + BBe = gZt, + NBe = bZt, + OBe = vZt, + LBe = wZt, + DBe = _Zt, + qBe = xZt, + FBe = TZt, + WBe = EZt, + UBe = CZt, + HBe = IZt, + zBe = AZt, + jBe = kZt, + KBe = SZt, + VBe = MZt, + GBe = PZt, + YBe = RZt, + $Be = BZt, + JBe = NZt, + ZBe = OZt, + QBe = LZt, + XBe = DZt, + eNe = qZt, + tNe = FZt, + rNe = WZt, + nNe = UZt, + aNe = HZt, + iNe = zZt, + sNe = jZt, + oNe = KZt, + cNe = VZt, + uNe = GZt, + UH = YZt, + lNe = $Zt, + dNe = JZt, + pNe = ZZt, + hNe = QZt, + fNe = XZt, + mNe = eQt, + yNe = tQt, + gNe = rQt, + bNe = nQt, + vNe = aQt, + wNe = iQt, + _Ne = sQt, + xNe = oQt, + TNe = cQt, + ENe = uQt, + CNe = lQt, + INe = dQt, + ANe = pQt, + kNe = hQt, + SNe = fQt, + MNe = mQt, + PNe = yQt, + RNe = gQt, + BNe = bQt, + NNe = vQt, + ONe = wQt, + LNe = _Qt, + DNe = xQt, + qNe = TQt, + FNe = EQt, + WNe = CQt, + UNe = IQt, + HNe = AQt, + zNe = kQt, + jNe = SQt, + KNe = MQt, + VNe = PQt, + GNe = RQt, + YNe = BQt, + $Ne = NQt, + JNe = OQt, + ZNe = LQt, + QNe = DQt, + XNe = qQt, + eOe = FQt, + tOe = WQt, + rOe = UQt, + nOe = HQt, + aOe = zQt, + iOe = jQt, + sOe = KQt, + oOe = VQt, + cOe = GQt, + uOe = YQt, + lOe = $Qt, + dOe = JQt, + pOe = ZQt, + HH = QQt, + hOe = XQt, + fOe = eXt, + mOe = tXt, + yOe = rXt, + gOe = nXt, + bOe = aXt, + vOe = iXt, + wOe = sXt, + _Oe = oXt, + xOe = cXt, + TOe = uXt, + EOe = lXt, + COe = dXt, + IOe = pXt, + AOe = hXt, + kOe = fXt, + SOe = mXt, + MOe = yXt, + POe = gXt, + ROe = bXt, + BOe = vXt, + NOe = wXt, + OOe = _Xt, + LOe = xXt, + DOe = TXt, + qOe = EXt, + FOe = CXt, + WOe = IXt, + UOe = AXt, + HOe = kXt, + zOe = SXt, + jOe = MXt, + KOe = PXt, + VOe = RXt, + GOe = BXt, + YOe = NXt, + $Oe = OXt, + JOe = LXt, + ZOe = DXt, + QOe = qXt, + XOe = FXt, + eLe = WXt, + tLe = UXt, + rLe = HXt, + nLe = zXt, + aLe = jXt, + iLe = KXt, + sLe = VXt, + oLe = GXt, + cLe = YXt, + uLe = $Xt, + lLe = JXt, + dLe = ZXt, + pLe = QXt, + hLe = XXt, + fLe = eer, + mLe = ter, + yLe = rer, + gLe = ner, + bLe = aer, + vLe = ier, + wLe = ser, + _Le = oer, + xLe = cer, + TLe = uer, + ELe = ler, + CLe = der, + ILe = per, + ALe = her, + kLe = fer, + SLe = mer, + MLe = yer, + PLe = ger, + RLe = ber, + BLe = ver, + NLe = wer, + OLe = _er, + LLe = xer, + DLe = Ter, + qLe = Eer, + FLe = Cer, + WLe = Ier, + ULe = Aer, + HLe = ker, + zLe = Ser, + jLe = Mer, + KLe = Per, + VLe = Rer, + GLe = Ber, + YLe = Ner, + $Le = Oer, + JLe = Ler, + ZLe = Der, + zH = qer, + zer = [SH, MH, NH, UH, qH, HH, PH, LH, RH, BH, OH, DH, WH, FH, zH], + jer = [ + SH, + _4e, + x4e, + T4e, + MH, + E4e, + C4e, + I4e, + A4e, + PH, + k4e, + S4e, + M4e, + P4e, + R4e, + B4e, + N4e, + O4e, + L4e, + D4e, + q4e, + F4e, + W4e, + U4e, + H4e, + z4e, + j4e, + K4e, + V4e, + G4e, + Y4e, + $4e, + J4e, + Z4e, + Q4e, + X4e, + eIe, + tIe, + rIe, + nIe, + aIe, + iIe, + sIe, + oIe, + cIe, + uIe, + lIe, + dIe, + pIe, + hIe, + fIe, + mIe, + yIe, + gIe, + RH, + bIe, + vIe, + wIe, + _Ie, + xIe, + TIe, + EIe, + CIe, + IIe, + AIe, + kIe, + SIe, + MIe, + PIe, + RIe, + BIe, + NIe, + OIe, + LIe, + DIe, + qIe, + FIe, + WIe, + UIe, + HIe, + zIe, + jIe, + KIe, + VIe, + GIe, + YIe, + $Ie, + JIe, + ZIe, + QIe, + XIe, + eAe, + tAe, + BH, + rAe, + nAe, + aAe, + iAe, + sAe, + oAe, + cAe, + uAe, + lAe, + dAe, + pAe, + hAe, + fAe, + mAe, + yAe, + gAe, + bAe, + vAe, + wAe, + _Ae, + xAe, + TAe, + EAe, + CAe, + IAe, + AAe, + NH, + kAe, + SAe, + MAe, + PAe, + RAe, + BAe, + NAe, + OAe, + LAe, + DAe, + qAe, + FAe, + WAe, + UAe, + HAe, + zAe, + jAe, + KAe, + VAe, + GAe, + YAe, + $Ae, + JAe, + ZAe, + QAe, + XAe, + OH, + eke, + tke, + rke, + nke, + ake, + ike, + ske, + oke, + cke, + uke, + lke, + dke, + pke, + hke, + fke, + mke, + yke, + gke, + bke, + vke, + wke, + _ke, + xke, + Tke, + Eke, + Cke, + Ike, + Ake, + kke, + Ske, + LH, + Mke, + Pke, + Rke, + Bke, + Nke, + Oke, + Lke, + Dke, + qke, + Fke, + Wke, + Uke, + Hke, + zke, + jke, + Kke, + Vke, + Gke, + Yke, + $ke, + Jke, + Zke, + Qke, + Xke, + eSe, + tSe, + rSe, + nSe, + aSe, + iSe, + sSe, + oSe, + cSe, + uSe, + lSe, + dSe, + pSe, + hSe, + fSe, + mSe, + ySe, + gSe, + bSe, + vSe, + wSe, + _Se, + xSe, + TSe, + ESe, + CSe, + ISe, + ASe, + kSe, + SSe, + MSe, + PSe, + RSe, + BSe, + NSe, + OSe, + LSe, + DSe, + qSe, + FSe, + WSe, + USe, + HSe, + zSe, + jSe, + KSe, + VSe, + GSe, + YSe, + $Se, + JSe, + ZSe, + QSe, + XSe, + eMe, + tMe, + rMe, + nMe, + aMe, + iMe, + sMe, + oMe, + cMe, + uMe, + lMe, + dMe, + pMe, + hMe, + fMe, + mMe, + yMe, + gMe, + bMe, + vMe, + wMe, + _Me, + xMe, + TMe, + EMe, + CMe, + IMe, + AMe, + kMe, + SMe, + MMe, + PMe, + RMe, + BMe, + NMe, + OMe, + LMe, + DMe, + qMe, + FMe, + WMe, + UMe, + HMe, + zMe, + jMe, + KMe, + VMe, + GMe, + YMe, + $Me, + JMe, + ZMe, + QMe, + XMe, + ePe, + tPe, + rPe, + nPe, + aPe, + iPe, + sPe, + oPe, + cPe, + uPe, + lPe, + dPe, + pPe, + hPe, + fPe, + mPe, + yPe, + gPe, + bPe, + vPe, + wPe, + _Pe, + xPe, + TPe, + EPe, + CPe, + IPe, + APe, + kPe, + SPe, + MPe, + PPe, + RPe, + BPe, + NPe, + OPe, + LPe, + DPe, + qPe, + FPe, + WPe, + UPe, + HPe, + zPe, + jPe, + KPe, + VPe, + GPe, + YPe, + $Pe, + JPe, + ZPe, + QPe, + XPe, + e9e, + t9e, + r9e, + n9e, + a9e, + i9e, + s9e, + o9e, + c9e, + u9e, + l9e, + d9e, + p9e, + h9e, + f9e, + m9e, + y9e, + g9e, + b9e, + v9e, + w9e, + _9e, + x9e, + T9e, + E9e, + C9e, + I9e, + A9e, + k9e, + DH, + S9e, + M9e, + P9e, + R9e, + B9e, + N9e, + O9e, + L9e, + D9e, + q9e, + F9e, + W9e, + U9e, + H9e, + z9e, + j9e, + K9e, + V9e, + G9e, + Y9e, + $9e, + J9e, + Z9e, + Q9e, + X9e, + eRe, + tRe, + rRe, + nRe, + aRe, + iRe, + sRe, + oRe, + cRe, + uRe, + lRe, + dRe, + pRe, + hRe, + fRe, + mRe, + yRe, + gRe, + bRe, + vRe, + wRe, + _Re, + xRe, + TRe, + ERe, + CRe, + IRe, + ARe, + kRe, + SRe, + MRe, + PRe, + RRe, + BRe, + NRe, + ORe, + LRe, + DRe, + qRe, + FRe, + WRe, + URe, + HRe, + zRe, + jRe, + KRe, + VRe, + GRe, + YRe, + $Re, + JRe, + ZRe, + QRe, + XRe, + e7e, + t7e, + r7e, + n7e, + a7e, + i7e, + s7e, + o7e, + c7e, + u7e, + l7e, + d7e, + p7e, + h7e, + f7e, + m7e, + y7e, + g7e, + b7e, + v7e, + w7e, + _7e, + x7e, + T7e, + E7e, + C7e, + I7e, + A7e, + k7e, + S7e, + M7e, + P7e, + R7e, + B7e, + N7e, + O7e, + L7e, + D7e, + q7e, + F7e, + W7e, + U7e, + H7e, + z7e, + j7e, + K7e, + V7e, + G7e, + Y7e, + $7e, + J7e, + Z7e, + Q7e, + X7e, + eBe, + tBe, + rBe, + nBe, + aBe, + iBe, + sBe, + oBe, + cBe, + uBe, + lBe, + dBe, + pBe, + hBe, + fBe, + mBe, + yBe, + qH, + gBe, + bBe, + vBe, + wBe, + _Be, + FH, + WH, + xBe, + TBe, + EBe, + CBe, + IBe, + ABe, + kBe, + SBe, + MBe, + PBe, + RBe, + BBe, + NBe, + OBe, + LBe, + DBe, + qBe, + FBe, + WBe, + UBe, + HBe, + zBe, + jBe, + KBe, + VBe, + GBe, + YBe, + $Be, + JBe, + ZBe, + QBe, + XBe, + eNe, + tNe, + rNe, + nNe, + aNe, + iNe, + sNe, + oNe, + cNe, + uNe, + UH, + lNe, + dNe, + pNe, + hNe, + fNe, + mNe, + yNe, + gNe, + bNe, + vNe, + wNe, + _Ne, + xNe, + TNe, + ENe, + CNe, + INe, + ANe, + kNe, + SNe, + MNe, + PNe, + RNe, + BNe, + NNe, + ONe, + LNe, + DNe, + qNe, + FNe, + WNe, + UNe, + HNe, + zNe, + jNe, + KNe, + VNe, + GNe, + YNe, + $Ne, + JNe, + ZNe, + QNe, + XNe, + eOe, + tOe, + rOe, + nOe, + aOe, + iOe, + sOe, + oOe, + cOe, + uOe, + lOe, + dOe, + pOe, + HH, + hOe, + fOe, + mOe, + yOe, + gOe, + bOe, + vOe, + wOe, + _Oe, + xOe, + TOe, + EOe, + COe, + IOe, + AOe, + kOe, + SOe, + MOe, + POe, + ROe, + BOe, + NOe, + OOe, + LOe, + DOe, + qOe, + FOe, + WOe, + UOe, + HOe, + zOe, + jOe, + KOe, + VOe, + GOe, + YOe, + $Oe, + JOe, + ZOe, + QOe, + XOe, + eLe, + tLe, + rLe, + nLe, + aLe, + iLe, + sLe, + oLe, + cLe, + uLe, + lLe, + dLe, + pLe, + hLe, + fLe, + mLe, + yLe, + gLe, + bLe, + vLe, + wLe, + _Le, + xLe, + TLe, + ELe, + CLe, + ILe, + ALe, + kLe, + SLe, + MLe, + PLe, + RLe, + BLe, + NLe, + OLe, + LLe, + DLe, + qLe, + FLe, + WLe, + ULe, + HLe, + zLe, + jLe, + KLe, + VLe, + GLe, + YLe, + $Le, + JLe, + ZLe, + zH, + ]; + F.AcalaMandalaTestnet = Vke; + F.AcalaNetwork = dSe; + F.AcalaNetworkTestnet = Yke; + F.AerochainTestnet = pSe; + F.AiozNetwork = LAe; + F.AiozNetworkTestnet = R9e; + F.Airdao = R7e; + F.AirdaoTestnet = z7e; + F.Aitd = FMe; + F.AitdTestnet = WMe; + F.Akroma = zNe; + F.Alaya = jNe; + F.AlayaDevTestnet = KNe; + F.AlphNetwork = PRe; + F.Altcoinchain = $Pe; + F.Alyx = qMe; + F.AlyxChainTestnet = AAe; + F.AmbrosChain = ESe; + F.AmeChain = FAe; + F.Amstar = jMe; + F.AmstarTestnet = mMe; + F.Anduschain = eLe; + F.AnytypeEvmChain = ePe; + F.Aquachain = hLe; + F.Arbitrum = qH; + F.ArbitrumGoerli = HH; + F.ArbitrumNova = gBe; + F.ArbitrumOnXdai = KAe; + F.ArbitrumRinkeby = pOe; + F.ArmoniaEvaChain = PAe; + F.ArmoniaEvaChainTestnet = RAe; + F.ArtisSigma1 = QNe; + F.ArtisTestnetTau1 = XNe; + F.Astar = Kke; + F.Astra = h7e; + F.AstraTestnet = m7e; + F.Atelier = pPe; + F.Atheios = ZMe; + F.Athereum = _Be; + F.AtoshiTestnet = OAe; + F.Aurora = ALe; + F.AuroraBetanet = SLe; + F.AuroraTestnet = kLe; + F.AutobahnNetwork = CBe; + F.AutonityBakerlooThamesTestnet = fLe; + F.AutonityPiccadillyThamesTestnet = mLe; + F.AuxiliumNetwork = cLe; + F.Avalanche = WH; + F.AvalancheFuji = FH; + F.Aves = uBe; + F.BandaiNamcoResearchVerse = xSe; + F.BeagleMessagingChain = $Me; + F.BearNetworkChain = TOe; + F.BearNetworkChainTestnet = COe; + F.BeoneChainTestnet = TRe; + F.BeresheetTestnet = kPe; + F.Berylbit = VRe; + F.BeverlyHills = pNe; + F.Bifrost = l9e; + F.BifrostTestnet = SBe; + F.Binance = RH; + F.BinanceTestnet = BH; + F.BitcoinEvm = zPe; + F.Bitgert = oBe; + F.Bitindi = P9e; + F.BitindiTestnet = M9e; + F.BitkubChain = tAe; + F.BitkubChainTestnet = Z7e; + F.Bittex = x9e; + F.BittorrentChain = jAe; + F.BittorrentChainTestnet = tMe; + F.Bityuan = s9e; + F.BlackfortExchangeNetwork = U9e; + F.BlackfortExchangeNetworkTestnet = q9e; + F.BlgTestnet = x7e; + F.BlockchainGenesis = i7e; + F.BlockchainStation = nSe; + F.BlockchainStationTestnet = aSe; + F.BlocktonBlockchain = CRe; + F.Bloxberg = zRe; + F.Bmc = UAe; + F.BmcTestnet = HAe; + F.BobaAvax = xBe; + F.BobaBnb = qBe; + F.BobaBnbTestnet = QRe; + F.BobaNetwork = ike; + F.BobaNetworkGoerliTestnet = i9e; + F.BobaNetworkRinkebyTestnet = K4e; + F.BobabaseTestnet = LMe; + F.Bobabeam = OMe; + F.BobafujiTestnet = N9e; + F.Bobaopera = dke; + F.BobaoperaTestnet = S9e; + F.BombChain = YPe; + F.BombChainTestnet = JPe; + F.BonNetwork = uPe; + F.Bosagora = FPe; + F.Brochain = SNe; + F.Bronos = iMe; + F.BronosTestnet = aMe; + F.Btachain = QMe; + F.BtcixNetwork = D7e; + F.Callisto = gSe; + F.CallistoTestnet = q7e; + F.CalypsoNftHubSkale = PLe; + F.CalypsoNftHubSkaleTestnet = xLe; + F.CaminoCChain = Bke; + F.Candle = Uke; + F.Canto = pRe; + F.CantoTestnet = sSe; + F.CatecoinChain = JMe; + F.Celo = bBe; + F.CeloAlfajoresTestnet = EBe; + F.CeloBaklavaTestnet = KBe; + F.CennznetAzalea = W7e; + F.CennznetNikau = c9e; + F.CennznetRata = o9e; + F.ChainVerse = J9e; + F.Cheapeth = lSe; + F.ChiadoTestnet = s7e; + F.ChilizScovilleTestnet = lNe; + F.CicChain = zMe; + F.CicChainTestnet = SMe; + F.Cloudtx = nBe; + F.CloudtxTestnet = aBe; + F.Cloudwalk = xPe; + F.CloudwalkTestnet = _Pe; + F.CloverTestnet = XSe; + F.ClvParachain = eMe; + F.Cmp = tOe; + F.CmpTestnet = bOe; + F.CoinexSmartChain = fIe; + F.CoinexSmartChainTestnet = mIe; + F.ColumbusTestNetwork = Nke; + F.CondorTestNetwork = WNe; + F.Condrieu = JBe; + F.ConfluxEspace = rMe; + F.ConfluxEspaceTestnet = RIe; + F.ConstaTestnet = Ike; + F.CoreBlockchain = dMe; + F.CoreBlockchainTestnet = lMe; + F.CreditSmartchain = C7e; + F.CronosBeta = H4e; + F.CronosTestnet = wke; + F.Crossbell = E9e; + F.CryptoEmergency = zAe; + F.Cryptocoinpay = l7e; + F.CryptokylinTestnet = eAe; + F.Crystaleum = kNe; + F.CtexScanBlockchain = VMe; + F.CubeChain = iPe; + F.CubeChainTestnet = sPe; + F.DChain = dPe; + F.DarwiniaCrabNetwork = oIe; + F.DarwiniaNetwork = uIe; + F.DarwiniaPangolinTestnet = sIe; + F.DarwiniaPangoroTestnet = cIe; + F.Datahopper = ULe; + F.DaxChain = SAe; + F.DbchainTestnet = kIe; + F.Debank = yAe; + F.DebankTestnet = mAe; + F.DebounceSubnetTestnet = p9e; + F.DecentralizedWeb = xAe; + F.DecimalSmartChain = LIe; + F.DecimalSmartChainTestnet = GNe; + F.DefichainEvmNetwork = hMe; + F.DefichainEvmNetworkTestnet = fMe; + F.Dehvo = hAe; + F.DexalotSubnet = mOe; + F.DexalotSubnetTestnet = fOe; + F.DexitNetwork = TSe; + F.DfkChain = NBe; + F.DfkChainTest = bke; + F.DiodePrenet = R4e; + F.DiodeTestnetStaging = M4e; + F.DithereumTestnet = Z4e; + F.Dogcoin = pMe; + F.DogcoinTestnet = YRe; + F.Dogechain = bPe; + F.DogechainTestnet = jke; + F.DokenSuperChain = jBe; + F.DosFujiSubnet = DMe; + F.DoubleAChain = Oke; + F.DoubleAChainTestnet = Lke; + F.DracNetwork = C9e; + F.Dxchain = X4e; + F.DxchainTestnet = BIe; + F.Dyno = I9e; + F.DynoTestnet = A9e; + F.Ecoball = OPe; + F.EcoballTestnetEspuma = LPe; + F.Ecredits = GBe; + F.EcreditsTestnet = YBe; + F.EdexaTestnet = gPe; + F.Edgeware = APe; + F.Ekta = yPe; + F.ElaDidSidechain = F4e; + F.ElaDidSidechainTestnet = W4e; + F.ElastosSmartChain = D4e; + F.ElastosSmartChainTestnet = q4e; + F.EllaTheHeart = uRe; + F.Ellaism = CIe; + F.EluvioContentFabric = NOe; + F.Elysium = HMe; + F.ElysiumTestnet = UMe; + F.EmpireNetwork = T9e; + F.EnduranceSmartChain = Xke; + F.Energi = hBe; + F.EnergiTestnet = MBe; + F.EnergyWebChain = QAe; + F.EnergyWebVoltaTestnet = aNe; + F.EnnothemProterozoic = lIe; + F.EnnothemTestnetPioneer = dIe; + F.Enterchain = TMe; + F.Enuls = gAe; + F.EnulsTestnet = bAe; + F.Eos = wIe; + F.Eraswap = K9e; + F.Ethereum = SH; + F.EthereumClassic = xIe; + F.EthereumClassicTestnetKotti = E4e; + F.EthereumClassicTestnetMorden = TIe; + F.EthereumClassicTestnetMordor = EIe; + F.EthereumFair = vOe; + F.Ethergem = mPe; + F.Etherinc = aAe; + F.EtherliteChain = pAe; + F.EthersocialNetwork = rBe; + F.EthoProtocol = OOe; + F.Etica = zBe; + F.EtndChainS = FNe; + F.EuropaSkaleChain = HLe; + F.Eurus = $Se; + F.EurusTestnet = fPe; + F.Evanesco = jPe; + F.EvanescoTestnet = wMe; + F.Evmos = KRe; + F.EvmosTestnet = jRe; + F.EvriceNetwork = JSe; + F.Excelon = iLe; + F.ExcoincialChain = oLe; + F.ExcoincialChainVoltaTestnet = sLe; + F.ExosamaNetwork = DPe; + F.ExpanseNetwork = _4e; + F.ExzoNetwork = EMe; + F.EzchainCChain = n9e; + F.EzchainCChainTestnet = a9e; + F.FXCoreNetwork = Wke; + F.Factory127 = CAe; + F.FantasiaChain = _Se; + F.Fantom = OH; + F.FantomTestnet = DH; + F.FastexChainTestnet = hOe; + F.Filecoin = hke; + F.FilecoinButterflyTestnet = HOe; + F.FilecoinCalibrationTestnet = aOe; + F.FilecoinHyperspaceTestnet = d9e; + F.FilecoinLocalTestnet = lLe; + F.FilecoinWallabyTestnet = sBe; + F.Findora = WPe; + F.FindoraForge = HPe; + F.FindoraTestnet = UPe; + F.Firechain = Fke; + F.FirenzeTestNetwork = cNe; + F.Flachain = uLe; + F.Flare = P4e; + F.FlareTestnetCoston = B4e; + F.FlareTestnetCoston2 = fAe; + F.Floripa = kBe; + F.Fncy = NIe; + F.FncyTestnet = BOe; + F.FreightTrustNetwork = GAe; + F.Frenchain = TBe; + F.FrenchainTestnet = Pke; + F.FrontierOfDreamsTestnet = N7e; + F.Fuse = wAe; + F.FuseSparknet = _Ae; + F.Fusion = cBe; + F.FusionTestnet = IBe; + F.Ganache = Q9e; + F.GarizonStage0 = JIe; + F.GarizonStage1 = ZIe; + F.GarizonStage2 = QIe; + F.GarizonStage3 = XIe; + F.GarizonTestnetStage0 = ISe; + F.GarizonTestnetStage1 = ASe; + F.GarizonTestnetStage2 = kSe; + F.GarizonTestnetStage3 = SSe; + F.Gatechain = VIe; + F.GatechainTestnet = KIe; + F.GatherDevnetNetwork = ELe; + F.GatherNetwork = gLe; + F.GatherTestnetNetwork = TLe; + F.GearZeroNetwork = Dke; + F.GearZeroNetworkTestnet = rOe; + F.Genechain = UIe; + F.GenesisCoin = GRe; + F.GenesisL1 = V4e; + F.GenesisL1Testnet = z4e; + F.GiantMammoth = HRe; + F.GitshockCartenzTestnet = cPe; + F.Gnosis = nAe; + F.Gochain = _Ie; + F.GochainTestnet = iBe; + F.Godwoken = nNe; + F.GodwokenTestnetV1 = rNe; + F.Goerli = MH; + F.GoldSmartChain = aRe; + F.GoldSmartChainTestnet = uNe; + F.GonChain = n7e; + F.Gooddata = J4e; + F.GooddataTestnet = $4e; + F.GraphlinqBlockchain = Zke; + F.Gton = KSe; + F.GtonTestnet = RBe; + F.Haic = fSe; + F.Halo = MMe; + F.HammerChain = J7e; + F.HaqqChainTestnet = OBe; + F.HaqqNetwork = y7e; + F.HaradevTestnet = YLe; + F.HarmonyDevnetShard0 = WLe; + F.HarmonyShard0 = RLe; + F.HarmonyShard1 = BLe; + F.HarmonyShard2 = NLe; + F.HarmonyShard3 = OLe; + F.HarmonyTestnetShard0 = LLe; + F.HarmonyTestnetShard1 = DLe; + F.HarmonyTestnetShard2 = qLe; + F.HarmonyTestnetShard3 = FLe; + F.HaymoTestnet = ZNe; + F.HazlorTestnet = fRe; + F.Hedera = ske; + F.HederaLocalnet = uke; + F.HederaPreviewnet = cke; + F.HederaTestnet = oke; + F.HertzNetwork = Q7e; + F.HighPerformanceBlockchain = nke; + F.HomeVerse = L7e; + F.HooSmartChain = PIe; + F.HooSmartChainTestnet = DAe; + F.Htmlcoin = O9e; + F.Humanode = V9e; + F.HuobiEcoChain = IAe; + F.HuobiEcoChainTestnet = eke; + F.HyperonchainTestnet = kke; + F.Idchain = OIe; + F.Imversed = zOe; + F.ImversedTestnet = jOe; + F.Iolite = rLe; + F.IoraChain = vMe; + F.IotexNetwork = L9e; + F.IotexNetworkTestnet = D9e; + F.IposNetwork = ILe; + F.IvarChain = dNe; + F.IvarChainTestnet = B7e; + F.J2oTaro = lBe; + F.Jellie = YNe; + F.JfinChain = b9e; + F.JibchainL1 = URe; + F.JoysDigital = dLe; + F.JoysDigitalTestnet = yLe; + F.KaibaLightningChainTestnet = sAe; + F.Kardiachain = U4e; + F.KaruraNetwork = tSe; + F.KaruraNetworkTestnet = Gke; + F.KavaEvm = VPe; + F.KavaEvmTestnet = KPe; + F.Kcc = fke; + F.KccTestnet = mke; + F.Kekchain = lOe; + F.KekchainKektest = dOe; + F.Kerleano = nPe; + F.Kiln = qOe; + F.Kintsugi = DOe; + F.KlaytnCypress = ERe; + F.KlaytnTestnetBaobab = VSe; + F.Kortho = XPe; + F.Korthotest = IRe; + F.Kovan = iIe; + F.Lachain = JAe; + F.LachainTestnet = ZAe; + F.LambdaTestnet = hNe; + F.LatamBlockchainResilTestnet = qAe; + F.Lightstreams = NAe; + F.LightstreamsTestnet = BAe; + F.Lisinski = Ake; + F.LiveplexOracleevm = PBe; + F.Localhost = zH; + F.LucidBlockchain = hSe; + F.LuckyNetwork = zSe; + F.Ludan = XMe; + F.LycanChain = iSe; + F.Maistestsubnet = pLe; + F.Mammoth = WRe; + F.Mantle = H9e; + F.MantleTestnet = z9e; + F.Map = j7e; + F.MapMakalu = YAe; + F.MaroBlockchain = BRe; + F.Mas = JNe; + F.Mathchain = yMe; + F.MathchainTestnet = gMe; + F.MdglTestnet = gRe; + F.MemoSmartChain = USe; + F.MeshnyanTestnet = Jke; + F.Metacodechain = _9e; + F.Metadium = k4e; + F.MetadiumTestnet = S4e; + F.Metadot = M7e; + F.MetadotTestnet = P7e; + F.MetalCChain = cOe; + F.MetalTahoeCChain = uOe; + F.Metaplayerone = qPe; + F.Meter = zIe; + F.MeterTestnet = jIe; + F.MetisAndromeda = sMe; + F.MetisGoerliTestnet = $ke; + F.MilkomedaA1 = wPe; + F.MilkomedaA1Testnet = HNe; + F.MilkomedaC1 = vPe; + F.MilkomedaC1Testnet = UNe; + F.MintmeComCoin = $7e; + F.Mix = DIe; + F.MixinVirtualMachine = iNe; + F.Moac = oMe; + F.MoacTestnet = VAe; + F.MolereumNetwork = ZLe; + F.MoonbaseAlpha = BMe; + F.Moonbeam = PMe; + F.Moonriver = RMe; + F.Moonrock = NMe; + F.Multivac = VBe; + F.Mumbai = UH; + F.MunodeTestnet = OSe; + F.Musicoin = YOe; + F.MyownTestnet = e7e; + F.MythicalChain = VNe; + F.Nahmii = Y9e; + F.NahmiiTestnet = $9e; + F.Nebula = MLe; + F.NebulaStaging = CLe; + F.NebulaTestnet = uAe; + F.NeonEvm = vLe; + F.NeonEvmDevnet = bLe; + F.NeonEvmTestnet = wLe; + F.NepalBlockchainNetwork = FSe; + F.Newton = ZSe; + F.NewtonTestnet = YSe; + F.NovaNetwork = GIe; + F.Ntity = GLe; + F.Numbers = c7e; + F.NumbersTestnet = u7e; + F.OasisEmerald = wBe; + F.OasisEmeraldTestnet = vBe; + F.OasisSapphire = V7e; + F.OasisSapphireTestnet = G7e; + F.Oasischain = X7e; + F.Oasys = XAe; + F.Octaspace = IOe; + F.Oho = fBe; + F.OkexchainTestnet = IIe; + F.Okxchain = AIe; + F.OmPlatform = kMe; + F.Omax = pke; + F.Omchain = U7e; + F.Oneledger = _Le; + F.OneledgerTestnetFrankenstein = jLe; + F.Ontology = vIe; + F.OntologyTestnet = X9e; + F.OnusChain = hPe; + F.OnusChainTestnet = lPe; + F.OoneChainTestnet = iOe; + F.Oort = LSe; + F.OortAscraeus = qSe; + F.OortDev = ZRe; + F.OortHuygens = DSe; + F.OpalTestnetByUnique = LRe; + F.Openchain = gOe; + F.OpenchainTestnet = uSe; + F.Openpiece = yIe; + F.OpenpieceTestnet = kAe; + F.Openvessel = VOe; + F.OpsideTestnet = K7e; + F.Optimism = PH; + F.OptimismBedrockGoerliAlphaTestnet = eBe; + F.OptimismGoerli = LH; + F.OptimismKovan = MIe; + F.OptimismOnGnosis = lke; + F.OpulentXBeta = mBe; + F.OrigintrailParachain = PPe; + F.OrlandoChain = u9e; + F.Oychain = EAe; + F.OychainTestnet = TAe; + F.P12Chain = F7e; + F.Palm = VLe; + F.PalmTestnet = KLe; + F.Pandoproject = v9e; + F.PandoprojectTestnet = w9e; + F.ParibuNet = y9e; + F.ParibuNetTestnet = g9e; + F.Pdc = JLe; + F.Pegglecoin = yBe; + F.PepchainChurchill = XOe; + F.PhiNetworkV1 = B9e; + F.PhiNetworkV2 = MAe; + F.Phoenix = I7e; + F.PieceTestnet = tBe; + F.Pirl = zLe; + F.PixieChain = nRe; + F.PixieChainTestnet = eSe; + F.Planq = lRe; + F.Platon = $Ne; + F.PlatonDevTestnet2 = UOe; + F.PlianMain = WOe; + F.PlianSubchain1 = $Oe; + F.PlianTestnetMain = tLe; + F.PlianTestnetSubchain1 = JOe; + F.PoaNetworkCore = rAe; + F.PoaNetworkSokol = qIe; + F.Pocrnet = t9e; + F.Polis = oOe; + F.PolisTestnet = sOe; + F.Polygon = NH; + F.PolygonZkevmTestnet = KMe; + F.PolyjuiceTestnet = tNe; + F.Polysmartchain = sRe; + F.Popcateum = xMe; + F.PortalFantasyChain = MSe; + F.PortalFantasyChainTest = mSe; + F.PosichainDevnetShard0 = POe; + F.PosichainDevnetShard1 = ROe; + F.PosichainShard0 = SOe; + F.PosichainTestnetShard0 = MOe; + F.Primuschain = FIe; + F.ProofOfMemes = O7e; + F.ProtonTestnet = dAe; + F.ProxyNetworkTestnet = nMe; + F.Publicmint = IPe; + F.PublicmintDevnet = EPe; + F.PublicmintTestnet = CPe; + F.Pulsechain = Cke; + F.PulsechainTestnet = RSe; + F.PulsechainTestnetV2b = BSe; + F.PulsechainTestnetV3 = NSe; + F.Q = dBe; + F.QTestnet = pBe; + F.Qeasyweb3Testnet = JRe; + F.Qitmeer = ySe; + F.QitmeerNetworkTestnet = xRe; + F.Ql1 = cSe; + F.Ql1Testnet = GOe; + F.QuadransBlockchain = d7e; + F.QuadransBlockchainTestnet = p7e; + F.Quarkblockchain = aLe; + F.QuarkchainDevnetRoot = MNe; + F.QuarkchainDevnetShard0 = PNe; + F.QuarkchainDevnetShard1 = RNe; + F.QuarkchainDevnetShard2 = BNe; + F.QuarkchainDevnetShard3 = NNe; + F.QuarkchainDevnetShard4 = ONe; + F.QuarkchainDevnetShard5 = LNe; + F.QuarkchainDevnetShard6 = DNe; + F.QuarkchainDevnetShard7 = qNe; + F.QuarkchainRoot = yNe; + F.QuarkchainShard0 = gNe; + F.QuarkchainShard1 = bNe; + F.QuarkchainShard2 = vNe; + F.QuarkchainShard3 = wNe; + F.QuarkchainShard4 = _Ne; + F.QuarkchainShard5 = xNe; + F.QuarkchainShard6 = TNe; + F.QuarkchainShard7 = ENe; + F.QuartzByUnique = ORe; + F.Quokkacoin = NPe; + F.RabbitAnalogTestnetChain = aPe; + F.RangersProtocol = MPe; + F.RangersProtocolTestnetRobin = $Re; + F.Realchain = vAe; + F.RedlightChain = r9e; + F.ReiChain = LBe; + F.ReiChainTestnet = DBe; + F.ReiNetwork = ABe; + F.Resincoin = sNe; + F.RiniaTestnet = PSe; + F.Rinkeby = T4e; + F.RiseOfTheWarbotsTestnet = hRe; + F.Ropsten = x4e; + F.Rsk = G4e; + F.RskTestnet = Y4e; + F.Rupaya = Rke; + F.Saakuru = KOe; + F.SaakuruTestnet = eOe; + F.Sakura = QSe; + F.SanrChain = v7e; + F.SapphireByUnique = DRe; + F.Sardis = BBe; + F.SardisTestnet = b7e; + F.Scroll = wOe; + F.ScrollAlphaTestnet = _Oe; + F.ScrollPreAlphaTestnet = xOe; + F.SeedcoinNetwork = eIe; + F.Seele = WAe; + F.Sepolia = QOe; + F.Setheum = tke; + F.ShardeumLiberty1X = bRe; + F.ShardeumLiberty2X = vRe; + F.ShardeumSphinx1X = wRe; + F.Sherpax = GMe; + F.SherpaxTestnet = YMe; + F.Shibachain = j4e; + F.Shiden = vke; + F.Shyft = dRe; + F.ShyftTestnet = g7e; + F.SingularityZero = _7e; + F.SingularityZeroTestnet = w7e; + F.Siriusnet = $Be; + F.SiriusnetV2 = $Ae; + F.Sjatsh = a7e; + F.SmartBitcoinCash = t7e; + F.SmartBitcoinCashTestnet = r7e; + F.SmartHostTeknolojiTestnet = bMe; + F.Smartmesh = nLe; + F.SocialSmartChain = nOe; + F.SongbirdCanaryNetwork = L4e; + F.Soterone = SIe; + F.Soverun = ZOe; + F.SoverunTestnet = ANe; + F.Sps = E7e; + F.SpsTestnet = k7e; + F.StarSocialTestnet = rSe; + F.StepNetwork = AMe; + F.StepTestnet = T7e; + F.Stratos = BPe; + F.StratosTestnet = RPe; + F.StreamuxBlockchain = _Re; + F.SurBlockchainNetwork = rke; + F.Susono = A7e; + F.SxNetwork = Ske; + F.SxNetworkTestnet = Qke; + F.Syscoin = bIe; + F.SyscoinTanenbaumTestnet = Z9e; + F.TEkta = GSe; + F.TaoNetwork = zke; + F.Taraxa = bSe; + F.TaraxaTestnet = vSe; + F.Taycan = H7e; + F.TaycanTestnet = SPe; + F.Tbsi = tPe; + F.TbsiTestnet = rPe; + F.TbwgChain = Q4e; + F.TcgVerse = ZPe; + F.Techpay = e9e; + F.Teleport = mRe; + F.TeleportTestnet = yRe; + F.TelosEvm = nIe; + F.TelosEvmTestnet = aIe; + F.Teslafunds = oPe; + F.Thaichain = C4e; + F.Thaichain20Thaifi = N4e; + F.Theta = _ke; + F.ThetaAmberTestnet = Tke; + F.ThetaSapphireTestnet = xke; + F.ThetaTestnet = Eke; + F.ThinkiumChain0 = ZBe; + F.ThinkiumChain1 = QBe; + F.ThinkiumChain103 = eNe; + F.ThinkiumChain2 = XBe; + F.ThinkiumTestnetChain0 = FBe; + F.ThinkiumTestnetChain1 = WBe; + F.ThinkiumTestnetChain103 = HBe; + F.ThinkiumTestnetChain2 = UBe; + F.Thundercore = lAe; + F.ThundercoreTestnet = O4e; + F.TlchainNetwork = j9e; + F.TmyChain = RRe; + F.TokiNetwork = ARe; + F.TokiTestnet = kRe; + F.TombChain = iRe; + F.Tomochain = YIe; + F.TomochainTestnet = $Ie; + F.ToolGlobal = SRe; + F.ToolGlobalTestnet = MRe; + F.Top = HSe; + F.TopEvm = WSe; + F.Tres = rRe; + F.TresTestnet = tRe; + F.TrustEvmTestnet = S7e; + F.UbSmartChain = mNe; + F.UbSmartChainTestnet = fNe; + F.Ubiq = I4e; + F.UbiqNetworkTestnet = A4e; + F.Ultron = IMe; + F.UltronTestnet = CMe; + F.UnicornUltraTestnet = rIe; + F.Unique = NRe; + F.UzmiNetwork = G9e; + F.Valorbit = tIe; + F.Vchain = GPe; + F.Vechain = CNe; + F.VechainTestnet = INe; + F.Vela1Chain = Hke; + F.VelasEvm = cAe; + F.Venidium = W9e; + F.VenidiumTestnet = F9e; + F.VentionSmartChain = oNe; + F.VentionSmartChainTestnet = oSe; + F.Vision = kOe; + F.VisionVpioneerTestChain = EOe; + F.VyvoSmartChain = FRe; + F.Wagmi = f7e; + F.Wanchain = CSe; + F.WanchainTestnet = jSe; + F.Web3gamesDevnet = oAe; + F.Web3gamesTestnet = iAe; + F.Web3q = gke; + F.Web3qGalileo = m9e; + F.Web3qTestnet = f9e; + F.Webchain = Y7e; + F.WeelinkTestnet = yOe; + F.WegochainRubidium = eRe; + F.Wemix30 = cMe; + F.Wemix30Testnet = uMe; + F.WorldTradeTechnicalChain = _Me; + F.Xanachain = qRe; + F.XdcApothemNetwork = hIe; + F.Xerom = LOe; + F.XinfinXdcNetwork = pIe; + F.Xodex = QPe; + F.XtSmartChain = qke; + F.Yuanchain = k9e; + F.ZMainnet = TPe; + F.ZTestnet = XRe; + F.ZcoreTestnet = h9e; + F.ZeethChain = Mke; + F.ZeethChainDev = wSe; + F.Zeniq = $Le; + F.Zenith = WIe; + F.ZenithTestnetVilnius = HIe; + F.Zetachain = oRe; + F.ZetachainAthensTestnet = cRe; + F.Zhejiang = FOe; + F.ZksyncEra = yke; + F.ZksyncEraTestnet = ake; + F.Zyx = gIe; + F._0xtade = o7e; + F._4goodnetwork = AOe; + F.allChains = jer; + F.configureChain = Her; + F.defaultChains = zer; + F.getChainRPC = Wer; + F.getChainRPCs = w4e; + F.minimizeChain = Uer; + }); + var Ia = N((hnn, jH) => { + "use strict"; + _(); + x(); + S.env.NODE_ENV === "production" + ? (jH.exports = v4e()) + : (jH.exports = QLe()); + }); + var Aa = N((ynn, KH) => { + "use strict"; + _(); + x(); + var Ker = Object.prototype.hasOwnProperty, + Ac = "~"; + function R5() {} + Object.create && + ((R5.prototype = Object.create(null)), new R5().__proto__ || (Ac = !1)); + function Ver(r, e, t) { + (this.fn = r), (this.context = e), (this.once = t || !1); + } + function XLe(r, e, t, n, a) { + if (typeof t != "function") + throw new TypeError("The listener must be a function"); + var i = new Ver(t, n || r, a), + s = Ac ? Ac + e : e; + return ( + r._events[s] + ? r._events[s].fn + ? (r._events[s] = [r._events[s], i]) + : r._events[s].push(i) + : ((r._events[s] = i), r._eventsCount++), + r + ); + } + function tS(r, e) { + --r._eventsCount === 0 ? (r._events = new R5()) : delete r._events[e]; + } + function Lo() { + (this._events = new R5()), (this._eventsCount = 0); + } + Lo.prototype.eventNames = function () { + var e = [], + t, + n; + if (this._eventsCount === 0) return e; + for (n in (t = this._events)) + Ker.call(t, n) && e.push(Ac ? n.slice(1) : n); + return Object.getOwnPropertySymbols + ? e.concat(Object.getOwnPropertySymbols(t)) + : e; + }; + Lo.prototype.listeners = function (e) { + var t = Ac ? Ac + e : e, + n = this._events[t]; + if (!n) return []; + if (n.fn) return [n.fn]; + for (var a = 0, i = n.length, s = new Array(i); a < i; a++) + s[a] = n[a].fn; + return s; + }; + Lo.prototype.listenerCount = function (e) { + var t = Ac ? Ac + e : e, + n = this._events[t]; + return n ? (n.fn ? 1 : n.length) : 0; + }; + Lo.prototype.emit = function (e, t, n, a, i, s) { + var c = Ac ? Ac + e : e; + if (!this._events[c]) return !1; + var l = this._events[c], + d = arguments.length, + m, + w; + if (l.fn) { + switch ((l.once && this.removeListener(e, l.fn, void 0, !0), d)) { + case 1: + return l.fn.call(l.context), !0; + case 2: + return l.fn.call(l.context, t), !0; + case 3: + return l.fn.call(l.context, t, n), !0; + case 4: + return l.fn.call(l.context, t, n, a), !0; + case 5: + return l.fn.call(l.context, t, n, a, i), !0; + case 6: + return l.fn.call(l.context, t, n, a, i, s), !0; + } + for (w = 1, m = new Array(d - 1); w < d; w++) m[w - 1] = arguments[w]; + l.fn.apply(l.context, m); + } else { + var C = l.length, + I; + for (w = 0; w < C; w++) + switch ( + (l[w].once && this.removeListener(e, l[w].fn, void 0, !0), d) + ) { + case 1: + l[w].fn.call(l[w].context); + break; + case 2: + l[w].fn.call(l[w].context, t); + break; + case 3: + l[w].fn.call(l[w].context, t, n); + break; + case 4: + l[w].fn.call(l[w].context, t, n, a); + break; + default: + if (!m) + for (I = 1, m = new Array(d - 1); I < d; I++) + m[I - 1] = arguments[I]; + l[w].fn.apply(l[w].context, m); + } + } + return !0; + }; + Lo.prototype.on = function (e, t, n) { + return XLe(this, e, t, n, !1); + }; + Lo.prototype.once = function (e, t, n) { + return XLe(this, e, t, n, !0); + }; + Lo.prototype.removeListener = function (e, t, n, a) { + var i = Ac ? Ac + e : e; + if (!this._events[i]) return this; + if (!t) return tS(this, i), this; + var s = this._events[i]; + if (s.fn) + s.fn === t && (!a || s.once) && (!n || s.context === n) && tS(this, i); + else { + for (var c = 0, l = [], d = s.length; c < d; c++) + (s[c].fn !== t || (a && !s[c].once) || (n && s[c].context !== n)) && + l.push(s[c]); + l.length ? (this._events[i] = l.length === 1 ? l[0] : l) : tS(this, i); + } + return this; + }; + Lo.prototype.removeAllListeners = function (e) { + var t; + return ( + e + ? ((t = Ac ? Ac + e : e), this._events[t] && tS(this, t)) + : ((this._events = new R5()), (this._eventsCount = 0)), + this + ); + }; + Lo.prototype.off = Lo.prototype.removeListener; + Lo.prototype.addListener = Lo.prototype.on; + Lo.prefixed = Ac; + Lo.EventEmitter = Lo; + typeof KH < "u" && (KH.exports = Lo); + }); + var ka = N((vnn, Ger) => { + Ger.exports = [ + { inputs: [], stateMutability: "nonpayable", type: "constructor" }, + { + inputs: [ + { + components: [ + { internalType: "address", name: "from", type: "address" }, + { internalType: "address", name: "to", type: "address" }, + { internalType: "uint256", name: "value", type: "uint256" }, + { internalType: "uint256", name: "gas", type: "uint256" }, + { internalType: "uint256", name: "nonce", type: "uint256" }, + { internalType: "bytes", name: "data", type: "bytes" }, + ], + internalType: "struct Forwarder.ForwardRequest", + name: "req", + type: "tuple", + }, + { internalType: "bytes", name: "signature", type: "bytes" }, + ], + name: "execute", + outputs: [ + { internalType: "bool", name: "", type: "bool" }, + { internalType: "bytes", name: "", type: "bytes" }, + ], + stateMutability: "payable", + type: "function", + }, + { + inputs: [{ internalType: "address", name: "from", type: "address" }], + name: "getNonce", + outputs: [{ internalType: "uint256", name: "", type: "uint256" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { + components: [ + { internalType: "address", name: "from", type: "address" }, + { internalType: "address", name: "to", type: "address" }, + { internalType: "uint256", name: "value", type: "uint256" }, + { internalType: "uint256", name: "gas", type: "uint256" }, + { internalType: "uint256", name: "nonce", type: "uint256" }, + { internalType: "bytes", name: "data", type: "bytes" }, + ], + internalType: "struct Forwarder.ForwardRequest", + name: "req", + type: "tuple", + }, + { internalType: "bytes", name: "signature", type: "bytes" }, + ], + name: "verify", + outputs: [{ internalType: "bool", name: "", type: "bool" }], + stateMutability: "view", + type: "function", + }, + ]; + }); + var VH = N((wnn, eDe) => { + _(); + x(); + eDe.exports = typeof self == "object" ? self.FormData : window.FormData; + }); + var YH = N((GH) => { + "use strict"; + _(); + x(); + Object.defineProperty(GH, "__esModule", { value: !0 }); + GH.default = $er; + var rS, + Yer = new Uint8Array(16); + function $er() { + if ( + !rS && + ((rS = + typeof crypto < "u" && + crypto.getRandomValues && + crypto.getRandomValues.bind(crypto)), + !rS) + ) + throw new Error( + "crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported" + ); + return rS(Yer); + } + }); + var tDe = N((nS) => { + "use strict"; + _(); + x(); + Object.defineProperty(nS, "__esModule", { value: !0 }); + nS.default = void 0; + var Jer = + /^(?:[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; + nS.default = Jer; + }); + var B5 = N((aS) => { + "use strict"; + _(); + x(); + Object.defineProperty(aS, "__esModule", { value: !0 }); + aS.default = void 0; + var Zer = Qer(tDe()); + function Qer(r) { + return r && r.__esModule ? r : { default: r }; + } + function Xer(r) { + return typeof r == "string" && Zer.default.test(r); + } + var etr = Xer; + aS.default = etr; + }); + var O5 = N((N5) => { + "use strict"; + _(); + x(); + Object.defineProperty(N5, "__esModule", { value: !0 }); + N5.default = void 0; + N5.unsafeStringify = rDe; + var ttr = rtr(B5()); + function rtr(r) { + return r && r.__esModule ? r : { default: r }; + } + var eo = []; + for (let r = 0; r < 256; ++r) eo.push((r + 256).toString(16).slice(1)); + function rDe(r, e = 0) { + return ( + eo[r[e + 0]] + + eo[r[e + 1]] + + eo[r[e + 2]] + + eo[r[e + 3]] + + "-" + + eo[r[e + 4]] + + eo[r[e + 5]] + + "-" + + eo[r[e + 6]] + + eo[r[e + 7]] + + "-" + + eo[r[e + 8]] + + eo[r[e + 9]] + + "-" + + eo[r[e + 10]] + + eo[r[e + 11]] + + eo[r[e + 12]] + + eo[r[e + 13]] + + eo[r[e + 14]] + + eo[r[e + 15]] + ).toLowerCase(); + } + function ntr(r, e = 0) { + let t = rDe(r, e); + if (!(0, ttr.default)(t)) throw TypeError("Stringified UUID is invalid"); + return t; + } + var atr = ntr; + N5.default = atr; + }); + var aDe = N((iS) => { + "use strict"; + _(); + x(); + Object.defineProperty(iS, "__esModule", { value: !0 }); + iS.default = void 0; + var itr = otr(YH()), + str = O5(); + function otr(r) { + return r && r.__esModule ? r : { default: r }; + } + var nDe, + $H, + JH = 0, + ZH = 0; + function ctr(r, e, t) { + let n = (e && t) || 0, + a = e || new Array(16); + r = r || {}; + let i = r.node || nDe, + s = r.clockseq !== void 0 ? r.clockseq : $H; + if (i == null || s == null) { + let C = r.random || (r.rng || itr.default)(); + i == null && (i = nDe = [C[0] | 1, C[1], C[2], C[3], C[4], C[5]]), + s == null && (s = $H = ((C[6] << 8) | C[7]) & 16383); + } + let c = r.msecs !== void 0 ? r.msecs : Date.now(), + l = r.nsecs !== void 0 ? r.nsecs : ZH + 1, + d = c - JH + (l - ZH) / 1e4; + if ( + (d < 0 && r.clockseq === void 0 && (s = (s + 1) & 16383), + (d < 0 || c > JH) && r.nsecs === void 0 && (l = 0), + l >= 1e4) + ) + throw new Error("uuid.v1(): Can't create more than 10M uuids/sec"); + (JH = c), (ZH = l), ($H = s), (c += 122192928e5); + let m = ((c & 268435455) * 1e4 + l) % 4294967296; + (a[n++] = (m >>> 24) & 255), + (a[n++] = (m >>> 16) & 255), + (a[n++] = (m >>> 8) & 255), + (a[n++] = m & 255); + let w = ((c / 4294967296) * 1e4) & 268435455; + (a[n++] = (w >>> 8) & 255), + (a[n++] = w & 255), + (a[n++] = ((w >>> 24) & 15) | 16), + (a[n++] = (w >>> 16) & 255), + (a[n++] = (s >>> 8) | 128), + (a[n++] = s & 255); + for (let C = 0; C < 6; ++C) a[n + C] = i[C]; + return e || (0, str.unsafeStringify)(a); + } + var utr = ctr; + iS.default = utr; + }); + var QH = N((sS) => { + "use strict"; + _(); + x(); + Object.defineProperty(sS, "__esModule", { value: !0 }); + sS.default = void 0; + var ltr = dtr(B5()); + function dtr(r) { + return r && r.__esModule ? r : { default: r }; + } + function ptr(r) { + if (!(0, ltr.default)(r)) throw TypeError("Invalid UUID"); + let e, + t = new Uint8Array(16); + return ( + (t[0] = (e = parseInt(r.slice(0, 8), 16)) >>> 24), + (t[1] = (e >>> 16) & 255), + (t[2] = (e >>> 8) & 255), + (t[3] = e & 255), + (t[4] = (e = parseInt(r.slice(9, 13), 16)) >>> 8), + (t[5] = e & 255), + (t[6] = (e = parseInt(r.slice(14, 18), 16)) >>> 8), + (t[7] = e & 255), + (t[8] = (e = parseInt(r.slice(19, 23), 16)) >>> 8), + (t[9] = e & 255), + (t[10] = ((e = parseInt(r.slice(24, 36), 16)) / 1099511627776) & 255), + (t[11] = (e / 4294967296) & 255), + (t[12] = (e >>> 24) & 255), + (t[13] = (e >>> 16) & 255), + (t[14] = (e >>> 8) & 255), + (t[15] = e & 255), + t + ); + } + var htr = ptr; + sS.default = htr; + }); + var XH = N((Mg) => { + "use strict"; + _(); + x(); + Object.defineProperty(Mg, "__esModule", { value: !0 }); + Mg.URL = Mg.DNS = void 0; + Mg.default = btr; + var ftr = O5(), + mtr = ytr(QH()); + function ytr(r) { + return r && r.__esModule ? r : { default: r }; + } + function gtr(r) { + r = unescape(encodeURIComponent(r)); + let e = []; + for (let t = 0; t < r.length; ++t) e.push(r.charCodeAt(t)); + return e; + } + var iDe = "6ba7b810-9dad-11d1-80b4-00c04fd430c8"; + Mg.DNS = iDe; + var sDe = "6ba7b811-9dad-11d1-80b4-00c04fd430c8"; + Mg.URL = sDe; + function btr(r, e, t) { + function n(a, i, s, c) { + var l; + if ( + (typeof a == "string" && (a = gtr(a)), + typeof i == "string" && (i = (0, mtr.default)(i)), + ((l = i) === null || l === void 0 ? void 0 : l.length) !== 16) + ) + throw TypeError( + "Namespace must be array-like (16 iterable integer values, 0-255)" + ); + let d = new Uint8Array(16 + a.length); + if ( + (d.set(i), + d.set(a, i.length), + (d = t(d)), + (d[6] = (d[6] & 15) | e), + (d[8] = (d[8] & 63) | 128), + s) + ) { + c = c || 0; + for (let m = 0; m < 16; ++m) s[c + m] = d[m]; + return s; + } + return (0, ftr.unsafeStringify)(d); + } + try { + n.name = r; + } catch {} + return (n.DNS = iDe), (n.URL = sDe), n; + } + }); + var cDe = N((cS) => { + "use strict"; + _(); + x(); + Object.defineProperty(cS, "__esModule", { value: !0 }); + cS.default = void 0; + function vtr(r) { + if (typeof r == "string") { + let e = unescape(encodeURIComponent(r)); + r = new Uint8Array(e.length); + for (let t = 0; t < e.length; ++t) r[t] = e.charCodeAt(t); + } + return wtr(_tr(xtr(r), r.length * 8)); + } + function wtr(r) { + let e = [], + t = r.length * 32, + n = "0123456789abcdef"; + for (let a = 0; a < t; a += 8) { + let i = (r[a >> 5] >>> a % 32) & 255, + s = parseInt(n.charAt((i >>> 4) & 15) + n.charAt(i & 15), 16); + e.push(s); + } + return e; + } + function oDe(r) { + return (((r + 64) >>> 9) << 4) + 14 + 1; + } + function _tr(r, e) { + (r[e >> 5] |= 128 << e % 32), (r[oDe(e) - 1] = e); + let t = 1732584193, + n = -271733879, + a = -1732584194, + i = 271733878; + for (let s = 0; s < r.length; s += 16) { + let c = t, + l = n, + d = a, + m = i; + (t = Do(t, n, a, i, r[s], 7, -680876936)), + (i = Do(i, t, n, a, r[s + 1], 12, -389564586)), + (a = Do(a, i, t, n, r[s + 2], 17, 606105819)), + (n = Do(n, a, i, t, r[s + 3], 22, -1044525330)), + (t = Do(t, n, a, i, r[s + 4], 7, -176418897)), + (i = Do(i, t, n, a, r[s + 5], 12, 1200080426)), + (a = Do(a, i, t, n, r[s + 6], 17, -1473231341)), + (n = Do(n, a, i, t, r[s + 7], 22, -45705983)), + (t = Do(t, n, a, i, r[s + 8], 7, 1770035416)), + (i = Do(i, t, n, a, r[s + 9], 12, -1958414417)), + (a = Do(a, i, t, n, r[s + 10], 17, -42063)), + (n = Do(n, a, i, t, r[s + 11], 22, -1990404162)), + (t = Do(t, n, a, i, r[s + 12], 7, 1804603682)), + (i = Do(i, t, n, a, r[s + 13], 12, -40341101)), + (a = Do(a, i, t, n, r[s + 14], 17, -1502002290)), + (n = Do(n, a, i, t, r[s + 15], 22, 1236535329)), + (t = qo(t, n, a, i, r[s + 1], 5, -165796510)), + (i = qo(i, t, n, a, r[s + 6], 9, -1069501632)), + (a = qo(a, i, t, n, r[s + 11], 14, 643717713)), + (n = qo(n, a, i, t, r[s], 20, -373897302)), + (t = qo(t, n, a, i, r[s + 5], 5, -701558691)), + (i = qo(i, t, n, a, r[s + 10], 9, 38016083)), + (a = qo(a, i, t, n, r[s + 15], 14, -660478335)), + (n = qo(n, a, i, t, r[s + 4], 20, -405537848)), + (t = qo(t, n, a, i, r[s + 9], 5, 568446438)), + (i = qo(i, t, n, a, r[s + 14], 9, -1019803690)), + (a = qo(a, i, t, n, r[s + 3], 14, -187363961)), + (n = qo(n, a, i, t, r[s + 8], 20, 1163531501)), + (t = qo(t, n, a, i, r[s + 13], 5, -1444681467)), + (i = qo(i, t, n, a, r[s + 2], 9, -51403784)), + (a = qo(a, i, t, n, r[s + 7], 14, 1735328473)), + (n = qo(n, a, i, t, r[s + 12], 20, -1926607734)), + (t = Fo(t, n, a, i, r[s + 5], 4, -378558)), + (i = Fo(i, t, n, a, r[s + 8], 11, -2022574463)), + (a = Fo(a, i, t, n, r[s + 11], 16, 1839030562)), + (n = Fo(n, a, i, t, r[s + 14], 23, -35309556)), + (t = Fo(t, n, a, i, r[s + 1], 4, -1530992060)), + (i = Fo(i, t, n, a, r[s + 4], 11, 1272893353)), + (a = Fo(a, i, t, n, r[s + 7], 16, -155497632)), + (n = Fo(n, a, i, t, r[s + 10], 23, -1094730640)), + (t = Fo(t, n, a, i, r[s + 13], 4, 681279174)), + (i = Fo(i, t, n, a, r[s], 11, -358537222)), + (a = Fo(a, i, t, n, r[s + 3], 16, -722521979)), + (n = Fo(n, a, i, t, r[s + 6], 23, 76029189)), + (t = Fo(t, n, a, i, r[s + 9], 4, -640364487)), + (i = Fo(i, t, n, a, r[s + 12], 11, -421815835)), + (a = Fo(a, i, t, n, r[s + 15], 16, 530742520)), + (n = Fo(n, a, i, t, r[s + 2], 23, -995338651)), + (t = Wo(t, n, a, i, r[s], 6, -198630844)), + (i = Wo(i, t, n, a, r[s + 7], 10, 1126891415)), + (a = Wo(a, i, t, n, r[s + 14], 15, -1416354905)), + (n = Wo(n, a, i, t, r[s + 5], 21, -57434055)), + (t = Wo(t, n, a, i, r[s + 12], 6, 1700485571)), + (i = Wo(i, t, n, a, r[s + 3], 10, -1894986606)), + (a = Wo(a, i, t, n, r[s + 10], 15, -1051523)), + (n = Wo(n, a, i, t, r[s + 1], 21, -2054922799)), + (t = Wo(t, n, a, i, r[s + 8], 6, 1873313359)), + (i = Wo(i, t, n, a, r[s + 15], 10, -30611744)), + (a = Wo(a, i, t, n, r[s + 6], 15, -1560198380)), + (n = Wo(n, a, i, t, r[s + 13], 21, 1309151649)), + (t = Wo(t, n, a, i, r[s + 4], 6, -145523070)), + (i = Wo(i, t, n, a, r[s + 11], 10, -1120210379)), + (a = Wo(a, i, t, n, r[s + 2], 15, 718787259)), + (n = Wo(n, a, i, t, r[s + 9], 21, -343485551)), + (t = s0(t, c)), + (n = s0(n, l)), + (a = s0(a, d)), + (i = s0(i, m)); + } + return [t, n, a, i]; + } + function xtr(r) { + if (r.length === 0) return []; + let e = r.length * 8, + t = new Uint32Array(oDe(e)); + for (let n = 0; n < e; n += 8) t[n >> 5] |= (r[n / 8] & 255) << n % 32; + return t; + } + function s0(r, e) { + let t = (r & 65535) + (e & 65535); + return (((r >> 16) + (e >> 16) + (t >> 16)) << 16) | (t & 65535); + } + function Ttr(r, e) { + return (r << e) | (r >>> (32 - e)); + } + function oS(r, e, t, n, a, i) { + return s0(Ttr(s0(s0(e, r), s0(n, i)), a), t); + } + function Do(r, e, t, n, a, i, s) { + return oS((e & t) | (~e & n), r, e, a, i, s); + } + function qo(r, e, t, n, a, i, s) { + return oS((e & n) | (t & ~n), r, e, a, i, s); + } + function Fo(r, e, t, n, a, i, s) { + return oS(e ^ t ^ n, r, e, a, i, s); + } + function Wo(r, e, t, n, a, i, s) { + return oS(t ^ (e | ~n), r, e, a, i, s); + } + var Etr = vtr; + cS.default = Etr; + }); + var lDe = N((uS) => { + "use strict"; + _(); + x(); + Object.defineProperty(uS, "__esModule", { value: !0 }); + uS.default = void 0; + var Ctr = uDe(XH()), + Itr = uDe(cDe()); + function uDe(r) { + return r && r.__esModule ? r : { default: r }; + } + var Atr = (0, Ctr.default)("v3", 48, Itr.default), + ktr = Atr; + uS.default = ktr; + }); + var dDe = N((lS) => { + "use strict"; + _(); + x(); + Object.defineProperty(lS, "__esModule", { value: !0 }); + lS.default = void 0; + var Str = + typeof crypto < "u" && + crypto.randomUUID && + crypto.randomUUID.bind(crypto), + Mtr = { randomUUID: Str }; + lS.default = Mtr; + }); + var fDe = N((dS) => { + "use strict"; + _(); + x(); + Object.defineProperty(dS, "__esModule", { value: !0 }); + dS.default = void 0; + var pDe = hDe(dDe()), + Ptr = hDe(YH()), + Rtr = O5(); + function hDe(r) { + return r && r.__esModule ? r : { default: r }; + } + function Btr(r, e, t) { + if (pDe.default.randomUUID && !e && !r) return pDe.default.randomUUID(); + r = r || {}; + let n = r.random || (r.rng || Ptr.default)(); + if (((n[6] = (n[6] & 15) | 64), (n[8] = (n[8] & 63) | 128), e)) { + t = t || 0; + for (let a = 0; a < 16; ++a) e[t + a] = n[a]; + return e; + } + return (0, Rtr.unsafeStringify)(n); + } + var Ntr = Btr; + dS.default = Ntr; + }); + var mDe = N((pS) => { + "use strict"; + _(); + x(); + Object.defineProperty(pS, "__esModule", { value: !0 }); + pS.default = void 0; + function Otr(r, e, t, n) { + switch (r) { + case 0: + return (e & t) ^ (~e & n); + case 1: + return e ^ t ^ n; + case 2: + return (e & t) ^ (e & n) ^ (t & n); + case 3: + return e ^ t ^ n; + } + } + function ez(r, e) { + return (r << e) | (r >>> (32 - e)); + } + function Ltr(r) { + let e = [1518500249, 1859775393, 2400959708, 3395469782], + t = [1732584193, 4023233417, 2562383102, 271733878, 3285377520]; + if (typeof r == "string") { + let s = unescape(encodeURIComponent(r)); + r = []; + for (let c = 0; c < s.length; ++c) r.push(s.charCodeAt(c)); + } else Array.isArray(r) || (r = Array.prototype.slice.call(r)); + r.push(128); + let n = r.length / 4 + 2, + a = Math.ceil(n / 16), + i = new Array(a); + for (let s = 0; s < a; ++s) { + let c = new Uint32Array(16); + for (let l = 0; l < 16; ++l) + c[l] = + (r[s * 64 + l * 4] << 24) | + (r[s * 64 + l * 4 + 1] << 16) | + (r[s * 64 + l * 4 + 2] << 8) | + r[s * 64 + l * 4 + 3]; + i[s] = c; + } + (i[a - 1][14] = ((r.length - 1) * 8) / Math.pow(2, 32)), + (i[a - 1][14] = Math.floor(i[a - 1][14])), + (i[a - 1][15] = ((r.length - 1) * 8) & 4294967295); + for (let s = 0; s < a; ++s) { + let c = new Uint32Array(80); + for (let I = 0; I < 16; ++I) c[I] = i[s][I]; + for (let I = 16; I < 80; ++I) + c[I] = ez(c[I - 3] ^ c[I - 8] ^ c[I - 14] ^ c[I - 16], 1); + let l = t[0], + d = t[1], + m = t[2], + w = t[3], + C = t[4]; + for (let I = 0; I < 80; ++I) { + let k = Math.floor(I / 20), + O = (ez(l, 5) + Otr(k, d, m, w) + C + e[k] + c[I]) >>> 0; + (C = w), (w = m), (m = ez(d, 30) >>> 0), (d = l), (l = O); + } + (t[0] = (t[0] + l) >>> 0), + (t[1] = (t[1] + d) >>> 0), + (t[2] = (t[2] + m) >>> 0), + (t[3] = (t[3] + w) >>> 0), + (t[4] = (t[4] + C) >>> 0); + } + return [ + (t[0] >> 24) & 255, + (t[0] >> 16) & 255, + (t[0] >> 8) & 255, + t[0] & 255, + (t[1] >> 24) & 255, + (t[1] >> 16) & 255, + (t[1] >> 8) & 255, + t[1] & 255, + (t[2] >> 24) & 255, + (t[2] >> 16) & 255, + (t[2] >> 8) & 255, + t[2] & 255, + (t[3] >> 24) & 255, + (t[3] >> 16) & 255, + (t[3] >> 8) & 255, + t[3] & 255, + (t[4] >> 24) & 255, + (t[4] >> 16) & 255, + (t[4] >> 8) & 255, + t[4] & 255, + ]; + } + var Dtr = Ltr; + pS.default = Dtr; + }); + var gDe = N((hS) => { + "use strict"; + _(); + x(); + Object.defineProperty(hS, "__esModule", { value: !0 }); + hS.default = void 0; + var qtr = yDe(XH()), + Ftr = yDe(mDe()); + function yDe(r) { + return r && r.__esModule ? r : { default: r }; + } + var Wtr = (0, qtr.default)("v5", 80, Ftr.default), + Utr = Wtr; + hS.default = Utr; + }); + var bDe = N((fS) => { + "use strict"; + _(); + x(); + Object.defineProperty(fS, "__esModule", { value: !0 }); + fS.default = void 0; + var Htr = "00000000-0000-0000-0000-000000000000"; + fS.default = Htr; + }); + var vDe = N((mS) => { + "use strict"; + _(); + x(); + Object.defineProperty(mS, "__esModule", { value: !0 }); + mS.default = void 0; + var ztr = jtr(B5()); + function jtr(r) { + return r && r.__esModule ? r : { default: r }; + } + function Ktr(r) { + if (!(0, ztr.default)(r)) throw TypeError("Invalid UUID"); + return parseInt(r.slice(14, 15), 16); + } + var Vtr = Ktr; + mS.default = Vtr; + }); + var tz = N((Ud) => { + "use strict"; + _(); + x(); + Object.defineProperty(Ud, "__esModule", { value: !0 }); + Object.defineProperty(Ud, "NIL", { + enumerable: !0, + get: function () { + return Ztr.default; + }, + }); + Object.defineProperty(Ud, "parse", { + enumerable: !0, + get: function () { + return trr.default; + }, + }); + Object.defineProperty(Ud, "stringify", { + enumerable: !0, + get: function () { + return err.default; + }, + }); + Object.defineProperty(Ud, "v1", { + enumerable: !0, + get: function () { + return Gtr.default; + }, + }); + Object.defineProperty(Ud, "v3", { + enumerable: !0, + get: function () { + return Ytr.default; + }, + }); + Object.defineProperty(Ud, "v4", { + enumerable: !0, + get: function () { + return $tr.default; + }, + }); + Object.defineProperty(Ud, "v5", { + enumerable: !0, + get: function () { + return Jtr.default; + }, + }); + Object.defineProperty(Ud, "validate", { + enumerable: !0, + get: function () { + return Xtr.default; + }, + }); + Object.defineProperty(Ud, "version", { + enumerable: !0, + get: function () { + return Qtr.default; + }, + }); + var Gtr = xf(aDe()), + Ytr = xf(lDe()), + $tr = xf(fDe()), + Jtr = xf(gDe()), + Ztr = xf(bDe()), + Qtr = xf(vDe()), + Xtr = xf(B5()), + err = xf(O5()), + trr = xf(QH()); + function xf(r) { + return r && r.__esModule ? r : { default: r }; + } + }); + var CDe = N((vi) => { + "use strict"; + _(); + x(); + Object.defineProperty(vi, "__esModule", { value: !0 }); + var rrr = vn(), + nrr = VH(), + arr = tz(); + function wDe(r) { + return r && r.__esModule ? r : { default: r }; + } + var rz = wDe(rrr), + irr = wDe(nrr); + function srr(r, e) { + if (typeof r != "object" || r === null) return r; + var t = r[Symbol.toPrimitive]; + if (t !== void 0) { + var n = t.call(r, e || "default"); + if (typeof n != "object") return n; + throw new TypeError("@@toPrimitive must return a primitive value."); + } + return (e === "string" ? String : Number)(r); + } + function orr(r) { + var e = srr(r, "string"); + return typeof e == "symbol" ? e : String(e); + } + function Pg(r, e, t) { + return ( + (e = orr(e)), + e in r + ? Object.defineProperty(r, e, { + value: t, + enumerable: !0, + configurable: !0, + writable: !0, + }) + : (r[e] = t), + r + ); + } + var L5 = { + "ipfs://": [ + "https://gateway.ipfscdn.io/ipfs/", + "https://cloudflare-ipfs.com/ipfs/", + "https://ipfs.io/ipfs/", + ], + }, + _De = "https://upload.nftlabs.co", + nz = "https://api.pinata.cloud/pinning/pinFileToIPFS"; + function xDe(r) { + let e = { ...r, ...L5 }; + for (let t of Object.keys(L5)) + if (r && r[t]) { + let n = r[t].map((a) => a.replace(/\/$/, "") + "/"); + e[t] = [...n, ...L5[t]]; + } + return e; + } + function az() { + return typeof window < "u"; + } + function iw(r) { + return M.File && r instanceof File; + } + function Tf(r) { + return M.Buffer && r instanceof P.Buffer; + } + function D5(r) { + return !!( + r && + r.name && + r.data && + typeof r.name == "string" && + (typeof r.data == "string" || Tf(r.data)) + ); + } + function sw(r) { + return iw(r) || Tf(r) || D5(r); + } + function TDe(r, e) { + if (iw(r) && iw(e)) { + if ( + r.name === e.name && + r.lastModified === e.lastModified && + r.size === e.size + ) + return !0; + } else { + if (Tf(r) && Tf(e)) return r.equals(e); + if (D5(r) && D5(e) && r.name === e.name) { + if (typeof r.data == "string" && typeof e.data == "string") + return r.data === e.data; + if (Tf(r.data) && Tf(e.data)) return r.data.equals(e.data); + } + } + return !1; + } + function EDe(r, e) { + for (let t of Object.keys(e)) + for (let n of e[t]) if (r.startsWith(n)) return r.replace(n, t); + return r; + } + function _S(r, e) { + let t = + arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 0, + n = Object.keys(e).find((i) => r.startsWith(i)), + a = n ? e[n] : []; + if (!((!n && t > 0) || (n && t >= a.length))) + return n ? r.replace(n, a[t]) : r; + } + function yS(r, e) { + return typeof r == "string" + ? EDe(r, e) + : typeof r == "object" + ? !r || sw(r) + ? r + : Array.isArray(r) + ? r.map((t) => yS(t, e)) + : Object.fromEntries( + Object.entries(r).map((t) => { + let [n, a] = t; + return [n, yS(a, e)]; + }) + ) + : r; + } + function q5(r, e) { + return typeof r == "string" + ? _S(r, e) + : typeof r == "object" + ? !r || sw(r) + ? r + : Array.isArray(r) + ? r.map((t) => q5(t, e)) + : Object.fromEntries( + Object.entries(r).map((t) => { + let [n, a] = t; + return [n, q5(a, e)]; + }) + ) + : r; + } + function gS(r) { + let e = + arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : []; + if (sw(r)) return e.push(r), e; + if (typeof r == "object") { + if (!r) return e; + Array.isArray(r) + ? r.forEach((t) => gS(t, e)) + : Object.keys(r).map((t) => gS(r[t], e)); + } + return e; + } + function bS(r, e) { + if (sw(r)) { + if (e.length) return (r = e.shift()), r; + console.warn("Not enough URIs to replace all files in object."); + } + return typeof r == "object" + ? r && + (Array.isArray(r) + ? r.map((t) => bS(t, e)) + : Object.fromEntries( + Object.entries(r).map((t) => { + let [n, a] = t; + return [n, bS(a, e)]; + }) + )) + : r; + } + var vS = class { + async download(e, t) { + let n = + arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 0; + if (n > 3) + throw new Error( + "[FAILED_TO_DOWNLOAD_ERROR] Failed to download from URI - too many attempts failed." + ); + let a = _S(e, t, n); + if (!a) + throw new Error( + "[FAILED_TO_DOWNLOAD_ERROR] Unable to download from URI - all gateway URLs failed to respond." + ); + let i = await rz.default(a); + return i.status >= 500 || i.status === 403 || i.status === 408 + ? (console.warn( + `Request to ${a} failed with status ${i.status} - ${i.statusText}` + ), + this.download(e, t, n + 1)) + : i; + } + }, + wS = class { + constructor(e) { + Pg(this, "uploadWithGatewayUrl", void 0), + (this.uploadWithGatewayUrl = e?.uploadWithGatewayUrl || !1); + } + async uploadBatch(e, t) { + if (t?.uploadWithoutDirectory && e.length > 1) + throw new Error( + "[UPLOAD_WITHOUT_DIRECTORY_ERROR] Cannot upload more than one file or object without directory!" + ); + let n = new irr.default(), + { form: a, fileNames: i } = this.buildFormData(n, e, t); + return az() + ? this.uploadBatchBrowser(a, i, t) + : this.uploadBatchNode(a, i, t); + } + async getUploadToken() { + let e = await rz.default(`${_De}/grant`, { + method: "GET", + headers: { + "X-APP-NAME": S.env.CI ? "Storage SDK CI" : "Storage SDK", + }, + }); + if (!e.ok) throw new Error("Failed to get upload token"); + return await e.text(); + } + buildFormData(e, t, n) { + let a = new Map(), + i = []; + for (let c = 0; c < t.length; c++) { + let l = t[c], + d = "", + m = l; + if (iw(l)) + if (n?.rewriteFileNames) { + let C = ""; + if (l.name) { + let I = l.name.lastIndexOf("."); + I > -1 && (C = l.name.substring(I)); + } + d = `${c + n.rewriteFileNames.fileStartNumber}${C}`; + } else d = `${l.name}`; + else + D5(l) + ? ((m = l.data), + n?.rewriteFileNames + ? (d = `${c + n.rewriteFileNames.fileStartNumber}`) + : (d = `${l.name}`)) + : n?.rewriteFileNames + ? (d = `${c + n.rewriteFileNames.fileStartNumber}`) + : (d = `${c}`); + let w = n?.uploadWithoutDirectory ? "files" : `files/${d}`; + if (a.has(d)) { + if (TDe(a.get(d), l)) { + i.push(d); + continue; + } + throw new Error( + `[DUPLICATE_FILE_NAME_ERROR] File name ${d} was passed for more than one different file.` + ); + } + a.set(d, l), + i.push(d), + az() + ? e.append("file", new Blob([m]), w) + : e.append("file", m, { filepath: w }); + } + let s = { name: "Storage SDK", keyvalues: { ...n?.metadata } }; + return ( + e.append("pinataMetadata", JSON.stringify(s)), + n?.uploadWithoutDirectory && + e.append( + "pinataOptions", + JSON.stringify({ wrapWithDirectory: !1 }) + ), + { form: e, fileNames: i.map((c) => encodeURIComponent(c)) } + ); + } + async uploadBatchBrowser(e, t, n) { + let a = await this.getUploadToken(); + return new Promise((i, s) => { + let c = new XMLHttpRequest(), + l = setTimeout(() => { + c.abort(), + s( + new Error( + "Request to upload timed out! No upload progress received in 30s" + ) + ); + }, 3e4); + c.upload.addEventListener("loadstart", () => { + console.log(`[${Date.now()}] [IPFS] Started`); + }), + c.upload.addEventListener("progress", (d) => { + console.log(`[IPFS] Progress Event ${d.loaded}/${d.total}`), + clearTimeout(l), + d.loaded < d.total + ? (l = setTimeout(() => { + c.abort(), + s( + new Error( + "Request to upload timed out! No upload progress received in 30s" + ) + ); + }, 3e4)) + : console.log( + `[${Date.now()}] [IPFS] Uploaded files. Waiting for response.` + ), + d.lengthComputable && + n?.onProgress && + n?.onProgress({ progress: d.loaded, total: d.total }); + }), + c.addEventListener("load", () => { + if ( + (console.log(`[${Date.now()}] [IPFS] Load`), + clearTimeout(l), + c.status >= 200 && c.status < 300) + ) { + let d; + try { + d = JSON.parse(c.responseText); + } catch { + return s( + new Error("Failed to parse JSON from upload response") + ); + } + let m = d.IpfsHash; + if (!m) + throw new Error( + "Failed to get IPFS hash from upload response" + ); + return n?.uploadWithoutDirectory + ? i([`ipfs://${m}`]) + : i(t.map((w) => `ipfs://${m}/${w}`)); + } + return s( + new Error( + `Upload failed with status ${c.status} - ${c.responseText}` + ) + ); + }), + c.addEventListener( + "error", + () => ( + console.log("[IPFS] Load"), + clearTimeout(l), + (c.readyState !== 0 && c.readyState !== 4) || c.status === 0 + ? s( + new Error( + "This looks like a network error, the endpoint might be blocked by an internet provider or a firewall." + ) + ) + : s(new Error("Unknown upload error occured")) + ) + ), + c.open("POST", nz), + c.setRequestHeader("Authorization", `Bearer ${a}`), + c.send(e); + }); + } + async uploadBatchNode(e, t, n) { + let a = await this.getUploadToken(); + n?.onProgress && + console.warn( + "The onProgress option is only supported in the browser" + ); + let i = await rz.default(nz, { + method: "POST", + headers: { Authorization: `Bearer ${a}`, ...e.getHeaders() }, + body: e.getBuffer(), + }), + s = await i.json(); + if (!i.ok) + throw ( + (console.warn(s), new Error("Failed to upload files to IPFS")) + ); + let c = s.IpfsHash; + if (!c) throw new Error("Failed to upload files to IPFS"); + return n?.uploadWithoutDirectory + ? [`ipfs://${c}`] + : t.map((l) => `ipfs://${c}/${l}`); + } + }, + iz = class { + constructor(e) { + Pg(this, "uploader", void 0), + Pg(this, "downloader", void 0), + Pg(this, "gatewayUrls", void 0), + (this.uploader = e?.uploader || new wS()), + (this.downloader = e?.downloader || new vS()), + (this.gatewayUrls = xDe(e?.gatewayUrls)); + } + resolveScheme(e) { + return _S(e, this.gatewayUrls); + } + async download(e) { + return this.downloader.download(e, this.gatewayUrls); + } + async downloadJSON(e) { + let n = await (await this.download(e)).json(); + return q5(n, this.gatewayUrls); + } + async upload(e, t) { + let [n] = await this.uploadBatch([e], t); + return n; + } + async uploadBatch(e, t) { + if (((e = e.filter((i) => i !== void 0)), !e.length)) return []; + let n = e.map((i) => sw(i) || typeof i == "string").every((i) => !!i), + a = []; + if (n) a = await this.uploader.uploadBatch(e, t); + else { + let i = (await this.uploadAndReplaceFilesWithHashes(e, t)).map( + (s) => (typeof s == "string" ? s : JSON.stringify(s)) + ); + a = await this.uploader.uploadBatch(i, t); + } + return t?.uploadWithGatewayUrl || this.uploader.uploadWithGatewayUrl + ? a.map((i) => this.resolveScheme(i)) + : a; + } + async uploadAndReplaceFilesWithHashes(e, t) { + let n = e; + n = yS(n, this.gatewayUrls); + let a = gS(n); + if (a.length) { + let i = await this.uploader.uploadBatch(a, t); + n = bS(n, i); + } + return ( + (t?.uploadWithGatewayUrl || this.uploader.uploadWithGatewayUrl) && + (n = q5(n, this.gatewayUrls)), + n + ); + } + }, + sz = class { + constructor(e) { + Pg(this, "gatewayUrls", L5), + Pg(this, "storage", void 0), + (this.storage = e); + } + async download(e) { + let [t, n] = e.includes("mock://") + ? e.replace("mock://", "").split("/") + : e.replace("ipfs://", "").split("/"), + a = n ? this.storage[t][n] : this.storage[t]; + return { + async json() { + return Promise.resolve(JSON.parse(a)); + }, + async text() { + return Promise.resolve(a); + }, + }; + } + }, + oz = class { + constructor(e) { + Pg(this, "storage", void 0), (this.storage = e); + } + async uploadBatch(e, t) { + let n = arr.v4(), + a = []; + this.storage[n] = {}; + let i = t?.rewriteFileNames?.fileStartNumber || 0; + for (let s of e) { + let c; + if (iw(s)) c = await s.text(); + else if (Tf(s)) c = s.toString(); + else if (typeof s == "string") c = s; + else { + c = Tf(s.data) ? s.data.toString() : s.data; + let l = s.name ? s.name : `file_${i}`; + (this.storage[n][l] = c), a.push(`mock://${n}/${l}`); + continue; + } + (this.storage[n][i.toString()] = c), + a.push(`mock://${n}/${i}`), + (i += 1); + } + return a; + } + }; + vi.DEFAULT_GATEWAY_URLS = L5; + vi.IpfsUploader = wS; + vi.MockDownloader = sz; + vi.MockUploader = oz; + vi.PINATA_IPFS_URL = nz; + vi.StorageDownloader = vS; + vi.TW_IPFS_SERVER_URL = _De; + vi.ThirdwebStorage = iz; + vi.extractObjectFiles = gS; + vi.isBrowser = az; + vi.isBufferInstance = Tf; + vi.isBufferOrStringWithName = D5; + vi.isFileBufferOrStringEqual = TDe; + vi.isFileInstance = iw; + vi.isFileOrBuffer = sw; + vi.prepareGatewayUrls = xDe; + vi.replaceGatewayUrlWithScheme = EDe; + vi.replaceObjectFilesWithUris = bS; + vi.replaceObjectGatewayUrlsWithSchemes = yS; + vi.replaceObjectSchemesWithGatewayUrls = q5; + vi.replaceSchemeWithGatewayUrl = _S; + }); + var PDe = N((wi) => { + "use strict"; + _(); + x(); + Object.defineProperty(wi, "__esModule", { value: !0 }); + var crr = vn(), + urr = VH(), + lrr = tz(); + function IDe(r) { + return r && r.__esModule ? r : { default: r }; + } + var cz = IDe(crr), + drr = IDe(urr); + function prr(r, e) { + if (typeof r != "object" || r === null) return r; + var t = r[Symbol.toPrimitive]; + if (t !== void 0) { + var n = t.call(r, e || "default"); + if (typeof n != "object") return n; + throw new TypeError("@@toPrimitive must return a primitive value."); + } + return (e === "string" ? String : Number)(r); + } + function hrr(r) { + var e = prr(r, "string"); + return typeof e == "symbol" ? e : String(e); + } + function Rg(r, e, t) { + return ( + (e = hrr(e)), + e in r + ? Object.defineProperty(r, e, { + value: t, + enumerable: !0, + configurable: !0, + writable: !0, + }) + : (r[e] = t), + r + ); + } + var F5 = { + "ipfs://": [ + "https://gateway.ipfscdn.io/ipfs/", + "https://cloudflare-ipfs.com/ipfs/", + "https://ipfs.io/ipfs/", + ], + }, + ADe = "https://upload.nftlabs.co", + uz = "https://api.pinata.cloud/pinning/pinFileToIPFS"; + function kDe(r) { + let e = { ...r, ...F5 }; + for (let t of Object.keys(F5)) + if (r && r[t]) { + let n = r[t].map((a) => a.replace(/\/$/, "") + "/"); + e[t] = [...n, ...F5[t]]; + } + return e; + } + function lz() { + return typeof window < "u"; + } + function ow(r) { + return M.File && r instanceof File; + } + function Ef(r) { + return M.Buffer && r instanceof P.Buffer; + } + function W5(r) { + return !!( + r && + r.name && + r.data && + typeof r.name == "string" && + (typeof r.data == "string" || Ef(r.data)) + ); + } + function cw(r) { + return ow(r) || Ef(r) || W5(r); + } + function SDe(r, e) { + if (ow(r) && ow(e)) { + if ( + r.name === e.name && + r.lastModified === e.lastModified && + r.size === e.size + ) + return !0; + } else { + if (Ef(r) && Ef(e)) return r.equals(e); + if (W5(r) && W5(e) && r.name === e.name) { + if (typeof r.data == "string" && typeof e.data == "string") + return r.data === e.data; + if (Ef(r.data) && Ef(e.data)) return r.data.equals(e.data); + } + } + return !1; + } + function MDe(r, e) { + for (let t of Object.keys(e)) + for (let n of e[t]) if (r.startsWith(n)) return r.replace(n, t); + return r; + } + function AS(r, e) { + let t = + arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 0, + n = Object.keys(e).find((i) => r.startsWith(i)), + a = n ? e[n] : []; + if (!((!n && t > 0) || (n && t >= a.length))) + return n ? r.replace(n, a[t]) : r; + } + function xS(r, e) { + return typeof r == "string" + ? MDe(r, e) + : typeof r == "object" + ? !r || cw(r) + ? r + : Array.isArray(r) + ? r.map((t) => xS(t, e)) + : Object.fromEntries( + Object.entries(r).map((t) => { + let [n, a] = t; + return [n, xS(a, e)]; + }) + ) + : r; + } + function U5(r, e) { + return typeof r == "string" + ? AS(r, e) + : typeof r == "object" + ? !r || cw(r) + ? r + : Array.isArray(r) + ? r.map((t) => U5(t, e)) + : Object.fromEntries( + Object.entries(r).map((t) => { + let [n, a] = t; + return [n, U5(a, e)]; + }) + ) + : r; + } + function TS(r) { + let e = + arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : []; + if (cw(r)) return e.push(r), e; + if (typeof r == "object") { + if (!r) return e; + Array.isArray(r) + ? r.forEach((t) => TS(t, e)) + : Object.keys(r).map((t) => TS(r[t], e)); + } + return e; + } + function ES(r, e) { + if (cw(r)) { + if (e.length) return (r = e.shift()), r; + console.warn("Not enough URIs to replace all files in object."); + } + return typeof r == "object" + ? r && + (Array.isArray(r) + ? r.map((t) => ES(t, e)) + : Object.fromEntries( + Object.entries(r).map((t) => { + let [n, a] = t; + return [n, ES(a, e)]; + }) + )) + : r; + } + var CS = class { + async download(e, t) { + let n = + arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 0; + if (n > 3) + throw new Error( + "[FAILED_TO_DOWNLOAD_ERROR] Failed to download from URI - too many attempts failed." + ); + let a = AS(e, t, n); + if (!a) + throw new Error( + "[FAILED_TO_DOWNLOAD_ERROR] Unable to download from URI - all gateway URLs failed to respond." + ); + let i = await cz.default(a); + return i.status >= 500 || i.status === 403 || i.status === 408 + ? (console.warn( + `Request to ${a} failed with status ${i.status} - ${i.statusText}` + ), + this.download(e, t, n + 1)) + : i; + } + }, + IS = class { + constructor(e) { + Rg(this, "uploadWithGatewayUrl", void 0), + (this.uploadWithGatewayUrl = e?.uploadWithGatewayUrl || !1); + } + async uploadBatch(e, t) { + if (t?.uploadWithoutDirectory && e.length > 1) + throw new Error( + "[UPLOAD_WITHOUT_DIRECTORY_ERROR] Cannot upload more than one file or object without directory!" + ); + let n = new drr.default(), + { form: a, fileNames: i } = this.buildFormData(n, e, t); + return lz() + ? this.uploadBatchBrowser(a, i, t) + : this.uploadBatchNode(a, i, t); + } + async getUploadToken() { + let e = await cz.default(`${ADe}/grant`, { + method: "GET", + headers: { + "X-APP-NAME": + S.env.NODE_ENV === "test" || !!S.env.CI + ? "Storage SDK CI" + : "Storage SDK", + }, + }); + if (!e.ok) throw new Error("Failed to get upload token"); + return await e.text(); + } + buildFormData(e, t, n) { + let a = new Map(), + i = []; + for (let c = 0; c < t.length; c++) { + let l = t[c], + d = "", + m = l; + if (ow(l)) + if (n?.rewriteFileNames) { + let C = ""; + if (l.name) { + let I = l.name.lastIndexOf("."); + I > -1 && (C = l.name.substring(I)); + } + d = `${c + n.rewriteFileNames.fileStartNumber}${C}`; + } else d = `${l.name}`; + else + W5(l) + ? ((m = l.data), + n?.rewriteFileNames + ? (d = `${c + n.rewriteFileNames.fileStartNumber}`) + : (d = `${l.name}`)) + : n?.rewriteFileNames + ? (d = `${c + n.rewriteFileNames.fileStartNumber}`) + : (d = `${c}`); + let w = n?.uploadWithoutDirectory ? "files" : `files/${d}`; + if (a.has(d)) { + if (SDe(a.get(d), l)) { + i.push(d); + continue; + } + throw new Error( + `[DUPLICATE_FILE_NAME_ERROR] File name ${d} was passed for more than one different file.` + ); + } + a.set(d, l), + i.push(d), + lz() + ? e.append("file", new Blob([m]), w) + : e.append("file", m, { filepath: w }); + } + let s = { name: "Storage SDK", keyvalues: { ...n?.metadata } }; + return ( + e.append("pinataMetadata", JSON.stringify(s)), + n?.uploadWithoutDirectory && + e.append( + "pinataOptions", + JSON.stringify({ wrapWithDirectory: !1 }) + ), + { form: e, fileNames: i.map((c) => encodeURIComponent(c)) } + ); + } + async uploadBatchBrowser(e, t, n) { + let a = await this.getUploadToken(); + return new Promise((i, s) => { + let c = new XMLHttpRequest(), + l = setTimeout(() => { + c.abort(), + s( + new Error( + "Request to upload timed out! No upload progress received in 30s" + ) + ); + }, 3e4); + c.upload.addEventListener("loadstart", () => { + console.log(`[${Date.now()}] [IPFS] Started`); + }), + c.upload.addEventListener("progress", (d) => { + console.log(`[IPFS] Progress Event ${d.loaded}/${d.total}`), + clearTimeout(l), + d.loaded < d.total + ? (l = setTimeout(() => { + c.abort(), + s( + new Error( + "Request to upload timed out! No upload progress received in 30s" + ) + ); + }, 3e4)) + : console.log( + `[${Date.now()}] [IPFS] Uploaded files. Waiting for response.` + ), + d.lengthComputable && + n?.onProgress && + n?.onProgress({ progress: d.loaded, total: d.total }); + }), + c.addEventListener("load", () => { + if ( + (console.log(`[${Date.now()}] [IPFS] Load`), + clearTimeout(l), + c.status >= 200 && c.status < 300) + ) { + let d; + try { + d = JSON.parse(c.responseText); + } catch { + return s( + new Error("Failed to parse JSON from upload response") + ); + } + let m = d.IpfsHash; + if (!m) + throw new Error( + "Failed to get IPFS hash from upload response" + ); + return n?.uploadWithoutDirectory + ? i([`ipfs://${m}`]) + : i(t.map((w) => `ipfs://${m}/${w}`)); + } + return s( + new Error( + `Upload failed with status ${c.status} - ${c.responseText}` + ) + ); + }), + c.addEventListener( + "error", + () => ( + console.log("[IPFS] Load"), + clearTimeout(l), + (c.readyState !== 0 && c.readyState !== 4) || c.status === 0 + ? s( + new Error( + "This looks like a network error, the endpoint might be blocked by an internet provider or a firewall." + ) + ) + : s(new Error("Unknown upload error occured")) + ) + ), + c.open("POST", uz), + c.setRequestHeader("Authorization", `Bearer ${a}`), + c.send(e); + }); + } + async uploadBatchNode(e, t, n) { + let a = await this.getUploadToken(); + n?.onProgress && + console.warn( + "The onProgress option is only supported in the browser" + ); + let i = await cz.default(uz, { + method: "POST", + headers: { Authorization: `Bearer ${a}`, ...e.getHeaders() }, + body: e.getBuffer(), + }), + s = await i.json(); + if (!i.ok) + throw ( + (console.warn(s), new Error("Failed to upload files to IPFS")) + ); + let c = s.IpfsHash; + if (!c) throw new Error("Failed to upload files to IPFS"); + return n?.uploadWithoutDirectory + ? [`ipfs://${c}`] + : t.map((l) => `ipfs://${c}/${l}`); + } + }, + dz = class { + constructor(e) { + Rg(this, "uploader", void 0), + Rg(this, "downloader", void 0), + Rg(this, "gatewayUrls", void 0), + (this.uploader = e?.uploader || new IS()), + (this.downloader = e?.downloader || new CS()), + (this.gatewayUrls = kDe(e?.gatewayUrls)); + } + resolveScheme(e) { + return AS(e, this.gatewayUrls); + } + async download(e) { + return this.downloader.download(e, this.gatewayUrls); + } + async downloadJSON(e) { + let n = await (await this.download(e)).json(); + return U5(n, this.gatewayUrls); + } + async upload(e, t) { + let [n] = await this.uploadBatch([e], t); + return n; + } + async uploadBatch(e, t) { + if (((e = e.filter((i) => i !== void 0)), !e.length)) return []; + let n = e.map((i) => cw(i) || typeof i == "string").every((i) => !!i), + a = []; + if (n) a = await this.uploader.uploadBatch(e, t); + else { + let i = (await this.uploadAndReplaceFilesWithHashes(e, t)).map( + (s) => (typeof s == "string" ? s : JSON.stringify(s)) + ); + a = await this.uploader.uploadBatch(i, t); + } + return t?.uploadWithGatewayUrl || this.uploader.uploadWithGatewayUrl + ? a.map((i) => this.resolveScheme(i)) + : a; + } + async uploadAndReplaceFilesWithHashes(e, t) { + let n = e; + n = xS(n, this.gatewayUrls); + let a = TS(n); + if (a.length) { + let i = await this.uploader.uploadBatch(a, t); + n = ES(n, i); + } + return ( + (t?.uploadWithGatewayUrl || this.uploader.uploadWithGatewayUrl) && + (n = U5(n, this.gatewayUrls)), + n + ); + } + }, + pz = class { + constructor(e) { + Rg(this, "gatewayUrls", F5), + Rg(this, "storage", void 0), + (this.storage = e); + } + async download(e) { + let [t, n] = e.includes("mock://") + ? e.replace("mock://", "").split("/") + : e.replace("ipfs://", "").split("/"), + a = n ? this.storage[t][n] : this.storage[t]; + return { + async json() { + return Promise.resolve(JSON.parse(a)); + }, + async text() { + return Promise.resolve(a); + }, + }; + } + }, + hz = class { + constructor(e) { + Rg(this, "storage", void 0), (this.storage = e); + } + async uploadBatch(e, t) { + let n = lrr.v4(), + a = []; + this.storage[n] = {}; + let i = t?.rewriteFileNames?.fileStartNumber || 0; + for (let s of e) { + let c; + if (ow(s)) c = await s.text(); + else if (Ef(s)) c = s.toString(); + else if (typeof s == "string") c = s; + else { + c = Ef(s.data) ? s.data.toString() : s.data; + let l = s.name ? s.name : `file_${i}`; + (this.storage[n][l] = c), a.push(`mock://${n}/${l}`); + continue; + } + (this.storage[n][i.toString()] = c), + a.push(`mock://${n}/${i}`), + (i += 1); + } + return a; + } + }; + wi.DEFAULT_GATEWAY_URLS = F5; + wi.IpfsUploader = IS; + wi.MockDownloader = pz; + wi.MockUploader = hz; + wi.PINATA_IPFS_URL = uz; + wi.StorageDownloader = CS; + wi.TW_IPFS_SERVER_URL = ADe; + wi.ThirdwebStorage = dz; + wi.extractObjectFiles = TS; + wi.isBrowser = lz; + wi.isBufferInstance = Ef; + wi.isBufferOrStringWithName = W5; + wi.isFileBufferOrStringEqual = SDe; + wi.isFileInstance = ow; + wi.isFileOrBuffer = cw; + wi.prepareGatewayUrls = kDe; + wi.replaceGatewayUrlWithScheme = MDe; + wi.replaceObjectFilesWithUris = ES; + wi.replaceObjectGatewayUrlsWithSchemes = xS; + wi.replaceObjectSchemesWithGatewayUrls = U5; + wi.replaceSchemeWithGatewayUrl = AS; + }); + var An = N((Tan, fz) => { + "use strict"; + _(); + x(); + S.env.NODE_ENV === "production" + ? (fz.exports = CDe()) + : (fz.exports = PDe()); + }); + var Sa = N((Ian, frr) => { + frr.exports = [ + { + inputs: [], + name: "decimals", + outputs: [{ internalType: "uint8", name: "", type: "uint8" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "name", + outputs: [{ internalType: "string", name: "", type: "string" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "symbol", + outputs: [{ internalType: "string", name: "", type: "string" }], + stateMutability: "view", + type: "function", + }, + ]; + }); + var Ma = N((Aan, mrr) => { + mrr.exports = [ + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "bytes4", + name: "functionSelector", + type: "bytes4", + }, + { + indexed: !0, + internalType: "address", + name: "pluginAddress", + type: "address", + }, + ], + name: "PluginAdded", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "bytes4", + name: "functionSelector", + type: "bytes4", + }, + { + indexed: !0, + internalType: "address", + name: "pluginAddress", + type: "address", + }, + ], + name: "PluginRemoved", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "bytes4", + name: "functionSelector", + type: "bytes4", + }, + { + indexed: !0, + internalType: "string", + name: "functionSignature", + type: "string", + }, + { + indexed: !0, + internalType: "address", + name: "pluginAddress", + type: "address", + }, + ], + name: "PluginSet", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "bytes4", + name: "functionSelector", + type: "bytes4", + }, + { + indexed: !0, + internalType: "address", + name: "oldPluginAddress", + type: "address", + }, + { + indexed: !0, + internalType: "address", + name: "newPluginAddress", + type: "address", + }, + ], + name: "PluginUpdated", + type: "event", + }, + { stateMutability: "payable", type: "fallback" }, + { + inputs: [{ internalType: "bytes4", name: "_selector", type: "bytes4" }], + name: "_getPluginForFunction", + outputs: [{ internalType: "address", name: "", type: "address" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { + components: [ + { + internalType: "bytes4", + name: "functionSelector", + type: "bytes4", + }, + { + internalType: "string", + name: "functionSignature", + type: "string", + }, + { + internalType: "address", + name: "pluginAddress", + type: "address", + }, + ], + internalType: "struct IPluginMap.Plugin", + name: "_plugin", + type: "tuple", + }, + ], + name: "addPlugin", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "_pluginAddress", type: "address" }, + ], + name: "getAllFunctionsOfPlugin", + outputs: [ + { internalType: "bytes4[]", name: "registered", type: "bytes4[]" }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "getAllPlugins", + outputs: [ + { + components: [ + { + internalType: "bytes4", + name: "functionSelector", + type: "bytes4", + }, + { + internalType: "string", + name: "functionSignature", + type: "string", + }, + { + internalType: "address", + name: "pluginAddress", + type: "address", + }, + ], + internalType: "struct IPluginMap.Plugin[]", + name: "registered", + type: "tuple[]", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [{ internalType: "bytes4", name: "_selector", type: "bytes4" }], + name: "getPluginForFunction", + outputs: [{ internalType: "address", name: "", type: "address" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [{ internalType: "bytes[]", name: "data", type: "bytes[]" }], + name: "multicall", + outputs: [ + { internalType: "bytes[]", name: "results", type: "bytes[]" }, + ], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [], + name: "pluginMap", + outputs: [{ internalType: "address", name: "", type: "address" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [{ internalType: "bytes4", name: "_selector", type: "bytes4" }], + name: "removePlugin", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "bytes4", name: "interfaceId", type: "bytes4" }, + ], + name: "supportsInterface", + outputs: [{ internalType: "bool", name: "", type: "bool" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { + components: [ + { + internalType: "bytes4", + name: "functionSelector", + type: "bytes4", + }, + { + internalType: "string", + name: "functionSignature", + type: "string", + }, + { + internalType: "address", + name: "pluginAddress", + type: "address", + }, + ], + internalType: "struct IPluginMap.Plugin", + name: "_plugin", + type: "tuple", + }, + ], + name: "updatePlugin", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { stateMutability: "payable", type: "receive" }, + ]; + }); + var Pa = N((kan, yrr) => { + yrr.exports = [ + { + inputs: [], + name: "contractType", + outputs: [{ internalType: "bytes32", name: "", type: "bytes32" }], + stateMutability: "pure", + type: "function", + }, + { + inputs: [], + name: "contractURI", + outputs: [{ internalType: "string", name: "", type: "string" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "contractVersion", + outputs: [{ internalType: "uint8", name: "", type: "uint8" }], + stateMutability: "pure", + type: "function", + }, + { + inputs: [{ internalType: "string", name: "_uri", type: "string" }], + name: "setContractURI", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + ]; + }); + var BDe = N((San, RDe) => { + _(); + x(); + RDe.exports = function (e) { + for ( + var t = new P.Buffer(e.length), n = 0, a = e.length - 1; + n <= a; + ++n, --a + ) + (t[n] = e[a]), (t[a] = e[n]); + return t; + }; + }); + var wn = N((kS, NDe) => { + _(); + x(); + (function (r, e) { + typeof kS == "object" + ? (NDe.exports = kS = e()) + : typeof define == "function" && define.amd + ? define([], e) + : (r.CryptoJS = e()); + })(kS, function () { + var r = + r || + (function (e, t) { + var n = + Object.create || + (function () { + function O() {} + return function (D) { + var W; + return ( + (O.prototype = D), (W = new O()), (O.prototype = null), W + ); + }; + })(), + a = {}, + i = (a.lib = {}), + s = (i.Base = (function () { + return { + extend: function (O) { + var D = n(this); + return ( + O && D.mixIn(O), + (!D.hasOwnProperty("init") || this.init === D.init) && + (D.init = function () { + D.$super.init.apply(this, arguments); + }), + (D.init.prototype = D), + (D.$super = this), + D + ); + }, + create: function () { + var O = this.extend(); + return O.init.apply(O, arguments), O; + }, + init: function () {}, + mixIn: function (O) { + for (var D in O) O.hasOwnProperty(D) && (this[D] = O[D]); + O.hasOwnProperty("toString") && (this.toString = O.toString); + }, + clone: function () { + return this.init.prototype.extend(this); + }, + }; + })()), + c = (i.WordArray = s.extend({ + init: function (O, D) { + (O = this.words = O || []), + D != t ? (this.sigBytes = D) : (this.sigBytes = O.length * 4); + }, + toString: function (O) { + return (O || d).stringify(this); + }, + concat: function (O) { + var D = this.words, + W = O.words, + H = this.sigBytes, + j = O.sigBytes; + if ((this.clamp(), H % 4)) + for (var V = 0; V < j; V++) { + var te = (W[V >>> 2] >>> (24 - (V % 4) * 8)) & 255; + D[(H + V) >>> 2] |= te << (24 - ((H + V) % 4) * 8); + } + else + for (var V = 0; V < j; V += 4) D[(H + V) >>> 2] = W[V >>> 2]; + return (this.sigBytes += j), this; + }, + clamp: function () { + var O = this.words, + D = this.sigBytes; + (O[D >>> 2] &= 4294967295 << (32 - (D % 4) * 8)), + (O.length = e.ceil(D / 4)); + }, + clone: function () { + var O = s.clone.call(this); + return (O.words = this.words.slice(0)), O; + }, + random: function (O) { + for ( + var D = [], + W = function ($) { + var $ = $, + ae = 987654321, + Y = 4294967295; + return function () { + (ae = (36969 * (ae & 65535) + (ae >> 16)) & Y), + ($ = (18e3 * ($ & 65535) + ($ >> 16)) & Y); + var K = ((ae << 16) + $) & Y; + return ( + (K /= 4294967296), + (K += 0.5), + K * (e.random() > 0.5 ? 1 : -1) + ); + }; + }, + H = 0, + j; + H < O; + H += 4 + ) { + var V = W((j || e.random()) * 4294967296); + (j = V() * 987654071), D.push((V() * 4294967296) | 0); + } + return new c.init(D, O); + }, + })), + l = (a.enc = {}), + d = (l.Hex = { + stringify: function (O) { + for ( + var D = O.words, W = O.sigBytes, H = [], j = 0; + j < W; + j++ + ) { + var V = (D[j >>> 2] >>> (24 - (j % 4) * 8)) & 255; + H.push((V >>> 4).toString(16)), H.push((V & 15).toString(16)); + } + return H.join(""); + }, + parse: function (O) { + for (var D = O.length, W = [], H = 0; H < D; H += 2) + W[H >>> 3] |= + parseInt(O.substr(H, 2), 16) << (24 - (H % 8) * 4); + return new c.init(W, D / 2); + }, + }), + m = (l.Latin1 = { + stringify: function (O) { + for ( + var D = O.words, W = O.sigBytes, H = [], j = 0; + j < W; + j++ + ) { + var V = (D[j >>> 2] >>> (24 - (j % 4) * 8)) & 255; + H.push(String.fromCharCode(V)); + } + return H.join(""); + }, + parse: function (O) { + for (var D = O.length, W = [], H = 0; H < D; H++) + W[H >>> 2] |= (O.charCodeAt(H) & 255) << (24 - (H % 4) * 8); + return new c.init(W, D); + }, + }), + w = (l.Utf8 = { + stringify: function (O) { + try { + return decodeURIComponent(escape(m.stringify(O))); + } catch { + throw new Error("Malformed UTF-8 data"); + } + }, + parse: function (O) { + return m.parse(unescape(encodeURIComponent(O))); + }, + }), + C = (i.BufferedBlockAlgorithm = s.extend({ + reset: function () { + (this._data = new c.init()), (this._nDataBytes = 0); + }, + _append: function (O) { + typeof O == "string" && (O = w.parse(O)), + this._data.concat(O), + (this._nDataBytes += O.sigBytes); + }, + _process: function (O) { + var D = this._data, + W = D.words, + H = D.sigBytes, + j = this.blockSize, + V = j * 4, + te = H / V; + O + ? (te = e.ceil(te)) + : (te = e.max((te | 0) - this._minBufferSize, 0)); + var $ = te * j, + ae = e.min($ * 4, H); + if ($) { + for (var Y = 0; Y < $; Y += j) this._doProcessBlock(W, Y); + var K = W.splice(0, $); + D.sigBytes -= ae; + } + return new c.init(K, ae); + }, + clone: function () { + var O = s.clone.call(this); + return (O._data = this._data.clone()), O; + }, + _minBufferSize: 0, + })), + I = (i.Hasher = C.extend({ + cfg: s.extend(), + init: function (O) { + (this.cfg = this.cfg.extend(O)), this.reset(); + }, + reset: function () { + C.reset.call(this), this._doReset(); + }, + update: function (O) { + return this._append(O), this._process(), this; + }, + finalize: function (O) { + O && this._append(O); + var D = this._doFinalize(); + return D; + }, + blockSize: 512 / 32, + _createHelper: function (O) { + return function (D, W) { + return new O.init(W).finalize(D); + }; + }, + _createHmacHelper: function (O) { + return function (D, W) { + return new k.HMAC.init(O, W).finalize(D); + }; + }, + })), + k = (a.algo = {}); + return a; + })(Math); + return r; + }); + }); + var H5 = N((SS, ODe) => { + _(); + x(); + (function (r, e) { + typeof SS == "object" + ? (ODe.exports = SS = e(wn())) + : typeof define == "function" && define.amd + ? define(["./core"], e) + : e(r.CryptoJS); + })(SS, function (r) { + return ( + (function (e) { + var t = r, + n = t.lib, + a = n.WordArray, + i = n.Hasher, + s = t.algo, + c = [], + l = []; + (function () { + function w(O) { + for (var D = e.sqrt(O), W = 2; W <= D; W++) + if (!(O % W)) return !1; + return !0; + } + function C(O) { + return ((O - (O | 0)) * 4294967296) | 0; + } + for (var I = 2, k = 0; k < 64; ) + w(I) && + (k < 8 && (c[k] = C(e.pow(I, 1 / 2))), + (l[k] = C(e.pow(I, 1 / 3))), + k++), + I++; + })(); + var d = [], + m = (s.SHA256 = i.extend({ + _doReset: function () { + this._hash = new a.init(c.slice(0)); + }, + _doProcessBlock: function (w, C) { + for ( + var I = this._hash.words, + k = I[0], + O = I[1], + D = I[2], + W = I[3], + H = I[4], + j = I[5], + V = I[6], + te = I[7], + $ = 0; + $ < 64; + $++ + ) { + if ($ < 16) d[$] = w[C + $] | 0; + else { + var ae = d[$ - 15], + Y = + ((ae << 25) | (ae >>> 7)) ^ + ((ae << 14) | (ae >>> 18)) ^ + (ae >>> 3), + K = d[$ - 2], + g = + ((K << 15) | (K >>> 17)) ^ + ((K << 13) | (K >>> 19)) ^ + (K >>> 10); + d[$] = Y + d[$ - 7] + g + d[$ - 16]; + } + var o = (H & j) ^ (~H & V), + p = (k & O) ^ (k & D) ^ (O & D), + y = + ((k << 30) | (k >>> 2)) ^ + ((k << 19) | (k >>> 13)) ^ + ((k << 10) | (k >>> 22)), + h = + ((H << 26) | (H >>> 6)) ^ + ((H << 21) | (H >>> 11)) ^ + ((H << 7) | (H >>> 25)), + b = te + h + o + l[$] + d[$], + T = y + p; + (te = V), + (V = j), + (j = H), + (H = (W + b) | 0), + (W = D), + (D = O), + (O = k), + (k = (b + T) | 0); + } + (I[0] = (I[0] + k) | 0), + (I[1] = (I[1] + O) | 0), + (I[2] = (I[2] + D) | 0), + (I[3] = (I[3] + W) | 0), + (I[4] = (I[4] + H) | 0), + (I[5] = (I[5] + j) | 0), + (I[6] = (I[6] + V) | 0), + (I[7] = (I[7] + te) | 0); + }, + _doFinalize: function () { + var w = this._data, + C = w.words, + I = this._nDataBytes * 8, + k = w.sigBytes * 8; + return ( + (C[k >>> 5] |= 128 << (24 - (k % 32))), + (C[(((k + 64) >>> 9) << 4) + 14] = e.floor(I / 4294967296)), + (C[(((k + 64) >>> 9) << 4) + 15] = I), + (w.sigBytes = C.length * 4), + this._process(), + this._hash + ); + }, + clone: function () { + var w = i.clone.call(this); + return (w._hash = this._hash.clone()), w; + }, + })); + (t.SHA256 = i._createHelper(m)), + (t.HmacSHA256 = i._createHmacHelper(m)); + })(Math), + r.SHA256 + ); + }); + }); + var DDe = N((mz, LDe) => { + _(); + x(); + (function (r, e) { + typeof mz == "object" + ? (LDe.exports = e()) + : typeof define == "function" && define.amd + ? define(e) + : (r.treeify = e()); + })(mz, function () { + function r(a, i) { + var s = i ? "\u2514" : "\u251C"; + return a ? (s += "\u2500 ") : (s += "\u2500\u2500\u2510"), s; + } + function e(a, i) { + var s = []; + for (var c in a) + !a.hasOwnProperty(c) || (i && typeof a[c] == "function") || s.push(c); + return s; + } + function t(a, i, s, c, l, d, m) { + var w = "", + C = 0, + I, + k, + O = c.slice(0); + if ( + (O.push([i, s]) && + c.length > 0 && + (c.forEach(function (W, H) { + H > 0 && (w += (W[1] ? " " : "\u2502") + " "), + !k && W[0] === i && (k = !0); + }), + (w += r(a, s) + a), + l && (typeof i != "object" || i instanceof Date) && (w += ": " + i), + k && (w += " (circular ref.)"), + m(w)), + !k && typeof i == "object") + ) { + var D = e(i, d); + D.forEach(function (W) { + (I = ++C === D.length), t(W, i[W], I, O, l, d, m); + }); + } + } + var n = {}; + return ( + (n.asLines = function (a, i, s, c) { + var l = typeof s != "function" ? s : !1; + t(".", a, !1, [], i, l, c || s); + }), + (n.asTree = function (a, i, s) { + var c = ""; + return ( + t(".", a, !1, [], i, s, function (l) { + c += + l + + ` +`; + }), + c + ); + }), + n + ); + }); + }); + var z5 = N((MS, qDe) => { + _(); + x(); + (function (r, e) { + typeof MS == "object" + ? (qDe.exports = MS = e(wn())) + : typeof define == "function" && define.amd + ? define(["./core"], e) + : e(r.CryptoJS); + })(MS, function (r) { + return ( + (function (e) { + var t = r, + n = t.lib, + a = n.Base, + i = n.WordArray, + s = (t.x64 = {}), + c = (s.Word = a.extend({ + init: function (d, m) { + (this.high = d), (this.low = m); + }, + })), + l = (s.WordArray = a.extend({ + init: function (d, m) { + (d = this.words = d || []), + m != e ? (this.sigBytes = m) : (this.sigBytes = d.length * 8); + }, + toX32: function () { + for ( + var d = this.words, m = d.length, w = [], C = 0; + C < m; + C++ + ) { + var I = d[C]; + w.push(I.high), w.push(I.low); + } + return i.create(w, this.sigBytes); + }, + clone: function () { + for ( + var d = a.clone.call(this), + m = (d.words = this.words.slice(0)), + w = m.length, + C = 0; + C < w; + C++ + ) + m[C] = m[C].clone(); + return d; + }, + })); + })(), + r + ); + }); + }); + var WDe = N((PS, FDe) => { + _(); + x(); + (function (r, e) { + typeof PS == "object" + ? (FDe.exports = PS = e(wn())) + : typeof define == "function" && define.amd + ? define(["./core"], e) + : e(r.CryptoJS); + })(PS, function (r) { + return ( + (function () { + if (typeof ArrayBuffer == "function") { + var e = r, + t = e.lib, + n = t.WordArray, + a = n.init, + i = (n.init = function (s) { + if ( + (s instanceof ArrayBuffer && (s = new Uint8Array(s)), + (s instanceof Int8Array || + (typeof Uint8ClampedArray < "u" && + s instanceof Uint8ClampedArray) || + s instanceof Int16Array || + s instanceof Uint16Array || + s instanceof Int32Array || + s instanceof Uint32Array || + s instanceof Float32Array || + s instanceof Float64Array) && + (s = new Uint8Array(s.buffer, s.byteOffset, s.byteLength)), + s instanceof Uint8Array) + ) { + for (var c = s.byteLength, l = [], d = 0; d < c; d++) + l[d >>> 2] |= s[d] << (24 - (d % 4) * 8); + a.call(this, l, c); + } else a.apply(this, arguments); + }); + i.prototype = n; + } + })(), + r.lib.WordArray + ); + }); + }); + var HDe = N((RS, UDe) => { + _(); + x(); + (function (r, e) { + typeof RS == "object" + ? (UDe.exports = RS = e(wn())) + : typeof define == "function" && define.amd + ? define(["./core"], e) + : e(r.CryptoJS); + })(RS, function (r) { + return ( + (function () { + var e = r, + t = e.lib, + n = t.WordArray, + a = e.enc, + i = + (a.Utf16 = + a.Utf16BE = + { + stringify: function (c) { + for ( + var l = c.words, d = c.sigBytes, m = [], w = 0; + w < d; + w += 2 + ) { + var C = (l[w >>> 2] >>> (16 - (w % 4) * 8)) & 65535; + m.push(String.fromCharCode(C)); + } + return m.join(""); + }, + parse: function (c) { + for (var l = c.length, d = [], m = 0; m < l; m++) + d[m >>> 1] |= c.charCodeAt(m) << (16 - (m % 2) * 16); + return n.create(d, l * 2); + }, + }); + a.Utf16LE = { + stringify: function (c) { + for ( + var l = c.words, d = c.sigBytes, m = [], w = 0; + w < d; + w += 2 + ) { + var C = s((l[w >>> 2] >>> (16 - (w % 4) * 8)) & 65535); + m.push(String.fromCharCode(C)); + } + return m.join(""); + }, + parse: function (c) { + for (var l = c.length, d = [], m = 0; m < l; m++) + d[m >>> 1] |= s(c.charCodeAt(m) << (16 - (m % 2) * 16)); + return n.create(d, l * 2); + }, + }; + function s(c) { + return ((c << 8) & 4278255360) | ((c >>> 8) & 16711935); + } + })(), + r.enc.Utf16 + ); + }); + }); + var Bg = N((BS, zDe) => { + _(); + x(); + (function (r, e) { + typeof BS == "object" + ? (zDe.exports = BS = e(wn())) + : typeof define == "function" && define.amd + ? define(["./core"], e) + : e(r.CryptoJS); + })(BS, function (r) { + return ( + (function () { + var e = r, + t = e.lib, + n = t.WordArray, + a = e.enc, + i = (a.Base64 = { + stringify: function (c) { + var l = c.words, + d = c.sigBytes, + m = this._map; + c.clamp(); + for (var w = [], C = 0; C < d; C += 3) + for ( + var I = (l[C >>> 2] >>> (24 - (C % 4) * 8)) & 255, + k = (l[(C + 1) >>> 2] >>> (24 - ((C + 1) % 4) * 8)) & 255, + O = (l[(C + 2) >>> 2] >>> (24 - ((C + 2) % 4) * 8)) & 255, + D = (I << 16) | (k << 8) | O, + W = 0; + W < 4 && C + W * 0.75 < d; + W++ + ) + w.push(m.charAt((D >>> (6 * (3 - W))) & 63)); + var H = m.charAt(64); + if (H) for (; w.length % 4; ) w.push(H); + return w.join(""); + }, + parse: function (c) { + var l = c.length, + d = this._map, + m = this._reverseMap; + if (!m) { + m = this._reverseMap = []; + for (var w = 0; w < d.length; w++) m[d.charCodeAt(w)] = w; + } + var C = d.charAt(64); + if (C) { + var I = c.indexOf(C); + I !== -1 && (l = I); + } + return s(c, l, m); + }, + _map: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=", + }); + function s(c, l, d) { + for (var m = [], w = 0, C = 0; C < l; C++) + if (C % 4) { + var I = d[c.charCodeAt(C - 1)] << ((C % 4) * 2), + k = d[c.charCodeAt(C)] >>> (6 - (C % 4) * 2); + (m[w >>> 2] |= (I | k) << (24 - (w % 4) * 8)), w++; + } + return n.create(m, w); + } + })(), + r.enc.Base64 + ); + }); + }); + var Ng = N((NS, jDe) => { + _(); + x(); + (function (r, e) { + typeof NS == "object" + ? (jDe.exports = NS = e(wn())) + : typeof define == "function" && define.amd + ? define(["./core"], e) + : e(r.CryptoJS); + })(NS, function (r) { + return ( + (function (e) { + var t = r, + n = t.lib, + a = n.WordArray, + i = n.Hasher, + s = t.algo, + c = []; + (function () { + for (var I = 0; I < 64; I++) + c[I] = (e.abs(e.sin(I + 1)) * 4294967296) | 0; + })(); + var l = (s.MD5 = i.extend({ + _doReset: function () { + this._hash = new a.init([ + 1732584193, 4023233417, 2562383102, 271733878, + ]); + }, + _doProcessBlock: function (I, k) { + for (var O = 0; O < 16; O++) { + var D = k + O, + W = I[D]; + I[D] = + (((W << 8) | (W >>> 24)) & 16711935) | + (((W << 24) | (W >>> 8)) & 4278255360); + } + var H = this._hash.words, + j = I[k + 0], + V = I[k + 1], + te = I[k + 2], + $ = I[k + 3], + ae = I[k + 4], + Y = I[k + 5], + K = I[k + 6], + g = I[k + 7], + o = I[k + 8], + p = I[k + 9], + y = I[k + 10], + h = I[k + 11], + b = I[k + 12], + T = I[k + 13], + E = I[k + 14], + f = I[k + 15], + u = H[0], + v = H[1], + R = H[2], + A = H[3]; + (u = d(u, v, R, A, j, 7, c[0])), + (A = d(A, u, v, R, V, 12, c[1])), + (R = d(R, A, u, v, te, 17, c[2])), + (v = d(v, R, A, u, $, 22, c[3])), + (u = d(u, v, R, A, ae, 7, c[4])), + (A = d(A, u, v, R, Y, 12, c[5])), + (R = d(R, A, u, v, K, 17, c[6])), + (v = d(v, R, A, u, g, 22, c[7])), + (u = d(u, v, R, A, o, 7, c[8])), + (A = d(A, u, v, R, p, 12, c[9])), + (R = d(R, A, u, v, y, 17, c[10])), + (v = d(v, R, A, u, h, 22, c[11])), + (u = d(u, v, R, A, b, 7, c[12])), + (A = d(A, u, v, R, T, 12, c[13])), + (R = d(R, A, u, v, E, 17, c[14])), + (v = d(v, R, A, u, f, 22, c[15])), + (u = m(u, v, R, A, V, 5, c[16])), + (A = m(A, u, v, R, K, 9, c[17])), + (R = m(R, A, u, v, h, 14, c[18])), + (v = m(v, R, A, u, j, 20, c[19])), + (u = m(u, v, R, A, Y, 5, c[20])), + (A = m(A, u, v, R, y, 9, c[21])), + (R = m(R, A, u, v, f, 14, c[22])), + (v = m(v, R, A, u, ae, 20, c[23])), + (u = m(u, v, R, A, p, 5, c[24])), + (A = m(A, u, v, R, E, 9, c[25])), + (R = m(R, A, u, v, $, 14, c[26])), + (v = m(v, R, A, u, o, 20, c[27])), + (u = m(u, v, R, A, T, 5, c[28])), + (A = m(A, u, v, R, te, 9, c[29])), + (R = m(R, A, u, v, g, 14, c[30])), + (v = m(v, R, A, u, b, 20, c[31])), + (u = w(u, v, R, A, Y, 4, c[32])), + (A = w(A, u, v, R, o, 11, c[33])), + (R = w(R, A, u, v, h, 16, c[34])), + (v = w(v, R, A, u, E, 23, c[35])), + (u = w(u, v, R, A, V, 4, c[36])), + (A = w(A, u, v, R, ae, 11, c[37])), + (R = w(R, A, u, v, g, 16, c[38])), + (v = w(v, R, A, u, y, 23, c[39])), + (u = w(u, v, R, A, T, 4, c[40])), + (A = w(A, u, v, R, j, 11, c[41])), + (R = w(R, A, u, v, $, 16, c[42])), + (v = w(v, R, A, u, K, 23, c[43])), + (u = w(u, v, R, A, p, 4, c[44])), + (A = w(A, u, v, R, b, 11, c[45])), + (R = w(R, A, u, v, f, 16, c[46])), + (v = w(v, R, A, u, te, 23, c[47])), + (u = C(u, v, R, A, j, 6, c[48])), + (A = C(A, u, v, R, g, 10, c[49])), + (R = C(R, A, u, v, E, 15, c[50])), + (v = C(v, R, A, u, Y, 21, c[51])), + (u = C(u, v, R, A, b, 6, c[52])), + (A = C(A, u, v, R, $, 10, c[53])), + (R = C(R, A, u, v, y, 15, c[54])), + (v = C(v, R, A, u, V, 21, c[55])), + (u = C(u, v, R, A, o, 6, c[56])), + (A = C(A, u, v, R, f, 10, c[57])), + (R = C(R, A, u, v, K, 15, c[58])), + (v = C(v, R, A, u, T, 21, c[59])), + (u = C(u, v, R, A, ae, 6, c[60])), + (A = C(A, u, v, R, h, 10, c[61])), + (R = C(R, A, u, v, te, 15, c[62])), + (v = C(v, R, A, u, p, 21, c[63])), + (H[0] = (H[0] + u) | 0), + (H[1] = (H[1] + v) | 0), + (H[2] = (H[2] + R) | 0), + (H[3] = (H[3] + A) | 0); + }, + _doFinalize: function () { + var I = this._data, + k = I.words, + O = this._nDataBytes * 8, + D = I.sigBytes * 8; + k[D >>> 5] |= 128 << (24 - (D % 32)); + var W = e.floor(O / 4294967296), + H = O; + (k[(((D + 64) >>> 9) << 4) + 15] = + (((W << 8) | (W >>> 24)) & 16711935) | + (((W << 24) | (W >>> 8)) & 4278255360)), + (k[(((D + 64) >>> 9) << 4) + 14] = + (((H << 8) | (H >>> 24)) & 16711935) | + (((H << 24) | (H >>> 8)) & 4278255360)), + (I.sigBytes = (k.length + 1) * 4), + this._process(); + for (var j = this._hash, V = j.words, te = 0; te < 4; te++) { + var $ = V[te]; + V[te] = + ((($ << 8) | ($ >>> 24)) & 16711935) | + ((($ << 24) | ($ >>> 8)) & 4278255360); + } + return j; + }, + clone: function () { + var I = i.clone.call(this); + return (I._hash = this._hash.clone()), I; + }, + })); + function d(I, k, O, D, W, H, j) { + var V = I + ((k & O) | (~k & D)) + W + j; + return ((V << H) | (V >>> (32 - H))) + k; + } + function m(I, k, O, D, W, H, j) { + var V = I + ((k & D) | (O & ~D)) + W + j; + return ((V << H) | (V >>> (32 - H))) + k; + } + function w(I, k, O, D, W, H, j) { + var V = I + (k ^ O ^ D) + W + j; + return ((V << H) | (V >>> (32 - H))) + k; + } + function C(I, k, O, D, W, H, j) { + var V = I + (O ^ (k | ~D)) + W + j; + return ((V << H) | (V >>> (32 - H))) + k; + } + (t.MD5 = i._createHelper(l)), (t.HmacMD5 = i._createHmacHelper(l)); + })(Math), + r.MD5 + ); + }); + }); + var LS = N((OS, KDe) => { + _(); + x(); + (function (r, e) { + typeof OS == "object" + ? (KDe.exports = OS = e(wn())) + : typeof define == "function" && define.amd + ? define(["./core"], e) + : e(r.CryptoJS); + })(OS, function (r) { + return ( + (function () { + var e = r, + t = e.lib, + n = t.WordArray, + a = t.Hasher, + i = e.algo, + s = [], + c = (i.SHA1 = a.extend({ + _doReset: function () { + this._hash = new n.init([ + 1732584193, 4023233417, 2562383102, 271733878, 3285377520, + ]); + }, + _doProcessBlock: function (l, d) { + for ( + var m = this._hash.words, + w = m[0], + C = m[1], + I = m[2], + k = m[3], + O = m[4], + D = 0; + D < 80; + D++ + ) { + if (D < 16) s[D] = l[d + D] | 0; + else { + var W = s[D - 3] ^ s[D - 8] ^ s[D - 14] ^ s[D - 16]; + s[D] = (W << 1) | (W >>> 31); + } + var H = ((w << 5) | (w >>> 27)) + O + s[D]; + D < 20 + ? (H += ((C & I) | (~C & k)) + 1518500249) + : D < 40 + ? (H += (C ^ I ^ k) + 1859775393) + : D < 60 + ? (H += ((C & I) | (C & k) | (I & k)) - 1894007588) + : (H += (C ^ I ^ k) - 899497514), + (O = k), + (k = I), + (I = (C << 30) | (C >>> 2)), + (C = w), + (w = H); + } + (m[0] = (m[0] + w) | 0), + (m[1] = (m[1] + C) | 0), + (m[2] = (m[2] + I) | 0), + (m[3] = (m[3] + k) | 0), + (m[4] = (m[4] + O) | 0); + }, + _doFinalize: function () { + var l = this._data, + d = l.words, + m = this._nDataBytes * 8, + w = l.sigBytes * 8; + return ( + (d[w >>> 5] |= 128 << (24 - (w % 32))), + (d[(((w + 64) >>> 9) << 4) + 14] = Math.floor( + m / 4294967296 + )), + (d[(((w + 64) >>> 9) << 4) + 15] = m), + (l.sigBytes = d.length * 4), + this._process(), + this._hash + ); + }, + clone: function () { + var l = a.clone.call(this); + return (l._hash = this._hash.clone()), l; + }, + })); + (e.SHA1 = a._createHelper(c)), (e.HmacSHA1 = a._createHmacHelper(c)); + })(), + r.SHA1 + ); + }); + }); + var GDe = N((DS, VDe) => { + _(); + x(); + (function (r, e, t) { + typeof DS == "object" + ? (VDe.exports = DS = e(wn(), H5())) + : typeof define == "function" && define.amd + ? define(["./core", "./sha256"], e) + : e(r.CryptoJS); + })(DS, function (r) { + return ( + (function () { + var e = r, + t = e.lib, + n = t.WordArray, + a = e.algo, + i = a.SHA256, + s = (a.SHA224 = i.extend({ + _doReset: function () { + this._hash = new n.init([ + 3238371032, 914150663, 812702999, 4144912697, 4290775857, + 1750603025, 1694076839, 3204075428, + ]); + }, + _doFinalize: function () { + var c = i._doFinalize.call(this); + return (c.sigBytes -= 4), c; + }, + })); + (e.SHA224 = i._createHelper(s)), + (e.HmacSHA224 = i._createHmacHelper(s)); + })(), + r.SHA224 + ); + }); + }); + var yz = N((qS, YDe) => { + _(); + x(); + (function (r, e, t) { + typeof qS == "object" + ? (YDe.exports = qS = e(wn(), z5())) + : typeof define == "function" && define.amd + ? define(["./core", "./x64-core"], e) + : e(r.CryptoJS); + })(qS, function (r) { + return ( + (function () { + var e = r, + t = e.lib, + n = t.Hasher, + a = e.x64, + i = a.Word, + s = a.WordArray, + c = e.algo; + function l() { + return i.create.apply(i, arguments); + } + var d = [ + l(1116352408, 3609767458), + l(1899447441, 602891725), + l(3049323471, 3964484399), + l(3921009573, 2173295548), + l(961987163, 4081628472), + l(1508970993, 3053834265), + l(2453635748, 2937671579), + l(2870763221, 3664609560), + l(3624381080, 2734883394), + l(310598401, 1164996542), + l(607225278, 1323610764), + l(1426881987, 3590304994), + l(1925078388, 4068182383), + l(2162078206, 991336113), + l(2614888103, 633803317), + l(3248222580, 3479774868), + l(3835390401, 2666613458), + l(4022224774, 944711139), + l(264347078, 2341262773), + l(604807628, 2007800933), + l(770255983, 1495990901), + l(1249150122, 1856431235), + l(1555081692, 3175218132), + l(1996064986, 2198950837), + l(2554220882, 3999719339), + l(2821834349, 766784016), + l(2952996808, 2566594879), + l(3210313671, 3203337956), + l(3336571891, 1034457026), + l(3584528711, 2466948901), + l(113926993, 3758326383), + l(338241895, 168717936), + l(666307205, 1188179964), + l(773529912, 1546045734), + l(1294757372, 1522805485), + l(1396182291, 2643833823), + l(1695183700, 2343527390), + l(1986661051, 1014477480), + l(2177026350, 1206759142), + l(2456956037, 344077627), + l(2730485921, 1290863460), + l(2820302411, 3158454273), + l(3259730800, 3505952657), + l(3345764771, 106217008), + l(3516065817, 3606008344), + l(3600352804, 1432725776), + l(4094571909, 1467031594), + l(275423344, 851169720), + l(430227734, 3100823752), + l(506948616, 1363258195), + l(659060556, 3750685593), + l(883997877, 3785050280), + l(958139571, 3318307427), + l(1322822218, 3812723403), + l(1537002063, 2003034995), + l(1747873779, 3602036899), + l(1955562222, 1575990012), + l(2024104815, 1125592928), + l(2227730452, 2716904306), + l(2361852424, 442776044), + l(2428436474, 593698344), + l(2756734187, 3733110249), + l(3204031479, 2999351573), + l(3329325298, 3815920427), + l(3391569614, 3928383900), + l(3515267271, 566280711), + l(3940187606, 3454069534), + l(4118630271, 4000239992), + l(116418474, 1914138554), + l(174292421, 2731055270), + l(289380356, 3203993006), + l(460393269, 320620315), + l(685471733, 587496836), + l(852142971, 1086792851), + l(1017036298, 365543100), + l(1126000580, 2618297676), + l(1288033470, 3409855158), + l(1501505948, 4234509866), + l(1607167915, 987167468), + l(1816402316, 1246189591), + ], + m = []; + (function () { + for (var C = 0; C < 80; C++) m[C] = l(); + })(); + var w = (c.SHA512 = n.extend({ + _doReset: function () { + this._hash = new s.init([ + new i.init(1779033703, 4089235720), + new i.init(3144134277, 2227873595), + new i.init(1013904242, 4271175723), + new i.init(2773480762, 1595750129), + new i.init(1359893119, 2917565137), + new i.init(2600822924, 725511199), + new i.init(528734635, 4215389547), + new i.init(1541459225, 327033209), + ]); + }, + _doProcessBlock: function (C, I) { + for ( + var k = this._hash.words, + O = k[0], + D = k[1], + W = k[2], + H = k[3], + j = k[4], + V = k[5], + te = k[6], + $ = k[7], + ae = O.high, + Y = O.low, + K = D.high, + g = D.low, + o = W.high, + p = W.low, + y = H.high, + h = H.low, + b = j.high, + T = j.low, + E = V.high, + f = V.low, + u = te.high, + v = te.low, + R = $.high, + A = $.low, + L = ae, + G = Y, + U = K, + Z = g, + de = o, + ne = p, + pe = y, + lt = h, + fe = b, + ve = T, + vt = E, + we = f, + Ne = u, + kt = v, + Le = R, + ze = A, + It = 0; + It < 80; + It++ + ) { + var Se = m[It]; + if (It < 16) + var Ke = (Se.high = C[I + It * 2] | 0), + Et = (Se.low = C[I + It * 2 + 1] | 0); + else { + var Me = m[It - 15], + Ge = Me.high, + Dt = Me.low, + De = + ((Ge >>> 1) | (Dt << 31)) ^ + ((Ge >>> 8) | (Dt << 24)) ^ + (Ge >>> 7), + Ze = + ((Dt >>> 1) | (Ge << 31)) ^ + ((Dt >>> 8) | (Ge << 24)) ^ + ((Dt >>> 7) | (Ge << 25)), + Wt = m[It - 2], + ke = Wt.high, + $e = Wt.low, + Ht = + ((ke >>> 19) | ($e << 13)) ^ + ((ke << 3) | ($e >>> 29)) ^ + (ke >>> 6), + Pe = + (($e >>> 19) | (ke << 13)) ^ + (($e << 3) | (ke >>> 29)) ^ + (($e >>> 6) | (ke << 26)), + Je = m[It - 7], + zt = Je.high, + Re = Je.low, + Qe = m[It - 16], + jt = Qe.high, + Be = Qe.low, + Et = Ze + Re, + Ke = De + zt + (Et >>> 0 < Ze >>> 0 ? 1 : 0), + Et = Et + Pe, + Ke = Ke + Ht + (Et >>> 0 < Pe >>> 0 ? 1 : 0), + Et = Et + Be, + Ke = Ke + jt + (Et >>> 0 < Be >>> 0 ? 1 : 0); + (Se.high = Ke), (Se.low = Et); + } + var Xe = (fe & vt) ^ (~fe & Ne), + Ut = (ve & we) ^ (~ve & kt), + Ae = (L & U) ^ (L & de) ^ (U & de), + et = (G & Z) ^ (G & ne) ^ (Z & ne), + St = + ((L >>> 28) | (G << 4)) ^ + ((L << 30) | (G >>> 2)) ^ + ((L << 25) | (G >>> 7)), + Oe = + ((G >>> 28) | (L << 4)) ^ + ((G << 30) | (L >>> 2)) ^ + ((G << 25) | (L >>> 7)), + tt = + ((fe >>> 14) | (ve << 18)) ^ + ((fe >>> 18) | (ve << 14)) ^ + ((fe << 23) | (ve >>> 9)), + Kt = + ((ve >>> 14) | (fe << 18)) ^ + ((ve >>> 18) | (fe << 14)) ^ + ((ve << 23) | (fe >>> 9)), + qe = d[It], + rt = qe.high, + Vt = qe.low, + Ie = ze + Kt, + Ye = Le + tt + (Ie >>> 0 < ze >>> 0 ? 1 : 0), + Ie = Ie + Ut, + Ye = Ye + Xe + (Ie >>> 0 < Ut >>> 0 ? 1 : 0), + Ie = Ie + Vt, + Ye = Ye + rt + (Ie >>> 0 < Vt >>> 0 ? 1 : 0), + Ie = Ie + Et, + Ye = Ye + Ke + (Ie >>> 0 < Et >>> 0 ? 1 : 0), + Gt = Oe + et, + We = St + Ae + (Gt >>> 0 < Oe >>> 0 ? 1 : 0); + (Le = Ne), + (ze = kt), + (Ne = vt), + (kt = we), + (vt = fe), + (we = ve), + (ve = (lt + Ie) | 0), + (fe = (pe + Ye + (ve >>> 0 < lt >>> 0 ? 1 : 0)) | 0), + (pe = de), + (lt = ne), + (de = U), + (ne = Z), + (U = L), + (Z = G), + (G = (Ie + Gt) | 0), + (L = (Ye + We + (G >>> 0 < Ie >>> 0 ? 1 : 0)) | 0); + } + (Y = O.low = Y + G), + (O.high = ae + L + (Y >>> 0 < G >>> 0 ? 1 : 0)), + (g = D.low = g + Z), + (D.high = K + U + (g >>> 0 < Z >>> 0 ? 1 : 0)), + (p = W.low = p + ne), + (W.high = o + de + (p >>> 0 < ne >>> 0 ? 1 : 0)), + (h = H.low = h + lt), + (H.high = y + pe + (h >>> 0 < lt >>> 0 ? 1 : 0)), + (T = j.low = T + ve), + (j.high = b + fe + (T >>> 0 < ve >>> 0 ? 1 : 0)), + (f = V.low = f + we), + (V.high = E + vt + (f >>> 0 < we >>> 0 ? 1 : 0)), + (v = te.low = v + kt), + (te.high = u + Ne + (v >>> 0 < kt >>> 0 ? 1 : 0)), + (A = $.low = A + ze), + ($.high = R + Le + (A >>> 0 < ze >>> 0 ? 1 : 0)); + }, + _doFinalize: function () { + var C = this._data, + I = C.words, + k = this._nDataBytes * 8, + O = C.sigBytes * 8; + (I[O >>> 5] |= 128 << (24 - (O % 32))), + (I[(((O + 128) >>> 10) << 5) + 30] = Math.floor( + k / 4294967296 + )), + (I[(((O + 128) >>> 10) << 5) + 31] = k), + (C.sigBytes = I.length * 4), + this._process(); + var D = this._hash.toX32(); + return D; + }, + clone: function () { + var C = n.clone.call(this); + return (C._hash = this._hash.clone()), C; + }, + blockSize: 1024 / 32, + })); + (e.SHA512 = n._createHelper(w)), + (e.HmacSHA512 = n._createHmacHelper(w)); + })(), + r.SHA512 + ); + }); + }); + var JDe = N((FS, $De) => { + _(); + x(); + (function (r, e, t) { + typeof FS == "object" + ? ($De.exports = FS = e(wn(), z5(), yz())) + : typeof define == "function" && define.amd + ? define(["./core", "./x64-core", "./sha512"], e) + : e(r.CryptoJS); + })(FS, function (r) { + return ( + (function () { + var e = r, + t = e.x64, + n = t.Word, + a = t.WordArray, + i = e.algo, + s = i.SHA512, + c = (i.SHA384 = s.extend({ + _doReset: function () { + this._hash = new a.init([ + new n.init(3418070365, 3238371032), + new n.init(1654270250, 914150663), + new n.init(2438529370, 812702999), + new n.init(355462360, 4144912697), + new n.init(1731405415, 4290775857), + new n.init(2394180231, 1750603025), + new n.init(3675008525, 1694076839), + new n.init(1203062813, 3204075428), + ]); + }, + _doFinalize: function () { + var l = s._doFinalize.call(this); + return (l.sigBytes -= 16), l; + }, + })); + (e.SHA384 = s._createHelper(c)), + (e.HmacSHA384 = s._createHmacHelper(c)); + })(), + r.SHA384 + ); + }); + }); + var QDe = N((WS, ZDe) => { + _(); + x(); + (function (r, e, t) { + typeof WS == "object" + ? (ZDe.exports = WS = e(wn(), z5())) + : typeof define == "function" && define.amd + ? define(["./core", "./x64-core"], e) + : e(r.CryptoJS); + })(WS, function (r) { + return ( + (function (e) { + var t = r, + n = t.lib, + a = n.WordArray, + i = n.Hasher, + s = t.x64, + c = s.Word, + l = t.algo, + d = [], + m = [], + w = []; + (function () { + for (var k = 1, O = 0, D = 0; D < 24; D++) { + d[k + 5 * O] = (((D + 1) * (D + 2)) / 2) % 64; + var W = O % 5, + H = (2 * k + 3 * O) % 5; + (k = W), (O = H); + } + for (var k = 0; k < 5; k++) + for (var O = 0; O < 5; O++) + m[k + 5 * O] = O + ((2 * k + 3 * O) % 5) * 5; + for (var j = 1, V = 0; V < 24; V++) { + for (var te = 0, $ = 0, ae = 0; ae < 7; ae++) { + if (j & 1) { + var Y = (1 << ae) - 1; + Y < 32 ? ($ ^= 1 << Y) : (te ^= 1 << (Y - 32)); + } + j & 128 ? (j = (j << 1) ^ 113) : (j <<= 1); + } + w[V] = c.create(te, $); + } + })(); + var C = []; + (function () { + for (var k = 0; k < 25; k++) C[k] = c.create(); + })(); + var I = (l.SHA3 = i.extend({ + cfg: i.cfg.extend({ outputLength: 512 }), + _doReset: function () { + for (var k = (this._state = []), O = 0; O < 25; O++) + k[O] = new c.init(); + this.blockSize = (1600 - 2 * this.cfg.outputLength) / 32; + }, + _doProcessBlock: function (k, O) { + for ( + var D = this._state, W = this.blockSize / 2, H = 0; + H < W; + H++ + ) { + var j = k[O + 2 * H], + V = k[O + 2 * H + 1]; + (j = + (((j << 8) | (j >>> 24)) & 16711935) | + (((j << 24) | (j >>> 8)) & 4278255360)), + (V = + (((V << 8) | (V >>> 24)) & 16711935) | + (((V << 24) | (V >>> 8)) & 4278255360)); + var te = D[H]; + (te.high ^= V), (te.low ^= j); + } + for (var $ = 0; $ < 24; $++) { + for (var ae = 0; ae < 5; ae++) { + for (var Y = 0, K = 0, g = 0; g < 5; g++) { + var te = D[ae + 5 * g]; + (Y ^= te.high), (K ^= te.low); + } + var o = C[ae]; + (o.high = Y), (o.low = K); + } + for (var ae = 0; ae < 5; ae++) + for ( + var p = C[(ae + 4) % 5], + y = C[(ae + 1) % 5], + h = y.high, + b = y.low, + Y = p.high ^ ((h << 1) | (b >>> 31)), + K = p.low ^ ((b << 1) | (h >>> 31)), + g = 0; + g < 5; + g++ + ) { + var te = D[ae + 5 * g]; + (te.high ^= Y), (te.low ^= K); + } + for (var T = 1; T < 25; T++) { + var te = D[T], + E = te.high, + f = te.low, + u = d[T]; + if (u < 32) + var Y = (E << u) | (f >>> (32 - u)), + K = (f << u) | (E >>> (32 - u)); + else + var Y = (f << (u - 32)) | (E >>> (64 - u)), + K = (E << (u - 32)) | (f >>> (64 - u)); + var v = C[m[T]]; + (v.high = Y), (v.low = K); + } + var R = C[0], + A = D[0]; + (R.high = A.high), (R.low = A.low); + for (var ae = 0; ae < 5; ae++) + for (var g = 0; g < 5; g++) { + var T = ae + 5 * g, + te = D[T], + L = C[T], + G = C[((ae + 1) % 5) + 5 * g], + U = C[((ae + 2) % 5) + 5 * g]; + (te.high = L.high ^ (~G.high & U.high)), + (te.low = L.low ^ (~G.low & U.low)); + } + var te = D[0], + Z = w[$]; + (te.high ^= Z.high), (te.low ^= Z.low); + } + }, + _doFinalize: function () { + var k = this._data, + O = k.words, + D = this._nDataBytes * 8, + W = k.sigBytes * 8, + H = this.blockSize * 32; + (O[W >>> 5] |= 1 << (24 - (W % 32))), + (O[((e.ceil((W + 1) / H) * H) >>> 5) - 1] |= 128), + (k.sigBytes = O.length * 4), + this._process(); + for ( + var j = this._state, + V = this.cfg.outputLength / 8, + te = V / 8, + $ = [], + ae = 0; + ae < te; + ae++ + ) { + var Y = j[ae], + K = Y.high, + g = Y.low; + (K = + (((K << 8) | (K >>> 24)) & 16711935) | + (((K << 24) | (K >>> 8)) & 4278255360)), + (g = + (((g << 8) | (g >>> 24)) & 16711935) | + (((g << 24) | (g >>> 8)) & 4278255360)), + $.push(g), + $.push(K); + } + return new a.init($, V); + }, + clone: function () { + for ( + var k = i.clone.call(this), + O = (k._state = this._state.slice(0)), + D = 0; + D < 25; + D++ + ) + O[D] = O[D].clone(); + return k; + }, + })); + (t.SHA3 = i._createHelper(I)), (t.HmacSHA3 = i._createHmacHelper(I)); + })(Math), + r.SHA3 + ); + }); + }); + var eqe = N((US, XDe) => { + _(); + x(); + (function (r, e) { + typeof US == "object" + ? (XDe.exports = US = e(wn())) + : typeof define == "function" && define.amd + ? define(["./core"], e) + : e(r.CryptoJS); + })(US, function (r) { + return ( + (function (e) { + var t = r, + n = t.lib, + a = n.WordArray, + i = n.Hasher, + s = t.algo, + c = a.create([ + 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 7, 4, 13, 1, + 10, 6, 15, 3, 12, 0, 9, 5, 2, 14, 11, 8, 3, 10, 14, 4, 9, 15, 8, + 1, 2, 7, 0, 6, 13, 11, 5, 12, 1, 9, 11, 10, 0, 8, 12, 4, 13, 3, 7, + 15, 14, 5, 6, 2, 4, 0, 5, 9, 7, 12, 2, 10, 14, 1, 3, 8, 11, 6, 15, + 13, + ]), + l = a.create([ + 5, 14, 7, 0, 9, 2, 11, 4, 13, 6, 15, 8, 1, 10, 3, 12, 6, 11, 3, 7, + 0, 13, 5, 10, 14, 15, 8, 12, 4, 9, 1, 2, 15, 5, 1, 3, 7, 14, 6, 9, + 11, 8, 12, 2, 10, 0, 4, 13, 8, 6, 4, 1, 3, 11, 15, 0, 5, 12, 2, + 13, 9, 7, 10, 14, 12, 15, 10, 4, 1, 5, 8, 7, 6, 2, 13, 14, 0, 3, + 9, 11, + ]), + d = a.create([ + 11, 14, 15, 12, 5, 8, 7, 9, 11, 13, 14, 15, 6, 7, 9, 8, 7, 6, 8, + 13, 11, 9, 7, 15, 7, 12, 15, 9, 11, 7, 13, 12, 11, 13, 6, 7, 14, + 9, 13, 15, 14, 8, 13, 6, 5, 12, 7, 5, 11, 12, 14, 15, 14, 15, 9, + 8, 9, 14, 5, 6, 8, 6, 5, 12, 9, 15, 5, 11, 6, 8, 13, 12, 5, 12, + 13, 14, 11, 8, 5, 6, + ]), + m = a.create([ + 8, 9, 9, 11, 13, 15, 15, 5, 7, 7, 8, 11, 14, 14, 12, 6, 9, 13, 15, + 7, 12, 8, 9, 11, 7, 7, 12, 7, 6, 15, 13, 11, 9, 7, 15, 11, 8, 6, + 6, 14, 12, 13, 5, 14, 13, 13, 7, 5, 15, 5, 8, 11, 14, 14, 6, 14, + 6, 9, 12, 9, 12, 5, 15, 8, 8, 5, 12, 9, 12, 5, 14, 6, 8, 13, 6, 5, + 15, 13, 11, 11, + ]), + w = a.create([0, 1518500249, 1859775393, 2400959708, 2840853838]), + C = a.create([1352829926, 1548603684, 1836072691, 2053994217, 0]), + I = (s.RIPEMD160 = i.extend({ + _doReset: function () { + this._hash = a.create([ + 1732584193, 4023233417, 2562383102, 271733878, 3285377520, + ]); + }, + _doProcessBlock: function (V, te) { + for (var $ = 0; $ < 16; $++) { + var ae = te + $, + Y = V[ae]; + V[ae] = + (((Y << 8) | (Y >>> 24)) & 16711935) | + (((Y << 24) | (Y >>> 8)) & 4278255360); + } + var K = this._hash.words, + g = w.words, + o = C.words, + p = c.words, + y = l.words, + h = d.words, + b = m.words, + T, + E, + f, + u, + v, + R, + A, + L, + G, + U; + (R = T = K[0]), + (A = E = K[1]), + (L = f = K[2]), + (G = u = K[3]), + (U = v = K[4]); + for (var Z, $ = 0; $ < 80; $ += 1) + (Z = (T + V[te + p[$]]) | 0), + $ < 16 + ? (Z += k(E, f, u) + g[0]) + : $ < 32 + ? (Z += O(E, f, u) + g[1]) + : $ < 48 + ? (Z += D(E, f, u) + g[2]) + : $ < 64 + ? (Z += W(E, f, u) + g[3]) + : (Z += H(E, f, u) + g[4]), + (Z = Z | 0), + (Z = j(Z, h[$])), + (Z = (Z + v) | 0), + (T = v), + (v = u), + (u = j(f, 10)), + (f = E), + (E = Z), + (Z = (R + V[te + y[$]]) | 0), + $ < 16 + ? (Z += H(A, L, G) + o[0]) + : $ < 32 + ? (Z += W(A, L, G) + o[1]) + : $ < 48 + ? (Z += D(A, L, G) + o[2]) + : $ < 64 + ? (Z += O(A, L, G) + o[3]) + : (Z += k(A, L, G) + o[4]), + (Z = Z | 0), + (Z = j(Z, b[$])), + (Z = (Z + U) | 0), + (R = U), + (U = G), + (G = j(L, 10)), + (L = A), + (A = Z); + (Z = (K[1] + f + G) | 0), + (K[1] = (K[2] + u + U) | 0), + (K[2] = (K[3] + v + R) | 0), + (K[3] = (K[4] + T + A) | 0), + (K[4] = (K[0] + E + L) | 0), + (K[0] = Z); + }, + _doFinalize: function () { + var V = this._data, + te = V.words, + $ = this._nDataBytes * 8, + ae = V.sigBytes * 8; + (te[ae >>> 5] |= 128 << (24 - (ae % 32))), + (te[(((ae + 64) >>> 9) << 4) + 14] = + ((($ << 8) | ($ >>> 24)) & 16711935) | + ((($ << 24) | ($ >>> 8)) & 4278255360)), + (V.sigBytes = (te.length + 1) * 4), + this._process(); + for (var Y = this._hash, K = Y.words, g = 0; g < 5; g++) { + var o = K[g]; + K[g] = + (((o << 8) | (o >>> 24)) & 16711935) | + (((o << 24) | (o >>> 8)) & 4278255360); + } + return Y; + }, + clone: function () { + var V = i.clone.call(this); + return (V._hash = this._hash.clone()), V; + }, + })); + function k(V, te, $) { + return V ^ te ^ $; + } + function O(V, te, $) { + return (V & te) | (~V & $); + } + function D(V, te, $) { + return (V | ~te) ^ $; + } + function W(V, te, $) { + return (V & $) | (te & ~$); + } + function H(V, te, $) { + return V ^ (te | ~$); + } + function j(V, te) { + return (V << te) | (V >>> (32 - te)); + } + (t.RIPEMD160 = i._createHelper(I)), + (t.HmacRIPEMD160 = i._createHmacHelper(I)); + })(Math), + r.RIPEMD160 + ); + }); + }); + var zS = N((HS, tqe) => { + _(); + x(); + (function (r, e) { + typeof HS == "object" + ? (tqe.exports = HS = e(wn())) + : typeof define == "function" && define.amd + ? define(["./core"], e) + : e(r.CryptoJS); + })(HS, function (r) { + (function () { + var e = r, + t = e.lib, + n = t.Base, + a = e.enc, + i = a.Utf8, + s = e.algo, + c = (s.HMAC = n.extend({ + init: function (l, d) { + (l = this._hasher = new l.init()), + typeof d == "string" && (d = i.parse(d)); + var m = l.blockSize, + w = m * 4; + d.sigBytes > w && (d = l.finalize(d)), d.clamp(); + for ( + var C = (this._oKey = d.clone()), + I = (this._iKey = d.clone()), + k = C.words, + O = I.words, + D = 0; + D < m; + D++ + ) + (k[D] ^= 1549556828), (O[D] ^= 909522486); + (C.sigBytes = I.sigBytes = w), this.reset(); + }, + reset: function () { + var l = this._hasher; + l.reset(), l.update(this._iKey); + }, + update: function (l) { + return this._hasher.update(l), this; + }, + finalize: function (l) { + var d = this._hasher, + m = d.finalize(l); + d.reset(); + var w = d.finalize(this._oKey.clone().concat(m)); + return w; + }, + })); + })(); + }); + }); + var nqe = N((jS, rqe) => { + _(); + x(); + (function (r, e, t) { + typeof jS == "object" + ? (rqe.exports = jS = e(wn(), LS(), zS())) + : typeof define == "function" && define.amd + ? define(["./core", "./sha1", "./hmac"], e) + : e(r.CryptoJS); + })(jS, function (r) { + return ( + (function () { + var e = r, + t = e.lib, + n = t.Base, + a = t.WordArray, + i = e.algo, + s = i.SHA1, + c = i.HMAC, + l = (i.PBKDF2 = n.extend({ + cfg: n.extend({ keySize: 128 / 32, hasher: s, iterations: 1 }), + init: function (d) { + this.cfg = this.cfg.extend(d); + }, + compute: function (d, m) { + for ( + var w = this.cfg, + C = c.create(w.hasher, d), + I = a.create(), + k = a.create([1]), + O = I.words, + D = k.words, + W = w.keySize, + H = w.iterations; + O.length < W; + + ) { + var j = C.update(m).finalize(k); + C.reset(); + for ( + var V = j.words, te = V.length, $ = j, ae = 1; + ae < H; + ae++ + ) { + ($ = C.finalize($)), C.reset(); + for (var Y = $.words, K = 0; K < te; K++) V[K] ^= Y[K]; + } + I.concat(j), D[0]++; + } + return (I.sigBytes = W * 4), I; + }, + })); + e.PBKDF2 = function (d, m, w) { + return l.create(w).compute(d, m); + }; + })(), + r.PBKDF2 + ); + }); + }); + var o0 = N((KS, aqe) => { + _(); + x(); + (function (r, e, t) { + typeof KS == "object" + ? (aqe.exports = KS = e(wn(), LS(), zS())) + : typeof define == "function" && define.amd + ? define(["./core", "./sha1", "./hmac"], e) + : e(r.CryptoJS); + })(KS, function (r) { + return ( + (function () { + var e = r, + t = e.lib, + n = t.Base, + a = t.WordArray, + i = e.algo, + s = i.MD5, + c = (i.EvpKDF = n.extend({ + cfg: n.extend({ keySize: 128 / 32, hasher: s, iterations: 1 }), + init: function (l) { + this.cfg = this.cfg.extend(l); + }, + compute: function (l, d) { + for ( + var m = this.cfg, + w = m.hasher.create(), + C = a.create(), + I = C.words, + k = m.keySize, + O = m.iterations; + I.length < k; + + ) { + D && w.update(D); + var D = w.update(l).finalize(d); + w.reset(); + for (var W = 1; W < O; W++) (D = w.finalize(D)), w.reset(); + C.concat(D); + } + return (C.sigBytes = k * 4), C; + }, + })); + e.EvpKDF = function (l, d, m) { + return c.create(m).compute(l, d); + }; + })(), + r.EvpKDF + ); + }); + }); + var Bs = N((VS, iqe) => { + _(); + x(); + (function (r, e, t) { + typeof VS == "object" + ? (iqe.exports = VS = e(wn(), o0())) + : typeof define == "function" && define.amd + ? define(["./core", "./evpkdf"], e) + : e(r.CryptoJS); + })(VS, function (r) { + r.lib.Cipher || + (function (e) { + var t = r, + n = t.lib, + a = n.Base, + i = n.WordArray, + s = n.BufferedBlockAlgorithm, + c = t.enc, + l = c.Utf8, + d = c.Base64, + m = t.algo, + w = m.EvpKDF, + C = (n.Cipher = s.extend({ + cfg: a.extend(), + createEncryptor: function (o, p) { + return this.create(this._ENC_XFORM_MODE, o, p); + }, + createDecryptor: function (o, p) { + return this.create(this._DEC_XFORM_MODE, o, p); + }, + init: function (o, p, y) { + (this.cfg = this.cfg.extend(y)), + (this._xformMode = o), + (this._key = p), + this.reset(); + }, + reset: function () { + s.reset.call(this), this._doReset(); + }, + process: function (o) { + return this._append(o), this._process(); + }, + finalize: function (o) { + o && this._append(o); + var p = this._doFinalize(); + return p; + }, + keySize: 128 / 32, + ivSize: 128 / 32, + _ENC_XFORM_MODE: 1, + _DEC_XFORM_MODE: 2, + _createHelper: (function () { + function o(p) { + return typeof p == "string" ? g : ae; + } + return function (p) { + return { + encrypt: function (y, h, b) { + return o(h).encrypt(p, y, h, b); + }, + decrypt: function (y, h, b) { + return o(h).decrypt(p, y, h, b); + }, + }; + }; + })(), + })), + I = (n.StreamCipher = C.extend({ + _doFinalize: function () { + var o = this._process(!0); + return o; + }, + blockSize: 1, + })), + k = (t.mode = {}), + O = (n.BlockCipherMode = a.extend({ + createEncryptor: function (o, p) { + return this.Encryptor.create(o, p); + }, + createDecryptor: function (o, p) { + return this.Decryptor.create(o, p); + }, + init: function (o, p) { + (this._cipher = o), (this._iv = p); + }, + })), + D = (k.CBC = (function () { + var o = O.extend(); + (o.Encryptor = o.extend({ + processBlock: function (y, h) { + var b = this._cipher, + T = b.blockSize; + p.call(this, y, h, T), + b.encryptBlock(y, h), + (this._prevBlock = y.slice(h, h + T)); + }, + })), + (o.Decryptor = o.extend({ + processBlock: function (y, h) { + var b = this._cipher, + T = b.blockSize, + E = y.slice(h, h + T); + b.decryptBlock(y, h), + p.call(this, y, h, T), + (this._prevBlock = E); + }, + })); + function p(y, h, b) { + var T = this._iv; + if (T) { + var E = T; + this._iv = e; + } else var E = this._prevBlock; + for (var f = 0; f < b; f++) y[h + f] ^= E[f]; + } + return o; + })()), + W = (t.pad = {}), + H = (W.Pkcs7 = { + pad: function (o, p) { + for ( + var y = p * 4, + h = y - (o.sigBytes % y), + b = (h << 24) | (h << 16) | (h << 8) | h, + T = [], + E = 0; + E < h; + E += 4 + ) + T.push(b); + var f = i.create(T, h); + o.concat(f); + }, + unpad: function (o) { + var p = o.words[(o.sigBytes - 1) >>> 2] & 255; + o.sigBytes -= p; + }, + }), + j = (n.BlockCipher = C.extend({ + cfg: C.cfg.extend({ mode: D, padding: H }), + reset: function () { + C.reset.call(this); + var o = this.cfg, + p = o.iv, + y = o.mode; + if (this._xformMode == this._ENC_XFORM_MODE) + var h = y.createEncryptor; + else { + var h = y.createDecryptor; + this._minBufferSize = 1; + } + this._mode && this._mode.__creator == h + ? this._mode.init(this, p && p.words) + : ((this._mode = h.call(y, this, p && p.words)), + (this._mode.__creator = h)); + }, + _doProcessBlock: function (o, p) { + this._mode.processBlock(o, p); + }, + _doFinalize: function () { + var o = this.cfg.padding; + if (this._xformMode == this._ENC_XFORM_MODE) { + o.pad(this._data, this.blockSize); + var p = this._process(!0); + } else { + var p = this._process(!0); + o.unpad(p); + } + return p; + }, + blockSize: 128 / 32, + })), + V = (n.CipherParams = a.extend({ + init: function (o) { + this.mixIn(o); + }, + toString: function (o) { + return (o || this.formatter).stringify(this); + }, + })), + te = (t.format = {}), + $ = (te.OpenSSL = { + stringify: function (o) { + var p = o.ciphertext, + y = o.salt; + if (y) + var h = i + .create([1398893684, 1701076831]) + .concat(y) + .concat(p); + else var h = p; + return h.toString(d); + }, + parse: function (o) { + var p = d.parse(o), + y = p.words; + if (y[0] == 1398893684 && y[1] == 1701076831) { + var h = i.create(y.slice(2, 4)); + y.splice(0, 4), (p.sigBytes -= 16); + } + return V.create({ ciphertext: p, salt: h }); + }, + }), + ae = (n.SerializableCipher = a.extend({ + cfg: a.extend({ format: $ }), + encrypt: function (o, p, y, h) { + h = this.cfg.extend(h); + var b = o.createEncryptor(y, h), + T = b.finalize(p), + E = b.cfg; + return V.create({ + ciphertext: T, + key: y, + iv: E.iv, + algorithm: o, + mode: E.mode, + padding: E.padding, + blockSize: o.blockSize, + formatter: h.format, + }); + }, + decrypt: function (o, p, y, h) { + (h = this.cfg.extend(h)), (p = this._parse(p, h.format)); + var b = o.createDecryptor(y, h).finalize(p.ciphertext); + return b; + }, + _parse: function (o, p) { + return typeof o == "string" ? p.parse(o, this) : o; + }, + })), + Y = (t.kdf = {}), + K = (Y.OpenSSL = { + execute: function (o, p, y, h) { + h || (h = i.random(64 / 8)); + var b = w.create({ keySize: p + y }).compute(o, h), + T = i.create(b.words.slice(p), y * 4); + return ( + (b.sigBytes = p * 4), V.create({ key: b, iv: T, salt: h }) + ); + }, + }), + g = (n.PasswordBasedCipher = ae.extend({ + cfg: ae.cfg.extend({ kdf: K }), + encrypt: function (o, p, y, h) { + h = this.cfg.extend(h); + var b = h.kdf.execute(y, o.keySize, o.ivSize); + h.iv = b.iv; + var T = ae.encrypt.call(this, o, p, b.key, h); + return T.mixIn(b), T; + }, + decrypt: function (o, p, y, h) { + (h = this.cfg.extend(h)), (p = this._parse(p, h.format)); + var b = h.kdf.execute(y, o.keySize, o.ivSize, p.salt); + h.iv = b.iv; + var T = ae.decrypt.call(this, o, p, b.key, h); + return T; + }, + })); + })(); + }); + }); + var oqe = N((GS, sqe) => { + _(); + x(); + (function (r, e, t) { + typeof GS == "object" + ? (sqe.exports = GS = e(wn(), Bs())) + : typeof define == "function" && define.amd + ? define(["./core", "./cipher-core"], e) + : e(r.CryptoJS); + })(GS, function (r) { + return ( + (r.mode.CFB = (function () { + var e = r.lib.BlockCipherMode.extend(); + (e.Encryptor = e.extend({ + processBlock: function (n, a) { + var i = this._cipher, + s = i.blockSize; + t.call(this, n, a, s, i), (this._prevBlock = n.slice(a, a + s)); + }, + })), + (e.Decryptor = e.extend({ + processBlock: function (n, a) { + var i = this._cipher, + s = i.blockSize, + c = n.slice(a, a + s); + t.call(this, n, a, s, i), (this._prevBlock = c); + }, + })); + function t(n, a, i, s) { + var c = this._iv; + if (c) { + var l = c.slice(0); + this._iv = void 0; + } else var l = this._prevBlock; + s.encryptBlock(l, 0); + for (var d = 0; d < i; d++) n[a + d] ^= l[d]; + } + return e; + })()), + r.mode.CFB + ); + }); + }); + var uqe = N((YS, cqe) => { + _(); + x(); + (function (r, e, t) { + typeof YS == "object" + ? (cqe.exports = YS = e(wn(), Bs())) + : typeof define == "function" && define.amd + ? define(["./core", "./cipher-core"], e) + : e(r.CryptoJS); + })(YS, function (r) { + return ( + (r.mode.CTR = (function () { + var e = r.lib.BlockCipherMode.extend(), + t = (e.Encryptor = e.extend({ + processBlock: function (n, a) { + var i = this._cipher, + s = i.blockSize, + c = this._iv, + l = this._counter; + c && ((l = this._counter = c.slice(0)), (this._iv = void 0)); + var d = l.slice(0); + i.encryptBlock(d, 0), (l[s - 1] = (l[s - 1] + 1) | 0); + for (var m = 0; m < s; m++) n[a + m] ^= d[m]; + }, + })); + return (e.Decryptor = t), e; + })()), + r.mode.CTR + ); + }); + }); + var dqe = N(($S, lqe) => { + _(); + x(); + (function (r, e, t) { + typeof $S == "object" + ? (lqe.exports = $S = e(wn(), Bs())) + : typeof define == "function" && define.amd + ? define(["./core", "./cipher-core"], e) + : e(r.CryptoJS); + })($S, function (r) { + return ( + (r.mode.CTRGladman = (function () { + var e = r.lib.BlockCipherMode.extend(); + function t(i) { + if (((i >> 24) & 255) === 255) { + var s = (i >> 16) & 255, + c = (i >> 8) & 255, + l = i & 255; + s === 255 + ? ((s = 0), + c === 255 ? ((c = 0), l === 255 ? (l = 0) : ++l) : ++c) + : ++s, + (i = 0), + (i += s << 16), + (i += c << 8), + (i += l); + } else i += 1 << 24; + return i; + } + function n(i) { + return (i[0] = t(i[0])) === 0 && (i[1] = t(i[1])), i; + } + var a = (e.Encryptor = e.extend({ + processBlock: function (i, s) { + var c = this._cipher, + l = c.blockSize, + d = this._iv, + m = this._counter; + d && ((m = this._counter = d.slice(0)), (this._iv = void 0)), + n(m); + var w = m.slice(0); + c.encryptBlock(w, 0); + for (var C = 0; C < l; C++) i[s + C] ^= w[C]; + }, + })); + return (e.Decryptor = a), e; + })()), + r.mode.CTRGladman + ); + }); + }); + var hqe = N((JS, pqe) => { + _(); + x(); + (function (r, e, t) { + typeof JS == "object" + ? (pqe.exports = JS = e(wn(), Bs())) + : typeof define == "function" && define.amd + ? define(["./core", "./cipher-core"], e) + : e(r.CryptoJS); + })(JS, function (r) { + return ( + (r.mode.OFB = (function () { + var e = r.lib.BlockCipherMode.extend(), + t = (e.Encryptor = e.extend({ + processBlock: function (n, a) { + var i = this._cipher, + s = i.blockSize, + c = this._iv, + l = this._keystream; + c && ((l = this._keystream = c.slice(0)), (this._iv = void 0)), + i.encryptBlock(l, 0); + for (var d = 0; d < s; d++) n[a + d] ^= l[d]; + }, + })); + return (e.Decryptor = t), e; + })()), + r.mode.OFB + ); + }); + }); + var mqe = N((ZS, fqe) => { + _(); + x(); + (function (r, e, t) { + typeof ZS == "object" + ? (fqe.exports = ZS = e(wn(), Bs())) + : typeof define == "function" && define.amd + ? define(["./core", "./cipher-core"], e) + : e(r.CryptoJS); + })(ZS, function (r) { + return ( + (r.mode.ECB = (function () { + var e = r.lib.BlockCipherMode.extend(); + return ( + (e.Encryptor = e.extend({ + processBlock: function (t, n) { + this._cipher.encryptBlock(t, n); + }, + })), + (e.Decryptor = e.extend({ + processBlock: function (t, n) { + this._cipher.decryptBlock(t, n); + }, + })), + e + ); + })()), + r.mode.ECB + ); + }); + }); + var gqe = N((QS, yqe) => { + _(); + x(); + (function (r, e, t) { + typeof QS == "object" + ? (yqe.exports = QS = e(wn(), Bs())) + : typeof define == "function" && define.amd + ? define(["./core", "./cipher-core"], e) + : e(r.CryptoJS); + })(QS, function (r) { + return ( + (r.pad.AnsiX923 = { + pad: function (e, t) { + var n = e.sigBytes, + a = t * 4, + i = a - (n % a), + s = n + i - 1; + e.clamp(), + (e.words[s >>> 2] |= i << (24 - (s % 4) * 8)), + (e.sigBytes += i); + }, + unpad: function (e) { + var t = e.words[(e.sigBytes - 1) >>> 2] & 255; + e.sigBytes -= t; + }, + }), + r.pad.Ansix923 + ); + }); + }); + var vqe = N((XS, bqe) => { + _(); + x(); + (function (r, e, t) { + typeof XS == "object" + ? (bqe.exports = XS = e(wn(), Bs())) + : typeof define == "function" && define.amd + ? define(["./core", "./cipher-core"], e) + : e(r.CryptoJS); + })(XS, function (r) { + return ( + (r.pad.Iso10126 = { + pad: function (e, t) { + var n = t * 4, + a = n - (e.sigBytes % n); + e.concat(r.lib.WordArray.random(a - 1)).concat( + r.lib.WordArray.create([a << 24], 1) + ); + }, + unpad: function (e) { + var t = e.words[(e.sigBytes - 1) >>> 2] & 255; + e.sigBytes -= t; + }, + }), + r.pad.Iso10126 + ); + }); + }); + var _qe = N((eM, wqe) => { + _(); + x(); + (function (r, e, t) { + typeof eM == "object" + ? (wqe.exports = eM = e(wn(), Bs())) + : typeof define == "function" && define.amd + ? define(["./core", "./cipher-core"], e) + : e(r.CryptoJS); + })(eM, function (r) { + return ( + (r.pad.Iso97971 = { + pad: function (e, t) { + e.concat(r.lib.WordArray.create([2147483648], 1)), + r.pad.ZeroPadding.pad(e, t); + }, + unpad: function (e) { + r.pad.ZeroPadding.unpad(e), e.sigBytes--; + }, + }), + r.pad.Iso97971 + ); + }); + }); + var Tqe = N((tM, xqe) => { + _(); + x(); + (function (r, e, t) { + typeof tM == "object" + ? (xqe.exports = tM = e(wn(), Bs())) + : typeof define == "function" && define.amd + ? define(["./core", "./cipher-core"], e) + : e(r.CryptoJS); + })(tM, function (r) { + return ( + (r.pad.ZeroPadding = { + pad: function (e, t) { + var n = t * 4; + e.clamp(), (e.sigBytes += n - (e.sigBytes % n || n)); + }, + unpad: function (e) { + for ( + var t = e.words, n = e.sigBytes - 1; + !((t[n >>> 2] >>> (24 - (n % 4) * 8)) & 255); + + ) + n--; + e.sigBytes = n + 1; + }, + }), + r.pad.ZeroPadding + ); + }); + }); + var Cqe = N((rM, Eqe) => { + _(); + x(); + (function (r, e, t) { + typeof rM == "object" + ? (Eqe.exports = rM = e(wn(), Bs())) + : typeof define == "function" && define.amd + ? define(["./core", "./cipher-core"], e) + : e(r.CryptoJS); + })(rM, function (r) { + return ( + (r.pad.NoPadding = { pad: function () {}, unpad: function () {} }), + r.pad.NoPadding + ); + }); + }); + var Aqe = N((nM, Iqe) => { + _(); + x(); + (function (r, e, t) { + typeof nM == "object" + ? (Iqe.exports = nM = e(wn(), Bs())) + : typeof define == "function" && define.amd + ? define(["./core", "./cipher-core"], e) + : e(r.CryptoJS); + })(nM, function (r) { + return ( + (function (e) { + var t = r, + n = t.lib, + a = n.CipherParams, + i = t.enc, + s = i.Hex, + c = t.format, + l = (c.Hex = { + stringify: function (d) { + return d.ciphertext.toString(s); + }, + parse: function (d) { + var m = s.parse(d); + return a.create({ ciphertext: m }); + }, + }); + })(), + r.format.Hex + ); + }); + }); + var Sqe = N((aM, kqe) => { + _(); + x(); + (function (r, e, t) { + typeof aM == "object" + ? (kqe.exports = aM = e(wn(), Bg(), Ng(), o0(), Bs())) + : typeof define == "function" && define.amd + ? define( + ["./core", "./enc-base64", "./md5", "./evpkdf", "./cipher-core"], + e + ) + : e(r.CryptoJS); + })(aM, function (r) { + return ( + (function () { + var e = r, + t = e.lib, + n = t.BlockCipher, + a = e.algo, + i = [], + s = [], + c = [], + l = [], + d = [], + m = [], + w = [], + C = [], + I = [], + k = []; + (function () { + for (var W = [], H = 0; H < 256; H++) + H < 128 ? (W[H] = H << 1) : (W[H] = (H << 1) ^ 283); + for (var j = 0, V = 0, H = 0; H < 256; H++) { + var te = V ^ (V << 1) ^ (V << 2) ^ (V << 3) ^ (V << 4); + (te = (te >>> 8) ^ (te & 255) ^ 99), (i[j] = te), (s[te] = j); + var $ = W[j], + ae = W[$], + Y = W[ae], + K = (W[te] * 257) ^ (te * 16843008); + (c[j] = (K << 24) | (K >>> 8)), + (l[j] = (K << 16) | (K >>> 16)), + (d[j] = (K << 8) | (K >>> 24)), + (m[j] = K); + var K = + (Y * 16843009) ^ (ae * 65537) ^ ($ * 257) ^ (j * 16843008); + (w[te] = (K << 24) | (K >>> 8)), + (C[te] = (K << 16) | (K >>> 16)), + (I[te] = (K << 8) | (K >>> 24)), + (k[te] = K), + j ? ((j = $ ^ W[W[W[Y ^ $]]]), (V ^= W[W[V]])) : (j = V = 1); + } + })(); + var O = [0, 1, 2, 4, 8, 16, 32, 64, 128, 27, 54], + D = (a.AES = n.extend({ + _doReset: function () { + if (!(this._nRounds && this._keyPriorReset === this._key)) { + for ( + var W = (this._keyPriorReset = this._key), + H = W.words, + j = W.sigBytes / 4, + V = (this._nRounds = j + 6), + te = (V + 1) * 4, + $ = (this._keySchedule = []), + ae = 0; + ae < te; + ae++ + ) + if (ae < j) $[ae] = H[ae]; + else { + var Y = $[ae - 1]; + ae % j + ? j > 6 && + ae % j == 4 && + (Y = + (i[Y >>> 24] << 24) | + (i[(Y >>> 16) & 255] << 16) | + (i[(Y >>> 8) & 255] << 8) | + i[Y & 255]) + : ((Y = (Y << 8) | (Y >>> 24)), + (Y = + (i[Y >>> 24] << 24) | + (i[(Y >>> 16) & 255] << 16) | + (i[(Y >>> 8) & 255] << 8) | + i[Y & 255]), + (Y ^= O[(ae / j) | 0] << 24)), + ($[ae] = $[ae - j] ^ Y); + } + for ( + var K = (this._invKeySchedule = []), g = 0; + g < te; + g++ + ) { + var ae = te - g; + if (g % 4) var Y = $[ae]; + else var Y = $[ae - 4]; + g < 4 || ae <= 4 + ? (K[g] = Y) + : (K[g] = + w[i[Y >>> 24]] ^ + C[i[(Y >>> 16) & 255]] ^ + I[i[(Y >>> 8) & 255]] ^ + k[i[Y & 255]]); + } + } + }, + encryptBlock: function (W, H) { + this._doCryptBlock(W, H, this._keySchedule, c, l, d, m, i); + }, + decryptBlock: function (W, H) { + var j = W[H + 1]; + (W[H + 1] = W[H + 3]), + (W[H + 3] = j), + this._doCryptBlock(W, H, this._invKeySchedule, w, C, I, k, s); + var j = W[H + 1]; + (W[H + 1] = W[H + 3]), (W[H + 3] = j); + }, + _doCryptBlock: function (W, H, j, V, te, $, ae, Y) { + for ( + var K = this._nRounds, + g = W[H] ^ j[0], + o = W[H + 1] ^ j[1], + p = W[H + 2] ^ j[2], + y = W[H + 3] ^ j[3], + h = 4, + b = 1; + b < K; + b++ + ) { + var T = + V[g >>> 24] ^ + te[(o >>> 16) & 255] ^ + $[(p >>> 8) & 255] ^ + ae[y & 255] ^ + j[h++], + E = + V[o >>> 24] ^ + te[(p >>> 16) & 255] ^ + $[(y >>> 8) & 255] ^ + ae[g & 255] ^ + j[h++], + f = + V[p >>> 24] ^ + te[(y >>> 16) & 255] ^ + $[(g >>> 8) & 255] ^ + ae[o & 255] ^ + j[h++], + u = + V[y >>> 24] ^ + te[(g >>> 16) & 255] ^ + $[(o >>> 8) & 255] ^ + ae[p & 255] ^ + j[h++]; + (g = T), (o = E), (p = f), (y = u); + } + var T = + ((Y[g >>> 24] << 24) | + (Y[(o >>> 16) & 255] << 16) | + (Y[(p >>> 8) & 255] << 8) | + Y[y & 255]) ^ + j[h++], + E = + ((Y[o >>> 24] << 24) | + (Y[(p >>> 16) & 255] << 16) | + (Y[(y >>> 8) & 255] << 8) | + Y[g & 255]) ^ + j[h++], + f = + ((Y[p >>> 24] << 24) | + (Y[(y >>> 16) & 255] << 16) | + (Y[(g >>> 8) & 255] << 8) | + Y[o & 255]) ^ + j[h++], + u = + ((Y[y >>> 24] << 24) | + (Y[(g >>> 16) & 255] << 16) | + (Y[(o >>> 8) & 255] << 8) | + Y[p & 255]) ^ + j[h++]; + (W[H] = T), (W[H + 1] = E), (W[H + 2] = f), (W[H + 3] = u); + }, + keySize: 256 / 32, + })); + e.AES = n._createHelper(D); + })(), + r.AES + ); + }); + }); + var Pqe = N((iM, Mqe) => { + _(); + x(); + (function (r, e, t) { + typeof iM == "object" + ? (Mqe.exports = iM = e(wn(), Bg(), Ng(), o0(), Bs())) + : typeof define == "function" && define.amd + ? define( + ["./core", "./enc-base64", "./md5", "./evpkdf", "./cipher-core"], + e + ) + : e(r.CryptoJS); + })(iM, function (r) { + return ( + (function () { + var e = r, + t = e.lib, + n = t.WordArray, + a = t.BlockCipher, + i = e.algo, + s = [ + 57, 49, 41, 33, 25, 17, 9, 1, 58, 50, 42, 34, 26, 18, 10, 2, 59, + 51, 43, 35, 27, 19, 11, 3, 60, 52, 44, 36, 63, 55, 47, 39, 31, 23, + 15, 7, 62, 54, 46, 38, 30, 22, 14, 6, 61, 53, 45, 37, 29, 21, 13, + 5, 28, 20, 12, 4, + ], + c = [ + 14, 17, 11, 24, 1, 5, 3, 28, 15, 6, 21, 10, 23, 19, 12, 4, 26, 8, + 16, 7, 27, 20, 13, 2, 41, 52, 31, 37, 47, 55, 30, 40, 51, 45, 33, + 48, 44, 49, 39, 56, 34, 53, 46, 42, 50, 36, 29, 32, + ], + l = [1, 2, 4, 6, 8, 10, 12, 14, 15, 17, 19, 21, 23, 25, 27, 28], + d = [ + { + 0: 8421888, + 268435456: 32768, + 536870912: 8421378, + 805306368: 2, + 1073741824: 512, + 1342177280: 8421890, + 1610612736: 8389122, + 1879048192: 8388608, + 2147483648: 514, + 2415919104: 8389120, + 2684354560: 33280, + 2952790016: 8421376, + 3221225472: 32770, + 3489660928: 8388610, + 3758096384: 0, + 4026531840: 33282, + 134217728: 0, + 402653184: 8421890, + 671088640: 33282, + 939524096: 32768, + 1207959552: 8421888, + 1476395008: 512, + 1744830464: 8421378, + 2013265920: 2, + 2281701376: 8389120, + 2550136832: 33280, + 2818572288: 8421376, + 3087007744: 8389122, + 3355443200: 8388610, + 3623878656: 32770, + 3892314112: 514, + 4160749568: 8388608, + 1: 32768, + 268435457: 2, + 536870913: 8421888, + 805306369: 8388608, + 1073741825: 8421378, + 1342177281: 33280, + 1610612737: 512, + 1879048193: 8389122, + 2147483649: 8421890, + 2415919105: 8421376, + 2684354561: 8388610, + 2952790017: 33282, + 3221225473: 514, + 3489660929: 8389120, + 3758096385: 32770, + 4026531841: 0, + 134217729: 8421890, + 402653185: 8421376, + 671088641: 8388608, + 939524097: 512, + 1207959553: 32768, + 1476395009: 8388610, + 1744830465: 2, + 2013265921: 33282, + 2281701377: 32770, + 2550136833: 8389122, + 2818572289: 514, + 3087007745: 8421888, + 3355443201: 8389120, + 3623878657: 0, + 3892314113: 33280, + 4160749569: 8421378, + }, + { + 0: 1074282512, + 16777216: 16384, + 33554432: 524288, + 50331648: 1074266128, + 67108864: 1073741840, + 83886080: 1074282496, + 100663296: 1073758208, + 117440512: 16, + 134217728: 540672, + 150994944: 1073758224, + 167772160: 1073741824, + 184549376: 540688, + 201326592: 524304, + 218103808: 0, + 234881024: 16400, + 251658240: 1074266112, + 8388608: 1073758208, + 25165824: 540688, + 41943040: 16, + 58720256: 1073758224, + 75497472: 1074282512, + 92274688: 1073741824, + 109051904: 524288, + 125829120: 1074266128, + 142606336: 524304, + 159383552: 0, + 176160768: 16384, + 192937984: 1074266112, + 209715200: 1073741840, + 226492416: 540672, + 243269632: 1074282496, + 260046848: 16400, + 268435456: 0, + 285212672: 1074266128, + 301989888: 1073758224, + 318767104: 1074282496, + 335544320: 1074266112, + 352321536: 16, + 369098752: 540688, + 385875968: 16384, + 402653184: 16400, + 419430400: 524288, + 436207616: 524304, + 452984832: 1073741840, + 469762048: 540672, + 486539264: 1073758208, + 503316480: 1073741824, + 520093696: 1074282512, + 276824064: 540688, + 293601280: 524288, + 310378496: 1074266112, + 327155712: 16384, + 343932928: 1073758208, + 360710144: 1074282512, + 377487360: 16, + 394264576: 1073741824, + 411041792: 1074282496, + 427819008: 1073741840, + 444596224: 1073758224, + 461373440: 524304, + 478150656: 0, + 494927872: 16400, + 511705088: 1074266128, + 528482304: 540672, + }, + { + 0: 260, + 1048576: 0, + 2097152: 67109120, + 3145728: 65796, + 4194304: 65540, + 5242880: 67108868, + 6291456: 67174660, + 7340032: 67174400, + 8388608: 67108864, + 9437184: 67174656, + 10485760: 65792, + 11534336: 67174404, + 12582912: 67109124, + 13631488: 65536, + 14680064: 4, + 15728640: 256, + 524288: 67174656, + 1572864: 67174404, + 2621440: 0, + 3670016: 67109120, + 4718592: 67108868, + 5767168: 65536, + 6815744: 65540, + 7864320: 260, + 8912896: 4, + 9961472: 256, + 11010048: 67174400, + 12058624: 65796, + 13107200: 65792, + 14155776: 67109124, + 15204352: 67174660, + 16252928: 67108864, + 16777216: 67174656, + 17825792: 65540, + 18874368: 65536, + 19922944: 67109120, + 20971520: 256, + 22020096: 67174660, + 23068672: 67108868, + 24117248: 0, + 25165824: 67109124, + 26214400: 67108864, + 27262976: 4, + 28311552: 65792, + 29360128: 67174400, + 30408704: 260, + 31457280: 65796, + 32505856: 67174404, + 17301504: 67108864, + 18350080: 260, + 19398656: 67174656, + 20447232: 0, + 21495808: 65540, + 22544384: 67109120, + 23592960: 256, + 24641536: 67174404, + 25690112: 65536, + 26738688: 67174660, + 27787264: 65796, + 28835840: 67108868, + 29884416: 67109124, + 30932992: 67174400, + 31981568: 4, + 33030144: 65792, + }, + { + 0: 2151682048, + 65536: 2147487808, + 131072: 4198464, + 196608: 2151677952, + 262144: 0, + 327680: 4198400, + 393216: 2147483712, + 458752: 4194368, + 524288: 2147483648, + 589824: 4194304, + 655360: 64, + 720896: 2147487744, + 786432: 2151678016, + 851968: 4160, + 917504: 4096, + 983040: 2151682112, + 32768: 2147487808, + 98304: 64, + 163840: 2151678016, + 229376: 2147487744, + 294912: 4198400, + 360448: 2151682112, + 425984: 0, + 491520: 2151677952, + 557056: 4096, + 622592: 2151682048, + 688128: 4194304, + 753664: 4160, + 819200: 2147483648, + 884736: 4194368, + 950272: 4198464, + 1015808: 2147483712, + 1048576: 4194368, + 1114112: 4198400, + 1179648: 2147483712, + 1245184: 0, + 1310720: 4160, + 1376256: 2151678016, + 1441792: 2151682048, + 1507328: 2147487808, + 1572864: 2151682112, + 1638400: 2147483648, + 1703936: 2151677952, + 1769472: 4198464, + 1835008: 2147487744, + 1900544: 4194304, + 1966080: 64, + 2031616: 4096, + 1081344: 2151677952, + 1146880: 2151682112, + 1212416: 0, + 1277952: 4198400, + 1343488: 4194368, + 1409024: 2147483648, + 1474560: 2147487808, + 1540096: 64, + 1605632: 2147483712, + 1671168: 4096, + 1736704: 2147487744, + 1802240: 2151678016, + 1867776: 4160, + 1933312: 2151682048, + 1998848: 4194304, + 2064384: 4198464, + }, + { + 0: 128, + 4096: 17039360, + 8192: 262144, + 12288: 536870912, + 16384: 537133184, + 20480: 16777344, + 24576: 553648256, + 28672: 262272, + 32768: 16777216, + 36864: 537133056, + 40960: 536871040, + 45056: 553910400, + 49152: 553910272, + 53248: 0, + 57344: 17039488, + 61440: 553648128, + 2048: 17039488, + 6144: 553648256, + 10240: 128, + 14336: 17039360, + 18432: 262144, + 22528: 537133184, + 26624: 553910272, + 30720: 536870912, + 34816: 537133056, + 38912: 0, + 43008: 553910400, + 47104: 16777344, + 51200: 536871040, + 55296: 553648128, + 59392: 16777216, + 63488: 262272, + 65536: 262144, + 69632: 128, + 73728: 536870912, + 77824: 553648256, + 81920: 16777344, + 86016: 553910272, + 90112: 537133184, + 94208: 16777216, + 98304: 553910400, + 102400: 553648128, + 106496: 17039360, + 110592: 537133056, + 114688: 262272, + 118784: 536871040, + 122880: 0, + 126976: 17039488, + 67584: 553648256, + 71680: 16777216, + 75776: 17039360, + 79872: 537133184, + 83968: 536870912, + 88064: 17039488, + 92160: 128, + 96256: 553910272, + 100352: 262272, + 104448: 553910400, + 108544: 0, + 112640: 553648128, + 116736: 16777344, + 120832: 262144, + 124928: 537133056, + 129024: 536871040, + }, + { + 0: 268435464, + 256: 8192, + 512: 270532608, + 768: 270540808, + 1024: 268443648, + 1280: 2097152, + 1536: 2097160, + 1792: 268435456, + 2048: 0, + 2304: 268443656, + 2560: 2105344, + 2816: 8, + 3072: 270532616, + 3328: 2105352, + 3584: 8200, + 3840: 270540800, + 128: 270532608, + 384: 270540808, + 640: 8, + 896: 2097152, + 1152: 2105352, + 1408: 268435464, + 1664: 268443648, + 1920: 8200, + 2176: 2097160, + 2432: 8192, + 2688: 268443656, + 2944: 270532616, + 3200: 0, + 3456: 270540800, + 3712: 2105344, + 3968: 268435456, + 4096: 268443648, + 4352: 270532616, + 4608: 270540808, + 4864: 8200, + 5120: 2097152, + 5376: 268435456, + 5632: 268435464, + 5888: 2105344, + 6144: 2105352, + 6400: 0, + 6656: 8, + 6912: 270532608, + 7168: 8192, + 7424: 268443656, + 7680: 270540800, + 7936: 2097160, + 4224: 8, + 4480: 2105344, + 4736: 2097152, + 4992: 268435464, + 5248: 268443648, + 5504: 8200, + 5760: 270540808, + 6016: 270532608, + 6272: 270540800, + 6528: 270532616, + 6784: 8192, + 7040: 2105352, + 7296: 2097160, + 7552: 0, + 7808: 268435456, + 8064: 268443656, + }, + { + 0: 1048576, + 16: 33555457, + 32: 1024, + 48: 1049601, + 64: 34604033, + 80: 0, + 96: 1, + 112: 34603009, + 128: 33555456, + 144: 1048577, + 160: 33554433, + 176: 34604032, + 192: 34603008, + 208: 1025, + 224: 1049600, + 240: 33554432, + 8: 34603009, + 24: 0, + 40: 33555457, + 56: 34604032, + 72: 1048576, + 88: 33554433, + 104: 33554432, + 120: 1025, + 136: 1049601, + 152: 33555456, + 168: 34603008, + 184: 1048577, + 200: 1024, + 216: 34604033, + 232: 1, + 248: 1049600, + 256: 33554432, + 272: 1048576, + 288: 33555457, + 304: 34603009, + 320: 1048577, + 336: 33555456, + 352: 34604032, + 368: 1049601, + 384: 1025, + 400: 34604033, + 416: 1049600, + 432: 1, + 448: 0, + 464: 34603008, + 480: 33554433, + 496: 1024, + 264: 1049600, + 280: 33555457, + 296: 34603009, + 312: 1, + 328: 33554432, + 344: 1048576, + 360: 1025, + 376: 34604032, + 392: 33554433, + 408: 34603008, + 424: 0, + 440: 34604033, + 456: 1049601, + 472: 1024, + 488: 33555456, + 504: 1048577, + }, + { + 0: 134219808, + 1: 131072, + 2: 134217728, + 3: 32, + 4: 131104, + 5: 134350880, + 6: 134350848, + 7: 2048, + 8: 134348800, + 9: 134219776, + 10: 133120, + 11: 134348832, + 12: 2080, + 13: 0, + 14: 134217760, + 15: 133152, + 2147483648: 2048, + 2147483649: 134350880, + 2147483650: 134219808, + 2147483651: 134217728, + 2147483652: 134348800, + 2147483653: 133120, + 2147483654: 133152, + 2147483655: 32, + 2147483656: 134217760, + 2147483657: 2080, + 2147483658: 131104, + 2147483659: 134350848, + 2147483660: 0, + 2147483661: 134348832, + 2147483662: 134219776, + 2147483663: 131072, + 16: 133152, + 17: 134350848, + 18: 32, + 19: 2048, + 20: 134219776, + 21: 134217760, + 22: 134348832, + 23: 131072, + 24: 0, + 25: 131104, + 26: 134348800, + 27: 134219808, + 28: 134350880, + 29: 133120, + 30: 2080, + 31: 134217728, + 2147483664: 131072, + 2147483665: 2048, + 2147483666: 134348832, + 2147483667: 133152, + 2147483668: 32, + 2147483669: 134348800, + 2147483670: 134217728, + 2147483671: 134219808, + 2147483672: 134350880, + 2147483673: 134217760, + 2147483674: 134219776, + 2147483675: 0, + 2147483676: 133120, + 2147483677: 2080, + 2147483678: 131104, + 2147483679: 134350848, + }, + ], + m = [ + 4160749569, 528482304, 33030144, 2064384, 129024, 8064, 504, + 2147483679, + ], + w = (i.DES = a.extend({ + _doReset: function () { + for ( + var O = this._key, D = O.words, W = [], H = 0; + H < 56; + H++ + ) { + var j = s[H] - 1; + W[H] = (D[j >>> 5] >>> (31 - (j % 32))) & 1; + } + for (var V = (this._subKeys = []), te = 0; te < 16; te++) { + for (var $ = (V[te] = []), ae = l[te], H = 0; H < 24; H++) + ($[(H / 6) | 0] |= + W[(c[H] - 1 + ae) % 28] << (31 - (H % 6))), + ($[4 + ((H / 6) | 0)] |= + W[28 + ((c[H + 24] - 1 + ae) % 28)] << (31 - (H % 6))); + $[0] = ($[0] << 1) | ($[0] >>> 31); + for (var H = 1; H < 7; H++) $[H] = $[H] >>> ((H - 1) * 4 + 3); + $[7] = ($[7] << 5) | ($[7] >>> 27); + } + for (var Y = (this._invSubKeys = []), H = 0; H < 16; H++) + Y[H] = V[15 - H]; + }, + encryptBlock: function (O, D) { + this._doCryptBlock(O, D, this._subKeys); + }, + decryptBlock: function (O, D) { + this._doCryptBlock(O, D, this._invSubKeys); + }, + _doCryptBlock: function (O, D, W) { + (this._lBlock = O[D]), + (this._rBlock = O[D + 1]), + C.call(this, 4, 252645135), + C.call(this, 16, 65535), + I.call(this, 2, 858993459), + I.call(this, 8, 16711935), + C.call(this, 1, 1431655765); + for (var H = 0; H < 16; H++) { + for ( + var j = W[H], + V = this._lBlock, + te = this._rBlock, + $ = 0, + ae = 0; + ae < 8; + ae++ + ) + $ |= d[ae][((te ^ j[ae]) & m[ae]) >>> 0]; + (this._lBlock = te), (this._rBlock = V ^ $); + } + var Y = this._lBlock; + (this._lBlock = this._rBlock), + (this._rBlock = Y), + C.call(this, 1, 1431655765), + I.call(this, 8, 16711935), + I.call(this, 2, 858993459), + C.call(this, 16, 65535), + C.call(this, 4, 252645135), + (O[D] = this._lBlock), + (O[D + 1] = this._rBlock); + }, + keySize: 64 / 32, + ivSize: 64 / 32, + blockSize: 64 / 32, + })); + function C(O, D) { + var W = ((this._lBlock >>> O) ^ this._rBlock) & D; + (this._rBlock ^= W), (this._lBlock ^= W << O); + } + function I(O, D) { + var W = ((this._rBlock >>> O) ^ this._lBlock) & D; + (this._lBlock ^= W), (this._rBlock ^= W << O); + } + e.DES = a._createHelper(w); + var k = (i.TripleDES = a.extend({ + _doReset: function () { + var O = this._key, + D = O.words; + (this._des1 = w.createEncryptor(n.create(D.slice(0, 2)))), + (this._des2 = w.createEncryptor(n.create(D.slice(2, 4)))), + (this._des3 = w.createEncryptor(n.create(D.slice(4, 6)))); + }, + encryptBlock: function (O, D) { + this._des1.encryptBlock(O, D), + this._des2.decryptBlock(O, D), + this._des3.encryptBlock(O, D); + }, + decryptBlock: function (O, D) { + this._des3.decryptBlock(O, D), + this._des2.encryptBlock(O, D), + this._des1.decryptBlock(O, D); + }, + keySize: 192 / 32, + ivSize: 64 / 32, + blockSize: 64 / 32, + })); + e.TripleDES = a._createHelper(k); + })(), + r.TripleDES + ); + }); + }); + var Bqe = N((sM, Rqe) => { + _(); + x(); + (function (r, e, t) { + typeof sM == "object" + ? (Rqe.exports = sM = e(wn(), Bg(), Ng(), o0(), Bs())) + : typeof define == "function" && define.amd + ? define( + ["./core", "./enc-base64", "./md5", "./evpkdf", "./cipher-core"], + e + ) + : e(r.CryptoJS); + })(sM, function (r) { + return ( + (function () { + var e = r, + t = e.lib, + n = t.StreamCipher, + a = e.algo, + i = (a.RC4 = n.extend({ + _doReset: function () { + for ( + var l = this._key, + d = l.words, + m = l.sigBytes, + w = (this._S = []), + C = 0; + C < 256; + C++ + ) + w[C] = C; + for (var C = 0, I = 0; C < 256; C++) { + var k = C % m, + O = (d[k >>> 2] >>> (24 - (k % 4) * 8)) & 255; + I = (I + w[C] + O) % 256; + var D = w[C]; + (w[C] = w[I]), (w[I] = D); + } + this._i = this._j = 0; + }, + _doProcessBlock: function (l, d) { + l[d] ^= s.call(this); + }, + keySize: 256 / 32, + ivSize: 0, + })); + function s() { + for ( + var l = this._S, d = this._i, m = this._j, w = 0, C = 0; + C < 4; + C++ + ) { + (d = (d + 1) % 256), (m = (m + l[d]) % 256); + var I = l[d]; + (l[d] = l[m]), + (l[m] = I), + (w |= l[(l[d] + l[m]) % 256] << (24 - C * 8)); + } + return (this._i = d), (this._j = m), w; + } + e.RC4 = n._createHelper(i); + var c = (a.RC4Drop = i.extend({ + cfg: i.cfg.extend({ drop: 192 }), + _doReset: function () { + i._doReset.call(this); + for (var l = this.cfg.drop; l > 0; l--) s.call(this); + }, + })); + e.RC4Drop = n._createHelper(c); + })(), + r.RC4 + ); + }); + }); + var Oqe = N((oM, Nqe) => { + _(); + x(); + (function (r, e, t) { + typeof oM == "object" + ? (Nqe.exports = oM = e(wn(), Bg(), Ng(), o0(), Bs())) + : typeof define == "function" && define.amd + ? define( + ["./core", "./enc-base64", "./md5", "./evpkdf", "./cipher-core"], + e + ) + : e(r.CryptoJS); + })(oM, function (r) { + return ( + (function () { + var e = r, + t = e.lib, + n = t.StreamCipher, + a = e.algo, + i = [], + s = [], + c = [], + l = (a.Rabbit = n.extend({ + _doReset: function () { + for ( + var m = this._key.words, w = this.cfg.iv, C = 0; + C < 4; + C++ + ) + m[C] = + (((m[C] << 8) | (m[C] >>> 24)) & 16711935) | + (((m[C] << 24) | (m[C] >>> 8)) & 4278255360); + var I = (this._X = [ + m[0], + (m[3] << 16) | (m[2] >>> 16), + m[1], + (m[0] << 16) | (m[3] >>> 16), + m[2], + (m[1] << 16) | (m[0] >>> 16), + m[3], + (m[2] << 16) | (m[1] >>> 16), + ]), + k = (this._C = [ + (m[2] << 16) | (m[2] >>> 16), + (m[0] & 4294901760) | (m[1] & 65535), + (m[3] << 16) | (m[3] >>> 16), + (m[1] & 4294901760) | (m[2] & 65535), + (m[0] << 16) | (m[0] >>> 16), + (m[2] & 4294901760) | (m[3] & 65535), + (m[1] << 16) | (m[1] >>> 16), + (m[3] & 4294901760) | (m[0] & 65535), + ]); + this._b = 0; + for (var C = 0; C < 4; C++) d.call(this); + for (var C = 0; C < 8; C++) k[C] ^= I[(C + 4) & 7]; + if (w) { + var O = w.words, + D = O[0], + W = O[1], + H = + (((D << 8) | (D >>> 24)) & 16711935) | + (((D << 24) | (D >>> 8)) & 4278255360), + j = + (((W << 8) | (W >>> 24)) & 16711935) | + (((W << 24) | (W >>> 8)) & 4278255360), + V = (H >>> 16) | (j & 4294901760), + te = (j << 16) | (H & 65535); + (k[0] ^= H), + (k[1] ^= V), + (k[2] ^= j), + (k[3] ^= te), + (k[4] ^= H), + (k[5] ^= V), + (k[6] ^= j), + (k[7] ^= te); + for (var C = 0; C < 4; C++) d.call(this); + } + }, + _doProcessBlock: function (m, w) { + var C = this._X; + d.call(this), + (i[0] = C[0] ^ (C[5] >>> 16) ^ (C[3] << 16)), + (i[1] = C[2] ^ (C[7] >>> 16) ^ (C[5] << 16)), + (i[2] = C[4] ^ (C[1] >>> 16) ^ (C[7] << 16)), + (i[3] = C[6] ^ (C[3] >>> 16) ^ (C[1] << 16)); + for (var I = 0; I < 4; I++) + (i[I] = + (((i[I] << 8) | (i[I] >>> 24)) & 16711935) | + (((i[I] << 24) | (i[I] >>> 8)) & 4278255360)), + (m[w + I] ^= i[I]); + }, + blockSize: 128 / 32, + ivSize: 64 / 32, + })); + function d() { + for (var m = this._X, w = this._C, C = 0; C < 8; C++) s[C] = w[C]; + (w[0] = (w[0] + 1295307597 + this._b) | 0), + (w[1] = + (w[1] + 3545052371 + (w[0] >>> 0 < s[0] >>> 0 ? 1 : 0)) | 0), + (w[2] = + (w[2] + 886263092 + (w[1] >>> 0 < s[1] >>> 0 ? 1 : 0)) | 0), + (w[3] = + (w[3] + 1295307597 + (w[2] >>> 0 < s[2] >>> 0 ? 1 : 0)) | 0), + (w[4] = + (w[4] + 3545052371 + (w[3] >>> 0 < s[3] >>> 0 ? 1 : 0)) | 0), + (w[5] = + (w[5] + 886263092 + (w[4] >>> 0 < s[4] >>> 0 ? 1 : 0)) | 0), + (w[6] = + (w[6] + 1295307597 + (w[5] >>> 0 < s[5] >>> 0 ? 1 : 0)) | 0), + (w[7] = + (w[7] + 3545052371 + (w[6] >>> 0 < s[6] >>> 0 ? 1 : 0)) | 0), + (this._b = w[7] >>> 0 < s[7] >>> 0 ? 1 : 0); + for (var C = 0; C < 8; C++) { + var I = m[C] + w[C], + k = I & 65535, + O = I >>> 16, + D = ((((k * k) >>> 17) + k * O) >>> 15) + O * O, + W = (((I & 4294901760) * I) | 0) + (((I & 65535) * I) | 0); + c[C] = D ^ W; + } + (m[0] = + (c[0] + + ((c[7] << 16) | (c[7] >>> 16)) + + ((c[6] << 16) | (c[6] >>> 16))) | + 0), + (m[1] = (c[1] + ((c[0] << 8) | (c[0] >>> 24)) + c[7]) | 0), + (m[2] = + (c[2] + + ((c[1] << 16) | (c[1] >>> 16)) + + ((c[0] << 16) | (c[0] >>> 16))) | + 0), + (m[3] = (c[3] + ((c[2] << 8) | (c[2] >>> 24)) + c[1]) | 0), + (m[4] = + (c[4] + + ((c[3] << 16) | (c[3] >>> 16)) + + ((c[2] << 16) | (c[2] >>> 16))) | + 0), + (m[5] = (c[5] + ((c[4] << 8) | (c[4] >>> 24)) + c[3]) | 0), + (m[6] = + (c[6] + + ((c[5] << 16) | (c[5] >>> 16)) + + ((c[4] << 16) | (c[4] >>> 16))) | + 0), + (m[7] = (c[7] + ((c[6] << 8) | (c[6] >>> 24)) + c[5]) | 0); + } + e.Rabbit = n._createHelper(l); + })(), + r.Rabbit + ); + }); + }); + var Dqe = N((cM, Lqe) => { + _(); + x(); + (function (r, e, t) { + typeof cM == "object" + ? (Lqe.exports = cM = e(wn(), Bg(), Ng(), o0(), Bs())) + : typeof define == "function" && define.amd + ? define( + ["./core", "./enc-base64", "./md5", "./evpkdf", "./cipher-core"], + e + ) + : e(r.CryptoJS); + })(cM, function (r) { + return ( + (function () { + var e = r, + t = e.lib, + n = t.StreamCipher, + a = e.algo, + i = [], + s = [], + c = [], + l = (a.RabbitLegacy = n.extend({ + _doReset: function () { + var m = this._key.words, + w = this.cfg.iv, + C = (this._X = [ + m[0], + (m[3] << 16) | (m[2] >>> 16), + m[1], + (m[0] << 16) | (m[3] >>> 16), + m[2], + (m[1] << 16) | (m[0] >>> 16), + m[3], + (m[2] << 16) | (m[1] >>> 16), + ]), + I = (this._C = [ + (m[2] << 16) | (m[2] >>> 16), + (m[0] & 4294901760) | (m[1] & 65535), + (m[3] << 16) | (m[3] >>> 16), + (m[1] & 4294901760) | (m[2] & 65535), + (m[0] << 16) | (m[0] >>> 16), + (m[2] & 4294901760) | (m[3] & 65535), + (m[1] << 16) | (m[1] >>> 16), + (m[3] & 4294901760) | (m[0] & 65535), + ]); + this._b = 0; + for (var k = 0; k < 4; k++) d.call(this); + for (var k = 0; k < 8; k++) I[k] ^= C[(k + 4) & 7]; + if (w) { + var O = w.words, + D = O[0], + W = O[1], + H = + (((D << 8) | (D >>> 24)) & 16711935) | + (((D << 24) | (D >>> 8)) & 4278255360), + j = + (((W << 8) | (W >>> 24)) & 16711935) | + (((W << 24) | (W >>> 8)) & 4278255360), + V = (H >>> 16) | (j & 4294901760), + te = (j << 16) | (H & 65535); + (I[0] ^= H), + (I[1] ^= V), + (I[2] ^= j), + (I[3] ^= te), + (I[4] ^= H), + (I[5] ^= V), + (I[6] ^= j), + (I[7] ^= te); + for (var k = 0; k < 4; k++) d.call(this); + } + }, + _doProcessBlock: function (m, w) { + var C = this._X; + d.call(this), + (i[0] = C[0] ^ (C[5] >>> 16) ^ (C[3] << 16)), + (i[1] = C[2] ^ (C[7] >>> 16) ^ (C[5] << 16)), + (i[2] = C[4] ^ (C[1] >>> 16) ^ (C[7] << 16)), + (i[3] = C[6] ^ (C[3] >>> 16) ^ (C[1] << 16)); + for (var I = 0; I < 4; I++) + (i[I] = + (((i[I] << 8) | (i[I] >>> 24)) & 16711935) | + (((i[I] << 24) | (i[I] >>> 8)) & 4278255360)), + (m[w + I] ^= i[I]); + }, + blockSize: 128 / 32, + ivSize: 64 / 32, + })); + function d() { + for (var m = this._X, w = this._C, C = 0; C < 8; C++) s[C] = w[C]; + (w[0] = (w[0] + 1295307597 + this._b) | 0), + (w[1] = + (w[1] + 3545052371 + (w[0] >>> 0 < s[0] >>> 0 ? 1 : 0)) | 0), + (w[2] = + (w[2] + 886263092 + (w[1] >>> 0 < s[1] >>> 0 ? 1 : 0)) | 0), + (w[3] = + (w[3] + 1295307597 + (w[2] >>> 0 < s[2] >>> 0 ? 1 : 0)) | 0), + (w[4] = + (w[4] + 3545052371 + (w[3] >>> 0 < s[3] >>> 0 ? 1 : 0)) | 0), + (w[5] = + (w[5] + 886263092 + (w[4] >>> 0 < s[4] >>> 0 ? 1 : 0)) | 0), + (w[6] = + (w[6] + 1295307597 + (w[5] >>> 0 < s[5] >>> 0 ? 1 : 0)) | 0), + (w[7] = + (w[7] + 3545052371 + (w[6] >>> 0 < s[6] >>> 0 ? 1 : 0)) | 0), + (this._b = w[7] >>> 0 < s[7] >>> 0 ? 1 : 0); + for (var C = 0; C < 8; C++) { + var I = m[C] + w[C], + k = I & 65535, + O = I >>> 16, + D = ((((k * k) >>> 17) + k * O) >>> 15) + O * O, + W = (((I & 4294901760) * I) | 0) + (((I & 65535) * I) | 0); + c[C] = D ^ W; + } + (m[0] = + (c[0] + + ((c[7] << 16) | (c[7] >>> 16)) + + ((c[6] << 16) | (c[6] >>> 16))) | + 0), + (m[1] = (c[1] + ((c[0] << 8) | (c[0] >>> 24)) + c[7]) | 0), + (m[2] = + (c[2] + + ((c[1] << 16) | (c[1] >>> 16)) + + ((c[0] << 16) | (c[0] >>> 16))) | + 0), + (m[3] = (c[3] + ((c[2] << 8) | (c[2] >>> 24)) + c[1]) | 0), + (m[4] = + (c[4] + + ((c[3] << 16) | (c[3] >>> 16)) + + ((c[2] << 16) | (c[2] >>> 16))) | + 0), + (m[5] = (c[5] + ((c[4] << 8) | (c[4] >>> 24)) + c[3]) | 0), + (m[6] = + (c[6] + + ((c[5] << 16) | (c[5] >>> 16)) + + ((c[4] << 16) | (c[4] >>> 16))) | + 0), + (m[7] = (c[7] + ((c[6] << 8) | (c[6] >>> 24)) + c[5]) | 0); + } + e.RabbitLegacy = n._createHelper(l); + })(), + r.RabbitLegacy + ); + }); + }); + var Fqe = N((uM, qqe) => { + _(); + x(); + (function (r, e, t) { + typeof uM == "object" + ? (qqe.exports = uM = + e( + wn(), + z5(), + WDe(), + HDe(), + Bg(), + Ng(), + LS(), + H5(), + GDe(), + yz(), + JDe(), + QDe(), + eqe(), + zS(), + nqe(), + o0(), + Bs(), + oqe(), + uqe(), + dqe(), + hqe(), + mqe(), + gqe(), + vqe(), + _qe(), + Tqe(), + Cqe(), + Aqe(), + Sqe(), + Pqe(), + Bqe(), + Oqe(), + Dqe() + )) + : typeof define == "function" && define.amd + ? define( + [ + "./core", + "./x64-core", + "./lib-typedarrays", + "./enc-utf16", + "./enc-base64", + "./md5", + "./sha1", + "./sha256", + "./sha224", + "./sha512", + "./sha384", + "./sha3", + "./ripemd160", + "./hmac", + "./pbkdf2", + "./evpkdf", + "./cipher-core", + "./mode-cfb", + "./mode-ctr", + "./mode-ctr-gladman", + "./mode-ofb", + "./mode-ecb", + "./pad-ansix923", + "./pad-iso10126", + "./pad-iso97971", + "./pad-zeropadding", + "./pad-nopadding", + "./format-hex", + "./aes", + "./tripledes", + "./rc4", + "./rabbit", + "./rabbit-legacy", + ], + e + ) + : (r.CryptoJS = e(r.CryptoJS)); + })(uM, function (r) { + return r; + }); + }); + var bz = N((Og) => { + "use strict"; + _(); + x(); + var grr = + (Og && Og.__importDefault) || + function (r) { + return r && r.__esModule ? r : { default: r }; + }; + Object.defineProperty(Og, "__esModule", { value: !0 }); + Og.Base = void 0; + var Hl = Hi(), + gz = grr(Fqe()), + sh = class { + print() { + sh.print(this); + } + _bufferIndexOf(e, t) { + for (let n = 0; n < e.length; n++) if (t.equals(e[n])) return n; + return -1; + } + static bufferify(e) { + if (!Hl.Buffer.isBuffer(e)) { + if (typeof e == "object" && e.words) + return Hl.Buffer.from(e.toString(gz.default.enc.Hex), "hex"); + if (sh.isHexString(e)) + return Hl.Buffer.from(e.replace(/^0x/, ""), "hex"); + if (typeof e == "string") return Hl.Buffer.from(e); + if (typeof e == "number") { + let t = e.toString(); + return t.length % 2 && (t = `0${t}`), Hl.Buffer.from(t, "hex"); + } else if (ArrayBuffer.isView(e)) + return Hl.Buffer.from(e.buffer, e.byteOffset, e.byteLength); + } + return e; + } + static isHexString(e) { + return typeof e == "string" && /^(0x)?[0-9A-Fa-f]*$/.test(e); + } + static print(e) { + console.log(e.toString()); + } + bufferToHex(e, t = !0) { + return sh.bufferToHex(e, t); + } + static bufferToHex(e, t = !0) { + return `${t ? "0x" : ""}${(e || Hl.Buffer.alloc(0)).toString("hex")}`; + } + bufferify(e) { + return sh.bufferify(e); + } + bufferifyFn(e) { + return (t) => { + let n = e(t); + return Hl.Buffer.isBuffer(n) + ? n + : this._isHexString(n) + ? Hl.Buffer.from(n.replace("0x", ""), "hex") + : typeof n == "string" + ? Hl.Buffer.from(n) + : ArrayBuffer.isView(n) + ? Hl.Buffer.from(n.buffer, n.byteOffset, n.byteLength) + : Hl.Buffer.from( + e(gz.default.enc.Hex.parse(t.toString("hex"))).toString( + gz.default.enc.Hex + ), + "hex" + ); + }; + } + _isHexString(e) { + return sh.isHexString(e); + } + _log2(e) { + return e === 1 ? 0 : 1 + this._log2((e / 2) | 0); + } + _zip(e, t) { + return e.map((n, a) => [n, t[a]]); + } + }; + Og.Base = sh; + Og.default = sh; + }); + var Uqe = N((Lg) => { + "use strict"; + _(); + x(); + var lM = + (Lg && Lg.__importDefault) || + function (r) { + return r && r.__esModule ? r : { default: r }; + }; + Object.defineProperty(Lg, "__esModule", { value: !0 }); + Lg.MerkleTree = void 0; + var ai = Hi(), + Cf = lM(BDe()), + Wqe = lM(H5()), + brr = lM(DDe()), + vrr = lM(bz()), + nu = class extends vrr.default { + constructor(e, t = Wqe.default, n = {}) { + if ( + (super(), + (this.duplicateOdd = !1), + (this.hashLeaves = !1), + (this.isBitcoinTree = !1), + (this.leaves = []), + (this.layers = []), + (this.sortLeaves = !1), + (this.sortPairs = !1), + (this.sort = !1), + (this.fillDefaultHash = null), + (this.isBitcoinTree = !!n.isBitcoinTree), + (this.hashLeaves = !!n.hashLeaves), + (this.sortLeaves = !!n.sortLeaves), + (this.sortPairs = !!n.sortPairs), + n.fillDefaultHash) + ) + if (typeof n.fillDefaultHash == "function") + this.fillDefaultHash = n.fillDefaultHash; + else if ( + ai.Buffer.isBuffer(n.fillDefaultHash) || + typeof n.fillDefaultHash == "string" + ) + this.fillDefaultHash = (a, i) => n.fillDefaultHash; + else + throw new Error( + 'method "fillDefaultHash" must be a function, Buffer, or string' + ); + (this.sort = !!n.sort), + this.sort && ((this.sortLeaves = !0), (this.sortPairs = !0)), + (this.duplicateOdd = !!n.duplicateOdd), + (this.hashFn = this.bufferifyFn(t)), + this.processLeaves(e); + } + processLeaves(e) { + if ( + (this.hashLeaves && (e = e.map(this.hashFn)), + (this.leaves = e.map(this.bufferify)), + this.sortLeaves && + (this.leaves = this.leaves.sort(ai.Buffer.compare)), + this.fillDefaultHash) + ) + for ( + let t = 0; + t < Math.pow(2, Math.ceil(Math.log2(this.leaves.length))); + t++ + ) + t >= this.leaves.length && + this.leaves.push( + this.bufferify(this.fillDefaultHash(t, this.hashFn)) + ); + (this.layers = [this.leaves]), this._createHashes(this.leaves); + } + _createHashes(e) { + for (; e.length > 1; ) { + let t = this.layers.length; + this.layers.push([]); + for (let n = 0; n < e.length; n += 2) { + if (n + 1 === e.length && e.length % 2 === 1) { + let d = e[e.length - 1], + m = d; + if (this.isBitcoinTree) { + (d = ai.Buffer.concat([Cf.default(d), Cf.default(d)])), + (m = this.hashFn(d)), + (m = Cf.default(this.hashFn(m))), + this.layers[t].push(m); + continue; + } else if (!this.duplicateOdd) { + this.layers[t].push(e[n]); + continue; + } + } + let a = e[n], + i = n + 1 === e.length ? a : e[n + 1], + s = null, + c = null; + this.isBitcoinTree + ? (c = [Cf.default(a), Cf.default(i)]) + : (c = [a, i]), + this.sortPairs && c.sort(ai.Buffer.compare), + (s = ai.Buffer.concat(c)); + let l = this.hashFn(s); + this.isBitcoinTree && (l = Cf.default(this.hashFn(l))), + this.layers[t].push(l); + } + e = this.layers[t]; + } + } + addLeaf(e, t = !1) { + t && (e = this.hashFn(e)), this.processLeaves(this.leaves.concat(e)); + } + addLeaves(e, t = !1) { + t && (e = e.map(this.hashFn)), + this.processLeaves(this.leaves.concat(e)); + } + getLeaves(e) { + return Array.isArray(e) + ? (this.hashLeaves && + ((e = e.map(this.hashFn)), + this.sortLeaves && (e = e.sort(ai.Buffer.compare))), + this.leaves.filter((t) => this._bufferIndexOf(e, t) !== -1)) + : this.leaves; + } + getLeaf(e) { + return e < 0 || e > this.leaves.length - 1 + ? ai.Buffer.from([]) + : this.leaves[e]; + } + getLeafIndex(e) { + e = this.bufferify(e); + let t = this.getLeaves(); + for (let n = 0; n < t.length; n++) if (t[n].equals(e)) return n; + return -1; + } + getLeafCount() { + return this.leaves.length; + } + getHexLeaves() { + return this.leaves.map((e) => this.bufferToHex(e)); + } + static marshalLeaves(e) { + return JSON.stringify( + e.map((t) => nu.bufferToHex(t)), + null, + 2 + ); + } + static unmarshalLeaves(e) { + let t = null; + if (typeof e == "string") t = JSON.parse(e); + else if (e instanceof Object) t = e; + else throw new Error("Expected type of string or object"); + if (!t) return []; + if (!Array.isArray(t)) + throw new Error("Expected JSON string to be array"); + return t.map(nu.bufferify); + } + getLayers() { + return this.layers; + } + getHexLayers() { + return this.layers.reduce( + (e, t) => ( + Array.isArray(t) + ? e.push(t.map((n) => this.bufferToHex(n))) + : e.push(t), + e + ), + [] + ); + } + getLayersFlat() { + let e = this.layers.reduce( + (t, n) => (Array.isArray(n) ? t.unshift(...n) : t.unshift(n), t), + [] + ); + return e.unshift(ai.Buffer.from([0])), e; + } + getHexLayersFlat() { + return this.getLayersFlat().map((e) => this.bufferToHex(e)); + } + getLayerCount() { + return this.getLayers().length; + } + getRoot() { + return this.layers.length === 0 + ? ai.Buffer.from([]) + : this.layers[this.layers.length - 1][0] || ai.Buffer.from([]); + } + getHexRoot() { + return this.bufferToHex(this.getRoot()); + } + getProof(e, t) { + if (typeof e > "u") throw new Error("leaf is required"); + e = this.bufferify(e); + let n = []; + if (!Number.isInteger(t)) { + t = -1; + for (let a = 0; a < this.leaves.length; a++) + ai.Buffer.compare(e, this.leaves[a]) === 0 && (t = a); + } + if (t <= -1) return []; + for (let a = 0; a < this.layers.length; a++) { + let i = this.layers[a], + s = t % 2, + c = s + ? t - 1 + : this.isBitcoinTree && + t === i.length - 1 && + a < this.layers.length - 1 + ? t + : t + 1; + c < i.length && + n.push({ position: s ? "left" : "right", data: i[c] }), + (t = (t / 2) | 0); + } + return n; + } + getHexProof(e, t) { + return this.getProof(e, t).map((n) => this.bufferToHex(n.data)); + } + getPositionalHexProof(e, t) { + return this.getProof(e, t).map((n) => [ + n.position === "left" ? 0 : 1, + this.bufferToHex(n.data), + ]); + } + static marshalProof(e) { + let t = e.map((n) => + typeof n == "string" + ? n + : ai.Buffer.isBuffer(n) + ? nu.bufferToHex(n) + : { position: n.position, data: nu.bufferToHex(n.data) } + ); + return JSON.stringify(t, null, 2); + } + static unmarshalProof(e) { + let t = null; + if (typeof e == "string") t = JSON.parse(e); + else if (e instanceof Object) t = e; + else throw new Error("Expected type of string or object"); + if (!t) return []; + if (!Array.isArray(t)) + throw new Error("Expected JSON string to be array"); + return t.map((n) => { + if (typeof n == "string") return nu.bufferify(n); + if (n instanceof Object) + return { position: n.position, data: nu.bufferify(n.data) }; + throw new Error("Expected item to be of type string or object"); + }); + } + getProofIndices(e, t) { + let n = Math.pow(2, t), + a = new Set(); + for (let d of e) { + let m = n + d; + for (; m > 1; ) a.add(m ^ 1), (m = (m / 2) | 0); + } + let i = e.map((d) => n + d), + s = Array.from(a) + .sort((d, m) => d - m) + .reverse(); + a = i.concat(s); + let c = new Set(), + l = []; + for (let d of a) + if (!c.has(d)) + for (l.push(d); d > 1 && (c.add(d), !!c.has(d ^ 1)); ) + d = (d / 2) | 0; + return l.filter((d) => !e.includes(d - n)); + } + getProofIndicesForUnevenTree(e, t) { + let n = Math.ceil(Math.log2(t)), + a = []; + for (let c = 0; c < n; c++) + t % 2 !== 0 && a.push({ index: c, leavesCount: t }), + (t = Math.ceil(t / 2)); + let i = [], + s = e; + for (let c = 0; c < n; c++) { + let d = s + .map((w) => (w % 2 === 0 ? w + 1 : w - 1)) + .filter((w) => !s.includes(w)), + m = a.find(({ index: w }) => w === c); + m && s.includes(m.leavesCount - 1) && (d = d.slice(0, -1)), + i.push(d), + (s = [ + ...new Set( + s.map((w) => + w % 2 === 0 + ? w / 2 + : w % 2 === 0 + ? (w + 1) / 2 + : (w - 1) / 2 + ) + ), + ]); + } + return i; + } + getMultiProof(e, t) { + if ( + (t || ((t = e), (e = this.getLayersFlat())), + this.isUnevenTree() && t.every(Number.isInteger)) + ) + return this.getMultiProofForUnevenTree(t); + if (!t.every(Number.isInteger)) { + let a = t; + this.sortPairs && (a = a.sort(ai.Buffer.compare)); + let i = a + .map((d) => this._bufferIndexOf(this.leaves, d)) + .sort((d, m) => (d === m ? 0 : d > m ? 1 : -1)); + if (!i.every((d) => d !== -1)) + throw new Error("Element does not exist in Merkle tree"); + let s = [], + c = [], + l = []; + for (let d = 0; d < this.layers.length; d++) { + let m = this.layers[d]; + for (let w = 0; w < i.length; w++) { + let C = i[w], + I = this._getPairNode(m, C); + s.push(m[C]), I && c.push(I), l.push((C / 2) | 0); + } + (i = l.filter((w, C, I) => I.indexOf(w) === C)), (l = []); + } + return c.filter((d) => !s.includes(d)); + } + return this.getProofIndices(t, this._log2((e.length / 2) | 0)).map( + (a) => e[a] + ); + } + getMultiProofForUnevenTree(e, t) { + t || ((t = e), (e = this.getLayers())); + let n = [], + a = t; + for (let i of e) { + let s = []; + for (let l of a) { + if (l % 2 === 0) { + let m = l + 1; + if (!a.includes(m) && i[m]) { + s.push(i[m]); + continue; + } + } + let d = l - 1; + if (!a.includes(d) && i[d]) { + s.push(i[d]); + continue; + } + } + n = n.concat(s); + let c = new Set(); + for (let l of a) { + if (l % 2 === 0) { + c.add(l / 2); + continue; + } + if (l % 2 === 0) { + c.add((l + 1) / 2); + continue; + } + c.add((l - 1) / 2); + } + a = Array.from(c); + } + return n; + } + getHexMultiProof(e, t) { + return this.getMultiProof(e, t).map((n) => this.bufferToHex(n)); + } + getProofFlags(e, t) { + if (!Array.isArray(e) || e.length <= 0) + throw new Error("Invalid Inputs!"); + let n; + if ( + (e.every(Number.isInteger) + ? (n = e.sort((c, l) => (c === l ? 0 : c > l ? 1 : -1))) + : (n = e + .map((c) => this._bufferIndexOf(this.leaves, c)) + .sort((c, l) => (c === l ? 0 : c > l ? 1 : -1))), + !n.every((c) => c !== -1)) + ) + throw new Error("Element does not exist in Merkle tree"); + let a = t.map((c) => this.bufferify(c)), + i = [], + s = []; + for (let c = 0; c < this.layers.length; c++) { + let l = this.layers[c]; + n = n.reduce((d, m) => { + if (!i.includes(l[m])) { + let C = this._getPairNode(l, m), + I = a.includes(l[m]) || a.includes(C); + C && s.push(!I), i.push(l[m]), i.push(C); + } + return d.push((m / 2) | 0), d; + }, []); + } + return s; + } + verify(e, t, n) { + let a = this.bufferify(t); + if (((n = this.bufferify(n)), !Array.isArray(e) || !t || !n)) + return !1; + for (let i = 0; i < e.length; i++) { + let s = e[i], + c = null, + l = null; + if (typeof s == "string") (c = this.bufferify(s)), (l = !0); + else if (Array.isArray(s)) + (l = s[0] === 0), (c = this.bufferify(s[1])); + else if (ai.Buffer.isBuffer(s)) (c = s), (l = !0); + else if (s instanceof Object) + (c = this.bufferify(s.data)), (l = s.position === "left"); + else + throw new Error("Expected node to be of type string or object"); + let d = []; + this.isBitcoinTree + ? (d.push(Cf.default(a)), + d[l ? "unshift" : "push"](Cf.default(c)), + (a = this.hashFn(ai.Buffer.concat(d))), + (a = Cf.default(this.hashFn(a)))) + : this.sortPairs + ? ai.Buffer.compare(a, c) === -1 + ? (d.push(a, c), (a = this.hashFn(ai.Buffer.concat(d)))) + : (d.push(c, a), (a = this.hashFn(ai.Buffer.concat(d)))) + : (d.push(a), + d[l ? "unshift" : "push"](c), + (a = this.hashFn(ai.Buffer.concat(d)))); + } + return ai.Buffer.compare(a, n) === 0; + } + verifyMultiProof(e, t, n, a, i) { + if (this.isUnevenTree()) + return this.verifyMultiProofForUnevenTree(e, t, n, a, i); + let c = Math.ceil(Math.log2(a)); + (e = this.bufferify(e)), + (n = n.map((w) => this.bufferify(w))), + (i = i.map((w) => this.bufferify(w))); + let l = {}; + for (let [w, C] of this._zip(t, n)) l[Math.pow(2, c) + w] = C; + for (let [w, C] of this._zip(this.getProofIndices(t, c), i)) l[w] = C; + let d = Object.keys(l) + .map((w) => +w) + .sort((w, C) => w - C); + d = d.slice(0, d.length - 1); + let m = 0; + for (; m < d.length; ) { + let w = d[m]; + if (w >= 2 && {}.hasOwnProperty.call(l, w ^ 1)) { + let C = [l[w - (w % 2)], l[w - (w % 2) + 1]]; + this.sortPairs && (C = C.sort(ai.Buffer.compare)); + let I = C[1] ? this.hashFn(ai.Buffer.concat(C)) : C[0]; + (l[(w / 2) | 0] = I), d.push((w / 2) | 0); + } + m += 1; + } + return !t.length || ({}.hasOwnProperty.call(l, 1) && l[1].equals(e)); + } + verifyMultiProofWithFlags(e, t, n, a) { + (e = this.bufferify(e)), + (t = t.map(this.bufferify)), + (n = n.map(this.bufferify)); + let i = t.length, + s = a.length, + c = [], + l = 0, + d = 0, + m = 0; + for (let w = 0; w < s; w++) { + let C = a[w] ? (l < i ? t[l++] : c[d++]) : n[m++], + I = l < i ? t[l++] : c[d++], + k = [C, I].sort(ai.Buffer.compare); + c[w] = this.hashFn(ai.Buffer.concat(k)); + } + return ai.Buffer.compare(c[s - 1], e) === 0; + } + verifyMultiProofForUnevenTree(e, t, n, a, i) { + (e = this.bufferify(e)), + (n = n.map((c) => this.bufferify(c))), + (i = i.map((c) => this.bufferify(c))); + let s = this.calculateRootForUnevenTree(t, n, a, i); + return e.equals(s); + } + getDepth() { + return this.getLayers().length - 1; + } + getLayersAsObject() { + let e = this.getLayers().map((n) => + n.map((a) => this.bufferToHex(a, !1)) + ), + t = []; + for (let n = 0; n < e.length; n++) { + let a = []; + for (let i = 0; i < e[n].length; i++) { + let s = { [e[n][i]]: null }; + if (t.length) { + s[e[n][i]] = {}; + let c = t.shift(), + l = Object.keys(c)[0]; + if (((s[e[n][i]][l] = c[l]), t.length)) { + let d = t.shift(), + m = Object.keys(d)[0]; + s[e[n][i]][m] = d[m]; + } + } + a.push(s); + } + t.push(...a); + } + return t[0]; + } + static verify(e, t, n, a = Wqe.default, i = {}) { + return new nu([], a, i).verify(e, t, n); + } + static getMultiProof(e, t) { + return new nu([]).getMultiProof(e, t); + } + resetTree() { + (this.leaves = []), (this.layers = []); + } + _getPairNode(e, t) { + let n = t % 2 === 0 ? t + 1 : t - 1; + return n < e.length ? e[n] : null; + } + _toTreeString() { + let e = this.getLayersAsObject(); + return brr.default.asTree(e, !0); + } + toString() { + return this._toTreeString(); + } + isUnevenTree(e) { + let t = e?.length || this.getDepth(); + return !this.isPowOf2(t); + } + isPowOf2(e) { + return e && !(e & (e - 1)); + } + calculateRootForUnevenTree(e, t, n, a) { + let i = this._zip(e, t).sort(([w], [C]) => w - C), + s = i.map(([w]) => w), + c = this.getProofIndicesForUnevenTree(s, n), + l = 0, + d = []; + for (let w = 0; w < c.length; w++) { + let C = c[w], + I = l; + (l += C.length), (d[w] = this._zip(C, a.slice(I, l))); + } + let m = [i]; + for (let w = 0; w < d.length; w++) { + let C = d[w] + .concat(m[w]) + .sort(([D], [W]) => D - W) + .map(([, D]) => D), + I = m[w].map(([D]) => D), + k = [ + ...new Set( + I.map((D) => + D % 2 === 0 + ? D / 2 + : D % 2 === 0 + ? (D + 1) / 2 + : (D - 1) / 2 + ) + ), + ], + O = []; + for (let D = 0; D < k.length; D++) { + let W = k[D], + H = C[D * 2], + j = C[D * 2 + 1], + V = j ? this.hashFn(ai.Buffer.concat([H, j])) : H; + O.push([W, V]); + } + m.push(O); + } + return m[m.length - 1][0][1]; + } + }; + Lg.MerkleTree = nu; + typeof window < "u" && (window.MerkleTree = nu); + Lg.default = nu; + }); + var zqe = N((Dg) => { + "use strict"; + _(); + x(); + var Hqe = + (Dg && Dg.__importDefault) || + function (r) { + return r && r.__esModule ? r : { default: r }; + }; + Object.defineProperty(Dg, "__esModule", { value: !0 }); + Dg.MerkleMountainRange = void 0; + var j5 = Hi(), + wrr = Hqe(H5()), + _rr = Hqe(bz()), + dM = class extends _rr.default { + constructor(e = wrr.default, t = [], n, a, i) { + super(), + (this.root = j5.Buffer.alloc(0)), + (this.size = 0), + (this.width = 0), + (this.hashes = {}), + (this.data = {}), + (t = t.map(this.bufferify)), + (this.hashFn = this.bufferifyFn(e)), + (this.hashLeafFn = n), + (this.peakBaggingFn = a), + (this.hashBranchFn = i); + for (let s of t) this.append(s); + } + append(e) { + e = this.bufferify(e); + let t = this.hashFn(e), + n = this.bufferToHex(t); + (!this.data[n] || + this.bufferToHex(this.hashFn(this.data[n])) !== n) && + (this.data[n] = e); + let a = this.hashLeaf(this.size + 1, t); + (this.hashes[this.size + 1] = a), (this.width += 1); + let i = this.getPeakIndexes(this.width); + this.size = this.getSize(this.width); + let s = []; + for (let c = 0; c < i.length; c++) s[c] = this._getOrCreateNode(i[c]); + this.root = this.peakBagging(this.width, s); + } + hashLeaf(e, t) { + return ( + (t = this.bufferify(t)), + this.hashLeafFn + ? this.bufferify(this.hashLeafFn(e, t)) + : this.hashFn(j5.Buffer.concat([this.bufferify(e), t])) + ); + } + hashBranch(e, t, n) { + return this.hashBranchFn + ? this.bufferify(this.hashBranchFn(e, t, n)) + : this.hashFn( + j5.Buffer.concat([ + this.bufferify(e), + this.bufferify(t), + this.bufferify(n), + ]) + ); + } + getPeaks() { + let e = this.getPeakIndexes(this.width), + t = []; + for (let n = 0; n < e.length; n++) t[n] = this.hashes[e[n]]; + return t; + } + getLeafIndex(e) { + return e % 2 === 1 ? this.getSize(e) : this.getSize(e - 1) + 1; + } + getPeakIndexes(e) { + let t = this.numOfPeaks(e), + n = [], + a = 0, + i = 0; + for ( + let s = 255; + s > 0 && + !( + (e & (1 << (s - 1))) !== 0 && + ((i = i + (1 << s) - 1), (n[a++] = i), n.length >= t) + ); + s-- + ); + if (a !== n.length) throw new Error("invalid bit calculation"); + return n; + } + numOfPeaks(e) { + let t = e, + n = 0; + for (; t > 0; ) t % 2 === 1 && n++, (t = t >> 1); + return n; + } + peakBagging(e, t) { + let n = this.getSize(e); + if (this.numOfPeaks(e) !== t.length) + throw new Error("received invalid number of peaks"); + return e === 0 && !t.length + ? j5.Buffer.alloc(0) + : this.peakBaggingFn + ? this.bufferify(this.peakBaggingFn(n, t)) + : this.hashFn( + j5.Buffer.concat([this.bufferify(n), ...t.map(this.bufferify)]) + ); + } + getSize(e) { + return (e << 1) - this.numOfPeaks(e); + } + getRoot() { + return this.root; + } + getHexRoot() { + return this.bufferToHex(this.getRoot()); + } + getNode(e) { + return this.hashes[e]; + } + mountainHeight(e) { + let t = 1; + for (; 1 << t <= e + t; ) t++; + return t - 1; + } + heightAt(e) { + let t = e, + n = 0, + a = 0; + for (; t > n; ) + (t -= (1 << a) - 1), + (a = this.mountainHeight(t)), + (n = (1 << a) - 1); + return a - (n - t); + } + isLeaf(e) { + return this.heightAt(e) === 1; + } + getChildren(e) { + let t = e - (1 << (this.heightAt(e) - 1)), + n = e - 1; + if (t === n) throw new Error("not a parent"); + return [t, n]; + } + getMerkleProof(e) { + if (e > this.size) throw new Error("out of range"); + if (!this.isLeaf(e)) throw new Error("not a leaf"); + let t = this.root, + n = this.width, + a = this.getPeakIndexes(this.width), + i = [], + s = 0; + for (let w = 0; w < a.length; w++) + (i[w] = this.hashes[a[w]]), a[w] >= e && s === 0 && (s = a[w]); + let c = 0, + l = 0, + d = this.heightAt(s), + m = []; + for (; s !== e; ) + d--, + ([c, l] = this.getChildren(s)), + (s = e <= c ? c : l), + (m[d - 1] = this.hashes[e <= c ? l : c]); + return { root: t, width: n, peakBagging: i, siblings: m }; + } + verify(e, t, n, a, i, s) { + if (((a = this.bufferify(a)), this.getSize(t) < n)) + throw new Error("index is out of range"); + if (!e.equals(this.peakBagging(t, i))) + throw new Error("invalid root hash from the peaks"); + let l = 0, + d, + m = this.getPeakIndexes(t); + for (let D = 0; D < m.length; D++) + if (m[D] >= n) { + (d = i[D]), (l = m[D]); + break; + } + if (!d) throw new Error("target not found"); + let w = s.length + 1, + C = new Array(w), + I = 0, + k = 0; + for (; w > 0 && ((C[--w] = l), l !== n); ) + ([I, k] = this.getChildren(l)), (l = n > I ? k : I); + let O; + for (; w < C.length; ) + (l = C[w]), + w === 0 + ? (O = this.hashLeaf(l, this.hashFn(a))) + : l - 1 === C[w - 1] + ? (O = this.hashBranch(l, s[w - 1], O)) + : (O = this.hashBranch(l, O, s[w - 1])), + w++; + if (!O.equals(d)) throw new Error("hashed peak is invalid"); + return !0; + } + peaksToPeakMap(e, t) { + let n = {}, + a = 0, + i = 0, + s = t.length; + for (let c = 1; c <= 32; c++) + (a = 32 - c), + (i = 1 << (c - 1)), + (e & i) !== 0 ? (n[a] = t[--s]) : (n[a] = 0); + if (s !== 0) throw new Error("invalid number of peaks"); + return n; + } + peakMapToPeaks(e, t) { + let n = this.numOfPeaks(e), + a = new Array(n), + i = 0; + for (let s = 0; s < 32; s++) t[s] !== 0 && (a[i++] = t[s]); + if (i !== n) throw new Error("invalid number of peaks"); + return a; + } + peakUpdate(e, t, n) { + let a = {}, + i = e + 1, + s = this.getLeafIndex(i), + c = this.hashLeaf(s, n), + l = 0, + d = 0, + m = !1, + w = !1, + C = !1; + for (let I = 1; I <= 32; I++) + (l = 32 - I), + C + ? (a[l] = t[l]) + : ((d = 1 << (I - 1)), + (m = (e & d) !== 0), + (w = (i & d) !== 0), + s++, + m && (c = this.hashBranch(s, t[l], c)), + w ? (m ? (a[l] = t[l]) : (a[l] = c), (C = !0)) : (a[l] = 0)); + return a; + } + rollUp(e, t, n, a) { + if (!e.equals(this.peakBagging(t, n))) + throw new Error("invalid root hash from the peaks"); + let i = t, + s = this.peaksToPeakMap(t, n); + for (let c = 0; c < a.length; c++) + (s = this.peakUpdate(i, s, a[c])), i++; + return this.peakBagging(i, this.peakMapToPeaks(i, s)); + } + _getOrCreateNode(e) { + if (e > this.size) throw new Error("out of range"); + if (!this.hashes[e]) { + let [t, n] = this.getChildren(e), + a = this._getOrCreateNode(t), + i = this._getOrCreateNode(n); + this.hashes[e] = this.hashBranch(e, a, i); + } + return this.hashes[e]; + } + }; + Dg.MerkleMountainRange = dM; + Dg.default = dM; + }); + var Ra = N((c0) => { + "use strict"; + _(); + x(); + var xrr = + (c0 && c0.__importDefault) || + function (r) { + return r && r.__esModule ? r : { default: r }; + }; + Object.defineProperty(c0, "__esModule", { value: !0 }); + c0.MerkleTree = void 0; + var jqe = xrr(Uqe()); + c0.MerkleTree = jqe.default; + var Trr = zqe(); + Object.defineProperty(c0, "MerkleMountainRange", { + enumerable: !0, + get: function () { + return Trr.MerkleMountainRange; + }, + }); + c0.default = jqe.default; + }); + var Ba = N((ssn, Kqe) => { + "use strict"; + _(); + x(); + Kqe.exports = function r(e, t) { + if (e === t) return !0; + if (e && t && typeof e == "object" && typeof t == "object") { + if (e.constructor !== t.constructor) return !1; + var n, a, i; + if (Array.isArray(e)) { + if (((n = e.length), n != t.length)) return !1; + for (a = n; a-- !== 0; ) if (!r(e[a], t[a])) return !1; + return !0; + } + if (e.constructor === RegExp) + return e.source === t.source && e.flags === t.flags; + if (e.valueOf !== Object.prototype.valueOf) + return e.valueOf() === t.valueOf(); + if (e.toString !== Object.prototype.toString) + return e.toString() === t.toString(); + if (((i = Object.keys(e)), (n = i.length), n !== Object.keys(t).length)) + return !1; + for (a = n; a-- !== 0; ) + if (!Object.prototype.hasOwnProperty.call(t, i[a])) return !1; + for (a = n; a-- !== 0; ) { + var s = i[a]; + if (!r(e[s], t[s])) return !1; + } + return !0; + } + return e !== e && t !== t; + }; + }); + var wz = N((vz) => { + "use strict"; + _(); + x(); + Object.defineProperty(vz, "__esModule", { value: !0 }); + vz.default = Crr; + var pM, + Err = new Uint8Array(16); + function Crr() { + if ( + !pM && + ((pM = + typeof crypto < "u" && + crypto.getRandomValues && + crypto.getRandomValues.bind(crypto)), + !pM) + ) + throw new Error( + "crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported" + ); + return pM(Err); + } + }); + var Vqe = N((hM) => { + "use strict"; + _(); + x(); + Object.defineProperty(hM, "__esModule", { value: !0 }); + hM.default = void 0; + var Irr = + /^(?:[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; + hM.default = Irr; + }); + var K5 = N((fM) => { + "use strict"; + _(); + x(); + Object.defineProperty(fM, "__esModule", { value: !0 }); + fM.default = void 0; + var Arr = krr(Vqe()); + function krr(r) { + return r && r.__esModule ? r : { default: r }; + } + function Srr(r) { + return typeof r == "string" && Arr.default.test(r); + } + var Mrr = Srr; + fM.default = Mrr; + }); + var G5 = N((V5) => { + "use strict"; + _(); + x(); + Object.defineProperty(V5, "__esModule", { value: !0 }); + V5.default = void 0; + V5.unsafeStringify = Gqe; + var Prr = Rrr(K5()); + function Rrr(r) { + return r && r.__esModule ? r : { default: r }; + } + var to = []; + for (let r = 0; r < 256; ++r) to.push((r + 256).toString(16).slice(1)); + function Gqe(r, e = 0) { + return ( + to[r[e + 0]] + + to[r[e + 1]] + + to[r[e + 2]] + + to[r[e + 3]] + + "-" + + to[r[e + 4]] + + to[r[e + 5]] + + "-" + + to[r[e + 6]] + + to[r[e + 7]] + + "-" + + to[r[e + 8]] + + to[r[e + 9]] + + "-" + + to[r[e + 10]] + + to[r[e + 11]] + + to[r[e + 12]] + + to[r[e + 13]] + + to[r[e + 14]] + + to[r[e + 15]] + ).toLowerCase(); + } + function Brr(r, e = 0) { + let t = Gqe(r, e); + if (!(0, Prr.default)(t)) throw TypeError("Stringified UUID is invalid"); + return t; + } + var Nrr = Brr; + V5.default = Nrr; + }); + var $qe = N((mM) => { + "use strict"; + _(); + x(); + Object.defineProperty(mM, "__esModule", { value: !0 }); + mM.default = void 0; + var Orr = Drr(wz()), + Lrr = G5(); + function Drr(r) { + return r && r.__esModule ? r : { default: r }; + } + var Yqe, + _z, + xz = 0, + Tz = 0; + function qrr(r, e, t) { + let n = (e && t) || 0, + a = e || new Array(16); + r = r || {}; + let i = r.node || Yqe, + s = r.clockseq !== void 0 ? r.clockseq : _z; + if (i == null || s == null) { + let C = r.random || (r.rng || Orr.default)(); + i == null && (i = Yqe = [C[0] | 1, C[1], C[2], C[3], C[4], C[5]]), + s == null && (s = _z = ((C[6] << 8) | C[7]) & 16383); + } + let c = r.msecs !== void 0 ? r.msecs : Date.now(), + l = r.nsecs !== void 0 ? r.nsecs : Tz + 1, + d = c - xz + (l - Tz) / 1e4; + if ( + (d < 0 && r.clockseq === void 0 && (s = (s + 1) & 16383), + (d < 0 || c > xz) && r.nsecs === void 0 && (l = 0), + l >= 1e4) + ) + throw new Error("uuid.v1(): Can't create more than 10M uuids/sec"); + (xz = c), (Tz = l), (_z = s), (c += 122192928e5); + let m = ((c & 268435455) * 1e4 + l) % 4294967296; + (a[n++] = (m >>> 24) & 255), + (a[n++] = (m >>> 16) & 255), + (a[n++] = (m >>> 8) & 255), + (a[n++] = m & 255); + let w = ((c / 4294967296) * 1e4) & 268435455; + (a[n++] = (w >>> 8) & 255), + (a[n++] = w & 255), + (a[n++] = ((w >>> 24) & 15) | 16), + (a[n++] = (w >>> 16) & 255), + (a[n++] = (s >>> 8) | 128), + (a[n++] = s & 255); + for (let C = 0; C < 6; ++C) a[n + C] = i[C]; + return e || (0, Lrr.unsafeStringify)(a); + } + var Frr = qrr; + mM.default = Frr; + }); + var Ez = N((yM) => { + "use strict"; + _(); + x(); + Object.defineProperty(yM, "__esModule", { value: !0 }); + yM.default = void 0; + var Wrr = Urr(K5()); + function Urr(r) { + return r && r.__esModule ? r : { default: r }; + } + function Hrr(r) { + if (!(0, Wrr.default)(r)) throw TypeError("Invalid UUID"); + let e, + t = new Uint8Array(16); + return ( + (t[0] = (e = parseInt(r.slice(0, 8), 16)) >>> 24), + (t[1] = (e >>> 16) & 255), + (t[2] = (e >>> 8) & 255), + (t[3] = e & 255), + (t[4] = (e = parseInt(r.slice(9, 13), 16)) >>> 8), + (t[5] = e & 255), + (t[6] = (e = parseInt(r.slice(14, 18), 16)) >>> 8), + (t[7] = e & 255), + (t[8] = (e = parseInt(r.slice(19, 23), 16)) >>> 8), + (t[9] = e & 255), + (t[10] = ((e = parseInt(r.slice(24, 36), 16)) / 1099511627776) & 255), + (t[11] = (e / 4294967296) & 255), + (t[12] = (e >>> 24) & 255), + (t[13] = (e >>> 16) & 255), + (t[14] = (e >>> 8) & 255), + (t[15] = e & 255), + t + ); + } + var zrr = Hrr; + yM.default = zrr; + }); + var Cz = N((qg) => { + "use strict"; + _(); + x(); + Object.defineProperty(qg, "__esModule", { value: !0 }); + qg.URL = qg.DNS = void 0; + qg.default = Yrr; + var jrr = G5(), + Krr = Vrr(Ez()); + function Vrr(r) { + return r && r.__esModule ? r : { default: r }; + } + function Grr(r) { + r = unescape(encodeURIComponent(r)); + let e = []; + for (let t = 0; t < r.length; ++t) e.push(r.charCodeAt(t)); + return e; + } + var Jqe = "6ba7b810-9dad-11d1-80b4-00c04fd430c8"; + qg.DNS = Jqe; + var Zqe = "6ba7b811-9dad-11d1-80b4-00c04fd430c8"; + qg.URL = Zqe; + function Yrr(r, e, t) { + function n(a, i, s, c) { + var l; + if ( + (typeof a == "string" && (a = Grr(a)), + typeof i == "string" && (i = (0, Krr.default)(i)), + ((l = i) === null || l === void 0 ? void 0 : l.length) !== 16) + ) + throw TypeError( + "Namespace must be array-like (16 iterable integer values, 0-255)" + ); + let d = new Uint8Array(16 + a.length); + if ( + (d.set(i), + d.set(a, i.length), + (d = t(d)), + (d[6] = (d[6] & 15) | e), + (d[8] = (d[8] & 63) | 128), + s) + ) { + c = c || 0; + for (let m = 0; m < 16; ++m) s[c + m] = d[m]; + return s; + } + return (0, jrr.unsafeStringify)(d); + } + try { + n.name = r; + } catch {} + return (n.DNS = Jqe), (n.URL = Zqe), n; + } + }); + var Xqe = N((bM) => { + "use strict"; + _(); + x(); + Object.defineProperty(bM, "__esModule", { value: !0 }); + bM.default = void 0; + function $rr(r) { + if (typeof r == "string") { + let e = unescape(encodeURIComponent(r)); + r = new Uint8Array(e.length); + for (let t = 0; t < e.length; ++t) r[t] = e.charCodeAt(t); + } + return Jrr(Zrr(Qrr(r), r.length * 8)); + } + function Jrr(r) { + let e = [], + t = r.length * 32, + n = "0123456789abcdef"; + for (let a = 0; a < t; a += 8) { + let i = (r[a >> 5] >>> a % 32) & 255, + s = parseInt(n.charAt((i >>> 4) & 15) + n.charAt(i & 15), 16); + e.push(s); + } + return e; + } + function Qqe(r) { + return (((r + 64) >>> 9) << 4) + 14 + 1; + } + function Zrr(r, e) { + (r[e >> 5] |= 128 << e % 32), (r[Qqe(e) - 1] = e); + let t = 1732584193, + n = -271733879, + a = -1732584194, + i = 271733878; + for (let s = 0; s < r.length; s += 16) { + let c = t, + l = n, + d = a, + m = i; + (t = Uo(t, n, a, i, r[s], 7, -680876936)), + (i = Uo(i, t, n, a, r[s + 1], 12, -389564586)), + (a = Uo(a, i, t, n, r[s + 2], 17, 606105819)), + (n = Uo(n, a, i, t, r[s + 3], 22, -1044525330)), + (t = Uo(t, n, a, i, r[s + 4], 7, -176418897)), + (i = Uo(i, t, n, a, r[s + 5], 12, 1200080426)), + (a = Uo(a, i, t, n, r[s + 6], 17, -1473231341)), + (n = Uo(n, a, i, t, r[s + 7], 22, -45705983)), + (t = Uo(t, n, a, i, r[s + 8], 7, 1770035416)), + (i = Uo(i, t, n, a, r[s + 9], 12, -1958414417)), + (a = Uo(a, i, t, n, r[s + 10], 17, -42063)), + (n = Uo(n, a, i, t, r[s + 11], 22, -1990404162)), + (t = Uo(t, n, a, i, r[s + 12], 7, 1804603682)), + (i = Uo(i, t, n, a, r[s + 13], 12, -40341101)), + (a = Uo(a, i, t, n, r[s + 14], 17, -1502002290)), + (n = Uo(n, a, i, t, r[s + 15], 22, 1236535329)), + (t = Ho(t, n, a, i, r[s + 1], 5, -165796510)), + (i = Ho(i, t, n, a, r[s + 6], 9, -1069501632)), + (a = Ho(a, i, t, n, r[s + 11], 14, 643717713)), + (n = Ho(n, a, i, t, r[s], 20, -373897302)), + (t = Ho(t, n, a, i, r[s + 5], 5, -701558691)), + (i = Ho(i, t, n, a, r[s + 10], 9, 38016083)), + (a = Ho(a, i, t, n, r[s + 15], 14, -660478335)), + (n = Ho(n, a, i, t, r[s + 4], 20, -405537848)), + (t = Ho(t, n, a, i, r[s + 9], 5, 568446438)), + (i = Ho(i, t, n, a, r[s + 14], 9, -1019803690)), + (a = Ho(a, i, t, n, r[s + 3], 14, -187363961)), + (n = Ho(n, a, i, t, r[s + 8], 20, 1163531501)), + (t = Ho(t, n, a, i, r[s + 13], 5, -1444681467)), + (i = Ho(i, t, n, a, r[s + 2], 9, -51403784)), + (a = Ho(a, i, t, n, r[s + 7], 14, 1735328473)), + (n = Ho(n, a, i, t, r[s + 12], 20, -1926607734)), + (t = zo(t, n, a, i, r[s + 5], 4, -378558)), + (i = zo(i, t, n, a, r[s + 8], 11, -2022574463)), + (a = zo(a, i, t, n, r[s + 11], 16, 1839030562)), + (n = zo(n, a, i, t, r[s + 14], 23, -35309556)), + (t = zo(t, n, a, i, r[s + 1], 4, -1530992060)), + (i = zo(i, t, n, a, r[s + 4], 11, 1272893353)), + (a = zo(a, i, t, n, r[s + 7], 16, -155497632)), + (n = zo(n, a, i, t, r[s + 10], 23, -1094730640)), + (t = zo(t, n, a, i, r[s + 13], 4, 681279174)), + (i = zo(i, t, n, a, r[s], 11, -358537222)), + (a = zo(a, i, t, n, r[s + 3], 16, -722521979)), + (n = zo(n, a, i, t, r[s + 6], 23, 76029189)), + (t = zo(t, n, a, i, r[s + 9], 4, -640364487)), + (i = zo(i, t, n, a, r[s + 12], 11, -421815835)), + (a = zo(a, i, t, n, r[s + 15], 16, 530742520)), + (n = zo(n, a, i, t, r[s + 2], 23, -995338651)), + (t = jo(t, n, a, i, r[s], 6, -198630844)), + (i = jo(i, t, n, a, r[s + 7], 10, 1126891415)), + (a = jo(a, i, t, n, r[s + 14], 15, -1416354905)), + (n = jo(n, a, i, t, r[s + 5], 21, -57434055)), + (t = jo(t, n, a, i, r[s + 12], 6, 1700485571)), + (i = jo(i, t, n, a, r[s + 3], 10, -1894986606)), + (a = jo(a, i, t, n, r[s + 10], 15, -1051523)), + (n = jo(n, a, i, t, r[s + 1], 21, -2054922799)), + (t = jo(t, n, a, i, r[s + 8], 6, 1873313359)), + (i = jo(i, t, n, a, r[s + 15], 10, -30611744)), + (a = jo(a, i, t, n, r[s + 6], 15, -1560198380)), + (n = jo(n, a, i, t, r[s + 13], 21, 1309151649)), + (t = jo(t, n, a, i, r[s + 4], 6, -145523070)), + (i = jo(i, t, n, a, r[s + 11], 10, -1120210379)), + (a = jo(a, i, t, n, r[s + 2], 15, 718787259)), + (n = jo(n, a, i, t, r[s + 9], 21, -343485551)), + (t = u0(t, c)), + (n = u0(n, l)), + (a = u0(a, d)), + (i = u0(i, m)); + } + return [t, n, a, i]; + } + function Qrr(r) { + if (r.length === 0) return []; + let e = r.length * 8, + t = new Uint32Array(Qqe(e)); + for (let n = 0; n < e; n += 8) t[n >> 5] |= (r[n / 8] & 255) << n % 32; + return t; + } + function u0(r, e) { + let t = (r & 65535) + (e & 65535); + return (((r >> 16) + (e >> 16) + (t >> 16)) << 16) | (t & 65535); + } + function Xrr(r, e) { + return (r << e) | (r >>> (32 - e)); + } + function gM(r, e, t, n, a, i) { + return u0(Xrr(u0(u0(e, r), u0(n, i)), a), t); + } + function Uo(r, e, t, n, a, i, s) { + return gM((e & t) | (~e & n), r, e, a, i, s); + } + function Ho(r, e, t, n, a, i, s) { + return gM((e & n) | (t & ~n), r, e, a, i, s); + } + function zo(r, e, t, n, a, i, s) { + return gM(e ^ t ^ n, r, e, a, i, s); + } + function jo(r, e, t, n, a, i, s) { + return gM(t ^ (e | ~n), r, e, a, i, s); + } + var enr = $rr; + bM.default = enr; + }); + var tFe = N((vM) => { + "use strict"; + _(); + x(); + Object.defineProperty(vM, "__esModule", { value: !0 }); + vM.default = void 0; + var tnr = eFe(Cz()), + rnr = eFe(Xqe()); + function eFe(r) { + return r && r.__esModule ? r : { default: r }; + } + var nnr = (0, tnr.default)("v3", 48, rnr.default), + anr = nnr; + vM.default = anr; + }); + var rFe = N((wM) => { + "use strict"; + _(); + x(); + Object.defineProperty(wM, "__esModule", { value: !0 }); + wM.default = void 0; + var inr = + typeof crypto < "u" && + crypto.randomUUID && + crypto.randomUUID.bind(crypto), + snr = { randomUUID: inr }; + wM.default = snr; + }); + var iFe = N((_M) => { + "use strict"; + _(); + x(); + Object.defineProperty(_M, "__esModule", { value: !0 }); + _M.default = void 0; + var nFe = aFe(rFe()), + onr = aFe(wz()), + cnr = G5(); + function aFe(r) { + return r && r.__esModule ? r : { default: r }; + } + function unr(r, e, t) { + if (nFe.default.randomUUID && !e && !r) return nFe.default.randomUUID(); + r = r || {}; + let n = r.random || (r.rng || onr.default)(); + if (((n[6] = (n[6] & 15) | 64), (n[8] = (n[8] & 63) | 128), e)) { + t = t || 0; + for (let a = 0; a < 16; ++a) e[t + a] = n[a]; + return e; + } + return (0, cnr.unsafeStringify)(n); + } + var lnr = unr; + _M.default = lnr; + }); + var sFe = N((xM) => { + "use strict"; + _(); + x(); + Object.defineProperty(xM, "__esModule", { value: !0 }); + xM.default = void 0; + function dnr(r, e, t, n) { + switch (r) { + case 0: + return (e & t) ^ (~e & n); + case 1: + return e ^ t ^ n; + case 2: + return (e & t) ^ (e & n) ^ (t & n); + case 3: + return e ^ t ^ n; + } + } + function Iz(r, e) { + return (r << e) | (r >>> (32 - e)); + } + function pnr(r) { + let e = [1518500249, 1859775393, 2400959708, 3395469782], + t = [1732584193, 4023233417, 2562383102, 271733878, 3285377520]; + if (typeof r == "string") { + let s = unescape(encodeURIComponent(r)); + r = []; + for (let c = 0; c < s.length; ++c) r.push(s.charCodeAt(c)); + } else Array.isArray(r) || (r = Array.prototype.slice.call(r)); + r.push(128); + let n = r.length / 4 + 2, + a = Math.ceil(n / 16), + i = new Array(a); + for (let s = 0; s < a; ++s) { + let c = new Uint32Array(16); + for (let l = 0; l < 16; ++l) + c[l] = + (r[s * 64 + l * 4] << 24) | + (r[s * 64 + l * 4 + 1] << 16) | + (r[s * 64 + l * 4 + 2] << 8) | + r[s * 64 + l * 4 + 3]; + i[s] = c; + } + (i[a - 1][14] = ((r.length - 1) * 8) / Math.pow(2, 32)), + (i[a - 1][14] = Math.floor(i[a - 1][14])), + (i[a - 1][15] = ((r.length - 1) * 8) & 4294967295); + for (let s = 0; s < a; ++s) { + let c = new Uint32Array(80); + for (let I = 0; I < 16; ++I) c[I] = i[s][I]; + for (let I = 16; I < 80; ++I) + c[I] = Iz(c[I - 3] ^ c[I - 8] ^ c[I - 14] ^ c[I - 16], 1); + let l = t[0], + d = t[1], + m = t[2], + w = t[3], + C = t[4]; + for (let I = 0; I < 80; ++I) { + let k = Math.floor(I / 20), + O = (Iz(l, 5) + dnr(k, d, m, w) + C + e[k] + c[I]) >>> 0; + (C = w), (w = m), (m = Iz(d, 30) >>> 0), (d = l), (l = O); + } + (t[0] = (t[0] + l) >>> 0), + (t[1] = (t[1] + d) >>> 0), + (t[2] = (t[2] + m) >>> 0), + (t[3] = (t[3] + w) >>> 0), + (t[4] = (t[4] + C) >>> 0); + } + return [ + (t[0] >> 24) & 255, + (t[0] >> 16) & 255, + (t[0] >> 8) & 255, + t[0] & 255, + (t[1] >> 24) & 255, + (t[1] >> 16) & 255, + (t[1] >> 8) & 255, + t[1] & 255, + (t[2] >> 24) & 255, + (t[2] >> 16) & 255, + (t[2] >> 8) & 255, + t[2] & 255, + (t[3] >> 24) & 255, + (t[3] >> 16) & 255, + (t[3] >> 8) & 255, + t[3] & 255, + (t[4] >> 24) & 255, + (t[4] >> 16) & 255, + (t[4] >> 8) & 255, + t[4] & 255, + ]; + } + var hnr = pnr; + xM.default = hnr; + }); + var cFe = N((TM) => { + "use strict"; + _(); + x(); + Object.defineProperty(TM, "__esModule", { value: !0 }); + TM.default = void 0; + var fnr = oFe(Cz()), + mnr = oFe(sFe()); + function oFe(r) { + return r && r.__esModule ? r : { default: r }; + } + var ynr = (0, fnr.default)("v5", 80, mnr.default), + gnr = ynr; + TM.default = gnr; + }); + var uFe = N((EM) => { + "use strict"; + _(); + x(); + Object.defineProperty(EM, "__esModule", { value: !0 }); + EM.default = void 0; + var bnr = "00000000-0000-0000-0000-000000000000"; + EM.default = bnr; + }); + var lFe = N((CM) => { + "use strict"; + _(); + x(); + Object.defineProperty(CM, "__esModule", { value: !0 }); + CM.default = void 0; + var vnr = wnr(K5()); + function wnr(r) { + return r && r.__esModule ? r : { default: r }; + } + function _nr(r) { + if (!(0, vnr.default)(r)) throw TypeError("Invalid UUID"); + return parseInt(r.slice(14, 15), 16); + } + var xnr = _nr; + CM.default = xnr; + }); + var Na = N((Hd) => { + "use strict"; + _(); + x(); + Object.defineProperty(Hd, "__esModule", { value: !0 }); + Object.defineProperty(Hd, "NIL", { + enumerable: !0, + get: function () { + return Anr.default; + }, + }); + Object.defineProperty(Hd, "parse", { + enumerable: !0, + get: function () { + return Pnr.default; + }, + }); + Object.defineProperty(Hd, "stringify", { + enumerable: !0, + get: function () { + return Mnr.default; + }, + }); + Object.defineProperty(Hd, "v1", { + enumerable: !0, + get: function () { + return Tnr.default; + }, + }); + Object.defineProperty(Hd, "v3", { + enumerable: !0, + get: function () { + return Enr.default; + }, + }); + Object.defineProperty(Hd, "v4", { + enumerable: !0, + get: function () { + return Cnr.default; + }, + }); + Object.defineProperty(Hd, "v5", { + enumerable: !0, + get: function () { + return Inr.default; + }, + }); + Object.defineProperty(Hd, "validate", { + enumerable: !0, + get: function () { + return Snr.default; + }, + }); + Object.defineProperty(Hd, "version", { + enumerable: !0, + get: function () { + return knr.default; + }, + }); + var Tnr = If($qe()), + Enr = If(tFe()), + Cnr = If(iFe()), + Inr = If(cFe()), + Anr = If(uFe()), + knr = If(lFe()), + Snr = If(K5()), + Mnr = If(G5()), + Pnr = If(Ez()); + function If(r) { + return r && r.__esModule ? r : { default: r }; + } + }); + var Oa = N((non, Rnr) => { + Rnr.exports = [ + { + inputs: [], + name: "name", + outputs: [{ internalType: "string", name: "", type: "string" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "symbol", + outputs: [{ internalType: "string", name: "", type: "string" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "uint256", name: "_tokenId", type: "uint256" }, + ], + name: "tokenURI", + outputs: [{ internalType: "string", name: "", type: "string" }], + stateMutability: "view", + type: "function", + }, + ]; + }); + var La = N((aon, Bnr) => { + Bnr.exports = [ + { + inputs: [{ internalType: "uint256", name: "_id", type: "uint256" }], + name: "uri", + outputs: [{ internalType: "string", name: "", type: "string" }], + stateMutability: "view", + type: "function", + }, + ]; + }); + var Da = N((ion, Nnr) => { + Nnr.exports = [ + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "uint256", + name: "index", + type: "uint256", + }, + { + indexed: !1, + internalType: "string", + name: "revealedURI", + type: "string", + }, + ], + name: "TokenURIRevealed", + type: "event", + }, + { + inputs: [ + { internalType: "bytes", name: "data", type: "bytes" }, + { internalType: "bytes", name: "key", type: "bytes" }, + ], + name: "encryptDecrypt", + outputs: [{ internalType: "bytes", name: "result", type: "bytes" }], + stateMutability: "pure", + type: "function", + }, + { + inputs: [ + { internalType: "uint256", name: "identifier", type: "uint256" }, + ], + name: "encryptedBaseURI", + outputs: [{ internalType: "bytes", name: "", type: "bytes" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "uint256", name: "identifier", type: "uint256" }, + { internalType: "bytes", name: "key", type: "bytes" }, + ], + name: "reveal", + outputs: [ + { internalType: "string", name: "revealedURI", type: "string" }, + ], + stateMutability: "nonpayable", + type: "function", + }, + ]; + }); + var qa = N((son, Onr) => { + Onr.exports = [ + { + inputs: [ + { + internalType: "address", + name: "_trustedForwarder", + type: "address", + }, + { internalType: "address", name: "_registry", type: "address" }, + ], + stateMutability: "nonpayable", + type: "constructor", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !1, + internalType: "address", + name: "implementation", + type: "address", + }, + { + indexed: !0, + internalType: "bytes32", + name: "contractType", + type: "bytes32", + }, + { + indexed: !1, + internalType: "uint256", + name: "version", + type: "uint256", + }, + ], + name: "ImplementationAdded", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !1, + internalType: "address", + name: "implementation", + type: "address", + }, + { + indexed: !1, + internalType: "bool", + name: "isApproved", + type: "bool", + }, + ], + name: "ImplementationApproved", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "address", + name: "implementation", + type: "address", + }, + { + indexed: !1, + internalType: "address", + name: "proxy", + type: "address", + }, + { + indexed: !0, + internalType: "address", + name: "deployer", + type: "address", + }, + ], + name: "ProxyDeployed", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "bytes32", + name: "role", + type: "bytes32", + }, + { + indexed: !0, + internalType: "bytes32", + name: "previousAdminRole", + type: "bytes32", + }, + { + indexed: !0, + internalType: "bytes32", + name: "newAdminRole", + type: "bytes32", + }, + ], + name: "RoleAdminChanged", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "bytes32", + name: "role", + type: "bytes32", + }, + { + indexed: !0, + internalType: "address", + name: "account", + type: "address", + }, + { + indexed: !0, + internalType: "address", + name: "sender", + type: "address", + }, + ], + name: "RoleGranted", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "bytes32", + name: "role", + type: "bytes32", + }, + { + indexed: !0, + internalType: "address", + name: "account", + type: "address", + }, + { + indexed: !0, + internalType: "address", + name: "sender", + type: "address", + }, + ], + name: "RoleRevoked", + type: "event", + }, + { + inputs: [], + name: "DEFAULT_ADMIN_ROLE", + outputs: [{ internalType: "bytes32", name: "", type: "bytes32" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "FACTORY_ROLE", + outputs: [{ internalType: "bytes32", name: "", type: "bytes32" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "_implementation", type: "address" }, + ], + name: "addImplementation", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [{ internalType: "address", name: "", type: "address" }], + name: "approval", + outputs: [{ internalType: "bool", name: "", type: "bool" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "_implementation", type: "address" }, + { internalType: "bool", name: "_toApprove", type: "bool" }, + ], + name: "approveImplementation", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [{ internalType: "bytes32", name: "", type: "bytes32" }], + name: "currentVersion", + outputs: [{ internalType: "uint256", name: "", type: "uint256" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "bytes32", name: "_type", type: "bytes32" }, + { internalType: "bytes", name: "_data", type: "bytes" }, + ], + name: "deployProxy", + outputs: [{ internalType: "address", name: "", type: "address" }], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "_implementation", type: "address" }, + { internalType: "bytes", name: "_data", type: "bytes" }, + { internalType: "bytes32", name: "_salt", type: "bytes32" }, + ], + name: "deployProxyByImplementation", + outputs: [ + { internalType: "address", name: "deployedProxy", type: "address" }, + ], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "bytes32", name: "_type", type: "bytes32" }, + { internalType: "bytes", name: "_data", type: "bytes" }, + { internalType: "bytes32", name: "_salt", type: "bytes32" }, + ], + name: "deployProxyDeterministic", + outputs: [{ internalType: "address", name: "", type: "address" }], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [{ internalType: "address", name: "", type: "address" }], + name: "deployer", + outputs: [{ internalType: "address", name: "", type: "address" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "bytes32", name: "_type", type: "bytes32" }, + { internalType: "uint256", name: "_version", type: "uint256" }, + ], + name: "getImplementation", + outputs: [{ internalType: "address", name: "", type: "address" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [{ internalType: "bytes32", name: "_type", type: "bytes32" }], + name: "getLatestImplementation", + outputs: [{ internalType: "address", name: "", type: "address" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [{ internalType: "bytes32", name: "role", type: "bytes32" }], + name: "getRoleAdmin", + outputs: [{ internalType: "bytes32", name: "", type: "bytes32" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "bytes32", name: "role", type: "bytes32" }, + { internalType: "uint256", name: "index", type: "uint256" }, + ], + name: "getRoleMember", + outputs: [{ internalType: "address", name: "", type: "address" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [{ internalType: "bytes32", name: "role", type: "bytes32" }], + name: "getRoleMemberCount", + outputs: [{ internalType: "uint256", name: "", type: "uint256" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "bytes32", name: "role", type: "bytes32" }, + { internalType: "address", name: "account", type: "address" }, + ], + name: "grantRole", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "bytes32", name: "role", type: "bytes32" }, + { internalType: "address", name: "account", type: "address" }, + ], + name: "hasRole", + outputs: [{ internalType: "bool", name: "", type: "bool" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "bytes32", name: "", type: "bytes32" }, + { internalType: "uint256", name: "", type: "uint256" }, + ], + name: "implementation", + outputs: [{ internalType: "address", name: "", type: "address" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "forwarder", type: "address" }, + ], + name: "isTrustedForwarder", + outputs: [{ internalType: "bool", name: "", type: "bool" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [{ internalType: "bytes[]", name: "data", type: "bytes[]" }], + name: "multicall", + outputs: [ + { internalType: "bytes[]", name: "results", type: "bytes[]" }, + ], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [], + name: "registry", + outputs: [ + { internalType: "contract TWRegistry", name: "", type: "address" }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "bytes32", name: "role", type: "bytes32" }, + { internalType: "address", name: "account", type: "address" }, + ], + name: "renounceRole", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "bytes32", name: "role", type: "bytes32" }, + { internalType: "address", name: "account", type: "address" }, + ], + name: "revokeRole", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "bytes4", name: "interfaceId", type: "bytes4" }, + ], + name: "supportsInterface", + outputs: [{ internalType: "bool", name: "", type: "bool" }], + stateMutability: "view", + type: "function", + }, + ]; + }); + var Fa = N((oon, Lnr) => { + Lnr.exports = [ + { + inputs: [ + { + internalType: "address", + name: "_trustedForwarder", + type: "address", + }, + ], + stateMutability: "nonpayable", + type: "constructor", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "address", + name: "deployer", + type: "address", + }, + { + indexed: !0, + internalType: "address", + name: "deployment", + type: "address", + }, + ], + name: "Added", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "address", + name: "deployer", + type: "address", + }, + { + indexed: !0, + internalType: "address", + name: "deployment", + type: "address", + }, + ], + name: "Deleted", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "bytes32", + name: "role", + type: "bytes32", + }, + { + indexed: !0, + internalType: "bytes32", + name: "previousAdminRole", + type: "bytes32", + }, + { + indexed: !0, + internalType: "bytes32", + name: "newAdminRole", + type: "bytes32", + }, + ], + name: "RoleAdminChanged", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "bytes32", + name: "role", + type: "bytes32", + }, + { + indexed: !0, + internalType: "address", + name: "account", + type: "address", + }, + { + indexed: !0, + internalType: "address", + name: "sender", + type: "address", + }, + ], + name: "RoleGranted", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "bytes32", + name: "role", + type: "bytes32", + }, + { + indexed: !0, + internalType: "address", + name: "account", + type: "address", + }, + { + indexed: !0, + internalType: "address", + name: "sender", + type: "address", + }, + ], + name: "RoleRevoked", + type: "event", + }, + { + inputs: [], + name: "DEFAULT_ADMIN_ROLE", + outputs: [{ internalType: "bytes32", name: "", type: "bytes32" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "OPERATOR_ROLE", + outputs: [{ internalType: "bytes32", name: "", type: "bytes32" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "_deployer", type: "address" }, + { internalType: "address", name: "_deployment", type: "address" }, + ], + name: "add", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "_deployer", type: "address" }, + ], + name: "count", + outputs: [{ internalType: "uint256", name: "", type: "uint256" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "_deployer", type: "address" }, + ], + name: "getAll", + outputs: [{ internalType: "address[]", name: "", type: "address[]" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [{ internalType: "bytes32", name: "role", type: "bytes32" }], + name: "getRoleAdmin", + outputs: [{ internalType: "bytes32", name: "", type: "bytes32" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "bytes32", name: "role", type: "bytes32" }, + { internalType: "uint256", name: "index", type: "uint256" }, + ], + name: "getRoleMember", + outputs: [{ internalType: "address", name: "", type: "address" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [{ internalType: "bytes32", name: "role", type: "bytes32" }], + name: "getRoleMemberCount", + outputs: [{ internalType: "uint256", name: "", type: "uint256" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "bytes32", name: "role", type: "bytes32" }, + { internalType: "address", name: "account", type: "address" }, + ], + name: "grantRole", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "bytes32", name: "role", type: "bytes32" }, + { internalType: "address", name: "account", type: "address" }, + ], + name: "hasRole", + outputs: [{ internalType: "bool", name: "", type: "bool" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "forwarder", type: "address" }, + ], + name: "isTrustedForwarder", + outputs: [{ internalType: "bool", name: "", type: "bool" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [{ internalType: "bytes[]", name: "data", type: "bytes[]" }], + name: "multicall", + outputs: [ + { internalType: "bytes[]", name: "results", type: "bytes[]" }, + ], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "_deployer", type: "address" }, + { internalType: "address", name: "_deployment", type: "address" }, + ], + name: "remove", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "bytes32", name: "role", type: "bytes32" }, + { internalType: "address", name: "account", type: "address" }, + ], + name: "renounceRole", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "bytes32", name: "role", type: "bytes32" }, + { internalType: "address", name: "account", type: "address" }, + ], + name: "revokeRole", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "bytes4", name: "interfaceId", type: "bytes4" }, + ], + name: "supportsInterface", + outputs: [{ internalType: "bool", name: "", type: "bool" }], + stateMutability: "view", + type: "function", + }, + ]; + }); + var Wa = N((con, Dnr) => { + Dnr.exports = [ + { + inputs: [ + { + internalType: "address", + name: "_trustedForwarder", + type: "address", + }, + { + internalType: "contract IContractPublisher", + name: "_prevPublisher", + type: "address", + }, + ], + stateMutability: "nonpayable", + type: "constructor", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "address", + name: "operator", + type: "address", + }, + { + indexed: !0, + internalType: "address", + name: "publisher", + type: "address", + }, + { + components: [ + { internalType: "string", name: "contractId", type: "string" }, + { + internalType: "uint256", + name: "publishTimestamp", + type: "uint256", + }, + { + internalType: "string", + name: "publishMetadataUri", + type: "string", + }, + { + internalType: "bytes32", + name: "bytecodeHash", + type: "bytes32", + }, + { + internalType: "address", + name: "implementation", + type: "address", + }, + ], + indexed: !1, + internalType: "struct IContractPublisher.CustomContractInstance", + name: "publishedContract", + type: "tuple", + }, + ], + name: "ContractPublished", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "address", + name: "operator", + type: "address", + }, + { + indexed: !0, + internalType: "address", + name: "publisher", + type: "address", + }, + { + indexed: !0, + internalType: "string", + name: "contractId", + type: "string", + }, + ], + name: "ContractUnpublished", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { indexed: !1, internalType: "bool", name: "isPaused", type: "bool" }, + ], + name: "Paused", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "address", + name: "publisher", + type: "address", + }, + { + indexed: !1, + internalType: "string", + name: "prevURI", + type: "string", + }, + { + indexed: !1, + internalType: "string", + name: "newURI", + type: "string", + }, + ], + name: "PublisherProfileUpdated", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "bytes32", + name: "role", + type: "bytes32", + }, + { + indexed: !0, + internalType: "bytes32", + name: "previousAdminRole", + type: "bytes32", + }, + { + indexed: !0, + internalType: "bytes32", + name: "newAdminRole", + type: "bytes32", + }, + ], + name: "RoleAdminChanged", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "bytes32", + name: "role", + type: "bytes32", + }, + { + indexed: !0, + internalType: "address", + name: "account", + type: "address", + }, + { + indexed: !0, + internalType: "address", + name: "sender", + type: "address", + }, + ], + name: "RoleGranted", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "bytes32", + name: "role", + type: "bytes32", + }, + { + indexed: !0, + internalType: "address", + name: "account", + type: "address", + }, + { + indexed: !0, + internalType: "address", + name: "sender", + type: "address", + }, + ], + name: "RoleRevoked", + type: "event", + }, + { + inputs: [], + name: "DEFAULT_ADMIN_ROLE", + outputs: [{ internalType: "bytes32", name: "", type: "bytes32" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "_publisher", type: "address" }, + ], + name: "getAllPublishedContracts", + outputs: [ + { + components: [ + { internalType: "string", name: "contractId", type: "string" }, + { + internalType: "uint256", + name: "publishTimestamp", + type: "uint256", + }, + { + internalType: "string", + name: "publishMetadataUri", + type: "string", + }, + { + internalType: "bytes32", + name: "bytecodeHash", + type: "bytes32", + }, + { + internalType: "address", + name: "implementation", + type: "address", + }, + ], + internalType: "struct IContractPublisher.CustomContractInstance[]", + name: "published", + type: "tuple[]", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "_publisher", type: "address" }, + { internalType: "string", name: "_contractId", type: "string" }, + ], + name: "getPublishedContract", + outputs: [ + { + components: [ + { internalType: "string", name: "contractId", type: "string" }, + { + internalType: "uint256", + name: "publishTimestamp", + type: "uint256", + }, + { + internalType: "string", + name: "publishMetadataUri", + type: "string", + }, + { + internalType: "bytes32", + name: "bytecodeHash", + type: "bytes32", + }, + { + internalType: "address", + name: "implementation", + type: "address", + }, + ], + internalType: "struct IContractPublisher.CustomContractInstance", + name: "published", + type: "tuple", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "_publisher", type: "address" }, + { internalType: "string", name: "_contractId", type: "string" }, + ], + name: "getPublishedContractVersions", + outputs: [ + { + components: [ + { internalType: "string", name: "contractId", type: "string" }, + { + internalType: "uint256", + name: "publishTimestamp", + type: "uint256", + }, + { + internalType: "string", + name: "publishMetadataUri", + type: "string", + }, + { + internalType: "bytes32", + name: "bytecodeHash", + type: "bytes32", + }, + { + internalType: "address", + name: "implementation", + type: "address", + }, + ], + internalType: "struct IContractPublisher.CustomContractInstance[]", + name: "published", + type: "tuple[]", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { + internalType: "string", + name: "compilerMetadataUri", + type: "string", + }, + ], + name: "getPublishedUriFromCompilerUri", + outputs: [ + { + internalType: "string[]", + name: "publishedMetadataUris", + type: "string[]", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "publisher", type: "address" }, + ], + name: "getPublisherProfileUri", + outputs: [{ internalType: "string", name: "uri", type: "string" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [{ internalType: "bytes32", name: "role", type: "bytes32" }], + name: "getRoleAdmin", + outputs: [{ internalType: "bytes32", name: "", type: "bytes32" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "bytes32", name: "role", type: "bytes32" }, + { internalType: "uint256", name: "index", type: "uint256" }, + ], + name: "getRoleMember", + outputs: [{ internalType: "address", name: "", type: "address" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [{ internalType: "bytes32", name: "role", type: "bytes32" }], + name: "getRoleMemberCount", + outputs: [{ internalType: "uint256", name: "", type: "uint256" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "bytes32", name: "role", type: "bytes32" }, + { internalType: "address", name: "account", type: "address" }, + ], + name: "grantRole", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "bytes32", name: "role", type: "bytes32" }, + { internalType: "address", name: "account", type: "address" }, + ], + name: "hasRole", + outputs: [{ internalType: "bool", name: "", type: "bool" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "isPaused", + outputs: [{ internalType: "bool", name: "", type: "bool" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "forwarder", type: "address" }, + ], + name: "isTrustedForwarder", + outputs: [{ internalType: "bool", name: "", type: "bool" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [{ internalType: "bytes[]", name: "data", type: "bytes[]" }], + name: "multicall", + outputs: [ + { internalType: "bytes[]", name: "results", type: "bytes[]" }, + ], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [], + name: "prevPublisher", + outputs: [ + { + internalType: "contract IContractPublisher", + name: "", + type: "address", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "_publisher", type: "address" }, + { internalType: "string", name: "_contractId", type: "string" }, + { + internalType: "string", + name: "_publishMetadataUri", + type: "string", + }, + { + internalType: "string", + name: "_compilerMetadataUri", + type: "string", + }, + { internalType: "bytes32", name: "_bytecodeHash", type: "bytes32" }, + { internalType: "address", name: "_implementation", type: "address" }, + ], + name: "publishContract", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "bytes32", name: "role", type: "bytes32" }, + { internalType: "address", name: "account", type: "address" }, + ], + name: "renounceRole", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "bytes32", name: "role", type: "bytes32" }, + { internalType: "address", name: "account", type: "address" }, + ], + name: "revokeRole", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [{ internalType: "bool", name: "_pause", type: "bool" }], + name: "setPause", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "publisher", type: "address" }, + { internalType: "string", name: "uri", type: "string" }, + ], + name: "setPublisherProfileUri", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "bytes4", name: "interfaceId", type: "bytes4" }, + ], + name: "supportsInterface", + outputs: [{ internalType: "bool", name: "", type: "bool" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "_publisher", type: "address" }, + { internalType: "string", name: "_contractId", type: "string" }, + ], + name: "unpublishContract", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + ]; + }); + var Ua = N((uon, qnr) => { + qnr.exports = [ + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "address", + name: "deployer", + type: "address", + }, + { + indexed: !0, + internalType: "address", + name: "deployment", + type: "address", + }, + { + indexed: !0, + internalType: "uint256", + name: "chainId", + type: "uint256", + }, + { + indexed: !1, + internalType: "string", + name: "metadataUri", + type: "string", + }, + ], + name: "Added", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "address", + name: "deployer", + type: "address", + }, + { + indexed: !0, + internalType: "address", + name: "deployment", + type: "address", + }, + { + indexed: !0, + internalType: "uint256", + name: "chainId", + type: "uint256", + }, + ], + name: "Deleted", + type: "event", + }, + { + inputs: [], + name: "OPERATOR_ROLE", + outputs: [{ internalType: "bytes32", name: "", type: "bytes32" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "_msgData", + outputs: [{ internalType: "bytes", name: "", type: "bytes" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "_msgSender", + outputs: [{ internalType: "address", name: "sender", type: "address" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "_deployer", type: "address" }, + { internalType: "address", name: "_deployment", type: "address" }, + { internalType: "uint256", name: "_chainId", type: "uint256" }, + { internalType: "string", name: "metadataUri", type: "string" }, + ], + name: "add", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [], + name: "contractType", + outputs: [{ internalType: "bytes32", name: "", type: "bytes32" }], + stateMutability: "pure", + type: "function", + }, + { + inputs: [], + name: "contractVersion", + outputs: [{ internalType: "uint8", name: "", type: "uint8" }], + stateMutability: "pure", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "_deployer", type: "address" }, + ], + name: "count", + outputs: [ + { internalType: "uint256", name: "deploymentCount", type: "uint256" }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "_deployer", type: "address" }, + ], + name: "getAll", + outputs: [ + { + components: [ + { + internalType: "address", + name: "deploymentAddress", + type: "address", + }, + { internalType: "uint256", name: "chainId", type: "uint256" }, + { internalType: "string", name: "metadataURI", type: "string" }, + ], + internalType: "struct ITWMultichainRegistry.Deployment[]", + name: "allDeployments", + type: "tuple[]", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "uint256", name: "_chainId", type: "uint256" }, + { internalType: "address", name: "_deployment", type: "address" }, + ], + name: "getMetadataUri", + outputs: [ + { internalType: "string", name: "metadataUri", type: "string" }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "_deployer", type: "address" }, + { internalType: "address", name: "_deployment", type: "address" }, + { internalType: "uint256", name: "_chainId", type: "uint256" }, + ], + name: "remove", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + ]; + }); + var Ha = N((lon, Fnr) => { + Fnr.exports = [ + { + inputs: [ + { internalType: "address", name: "_pluginMap", type: "address" }, + { + internalType: "address[]", + name: "_trustedForwarders", + type: "address[]", + }, + ], + stateMutability: "nonpayable", + type: "constructor", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "bytes4", + name: "functionSelector", + type: "bytes4", + }, + { + indexed: !0, + internalType: "address", + name: "pluginAddress", + type: "address", + }, + ], + name: "PluginAdded", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "bytes4", + name: "functionSelector", + type: "bytes4", + }, + { + indexed: !0, + internalType: "address", + name: "pluginAddress", + type: "address", + }, + ], + name: "PluginRemoved", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "bytes4", + name: "functionSelector", + type: "bytes4", + }, + { + indexed: !0, + internalType: "string", + name: "functionSignature", + type: "string", + }, + { + indexed: !0, + internalType: "address", + name: "pluginAddress", + type: "address", + }, + ], + name: "PluginSet", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "bytes4", + name: "functionSelector", + type: "bytes4", + }, + { + indexed: !0, + internalType: "address", + name: "oldPluginAddress", + type: "address", + }, + { + indexed: !0, + internalType: "address", + name: "newPluginAddress", + type: "address", + }, + ], + name: "PluginUpdated", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "bytes32", + name: "role", + type: "bytes32", + }, + { + indexed: !0, + internalType: "bytes32", + name: "previousAdminRole", + type: "bytes32", + }, + { + indexed: !0, + internalType: "bytes32", + name: "newAdminRole", + type: "bytes32", + }, + ], + name: "RoleAdminChanged", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "bytes32", + name: "role", + type: "bytes32", + }, + { + indexed: !0, + internalType: "address", + name: "account", + type: "address", + }, + { + indexed: !0, + internalType: "address", + name: "sender", + type: "address", + }, + ], + name: "RoleGranted", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "bytes32", + name: "role", + type: "bytes32", + }, + { + indexed: !0, + internalType: "address", + name: "account", + type: "address", + }, + { + indexed: !0, + internalType: "address", + name: "sender", + type: "address", + }, + ], + name: "RoleRevoked", + type: "event", + }, + { stateMutability: "payable", type: "fallback" }, + { + inputs: [], + name: "DEFAULT_ADMIN_ROLE", + outputs: [{ internalType: "bytes32", name: "", type: "bytes32" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [{ internalType: "bytes4", name: "_selector", type: "bytes4" }], + name: "_getPluginForFunction", + outputs: [{ internalType: "address", name: "", type: "address" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { + components: [ + { + internalType: "bytes4", + name: "functionSelector", + type: "bytes4", + }, + { + internalType: "string", + name: "functionSignature", + type: "string", + }, + { + internalType: "address", + name: "pluginAddress", + type: "address", + }, + ], + internalType: "struct IPluginMap.Plugin", + name: "_plugin", + type: "tuple", + }, + ], + name: "addPlugin", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "_pluginAddress", type: "address" }, + ], + name: "getAllFunctionsOfPlugin", + outputs: [ + { internalType: "bytes4[]", name: "registered", type: "bytes4[]" }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "getAllPlugins", + outputs: [ + { + components: [ + { + internalType: "bytes4", + name: "functionSelector", + type: "bytes4", + }, + { + internalType: "string", + name: "functionSignature", + type: "string", + }, + { + internalType: "address", + name: "pluginAddress", + type: "address", + }, + ], + internalType: "struct IPluginMap.Plugin[]", + name: "registered", + type: "tuple[]", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [{ internalType: "bytes4", name: "_selector", type: "bytes4" }], + name: "getPluginForFunction", + outputs: [{ internalType: "address", name: "", type: "address" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [{ internalType: "bytes32", name: "role", type: "bytes32" }], + name: "getRoleAdmin", + outputs: [{ internalType: "bytes32", name: "", type: "bytes32" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "bytes32", name: "role", type: "bytes32" }, + { internalType: "uint256", name: "index", type: "uint256" }, + ], + name: "getRoleMember", + outputs: [{ internalType: "address", name: "member", type: "address" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [{ internalType: "bytes32", name: "role", type: "bytes32" }], + name: "getRoleMemberCount", + outputs: [{ internalType: "uint256", name: "count", type: "uint256" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "bytes32", name: "role", type: "bytes32" }, + { internalType: "address", name: "account", type: "address" }, + ], + name: "grantRole", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "bytes32", name: "role", type: "bytes32" }, + { internalType: "address", name: "account", type: "address" }, + ], + name: "hasRole", + outputs: [{ internalType: "bool", name: "", type: "bool" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "bytes32", name: "role", type: "bytes32" }, + { internalType: "address", name: "account", type: "address" }, + ], + name: "hasRoleWithSwitch", + outputs: [{ internalType: "bool", name: "", type: "bool" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "forwarder", type: "address" }, + ], + name: "isTrustedForwarder", + outputs: [{ internalType: "bool", name: "", type: "bool" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [{ internalType: "bytes[]", name: "data", type: "bytes[]" }], + name: "multicall", + outputs: [ + { internalType: "bytes[]", name: "results", type: "bytes[]" }, + ], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [], + name: "pluginMap", + outputs: [{ internalType: "address", name: "", type: "address" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [{ internalType: "bytes4", name: "_selector", type: "bytes4" }], + name: "removePlugin", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "bytes32", name: "role", type: "bytes32" }, + { internalType: "address", name: "account", type: "address" }, + ], + name: "renounceRole", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "bytes32", name: "role", type: "bytes32" }, + { internalType: "address", name: "account", type: "address" }, + ], + name: "revokeRole", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "bytes4", name: "interfaceId", type: "bytes4" }, + ], + name: "supportsInterface", + outputs: [{ internalType: "bool", name: "", type: "bool" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { + components: [ + { + internalType: "bytes4", + name: "functionSelector", + type: "bytes4", + }, + { + internalType: "string", + name: "functionSignature", + type: "string", + }, + { + internalType: "address", + name: "pluginAddress", + type: "address", + }, + ], + internalType: "struct IPluginMap.Plugin", + name: "_plugin", + type: "tuple", + }, + ], + name: "updatePlugin", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { stateMutability: "payable", type: "receive" }, + ]; + }); + var pFe = N((don, dFe) => { + "use strict"; + _(); + x(); + function Wnr(r) { + if (r.length >= 255) throw new TypeError("Alphabet too long"); + for (var e = new Uint8Array(256), t = 0; t < e.length; t++) e[t] = 255; + for (var n = 0; n < r.length; n++) { + var a = r.charAt(n), + i = a.charCodeAt(0); + if (e[i] !== 255) throw new TypeError(a + " is ambiguous"); + e[i] = n; + } + var s = r.length, + c = r.charAt(0), + l = Math.log(s) / Math.log(256), + d = Math.log(256) / Math.log(s); + function m(I) { + if ( + (I instanceof Uint8Array || + (ArrayBuffer.isView(I) + ? (I = new Uint8Array(I.buffer, I.byteOffset, I.byteLength)) + : Array.isArray(I) && (I = Uint8Array.from(I))), + !(I instanceof Uint8Array)) + ) + throw new TypeError("Expected Uint8Array"); + if (I.length === 0) return ""; + for (var k = 0, O = 0, D = 0, W = I.length; D !== W && I[D] === 0; ) + D++, k++; + for ( + var H = ((W - D) * d + 1) >>> 0, j = new Uint8Array(H); + D !== W; + + ) { + for ( + var V = I[D], te = 0, $ = H - 1; + (V !== 0 || te < O) && $ !== -1; + $--, te++ + ) + (V += (256 * j[$]) >>> 0), + (j[$] = V % s >>> 0), + (V = (V / s) >>> 0); + if (V !== 0) throw new Error("Non-zero carry"); + (O = te), D++; + } + for (var ae = H - O; ae !== H && j[ae] === 0; ) ae++; + for (var Y = c.repeat(k); ae < H; ++ae) Y += r.charAt(j[ae]); + return Y; + } + function w(I) { + if (typeof I != "string") throw new TypeError("Expected String"); + if (I.length === 0) return new Uint8Array(); + for (var k = 0, O = 0, D = 0; I[k] === c; ) O++, k++; + for ( + var W = ((I.length - k) * l + 1) >>> 0, H = new Uint8Array(W); + I[k]; + + ) { + var j = e[I.charCodeAt(k)]; + if (j === 255) return; + for ( + var V = 0, te = W - 1; + (j !== 0 || V < D) && te !== -1; + te--, V++ + ) + (j += (s * H[te]) >>> 0), + (H[te] = j % 256 >>> 0), + (j = (j / 256) >>> 0); + if (j !== 0) throw new Error("Non-zero carry"); + (D = V), k++; + } + for (var $ = W - D; $ !== W && H[$] === 0; ) $++; + for (var ae = new Uint8Array(O + (W - $)), Y = O; $ !== W; ) + ae[Y++] = H[$++]; + return ae; + } + function C(I) { + var k = w(I); + if (k) return k; + throw new Error("Non-base" + s + " character"); + } + return { encode: m, decodeUnsafe: w, decode: C }; + } + dFe.exports = Wnr; + }); + var za = N((fon, hFe) => { + _(); + x(); + var Unr = pFe(), + Hnr = "123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"; + hFe.exports = Unr(Hnr); + }); + var mFe = N((fFe) => { + "use strict"; + _(); + x(); + var Ko = Oo(), + Ns = kc(), + znr = wt(); + Gr(); + an(); + Bn(); + Nn(); + On(); + Ln(); + Dn(); + qn(); + Fn(); + Wn(); + Un(); + Hn(); + zn(); + jn(); + Kn(); + Vn(); + Gn(); + Yn(); + $n(); + Jn(); + Zn(); + Qn(); + Xn(); + ea(); + ta(); + ra(); + na(); + aa(); + ia(); + sa(); + oa(); + ca(); + ua(); + la(); + da(); + pa(); + ha(); + fa(); + ma(); + ya(); + ga(); + ba(); + va(); + wa(); + _a(); + xa(); + Ta(); + Ea(); + Ca(); + vn(); + Ia(); + Aa(); + ka(); + An(); + Sa(); + Ma(); + Pa(); + Ra(); + Ba(); + Na(); + Oa(); + La(); + Da(); + qa(); + Fa(); + Wa(); + Ua(); + Ha(); + za(); + var uw = class extends Ns.StandardErc1155 { + constructor(e, t, n) { + let a = + arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {}, + i = arguments.length > 4 ? arguments[4] : void 0, + s = arguments.length > 5 ? arguments[5] : void 0, + c = + arguments.length > 6 && arguments[6] !== void 0 + ? arguments[6] + : new Ns.ContractWrapper(e, t, i, a); + super(c, n, s), + Ko._defineProperty(this, "abi", void 0), + Ko._defineProperty(this, "sales", void 0), + Ko._defineProperty(this, "platformFees", void 0), + Ko._defineProperty(this, "encoder", void 0), + Ko._defineProperty(this, "estimator", void 0), + Ko._defineProperty(this, "events", void 0), + Ko._defineProperty(this, "metadata", void 0), + Ko._defineProperty(this, "roles", void 0), + Ko._defineProperty(this, "royalties", void 0), + Ko._defineProperty(this, "claimConditions", void 0), + Ko._defineProperty(this, "checkout", void 0), + Ko._defineProperty(this, "history", void 0), + Ko._defineProperty(this, "interceptor", void 0), + Ko._defineProperty(this, "erc1155", void 0), + Ko._defineProperty(this, "owner", void 0), + (this.abi = i), + (this.metadata = new Ns.ContractMetadata( + this.contractWrapper, + Ns.DropErc1155ContractSchema, + this.storage + )), + (this.roles = new Ns.ContractRoles( + this.contractWrapper, + uw.contractRoles + )), + (this.royalties = new Ns.ContractRoyalty( + this.contractWrapper, + this.metadata + )), + (this.sales = new Ns.ContractPrimarySale(this.contractWrapper)), + (this.claimConditions = new Ns.DropErc1155ClaimConditions( + this.contractWrapper, + this.metadata, + this.storage + )), + (this.events = new Ns.ContractEvents(this.contractWrapper)), + (this.history = new Ns.DropErc1155History(this.events)), + (this.encoder = new Ns.ContractEncoder(this.contractWrapper)), + (this.estimator = new Ns.GasCostEstimator(this.contractWrapper)), + (this.platformFees = new Ns.ContractPlatformFee( + this.contractWrapper + )), + (this.interceptor = new Ns.ContractInterceptor(this.contractWrapper)), + (this.erc1155 = new Ns.Erc1155( + this.contractWrapper, + this.storage, + s + )), + (this.checkout = new Ns.PaperCheckout(this.contractWrapper)), + (this.owner = new Ns.ContractOwner(this.contractWrapper)); + } + onNetworkUpdated(e) { + this.contractWrapper.updateSignerOrProvider(e); + } + getAddress() { + return this.contractWrapper.readContract.address; + } + async getAll(e) { + return this.erc1155.getAll(e); + } + async getOwned(e) { + return this.erc1155.getOwned(e); + } + async getTotalCount() { + return this.erc1155.totalCount(); + } + async isTransferRestricted() { + return !(await this.contractWrapper.readContract.hasRole( + Ns.getRoleHash("transfer"), + znr.constants.AddressZero + )); + } + async createBatch(e, t) { + return this.erc1155.lazyMint(e, t); + } + async getClaimTransaction(e, t, n) { + let a = + arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : !0; + return this.erc1155.getClaimTransaction(e, t, n, { + checkERC20Allowance: a, + }); + } + async claimTo(e, t, n) { + let a = + arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : !0; + return this.erc1155.claimTo(e, t, n, { checkERC20Allowance: a }); + } + async claim(e, t) { + let n = + arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !0, + a = await this.contractWrapper.getSignerAddress(); + return this.claimTo(a, e, t, n); + } + async burnTokens(e, t) { + return this.erc1155.burn(e, t); + } + async call(e) { + for ( + var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), a = 1; + a < t; + a++ + ) + n[a - 1] = arguments[a]; + return this.contractWrapper.call(e, ...n); + } + }; + Ko._defineProperty(uw, "contractRoles", ["admin", "minter", "transfer"]); + fFe.EditionDrop = uw; + }); + var Az = N((won, jnr) => { + jnr.exports = [ + { inputs: [], stateMutability: "nonpayable", type: "constructor" }, + { + inputs: [ + { internalType: "address", name: "operator", type: "address" }, + ], + name: "OperatorNotAllowed", + type: "error", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "address", + name: "account", + type: "address", + }, + { + indexed: !0, + internalType: "address", + name: "operator", + type: "address", + }, + { indexed: !1, internalType: "bool", name: "approved", type: "bool" }, + ], + name: "ApprovalForAll", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "uint256", + name: "tokenId", + type: "uint256", + }, + { + components: [ + { + internalType: "uint256", + name: "startTimestamp", + type: "uint256", + }, + { + internalType: "uint256", + name: "maxClaimableSupply", + type: "uint256", + }, + { + internalType: "uint256", + name: "supplyClaimed", + type: "uint256", + }, + { + internalType: "uint256", + name: "quantityLimitPerWallet", + type: "uint256", + }, + { internalType: "bytes32", name: "merkleRoot", type: "bytes32" }, + { + internalType: "uint256", + name: "pricePerToken", + type: "uint256", + }, + { internalType: "address", name: "currency", type: "address" }, + { internalType: "string", name: "metadata", type: "string" }, + ], + indexed: !1, + internalType: "struct IClaimCondition.ClaimCondition[]", + name: "claimConditions", + type: "tuple[]", + }, + { + indexed: !1, + internalType: "bool", + name: "resetEligibility", + type: "bool", + }, + ], + name: "ClaimConditionsUpdated", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !1, + internalType: "string", + name: "prevURI", + type: "string", + }, + { + indexed: !1, + internalType: "string", + name: "newURI", + type: "string", + }, + ], + name: "ContractURIUpdated", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "address", + name: "newRoyaltyRecipient", + type: "address", + }, + { + indexed: !1, + internalType: "uint256", + name: "newRoyaltyBps", + type: "uint256", + }, + ], + name: "DefaultRoyalty", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !1, + internalType: "uint8", + name: "version", + type: "uint8", + }, + ], + name: "Initialized", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !1, + internalType: "uint256", + name: "tokenId", + type: "uint256", + }, + { + indexed: !1, + internalType: "uint256", + name: "maxTotalSupply", + type: "uint256", + }, + ], + name: "MaxTotalSupplyUpdated", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !1, + internalType: "bool", + name: "restriction", + type: "bool", + }, + ], + name: "OperatorRestriction", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "address", + name: "prevOwner", + type: "address", + }, + { + indexed: !0, + internalType: "address", + name: "newOwner", + type: "address", + }, + ], + name: "OwnerUpdated", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "address", + name: "platformFeeRecipient", + type: "address", + }, + { + indexed: !1, + internalType: "uint256", + name: "platformFeeBps", + type: "uint256", + }, + ], + name: "PlatformFeeInfoUpdated", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "address", + name: "recipient", + type: "address", + }, + ], + name: "PrimarySaleRecipientUpdated", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "bytes32", + name: "role", + type: "bytes32", + }, + { + indexed: !0, + internalType: "bytes32", + name: "previousAdminRole", + type: "bytes32", + }, + { + indexed: !0, + internalType: "bytes32", + name: "newAdminRole", + type: "bytes32", + }, + ], + name: "RoleAdminChanged", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "bytes32", + name: "role", + type: "bytes32", + }, + { + indexed: !0, + internalType: "address", + name: "account", + type: "address", + }, + { + indexed: !0, + internalType: "address", + name: "sender", + type: "address", + }, + ], + name: "RoleGranted", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "bytes32", + name: "role", + type: "bytes32", + }, + { + indexed: !0, + internalType: "address", + name: "account", + type: "address", + }, + { + indexed: !0, + internalType: "address", + name: "sender", + type: "address", + }, + ], + name: "RoleRevoked", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "uint256", + name: "tokenId", + type: "uint256", + }, + { + indexed: !0, + internalType: "address", + name: "royaltyRecipient", + type: "address", + }, + { + indexed: !1, + internalType: "uint256", + name: "royaltyBps", + type: "uint256", + }, + ], + name: "RoyaltyForToken", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "uint256", + name: "tokenId", + type: "uint256", + }, + { + indexed: !1, + internalType: "address", + name: "saleRecipient", + type: "address", + }, + ], + name: "SaleRecipientForTokenUpdated", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "uint256", + name: "claimConditionIndex", + type: "uint256", + }, + { + indexed: !0, + internalType: "address", + name: "claimer", + type: "address", + }, + { + indexed: !0, + internalType: "address", + name: "receiver", + type: "address", + }, + { + indexed: !1, + internalType: "uint256", + name: "tokenId", + type: "uint256", + }, + { + indexed: !1, + internalType: "uint256", + name: "quantityClaimed", + type: "uint256", + }, + ], + name: "TokensClaimed", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "uint256", + name: "startTokenId", + type: "uint256", + }, + { + indexed: !1, + internalType: "uint256", + name: "endTokenId", + type: "uint256", + }, + { + indexed: !1, + internalType: "string", + name: "baseURI", + type: "string", + }, + { + indexed: !1, + internalType: "bytes", + name: "encryptedBaseURI", + type: "bytes", + }, + ], + name: "TokensLazyMinted", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "address", + name: "operator", + type: "address", + }, + { + indexed: !0, + internalType: "address", + name: "from", + type: "address", + }, + { indexed: !0, internalType: "address", name: "to", type: "address" }, + { + indexed: !1, + internalType: "uint256[]", + name: "ids", + type: "uint256[]", + }, + { + indexed: !1, + internalType: "uint256[]", + name: "values", + type: "uint256[]", + }, + ], + name: "TransferBatch", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "address", + name: "operator", + type: "address", + }, + { + indexed: !0, + internalType: "address", + name: "from", + type: "address", + }, + { indexed: !0, internalType: "address", name: "to", type: "address" }, + { indexed: !1, internalType: "uint256", name: "id", type: "uint256" }, + { + indexed: !1, + internalType: "uint256", + name: "value", + type: "uint256", + }, + ], + name: "TransferSingle", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !1, + internalType: "string", + name: "value", + type: "string", + }, + { indexed: !0, internalType: "uint256", name: "id", type: "uint256" }, + ], + name: "URI", + type: "event", + }, + { + inputs: [], + name: "DEFAULT_ADMIN_ROLE", + outputs: [{ internalType: "bytes32", name: "", type: "bytes32" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "account", type: "address" }, + { internalType: "uint256", name: "id", type: "uint256" }, + ], + name: "balanceOf", + outputs: [{ internalType: "uint256", name: "", type: "uint256" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "address[]", name: "accounts", type: "address[]" }, + { internalType: "uint256[]", name: "ids", type: "uint256[]" }, + ], + name: "balanceOfBatch", + outputs: [{ internalType: "uint256[]", name: "", type: "uint256[]" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "account", type: "address" }, + { internalType: "uint256[]", name: "ids", type: "uint256[]" }, + { internalType: "uint256[]", name: "values", type: "uint256[]" }, + ], + name: "burnBatch", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "_receiver", type: "address" }, + { internalType: "uint256", name: "_tokenId", type: "uint256" }, + { internalType: "uint256", name: "_quantity", type: "uint256" }, + { internalType: "address", name: "_currency", type: "address" }, + { internalType: "uint256", name: "_pricePerToken", type: "uint256" }, + { + components: [ + { internalType: "bytes32[]", name: "proof", type: "bytes32[]" }, + { + internalType: "uint256", + name: "quantityLimitPerWallet", + type: "uint256", + }, + { + internalType: "uint256", + name: "pricePerToken", + type: "uint256", + }, + { internalType: "address", name: "currency", type: "address" }, + ], + internalType: "struct IDrop1155.AllowlistProof", + name: "_allowlistProof", + type: "tuple", + }, + { internalType: "bytes", name: "_data", type: "bytes" }, + ], + name: "claim", + outputs: [], + stateMutability: "payable", + type: "function", + }, + { + inputs: [{ internalType: "uint256", name: "", type: "uint256" }], + name: "claimCondition", + outputs: [ + { internalType: "uint256", name: "currentStartId", type: "uint256" }, + { internalType: "uint256", name: "count", type: "uint256" }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "contractType", + outputs: [{ internalType: "bytes32", name: "", type: "bytes32" }], + stateMutability: "pure", + type: "function", + }, + { + inputs: [], + name: "contractURI", + outputs: [{ internalType: "string", name: "", type: "string" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "contractVersion", + outputs: [{ internalType: "uint8", name: "", type: "uint8" }], + stateMutability: "pure", + type: "function", + }, + { + inputs: [ + { internalType: "uint256", name: "_tokenId", type: "uint256" }, + ], + name: "getActiveClaimConditionId", + outputs: [{ internalType: "uint256", name: "", type: "uint256" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "getBaseURICount", + outputs: [{ internalType: "uint256", name: "", type: "uint256" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [{ internalType: "uint256", name: "_index", type: "uint256" }], + name: "getBatchIdAtIndex", + outputs: [{ internalType: "uint256", name: "", type: "uint256" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "uint256", name: "_tokenId", type: "uint256" }, + { internalType: "uint256", name: "_conditionId", type: "uint256" }, + ], + name: "getClaimConditionById", + outputs: [ + { + components: [ + { + internalType: "uint256", + name: "startTimestamp", + type: "uint256", + }, + { + internalType: "uint256", + name: "maxClaimableSupply", + type: "uint256", + }, + { + internalType: "uint256", + name: "supplyClaimed", + type: "uint256", + }, + { + internalType: "uint256", + name: "quantityLimitPerWallet", + type: "uint256", + }, + { internalType: "bytes32", name: "merkleRoot", type: "bytes32" }, + { + internalType: "uint256", + name: "pricePerToken", + type: "uint256", + }, + { internalType: "address", name: "currency", type: "address" }, + { internalType: "string", name: "metadata", type: "string" }, + ], + internalType: "struct IClaimCondition.ClaimCondition", + name: "condition", + type: "tuple", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "getDefaultRoyaltyInfo", + outputs: [ + { internalType: "address", name: "", type: "address" }, + { internalType: "uint16", name: "", type: "uint16" }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "getPlatformFeeInfo", + outputs: [ + { internalType: "address", name: "", type: "address" }, + { internalType: "uint16", name: "", type: "uint16" }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [{ internalType: "bytes32", name: "role", type: "bytes32" }], + name: "getRoleAdmin", + outputs: [{ internalType: "bytes32", name: "", type: "bytes32" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "bytes32", name: "role", type: "bytes32" }, + { internalType: "uint256", name: "index", type: "uint256" }, + ], + name: "getRoleMember", + outputs: [{ internalType: "address", name: "member", type: "address" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [{ internalType: "bytes32", name: "role", type: "bytes32" }], + name: "getRoleMemberCount", + outputs: [{ internalType: "uint256", name: "count", type: "uint256" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "uint256", name: "_tokenId", type: "uint256" }, + ], + name: "getRoyaltyInfoForToken", + outputs: [ + { internalType: "address", name: "", type: "address" }, + { internalType: "uint16", name: "", type: "uint16" }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "uint256", name: "_tokenId", type: "uint256" }, + { internalType: "uint256", name: "_conditionId", type: "uint256" }, + { internalType: "address", name: "_claimer", type: "address" }, + ], + name: "getSupplyClaimedByWallet", + outputs: [ + { + internalType: "uint256", + name: "supplyClaimedByWallet", + type: "uint256", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "bytes32", name: "role", type: "bytes32" }, + { internalType: "address", name: "account", type: "address" }, + ], + name: "grantRole", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "bytes32", name: "role", type: "bytes32" }, + { internalType: "address", name: "account", type: "address" }, + ], + name: "hasRole", + outputs: [{ internalType: "bool", name: "", type: "bool" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "bytes32", name: "role", type: "bytes32" }, + { internalType: "address", name: "account", type: "address" }, + ], + name: "hasRoleWithSwitch", + outputs: [{ internalType: "bool", name: "", type: "bool" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "_defaultAdmin", type: "address" }, + { internalType: "string", name: "_name", type: "string" }, + { internalType: "string", name: "_symbol", type: "string" }, + { internalType: "string", name: "_contractURI", type: "string" }, + { + internalType: "address[]", + name: "_trustedForwarders", + type: "address[]", + }, + { internalType: "address", name: "_saleRecipient", type: "address" }, + { + internalType: "address", + name: "_royaltyRecipient", + type: "address", + }, + { internalType: "uint128", name: "_royaltyBps", type: "uint128" }, + { internalType: "uint128", name: "_platformFeeBps", type: "uint128" }, + { + internalType: "address", + name: "_platformFeeRecipient", + type: "address", + }, + ], + name: "initialize", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "account", type: "address" }, + { internalType: "address", name: "operator", type: "address" }, + ], + name: "isApprovedForAll", + outputs: [{ internalType: "bool", name: "", type: "bool" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "forwarder", type: "address" }, + ], + name: "isTrustedForwarder", + outputs: [{ internalType: "bool", name: "", type: "bool" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "uint256", name: "_amount", type: "uint256" }, + { internalType: "string", name: "_baseURIForTokens", type: "string" }, + { internalType: "bytes", name: "_data", type: "bytes" }, + ], + name: "lazyMint", + outputs: [ + { internalType: "uint256", name: "batchId", type: "uint256" }, + ], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [{ internalType: "uint256", name: "", type: "uint256" }], + name: "maxTotalSupply", + outputs: [{ internalType: "uint256", name: "", type: "uint256" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [{ internalType: "bytes[]", name: "data", type: "bytes[]" }], + name: "multicall", + outputs: [ + { internalType: "bytes[]", name: "results", type: "bytes[]" }, + ], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [], + name: "name", + outputs: [{ internalType: "string", name: "", type: "string" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "nextTokenIdToMint", + outputs: [{ internalType: "uint256", name: "", type: "uint256" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "operatorRestriction", + outputs: [{ internalType: "bool", name: "", type: "bool" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "owner", + outputs: [{ internalType: "address", name: "", type: "address" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "primarySaleRecipient", + outputs: [{ internalType: "address", name: "", type: "address" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "bytes32", name: "role", type: "bytes32" }, + { internalType: "address", name: "account", type: "address" }, + ], + name: "renounceRole", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "bytes32", name: "role", type: "bytes32" }, + { internalType: "address", name: "account", type: "address" }, + ], + name: "revokeRole", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "uint256", name: "tokenId", type: "uint256" }, + { internalType: "uint256", name: "salePrice", type: "uint256" }, + ], + name: "royaltyInfo", + outputs: [ + { internalType: "address", name: "receiver", type: "address" }, + { internalType: "uint256", name: "royaltyAmount", type: "uint256" }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "from", type: "address" }, + { internalType: "address", name: "to", type: "address" }, + { internalType: "uint256[]", name: "ids", type: "uint256[]" }, + { internalType: "uint256[]", name: "amounts", type: "uint256[]" }, + { internalType: "bytes", name: "data", type: "bytes" }, + ], + name: "safeBatchTransferFrom", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "from", type: "address" }, + { internalType: "address", name: "to", type: "address" }, + { internalType: "uint256", name: "id", type: "uint256" }, + { internalType: "uint256", name: "amount", type: "uint256" }, + { internalType: "bytes", name: "data", type: "bytes" }, + ], + name: "safeTransferFrom", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [{ internalType: "uint256", name: "", type: "uint256" }], + name: "saleRecipient", + outputs: [{ internalType: "address", name: "", type: "address" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "operator", type: "address" }, + { internalType: "bool", name: "approved", type: "bool" }, + ], + name: "setApprovalForAll", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "uint256", name: "_tokenId", type: "uint256" }, + { + components: [ + { + internalType: "uint256", + name: "startTimestamp", + type: "uint256", + }, + { + internalType: "uint256", + name: "maxClaimableSupply", + type: "uint256", + }, + { + internalType: "uint256", + name: "supplyClaimed", + type: "uint256", + }, + { + internalType: "uint256", + name: "quantityLimitPerWallet", + type: "uint256", + }, + { internalType: "bytes32", name: "merkleRoot", type: "bytes32" }, + { + internalType: "uint256", + name: "pricePerToken", + type: "uint256", + }, + { internalType: "address", name: "currency", type: "address" }, + { internalType: "string", name: "metadata", type: "string" }, + ], + internalType: "struct IClaimCondition.ClaimCondition[]", + name: "_conditions", + type: "tuple[]", + }, + { + internalType: "bool", + name: "_resetClaimEligibility", + type: "bool", + }, + ], + name: "setClaimConditions", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [{ internalType: "string", name: "_uri", type: "string" }], + name: "setContractURI", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "address", + name: "_royaltyRecipient", + type: "address", + }, + { internalType: "uint256", name: "_royaltyBps", type: "uint256" }, + ], + name: "setDefaultRoyaltyInfo", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "uint256", name: "_tokenId", type: "uint256" }, + { internalType: "uint256", name: "_maxTotalSupply", type: "uint256" }, + ], + name: "setMaxTotalSupply", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [{ internalType: "bool", name: "_restriction", type: "bool" }], + name: "setOperatorRestriction", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "_newOwner", type: "address" }, + ], + name: "setOwner", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "address", + name: "_platformFeeRecipient", + type: "address", + }, + { internalType: "uint256", name: "_platformFeeBps", type: "uint256" }, + ], + name: "setPlatformFeeInfo", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "_saleRecipient", type: "address" }, + ], + name: "setPrimarySaleRecipient", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "uint256", name: "_tokenId", type: "uint256" }, + { internalType: "address", name: "_recipient", type: "address" }, + { internalType: "uint256", name: "_bps", type: "uint256" }, + ], + name: "setRoyaltyInfoForToken", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "uint256", name: "_tokenId", type: "uint256" }, + { internalType: "address", name: "_saleRecipient", type: "address" }, + ], + name: "setSaleRecipientForToken", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "bytes4", name: "interfaceId", type: "bytes4" }, + ], + name: "supportsInterface", + outputs: [{ internalType: "bool", name: "", type: "bool" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "symbol", + outputs: [{ internalType: "string", name: "", type: "string" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [{ internalType: "uint256", name: "", type: "uint256" }], + name: "totalSupply", + outputs: [{ internalType: "uint256", name: "", type: "uint256" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "uint256", name: "_tokenId", type: "uint256" }, + ], + name: "uri", + outputs: [{ internalType: "string", name: "", type: "string" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "uint256", name: "_conditionId", type: "uint256" }, + { internalType: "address", name: "_claimer", type: "address" }, + { internalType: "uint256", name: "_tokenId", type: "uint256" }, + { internalType: "uint256", name: "_quantity", type: "uint256" }, + { internalType: "address", name: "_currency", type: "address" }, + { internalType: "uint256", name: "_pricePerToken", type: "uint256" }, + { + components: [ + { internalType: "bytes32[]", name: "proof", type: "bytes32[]" }, + { + internalType: "uint256", + name: "quantityLimitPerWallet", + type: "uint256", + }, + { + internalType: "uint256", + name: "pricePerToken", + type: "uint256", + }, + { internalType: "address", name: "currency", type: "address" }, + ], + internalType: "struct IDrop1155.AllowlistProof", + name: "_allowlistProof", + type: "tuple", + }, + ], + name: "verifyClaim", + outputs: [{ internalType: "bool", name: "isOverride", type: "bool" }], + stateMutability: "view", + type: "function", + }, + ]; + }); + var kz = N((_on, Knr) => { + Knr.exports = [ + { inputs: [], stateMutability: "nonpayable", type: "constructor" }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "address", + name: "account", + type: "address", + }, + { + indexed: !0, + internalType: "address", + name: "operator", + type: "address", + }, + { indexed: !1, internalType: "bool", name: "approved", type: "bool" }, + ], + name: "ApprovalForAll", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "uint256", + name: "tokenId", + type: "uint256", + }, + { + components: [ + { + internalType: "uint256", + name: "startTimestamp", + type: "uint256", + }, + { + internalType: "uint256", + name: "maxClaimableSupply", + type: "uint256", + }, + { + internalType: "uint256", + name: "supplyClaimed", + type: "uint256", + }, + { + internalType: "uint256", + name: "quantityLimitPerTransaction", + type: "uint256", + }, + { + internalType: "uint256", + name: "waitTimeInSecondsBetweenClaims", + type: "uint256", + }, + { internalType: "bytes32", name: "merkleRoot", type: "bytes32" }, + { + internalType: "uint256", + name: "pricePerToken", + type: "uint256", + }, + { internalType: "address", name: "currency", type: "address" }, + ], + indexed: !1, + internalType: "struct IDropClaimCondition_V2.ClaimCondition[]", + name: "claimConditions", + type: "tuple[]", + }, + ], + name: "ClaimConditionsUpdated", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "address", + name: "newRoyaltyRecipient", + type: "address", + }, + { + indexed: !1, + internalType: "uint256", + name: "newRoyaltyBps", + type: "uint256", + }, + ], + name: "DefaultRoyalty", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !1, + internalType: "uint8", + name: "version", + type: "uint8", + }, + ], + name: "Initialized", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !1, + internalType: "uint256", + name: "tokenId", + type: "uint256", + }, + { + indexed: !1, + internalType: "uint256", + name: "maxTotalSupply", + type: "uint256", + }, + ], + name: "MaxTotalSupplyUpdated", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !1, + internalType: "uint256", + name: "tokenId", + type: "uint256", + }, + { + indexed: !1, + internalType: "uint256", + name: "count", + type: "uint256", + }, + ], + name: "MaxWalletClaimCountUpdated", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "address", + name: "prevOwner", + type: "address", + }, + { + indexed: !0, + internalType: "address", + name: "newOwner", + type: "address", + }, + ], + name: "OwnerUpdated", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "address", + name: "platformFeeRecipient", + type: "address", + }, + { + indexed: !1, + internalType: "uint256", + name: "platformFeeBps", + type: "uint256", + }, + ], + name: "PlatformFeeInfoUpdated", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "address", + name: "recipient", + type: "address", + }, + ], + name: "PrimarySaleRecipientUpdated", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "bytes32", + name: "role", + type: "bytes32", + }, + { + indexed: !0, + internalType: "bytes32", + name: "previousAdminRole", + type: "bytes32", + }, + { + indexed: !0, + internalType: "bytes32", + name: "newAdminRole", + type: "bytes32", + }, + ], + name: "RoleAdminChanged", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "bytes32", + name: "role", + type: "bytes32", + }, + { + indexed: !0, + internalType: "address", + name: "account", + type: "address", + }, + { + indexed: !0, + internalType: "address", + name: "sender", + type: "address", + }, + ], + name: "RoleGranted", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "bytes32", + name: "role", + type: "bytes32", + }, + { + indexed: !0, + internalType: "address", + name: "account", + type: "address", + }, + { + indexed: !0, + internalType: "address", + name: "sender", + type: "address", + }, + ], + name: "RoleRevoked", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "uint256", + name: "tokenId", + type: "uint256", + }, + { + indexed: !0, + internalType: "address", + name: "royaltyRecipient", + type: "address", + }, + { + indexed: !1, + internalType: "uint256", + name: "royaltyBps", + type: "uint256", + }, + ], + name: "RoyaltyForToken", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "uint256", + name: "tokenId", + type: "uint256", + }, + { + indexed: !1, + internalType: "address", + name: "saleRecipient", + type: "address", + }, + ], + name: "SaleRecipientForTokenUpdated", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "uint256", + name: "claimConditionIndex", + type: "uint256", + }, + { + indexed: !0, + internalType: "uint256", + name: "tokenId", + type: "uint256", + }, + { + indexed: !0, + internalType: "address", + name: "claimer", + type: "address", + }, + { + indexed: !1, + internalType: "address", + name: "receiver", + type: "address", + }, + { + indexed: !1, + internalType: "uint256", + name: "quantityClaimed", + type: "uint256", + }, + ], + name: "TokensClaimed", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !1, + internalType: "uint256", + name: "startTokenId", + type: "uint256", + }, + { + indexed: !1, + internalType: "uint256", + name: "endTokenId", + type: "uint256", + }, + { + indexed: !1, + internalType: "string", + name: "baseURI", + type: "string", + }, + ], + name: "TokensLazyMinted", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "address", + name: "operator", + type: "address", + }, + { + indexed: !0, + internalType: "address", + name: "from", + type: "address", + }, + { indexed: !0, internalType: "address", name: "to", type: "address" }, + { + indexed: !1, + internalType: "uint256[]", + name: "ids", + type: "uint256[]", + }, + { + indexed: !1, + internalType: "uint256[]", + name: "values", + type: "uint256[]", + }, + ], + name: "TransferBatch", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "address", + name: "operator", + type: "address", + }, + { + indexed: !0, + internalType: "address", + name: "from", + type: "address", + }, + { indexed: !0, internalType: "address", name: "to", type: "address" }, + { indexed: !1, internalType: "uint256", name: "id", type: "uint256" }, + { + indexed: !1, + internalType: "uint256", + name: "value", + type: "uint256", + }, + ], + name: "TransferSingle", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !1, + internalType: "string", + name: "value", + type: "string", + }, + { indexed: !0, internalType: "uint256", name: "id", type: "uint256" }, + ], + name: "URI", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !1, + internalType: "uint256", + name: "tokenId", + type: "uint256", + }, + { + indexed: !0, + internalType: "address", + name: "wallet", + type: "address", + }, + { + indexed: !1, + internalType: "uint256", + name: "count", + type: "uint256", + }, + ], + name: "WalletClaimCountUpdated", + type: "event", + }, + { + inputs: [], + name: "DEFAULT_ADMIN_ROLE", + outputs: [{ internalType: "bytes32", name: "", type: "bytes32" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "account", type: "address" }, + { internalType: "uint256", name: "id", type: "uint256" }, + ], + name: "balanceOf", + outputs: [{ internalType: "uint256", name: "", type: "uint256" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "address[]", name: "accounts", type: "address[]" }, + { internalType: "uint256[]", name: "ids", type: "uint256[]" }, + ], + name: "balanceOfBatch", + outputs: [{ internalType: "uint256[]", name: "", type: "uint256[]" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "account", type: "address" }, + { internalType: "uint256", name: "id", type: "uint256" }, + { internalType: "uint256", name: "value", type: "uint256" }, + ], + name: "burn", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "account", type: "address" }, + { internalType: "uint256[]", name: "ids", type: "uint256[]" }, + { internalType: "uint256[]", name: "values", type: "uint256[]" }, + ], + name: "burnBatch", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "_receiver", type: "address" }, + { internalType: "uint256", name: "_tokenId", type: "uint256" }, + { internalType: "uint256", name: "_quantity", type: "uint256" }, + { internalType: "address", name: "_currency", type: "address" }, + { internalType: "uint256", name: "_pricePerToken", type: "uint256" }, + { internalType: "bytes32[]", name: "_proofs", type: "bytes32[]" }, + { + internalType: "uint256", + name: "_proofMaxQuantityPerTransaction", + type: "uint256", + }, + ], + name: "claim", + outputs: [], + stateMutability: "payable", + type: "function", + }, + { + inputs: [{ internalType: "uint256", name: "", type: "uint256" }], + name: "claimCondition", + outputs: [ + { internalType: "uint256", name: "currentStartId", type: "uint256" }, + { internalType: "uint256", name: "count", type: "uint256" }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "contractType", + outputs: [{ internalType: "bytes32", name: "", type: "bytes32" }], + stateMutability: "pure", + type: "function", + }, + { + inputs: [], + name: "contractURI", + outputs: [{ internalType: "string", name: "", type: "string" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "contractVersion", + outputs: [{ internalType: "uint8", name: "", type: "uint8" }], + stateMutability: "pure", + type: "function", + }, + { + inputs: [ + { internalType: "uint256", name: "_tokenId", type: "uint256" }, + ], + name: "getActiveClaimConditionId", + outputs: [{ internalType: "uint256", name: "", type: "uint256" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "uint256", name: "_tokenId", type: "uint256" }, + { internalType: "uint256", name: "_conditionId", type: "uint256" }, + ], + name: "getClaimConditionById", + outputs: [ + { + components: [ + { + internalType: "uint256", + name: "startTimestamp", + type: "uint256", + }, + { + internalType: "uint256", + name: "maxClaimableSupply", + type: "uint256", + }, + { + internalType: "uint256", + name: "supplyClaimed", + type: "uint256", + }, + { + internalType: "uint256", + name: "quantityLimitPerTransaction", + type: "uint256", + }, + { + internalType: "uint256", + name: "waitTimeInSecondsBetweenClaims", + type: "uint256", + }, + { internalType: "bytes32", name: "merkleRoot", type: "bytes32" }, + { + internalType: "uint256", + name: "pricePerToken", + type: "uint256", + }, + { internalType: "address", name: "currency", type: "address" }, + ], + internalType: "struct IDropClaimCondition_V2.ClaimCondition", + name: "condition", + type: "tuple", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "uint256", name: "_tokenId", type: "uint256" }, + { internalType: "uint256", name: "_conditionId", type: "uint256" }, + { internalType: "address", name: "_claimer", type: "address" }, + ], + name: "getClaimTimestamp", + outputs: [ + { + internalType: "uint256", + name: "lastClaimTimestamp", + type: "uint256", + }, + { + internalType: "uint256", + name: "nextValidClaimTimestamp", + type: "uint256", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "getDefaultRoyaltyInfo", + outputs: [ + { internalType: "address", name: "", type: "address" }, + { internalType: "uint16", name: "", type: "uint16" }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "getPlatformFeeInfo", + outputs: [ + { internalType: "address", name: "", type: "address" }, + { internalType: "uint16", name: "", type: "uint16" }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [{ internalType: "bytes32", name: "role", type: "bytes32" }], + name: "getRoleAdmin", + outputs: [{ internalType: "bytes32", name: "", type: "bytes32" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "bytes32", name: "role", type: "bytes32" }, + { internalType: "uint256", name: "index", type: "uint256" }, + ], + name: "getRoleMember", + outputs: [{ internalType: "address", name: "", type: "address" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [{ internalType: "bytes32", name: "role", type: "bytes32" }], + name: "getRoleMemberCount", + outputs: [{ internalType: "uint256", name: "", type: "uint256" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "uint256", name: "_tokenId", type: "uint256" }, + ], + name: "getRoyaltyInfoForToken", + outputs: [ + { internalType: "address", name: "", type: "address" }, + { internalType: "uint16", name: "", type: "uint16" }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "bytes32", name: "role", type: "bytes32" }, + { internalType: "address", name: "account", type: "address" }, + ], + name: "grantRole", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "bytes32", name: "role", type: "bytes32" }, + { internalType: "address", name: "account", type: "address" }, + ], + name: "hasRole", + outputs: [{ internalType: "bool", name: "", type: "bool" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "_defaultAdmin", type: "address" }, + { internalType: "string", name: "_name", type: "string" }, + { internalType: "string", name: "_symbol", type: "string" }, + { internalType: "string", name: "_contractURI", type: "string" }, + { + internalType: "address[]", + name: "_trustedForwarders", + type: "address[]", + }, + { internalType: "address", name: "_saleRecipient", type: "address" }, + { + internalType: "address", + name: "_royaltyRecipient", + type: "address", + }, + { internalType: "uint128", name: "_royaltyBps", type: "uint128" }, + { internalType: "uint128", name: "_platformFeeBps", type: "uint128" }, + { + internalType: "address", + name: "_platformFeeRecipient", + type: "address", + }, + ], + name: "initialize", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "account", type: "address" }, + { internalType: "address", name: "operator", type: "address" }, + ], + name: "isApprovedForAll", + outputs: [{ internalType: "bool", name: "", type: "bool" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "forwarder", type: "address" }, + ], + name: "isTrustedForwarder", + outputs: [{ internalType: "bool", name: "", type: "bool" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "uint256", name: "_amount", type: "uint256" }, + { internalType: "string", name: "_baseURIForTokens", type: "string" }, + ], + name: "lazyMint", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [{ internalType: "uint256", name: "", type: "uint256" }], + name: "maxTotalSupply", + outputs: [{ internalType: "uint256", name: "", type: "uint256" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [{ internalType: "uint256", name: "", type: "uint256" }], + name: "maxWalletClaimCount", + outputs: [{ internalType: "uint256", name: "", type: "uint256" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [{ internalType: "bytes[]", name: "data", type: "bytes[]" }], + name: "multicall", + outputs: [ + { internalType: "bytes[]", name: "results", type: "bytes[]" }, + ], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [], + name: "name", + outputs: [{ internalType: "string", name: "", type: "string" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "nextTokenIdToMint", + outputs: [{ internalType: "uint256", name: "", type: "uint256" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "owner", + outputs: [{ internalType: "address", name: "", type: "address" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "primarySaleRecipient", + outputs: [{ internalType: "address", name: "", type: "address" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "bytes32", name: "role", type: "bytes32" }, + { internalType: "address", name: "account", type: "address" }, + ], + name: "renounceRole", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "bytes32", name: "role", type: "bytes32" }, + { internalType: "address", name: "account", type: "address" }, + ], + name: "revokeRole", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "uint256", name: "tokenId", type: "uint256" }, + { internalType: "uint256", name: "salePrice", type: "uint256" }, + ], + name: "royaltyInfo", + outputs: [ + { internalType: "address", name: "receiver", type: "address" }, + { internalType: "uint256", name: "royaltyAmount", type: "uint256" }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "from", type: "address" }, + { internalType: "address", name: "to", type: "address" }, + { internalType: "uint256[]", name: "ids", type: "uint256[]" }, + { internalType: "uint256[]", name: "amounts", type: "uint256[]" }, + { internalType: "bytes", name: "data", type: "bytes" }, + ], + name: "safeBatchTransferFrom", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "from", type: "address" }, + { internalType: "address", name: "to", type: "address" }, + { internalType: "uint256", name: "id", type: "uint256" }, + { internalType: "uint256", name: "amount", type: "uint256" }, + { internalType: "bytes", name: "data", type: "bytes" }, + ], + name: "safeTransferFrom", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [{ internalType: "uint256", name: "", type: "uint256" }], + name: "saleRecipient", + outputs: [{ internalType: "address", name: "", type: "address" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "operator", type: "address" }, + { internalType: "bool", name: "approved", type: "bool" }, + ], + name: "setApprovalForAll", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "uint256", name: "_tokenId", type: "uint256" }, + { + components: [ + { + internalType: "uint256", + name: "startTimestamp", + type: "uint256", + }, + { + internalType: "uint256", + name: "maxClaimableSupply", + type: "uint256", + }, + { + internalType: "uint256", + name: "supplyClaimed", + type: "uint256", + }, + { + internalType: "uint256", + name: "quantityLimitPerTransaction", + type: "uint256", + }, + { + internalType: "uint256", + name: "waitTimeInSecondsBetweenClaims", + type: "uint256", + }, + { internalType: "bytes32", name: "merkleRoot", type: "bytes32" }, + { + internalType: "uint256", + name: "pricePerToken", + type: "uint256", + }, + { internalType: "address", name: "currency", type: "address" }, + ], + internalType: "struct IDropClaimCondition_V2.ClaimCondition[]", + name: "_phases", + type: "tuple[]", + }, + { + internalType: "bool", + name: "_resetClaimEligibility", + type: "bool", + }, + ], + name: "setClaimConditions", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [{ internalType: "string", name: "_uri", type: "string" }], + name: "setContractURI", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "address", + name: "_royaltyRecipient", + type: "address", + }, + { internalType: "uint256", name: "_royaltyBps", type: "uint256" }, + ], + name: "setDefaultRoyaltyInfo", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "uint256", name: "_tokenId", type: "uint256" }, + { internalType: "uint256", name: "_maxTotalSupply", type: "uint256" }, + ], + name: "setMaxTotalSupply", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "uint256", name: "_tokenId", type: "uint256" }, + { internalType: "uint256", name: "_count", type: "uint256" }, + ], + name: "setMaxWalletClaimCount", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "_newOwner", type: "address" }, + ], + name: "setOwner", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "address", + name: "_platformFeeRecipient", + type: "address", + }, + { internalType: "uint256", name: "_platformFeeBps", type: "uint256" }, + ], + name: "setPlatformFeeInfo", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "_saleRecipient", type: "address" }, + ], + name: "setPrimarySaleRecipient", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "uint256", name: "_tokenId", type: "uint256" }, + { internalType: "address", name: "_recipient", type: "address" }, + { internalType: "uint256", name: "_bps", type: "uint256" }, + ], + name: "setRoyaltyInfoForToken", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "uint256", name: "_tokenId", type: "uint256" }, + { internalType: "address", name: "_saleRecipient", type: "address" }, + ], + name: "setSaleRecipientForToken", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "uint256", name: "_tokenId", type: "uint256" }, + { internalType: "address", name: "_claimer", type: "address" }, + { internalType: "uint256", name: "_count", type: "uint256" }, + ], + name: "setWalletClaimCount", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "bytes4", name: "interfaceId", type: "bytes4" }, + ], + name: "supportsInterface", + outputs: [{ internalType: "bool", name: "", type: "bool" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "symbol", + outputs: [{ internalType: "string", name: "", type: "string" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [{ internalType: "uint256", name: "", type: "uint256" }], + name: "totalSupply", + outputs: [{ internalType: "uint256", name: "", type: "uint256" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "uint256", name: "_tokenId", type: "uint256" }, + ], + name: "uri", + outputs: [ + { internalType: "string", name: "_tokenURI", type: "string" }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "uint256", name: "_conditionId", type: "uint256" }, + { internalType: "address", name: "_claimer", type: "address" }, + { internalType: "uint256", name: "_tokenId", type: "uint256" }, + { internalType: "uint256", name: "_quantity", type: "uint256" }, + { internalType: "address", name: "_currency", type: "address" }, + { internalType: "uint256", name: "_pricePerToken", type: "uint256" }, + { + internalType: "bool", + name: "verifyMaxQuantityPerTransaction", + type: "bool", + }, + ], + name: "verifyClaim", + outputs: [], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "uint256", name: "_conditionId", type: "uint256" }, + { internalType: "address", name: "_claimer", type: "address" }, + { internalType: "uint256", name: "_tokenId", type: "uint256" }, + { internalType: "uint256", name: "_quantity", type: "uint256" }, + { internalType: "bytes32[]", name: "_proofs", type: "bytes32[]" }, + { + internalType: "uint256", + name: "_proofMaxQuantityPerTransaction", + type: "uint256", + }, + ], + name: "verifyClaimMerkleProof", + outputs: [ + { internalType: "bool", name: "validMerkleProof", type: "bool" }, + { + internalType: "uint256", + name: "merkleProofIndex", + type: "uint256", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "uint256", name: "", type: "uint256" }, + { internalType: "address", name: "", type: "address" }, + ], + name: "walletClaimCount", + outputs: [{ internalType: "uint256", name: "", type: "uint256" }], + stateMutability: "view", + type: "function", + }, + ]; + }); + var gFe = N((yFe) => { + "use strict"; + _(); + x(); + var au = Oo(), + Vo = kc(), + Vnr = wt(); + Gr(); + an(); + Bn(); + Nn(); + On(); + Ln(); + Dn(); + qn(); + Fn(); + Wn(); + Un(); + Hn(); + zn(); + jn(); + Kn(); + Vn(); + Gn(); + Yn(); + $n(); + Jn(); + Zn(); + Qn(); + Xn(); + ea(); + ta(); + ra(); + na(); + aa(); + ia(); + sa(); + oa(); + ca(); + ua(); + la(); + da(); + pa(); + ha(); + fa(); + ma(); + ya(); + ga(); + ba(); + va(); + wa(); + _a(); + xa(); + Ta(); + Ea(); + Ca(); + vn(); + Ia(); + Aa(); + ka(); + An(); + Sa(); + Ma(); + Pa(); + Ra(); + Ba(); + Na(); + Oa(); + La(); + Da(); + qa(); + Fa(); + Wa(); + Ua(); + Ha(); + za(); + var lw = class extends Vo.StandardErc1155 { + constructor(e, t, n) { + let a = + arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {}, + i = arguments.length > 4 ? arguments[4] : void 0, + s = arguments.length > 5 ? arguments[5] : void 0, + c = + arguments.length > 6 && arguments[6] !== void 0 + ? arguments[6] + : new Vo.ContractWrapper(e, t, i, a); + super(c, n, s), + au._defineProperty(this, "abi", void 0), + au._defineProperty(this, "metadata", void 0), + au._defineProperty(this, "roles", void 0), + au._defineProperty(this, "sales", void 0), + au._defineProperty(this, "platformFees", void 0), + au._defineProperty(this, "encoder", void 0), + au._defineProperty(this, "estimator", void 0), + au._defineProperty(this, "events", void 0), + au._defineProperty(this, "royalties", void 0), + au._defineProperty(this, "signature", void 0), + au._defineProperty(this, "interceptor", void 0), + au._defineProperty(this, "erc1155", void 0), + au._defineProperty(this, "owner", void 0), + (this.abi = i), + (this.metadata = new Vo.ContractMetadata( + this.contractWrapper, + Vo.TokenErc1155ContractSchema, + this.storage + )), + (this.roles = new Vo.ContractRoles( + this.contractWrapper, + lw.contractRoles + )), + (this.royalties = new Vo.ContractRoyalty( + this.contractWrapper, + this.metadata + )), + (this.sales = new Vo.ContractPrimarySale(this.contractWrapper)), + (this.encoder = new Vo.ContractEncoder(this.contractWrapper)), + (this.estimator = new Vo.GasCostEstimator(this.contractWrapper)), + (this.events = new Vo.ContractEvents(this.contractWrapper)), + (this.platformFees = new Vo.ContractPlatformFee( + this.contractWrapper + )), + (this.interceptor = new Vo.ContractInterceptor(this.contractWrapper)), + (this.signature = new Vo.Erc1155SignatureMintable( + this.contractWrapper, + this.storage, + this.roles + )), + (this.erc1155 = new Vo.Erc1155( + this.contractWrapper, + this.storage, + s + )), + (this.owner = new Vo.ContractOwner(this.contractWrapper)); + } + onNetworkUpdated(e) { + this.contractWrapper.updateSignerOrProvider(e); + } + getAddress() { + return this.contractWrapper.readContract.address; + } + async getAll(e) { + return this.erc1155.getAll(e); + } + async getOwned(e) { + return this.erc1155.getOwned(e); + } + async getTotalCount() { + return this.erc1155.totalCount(); + } + async isTransferRestricted() { + return !(await this.contractWrapper.readContract.hasRole( + Vo.getRoleHash("transfer"), + Vnr.constants.AddressZero + )); + } + async mint(e) { + return this.erc1155.mint(e); + } + async mintTo(e, t) { + return this.erc1155.mintTo(e, t); + } + async getMintTransaction(e, t) { + return this.erc1155.getMintTransaction(e, t); + } + async mintAdditionalSupply(e, t) { + return this.erc1155.mintAdditionalSupply(e, t); + } + async mintAdditionalSupplyTo(e, t, n) { + return this.erc1155.mintAdditionalSupplyTo(e, t, n); + } + async mintBatch(e) { + return this.erc1155.mintBatch(e); + } + async mintBatchTo(e, t) { + return this.erc1155.mintBatchTo(e, t); + } + async burn(e, t) { + return this.erc1155.burn(e, t); + } + async call(e) { + for ( + var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), a = 1; + a < t; + a++ + ) + n[a - 1] = arguments[a]; + return this.contractWrapper.call(e, ...n); + } + }; + au._defineProperty(lw, "contractRoles", ["admin", "minter", "transfer"]); + yFe.Edition = lw; + }); + var Sz = N((Con, Gnr) => { + Gnr.exports = [ + { inputs: [], stateMutability: "nonpayable", type: "constructor" }, + { + inputs: [ + { internalType: "address", name: "operator", type: "address" }, + ], + name: "OperatorNotAllowed", + type: "error", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "address", + name: "account", + type: "address", + }, + { + indexed: !0, + internalType: "address", + name: "operator", + type: "address", + }, + { indexed: !1, internalType: "bool", name: "approved", type: "bool" }, + ], + name: "ApprovalForAll", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "address", + name: "newRoyaltyRecipient", + type: "address", + }, + { + indexed: !1, + internalType: "uint256", + name: "newRoyaltyBps", + type: "uint256", + }, + ], + name: "DefaultRoyalty", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !1, + internalType: "uint8", + name: "version", + type: "uint8", + }, + ], + name: "Initialized", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !1, + internalType: "bool", + name: "restriction", + type: "bool", + }, + ], + name: "OperatorRestriction", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "address", + name: "prevOwner", + type: "address", + }, + { + indexed: !0, + internalType: "address", + name: "newOwner", + type: "address", + }, + ], + name: "OwnerUpdated", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "address", + name: "platformFeeRecipient", + type: "address", + }, + { + indexed: !1, + internalType: "uint256", + name: "platformFeeBps", + type: "uint256", + }, + ], + name: "PlatformFeeInfoUpdated", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "address", + name: "recipient", + type: "address", + }, + ], + name: "PrimarySaleRecipientUpdated", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "bytes32", + name: "role", + type: "bytes32", + }, + { + indexed: !0, + internalType: "bytes32", + name: "previousAdminRole", + type: "bytes32", + }, + { + indexed: !0, + internalType: "bytes32", + name: "newAdminRole", + type: "bytes32", + }, + ], + name: "RoleAdminChanged", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "bytes32", + name: "role", + type: "bytes32", + }, + { + indexed: !0, + internalType: "address", + name: "account", + type: "address", + }, + { + indexed: !0, + internalType: "address", + name: "sender", + type: "address", + }, + ], + name: "RoleGranted", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "bytes32", + name: "role", + type: "bytes32", + }, + { + indexed: !0, + internalType: "address", + name: "account", + type: "address", + }, + { + indexed: !0, + internalType: "address", + name: "sender", + type: "address", + }, + ], + name: "RoleRevoked", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "uint256", + name: "tokenId", + type: "uint256", + }, + { + indexed: !0, + internalType: "address", + name: "royaltyRecipient", + type: "address", + }, + { + indexed: !1, + internalType: "uint256", + name: "royaltyBps", + type: "uint256", + }, + ], + name: "RoyaltyForToken", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "address", + name: "mintedTo", + type: "address", + }, + { + indexed: !0, + internalType: "uint256", + name: "tokenIdMinted", + type: "uint256", + }, + { indexed: !1, internalType: "string", name: "uri", type: "string" }, + { + indexed: !1, + internalType: "uint256", + name: "quantityMinted", + type: "uint256", + }, + ], + name: "TokensMinted", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "address", + name: "signer", + type: "address", + }, + { + indexed: !0, + internalType: "address", + name: "mintedTo", + type: "address", + }, + { + indexed: !0, + internalType: "uint256", + name: "tokenIdMinted", + type: "uint256", + }, + { + components: [ + { internalType: "address", name: "to", type: "address" }, + { + internalType: "address", + name: "royaltyRecipient", + type: "address", + }, + { internalType: "uint256", name: "royaltyBps", type: "uint256" }, + { + internalType: "address", + name: "primarySaleRecipient", + type: "address", + }, + { internalType: "uint256", name: "tokenId", type: "uint256" }, + { internalType: "string", name: "uri", type: "string" }, + { internalType: "uint256", name: "quantity", type: "uint256" }, + { + internalType: "uint256", + name: "pricePerToken", + type: "uint256", + }, + { internalType: "address", name: "currency", type: "address" }, + { + internalType: "uint128", + name: "validityStartTimestamp", + type: "uint128", + }, + { + internalType: "uint128", + name: "validityEndTimestamp", + type: "uint128", + }, + { internalType: "bytes32", name: "uid", type: "bytes32" }, + ], + indexed: !1, + internalType: "struct ITokenERC1155.MintRequest", + name: "mintRequest", + type: "tuple", + }, + ], + name: "TokensMintedWithSignature", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "address", + name: "operator", + type: "address", + }, + { + indexed: !0, + internalType: "address", + name: "from", + type: "address", + }, + { indexed: !0, internalType: "address", name: "to", type: "address" }, + { + indexed: !1, + internalType: "uint256[]", + name: "ids", + type: "uint256[]", + }, + { + indexed: !1, + internalType: "uint256[]", + name: "values", + type: "uint256[]", + }, + ], + name: "TransferBatch", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "address", + name: "operator", + type: "address", + }, + { + indexed: !0, + internalType: "address", + name: "from", + type: "address", + }, + { indexed: !0, internalType: "address", name: "to", type: "address" }, + { indexed: !1, internalType: "uint256", name: "id", type: "uint256" }, + { + indexed: !1, + internalType: "uint256", + name: "value", + type: "uint256", + }, + ], + name: "TransferSingle", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !1, + internalType: "string", + name: "value", + type: "string", + }, + { indexed: !0, internalType: "uint256", name: "id", type: "uint256" }, + ], + name: "URI", + type: "event", + }, + { + inputs: [], + name: "DEFAULT_ADMIN_ROLE", + outputs: [{ internalType: "bytes32", name: "", type: "bytes32" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "account", type: "address" }, + { internalType: "uint256", name: "id", type: "uint256" }, + ], + name: "balanceOf", + outputs: [{ internalType: "uint256", name: "", type: "uint256" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "address[]", name: "accounts", type: "address[]" }, + { internalType: "uint256[]", name: "ids", type: "uint256[]" }, + ], + name: "balanceOfBatch", + outputs: [{ internalType: "uint256[]", name: "", type: "uint256[]" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "account", type: "address" }, + { internalType: "uint256", name: "id", type: "uint256" }, + { internalType: "uint256", name: "value", type: "uint256" }, + ], + name: "burn", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "account", type: "address" }, + { internalType: "uint256[]", name: "ids", type: "uint256[]" }, + { internalType: "uint256[]", name: "values", type: "uint256[]" }, + ], + name: "burnBatch", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [], + name: "contractType", + outputs: [{ internalType: "bytes32", name: "", type: "bytes32" }], + stateMutability: "pure", + type: "function", + }, + { + inputs: [], + name: "contractURI", + outputs: [{ internalType: "string", name: "", type: "string" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "contractVersion", + outputs: [{ internalType: "uint8", name: "", type: "uint8" }], + stateMutability: "pure", + type: "function", + }, + { + inputs: [], + name: "getDefaultRoyaltyInfo", + outputs: [ + { internalType: "address", name: "", type: "address" }, + { internalType: "uint16", name: "", type: "uint16" }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "getPlatformFeeInfo", + outputs: [ + { internalType: "address", name: "", type: "address" }, + { internalType: "uint16", name: "", type: "uint16" }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [{ internalType: "bytes32", name: "role", type: "bytes32" }], + name: "getRoleAdmin", + outputs: [{ internalType: "bytes32", name: "", type: "bytes32" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "bytes32", name: "role", type: "bytes32" }, + { internalType: "uint256", name: "index", type: "uint256" }, + ], + name: "getRoleMember", + outputs: [{ internalType: "address", name: "", type: "address" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [{ internalType: "bytes32", name: "role", type: "bytes32" }], + name: "getRoleMemberCount", + outputs: [{ internalType: "uint256", name: "", type: "uint256" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "uint256", name: "_tokenId", type: "uint256" }, + ], + name: "getRoyaltyInfoForToken", + outputs: [ + { internalType: "address", name: "", type: "address" }, + { internalType: "uint16", name: "", type: "uint16" }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "bytes32", name: "role", type: "bytes32" }, + { internalType: "address", name: "account", type: "address" }, + ], + name: "grantRole", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "bytes32", name: "role", type: "bytes32" }, + { internalType: "address", name: "account", type: "address" }, + ], + name: "hasRole", + outputs: [{ internalType: "bool", name: "", type: "bool" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "_defaultAdmin", type: "address" }, + { internalType: "string", name: "_name", type: "string" }, + { internalType: "string", name: "_symbol", type: "string" }, + { internalType: "string", name: "_contractURI", type: "string" }, + { + internalType: "address[]", + name: "_trustedForwarders", + type: "address[]", + }, + { + internalType: "address", + name: "_primarySaleRecipient", + type: "address", + }, + { + internalType: "address", + name: "_royaltyRecipient", + type: "address", + }, + { internalType: "uint128", name: "_royaltyBps", type: "uint128" }, + { internalType: "uint128", name: "_platformFeeBps", type: "uint128" }, + { + internalType: "address", + name: "_platformFeeRecipient", + type: "address", + }, + ], + name: "initialize", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "account", type: "address" }, + { internalType: "address", name: "operator", type: "address" }, + ], + name: "isApprovedForAll", + outputs: [{ internalType: "bool", name: "", type: "bool" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "forwarder", type: "address" }, + ], + name: "isTrustedForwarder", + outputs: [{ internalType: "bool", name: "", type: "bool" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "_to", type: "address" }, + { internalType: "uint256", name: "_tokenId", type: "uint256" }, + { internalType: "string", name: "_uri", type: "string" }, + { internalType: "uint256", name: "_amount", type: "uint256" }, + ], + name: "mintTo", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + components: [ + { internalType: "address", name: "to", type: "address" }, + { + internalType: "address", + name: "royaltyRecipient", + type: "address", + }, + { internalType: "uint256", name: "royaltyBps", type: "uint256" }, + { + internalType: "address", + name: "primarySaleRecipient", + type: "address", + }, + { internalType: "uint256", name: "tokenId", type: "uint256" }, + { internalType: "string", name: "uri", type: "string" }, + { internalType: "uint256", name: "quantity", type: "uint256" }, + { + internalType: "uint256", + name: "pricePerToken", + type: "uint256", + }, + { internalType: "address", name: "currency", type: "address" }, + { + internalType: "uint128", + name: "validityStartTimestamp", + type: "uint128", + }, + { + internalType: "uint128", + name: "validityEndTimestamp", + type: "uint128", + }, + { internalType: "bytes32", name: "uid", type: "bytes32" }, + ], + internalType: "struct ITokenERC1155.MintRequest", + name: "_req", + type: "tuple", + }, + { internalType: "bytes", name: "_signature", type: "bytes" }, + ], + name: "mintWithSignature", + outputs: [], + stateMutability: "payable", + type: "function", + }, + { + inputs: [{ internalType: "bytes[]", name: "data", type: "bytes[]" }], + name: "multicall", + outputs: [ + { internalType: "bytes[]", name: "results", type: "bytes[]" }, + ], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [], + name: "name", + outputs: [{ internalType: "string", name: "", type: "string" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "nextTokenIdToMint", + outputs: [{ internalType: "uint256", name: "", type: "uint256" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "operatorRestriction", + outputs: [{ internalType: "bool", name: "", type: "bool" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "owner", + outputs: [{ internalType: "address", name: "", type: "address" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "platformFeeRecipient", + outputs: [{ internalType: "address", name: "", type: "address" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "primarySaleRecipient", + outputs: [{ internalType: "address", name: "", type: "address" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "bytes32", name: "role", type: "bytes32" }, + { internalType: "address", name: "account", type: "address" }, + ], + name: "renounceRole", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "bytes32", name: "role", type: "bytes32" }, + { internalType: "address", name: "account", type: "address" }, + ], + name: "revokeRole", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "uint256", name: "tokenId", type: "uint256" }, + { internalType: "uint256", name: "salePrice", type: "uint256" }, + ], + name: "royaltyInfo", + outputs: [ + { internalType: "address", name: "receiver", type: "address" }, + { internalType: "uint256", name: "royaltyAmount", type: "uint256" }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "from", type: "address" }, + { internalType: "address", name: "to", type: "address" }, + { internalType: "uint256[]", name: "ids", type: "uint256[]" }, + { internalType: "uint256[]", name: "amounts", type: "uint256[]" }, + { internalType: "bytes", name: "data", type: "bytes" }, + ], + name: "safeBatchTransferFrom", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "from", type: "address" }, + { internalType: "address", name: "to", type: "address" }, + { internalType: "uint256", name: "id", type: "uint256" }, + { internalType: "uint256", name: "amount", type: "uint256" }, + { internalType: "bytes", name: "data", type: "bytes" }, + ], + name: "safeTransferFrom", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [{ internalType: "uint256", name: "", type: "uint256" }], + name: "saleRecipientForToken", + outputs: [{ internalType: "address", name: "", type: "address" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "operator", type: "address" }, + { internalType: "bool", name: "approved", type: "bool" }, + ], + name: "setApprovalForAll", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [{ internalType: "string", name: "_uri", type: "string" }], + name: "setContractURI", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "address", + name: "_royaltyRecipient", + type: "address", + }, + { internalType: "uint256", name: "_royaltyBps", type: "uint256" }, + ], + name: "setDefaultRoyaltyInfo", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [{ internalType: "bool", name: "_restriction", type: "bool" }], + name: "setOperatorRestriction", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "_newOwner", type: "address" }, + ], + name: "setOwner", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "address", + name: "_platformFeeRecipient", + type: "address", + }, + { internalType: "uint256", name: "_platformFeeBps", type: "uint256" }, + ], + name: "setPlatformFeeInfo", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "_saleRecipient", type: "address" }, + ], + name: "setPrimarySaleRecipient", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "uint256", name: "_tokenId", type: "uint256" }, + { internalType: "address", name: "_recipient", type: "address" }, + { internalType: "uint256", name: "_bps", type: "uint256" }, + ], + name: "setRoyaltyInfoForToken", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "bytes4", name: "interfaceId", type: "bytes4" }, + ], + name: "supportsInterface", + outputs: [{ internalType: "bool", name: "", type: "bool" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "symbol", + outputs: [{ internalType: "string", name: "", type: "string" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [{ internalType: "uint256", name: "", type: "uint256" }], + name: "totalSupply", + outputs: [{ internalType: "uint256", name: "", type: "uint256" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "uint256", name: "_tokenId", type: "uint256" }, + ], + name: "uri", + outputs: [{ internalType: "string", name: "", type: "string" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { + components: [ + { internalType: "address", name: "to", type: "address" }, + { + internalType: "address", + name: "royaltyRecipient", + type: "address", + }, + { internalType: "uint256", name: "royaltyBps", type: "uint256" }, + { + internalType: "address", + name: "primarySaleRecipient", + type: "address", + }, + { internalType: "uint256", name: "tokenId", type: "uint256" }, + { internalType: "string", name: "uri", type: "string" }, + { internalType: "uint256", name: "quantity", type: "uint256" }, + { + internalType: "uint256", + name: "pricePerToken", + type: "uint256", + }, + { internalType: "address", name: "currency", type: "address" }, + { + internalType: "uint128", + name: "validityStartTimestamp", + type: "uint128", + }, + { + internalType: "uint128", + name: "validityEndTimestamp", + type: "uint128", + }, + { internalType: "bytes32", name: "uid", type: "bytes32" }, + ], + internalType: "struct ITokenERC1155.MintRequest", + name: "_req", + type: "tuple", + }, + { internalType: "bytes", name: "_signature", type: "bytes" }, + ], + name: "verify", + outputs: [ + { internalType: "bool", name: "", type: "bool" }, + { internalType: "address", name: "", type: "address" }, + ], + stateMutability: "view", + type: "function", + }, + ]; + }); + var wFe = N((vFe) => { + "use strict"; + _(); + x(); + var Go = Oo(), + kn = kc(), + Ku = wt(), + Ynr = Ln(); + Gr(); + an(); + Bn(); + Nn(); + On(); + Dn(); + qn(); + Fn(); + Wn(); + Un(); + Hn(); + zn(); + jn(); + Kn(); + Vn(); + Gn(); + Yn(); + $n(); + Jn(); + Zn(); + Qn(); + Xn(); + ea(); + ta(); + ra(); + na(); + aa(); + ia(); + sa(); + oa(); + ca(); + ua(); + la(); + da(); + pa(); + ha(); + fa(); + ma(); + ya(); + ga(); + ba(); + va(); + wa(); + _a(); + xa(); + Ta(); + Ea(); + Ca(); + vn(); + Ia(); + Aa(); + ka(); + An(); + Sa(); + Ma(); + Pa(); + Ra(); + Ba(); + Na(); + Oa(); + La(); + Da(); + qa(); + Fa(); + Wa(); + Ua(); + Ha(); + za(); + function $nr(r) { + return r && r.__esModule ? r : { default: r }; + } + var bFe = $nr(Ynr), + dw = class { + get chainId() { + return this._chainId; + } + constructor(e, t, n) { + let a = + arguments.length > 3 && arguments[3] !== void 0 + ? arguments[3] + : {}, + i = arguments.length > 4 ? arguments[4] : void 0, + s = arguments.length > 5 ? arguments[5] : void 0, + c = + arguments.length > 6 && arguments[6] !== void 0 + ? arguments[6] + : new kn.ContractWrapper(e, t, i, a); + Go._defineProperty(this, "abi", void 0), + Go._defineProperty(this, "contractWrapper", void 0), + Go._defineProperty(this, "storage", void 0), + Go._defineProperty(this, "encoder", void 0), + Go._defineProperty(this, "events", void 0), + Go._defineProperty(this, "estimator", void 0), + Go._defineProperty(this, "platformFees", void 0), + Go._defineProperty(this, "metadata", void 0), + Go._defineProperty(this, "roles", void 0), + Go._defineProperty(this, "interceptor", void 0), + Go._defineProperty(this, "direct", void 0), + Go._defineProperty(this, "auction", void 0), + Go._defineProperty(this, "_chainId", void 0), + Go._defineProperty(this, "getAll", this.getAllListings), + (this._chainId = s), + (this.abi = i), + (this.contractWrapper = c), + (this.storage = n), + (this.metadata = new kn.ContractMetadata( + this.contractWrapper, + kn.MarketplaceContractSchema, + this.storage + )), + (this.roles = new kn.ContractRoles( + this.contractWrapper, + dw.contractRoles + )), + (this.encoder = new kn.ContractEncoder(this.contractWrapper)), + (this.estimator = new kn.GasCostEstimator(this.contractWrapper)), + (this.direct = new kn.MarketplaceDirect( + this.contractWrapper, + this.storage + )), + (this.auction = new kn.MarketplaceAuction( + this.contractWrapper, + this.storage + )), + (this.events = new kn.ContractEvents(this.contractWrapper)), + (this.platformFees = new kn.ContractPlatformFee( + this.contractWrapper + )), + (this.interceptor = new kn.ContractInterceptor( + this.contractWrapper + )); + } + onNetworkUpdated(e) { + this.contractWrapper.updateSignerOrProvider(e); + } + getAddress() { + return this.contractWrapper.readContract.address; + } + async getListing(e) { + let t = await this.contractWrapper.readContract.listings(e); + if (t.assetContract === Ku.constants.AddressZero) + throw new kn.ListingNotFoundError(this.getAddress(), e.toString()); + switch (t.listingType) { + case kn.ListingType.Auction: + return await this.auction.mapListing(t); + case kn.ListingType.Direct: + return await this.direct.mapListing(t); + default: + throw new Error(`Unknown listing type: ${t.listingType}`); + } + } + async getActiveListings(e) { + let t = await this.getAllListingsNoFilter(!0), + n = this.applyFilter(t, e), + a = Ku.BigNumber.from(Math.floor(Date.now() / 1e3)); + return n.filter( + (i) => + (i.type === kn.ListingType.Auction && + Ku.BigNumber.from(i.endTimeInEpochSeconds).gt(a) && + Ku.BigNumber.from(i.startTimeInEpochSeconds).lte(a)) || + (i.type === kn.ListingType.Direct && i.quantity > 0) + ); + } + async getAllListings(e) { + let t = await this.getAllListingsNoFilter(!1); + return this.applyFilter(t, e); + } + async getTotalCount() { + return await this.contractWrapper.readContract.totalListings(); + } + async isRestrictedToListerRoleOnly() { + return !(await this.contractWrapper.readContract.hasRole( + kn.getRoleHash("lister"), + Ku.constants.AddressZero + )); + } + async getBidBufferBps() { + return this.contractWrapper.readContract.bidBufferBps(); + } + async getTimeBufferInSeconds() { + return this.contractWrapper.readContract.timeBuffer(); + } + async getOffers(e) { + let t = await this.events.getEvents("NewOffer", { + order: "desc", + filters: { listingId: e }, + }); + return await Promise.all( + t.map( + async (n) => + await kn.mapOffer( + this.contractWrapper.getProvider(), + Ku.BigNumber.from(e), + { + quantityWanted: n.data.quantityWanted, + pricePerToken: n.data.quantityWanted.gt(0) + ? n.data.totalOfferAmount.div(n.data.quantityWanted) + : n.data.totalOfferAmount, + currency: n.data.currency, + offeror: n.data.offeror, + } + ) + ) + ); + } + async buyoutListing(e, t, n) { + let a = await this.contractWrapper.readContract.listings(e); + if (a.listingId.toString() !== e.toString()) + throw new kn.ListingNotFoundError(this.getAddress(), e.toString()); + switch (a.listingType) { + case kn.ListingType.Direct: + return ( + bFe.default( + t !== void 0, + "quantityDesired is required when buying out a direct listing" + ), + await this.direct.buyoutListing(e, t, n) + ); + case kn.ListingType.Auction: + return await this.auction.buyoutListing(e); + default: + throw Error(`Unknown listing type: ${a.listingType}`); + } + } + async makeOffer(e, t, n) { + let a = await this.contractWrapper.readContract.listings(e); + if (a.listingId.toString() !== e.toString()) + throw new kn.ListingNotFoundError(this.getAddress(), e.toString()); + let i = await this.contractWrapper.getChainID(); + switch (a.listingType) { + case kn.ListingType.Direct: + return ( + bFe.default( + n, + "quantity is required when making an offer on a direct listing" + ), + await this.direct.makeOffer( + e, + n, + kn.isNativeToken(a.currency) + ? kn.NATIVE_TOKENS[i].wrapped.address + : a.currency, + t + ) + ); + case kn.ListingType.Auction: + return await this.auction.makeBid(e, t); + default: + throw Error(`Unknown listing type: ${a.listingType}`); + } + } + async setBidBufferBps(e) { + await this.roles.verify( + ["admin"], + await this.contractWrapper.getSignerAddress() + ); + let t = await this.getTimeBufferInSeconds(); + await this.contractWrapper.sendTransaction("setAuctionBuffers", [ + t, + Ku.BigNumber.from(e), + ]); + } + async setTimeBufferInSeconds(e) { + await this.roles.verify( + ["admin"], + await this.contractWrapper.getSignerAddress() + ); + let t = await this.getBidBufferBps(); + await this.contractWrapper.sendTransaction("setAuctionBuffers", [ + Ku.BigNumber.from(e), + t, + ]); + } + async allowListingFromSpecificAssetOnly(e) { + let t = []; + (await this.roles.get("asset")).includes(Ku.constants.AddressZero) && + t.push( + this.encoder.encode("revokeRole", [ + kn.getRoleHash("asset"), + Ku.constants.AddressZero, + ]) + ), + t.push( + this.encoder.encode("grantRole", [kn.getRoleHash("asset"), e]) + ), + await this.contractWrapper.multiCall(t); + } + async allowListingFromAnyAsset() { + let e = [], + t = await this.roles.get("asset"); + for (let n in t) + e.push( + this.encoder.encode("revokeRole", [kn.getRoleHash("asset"), n]) + ); + e.push( + this.encoder.encode("grantRole", [ + kn.getRoleHash("asset"), + Ku.constants.AddressZero, + ]) + ), + await this.contractWrapper.multiCall(e); + } + async getAllListingsNoFilter(e) { + return ( + await Promise.all( + Array.from( + Array( + ( + await this.contractWrapper.readContract.totalListings() + ).toNumber() + ).keys() + ).map(async (n) => { + let a; + try { + a = await this.getListing(n); + } catch (i) { + if (i instanceof kn.ListingNotFoundError) return; + console.warn( + `Failed to get listing ${n}' - skipping. Try 'marketplace.getListing(${n})' to get the underlying error.` + ); + return; + } + if (a.type === kn.ListingType.Auction) return a; + if (e) { + let { valid: i } = await this.direct.isStillValidListing(a); + if (!i) return; + } + return a; + }) + ) + ).filter((n) => n !== void 0); + } + applyFilter(e, t) { + let n = [...e], + a = Ku.BigNumber.from(t?.start || 0).toNumber(), + i = Ku.BigNumber.from( + t?.count || Go.DEFAULT_QUERY_ALL_COUNT + ).toNumber(); + return ( + t && + (t.seller && + (n = n.filter( + (s) => + s.sellerAddress.toString().toLowerCase() === + t?.seller?.toString().toLowerCase() + )), + t.tokenContract && + (n = n.filter( + (s) => + s.assetContractAddress.toString().toLowerCase() === + t?.tokenContract?.toString().toLowerCase() + )), + t.tokenId !== void 0 && + (n = n.filter( + (s) => s.tokenId.toString() === t?.tokenId?.toString() + )), + (n = n.filter((s, c) => c >= a)), + (n = n.slice(0, i))), + n + ); + } + async call(e) { + for ( + var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), a = 1; + a < t; + a++ + ) + n[a - 1] = arguments[a]; + return this.contractWrapper.call(e, ...n); + } + }; + Go._defineProperty(dw, "contractRoles", ["admin", "lister", "asset"]); + vFe.Marketplace = dw; + }); + var Mz = N((Son, Jnr) => { + Jnr.exports = [ + { + inputs: [ + { + internalType: "address", + name: "_nativeTokenWrapper", + type: "address", + }, + ], + stateMutability: "nonpayable", + type: "constructor", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !1, + internalType: "uint256", + name: "timeBuffer", + type: "uint256", + }, + { + indexed: !1, + internalType: "uint256", + name: "bidBufferBps", + type: "uint256", + }, + ], + name: "AuctionBuffersUpdated", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "uint256", + name: "listingId", + type: "uint256", + }, + { + indexed: !0, + internalType: "address", + name: "closer", + type: "address", + }, + { + indexed: !0, + internalType: "bool", + name: "cancelled", + type: "bool", + }, + { + indexed: !1, + internalType: "address", + name: "auctionCreator", + type: "address", + }, + { + indexed: !1, + internalType: "address", + name: "winningBidder", + type: "address", + }, + ], + name: "AuctionClosed", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !1, + internalType: "uint8", + name: "version", + type: "uint8", + }, + ], + name: "Initialized", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "uint256", + name: "listingId", + type: "uint256", + }, + { + indexed: !0, + internalType: "address", + name: "assetContract", + type: "address", + }, + { + indexed: !0, + internalType: "address", + name: "lister", + type: "address", + }, + { + components: [ + { internalType: "uint256", name: "listingId", type: "uint256" }, + { internalType: "address", name: "tokenOwner", type: "address" }, + { + internalType: "address", + name: "assetContract", + type: "address", + }, + { internalType: "uint256", name: "tokenId", type: "uint256" }, + { internalType: "uint256", name: "startTime", type: "uint256" }, + { internalType: "uint256", name: "endTime", type: "uint256" }, + { internalType: "uint256", name: "quantity", type: "uint256" }, + { internalType: "address", name: "currency", type: "address" }, + { + internalType: "uint256", + name: "reservePricePerToken", + type: "uint256", + }, + { + internalType: "uint256", + name: "buyoutPricePerToken", + type: "uint256", + }, + { + internalType: "enum IMarketplace.TokenType", + name: "tokenType", + type: "uint8", + }, + { + internalType: "enum IMarketplace.ListingType", + name: "listingType", + type: "uint8", + }, + ], + indexed: !1, + internalType: "struct IMarketplace.Listing", + name: "listing", + type: "tuple", + }, + ], + name: "ListingAdded", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "uint256", + name: "listingId", + type: "uint256", + }, + { + indexed: !0, + internalType: "address", + name: "listingCreator", + type: "address", + }, + ], + name: "ListingRemoved", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "uint256", + name: "listingId", + type: "uint256", + }, + { + indexed: !0, + internalType: "address", + name: "listingCreator", + type: "address", + }, + ], + name: "ListingUpdated", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "uint256", + name: "listingId", + type: "uint256", + }, + { + indexed: !0, + internalType: "address", + name: "offeror", + type: "address", + }, + { + indexed: !0, + internalType: "enum IMarketplace.ListingType", + name: "listingType", + type: "uint8", + }, + { + indexed: !1, + internalType: "uint256", + name: "quantityWanted", + type: "uint256", + }, + { + indexed: !1, + internalType: "uint256", + name: "totalOfferAmount", + type: "uint256", + }, + { + indexed: !1, + internalType: "address", + name: "currency", + type: "address", + }, + ], + name: "NewOffer", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "uint256", + name: "listingId", + type: "uint256", + }, + { + indexed: !0, + internalType: "address", + name: "assetContract", + type: "address", + }, + { + indexed: !0, + internalType: "address", + name: "lister", + type: "address", + }, + { + indexed: !1, + internalType: "address", + name: "buyer", + type: "address", + }, + { + indexed: !1, + internalType: "uint256", + name: "quantityBought", + type: "uint256", + }, + { + indexed: !1, + internalType: "uint256", + name: "totalPricePaid", + type: "uint256", + }, + ], + name: "NewSale", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "address", + name: "platformFeeRecipient", + type: "address", + }, + { + indexed: !1, + internalType: "uint256", + name: "platformFeeBps", + type: "uint256", + }, + ], + name: "PlatformFeeInfoUpdated", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "bytes32", + name: "role", + type: "bytes32", + }, + { + indexed: !0, + internalType: "bytes32", + name: "previousAdminRole", + type: "bytes32", + }, + { + indexed: !0, + internalType: "bytes32", + name: "newAdminRole", + type: "bytes32", + }, + ], + name: "RoleAdminChanged", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "bytes32", + name: "role", + type: "bytes32", + }, + { + indexed: !0, + internalType: "address", + name: "account", + type: "address", + }, + { + indexed: !0, + internalType: "address", + name: "sender", + type: "address", + }, + ], + name: "RoleGranted", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "bytes32", + name: "role", + type: "bytes32", + }, + { + indexed: !0, + internalType: "address", + name: "account", + type: "address", + }, + { + indexed: !0, + internalType: "address", + name: "sender", + type: "address", + }, + ], + name: "RoleRevoked", + type: "event", + }, + { + inputs: [], + name: "DEFAULT_ADMIN_ROLE", + outputs: [{ internalType: "bytes32", name: "", type: "bytes32" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "MAX_BPS", + outputs: [{ internalType: "uint64", name: "", type: "uint64" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "uint256", name: "_listingId", type: "uint256" }, + { internalType: "address", name: "_offeror", type: "address" }, + { internalType: "address", name: "_currency", type: "address" }, + { internalType: "uint256", name: "_pricePerToken", type: "uint256" }, + ], + name: "acceptOffer", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [], + name: "bidBufferBps", + outputs: [{ internalType: "uint64", name: "", type: "uint64" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "uint256", name: "_listingId", type: "uint256" }, + { internalType: "address", name: "_buyFor", type: "address" }, + { internalType: "uint256", name: "_quantityToBuy", type: "uint256" }, + { internalType: "address", name: "_currency", type: "address" }, + { internalType: "uint256", name: "_totalPrice", type: "uint256" }, + ], + name: "buy", + outputs: [], + stateMutability: "payable", + type: "function", + }, + { + inputs: [ + { internalType: "uint256", name: "_listingId", type: "uint256" }, + ], + name: "cancelDirectListing", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "uint256", name: "_listingId", type: "uint256" }, + { internalType: "address", name: "_closeFor", type: "address" }, + ], + name: "closeAuction", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [], + name: "contractType", + outputs: [{ internalType: "bytes32", name: "", type: "bytes32" }], + stateMutability: "pure", + type: "function", + }, + { + inputs: [], + name: "contractURI", + outputs: [{ internalType: "string", name: "", type: "string" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "contractVersion", + outputs: [{ internalType: "uint8", name: "", type: "uint8" }], + stateMutability: "pure", + type: "function", + }, + { + inputs: [ + { + components: [ + { + internalType: "address", + name: "assetContract", + type: "address", + }, + { internalType: "uint256", name: "tokenId", type: "uint256" }, + { internalType: "uint256", name: "startTime", type: "uint256" }, + { + internalType: "uint256", + name: "secondsUntilEndTime", + type: "uint256", + }, + { + internalType: "uint256", + name: "quantityToList", + type: "uint256", + }, + { + internalType: "address", + name: "currencyToAccept", + type: "address", + }, + { + internalType: "uint256", + name: "reservePricePerToken", + type: "uint256", + }, + { + internalType: "uint256", + name: "buyoutPricePerToken", + type: "uint256", + }, + { + internalType: "enum IMarketplace.ListingType", + name: "listingType", + type: "uint8", + }, + ], + internalType: "struct IMarketplace.ListingParameters", + name: "_params", + type: "tuple", + }, + ], + name: "createListing", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [], + name: "getPlatformFeeInfo", + outputs: [ + { internalType: "address", name: "", type: "address" }, + { internalType: "uint16", name: "", type: "uint16" }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [{ internalType: "bytes32", name: "role", type: "bytes32" }], + name: "getRoleAdmin", + outputs: [{ internalType: "bytes32", name: "", type: "bytes32" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "bytes32", name: "role", type: "bytes32" }, + { internalType: "uint256", name: "index", type: "uint256" }, + ], + name: "getRoleMember", + outputs: [{ internalType: "address", name: "", type: "address" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [{ internalType: "bytes32", name: "role", type: "bytes32" }], + name: "getRoleMemberCount", + outputs: [{ internalType: "uint256", name: "", type: "uint256" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "bytes32", name: "role", type: "bytes32" }, + { internalType: "address", name: "account", type: "address" }, + ], + name: "grantRole", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "bytes32", name: "role", type: "bytes32" }, + { internalType: "address", name: "account", type: "address" }, + ], + name: "hasRole", + outputs: [{ internalType: "bool", name: "", type: "bool" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "_defaultAdmin", type: "address" }, + { internalType: "string", name: "_contractURI", type: "string" }, + { + internalType: "address[]", + name: "_trustedForwarders", + type: "address[]", + }, + { + internalType: "address", + name: "_platformFeeRecipient", + type: "address", + }, + { internalType: "uint256", name: "_platformFeeBps", type: "uint256" }, + ], + name: "initialize", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "forwarder", type: "address" }, + ], + name: "isTrustedForwarder", + outputs: [{ internalType: "bool", name: "", type: "bool" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [{ internalType: "uint256", name: "", type: "uint256" }], + name: "listings", + outputs: [ + { internalType: "uint256", name: "listingId", type: "uint256" }, + { internalType: "address", name: "tokenOwner", type: "address" }, + { internalType: "address", name: "assetContract", type: "address" }, + { internalType: "uint256", name: "tokenId", type: "uint256" }, + { internalType: "uint256", name: "startTime", type: "uint256" }, + { internalType: "uint256", name: "endTime", type: "uint256" }, + { internalType: "uint256", name: "quantity", type: "uint256" }, + { internalType: "address", name: "currency", type: "address" }, + { + internalType: "uint256", + name: "reservePricePerToken", + type: "uint256", + }, + { + internalType: "uint256", + name: "buyoutPricePerToken", + type: "uint256", + }, + { + internalType: "enum IMarketplace.TokenType", + name: "tokenType", + type: "uint8", + }, + { + internalType: "enum IMarketplace.ListingType", + name: "listingType", + type: "uint8", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [{ internalType: "bytes[]", name: "data", type: "bytes[]" }], + name: "multicall", + outputs: [ + { internalType: "bytes[]", name: "results", type: "bytes[]" }, + ], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "uint256", name: "_listingId", type: "uint256" }, + { internalType: "uint256", name: "_quantityWanted", type: "uint256" }, + { internalType: "address", name: "_currency", type: "address" }, + { internalType: "uint256", name: "_pricePerToken", type: "uint256" }, + { + internalType: "uint256", + name: "_expirationTimestamp", + type: "uint256", + }, + ], + name: "offer", + outputs: [], + stateMutability: "payable", + type: "function", + }, + { + inputs: [ + { internalType: "uint256", name: "", type: "uint256" }, + { internalType: "address", name: "", type: "address" }, + ], + name: "offers", + outputs: [ + { internalType: "uint256", name: "listingId", type: "uint256" }, + { internalType: "address", name: "offeror", type: "address" }, + { internalType: "uint256", name: "quantityWanted", type: "uint256" }, + { internalType: "address", name: "currency", type: "address" }, + { internalType: "uint256", name: "pricePerToken", type: "uint256" }, + { + internalType: "uint256", + name: "expirationTimestamp", + type: "uint256", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "", type: "address" }, + { internalType: "address", name: "", type: "address" }, + { internalType: "uint256[]", name: "", type: "uint256[]" }, + { internalType: "uint256[]", name: "", type: "uint256[]" }, + { internalType: "bytes", name: "", type: "bytes" }, + ], + name: "onERC1155BatchReceived", + outputs: [{ internalType: "bytes4", name: "", type: "bytes4" }], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "", type: "address" }, + { internalType: "address", name: "", type: "address" }, + { internalType: "uint256", name: "", type: "uint256" }, + { internalType: "uint256", name: "", type: "uint256" }, + { internalType: "bytes", name: "", type: "bytes" }, + ], + name: "onERC1155Received", + outputs: [{ internalType: "bytes4", name: "", type: "bytes4" }], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "", type: "address" }, + { internalType: "address", name: "", type: "address" }, + { internalType: "uint256", name: "", type: "uint256" }, + { internalType: "bytes", name: "", type: "bytes" }, + ], + name: "onERC721Received", + outputs: [{ internalType: "bytes4", name: "", type: "bytes4" }], + stateMutability: "pure", + type: "function", + }, + { + inputs: [ + { internalType: "bytes32", name: "role", type: "bytes32" }, + { internalType: "address", name: "account", type: "address" }, + ], + name: "renounceRole", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "bytes32", name: "role", type: "bytes32" }, + { internalType: "address", name: "account", type: "address" }, + ], + name: "revokeRole", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "uint256", name: "_timeBuffer", type: "uint256" }, + { internalType: "uint256", name: "_bidBufferBps", type: "uint256" }, + ], + name: "setAuctionBuffers", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [{ internalType: "string", name: "_uri", type: "string" }], + name: "setContractURI", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "address", + name: "_platformFeeRecipient", + type: "address", + }, + { internalType: "uint256", name: "_platformFeeBps", type: "uint256" }, + ], + name: "setPlatformFeeInfo", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "bytes4", name: "interfaceId", type: "bytes4" }, + ], + name: "supportsInterface", + outputs: [{ internalType: "bool", name: "", type: "bool" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "timeBuffer", + outputs: [{ internalType: "uint64", name: "", type: "uint64" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "totalListings", + outputs: [{ internalType: "uint256", name: "", type: "uint256" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "uint256", name: "_listingId", type: "uint256" }, + { internalType: "uint256", name: "_quantityToList", type: "uint256" }, + { + internalType: "uint256", + name: "_reservePricePerToken", + type: "uint256", + }, + { + internalType: "uint256", + name: "_buyoutPricePerToken", + type: "uint256", + }, + { + internalType: "address", + name: "_currencyToAccept", + type: "address", + }, + { internalType: "uint256", name: "_startTime", type: "uint256" }, + { + internalType: "uint256", + name: "_secondsUntilEndTime", + type: "uint256", + }, + ], + name: "updateListing", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [{ internalType: "uint256", name: "", type: "uint256" }], + name: "winningBid", + outputs: [ + { internalType: "uint256", name: "listingId", type: "uint256" }, + { internalType: "address", name: "offeror", type: "address" }, + { internalType: "uint256", name: "quantityWanted", type: "uint256" }, + { internalType: "address", name: "currency", type: "address" }, + { internalType: "uint256", name: "pricePerToken", type: "uint256" }, + { + internalType: "uint256", + name: "expirationTimestamp", + type: "uint256", + }, + ], + stateMutability: "view", + type: "function", + }, + { stateMutability: "payable", type: "receive" }, + ]; + }); + var TFe = N((xFe) => { + "use strict"; + _(); + x(); + var sn = Oo(), + dt = kc(), + IM = an(), + Znr = Bn(), + Qnr = Nn(), + Xnr = On(), + Xt = wt(), + ear = Ln(), + tar = Hn(); + Gr(); + Dn(); + qn(); + Fn(); + Wn(); + Un(); + zn(); + jn(); + Kn(); + Vn(); + Gn(); + Yn(); + $n(); + Jn(); + Zn(); + Qn(); + Xn(); + ea(); + ta(); + ra(); + na(); + aa(); + ia(); + sa(); + oa(); + ca(); + ua(); + la(); + da(); + pa(); + ha(); + fa(); + ma(); + ya(); + ga(); + ba(); + va(); + wa(); + _a(); + xa(); + Ta(); + Ea(); + Ca(); + vn(); + Ia(); + Aa(); + ka(); + An(); + Sa(); + Ma(); + Pa(); + Ra(); + Ba(); + Na(); + Oa(); + La(); + Da(); + qa(); + Fa(); + Wa(); + Ua(); + Ha(); + za(); + function Y5(r) { + return r && r.__esModule ? r : { default: r }; + } + var rar = Y5(Znr), + nar = Y5(Qnr), + aar = Y5(Xnr), + pw = Y5(ear), + iar = Y5(tar), + _Fe = IM.z.object({ + assetContractAddress: dt.AddressSchema, + tokenId: dt.BigNumberishSchema, + quantity: dt.BigNumberishSchema.default(1), + currencyContractAddress: dt.AddressSchema.default( + dt.NATIVE_TOKEN_ADDRESS + ), + pricePerToken: sn.AmountSchema, + startTimestamp: dt.RawDateSchema.default(new Date()), + endTimestamp: dt.EndDateSchema, + isReservedListing: IM.z.boolean().default(!1), + }), + Pz = class { + constructor(e, t) { + sn._defineProperty( + this, + "featureName", + dt.FEATURE_DIRECT_LISTINGS.name + ), + sn._defineProperty(this, "contractWrapper", void 0), + sn._defineProperty(this, "storage", void 0), + sn._defineProperty(this, "events", void 0), + sn._defineProperty(this, "interceptor", void 0), + sn._defineProperty(this, "encoder", void 0), + sn._defineProperty(this, "estimator", void 0), + (this.contractWrapper = e), + (this.storage = t), + (this.events = new dt.ContractEvents(this.contractWrapper)), + (this.encoder = new dt.ContractEncoder(this.contractWrapper)), + (this.interceptor = new dt.ContractInterceptor( + this.contractWrapper + )), + (this.estimator = new dt.GasCostEstimator(this.contractWrapper)); + } + getAddress() { + return this.contractWrapper.readContract.address; + } + async getTotalCount() { + return await this.contractWrapper.readContract.totalListings(); + } + async getAll(e) { + let t = await this.getTotalCount(), + n = Xt.BigNumber.from(e?.start || 0).toNumber(), + a = t.toNumber(); + if (a === 0) throw new Error("No listings exist on the contract."); + let i = []; + i = ( + await dt.getAllInBatches( + n, + a, + this.contractWrapper.readContract.getAllListings + ) + ).flat(); + let c = this.applyFilter(i, e); + return await Promise.all(c.map((l) => this.mapListing(l))); + } + async getAllValid(e) { + let t = await this.getTotalCount(), + n = Xt.BigNumber.from(e?.start || 0).toNumber(), + a = t.toNumber(); + if (a === 0) throw new Error("No listings exist on the contract."); + let i = []; + i = ( + await dt.getAllInBatches( + n, + a, + this.contractWrapper.readContract.getAllValidListings + ) + ).flat(); + let c = this.applyFilter(i, e); + return await Promise.all(c.map((l) => this.mapListing(l))); + } + async getListing(e) { + let t = await this.contractWrapper.readContract.getListing(e); + return await this.mapListing(t); + } + async isBuyerApprovedForListing(e, t) { + if ( + !(await this.validateListing(Xt.BigNumber.from(e))) + .isReservedListing + ) + throw new Error(`Listing ${e} is not a reserved listing.`); + return await this.contractWrapper.readContract.isBuyerApprovedForListing( + e, + t + ); + } + async isCurrencyApprovedForListing(e, t) { + return ( + await this.validateListing(Xt.BigNumber.from(e)), + await this.contractWrapper.readContract.isCurrencyApprovedForListing( + e, + t + ) + ); + } + async currencyPriceForListing(e, t) { + let n = await this.validateListing(Xt.BigNumber.from(e)); + if (t === n.currencyContractAddress) return n.pricePerToken; + if (!(await this.isCurrencyApprovedForListing(e, t))) + throw new Error(`Currency ${t} is not approved for Listing ${e}.`); + return await this.contractWrapper.readContract.currencyPriceForListing( + e, + t + ); + } + async createListing(e) { + let t = _Fe.parse(e); + await dt.handleTokenApproval( + this.contractWrapper, + this.getAddress(), + t.assetContractAddress, + t.tokenId, + await this.contractWrapper.getSignerAddress() + ); + let n = await dt.normalizePriceValue( + this.contractWrapper.getProvider(), + t.pricePerToken, + t.currencyContractAddress + ), + i = (await this.contractWrapper.getProvider().getBlock("latest")) + .timestamp; + t.startTimestamp.lt(i) && (t.startTimestamp = Xt.BigNumber.from(i)); + let s = await this.contractWrapper.sendTransaction( + "createListing", + [ + { + assetContract: t.assetContractAddress, + tokenId: t.tokenId, + quantity: t.quantity, + currency: dt.cleanCurrencyAddress(t.currencyContractAddress), + pricePerToken: n, + startTimestamp: t.startTimestamp, + endTimestamp: t.endTimestamp, + reserved: t.isReservedListing, + }, + ], + { gasLimit: 5e5 } + ); + return { + id: this.contractWrapper.parseLogs("NewListing", s?.logs)[0].args + .listingId, + receipt: s, + }; + } + async updateListing(e, t) { + let n = _Fe.parse(t); + await dt.handleTokenApproval( + this.contractWrapper, + this.getAddress(), + n.assetContractAddress, + n.tokenId, + await this.contractWrapper.getSignerAddress() + ); + let a = await dt.normalizePriceValue( + this.contractWrapper.getProvider(), + n.pricePerToken, + n.currencyContractAddress + ), + i = await this.contractWrapper.sendTransaction( + "updateListing", + [ + e, + { + assetContract: n.assetContractAddress, + tokenId: n.tokenId, + quantity: n.quantity, + currency: dt.cleanCurrencyAddress(n.currencyContractAddress), + pricePerToken: a, + startTimestamp: n.startTimestamp, + endTimestamp: n.endTimestamp, + reserved: n.isReservedListing, + }, + ], + { gasLimit: 5e5 } + ); + return { + id: this.contractWrapper.parseLogs("UpdatedListing", i?.logs)[0] + .args.listingId, + receipt: i, + }; + } + async cancelListing(e) { + return { + receipt: await this.contractWrapper.sendTransaction( + "cancelListing", + [e] + ), + }; + } + async buyFromListing(e, t, n) { + let a = await this.validateListing(Xt.BigNumber.from(e)), + { valid: i, error: s } = await this.isStillValidListing(a, t); + if (!i) throw new Error(`Listing ${e} is no longer valid. ${s}`); + let c = n || (await this.contractWrapper.getSignerAddress()), + l = Xt.BigNumber.from(t), + d = Xt.BigNumber.from(a.pricePerToken).mul(l), + m = (await this.contractWrapper.getCallOverrides()) || {}; + return ( + await dt.setErc20Allowance( + this.contractWrapper, + d, + a.currencyContractAddress, + m + ), + { + receipt: await this.contractWrapper.sendTransaction( + "buyFromListing", + [e, c, l, a.currencyContractAddress, d], + m + ), + } + ); + } + async approveBuyerForReservedListing(e, t) { + if (await this.isBuyerApprovedForListing(e, t)) + throw new Error(`Buyer ${t} already approved for listing ${e}.`); + return { + receipt: await this.contractWrapper.sendTransaction( + "approveBuyerForListing", + [e, t, !0] + ), + }; + } + async revokeBuyerApprovalForReservedListing(e, t) { + if (await this.isBuyerApprovedForListing(e, t)) + return { + receipt: await this.contractWrapper.sendTransaction( + "approveBuyerForListing", + [e, t, !1] + ), + }; + throw new Error(`Buyer ${t} not approved for listing ${e}.`); + } + async approveCurrencyForListing(e, t, n) { + let a = await this.validateListing(Xt.BigNumber.from(e)); + t === a.currencyContractAddress && + pw.default( + n === a.pricePerToken, + "Approving listing currency with a different price." + ); + let i = + await this.contractWrapper.readContract.currencyPriceForListing( + e, + t + ); + return ( + pw.default(n === i, "Currency already approved with this price."), + { + receipt: await this.contractWrapper.sendTransaction( + "approveCurrencyForListing", + [e, t, n] + ), + } + ); + } + async revokeCurrencyApprovalForListing(e, t) { + let n = await this.validateListing(Xt.BigNumber.from(e)); + if (t === n.currencyContractAddress) + throw new Error("Can't revoke approval for main listing currency."); + let a = + await this.contractWrapper.readContract.currencyPriceForListing( + e, + t + ); + return ( + pw.default(!a.isZero(), "Currency not approved."), + { + receipt: await this.contractWrapper.sendTransaction( + "approveCurrencyForListing", + [e, t, Xt.BigNumber.from(0)] + ), + } + ); + } + async validateListing(e) { + try { + return await this.getListing(e); + } catch (t) { + throw (console.error(`Error getting the listing with id ${e}`), t); + } + } + async mapListing(e) { + let t = dt.Status.UNSET, + a = (await this.contractWrapper.getProvider().getBlock("latest")) + .timestamp; + switch (e.status) { + case 1: + t = Xt.BigNumber.from(e.startTimestamp).gt(a) + ? dt.Status.Created + : Xt.BigNumber.from(e.endTimestamp).lt(a) + ? dt.Status.Expired + : dt.Status.Active; + break; + case 2: + t = dt.Status.Completed; + break; + case 3: + t = dt.Status.Cancelled; + break; + } + return { + assetContractAddress: e.assetContract, + currencyContractAddress: e.currency, + pricePerToken: e.pricePerToken.toString(), + currencyValuePerToken: await dt.fetchCurrencyValue( + this.contractWrapper.getProvider(), + e.currency, + e.pricePerToken + ), + id: e.listingId.toString(), + tokenId: e.tokenId.toString(), + quantity: e.quantity.toString(), + startTimeInSeconds: Xt.BigNumber.from(e.startTimestamp).toNumber(), + asset: await dt.fetchTokenMetadataForContract( + e.assetContract, + this.contractWrapper.getProvider(), + e.tokenId, + this.storage + ), + endTimeInSeconds: Xt.BigNumber.from(e.endTimestamp).toNumber(), + creatorAddress: e.listingCreator, + isReservedListing: e.reserved, + status: t, + }; + } + async isStillValidListing(e, t) { + if ( + !(await dt.isTokenApprovedForTransfer( + this.contractWrapper.getProvider(), + this.getAddress(), + e.assetContractAddress, + e.tokenId, + e.creatorAddress + )) + ) + return { + valid: !1, + error: `Token '${e.tokenId}' from contract '${e.assetContractAddress}' is not approved for transfer`, + }; + let a = this.contractWrapper.getProvider(), + i = new Xt.Contract(e.assetContractAddress, rar.default, a), + s = await i.supportsInterface(dt.InterfaceId_IERC721), + c = await i.supportsInterface(dt.InterfaceId_IERC1155); + if (s) { + let d = + ( + await new Xt.Contract( + e.assetContractAddress, + nar.default, + a + ).ownerOf(e.tokenId) + ).toLowerCase() === e.creatorAddress.toLowerCase(); + return { + valid: d, + error: d + ? void 0 + : `Seller is not the owner of Token '${e.tokenId}' from contract '${e.assetContractAddress} anymore'`, + }; + } else if (c) { + let m = ( + await new Xt.Contract( + e.assetContractAddress, + aar.default, + a + ).balanceOf(e.creatorAddress, e.tokenId) + ).gte(t || e.quantity); + return { + valid: m, + error: m + ? void 0 + : `Seller does not have enough balance of Token '${e.tokenId}' from contract '${e.assetContractAddress} to fulfill the listing`, + }; + } else + return { + valid: !1, + error: "Contract does not implement ERC 1155 or ERC 721.", + }; + } + applyFilter(e, t) { + let n = [...e]; + return ( + t && + (t.seller && + (n = n.filter( + (a) => + a.listingCreator.toString().toLowerCase() === + t?.seller?.toString().toLowerCase() + )), + t.tokenContract && + (n = n.filter( + (a) => + a.assetContract.toString().toLowerCase() === + t?.tokenContract?.toString().toLowerCase() + )), + t.tokenId !== void 0 && + (n = n.filter( + (a) => a.tokenId.toString() === t?.tokenId?.toString() + ))), + t?.count && t.count < n.length ? n.slice(0, t.count) : n + ); + } + }, + sar = IM.z.object({ + assetContractAddress: dt.AddressSchema, + tokenId: dt.BigNumberishSchema, + quantity: dt.BigNumberishSchema.default(1), + currencyContractAddress: dt.AddressSchema.default( + dt.NATIVE_TOKEN_ADDRESS + ), + minimumBidAmount: sn.AmountSchema, + buyoutBidAmount: sn.AmountSchema, + timeBufferInSeconds: dt.BigNumberishSchema.default(900), + bidBufferBps: dt.BigNumberishSchema.default(500), + startTimestamp: dt.RawDateSchema.default(new Date()), + endTimestamp: dt.EndDateSchema, + }), + Rz = class { + constructor(e, t) { + sn._defineProperty( + this, + "featureName", + dt.FEATURE_ENGLISH_AUCTIONS.name + ), + sn._defineProperty(this, "contractWrapper", void 0), + sn._defineProperty(this, "storage", void 0), + sn._defineProperty(this, "events", void 0), + sn._defineProperty(this, "interceptor", void 0), + sn._defineProperty(this, "encoder", void 0), + sn._defineProperty(this, "estimator", void 0), + (this.contractWrapper = e), + (this.storage = t), + (this.events = new dt.ContractEvents(this.contractWrapper)), + (this.encoder = new dt.ContractEncoder(this.contractWrapper)), + (this.interceptor = new dt.ContractInterceptor( + this.contractWrapper + )), + (this.estimator = new dt.GasCostEstimator(this.contractWrapper)); + } + getAddress() { + return this.contractWrapper.readContract.address; + } + async getTotalCount() { + return await this.contractWrapper.readContract.totalAuctions(); + } + async getAll(e) { + let t = await this.getTotalCount(), + n = Xt.BigNumber.from(e?.start || 0).toNumber(), + a = t.toNumber(); + if (a === 0) throw new Error("No auctions exist on the contract."); + let i = []; + i = ( + await dt.getAllInBatches( + n, + a, + this.contractWrapper.readContract.getAllAuctions + ) + ).flat(); + let c = this.applyFilter(i, e); + return await Promise.all(c.map((l) => this.mapAuction(l))); + } + async getAllValid(e) { + let t = await this.getTotalCount(), + n = Xt.BigNumber.from(e?.start || 0).toNumber(), + a = t.toNumber(); + if (a === 0) throw new Error("No auctions exist on the contract."); + let i = []; + i = ( + await dt.getAllInBatches( + n, + a, + this.contractWrapper.readContract.getAllValidAuctions + ) + ).flat(); + let c = this.applyFilter(i, e); + return await Promise.all(c.map((l) => this.mapAuction(l))); + } + async getAuction(e) { + let t = await this.contractWrapper.readContract.getAuction(e); + return await this.mapAuction(t); + } + async getWinningBid(e) { + await this.validateAuction(Xt.BigNumber.from(e)); + let t = await this.contractWrapper.readContract.getWinningBid(e); + if (t._bidder !== Xt.constants.AddressZero) + return await this.mapBid( + e.toString(), + t._bidder, + t._currency, + t._bidAmount.toString() + ); + } + async isWinningBid(e, t) { + return await this.contractWrapper.readContract.isNewWinningBid(e, t); + } + async getWinner(e) { + let t = await this.validateAuction(Xt.BigNumber.from(e)), + n = await this.contractWrapper.readContract.getWinningBid(e), + a = Xt.BigNumber.from(Math.floor(Date.now() / 1e3)), + i = Xt.BigNumber.from(t.endTimeInSeconds); + if (a.gt(i) && n._bidder !== Xt.constants.AddressZero) + return n._bidder; + let c = ( + await this.contractWrapper.readContract.queryFilter( + this.contractWrapper.readContract.filters.AuctionClosed() + ) + ).find((l) => l.args.auctionId.eq(Xt.BigNumber.from(e))); + if (!c) + throw new Error( + `Could not find auction with ID ${e} in closed auctions` + ); + return c.args.winningBidder; + } + async createAuction(e) { + let t = sar.parse(e); + await dt.handleTokenApproval( + this.contractWrapper, + this.getAddress(), + t.assetContractAddress, + t.tokenId, + await this.contractWrapper.getSignerAddress() + ); + let n = await dt.normalizePriceValue( + this.contractWrapper.getProvider(), + t.buyoutBidAmount, + t.currencyContractAddress + ), + a = await dt.normalizePriceValue( + this.contractWrapper.getProvider(), + t.minimumBidAmount, + t.currencyContractAddress + ), + s = (await this.contractWrapper.getProvider().getBlock("latest")) + .timestamp; + t.startTimestamp.lt(s) && (t.startTimestamp = Xt.BigNumber.from(s)); + let c = await this.contractWrapper.sendTransaction( + "createAuction", + [ + { + assetContract: t.assetContractAddress, + tokenId: t.tokenId, + quantity: t.quantity, + currency: dt.cleanCurrencyAddress(t.currencyContractAddress), + minimumBidAmount: a, + buyoutBidAmount: n, + timeBufferInSeconds: t.timeBufferInSeconds, + bidBufferBps: t.bidBufferBps, + startTimestamp: t.startTimestamp, + endTimestamp: t.endTimestamp, + }, + ], + { gasLimit: 5e5 } + ); + return { + id: this.contractWrapper.parseLogs("NewAuction", c?.logs)[0].args + .auctionId, + receipt: c, + }; + } + async buyoutAuction(e) { + let t = await this.validateAuction(Xt.BigNumber.from(e)), + n = await dt.fetchCurrencyMetadata( + this.contractWrapper.getProvider(), + t.currencyContractAddress + ); + return this.makeBid( + e, + Xt.ethers.utils.formatUnits(t.buyoutBidAmount, n.decimals) + ); + } + async makeBid(e, t) { + let n = await this.validateAuction(Xt.BigNumber.from(e)), + a = await dt.normalizePriceValue( + this.contractWrapper.getProvider(), + t, + n.currencyContractAddress + ); + if (a.eq(Xt.BigNumber.from(0))) + throw new Error("Cannot make a bid with 0 value"); + if ( + Xt.BigNumber.from(n.buyoutBidAmount).gt(0) && + a.gt(n.buyoutBidAmount) + ) + throw new Error( + "Bid amount must be less than or equal to buyoutBidAmount" + ); + if (await this.getWinningBid(e)) { + let c = await this.isWinningBid(e, a); + pw.default( + c, + "Bid price is too low based on the current winning bid and the bid buffer" + ); + } else { + let c = a, + l = Xt.BigNumber.from(n.minimumBidAmount); + pw.default( + c.gte(l), + "Bid price is too low based on minimum bid amount" + ); + } + let s = (await this.contractWrapper.getCallOverrides()) || {}; + return ( + await dt.setErc20Allowance( + this.contractWrapper, + a, + n.currencyContractAddress, + s + ), + { + receipt: await this.contractWrapper.sendTransaction( + "bidInAuction", + [e, a], + s + ), + } + ); + } + async cancelAuction(e) { + if (await this.getWinningBid(e)) + throw new Error("Bids already made."); + return { + receipt: await this.contractWrapper.sendTransaction( + "cancelAuction", + [e] + ), + }; + } + async closeAuctionForBidder(e, t) { + t || (t = await this.contractWrapper.getSignerAddress()); + let n = await this.validateAuction(Xt.BigNumber.from(e)); + try { + return { + receipt: await this.contractWrapper.sendTransaction( + "collectAuctionTokens", + [Xt.BigNumber.from(e)] + ), + }; + } catch (a) { + throw a.message.includes("Marketplace: auction still active.") + ? new dt.AuctionHasNotEndedError( + e.toString(), + n.endTimeInSeconds.toString() + ) + : a; + } + } + async closeAuctionForSeller(e) { + let t = await this.validateAuction(Xt.BigNumber.from(e)); + try { + return { + receipt: await this.contractWrapper.sendTransaction( + "collectAuctionPayout", + [Xt.BigNumber.from(e)] + ), + }; + } catch (n) { + throw n.message.includes("Marketplace: auction still active.") + ? new dt.AuctionHasNotEndedError( + e.toString(), + t.endTimeInSeconds.toString() + ) + : n; + } + } + async executeSale(e) { + let t = await this.validateAuction(Xt.BigNumber.from(e)); + try { + let n = await this.getWinningBid(e); + pw.default(n, "No winning bid found"); + let a = this.encoder.encode("collectAuctionPayout", [e]), + i = this.encoder.encode("collectAuctionTokens", [e]); + return await this.contractWrapper.multiCall([a, i]); + } catch (n) { + throw n.message.includes("Marketplace: auction still active.") + ? new dt.AuctionHasNotEndedError( + e.toString(), + t.endTimeInSeconds.toString() + ) + : n; + } + } + async getBidBufferBps(e) { + return (await this.getAuction(e)).bidBufferBps; + } + async getMinimumNextBid(e) { + let [t, n, a] = await Promise.all([ + this.getBidBufferBps(e), + this.getWinningBid(e), + await this.validateAuction(Xt.BigNumber.from(e)), + ]), + i = n + ? Xt.BigNumber.from(n.bidAmount) + : Xt.BigNumber.from(a.minimumBidAmount), + s = i.add(i.mul(t).div(1e4)); + return dt.fetchCurrencyValue( + this.contractWrapper.getProvider(), + a.currencyContractAddress, + s + ); + } + async validateAuction(e) { + try { + return await this.getAuction(e); + } catch (t) { + throw (console.error(`Error getting the auction with id ${e}`), t); + } + } + async mapAuction(e) { + let t = dt.Status.UNSET, + a = (await this.contractWrapper.getProvider().getBlock("latest")) + .timestamp; + switch (e.status) { + case 1: + t = Xt.BigNumber.from(e.startTimestamp).gt(a) + ? dt.Status.Created + : Xt.BigNumber.from(e.endTimestamp).lt(a) + ? dt.Status.Expired + : dt.Status.Active; + break; + case 2: + t = dt.Status.Completed; + break; + case 3: + t = dt.Status.Cancelled; + break; + } + return { + id: e.auctionId.toString(), + creatorAddress: e.auctionCreator, + assetContractAddress: e.assetContract, + tokenId: e.tokenId.toString(), + quantity: e.quantity.toString(), + currencyContractAddress: e.currency, + minimumBidAmount: e.minimumBidAmount.toString(), + minimumBidCurrencyValue: await dt.fetchCurrencyValue( + this.contractWrapper.getProvider(), + e.currency, + e.minimumBidAmount + ), + buyoutBidAmount: e.buyoutBidAmount.toString(), + buyoutCurrencyValue: await dt.fetchCurrencyValue( + this.contractWrapper.getProvider(), + e.currency, + e.buyoutBidAmount + ), + timeBufferInSeconds: Xt.BigNumber.from( + e.timeBufferInSeconds + ).toNumber(), + bidBufferBps: Xt.BigNumber.from(e.bidBufferBps).toNumber(), + startTimeInSeconds: Xt.BigNumber.from(e.startTimestamp).toNumber(), + endTimeInSeconds: Xt.BigNumber.from(e.endTimestamp).toNumber(), + asset: await dt.fetchTokenMetadataForContract( + e.assetContract, + this.contractWrapper.getProvider(), + e.tokenId, + this.storage + ), + status: t, + }; + } + async mapBid(e, t, n, a) { + return { + auctionId: e, + bidderAddress: t, + currencyContractAddress: n, + bidAmount: a, + bidAmountCurrencyValue: await dt.fetchCurrencyValue( + this.contractWrapper.getProvider(), + n, + a + ), + }; + } + applyFilter(e, t) { + let n = [...e]; + return ( + t && + (t.seller && + (n = n.filter( + (a) => + a.auctionCreator.toString().toLowerCase() === + t?.seller?.toString().toLowerCase() + )), + t.tokenContract && + (n = n.filter( + (a) => + a.assetContract.toString().toLowerCase() === + t?.tokenContract?.toString().toLowerCase() + )), + t.tokenId !== void 0 && + (n = n.filter( + (a) => a.tokenId.toString() === t?.tokenId?.toString() + ))), + t?.count && t.count < n.length ? n.slice(0, t.count) : n + ); + } + }, + oar = IM.z.object({ + assetContractAddress: dt.AddressSchema, + tokenId: dt.BigNumberishSchema, + quantity: dt.BigNumberishSchema.default(1), + currencyContractAddress: dt.AddressSchema.default( + dt.NATIVE_TOKEN_ADDRESS + ), + totalPrice: sn.AmountSchema, + endTimestamp: dt.EndDateSchema, + }), + Bz = class { + constructor(e, t) { + sn._defineProperty(this, "featureName", dt.FEATURE_OFFERS.name), + sn._defineProperty(this, "contractWrapper", void 0), + sn._defineProperty(this, "storage", void 0), + sn._defineProperty(this, "events", void 0), + sn._defineProperty(this, "interceptor", void 0), + sn._defineProperty(this, "encoder", void 0), + sn._defineProperty(this, "estimator", void 0), + (this.contractWrapper = e), + (this.storage = t), + (this.events = new dt.ContractEvents(this.contractWrapper)), + (this.encoder = new dt.ContractEncoder(this.contractWrapper)), + (this.interceptor = new dt.ContractInterceptor( + this.contractWrapper + )), + (this.estimator = new dt.GasCostEstimator(this.contractWrapper)); + } + getAddress() { + return this.contractWrapper.readContract.address; + } + async getTotalCount() { + return await this.contractWrapper.readContract.totalOffers(); + } + async getAll(e) { + let t = await this.getTotalCount(), + n = Xt.BigNumber.from(e?.start || 0).toNumber(), + a = t.toNumber(); + if (a === 0) throw new Error("No offers exist on the contract."); + let i = []; + i = ( + await dt.getAllInBatches( + n, + a, + this.contractWrapper.readContract.getAllOffers + ) + ).flat(); + let c = this.applyFilter(i, e); + return await Promise.all(c.map((l) => this.mapOffer(l))); + } + async getAllValid(e) { + let t = await this.getTotalCount(), + n = Xt.BigNumber.from(e?.start || 0).toNumber(), + a = t.toNumber(); + if (a === 0) throw new Error("No offers exist on the contract."); + let i = []; + i = ( + await dt.getAllInBatches( + n, + a, + this.contractWrapper.readContract.getAllValidOffers + ) + ).flat(); + let c = this.applyFilter(i, e); + return await Promise.all(c.map((l) => this.mapOffer(l))); + } + async getOffer(e) { + let t = await this.contractWrapper.readContract.getOffer(e); + return await this.mapOffer(t); + } + async makeOffer(e) { + let t = oar.parse(e), + n = await this.contractWrapper.getChainID(), + a = dt.isNativeToken(t.currencyContractAddress) + ? dt.NATIVE_TOKENS[n].wrapped.address + : t.currencyContractAddress, + i = await dt.normalizePriceValue( + this.contractWrapper.getProvider(), + t.totalPrice, + a + ), + s = await this.contractWrapper.getCallOverrides(); + await dt.setErc20Allowance(this.contractWrapper, i, a, s); + let c = await this.contractWrapper.sendTransaction( + "makeOffer", + [ + { + assetContract: t.assetContractAddress, + tokenId: t.tokenId, + quantity: t.quantity, + currency: a, + totalPrice: i, + expirationTimestamp: t.endTimestamp, + }, + ], + { gasLimit: 5e5 } + ); + return { + id: this.contractWrapper.parseLogs("NewOffer", c?.logs)[0].args + .offerId, + receipt: c, + }; + } + async cancelOffer(e) { + return { + receipt: await this.contractWrapper.sendTransaction("cancelOffer", [ + e, + ]), + }; + } + async acceptOffer(e) { + let t = await this.validateOffer(Xt.BigNumber.from(e)), + { valid: n, error: a } = await this.isStillValidOffer(t); + if (!n) throw new Error(`Offer ${e} is no longer valid. ${a}`); + let i = (await this.contractWrapper.getCallOverrides()) || {}; + return ( + await dt.handleTokenApproval( + this.contractWrapper, + this.getAddress(), + t.assetContractAddress, + t.tokenId, + await this.contractWrapper.getSignerAddress() + ), + { + receipt: await this.contractWrapper.sendTransaction( + "acceptOffer", + [e], + i + ), + } + ); + } + async validateOffer(e) { + try { + return await this.getOffer(e); + } catch (t) { + throw (console.error(`Error getting the offer with id ${e}`), t); + } + } + async mapOffer(e) { + let t = dt.Status.UNSET, + a = (await this.contractWrapper.getProvider().getBlock("latest")) + .timestamp; + switch (e.status) { + case 1: + t = Xt.BigNumber.from(e.expirationTimestamp).lt(a) + ? dt.Status.Expired + : dt.Status.Active; + break; + case 2: + t = dt.Status.Completed; + break; + case 3: + t = dt.Status.Cancelled; + break; + } + return { + id: e.offerId.toString(), + offerorAddress: e.offeror, + assetContractAddress: e.assetContract, + currencyContractAddress: e.currency, + tokenId: e.tokenId.toString(), + quantity: e.quantity.toString(), + totalPrice: e.totalPrice.toString(), + currencyValue: await dt.fetchCurrencyValue( + this.contractWrapper.getProvider(), + e.currency, + e.totalPrice + ), + asset: await dt.fetchTokenMetadataForContract( + e.assetContract, + this.contractWrapper.getProvider(), + e.tokenId, + this.storage + ), + endTimeInSeconds: Xt.BigNumber.from( + e.expirationTimestamp + ).toNumber(), + status: t, + }; + } + async isStillValidOffer(e) { + if ( + Xt.BigNumber.from(Math.floor(Date.now() / 1e3)).gt( + e.endTimeInSeconds + ) + ) + return { valid: !1, error: `Offer with ID ${e.id} has expired` }; + let n = await this.contractWrapper.getChainID(), + a = dt.isNativeToken(e.currencyContractAddress) + ? dt.NATIVE_TOKENS[n].wrapped.address + : e.currencyContractAddress, + i = this.contractWrapper.getProvider(), + s = new dt.ContractWrapper(i, a, iar.default, {}); + return (await s.readContract.balanceOf(e.offerorAddress)).lt( + e.totalPrice + ) + ? { + valid: !1, + error: `Offeror ${e.offerorAddress} doesn't have enough balance of token ${a}`, + } + : ( + await s.readContract.allowance( + e.offerorAddress, + this.getAddress() + ) + ).lt(e.totalPrice) + ? { + valid: !1, + error: `Offeror ${e.offerorAddress} hasn't approved enough amount of token ${a}`, + } + : { valid: !0, error: "" }; + } + applyFilter(e, t) { + let n = [...e]; + return ( + t && + (t.offeror && + (n = n.filter( + (a) => + a.offeror.toString().toLowerCase() === + t?.offeror?.toString().toLowerCase() + )), + t.tokenContract && + (n = n.filter( + (a) => + a.assetContract.toString().toLowerCase() === + t?.tokenContract?.toString().toLowerCase() + )), + t.tokenId !== void 0 && + (n = n.filter( + (a) => a.tokenId.toString() === t?.tokenId?.toString() + ))), + t?.count && t.count < n.length ? n.slice(0, t.count) : n + ); + } + }, + hw = class { + get directListings() { + return dt.assertEnabled( + this.detectDirectListings(), + dt.FEATURE_DIRECT_LISTINGS + ); + } + get englishAuctions() { + return dt.assertEnabled( + this.detectEnglishAuctions(), + dt.FEATURE_ENGLISH_AUCTIONS + ); + } + get offers() { + return dt.assertEnabled(this.detectOffers(), dt.FEATURE_OFFERS); + } + get chainId() { + return this._chainId; + } + constructor(e, t, n) { + let a = + arguments.length > 3 && arguments[3] !== void 0 + ? arguments[3] + : {}, + i = arguments.length > 4 ? arguments[4] : void 0, + s = arguments.length > 5 ? arguments[5] : void 0, + c = + arguments.length > 6 && arguments[6] !== void 0 + ? arguments[6] + : new dt.ContractWrapper(e, t, i, a); + sn._defineProperty(this, "abi", void 0), + sn._defineProperty(this, "contractWrapper", void 0), + sn._defineProperty(this, "storage", void 0), + sn._defineProperty(this, "encoder", void 0), + sn._defineProperty(this, "events", void 0), + sn._defineProperty(this, "estimator", void 0), + sn._defineProperty(this, "platformFees", void 0), + sn._defineProperty(this, "metadata", void 0), + sn._defineProperty(this, "roles", void 0), + sn._defineProperty(this, "interceptor", void 0), + sn._defineProperty(this, "_chainId", void 0), + (this._chainId = s), + (this.abi = i), + (this.contractWrapper = c), + (this.storage = n), + (this.metadata = new dt.ContractMetadata( + this.contractWrapper, + dt.MarketplaceContractSchema, + this.storage + )), + (this.roles = new dt.ContractRoles( + this.contractWrapper, + hw.contractRoles + )), + (this.encoder = new dt.ContractEncoder(this.contractWrapper)), + (this.estimator = new dt.GasCostEstimator(this.contractWrapper)), + (this.events = new dt.ContractEvents(this.contractWrapper)), + (this.platformFees = new dt.ContractPlatformFee( + this.contractWrapper + )), + (this.interceptor = new dt.ContractInterceptor( + this.contractWrapper + )); + } + onNetworkUpdated(e) { + this.contractWrapper.updateSignerOrProvider(e); + } + getAddress() { + return this.contractWrapper.readContract.address; + } + async call(e) { + for ( + var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), a = 1; + a < t; + a++ + ) + n[a - 1] = arguments[a]; + return this.contractWrapper.call(e, ...n); + } + detectDirectListings() { + if (dt.detectContractFeature(this.contractWrapper, "DirectListings")) + return new Pz(this.contractWrapper, this.storage); + } + detectEnglishAuctions() { + if (dt.detectContractFeature(this.contractWrapper, "EnglishAuctions")) + return new Rz(this.contractWrapper, this.storage); + } + detectOffers() { + if (dt.detectContractFeature(this.contractWrapper, "Offers")) + return new Bz(this.contractWrapper, this.storage); + } + }; + sn._defineProperty(hw, "contractRoles", ["admin", "lister", "asset"]); + xFe.MarketplaceV3 = hw; + }); + var Nz = N((Bon, car) => { + car.exports = [ + { + inputs: [ + { internalType: "address", name: "_pluginMap", type: "address" }, + ], + stateMutability: "nonpayable", + type: "constructor", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !1, + internalType: "string", + name: "prevURI", + type: "string", + }, + { + indexed: !1, + internalType: "string", + name: "newURI", + type: "string", + }, + ], + name: "ContractURIUpdated", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "address", + name: "platformFeeRecipient", + type: "address", + }, + { + indexed: !1, + internalType: "uint256", + name: "platformFeeBps", + type: "uint256", + }, + ], + name: "PlatformFeeInfoUpdated", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "bytes4", + name: "functionSelector", + type: "bytes4", + }, + { + indexed: !0, + internalType: "address", + name: "pluginAddress", + type: "address", + }, + ], + name: "PluginAdded", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "bytes4", + name: "functionSelector", + type: "bytes4", + }, + { + indexed: !0, + internalType: "address", + name: "pluginAddress", + type: "address", + }, + ], + name: "PluginRemoved", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "bytes4", + name: "functionSelector", + type: "bytes4", + }, + { + indexed: !0, + internalType: "string", + name: "functionSignature", + type: "string", + }, + { + indexed: !0, + internalType: "address", + name: "pluginAddress", + type: "address", + }, + ], + name: "PluginSet", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "bytes4", + name: "functionSelector", + type: "bytes4", + }, + { + indexed: !0, + internalType: "address", + name: "oldPluginAddress", + type: "address", + }, + { + indexed: !0, + internalType: "address", + name: "newPluginAddress", + type: "address", + }, + ], + name: "PluginUpdated", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "bytes32", + name: "role", + type: "bytes32", + }, + { + indexed: !0, + internalType: "bytes32", + name: "previousAdminRole", + type: "bytes32", + }, + { + indexed: !0, + internalType: "bytes32", + name: "newAdminRole", + type: "bytes32", + }, + ], + name: "RoleAdminChanged", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "bytes32", + name: "role", + type: "bytes32", + }, + { + indexed: !0, + internalType: "address", + name: "account", + type: "address", + }, + { + indexed: !0, + internalType: "address", + name: "sender", + type: "address", + }, + ], + name: "RoleGranted", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "bytes32", + name: "role", + type: "bytes32", + }, + { + indexed: !0, + internalType: "address", + name: "account", + type: "address", + }, + { + indexed: !0, + internalType: "address", + name: "sender", + type: "address", + }, + ], + name: "RoleRevoked", + type: "event", + }, + { stateMutability: "payable", type: "fallback" }, + { + inputs: [], + name: "DEFAULT_ADMIN_ROLE", + outputs: [{ internalType: "bytes32", name: "", type: "bytes32" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [{ internalType: "bytes4", name: "_selector", type: "bytes4" }], + name: "_getPluginForFunction", + outputs: [{ internalType: "address", name: "", type: "address" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { + components: [ + { + internalType: "bytes4", + name: "functionSelector", + type: "bytes4", + }, + { + internalType: "string", + name: "functionSignature", + type: "string", + }, + { + internalType: "address", + name: "pluginAddress", + type: "address", + }, + ], + internalType: "struct IPluginMap.Plugin", + name: "_plugin", + type: "tuple", + }, + ], + name: "addPlugin", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [], + name: "contractType", + outputs: [{ internalType: "bytes32", name: "", type: "bytes32" }], + stateMutability: "pure", + type: "function", + }, + { + inputs: [], + name: "contractURI", + outputs: [{ internalType: "string", name: "", type: "string" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "contractVersion", + outputs: [{ internalType: "uint8", name: "", type: "uint8" }], + stateMutability: "pure", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "_pluginAddress", type: "address" }, + ], + name: "getAllFunctionsOfPlugin", + outputs: [ + { internalType: "bytes4[]", name: "registered", type: "bytes4[]" }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "getAllPlugins", + outputs: [ + { + components: [ + { + internalType: "bytes4", + name: "functionSelector", + type: "bytes4", + }, + { + internalType: "string", + name: "functionSignature", + type: "string", + }, + { + internalType: "address", + name: "pluginAddress", + type: "address", + }, + ], + internalType: "struct IPluginMap.Plugin[]", + name: "registered", + type: "tuple[]", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "getPlatformFeeInfo", + outputs: [ + { internalType: "address", name: "", type: "address" }, + { internalType: "uint16", name: "", type: "uint16" }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [{ internalType: "bytes4", name: "_selector", type: "bytes4" }], + name: "getPluginForFunction", + outputs: [{ internalType: "address", name: "", type: "address" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [{ internalType: "bytes32", name: "role", type: "bytes32" }], + name: "getRoleAdmin", + outputs: [{ internalType: "bytes32", name: "", type: "bytes32" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "bytes32", name: "role", type: "bytes32" }, + { internalType: "uint256", name: "index", type: "uint256" }, + ], + name: "getRoleMember", + outputs: [{ internalType: "address", name: "member", type: "address" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [{ internalType: "bytes32", name: "role", type: "bytes32" }], + name: "getRoleMemberCount", + outputs: [{ internalType: "uint256", name: "count", type: "uint256" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "bytes32", name: "role", type: "bytes32" }, + { internalType: "address", name: "account", type: "address" }, + ], + name: "grantRole", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "bytes32", name: "role", type: "bytes32" }, + { internalType: "address", name: "account", type: "address" }, + ], + name: "hasRole", + outputs: [{ internalType: "bool", name: "", type: "bool" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "bytes32", name: "role", type: "bytes32" }, + { internalType: "address", name: "account", type: "address" }, + ], + name: "hasRoleWithSwitch", + outputs: [{ internalType: "bool", name: "", type: "bool" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "_defaultAdmin", type: "address" }, + { internalType: "string", name: "_contractURI", type: "string" }, + { + internalType: "address[]", + name: "_trustedForwarders", + type: "address[]", + }, + { + internalType: "address", + name: "_platformFeeRecipient", + type: "address", + }, + { internalType: "uint16", name: "_platformFeeBps", type: "uint16" }, + ], + name: "initialize", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "forwarder", type: "address" }, + ], + name: "isTrustedForwarder", + outputs: [{ internalType: "bool", name: "", type: "bool" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [{ internalType: "bytes[]", name: "data", type: "bytes[]" }], + name: "multicall", + outputs: [ + { internalType: "bytes[]", name: "results", type: "bytes[]" }, + ], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "", type: "address" }, + { internalType: "address", name: "", type: "address" }, + { internalType: "uint256[]", name: "", type: "uint256[]" }, + { internalType: "uint256[]", name: "", type: "uint256[]" }, + { internalType: "bytes", name: "", type: "bytes" }, + ], + name: "onERC1155BatchReceived", + outputs: [{ internalType: "bytes4", name: "", type: "bytes4" }], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "", type: "address" }, + { internalType: "address", name: "", type: "address" }, + { internalType: "uint256", name: "", type: "uint256" }, + { internalType: "uint256", name: "", type: "uint256" }, + { internalType: "bytes", name: "", type: "bytes" }, + ], + name: "onERC1155Received", + outputs: [{ internalType: "bytes4", name: "", type: "bytes4" }], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "", type: "address" }, + { internalType: "address", name: "", type: "address" }, + { internalType: "uint256", name: "", type: "uint256" }, + { internalType: "bytes", name: "", type: "bytes" }, + ], + name: "onERC721Received", + outputs: [{ internalType: "bytes4", name: "", type: "bytes4" }], + stateMutability: "pure", + type: "function", + }, + { + inputs: [], + name: "pluginMap", + outputs: [{ internalType: "address", name: "", type: "address" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [{ internalType: "bytes4", name: "_selector", type: "bytes4" }], + name: "removePlugin", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "bytes32", name: "role", type: "bytes32" }, + { internalType: "address", name: "account", type: "address" }, + ], + name: "renounceRole", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "bytes32", name: "role", type: "bytes32" }, + { internalType: "address", name: "account", type: "address" }, + ], + name: "revokeRole", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [{ internalType: "string", name: "_uri", type: "string" }], + name: "setContractURI", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "address", + name: "_platformFeeRecipient", + type: "address", + }, + { internalType: "uint256", name: "_platformFeeBps", type: "uint256" }, + ], + name: "setPlatformFeeInfo", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "bytes4", name: "interfaceId", type: "bytes4" }, + ], + name: "supportsInterface", + outputs: [{ internalType: "bool", name: "", type: "bool" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { + components: [ + { + internalType: "bytes4", + name: "functionSelector", + type: "bytes4", + }, + { + internalType: "string", + name: "functionSignature", + type: "string", + }, + { + internalType: "address", + name: "pluginAddress", + type: "address", + }, + ], + internalType: "struct IPluginMap.Plugin", + name: "_plugin", + type: "tuple", + }, + ], + name: "updatePlugin", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { stateMutability: "payable", type: "receive" }, + ]; + }); + var CFe = N((EFe) => { + "use strict"; + _(); + x(); + var Af = Oo(), + Yo = kc(), + uar = wt(); + Gr(); + an(); + Bn(); + Nn(); + On(); + Ln(); + Dn(); + qn(); + Fn(); + Wn(); + Un(); + Hn(); + zn(); + jn(); + Kn(); + Vn(); + Gn(); + Yn(); + $n(); + Jn(); + Zn(); + Qn(); + Xn(); + ea(); + ta(); + ra(); + na(); + aa(); + ia(); + sa(); + oa(); + ca(); + ua(); + la(); + da(); + pa(); + ha(); + fa(); + ma(); + ya(); + ga(); + ba(); + va(); + wa(); + _a(); + xa(); + Ta(); + Ea(); + Ca(); + vn(); + Ia(); + Aa(); + ka(); + An(); + Sa(); + Ma(); + Pa(); + Ra(); + Ba(); + Na(); + Oa(); + La(); + Da(); + qa(); + Fa(); + Wa(); + Ua(); + Ha(); + za(); + var fw = class extends Yo.StandardErc721 { + constructor(e, t, n) { + let a = + arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {}, + i = arguments.length > 4 ? arguments[4] : void 0, + s = arguments.length > 5 ? arguments[5] : void 0, + c = + arguments.length > 6 && arguments[6] !== void 0 + ? arguments[6] + : new Yo.ContractWrapper(e, t, i, a); + super(c, n, s), + Af._defineProperty(this, "abi", void 0), + Af._defineProperty(this, "encoder", void 0), + Af._defineProperty(this, "estimator", void 0), + Af._defineProperty(this, "metadata", void 0), + Af._defineProperty(this, "events", void 0), + Af._defineProperty(this, "roles", void 0), + Af._defineProperty(this, "royalties", void 0), + Af._defineProperty(this, "owner", void 0), + (this.abi = i), + (this.metadata = new Yo.ContractMetadata( + this.contractWrapper, + Yo.MultiwrapContractSchema, + this.storage + )), + (this.roles = new Yo.ContractRoles( + this.contractWrapper, + fw.contractRoles + )), + (this.encoder = new Yo.ContractEncoder(this.contractWrapper)), + (this.estimator = new Yo.GasCostEstimator(this.contractWrapper)), + (this.events = new Yo.ContractEvents(this.contractWrapper)), + (this.royalties = new Yo.ContractRoyalty( + this.contractWrapper, + this.metadata + )), + (this.owner = new Yo.ContractOwner(this.contractWrapper)); + } + async getWrappedContents(e) { + let t = await this.contractWrapper.readContract.getWrappedContents(e), + n = [], + a = [], + i = []; + for (let s of t) + switch (s.tokenType) { + case 0: { + let c = await Yo.fetchCurrencyMetadata( + this.contractWrapper.getProvider(), + s.assetContract + ); + n.push({ + contractAddress: s.assetContract, + quantity: uar.ethers.utils.formatUnits( + s.totalAmount, + c.decimals + ), + }); + break; + } + case 1: { + a.push({ contractAddress: s.assetContract, tokenId: s.tokenId }); + break; + } + case 2: { + i.push({ + contractAddress: s.assetContract, + tokenId: s.tokenId, + quantity: s.totalAmount.toString(), + }); + break; + } + } + return { erc20Tokens: n, erc721Tokens: a, erc1155Tokens: i }; + } + async wrap(e, t, n) { + let a = await Yo.uploadOrExtractURI(t, this.storage), + i = n || (await this.contractWrapper.getSignerAddress()), + s = await this.toTokenStructList(e), + c = await this.contractWrapper.sendTransaction("wrap", [s, a, i]), + l = this.contractWrapper.parseLogs("TokensWrapped", c?.logs); + if (l.length === 0) throw new Error("TokensWrapped event not found"); + let d = l[0].args.tokenIdOfWrappedToken; + return { id: d, receipt: c, data: () => this.get(d) }; + } + async unwrap(e, t) { + let n = t || (await this.contractWrapper.getSignerAddress()); + return { + receipt: await this.contractWrapper.sendTransaction("unwrap", [e, n]), + }; + } + async toTokenStructList(e) { + let t = [], + n = this.contractWrapper.getProvider(), + a = await this.contractWrapper.getSignerAddress(); + if (e.erc20Tokens) + for (let i of e.erc20Tokens) { + let s = await Yo.normalizePriceValue( + n, + i.quantity, + i.contractAddress + ); + if ( + !(await Yo.hasERC20Allowance( + this.contractWrapper, + i.contractAddress, + s + )) + ) + throw new Error(`ERC20 token with contract address "${ + i.contractAddress + }" does not have enough allowance to transfer. You can set allowance to the multiwrap contract to transfer these tokens by running: -await sdk.getToken("${i.contractAddress}").setAllowance("${this.getAddress()}", ${i.quantity}); +await sdk.getToken("${ + i.contractAddress + }").setAllowance("${this.getAddress()}", ${i.quantity}); -`);t.push({assetContract:i.contractAddress,totalAmount:s,tokenId:0,tokenType:0})}if(e.erc721Tokens)for(let i of e.erc721Tokens){if(!await ic.isTokenApprovedForTransfer(this.contractWrapper.getProvider(),this.getAddress(),i.contractAddress,i.tokenId,a))throw new Error(`ERC721 token "${i.tokenId}" with contract address "${i.contractAddress}" is not approved for transfer. +`); + t.push({ + assetContract: i.contractAddress, + totalAmount: s, + tokenId: 0, + tokenType: 0, + }); + } + if (e.erc721Tokens) + for (let i of e.erc721Tokens) { + if ( + !(await Yo.isTokenApprovedForTransfer( + this.contractWrapper.getProvider(), + this.getAddress(), + i.contractAddress, + i.tokenId, + a + )) + ) + throw new Error(`ERC721 token "${ + i.tokenId + }" with contract address "${ + i.contractAddress + }" is not approved for transfer. You can give approval the multiwrap contract to transfer this token by running: -await sdk.getNFTCollection("${i.contractAddress}").setApprovalForToken("${this.getAddress()}", ${i.tokenId}); +await sdk.getNFTCollection("${ + i.contractAddress + }").setApprovalForToken("${this.getAddress()}", ${i.tokenId}); -`);t.push({assetContract:i.contractAddress,totalAmount:0,tokenId:i.tokenId,tokenType:1})}if(e.erc1155Tokens)for(let i of e.erc1155Tokens){if(!await ic.isTokenApprovedForTransfer(this.contractWrapper.getProvider(),this.getAddress(),i.contractAddress,i.tokenId,a))throw new Error(`ERC1155 token "${i.tokenId}" with contract address "${i.contractAddress}" is not approved for transfer. +`); + t.push({ + assetContract: i.contractAddress, + totalAmount: 0, + tokenId: i.tokenId, + tokenType: 1, + }); + } + if (e.erc1155Tokens) + for (let i of e.erc1155Tokens) { + if ( + !(await Yo.isTokenApprovedForTransfer( + this.contractWrapper.getProvider(), + this.getAddress(), + i.contractAddress, + i.tokenId, + a + )) + ) + throw new Error(`ERC1155 token "${ + i.tokenId + }" with contract address "${ + i.contractAddress + }" is not approved for transfer. You can give approval the multiwrap contract to transfer this token by running: -await sdk.getEdition("${i.contractAddress}").setApprovalForAll("${this.getAddress()}", true); +await sdk.getEdition("${ + i.contractAddress + }").setApprovalForAll("${this.getAddress()}", true); -`);t.push({assetContract:i.contractAddress,totalAmount:i.quantity,tokenId:i.tokenId,tokenType:2})}return t}async call(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a{Eir.exports=[{inputs:[{internalType:"address",name:"_nativeTokenWrapper",type:"address"}],stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"approved",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"}],name:"Approval",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!1,internalType:"bool",name:"approved",type:"bool"}],name:"ApprovalForAll",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"string",name:"prevURI",type:"string"},{indexed:!1,internalType:"string",name:"newURI",type:"string"}],name:"ContractURIUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"newRoyaltyRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"newRoyaltyBps",type:"uint256"}],name:"DefaultRoyalty",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint8",name:"version",type:"uint8"}],name:"Initialized",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"prevOwner",type:"address"},{indexed:!0,internalType:"address",name:"newOwner",type:"address"}],name:"OwnerUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"previousAdminRole",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"newAdminRole",type:"bytes32"}],name:"RoleAdminChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleGranted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleRevoked",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!0,internalType:"address",name:"royaltyRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"royaltyBps",type:"uint256"}],name:"RoyaltyForToken",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"unwrapper",type:"address"},{indexed:!0,internalType:"address",name:"recipientOfWrappedContents",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenIdOfWrappedToken",type:"uint256"}],name:"TokensUnwrapped",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"wrapper",type:"address"},{indexed:!0,internalType:"address",name:"recipientOfWrappedToken",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenIdOfWrappedToken",type:"uint256"},{components:[{internalType:"address",name:"assetContract",type:"address"},{internalType:"enum ITokenBundle.TokenType",name:"tokenType",type:"uint8"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"totalAmount",type:"uint256"}],indexed:!1,internalType:"struct ITokenBundle.Token[]",name:"wrappedContents",type:"tuple[]"}],name:"TokensWrapped",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"}],name:"Transfer",type:"event"},{inputs:[],name:"DEFAULT_ADMIN_ROLE",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"approve",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"}],name:"balanceOf",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"contractType",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"pure",type:"function"},{inputs:[],name:"contractURI",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"contractVersion",outputs:[{internalType:"uint8",name:"",type:"uint8"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"getApproved",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"getDefaultRoyaltyInfo",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleAdmin",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"uint256",name:"index",type:"uint256"}],name:"getRoleMember",outputs:[{internalType:"address",name:"member",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleMemberCount",outputs:[{internalType:"uint256",name:"count",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"}],name:"getRoyaltyInfoForToken",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_bundleId",type:"uint256"}],name:"getTokenCountOfBundle",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_bundleId",type:"uint256"},{internalType:"uint256",name:"index",type:"uint256"}],name:"getTokenOfBundle",outputs:[{components:[{internalType:"address",name:"assetContract",type:"address"},{internalType:"enum ITokenBundle.TokenType",name:"tokenType",type:"uint8"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"totalAmount",type:"uint256"}],internalType:"struct ITokenBundle.Token",name:"",type:"tuple"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_bundleId",type:"uint256"}],name:"getUriOfBundle",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"}],name:"getWrappedContents",outputs:[{components:[{internalType:"address",name:"assetContract",type:"address"},{internalType:"enum ITokenBundle.TokenType",name:"tokenType",type:"uint8"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"totalAmount",type:"uint256"}],internalType:"struct ITokenBundle.Token[]",name:"contents",type:"tuple[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"grantRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRole",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRoleWithSwitch",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_defaultAdmin",type:"address"},{internalType:"string",name:"_name",type:"string"},{internalType:"string",name:"_symbol",type:"string"},{internalType:"string",name:"_contractURI",type:"string"},{internalType:"address[]",name:"_trustedForwarders",type:"address[]"},{internalType:"address",name:"_royaltyRecipient",type:"address"},{internalType:"uint256",name:"_royaltyBps",type:"uint256"}],name:"initialize",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"address",name:"operator",type:"address"}],name:"isApprovedForAll",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"forwarder",type:"address"}],name:"isTrustedForwarder",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes[]",name:"data",type:"bytes[]"}],name:"multicall",outputs:[{internalType:"bytes[]",name:"results",type:"bytes[]"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"name",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"nextTokenIdToMint",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"},{internalType:"address",name:"",type:"address"},{internalType:"uint256[]",name:"",type:"uint256[]"},{internalType:"uint256[]",name:"",type:"uint256[]"},{internalType:"bytes",name:"",type:"bytes"}],name:"onERC1155BatchReceived",outputs:[{internalType:"bytes4",name:"",type:"bytes4"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"},{internalType:"address",name:"",type:"address"},{internalType:"uint256",name:"",type:"uint256"},{internalType:"uint256",name:"",type:"uint256"},{internalType:"bytes",name:"",type:"bytes"}],name:"onERC1155Received",outputs:[{internalType:"bytes4",name:"",type:"bytes4"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"},{internalType:"address",name:"",type:"address"},{internalType:"uint256",name:"",type:"uint256"},{internalType:"bytes",name:"",type:"bytes"}],name:"onERC721Received",outputs:[{internalType:"bytes4",name:"",type:"bytes4"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"owner",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"ownerOf",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"renounceRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"revokeRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"salePrice",type:"uint256"}],name:"royaltyInfo",outputs:[{internalType:"address",name:"receiver",type:"address"},{internalType:"uint256",name:"royaltyAmount",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"safeTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"}],name:"safeTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"operator",type:"address"},{internalType:"bool",name:"approved",type:"bool"}],name:"setApprovalForAll",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"string",name:"_uri",type:"string"}],name:"setContractURI",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_royaltyRecipient",type:"address"},{internalType:"uint256",name:"_royaltyBps",type:"uint256"}],name:"setDefaultRoyaltyInfo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_newOwner",type:"address"}],name:"setOwner",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"},{internalType:"address",name:"_recipient",type:"address"},{internalType:"uint256",name:"_bps",type:"uint256"}],name:"setRoyaltyInfoForToken",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes4",name:"interfaceId",type:"bytes4"}],name:"supportsInterface",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"symbol",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"index",type:"uint256"}],name:"tokenByIndex",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"uint256",name:"index",type:"uint256"}],name:"tokenOfOwnerByIndex",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"}],name:"tokenURI",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"totalSupply",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"transferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"},{internalType:"address",name:"_recipient",type:"address"}],name:"unwrap",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{internalType:"address",name:"assetContract",type:"address"},{internalType:"enum ITokenBundle.TokenType",name:"tokenType",type:"uint8"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"totalAmount",type:"uint256"}],internalType:"struct ITokenBundle.Token[]",name:"_tokensToWrap",type:"tuple[]"},{internalType:"string",name:"_uriForWrappedToken",type:"string"},{internalType:"address",name:"_recipient",type:"address"}],name:"wrap",outputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],stateMutability:"payable",type:"function"},{stateMutability:"payable",type:"receive"}]});var kUe=O(EUe=>{"use strict";x();T();var xu=Go(),sc=Uc(),kir=_t();Xr();Pn();Un();Wn();jn();zn();Hn();Vn();Gn();Zn();Jn();Kn();Qn();Xn();Yn();$n();ea();ta();ra();na();aa();ia();sa();oa();ca();ua();la();da();pa();ha();fa();ma();ya();ga();va();ba();wa();xa();Ta();_a();Ca();Ea();ka();Sa();Aa();Ma();Ia();Pa();Ra();En();Na();Oa();La();On();Ba();qa();Da();Fa();Ua();Wa();ja();za();Ha();Va();Ga();Za();Ja();Ka();Qa();var dw=class extends sc.StandardErc721{constructor(e,t,n){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},i=arguments.length>4?arguments[4]:void 0,s=arguments.length>5?arguments[5]:void 0,c=arguments.length>6&&arguments[6]!==void 0?arguments[6]:new sc.ContractWrapper(e,t,i,a);super(c,n,s),xu._defineProperty(this,"abi",void 0),xu._defineProperty(this,"metadata",void 0),xu._defineProperty(this,"roles",void 0),xu._defineProperty(this,"encoder",void 0),xu._defineProperty(this,"estimator",void 0),xu._defineProperty(this,"events",void 0),xu._defineProperty(this,"sales",void 0),xu._defineProperty(this,"platformFees",void 0),xu._defineProperty(this,"royalties",void 0),xu._defineProperty(this,"owner",void 0),xu._defineProperty(this,"signature",void 0),xu._defineProperty(this,"interceptor",void 0),xu._defineProperty(this,"erc721",void 0),this.abi=i,this.metadata=new sc.ContractMetadata(this.contractWrapper,sc.TokenErc721ContractSchema,this.storage),this.roles=new sc.ContractRoles(this.contractWrapper,dw.contractRoles),this.royalties=new sc.ContractRoyalty(this.contractWrapper,this.metadata),this.sales=new sc.ContractPrimarySale(this.contractWrapper),this.encoder=new sc.ContractEncoder(this.contractWrapper),this.estimator=new sc.GasCostEstimator(this.contractWrapper),this.events=new sc.ContractEvents(this.contractWrapper),this.platformFees=new sc.ContractPlatformFee(this.contractWrapper),this.interceptor=new sc.ContractInterceptor(this.contractWrapper),this.erc721=new sc.Erc721(this.contractWrapper,this.storage,s),this.signature=new sc.Erc721WithQuantitySignatureMintable(this.contractWrapper,this.storage),this.owner=new sc.ContractOwner(this.contractWrapper)}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}async isTransferRestricted(){return!await this.contractWrapper.readContract.hasRole(sc.getRoleHash("transfer"),kir.constants.AddressZero)}async mint(e){return this.erc721.mint(e)}async mintTo(e,t){return this.erc721.mintTo(e,t)}async getMintTransaction(e,t){return this.erc721.getMintTransaction(e,t)}async mintBatch(e){return this.erc721.mintBatch(e)}async mintBatchTo(e,t){return this.erc721.mintBatchTo(e,t)}async burn(e){return this.erc721.burn(e)}async call(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a{Sir.exports=[{inputs:[],stateMutability:"nonpayable",type:"constructor"},{inputs:[{internalType:"address",name:"operator",type:"address"}],name:"OperatorNotAllowed",type:"error"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"approved",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"}],name:"Approval",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!1,internalType:"bool",name:"approved",type:"bool"}],name:"ApprovalForAll",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"newRoyaltyRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"newRoyaltyBps",type:"uint256"}],name:"DefaultRoyalty",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint8",name:"version",type:"uint8"}],name:"Initialized",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"bool",name:"restriction",type:"bool"}],name:"OperatorRestriction",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"prevOwner",type:"address"},{indexed:!0,internalType:"address",name:"newOwner",type:"address"}],name:"OwnerUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"platformFeeRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"platformFeeBps",type:"uint256"}],name:"PlatformFeeInfoUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"recipient",type:"address"}],name:"PrimarySaleRecipientUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"previousAdminRole",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"newAdminRole",type:"bytes32"}],name:"RoleAdminChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleGranted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleRevoked",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!0,internalType:"address",name:"royaltyRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"royaltyBps",type:"uint256"}],name:"RoyaltyForToken",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"mintedTo",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenIdMinted",type:"uint256"},{indexed:!1,internalType:"string",name:"uri",type:"string"}],name:"TokensMinted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"signer",type:"address"},{indexed:!0,internalType:"address",name:"mintedTo",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenIdMinted",type:"uint256"},{components:[{internalType:"address",name:"to",type:"address"},{internalType:"address",name:"royaltyRecipient",type:"address"},{internalType:"uint256",name:"royaltyBps",type:"uint256"},{internalType:"address",name:"primarySaleRecipient",type:"address"},{internalType:"string",name:"uri",type:"string"},{internalType:"uint256",name:"price",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint128",name:"validityStartTimestamp",type:"uint128"},{internalType:"uint128",name:"validityEndTimestamp",type:"uint128"},{internalType:"bytes32",name:"uid",type:"bytes32"}],indexed:!1,internalType:"struct ITokenERC721.MintRequest",name:"mintRequest",type:"tuple"}],name:"TokensMintedWithSignature",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"}],name:"Transfer",type:"event"},{inputs:[],name:"DEFAULT_ADMIN_ROLE",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"operator",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"approve",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"}],name:"balanceOf",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"burn",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"contractType",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"pure",type:"function"},{inputs:[],name:"contractURI",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"contractVersion",outputs:[{internalType:"uint8",name:"",type:"uint8"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"getApproved",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"getDefaultRoyaltyInfo",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[],name:"getPlatformFeeInfo",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleAdmin",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"uint256",name:"index",type:"uint256"}],name:"getRoleMember",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleMemberCount",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"}],name:"getRoyaltyInfoForToken",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"grantRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRole",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_defaultAdmin",type:"address"},{internalType:"string",name:"_name",type:"string"},{internalType:"string",name:"_symbol",type:"string"},{internalType:"string",name:"_contractURI",type:"string"},{internalType:"address[]",name:"_trustedForwarders",type:"address[]"},{internalType:"address",name:"_saleRecipient",type:"address"},{internalType:"address",name:"_royaltyRecipient",type:"address"},{internalType:"uint128",name:"_royaltyBps",type:"uint128"},{internalType:"uint128",name:"_platformFeeBps",type:"uint128"},{internalType:"address",name:"_platformFeeRecipient",type:"address"}],name:"initialize",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"address",name:"operator",type:"address"}],name:"isApprovedForAll",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"forwarder",type:"address"}],name:"isTrustedForwarder",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_to",type:"address"},{internalType:"string",name:"_uri",type:"string"}],name:"mintTo",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{internalType:"address",name:"to",type:"address"},{internalType:"address",name:"royaltyRecipient",type:"address"},{internalType:"uint256",name:"royaltyBps",type:"uint256"},{internalType:"address",name:"primarySaleRecipient",type:"address"},{internalType:"string",name:"uri",type:"string"},{internalType:"uint256",name:"price",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint128",name:"validityStartTimestamp",type:"uint128"},{internalType:"uint128",name:"validityEndTimestamp",type:"uint128"},{internalType:"bytes32",name:"uid",type:"bytes32"}],internalType:"struct ITokenERC721.MintRequest",name:"_req",type:"tuple"},{internalType:"bytes",name:"_signature",type:"bytes"}],name:"mintWithSignature",outputs:[{internalType:"uint256",name:"tokenIdMinted",type:"uint256"}],stateMutability:"payable",type:"function"},{inputs:[{internalType:"bytes[]",name:"data",type:"bytes[]"}],name:"multicall",outputs:[{internalType:"bytes[]",name:"results",type:"bytes[]"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"name",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"nextTokenIdToMint",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"operatorRestriction",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"owner",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"ownerOf",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"platformFeeRecipient",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"primarySaleRecipient",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"renounceRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"revokeRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"salePrice",type:"uint256"}],name:"royaltyInfo",outputs:[{internalType:"address",name:"receiver",type:"address"},{internalType:"uint256",name:"royaltyAmount",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"safeTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"}],name:"safeTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"operator",type:"address"},{internalType:"bool",name:"approved",type:"bool"}],name:"setApprovalForAll",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"string",name:"_uri",type:"string"}],name:"setContractURI",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_royaltyRecipient",type:"address"},{internalType:"uint256",name:"_royaltyBps",type:"uint256"}],name:"setDefaultRoyaltyInfo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bool",name:"_restriction",type:"bool"}],name:"setOperatorRestriction",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_newOwner",type:"address"}],name:"setOwner",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_platformFeeRecipient",type:"address"},{internalType:"uint256",name:"_platformFeeBps",type:"uint256"}],name:"setPlatformFeeInfo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_saleRecipient",type:"address"}],name:"setPrimarySaleRecipient",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"},{internalType:"address",name:"_recipient",type:"address"},{internalType:"uint256",name:"_bps",type:"uint256"}],name:"setRoyaltyInfoForToken",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes4",name:"interfaceId",type:"bytes4"}],name:"supportsInterface",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"symbol",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"index",type:"uint256"}],name:"tokenByIndex",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"uint256",name:"index",type:"uint256"}],name:"tokenOfOwnerByIndex",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"}],name:"tokenURI",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"totalSupply",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"transferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{internalType:"address",name:"to",type:"address"},{internalType:"address",name:"royaltyRecipient",type:"address"},{internalType:"uint256",name:"royaltyBps",type:"uint256"},{internalType:"address",name:"primarySaleRecipient",type:"address"},{internalType:"string",name:"uri",type:"string"},{internalType:"uint256",name:"price",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint128",name:"validityStartTimestamp",type:"uint128"},{internalType:"uint128",name:"validityEndTimestamp",type:"uint128"},{internalType:"bytes32",name:"uid",type:"bytes32"}],internalType:"struct ITokenERC721.MintRequest",name:"_req",type:"tuple"},{internalType:"bytes",name:"_signature",type:"bytes"}],name:"verify",outputs:[{internalType:"bool",name:"",type:"bool"},{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"}]});var AUe=O(SUe=>{"use strict";x();T();var Gs=Go(),vs=Uc(),xv=_t();Xr();Pn();Un();Wn();jn();zn();Hn();Vn();Gn();Zn();Jn();Kn();Qn();Xn();Yn();$n();ea();ta();ra();na();aa();ia();sa();oa();ca();ua();la();da();pa();ha();fa();ma();ya();ga();va();ba();wa();xa();Ta();_a();Ca();Ea();ka();Sa();Aa();Ma();Ia();Pa();Ra();En();Na();Oa();La();On();Ba();qa();Da();Fa();Ua();Wa();ja();za();Ha();Va();Ga();Za();Ja();Ka();Qa();var pw=class extends vs.StandardErc721{constructor(e,t,n){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},i=arguments.length>4?arguments[4]:void 0,s=arguments.length>5?arguments[5]:void 0,c=arguments.length>6&&arguments[6]!==void 0?arguments[6]:new vs.ContractWrapper(e,t,i,a);super(c,n,s),Gs._defineProperty(this,"abi",void 0),Gs._defineProperty(this,"encoder",void 0),Gs._defineProperty(this,"estimator",void 0),Gs._defineProperty(this,"metadata",void 0),Gs._defineProperty(this,"sales",void 0),Gs._defineProperty(this,"platformFees",void 0),Gs._defineProperty(this,"events",void 0),Gs._defineProperty(this,"roles",void 0),Gs._defineProperty(this,"interceptor",void 0),Gs._defineProperty(this,"royalties",void 0),Gs._defineProperty(this,"claimConditions",void 0),Gs._defineProperty(this,"revealer",void 0),Gs._defineProperty(this,"checkout",void 0),Gs._defineProperty(this,"erc721",void 0),Gs._defineProperty(this,"owner",void 0),this.abi=i,this.metadata=new vs.ContractMetadata(this.contractWrapper,vs.DropErc721ContractSchema,this.storage),this.roles=new vs.ContractRoles(this.contractWrapper,pw.contractRoles),this.royalties=new vs.ContractRoyalty(this.contractWrapper,this.metadata),this.sales=new vs.ContractPrimarySale(this.contractWrapper),this.claimConditions=new vs.DropClaimConditions(this.contractWrapper,this.metadata,this.storage),this.encoder=new vs.ContractEncoder(this.contractWrapper),this.estimator=new vs.GasCostEstimator(this.contractWrapper),this.events=new vs.ContractEvents(this.contractWrapper),this.platformFees=new vs.ContractPlatformFee(this.contractWrapper),this.erc721=new vs.Erc721(this.contractWrapper,this.storage,s),this.revealer=new vs.DelayedReveal(this.contractWrapper,this.storage,vs.FEATURE_NFT_REVEALABLE.name,()=>this.erc721.nextTokenIdToMint()),this.interceptor=new vs.ContractInterceptor(this.contractWrapper),this.owner=new vs.ContractOwner(this.contractWrapper),this.checkout=new vs.PaperCheckout(this.contractWrapper)}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}async totalSupply(){let e=await this.totalClaimedSupply(),t=await this.totalUnclaimedSupply();return e.add(t)}async getAllClaimed(e){let t=xv.BigNumber.from(e?.start||0).toNumber(),n=xv.BigNumber.from(e?.count||Gs.DEFAULT_QUERY_ALL_COUNT).toNumber(),a=Math.min((await this.contractWrapper.readContract.nextTokenIdToClaim()).toNumber(),t+n);return await Promise.all(Array.from(Array(a).keys()).map(i=>this.get(i.toString())))}async getAllUnclaimed(e){let t=xv.BigNumber.from(e?.start||0).toNumber(),n=xv.BigNumber.from(e?.count||Gs.DEFAULT_QUERY_ALL_COUNT).toNumber(),a=xv.BigNumber.from(Math.max((await this.contractWrapper.readContract.nextTokenIdToClaim()).toNumber(),t)),i=xv.BigNumber.from(Math.min((await this.contractWrapper.readContract.nextTokenIdToMint()).toNumber(),a.toNumber()+n));return await Promise.all(Array.from(Array(i.sub(a).toNumber()).keys()).map(s=>this.erc721.getTokenMetadata(a.add(s).toString())))}async totalClaimedSupply(){return this.erc721.totalClaimedSupply()}async totalUnclaimedSupply(){return this.erc721.totalUnclaimedSupply()}async isTransferRestricted(){return!await this.contractWrapper.readContract.hasRole(vs.getRoleHash("transfer"),xv.constants.AddressZero)}async createBatch(e,t){return this.erc721.lazyMint(e,t)}async getClaimTransaction(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return this.erc721.getClaimTransaction(e,t,{checkERC20Allowance:n})}async claimTo(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return this.erc721.claimTo(e,t,{checkERC20Allowance:n})}async claim(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return this.claimTo(await this.contractWrapper.getSignerAddress(),e,t)}async burn(e){return this.erc721.burn(e)}async get(e){return this.erc721.get(e)}async ownerOf(e){return this.erc721.ownerOf(e)}async balanceOf(e){return this.erc721.balanceOf(e)}async balance(){return this.erc721.balance()}async isApproved(e,t){return this.erc721.isApproved(e,t)}async transfer(e,t){return this.erc721.transfer(e,t)}async setApprovalForAll(e,t){return this.erc721.setApprovalForAll(e,t)}async setApprovalForToken(e,t){return{receipt:await this.contractWrapper.sendTransaction("approve",[e,t])}}async call(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a{Air.exports=[{inputs:[],stateMutability:"nonpayable",type:"constructor"},{inputs:[],name:"ApprovalCallerNotOwnerNorApproved",type:"error"},{inputs:[],name:"ApprovalQueryForNonexistentToken",type:"error"},{inputs:[],name:"ApprovalToCurrentOwner",type:"error"},{inputs:[],name:"ApproveToCaller",type:"error"},{inputs:[],name:"BalanceQueryForZeroAddress",type:"error"},{inputs:[],name:"MintToZeroAddress",type:"error"},{inputs:[],name:"MintZeroQuantity",type:"error"},{inputs:[{internalType:"address",name:"operator",type:"address"}],name:"OperatorNotAllowed",type:"error"},{inputs:[],name:"OwnerQueryForNonexistentToken",type:"error"},{inputs:[],name:"TransferCallerNotOwnerNorApproved",type:"error"},{inputs:[],name:"TransferFromIncorrectOwner",type:"error"},{inputs:[],name:"TransferToNonERC721ReceiverImplementer",type:"error"},{inputs:[],name:"TransferToZeroAddress",type:"error"},{inputs:[],name:"URIQueryForNonexistentToken",type:"error"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"approved",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"}],name:"Approval",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!1,internalType:"bool",name:"approved",type:"bool"}],name:"ApprovalForAll",type:"event"},{anonymous:!1,inputs:[{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerWallet",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"string",name:"metadata",type:"string"}],indexed:!1,internalType:"struct IClaimCondition.ClaimCondition[]",name:"claimConditions",type:"tuple[]"},{indexed:!1,internalType:"bool",name:"resetEligibility",type:"bool"}],name:"ClaimConditionsUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"string",name:"prevURI",type:"string"},{indexed:!1,internalType:"string",name:"newURI",type:"string"}],name:"ContractURIUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"newRoyaltyRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"newRoyaltyBps",type:"uint256"}],name:"DefaultRoyalty",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint8",name:"version",type:"uint8"}],name:"Initialized",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"maxTotalSupply",type:"uint256"}],name:"MaxTotalSupplyUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"bool",name:"restriction",type:"bool"}],name:"OperatorRestriction",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"prevOwner",type:"address"},{indexed:!0,internalType:"address",name:"newOwner",type:"address"}],name:"OwnerUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"platformFeeRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"platformFeeBps",type:"uint256"}],name:"PlatformFeeInfoUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"recipient",type:"address"}],name:"PrimarySaleRecipientUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"previousAdminRole",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"newAdminRole",type:"bytes32"}],name:"RoleAdminChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleGranted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleRevoked",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!0,internalType:"address",name:"royaltyRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"royaltyBps",type:"uint256"}],name:"RoyaltyForToken",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"index",type:"uint256"},{indexed:!1,internalType:"string",name:"revealedURI",type:"string"}],name:"TokenURIRevealed",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"claimConditionIndex",type:"uint256"},{indexed:!0,internalType:"address",name:"claimer",type:"address"},{indexed:!0,internalType:"address",name:"receiver",type:"address"},{indexed:!1,internalType:"uint256",name:"startTokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"quantityClaimed",type:"uint256"}],name:"TokensClaimed",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"startTokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"endTokenId",type:"uint256"},{indexed:!1,internalType:"string",name:"baseURI",type:"string"},{indexed:!1,internalType:"bytes",name:"encryptedBaseURI",type:"bytes"}],name:"TokensLazyMinted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"}],name:"Transfer",type:"event"},{inputs:[],name:"DEFAULT_ADMIN_ROLE",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"operator",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"approve",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"}],name:"balanceOf",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"burn",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_receiver",type:"address"},{internalType:"uint256",name:"_quantity",type:"uint256"},{internalType:"address",name:"_currency",type:"address"},{internalType:"uint256",name:"_pricePerToken",type:"uint256"},{components:[{internalType:"bytes32[]",name:"proof",type:"bytes32[]"},{internalType:"uint256",name:"quantityLimitPerWallet",type:"uint256"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],internalType:"struct IDrop.AllowlistProof",name:"_allowlistProof",type:"tuple"},{internalType:"bytes",name:"_data",type:"bytes"}],name:"claim",outputs:[],stateMutability:"payable",type:"function"},{inputs:[],name:"claimCondition",outputs:[{internalType:"uint256",name:"currentStartId",type:"uint256"},{internalType:"uint256",name:"count",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"contractType",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"pure",type:"function"},{inputs:[],name:"contractURI",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"contractVersion",outputs:[{internalType:"uint8",name:"",type:"uint8"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"bytes",name:"data",type:"bytes"},{internalType:"bytes",name:"key",type:"bytes"}],name:"encryptDecrypt",outputs:[{internalType:"bytes",name:"result",type:"bytes"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"}],name:"encryptedData",outputs:[{internalType:"bytes",name:"",type:"bytes"}],stateMutability:"view",type:"function"},{inputs:[],name:"getActiveClaimConditionId",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"getApproved",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"getBaseURICount",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_index",type:"uint256"}],name:"getBatchIdAtIndex",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_conditionId",type:"uint256"}],name:"getClaimConditionById",outputs:[{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerWallet",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"string",name:"metadata",type:"string"}],internalType:"struct IClaimCondition.ClaimCondition",name:"condition",type:"tuple"}],stateMutability:"view",type:"function"},{inputs:[],name:"getDefaultRoyaltyInfo",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[],name:"getPlatformFeeInfo",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_batchId",type:"uint256"},{internalType:"bytes",name:"_key",type:"bytes"}],name:"getRevealURI",outputs:[{internalType:"string",name:"revealedURI",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleAdmin",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"uint256",name:"index",type:"uint256"}],name:"getRoleMember",outputs:[{internalType:"address",name:"member",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleMemberCount",outputs:[{internalType:"uint256",name:"count",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"}],name:"getRoyaltyInfoForToken",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_conditionId",type:"uint256"},{internalType:"address",name:"_claimer",type:"address"}],name:"getSupplyClaimedByWallet",outputs:[{internalType:"uint256",name:"supplyClaimedByWallet",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"grantRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRole",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRoleWithSwitch",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_defaultAdmin",type:"address"},{internalType:"string",name:"_name",type:"string"},{internalType:"string",name:"_symbol",type:"string"},{internalType:"string",name:"_contractURI",type:"string"},{internalType:"address[]",name:"_trustedForwarders",type:"address[]"},{internalType:"address",name:"_saleRecipient",type:"address"},{internalType:"address",name:"_royaltyRecipient",type:"address"},{internalType:"uint128",name:"_royaltyBps",type:"uint128"},{internalType:"uint128",name:"_platformFeeBps",type:"uint128"},{internalType:"address",name:"_platformFeeRecipient",type:"address"}],name:"initialize",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"address",name:"operator",type:"address"}],name:"isApprovedForAll",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_batchId",type:"uint256"}],name:"isEncryptedBatch",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"forwarder",type:"address"}],name:"isTrustedForwarder",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_amount",type:"uint256"},{internalType:"string",name:"_baseURIForTokens",type:"string"},{internalType:"bytes",name:"_data",type:"bytes"}],name:"lazyMint",outputs:[{internalType:"uint256",name:"batchId",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"maxTotalSupply",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes[]",name:"data",type:"bytes[]"}],name:"multicall",outputs:[{internalType:"bytes[]",name:"results",type:"bytes[]"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"name",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"nextTokenIdToClaim",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"nextTokenIdToMint",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"operatorRestriction",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"owner",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"ownerOf",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"primarySaleRecipient",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"renounceRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_index",type:"uint256"},{internalType:"bytes",name:"_key",type:"bytes"}],name:"reveal",outputs:[{internalType:"string",name:"revealedURI",type:"string"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"revokeRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"salePrice",type:"uint256"}],name:"royaltyInfo",outputs:[{internalType:"address",name:"receiver",type:"address"},{internalType:"uint256",name:"royaltyAmount",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"safeTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"}],name:"safeTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"operator",type:"address"},{internalType:"bool",name:"approved",type:"bool"}],name:"setApprovalForAll",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerWallet",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"string",name:"metadata",type:"string"}],internalType:"struct IClaimCondition.ClaimCondition[]",name:"_conditions",type:"tuple[]"},{internalType:"bool",name:"_resetClaimEligibility",type:"bool"}],name:"setClaimConditions",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"string",name:"_uri",type:"string"}],name:"setContractURI",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_royaltyRecipient",type:"address"},{internalType:"uint256",name:"_royaltyBps",type:"uint256"}],name:"setDefaultRoyaltyInfo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_maxTotalSupply",type:"uint256"}],name:"setMaxTotalSupply",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bool",name:"_restriction",type:"bool"}],name:"setOperatorRestriction",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_newOwner",type:"address"}],name:"setOwner",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_platformFeeRecipient",type:"address"},{internalType:"uint256",name:"_platformFeeBps",type:"uint256"}],name:"setPlatformFeeInfo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_saleRecipient",type:"address"}],name:"setPrimarySaleRecipient",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"},{internalType:"address",name:"_recipient",type:"address"},{internalType:"uint256",name:"_bps",type:"uint256"}],name:"setRoyaltyInfoForToken",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes4",name:"interfaceId",type:"bytes4"}],name:"supportsInterface",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"symbol",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"}],name:"tokenURI",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"totalMinted",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"totalSupply",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"transferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_conditionId",type:"uint256"},{internalType:"address",name:"_claimer",type:"address"},{internalType:"uint256",name:"_quantity",type:"uint256"},{internalType:"address",name:"_currency",type:"address"},{internalType:"uint256",name:"_pricePerToken",type:"uint256"},{components:[{internalType:"bytes32[]",name:"proof",type:"bytes32[]"},{internalType:"uint256",name:"quantityLimitPerWallet",type:"uint256"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],internalType:"struct IDrop.AllowlistProof",name:"_allowlistProof",type:"tuple"}],name:"verifyClaim",outputs:[{internalType:"bool",name:"isOverride",type:"bool"}],stateMutability:"view",type:"function"}]});var QH=O((Hun,Mir)=>{Mir.exports=[{inputs:[],stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"approved",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"}],name:"Approval",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!1,internalType:"bool",name:"approved",type:"bool"}],name:"ApprovalForAll",type:"event"},{anonymous:!1,inputs:[{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerTransaction",type:"uint256"},{internalType:"uint256",name:"waitTimeInSecondsBetweenClaims",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],indexed:!1,internalType:"struct IDropClaimCondition_V2.ClaimCondition[]",name:"claimConditions",type:"tuple[]"}],name:"ClaimConditionsUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"newRoyaltyRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"newRoyaltyBps",type:"uint256"}],name:"DefaultRoyalty",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint8",name:"version",type:"uint8"}],name:"Initialized",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"maxTotalSupply",type:"uint256"}],name:"MaxTotalSupplyUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"count",type:"uint256"}],name:"MaxWalletClaimCountUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"endTokenId",type:"uint256"},{indexed:!1,internalType:"string",name:"revealedURI",type:"string"}],name:"NFTRevealed",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"prevOwner",type:"address"},{indexed:!0,internalType:"address",name:"newOwner",type:"address"}],name:"OwnerUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"platformFeeRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"platformFeeBps",type:"uint256"}],name:"PlatformFeeInfoUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"recipient",type:"address"}],name:"PrimarySaleRecipientUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"previousAdminRole",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"newAdminRole",type:"bytes32"}],name:"RoleAdminChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleGranted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleRevoked",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!0,internalType:"address",name:"royaltyRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"royaltyBps",type:"uint256"}],name:"RoyaltyForToken",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"claimConditionIndex",type:"uint256"},{indexed:!0,internalType:"address",name:"claimer",type:"address"},{indexed:!0,internalType:"address",name:"receiver",type:"address"},{indexed:!1,internalType:"uint256",name:"startTokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"quantityClaimed",type:"uint256"}],name:"TokensClaimed",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"startTokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"endTokenId",type:"uint256"},{indexed:!1,internalType:"string",name:"baseURI",type:"string"},{indexed:!1,internalType:"bytes",name:"encryptedBaseURI",type:"bytes"}],name:"TokensLazyMinted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"}],name:"Transfer",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"wallet",type:"address"},{indexed:!1,internalType:"uint256",name:"count",type:"uint256"}],name:"WalletClaimCountUpdated",type:"event"},{inputs:[],name:"DEFAULT_ADMIN_ROLE",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"approve",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"}],name:"balanceOf",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"}],name:"baseURIIndices",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"burn",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_receiver",type:"address"},{internalType:"uint256",name:"_quantity",type:"uint256"},{internalType:"address",name:"_currency",type:"address"},{internalType:"uint256",name:"_pricePerToken",type:"uint256"},{internalType:"bytes32[]",name:"_proofs",type:"bytes32[]"},{internalType:"uint256",name:"_proofMaxQuantityPerTransaction",type:"uint256"}],name:"claim",outputs:[],stateMutability:"payable",type:"function"},{inputs:[],name:"claimCondition",outputs:[{internalType:"uint256",name:"currentStartId",type:"uint256"},{internalType:"uint256",name:"count",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"contractType",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"pure",type:"function"},{inputs:[],name:"contractURI",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"contractVersion",outputs:[{internalType:"uint8",name:"",type:"uint8"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"bytes",name:"data",type:"bytes"},{internalType:"bytes",name:"key",type:"bytes"}],name:"encryptDecrypt",outputs:[{internalType:"bytes",name:"result",type:"bytes"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"}],name:"encryptedData",outputs:[{internalType:"bytes",name:"",type:"bytes"}],stateMutability:"view",type:"function"},{inputs:[],name:"getActiveClaimConditionId",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"getApproved",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"getBaseURICount",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_conditionId",type:"uint256"}],name:"getClaimConditionById",outputs:[{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerTransaction",type:"uint256"},{internalType:"uint256",name:"waitTimeInSecondsBetweenClaims",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],internalType:"struct IDropClaimCondition_V2.ClaimCondition",name:"condition",type:"tuple"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_conditionId",type:"uint256"},{internalType:"address",name:"_claimer",type:"address"}],name:"getClaimTimestamp",outputs:[{internalType:"uint256",name:"lastClaimTimestamp",type:"uint256"},{internalType:"uint256",name:"nextValidClaimTimestamp",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"getDefaultRoyaltyInfo",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[],name:"getPlatformFeeInfo",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleAdmin",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"uint256",name:"index",type:"uint256"}],name:"getRoleMember",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleMemberCount",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"}],name:"getRoyaltyInfoForToken",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"grantRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRole",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_defaultAdmin",type:"address"},{internalType:"string",name:"_name",type:"string"},{internalType:"string",name:"_symbol",type:"string"},{internalType:"string",name:"_contractURI",type:"string"},{internalType:"address[]",name:"_trustedForwarders",type:"address[]"},{internalType:"address",name:"_saleRecipient",type:"address"},{internalType:"address",name:"_royaltyRecipient",type:"address"},{internalType:"uint128",name:"_royaltyBps",type:"uint128"},{internalType:"uint128",name:"_platformFeeBps",type:"uint128"},{internalType:"address",name:"_platformFeeRecipient",type:"address"}],name:"initialize",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"address",name:"operator",type:"address"}],name:"isApprovedForAll",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"forwarder",type:"address"}],name:"isTrustedForwarder",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_amount",type:"uint256"},{internalType:"string",name:"_baseURIForTokens",type:"string"},{internalType:"bytes",name:"_data",type:"bytes"}],name:"lazyMint",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"maxTotalSupply",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"maxWalletClaimCount",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes[]",name:"data",type:"bytes[]"}],name:"multicall",outputs:[{internalType:"bytes[]",name:"results",type:"bytes[]"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"name",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"nextTokenIdToClaim",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"nextTokenIdToMint",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"owner",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"ownerOf",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"primarySaleRecipient",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"renounceRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"index",type:"uint256"},{internalType:"bytes",name:"_key",type:"bytes"}],name:"reveal",outputs:[{internalType:"string",name:"revealedURI",type:"string"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"revokeRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"salePrice",type:"uint256"}],name:"royaltyInfo",outputs:[{internalType:"address",name:"receiver",type:"address"},{internalType:"uint256",name:"royaltyAmount",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"safeTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"}],name:"safeTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"operator",type:"address"},{internalType:"bool",name:"approved",type:"bool"}],name:"setApprovalForAll",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerTransaction",type:"uint256"},{internalType:"uint256",name:"waitTimeInSecondsBetweenClaims",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],internalType:"struct IDropClaimCondition_V2.ClaimCondition[]",name:"_phases",type:"tuple[]"},{internalType:"bool",name:"_resetClaimEligibility",type:"bool"}],name:"setClaimConditions",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"string",name:"_uri",type:"string"}],name:"setContractURI",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_royaltyRecipient",type:"address"},{internalType:"uint256",name:"_royaltyBps",type:"uint256"}],name:"setDefaultRoyaltyInfo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_maxTotalSupply",type:"uint256"}],name:"setMaxTotalSupply",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_count",type:"uint256"}],name:"setMaxWalletClaimCount",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_newOwner",type:"address"}],name:"setOwner",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_platformFeeRecipient",type:"address"},{internalType:"uint256",name:"_platformFeeBps",type:"uint256"}],name:"setPlatformFeeInfo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_saleRecipient",type:"address"}],name:"setPrimarySaleRecipient",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"},{internalType:"address",name:"_recipient",type:"address"},{internalType:"uint256",name:"_bps",type:"uint256"}],name:"setRoyaltyInfoForToken",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_claimer",type:"address"},{internalType:"uint256",name:"_count",type:"uint256"}],name:"setWalletClaimCount",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes4",name:"interfaceId",type:"bytes4"}],name:"supportsInterface",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"symbol",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"index",type:"uint256"}],name:"tokenByIndex",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"uint256",name:"index",type:"uint256"}],name:"tokenOfOwnerByIndex",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"}],name:"tokenURI",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"totalSupply",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"transferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_conditionId",type:"uint256"},{internalType:"address",name:"_claimer",type:"address"},{internalType:"uint256",name:"_quantity",type:"uint256"},{internalType:"address",name:"_currency",type:"address"},{internalType:"uint256",name:"_pricePerToken",type:"uint256"},{internalType:"bool",name:"verifyMaxQuantityPerTransaction",type:"bool"}],name:"verifyClaim",outputs:[],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_conditionId",type:"uint256"},{internalType:"address",name:"_claimer",type:"address"},{internalType:"uint256",name:"_quantity",type:"uint256"},{internalType:"bytes32[]",name:"_proofs",type:"bytes32[]"},{internalType:"uint256",name:"_proofMaxQuantityPerTransaction",type:"uint256"}],name:"verifyClaimMerkleProof",outputs:[{internalType:"bool",name:"validMerkleProof",type:"bool"},{internalType:"uint256",name:"merkleProofIndex",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"}],name:"walletClaimCount",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"}]});var XH=O((Vun,Iir)=>{Iir.exports=[{inputs:[{internalType:"string",name:"name_",type:"string"},{internalType:"string",name:"symbol_",type:"string"}],stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"spender",type:"address"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"}],name:"Approval",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"}],name:"Transfer",type:"event"},{inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"address",name:"spender",type:"address"}],name:"allowance",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"spender",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"approve",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"balanceOf",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"decimals",outputs:[{internalType:"uint8",name:"",type:"uint8"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"spender",type:"address"},{internalType:"uint256",name:"subtractedValue",type:"uint256"}],name:"decreaseAllowance",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"spender",type:"address"},{internalType:"uint256",name:"addedValue",type:"uint256"}],name:"increaseAllowance",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"name",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"symbol",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"totalSupply",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"transfer",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"transferFrom",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"}]});var LUe=O(OUe=>{"use strict";x();T();var cs=Go(),Yr=Uc(),Pir=XH(),Rir=Ea(),dp=_t(),Yf=Pn();Xr();Un();Wn();jn();zn();Hn();Vn();Gn();Zn();Jn();Kn();Qn();Xn();Yn();$n();ea();ta();ra();na();aa();ia();sa();oa();ca();ua();la();da();pa();ha();fa();ma();ya();ga();va();ba();wa();xa();Ta();_a();Ca();ka();Sa();Aa();Ma();Ia();Pa();Ra();En();Na();Oa();La();On();Ba();qa();Da();Fa();Ua();Wa();ja();za();Ha();Va();Ga();Za();Ja();Ka();Qa();function MUe(r){return r&&r.__esModule?r:{default:r}}var Nir=MUe(Pir),Oir=MUe(Rir),$H=Yf.z.object({contractAddress:Yr.AddressSchema}),Lir=$H.extend({quantity:cs.AmountSchema}),Bir=$H.extend({tokenId:Yr.BigNumberishSchema}),qir=$H.extend({tokenId:Yr.BigNumberishSchema,quantity:Yr.BigNumberishSchema}),IUe=Lir.omit({quantity:!0}).extend({quantityPerReward:cs.AmountSchema}),PUe=Bir,RUe=qir.omit({quantity:!0}).extend({quantityPerReward:Yr.BigNumberishSchema}),Dir=IUe.extend({totalRewards:Yr.BigNumberishSchema.default("1")}),Fir=PUe,Uir=RUe.extend({totalRewards:Yr.BigNumberishSchema.default("1")});Yf.z.object({erc20Rewards:Yf.z.array(IUe).default([]),erc721Rewards:Yf.z.array(PUe).default([]),erc1155Rewards:Yf.z.array(RUe).default([])});var NUe=Yf.z.object({erc20Rewards:Yf.z.array(Dir).default([]),erc721Rewards:Yf.z.array(Fir).default([]),erc1155Rewards:Yf.z.array(Uir).default([])}),Wir=NUe.extend({packMetadata:cs.NFTInputOrUriSchema,rewardsPerPack:Yr.BigNumberishSchema.default("1"),openStartTime:Yr.RawDateSchema.default(new Date)}),YH=class{constructor(e,t,n,a,i){let s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:new Yr.ContractWrapper(e,t,Oir.default,a);cs._defineProperty(this,"featureName",Yr.FEATURE_PACK_VRF.name),cs._defineProperty(this,"contractWrapper",void 0),cs._defineProperty(this,"storage",void 0),cs._defineProperty(this,"chainId",void 0),cs._defineProperty(this,"events",void 0),this.contractWrapper=s,this.storage=n,this.chainId=i,this.events=new Yr.ContractEvents(this.contractWrapper)}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}async open(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,n=await this.contractWrapper.sendTransaction("openPack",[e,t],{gasLimit:5e5}),a=dp.BigNumber.from(0);try{a=this.contractWrapper.parseLogs("PackOpenRequested",n?.logs)[0].args.requestId}catch{}return{receipt:n,id:a}}async claimRewards(){let e=await this.contractWrapper.sendTransaction("claimRewards",[],{gasLimit:5e5}),t=this.contractWrapper.parseLogs("PackOpened",e?.logs);if(t.length===0)throw new Error("PackOpened event not found");let n=t[0].args.rewardUnitsDistributed;return this.parseRewards(n)}async parseRewards(e){let t=[],n=[],a=[];for(let i of e)switch(i.tokenType){case 0:{let s=await Yr.fetchCurrencyMetadata(this.contractWrapper.getProvider(),i.assetContract);t.push({contractAddress:i.assetContract,quantityPerReward:dp.ethers.utils.formatUnits(i.totalAmount,s.decimals).toString()});break}case 1:{n.push({contractAddress:i.assetContract,tokenId:i.tokenId.toString()});break}case 2:{a.push({contractAddress:i.assetContract,tokenId:i.tokenId.toString(),quantityPerReward:i.totalAmount.toString()});break}}return{erc20Rewards:t,erc721Rewards:n,erc1155Rewards:a}}async addPackOpenEventListener(e){return this.events.addEventListener("PackOpened",async t=>{e(t.data.packId.toString(),t.data.opener,await this.parseRewards(t.data.rewardUnitsDistributed))})}async canClaimRewards(e){let t=e||await this.contractWrapper.getSignerAddress();return await this.contractWrapper.readContract.canClaimRewards(t)}async openAndClaim(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:5e5,a=await this.contractWrapper.sendTransaction("openPackAndClaimRewards",[e,t,n],{gasLimit:dp.BigNumber.from(5e5)}),i=dp.BigNumber.from(0);try{i=this.contractWrapper.parseLogs("PackOpenRequested",a?.logs)[0].args.requestId}catch{}return{receipt:a,id:i}}async getLinkBalance(){return this.getLinkContract().balanceOf(this.contractWrapper.readContract.address)}async transferLink(e){await this.getLinkContract().transfer(this.contractWrapper.readContract.address,e)}getLinkContract(){let e=Yr.LINK_TOKEN_ADDRESS[this.chainId];if(!e)throw new Error(`No LINK token address found for chainId ${this.chainId}`);let t=new Yr.ContractWrapper(this.contractWrapper.getSignerOrProvider(),e,Nir.default,this.contractWrapper.options);return new Yr.Erc20(t,this.storage,this.chainId)}},hw=class extends Yr.StandardErc1155{get vrf(){return Yr.assertEnabled(this._vrf,Yr.FEATURE_PACK_VRF)}constructor(e,t,n){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},i=arguments.length>4?arguments[4]:void 0,s=arguments.length>5?arguments[5]:void 0,c=arguments.length>6&&arguments[6]!==void 0?arguments[6]:new Yr.ContractWrapper(e,t,i,a.gasless&&"openzeppelin"in a.gasless?{...a,gasless:{openzeppelin:{...a.gasless.openzeppelin,useEOAForwarder:!0}}}:a);super(c,n,s),cs._defineProperty(this,"abi",void 0),cs._defineProperty(this,"metadata",void 0),cs._defineProperty(this,"roles",void 0),cs._defineProperty(this,"encoder",void 0),cs._defineProperty(this,"events",void 0),cs._defineProperty(this,"estimator",void 0),cs._defineProperty(this,"royalties",void 0),cs._defineProperty(this,"interceptor",void 0),cs._defineProperty(this,"erc1155",void 0),cs._defineProperty(this,"owner",void 0),cs._defineProperty(this,"_vrf",void 0),this.abi=i,this.erc1155=new Yr.Erc1155(this.contractWrapper,this.storage,s),this.metadata=new Yr.ContractMetadata(this.contractWrapper,Yr.PackContractSchema,this.storage),this.roles=new Yr.ContractRoles(this.contractWrapper,hw.contractRoles),this.royalties=new Yr.ContractRoyalty(this.contractWrapper,this.metadata),this.encoder=new Yr.ContractEncoder(this.contractWrapper),this.estimator=new Yr.GasCostEstimator(this.contractWrapper),this.events=new Yr.ContractEvents(this.contractWrapper),this.interceptor=new Yr.ContractInterceptor(this.contractWrapper),this.owner=new Yr.ContractOwner(this.contractWrapper),this._vrf=this.detectVrf()}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e),this._vrf?.onNetworkUpdated(e)}getAddress(){return this.contractWrapper.readContract.address}async get(e){return this.erc1155.get(e)}async getAll(e){return this.erc1155.getAll(e)}async getOwned(e){return this.erc1155.getOwned(e)}async getTotalCount(){return this.erc1155.totalCount()}async isTransferRestricted(){return!await this.contractWrapper.readContract.hasRole(Yr.getRoleHash("transfer"),dp.ethers.constants.AddressZero)}async getPackContents(e){let{contents:t,perUnitAmounts:n}=await this.contractWrapper.readContract.getPackContents(e),a=[],i=[],s=[];for(let c=0;cthis.erc1155.get(d)}}async createTo(e,t){let n=await Yr.uploadOrExtractURI(t.packMetadata,this.storage),a=Wir.parse(t),{erc20Rewards:i,erc721Rewards:s,erc1155Rewards:c}=a,l={erc20Rewards:i,erc721Rewards:s,erc1155Rewards:c},{contents:d,numOfRewardUnits:f}=await this.toPackContentArgs(l),w=await this.contractWrapper.sendTransaction("createPack",[d,f,n,a.openStartTime,a.rewardsPerPack,e]),E=this.contractWrapper.parseLogs("PackCreated",w?.logs);if(E.length===0)throw new Error("PackCreated event not found");let k=E[0].args.packId;return{id:k,receipt:w,data:()=>this.erc1155.get(k)}}async open(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;if(this._vrf)throw new Error("This contract is using Chainlink VRF, use `contract.vrf.open()` or `contract.vrf.openAndClaim()` instead");let n=await this.contractWrapper.sendTransaction("openPack",[e,t],{gasLimit:5e5}),a=this.contractWrapper.parseLogs("PackOpened",n?.logs);if(a.length===0)throw new Error("PackOpened event not found");let i=a[0].args.rewardUnitsDistributed,s=[],c=[],l=[];for(let d of i)switch(d.tokenType){case 0:{let f=await Yr.fetchCurrencyMetadata(this.contractWrapper.getProvider(),d.assetContract);s.push({contractAddress:d.assetContract,quantityPerReward:dp.ethers.utils.formatUnits(d.totalAmount,f.decimals).toString()});break}case 1:{c.push({contractAddress:d.assetContract,tokenId:d.tokenId.toString()});break}case 2:{l.push({contractAddress:d.assetContract,tokenId:d.tokenId.toString(),quantityPerReward:d.totalAmount.toString()});break}}return{erc20Rewards:s,erc721Rewards:c,erc1155Rewards:l}}async toPackContentArgs(e){let t=[],n=[],{erc20Rewards:a,erc721Rewards:i,erc1155Rewards:s}=e,c=this.contractWrapper.getProvider(),l=await this.contractWrapper.getSignerAddress();for(let d of a){let w=(await Yr.normalizePriceValue(c,d.quantityPerReward,d.contractAddress)).mul(d.totalRewards);if(!await Yr.hasERC20Allowance(this.contractWrapper,d.contractAddress,w))throw new Error(`ERC20 token with contract address "${d.contractAddress}" does not have enough allowance to transfer. +`); + t.push({ + assetContract: i.contractAddress, + totalAmount: i.quantity, + tokenId: i.tokenId, + tokenType: 2, + }); + } + return t; + } + async call(e) { + for ( + var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), a = 1; + a < t; + a++ + ) + n[a - 1] = arguments[a]; + return this.contractWrapper.call(e, ...n); + } + }; + Af._defineProperty(fw, "contractRoles", [ + "admin", + "transfer", + "minter", + "unwrap", + "asset", + ]); + EFe.Multiwrap = fw; + }); + var Oz = N((Don, lar) => { + lar.exports = [ + { + inputs: [ + { + internalType: "address", + name: "_nativeTokenWrapper", + type: "address", + }, + ], + stateMutability: "nonpayable", + type: "constructor", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "address", + name: "owner", + type: "address", + }, + { + indexed: !0, + internalType: "address", + name: "approved", + type: "address", + }, + { + indexed: !0, + internalType: "uint256", + name: "tokenId", + type: "uint256", + }, + ], + name: "Approval", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "address", + name: "owner", + type: "address", + }, + { + indexed: !0, + internalType: "address", + name: "operator", + type: "address", + }, + { indexed: !1, internalType: "bool", name: "approved", type: "bool" }, + ], + name: "ApprovalForAll", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !1, + internalType: "string", + name: "prevURI", + type: "string", + }, + { + indexed: !1, + internalType: "string", + name: "newURI", + type: "string", + }, + ], + name: "ContractURIUpdated", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "address", + name: "newRoyaltyRecipient", + type: "address", + }, + { + indexed: !1, + internalType: "uint256", + name: "newRoyaltyBps", + type: "uint256", + }, + ], + name: "DefaultRoyalty", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !1, + internalType: "uint8", + name: "version", + type: "uint8", + }, + ], + name: "Initialized", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "address", + name: "prevOwner", + type: "address", + }, + { + indexed: !0, + internalType: "address", + name: "newOwner", + type: "address", + }, + ], + name: "OwnerUpdated", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "bytes32", + name: "role", + type: "bytes32", + }, + { + indexed: !0, + internalType: "bytes32", + name: "previousAdminRole", + type: "bytes32", + }, + { + indexed: !0, + internalType: "bytes32", + name: "newAdminRole", + type: "bytes32", + }, + ], + name: "RoleAdminChanged", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "bytes32", + name: "role", + type: "bytes32", + }, + { + indexed: !0, + internalType: "address", + name: "account", + type: "address", + }, + { + indexed: !0, + internalType: "address", + name: "sender", + type: "address", + }, + ], + name: "RoleGranted", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "bytes32", + name: "role", + type: "bytes32", + }, + { + indexed: !0, + internalType: "address", + name: "account", + type: "address", + }, + { + indexed: !0, + internalType: "address", + name: "sender", + type: "address", + }, + ], + name: "RoleRevoked", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "uint256", + name: "tokenId", + type: "uint256", + }, + { + indexed: !0, + internalType: "address", + name: "royaltyRecipient", + type: "address", + }, + { + indexed: !1, + internalType: "uint256", + name: "royaltyBps", + type: "uint256", + }, + ], + name: "RoyaltyForToken", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "address", + name: "unwrapper", + type: "address", + }, + { + indexed: !0, + internalType: "address", + name: "recipientOfWrappedContents", + type: "address", + }, + { + indexed: !0, + internalType: "uint256", + name: "tokenIdOfWrappedToken", + type: "uint256", + }, + ], + name: "TokensUnwrapped", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "address", + name: "wrapper", + type: "address", + }, + { + indexed: !0, + internalType: "address", + name: "recipientOfWrappedToken", + type: "address", + }, + { + indexed: !0, + internalType: "uint256", + name: "tokenIdOfWrappedToken", + type: "uint256", + }, + { + components: [ + { + internalType: "address", + name: "assetContract", + type: "address", + }, + { + internalType: "enum ITokenBundle.TokenType", + name: "tokenType", + type: "uint8", + }, + { internalType: "uint256", name: "tokenId", type: "uint256" }, + { internalType: "uint256", name: "totalAmount", type: "uint256" }, + ], + indexed: !1, + internalType: "struct ITokenBundle.Token[]", + name: "wrappedContents", + type: "tuple[]", + }, + ], + name: "TokensWrapped", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "address", + name: "from", + type: "address", + }, + { indexed: !0, internalType: "address", name: "to", type: "address" }, + { + indexed: !0, + internalType: "uint256", + name: "tokenId", + type: "uint256", + }, + ], + name: "Transfer", + type: "event", + }, + { + inputs: [], + name: "DEFAULT_ADMIN_ROLE", + outputs: [{ internalType: "bytes32", name: "", type: "bytes32" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "to", type: "address" }, + { internalType: "uint256", name: "tokenId", type: "uint256" }, + ], + name: "approve", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [{ internalType: "address", name: "owner", type: "address" }], + name: "balanceOf", + outputs: [{ internalType: "uint256", name: "", type: "uint256" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "contractType", + outputs: [{ internalType: "bytes32", name: "", type: "bytes32" }], + stateMutability: "pure", + type: "function", + }, + { + inputs: [], + name: "contractURI", + outputs: [{ internalType: "string", name: "", type: "string" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "contractVersion", + outputs: [{ internalType: "uint8", name: "", type: "uint8" }], + stateMutability: "pure", + type: "function", + }, + { + inputs: [{ internalType: "uint256", name: "tokenId", type: "uint256" }], + name: "getApproved", + outputs: [{ internalType: "address", name: "", type: "address" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "getDefaultRoyaltyInfo", + outputs: [ + { internalType: "address", name: "", type: "address" }, + { internalType: "uint16", name: "", type: "uint16" }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [{ internalType: "bytes32", name: "role", type: "bytes32" }], + name: "getRoleAdmin", + outputs: [{ internalType: "bytes32", name: "", type: "bytes32" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "bytes32", name: "role", type: "bytes32" }, + { internalType: "uint256", name: "index", type: "uint256" }, + ], + name: "getRoleMember", + outputs: [{ internalType: "address", name: "member", type: "address" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [{ internalType: "bytes32", name: "role", type: "bytes32" }], + name: "getRoleMemberCount", + outputs: [{ internalType: "uint256", name: "count", type: "uint256" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "uint256", name: "_tokenId", type: "uint256" }, + ], + name: "getRoyaltyInfoForToken", + outputs: [ + { internalType: "address", name: "", type: "address" }, + { internalType: "uint16", name: "", type: "uint16" }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "uint256", name: "_bundleId", type: "uint256" }, + ], + name: "getTokenCountOfBundle", + outputs: [{ internalType: "uint256", name: "", type: "uint256" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "uint256", name: "_bundleId", type: "uint256" }, + { internalType: "uint256", name: "index", type: "uint256" }, + ], + name: "getTokenOfBundle", + outputs: [ + { + components: [ + { + internalType: "address", + name: "assetContract", + type: "address", + }, + { + internalType: "enum ITokenBundle.TokenType", + name: "tokenType", + type: "uint8", + }, + { internalType: "uint256", name: "tokenId", type: "uint256" }, + { internalType: "uint256", name: "totalAmount", type: "uint256" }, + ], + internalType: "struct ITokenBundle.Token", + name: "", + type: "tuple", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "uint256", name: "_bundleId", type: "uint256" }, + ], + name: "getUriOfBundle", + outputs: [{ internalType: "string", name: "", type: "string" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "uint256", name: "_tokenId", type: "uint256" }, + ], + name: "getWrappedContents", + outputs: [ + { + components: [ + { + internalType: "address", + name: "assetContract", + type: "address", + }, + { + internalType: "enum ITokenBundle.TokenType", + name: "tokenType", + type: "uint8", + }, + { internalType: "uint256", name: "tokenId", type: "uint256" }, + { internalType: "uint256", name: "totalAmount", type: "uint256" }, + ], + internalType: "struct ITokenBundle.Token[]", + name: "contents", + type: "tuple[]", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "bytes32", name: "role", type: "bytes32" }, + { internalType: "address", name: "account", type: "address" }, + ], + name: "grantRole", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "bytes32", name: "role", type: "bytes32" }, + { internalType: "address", name: "account", type: "address" }, + ], + name: "hasRole", + outputs: [{ internalType: "bool", name: "", type: "bool" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "bytes32", name: "role", type: "bytes32" }, + { internalType: "address", name: "account", type: "address" }, + ], + name: "hasRoleWithSwitch", + outputs: [{ internalType: "bool", name: "", type: "bool" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "_defaultAdmin", type: "address" }, + { internalType: "string", name: "_name", type: "string" }, + { internalType: "string", name: "_symbol", type: "string" }, + { internalType: "string", name: "_contractURI", type: "string" }, + { + internalType: "address[]", + name: "_trustedForwarders", + type: "address[]", + }, + { + internalType: "address", + name: "_royaltyRecipient", + type: "address", + }, + { internalType: "uint256", name: "_royaltyBps", type: "uint256" }, + ], + name: "initialize", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "owner", type: "address" }, + { internalType: "address", name: "operator", type: "address" }, + ], + name: "isApprovedForAll", + outputs: [{ internalType: "bool", name: "", type: "bool" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "forwarder", type: "address" }, + ], + name: "isTrustedForwarder", + outputs: [{ internalType: "bool", name: "", type: "bool" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [{ internalType: "bytes[]", name: "data", type: "bytes[]" }], + name: "multicall", + outputs: [ + { internalType: "bytes[]", name: "results", type: "bytes[]" }, + ], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [], + name: "name", + outputs: [{ internalType: "string", name: "", type: "string" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "nextTokenIdToMint", + outputs: [{ internalType: "uint256", name: "", type: "uint256" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "", type: "address" }, + { internalType: "address", name: "", type: "address" }, + { internalType: "uint256[]", name: "", type: "uint256[]" }, + { internalType: "uint256[]", name: "", type: "uint256[]" }, + { internalType: "bytes", name: "", type: "bytes" }, + ], + name: "onERC1155BatchReceived", + outputs: [{ internalType: "bytes4", name: "", type: "bytes4" }], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "", type: "address" }, + { internalType: "address", name: "", type: "address" }, + { internalType: "uint256", name: "", type: "uint256" }, + { internalType: "uint256", name: "", type: "uint256" }, + { internalType: "bytes", name: "", type: "bytes" }, + ], + name: "onERC1155Received", + outputs: [{ internalType: "bytes4", name: "", type: "bytes4" }], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "", type: "address" }, + { internalType: "address", name: "", type: "address" }, + { internalType: "uint256", name: "", type: "uint256" }, + { internalType: "bytes", name: "", type: "bytes" }, + ], + name: "onERC721Received", + outputs: [{ internalType: "bytes4", name: "", type: "bytes4" }], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [], + name: "owner", + outputs: [{ internalType: "address", name: "", type: "address" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [{ internalType: "uint256", name: "tokenId", type: "uint256" }], + name: "ownerOf", + outputs: [{ internalType: "address", name: "", type: "address" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "bytes32", name: "role", type: "bytes32" }, + { internalType: "address", name: "account", type: "address" }, + ], + name: "renounceRole", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "bytes32", name: "role", type: "bytes32" }, + { internalType: "address", name: "account", type: "address" }, + ], + name: "revokeRole", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "uint256", name: "tokenId", type: "uint256" }, + { internalType: "uint256", name: "salePrice", type: "uint256" }, + ], + name: "royaltyInfo", + outputs: [ + { internalType: "address", name: "receiver", type: "address" }, + { internalType: "uint256", name: "royaltyAmount", type: "uint256" }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "from", type: "address" }, + { internalType: "address", name: "to", type: "address" }, + { internalType: "uint256", name: "tokenId", type: "uint256" }, + ], + name: "safeTransferFrom", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "from", type: "address" }, + { internalType: "address", name: "to", type: "address" }, + { internalType: "uint256", name: "tokenId", type: "uint256" }, + { internalType: "bytes", name: "data", type: "bytes" }, + ], + name: "safeTransferFrom", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "operator", type: "address" }, + { internalType: "bool", name: "approved", type: "bool" }, + ], + name: "setApprovalForAll", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [{ internalType: "string", name: "_uri", type: "string" }], + name: "setContractURI", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "address", + name: "_royaltyRecipient", + type: "address", + }, + { internalType: "uint256", name: "_royaltyBps", type: "uint256" }, + ], + name: "setDefaultRoyaltyInfo", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "_newOwner", type: "address" }, + ], + name: "setOwner", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "uint256", name: "_tokenId", type: "uint256" }, + { internalType: "address", name: "_recipient", type: "address" }, + { internalType: "uint256", name: "_bps", type: "uint256" }, + ], + name: "setRoyaltyInfoForToken", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "bytes4", name: "interfaceId", type: "bytes4" }, + ], + name: "supportsInterface", + outputs: [{ internalType: "bool", name: "", type: "bool" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "symbol", + outputs: [{ internalType: "string", name: "", type: "string" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [{ internalType: "uint256", name: "index", type: "uint256" }], + name: "tokenByIndex", + outputs: [{ internalType: "uint256", name: "", type: "uint256" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "owner", type: "address" }, + { internalType: "uint256", name: "index", type: "uint256" }, + ], + name: "tokenOfOwnerByIndex", + outputs: [{ internalType: "uint256", name: "", type: "uint256" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "uint256", name: "_tokenId", type: "uint256" }, + ], + name: "tokenURI", + outputs: [{ internalType: "string", name: "", type: "string" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "totalSupply", + outputs: [{ internalType: "uint256", name: "", type: "uint256" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "from", type: "address" }, + { internalType: "address", name: "to", type: "address" }, + { internalType: "uint256", name: "tokenId", type: "uint256" }, + ], + name: "transferFrom", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "uint256", name: "_tokenId", type: "uint256" }, + { internalType: "address", name: "_recipient", type: "address" }, + ], + name: "unwrap", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + components: [ + { + internalType: "address", + name: "assetContract", + type: "address", + }, + { + internalType: "enum ITokenBundle.TokenType", + name: "tokenType", + type: "uint8", + }, + { internalType: "uint256", name: "tokenId", type: "uint256" }, + { internalType: "uint256", name: "totalAmount", type: "uint256" }, + ], + internalType: "struct ITokenBundle.Token[]", + name: "_tokensToWrap", + type: "tuple[]", + }, + { + internalType: "string", + name: "_uriForWrappedToken", + type: "string", + }, + { internalType: "address", name: "_recipient", type: "address" }, + ], + name: "wrap", + outputs: [ + { internalType: "uint256", name: "tokenId", type: "uint256" }, + ], + stateMutability: "payable", + type: "function", + }, + { stateMutability: "payable", type: "receive" }, + ]; + }); + var AFe = N((IFe) => { + "use strict"; + _(); + x(); + var iu = Oo(), + $o = kc(), + dar = wt(); + Gr(); + an(); + Bn(); + Nn(); + On(); + Ln(); + Dn(); + qn(); + Fn(); + Wn(); + Un(); + Hn(); + zn(); + jn(); + Kn(); + Vn(); + Gn(); + Yn(); + $n(); + Jn(); + Zn(); + Qn(); + Xn(); + ea(); + ta(); + ra(); + na(); + aa(); + ia(); + sa(); + oa(); + ca(); + ua(); + la(); + da(); + pa(); + ha(); + fa(); + ma(); + ya(); + ga(); + ba(); + va(); + wa(); + _a(); + xa(); + Ta(); + Ea(); + Ca(); + vn(); + Ia(); + Aa(); + ka(); + An(); + Sa(); + Ma(); + Pa(); + Ra(); + Ba(); + Na(); + Oa(); + La(); + Da(); + qa(); + Fa(); + Wa(); + Ua(); + Ha(); + za(); + var mw = class extends $o.StandardErc721 { + constructor(e, t, n) { + let a = + arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {}, + i = arguments.length > 4 ? arguments[4] : void 0, + s = arguments.length > 5 ? arguments[5] : void 0, + c = + arguments.length > 6 && arguments[6] !== void 0 + ? arguments[6] + : new $o.ContractWrapper(e, t, i, a); + super(c, n, s), + iu._defineProperty(this, "abi", void 0), + iu._defineProperty(this, "metadata", void 0), + iu._defineProperty(this, "roles", void 0), + iu._defineProperty(this, "encoder", void 0), + iu._defineProperty(this, "estimator", void 0), + iu._defineProperty(this, "events", void 0), + iu._defineProperty(this, "sales", void 0), + iu._defineProperty(this, "platformFees", void 0), + iu._defineProperty(this, "royalties", void 0), + iu._defineProperty(this, "owner", void 0), + iu._defineProperty(this, "signature", void 0), + iu._defineProperty(this, "interceptor", void 0), + iu._defineProperty(this, "erc721", void 0), + (this.abi = i), + (this.metadata = new $o.ContractMetadata( + this.contractWrapper, + $o.TokenErc721ContractSchema, + this.storage + )), + (this.roles = new $o.ContractRoles( + this.contractWrapper, + mw.contractRoles + )), + (this.royalties = new $o.ContractRoyalty( + this.contractWrapper, + this.metadata + )), + (this.sales = new $o.ContractPrimarySale(this.contractWrapper)), + (this.encoder = new $o.ContractEncoder(this.contractWrapper)), + (this.estimator = new $o.GasCostEstimator(this.contractWrapper)), + (this.events = new $o.ContractEvents(this.contractWrapper)), + (this.platformFees = new $o.ContractPlatformFee( + this.contractWrapper + )), + (this.interceptor = new $o.ContractInterceptor(this.contractWrapper)), + (this.erc721 = new $o.Erc721(this.contractWrapper, this.storage, s)), + (this.signature = new $o.Erc721WithQuantitySignatureMintable( + this.contractWrapper, + this.storage + )), + (this.owner = new $o.ContractOwner(this.contractWrapper)); + } + onNetworkUpdated(e) { + this.contractWrapper.updateSignerOrProvider(e); + } + getAddress() { + return this.contractWrapper.readContract.address; + } + async isTransferRestricted() { + return !(await this.contractWrapper.readContract.hasRole( + $o.getRoleHash("transfer"), + dar.constants.AddressZero + )); + } + async mint(e) { + return this.erc721.mint(e); + } + async mintTo(e, t) { + return this.erc721.mintTo(e, t); + } + async getMintTransaction(e, t) { + return this.erc721.getMintTransaction(e, t); + } + async mintBatch(e) { + return this.erc721.mintBatch(e); + } + async mintBatchTo(e, t) { + return this.erc721.mintBatchTo(e, t); + } + async burn(e) { + return this.erc721.burn(e); + } + async call(e) { + for ( + var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), a = 1; + a < t; + a++ + ) + n[a - 1] = arguments[a]; + return this.contractWrapper.call(e, ...n); + } + }; + iu._defineProperty(mw, "contractRoles", ["admin", "minter", "transfer"]); + IFe.NFTCollection = mw; + }); + var Lz = N((Uon, par) => { + par.exports = [ + { inputs: [], stateMutability: "nonpayable", type: "constructor" }, + { + inputs: [ + { internalType: "address", name: "operator", type: "address" }, + ], + name: "OperatorNotAllowed", + type: "error", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "address", + name: "owner", + type: "address", + }, + { + indexed: !0, + internalType: "address", + name: "approved", + type: "address", + }, + { + indexed: !0, + internalType: "uint256", + name: "tokenId", + type: "uint256", + }, + ], + name: "Approval", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "address", + name: "owner", + type: "address", + }, + { + indexed: !0, + internalType: "address", + name: "operator", + type: "address", + }, + { indexed: !1, internalType: "bool", name: "approved", type: "bool" }, + ], + name: "ApprovalForAll", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "address", + name: "newRoyaltyRecipient", + type: "address", + }, + { + indexed: !1, + internalType: "uint256", + name: "newRoyaltyBps", + type: "uint256", + }, + ], + name: "DefaultRoyalty", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !1, + internalType: "uint8", + name: "version", + type: "uint8", + }, + ], + name: "Initialized", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !1, + internalType: "bool", + name: "restriction", + type: "bool", + }, + ], + name: "OperatorRestriction", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "address", + name: "prevOwner", + type: "address", + }, + { + indexed: !0, + internalType: "address", + name: "newOwner", + type: "address", + }, + ], + name: "OwnerUpdated", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "address", + name: "platformFeeRecipient", + type: "address", + }, + { + indexed: !1, + internalType: "uint256", + name: "platformFeeBps", + type: "uint256", + }, + ], + name: "PlatformFeeInfoUpdated", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "address", + name: "recipient", + type: "address", + }, + ], + name: "PrimarySaleRecipientUpdated", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "bytes32", + name: "role", + type: "bytes32", + }, + { + indexed: !0, + internalType: "bytes32", + name: "previousAdminRole", + type: "bytes32", + }, + { + indexed: !0, + internalType: "bytes32", + name: "newAdminRole", + type: "bytes32", + }, + ], + name: "RoleAdminChanged", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "bytes32", + name: "role", + type: "bytes32", + }, + { + indexed: !0, + internalType: "address", + name: "account", + type: "address", + }, + { + indexed: !0, + internalType: "address", + name: "sender", + type: "address", + }, + ], + name: "RoleGranted", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "bytes32", + name: "role", + type: "bytes32", + }, + { + indexed: !0, + internalType: "address", + name: "account", + type: "address", + }, + { + indexed: !0, + internalType: "address", + name: "sender", + type: "address", + }, + ], + name: "RoleRevoked", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "uint256", + name: "tokenId", + type: "uint256", + }, + { + indexed: !0, + internalType: "address", + name: "royaltyRecipient", + type: "address", + }, + { + indexed: !1, + internalType: "uint256", + name: "royaltyBps", + type: "uint256", + }, + ], + name: "RoyaltyForToken", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "address", + name: "mintedTo", + type: "address", + }, + { + indexed: !0, + internalType: "uint256", + name: "tokenIdMinted", + type: "uint256", + }, + { indexed: !1, internalType: "string", name: "uri", type: "string" }, + ], + name: "TokensMinted", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "address", + name: "signer", + type: "address", + }, + { + indexed: !0, + internalType: "address", + name: "mintedTo", + type: "address", + }, + { + indexed: !0, + internalType: "uint256", + name: "tokenIdMinted", + type: "uint256", + }, + { + components: [ + { internalType: "address", name: "to", type: "address" }, + { + internalType: "address", + name: "royaltyRecipient", + type: "address", + }, + { internalType: "uint256", name: "royaltyBps", type: "uint256" }, + { + internalType: "address", + name: "primarySaleRecipient", + type: "address", + }, + { internalType: "string", name: "uri", type: "string" }, + { internalType: "uint256", name: "price", type: "uint256" }, + { internalType: "address", name: "currency", type: "address" }, + { + internalType: "uint128", + name: "validityStartTimestamp", + type: "uint128", + }, + { + internalType: "uint128", + name: "validityEndTimestamp", + type: "uint128", + }, + { internalType: "bytes32", name: "uid", type: "bytes32" }, + ], + indexed: !1, + internalType: "struct ITokenERC721.MintRequest", + name: "mintRequest", + type: "tuple", + }, + ], + name: "TokensMintedWithSignature", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "address", + name: "from", + type: "address", + }, + { indexed: !0, internalType: "address", name: "to", type: "address" }, + { + indexed: !0, + internalType: "uint256", + name: "tokenId", + type: "uint256", + }, + ], + name: "Transfer", + type: "event", + }, + { + inputs: [], + name: "DEFAULT_ADMIN_ROLE", + outputs: [{ internalType: "bytes32", name: "", type: "bytes32" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "operator", type: "address" }, + { internalType: "uint256", name: "tokenId", type: "uint256" }, + ], + name: "approve", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [{ internalType: "address", name: "owner", type: "address" }], + name: "balanceOf", + outputs: [{ internalType: "uint256", name: "", type: "uint256" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [{ internalType: "uint256", name: "tokenId", type: "uint256" }], + name: "burn", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [], + name: "contractType", + outputs: [{ internalType: "bytes32", name: "", type: "bytes32" }], + stateMutability: "pure", + type: "function", + }, + { + inputs: [], + name: "contractURI", + outputs: [{ internalType: "string", name: "", type: "string" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "contractVersion", + outputs: [{ internalType: "uint8", name: "", type: "uint8" }], + stateMutability: "pure", + type: "function", + }, + { + inputs: [{ internalType: "uint256", name: "tokenId", type: "uint256" }], + name: "getApproved", + outputs: [{ internalType: "address", name: "", type: "address" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "getDefaultRoyaltyInfo", + outputs: [ + { internalType: "address", name: "", type: "address" }, + { internalType: "uint16", name: "", type: "uint16" }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "getPlatformFeeInfo", + outputs: [ + { internalType: "address", name: "", type: "address" }, + { internalType: "uint16", name: "", type: "uint16" }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [{ internalType: "bytes32", name: "role", type: "bytes32" }], + name: "getRoleAdmin", + outputs: [{ internalType: "bytes32", name: "", type: "bytes32" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "bytes32", name: "role", type: "bytes32" }, + { internalType: "uint256", name: "index", type: "uint256" }, + ], + name: "getRoleMember", + outputs: [{ internalType: "address", name: "", type: "address" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [{ internalType: "bytes32", name: "role", type: "bytes32" }], + name: "getRoleMemberCount", + outputs: [{ internalType: "uint256", name: "", type: "uint256" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "uint256", name: "_tokenId", type: "uint256" }, + ], + name: "getRoyaltyInfoForToken", + outputs: [ + { internalType: "address", name: "", type: "address" }, + { internalType: "uint16", name: "", type: "uint16" }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "bytes32", name: "role", type: "bytes32" }, + { internalType: "address", name: "account", type: "address" }, + ], + name: "grantRole", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "bytes32", name: "role", type: "bytes32" }, + { internalType: "address", name: "account", type: "address" }, + ], + name: "hasRole", + outputs: [{ internalType: "bool", name: "", type: "bool" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "_defaultAdmin", type: "address" }, + { internalType: "string", name: "_name", type: "string" }, + { internalType: "string", name: "_symbol", type: "string" }, + { internalType: "string", name: "_contractURI", type: "string" }, + { + internalType: "address[]", + name: "_trustedForwarders", + type: "address[]", + }, + { internalType: "address", name: "_saleRecipient", type: "address" }, + { + internalType: "address", + name: "_royaltyRecipient", + type: "address", + }, + { internalType: "uint128", name: "_royaltyBps", type: "uint128" }, + { internalType: "uint128", name: "_platformFeeBps", type: "uint128" }, + { + internalType: "address", + name: "_platformFeeRecipient", + type: "address", + }, + ], + name: "initialize", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "owner", type: "address" }, + { internalType: "address", name: "operator", type: "address" }, + ], + name: "isApprovedForAll", + outputs: [{ internalType: "bool", name: "", type: "bool" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "forwarder", type: "address" }, + ], + name: "isTrustedForwarder", + outputs: [{ internalType: "bool", name: "", type: "bool" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "_to", type: "address" }, + { internalType: "string", name: "_uri", type: "string" }, + ], + name: "mintTo", + outputs: [{ internalType: "uint256", name: "", type: "uint256" }], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + components: [ + { internalType: "address", name: "to", type: "address" }, + { + internalType: "address", + name: "royaltyRecipient", + type: "address", + }, + { internalType: "uint256", name: "royaltyBps", type: "uint256" }, + { + internalType: "address", + name: "primarySaleRecipient", + type: "address", + }, + { internalType: "string", name: "uri", type: "string" }, + { internalType: "uint256", name: "price", type: "uint256" }, + { internalType: "address", name: "currency", type: "address" }, + { + internalType: "uint128", + name: "validityStartTimestamp", + type: "uint128", + }, + { + internalType: "uint128", + name: "validityEndTimestamp", + type: "uint128", + }, + { internalType: "bytes32", name: "uid", type: "bytes32" }, + ], + internalType: "struct ITokenERC721.MintRequest", + name: "_req", + type: "tuple", + }, + { internalType: "bytes", name: "_signature", type: "bytes" }, + ], + name: "mintWithSignature", + outputs: [ + { internalType: "uint256", name: "tokenIdMinted", type: "uint256" }, + ], + stateMutability: "payable", + type: "function", + }, + { + inputs: [{ internalType: "bytes[]", name: "data", type: "bytes[]" }], + name: "multicall", + outputs: [ + { internalType: "bytes[]", name: "results", type: "bytes[]" }, + ], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [], + name: "name", + outputs: [{ internalType: "string", name: "", type: "string" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "nextTokenIdToMint", + outputs: [{ internalType: "uint256", name: "", type: "uint256" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "operatorRestriction", + outputs: [{ internalType: "bool", name: "", type: "bool" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "owner", + outputs: [{ internalType: "address", name: "", type: "address" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [{ internalType: "uint256", name: "tokenId", type: "uint256" }], + name: "ownerOf", + outputs: [{ internalType: "address", name: "", type: "address" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "platformFeeRecipient", + outputs: [{ internalType: "address", name: "", type: "address" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "primarySaleRecipient", + outputs: [{ internalType: "address", name: "", type: "address" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "bytes32", name: "role", type: "bytes32" }, + { internalType: "address", name: "account", type: "address" }, + ], + name: "renounceRole", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "bytes32", name: "role", type: "bytes32" }, + { internalType: "address", name: "account", type: "address" }, + ], + name: "revokeRole", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "uint256", name: "tokenId", type: "uint256" }, + { internalType: "uint256", name: "salePrice", type: "uint256" }, + ], + name: "royaltyInfo", + outputs: [ + { internalType: "address", name: "receiver", type: "address" }, + { internalType: "uint256", name: "royaltyAmount", type: "uint256" }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "from", type: "address" }, + { internalType: "address", name: "to", type: "address" }, + { internalType: "uint256", name: "tokenId", type: "uint256" }, + ], + name: "safeTransferFrom", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "from", type: "address" }, + { internalType: "address", name: "to", type: "address" }, + { internalType: "uint256", name: "tokenId", type: "uint256" }, + { internalType: "bytes", name: "data", type: "bytes" }, + ], + name: "safeTransferFrom", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "operator", type: "address" }, + { internalType: "bool", name: "approved", type: "bool" }, + ], + name: "setApprovalForAll", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [{ internalType: "string", name: "_uri", type: "string" }], + name: "setContractURI", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "address", + name: "_royaltyRecipient", + type: "address", + }, + { internalType: "uint256", name: "_royaltyBps", type: "uint256" }, + ], + name: "setDefaultRoyaltyInfo", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [{ internalType: "bool", name: "_restriction", type: "bool" }], + name: "setOperatorRestriction", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "_newOwner", type: "address" }, + ], + name: "setOwner", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "address", + name: "_platformFeeRecipient", + type: "address", + }, + { internalType: "uint256", name: "_platformFeeBps", type: "uint256" }, + ], + name: "setPlatformFeeInfo", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "_saleRecipient", type: "address" }, + ], + name: "setPrimarySaleRecipient", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "uint256", name: "_tokenId", type: "uint256" }, + { internalType: "address", name: "_recipient", type: "address" }, + { internalType: "uint256", name: "_bps", type: "uint256" }, + ], + name: "setRoyaltyInfoForToken", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "bytes4", name: "interfaceId", type: "bytes4" }, + ], + name: "supportsInterface", + outputs: [{ internalType: "bool", name: "", type: "bool" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "symbol", + outputs: [{ internalType: "string", name: "", type: "string" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [{ internalType: "uint256", name: "index", type: "uint256" }], + name: "tokenByIndex", + outputs: [{ internalType: "uint256", name: "", type: "uint256" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "owner", type: "address" }, + { internalType: "uint256", name: "index", type: "uint256" }, + ], + name: "tokenOfOwnerByIndex", + outputs: [{ internalType: "uint256", name: "", type: "uint256" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "uint256", name: "_tokenId", type: "uint256" }, + ], + name: "tokenURI", + outputs: [{ internalType: "string", name: "", type: "string" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "totalSupply", + outputs: [{ internalType: "uint256", name: "", type: "uint256" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "from", type: "address" }, + { internalType: "address", name: "to", type: "address" }, + { internalType: "uint256", name: "tokenId", type: "uint256" }, + ], + name: "transferFrom", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + components: [ + { internalType: "address", name: "to", type: "address" }, + { + internalType: "address", + name: "royaltyRecipient", + type: "address", + }, + { internalType: "uint256", name: "royaltyBps", type: "uint256" }, + { + internalType: "address", + name: "primarySaleRecipient", + type: "address", + }, + { internalType: "string", name: "uri", type: "string" }, + { internalType: "uint256", name: "price", type: "uint256" }, + { internalType: "address", name: "currency", type: "address" }, + { + internalType: "uint128", + name: "validityStartTimestamp", + type: "uint128", + }, + { + internalType: "uint128", + name: "validityEndTimestamp", + type: "uint128", + }, + { internalType: "bytes32", name: "uid", type: "bytes32" }, + ], + internalType: "struct ITokenERC721.MintRequest", + name: "_req", + type: "tuple", + }, + { internalType: "bytes", name: "_signature", type: "bytes" }, + ], + name: "verify", + outputs: [ + { internalType: "bool", name: "", type: "bool" }, + { internalType: "address", name: "", type: "address" }, + ], + stateMutability: "view", + type: "function", + }, + ]; + }); + var SFe = N((kFe) => { + "use strict"; + _(); + x(); + var Os = Oo(), + os = kc(), + Fg = wt(); + Gr(); + an(); + Bn(); + Nn(); + On(); + Ln(); + Dn(); + qn(); + Fn(); + Wn(); + Un(); + Hn(); + zn(); + jn(); + Kn(); + Vn(); + Gn(); + Yn(); + $n(); + Jn(); + Zn(); + Qn(); + Xn(); + ea(); + ta(); + ra(); + na(); + aa(); + ia(); + sa(); + oa(); + ca(); + ua(); + la(); + da(); + pa(); + ha(); + fa(); + ma(); + ya(); + ga(); + ba(); + va(); + wa(); + _a(); + xa(); + Ta(); + Ea(); + Ca(); + vn(); + Ia(); + Aa(); + ka(); + An(); + Sa(); + Ma(); + Pa(); + Ra(); + Ba(); + Na(); + Oa(); + La(); + Da(); + qa(); + Fa(); + Wa(); + Ua(); + Ha(); + za(); + var yw = class extends os.StandardErc721 { + constructor(e, t, n) { + let a = + arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {}, + i = arguments.length > 4 ? arguments[4] : void 0, + s = arguments.length > 5 ? arguments[5] : void 0, + c = + arguments.length > 6 && arguments[6] !== void 0 + ? arguments[6] + : new os.ContractWrapper(e, t, i, a); + super(c, n, s), + Os._defineProperty(this, "abi", void 0), + Os._defineProperty(this, "encoder", void 0), + Os._defineProperty(this, "estimator", void 0), + Os._defineProperty(this, "metadata", void 0), + Os._defineProperty(this, "sales", void 0), + Os._defineProperty(this, "platformFees", void 0), + Os._defineProperty(this, "events", void 0), + Os._defineProperty(this, "roles", void 0), + Os._defineProperty(this, "interceptor", void 0), + Os._defineProperty(this, "royalties", void 0), + Os._defineProperty(this, "claimConditions", void 0), + Os._defineProperty(this, "revealer", void 0), + Os._defineProperty(this, "checkout", void 0), + Os._defineProperty(this, "erc721", void 0), + Os._defineProperty(this, "owner", void 0), + (this.abi = i), + (this.metadata = new os.ContractMetadata( + this.contractWrapper, + os.DropErc721ContractSchema, + this.storage + )), + (this.roles = new os.ContractRoles( + this.contractWrapper, + yw.contractRoles + )), + (this.royalties = new os.ContractRoyalty( + this.contractWrapper, + this.metadata + )), + (this.sales = new os.ContractPrimarySale(this.contractWrapper)), + (this.claimConditions = new os.DropClaimConditions( + this.contractWrapper, + this.metadata, + this.storage + )), + (this.encoder = new os.ContractEncoder(this.contractWrapper)), + (this.estimator = new os.GasCostEstimator(this.contractWrapper)), + (this.events = new os.ContractEvents(this.contractWrapper)), + (this.platformFees = new os.ContractPlatformFee( + this.contractWrapper + )), + (this.erc721 = new os.Erc721(this.contractWrapper, this.storage, s)), + (this.revealer = new os.DelayedReveal( + this.contractWrapper, + this.storage, + os.FEATURE_NFT_REVEALABLE.name, + () => this.erc721.nextTokenIdToMint() + )), + (this.interceptor = new os.ContractInterceptor(this.contractWrapper)), + (this.owner = new os.ContractOwner(this.contractWrapper)), + (this.checkout = new os.PaperCheckout(this.contractWrapper)); + } + onNetworkUpdated(e) { + this.contractWrapper.updateSignerOrProvider(e); + } + getAddress() { + return this.contractWrapper.readContract.address; + } + async totalSupply() { + let e = await this.totalClaimedSupply(), + t = await this.totalUnclaimedSupply(); + return e.add(t); + } + async getAllClaimed(e) { + let t = Fg.BigNumber.from(e?.start || 0).toNumber(), + n = Fg.BigNumber.from( + e?.count || Os.DEFAULT_QUERY_ALL_COUNT + ).toNumber(), + a = Math.min( + ( + await this.contractWrapper.readContract.nextTokenIdToClaim() + ).toNumber(), + t + n + ); + return await Promise.all( + Array.from(Array(a).keys()).map((i) => this.get(i.toString())) + ); + } + async getAllUnclaimed(e) { + let t = Fg.BigNumber.from(e?.start || 0).toNumber(), + n = Fg.BigNumber.from( + e?.count || Os.DEFAULT_QUERY_ALL_COUNT + ).toNumber(), + a = Fg.BigNumber.from( + Math.max( + ( + await this.contractWrapper.readContract.nextTokenIdToClaim() + ).toNumber(), + t + ) + ), + i = Fg.BigNumber.from( + Math.min( + ( + await this.contractWrapper.readContract.nextTokenIdToMint() + ).toNumber(), + a.toNumber() + n + ) + ); + return await Promise.all( + Array.from(Array(i.sub(a).toNumber()).keys()).map((s) => + this.erc721.getTokenMetadata(a.add(s).toString()) + ) + ); + } + async totalClaimedSupply() { + return this.erc721.totalClaimedSupply(); + } + async totalUnclaimedSupply() { + return this.erc721.totalUnclaimedSupply(); + } + async isTransferRestricted() { + return !(await this.contractWrapper.readContract.hasRole( + os.getRoleHash("transfer"), + Fg.constants.AddressZero + )); + } + async createBatch(e, t) { + return this.erc721.lazyMint(e, t); + } + async getClaimTransaction(e, t) { + let n = + arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !0; + return this.erc721.getClaimTransaction(e, t, { + checkERC20Allowance: n, + }); + } + async claimTo(e, t) { + let n = + arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !0; + return this.erc721.claimTo(e, t, { checkERC20Allowance: n }); + } + async claim(e) { + let t = + arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0; + return this.claimTo( + await this.contractWrapper.getSignerAddress(), + e, + t + ); + } + async burn(e) { + return this.erc721.burn(e); + } + async get(e) { + return this.erc721.get(e); + } + async ownerOf(e) { + return this.erc721.ownerOf(e); + } + async balanceOf(e) { + return this.erc721.balanceOf(e); + } + async balance() { + return this.erc721.balance(); + } + async isApproved(e, t) { + return this.erc721.isApproved(e, t); + } + async transfer(e, t) { + return this.erc721.transfer(e, t); + } + async setApprovalForAll(e, t) { + return this.erc721.setApprovalForAll(e, t); + } + async setApprovalForToken(e, t) { + return { + receipt: await this.contractWrapper.sendTransaction("approve", [ + e, + t, + ]), + }; + } + async call(e) { + for ( + var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), a = 1; + a < t; + a++ + ) + n[a - 1] = arguments[a]; + return this.contractWrapper.call(e, ...n); + } + }; + Os._defineProperty(yw, "contractRoles", ["admin", "minter", "transfer"]); + kFe.NFTDrop = yw; + }); + var Dz = N((Kon, har) => { + har.exports = [ + { inputs: [], stateMutability: "nonpayable", type: "constructor" }, + { inputs: [], name: "ApprovalCallerNotOwnerNorApproved", type: "error" }, + { inputs: [], name: "ApprovalQueryForNonexistentToken", type: "error" }, + { inputs: [], name: "ApprovalToCurrentOwner", type: "error" }, + { inputs: [], name: "ApproveToCaller", type: "error" }, + { inputs: [], name: "BalanceQueryForZeroAddress", type: "error" }, + { inputs: [], name: "MintToZeroAddress", type: "error" }, + { inputs: [], name: "MintZeroQuantity", type: "error" }, + { + inputs: [ + { internalType: "address", name: "operator", type: "address" }, + ], + name: "OperatorNotAllowed", + type: "error", + }, + { inputs: [], name: "OwnerQueryForNonexistentToken", type: "error" }, + { inputs: [], name: "TransferCallerNotOwnerNorApproved", type: "error" }, + { inputs: [], name: "TransferFromIncorrectOwner", type: "error" }, + { + inputs: [], + name: "TransferToNonERC721ReceiverImplementer", + type: "error", + }, + { inputs: [], name: "TransferToZeroAddress", type: "error" }, + { inputs: [], name: "URIQueryForNonexistentToken", type: "error" }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "address", + name: "owner", + type: "address", + }, + { + indexed: !0, + internalType: "address", + name: "approved", + type: "address", + }, + { + indexed: !0, + internalType: "uint256", + name: "tokenId", + type: "uint256", + }, + ], + name: "Approval", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "address", + name: "owner", + type: "address", + }, + { + indexed: !0, + internalType: "address", + name: "operator", + type: "address", + }, + { indexed: !1, internalType: "bool", name: "approved", type: "bool" }, + ], + name: "ApprovalForAll", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + components: [ + { + internalType: "uint256", + name: "startTimestamp", + type: "uint256", + }, + { + internalType: "uint256", + name: "maxClaimableSupply", + type: "uint256", + }, + { + internalType: "uint256", + name: "supplyClaimed", + type: "uint256", + }, + { + internalType: "uint256", + name: "quantityLimitPerWallet", + type: "uint256", + }, + { internalType: "bytes32", name: "merkleRoot", type: "bytes32" }, + { + internalType: "uint256", + name: "pricePerToken", + type: "uint256", + }, + { internalType: "address", name: "currency", type: "address" }, + { internalType: "string", name: "metadata", type: "string" }, + ], + indexed: !1, + internalType: "struct IClaimCondition.ClaimCondition[]", + name: "claimConditions", + type: "tuple[]", + }, + { + indexed: !1, + internalType: "bool", + name: "resetEligibility", + type: "bool", + }, + ], + name: "ClaimConditionsUpdated", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !1, + internalType: "string", + name: "prevURI", + type: "string", + }, + { + indexed: !1, + internalType: "string", + name: "newURI", + type: "string", + }, + ], + name: "ContractURIUpdated", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "address", + name: "newRoyaltyRecipient", + type: "address", + }, + { + indexed: !1, + internalType: "uint256", + name: "newRoyaltyBps", + type: "uint256", + }, + ], + name: "DefaultRoyalty", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !1, + internalType: "uint8", + name: "version", + type: "uint8", + }, + ], + name: "Initialized", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !1, + internalType: "uint256", + name: "maxTotalSupply", + type: "uint256", + }, + ], + name: "MaxTotalSupplyUpdated", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !1, + internalType: "bool", + name: "restriction", + type: "bool", + }, + ], + name: "OperatorRestriction", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "address", + name: "prevOwner", + type: "address", + }, + { + indexed: !0, + internalType: "address", + name: "newOwner", + type: "address", + }, + ], + name: "OwnerUpdated", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "address", + name: "platformFeeRecipient", + type: "address", + }, + { + indexed: !1, + internalType: "uint256", + name: "platformFeeBps", + type: "uint256", + }, + ], + name: "PlatformFeeInfoUpdated", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "address", + name: "recipient", + type: "address", + }, + ], + name: "PrimarySaleRecipientUpdated", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "bytes32", + name: "role", + type: "bytes32", + }, + { + indexed: !0, + internalType: "bytes32", + name: "previousAdminRole", + type: "bytes32", + }, + { + indexed: !0, + internalType: "bytes32", + name: "newAdminRole", + type: "bytes32", + }, + ], + name: "RoleAdminChanged", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "bytes32", + name: "role", + type: "bytes32", + }, + { + indexed: !0, + internalType: "address", + name: "account", + type: "address", + }, + { + indexed: !0, + internalType: "address", + name: "sender", + type: "address", + }, + ], + name: "RoleGranted", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "bytes32", + name: "role", + type: "bytes32", + }, + { + indexed: !0, + internalType: "address", + name: "account", + type: "address", + }, + { + indexed: !0, + internalType: "address", + name: "sender", + type: "address", + }, + ], + name: "RoleRevoked", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "uint256", + name: "tokenId", + type: "uint256", + }, + { + indexed: !0, + internalType: "address", + name: "royaltyRecipient", + type: "address", + }, + { + indexed: !1, + internalType: "uint256", + name: "royaltyBps", + type: "uint256", + }, + ], + name: "RoyaltyForToken", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "uint256", + name: "index", + type: "uint256", + }, + { + indexed: !1, + internalType: "string", + name: "revealedURI", + type: "string", + }, + ], + name: "TokenURIRevealed", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "uint256", + name: "claimConditionIndex", + type: "uint256", + }, + { + indexed: !0, + internalType: "address", + name: "claimer", + type: "address", + }, + { + indexed: !0, + internalType: "address", + name: "receiver", + type: "address", + }, + { + indexed: !1, + internalType: "uint256", + name: "startTokenId", + type: "uint256", + }, + { + indexed: !1, + internalType: "uint256", + name: "quantityClaimed", + type: "uint256", + }, + ], + name: "TokensClaimed", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "uint256", + name: "startTokenId", + type: "uint256", + }, + { + indexed: !1, + internalType: "uint256", + name: "endTokenId", + type: "uint256", + }, + { + indexed: !1, + internalType: "string", + name: "baseURI", + type: "string", + }, + { + indexed: !1, + internalType: "bytes", + name: "encryptedBaseURI", + type: "bytes", + }, + ], + name: "TokensLazyMinted", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "address", + name: "from", + type: "address", + }, + { indexed: !0, internalType: "address", name: "to", type: "address" }, + { + indexed: !0, + internalType: "uint256", + name: "tokenId", + type: "uint256", + }, + ], + name: "Transfer", + type: "event", + }, + { + inputs: [], + name: "DEFAULT_ADMIN_ROLE", + outputs: [{ internalType: "bytes32", name: "", type: "bytes32" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "operator", type: "address" }, + { internalType: "uint256", name: "tokenId", type: "uint256" }, + ], + name: "approve", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [{ internalType: "address", name: "owner", type: "address" }], + name: "balanceOf", + outputs: [{ internalType: "uint256", name: "", type: "uint256" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [{ internalType: "uint256", name: "tokenId", type: "uint256" }], + name: "burn", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "_receiver", type: "address" }, + { internalType: "uint256", name: "_quantity", type: "uint256" }, + { internalType: "address", name: "_currency", type: "address" }, + { internalType: "uint256", name: "_pricePerToken", type: "uint256" }, + { + components: [ + { internalType: "bytes32[]", name: "proof", type: "bytes32[]" }, + { + internalType: "uint256", + name: "quantityLimitPerWallet", + type: "uint256", + }, + { + internalType: "uint256", + name: "pricePerToken", + type: "uint256", + }, + { internalType: "address", name: "currency", type: "address" }, + ], + internalType: "struct IDrop.AllowlistProof", + name: "_allowlistProof", + type: "tuple", + }, + { internalType: "bytes", name: "_data", type: "bytes" }, + ], + name: "claim", + outputs: [], + stateMutability: "payable", + type: "function", + }, + { + inputs: [], + name: "claimCondition", + outputs: [ + { internalType: "uint256", name: "currentStartId", type: "uint256" }, + { internalType: "uint256", name: "count", type: "uint256" }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "contractType", + outputs: [{ internalType: "bytes32", name: "", type: "bytes32" }], + stateMutability: "pure", + type: "function", + }, + { + inputs: [], + name: "contractURI", + outputs: [{ internalType: "string", name: "", type: "string" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "contractVersion", + outputs: [{ internalType: "uint8", name: "", type: "uint8" }], + stateMutability: "pure", + type: "function", + }, + { + inputs: [ + { internalType: "bytes", name: "data", type: "bytes" }, + { internalType: "bytes", name: "key", type: "bytes" }, + ], + name: "encryptDecrypt", + outputs: [{ internalType: "bytes", name: "result", type: "bytes" }], + stateMutability: "pure", + type: "function", + }, + { + inputs: [{ internalType: "uint256", name: "", type: "uint256" }], + name: "encryptedData", + outputs: [{ internalType: "bytes", name: "", type: "bytes" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "getActiveClaimConditionId", + outputs: [{ internalType: "uint256", name: "", type: "uint256" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [{ internalType: "uint256", name: "tokenId", type: "uint256" }], + name: "getApproved", + outputs: [{ internalType: "address", name: "", type: "address" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "getBaseURICount", + outputs: [{ internalType: "uint256", name: "", type: "uint256" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [{ internalType: "uint256", name: "_index", type: "uint256" }], + name: "getBatchIdAtIndex", + outputs: [{ internalType: "uint256", name: "", type: "uint256" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "uint256", name: "_conditionId", type: "uint256" }, + ], + name: "getClaimConditionById", + outputs: [ + { + components: [ + { + internalType: "uint256", + name: "startTimestamp", + type: "uint256", + }, + { + internalType: "uint256", + name: "maxClaimableSupply", + type: "uint256", + }, + { + internalType: "uint256", + name: "supplyClaimed", + type: "uint256", + }, + { + internalType: "uint256", + name: "quantityLimitPerWallet", + type: "uint256", + }, + { internalType: "bytes32", name: "merkleRoot", type: "bytes32" }, + { + internalType: "uint256", + name: "pricePerToken", + type: "uint256", + }, + { internalType: "address", name: "currency", type: "address" }, + { internalType: "string", name: "metadata", type: "string" }, + ], + internalType: "struct IClaimCondition.ClaimCondition", + name: "condition", + type: "tuple", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "getDefaultRoyaltyInfo", + outputs: [ + { internalType: "address", name: "", type: "address" }, + { internalType: "uint16", name: "", type: "uint16" }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "getPlatformFeeInfo", + outputs: [ + { internalType: "address", name: "", type: "address" }, + { internalType: "uint16", name: "", type: "uint16" }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "uint256", name: "_batchId", type: "uint256" }, + { internalType: "bytes", name: "_key", type: "bytes" }, + ], + name: "getRevealURI", + outputs: [ + { internalType: "string", name: "revealedURI", type: "string" }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [{ internalType: "bytes32", name: "role", type: "bytes32" }], + name: "getRoleAdmin", + outputs: [{ internalType: "bytes32", name: "", type: "bytes32" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "bytes32", name: "role", type: "bytes32" }, + { internalType: "uint256", name: "index", type: "uint256" }, + ], + name: "getRoleMember", + outputs: [{ internalType: "address", name: "member", type: "address" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [{ internalType: "bytes32", name: "role", type: "bytes32" }], + name: "getRoleMemberCount", + outputs: [{ internalType: "uint256", name: "count", type: "uint256" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "uint256", name: "_tokenId", type: "uint256" }, + ], + name: "getRoyaltyInfoForToken", + outputs: [ + { internalType: "address", name: "", type: "address" }, + { internalType: "uint16", name: "", type: "uint16" }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "uint256", name: "_conditionId", type: "uint256" }, + { internalType: "address", name: "_claimer", type: "address" }, + ], + name: "getSupplyClaimedByWallet", + outputs: [ + { + internalType: "uint256", + name: "supplyClaimedByWallet", + type: "uint256", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "bytes32", name: "role", type: "bytes32" }, + { internalType: "address", name: "account", type: "address" }, + ], + name: "grantRole", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "bytes32", name: "role", type: "bytes32" }, + { internalType: "address", name: "account", type: "address" }, + ], + name: "hasRole", + outputs: [{ internalType: "bool", name: "", type: "bool" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "bytes32", name: "role", type: "bytes32" }, + { internalType: "address", name: "account", type: "address" }, + ], + name: "hasRoleWithSwitch", + outputs: [{ internalType: "bool", name: "", type: "bool" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "_defaultAdmin", type: "address" }, + { internalType: "string", name: "_name", type: "string" }, + { internalType: "string", name: "_symbol", type: "string" }, + { internalType: "string", name: "_contractURI", type: "string" }, + { + internalType: "address[]", + name: "_trustedForwarders", + type: "address[]", + }, + { internalType: "address", name: "_saleRecipient", type: "address" }, + { + internalType: "address", + name: "_royaltyRecipient", + type: "address", + }, + { internalType: "uint128", name: "_royaltyBps", type: "uint128" }, + { internalType: "uint128", name: "_platformFeeBps", type: "uint128" }, + { + internalType: "address", + name: "_platformFeeRecipient", + type: "address", + }, + ], + name: "initialize", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "owner", type: "address" }, + { internalType: "address", name: "operator", type: "address" }, + ], + name: "isApprovedForAll", + outputs: [{ internalType: "bool", name: "", type: "bool" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "uint256", name: "_batchId", type: "uint256" }, + ], + name: "isEncryptedBatch", + outputs: [{ internalType: "bool", name: "", type: "bool" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "forwarder", type: "address" }, + ], + name: "isTrustedForwarder", + outputs: [{ internalType: "bool", name: "", type: "bool" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "uint256", name: "_amount", type: "uint256" }, + { internalType: "string", name: "_baseURIForTokens", type: "string" }, + { internalType: "bytes", name: "_data", type: "bytes" }, + ], + name: "lazyMint", + outputs: [ + { internalType: "uint256", name: "batchId", type: "uint256" }, + ], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [], + name: "maxTotalSupply", + outputs: [{ internalType: "uint256", name: "", type: "uint256" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [{ internalType: "bytes[]", name: "data", type: "bytes[]" }], + name: "multicall", + outputs: [ + { internalType: "bytes[]", name: "results", type: "bytes[]" }, + ], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [], + name: "name", + outputs: [{ internalType: "string", name: "", type: "string" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "nextTokenIdToClaim", + outputs: [{ internalType: "uint256", name: "", type: "uint256" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "nextTokenIdToMint", + outputs: [{ internalType: "uint256", name: "", type: "uint256" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "operatorRestriction", + outputs: [{ internalType: "bool", name: "", type: "bool" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "owner", + outputs: [{ internalType: "address", name: "", type: "address" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [{ internalType: "uint256", name: "tokenId", type: "uint256" }], + name: "ownerOf", + outputs: [{ internalType: "address", name: "", type: "address" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "primarySaleRecipient", + outputs: [{ internalType: "address", name: "", type: "address" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "bytes32", name: "role", type: "bytes32" }, + { internalType: "address", name: "account", type: "address" }, + ], + name: "renounceRole", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "uint256", name: "_index", type: "uint256" }, + { internalType: "bytes", name: "_key", type: "bytes" }, + ], + name: "reveal", + outputs: [ + { internalType: "string", name: "revealedURI", type: "string" }, + ], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "bytes32", name: "role", type: "bytes32" }, + { internalType: "address", name: "account", type: "address" }, + ], + name: "revokeRole", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "uint256", name: "tokenId", type: "uint256" }, + { internalType: "uint256", name: "salePrice", type: "uint256" }, + ], + name: "royaltyInfo", + outputs: [ + { internalType: "address", name: "receiver", type: "address" }, + { internalType: "uint256", name: "royaltyAmount", type: "uint256" }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "from", type: "address" }, + { internalType: "address", name: "to", type: "address" }, + { internalType: "uint256", name: "tokenId", type: "uint256" }, + ], + name: "safeTransferFrom", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "from", type: "address" }, + { internalType: "address", name: "to", type: "address" }, + { internalType: "uint256", name: "tokenId", type: "uint256" }, + { internalType: "bytes", name: "data", type: "bytes" }, + ], + name: "safeTransferFrom", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "operator", type: "address" }, + { internalType: "bool", name: "approved", type: "bool" }, + ], + name: "setApprovalForAll", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + components: [ + { + internalType: "uint256", + name: "startTimestamp", + type: "uint256", + }, + { + internalType: "uint256", + name: "maxClaimableSupply", + type: "uint256", + }, + { + internalType: "uint256", + name: "supplyClaimed", + type: "uint256", + }, + { + internalType: "uint256", + name: "quantityLimitPerWallet", + type: "uint256", + }, + { internalType: "bytes32", name: "merkleRoot", type: "bytes32" }, + { + internalType: "uint256", + name: "pricePerToken", + type: "uint256", + }, + { internalType: "address", name: "currency", type: "address" }, + { internalType: "string", name: "metadata", type: "string" }, + ], + internalType: "struct IClaimCondition.ClaimCondition[]", + name: "_conditions", + type: "tuple[]", + }, + { + internalType: "bool", + name: "_resetClaimEligibility", + type: "bool", + }, + ], + name: "setClaimConditions", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [{ internalType: "string", name: "_uri", type: "string" }], + name: "setContractURI", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "address", + name: "_royaltyRecipient", + type: "address", + }, + { internalType: "uint256", name: "_royaltyBps", type: "uint256" }, + ], + name: "setDefaultRoyaltyInfo", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "uint256", name: "_maxTotalSupply", type: "uint256" }, + ], + name: "setMaxTotalSupply", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [{ internalType: "bool", name: "_restriction", type: "bool" }], + name: "setOperatorRestriction", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "_newOwner", type: "address" }, + ], + name: "setOwner", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "address", + name: "_platformFeeRecipient", + type: "address", + }, + { internalType: "uint256", name: "_platformFeeBps", type: "uint256" }, + ], + name: "setPlatformFeeInfo", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "_saleRecipient", type: "address" }, + ], + name: "setPrimarySaleRecipient", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "uint256", name: "_tokenId", type: "uint256" }, + { internalType: "address", name: "_recipient", type: "address" }, + { internalType: "uint256", name: "_bps", type: "uint256" }, + ], + name: "setRoyaltyInfoForToken", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "bytes4", name: "interfaceId", type: "bytes4" }, + ], + name: "supportsInterface", + outputs: [{ internalType: "bool", name: "", type: "bool" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "symbol", + outputs: [{ internalType: "string", name: "", type: "string" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "uint256", name: "_tokenId", type: "uint256" }, + ], + name: "tokenURI", + outputs: [{ internalType: "string", name: "", type: "string" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "totalMinted", + outputs: [{ internalType: "uint256", name: "", type: "uint256" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "totalSupply", + outputs: [{ internalType: "uint256", name: "", type: "uint256" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "from", type: "address" }, + { internalType: "address", name: "to", type: "address" }, + { internalType: "uint256", name: "tokenId", type: "uint256" }, + ], + name: "transferFrom", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "uint256", name: "_conditionId", type: "uint256" }, + { internalType: "address", name: "_claimer", type: "address" }, + { internalType: "uint256", name: "_quantity", type: "uint256" }, + { internalType: "address", name: "_currency", type: "address" }, + { internalType: "uint256", name: "_pricePerToken", type: "uint256" }, + { + components: [ + { internalType: "bytes32[]", name: "proof", type: "bytes32[]" }, + { + internalType: "uint256", + name: "quantityLimitPerWallet", + type: "uint256", + }, + { + internalType: "uint256", + name: "pricePerToken", + type: "uint256", + }, + { internalType: "address", name: "currency", type: "address" }, + ], + internalType: "struct IDrop.AllowlistProof", + name: "_allowlistProof", + type: "tuple", + }, + ], + name: "verifyClaim", + outputs: [{ internalType: "bool", name: "isOverride", type: "bool" }], + stateMutability: "view", + type: "function", + }, + ]; + }); + var qz = N((Von, far) => { + far.exports = [ + { inputs: [], stateMutability: "nonpayable", type: "constructor" }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "address", + name: "owner", + type: "address", + }, + { + indexed: !0, + internalType: "address", + name: "approved", + type: "address", + }, + { + indexed: !0, + internalType: "uint256", + name: "tokenId", + type: "uint256", + }, + ], + name: "Approval", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "address", + name: "owner", + type: "address", + }, + { + indexed: !0, + internalType: "address", + name: "operator", + type: "address", + }, + { indexed: !1, internalType: "bool", name: "approved", type: "bool" }, + ], + name: "ApprovalForAll", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + components: [ + { + internalType: "uint256", + name: "startTimestamp", + type: "uint256", + }, + { + internalType: "uint256", + name: "maxClaimableSupply", + type: "uint256", + }, + { + internalType: "uint256", + name: "supplyClaimed", + type: "uint256", + }, + { + internalType: "uint256", + name: "quantityLimitPerTransaction", + type: "uint256", + }, + { + internalType: "uint256", + name: "waitTimeInSecondsBetweenClaims", + type: "uint256", + }, + { internalType: "bytes32", name: "merkleRoot", type: "bytes32" }, + { + internalType: "uint256", + name: "pricePerToken", + type: "uint256", + }, + { internalType: "address", name: "currency", type: "address" }, + ], + indexed: !1, + internalType: "struct IDropClaimCondition_V2.ClaimCondition[]", + name: "claimConditions", + type: "tuple[]", + }, + ], + name: "ClaimConditionsUpdated", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "address", + name: "newRoyaltyRecipient", + type: "address", + }, + { + indexed: !1, + internalType: "uint256", + name: "newRoyaltyBps", + type: "uint256", + }, + ], + name: "DefaultRoyalty", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !1, + internalType: "uint8", + name: "version", + type: "uint8", + }, + ], + name: "Initialized", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !1, + internalType: "uint256", + name: "maxTotalSupply", + type: "uint256", + }, + ], + name: "MaxTotalSupplyUpdated", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !1, + internalType: "uint256", + name: "count", + type: "uint256", + }, + ], + name: "MaxWalletClaimCountUpdated", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !1, + internalType: "uint256", + name: "endTokenId", + type: "uint256", + }, + { + indexed: !1, + internalType: "string", + name: "revealedURI", + type: "string", + }, + ], + name: "NFTRevealed", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "address", + name: "prevOwner", + type: "address", + }, + { + indexed: !0, + internalType: "address", + name: "newOwner", + type: "address", + }, + ], + name: "OwnerUpdated", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "address", + name: "platformFeeRecipient", + type: "address", + }, + { + indexed: !1, + internalType: "uint256", + name: "platformFeeBps", + type: "uint256", + }, + ], + name: "PlatformFeeInfoUpdated", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "address", + name: "recipient", + type: "address", + }, + ], + name: "PrimarySaleRecipientUpdated", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "bytes32", + name: "role", + type: "bytes32", + }, + { + indexed: !0, + internalType: "bytes32", + name: "previousAdminRole", + type: "bytes32", + }, + { + indexed: !0, + internalType: "bytes32", + name: "newAdminRole", + type: "bytes32", + }, + ], + name: "RoleAdminChanged", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "bytes32", + name: "role", + type: "bytes32", + }, + { + indexed: !0, + internalType: "address", + name: "account", + type: "address", + }, + { + indexed: !0, + internalType: "address", + name: "sender", + type: "address", + }, + ], + name: "RoleGranted", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "bytes32", + name: "role", + type: "bytes32", + }, + { + indexed: !0, + internalType: "address", + name: "account", + type: "address", + }, + { + indexed: !0, + internalType: "address", + name: "sender", + type: "address", + }, + ], + name: "RoleRevoked", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "uint256", + name: "tokenId", + type: "uint256", + }, + { + indexed: !0, + internalType: "address", + name: "royaltyRecipient", + type: "address", + }, + { + indexed: !1, + internalType: "uint256", + name: "royaltyBps", + type: "uint256", + }, + ], + name: "RoyaltyForToken", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "uint256", + name: "claimConditionIndex", + type: "uint256", + }, + { + indexed: !0, + internalType: "address", + name: "claimer", + type: "address", + }, + { + indexed: !0, + internalType: "address", + name: "receiver", + type: "address", + }, + { + indexed: !1, + internalType: "uint256", + name: "startTokenId", + type: "uint256", + }, + { + indexed: !1, + internalType: "uint256", + name: "quantityClaimed", + type: "uint256", + }, + ], + name: "TokensClaimed", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !1, + internalType: "uint256", + name: "startTokenId", + type: "uint256", + }, + { + indexed: !1, + internalType: "uint256", + name: "endTokenId", + type: "uint256", + }, + { + indexed: !1, + internalType: "string", + name: "baseURI", + type: "string", + }, + { + indexed: !1, + internalType: "bytes", + name: "encryptedBaseURI", + type: "bytes", + }, + ], + name: "TokensLazyMinted", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "address", + name: "from", + type: "address", + }, + { indexed: !0, internalType: "address", name: "to", type: "address" }, + { + indexed: !0, + internalType: "uint256", + name: "tokenId", + type: "uint256", + }, + ], + name: "Transfer", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "address", + name: "wallet", + type: "address", + }, + { + indexed: !1, + internalType: "uint256", + name: "count", + type: "uint256", + }, + ], + name: "WalletClaimCountUpdated", + type: "event", + }, + { + inputs: [], + name: "DEFAULT_ADMIN_ROLE", + outputs: [{ internalType: "bytes32", name: "", type: "bytes32" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "to", type: "address" }, + { internalType: "uint256", name: "tokenId", type: "uint256" }, + ], + name: "approve", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [{ internalType: "address", name: "owner", type: "address" }], + name: "balanceOf", + outputs: [{ internalType: "uint256", name: "", type: "uint256" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [{ internalType: "uint256", name: "", type: "uint256" }], + name: "baseURIIndices", + outputs: [{ internalType: "uint256", name: "", type: "uint256" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [{ internalType: "uint256", name: "tokenId", type: "uint256" }], + name: "burn", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "_receiver", type: "address" }, + { internalType: "uint256", name: "_quantity", type: "uint256" }, + { internalType: "address", name: "_currency", type: "address" }, + { internalType: "uint256", name: "_pricePerToken", type: "uint256" }, + { internalType: "bytes32[]", name: "_proofs", type: "bytes32[]" }, + { + internalType: "uint256", + name: "_proofMaxQuantityPerTransaction", + type: "uint256", + }, + ], + name: "claim", + outputs: [], + stateMutability: "payable", + type: "function", + }, + { + inputs: [], + name: "claimCondition", + outputs: [ + { internalType: "uint256", name: "currentStartId", type: "uint256" }, + { internalType: "uint256", name: "count", type: "uint256" }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "contractType", + outputs: [{ internalType: "bytes32", name: "", type: "bytes32" }], + stateMutability: "pure", + type: "function", + }, + { + inputs: [], + name: "contractURI", + outputs: [{ internalType: "string", name: "", type: "string" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "contractVersion", + outputs: [{ internalType: "uint8", name: "", type: "uint8" }], + stateMutability: "pure", + type: "function", + }, + { + inputs: [ + { internalType: "bytes", name: "data", type: "bytes" }, + { internalType: "bytes", name: "key", type: "bytes" }, + ], + name: "encryptDecrypt", + outputs: [{ internalType: "bytes", name: "result", type: "bytes" }], + stateMutability: "pure", + type: "function", + }, + { + inputs: [{ internalType: "uint256", name: "", type: "uint256" }], + name: "encryptedData", + outputs: [{ internalType: "bytes", name: "", type: "bytes" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "getActiveClaimConditionId", + outputs: [{ internalType: "uint256", name: "", type: "uint256" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [{ internalType: "uint256", name: "tokenId", type: "uint256" }], + name: "getApproved", + outputs: [{ internalType: "address", name: "", type: "address" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "getBaseURICount", + outputs: [{ internalType: "uint256", name: "", type: "uint256" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "uint256", name: "_conditionId", type: "uint256" }, + ], + name: "getClaimConditionById", + outputs: [ + { + components: [ + { + internalType: "uint256", + name: "startTimestamp", + type: "uint256", + }, + { + internalType: "uint256", + name: "maxClaimableSupply", + type: "uint256", + }, + { + internalType: "uint256", + name: "supplyClaimed", + type: "uint256", + }, + { + internalType: "uint256", + name: "quantityLimitPerTransaction", + type: "uint256", + }, + { + internalType: "uint256", + name: "waitTimeInSecondsBetweenClaims", + type: "uint256", + }, + { internalType: "bytes32", name: "merkleRoot", type: "bytes32" }, + { + internalType: "uint256", + name: "pricePerToken", + type: "uint256", + }, + { internalType: "address", name: "currency", type: "address" }, + ], + internalType: "struct IDropClaimCondition_V2.ClaimCondition", + name: "condition", + type: "tuple", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "uint256", name: "_conditionId", type: "uint256" }, + { internalType: "address", name: "_claimer", type: "address" }, + ], + name: "getClaimTimestamp", + outputs: [ + { + internalType: "uint256", + name: "lastClaimTimestamp", + type: "uint256", + }, + { + internalType: "uint256", + name: "nextValidClaimTimestamp", + type: "uint256", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "getDefaultRoyaltyInfo", + outputs: [ + { internalType: "address", name: "", type: "address" }, + { internalType: "uint16", name: "", type: "uint16" }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "getPlatformFeeInfo", + outputs: [ + { internalType: "address", name: "", type: "address" }, + { internalType: "uint16", name: "", type: "uint16" }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [{ internalType: "bytes32", name: "role", type: "bytes32" }], + name: "getRoleAdmin", + outputs: [{ internalType: "bytes32", name: "", type: "bytes32" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "bytes32", name: "role", type: "bytes32" }, + { internalType: "uint256", name: "index", type: "uint256" }, + ], + name: "getRoleMember", + outputs: [{ internalType: "address", name: "", type: "address" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [{ internalType: "bytes32", name: "role", type: "bytes32" }], + name: "getRoleMemberCount", + outputs: [{ internalType: "uint256", name: "", type: "uint256" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "uint256", name: "_tokenId", type: "uint256" }, + ], + name: "getRoyaltyInfoForToken", + outputs: [ + { internalType: "address", name: "", type: "address" }, + { internalType: "uint16", name: "", type: "uint16" }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "bytes32", name: "role", type: "bytes32" }, + { internalType: "address", name: "account", type: "address" }, + ], + name: "grantRole", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "bytes32", name: "role", type: "bytes32" }, + { internalType: "address", name: "account", type: "address" }, + ], + name: "hasRole", + outputs: [{ internalType: "bool", name: "", type: "bool" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "_defaultAdmin", type: "address" }, + { internalType: "string", name: "_name", type: "string" }, + { internalType: "string", name: "_symbol", type: "string" }, + { internalType: "string", name: "_contractURI", type: "string" }, + { + internalType: "address[]", + name: "_trustedForwarders", + type: "address[]", + }, + { internalType: "address", name: "_saleRecipient", type: "address" }, + { + internalType: "address", + name: "_royaltyRecipient", + type: "address", + }, + { internalType: "uint128", name: "_royaltyBps", type: "uint128" }, + { internalType: "uint128", name: "_platformFeeBps", type: "uint128" }, + { + internalType: "address", + name: "_platformFeeRecipient", + type: "address", + }, + ], + name: "initialize", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "owner", type: "address" }, + { internalType: "address", name: "operator", type: "address" }, + ], + name: "isApprovedForAll", + outputs: [{ internalType: "bool", name: "", type: "bool" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "forwarder", type: "address" }, + ], + name: "isTrustedForwarder", + outputs: [{ internalType: "bool", name: "", type: "bool" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "uint256", name: "_amount", type: "uint256" }, + { internalType: "string", name: "_baseURIForTokens", type: "string" }, + { internalType: "bytes", name: "_data", type: "bytes" }, + ], + name: "lazyMint", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [], + name: "maxTotalSupply", + outputs: [{ internalType: "uint256", name: "", type: "uint256" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "maxWalletClaimCount", + outputs: [{ internalType: "uint256", name: "", type: "uint256" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [{ internalType: "bytes[]", name: "data", type: "bytes[]" }], + name: "multicall", + outputs: [ + { internalType: "bytes[]", name: "results", type: "bytes[]" }, + ], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [], + name: "name", + outputs: [{ internalType: "string", name: "", type: "string" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "nextTokenIdToClaim", + outputs: [{ internalType: "uint256", name: "", type: "uint256" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "nextTokenIdToMint", + outputs: [{ internalType: "uint256", name: "", type: "uint256" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "owner", + outputs: [{ internalType: "address", name: "", type: "address" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [{ internalType: "uint256", name: "tokenId", type: "uint256" }], + name: "ownerOf", + outputs: [{ internalType: "address", name: "", type: "address" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "primarySaleRecipient", + outputs: [{ internalType: "address", name: "", type: "address" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "bytes32", name: "role", type: "bytes32" }, + { internalType: "address", name: "account", type: "address" }, + ], + name: "renounceRole", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "uint256", name: "index", type: "uint256" }, + { internalType: "bytes", name: "_key", type: "bytes" }, + ], + name: "reveal", + outputs: [ + { internalType: "string", name: "revealedURI", type: "string" }, + ], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "bytes32", name: "role", type: "bytes32" }, + { internalType: "address", name: "account", type: "address" }, + ], + name: "revokeRole", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "uint256", name: "tokenId", type: "uint256" }, + { internalType: "uint256", name: "salePrice", type: "uint256" }, + ], + name: "royaltyInfo", + outputs: [ + { internalType: "address", name: "receiver", type: "address" }, + { internalType: "uint256", name: "royaltyAmount", type: "uint256" }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "from", type: "address" }, + { internalType: "address", name: "to", type: "address" }, + { internalType: "uint256", name: "tokenId", type: "uint256" }, + ], + name: "safeTransferFrom", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "from", type: "address" }, + { internalType: "address", name: "to", type: "address" }, + { internalType: "uint256", name: "tokenId", type: "uint256" }, + { internalType: "bytes", name: "data", type: "bytes" }, + ], + name: "safeTransferFrom", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "operator", type: "address" }, + { internalType: "bool", name: "approved", type: "bool" }, + ], + name: "setApprovalForAll", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + components: [ + { + internalType: "uint256", + name: "startTimestamp", + type: "uint256", + }, + { + internalType: "uint256", + name: "maxClaimableSupply", + type: "uint256", + }, + { + internalType: "uint256", + name: "supplyClaimed", + type: "uint256", + }, + { + internalType: "uint256", + name: "quantityLimitPerTransaction", + type: "uint256", + }, + { + internalType: "uint256", + name: "waitTimeInSecondsBetweenClaims", + type: "uint256", + }, + { internalType: "bytes32", name: "merkleRoot", type: "bytes32" }, + { + internalType: "uint256", + name: "pricePerToken", + type: "uint256", + }, + { internalType: "address", name: "currency", type: "address" }, + ], + internalType: "struct IDropClaimCondition_V2.ClaimCondition[]", + name: "_phases", + type: "tuple[]", + }, + { + internalType: "bool", + name: "_resetClaimEligibility", + type: "bool", + }, + ], + name: "setClaimConditions", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [{ internalType: "string", name: "_uri", type: "string" }], + name: "setContractURI", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "address", + name: "_royaltyRecipient", + type: "address", + }, + { internalType: "uint256", name: "_royaltyBps", type: "uint256" }, + ], + name: "setDefaultRoyaltyInfo", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "uint256", name: "_maxTotalSupply", type: "uint256" }, + ], + name: "setMaxTotalSupply", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [{ internalType: "uint256", name: "_count", type: "uint256" }], + name: "setMaxWalletClaimCount", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "_newOwner", type: "address" }, + ], + name: "setOwner", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "address", + name: "_platformFeeRecipient", + type: "address", + }, + { internalType: "uint256", name: "_platformFeeBps", type: "uint256" }, + ], + name: "setPlatformFeeInfo", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "_saleRecipient", type: "address" }, + ], + name: "setPrimarySaleRecipient", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "uint256", name: "_tokenId", type: "uint256" }, + { internalType: "address", name: "_recipient", type: "address" }, + { internalType: "uint256", name: "_bps", type: "uint256" }, + ], + name: "setRoyaltyInfoForToken", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "_claimer", type: "address" }, + { internalType: "uint256", name: "_count", type: "uint256" }, + ], + name: "setWalletClaimCount", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "bytes4", name: "interfaceId", type: "bytes4" }, + ], + name: "supportsInterface", + outputs: [{ internalType: "bool", name: "", type: "bool" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "symbol", + outputs: [{ internalType: "string", name: "", type: "string" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [{ internalType: "uint256", name: "index", type: "uint256" }], + name: "tokenByIndex", + outputs: [{ internalType: "uint256", name: "", type: "uint256" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "owner", type: "address" }, + { internalType: "uint256", name: "index", type: "uint256" }, + ], + name: "tokenOfOwnerByIndex", + outputs: [{ internalType: "uint256", name: "", type: "uint256" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "uint256", name: "_tokenId", type: "uint256" }, + ], + name: "tokenURI", + outputs: [{ internalType: "string", name: "", type: "string" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "totalSupply", + outputs: [{ internalType: "uint256", name: "", type: "uint256" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "from", type: "address" }, + { internalType: "address", name: "to", type: "address" }, + { internalType: "uint256", name: "tokenId", type: "uint256" }, + ], + name: "transferFrom", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "uint256", name: "_conditionId", type: "uint256" }, + { internalType: "address", name: "_claimer", type: "address" }, + { internalType: "uint256", name: "_quantity", type: "uint256" }, + { internalType: "address", name: "_currency", type: "address" }, + { internalType: "uint256", name: "_pricePerToken", type: "uint256" }, + { + internalType: "bool", + name: "verifyMaxQuantityPerTransaction", + type: "bool", + }, + ], + name: "verifyClaim", + outputs: [], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "uint256", name: "_conditionId", type: "uint256" }, + { internalType: "address", name: "_claimer", type: "address" }, + { internalType: "uint256", name: "_quantity", type: "uint256" }, + { internalType: "bytes32[]", name: "_proofs", type: "bytes32[]" }, + { + internalType: "uint256", + name: "_proofMaxQuantityPerTransaction", + type: "uint256", + }, + ], + name: "verifyClaimMerkleProof", + outputs: [ + { internalType: "bool", name: "validMerkleProof", type: "bool" }, + { + internalType: "uint256", + name: "merkleProofIndex", + type: "uint256", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [{ internalType: "address", name: "", type: "address" }], + name: "walletClaimCount", + outputs: [{ internalType: "uint256", name: "", type: "uint256" }], + stateMutability: "view", + type: "function", + }, + ]; + }); + var Fz = N((Gon, mar) => { + mar.exports = [ + { + inputs: [ + { internalType: "string", name: "name_", type: "string" }, + { internalType: "string", name: "symbol_", type: "string" }, + ], + stateMutability: "nonpayable", + type: "constructor", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "address", + name: "owner", + type: "address", + }, + { + indexed: !0, + internalType: "address", + name: "spender", + type: "address", + }, + { + indexed: !1, + internalType: "uint256", + name: "value", + type: "uint256", + }, + ], + name: "Approval", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "address", + name: "from", + type: "address", + }, + { indexed: !0, internalType: "address", name: "to", type: "address" }, + { + indexed: !1, + internalType: "uint256", + name: "value", + type: "uint256", + }, + ], + name: "Transfer", + type: "event", + }, + { + inputs: [ + { internalType: "address", name: "owner", type: "address" }, + { internalType: "address", name: "spender", type: "address" }, + ], + name: "allowance", + outputs: [{ internalType: "uint256", name: "", type: "uint256" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "spender", type: "address" }, + { internalType: "uint256", name: "amount", type: "uint256" }, + ], + name: "approve", + outputs: [{ internalType: "bool", name: "", type: "bool" }], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [{ internalType: "address", name: "account", type: "address" }], + name: "balanceOf", + outputs: [{ internalType: "uint256", name: "", type: "uint256" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "decimals", + outputs: [{ internalType: "uint8", name: "", type: "uint8" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "spender", type: "address" }, + { internalType: "uint256", name: "subtractedValue", type: "uint256" }, + ], + name: "decreaseAllowance", + outputs: [{ internalType: "bool", name: "", type: "bool" }], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "spender", type: "address" }, + { internalType: "uint256", name: "addedValue", type: "uint256" }, + ], + name: "increaseAllowance", + outputs: [{ internalType: "bool", name: "", type: "bool" }], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [], + name: "name", + outputs: [{ internalType: "string", name: "", type: "string" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "symbol", + outputs: [{ internalType: "string", name: "", type: "string" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "totalSupply", + outputs: [{ internalType: "uint256", name: "", type: "uint256" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "to", type: "address" }, + { internalType: "uint256", name: "amount", type: "uint256" }, + ], + name: "transfer", + outputs: [{ internalType: "bool", name: "", type: "bool" }], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "from", type: "address" }, + { internalType: "address", name: "to", type: "address" }, + { internalType: "uint256", name: "amount", type: "uint256" }, + ], + name: "transferFrom", + outputs: [{ internalType: "bool", name: "", type: "bool" }], + stateMutability: "nonpayable", + type: "function", + }, + ]; + }); + var LFe = N((OFe) => { + "use strict"; + _(); + x(); + var Zi = Oo(), + Yr = kc(), + yar = Fz(), + gar = ba(), + zd = wt(), + kf = an(); + Gr(); + Bn(); + Nn(); + On(); + Ln(); + Dn(); + qn(); + Fn(); + Wn(); + Un(); + Hn(); + zn(); + jn(); + Kn(); + Vn(); + Gn(); + Yn(); + $n(); + Jn(); + Zn(); + Qn(); + Xn(); + ea(); + ta(); + ra(); + na(); + aa(); + ia(); + sa(); + oa(); + ca(); + ua(); + la(); + da(); + pa(); + ha(); + fa(); + ma(); + ya(); + ga(); + va(); + wa(); + _a(); + xa(); + Ta(); + Ea(); + Ca(); + vn(); + Ia(); + Aa(); + ka(); + An(); + Sa(); + Ma(); + Pa(); + Ra(); + Ba(); + Na(); + Oa(); + La(); + Da(); + qa(); + Fa(); + Wa(); + Ua(); + Ha(); + za(); + function MFe(r) { + return r && r.__esModule ? r : { default: r }; + } + var bar = MFe(yar), + war = MFe(gar), + Uz = kf.z.object({ contractAddress: Yr.AddressSchema }), + _ar = Uz.extend({ quantity: Zi.AmountSchema }), + xar = Uz.extend({ tokenId: Yr.BigNumberishSchema }), + Tar = Uz.extend({ + tokenId: Yr.BigNumberishSchema, + quantity: Yr.BigNumberishSchema, + }), + PFe = _ar + .omit({ quantity: !0 }) + .extend({ quantityPerReward: Zi.AmountSchema }), + RFe = xar, + BFe = Tar.omit({ quantity: !0 }).extend({ + quantityPerReward: Yr.BigNumberishSchema, + }), + Ear = PFe.extend({ totalRewards: Yr.BigNumberishSchema.default("1") }), + Car = RFe, + Iar = BFe.extend({ totalRewards: Yr.BigNumberishSchema.default("1") }); + kf.z.object({ + erc20Rewards: kf.z.array(PFe).default([]), + erc721Rewards: kf.z.array(RFe).default([]), + erc1155Rewards: kf.z.array(BFe).default([]), + }); + var NFe = kf.z.object({ + erc20Rewards: kf.z.array(Ear).default([]), + erc721Rewards: kf.z.array(Car).default([]), + erc1155Rewards: kf.z.array(Iar).default([]), + }), + Aar = NFe.extend({ + packMetadata: Zi.NFTInputOrUriSchema, + rewardsPerPack: Yr.BigNumberishSchema.default("1"), + openStartTime: Yr.RawDateSchema.default(new Date()), + }), + Wz = class { + constructor(e, t, n, a, i) { + let s = + arguments.length > 5 && arguments[5] !== void 0 + ? arguments[5] + : new Yr.ContractWrapper(e, t, war.default, a); + Zi._defineProperty(this, "featureName", Yr.FEATURE_PACK_VRF.name), + Zi._defineProperty(this, "contractWrapper", void 0), + Zi._defineProperty(this, "storage", void 0), + Zi._defineProperty(this, "chainId", void 0), + Zi._defineProperty(this, "events", void 0), + (this.contractWrapper = s), + (this.storage = n), + (this.chainId = i), + (this.events = new Yr.ContractEvents(this.contractWrapper)); + } + onNetworkUpdated(e) { + this.contractWrapper.updateSignerOrProvider(e); + } + getAddress() { + return this.contractWrapper.readContract.address; + } + async open(e) { + let t = + arguments.length > 1 && arguments[1] !== void 0 + ? arguments[1] + : 1, + n = await this.contractWrapper.sendTransaction("openPack", [e, t], { + gasLimit: 5e5, + }), + a = zd.BigNumber.from(0); + try { + a = this.contractWrapper.parseLogs("PackOpenRequested", n?.logs)[0] + .args.requestId; + } catch {} + return { receipt: n, id: a }; + } + async claimRewards() { + let e = await this.contractWrapper.sendTransaction( + "claimRewards", + [], + { gasLimit: 5e5 } + ), + t = this.contractWrapper.parseLogs("PackOpened", e?.logs); + if (t.length === 0) throw new Error("PackOpened event not found"); + let n = t[0].args.rewardUnitsDistributed; + return this.parseRewards(n); + } + async parseRewards(e) { + let t = [], + n = [], + a = []; + for (let i of e) + switch (i.tokenType) { + case 0: { + let s = await Yr.fetchCurrencyMetadata( + this.contractWrapper.getProvider(), + i.assetContract + ); + t.push({ + contractAddress: i.assetContract, + quantityPerReward: zd.ethers.utils + .formatUnits(i.totalAmount, s.decimals) + .toString(), + }); + break; + } + case 1: { + n.push({ + contractAddress: i.assetContract, + tokenId: i.tokenId.toString(), + }); + break; + } + case 2: { + a.push({ + contractAddress: i.assetContract, + tokenId: i.tokenId.toString(), + quantityPerReward: i.totalAmount.toString(), + }); + break; + } + } + return { erc20Rewards: t, erc721Rewards: n, erc1155Rewards: a }; + } + async addPackOpenEventListener(e) { + return this.events.addEventListener("PackOpened", async (t) => { + e( + t.data.packId.toString(), + t.data.opener, + await this.parseRewards(t.data.rewardUnitsDistributed) + ); + }); + } + async canClaimRewards(e) { + let t = e || (await this.contractWrapper.getSignerAddress()); + return await this.contractWrapper.readContract.canClaimRewards(t); + } + async openAndClaim(e) { + let t = + arguments.length > 1 && arguments[1] !== void 0 + ? arguments[1] + : 1, + n = + arguments.length > 2 && arguments[2] !== void 0 + ? arguments[2] + : 5e5, + a = await this.contractWrapper.sendTransaction( + "openPackAndClaimRewards", + [e, t, n], + { gasLimit: zd.BigNumber.from(5e5) } + ), + i = zd.BigNumber.from(0); + try { + i = this.contractWrapper.parseLogs("PackOpenRequested", a?.logs)[0] + .args.requestId; + } catch {} + return { receipt: a, id: i }; + } + async getLinkBalance() { + return this.getLinkContract().balanceOf( + this.contractWrapper.readContract.address + ); + } + async transferLink(e) { + await this.getLinkContract().transfer( + this.contractWrapper.readContract.address, + e + ); + } + getLinkContract() { + let e = Yr.LINK_TOKEN_ADDRESS[this.chainId]; + if (!e) + throw new Error( + `No LINK token address found for chainId ${this.chainId}` + ); + let t = new Yr.ContractWrapper( + this.contractWrapper.getSignerOrProvider(), + e, + bar.default, + this.contractWrapper.options + ); + return new Yr.Erc20(t, this.storage, this.chainId); + } + }, + gw = class extends Yr.StandardErc1155 { + get vrf() { + return Yr.assertEnabled(this._vrf, Yr.FEATURE_PACK_VRF); + } + constructor(e, t, n) { + let a = + arguments.length > 3 && arguments[3] !== void 0 + ? arguments[3] + : {}, + i = arguments.length > 4 ? arguments[4] : void 0, + s = arguments.length > 5 ? arguments[5] : void 0, + c = + arguments.length > 6 && arguments[6] !== void 0 + ? arguments[6] + : new Yr.ContractWrapper( + e, + t, + i, + a.gasless && "openzeppelin" in a.gasless + ? { + ...a, + gasless: { + openzeppelin: { + ...a.gasless.openzeppelin, + useEOAForwarder: !0, + }, + }, + } + : a + ); + super(c, n, s), + Zi._defineProperty(this, "abi", void 0), + Zi._defineProperty(this, "metadata", void 0), + Zi._defineProperty(this, "roles", void 0), + Zi._defineProperty(this, "encoder", void 0), + Zi._defineProperty(this, "events", void 0), + Zi._defineProperty(this, "estimator", void 0), + Zi._defineProperty(this, "royalties", void 0), + Zi._defineProperty(this, "interceptor", void 0), + Zi._defineProperty(this, "erc1155", void 0), + Zi._defineProperty(this, "owner", void 0), + Zi._defineProperty(this, "_vrf", void 0), + (this.abi = i), + (this.erc1155 = new Yr.Erc1155( + this.contractWrapper, + this.storage, + s + )), + (this.metadata = new Yr.ContractMetadata( + this.contractWrapper, + Yr.PackContractSchema, + this.storage + )), + (this.roles = new Yr.ContractRoles( + this.contractWrapper, + gw.contractRoles + )), + (this.royalties = new Yr.ContractRoyalty( + this.contractWrapper, + this.metadata + )), + (this.encoder = new Yr.ContractEncoder(this.contractWrapper)), + (this.estimator = new Yr.GasCostEstimator(this.contractWrapper)), + (this.events = new Yr.ContractEvents(this.contractWrapper)), + (this.interceptor = new Yr.ContractInterceptor( + this.contractWrapper + )), + (this.owner = new Yr.ContractOwner(this.contractWrapper)), + (this._vrf = this.detectVrf()); + } + onNetworkUpdated(e) { + this.contractWrapper.updateSignerOrProvider(e), + this._vrf?.onNetworkUpdated(e); + } + getAddress() { + return this.contractWrapper.readContract.address; + } + async get(e) { + return this.erc1155.get(e); + } + async getAll(e) { + return this.erc1155.getAll(e); + } + async getOwned(e) { + return this.erc1155.getOwned(e); + } + async getTotalCount() { + return this.erc1155.totalCount(); + } + async isTransferRestricted() { + return !(await this.contractWrapper.readContract.hasRole( + Yr.getRoleHash("transfer"), + zd.ethers.constants.AddressZero + )); + } + async getPackContents(e) { + let { contents: t, perUnitAmounts: n } = + await this.contractWrapper.readContract.getPackContents(e), + a = [], + i = [], + s = []; + for (let c = 0; c < t.length; c++) { + let l = t[c], + d = n[c]; + switch (l.tokenType) { + case 0: { + let m = await Yr.fetchCurrencyMetadata( + this.contractWrapper.getProvider(), + l.assetContract + ), + w = zd.ethers.utils.formatUnits(l.totalAmount, m.decimals); + a.push({ + contractAddress: l.assetContract, + quantityPerReward: d.toString(), + totalRewards: zd.BigNumber.from(w).div(d).toString(), + }); + break; + } + case 1: { + i.push({ + contractAddress: l.assetContract, + tokenId: l.tokenId.toString(), + }); + break; + } + case 2: { + s.push({ + contractAddress: l.assetContract, + tokenId: l.tokenId.toString(), + quantityPerReward: d.toString(), + totalRewards: zd.BigNumber.from(l.totalAmount) + .div(d) + .toString(), + }); + break; + } + } + } + return { erc20Rewards: a, erc721Rewards: i, erc1155Rewards: s }; + } + async create(e) { + let t = await this.contractWrapper.getSignerAddress(); + return this.createTo(t, e); + } + async addPackContents(e, t) { + let n = await this.contractWrapper.getSignerAddress(), + a = NFe.parse(t), + { contents: i, numOfRewardUnits: s } = await this.toPackContentArgs( + a + ), + c = await this.contractWrapper.sendTransaction("addPackContents", [ + e, + i, + s, + n, + ]), + l = this.contractWrapper.parseLogs("PackUpdated", c?.logs); + if (l.length === 0) throw new Error("PackUpdated event not found"); + let d = l[0].args.packId; + return { id: d, receipt: c, data: () => this.erc1155.get(d) }; + } + async createTo(e, t) { + let n = await Yr.uploadOrExtractURI(t.packMetadata, this.storage), + a = Aar.parse(t), + { erc20Rewards: i, erc721Rewards: s, erc1155Rewards: c } = a, + l = { erc20Rewards: i, erc721Rewards: s, erc1155Rewards: c }, + { contents: d, numOfRewardUnits: m } = await this.toPackContentArgs( + l + ), + w = await this.contractWrapper.sendTransaction("createPack", [ + d, + m, + n, + a.openStartTime, + a.rewardsPerPack, + e, + ]), + C = this.contractWrapper.parseLogs("PackCreated", w?.logs); + if (C.length === 0) throw new Error("PackCreated event not found"); + let I = C[0].args.packId; + return { id: I, receipt: w, data: () => this.erc1155.get(I) }; + } + async open(e) { + let t = + arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 1; + if (this._vrf) + throw new Error( + "This contract is using Chainlink VRF, use `contract.vrf.open()` or `contract.vrf.openAndClaim()` instead" + ); + let n = await this.contractWrapper.sendTransaction( + "openPack", + [e, t], + { gasLimit: 5e5 } + ), + a = this.contractWrapper.parseLogs("PackOpened", n?.logs); + if (a.length === 0) throw new Error("PackOpened event not found"); + let i = a[0].args.rewardUnitsDistributed, + s = [], + c = [], + l = []; + for (let d of i) + switch (d.tokenType) { + case 0: { + let m = await Yr.fetchCurrencyMetadata( + this.contractWrapper.getProvider(), + d.assetContract + ); + s.push({ + contractAddress: d.assetContract, + quantityPerReward: zd.ethers.utils + .formatUnits(d.totalAmount, m.decimals) + .toString(), + }); + break; + } + case 1: { + c.push({ + contractAddress: d.assetContract, + tokenId: d.tokenId.toString(), + }); + break; + } + case 2: { + l.push({ + contractAddress: d.assetContract, + tokenId: d.tokenId.toString(), + quantityPerReward: d.totalAmount.toString(), + }); + break; + } + } + return { erc20Rewards: s, erc721Rewards: c, erc1155Rewards: l }; + } + async toPackContentArgs(e) { + let t = [], + n = [], + { erc20Rewards: a, erc721Rewards: i, erc1155Rewards: s } = e, + c = this.contractWrapper.getProvider(), + l = await this.contractWrapper.getSignerAddress(); + for (let d of a) { + let w = ( + await Yr.normalizePriceValue( + c, + d.quantityPerReward, + d.contractAddress + ) + ).mul(d.totalRewards); + if ( + !(await Yr.hasERC20Allowance( + this.contractWrapper, + d.contractAddress, + w + )) + ) + throw new Error(`ERC20 token with contract address "${ + d.contractAddress + }" does not have enough allowance to transfer. You can set allowance to the multiwrap contract to transfer these tokens by running: -await sdk.getToken("${d.contractAddress}").setAllowance("${this.getAddress()}", ${w}); +await sdk.getToken("${ + d.contractAddress + }").setAllowance("${this.getAddress()}", ${w}); -`);n.push(d.totalRewards),t.push({assetContract:d.contractAddress,tokenType:0,totalAmount:w,tokenId:0})}for(let d of i){if(!await Yr.isTokenApprovedForTransfer(this.contractWrapper.getProvider(),this.getAddress(),d.contractAddress,d.tokenId,l))throw new Error(`ERC721 token "${d.tokenId}" with contract address "${d.contractAddress}" is not approved for transfer. +`); + n.push(d.totalRewards), + t.push({ + assetContract: d.contractAddress, + tokenType: 0, + totalAmount: w, + tokenId: 0, + }); + } + for (let d of i) { + if ( + !(await Yr.isTokenApprovedForTransfer( + this.contractWrapper.getProvider(), + this.getAddress(), + d.contractAddress, + d.tokenId, + l + )) + ) + throw new Error(`ERC721 token "${ + d.tokenId + }" with contract address "${ + d.contractAddress + }" is not approved for transfer. You can give approval the multiwrap contract to transfer this token by running: -await sdk.getNFTCollection("${d.contractAddress}").setApprovalForToken("${this.getAddress()}", ${d.tokenId}); +await sdk.getNFTCollection("${ + d.contractAddress + }").setApprovalForToken("${this.getAddress()}", ${d.tokenId}); -`);n.push("1"),t.push({assetContract:d.contractAddress,tokenType:1,totalAmount:1,tokenId:d.tokenId})}for(let d of s){if(!await Yr.isTokenApprovedForTransfer(this.contractWrapper.getProvider(),this.getAddress(),d.contractAddress,d.tokenId,l))throw new Error(`ERC1155 token "${d.tokenId}" with contract address "${d.contractAddress}" is not approved for transfer. +`); + n.push("1"), + t.push({ + assetContract: d.contractAddress, + tokenType: 1, + totalAmount: 1, + tokenId: d.tokenId, + }); + } + for (let d of s) { + if ( + !(await Yr.isTokenApprovedForTransfer( + this.contractWrapper.getProvider(), + this.getAddress(), + d.contractAddress, + d.tokenId, + l + )) + ) + throw new Error(`ERC1155 token "${ + d.tokenId + }" with contract address "${ + d.contractAddress + }" is not approved for transfer. You can give approval the multiwrap contract to transfer this token by running: -await sdk.getEdition("${d.contractAddress}").setApprovalForAll("${this.getAddress()}", true); +await sdk.getEdition("${ + d.contractAddress + }").setApprovalForAll("${this.getAddress()}", true); -`);n.push(d.totalRewards),t.push({assetContract:d.contractAddress,tokenType:2,totalAmount:dp.BigNumber.from(d.quantityPerReward).mul(dp.BigNumber.from(d.totalRewards)),tokenId:d.tokenId})}return{contents:t,numOfRewardUnits:n}}async call(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a{jir.exports=[{inputs:[{internalType:"address",name:"_nativeTokenWrapper",type:"address"},{internalType:"address",name:"_trustedForwarder",type:"address"}],stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!1,internalType:"bool",name:"approved",type:"bool"}],name:"ApprovalForAll",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"string",name:"prevURI",type:"string"},{indexed:!1,internalType:"string",name:"newURI",type:"string"}],name:"ContractURIUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"newRoyaltyRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"newRoyaltyBps",type:"uint256"}],name:"DefaultRoyalty",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint8",name:"version",type:"uint8"}],name:"Initialized",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"prevOwner",type:"address"},{indexed:!0,internalType:"address",name:"newOwner",type:"address"}],name:"OwnerUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"packId",type:"uint256"},{indexed:!1,internalType:"address",name:"recipient",type:"address"},{indexed:!1,internalType:"uint256",name:"totalPacksCreated",type:"uint256"}],name:"PackCreated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"packId",type:"uint256"},{indexed:!0,internalType:"address",name:"opener",type:"address"},{indexed:!1,internalType:"uint256",name:"numOfPacksOpened",type:"uint256"},{components:[{internalType:"address",name:"assetContract",type:"address"},{internalType:"enum ITokenBundle.TokenType",name:"tokenType",type:"uint8"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"totalAmount",type:"uint256"}],indexed:!1,internalType:"struct ITokenBundle.Token[]",name:"rewardUnitsDistributed",type:"tuple[]"}],name:"PackOpened",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"packId",type:"uint256"},{indexed:!1,internalType:"address",name:"recipient",type:"address"},{indexed:!1,internalType:"uint256",name:"totalPacksCreated",type:"uint256"}],name:"PackUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"previousAdminRole",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"newAdminRole",type:"bytes32"}],name:"RoleAdminChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleGranted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleRevoked",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!0,internalType:"address",name:"royaltyRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"royaltyBps",type:"uint256"}],name:"RoyaltyForToken",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256[]",name:"ids",type:"uint256[]"},{indexed:!1,internalType:"uint256[]",name:"values",type:"uint256[]"}],name:"TransferBatch",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256",name:"id",type:"uint256"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"}],name:"TransferSingle",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"string",name:"value",type:"string"},{indexed:!0,internalType:"uint256",name:"id",type:"uint256"}],name:"URI",type:"event"},{inputs:[],name:"DEFAULT_ADMIN_ROLE",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_packId",type:"uint256"},{components:[{internalType:"address",name:"assetContract",type:"address"},{internalType:"enum ITokenBundle.TokenType",name:"tokenType",type:"uint8"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"totalAmount",type:"uint256"}],internalType:"struct ITokenBundle.Token[]",name:"_contents",type:"tuple[]"},{internalType:"uint256[]",name:"_numOfRewardUnits",type:"uint256[]"},{internalType:"address",name:"_recipient",type:"address"}],name:"addPackContents",outputs:[{internalType:"uint256",name:"packTotalSupply",type:"uint256"},{internalType:"uint256",name:"newSupplyAdded",type:"uint256"}],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint256",name:"id",type:"uint256"}],name:"balanceOf",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address[]",name:"accounts",type:"address[]"},{internalType:"uint256[]",name:"ids",type:"uint256[]"}],name:"balanceOfBatch",outputs:[{internalType:"uint256[]",name:"",type:"uint256[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"}],name:"canUpdatePack",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"contractType",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"pure",type:"function"},{inputs:[],name:"contractURI",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"contractVersion",outputs:[{internalType:"uint8",name:"",type:"uint8"}],stateMutability:"pure",type:"function"},{inputs:[{components:[{internalType:"address",name:"assetContract",type:"address"},{internalType:"enum ITokenBundle.TokenType",name:"tokenType",type:"uint8"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"totalAmount",type:"uint256"}],internalType:"struct ITokenBundle.Token[]",name:"_contents",type:"tuple[]"},{internalType:"uint256[]",name:"_numOfRewardUnits",type:"uint256[]"},{internalType:"string",name:"_packUri",type:"string"},{internalType:"uint128",name:"_openStartTimestamp",type:"uint128"},{internalType:"uint128",name:"_amountDistributedPerOpen",type:"uint128"},{internalType:"address",name:"_recipient",type:"address"}],name:"createPack",outputs:[{internalType:"uint256",name:"packId",type:"uint256"},{internalType:"uint256",name:"packTotalSupply",type:"uint256"}],stateMutability:"payable",type:"function"},{inputs:[],name:"getDefaultRoyaltyInfo",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_packId",type:"uint256"}],name:"getPackContents",outputs:[{components:[{internalType:"address",name:"assetContract",type:"address"},{internalType:"enum ITokenBundle.TokenType",name:"tokenType",type:"uint8"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"totalAmount",type:"uint256"}],internalType:"struct ITokenBundle.Token[]",name:"contents",type:"tuple[]"},{internalType:"uint256[]",name:"perUnitAmounts",type:"uint256[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleAdmin",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"uint256",name:"index",type:"uint256"}],name:"getRoleMember",outputs:[{internalType:"address",name:"member",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleMemberCount",outputs:[{internalType:"uint256",name:"count",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"}],name:"getRoyaltyInfoForToken",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_bundleId",type:"uint256"}],name:"getTokenCountOfBundle",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_bundleId",type:"uint256"},{internalType:"uint256",name:"index",type:"uint256"}],name:"getTokenOfBundle",outputs:[{components:[{internalType:"address",name:"assetContract",type:"address"},{internalType:"enum ITokenBundle.TokenType",name:"tokenType",type:"uint8"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"totalAmount",type:"uint256"}],internalType:"struct ITokenBundle.Token",name:"",type:"tuple"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_bundleId",type:"uint256"}],name:"getUriOfBundle",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"grantRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRole",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRoleWithSwitch",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_defaultAdmin",type:"address"},{internalType:"string",name:"_name",type:"string"},{internalType:"string",name:"_symbol",type:"string"},{internalType:"string",name:"_contractURI",type:"string"},{internalType:"address[]",name:"_trustedForwarders",type:"address[]"},{internalType:"address",name:"_royaltyRecipient",type:"address"},{internalType:"uint256",name:"_royaltyBps",type:"uint256"}],name:"initialize",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"address",name:"operator",type:"address"}],name:"isApprovedForAll",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"forwarder",type:"address"}],name:"isTrustedForwarder",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes[]",name:"data",type:"bytes[]"}],name:"multicall",outputs:[{internalType:"bytes[]",name:"results",type:"bytes[]"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"name",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"nextTokenIdToMint",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"},{internalType:"address",name:"",type:"address"},{internalType:"uint256[]",name:"",type:"uint256[]"},{internalType:"uint256[]",name:"",type:"uint256[]"},{internalType:"bytes",name:"",type:"bytes"}],name:"onERC1155BatchReceived",outputs:[{internalType:"bytes4",name:"",type:"bytes4"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"},{internalType:"address",name:"",type:"address"},{internalType:"uint256",name:"",type:"uint256"},{internalType:"uint256",name:"",type:"uint256"},{internalType:"bytes",name:"",type:"bytes"}],name:"onERC1155Received",outputs:[{internalType:"bytes4",name:"",type:"bytes4"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"},{internalType:"address",name:"",type:"address"},{internalType:"uint256",name:"",type:"uint256"},{internalType:"bytes",name:"",type:"bytes"}],name:"onERC721Received",outputs:[{internalType:"bytes4",name:"",type:"bytes4"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_packId",type:"uint256"},{internalType:"uint256",name:"_amountToOpen",type:"uint256"}],name:"openPack",outputs:[{components:[{internalType:"address",name:"assetContract",type:"address"},{internalType:"enum ITokenBundle.TokenType",name:"tokenType",type:"uint8"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"totalAmount",type:"uint256"}],internalType:"struct ITokenBundle.Token[]",name:"",type:"tuple[]"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"owner",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"renounceRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"revokeRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"salePrice",type:"uint256"}],name:"royaltyInfo",outputs:[{internalType:"address",name:"receiver",type:"address"},{internalType:"uint256",name:"royaltyAmount",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256[]",name:"ids",type:"uint256[]"},{internalType:"uint256[]",name:"amounts",type:"uint256[]"},{internalType:"bytes",name:"data",type:"bytes"}],name:"safeBatchTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"id",type:"uint256"},{internalType:"uint256",name:"amount",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"}],name:"safeTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"operator",type:"address"},{internalType:"bool",name:"approved",type:"bool"}],name:"setApprovalForAll",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"string",name:"_uri",type:"string"}],name:"setContractURI",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_royaltyRecipient",type:"address"},{internalType:"uint256",name:"_royaltyBps",type:"uint256"}],name:"setDefaultRoyaltyInfo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_newOwner",type:"address"}],name:"setOwner",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"},{internalType:"address",name:"_recipient",type:"address"},{internalType:"uint256",name:"_bps",type:"uint256"}],name:"setRoyaltyInfoForToken",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes4",name:"interfaceId",type:"bytes4"}],name:"supportsInterface",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"symbol",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"}],name:"totalSupply",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"}],name:"uri",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{stateMutability:"payable",type:"receive"}]});var qUe=O(BUe=>{"use strict";x();T();var bs=Go(),Xi=Uc(),Tv=_t();Xr();Pn();Un();Wn();jn();zn();Hn();Vn();Gn();Zn();Jn();Kn();Qn();Xn();Yn();$n();ea();ta();ra();na();aa();ia();sa();oa();ca();ua();la();da();pa();ha();fa();ma();ya();ga();va();ba();wa();xa();Ta();_a();Ca();Ea();ka();Sa();Aa();Ma();Ia();Pa();Ra();En();Na();Oa();La();On();Ba();qa();Da();Fa();Ua();Wa();ja();za();Ha();Va();Ga();Za();Ja();Ka();Qa();var fw=class extends Xi.StandardErc721{constructor(e,t,n){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},i=arguments.length>4?arguments[4]:void 0,s=arguments.length>5?arguments[5]:void 0,c=arguments.length>6&&arguments[6]!==void 0?arguments[6]:new Xi.ContractWrapper(e,t,i,a);super(c,n,s),bs._defineProperty(this,"abi",void 0),bs._defineProperty(this,"erc721",void 0),bs._defineProperty(this,"owner",void 0),bs._defineProperty(this,"encoder",void 0),bs._defineProperty(this,"estimator",void 0),bs._defineProperty(this,"metadata",void 0),bs._defineProperty(this,"sales",void 0),bs._defineProperty(this,"platformFees",void 0),bs._defineProperty(this,"events",void 0),bs._defineProperty(this,"roles",void 0),bs._defineProperty(this,"interceptor",void 0),bs._defineProperty(this,"royalties",void 0),bs._defineProperty(this,"claimConditions",void 0),bs._defineProperty(this,"revealer",void 0),bs._defineProperty(this,"signature",void 0),bs._defineProperty(this,"checkout",void 0),this.abi=i,this.metadata=new Xi.ContractMetadata(this.contractWrapper,Xi.DropErc721ContractSchema,this.storage),this.roles=new Xi.ContractRoles(this.contractWrapper,fw.contractRoles),this.royalties=new Xi.ContractRoyalty(this.contractWrapper,this.metadata),this.sales=new Xi.ContractPrimarySale(this.contractWrapper),this.encoder=new Xi.ContractEncoder(this.contractWrapper),this.estimator=new Xi.GasCostEstimator(this.contractWrapper),this.events=new Xi.ContractEvents(this.contractWrapper),this.platformFees=new Xi.ContractPlatformFee(this.contractWrapper),this.interceptor=new Xi.ContractInterceptor(this.contractWrapper),this.erc721=new Xi.Erc721(this.contractWrapper,this.storage,s),this.claimConditions=new Xi.DropClaimConditions(this.contractWrapper,this.metadata,this.storage),this.signature=new Xi.Erc721WithQuantitySignatureMintable(this.contractWrapper,this.storage),this.revealer=new Xi.DelayedReveal(this.contractWrapper,this.storage,Xi.FEATURE_NFT_REVEALABLE.name,()=>this.erc721.nextTokenIdToMint()),this.signature=new Xi.Erc721WithQuantitySignatureMintable(this.contractWrapper,this.storage),this.owner=new Xi.ContractOwner(this.contractWrapper),this.checkout=new Xi.PaperCheckout(this.contractWrapper)}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}async totalSupply(){let e=await this.totalClaimedSupply(),t=await this.totalUnclaimedSupply();return e.add(t)}async getAllClaimed(e){let t=Tv.BigNumber.from(e?.start||0).toNumber(),n=Tv.BigNumber.from(e?.count||bs.DEFAULT_QUERY_ALL_COUNT).toNumber(),a=Math.min((await this.totalClaimedSupply()).toNumber(),t+n);return await Promise.all(Array.from(Array(a).keys()).map(i=>this.get(i.toString())))}async getAllUnclaimed(e){let t=Tv.BigNumber.from(e?.start||0).toNumber(),n=Tv.BigNumber.from(e?.count||bs.DEFAULT_QUERY_ALL_COUNT).toNumber(),a=Tv.BigNumber.from(Math.max((await this.totalClaimedSupply()).toNumber(),t)),i=Tv.BigNumber.from(Math.min((await this.contractWrapper.readContract.nextTokenIdToMint()).toNumber(),a.toNumber()+n));return await Promise.all(Array.from(Array(i.sub(a).toNumber()).keys()).map(s=>this.erc721.getTokenMetadata(a.add(s).toString())))}async totalClaimedSupply(){return this.erc721.totalClaimedSupply()}async totalUnclaimedSupply(){return this.erc721.totalUnclaimedSupply()}async isTransferRestricted(){return!await this.contractWrapper.readContract.hasRole(Xi.getRoleHash("transfer"),Tv.constants.AddressZero)}async createBatch(e,t){return this.erc721.lazyMint(e,t)}async getClaimTransaction(e,t,n){return this.erc721.getClaimTransaction(e,t,n)}async claimTo(e,t,n){return this.erc721.claimTo(e,t,n)}async claim(e,t){return this.erc721.claim(e,t)}async burn(e){return this.erc721.burn(e)}async call(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a{zir.exports=[{inputs:[],name:"ApprovalCallerNotOwnerNorApproved",type:"error"},{inputs:[],name:"ApprovalQueryForNonexistentToken",type:"error"},{inputs:[],name:"ApprovalToCurrentOwner",type:"error"},{inputs:[],name:"ApproveToCaller",type:"error"},{inputs:[],name:"BalanceQueryForZeroAddress",type:"error"},{inputs:[],name:"MintToZeroAddress",type:"error"},{inputs:[],name:"MintZeroQuantity",type:"error"},{inputs:[],name:"OwnerQueryForNonexistentToken",type:"error"},{inputs:[],name:"TransferCallerNotOwnerNorApproved",type:"error"},{inputs:[],name:"TransferFromIncorrectOwner",type:"error"},{inputs:[],name:"TransferToNonERC721ReceiverImplementer",type:"error"},{inputs:[],name:"TransferToZeroAddress",type:"error"},{inputs:[],name:"URIQueryForNonexistentToken",type:"error"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"approved",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"}],name:"Approval",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!1,internalType:"bool",name:"approved",type:"bool"}],name:"ApprovalForAll",type:"event"},{anonymous:!1,inputs:[{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerWallet",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"string",name:"metadata",type:"string"}],indexed:!1,internalType:"struct IClaimCondition.ClaimCondition",name:"condition",type:"tuple"},{indexed:!1,internalType:"bool",name:"resetEligibility",type:"bool"}],name:"ClaimConditionUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"string",name:"prevURI",type:"string"},{indexed:!1,internalType:"string",name:"newURI",type:"string"}],name:"ContractURIUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"newRoyaltyRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"newRoyaltyBps",type:"uint256"}],name:"DefaultRoyalty",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint8",name:"version",type:"uint8"}],name:"Initialized",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"prevOwner",type:"address"},{indexed:!0,internalType:"address",name:"newOwner",type:"address"}],name:"OwnerUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"platformFeeRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"platformFeeBps",type:"uint256"}],name:"PlatformFeeInfoUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"recipient",type:"address"}],name:"PrimarySaleRecipientUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"previousAdminRole",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"newAdminRole",type:"bytes32"}],name:"RoleAdminChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleGranted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleRevoked",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!0,internalType:"address",name:"royaltyRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"royaltyBps",type:"uint256"}],name:"RoyaltyForToken",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"index",type:"uint256"},{indexed:!1,internalType:"string",name:"revealedURI",type:"string"}],name:"TokenURIRevealed",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"claimer",type:"address"},{indexed:!0,internalType:"address",name:"receiver",type:"address"},{indexed:!0,internalType:"uint256",name:"startTokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"quantityClaimed",type:"uint256"}],name:"TokensClaimed",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"startTokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"endTokenId",type:"uint256"},{indexed:!1,internalType:"string",name:"baseURI",type:"string"},{indexed:!1,internalType:"bytes",name:"encryptedBaseURI",type:"bytes"}],name:"TokensLazyMinted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"signer",type:"address"},{indexed:!0,internalType:"address",name:"mintedTo",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenIdMinted",type:"uint256"},{components:[{internalType:"address",name:"to",type:"address"},{internalType:"address",name:"royaltyRecipient",type:"address"},{internalType:"uint256",name:"royaltyBps",type:"uint256"},{internalType:"address",name:"primarySaleRecipient",type:"address"},{internalType:"string",name:"uri",type:"string"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint128",name:"validityStartTimestamp",type:"uint128"},{internalType:"uint128",name:"validityEndTimestamp",type:"uint128"},{internalType:"bytes32",name:"uid",type:"bytes32"}],indexed:!1,internalType:"struct ISignatureMintERC721.MintRequest",name:"mintRequest",type:"tuple"}],name:"TokensMintedWithSignature",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"}],name:"Transfer",type:"event"},{inputs:[],name:"DEFAULT_ADMIN_ROLE",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"approve",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"}],name:"balanceOf",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"burn",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_receiver",type:"address"},{internalType:"uint256",name:"_quantity",type:"uint256"},{internalType:"address",name:"_currency",type:"address"},{internalType:"uint256",name:"_pricePerToken",type:"uint256"},{components:[{internalType:"bytes32[]",name:"proof",type:"bytes32[]"},{internalType:"uint256",name:"quantityLimitPerWallet",type:"uint256"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],internalType:"struct IDropSinglePhase.AllowlistProof",name:"_allowlistProof",type:"tuple"},{internalType:"bytes",name:"_data",type:"bytes"}],name:"claim",outputs:[],stateMutability:"payable",type:"function"},{inputs:[],name:"claimCondition",outputs:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerWallet",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"string",name:"metadata",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"contractType",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"pure",type:"function"},{inputs:[],name:"contractURI",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"contractVersion",outputs:[{internalType:"uint8",name:"",type:"uint8"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"bytes",name:"data",type:"bytes"},{internalType:"bytes",name:"key",type:"bytes"}],name:"encryptDecrypt",outputs:[{internalType:"bytes",name:"result",type:"bytes"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"}],name:"encryptedData",outputs:[{internalType:"bytes",name:"",type:"bytes"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"getApproved",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"getBaseURICount",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_index",type:"uint256"}],name:"getBatchIdAtIndex",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"getDefaultRoyaltyInfo",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[],name:"getPlatformFeeInfo",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_batchId",type:"uint256"},{internalType:"bytes",name:"_key",type:"bytes"}],name:"getRevealURI",outputs:[{internalType:"string",name:"revealedURI",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleAdmin",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"uint256",name:"index",type:"uint256"}],name:"getRoleMember",outputs:[{internalType:"address",name:"member",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleMemberCount",outputs:[{internalType:"uint256",name:"count",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"}],name:"getRoyaltyInfoForToken",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_claimer",type:"address"}],name:"getSupplyClaimedByWallet",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"grantRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRole",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRoleWithSwitch",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_defaultAdmin",type:"address"},{internalType:"string",name:"_name",type:"string"},{internalType:"string",name:"_symbol",type:"string"},{internalType:"string",name:"_contractURI",type:"string"},{internalType:"address[]",name:"_trustedForwarders",type:"address[]"},{internalType:"address",name:"_saleRecipient",type:"address"},{internalType:"address",name:"_royaltyRecipient",type:"address"},{internalType:"uint128",name:"_royaltyBps",type:"uint128"},{internalType:"uint128",name:"_platformFeeBps",type:"uint128"},{internalType:"address",name:"_platformFeeRecipient",type:"address"}],name:"initialize",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"address",name:"operator",type:"address"}],name:"isApprovedForAll",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_batchId",type:"uint256"}],name:"isEncryptedBatch",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"forwarder",type:"address"}],name:"isTrustedForwarder",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_amount",type:"uint256"},{internalType:"string",name:"_baseURIForTokens",type:"string"},{internalType:"bytes",name:"_data",type:"bytes"}],name:"lazyMint",outputs:[{internalType:"uint256",name:"batchId",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{internalType:"address",name:"to",type:"address"},{internalType:"address",name:"royaltyRecipient",type:"address"},{internalType:"uint256",name:"royaltyBps",type:"uint256"},{internalType:"address",name:"primarySaleRecipient",type:"address"},{internalType:"string",name:"uri",type:"string"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint128",name:"validityStartTimestamp",type:"uint128"},{internalType:"uint128",name:"validityEndTimestamp",type:"uint128"},{internalType:"bytes32",name:"uid",type:"bytes32"}],internalType:"struct ISignatureMintERC721.MintRequest",name:"_req",type:"tuple"},{internalType:"bytes",name:"_signature",type:"bytes"}],name:"mintWithSignature",outputs:[{internalType:"address",name:"signer",type:"address"}],stateMutability:"payable",type:"function"},{inputs:[{internalType:"bytes[]",name:"data",type:"bytes[]"}],name:"multicall",outputs:[{internalType:"bytes[]",name:"results",type:"bytes[]"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"name",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"nextTokenIdToMint",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"owner",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"ownerOf",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"primarySaleRecipient",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"renounceRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_index",type:"uint256"},{internalType:"bytes",name:"_key",type:"bytes"}],name:"reveal",outputs:[{internalType:"string",name:"revealedURI",type:"string"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"revokeRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"salePrice",type:"uint256"}],name:"royaltyInfo",outputs:[{internalType:"address",name:"receiver",type:"address"},{internalType:"uint256",name:"royaltyAmount",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"safeTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"bytes",name:"_data",type:"bytes"}],name:"safeTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"operator",type:"address"},{internalType:"bool",name:"approved",type:"bool"}],name:"setApprovalForAll",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerWallet",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"string",name:"metadata",type:"string"}],internalType:"struct IClaimCondition.ClaimCondition",name:"_condition",type:"tuple"},{internalType:"bool",name:"_resetClaimEligibility",type:"bool"}],name:"setClaimConditions",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"string",name:"_uri",type:"string"}],name:"setContractURI",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_royaltyRecipient",type:"address"},{internalType:"uint256",name:"_royaltyBps",type:"uint256"}],name:"setDefaultRoyaltyInfo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_newOwner",type:"address"}],name:"setOwner",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_platformFeeRecipient",type:"address"},{internalType:"uint256",name:"_platformFeeBps",type:"uint256"}],name:"setPlatformFeeInfo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_saleRecipient",type:"address"}],name:"setPrimarySaleRecipient",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"},{internalType:"address",name:"_recipient",type:"address"},{internalType:"uint256",name:"_bps",type:"uint256"}],name:"setRoyaltyInfoForToken",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes4",name:"interfaceId",type:"bytes4"}],name:"supportsInterface",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"symbol",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"}],name:"tokenURI",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"totalMinted",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"totalSupply",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"transferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{internalType:"address",name:"to",type:"address"},{internalType:"address",name:"royaltyRecipient",type:"address"},{internalType:"uint256",name:"royaltyBps",type:"uint256"},{internalType:"address",name:"primarySaleRecipient",type:"address"},{internalType:"string",name:"uri",type:"string"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint128",name:"validityStartTimestamp",type:"uint128"},{internalType:"uint128",name:"validityEndTimestamp",type:"uint128"},{internalType:"bytes32",name:"uid",type:"bytes32"}],internalType:"struct ISignatureMintERC721.MintRequest",name:"_req",type:"tuple"},{internalType:"bytes",name:"_signature",type:"bytes"}],name:"verify",outputs:[{internalType:"bool",name:"success",type:"bool"},{internalType:"address",name:"signer",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_claimer",type:"address"},{internalType:"uint256",name:"_quantity",type:"uint256"},{internalType:"address",name:"_currency",type:"address"},{internalType:"uint256",name:"_pricePerToken",type:"uint256"},{components:[{internalType:"bytes32[]",name:"proof",type:"bytes32[]"},{internalType:"uint256",name:"quantityLimitPerWallet",type:"uint256"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],internalType:"struct IDropSinglePhase.AllowlistProof",name:"_allowlistProof",type:"tuple"}],name:"verifyClaim",outputs:[{internalType:"bool",name:"isOverride",type:"bool"}],stateMutability:"view",type:"function"}]});var rV=O((eln,Hir)=>{Hir.exports=[{inputs:[],name:"ApprovalCallerNotOwnerNorApproved",type:"error"},{inputs:[],name:"ApprovalQueryForNonexistentToken",type:"error"},{inputs:[],name:"ApprovalToCurrentOwner",type:"error"},{inputs:[],name:"ApproveToCaller",type:"error"},{inputs:[],name:"BalanceQueryForZeroAddress",type:"error"},{inputs:[],name:"MintToZeroAddress",type:"error"},{inputs:[],name:"MintZeroQuantity",type:"error"},{inputs:[],name:"OwnerQueryForNonexistentToken",type:"error"},{inputs:[],name:"TransferCallerNotOwnerNorApproved",type:"error"},{inputs:[],name:"TransferFromIncorrectOwner",type:"error"},{inputs:[],name:"TransferToNonERC721ReceiverImplementer",type:"error"},{inputs:[],name:"TransferToZeroAddress",type:"error"},{inputs:[],name:"URIQueryForNonexistentToken",type:"error"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"approved",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"}],name:"Approval",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!1,internalType:"bool",name:"approved",type:"bool"}],name:"ApprovalForAll",type:"event"},{anonymous:!1,inputs:[{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerTransaction",type:"uint256"},{internalType:"uint256",name:"waitTimeInSecondsBetweenClaims",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],indexed:!1,internalType:"struct IClaimCondition_V1.ClaimCondition",name:"condition",type:"tuple"},{indexed:!1,internalType:"bool",name:"resetEligibility",type:"bool"}],name:"ClaimConditionUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"string",name:"prevURI",type:"string"},{indexed:!1,internalType:"string",name:"newURI",type:"string"}],name:"ContractURIUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"newRoyaltyRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"newRoyaltyBps",type:"uint256"}],name:"DefaultRoyalty",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint8",name:"version",type:"uint8"}],name:"Initialized",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"prevOwner",type:"address"},{indexed:!0,internalType:"address",name:"newOwner",type:"address"}],name:"OwnerUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"platformFeeRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"platformFeeBps",type:"uint256"}],name:"PlatformFeeInfoUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"recipient",type:"address"}],name:"PrimarySaleRecipientUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"previousAdminRole",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"newAdminRole",type:"bytes32"}],name:"RoleAdminChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleGranted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleRevoked",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!0,internalType:"address",name:"royaltyRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"royaltyBps",type:"uint256"}],name:"RoyaltyForToken",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"index",type:"uint256"},{indexed:!1,internalType:"string",name:"revealedURI",type:"string"}],name:"TokenURIRevealed",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"claimer",type:"address"},{indexed:!0,internalType:"address",name:"receiver",type:"address"},{indexed:!0,internalType:"uint256",name:"startTokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"quantityClaimed",type:"uint256"}],name:"TokensClaimed",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"startTokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"endTokenId",type:"uint256"},{indexed:!1,internalType:"string",name:"baseURI",type:"string"},{indexed:!1,internalType:"bytes",name:"encryptedBaseURI",type:"bytes"}],name:"TokensLazyMinted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"signer",type:"address"},{indexed:!0,internalType:"address",name:"mintedTo",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenIdMinted",type:"uint256"},{components:[{internalType:"address",name:"to",type:"address"},{internalType:"address",name:"royaltyRecipient",type:"address"},{internalType:"uint256",name:"royaltyBps",type:"uint256"},{internalType:"address",name:"primarySaleRecipient",type:"address"},{internalType:"string",name:"uri",type:"string"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint128",name:"validityStartTimestamp",type:"uint128"},{internalType:"uint128",name:"validityEndTimestamp",type:"uint128"},{internalType:"bytes32",name:"uid",type:"bytes32"}],indexed:!1,internalType:"struct ISignatureMintERC721.MintRequest",name:"mintRequest",type:"tuple"}],name:"TokensMintedWithSignature",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"}],name:"Transfer",type:"event"},{inputs:[],name:"DEFAULT_ADMIN_ROLE",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"approve",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"}],name:"balanceOf",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"burn",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_receiver",type:"address"},{internalType:"uint256",name:"_quantity",type:"uint256"},{internalType:"address",name:"_currency",type:"address"},{internalType:"uint256",name:"_pricePerToken",type:"uint256"},{components:[{internalType:"bytes32[]",name:"proof",type:"bytes32[]"},{internalType:"uint256",name:"maxQuantityInAllowlist",type:"uint256"}],internalType:"struct IDropSinglePhase_V1.AllowlistProof",name:"_allowlistProof",type:"tuple"},{internalType:"bytes",name:"_data",type:"bytes"}],name:"claim",outputs:[],stateMutability:"payable",type:"function"},{inputs:[],name:"claimCondition",outputs:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerTransaction",type:"uint256"},{internalType:"uint256",name:"waitTimeInSecondsBetweenClaims",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"contractType",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"pure",type:"function"},{inputs:[],name:"contractURI",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"contractVersion",outputs:[{internalType:"uint8",name:"",type:"uint8"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"bytes",name:"data",type:"bytes"},{internalType:"bytes",name:"key",type:"bytes"}],name:"encryptDecrypt",outputs:[{internalType:"bytes",name:"result",type:"bytes"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"}],name:"encryptedData",outputs:[{internalType:"bytes",name:"",type:"bytes"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"getApproved",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"getBaseURICount",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_index",type:"uint256"}],name:"getBatchIdAtIndex",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_claimer",type:"address"}],name:"getClaimTimestamp",outputs:[{internalType:"uint256",name:"lastClaimedAt",type:"uint256"},{internalType:"uint256",name:"nextValidClaimTimestamp",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"getDefaultRoyaltyInfo",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[],name:"getPlatformFeeInfo",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_batchId",type:"uint256"},{internalType:"bytes",name:"_key",type:"bytes"}],name:"getRevealURI",outputs:[{internalType:"string",name:"revealedURI",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleAdmin",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"uint256",name:"index",type:"uint256"}],name:"getRoleMember",outputs:[{internalType:"address",name:"member",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleMemberCount",outputs:[{internalType:"uint256",name:"count",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"}],name:"getRoyaltyInfoForToken",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"grantRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRole",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRoleWithSwitch",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_defaultAdmin",type:"address"},{internalType:"string",name:"_name",type:"string"},{internalType:"string",name:"_symbol",type:"string"},{internalType:"string",name:"_contractURI",type:"string"},{internalType:"address[]",name:"_trustedForwarders",type:"address[]"},{internalType:"address",name:"_saleRecipient",type:"address"},{internalType:"address",name:"_royaltyRecipient",type:"address"},{internalType:"uint128",name:"_royaltyBps",type:"uint128"},{internalType:"uint128",name:"_platformFeeBps",type:"uint128"},{internalType:"address",name:"_platformFeeRecipient",type:"address"}],name:"initialize",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"address",name:"operator",type:"address"}],name:"isApprovedForAll",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_batchId",type:"uint256"}],name:"isEncryptedBatch",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"forwarder",type:"address"}],name:"isTrustedForwarder",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_amount",type:"uint256"},{internalType:"string",name:"_baseURIForTokens",type:"string"},{internalType:"bytes",name:"_data",type:"bytes"}],name:"lazyMint",outputs:[{internalType:"uint256",name:"batchId",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{internalType:"address",name:"to",type:"address"},{internalType:"address",name:"royaltyRecipient",type:"address"},{internalType:"uint256",name:"royaltyBps",type:"uint256"},{internalType:"address",name:"primarySaleRecipient",type:"address"},{internalType:"string",name:"uri",type:"string"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint128",name:"validityStartTimestamp",type:"uint128"},{internalType:"uint128",name:"validityEndTimestamp",type:"uint128"},{internalType:"bytes32",name:"uid",type:"bytes32"}],internalType:"struct ISignatureMintERC721.MintRequest",name:"_req",type:"tuple"},{internalType:"bytes",name:"_signature",type:"bytes"}],name:"mintWithSignature",outputs:[{internalType:"address",name:"signer",type:"address"}],stateMutability:"payable",type:"function"},{inputs:[{internalType:"bytes[]",name:"data",type:"bytes[]"}],name:"multicall",outputs:[{internalType:"bytes[]",name:"results",type:"bytes[]"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"name",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"nextTokenIdToMint",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"owner",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"ownerOf",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"primarySaleRecipient",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"renounceRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_index",type:"uint256"},{internalType:"bytes",name:"_key",type:"bytes"}],name:"reveal",outputs:[{internalType:"string",name:"revealedURI",type:"string"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"revokeRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"salePrice",type:"uint256"}],name:"royaltyInfo",outputs:[{internalType:"address",name:"receiver",type:"address"},{internalType:"uint256",name:"royaltyAmount",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"safeTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"bytes",name:"_data",type:"bytes"}],name:"safeTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"operator",type:"address"},{internalType:"bool",name:"approved",type:"bool"}],name:"setApprovalForAll",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerTransaction",type:"uint256"},{internalType:"uint256",name:"waitTimeInSecondsBetweenClaims",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],internalType:"struct IClaimCondition_V1.ClaimCondition",name:"_condition",type:"tuple"},{internalType:"bool",name:"_resetClaimEligibility",type:"bool"}],name:"setClaimConditions",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"string",name:"_uri",type:"string"}],name:"setContractURI",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_royaltyRecipient",type:"address"},{internalType:"uint256",name:"_royaltyBps",type:"uint256"}],name:"setDefaultRoyaltyInfo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_newOwner",type:"address"}],name:"setOwner",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_platformFeeRecipient",type:"address"},{internalType:"uint256",name:"_platformFeeBps",type:"uint256"}],name:"setPlatformFeeInfo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_saleRecipient",type:"address"}],name:"setPrimarySaleRecipient",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"},{internalType:"address",name:"_recipient",type:"address"},{internalType:"uint256",name:"_bps",type:"uint256"}],name:"setRoyaltyInfoForToken",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes4",name:"interfaceId",type:"bytes4"}],name:"supportsInterface",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"symbol",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"}],name:"tokenURI",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"totalMinted",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"totalSupply",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"transferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{internalType:"address",name:"to",type:"address"},{internalType:"address",name:"royaltyRecipient",type:"address"},{internalType:"uint256",name:"royaltyBps",type:"uint256"},{internalType:"address",name:"primarySaleRecipient",type:"address"},{internalType:"string",name:"uri",type:"string"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint128",name:"validityStartTimestamp",type:"uint128"},{internalType:"uint128",name:"validityEndTimestamp",type:"uint128"},{internalType:"bytes32",name:"uid",type:"bytes32"}],internalType:"struct ISignatureMintERC721.MintRequest",name:"_req",type:"tuple"},{internalType:"bytes",name:"_signature",type:"bytes"}],name:"verify",outputs:[{internalType:"bool",name:"success",type:"bool"},{internalType:"address",name:"signer",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_claimer",type:"address"},{internalType:"uint256",name:"_quantity",type:"uint256"},{internalType:"address",name:"_currency",type:"address"},{internalType:"uint256",name:"_pricePerToken",type:"uint256"},{internalType:"bool",name:"verifyMaxQuantityPerTransaction",type:"bool"}],name:"verifyClaim",outputs:[],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_claimer",type:"address"},{internalType:"uint256",name:"_quantity",type:"uint256"},{components:[{internalType:"bytes32[]",name:"proof",type:"bytes32[]"},{internalType:"uint256",name:"maxQuantityInAllowlist",type:"uint256"}],internalType:"struct IDropSinglePhase_V1.AllowlistProof",name:"_allowlistProof",type:"tuple"}],name:"verifyClaimMerkleProof",outputs:[{internalType:"bool",name:"validMerkleProof",type:"bool"},{internalType:"uint256",name:"merkleProofIndex",type:"uint256"}],stateMutability:"view",type:"function"}]});var FUe=O(DUe=>{"use strict";x();T();var pp=Go(),$f=Uc(),Vir=Kn(),nV=_t();Xr();Pn();Un();Wn();jn();zn();Hn();Vn();Gn();Zn();Jn();Qn();Xn();Yn();$n();ea();ta();ra();na();aa();ia();sa();oa();ca();ua();la();da();pa();ha();fa();ma();ya();ga();va();ba();wa();xa();Ta();_a();Ca();Ea();ka();Sa();Aa();Ma();Ia();Pa();Ra();En();Na();Oa();La();On();Ba();qa();Da();Fa();Ua();Wa();ja();za();Ha();Va();Ga();Za();Ja();Ka();Qa();function Gir(r){return r&&r.__esModule?r:{default:r}}var Zir=Gir(Vir),mw=class{get chainId(){return this._chainId}constructor(e,t,n){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},i=arguments.length>4?arguments[4]:void 0,s=arguments.length>5?arguments[5]:void 0,c=arguments.length>6&&arguments[6]!==void 0?arguments[6]:new $f.ContractWrapper(e,t,i,a);pp._defineProperty(this,"contractWrapper",void 0),pp._defineProperty(this,"storage",void 0),pp._defineProperty(this,"abi",void 0),pp._defineProperty(this,"metadata",void 0),pp._defineProperty(this,"encoder",void 0),pp._defineProperty(this,"estimator",void 0),pp._defineProperty(this,"events",void 0),pp._defineProperty(this,"roles",void 0),pp._defineProperty(this,"interceptor",void 0),pp._defineProperty(this,"_chainId",void 0),this._chainId=s,this.abi=i,this.contractWrapper=c,this.storage=n,this.metadata=new $f.ContractMetadata(this.contractWrapper,$f.SplitsContractSchema,this.storage),this.roles=new $f.ContractRoles(this.contractWrapper,mw.contractRoles),this.encoder=new $f.ContractEncoder(this.contractWrapper),this.estimator=new $f.GasCostEstimator(this.contractWrapper),this.events=new $f.ContractEvents(this.contractWrapper),this.interceptor=new $f.ContractInterceptor(this.contractWrapper)}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}async getAllRecipients(){let e=[],t=nV.BigNumber.from(0),n=await this.contractWrapper.readContract.payeeCount();for(;t.lt(n);)try{let a=await this.contractWrapper.readContract.payee(t);e.push(await this.getRecipientSplitPercentage(a)),t=t.add(1)}catch(a){if("method"in a&&a.method.toLowerCase().includes("payee(uint256)"))break;throw a}return e}async balanceOfAllRecipients(){let e=await this.getAllRecipients(),t={};for(let n of e)t[n.address]=await this.balanceOf(n.address);return t}async balanceOfTokenAllRecipients(e){let t=await this.getAllRecipients(),n={};for(let a of t)n[a.address]=await this.balanceOfToken(a.address,e);return n}async balanceOf(e){let t=await this.contractWrapper.readContract.provider.getBalance(this.getAddress()),n=await this.contractWrapper.readContract["totalReleased()"](),a=t.add(n);return this._pendingPayment(e,a,await this.contractWrapper.readContract["released(address)"](e))}async balanceOfToken(e,t){let a=await new nV.Contract(t,Zir.default,this.contractWrapper.getProvider()).balanceOf(this.getAddress()),i=await this.contractWrapper.readContract["totalReleased(address)"](t),s=a.add(i),c=await this._pendingPayment(e,s,await this.contractWrapper.readContract["released(address,address)"](t,e));return await $f.fetchCurrencyValue(this.contractWrapper.getProvider(),t,c)}async getRecipientSplitPercentage(e){let[t,n]=await Promise.all([this.contractWrapper.readContract.totalShares(),this.contractWrapper.readContract.shares(e)]);return{address:e,splitPercentage:n.mul(nV.BigNumber.from(1e7)).div(t).toNumber()/1e5}}async withdraw(e){return{receipt:await this.contractWrapper.sendTransaction("release(address)",[e])}}async withdrawToken(e,t){return{receipt:await this.contractWrapper.sendTransaction("release(address,address)",[t,e])}}async distribute(){return{receipt:await this.contractWrapper.sendTransaction("distribute()",[])}}async distributeToken(e){return{receipt:await this.contractWrapper.sendTransaction("distribute(address)",[e])}}async _pendingPayment(e,t,n){return t.mul(await this.contractWrapper.readContract.shares(e)).div(await this.contractWrapper.readContract.totalShares()).sub(n)}async call(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a{Jir.exports=[{inputs:[],stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!0,internalType:"contract IERC20Upgradeable",name:"token",type:"address"},{indexed:!1,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256",name:"amount",type:"uint256"}],name:"ERC20PaymentReleased",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint8",name:"version",type:"uint8"}],name:"Initialized",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"account",type:"address"},{indexed:!1,internalType:"uint256",name:"shares",type:"uint256"}],name:"PayeeAdded",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"from",type:"address"},{indexed:!1,internalType:"uint256",name:"amount",type:"uint256"}],name:"PaymentReceived",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256",name:"amount",type:"uint256"}],name:"PaymentReleased",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"previousAdminRole",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"newAdminRole",type:"bytes32"}],name:"RoleAdminChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleGranted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleRevoked",type:"event"},{inputs:[],name:"DEFAULT_ADMIN_ROLE",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"contractType",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"pure",type:"function"},{inputs:[],name:"contractURI",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"contractVersion",outputs:[{internalType:"uint8",name:"",type:"uint8"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"contract IERC20Upgradeable",name:"token",type:"address"}],name:"distribute",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"distribute",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleAdmin",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"uint256",name:"index",type:"uint256"}],name:"getRoleMember",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleMemberCount",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"grantRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRole",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_defaultAdmin",type:"address"},{internalType:"string",name:"_contractURI",type:"string"},{internalType:"address[]",name:"_trustedForwarders",type:"address[]"},{internalType:"address[]",name:"_payees",type:"address[]"},{internalType:"uint256[]",name:"_shares",type:"uint256[]"}],name:"initialize",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"forwarder",type:"address"}],name:"isTrustedForwarder",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes[]",name:"data",type:"bytes[]"}],name:"multicall",outputs:[{internalType:"bytes[]",name:"results",type:"bytes[]"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"index",type:"uint256"}],name:"payee",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"payeeCount",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"releasable",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"contract IERC20Upgradeable",name:"token",type:"address"},{internalType:"address",name:"account",type:"address"}],name:"releasable",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address payable",name:"account",type:"address"}],name:"release",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"contract IERC20Upgradeable",name:"token",type:"address"},{internalType:"address",name:"account",type:"address"}],name:"release",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"contract IERC20Upgradeable",name:"token",type:"address"},{internalType:"address",name:"account",type:"address"}],name:"released",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"released",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"renounceRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"revokeRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"string",name:"_uri",type:"string"}],name:"setContractURI",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"shares",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes4",name:"interfaceId",type:"bytes4"}],name:"supportsInterface",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"contract IERC20Upgradeable",name:"token",type:"address"}],name:"totalReleased",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"totalReleased",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"totalShares",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{stateMutability:"payable",type:"receive"}]});var WUe=O(UUe=>{"use strict";x();T();var hp=Go(),cl=Uc(),Kir=_t();Xr();Pn();Un();Wn();jn();zn();Hn();Vn();Gn();Zn();Jn();Kn();Qn();Xn();Yn();$n();ea();ta();ra();na();aa();ia();sa();oa();ca();ua();la();da();pa();ha();fa();ma();ya();ga();va();ba();wa();xa();Ta();_a();Ca();Ea();ka();Sa();Aa();Ma();Ia();Pa();Ra();En();Na();Oa();La();On();Ba();qa();Da();Fa();Ua();Wa();ja();za();Ha();Va();Ga();Za();Ja();Ka();Qa();var yw=class extends cl.StandardErc20{constructor(e,t,n){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},i=arguments.length>4?arguments[4]:void 0,s=arguments.length>5?arguments[5]:void 0,c=arguments.length>6&&arguments[6]!==void 0?arguments[6]:new cl.ContractWrapper(e,t,i,a);super(c,n,s),hp._defineProperty(this,"abi",void 0),hp._defineProperty(this,"metadata",void 0),hp._defineProperty(this,"roles",void 0),hp._defineProperty(this,"encoder",void 0),hp._defineProperty(this,"estimator",void 0),hp._defineProperty(this,"sales",void 0),hp._defineProperty(this,"platformFees",void 0),hp._defineProperty(this,"events",void 0),hp._defineProperty(this,"claimConditions",void 0),hp._defineProperty(this,"interceptor",void 0),this.abi=i,this.metadata=new cl.ContractMetadata(this.contractWrapper,cl.DropErc20ContractSchema,this.storage),this.roles=new cl.ContractRoles(this.contractWrapper,yw.contractRoles),this.encoder=new cl.ContractEncoder(this.contractWrapper),this.estimator=new cl.GasCostEstimator(this.contractWrapper),this.events=new cl.ContractEvents(this.contractWrapper),this.sales=new cl.ContractPrimarySale(this.contractWrapper),this.platformFees=new cl.ContractPlatformFee(this.contractWrapper),this.interceptor=new cl.ContractInterceptor(this.contractWrapper),this.claimConditions=new cl.DropClaimConditions(this.contractWrapper,this.metadata,this.storage)}async getVoteBalance(){return await this.getVoteBalanceOf(await this.contractWrapper.getSignerAddress())}async getVoteBalanceOf(e){return await this.erc20.getValue(await this.contractWrapper.readContract.getVotes(e))}async getDelegation(){return await this.getDelegationOf(await this.contractWrapper.getSignerAddress())}async getDelegationOf(e){return await this.contractWrapper.readContract.delegates(e)}async isTransferRestricted(){return!await this.contractWrapper.readContract.hasRole(cl.getRoleHash("transfer"),Kir.constants.AddressZero)}async claim(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return this.claimTo(await this.contractWrapper.getSignerAddress(),e,t)}async claimTo(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return this.erc20.claimTo(e,t,{checkERC20Allowance:n})}async delegateTo(e){return{receipt:await this.contractWrapper.sendTransaction("delegate",[e])}}async burnTokens(e){return this.erc20.burn(e)}async burnFrom(e,t){return this.erc20.burnFrom(e,t)}async call(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a{Qir.exports=[{inputs:[],stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"spender",type:"address"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"}],name:"Approval",type:"event"},{anonymous:!1,inputs:[{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerWallet",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"string",name:"metadata",type:"string"}],indexed:!1,internalType:"struct IClaimCondition.ClaimCondition[]",name:"claimConditions",type:"tuple[]"},{indexed:!1,internalType:"bool",name:"resetEligibility",type:"bool"}],name:"ClaimConditionsUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"string",name:"prevURI",type:"string"},{indexed:!1,internalType:"string",name:"newURI",type:"string"}],name:"ContractURIUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"delegator",type:"address"},{indexed:!0,internalType:"address",name:"fromDelegate",type:"address"},{indexed:!0,internalType:"address",name:"toDelegate",type:"address"}],name:"DelegateChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"delegate",type:"address"},{indexed:!1,internalType:"uint256",name:"previousBalance",type:"uint256"},{indexed:!1,internalType:"uint256",name:"newBalance",type:"uint256"}],name:"DelegateVotesChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint8",name:"version",type:"uint8"}],name:"Initialized",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"maxTotalSupply",type:"uint256"}],name:"MaxTotalSupplyUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"platformFeeRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"platformFeeBps",type:"uint256"}],name:"PlatformFeeInfoUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"recipient",type:"address"}],name:"PrimarySaleRecipientUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"previousAdminRole",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"newAdminRole",type:"bytes32"}],name:"RoleAdminChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleGranted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleRevoked",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"claimConditionIndex",type:"uint256"},{indexed:!0,internalType:"address",name:"claimer",type:"address"},{indexed:!0,internalType:"address",name:"receiver",type:"address"},{indexed:!1,internalType:"uint256",name:"startTokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"quantityClaimed",type:"uint256"}],name:"TokensClaimed",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"}],name:"Transfer",type:"event"},{inputs:[],name:"DEFAULT_ADMIN_ROLE",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"DOMAIN_SEPARATOR",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"address",name:"spender",type:"address"}],name:"allowance",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"spender",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"approve",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"balanceOf",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"amount",type:"uint256"}],name:"burn",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"burnFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint32",name:"pos",type:"uint32"}],name:"checkpoints",outputs:[{components:[{internalType:"uint32",name:"fromBlock",type:"uint32"},{internalType:"uint224",name:"votes",type:"uint224"}],internalType:"struct ERC20VotesUpgradeable.Checkpoint",name:"",type:"tuple"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_receiver",type:"address"},{internalType:"uint256",name:"_quantity",type:"uint256"},{internalType:"address",name:"_currency",type:"address"},{internalType:"uint256",name:"_pricePerToken",type:"uint256"},{components:[{internalType:"bytes32[]",name:"proof",type:"bytes32[]"},{internalType:"uint256",name:"quantityLimitPerWallet",type:"uint256"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],internalType:"struct IDrop.AllowlistProof",name:"_allowlistProof",type:"tuple"},{internalType:"bytes",name:"_data",type:"bytes"}],name:"claim",outputs:[],stateMutability:"payable",type:"function"},{inputs:[],name:"claimCondition",outputs:[{internalType:"uint256",name:"currentStartId",type:"uint256"},{internalType:"uint256",name:"count",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"contractType",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"pure",type:"function"},{inputs:[],name:"contractURI",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"contractVersion",outputs:[{internalType:"uint8",name:"",type:"uint8"}],stateMutability:"pure",type:"function"},{inputs:[],name:"decimals",outputs:[{internalType:"uint8",name:"",type:"uint8"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"spender",type:"address"},{internalType:"uint256",name:"subtractedValue",type:"uint256"}],name:"decreaseAllowance",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"delegatee",type:"address"}],name:"delegate",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"delegatee",type:"address"},{internalType:"uint256",name:"nonce",type:"uint256"},{internalType:"uint256",name:"expiry",type:"uint256"},{internalType:"uint8",name:"v",type:"uint8"},{internalType:"bytes32",name:"r",type:"bytes32"},{internalType:"bytes32",name:"s",type:"bytes32"}],name:"delegateBySig",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"delegates",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"getActiveClaimConditionId",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_conditionId",type:"uint256"}],name:"getClaimConditionById",outputs:[{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerWallet",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"string",name:"metadata",type:"string"}],internalType:"struct IClaimCondition.ClaimCondition",name:"condition",type:"tuple"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"blockNumber",type:"uint256"}],name:"getPastTotalSupply",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint256",name:"blockNumber",type:"uint256"}],name:"getPastVotes",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"getPlatformFeeInfo",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleAdmin",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"uint256",name:"index",type:"uint256"}],name:"getRoleMember",outputs:[{internalType:"address",name:"member",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleMemberCount",outputs:[{internalType:"uint256",name:"count",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_conditionId",type:"uint256"},{internalType:"address",name:"_claimer",type:"address"}],name:"getSupplyClaimedByWallet",outputs:[{internalType:"uint256",name:"supplyClaimedByWallet",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"getVotes",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"grantRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRole",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRoleWithSwitch",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"spender",type:"address"},{internalType:"uint256",name:"addedValue",type:"uint256"}],name:"increaseAllowance",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_defaultAdmin",type:"address"},{internalType:"string",name:"_name",type:"string"},{internalType:"string",name:"_symbol",type:"string"},{internalType:"string",name:"_contractURI",type:"string"},{internalType:"address[]",name:"_trustedForwarders",type:"address[]"},{internalType:"address",name:"_saleRecipient",type:"address"},{internalType:"address",name:"_platformFeeRecipient",type:"address"},{internalType:"uint128",name:"_platformFeeBps",type:"uint128"}],name:"initialize",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"forwarder",type:"address"}],name:"isTrustedForwarder",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"maxTotalSupply",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes[]",name:"data",type:"bytes[]"}],name:"multicall",outputs:[{internalType:"bytes[]",name:"results",type:"bytes[]"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"name",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"}],name:"nonces",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"numCheckpoints",outputs:[{internalType:"uint32",name:"",type:"uint32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"address",name:"spender",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"uint256",name:"deadline",type:"uint256"},{internalType:"uint8",name:"v",type:"uint8"},{internalType:"bytes32",name:"r",type:"bytes32"},{internalType:"bytes32",name:"s",type:"bytes32"}],name:"permit",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"primarySaleRecipient",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"renounceRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"revokeRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerWallet",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"string",name:"metadata",type:"string"}],internalType:"struct IClaimCondition.ClaimCondition[]",name:"_conditions",type:"tuple[]"},{internalType:"bool",name:"_resetClaimEligibility",type:"bool"}],name:"setClaimConditions",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"string",name:"_uri",type:"string"}],name:"setContractURI",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_maxTotalSupply",type:"uint256"}],name:"setMaxTotalSupply",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_platformFeeRecipient",type:"address"},{internalType:"uint256",name:"_platformFeeBps",type:"uint256"}],name:"setPlatformFeeInfo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_saleRecipient",type:"address"}],name:"setPrimarySaleRecipient",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"symbol",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"totalSupply",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"transfer",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"transferFrom",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_conditionId",type:"uint256"},{internalType:"address",name:"_claimer",type:"address"},{internalType:"uint256",name:"_quantity",type:"uint256"},{internalType:"address",name:"_currency",type:"address"},{internalType:"uint256",name:"_pricePerToken",type:"uint256"},{components:[{internalType:"bytes32[]",name:"proof",type:"bytes32[]"},{internalType:"uint256",name:"quantityLimitPerWallet",type:"uint256"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],internalType:"struct IDrop.AllowlistProof",name:"_allowlistProof",type:"tuple"}],name:"verifyClaim",outputs:[{internalType:"bool",name:"isOverride",type:"bool"}],stateMutability:"view",type:"function"}]});var sV=O((uln,Xir)=>{Xir.exports=[{inputs:[],stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"spender",type:"address"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"}],name:"Approval",type:"event"},{anonymous:!1,inputs:[{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerTransaction",type:"uint256"},{internalType:"uint256",name:"waitTimeInSecondsBetweenClaims",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],indexed:!1,internalType:"struct IDropClaimCondition_V2.ClaimCondition[]",name:"claimConditions",type:"tuple[]"}],name:"ClaimConditionsUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"string",name:"prevURI",type:"string"},{indexed:!1,internalType:"string",name:"newURI",type:"string"}],name:"ContractURIUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"delegator",type:"address"},{indexed:!0,internalType:"address",name:"fromDelegate",type:"address"},{indexed:!0,internalType:"address",name:"toDelegate",type:"address"}],name:"DelegateChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"delegate",type:"address"},{indexed:!1,internalType:"uint256",name:"previousBalance",type:"uint256"},{indexed:!1,internalType:"uint256",name:"newBalance",type:"uint256"}],name:"DelegateVotesChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint8",name:"version",type:"uint8"}],name:"Initialized",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"maxTotalSupply",type:"uint256"}],name:"MaxTotalSupplyUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"count",type:"uint256"}],name:"MaxWalletClaimCountUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"platformFeeRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"platformFeeBps",type:"uint256"}],name:"PlatformFeeInfoUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"recipient",type:"address"}],name:"PrimarySaleRecipientUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"previousAdminRole",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"newAdminRole",type:"bytes32"}],name:"RoleAdminChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleGranted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleRevoked",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"claimConditionIndex",type:"uint256"},{indexed:!0,internalType:"address",name:"claimer",type:"address"},{indexed:!0,internalType:"address",name:"receiver",type:"address"},{indexed:!1,internalType:"uint256",name:"quantityClaimed",type:"uint256"}],name:"TokensClaimed",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"}],name:"Transfer",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"wallet",type:"address"},{indexed:!1,internalType:"uint256",name:"count",type:"uint256"}],name:"WalletClaimCountUpdated",type:"event"},{inputs:[],name:"DEFAULT_ADMIN_ROLE",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"DOMAIN_SEPARATOR",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"address",name:"spender",type:"address"}],name:"allowance",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"spender",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"approve",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"balanceOf",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"amount",type:"uint256"}],name:"burn",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"burnFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint32",name:"pos",type:"uint32"}],name:"checkpoints",outputs:[{components:[{internalType:"uint32",name:"fromBlock",type:"uint32"},{internalType:"uint224",name:"votes",type:"uint224"}],internalType:"struct ERC20VotesUpgradeable.Checkpoint",name:"",type:"tuple"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_receiver",type:"address"},{internalType:"uint256",name:"_quantity",type:"uint256"},{internalType:"address",name:"_currency",type:"address"},{internalType:"uint256",name:"_pricePerToken",type:"uint256"},{internalType:"bytes32[]",name:"_proofs",type:"bytes32[]"},{internalType:"uint256",name:"_proofMaxQuantityPerTransaction",type:"uint256"}],name:"claim",outputs:[],stateMutability:"payable",type:"function"},{inputs:[],name:"claimCondition",outputs:[{internalType:"uint256",name:"currentStartId",type:"uint256"},{internalType:"uint256",name:"count",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"contractType",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"pure",type:"function"},{inputs:[],name:"contractURI",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"contractVersion",outputs:[{internalType:"uint8",name:"",type:"uint8"}],stateMutability:"pure",type:"function"},{inputs:[],name:"decimals",outputs:[{internalType:"uint8",name:"",type:"uint8"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"spender",type:"address"},{internalType:"uint256",name:"subtractedValue",type:"uint256"}],name:"decreaseAllowance",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"delegatee",type:"address"}],name:"delegate",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"delegatee",type:"address"},{internalType:"uint256",name:"nonce",type:"uint256"},{internalType:"uint256",name:"expiry",type:"uint256"},{internalType:"uint8",name:"v",type:"uint8"},{internalType:"bytes32",name:"r",type:"bytes32"},{internalType:"bytes32",name:"s",type:"bytes32"}],name:"delegateBySig",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"delegates",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"getActiveClaimConditionId",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_conditionId",type:"uint256"}],name:"getClaimConditionById",outputs:[{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerTransaction",type:"uint256"},{internalType:"uint256",name:"waitTimeInSecondsBetweenClaims",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],internalType:"struct IDropClaimCondition_V2.ClaimCondition",name:"condition",type:"tuple"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_conditionId",type:"uint256"},{internalType:"address",name:"_claimer",type:"address"}],name:"getClaimTimestamp",outputs:[{internalType:"uint256",name:"lastClaimTimestamp",type:"uint256"},{internalType:"uint256",name:"nextValidClaimTimestamp",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"blockNumber",type:"uint256"}],name:"getPastTotalSupply",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint256",name:"blockNumber",type:"uint256"}],name:"getPastVotes",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"getPlatformFeeInfo",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleAdmin",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"uint256",name:"index",type:"uint256"}],name:"getRoleMember",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleMemberCount",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"getVotes",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"grantRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRole",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"spender",type:"address"},{internalType:"uint256",name:"addedValue",type:"uint256"}],name:"increaseAllowance",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_defaultAdmin",type:"address"},{internalType:"string",name:"_name",type:"string"},{internalType:"string",name:"_symbol",type:"string"},{internalType:"string",name:"_contractURI",type:"string"},{internalType:"address[]",name:"_trustedForwarders",type:"address[]"},{internalType:"address",name:"_primarySaleRecipient",type:"address"},{internalType:"address",name:"_platformFeeRecipient",type:"address"},{internalType:"uint256",name:"_platformFeeBps",type:"uint256"}],name:"initialize",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"forwarder",type:"address"}],name:"isTrustedForwarder",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"maxTotalSupply",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"maxWalletClaimCount",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes[]",name:"data",type:"bytes[]"}],name:"multicall",outputs:[{internalType:"bytes[]",name:"results",type:"bytes[]"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"name",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"}],name:"nonces",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"numCheckpoints",outputs:[{internalType:"uint32",name:"",type:"uint32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"address",name:"spender",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"uint256",name:"deadline",type:"uint256"},{internalType:"uint8",name:"v",type:"uint8"},{internalType:"bytes32",name:"r",type:"bytes32"},{internalType:"bytes32",name:"s",type:"bytes32"}],name:"permit",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"primarySaleRecipient",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"renounceRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"revokeRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerTransaction",type:"uint256"},{internalType:"uint256",name:"waitTimeInSecondsBetweenClaims",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],internalType:"struct IDropClaimCondition_V2.ClaimCondition[]",name:"_phases",type:"tuple[]"},{internalType:"bool",name:"_resetClaimEligibility",type:"bool"}],name:"setClaimConditions",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"string",name:"_uri",type:"string"}],name:"setContractURI",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_maxTotalSupply",type:"uint256"}],name:"setMaxTotalSupply",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_count",type:"uint256"}],name:"setMaxWalletClaimCount",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_platformFeeRecipient",type:"address"},{internalType:"uint256",name:"_platformFeeBps",type:"uint256"}],name:"setPlatformFeeInfo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_saleRecipient",type:"address"}],name:"setPrimarySaleRecipient",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_claimer",type:"address"},{internalType:"uint256",name:"_count",type:"uint256"}],name:"setWalletClaimCount",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes4",name:"interfaceId",type:"bytes4"}],name:"supportsInterface",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"symbol",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"totalSupply",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"transfer",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"transferFrom",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_conditionId",type:"uint256"},{internalType:"address",name:"_claimer",type:"address"},{internalType:"uint256",name:"_quantity",type:"uint256"},{internalType:"address",name:"_currency",type:"address"},{internalType:"uint256",name:"_pricePerToken",type:"uint256"},{internalType:"bool",name:"verifyMaxQuantityPerTransaction",type:"bool"}],name:"verifyClaim",outputs:[],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_conditionId",type:"uint256"},{internalType:"address",name:"_claimer",type:"address"},{internalType:"uint256",name:"_quantity",type:"uint256"},{internalType:"bytes32[]",name:"_proofs",type:"bytes32[]"},{internalType:"uint256",name:"_proofMaxQuantityPerTransaction",type:"uint256"}],name:"verifyClaimMerkleProof",outputs:[{internalType:"bool",name:"validMerkleProof",type:"bool"},{internalType:"uint256",name:"merkleProofIndex",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"}],name:"walletClaimCount",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"}]});var zUe=O(jUe=>{"use strict";x();T();var dd=Go(),Tu=Uc(),Yir=_t();Xr();Pn();Un();Wn();jn();zn();Hn();Vn();Gn();Zn();Jn();Kn();Qn();Xn();Yn();$n();ea();ta();ra();na();aa();ia();sa();oa();ca();ua();la();da();pa();ha();fa();ma();ya();ga();va();ba();wa();xa();Ta();_a();Ca();Ea();ka();Sa();Aa();Ma();Ia();Pa();Ra();En();Na();Oa();La();On();Ba();qa();Da();Fa();Ua();Wa();ja();za();Ha();Va();Ga();Za();Ja();Ka();Qa();var gw=class extends Tu.StandardErc20{constructor(e,t,n){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},i=arguments.length>4?arguments[4]:void 0,s=arguments.length>5?arguments[5]:void 0,c=arguments.length>6&&arguments[6]!==void 0?arguments[6]:new Tu.ContractWrapper(e,t,i,a);super(c,n,s),dd._defineProperty(this,"abi",void 0),dd._defineProperty(this,"metadata",void 0),dd._defineProperty(this,"roles",void 0),dd._defineProperty(this,"encoder",void 0),dd._defineProperty(this,"estimator",void 0),dd._defineProperty(this,"history",void 0),dd._defineProperty(this,"events",void 0),dd._defineProperty(this,"platformFees",void 0),dd._defineProperty(this,"sales",void 0),dd._defineProperty(this,"signature",void 0),dd._defineProperty(this,"interceptor",void 0),this.abi=i,this.metadata=new Tu.ContractMetadata(this.contractWrapper,Tu.TokenErc20ContractSchema,this.storage),this.roles=new Tu.ContractRoles(this.contractWrapper,gw.contractRoles),this.sales=new Tu.ContractPrimarySale(this.contractWrapper),this.events=new Tu.ContractEvents(this.contractWrapper),this.history=new Tu.TokenERC20History(this.contractWrapper,this.events),this.encoder=new Tu.ContractEncoder(this.contractWrapper),this.estimator=new Tu.GasCostEstimator(this.contractWrapper),this.platformFees=new Tu.ContractPlatformFee(this.contractWrapper),this.interceptor=new Tu.ContractInterceptor(this.contractWrapper),this.signature=new Tu.Erc20SignatureMintable(this.contractWrapper,this.roles)}async getVoteBalance(){return await this.getVoteBalanceOf(await this.contractWrapper.getSignerAddress())}async getVoteBalanceOf(e){return await this.erc20.getValue(await this.contractWrapper.readContract.getVotes(e))}async getDelegation(){return await this.getDelegationOf(await this.contractWrapper.getSignerAddress())}async getDelegationOf(e){return await this.contractWrapper.readContract.delegates(e)}async isTransferRestricted(){return!await this.contractWrapper.readContract.hasRole(Tu.getRoleHash("transfer"),Yir.constants.AddressZero)}async mint(e){return this.erc20.mint(e)}async mintTo(e,t){return this.erc20.mintTo(e,t)}async getMintTransaction(e,t){return this.erc20.getMintTransaction(e,t)}async mintBatchTo(e){return this.erc20.mintBatchTo(e)}async delegateTo(e){return{receipt:await this.contractWrapper.sendTransaction("delegate",[e])}}async burn(e){return this.erc20.burn(e)}async burnFrom(e,t){return this.erc20.burnFrom(e,t)}async call(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a{$ir.exports=[{inputs:[],stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"spender",type:"address"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"}],name:"Approval",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"delegator",type:"address"},{indexed:!0,internalType:"address",name:"fromDelegate",type:"address"},{indexed:!0,internalType:"address",name:"toDelegate",type:"address"}],name:"DelegateChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"delegate",type:"address"},{indexed:!1,internalType:"uint256",name:"previousBalance",type:"uint256"},{indexed:!1,internalType:"uint256",name:"newBalance",type:"uint256"}],name:"DelegateVotesChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint8",name:"version",type:"uint8"}],name:"Initialized",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"platformFeeRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"platformFeeBps",type:"uint256"}],name:"PlatformFeeInfoUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"recipient",type:"address"}],name:"PrimarySaleRecipientUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"previousAdminRole",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"newAdminRole",type:"bytes32"}],name:"RoleAdminChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleGranted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleRevoked",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"mintedTo",type:"address"},{indexed:!1,internalType:"uint256",name:"quantityMinted",type:"uint256"}],name:"TokensMinted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"signer",type:"address"},{indexed:!0,internalType:"address",name:"mintedTo",type:"address"},{components:[{internalType:"address",name:"to",type:"address"},{internalType:"address",name:"primarySaleRecipient",type:"address"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"uint256",name:"price",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint128",name:"validityStartTimestamp",type:"uint128"},{internalType:"uint128",name:"validityEndTimestamp",type:"uint128"},{internalType:"bytes32",name:"uid",type:"bytes32"}],indexed:!1,internalType:"struct ITokenERC20.MintRequest",name:"mintRequest",type:"tuple"}],name:"TokensMintedWithSignature",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"}],name:"Transfer",type:"event"},{inputs:[],name:"DEFAULT_ADMIN_ROLE",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"DOMAIN_SEPARATOR",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"address",name:"spender",type:"address"}],name:"allowance",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"spender",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"approve",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"balanceOf",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"amount",type:"uint256"}],name:"burn",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"burnFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint32",name:"pos",type:"uint32"}],name:"checkpoints",outputs:[{components:[{internalType:"uint32",name:"fromBlock",type:"uint32"},{internalType:"uint224",name:"votes",type:"uint224"}],internalType:"struct ERC20VotesUpgradeable.Checkpoint",name:"",type:"tuple"}],stateMutability:"view",type:"function"},{inputs:[],name:"contractType",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"pure",type:"function"},{inputs:[],name:"contractURI",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"contractVersion",outputs:[{internalType:"uint8",name:"",type:"uint8"}],stateMutability:"pure",type:"function"},{inputs:[],name:"decimals",outputs:[{internalType:"uint8",name:"",type:"uint8"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"spender",type:"address"},{internalType:"uint256",name:"subtractedValue",type:"uint256"}],name:"decreaseAllowance",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"delegatee",type:"address"}],name:"delegate",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"delegatee",type:"address"},{internalType:"uint256",name:"nonce",type:"uint256"},{internalType:"uint256",name:"expiry",type:"uint256"},{internalType:"uint8",name:"v",type:"uint8"},{internalType:"bytes32",name:"r",type:"bytes32"},{internalType:"bytes32",name:"s",type:"bytes32"}],name:"delegateBySig",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"delegates",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"blockNumber",type:"uint256"}],name:"getPastTotalSupply",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint256",name:"blockNumber",type:"uint256"}],name:"getPastVotes",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"getPlatformFeeInfo",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleAdmin",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"uint256",name:"index",type:"uint256"}],name:"getRoleMember",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleMemberCount",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"getVotes",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"grantRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRole",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"spender",type:"address"},{internalType:"uint256",name:"addedValue",type:"uint256"}],name:"increaseAllowance",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_defaultAdmin",type:"address"},{internalType:"string",name:"_name",type:"string"},{internalType:"string",name:"_symbol",type:"string"},{internalType:"string",name:"_contractURI",type:"string"},{internalType:"address[]",name:"_trustedForwarders",type:"address[]"},{internalType:"address",name:"_primarySaleRecipient",type:"address"},{internalType:"address",name:"_platformFeeRecipient",type:"address"},{internalType:"uint256",name:"_platformFeeBps",type:"uint256"}],name:"initialize",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"forwarder",type:"address"}],name:"isTrustedForwarder",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"mintTo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{internalType:"address",name:"to",type:"address"},{internalType:"address",name:"primarySaleRecipient",type:"address"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"uint256",name:"price",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint128",name:"validityStartTimestamp",type:"uint128"},{internalType:"uint128",name:"validityEndTimestamp",type:"uint128"},{internalType:"bytes32",name:"uid",type:"bytes32"}],internalType:"struct ITokenERC20.MintRequest",name:"_req",type:"tuple"},{internalType:"bytes",name:"_signature",type:"bytes"}],name:"mintWithSignature",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"bytes[]",name:"data",type:"bytes[]"}],name:"multicall",outputs:[{internalType:"bytes[]",name:"results",type:"bytes[]"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"name",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"}],name:"nonces",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"numCheckpoints",outputs:[{internalType:"uint32",name:"",type:"uint32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"address",name:"spender",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"uint256",name:"deadline",type:"uint256"},{internalType:"uint8",name:"v",type:"uint8"},{internalType:"bytes32",name:"r",type:"bytes32"},{internalType:"bytes32",name:"s",type:"bytes32"}],name:"permit",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"primarySaleRecipient",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"renounceRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"revokeRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"string",name:"_uri",type:"string"}],name:"setContractURI",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_platformFeeRecipient",type:"address"},{internalType:"uint256",name:"_platformFeeBps",type:"uint256"}],name:"setPlatformFeeInfo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_saleRecipient",type:"address"}],name:"setPrimarySaleRecipient",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes4",name:"interfaceId",type:"bytes4"}],name:"supportsInterface",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"symbol",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"totalSupply",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"transfer",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"transferFrom",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{internalType:"address",name:"to",type:"address"},{internalType:"address",name:"primarySaleRecipient",type:"address"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"uint256",name:"price",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint128",name:"validityStartTimestamp",type:"uint128"},{internalType:"uint128",name:"validityEndTimestamp",type:"uint128"},{internalType:"bytes32",name:"uid",type:"bytes32"}],internalType:"struct ITokenERC20.MintRequest",name:"_req",type:"tuple"},{internalType:"bytes",name:"_signature",type:"bytes"}],name:"verify",outputs:[{internalType:"bool",name:"",type:"bool"},{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"}]});var VUe=O(HUe=>{"use strict";x();T();var em=Go(),pd=Uc(),esr=Kn(),QT=_t();Xr();Pn();Un();Wn();jn();zn();Hn();Vn();Gn();Zn();Jn();Qn();Xn();Yn();$n();ea();ta();ra();na();aa();ia();sa();oa();ca();ua();la();da();pa();ha();fa();ma();ya();ga();va();ba();wa();xa();Ta();_a();Ca();Ea();ka();Sa();Aa();Ma();Ia();Pa();Ra();En();Na();Oa();La();On();Ba();qa();Da();Fa();Ua();Wa();ja();za();Ha();Va();Ga();Za();Ja();Ka();Qa();function tsr(r){return r&&r.__esModule?r:{default:r}}var rsr=tsr(esr),cV=class{get chainId(){return this._chainId}constructor(e,t,n){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},i=arguments.length>4?arguments[4]:void 0,s=arguments.length>5?arguments[5]:void 0,c=arguments.length>6&&arguments[6]!==void 0?arguments[6]:new pd.ContractWrapper(e,t,i,a);em._defineProperty(this,"contractWrapper",void 0),em._defineProperty(this,"storage",void 0),em._defineProperty(this,"abi",void 0),em._defineProperty(this,"metadata",void 0),em._defineProperty(this,"encoder",void 0),em._defineProperty(this,"estimator",void 0),em._defineProperty(this,"events",void 0),em._defineProperty(this,"interceptor",void 0),em._defineProperty(this,"_chainId",void 0),this._chainId=s,this.abi=i,this.contractWrapper=c,this.storage=n,this.metadata=new pd.ContractMetadata(this.contractWrapper,pd.VoteContractSchema,this.storage),this.encoder=new pd.ContractEncoder(this.contractWrapper),this.estimator=new pd.GasCostEstimator(this.contractWrapper),this.events=new pd.ContractEvents(this.contractWrapper),this.interceptor=new pd.ContractInterceptor(this.contractWrapper)}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}async get(e){let n=(await this.getAll()).filter(a=>a.proposalId.eq(QT.BigNumber.from(e)));if(n.length===0)throw new Error("proposal not found");return n[0]}async getAll(){return Promise.all((await this.contractWrapper.readContract.getAllProposals()).map(async e=>({proposalId:e.proposalId,proposer:e.proposer,description:e.description,startBlock:e.startBlock,endBlock:e.endBlock,state:await this.contractWrapper.readContract.state(e.proposalId),votes:await this.getProposalVotes(e.proposalId),executions:e[3].map((t,n)=>({toAddress:e.targets[n],nativeTokenValue:t,transactionData:e.calldatas[n]}))})))}async getProposalVotes(e){let t=await this.contractWrapper.readContract.proposalVotes(e);return[{type:pd.VoteType.Against,label:"Against",count:t.againstVotes},{type:pd.VoteType.For,label:"For",count:t.forVotes},{type:pd.VoteType.Abstain,label:"Abstain",count:t.abstainVotes}]}async hasVoted(e,t){return t||(t=await this.contractWrapper.getSignerAddress()),this.contractWrapper.readContract.hasVoted(e,t)}async canExecute(e){await this.ensureExists(e);let t=await this.get(e),n=t.executions.map(c=>c.toAddress),a=t.executions.map(c=>c.nativeTokenValue),i=t.executions.map(c=>c.transactionData),s=QT.ethers.utils.id(t.description);try{return await this.contractWrapper.callStatic().execute(n,a,i,s),!0}catch{return!1}}async balance(){let e=await this.contractWrapper.readContract.provider.getBalance(this.contractWrapper.readContract.address);return{name:"",symbol:"",decimals:18,value:e,displayValue:QT.ethers.utils.formatUnits(e,18)}}async balanceOfToken(e){let t=new QT.Contract(e,rsr.default,this.contractWrapper.getProvider());return await pd.fetchCurrencyValue(this.contractWrapper.getProvider(),e,await t.balanceOf(this.contractWrapper.readContract.address))}async ensureExists(e){try{await this.contractWrapper.readContract.state(e)}catch{throw Error(`Proposal ${e} not found`)}}async settings(){let[e,t,n,a,i]=await Promise.all([this.contractWrapper.readContract.votingDelay(),this.contractWrapper.readContract.votingPeriod(),this.contractWrapper.readContract.token(),this.contractWrapper.readContract["quorumNumerator()"](),this.contractWrapper.readContract.proposalThreshold()]),s=await pd.fetchCurrencyMetadata(this.contractWrapper.getProvider(),n);return{votingDelay:e.toString(),votingPeriod:t.toString(),votingTokenAddress:n,votingTokenMetadata:s,votingQuorumFraction:a.toString(),proposalTokenThreshold:i.toString()}}async propose(e,t){t||(t=[{toAddress:this.contractWrapper.readContract.address,nativeTokenValue:0,transactionData:"0x"}]);let n=t.map(l=>l.toAddress),a=t.map(l=>l.nativeTokenValue),i=t.map(l=>l.transactionData),s=await this.contractWrapper.sendTransaction("propose",[n,a,i,e]);return{id:this.contractWrapper.parseLogs("ProposalCreated",s?.logs)[0].args.proposalId,receipt:s}}async vote(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"";return await this.ensureExists(e),{receipt:await this.contractWrapper.sendTransaction("castVoteWithReason",[e,t,n])}}async execute(e){await this.ensureExists(e);let t=await this.get(e),n=t.executions.map(c=>c.toAddress),a=t.executions.map(c=>c.nativeTokenValue),i=t.executions.map(c=>c.transactionData),s=QT.ethers.utils.id(t.description);return{receipt:await this.contractWrapper.sendTransaction("execute",[n,a,i,s])}}async call(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a{nsr.exports=[{inputs:[],stateMutability:"nonpayable",type:"constructor"},{inputs:[],name:"Empty",type:"error"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint8",name:"version",type:"uint8"}],name:"Initialized",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"proposalId",type:"uint256"}],name:"ProposalCanceled",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"proposalId",type:"uint256"},{indexed:!1,internalType:"address",name:"proposer",type:"address"},{indexed:!1,internalType:"address[]",name:"targets",type:"address[]"},{indexed:!1,internalType:"uint256[]",name:"values",type:"uint256[]"},{indexed:!1,internalType:"string[]",name:"signatures",type:"string[]"},{indexed:!1,internalType:"bytes[]",name:"calldatas",type:"bytes[]"},{indexed:!1,internalType:"uint256",name:"startBlock",type:"uint256"},{indexed:!1,internalType:"uint256",name:"endBlock",type:"uint256"},{indexed:!1,internalType:"string",name:"description",type:"string"}],name:"ProposalCreated",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"proposalId",type:"uint256"}],name:"ProposalExecuted",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"oldProposalThreshold",type:"uint256"},{indexed:!1,internalType:"uint256",name:"newProposalThreshold",type:"uint256"}],name:"ProposalThresholdSet",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"oldQuorumNumerator",type:"uint256"},{indexed:!1,internalType:"uint256",name:"newQuorumNumerator",type:"uint256"}],name:"QuorumNumeratorUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"voter",type:"address"},{indexed:!1,internalType:"uint256",name:"proposalId",type:"uint256"},{indexed:!1,internalType:"uint8",name:"support",type:"uint8"},{indexed:!1,internalType:"uint256",name:"weight",type:"uint256"},{indexed:!1,internalType:"string",name:"reason",type:"string"}],name:"VoteCast",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"voter",type:"address"},{indexed:!1,internalType:"uint256",name:"proposalId",type:"uint256"},{indexed:!1,internalType:"uint8",name:"support",type:"uint8"},{indexed:!1,internalType:"uint256",name:"weight",type:"uint256"},{indexed:!1,internalType:"string",name:"reason",type:"string"},{indexed:!1,internalType:"bytes",name:"params",type:"bytes"}],name:"VoteCastWithParams",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"oldVotingDelay",type:"uint256"},{indexed:!1,internalType:"uint256",name:"newVotingDelay",type:"uint256"}],name:"VotingDelaySet",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"oldVotingPeriod",type:"uint256"},{indexed:!1,internalType:"uint256",name:"newVotingPeriod",type:"uint256"}],name:"VotingPeriodSet",type:"event"},{inputs:[],name:"BALLOT_TYPEHASH",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"COUNTING_MODE",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"pure",type:"function"},{inputs:[],name:"EXTENDED_BALLOT_TYPEHASH",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"proposalId",type:"uint256"},{internalType:"uint8",name:"support",type:"uint8"}],name:"castVote",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"proposalId",type:"uint256"},{internalType:"uint8",name:"support",type:"uint8"},{internalType:"uint8",name:"v",type:"uint8"},{internalType:"bytes32",name:"r",type:"bytes32"},{internalType:"bytes32",name:"s",type:"bytes32"}],name:"castVoteBySig",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"proposalId",type:"uint256"},{internalType:"uint8",name:"support",type:"uint8"},{internalType:"string",name:"reason",type:"string"}],name:"castVoteWithReason",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"proposalId",type:"uint256"},{internalType:"uint8",name:"support",type:"uint8"},{internalType:"string",name:"reason",type:"string"},{internalType:"bytes",name:"params",type:"bytes"}],name:"castVoteWithReasonAndParams",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"proposalId",type:"uint256"},{internalType:"uint8",name:"support",type:"uint8"},{internalType:"string",name:"reason",type:"string"},{internalType:"bytes",name:"params",type:"bytes"},{internalType:"uint8",name:"v",type:"uint8"},{internalType:"bytes32",name:"r",type:"bytes32"},{internalType:"bytes32",name:"s",type:"bytes32"}],name:"castVoteWithReasonAndParamsBySig",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"contractType",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"pure",type:"function"},{inputs:[],name:"contractURI",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"contractVersion",outputs:[{internalType:"uint8",name:"",type:"uint8"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"address[]",name:"targets",type:"address[]"},{internalType:"uint256[]",name:"values",type:"uint256[]"},{internalType:"bytes[]",name:"calldatas",type:"bytes[]"},{internalType:"bytes32",name:"descriptionHash",type:"bytes32"}],name:"execute",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"payable",type:"function"},{inputs:[],name:"getAllProposals",outputs:[{components:[{internalType:"uint256",name:"proposalId",type:"uint256"},{internalType:"address",name:"proposer",type:"address"},{internalType:"address[]",name:"targets",type:"address[]"},{internalType:"uint256[]",name:"values",type:"uint256[]"},{internalType:"string[]",name:"signatures",type:"string[]"},{internalType:"bytes[]",name:"calldatas",type:"bytes[]"},{internalType:"uint256",name:"startBlock",type:"uint256"},{internalType:"uint256",name:"endBlock",type:"uint256"},{internalType:"string",name:"description",type:"string"}],internalType:"struct VoteERC20.Proposal[]",name:"allProposals",type:"tuple[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint256",name:"blockNumber",type:"uint256"}],name:"getVotes",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint256",name:"blockNumber",type:"uint256"},{internalType:"bytes",name:"params",type:"bytes"}],name:"getVotesWithParams",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"proposalId",type:"uint256"},{internalType:"address",name:"account",type:"address"}],name:"hasVoted",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address[]",name:"targets",type:"address[]"},{internalType:"uint256[]",name:"values",type:"uint256[]"},{internalType:"bytes[]",name:"calldatas",type:"bytes[]"},{internalType:"bytes32",name:"descriptionHash",type:"bytes32"}],name:"hashProposal",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"string",name:"_name",type:"string"},{internalType:"string",name:"_contractURI",type:"string"},{internalType:"address[]",name:"_trustedForwarders",type:"address[]"},{internalType:"address",name:"_token",type:"address"},{internalType:"uint256",name:"_initialVotingDelay",type:"uint256"},{internalType:"uint256",name:"_initialVotingPeriod",type:"uint256"},{internalType:"uint256",name:"_initialProposalThreshold",type:"uint256"},{internalType:"uint256",name:"_initialVoteQuorumFraction",type:"uint256"}],name:"initialize",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"forwarder",type:"address"}],name:"isTrustedForwarder",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"name",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"},{internalType:"address",name:"",type:"address"},{internalType:"uint256[]",name:"",type:"uint256[]"},{internalType:"uint256[]",name:"",type:"uint256[]"},{internalType:"bytes",name:"",type:"bytes"}],name:"onERC1155BatchReceived",outputs:[{internalType:"bytes4",name:"",type:"bytes4"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"},{internalType:"address",name:"",type:"address"},{internalType:"uint256",name:"",type:"uint256"},{internalType:"uint256",name:"",type:"uint256"},{internalType:"bytes",name:"",type:"bytes"}],name:"onERC1155Received",outputs:[{internalType:"bytes4",name:"",type:"bytes4"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"},{internalType:"address",name:"",type:"address"},{internalType:"uint256",name:"",type:"uint256"},{internalType:"bytes",name:"",type:"bytes"}],name:"onERC721Received",outputs:[{internalType:"bytes4",name:"",type:"bytes4"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"proposalId",type:"uint256"}],name:"proposalDeadline",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"proposalIndex",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"proposalId",type:"uint256"}],name:"proposalSnapshot",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"proposalThreshold",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"proposalId",type:"uint256"}],name:"proposalVotes",outputs:[{internalType:"uint256",name:"againstVotes",type:"uint256"},{internalType:"uint256",name:"forVotes",type:"uint256"},{internalType:"uint256",name:"abstainVotes",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"}],name:"proposals",outputs:[{internalType:"uint256",name:"proposalId",type:"uint256"},{internalType:"address",name:"proposer",type:"address"},{internalType:"uint256",name:"startBlock",type:"uint256"},{internalType:"uint256",name:"endBlock",type:"uint256"},{internalType:"string",name:"description",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address[]",name:"targets",type:"address[]"},{internalType:"uint256[]",name:"values",type:"uint256[]"},{internalType:"bytes[]",name:"calldatas",type:"bytes[]"},{internalType:"string",name:"description",type:"string"}],name:"propose",outputs:[{internalType:"uint256",name:"proposalId",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"blockNumber",type:"uint256"}],name:"quorum",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"quorumDenominator",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"blockNumber",type:"uint256"}],name:"quorumNumerator",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"quorumNumerator",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"target",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"}],name:"relay",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"string",name:"uri",type:"string"}],name:"setContractURI",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"newProposalThreshold",type:"uint256"}],name:"setProposalThreshold",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"newVotingDelay",type:"uint256"}],name:"setVotingDelay",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"newVotingPeriod",type:"uint256"}],name:"setVotingPeriod",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"proposalId",type:"uint256"}],name:"state",outputs:[{internalType:"enum IGovernorUpgradeable.ProposalState",name:"",type:"uint8"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes4",name:"interfaceId",type:"bytes4"}],name:"supportsInterface",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"token",outputs:[{internalType:"contract IVotesUpgradeable",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"newQuorumNumerator",type:"uint256"}],name:"updateQuorumNumerator",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"version",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"votingDelay",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"votingPeriod",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{stateMutability:"payable",type:"receive"}]});var ZUe=O(GUe=>{"use strict";x();T();function asr(r,e){if(typeof r!="object"||r===null)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var n=t.call(r,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}function isr(r){var e=asr(r,"string");return typeof e=="symbol"?e:String(e)}function ssr(r,e,t){return e=isr(e),e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}GUe._defineProperty=ssr});var QUe=O(dV=>{"use strict";x();T();Object.defineProperty(dV,"__esModule",{value:!0});var JUe=ZUe(),lV=_t(),L9=[{inputs:[{internalType:"address",name:"_logic",type:"address"},{internalType:"bytes",name:"_data",type:"bytes"}],stateMutability:"payable",type:"constructor"},{stateMutability:"payable",type:"fallback"},{stateMutability:"payable",type:"receive"}],KUe="0x60806040526040516106ab3803806106ab83398101604081905261002291610261565b61004d60017f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbd61032f565b6000805160206106648339815191521461006957610069610354565b8161008e60008051602061066483398151915260001b6100d060201b6100521760201c565b80546001600160a01b0319166001600160a01b03929092169190911790558051156100c9576100c782826100d360201b6100551760201c565b505b50506103b9565b90565b60606100f88383604051806060016040528060278152602001610684602791396100ff565b9392505050565b60606001600160a01b0384163b61016c5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f6044820152651b9d1c9858dd60d21b60648201526084015b60405180910390fd5b600080856001600160a01b031685604051610187919061036a565b600060405180830381855af49150503d80600081146101c2576040519150601f19603f3d011682016040523d82523d6000602084013e6101c7565b606091505b5090925090506101d88282866101e2565b9695505050505050565b606083156101f15750816100f8565b8251156102015782518084602001fd5b8160405162461bcd60e51b81526004016101639190610386565b634e487b7160e01b600052604160045260246000fd5b60005b8381101561024c578181015183820152602001610234565b8381111561025b576000848401525b50505050565b6000806040838503121561027457600080fd5b82516001600160a01b038116811461028b57600080fd5b60208401519092506001600160401b03808211156102a857600080fd5b818501915085601f8301126102bc57600080fd5b8151818111156102ce576102ce61021b565b604051601f8201601f19908116603f011681019083821181831017156102f6576102f661021b565b8160405282815288602084870101111561030f57600080fd5b610320836020830160208801610231565b80955050505050509250929050565b60008282101561034f57634e487b7160e01b600052601160045260246000fd5b500390565b634e487b7160e01b600052600160045260246000fd5b6000825161037c818460208701610231565b9190910192915050565b60208152600082518060208401526103a5816040850160208701610231565b601f01601f19169190910160400192915050565b61029c806103c86000396000f3fe60806040523661001357610011610017565b005b6100115b61005061004b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc546001600160a01b031690565b610081565b565b90565b606061007a8383604051806060016040528060278152602001610240602791396100a5565b9392505050565b3660008037600080366000845af43d6000803e8080156100a0573d6000f35b3d6000fd5b60606001600160a01b0384163b6101125760405162461bcd60e51b815260206004820152602660248201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f6044820152651b9d1c9858dd60d21b60648201526084015b60405180910390fd5b600080856001600160a01b03168560405161012d91906101f0565b600060405180830381855af49150503d8060008114610168576040519150601f19603f3d011682016040523d82523d6000602084013e61016d565b606091505b509150915061017d828286610187565b9695505050505050565b6060831561019657508161007a565b8251156101a65782518084602001fd5b8160405162461bcd60e51b8152600401610109919061020c565b60005b838110156101db5781810151838201526020016101c3565b838111156101ea576000848401525b50505050565b600082516102028184602087016101c0565b9190910192915050565b602081526000825180602084015261022b8160408501602087016101c0565b601f01601f1916919091016040019291505056fe416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a26469706673582212204937a0e09cafeb6e415715660a96a2b11857f3d8a0631bca133280d3480d69a564736f6c634300080c0033360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564",osr=r=>r.length>1,XT=class extends lV.ContractFactory{constructor(){for(var e=arguments.length,t=new Array(e),n=0;n{"use strict";x();T();function csr(r,e){if(typeof r!="object"||r===null)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var n=t.call(r,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}function usr(r){var e=csr(r,"string");return typeof e=="symbol"?e:String(e)}function lsr(r,e,t){return e=usr(e),e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}XUe._defineProperty=lsr});var tWe=O(hV=>{"use strict";x();T();Object.defineProperty(hV,"__esModule",{value:!0});var $Ue=YUe(),pV=_t(),B9=[{inputs:[{internalType:"address",name:"_logic",type:"address"},{internalType:"bytes",name:"_data",type:"bytes"}],stateMutability:"payable",type:"constructor"},{stateMutability:"payable",type:"fallback"},{stateMutability:"payable",type:"receive"}],eWe="0x60806040526040516106ab3803806106ab83398101604081905261002291610261565b61004d60017f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbd61032f565b6000805160206106648339815191521461006957610069610354565b8161008e60008051602061066483398151915260001b6100d060201b6100521760201c565b80546001600160a01b0319166001600160a01b03929092169190911790558051156100c9576100c782826100d360201b6100551760201c565b505b50506103b9565b90565b60606100f88383604051806060016040528060278152602001610684602791396100ff565b9392505050565b60606001600160a01b0384163b61016c5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f6044820152651b9d1c9858dd60d21b60648201526084015b60405180910390fd5b600080856001600160a01b031685604051610187919061036a565b600060405180830381855af49150503d80600081146101c2576040519150601f19603f3d011682016040523d82523d6000602084013e6101c7565b606091505b5090925090506101d88282866101e2565b9695505050505050565b606083156101f15750816100f8565b8251156102015782518084602001fd5b8160405162461bcd60e51b81526004016101639190610386565b634e487b7160e01b600052604160045260246000fd5b60005b8381101561024c578181015183820152602001610234565b8381111561025b576000848401525b50505050565b6000806040838503121561027457600080fd5b82516001600160a01b038116811461028b57600080fd5b60208401519092506001600160401b03808211156102a857600080fd5b818501915085601f8301126102bc57600080fd5b8151818111156102ce576102ce61021b565b604051601f8201601f19908116603f011681019083821181831017156102f6576102f661021b565b8160405282815288602084870101111561030f57600080fd5b610320836020830160208801610231565b80955050505050509250929050565b60008282101561034f57634e487b7160e01b600052601160045260246000fd5b500390565b634e487b7160e01b600052600160045260246000fd5b6000825161037c818460208701610231565b9190910192915050565b60208152600082518060208401526103a5816040850160208701610231565b601f01601f19169190910160400192915050565b61029c806103c86000396000f3fe60806040523661001357610011610017565b005b6100115b61005061004b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc546001600160a01b031690565b610081565b565b90565b606061007a8383604051806060016040528060278152602001610240602791396100a5565b9392505050565b3660008037600080366000845af43d6000803e8080156100a0573d6000f35b3d6000fd5b60606001600160a01b0384163b6101125760405162461bcd60e51b815260206004820152602660248201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f6044820152651b9d1c9858dd60d21b60648201526084015b60405180910390fd5b600080856001600160a01b03168560405161012d91906101f0565b600060405180830381855af49150503d8060008114610168576040519150601f19603f3d011682016040523d82523d6000602084013e61016d565b606091505b509150915061017d828286610187565b9695505050505050565b6060831561019657508161007a565b8251156101a65782518084602001fd5b8160405162461bcd60e51b8152600401610109919061020c565b60005b838110156101db5781810151838201526020016101c3565b838111156101ea576000848401525b50505050565b600082516102028184602087016101c0565b9190910192915050565b602081526000825180602084015261022b8160408501602087016101c0565b601f01601f1916919091016040019291505056fe416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a26469706673582212204937a0e09cafeb6e415715660a96a2b11857f3d8a0631bca133280d3480d69a564736f6c634300080c0033360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564",dsr=r=>r.length>1,YT=class extends pV.ContractFactory{constructor(){for(var e=arguments.length,t=new Array(e),n=0;n{"use strict";x();T();M.env.NODE_ENV==="production"?fV.exports=QUe():fV.exports=tWe()});var Uc=O(Y=>{"use strict";x();T();var Te=Pn(),ue=Go(),se=_t(),psr=Un(),hsr=Wn(),fsr=jn(),msr=zn(),ysr=Hn(),gsr=Vn(),vsr=Gn(),bsr=Zn(),wsr=Jn(),xsr=Kn(),Tsr=Qn(),_sr=Xn(),Csr=Yn(),Esr=$n(),ksr=ea(),Ssr=ta(),Asr=ra(),Msr=na(),Isr=aa(),Psr=ia(),Rsr=sa(),Nsr=oa(),Osr=ca(),Lsr=ua(),Bsr=la(),qsr=da(),Dsr=pa(),Fsr=ha(),Usr=fa(),Wsr=ma(),jsr=ya(),zsr=ga(),Hsr=va(),Vsr=ba(),Gsr=wa(),Zsr=xa(),Jsr=Ta(),Ksr=_a(),Qsr=Ca(),Xsr=Ea(),Ysr=ka(),$sr=Sa(),eor=Aa(),tor=Ma(),ror=Ia(),nor=Pa(),aor=Ra(),ior=En(),xG=Na(),RWe=Oa(),sor=La(),$T=On(),oor=Ba(),cor=qa(),uor=Da(),yV=Fa(),lor=Ua(),dor=Wa(),por=ja(),hor=za(),mor=Ha(),yor=Va(),gor=Ga(),vor=Za(),bor=Ja(),wor=Ka(),xor=Qa();function Ot(r){return r&&r.__esModule?r:{default:r}}function Js(r){if(r&&r.__esModule)return r;var e=Object.create(null);return r&&Object.keys(r).forEach(function(t){if(t!=="default"){var n=Object.getOwnPropertyDescriptor(r,t);Object.defineProperty(e,t,n.get?n:{enumerable:!0,get:function(){return r[t]}})}}),e.default=r,Object.freeze(e)}var t7=Ot(psr),mo=Ot(hsr),zc=Ot(fsr),mr=Ot(msr),Tor=Ot(ysr),NWe=Ot(gsr),_or=Ot(vsr),OWe=Ot(bsr),LWe=Ot(wsr),ku=Ot(xsr),BWe=Ot(Tsr),TG=Ot(_sr),Cor=Ot(Csr),Eor=Ot(Esr),kor=Ot(ksr),qWe=Ot(Ssr),Sor=Ot(Asr),Aor=Ot(Msr),Mor=Ot(Isr),yd=Ot(Psr),DWe=Ot(Rsr),Ior=Ot(Nsr),Por=Ot(Osr),Ror=Ot(Lsr),Nor=Ot(Bsr),Oor=Ot(qsr),Lor=Ot(Dsr),FWe=Ot(Fsr),Bor=Ot(Usr),qor=Ot(Wsr),Dor=Ot(jsr),UWe=Ot(zsr),For=Ot(Hsr),Uor=Ot(Vsr),Wor=Ot(Gsr),jor=Ot(Zsr),zor=Ot(Jsr),Hor=Ot(Ksr),Vor=Ot(Qsr),Gor=Ot(Xsr),Zor=Ot(Ysr),Jor=Ot($sr),Kor=Ot(eor),Qor=Ot(tor),Xor=Ot(ror),Yor=Ot(nor),$or=Ot(aor),wV=Ot(ior),xV=Ot(RWe),ecr=Ot(sor),tcr=Ot(oor),rcr=Ot(cor),WWe=Ot(uor),jWe=Ot(lor),ncr=Ot(por),acr=Ot(hor),icr=Ot(mor),scr=Ot(yor),ocr=Ot(gor),ccr=Ot(vor),ucr=Ot(bor),lcr=Ot(wor),dcr=Ot(xor);function pcr(r,e){if(e.has(r))throw new TypeError("Cannot initialize the same private elements twice on an object")}function TV(r,e,t){pcr(r,e),e.set(r,t)}function hcr(r,e){return e.get?e.get.call(r):e.value}function zWe(r,e,t){if(!e.has(r))throw new TypeError("attempted to "+t+" private field on non-instance");return e.get(r)}function F9(r,e){var t=zWe(r,e,"get");return hcr(r,t)}function fcr(r,e,t){if(e.set)e.set.call(r,t);else{if(!e.writable)throw new TypeError("attempted to set read only private field");e.value=t}}function _V(r,e,t){var n=zWe(r,e,"set");return fcr(r,n,t),t}Y.ChainId=void 0;(function(r){r[r.Mainnet=1]="Mainnet",r[r.Goerli=5]="Goerli",r[r.Polygon=137]="Polygon",r[r.Mumbai=80001]="Mumbai",r[r.Localhost=1337]="Localhost",r[r.Hardhat=31337]="Hardhat",r[r.Fantom=250]="Fantom",r[r.FantomTestnet=4002]="FantomTestnet",r[r.Avalanche=43114]="Avalanche",r[r.AvalancheFujiTestnet=43113]="AvalancheFujiTestnet",r[r.Optimism=10]="Optimism",r[r.OptimismGoerli=420]="OptimismGoerli",r[r.Arbitrum=42161]="Arbitrum",r[r.ArbitrumGoerli=421613]="ArbitrumGoerli",r[r.BinanceSmartChainMainnet=56]="BinanceSmartChainMainnet",r[r.BinanceSmartChainTestnet=97]="BinanceSmartChainTestnet"})(Y.ChainId||(Y.ChainId={}));var HWe=[Y.ChainId.Mainnet,Y.ChainId.Goerli,Y.ChainId.Polygon,Y.ChainId.Mumbai,Y.ChainId.Fantom,Y.ChainId.FantomTestnet,Y.ChainId.Avalanche,Y.ChainId.AvalancheFujiTestnet,Y.ChainId.Optimism,Y.ChainId.OptimismGoerli,Y.ChainId.Arbitrum,Y.ChainId.ArbitrumGoerli,Y.ChainId.BinanceSmartChainMainnet,Y.ChainId.BinanceSmartChainTestnet,Y.ChainId.Hardhat,Y.ChainId.Localhost],VWe="0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80",H0="0xc82BbE41f2cF04e3a8efA18F7032BDD7f6d98a81",j0="0x7c487845f98938Bb955B1D5AD069d9a30e4131fd",_v="0x5DBC7B840baa9daBcBe9D2492E45D7244B54A2A0",mcr="0x664244560eBa21Bf82d7150C791bE1AbcD5B4cd7",ycr="0xcdAD8FA86e18538aC207872E8ff3536501431B73",Cw={[Y.ChainId.Mainnet]:{openzeppelinForwarder:H0,openzeppelinForwarderEOA:"0x76ce2CB1Ae48Fa067f4fb8c5f803111AE0B24BEA",biconomyForwarder:"0x84a0856b038eaAd1cC7E297cF34A7e72685A8693",twFactory:_v,twRegistry:j0,twBYOCRegistry:se.constants.AddressZero},[Y.ChainId.Goerli]:{openzeppelinForwarder:"0x5001A14CA6163143316a7C614e30e6041033Ac20",openzeppelinForwarderEOA:"0xe73c50cB9c5B378627ff625BB6e6725A4A5D65d2",biconomyForwarder:"0xE041608922d06a4F26C0d4c27d8bCD01daf1f792",twFactory:_v,twRegistry:j0,twBYOCRegistry:"0xB1Bd9d7942A250BA2Dce27DD601F2ED4211A60C4"},[Y.ChainId.Polygon]:{openzeppelinForwarder:H0,openzeppelinForwarderEOA:"0x4f247c69184ad61036EC2Bb3213b69F10FbEDe1F",biconomyForwarder:"0x86C80a8aa58e0A4fa09A69624c31Ab2a6CAD56b8",twFactory:_v,twRegistry:j0,twBYOCRegistry:"0x308473Be900F4185A56587dE54bDFF5E8f7a6AE7"},[Y.ChainId.Mumbai]:{openzeppelinForwarder:H0,openzeppelinForwarderEOA:"0xb1A2883fc4d287d9cB8Dbb96cFF60C76BEf2D250",biconomyForwarder:"0x9399BB24DBB5C4b782C70c2969F58716Ebbd6a3b",twFactory:_v,twRegistry:j0,twBYOCRegistry:"0x3F17972CB27506eb4a6a3D59659e0B57a43fd16C"},[Y.ChainId.Avalanche]:{openzeppelinForwarder:H0,openzeppelinForwarderEOA:"0xb1A2883fc4d287d9cB8Dbb96cFF60C76BEf2D250",biconomyForwarder:"0x64CD353384109423a966dCd3Aa30D884C9b2E057",twFactory:_v,twRegistry:j0,twBYOCRegistry:se.constants.AddressZero},[Y.ChainId.AvalancheFujiTestnet]:{openzeppelinForwarder:H0,openzeppelinForwarderEOA:"0xe73c50cB9c5B378627ff625BB6e6725A4A5D65d2",biconomyForwarder:"0x6271Ca63D30507f2Dcbf99B52787032506D75BBF",twFactory:_v,twRegistry:j0,twBYOCRegistry:"0x3E6eE864f850F5e5A98bc950B68E181Cf4010F23"},[Y.ChainId.Fantom]:{openzeppelinForwarder:H0,openzeppelinForwarderEOA:"0xb1A2883fc4d287d9cB8Dbb96cFF60C76BEf2D250",biconomyForwarder:"0x64CD353384109423a966dCd3Aa30D884C9b2E057",twFactory:"0x97EA0Fcc552D5A8Fb5e9101316AAd0D62Ea0876B",twRegistry:j0,twBYOCRegistry:se.constants.AddressZero},[Y.ChainId.FantomTestnet]:{openzeppelinForwarder:H0,openzeppelinForwarderEOA:"0x42D3048b595B6e1c28a588d70366CcC2AA4dB47b",biconomyForwarder:"0x69FB8Dca8067A5D38703b9e8b39cf2D51473E4b4",twFactory:_v,twRegistry:j0,twBYOCRegistry:"0x3E6eE864f850F5e5A98bc950B68E181Cf4010F23"},[Y.ChainId.Arbitrum]:{openzeppelinForwarder:"0x8cbc8B5d71702032904750A66AEfE8B603eBC538",openzeppelinForwarderEOA:"0x4f247c69184ad61036EC2Bb3213b69F10FbEDe1F",biconomyForwarder:"0xfe0fa3C06d03bDC7fb49c892BbB39113B534fB57",twFactory:"0xd24b3de085CFd8c54b94feAD08a7962D343E6DE0",twRegistry:"0x7c487845f98938Bb955B1D5AD069d9a30e4131fd",twBYOCRegistry:se.constants.AddressZero},[Y.ChainId.ArbitrumGoerli]:{openzeppelinForwarder:"0x8cbc8B5d71702032904750A66AEfE8B603eBC538",openzeppelinForwarderEOA:"0x119704314Ef304EaAAE4b3c7C9ABd59272A28310",biconomyForwarder:se.constants.AddressZero,twFactory:"0xd24b3de085CFd8c54b94feAD08a7962D343E6DE0",twRegistry:"0x7c487845f98938Bb955B1D5AD069d9a30e4131fd",twBYOCRegistry:se.constants.AddressZero},[Y.ChainId.Optimism]:{openzeppelinForwarder:"0x8cbc8B5d71702032904750A66AEfE8B603eBC538",openzeppelinForwarderEOA:"0x7e80648EB2071E26937F9D42A513ccf4815fc702",biconomyForwarder:"0xefba8a2a82ec1fb1273806174f5e28fbb917cf95",twFactory:"0xd24b3de085CFd8c54b94feAD08a7962D343E6DE0",twRegistry:"0x7c487845f98938Bb955B1D5AD069d9a30e4131fd",twBYOCRegistry:se.constants.AddressZero},[Y.ChainId.OptimismGoerli]:{openzeppelinForwarder:"0x8cbc8B5d71702032904750A66AEfE8B603eBC538",openzeppelinForwarderEOA:"0x119704314Ef304EaAAE4b3c7C9ABd59272A28310",biconomyForwarder:se.constants.AddressZero,twFactory:"0xd24b3de085CFd8c54b94feAD08a7962D343E6DE0",twRegistry:"0x7c487845f98938Bb955B1D5AD069d9a30e4131fd",twBYOCRegistry:se.constants.AddressZero},[Y.ChainId.BinanceSmartChainMainnet]:{openzeppelinForwarder:"0x8cbc8B5d71702032904750A66AEfE8B603eBC538",openzeppelinForwarderEOA:"0xE8dd2Ff0212F86d3197b4AfDC6dAC6ac47eb10aC",biconomyForwarder:"0x86C80a8aa58e0A4fa09A69624c31Ab2a6CAD56b8",twBYOCRegistry:se.constants.AddressZero,twFactory:"0xd24b3de085CFd8c54b94feAD08a7962D343E6DE0",twRegistry:"0x7c487845f98938Bb955B1D5AD069d9a30e4131fd"},[Y.ChainId.BinanceSmartChainTestnet]:{openzeppelinForwarder:"0x8cbc8B5d71702032904750A66AEfE8B603eBC538",openzeppelinForwarderEOA:"0x7e80648EB2071E26937F9D42A513ccf4815fc702",biconomyForwarder:"0x61456BF1715C1415730076BB79ae118E806E74d2",twBYOCRegistry:se.constants.AddressZero,twFactory:"0xd24b3de085CFd8c54b94feAD08a7962D343E6DE0",twRegistry:"0x7c487845f98938Bb955B1D5AD069d9a30e4131fd"},[Y.ChainId.Hardhat]:{openzeppelinForwarder:se.constants.AddressZero,openzeppelinForwarderEOA:se.constants.AddressZero,biconomyForwarder:se.constants.AddressZero,twFactory:se.constants.AddressZero,twRegistry:se.constants.AddressZero,twBYOCRegistry:se.constants.AddressZero},[Y.ChainId.Localhost]:{openzeppelinForwarder:se.constants.AddressZero,openzeppelinForwarderEOA:se.constants.AddressZero,biconomyForwarder:se.constants.AddressZero,twFactory:se.constants.AddressZero,twRegistry:se.constants.AddressZero,twBYOCRegistry:se.constants.AddressZero}},CV={[Y.ChainId.Mainnet]:{"nft-drop":"0x60fF9952e0084A6DEac44203838cDC91ABeC8736","edition-drop":"0x74af262d0671F378F97a1EDC3d0970Dbe8A1C550","token-drop":"0xE1eE43D23f247b6A9aF81fcE2766E76709482728","signature-drop":"0x6fD690EB509BdE4C50028C5D9C0dE3750C2Fad6A"},[Y.ChainId.Polygon]:{"nft-drop":"0xB96508050Ba0925256184103560EBADA912Fcc69","edition-drop":"0x74af262d0671F378F97a1EDC3d0970Dbe8A1C550","token-drop":"0x5A8eA4Adad8289746D073947BA06D69A62499aaf","signature-drop":"0xBE2fDc35410E268e41Bec62DBb01AEb43245c7d5"},[Y.ChainId.Fantom]:{"nft-drop":"0x2A396b2D90BAcEF19cDa973586B2633d22710fC2","edition-drop":"0x06395FCF9AC6ED827f9dD6e776809cEF1Be0d21B","token-drop":"0x0148b28a38efaaC31b6aa0a6D9FEb70FE7C91FFa","signature-drop":"0xe135Ef65C2B2213C3fD56d0Bd6500A2cA147aC10"},[Y.ChainId.Avalanche]:{"nft-drop":"0x9cF91118C8ee2913F0588e0F10e36B3d63F68bF6","edition-drop":"0x135fC9D26E5eC51260ece1DF4ED424E2f55c7766","token-drop":"0xca0B071899E575BA86495D46c5066971b6f3A901","signature-drop":"0x1d47526C3292B0130ef0afD5F02c1DA052A017B3"},[Y.ChainId.Optimism]:{"nft-drop":"0xFBd7D24d80ee005671E731a7287DEB6073264dD1","edition-drop":"0xe135Ef65C2B2213C3fD56d0Bd6500A2cA147aC10","token-drop":"0x902Dd246e66d8C3CE652375a723F2a52b43b9AAE","signature-drop":"0x8a4cd3549e548bbEEb38C16E041FFf040a5acabD"},[Y.ChainId.Arbitrum]:{"nft-drop":"0xC4903c1Ff5367b9ac2c349B63DC2409421AaEE2a","edition-drop":"0xCcddcec1831646Beff2753249f1B9C580327E89F","token-drop":"0x1b5947e1a2d5a29D0df20931DeAB0B87818209B9","signature-drop":"0x2dF9851af45dd41C8584ac55D983C604da985Bc7"},[Y.ChainId.BinanceSmartChainMainnet]:{"nft-drop":"0x902Dd246e66d8C3CE652375a723F2a52b43b9AAE","edition-drop":"0x2A396b2D90BAcEF19cDa973586B2633d22710fC2","token-drop":"0xe135Ef65C2B2213C3fD56d0Bd6500A2cA147aC10","signature-drop":"0xFBd7D24d80ee005671E731a7287DEB6073264dD1"},[Y.ChainId.Goerli]:{"nft-drop":"0xD11c97DD5F5546B5bBd630D7D1d7327481B0b92C","edition-drop":"0x5A8eA4Adad8289746D073947BA06D69A62499aaf","token-drop":"0x5680933221B752EB443654a014f88B101F868d50","signature-drop":"0x1b5947e1a2d5a29D0df20931DeAB0B87818209B9"},[Y.ChainId.Mumbai]:{"nft-drop":"0xC4903c1Ff5367b9ac2c349B63DC2409421AaEE2a","edition-drop":"0xCcddcec1831646Beff2753249f1B9C580327E89F","token-drop":"0x1b5947e1a2d5a29D0df20931DeAB0B87818209B9","signature-drop":"0x2dF9851af45dd41C8584ac55D983C604da985Bc7"},[Y.ChainId.FantomTestnet]:{"nft-drop":"0x8a4cd3549e548bbEEb38C16E041FFf040a5acabD","edition-drop":"0x902Dd246e66d8C3CE652375a723F2a52b43b9AAE","token-drop":"0xFBd7D24d80ee005671E731a7287DEB6073264dD1","signature-drop":"0x5A8eA4Adad8289746D073947BA06D69A62499aaf"},[Y.ChainId.AvalancheFujiTestnet]:{"nft-drop":"0xD11c97DD5F5546B5bBd630D7D1d7327481B0b92C","edition-drop":"0xE1eE43D23f247b6A9aF81fcE2766E76709482728","token-drop":"0x6fD690EB509BdE4C50028C5D9C0dE3750C2Fad6A","signature-drop":"0xCcddcec1831646Beff2753249f1B9C580327E89F"},[Y.ChainId.OptimismGoerli]:{"nft-drop":"0xCcddcec1831646Beff2753249f1B9C580327E89F","edition-drop":"0x6fD690EB509BdE4C50028C5D9C0dE3750C2Fad6A","token-drop":"0xD11c97DD5F5546B5bBd630D7D1d7327481B0b92C","signature-drop":"0x1b5947e1a2d5a29D0df20931DeAB0B87818209B9"},[Y.ChainId.ArbitrumGoerli]:{"nft-drop":"0x9CfE807a5b124b962064Fa8F7FD823Cc701255b6","edition-drop":"0x9cF91118C8ee2913F0588e0F10e36B3d63F68bF6","token-drop":"0x1d47526C3292B0130ef0afD5F02c1DA052A017B3","signature-drop":"0xE1eE43D23f247b6A9aF81fcE2766E76709482728"},[Y.ChainId.BinanceSmartChainTestnet]:{"nft-drop":"","edition-drop":"","token-drop":"","signature-drop":""},[Y.ChainId.Hardhat]:{"nft-drop":"","edition-drop":"","token-drop":"","signature-drop":""},[Y.ChainId.Localhost]:{"nft-drop":"","edition-drop":"","token-drop":"","signature-drop":""}};function GWe(r,e){if(r in CV){let t=CV[r];if(e in t)return t[e]}return null}function U9(r,e){return r===Y.ChainId.Hardhat||r===Y.ChainId.Localhost?e==="twFactory"?M.env.factoryAddress:e==="twRegistry"?M.env.registryAddress:se.constants.AddressZero:Cw[r]?.[e]}function ZWe(){return M.env.contractPublisherAddress?M.env.contractPublisherAddress:mcr}function EV(){return M.env.multiChainRegistryAddress?M.env.multiChainRegistryAddress:ycr}function _G(r){let e=HWe.find(a=>a===r),t=e?Cw[e].biconomyForwarder:se.constants.AddressZero,n=e?Cw[e].openzeppelinForwarder:se.constants.AddressZero;return t!==se.constants.AddressZero?[n,t]:[n]}var T_=se.utils.arrayify("0x80ac58cd"),__=se.utils.arrayify("0xd9b67a26"),hd="0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",CG={[Y.ChainId.Mainnet]:{name:"Ether",symbol:"ETH",decimals:18,wrapped:{address:"0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",name:"Wrapped Ether",symbol:"WETH"}},[Y.ChainId.Goerli]:{name:"G\xF6rli Ether",symbol:"GOR",decimals:18,wrapped:{address:"0xb4fbf271143f4fbf7b91a5ded31805e42b2208d6",name:"Wrapped Ether",symbol:"WETH"}},[Y.ChainId.Polygon]:{name:"Matic",symbol:"MATIC",decimals:18,wrapped:{address:"0x0d500B1d8E8eF31E21C99d1Db9A6444d3ADf1270",name:"Wrapped Matic",symbol:"WMATIC"}},[Y.ChainId.Mumbai]:{name:"Matic",symbol:"MATIC",decimals:18,wrapped:{address:"0x9c3C9283D3e44854697Cd22D3Faa240Cfb032889",name:"Wrapped Matic",symbol:"WMATIC"}},[Y.ChainId.Avalanche]:{name:"Avalanche",symbol:"AVAX",decimals:18,wrapped:{address:"0xB31f66AA3C1e785363F0875A1B74E27b85FD66c7",name:"Wrapped AVAX",symbol:"WAVAX"}},[Y.ChainId.AvalancheFujiTestnet]:{name:"Avalanche",symbol:"AVAX",decimals:18,wrapped:{address:"0xd00ae08403B9bbb9124bB305C09058E32C39A48c",name:"Wrapped AVAX",symbol:"WAVAX"}},[Y.ChainId.Fantom]:{name:"Fantom",symbol:"FTM",decimals:18,wrapped:{address:"0x21be370D5312f44cB42ce377BC9b8a0cEF1A4C83",name:"Wrapped Fantom",symbol:"WFTM"}},[Y.ChainId.FantomTestnet]:{name:"Fantom",symbol:"FTM",decimals:18,wrapped:{address:"0xf1277d1Ed8AD466beddF92ef448A132661956621",name:"Wrapped Fantom",symbol:"WFTM"}},[Y.ChainId.Arbitrum]:{name:"Ether",symbol:"ETH",decimals:18,wrapped:{address:"0x82af49447d8a07e3bd95bd0d56f35241523fbab1",name:"Wrapped Ether",symbol:"WETH"}},[Y.ChainId.ArbitrumGoerli]:{name:"Arbitrum Goerli Ether",symbol:"AGOR",decimals:18,wrapped:{address:"0xe39Ab88f8A4777030A534146A9Ca3B52bd5D43A3",name:"Wrapped Ether",symbol:"WETH"}},[Y.ChainId.Optimism]:{name:"Ether",symbol:"ETH",decimals:18,wrapped:{address:"0x4200000000000000000000000000000000000006",name:"Wrapped Ether",symbol:"WETH"}},[Y.ChainId.OptimismGoerli]:{name:"Goerli Ether",symbol:"ETH",decimals:18,wrapped:{address:"0x4200000000000000000000000000000000000006",name:"Wrapped Ether",symbol:"WETH"}},[Y.ChainId.BinanceSmartChainMainnet]:{name:"Binance Chain Native Token",symbol:"BNB",decimals:18,wrapped:{address:"0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c",name:"Wrapped Binance Chain Token",symbol:"WBNB"}},[Y.ChainId.BinanceSmartChainTestnet]:{name:"Binance Chain Native Token",symbol:"TBNB",decimals:18,wrapped:{address:"0xae13d989daC2f0dEbFf460aC112a837C89BAa7cd",name:"Wrapped Binance Chain Testnet Token",symbol:"WBNB"}},[Y.ChainId.Hardhat]:{name:"Ether",symbol:"ETH",decimals:18,wrapped:{address:"0x5FbDB2315678afecb367f032d93F642f64180aa3",name:"Wrapped Ether",symbol:"WETH"}},[Y.ChainId.Localhost]:{name:"Ether",symbol:"ETH",decimals:18,wrapped:{address:"0x5FbDB2315678afecb367f032d93F642f64180aa3",name:"Wrapped Ether",symbol:"WETH"}}};function W9(r){return CG[r]||{name:"Ether",symbol:"ETH",decimals:18,wrapped:{address:se.ethers.constants.AddressZero,name:"Wrapped Ether",symbol:"WETH"}}}var gcr={[Y.ChainId.Mainnet]:"0x514910771AF9Ca656af840dff83E8264EcF986CA",[Y.ChainId.Goerli]:"0x326C977E6efc84E512bB9C30f76E30c160eD06FB",[Y.ChainId.BinanceSmartChainMainnet]:"0x404460C6A5EdE2D891e8297795264fDe62ADBB75",[Y.ChainId.Polygon]:"0xb0897686c545045aFc77CF20eC7A532E3120E0F1",[Y.ChainId.Mumbai]:"0x326C977E6efc84E512bB9C30f76E30c160eD06FB",[Y.ChainId.Avalanche]:"0x5947BB275c521040051D82396192181b413227A3",[Y.ChainId.AvalancheFujiTestnet]:"0x0b9d5D9136855f6FEc3c0993feE6E9CE8a297846",[Y.ChainId.Fantom]:"0x6F43FF82CCA38001B6699a8AC47A2d0E66939407",[Y.ChainId.FantomTestnet]:"0xfaFedb041c0DD4fA2Dc0d87a6B0979Ee6FA7af5F"};Y.EventType=void 0;(function(r){r.Transaction="transaction",r.Signature="signature"})(Y.EventType||(Y.EventType={}));var JWe=50,KWe=250,vcr={timeLimitMs:JWe,sizeLimit:KWe},kV=class extends se.providers.StaticJsonRpcProvider{constructor(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:vcr;super(e,t),ue._defineProperty(this,"_timeLimitMs",void 0),ue._defineProperty(this,"_sizeLimit",void 0),ue._defineProperty(this,"_pendingBatchAggregator",void 0),ue._defineProperty(this,"_pendingBatch",void 0),this._timeLimitMs=n.timeLimitMs||KWe,this._sizeLimit=n.sizeLimit||JWe,this._pendingBatchAggregator=null,this._pendingBatch=null}sendCurrentBatch(e){this._pendingBatchAggregator&&clearTimeout(this._pendingBatchAggregator);let t=this._pendingBatch||[];this._pendingBatch=null,this._pendingBatchAggregator=null;let n=t.map(a=>a.request);return this.emit("debug",{action:"requestBatch",request:se.utils.deepCopy(e),provider:this}),se.utils.fetchJson(this.connection,JSON.stringify(n)).then(a=>{this.emit("debug",{action:"response",request:n,response:a,provider:this}),t.forEach((i,s)=>{let c=a[s];if(c.error){let l=new Error(c.error.message);l.code=c.error.code,l.data=c.error.data,i.reject(l)}else i.resolve(c.result)})},a=>{this.emit("debug",{action:"response",error:a,request:n,provider:this}),t.forEach(i=>{i.reject(a)})})}send(e,t){let n={method:e,params:t,id:this._nextId++,jsonrpc:"2.0"};this._pendingBatch===null&&(this._pendingBatch=[]);let a={request:n,resolve:null,reject:null},i=new Promise((s,c)=>{a.resolve=s,a.reject=c});return this._pendingBatch.length===this._sizeLimit&&this.sendCurrentBatch(n),this._pendingBatch.push(a),this._pendingBatchAggregator||(this._pendingBatchAggregator=setTimeout(()=>{this.sendCurrentBatch(n)},this._timeLimitMs)),i}},Ri=Te.z.union([Te.z.string(),Te.z.number(),Te.z.bigint(),Te.z.custom(r=>se.BigNumber.isBigNumber(r))]).transform(r=>se.BigNumber.from(r)),Cu=Ri.transform(r=>r.toString()),EG=Te.z.union([Te.z.bigint(),Te.z.custom(r=>se.BigNumber.isBigNumber(r))]).transform(r=>se.BigNumber.from(r).toString()),jc=Te.z.string().refine(r=>se.utils.isAddress(r),r=>({message:`${r} is not a valid address`})),kG=Te.z.date().transform(r=>se.BigNumber.from(Math.floor(r.getTime()/1e3))),SG=kG.default(new Date(0)),QWe=kG.default(new Date(Date.now()+1e3*60*60*24*365*10)),XWe=Te.z.object({gasLimit:Cu.optional(),gasPrice:Cu.optional(),maxFeePerGas:Cu.optional(),maxPriorityFeePerGas:Cu.optional(),nonce:Cu.optional(),value:Cu.optional(),blockTag:Te.z.union([Te.z.string(),Te.z.number()]).optional(),from:jc.optional(),type:Te.z.number().optional()}).strict(),YWe=Te.z.object({rpc:Te.z.array(Te.z.string().url()),chainId:Te.z.number(),nativeCurrency:Te.z.object({name:Te.z.string(),symbol:Te.z.string(),decimals:Te.z.number().default(18)})}),j9=Te.z.object({supportedChains:Te.z.array(YWe).default(xG.defaultChains),thirdwebApiKey:Te.z.string().optional().default(ue.DEFAULT_API_KEY),alchemyApiKey:Te.z.string().optional().optional(),infuraApiKey:Te.z.string().optional().optional(),readonlySettings:Te.z.object({rpcUrl:Te.z.string().url(),chainId:Te.z.number().optional()}).optional(),gasSettings:Te.z.object({maxPriceInGwei:Te.z.number().min(1,"gas price cannot be less than 1").default(300),speed:Te.z.enum(["standard","fast","fastest"]).default("fastest")}).default({maxPriceInGwei:300,speed:"fastest"}),gasless:Te.z.union([Te.z.object({openzeppelin:Te.z.object({relayerUrl:Te.z.string().url(),relayerForwarderAddress:Te.z.string().optional(),useEOAForwarder:Te.z.boolean().default(!1)}),experimentalChainlessSupport:Te.z.boolean().default(!1)}),Te.z.object({biconomy:Te.z.object({apiId:Te.z.string(),apiKey:Te.z.string(),deadlineSeconds:Te.z.number().min(1,"deadlineSeconds cannot be les than 1").default(3600)})})]).optional()}).default({gasSettings:{maxPriceInGwei:300,speed:"fastest"}}),$We=Te.z.object({name:Te.z.string(),symbol:Te.z.string(),decimals:Te.z.number()}),eje=$We.extend({value:Ri,displayValue:Te.z.string()}),im=Te.z.object({merkle:Te.z.record(Te.z.string()).default({})}),z9=Te.z.object({address:jc,maxClaimable:ue.QuantitySchema.default(0),price:ue.QuantitySchema.optional(),currencyAddress:jc.default(se.ethers.constants.AddressZero).optional()}),C_=Te.z.union([Te.z.array(Te.z.string()).transform(r=>r.map(e=>z9.parse({address:e}))),Te.z.array(z9)]),AG=z9.extend({proof:Te.z.array(Te.z.string())}),MG=Te.z.object({merkleRoot:Te.z.string(),claims:Te.z.array(AG)}),bcr=Te.z.object({merkleRoot:Te.z.string(),snapshotUri:Te.z.string()}),tje=Te.z.object({name:Te.z.string().optional()}).catchall(Te.z.unknown()),E_=Te.z.object({startTime:SG,currencyAddress:Te.z.string().default(hd),price:ue.AmountSchema.default(0),maxClaimableSupply:ue.QuantitySchema,maxClaimablePerWallet:ue.QuantitySchema,waitInSeconds:Cu.default(0),merkleRootHash:ue.BytesLikeSchema.default(se.utils.hexZeroPad([0],32)),snapshot:Te.z.optional(C_).nullable(),metadata:tje.optional()}),rje=Te.z.array(E_),wcr=E_.partial(),IG=E_.extend({availableSupply:ue.QuantitySchema,currentMintSupply:ue.QuantitySchema,currencyMetadata:eje.default({value:se.BigNumber.from("0"),displayValue:"0",symbol:"",decimals:18,name:""}),price:Ri,waitInSeconds:Ri,startTime:Ri.transform(r=>new Date(r.toNumber()*1e3)),snapshot:C_.optional().nullable()});function xcr(r){if(r===void 0){let e=P.Buffer.alloc(16);return dor.v4({},e),se.utils.hexlify(se.utils.toUtf8Bytes(e.toString("hex")))}else return se.utils.hexlify(r)}var r7=Te.z.object({to:Te.z.string().refine(r=>r.toLowerCase()!==se.constants.AddressZero,{message:"Cannot create payload to mint to zero address"}),price:ue.AmountSchema.default(0),currencyAddress:Te.z.string().default(hd),mintStartTime:SG,mintEndTime:QWe,uid:Te.z.string().optional().transform(r=>xcr(r)),primarySaleRecipient:Te.z.string().default(se.constants.AddressZero)}),PG=r7.extend({quantity:ue.AmountSchema}),nje=PG.extend({mintStartTime:Ri,mintEndTime:Ri}),n7=r7.extend({metadata:ue.NFTInputOrUriSchema,royaltyRecipient:Te.z.string().default(se.constants.AddressZero),royaltyBps:ue.BasisPointsSchema.default(0)}),RG=n7.extend({uri:Te.z.string(),royaltyBps:Ri,mintStartTime:Ri,mintEndTime:Ri}),aje=n7.extend({metadata:ue.NFTInputOrUriSchema.default(""),quantity:Cu}),ije=aje.extend({tokenId:Cu}),sje=RG.extend({tokenId:Ri,quantity:Ri}),oje=n7.extend({metadata:ue.NFTInputOrUriSchema.default(""),quantity:Ri.default(1)}),cje=RG.extend({quantity:Ri.default(1)}),uje=[{name:"to",type:"address"},{name:"primarySaleRecipient",type:"address"},{name:"quantity",type:"uint256"},{name:"price",type:"uint256"},{name:"currency",type:"address"},{name:"validityStartTimestamp",type:"uint128"},{name:"validityEndTimestamp",type:"uint128"},{name:"uid",type:"bytes32"}],lje=[{name:"to",type:"address"},{name:"royaltyRecipient",type:"address"},{name:"royaltyBps",type:"uint256"},{name:"primarySaleRecipient",type:"address"},{name:"uri",type:"string"},{name:"price",type:"uint256"},{name:"currency",type:"address"},{name:"validityStartTimestamp",type:"uint128"},{name:"validityEndTimestamp",type:"uint128"},{name:"uid",type:"bytes32"}],dje=[{name:"to",type:"address"},{name:"royaltyRecipient",type:"address"},{name:"royaltyBps",type:"uint256"},{name:"primarySaleRecipient",type:"address"},{name:"tokenId",type:"uint256"},{name:"uri",type:"string"},{name:"quantity",type:"uint256"},{name:"pricePerToken",type:"uint256"},{name:"currency",type:"address"},{name:"validityStartTimestamp",type:"uint128"},{name:"validityEndTimestamp",type:"uint128"},{name:"uid",type:"bytes32"}],pje=[{name:"to",type:"address"},{name:"royaltyRecipient",type:"address"},{name:"royaltyBps",type:"uint256"},{name:"primarySaleRecipient",type:"address"},{name:"uri",type:"string"},{name:"quantity",type:"uint256"},{name:"pricePerToken",type:"uint256"},{name:"currency",type:"address"},{name:"validityStartTimestamp",type:"uint128"},{name:"validityEndTimestamp",type:"uint128"},{name:"uid",type:"bytes32"}],hje=[{name:"validityStartTimestamp",type:"uint128"},{name:"validityEndTimestamp",type:"uint128"},{name:"uid",type:"bytes32"},{name:"data",type:"bytes"}],Su=Te.z.object({name:Te.z.string(),description:Te.z.string().optional(),image:ue.FileOrBufferOrStringSchema.optional(),external_link:Te.z.string().url().optional()}),ll=Su.extend({image:Te.z.string().optional()}).catchall(Te.z.unknown()),fo=Te.z.object({seller_fee_basis_points:ue.BasisPointsSchema.default(0),fee_recipient:jc.default(se.constants.AddressZero)}),Q0=Te.z.object({primary_sale_recipient:jc}),fd=Te.z.object({platform_fee_basis_points:ue.BasisPointsSchema.default(0),platform_fee_recipient:jc.default(se.constants.AddressZero)}),dl=Te.z.object({trusted_forwarders:Te.z.array(jc).default([])}),Ts=Te.z.object({symbol:Te.z.string().optional().default("")}),fje=Su.merge(fo).merge(im).merge(Ts),Tcr=ll.merge(fo).merge(im).merge(Ts),_cr=fje.merge(fd).merge(Q0).merge(dl),NG={deploy:_cr,output:Tcr,input:fje},mje=Su.merge(fo).merge(im).merge(Ts),Ccr=ll.merge(fo).merge(im).merge(Ts),Ecr=mje.merge(fd).merge(Q0).merge(dl),yje={deploy:Ecr,output:Ccr,input:mje},gje=Su,kcr=ll,Scr=gje.merge(fd).merge(dl),OG={deploy:Scr,output:kcr,input:gje},vje=Su.merge(fo).merge(Ts),Acr=ll.merge(fo).merge(Ts),Mcr=vje.merge(fd).merge(dl),bje={deploy:Mcr,output:Acr,input:vje},wje=Te.z.object({address:jc,sharesBps:ue.BasisPointsSchema.gt(0,"Shares must be greater than 0")}),Icr=wje.extend({address:jc,sharesBps:ue.BasisPointsSchema}),SV=Su.extend({recipients:Te.z.array(wje).default([]).superRefine((r,e)=>{let t={},n=0;for(let a=0;a1e4&&e.addIssue({code:Te.z.ZodIssueCode.custom,message:"Total shares cannot go over 100%.",path:[a,"sharesBps"]})}n!==1e4&&e.addIssue({code:Te.z.ZodIssueCode.custom,message:`Total shares need to add up to 100%. Total shares are currently ${n/100}%`,path:[]})})}),Pcr=ll.extend({recipients:Te.z.array(Icr)}),Rcr=SV.merge(SV).merge(dl),xje={deploy:Rcr,output:Pcr,input:SV},Tje=Su.merge(Ts),Ncr=ll.merge(Ts),Ocr=Tje.merge(fd).merge(Q0).merge(dl),_je={deploy:Ocr,output:Ncr,input:Tje},Cje=Su.merge(fo).merge(Ts),Lcr=ll.merge(fo).merge(Ts),Bcr=Cje.merge(fd).merge(Q0).merge(dl),Eje={deploy:Bcr,output:Lcr,input:Cje},kje=Su.merge(fo).merge(Ts),qcr=ll.merge(fo).merge(Ts),Dcr=kje.merge(fd).merge(Q0).merge(dl),Sje={deploy:Dcr,output:qcr,input:kje},Aje=Te.z.object({voting_delay_in_blocks:Te.z.number().min(0).default(0),voting_period_in_blocks:Te.z.number().min(1).default(1),voting_token_address:jc,voting_quorum_fraction:ue.PercentSchema.default(0),proposal_token_threshold:Cu.default(1)}),Fcr=Aje.extend({proposal_token_threshold:Ri}),Mje=Su.merge(Aje),Ucr=ll.merge(Fcr),Wcr=Mje.merge(dl),Ije={deploy:Wcr,output:Ucr,input:Mje};Te.z.object({proposalId:Ri,proposer:Te.z.string(),targets:Te.z.array(Te.z.string()),values:Te.z.array(Ri),signatures:Te.z.array(Te.z.string()),calldatas:Te.z.array(Te.z.string()),startBlock:Ri,endBlock:Ri,description:Te.z.string()});var rWe=Te.z.object({}).catchall(Te.z.union([EG,Te.z.unknown()])),jcr=Te.z.union([Te.z.array(rWe),rWe]).optional(),Pje=Te.z.object({supply:Ri,metadata:ue.CommonNFTOutput}),zcr=Pje.extend({owner:Te.z.string(),quantityOwned:Ri}),Hcr=Te.z.object({supply:Cu,metadata:ue.CommonNFTInput}),Vcr=Te.z.object({supply:Cu,metadata:ue.NFTInputOrUriSchema}),Gcr=Te.z.object({toAddress:jc,amount:ue.AmountSchema}),Zcr="https://gateway.ipfscdn.io/ipfs/",H9={"avalanche-fuji":Y.ChainId.AvalancheFujiTestnet,"avalanche-testnet":Y.ChainId.AvalancheFujiTestnet,"fantom-testnet":Y.ChainId.FantomTestnet,ethereum:Y.ChainId.Mainnet,matic:Y.ChainId.Polygon,mumbai:Y.ChainId.Mumbai,goerli:Y.ChainId.Goerli,polygon:Y.ChainId.Polygon,mainnet:Y.ChainId.Mainnet,optimism:Y.ChainId.Optimism,"optimism-goerli":Y.ChainId.OptimismGoerli,arbitrum:Y.ChainId.Arbitrum,"arbitrum-goerli":Y.ChainId.ArbitrumGoerli,fantom:Y.ChainId.Fantom,avalanche:Y.ChainId.Avalanche,binance:Y.ChainId.BinanceSmartChainMainnet,"binance-testnet":Y.ChainId.BinanceSmartChainTestnet,hardhat:Y.ChainId.Hardhat,localhost:Y.ChainId.Localhost},Jcr=Object.fromEntries(Object.entries(H9).map(r=>{let[e,t]=r;return[t,e]}));function Rje(){let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return j9.parse(r).supportedChains.reduce((t,n)=>(t[n.chainId]=n,t),{})}function a7(r,e){if(typeof r=="string"&&r.startsWith("http"))return V9(r);let t=Nje(r),n=j9.parse(e),a=Rje(n),i="";try{i=xG.getChainRPC(a[t],{thirdwebApiKey:n.thirdwebApiKey||ue.DEFAULT_API_KEY,infuraApiKey:n.infuraApiKey,alchemyApiKey:n.alchemyApiKey})}catch(s){console.warn("Failed to get chain RPC",s)}if(!i)throw new Error(`No rpc url found for chain ${r}. Please provide a valid rpc url via the 'chains' property of the sdk options.`);return V9(i,t)}function Nje(r){if(typeof r=="number")return r;if(!(r in H9))throw new Error(`Cannot resolve chainId from: ${r} - please pass the chainId instead and specify it in the 'chains' property of the SDK options.`);return H9[r]}var nWe=new Map;function V9(r,e){try{let t=r.match(/^(ws|http)s?:/i);if(t)switch(t[1]){case"http":let n=`${r}-${e||-1}`,a=nWe.get(n);if(a)return a;let i=e?new kV(r,e):new se.providers.JsonRpcBatchProvider(r,e);return nWe.set(n,i),i;case"ws":return new se.providers.WebSocketProvider(r,e);default:return se.ethers.getDefaultProvider(r)}else return se.ethers.getDefaultProvider(r)}catch{return se.ethers.getDefaultProvider(r)}}var Ew=class extends Error{constructor(e){super(e?`Object with id ${e} NOT FOUND`:"NOT_FOUND")}},AV=class extends Error{constructor(e){super(e?`'${e}' is an invalid address`:"Invalid address passed")}},G9=class extends Error{constructor(e,t){super(`MISSING ROLE: ${e} does not have the '${t}' role`)}},MV=class extends Error{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"The asset you're trying to use could not be found.";super(`message: ${e}`)}},IV=class extends Error{constructor(e){super(`UPLOAD_FAILED: ${e}`)}},PV=class extends Error{constructor(){super("File name is required when object is not a `File` type object.")}},RV=class extends Error{constructor(e){super(`DUPLICATE_FILE_NAME_ERROR: File name ${e} was passed for more than one file.`)}},NV=class extends Error{constructor(e,t,n){super(`BALANCE ERROR: you do not have enough balance on contract ${e} to use ${t} tokens. You have ${n} tokens available.`)}},OV=class extends Error{constructor(){super("LIST ERROR: you should be the owner of the token to list it.")}},LV=class extends Error{constructor(e){super(`BUY ERROR: You cannot buy more than ${e} tokens`)}},BV=class extends Error{constructor(e,t){super(`FETCH_FAILED: ${e}`),ue._defineProperty(this,"innerError",void 0),this.innerError=t}},Z9=class extends Error{constructor(e){super(`DUPLICATE_LEAFS${e?` : ${e}`:""}`)}},J9=class extends Error{constructor(e){super(`Auction already started with existing bid${e?`, id: ${e}`:""}`)}},qV=class extends Error{constructor(e){super(`FUNCTION DEPRECATED. ${e?`Use ${e} instead`:""}`)}},n_=class extends Error{constructor(e,t){super(`Could not find listing.${e?` marketplace address: ${e}`:""}${t?` listing id: ${t}`:""}`)}},a_=class extends Error{constructor(e,t,n,a){super(`Incorrect listing type. Are you sure you're using the right method?.${e?` marketplace address: ${e}`:""}${t?` listing id: ${t}`:""}${a?` expected type: ${a}`:""}${n?` actual type: ${n}`:""}`)}},DV=class extends Error{constructor(e){super(`Failed to transfer asset, transfer is restricted.${e?` Address : ${e}`:""}`)}},FV=class extends Error{constructor(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"Failed to execute transaction";super(`${n}, admin role is missing${e?` on address: ${e}`:""}${t?` on contract: ${t}`:""}`)}},i_=class extends Error{constructor(e,t){super(`Auction has not ended yet${e?`, id: ${e}`:""}${t?`, end time: ${t.toString()}`:""}`)}},nm=class extends Error{constructor(e){super(`This functionality is not available because the contract does not implement the '${e.docLinks.contracts}' Extension. Learn how to unlock this functionality at https://portal.thirdweb.com/extensions `)}},gV=new WeakMap,vV=new WeakMap,K9=class extends Error{constructor(e){let t=` +`); + n.push(d.totalRewards), + t.push({ + assetContract: d.contractAddress, + tokenType: 2, + totalAmount: zd.BigNumber.from(d.quantityPerReward).mul( + zd.BigNumber.from(d.totalRewards) + ), + tokenId: d.tokenId, + }); + } + return { contents: t, numOfRewardUnits: n }; + } + async call(e) { + for ( + var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), a = 1; + a < t; + a++ + ) + n[a - 1] = arguments[a]; + return this.contractWrapper.call(e, ...n); + } + detectVrf() { + if (Yr.detectContractFeature(this.contractWrapper, "PackVRF")) + return new Wz( + this.contractWrapper.getSignerOrProvider(), + this.contractWrapper.readContract.address, + this.storage, + this.contractWrapper.options, + this.chainId + ); + } + }; + Zi._defineProperty(gw, "contractRoles", [ + "admin", + "minter", + "asset", + "transfer", + ]); + OFe.Pack = gw; + }); + var Hz = N((Zon, kar) => { + kar.exports = [ + { + inputs: [ + { + internalType: "address", + name: "_nativeTokenWrapper", + type: "address", + }, + { + internalType: "address", + name: "_trustedForwarder", + type: "address", + }, + ], + stateMutability: "nonpayable", + type: "constructor", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "address", + name: "account", + type: "address", + }, + { + indexed: !0, + internalType: "address", + name: "operator", + type: "address", + }, + { indexed: !1, internalType: "bool", name: "approved", type: "bool" }, + ], + name: "ApprovalForAll", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !1, + internalType: "string", + name: "prevURI", + type: "string", + }, + { + indexed: !1, + internalType: "string", + name: "newURI", + type: "string", + }, + ], + name: "ContractURIUpdated", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "address", + name: "newRoyaltyRecipient", + type: "address", + }, + { + indexed: !1, + internalType: "uint256", + name: "newRoyaltyBps", + type: "uint256", + }, + ], + name: "DefaultRoyalty", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !1, + internalType: "uint8", + name: "version", + type: "uint8", + }, + ], + name: "Initialized", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "address", + name: "prevOwner", + type: "address", + }, + { + indexed: !0, + internalType: "address", + name: "newOwner", + type: "address", + }, + ], + name: "OwnerUpdated", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "uint256", + name: "packId", + type: "uint256", + }, + { + indexed: !1, + internalType: "address", + name: "recipient", + type: "address", + }, + { + indexed: !1, + internalType: "uint256", + name: "totalPacksCreated", + type: "uint256", + }, + ], + name: "PackCreated", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "uint256", + name: "packId", + type: "uint256", + }, + { + indexed: !0, + internalType: "address", + name: "opener", + type: "address", + }, + { + indexed: !1, + internalType: "uint256", + name: "numOfPacksOpened", + type: "uint256", + }, + { + components: [ + { + internalType: "address", + name: "assetContract", + type: "address", + }, + { + internalType: "enum ITokenBundle.TokenType", + name: "tokenType", + type: "uint8", + }, + { internalType: "uint256", name: "tokenId", type: "uint256" }, + { internalType: "uint256", name: "totalAmount", type: "uint256" }, + ], + indexed: !1, + internalType: "struct ITokenBundle.Token[]", + name: "rewardUnitsDistributed", + type: "tuple[]", + }, + ], + name: "PackOpened", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "uint256", + name: "packId", + type: "uint256", + }, + { + indexed: !1, + internalType: "address", + name: "recipient", + type: "address", + }, + { + indexed: !1, + internalType: "uint256", + name: "totalPacksCreated", + type: "uint256", + }, + ], + name: "PackUpdated", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "bytes32", + name: "role", + type: "bytes32", + }, + { + indexed: !0, + internalType: "bytes32", + name: "previousAdminRole", + type: "bytes32", + }, + { + indexed: !0, + internalType: "bytes32", + name: "newAdminRole", + type: "bytes32", + }, + ], + name: "RoleAdminChanged", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "bytes32", + name: "role", + type: "bytes32", + }, + { + indexed: !0, + internalType: "address", + name: "account", + type: "address", + }, + { + indexed: !0, + internalType: "address", + name: "sender", + type: "address", + }, + ], + name: "RoleGranted", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "bytes32", + name: "role", + type: "bytes32", + }, + { + indexed: !0, + internalType: "address", + name: "account", + type: "address", + }, + { + indexed: !0, + internalType: "address", + name: "sender", + type: "address", + }, + ], + name: "RoleRevoked", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "uint256", + name: "tokenId", + type: "uint256", + }, + { + indexed: !0, + internalType: "address", + name: "royaltyRecipient", + type: "address", + }, + { + indexed: !1, + internalType: "uint256", + name: "royaltyBps", + type: "uint256", + }, + ], + name: "RoyaltyForToken", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "address", + name: "operator", + type: "address", + }, + { + indexed: !0, + internalType: "address", + name: "from", + type: "address", + }, + { indexed: !0, internalType: "address", name: "to", type: "address" }, + { + indexed: !1, + internalType: "uint256[]", + name: "ids", + type: "uint256[]", + }, + { + indexed: !1, + internalType: "uint256[]", + name: "values", + type: "uint256[]", + }, + ], + name: "TransferBatch", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "address", + name: "operator", + type: "address", + }, + { + indexed: !0, + internalType: "address", + name: "from", + type: "address", + }, + { indexed: !0, internalType: "address", name: "to", type: "address" }, + { indexed: !1, internalType: "uint256", name: "id", type: "uint256" }, + { + indexed: !1, + internalType: "uint256", + name: "value", + type: "uint256", + }, + ], + name: "TransferSingle", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !1, + internalType: "string", + name: "value", + type: "string", + }, + { indexed: !0, internalType: "uint256", name: "id", type: "uint256" }, + ], + name: "URI", + type: "event", + }, + { + inputs: [], + name: "DEFAULT_ADMIN_ROLE", + outputs: [{ internalType: "bytes32", name: "", type: "bytes32" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "uint256", name: "_packId", type: "uint256" }, + { + components: [ + { + internalType: "address", + name: "assetContract", + type: "address", + }, + { + internalType: "enum ITokenBundle.TokenType", + name: "tokenType", + type: "uint8", + }, + { internalType: "uint256", name: "tokenId", type: "uint256" }, + { internalType: "uint256", name: "totalAmount", type: "uint256" }, + ], + internalType: "struct ITokenBundle.Token[]", + name: "_contents", + type: "tuple[]", + }, + { + internalType: "uint256[]", + name: "_numOfRewardUnits", + type: "uint256[]", + }, + { internalType: "address", name: "_recipient", type: "address" }, + ], + name: "addPackContents", + outputs: [ + { internalType: "uint256", name: "packTotalSupply", type: "uint256" }, + { internalType: "uint256", name: "newSupplyAdded", type: "uint256" }, + ], + stateMutability: "payable", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "account", type: "address" }, + { internalType: "uint256", name: "id", type: "uint256" }, + ], + name: "balanceOf", + outputs: [{ internalType: "uint256", name: "", type: "uint256" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "address[]", name: "accounts", type: "address[]" }, + { internalType: "uint256[]", name: "ids", type: "uint256[]" }, + ], + name: "balanceOfBatch", + outputs: [{ internalType: "uint256[]", name: "", type: "uint256[]" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [{ internalType: "uint256", name: "", type: "uint256" }], + name: "canUpdatePack", + outputs: [{ internalType: "bool", name: "", type: "bool" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "contractType", + outputs: [{ internalType: "bytes32", name: "", type: "bytes32" }], + stateMutability: "pure", + type: "function", + }, + { + inputs: [], + name: "contractURI", + outputs: [{ internalType: "string", name: "", type: "string" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "contractVersion", + outputs: [{ internalType: "uint8", name: "", type: "uint8" }], + stateMutability: "pure", + type: "function", + }, + { + inputs: [ + { + components: [ + { + internalType: "address", + name: "assetContract", + type: "address", + }, + { + internalType: "enum ITokenBundle.TokenType", + name: "tokenType", + type: "uint8", + }, + { internalType: "uint256", name: "tokenId", type: "uint256" }, + { internalType: "uint256", name: "totalAmount", type: "uint256" }, + ], + internalType: "struct ITokenBundle.Token[]", + name: "_contents", + type: "tuple[]", + }, + { + internalType: "uint256[]", + name: "_numOfRewardUnits", + type: "uint256[]", + }, + { internalType: "string", name: "_packUri", type: "string" }, + { + internalType: "uint128", + name: "_openStartTimestamp", + type: "uint128", + }, + { + internalType: "uint128", + name: "_amountDistributedPerOpen", + type: "uint128", + }, + { internalType: "address", name: "_recipient", type: "address" }, + ], + name: "createPack", + outputs: [ + { internalType: "uint256", name: "packId", type: "uint256" }, + { internalType: "uint256", name: "packTotalSupply", type: "uint256" }, + ], + stateMutability: "payable", + type: "function", + }, + { + inputs: [], + name: "getDefaultRoyaltyInfo", + outputs: [ + { internalType: "address", name: "", type: "address" }, + { internalType: "uint16", name: "", type: "uint16" }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [{ internalType: "uint256", name: "_packId", type: "uint256" }], + name: "getPackContents", + outputs: [ + { + components: [ + { + internalType: "address", + name: "assetContract", + type: "address", + }, + { + internalType: "enum ITokenBundle.TokenType", + name: "tokenType", + type: "uint8", + }, + { internalType: "uint256", name: "tokenId", type: "uint256" }, + { internalType: "uint256", name: "totalAmount", type: "uint256" }, + ], + internalType: "struct ITokenBundle.Token[]", + name: "contents", + type: "tuple[]", + }, + { + internalType: "uint256[]", + name: "perUnitAmounts", + type: "uint256[]", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [{ internalType: "bytes32", name: "role", type: "bytes32" }], + name: "getRoleAdmin", + outputs: [{ internalType: "bytes32", name: "", type: "bytes32" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "bytes32", name: "role", type: "bytes32" }, + { internalType: "uint256", name: "index", type: "uint256" }, + ], + name: "getRoleMember", + outputs: [{ internalType: "address", name: "member", type: "address" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [{ internalType: "bytes32", name: "role", type: "bytes32" }], + name: "getRoleMemberCount", + outputs: [{ internalType: "uint256", name: "count", type: "uint256" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "uint256", name: "_tokenId", type: "uint256" }, + ], + name: "getRoyaltyInfoForToken", + outputs: [ + { internalType: "address", name: "", type: "address" }, + { internalType: "uint16", name: "", type: "uint16" }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "uint256", name: "_bundleId", type: "uint256" }, + ], + name: "getTokenCountOfBundle", + outputs: [{ internalType: "uint256", name: "", type: "uint256" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "uint256", name: "_bundleId", type: "uint256" }, + { internalType: "uint256", name: "index", type: "uint256" }, + ], + name: "getTokenOfBundle", + outputs: [ + { + components: [ + { + internalType: "address", + name: "assetContract", + type: "address", + }, + { + internalType: "enum ITokenBundle.TokenType", + name: "tokenType", + type: "uint8", + }, + { internalType: "uint256", name: "tokenId", type: "uint256" }, + { internalType: "uint256", name: "totalAmount", type: "uint256" }, + ], + internalType: "struct ITokenBundle.Token", + name: "", + type: "tuple", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "uint256", name: "_bundleId", type: "uint256" }, + ], + name: "getUriOfBundle", + outputs: [{ internalType: "string", name: "", type: "string" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "bytes32", name: "role", type: "bytes32" }, + { internalType: "address", name: "account", type: "address" }, + ], + name: "grantRole", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "bytes32", name: "role", type: "bytes32" }, + { internalType: "address", name: "account", type: "address" }, + ], + name: "hasRole", + outputs: [{ internalType: "bool", name: "", type: "bool" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "bytes32", name: "role", type: "bytes32" }, + { internalType: "address", name: "account", type: "address" }, + ], + name: "hasRoleWithSwitch", + outputs: [{ internalType: "bool", name: "", type: "bool" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "_defaultAdmin", type: "address" }, + { internalType: "string", name: "_name", type: "string" }, + { internalType: "string", name: "_symbol", type: "string" }, + { internalType: "string", name: "_contractURI", type: "string" }, + { + internalType: "address[]", + name: "_trustedForwarders", + type: "address[]", + }, + { + internalType: "address", + name: "_royaltyRecipient", + type: "address", + }, + { internalType: "uint256", name: "_royaltyBps", type: "uint256" }, + ], + name: "initialize", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "account", type: "address" }, + { internalType: "address", name: "operator", type: "address" }, + ], + name: "isApprovedForAll", + outputs: [{ internalType: "bool", name: "", type: "bool" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "forwarder", type: "address" }, + ], + name: "isTrustedForwarder", + outputs: [{ internalType: "bool", name: "", type: "bool" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [{ internalType: "bytes[]", name: "data", type: "bytes[]" }], + name: "multicall", + outputs: [ + { internalType: "bytes[]", name: "results", type: "bytes[]" }, + ], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [], + name: "name", + outputs: [{ internalType: "string", name: "", type: "string" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "nextTokenIdToMint", + outputs: [{ internalType: "uint256", name: "", type: "uint256" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "", type: "address" }, + { internalType: "address", name: "", type: "address" }, + { internalType: "uint256[]", name: "", type: "uint256[]" }, + { internalType: "uint256[]", name: "", type: "uint256[]" }, + { internalType: "bytes", name: "", type: "bytes" }, + ], + name: "onERC1155BatchReceived", + outputs: [{ internalType: "bytes4", name: "", type: "bytes4" }], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "", type: "address" }, + { internalType: "address", name: "", type: "address" }, + { internalType: "uint256", name: "", type: "uint256" }, + { internalType: "uint256", name: "", type: "uint256" }, + { internalType: "bytes", name: "", type: "bytes" }, + ], + name: "onERC1155Received", + outputs: [{ internalType: "bytes4", name: "", type: "bytes4" }], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "", type: "address" }, + { internalType: "address", name: "", type: "address" }, + { internalType: "uint256", name: "", type: "uint256" }, + { internalType: "bytes", name: "", type: "bytes" }, + ], + name: "onERC721Received", + outputs: [{ internalType: "bytes4", name: "", type: "bytes4" }], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "uint256", name: "_packId", type: "uint256" }, + { internalType: "uint256", name: "_amountToOpen", type: "uint256" }, + ], + name: "openPack", + outputs: [ + { + components: [ + { + internalType: "address", + name: "assetContract", + type: "address", + }, + { + internalType: "enum ITokenBundle.TokenType", + name: "tokenType", + type: "uint8", + }, + { internalType: "uint256", name: "tokenId", type: "uint256" }, + { internalType: "uint256", name: "totalAmount", type: "uint256" }, + ], + internalType: "struct ITokenBundle.Token[]", + name: "", + type: "tuple[]", + }, + ], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [], + name: "owner", + outputs: [{ internalType: "address", name: "", type: "address" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "bytes32", name: "role", type: "bytes32" }, + { internalType: "address", name: "account", type: "address" }, + ], + name: "renounceRole", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "bytes32", name: "role", type: "bytes32" }, + { internalType: "address", name: "account", type: "address" }, + ], + name: "revokeRole", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "uint256", name: "tokenId", type: "uint256" }, + { internalType: "uint256", name: "salePrice", type: "uint256" }, + ], + name: "royaltyInfo", + outputs: [ + { internalType: "address", name: "receiver", type: "address" }, + { internalType: "uint256", name: "royaltyAmount", type: "uint256" }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "from", type: "address" }, + { internalType: "address", name: "to", type: "address" }, + { internalType: "uint256[]", name: "ids", type: "uint256[]" }, + { internalType: "uint256[]", name: "amounts", type: "uint256[]" }, + { internalType: "bytes", name: "data", type: "bytes" }, + ], + name: "safeBatchTransferFrom", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "from", type: "address" }, + { internalType: "address", name: "to", type: "address" }, + { internalType: "uint256", name: "id", type: "uint256" }, + { internalType: "uint256", name: "amount", type: "uint256" }, + { internalType: "bytes", name: "data", type: "bytes" }, + ], + name: "safeTransferFrom", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "operator", type: "address" }, + { internalType: "bool", name: "approved", type: "bool" }, + ], + name: "setApprovalForAll", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [{ internalType: "string", name: "_uri", type: "string" }], + name: "setContractURI", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "address", + name: "_royaltyRecipient", + type: "address", + }, + { internalType: "uint256", name: "_royaltyBps", type: "uint256" }, + ], + name: "setDefaultRoyaltyInfo", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "_newOwner", type: "address" }, + ], + name: "setOwner", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "uint256", name: "_tokenId", type: "uint256" }, + { internalType: "address", name: "_recipient", type: "address" }, + { internalType: "uint256", name: "_bps", type: "uint256" }, + ], + name: "setRoyaltyInfoForToken", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "bytes4", name: "interfaceId", type: "bytes4" }, + ], + name: "supportsInterface", + outputs: [{ internalType: "bool", name: "", type: "bool" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "symbol", + outputs: [{ internalType: "string", name: "", type: "string" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [{ internalType: "uint256", name: "", type: "uint256" }], + name: "totalSupply", + outputs: [{ internalType: "uint256", name: "", type: "uint256" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "uint256", name: "_tokenId", type: "uint256" }, + ], + name: "uri", + outputs: [{ internalType: "string", name: "", type: "string" }], + stateMutability: "view", + type: "function", + }, + { stateMutability: "payable", type: "receive" }, + ]; + }); + var qFe = N((DFe) => { + "use strict"; + _(); + x(); + var cs = Oo(), + Wi = kc(), + Wg = wt(); + Gr(); + an(); + Bn(); + Nn(); + On(); + Ln(); + Dn(); + qn(); + Fn(); + Wn(); + Un(); + Hn(); + zn(); + jn(); + Kn(); + Vn(); + Gn(); + Yn(); + $n(); + Jn(); + Zn(); + Qn(); + Xn(); + ea(); + ta(); + ra(); + na(); + aa(); + ia(); + sa(); + oa(); + ca(); + ua(); + la(); + da(); + pa(); + ha(); + fa(); + ma(); + ya(); + ga(); + ba(); + va(); + wa(); + _a(); + xa(); + Ta(); + Ea(); + Ca(); + vn(); + Ia(); + Aa(); + ka(); + An(); + Sa(); + Ma(); + Pa(); + Ra(); + Ba(); + Na(); + Oa(); + La(); + Da(); + qa(); + Fa(); + Wa(); + Ua(); + Ha(); + za(); + var bw = class extends Wi.StandardErc721 { + constructor(e, t, n) { + let a = + arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {}, + i = arguments.length > 4 ? arguments[4] : void 0, + s = arguments.length > 5 ? arguments[5] : void 0, + c = + arguments.length > 6 && arguments[6] !== void 0 + ? arguments[6] + : new Wi.ContractWrapper(e, t, i, a); + super(c, n, s), + cs._defineProperty(this, "abi", void 0), + cs._defineProperty(this, "erc721", void 0), + cs._defineProperty(this, "owner", void 0), + cs._defineProperty(this, "encoder", void 0), + cs._defineProperty(this, "estimator", void 0), + cs._defineProperty(this, "metadata", void 0), + cs._defineProperty(this, "sales", void 0), + cs._defineProperty(this, "platformFees", void 0), + cs._defineProperty(this, "events", void 0), + cs._defineProperty(this, "roles", void 0), + cs._defineProperty(this, "interceptor", void 0), + cs._defineProperty(this, "royalties", void 0), + cs._defineProperty(this, "claimConditions", void 0), + cs._defineProperty(this, "revealer", void 0), + cs._defineProperty(this, "signature", void 0), + cs._defineProperty(this, "checkout", void 0), + (this.abi = i), + (this.metadata = new Wi.ContractMetadata( + this.contractWrapper, + Wi.DropErc721ContractSchema, + this.storage + )), + (this.roles = new Wi.ContractRoles( + this.contractWrapper, + bw.contractRoles + )), + (this.royalties = new Wi.ContractRoyalty( + this.contractWrapper, + this.metadata + )), + (this.sales = new Wi.ContractPrimarySale(this.contractWrapper)), + (this.encoder = new Wi.ContractEncoder(this.contractWrapper)), + (this.estimator = new Wi.GasCostEstimator(this.contractWrapper)), + (this.events = new Wi.ContractEvents(this.contractWrapper)), + (this.platformFees = new Wi.ContractPlatformFee( + this.contractWrapper + )), + (this.interceptor = new Wi.ContractInterceptor(this.contractWrapper)), + (this.erc721 = new Wi.Erc721(this.contractWrapper, this.storage, s)), + (this.claimConditions = new Wi.DropClaimConditions( + this.contractWrapper, + this.metadata, + this.storage + )), + (this.signature = new Wi.Erc721WithQuantitySignatureMintable( + this.contractWrapper, + this.storage + )), + (this.revealer = new Wi.DelayedReveal( + this.contractWrapper, + this.storage, + Wi.FEATURE_NFT_REVEALABLE.name, + () => this.erc721.nextTokenIdToMint() + )), + (this.signature = new Wi.Erc721WithQuantitySignatureMintable( + this.contractWrapper, + this.storage + )), + (this.owner = new Wi.ContractOwner(this.contractWrapper)), + (this.checkout = new Wi.PaperCheckout(this.contractWrapper)); + } + onNetworkUpdated(e) { + this.contractWrapper.updateSignerOrProvider(e); + } + getAddress() { + return this.contractWrapper.readContract.address; + } + async totalSupply() { + let e = await this.totalClaimedSupply(), + t = await this.totalUnclaimedSupply(); + return e.add(t); + } + async getAllClaimed(e) { + let t = Wg.BigNumber.from(e?.start || 0).toNumber(), + n = Wg.BigNumber.from( + e?.count || cs.DEFAULT_QUERY_ALL_COUNT + ).toNumber(), + a = Math.min((await this.totalClaimedSupply()).toNumber(), t + n); + return await Promise.all( + Array.from(Array(a).keys()).map((i) => this.get(i.toString())) + ); + } + async getAllUnclaimed(e) { + let t = Wg.BigNumber.from(e?.start || 0).toNumber(), + n = Wg.BigNumber.from( + e?.count || cs.DEFAULT_QUERY_ALL_COUNT + ).toNumber(), + a = Wg.BigNumber.from( + Math.max((await this.totalClaimedSupply()).toNumber(), t) + ), + i = Wg.BigNumber.from( + Math.min( + ( + await this.contractWrapper.readContract.nextTokenIdToMint() + ).toNumber(), + a.toNumber() + n + ) + ); + return await Promise.all( + Array.from(Array(i.sub(a).toNumber()).keys()).map((s) => + this.erc721.getTokenMetadata(a.add(s).toString()) + ) + ); + } + async totalClaimedSupply() { + return this.erc721.totalClaimedSupply(); + } + async totalUnclaimedSupply() { + return this.erc721.totalUnclaimedSupply(); + } + async isTransferRestricted() { + return !(await this.contractWrapper.readContract.hasRole( + Wi.getRoleHash("transfer"), + Wg.constants.AddressZero + )); + } + async createBatch(e, t) { + return this.erc721.lazyMint(e, t); + } + async getClaimTransaction(e, t, n) { + return this.erc721.getClaimTransaction(e, t, n); + } + async claimTo(e, t, n) { + return this.erc721.claimTo(e, t, n); + } + async claim(e, t) { + return this.erc721.claim(e, t); + } + async burn(e) { + return this.erc721.burn(e); + } + async call(e) { + for ( + var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), a = 1; + a < t; + a++ + ) + n[a - 1] = arguments[a]; + return this.contractWrapper.call(e, ...n); + } + }; + cs._defineProperty(bw, "contractRoles", ["admin", "minter", "transfer"]); + DFe.SignatureDrop = bw; + }); + var zz = N((tcn, Sar) => { + Sar.exports = [ + { inputs: [], name: "ApprovalCallerNotOwnerNorApproved", type: "error" }, + { inputs: [], name: "ApprovalQueryForNonexistentToken", type: "error" }, + { inputs: [], name: "ApprovalToCurrentOwner", type: "error" }, + { inputs: [], name: "ApproveToCaller", type: "error" }, + { inputs: [], name: "BalanceQueryForZeroAddress", type: "error" }, + { inputs: [], name: "MintToZeroAddress", type: "error" }, + { inputs: [], name: "MintZeroQuantity", type: "error" }, + { inputs: [], name: "OwnerQueryForNonexistentToken", type: "error" }, + { inputs: [], name: "TransferCallerNotOwnerNorApproved", type: "error" }, + { inputs: [], name: "TransferFromIncorrectOwner", type: "error" }, + { + inputs: [], + name: "TransferToNonERC721ReceiverImplementer", + type: "error", + }, + { inputs: [], name: "TransferToZeroAddress", type: "error" }, + { inputs: [], name: "URIQueryForNonexistentToken", type: "error" }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "address", + name: "owner", + type: "address", + }, + { + indexed: !0, + internalType: "address", + name: "approved", + type: "address", + }, + { + indexed: !0, + internalType: "uint256", + name: "tokenId", + type: "uint256", + }, + ], + name: "Approval", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "address", + name: "owner", + type: "address", + }, + { + indexed: !0, + internalType: "address", + name: "operator", + type: "address", + }, + { indexed: !1, internalType: "bool", name: "approved", type: "bool" }, + ], + name: "ApprovalForAll", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + components: [ + { + internalType: "uint256", + name: "startTimestamp", + type: "uint256", + }, + { + internalType: "uint256", + name: "maxClaimableSupply", + type: "uint256", + }, + { + internalType: "uint256", + name: "supplyClaimed", + type: "uint256", + }, + { + internalType: "uint256", + name: "quantityLimitPerWallet", + type: "uint256", + }, + { internalType: "bytes32", name: "merkleRoot", type: "bytes32" }, + { + internalType: "uint256", + name: "pricePerToken", + type: "uint256", + }, + { internalType: "address", name: "currency", type: "address" }, + { internalType: "string", name: "metadata", type: "string" }, + ], + indexed: !1, + internalType: "struct IClaimCondition.ClaimCondition", + name: "condition", + type: "tuple", + }, + { + indexed: !1, + internalType: "bool", + name: "resetEligibility", + type: "bool", + }, + ], + name: "ClaimConditionUpdated", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !1, + internalType: "string", + name: "prevURI", + type: "string", + }, + { + indexed: !1, + internalType: "string", + name: "newURI", + type: "string", + }, + ], + name: "ContractURIUpdated", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "address", + name: "newRoyaltyRecipient", + type: "address", + }, + { + indexed: !1, + internalType: "uint256", + name: "newRoyaltyBps", + type: "uint256", + }, + ], + name: "DefaultRoyalty", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !1, + internalType: "uint8", + name: "version", + type: "uint8", + }, + ], + name: "Initialized", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "address", + name: "prevOwner", + type: "address", + }, + { + indexed: !0, + internalType: "address", + name: "newOwner", + type: "address", + }, + ], + name: "OwnerUpdated", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "address", + name: "platformFeeRecipient", + type: "address", + }, + { + indexed: !1, + internalType: "uint256", + name: "platformFeeBps", + type: "uint256", + }, + ], + name: "PlatformFeeInfoUpdated", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "address", + name: "recipient", + type: "address", + }, + ], + name: "PrimarySaleRecipientUpdated", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "bytes32", + name: "role", + type: "bytes32", + }, + { + indexed: !0, + internalType: "bytes32", + name: "previousAdminRole", + type: "bytes32", + }, + { + indexed: !0, + internalType: "bytes32", + name: "newAdminRole", + type: "bytes32", + }, + ], + name: "RoleAdminChanged", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "bytes32", + name: "role", + type: "bytes32", + }, + { + indexed: !0, + internalType: "address", + name: "account", + type: "address", + }, + { + indexed: !0, + internalType: "address", + name: "sender", + type: "address", + }, + ], + name: "RoleGranted", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "bytes32", + name: "role", + type: "bytes32", + }, + { + indexed: !0, + internalType: "address", + name: "account", + type: "address", + }, + { + indexed: !0, + internalType: "address", + name: "sender", + type: "address", + }, + ], + name: "RoleRevoked", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "uint256", + name: "tokenId", + type: "uint256", + }, + { + indexed: !0, + internalType: "address", + name: "royaltyRecipient", + type: "address", + }, + { + indexed: !1, + internalType: "uint256", + name: "royaltyBps", + type: "uint256", + }, + ], + name: "RoyaltyForToken", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "uint256", + name: "index", + type: "uint256", + }, + { + indexed: !1, + internalType: "string", + name: "revealedURI", + type: "string", + }, + ], + name: "TokenURIRevealed", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "address", + name: "claimer", + type: "address", + }, + { + indexed: !0, + internalType: "address", + name: "receiver", + type: "address", + }, + { + indexed: !0, + internalType: "uint256", + name: "startTokenId", + type: "uint256", + }, + { + indexed: !1, + internalType: "uint256", + name: "quantityClaimed", + type: "uint256", + }, + ], + name: "TokensClaimed", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "uint256", + name: "startTokenId", + type: "uint256", + }, + { + indexed: !1, + internalType: "uint256", + name: "endTokenId", + type: "uint256", + }, + { + indexed: !1, + internalType: "string", + name: "baseURI", + type: "string", + }, + { + indexed: !1, + internalType: "bytes", + name: "encryptedBaseURI", + type: "bytes", + }, + ], + name: "TokensLazyMinted", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "address", + name: "signer", + type: "address", + }, + { + indexed: !0, + internalType: "address", + name: "mintedTo", + type: "address", + }, + { + indexed: !0, + internalType: "uint256", + name: "tokenIdMinted", + type: "uint256", + }, + { + components: [ + { internalType: "address", name: "to", type: "address" }, + { + internalType: "address", + name: "royaltyRecipient", + type: "address", + }, + { internalType: "uint256", name: "royaltyBps", type: "uint256" }, + { + internalType: "address", + name: "primarySaleRecipient", + type: "address", + }, + { internalType: "string", name: "uri", type: "string" }, + { internalType: "uint256", name: "quantity", type: "uint256" }, + { + internalType: "uint256", + name: "pricePerToken", + type: "uint256", + }, + { internalType: "address", name: "currency", type: "address" }, + { + internalType: "uint128", + name: "validityStartTimestamp", + type: "uint128", + }, + { + internalType: "uint128", + name: "validityEndTimestamp", + type: "uint128", + }, + { internalType: "bytes32", name: "uid", type: "bytes32" }, + ], + indexed: !1, + internalType: "struct ISignatureMintERC721.MintRequest", + name: "mintRequest", + type: "tuple", + }, + ], + name: "TokensMintedWithSignature", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "address", + name: "from", + type: "address", + }, + { indexed: !0, internalType: "address", name: "to", type: "address" }, + { + indexed: !0, + internalType: "uint256", + name: "tokenId", + type: "uint256", + }, + ], + name: "Transfer", + type: "event", + }, + { + inputs: [], + name: "DEFAULT_ADMIN_ROLE", + outputs: [{ internalType: "bytes32", name: "", type: "bytes32" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "to", type: "address" }, + { internalType: "uint256", name: "tokenId", type: "uint256" }, + ], + name: "approve", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [{ internalType: "address", name: "owner", type: "address" }], + name: "balanceOf", + outputs: [{ internalType: "uint256", name: "", type: "uint256" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [{ internalType: "uint256", name: "tokenId", type: "uint256" }], + name: "burn", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "_receiver", type: "address" }, + { internalType: "uint256", name: "_quantity", type: "uint256" }, + { internalType: "address", name: "_currency", type: "address" }, + { internalType: "uint256", name: "_pricePerToken", type: "uint256" }, + { + components: [ + { internalType: "bytes32[]", name: "proof", type: "bytes32[]" }, + { + internalType: "uint256", + name: "quantityLimitPerWallet", + type: "uint256", + }, + { + internalType: "uint256", + name: "pricePerToken", + type: "uint256", + }, + { internalType: "address", name: "currency", type: "address" }, + ], + internalType: "struct IDropSinglePhase.AllowlistProof", + name: "_allowlistProof", + type: "tuple", + }, + { internalType: "bytes", name: "_data", type: "bytes" }, + ], + name: "claim", + outputs: [], + stateMutability: "payable", + type: "function", + }, + { + inputs: [], + name: "claimCondition", + outputs: [ + { internalType: "uint256", name: "startTimestamp", type: "uint256" }, + { + internalType: "uint256", + name: "maxClaimableSupply", + type: "uint256", + }, + { internalType: "uint256", name: "supplyClaimed", type: "uint256" }, + { + internalType: "uint256", + name: "quantityLimitPerWallet", + type: "uint256", + }, + { internalType: "bytes32", name: "merkleRoot", type: "bytes32" }, + { internalType: "uint256", name: "pricePerToken", type: "uint256" }, + { internalType: "address", name: "currency", type: "address" }, + { internalType: "string", name: "metadata", type: "string" }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "contractType", + outputs: [{ internalType: "bytes32", name: "", type: "bytes32" }], + stateMutability: "pure", + type: "function", + }, + { + inputs: [], + name: "contractURI", + outputs: [{ internalType: "string", name: "", type: "string" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "contractVersion", + outputs: [{ internalType: "uint8", name: "", type: "uint8" }], + stateMutability: "pure", + type: "function", + }, + { + inputs: [ + { internalType: "bytes", name: "data", type: "bytes" }, + { internalType: "bytes", name: "key", type: "bytes" }, + ], + name: "encryptDecrypt", + outputs: [{ internalType: "bytes", name: "result", type: "bytes" }], + stateMutability: "pure", + type: "function", + }, + { + inputs: [{ internalType: "uint256", name: "", type: "uint256" }], + name: "encryptedData", + outputs: [{ internalType: "bytes", name: "", type: "bytes" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [{ internalType: "uint256", name: "tokenId", type: "uint256" }], + name: "getApproved", + outputs: [{ internalType: "address", name: "", type: "address" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "getBaseURICount", + outputs: [{ internalType: "uint256", name: "", type: "uint256" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [{ internalType: "uint256", name: "_index", type: "uint256" }], + name: "getBatchIdAtIndex", + outputs: [{ internalType: "uint256", name: "", type: "uint256" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "getDefaultRoyaltyInfo", + outputs: [ + { internalType: "address", name: "", type: "address" }, + { internalType: "uint16", name: "", type: "uint16" }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "getPlatformFeeInfo", + outputs: [ + { internalType: "address", name: "", type: "address" }, + { internalType: "uint16", name: "", type: "uint16" }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "uint256", name: "_batchId", type: "uint256" }, + { internalType: "bytes", name: "_key", type: "bytes" }, + ], + name: "getRevealURI", + outputs: [ + { internalType: "string", name: "revealedURI", type: "string" }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [{ internalType: "bytes32", name: "role", type: "bytes32" }], + name: "getRoleAdmin", + outputs: [{ internalType: "bytes32", name: "", type: "bytes32" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "bytes32", name: "role", type: "bytes32" }, + { internalType: "uint256", name: "index", type: "uint256" }, + ], + name: "getRoleMember", + outputs: [{ internalType: "address", name: "member", type: "address" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [{ internalType: "bytes32", name: "role", type: "bytes32" }], + name: "getRoleMemberCount", + outputs: [{ internalType: "uint256", name: "count", type: "uint256" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "uint256", name: "_tokenId", type: "uint256" }, + ], + name: "getRoyaltyInfoForToken", + outputs: [ + { internalType: "address", name: "", type: "address" }, + { internalType: "uint16", name: "", type: "uint16" }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "_claimer", type: "address" }, + ], + name: "getSupplyClaimedByWallet", + outputs: [{ internalType: "uint256", name: "", type: "uint256" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "bytes32", name: "role", type: "bytes32" }, + { internalType: "address", name: "account", type: "address" }, + ], + name: "grantRole", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "bytes32", name: "role", type: "bytes32" }, + { internalType: "address", name: "account", type: "address" }, + ], + name: "hasRole", + outputs: [{ internalType: "bool", name: "", type: "bool" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "bytes32", name: "role", type: "bytes32" }, + { internalType: "address", name: "account", type: "address" }, + ], + name: "hasRoleWithSwitch", + outputs: [{ internalType: "bool", name: "", type: "bool" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "_defaultAdmin", type: "address" }, + { internalType: "string", name: "_name", type: "string" }, + { internalType: "string", name: "_symbol", type: "string" }, + { internalType: "string", name: "_contractURI", type: "string" }, + { + internalType: "address[]", + name: "_trustedForwarders", + type: "address[]", + }, + { internalType: "address", name: "_saleRecipient", type: "address" }, + { + internalType: "address", + name: "_royaltyRecipient", + type: "address", + }, + { internalType: "uint128", name: "_royaltyBps", type: "uint128" }, + { internalType: "uint128", name: "_platformFeeBps", type: "uint128" }, + { + internalType: "address", + name: "_platformFeeRecipient", + type: "address", + }, + ], + name: "initialize", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "owner", type: "address" }, + { internalType: "address", name: "operator", type: "address" }, + ], + name: "isApprovedForAll", + outputs: [{ internalType: "bool", name: "", type: "bool" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "uint256", name: "_batchId", type: "uint256" }, + ], + name: "isEncryptedBatch", + outputs: [{ internalType: "bool", name: "", type: "bool" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "forwarder", type: "address" }, + ], + name: "isTrustedForwarder", + outputs: [{ internalType: "bool", name: "", type: "bool" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "uint256", name: "_amount", type: "uint256" }, + { internalType: "string", name: "_baseURIForTokens", type: "string" }, + { internalType: "bytes", name: "_data", type: "bytes" }, + ], + name: "lazyMint", + outputs: [ + { internalType: "uint256", name: "batchId", type: "uint256" }, + ], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + components: [ + { internalType: "address", name: "to", type: "address" }, + { + internalType: "address", + name: "royaltyRecipient", + type: "address", + }, + { internalType: "uint256", name: "royaltyBps", type: "uint256" }, + { + internalType: "address", + name: "primarySaleRecipient", + type: "address", + }, + { internalType: "string", name: "uri", type: "string" }, + { internalType: "uint256", name: "quantity", type: "uint256" }, + { + internalType: "uint256", + name: "pricePerToken", + type: "uint256", + }, + { internalType: "address", name: "currency", type: "address" }, + { + internalType: "uint128", + name: "validityStartTimestamp", + type: "uint128", + }, + { + internalType: "uint128", + name: "validityEndTimestamp", + type: "uint128", + }, + { internalType: "bytes32", name: "uid", type: "bytes32" }, + ], + internalType: "struct ISignatureMintERC721.MintRequest", + name: "_req", + type: "tuple", + }, + { internalType: "bytes", name: "_signature", type: "bytes" }, + ], + name: "mintWithSignature", + outputs: [{ internalType: "address", name: "signer", type: "address" }], + stateMutability: "payable", + type: "function", + }, + { + inputs: [{ internalType: "bytes[]", name: "data", type: "bytes[]" }], + name: "multicall", + outputs: [ + { internalType: "bytes[]", name: "results", type: "bytes[]" }, + ], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [], + name: "name", + outputs: [{ internalType: "string", name: "", type: "string" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "nextTokenIdToMint", + outputs: [{ internalType: "uint256", name: "", type: "uint256" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "owner", + outputs: [{ internalType: "address", name: "", type: "address" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [{ internalType: "uint256", name: "tokenId", type: "uint256" }], + name: "ownerOf", + outputs: [{ internalType: "address", name: "", type: "address" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "primarySaleRecipient", + outputs: [{ internalType: "address", name: "", type: "address" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "bytes32", name: "role", type: "bytes32" }, + { internalType: "address", name: "account", type: "address" }, + ], + name: "renounceRole", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "uint256", name: "_index", type: "uint256" }, + { internalType: "bytes", name: "_key", type: "bytes" }, + ], + name: "reveal", + outputs: [ + { internalType: "string", name: "revealedURI", type: "string" }, + ], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "bytes32", name: "role", type: "bytes32" }, + { internalType: "address", name: "account", type: "address" }, + ], + name: "revokeRole", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "uint256", name: "tokenId", type: "uint256" }, + { internalType: "uint256", name: "salePrice", type: "uint256" }, + ], + name: "royaltyInfo", + outputs: [ + { internalType: "address", name: "receiver", type: "address" }, + { internalType: "uint256", name: "royaltyAmount", type: "uint256" }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "from", type: "address" }, + { internalType: "address", name: "to", type: "address" }, + { internalType: "uint256", name: "tokenId", type: "uint256" }, + ], + name: "safeTransferFrom", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "from", type: "address" }, + { internalType: "address", name: "to", type: "address" }, + { internalType: "uint256", name: "tokenId", type: "uint256" }, + { internalType: "bytes", name: "_data", type: "bytes" }, + ], + name: "safeTransferFrom", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "operator", type: "address" }, + { internalType: "bool", name: "approved", type: "bool" }, + ], + name: "setApprovalForAll", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + components: [ + { + internalType: "uint256", + name: "startTimestamp", + type: "uint256", + }, + { + internalType: "uint256", + name: "maxClaimableSupply", + type: "uint256", + }, + { + internalType: "uint256", + name: "supplyClaimed", + type: "uint256", + }, + { + internalType: "uint256", + name: "quantityLimitPerWallet", + type: "uint256", + }, + { internalType: "bytes32", name: "merkleRoot", type: "bytes32" }, + { + internalType: "uint256", + name: "pricePerToken", + type: "uint256", + }, + { internalType: "address", name: "currency", type: "address" }, + { internalType: "string", name: "metadata", type: "string" }, + ], + internalType: "struct IClaimCondition.ClaimCondition", + name: "_condition", + type: "tuple", + }, + { + internalType: "bool", + name: "_resetClaimEligibility", + type: "bool", + }, + ], + name: "setClaimConditions", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [{ internalType: "string", name: "_uri", type: "string" }], + name: "setContractURI", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "address", + name: "_royaltyRecipient", + type: "address", + }, + { internalType: "uint256", name: "_royaltyBps", type: "uint256" }, + ], + name: "setDefaultRoyaltyInfo", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "_newOwner", type: "address" }, + ], + name: "setOwner", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "address", + name: "_platformFeeRecipient", + type: "address", + }, + { internalType: "uint256", name: "_platformFeeBps", type: "uint256" }, + ], + name: "setPlatformFeeInfo", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "_saleRecipient", type: "address" }, + ], + name: "setPrimarySaleRecipient", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "uint256", name: "_tokenId", type: "uint256" }, + { internalType: "address", name: "_recipient", type: "address" }, + { internalType: "uint256", name: "_bps", type: "uint256" }, + ], + name: "setRoyaltyInfoForToken", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "bytes4", name: "interfaceId", type: "bytes4" }, + ], + name: "supportsInterface", + outputs: [{ internalType: "bool", name: "", type: "bool" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "symbol", + outputs: [{ internalType: "string", name: "", type: "string" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "uint256", name: "_tokenId", type: "uint256" }, + ], + name: "tokenURI", + outputs: [{ internalType: "string", name: "", type: "string" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "totalMinted", + outputs: [{ internalType: "uint256", name: "", type: "uint256" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "totalSupply", + outputs: [{ internalType: "uint256", name: "", type: "uint256" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "from", type: "address" }, + { internalType: "address", name: "to", type: "address" }, + { internalType: "uint256", name: "tokenId", type: "uint256" }, + ], + name: "transferFrom", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + components: [ + { internalType: "address", name: "to", type: "address" }, + { + internalType: "address", + name: "royaltyRecipient", + type: "address", + }, + { internalType: "uint256", name: "royaltyBps", type: "uint256" }, + { + internalType: "address", + name: "primarySaleRecipient", + type: "address", + }, + { internalType: "string", name: "uri", type: "string" }, + { internalType: "uint256", name: "quantity", type: "uint256" }, + { + internalType: "uint256", + name: "pricePerToken", + type: "uint256", + }, + { internalType: "address", name: "currency", type: "address" }, + { + internalType: "uint128", + name: "validityStartTimestamp", + type: "uint128", + }, + { + internalType: "uint128", + name: "validityEndTimestamp", + type: "uint128", + }, + { internalType: "bytes32", name: "uid", type: "bytes32" }, + ], + internalType: "struct ISignatureMintERC721.MintRequest", + name: "_req", + type: "tuple", + }, + { internalType: "bytes", name: "_signature", type: "bytes" }, + ], + name: "verify", + outputs: [ + { internalType: "bool", name: "success", type: "bool" }, + { internalType: "address", name: "signer", type: "address" }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "_claimer", type: "address" }, + { internalType: "uint256", name: "_quantity", type: "uint256" }, + { internalType: "address", name: "_currency", type: "address" }, + { internalType: "uint256", name: "_pricePerToken", type: "uint256" }, + { + components: [ + { internalType: "bytes32[]", name: "proof", type: "bytes32[]" }, + { + internalType: "uint256", + name: "quantityLimitPerWallet", + type: "uint256", + }, + { + internalType: "uint256", + name: "pricePerToken", + type: "uint256", + }, + { internalType: "address", name: "currency", type: "address" }, + ], + internalType: "struct IDropSinglePhase.AllowlistProof", + name: "_allowlistProof", + type: "tuple", + }, + ], + name: "verifyClaim", + outputs: [{ internalType: "bool", name: "isOverride", type: "bool" }], + stateMutability: "view", + type: "function", + }, + ]; + }); + var jz = N((rcn, Mar) => { + Mar.exports = [ + { inputs: [], name: "ApprovalCallerNotOwnerNorApproved", type: "error" }, + { inputs: [], name: "ApprovalQueryForNonexistentToken", type: "error" }, + { inputs: [], name: "ApprovalToCurrentOwner", type: "error" }, + { inputs: [], name: "ApproveToCaller", type: "error" }, + { inputs: [], name: "BalanceQueryForZeroAddress", type: "error" }, + { inputs: [], name: "MintToZeroAddress", type: "error" }, + { inputs: [], name: "MintZeroQuantity", type: "error" }, + { inputs: [], name: "OwnerQueryForNonexistentToken", type: "error" }, + { inputs: [], name: "TransferCallerNotOwnerNorApproved", type: "error" }, + { inputs: [], name: "TransferFromIncorrectOwner", type: "error" }, + { + inputs: [], + name: "TransferToNonERC721ReceiverImplementer", + type: "error", + }, + { inputs: [], name: "TransferToZeroAddress", type: "error" }, + { inputs: [], name: "URIQueryForNonexistentToken", type: "error" }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "address", + name: "owner", + type: "address", + }, + { + indexed: !0, + internalType: "address", + name: "approved", + type: "address", + }, + { + indexed: !0, + internalType: "uint256", + name: "tokenId", + type: "uint256", + }, + ], + name: "Approval", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "address", + name: "owner", + type: "address", + }, + { + indexed: !0, + internalType: "address", + name: "operator", + type: "address", + }, + { indexed: !1, internalType: "bool", name: "approved", type: "bool" }, + ], + name: "ApprovalForAll", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + components: [ + { + internalType: "uint256", + name: "startTimestamp", + type: "uint256", + }, + { + internalType: "uint256", + name: "maxClaimableSupply", + type: "uint256", + }, + { + internalType: "uint256", + name: "supplyClaimed", + type: "uint256", + }, + { + internalType: "uint256", + name: "quantityLimitPerTransaction", + type: "uint256", + }, + { + internalType: "uint256", + name: "waitTimeInSecondsBetweenClaims", + type: "uint256", + }, + { internalType: "bytes32", name: "merkleRoot", type: "bytes32" }, + { + internalType: "uint256", + name: "pricePerToken", + type: "uint256", + }, + { internalType: "address", name: "currency", type: "address" }, + ], + indexed: !1, + internalType: "struct IClaimCondition_V1.ClaimCondition", + name: "condition", + type: "tuple", + }, + { + indexed: !1, + internalType: "bool", + name: "resetEligibility", + type: "bool", + }, + ], + name: "ClaimConditionUpdated", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !1, + internalType: "string", + name: "prevURI", + type: "string", + }, + { + indexed: !1, + internalType: "string", + name: "newURI", + type: "string", + }, + ], + name: "ContractURIUpdated", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "address", + name: "newRoyaltyRecipient", + type: "address", + }, + { + indexed: !1, + internalType: "uint256", + name: "newRoyaltyBps", + type: "uint256", + }, + ], + name: "DefaultRoyalty", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !1, + internalType: "uint8", + name: "version", + type: "uint8", + }, + ], + name: "Initialized", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "address", + name: "prevOwner", + type: "address", + }, + { + indexed: !0, + internalType: "address", + name: "newOwner", + type: "address", + }, + ], + name: "OwnerUpdated", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "address", + name: "platformFeeRecipient", + type: "address", + }, + { + indexed: !1, + internalType: "uint256", + name: "platformFeeBps", + type: "uint256", + }, + ], + name: "PlatformFeeInfoUpdated", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "address", + name: "recipient", + type: "address", + }, + ], + name: "PrimarySaleRecipientUpdated", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "bytes32", + name: "role", + type: "bytes32", + }, + { + indexed: !0, + internalType: "bytes32", + name: "previousAdminRole", + type: "bytes32", + }, + { + indexed: !0, + internalType: "bytes32", + name: "newAdminRole", + type: "bytes32", + }, + ], + name: "RoleAdminChanged", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "bytes32", + name: "role", + type: "bytes32", + }, + { + indexed: !0, + internalType: "address", + name: "account", + type: "address", + }, + { + indexed: !0, + internalType: "address", + name: "sender", + type: "address", + }, + ], + name: "RoleGranted", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "bytes32", + name: "role", + type: "bytes32", + }, + { + indexed: !0, + internalType: "address", + name: "account", + type: "address", + }, + { + indexed: !0, + internalType: "address", + name: "sender", + type: "address", + }, + ], + name: "RoleRevoked", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "uint256", + name: "tokenId", + type: "uint256", + }, + { + indexed: !0, + internalType: "address", + name: "royaltyRecipient", + type: "address", + }, + { + indexed: !1, + internalType: "uint256", + name: "royaltyBps", + type: "uint256", + }, + ], + name: "RoyaltyForToken", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "uint256", + name: "index", + type: "uint256", + }, + { + indexed: !1, + internalType: "string", + name: "revealedURI", + type: "string", + }, + ], + name: "TokenURIRevealed", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "address", + name: "claimer", + type: "address", + }, + { + indexed: !0, + internalType: "address", + name: "receiver", + type: "address", + }, + { + indexed: !0, + internalType: "uint256", + name: "startTokenId", + type: "uint256", + }, + { + indexed: !1, + internalType: "uint256", + name: "quantityClaimed", + type: "uint256", + }, + ], + name: "TokensClaimed", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "uint256", + name: "startTokenId", + type: "uint256", + }, + { + indexed: !1, + internalType: "uint256", + name: "endTokenId", + type: "uint256", + }, + { + indexed: !1, + internalType: "string", + name: "baseURI", + type: "string", + }, + { + indexed: !1, + internalType: "bytes", + name: "encryptedBaseURI", + type: "bytes", + }, + ], + name: "TokensLazyMinted", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "address", + name: "signer", + type: "address", + }, + { + indexed: !0, + internalType: "address", + name: "mintedTo", + type: "address", + }, + { + indexed: !0, + internalType: "uint256", + name: "tokenIdMinted", + type: "uint256", + }, + { + components: [ + { internalType: "address", name: "to", type: "address" }, + { + internalType: "address", + name: "royaltyRecipient", + type: "address", + }, + { internalType: "uint256", name: "royaltyBps", type: "uint256" }, + { + internalType: "address", + name: "primarySaleRecipient", + type: "address", + }, + { internalType: "string", name: "uri", type: "string" }, + { internalType: "uint256", name: "quantity", type: "uint256" }, + { + internalType: "uint256", + name: "pricePerToken", + type: "uint256", + }, + { internalType: "address", name: "currency", type: "address" }, + { + internalType: "uint128", + name: "validityStartTimestamp", + type: "uint128", + }, + { + internalType: "uint128", + name: "validityEndTimestamp", + type: "uint128", + }, + { internalType: "bytes32", name: "uid", type: "bytes32" }, + ], + indexed: !1, + internalType: "struct ISignatureMintERC721.MintRequest", + name: "mintRequest", + type: "tuple", + }, + ], + name: "TokensMintedWithSignature", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "address", + name: "from", + type: "address", + }, + { indexed: !0, internalType: "address", name: "to", type: "address" }, + { + indexed: !0, + internalType: "uint256", + name: "tokenId", + type: "uint256", + }, + ], + name: "Transfer", + type: "event", + }, + { + inputs: [], + name: "DEFAULT_ADMIN_ROLE", + outputs: [{ internalType: "bytes32", name: "", type: "bytes32" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "to", type: "address" }, + { internalType: "uint256", name: "tokenId", type: "uint256" }, + ], + name: "approve", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [{ internalType: "address", name: "owner", type: "address" }], + name: "balanceOf", + outputs: [{ internalType: "uint256", name: "", type: "uint256" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [{ internalType: "uint256", name: "tokenId", type: "uint256" }], + name: "burn", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "_receiver", type: "address" }, + { internalType: "uint256", name: "_quantity", type: "uint256" }, + { internalType: "address", name: "_currency", type: "address" }, + { internalType: "uint256", name: "_pricePerToken", type: "uint256" }, + { + components: [ + { internalType: "bytes32[]", name: "proof", type: "bytes32[]" }, + { + internalType: "uint256", + name: "maxQuantityInAllowlist", + type: "uint256", + }, + ], + internalType: "struct IDropSinglePhase_V1.AllowlistProof", + name: "_allowlistProof", + type: "tuple", + }, + { internalType: "bytes", name: "_data", type: "bytes" }, + ], + name: "claim", + outputs: [], + stateMutability: "payable", + type: "function", + }, + { + inputs: [], + name: "claimCondition", + outputs: [ + { internalType: "uint256", name: "startTimestamp", type: "uint256" }, + { + internalType: "uint256", + name: "maxClaimableSupply", + type: "uint256", + }, + { internalType: "uint256", name: "supplyClaimed", type: "uint256" }, + { + internalType: "uint256", + name: "quantityLimitPerTransaction", + type: "uint256", + }, + { + internalType: "uint256", + name: "waitTimeInSecondsBetweenClaims", + type: "uint256", + }, + { internalType: "bytes32", name: "merkleRoot", type: "bytes32" }, + { internalType: "uint256", name: "pricePerToken", type: "uint256" }, + { internalType: "address", name: "currency", type: "address" }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "contractType", + outputs: [{ internalType: "bytes32", name: "", type: "bytes32" }], + stateMutability: "pure", + type: "function", + }, + { + inputs: [], + name: "contractURI", + outputs: [{ internalType: "string", name: "", type: "string" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "contractVersion", + outputs: [{ internalType: "uint8", name: "", type: "uint8" }], + stateMutability: "pure", + type: "function", + }, + { + inputs: [ + { internalType: "bytes", name: "data", type: "bytes" }, + { internalType: "bytes", name: "key", type: "bytes" }, + ], + name: "encryptDecrypt", + outputs: [{ internalType: "bytes", name: "result", type: "bytes" }], + stateMutability: "pure", + type: "function", + }, + { + inputs: [{ internalType: "uint256", name: "", type: "uint256" }], + name: "encryptedData", + outputs: [{ internalType: "bytes", name: "", type: "bytes" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [{ internalType: "uint256", name: "tokenId", type: "uint256" }], + name: "getApproved", + outputs: [{ internalType: "address", name: "", type: "address" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "getBaseURICount", + outputs: [{ internalType: "uint256", name: "", type: "uint256" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [{ internalType: "uint256", name: "_index", type: "uint256" }], + name: "getBatchIdAtIndex", + outputs: [{ internalType: "uint256", name: "", type: "uint256" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "_claimer", type: "address" }, + ], + name: "getClaimTimestamp", + outputs: [ + { internalType: "uint256", name: "lastClaimedAt", type: "uint256" }, + { + internalType: "uint256", + name: "nextValidClaimTimestamp", + type: "uint256", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "getDefaultRoyaltyInfo", + outputs: [ + { internalType: "address", name: "", type: "address" }, + { internalType: "uint16", name: "", type: "uint16" }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "getPlatformFeeInfo", + outputs: [ + { internalType: "address", name: "", type: "address" }, + { internalType: "uint16", name: "", type: "uint16" }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "uint256", name: "_batchId", type: "uint256" }, + { internalType: "bytes", name: "_key", type: "bytes" }, + ], + name: "getRevealURI", + outputs: [ + { internalType: "string", name: "revealedURI", type: "string" }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [{ internalType: "bytes32", name: "role", type: "bytes32" }], + name: "getRoleAdmin", + outputs: [{ internalType: "bytes32", name: "", type: "bytes32" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "bytes32", name: "role", type: "bytes32" }, + { internalType: "uint256", name: "index", type: "uint256" }, + ], + name: "getRoleMember", + outputs: [{ internalType: "address", name: "member", type: "address" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [{ internalType: "bytes32", name: "role", type: "bytes32" }], + name: "getRoleMemberCount", + outputs: [{ internalType: "uint256", name: "count", type: "uint256" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "uint256", name: "_tokenId", type: "uint256" }, + ], + name: "getRoyaltyInfoForToken", + outputs: [ + { internalType: "address", name: "", type: "address" }, + { internalType: "uint16", name: "", type: "uint16" }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "bytes32", name: "role", type: "bytes32" }, + { internalType: "address", name: "account", type: "address" }, + ], + name: "grantRole", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "bytes32", name: "role", type: "bytes32" }, + { internalType: "address", name: "account", type: "address" }, + ], + name: "hasRole", + outputs: [{ internalType: "bool", name: "", type: "bool" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "bytes32", name: "role", type: "bytes32" }, + { internalType: "address", name: "account", type: "address" }, + ], + name: "hasRoleWithSwitch", + outputs: [{ internalType: "bool", name: "", type: "bool" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "_defaultAdmin", type: "address" }, + { internalType: "string", name: "_name", type: "string" }, + { internalType: "string", name: "_symbol", type: "string" }, + { internalType: "string", name: "_contractURI", type: "string" }, + { + internalType: "address[]", + name: "_trustedForwarders", + type: "address[]", + }, + { internalType: "address", name: "_saleRecipient", type: "address" }, + { + internalType: "address", + name: "_royaltyRecipient", + type: "address", + }, + { internalType: "uint128", name: "_royaltyBps", type: "uint128" }, + { internalType: "uint128", name: "_platformFeeBps", type: "uint128" }, + { + internalType: "address", + name: "_platformFeeRecipient", + type: "address", + }, + ], + name: "initialize", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "owner", type: "address" }, + { internalType: "address", name: "operator", type: "address" }, + ], + name: "isApprovedForAll", + outputs: [{ internalType: "bool", name: "", type: "bool" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "uint256", name: "_batchId", type: "uint256" }, + ], + name: "isEncryptedBatch", + outputs: [{ internalType: "bool", name: "", type: "bool" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "forwarder", type: "address" }, + ], + name: "isTrustedForwarder", + outputs: [{ internalType: "bool", name: "", type: "bool" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "uint256", name: "_amount", type: "uint256" }, + { internalType: "string", name: "_baseURIForTokens", type: "string" }, + { internalType: "bytes", name: "_data", type: "bytes" }, + ], + name: "lazyMint", + outputs: [ + { internalType: "uint256", name: "batchId", type: "uint256" }, + ], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + components: [ + { internalType: "address", name: "to", type: "address" }, + { + internalType: "address", + name: "royaltyRecipient", + type: "address", + }, + { internalType: "uint256", name: "royaltyBps", type: "uint256" }, + { + internalType: "address", + name: "primarySaleRecipient", + type: "address", + }, + { internalType: "string", name: "uri", type: "string" }, + { internalType: "uint256", name: "quantity", type: "uint256" }, + { + internalType: "uint256", + name: "pricePerToken", + type: "uint256", + }, + { internalType: "address", name: "currency", type: "address" }, + { + internalType: "uint128", + name: "validityStartTimestamp", + type: "uint128", + }, + { + internalType: "uint128", + name: "validityEndTimestamp", + type: "uint128", + }, + { internalType: "bytes32", name: "uid", type: "bytes32" }, + ], + internalType: "struct ISignatureMintERC721.MintRequest", + name: "_req", + type: "tuple", + }, + { internalType: "bytes", name: "_signature", type: "bytes" }, + ], + name: "mintWithSignature", + outputs: [{ internalType: "address", name: "signer", type: "address" }], + stateMutability: "payable", + type: "function", + }, + { + inputs: [{ internalType: "bytes[]", name: "data", type: "bytes[]" }], + name: "multicall", + outputs: [ + { internalType: "bytes[]", name: "results", type: "bytes[]" }, + ], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [], + name: "name", + outputs: [{ internalType: "string", name: "", type: "string" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "nextTokenIdToMint", + outputs: [{ internalType: "uint256", name: "", type: "uint256" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "owner", + outputs: [{ internalType: "address", name: "", type: "address" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [{ internalType: "uint256", name: "tokenId", type: "uint256" }], + name: "ownerOf", + outputs: [{ internalType: "address", name: "", type: "address" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "primarySaleRecipient", + outputs: [{ internalType: "address", name: "", type: "address" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "bytes32", name: "role", type: "bytes32" }, + { internalType: "address", name: "account", type: "address" }, + ], + name: "renounceRole", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "uint256", name: "_index", type: "uint256" }, + { internalType: "bytes", name: "_key", type: "bytes" }, + ], + name: "reveal", + outputs: [ + { internalType: "string", name: "revealedURI", type: "string" }, + ], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "bytes32", name: "role", type: "bytes32" }, + { internalType: "address", name: "account", type: "address" }, + ], + name: "revokeRole", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "uint256", name: "tokenId", type: "uint256" }, + { internalType: "uint256", name: "salePrice", type: "uint256" }, + ], + name: "royaltyInfo", + outputs: [ + { internalType: "address", name: "receiver", type: "address" }, + { internalType: "uint256", name: "royaltyAmount", type: "uint256" }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "from", type: "address" }, + { internalType: "address", name: "to", type: "address" }, + { internalType: "uint256", name: "tokenId", type: "uint256" }, + ], + name: "safeTransferFrom", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "from", type: "address" }, + { internalType: "address", name: "to", type: "address" }, + { internalType: "uint256", name: "tokenId", type: "uint256" }, + { internalType: "bytes", name: "_data", type: "bytes" }, + ], + name: "safeTransferFrom", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "operator", type: "address" }, + { internalType: "bool", name: "approved", type: "bool" }, + ], + name: "setApprovalForAll", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + components: [ + { + internalType: "uint256", + name: "startTimestamp", + type: "uint256", + }, + { + internalType: "uint256", + name: "maxClaimableSupply", + type: "uint256", + }, + { + internalType: "uint256", + name: "supplyClaimed", + type: "uint256", + }, + { + internalType: "uint256", + name: "quantityLimitPerTransaction", + type: "uint256", + }, + { + internalType: "uint256", + name: "waitTimeInSecondsBetweenClaims", + type: "uint256", + }, + { internalType: "bytes32", name: "merkleRoot", type: "bytes32" }, + { + internalType: "uint256", + name: "pricePerToken", + type: "uint256", + }, + { internalType: "address", name: "currency", type: "address" }, + ], + internalType: "struct IClaimCondition_V1.ClaimCondition", + name: "_condition", + type: "tuple", + }, + { + internalType: "bool", + name: "_resetClaimEligibility", + type: "bool", + }, + ], + name: "setClaimConditions", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [{ internalType: "string", name: "_uri", type: "string" }], + name: "setContractURI", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "address", + name: "_royaltyRecipient", + type: "address", + }, + { internalType: "uint256", name: "_royaltyBps", type: "uint256" }, + ], + name: "setDefaultRoyaltyInfo", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "_newOwner", type: "address" }, + ], + name: "setOwner", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "address", + name: "_platformFeeRecipient", + type: "address", + }, + { internalType: "uint256", name: "_platformFeeBps", type: "uint256" }, + ], + name: "setPlatformFeeInfo", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "_saleRecipient", type: "address" }, + ], + name: "setPrimarySaleRecipient", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "uint256", name: "_tokenId", type: "uint256" }, + { internalType: "address", name: "_recipient", type: "address" }, + { internalType: "uint256", name: "_bps", type: "uint256" }, + ], + name: "setRoyaltyInfoForToken", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "bytes4", name: "interfaceId", type: "bytes4" }, + ], + name: "supportsInterface", + outputs: [{ internalType: "bool", name: "", type: "bool" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "symbol", + outputs: [{ internalType: "string", name: "", type: "string" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "uint256", name: "_tokenId", type: "uint256" }, + ], + name: "tokenURI", + outputs: [{ internalType: "string", name: "", type: "string" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "totalMinted", + outputs: [{ internalType: "uint256", name: "", type: "uint256" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "totalSupply", + outputs: [{ internalType: "uint256", name: "", type: "uint256" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "from", type: "address" }, + { internalType: "address", name: "to", type: "address" }, + { internalType: "uint256", name: "tokenId", type: "uint256" }, + ], + name: "transferFrom", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + components: [ + { internalType: "address", name: "to", type: "address" }, + { + internalType: "address", + name: "royaltyRecipient", + type: "address", + }, + { internalType: "uint256", name: "royaltyBps", type: "uint256" }, + { + internalType: "address", + name: "primarySaleRecipient", + type: "address", + }, + { internalType: "string", name: "uri", type: "string" }, + { internalType: "uint256", name: "quantity", type: "uint256" }, + { + internalType: "uint256", + name: "pricePerToken", + type: "uint256", + }, + { internalType: "address", name: "currency", type: "address" }, + { + internalType: "uint128", + name: "validityStartTimestamp", + type: "uint128", + }, + { + internalType: "uint128", + name: "validityEndTimestamp", + type: "uint128", + }, + { internalType: "bytes32", name: "uid", type: "bytes32" }, + ], + internalType: "struct ISignatureMintERC721.MintRequest", + name: "_req", + type: "tuple", + }, + { internalType: "bytes", name: "_signature", type: "bytes" }, + ], + name: "verify", + outputs: [ + { internalType: "bool", name: "success", type: "bool" }, + { internalType: "address", name: "signer", type: "address" }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "_claimer", type: "address" }, + { internalType: "uint256", name: "_quantity", type: "uint256" }, + { internalType: "address", name: "_currency", type: "address" }, + { internalType: "uint256", name: "_pricePerToken", type: "uint256" }, + { + internalType: "bool", + name: "verifyMaxQuantityPerTransaction", + type: "bool", + }, + ], + name: "verifyClaim", + outputs: [], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "_claimer", type: "address" }, + { internalType: "uint256", name: "_quantity", type: "uint256" }, + { + components: [ + { internalType: "bytes32[]", name: "proof", type: "bytes32[]" }, + { + internalType: "uint256", + name: "maxQuantityInAllowlist", + type: "uint256", + }, + ], + internalType: "struct IDropSinglePhase_V1.AllowlistProof", + name: "_allowlistProof", + type: "tuple", + }, + ], + name: "verifyClaimMerkleProof", + outputs: [ + { internalType: "bool", name: "validMerkleProof", type: "bool" }, + { + internalType: "uint256", + name: "merkleProofIndex", + type: "uint256", + }, + ], + stateMutability: "view", + type: "function", + }, + ]; + }); + var WFe = N((FFe) => { + "use strict"; + _(); + x(); + var jd = Oo(), + Sf = kc(), + Par = Hn(), + Kz = wt(); + Gr(); + an(); + Bn(); + Nn(); + On(); + Ln(); + Dn(); + qn(); + Fn(); + Wn(); + Un(); + zn(); + jn(); + Kn(); + Vn(); + Gn(); + Yn(); + $n(); + Jn(); + Zn(); + Qn(); + Xn(); + ea(); + ta(); + ra(); + na(); + aa(); + ia(); + sa(); + oa(); + ca(); + ua(); + la(); + da(); + pa(); + ha(); + fa(); + ma(); + ya(); + ga(); + ba(); + va(); + wa(); + _a(); + xa(); + Ta(); + Ea(); + Ca(); + vn(); + Ia(); + Aa(); + ka(); + An(); + Sa(); + Ma(); + Pa(); + Ra(); + Ba(); + Na(); + Oa(); + La(); + Da(); + qa(); + Fa(); + Wa(); + Ua(); + Ha(); + za(); + function Rar(r) { + return r && r.__esModule ? r : { default: r }; + } + var Bar = Rar(Par), + vw = class { + get chainId() { + return this._chainId; + } + constructor(e, t, n) { + let a = + arguments.length > 3 && arguments[3] !== void 0 + ? arguments[3] + : {}, + i = arguments.length > 4 ? arguments[4] : void 0, + s = arguments.length > 5 ? arguments[5] : void 0, + c = + arguments.length > 6 && arguments[6] !== void 0 + ? arguments[6] + : new Sf.ContractWrapper(e, t, i, a); + jd._defineProperty(this, "contractWrapper", void 0), + jd._defineProperty(this, "storage", void 0), + jd._defineProperty(this, "abi", void 0), + jd._defineProperty(this, "metadata", void 0), + jd._defineProperty(this, "encoder", void 0), + jd._defineProperty(this, "estimator", void 0), + jd._defineProperty(this, "events", void 0), + jd._defineProperty(this, "roles", void 0), + jd._defineProperty(this, "interceptor", void 0), + jd._defineProperty(this, "_chainId", void 0), + (this._chainId = s), + (this.abi = i), + (this.contractWrapper = c), + (this.storage = n), + (this.metadata = new Sf.ContractMetadata( + this.contractWrapper, + Sf.SplitsContractSchema, + this.storage + )), + (this.roles = new Sf.ContractRoles( + this.contractWrapper, + vw.contractRoles + )), + (this.encoder = new Sf.ContractEncoder(this.contractWrapper)), + (this.estimator = new Sf.GasCostEstimator(this.contractWrapper)), + (this.events = new Sf.ContractEvents(this.contractWrapper)), + (this.interceptor = new Sf.ContractInterceptor( + this.contractWrapper + )); + } + onNetworkUpdated(e) { + this.contractWrapper.updateSignerOrProvider(e); + } + getAddress() { + return this.contractWrapper.readContract.address; + } + async getAllRecipients() { + let e = [], + t = Kz.BigNumber.from(0), + n = await this.contractWrapper.readContract.payeeCount(); + for (; t.lt(n); ) + try { + let a = await this.contractWrapper.readContract.payee(t); + e.push(await this.getRecipientSplitPercentage(a)), (t = t.add(1)); + } catch (a) { + if ( + "method" in a && + a.method.toLowerCase().includes("payee(uint256)") + ) + break; + throw a; + } + return e; + } + async balanceOfAllRecipients() { + let e = await this.getAllRecipients(), + t = {}; + for (let n of e) t[n.address] = await this.balanceOf(n.address); + return t; + } + async balanceOfTokenAllRecipients(e) { + let t = await this.getAllRecipients(), + n = {}; + for (let a of t) + n[a.address] = await this.balanceOfToken(a.address, e); + return n; + } + async balanceOf(e) { + let t = await this.contractWrapper.readContract.provider.getBalance( + this.getAddress() + ), + n = await this.contractWrapper.readContract["totalReleased()"](), + a = t.add(n); + return this._pendingPayment( + e, + a, + await this.contractWrapper.readContract["released(address)"](e) + ); + } + async balanceOfToken(e, t) { + let a = await new Kz.Contract( + t, + Bar.default, + this.contractWrapper.getProvider() + ).balanceOf(this.getAddress()), + i = await this.contractWrapper.readContract[ + "totalReleased(address)" + ](t), + s = a.add(i), + c = await this._pendingPayment( + e, + s, + await this.contractWrapper.readContract[ + "released(address,address)" + ](t, e) + ); + return await Sf.fetchCurrencyValue( + this.contractWrapper.getProvider(), + t, + c + ); + } + async getRecipientSplitPercentage(e) { + let [t, n] = await Promise.all([ + this.contractWrapper.readContract.totalShares(), + this.contractWrapper.readContract.shares(e), + ]); + return { + address: e, + splitPercentage: + n.mul(Kz.BigNumber.from(1e7)).div(t).toNumber() / 1e5, + }; + } + async withdraw(e) { + return { + receipt: await this.contractWrapper.sendTransaction( + "release(address)", + [e] + ), + }; + } + async withdrawToken(e, t) { + return { + receipt: await this.contractWrapper.sendTransaction( + "release(address,address)", + [t, e] + ), + }; + } + async distribute() { + return { + receipt: await this.contractWrapper.sendTransaction( + "distribute()", + [] + ), + }; + } + async distributeToken(e) { + return { + receipt: await this.contractWrapper.sendTransaction( + "distribute(address)", + [e] + ), + }; + } + async _pendingPayment(e, t, n) { + return t + .mul(await this.contractWrapper.readContract.shares(e)) + .div(await this.contractWrapper.readContract.totalShares()) + .sub(n); + } + async call(e) { + for ( + var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), a = 1; + a < t; + a++ + ) + n[a - 1] = arguments[a]; + return this.contractWrapper.call(e, ...n); + } + }; + jd._defineProperty(vw, "contractRoles", ["admin"]); + FFe.Split = vw; + }); + var Vz = N((scn, Nar) => { + Nar.exports = [ + { inputs: [], stateMutability: "nonpayable", type: "constructor" }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "contract IERC20Upgradeable", + name: "token", + type: "address", + }, + { indexed: !1, internalType: "address", name: "to", type: "address" }, + { + indexed: !1, + internalType: "uint256", + name: "amount", + type: "uint256", + }, + ], + name: "ERC20PaymentReleased", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !1, + internalType: "uint8", + name: "version", + type: "uint8", + }, + ], + name: "Initialized", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !1, + internalType: "address", + name: "account", + type: "address", + }, + { + indexed: !1, + internalType: "uint256", + name: "shares", + type: "uint256", + }, + ], + name: "PayeeAdded", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !1, + internalType: "address", + name: "from", + type: "address", + }, + { + indexed: !1, + internalType: "uint256", + name: "amount", + type: "uint256", + }, + ], + name: "PaymentReceived", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { indexed: !1, internalType: "address", name: "to", type: "address" }, + { + indexed: !1, + internalType: "uint256", + name: "amount", + type: "uint256", + }, + ], + name: "PaymentReleased", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "bytes32", + name: "role", + type: "bytes32", + }, + { + indexed: !0, + internalType: "bytes32", + name: "previousAdminRole", + type: "bytes32", + }, + { + indexed: !0, + internalType: "bytes32", + name: "newAdminRole", + type: "bytes32", + }, + ], + name: "RoleAdminChanged", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "bytes32", + name: "role", + type: "bytes32", + }, + { + indexed: !0, + internalType: "address", + name: "account", + type: "address", + }, + { + indexed: !0, + internalType: "address", + name: "sender", + type: "address", + }, + ], + name: "RoleGranted", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "bytes32", + name: "role", + type: "bytes32", + }, + { + indexed: !0, + internalType: "address", + name: "account", + type: "address", + }, + { + indexed: !0, + internalType: "address", + name: "sender", + type: "address", + }, + ], + name: "RoleRevoked", + type: "event", + }, + { + inputs: [], + name: "DEFAULT_ADMIN_ROLE", + outputs: [{ internalType: "bytes32", name: "", type: "bytes32" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "contractType", + outputs: [{ internalType: "bytes32", name: "", type: "bytes32" }], + stateMutability: "pure", + type: "function", + }, + { + inputs: [], + name: "contractURI", + outputs: [{ internalType: "string", name: "", type: "string" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "contractVersion", + outputs: [{ internalType: "uint8", name: "", type: "uint8" }], + stateMutability: "pure", + type: "function", + }, + { + inputs: [ + { + internalType: "contract IERC20Upgradeable", + name: "token", + type: "address", + }, + ], + name: "distribute", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [], + name: "distribute", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [{ internalType: "bytes32", name: "role", type: "bytes32" }], + name: "getRoleAdmin", + outputs: [{ internalType: "bytes32", name: "", type: "bytes32" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "bytes32", name: "role", type: "bytes32" }, + { internalType: "uint256", name: "index", type: "uint256" }, + ], + name: "getRoleMember", + outputs: [{ internalType: "address", name: "", type: "address" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [{ internalType: "bytes32", name: "role", type: "bytes32" }], + name: "getRoleMemberCount", + outputs: [{ internalType: "uint256", name: "", type: "uint256" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "bytes32", name: "role", type: "bytes32" }, + { internalType: "address", name: "account", type: "address" }, + ], + name: "grantRole", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "bytes32", name: "role", type: "bytes32" }, + { internalType: "address", name: "account", type: "address" }, + ], + name: "hasRole", + outputs: [{ internalType: "bool", name: "", type: "bool" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "_defaultAdmin", type: "address" }, + { internalType: "string", name: "_contractURI", type: "string" }, + { + internalType: "address[]", + name: "_trustedForwarders", + type: "address[]", + }, + { internalType: "address[]", name: "_payees", type: "address[]" }, + { internalType: "uint256[]", name: "_shares", type: "uint256[]" }, + ], + name: "initialize", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "forwarder", type: "address" }, + ], + name: "isTrustedForwarder", + outputs: [{ internalType: "bool", name: "", type: "bool" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [{ internalType: "bytes[]", name: "data", type: "bytes[]" }], + name: "multicall", + outputs: [ + { internalType: "bytes[]", name: "results", type: "bytes[]" }, + ], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [{ internalType: "uint256", name: "index", type: "uint256" }], + name: "payee", + outputs: [{ internalType: "address", name: "", type: "address" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "payeeCount", + outputs: [{ internalType: "uint256", name: "", type: "uint256" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [{ internalType: "address", name: "account", type: "address" }], + name: "releasable", + outputs: [{ internalType: "uint256", name: "", type: "uint256" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { + internalType: "contract IERC20Upgradeable", + name: "token", + type: "address", + }, + { internalType: "address", name: "account", type: "address" }, + ], + name: "releasable", + outputs: [{ internalType: "uint256", name: "", type: "uint256" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "address payable", name: "account", type: "address" }, + ], + name: "release", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "contract IERC20Upgradeable", + name: "token", + type: "address", + }, + { internalType: "address", name: "account", type: "address" }, + ], + name: "release", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "contract IERC20Upgradeable", + name: "token", + type: "address", + }, + { internalType: "address", name: "account", type: "address" }, + ], + name: "released", + outputs: [{ internalType: "uint256", name: "", type: "uint256" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [{ internalType: "address", name: "account", type: "address" }], + name: "released", + outputs: [{ internalType: "uint256", name: "", type: "uint256" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "bytes32", name: "role", type: "bytes32" }, + { internalType: "address", name: "account", type: "address" }, + ], + name: "renounceRole", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "bytes32", name: "role", type: "bytes32" }, + { internalType: "address", name: "account", type: "address" }, + ], + name: "revokeRole", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [{ internalType: "string", name: "_uri", type: "string" }], + name: "setContractURI", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [{ internalType: "address", name: "account", type: "address" }], + name: "shares", + outputs: [{ internalType: "uint256", name: "", type: "uint256" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "bytes4", name: "interfaceId", type: "bytes4" }, + ], + name: "supportsInterface", + outputs: [{ internalType: "bool", name: "", type: "bool" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { + internalType: "contract IERC20Upgradeable", + name: "token", + type: "address", + }, + ], + name: "totalReleased", + outputs: [{ internalType: "uint256", name: "", type: "uint256" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "totalReleased", + outputs: [{ internalType: "uint256", name: "", type: "uint256" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "totalShares", + outputs: [{ internalType: "uint256", name: "", type: "uint256" }], + stateMutability: "view", + type: "function", + }, + { stateMutability: "payable", type: "receive" }, + ]; + }); + var HFe = N((UFe) => { + "use strict"; + _(); + x(); + var Kd = Oo(), + Vu = kc(), + Oar = wt(); + Gr(); + an(); + Bn(); + Nn(); + On(); + Ln(); + Dn(); + qn(); + Fn(); + Wn(); + Un(); + Hn(); + zn(); + jn(); + Kn(); + Vn(); + Gn(); + Yn(); + $n(); + Jn(); + Zn(); + Qn(); + Xn(); + ea(); + ta(); + ra(); + na(); + aa(); + ia(); + sa(); + oa(); + ca(); + ua(); + la(); + da(); + pa(); + ha(); + fa(); + ma(); + ya(); + ga(); + ba(); + va(); + wa(); + _a(); + xa(); + Ta(); + Ea(); + Ca(); + vn(); + Ia(); + Aa(); + ka(); + An(); + Sa(); + Ma(); + Pa(); + Ra(); + Ba(); + Na(); + Oa(); + La(); + Da(); + qa(); + Fa(); + Wa(); + Ua(); + Ha(); + za(); + var ww = class extends Vu.StandardErc20 { + constructor(e, t, n) { + let a = + arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {}, + i = arguments.length > 4 ? arguments[4] : void 0, + s = arguments.length > 5 ? arguments[5] : void 0, + c = + arguments.length > 6 && arguments[6] !== void 0 + ? arguments[6] + : new Vu.ContractWrapper(e, t, i, a); + super(c, n, s), + Kd._defineProperty(this, "abi", void 0), + Kd._defineProperty(this, "metadata", void 0), + Kd._defineProperty(this, "roles", void 0), + Kd._defineProperty(this, "encoder", void 0), + Kd._defineProperty(this, "estimator", void 0), + Kd._defineProperty(this, "sales", void 0), + Kd._defineProperty(this, "platformFees", void 0), + Kd._defineProperty(this, "events", void 0), + Kd._defineProperty(this, "claimConditions", void 0), + Kd._defineProperty(this, "interceptor", void 0), + (this.abi = i), + (this.metadata = new Vu.ContractMetadata( + this.contractWrapper, + Vu.DropErc20ContractSchema, + this.storage + )), + (this.roles = new Vu.ContractRoles( + this.contractWrapper, + ww.contractRoles + )), + (this.encoder = new Vu.ContractEncoder(this.contractWrapper)), + (this.estimator = new Vu.GasCostEstimator(this.contractWrapper)), + (this.events = new Vu.ContractEvents(this.contractWrapper)), + (this.sales = new Vu.ContractPrimarySale(this.contractWrapper)), + (this.platformFees = new Vu.ContractPlatformFee( + this.contractWrapper + )), + (this.interceptor = new Vu.ContractInterceptor(this.contractWrapper)), + (this.claimConditions = new Vu.DropClaimConditions( + this.contractWrapper, + this.metadata, + this.storage + )); + } + async getVoteBalance() { + return await this.getVoteBalanceOf( + await this.contractWrapper.getSignerAddress() + ); + } + async getVoteBalanceOf(e) { + return await this.erc20.getValue( + await this.contractWrapper.readContract.getVotes(e) + ); + } + async getDelegation() { + return await this.getDelegationOf( + await this.contractWrapper.getSignerAddress() + ); + } + async getDelegationOf(e) { + return await this.contractWrapper.readContract.delegates(e); + } + async isTransferRestricted() { + return !(await this.contractWrapper.readContract.hasRole( + Vu.getRoleHash("transfer"), + Oar.constants.AddressZero + )); + } + async claim(e) { + let t = + arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0; + return this.claimTo( + await this.contractWrapper.getSignerAddress(), + e, + t + ); + } + async claimTo(e, t) { + let n = + arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !0; + return this.erc20.claimTo(e, t, { checkERC20Allowance: n }); + } + async delegateTo(e) { + return { + receipt: await this.contractWrapper.sendTransaction("delegate", [e]), + }; + } + async burnTokens(e) { + return this.erc20.burn(e); + } + async burnFrom(e, t) { + return this.erc20.burnFrom(e, t); + } + async call(e) { + for ( + var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), a = 1; + a < t; + a++ + ) + n[a - 1] = arguments[a]; + return this.contractWrapper.call(e, ...n); + } + }; + Kd._defineProperty(ww, "contractRoles", ["admin", "transfer"]); + UFe.TokenDrop = ww; + }); + var Gz = N((lcn, Lar) => { + Lar.exports = [ + { inputs: [], stateMutability: "nonpayable", type: "constructor" }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "address", + name: "owner", + type: "address", + }, + { + indexed: !0, + internalType: "address", + name: "spender", + type: "address", + }, + { + indexed: !1, + internalType: "uint256", + name: "value", + type: "uint256", + }, + ], + name: "Approval", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + components: [ + { + internalType: "uint256", + name: "startTimestamp", + type: "uint256", + }, + { + internalType: "uint256", + name: "maxClaimableSupply", + type: "uint256", + }, + { + internalType: "uint256", + name: "supplyClaimed", + type: "uint256", + }, + { + internalType: "uint256", + name: "quantityLimitPerWallet", + type: "uint256", + }, + { internalType: "bytes32", name: "merkleRoot", type: "bytes32" }, + { + internalType: "uint256", + name: "pricePerToken", + type: "uint256", + }, + { internalType: "address", name: "currency", type: "address" }, + { internalType: "string", name: "metadata", type: "string" }, + ], + indexed: !1, + internalType: "struct IClaimCondition.ClaimCondition[]", + name: "claimConditions", + type: "tuple[]", + }, + { + indexed: !1, + internalType: "bool", + name: "resetEligibility", + type: "bool", + }, + ], + name: "ClaimConditionsUpdated", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !1, + internalType: "string", + name: "prevURI", + type: "string", + }, + { + indexed: !1, + internalType: "string", + name: "newURI", + type: "string", + }, + ], + name: "ContractURIUpdated", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "address", + name: "delegator", + type: "address", + }, + { + indexed: !0, + internalType: "address", + name: "fromDelegate", + type: "address", + }, + { + indexed: !0, + internalType: "address", + name: "toDelegate", + type: "address", + }, + ], + name: "DelegateChanged", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "address", + name: "delegate", + type: "address", + }, + { + indexed: !1, + internalType: "uint256", + name: "previousBalance", + type: "uint256", + }, + { + indexed: !1, + internalType: "uint256", + name: "newBalance", + type: "uint256", + }, + ], + name: "DelegateVotesChanged", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !1, + internalType: "uint8", + name: "version", + type: "uint8", + }, + ], + name: "Initialized", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !1, + internalType: "uint256", + name: "maxTotalSupply", + type: "uint256", + }, + ], + name: "MaxTotalSupplyUpdated", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "address", + name: "platformFeeRecipient", + type: "address", + }, + { + indexed: !1, + internalType: "uint256", + name: "platformFeeBps", + type: "uint256", + }, + ], + name: "PlatformFeeInfoUpdated", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "address", + name: "recipient", + type: "address", + }, + ], + name: "PrimarySaleRecipientUpdated", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "bytes32", + name: "role", + type: "bytes32", + }, + { + indexed: !0, + internalType: "bytes32", + name: "previousAdminRole", + type: "bytes32", + }, + { + indexed: !0, + internalType: "bytes32", + name: "newAdminRole", + type: "bytes32", + }, + ], + name: "RoleAdminChanged", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "bytes32", + name: "role", + type: "bytes32", + }, + { + indexed: !0, + internalType: "address", + name: "account", + type: "address", + }, + { + indexed: !0, + internalType: "address", + name: "sender", + type: "address", + }, + ], + name: "RoleGranted", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "bytes32", + name: "role", + type: "bytes32", + }, + { + indexed: !0, + internalType: "address", + name: "account", + type: "address", + }, + { + indexed: !0, + internalType: "address", + name: "sender", + type: "address", + }, + ], + name: "RoleRevoked", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "uint256", + name: "claimConditionIndex", + type: "uint256", + }, + { + indexed: !0, + internalType: "address", + name: "claimer", + type: "address", + }, + { + indexed: !0, + internalType: "address", + name: "receiver", + type: "address", + }, + { + indexed: !1, + internalType: "uint256", + name: "startTokenId", + type: "uint256", + }, + { + indexed: !1, + internalType: "uint256", + name: "quantityClaimed", + type: "uint256", + }, + ], + name: "TokensClaimed", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "address", + name: "from", + type: "address", + }, + { indexed: !0, internalType: "address", name: "to", type: "address" }, + { + indexed: !1, + internalType: "uint256", + name: "value", + type: "uint256", + }, + ], + name: "Transfer", + type: "event", + }, + { + inputs: [], + name: "DEFAULT_ADMIN_ROLE", + outputs: [{ internalType: "bytes32", name: "", type: "bytes32" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "DOMAIN_SEPARATOR", + outputs: [{ internalType: "bytes32", name: "", type: "bytes32" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "owner", type: "address" }, + { internalType: "address", name: "spender", type: "address" }, + ], + name: "allowance", + outputs: [{ internalType: "uint256", name: "", type: "uint256" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "spender", type: "address" }, + { internalType: "uint256", name: "amount", type: "uint256" }, + ], + name: "approve", + outputs: [{ internalType: "bool", name: "", type: "bool" }], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [{ internalType: "address", name: "account", type: "address" }], + name: "balanceOf", + outputs: [{ internalType: "uint256", name: "", type: "uint256" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [{ internalType: "uint256", name: "amount", type: "uint256" }], + name: "burn", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "account", type: "address" }, + { internalType: "uint256", name: "amount", type: "uint256" }, + ], + name: "burnFrom", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "account", type: "address" }, + { internalType: "uint32", name: "pos", type: "uint32" }, + ], + name: "checkpoints", + outputs: [ + { + components: [ + { internalType: "uint32", name: "fromBlock", type: "uint32" }, + { internalType: "uint224", name: "votes", type: "uint224" }, + ], + internalType: "struct ERC20VotesUpgradeable.Checkpoint", + name: "", + type: "tuple", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "_receiver", type: "address" }, + { internalType: "uint256", name: "_quantity", type: "uint256" }, + { internalType: "address", name: "_currency", type: "address" }, + { internalType: "uint256", name: "_pricePerToken", type: "uint256" }, + { + components: [ + { internalType: "bytes32[]", name: "proof", type: "bytes32[]" }, + { + internalType: "uint256", + name: "quantityLimitPerWallet", + type: "uint256", + }, + { + internalType: "uint256", + name: "pricePerToken", + type: "uint256", + }, + { internalType: "address", name: "currency", type: "address" }, + ], + internalType: "struct IDrop.AllowlistProof", + name: "_allowlistProof", + type: "tuple", + }, + { internalType: "bytes", name: "_data", type: "bytes" }, + ], + name: "claim", + outputs: [], + stateMutability: "payable", + type: "function", + }, + { + inputs: [], + name: "claimCondition", + outputs: [ + { internalType: "uint256", name: "currentStartId", type: "uint256" }, + { internalType: "uint256", name: "count", type: "uint256" }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "contractType", + outputs: [{ internalType: "bytes32", name: "", type: "bytes32" }], + stateMutability: "pure", + type: "function", + }, + { + inputs: [], + name: "contractURI", + outputs: [{ internalType: "string", name: "", type: "string" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "contractVersion", + outputs: [{ internalType: "uint8", name: "", type: "uint8" }], + stateMutability: "pure", + type: "function", + }, + { + inputs: [], + name: "decimals", + outputs: [{ internalType: "uint8", name: "", type: "uint8" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "spender", type: "address" }, + { internalType: "uint256", name: "subtractedValue", type: "uint256" }, + ], + name: "decreaseAllowance", + outputs: [{ internalType: "bool", name: "", type: "bool" }], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "delegatee", type: "address" }, + ], + name: "delegate", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "delegatee", type: "address" }, + { internalType: "uint256", name: "nonce", type: "uint256" }, + { internalType: "uint256", name: "expiry", type: "uint256" }, + { internalType: "uint8", name: "v", type: "uint8" }, + { internalType: "bytes32", name: "r", type: "bytes32" }, + { internalType: "bytes32", name: "s", type: "bytes32" }, + ], + name: "delegateBySig", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [{ internalType: "address", name: "account", type: "address" }], + name: "delegates", + outputs: [{ internalType: "address", name: "", type: "address" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "getActiveClaimConditionId", + outputs: [{ internalType: "uint256", name: "", type: "uint256" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "uint256", name: "_conditionId", type: "uint256" }, + ], + name: "getClaimConditionById", + outputs: [ + { + components: [ + { + internalType: "uint256", + name: "startTimestamp", + type: "uint256", + }, + { + internalType: "uint256", + name: "maxClaimableSupply", + type: "uint256", + }, + { + internalType: "uint256", + name: "supplyClaimed", + type: "uint256", + }, + { + internalType: "uint256", + name: "quantityLimitPerWallet", + type: "uint256", + }, + { internalType: "bytes32", name: "merkleRoot", type: "bytes32" }, + { + internalType: "uint256", + name: "pricePerToken", + type: "uint256", + }, + { internalType: "address", name: "currency", type: "address" }, + { internalType: "string", name: "metadata", type: "string" }, + ], + internalType: "struct IClaimCondition.ClaimCondition", + name: "condition", + type: "tuple", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "uint256", name: "blockNumber", type: "uint256" }, + ], + name: "getPastTotalSupply", + outputs: [{ internalType: "uint256", name: "", type: "uint256" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "account", type: "address" }, + { internalType: "uint256", name: "blockNumber", type: "uint256" }, + ], + name: "getPastVotes", + outputs: [{ internalType: "uint256", name: "", type: "uint256" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "getPlatformFeeInfo", + outputs: [ + { internalType: "address", name: "", type: "address" }, + { internalType: "uint16", name: "", type: "uint16" }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [{ internalType: "bytes32", name: "role", type: "bytes32" }], + name: "getRoleAdmin", + outputs: [{ internalType: "bytes32", name: "", type: "bytes32" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "bytes32", name: "role", type: "bytes32" }, + { internalType: "uint256", name: "index", type: "uint256" }, + ], + name: "getRoleMember", + outputs: [{ internalType: "address", name: "member", type: "address" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [{ internalType: "bytes32", name: "role", type: "bytes32" }], + name: "getRoleMemberCount", + outputs: [{ internalType: "uint256", name: "count", type: "uint256" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "uint256", name: "_conditionId", type: "uint256" }, + { internalType: "address", name: "_claimer", type: "address" }, + ], + name: "getSupplyClaimedByWallet", + outputs: [ + { + internalType: "uint256", + name: "supplyClaimedByWallet", + type: "uint256", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [{ internalType: "address", name: "account", type: "address" }], + name: "getVotes", + outputs: [{ internalType: "uint256", name: "", type: "uint256" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "bytes32", name: "role", type: "bytes32" }, + { internalType: "address", name: "account", type: "address" }, + ], + name: "grantRole", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "bytes32", name: "role", type: "bytes32" }, + { internalType: "address", name: "account", type: "address" }, + ], + name: "hasRole", + outputs: [{ internalType: "bool", name: "", type: "bool" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "bytes32", name: "role", type: "bytes32" }, + { internalType: "address", name: "account", type: "address" }, + ], + name: "hasRoleWithSwitch", + outputs: [{ internalType: "bool", name: "", type: "bool" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "spender", type: "address" }, + { internalType: "uint256", name: "addedValue", type: "uint256" }, + ], + name: "increaseAllowance", + outputs: [{ internalType: "bool", name: "", type: "bool" }], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "_defaultAdmin", type: "address" }, + { internalType: "string", name: "_name", type: "string" }, + { internalType: "string", name: "_symbol", type: "string" }, + { internalType: "string", name: "_contractURI", type: "string" }, + { + internalType: "address[]", + name: "_trustedForwarders", + type: "address[]", + }, + { internalType: "address", name: "_saleRecipient", type: "address" }, + { + internalType: "address", + name: "_platformFeeRecipient", + type: "address", + }, + { internalType: "uint128", name: "_platformFeeBps", type: "uint128" }, + ], + name: "initialize", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "forwarder", type: "address" }, + ], + name: "isTrustedForwarder", + outputs: [{ internalType: "bool", name: "", type: "bool" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "maxTotalSupply", + outputs: [{ internalType: "uint256", name: "", type: "uint256" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [{ internalType: "bytes[]", name: "data", type: "bytes[]" }], + name: "multicall", + outputs: [ + { internalType: "bytes[]", name: "results", type: "bytes[]" }, + ], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [], + name: "name", + outputs: [{ internalType: "string", name: "", type: "string" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [{ internalType: "address", name: "owner", type: "address" }], + name: "nonces", + outputs: [{ internalType: "uint256", name: "", type: "uint256" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [{ internalType: "address", name: "account", type: "address" }], + name: "numCheckpoints", + outputs: [{ internalType: "uint32", name: "", type: "uint32" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "owner", type: "address" }, + { internalType: "address", name: "spender", type: "address" }, + { internalType: "uint256", name: "value", type: "uint256" }, + { internalType: "uint256", name: "deadline", type: "uint256" }, + { internalType: "uint8", name: "v", type: "uint8" }, + { internalType: "bytes32", name: "r", type: "bytes32" }, + { internalType: "bytes32", name: "s", type: "bytes32" }, + ], + name: "permit", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [], + name: "primarySaleRecipient", + outputs: [{ internalType: "address", name: "", type: "address" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "bytes32", name: "role", type: "bytes32" }, + { internalType: "address", name: "account", type: "address" }, + ], + name: "renounceRole", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "bytes32", name: "role", type: "bytes32" }, + { internalType: "address", name: "account", type: "address" }, + ], + name: "revokeRole", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + components: [ + { + internalType: "uint256", + name: "startTimestamp", + type: "uint256", + }, + { + internalType: "uint256", + name: "maxClaimableSupply", + type: "uint256", + }, + { + internalType: "uint256", + name: "supplyClaimed", + type: "uint256", + }, + { + internalType: "uint256", + name: "quantityLimitPerWallet", + type: "uint256", + }, + { internalType: "bytes32", name: "merkleRoot", type: "bytes32" }, + { + internalType: "uint256", + name: "pricePerToken", + type: "uint256", + }, + { internalType: "address", name: "currency", type: "address" }, + { internalType: "string", name: "metadata", type: "string" }, + ], + internalType: "struct IClaimCondition.ClaimCondition[]", + name: "_conditions", + type: "tuple[]", + }, + { + internalType: "bool", + name: "_resetClaimEligibility", + type: "bool", + }, + ], + name: "setClaimConditions", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [{ internalType: "string", name: "_uri", type: "string" }], + name: "setContractURI", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "uint256", name: "_maxTotalSupply", type: "uint256" }, + ], + name: "setMaxTotalSupply", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "address", + name: "_platformFeeRecipient", + type: "address", + }, + { internalType: "uint256", name: "_platformFeeBps", type: "uint256" }, + ], + name: "setPlatformFeeInfo", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "_saleRecipient", type: "address" }, + ], + name: "setPrimarySaleRecipient", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [], + name: "symbol", + outputs: [{ internalType: "string", name: "", type: "string" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "totalSupply", + outputs: [{ internalType: "uint256", name: "", type: "uint256" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "to", type: "address" }, + { internalType: "uint256", name: "amount", type: "uint256" }, + ], + name: "transfer", + outputs: [{ internalType: "bool", name: "", type: "bool" }], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "from", type: "address" }, + { internalType: "address", name: "to", type: "address" }, + { internalType: "uint256", name: "amount", type: "uint256" }, + ], + name: "transferFrom", + outputs: [{ internalType: "bool", name: "", type: "bool" }], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "uint256", name: "_conditionId", type: "uint256" }, + { internalType: "address", name: "_claimer", type: "address" }, + { internalType: "uint256", name: "_quantity", type: "uint256" }, + { internalType: "address", name: "_currency", type: "address" }, + { internalType: "uint256", name: "_pricePerToken", type: "uint256" }, + { + components: [ + { internalType: "bytes32[]", name: "proof", type: "bytes32[]" }, + { + internalType: "uint256", + name: "quantityLimitPerWallet", + type: "uint256", + }, + { + internalType: "uint256", + name: "pricePerToken", + type: "uint256", + }, + { internalType: "address", name: "currency", type: "address" }, + ], + internalType: "struct IDrop.AllowlistProof", + name: "_allowlistProof", + type: "tuple", + }, + ], + name: "verifyClaim", + outputs: [{ internalType: "bool", name: "isOverride", type: "bool" }], + stateMutability: "view", + type: "function", + }, + ]; + }); + var Yz = N((dcn, Dar) => { + Dar.exports = [ + { inputs: [], stateMutability: "nonpayable", type: "constructor" }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "address", + name: "owner", + type: "address", + }, + { + indexed: !0, + internalType: "address", + name: "spender", + type: "address", + }, + { + indexed: !1, + internalType: "uint256", + name: "value", + type: "uint256", + }, + ], + name: "Approval", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + components: [ + { + internalType: "uint256", + name: "startTimestamp", + type: "uint256", + }, + { + internalType: "uint256", + name: "maxClaimableSupply", + type: "uint256", + }, + { + internalType: "uint256", + name: "supplyClaimed", + type: "uint256", + }, + { + internalType: "uint256", + name: "quantityLimitPerTransaction", + type: "uint256", + }, + { + internalType: "uint256", + name: "waitTimeInSecondsBetweenClaims", + type: "uint256", + }, + { internalType: "bytes32", name: "merkleRoot", type: "bytes32" }, + { + internalType: "uint256", + name: "pricePerToken", + type: "uint256", + }, + { internalType: "address", name: "currency", type: "address" }, + ], + indexed: !1, + internalType: "struct IDropClaimCondition_V2.ClaimCondition[]", + name: "claimConditions", + type: "tuple[]", + }, + ], + name: "ClaimConditionsUpdated", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !1, + internalType: "string", + name: "prevURI", + type: "string", + }, + { + indexed: !1, + internalType: "string", + name: "newURI", + type: "string", + }, + ], + name: "ContractURIUpdated", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "address", + name: "delegator", + type: "address", + }, + { + indexed: !0, + internalType: "address", + name: "fromDelegate", + type: "address", + }, + { + indexed: !0, + internalType: "address", + name: "toDelegate", + type: "address", + }, + ], + name: "DelegateChanged", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "address", + name: "delegate", + type: "address", + }, + { + indexed: !1, + internalType: "uint256", + name: "previousBalance", + type: "uint256", + }, + { + indexed: !1, + internalType: "uint256", + name: "newBalance", + type: "uint256", + }, + ], + name: "DelegateVotesChanged", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !1, + internalType: "uint8", + name: "version", + type: "uint8", + }, + ], + name: "Initialized", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !1, + internalType: "uint256", + name: "maxTotalSupply", + type: "uint256", + }, + ], + name: "MaxTotalSupplyUpdated", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !1, + internalType: "uint256", + name: "count", + type: "uint256", + }, + ], + name: "MaxWalletClaimCountUpdated", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "address", + name: "platformFeeRecipient", + type: "address", + }, + { + indexed: !1, + internalType: "uint256", + name: "platformFeeBps", + type: "uint256", + }, + ], + name: "PlatformFeeInfoUpdated", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "address", + name: "recipient", + type: "address", + }, + ], + name: "PrimarySaleRecipientUpdated", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "bytes32", + name: "role", + type: "bytes32", + }, + { + indexed: !0, + internalType: "bytes32", + name: "previousAdminRole", + type: "bytes32", + }, + { + indexed: !0, + internalType: "bytes32", + name: "newAdminRole", + type: "bytes32", + }, + ], + name: "RoleAdminChanged", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "bytes32", + name: "role", + type: "bytes32", + }, + { + indexed: !0, + internalType: "address", + name: "account", + type: "address", + }, + { + indexed: !0, + internalType: "address", + name: "sender", + type: "address", + }, + ], + name: "RoleGranted", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "bytes32", + name: "role", + type: "bytes32", + }, + { + indexed: !0, + internalType: "address", + name: "account", + type: "address", + }, + { + indexed: !0, + internalType: "address", + name: "sender", + type: "address", + }, + ], + name: "RoleRevoked", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "uint256", + name: "claimConditionIndex", + type: "uint256", + }, + { + indexed: !0, + internalType: "address", + name: "claimer", + type: "address", + }, + { + indexed: !0, + internalType: "address", + name: "receiver", + type: "address", + }, + { + indexed: !1, + internalType: "uint256", + name: "quantityClaimed", + type: "uint256", + }, + ], + name: "TokensClaimed", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "address", + name: "from", + type: "address", + }, + { indexed: !0, internalType: "address", name: "to", type: "address" }, + { + indexed: !1, + internalType: "uint256", + name: "value", + type: "uint256", + }, + ], + name: "Transfer", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "address", + name: "wallet", + type: "address", + }, + { + indexed: !1, + internalType: "uint256", + name: "count", + type: "uint256", + }, + ], + name: "WalletClaimCountUpdated", + type: "event", + }, + { + inputs: [], + name: "DEFAULT_ADMIN_ROLE", + outputs: [{ internalType: "bytes32", name: "", type: "bytes32" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "DOMAIN_SEPARATOR", + outputs: [{ internalType: "bytes32", name: "", type: "bytes32" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "owner", type: "address" }, + { internalType: "address", name: "spender", type: "address" }, + ], + name: "allowance", + outputs: [{ internalType: "uint256", name: "", type: "uint256" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "spender", type: "address" }, + { internalType: "uint256", name: "amount", type: "uint256" }, + ], + name: "approve", + outputs: [{ internalType: "bool", name: "", type: "bool" }], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [{ internalType: "address", name: "account", type: "address" }], + name: "balanceOf", + outputs: [{ internalType: "uint256", name: "", type: "uint256" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [{ internalType: "uint256", name: "amount", type: "uint256" }], + name: "burn", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "account", type: "address" }, + { internalType: "uint256", name: "amount", type: "uint256" }, + ], + name: "burnFrom", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "account", type: "address" }, + { internalType: "uint32", name: "pos", type: "uint32" }, + ], + name: "checkpoints", + outputs: [ + { + components: [ + { internalType: "uint32", name: "fromBlock", type: "uint32" }, + { internalType: "uint224", name: "votes", type: "uint224" }, + ], + internalType: "struct ERC20VotesUpgradeable.Checkpoint", + name: "", + type: "tuple", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "_receiver", type: "address" }, + { internalType: "uint256", name: "_quantity", type: "uint256" }, + { internalType: "address", name: "_currency", type: "address" }, + { internalType: "uint256", name: "_pricePerToken", type: "uint256" }, + { internalType: "bytes32[]", name: "_proofs", type: "bytes32[]" }, + { + internalType: "uint256", + name: "_proofMaxQuantityPerTransaction", + type: "uint256", + }, + ], + name: "claim", + outputs: [], + stateMutability: "payable", + type: "function", + }, + { + inputs: [], + name: "claimCondition", + outputs: [ + { internalType: "uint256", name: "currentStartId", type: "uint256" }, + { internalType: "uint256", name: "count", type: "uint256" }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "contractType", + outputs: [{ internalType: "bytes32", name: "", type: "bytes32" }], + stateMutability: "pure", + type: "function", + }, + { + inputs: [], + name: "contractURI", + outputs: [{ internalType: "string", name: "", type: "string" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "contractVersion", + outputs: [{ internalType: "uint8", name: "", type: "uint8" }], + stateMutability: "pure", + type: "function", + }, + { + inputs: [], + name: "decimals", + outputs: [{ internalType: "uint8", name: "", type: "uint8" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "spender", type: "address" }, + { internalType: "uint256", name: "subtractedValue", type: "uint256" }, + ], + name: "decreaseAllowance", + outputs: [{ internalType: "bool", name: "", type: "bool" }], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "delegatee", type: "address" }, + ], + name: "delegate", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "delegatee", type: "address" }, + { internalType: "uint256", name: "nonce", type: "uint256" }, + { internalType: "uint256", name: "expiry", type: "uint256" }, + { internalType: "uint8", name: "v", type: "uint8" }, + { internalType: "bytes32", name: "r", type: "bytes32" }, + { internalType: "bytes32", name: "s", type: "bytes32" }, + ], + name: "delegateBySig", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [{ internalType: "address", name: "account", type: "address" }], + name: "delegates", + outputs: [{ internalType: "address", name: "", type: "address" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "getActiveClaimConditionId", + outputs: [{ internalType: "uint256", name: "", type: "uint256" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "uint256", name: "_conditionId", type: "uint256" }, + ], + name: "getClaimConditionById", + outputs: [ + { + components: [ + { + internalType: "uint256", + name: "startTimestamp", + type: "uint256", + }, + { + internalType: "uint256", + name: "maxClaimableSupply", + type: "uint256", + }, + { + internalType: "uint256", + name: "supplyClaimed", + type: "uint256", + }, + { + internalType: "uint256", + name: "quantityLimitPerTransaction", + type: "uint256", + }, + { + internalType: "uint256", + name: "waitTimeInSecondsBetweenClaims", + type: "uint256", + }, + { internalType: "bytes32", name: "merkleRoot", type: "bytes32" }, + { + internalType: "uint256", + name: "pricePerToken", + type: "uint256", + }, + { internalType: "address", name: "currency", type: "address" }, + ], + internalType: "struct IDropClaimCondition_V2.ClaimCondition", + name: "condition", + type: "tuple", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "uint256", name: "_conditionId", type: "uint256" }, + { internalType: "address", name: "_claimer", type: "address" }, + ], + name: "getClaimTimestamp", + outputs: [ + { + internalType: "uint256", + name: "lastClaimTimestamp", + type: "uint256", + }, + { + internalType: "uint256", + name: "nextValidClaimTimestamp", + type: "uint256", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "uint256", name: "blockNumber", type: "uint256" }, + ], + name: "getPastTotalSupply", + outputs: [{ internalType: "uint256", name: "", type: "uint256" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "account", type: "address" }, + { internalType: "uint256", name: "blockNumber", type: "uint256" }, + ], + name: "getPastVotes", + outputs: [{ internalType: "uint256", name: "", type: "uint256" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "getPlatformFeeInfo", + outputs: [ + { internalType: "address", name: "", type: "address" }, + { internalType: "uint16", name: "", type: "uint16" }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [{ internalType: "bytes32", name: "role", type: "bytes32" }], + name: "getRoleAdmin", + outputs: [{ internalType: "bytes32", name: "", type: "bytes32" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "bytes32", name: "role", type: "bytes32" }, + { internalType: "uint256", name: "index", type: "uint256" }, + ], + name: "getRoleMember", + outputs: [{ internalType: "address", name: "", type: "address" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [{ internalType: "bytes32", name: "role", type: "bytes32" }], + name: "getRoleMemberCount", + outputs: [{ internalType: "uint256", name: "", type: "uint256" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [{ internalType: "address", name: "account", type: "address" }], + name: "getVotes", + outputs: [{ internalType: "uint256", name: "", type: "uint256" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "bytes32", name: "role", type: "bytes32" }, + { internalType: "address", name: "account", type: "address" }, + ], + name: "grantRole", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "bytes32", name: "role", type: "bytes32" }, + { internalType: "address", name: "account", type: "address" }, + ], + name: "hasRole", + outputs: [{ internalType: "bool", name: "", type: "bool" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "spender", type: "address" }, + { internalType: "uint256", name: "addedValue", type: "uint256" }, + ], + name: "increaseAllowance", + outputs: [{ internalType: "bool", name: "", type: "bool" }], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "_defaultAdmin", type: "address" }, + { internalType: "string", name: "_name", type: "string" }, + { internalType: "string", name: "_symbol", type: "string" }, + { internalType: "string", name: "_contractURI", type: "string" }, + { + internalType: "address[]", + name: "_trustedForwarders", + type: "address[]", + }, + { + internalType: "address", + name: "_primarySaleRecipient", + type: "address", + }, + { + internalType: "address", + name: "_platformFeeRecipient", + type: "address", + }, + { internalType: "uint256", name: "_platformFeeBps", type: "uint256" }, + ], + name: "initialize", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "forwarder", type: "address" }, + ], + name: "isTrustedForwarder", + outputs: [{ internalType: "bool", name: "", type: "bool" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "maxTotalSupply", + outputs: [{ internalType: "uint256", name: "", type: "uint256" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "maxWalletClaimCount", + outputs: [{ internalType: "uint256", name: "", type: "uint256" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [{ internalType: "bytes[]", name: "data", type: "bytes[]" }], + name: "multicall", + outputs: [ + { internalType: "bytes[]", name: "results", type: "bytes[]" }, + ], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [], + name: "name", + outputs: [{ internalType: "string", name: "", type: "string" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [{ internalType: "address", name: "owner", type: "address" }], + name: "nonces", + outputs: [{ internalType: "uint256", name: "", type: "uint256" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [{ internalType: "address", name: "account", type: "address" }], + name: "numCheckpoints", + outputs: [{ internalType: "uint32", name: "", type: "uint32" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "owner", type: "address" }, + { internalType: "address", name: "spender", type: "address" }, + { internalType: "uint256", name: "value", type: "uint256" }, + { internalType: "uint256", name: "deadline", type: "uint256" }, + { internalType: "uint8", name: "v", type: "uint8" }, + { internalType: "bytes32", name: "r", type: "bytes32" }, + { internalType: "bytes32", name: "s", type: "bytes32" }, + ], + name: "permit", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [], + name: "primarySaleRecipient", + outputs: [{ internalType: "address", name: "", type: "address" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "bytes32", name: "role", type: "bytes32" }, + { internalType: "address", name: "account", type: "address" }, + ], + name: "renounceRole", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "bytes32", name: "role", type: "bytes32" }, + { internalType: "address", name: "account", type: "address" }, + ], + name: "revokeRole", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + components: [ + { + internalType: "uint256", + name: "startTimestamp", + type: "uint256", + }, + { + internalType: "uint256", + name: "maxClaimableSupply", + type: "uint256", + }, + { + internalType: "uint256", + name: "supplyClaimed", + type: "uint256", + }, + { + internalType: "uint256", + name: "quantityLimitPerTransaction", + type: "uint256", + }, + { + internalType: "uint256", + name: "waitTimeInSecondsBetweenClaims", + type: "uint256", + }, + { internalType: "bytes32", name: "merkleRoot", type: "bytes32" }, + { + internalType: "uint256", + name: "pricePerToken", + type: "uint256", + }, + { internalType: "address", name: "currency", type: "address" }, + ], + internalType: "struct IDropClaimCondition_V2.ClaimCondition[]", + name: "_phases", + type: "tuple[]", + }, + { + internalType: "bool", + name: "_resetClaimEligibility", + type: "bool", + }, + ], + name: "setClaimConditions", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [{ internalType: "string", name: "_uri", type: "string" }], + name: "setContractURI", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "uint256", name: "_maxTotalSupply", type: "uint256" }, + ], + name: "setMaxTotalSupply", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [{ internalType: "uint256", name: "_count", type: "uint256" }], + name: "setMaxWalletClaimCount", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "address", + name: "_platformFeeRecipient", + type: "address", + }, + { internalType: "uint256", name: "_platformFeeBps", type: "uint256" }, + ], + name: "setPlatformFeeInfo", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "_saleRecipient", type: "address" }, + ], + name: "setPrimarySaleRecipient", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "_claimer", type: "address" }, + { internalType: "uint256", name: "_count", type: "uint256" }, + ], + name: "setWalletClaimCount", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "bytes4", name: "interfaceId", type: "bytes4" }, + ], + name: "supportsInterface", + outputs: [{ internalType: "bool", name: "", type: "bool" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "symbol", + outputs: [{ internalType: "string", name: "", type: "string" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "totalSupply", + outputs: [{ internalType: "uint256", name: "", type: "uint256" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "to", type: "address" }, + { internalType: "uint256", name: "amount", type: "uint256" }, + ], + name: "transfer", + outputs: [{ internalType: "bool", name: "", type: "bool" }], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "from", type: "address" }, + { internalType: "address", name: "to", type: "address" }, + { internalType: "uint256", name: "amount", type: "uint256" }, + ], + name: "transferFrom", + outputs: [{ internalType: "bool", name: "", type: "bool" }], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "uint256", name: "_conditionId", type: "uint256" }, + { internalType: "address", name: "_claimer", type: "address" }, + { internalType: "uint256", name: "_quantity", type: "uint256" }, + { internalType: "address", name: "_currency", type: "address" }, + { internalType: "uint256", name: "_pricePerToken", type: "uint256" }, + { + internalType: "bool", + name: "verifyMaxQuantityPerTransaction", + type: "bool", + }, + ], + name: "verifyClaim", + outputs: [], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "uint256", name: "_conditionId", type: "uint256" }, + { internalType: "address", name: "_claimer", type: "address" }, + { internalType: "uint256", name: "_quantity", type: "uint256" }, + { internalType: "bytes32[]", name: "_proofs", type: "bytes32[]" }, + { + internalType: "uint256", + name: "_proofMaxQuantityPerTransaction", + type: "uint256", + }, + ], + name: "verifyClaimMerkleProof", + outputs: [ + { internalType: "bool", name: "validMerkleProof", type: "bool" }, + { + internalType: "uint256", + name: "merkleProofIndex", + type: "uint256", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [{ internalType: "address", name: "", type: "address" }], + name: "walletClaimCount", + outputs: [{ internalType: "uint256", name: "", type: "uint256" }], + stateMutability: "view", + type: "function", + }, + ]; + }); + var jFe = N((zFe) => { + "use strict"; + _(); + x(); + var zl = Oo(), + su = kc(), + qar = wt(); + Gr(); + an(); + Bn(); + Nn(); + On(); + Ln(); + Dn(); + qn(); + Fn(); + Wn(); + Un(); + Hn(); + zn(); + jn(); + Kn(); + Vn(); + Gn(); + Yn(); + $n(); + Jn(); + Zn(); + Qn(); + Xn(); + ea(); + ta(); + ra(); + na(); + aa(); + ia(); + sa(); + oa(); + ca(); + ua(); + la(); + da(); + pa(); + ha(); + fa(); + ma(); + ya(); + ga(); + ba(); + va(); + wa(); + _a(); + xa(); + Ta(); + Ea(); + Ca(); + vn(); + Ia(); + Aa(); + ka(); + An(); + Sa(); + Ma(); + Pa(); + Ra(); + Ba(); + Na(); + Oa(); + La(); + Da(); + qa(); + Fa(); + Wa(); + Ua(); + Ha(); + za(); + var _w = class extends su.StandardErc20 { + constructor(e, t, n) { + let a = + arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {}, + i = arguments.length > 4 ? arguments[4] : void 0, + s = arguments.length > 5 ? arguments[5] : void 0, + c = + arguments.length > 6 && arguments[6] !== void 0 + ? arguments[6] + : new su.ContractWrapper(e, t, i, a); + super(c, n, s), + zl._defineProperty(this, "abi", void 0), + zl._defineProperty(this, "metadata", void 0), + zl._defineProperty(this, "roles", void 0), + zl._defineProperty(this, "encoder", void 0), + zl._defineProperty(this, "estimator", void 0), + zl._defineProperty(this, "history", void 0), + zl._defineProperty(this, "events", void 0), + zl._defineProperty(this, "platformFees", void 0), + zl._defineProperty(this, "sales", void 0), + zl._defineProperty(this, "signature", void 0), + zl._defineProperty(this, "interceptor", void 0), + (this.abi = i), + (this.metadata = new su.ContractMetadata( + this.contractWrapper, + su.TokenErc20ContractSchema, + this.storage + )), + (this.roles = new su.ContractRoles( + this.contractWrapper, + _w.contractRoles + )), + (this.sales = new su.ContractPrimarySale(this.contractWrapper)), + (this.events = new su.ContractEvents(this.contractWrapper)), + (this.history = new su.TokenERC20History( + this.contractWrapper, + this.events + )), + (this.encoder = new su.ContractEncoder(this.contractWrapper)), + (this.estimator = new su.GasCostEstimator(this.contractWrapper)), + (this.platformFees = new su.ContractPlatformFee( + this.contractWrapper + )), + (this.interceptor = new su.ContractInterceptor(this.contractWrapper)), + (this.signature = new su.Erc20SignatureMintable( + this.contractWrapper, + this.roles + )); + } + async getVoteBalance() { + return await this.getVoteBalanceOf( + await this.contractWrapper.getSignerAddress() + ); + } + async getVoteBalanceOf(e) { + return await this.erc20.getValue( + await this.contractWrapper.readContract.getVotes(e) + ); + } + async getDelegation() { + return await this.getDelegationOf( + await this.contractWrapper.getSignerAddress() + ); + } + async getDelegationOf(e) { + return await this.contractWrapper.readContract.delegates(e); + } + async isTransferRestricted() { + return !(await this.contractWrapper.readContract.hasRole( + su.getRoleHash("transfer"), + qar.constants.AddressZero + )); + } + async mint(e) { + return this.erc20.mint(e); + } + async mintTo(e, t) { + return this.erc20.mintTo(e, t); + } + async getMintTransaction(e, t) { + return this.erc20.getMintTransaction(e, t); + } + async mintBatchTo(e) { + return this.erc20.mintBatchTo(e); + } + async delegateTo(e) { + return { + receipt: await this.contractWrapper.sendTransaction("delegate", [e]), + }; + } + async burn(e) { + return this.erc20.burn(e); + } + async burnFrom(e, t) { + return this.erc20.burnFrom(e, t); + } + async call(e) { + for ( + var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), a = 1; + a < t; + a++ + ) + n[a - 1] = arguments[a]; + return this.contractWrapper.call(e, ...n); + } + }; + zl._defineProperty(_w, "contractRoles", ["admin", "minter", "transfer"]); + zFe.Token = _w; + }); + var $z = N((mcn, Far) => { + Far.exports = [ + { inputs: [], stateMutability: "nonpayable", type: "constructor" }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "address", + name: "owner", + type: "address", + }, + { + indexed: !0, + internalType: "address", + name: "spender", + type: "address", + }, + { + indexed: !1, + internalType: "uint256", + name: "value", + type: "uint256", + }, + ], + name: "Approval", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "address", + name: "delegator", + type: "address", + }, + { + indexed: !0, + internalType: "address", + name: "fromDelegate", + type: "address", + }, + { + indexed: !0, + internalType: "address", + name: "toDelegate", + type: "address", + }, + ], + name: "DelegateChanged", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "address", + name: "delegate", + type: "address", + }, + { + indexed: !1, + internalType: "uint256", + name: "previousBalance", + type: "uint256", + }, + { + indexed: !1, + internalType: "uint256", + name: "newBalance", + type: "uint256", + }, + ], + name: "DelegateVotesChanged", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !1, + internalType: "uint8", + name: "version", + type: "uint8", + }, + ], + name: "Initialized", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "address", + name: "platformFeeRecipient", + type: "address", + }, + { + indexed: !1, + internalType: "uint256", + name: "platformFeeBps", + type: "uint256", + }, + ], + name: "PlatformFeeInfoUpdated", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "address", + name: "recipient", + type: "address", + }, + ], + name: "PrimarySaleRecipientUpdated", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "bytes32", + name: "role", + type: "bytes32", + }, + { + indexed: !0, + internalType: "bytes32", + name: "previousAdminRole", + type: "bytes32", + }, + { + indexed: !0, + internalType: "bytes32", + name: "newAdminRole", + type: "bytes32", + }, + ], + name: "RoleAdminChanged", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "bytes32", + name: "role", + type: "bytes32", + }, + { + indexed: !0, + internalType: "address", + name: "account", + type: "address", + }, + { + indexed: !0, + internalType: "address", + name: "sender", + type: "address", + }, + ], + name: "RoleGranted", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "bytes32", + name: "role", + type: "bytes32", + }, + { + indexed: !0, + internalType: "address", + name: "account", + type: "address", + }, + { + indexed: !0, + internalType: "address", + name: "sender", + type: "address", + }, + ], + name: "RoleRevoked", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "address", + name: "mintedTo", + type: "address", + }, + { + indexed: !1, + internalType: "uint256", + name: "quantityMinted", + type: "uint256", + }, + ], + name: "TokensMinted", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "address", + name: "signer", + type: "address", + }, + { + indexed: !0, + internalType: "address", + name: "mintedTo", + type: "address", + }, + { + components: [ + { internalType: "address", name: "to", type: "address" }, + { + internalType: "address", + name: "primarySaleRecipient", + type: "address", + }, + { internalType: "uint256", name: "quantity", type: "uint256" }, + { internalType: "uint256", name: "price", type: "uint256" }, + { internalType: "address", name: "currency", type: "address" }, + { + internalType: "uint128", + name: "validityStartTimestamp", + type: "uint128", + }, + { + internalType: "uint128", + name: "validityEndTimestamp", + type: "uint128", + }, + { internalType: "bytes32", name: "uid", type: "bytes32" }, + ], + indexed: !1, + internalType: "struct ITokenERC20.MintRequest", + name: "mintRequest", + type: "tuple", + }, + ], + name: "TokensMintedWithSignature", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "address", + name: "from", + type: "address", + }, + { indexed: !0, internalType: "address", name: "to", type: "address" }, + { + indexed: !1, + internalType: "uint256", + name: "value", + type: "uint256", + }, + ], + name: "Transfer", + type: "event", + }, + { + inputs: [], + name: "DEFAULT_ADMIN_ROLE", + outputs: [{ internalType: "bytes32", name: "", type: "bytes32" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "DOMAIN_SEPARATOR", + outputs: [{ internalType: "bytes32", name: "", type: "bytes32" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "owner", type: "address" }, + { internalType: "address", name: "spender", type: "address" }, + ], + name: "allowance", + outputs: [{ internalType: "uint256", name: "", type: "uint256" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "spender", type: "address" }, + { internalType: "uint256", name: "amount", type: "uint256" }, + ], + name: "approve", + outputs: [{ internalType: "bool", name: "", type: "bool" }], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [{ internalType: "address", name: "account", type: "address" }], + name: "balanceOf", + outputs: [{ internalType: "uint256", name: "", type: "uint256" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [{ internalType: "uint256", name: "amount", type: "uint256" }], + name: "burn", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "account", type: "address" }, + { internalType: "uint256", name: "amount", type: "uint256" }, + ], + name: "burnFrom", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "account", type: "address" }, + { internalType: "uint32", name: "pos", type: "uint32" }, + ], + name: "checkpoints", + outputs: [ + { + components: [ + { internalType: "uint32", name: "fromBlock", type: "uint32" }, + { internalType: "uint224", name: "votes", type: "uint224" }, + ], + internalType: "struct ERC20VotesUpgradeable.Checkpoint", + name: "", + type: "tuple", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "contractType", + outputs: [{ internalType: "bytes32", name: "", type: "bytes32" }], + stateMutability: "pure", + type: "function", + }, + { + inputs: [], + name: "contractURI", + outputs: [{ internalType: "string", name: "", type: "string" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "contractVersion", + outputs: [{ internalType: "uint8", name: "", type: "uint8" }], + stateMutability: "pure", + type: "function", + }, + { + inputs: [], + name: "decimals", + outputs: [{ internalType: "uint8", name: "", type: "uint8" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "spender", type: "address" }, + { internalType: "uint256", name: "subtractedValue", type: "uint256" }, + ], + name: "decreaseAllowance", + outputs: [{ internalType: "bool", name: "", type: "bool" }], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "delegatee", type: "address" }, + ], + name: "delegate", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "delegatee", type: "address" }, + { internalType: "uint256", name: "nonce", type: "uint256" }, + { internalType: "uint256", name: "expiry", type: "uint256" }, + { internalType: "uint8", name: "v", type: "uint8" }, + { internalType: "bytes32", name: "r", type: "bytes32" }, + { internalType: "bytes32", name: "s", type: "bytes32" }, + ], + name: "delegateBySig", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [{ internalType: "address", name: "account", type: "address" }], + name: "delegates", + outputs: [{ internalType: "address", name: "", type: "address" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "uint256", name: "blockNumber", type: "uint256" }, + ], + name: "getPastTotalSupply", + outputs: [{ internalType: "uint256", name: "", type: "uint256" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "account", type: "address" }, + { internalType: "uint256", name: "blockNumber", type: "uint256" }, + ], + name: "getPastVotes", + outputs: [{ internalType: "uint256", name: "", type: "uint256" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "getPlatformFeeInfo", + outputs: [ + { internalType: "address", name: "", type: "address" }, + { internalType: "uint16", name: "", type: "uint16" }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [{ internalType: "bytes32", name: "role", type: "bytes32" }], + name: "getRoleAdmin", + outputs: [{ internalType: "bytes32", name: "", type: "bytes32" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "bytes32", name: "role", type: "bytes32" }, + { internalType: "uint256", name: "index", type: "uint256" }, + ], + name: "getRoleMember", + outputs: [{ internalType: "address", name: "", type: "address" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [{ internalType: "bytes32", name: "role", type: "bytes32" }], + name: "getRoleMemberCount", + outputs: [{ internalType: "uint256", name: "", type: "uint256" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [{ internalType: "address", name: "account", type: "address" }], + name: "getVotes", + outputs: [{ internalType: "uint256", name: "", type: "uint256" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "bytes32", name: "role", type: "bytes32" }, + { internalType: "address", name: "account", type: "address" }, + ], + name: "grantRole", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "bytes32", name: "role", type: "bytes32" }, + { internalType: "address", name: "account", type: "address" }, + ], + name: "hasRole", + outputs: [{ internalType: "bool", name: "", type: "bool" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "spender", type: "address" }, + { internalType: "uint256", name: "addedValue", type: "uint256" }, + ], + name: "increaseAllowance", + outputs: [{ internalType: "bool", name: "", type: "bool" }], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "_defaultAdmin", type: "address" }, + { internalType: "string", name: "_name", type: "string" }, + { internalType: "string", name: "_symbol", type: "string" }, + { internalType: "string", name: "_contractURI", type: "string" }, + { + internalType: "address[]", + name: "_trustedForwarders", + type: "address[]", + }, + { + internalType: "address", + name: "_primarySaleRecipient", + type: "address", + }, + { + internalType: "address", + name: "_platformFeeRecipient", + type: "address", + }, + { internalType: "uint256", name: "_platformFeeBps", type: "uint256" }, + ], + name: "initialize", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "forwarder", type: "address" }, + ], + name: "isTrustedForwarder", + outputs: [{ internalType: "bool", name: "", type: "bool" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "to", type: "address" }, + { internalType: "uint256", name: "amount", type: "uint256" }, + ], + name: "mintTo", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + components: [ + { internalType: "address", name: "to", type: "address" }, + { + internalType: "address", + name: "primarySaleRecipient", + type: "address", + }, + { internalType: "uint256", name: "quantity", type: "uint256" }, + { internalType: "uint256", name: "price", type: "uint256" }, + { internalType: "address", name: "currency", type: "address" }, + { + internalType: "uint128", + name: "validityStartTimestamp", + type: "uint128", + }, + { + internalType: "uint128", + name: "validityEndTimestamp", + type: "uint128", + }, + { internalType: "bytes32", name: "uid", type: "bytes32" }, + ], + internalType: "struct ITokenERC20.MintRequest", + name: "_req", + type: "tuple", + }, + { internalType: "bytes", name: "_signature", type: "bytes" }, + ], + name: "mintWithSignature", + outputs: [], + stateMutability: "payable", + type: "function", + }, + { + inputs: [{ internalType: "bytes[]", name: "data", type: "bytes[]" }], + name: "multicall", + outputs: [ + { internalType: "bytes[]", name: "results", type: "bytes[]" }, + ], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [], + name: "name", + outputs: [{ internalType: "string", name: "", type: "string" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [{ internalType: "address", name: "owner", type: "address" }], + name: "nonces", + outputs: [{ internalType: "uint256", name: "", type: "uint256" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [{ internalType: "address", name: "account", type: "address" }], + name: "numCheckpoints", + outputs: [{ internalType: "uint32", name: "", type: "uint32" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "owner", type: "address" }, + { internalType: "address", name: "spender", type: "address" }, + { internalType: "uint256", name: "value", type: "uint256" }, + { internalType: "uint256", name: "deadline", type: "uint256" }, + { internalType: "uint8", name: "v", type: "uint8" }, + { internalType: "bytes32", name: "r", type: "bytes32" }, + { internalType: "bytes32", name: "s", type: "bytes32" }, + ], + name: "permit", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [], + name: "primarySaleRecipient", + outputs: [{ internalType: "address", name: "", type: "address" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "bytes32", name: "role", type: "bytes32" }, + { internalType: "address", name: "account", type: "address" }, + ], + name: "renounceRole", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "bytes32", name: "role", type: "bytes32" }, + { internalType: "address", name: "account", type: "address" }, + ], + name: "revokeRole", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [{ internalType: "string", name: "_uri", type: "string" }], + name: "setContractURI", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "address", + name: "_platformFeeRecipient", + type: "address", + }, + { internalType: "uint256", name: "_platformFeeBps", type: "uint256" }, + ], + name: "setPlatformFeeInfo", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "_saleRecipient", type: "address" }, + ], + name: "setPrimarySaleRecipient", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "bytes4", name: "interfaceId", type: "bytes4" }, + ], + name: "supportsInterface", + outputs: [{ internalType: "bool", name: "", type: "bool" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "symbol", + outputs: [{ internalType: "string", name: "", type: "string" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "totalSupply", + outputs: [{ internalType: "uint256", name: "", type: "uint256" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "to", type: "address" }, + { internalType: "uint256", name: "amount", type: "uint256" }, + ], + name: "transfer", + outputs: [{ internalType: "bool", name: "", type: "bool" }], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "from", type: "address" }, + { internalType: "address", name: "to", type: "address" }, + { internalType: "uint256", name: "amount", type: "uint256" }, + ], + name: "transferFrom", + outputs: [{ internalType: "bool", name: "", type: "bool" }], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + components: [ + { internalType: "address", name: "to", type: "address" }, + { + internalType: "address", + name: "primarySaleRecipient", + type: "address", + }, + { internalType: "uint256", name: "quantity", type: "uint256" }, + { internalType: "uint256", name: "price", type: "uint256" }, + { internalType: "address", name: "currency", type: "address" }, + { + internalType: "uint128", + name: "validityStartTimestamp", + type: "uint128", + }, + { + internalType: "uint128", + name: "validityEndTimestamp", + type: "uint128", + }, + { internalType: "bytes32", name: "uid", type: "bytes32" }, + ], + internalType: "struct ITokenERC20.MintRequest", + name: "_req", + type: "tuple", + }, + { internalType: "bytes", name: "_signature", type: "bytes" }, + ], + name: "verify", + outputs: [ + { internalType: "bool", name: "", type: "bool" }, + { internalType: "address", name: "", type: "address" }, + ], + stateMutability: "view", + type: "function", + }, + ]; + }); + var VFe = N((KFe) => { + "use strict"; + _(); + x(); + var Mf = Oo(), + jl = kc(), + War = Hn(), + $5 = wt(); + Gr(); + an(); + Bn(); + Nn(); + On(); + Ln(); + Dn(); + qn(); + Fn(); + Wn(); + Un(); + zn(); + jn(); + Kn(); + Vn(); + Gn(); + Yn(); + $n(); + Jn(); + Zn(); + Qn(); + Xn(); + ea(); + ta(); + ra(); + na(); + aa(); + ia(); + sa(); + oa(); + ca(); + ua(); + la(); + da(); + pa(); + ha(); + fa(); + ma(); + ya(); + ga(); + ba(); + va(); + wa(); + _a(); + xa(); + Ta(); + Ea(); + Ca(); + vn(); + Ia(); + Aa(); + ka(); + An(); + Sa(); + Ma(); + Pa(); + Ra(); + Ba(); + Na(); + Oa(); + La(); + Da(); + qa(); + Fa(); + Wa(); + Ua(); + Ha(); + za(); + function Uar(r) { + return r && r.__esModule ? r : { default: r }; + } + var Har = Uar(War), + Jz = class { + get chainId() { + return this._chainId; + } + constructor(e, t, n) { + let a = + arguments.length > 3 && arguments[3] !== void 0 + ? arguments[3] + : {}, + i = arguments.length > 4 ? arguments[4] : void 0, + s = arguments.length > 5 ? arguments[5] : void 0, + c = + arguments.length > 6 && arguments[6] !== void 0 + ? arguments[6] + : new jl.ContractWrapper(e, t, i, a); + Mf._defineProperty(this, "contractWrapper", void 0), + Mf._defineProperty(this, "storage", void 0), + Mf._defineProperty(this, "abi", void 0), + Mf._defineProperty(this, "metadata", void 0), + Mf._defineProperty(this, "encoder", void 0), + Mf._defineProperty(this, "estimator", void 0), + Mf._defineProperty(this, "events", void 0), + Mf._defineProperty(this, "interceptor", void 0), + Mf._defineProperty(this, "_chainId", void 0), + (this._chainId = s), + (this.abi = i), + (this.contractWrapper = c), + (this.storage = n), + (this.metadata = new jl.ContractMetadata( + this.contractWrapper, + jl.VoteContractSchema, + this.storage + )), + (this.encoder = new jl.ContractEncoder(this.contractWrapper)), + (this.estimator = new jl.GasCostEstimator(this.contractWrapper)), + (this.events = new jl.ContractEvents(this.contractWrapper)), + (this.interceptor = new jl.ContractInterceptor( + this.contractWrapper + )); + } + onNetworkUpdated(e) { + this.contractWrapper.updateSignerOrProvider(e); + } + getAddress() { + return this.contractWrapper.readContract.address; + } + async get(e) { + let n = (await this.getAll()).filter((a) => + a.proposalId.eq($5.BigNumber.from(e)) + ); + if (n.length === 0) throw new Error("proposal not found"); + return n[0]; + } + async getAll() { + return Promise.all( + (await this.contractWrapper.readContract.getAllProposals()).map( + async (e) => ({ + proposalId: e.proposalId, + proposer: e.proposer, + description: e.description, + startBlock: e.startBlock, + endBlock: e.endBlock, + state: await this.contractWrapper.readContract.state( + e.proposalId + ), + votes: await this.getProposalVotes(e.proposalId), + executions: e[3].map((t, n) => ({ + toAddress: e.targets[n], + nativeTokenValue: t, + transactionData: e.calldatas[n], + })), + }) + ) + ); + } + async getProposalVotes(e) { + let t = await this.contractWrapper.readContract.proposalVotes(e); + return [ + { + type: jl.VoteType.Against, + label: "Against", + count: t.againstVotes, + }, + { type: jl.VoteType.For, label: "For", count: t.forVotes }, + { + type: jl.VoteType.Abstain, + label: "Abstain", + count: t.abstainVotes, + }, + ]; + } + async hasVoted(e, t) { + return ( + t || (t = await this.contractWrapper.getSignerAddress()), + this.contractWrapper.readContract.hasVoted(e, t) + ); + } + async canExecute(e) { + await this.ensureExists(e); + let t = await this.get(e), + n = t.executions.map((c) => c.toAddress), + a = t.executions.map((c) => c.nativeTokenValue), + i = t.executions.map((c) => c.transactionData), + s = $5.ethers.utils.id(t.description); + try { + return ( + await this.contractWrapper.callStatic().execute(n, a, i, s), !0 + ); + } catch { + return !1; + } + } + async balance() { + let e = await this.contractWrapper.readContract.provider.getBalance( + this.contractWrapper.readContract.address + ); + return { + name: "", + symbol: "", + decimals: 18, + value: e, + displayValue: $5.ethers.utils.formatUnits(e, 18), + }; + } + async balanceOfToken(e) { + let t = new $5.Contract( + e, + Har.default, + this.contractWrapper.getProvider() + ); + return await jl.fetchCurrencyValue( + this.contractWrapper.getProvider(), + e, + await t.balanceOf(this.contractWrapper.readContract.address) + ); + } + async ensureExists(e) { + try { + await this.contractWrapper.readContract.state(e); + } catch { + throw Error(`Proposal ${e} not found`); + } + } + async settings() { + let [e, t, n, a, i] = await Promise.all([ + this.contractWrapper.readContract.votingDelay(), + this.contractWrapper.readContract.votingPeriod(), + this.contractWrapper.readContract.token(), + this.contractWrapper.readContract["quorumNumerator()"](), + this.contractWrapper.readContract.proposalThreshold(), + ]), + s = await jl.fetchCurrencyMetadata( + this.contractWrapper.getProvider(), + n + ); + return { + votingDelay: e.toString(), + votingPeriod: t.toString(), + votingTokenAddress: n, + votingTokenMetadata: s, + votingQuorumFraction: a.toString(), + proposalTokenThreshold: i.toString(), + }; + } + async propose(e, t) { + t || + (t = [ + { + toAddress: this.contractWrapper.readContract.address, + nativeTokenValue: 0, + transactionData: "0x", + }, + ]); + let n = t.map((l) => l.toAddress), + a = t.map((l) => l.nativeTokenValue), + i = t.map((l) => l.transactionData), + s = await this.contractWrapper.sendTransaction("propose", [ + n, + a, + i, + e, + ]); + return { + id: this.contractWrapper.parseLogs("ProposalCreated", s?.logs)[0] + .args.proposalId, + receipt: s, + }; + } + async vote(e, t) { + let n = + arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : ""; + return ( + await this.ensureExists(e), + { + receipt: await this.contractWrapper.sendTransaction( + "castVoteWithReason", + [e, t, n] + ), + } + ); + } + async execute(e) { + await this.ensureExists(e); + let t = await this.get(e), + n = t.executions.map((c) => c.toAddress), + a = t.executions.map((c) => c.nativeTokenValue), + i = t.executions.map((c) => c.transactionData), + s = $5.ethers.utils.id(t.description); + return { + receipt: await this.contractWrapper.sendTransaction("execute", [ + n, + a, + i, + s, + ]), + }; + } + async call(e) { + for ( + var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), a = 1; + a < t; + a++ + ) + n[a - 1] = arguments[a]; + return this.contractWrapper.call(e, ...n); + } + }; + KFe.Vote = Jz; + }); + var Zz = N((vcn, zar) => { + zar.exports = [ + { inputs: [], stateMutability: "nonpayable", type: "constructor" }, + { inputs: [], name: "Empty", type: "error" }, + { + anonymous: !1, + inputs: [ + { + indexed: !1, + internalType: "uint8", + name: "version", + type: "uint8", + }, + ], + name: "Initialized", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !1, + internalType: "uint256", + name: "proposalId", + type: "uint256", + }, + ], + name: "ProposalCanceled", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !1, + internalType: "uint256", + name: "proposalId", + type: "uint256", + }, + { + indexed: !1, + internalType: "address", + name: "proposer", + type: "address", + }, + { + indexed: !1, + internalType: "address[]", + name: "targets", + type: "address[]", + }, + { + indexed: !1, + internalType: "uint256[]", + name: "values", + type: "uint256[]", + }, + { + indexed: !1, + internalType: "string[]", + name: "signatures", + type: "string[]", + }, + { + indexed: !1, + internalType: "bytes[]", + name: "calldatas", + type: "bytes[]", + }, + { + indexed: !1, + internalType: "uint256", + name: "startBlock", + type: "uint256", + }, + { + indexed: !1, + internalType: "uint256", + name: "endBlock", + type: "uint256", + }, + { + indexed: !1, + internalType: "string", + name: "description", + type: "string", + }, + ], + name: "ProposalCreated", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !1, + internalType: "uint256", + name: "proposalId", + type: "uint256", + }, + ], + name: "ProposalExecuted", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !1, + internalType: "uint256", + name: "oldProposalThreshold", + type: "uint256", + }, + { + indexed: !1, + internalType: "uint256", + name: "newProposalThreshold", + type: "uint256", + }, + ], + name: "ProposalThresholdSet", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !1, + internalType: "uint256", + name: "oldQuorumNumerator", + type: "uint256", + }, + { + indexed: !1, + internalType: "uint256", + name: "newQuorumNumerator", + type: "uint256", + }, + ], + name: "QuorumNumeratorUpdated", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "address", + name: "voter", + type: "address", + }, + { + indexed: !1, + internalType: "uint256", + name: "proposalId", + type: "uint256", + }, + { + indexed: !1, + internalType: "uint8", + name: "support", + type: "uint8", + }, + { + indexed: !1, + internalType: "uint256", + name: "weight", + type: "uint256", + }, + { + indexed: !1, + internalType: "string", + name: "reason", + type: "string", + }, + ], + name: "VoteCast", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !0, + internalType: "address", + name: "voter", + type: "address", + }, + { + indexed: !1, + internalType: "uint256", + name: "proposalId", + type: "uint256", + }, + { + indexed: !1, + internalType: "uint8", + name: "support", + type: "uint8", + }, + { + indexed: !1, + internalType: "uint256", + name: "weight", + type: "uint256", + }, + { + indexed: !1, + internalType: "string", + name: "reason", + type: "string", + }, + { indexed: !1, internalType: "bytes", name: "params", type: "bytes" }, + ], + name: "VoteCastWithParams", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !1, + internalType: "uint256", + name: "oldVotingDelay", + type: "uint256", + }, + { + indexed: !1, + internalType: "uint256", + name: "newVotingDelay", + type: "uint256", + }, + ], + name: "VotingDelaySet", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { + indexed: !1, + internalType: "uint256", + name: "oldVotingPeriod", + type: "uint256", + }, + { + indexed: !1, + internalType: "uint256", + name: "newVotingPeriod", + type: "uint256", + }, + ], + name: "VotingPeriodSet", + type: "event", + }, + { + inputs: [], + name: "BALLOT_TYPEHASH", + outputs: [{ internalType: "bytes32", name: "", type: "bytes32" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "COUNTING_MODE", + outputs: [{ internalType: "string", name: "", type: "string" }], + stateMutability: "pure", + type: "function", + }, + { + inputs: [], + name: "EXTENDED_BALLOT_TYPEHASH", + outputs: [{ internalType: "bytes32", name: "", type: "bytes32" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "uint256", name: "proposalId", type: "uint256" }, + { internalType: "uint8", name: "support", type: "uint8" }, + ], + name: "castVote", + outputs: [{ internalType: "uint256", name: "", type: "uint256" }], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "uint256", name: "proposalId", type: "uint256" }, + { internalType: "uint8", name: "support", type: "uint8" }, + { internalType: "uint8", name: "v", type: "uint8" }, + { internalType: "bytes32", name: "r", type: "bytes32" }, + { internalType: "bytes32", name: "s", type: "bytes32" }, + ], + name: "castVoteBySig", + outputs: [{ internalType: "uint256", name: "", type: "uint256" }], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "uint256", name: "proposalId", type: "uint256" }, + { internalType: "uint8", name: "support", type: "uint8" }, + { internalType: "string", name: "reason", type: "string" }, + ], + name: "castVoteWithReason", + outputs: [{ internalType: "uint256", name: "", type: "uint256" }], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "uint256", name: "proposalId", type: "uint256" }, + { internalType: "uint8", name: "support", type: "uint8" }, + { internalType: "string", name: "reason", type: "string" }, + { internalType: "bytes", name: "params", type: "bytes" }, + ], + name: "castVoteWithReasonAndParams", + outputs: [{ internalType: "uint256", name: "", type: "uint256" }], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "uint256", name: "proposalId", type: "uint256" }, + { internalType: "uint8", name: "support", type: "uint8" }, + { internalType: "string", name: "reason", type: "string" }, + { internalType: "bytes", name: "params", type: "bytes" }, + { internalType: "uint8", name: "v", type: "uint8" }, + { internalType: "bytes32", name: "r", type: "bytes32" }, + { internalType: "bytes32", name: "s", type: "bytes32" }, + ], + name: "castVoteWithReasonAndParamsBySig", + outputs: [{ internalType: "uint256", name: "", type: "uint256" }], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [], + name: "contractType", + outputs: [{ internalType: "bytes32", name: "", type: "bytes32" }], + stateMutability: "pure", + type: "function", + }, + { + inputs: [], + name: "contractURI", + outputs: [{ internalType: "string", name: "", type: "string" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "contractVersion", + outputs: [{ internalType: "uint8", name: "", type: "uint8" }], + stateMutability: "pure", + type: "function", + }, + { + inputs: [ + { internalType: "address[]", name: "targets", type: "address[]" }, + { internalType: "uint256[]", name: "values", type: "uint256[]" }, + { internalType: "bytes[]", name: "calldatas", type: "bytes[]" }, + { internalType: "bytes32", name: "descriptionHash", type: "bytes32" }, + ], + name: "execute", + outputs: [{ internalType: "uint256", name: "", type: "uint256" }], + stateMutability: "payable", + type: "function", + }, + { + inputs: [], + name: "getAllProposals", + outputs: [ + { + components: [ + { internalType: "uint256", name: "proposalId", type: "uint256" }, + { internalType: "address", name: "proposer", type: "address" }, + { internalType: "address[]", name: "targets", type: "address[]" }, + { internalType: "uint256[]", name: "values", type: "uint256[]" }, + { + internalType: "string[]", + name: "signatures", + type: "string[]", + }, + { internalType: "bytes[]", name: "calldatas", type: "bytes[]" }, + { internalType: "uint256", name: "startBlock", type: "uint256" }, + { internalType: "uint256", name: "endBlock", type: "uint256" }, + { internalType: "string", name: "description", type: "string" }, + ], + internalType: "struct VoteERC20.Proposal[]", + name: "allProposals", + type: "tuple[]", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "account", type: "address" }, + { internalType: "uint256", name: "blockNumber", type: "uint256" }, + ], + name: "getVotes", + outputs: [{ internalType: "uint256", name: "", type: "uint256" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "account", type: "address" }, + { internalType: "uint256", name: "blockNumber", type: "uint256" }, + { internalType: "bytes", name: "params", type: "bytes" }, + ], + name: "getVotesWithParams", + outputs: [{ internalType: "uint256", name: "", type: "uint256" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "uint256", name: "proposalId", type: "uint256" }, + { internalType: "address", name: "account", type: "address" }, + ], + name: "hasVoted", + outputs: [{ internalType: "bool", name: "", type: "bool" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "address[]", name: "targets", type: "address[]" }, + { internalType: "uint256[]", name: "values", type: "uint256[]" }, + { internalType: "bytes[]", name: "calldatas", type: "bytes[]" }, + { internalType: "bytes32", name: "descriptionHash", type: "bytes32" }, + ], + name: "hashProposal", + outputs: [{ internalType: "uint256", name: "", type: "uint256" }], + stateMutability: "pure", + type: "function", + }, + { + inputs: [ + { internalType: "string", name: "_name", type: "string" }, + { internalType: "string", name: "_contractURI", type: "string" }, + { + internalType: "address[]", + name: "_trustedForwarders", + type: "address[]", + }, + { internalType: "address", name: "_token", type: "address" }, + { + internalType: "uint256", + name: "_initialVotingDelay", + type: "uint256", + }, + { + internalType: "uint256", + name: "_initialVotingPeriod", + type: "uint256", + }, + { + internalType: "uint256", + name: "_initialProposalThreshold", + type: "uint256", + }, + { + internalType: "uint256", + name: "_initialVoteQuorumFraction", + type: "uint256", + }, + ], + name: "initialize", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "forwarder", type: "address" }, + ], + name: "isTrustedForwarder", + outputs: [{ internalType: "bool", name: "", type: "bool" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "name", + outputs: [{ internalType: "string", name: "", type: "string" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "", type: "address" }, + { internalType: "address", name: "", type: "address" }, + { internalType: "uint256[]", name: "", type: "uint256[]" }, + { internalType: "uint256[]", name: "", type: "uint256[]" }, + { internalType: "bytes", name: "", type: "bytes" }, + ], + name: "onERC1155BatchReceived", + outputs: [{ internalType: "bytes4", name: "", type: "bytes4" }], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "", type: "address" }, + { internalType: "address", name: "", type: "address" }, + { internalType: "uint256", name: "", type: "uint256" }, + { internalType: "uint256", name: "", type: "uint256" }, + { internalType: "bytes", name: "", type: "bytes" }, + ], + name: "onERC1155Received", + outputs: [{ internalType: "bytes4", name: "", type: "bytes4" }], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "", type: "address" }, + { internalType: "address", name: "", type: "address" }, + { internalType: "uint256", name: "", type: "uint256" }, + { internalType: "bytes", name: "", type: "bytes" }, + ], + name: "onERC721Received", + outputs: [{ internalType: "bytes4", name: "", type: "bytes4" }], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "uint256", name: "proposalId", type: "uint256" }, + ], + name: "proposalDeadline", + outputs: [{ internalType: "uint256", name: "", type: "uint256" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "proposalIndex", + outputs: [{ internalType: "uint256", name: "", type: "uint256" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "uint256", name: "proposalId", type: "uint256" }, + ], + name: "proposalSnapshot", + outputs: [{ internalType: "uint256", name: "", type: "uint256" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "proposalThreshold", + outputs: [{ internalType: "uint256", name: "", type: "uint256" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "uint256", name: "proposalId", type: "uint256" }, + ], + name: "proposalVotes", + outputs: [ + { internalType: "uint256", name: "againstVotes", type: "uint256" }, + { internalType: "uint256", name: "forVotes", type: "uint256" }, + { internalType: "uint256", name: "abstainVotes", type: "uint256" }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [{ internalType: "uint256", name: "", type: "uint256" }], + name: "proposals", + outputs: [ + { internalType: "uint256", name: "proposalId", type: "uint256" }, + { internalType: "address", name: "proposer", type: "address" }, + { internalType: "uint256", name: "startBlock", type: "uint256" }, + { internalType: "uint256", name: "endBlock", type: "uint256" }, + { internalType: "string", name: "description", type: "string" }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "address[]", name: "targets", type: "address[]" }, + { internalType: "uint256[]", name: "values", type: "uint256[]" }, + { internalType: "bytes[]", name: "calldatas", type: "bytes[]" }, + { internalType: "string", name: "description", type: "string" }, + ], + name: "propose", + outputs: [ + { internalType: "uint256", name: "proposalId", type: "uint256" }, + ], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "uint256", name: "blockNumber", type: "uint256" }, + ], + name: "quorum", + outputs: [{ internalType: "uint256", name: "", type: "uint256" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "quorumDenominator", + outputs: [{ internalType: "uint256", name: "", type: "uint256" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "uint256", name: "blockNumber", type: "uint256" }, + ], + name: "quorumNumerator", + outputs: [{ internalType: "uint256", name: "", type: "uint256" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "quorumNumerator", + outputs: [{ internalType: "uint256", name: "", type: "uint256" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "address", name: "target", type: "address" }, + { internalType: "uint256", name: "value", type: "uint256" }, + { internalType: "bytes", name: "data", type: "bytes" }, + ], + name: "relay", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [{ internalType: "string", name: "uri", type: "string" }], + name: "setContractURI", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "uint256", + name: "newProposalThreshold", + type: "uint256", + }, + ], + name: "setProposalThreshold", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "uint256", name: "newVotingDelay", type: "uint256" }, + ], + name: "setVotingDelay", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "uint256", name: "newVotingPeriod", type: "uint256" }, + ], + name: "setVotingPeriod", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { internalType: "uint256", name: "proposalId", type: "uint256" }, + ], + name: "state", + outputs: [ + { + internalType: "enum IGovernorUpgradeable.ProposalState", + name: "", + type: "uint8", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { internalType: "bytes4", name: "interfaceId", type: "bytes4" }, + ], + name: "supportsInterface", + outputs: [{ internalType: "bool", name: "", type: "bool" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "token", + outputs: [ + { + internalType: "contract IVotesUpgradeable", + name: "", + type: "address", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { + internalType: "uint256", + name: "newQuorumNumerator", + type: "uint256", + }, + ], + name: "updateQuorumNumerator", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [], + name: "version", + outputs: [{ internalType: "string", name: "", type: "string" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "votingDelay", + outputs: [{ internalType: "uint256", name: "", type: "uint256" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "votingPeriod", + outputs: [{ internalType: "uint256", name: "", type: "uint256" }], + stateMutability: "view", + type: "function", + }, + { stateMutability: "payable", type: "receive" }, + ]; + }); + var YFe = N((GFe) => { + "use strict"; + _(); + x(); + function jar(r, e) { + if (typeof r != "object" || r === null) return r; + var t = r[Symbol.toPrimitive]; + if (t !== void 0) { + var n = t.call(r, e || "default"); + if (typeof n != "object") return n; + throw new TypeError("@@toPrimitive must return a primitive value."); + } + return (e === "string" ? String : Number)(r); + } + function Kar(r) { + var e = jar(r, "string"); + return typeof e == "symbol" ? e : String(e); + } + function Var(r, e, t) { + return ( + (e = Kar(e)), + e in r + ? Object.defineProperty(r, e, { + value: t, + enumerable: !0, + configurable: !0, + writable: !0, + }) + : (r[e] = t), + r + ); + } + GFe._defineProperty = Var; + }); + var ZFe = N((Xz) => { + "use strict"; + _(); + x(); + Object.defineProperty(Xz, "__esModule", { value: !0 }); + var $Fe = YFe(), + Qz = wt(), + AM = [ + { + inputs: [ + { internalType: "address", name: "_logic", type: "address" }, + { internalType: "bytes", name: "_data", type: "bytes" }, + ], + stateMutability: "payable", + type: "constructor", + }, + { stateMutability: "payable", type: "fallback" }, + { stateMutability: "payable", type: "receive" }, + ], + JFe = + "0x60806040526040516106ab3803806106ab83398101604081905261002291610261565b61004d60017f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbd61032f565b6000805160206106648339815191521461006957610069610354565b8161008e60008051602061066483398151915260001b6100d060201b6100521760201c565b80546001600160a01b0319166001600160a01b03929092169190911790558051156100c9576100c782826100d360201b6100551760201c565b505b50506103b9565b90565b60606100f88383604051806060016040528060278152602001610684602791396100ff565b9392505050565b60606001600160a01b0384163b61016c5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f6044820152651b9d1c9858dd60d21b60648201526084015b60405180910390fd5b600080856001600160a01b031685604051610187919061036a565b600060405180830381855af49150503d80600081146101c2576040519150601f19603f3d011682016040523d82523d6000602084013e6101c7565b606091505b5090925090506101d88282866101e2565b9695505050505050565b606083156101f15750816100f8565b8251156102015782518084602001fd5b8160405162461bcd60e51b81526004016101639190610386565b634e487b7160e01b600052604160045260246000fd5b60005b8381101561024c578181015183820152602001610234565b8381111561025b576000848401525b50505050565b6000806040838503121561027457600080fd5b82516001600160a01b038116811461028b57600080fd5b60208401519092506001600160401b03808211156102a857600080fd5b818501915085601f8301126102bc57600080fd5b8151818111156102ce576102ce61021b565b604051601f8201601f19908116603f011681019083821181831017156102f6576102f661021b565b8160405282815288602084870101111561030f57600080fd5b610320836020830160208801610231565b80955050505050509250929050565b60008282101561034f57634e487b7160e01b600052601160045260246000fd5b500390565b634e487b7160e01b600052600160045260246000fd5b6000825161037c818460208701610231565b9190910192915050565b60208152600082518060208401526103a5816040850160208701610231565b601f01601f19169190910160400192915050565b61029c806103c86000396000f3fe60806040523661001357610011610017565b005b6100115b61005061004b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc546001600160a01b031690565b610081565b565b90565b606061007a8383604051806060016040528060278152602001610240602791396100a5565b9392505050565b3660008037600080366000845af43d6000803e8080156100a0573d6000f35b3d6000fd5b60606001600160a01b0384163b6101125760405162461bcd60e51b815260206004820152602660248201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f6044820152651b9d1c9858dd60d21b60648201526084015b60405180910390fd5b600080856001600160a01b03168560405161012d91906101f0565b600060405180830381855af49150503d8060008114610168576040519150601f19603f3d011682016040523d82523d6000602084013e61016d565b606091505b509150915061017d828286610187565b9695505050505050565b6060831561019657508161007a565b8251156101a65782518084602001fd5b8160405162461bcd60e51b8152600401610109919061020c565b60005b838110156101db5781810151838201526020016101c3565b838111156101ea576000848401525b50505050565b600082516102028184602087016101c0565b9190910192915050565b602081526000825180602084015261022b8160408501602087016101c0565b601f01601f1916919091016040019291505056fe416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a26469706673582212204937a0e09cafeb6e415715660a96a2b11857f3d8a0631bca133280d3480d69a564736f6c634300080c0033360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564", + Gar = (r) => r.length > 1, + J5 = class extends Qz.ContractFactory { + constructor() { + for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++) + t[n] = arguments[n]; + Gar(t) ? super(...t) : super(AM, JFe, t[0]); + } + deploy(e, t, n) { + return super.deploy(e, t, n || {}); + } + getDeployTransaction(e, t, n) { + return super.getDeployTransaction(e, t, n || {}); + } + attach(e) { + return super.attach(e); + } + connect(e) { + return super.connect(e); + } + static createInterface() { + return new Qz.utils.Interface(AM); + } + static connect(e, t) { + return new Qz.Contract(e, AM, t); + } + }; + $Fe._defineProperty(J5, "bytecode", JFe); + $Fe._defineProperty(J5, "abi", AM); + Xz.TWProxy__factory = J5; + }); + var XFe = N((QFe) => { + "use strict"; + _(); + x(); + function Yar(r, e) { + if (typeof r != "object" || r === null) return r; + var t = r[Symbol.toPrimitive]; + if (t !== void 0) { + var n = t.call(r, e || "default"); + if (typeof n != "object") return n; + throw new TypeError("@@toPrimitive must return a primitive value."); + } + return (e === "string" ? String : Number)(r); + } + function $ar(r) { + var e = Yar(r, "string"); + return typeof e == "symbol" ? e : String(e); + } + function Jar(r, e, t) { + return ( + (e = $ar(e)), + e in r + ? Object.defineProperty(r, e, { + value: t, + enumerable: !0, + configurable: !0, + writable: !0, + }) + : (r[e] = t), + r + ); + } + QFe._defineProperty = Jar; + }); + var rWe = N((tj) => { + "use strict"; + _(); + x(); + Object.defineProperty(tj, "__esModule", { value: !0 }); + var eWe = XFe(), + ej = wt(), + kM = [ + { + inputs: [ + { internalType: "address", name: "_logic", type: "address" }, + { internalType: "bytes", name: "_data", type: "bytes" }, + ], + stateMutability: "payable", + type: "constructor", + }, + { stateMutability: "payable", type: "fallback" }, + { stateMutability: "payable", type: "receive" }, + ], + tWe = + "0x60806040526040516106ab3803806106ab83398101604081905261002291610261565b61004d60017f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbd61032f565b6000805160206106648339815191521461006957610069610354565b8161008e60008051602061066483398151915260001b6100d060201b6100521760201c565b80546001600160a01b0319166001600160a01b03929092169190911790558051156100c9576100c782826100d360201b6100551760201c565b505b50506103b9565b90565b60606100f88383604051806060016040528060278152602001610684602791396100ff565b9392505050565b60606001600160a01b0384163b61016c5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f6044820152651b9d1c9858dd60d21b60648201526084015b60405180910390fd5b600080856001600160a01b031685604051610187919061036a565b600060405180830381855af49150503d80600081146101c2576040519150601f19603f3d011682016040523d82523d6000602084013e6101c7565b606091505b5090925090506101d88282866101e2565b9695505050505050565b606083156101f15750816100f8565b8251156102015782518084602001fd5b8160405162461bcd60e51b81526004016101639190610386565b634e487b7160e01b600052604160045260246000fd5b60005b8381101561024c578181015183820152602001610234565b8381111561025b576000848401525b50505050565b6000806040838503121561027457600080fd5b82516001600160a01b038116811461028b57600080fd5b60208401519092506001600160401b03808211156102a857600080fd5b818501915085601f8301126102bc57600080fd5b8151818111156102ce576102ce61021b565b604051601f8201601f19908116603f011681019083821181831017156102f6576102f661021b565b8160405282815288602084870101111561030f57600080fd5b610320836020830160208801610231565b80955050505050509250929050565b60008282101561034f57634e487b7160e01b600052601160045260246000fd5b500390565b634e487b7160e01b600052600160045260246000fd5b6000825161037c818460208701610231565b9190910192915050565b60208152600082518060208401526103a5816040850160208701610231565b601f01601f19169190910160400192915050565b61029c806103c86000396000f3fe60806040523661001357610011610017565b005b6100115b61005061004b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc546001600160a01b031690565b610081565b565b90565b606061007a8383604051806060016040528060278152602001610240602791396100a5565b9392505050565b3660008037600080366000845af43d6000803e8080156100a0573d6000f35b3d6000fd5b60606001600160a01b0384163b6101125760405162461bcd60e51b815260206004820152602660248201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f6044820152651b9d1c9858dd60d21b60648201526084015b60405180910390fd5b600080856001600160a01b03168560405161012d91906101f0565b600060405180830381855af49150503d8060008114610168576040519150601f19603f3d011682016040523d82523d6000602084013e61016d565b606091505b509150915061017d828286610187565b9695505050505050565b6060831561019657508161007a565b8251156101a65782518084602001fd5b8160405162461bcd60e51b8152600401610109919061020c565b60005b838110156101db5781810151838201526020016101c3565b838111156101ea576000848401525b50505050565b600082516102028184602087016101c0565b9190910192915050565b602081526000825180602084015261022b8160408501602087016101c0565b601f01601f1916919091016040019291505056fe416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a26469706673582212204937a0e09cafeb6e415715660a96a2b11857f3d8a0631bca133280d3480d69a564736f6c634300080c0033360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564", + Zar = (r) => r.length > 1, + Z5 = class extends ej.ContractFactory { + constructor() { + for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++) + t[n] = arguments[n]; + Zar(t) ? super(...t) : super(kM, tWe, t[0]); + } + deploy(e, t, n) { + return super.deploy(e, t, n || {}); + } + getDeployTransaction(e, t, n) { + return super.getDeployTransaction(e, t, n || {}); + } + attach(e) { + return super.attach(e); + } + connect(e) { + return super.connect(e); + } + static createInterface() { + return new ej.utils.Interface(kM); + } + static connect(e, t) { + return new ej.Contract(e, kM, t); + } + }; + eWe._defineProperty(Z5, "bytecode", tWe); + eWe._defineProperty(Z5, "abi", kM); + tj.TWProxy__factory = Z5; + }); + var nj = N((Rcn, rj) => { + "use strict"; + _(); + x(); + S.env.NODE_ENV === "production" + ? (rj.exports = ZFe()) + : (rj.exports = rWe()); + }); + var kc = N((Q) => { + "use strict"; + _(); + x(); + var xe = an(), + ue = Oo(), + ie = wt(), + Qar = Bn(), + Xar = Nn(), + eir = On(), + tir = Ln(), + rir = Dn(), + nir = qn(), + air = Fn(), + iir = Wn(), + sir = Un(), + oir = Hn(), + cir = zn(), + uir = jn(), + lir = Kn(), + dir = Vn(), + pir = Gn(), + hir = Yn(), + fir = $n(), + mir = Jn(), + yir = Zn(), + gir = Qn(), + bir = Xn(), + vir = ea(), + wir = ta(), + _ir = ra(), + xir = na(), + Tir = aa(), + Eir = ia(), + Cir = sa(), + Iir = oa(), + Air = ca(), + kir = ua(), + Sir = la(), + Mir = da(), + Pir = pa(), + Rir = ha(), + Bir = fa(), + Nir = ma(), + Oir = ya(), + Lir = ga(), + Dir = ba(), + qir = va(), + Fir = wa(), + Wir = _a(), + Uir = xa(), + Hir = Ta(), + zir = Ea(), + jir = Ca(), + Kir = vn(), + uK = Ia(), + BWe = Aa(), + Vir = ka(), + Q5 = An(), + Gir = Sa(), + Yir = Ma(), + $ir = Pa(), + aj = Ra(), + Jir = Ba(), + Zir = Na(), + Qir = Oa(), + Xir = La(), + esr = Da(), + tsr = qa(), + rsr = Fa(), + nsr = Wa(), + asr = Ua(), + isr = Ha(), + ssr = za(); + function Pt(r) { + return r && r.__esModule ? r : { default: r }; + } + function Ds(r) { + if (r && r.__esModule) return r; + var e = Object.create(null); + return ( + r && + Object.keys(r).forEach(function (t) { + if (t !== "default") { + var n = Object.getOwnPropertyDescriptor(r, t); + Object.defineProperty( + e, + t, + n.get + ? n + : { + enumerable: !0, + get: function () { + return r[t]; + }, + } + ); + } + }), + (e.default = r), + Object.freeze(e) + ); + } + var GP = Pt(Qar), + no = Pt(Xar), + Pc = Pt(eir), + dr = Pt(tir), + osr = Pt(rir), + NWe = Pt(nir), + csr = Pt(air), + OWe = Pt(iir), + LWe = Pt(sir), + lu = Pt(oir), + DWe = Pt(cir), + lK = Pt(uir), + usr = Pt(lir), + lsr = Pt(dir), + dsr = Pt(pir), + qWe = Pt(hir), + psr = Pt(fir), + hsr = Pt(mir), + fsr = Pt(yir), + Yl = Pt(gir), + FWe = Pt(bir), + msr = Pt(vir), + ysr = Pt(wir), + gsr = Pt(_ir), + bsr = Pt(xir), + vsr = Pt(Tir), + wsr = Pt(Eir), + WWe = Pt(Cir), + _sr = Pt(Iir), + xsr = Pt(Air), + Tsr = Pt(kir), + UWe = Pt(Sir), + Esr = Pt(Mir), + Csr = Pt(Pir), + Isr = Pt(Rir), + Asr = Pt(Bir), + ksr = Pt(Nir), + Ssr = Pt(Oir), + Msr = Pt(Lir), + Psr = Pt(Dir), + Rsr = Pt(qir), + Bsr = Pt(Fir), + Nsr = Pt(Wir), + Osr = Pt(Uir), + Lsr = Pt(Hir), + Dsr = Pt(zir), + qsr = Pt(jir), + cj = Pt(Kir), + uj = Pt(BWe), + Fsr = Pt(Vir), + Wsr = Pt(Gir), + Usr = Pt(Yir), + HWe = Pt($ir), + zWe = Pt(Jir), + Hsr = Pt(Qir), + zsr = Pt(Xir), + jsr = Pt(esr), + Ksr = Pt(tsr), + Vsr = Pt(rsr), + Gsr = Pt(nsr), + Ysr = Pt(asr), + $sr = Pt(isr), + Jsr = Pt(ssr); + function Zsr(r, e) { + if (e.has(r)) + throw new TypeError( + "Cannot initialize the same private elements twice on an object" + ); + } + function lj(r, e, t) { + Zsr(r, e), e.set(r, t); + } + function Qsr(r, e) { + return e.get ? e.get.call(r) : e.value; + } + function jWe(r, e, t) { + if (!e.has(r)) + throw new TypeError( + "attempted to " + t + " private field on non-instance" + ); + return e.get(r); + } + function PM(r, e) { + var t = jWe(r, e, "get"); + return Qsr(r, t); + } + function Xsr(r, e, t) { + if (e.set) e.set.call(r, t); + else { + if (!e.writable) + throw new TypeError("attempted to set read only private field"); + e.value = t; + } + } + function dj(r, e, t) { + var n = jWe(r, e, "set"); + return Xsr(r, n, t), t; + } + Q.ChainId = void 0; + (function (r) { + (r[(r.Mainnet = 1)] = "Mainnet"), + (r[(r.Goerli = 5)] = "Goerli"), + (r[(r.Polygon = 137)] = "Polygon"), + (r[(r.Mumbai = 80001)] = "Mumbai"), + (r[(r.Localhost = 1337)] = "Localhost"), + (r[(r.Hardhat = 31337)] = "Hardhat"), + (r[(r.Fantom = 250)] = "Fantom"), + (r[(r.FantomTestnet = 4002)] = "FantomTestnet"), + (r[(r.Avalanche = 43114)] = "Avalanche"), + (r[(r.AvalancheFujiTestnet = 43113)] = "AvalancheFujiTestnet"), + (r[(r.Optimism = 10)] = "Optimism"), + (r[(r.OptimismGoerli = 420)] = "OptimismGoerli"), + (r[(r.Arbitrum = 42161)] = "Arbitrum"), + (r[(r.ArbitrumGoerli = 421613)] = "ArbitrumGoerli"), + (r[(r.BinanceSmartChainMainnet = 56)] = "BinanceSmartChainMainnet"), + (r[(r.BinanceSmartChainTestnet = 97)] = "BinanceSmartChainTestnet"); + })(Q.ChainId || (Q.ChainId = {})); + var KWe = [ + Q.ChainId.Mainnet, + Q.ChainId.Goerli, + Q.ChainId.Polygon, + Q.ChainId.Mumbai, + Q.ChainId.Fantom, + Q.ChainId.FantomTestnet, + Q.ChainId.Avalanche, + Q.ChainId.AvalancheFujiTestnet, + Q.ChainId.Optimism, + Q.ChainId.OptimismGoerli, + Q.ChainId.Arbitrum, + Q.ChainId.ArbitrumGoerli, + Q.ChainId.BinanceSmartChainMainnet, + Q.ChainId.BinanceSmartChainTestnet, + Q.ChainId.Hardhat, + Q.ChainId.Localhost, + ], + VWe = + "0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80", + p0 = "0xc82BbE41f2cF04e3a8efA18F7032BDD7f6d98a81", + l0 = "0x7c487845f98938Bb955B1D5AD069d9a30e4131fd", + Ug = "0x5DBC7B840baa9daBcBe9D2492E45D7244B54A2A0", + eor = "0x664244560eBa21Bf82d7150C791bE1AbcD5B4cd7", + tor = "0xcdAD8FA86e18538aC207872E8ff3536501431B73", + kw = { + [Q.ChainId.Mainnet]: { + openzeppelinForwarder: p0, + openzeppelinForwarderEOA: + "0x76ce2CB1Ae48Fa067f4fb8c5f803111AE0B24BEA", + biconomyForwarder: "0x84a0856b038eaAd1cC7E297cF34A7e72685A8693", + twFactory: Ug, + twRegistry: l0, + twBYOCRegistry: ie.constants.AddressZero, + }, + [Q.ChainId.Goerli]: { + openzeppelinForwarder: "0x5001A14CA6163143316a7C614e30e6041033Ac20", + openzeppelinForwarderEOA: + "0xe73c50cB9c5B378627ff625BB6e6725A4A5D65d2", + biconomyForwarder: "0xE041608922d06a4F26C0d4c27d8bCD01daf1f792", + twFactory: Ug, + twRegistry: l0, + twBYOCRegistry: "0xB1Bd9d7942A250BA2Dce27DD601F2ED4211A60C4", + }, + [Q.ChainId.Polygon]: { + openzeppelinForwarder: p0, + openzeppelinForwarderEOA: + "0x4f247c69184ad61036EC2Bb3213b69F10FbEDe1F", + biconomyForwarder: "0x86C80a8aa58e0A4fa09A69624c31Ab2a6CAD56b8", + twFactory: Ug, + twRegistry: l0, + twBYOCRegistry: "0x308473Be900F4185A56587dE54bDFF5E8f7a6AE7", + }, + [Q.ChainId.Mumbai]: { + openzeppelinForwarder: p0, + openzeppelinForwarderEOA: + "0xb1A2883fc4d287d9cB8Dbb96cFF60C76BEf2D250", + biconomyForwarder: "0x9399BB24DBB5C4b782C70c2969F58716Ebbd6a3b", + twFactory: Ug, + twRegistry: l0, + twBYOCRegistry: "0x3F17972CB27506eb4a6a3D59659e0B57a43fd16C", + }, + [Q.ChainId.Avalanche]: { + openzeppelinForwarder: p0, + openzeppelinForwarderEOA: + "0xb1A2883fc4d287d9cB8Dbb96cFF60C76BEf2D250", + biconomyForwarder: "0x64CD353384109423a966dCd3Aa30D884C9b2E057", + twFactory: Ug, + twRegistry: l0, + twBYOCRegistry: ie.constants.AddressZero, + }, + [Q.ChainId.AvalancheFujiTestnet]: { + openzeppelinForwarder: p0, + openzeppelinForwarderEOA: + "0xe73c50cB9c5B378627ff625BB6e6725A4A5D65d2", + biconomyForwarder: "0x6271Ca63D30507f2Dcbf99B52787032506D75BBF", + twFactory: Ug, + twRegistry: l0, + twBYOCRegistry: "0x3E6eE864f850F5e5A98bc950B68E181Cf4010F23", + }, + [Q.ChainId.Fantom]: { + openzeppelinForwarder: p0, + openzeppelinForwarderEOA: + "0xb1A2883fc4d287d9cB8Dbb96cFF60C76BEf2D250", + biconomyForwarder: "0x64CD353384109423a966dCd3Aa30D884C9b2E057", + twFactory: "0x97EA0Fcc552D5A8Fb5e9101316AAd0D62Ea0876B", + twRegistry: l0, + twBYOCRegistry: ie.constants.AddressZero, + }, + [Q.ChainId.FantomTestnet]: { + openzeppelinForwarder: p0, + openzeppelinForwarderEOA: + "0x42D3048b595B6e1c28a588d70366CcC2AA4dB47b", + biconomyForwarder: "0x69FB8Dca8067A5D38703b9e8b39cf2D51473E4b4", + twFactory: Ug, + twRegistry: l0, + twBYOCRegistry: "0x3E6eE864f850F5e5A98bc950B68E181Cf4010F23", + }, + [Q.ChainId.Arbitrum]: { + openzeppelinForwarder: "0x8cbc8B5d71702032904750A66AEfE8B603eBC538", + openzeppelinForwarderEOA: + "0x4f247c69184ad61036EC2Bb3213b69F10FbEDe1F", + biconomyForwarder: "0xfe0fa3C06d03bDC7fb49c892BbB39113B534fB57", + twFactory: "0xd24b3de085CFd8c54b94feAD08a7962D343E6DE0", + twRegistry: "0x7c487845f98938Bb955B1D5AD069d9a30e4131fd", + twBYOCRegistry: ie.constants.AddressZero, + }, + [Q.ChainId.ArbitrumGoerli]: { + openzeppelinForwarder: "0x8cbc8B5d71702032904750A66AEfE8B603eBC538", + openzeppelinForwarderEOA: + "0x119704314Ef304EaAAE4b3c7C9ABd59272A28310", + biconomyForwarder: ie.constants.AddressZero, + twFactory: "0xd24b3de085CFd8c54b94feAD08a7962D343E6DE0", + twRegistry: "0x7c487845f98938Bb955B1D5AD069d9a30e4131fd", + twBYOCRegistry: ie.constants.AddressZero, + }, + [Q.ChainId.Optimism]: { + openzeppelinForwarder: "0x8cbc8B5d71702032904750A66AEfE8B603eBC538", + openzeppelinForwarderEOA: + "0x7e80648EB2071E26937F9D42A513ccf4815fc702", + biconomyForwarder: "0xefba8a2a82ec1fb1273806174f5e28fbb917cf95", + twFactory: "0xd24b3de085CFd8c54b94feAD08a7962D343E6DE0", + twRegistry: "0x7c487845f98938Bb955B1D5AD069d9a30e4131fd", + twBYOCRegistry: ie.constants.AddressZero, + }, + [Q.ChainId.OptimismGoerli]: { + openzeppelinForwarder: "0x8cbc8B5d71702032904750A66AEfE8B603eBC538", + openzeppelinForwarderEOA: + "0x119704314Ef304EaAAE4b3c7C9ABd59272A28310", + biconomyForwarder: ie.constants.AddressZero, + twFactory: "0xd24b3de085CFd8c54b94feAD08a7962D343E6DE0", + twRegistry: "0x7c487845f98938Bb955B1D5AD069d9a30e4131fd", + twBYOCRegistry: ie.constants.AddressZero, + }, + [Q.ChainId.BinanceSmartChainMainnet]: { + openzeppelinForwarder: "0x8cbc8B5d71702032904750A66AEfE8B603eBC538", + openzeppelinForwarderEOA: + "0xE8dd2Ff0212F86d3197b4AfDC6dAC6ac47eb10aC", + biconomyForwarder: "0x86C80a8aa58e0A4fa09A69624c31Ab2a6CAD56b8", + twBYOCRegistry: ie.constants.AddressZero, + twFactory: "0xd24b3de085CFd8c54b94feAD08a7962D343E6DE0", + twRegistry: "0x7c487845f98938Bb955B1D5AD069d9a30e4131fd", + }, + [Q.ChainId.BinanceSmartChainTestnet]: { + openzeppelinForwarder: "0x8cbc8B5d71702032904750A66AEfE8B603eBC538", + openzeppelinForwarderEOA: + "0x7e80648EB2071E26937F9D42A513ccf4815fc702", + biconomyForwarder: "0x61456BF1715C1415730076BB79ae118E806E74d2", + twBYOCRegistry: ie.constants.AddressZero, + twFactory: "0xd24b3de085CFd8c54b94feAD08a7962D343E6DE0", + twRegistry: "0x7c487845f98938Bb955B1D5AD069d9a30e4131fd", + }, + [Q.ChainId.Hardhat]: { + openzeppelinForwarder: ie.constants.AddressZero, + openzeppelinForwarderEOA: ie.constants.AddressZero, + biconomyForwarder: ie.constants.AddressZero, + twFactory: ie.constants.AddressZero, + twRegistry: ie.constants.AddressZero, + twBYOCRegistry: ie.constants.AddressZero, + }, + [Q.ChainId.Localhost]: { + openzeppelinForwarder: ie.constants.AddressZero, + openzeppelinForwarderEOA: ie.constants.AddressZero, + biconomyForwarder: ie.constants.AddressZero, + twFactory: ie.constants.AddressZero, + twRegistry: ie.constants.AddressZero, + twBYOCRegistry: ie.constants.AddressZero, + }, + }, + pj = { + [Q.ChainId.Mainnet]: { + "nft-drop": "0x60fF9952e0084A6DEac44203838cDC91ABeC8736", + "edition-drop": "0x74af262d0671F378F97a1EDC3d0970Dbe8A1C550", + "token-drop": "0xE1eE43D23f247b6A9aF81fcE2766E76709482728", + "signature-drop": "0x6fD690EB509BdE4C50028C5D9C0dE3750C2Fad6A", + }, + [Q.ChainId.Polygon]: { + "nft-drop": "0xB96508050Ba0925256184103560EBADA912Fcc69", + "edition-drop": "0x74af262d0671F378F97a1EDC3d0970Dbe8A1C550", + "token-drop": "0x5A8eA4Adad8289746D073947BA06D69A62499aaf", + "signature-drop": "0xBE2fDc35410E268e41Bec62DBb01AEb43245c7d5", + }, + [Q.ChainId.Fantom]: { + "nft-drop": "0x2A396b2D90BAcEF19cDa973586B2633d22710fC2", + "edition-drop": "0x06395FCF9AC6ED827f9dD6e776809cEF1Be0d21B", + "token-drop": "0x0148b28a38efaaC31b6aa0a6D9FEb70FE7C91FFa", + "signature-drop": "0xe135Ef65C2B2213C3fD56d0Bd6500A2cA147aC10", + }, + [Q.ChainId.Avalanche]: { + "nft-drop": "0x9cF91118C8ee2913F0588e0F10e36B3d63F68bF6", + "edition-drop": "0x135fC9D26E5eC51260ece1DF4ED424E2f55c7766", + "token-drop": "0xca0B071899E575BA86495D46c5066971b6f3A901", + "signature-drop": "0x1d47526C3292B0130ef0afD5F02c1DA052A017B3", + }, + [Q.ChainId.Optimism]: { + "nft-drop": "0xFBd7D24d80ee005671E731a7287DEB6073264dD1", + "edition-drop": "0xe135Ef65C2B2213C3fD56d0Bd6500A2cA147aC10", + "token-drop": "0x902Dd246e66d8C3CE652375a723F2a52b43b9AAE", + "signature-drop": "0x8a4cd3549e548bbEEb38C16E041FFf040a5acabD", + }, + [Q.ChainId.Arbitrum]: { + "nft-drop": "0xC4903c1Ff5367b9ac2c349B63DC2409421AaEE2a", + "edition-drop": "0xCcddcec1831646Beff2753249f1B9C580327E89F", + "token-drop": "0x1b5947e1a2d5a29D0df20931DeAB0B87818209B9", + "signature-drop": "0x2dF9851af45dd41C8584ac55D983C604da985Bc7", + }, + [Q.ChainId.BinanceSmartChainMainnet]: { + "nft-drop": "0x902Dd246e66d8C3CE652375a723F2a52b43b9AAE", + "edition-drop": "0x2A396b2D90BAcEF19cDa973586B2633d22710fC2", + "token-drop": "0xe135Ef65C2B2213C3fD56d0Bd6500A2cA147aC10", + "signature-drop": "0xFBd7D24d80ee005671E731a7287DEB6073264dD1", + }, + [Q.ChainId.Goerli]: { + "nft-drop": "0xD11c97DD5F5546B5bBd630D7D1d7327481B0b92C", + "edition-drop": "0x5A8eA4Adad8289746D073947BA06D69A62499aaf", + "token-drop": "0x5680933221B752EB443654a014f88B101F868d50", + "signature-drop": "0x1b5947e1a2d5a29D0df20931DeAB0B87818209B9", + }, + [Q.ChainId.Mumbai]: { + "nft-drop": "0xC4903c1Ff5367b9ac2c349B63DC2409421AaEE2a", + "edition-drop": "0xCcddcec1831646Beff2753249f1B9C580327E89F", + "token-drop": "0x1b5947e1a2d5a29D0df20931DeAB0B87818209B9", + "signature-drop": "0x2dF9851af45dd41C8584ac55D983C604da985Bc7", + }, + [Q.ChainId.FantomTestnet]: { + "nft-drop": "0x8a4cd3549e548bbEEb38C16E041FFf040a5acabD", + "edition-drop": "0x902Dd246e66d8C3CE652375a723F2a52b43b9AAE", + "token-drop": "0xFBd7D24d80ee005671E731a7287DEB6073264dD1", + "signature-drop": "0x5A8eA4Adad8289746D073947BA06D69A62499aaf", + }, + [Q.ChainId.AvalancheFujiTestnet]: { + "nft-drop": "0xD11c97DD5F5546B5bBd630D7D1d7327481B0b92C", + "edition-drop": "0xE1eE43D23f247b6A9aF81fcE2766E76709482728", + "token-drop": "0x6fD690EB509BdE4C50028C5D9C0dE3750C2Fad6A", + "signature-drop": "0xCcddcec1831646Beff2753249f1B9C580327E89F", + }, + [Q.ChainId.OptimismGoerli]: { + "nft-drop": "0xCcddcec1831646Beff2753249f1B9C580327E89F", + "edition-drop": "0x6fD690EB509BdE4C50028C5D9C0dE3750C2Fad6A", + "token-drop": "0xD11c97DD5F5546B5bBd630D7D1d7327481B0b92C", + "signature-drop": "0x1b5947e1a2d5a29D0df20931DeAB0B87818209B9", + }, + [Q.ChainId.ArbitrumGoerli]: { + "nft-drop": "0x9CfE807a5b124b962064Fa8F7FD823Cc701255b6", + "edition-drop": "0x9cF91118C8ee2913F0588e0F10e36B3d63F68bF6", + "token-drop": "0x1d47526C3292B0130ef0afD5F02c1DA052A017B3", + "signature-drop": "0xE1eE43D23f247b6A9aF81fcE2766E76709482728", + }, + [Q.ChainId.BinanceSmartChainTestnet]: { + "nft-drop": "", + "edition-drop": "", + "token-drop": "", + "signature-drop": "", + }, + [Q.ChainId.Hardhat]: { + "nft-drop": "", + "edition-drop": "", + "token-drop": "", + "signature-drop": "", + }, + [Q.ChainId.Localhost]: { + "nft-drop": "", + "edition-drop": "", + "token-drop": "", + "signature-drop": "", + }, + }; + function GWe(r, e) { + if (r in pj) { + let t = pj[r]; + if (e in t) return t[e]; + } + return null; + } + function RM(r, e) { + return r === Q.ChainId.Hardhat || r === Q.ChainId.Localhost + ? e === "twFactory" + ? S.env.factoryAddress + : e === "twRegistry" + ? S.env.registryAddress + : ie.constants.AddressZero + : kw[r]?.[e]; + } + function YWe() { + return S.env.contractPublisherAddress + ? S.env.contractPublisherAddress + : eor; + } + function hj() { + return S.env.multiChainRegistryAddress + ? S.env.multiChainRegistryAddress + : tor; + } + function dK(r) { + let e = KWe.find((a) => a === r), + t = e ? kw[e].biconomyForwarder : ie.constants.AddressZero, + n = e ? kw[e].openzeppelinForwarder : ie.constants.AddressZero; + return t !== ie.constants.AddressZero ? [n, t] : [n]; + } + var _3 = ie.utils.arrayify("0x80ac58cd"), + x3 = ie.utils.arrayify("0xd9b67a26"), + Kl = "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee", + pK = { + [Q.ChainId.Mainnet]: { + name: "Ether", + symbol: "ETH", + decimals: 18, + wrapped: { + address: "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2", + name: "Wrapped Ether", + symbol: "WETH", + }, + }, + [Q.ChainId.Goerli]: { + name: "G\xF6rli Ether", + symbol: "GOR", + decimals: 18, + wrapped: { + address: "0xb4fbf271143f4fbf7b91a5ded31805e42b2208d6", + name: "Wrapped Ether", + symbol: "WETH", + }, + }, + [Q.ChainId.Polygon]: { + name: "Matic", + symbol: "MATIC", + decimals: 18, + wrapped: { + address: "0x0d500B1d8E8eF31E21C99d1Db9A6444d3ADf1270", + name: "Wrapped Matic", + symbol: "WMATIC", + }, + }, + [Q.ChainId.Mumbai]: { + name: "Matic", + symbol: "MATIC", + decimals: 18, + wrapped: { + address: "0x9c3C9283D3e44854697Cd22D3Faa240Cfb032889", + name: "Wrapped Matic", + symbol: "WMATIC", + }, + }, + [Q.ChainId.Avalanche]: { + name: "Avalanche", + symbol: "AVAX", + decimals: 18, + wrapped: { + address: "0xB31f66AA3C1e785363F0875A1B74E27b85FD66c7", + name: "Wrapped AVAX", + symbol: "WAVAX", + }, + }, + [Q.ChainId.AvalancheFujiTestnet]: { + name: "Avalanche", + symbol: "AVAX", + decimals: 18, + wrapped: { + address: "0xd00ae08403B9bbb9124bB305C09058E32C39A48c", + name: "Wrapped AVAX", + symbol: "WAVAX", + }, + }, + [Q.ChainId.Fantom]: { + name: "Fantom", + symbol: "FTM", + decimals: 18, + wrapped: { + address: "0x21be370D5312f44cB42ce377BC9b8a0cEF1A4C83", + name: "Wrapped Fantom", + symbol: "WFTM", + }, + }, + [Q.ChainId.FantomTestnet]: { + name: "Fantom", + symbol: "FTM", + decimals: 18, + wrapped: { + address: "0xf1277d1Ed8AD466beddF92ef448A132661956621", + name: "Wrapped Fantom", + symbol: "WFTM", + }, + }, + [Q.ChainId.Arbitrum]: { + name: "Ether", + symbol: "ETH", + decimals: 18, + wrapped: { + address: "0x82af49447d8a07e3bd95bd0d56f35241523fbab1", + name: "Wrapped Ether", + symbol: "WETH", + }, + }, + [Q.ChainId.ArbitrumGoerli]: { + name: "Arbitrum Goerli Ether", + symbol: "AGOR", + decimals: 18, + wrapped: { + address: "0xe39Ab88f8A4777030A534146A9Ca3B52bd5D43A3", + name: "Wrapped Ether", + symbol: "WETH", + }, + }, + [Q.ChainId.Optimism]: { + name: "Ether", + symbol: "ETH", + decimals: 18, + wrapped: { + address: "0x4200000000000000000000000000000000000006", + name: "Wrapped Ether", + symbol: "WETH", + }, + }, + [Q.ChainId.OptimismGoerli]: { + name: "Goerli Ether", + symbol: "ETH", + decimals: 18, + wrapped: { + address: "0x4200000000000000000000000000000000000006", + name: "Wrapped Ether", + symbol: "WETH", + }, + }, + [Q.ChainId.BinanceSmartChainMainnet]: { + name: "Binance Chain Native Token", + symbol: "BNB", + decimals: 18, + wrapped: { + address: "0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c", + name: "Wrapped Binance Chain Token", + symbol: "WBNB", + }, + }, + [Q.ChainId.BinanceSmartChainTestnet]: { + name: "Binance Chain Native Token", + symbol: "TBNB", + decimals: 18, + wrapped: { + address: "0xae13d989daC2f0dEbFf460aC112a837C89BAa7cd", + name: "Wrapped Binance Chain Testnet Token", + symbol: "WBNB", + }, + }, + [Q.ChainId.Hardhat]: { + name: "Ether", + symbol: "ETH", + decimals: 18, + wrapped: { + address: "0x5FbDB2315678afecb367f032d93F642f64180aa3", + name: "Wrapped Ether", + symbol: "WETH", + }, + }, + [Q.ChainId.Localhost]: { + name: "Ether", + symbol: "ETH", + decimals: 18, + wrapped: { + address: "0x5FbDB2315678afecb367f032d93F642f64180aa3", + name: "Wrapped Ether", + symbol: "WETH", + }, + }, + }; + function BM(r) { + return ( + pK[r] || { + name: "Ether", + symbol: "ETH", + decimals: 18, + wrapped: { + address: ie.ethers.constants.AddressZero, + name: "Wrapped Ether", + symbol: "WETH", + }, + } + ); + } + var ror = { + [Q.ChainId.Mainnet]: "0x514910771AF9Ca656af840dff83E8264EcF986CA", + [Q.ChainId.Goerli]: "0x326C977E6efc84E512bB9C30f76E30c160eD06FB", + [Q.ChainId.BinanceSmartChainMainnet]: + "0x404460C6A5EdE2D891e8297795264fDe62ADBB75", + [Q.ChainId.Polygon]: "0xb0897686c545045aFc77CF20eC7A532E3120E0F1", + [Q.ChainId.Mumbai]: "0x326C977E6efc84E512bB9C30f76E30c160eD06FB", + [Q.ChainId.Avalanche]: "0x5947BB275c521040051D82396192181b413227A3", + [Q.ChainId.AvalancheFujiTestnet]: + "0x0b9d5D9136855f6FEc3c0993feE6E9CE8a297846", + [Q.ChainId.Fantom]: "0x6F43FF82CCA38001B6699a8AC47A2d0E66939407", + [Q.ChainId.FantomTestnet]: "0xfaFedb041c0DD4fA2Dc0d87a6B0979Ee6FA7af5F", + }; + Q.EventType = void 0; + (function (r) { + (r.Transaction = "transaction"), (r.Signature = "signature"); + })(Q.EventType || (Q.EventType = {})); + var $We = 50, + JWe = 250, + nor = { timeLimitMs: $We, sizeLimit: JWe }, + fj = class extends ie.providers.StaticJsonRpcProvider { + constructor(e, t) { + let n = + arguments.length > 2 && arguments[2] !== void 0 + ? arguments[2] + : nor; + super(e, t), + ue._defineProperty(this, "_timeLimitMs", void 0), + ue._defineProperty(this, "_sizeLimit", void 0), + ue._defineProperty(this, "_pendingBatchAggregator", void 0), + ue._defineProperty(this, "_pendingBatch", void 0), + (this._timeLimitMs = n.timeLimitMs || JWe), + (this._sizeLimit = n.sizeLimit || $We), + (this._pendingBatchAggregator = null), + (this._pendingBatch = null); + } + sendCurrentBatch(e) { + this._pendingBatchAggregator && + clearTimeout(this._pendingBatchAggregator); + let t = this._pendingBatch || []; + (this._pendingBatch = null), (this._pendingBatchAggregator = null); + let n = t.map((a) => a.request); + return ( + this.emit("debug", { + action: "requestBatch", + request: ie.utils.deepCopy(e), + provider: this, + }), + ie.utils.fetchJson(this.connection, JSON.stringify(n)).then( + (a) => { + this.emit("debug", { + action: "response", + request: n, + response: a, + provider: this, + }), + t.forEach((i, s) => { + let c = a[s]; + if (c) + if (c.error) { + let l = new Error(c.error.message); + (l.code = c.error.code), + (l.data = c.error.data), + i.reject(l); + } else i.resolve(c.result); + else i.reject(new Error("No response for request")); + }); + }, + (a) => { + this.emit("debug", { + action: "response", + error: a, + request: n, + provider: this, + }), + t.forEach((i) => { + i.reject(a); + }); + } + ) + ); + } + send(e, t) { + let n = { method: e, params: t, id: this._nextId++, jsonrpc: "2.0" }; + this._pendingBatch === null && (this._pendingBatch = []); + let a = { request: n, resolve: null, reject: null }, + i = new Promise((s, c) => { + (a.resolve = s), (a.reject = c); + }); + return ( + this._pendingBatch.length === this._sizeLimit && + this.sendCurrentBatch(n), + this._pendingBatch.push(a), + this._pendingBatchAggregator || + (this._pendingBatchAggregator = setTimeout(() => { + this.sendCurrentBatch(n); + }, this._timeLimitMs)), + i + ); + } + }, + _i = xe.z + .union([ + xe.z.string(), + xe.z.number(), + xe.z.bigint(), + xe.z.custom((r) => ie.BigNumber.isBigNumber(r)), + ]) + .transform((r) => ie.BigNumber.from(r)), + cu = _i.transform((r) => r.toString()), + hK = xe.z + .union([xe.z.bigint(), xe.z.custom((r) => ie.BigNumber.isBigNumber(r))]) + .transform((r) => ie.BigNumber.from(r).toString()), + Mc = xe.z.string().refine( + (r) => ie.utils.isAddress(r), + (r) => ({ message: `${r} is not a valid address` }) + ), + fK = xe.z + .date() + .transform((r) => ie.BigNumber.from(Math.floor(r.getTime() / 1e3))), + mK = fK.default(new Date(0)), + ZWe = fK.default(new Date(Date.now() + 1e3 * 60 * 60 * 24 * 365 * 10)), + QWe = xe.z + .object({ + gasLimit: cu.optional(), + gasPrice: cu.optional(), + maxFeePerGas: cu.optional(), + maxPriorityFeePerGas: cu.optional(), + nonce: cu.optional(), + value: cu.optional(), + blockTag: xe.z.union([xe.z.string(), xe.z.number()]).optional(), + from: Mc.optional(), + type: xe.z.number().optional(), + }) + .strict(), + XWe = xe.z.object({ + rpc: xe.z.array(xe.z.string().url()), + chainId: xe.z.number(), + nativeCurrency: xe.z.object({ + name: xe.z.string(), + symbol: xe.z.string(), + decimals: xe.z.number().default(18), + }), + }), + NM = xe.z + .object({ + supportedChains: xe.z.array(XWe).default(uK.defaultChains), + thirdwebApiKey: xe.z.string().optional().default(ue.DEFAULT_API_KEY), + alchemyApiKey: xe.z.string().optional().optional(), + infuraApiKey: xe.z.string().optional().optional(), + readonlySettings: xe.z + .object({ + rpcUrl: xe.z.string().url(), + chainId: xe.z.number().optional(), + }) + .optional(), + gasSettings: xe.z + .object({ + maxPriceInGwei: xe.z + .number() + .min(1, "gas price cannot be less than 1") + .default(300), + speed: xe.z + .enum(["standard", "fast", "fastest"]) + .default("fastest"), + }) + .default({ maxPriceInGwei: 300, speed: "fastest" }), + gasless: xe.z + .union([ + xe.z.object({ + openzeppelin: xe.z.object({ + relayerUrl: xe.z.string().url(), + relayerForwarderAddress: xe.z.string().optional(), + useEOAForwarder: xe.z.boolean().default(!1), + }), + experimentalChainlessSupport: xe.z.boolean().default(!1), + }), + xe.z.object({ + biconomy: xe.z.object({ + apiId: xe.z.string(), + apiKey: xe.z.string(), + deadlineSeconds: xe.z + .number() + .min(1, "deadlineSeconds cannot be les than 1") + .default(3600), + }), + }), + ]) + .optional(), + }) + .default({ gasSettings: { maxPriceInGwei: 300, speed: "fastest" } }), + eUe = xe.z.object({ + name: xe.z.string(), + symbol: xe.z.string(), + decimals: xe.z.number(), + }), + tUe = eUe.extend({ value: _i, displayValue: xe.z.string() }), + Nf = xe.z.object({ merkle: xe.z.record(xe.z.string()).default({}) }), + OM = xe.z.object({ + address: Mc, + maxClaimable: ue.QuantitySchema.default(0), + price: ue.QuantitySchema.optional(), + currencyAddress: Mc.default(ie.ethers.constants.AddressZero).optional(), + }), + T3 = xe.z.union([ + xe.z + .array(xe.z.string()) + .transform((r) => r.map((e) => OM.parse({ address: e }))), + xe.z.array(OM), + ]), + yK = OM.extend({ proof: xe.z.array(xe.z.string()) }), + gK = xe.z.object({ merkleRoot: xe.z.string(), claims: xe.z.array(yK) }), + aor = xe.z.object({ + merkleRoot: xe.z.string(), + snapshotUri: xe.z.string(), + }), + rUe = xe.z + .object({ name: xe.z.string().optional() }) + .catchall(xe.z.unknown()), + E3 = xe.z.object({ + startTime: mK, + currencyAddress: xe.z.string().default(Kl), + price: ue.AmountSchema.default(0), + maxClaimableSupply: ue.QuantitySchema, + maxClaimablePerWallet: ue.QuantitySchema, + waitInSeconds: cu.default(0), + merkleRootHash: ue.BytesLikeSchema.default( + ie.utils.hexZeroPad([0], 32) + ), + snapshot: xe.z.optional(T3).nullable(), + metadata: rUe.optional(), + }), + nUe = xe.z.array(E3), + ior = E3.partial(), + bK = E3.extend({ + availableSupply: ue.QuantitySchema, + currentMintSupply: ue.QuantitySchema, + currencyMetadata: tUe.default({ + value: ie.BigNumber.from("0"), + displayValue: "0", + symbol: "", + decimals: 18, + name: "", + }), + price: _i, + waitInSeconds: _i, + startTime: _i.transform((r) => new Date(r.toNumber() * 1e3)), + snapshot: T3.optional().nullable(), + }); + function sor(r) { + if (r === void 0) { + let e = P.Buffer.alloc(16); + return ( + Zir.v4({}, e), + ie.utils.hexlify(ie.utils.toUtf8Bytes(e.toString("hex"))) + ); + } else return ie.utils.hexlify(r); + } + var YP = xe.z.object({ + to: xe.z + .string() + .refine((r) => r.toLowerCase() !== ie.constants.AddressZero, { + message: "Cannot create payload to mint to zero address", + }), + price: ue.AmountSchema.default(0), + currencyAddress: xe.z.string().default(Kl), + mintStartTime: mK, + mintEndTime: ZWe, + uid: xe.z + .string() + .optional() + .transform((r) => sor(r)), + primarySaleRecipient: xe.z.string().default(ie.constants.AddressZero), + }), + vK = YP.extend({ quantity: ue.AmountSchema }), + aUe = vK.extend({ mintStartTime: _i, mintEndTime: _i }), + $P = YP.extend({ + metadata: ue.NFTInputOrUriSchema, + royaltyRecipient: xe.z.string().default(ie.constants.AddressZero), + royaltyBps: ue.BasisPointsSchema.default(0), + }), + wK = $P.extend({ + uri: xe.z.string(), + royaltyBps: _i, + mintStartTime: _i, + mintEndTime: _i, + }), + iUe = $P.extend({ + metadata: ue.NFTInputOrUriSchema.default(""), + quantity: cu, + }), + sUe = iUe.extend({ tokenId: cu }), + oUe = wK.extend({ tokenId: _i, quantity: _i }), + cUe = $P.extend({ + metadata: ue.NFTInputOrUriSchema.default(""), + quantity: _i.default(1), + }), + uUe = wK.extend({ quantity: _i.default(1) }), + lUe = [ + { name: "to", type: "address" }, + { name: "primarySaleRecipient", type: "address" }, + { name: "quantity", type: "uint256" }, + { name: "price", type: "uint256" }, + { name: "currency", type: "address" }, + { name: "validityStartTimestamp", type: "uint128" }, + { name: "validityEndTimestamp", type: "uint128" }, + { name: "uid", type: "bytes32" }, + ], + dUe = [ + { name: "to", type: "address" }, + { name: "royaltyRecipient", type: "address" }, + { name: "royaltyBps", type: "uint256" }, + { name: "primarySaleRecipient", type: "address" }, + { name: "uri", type: "string" }, + { name: "price", type: "uint256" }, + { name: "currency", type: "address" }, + { name: "validityStartTimestamp", type: "uint128" }, + { name: "validityEndTimestamp", type: "uint128" }, + { name: "uid", type: "bytes32" }, + ], + pUe = [ + { name: "to", type: "address" }, + { name: "royaltyRecipient", type: "address" }, + { name: "royaltyBps", type: "uint256" }, + { name: "primarySaleRecipient", type: "address" }, + { name: "tokenId", type: "uint256" }, + { name: "uri", type: "string" }, + { name: "quantity", type: "uint256" }, + { name: "pricePerToken", type: "uint256" }, + { name: "currency", type: "address" }, + { name: "validityStartTimestamp", type: "uint128" }, + { name: "validityEndTimestamp", type: "uint128" }, + { name: "uid", type: "bytes32" }, + ], + hUe = [ + { name: "to", type: "address" }, + { name: "royaltyRecipient", type: "address" }, + { name: "royaltyBps", type: "uint256" }, + { name: "primarySaleRecipient", type: "address" }, + { name: "uri", type: "string" }, + { name: "quantity", type: "uint256" }, + { name: "pricePerToken", type: "uint256" }, + { name: "currency", type: "address" }, + { name: "validityStartTimestamp", type: "uint128" }, + { name: "validityEndTimestamp", type: "uint128" }, + { name: "uid", type: "bytes32" }, + ], + fUe = [ + { name: "validityStartTimestamp", type: "uint128" }, + { name: "validityEndTimestamp", type: "uint128" }, + { name: "uid", type: "bytes32" }, + { name: "data", type: "bytes" }, + ], + du = xe.z.object({ + name: xe.z.string(), + description: xe.z.string().optional(), + image: ue.FileOrBufferOrStringSchema.optional(), + external_link: xe.z.string().url().optional(), + }), + Yu = du + .extend({ image: xe.z.string().optional() }) + .catchall(xe.z.unknown()), + ro = xe.z.object({ + seller_fee_basis_points: ue.BasisPointsSchema.default(0), + fee_recipient: Mc.default(ie.constants.AddressZero), + }), + b0 = xe.z.object({ primary_sale_recipient: Mc }), + Vl = xe.z.object({ + platform_fee_basis_points: ue.BasisPointsSchema.default(0), + platform_fee_recipient: Mc.default(ie.constants.AddressZero), + }), + $u = xe.z.object({ trusted_forwarders: xe.z.array(Mc).default([]) }), + ds = xe.z.object({ symbol: xe.z.string().optional().default("") }), + mUe = du.merge(ro).merge(Nf).merge(ds), + oor = Yu.merge(ro).merge(Nf).merge(ds), + cor = mUe.merge(Vl).merge(b0).merge($u), + _K = { deploy: cor, output: oor, input: mUe }, + yUe = du.merge(ro).merge(Nf).merge(ds), + uor = Yu.merge(ro).merge(Nf).merge(ds), + lor = yUe.merge(Vl).merge(b0).merge($u), + gUe = { deploy: lor, output: uor, input: yUe }, + bUe = du, + dor = Yu, + por = bUe.merge(Vl).merge($u), + xK = { deploy: por, output: dor, input: bUe }, + vUe = du.merge(ro).merge(ds), + hor = Yu.merge(ro).merge(ds), + mor = vUe.merge(Vl).merge($u), + wUe = { deploy: mor, output: hor, input: vUe }, + _Ue = xe.z.object({ + address: Mc, + sharesBps: ue.BasisPointsSchema.gt(0, "Shares must be greater than 0"), + }), + yor = _Ue.extend({ address: Mc, sharesBps: ue.BasisPointsSchema }), + mj = du.extend({ + recipients: xe.z + .array(_Ue) + .default([]) + .superRefine((r, e) => { + let t = {}, + n = 0; + for (let a = 0; a < r.length; a++) { + let i = r[a]; + t[i.address] && + e.addIssue({ + code: xe.z.ZodIssueCode.custom, + message: "Duplicate address.", + path: [a, "address"], + }), + (t[i.address] = !0), + (n += i.sharesBps), + n > 1e4 && + e.addIssue({ + code: xe.z.ZodIssueCode.custom, + message: "Total shares cannot go over 100%.", + path: [a, "sharesBps"], + }); + } + n !== 1e4 && + e.addIssue({ + code: xe.z.ZodIssueCode.custom, + message: `Total shares need to add up to 100%. Total shares are currently ${ + n / 100 + }%`, + path: [], + }); + }), + }), + gor = Yu.extend({ recipients: xe.z.array(yor) }), + bor = mj.merge(mj).merge($u), + xUe = { deploy: bor, output: gor, input: mj }, + TUe = du.merge(ds), + vor = Yu.merge(ds), + wor = TUe.merge(Vl).merge(b0).merge($u), + EUe = { deploy: wor, output: vor, input: TUe }, + CUe = du.merge(ro).merge(ds), + _or = Yu.merge(ro).merge(ds), + xor = CUe.merge(Vl).merge(b0).merge($u), + IUe = { deploy: xor, output: _or, input: CUe }, + AUe = du.merge(ro).merge(ds), + Tor = Yu.merge(ro).merge(ds), + Eor = AUe.merge(Vl).merge(b0).merge($u), + kUe = { deploy: Eor, output: Tor, input: AUe }, + SUe = xe.z.object({ + voting_delay_in_blocks: xe.z.number().min(0).default(0), + voting_period_in_blocks: xe.z.number().min(1).default(1), + voting_token_address: Mc, + voting_quorum_fraction: ue.PercentSchema.default(0), + proposal_token_threshold: cu.default(1), + }), + Cor = SUe.extend({ proposal_token_threshold: _i }), + MUe = du.merge(SUe), + Ior = Yu.merge(Cor), + Aor = MUe.merge($u), + PUe = { deploy: Aor, output: Ior, input: MUe }; + xe.z.object({ + proposalId: _i, + proposer: xe.z.string(), + targets: xe.z.array(xe.z.string()), + values: xe.z.array(_i), + signatures: xe.z.array(xe.z.string()), + calldatas: xe.z.array(xe.z.string()), + startBlock: _i, + endBlock: _i, + description: xe.z.string(), + }); + var nWe = xe.z.object({}).catchall(xe.z.union([hK, xe.z.unknown()])), + kor = xe.z.union([xe.z.array(nWe), nWe]).optional(), + RUe = xe.z.object({ supply: _i, metadata: ue.CommonNFTOutput }), + Sor = RUe.extend({ owner: xe.z.string(), quantityOwned: _i }), + Mor = xe.z.object({ supply: cu, metadata: ue.CommonNFTInput }), + Por = xe.z.object({ supply: cu, metadata: ue.NFTInputOrUriSchema }), + Ror = xe.z.object({ toAddress: Mc, amount: ue.AmountSchema }), + Bor = "https://gateway.ipfscdn.io/ipfs/", + LM = { + "avalanche-fuji": Q.ChainId.AvalancheFujiTestnet, + "avalanche-testnet": Q.ChainId.AvalancheFujiTestnet, + "fantom-testnet": Q.ChainId.FantomTestnet, + ethereum: Q.ChainId.Mainnet, + matic: Q.ChainId.Polygon, + mumbai: Q.ChainId.Mumbai, + goerli: Q.ChainId.Goerli, + polygon: Q.ChainId.Polygon, + mainnet: Q.ChainId.Mainnet, + optimism: Q.ChainId.Optimism, + "optimism-goerli": Q.ChainId.OptimismGoerli, + arbitrum: Q.ChainId.Arbitrum, + "arbitrum-goerli": Q.ChainId.ArbitrumGoerli, + fantom: Q.ChainId.Fantom, + avalanche: Q.ChainId.Avalanche, + binance: Q.ChainId.BinanceSmartChainMainnet, + "binance-testnet": Q.ChainId.BinanceSmartChainTestnet, + hardhat: Q.ChainId.Hardhat, + localhost: Q.ChainId.Localhost, + }, + Nor = Object.fromEntries( + Object.entries(LM).map((r) => { + let [e, t] = r; + return [t, e]; + }) + ); + function BUe() { + let r = + arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}; + return NM.parse(r).supportedChains.reduce( + (t, n) => ((t[n.chainId] = n), t), + {} + ); + } + function JP(r, e) { + if (typeof r == "string" && r.startsWith("http")) return DM(r); + let t = NUe(r), + n = NM.parse(e); + typeof r != "number" && + typeof r != "string" && + (n.supportedChains = [r, ...n.supportedChains]); + let a = BUe(n), + i = ""; + try { + i = uK.getChainRPC(a[t], { + thirdwebApiKey: n.thirdwebApiKey || ue.DEFAULT_API_KEY, + infuraApiKey: n.infuraApiKey, + alchemyApiKey: n.alchemyApiKey, + }); + } catch (s) { + console.warn("Failed to get chain RPC", s); + } + if (!i) + throw new Error( + `No rpc url found for chain ${r}. Please provide a valid rpc url via the 'chains' property of the sdk options.` + ); + return DM(i, t); + } + function NUe(r) { + if (typeof r == "number") return r; + if (typeof r != "string") return r.chainId; + if (!(r in LM)) + throw new Error( + `Cannot resolve chainId from: ${r} - please pass the chainId instead and specify it in the 'chains' property of the SDK options.` + ); + return LM[r]; + } + var aWe = new Map(); + function DM(r, e) { + try { + let t = r.match(/^(ws|http)s?:/i); + if (t) + switch (t[1]) { + case "http": + let n = `${r}-${e || -1}`, + a = aWe.get(n); + if (a) return a; + let i = e + ? new fj(r, e) + : new ie.providers.JsonRpcBatchProvider(r, e); + return aWe.set(n, i), i; + case "ws": + return new ie.providers.WebSocketProvider(r, e); + default: + return ie.ethers.getDefaultProvider(r); + } + else return ie.ethers.getDefaultProvider(r); + } catch { + return ie.ethers.getDefaultProvider(r); + } + } + var Sw = class extends Error { + constructor(e) { + super(e ? `Object with id ${e} NOT FOUND` : "NOT_FOUND"); + } + }, + yj = class extends Error { + constructor(e) { + super(e ? `'${e}' is an invalid address` : "Invalid address passed"); + } + }, + qM = class extends Error { + constructor(e, t) { + super(`MISSING ROLE: ${e} does not have the '${t}' role`); + } + }, + gj = class extends Error { + constructor() { + let e = + arguments.length > 0 && arguments[0] !== void 0 + ? arguments[0] + : "The asset you're trying to use could not be found."; + super(`message: ${e}`); + } + }, + bj = class extends Error { + constructor(e) { + super(`UPLOAD_FAILED: ${e}`); + } + }, + vj = class extends Error { + constructor() { + super( + "File name is required when object is not a `File` type object." + ); + } + }, + wj = class extends Error { + constructor(e) { + super( + `DUPLICATE_FILE_NAME_ERROR: File name ${e} was passed for more than one file.` + ); + } + }, + _j = class extends Error { + constructor(e, t, n) { + super( + `BALANCE ERROR: you do not have enough balance on contract ${e} to use ${t} tokens. You have ${n} tokens available.` + ); + } + }, + xj = class extends Error { + constructor() { + super("LIST ERROR: you should be the owner of the token to list it."); + } + }, + Tj = class extends Error { + constructor(e) { + super(`BUY ERROR: You cannot buy more than ${e} tokens`); + } + }, + Ej = class extends Error { + constructor(e, t) { + super(`FETCH_FAILED: ${e}`), + ue._defineProperty(this, "innerError", void 0), + (this.innerError = t); + } + }, + FM = class extends Error { + constructor(e) { + super(`DUPLICATE_LEAFS${e ? ` : ${e}` : ""}`); + } + }, + WM = class extends Error { + constructor(e) { + super( + `Auction already started with existing bid${e ? `, id: ${e}` : ""}` + ); + } + }, + Cj = class extends Error { + constructor(e) { + super(`FUNCTION DEPRECATED. ${e ? `Use ${e} instead` : ""}`); + } + }, + r3 = class extends Error { + constructor(e, t) { + super( + `Could not find listing.${e ? ` marketplace address: ${e}` : ""}${ + t ? ` listing id: ${t}` : "" + }` + ); + } + }, + n3 = class extends Error { + constructor(e, t, n, a) { + super( + `Incorrect listing type. Are you sure you're using the right method?.${ + e ? ` marketplace address: ${e}` : "" + }${t ? ` listing id: ${t}` : ""}${a ? ` expected type: ${a}` : ""}${ + n ? ` actual type: ${n}` : "" + }` + ); + } + }, + Ij = class extends Error { + constructor(e) { + super( + `Failed to transfer asset, transfer is restricted.${ + e ? ` Address : ${e}` : "" + }` + ); + } + }, + Aj = class extends Error { + constructor(e, t) { + let n = + arguments.length > 2 && arguments[2] !== void 0 + ? arguments[2] + : "Failed to execute transaction"; + super( + `${n}, admin role is missing${e ? ` on address: ${e}` : ""}${ + t ? ` on contract: ${t}` : "" + }` + ); + } + }, + a3 = class extends Error { + constructor(e, t) { + super( + `Auction has not ended yet${e ? `, id: ${e}` : ""}${ + t ? `, end time: ${t.toString()}` : "" + }` + ); + } + }, + Rf = class extends Error { + constructor(e) { + super( + `This functionality is not available because the contract does not implement the '${e.docLinks.contracts}' Extension. Learn how to unlock this functionality at https://portal.thirdweb.com/extensions ` + ); + } + }, + ij = new WeakMap(), + sj = new WeakMap(), + UM = class extends Error { + constructor(e) { + let t = ` \u2554\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2557 \u2551 TRANSACTION ERROR \u2551 \u255A\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u255D -`;if(t+=`Reason: ${e.reason}`,t+=` +`; + if ( + ((t += `Reason: ${e.reason}`), + (t += ` \u2554\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2557 \u2551 TRANSACTION INFORMATION \u2551 \u255A\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u255D -`,t+=z0("from",e.from),t+=z0("to",e.contractName?`${e.to} (${e.contractName})`:e.to),t+=z0("chain",`${e.network.name} (${e.network.chainId})`),e.rpcUrl)try{let n=new URL(e.rpcUrl);t+=z0("rpc",n.hostname)}catch{}if(e.hash&&(t+=z0("tx hash",e.hash)),e.value&&e.value.gt(0)&&(t+=z0("value",`${se.ethers.utils.formatEther(e.value)} ${CG[e.network.chainId]?.symbol||""}`)),t+=z0("data",`${e.data}`),e.method&&(t+=z0("method",e.method)),e.sources){let n=e.sources.find(a=>a.source.includes(e.reason));if(n){let a=n.source.split(` -`).map((c,l)=>`${l+1} ${c}`),i=a.findIndex(c=>c.includes(e.reason));a[i]+=" <-- REVERT";let s=a.slice(i-8,i+4);t+=` +`), + (t += d0("from", e.from)), + (t += d0( + "to", + e.contractName ? `${e.to} (${e.contractName})` : e.to + )), + (t += d0("chain", `${e.network.name} (${e.network.chainId})`)), + e.rpcUrl) + ) + try { + let n = new URL(e.rpcUrl); + t += d0("rpc", n.hostname); + } catch {} + if ( + (e.hash && (t += d0("tx hash", e.hash)), + e.value && + e.value.gt(0) && + (t += d0( + "value", + `${ie.ethers.utils.formatEther(e.value)} ${ + pK[e.network.chainId]?.symbol || "" + }` + )), + (t += d0("data", `${e.data}`)), + e.method && (t += d0("method", e.method)), + e.sources) + ) { + let n = e.sources.find((a) => a.source.includes(e.reason)); + if (n) { + let a = n.source + .split( + ` +` + ) + .map((c, l) => `${l + 1} ${c}`), + i = a.findIndex((c) => c.includes(e.reason)); + a[i] += " <-- REVERT"; + let s = a.slice(i - 8, i + 4); + (t += ` \u2554\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2557 \u2551 SOLIDITY STACK TRACE \u2551 \u255A\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u255D -`,t+=`File: ${n.filename.replace("node_modules/","")} +`), + (t += `File: ${n.filename.replace("node_modules/", "")} -`,t+=s.join(` -`)}}t+=` +`), + (t += s.join(` +`)); + } + } + (t += ` \u2554\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2557 \u2551 DEBUGGING RESOURCES \u2551 \u255A\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u255D -`,t+="Need helping debugging? Join our Discord: https://discord.gg/thirdweb",t+=` +`), + (t += + "Need helping debugging? Join our Discord: https://discord.gg/thirdweb"), + (t += ` -`,super(t),TV(this,gV,{writable:!0,value:void 0}),TV(this,vV,{writable:!0,value:void 0}),_V(this,gV,e.reason),_V(this,vV,e)}get reason(){return F9(this,gV)}get info(){return F9(this,vV)}};function Oje(r){if(r.reason)return r.reason;let e=r;return typeof r=="object"?e=JSON.stringify(r):typeof r!="string"&&(e=r.toString()),aWe(/.*?"message":"([^"\\]*).*?/,e)||aWe(/.*?"reason":"([^"\\]*).*?/,e)||r.message||""}function z0(r,e){if(e==="")return e;let t=Array(10-r.length).fill(" ").join("");return e.includes(` -`)?e=` +`), + super(t), + lj(this, ij, { writable: !0, value: void 0 }), + lj(this, sj, { writable: !0, value: void 0 }), + dj(this, ij, e.reason), + dj(this, sj, e); + } + get reason() { + return PM(this, ij); + } + get info() { + return PM(this, sj); + } + }; + function OUe(r) { + if (r.reason) return r.reason; + let e = r; + return ( + typeof r == "object" + ? (e = JSON.stringify(r)) + : typeof r != "string" && (e = r.toString()), + iWe(/.*?"message":"([^"\\]*).*?/, e) || + iWe(/.*?"reason":"([^"\\]*).*?/, e) || + r.message || + "" + ); + } + function d0(r, e) { + if (e === "") return e; + let t = Array(10 - r.length) + .fill(" ") + .join(""); + return ( + e.includes(` +`) + ? (e = + ` - `+e.split(` + ` + + e.split(` `).join(` - `):e=`${t}${e}`,` -${r}:${e}`}function aWe(r,e){let t=e.match(r)||[],n="";return t?.length>0&&(n+=t[1]),n}function s_(r,e){return r?r&&r.toString().includes(e)||r&&r.message&&r.message.toString().includes(e)||r&&r.error&&r.error.toString().includes(e):!1}var Kcr=[{name:"from",type:"address"},{name:"to",type:"address"},{name:"value",type:"uint256"},{name:"gas",type:"uint256"},{name:"nonce",type:"uint256"},{name:"data",type:"bytes"}],Qcr=[{name:"from",type:"address"},{name:"to",type:"address"},{name:"value",type:"uint256"},{name:"gas",type:"uint256"},{name:"nonce",type:"uint256"},{name:"data",type:"bytes"},{name:"chainid",type:"uint256"}],Xcr=[{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"uint256",name:"batchId",type:"uint256"}],name:"getNonce",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"}],vw={},iWe={};async function sWe(r,e,t){let n=t.join("|"),a=iWe[n],i=Date.now()-a>=2e3;if(!(n in vw)||i){let c=await r.functions[e](...t);Array.isArray(c)&&c.length>0?vw[n]=se.BigNumber.from(c[0]):vw[n]=se.BigNumber.from(c),iWe[n]=Date.now()}let s=vw[n];return vw[n]=se.BigNumber.from(vw[n]).add(1),s}function Ycr(r){switch(r){case Y.ChainId.Polygon:return"https://gasstation-mainnet.matic.network/v2";case Y.ChainId.Mumbai:return"https://gasstation-mumbai.matic.today/v2"}}var $cr=se.ethers.utils.parseUnits("31","gwei"),eur=se.ethers.utils.parseUnits("1","gwei");function tur(r){switch(r){case Y.ChainId.Polygon:return $cr;case Y.ChainId.Mumbai:return eur}}async function rur(r){let e=Ycr(r);try{let n=(await(await wV.default(e)).json()).standard.maxPriorityFee;if(n>0){let a=parseFloat(n).toFixed(9);return se.ethers.utils.parseUnits(a,"gwei")}}catch(t){console.error("failed to fetch gas",t)}return tur(r)}async function Q9(r,e,t,n){let a=r?.provider;if(!a)throw new Error("missing provider");let i=se.ethers.utils._TypedDataEncoder.getPayload(e,t,n),s="",c=(await r.getAddress()).toLowerCase();if(a?.provider?.isWalletConnect)s=await a.send("eth_signTypedData",[(await r.getAddress()).toLowerCase(),JSON.stringify(i)]);else try{s=await r._signTypedData(e,t,n)}catch(l){if(l?.message?.includes("Method eth_signTypedData_v4 not supported"))s=await a.send("eth_signTypedData",[c,JSON.stringify(i)]);else try{await a.send("eth_signTypedData_v4",[c,JSON.stringify(i)])}catch(d){throw d}}return{payload:i,signature:se.ethers.utils.joinSignature(se.ethers.utils.splitSignature(s))}}var nur=[{inputs:[],name:"name",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"}],aur=[{constant:!0,inputs:[],name:"DOMAIN_SEPARATOR",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],payable:!1,stateMutability:"view",type:"function"},{inputs:[],name:"getDomainSeperator",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"}],iur=[{inputs:[{internalType:"address",name:"owner",type:"address"}],name:"nonces",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"user",type:"address"}],name:"getNonce",outputs:[{internalType:"uint256",name:"nonce",type:"uint256"}],stateMutability:"view",type:"function"}];async function sur(r,e){let t=new se.Contract(e,iur,r);try{return await t.nonces(await r.getAddress())}catch{return await t.getNonce(await r.getAddress())}}async function our(r,e){let t=new se.Contract(e,aur,r);try{return await t.DOMAIN_SEPARATOR()}catch{try{return await t.getDomainSeperator()}catch(a){console.error("Error getting domain separator",a)}}}async function cur(r,e){return new se.Contract(e,nur,r).name()}async function uur(r,e){let t=await our(r,e.verifyingContract),n={name:e.name,version:e.version,verifyingContract:e.verifyingContract,salt:se.ethers.utils.hexZeroPad(se.BigNumber.from(e.chainId).toHexString(),32)};return se.ethers.utils._TypedDataEncoder.hashDomain(n)===t?n:e}async function lur(r,e,t,n,a,i,s){let c=await uur(r,{name:await cur(r,e),version:"1",chainId:await r.getChainId(),verifyingContract:e});s=s||(await sur(r,e)).toString(),i=i||se.ethers.constants.MaxUint256;let l={owner:t,spender:n,value:a,nonce:s,deadline:i},d={Permit:[{name:"owner",type:"address"},{name:"spender",type:"address"},{name:"value",type:"uint256"},{name:"nonce",type:"uint256"},{name:"deadline",type:"uint256"}]},{signature:f}=await Q9(r,c,d,l);return{message:l,signature:f}}var Lje=()=>typeof window<"u",Bje=()=>!Lje();function dur(r,e){if(r.length===0||r.length===1||!e)return r;for(let t=0;t({})),ue._defineProperty(this,"writeContract",void 0),ue._defineProperty(this,"readContract",void 0),ue._defineProperty(this,"abi",void 0),this.abi=n,this.writeContract=new se.Contract(t,n,this.getSignerOrProvider()),this.readContract=this.writeContract.connect(this.getProvider()),_V(this,q9,new $T.ThirdwebStorage)}updateSignerOrProvider(e){super.updateSignerOrProvider(e),this.writeContract=this.writeContract.connect(this.getSignerOrProvider()),this.readContract=this.writeContract.connect(this.getProvider())}async getChainID(){let e=this.getProvider(),{chainId:t}=await e.getNetwork();return t}async getSignerAddress(){let e=this.getSigner();if(!e)throw new Error("This action requires a connected wallet to sign the transaction. Please pass a valid signer to the SDK.");return await e.getAddress()}callStatic(){return this.writeContract.callStatic}async getCallOverrides(){if(Lje())return{};let e=await this.getProvider().getFeeData();if(e.maxFeePerGas&&e.maxPriorityFeePerGas){let n=await this.getChainID(),a=await this.getProvider().getBlock("latest"),i=a&&a.baseFeePerGas?a.baseFeePerGas:se.ethers.utils.parseUnits("1","gwei"),s;n===Y.ChainId.Mumbai||n===Y.ChainId.Polygon?s=await rur(n):s=se.BigNumber.from(e.maxPriorityFeePerGas);let c=this.getPreferredPriorityFee(s);return{maxFeePerGas:i.mul(2).add(c),maxPriorityFeePerGas:c}}else return{gasPrice:await this.getPreferredGasPrice()}}getPreferredPriorityFee(e){let t=this.options.gasSettings.speed,n=this.options.gasSettings.maxPriceInGwei,a;switch(t){case"standard":a=se.BigNumber.from(0);break;case"fast":a=e.div(100).mul(5);break;case"fastest":a=e.div(100).mul(10);break}let i=e.add(a),s=se.ethers.utils.parseUnits(n.toString(),"gwei"),c=se.ethers.utils.parseUnits("2.5","gwei");return i.gt(s)&&(i=s),i.lt(c)&&(i=c),i}async getPreferredGasPrice(){let e=await this.getProvider().getGasPrice(),t=this.options.gasSettings.speed,n=this.options.gasSettings.maxPriceInGwei,a=e,i;switch(t){case"standard":i=se.BigNumber.from(1);break;case"fast":i=e.div(100).mul(5);break;case"fastest":i=e.div(100).mul(10);break}a=a.add(i);let s=se.ethers.utils.parseUnits(n.toString(),"gwei");return a.gt(s)&&(a=s),a}emitTransactionEvent(e,t){this.emit(Y.EventType.Transaction,{status:e,transactionHash:t})}async multiCall(e){return this.sendTransaction("multicall",[e])}async estimateGas(e,t){return this.writeContract.estimateGas[e](...t)}withTransactionOverride(e){this.customOverrides=e}async call(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a0&&typeof n[n.length-1]=="object"){let f=n[n.length-1];i=XWe.parse(f),n=n.slice(0,n.length-1)}}catch{}let s=Iw(vp.parse(this.abi)).filter(f=>f.name===e);if(!s.length)throw new Error(`Function "${e}" not found in contract. Check your dashboard for the list of functions available`);let c=s.find(f=>f.name===e&&f.inputs.length===n.length);if(!c)throw new Error(`Function "${e}" requires ${s[0].inputs.length} arguments, but ${n.length} were provided. -Expected function signature: ${s[0].signature}`);let l=`${e}(${c.inputs.map(f=>f.type).join()})`,d=l in this.readContract.functions?l:e;return c.stateMutability==="view"||c.stateMutability==="pure"?this.readContract[d](...n):{receipt:await this.sendTransaction(d,n,i)}}async sendTransaction(e,t,n){if(n||(n=await this.getCallOverrides()),n={...n,...this.customOverrides()},this.customOverrides=()=>({}),this.options?.gasless&&("openzeppelin"in this.options.gasless||"biconomy"in this.options.gasless)){if(e==="multicall"&&Array.isArray(t[0])&&t[0].length>0){let c=await this.getSignerAddress();t[0]=t[0].map(l=>se.ethers.utils.solidityPack(["bytes","address"],[l,c]))}let a=this.getProvider(),i=await this.sendGaslessTransaction(e,t,n);this.emitTransactionEvent("submitted",i);let s=await a.waitForTransaction(i);return this.emitTransactionEvent("completed",i),s}else{if(!this.isValidContract){let s=await this.getProvider().getCode(this.readContract.address);if(this.isValidContract=s!=="0x",!this.isValidContract)throw new Error("The address you're trying to send a transaction to is not a smart contract. Make sure you are on the correct network and the contract address is correct")}let a=await this.sendTransactionByFunction(e,t,n);this.emitTransactionEvent("submitted",a.hash);let i;try{i=await a.wait()}catch(s){try{await this.writeContract.callStatic[e](...t,...n.value?[{value:n.value}]:[])}catch(c){throw await this.formatError(c,e,t,n)}throw await this.formatError(s,e,t,n)}return this.emitTransactionEvent("completed",a.hash),i}}async sendTransactionByFunction(e,t,n){let a=this.writeContract.functions[e];if(!a)throw new Error(`invalid function: "${e.toString()}"`);if(!n.gasLimit)try{n.gasLimit=await this.writeContract.estimateGas[e](...t,n)}catch{try{await this.writeContract.callStatic[e](...t,...n.value?[{value:n.value}]:[])}catch(s){throw await this.formatError(s,e,t,n)}}try{return await a(...t,n)}catch(i){let s=await(n.from||this.getSignerAddress()),c=await(n.value?n.value:0),l=await this.getProvider().getBalance(s);throw l.eq(0)||c&&l.lt(c)?await this.formatError(new Error("You have insufficient funds in your account to execute this transaction."),e,t,n):await this.formatError(i,e,t,n)}}async formatError(e,t,n,a){let i=this.getProvider(),s=await i.getNetwork(),c=await(a.from||this.getSignerAddress()),l=this.readContract.address,d=this.readContract.interface.encodeFunctionData(t,n),f=se.BigNumber.from(a.value||0),w=i.connection?.url,E=this.readContract.interface.getFunction(t),k=n.map(G=>JSON.stringify(G).length<=80?JSON.stringify(G):JSON.stringify(G,void 0,2)),A=k.join(", ").length<=80?k.join(", "):` -`+k.map(G=>" "+G.split(` + `)) + : (e = `${t}${e}`), + ` +${r}:${e}` + ); + } + function iWe(r, e) { + let t = e.match(r) || [], + n = ""; + return t?.length > 0 && (n += t[1]), n; + } + function i3(r, e) { + return r + ? (r && r.toString().includes(e)) || + (r && r.message && r.message.toString().includes(e)) || + (r && r.error && r.error.toString().includes(e)) + : !1; + } + var Oor = [ + { name: "from", type: "address" }, + { name: "to", type: "address" }, + { name: "value", type: "uint256" }, + { name: "gas", type: "uint256" }, + { name: "nonce", type: "uint256" }, + { name: "data", type: "bytes" }, + ], + Lor = [ + { name: "from", type: "address" }, + { name: "to", type: "address" }, + { name: "value", type: "uint256" }, + { name: "gas", type: "uint256" }, + { name: "nonce", type: "uint256" }, + { name: "data", type: "bytes" }, + { name: "chainid", type: "uint256" }, + ], + Dor = [ + { + inputs: [ + { internalType: "address", name: "from", type: "address" }, + { internalType: "uint256", name: "batchId", type: "uint256" }, + ], + name: "getNonce", + outputs: [{ internalType: "uint256", name: "", type: "uint256" }], + stateMutability: "view", + type: "function", + }, + ], + xw = {}, + sWe = {}; + async function oWe(r, e, t) { + let n = t.join("|"), + a = sWe[n], + i = Date.now() - a >= 2e3; + if (!(n in xw) || i) { + let c = await r.functions[e](...t); + Array.isArray(c) && c.length > 0 + ? (xw[n] = ie.BigNumber.from(c[0])) + : (xw[n] = ie.BigNumber.from(c)), + (sWe[n] = Date.now()); + } + let s = xw[n]; + return (xw[n] = ie.BigNumber.from(xw[n]).add(1)), s; + } + function qor(r) { + switch (r) { + case Q.ChainId.Polygon: + return "https://gasstation-mainnet.matic.network/v2"; + case Q.ChainId.Mumbai: + return "https://gasstation-mumbai.matic.today/v2"; + } + } + var For = ie.ethers.utils.parseUnits("31", "gwei"), + Wor = ie.ethers.utils.parseUnits("1", "gwei"); + function Uor(r) { + switch (r) { + case Q.ChainId.Polygon: + return For; + case Q.ChainId.Mumbai: + return Wor; + } + } + async function Hor(r) { + let e = qor(r); + try { + let n = (await (await cj.default(e)).json()).standard.maxPriorityFee; + if (n > 0) { + let a = parseFloat(n).toFixed(9); + return ie.ethers.utils.parseUnits(a, "gwei"); + } + } catch (t) { + console.error("failed to fetch gas", t); + } + return Uor(r); + } + async function HM(r, e, t, n) { + let a = r?.provider; + if (!a) throw new Error("missing provider"); + let i = ie.ethers.utils._TypedDataEncoder.getPayload(e, t, n), + s = "", + c = (await r.getAddress()).toLowerCase(); + if (a?.provider?.isWalletConnect) + s = await a.send("eth_signTypedData", [ + (await r.getAddress()).toLowerCase(), + JSON.stringify(i), + ]); + else + try { + s = await r._signTypedData(e, t, n); + } catch (l) { + if (l?.message?.includes("Method eth_signTypedData_v4 not supported")) + s = await a.send("eth_signTypedData", [c, JSON.stringify(i)]); + else + try { + await a.send("eth_signTypedData_v4", [c, JSON.stringify(i)]); + } catch (d) { + throw d; + } + } + return { + payload: i, + signature: ie.ethers.utils.joinSignature( + ie.ethers.utils.splitSignature(s) + ), + }; + } + var zor = [ + { + inputs: [], + name: "name", + outputs: [{ internalType: "string", name: "", type: "string" }], + stateMutability: "view", + type: "function", + }, + ], + jor = [ + { + constant: !0, + inputs: [], + name: "DOMAIN_SEPARATOR", + outputs: [{ internalType: "bytes32", name: "", type: "bytes32" }], + payable: !1, + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "getDomainSeperator", + outputs: [{ internalType: "bytes32", name: "", type: "bytes32" }], + stateMutability: "view", + type: "function", + }, + ], + Kor = [ + { + inputs: [{ internalType: "address", name: "owner", type: "address" }], + name: "nonces", + outputs: [{ internalType: "uint256", name: "", type: "uint256" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [{ internalType: "address", name: "user", type: "address" }], + name: "getNonce", + outputs: [ + { internalType: "uint256", name: "nonce", type: "uint256" }, + ], + stateMutability: "view", + type: "function", + }, + ]; + async function Vor(r, e) { + let t = new ie.Contract(e, Kor, r); + try { + return await t.nonces(await r.getAddress()); + } catch { + return await t.getNonce(await r.getAddress()); + } + } + async function Gor(r, e) { + let t = new ie.Contract(e, jor, r); + try { + return await t.DOMAIN_SEPARATOR(); + } catch { + try { + return await t.getDomainSeperator(); + } catch (a) { + console.error("Error getting domain separator", a); + } + } + } + async function Yor(r, e) { + return new ie.Contract(e, zor, r).name(); + } + async function $or(r, e) { + let t = await Gor(r, e.verifyingContract), + n = { + name: e.name, + version: e.version, + verifyingContract: e.verifyingContract, + salt: ie.ethers.utils.hexZeroPad( + ie.BigNumber.from(e.chainId).toHexString(), + 32 + ), + }; + return ie.ethers.utils._TypedDataEncoder.hashDomain(n) === t ? n : e; + } + async function Jor(r, e, t, n, a, i, s) { + let c = await $or(r, { + name: await Yor(r, e), + version: "1", + chainId: await r.getChainId(), + verifyingContract: e, + }); + (s = s || (await Vor(r, e)).toString()), + (i = i || ie.ethers.constants.MaxUint256); + let l = { owner: t, spender: n, value: a, nonce: s, deadline: i }, + d = { + Permit: [ + { name: "owner", type: "address" }, + { name: "spender", type: "address" }, + { name: "value", type: "uint256" }, + { name: "nonce", type: "uint256" }, + { name: "deadline", type: "uint256" }, + ], + }, + { signature: m } = await HM(r, c, d, l); + return { message: l, signature: m }; + } + var LUe = () => typeof window < "u", + DUe = () => !LUe(); + function Zor(r, e) { + if (r.length === 0 || r.length === 1 || !e) return r; + for (let t = 0; t < r.length; t++) + for (let n = t + 1; n < r.length; n++) e(r[t], r[n]) && r.splice(n, 1); + return r; + } + var Yg = class extends uj.default { + constructor(e, t) { + super(), + ue._defineProperty(this, "provider", void 0), + ue._defineProperty(this, "signer", void 0), + ue._defineProperty(this, "options", void 0); + try { + this.options = NM.parse(t); + } catch (i) { + console.error( + "invalid sdk options object passed, falling back to default options", + i + ), + (this.options = NM.parse({})); + } + let [n, a] = Qo(e, this.options); + (this.signer = n), (this.provider = a); + } + updateSignerOrProvider(e) { + let [t, n] = Qo(e, this.options); + (this.signer = t), (this.provider = n); + } + isReadOnly() { + return !ie.Signer.isSigner(this.signer); + } + getSigner() { + return this.signer; + } + getProvider() { + return this.provider; + } + getSignerOrProvider() { + return this.getSigner() || this.getProvider(); + } + }; + function Qo(r, e) { + let t, n; + return ( + ie.Signer.isSigner(r) && ((t = r), r.provider && (n = r.provider)), + e?.readonlySettings && + (n = DM(e.readonlySettings.rpcUrl, e.readonlySettings.chainId)), + n || + (ie.providers.Provider.isProvider(r) + ? (n = r) + : ie.Signer.isSigner(r) || + (typeof r == "string" || typeof r == "number" + ? (n = JP(r, e)) + : (n = ie.ethers.getDefaultProvider(r)))), + n || + ((n = ie.ethers.getDefaultProvider()), + console.error( + "No provider found, using default provider on default chain!" + )), + [t, n] + ); + } + var SM = new WeakMap(), + ls = class extends Yg { + constructor(e, t, n, a) { + super(e, a), + lj(this, SM, { writable: !0, value: void 0 }), + ue._defineProperty(this, "isValidContract", !1), + ue._defineProperty(this, "customOverrides", () => ({})), + ue._defineProperty(this, "writeContract", void 0), + ue._defineProperty(this, "readContract", void 0), + ue._defineProperty(this, "abi", void 0), + (this.abi = n), + (this.writeContract = new ie.Contract( + t, + n, + this.getSignerOrProvider() + )), + (this.readContract = this.writeContract.connect( + this.getProvider() + )), + dj(this, SM, new Q5.ThirdwebStorage()); + } + updateSignerOrProvider(e) { + super.updateSignerOrProvider(e), + (this.writeContract = this.writeContract.connect( + this.getSignerOrProvider() + )), + (this.readContract = this.writeContract.connect( + this.getProvider() + )); + } + async getChainID() { + let e = this.getProvider(), + { chainId: t } = await e.getNetwork(); + return t; + } + async getSignerAddress() { + let e = this.getSigner(); + if (!e) + throw new Error( + "This action requires a connected wallet to sign the transaction. Please pass a valid signer to the SDK." + ); + return await e.getAddress(); + } + callStatic() { + return this.writeContract.callStatic; + } + async getCallOverrides() { + if (LUe()) return {}; + let e = await this.getProvider().getFeeData(); + if (e.maxFeePerGas && e.maxPriorityFeePerGas) { + let n = await this.getChainID(), + a = await this.getProvider().getBlock("latest"), + i = + a && a.baseFeePerGas + ? a.baseFeePerGas + : ie.ethers.utils.parseUnits("1", "gwei"), + s; + n === Q.ChainId.Mumbai || n === Q.ChainId.Polygon + ? (s = await Hor(n)) + : (s = ie.BigNumber.from(e.maxPriorityFeePerGas)); + let c = this.getPreferredPriorityFee(s); + return { maxFeePerGas: i.mul(2).add(c), maxPriorityFeePerGas: c }; + } else return { gasPrice: await this.getPreferredGasPrice() }; + } + getPreferredPriorityFee(e) { + let t = this.options.gasSettings.speed, + n = this.options.gasSettings.maxPriceInGwei, + a; + switch (t) { + case "standard": + a = ie.BigNumber.from(0); + break; + case "fast": + a = e.div(100).mul(5); + break; + case "fastest": + a = e.div(100).mul(10); + break; + } + let i = e.add(a), + s = ie.ethers.utils.parseUnits(n.toString(), "gwei"), + c = ie.ethers.utils.parseUnits("2.5", "gwei"); + return i.gt(s) && (i = s), i.lt(c) && (i = c), i; + } + async getPreferredGasPrice() { + let e = await this.getProvider().getGasPrice(), + t = this.options.gasSettings.speed, + n = this.options.gasSettings.maxPriceInGwei, + a = e, + i; + switch (t) { + case "standard": + i = ie.BigNumber.from(1); + break; + case "fast": + i = e.div(100).mul(5); + break; + case "fastest": + i = e.div(100).mul(10); + break; + } + a = a.add(i); + let s = ie.ethers.utils.parseUnits(n.toString(), "gwei"); + return a.gt(s) && (a = s), a; + } + emitTransactionEvent(e, t) { + this.emit(Q.EventType.Transaction, { status: e, transactionHash: t }); + } + async multiCall(e) { + return this.sendTransaction("multicall", [e]); + } + async estimateGas(e, t) { + return this.writeContract.estimateGas[e](...t); + } + withTransactionOverride(e) { + this.customOverrides = e; + } + async call(e) { + for ( + var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), a = 1; + a < t; + a++ + ) + n[a - 1] = arguments[a]; + let i; + try { + if (n.length > 0 && typeof n[n.length - 1] == "object") { + let m = n[n.length - 1]; + (i = QWe.parse(m)), (n = n.slice(0, n.length - 1)); + } + } catch {} + let s = Nw(Jd.parse(this.abi)).filter((m) => m.name === e); + if (!s.length) + throw new Error( + `Function "${e}" not found in contract. Check your dashboard for the list of functions available` + ); + let c = s.find((m) => m.name === e && m.inputs.length === n.length); + if (!c) + throw new Error(`Function "${e}" requires ${s[0].inputs.length} arguments, but ${n.length} were provided. +Expected function signature: ${s[0].signature}`); + let l = `${e}(${c.inputs.map((m) => m.type).join()})`, + d = l in this.readContract.functions ? l : e; + return c.stateMutability === "view" || c.stateMutability === "pure" + ? this.readContract[d](...n) + : { receipt: await this.sendTransaction(d, n, i) }; + } + async sendTransaction(e, t, n) { + if ( + (n || (n = await this.getCallOverrides()), + (n = { ...n, ...this.customOverrides() }), + (this.customOverrides = () => ({})), + this.options?.gasless && + ("openzeppelin" in this.options.gasless || + "biconomy" in this.options.gasless)) + ) { + if (e === "multicall" && Array.isArray(t[0]) && t[0].length > 0) { + let c = await this.getSignerAddress(); + t[0] = t[0].map((l) => + ie.ethers.utils.solidityPack(["bytes", "address"], [l, c]) + ); + } + let a = this.getProvider(), + i = await this.sendGaslessTransaction(e, t, n); + this.emitTransactionEvent("submitted", i); + let s = await a.waitForTransaction(i); + return this.emitTransactionEvent("completed", i), s; + } else { + if (!this.isValidContract) { + let s = await this.getProvider().getCode( + this.readContract.address + ); + if (((this.isValidContract = s !== "0x"), !this.isValidContract)) + throw new Error( + "The address you're trying to send a transaction to is not a smart contract. Make sure you are on the correct network and the contract address is correct" + ); + } + let a = await this.sendTransactionByFunction(e, t, n); + this.emitTransactionEvent("submitted", a.hash); + let i; + try { + i = await a.wait(); + } catch (s) { + try { + await this.writeContract.callStatic[e]( + ...t, + ...(n.value ? [{ value: n.value }] : []) + ); + } catch (c) { + throw await this.formatError(c, e, t, n); + } + throw await this.formatError(s, e, t, n); + } + return this.emitTransactionEvent("completed", a.hash), i; + } + } + async sendTransactionByFunction(e, t, n) { + let a = this.writeContract.functions[e]; + if (!a) throw new Error(`invalid function: "${e.toString()}"`); + if (!n.gasLimit) + try { + n.gasLimit = await this.writeContract.estimateGas[e](...t, n); + } catch { + try { + await this.writeContract.callStatic[e]( + ...t, + ...(n.value ? [{ value: n.value }] : []) + ); + } catch (s) { + throw await this.formatError(s, e, t, n); + } + } + try { + return await a(...t, n); + } catch (i) { + let s = await (n.from || this.getSignerAddress()), + c = await (n.value ? n.value : 0), + l = await this.getProvider().getBalance(s); + throw l.eq(0) || (c && l.lt(c)) + ? await this.formatError( + new Error( + "You have insufficient funds in your account to execute this transaction." + ), + e, + t, + n + ) + : await this.formatError(i, e, t, n); + } + } + async formatError(e, t, n, a) { + let i = this.getProvider(), + s = await i.getNetwork(), + c = await (a.from || this.getSignerAddress()), + l = this.readContract.address, + d = this.readContract.interface.encodeFunctionData(t, n), + m = ie.BigNumber.from(a.value || 0), + w = i.connection?.url, + C = this.readContract.interface.getFunction(t), + I = n.map((V) => + JSON.stringify(V).length <= 80 + ? JSON.stringify(V) + : JSON.stringify(V, void 0, 2) + ), + k = + I.join(", ").length <= 80 + ? I.join(", ") + : ` +` + + I.map( + (V) => + " " + + V.split(` `).join(` - `)).join(`, -`)+` -`,L=`${E.name}(${A})`,q=e.transactionHash||e.transaction?.hash||e.receipt?.transactionHash,U=Oje(e),j,H;try{let G=await Rv(this.readContract.address,this.getProvider(),F9(this,q9));G.name&&(H=G.name),G.metadata.sources&&(j=await YG(G,F9(this,q9)))}catch{}return new K9({reason:U,from:c,to:l,method:L,data:d,network:s,rpcUrl:w,value:f,hash:q,contractName:H,sources:j})}async sendGaslessTransaction(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0,a=this.getSigner();mr.default(a,"Cannot execute gasless transaction without valid signer");let i=await this.getChainID(),s=await this.getSignerAddress(),c=this.writeContract.address,l=n?.value||0;if(se.BigNumber.from(l).gt(0))throw new Error("Cannot send native token value with gasless transaction");let d=this.writeContract.interface.encodeFunctionData(e,t),f=se.BigNumber.from(0);try{f=(await this.readContract.estimateGas[e](...t)).mul(2)}catch{}f.lt(1e5)&&(f=se.BigNumber.from(5e5)),n.gasLimit&&se.BigNumber.from(n.gasLimit).gt(f)&&(f=se.BigNumber.from(n.gasLimit));let w={from:s,to:c,data:d,chainId:i,gasLimit:f,functionName:e.toString(),functionArgs:t,callOverrides:n};return await this.defaultGaslessSendFunction(w)}async signTypedData(e,t,n,a){this.emit(Y.EventType.Signature,{status:"submitted",message:a,signature:""});let{signature:i}=await Q9(e,t,n,a);return this.emit(Y.EventType.Signature,{status:"completed",message:a,signature:i}),i}parseLogs(e,t){if(!t||t.length===0)return[];let n=this.writeContract.interface.getEventTopic(e);return t.filter(i=>i.topics.indexOf(n)>=0).map(i=>this.writeContract.interface.parseLog(i))}async defaultGaslessSendFunction(e){return this.options.gasless&&"biconomy"in this.options.gasless?this.biconomySendFunction(e):this.defenderSendFunction(e)}async biconomySendFunction(e){mr.default(this.options.gasless&&"biconomy"in this.options.gasless,"calling biconomySendFunction without biconomy");let t=this.getSigner(),n=this.getProvider();mr.default(t&&n,"signer and provider must be set");let a=new se.ethers.Contract(U9(e.chainId,"biconomyForwarder"),Xcr,n),i=0,s=await sWe(a,"getNonce",[e.from,i]),c={from:e.from,to:e.to,token:se.ethers.constants.AddressZero,txGas:e.gasLimit.toNumber(),tokenGasPrice:"0",batchId:i,batchNonce:s.toNumber(),deadline:Math.floor(Date.now()/1e3+(this.options?.gasless&&"biconomy"in this.options.gasless&&this.options.gasless.biconomy?.deadlineSeconds||3600)),data:e.data},l=se.ethers.utils.arrayify(se.ethers.utils.solidityKeccak256(["address","address","address","uint256","uint256","uint256","uint256","uint256","bytes32"],[c.from,c.to,c.token,c.txGas,c.tokenGasPrice,c.batchId,c.batchNonce,c.deadline,se.ethers.utils.keccak256(c.data)]));this.emit(Y.EventType.Signature,{status:"submitted",message:l,signature:""});let d=await t.signMessage(l);this.emit(Y.EventType.Signature,{status:"completed",message:l,signature:d});let f=await wV.default("https://api.biconomy.io/api/v2/meta-tx/native",{method:"POST",body:JSON.stringify({from:e.from,apiId:this.options.gasless.biconomy.apiId,params:[c,d],to:e.to,gasLimit:e.gasLimit.toHexString()}),headers:{"x-api-key":this.options.gasless.biconomy.apiKey,"Content-Type":"application/json;charset=utf-8"}});if(f.ok){let w=await f.json();if(!w.txHash)throw new Error(`relay transaction failed: ${w.log}`);return w.txHash}throw new Error(`relay transaction failed with status: ${f.status} (${f.statusText})`)}async defenderSendFunction(e){mr.default(this.options.gasless&&"openzeppelin"in this.options.gasless,"calling openzeppelin gasless transaction without openzeppelin config in the SDK options");let t=this.getSigner(),n=this.getProvider();mr.default(t,"provider is not set"),mr.default(n,"provider is not set");let a=this.options.gasless.openzeppelin.relayerForwarderAddress||(this.options.gasless.openzeppelin.useEOAForwarder?Cw[e.chainId].openzeppelinForwarderEOA:Cw[e.chainId].openzeppelinForwarder),i=new se.Contract(a,ecr.default,n),s=await sWe(i,"getNonce",[e.from]),c,l,d;this.options.gasless.experimentalChainlessSupport?(c={name:"GSNv2 Forwarder",version:"0.0.1",verifyingContract:a},l={ForwardRequest:Qcr},d={from:e.from,to:e.to,value:se.BigNumber.from(0).toString(),gas:se.BigNumber.from(e.gasLimit).toString(),nonce:se.BigNumber.from(s).toString(),data:e.data,chainid:se.BigNumber.from(e.chainId).toString()}):(c={name:"GSNv2 Forwarder",version:"0.0.1",chainId:e.chainId,verifyingContract:a},l={ForwardRequest:Kcr},d={from:e.from,to:e.to,value:se.BigNumber.from(0).toString(),gas:se.BigNumber.from(e.gasLimit).toString(),nonce:se.BigNumber.from(s).toString(),data:e.data});let f;if(this.emit(Y.EventType.Signature,{status:"submitted",message:d,signature:""}),e.functionName==="approve"&&e.functionArgs.length===2){let A=e.functionArgs[0],L=e.functionArgs[1],{message:q,signature:U}=await lur(t,this.writeContract.address,e.from,A,L),{r:j,s:H,v:G}=se.ethers.utils.splitSignature(U);d={to:this.readContract.address,owner:q.owner,spender:q.spender,value:se.BigNumber.from(q.value).toString(),nonce:se.BigNumber.from(q.nonce).toString(),deadline:se.BigNumber.from(q.deadline).toString(),r:j,s:H,v:G},f=U}else{let{signature:A}=await Q9(t,c,l,d);f=A}let w="forward";d?.owner&&(w="permit");let E=JSON.stringify({request:d,signature:f,forwarderAddress:a,type:w});this.emit(Y.EventType.Signature,{status:"completed",message:d,signature:f});let k=await wV.default(this.options.gasless.openzeppelin.relayerUrl,{method:"POST",body:E});if(k.ok){let A=await k.json();if(!A.result)throw new Error(`Relay transaction failed: ${A.message}`);return JSON.parse(A.result).txHash}throw new Error(`relay transaction failed with status: ${k.status} (${k.statusText})`)}};function qh(r){return r.toLowerCase()===hd||r.toLowerCase()===se.constants.AddressZero}function LG(r){return qh(r)?hd:r}async function cc(r,e,t){let n=await Lw(r,t);return se.utils.parseUnits(ue.AmountSchema.parse(e),n.decimals)}async function Lw(r,e){if(qh(e)){let t=await r.getNetwork(),n=W9(t.chainId);return{name:n.name,symbol:n.symbol,decimals:n.decimals}}else{let t=new se.Contract(e,tcr.default,r),[n,a,i]=await Promise.all([t.name(),t.symbol(),t.decimals()]);return{name:n,symbol:a,decimals:i}}}async function mp(r,e,t){let n=await Lw(r,e);return{...n,value:se.BigNumber.from(t),displayValue:se.utils.formatUnits(t,n.decimals)}}async function V0(r,e,t,n){if(qh(t))n.value=e;else{let a=r.getSigner(),i=r.getProvider(),s=new xs(a||i,t,ku.default,r.options),c=await r.getSignerAddress(),l=r.readContract.address;return(await s.readContract.allowance(c,l)).lt(e)&&await s.sendTransaction("approve",[l,e]),n}}async function qje(r,e,t,n,a){let i=r.getSigner(),s=r.getProvider(),c=new xs(i||s,e,ku.default,r.options),l=await r.getSignerAddress(),d=r.readContract.address,f=await c.readContract.allowance(l,d),w=se.BigNumber.from(t).mul(se.BigNumber.from(n)).div(se.ethers.utils.parseUnits("1",a));f.lt(w)&&await c.sendTransaction("approve",[d,f.add(w)])}async function pur(r,e,t){let n=r.getProvider(),a=new xs(n,e,ku.default,{}),i=await r.getSignerAddress(),s=r.readContract.address;return(await a.readContract.allowance(i,s)).gte(t)}async function Dje(r,e,t,n,a,i,s,c,l){let d=tm(t.maxClaimablePerWallet,a),f=[se.utils.hexZeroPad([0],32)],w=t.price,E=t.currencyAddress;try{if(!t.merkleRootHash.toString().startsWith(se.constants.AddressZero)){let q=await i7(r,t.merkleRootHash.toString(),await n(),i.getProvider(),s,l);if(q)f=q.proof,d=q.maxClaimable==="unlimited"?se.ethers.constants.MaxUint256:se.ethers.utils.parseUnits(q.maxClaimable,a),w=q.price===void 0||q.price==="unlimited"?se.ethers.constants.MaxUint256:await cc(i.getProvider(),q.price,q.currencyAddress||se.ethers.constants.AddressZero),E=q.currencyAddress||se.ethers.constants.AddressZero;else if(l===am.V1)throw new Error("No claim found for this address")}}catch(q){if(q?.message==="No claim found for this address")throw q;console.warn("failed to check claim condition merkle root hash, continuing anyways",q)}let k=await i.getCallOverrides()||{},A=w.toString()!==se.ethers.constants.MaxUint256.toString()?w:t.price,L=E!==se.ethers.constants.AddressZero?E:t.currencyAddress;return A.gt(0)&&(qh(L)?k.value=se.BigNumber.from(A).mul(e).div(se.ethers.utils.parseUnits("1",a)):c&&await qje(i,L,A,e,a)),{overrides:k,proofs:f,maxClaimable:d,price:A,currencyAddress:L,priceInProof:w,currencyAddressInProof:E}}async function hur(r,e,t){if(!e)return null;let n=e[r];if(n){let a=await t.downloadJSON(n);if(a.isShardedMerkleTree&&a.merkleRoot===r)return(await _u.fromUri(n,t))?.getAllEntries()||null;{let i=MG.parse(a);if(r===i.merkleRoot)return i.claims.map(s=>({address:s.address,maxClaimable:s.maxClaimable,price:s.price,currencyAddress:s.currencyAddress}))}}return null}async function i7(r,e,t,n,a,i){if(!t)return null;let s=t[e];if(s){let c=await a.downloadJSON(s);if(c.isShardedMerkleTree&&c.merkleRoot===e)return await(await _u.fromShardedMerkleTreeInfo(c,a)).getProof(r,n,i);let l=MG.parse(c);if(e===l.merkleRoot)return l.claims.find(d=>d.address.toLowerCase()===r.toLowerCase())||null}return null}async function Fje(r,e,t){if(r>=t.length)throw Error(`Index out of bounds - got index: ${r} with ${t.length} conditions`);let n=t[r].currencyMetadata.decimals,a=t[r].price,i=se.ethers.utils.formatUnits(a,n),s=E_.parse({...t[r],price:i,...e}),c=IG.parse({...s,price:a});return t.map((l,d)=>{let f;d===r?f=c:f=l;let w=se.ethers.utils.formatUnits(f.price,n);return{...f,price:w}})}async function fur(r,e,t,n,a){let i=[];return{inputsWithSnapshots:await Promise.all(r.map(async c=>{if(c.snapshot&&c.snapshot.length>0){let l=await jje(c.snapshot,e,t,n,a);i.push(l),c.merkleRootHash=l.merkleRoot}else c.merkleRootHash=se.utils.hexZeroPad([0],32);return c})),snapshotInfos:i}}function mur(r,e){let t=se.BigNumber.from(r),n=se.BigNumber.from(e);return t.eq(n)?0:t.gt(n)?1:-1}async function Uje(r,e,t,n,a){let{inputsWithSnapshots:i,snapshotInfos:s}=await fur(r,e,t,n,a),c=rje.parse(i),l=(await Promise.all(c.map(d=>yur(d,e,t,n)))).sort((d,f)=>mur(d.startTimestamp,f.startTimestamp));return{snapshotInfos:s,sortedConditions:l}}async function yur(r,e,t,n){let a=r.currencyAddress===se.constants.AddressZero?hd:r.currencyAddress,i=tm(r.maxClaimableSupply,e),s=tm(r.maxClaimablePerWallet,e),c;return r.metadata&&(typeof r.metadata=="string"?c=r.metadata:c=await n.upload(r.metadata)),{startTimestamp:r.startTime,maxClaimableSupply:i,supplyClaimed:0,maxClaimablePerWallet:s,pricePerToken:await cc(t,r.price,a),currency:a,merkleRoot:r.merkleRootHash.toString(),waitTimeInSecondsBetweenClaims:r.waitInSeconds||0,metadata:c}}function X9(r){return{startTimestamp:r.startTimestamp,maxClaimableSupply:r.maxClaimableSupply,supplyClaimed:r.supplyClaimed,merkleRoot:r.merkleRoot,pricePerToken:r.pricePerToken,currency:r.currency,quantityLimitPerTransaction:r.maxClaimablePerWallet,waitTimeInSecondsBetweenClaims:r.waitTimeInSecondsBetweenClaims||0}}function Y9(r){return{startTimestamp:r.startTimestamp,maxClaimableSupply:r.maxClaimableSupply,supplyClaimed:r.supplyClaimed,merkleRoot:r.merkleRoot,pricePerToken:r.pricePerToken,currency:r.currency,quantityLimitPerWallet:r.maxClaimablePerWallet,metadata:r.metadata||""}}function $9(r){return{startTimestamp:r.startTimestamp,maxClaimableSupply:r.maxClaimableSupply,supplyClaimed:r.supplyClaimed,merkleRoot:r.merkleRoot.toString(),pricePerToken:r.pricePerToken,currency:r.currency,maxClaimablePerWallet:r.quantityLimitPerTransaction,waitTimeInSecondsBetweenClaims:r.waitTimeInSecondsBetweenClaims}}function eP(r){return{startTimestamp:r.startTimestamp,maxClaimableSupply:r.maxClaimableSupply,supplyClaimed:r.supplyClaimed,merkleRoot:r.merkleRoot.toString(),pricePerToken:r.pricePerToken,currency:r.currency,maxClaimablePerWallet:r.quantityLimitPerWallet,waitTimeInSecondsBetweenClaims:0,metadata:r.metadata}}async function tP(r,e,t,n,a,i){let s=await mp(t,r.currency,r.pricePerToken),c=e_(r.maxClaimableSupply,e),l=e_(r.maxClaimablePerWallet,e),d=e_(se.BigNumber.from(r.maxClaimableSupply).sub(r.supplyClaimed),e),f=e_(r.supplyClaimed,e),w;return r.metadata&&(w=await a.downloadJSON(r.metadata)),IG.parse({startTime:r.startTimestamp,maxClaimableSupply:c,maxClaimablePerWallet:l,currentMintSupply:f,availableSupply:d,waitInSeconds:r.waitTimeInSecondsBetweenClaims?.toString(),price:se.BigNumber.from(r.pricePerToken),currency:r.currency,currencyAddress:r.currency,currencyMetadata:s,merkleRootHash:r.merkleRoot,snapshot:i?await hur(r.merkleRoot,n,a):void 0,metadata:w})}function e_(r,e){return r.toString()===se.ethers.constants.MaxUint256.toString()?"unlimited":se.ethers.utils.formatUnits(r,e)}function tm(r,e){return r==="unlimited"?se.ethers.constants.MaxUint256:se.ethers.utils.parseUnits(r,e)}async function Wje(r,e,t,n,a){let i={},s=n||hd,l=(await cc(r.getProvider(),e,s)).mul(t);return l.gt(0)&&(s===hd?i={value:l}:s!==hd&&a&&await qje(r,s,l,t,0)),i}var gur=2,am;(function(r){r[r.V1=1]="V1",r[r.V2=2]="V2"})(am||(am={}));var _u=class{constructor(e,t,n,a,i){ue._defineProperty(this,"shardNybbles",void 0),ue._defineProperty(this,"shards",void 0),ue._defineProperty(this,"trees",void 0),ue._defineProperty(this,"storage",void 0),ue._defineProperty(this,"baseUri",void 0),ue._defineProperty(this,"originalEntriesUri",void 0),ue._defineProperty(this,"tokenDecimals",void 0),this.storage=e,this.shardNybbles=a,this.baseUri=t,this.originalEntriesUri=n,this.tokenDecimals=i,this.shards={},this.trees={}}static async fromUri(e,t){try{let n=await t.downloadJSON(e);if(n.isShardedMerkleTree)return _u.fromShardedMerkleTreeInfo(n,t)}catch{return}}static async fromShardedMerkleTreeInfo(e,t){return new _u(t,e.baseUri,e.originalEntriesUri,e.shardNybbles,e.tokenDecimals)}static hashEntry(e,t,n,a){switch(a){case am.V1:return se.utils.solidityKeccak256(["address","uint256"],[e.address,tm(e.maxClaimable,t)]);case am.V2:return se.utils.solidityKeccak256(["address","uint256","uint256","address"],[e.address,tm(e.maxClaimable,t),tm(e.price||"unlimited",n),e.currencyAddress||se.ethers.constants.AddressZero])}}static async fetchAndCacheDecimals(e,t,n){if(!n)return 18;let a=e[n];return a===void 0&&(a=(await Lw(t,n)).decimals,e[n]=a),a}static async buildAndUpload(e,t,n,a,i){let s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:gur,c=C_.parse(e),l={};for(let H of c){let G=H.address.slice(2,2+s).toLowerCase();l[G]===void 0&&(l[G]=[]),l[G].push(H)}let d={},f=await Promise.all(Object.entries(l).map(async H=>{let[G,te]=H;return[G,new yV.MerkleTree(await Promise.all(te.map(async K=>{let ae=await _u.fetchAndCacheDecimals(d,n,K.currencyAddress);return _u.hashEntry(K,t,ae,i)})),se.utils.keccak256,{sort:!0}).getHexRoot()]})),w=Object.fromEntries(f),E=new yV.MerkleTree(Object.values(w),se.utils.keccak256,{sort:!0}),k=[];for(let[H,G]of Object.entries(l)){let te={proofs:E.getProof(w[H]).map(K=>"0x"+K.data.toString("hex")),entries:G};k.push({data:JSON.stringify(te),name:`${H}.json`})}let A=await a.uploadBatch(k),L=A[0].slice(0,A[0].lastIndexOf("/")),q=await a.upload(c),U={merkleRoot:E.getHexRoot(),baseUri:L,originalEntriesUri:q,shardNybbles:s,tokenDecimals:t,isShardedMerkleTree:!0},j=await a.upload(U);return{shardedMerkleInfo:U,uri:j}}async getProof(e,t,n){let a=e.slice(2,2+this.shardNybbles).toLowerCase(),i=this.shards[a],s={};if(i===void 0)try{i=this.shards[a]=await this.storage.downloadJSON(`${this.baseUri}/${a}.json`);let w=await Promise.all(i.entries.map(async E=>{let k=await _u.fetchAndCacheDecimals(s,t,E.currencyAddress);return _u.hashEntry(E,this.tokenDecimals,k,n)}));this.trees[a]=new yV.MerkleTree(w,se.utils.keccak256,{sort:!0})}catch{return console.warn("No merkle entry found for address",e),null}let c=i.entries.find(w=>w.address.toLowerCase()===e.toLowerCase());if(!c)return null;let l=await _u.fetchAndCacheDecimals(s,t,c.currencyAddress),d=_u.hashEntry(c,this.tokenDecimals,l,n),f=this.trees[a].getProof(d).map(w=>"0x"+w.data.toString("hex"));return AG.parse({...c,proof:f.concat(i.proofs)})}async getAllEntries(){try{return await this.storage.downloadJSON(this.originalEntriesUri)}catch(e){return console.warn("Could not fetch original snapshot entries",e),[]}}};async function jje(r,e,t,n,a){let i=C_.parse(r),s=i.map(d=>d.address);if(new Set(s).sizet.readContract.getRoleMember(n,i)))}throw new Error("Contract does not support enumerating roles. Please implement IPermissionsEnumerable to unlock this functionality.")}async setAll(e){let t=Object.keys(e);mr.default(t.length,"you must provide at least one role to set"),mr.default(t.every(s=>this.roles.includes(s)),"this contract does not support the given role");let n=await this.getAll(),a=[],i=t.sort(s=>s==="admin"?1:-1);for(let s=0;s!d.includes(E)),w=d.filter(E=>!l.includes(E));if(f.length&&f.forEach(E=>{a.push(this.contractWrapper.readContract.interface.encodeFunctionData("grantRole",[xw(c),E]))}),w.length)for(let E=0;E{if(!(await this.get(n)).map(i=>i.toLowerCase()).includes(t.toLowerCase()))throw new G9(t,n)}))}async grant(e,t){return mr.default(this.roles.includes(e),`this contract does not support the "${e}" role`),{receipt:await this.contractWrapper.sendTransaction("grantRole",[xw(e),t])}}async revoke(e,t){mr.default(this.roles.includes(e),`this contract does not support the "${e}" role`);let n=await this.getRevokeRoleFunctionName(t);return{receipt:await this.contractWrapper.sendTransaction(n,[xw(e),t])}}async getRevokeRoleFunctionName(e){return(await this.contractWrapper.getSignerAddress()).toLowerCase()===e.toLowerCase()?"renounceRole":"revokeRole"}},uP=class{constructor(e,t){ue._defineProperty(this,"featureName",rP.name),ue._defineProperty(this,"contractWrapper",void 0),ue._defineProperty(this,"metadata",void 0),this.contractWrapper=e,this.metadata=t}async getDefaultRoyaltyInfo(){let[e,t]=await this.contractWrapper.readContract.getDefaultRoyaltyInfo();return fo.parse({fee_recipient:e,seller_fee_basis_points:t})}async getTokenRoyaltyInfo(e){let[t,n]=await this.contractWrapper.readContract.getRoyaltyInfoForToken(e);return fo.parse({fee_recipient:t,seller_fee_basis_points:n})}async setDefaultRoyaltyInfo(e){let t=await this.metadata.get(),n=this.metadata.parseInputMetadata({...t,...e}),a=await this.metadata._parseAndUploadMetadata(n);if(oc("setContractURI",this.contractWrapper)){let i=[this.contractWrapper.readContract.interface.encodeFunctionData("setDefaultRoyaltyInfo",[n.fee_recipient,n.seller_fee_basis_points]),this.contractWrapper.readContract.interface.encodeFunctionData("setContractURI",[a])];return{receipt:await this.contractWrapper.multiCall(i),data:()=>this.getDefaultRoyaltyInfo()}}else throw new Error("Updating royalties requires implementing ContractMetadata in your contract to support marketplaces like OpenSea.")}async setTokenRoyaltyInfo(e,t){return{receipt:await this.contractWrapper.sendTransaction("setRoyaltyInfoForToken",[e,t.fee_recipient,t.seller_fee_basis_points]),data:()=>this.getDefaultRoyaltyInfo()}}},lP=class{constructor(e){ue._defineProperty(this,"featureName",nP.name),ue._defineProperty(this,"contractWrapper",void 0),this.contractWrapper=e}async getRecipient(){return await this.contractWrapper.readContract.primarySaleRecipient()}async setRecipient(e){return{receipt:await this.contractWrapper.sendTransaction("setPrimarySaleRecipient",[e])}}},qG={name:"Failed to load NFT metadata"};async function DG(r,e,t){let n=e.replace("{id}",se.ethers.utils.hexZeroPad(se.BigNumber.from(r).toHexString(),32).slice(2)),a;try{a=await t.downloadJSON(n)}catch{let s=e.replace("{id}",se.BigNumber.from(r).toString());try{a=await t.downloadJSON(s)}catch{console.warn(`failed to get token metadata: ${JSON.stringify({tokenId:r.toString(),tokenUri:e})} -- falling back to default metadata`),a=qG}}return ue.CommonNFTOutput.parse({...a,id:se.BigNumber.from(r).toString(),uri:e})}async function s7(r,e,t,n){let a,i=new se.Contract(r,t7.default,e),s=await i.supportsInterface(T_),c=await i.supportsInterface(__);if(s)a=await new se.Contract(r,ncr.default,e).tokenURI(t);else if(c)a=await new se.Contract(r,acr.default,e).uri(t);else throw Error("Contract must implement ERC 1155 or ERC 721.");if(!a)throw new Ew;return DG(t,a,n)}async function FG(r,e){return typeof r=="string"?r:await e.upload(ue.CommonNFTInput.parse(r))}async function Pv(r,e,t,n){if(vur(r))return r;if(bur(r))return await e.uploadBatch(r.map(i=>ue.CommonNFTInput.parse(i)),{rewriteFileNames:{fileStartNumber:t||0},onProgress:n?.onProgress});throw new Error("NFT metadatas must all be of the same type (all URI or all NFTMetadataInput)")}function Tw(r){let e=r[0].substring(0,r[0].lastIndexOf("/"));for(let t=0;ttypeof e!="string")===void 0}function bur(r){return r.find(e=>typeof e!="object")===void 0}var o_=class{constructor(e,t,n,a){ue._defineProperty(this,"featureName",void 0),ue._defineProperty(this,"contractWrapper",void 0),ue._defineProperty(this,"storage",void 0),ue._defineProperty(this,"nextTokenIdToMintFn",void 0),this.featureName=n,this.nextTokenIdToMintFn=a,this.contractWrapper=e,this.storage=t}async createDelayedRevealBatch(e,t,n,a){if(!n)throw new Error("Password is required");let i=await this.storage.uploadBatch([ue.CommonNFTInput.parse(e)],{rewriteFileNames:{fileStartNumber:0}}),s=Tw(i),c=await this.nextTokenIdToMintFn(),l=await this.storage.uploadBatch(t.map(G=>ue.CommonNFTInput.parse(G)),{onProgress:a?.onProgress,rewriteFileNames:{fileStartNumber:c.toNumber()}}),d=Tw(l),f=await this.contractWrapper.readContract.getBaseURICount(),w=await this.hashDelayRevealPasword(f,n),E=await this.contractWrapper.readContract.encryptDecrypt(se.ethers.utils.toUtf8Bytes(d),w),k;if(await this.isLegacyContract())k=E;else{let G=await this.contractWrapper.getChainID(),te=se.ethers.utils.solidityKeccak256(["bytes","bytes","uint256"],[se.ethers.utils.toUtf8Bytes(d),w,G]);k=se.ethers.utils.defaultAbiCoder.encode(["bytes","bytes32"],[E,te])}let L=await this.contractWrapper.sendTransaction("lazyMint",[l.length,s.endsWith("/")?s:`${s}/`,k]),q=this.contractWrapper.parseLogs("TokensLazyMinted",L?.logs),U=q[0].args.startTokenId,j=q[0].args.endTokenId,H=[];for(let G=U;G.lte(j);G=G.add(1))H.push({id:G,receipt:L});return H}async reveal(e,t){if(!t)throw new Error("Password is required");let n=await this.hashDelayRevealPasword(e,t);try{let a=await this.contractWrapper.callStatic().reveal(e,n);if(!a.includes("://")||!a.endsWith("/"))throw new Error("invalid password")}catch{throw new Error("invalid password")}return{receipt:await this.contractWrapper.sendTransaction("reveal",[e,n])}}async getBatchesToReveal(){let e=await this.contractWrapper.readContract.getBaseURICount();if(e.isZero())return[];let t=Array.from(Array(e.toNumber()).keys()),n=await Promise.all(t.map(d=>{if(oc("getBatchIdAtIndex",this.contractWrapper))return this.contractWrapper.readContract.getBatchIdAtIndex(d);if(oc("baseURIIndices",this.contractWrapper))return this.contractWrapper.readContract.baseURIIndices(d);throw new Error("Contract does not have getBatchIdAtIndex or baseURIIndices.")})),a=n.slice(0,n.length-1),i=await Promise.all(Array.from([0,...a]).map(d=>this.getNftMetadata(d.toString()))),s=await this.isLegacyContract(),l=(await Promise.all(Array.from([...n]).map(d=>s?this.getLegacyEncryptedData(d):this.contractWrapper.readContract.encryptedData(d)))).map(d=>se.ethers.utils.hexDataLength(d)>0?s?d:se.ethers.utils.defaultAbiCoder.decode(["bytes","bytes32"],d)[0]:d);return i.map((d,f)=>({batchId:se.BigNumber.from(f),batchUri:d.uri,placeholderMetadata:d})).filter((d,f)=>se.ethers.utils.hexDataLength(l[f])>0)}async hashDelayRevealPasword(e,t){let n=await this.contractWrapper.getChainID(),a=this.contractWrapper.readContract.address;return se.ethers.utils.solidityKeccak256(["string","uint256","uint256","address"],[t,n,e,a])}async getNftMetadata(e){return s7(this.contractWrapper.readContract.address,this.contractWrapper.getProvider(),e,this.storage)}async isLegacyContract(){if(oc("contractVersion",this.contractWrapper))try{return await this.contractWrapper.readContract.contractVersion()<=2}catch{return!1}return!1}async getLegacyEncryptedData(e){let n=await new se.ethers.Contract(this.contractWrapper.readContract.address,icr.default,this.contractWrapper.getProvider()).functions.encryptedBaseURI(e);return n.length>0?n[0]:"0x"}},lWe={name:"ERC20ClaimConditionsV1",namespace:"token.drop.claim",docLinks:{sdk:"sdk.erc20dclaimable",contracts:"DropSinglePhase_V1"},abis:[ku.default,LWe.default],features:{}},c_={name:"ERC20ClaimConditionsV2",namespace:"token.drop.claim",docLinks:{sdk:"sdk.erc20dclaimable",contracts:"DropSinglePhase"},abis:[ku.default,OWe.default],features:{}},dWe={name:"ERC20ClaimPhasesV2",namespace:"token.drop.claim",docLinks:{sdk:"sdk.erc20dclaimable",contracts:"Drop"},abis:[ku.default,NWe.default],features:{}},pWe={name:"ERC20ClaimPhasesV1",namespace:"token.drop.claim",docLinks:{sdk:"sdk.erc20dclaimable",contracts:"Drop"},abis:[_or.default],features:{}},u_={name:"ERC20Burnable",namespace:"token.burn",docLinks:{sdk:"sdk.erc20burnable",contracts:"IBurnableERC20"},abis:[ku.default,Tor.default],features:{}},dP={name:"ERC20SignatureMintable",namespace:"token.signature",docLinks:{sdk:"sdk.erc20signaturemintable",contracts:"ISignatureMintERC20"},abis:[ku.default,Cor.default],features:{}},pP={name:"ERC20BatchMintable",namespace:"token.mint.batch",docLinks:{sdk:"sdk.erc20batchmintable",contracts:"IMulticall"},abis:[ku.default,BWe.default,TG.default],features:{}},l_={name:"ERC20Mintable",namespace:"token.mint",docLinks:{sdk:"sdk.erc20mintable",contracts:"IMintableERC20"},abis:[ku.default,BWe.default],features:{[pP.name]:pP}},hP={name:"ERC20",namespace:"token",docLinks:{sdk:"sdk.erc20",contracts:"IERC20"},abis:[ku.default],features:{[u_.name]:u_,[l_.name]:l_,[lWe.name]:lWe,[c_.name]:c_,[pWe.name]:pWe,[dWe.name]:dWe,[dP.name]:dP}},fP={name:"ERC721Burnable",namespace:"nft.burn",docLinks:{sdk:"sdk.erc721burnable",contracts:"IBurnableERC721"},abis:[mo.default,Eor.default],features:{}},d_={name:"ERC721Revealable",namespace:"nft.drop.revealer",docLinks:{sdk:"sdk.delayedreveal",contracts:"DelayedReveal"},abis:[mo.default,yd.default,qWe.default],features:{}},mP={name:"ERC721TieredDrop",namespace:"nft.tieredDrop",docLinks:{sdk:"sdk.erc721tiereddrop",contracts:"TieredDrop"},abis:[mo.default,Ror.default],features:{}},hWe={name:"ERC721ClaimConditionsV1",namespace:"nft.drop.claim",docLinks:{sdk:"sdk.erc721claimable",contracts:"DropSinglePhase_V1"},abis:[mo.default,yd.default,LWe.default],features:{}},yP={name:"ERC721ClaimConditionsV2",namespace:"nft.drop.claim",docLinks:{sdk:"sdk.erc721claimable",contracts:"DropSinglePhase"},abis:[mo.default,yd.default,OWe.default],features:{}},fWe={name:"ERC721ClaimPhasesV1",namespace:"nft.drop.claim",docLinks:{sdk:"sdk.erc721claimable",contracts:"Drop"},abis:[Sor.default],features:{}},mWe={name:"ERC721ClaimPhasesV2",namespace:"nft.drop.claim",docLinks:{sdk:"sdk.erc721claimable",contracts:"Drop"},abis:[mo.default,yd.default,NWe.default],features:{}},p_={name:"ERC721ClaimCustom",namespace:"nft.drop.claim",docLinks:{sdk:"sdk.erc721claimable",contracts:"IClaimableERC721"},abis:[mo.default,yd.default,kor.default],features:{}},gP={name:"ERC721LazyMintable",namespace:"nft.drop",docLinks:{sdk:"sdk.erc721lazymintable",contracts:"LazyMint"},abis:[mo.default,yd.default],features:{[d_.name]:d_,[p_.name]:p_,[hWe.name]:hWe,[yP.name]:yP,[fWe.name]:fWe,[mWe.name]:mWe}},vP={name:"ERC721BatchMintable",namespace:"nft.mint.batch",docLinks:{sdk:"sdk.erc721batchmintable",contracts:"IMulticall"},abis:[mo.default,DWe.default,TG.default],features:{}},h_={name:"ERC721Mintable",namespace:"nft.mint",docLinks:{sdk:"sdk.erc721mintable",contracts:"IMintableERC721"},abis:[mo.default,DWe.default],features:{[vP.name]:vP}},bP={name:"ERC721SignatureMintV2",namespace:"nft.signature",docLinks:{sdk:"sdk.erc721signaturemint",contracts:"ISignatureMintERC721"},abis:[mo.default,Ior.default],features:{}},yWe={name:"ERC721SignatureMintV1",namespace:"nft.signature",docLinks:{sdk:"sdk.erc721signaturemint",contracts:"ISignatureMintERC721"},abis:[Por.default],features:{}},VV={name:"ERC721Enumerable",namespace:"nft.query.owned",docLinks:{sdk:"sdk.erc721enumerable",contracts:"IERC721Enumerable"},abis:[mo.default,Aor.default],features:{}},_w={name:"ERC721Supply",namespace:"nft.query",docLinks:{sdk:"sdk.erc721supply",contracts:"IERC721Supply"},abis:[mo.default,Mor.default],features:{[VV.name]:VV}},wP={name:"ERC721",namespace:"nft",docLinks:{sdk:"sdk.erc721",contracts:"IERC721"},abis:[mo.default],features:{[fP.name]:fP,[_w.name]:_w,[h_.name]:h_,[gP.name]:gP,[yWe.name]:yWe,[bP.name]:bP,[mP.name]:mP}},Ev={name:"ERC1155Burnable",namespace:"edition.burn",docLinks:{sdk:"sdk.erc1155burnable",contracts:"IBurnableERC1155"},abis:[zc.default,Nor.default],features:{}},gWe={name:"ERC1155ClaimConditionsV1",namespace:"edition.drop.claim",docLinks:{sdk:"sdk.erc1155claimable",contracts:"DropSinglePhase1155"},abis:[zc.default,yd.default,qor.default],features:{}},xP={name:"ERC1155ClaimConditionsV2",namespace:"edition.drop.claim",docLinks:{sdk:"sdk.erc1155claimable",contracts:"DropSinglePhase1155"},abis:[zc.default,yd.default,Bor.default],features:{}},vWe={name:"ERC1155ClaimPhasesV2",namespace:"edition.drop.claim",docLinks:{sdk:"sdk.erc1155claimable",contracts:"Drop1155"},abis:[zc.default,yd.default,Lor.default],features:{}},bWe={name:"ERC1155ClaimPhasesV1",namespace:"edition.drop.claim",docLinks:{sdk:"sdk.erc1155claimable",contracts:"Drop1155"},abis:[FWe.default],features:{}},f_={name:"ERC1155ClaimCustom",namespace:"edition.drop.claim",docLinks:{sdk:"sdk.erc1155claimable",contracts:"IClaimableERC1155"},abis:[zc.default,yd.default,Oor.default],features:{}},Sw={name:"ERC1155Revealable",namespace:"edition.drop.revealer",docLinks:{sdk:"sdk.drop.delayedreveal",contracts:"DelayedReveal"},abis:[zc.default,yd.default,qWe.default],features:{}},TP={name:"ERC1155LazyMintableV2",namespace:"edition.drop",docLinks:{sdk:"sdk.erc1155droppable",contracts:"LazyMint"},abis:[zc.default,yd.default],features:{[Sw.name]:Sw,[f_.name]:f_,[gWe.name]:gWe,[xP.name]:xP,[vWe.name]:vWe}},wWe={name:"ERC1155LazyMintableV1",namespace:"edition.drop",docLinks:{sdk:"sdk.erc1155droppable",contracts:"LazyMint"},abis:[FWe.default],features:{[bWe.name]:bWe}},_P={name:"ERC1155SignatureMintable",namespace:"edition.signature",docLinks:{sdk:"sdk.erc1155signaturemintable",contracts:"ISignatureMintERC1155"},abis:[zc.default,For.default],features:{}},CP={name:"ERC1155BatchMintable",namespace:"edition.mint.batch",docLinks:{sdk:"sdk.erc1155batchmintable",contracts:"IMulticall"},abis:[zc.default,UWe.default,TG.default],features:{}},kv={name:"ERC1155Mintable",namespace:"edition.mint",docLinks:{sdk:"sdk.erc1155mintable",contracts:"IMintableERC1155"},abis:[zc.default,UWe.default],features:{[CP.name]:CP}},Sv={name:"ERC1155Enumerable",namespace:"edition.query",docLinks:{sdk:"sdk.erc1155",contracts:"IERC1155"},abis:[zc.default,Dor.default],features:{}},EP={name:"ERC1155",namespace:"edition",docLinks:{sdk:"sdk.erc1155enumerable",contracts:"IERC1155Enumerable"},abis:[zc.default],features:{[Ev.name]:Ev,[Sv.name]:Sv,[kv.name]:kv,[wWe.name]:wWe,[TP.name]:TP,[Sw.name]:Sw,[_P.name]:_P}},wur={[hP.name]:hP,[wP.name]:wP,[EP.name]:EP,[rP.name]:rP,[aP.name]:aP,[nP.name]:nP,[iP.name]:iP,[sP.name]:sP,[UV.name]:UV,[oP.name]:oP,[cWe.name]:cWe,[WV.name]:WV,[uWe.name]:uWe,[jV.name]:jV,[zV.name]:zV,[HV.name]:HV},GV;try{GV=new TextDecoder}catch{}var Nt,Av,mt=0,xur=105,Tur=57342,_ur=57343,xWe=57337,TWe=6,bw={},vn={},ji,kP,SP=0,m_=0,ws,fp,Ni=[],ZV=[],Eu,Wc,t_,_We={useRecords:!1,mapsAsObjects:!0},JV=!1,Aw=class{constructor(e){if(e&&((e.keyMap||e._keyMap)&&!e.useRecords&&(e.useRecords=!1,e.mapsAsObjects=!0),e.useRecords===!1&&e.mapsAsObjects===void 0&&(e.mapsAsObjects=!0),e.getStructures&&(e.getShared=e.getStructures),e.getShared&&!e.structures&&((e.structures=[]).uninitialized=!0),e.keyMap)){this.mapKey=new Map;for(let[t,n]of Object.entries(e.keyMap))this.mapKey.set(n,t)}Object.assign(this,e)}decodeKey(e){return this.keyMap&&this.mapKey.get(e)||e}decode(e,t){if(Nt)return Zje(()=>(Jje(),this?this.decode(e,t):Aw.prototype.decode.call(_We,e,t)));Av=t>-1?t:e.length,mt=0,m_=0,kP=null,ws=null,Nt=e;try{Wc=e.dataView||(e.dataView=new DataView(e.buffer,e.byteOffset,e.byteLength))}catch(n){throw Nt=null,e instanceof Uint8Array?n:new Error("Source must be a Uint8Array or Buffer but was a "+(e&&typeof e=="object"?e.constructor.name:typeof e))}if(this instanceof Aw){if(vn=this,Eu=this.sharedValues&&(this.pack?new Array(this.maxPrivatePackedValues||16).concat(this.sharedValues):this.sharedValues),this.structures)return ji=this.structures,CWe();(!ji||ji.length>0)&&(ji=[])}else vn=_We,(!ji||ji.length>0)&&(ji=[]),Eu=null;return CWe()}};function CWe(){try{let r=Bn();if(ws){if(mt>=ws.postBundlePosition){let e=new Error("Unexpected bundle position");throw e.incomplete=!0,e}mt=ws.postBundlePosition,ws=null}if(mt==Av)ji=null,Nt=null,fp&&(fp=null);else if(mt>Av){let e=new Error("Unexpected end of CBOR data");throw e.incomplete=!0,e}else if(!JV)throw new Error("Data read, but end of buffer not reached");return r}catch(r){throw Jje(),(r instanceof RangeError||r.message.startsWith("Unexpected end of buffer"))&&(r.incomplete=!0),r}}function Bn(){let r=Nt[mt++],e=r>>5;if(r=r&31,r>23)switch(r){case 24:r=Nt[mt++];break;case 25:if(e==7)return Sur();r=Wc.getUint16(mt),mt+=2;break;case 26:if(e==7){let t=Wc.getFloat32(mt);if(vn.useFloat32>2){let n=Kje[(Nt[mt]&127)<<1|Nt[mt+1]>>7];return mt+=4,(n*t+(t>0?.5:-.5)>>0)/n}return mt+=4,t}r=Wc.getUint32(mt),mt+=4;break;case 27:if(e==7){let t=Wc.getFloat64(mt);return mt+=8,t}if(e>1){if(Wc.getUint32(mt)>0)throw new Error("JavaScript does not support arrays, maps, or strings with length over 4294967295");r=Wc.getUint32(mt+4)}else vn.int64AsNumber?(r=Wc.getUint32(mt)*4294967296,r+=Wc.getUint32(mt+4)):r=Wc.getBigUint64(mt);mt+=8;break;case 31:switch(e){case 2:case 3:throw new Error("Indefinite length not supported for byte or text strings");case 4:let t=[],n,a=0;for(;(n=Bn())!=bw;)t[a++]=n;return e==4?t:e==3?t.join(""):P.Buffer.concat(t);case 5:let i;if(vn.mapsAsObjects){let s={};if(vn.keyMap)for(;(i=Bn())!=bw;)s[Mh(vn.decodeKey(i))]=Bn();else for(;(i=Bn())!=bw;)s[Mh(i)]=Bn();return s}else{t_&&(vn.mapsAsObjects=!0,t_=!1);let s=new Map;if(vn.keyMap)for(;(i=Bn())!=bw;)s.set(vn.decodeKey(i),Bn());else for(;(i=Bn())!=bw;)s.set(i,Bn());return s}case 7:return bw;default:throw new Error("Invalid major type for indefinite length "+e)}default:throw new Error("Unknown token "+r)}switch(e){case 0:return r;case 1:return~r;case 2:return kur(r);case 3:if(m_>=mt)return kP.slice(mt-SP,(mt+=r)-SP);if(m_==0&&Av<140&&r<32){let a=r<16?Hje(r):Eur(r);if(a!=null)return a}return Cur(r);case 4:let t=new Array(r);for(let a=0;a=xWe){let a=ji[r&8191];if(a)return a.read||(a.read=KV(a)),a.read();if(r<65536){if(r==_ur)return XV(Bn());if(r==Tur){let i=r_(),s=Bn();for(let c=2;c23)switch(t){case 24:t=Nt[mt++];break;case 25:t=Wc.getUint16(mt),mt+=2;break;case 26:t=Wc.getUint32(mt),mt+=4;break;default:throw new Error("Expected array header, but got "+Nt[mt-1])}let n=this.compiledReader;for(;n;){if(n.propertyCount===t)return n(Bn);n=n.next}if(this.slowReads++>=3){let i=this.length==t?this:this.slice(0,t);return n=vn.keyMap?new Function("r","return {"+i.map(s=>vn.decodeKey(s)).map(s=>EWe.test(s)?Mh(s)+":r()":"["+JSON.stringify(s)+"]:r()").join(",")+"}"):new Function("r","return {"+i.map(s=>EWe.test(s)?Mh(s)+":r()":"["+JSON.stringify(s)+"]:r()").join(",")+"}"),this.compiledReader&&(n.next=this.compiledReader),n.propertyCount=t,this.compiledReader=n,n(Bn)}let a={};if(vn.keyMap)for(let i=0;i64&&GV)return GV.decode(Nt.subarray(mt,mt+=r));let t=mt+r,n=[];for(e="";mt65535&&(l-=65536,n.push(l>>>10&1023|55296),l=56320|l&1023),n.push(l)}else n.push(a);n.length>=4096&&(e+=Zs.apply(String,n),n.length=0)}return n.length>0&&(e+=Zs.apply(String,n)),e}var Zs=String.fromCharCode;function Eur(r){let e=mt,t=new Array(r);for(let n=0;n0){mt=e;return}t[n]=a}return Zs.apply(String,t)}function Hje(r){if(r<4)if(r<2){if(r===0)return"";{let e=Nt[mt++];if((e&128)>1){mt-=1;return}return Zs(e)}}else{let e=Nt[mt++],t=Nt[mt++];if((e&128)>0||(t&128)>0){mt-=2;return}if(r<3)return Zs(e,t);let n=Nt[mt++];if((n&128)>0){mt-=3;return}return Zs(e,t,n)}else{let e=Nt[mt++],t=Nt[mt++],n=Nt[mt++],a=Nt[mt++];if((e&128)>0||(t&128)>0||(n&128)>0||(a&128)>0){mt-=4;return}if(r<6){if(r===4)return Zs(e,t,n,a);{let i=Nt[mt++];if((i&128)>0){mt-=5;return}return Zs(e,t,n,a,i)}}else if(r<8){let i=Nt[mt++],s=Nt[mt++];if((i&128)>0||(s&128)>0){mt-=6;return}if(r<7)return Zs(e,t,n,a,i,s);let c=Nt[mt++];if((c&128)>0){mt-=7;return}return Zs(e,t,n,a,i,s,c)}else{let i=Nt[mt++],s=Nt[mt++],c=Nt[mt++],l=Nt[mt++];if((i&128)>0||(s&128)>0||(c&128)>0||(l&128)>0){mt-=8;return}if(r<10){if(r===8)return Zs(e,t,n,a,i,s,c,l);{let d=Nt[mt++];if((d&128)>0){mt-=9;return}return Zs(e,t,n,a,i,s,c,l,d)}}else if(r<12){let d=Nt[mt++],f=Nt[mt++];if((d&128)>0||(f&128)>0){mt-=10;return}if(r<11)return Zs(e,t,n,a,i,s,c,l,d,f);let w=Nt[mt++];if((w&128)>0){mt-=11;return}return Zs(e,t,n,a,i,s,c,l,d,f,w)}else{let d=Nt[mt++],f=Nt[mt++],w=Nt[mt++],E=Nt[mt++];if((d&128)>0||(f&128)>0||(w&128)>0||(E&128)>0){mt-=12;return}if(r<14){if(r===12)return Zs(e,t,n,a,i,s,c,l,d,f,w,E);{let k=Nt[mt++];if((k&128)>0){mt-=13;return}return Zs(e,t,n,a,i,s,c,l,d,f,w,E,k)}}else{let k=Nt[mt++],A=Nt[mt++];if((k&128)>0||(A&128)>0){mt-=14;return}if(r<15)return Zs(e,t,n,a,i,s,c,l,d,f,w,E,k,A);let L=Nt[mt++];if((L&128)>0){mt-=15;return}return Zs(e,t,n,a,i,s,c,l,d,f,w,E,k,A,L)}}}}}function kur(r){return vn.copyBuffers?Uint8Array.prototype.slice.call(Nt,mt,mt+=r):Nt.subarray(mt,mt+=r)}var Vje=new Float32Array(1),D9=new Uint8Array(Vje.buffer,0,4);function Sur(){let r=Nt[mt++],e=Nt[mt++],t=(r&127)>>2;if(t===31)return e||r&3?NaN:r&128?-1/0:1/0;if(t===0){let n=((r&3)<<8|e)/16777216;return r&128?-n:n}return D9[3]=r&128|(t>>1)+56,D9[2]=(r&7)<<5|e>>3,D9[1]=e<<5,D9[0]=0,Vje[0]}var Mw=class{constructor(e,t){this.value=e,this.tag=t}};Ni[0]=r=>new Date(r);Ni[1]=r=>new Date(Math.round(r*1e3));Ni[2]=r=>{let e=BigInt(0);for(let t=0,n=r.byteLength;tBigInt(-1)-Ni[2](r);Ni[4]=r=>Number(r[1]+"e"+r[0]);Ni[5]=r=>r[1]*Math.exp(r[0]*Math.log(2));var XV=r=>{let e=r[0]-57344,t=r[1],n=ji[e];n&&n.isShared&&((ji.restoreStructures||(ji.restoreStructures=[]))[e]=n),ji[e]=t,t.read=KV(t);let a={};if(vn.keyMap)for(let i=2,s=r.length;iws?ws[0].slice(ws.position0,ws.position0+=r):new Mw(r,14);Ni[15]=r=>ws?ws[1].slice(ws.position1,ws.position1+=r):new Mw(r,15);var Aur={Error,RegExp};Ni[27]=r=>(Aur[r[0]]||Error)(r[1],r[2]);var Gje=r=>{if(Nt[mt++]!=132)throw new Error("Packed values structure must be followed by a 4 element array");let e=r();return Eu=Eu?e.concat(Eu.slice(e.length)):e,Eu.prefixes=r(),Eu.suffixes=r(),r()};Gje.handlesRead=!0;Ni[51]=Gje;Ni[TWe]=r=>{if(!Eu)if(vn.getShared)UG();else return new Mw(r,TWe);if(typeof r=="number")return Eu[16+(r>=0?2*r:-2*r-1)];throw new Error("No support for non-integer packed references yet")};Ni[25]=r=>stringRefs[r];Ni[256]=r=>{stringRefs=[];try{return r()}finally{stringRefs=null}};Ni[256].handlesRead=!0;Ni[28]=r=>{fp||(fp=new Map,fp.id=0);let e=fp.id++,t=Nt[mt],n;t>>5==4?n=[]:n={};let a={target:n};fp.set(e,a);let i=r();return a.used?Object.assign(n,i):(a.target=i,i)};Ni[28].handlesRead=!0;Ni[29]=r=>{let e=fp.get(r);return e.used=!0,e.target};Ni[258]=r=>new Set(r);(Ni[259]=r=>(vn.mapsAsObjects&&(vn.mapsAsObjects=!1,t_=!0),r())).handlesRead=!0;function ww(r,e){return typeof r=="string"?r+e:r instanceof Array?r.concat(e):Object.assign({},r,e)}function Cv(){if(!Eu)if(vn.getShared)UG();else throw new Error("No packed values available");return Eu}var Mur=1399353956;ZV.push((r,e)=>{if(r>=225&&r<=255)return ww(Cv().prefixes[r-224],e);if(r>=28704&&r<=32767)return ww(Cv().prefixes[r-28672],e);if(r>=1879052288&&r<=2147483647)return ww(Cv().prefixes[r-1879048192],e);if(r>=216&&r<=223)return ww(e,Cv().suffixes[r-216]);if(r>=27647&&r<=28671)return ww(e,Cv().suffixes[r-27639]);if(r>=1811940352&&r<=1879048191)return ww(e,Cv().suffixes[r-1811939328]);if(r==Mur)return{packedValues:Eu,structures:ji.slice(0),version:e};if(r==55799)return e});var Iur=new Uint8Array(new Uint16Array([1]).buffer)[0]==1,kWe=[Uint8Array],Pur=[64];for(let r=0;r{if(!r)throw new Error("Could not find typed array for code "+e);return new r(Uint8Array.prototype.slice.call(s,0).buffer)}:s=>{if(!r)throw new Error("Could not find typed array for code "+e);let c=new DataView(s.buffer,s.byteOffset,s.byteLength),l=s.length>>i,d=new r(l),f=c[t];for(let w=0;w23)switch(r){case 24:r=Nt[mt++];break;case 25:r=Wc.getUint16(mt),mt+=2;break;case 26:r=Wc.getUint32(mt),mt+=4;break}return r}function UG(){if(vn.getShared){let r=Zje(()=>(Nt=null,vn.getShared()))||{},e=r.structures||[];vn.sharedVersion=r.version,Eu=vn.sharedValues=r.packedValues,ji===!0?vn.structures=ji=e:ji.splice.apply(ji,[0,e.length].concat(e))}}function Zje(r){let e=Av,t=mt,n=SP,a=m_,i=kP,s=fp,c=ws,l=new Uint8Array(Nt.slice(0,Av)),d=ji,f=vn,w=JV,E=r();return Av=e,mt=t,SP=n,m_=a,kP=i,fp=s,ws=c,Nt=l,JV=w,ji=d,vn=f,Wc=new DataView(Nt.buffer,Nt.byteOffset,Nt.byteLength),E}function Jje(){Nt=null,fp=null,ji=null}var Kje=new Array(147);for(let r=0;r<256;r++)Kje[r]=Number("1e"+Math.floor(45.15-r*.30103));var Our=new Aw({useRecords:!1}),Lur=Our.decode;function Bur(r,e){return WG(r,e.abis)}function qur(r,e){return WG(r.abi,[e])}function WG(r,e){let t=Iw(r),n=e.flatMap(i=>Iw(i));return t.filter(i=>n.find(c=>c.name===i.name&&c.inputs.length===i.inputs.length&&c.inputs.every((l,d)=>l.type==="tuple"||l.type==="tuple[]"?l.type===i.inputs[d].type&&l.components?.every((f,w)=>f.type===i.inputs[d].components?.[w]?.type):l.type===i.inputs[d].type))!==void 0).length===n.length}async function Qje(r,e){let t=await Pw(r,e);return jG(t.abi)}async function Xje(r,e){let t=await Pw(r,e);return Iw(t.abi,t.metadata)}function Yje(r,e,t){return e?.output?.userdoc?.[t]?.[Object.keys(e?.output?.userdoc[t]||{}).find(n=>n.includes(r||"unknown"))||""]?.notice||e?.output?.devdoc?.[t]?.[Object.keys(e?.output?.devdoc[t]||{}).find(n=>n.includes(r||"unknown"))||""]?.details}function jG(r){for(let e of r)if(e.type==="constructor")return e.inputs||[];return[]}function $je(r,e){for(let t of r)if(t.type==="function"&&t.name===e)return t.inputs||[];return[]}function Iw(r,e){let t=(r||[]).filter(a=>a.type==="function"),n=[];for(let a of t){let i=Yje(a.name,e,"methods"),s=a.inputs?.map(w=>`${w.name||"key"}: ${YV(w)}`)?.join(", ")||"",c=s?`, ${s}`:"",l=a.outputs?.map(w=>YV(w,!0))?.join(", "),d=l?`: Promise<${l}>`:": Promise",f=`contract.call("${a.name}"${c})${d}`;n.push({inputs:a.inputs||[],outputs:a.outputs||[],name:a.name||"unknown",signature:f,stateMutability:a.stateMutability||"",comment:i})}return n}function eze(r,e){let t=(r||[]).filter(a=>a.type==="event"),n=[];for(let a of t){let i=Yje(a.name,e,"events");n.push({inputs:a.inputs||[],outputs:a.outputs||[],name:a.name||"unknown",comment:i})}return n}function YV(r){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,n=r.type,a=!1;return n.endsWith("[]")&&(a=!0,n=n.slice(0,-2)),n.startsWith("bytes")&&(n="BytesLike"),(n.startsWith("uint")||n.startsWith("int"))&&(n=e?"BigNumber":"BigNumberish"),n.startsWith("bool")&&(n="boolean"),n==="address"&&(n="string"),n==="tuple"&&r.components&&(n=`{ ${r.components.map(i=>YV(i,!1,!0)).join(", ")} }`),a&&(n+="[]"),t&&(n=`${r.name}: ${n}`),n}function tze(r){if(r.startsWith("0x363d3d373d3d3d363d73"))return`0x${r.slice(22,62)}`;if(r.startsWith("0x36603057343d5230"))return`0x${r.slice(122,162)}`;if(r.startsWith("0x3d3d3d3d363d3d37363d73"))return`0x${r.slice(24,64)}`;if(r.startsWith("0x366000600037611000600036600073"))return`0x${r.slice(32,72)}`}async function y_(r,e){let t=await e.getCode(r);if(t==="0x"){let n=await e.getNetwork();throw new Error(`Contract at ${r} does not exist on chain '${n.name}' (chainId: ${n.chainId})`)}try{let n=tze(t);if(n)return await y_(n,e)}catch{}try{let n=await e.getStorageAt(r,se.BigNumber.from("0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc")),a=se.ethers.utils.hexStripZeros(n);if(a!=="0x")return await y_(a,e)}catch{}return await rze(t)}function rze(r){let e=Dur(r),t=e[e.length-2]*256+e[e.length-1],n=Uint8Array.from(e.slice(e.length-2-t,-2)),a=Lur(n);if("ipfs"in a&&a.ipfs)try{return`ipfs://${dcr.default.encode(a.ipfs)}`}catch(i){console.warn("feature-detection ipfs cbor failed",i)}}function Dur(r){if(r=r.toString(16),r.startsWith("0x")||(r=`0x${r}`),!Fur(r))throw new Error(`Given value "${r}" is not a valid hex string.`);r=r.replace(/^0x/i,"");let e=[];for(let t=0;t1&&arguments[1]!==void 0?arguments[1]:wur,t={};for(let n in e){let a=e[n],i=Bur(r,a),s=k_(r,a.features);t[n]={...a,features:s,enabled:i}}return t}function VG(r,e){if(!!r)for(let t in r){let n=r[t];n.enabled&&e.push(n),VG(n.features,e)}}function Uur(r){let e=[];return VG(k_(r),e),e}function Wur(r){let e=[];return VG(k_(r),e),e.map(t=>t.name)}function GG(r,e){let t=k_(r);return nze(t,e)}function xr(r,e){if(!r)throw new nm(e);return r}function Dt(r,e){return GG(vp.parse(r.abi),e)}function nze(r,e){let t=Object.keys(r);if(!t.includes(e)){let a=!1;for(let i of t){let s=r[i];if(a=nze(s.features,e),a)break}return a}return r[e].enabled}function oc(r,e){return r in e.readContract.functions}Y.ListingType=void 0;(function(r){r[r.Direct=0]="Direct",r[r.Auction=1]="Auction"})(Y.ListingType||(Y.ListingType={}));Y.Status=void 0;(function(r){r[r.UNSET=0]="UNSET",r[r.Created=1]="Created",r[r.Completed=2]="Completed",r[r.Cancelled=3]="Cancelled",r[r.Active=4]="Active",r[r.Expired=5]="Expired"})(Y.Status||(Y.Status={}));Y.ProposalState=void 0;(function(r){r[r.Pending=0]="Pending",r[r.Active=1]="Active",r[r.Canceled=2]="Canceled",r[r.Defeated=3]="Defeated",r[r.Succeeded=4]="Succeeded",r[r.Queued=5]="Queued",r[r.Expired=6]="Expired",r[r.Executed=7]="Executed"})(Y.ProposalState||(Y.ProposalState={}));Y.VoteType=void 0;(function(r){r[r.Against=0]="Against",r[r.For=1]="For",r[r.Abstain=2]="Abstain"})(Y.VoteType||(Y.VoteType={}));Y.ClaimEligibility=void 0;(function(r){r.NotEnoughSupply="There is not enough supply to claim.",r.AddressNotAllowed="This address is not on the allowlist.",r.WaitBeforeNextClaimTransaction="Not enough time since last claim transaction. Please wait.",r.AlreadyClaimed="You have already claimed the token.",r.NotEnoughTokens="There are not enough tokens in the wallet to pay for the claim.",r.NoActiveClaimPhase="There is no active claim phase at the moment. Please check back in later.",r.NoClaimConditionSet="There is no claim condition set.",r.NoWallet="No wallet connected.",r.Unknown="No claim conditions found."})(Y.ClaimEligibility||(Y.ClaimEligibility={}));var g_=class{constructor(e){ue._defineProperty(this,"contractWrapper",void 0),this.contractWrapper=e}async gasCostOf(e,t){let n=await this.contractWrapper.getPreferredGasPrice(),a=await this.contractWrapper.estimateGas(e,t);return se.ethers.utils.formatEther(a.mul(n))}async gasLimitOf(e,t){return this.contractWrapper.estimateGas(e,t)}async currentGasPriceInGwei(){let e=await this.contractWrapper.getProvider().getGasPrice();return se.ethers.utils.formatUnits(e,"gwei")}},md=class{static make(e){return new md(e)}constructor(e){ue._defineProperty(this,"contractWrapper",void 0),ue._defineProperty(this,"functionName",void 0),ue._defineProperty(this,"args",void 0),ue._defineProperty(this,"overrides",void 0),ue._defineProperty(this,"encoder",void 0),ue._defineProperty(this,"estimator",void 0),this.contractWrapper=e.contractWrapper,this.functionName=e.functionName,this.args=e.args||[],this.overrides=e.overrides,this.encoder=new kw(this.contractWrapper),this.estimator=new g_(this.contractWrapper)}overrideGasLimit(e){return this.overrides={...this.overrides,gasLimit:e},this}overrideGasPrice(e){return this.overrides={...this.overrides,gasPrice:e},this}overrideNonce(e){return this.overrides={...this.overrides,nonce:e},this}overrideValue(e){return this.overrides={...this.overrides,value:e},this}async estimateGasLimit(){return await this.estimator.gasLimitOf(this.functionName,[...this.args,this.overrides||{}])}async estimateGasCostInEther(){return await this.estimator.gasCostOf(this.functionName,[...this.args,this.overrides||{}])}async encodeFunctionData(){return this.encoder.encode(this.functionName,this.args)}async submit(){return await this.contractWrapper.sendTransactionByFunction(this.functionName,this.args,this.overrides||{})}async execute(){return{receipt:await this.contractWrapper.sendTransaction(this.functionName,this.args,this.overrides||{})}}},v_=class{constructor(e,t,n){ue._defineProperty(this,"contractWrapper",void 0),ue._defineProperty(this,"metadata",void 0),ue._defineProperty(this,"storage",void 0),this.storage=n,this.contractWrapper=e,this.metadata=t}async getActive(e){let t=await this.get(),n=await this.metadata.get();return await tP(t,await this.getTokenDecimals(),this.contractWrapper.getProvider(),n.merkle||{},this.storage,e?.withAllowList||!1)}async get(e){if(this.isLegacySinglePhaseDrop(this.contractWrapper)){let t=await this.contractWrapper.readContract.claimCondition();return $9(t)}else if(this.isLegacyMultiPhaseDrop(this.contractWrapper)){let t=e!==void 0?e:await this.contractWrapper.readContract.getActiveClaimConditionId(),n=await this.contractWrapper.readContract.getClaimConditionById(t);return $9(n)}else if(this.isNewSinglePhaseDrop(this.contractWrapper)){let t=await this.contractWrapper.readContract.claimCondition();return eP(t)}else if(this.isNewMultiphaseDrop(this.contractWrapper)){let t=e!==void 0?e:await this.contractWrapper.readContract.getActiveClaimConditionId(),n=await this.contractWrapper.readContract.getClaimConditionById(t);return eP(n)}else throw new Error("Contract does not support claim conditions")}async getAll(e){if(this.isLegacyMultiPhaseDrop(this.contractWrapper)||this.isNewMultiphaseDrop(this.contractWrapper)){let t=await this.contractWrapper.readContract.claimCondition(),n=t.currentStartId.toNumber(),a=t.count.toNumber(),i=[];for(let l=n;ltP(l,c,this.contractWrapper.getProvider(),s.merkle,this.storage,e?.withAllowList||!1)))}else return[await this.getActive(e)]}async canClaim(e,t){return(await this.getClaimIneligibilityReasons(e,t)).length===0}async getClaimIneligibilityReasons(e,t){let n=[],a,i,s=await this.getTokenDecimals(),c=se.ethers.utils.parseUnits(ue.AmountSchema.parse(e),s);if(t===void 0)try{t=await this.contractWrapper.getSignerAddress()}catch(w){console.warn("failed to get signer address",w)}if(!t)return[Y.ClaimEligibility.NoWallet];try{i=await this.getActive()}catch(w){return s_(w,"!CONDITION")||s_(w,"no active mint condition")?(n.push(Y.ClaimEligibility.NoClaimConditionSet),n):(console.warn("failed to get active claim condition",w),n.push(Y.ClaimEligibility.Unknown),n)}i.availableSupply!=="unlimited"&&se.ethers.utils.parseUnits(i.availableSupply,s).lt(c)&&n.push(Y.ClaimEligibility.NotEnoughSupply);let d=se.ethers.utils.stripZeros(i.merkleRootHash).length>0,f=null;if(d){if(f=await this.getClaimerProofs(t),!f&&(this.isLegacySinglePhaseDrop(this.contractWrapper)||this.isLegacyMultiPhaseDrop(this.contractWrapper)))return n.push(Y.ClaimEligibility.AddressNotAllowed),n;if(f)try{let w=await this.prepareClaim(e,!1,s,t),E;if(this.isLegacyMultiPhaseDrop(this.contractWrapper)){if(a=await this.contractWrapper.readContract.getActiveClaimConditionId(),[E]=await this.contractWrapper.readContract.verifyClaimMerkleProof(a,t,e,w.proofs,w.maxClaimable),!E)return n.push(Y.ClaimEligibility.AddressNotAllowed),n}else if(this.isLegacySinglePhaseDrop(this.contractWrapper)){if([E]=await this.contractWrapper.readContract.verifyClaimMerkleProof(t,e,{proof:w.proofs,maxQuantityInAllowlist:w.maxClaimable}),!E)return n.push(Y.ClaimEligibility.AddressNotAllowed),n}else if(this.isNewSinglePhaseDrop(this.contractWrapper)){if(await this.contractWrapper.readContract.verifyClaim(t,e,w.currencyAddress,w.price,{proof:w.proofs,quantityLimitPerWallet:w.maxClaimable,currency:w.currencyAddressInProof,pricePerToken:w.priceInProof}),tm(i.maxClaimablePerWallet,s).eq(0)&&w.maxClaimable===se.ethers.constants.MaxUint256||w.maxClaimable===se.BigNumber.from(0))return n.push(Y.ClaimEligibility.AddressNotAllowed),n}else if(this.isNewMultiphaseDrop(this.contractWrapper)&&(a=await this.contractWrapper.readContract.getActiveClaimConditionId(),await this.contractWrapper.readContract.verifyClaim(a,t,e,w.currencyAddress,w.price,{proof:w.proofs,quantityLimitPerWallet:w.maxClaimable,currency:w.currencyAddressInProof,pricePerToken:w.priceInProof}),tm(i.maxClaimablePerWallet,s).eq(0)&&w.maxClaimable===se.ethers.constants.MaxUint256||w.maxClaimable===se.BigNumber.from(0)))return n.push(Y.ClaimEligibility.AddressNotAllowed),n}catch(w){return console.warn("Merkle proof verification failed:","reason"in w?w.reason:w),n.push(Y.ClaimEligibility.AddressNotAllowed),n}}if((this.isNewSinglePhaseDrop(this.contractWrapper)||this.isNewMultiphaseDrop(this.contractWrapper))&&(!d||d&&!f)&&tm(i.maxClaimablePerWallet,s).eq(0))return n.push(Y.ClaimEligibility.AddressNotAllowed),n;if(this.isLegacySinglePhaseDrop(this.contractWrapper)||this.isLegacyMultiPhaseDrop(this.contractWrapper)){let[w,E]=[se.BigNumber.from(0),se.BigNumber.from(0)];this.isLegacyMultiPhaseDrop(this.contractWrapper)?(a=await this.contractWrapper.readContract.getActiveClaimConditionId(),[w,E]=await this.contractWrapper.readContract.getClaimTimestamp(a,t)):this.isLegacySinglePhaseDrop(this.contractWrapper)&&([w,E]=await this.contractWrapper.readContract.getClaimTimestamp(t));let k=se.BigNumber.from(Date.now()).div(1e3);w.gt(0)&&k.lt(E)&&(E.eq(se.constants.MaxUint256)?n.push(Y.ClaimEligibility.AlreadyClaimed):n.push(Y.ClaimEligibility.WaitBeforeNextClaimTransaction))}if(i.price.gt(0)&&Bje()){let w=i.price.mul(se.BigNumber.from(e)),E=this.contractWrapper.getProvider();qh(i.currencyAddress)?(await E.getBalance(t)).lt(w)&&n.push(Y.ClaimEligibility.NotEnoughTokens):(await new xs(E,i.currencyAddress,ku.default,{}).readContract.balanceOf(t)).lt(w)&&n.push(Y.ClaimEligibility.NotEnoughTokens)}return n}async getClaimerProofs(e,t){let a=(await this.get(t)).merkleRoot;if(se.ethers.utils.stripZeros(a).length>0){let s=await this.metadata.get();return await i7(e,a.toString(),s.merkle,this.contractWrapper.getProvider(),this.storage,this.getSnapshotFormatVersion())}else return null}async set(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=e;if(this.isLegacySinglePhaseDrop(this.contractWrapper)||this.isNewSinglePhaseDrop(this.contractWrapper)){if(t=!0,e.length===0)n=[{startTime:new Date(0),currencyAddress:se.ethers.constants.AddressZero,price:0,maxClaimableSupply:0,maxClaimablePerWallet:0,waitInSeconds:0,merkleRootHash:se.utils.hexZeroPad([0],32),snapshot:[]}];else if(e.length>1)throw new Error("Single phase drop contract cannot have multiple claim conditions, only one is allowed")}(this.isNewSinglePhaseDrop(this.contractWrapper)||this.isNewMultiphaseDrop(this.contractWrapper))&&n.forEach(f=>{if(f.snapshot&&f.snapshot.length>0&&(f.maxClaimablePerWallet===void 0||f.maxClaimablePerWallet==="unlimited"))throw new Error(`maxClaimablePerWallet must be set to a specific value when an allowlist is set. + `) + ).join(`, +`) + + ` +`, + O = `${C.name}(${k})`, + D = + e.transactionHash || + e.transaction?.hash || + e.receipt?.transactionHash, + W = OUe(e), + H, + j; + try { + let V = await Jg( + this.readContract.address, + this.getProvider(), + PM(this, SM) + ); + V.name && (j = V.name), + V.metadata.sources && (H = await WK(V, PM(this, SM))); + } catch {} + return new UM({ + reason: W, + from: c, + to: l, + method: O, + data: d, + network: s, + rpcUrl: w, + value: m, + hash: D, + contractName: j, + sources: H, + }); + } + async sendGaslessTransaction(e) { + let t = + arguments.length > 1 && arguments[1] !== void 0 + ? arguments[1] + : [], + n = arguments.length > 2 ? arguments[2] : void 0, + a = this.getSigner(); + dr.default( + a, + "Cannot execute gasless transaction without valid signer" + ); + let i = await this.getChainID(), + s = await this.getSignerAddress(), + c = this.writeContract.address, + l = n?.value || 0; + if (ie.BigNumber.from(l).gt(0)) + throw new Error( + "Cannot send native token value with gasless transaction" + ); + let d = this.writeContract.interface.encodeFunctionData(e, t), + m = ie.BigNumber.from(0); + try { + m = (await this.readContract.estimateGas[e](...t)).mul(2); + } catch {} + m.lt(1e5) && (m = ie.BigNumber.from(5e5)), + n.gasLimit && + ie.BigNumber.from(n.gasLimit).gt(m) && + (m = ie.BigNumber.from(n.gasLimit)); + let w = { + from: s, + to: c, + data: d, + chainId: i, + gasLimit: m, + functionName: e.toString(), + functionArgs: t, + callOverrides: n, + }; + return await this.defaultGaslessSendFunction(w); + } + async signTypedData(e, t, n, a) { + this.emit(Q.EventType.Signature, { + status: "submitted", + message: a, + signature: "", + }); + let { signature: i } = await HM(e, t, n, a); + return ( + this.emit(Q.EventType.Signature, { + status: "completed", + message: a, + signature: i, + }), + i + ); + } + parseLogs(e, t) { + if (!t || t.length === 0) return []; + let n = this.writeContract.interface.getEventTopic(e); + return t + .filter((i) => i.topics.indexOf(n) >= 0) + .map((i) => this.writeContract.interface.parseLog(i)); + } + async defaultGaslessSendFunction(e) { + return this.options.gasless && "biconomy" in this.options.gasless + ? this.biconomySendFunction(e) + : this.defenderSendFunction(e); + } + async biconomySendFunction(e) { + dr.default( + this.options.gasless && "biconomy" in this.options.gasless, + "calling biconomySendFunction without biconomy" + ); + let t = this.getSigner(), + n = this.getProvider(); + dr.default(t && n, "signer and provider must be set"); + let a = new ie.ethers.Contract( + RM(e.chainId, "biconomyForwarder"), + Dor, + n + ), + i = 0, + s = await oWe(a, "getNonce", [e.from, i]), + c = { + from: e.from, + to: e.to, + token: ie.ethers.constants.AddressZero, + txGas: e.gasLimit.toNumber(), + tokenGasPrice: "0", + batchId: i, + batchNonce: s.toNumber(), + deadline: Math.floor( + Date.now() / 1e3 + + ((this.options?.gasless && + "biconomy" in this.options.gasless && + this.options.gasless.biconomy?.deadlineSeconds) || + 3600) + ), + data: e.data, + }, + l = ie.ethers.utils.arrayify( + ie.ethers.utils.solidityKeccak256( + [ + "address", + "address", + "address", + "uint256", + "uint256", + "uint256", + "uint256", + "uint256", + "bytes32", + ], + [ + c.from, + c.to, + c.token, + c.txGas, + c.tokenGasPrice, + c.batchId, + c.batchNonce, + c.deadline, + ie.ethers.utils.keccak256(c.data), + ] + ) + ); + this.emit(Q.EventType.Signature, { + status: "submitted", + message: l, + signature: "", + }); + let d = await t.signMessage(l); + this.emit(Q.EventType.Signature, { + status: "completed", + message: l, + signature: d, + }); + let m = await cj.default( + "https://api.biconomy.io/api/v2/meta-tx/native", + { + method: "POST", + body: JSON.stringify({ + from: e.from, + apiId: this.options.gasless.biconomy.apiId, + params: [c, d], + to: e.to, + gasLimit: e.gasLimit.toHexString(), + }), + headers: { + "x-api-key": this.options.gasless.biconomy.apiKey, + "Content-Type": "application/json;charset=utf-8", + }, + } + ); + if (m.ok) { + let w = await m.json(); + if (!w.txHash) + throw new Error(`relay transaction failed: ${w.log}`); + return w.txHash; + } + throw new Error( + `relay transaction failed with status: ${m.status} (${m.statusText})` + ); + } + async defenderSendFunction(e) { + dr.default( + this.options.gasless && "openzeppelin" in this.options.gasless, + "calling openzeppelin gasless transaction without openzeppelin config in the SDK options" + ); + let t = this.getSigner(), + n = this.getProvider(); + dr.default(t, "provider is not set"), + dr.default(n, "provider is not set"); + let a = + this.options.gasless.openzeppelin.relayerForwarderAddress || + (this.options.gasless.openzeppelin.useEOAForwarder + ? kw[e.chainId].openzeppelinForwarderEOA + : kw[e.chainId].openzeppelinForwarder), + i = new ie.Contract(a, Fsr.default, n), + s = await oWe(i, "getNonce", [e.from]), + c, + l, + d; + this.options.gasless.experimentalChainlessSupport + ? ((c = { + name: "GSNv2 Forwarder", + version: "0.0.1", + verifyingContract: a, + }), + (l = { ForwardRequest: Lor }), + (d = { + from: e.from, + to: e.to, + value: ie.BigNumber.from(0).toString(), + gas: ie.BigNumber.from(e.gasLimit).toString(), + nonce: ie.BigNumber.from(s).toString(), + data: e.data, + chainid: ie.BigNumber.from(e.chainId).toString(), + })) + : ((c = { + name: "GSNv2 Forwarder", + version: "0.0.1", + chainId: e.chainId, + verifyingContract: a, + }), + (l = { ForwardRequest: Oor }), + (d = { + from: e.from, + to: e.to, + value: ie.BigNumber.from(0).toString(), + gas: ie.BigNumber.from(e.gasLimit).toString(), + nonce: ie.BigNumber.from(s).toString(), + data: e.data, + })); + let m; + if ( + (this.emit(Q.EventType.Signature, { + status: "submitted", + message: d, + signature: "", + }), + e.functionName === "approve" && e.functionArgs.length === 2) + ) { + let k = e.functionArgs[0], + O = e.functionArgs[1], + { message: D, signature: W } = await Jor( + t, + this.writeContract.address, + e.from, + k, + O + ), + { r: H, s: j, v: V } = ie.ethers.utils.splitSignature(W); + (d = { + to: this.readContract.address, + owner: D.owner, + spender: D.spender, + value: ie.BigNumber.from(D.value).toString(), + nonce: ie.BigNumber.from(D.nonce).toString(), + deadline: ie.BigNumber.from(D.deadline).toString(), + r: H, + s: j, + v: V, + }), + (m = W); + } else { + let { signature: k } = await HM(t, c, l, d); + m = k; + } + let w = "forward"; + d?.owner && (w = "permit"); + let C = JSON.stringify({ + request: d, + signature: m, + forwarderAddress: a, + type: w, + }); + this.emit(Q.EventType.Signature, { + status: "completed", + message: d, + signature: m, + }); + let I = await cj.default( + this.options.gasless.openzeppelin.relayerUrl, + { method: "POST", body: C } + ); + if (I.ok) { + let k = await I.json(); + if (!k.result) + throw new Error(`Relay transaction failed: ${k.message}`); + return JSON.parse(k.result).txHash; + } + throw new Error( + `relay transaction failed with status: ${I.status} (${I.statusText})` + ); + } + }; + function yh(r) { + return ( + r.toLowerCase() === Kl || r.toLowerCase() === ie.constants.AddressZero + ); + } + function TK(r) { + return yh(r) ? Kl : r; + } + async function Zo(r, e, t) { + let n = await Fw(r, t); + return ie.utils.parseUnits(ue.AmountSchema.parse(e), n.decimals); + } + async function Fw(r, e) { + if (yh(e)) { + let t = await r.getNetwork(), + n = BM(t.chainId); + return { name: n.name, symbol: n.symbol, decimals: n.decimals }; + } else { + let t = new ie.Contract(e, Wsr.default, r), + [n, a, i] = await Promise.all([t.name(), t.symbol(), t.decimals()]); + return { name: n, symbol: a, decimals: i }; + } + } + async function Gd(r, e, t) { + let n = await Fw(r, e); + return { + ...n, + value: ie.BigNumber.from(t), + displayValue: ie.utils.formatUnits(t, n.decimals), + }; + } + async function h0(r, e, t, n) { + if (yh(t)) n.value = e; + else { + let a = r.getSigner(), + i = r.getProvider(), + s = new ls(a || i, t, lu.default, r.options), + c = await r.getSignerAddress(), + l = r.readContract.address; + return ( + (await s.readContract.allowance(c, l)).lt(e) && + (await s.sendTransaction("approve", [l, e])), + n + ); + } + } + async function qUe(r, e, t, n, a) { + let i = r.getSigner(), + s = r.getProvider(), + c = new ls(i || s, e, lu.default, r.options), + l = await r.getSignerAddress(), + d = r.readContract.address, + m = await c.readContract.allowance(l, d), + w = ie.BigNumber.from(t) + .mul(ie.BigNumber.from(n)) + .div(ie.ethers.utils.parseUnits("1", a)); + m.lt(w) && (await c.sendTransaction("approve", [d, m.add(w)])); + } + async function Qor(r, e, t) { + let n = r.getProvider(), + a = new ls(n, e, lu.default, {}), + i = await r.getSignerAddress(), + s = r.readContract.address; + return (await a.readContract.allowance(i, s)).gte(t); + } + async function FUe(r, e, t, n, a, i, s, c, l) { + let d = oh(t.maxClaimablePerWallet, a), + m = [ie.utils.hexZeroPad([0], 32)], + w = t.price, + C = t.currencyAddress; + try { + if (!t.merkleRootHash.toString().startsWith(ie.constants.AddressZero)) { + let D = await ZP( + r, + t.merkleRootHash.toString(), + await n(), + i.getProvider(), + s, + l + ); + if (D) + (m = D.proof), + (d = + D.maxClaimable === "unlimited" + ? ie.ethers.constants.MaxUint256 + : ie.ethers.utils.parseUnits(D.maxClaimable, a)), + (w = + D.price === void 0 || D.price === "unlimited" + ? ie.ethers.constants.MaxUint256 + : await Zo( + i.getProvider(), + D.price, + D.currencyAddress || ie.ethers.constants.AddressZero + )), + (C = D.currencyAddress || ie.ethers.constants.AddressZero); + else if (l === Bf.V1) + throw new Error("No claim found for this address"); + } + } catch (D) { + if (D?.message === "No claim found for this address") throw D; + console.warn( + "failed to check claim condition merkle root hash, continuing anyways", + D + ); + } + let I = (await i.getCallOverrides()) || {}, + k = + w.toString() !== ie.ethers.constants.MaxUint256.toString() + ? w + : t.price, + O = C !== ie.ethers.constants.AddressZero ? C : t.currencyAddress; + return ( + k.gt(0) && + (yh(O) + ? (I.value = ie.BigNumber.from(k) + .mul(e) + .div(ie.ethers.utils.parseUnits("1", a))) + : c && (await qUe(i, O, k, e, a))), + { + overrides: I, + proofs: m, + maxClaimable: d, + price: k, + currencyAddress: O, + priceInProof: w, + currencyAddressInProof: C, + } + ); + } + async function Xor(r, e, t) { + if (!e) return null; + let n = e[r]; + if (n) { + let a = await t.downloadJSON(n); + if (a.isShardedMerkleTree && a.merkleRoot === r) + return (await ou.fromUri(n, t))?.getAllEntries() || null; + { + let i = gK.parse(a); + if (r === i.merkleRoot) + return i.claims.map((s) => ({ + address: s.address, + maxClaimable: s.maxClaimable, + price: s.price, + currencyAddress: s.currencyAddress, + })); + } + } + return null; + } + async function ZP(r, e, t, n, a, i) { + if (!t) return null; + let s = t[e]; + if (s) { + let c = await a.downloadJSON(s); + if (c.isShardedMerkleTree && c.merkleRoot === e) + return await ( + await ou.fromShardedMerkleTreeInfo(c, a) + ).getProof(r, n, i); + let l = gK.parse(c); + if (e === l.merkleRoot) + return ( + l.claims.find((d) => d.address.toLowerCase() === r.toLowerCase()) || + null + ); + } + return null; + } + async function WUe(r, e, t) { + if (r >= t.length) + throw Error( + `Index out of bounds - got index: ${r} with ${t.length} conditions` + ); + let n = t[r].currencyMetadata.decimals, + a = t[r].price, + i = ie.ethers.utils.formatUnits(a, n), + s = E3.parse({ ...t[r], price: i, ...e }), + c = bK.parse({ ...s, price: a }); + return t.map((l, d) => { + let m; + d === r ? (m = c) : (m = l); + let w = ie.ethers.utils.formatUnits(m.price, n); + return { ...m, price: w }; + }); + } + async function ecr(r, e, t, n, a) { + let i = []; + return { + inputsWithSnapshots: await Promise.all( + r.map(async (c) => { + if (c.snapshot && c.snapshot.length > 0) { + let l = await zUe(c.snapshot, e, t, n, a); + i.push(l), (c.merkleRootHash = l.merkleRoot); + } else c.merkleRootHash = ie.utils.hexZeroPad([0], 32); + return c; + }) + ), + snapshotInfos: i, + }; + } + function tcr(r, e) { + let t = ie.BigNumber.from(r), + n = ie.BigNumber.from(e); + return t.eq(n) ? 0 : t.gt(n) ? 1 : -1; + } + async function UUe(r, e, t, n, a) { + let { inputsWithSnapshots: i, snapshotInfos: s } = await ecr( + r, + e, + t, + n, + a + ), + c = nUe.parse(i), + l = (await Promise.all(c.map((d) => rcr(d, e, t, n)))).sort((d, m) => + tcr(d.startTimestamp, m.startTimestamp) + ); + return { snapshotInfos: s, sortedConditions: l }; + } + async function rcr(r, e, t, n) { + let a = + r.currencyAddress === ie.constants.AddressZero + ? Kl + : r.currencyAddress, + i = oh(r.maxClaimableSupply, e), + s = oh(r.maxClaimablePerWallet, e), + c; + return ( + r.metadata && + (typeof r.metadata == "string" + ? (c = r.metadata) + : (c = await n.upload(r.metadata))), + { + startTimestamp: r.startTime, + maxClaimableSupply: i, + supplyClaimed: 0, + maxClaimablePerWallet: s, + pricePerToken: await Zo(t, r.price, a), + currency: a, + merkleRoot: r.merkleRootHash.toString(), + waitTimeInSecondsBetweenClaims: r.waitInSeconds || 0, + metadata: c, + } + ); + } + function zM(r) { + return { + startTimestamp: r.startTimestamp, + maxClaimableSupply: r.maxClaimableSupply, + supplyClaimed: r.supplyClaimed, + merkleRoot: r.merkleRoot, + pricePerToken: r.pricePerToken, + currency: r.currency, + quantityLimitPerTransaction: r.maxClaimablePerWallet, + waitTimeInSecondsBetweenClaims: r.waitTimeInSecondsBetweenClaims || 0, + }; + } + function jM(r) { + return { + startTimestamp: r.startTimestamp, + maxClaimableSupply: r.maxClaimableSupply, + supplyClaimed: r.supplyClaimed, + merkleRoot: r.merkleRoot, + pricePerToken: r.pricePerToken, + currency: r.currency, + quantityLimitPerWallet: r.maxClaimablePerWallet, + metadata: r.metadata || "", + }; + } + function KM(r) { + return { + startTimestamp: r.startTimestamp, + maxClaimableSupply: r.maxClaimableSupply, + supplyClaimed: r.supplyClaimed, + merkleRoot: r.merkleRoot.toString(), + pricePerToken: r.pricePerToken, + currency: r.currency, + maxClaimablePerWallet: r.quantityLimitPerTransaction, + waitTimeInSecondsBetweenClaims: r.waitTimeInSecondsBetweenClaims, + }; + } + function VM(r) { + return { + startTimestamp: r.startTimestamp, + maxClaimableSupply: r.maxClaimableSupply, + supplyClaimed: r.supplyClaimed, + merkleRoot: r.merkleRoot.toString(), + pricePerToken: r.pricePerToken, + currency: r.currency, + maxClaimablePerWallet: r.quantityLimitPerWallet, + waitTimeInSecondsBetweenClaims: 0, + metadata: r.metadata, + }; + } + async function GM(r, e, t, n, a, i) { + let s = await Gd(t, r.currency, r.pricePerToken), + c = X5(r.maxClaimableSupply, e), + l = X5(r.maxClaimablePerWallet, e), + d = X5(ie.BigNumber.from(r.maxClaimableSupply).sub(r.supplyClaimed), e), + m = X5(r.supplyClaimed, e), + w; + return ( + r.metadata && (w = await a.downloadJSON(r.metadata)), + bK.parse({ + startTime: r.startTimestamp, + maxClaimableSupply: c, + maxClaimablePerWallet: l, + currentMintSupply: m, + availableSupply: d, + waitInSeconds: r.waitTimeInSecondsBetweenClaims?.toString(), + price: ie.BigNumber.from(r.pricePerToken), + currency: r.currency, + currencyAddress: r.currency, + currencyMetadata: s, + merkleRootHash: r.merkleRoot, + snapshot: i ? await Xor(r.merkleRoot, n, a) : void 0, + metadata: w, + }) + ); + } + function X5(r, e) { + return r.toString() === ie.ethers.constants.MaxUint256.toString() + ? "unlimited" + : ie.ethers.utils.formatUnits(r, e); + } + function oh(r, e) { + return r === "unlimited" + ? ie.ethers.constants.MaxUint256 + : ie.ethers.utils.parseUnits(r, e); + } + async function HUe(r, e, t, n, a) { + let i = {}, + s = n || Kl, + l = (await Zo(r.getProvider(), e, s)).mul(t); + return ( + l.gt(0) && + (s === Kl + ? (i = { value: l }) + : s !== Kl && a && (await qUe(r, s, l, t, 0))), + i + ); + } + var ncr = 2, + Bf; + (function (r) { + (r[(r.V1 = 1)] = "V1"), (r[(r.V2 = 2)] = "V2"); + })(Bf || (Bf = {})); + var ou = class { + constructor(e, t, n, a, i) { + ue._defineProperty(this, "shardNybbles", void 0), + ue._defineProperty(this, "shards", void 0), + ue._defineProperty(this, "trees", void 0), + ue._defineProperty(this, "storage", void 0), + ue._defineProperty(this, "baseUri", void 0), + ue._defineProperty(this, "originalEntriesUri", void 0), + ue._defineProperty(this, "tokenDecimals", void 0), + (this.storage = e), + (this.shardNybbles = a), + (this.baseUri = t), + (this.originalEntriesUri = n), + (this.tokenDecimals = i), + (this.shards = {}), + (this.trees = {}); + } + static async fromUri(e, t) { + try { + let n = await t.downloadJSON(e); + if (n.isShardedMerkleTree) return ou.fromShardedMerkleTreeInfo(n, t); + } catch { + return; + } + } + static async fromShardedMerkleTreeInfo(e, t) { + return new ou( + t, + e.baseUri, + e.originalEntriesUri, + e.shardNybbles, + e.tokenDecimals + ); + } + static hashEntry(e, t, n, a) { + switch (a) { + case Bf.V1: + return ie.utils.solidityKeccak256( + ["address", "uint256"], + [e.address, oh(e.maxClaimable, t)] + ); + case Bf.V2: + return ie.utils.solidityKeccak256( + ["address", "uint256", "uint256", "address"], + [ + e.address, + oh(e.maxClaimable, t), + oh(e.price || "unlimited", n), + e.currencyAddress || ie.ethers.constants.AddressZero, + ] + ); + } + } + static async fetchAndCacheDecimals(e, t, n) { + if (!n) return 18; + let a = e[n]; + return a === void 0 && ((a = (await Fw(t, n)).decimals), (e[n] = a)), a; + } + static async buildAndUpload(e, t, n, a, i) { + let s = + arguments.length > 5 && arguments[5] !== void 0 + ? arguments[5] + : ncr, + c = T3.parse(e), + l = {}; + for (let j of c) { + let V = j.address.slice(2, 2 + s).toLowerCase(); + l[V] === void 0 && (l[V] = []), l[V].push(j); + } + let d = {}, + m = await Promise.all( + Object.entries(l).map(async (j) => { + let [V, te] = j; + return [ + V, + new aj.MerkleTree( + await Promise.all( + te.map(async ($) => { + let ae = await ou.fetchAndCacheDecimals( + d, + n, + $.currencyAddress + ); + return ou.hashEntry($, t, ae, i); + }) + ), + ie.utils.keccak256, + { sort: !0 } + ).getHexRoot(), + ]; + }) + ), + w = Object.fromEntries(m), + C = new aj.MerkleTree(Object.values(w), ie.utils.keccak256, { + sort: !0, + }), + I = []; + for (let [j, V] of Object.entries(l)) { + let te = { + proofs: C.getProof(w[j]).map(($) => "0x" + $.data.toString("hex")), + entries: V, + }; + I.push({ data: JSON.stringify(te), name: `${j}.json` }); + } + let k = await a.uploadBatch(I), + O = k[0].slice(0, k[0].lastIndexOf("/")), + D = await a.upload(c), + W = { + merkleRoot: C.getHexRoot(), + baseUri: O, + originalEntriesUri: D, + shardNybbles: s, + tokenDecimals: t, + isShardedMerkleTree: !0, + }, + H = await a.upload(W); + return { shardedMerkleInfo: W, uri: H }; + } + async getProof(e, t, n) { + let a = e.slice(2, 2 + this.shardNybbles).toLowerCase(), + i = this.shards[a], + s = {}; + if (i === void 0) + try { + i = this.shards[a] = await this.storage.downloadJSON( + `${this.baseUri}/${a}.json` + ); + let w = await Promise.all( + i.entries.map(async (C) => { + let I = await ou.fetchAndCacheDecimals(s, t, C.currencyAddress); + return ou.hashEntry(C, this.tokenDecimals, I, n); + }) + ); + this.trees[a] = new aj.MerkleTree(w, ie.utils.keccak256, { + sort: !0, + }); + } catch { + return null; + } + let c = i.entries.find( + (w) => w.address.toLowerCase() === e.toLowerCase() + ); + if (!c) return null; + let l = await ou.fetchAndCacheDecimals(s, t, c.currencyAddress), + d = ou.hashEntry(c, this.tokenDecimals, l, n), + m = this.trees[a] + .getProof(d) + .map((w) => "0x" + w.data.toString("hex")); + return yK.parse({ ...c, proof: m.concat(i.proofs) }); + } + async getAllEntries() { + try { + return await this.storage.downloadJSON(this.originalEntriesUri); + } catch (e) { + return ( + console.warn("Could not fetch original snapshot entries", e), [] + ); + } + } + }; + async function zUe(r, e, t, n, a) { + let i = T3.parse(r), + s = i.map((d) => d.address); + if (new Set(s).size < s.length) throw new FM(); + let l = await ou.buildAndUpload(i, e, t, n, a); + return { merkleRoot: l.shardedMerkleInfo.merkleRoot, snapshotUri: l.uri }; + } + var jUe = { + admin: "", + transfer: "TRANSFER_ROLE", + minter: "MINTER_ROLE", + pauser: "PAUSER_ROLE", + lister: "LISTER_ROLE", + asset: "ASSET_ROLE", + unwrap: "UNWRAP_ROLE", + factory: "FACTORY_ROLE", + }, + EK = Object.keys(jUe); + function Cw(r) { + return r === "admin" + ? ie.ethers.utils.hexZeroPad([0], 32) + : ie.ethers.utils.id(jUe[r]); + } + var Mw = class { + constructor(e) { + ue._defineProperty(this, "contractWrapper", void 0), + (this.contractWrapper = e); + } + encode(e, t) { + return this.contractWrapper.readContract.interface.encodeFunctionData( + e, + t + ); + } + decode(e, t) { + return this.contractWrapper.readContract.interface.decodeFunctionData( + e, + t + ); + } + }, + YM = { + name: "Royalty", + namespace: "royalty", + docLinks: { sdk: "sdk.contractroyalty", contracts: "Royalty" }, + abis: [Dsr.default], + features: {}, + }, + $M = { + name: "PrimarySale", + namespace: "sales", + docLinks: { sdk: "sdk.contractprimarysale", contracts: "PrimarySale" }, + abis: [Osr.default], + features: {}, + }, + JM = { + name: "PlatformFee", + namespace: "platformFee", + docLinks: { sdk: "sdk.platformfee", contracts: "PlatformFee" }, + abis: [Nsr.default], + features: {}, + }, + cWe = { + name: "PermissionsEnumerable", + namespace: "roles", + docLinks: { + sdk: "sdk.contractroles", + contracts: "PermissionsEnumerable", + }, + abis: [Bsr.default], + features: {}, + }, + ZM = { + name: "Permissions", + namespace: "roles", + docLinks: { sdk: "sdk.contractroles", contracts: "Permissions" }, + abis: [Rsr.default], + features: { [cWe.name]: cWe }, + }, + QM = { + name: "ContractMetadata", + namespace: "metadata", + docLinks: { + sdk: "sdk.contractmetadata", + contracts: "ContractMetadata", + }, + abis: [Asr.default], + features: {}, + }, + kj = { + name: "AppURI", + namespace: "appURI", + docLinks: { sdk: "sdk.appURI", contracts: "AppURI" }, + abis: [Isr.default], + features: {}, + }, + XM = { + name: "Ownable", + namespace: "owner", + docLinks: { sdk: "sdk.owner", contracts: "Ownable" }, + abis: [qsr.default], + features: {}, + }, + uWe = { + name: "Gasless", + namespace: "gasless", + docLinks: { sdk: "sdk.gaslesstransaction", contracts: "" }, + abis: [Csr.default], + features: {}, + }, + Sj = { + name: "PackVRF", + namespace: "pack.vrf", + docLinks: { sdk: "sdk.packvrf", contracts: "IPackVRFDirect" }, + abis: [Psr.default], + features: {}, + }, + lWe = { + name: "PluginRouter", + namespace: "plugin.router", + docLinks: { sdk: "sdk.pluginrouter", contracts: "IRouter" }, + abis: [Lsr.default], + features: {}, + }, + Mj = { + name: "DirectListings", + namespace: "direct.listings", + docLinks: { sdk: "", contracts: "" }, + abis: [ksr.default], + features: {}, + }, + Pj = { + name: "EnglishAuctions", + namespace: "english.auctions", + docLinks: { sdk: "", contracts: "" }, + abis: [Ssr.default], + features: {}, + }, + Rj = { + name: "Offers", + namespace: "offers", + docLinks: { sdk: "", contracts: "" }, + abis: [Msr.default], + features: {}, + }, + f0 = class { + constructor(e, t, n) { + ue._defineProperty(this, "featureName", QM.name), + ue._defineProperty(this, "contractWrapper", void 0), + ue._defineProperty(this, "schema", void 0), + ue._defineProperty(this, "storage", void 0), + (this.contractWrapper = e), + (this.schema = t), + (this.storage = n); + } + parseOutputMetadata(e) { + return this.schema.output.parse(e); + } + parseInputMetadata(e) { + return this.schema.input.parse(e); + } + async get() { + let e; + if (this.supportsContractMetadata(this.contractWrapper)) { + let t = await this.contractWrapper.readContract.contractURI(); + t && t.includes("://") && (e = await this.storage.downloadJSON(t)); + } + if (!e) + try { + let t; + try { + Jo("name", this.contractWrapper) && + (t = await this.contractWrapper.readContract.name()); + } catch {} + let n = await Jg( + this.contractWrapper.readContract.address, + this.contractWrapper.getProvider(), + this.storage + ); + e = { name: t || n.name, description: n.info.title }; + } catch { + throw new Error("Could not fetch contract metadata"); + } + return this.parseOutputMetadata(e); + } + async set(e) { + let t = await this._parseAndUploadMetadata(e), + n = this.contractWrapper; + if (this.supportsContractMetadata(n)) + return { + receipt: await n.sendTransaction("setContractURI", [t]), + data: this.get, + }; + throw new Rf(QM); + } + async update(e) { + return await this.set({ ...(await this.get()), ...e }); + } + async _parseAndUploadMetadata(e) { + let t = this.parseInputMetadata(e); + return this.storage.upload(t); + } + supportsContractMetadata(e) { + return Ot(e, "ContractMetadata"); + } + }, + eP = class { + constructor(e, t) { + ue._defineProperty(this, "featureName", ZM.name), + ue._defineProperty(this, "contractWrapper", void 0), + ue._defineProperty(this, "roles", void 0), + (this.contractWrapper = e), + (this.roles = t); + } + async getAll() { + dr.default( + this.roles.length, + "this contract has no support for roles" + ); + let e = {}; + for (let t of this.roles) e[t] = await this.get(t); + return e; + } + async get(e) { + dr.default( + this.roles.includes(e), + `this contract does not support the "${e}" role` + ); + let t = this.contractWrapper; + if (Jo("getRoleMemberCount", t) && Jo("getRoleMember", t)) { + let n = Cw(e), + a = (await t.readContract.getRoleMemberCount(n)).toNumber(); + return await Promise.all( + Array.from(Array(a).keys()).map((i) => + t.readContract.getRoleMember(n, i) + ) + ); + } + throw new Error( + "Contract does not support enumerating roles. Please implement IPermissionsEnumerable to unlock this functionality." + ); + } + async setAll(e) { + let t = Object.keys(e); + dr.default(t.length, "you must provide at least one role to set"), + dr.default( + t.every((s) => this.roles.includes(s)), + "this contract does not support the given role" + ); + let n = await this.getAll(), + a = [], + i = t.sort((s) => (s === "admin" ? 1 : -1)); + for (let s = 0; s < i.length; s++) { + let c = i[s], + l = e[c] || [], + d = n[c] || [], + m = l.filter((C) => !d.includes(C)), + w = d.filter((C) => !l.includes(C)); + if ( + (m.length && + m.forEach((C) => { + a.push( + this.contractWrapper.readContract.interface.encodeFunctionData( + "grantRole", + [Cw(c), C] + ) + ); + }), + w.length) + ) + for (let C = 0; C < w.length; C++) { + let I = w[C], + k = await this.getRevokeRoleFunctionName(I); + a.push( + this.contractWrapper.readContract.interface.encodeFunctionData( + k, + [Cw(c), I] + ) + ); + } + } + return { receipt: await this.contractWrapper.multiCall(a) }; + } + async verify(e, t) { + await Promise.all( + e.map(async (n) => { + if ( + !(await this.get(n)) + .map((i) => i.toLowerCase()) + .includes(t.toLowerCase()) + ) + throw new qM(t, n); + }) + ); + } + async grant(e, t) { + return ( + dr.default( + this.roles.includes(e), + `this contract does not support the "${e}" role` + ), + { + receipt: await this.contractWrapper.sendTransaction("grantRole", [ + Cw(e), + t, + ]), + } + ); + } + async revoke(e, t) { + dr.default( + this.roles.includes(e), + `this contract does not support the "${e}" role` + ); + let n = await this.getRevokeRoleFunctionName(t); + return { + receipt: await this.contractWrapper.sendTransaction(n, [Cw(e), t]), + }; + } + async getRevokeRoleFunctionName(e) { + return ( + await this.contractWrapper.getSignerAddress() + ).toLowerCase() === e.toLowerCase() + ? "renounceRole" + : "revokeRole"; + } + }, + tP = class { + constructor(e, t) { + ue._defineProperty(this, "featureName", YM.name), + ue._defineProperty(this, "contractWrapper", void 0), + ue._defineProperty(this, "metadata", void 0), + (this.contractWrapper = e), + (this.metadata = t); + } + async getDefaultRoyaltyInfo() { + let [e, t] = + await this.contractWrapper.readContract.getDefaultRoyaltyInfo(); + return ro.parse({ fee_recipient: e, seller_fee_basis_points: t }); + } + async getTokenRoyaltyInfo(e) { + let [t, n] = + await this.contractWrapper.readContract.getRoyaltyInfoForToken(e); + return ro.parse({ fee_recipient: t, seller_fee_basis_points: n }); + } + async setDefaultRoyaltyInfo(e) { + let t = await this.metadata.get(), + n = this.metadata.parseInputMetadata({ ...t, ...e }), + a = await this.metadata._parseAndUploadMetadata(n); + if (Jo("setContractURI", this.contractWrapper)) { + let i = [ + this.contractWrapper.readContract.interface.encodeFunctionData( + "setDefaultRoyaltyInfo", + [n.fee_recipient, n.seller_fee_basis_points] + ), + this.contractWrapper.readContract.interface.encodeFunctionData( + "setContractURI", + [a] + ), + ]; + return { + receipt: await this.contractWrapper.multiCall(i), + data: () => this.getDefaultRoyaltyInfo(), + }; + } else + throw new Error( + "Updating royalties requires implementing ContractMetadata in your contract to support marketplaces like OpenSea." + ); + } + async setTokenRoyaltyInfo(e, t) { + return { + receipt: await this.contractWrapper.sendTransaction( + "setRoyaltyInfoForToken", + [e, t.fee_recipient, t.seller_fee_basis_points] + ), + data: () => this.getDefaultRoyaltyInfo(), + }; + } + }, + rP = class { + constructor(e) { + ue._defineProperty(this, "featureName", $M.name), + ue._defineProperty(this, "contractWrapper", void 0), + (this.contractWrapper = e); + } + async getRecipient() { + return await this.contractWrapper.readContract.primarySaleRecipient(); + } + async setRecipient(e) { + return { + receipt: await this.contractWrapper.sendTransaction( + "setPrimarySaleRecipient", + [e] + ), + }; + } + }, + CK = { name: "Failed to load NFT metadata" }; + async function IK(r, e, t) { + let n = e.replace( + "{id}", + ie.ethers.utils + .hexZeroPad(ie.BigNumber.from(r).toHexString(), 32) + .slice(2) + ), + a; + try { + a = await t.downloadJSON(n); + } catch { + let s = e.replace("{id}", ie.BigNumber.from(r).toString()); + try { + a = await t.downloadJSON(s); + } catch { + console.warn( + `failed to get token metadata: ${JSON.stringify({ + tokenId: r.toString(), + tokenUri: e, + })} -- falling back to default metadata` + ), + (a = CK); + } + } + return ue.CommonNFTOutput.parse({ + ...a, + id: ie.BigNumber.from(r).toString(), + uri: e, + }); + } + async function QP(r, e, t, n) { + let a, + i = new ie.Contract(r, GP.default, e), + s = await i.supportsInterface(_3), + c = await i.supportsInterface(x3); + if (s) a = await new ie.Contract(r, Hsr.default, e).tokenURI(t); + else if (c) a = await new ie.Contract(r, zsr.default, e).uri(t); + else throw Error("Contract must implement ERC 1155 or ERC 721."); + if (!a) throw new Sw(); + return IK(t, a, n); + } + async function AK(r, e) { + return typeof r == "string" + ? r + : await e.upload(ue.CommonNFTInput.parse(r)); + } + async function $g(r, e, t, n) { + if (acr(r)) return r; + if (icr(r)) + return await e.uploadBatch( + r.map((i) => ue.CommonNFTInput.parse(i)), + { + rewriteFileNames: { fileStartNumber: t || 0 }, + onProgress: n?.onProgress, + } + ); + throw new Error( + "NFT metadatas must all be of the same type (all URI or all NFTMetadataInput)" + ); + } + function Iw(r) { + let e = r[0].substring(0, r[0].lastIndexOf("/")); + for (let t = 0; t < r.length; t++) { + let n = r[t].substring(0, r[t].lastIndexOf("/")); + if (e !== n) + throw new Error( + `Can only create batches with the same base URI for every entry in the batch. Expected '${e}' but got '${n}'` + ); + } + return e.replace(/\/$/, "") + "/"; + } + function acr(r) { + return r.find((e) => typeof e != "string") === void 0; + } + function icr(r) { + return r.find((e) => typeof e != "object") === void 0; + } + var s3 = class { + constructor(e, t, n, a) { + ue._defineProperty(this, "featureName", void 0), + ue._defineProperty(this, "contractWrapper", void 0), + ue._defineProperty(this, "storage", void 0), + ue._defineProperty(this, "nextTokenIdToMintFn", void 0), + (this.featureName = n), + (this.nextTokenIdToMintFn = a), + (this.contractWrapper = e), + (this.storage = t); + } + async createDelayedRevealBatch(e, t, n, a) { + if (!n) throw new Error("Password is required"); + let i = await this.storage.uploadBatch([ue.CommonNFTInput.parse(e)], { + rewriteFileNames: { fileStartNumber: 0 }, + }), + s = Iw(i), + c = await this.nextTokenIdToMintFn(), + l = await this.storage.uploadBatch( + t.map((V) => ue.CommonNFTInput.parse(V)), + { + onProgress: a?.onProgress, + rewriteFileNames: { fileStartNumber: c.toNumber() }, + } + ), + d = Iw(l), + m = await this.contractWrapper.readContract.getBaseURICount(), + w = await this.hashDelayRevealPasword(m, n), + C = await this.contractWrapper.readContract.encryptDecrypt( + ie.ethers.utils.toUtf8Bytes(d), + w + ), + I; + if (await this.isLegacyContract()) I = C; + else { + let V = await this.contractWrapper.getChainID(), + te = ie.ethers.utils.solidityKeccak256( + ["bytes", "bytes", "uint256"], + [ie.ethers.utils.toUtf8Bytes(d), w, V] + ); + I = ie.ethers.utils.defaultAbiCoder.encode( + ["bytes", "bytes32"], + [C, te] + ); + } + let O = await this.contractWrapper.sendTransaction("lazyMint", [ + l.length, + s.endsWith("/") ? s : `${s}/`, + I, + ]), + D = this.contractWrapper.parseLogs("TokensLazyMinted", O?.logs), + W = D[0].args.startTokenId, + H = D[0].args.endTokenId, + j = []; + for (let V = W; V.lte(H); V = V.add(1)) j.push({ id: V, receipt: O }); + return j; + } + async reveal(e, t) { + if (!t) throw new Error("Password is required"); + let n = await this.hashDelayRevealPasword(e, t); + try { + let a = await this.contractWrapper.callStatic().reveal(e, n); + if (!a.includes("://") || !a.endsWith("/")) + throw new Error("invalid password"); + } catch { + throw new Error("invalid password"); + } + return { + receipt: await this.contractWrapper.sendTransaction("reveal", [ + e, + n, + ]), + }; + } + async getBatchesToReveal() { + let e = await this.contractWrapper.readContract.getBaseURICount(); + if (e.isZero()) return []; + let t = Array.from(Array(e.toNumber()).keys()), + n = await Promise.all( + t.map((d) => { + if (Jo("getBatchIdAtIndex", this.contractWrapper)) + return this.contractWrapper.readContract.getBatchIdAtIndex(d); + if (Jo("baseURIIndices", this.contractWrapper)) + return this.contractWrapper.readContract.baseURIIndices(d); + throw new Error( + "Contract does not have getBatchIdAtIndex or baseURIIndices." + ); + }) + ), + a = n.slice(0, n.length - 1), + i = await Promise.all( + Array.from([0, ...a]).map((d) => + this.getNftMetadata(d.toString()) + ) + ), + s = await this.isLegacyContract(), + l = ( + await Promise.all( + Array.from([...n]).map((d) => + s + ? this.getLegacyEncryptedData(d) + : this.contractWrapper.readContract.encryptedData(d) + ) + ) + ).map((d) => + ie.ethers.utils.hexDataLength(d) > 0 + ? s + ? d + : ie.ethers.utils.defaultAbiCoder.decode( + ["bytes", "bytes32"], + d + )[0] + : d + ); + return i + .map((d, m) => ({ + batchId: ie.BigNumber.from(m), + batchUri: d.uri, + placeholderMetadata: d, + })) + .filter((d, m) => ie.ethers.utils.hexDataLength(l[m]) > 0); + } + async hashDelayRevealPasword(e, t) { + let n = await this.contractWrapper.getChainID(), + a = this.contractWrapper.readContract.address; + return ie.ethers.utils.solidityKeccak256( + ["string", "uint256", "uint256", "address"], + [t, n, e, a] + ); + } + async getNftMetadata(e) { + return QP( + this.contractWrapper.readContract.address, + this.contractWrapper.getProvider(), + e, + this.storage + ); + } + async isLegacyContract() { + if (Jo("contractVersion", this.contractWrapper)) + try { + return ( + (await this.contractWrapper.readContract.contractVersion()) <= 2 + ); + } catch { + return !1; + } + return !1; + } + async getLegacyEncryptedData(e) { + let n = await new ie.ethers.Contract( + this.contractWrapper.readContract.address, + jsr.default, + this.contractWrapper.getProvider() + ).functions.encryptedBaseURI(e); + return n.length > 0 ? n[0] : "0x"; + } + }, + dWe = { + name: "ERC20ClaimConditionsV1", + namespace: "token.drop.claim", + docLinks: { + sdk: "sdk.erc20dclaimable", + contracts: "DropSinglePhase_V1", + }, + abis: [lu.default, LWe.default], + features: {}, + }, + o3 = { + name: "ERC20ClaimConditionsV2", + namespace: "token.drop.claim", + docLinks: { sdk: "sdk.erc20dclaimable", contracts: "DropSinglePhase" }, + abis: [lu.default, OWe.default], + features: {}, + }, + pWe = { + name: "ERC20ClaimPhasesV2", + namespace: "token.drop.claim", + docLinks: { sdk: "sdk.erc20dclaimable", contracts: "Drop" }, + abis: [lu.default, NWe.default], + features: {}, + }, + hWe = { + name: "ERC20ClaimPhasesV1", + namespace: "token.drop.claim", + docLinks: { sdk: "sdk.erc20dclaimable", contracts: "Drop" }, + abis: [csr.default], + features: {}, + }, + c3 = { + name: "ERC20Burnable", + namespace: "token.burn", + docLinks: { sdk: "sdk.erc20burnable", contracts: "IBurnableERC20" }, + abis: [lu.default, osr.default], + features: {}, + }, + nP = { + name: "ERC20SignatureMintable", + namespace: "token.signature", + docLinks: { + sdk: "sdk.erc20signaturemintable", + contracts: "ISignatureMintERC20", + }, + abis: [lu.default, usr.default], + features: {}, + }, + aP = { + name: "ERC20BatchMintable", + namespace: "token.mint.batch", + docLinks: { sdk: "sdk.erc20batchmintable", contracts: "IMulticall" }, + abis: [lu.default, DWe.default, lK.default], + features: {}, + }, + u3 = { + name: "ERC20Mintable", + namespace: "token.mint", + docLinks: { sdk: "sdk.erc20mintable", contracts: "IMintableERC20" }, + abis: [lu.default, DWe.default], + features: { [aP.name]: aP }, + }, + iP = { + name: "ERC20", + namespace: "token", + docLinks: { sdk: "sdk.erc20", contracts: "IERC20" }, + abis: [lu.default], + features: { + [c3.name]: c3, + [u3.name]: u3, + [dWe.name]: dWe, + [o3.name]: o3, + [hWe.name]: hWe, + [pWe.name]: pWe, + [nP.name]: nP, + }, + }, + sP = { + name: "ERC721Burnable", + namespace: "nft.burn", + docLinks: { sdk: "sdk.erc721burnable", contracts: "IBurnableERC721" }, + abis: [no.default, lsr.default], + features: {}, + }, + l3 = { + name: "ERC721Revealable", + namespace: "nft.drop.revealer", + docLinks: { sdk: "sdk.delayedreveal", contracts: "DelayedReveal" }, + abis: [no.default, Yl.default, qWe.default], + features: {}, + }, + oP = { + name: "ERC721TieredDrop", + namespace: "nft.tieredDrop", + docLinks: { sdk: "sdk.erc721tiereddrop", contracts: "TieredDrop" }, + abis: [no.default, gsr.default], + features: {}, + }, + fWe = { + name: "ERC721ClaimConditionsV1", + namespace: "nft.drop.claim", + docLinks: { + sdk: "sdk.erc721claimable", + contracts: "DropSinglePhase_V1", + }, + abis: [no.default, Yl.default, LWe.default], + features: {}, + }, + cP = { + name: "ERC721ClaimConditionsV2", + namespace: "nft.drop.claim", + docLinks: { sdk: "sdk.erc721claimable", contracts: "DropSinglePhase" }, + abis: [no.default, Yl.default, OWe.default], + features: {}, + }, + mWe = { + name: "ERC721ClaimPhasesV1", + namespace: "nft.drop.claim", + docLinks: { sdk: "sdk.erc721claimable", contracts: "Drop" }, + abis: [psr.default], + features: {}, + }, + yWe = { + name: "ERC721ClaimPhasesV2", + namespace: "nft.drop.claim", + docLinks: { sdk: "sdk.erc721claimable", contracts: "Drop" }, + abis: [no.default, Yl.default, NWe.default], + features: {}, + }, + d3 = { + name: "ERC721ClaimCustom", + namespace: "nft.drop.claim", + docLinks: { sdk: "sdk.erc721claimable", contracts: "IClaimableERC721" }, + abis: [no.default, Yl.default, dsr.default], + features: {}, + }, + uP = { + name: "ERC721LazyMintable", + namespace: "nft.drop", + docLinks: { sdk: "sdk.erc721lazymintable", contracts: "LazyMint" }, + abis: [no.default, Yl.default], + features: { + [l3.name]: l3, + [d3.name]: d3, + [fWe.name]: fWe, + [cP.name]: cP, + [mWe.name]: mWe, + [yWe.name]: yWe, + }, + }, + lP = { + name: "ERC721BatchMintable", + namespace: "nft.mint.batch", + docLinks: { sdk: "sdk.erc721batchmintable", contracts: "IMulticall" }, + abis: [no.default, FWe.default, lK.default], + features: {}, + }, + p3 = { + name: "ERC721Mintable", + namespace: "nft.mint", + docLinks: { sdk: "sdk.erc721mintable", contracts: "IMintableERC721" }, + abis: [no.default, FWe.default], + features: { [lP.name]: lP }, + }, + dP = { + name: "ERC721SignatureMintV2", + namespace: "nft.signature", + docLinks: { + sdk: "sdk.erc721signaturemint", + contracts: "ISignatureMintERC721", + }, + abis: [no.default, msr.default], + features: {}, + }, + gWe = { + name: "ERC721SignatureMintV1", + namespace: "nft.signature", + docLinks: { + sdk: "sdk.erc721signaturemint", + contracts: "ISignatureMintERC721", + }, + abis: [ysr.default], + features: {}, + }, + Bj = { + name: "ERC721Enumerable", + namespace: "nft.query.owned", + docLinks: { + sdk: "sdk.erc721enumerable", + contracts: "IERC721Enumerable", + }, + abis: [no.default, hsr.default], + features: {}, + }, + Aw = { + name: "ERC721Supply", + namespace: "nft.query", + docLinks: { sdk: "sdk.erc721supply", contracts: "IERC721Supply" }, + abis: [no.default, fsr.default], + features: { [Bj.name]: Bj }, + }, + pP = { + name: "ERC721", + namespace: "nft", + docLinks: { sdk: "sdk.erc721", contracts: "IERC721" }, + abis: [no.default], + features: { + [sP.name]: sP, + [Aw.name]: Aw, + [p3.name]: p3, + [uP.name]: uP, + [gWe.name]: gWe, + [dP.name]: dP, + [oP.name]: oP, + }, + }, + zg = { + name: "ERC1155Burnable", + namespace: "edition.burn", + docLinks: { sdk: "sdk.erc1155burnable", contracts: "IBurnableERC1155" }, + abis: [Pc.default, bsr.default], + features: {}, + }, + bWe = { + name: "ERC1155ClaimConditionsV1", + namespace: "edition.drop.claim", + docLinks: { + sdk: "sdk.erc1155claimable", + contracts: "DropSinglePhase1155", + }, + abis: [Pc.default, Yl.default, xsr.default], + features: {}, + }, + hP = { + name: "ERC1155ClaimConditionsV2", + namespace: "edition.drop.claim", + docLinks: { + sdk: "sdk.erc1155claimable", + contracts: "DropSinglePhase1155", + }, + abis: [Pc.default, Yl.default, _sr.default], + features: {}, + }, + vWe = { + name: "ERC1155ClaimPhasesV2", + namespace: "edition.drop.claim", + docLinks: { sdk: "sdk.erc1155claimable", contracts: "Drop1155" }, + abis: [Pc.default, Yl.default, wsr.default], + features: {}, + }, + wWe = { + name: "ERC1155ClaimPhasesV1", + namespace: "edition.drop.claim", + docLinks: { sdk: "sdk.erc1155claimable", contracts: "Drop1155" }, + abis: [WWe.default], + features: {}, + }, + h3 = { + name: "ERC1155ClaimCustom", + namespace: "edition.drop.claim", + docLinks: { + sdk: "sdk.erc1155claimable", + contracts: "IClaimableERC1155", + }, + abis: [Pc.default, Yl.default, vsr.default], + features: {}, + }, + Pw = { + name: "ERC1155Revealable", + namespace: "edition.drop.revealer", + docLinks: { sdk: "sdk.drop.delayedreveal", contracts: "DelayedReveal" }, + abis: [Pc.default, Yl.default, qWe.default], + features: {}, + }, + fP = { + name: "ERC1155LazyMintableV2", + namespace: "edition.drop", + docLinks: { sdk: "sdk.erc1155droppable", contracts: "LazyMint" }, + abis: [Pc.default, Yl.default], + features: { + [Pw.name]: Pw, + [h3.name]: h3, + [bWe.name]: bWe, + [hP.name]: hP, + [vWe.name]: vWe, + }, + }, + _We = { + name: "ERC1155LazyMintableV1", + namespace: "edition.drop", + docLinks: { sdk: "sdk.erc1155droppable", contracts: "LazyMint" }, + abis: [WWe.default], + features: { [wWe.name]: wWe }, + }, + mP = { + name: "ERC1155SignatureMintable", + namespace: "edition.signature", + docLinks: { + sdk: "sdk.erc1155signaturemintable", + contracts: "ISignatureMintERC1155", + }, + abis: [Pc.default, Esr.default], + features: {}, + }, + yP = { + name: "ERC1155BatchMintable", + namespace: "edition.mint.batch", + docLinks: { sdk: "sdk.erc1155batchmintable", contracts: "IMulticall" }, + abis: [Pc.default, UWe.default, lK.default], + features: {}, + }, + jg = { + name: "ERC1155Mintable", + namespace: "edition.mint", + docLinks: { sdk: "sdk.erc1155mintable", contracts: "IMintableERC1155" }, + abis: [Pc.default, UWe.default], + features: { [yP.name]: yP }, + }, + Kg = { + name: "ERC1155Enumerable", + namespace: "edition.query", + docLinks: { sdk: "sdk.erc1155", contracts: "IERC1155" }, + abis: [Pc.default, Tsr.default], + features: {}, + }, + gP = { + name: "ERC1155", + namespace: "edition", + docLinks: { + sdk: "sdk.erc1155enumerable", + contracts: "IERC1155Enumerable", + }, + abis: [Pc.default], + features: { + [zg.name]: zg, + [Kg.name]: Kg, + [jg.name]: jg, + [_We.name]: _We, + [fP.name]: fP, + [Pw.name]: Pw, + [mP.name]: mP, + }, + }, + scr = { + [iP.name]: iP, + [pP.name]: pP, + [gP.name]: gP, + [YM.name]: YM, + [JM.name]: JM, + [$M.name]: $M, + [ZM.name]: ZM, + [QM.name]: QM, + [kj.name]: kj, + [XM.name]: XM, + [uWe.name]: uWe, + [Sj.name]: Sj, + [lWe.name]: lWe, + [Mj.name]: Mj, + [Pj.name]: Pj, + [Rj.name]: Rj, + }, + Nj; + try { + Nj = new TextDecoder(); + } catch {} + var Mt, + Vg, + ht = 0, + ocr = 105, + ccr = 57342, + ucr = 57343, + xWe = 57337, + TWe = 6, + Tw = {}, + fn = {}, + Pi, + bP, + vP = 0, + f3 = 0, + us, + Vd, + xi = [], + Oj = [], + uu, + Sc, + e3, + EWe = { useRecords: !1, mapsAsObjects: !0 }, + Lj = !1, + Rw = class { + constructor(e) { + if ( + e && + ((e.keyMap || e._keyMap) && + !e.useRecords && + ((e.useRecords = !1), (e.mapsAsObjects = !0)), + e.useRecords === !1 && + e.mapsAsObjects === void 0 && + (e.mapsAsObjects = !0), + e.getStructures && (e.getShared = e.getStructures), + e.getShared && + !e.structures && + ((e.structures = []).uninitialized = !0), + e.keyMap) + ) { + this.mapKey = new Map(); + for (let [t, n] of Object.entries(e.keyMap)) this.mapKey.set(n, t); + } + Object.assign(this, e); + } + decodeKey(e) { + return (this.keyMap && this.mapKey.get(e)) || e; + } + decode(e, t) { + if (Mt) + return YUe( + () => ( + $Ue(), + this ? this.decode(e, t) : Rw.prototype.decode.call(EWe, e, t) + ) + ); + (Vg = t > -1 ? t : e.length), + (ht = 0), + (f3 = 0), + (bP = null), + (us = null), + (Mt = e); + try { + Sc = + e.dataView || + (e.dataView = new DataView(e.buffer, e.byteOffset, e.byteLength)); + } catch (n) { + throw ( + ((Mt = null), + e instanceof Uint8Array + ? n + : new Error( + "Source must be a Uint8Array or Buffer but was a " + + (e && typeof e == "object" + ? e.constructor.name + : typeof e) + )) + ); + } + if (this instanceof Rw) { + if ( + ((fn = this), + (uu = + this.sharedValues && + (this.pack + ? new Array(this.maxPrivatePackedValues || 16).concat( + this.sharedValues + ) + : this.sharedValues)), + this.structures) + ) + return (Pi = this.structures), CWe(); + (!Pi || Pi.length > 0) && (Pi = []); + } else (fn = EWe), (!Pi || Pi.length > 0) && (Pi = []), (uu = null); + return CWe(); + } + }; + function CWe() { + try { + let r = Sn(); + if (us) { + if (ht >= us.postBundlePosition) { + let e = new Error("Unexpected bundle position"); + throw ((e.incomplete = !0), e); + } + (ht = us.postBundlePosition), (us = null); + } + if (ht == Vg) (Pi = null), (Mt = null), Vd && (Vd = null); + else if (ht > Vg) { + let e = new Error("Unexpected end of CBOR data"); + throw ((e.incomplete = !0), e); + } else if (!Lj) + throw new Error("Data read, but end of buffer not reached"); + return r; + } catch (r) { + throw ( + ($Ue(), + (r instanceof RangeError || + r.message.startsWith("Unexpected end of buffer")) && + (r.incomplete = !0), + r) + ); + } + } + function Sn() { + let r = Mt[ht++], + e = r >> 5; + if (((r = r & 31), r > 23)) + switch (r) { + case 24: + r = Mt[ht++]; + break; + case 25: + if (e == 7) return hcr(); + (r = Sc.getUint16(ht)), (ht += 2); + break; + case 26: + if (e == 7) { + let t = Sc.getFloat32(ht); + if (fn.useFloat32 > 2) { + let n = JUe[((Mt[ht] & 127) << 1) | (Mt[ht + 1] >> 7)]; + return (ht += 4), ((n * t + (t > 0 ? 0.5 : -0.5)) >> 0) / n; + } + return (ht += 4), t; + } + (r = Sc.getUint32(ht)), (ht += 4); + break; + case 27: + if (e == 7) { + let t = Sc.getFloat64(ht); + return (ht += 8), t; + } + if (e > 1) { + if (Sc.getUint32(ht) > 0) + throw new Error( + "JavaScript does not support arrays, maps, or strings with length over 4294967295" + ); + r = Sc.getUint32(ht + 4); + } else + fn.int64AsNumber + ? ((r = Sc.getUint32(ht) * 4294967296), + (r += Sc.getUint32(ht + 4))) + : (r = Sc.getBigUint64(ht)); + ht += 8; + break; + case 31: + switch (e) { + case 2: + case 3: + throw new Error( + "Indefinite length not supported for byte or text strings" + ); + case 4: + let t = [], + n, + a = 0; + for (; (n = Sn()) != Tw; ) t[a++] = n; + return e == 4 ? t : e == 3 ? t.join("") : P.Buffer.concat(t); + case 5: + let i; + if (fn.mapsAsObjects) { + let s = {}; + if (fn.keyMap) + for (; (i = Sn()) != Tw; ) s[ch(fn.decodeKey(i))] = Sn(); + else for (; (i = Sn()) != Tw; ) s[ch(i)] = Sn(); + return s; + } else { + e3 && ((fn.mapsAsObjects = !0), (e3 = !1)); + let s = new Map(); + if (fn.keyMap) + for (; (i = Sn()) != Tw; ) s.set(fn.decodeKey(i), Sn()); + else for (; (i = Sn()) != Tw; ) s.set(i, Sn()); + return s; + } + case 7: + return Tw; + default: + throw new Error( + "Invalid major type for indefinite length " + e + ); + } + default: + throw new Error("Unknown token " + r); + } + switch (e) { + case 0: + return r; + case 1: + return ~r; + case 2: + return pcr(r); + case 3: + if (f3 >= ht) return bP.slice(ht - vP, (ht += r) - vP); + if (f3 == 0 && Vg < 140 && r < 32) { + let a = r < 16 ? KUe(r) : dcr(r); + if (a != null) return a; + } + return lcr(r); + case 4: + let t = new Array(r); + for (let a = 0; a < r; a++) t[a] = Sn(); + return t; + case 5: + if (fn.mapsAsObjects) { + let a = {}; + if (fn.keyMap) + for (let i = 0; i < r; i++) a[ch(fn.decodeKey(Sn()))] = Sn(); + else for (let i = 0; i < r; i++) a[ch(Sn())] = Sn(); + return a; + } else { + e3 && ((fn.mapsAsObjects = !0), (e3 = !1)); + let a = new Map(); + if (fn.keyMap) + for (let i = 0; i < r; i++) a.set(fn.decodeKey(Sn()), Sn()); + else for (let i = 0; i < r; i++) a.set(Sn(), Sn()); + return a; + } + case 6: + if (r >= xWe) { + let a = Pi[r & 8191]; + if (a) return a.read || (a.read = Dj(a)), a.read(); + if (r < 65536) { + if (r == ucr) return Fj(Sn()); + if (r == ccr) { + let i = t3(), + s = Sn(); + for (let c = 2; c < i; c++) Fj([s++, Sn()]); + return Sn(); + } else if (r == xWe) return vcr(); + if (fn.getShared && (kK(), (a = Pi[r & 8191]), a)) + return a.read || (a.read = Dj(a)), a.read(); + } + } + let n = xi[r]; + if (n) return n.handlesRead ? n(Sn) : n(Sn()); + { + let a = Sn(); + for (let i = 0; i < Oj.length; i++) { + let s = Oj[i](r, a); + if (s !== void 0) return s; + } + return new Bw(a, r); + } + case 7: + switch (r) { + case 20: + return !1; + case 21: + return !0; + case 22: + return null; + case 23: + return; + case 31: + default: + let a = (uu || Hg())[r]; + if (a !== void 0) return a; + throw new Error("Unknown token " + r); + } + default: + if (isNaN(r)) { + let a = new Error("Unexpected end of CBOR data"); + throw ((a.incomplete = !0), a); + } + throw new Error("Unknown CBOR token " + r); + } + } + var IWe = /^[a-zA-Z_$][a-zA-Z\d_$]*$/; + function Dj(r) { + function e() { + let t = Mt[ht++]; + if (((t = t & 31), t > 23)) + switch (t) { + case 24: + t = Mt[ht++]; + break; + case 25: + (t = Sc.getUint16(ht)), (ht += 2); + break; + case 26: + (t = Sc.getUint32(ht)), (ht += 4); + break; + default: + throw new Error("Expected array header, but got " + Mt[ht - 1]); + } + let n = this.compiledReader; + for (; n; ) { + if (n.propertyCount === t) return n(Sn); + n = n.next; + } + if (this.slowReads++ >= 3) { + let i = this.length == t ? this : this.slice(0, t); + return ( + (n = fn.keyMap + ? new Function( + "r", + "return {" + + i + .map((s) => fn.decodeKey(s)) + .map((s) => + IWe.test(s) + ? ch(s) + ":r()" + : "[" + JSON.stringify(s) + "]:r()" + ) + .join(",") + + "}" + ) + : new Function( + "r", + "return {" + + i + .map((s) => + IWe.test(s) + ? ch(s) + ":r()" + : "[" + JSON.stringify(s) + "]:r()" + ) + .join(",") + + "}" + )), + this.compiledReader && (n.next = this.compiledReader), + (n.propertyCount = t), + (this.compiledReader = n), + n(Sn) + ); + } + let a = {}; + if (fn.keyMap) + for (let i = 0; i < t; i++) a[ch(fn.decodeKey(this[i]))] = Sn(); + else for (let i = 0; i < t; i++) a[ch(this[i])] = Sn(); + return a; + } + return (r.slowReads = 0), e; + } + function ch(r) { + return r === "__proto__" ? "__proto_" : r; + } + var lcr = qj; + function qj(r) { + let e; + if (r < 16 && (e = KUe(r))) return e; + if (r > 64 && Nj) return Nj.decode(Mt.subarray(ht, (ht += r))); + let t = ht + r, + n = []; + for (e = ""; ht < t; ) { + let a = Mt[ht++]; + if ((a & 128) === 0) n.push(a); + else if ((a & 224) === 192) { + let i = Mt[ht++] & 63; + n.push(((a & 31) << 6) | i); + } else if ((a & 240) === 224) { + let i = Mt[ht++] & 63, + s = Mt[ht++] & 63; + n.push(((a & 31) << 12) | (i << 6) | s); + } else if ((a & 248) === 240) { + let i = Mt[ht++] & 63, + s = Mt[ht++] & 63, + c = Mt[ht++] & 63, + l = ((a & 7) << 18) | (i << 12) | (s << 6) | c; + l > 65535 && + ((l -= 65536), + n.push(((l >>> 10) & 1023) | 55296), + (l = 56320 | (l & 1023))), + n.push(l); + } else n.push(a); + n.length >= 4096 && ((e += Ls.apply(String, n)), (n.length = 0)); + } + return n.length > 0 && (e += Ls.apply(String, n)), e; + } + var Ls = String.fromCharCode; + function dcr(r) { + let e = ht, + t = new Array(r); + for (let n = 0; n < r; n++) { + let a = Mt[ht++]; + if ((a & 128) > 0) { + ht = e; + return; + } + t[n] = a; + } + return Ls.apply(String, t); + } + function KUe(r) { + if (r < 4) + if (r < 2) { + if (r === 0) return ""; + { + let e = Mt[ht++]; + if ((e & 128) > 1) { + ht -= 1; + return; + } + return Ls(e); + } + } else { + let e = Mt[ht++], + t = Mt[ht++]; + if ((e & 128) > 0 || (t & 128) > 0) { + ht -= 2; + return; + } + if (r < 3) return Ls(e, t); + let n = Mt[ht++]; + if ((n & 128) > 0) { + ht -= 3; + return; + } + return Ls(e, t, n); + } + else { + let e = Mt[ht++], + t = Mt[ht++], + n = Mt[ht++], + a = Mt[ht++]; + if ((e & 128) > 0 || (t & 128) > 0 || (n & 128) > 0 || (a & 128) > 0) { + ht -= 4; + return; + } + if (r < 6) { + if (r === 4) return Ls(e, t, n, a); + { + let i = Mt[ht++]; + if ((i & 128) > 0) { + ht -= 5; + return; + } + return Ls(e, t, n, a, i); + } + } else if (r < 8) { + let i = Mt[ht++], + s = Mt[ht++]; + if ((i & 128) > 0 || (s & 128) > 0) { + ht -= 6; + return; + } + if (r < 7) return Ls(e, t, n, a, i, s); + let c = Mt[ht++]; + if ((c & 128) > 0) { + ht -= 7; + return; + } + return Ls(e, t, n, a, i, s, c); + } else { + let i = Mt[ht++], + s = Mt[ht++], + c = Mt[ht++], + l = Mt[ht++]; + if ( + (i & 128) > 0 || + (s & 128) > 0 || + (c & 128) > 0 || + (l & 128) > 0 + ) { + ht -= 8; + return; + } + if (r < 10) { + if (r === 8) return Ls(e, t, n, a, i, s, c, l); + { + let d = Mt[ht++]; + if ((d & 128) > 0) { + ht -= 9; + return; + } + return Ls(e, t, n, a, i, s, c, l, d); + } + } else if (r < 12) { + let d = Mt[ht++], + m = Mt[ht++]; + if ((d & 128) > 0 || (m & 128) > 0) { + ht -= 10; + return; + } + if (r < 11) return Ls(e, t, n, a, i, s, c, l, d, m); + let w = Mt[ht++]; + if ((w & 128) > 0) { + ht -= 11; + return; + } + return Ls(e, t, n, a, i, s, c, l, d, m, w); + } else { + let d = Mt[ht++], + m = Mt[ht++], + w = Mt[ht++], + C = Mt[ht++]; + if ( + (d & 128) > 0 || + (m & 128) > 0 || + (w & 128) > 0 || + (C & 128) > 0 + ) { + ht -= 12; + return; + } + if (r < 14) { + if (r === 12) return Ls(e, t, n, a, i, s, c, l, d, m, w, C); + { + let I = Mt[ht++]; + if ((I & 128) > 0) { + ht -= 13; + return; + } + return Ls(e, t, n, a, i, s, c, l, d, m, w, C, I); + } + } else { + let I = Mt[ht++], + k = Mt[ht++]; + if ((I & 128) > 0 || (k & 128) > 0) { + ht -= 14; + return; + } + if (r < 15) return Ls(e, t, n, a, i, s, c, l, d, m, w, C, I, k); + let O = Mt[ht++]; + if ((O & 128) > 0) { + ht -= 15; + return; + } + return Ls(e, t, n, a, i, s, c, l, d, m, w, C, I, k, O); + } + } + } + } + } + function pcr(r) { + return fn.copyBuffers + ? Uint8Array.prototype.slice.call(Mt, ht, (ht += r)) + : Mt.subarray(ht, (ht += r)); + } + var VUe = new Float32Array(1), + MM = new Uint8Array(VUe.buffer, 0, 4); + function hcr() { + let r = Mt[ht++], + e = Mt[ht++], + t = (r & 127) >> 2; + if (t === 31) return e || r & 3 ? NaN : r & 128 ? -1 / 0 : 1 / 0; + if (t === 0) { + let n = (((r & 3) << 8) | e) / 16777216; + return r & 128 ? -n : n; + } + return ( + (MM[3] = (r & 128) | ((t >> 1) + 56)), + (MM[2] = ((r & 7) << 5) | (e >> 3)), + (MM[1] = e << 5), + (MM[0] = 0), + VUe[0] + ); + } + var Bw = class { + constructor(e, t) { + (this.value = e), (this.tag = t); + } + }; + xi[0] = (r) => new Date(r); + xi[1] = (r) => new Date(Math.round(r * 1e3)); + xi[2] = (r) => { + let e = BigInt(0); + for (let t = 0, n = r.byteLength; t < n; t++) + e = (BigInt(r[t]) + e) << BigInt(8); + return e; + }; + xi[3] = (r) => BigInt(-1) - xi[2](r); + xi[4] = (r) => Number(r[1] + "e" + r[0]); + xi[5] = (r) => r[1] * Math.exp(r[0] * Math.log(2)); + var Fj = (r) => { + let e = r[0] - 57344, + t = r[1], + n = Pi[e]; + n && + n.isShared && + ((Pi.restoreStructures || (Pi.restoreStructures = []))[e] = n), + (Pi[e] = t), + (t.read = Dj(t)); + let a = {}; + if (fn.keyMap) + for (let i = 2, s = r.length; i < s; i++) { + let c = fn.decodeKey(t[i - 2]); + a[ch(c)] = r[i]; + } + else + for (let i = 2, s = r.length; i < s; i++) { + let c = t[i - 2]; + a[ch(c)] = r[i]; + } + return a; + }; + xi[ocr] = Fj; + xi[14] = (r) => + us ? us[0].slice(us.position0, (us.position0 += r)) : new Bw(r, 14); + xi[15] = (r) => + us ? us[1].slice(us.position1, (us.position1 += r)) : new Bw(r, 15); + var fcr = { Error, RegExp }; + xi[27] = (r) => (fcr[r[0]] || Error)(r[1], r[2]); + var GUe = (r) => { + if (Mt[ht++] != 132) + throw new Error( + "Packed values structure must be followed by a 4 element array" + ); + let e = r(); + return ( + (uu = uu ? e.concat(uu.slice(e.length)) : e), + (uu.prefixes = r()), + (uu.suffixes = r()), + r() + ); + }; + GUe.handlesRead = !0; + xi[51] = GUe; + xi[TWe] = (r) => { + if (!uu) + if (fn.getShared) kK(); + else return new Bw(r, TWe); + if (typeof r == "number") return uu[16 + (r >= 0 ? 2 * r : -2 * r - 1)]; + throw new Error("No support for non-integer packed references yet"); + }; + xi[25] = (r) => stringRefs[r]; + xi[256] = (r) => { + stringRefs = []; + try { + return r(); + } finally { + stringRefs = null; + } + }; + xi[256].handlesRead = !0; + xi[28] = (r) => { + Vd || ((Vd = new Map()), (Vd.id = 0)); + let e = Vd.id++, + t = Mt[ht], + n; + t >> 5 == 4 ? (n = []) : (n = {}); + let a = { target: n }; + Vd.set(e, a); + let i = r(); + return a.used ? Object.assign(n, i) : ((a.target = i), i); + }; + xi[28].handlesRead = !0; + xi[29] = (r) => { + let e = Vd.get(r); + return (e.used = !0), e.target; + }; + xi[258] = (r) => new Set(r); + (xi[259] = (r) => ( + fn.mapsAsObjects && ((fn.mapsAsObjects = !1), (e3 = !0)), r() + )).handlesRead = !0; + function Ew(r, e) { + return typeof r == "string" + ? r + e + : r instanceof Array + ? r.concat(e) + : Object.assign({}, r, e); + } + function Hg() { + if (!uu) + if (fn.getShared) kK(); + else throw new Error("No packed values available"); + return uu; + } + var mcr = 1399353956; + Oj.push((r, e) => { + if (r >= 225 && r <= 255) return Ew(Hg().prefixes[r - 224], e); + if (r >= 28704 && r <= 32767) return Ew(Hg().prefixes[r - 28672], e); + if (r >= 1879052288 && r <= 2147483647) + return Ew(Hg().prefixes[r - 1879048192], e); + if (r >= 216 && r <= 223) return Ew(e, Hg().suffixes[r - 216]); + if (r >= 27647 && r <= 28671) return Ew(e, Hg().suffixes[r - 27639]); + if (r >= 1811940352 && r <= 1879048191) + return Ew(e, Hg().suffixes[r - 1811939328]); + if (r == mcr) + return { packedValues: uu, structures: Pi.slice(0), version: e }; + if (r == 55799) return e; + }); + var ycr = new Uint8Array(new Uint16Array([1]).buffer)[0] == 1, + AWe = [Uint8Array], + gcr = [64]; + for (let r = 0; r < AWe.length; r++) bcr(AWe[r], gcr[r]); + function bcr(r, e) { + let t = "get" + r.name.slice(0, -5); + typeof r != "function" && (r = null); + let n = r.BYTES_PER_ELEMENT; + for (let a = 0; a < 2; a++) { + if (!a && n == 1) continue; + let i = n == 2 ? 1 : n == 4 ? 2 : 3; + xi[a ? e : e - 4] = + n == 1 || a == ycr + ? (s) => { + if (!r) + throw new Error("Could not find typed array for code " + e); + return new r(Uint8Array.prototype.slice.call(s, 0).buffer); + } + : (s) => { + if (!r) + throw new Error("Could not find typed array for code " + e); + let c = new DataView(s.buffer, s.byteOffset, s.byteLength), + l = s.length >> i, + d = new r(l), + m = c[t]; + for (let w = 0; w < l; w++) d[w] = m.call(c, w << i, a); + return d; + }; + } + } + function vcr() { + let r = t3(), + e = ht + Sn(); + for (let n = 2; n < r; n++) { + let a = t3(); + ht += a; + } + let t = ht; + return ( + (ht = e), + (us = [qj(t3()), qj(t3())]), + (us.position0 = 0), + (us.position1 = 0), + (us.postBundlePosition = ht), + (ht = t), + Sn() + ); + } + function t3() { + let r = Mt[ht++] & 31; + if (r > 23) + switch (r) { + case 24: + r = Mt[ht++]; + break; + case 25: + (r = Sc.getUint16(ht)), (ht += 2); + break; + case 26: + (r = Sc.getUint32(ht)), (ht += 4); + break; + } + return r; + } + function kK() { + if (fn.getShared) { + let r = YUe(() => ((Mt = null), fn.getShared())) || {}, + e = r.structures || []; + (fn.sharedVersion = r.version), + (uu = fn.sharedValues = r.packedValues), + Pi === !0 + ? (fn.structures = Pi = e) + : Pi.splice.apply(Pi, [0, e.length].concat(e)); + } + } + function YUe(r) { + let e = Vg, + t = ht, + n = vP, + a = f3, + i = bP, + s = Vd, + c = us, + l = new Uint8Array(Mt.slice(0, Vg)), + d = Pi, + m = fn, + w = Lj, + C = r(); + return ( + (Vg = e), + (ht = t), + (vP = n), + (f3 = a), + (bP = i), + (Vd = s), + (us = c), + (Mt = l), + (Lj = w), + (Pi = d), + (fn = m), + (Sc = new DataView(Mt.buffer, Mt.byteOffset, Mt.byteLength)), + C + ); + } + function $Ue() { + (Mt = null), (Vd = null), (Pi = null); + } + var JUe = new Array(147); + for (let r = 0; r < 256; r++) + JUe[r] = Number("1e" + Math.floor(45.15 - r * 0.30103)); + var wcr = new Rw({ useRecords: !1 }), + _cr = wcr.decode; + function xcr(r, e) { + return SK(r, e.abis); + } + function Tcr(r, e) { + return SK(r.abi, [e]); + } + function SK(r, e) { + let t = Nw(r), + n = e.flatMap((i) => Nw(i)); + return ( + t.filter( + (i) => + n.find( + (c) => + c.name === i.name && + c.inputs.length === i.inputs.length && + c.inputs.every((l, d) => + l.type === "tuple" || l.type === "tuple[]" + ? l.type === i.inputs[d].type && + l.components?.every( + (m, w) => m.type === i.inputs[d].components?.[w]?.type + ) + : l.type === i.inputs[d].type + ) + ) !== void 0 + ).length === n.length + ); + } + async function ZUe(r, e) { + let t = await Ow(r, e); + return MK(t.abi); + } + async function QUe(r, e) { + let t = await Ow(r, e); + return Nw(t.abi, t.metadata); + } + function XUe(r, e, t) { + return ( + e?.output?.userdoc?.[t]?.[ + Object.keys(e?.output?.userdoc[t] || {}).find((n) => + n.includes(r || "unknown") + ) || "" + ]?.notice || + e?.output?.devdoc?.[t]?.[ + Object.keys(e?.output?.devdoc[t] || {}).find((n) => + n.includes(r || "unknown") + ) || "" + ]?.details + ); + } + function MK(r) { + for (let e of r) if (e.type === "constructor") return e.inputs || []; + return []; + } + function eHe(r, e) { + for (let t of r) + if (t.type === "function" && t.name === e) return t.inputs || []; + return []; + } + function Nw(r, e) { + let t = (r || []).filter((a) => a.type === "function"), + n = []; + for (let a of t) { + let i = XUe(a.name, e, "methods"), + s = + a.inputs?.map((w) => `${w.name || "key"}: ${Wj(w)}`)?.join(", ") || + "", + c = s ? `, ${s}` : "", + l = a.outputs?.map((w) => Wj(w, !0))?.join(", "), + d = l ? `: Promise<${l}>` : ": Promise", + m = `contract.call("${a.name}"${c})${d}`; + n.push({ + inputs: a.inputs || [], + outputs: a.outputs || [], + name: a.name || "unknown", + signature: m, + stateMutability: a.stateMutability || "", + comment: i, + }); + } + return n; + } + function tHe(r, e) { + let t = (r || []).filter((a) => a.type === "event"), + n = []; + for (let a of t) { + let i = XUe(a.name, e, "events"); + n.push({ + inputs: a.inputs || [], + outputs: a.outputs || [], + name: a.name || "unknown", + comment: i, + }); + } + return n; + } + function Wj(r) { + let e = + arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1, + t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !1, + n = r.type, + a = !1; + return ( + n.endsWith("[]") && ((a = !0), (n = n.slice(0, -2))), + n.startsWith("bytes") && (n = "BytesLike"), + (n.startsWith("uint") || n.startsWith("int")) && + (n = e ? "BigNumber" : "BigNumberish"), + n.startsWith("bool") && (n = "boolean"), + n === "address" && (n = "string"), + n === "tuple" && + r.components && + (n = `{ ${r.components.map((i) => Wj(i, !1, !0)).join(", ")} }`), + a && (n += "[]"), + t && (n = `${r.name}: ${n}`), + n + ); + } + function rHe(r) { + if (r.startsWith("0x363d3d373d3d3d363d73")) return `0x${r.slice(22, 62)}`; + if (r.startsWith("0x36603057343d5230")) return `0x${r.slice(122, 162)}`; + if (r.startsWith("0x3d3d3d3d363d3d37363d73")) + return `0x${r.slice(24, 64)}`; + if (r.startsWith("0x366000600037611000600036600073")) + return `0x${r.slice(32, 72)}`; + } + async function m3(r, e) { + let t = await e.getCode(r); + if (t === "0x") { + let n = await e.getNetwork(); + throw new Error( + `Contract at ${r} does not exist on chain '${n.name}' (chainId: ${n.chainId})` + ); + } + try { + let n = rHe(t); + if (n) return await m3(n, e); + } catch {} + try { + let n = await e.getStorageAt( + r, + ie.BigNumber.from( + "0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc" + ) + ), + a = ie.ethers.utils.hexStripZeros(n); + if (a !== "0x") return await m3(a, e); + } catch {} + return await nHe(t); + } + function nHe(r) { + let e = Ecr(r), + t = e[e.length - 2] * 256 + e[e.length - 1], + n = Uint8Array.from(e.slice(e.length - 2 - t, -2)), + a = _cr(n); + if ("ipfs" in a && a.ipfs) + try { + return `ipfs://${Jsr.default.encode(a.ipfs)}`; + } catch (i) { + console.warn("feature-detection ipfs cbor failed", i); + } + } + function Ecr(r) { + if (((r = r.toString(16)), r.startsWith("0x") || (r = `0x${r}`), !Ccr(r))) + throw new Error(`Given value "${r}" is not a valid hex string.`); + r = r.replace(/^0x/i, ""); + let e = []; + for (let t = 0; t < r.length; t += 2) + e.push(parseInt(r.slice(t, t + 2), 16)); + return e; + } + function Ccr(r) { + return ( + (typeof r == "string" || typeof r == "number") && + /^(-)?0x[0-9a-f]*$/i.test(r.toString()) + ); + } + async function PK(r, e) { + return I3.parse(JSON.parse(await (await e.download(r)).text())); + } + async function Ow(r, e) { + let t = await PK(r, e), + n = await (await e.download(t.bytecodeUri)).text(), + a = await VP(t.metadataUri, e); + return kHe.parse({ ...t, ...a, bytecode: n }); + } + async function RK(r, e) { + let t = await (await e.download(r)).text(); + return THe.parse(JSON.parse(t)); + } + function C3(r) { + let e = + arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : scr, + t = {}; + for (let n in e) { + let a = e[n], + i = xcr(r, a), + s = C3(r, a.features); + t[n] = { ...a, features: s, enabled: i }; + } + return t; + } + function BK(r, e) { + if (!!r) + for (let t in r) { + let n = r[t]; + n.enabled && e.push(n), BK(n.features, e); + } + } + function Icr(r) { + let e = []; + return BK(C3(r), e), e; + } + function Acr(r) { + let e = []; + return BK(C3(r), e), e.map((t) => t.name); + } + function NK(r, e) { + let t = C3(r); + return aHe(t, e); + } + function gr(r, e) { + if (!r) throw new Rf(e); + return r; + } + function Ot(r, e) { + return NK(Jd.parse(r.abi), e); + } + function aHe(r, e) { + let t = Object.keys(r); + if (!t.includes(e)) { + let a = !1; + for (let i of t) { + let s = r[i]; + if (((a = aHe(s.features, e)), a)) break; + } + return a; + } + return r[e].enabled; + } + function Jo(r, e) { + return r in e.readContract.functions; + } + Q.ListingType = void 0; + (function (r) { + (r[(r.Direct = 0)] = "Direct"), (r[(r.Auction = 1)] = "Auction"); + })(Q.ListingType || (Q.ListingType = {})); + Q.Status = void 0; + (function (r) { + (r[(r.UNSET = 0)] = "UNSET"), + (r[(r.Created = 1)] = "Created"), + (r[(r.Completed = 2)] = "Completed"), + (r[(r.Cancelled = 3)] = "Cancelled"), + (r[(r.Active = 4)] = "Active"), + (r[(r.Expired = 5)] = "Expired"); + })(Q.Status || (Q.Status = {})); + Q.ProposalState = void 0; + (function (r) { + (r[(r.Pending = 0)] = "Pending"), + (r[(r.Active = 1)] = "Active"), + (r[(r.Canceled = 2)] = "Canceled"), + (r[(r.Defeated = 3)] = "Defeated"), + (r[(r.Succeeded = 4)] = "Succeeded"), + (r[(r.Queued = 5)] = "Queued"), + (r[(r.Expired = 6)] = "Expired"), + (r[(r.Executed = 7)] = "Executed"); + })(Q.ProposalState || (Q.ProposalState = {})); + Q.VoteType = void 0; + (function (r) { + (r[(r.Against = 0)] = "Against"), + (r[(r.For = 1)] = "For"), + (r[(r.Abstain = 2)] = "Abstain"); + })(Q.VoteType || (Q.VoteType = {})); + Q.ClaimEligibility = void 0; + (function (r) { + (r.NotEnoughSupply = "There is not enough supply to claim."), + (r.AddressNotAllowed = "This address is not on the allowlist."), + (r.WaitBeforeNextClaimTransaction = + "Not enough time since last claim transaction. Please wait."), + (r.AlreadyClaimed = "You have already claimed the token."), + (r.NotEnoughTokens = + "There are not enough tokens in the wallet to pay for the claim."), + (r.NoActiveClaimPhase = + "There is no active claim phase at the moment. Please check back in later."), + (r.NoClaimConditionSet = "There is no claim condition set."), + (r.NoWallet = "No wallet connected."), + (r.Unknown = "No claim conditions found."); + })(Q.ClaimEligibility || (Q.ClaimEligibility = {})); + var y3 = class { + constructor(e) { + ue._defineProperty(this, "contractWrapper", void 0), + (this.contractWrapper = e); + } + async gasCostOf(e, t) { + let n = await this.contractWrapper.getPreferredGasPrice(), + a = await this.contractWrapper.estimateGas(e, t); + return ie.ethers.utils.formatEther(a.mul(n)); + } + async gasLimitOf(e, t) { + return this.contractWrapper.estimateGas(e, t); + } + async currentGasPriceInGwei() { + let e = await this.contractWrapper.getProvider().getGasPrice(); + return ie.ethers.utils.formatUnits(e, "gwei"); + } + }, + Gl = class { + static make(e) { + return new Gl(e); + } + constructor(e) { + ue._defineProperty(this, "contractWrapper", void 0), + ue._defineProperty(this, "functionName", void 0), + ue._defineProperty(this, "args", void 0), + ue._defineProperty(this, "overrides", void 0), + ue._defineProperty(this, "encoder", void 0), + ue._defineProperty(this, "estimator", void 0), + (this.contractWrapper = e.contractWrapper), + (this.functionName = e.functionName), + (this.args = e.args || []), + (this.overrides = e.overrides), + (this.encoder = new Mw(this.contractWrapper)), + (this.estimator = new y3(this.contractWrapper)); + } + overrideGasLimit(e) { + return (this.overrides = { ...this.overrides, gasLimit: e }), this; + } + overrideGasPrice(e) { + return (this.overrides = { ...this.overrides, gasPrice: e }), this; + } + overrideNonce(e) { + return (this.overrides = { ...this.overrides, nonce: e }), this; + } + overrideValue(e) { + return (this.overrides = { ...this.overrides, value: e }), this; + } + async estimateGasLimit() { + return await this.estimator.gasLimitOf(this.functionName, [ + ...this.args, + this.overrides || {}, + ]); + } + async estimateGasCostInEther() { + return await this.estimator.gasCostOf(this.functionName, [ + ...this.args, + this.overrides || {}, + ]); + } + async encodeFunctionData() { + return this.encoder.encode(this.functionName, this.args); + } + async submit() { + return await this.contractWrapper.sendTransactionByFunction( + this.functionName, + this.args, + this.overrides || {} + ); + } + async execute() { + return { + receipt: await this.contractWrapper.sendTransaction( + this.functionName, + this.args, + this.overrides || {} + ), + }; + } + }, + g3 = class { + constructor(e, t, n) { + ue._defineProperty(this, "contractWrapper", void 0), + ue._defineProperty(this, "metadata", void 0), + ue._defineProperty(this, "storage", void 0), + (this.storage = n), + (this.contractWrapper = e), + (this.metadata = t); + } + async getActive(e) { + let t = await this.get(), + n = await this.metadata.get(); + return await GM( + t, + await this.getTokenDecimals(), + this.contractWrapper.getProvider(), + n.merkle || {}, + this.storage, + e?.withAllowList || !1 + ); + } + async get(e) { + if (this.isLegacySinglePhaseDrop(this.contractWrapper)) { + let t = await this.contractWrapper.readContract.claimCondition(); + return KM(t); + } else if (this.isLegacyMultiPhaseDrop(this.contractWrapper)) { + let t = + e !== void 0 + ? e + : await this.contractWrapper.readContract.getActiveClaimConditionId(), + n = await this.contractWrapper.readContract.getClaimConditionById( + t + ); + return KM(n); + } else if (this.isNewSinglePhaseDrop(this.contractWrapper)) { + let t = await this.contractWrapper.readContract.claimCondition(); + return VM(t); + } else if (this.isNewMultiphaseDrop(this.contractWrapper)) { + let t = + e !== void 0 + ? e + : await this.contractWrapper.readContract.getActiveClaimConditionId(), + n = await this.contractWrapper.readContract.getClaimConditionById( + t + ); + return VM(n); + } else throw new Error("Contract does not support claim conditions"); + } + async getAll(e) { + if ( + this.isLegacyMultiPhaseDrop(this.contractWrapper) || + this.isNewMultiphaseDrop(this.contractWrapper) + ) { + let t = await this.contractWrapper.readContract.claimCondition(), + n = t.currentStartId.toNumber(), + a = t.count.toNumber(), + i = []; + for (let l = n; l < n + a; l++) i.push(await this.get(l)); + let s = await this.metadata.get(), + c = await this.getTokenDecimals(); + return Promise.all( + i.map((l) => + GM( + l, + c, + this.contractWrapper.getProvider(), + s.merkle, + this.storage, + e?.withAllowList || !1 + ) + ) + ); + } else return [await this.getActive(e)]; + } + async canClaim(e, t) { + return (await this.getClaimIneligibilityReasons(e, t)).length === 0; + } + async getClaimIneligibilityReasons(e, t) { + let n = [], + a, + i, + s = await this.getTokenDecimals(), + c = ie.ethers.utils.parseUnits(ue.AmountSchema.parse(e), s); + if (t === void 0) + try { + t = await this.contractWrapper.getSignerAddress(); + } catch (w) { + console.warn("failed to get signer address", w); + } + if (!t) return [Q.ClaimEligibility.NoWallet]; + try { + i = await this.getActive(); + } catch (w) { + return i3(w, "!CONDITION") || i3(w, "no active mint condition") + ? (n.push(Q.ClaimEligibility.NoClaimConditionSet), n) + : (console.warn("failed to get active claim condition", w), + n.push(Q.ClaimEligibility.Unknown), + n); + } + i.availableSupply !== "unlimited" && + ie.ethers.utils.parseUnits(i.availableSupply, s).lt(c) && + n.push(Q.ClaimEligibility.NotEnoughSupply); + let d = ie.ethers.utils.stripZeros(i.merkleRootHash).length > 0, + m = null; + if (d) { + if ( + ((m = await this.getClaimerProofs(t)), + !m && + (this.isLegacySinglePhaseDrop(this.contractWrapper) || + this.isLegacyMultiPhaseDrop(this.contractWrapper))) + ) + return n.push(Q.ClaimEligibility.AddressNotAllowed), n; + if (m) + try { + let w = await this.prepareClaim(e, !1, s, t), + C; + if (this.isLegacyMultiPhaseDrop(this.contractWrapper)) { + if ( + ((a = + await this.contractWrapper.readContract.getActiveClaimConditionId()), + ([C] = + await this.contractWrapper.readContract.verifyClaimMerkleProof( + a, + t, + e, + w.proofs, + w.maxClaimable + )), + !C) + ) + return n.push(Q.ClaimEligibility.AddressNotAllowed), n; + } else if (this.isLegacySinglePhaseDrop(this.contractWrapper)) { + if ( + (([C] = + await this.contractWrapper.readContract.verifyClaimMerkleProof( + t, + e, + { + proof: w.proofs, + maxQuantityInAllowlist: w.maxClaimable, + } + )), + !C) + ) + return n.push(Q.ClaimEligibility.AddressNotAllowed), n; + } else if (this.isNewSinglePhaseDrop(this.contractWrapper)) { + if ( + (await this.contractWrapper.readContract.verifyClaim( + t, + e, + w.currencyAddress, + w.price, + { + proof: w.proofs, + quantityLimitPerWallet: w.maxClaimable, + currency: w.currencyAddressInProof, + pricePerToken: w.priceInProof, + } + ), + (oh(i.maxClaimablePerWallet, s).eq(0) && + w.maxClaimable === ie.ethers.constants.MaxUint256) || + w.maxClaimable === ie.BigNumber.from(0)) + ) + return n.push(Q.ClaimEligibility.AddressNotAllowed), n; + } else if ( + this.isNewMultiphaseDrop(this.contractWrapper) && + ((a = + await this.contractWrapper.readContract.getActiveClaimConditionId()), + await this.contractWrapper.readContract.verifyClaim( + a, + t, + e, + w.currencyAddress, + w.price, + { + proof: w.proofs, + quantityLimitPerWallet: w.maxClaimable, + currency: w.currencyAddressInProof, + pricePerToken: w.priceInProof, + } + ), + (oh(i.maxClaimablePerWallet, s).eq(0) && + w.maxClaimable === ie.ethers.constants.MaxUint256) || + w.maxClaimable === ie.BigNumber.from(0)) + ) + return n.push(Q.ClaimEligibility.AddressNotAllowed), n; + } catch (w) { + return ( + console.warn( + "Merkle proof verification failed:", + "reason" in w ? w.reason : w + ), + n.push(Q.ClaimEligibility.AddressNotAllowed), + n + ); + } + } + if ( + this.isNewSinglePhaseDrop(this.contractWrapper) || + this.isNewMultiphaseDrop(this.contractWrapper) + ) { + let w = await this.getClaimerProofs(t), + C = ie.BigNumber.from(0), + I = oh(i.maxClaimablePerWallet, s); + if ( + (this.isNewSinglePhaseDrop(this.contractWrapper) && + (C = + await this.contractWrapper.readContract.getSupplyClaimedByWallet( + t + )), + this.isNewMultiphaseDrop(this.contractWrapper)) + ) { + let k = + await this.contractWrapper.readContract.getActiveClaimConditionId(); + C = + await this.contractWrapper.readContract.getSupplyClaimedByWallet( + k, + t + ); + } + if ( + (w && (I = oh(w.maxClaimable, s)), + (!d || (d && !m)) && (I.lte(C) || I.eq(0))) + ) + return n.push(Q.ClaimEligibility.AddressNotAllowed), n; + } + if ( + this.isLegacySinglePhaseDrop(this.contractWrapper) || + this.isLegacyMultiPhaseDrop(this.contractWrapper) + ) { + let [w, C] = [ie.BigNumber.from(0), ie.BigNumber.from(0)]; + this.isLegacyMultiPhaseDrop(this.contractWrapper) + ? ((a = + await this.contractWrapper.readContract.getActiveClaimConditionId()), + ([w, C] = + await this.contractWrapper.readContract.getClaimTimestamp( + a, + t + ))) + : this.isLegacySinglePhaseDrop(this.contractWrapper) && + ([w, C] = + await this.contractWrapper.readContract.getClaimTimestamp(t)); + let I = ie.BigNumber.from(Date.now()).div(1e3); + w.gt(0) && + I.lt(C) && + (C.eq(ie.constants.MaxUint256) + ? n.push(Q.ClaimEligibility.AlreadyClaimed) + : n.push(Q.ClaimEligibility.WaitBeforeNextClaimTransaction)); + } + if (i.price.gt(0) && DUe()) { + let w = i.price.mul(ie.BigNumber.from(e)), + C = this.contractWrapper.getProvider(); + yh(i.currencyAddress) + ? (await C.getBalance(t)).lt(w) && + n.push(Q.ClaimEligibility.NotEnoughTokens) + : ( + await new ls( + C, + i.currencyAddress, + lu.default, + {} + ).readContract.balanceOf(t) + ).lt(w) && n.push(Q.ClaimEligibility.NotEnoughTokens); + } + return n; + } + async getClaimerProofs(e, t) { + let a = (await this.get(t)).merkleRoot; + if (ie.ethers.utils.stripZeros(a).length > 0) { + let s = await this.metadata.get(); + return await ZP( + e, + a.toString(), + s.merkle, + this.contractWrapper.getProvider(), + this.storage, + this.getSnapshotFormatVersion() + ); + } else return null; + } + async set(e) { + let t = + arguments.length > 1 && arguments[1] !== void 0 + ? arguments[1] + : !1, + n = e; + if ( + this.isLegacySinglePhaseDrop(this.contractWrapper) || + this.isNewSinglePhaseDrop(this.contractWrapper) + ) { + if (((t = !0), e.length === 0)) + n = [ + { + startTime: new Date(0), + currencyAddress: ie.ethers.constants.AddressZero, + price: 0, + maxClaimableSupply: 0, + maxClaimablePerWallet: 0, + waitInSeconds: 0, + merkleRootHash: ie.utils.hexZeroPad([0], 32), + snapshot: [], + }, + ]; + else if (e.length > 1) + throw new Error( + "Single phase drop contract cannot have multiple claim conditions, only one is allowed" + ); + } + (this.isNewSinglePhaseDrop(this.contractWrapper) || + this.isNewMultiphaseDrop(this.contractWrapper)) && + n.forEach((m) => { + if ( + m.snapshot && + m.snapshot.length > 0 && + (m.maxClaimablePerWallet === void 0 || + m.maxClaimablePerWallet === "unlimited") + ) + throw new Error(`maxClaimablePerWallet must be set to a specific value when an allowlist is set. Example: Set it to 0 to only allow addresses in the allowlist to claim the amount specified in the allowlist. -contract.claimConditions.set([{ snapshot: [{ address: '0x...', maxClaimable: 1 }], maxClaimablePerWallet: 0 }])`);if(f.snapshot&&f.snapshot.length>0&&f.maxClaimablePerWallet?.toString()==="0"&&f.snapshot.map(w=>typeof w=="string"?0:Number(w.maxClaimable?.toString()||0)).reduce((w,E)=>w+E,0)===0)throw new Error("maxClaimablePerWallet is set to 0, and all addresses in the allowlist have max claimable 0. This means that no one can claim.")});let{snapshotInfos:a,sortedConditions:i}=await Uje(n,await this.getTokenDecimals(),this.contractWrapper.getProvider(),this.storage,this.getSnapshotFormatVersion()),s={};a.forEach(f=>{s[f.merkleRoot]=f.snapshotUri});let c=await this.metadata.get(),l=[];if(!jWe.default(c.merkle,s)){let f=this.metadata.parseInputMetadata({...c,merkle:s}),w=await this.metadata._parseAndUploadMetadata(f);if(oc("setContractURI",this.contractWrapper))l.push(this.contractWrapper.readContract.interface.encodeFunctionData("setContractURI",[w]));else throw new Error("Setting a merkle root requires implementing ContractMetadata in your contract to support storing a merkle root.")}let d=this.contractWrapper;if(this.isLegacySinglePhaseDrop(d))l.push(d.readContract.interface.encodeFunctionData("setClaimConditions",[X9(i[0]),t]));else if(this.isLegacyMultiPhaseDrop(d))l.push(d.readContract.interface.encodeFunctionData("setClaimConditions",[i.map(X9),t]));else if(this.isNewSinglePhaseDrop(d))l.push(d.readContract.interface.encodeFunctionData("setClaimConditions",[Y9(i[0]),t]));else if(this.isNewMultiphaseDrop(d))l.push(d.readContract.interface.encodeFunctionData("setClaimConditions",[i.map(Y9),t]));else throw new Error("Contract does not support claim conditions");return{receipt:await this.contractWrapper.multiCall(l)}}async update(e,t){let n=await this.getAll(),a=await Fje(e,t,n);return await this.set(a)}async getTokenDecimals(){return Dt(this.contractWrapper,"ERC20")?this.contractWrapper.readContract.decimals():Promise.resolve(0)}async prepareClaim(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,a=arguments.length>3?arguments[3]:void 0,i=a||await this.contractWrapper.getSignerAddress();return Dje(i,e,await this.getActive(),async()=>(await this.metadata.get()).merkle,n,this.contractWrapper,this.storage,t,this.getSnapshotFormatVersion())}async getClaimArguments(e,t,n){return this.isLegacyMultiPhaseDrop(this.contractWrapper)?[e,t,n.currencyAddress,n.price,n.proofs,n.maxClaimable]:this.isLegacySinglePhaseDrop(this.contractWrapper)?[e,t,n.currencyAddress,n.price,{proof:n.proofs,maxQuantityInAllowlist:n.maxClaimable},se.ethers.utils.toUtf8Bytes("")]:[e,t,n.currencyAddress,n.price,{proof:n.proofs,quantityLimitPerWallet:n.maxClaimable,pricePerToken:n.priceInProof,currency:n.currencyAddressInProof},se.ethers.utils.toUtf8Bytes("")]}async getClaimTransaction(e,t,n){if(n?.pricePerToken)throw new Error("Price per token is be set via claim conditions by calling `contract.erc721.claimConditions.set()`");let a=await this.prepareClaim(t,n?.checkERC20Allowance===void 0?!0:n.checkERC20Allowance,await this.getTokenDecimals());return md.make({contractWrapper:this.contractWrapper,functionName:"claim",args:await this.getClaimArguments(e,t,a),overrides:a.overrides})}isNewSinglePhaseDrop(e){return Dt(e,"ERC721ClaimConditionsV2")||Dt(e,"ERC20ClaimConditionsV2")}isNewMultiphaseDrop(e){return Dt(e,"ERC721ClaimPhasesV2")||Dt(e,"ERC20ClaimPhasesV2")}isLegacySinglePhaseDrop(e){return Dt(e,"ERC721ClaimConditionsV1")||Dt(e,"ERC20ClaimConditionsV1")}isLegacyMultiPhaseDrop(e){return Dt(e,"ERC721ClaimPhasesV1")||Dt(e,"ERC20ClaimPhasesV1")}getSnapshotFormatVersion(){return this.isLegacyMultiPhaseDrop(this.contractWrapper)||this.isLegacySinglePhaseDrop(this.contractWrapper)?am.V1:am.V2}},AP=class{constructor(e,t,n){ue._defineProperty(this,"contractWrapper",void 0),ue._defineProperty(this,"metadata",void 0),ue._defineProperty(this,"storage",void 0),this.storage=n,this.contractWrapper=e,this.metadata=t}async getActive(e,t){let n=await this.get(e),a=await this.metadata.get();return await tP(n,0,this.contractWrapper.getProvider(),a.merkle,this.storage,t?.withAllowList||!1)}async get(e,t){if(this.isLegacySinglePhaseDrop(this.contractWrapper)){let n=await this.contractWrapper.readContract.claimCondition(e);return $9(n)}else if(this.isLegacyMultiPhaseDrop(this.contractWrapper)){let n=t!==void 0?t:await this.contractWrapper.readContract.getActiveClaimConditionId(e),a=await this.contractWrapper.readContract.getClaimConditionById(e,n);return $9(a)}else if(this.isNewSinglePhaseDrop(this.contractWrapper)){let n=await this.contractWrapper.readContract.claimCondition(e);return eP(n)}else if(this.isNewMultiphaseDrop(this.contractWrapper)){let n=t!==void 0?t:await this.contractWrapper.readContract.getActiveClaimConditionId(e),a=await this.contractWrapper.readContract.getClaimConditionById(e,n);return eP(a)}else throw new Error("Contract does not support claim conditions")}async getAll(e,t){if(this.isLegacyMultiPhaseDrop(this.contractWrapper)||this.isNewMultiphaseDrop(this.contractWrapper)){let n=await this.contractWrapper.readContract.claimCondition(e),a=n.currentStartId.toNumber(),i=n.count.toNumber(),s=[];for(let l=a;ltP(l,0,this.contractWrapper.getProvider(),c.merkle,this.storage,t?.withAllowList||!1)))}else return[await this.getActive(e,t)]}async canClaim(e,t,n){return(await this.getClaimIneligibilityReasons(e,t,n)).length===0}async getClaimIneligibilityReasons(e,t,n){let a=[],i,s;if(n===void 0)try{n=await this.contractWrapper.getSignerAddress()}catch(k){console.warn("failed to get signer address",k)}if(!n)return[Y.ClaimEligibility.NoWallet];try{s=await this.getActive(e)}catch(k){return s_(k,"!CONDITION")||s_(k,"no active mint condition")?(a.push(Y.ClaimEligibility.NoClaimConditionSet),a):(a.push(Y.ClaimEligibility.Unknown),a)}s.availableSupply!=="unlimited"&&se.BigNumber.from(s.availableSupply).lt(t)&&a.push(Y.ClaimEligibility.NotEnoughSupply);let l=se.ethers.utils.stripZeros(s.merkleRootHash).length>0,d=null;if(l){if(d=await this.getClaimerProofs(e,n),!d&&(this.isLegacySinglePhaseDrop(this.contractWrapper)||this.isLegacyMultiPhaseDrop(this.contractWrapper)))return a.push(Y.ClaimEligibility.AddressNotAllowed),a;if(d)try{let k=await this.prepareClaim(e,t,!1,n),A;if(this.isLegacyMultiPhaseDrop(this.contractWrapper)){if(i=await this.contractWrapper.readContract.getActiveClaimConditionId(e),[A]=await this.contractWrapper.readContract.verifyClaimMerkleProof(i,n,e,t,k.proofs,k.maxClaimable),!A)return a.push(Y.ClaimEligibility.AddressNotAllowed),a}else if(this.isLegacySinglePhaseDrop(this.contractWrapper)){if([A]=await this.contractWrapper.readContract.verifyClaimMerkleProof(e,n,t,{proof:k.proofs,maxQuantityInAllowlist:k.maxClaimable}),!A)return a.push(Y.ClaimEligibility.AddressNotAllowed),a}else if(this.isNewSinglePhaseDrop(this.contractWrapper)){if(await this.contractWrapper.readContract.verifyClaim(e,n,t,k.currencyAddress,k.price,{proof:k.proofs,quantityLimitPerWallet:k.maxClaimable,currency:k.currencyAddressInProof,pricePerToken:k.priceInProof}),s.maxClaimablePerWallet==="0"&&k.maxClaimable===se.ethers.constants.MaxUint256||k.maxClaimable===se.BigNumber.from(0))return a.push(Y.ClaimEligibility.AddressNotAllowed),a}else if(this.isNewMultiphaseDrop(this.contractWrapper)&&(i=await this.contractWrapper.readContract.getActiveClaimConditionId(e),await this.contractWrapper.readContract.verifyClaim(i,n,e,t,k.currencyAddress,k.price,{proof:k.proofs,quantityLimitPerWallet:k.maxClaimable,currency:k.currencyAddressInProof,pricePerToken:k.priceInProof}),s.maxClaimablePerWallet==="0"&&k.maxClaimable===se.ethers.constants.MaxUint256||k.maxClaimable===se.BigNumber.from(0)))return a.push(Y.ClaimEligibility.AddressNotAllowed),a}catch(k){return console.warn("Merkle proof verification failed:","reason"in k?k.reason:k),a.push(Y.ClaimEligibility.AddressNotAllowed),a}}if((this.isNewSinglePhaseDrop(this.contractWrapper)||this.isNewMultiphaseDrop(this.contractWrapper))&&(!l||l&&!d)&&s.maxClaimablePerWallet==="0")return a.push(Y.ClaimEligibility.AddressNotAllowed),a;let[f,w]=[se.BigNumber.from(0),se.BigNumber.from(0)];this.isLegacyMultiPhaseDrop(this.contractWrapper)?(i=await this.contractWrapper.readContract.getActiveClaimConditionId(e),[f,w]=await this.contractWrapper.readContract.getClaimTimestamp(e,i,n)):this.isLegacySinglePhaseDrop(this.contractWrapper)&&([f,w]=await this.contractWrapper.readContract.getClaimTimestamp(e,n));let E=se.BigNumber.from(Date.now()).div(1e3);if(f.gt(0)&&E.lt(w)&&(w.eq(se.constants.MaxUint256)?a.push(Y.ClaimEligibility.AlreadyClaimed):a.push(Y.ClaimEligibility.WaitBeforeNextClaimTransaction)),s.price.gt(0)&&Bje()){let k=s.price.mul(t),A=this.contractWrapper.getProvider();qh(s.currencyAddress)?(await A.getBalance(n)).lt(k)&&a.push(Y.ClaimEligibility.NotEnoughTokens):(await new xs(A,s.currencyAddress,ku.default,{}).readContract.balanceOf(n)).lt(k)&&a.push(Y.ClaimEligibility.NotEnoughTokens)}return a}async getClaimerProofs(e,t,n){let i=(await this.get(e,n)).merkleRoot;if(se.ethers.utils.stripZeros(i).length>0){let c=await this.metadata.get();return await i7(t,i.toString(),c.merkle,this.contractWrapper.getProvider(),this.storage,this.getSnapshotFormatVersion())}else return null}async set(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return this.setBatch([{tokenId:e,claimConditions:t}],n)}async setBatch(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n={},a=await Promise.all(e.map(async c=>{let{tokenId:l,claimConditions:d}=c,f=d;if(this.isLegacySinglePhaseDrop(this.contractWrapper)){if(t=!0,d.length===0)f=[{startTime:new Date(0),currencyAddress:se.ethers.constants.AddressZero,price:0,maxClaimableSupply:0,maxClaimablePerWallet:0,waitInSeconds:0,merkleRootHash:se.utils.hexZeroPad([0],32),snapshot:[]}];else if(d.length>1)throw new Error("Single phase drop contract cannot have multiple claim conditions, only one is allowed")}(this.isNewSinglePhaseDrop(this.contractWrapper)||this.isNewMultiphaseDrop(this.contractWrapper))&&f.forEach(k=>{if(k.snapshot&&k.snapshot.length>0&&(k.maxClaimablePerWallet===void 0||k.maxClaimablePerWallet==="unlimited"))throw new Error(`maxClaimablePerWallet must be set to a specific value when an allowlist is set. +contract.claimConditions.set([{ snapshot: [{ address: '0x...', maxClaimable: 1 }], maxClaimablePerWallet: 0 }])`); + if ( + m.snapshot && + m.snapshot.length > 0 && + m.maxClaimablePerWallet?.toString() === "0" && + m.snapshot + .map((w) => + typeof w == "string" + ? 0 + : Number(w.maxClaimable?.toString() || 0) + ) + .reduce((w, C) => w + C, 0) === 0 + ) + throw new Error( + "maxClaimablePerWallet is set to 0, and all addresses in the allowlist have max claimable 0. This means that no one can claim." + ); + }); + let { snapshotInfos: a, sortedConditions: i } = await UUe( + n, + await this.getTokenDecimals(), + this.contractWrapper.getProvider(), + this.storage, + this.getSnapshotFormatVersion() + ), + s = {}; + a.forEach((m) => { + s[m.merkleRoot] = m.snapshotUri; + }); + let c = await this.metadata.get(), + l = []; + if (!zWe.default(c.merkle, s)) { + let m = this.metadata.parseInputMetadata({ ...c, merkle: s }), + w = await this.metadata._parseAndUploadMetadata(m); + if (Jo("setContractURI", this.contractWrapper)) + l.push( + this.contractWrapper.readContract.interface.encodeFunctionData( + "setContractURI", + [w] + ) + ); + else + throw new Error( + "Setting a merkle root requires implementing ContractMetadata in your contract to support storing a merkle root." + ); + } + let d = this.contractWrapper; + if (this.isLegacySinglePhaseDrop(d)) + l.push( + d.readContract.interface.encodeFunctionData( + "setClaimConditions", + [zM(i[0]), t] + ) + ); + else if (this.isLegacyMultiPhaseDrop(d)) + l.push( + d.readContract.interface.encodeFunctionData( + "setClaimConditions", + [i.map(zM), t] + ) + ); + else if (this.isNewSinglePhaseDrop(d)) + l.push( + d.readContract.interface.encodeFunctionData( + "setClaimConditions", + [jM(i[0]), t] + ) + ); + else if (this.isNewMultiphaseDrop(d)) + l.push( + d.readContract.interface.encodeFunctionData( + "setClaimConditions", + [i.map(jM), t] + ) + ); + else throw new Error("Contract does not support claim conditions"); + return { receipt: await this.contractWrapper.multiCall(l) }; + } + async update(e, t) { + let n = await this.getAll(), + a = await WUe(e, t, n); + return await this.set(a); + } + async getTokenDecimals() { + return Ot(this.contractWrapper, "ERC20") + ? this.contractWrapper.readContract.decimals() + : Promise.resolve(0); + } + async prepareClaim(e, t) { + let n = + arguments.length > 2 && arguments[2] !== void 0 + ? arguments[2] + : 0, + a = arguments.length > 3 ? arguments[3] : void 0, + i = a || (await this.contractWrapper.getSignerAddress()); + return FUe( + i, + e, + await this.getActive(), + async () => (await this.metadata.get()).merkle, + n, + this.contractWrapper, + this.storage, + t, + this.getSnapshotFormatVersion() + ); + } + async getClaimArguments(e, t, n) { + return this.isLegacyMultiPhaseDrop(this.contractWrapper) + ? [e, t, n.currencyAddress, n.price, n.proofs, n.maxClaimable] + : this.isLegacySinglePhaseDrop(this.contractWrapper) + ? [ + e, + t, + n.currencyAddress, + n.price, + { proof: n.proofs, maxQuantityInAllowlist: n.maxClaimable }, + ie.ethers.utils.toUtf8Bytes(""), + ] + : [ + e, + t, + n.currencyAddress, + n.price, + { + proof: n.proofs, + quantityLimitPerWallet: n.maxClaimable, + pricePerToken: n.priceInProof, + currency: n.currencyAddressInProof, + }, + ie.ethers.utils.toUtf8Bytes(""), + ]; + } + async getClaimTransaction(e, t, n) { + if (n?.pricePerToken) + throw new Error( + "Price per token is be set via claim conditions by calling `contract.erc721.claimConditions.set()`" + ); + let a = await this.prepareClaim( + t, + n?.checkERC20Allowance === void 0 ? !0 : n.checkERC20Allowance, + await this.getTokenDecimals() + ); + return Gl.make({ + contractWrapper: this.contractWrapper, + functionName: "claim", + args: await this.getClaimArguments(e, t, a), + overrides: a.overrides, + }); + } + isNewSinglePhaseDrop(e) { + return ( + Ot(e, "ERC721ClaimConditionsV2") || Ot(e, "ERC20ClaimConditionsV2") + ); + } + isNewMultiphaseDrop(e) { + return Ot(e, "ERC721ClaimPhasesV2") || Ot(e, "ERC20ClaimPhasesV2"); + } + isLegacySinglePhaseDrop(e) { + return ( + Ot(e, "ERC721ClaimConditionsV1") || Ot(e, "ERC20ClaimConditionsV1") + ); + } + isLegacyMultiPhaseDrop(e) { + return Ot(e, "ERC721ClaimPhasesV1") || Ot(e, "ERC20ClaimPhasesV1"); + } + getSnapshotFormatVersion() { + return this.isLegacyMultiPhaseDrop(this.contractWrapper) || + this.isLegacySinglePhaseDrop(this.contractWrapper) + ? Bf.V1 + : Bf.V2; + } + }, + wP = class { + constructor(e, t, n) { + ue._defineProperty(this, "contractWrapper", void 0), + ue._defineProperty(this, "metadata", void 0), + ue._defineProperty(this, "storage", void 0), + (this.storage = n), + (this.contractWrapper = e), + (this.metadata = t); + } + async getActive(e, t) { + let n = await this.get(e), + a = await this.metadata.get(); + return await GM( + n, + 0, + this.contractWrapper.getProvider(), + a.merkle, + this.storage, + t?.withAllowList || !1 + ); + } + async get(e, t) { + if (this.isLegacySinglePhaseDrop(this.contractWrapper)) { + let n = await this.contractWrapper.readContract.claimCondition(e); + return KM(n); + } else if (this.isLegacyMultiPhaseDrop(this.contractWrapper)) { + let n = + t !== void 0 + ? t + : await this.contractWrapper.readContract.getActiveClaimConditionId( + e + ), + a = await this.contractWrapper.readContract.getClaimConditionById( + e, + n + ); + return KM(a); + } else if (this.isNewSinglePhaseDrop(this.contractWrapper)) { + let n = await this.contractWrapper.readContract.claimCondition(e); + return VM(n); + } else if (this.isNewMultiphaseDrop(this.contractWrapper)) { + let n = + t !== void 0 + ? t + : await this.contractWrapper.readContract.getActiveClaimConditionId( + e + ), + a = await this.contractWrapper.readContract.getClaimConditionById( + e, + n + ); + return VM(a); + } else throw new Error("Contract does not support claim conditions"); + } + async getAll(e, t) { + if ( + this.isLegacyMultiPhaseDrop(this.contractWrapper) || + this.isNewMultiphaseDrop(this.contractWrapper) + ) { + let n = await this.contractWrapper.readContract.claimCondition(e), + a = n.currentStartId.toNumber(), + i = n.count.toNumber(), + s = []; + for (let l = a; l < a + i; l++) s.push(await this.get(e, l)); + let c = await this.metadata.get(); + return Promise.all( + s.map((l) => + GM( + l, + 0, + this.contractWrapper.getProvider(), + c.merkle, + this.storage, + t?.withAllowList || !1 + ) + ) + ); + } else return [await this.getActive(e, t)]; + } + async canClaim(e, t, n) { + return ( + (await this.getClaimIneligibilityReasons(e, t, n)).length === 0 + ); + } + async getClaimIneligibilityReasons(e, t, n) { + let a = [], + i, + s; + if (n === void 0) + try { + n = await this.contractWrapper.getSignerAddress(); + } catch (I) { + console.warn("failed to get signer address", I); + } + if (!n) return [Q.ClaimEligibility.NoWallet]; + try { + s = await this.getActive(e); + } catch (I) { + return i3(I, "!CONDITION") || i3(I, "no active mint condition") + ? (a.push(Q.ClaimEligibility.NoClaimConditionSet), a) + : (a.push(Q.ClaimEligibility.Unknown), a); + } + s.availableSupply !== "unlimited" && + ie.BigNumber.from(s.availableSupply).lt(t) && + a.push(Q.ClaimEligibility.NotEnoughSupply); + let l = ie.ethers.utils.stripZeros(s.merkleRootHash).length > 0, + d = null; + if (l) { + if ( + ((d = await this.getClaimerProofs(e, n)), + !d && + (this.isLegacySinglePhaseDrop(this.contractWrapper) || + this.isLegacyMultiPhaseDrop(this.contractWrapper))) + ) + return a.push(Q.ClaimEligibility.AddressNotAllowed), a; + if (d) + try { + let I = await this.prepareClaim(e, t, !1, n), + k; + if (this.isLegacyMultiPhaseDrop(this.contractWrapper)) { + if ( + ((i = + await this.contractWrapper.readContract.getActiveClaimConditionId( + e + )), + ([k] = + await this.contractWrapper.readContract.verifyClaimMerkleProof( + i, + n, + e, + t, + I.proofs, + I.maxClaimable + )), + !k) + ) + return a.push(Q.ClaimEligibility.AddressNotAllowed), a; + } else if (this.isLegacySinglePhaseDrop(this.contractWrapper)) { + if ( + (([k] = + await this.contractWrapper.readContract.verifyClaimMerkleProof( + e, + n, + t, + { + proof: I.proofs, + maxQuantityInAllowlist: I.maxClaimable, + } + )), + !k) + ) + return a.push(Q.ClaimEligibility.AddressNotAllowed), a; + } else if (this.isNewSinglePhaseDrop(this.contractWrapper)) { + if ( + (await this.contractWrapper.readContract.verifyClaim( + e, + n, + t, + I.currencyAddress, + I.price, + { + proof: I.proofs, + quantityLimitPerWallet: I.maxClaimable, + currency: I.currencyAddressInProof, + pricePerToken: I.priceInProof, + } + ), + (s.maxClaimablePerWallet === "0" && + I.maxClaimable === ie.ethers.constants.MaxUint256) || + I.maxClaimable === ie.BigNumber.from(0)) + ) + return a.push(Q.ClaimEligibility.AddressNotAllowed), a; + } else if ( + this.isNewMultiphaseDrop(this.contractWrapper) && + ((i = + await this.contractWrapper.readContract.getActiveClaimConditionId( + e + )), + await this.contractWrapper.readContract.verifyClaim( + i, + n, + e, + t, + I.currencyAddress, + I.price, + { + proof: I.proofs, + quantityLimitPerWallet: I.maxClaimable, + currency: I.currencyAddressInProof, + pricePerToken: I.priceInProof, + } + ), + (s.maxClaimablePerWallet === "0" && + I.maxClaimable === ie.ethers.constants.MaxUint256) || + I.maxClaimable === ie.BigNumber.from(0)) + ) + return a.push(Q.ClaimEligibility.AddressNotAllowed), a; + } catch (I) { + return ( + console.warn( + "Merkle proof verification failed:", + "reason" in I ? I.reason : I + ), + a.push(Q.ClaimEligibility.AddressNotAllowed), + a + ); + } + } + if ( + (this.isNewSinglePhaseDrop(this.contractWrapper) || + this.isNewMultiphaseDrop(this.contractWrapper)) && + (!l || (l && !d)) && + s.maxClaimablePerWallet === "0" + ) + return a.push(Q.ClaimEligibility.AddressNotAllowed), a; + let [m, w] = [ie.BigNumber.from(0), ie.BigNumber.from(0)]; + this.isLegacyMultiPhaseDrop(this.contractWrapper) + ? ((i = + await this.contractWrapper.readContract.getActiveClaimConditionId( + e + )), + ([m, w] = + await this.contractWrapper.readContract.getClaimTimestamp( + e, + i, + n + ))) + : this.isLegacySinglePhaseDrop(this.contractWrapper) && + ([m, w] = + await this.contractWrapper.readContract.getClaimTimestamp( + e, + n + )); + let C = ie.BigNumber.from(Date.now()).div(1e3); + if ( + (m.gt(0) && + C.lt(w) && + (w.eq(ie.constants.MaxUint256) + ? a.push(Q.ClaimEligibility.AlreadyClaimed) + : a.push(Q.ClaimEligibility.WaitBeforeNextClaimTransaction)), + s.price.gt(0) && DUe()) + ) { + let I = s.price.mul(t), + k = this.contractWrapper.getProvider(); + yh(s.currencyAddress) + ? (await k.getBalance(n)).lt(I) && + a.push(Q.ClaimEligibility.NotEnoughTokens) + : ( + await new ls( + k, + s.currencyAddress, + lu.default, + {} + ).readContract.balanceOf(n) + ).lt(I) && a.push(Q.ClaimEligibility.NotEnoughTokens); + } + return a; + } + async getClaimerProofs(e, t, n) { + let i = (await this.get(e, n)).merkleRoot; + if (ie.ethers.utils.stripZeros(i).length > 0) { + let c = await this.metadata.get(); + return await ZP( + t, + i.toString(), + c.merkle, + this.contractWrapper.getProvider(), + this.storage, + this.getSnapshotFormatVersion() + ); + } else return null; + } + async set(e, t) { + let n = + arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !1; + return this.setBatch([{ tokenId: e, claimConditions: t }], n); + } + async setBatch(e) { + let t = + arguments.length > 1 && arguments[1] !== void 0 + ? arguments[1] + : !1, + n = {}, + a = await Promise.all( + e.map(async (c) => { + let { tokenId: l, claimConditions: d } = c, + m = d; + if (this.isLegacySinglePhaseDrop(this.contractWrapper)) { + if (((t = !0), d.length === 0)) + m = [ + { + startTime: new Date(0), + currencyAddress: ie.ethers.constants.AddressZero, + price: 0, + maxClaimableSupply: 0, + maxClaimablePerWallet: 0, + waitInSeconds: 0, + merkleRootHash: ie.utils.hexZeroPad([0], 32), + snapshot: [], + }, + ]; + else if (d.length > 1) + throw new Error( + "Single phase drop contract cannot have multiple claim conditions, only one is allowed" + ); + } + (this.isNewSinglePhaseDrop(this.contractWrapper) || + this.isNewMultiphaseDrop(this.contractWrapper)) && + m.forEach((I) => { + if ( + I.snapshot && + I.snapshot.length > 0 && + (I.maxClaimablePerWallet === void 0 || + I.maxClaimablePerWallet === "unlimited") + ) + throw new Error(`maxClaimablePerWallet must be set to a specific value when an allowlist is set. Set it to 0 to only allow addresses in the allowlist to claim the amount specified in the allowlist. ex: -contract.claimConditions.set(tokenId, [{ snapshot: [{ address: '0x...', maxClaimable: 1 }], maxClaimablePerWallet: 0 }])`);if(k.snapshot&&k.snapshot.length>0&&k.maxClaimablePerWallet?.toString()==="0"&&k.snapshot.map(A=>typeof A=="string"?0:Number(A.maxClaimable?.toString()||0)).reduce((A,L)=>A+L,0)===0)throw new Error("maxClaimablePerWallet is set to 0, and all addresses in the allowlist have max claimable 0. This means that no one can claim.")});let{snapshotInfos:w,sortedConditions:E}=await Uje(f,0,this.contractWrapper.getProvider(),this.storage,this.getSnapshotFormatVersion());return w.forEach(k=>{n[k.merkleRoot]=k.snapshotUri}),{tokenId:l,sortedConditions:E}})),i=await this.metadata.get(),s=[];for(let c of Object.keys(i.merkle||{}))n[c]=i.merkle[c];if(!jWe.default(i.merkle,n)){let c=this.metadata.parseInputMetadata({...i,merkle:n}),l=await this.metadata._parseAndUploadMetadata(c);if(oc("setContractURI",this.contractWrapper))s.push(this.contractWrapper.readContract.interface.encodeFunctionData("setContractURI",[l]));else throw new Error("Setting a merkle root requires implementing ContractMetadata in your contract to support storing a merkle root.")}return a.forEach(c=>{let{tokenId:l,sortedConditions:d}=c;if(this.isLegacySinglePhaseDrop(this.contractWrapper))s.push(this.contractWrapper.readContract.interface.encodeFunctionData("setClaimConditions",[l,X9(d[0]),t]));else if(this.isLegacyMultiPhaseDrop(this.contractWrapper))s.push(this.contractWrapper.readContract.interface.encodeFunctionData("setClaimConditions",[l,d.map(X9),t]));else if(this.isNewSinglePhaseDrop(this.contractWrapper))s.push(this.contractWrapper.readContract.interface.encodeFunctionData("setClaimConditions",[l,Y9(d[0]),t]));else if(this.isNewMultiphaseDrop(this.contractWrapper))s.push(this.contractWrapper.readContract.interface.encodeFunctionData("setClaimConditions",[l,d.map(Y9),t]));else throw new Error("Contract does not support claim conditions")}),{receipt:await this.contractWrapper.multiCall(s)}}async update(e,t,n){let a=await this.getAll(e),i=await Fje(t,n,a);return await this.set(e,i)}async prepareClaim(e,t,n,a){let i=a||await this.contractWrapper.getSignerAddress();return Dje(i,t,await this.getActive(e),async()=>(await this.metadata.get()).merkle,0,this.contractWrapper,this.storage,n,this.getSnapshotFormatVersion())}async getClaimArguments(e,t,n,a){return this.isLegacyMultiPhaseDrop(this.contractWrapper)?[t,e,n,a.currencyAddress,a.price,a.proofs,a.maxClaimable]:this.isLegacySinglePhaseDrop(this.contractWrapper)?[t,e,n,a.currencyAddress,a.price,{proof:a.proofs,maxQuantityInAllowlist:a.maxClaimable},se.ethers.utils.toUtf8Bytes("")]:[t,e,n,a.currencyAddress,a.price,{proof:a.proofs,quantityLimitPerWallet:a.maxClaimable,pricePerToken:a.priceInProof,currency:a.currencyAddressInProof},se.ethers.utils.toUtf8Bytes("")]}async getClaimTransaction(e,t,n,a){if(a?.pricePerToken)throw new Error("Price per token should be set via claim conditions by calling `contract.erc1155.claimConditions.set()`");let i=await this.prepareClaim(t,n,a?.checkERC20Allowance||!0);return md.make({contractWrapper:this.contractWrapper,functionName:"claim",args:await this.getClaimArguments(t,e,n,i),overrides:i.overrides})}isNewSinglePhaseDrop(e){return Dt(e,"ERC1155ClaimConditionsV2")}isNewMultiphaseDrop(e){return Dt(e,"ERC1155ClaimPhasesV2")}isLegacySinglePhaseDrop(e){return Dt(e,"ERC1155ClaimConditionsV1")}isLegacyMultiPhaseDrop(e){return Dt(e,"ERC1155ClaimPhasesV1")}getSnapshotFormatVersion(){return this.isLegacyMultiPhaseDrop(this.contractWrapper)||this.isLegacySinglePhaseDrop(this.contractWrapper)?am.V1:am.V2}},$V=class{constructor(e){ue._defineProperty(this,"events",void 0),this.events=e}async getAllClaimerAddresses(e){let t=(await this.events.getEvents("TokensClaimed")).filter(n=>n.data&&se.BigNumber.isBigNumber(n.data.tokenId)?n.data.tokenId.eq(e):!1);return Array.from(new Set(t.filter(n=>typeof n.data?.claimer=="string").map(n=>n.data.claimer)))}},MP=class{constructor(e,t){ue._defineProperty(this,"featureName",u_.name),ue._defineProperty(this,"erc20",void 0),ue._defineProperty(this,"contractWrapper",void 0),this.erc20=e,this.contractWrapper=t}async tokens(e){return{receipt:await this.contractWrapper.sendTransaction("burn",[await this.erc20.normalizeAmount(e)])}}async from(e,t){return{receipt:await this.contractWrapper.sendTransaction("burnFrom",[e,await this.erc20.normalizeAmount(t)])}}},eG=class{constructor(e,t,n){ue._defineProperty(this,"featureName",c_.name),ue._defineProperty(this,"conditions",void 0),ue._defineProperty(this,"contractWrapper",void 0),ue._defineProperty(this,"erc20",void 0),ue._defineProperty(this,"storage",void 0),this.erc20=e,this.contractWrapper=t,this.storage=n;let a=new G0(this.contractWrapper,Ow,this.storage);this.conditions=new v_(this.contractWrapper,a,this.storage)}async to(e,t,n){let a=await this.erc20.normalizeAmount(t);return await(await this.conditions.getClaimTransaction(e,a,n)).execute()}},tG=class{constructor(e,t,n){ue._defineProperty(this,"claim",void 0),ue._defineProperty(this,"contractWrapper",void 0),ue._defineProperty(this,"erc20",void 0),ue._defineProperty(this,"storage",void 0),this.erc20=e,this.contractWrapper=t,this.storage=n,this.claim=new eG(this.erc20,this.contractWrapper,this.storage)}},IP=class{constructor(e,t){ue._defineProperty(this,"featureName",pP.name),ue._defineProperty(this,"contractWrapper",void 0),ue._defineProperty(this,"erc20",void 0),this.erc20=e,this.contractWrapper=t}async to(e){let t=[];for(let n of e)t.push(this.contractWrapper.readContract.interface.encodeFunctionData("mintTo",[n.toAddress,await this.erc20.normalizeAmount(n.amount)]));return{receipt:await this.contractWrapper.multiCall(t)}}},PP=class{constructor(e,t){ue._defineProperty(this,"featureName",l_.name),ue._defineProperty(this,"contractWrapper",void 0),ue._defineProperty(this,"erc20",void 0),ue._defineProperty(this,"batch",void 0),this.erc20=e,this.contractWrapper=t,this.batch=this.detectErc20BatchMintable()}async to(e,t){return(await this.getMintTransaction(e,t)).execute()}async getMintTransaction(e,t){return md.make({contractWrapper:this.contractWrapper,functionName:"mintTo",args:[e,await this.erc20.normalizeAmount(t)]})}detectErc20BatchMintable(){if(Dt(this.contractWrapper,"ERC20BatchMintable"))return new IP(this.erc20,this.contractWrapper)}},RP=class{constructor(e,t){ue._defineProperty(this,"featureName",dP.name),ue._defineProperty(this,"contractWrapper",void 0),ue._defineProperty(this,"roles",void 0),this.contractWrapper=e,this.roles=t}async mint(e){let t=e.payload,n=e.signature,a=await this.mapPayloadToContractStruct(t),i=await this.contractWrapper.getCallOverrides();return await V0(this.contractWrapper,se.BigNumber.from(a.price),t.currencyAddress,i),{receipt:await this.contractWrapper.sendTransaction("mintWithSignature",[a,n],i)}}async mintBatch(e){let n=(await Promise.all(e.map(async a=>{let i=await this.mapPayloadToContractStruct(a.payload),s=a.signature,c=a.payload.price;if(se.BigNumber.from(c).gt(0))throw new Error("Can only batch free mints. For mints with a price, use regular mint()");return{message:i,signature:s}}))).map(a=>this.contractWrapper.readContract.interface.encodeFunctionData("mintWithSignature",[a.message,a.signature]));return{receipt:await this.contractWrapper.multiCall(n)}}async verify(e){let t=e.payload,n=e.signature,a=await this.mapPayloadToContractStruct(t);return(await this.contractWrapper.readContract.verify(a,n))[0]}async generate(e){return(await this.generateBatch([e]))[0]}async generateBatch(e){await this.roles?.verify(["minter"],await this.contractWrapper.getSignerAddress());let t=e.map(s=>PG.parse(s)),n=await this.contractWrapper.getChainID(),a=this.contractWrapper.getSigner();mr.default(a,"No signer available");let i=await this.contractWrapper.readContract.name();return await Promise.all(t.map(async s=>{let c=nje.parse(s),l=await this.contractWrapper.signTypedData(a,{name:i,version:"1",chainId:n,verifyingContract:this.contractWrapper.readContract.address},{MintRequest:uje},await this.mapPayloadToContractStruct(c));return{payload:c,signature:l.toString()}}))}async mapPayloadToContractStruct(e){let t=await cc(this.contractWrapper.getProvider(),e.price,e.currencyAddress),n=se.ethers.utils.parseUnits(e.quantity,await this.contractWrapper.readContract.decimals());return{to:e.to,primarySaleRecipient:e.primarySaleRecipient,quantity:n,price:t,currency:e.currencyAddress,validityEndTimestamp:e.mintEndTime,validityStartTimestamp:e.mintStartTime,uid:e.uid}}},b_=class{get chainId(){return this._chainId}constructor(e,t,n){ue._defineProperty(this,"featureName",hP.name),ue._defineProperty(this,"mintable",void 0),ue._defineProperty(this,"burnable",void 0),ue._defineProperty(this,"droppable",void 0),ue._defineProperty(this,"signatureMintable",void 0),ue._defineProperty(this,"contractWrapper",void 0),ue._defineProperty(this,"storage",void 0),ue._defineProperty(this,"_chainId",void 0),this.contractWrapper=e,this.storage=t,this.mintable=this.detectErc20Mintable(),this.burnable=this.detectErc20Burnable(),this.droppable=this.detectErc20Droppable(),this.signatureMintable=this.detectErc20SignatureMintable(),this._chainId=n}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}async get(){return await Lw(this.contractWrapper.getProvider(),this.getAddress())}async balance(){return await this.balanceOf(await this.contractWrapper.getSignerAddress())}async balanceOf(e){return this.getValue(await this.contractWrapper.readContract.balanceOf(e))}async totalSupply(){return await this.getValue(await this.contractWrapper.readContract.totalSupply())}async allowance(e){return await this.allowanceOf(await this.contractWrapper.getSignerAddress(),e)}async allowanceOf(e,t){return await this.getValue(await this.contractWrapper.readContract.allowance(e,t))}async transfer(e,t){return{receipt:await this.contractWrapper.sendTransaction("transfer",[e,await this.normalizeAmount(t)])}}async transferFrom(e,t,n){return{receipt:await this.contractWrapper.sendTransaction("transferFrom",[e,t,await this.normalizeAmount(n)])}}async setAllowance(e,t){return{receipt:await this.contractWrapper.sendTransaction("approve",[e,await this.normalizeAmount(t)])}}async transferBatch(e){let t=await Promise.all(e.map(async n=>{let a=await this.normalizeAmount(n.amount);return this.contractWrapper.readContract.interface.encodeFunctionData("transfer",[n.toAddress,a])}));await this.contractWrapper.multiCall(t)}async mint(e){return this.mintTo(await this.contractWrapper.getSignerAddress(),e)}async mintTo(e,t){return xr(this.mintable,l_).to(e,t)}async getMintTransaction(e,t){return xr(this.mintable,l_).getMintTransaction(e,t)}async mintBatchTo(e){return xr(this.mintable?.batch,pP).to(e)}async burn(e){return xr(this.burnable,u_).tokens(e)}async burnFrom(e,t){return xr(this.burnable,u_).from(e,t)}async claim(e,t){return this.claimTo(await this.contractWrapper.getSignerAddress(),e,t)}async claimTo(e,t,n){return xr(this.droppable?.claim,c_).to(e,t,n)}get claimConditions(){return xr(this.droppable?.claim,c_).conditions}get signature(){return xr(this.signatureMintable,dP)}async normalizeAmount(e){let t=await this.contractWrapper.readContract.decimals();return se.ethers.utils.parseUnits(ue.AmountSchema.parse(e),t)}async getValue(e){return await mp(this.contractWrapper.getProvider(),this.getAddress(),se.BigNumber.from(e))}detectErc20Mintable(){if(Dt(this.contractWrapper,"ERC20"))return new PP(this,this.contractWrapper)}detectErc20Burnable(){if(Dt(this.contractWrapper,"ERC20Burnable"))return new MP(this,this.contractWrapper)}detectErc20Droppable(){if(Dt(this.contractWrapper,"ERC20ClaimConditionsV1")||Dt(this.contractWrapper,"ERC20ClaimConditionsV2")||Dt(this.contractWrapper,"ERC20ClaimPhasesV1")||Dt(this.contractWrapper,"ERC20ClaimPhasesV2"))return new tG(this,this.contractWrapper,this.storage)}detectErc20SignatureMintable(){if(Dt(this.contractWrapper,"ERC20SignatureMintable"))return new RP(this.contractWrapper)}},rG=class{constructor(e,t){ue._defineProperty(this,"events",void 0),ue._defineProperty(this,"contractWrapper",void 0),this.contractWrapper=e,this.events=t}async getAllHolderBalances(){let t=(await this.events.getEvents("Transfer")).map(a=>a.data),n={};return t.forEach(a=>{let i=a?.from,s=a?.to,c=a?.value;i!==se.constants.AddressZero&&(i in n||(n[i]=se.BigNumber.from(0)),n[i]=n[i].sub(c)),s!==se.constants.AddressZero&&(s in n||(n[s]=se.BigNumber.from(0)),n[s]=n[s].add(c))}),Promise.all(Object.keys(n).map(async a=>({holder:a,balance:await mp(this.contractWrapper.getProvider(),this.contractWrapper.readContract.address,n[a])})))}},nG=class{get chainId(){return this._chainId}constructor(e,t,n){ue._defineProperty(this,"contractWrapper",void 0),ue._defineProperty(this,"storage",void 0),ue._defineProperty(this,"erc20",void 0),ue._defineProperty(this,"_chainId",void 0),this.contractWrapper=e,this.storage=t,this.erc20=new b_(this.contractWrapper,this.storage,n),this._chainId=n}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}async get(){return this.erc20.get()}async balance(){return await this.erc20.balance()}async balanceOf(e){return this.erc20.balanceOf(e)}async totalSupply(){return await this.erc20.totalSupply()}async allowance(e){return await this.erc20.allowance(e)}async allowanceOf(e,t){return await this.erc20.allowanceOf(e,t)}async transfer(e,t){return this.erc20.transfer(e,t)}async transferFrom(e,t,n){return this.erc20.transferFrom(e,t,n)}async setAllowance(e,t){return this.erc20.setAllowance(e,t)}async transferBatch(e){return this.erc20.transferBatch(e)}},NP=class{constructor(e){ue._defineProperty(this,"featureName",fP.name),ue._defineProperty(this,"contractWrapper",void 0),this.contractWrapper=e}async token(e){return{receipt:await this.contractWrapper.sendTransaction("burn",[e])}}},aG=class{constructor(e,t){ue._defineProperty(this,"featureName",p_.name),ue._defineProperty(this,"erc721",void 0),ue._defineProperty(this,"contractWrapper",void 0),this.erc721=e,this.contractWrapper=t}async getClaimTransaction(e,t,n){let a={};return n&&n.pricePerToken&&(a=await Wje(this.contractWrapper,n.pricePerToken,t,n.currencyAddress,n.checkERC20Allowance)),md.make({contractWrapper:this.contractWrapper,functionName:"claim",args:[e,t],overrides:a})}async to(e,t,n){let a=await this.getClaimTransaction(e,t,n),{receipt:i}=await a.execute(),c=this.contractWrapper.parseLogs("TokensClaimed",i?.logs)[0].args.startTokenId,l=c.add(t),d=[];for(let f=c;f.lt(l);f=f.add(1))d.push({id:f,receipt:i,data:()=>this.erc721.get(f)});return d}},OP=class{constructor(e,t,n){ue._defineProperty(this,"featureName",yP.name),ue._defineProperty(this,"conditions",void 0),ue._defineProperty(this,"contractWrapper",void 0),ue._defineProperty(this,"erc721",void 0),ue._defineProperty(this,"storage",void 0),this.erc721=e,this.contractWrapper=t,this.storage=n;let a=new G0(this.contractWrapper,Ow,this.storage);this.conditions=new v_(this.contractWrapper,a,this.storage)}async to(e,t,n){let a=await this.conditions.getClaimTransaction(e,t,n),{receipt:i}=await a.execute(),c=this.contractWrapper.parseLogs("TokensClaimed",i?.logs)[0].args.startTokenId,l=c.add(t),d=[];for(let f=c;f.lt(l);f=f.add(1))d.push({id:f,receipt:i,data:()=>this.erc721.get(f)});return d}},LP=class{constructor(e,t,n){ue._defineProperty(this,"featureName",gP.name),ue._defineProperty(this,"revealer",void 0),ue._defineProperty(this,"claimWithConditions",void 0),ue._defineProperty(this,"claim",void 0),ue._defineProperty(this,"contractWrapper",void 0),ue._defineProperty(this,"erc721",void 0),ue._defineProperty(this,"storage",void 0),this.erc721=e,this.contractWrapper=t,this.storage=n,this.revealer=this.detectErc721Revealable(),this.claimWithConditions=this.detectErc721ClaimableWithConditions(),this.claim=this.detectErc721Claimable()}async lazyMint(e,t){let n=await this.erc721.nextTokenIdToMint(),a=await Pv(e,this.storage,n.toNumber(),t),i=Tw(a),s=await this.contractWrapper.sendTransaction("lazyMint",[a.length,i.endsWith("/")?i:`${i}/`,se.ethers.utils.toUtf8Bytes("")]),c=this.contractWrapper.parseLogs("TokensLazyMinted",s?.logs),l=c[0].args.startTokenId,d=c[0].args.endTokenId,f=[];for(let w=l;w.lte(d);w=w.add(1))f.push({id:w,receipt:s,data:()=>this.erc721.getTokenMetadata(w)});return f}detectErc721Revealable(){if(Dt(this.contractWrapper,"ERC721Revealable"))return new o_(this.contractWrapper,this.storage,d_.name,()=>this.erc721.nextTokenIdToMint())}detectErc721ClaimableWithConditions(){if(Dt(this.contractWrapper,"ERC721ClaimConditionsV1")||Dt(this.contractWrapper,"ERC721ClaimConditionsV2")||Dt(this.contractWrapper,"ERC721ClaimPhasesV1")||Dt(this.contractWrapper,"ERC721ClaimPhasesV2"))return new OP(this.erc721,this.contractWrapper,this.storage)}detectErc721Claimable(){if(Dt(this.contractWrapper,"ERC721ClaimCustom"))return new aG(this.erc721,this.contractWrapper)}},BP=class{constructor(e,t,n){ue._defineProperty(this,"featureName",vP.name),ue._defineProperty(this,"contractWrapper",void 0),ue._defineProperty(this,"storage",void 0),ue._defineProperty(this,"erc721",void 0),this.erc721=e,this.contractWrapper=t,this.storage=n}async to(e,t){let a=(await Pv(t,this.storage)).map(c=>this.contractWrapper.readContract.interface.encodeFunctionData("mintTo",[e,c])),i=await this.contractWrapper.multiCall(a),s=this.contractWrapper.parseLogs("TokensMinted",i.logs);if(s.length===0||s.length{let l=c.args.tokenIdMinted;return{id:l,receipt:i,data:()=>this.erc721.get(l)}})}},qP=class{constructor(e,t,n){ue._defineProperty(this,"featureName",h_.name),ue._defineProperty(this,"contractWrapper",void 0),ue._defineProperty(this,"storage",void 0),ue._defineProperty(this,"erc721",void 0),ue._defineProperty(this,"batch",void 0),this.erc721=e,this.contractWrapper=t,this.storage=n,this.batch=this.detectErc721BatchMintable()}async to(e,t){let n=await this.getMintTransaction(e,t),{receipt:a}=await n.execute(),i=this.contractWrapper.parseLogs("Transfer",a?.logs);if(i.length===0)throw new Error("TransferEvent event not found");let s=i[0].args.tokenId;return{id:s,receipt:a,data:()=>this.erc721.get(s)}}async getMintTransaction(e,t){let n=await FG(t,this.storage);return md.make({contractWrapper:this.contractWrapper,functionName:"mintTo",args:[e,n]})}detectErc721BatchMintable(){if(Dt(this.contractWrapper,"ERC721BatchMintable"))return new BP(this.erc721,this.contractWrapper,this.storage)}},DP=class{constructor(e,t){ue._defineProperty(this,"featureName",VV.name),ue._defineProperty(this,"contractWrapper",void 0),ue._defineProperty(this,"erc721",void 0),this.erc721=e,this.contractWrapper=t}async all(e){let t=await this.tokenIds(e);return await Promise.all(t.map(n=>this.erc721.get(n.toString())))}async tokenIds(e){let t=e||await this.contractWrapper.getSignerAddress(),n=await this.contractWrapper.readContract.balanceOf(t),a=Array.from(Array(n.toNumber()).keys());return await Promise.all(a.map(i=>this.contractWrapper.readContract.tokenOfOwnerByIndex(t,i)))}},FP=class{constructor(e,t){ue._defineProperty(this,"featureName",_w.name),ue._defineProperty(this,"contractWrapper",void 0),ue._defineProperty(this,"erc721",void 0),ue._defineProperty(this,"owned",void 0),this.erc721=e,this.contractWrapper=t,this.owned=this.detectErc721Owned()}async all(e){let t=se.BigNumber.from(e?.start||0).toNumber(),n=se.BigNumber.from(e?.count||ue.DEFAULT_QUERY_ALL_COUNT).toNumber(),a=await this.erc721.nextTokenIdToMint(),i=Math.min(a.toNumber(),t+n);return await Promise.all([...Array(i-t).keys()].map(s=>this.erc721.get((t+s).toString())))}async allOwners(){return Promise.all([...new Array((await this.totalCount()).toNumber()).keys()].map(async e=>({tokenId:e,owner:await this.erc721.ownerOf(e).catch(()=>se.constants.AddressZero)})))}async totalCount(){return await this.erc721.nextTokenIdToMint()}async totalCirculatingSupply(){return await this.contractWrapper.readContract.totalSupply()}detectErc721Owned(){if(Dt(this.contractWrapper,"ERC721Enumerable"))return new DP(this.erc721,this.contractWrapper)}},jur=r7.extend({tierPriority:Te.z.array(Te.z.string()),royaltyRecipient:Te.z.string().default(se.constants.AddressZero),royaltyBps:ue.BasisPointsSchema.default(0),quantity:Ri.default(1)}),iG=class{constructor(e,t,n){ue._defineProperty(this,"featureName",mP.name),ue._defineProperty(this,"contractWrapper",void 0),ue._defineProperty(this,"erc721",void 0),ue._defineProperty(this,"storage",void 0),this.erc721=e,this.contractWrapper=t,this.storage=n}async getMetadataInTier(e){let n=(await this.contractWrapper.readContract.getMetadataForAllTiers()).find(i=>i.tier===e);if(!n)throw new Error("Tier not found in contract.");return await Promise.all(n.ranges.map((i,s)=>{let c=[],l=n.baseURIs[s];for(let d=i.startIdInclusive.toNumber();d{let s=[];for(let c=i.startIdInclusive.toNumber();cthis.erc721.getTokenMetadata(E)});return w}async createDelayedRevealBatchWithTier(e,t,n,a,i){if(!n)throw new Error("Password is required");let s=await this.storage.uploadBatch([ue.CommonNFTInput.parse(e)],{rewriteFileNames:{fileStartNumber:0}}),c=Tw(s),l=await this.erc721.nextTokenIdToMint(),d=await this.storage.uploadBatch(t.map(K=>ue.CommonNFTInput.parse(K)),{onProgress:i?.onProgress,rewriteFileNames:{fileStartNumber:l.toNumber()}}),f=Tw(d),w=await this.contractWrapper.readContract.getBaseURICount(),E=await this.contractWrapper.getChainID(),k=se.ethers.utils.solidityKeccak256(["string","uint256","uint256","address"],[n,E,w,this.contractWrapper.readContract.address]),A=await this.contractWrapper.readContract.encryptDecrypt(se.ethers.utils.toUtf8Bytes(f),k),L,q=se.ethers.utils.solidityKeccak256(["bytes","bytes","uint256"],[se.ethers.utils.toUtf8Bytes(f),k,E]);L=se.ethers.utils.defaultAbiCoder.encode(["bytes","bytes32"],[A,q]);let U=await this.contractWrapper.sendTransaction("lazyMint",[d.length,c.endsWith("/")?c:`${c}/`,a,L]),j=this.contractWrapper.parseLogs("TokensLazyMinted",U?.logs),H=j[0].args[1],G=j[0].args[2],te=[];for(let K=H;K.lte(G);K=K.add(1))te.push({id:K,receipt:U,data:()=>this.erc721.getTokenMetadata(K)});return te}async reveal(e,t){if(!t)throw new Error("Password is required");let n=await this.contractWrapper.getChainID(),a=se.ethers.utils.solidityKeccak256(["string","uint256","uint256","address"],[t,n,e,this.contractWrapper.readContract.address]);try{let i=await this.contractWrapper.callStatic().reveal(e,a);if(!i.includes("://")||!i.endsWith("/"))throw new Error("invalid password")}catch{throw new Error("invalid password")}return{receipt:await this.contractWrapper.sendTransaction("reveal",[e,a])}}async generate(e){let[t]=await this.generateBatch([e]);return t}async generateBatch(e){let t=e.map(i=>jur.parse(i)),n=await this.contractWrapper.getChainID(),a=this.contractWrapper.getSigner();return mr.default(a,"No signer available"),await Promise.all(t.map(async i=>{let s=await this.contractWrapper.signTypedData(a,{name:"SignatureAction",version:"1",chainId:n,verifyingContract:this.contractWrapper.readContract.address},{GenericRequest:hje},await this.mapPayloadToContractStruct(i));return{payload:i,signature:s.toString()}}))}async verify(e){let t=await this.mapPayloadToContractStruct(e.payload);return(await this.contractWrapper.readContract.verify(t,e.signature))[0]}async claimWithSignature(e){let t=await this.mapPayloadToContractStruct(e.payload),a=(await cc(this.contractWrapper.getProvider(),e.payload.price,e.payload.currencyAddress)).mul(e.payload.quantity),i=await this.contractWrapper.getCallOverrides();await V0(this.contractWrapper,a,e.payload.currencyAddress,i);let s=await this.contractWrapper.sendTransaction("claimWithSignature",[t,e.signature],i),c=this.contractWrapper.parseLogs("TokensClaimed",s?.logs),l=c[0].args.startTokenId,d=l.add(c[0].args.quantityClaimed),f=[];for(let w=l;w.lt(d);w=w.add(1))f.push({id:w,receipt:s,data:()=>this.erc721.get(w)});return f}async mapPayloadToContractStruct(e){let t=await cc(this.contractWrapper.getProvider(),e.price,e.currencyAddress),n=se.ethers.utils.defaultAbiCoder.encode(["string[]","address","address","uint256","address","uint256","uint256","address"],[e.tierPriority,e.to,e.royaltyRecipient,e.royaltyBps,e.primarySaleRecipient,e.quantity,t,e.currencyAddress]);return{uid:e.uid,validityStartTimestamp:e.mintStartTime,validityEndTimestamp:e.mintEndTime,data:n}}},UP=class{constructor(e,t){ue._defineProperty(this,"featureName",bP.name),ue._defineProperty(this,"contractWrapper",void 0),ue._defineProperty(this,"storage",void 0),this.contractWrapper=e,this.storage=t}async mint(e){let t=e.payload,n=e.signature,a=await this.isLegacyNFTContract(),i,s;a?(i=await this.mapLegacyPayloadToContractStruct(t),s=i.price):(i=await this.mapPayloadToContractStruct(t),s=i.pricePerToken.mul(i.quantity));let c=await this.contractWrapper.getCallOverrides();await V0(this.contractWrapper,s,t.currencyAddress,c);let l=await this.contractWrapper.sendTransaction("mintWithSignature",[i,n],c),d=this.contractWrapper.parseLogs("TokensMintedWithSignature",l.logs);if(d.length===0)throw new Error("No MintWithSignature event found");return{id:d[0].args.tokenIdMinted,receipt:l}}async mintBatch(e){let t=await this.isLegacyNFTContract(),a=(await Promise.all(e.map(async c=>{let l;t?l=await this.mapLegacyPayloadToContractStruct(c.payload):l=await this.mapPayloadToContractStruct(c.payload);let d=c.signature,f=c.payload.price;if(se.BigNumber.from(f).gt(0))throw new Error("Can only batch free mints. For mints with a price, use regular mint()");return{message:l,signature:d}}))).map(c=>t?this.contractWrapper.readContract.interface.encodeFunctionData("mintWithSignature",[c.message,c.signature]):this.contractWrapper.readContract.interface.encodeFunctionData("mintWithSignature",[c.message,c.signature])),i=await this.contractWrapper.multiCall(a),s=this.contractWrapper.parseLogs("TokensMintedWithSignature",i.logs);if(s.length===0)throw new Error("No MintWithSignature event found");return s.map(c=>({id:c.args.tokenIdMinted,receipt:i}))}async verify(e){let t=await this.isLegacyNFTContract(),n=e.payload,a=e.signature,i,s;if(t){let c=this.contractWrapper.readContract;i=await this.mapLegacyPayloadToContractStruct(n),s=await c.verify(i,a)}else{let c=this.contractWrapper.readContract;i=await this.mapPayloadToContractStruct(n),s=await c.verify(i,a)}return s[0]}async generate(e){return(await this.generateBatch([e]))[0]}async generateBatch(e){let t=await this.isLegacyNFTContract(),n=e.map(l=>oje.parse(l)),a=n.map(l=>l.metadata),i=await Pv(a,this.storage),s=await this.contractWrapper.getChainID(),c=this.contractWrapper.getSigner();return mr.default(c,"No signer available"),await Promise.all(n.map(async(l,d)=>{let f=i[d],w=cje.parse({...l,uri:f}),E;return t?E=await this.contractWrapper.signTypedData(c,{name:"TokenERC721",version:"1",chainId:s,verifyingContract:this.contractWrapper.readContract.address},{MintRequest:lje},await this.mapLegacyPayloadToContractStruct(w)):E=await this.contractWrapper.signTypedData(c,{name:"SignatureMintERC721",version:"1",chainId:s,verifyingContract:await this.contractWrapper.readContract.address},{MintRequest:pje},await this.mapPayloadToContractStruct(w)),{payload:w,signature:E.toString()}}))}async mapPayloadToContractStruct(e){let t=await cc(this.contractWrapper.getProvider(),e.price,e.currencyAddress);return{to:e.to,royaltyRecipient:e.royaltyRecipient,royaltyBps:e.royaltyBps,primarySaleRecipient:e.primarySaleRecipient,uri:e.uri,quantity:e.quantity,pricePerToken:t,currency:e.currencyAddress,validityStartTimestamp:e.mintStartTime,validityEndTimestamp:e.mintEndTime,uid:e.uid}}async mapLegacyPayloadToContractStruct(e){let t=await cc(this.contractWrapper.getProvider(),e.price,e.currencyAddress);return{to:e.to,price:t,uri:e.uri,currency:e.currencyAddress,validityEndTimestamp:e.mintEndTime,validityStartTimestamp:e.mintStartTime,uid:e.uid,royaltyRecipient:e.royaltyRecipient,royaltyBps:e.royaltyBps,primarySaleRecipient:e.primarySaleRecipient}}async isLegacyNFTContract(){return Dt(this.contractWrapper,"ERC721SignatureMintV1")}},w_=class{get chainId(){return this._chainId}constructor(e,t,n){ue._defineProperty(this,"featureName",wP.name),ue._defineProperty(this,"query",void 0),ue._defineProperty(this,"mintable",void 0),ue._defineProperty(this,"burnable",void 0),ue._defineProperty(this,"lazyMintable",void 0),ue._defineProperty(this,"tieredDropable",void 0),ue._defineProperty(this,"signatureMintable",void 0),ue._defineProperty(this,"contractWrapper",void 0),ue._defineProperty(this,"storage",void 0),ue._defineProperty(this,"_chainId",void 0),this.contractWrapper=e,this.storage=t,this.query=this.detectErc721Enumerable(),this.mintable=this.detectErc721Mintable(),this.burnable=this.detectErc721Burnable(),this.lazyMintable=this.detectErc721LazyMintable(),this.tieredDropable=this.detectErc721TieredDrop(),this.signatureMintable=this.detectErc721SignatureMintable(),this._chainId=n}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}async get(e){let[t,n]=await Promise.all([this.ownerOf(e).catch(()=>se.constants.AddressZero),this.getTokenMetadata(e).catch(()=>({id:e.toString(),uri:"",...qG}))]);return{owner:t,metadata:n,type:"ERC721",supply:1}}async ownerOf(e){return await this.contractWrapper.readContract.ownerOf(e)}async balanceOf(e){return await this.contractWrapper.readContract.balanceOf(e)}async balance(){return await this.balanceOf(await this.contractWrapper.getSignerAddress())}async isApproved(e,t){return await this.contractWrapper.readContract.isApprovedForAll(e,t)}async transfer(e,t){let n=await this.contractWrapper.getSignerAddress();return{receipt:await this.contractWrapper.sendTransaction("safeTransferFrom(address,address,uint256)",[n,e,t])}}async setApprovalForAll(e,t){return{receipt:await this.contractWrapper.sendTransaction("setApprovalForAll",[e,t])}}async setApprovalForToken(e,t){return{receipt:await this.contractWrapper.sendTransaction("approve",[e,t])}}async getAll(e){return xr(this.query,_w).all(e)}async getAllOwners(){return xr(this.query,_w).allOwners()}async totalCount(){return this.nextTokenIdToMint()}async totalCirculatingSupply(){return xr(this.query,_w).totalCirculatingSupply()}async getOwned(e){if(this.query?.owned)return this.query.owned.all(e);{let t=e||await this.contractWrapper.getSignerAddress(),n=await this.getAllOwners();return Promise.all((n||[]).filter(a=>t?.toLowerCase()===a.owner?.toLowerCase()).map(async a=>await this.get(a.tokenId)))}}async getOwnedTokenIds(e){if(this.query?.owned)return this.query.owned.tokenIds(e);{let t=e||await this.contractWrapper.getSignerAddress();return(await this.getAllOwners()||[]).filter(a=>t?.toLowerCase()===a.owner?.toLowerCase()).map(a=>se.BigNumber.from(a.tokenId))}}async mint(e){return this.mintTo(await this.contractWrapper.getSignerAddress(),e)}async mintTo(e,t){return xr(this.mintable,h_).to(e,t)}async getMintTransaction(e,t){return xr(this.mintable,h_).getMintTransaction(e,t)}async mintBatch(e){return this.mintBatchTo(await this.contractWrapper.getSignerAddress(),e)}async mintBatchTo(e,t){return xr(this.mintable?.batch,vP).to(e,t)}async burn(e){return xr(this.burnable,fP).token(e)}async lazyMint(e,t){return xr(this.lazyMintable,gP).lazyMint(e,t)}async claim(e,t){return this.claimTo(await this.contractWrapper.getSignerAddress(),e,t)}async claimTo(e,t,n){let a=this.lazyMintable?.claimWithConditions,i=this.lazyMintable?.claim;if(a)return a.to(e,t,n);if(i)return i.to(e,t,n);throw new nm(p_)}async getClaimTransaction(e,t,n){let a=this.lazyMintable?.claimWithConditions,i=this.lazyMintable?.claim;if(a)return a.conditions.getClaimTransaction(e,t,n);if(i)return i.getClaimTransaction(e,t,n);throw new nm(p_)}async totalClaimedSupply(){let e=this.contractWrapper;if(oc("nextTokenIdToClaim",e))return e.readContract.nextTokenIdToClaim();if(oc("totalMinted",e))return e.readContract.totalMinted();throw new Error("No function found on contract to get total claimed supply")}async totalUnclaimedSupply(){return(await this.nextTokenIdToMint()).sub(await this.totalClaimedSupply())}get claimConditions(){return xr(this.lazyMintable?.claimWithConditions,yP).conditions}get tieredDrop(){return xr(this.tieredDropable,mP)}get signature(){return xr(this.signatureMintable,bP)}get revealer(){return xr(this.lazyMintable?.revealer,d_)}async getTokenMetadata(e){let t=await this.contractWrapper.readContract.tokenURI(e);if(!t)throw new Ew;return DG(e,t,this.storage)}async nextTokenIdToMint(){if(oc("nextTokenIdToMint",this.contractWrapper))return await this.contractWrapper.readContract.nextTokenIdToMint();if(oc("totalSupply",this.contractWrapper))return await this.contractWrapper.readContract.totalSupply();throw new Error("Contract requires either `nextTokenIdToMint` or `totalSupply` function available to determine the next token ID to mint")}detectErc721Enumerable(){if(Dt(this.contractWrapper,"ERC721Supply")||oc("nextTokenIdToMint",this.contractWrapper))return new FP(this,this.contractWrapper)}detectErc721Mintable(){if(Dt(this.contractWrapper,"ERC721Mintable"))return new qP(this,this.contractWrapper,this.storage)}detectErc721Burnable(){if(Dt(this.contractWrapper,"ERC721Burnable"))return new NP(this.contractWrapper)}detectErc721LazyMintable(){if(Dt(this.contractWrapper,"ERC721LazyMintable"))return new LP(this,this.contractWrapper,this.storage)}detectErc721TieredDrop(){if(Dt(this.contractWrapper,"ERC721TieredDrop"))return new iG(this,this.contractWrapper,this.storage)}detectErc721SignatureMintable(){if(Dt(this.contractWrapper,"ERC721SignatureMintV1")||Dt(this.contractWrapper,"ERC721SignatureMintV2"))return new UP(this.contractWrapper,this.storage)}},sG=class{get chainId(){return this._chainId}constructor(e,t,n){ue._defineProperty(this,"contractWrapper",void 0),ue._defineProperty(this,"storage",void 0),ue._defineProperty(this,"erc721",void 0),ue._defineProperty(this,"_chainId",void 0),this.contractWrapper=e,this.storage=t,this.erc721=new w_(this.contractWrapper,this.storage,n),this._chainId=n}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}async getAll(e){return this.erc721.getAll(e)}async getOwned(e){return this.erc721.getOwned(e)}async getOwnedTokenIds(e){return this.erc721.getOwnedTokenIds(e)}async totalSupply(){return this.erc721.totalCirculatingSupply()}async get(e){return this.erc721.get(e)}async ownerOf(e){return this.erc721.ownerOf(e)}async balanceOf(e){return this.erc721.balanceOf(e)}async balance(){return this.erc721.balance()}async isApproved(e,t){return this.erc721.isApproved(e,t)}async transfer(e,t){return this.erc721.transfer(e,t)}async setApprovalForAll(e,t){return this.erc721.setApprovalForAll(e,t)}async setApprovalForToken(e,t){return{receipt:await this.contractWrapper.sendTransaction("approve",[e,t])}}},SWe=Te.z.object({address:jc,quantity:ue.AmountSchema.default(1)}),zur=Te.z.union([Te.z.array(Te.z.string()).transform(r=>r.map(e=>SWe.parse({address:e}))),Te.z.array(SWe)]),WP=class{constructor(e){ue._defineProperty(this,"featureName",Ev.name),ue._defineProperty(this,"contractWrapper",void 0),this.contractWrapper=e}async tokens(e,t){let n=await this.contractWrapper.getSignerAddress();return this.from(n,e,t)}async from(e,t,n){return{receipt:await this.contractWrapper.sendTransaction("burn",[e,t,n])}}async batch(e,t){let n=await this.contractWrapper.getSignerAddress();return this.batchFrom(n,e,t)}async batchFrom(e,t,n){return{receipt:await this.contractWrapper.sendTransaction("burnBatch",[e,t,n])}}},jP=class{constructor(e,t){ue._defineProperty(this,"featureName",Sv.name),ue._defineProperty(this,"contractWrapper",void 0),ue._defineProperty(this,"erc1155",void 0),this.erc1155=e,this.contractWrapper=t}async all(e){let t=se.BigNumber.from(e?.start||0).toNumber(),n=se.BigNumber.from(e?.count||ue.DEFAULT_QUERY_ALL_COUNT).toNumber(),a=Math.min((await this.totalCount()).toNumber(),t+n);return await Promise.all([...Array(a-t).keys()].map(i=>this.erc1155.get((t+i).toString())))}async totalCount(){return await this.contractWrapper.readContract.nextTokenIdToMint()}async totalCirculatingSupply(e){return await this.contractWrapper.readContract.totalSupply(e)}async owned(e){let t=e||await this.contractWrapper.getSignerAddress(),n=await this.contractWrapper.readContract.nextTokenIdToMint(),i=(await this.contractWrapper.readContract.balanceOfBatch(Array(n.toNumber()).fill(t),Array.from(Array(n.toNumber()).keys()))).map((s,c)=>({tokenId:c,balance:s})).filter(s=>s.balance.gt(0));return await Promise.all(i.map(async s=>({...await this.erc1155.get(s.tokenId.toString()),owner:t,quantityOwned:s.balance.toNumber()})))}};async function ZG(r,e){try{let t=new se.ethers.Contract(r,WWe.default,e),[n,a]=await Promise.all([se.ethers.utils.toUtf8String(await t.contractType()).replace(/\x00/g,""),await t.contractVersion()]);return{type:n,version:a}}catch{return}}var oG=class{constructor(e){ue._defineProperty(this,"featureName",f_.name),ue._defineProperty(this,"contractWrapper",void 0),this.contractWrapper=e}async getClaimTransaction(e,t,n,a){let i={};return a&&a.pricePerToken&&(i=await Wje(this.contractWrapper,a.pricePerToken,n,a.currencyAddress,a.checkERC20Allowance)),md.make({contractWrapper:this.contractWrapper,functionName:"claim",args:[e,t,n],overrides:i})}async to(e,t,n,a){return await(await this.getClaimTransaction(e,t,n,a)).execute()}},cG=class{constructor(e,t){ue._defineProperty(this,"featureName",xP.name),ue._defineProperty(this,"conditions",void 0),ue._defineProperty(this,"contractWrapper",void 0),ue._defineProperty(this,"storage",void 0),this.contractWrapper=e,this.storage=t;let n=new G0(this.contractWrapper,Ow,this.storage);this.conditions=new AP(e,n,this.storage)}async to(e,t,n,a){return await(await this.conditions.getClaimTransaction(e,t,n,a)).execute()}},zP=class{constructor(e,t,n){ue._defineProperty(this,"featureName",TP.name),ue._defineProperty(this,"revealer",void 0),ue._defineProperty(this,"claimWithConditions",void 0),ue._defineProperty(this,"claim",void 0),ue._defineProperty(this,"contractWrapper",void 0),ue._defineProperty(this,"erc1155",void 0),ue._defineProperty(this,"storage",void 0),this.erc1155=e,this.contractWrapper=t,this.storage=n,this.claim=this.detectErc1155Claimable(),this.claimWithConditions=this.detectErc1155ClaimableWithConditions(),this.revealer=this.detectErc1155Revealable()}async lazyMint(e,t){let n=await this.erc1155.nextTokenIdToMint(),a=await Pv(e,this.storage,n.toNumber(),t),i=a[0].substring(0,a[0].lastIndexOf("/"));for(let E=0;Ethis.erc1155.getTokenMetadata(E)});return w}detectErc1155Claimable(){if(Dt(this.contractWrapper,"ERC1155ClaimCustom"))return new oG(this.contractWrapper)}detectErc1155ClaimableWithConditions(){if(Dt(this.contractWrapper,"ERC1155ClaimConditionsV1")||Dt(this.contractWrapper,"ERC1155ClaimConditionsV2")||Dt(this.contractWrapper,"ERC1155ClaimPhasesV1")||Dt(this.contractWrapper,"ERC1155ClaimPhasesV2"))return new cG(this.contractWrapper,this.storage)}detectErc1155Revealable(){if(Dt(this.contractWrapper,"ERC1155Revealable"))return new o_(this.contractWrapper,this.storage,Sw.name,()=>this.erc1155.nextTokenIdToMint())}async isLegacyEditionDropContract(){let e=await ZG(this.contractWrapper.readContract.address,this.contractWrapper.getProvider());return e&&e.type==="DropERC1155"&&e.version<3}},HP=class{constructor(e,t,n){ue._defineProperty(this,"featureName",CP.name),ue._defineProperty(this,"contractWrapper",void 0),ue._defineProperty(this,"erc1155",void 0),ue._defineProperty(this,"storage",void 0),this.erc1155=e,this.contractWrapper=t,this.storage=n}async to(e,t){let n=t.map(d=>d.metadata),a=t.map(d=>d.supply),s=(await Pv(n,this.storage)).map((d,f)=>this.contractWrapper.readContract.interface.encodeFunctionData("mintTo",[e,se.ethers.constants.MaxUint256,d,a[f]])),c=await this.contractWrapper.multiCall(s),l=this.contractWrapper.parseLogs("TokensMinted",c.logs);if(l.length===0||l.length{let f=d.args.tokenIdMinted;return{id:f,receipt:c,data:()=>this.erc1155.get(f)}})}},VP=class{constructor(e,t,n){ue._defineProperty(this,"featureName",kv.name),ue._defineProperty(this,"contractWrapper",void 0),ue._defineProperty(this,"erc1155",void 0),ue._defineProperty(this,"storage",void 0),ue._defineProperty(this,"batch",void 0),this.erc1155=e,this.contractWrapper=t,this.storage=n,this.batch=this.detectErc1155BatchMintable()}async to(e,t){let n=await this.getMintTransaction(e,t),{receipt:a}=await n.execute(),i=this.contractWrapper.parseLogs("TransferSingle",a?.logs);if(i.length===0)throw new Error("TransferSingleEvent event not found");let s=i[0].args.id;return{id:s,receipt:a,data:()=>this.erc1155.get(s.toString())}}async getMintTransaction(e,t){let n=await FG(t.metadata,this.storage);return md.make({contractWrapper:this.contractWrapper,functionName:"mintTo",args:[e,se.ethers.constants.MaxUint256,n,t.supply]})}async additionalSupplyTo(e,t,n){let a=await this.erc1155.getTokenMetadata(t),i=await this.contractWrapper.sendTransaction("mintTo",[e,t,a.uri,n]);return{id:se.BigNumber.from(t),receipt:i,data:()=>this.erc1155.get(t)}}detectErc1155BatchMintable(){if(Dt(this.contractWrapper,"ERC1155BatchMintable"))return new HP(this.erc1155,this.contractWrapper,this.storage)}},GP=class{constructor(e,t,n){ue._defineProperty(this,"featureName",_P.name),ue._defineProperty(this,"contractWrapper",void 0),ue._defineProperty(this,"storage",void 0),ue._defineProperty(this,"roles",void 0),this.contractWrapper=e,this.storage=t,this.roles=n}async mint(e){let t=e.payload,n=e.signature,a=await this.mapPayloadToContractStruct(t),i=await this.contractWrapper.getCallOverrides();await V0(this.contractWrapper,a.pricePerToken.mul(a.quantity),t.currencyAddress,i);let s=await this.contractWrapper.sendTransaction("mintWithSignature",[a,n],i),c=this.contractWrapper.parseLogs("TokensMintedWithSignature",s.logs);if(c.length===0)throw new Error("No MintWithSignature event found");return{id:c[0].args.tokenIdMinted,receipt:s}}async mintBatch(e){let n=(await Promise.all(e.map(async s=>{let c=await this.mapPayloadToContractStruct(s.payload),l=s.signature,d=s.payload.price;if(se.BigNumber.from(d).gt(0))throw new Error("Can only batch free mints. For mints with a price, use regular mint()");return{message:c,signature:l}}))).map(s=>this.contractWrapper.readContract.interface.encodeFunctionData("mintWithSignature",[s.message,s.signature])),a=await this.contractWrapper.multiCall(n),i=this.contractWrapper.parseLogs("TokensMintedWithSignature",a.logs);if(i.length===0)throw new Error("No MintWithSignature event found");return i.map(s=>({id:s.args.tokenIdMinted,receipt:a}))}async verify(e){let t=e.payload,n=e.signature,a=await this.mapPayloadToContractStruct(t);return(await this.contractWrapper.readContract.verify(a,n))[0]}async generate(e){let t={...e,tokenId:se.ethers.constants.MaxUint256};return this.generateFromTokenId(t)}async generateFromTokenId(e){return(await this.generateBatchFromTokenIds([e]))[0]}async generateBatch(e){let t=e.map(n=>({...n,tokenId:se.ethers.constants.MaxUint256}));return this.generateBatchFromTokenIds(t)}async generateBatchFromTokenIds(e){await this.roles?.verify(["minter"],await this.contractWrapper.getSignerAddress());let t=e.map(d=>ije.parse(d)),n=t.map(d=>d.metadata),a=await Pv(n,this.storage),i=await this.contractWrapper.getChainID(),s=this.contractWrapper.getSigner();mr.default(s,"No signer available");let l=(await ZG(this.contractWrapper.readContract.address,this.contractWrapper.getProvider()))?.type==="TokenERC1155";return await Promise.all(t.map(async(d,f)=>{let w=a[f],E=sje.parse({...d,uri:w}),k=await this.contractWrapper.signTypedData(s,{name:l?"TokenERC1155":"SignatureMintERC1155",version:"1",chainId:i,verifyingContract:this.contractWrapper.readContract.address},{MintRequest:dje},await this.mapPayloadToContractStruct(E));return{payload:E,signature:k.toString()}}))}async mapPayloadToContractStruct(e){let t=await cc(this.contractWrapper.getProvider(),e.price,e.currencyAddress);return{to:e.to,tokenId:e.tokenId,uri:e.uri,quantity:e.quantity,pricePerToken:t,currency:e.currencyAddress,validityStartTimestamp:e.mintStartTime,validityEndTimestamp:e.mintEndTime,uid:e.uid,royaltyRecipient:e.royaltyRecipient,royaltyBps:e.royaltyBps,primarySaleRecipient:e.primarySaleRecipient}}},x_=class{get chainId(){return this._chainId}constructor(e,t,n){ue._defineProperty(this,"featureName",EP.name),ue._defineProperty(this,"query",void 0),ue._defineProperty(this,"mintable",void 0),ue._defineProperty(this,"burnable",void 0),ue._defineProperty(this,"lazyMintable",void 0),ue._defineProperty(this,"signatureMintable",void 0),ue._defineProperty(this,"contractWrapper",void 0),ue._defineProperty(this,"storage",void 0),ue._defineProperty(this,"_chainId",void 0),this.contractWrapper=e,this.storage=t,this.query=this.detectErc1155Enumerable(),this.mintable=this.detectErc1155Mintable(),this.burnable=this.detectErc1155Burnable(),this.lazyMintable=this.detectErc1155LazyMintable(),this.signatureMintable=this.detectErc1155SignatureMintable(),this._chainId=n}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}async get(e){let[t,n]=await Promise.all([this.contractWrapper.readContract.totalSupply(e).catch(()=>se.BigNumber.from(0)),this.getTokenMetadata(e).catch(()=>({id:e.toString(),uri:"",...qG}))]);return{owner:se.ethers.constants.AddressZero,metadata:n,type:"ERC1155",supply:t.toNumber()}}async totalSupply(e){return await this.contractWrapper.readContract.totalSupply(e)}async balanceOf(e,t){return await this.contractWrapper.readContract.balanceOf(e,t)}async balance(e){return await this.balanceOf(await this.contractWrapper.getSignerAddress(),e)}async isApproved(e,t){return await this.contractWrapper.readContract.isApprovedForAll(e,t)}async transfer(e,t,n){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:[0],i=await this.contractWrapper.getSignerAddress();return{receipt:await this.contractWrapper.sendTransaction("safeTransferFrom",[i,e,t,n,a])}}async setApprovalForAll(e,t){return{receipt:await this.contractWrapper.sendTransaction("setApprovalForAll",[e,t])}}async airdrop(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[0],a=await this.contractWrapper.getSignerAddress(),i=await this.balanceOf(a,e),s=zur.parse(t),c=s.reduce((d,f)=>d+Number(f?.quantity||1),0);if(i.toNumber(){let{address:f,quantity:w}=d;return this.contractWrapper.readContract.interface.encodeFunctionData("safeTransferFrom",[a,f,e,w,n])});return{receipt:await this.contractWrapper.multiCall(l)}}async nextTokenIdToMint(){if(oc("nextTokenIdToMint",this.contractWrapper))return await this.contractWrapper.readContract.nextTokenIdToMint();throw new Error("Contract requires the `nextTokenIdToMint` function available to determine the next token ID to mint")}async getAll(e){return xr(this.query,Sv).all(e)}async totalCount(){return xr(this.query,Sv).totalCount()}async totalCirculatingSupply(e){return xr(this.query,Sv).totalCirculatingSupply(e)}async getOwned(e){return xr(this.query,Sv).owned(e)}async mint(e){return this.mintTo(await this.contractWrapper.getSignerAddress(),e)}async mintTo(e,t){return xr(this.mintable,kv).to(e,t)}async getMintTransaction(e,t){return xr(this.mintable,kv).getMintTransaction(e,t)}async mintAdditionalSupply(e,t){return xr(this.mintable,kv).additionalSupplyTo(await this.contractWrapper.getSignerAddress(),e,t)}async mintAdditionalSupplyTo(e,t,n){return xr(this.mintable,kv).additionalSupplyTo(e,t,n)}async mintBatch(e){return this.mintBatchTo(await this.contractWrapper.getSignerAddress(),e)}async mintBatchTo(e,t){return xr(this.mintable?.batch,CP).to(e,t)}async burn(e,t){return xr(this.burnable,Ev).tokens(e,t)}async burnFrom(e,t,n){return xr(this.burnable,Ev).from(e,t,n)}async burnBatch(e,t){return xr(this.burnable,Ev).batch(e,t)}async burnBatchFrom(e,t,n){return xr(this.burnable,Ev).batchFrom(e,t,n)}async lazyMint(e,t){return xr(this.lazyMintable,TP).lazyMint(e,t)}async getClaimTransaction(e,t,n,a){let i=this.lazyMintable?.claimWithConditions,s=this.lazyMintable?.claim;if(i)return i.conditions.getClaimTransaction(e,t,n,a);if(s)return s.getClaimTransaction(e,t,n,a);throw new nm(f_)}async claim(e,t,n){return this.claimTo(await this.contractWrapper.getSignerAddress(),e,t,n)}async claimTo(e,t,n,a){let i=this.lazyMintable?.claimWithConditions,s=this.lazyMintable?.claim;if(i)return i.to(e,t,n,a);if(s)return s.to(e,t,n,a);throw new nm(f_)}get claimConditions(){return xr(this.lazyMintable?.claimWithConditions,xP).conditions}get signature(){return xr(this.signatureMintable,_P)}get revealer(){return xr(this.lazyMintable?.revealer,Sw)}async getTokenMetadata(e){let t=await this.contractWrapper.readContract.uri(e);if(!t)throw new Ew;return DG(e,t,this.storage)}detectErc1155Enumerable(){if(Dt(this.contractWrapper,"ERC1155Enumerable"))return new jP(this,this.contractWrapper)}detectErc1155Mintable(){if(Dt(this.contractWrapper,"ERC1155Mintable"))return new VP(this,this.contractWrapper,this.storage)}detectErc1155Burnable(){if(Dt(this.contractWrapper,"ERC1155Burnable"))return new WP(this.contractWrapper)}detectErc1155LazyMintable(){if(Dt(this.contractWrapper,"ERC1155LazyMintableV1")||Dt(this.contractWrapper,"ERC1155LazyMintableV2"))return new zP(this,this.contractWrapper,this.storage)}detectErc1155SignatureMintable(){if(Dt(this.contractWrapper,"ERC1155SignatureMintable"))return new GP(this.contractWrapper,this.storage)}},uG=class{get chainId(){return this._chainId}constructor(e,t,n){ue._defineProperty(this,"contractWrapper",void 0),ue._defineProperty(this,"storage",void 0),ue._defineProperty(this,"erc1155",void 0),ue._defineProperty(this,"_chainId",void 0),this.contractWrapper=e,this.storage=t,this.erc1155=new x_(this.contractWrapper,this.storage,n),this._chainId=n}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}async get(e){return this.erc1155.get(e)}async totalSupply(e){return this.erc1155.totalSupply(e)}async balanceOf(e,t){return this.erc1155.balanceOf(e,t)}async balance(e){return this.erc1155.balance(e)}async isApproved(e,t){return this.erc1155.isApproved(e,t)}async transfer(e,t,n){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:[0];return this.erc1155.transfer(e,t,n,a)}async setApprovalForAll(e,t){return this.erc1155.setApprovalForAll(e,t)}async airdrop(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[0];return this.erc1155.airdrop(e,t,n)}};async function aze(r,e,t,n,a){try{let i=new se.Contract(t,t7.default,r),s=await i.supportsInterface(T_),c=await i.supportsInterface(__);if(s){let l=new se.Contract(t,mo.default,r);return await l.isApprovedForAll(a,e)?!0:(await l.getApproved(n)).toLowerCase()===e.toLowerCase()}else return c?await new se.Contract(t,zc.default,r).isApprovedForAll(a,e):(console.error("Contract does not implement ERC 1155 or ERC 721."),!1)}catch(i){return console.error("Failed to check if token is approved",i),!1}}async function JG(r,e,t,n,a){let i=new xs(r.getSignerOrProvider(),t,t7.default,r.options),s=await i.readContract.supportsInterface(T_),c=await i.readContract.supportsInterface(__);if(s){let l=new xs(r.getSignerOrProvider(),t,mo.default,r.options);await l.readContract.isApprovedForAll(a,e)||(await l.readContract.getApproved(n)).toLowerCase()===e.toLowerCase()||await l.sendTransaction("setApprovalForAll",[e,!0])}else if(c){let l=new xs(r.getSignerOrProvider(),t,zc.default,r.options);await l.readContract.isApprovedForAll(a,e)||await l.sendTransaction("setApprovalForAll",[e,!0])}else throw Error("Contract must implement ERC 1155 or ERC 721.")}function ize(r){switch(mr.default(r.assetContractAddress!==void 0&&r.assetContractAddress!==null,"Asset contract address is required"),mr.default(r.buyoutPricePerToken!==void 0&&r.buyoutPricePerToken!==null,"Buyout price is required"),mr.default(r.listingDurationInSeconds!==void 0&&r.listingDurationInSeconds!==null,"Listing duration is required"),mr.default(r.startTimestamp!==void 0&&r.startTimestamp!==null,"Start time is required"),mr.default(r.tokenId!==void 0&&r.tokenId!==null,"Token ID is required"),mr.default(r.quantity!==void 0&&r.quantity!==null,"Quantity is required"),r.type){case"NewAuctionListing":mr.default(r.reservePricePerToken!==void 0&&r.reservePricePerToken!==null,"Reserve price is required")}}async function KG(r,e,t){return{quantity:t.quantityDesired,pricePerToken:t.pricePerToken,currencyContractAddress:t.currency,buyerAddress:t.offeror,quantityDesired:t.quantityWanted,currencyValue:await mp(r,t.currency,t.quantityWanted.mul(t.pricePerToken)),listingId:e}}function Hur(r,e,t){return t=se.BigNumber.from(t),r=se.BigNumber.from(r),e=se.BigNumber.from(e),r.eq(se.BigNumber.from(0))?!1:e.sub(r).mul(ue.MAX_BPS).div(r).gte(t)}async function Vur(r,e,t){let n=[];for(;e-r>ue.DEFAULT_QUERY_ALL_COUNT;)n.push(t(r,r+ue.DEFAULT_QUERY_ALL_COUNT-1)),r+=ue.DEFAULT_QUERY_ALL_COUNT;return n.push(t(r,e-1)),await Promise.all(n)}var lG=class{constructor(e,t){ue._defineProperty(this,"contractWrapper",void 0),ue._defineProperty(this,"storage",void 0),this.contractWrapper=e,this.storage=t}getAddress(){return this.contractWrapper.readContract.address}async getListing(e){let t=await this.contractWrapper.readContract.listings(e);if(t.assetContract===se.constants.AddressZero)throw new n_(this.getAddress(),e.toString());if(t.listingType!==Y.ListingType.Direct)throw new a_(this.getAddress(),e.toString(),"Auction","Direct");return await this.mapListing(t)}async getActiveOffer(e,t){await this.validateListing(se.BigNumber.from(e)),mr.default(se.utils.isAddress(t),"Address must be a valid address");let n=await this.contractWrapper.readContract.offers(e,t);if(n.offeror!==se.constants.AddressZero)return await KG(this.contractWrapper.getProvider(),se.BigNumber.from(e),n)}async createListing(e){ize(e),await JG(this.contractWrapper,this.getAddress(),e.assetContractAddress,e.tokenId,await this.contractWrapper.getSignerAddress());let t=await cc(this.contractWrapper.getProvider(),e.buyoutPricePerToken,e.currencyContractAddress),n=Math.floor(e.startTimestamp.getTime()/1e3),i=(await this.contractWrapper.getProvider().getBlock("latest")).timestamp;nl.args.listingId.eq(se.BigNumber.from(e)));if(!c)throw new Error(`Could not find auction with listingId ${e} in closed auctions`);return c.args.winningBidder}async createListing(e){ize(e),await JG(this.contractWrapper,this.getAddress(),e.assetContractAddress,e.tokenId,await this.contractWrapper.getSignerAddress());let t=await cc(this.contractWrapper.getProvider(),e.buyoutPricePerToken,e.currencyContractAddress),n=await cc(this.contractWrapper.getProvider(),e.reservePricePerToken,e.currencyContractAddress),a=Math.floor(e.startTimestamp.getTime()/1e3),s=(await this.contractWrapper.getProvider().getBlock("latest")).timestamp;aw.pluginAddress),f=Array.from(new Set(d));i=await Gur(f,t,a)}}catch{}return i.length>0?Zur([e,...i]):e}async function Gur(r,e,t){return(await Promise.all(r.map(n=>Rv(n,e,t).catch(a=>(console.error(`Failed to fetch plug-in for ${n}`,a),{abi:[]}))))).map(n=>n.abi)}function Zur(r){let e=r.map(a=>vp.parse(a)).flat(),n=dur(e,(a,i)=>a.name===i.name&&a.type===i.type&&a.inputs.length===i.inputs.length).filter(a=>a.type!=="constructor");return vp.parse(n)}var sze=Su.merge(im).merge(Ts),Jur=ll.merge(im).merge(Ts),Kur=sze.merge(fd).merge(Q0).merge(dl),oze={deploy:Kur,output:Jur,input:sze},cze=Su.merge(fo).merge(Ts),Qur=ll.merge(fo).merge(Ts),Xur=cze.merge(dl),uze={deploy:Xur,output:Qur,input:cze},Ph={name:"DropERC1155",contractType:"edition-drop",schema:yje,roles:["admin","minter","transfer"],initialize:async function(){for(var r=arguments.length,e=new Array(r),t=0;t{let n=await Au(r,e,t);if(n)return n;let a=await o7(r,e);return!a||a.version>2?(await Promise.resolve().then(function(){return Js(FH())})).default:(await Promise.resolve().then(function(){return Js(UH())})).default}},Z0={name:"TokenERC1155",contractType:"edition",schema:Sje,roles:["admin","minter","transfer"],initialize:async function(){for(var r=arguments.length,e=new Array(r),t=0;t{let n=await Au(r,e,t);return n||(await Promise.resolve().then(function(){return Js(WH())})).default}},yp={name:"Marketplace",contractType:"marketplace",schema:OG,roles:["admin","lister","asset"],initialize:async function(){for(var r=arguments.length,e=new Array(r),t=0;t{let n=await Au(r,e,t);return n||(await Promise.resolve().then(function(){return Js(jH())})).default}},rm={name:"MarketplaceRouter",contractType:"marketplace-v3",schema:OG,roles:["admin","lister","asset"],initialize:async function(){for(var r=arguments.length,e=new Array(r),t=0;t{let n=await Au(r,e,t);if(n)return await pG(r,n,e,{},t);let a=(await Promise.resolve().then(function(){return Js(GH())})).default;return await pG(r,a,e,{},t)}},gp={name:"Multiwrap",contractType:"multiwrap",schema:uze,roles:["admin","transfer","minter","unwrap","asset"],initialize:async function(){for(var r=arguments.length,e=new Array(r),t=0;t{let n=await Au(r,e,t);return n||(await Promise.resolve().then(function(){return Js(ZH())})).default}},J0={name:"TokenERC721",contractType:"nft-collection",schema:Eje,roles:["admin","minter","transfer"],initialize:async function(){for(var r=arguments.length,e=new Array(r),t=0;t{let n=await Au(r,e,t);return n||(await Promise.resolve().then(function(){return Js(JH())})).default}},Rh={name:"DropERC721",contractType:"nft-drop",schema:NG,roles:["admin","minter","transfer"],initialize:async function(){for(var r=arguments.length,e=new Array(r),t=0;t{let n=await Au(r,e,t);if(n)return n;let a=await o7(r,e);return!a||a.version>3?(await Promise.resolve().then(function(){return Js(KH())})).default:(await Promise.resolve().then(function(){return Js(QH())})).default}},ul={name:"Pack",contractType:"pack",schema:bje,roles:["admin","minter","asset","transfer"],initialize:async function(){for(var r=arguments.length,e=new Array(r),t=0;t{let n=await Au(r,e,t);return n||(await Promise.resolve().then(function(){return Js(eV())})).default}},Nh={name:"SignatureDrop",contractType:"signature-drop",schema:NG,roles:["admin","minter","transfer"],initialize:async function(){for(var r=arguments.length,e=new Array(r),t=0;t{let n=await Au(r,e,t);if(n)return n;let a=await o7(r,e);return!a||a.version>4?(await Promise.resolve().then(function(){return Js(tV())})).default:(await Promise.resolve().then(function(){return Js(rV())})).default}},Oh={name:"Split",contractType:"split",schema:xje,roles:["admin"],initialize:async function(){for(var r=arguments.length,e=new Array(r),t=0;t{let n=await Au(r,e,t);return n||(await Promise.resolve().then(function(){return Js(aV())})).default}},K0={name:"DropERC20",contractType:"token-drop",schema:oze,roles:["admin","transfer"],initialize:async function(){for(var r=arguments.length,e=new Array(r),t=0;t{let n=await Au(r,e,t);if(n)return n;let a=await o7(r,e);return!a||a.version>2?(await Promise.resolve().then(function(){return Js(iV())})).default:(await Promise.resolve().then(function(){return Js(sV())})).default}},Lh={name:"TokenERC20",contractType:"token",schema:_je,roles:["admin","minter","transfer"],initialize:async function(){for(var r=arguments.length,e=new Array(r),t=0;t{let n=await Au(r,e,t);return n||(await Promise.resolve().then(function(){return Js(oV())})).default}},Bh={name:"VoteERC20",contractType:"vote",schema:Ije,roles:[],initialize:async function(){for(var r=arguments.length,e=new Array(r),t=0;t{let n=await Au(r,e,t);return n||(await Promise.resolve().then(function(){return Js(uV())})).default}};async function o7(r,e){try{return await ZG(r,e)}catch{return}}var Mv={[Ph.contractType]:Ph,[Z0.contractType]:Z0,[yp.contractType]:yp,[rm.contractType]:rm,[gp.contractType]:gp,[J0.contractType]:J0,[Rh.contractType]:Rh,[ul.contractType]:ul,[Nh.contractType]:Nh,[Oh.contractType]:Oh,[K0.contractType]:K0,[Lh.contractType]:Lh,[Bh.contractType]:Bh},AWe={name:"SmartContract",contractType:"custom",schema:{},roles:BG},QG={...Mv,[AWe.contractType]:AWe};function lze(r){return Object.values(QG).find(e=>e.name===r)?.contractType||"custom"}function XG(r){return Object.values(QG).find(e=>e.contractType===r)?.name}async function dze(r,e,t,n){let a=await n.getChainId(),i=await n.getAddress(),s=r===ul.contractType?[]:_G(a);switch(e.trusted_forwarders&&e.trusted_forwarders.length>0&&(s=e.trusted_forwarders),r){case Rh.contractType:case J0.contractType:let c=Rh.schema.deploy.parse(e);return[i,c.name,c.symbol,t,s,c.primary_sale_recipient,c.fee_recipient,c.seller_fee_basis_points,c.platform_fee_basis_points,c.platform_fee_recipient];case Nh.contractType:let l=Nh.schema.deploy.parse(e);return[i,l.name,l.symbol,t,s,l.primary_sale_recipient,l.fee_recipient,l.seller_fee_basis_points,l.platform_fee_basis_points,l.platform_fee_recipient];case gp.contractType:let d=gp.schema.deploy.parse(e);return[i,d.name,d.symbol,t,s,d.fee_recipient,d.seller_fee_basis_points];case Ph.contractType:case Z0.contractType:let f=Ph.schema.deploy.parse(e);return[i,f.name,f.symbol,t,s,f.primary_sale_recipient,f.fee_recipient,f.seller_fee_basis_points,f.platform_fee_basis_points,f.platform_fee_recipient];case K0.contractType:case Lh.contractType:let w=Lh.schema.deploy.parse(e);return[i,w.name,w.symbol,t,s,w.primary_sale_recipient,w.platform_fee_recipient,w.platform_fee_basis_points];case Bh.contractType:let E=Bh.schema.deploy.parse(e);return[E.name,t,s,E.voting_token_address,E.voting_delay_in_blocks,E.voting_period_in_blocks,se.BigNumber.from(E.proposal_token_threshold),E.voting_quorum_fraction];case Oh.contractType:let k=Oh.schema.deploy.parse(e);return[i,t,s,k.recipients.map(q=>q.address),k.recipients.map(q=>se.BigNumber.from(q.sharesBps))];case yp.contractType:case rm.contractType:let A=yp.schema.deploy.parse(e);return[i,t,s,A.platform_fee_recipient,A.platform_fee_basis_points];case ul.contractType:let L=ul.schema.deploy.parse(e);return[i,L.name,L.symbol,t,s,L.fee_recipient,L.seller_fee_basis_points];default:return[]}}var hG=class{constructor(e,t){ue._defineProperty(this,"featureName",UV.name),ue._defineProperty(this,"contractWrapper",void 0),ue._defineProperty(this,"metadata",void 0),this.contractWrapper=e,this.metadata=t}async get(){return Dt(this.contractWrapper,"AppURI")?await this.contractWrapper.readContract.appURI():(await this.metadata.get()).appURI||""}async set(e){return Dt(this.contractWrapper,"AppURI")?{receipt:await this.contractWrapper.sendTransaction("setAppURI",[e])}:await this.metadata.update({appURI:e})}},ZP=class{constructor(e){ue._defineProperty(this,"contractWrapper",void 0),this.contractWrapper=e}addTransactionListener(e){this.contractWrapper.addListener(Y.EventType.Transaction,e)}removeTransactionListener(e){this.contractWrapper.off(Y.EventType.Transaction,e)}addEventListener(e,t){let n=this.contractWrapper.readContract.interface.getEvent(e),i={address:this.contractWrapper.readContract.address,topics:[this.contractWrapper.readContract.interface.getEventTopic(n)]},s=c=>{let l=this.contractWrapper.readContract.interface.parseLog(c);t(this.toContractEvent(l.eventFragment,l.args,c))};return this.contractWrapper.getProvider().on(i,s),()=>{this.contractWrapper.getProvider().off(i,s)}}listenToAllEvents(e){let n={address:this.contractWrapper.readContract.address},a=i=>{try{let s=this.contractWrapper.readContract.interface.parseLog(i);e(this.toContractEvent(s.eventFragment,s.args,i))}catch(s){console.error("Could not parse event:",i,s)}};return this.contractWrapper.getProvider().on(n,a),()=>{this.contractWrapper.getProvider().off(n,a)}}removeEventListener(e,t){let n=this.contractWrapper.readContract.interface.getEvent(e);this.contractWrapper.readContract.off(n.name,t)}removeAllListeners(){this.contractWrapper.readContract.removeAllListeners();let t={address:this.contractWrapper.readContract.address};this.contractWrapper.getProvider().removeAllListeners(t)}async getAllEvents(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{fromBlock:0,toBlock:"latest",order:"desc"},n=(await this.contractWrapper.readContract.queryFilter({},e.fromBlock,e.toBlock)).sort((a,i)=>e.order==="desc"?i.blockNumber-a.blockNumber:a.blockNumber-i.blockNumber);return this.parseEvents(n)}async getEvents(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{fromBlock:0,toBlock:"latest",order:"desc"},n=this.contractWrapper.readContract.interface.getEvent(e),a=this.contractWrapper.readContract.interface.getEvent(e),i=t.filters?a.inputs.map(d=>t.filters[d.name]):[],s=this.contractWrapper.readContract.filters[n.name](...i),l=(await this.contractWrapper.readContract.queryFilter(s,t.fromBlock,t.toBlock)).sort((d,f)=>t.order==="desc"?f.blockNumber-d.blockNumber:d.blockNumber-f.blockNumber);return this.parseEvents(l)}parseEvents(e){return e.map(t=>{let n=Object.fromEntries(Object.entries(t).filter(a=>typeof a[1]!="function"&&a[0]!=="args"));if(t.args){let a=Object.entries(t.args),i=a.slice(a.length/2,a.length),s={};for(let[c,l]of i)s[c]=l;return{eventName:t.event||"",data:s,transaction:n}}return{eventName:t.event||"",data:{},transaction:n}})}toContractEvent(e,t,n){let a=Object.fromEntries(Object.entries(n).filter(s=>typeof s[1]!="function"&&s[0]!=="args")),i={};return e.inputs.forEach((s,c)=>{if(Array.isArray(t[c])){let l=s.components;if(l){let d=t[c];if(s.type==="tuple[]"){let f=[];for(let w=0;w4&&arguments[4]!==void 0?arguments[4]:{},s=arguments.length>5?arguments[5]:void 0,c=arguments.length>6&&arguments[6]!==void 0?arguments[6]:new xs(e,t,n,i);ue._defineProperty(this,"contractWrapper",void 0),ue._defineProperty(this,"storage",void 0),ue._defineProperty(this,"events",void 0),ue._defineProperty(this,"interceptor",void 0),ue._defineProperty(this,"encoder",void 0),ue._defineProperty(this,"estimator",void 0),ue._defineProperty(this,"publishedMetadata",void 0),ue._defineProperty(this,"abi",void 0),ue._defineProperty(this,"metadata",void 0),ue._defineProperty(this,"appURI",void 0),ue._defineProperty(this,"_chainId",void 0),this._chainId=s,this.storage=a,this.contractWrapper=c,this.abi=n,this.events=new ZP(this.contractWrapper),this.encoder=new kw(this.contractWrapper),this.interceptor=new JP(this.contractWrapper),this.estimator=new g_(this.contractWrapper),this.publishedMetadata=new QP(this.contractWrapper,this.storage),this.metadata=new G0(this.contractWrapper,Ow,this.storage),this.appURI=new hG(this.contractWrapper,this.metadata)}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}async call(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;aMWe)throw new Error(`version is longer than ${MWe} characters`);let e=r.trim().match($ur);if(!e||e?.length!==4)throw new Error(`${r} is not a valid semantic version. Should be in the format of major.minor.patch. Ex: 0.4.1`);let t=Number(e[1]),n=Number(e[2]),a=Number(e[3]),i=[t,n,a].join(".");return{major:t,minor:n,patch:a,versionString:i}}function pze(r,e){let t=Rw(r),n=Rw(e);if(n.major>t.major)return!0;let a=n.major===t.major;if(a&&n.minor>t.minor)return!0;let i=n.minor===t.minor;return a&&i&&n.patch>t.patch}function elr(r,e){let t=Rw(r),n=Rw(e);if(n.majorn.length>0).map(n=>this.fetchFullPublishMetadata(n)))}async resolveContractUriFromAddress(e){let t=await y_(e,this.getProvider());return mr.default(t,"Could not resolve contract URI from address"),t}async fetchContractSourcesFromAddress(e){let t=await this.fetchCompilerMetadataFromAddress(e);return await YG(t,this.storage)}async updatePublisherProfile(e){let t=this.getSigner();mr.default(t,"A signer is required");let n=await t.getAddress(),a=await this.storage.upload(e);return{receipt:await this.publisher.sendTransaction("setPublisherProfileUri",[n,a])}}async getPublisherProfile(e){let t=await this.publisher.readContract.getPublisherProfileUri(e);return!t||t.length===0?{}:Cze.parse(await this.storage.downloadJSON(t))}async getAll(e){let n=(await this.publisher.readContract.getAllPublishedContracts(e)).reduce((a,i)=>(a[i.contractId]=i,a),{});return Object.entries(n).map(a=>{let[,i]=a;return this.toPublishedContract(i)})}async getAllVersions(e,t){let n=await this.publisher.readContract.getPublishedContractVersions(e,t);if(n.length===0)throw Error("Not found");return n.map(a=>this.toPublishedContract(a))}async getVersion(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"latest";if(n==="latest")return this.getLatest(e,t);let a=await this.getAllVersions(e,t),s=(await Promise.all(a.map(c=>this.fetchPublishedContractInfo(c)))).find(c=>c.publishedMetadata.version===n);return mr.default(s,"Contract version not found"),a.find(c=>c.timestamp===s.publishedTimestamp)}async getLatest(e,t){let n=await this.publisher.readContract.getPublishedContract(e,t);if(n&&n.publishMetadataUri)return this.toPublishedContract(n)}async publish(e,t){let n=this.getSigner();mr.default(n,"A signer is required");let a=await n.getAddress(),i=await zG(e,this.storage),s=await this.getLatest(a,i.name);if(s&&s.metadataUri){let U=(await this.fetchPublishedContractInfo(s)).publishedMetadata.version;if(!pze(U,t.version))throw Error(`Version ${t.version} is not greater than ${U}`)}let c=await(await this.storage.download(i.bytecodeUri)).text(),l=c.startsWith("0x")?c:`0x${c}`,d=se.utils.solidityKeccak256(["bytes"],[l]),f=i.name,w=xze.parse({...t,metadataUri:i.metadataUri,bytecodeUri:i.bytecodeUri,name:i.name,analytics:i.analytics,publisher:a}),E=await this.storage.upload(w),k=await this.publisher.sendTransaction("publishContract",[a,f,E,i.metadataUri,d,se.constants.AddressZero]),A=this.publisher.parseLogs("ContractPublished",k.logs);if(A.length<1)throw new Error("No ContractPublished event found");let L=A[0].args.publishedContract;return{receipt:k,data:async()=>this.toPublishedContract(L)}}async unpublish(e,t){return{receipt:await this.publisher.sendTransaction("unpublishContract",[e,t])}}toPublishedContract(e){return Eze.parse({id:e.contractId,timestamp:e.publishTimestamp,metadataUri:e.publishMetadataUri})}},yG=class{constructor(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};ue._defineProperty(this,"registryLogic",void 0),ue._defineProperty(this,"registryRouter",void 0),ue._defineProperty(this,"storage",void 0),this.storage=t,this.registryLogic=new xs(e,EV(),ucr.default,n),this.registryRouter=new xs(e,EV(),lcr.default,n)}async updateSigner(e){this.registryLogic.updateSignerOrProvider(e),this.registryRouter.updateSignerOrProvider(e)}async getContractMetadataURI(e,t){return await this.registryLogic.readContract.getMetadataUri(e,t)}async getContractMetadata(e,t){let n=await this.getContractMetadataURI(e,t);if(!n)throw new Error(`No metadata URI found for contract ${t} on chain ${e}`);return await this.storage.downloadJSON(n)}async getContractAddresses(e){return(await this.registryLogic.readContract.getAll(e)).filter(t=>se.utils.isAddress(t.deploymentAddress)&&t.deploymentAddress.toLowerCase()!==se.constants.AddressZero).map(t=>({address:t.deploymentAddress,chainId:t.chainId.toNumber()}))}async addContract(e){return await this.addContracts([e])}async addContracts(e){let t=await this.registryRouter.getSignerAddress(),n=[];return e.forEach(a=>{n.push(this.registryLogic.readContract.interface.encodeFunctionData("add",[t,a.address,a.chainId,a.metadataURI||""]))}),{receipt:await this.registryRouter.multiCall(n)}}async removeContract(e){return await this.removeContracts([e])}async removeContracts(e){let t=await this.registryRouter.getSignerAddress(),n=[];return e.forEach(a=>{n.push(this.registryLogic.readContract.interface.encodeFunctionData("remove",[t,a.address,a.chainId]))}),{receipt:await this.registryRouter.multiCall(n)}}},Nw=class{constructor(e,t){ue._defineProperty(this,"connection",void 0),ue._defineProperty(this,"options",void 0),ue._defineProperty(this,"events",new xV.default),this.connection=new Iv(e,t),this.options=t,this.events=new xV.default}connect(e){this.connection.updateSignerOrProvider(e),this.events.emit("signerChanged",this.connection.getSigner())}async transfer(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:hd,a=this.requireWallet(),i=await cc(this.connection.getProvider(),t,n);if(qh(n)){let s=await a.getAddress();return{receipt:await(await a.sendTransaction({from:s,to:e,value:i})).wait()}}else return{receipt:await this.createErc20(n).sendTransaction("transfer",[e,i])}}async balance(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:hd;this.requireWallet();let t=this.connection.getProvider(),n;return qh(e)?n=await t.getBalance(await this.getAddress()):n=await this.createErc20(e).readContract.balanceOf(await this.getAddress()),await mp(t,e,n)}async getAddress(){return await this.requireWallet().getAddress()}async getChainId(){return await this.requireWallet().getChainId()}isConnected(){try{return this.requireWallet(),!0}catch{return!1}}async sign(e){return await this.requireWallet().signMessage(e)}async signTypedData(e,t,n){return await Q9(this.requireWallet(),e,t,n)}recoverAddress(e,t){let n=se.ethers.utils.hashMessage(e),a=se.ethers.utils.arrayify(n);return se.ethers.utils.recoverAddress(a,t)}async sendRawTransaction(e){return{receipt:await(await this.requireWallet().sendTransaction(e)).wait()}}async requestFunds(e){let t=await this.getChainId();if(t===Y.ChainId.Localhost||t===Y.ChainId.Hardhat)return new Nw(new se.ethers.Wallet(VWe,a7(t,this.options)),this.options).transfer(await this.getAddress(),e);throw new Error(`Requesting funds is not supported on chain: '${t}'.`)}requireWallet(){let e=this.connection.getSigner();return mr.default(e,"This action requires a connected wallet. Please pass a valid signer to the SDK."),e}createErc20(e){return new xs(this.connection.getSignerOrProvider(),e,ku.default,this.options)}},Ih=class extends Iv{static async fromWallet(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:new $T.ThirdwebStorage,i=await e.getSigner();return Ih.fromSigner(i,t,n,a)}static fromSigner(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:new $T.ThirdwebStorage,i=new Ih(t||e,n,a);return i.updateSignerOrProvider(e),i}static fromPrivateKey(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:new $T.ThirdwebStorage,i=a7(t,n),s=new se.ethers.Wallet(e,i);return Ih.fromSigner(s,t,n,a)}constructor(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:new $T.ThirdwebStorage;super(e,t),ue._defineProperty(this,"contractCache",new Map),ue._defineProperty(this,"_publisher",void 0),ue._defineProperty(this,"storageHandler",void 0),ue._defineProperty(this,"deployer",void 0),ue._defineProperty(this,"multiChainRegistry",void 0),ue._defineProperty(this,"wallet",void 0),ue._defineProperty(this,"storage",void 0),this.storageHandler=n,this.storage=n,this.wallet=new Nw(e,t),this.deployer=new YP(e,t,n),this.multiChainRegistry=new yG(e,this.storageHandler,this.options),this._publisher=new mG(e,this.options,this.storageHandler)}get auth(){throw new Error(`The sdk.auth namespace has been moved to the @thirdweb-dev/auth package and is no longer available after @thirdweb-dev/sdk >= 3.7.0. +contract.claimConditions.set(tokenId, [{ snapshot: [{ address: '0x...', maxClaimable: 1 }], maxClaimablePerWallet: 0 }])`); + if ( + I.snapshot && + I.snapshot.length > 0 && + I.maxClaimablePerWallet?.toString() === "0" && + I.snapshot + .map((k) => + typeof k == "string" + ? 0 + : Number(k.maxClaimable?.toString() || 0) + ) + .reduce((k, O) => k + O, 0) === 0 + ) + throw new Error( + "maxClaimablePerWallet is set to 0, and all addresses in the allowlist have max claimable 0. This means that no one can claim." + ); + }); + let { snapshotInfos: w, sortedConditions: C } = await UUe( + m, + 0, + this.contractWrapper.getProvider(), + this.storage, + this.getSnapshotFormatVersion() + ); + return ( + w.forEach((I) => { + n[I.merkleRoot] = I.snapshotUri; + }), + { tokenId: l, sortedConditions: C } + ); + }) + ), + i = await this.metadata.get(), + s = []; + for (let c of Object.keys(i.merkle || {})) n[c] = i.merkle[c]; + if (!zWe.default(i.merkle, n)) { + let c = this.metadata.parseInputMetadata({ ...i, merkle: n }), + l = await this.metadata._parseAndUploadMetadata(c); + if (Jo("setContractURI", this.contractWrapper)) + s.push( + this.contractWrapper.readContract.interface.encodeFunctionData( + "setContractURI", + [l] + ) + ); + else + throw new Error( + "Setting a merkle root requires implementing ContractMetadata in your contract to support storing a merkle root." + ); + } + return ( + a.forEach((c) => { + let { tokenId: l, sortedConditions: d } = c; + if (this.isLegacySinglePhaseDrop(this.contractWrapper)) + s.push( + this.contractWrapper.readContract.interface.encodeFunctionData( + "setClaimConditions", + [l, zM(d[0]), t] + ) + ); + else if (this.isLegacyMultiPhaseDrop(this.contractWrapper)) + s.push( + this.contractWrapper.readContract.interface.encodeFunctionData( + "setClaimConditions", + [l, d.map(zM), t] + ) + ); + else if (this.isNewSinglePhaseDrop(this.contractWrapper)) + s.push( + this.contractWrapper.readContract.interface.encodeFunctionData( + "setClaimConditions", + [l, jM(d[0]), t] + ) + ); + else if (this.isNewMultiphaseDrop(this.contractWrapper)) + s.push( + this.contractWrapper.readContract.interface.encodeFunctionData( + "setClaimConditions", + [l, d.map(jM), t] + ) + ); + else + throw new Error("Contract does not support claim conditions"); + }), + { receipt: await this.contractWrapper.multiCall(s) } + ); + } + async update(e, t, n) { + let a = await this.getAll(e), + i = await WUe(t, n, a); + return await this.set(e, i); + } + async prepareClaim(e, t, n, a) { + let i = a || (await this.contractWrapper.getSignerAddress()); + return FUe( + i, + t, + await this.getActive(e), + async () => (await this.metadata.get()).merkle, + 0, + this.contractWrapper, + this.storage, + n, + this.getSnapshotFormatVersion() + ); + } + async getClaimArguments(e, t, n, a) { + return this.isLegacyMultiPhaseDrop(this.contractWrapper) + ? [t, e, n, a.currencyAddress, a.price, a.proofs, a.maxClaimable] + : this.isLegacySinglePhaseDrop(this.contractWrapper) + ? [ + t, + e, + n, + a.currencyAddress, + a.price, + { proof: a.proofs, maxQuantityInAllowlist: a.maxClaimable }, + ie.ethers.utils.toUtf8Bytes(""), + ] + : [ + t, + e, + n, + a.currencyAddress, + a.price, + { + proof: a.proofs, + quantityLimitPerWallet: a.maxClaimable, + pricePerToken: a.priceInProof, + currency: a.currencyAddressInProof, + }, + ie.ethers.utils.toUtf8Bytes(""), + ]; + } + async getClaimTransaction(e, t, n, a) { + if (a?.pricePerToken) + throw new Error( + "Price per token should be set via claim conditions by calling `contract.erc1155.claimConditions.set()`" + ); + let i = await this.prepareClaim(t, n, a?.checkERC20Allowance || !0); + return Gl.make({ + contractWrapper: this.contractWrapper, + functionName: "claim", + args: await this.getClaimArguments(t, e, n, i), + overrides: i.overrides, + }); + } + isNewSinglePhaseDrop(e) { + return Ot(e, "ERC1155ClaimConditionsV2"); + } + isNewMultiphaseDrop(e) { + return Ot(e, "ERC1155ClaimPhasesV2"); + } + isLegacySinglePhaseDrop(e) { + return Ot(e, "ERC1155ClaimConditionsV1"); + } + isLegacyMultiPhaseDrop(e) { + return Ot(e, "ERC1155ClaimPhasesV1"); + } + getSnapshotFormatVersion() { + return this.isLegacyMultiPhaseDrop(this.contractWrapper) || + this.isLegacySinglePhaseDrop(this.contractWrapper) + ? Bf.V1 + : Bf.V2; + } + }, + Uj = class { + constructor(e) { + ue._defineProperty(this, "events", void 0), (this.events = e); + } + async getAllClaimerAddresses(e) { + let t = (await this.events.getEvents("TokensClaimed")).filter((n) => + n.data && ie.BigNumber.isBigNumber(n.data.tokenId) + ? n.data.tokenId.eq(e) + : !1 + ); + return Array.from( + new Set( + t + .filter((n) => typeof n.data?.claimer == "string") + .map((n) => n.data.claimer) + ) + ); + } + }, + _P = class { + constructor(e, t) { + ue._defineProperty(this, "featureName", c3.name), + ue._defineProperty(this, "erc20", void 0), + ue._defineProperty(this, "contractWrapper", void 0), + (this.erc20 = e), + (this.contractWrapper = t); + } + async tokens(e) { + return { + receipt: await this.contractWrapper.sendTransaction("burn", [ + await this.erc20.normalizeAmount(e), + ]), + }; + } + async from(e, t) { + return { + receipt: await this.contractWrapper.sendTransaction("burnFrom", [ + e, + await this.erc20.normalizeAmount(t), + ]), + }; + } + }, + Hj = class { + constructor(e, t, n) { + ue._defineProperty(this, "featureName", o3.name), + ue._defineProperty(this, "conditions", void 0), + ue._defineProperty(this, "contractWrapper", void 0), + ue._defineProperty(this, "erc20", void 0), + ue._defineProperty(this, "storage", void 0), + (this.erc20 = e), + (this.contractWrapper = t), + (this.storage = n); + let a = new f0(this.contractWrapper, qw, this.storage); + this.conditions = new g3(this.contractWrapper, a, this.storage); + } + async to(e, t, n) { + let a = await this.erc20.normalizeAmount(t); + return await ( + await this.conditions.getClaimTransaction(e, a, n) + ).execute(); + } + }, + zj = class { + constructor(e, t, n) { + ue._defineProperty(this, "claim", void 0), + ue._defineProperty(this, "contractWrapper", void 0), + ue._defineProperty(this, "erc20", void 0), + ue._defineProperty(this, "storage", void 0), + (this.erc20 = e), + (this.contractWrapper = t), + (this.storage = n), + (this.claim = new Hj( + this.erc20, + this.contractWrapper, + this.storage + )); + } + }, + xP = class { + constructor(e, t) { + ue._defineProperty(this, "featureName", aP.name), + ue._defineProperty(this, "contractWrapper", void 0), + ue._defineProperty(this, "erc20", void 0), + (this.erc20 = e), + (this.contractWrapper = t); + } + async to(e) { + let t = []; + for (let n of e) + t.push( + this.contractWrapper.readContract.interface.encodeFunctionData( + "mintTo", + [n.toAddress, await this.erc20.normalizeAmount(n.amount)] + ) + ); + return { receipt: await this.contractWrapper.multiCall(t) }; + } + }, + TP = class { + constructor(e, t) { + ue._defineProperty(this, "featureName", u3.name), + ue._defineProperty(this, "contractWrapper", void 0), + ue._defineProperty(this, "erc20", void 0), + ue._defineProperty(this, "batch", void 0), + (this.erc20 = e), + (this.contractWrapper = t), + (this.batch = this.detectErc20BatchMintable()); + } + async to(e, t) { + return (await this.getMintTransaction(e, t)).execute(); + } + async getMintTransaction(e, t) { + return Gl.make({ + contractWrapper: this.contractWrapper, + functionName: "mintTo", + args: [e, await this.erc20.normalizeAmount(t)], + }); + } + detectErc20BatchMintable() { + if (Ot(this.contractWrapper, "ERC20BatchMintable")) + return new xP(this.erc20, this.contractWrapper); + } + }, + EP = class { + constructor(e, t) { + ue._defineProperty(this, "featureName", nP.name), + ue._defineProperty(this, "contractWrapper", void 0), + ue._defineProperty(this, "roles", void 0), + (this.contractWrapper = e), + (this.roles = t); + } + async mint(e) { + let t = e.payload, + n = e.signature, + a = await this.mapPayloadToContractStruct(t), + i = await this.contractWrapper.getCallOverrides(); + return ( + await h0( + this.contractWrapper, + ie.BigNumber.from(a.price), + t.currencyAddress, + i + ), + { + receipt: await this.contractWrapper.sendTransaction( + "mintWithSignature", + [a, n], + i + ), + } + ); + } + async mintBatch(e) { + let n = ( + await Promise.all( + e.map(async (a) => { + let i = await this.mapPayloadToContractStruct(a.payload), + s = a.signature, + c = a.payload.price; + if (ie.BigNumber.from(c).gt(0)) + throw new Error( + "Can only batch free mints. For mints with a price, use regular mint()" + ); + return { message: i, signature: s }; + }) + ) + ).map((a) => + this.contractWrapper.readContract.interface.encodeFunctionData( + "mintWithSignature", + [a.message, a.signature] + ) + ); + return { receipt: await this.contractWrapper.multiCall(n) }; + } + async verify(e) { + let t = e.payload, + n = e.signature, + a = await this.mapPayloadToContractStruct(t); + return (await this.contractWrapper.readContract.verify(a, n))[0]; + } + async generate(e) { + return (await this.generateBatch([e]))[0]; + } + async generateBatch(e) { + await this.roles?.verify( + ["minter"], + await this.contractWrapper.getSignerAddress() + ); + let t = e.map((s) => vK.parse(s)), + n = await this.contractWrapper.getChainID(), + a = this.contractWrapper.getSigner(); + dr.default(a, "No signer available"); + let i = await this.contractWrapper.readContract.name(); + return await Promise.all( + t.map(async (s) => { + let c = aUe.parse(s), + l = await this.contractWrapper.signTypedData( + a, + { + name: i, + version: "1", + chainId: n, + verifyingContract: + this.contractWrapper.readContract.address, + }, + { MintRequest: lUe }, + await this.mapPayloadToContractStruct(c) + ); + return { payload: c, signature: l.toString() }; + }) + ); + } + async mapPayloadToContractStruct(e) { + let t = await Zo( + this.contractWrapper.getProvider(), + e.price, + e.currencyAddress + ), + n = ie.ethers.utils.parseUnits( + e.quantity, + await this.contractWrapper.readContract.decimals() + ); + return { + to: e.to, + primarySaleRecipient: e.primarySaleRecipient, + quantity: n, + price: t, + currency: e.currencyAddress, + validityEndTimestamp: e.mintEndTime, + validityStartTimestamp: e.mintStartTime, + uid: e.uid, + }; + } + }, + b3 = class { + get chainId() { + return this._chainId; + } + constructor(e, t, n) { + ue._defineProperty(this, "featureName", iP.name), + ue._defineProperty(this, "mintable", void 0), + ue._defineProperty(this, "burnable", void 0), + ue._defineProperty(this, "droppable", void 0), + ue._defineProperty(this, "signatureMintable", void 0), + ue._defineProperty(this, "contractWrapper", void 0), + ue._defineProperty(this, "storage", void 0), + ue._defineProperty(this, "_chainId", void 0), + (this.contractWrapper = e), + (this.storage = t), + (this.mintable = this.detectErc20Mintable()), + (this.burnable = this.detectErc20Burnable()), + (this.droppable = this.detectErc20Droppable()), + (this.signatureMintable = this.detectErc20SignatureMintable()), + (this._chainId = n); + } + onNetworkUpdated(e) { + this.contractWrapper.updateSignerOrProvider(e); + } + getAddress() { + return this.contractWrapper.readContract.address; + } + async get() { + return await Fw( + this.contractWrapper.getProvider(), + this.getAddress() + ); + } + async balance() { + return await this.balanceOf( + await this.contractWrapper.getSignerAddress() + ); + } + async balanceOf(e) { + return this.getValue( + await this.contractWrapper.readContract.balanceOf(e) + ); + } + async totalSupply() { + return await this.getValue( + await this.contractWrapper.readContract.totalSupply() + ); + } + async allowance(e) { + return await this.allowanceOf( + await this.contractWrapper.getSignerAddress(), + e + ); + } + async allowanceOf(e, t) { + return await this.getValue( + await this.contractWrapper.readContract.allowance(e, t) + ); + } + async transfer(e, t) { + return { + receipt: await this.contractWrapper.sendTransaction("transfer", [ + e, + await this.normalizeAmount(t), + ]), + }; + } + async transferFrom(e, t, n) { + return { + receipt: await this.contractWrapper.sendTransaction( + "transferFrom", + [e, t, await this.normalizeAmount(n)] + ), + }; + } + async setAllowance(e, t) { + return { + receipt: await this.contractWrapper.sendTransaction("approve", [ + e, + await this.normalizeAmount(t), + ]), + }; + } + async transferBatch(e) { + let t = await Promise.all( + e.map(async (n) => { + let a = await this.normalizeAmount(n.amount); + return this.contractWrapper.readContract.interface.encodeFunctionData( + "transfer", + [n.toAddress, a] + ); + }) + ); + await this.contractWrapper.multiCall(t); + } + async mint(e) { + return this.mintTo(await this.contractWrapper.getSignerAddress(), e); + } + async mintTo(e, t) { + return gr(this.mintable, u3).to(e, t); + } + async getMintTransaction(e, t) { + return gr(this.mintable, u3).getMintTransaction(e, t); + } + async mintBatchTo(e) { + return gr(this.mintable?.batch, aP).to(e); + } + async burn(e) { + return gr(this.burnable, c3).tokens(e); + } + async burnFrom(e, t) { + return gr(this.burnable, c3).from(e, t); + } + async claim(e, t) { + return this.claimTo( + await this.contractWrapper.getSignerAddress(), + e, + t + ); + } + async claimTo(e, t, n) { + return gr(this.droppable?.claim, o3).to(e, t, n); + } + get claimConditions() { + return gr(this.droppable?.claim, o3).conditions; + } + get signature() { + return gr(this.signatureMintable, nP); + } + async normalizeAmount(e) { + let t = await this.contractWrapper.readContract.decimals(); + return ie.ethers.utils.parseUnits(ue.AmountSchema.parse(e), t); + } + async getValue(e) { + return await Gd( + this.contractWrapper.getProvider(), + this.getAddress(), + ie.BigNumber.from(e) + ); + } + detectErc20Mintable() { + if (Ot(this.contractWrapper, "ERC20")) + return new TP(this, this.contractWrapper); + } + detectErc20Burnable() { + if (Ot(this.contractWrapper, "ERC20Burnable")) + return new _P(this, this.contractWrapper); + } + detectErc20Droppable() { + if ( + Ot(this.contractWrapper, "ERC20ClaimConditionsV1") || + Ot(this.contractWrapper, "ERC20ClaimConditionsV2") || + Ot(this.contractWrapper, "ERC20ClaimPhasesV1") || + Ot(this.contractWrapper, "ERC20ClaimPhasesV2") + ) + return new zj(this, this.contractWrapper, this.storage); + } + detectErc20SignatureMintable() { + if (Ot(this.contractWrapper, "ERC20SignatureMintable")) + return new EP(this.contractWrapper); + } + }, + jj = class { + constructor(e, t) { + ue._defineProperty(this, "events", void 0), + ue._defineProperty(this, "contractWrapper", void 0), + (this.contractWrapper = e), + (this.events = t); + } + async getAllHolderBalances() { + let t = (await this.events.getEvents("Transfer")).map((a) => a.data), + n = {}; + return ( + t.forEach((a) => { + let i = a?.from, + s = a?.to, + c = a?.value; + i !== ie.constants.AddressZero && + (i in n || (n[i] = ie.BigNumber.from(0)), (n[i] = n[i].sub(c))), + s !== ie.constants.AddressZero && + (s in n || (n[s] = ie.BigNumber.from(0)), + (n[s] = n[s].add(c))); + }), + Promise.all( + Object.keys(n).map(async (a) => ({ + holder: a, + balance: await Gd( + this.contractWrapper.getProvider(), + this.contractWrapper.readContract.address, + n[a] + ), + })) + ) + ); + } + }, + Kj = class { + get chainId() { + return this._chainId; + } + constructor(e, t, n) { + ue._defineProperty(this, "contractWrapper", void 0), + ue._defineProperty(this, "storage", void 0), + ue._defineProperty(this, "erc20", void 0), + ue._defineProperty(this, "_chainId", void 0), + (this.contractWrapper = e), + (this.storage = t), + (this.erc20 = new b3(this.contractWrapper, this.storage, n)), + (this._chainId = n); + } + onNetworkUpdated(e) { + this.contractWrapper.updateSignerOrProvider(e); + } + getAddress() { + return this.contractWrapper.readContract.address; + } + async get() { + return this.erc20.get(); + } + async balance() { + return await this.erc20.balance(); + } + async balanceOf(e) { + return this.erc20.balanceOf(e); + } + async totalSupply() { + return await this.erc20.totalSupply(); + } + async allowance(e) { + return await this.erc20.allowance(e); + } + async allowanceOf(e, t) { + return await this.erc20.allowanceOf(e, t); + } + async transfer(e, t) { + return this.erc20.transfer(e, t); + } + async transferFrom(e, t, n) { + return this.erc20.transferFrom(e, t, n); + } + async setAllowance(e, t) { + return this.erc20.setAllowance(e, t); + } + async transferBatch(e) { + return this.erc20.transferBatch(e); + } + }, + CP = class { + constructor(e) { + ue._defineProperty(this, "featureName", sP.name), + ue._defineProperty(this, "contractWrapper", void 0), + (this.contractWrapper = e); + } + async token(e) { + return { + receipt: await this.contractWrapper.sendTransaction("burn", [e]), + }; + } + }, + Vj = class { + constructor(e, t) { + ue._defineProperty(this, "featureName", d3.name), + ue._defineProperty(this, "erc721", void 0), + ue._defineProperty(this, "contractWrapper", void 0), + (this.erc721 = e), + (this.contractWrapper = t); + } + async getClaimTransaction(e, t, n) { + let a = {}; + return ( + n && + n.pricePerToken && + (a = await HUe( + this.contractWrapper, + n.pricePerToken, + t, + n.currencyAddress, + n.checkERC20Allowance + )), + Gl.make({ + contractWrapper: this.contractWrapper, + functionName: "claim", + args: [e, t], + overrides: a, + }) + ); + } + async to(e, t, n) { + let a = await this.getClaimTransaction(e, t, n), + { receipt: i } = await a.execute(), + c = this.contractWrapper.parseLogs("TokensClaimed", i?.logs)[0].args + .startTokenId, + l = c.add(t), + d = []; + for (let m = c; m.lt(l); m = m.add(1)) + d.push({ id: m, receipt: i, data: () => this.erc721.get(m) }); + return d; + } + }, + IP = class { + constructor(e, t, n) { + ue._defineProperty(this, "featureName", cP.name), + ue._defineProperty(this, "conditions", void 0), + ue._defineProperty(this, "contractWrapper", void 0), + ue._defineProperty(this, "erc721", void 0), + ue._defineProperty(this, "storage", void 0), + (this.erc721 = e), + (this.contractWrapper = t), + (this.storage = n); + let a = new f0(this.contractWrapper, qw, this.storage); + this.conditions = new g3(this.contractWrapper, a, this.storage); + } + async to(e, t, n) { + let a = await this.conditions.getClaimTransaction(e, t, n), + { receipt: i } = await a.execute(), + c = this.contractWrapper.parseLogs("TokensClaimed", i?.logs)[0].args + .startTokenId, + l = c.add(t), + d = []; + for (let m = c; m.lt(l); m = m.add(1)) + d.push({ id: m, receipt: i, data: () => this.erc721.get(m) }); + return d; + } + }, + AP = class { + constructor(e, t, n) { + ue._defineProperty(this, "featureName", uP.name), + ue._defineProperty(this, "revealer", void 0), + ue._defineProperty(this, "claimWithConditions", void 0), + ue._defineProperty(this, "claim", void 0), + ue._defineProperty(this, "contractWrapper", void 0), + ue._defineProperty(this, "erc721", void 0), + ue._defineProperty(this, "storage", void 0), + (this.erc721 = e), + (this.contractWrapper = t), + (this.storage = n), + (this.revealer = this.detectErc721Revealable()), + (this.claimWithConditions = + this.detectErc721ClaimableWithConditions()), + (this.claim = this.detectErc721Claimable()); + } + async lazyMint(e, t) { + let n = await this.erc721.nextTokenIdToMint(), + a = await $g(e, this.storage, n.toNumber(), t), + i = Iw(a), + s = await this.contractWrapper.sendTransaction("lazyMint", [ + a.length, + i.endsWith("/") ? i : `${i}/`, + ie.ethers.utils.toUtf8Bytes(""), + ]), + c = this.contractWrapper.parseLogs("TokensLazyMinted", s?.logs), + l = c[0].args.startTokenId, + d = c[0].args.endTokenId, + m = []; + for (let w = l; w.lte(d); w = w.add(1)) + m.push({ + id: w, + receipt: s, + data: () => this.erc721.getTokenMetadata(w), + }); + return m; + } + detectErc721Revealable() { + if (Ot(this.contractWrapper, "ERC721Revealable")) + return new s3(this.contractWrapper, this.storage, l3.name, () => + this.erc721.nextTokenIdToMint() + ); + } + detectErc721ClaimableWithConditions() { + if ( + Ot(this.contractWrapper, "ERC721ClaimConditionsV1") || + Ot(this.contractWrapper, "ERC721ClaimConditionsV2") || + Ot(this.contractWrapper, "ERC721ClaimPhasesV1") || + Ot(this.contractWrapper, "ERC721ClaimPhasesV2") + ) + return new IP(this.erc721, this.contractWrapper, this.storage); + } + detectErc721Claimable() { + if (Ot(this.contractWrapper, "ERC721ClaimCustom")) + return new Vj(this.erc721, this.contractWrapper); + } + }, + kP = class { + constructor(e, t, n) { + ue._defineProperty(this, "featureName", lP.name), + ue._defineProperty(this, "contractWrapper", void 0), + ue._defineProperty(this, "storage", void 0), + ue._defineProperty(this, "erc721", void 0), + (this.erc721 = e), + (this.contractWrapper = t), + (this.storage = n); + } + async to(e, t) { + let a = (await $g(t, this.storage)).map((c) => + this.contractWrapper.readContract.interface.encodeFunctionData( + "mintTo", + [e, c] + ) + ), + i = await this.contractWrapper.multiCall(a), + s = this.contractWrapper.parseLogs("TokensMinted", i.logs); + if (s.length === 0 || s.length < t.length) + throw new Error("TokenMinted event not found, minting failed"); + return s.map((c) => { + let l = c.args.tokenIdMinted; + return { id: l, receipt: i, data: () => this.erc721.get(l) }; + }); + } + }, + SP = class { + constructor(e, t, n) { + ue._defineProperty(this, "featureName", p3.name), + ue._defineProperty(this, "contractWrapper", void 0), + ue._defineProperty(this, "storage", void 0), + ue._defineProperty(this, "erc721", void 0), + ue._defineProperty(this, "batch", void 0), + (this.erc721 = e), + (this.contractWrapper = t), + (this.storage = n), + (this.batch = this.detectErc721BatchMintable()); + } + async to(e, t) { + let n = await this.getMintTransaction(e, t), + { receipt: a } = await n.execute(), + i = this.contractWrapper.parseLogs("Transfer", a?.logs); + if (i.length === 0) throw new Error("TransferEvent event not found"); + let s = i[0].args.tokenId; + return { id: s, receipt: a, data: () => this.erc721.get(s) }; + } + async getMintTransaction(e, t) { + let n = await AK(t, this.storage); + return Gl.make({ + contractWrapper: this.contractWrapper, + functionName: "mintTo", + args: [e, n], + }); + } + detectErc721BatchMintable() { + if (Ot(this.contractWrapper, "ERC721BatchMintable")) + return new kP(this.erc721, this.contractWrapper, this.storage); + } + }, + MP = class { + constructor(e, t) { + ue._defineProperty(this, "featureName", Bj.name), + ue._defineProperty(this, "contractWrapper", void 0), + ue._defineProperty(this, "erc721", void 0), + (this.erc721 = e), + (this.contractWrapper = t); + } + async all(e) { + let t = await this.tokenIds(e); + return await Promise.all(t.map((n) => this.erc721.get(n.toString()))); + } + async tokenIds(e) { + let t = e || (await this.contractWrapper.getSignerAddress()), + n = await this.contractWrapper.readContract.balanceOf(t), + a = Array.from(Array(n.toNumber()).keys()); + return await Promise.all( + a.map((i) => + this.contractWrapper.readContract.tokenOfOwnerByIndex(t, i) + ) + ); + } + }, + PP = class { + constructor(e, t) { + ue._defineProperty(this, "featureName", Aw.name), + ue._defineProperty(this, "contractWrapper", void 0), + ue._defineProperty(this, "erc721", void 0), + ue._defineProperty(this, "owned", void 0), + (this.erc721 = e), + (this.contractWrapper = t), + (this.owned = this.detectErc721Owned()); + } + async all(e) { + let t = ie.BigNumber.from(e?.start || 0).toNumber(), + n = ie.BigNumber.from( + e?.count || ue.DEFAULT_QUERY_ALL_COUNT + ).toNumber(), + a = await this.erc721.nextTokenIdToMint(), + i = Math.min(a.toNumber(), t + n); + return await Promise.all( + [...Array(i - t).keys()].map((s) => + this.erc721.get((t + s).toString()) + ) + ); + } + async allOwners() { + return Promise.all( + [...new Array((await this.totalCount()).toNumber()).keys()].map( + async (e) => ({ + tokenId: e, + owner: await this.erc721 + .ownerOf(e) + .catch(() => ie.constants.AddressZero), + }) + ) + ); + } + async totalCount() { + return await this.erc721.nextTokenIdToMint(); + } + async totalCirculatingSupply() { + return await this.contractWrapper.readContract.totalSupply(); + } + detectErc721Owned() { + if (Ot(this.contractWrapper, "ERC721Enumerable")) + return new MP(this.erc721, this.contractWrapper); + } + }, + kcr = YP.extend({ + tierPriority: xe.z.array(xe.z.string()), + royaltyRecipient: xe.z.string().default(ie.constants.AddressZero), + royaltyBps: ue.BasisPointsSchema.default(0), + quantity: _i.default(1), + }), + Gj = class { + constructor(e, t, n) { + ue._defineProperty(this, "featureName", oP.name), + ue._defineProperty(this, "contractWrapper", void 0), + ue._defineProperty(this, "erc721", void 0), + ue._defineProperty(this, "storage", void 0), + (this.erc721 = e), + (this.contractWrapper = t), + (this.storage = n); + } + async getMetadataInTier(e) { + let n = ( + await this.contractWrapper.readContract.getMetadataForAllTiers() + ).find((i) => i.tier === e); + if (!n) throw new Error("Tier not found in contract."); + return await Promise.all( + n.ranges + .map((i, s) => { + let c = [], + l = n.baseURIs[s]; + for ( + let d = i.startIdInclusive.toNumber(); + d < i.endIdNonInclusive.toNumber(); + d++ + ) { + let m = `${l}/${d}`, + w = this.storage.downloadJSON(m); + c.push(w); + } + return c; + }) + .flat() + ); + } + async getTokensInTier(e) { + let t = await this.contractWrapper.readContract.getTokensInTierLen(); + if (t.eq(0)) return []; + let n = await this.contractWrapper.readContract.getTokensInTier( + e, + 0, + t + ); + return await Promise.all( + n + .map((i) => { + let s = []; + for ( + let c = i.startIdInclusive.toNumber(); + c < i.endIdNonInclusive.toNumber(); + c++ + ) + s.push(this.erc721.get(c)); + return s; + }) + .flat() + ); + } + async createBatchWithTier(e, t, n) { + let a = await this.erc721.nextTokenIdToMint(), + i = await $g(e, this.storage, a.toNumber(), n), + s = Iw(i), + c = await this.contractWrapper.sendTransaction("lazyMint", [ + i.length, + s.endsWith("/") ? s : `${s}/`, + t, + ie.ethers.utils.toUtf8Bytes(""), + ]), + l = this.contractWrapper.parseLogs("TokensLazyMinted", c?.logs), + d = l[0].args[1], + m = l[0].args[2], + w = []; + for (let C = d; C.lte(m); C = C.add(1)) + w.push({ + id: C, + receipt: c, + data: () => this.erc721.getTokenMetadata(C), + }); + return w; + } + async createDelayedRevealBatchWithTier(e, t, n, a, i) { + if (!n) throw new Error("Password is required"); + let s = await this.storage.uploadBatch([ue.CommonNFTInput.parse(e)], { + rewriteFileNames: { fileStartNumber: 0 }, + }), + c = Iw(s), + l = await this.erc721.nextTokenIdToMint(), + d = await this.storage.uploadBatch( + t.map(($) => ue.CommonNFTInput.parse($)), + { + onProgress: i?.onProgress, + rewriteFileNames: { fileStartNumber: l.toNumber() }, + } + ), + m = Iw(d), + w = await this.contractWrapper.readContract.getBaseURICount(), + C = await this.contractWrapper.getChainID(), + I = ie.ethers.utils.solidityKeccak256( + ["string", "uint256", "uint256", "address"], + [n, C, w, this.contractWrapper.readContract.address] + ), + k = await this.contractWrapper.readContract.encryptDecrypt( + ie.ethers.utils.toUtf8Bytes(m), + I + ), + O, + D = ie.ethers.utils.solidityKeccak256( + ["bytes", "bytes", "uint256"], + [ie.ethers.utils.toUtf8Bytes(m), I, C] + ); + O = ie.ethers.utils.defaultAbiCoder.encode( + ["bytes", "bytes32"], + [k, D] + ); + let W = await this.contractWrapper.sendTransaction("lazyMint", [ + d.length, + c.endsWith("/") ? c : `${c}/`, + a, + O, + ]), + H = this.contractWrapper.parseLogs("TokensLazyMinted", W?.logs), + j = H[0].args[1], + V = H[0].args[2], + te = []; + for (let $ = j; $.lte(V); $ = $.add(1)) + te.push({ + id: $, + receipt: W, + data: () => this.erc721.getTokenMetadata($), + }); + return te; + } + async reveal(e, t) { + if (!t) throw new Error("Password is required"); + let n = await this.contractWrapper.getChainID(), + a = ie.ethers.utils.solidityKeccak256( + ["string", "uint256", "uint256", "address"], + [t, n, e, this.contractWrapper.readContract.address] + ); + try { + let i = await this.contractWrapper.callStatic().reveal(e, a); + if (!i.includes("://") || !i.endsWith("/")) + throw new Error("invalid password"); + } catch { + throw new Error("invalid password"); + } + return { + receipt: await this.contractWrapper.sendTransaction("reveal", [ + e, + a, + ]), + }; + } + async generate(e) { + let [t] = await this.generateBatch([e]); + return t; + } + async generateBatch(e) { + let t = e.map((i) => kcr.parse(i)), + n = await this.contractWrapper.getChainID(), + a = this.contractWrapper.getSigner(); + return ( + dr.default(a, "No signer available"), + await Promise.all( + t.map(async (i) => { + let s = await this.contractWrapper.signTypedData( + a, + { + name: "SignatureAction", + version: "1", + chainId: n, + verifyingContract: + this.contractWrapper.readContract.address, + }, + { GenericRequest: fUe }, + await this.mapPayloadToContractStruct(i) + ); + return { payload: i, signature: s.toString() }; + }) + ) + ); + } + async verify(e) { + let t = await this.mapPayloadToContractStruct(e.payload); + return ( + await this.contractWrapper.readContract.verify(t, e.signature) + )[0]; + } + async claimWithSignature(e) { + let t = await this.mapPayloadToContractStruct(e.payload), + n = await Zo( + this.contractWrapper.getProvider(), + e.payload.price, + e.payload.currencyAddress + ), + a = await this.contractWrapper.getCallOverrides(); + await h0(this.contractWrapper, n, e.payload.currencyAddress, a); + let i = await this.contractWrapper.sendTransaction( + "claimWithSignature", + [t, e.signature], + a + ), + s = this.contractWrapper.parseLogs("TokensClaimed", i?.logs), + c = s[0].args.startTokenId, + l = c.add(s[0].args.quantityClaimed), + d = []; + for (let m = c; m.lt(l); m = m.add(1)) + d.push({ id: m, receipt: i, data: () => this.erc721.get(m) }); + return d; + } + async mapPayloadToContractStruct(e) { + let t = await Zo( + this.contractWrapper.getProvider(), + e.price, + e.currencyAddress + ), + n = ie.ethers.utils.defaultAbiCoder.encode( + [ + "string[]", + "address", + "address", + "uint256", + "address", + "uint256", + "uint256", + "address", + ], + [ + e.tierPriority, + e.to, + e.royaltyRecipient, + e.royaltyBps, + e.primarySaleRecipient, + e.quantity, + t, + e.currencyAddress, + ] + ); + return { + uid: e.uid, + validityStartTimestamp: e.mintStartTime, + validityEndTimestamp: e.mintEndTime, + data: n, + }; + } + }, + RP = class { + constructor(e, t) { + ue._defineProperty(this, "featureName", dP.name), + ue._defineProperty(this, "contractWrapper", void 0), + ue._defineProperty(this, "storage", void 0), + (this.contractWrapper = e), + (this.storage = t); + } + async mint(e) { + let t = e.payload, + n = e.signature, + a = await this.isLegacyNFTContract(), + i, + s; + a + ? ((i = await this.mapLegacyPayloadToContractStruct(t)), + (s = i.price)) + : ((i = await this.mapPayloadToContractStruct(t)), + (s = i.pricePerToken.mul(i.quantity))); + let c = await this.contractWrapper.getCallOverrides(); + await h0(this.contractWrapper, s, t.currencyAddress, c); + let l = await this.contractWrapper.sendTransaction( + "mintWithSignature", + [i, n], + c + ), + d = this.contractWrapper.parseLogs( + "TokensMintedWithSignature", + l.logs + ); + if (d.length === 0) + throw new Error("No MintWithSignature event found"); + return { id: d[0].args.tokenIdMinted, receipt: l }; + } + async mintBatch(e) { + let t = await this.isLegacyNFTContract(), + a = ( + await Promise.all( + e.map(async (c) => { + let l; + t + ? (l = await this.mapLegacyPayloadToContractStruct( + c.payload + )) + : (l = await this.mapPayloadToContractStruct(c.payload)); + let d = c.signature, + m = c.payload.price; + if (ie.BigNumber.from(m).gt(0)) + throw new Error( + "Can only batch free mints. For mints with a price, use regular mint()" + ); + return { message: l, signature: d }; + }) + ) + ).map((c) => + t + ? this.contractWrapper.readContract.interface.encodeFunctionData( + "mintWithSignature", + [c.message, c.signature] + ) + : this.contractWrapper.readContract.interface.encodeFunctionData( + "mintWithSignature", + [c.message, c.signature] + ) + ), + i = await this.contractWrapper.multiCall(a), + s = this.contractWrapper.parseLogs( + "TokensMintedWithSignature", + i.logs + ); + if (s.length === 0) + throw new Error("No MintWithSignature event found"); + return s.map((c) => ({ id: c.args.tokenIdMinted, receipt: i })); + } + async verify(e) { + let t = await this.isLegacyNFTContract(), + n = e.payload, + a = e.signature, + i, + s; + if (t) { + let c = this.contractWrapper.readContract; + (i = await this.mapLegacyPayloadToContractStruct(n)), + (s = await c.verify(i, a)); + } else { + let c = this.contractWrapper.readContract; + (i = await this.mapPayloadToContractStruct(n)), + (s = await c.verify(i, a)); + } + return s[0]; + } + async generate(e) { + return (await this.generateBatch([e]))[0]; + } + async generateBatch(e) { + let t = await this.isLegacyNFTContract(), + n = e.map((l) => cUe.parse(l)), + a = n.map((l) => l.metadata), + i = await $g(a, this.storage), + s = await this.contractWrapper.getChainID(), + c = this.contractWrapper.getSigner(); + return ( + dr.default(c, "No signer available"), + await Promise.all( + n.map(async (l, d) => { + let m = i[d], + w = uUe.parse({ ...l, uri: m }), + C; + return ( + t + ? (C = await this.contractWrapper.signTypedData( + c, + { + name: "TokenERC721", + version: "1", + chainId: s, + verifyingContract: + this.contractWrapper.readContract.address, + }, + { MintRequest: dUe }, + await this.mapLegacyPayloadToContractStruct(w) + )) + : (C = await this.contractWrapper.signTypedData( + c, + { + name: "SignatureMintERC721", + version: "1", + chainId: s, + verifyingContract: await this.contractWrapper + .readContract.address, + }, + { MintRequest: hUe }, + await this.mapPayloadToContractStruct(w) + )), + { payload: w, signature: C.toString() } + ); + }) + ) + ); + } + async mapPayloadToContractStruct(e) { + let t = await Zo( + this.contractWrapper.getProvider(), + e.price, + e.currencyAddress + ); + return { + to: e.to, + royaltyRecipient: e.royaltyRecipient, + royaltyBps: e.royaltyBps, + primarySaleRecipient: e.primarySaleRecipient, + uri: e.uri, + quantity: e.quantity, + pricePerToken: t, + currency: e.currencyAddress, + validityStartTimestamp: e.mintStartTime, + validityEndTimestamp: e.mintEndTime, + uid: e.uid, + }; + } + async mapLegacyPayloadToContractStruct(e) { + let t = await Zo( + this.contractWrapper.getProvider(), + e.price, + e.currencyAddress + ); + return { + to: e.to, + price: t, + uri: e.uri, + currency: e.currencyAddress, + validityEndTimestamp: e.mintEndTime, + validityStartTimestamp: e.mintStartTime, + uid: e.uid, + royaltyRecipient: e.royaltyRecipient, + royaltyBps: e.royaltyBps, + primarySaleRecipient: e.primarySaleRecipient, + }; + } + async isLegacyNFTContract() { + return Ot(this.contractWrapper, "ERC721SignatureMintV1"); + } + }, + v3 = class { + get chainId() { + return this._chainId; + } + constructor(e, t, n) { + ue._defineProperty(this, "featureName", pP.name), + ue._defineProperty(this, "query", void 0), + ue._defineProperty(this, "mintable", void 0), + ue._defineProperty(this, "burnable", void 0), + ue._defineProperty(this, "lazyMintable", void 0), + ue._defineProperty(this, "tieredDropable", void 0), + ue._defineProperty(this, "signatureMintable", void 0), + ue._defineProperty(this, "contractWrapper", void 0), + ue._defineProperty(this, "storage", void 0), + ue._defineProperty(this, "_chainId", void 0), + (this.contractWrapper = e), + (this.storage = t), + (this.query = this.detectErc721Enumerable()), + (this.mintable = this.detectErc721Mintable()), + (this.burnable = this.detectErc721Burnable()), + (this.lazyMintable = this.detectErc721LazyMintable()), + (this.tieredDropable = this.detectErc721TieredDrop()), + (this.signatureMintable = this.detectErc721SignatureMintable()), + (this._chainId = n); + } + onNetworkUpdated(e) { + this.contractWrapper.updateSignerOrProvider(e); + } + getAddress() { + return this.contractWrapper.readContract.address; + } + async get(e) { + let [t, n] = await Promise.all([ + this.ownerOf(e).catch(() => ie.constants.AddressZero), + this.getTokenMetadata(e).catch(() => ({ + id: e.toString(), + uri: "", + ...CK, + })), + ]); + return { owner: t, metadata: n, type: "ERC721", supply: 1 }; + } + async ownerOf(e) { + return await this.contractWrapper.readContract.ownerOf(e); + } + async balanceOf(e) { + return await this.contractWrapper.readContract.balanceOf(e); + } + async balance() { + return await this.balanceOf( + await this.contractWrapper.getSignerAddress() + ); + } + async isApproved(e, t) { + return await this.contractWrapper.readContract.isApprovedForAll(e, t); + } + async transfer(e, t) { + let n = await this.contractWrapper.getSignerAddress(); + return { + receipt: await this.contractWrapper.sendTransaction( + "safeTransferFrom(address,address,uint256)", + [n, e, t] + ), + }; + } + async setApprovalForAll(e, t) { + return { + receipt: await this.contractWrapper.sendTransaction( + "setApprovalForAll", + [e, t] + ), + }; + } + async setApprovalForToken(e, t) { + return { + receipt: await this.contractWrapper.sendTransaction("approve", [ + e, + t, + ]), + }; + } + async getAll(e) { + return gr(this.query, Aw).all(e); + } + async getAllOwners() { + return gr(this.query, Aw).allOwners(); + } + async totalCount() { + return this.nextTokenIdToMint(); + } + async totalCirculatingSupply() { + return gr(this.query, Aw).totalCirculatingSupply(); + } + async getOwned(e) { + if (this.query?.owned) return this.query.owned.all(e); + { + let t = e || (await this.contractWrapper.getSignerAddress()), + n = await this.getAllOwners(); + return Promise.all( + (n || []) + .filter((a) => t?.toLowerCase() === a.owner?.toLowerCase()) + .map(async (a) => await this.get(a.tokenId)) + ); + } + } + async getOwnedTokenIds(e) { + if (this.query?.owned) return this.query.owned.tokenIds(e); + { + let t = e || (await this.contractWrapper.getSignerAddress()); + return ((await this.getAllOwners()) || []) + .filter((a) => t?.toLowerCase() === a.owner?.toLowerCase()) + .map((a) => ie.BigNumber.from(a.tokenId)); + } + } + async mint(e) { + return this.mintTo(await this.contractWrapper.getSignerAddress(), e); + } + async mintTo(e, t) { + return gr(this.mintable, p3).to(e, t); + } + async getMintTransaction(e, t) { + return gr(this.mintable, p3).getMintTransaction(e, t); + } + async mintBatch(e) { + return this.mintBatchTo( + await this.contractWrapper.getSignerAddress(), + e + ); + } + async mintBatchTo(e, t) { + return gr(this.mintable?.batch, lP).to(e, t); + } + async burn(e) { + return gr(this.burnable, sP).token(e); + } + async lazyMint(e, t) { + return gr(this.lazyMintable, uP).lazyMint(e, t); + } + async claim(e, t) { + return this.claimTo( + await this.contractWrapper.getSignerAddress(), + e, + t + ); + } + async claimTo(e, t, n) { + let a = this.lazyMintable?.claimWithConditions, + i = this.lazyMintable?.claim; + if (a) return a.to(e, t, n); + if (i) return i.to(e, t, n); + throw new Rf(d3); + } + async getClaimTransaction(e, t, n) { + let a = this.lazyMintable?.claimWithConditions, + i = this.lazyMintable?.claim; + if (a) return a.conditions.getClaimTransaction(e, t, n); + if (i) return i.getClaimTransaction(e, t, n); + throw new Rf(d3); + } + async totalClaimedSupply() { + let e = this.contractWrapper; + if (Jo("nextTokenIdToClaim", e)) + return e.readContract.nextTokenIdToClaim(); + if (Jo("totalMinted", e)) return e.readContract.totalMinted(); + throw new Error( + "No function found on contract to get total claimed supply" + ); + } + async totalUnclaimedSupply() { + return (await this.nextTokenIdToMint()).sub( + await this.totalClaimedSupply() + ); + } + get claimConditions() { + return gr(this.lazyMintable?.claimWithConditions, cP).conditions; + } + get tieredDrop() { + return gr(this.tieredDropable, oP); + } + get signature() { + return gr(this.signatureMintable, dP); + } + get revealer() { + return gr(this.lazyMintable?.revealer, l3); + } + async getTokenMetadata(e) { + let t = await this.contractWrapper.readContract.tokenURI(e); + if (!t) throw new Sw(); + return IK(e, t, this.storage); + } + async nextTokenIdToMint() { + if (Jo("nextTokenIdToMint", this.contractWrapper)) + return await this.contractWrapper.readContract.nextTokenIdToMint(); + if (Jo("totalSupply", this.contractWrapper)) + return await this.contractWrapper.readContract.totalSupply(); + throw new Error( + "Contract requires either `nextTokenIdToMint` or `totalSupply` function available to determine the next token ID to mint" + ); + } + detectErc721Enumerable() { + if ( + Ot(this.contractWrapper, "ERC721Supply") || + Jo("nextTokenIdToMint", this.contractWrapper) + ) + return new PP(this, this.contractWrapper); + } + detectErc721Mintable() { + if (Ot(this.contractWrapper, "ERC721Mintable")) + return new SP(this, this.contractWrapper, this.storage); + } + detectErc721Burnable() { + if (Ot(this.contractWrapper, "ERC721Burnable")) + return new CP(this.contractWrapper); + } + detectErc721LazyMintable() { + if (Ot(this.contractWrapper, "ERC721LazyMintable")) + return new AP(this, this.contractWrapper, this.storage); + } + detectErc721TieredDrop() { + if (Ot(this.contractWrapper, "ERC721TieredDrop")) + return new Gj(this, this.contractWrapper, this.storage); + } + detectErc721SignatureMintable() { + if ( + Ot(this.contractWrapper, "ERC721SignatureMintV1") || + Ot(this.contractWrapper, "ERC721SignatureMintV2") + ) + return new RP(this.contractWrapper, this.storage); + } + }, + Yj = class { + get chainId() { + return this._chainId; + } + constructor(e, t, n) { + ue._defineProperty(this, "contractWrapper", void 0), + ue._defineProperty(this, "storage", void 0), + ue._defineProperty(this, "erc721", void 0), + ue._defineProperty(this, "_chainId", void 0), + (this.contractWrapper = e), + (this.storage = t), + (this.erc721 = new v3(this.contractWrapper, this.storage, n)), + (this._chainId = n); + } + onNetworkUpdated(e) { + this.contractWrapper.updateSignerOrProvider(e); + } + getAddress() { + return this.contractWrapper.readContract.address; + } + async getAll(e) { + return this.erc721.getAll(e); + } + async getOwned(e) { + return this.erc721.getOwned(e); + } + async getOwnedTokenIds(e) { + return this.erc721.getOwnedTokenIds(e); + } + async totalSupply() { + return this.erc721.totalCirculatingSupply(); + } + async get(e) { + return this.erc721.get(e); + } + async ownerOf(e) { + return this.erc721.ownerOf(e); + } + async balanceOf(e) { + return this.erc721.balanceOf(e); + } + async balance() { + return this.erc721.balance(); + } + async isApproved(e, t) { + return this.erc721.isApproved(e, t); + } + async transfer(e, t) { + return this.erc721.transfer(e, t); + } + async setApprovalForAll(e, t) { + return this.erc721.setApprovalForAll(e, t); + } + async setApprovalForToken(e, t) { + return { + receipt: await this.contractWrapper.sendTransaction("approve", [ + e, + t, + ]), + }; + } + }, + kWe = xe.z.object({ address: Mc, quantity: ue.AmountSchema.default(1) }), + Scr = xe.z.union([ + xe.z + .array(xe.z.string()) + .transform((r) => r.map((e) => kWe.parse({ address: e }))), + xe.z.array(kWe), + ]), + BP = class { + constructor(e) { + ue._defineProperty(this, "featureName", zg.name), + ue._defineProperty(this, "contractWrapper", void 0), + (this.contractWrapper = e); + } + async tokens(e, t) { + let n = await this.contractWrapper.getSignerAddress(); + return this.from(n, e, t); + } + async from(e, t, n) { + return { + receipt: await this.contractWrapper.sendTransaction("burn", [ + e, + t, + n, + ]), + }; + } + async batch(e, t) { + let n = await this.contractWrapper.getSignerAddress(); + return this.batchFrom(n, e, t); + } + async batchFrom(e, t, n) { + return { + receipt: await this.contractWrapper.sendTransaction("burnBatch", [ + e, + t, + n, + ]), + }; + } + }, + NP = class { + constructor(e, t) { + ue._defineProperty(this, "featureName", Kg.name), + ue._defineProperty(this, "contractWrapper", void 0), + ue._defineProperty(this, "erc1155", void 0), + (this.erc1155 = e), + (this.contractWrapper = t); + } + async all(e) { + let t = ie.BigNumber.from(e?.start || 0).toNumber(), + n = ie.BigNumber.from( + e?.count || ue.DEFAULT_QUERY_ALL_COUNT + ).toNumber(), + a = Math.min((await this.totalCount()).toNumber(), t + n); + return await Promise.all( + [...Array(a - t).keys()].map((i) => + this.erc1155.get((t + i).toString()) + ) + ); + } + async totalCount() { + return await this.contractWrapper.readContract.nextTokenIdToMint(); + } + async totalCirculatingSupply(e) { + return await this.contractWrapper.readContract.totalSupply(e); + } + async owned(e) { + let t = e || (await this.contractWrapper.getSignerAddress()), + n = await this.contractWrapper.readContract.nextTokenIdToMint(), + i = ( + await this.contractWrapper.readContract.balanceOfBatch( + Array(n.toNumber()).fill(t), + Array.from(Array(n.toNumber()).keys()) + ) + ) + .map((s, c) => ({ tokenId: c, balance: s })) + .filter((s) => s.balance.gt(0)); + return await Promise.all( + i.map(async (s) => ({ + ...(await this.erc1155.get(s.tokenId.toString())), + owner: t, + quantityOwned: s.balance.toNumber(), + })) + ); + } + }; + async function OK(r, e) { + try { + let t = new ie.ethers.Contract(r, HWe.default, e), + [n, a] = await Promise.all([ + ie.ethers.utils + .toUtf8String(await t.contractType()) + .replace(/\x00/g, ""), + await t.contractVersion(), + ]); + return { type: n, version: a }; + } catch { + return; + } + } + var $j = class { + constructor(e) { + ue._defineProperty(this, "featureName", h3.name), + ue._defineProperty(this, "contractWrapper", void 0), + (this.contractWrapper = e); + } + async getClaimTransaction(e, t, n, a) { + let i = {}; + return ( + a && + a.pricePerToken && + (i = await HUe( + this.contractWrapper, + a.pricePerToken, + n, + a.currencyAddress, + a.checkERC20Allowance + )), + Gl.make({ + contractWrapper: this.contractWrapper, + functionName: "claim", + args: [e, t, n], + overrides: i, + }) + ); + } + async to(e, t, n, a) { + return await (await this.getClaimTransaction(e, t, n, a)).execute(); + } + }, + Jj = class { + constructor(e, t) { + ue._defineProperty(this, "featureName", hP.name), + ue._defineProperty(this, "conditions", void 0), + ue._defineProperty(this, "contractWrapper", void 0), + ue._defineProperty(this, "storage", void 0), + (this.contractWrapper = e), + (this.storage = t); + let n = new f0(this.contractWrapper, qw, this.storage); + this.conditions = new wP(e, n, this.storage); + } + async to(e, t, n, a) { + return await ( + await this.conditions.getClaimTransaction(e, t, n, a) + ).execute(); + } + }, + OP = class { + constructor(e, t, n) { + ue._defineProperty(this, "featureName", fP.name), + ue._defineProperty(this, "revealer", void 0), + ue._defineProperty(this, "claimWithConditions", void 0), + ue._defineProperty(this, "claim", void 0), + ue._defineProperty(this, "contractWrapper", void 0), + ue._defineProperty(this, "erc1155", void 0), + ue._defineProperty(this, "storage", void 0), + (this.erc1155 = e), + (this.contractWrapper = t), + (this.storage = n), + (this.claim = this.detectErc1155Claimable()), + (this.claimWithConditions = + this.detectErc1155ClaimableWithConditions()), + (this.revealer = this.detectErc1155Revealable()); + } + async lazyMint(e, t) { + let n = await this.erc1155.nextTokenIdToMint(), + a = await $g(e, this.storage, n.toNumber(), t), + i = a[0].substring(0, a[0].lastIndexOf("/")); + for (let C = 0; C < a.length; C++) { + let I = a[C].substring(0, a[C].lastIndexOf("/")); + if (i !== I) + throw new Error( + `Can only create batches with the same base URI for every entry in the batch. Expected '${i}' but got '${I}'` + ); + } + let s = await this.isLegacyEditionDropContract(), + c; + s + ? (c = await this.contractWrapper.sendTransaction("lazyMint", [ + a.length, + `${i.endsWith("/") ? i : `${i}/`}`, + ])) + : (c = await this.contractWrapper.sendTransaction("lazyMint", [ + a.length, + `${i.endsWith("/") ? i : `${i}/`}`, + ie.ethers.utils.toUtf8Bytes(""), + ])); + let l = this.contractWrapper.parseLogs("TokensLazyMinted", c?.logs), + d = l[0].args.startTokenId, + m = l[0].args.endTokenId, + w = []; + for (let C = d; C.lte(m); C = C.add(1)) + w.push({ + id: C, + receipt: c, + data: () => this.erc1155.getTokenMetadata(C), + }); + return w; + } + detectErc1155Claimable() { + if (Ot(this.contractWrapper, "ERC1155ClaimCustom")) + return new $j(this.contractWrapper); + } + detectErc1155ClaimableWithConditions() { + if ( + Ot(this.contractWrapper, "ERC1155ClaimConditionsV1") || + Ot(this.contractWrapper, "ERC1155ClaimConditionsV2") || + Ot(this.contractWrapper, "ERC1155ClaimPhasesV1") || + Ot(this.contractWrapper, "ERC1155ClaimPhasesV2") + ) + return new Jj(this.contractWrapper, this.storage); + } + detectErc1155Revealable() { + if (Ot(this.contractWrapper, "ERC1155Revealable")) + return new s3(this.contractWrapper, this.storage, Pw.name, () => + this.erc1155.nextTokenIdToMint() + ); + } + async isLegacyEditionDropContract() { + let e = await OK( + this.contractWrapper.readContract.address, + this.contractWrapper.getProvider() + ); + return e && e.type === "DropERC1155" && e.version < 3; + } + }, + LP = class { + constructor(e, t, n) { + ue._defineProperty(this, "featureName", yP.name), + ue._defineProperty(this, "contractWrapper", void 0), + ue._defineProperty(this, "erc1155", void 0), + ue._defineProperty(this, "storage", void 0), + (this.erc1155 = e), + (this.contractWrapper = t), + (this.storage = n); + } + async to(e, t) { + let n = t.map((d) => d.metadata), + a = t.map((d) => d.supply), + s = (await $g(n, this.storage)).map((d, m) => + this.contractWrapper.readContract.interface.encodeFunctionData( + "mintTo", + [e, ie.ethers.constants.MaxUint256, d, a[m]] + ) + ), + c = await this.contractWrapper.multiCall(s), + l = this.contractWrapper.parseLogs("TokensMinted", c.logs); + if (l.length === 0 || l.length < n.length) + throw new Error("TokenMinted event not found, minting failed"); + return l.map((d) => { + let m = d.args.tokenIdMinted; + return { id: m, receipt: c, data: () => this.erc1155.get(m) }; + }); + } + }, + DP = class { + constructor(e, t, n) { + ue._defineProperty(this, "featureName", jg.name), + ue._defineProperty(this, "contractWrapper", void 0), + ue._defineProperty(this, "erc1155", void 0), + ue._defineProperty(this, "storage", void 0), + ue._defineProperty(this, "batch", void 0), + (this.erc1155 = e), + (this.contractWrapper = t), + (this.storage = n), + (this.batch = this.detectErc1155BatchMintable()); + } + async to(e, t) { + let n = await this.getMintTransaction(e, t), + { receipt: a } = await n.execute(), + i = this.contractWrapper.parseLogs("TransferSingle", a?.logs); + if (i.length === 0) + throw new Error("TransferSingleEvent event not found"); + let s = i[0].args.id; + return { + id: s, + receipt: a, + data: () => this.erc1155.get(s.toString()), + }; + } + async getMintTransaction(e, t) { + let n = await AK(t.metadata, this.storage); + return Gl.make({ + contractWrapper: this.contractWrapper, + functionName: "mintTo", + args: [e, ie.ethers.constants.MaxUint256, n, t.supply], + }); + } + async additionalSupplyTo(e, t, n) { + let a = await this.erc1155.getTokenMetadata(t), + i = await this.contractWrapper.sendTransaction("mintTo", [ + e, + t, + a.uri, + n, + ]); + return { + id: ie.BigNumber.from(t), + receipt: i, + data: () => this.erc1155.get(t), + }; + } + detectErc1155BatchMintable() { + if (Ot(this.contractWrapper, "ERC1155BatchMintable")) + return new LP(this.erc1155, this.contractWrapper, this.storage); + } + }, + qP = class { + constructor(e, t, n) { + ue._defineProperty(this, "featureName", mP.name), + ue._defineProperty(this, "contractWrapper", void 0), + ue._defineProperty(this, "storage", void 0), + ue._defineProperty(this, "roles", void 0), + (this.contractWrapper = e), + (this.storage = t), + (this.roles = n); + } + async mint(e) { + let t = e.payload, + n = e.signature, + a = await this.mapPayloadToContractStruct(t), + i = await this.contractWrapper.getCallOverrides(); + await h0( + this.contractWrapper, + a.pricePerToken.mul(a.quantity), + t.currencyAddress, + i + ); + let s = await this.contractWrapper.sendTransaction( + "mintWithSignature", + [a, n], + i + ), + c = this.contractWrapper.parseLogs( + "TokensMintedWithSignature", + s.logs + ); + if (c.length === 0) + throw new Error("No MintWithSignature event found"); + return { id: c[0].args.tokenIdMinted, receipt: s }; + } + async mintBatch(e) { + let n = ( + await Promise.all( + e.map(async (s) => { + let c = await this.mapPayloadToContractStruct(s.payload), + l = s.signature, + d = s.payload.price; + if (ie.BigNumber.from(d).gt(0)) + throw new Error( + "Can only batch free mints. For mints with a price, use regular mint()" + ); + return { message: c, signature: l }; + }) + ) + ).map((s) => + this.contractWrapper.readContract.interface.encodeFunctionData( + "mintWithSignature", + [s.message, s.signature] + ) + ), + a = await this.contractWrapper.multiCall(n), + i = this.contractWrapper.parseLogs( + "TokensMintedWithSignature", + a.logs + ); + if (i.length === 0) + throw new Error("No MintWithSignature event found"); + return i.map((s) => ({ id: s.args.tokenIdMinted, receipt: a })); + } + async verify(e) { + let t = e.payload, + n = e.signature, + a = await this.mapPayloadToContractStruct(t); + return (await this.contractWrapper.readContract.verify(a, n))[0]; + } + async generate(e) { + let t = { ...e, tokenId: ie.ethers.constants.MaxUint256 }; + return this.generateFromTokenId(t); + } + async generateFromTokenId(e) { + return (await this.generateBatchFromTokenIds([e]))[0]; + } + async generateBatch(e) { + let t = e.map((n) => ({ + ...n, + tokenId: ie.ethers.constants.MaxUint256, + })); + return this.generateBatchFromTokenIds(t); + } + async generateBatchFromTokenIds(e) { + await this.roles?.verify( + ["minter"], + await this.contractWrapper.getSignerAddress() + ); + let t = e.map((d) => sUe.parse(d)), + n = t.map((d) => d.metadata), + a = await $g(n, this.storage), + i = await this.contractWrapper.getChainID(), + s = this.contractWrapper.getSigner(); + dr.default(s, "No signer available"); + let l = + ( + await OK( + this.contractWrapper.readContract.address, + this.contractWrapper.getProvider() + ) + )?.type === "TokenERC1155"; + return await Promise.all( + t.map(async (d, m) => { + let w = a[m], + C = oUe.parse({ ...d, uri: w }), + I = await this.contractWrapper.signTypedData( + s, + { + name: l ? "TokenERC1155" : "SignatureMintERC1155", + version: "1", + chainId: i, + verifyingContract: + this.contractWrapper.readContract.address, + }, + { MintRequest: pUe }, + await this.mapPayloadToContractStruct(C) + ); + return { payload: C, signature: I.toString() }; + }) + ); + } + async mapPayloadToContractStruct(e) { + let t = await Zo( + this.contractWrapper.getProvider(), + e.price, + e.currencyAddress + ); + return { + to: e.to, + tokenId: e.tokenId, + uri: e.uri, + quantity: e.quantity, + pricePerToken: t, + currency: e.currencyAddress, + validityStartTimestamp: e.mintStartTime, + validityEndTimestamp: e.mintEndTime, + uid: e.uid, + royaltyRecipient: e.royaltyRecipient, + royaltyBps: e.royaltyBps, + primarySaleRecipient: e.primarySaleRecipient, + }; + } + }, + w3 = class { + get chainId() { + return this._chainId; + } + constructor(e, t, n) { + ue._defineProperty(this, "featureName", gP.name), + ue._defineProperty(this, "query", void 0), + ue._defineProperty(this, "mintable", void 0), + ue._defineProperty(this, "burnable", void 0), + ue._defineProperty(this, "lazyMintable", void 0), + ue._defineProperty(this, "signatureMintable", void 0), + ue._defineProperty(this, "contractWrapper", void 0), + ue._defineProperty(this, "storage", void 0), + ue._defineProperty(this, "_chainId", void 0), + (this.contractWrapper = e), + (this.storage = t), + (this.query = this.detectErc1155Enumerable()), + (this.mintable = this.detectErc1155Mintable()), + (this.burnable = this.detectErc1155Burnable()), + (this.lazyMintable = this.detectErc1155LazyMintable()), + (this.signatureMintable = this.detectErc1155SignatureMintable()), + (this._chainId = n); + } + onNetworkUpdated(e) { + this.contractWrapper.updateSignerOrProvider(e); + } + getAddress() { + return this.contractWrapper.readContract.address; + } + async get(e) { + let [t, n] = await Promise.all([ + this.contractWrapper.readContract + .totalSupply(e) + .catch(() => ie.BigNumber.from(0)), + this.getTokenMetadata(e).catch(() => ({ + id: e.toString(), + uri: "", + ...CK, + })), + ]); + return { + owner: ie.ethers.constants.AddressZero, + metadata: n, + type: "ERC1155", + supply: t.toNumber(), + }; + } + async totalSupply(e) { + return await this.contractWrapper.readContract.totalSupply(e); + } + async balanceOf(e, t) { + return await this.contractWrapper.readContract.balanceOf(e, t); + } + async balance(e) { + return await this.balanceOf( + await this.contractWrapper.getSignerAddress(), + e + ); + } + async isApproved(e, t) { + return await this.contractWrapper.readContract.isApprovedForAll(e, t); + } + async transfer(e, t, n) { + let a = + arguments.length > 3 && arguments[3] !== void 0 + ? arguments[3] + : [0], + i = await this.contractWrapper.getSignerAddress(); + return { + receipt: await this.contractWrapper.sendTransaction( + "safeTransferFrom", + [i, e, t, n, a] + ), + }; + } + async setApprovalForAll(e, t) { + return { + receipt: await this.contractWrapper.sendTransaction( + "setApprovalForAll", + [e, t] + ), + }; + } + async airdrop(e, t) { + let n = + arguments.length > 2 && arguments[2] !== void 0 + ? arguments[2] + : [0], + a = await this.contractWrapper.getSignerAddress(), + i = await this.balanceOf(a, e), + s = Scr.parse(t), + c = s.reduce((d, m) => d + Number(m?.quantity || 1), 0); + if (i.toNumber() < c) + throw new Error( + `The caller owns ${i.toNumber()} NFTs, but wants to airdrop ${c} NFTs.` + ); + let l = s.map((d) => { + let { address: m, quantity: w } = d; + return this.contractWrapper.readContract.interface.encodeFunctionData( + "safeTransferFrom", + [a, m, e, w, n] + ); + }); + return { receipt: await this.contractWrapper.multiCall(l) }; + } + async nextTokenIdToMint() { + if (Jo("nextTokenIdToMint", this.contractWrapper)) + return await this.contractWrapper.readContract.nextTokenIdToMint(); + throw new Error( + "Contract requires the `nextTokenIdToMint` function available to determine the next token ID to mint" + ); + } + async getAll(e) { + return gr(this.query, Kg).all(e); + } + async totalCount() { + return gr(this.query, Kg).totalCount(); + } + async totalCirculatingSupply(e) { + return gr(this.query, Kg).totalCirculatingSupply(e); + } + async getOwned(e) { + return gr(this.query, Kg).owned(e); + } + async mint(e) { + return this.mintTo(await this.contractWrapper.getSignerAddress(), e); + } + async mintTo(e, t) { + return gr(this.mintable, jg).to(e, t); + } + async getMintTransaction(e, t) { + return gr(this.mintable, jg).getMintTransaction(e, t); + } + async mintAdditionalSupply(e, t) { + return gr(this.mintable, jg).additionalSupplyTo( + await this.contractWrapper.getSignerAddress(), + e, + t + ); + } + async mintAdditionalSupplyTo(e, t, n) { + return gr(this.mintable, jg).additionalSupplyTo(e, t, n); + } + async mintBatch(e) { + return this.mintBatchTo( + await this.contractWrapper.getSignerAddress(), + e + ); + } + async mintBatchTo(e, t) { + return gr(this.mintable?.batch, yP).to(e, t); + } + async burn(e, t) { + return gr(this.burnable, zg).tokens(e, t); + } + async burnFrom(e, t, n) { + return gr(this.burnable, zg).from(e, t, n); + } + async burnBatch(e, t) { + return gr(this.burnable, zg).batch(e, t); + } + async burnBatchFrom(e, t, n) { + return gr(this.burnable, zg).batchFrom(e, t, n); + } + async lazyMint(e, t) { + return gr(this.lazyMintable, fP).lazyMint(e, t); + } + async getClaimTransaction(e, t, n, a) { + let i = this.lazyMintable?.claimWithConditions, + s = this.lazyMintable?.claim; + if (i) return i.conditions.getClaimTransaction(e, t, n, a); + if (s) return s.getClaimTransaction(e, t, n, a); + throw new Rf(h3); + } + async claim(e, t, n) { + return this.claimTo( + await this.contractWrapper.getSignerAddress(), + e, + t, + n + ); + } + async claimTo(e, t, n, a) { + let i = this.lazyMintable?.claimWithConditions, + s = this.lazyMintable?.claim; + if (i) return i.to(e, t, n, a); + if (s) return s.to(e, t, n, a); + throw new Rf(h3); + } + get claimConditions() { + return gr(this.lazyMintable?.claimWithConditions, hP).conditions; + } + get signature() { + return gr(this.signatureMintable, mP); + } + get revealer() { + return gr(this.lazyMintable?.revealer, Pw); + } + async getTokenMetadata(e) { + let t = await this.contractWrapper.readContract.uri(e); + if (!t) throw new Sw(); + return IK(e, t, this.storage); + } + detectErc1155Enumerable() { + if (Ot(this.contractWrapper, "ERC1155Enumerable")) + return new NP(this, this.contractWrapper); + } + detectErc1155Mintable() { + if (Ot(this.contractWrapper, "ERC1155Mintable")) + return new DP(this, this.contractWrapper, this.storage); + } + detectErc1155Burnable() { + if (Ot(this.contractWrapper, "ERC1155Burnable")) + return new BP(this.contractWrapper); + } + detectErc1155LazyMintable() { + if ( + Ot(this.contractWrapper, "ERC1155LazyMintableV1") || + Ot(this.contractWrapper, "ERC1155LazyMintableV2") + ) + return new OP(this, this.contractWrapper, this.storage); + } + detectErc1155SignatureMintable() { + if (Ot(this.contractWrapper, "ERC1155SignatureMintable")) + return new qP(this.contractWrapper, this.storage); + } + }, + Zj = class { + get chainId() { + return this._chainId; + } + constructor(e, t, n) { + ue._defineProperty(this, "contractWrapper", void 0), + ue._defineProperty(this, "storage", void 0), + ue._defineProperty(this, "erc1155", void 0), + ue._defineProperty(this, "_chainId", void 0), + (this.contractWrapper = e), + (this.storage = t), + (this.erc1155 = new w3(this.contractWrapper, this.storage, n)), + (this._chainId = n); + } + onNetworkUpdated(e) { + this.contractWrapper.updateSignerOrProvider(e); + } + getAddress() { + return this.contractWrapper.readContract.address; + } + async get(e) { + return this.erc1155.get(e); + } + async totalSupply(e) { + return this.erc1155.totalSupply(e); + } + async balanceOf(e, t) { + return this.erc1155.balanceOf(e, t); + } + async balance(e) { + return this.erc1155.balance(e); + } + async isApproved(e, t) { + return this.erc1155.isApproved(e, t); + } + async transfer(e, t, n) { + let a = + arguments.length > 3 && arguments[3] !== void 0 + ? arguments[3] + : [0]; + return this.erc1155.transfer(e, t, n, a); + } + async setApprovalForAll(e, t) { + return this.erc1155.setApprovalForAll(e, t); + } + async airdrop(e, t) { + let n = + arguments.length > 2 && arguments[2] !== void 0 + ? arguments[2] + : [0]; + return this.erc1155.airdrop(e, t, n); + } + }; + async function iHe(r, e, t, n, a) { + try { + let i = new ie.Contract(t, GP.default, r), + s = await i.supportsInterface(_3), + c = await i.supportsInterface(x3); + if (s) { + let l = new ie.Contract(t, no.default, r); + return (await l.isApprovedForAll(a, e)) + ? !0 + : (await l.getApproved(n)).toLowerCase() === e.toLowerCase(); + } else + return c + ? await new ie.Contract(t, Pc.default, r).isApprovedForAll(a, e) + : (console.error( + "Contract does not implement ERC 1155 or ERC 721." + ), + !1); + } catch (i) { + return console.error("Failed to check if token is approved", i), !1; + } + } + async function LK(r, e, t, n, a) { + let i = new ls(r.getSignerOrProvider(), t, GP.default, r.options), + s = await i.readContract.supportsInterface(_3), + c = await i.readContract.supportsInterface(x3); + if (s) { + let l = new ls(r.getSignerOrProvider(), t, no.default, r.options); + (await l.readContract.isApprovedForAll(a, e)) || + (await l.readContract.getApproved(n)).toLowerCase() === + e.toLowerCase() || + (await l.sendTransaction("setApprovalForAll", [e, !0])); + } else if (c) { + let l = new ls(r.getSignerOrProvider(), t, Pc.default, r.options); + (await l.readContract.isApprovedForAll(a, e)) || + (await l.sendTransaction("setApprovalForAll", [e, !0])); + } else throw Error("Contract must implement ERC 1155 or ERC 721."); + } + function sHe(r) { + switch ( + (dr.default( + r.assetContractAddress !== void 0 && r.assetContractAddress !== null, + "Asset contract address is required" + ), + dr.default( + r.buyoutPricePerToken !== void 0 && r.buyoutPricePerToken !== null, + "Buyout price is required" + ), + dr.default( + r.listingDurationInSeconds !== void 0 && + r.listingDurationInSeconds !== null, + "Listing duration is required" + ), + dr.default( + r.startTimestamp !== void 0 && r.startTimestamp !== null, + "Start time is required" + ), + dr.default( + r.tokenId !== void 0 && r.tokenId !== null, + "Token ID is required" + ), + dr.default( + r.quantity !== void 0 && r.quantity !== null, + "Quantity is required" + ), + r.type) + ) { + case "NewAuctionListing": + dr.default( + r.reservePricePerToken !== void 0 && + r.reservePricePerToken !== null, + "Reserve price is required" + ); + } + } + async function DK(r, e, t) { + return { + quantity: t.quantityDesired, + pricePerToken: t.pricePerToken, + currencyContractAddress: t.currency, + buyerAddress: t.offeror, + quantityDesired: t.quantityWanted, + currencyValue: await Gd( + r, + t.currency, + t.quantityWanted.mul(t.pricePerToken) + ), + listingId: e, + }; + } + function Mcr(r, e, t) { + return ( + (t = ie.BigNumber.from(t)), + (r = ie.BigNumber.from(r)), + (e = ie.BigNumber.from(e)), + r.eq(ie.BigNumber.from(0)) ? !1 : e.sub(r).mul(ue.MAX_BPS).div(r).gte(t) + ); + } + async function Pcr(r, e, t) { + let n = []; + for (; e - r > ue.DEFAULT_QUERY_ALL_COUNT; ) + n.push(t(r, r + ue.DEFAULT_QUERY_ALL_COUNT - 1)), + (r += ue.DEFAULT_QUERY_ALL_COUNT); + return n.push(t(r, e - 1)), await Promise.all(n); + } + var Qj = class { + constructor(e, t) { + ue._defineProperty(this, "contractWrapper", void 0), + ue._defineProperty(this, "storage", void 0), + (this.contractWrapper = e), + (this.storage = t); + } + getAddress() { + return this.contractWrapper.readContract.address; + } + async getListing(e) { + let t = await this.contractWrapper.readContract.listings(e); + if (t.assetContract === ie.constants.AddressZero) + throw new r3(this.getAddress(), e.toString()); + if (t.listingType !== Q.ListingType.Direct) + throw new n3(this.getAddress(), e.toString(), "Auction", "Direct"); + return await this.mapListing(t); + } + async getActiveOffer(e, t) { + await this.validateListing(ie.BigNumber.from(e)), + dr.default( + ie.utils.isAddress(t), + "Address must be a valid address" + ); + let n = await this.contractWrapper.readContract.offers(e, t); + if (n.offeror !== ie.constants.AddressZero) + return await DK( + this.contractWrapper.getProvider(), + ie.BigNumber.from(e), + n + ); + } + async createListing(e) { + sHe(e), + await LK( + this.contractWrapper, + this.getAddress(), + e.assetContractAddress, + e.tokenId, + await this.contractWrapper.getSignerAddress() + ); + let t = await Zo( + this.contractWrapper.getProvider(), + e.buyoutPricePerToken, + e.currencyContractAddress + ), + n = Math.floor(e.startTimestamp.getTime() / 1e3), + i = (await this.contractWrapper.getProvider().getBlock("latest")) + .timestamp; + n < i && (n = i); + let s = await this.contractWrapper.sendTransaction( + "createListing", + [ + { + assetContract: e.assetContractAddress, + tokenId: e.tokenId, + buyoutPricePerToken: t, + currencyToAccept: TK(e.currencyContractAddress), + listingType: Q.ListingType.Direct, + quantityToList: e.quantity, + reservePricePerToken: t, + secondsUntilEndTime: e.listingDurationInSeconds, + startTime: ie.BigNumber.from(n), + }, + ], + { gasLimit: 5e5 } + ); + return { + id: this.contractWrapper.parseLogs("ListingAdded", s?.logs)[0].args + .listingId, + receipt: s, + }; + } + async makeOffer(e, t, n, a, i) { + if (yh(n)) + throw new Error( + "You must use the wrapped native token address when making an offer with a native token" + ); + let s = await Zo(this.contractWrapper.getProvider(), a, n); + try { + await this.getListing(e); + } catch (w) { + throw ( + (console.error("Failed to get listing, err =", w), + new Error(`Error getting the listing with id ${e}`)) + ); + } + let c = ie.BigNumber.from(t), + l = ie.BigNumber.from(s).mul(c), + d = (await this.contractWrapper.getCallOverrides()) || {}; + await h0(this.contractWrapper, l, n, d); + let m = ie.ethers.constants.MaxUint256; + return ( + i && (m = ie.BigNumber.from(Math.floor(i.getTime() / 1e3))), + { + receipt: await this.contractWrapper.sendTransaction( + "offer", + [e, t, n, s, m], + d + ), + } + ); + } + async acceptOffer(e, t) { + await this.validateListing(ie.BigNumber.from(e)); + let n = await this.contractWrapper.readContract.offers(e, t); + return { + receipt: await this.contractWrapper.sendTransaction("acceptOffer", [ + e, + t, + n.currency, + n.pricePerToken, + ]), + }; + } + async buyoutListing(e, t, n) { + let a = await this.validateListing(ie.BigNumber.from(e)), + { valid: i, error: s } = await this.isStillValidListing(a, t); + if (!i) throw new Error(`Listing ${e} is no longer valid. ${s}`); + let c = n || (await this.contractWrapper.getSignerAddress()), + l = ie.BigNumber.from(t), + d = ie.BigNumber.from(a.buyoutPrice).mul(l), + m = (await this.contractWrapper.getCallOverrides()) || {}; + return ( + await h0(this.contractWrapper, d, a.currencyContractAddress, m), + { + receipt: await this.contractWrapper.sendTransaction( + "buy", + [e, c, l, a.currencyContractAddress, d], + m + ), + } + ); + } + async updateListing(e) { + return { + receipt: await this.contractWrapper.sendTransaction( + "updateListing", + [ + e.id, + e.quantity, + e.buyoutPrice, + e.buyoutPrice, + e.currencyContractAddress, + e.startTimeInSeconds, + e.secondsUntilEnd, + ] + ), + }; + } + async cancelListing(e) { + return { + receipt: await this.contractWrapper.sendTransaction( + "cancelDirectListing", + [e] + ), + }; + } + async validateListing(e) { + try { + return await this.getListing(e); + } catch (t) { + throw (console.error(`Error getting the listing with id ${e}`), t); + } + } + async mapListing(e) { + return { + assetContractAddress: e.assetContract, + buyoutPrice: ie.BigNumber.from(e.buyoutPricePerToken), + currencyContractAddress: e.currency, + buyoutCurrencyValuePerToken: await Gd( + this.contractWrapper.getProvider(), + e.currency, + e.buyoutPricePerToken + ), + id: e.listingId.toString(), + tokenId: e.tokenId, + quantity: e.quantity, + startTimeInSeconds: e.startTime, + asset: await QP( + e.assetContract, + this.contractWrapper.getProvider(), + e.tokenId, + this.storage + ), + secondsUntilEnd: e.endTime, + sellerAddress: e.tokenOwner, + type: Q.ListingType.Direct, + }; + } + async isStillValidListing(e, t) { + if ( + !(await iHe( + this.contractWrapper.getProvider(), + this.getAddress(), + e.assetContractAddress, + e.tokenId, + e.sellerAddress + )) + ) + return { + valid: !1, + error: `Token '${e.tokenId}' from contract '${e.assetContractAddress}' is not approved for transfer`, + }; + let a = this.contractWrapper.getProvider(), + i = new ie.Contract(e.assetContractAddress, GP.default, a), + s = await i.supportsInterface(_3), + c = await i.supportsInterface(x3); + if (s) { + let d = + ( + await new ie.Contract( + e.assetContractAddress, + no.default, + a + ).ownerOf(e.tokenId) + ).toLowerCase() === e.sellerAddress.toLowerCase(); + return { + valid: d, + error: d + ? void 0 + : `Seller is not the owner of Token '${e.tokenId}' from contract '${e.assetContractAddress} anymore'`, + }; + } else if (c) { + let m = ( + await new ie.Contract( + e.assetContractAddress, + Pc.default, + a + ).balanceOf(e.sellerAddress, e.tokenId) + ).gte(t || e.quantity); + return { + valid: m, + error: m + ? void 0 + : `Seller does not have enough balance of Token '${e.tokenId}' from contract '${e.assetContractAddress} to fulfill the listing`, + }; + } else + return { + valid: !1, + error: "Contract does not implement ERC 1155 or ERC 721.", + }; + } + }, + Xj = class { + constructor(e, t) { + ue._defineProperty(this, "contractWrapper", void 0), + ue._defineProperty(this, "storage", void 0), + ue._defineProperty(this, "encoder", void 0), + (this.contractWrapper = e), + (this.storage = t), + (this.encoder = new Mw(e)); + } + getAddress() { + return this.contractWrapper.readContract.address; + } + async getListing(e) { + let t = await this.contractWrapper.readContract.listings(e); + if (t.listingId.toString() !== e.toString()) + throw new r3(this.getAddress(), e.toString()); + if (t.listingType !== Q.ListingType.Auction) + throw new n3(this.getAddress(), e.toString(), "Direct", "Auction"); + return await this.mapListing(t); + } + async getWinningBid(e) { + await this.validateListing(ie.BigNumber.from(e)); + let t = await this.contractWrapper.readContract.winningBid(e); + if (t.offeror !== ie.constants.AddressZero) + return await DK( + this.contractWrapper.getProvider(), + ie.BigNumber.from(e), + t + ); + } + async getWinner(e) { + let t = await this.validateListing(ie.BigNumber.from(e)), + n = await this.contractWrapper.readContract.winningBid(e), + a = ie.BigNumber.from(Math.floor(Date.now() / 1e3)), + i = ie.BigNumber.from(t.endTimeInEpochSeconds); + if (a.gt(i) && n.offeror !== ie.constants.AddressZero) + return n.offeror; + let c = ( + await this.contractWrapper.readContract.queryFilter( + this.contractWrapper.readContract.filters.AuctionClosed() + ) + ).find((l) => l.args.listingId.eq(ie.BigNumber.from(e))); + if (!c) + throw new Error( + `Could not find auction with listingId ${e} in closed auctions` + ); + return c.args.winningBidder; + } + async createListing(e) { + sHe(e), + await LK( + this.contractWrapper, + this.getAddress(), + e.assetContractAddress, + e.tokenId, + await this.contractWrapper.getSignerAddress() + ); + let t = await Zo( + this.contractWrapper.getProvider(), + e.buyoutPricePerToken, + e.currencyContractAddress + ), + n = await Zo( + this.contractWrapper.getProvider(), + e.reservePricePerToken, + e.currencyContractAddress + ), + a = Math.floor(e.startTimestamp.getTime() / 1e3), + s = (await this.contractWrapper.getProvider().getBlock("latest")) + .timestamp; + a < s && (a = s); + let c = await this.contractWrapper.sendTransaction( + "createListing", + [ + { + assetContract: e.assetContractAddress, + tokenId: e.tokenId, + buyoutPricePerToken: t, + currencyToAccept: TK(e.currencyContractAddress), + listingType: Q.ListingType.Auction, + quantityToList: e.quantity, + reservePricePerToken: n, + secondsUntilEndTime: e.listingDurationInSeconds, + startTime: ie.BigNumber.from(a), + }, + ], + { gasLimit: 5e5 } + ); + return { + id: this.contractWrapper.parseLogs("ListingAdded", c?.logs)[0].args + .listingId, + receipt: c, + }; + } + async buyoutListing(e) { + let t = await this.validateListing(ie.BigNumber.from(e)), + n = await Fw( + this.contractWrapper.getProvider(), + t.currencyContractAddress + ); + return this.makeBid( + e, + ie.ethers.utils.formatUnits(t.buyoutPrice, n.decimals) + ); + } + async makeBid(e, t) { + let n = await this.validateListing(ie.BigNumber.from(e)), + a = await Zo( + this.contractWrapper.getProvider(), + t, + n.currencyContractAddress + ); + if (a.eq(ie.BigNumber.from(0))) + throw new Error("Cannot make a bid with 0 value"); + let i = await this.contractWrapper.readContract.bidBufferBps(), + s = await this.getWinningBid(e); + if (s) { + let m = Mcr(s.pricePerToken, a, i); + dr.default( + m, + "Bid price is too low based on the current winning bid and the bid buffer" + ); + } else { + let m = a, + w = ie.BigNumber.from(n.reservePrice); + dr.default(m.gte(w), "Bid price is too low based on reserve price"); + } + let c = ie.BigNumber.from(n.quantity), + l = a.mul(c), + d = (await this.contractWrapper.getCallOverrides()) || {}; + return ( + await h0(this.contractWrapper, l, n.currencyContractAddress, d), + { + receipt: await this.contractWrapper.sendTransaction( + "offer", + [ + e, + n.quantity, + n.currencyContractAddress, + a, + ie.ethers.constants.MaxUint256, + ], + d + ), + } + ); + } + async cancelListing(e) { + let t = await this.validateListing(ie.BigNumber.from(e)), + n = ie.BigNumber.from(Math.floor(Date.now() / 1e3)), + a = ie.BigNumber.from(t.startTimeInEpochSeconds), + i = await this.contractWrapper.readContract.winningBid(e); + if (n.gt(a) && i.offeror !== ie.constants.AddressZero) + throw new WM(e.toString()); + return { + receipt: await this.contractWrapper.sendTransaction( + "closeAuction", + [ + ie.BigNumber.from(e), + await this.contractWrapper.getSignerAddress(), + ] + ), + }; + } + async closeListing(e, t) { + t || (t = await this.contractWrapper.getSignerAddress()); + let n = await this.validateListing(ie.BigNumber.from(e)); + try { + return { + receipt: await this.contractWrapper.sendTransaction( + "closeAuction", + [ie.BigNumber.from(e), t] + ), + }; + } catch (a) { + throw a.message.includes("cannot close auction before it has ended") + ? new a3(e.toString(), n.endTimeInEpochSeconds.toString()) + : a; + } + } + async executeSale(e) { + let t = await this.validateListing(ie.BigNumber.from(e)); + try { + let n = await this.getWinningBid(e); + dr.default(n, "No winning bid found"); + let a = this.encoder.encode("closeAuction", [e, t.sellerAddress]), + i = this.encoder.encode("closeAuction", [e, n.buyerAddress]); + return await this.contractWrapper.multiCall([a, i]); + } catch (n) { + throw n.message.includes("cannot close auction before it has ended") + ? new a3(e.toString(), t.endTimeInEpochSeconds.toString()) + : n; + } + } + async updateListing(e) { + return { + receipt: await this.contractWrapper.sendTransaction( + "updateListing", + [ + e.id, + e.quantity, + e.reservePrice, + e.buyoutPrice, + e.currencyContractAddress, + e.startTimeInEpochSeconds, + e.endTimeInEpochSeconds, + ] + ), + }; + } + async getBidBufferBps() { + return this.contractWrapper.readContract.bidBufferBps(); + } + async getMinimumNextBid(e) { + let [t, n, a] = await Promise.all([ + this.getBidBufferBps(), + this.getWinningBid(e), + await this.validateListing(ie.BigNumber.from(e)), + ]), + i = n ? n.currencyValue.value : a.reservePrice, + s = i.add(i.mul(t).div(1e4)); + return Gd( + this.contractWrapper.getProvider(), + a.currencyContractAddress, + s + ); + } + async validateListing(e) { + try { + return await this.getListing(e); + } catch (t) { + throw (console.error(`Error getting the listing with id ${e}`), t); + } + } + async mapListing(e) { + return { + assetContractAddress: e.assetContract, + buyoutPrice: ie.BigNumber.from(e.buyoutPricePerToken), + currencyContractAddress: e.currency, + buyoutCurrencyValuePerToken: await Gd( + this.contractWrapper.getProvider(), + e.currency, + e.buyoutPricePerToken + ), + id: e.listingId.toString(), + tokenId: e.tokenId, + quantity: e.quantity, + startTimeInEpochSeconds: e.startTime, + asset: await QP( + e.assetContract, + this.contractWrapper.getProvider(), + e.tokenId, + this.storage + ), + reservePriceCurrencyValuePerToken: await Gd( + this.contractWrapper.getProvider(), + e.currency, + e.reservePricePerToken + ), + reservePrice: ie.BigNumber.from(e.reservePricePerToken), + endTimeInEpochSeconds: e.endTime, + sellerAddress: e.tokenOwner, + type: Q.ListingType.Auction, + }; + } + }; + async function eK(r, e, t, n, a) { + let i = []; + try { + if (NK(Jd.parse(e), "PluginRouter")) { + let d = ( + await new ls(t, r, Usr.default, n).readContract.getAllPlugins() + ).map((w) => w.pluginAddress), + m = Array.from(new Set(d)); + i = await Rcr(m, t, a); + } + } catch {} + return i.length > 0 ? Bcr([e, ...i]) : e; + } + async function Rcr(r, e, t) { + return ( + await Promise.all( + r.map((n) => + Jg(n, e, t).catch( + (a) => ( + console.error(`Failed to fetch plug-in for ${n}`, a), + { abi: [] } + ) + ) + ) + ) + ).map((n) => n.abi); + } + function Bcr(r) { + let e = r.map((a) => Jd.parse(a)).flat(), + n = Zor( + e, + (a, i) => + a.name === i.name && + a.type === i.type && + a.inputs.length === i.inputs.length + ).filter((a) => a.type !== "constructor"); + return Jd.parse(n); + } + var oHe = du.merge(Nf).merge(ds), + Ncr = Yu.merge(Nf).merge(ds), + Ocr = oHe.merge(Vl).merge(b0).merge($u), + cHe = { deploy: Ocr, output: Ncr, input: oHe }, + uHe = du.merge(ro).merge(ds), + Lcr = Yu.merge(ro).merge(ds), + Dcr = uHe.merge($u), + lHe = { deploy: Dcr, output: Lcr, input: uHe }, + lh = { + name: "DropERC1155", + contractType: "edition-drop", + schema: gUe, + roles: ["admin", "minter", "transfer"], + initialize: async function () { + for (var r = arguments.length, e = new Array(r), t = 0; t < r; t++) + e[t] = arguments[t]; + let [n, a, i, s] = e, + [, c] = Qo(n, s), + [l, d, m] = await Promise.all([ + await lh.getAbi(a, c, i), + Promise.resolve().then(function () { + return mFe(); + }), + c.getNetwork(), + ]); + return new d.EditionDrop(n, a, i, s, l, m.chainId); + }, + getAbi: async (r, e, t) => { + let n = await pu(r, e, t); + if (n) return n; + let a = await XP(r, e); + return !a || a.version > 2 + ? ( + await Promise.resolve().then(function () { + return Ds(Az()); + }) + ).default + : ( + await Promise.resolve().then(function () { + return Ds(kz()); + }) + ).default; + }, + }, + m0 = { + name: "TokenERC1155", + contractType: "edition", + schema: kUe, + roles: ["admin", "minter", "transfer"], + initialize: async function () { + for (var r = arguments.length, e = new Array(r), t = 0; t < r; t++) + e[t] = arguments[t]; + let [n, a, i, s] = e, + [, c] = Qo(n, s), + [l, d, m] = await Promise.all([ + m0.getAbi(a, c, i), + Promise.resolve().then(function () { + return gFe(); + }), + c.getNetwork(), + ]); + return new d.Edition(n, a, i, s, l, m.chainId); + }, + getAbi: async (r, e, t) => { + let n = await pu(r, e, t); + return ( + n || + ( + await Promise.resolve().then(function () { + return Ds(Sz()); + }) + ).default + ); + }, + }, + Yd = { + name: "Marketplace", + contractType: "marketplace", + schema: xK, + roles: ["admin", "lister", "asset"], + initialize: async function () { + for (var r = arguments.length, e = new Array(r), t = 0; t < r; t++) + e[t] = arguments[t]; + let [n, a, i, s] = e, + [, c] = Qo(n, s), + [l, d, m] = await Promise.all([ + Yd.getAbi(a, c, i), + Promise.resolve().then(function () { + return wFe(); + }), + c.getNetwork(), + ]); + return new d.Marketplace(n, a, i, s, l, m.chainId); + }, + getAbi: async (r, e, t) => { + let n = await pu(r, e, t); + return ( + n || + ( + await Promise.resolve().then(function () { + return Ds(Mz()); + }) + ).default + ); + }, + }, + Pf = { + name: "MarketplaceRouter", + contractType: "marketplace-v3", + schema: xK, + roles: ["admin", "lister", "asset"], + initialize: async function () { + for (var r = arguments.length, e = new Array(r), t = 0; t < r; t++) + e[t] = arguments[t]; + let [n, a, i, s] = e, + [, c] = Qo(n, s), + [l, d, m] = await Promise.all([ + Pf.getAbi(a, c, i), + Promise.resolve().then(function () { + return TFe(); + }), + c.getNetwork(), + ]); + return new d.MarketplaceV3(n, a, i, s, l, m.chainId); + }, + getAbi: async (r, e, t) => { + let n = await pu(r, e, t); + if (n) return await eK(r, n, e, {}, t); + let a = ( + await Promise.resolve().then(function () { + return Ds(Nz()); + }) + ).default; + return await eK(r, a, e, {}, t); + }, + }, + $d = { + name: "Multiwrap", + contractType: "multiwrap", + schema: lHe, + roles: ["admin", "transfer", "minter", "unwrap", "asset"], + initialize: async function () { + for (var r = arguments.length, e = new Array(r), t = 0; t < r; t++) + e[t] = arguments[t]; + let [n, a, i, s] = e, + [, c] = Qo(n, s), + [l, d, m] = await Promise.all([ + $d.getAbi(a, c, i), + Promise.resolve().then(function () { + return CFe(); + }), + c.getNetwork(), + ]); + return new d.Multiwrap(n, a, i, s, l, m.chainId); + }, + getAbi: async (r, e, t) => { + let n = await pu(r, e, t); + return ( + n || + ( + await Promise.resolve().then(function () { + return Ds(Oz()); + }) + ).default + ); + }, + }, + y0 = { + name: "TokenERC721", + contractType: "nft-collection", + schema: IUe, + roles: ["admin", "minter", "transfer"], + initialize: async function () { + for (var r = arguments.length, e = new Array(r), t = 0; t < r; t++) + e[t] = arguments[t]; + let [n, a, i, s] = e, + [, c] = Qo(n, s), + [l, d, m] = await Promise.all([ + y0.getAbi(a, c, i), + Promise.resolve().then(function () { + return AFe(); + }), + c.getNetwork(), + ]); + return new d.NFTCollection(n, a, i, s, l, m.chainId); + }, + getAbi: async (r, e, t) => { + let n = await pu(r, e, t); + return ( + n || + ( + await Promise.resolve().then(function () { + return Ds(Lz()); + }) + ).default + ); + }, + }, + dh = { + name: "DropERC721", + contractType: "nft-drop", + schema: _K, + roles: ["admin", "minter", "transfer"], + initialize: async function () { + for (var r = arguments.length, e = new Array(r), t = 0; t < r; t++) + e[t] = arguments[t]; + let [n, a, i, s] = e, + [, c] = Qo(n, s), + [l, d, m] = await Promise.all([ + dh.getAbi(a, c, i), + Promise.resolve().then(function () { + return SFe(); + }), + c.getNetwork(), + ]); + return new d.NFTDrop(n, a, i, s, l, m.chainId); + }, + getAbi: async (r, e, t) => { + let n = await pu(r, e, t); + if (n) return n; + let a = await XP(r, e); + return !a || a.version > 3 + ? ( + await Promise.resolve().then(function () { + return Ds(Dz()); + }) + ).default + : ( + await Promise.resolve().then(function () { + return Ds(qz()); + }) + ).default; + }, + }, + Gu = { + name: "Pack", + contractType: "pack", + schema: wUe, + roles: ["admin", "minter", "asset", "transfer"], + initialize: async function () { + for (var r = arguments.length, e = new Array(r), t = 0; t < r; t++) + e[t] = arguments[t]; + let [n, a, i, s] = e, + [, c] = Qo(n, s), + [l, d, m] = await Promise.all([ + Gu.getAbi(a, c, i), + Promise.resolve().then(function () { + return LFe(); + }), + c.getNetwork(), + ]); + return new d.Pack(n, a, i, s, l, m.chainId); + }, + getAbi: async (r, e, t) => { + let n = await pu(r, e, t); + return ( + n || + ( + await Promise.resolve().then(function () { + return Ds(Hz()); + }) + ).default + ); + }, + }, + ph = { + name: "SignatureDrop", + contractType: "signature-drop", + schema: _K, + roles: ["admin", "minter", "transfer"], + initialize: async function () { + for (var r = arguments.length, e = new Array(r), t = 0; t < r; t++) + e[t] = arguments[t]; + let [n, a, i, s] = e, + [, c] = Qo(n, s), + [l, d, m] = await Promise.all([ + ph.getAbi(a, c, i), + Promise.resolve().then(function () { + return qFe(); + }), + c.getNetwork(), + ]); + return new d.SignatureDrop(n, a, i, s, l, m.chainId); + }, + getAbi: async (r, e, t) => { + let n = await pu(r, e, t); + if (n) return n; + let a = await XP(r, e); + return !a || a.version > 4 + ? ( + await Promise.resolve().then(function () { + return Ds(zz()); + }) + ).default + : ( + await Promise.resolve().then(function () { + return Ds(jz()); + }) + ).default; + }, + }, + hh = { + name: "Split", + contractType: "split", + schema: xUe, + roles: ["admin"], + initialize: async function () { + for (var r = arguments.length, e = new Array(r), t = 0; t < r; t++) + e[t] = arguments[t]; + let [n, a, i, s] = e, + [, c] = Qo(n, s), + [l, d, m] = await Promise.all([ + hh.getAbi(a, c, i), + Promise.resolve().then(function () { + return WFe(); + }), + c.getNetwork(), + ]); + return new d.Split(n, a, i, s, l, m.chainId); + }, + getAbi: async (r, e, t) => { + let n = await pu(r, e, t); + return ( + n || + ( + await Promise.resolve().then(function () { + return Ds(Vz()); + }) + ).default + ); + }, + }, + g0 = { + name: "DropERC20", + contractType: "token-drop", + schema: cHe, + roles: ["admin", "transfer"], + initialize: async function () { + for (var r = arguments.length, e = new Array(r), t = 0; t < r; t++) + e[t] = arguments[t]; + let [n, a, i, s] = e, + [, c] = Qo(n, s), + [l, d, m] = await Promise.all([ + g0.getAbi(a, c, i), + Promise.resolve().then(function () { + return HFe(); + }), + c.getNetwork(), + ]); + return new d.TokenDrop(n, a, i, s, l, m.chainId); + }, + getAbi: async (r, e, t) => { + let n = await pu(r, e, t); + if (n) return n; + let a = await XP(r, e); + return !a || a.version > 2 + ? ( + await Promise.resolve().then(function () { + return Ds(Gz()); + }) + ).default + : ( + await Promise.resolve().then(function () { + return Ds(Yz()); + }) + ).default; + }, + }, + fh = { + name: "TokenERC20", + contractType: "token", + schema: EUe, + roles: ["admin", "minter", "transfer"], + initialize: async function () { + for (var r = arguments.length, e = new Array(r), t = 0; t < r; t++) + e[t] = arguments[t]; + let [n, a, i, s] = e, + [, c] = Qo(n, s), + [l, d, m] = await Promise.all([ + fh.getAbi(a, c, i), + Promise.resolve().then(function () { + return jFe(); + }), + c.getNetwork(), + ]); + return new d.Token(n, a, i, s, l, m.chainId); + }, + getAbi: async (r, e, t) => { + let n = await pu(r, e, t); + return ( + n || + ( + await Promise.resolve().then(function () { + return Ds($z()); + }) + ).default + ); + }, + }, + mh = { + name: "VoteERC20", + contractType: "vote", + schema: PUe, + roles: [], + initialize: async function () { + for (var r = arguments.length, e = new Array(r), t = 0; t < r; t++) + e[t] = arguments[t]; + let [n, a, i, s] = e, + [, c] = Qo(n, s), + [l, d, m] = await Promise.all([ + mh.getAbi(a, c, i), + Promise.resolve().then(function () { + return VFe(); + }), + c.getNetwork(), + ]); + return new d.Vote(n, a, i, s, l, m.chainId); + }, + getAbi: async (r, e, t) => { + let n = await pu(r, e, t); + return ( + n || + ( + await Promise.resolve().then(function () { + return Ds(Zz()); + }) + ).default + ); + }, + }; + async function XP(r, e) { + try { + return await OK(r, e); + } catch { + return; + } + } + var Gg = { + [lh.contractType]: lh, + [m0.contractType]: m0, + [Yd.contractType]: Yd, + [Pf.contractType]: Pf, + [$d.contractType]: $d, + [y0.contractType]: y0, + [dh.contractType]: dh, + [Gu.contractType]: Gu, + [ph.contractType]: ph, + [hh.contractType]: hh, + [g0.contractType]: g0, + [fh.contractType]: fh, + [mh.contractType]: mh, + }, + SWe = { + name: "SmartContract", + contractType: "custom", + schema: {}, + roles: EK, + }, + qK = { ...Gg, [SWe.contractType]: SWe }; + function dHe(r) { + return ( + Object.values(qK).find((e) => e.name === r)?.contractType || "custom" + ); + } + function FK(r) { + return Object.values(qK).find((e) => e.contractType === r)?.name; + } + async function pHe(r, e, t, n) { + let a = await n.getChainId(), + i = await n.getAddress(), + s = r === Gu.contractType ? [] : dK(a); + switch ( + (e.trusted_forwarders && + e.trusted_forwarders.length > 0 && + (s = e.trusted_forwarders), + r) + ) { + case dh.contractType: + case y0.contractType: + let c = dh.schema.deploy.parse(e); + return [ + i, + c.name, + c.symbol, + t, + s, + c.primary_sale_recipient, + c.fee_recipient, + c.seller_fee_basis_points, + c.platform_fee_basis_points, + c.platform_fee_recipient, + ]; + case ph.contractType: + let l = ph.schema.deploy.parse(e); + return [ + i, + l.name, + l.symbol, + t, + s, + l.primary_sale_recipient, + l.fee_recipient, + l.seller_fee_basis_points, + l.platform_fee_basis_points, + l.platform_fee_recipient, + ]; + case $d.contractType: + let d = $d.schema.deploy.parse(e); + return [ + i, + d.name, + d.symbol, + t, + s, + d.fee_recipient, + d.seller_fee_basis_points, + ]; + case lh.contractType: + case m0.contractType: + let m = lh.schema.deploy.parse(e); + return [ + i, + m.name, + m.symbol, + t, + s, + m.primary_sale_recipient, + m.fee_recipient, + m.seller_fee_basis_points, + m.platform_fee_basis_points, + m.platform_fee_recipient, + ]; + case g0.contractType: + case fh.contractType: + let w = fh.schema.deploy.parse(e); + return [ + i, + w.name, + w.symbol, + t, + s, + w.primary_sale_recipient, + w.platform_fee_recipient, + w.platform_fee_basis_points, + ]; + case mh.contractType: + let C = mh.schema.deploy.parse(e); + return [ + C.name, + t, + s, + C.voting_token_address, + C.voting_delay_in_blocks, + C.voting_period_in_blocks, + ie.BigNumber.from(C.proposal_token_threshold), + C.voting_quorum_fraction, + ]; + case hh.contractType: + let I = hh.schema.deploy.parse(e); + return [ + i, + t, + s, + I.recipients.map((D) => D.address), + I.recipients.map((D) => ie.BigNumber.from(D.sharesBps)), + ]; + case Yd.contractType: + case Pf.contractType: + let k = Yd.schema.deploy.parse(e); + return [ + i, + t, + s, + k.platform_fee_recipient, + k.platform_fee_basis_points, + ]; + case Gu.contractType: + let O = Gu.schema.deploy.parse(e); + return [ + i, + O.name, + O.symbol, + t, + s, + O.fee_recipient, + O.seller_fee_basis_points, + ]; + default: + return []; + } + } + var tK = class { + constructor(e, t) { + ue._defineProperty(this, "featureName", kj.name), + ue._defineProperty(this, "contractWrapper", void 0), + ue._defineProperty(this, "metadata", void 0), + (this.contractWrapper = e), + (this.metadata = t); + } + async get() { + return Ot(this.contractWrapper, "AppURI") + ? await this.contractWrapper.readContract.appURI() + : (await this.metadata.get()).appURI || ""; + } + async set(e) { + return Ot(this.contractWrapper, "AppURI") + ? { + receipt: await this.contractWrapper.sendTransaction( + "setAppURI", + [e] + ), + } + : await this.metadata.update({ appURI: e }); + } + }, + FP = class { + constructor(e) { + ue._defineProperty(this, "contractWrapper", void 0), + (this.contractWrapper = e); + } + addTransactionListener(e) { + this.contractWrapper.addListener(Q.EventType.Transaction, e); + } + removeTransactionListener(e) { + this.contractWrapper.off(Q.EventType.Transaction, e); + } + addEventListener(e, t) { + let n = this.contractWrapper.readContract.interface.getEvent(e), + i = { + address: this.contractWrapper.readContract.address, + topics: [ + this.contractWrapper.readContract.interface.getEventTopic(n), + ], + }, + s = (c) => { + let l = this.contractWrapper.readContract.interface.parseLog(c); + t(this.toContractEvent(l.eventFragment, l.args, c)); + }; + return ( + this.contractWrapper.getProvider().on(i, s), + () => { + this.contractWrapper.getProvider().off(i, s); + } + ); + } + listenToAllEvents(e) { + let n = { address: this.contractWrapper.readContract.address }, + a = (i) => { + try { + let s = this.contractWrapper.readContract.interface.parseLog(i); + e(this.toContractEvent(s.eventFragment, s.args, i)); + } catch (s) { + console.error("Could not parse event:", i, s); + } + }; + return ( + this.contractWrapper.getProvider().on(n, a), + () => { + this.contractWrapper.getProvider().off(n, a); + } + ); + } + removeEventListener(e, t) { + let n = this.contractWrapper.readContract.interface.getEvent(e); + this.contractWrapper.readContract.off(n.name, t); + } + removeAllListeners() { + this.contractWrapper.readContract.removeAllListeners(); + let t = { address: this.contractWrapper.readContract.address }; + this.contractWrapper.getProvider().removeAllListeners(t); + } + async getAllEvents() { + let e = + arguments.length > 0 && arguments[0] !== void 0 + ? arguments[0] + : { fromBlock: 0, toBlock: "latest", order: "desc" }, + n = ( + await this.contractWrapper.readContract.queryFilter( + {}, + e.fromBlock, + e.toBlock + ) + ).sort((a, i) => + e.order === "desc" + ? i.blockNumber - a.blockNumber + : a.blockNumber - i.blockNumber + ); + return this.parseEvents(n); + } + async getEvents(e) { + let t = + arguments.length > 1 && arguments[1] !== void 0 + ? arguments[1] + : { fromBlock: 0, toBlock: "latest", order: "desc" }, + n = this.contractWrapper.readContract.interface.getEvent(e), + a = this.contractWrapper.readContract.interface.getEvent(e), + i = t.filters ? a.inputs.map((d) => t.filters[d.name]) : [], + s = this.contractWrapper.readContract.filters[n.name](...i), + l = ( + await this.contractWrapper.readContract.queryFilter( + s, + t.fromBlock, + t.toBlock + ) + ).sort((d, m) => + t.order === "desc" + ? m.blockNumber - d.blockNumber + : d.blockNumber - m.blockNumber + ); + return this.parseEvents(l); + } + parseEvents(e) { + return e.map((t) => { + let n = Object.fromEntries( + Object.entries(t).filter( + (a) => typeof a[1] != "function" && a[0] !== "args" + ) + ); + if (t.args) { + let a = Object.entries(t.args), + i = a.slice(a.length / 2, a.length), + s = {}; + for (let [c, l] of i) s[c] = l; + return { eventName: t.event || "", data: s, transaction: n }; + } + return { eventName: t.event || "", data: {}, transaction: n }; + }); + } + toContractEvent(e, t, n) { + let a = Object.fromEntries( + Object.entries(n).filter( + (s) => typeof s[1] != "function" && s[0] !== "args" + ) + ), + i = {}; + return ( + e.inputs.forEach((s, c) => { + if (Array.isArray(t[c])) { + let l = s.components; + if (l) { + let d = t[c]; + if (s.type === "tuple[]") { + let m = []; + for (let w = 0; w < d.length; w++) { + let C = d[w], + I = {}; + for (let k = 0; k < l.length; k++) { + let O = l[k].name; + I[O] = C[k]; + } + m.push(I); + } + i[s.name] = m; + } else { + let m = {}; + for (let w = 0; w < l.length; w++) { + let C = l[w].name; + m[C] = d[w]; + } + i[s.name] = m; + } + } + } else i[s.name] = t[c]; + }), + { eventName: e.name, data: i, transaction: a } + ); + } + }, + WP = class { + constructor(e) { + ue._defineProperty(this, "contractWrapper", void 0), + (this.contractWrapper = e); + } + overrideNextTransaction(e) { + this.contractWrapper.withTransactionOverride(e); + } + }, + UP = class { + constructor(e) { + ue._defineProperty(this, "featureName", JM.name), + ue._defineProperty(this, "contractWrapper", void 0), + (this.contractWrapper = e); + } + async get() { + let [e, t] = + await this.contractWrapper.readContract.getPlatformFeeInfo(); + return Vl.parse({ + platform_fee_recipient: e, + platform_fee_basis_points: t, + }); + } + async set(e) { + let t = Vl.parse(e); + return { + receipt: await this.contractWrapper.sendTransaction( + "setPlatformFeeInfo", + [t.platform_fee_recipient, t.platform_fee_basis_points] + ), + }; + } + }, + HP = class { + constructor(e, t) { + ue._defineProperty(this, "contractWrapper", void 0), + ue._defineProperty(this, "storage", void 0), + ue._defineProperty(this, "_cachedMetadata", void 0), + (this.contractWrapper = e), + (this.storage = t); + } + async get() { + return this._cachedMetadata + ? this._cachedMetadata + : ((this._cachedMetadata = await Jg( + this.contractWrapper.readContract.address, + this.contractWrapper.getProvider(), + this.storage + )), + this._cachedMetadata); + } + async extractFunctions() { + let e; + try { + e = await this.get(); + } catch {} + return Nw(Jd.parse(this.contractWrapper.abi), e?.metadata); + } + async extractEvents() { + let e; + try { + e = await this.get(); + } catch {} + return tHe(Jd.parse(this.contractWrapper.abi), e?.metadata); + } + }, + rK = class { + get royalties() { + return gr(this.detectRoyalties(), YM); + } + get roles() { + return gr(this.detectRoles(), ZM); + } + get sales() { + return gr(this.detectPrimarySales(), $M); + } + get platformFees() { + return gr(this.detectPlatformFees(), JM); + } + get owner() { + return gr(this.detectOwnable(), XM); + } + get erc20() { + return gr(this.detectErc20(), iP); + } + get erc721() { + return gr(this.detectErc721(), pP); + } + get erc1155() { + return gr(this.detectErc1155(), gP); + } + get chainId() { + return this._chainId; + } + constructor(e, t, n, a) { + let i = + arguments.length > 4 && arguments[4] !== void 0 + ? arguments[4] + : {}, + s = arguments.length > 5 ? arguments[5] : void 0, + c = + arguments.length > 6 && arguments[6] !== void 0 + ? arguments[6] + : new ls(e, t, n, i); + ue._defineProperty(this, "contractWrapper", void 0), + ue._defineProperty(this, "storage", void 0), + ue._defineProperty(this, "events", void 0), + ue._defineProperty(this, "interceptor", void 0), + ue._defineProperty(this, "encoder", void 0), + ue._defineProperty(this, "estimator", void 0), + ue._defineProperty(this, "publishedMetadata", void 0), + ue._defineProperty(this, "abi", void 0), + ue._defineProperty(this, "metadata", void 0), + ue._defineProperty(this, "appURI", void 0), + ue._defineProperty(this, "_chainId", void 0), + (this._chainId = s), + (this.storage = a), + (this.contractWrapper = c), + (this.abi = n), + (this.events = new FP(this.contractWrapper)), + (this.encoder = new Mw(this.contractWrapper)), + (this.interceptor = new WP(this.contractWrapper)), + (this.estimator = new y3(this.contractWrapper)), + (this.publishedMetadata = new HP( + this.contractWrapper, + this.storage + )), + (this.metadata = new f0(this.contractWrapper, qw, this.storage)), + (this.appURI = new tK(this.contractWrapper, this.metadata)); + } + onNetworkUpdated(e) { + this.contractWrapper.updateSignerOrProvider(e); + } + getAddress() { + return this.contractWrapper.readContract.address; + } + async call(e) { + for ( + var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), a = 1; + a < t; + a++ + ) + n[a - 1] = arguments[a]; + return this.contractWrapper.call(e, ...n); + } + detectRoyalties() { + if (Ot(this.contractWrapper, "Royalty")) { + let e = new f0(this.contractWrapper, qw, this.storage); + return new tP(this.contractWrapper, e); + } + } + detectRoles() { + if (Ot(this.contractWrapper, "Permissions")) + return new eP(this.contractWrapper, EK); + } + detectPrimarySales() { + if (Ot(this.contractWrapper, "PrimarySale")) + return new rP(this.contractWrapper); + } + detectPlatformFees() { + if (Ot(this.contractWrapper, "PlatformFee")) + return new UP(this.contractWrapper); + } + detectErc20() { + if (Ot(this.contractWrapper, "ERC20")) + return new b3(this.contractWrapper, this.storage, this.chainId); + } + detectErc721() { + if (Ot(this.contractWrapper, "ERC721")) + return new v3(this.contractWrapper, this.storage, this.chainId); + } + detectErc1155() { + if (Ot(this.contractWrapper, "ERC1155")) + return new w3(this.contractWrapper, this.storage, this.chainId); + } + detectOwnable() { + if (Ot(this.contractWrapper, "Ownable")) + return new KP(this.contractWrapper); + } + }, + MWe = 256, + oj = "0|[1-9]\\d*", + qcr = `(${oj})\\.(${oj})\\.(${oj})`, + Fcr = new RegExp(qcr); + function Lw(r) { + if (r.length > MWe) + throw new Error(`version is longer than ${MWe} characters`); + let e = r.trim().match(Fcr); + if (!e || e?.length !== 4) + throw new Error( + `${r} is not a valid semantic version. Should be in the format of major.minor.patch. Ex: 0.4.1` + ); + let t = Number(e[1]), + n = Number(e[2]), + a = Number(e[3]), + i = [t, n, a].join("."); + return { major: t, minor: n, patch: a, versionString: i }; + } + function hHe(r, e) { + let t = Lw(r), + n = Lw(e); + if (n.major > t.major) return !0; + let a = n.major === t.major; + if (a && n.minor > t.minor) return !0; + let i = n.minor === t.minor; + return a && i && n.patch > t.patch; + } + function Wcr(r, e) { + let t = Lw(r), + n = Lw(e); + if (n.major < t.major) return !0; + let a = n.major === t.major; + if (a && n.minor < t.minor) return !0; + let i = n.minor === t.minor; + return a && i && n.patch < t.patch; + } + var nK = class extends Yg { + constructor(e, t, n) { + super(e, t), + ue._defineProperty(this, "storage", void 0), + ue._defineProperty(this, "publisher", void 0), + (this.storage = n), + (this.publisher = new ls(e, YWe(), Gsr.default, t)); + } + updateSignerOrProvider(e) { + super.updateSignerOrProvider(e), + this.publisher.updateSignerOrProvider(e); + } + async extractConstructorParams(e) { + return ZUe(e, this.storage); + } + async extractFunctions(e) { + return QUe(e, this.storage); + } + async fetchCompilerMetadataFromPredeployURI(e) { + return Ow(e, this.storage); + } + async fetchPrePublishMetadata(e, t) { + let n = await Ow(e, this.storage), + a = t ? await this.getLatest(t, n.name) : void 0, + i = a ? await this.fetchPublishedContractInfo(a) : void 0; + return { preDeployMetadata: n, latestPublishedContractMetadata: i }; + } + async fetchCompilerMetadataFromAddress(e) { + return Jg(e, this.getProvider(), this.storage); + } + async fetchPublishedContractInfo(e) { + return { + name: e.id, + publishedTimestamp: e.timestamp, + publishedMetadata: await this.fetchFullPublishMetadata( + e.metadataUri + ), + }; + } + async fetchFullPublishMetadata(e) { + return RK(e, this.storage); + } + async resolvePublishMetadataFromCompilerMetadata(e) { + let t = + await this.publisher.readContract.getPublishedUriFromCompilerUri(e); + if (t.length === 0) + throw Error(`Could not resolve published metadata URI from ${e}`); + return await Promise.all( + t + .filter((n) => n.length > 0) + .map((n) => this.fetchFullPublishMetadata(n)) + ); + } + async resolveContractUriFromAddress(e) { + let t = await m3(e, this.getProvider()); + return ( + dr.default(t, "Could not resolve contract URI from address"), t + ); + } + async fetchContractSourcesFromAddress(e) { + let t = await this.fetchCompilerMetadataFromAddress(e); + return await WK(t, this.storage); + } + async updatePublisherProfile(e) { + let t = this.getSigner(); + dr.default(t, "A signer is required"); + let n = await t.getAddress(), + a = await this.storage.upload(e); + return { + receipt: await this.publisher.sendTransaction( + "setPublisherProfileUri", + [n, a] + ), + }; + } + async getPublisherProfile(e) { + let t = await this.publisher.readContract.getPublisherProfileUri(e); + return !t || t.length === 0 + ? {} + : CHe.parse(await this.storage.downloadJSON(t)); + } + async getAll(e) { + let n = ( + await this.publisher.readContract.getAllPublishedContracts(e) + ).reduce((a, i) => ((a[i.contractId] = i), a), {}); + return Object.entries(n).map((a) => { + let [, i] = a; + return this.toPublishedContract(i); + }); + } + async getAllVersions(e, t) { + let n = + await this.publisher.readContract.getPublishedContractVersions( + e, + t + ); + if (n.length === 0) throw Error("Not found"); + return n.map((a) => this.toPublishedContract(a)); + } + async getVersion(e, t) { + let n = + arguments.length > 2 && arguments[2] !== void 0 + ? arguments[2] + : "latest"; + if (n === "latest") return this.getLatest(e, t); + let a = await this.getAllVersions(e, t), + s = ( + await Promise.all( + a.map((c) => this.fetchPublishedContractInfo(c)) + ) + ).find((c) => c.publishedMetadata.version === n); + return ( + dr.default(s, "Contract version not found"), + a.find((c) => c.timestamp === s.publishedTimestamp) + ); + } + async getLatest(e, t) { + let n = await this.publisher.readContract.getPublishedContract(e, t); + if (n && n.publishMetadataUri) return this.toPublishedContract(n); + } + async publish(e, t) { + let n = this.getSigner(); + dr.default(n, "A signer is required"); + let a = await n.getAddress(), + i = await PK(e, this.storage), + s = await this.getLatest(a, i.name); + if (s && s.metadataUri) { + let W = (await this.fetchPublishedContractInfo(s)).publishedMetadata + .version; + if (!hHe(W, t.version)) + throw Error(`Version ${t.version} is not greater than ${W}`); + } + let c = await (await this.storage.download(i.bytecodeUri)).text(), + l = c.startsWith("0x") ? c : `0x${c}`, + d = ie.utils.solidityKeccak256(["bytes"], [l]), + m = i.name, + w = xHe.parse({ + ...t, + metadataUri: i.metadataUri, + bytecodeUri: i.bytecodeUri, + name: i.name, + analytics: i.analytics, + publisher: a, + }), + C = await this.storage.upload(w), + I = await this.publisher.sendTransaction("publishContract", [ + a, + m, + C, + i.metadataUri, + d, + ie.constants.AddressZero, + ]), + k = this.publisher.parseLogs("ContractPublished", I.logs); + if (k.length < 1) throw new Error("No ContractPublished event found"); + let O = k[0].args.publishedContract; + return { receipt: I, data: async () => this.toPublishedContract(O) }; + } + async unpublish(e, t) { + return { + receipt: await this.publisher.sendTransaction("unpublishContract", [ + e, + t, + ]), + }; + } + toPublishedContract(e) { + return IHe.parse({ + id: e.contractId, + timestamp: e.publishTimestamp, + metadataUri: e.publishMetadataUri, + }); + } + }, + aK = class { + constructor(e, t) { + let n = + arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}; + ue._defineProperty(this, "registryLogic", void 0), + ue._defineProperty(this, "registryRouter", void 0), + ue._defineProperty(this, "storage", void 0), + (this.storage = t), + (this.registryLogic = new ls(e, hj(), Ysr.default, n)), + (this.registryRouter = new ls(e, hj(), $sr.default, n)); + } + async updateSigner(e) { + this.registryLogic.updateSignerOrProvider(e), + this.registryRouter.updateSignerOrProvider(e); + } + async getContractMetadataURI(e, t) { + return await this.registryLogic.readContract.getMetadataUri(e, t); + } + async getContractMetadata(e, t) { + let n = await this.getContractMetadataURI(e, t); + if (!n) + throw new Error( + `No metadata URI found for contract ${t} on chain ${e}` + ); + return await this.storage.downloadJSON(n); + } + async getContractAddresses(e) { + return (await this.registryLogic.readContract.getAll(e)) + .filter( + (t) => + ie.utils.isAddress(t.deploymentAddress) && + t.deploymentAddress.toLowerCase() !== ie.constants.AddressZero + ) + .map((t) => ({ + address: t.deploymentAddress, + chainId: t.chainId.toNumber(), + })); + } + async addContract(e) { + return await this.addContracts([e]); + } + async addContracts(e) { + let t = await this.registryRouter.getSignerAddress(), + n = []; + return ( + e.forEach((a) => { + n.push( + this.registryLogic.readContract.interface.encodeFunctionData( + "add", + [t, a.address, a.chainId, a.metadataURI || ""] + ) + ); + }), + { receipt: await this.registryRouter.multiCall(n) } + ); + } + async removeContract(e) { + return await this.removeContracts([e]); + } + async removeContracts(e) { + let t = await this.registryRouter.getSignerAddress(), + n = []; + return ( + e.forEach((a) => { + n.push( + this.registryLogic.readContract.interface.encodeFunctionData( + "remove", + [t, a.address, a.chainId] + ) + ); + }), + { receipt: await this.registryRouter.multiCall(n) } + ); + } + }, + Dw = class { + constructor(e, t) { + ue._defineProperty(this, "connection", void 0), + ue._defineProperty(this, "options", void 0), + ue._defineProperty(this, "events", new uj.default()), + (this.connection = new Yg(e, t)), + (this.options = t), + (this.events = new uj.default()); + } + connect(e) { + this.connection.updateSignerOrProvider(e), + this.events.emit("signerChanged", this.connection.getSigner()); + } + async transfer(e, t) { + let n = + arguments.length > 2 && arguments[2] !== void 0 + ? arguments[2] + : Kl, + a = this.requireWallet(), + i = await Zo(this.connection.getProvider(), t, n); + if (yh(n)) { + let s = await a.getAddress(); + return { + receipt: await ( + await a.sendTransaction({ from: s, to: e, value: i }) + ).wait(), + }; + } else + return { + receipt: await this.createErc20(n).sendTransaction("transfer", [ + e, + i, + ]), + }; + } + async balance() { + let e = + arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : Kl; + this.requireWallet(); + let t = this.connection.getProvider(), + n; + return ( + yh(e) + ? (n = await t.getBalance(await this.getAddress())) + : (n = await this.createErc20(e).readContract.balanceOf( + await this.getAddress() + )), + await Gd(t, e, n) + ); + } + async getAddress() { + return await this.requireWallet().getAddress(); + } + async getChainId() { + return await this.requireWallet().getChainId(); + } + isConnected() { + try { + return this.requireWallet(), !0; + } catch { + return !1; + } + } + async sign(e) { + return await this.requireWallet().signMessage(e); + } + async signTypedData(e, t, n) { + return await HM(this.requireWallet(), e, t, n); + } + recoverAddress(e, t) { + let n = ie.ethers.utils.hashMessage(e), + a = ie.ethers.utils.arrayify(n); + return ie.ethers.utils.recoverAddress(a, t); + } + async sendRawTransaction(e) { + return { + receipt: await ( + await this.requireWallet().sendTransaction(e) + ).wait(), + }; + } + async requestFunds(e) { + let t = await this.getChainId(); + if (t === Q.ChainId.Localhost || t === Q.ChainId.Hardhat) + return new Dw( + new ie.ethers.Wallet(VWe, JP(t, this.options)), + this.options + ).transfer(await this.getAddress(), e); + throw new Error( + `Requesting funds is not supported on chain: '${t}'.` + ); + } + requireWallet() { + let e = this.connection.getSigner(); + return ( + dr.default( + e, + "This action requires a connected wallet. Please pass a valid signer to the SDK." + ), + e + ); + } + createErc20(e) { + return new ls( + this.connection.getSignerOrProvider(), + e, + lu.default, + this.options + ); + } + }, + uh = class extends Yg { + static async fromWallet(e, t) { + let n = + arguments.length > 2 && arguments[2] !== void 0 + ? arguments[2] + : {}, + a = + arguments.length > 3 && arguments[3] !== void 0 + ? arguments[3] + : new Q5.ThirdwebStorage(), + i = await e.getSigner(); + return uh.fromSigner(i, t, n, a); + } + static fromSigner(e, t) { + let n = + arguments.length > 2 && arguments[2] !== void 0 + ? arguments[2] + : {}, + a = + arguments.length > 3 && arguments[3] !== void 0 + ? arguments[3] + : new Q5.ThirdwebStorage(), + i = new uh(t || e, n, a); + return i.updateSignerOrProvider(e), i; + } + static fromPrivateKey(e, t) { + let n = + arguments.length > 2 && arguments[2] !== void 0 + ? arguments[2] + : {}, + a = + arguments.length > 3 && arguments[3] !== void 0 + ? arguments[3] + : new Q5.ThirdwebStorage(), + i = JP(t, n), + s = new ie.ethers.Wallet(e, i); + return uh.fromSigner(s, t, n, a); + } + constructor(e) { + let t = + arguments.length > 1 && arguments[1] !== void 0 + ? arguments[1] + : {}, + n = + arguments.length > 2 && arguments[2] !== void 0 + ? arguments[2] + : new Q5.ThirdwebStorage(); + typeof e != "string" && + typeof e != "number" && + !ie.ethers.Signer.isSigner(e) && + !ie.ethers.providers.Provider.isProvider(e) && + ((t = { ...t, supportedChains: [e, ...(t.supportedChains || [])] }), + (e = e.chainId)), + super(e, t), + ue._defineProperty(this, "contractCache", new Map()), + ue._defineProperty(this, "_publisher", void 0), + ue._defineProperty(this, "storageHandler", void 0), + ue._defineProperty(this, "deployer", void 0), + ue._defineProperty(this, "multiChainRegistry", void 0), + ue._defineProperty(this, "wallet", void 0), + ue._defineProperty(this, "storage", void 0), + (this.storageHandler = n), + (this.storage = n), + (this.wallet = new Dw(e, t)), + (this.deployer = new jP(e, t, n)), + (this.multiChainRegistry = new aK( + e, + this.storageHandler, + this.options + )), + (this._publisher = new nK(e, this.options, this.storageHandler)); + } + get auth() { + throw new Error(`The sdk.auth namespace has been moved to the @thirdweb-dev/auth package and is no longer available after @thirdweb-dev/sdk >= 3.7.0. Please visit https://portal.thirdweb.com/auth for instructions on how to switch to using the new auth package (@thirdweb-dev/auth@3.0.0). - If you still want to use the old @thirdweb-dev/auth@2.0.0 package, you can downgrade the SDK to version 3.6.0.`)}async getNFTDrop(e){return await this.getContract(e,"nft-drop")}async getSignatureDrop(e){return await this.getContract(e,"signature-drop")}async getNFTCollection(e){return await this.getContract(e,"nft-collection")}async getEditionDrop(e){return await this.getContract(e,"edition-drop")}async getEdition(e){return await this.getContract(e,"edition")}async getTokenDrop(e){return await this.getContract(e,"token-drop")}async getToken(e){return await this.getContract(e,"token")}async getVote(e){return await this.getContract(e,"vote")}async getSplit(e){return await this.getContract(e,"split")}async getMarketplace(e){return await this.getContract(e,"marketplace")}async getMarketplaceV3(e){return await this.getContract(e,"marketplace-v3")}async getPack(e){return await this.getContract(e,"pack")}async getMultiwrap(e){return await this.getContract(e,"multiwrap")}async getContract(e,t){if(this.contractCache.has(e))return this.contractCache.get(e);let n;if(!t||t==="custom"){let a=await this.resolveContractType(e);if(a==="custom")try{let i=await this.getPublisher().fetchCompilerMetadataFromAddress(e);n=await this.getContractFromAbi(e,i.abi)}catch{let s=(await this.getProvider().getNetwork()).chainId;throw new Error(`No ABI found for this contract. Try importing it by visiting: https://thirdweb.com/${s}/${e}`)}else{let i=await Mv[a].getAbi(e,this.getProvider(),this.storage);n=await this.getContractFromAbi(e,i)}}else typeof t=="string"&&t in Mv?n=await Mv[t].initialize(this.getSignerOrProvider(),e,this.storage,this.options):n=await this.getContractFromAbi(e,t);return this.contractCache.set(e,n),n}async getBuiltInContract(e,t){return await this.getContract(e,t)}async resolveContractType(e){try{let t=new se.Contract(e,WWe.default,this.getProvider()),n=se.ethers.utils.toUtf8String(await t.contractType()).replace(/\x00/g,"");return lze(n)}catch{return"custom"}}async getContractList(e){let t=await(await this.deployer.getRegistry())?.getContractAddresses(e)||[],n=(await this.getProvider().getNetwork()).chainId;return await Promise.all(t.map(async a=>({address:a,chainId:n,contractType:()=>this.resolveContractType(a),metadata:async()=>(await this.getContract(a)).metadata.get()})))}async getMultichainContractList(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:xG.defaultChains,n=await this.multiChainRegistry.getContractAddresses(e),a=t.reduce((s,c)=>(s[c.chainId]=c,s),{}),i={};return n.map(s=>{let{address:c,chainId:l}=s;if(!a[l])return{address:c,chainId:l,contractType:async()=>"custom",metadata:async()=>({})};try{let d=i[l];return d||(d=new Ih(l,{...this.options,readonlySettings:void 0,supportedChains:t}),i[l]=d),{address:c,chainId:l,contractType:()=>d.resolveContractType(c),metadata:async()=>(await d.getContract(c)).metadata.get()}}catch{return{address:c,chainId:l,contractType:async()=>"custom",metadata:async()=>({})}}})}updateSignerOrProvider(e){super.updateSignerOrProvider(e),this.updateContractSignerOrProvider()}updateContractSignerOrProvider(){this.wallet.connect(this.getSignerOrProvider()),this.deployer.updateSignerOrProvider(this.getSignerOrProvider()),this._publisher.updateSignerOrProvider(this.getSignerOrProvider()),this.multiChainRegistry.updateSigner(this.getSignerOrProvider());for(let[,e]of this.contractCache)e.onNetworkUpdated(this.getSignerOrProvider())}async getContractFromAbi(e,t){if(this.contractCache.has(e))return this.contractCache.get(e);let[,n]=uc(this.getSignerOrProvider(),this.options),a=typeof t=="string"?JSON.parse(t):t,i=new fG(this.getSignerOrProvider(),e,await pG(e,vp.parse(a),n,this.options,this.storage),this.storageHandler,this.options,(await n.getNetwork()).chainId);return this.contractCache.set(e,i),i}async getBalance(e){return mp(this.getProvider(),hd,await this.getProvider().getBalance(e))}getPublisher(){return this._publisher}},XP=class extends xs{constructor(e,t,n,a){super(t,e,scr.default,a),ue._defineProperty(this,"storage",void 0),ue._defineProperty(this,"DEFAULT_VERSION_MAP",{[Rh.contractType]:3,[J0.contractType]:1,[Nh.contractType]:4,[gp.contractType]:1,[Ph.contractType]:2,[Z0.contractType]:1,[K0.contractType]:2,[Lh.contractType]:1,[Bh.contractType]:1,[Oh.contractType]:1,[yp.contractType]:2,[rm.contractType]:1,[ul.contractType]:2}),this.storage=n}async deploy(e,t,n,a){let i=Mv[e],s=i.schema.deploy.parse(t),c=await this.storage.upload(s),l=await this.getImplementation(i,a);if(!l||l===se.constants.AddressZero)throw new Error(`No implementation found for ${e}`);let d=await i.getAbi(l,this.getProvider(),this.storage),f=this.getSigner();mr.default(f,"A signer is required to deploy contracts");let w=await dze(e,s,c,f),E=se.Contract.getInterface(d).encodeFunctionData("initialize",w),k=await this.getProvider().getBlockNumber(),A=se.ethers.utils.formatBytes32String(k.toString()),L=await this.sendTransaction("deployProxyByImplementation",[l,E,A]),q=this.parseLogs("ProxyDeployed",L.logs);if(q.length<1)throw new Error("No ProxyDeployed event found");let U=q[0].args.proxy;return n.emit("contractDeployed",{status:"completed",contractAddress:U,transactionHash:L.transactionHash}),U}async deployProxyByImplementation(e,t,n,a,i){let s=se.Contract.getInterface(t).encodeFunctionData(n,a),c=await this.getProvider().getBlockNumber(),l=await this.sendTransaction("deployProxyByImplementation",[e,s,se.ethers.utils.formatBytes32String(c.toString())]),d=this.parseLogs("ProxyDeployed",l.logs);if(d.length<1)throw new Error("No ProxyDeployed event found");let f=d[0].args.proxy;return i.emit("contractDeployed",{status:"completed",contractAddress:f,transactionHash:l.transactionHash}),f}async getDeployArguments(e,t,n){let a=e===ul.contractType?[]:await this.getDefaultTrustedForwarders();switch(t.trusted_forwarders&&t.trusted_forwarders.length>0&&(a=t.trusted_forwarders),e){case Rh.contractType:case J0.contractType:let i=Rh.schema.deploy.parse(t);return[await this.getSignerAddress(),i.name,i.symbol,n,a,i.primary_sale_recipient,i.fee_recipient,i.seller_fee_basis_points,i.platform_fee_basis_points,i.platform_fee_recipient];case Nh.contractType:let s=Nh.schema.deploy.parse(t);return[await this.getSignerAddress(),s.name,s.symbol,n,a,s.primary_sale_recipient,s.fee_recipient,s.seller_fee_basis_points,s.platform_fee_basis_points,s.platform_fee_recipient];case gp.contractType:let c=gp.schema.deploy.parse(t);return[await this.getSignerAddress(),c.name,c.symbol,n,a,c.fee_recipient,c.seller_fee_basis_points];case Ph.contractType:case Z0.contractType:let l=Ph.schema.deploy.parse(t);return[await this.getSignerAddress(),l.name,l.symbol,n,a,l.primary_sale_recipient,l.fee_recipient,l.seller_fee_basis_points,l.platform_fee_basis_points,l.platform_fee_recipient];case K0.contractType:case Lh.contractType:let d=Lh.schema.deploy.parse(t);return[await this.getSignerAddress(),d.name,d.symbol,n,a,d.primary_sale_recipient,d.platform_fee_recipient,d.platform_fee_basis_points];case Bh.contractType:let f=Bh.schema.deploy.parse(t);return[f.name,n,a,f.voting_token_address,f.voting_delay_in_blocks,f.voting_period_in_blocks,se.BigNumber.from(f.proposal_token_threshold),f.voting_quorum_fraction];case Oh.contractType:let w=Oh.schema.deploy.parse(t);return[await this.getSignerAddress(),n,a,w.recipients.map(L=>L.address),w.recipients.map(L=>se.BigNumber.from(L.sharesBps))];case yp.contractType:let E=yp.schema.deploy.parse(t);return[await this.getSignerAddress(),n,a,E.platform_fee_recipient,E.platform_fee_basis_points];case rm.contractType:let k=rm.schema.deploy.parse(t);return[await this.getSignerAddress(),n,a,k.platform_fee_recipient,k.platform_fee_basis_points];case ul.contractType:let A=ul.schema.deploy.parse(t);return[await this.getSignerAddress(),A.name,A.symbol,n,a,A.fee_recipient,A.seller_fee_basis_points];default:return[]}}async getDefaultTrustedForwarders(){let e=await this.getChainID();return _G(e)}async getImplementation(e,t){let n=se.ethers.utils.formatBytes32String(e.name),a=await this.getChainID(),i=GWe(a,e.contractType);return i&&i.length>0&&t===void 0?i:this.readContract.getImplementation(n,t!==void 0?t:this.DEFAULT_VERSION_MAP[e.contractType])}async getLatestVersion(e){let t=XG(e);if(!t)throw new Error(`Invalid contract type ${e}`);let n=se.ethers.utils.formatBytes32String(t);return this.readContract.currentVersion(n)}},gG=class extends xs{constructor(e,t,n){super(t,e,ocr.default,n)}async getContractAddresses(e){return(await this.readContract.getAll(e)).filter(t=>se.utils.isAddress(t)&&t.toLowerCase()!==se.constants.AddressZero)}async addContract(e){return await this.addContracts([e])}async addContracts(e){let t=await this.getSignerAddress(),n=[];return e.forEach(a=>{n.push(this.readContract.interface.encodeFunctionData("add",[t,a]))}),{receipt:await this.multiCall(n)}}async removeContract(e){return await this.removeContracts([e])}async removeContracts(e){let t=await this.getSignerAddress(),n=[];return e.forEach(a=>{n.push(this.readContract.interface.encodeFunctionData("remove",[t,a]))}),{receipt:await this.multiCall(n)}}},tlr="0xdd99b75f095d0c4d5112aCe938e4e6ed962fb024",YP=class extends Iv{constructor(e,t,n){super(e,t),ue._defineProperty(this,"_factory",void 0),ue._defineProperty(this,"_registry",void 0),ue._defineProperty(this,"storage",void 0),ue._defineProperty(this,"events",void 0),ue._defineProperty(this,"deployMetadataCache",{}),ue._defineProperty(this,"transactionListener",a=>{a.status==="submitted"&&this.events.emit("contractDeployed",{status:"submitted",transactionHash:a.transactionHash})}),this.storage=n,this.events=new RWe.EventEmitter,this.getFactory(),this.getRegistry()}async deployNFTCollection(e){return await this.deployBuiltInContract(J0.contractType,e)}async deployNFTDrop(e){return await this.deployBuiltInContract(Rh.contractType,e)}async deploySignatureDrop(e){return await this.deployBuiltInContract(Nh.contractType,e)}async deployMultiwrap(e){return await this.deployBuiltInContract(gp.contractType,e)}async deployEdition(e){return await this.deployBuiltInContract(Z0.contractType,e)}async deployEditionDrop(e){return await this.deployBuiltInContract(Ph.contractType,e)}async deployToken(e){return await this.deployBuiltInContract(Lh.contractType,e)}async deployTokenDrop(e){return await this.deployBuiltInContract(K0.contractType,e)}async deployMarketplace(e){return await this.deployBuiltInContract(yp.contractType,e)}async deployMarketplaceV3(e){return await this.deployBuiltInContract(rm.contractType,e)}async deployPack(e){return await this.deployBuiltInContract(ul.contractType,e)}async deploySplit(e){return await this.deployBuiltInContract(Oh.contractType,e)}async deployVote(e){return await this.deployBuiltInContract(Bh.contractType,e)}async deployBuiltInContract(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"latest",a=this.getSigner();mr.default(a,"A signer is required to deploy contracts");let i=Mv[e].schema.deploy.parse(t);if(this.hasLocalFactory()){let k;try{k=parseInt(n),isNaN(k)&&(k=void 0)}catch{k=void 0}let A=await this.getFactory();if(!A)throw new Error("Factory not found");A.on(Y.EventType.Transaction,this.transactionListener);let L=await A.deploy(e,i,this.events,k);return A.off(Y.EventType.Transaction,this.transactionListener),L}let s=XG(e);mr.default(s,"Contract name not found");let c=await this.storage.upload(i),l=await dze(e,i,c,a),d=(await this.getProvider().getNetwork()).chainId,f=await this.fetchReleaseFromPolygon(tlr,s,n),w=await this.fetchAndCacheDeployMetadata(f.metadataUri),E=w.extendedMetadata?.factoryDeploymentData?.implementationAddresses?.[d];return E?this.deployContractFromUri(f.metadataUri,l):(E=await this.deployContractFromUri(f.metadataUri,this.getConstructorParamsForImplementation(e,d),{forceDirectDeploy:!0}),this.deployProxy(E,w.compilerMetadata.abi,"initialize",l))}async getLatestBuiltInContractVersion(e){let t=await this.getFactory();if(!t)throw new Error("Factory not found");return await t.getLatestVersion(e)}async deployReleasedContract(e,t,n){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"latest",i=arguments.length>4?arguments[4]:void 0,s=await this.fetchReleaseFromPolygon(e,t,a);return await this.deployContractFromUri(s.metadataUri,n,i)}async deployViaFactory(e,t,n,a,i){let s=this.getSigner();mr.default(s,"signer is required");let c=new XP(e,this.getSignerOrProvider(),this.storage,this.options);c.on(Y.EventType.Transaction,this.transactionListener);let l=await c.deployProxyByImplementation(t,n,a,i,this.events);return c.off(Y.EventType.Transaction,this.transactionListener),l}async deployProxy(e,t,n,a){let i=se.Contract.getInterface(t).encodeFunctionData(n,a),{TWProxy__factory:s}=await Promise.resolve().then(function(){return Js(mV())});return this.deployContractWithAbi(s.abi,s.bytecode,[e,i])}async getRegistry(){return this._registry?this._registry:this._registry=this.getProvider().getNetwork().then(async e=>{let{chainId:t}=e,n=U9(t,"twRegistry");if(!!n)return new gG(n,this.getSignerOrProvider(),this.options)})}async getFactory(){return this._factory?this._factory:this._factory=this.getProvider().getNetwork().then(async e=>{let{chainId:t}=e,n=U9(t,"twFactory");return n?new XP(n,this.getSignerOrProvider(),this.storage,this.options):void 0})}updateSignerOrProvider(e){super.updateSignerOrProvider(e),this.updateContractSignerOrProvider()}updateContractSignerOrProvider(){this._factory?.then(e=>{e?.updateSignerOrProvider(this.getSignerOrProvider())}).catch(()=>{}),this._registry?.then(e=>{e?.updateSignerOrProvider(this.getSignerOrProvider())}).catch(()=>{})}async deployContractFromUri(e,t,n){let a=this.getSigner();mr.default(a,"A signer is required");let{compilerMetadata:i,extendedMetadata:s}=await this.fetchAndCacheDeployMetadata(e),c=n?.forceDirectDeploy||!1;if(s&&s.factoryDeploymentData&&(s.isDeployableViaProxy||s.isDeployableViaFactory)&&!c){let w=(await this.getProvider().getNetwork()).chainId;mr.default(s.factoryDeploymentData.implementationAddresses,"implementationAddresses is required");let E=s.factoryDeploymentData.implementationAddresses[w];mr.default(E,`implementationAddress not found for chainId '${w}'`),mr.default(s.factoryDeploymentData.implementationInitializerFunction,"implementationInitializerFunction not set'");let k=$je(i.abi,s.factoryDeploymentData.implementationInitializerFunction).map(L=>L.type),A=this.convertParamValues(k,t);if(s.isDeployableViaFactory){mr.default(s.factoryDeploymentData.factoryAddresses,"isDeployableViaFactory is true so factoryAddresses is required");let L=s.factoryDeploymentData.factoryAddresses[w];return mr.default(L,`isDeployableViaFactory is true and factoryAddress not found for chainId '${w}'`),await this.deployViaFactory(L,E,i.abi,s.factoryDeploymentData.implementationInitializerFunction,A)}else if(s.isDeployableViaProxy)return await this.deployProxy(E,i.abi,s.factoryDeploymentData.implementationInitializerFunction,A)}let l=i.bytecode.startsWith("0x")?i.bytecode:`0x${i.bytecode}`;if(!se.ethers.utils.isHexString(l))throw new Error(`Contract bytecode is invalid. + If you still want to use the old @thirdweb-dev/auth@2.0.0 package, you can downgrade the SDK to version 3.6.0.`); + } + async getNFTDrop(e) { + return await this.getContract(e, "nft-drop"); + } + async getSignatureDrop(e) { + return await this.getContract(e, "signature-drop"); + } + async getNFTCollection(e) { + return await this.getContract(e, "nft-collection"); + } + async getEditionDrop(e) { + return await this.getContract(e, "edition-drop"); + } + async getEdition(e) { + return await this.getContract(e, "edition"); + } + async getTokenDrop(e) { + return await this.getContract(e, "token-drop"); + } + async getToken(e) { + return await this.getContract(e, "token"); + } + async getVote(e) { + return await this.getContract(e, "vote"); + } + async getSplit(e) { + return await this.getContract(e, "split"); + } + async getMarketplace(e) { + return await this.getContract(e, "marketplace"); + } + async getMarketplaceV3(e) { + return await this.getContract(e, "marketplace-v3"); + } + async getPack(e) { + return await this.getContract(e, "pack"); + } + async getMultiwrap(e) { + return await this.getContract(e, "multiwrap"); + } + async getContract(e, t) { + if (this.contractCache.has(e)) return this.contractCache.get(e); + let n; + if (!t || t === "custom") { + let a = await this.resolveContractType(e); + if (a === "custom") + try { + let i = + await this.getPublisher().fetchCompilerMetadataFromAddress(e); + n = await this.getContractFromAbi(e, i.abi); + } catch { + let s = (await this.getProvider().getNetwork()).chainId; + throw new Error( + `No ABI found for this contract. Try importing it by visiting: https://thirdweb.com/${s}/${e}` + ); + } + else { + let i = await Gg[a].getAbi(e, this.getProvider(), this.storage); + n = await this.getContractFromAbi(e, i); + } + } else + typeof t == "string" && t in Gg + ? (n = await Gg[t].initialize( + this.getSignerOrProvider(), + e, + this.storage, + this.options + )) + : (n = await this.getContractFromAbi(e, t)); + return this.contractCache.set(e, n), n; + } + async getBuiltInContract(e, t) { + return await this.getContract(e, t); + } + async resolveContractType(e) { + try { + let t = new ie.Contract(e, HWe.default, this.getProvider()), + n = ie.ethers.utils + .toUtf8String(await t.contractType()) + .replace(/\x00/g, ""); + return dHe(n); + } catch { + return "custom"; + } + } + async getContractList(e) { + let t = + (await ( + await this.deployer.getRegistry() + )?.getContractAddresses(e)) || [], + n = (await this.getProvider().getNetwork()).chainId; + return await Promise.all( + t.map(async (a) => ({ + address: a, + chainId: n, + contractType: () => this.resolveContractType(a), + metadata: async () => (await this.getContract(a)).metadata.get(), + })) + ); + } + async getMultichainContractList(e) { + let t = + arguments.length > 1 && arguments[1] !== void 0 + ? arguments[1] + : uK.defaultChains, + n = await this.multiChainRegistry.getContractAddresses(e), + a = t.reduce((s, c) => ((s[c.chainId] = c), s), {}), + i = {}; + return n.map((s) => { + let { address: c, chainId: l } = s; + if (!a[l]) + return { + address: c, + chainId: l, + contractType: async () => "custom", + metadata: async () => ({}), + }; + try { + let d = i[l]; + return ( + d || + ((d = new uh(l, { + ...this.options, + readonlySettings: void 0, + supportedChains: t, + })), + (i[l] = d)), + { + address: c, + chainId: l, + contractType: () => d.resolveContractType(c), + metadata: async () => (await d.getContract(c)).metadata.get(), + } + ); + } catch { + return { + address: c, + chainId: l, + contractType: async () => "custom", + metadata: async () => ({}), + }; + } + }); + } + updateSignerOrProvider(e) { + super.updateSignerOrProvider(e), + this.updateContractSignerOrProvider(); + } + updateContractSignerOrProvider() { + this.wallet.connect(this.getSignerOrProvider()), + this.deployer.updateSignerOrProvider(this.getSignerOrProvider()), + this._publisher.updateSignerOrProvider(this.getSignerOrProvider()), + this.multiChainRegistry.updateSigner(this.getSignerOrProvider()); + for (let [, e] of this.contractCache) + e.onNetworkUpdated(this.getSignerOrProvider()); + } + async getContractFromAbi(e, t) { + if (this.contractCache.has(e)) return this.contractCache.get(e); + let [, n] = Qo(this.getSignerOrProvider(), this.options), + a = typeof t == "string" ? JSON.parse(t) : t, + i = new rK( + this.getSignerOrProvider(), + e, + await eK(e, Jd.parse(a), n, this.options, this.storage), + this.storageHandler, + this.options, + (await n.getNetwork()).chainId + ); + return this.contractCache.set(e, i), i; + } + async getBalance(e) { + return Gd( + this.getProvider(), + Kl, + await this.getProvider().getBalance(e) + ); + } + getPublisher() { + return this._publisher; + } + }, + zP = class extends ls { + constructor(e, t, n, a) { + super(t, e, Ksr.default, a), + ue._defineProperty(this, "storage", void 0), + ue._defineProperty(this, "DEFAULT_VERSION_MAP", { + [dh.contractType]: 3, + [y0.contractType]: 1, + [ph.contractType]: 4, + [$d.contractType]: 1, + [lh.contractType]: 2, + [m0.contractType]: 1, + [g0.contractType]: 2, + [fh.contractType]: 1, + [mh.contractType]: 1, + [hh.contractType]: 1, + [Yd.contractType]: 2, + [Pf.contractType]: 1, + [Gu.contractType]: 2, + }), + (this.storage = n); + } + async deploy(e, t, n, a) { + let i = Gg[e], + s = i.schema.deploy.parse(t), + c = await this.storage.upload(s), + l = await this.getImplementation(i, a); + if (!l || l === ie.constants.AddressZero) + throw new Error(`No implementation found for ${e}`); + let d = await i.getAbi(l, this.getProvider(), this.storage), + m = this.getSigner(); + dr.default(m, "A signer is required to deploy contracts"); + let w = await pHe(e, s, c, m), + C = ie.Contract.getInterface(d).encodeFunctionData("initialize", w), + I = await this.getProvider().getBlockNumber(), + k = ie.ethers.utils.formatBytes32String(I.toString()), + O = await this.sendTransaction("deployProxyByImplementation", [ + l, + C, + k, + ]), + D = this.parseLogs("ProxyDeployed", O.logs); + if (D.length < 1) throw new Error("No ProxyDeployed event found"); + let W = D[0].args.proxy; + return ( + n.emit("contractDeployed", { + status: "completed", + contractAddress: W, + transactionHash: O.transactionHash, + }), + W + ); + } + async deployProxyByImplementation(e, t, n, a, i) { + let s = ie.Contract.getInterface(t).encodeFunctionData(n, a), + c = await this.getProvider().getBlockNumber(), + l = await this.sendTransaction("deployProxyByImplementation", [ + e, + s, + ie.ethers.utils.formatBytes32String(c.toString()), + ]), + d = this.parseLogs("ProxyDeployed", l.logs); + if (d.length < 1) throw new Error("No ProxyDeployed event found"); + let m = d[0].args.proxy; + return ( + i.emit("contractDeployed", { + status: "completed", + contractAddress: m, + transactionHash: l.transactionHash, + }), + m + ); + } + async getDeployArguments(e, t, n) { + let a = + e === Gu.contractType + ? [] + : await this.getDefaultTrustedForwarders(); + switch ( + (t.trusted_forwarders && + t.trusted_forwarders.length > 0 && + (a = t.trusted_forwarders), + e) + ) { + case dh.contractType: + case y0.contractType: + let i = dh.schema.deploy.parse(t); + return [ + await this.getSignerAddress(), + i.name, + i.symbol, + n, + a, + i.primary_sale_recipient, + i.fee_recipient, + i.seller_fee_basis_points, + i.platform_fee_basis_points, + i.platform_fee_recipient, + ]; + case ph.contractType: + let s = ph.schema.deploy.parse(t); + return [ + await this.getSignerAddress(), + s.name, + s.symbol, + n, + a, + s.primary_sale_recipient, + s.fee_recipient, + s.seller_fee_basis_points, + s.platform_fee_basis_points, + s.platform_fee_recipient, + ]; + case $d.contractType: + let c = $d.schema.deploy.parse(t); + return [ + await this.getSignerAddress(), + c.name, + c.symbol, + n, + a, + c.fee_recipient, + c.seller_fee_basis_points, + ]; + case lh.contractType: + case m0.contractType: + let l = lh.schema.deploy.parse(t); + return [ + await this.getSignerAddress(), + l.name, + l.symbol, + n, + a, + l.primary_sale_recipient, + l.fee_recipient, + l.seller_fee_basis_points, + l.platform_fee_basis_points, + l.platform_fee_recipient, + ]; + case g0.contractType: + case fh.contractType: + let d = fh.schema.deploy.parse(t); + return [ + await this.getSignerAddress(), + d.name, + d.symbol, + n, + a, + d.primary_sale_recipient, + d.platform_fee_recipient, + d.platform_fee_basis_points, + ]; + case mh.contractType: + let m = mh.schema.deploy.parse(t); + return [ + m.name, + n, + a, + m.voting_token_address, + m.voting_delay_in_blocks, + m.voting_period_in_blocks, + ie.BigNumber.from(m.proposal_token_threshold), + m.voting_quorum_fraction, + ]; + case hh.contractType: + let w = hh.schema.deploy.parse(t); + return [ + await this.getSignerAddress(), + n, + a, + w.recipients.map((O) => O.address), + w.recipients.map((O) => ie.BigNumber.from(O.sharesBps)), + ]; + case Yd.contractType: + let C = Yd.schema.deploy.parse(t); + return [ + await this.getSignerAddress(), + n, + a, + C.platform_fee_recipient, + C.platform_fee_basis_points, + ]; + case Pf.contractType: + let I = Pf.schema.deploy.parse(t); + return [ + await this.getSignerAddress(), + n, + a, + I.platform_fee_recipient, + I.platform_fee_basis_points, + ]; + case Gu.contractType: + let k = Gu.schema.deploy.parse(t); + return [ + await this.getSignerAddress(), + k.name, + k.symbol, + n, + a, + k.fee_recipient, + k.seller_fee_basis_points, + ]; + default: + return []; + } + } + async getDefaultTrustedForwarders() { + let e = await this.getChainID(); + return dK(e); + } + async getImplementation(e, t) { + let n = ie.ethers.utils.formatBytes32String(e.name), + a = await this.getChainID(), + i = GWe(a, e.contractType); + return i && i.length > 0 && t === void 0 + ? i + : this.readContract.getImplementation( + n, + t !== void 0 ? t : this.DEFAULT_VERSION_MAP[e.contractType] + ); + } + async getLatestVersion(e) { + let t = FK(e); + if (!t) throw new Error(`Invalid contract type ${e}`); + let n = ie.ethers.utils.formatBytes32String(t); + return this.readContract.currentVersion(n); + } + }, + iK = class extends ls { + constructor(e, t, n) { + super(t, e, Vsr.default, n); + } + async getContractAddresses(e) { + return (await this.readContract.getAll(e)).filter( + (t) => + ie.utils.isAddress(t) && + t.toLowerCase() !== ie.constants.AddressZero + ); + } + async addContract(e) { + return await this.addContracts([e]); + } + async addContracts(e) { + let t = await this.getSignerAddress(), + n = []; + return ( + e.forEach((a) => { + n.push( + this.readContract.interface.encodeFunctionData("add", [t, a]) + ); + }), + { receipt: await this.multiCall(n) } + ); + } + async removeContract(e) { + return await this.removeContracts([e]); + } + async removeContracts(e) { + let t = await this.getSignerAddress(), + n = []; + return ( + e.forEach((a) => { + n.push( + this.readContract.interface.encodeFunctionData("remove", [t, a]) + ); + }), + { receipt: await this.multiCall(n) } + ); + } + }, + Ucr = "0xdd99b75f095d0c4d5112aCe938e4e6ed962fb024", + jP = class extends Yg { + constructor(e, t, n) { + super(e, t), + ue._defineProperty(this, "_factory", void 0), + ue._defineProperty(this, "_registry", void 0), + ue._defineProperty(this, "storage", void 0), + ue._defineProperty(this, "events", void 0), + ue._defineProperty(this, "deployMetadataCache", {}), + ue._defineProperty(this, "transactionListener", (a) => { + a.status === "submitted" && + this.events.emit("contractDeployed", { + status: "submitted", + transactionHash: a.transactionHash, + }); + }), + (this.storage = n), + (this.events = new BWe.EventEmitter()), + this.getFactory(), + this.getRegistry(); + } + async deployNFTCollection(e) { + return await this.deployBuiltInContract(y0.contractType, e); + } + async deployNFTDrop(e) { + return await this.deployBuiltInContract(dh.contractType, e); + } + async deploySignatureDrop(e) { + return await this.deployBuiltInContract(ph.contractType, e); + } + async deployMultiwrap(e) { + return await this.deployBuiltInContract($d.contractType, e); + } + async deployEdition(e) { + return await this.deployBuiltInContract(m0.contractType, e); + } + async deployEditionDrop(e) { + return await this.deployBuiltInContract(lh.contractType, e); + } + async deployToken(e) { + return await this.deployBuiltInContract(fh.contractType, e); + } + async deployTokenDrop(e) { + return await this.deployBuiltInContract(g0.contractType, e); + } + async deployMarketplace(e) { + return await this.deployBuiltInContract(Yd.contractType, e); + } + async deployMarketplaceV3(e) { + return await this.deployBuiltInContract(Pf.contractType, e); + } + async deployPack(e) { + return await this.deployBuiltInContract(Gu.contractType, e); + } + async deploySplit(e) { + return await this.deployBuiltInContract(hh.contractType, e); + } + async deployVote(e) { + return await this.deployBuiltInContract(mh.contractType, e); + } + async deployBuiltInContract(e, t) { + let n = + arguments.length > 2 && arguments[2] !== void 0 + ? arguments[2] + : "latest", + a = this.getSigner(); + dr.default(a, "A signer is required to deploy contracts"); + let i = Gg[e].schema.deploy.parse(t); + if (this.hasLocalFactory()) { + let I; + try { + (I = parseInt(n)), isNaN(I) && (I = void 0); + } catch { + I = void 0; + } + let k = await this.getFactory(); + if (!k) throw new Error("Factory not found"); + k.on(Q.EventType.Transaction, this.transactionListener); + let O = await k.deploy(e, i, this.events, I); + return k.off(Q.EventType.Transaction, this.transactionListener), O; + } + let s = FK(e); + dr.default(s, "Contract name not found"); + let c = await this.storage.upload(i), + l = await pHe(e, i, c, a), + d = (await this.getProvider().getNetwork()).chainId, + m = await this.fetchReleaseFromPolygon(Ucr, s, n), + w = await this.fetchAndCacheDeployMetadata(m.metadataUri), + C = + w.extendedMetadata?.factoryDeploymentData + ?.implementationAddresses?.[d]; + return C + ? this.deployContractFromUri(m.metadataUri, l) + : ((C = await this.deployContractFromUri( + m.metadataUri, + this.getConstructorParamsForImplementation(e, d), + { forceDirectDeploy: !0 } + )), + this.deployProxy(C, w.compilerMetadata.abi, "initialize", l)); + } + async getLatestBuiltInContractVersion(e) { + let t = await this.getFactory(); + if (!t) throw new Error("Factory not found"); + return await t.getLatestVersion(e); + } + async deployReleasedContract(e, t, n) { + let a = + arguments.length > 3 && arguments[3] !== void 0 + ? arguments[3] + : "latest", + i = arguments.length > 4 ? arguments[4] : void 0, + s = await this.fetchReleaseFromPolygon(e, t, a); + return await this.deployContractFromUri(s.metadataUri, n, i); + } + async deployViaFactory(e, t, n, a, i) { + let s = this.getSigner(); + dr.default(s, "signer is required"); + let c = new zP( + e, + this.getSignerOrProvider(), + this.storage, + this.options + ); + c.on(Q.EventType.Transaction, this.transactionListener); + let l = await c.deployProxyByImplementation(t, n, a, i, this.events); + return c.off(Q.EventType.Transaction, this.transactionListener), l; + } + async deployProxy(e, t, n, a) { + let i = ie.Contract.getInterface(t).encodeFunctionData(n, a), + { TWProxy__factory: s } = await Promise.resolve().then(function () { + return Ds(nj()); + }); + return this.deployContractWithAbi(s.abi, s.bytecode, [e, i]); + } + async getRegistry() { + return this._registry + ? this._registry + : (this._registry = this.getProvider() + .getNetwork() + .then(async (e) => { + let { chainId: t } = e, + n = RM(t, "twRegistry"); + if (!!n) + return new iK(n, this.getSignerOrProvider(), this.options); + })); + } + async getFactory() { + return this._factory + ? this._factory + : (this._factory = this.getProvider() + .getNetwork() + .then(async (e) => { + let { chainId: t } = e, + n = RM(t, "twFactory"); + return n + ? new zP( + n, + this.getSignerOrProvider(), + this.storage, + this.options + ) + : void 0; + })); + } + updateSignerOrProvider(e) { + super.updateSignerOrProvider(e), + this.updateContractSignerOrProvider(); + } + updateContractSignerOrProvider() { + this._factory + ?.then((e) => { + e?.updateSignerOrProvider(this.getSignerOrProvider()); + }) + .catch(() => {}), + this._registry + ?.then((e) => { + e?.updateSignerOrProvider(this.getSignerOrProvider()); + }) + .catch(() => {}); + } + async deployContractFromUri(e, t, n) { + let a = this.getSigner(); + dr.default(a, "A signer is required"); + let { compilerMetadata: i, extendedMetadata: s } = + await this.fetchAndCacheDeployMetadata(e), + c = n?.forceDirectDeploy || !1; + if ( + s && + s.factoryDeploymentData && + (s.isDeployableViaProxy || s.isDeployableViaFactory) && + !c + ) { + let w = (await this.getProvider().getNetwork()).chainId; + dr.default( + s.factoryDeploymentData.implementationAddresses, + "implementationAddresses is required" + ); + let C = s.factoryDeploymentData.implementationAddresses[w]; + dr.default(C, `implementationAddress not found for chainId '${w}'`), + dr.default( + s.factoryDeploymentData.implementationInitializerFunction, + "implementationInitializerFunction not set'" + ); + let I = eHe( + i.abi, + s.factoryDeploymentData.implementationInitializerFunction + ).map((O) => O.type), + k = this.convertParamValues(I, t); + if (s.isDeployableViaFactory) { + dr.default( + s.factoryDeploymentData.factoryAddresses, + "isDeployableViaFactory is true so factoryAddresses is required" + ); + let O = s.factoryDeploymentData.factoryAddresses[w]; + return ( + dr.default( + O, + `isDeployableViaFactory is true and factoryAddress not found for chainId '${w}'` + ), + await this.deployViaFactory( + O, + C, + i.abi, + s.factoryDeploymentData.implementationInitializerFunction, + k + ) + ); + } else if (s.isDeployableViaProxy) + return await this.deployProxy( + C, + i.abi, + s.factoryDeploymentData.implementationInitializerFunction, + k + ); + } + let l = i.bytecode.startsWith("0x") ? i.bytecode : `0x${i.bytecode}`; + if (!ie.ethers.utils.isHexString(l)) + throw new Error(`Contract bytecode is invalid. -${l}`);let d=jG(i.abi).map(w=>w.type),f=this.convertParamValues(d,t);return this.deployContractWithAbi(i.abi,l,f)}async deployContractWithAbi(e,t,n){let a=this.getSigner();mr.default(a,"Signer is required to deploy contracts");let i=await new se.ethers.ContractFactory(e,t).connect(a).deploy(...n);this.events.emit("contractDeployed",{status:"submitted",transactionHash:i.deployTransaction.hash});let s=await i.deployed();return this.events.emit("contractDeployed",{status:"completed",contractAddress:s.address,transactionHash:s.deployTransaction.hash}),s.address}addDeployListener(e){this.events.on("contractDeployed",e)}removeDeployListener(e){this.events.off("contractDeployed",e)}removeAllDeployListeners(){this.events.removeAllListeners("contractDeployed")}async fetchAndCacheDeployMetadata(e){if(this.deployMetadataCache[e])return this.deployMetadataCache[e];let t=await Pw(e,this.storage),n;try{n=await HG(e,this.storage)}catch{}let a={compilerMetadata:t,extendedMetadata:n};return this.deployMetadataCache[e]=a,a}async fetchReleaseFromPolygon(e,t,n){let a=await new Ih("polygon").getPublisher().getVersion(e,t,n);if(!a)throw new Error(`No release found for '${t}' at version '${n}' by '${e}'`);return a}getConstructorParamsForImplementation(e,t){switch(e){case yp.contractType:case gp.contractType:return[W9(Y.ChainId.Hardhat).wrapped.address];case ul.contractType:return[W9(t).wrapped.address,se.ethers.constants.AddressZero];default:return[]}}hasLocalFactory(){return M.env.factoryAddress!==void 0}convertParamValues(e,t){if(e.length!==t.length)throw Error(`Passed the wrong number of constructor arguments: ${t.length}, expected ${e.length}`);return e.map((n,a)=>n==="tuple"||n.endsWith("[]")?typeof t[a]=="string"?JSON.parse(t[a]):t[a]:n==="bytes32"?(mr.default(se.ethers.utils.isHexString(t[a]),`Could not parse bytes32 value. Expected valid hex string but got "${t[a]}".`),se.ethers.utils.hexZeroPad(t[a],32)):n.startsWith("bytes")?(mr.default(se.ethers.utils.isHexString(t[a]),`Could not parse bytes value. Expected valid hex string but got "${t[a]}".`),t[a]):n.startsWith("uint")||n.startsWith("int")?se.BigNumber.from(t[a].toString()):t[a])}},$P=class{constructor(e){ue._defineProperty(this,"featureName",oP.name),ue._defineProperty(this,"contractWrapper",void 0),this.contractWrapper=e}async get(){return this.contractWrapper.readContract.owner()}async set(e){return{receipt:await this.contractWrapper.sendTransaction("setOwner",[e])}}},hze={},rlr=new Ih("polygon");function fze(r,e){return`${r}-${e}`}function nlr(r,e,t){hze[fze(r,e)]=t}function alr(r,e){return hze[fze(r,e)]}async function Rv(r,e,t){let n=(await e.getNetwork()).chainId,a=alr(r,n);if(a)return a;let i;try{let s=await y_(r,e);if(!s)throw new Error(`Could not resolve metadata for contract at ${r}`);i=await e7(s,t)}catch{try{let c=await rlr.multiChainRegistry.getContractMetadataURI(n,r);i=await e7(c,t)}catch{throw new Error(`Could not resolve metadata for contract at ${r}`)}}if(!i)throw new Error(`Could not resolve metadata for contract at ${r}`);return nlr(r,n,i),i}async function Au(r,e,t){try{let n=await Rv(r,e,t);if(n&&n.abi)return n.abi}catch{}}async function e7(r,e){let t=await e.downloadJSON(r);if(!t||!t.output)throw new Error(`Could not resolve metadata for contract at ${r}`);let n=vp.parse(t.output.abi),a=t.settings.compilationTarget,i=Object.keys(a),s=a[i[0]],c=tZ.parse({title:t.output.devdoc.title,author:t.output.devdoc.author,details:t.output.devdoc.detail,notice:t.output.userdoc.notice}),l=[...new Set(Object.entries(t.sources).map(d=>{let[,f]=d;return f.license}))];return{name:s,abi:n,metadata:t,info:c,licenses:l}}async function YG(r,e){return await Promise.all(Object.entries(r.metadata.sources).map(async t=>{let[n,a]=t,i=a.urls,s=i?i.find(c=>c.includes("ipfs")):void 0;if(s){let c=s.split("ipfs/")[1],l=new Promise((f,w)=>setTimeout(()=>w("timeout"),3e3)),d=await Promise.race([(await e.download(`ipfs://${c}`)).text(),l]);return{filename:n,source:d}}else return{filename:n,source:a.content||"Could not find source for this contract"}}))}var mze=Su.catchall(Te.z.union([EG,Te.z.unknown()])),$G=mze.merge(fo.merge(im).merge(Ts).partial()),yze=ll.merge(fo.merge(im).merge(Ts).partial()),gze=$G.merge(fd.merge(Q0).merge(dl).partial()),Ow={deploy:gze,output:yze,input:$G},IWe=Te.z.object({type:Te.z.string(),name:Te.z.string()}).catchall(Te.z.any()),vG=IWe.extend({stateMutability:Te.z.string().optional(),components:Te.z.array(IWe).optional()}).catchall(Te.z.any()),vze=Te.z.object({type:Te.z.string(),name:Te.z.string().default(""),inputs:Te.z.array(vG).default([]),outputs:Te.z.array(vG).default([])}).catchall(Te.z.any()),vp=Te.z.array(vze),S_=Te.z.object({name:Te.z.string(),metadataUri:Te.z.string(),bytecodeUri:Te.z.string(),analytics:Te.z.any().optional()}).catchall(Te.z.any()),bG=Te.z.record(Te.z.string(),Te.z.string()),bze=Te.z.object({implementationAddresses:bG,implementationInitializerFunction:Te.z.string().default("initialize"),factoryAddresses:bG.optional()}),eZ=Te.z.object({version:Te.z.string().refine(r=>{try{return Rw(r),!0}catch{return!1}},r=>({message:`'${r}' is not a valid semantic version. Should be in the format of major.minor.patch. Ex: 0.4.1`})),displayName:Te.z.string().optional(),description:Te.z.string().optional(),readme:Te.z.string().optional(),license:Te.z.string().optional(),changelog:Te.z.string().optional(),tags:Te.z.array(Te.z.string()).optional(),audit:ue.FileOrBufferOrStringSchema.nullable().optional(),logo:ue.FileOrBufferOrStringSchema.nullable().optional(),isDeployableViaFactory:Te.z.boolean().optional(),isDeployableViaProxy:Te.z.boolean().optional(),factoryDeploymentData:bze.optional(),constructorParams:Te.z.record(Te.z.string(),Te.z.object({displayName:Te.z.string().optional(),description:Te.z.string().optional(),defaultValue:Te.z.string().optional()}).catchall(Te.z.any())).optional()}).catchall(Te.z.any()),wze=eZ.extend({audit:Te.z.string().nullable().optional(),logo:Te.z.string().nullable().optional()}),xze=S_.merge(eZ).extend({publisher:jc.optional()}),Tze=S_.merge(wze).extend({publisher:jc.optional()}),_ze=Te.z.object({name:Te.z.string().optional(),bio:Te.z.string().optional(),avatar:ue.FileOrBufferOrStringSchema.nullable().optional(),website:Te.z.string().optional(),twitter:Te.z.string().optional(),telegram:Te.z.string().optional(),facebook:Te.z.string().optional(),github:Te.z.string().optional(),medium:Te.z.string().optional(),linkedin:Te.z.string().optional(),reddit:Te.z.string().optional(),discord:Te.z.string().optional()}),Cze=_ze.extend({avatar:Te.z.string().nullable().optional()}),Eze=Te.z.object({id:Te.z.string(),timestamp:Cu,metadataUri:Te.z.string()}),tZ=Te.z.object({title:Te.z.string().optional(),author:Te.z.string().optional(),details:Te.z.string().optional(),notice:Te.z.string().optional()}),kze=Te.z.object({name:Te.z.string(),abi:vp,metadata:Te.z.record(Te.z.string(),Te.z.any()),info:tZ,licenses:Te.z.array(Te.z.string().optional()).default([]).transform(r=>r.filter(e=>e!==void 0))}),Sze=S_.merge(kze).extend({bytecode:Te.z.string()}),ilr="https://paper.xyz/api",slr="2022-08-12",rZ=`${ilr}/${slr}/platform/thirdweb`,PWe={[Y.ChainId.Mainnet]:"Ethereum",[Y.ChainId.Goerli]:"Goerli",[Y.ChainId.Polygon]:"Polygon",[Y.ChainId.Mumbai]:"Mumbai",[Y.ChainId.Avalanche]:"Avalanche"};function Aze(r){return mr.default(r in PWe,`chainId not supported by paper: ${r}`),PWe[r]}async function Mze(r,e){let t=Aze(e),a=await(await fetch(`${rZ}/register-contract?contractAddress=${r}&chain=${t}`)).json();return mr.default(a.result.id,"Contract is not registered with paper"),a.result.id}var olr={expiresInMinutes:15,feeBearer:"BUYER",sendEmailOnSuccess:!0,redirectAfterPayment:!1};async function Ize(r,e){let n=await(await fetch(`${rZ}/checkout-link-intent`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({contractId:r,...olr,...e,metadata:{...e.metadata,via_platform:"thirdweb"},hideNativeMint:!0,hidePaperWallet:!!e.walletAddress,hideExternalWallet:!0,hidePayWithCrypto:!0,usePaperKey:!1})})).json();return mr.default(n.checkoutLinkIntentUrl,"Failed to create checkout link intent"),n.checkoutLinkIntentUrl}var wG=class{constructor(e){ue._defineProperty(this,"contractWrapper",void 0),this.contractWrapper=e}async getCheckoutId(){return Mze(this.contractWrapper.readContract.address,await this.contractWrapper.getChainID())}async isEnabled(){try{return!!await this.getCheckoutId()}catch{return!1}}async createLinkIntent(e){return await Ize(await this.getCheckoutId(),e)}};Y.ALL_ROLES=BG;Y.APPROVED_IMPLEMENTATIONS=CV;Y.AbiObjectSchema=vze;Y.AbiSchema=vp;Y.AbiTypeSchema=vG;Y.AddressSchema=jc;Y.AdminRoleMissingError=FV;Y.AssetNotFoundError=MV;Y.AuctionAlreadyStartedError=J9;Y.AuctionHasNotEndedError=i_;Y.BYOCContractMetadataSchema=mze;Y.BaseSignaturePayloadInput=r7;Y.BigNumberSchema=Ri;Y.BigNumberTransformSchema=EG;Y.BigNumberishSchema=Cu;Y.CHAIN_ID_TO_NAME=Jcr;Y.CHAIN_NAME_TO_ID=H9;Y.CONTRACTS_MAP=QG;Y.CONTRACT_ADDRESSES=Cw;Y.CallOverrideSchema=XWe;Y.ChainIdToAddressSchema=bG;Y.ChainInfoInputSchema=YWe;Y.ClaimConditionInputArray=rje;Y.ClaimConditionInputSchema=E_;Y.ClaimConditionMetadataSchema=tje;Y.ClaimConditionOutputSchema=IG;Y.CommonContractOutputSchema=ll;Y.CommonContractSchema=Su;Y.CommonPlatformFeeSchema=fd;Y.CommonPrimarySaleSchema=Q0;Y.CommonRoyaltySchema=fo;Y.CommonSymbolSchema=Ts;Y.CommonTrustedForwarderSchema=dl;Y.CompilerMetadataFetchedSchema=kze;Y.ContractDeployer=YP;Y.ContractEncoder=kw;Y.ContractEvents=ZP;Y.ContractInfoSchema=tZ;Y.ContractInterceptor=JP;Y.ContractMetadata=G0;Y.ContractOwner=$P;Y.ContractPlatformFee=KP;Y.ContractPrimarySale=lP;Y.ContractPublishedMetadata=QP;Y.ContractRoles=cP;Y.ContractRoyalty=uP;Y.ContractWrapper=xs;Y.CurrencySchema=$We;Y.CurrencyValueSchema=eje;Y.CustomContractDeploy=gze;Y.CustomContractInput=$G;Y.CustomContractOutput=yze;Y.CustomContractSchema=Ow;Y.DEFAULT_IPFS_GATEWAY=Zcr;Y.DelayedReveal=o_;Y.DropClaimConditions=v_;Y.DropErc1155ClaimConditions=AP;Y.DropErc1155ContractSchema=yje;Y.DropErc1155History=$V;Y.DropErc20ContractSchema=oze;Y.DropErc721ContractSchema=NG;Y.DuplicateFileNameError=RV;Y.DuplicateLeafsError=Z9;Y.EditionDropInitializer=Ph;Y.EditionInitializer=Z0;Y.EditionMetadataInputOrUriSchema=Vcr;Y.EditionMetadataInputSchema=Hcr;Y.EditionMetadataOutputSchema=Pje;Y.EditionMetadataWithOwnerOutputSchema=zcr;Y.EndDateSchema=QWe;Y.Erc1155=x_;Y.Erc1155BatchMintable=HP;Y.Erc1155Burnable=WP;Y.Erc1155Enumerable=jP;Y.Erc1155LazyMintable=zP;Y.Erc1155Mintable=VP;Y.Erc1155SignatureMintable=GP;Y.Erc20=b_;Y.Erc20BatchMintable=IP;Y.Erc20Burnable=MP;Y.Erc20Mintable=PP;Y.Erc20SignatureMintable=RP;Y.Erc721=w_;Y.Erc721BatchMintable=BP;Y.Erc721Burnable=NP;Y.Erc721ClaimableWithConditions=OP;Y.Erc721Enumerable=DP;Y.Erc721LazyMintable=LP;Y.Erc721Mintable=qP;Y.Erc721Supply=FP;Y.Erc721WithQuantitySignatureMintable=UP;Y.ExtensionNotImplementedError=nm;Y.ExtraPublishMetadataSchemaInput=eZ;Y.ExtraPublishMetadataSchemaOutput=wze;Y.FEATURE_DIRECT_LISTINGS=jV;Y.FEATURE_ENGLISH_AUCTIONS=zV;Y.FEATURE_NFT_REVEALABLE=d_;Y.FEATURE_OFFERS=HV;Y.FEATURE_PACK_VRF=WV;Y.FactoryDeploymentSchema=bze;Y.FetchError=BV;Y.FileNameMissingError=PV;Y.FullPublishMetadataSchemaInput=xze;Y.FullPublishMetadataSchemaOutput=Tze;Y.FunctionDeprecatedError=qV;Y.GasCostEstimator=g_;Y.GenericRequest=hje;Y.InterfaceId_IERC1155=__;Y.InterfaceId_IERC721=T_;Y.InvalidAddressError=AV;Y.LINK_TOKEN_ADDRESS=gcr;Y.LOCAL_NODE_PKEY=VWe;Y.ListingNotFoundError=n_;Y.MarketplaceAuction=dG;Y.MarketplaceContractSchema=OG;Y.MarketplaceDirect=lG;Y.MarketplaceInitializer=yp;Y.MarketplaceV3Initializer=rm;Y.MerkleSchema=im;Y.MintRequest1155=dje;Y.MintRequest20=uje;Y.MintRequest721=lje;Y.MintRequest721withQuantity=pje;Y.MissingOwnerRoleError=OV;Y.MissingRoleError=G9;Y.MultiwrapContractSchema=uze;Y.MultiwrapInitializer=gp;Y.NATIVE_TOKENS=CG;Y.NATIVE_TOKEN_ADDRESS=hd;Y.NFTCollectionInitializer=J0;Y.NFTDropInitializer=Rh;Y.NotEnoughTokensError=NV;Y.NotFoundError=Ew;Y.OZ_DEFENDER_FORWARDER_ADDRESS=H0;Y.OptionalPropertiesInput=jcr;Y.PAPER_API_URL=rZ;Y.PREBUILT_CONTRACTS_MAP=Mv;Y.PackContractSchema=bje;Y.PackInitializer=ul;Y.PaperCheckout=wG;Y.PartialClaimConditionInputSchema=wcr;Y.PreDeployMetadata=S_;Y.PreDeployMetadataFetchedSchema=Sze;Y.ProfileSchemaInput=_ze;Y.ProfileSchemaOutput=Cze;Y.PublishedContractSchema=Eze;Y.QuantityAboveLimitError=LV;Y.RawDateSchema=kG;Y.RestrictedTransferError=DV;Y.SUPPORTED_CHAIN_IDS=HWe;Y.Signature1155PayloadInput=aje;Y.Signature1155PayloadInputWithTokenId=ije;Y.Signature1155PayloadOutput=sje;Y.Signature20PayloadInput=PG;Y.Signature20PayloadOutput=nje;Y.Signature721PayloadInput=n7;Y.Signature721PayloadOutput=RG;Y.Signature721WithQuantityInput=oje;Y.Signature721WithQuantityOutput=cje;Y.SignatureDropInitializer=Nh;Y.SnapshotEntryInput=z9;Y.SnapshotEntryWithProofSchema=AG;Y.SnapshotInfoSchema=bcr;Y.SnapshotInputSchema=C_;Y.SnapshotSchema=MG;Y.SplitInitializer=Oh;Y.SplitsContractSchema=xje;Y.StandardErc1155=uG;Y.StandardErc20=nG;Y.StandardErc721=sG;Y.StartDateSchema=SG;Y.ThirdwebSDK=Ih;Y.TokenDropInitializer=K0;Y.TokenERC20History=rG;Y.TokenErc1155ContractSchema=Sje;Y.TokenErc20ContractSchema=_je;Y.TokenErc721ContractSchema=Eje;Y.TokenInitializer=Lh;Y.TokenMintInputSchema=Gcr;Y.TransactionError=K9;Y.TransactionTask=md;Y.UploadError=IV;Y.UserWallet=Nw;Y.VoteContractSchema=Ije;Y.VoteInitializer=Bh;Y.WrongListingTypeError=a_;Y.assertEnabled=xr;Y.buildDefaultMap=Rje;Y.cleanCurrencyAddress=LG;Y.convertToReadableQuantity=e_;Y.createCheckoutLinkIntent=Ize;Y.createSnapshot=jje;Y.detectContractFeature=Dt;Y.detectFeatures=k_;Y.extractConstructorParams=Qje;Y.extractConstructorParamsFromAbi=jG;Y.extractEventsFromAbi=eze;Y.extractFunctionParamsFromAbi=$je;Y.extractFunctions=Xje;Y.extractFunctionsFromAbi=Iw;Y.extractIPFSHashFromBytecode=rze;Y.extractMinimalProxyImplementationAddress=tze;Y.fetchAbiFromAddress=Au;Y.fetchContractMetadata=e7;Y.fetchContractMetadataFromAddress=Rv;Y.fetchCurrencyMetadata=Lw;Y.fetchCurrencyValue=mp;Y.fetchExtendedReleaseMetadata=HG;Y.fetchPreDeployMetadata=Pw;Y.fetchRawPredeployMetadata=zG;Y.fetchRegisteredCheckoutId=Mze;Y.fetchSnapshotEntryForAddress=i7;Y.fetchSourceFilesFromMetadata=YG;Y.fetchTokenMetadataForContract=s7;Y.getAllDetectedFeatureNames=Wur;Y.getAllDetectedFeatures=Uur;Y.getAllInBatches=Vur;Y.getApprovedImplementation=GWe;Y.getChainProvider=a7;Y.getContractAddressByChainId=U9;Y.getContractName=XG;Y.getContractPublisherAddress=ZWe;Y.getContractTypeForRemoteName=lze;Y.getDefaultTrustedForwarders=_G;Y.getMultichainRegistryAddress=EV;Y.getNativeTokenByChainId=W9;Y.getReadOnlyProvider=V9;Y.getRoleHash=xw;Y.handleTokenApproval=JG;Y.hasERC20Allowance=pur;Y.hasFunction=oc;Y.hasMatchingAbi=WG;Y.includesErrorMessage=s_;Y.isDowngradeVersion=elr;Y.isFeatureEnabled=GG;Y.isIncrementalVersion=pze;Y.isNativeToken=qh;Y.isTokenApprovedForTransfer=aze;Y.mapOffer=KG;Y.matchesPrebuiltAbi=qur;Y.normalizePriceValue=cc;Y.parseChainIdToPaperChain=Aze;Y.parseRevertReason=Oje;Y.resolveContractUriFromAddress=y_;Y.setErc20Allowance=V0;Y.toChainId=Nje;Y.toSemver=Rw;Y.uploadOrExtractURI=FG});var Pze=O(me=>{"use strict";x();T();Object.defineProperty(me,"__esModule",{value:!0});var clr=Go(),ge=Uc();Xr();_t();Pn();Un();Wn();jn();zn();Hn();Vn();Gn();Zn();Jn();Kn();Qn();Xn();Yn();$n();ea();ta();ra();na();aa();ia();sa();oa();ca();ua();la();da();pa();ha();fa();ma();ya();ga();va();ba();wa();xa();Ta();_a();Ca();Ea();ka();Sa();Aa();Ma();Ia();Pa();Ra();En();Na();Oa();La();On();Ba();qa();Da();Fa();Ua();Wa();ja();za();Ha();Va();Ga();Za();Ja();Ka();Qa();globalThis.global=globalThis;me.getRpcUrl=clr.getRpcUrl;me.ALL_ROLES=ge.ALL_ROLES;me.APPROVED_IMPLEMENTATIONS=ge.APPROVED_IMPLEMENTATIONS;me.AbiObjectSchema=ge.AbiObjectSchema;me.AbiSchema=ge.AbiSchema;me.AbiTypeSchema=ge.AbiTypeSchema;me.AddressSchema=ge.AddressSchema;me.AdminRoleMissingError=ge.AdminRoleMissingError;me.AssetNotFoundError=ge.AssetNotFoundError;me.AuctionAlreadyStartedError=ge.AuctionAlreadyStartedError;me.AuctionHasNotEndedError=ge.AuctionHasNotEndedError;me.BYOCContractMetadataSchema=ge.BYOCContractMetadataSchema;me.BaseSignaturePayloadInput=ge.BaseSignaturePayloadInput;me.BigNumberSchema=ge.BigNumberSchema;me.BigNumberTransformSchema=ge.BigNumberTransformSchema;me.BigNumberishSchema=ge.BigNumberishSchema;me.CHAIN_ID_TO_NAME=ge.CHAIN_ID_TO_NAME;me.CHAIN_NAME_TO_ID=ge.CHAIN_NAME_TO_ID;me.CONTRACTS_MAP=ge.CONTRACTS_MAP;me.CONTRACT_ADDRESSES=ge.CONTRACT_ADDRESSES;me.CallOverrideSchema=ge.CallOverrideSchema;Object.defineProperty(me,"ChainId",{enumerable:!0,get:function(){return ge.ChainId}});me.ChainIdToAddressSchema=ge.ChainIdToAddressSchema;me.ChainInfoInputSchema=ge.ChainInfoInputSchema;me.ClaimConditionInputArray=ge.ClaimConditionInputArray;me.ClaimConditionInputSchema=ge.ClaimConditionInputSchema;me.ClaimConditionMetadataSchema=ge.ClaimConditionMetadataSchema;me.ClaimConditionOutputSchema=ge.ClaimConditionOutputSchema;Object.defineProperty(me,"ClaimEligibility",{enumerable:!0,get:function(){return ge.ClaimEligibility}});me.CommonContractOutputSchema=ge.CommonContractOutputSchema;me.CommonContractSchema=ge.CommonContractSchema;me.CommonPlatformFeeSchema=ge.CommonPlatformFeeSchema;me.CommonPrimarySaleSchema=ge.CommonPrimarySaleSchema;me.CommonRoyaltySchema=ge.CommonRoyaltySchema;me.CommonSymbolSchema=ge.CommonSymbolSchema;me.CommonTrustedForwarderSchema=ge.CommonTrustedForwarderSchema;me.CompilerMetadataFetchedSchema=ge.CompilerMetadataFetchedSchema;me.ContractDeployer=ge.ContractDeployer;me.ContractEncoder=ge.ContractEncoder;me.ContractEvents=ge.ContractEvents;me.ContractInfoSchema=ge.ContractInfoSchema;me.ContractInterceptor=ge.ContractInterceptor;me.ContractMetadata=ge.ContractMetadata;me.ContractOwner=ge.ContractOwner;me.ContractPlatformFee=ge.ContractPlatformFee;me.ContractPrimarySale=ge.ContractPrimarySale;me.ContractPublishedMetadata=ge.ContractPublishedMetadata;me.ContractRoles=ge.ContractRoles;me.ContractRoyalty=ge.ContractRoyalty;me.CurrencySchema=ge.CurrencySchema;me.CurrencyValueSchema=ge.CurrencyValueSchema;me.CustomContractDeploy=ge.CustomContractDeploy;me.CustomContractInput=ge.CustomContractInput;me.CustomContractOutput=ge.CustomContractOutput;me.CustomContractSchema=ge.CustomContractSchema;me.DEFAULT_IPFS_GATEWAY=ge.DEFAULT_IPFS_GATEWAY;me.DelayedReveal=ge.DelayedReveal;me.DropClaimConditions=ge.DropClaimConditions;me.DropErc1155ClaimConditions=ge.DropErc1155ClaimConditions;me.DropErc1155History=ge.DropErc1155History;me.DuplicateFileNameError=ge.DuplicateFileNameError;me.DuplicateLeafsError=ge.DuplicateLeafsError;me.EditionDropInitializer=ge.EditionDropInitializer;me.EditionInitializer=ge.EditionInitializer;me.EditionMetadataInputOrUriSchema=ge.EditionMetadataInputOrUriSchema;me.EditionMetadataInputSchema=ge.EditionMetadataInputSchema;me.EditionMetadataOutputSchema=ge.EditionMetadataOutputSchema;me.EditionMetadataWithOwnerOutputSchema=ge.EditionMetadataWithOwnerOutputSchema;me.EndDateSchema=ge.EndDateSchema;me.Erc1155=ge.Erc1155;me.Erc1155BatchMintable=ge.Erc1155BatchMintable;me.Erc1155Burnable=ge.Erc1155Burnable;me.Erc1155Enumerable=ge.Erc1155Enumerable;me.Erc1155LazyMintable=ge.Erc1155LazyMintable;me.Erc1155Mintable=ge.Erc1155Mintable;me.Erc1155SignatureMintable=ge.Erc1155SignatureMintable;me.Erc20=ge.Erc20;me.Erc20BatchMintable=ge.Erc20BatchMintable;me.Erc20Burnable=ge.Erc20Burnable;me.Erc20Mintable=ge.Erc20Mintable;me.Erc20SignatureMintable=ge.Erc20SignatureMintable;me.Erc721=ge.Erc721;me.Erc721BatchMintable=ge.Erc721BatchMintable;me.Erc721Burnable=ge.Erc721Burnable;me.Erc721ClaimableWithConditions=ge.Erc721ClaimableWithConditions;me.Erc721Enumerable=ge.Erc721Enumerable;me.Erc721LazyMintable=ge.Erc721LazyMintable;me.Erc721Mintable=ge.Erc721Mintable;me.Erc721Supply=ge.Erc721Supply;me.Erc721WithQuantitySignatureMintable=ge.Erc721WithQuantitySignatureMintable;Object.defineProperty(me,"EventType",{enumerable:!0,get:function(){return ge.EventType}});me.ExtensionNotImplementedError=ge.ExtensionNotImplementedError;me.ExtraPublishMetadataSchemaInput=ge.ExtraPublishMetadataSchemaInput;me.ExtraPublishMetadataSchemaOutput=ge.ExtraPublishMetadataSchemaOutput;me.FactoryDeploymentSchema=ge.FactoryDeploymentSchema;me.FetchError=ge.FetchError;me.FileNameMissingError=ge.FileNameMissingError;me.FullPublishMetadataSchemaInput=ge.FullPublishMetadataSchemaInput;me.FullPublishMetadataSchemaOutput=ge.FullPublishMetadataSchemaOutput;me.FunctionDeprecatedError=ge.FunctionDeprecatedError;me.GasCostEstimator=ge.GasCostEstimator;me.GenericRequest=ge.GenericRequest;me.InterfaceId_IERC1155=ge.InterfaceId_IERC1155;me.InterfaceId_IERC721=ge.InterfaceId_IERC721;me.InvalidAddressError=ge.InvalidAddressError;me.LINK_TOKEN_ADDRESS=ge.LINK_TOKEN_ADDRESS;me.LOCAL_NODE_PKEY=ge.LOCAL_NODE_PKEY;me.ListingNotFoundError=ge.ListingNotFoundError;Object.defineProperty(me,"ListingType",{enumerable:!0,get:function(){return ge.ListingType}});me.MarketplaceAuction=ge.MarketplaceAuction;me.MarketplaceDirect=ge.MarketplaceDirect;me.MarketplaceInitializer=ge.MarketplaceInitializer;me.MarketplaceV3Initializer=ge.MarketplaceV3Initializer;me.MerkleSchema=ge.MerkleSchema;me.MintRequest1155=ge.MintRequest1155;me.MintRequest20=ge.MintRequest20;me.MintRequest721=ge.MintRequest721;me.MintRequest721withQuantity=ge.MintRequest721withQuantity;me.MissingOwnerRoleError=ge.MissingOwnerRoleError;me.MissingRoleError=ge.MissingRoleError;me.MultiwrapInitializer=ge.MultiwrapInitializer;me.NATIVE_TOKENS=ge.NATIVE_TOKENS;me.NATIVE_TOKEN_ADDRESS=ge.NATIVE_TOKEN_ADDRESS;me.NFTCollectionInitializer=ge.NFTCollectionInitializer;me.NFTDropInitializer=ge.NFTDropInitializer;me.NotEnoughTokensError=ge.NotEnoughTokensError;me.NotFoundError=ge.NotFoundError;me.OZ_DEFENDER_FORWARDER_ADDRESS=ge.OZ_DEFENDER_FORWARDER_ADDRESS;me.OptionalPropertiesInput=ge.OptionalPropertiesInput;me.PAPER_API_URL=ge.PAPER_API_URL;me.PREBUILT_CONTRACTS_MAP=ge.PREBUILT_CONTRACTS_MAP;me.PackInitializer=ge.PackInitializer;me.PaperCheckout=ge.PaperCheckout;me.PartialClaimConditionInputSchema=ge.PartialClaimConditionInputSchema;me.PreDeployMetadata=ge.PreDeployMetadata;me.PreDeployMetadataFetchedSchema=ge.PreDeployMetadataFetchedSchema;me.ProfileSchemaInput=ge.ProfileSchemaInput;me.ProfileSchemaOutput=ge.ProfileSchemaOutput;Object.defineProperty(me,"ProposalState",{enumerable:!0,get:function(){return ge.ProposalState}});me.PublishedContractSchema=ge.PublishedContractSchema;me.QuantityAboveLimitError=ge.QuantityAboveLimitError;me.RawDateSchema=ge.RawDateSchema;me.RestrictedTransferError=ge.RestrictedTransferError;me.SUPPORTED_CHAIN_IDS=ge.SUPPORTED_CHAIN_IDS;me.Signature1155PayloadInput=ge.Signature1155PayloadInput;me.Signature1155PayloadInputWithTokenId=ge.Signature1155PayloadInputWithTokenId;me.Signature1155PayloadOutput=ge.Signature1155PayloadOutput;me.Signature20PayloadInput=ge.Signature20PayloadInput;me.Signature20PayloadOutput=ge.Signature20PayloadOutput;me.Signature721PayloadInput=ge.Signature721PayloadInput;me.Signature721PayloadOutput=ge.Signature721PayloadOutput;me.Signature721WithQuantityInput=ge.Signature721WithQuantityInput;me.Signature721WithQuantityOutput=ge.Signature721WithQuantityOutput;me.SignatureDropInitializer=ge.SignatureDropInitializer;me.SnapshotEntryInput=ge.SnapshotEntryInput;me.SnapshotEntryWithProofSchema=ge.SnapshotEntryWithProofSchema;me.SnapshotInfoSchema=ge.SnapshotInfoSchema;me.SnapshotInputSchema=ge.SnapshotInputSchema;me.SnapshotSchema=ge.SnapshotSchema;me.SplitInitializer=ge.SplitInitializer;me.StandardErc1155=ge.StandardErc1155;me.StandardErc20=ge.StandardErc20;me.StandardErc721=ge.StandardErc721;me.StartDateSchema=ge.StartDateSchema;Object.defineProperty(me,"Status",{enumerable:!0,get:function(){return ge.Status}});me.ThirdwebSDK=ge.ThirdwebSDK;me.TokenDropInitializer=ge.TokenDropInitializer;me.TokenERC20History=ge.TokenERC20History;me.TokenInitializer=ge.TokenInitializer;me.TokenMintInputSchema=ge.TokenMintInputSchema;me.TransactionError=ge.TransactionError;me.TransactionTask=ge.TransactionTask;me.UploadError=ge.UploadError;me.UserWallet=ge.UserWallet;me.VoteInitializer=ge.VoteInitializer;Object.defineProperty(me,"VoteType",{enumerable:!0,get:function(){return ge.VoteType}});me.WrongListingTypeError=ge.WrongListingTypeError;me.assertEnabled=ge.assertEnabled;me.buildDefaultMap=ge.buildDefaultMap;me.convertToReadableQuantity=ge.convertToReadableQuantity;me.createCheckoutLinkIntent=ge.createCheckoutLinkIntent;me.createSnapshot=ge.createSnapshot;me.detectContractFeature=ge.detectContractFeature;me.detectFeatures=ge.detectFeatures;me.extractConstructorParams=ge.extractConstructorParams;me.extractConstructorParamsFromAbi=ge.extractConstructorParamsFromAbi;me.extractEventsFromAbi=ge.extractEventsFromAbi;me.extractFunctionParamsFromAbi=ge.extractFunctionParamsFromAbi;me.extractFunctions=ge.extractFunctions;me.extractFunctionsFromAbi=ge.extractFunctionsFromAbi;me.extractIPFSHashFromBytecode=ge.extractIPFSHashFromBytecode;me.extractMinimalProxyImplementationAddress=ge.extractMinimalProxyImplementationAddress;me.fetchAbiFromAddress=ge.fetchAbiFromAddress;me.fetchContractMetadata=ge.fetchContractMetadata;me.fetchContractMetadataFromAddress=ge.fetchContractMetadataFromAddress;me.fetchCurrencyMetadata=ge.fetchCurrencyMetadata;me.fetchCurrencyValue=ge.fetchCurrencyValue;me.fetchExtendedReleaseMetadata=ge.fetchExtendedReleaseMetadata;me.fetchPreDeployMetadata=ge.fetchPreDeployMetadata;me.fetchRawPredeployMetadata=ge.fetchRawPredeployMetadata;me.fetchRegisteredCheckoutId=ge.fetchRegisteredCheckoutId;me.fetchSnapshotEntryForAddress=ge.fetchSnapshotEntryForAddress;me.fetchSourceFilesFromMetadata=ge.fetchSourceFilesFromMetadata;me.getAllDetectedFeatureNames=ge.getAllDetectedFeatureNames;me.getAllDetectedFeatures=ge.getAllDetectedFeatures;me.getApprovedImplementation=ge.getApprovedImplementation;me.getChainProvider=ge.getChainProvider;me.getContractAddressByChainId=ge.getContractAddressByChainId;me.getContractName=ge.getContractName;me.getContractPublisherAddress=ge.getContractPublisherAddress;me.getContractTypeForRemoteName=ge.getContractTypeForRemoteName;me.getDefaultTrustedForwarders=ge.getDefaultTrustedForwarders;me.getMultichainRegistryAddress=ge.getMultichainRegistryAddress;me.getNativeTokenByChainId=ge.getNativeTokenByChainId;me.getReadOnlyProvider=ge.getReadOnlyProvider;me.getRoleHash=ge.getRoleHash;me.hasFunction=ge.hasFunction;me.hasMatchingAbi=ge.hasMatchingAbi;me.includesErrorMessage=ge.includesErrorMessage;me.isDowngradeVersion=ge.isDowngradeVersion;me.isFeatureEnabled=ge.isFeatureEnabled;me.isIncrementalVersion=ge.isIncrementalVersion;me.matchesPrebuiltAbi=ge.matchesPrebuiltAbi;me.normalizePriceValue=ge.normalizePriceValue;me.parseChainIdToPaperChain=ge.parseChainIdToPaperChain;me.parseRevertReason=ge.parseRevertReason;me.resolveContractUriFromAddress=ge.resolveContractUriFromAddress;me.toChainId=ge.toChainId;me.toSemver=ge.toSemver});var dc=O(lc=>{"use strict";x();T();var ulr=Xr(),Bw=_t(),$t=Pn();function llr(r){return r&&r.__esModule?r:{default:r}}var qw=llr(ulr),Lze="c6634ad2d97b74baf15ff556016830c251050e6c36b9da508ce3ec80095d3dc1";function dlr(r){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Lze;return`https://${r}.rpc.thirdweb.com/${e}`}var plr=()=>typeof window<"u",Rze=plr()?$t.z.instanceof(File):$t.z.instanceof(P.Buffer),hlr=$t.z.union([Rze,$t.z.object({data:$t.z.union([Rze,$t.z.string()]),name:$t.z.string()})]),c7=$t.z.union([hlr,$t.z.string()]),Bze=1e4,flr=$t.z.union([$t.z.array($t.z.number()),$t.z.string()]),mlr=$t.z.union([$t.z.string(),$t.z.number(),$t.z.bigint(),$t.z.custom(r=>Bw.BigNumber.isBigNumber(r)),$t.z.custom(r=>qw.default.isBN(r))]).transform(r=>{let e=qw.default.isBN(r)?new qw.default(r).toString():Bw.BigNumber.from(r).toString();return Bw.BigNumber.from(e)});mlr.transform(r=>r.toString());var qze=$t.z.union([$t.z.bigint(),$t.z.custom(r=>Bw.BigNumber.isBigNumber(r)),$t.z.custom(r=>qw.default.isBN(r))]).transform(r=>qw.default.isBN(r)?new qw.default(r).toString():Bw.BigNumber.from(r).toString()),ylr=$t.z.number().max(Bze,"Cannot exceed 100%").min(0,"Cannot be below 0%"),glr=$t.z.number().max(100,"Cannot exceed 100%").min(0,"Cannot be below 0%"),vlr=$t.z.union([$t.z.string().regex(/^([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/,"Invalid hex color"),$t.z.string().regex(/^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/,"Invalid hex color").transform(r=>r.replace("#","")),$t.z.string().length(0)]),Dze=$t.z.union([$t.z.string().regex(/^([0-9]+\.?[0-9]*|\.[0-9]+)$/,"Invalid amount"),$t.z.number().min(0,"Amount cannot be negative")]).transform(r=>typeof r=="number"?r.toString():r),blr=$t.z.union([Dze,$t.z.literal("unlimited")]).default("unlimited"),Fze=$t.z.date().transform(r=>Bw.BigNumber.from(Math.floor(r.getTime()/1e3)));Fze.default(new Date(0));Fze.default(new Date(Date.now()+1e3*60*60*24*365*10));function wlr(r,e){if(typeof r!="object"||r===null)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var n=t.call(r,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}function xlr(r){var e=wlr(r,"string");return typeof e=="symbol"?e:String(e)}function Tlr(r,e,t){return e=xlr(e),e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}var Nze=$t.z.object({}).catchall($t.z.union([qze,$t.z.unknown()])),Oze=$t.z.union([$t.z.array(Nze),Nze]).optional(),aZ=$t.z.object({name:$t.z.union([$t.z.string(),$t.z.number()]).optional(),description:$t.z.string().nullable().optional(),image:c7.nullable().optional(),external_url:c7.nullable().optional(),animation_url:c7.optional(),background_color:vlr.optional(),properties:Oze,attributes:Oze}).catchall($t.z.union([qze,$t.z.unknown()])),_lr=$t.z.union([aZ,$t.z.string()]),Clr=aZ.extend({id:$t.z.string(),uri:$t.z.string(),image:$t.z.string().nullable().optional(),external_url:$t.z.string().nullable().optional(),animation_url:$t.z.string().nullable().optional()}),nZ=100,Elr=$t.z.object({start:$t.z.number().default(0),count:$t.z.number().default(nZ)}).default({start:0,count:nZ});lc.AmountSchema=Dze;lc.BasisPointsSchema=ylr;lc.BytesLikeSchema=flr;lc.CommonNFTInput=aZ;lc.CommonNFTOutput=Clr;lc.DEFAULT_API_KEY=Lze;lc.DEFAULT_QUERY_ALL_COUNT=nZ;lc.FileOrBufferOrStringSchema=c7;lc.MAX_BPS=Bze;lc.NFTInputOrUriSchema=_lr;lc.PercentSchema=glr;lc.QuantitySchema=blr;lc.QueryAllParamsSchema=Elr;lc._defineProperty=Tlr;lc.getRpcUrl=dlr});var Wze=O(Uze=>{"use strict";x();T();var pc=dc(),Ks=Hc(),klr=_t();Xr();Pn();Un();Wn();jn();zn();Hn();Vn();Gn();Zn();Jn();Kn();Qn();Xn();Yn();$n();ea();ta();ra();na();aa();ia();sa();oa();ca();ua();la();da();pa();ha();fa();ma();ya();ga();va();ba();wa();xa();Ta();_a();Ca();Ea();ka();Sa();Aa();Ma();Ia();Pa();Ra();En();Na();Oa();La();On();Ba();qa();Da();Fa();Ua();Wa();ja();za();Ha();Va();Ga();Za();Ja();Ka();Qa();var Dw=class extends Ks.StandardErc1155{constructor(e,t,n){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},i=arguments.length>4?arguments[4]:void 0,s=arguments.length>5?arguments[5]:void 0,c=arguments.length>6&&arguments[6]!==void 0?arguments[6]:new Ks.ContractWrapper(e,t,i,a);super(c,n,s),pc._defineProperty(this,"abi",void 0),pc._defineProperty(this,"sales",void 0),pc._defineProperty(this,"platformFees",void 0),pc._defineProperty(this,"encoder",void 0),pc._defineProperty(this,"estimator",void 0),pc._defineProperty(this,"events",void 0),pc._defineProperty(this,"metadata",void 0),pc._defineProperty(this,"roles",void 0),pc._defineProperty(this,"royalties",void 0),pc._defineProperty(this,"claimConditions",void 0),pc._defineProperty(this,"checkout",void 0),pc._defineProperty(this,"history",void 0),pc._defineProperty(this,"interceptor",void 0),pc._defineProperty(this,"erc1155",void 0),pc._defineProperty(this,"owner",void 0),this.abi=i,this.metadata=new Ks.ContractMetadata(this.contractWrapper,Ks.DropErc1155ContractSchema,this.storage),this.roles=new Ks.ContractRoles(this.contractWrapper,Dw.contractRoles),this.royalties=new Ks.ContractRoyalty(this.contractWrapper,this.metadata),this.sales=new Ks.ContractPrimarySale(this.contractWrapper),this.claimConditions=new Ks.DropErc1155ClaimConditions(this.contractWrapper,this.metadata,this.storage),this.events=new Ks.ContractEvents(this.contractWrapper),this.history=new Ks.DropErc1155History(this.events),this.encoder=new Ks.ContractEncoder(this.contractWrapper),this.estimator=new Ks.GasCostEstimator(this.contractWrapper),this.platformFees=new Ks.ContractPlatformFee(this.contractWrapper),this.interceptor=new Ks.ContractInterceptor(this.contractWrapper),this.erc1155=new Ks.Erc1155(this.contractWrapper,this.storage,s),this.checkout=new Ks.PaperCheckout(this.contractWrapper),this.owner=new Ks.ContractOwner(this.contractWrapper)}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}async getAll(e){return this.erc1155.getAll(e)}async getOwned(e){return this.erc1155.getOwned(e)}async getTotalCount(){return this.erc1155.totalCount()}async isTransferRestricted(){return!await this.contractWrapper.readContract.hasRole(Ks.getRoleHash("transfer"),klr.constants.AddressZero)}async createBatch(e,t){return this.erc1155.lazyMint(e,t)}async getClaimTransaction(e,t,n){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0;return this.erc1155.getClaimTransaction(e,t,n,{checkERC20Allowance:a})}async claimTo(e,t,n){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0;return this.erc1155.claimTo(e,t,n,{checkERC20Allowance:a})}async claim(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,a=await this.contractWrapper.getSignerAddress();return this.claimTo(a,e,t,n)}async burnTokens(e,t){return this.erc1155.burn(e,t)}async call(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a{"use strict";x();T();var Mu=dc(),hc=Hc(),Slr=_t();Xr();Pn();Un();Wn();jn();zn();Hn();Vn();Gn();Zn();Jn();Kn();Qn();Xn();Yn();$n();ea();ta();ra();na();aa();ia();sa();oa();ca();ua();la();da();pa();ha();fa();ma();ya();ga();va();ba();wa();xa();Ta();_a();Ca();Ea();ka();Sa();Aa();Ma();Ia();Pa();Ra();En();Na();Oa();La();On();Ba();qa();Da();Fa();Ua();Wa();ja();za();Ha();Va();Ga();Za();Ja();Ka();Qa();var Fw=class extends hc.StandardErc1155{constructor(e,t,n){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},i=arguments.length>4?arguments[4]:void 0,s=arguments.length>5?arguments[5]:void 0,c=arguments.length>6&&arguments[6]!==void 0?arguments[6]:new hc.ContractWrapper(e,t,i,a);super(c,n,s),Mu._defineProperty(this,"abi",void 0),Mu._defineProperty(this,"metadata",void 0),Mu._defineProperty(this,"roles",void 0),Mu._defineProperty(this,"sales",void 0),Mu._defineProperty(this,"platformFees",void 0),Mu._defineProperty(this,"encoder",void 0),Mu._defineProperty(this,"estimator",void 0),Mu._defineProperty(this,"events",void 0),Mu._defineProperty(this,"royalties",void 0),Mu._defineProperty(this,"signature",void 0),Mu._defineProperty(this,"interceptor",void 0),Mu._defineProperty(this,"erc1155",void 0),Mu._defineProperty(this,"owner",void 0),this.abi=i,this.metadata=new hc.ContractMetadata(this.contractWrapper,hc.TokenErc1155ContractSchema,this.storage),this.roles=new hc.ContractRoles(this.contractWrapper,Fw.contractRoles),this.royalties=new hc.ContractRoyalty(this.contractWrapper,this.metadata),this.sales=new hc.ContractPrimarySale(this.contractWrapper),this.encoder=new hc.ContractEncoder(this.contractWrapper),this.estimator=new hc.GasCostEstimator(this.contractWrapper),this.events=new hc.ContractEvents(this.contractWrapper),this.platformFees=new hc.ContractPlatformFee(this.contractWrapper),this.interceptor=new hc.ContractInterceptor(this.contractWrapper),this.signature=new hc.Erc1155SignatureMintable(this.contractWrapper,this.storage,this.roles),this.erc1155=new hc.Erc1155(this.contractWrapper,this.storage,s),this.owner=new hc.ContractOwner(this.contractWrapper)}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}async getAll(e){return this.erc1155.getAll(e)}async getOwned(e){return this.erc1155.getOwned(e)}async getTotalCount(){return this.erc1155.totalCount()}async isTransferRestricted(){return!await this.contractWrapper.readContract.hasRole(hc.getRoleHash("transfer"),Slr.constants.AddressZero)}async mint(e){return this.erc1155.mint(e)}async mintTo(e,t){return this.erc1155.mintTo(e,t)}async getMintTransaction(e,t){return this.erc1155.getMintTransaction(e,t)}async mintAdditionalSupply(e,t){return this.erc1155.mintAdditionalSupply(e,t)}async mintAdditionalSupplyTo(e,t,n){return this.erc1155.mintAdditionalSupplyTo(e,t,n)}async mintBatch(e){return this.erc1155.mintBatch(e)}async mintBatchTo(e,t){return this.erc1155.mintBatchTo(e,t)}async burn(e,t){return this.erc1155.burn(e,t)}async call(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a{"use strict";x();T();var fc=dc(),qn=Hc(),pl=_t(),Alr=zn();Xr();Pn();Un();Wn();jn();Hn();Vn();Gn();Zn();Jn();Kn();Qn();Xn();Yn();$n();ea();ta();ra();na();aa();ia();sa();oa();ca();ua();la();da();pa();ha();fa();ma();ya();ga();va();ba();wa();xa();Ta();_a();Ca();Ea();ka();Sa();Aa();Ma();Ia();Pa();Ra();En();Na();Oa();La();On();Ba();qa();Da();Fa();Ua();Wa();ja();za();Ha();Va();Ga();Za();Ja();Ka();Qa();function Mlr(r){return r&&r.__esModule?r:{default:r}}var Hze=Mlr(Alr),Uw=class{get chainId(){return this._chainId}constructor(e,t,n){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},i=arguments.length>4?arguments[4]:void 0,s=arguments.length>5?arguments[5]:void 0,c=arguments.length>6&&arguments[6]!==void 0?arguments[6]:new qn.ContractWrapper(e,t,i,a);fc._defineProperty(this,"abi",void 0),fc._defineProperty(this,"contractWrapper",void 0),fc._defineProperty(this,"storage",void 0),fc._defineProperty(this,"encoder",void 0),fc._defineProperty(this,"events",void 0),fc._defineProperty(this,"estimator",void 0),fc._defineProperty(this,"platformFees",void 0),fc._defineProperty(this,"metadata",void 0),fc._defineProperty(this,"roles",void 0),fc._defineProperty(this,"interceptor",void 0),fc._defineProperty(this,"direct",void 0),fc._defineProperty(this,"auction",void 0),fc._defineProperty(this,"_chainId",void 0),fc._defineProperty(this,"getAll",this.getAllListings),this._chainId=s,this.abi=i,this.contractWrapper=c,this.storage=n,this.metadata=new qn.ContractMetadata(this.contractWrapper,qn.MarketplaceContractSchema,this.storage),this.roles=new qn.ContractRoles(this.contractWrapper,Uw.contractRoles),this.encoder=new qn.ContractEncoder(this.contractWrapper),this.estimator=new qn.GasCostEstimator(this.contractWrapper),this.direct=new qn.MarketplaceDirect(this.contractWrapper,this.storage),this.auction=new qn.MarketplaceAuction(this.contractWrapper,this.storage),this.events=new qn.ContractEvents(this.contractWrapper),this.platformFees=new qn.ContractPlatformFee(this.contractWrapper),this.interceptor=new qn.ContractInterceptor(this.contractWrapper)}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}async getListing(e){let t=await this.contractWrapper.readContract.listings(e);if(t.assetContract===pl.constants.AddressZero)throw new qn.ListingNotFoundError(this.getAddress(),e.toString());switch(t.listingType){case qn.ListingType.Auction:return await this.auction.mapListing(t);case qn.ListingType.Direct:return await this.direct.mapListing(t);default:throw new Error(`Unknown listing type: ${t.listingType}`)}}async getActiveListings(e){let t=await this.getAllListingsNoFilter(!0),n=this.applyFilter(t,e),a=pl.BigNumber.from(Math.floor(Date.now()/1e3));return n.filter(i=>i.type===qn.ListingType.Auction&&pl.BigNumber.from(i.endTimeInEpochSeconds).gt(a)&&pl.BigNumber.from(i.startTimeInEpochSeconds).lte(a)||i.type===qn.ListingType.Direct&&i.quantity>0)}async getAllListings(e){let t=await this.getAllListingsNoFilter(!1);return this.applyFilter(t,e)}async getTotalCount(){return await this.contractWrapper.readContract.totalListings()}async isRestrictedToListerRoleOnly(){return!await this.contractWrapper.readContract.hasRole(qn.getRoleHash("lister"),pl.constants.AddressZero)}async getBidBufferBps(){return this.contractWrapper.readContract.bidBufferBps()}async getTimeBufferInSeconds(){return this.contractWrapper.readContract.timeBuffer()}async getOffers(e){let t=await this.events.getEvents("NewOffer",{order:"desc",filters:{listingId:e}});return await Promise.all(t.map(async n=>await qn.mapOffer(this.contractWrapper.getProvider(),pl.BigNumber.from(e),{quantityWanted:n.data.quantityWanted,pricePerToken:n.data.quantityWanted.gt(0)?n.data.totalOfferAmount.div(n.data.quantityWanted):n.data.totalOfferAmount,currency:n.data.currency,offeror:n.data.offeror})))}async buyoutListing(e,t,n){let a=await this.contractWrapper.readContract.listings(e);if(a.listingId.toString()!==e.toString())throw new qn.ListingNotFoundError(this.getAddress(),e.toString());switch(a.listingType){case qn.ListingType.Direct:return Hze.default(t!==void 0,"quantityDesired is required when buying out a direct listing"),await this.direct.buyoutListing(e,t,n);case qn.ListingType.Auction:return await this.auction.buyoutListing(e);default:throw Error(`Unknown listing type: ${a.listingType}`)}}async makeOffer(e,t,n){let a=await this.contractWrapper.readContract.listings(e);if(a.listingId.toString()!==e.toString())throw new qn.ListingNotFoundError(this.getAddress(),e.toString());let i=await this.contractWrapper.getChainID();switch(a.listingType){case qn.ListingType.Direct:return Hze.default(n,"quantity is required when making an offer on a direct listing"),await this.direct.makeOffer(e,n,qn.isNativeToken(a.currency)?qn.NATIVE_TOKENS[i].wrapped.address:a.currency,t);case qn.ListingType.Auction:return await this.auction.makeBid(e,t);default:throw Error(`Unknown listing type: ${a.listingType}`)}}async setBidBufferBps(e){await this.roles.verify(["admin"],await this.contractWrapper.getSignerAddress());let t=await this.getTimeBufferInSeconds();await this.contractWrapper.sendTransaction("setAuctionBuffers",[t,pl.BigNumber.from(e)])}async setTimeBufferInSeconds(e){await this.roles.verify(["admin"],await this.contractWrapper.getSignerAddress());let t=await this.getBidBufferBps();await this.contractWrapper.sendTransaction("setAuctionBuffers",[pl.BigNumber.from(e),t])}async allowListingFromSpecificAssetOnly(e){let t=[];(await this.roles.get("asset")).includes(pl.constants.AddressZero)&&t.push(this.encoder.encode("revokeRole",[qn.getRoleHash("asset"),pl.constants.AddressZero])),t.push(this.encoder.encode("grantRole",[qn.getRoleHash("asset"),e])),await this.contractWrapper.multiCall(t)}async allowListingFromAnyAsset(){let e=[],t=await this.roles.get("asset");for(let n in t)e.push(this.encoder.encode("revokeRole",[qn.getRoleHash("asset"),n]));e.push(this.encoder.encode("grantRole",[qn.getRoleHash("asset"),pl.constants.AddressZero])),await this.contractWrapper.multiCall(e)}async getAllListingsNoFilter(e){return(await Promise.all(Array.from(Array((await this.contractWrapper.readContract.totalListings()).toNumber()).keys()).map(async n=>{let a;try{a=await this.getListing(n)}catch(i){if(i instanceof qn.ListingNotFoundError)return;console.warn(`Failed to get listing ${n}' - skipping. Try 'marketplace.getListing(${n})' to get the underlying error.`);return}if(a.type===qn.ListingType.Auction)return a;if(e){let{valid:i}=await this.direct.isStillValidListing(a);if(!i)return}return a}))).filter(n=>n!==void 0)}applyFilter(e,t){let n=[...e],a=pl.BigNumber.from(t?.start||0).toNumber(),i=pl.BigNumber.from(t?.count||fc.DEFAULT_QUERY_ALL_COUNT).toNumber();return t&&(t.seller&&(n=n.filter(s=>s.sellerAddress.toString().toLowerCase()===t?.seller?.toString().toLowerCase())),t.tokenContract&&(n=n.filter(s=>s.assetContractAddress.toString().toLowerCase()===t?.tokenContract?.toString().toLowerCase())),t.tokenId!==void 0&&(n=n.filter(s=>s.tokenId.toString()===t?.tokenId?.toString())),n=n.filter((s,c)=>c>=a),n=n.slice(0,i)),n}async call(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a{"use strict";x();T();var pn=dc(),ft=Hc(),u7=Pn(),Ilr=Un(),Plr=Wn(),Rlr=jn(),ar=_t(),Nlr=zn(),Olr=Kn();Xr();Hn();Vn();Gn();Zn();Jn();Qn();Xn();Yn();$n();ea();ta();ra();na();aa();ia();sa();oa();ca();ua();la();da();pa();ha();fa();ma();ya();ga();va();ba();wa();xa();Ta();_a();Ca();Ea();ka();Sa();Aa();Ma();Ia();Pa();Ra();En();Na();Oa();La();On();Ba();qa();Da();Fa();Ua();Wa();ja();za();Ha();Va();Ga();Za();Ja();Ka();Qa();function A_(r){return r&&r.__esModule?r:{default:r}}var Llr=A_(Ilr),Blr=A_(Plr),qlr=A_(Rlr),Ww=A_(Nlr),Dlr=A_(Olr),Zze=u7.z.object({assetContractAddress:ft.AddressSchema,tokenId:ft.BigNumberishSchema,quantity:ft.BigNumberishSchema.default(1),currencyContractAddress:ft.AddressSchema.default(ft.NATIVE_TOKEN_ADDRESS),pricePerToken:pn.AmountSchema,startTimestamp:ft.RawDateSchema.default(new Date),endTimestamp:ft.EndDateSchema,isReservedListing:u7.z.boolean().default(!1)}),iZ=class{constructor(e,t){pn._defineProperty(this,"featureName",ft.FEATURE_DIRECT_LISTINGS.name),pn._defineProperty(this,"contractWrapper",void 0),pn._defineProperty(this,"storage",void 0),pn._defineProperty(this,"events",void 0),pn._defineProperty(this,"interceptor",void 0),pn._defineProperty(this,"encoder",void 0),pn._defineProperty(this,"estimator",void 0),this.contractWrapper=e,this.storage=t,this.events=new ft.ContractEvents(this.contractWrapper),this.encoder=new ft.ContractEncoder(this.contractWrapper),this.interceptor=new ft.ContractInterceptor(this.contractWrapper),this.estimator=new ft.GasCostEstimator(this.contractWrapper)}getAddress(){return this.contractWrapper.readContract.address}async getTotalCount(){return await this.contractWrapper.readContract.totalListings()}async getAll(e){let t=await this.getTotalCount(),n=ar.BigNumber.from(e?.start||0).toNumber(),a=t.toNumber();if(a===0)throw new Error("No listings exist on the contract.");let i=[];i=(await ft.getAllInBatches(n,a,this.contractWrapper.readContract.getAllListings)).flat();let c=this.applyFilter(i,e);return await Promise.all(c.map(l=>this.mapListing(l)))}async getAllValid(e){let t=await this.getTotalCount(),n=ar.BigNumber.from(e?.start||0).toNumber(),a=t.toNumber();if(a===0)throw new Error("No listings exist on the contract.");let i=[];i=(await ft.getAllInBatches(n,a,this.contractWrapper.readContract.getAllValidListings)).flat();let c=this.applyFilter(i,e);return await Promise.all(c.map(l=>this.mapListing(l)))}async getListing(e){let t=await this.contractWrapper.readContract.getListing(e);return await this.mapListing(t)}async isBuyerApprovedForListing(e,t){if(!(await this.validateListing(ar.BigNumber.from(e))).isReservedListing)throw new Error(`Listing ${e} is not a reserved listing.`);return await this.contractWrapper.readContract.isBuyerApprovedForListing(e,t)}async isCurrencyApprovedForListing(e,t){return await this.validateListing(ar.BigNumber.from(e)),await this.contractWrapper.readContract.isCurrencyApprovedForListing(e,t)}async currencyPriceForListing(e,t){let n=await this.validateListing(ar.BigNumber.from(e));if(t===n.currencyContractAddress)return n.pricePerToken;if(!await this.isCurrencyApprovedForListing(e,t))throw new Error(`Currency ${t} is not approved for Listing ${e}.`);return await this.contractWrapper.readContract.currencyPriceForListing(e,t)}async createListing(e){let t=Zze.parse(e);await ft.handleTokenApproval(this.contractWrapper,this.getAddress(),t.assetContractAddress,t.tokenId,await this.contractWrapper.getSignerAddress());let n=await ft.normalizePriceValue(this.contractWrapper.getProvider(),t.pricePerToken,t.currencyContractAddress),i=(await this.contractWrapper.getProvider().getBlock("latest")).timestamp;t.startTimestamp.lt(i)&&(t.startTimestamp=ar.BigNumber.from(i));let s=await this.contractWrapper.sendTransaction("createListing",[{assetContract:t.assetContractAddress,tokenId:t.tokenId,quantity:t.quantity,currency:ft.cleanCurrencyAddress(t.currencyContractAddress),pricePerToken:n,startTimestamp:t.startTimestamp,endTimestamp:t.endTimestamp,reserved:t.isReservedListing}],{gasLimit:5e5});return{id:this.contractWrapper.parseLogs("NewListing",s?.logs)[0].args.listingId,receipt:s}}async updateListing(e,t){let n=Zze.parse(t);await ft.handleTokenApproval(this.contractWrapper,this.getAddress(),n.assetContractAddress,n.tokenId,await this.contractWrapper.getSignerAddress());let a=await ft.normalizePriceValue(this.contractWrapper.getProvider(),n.pricePerToken,n.currencyContractAddress),i=await this.contractWrapper.sendTransaction("updateListing",[e,{assetContract:n.assetContractAddress,tokenId:n.tokenId,quantity:n.quantity,currency:ft.cleanCurrencyAddress(n.currencyContractAddress),pricePerToken:a,startTimestamp:n.startTimestamp,endTimestamp:n.endTimestamp,reserved:n.isReservedListing}],{gasLimit:5e5});return{id:this.contractWrapper.parseLogs("UpdatedListing",i?.logs)[0].args.listingId,receipt:i}}async cancelListing(e){return{receipt:await this.contractWrapper.sendTransaction("cancelListing",[e])}}async buyFromListing(e,t,n){let a=await this.validateListing(ar.BigNumber.from(e)),{valid:i,error:s}=await this.isStillValidListing(a,t);if(!i)throw new Error(`Listing ${e} is no longer valid. ${s}`);let c=n||await this.contractWrapper.getSignerAddress(),l=ar.BigNumber.from(t),d=ar.BigNumber.from(a.pricePerToken).mul(l),f=await this.contractWrapper.getCallOverrides()||{};return await ft.setErc20Allowance(this.contractWrapper,d,a.currencyContractAddress,f),{receipt:await this.contractWrapper.sendTransaction("buyFromListing",[e,c,l,a.currencyContractAddress,d],f)}}async approveBuyerForReservedListing(e,t){if(await this.isBuyerApprovedForListing(e,t))throw new Error(`Buyer ${t} already approved for listing ${e}.`);return{receipt:await this.contractWrapper.sendTransaction("approveBuyerForListing",[e,t,!0])}}async revokeBuyerApprovalForReservedListing(e,t){if(await this.isBuyerApprovedForListing(e,t))return{receipt:await this.contractWrapper.sendTransaction("approveBuyerForListing",[e,t,!1])};throw new Error(`Buyer ${t} not approved for listing ${e}.`)}async approveCurrencyForListing(e,t,n){let a=await this.validateListing(ar.BigNumber.from(e));t===a.currencyContractAddress&&Ww.default(n===a.pricePerToken,"Approving listing currency with a different price.");let i=await this.contractWrapper.readContract.currencyPriceForListing(e,t);return Ww.default(n===i,"Currency already approved with this price."),{receipt:await this.contractWrapper.sendTransaction("approveCurrencyForListing",[e,t,n])}}async revokeCurrencyApprovalForListing(e,t){let n=await this.validateListing(ar.BigNumber.from(e));if(t===n.currencyContractAddress)throw new Error("Can't revoke approval for main listing currency.");let a=await this.contractWrapper.readContract.currencyPriceForListing(e,t);return Ww.default(!a.isZero(),"Currency not approved."),{receipt:await this.contractWrapper.sendTransaction("approveCurrencyForListing",[e,t,ar.BigNumber.from(0)])}}async validateListing(e){try{return await this.getListing(e)}catch(t){throw console.error(`Error getting the listing with id ${e}`),t}}async mapListing(e){let t=ft.Status.UNSET,a=(await this.contractWrapper.getProvider().getBlock("latest")).timestamp;switch(e.status){case 1:t=ar.BigNumber.from(e.startTimestamp).gt(a)?ft.Status.Created:ar.BigNumber.from(e.endTimestamp).lt(a)?ft.Status.Expired:ft.Status.Active;break;case 2:t=ft.Status.Completed;break;case 3:t=ft.Status.Cancelled;break}return{assetContractAddress:e.assetContract,currencyContractAddress:e.currency,pricePerToken:e.pricePerToken.toString(),currencyValuePerToken:await ft.fetchCurrencyValue(this.contractWrapper.getProvider(),e.currency,e.pricePerToken),id:e.listingId.toString(),tokenId:e.tokenId.toString(),quantity:e.quantity.toString(),startTimeInSeconds:ar.BigNumber.from(e.startTimestamp).toNumber(),asset:await ft.fetchTokenMetadataForContract(e.assetContract,this.contractWrapper.getProvider(),e.tokenId,this.storage),endTimeInSeconds:ar.BigNumber.from(e.endTimestamp).toNumber(),creatorAddress:e.listingCreator,isReservedListing:e.reserved,status:t}}async isStillValidListing(e,t){if(!await ft.isTokenApprovedForTransfer(this.contractWrapper.getProvider(),this.getAddress(),e.assetContractAddress,e.tokenId,e.creatorAddress))return{valid:!1,error:`Token '${e.tokenId}' from contract '${e.assetContractAddress}' is not approved for transfer`};let a=this.contractWrapper.getProvider(),i=new ar.Contract(e.assetContractAddress,Llr.default,a),s=await i.supportsInterface(ft.InterfaceId_IERC721),c=await i.supportsInterface(ft.InterfaceId_IERC1155);if(s){let d=(await new ar.Contract(e.assetContractAddress,Blr.default,a).ownerOf(e.tokenId)).toLowerCase()===e.creatorAddress.toLowerCase();return{valid:d,error:d?void 0:`Seller is not the owner of Token '${e.tokenId}' from contract '${e.assetContractAddress} anymore'`}}else if(c){let f=(await new ar.Contract(e.assetContractAddress,qlr.default,a).balanceOf(e.creatorAddress,e.tokenId)).gte(t||e.quantity);return{valid:f,error:f?void 0:`Seller does not have enough balance of Token '${e.tokenId}' from contract '${e.assetContractAddress} to fulfill the listing`}}else return{valid:!1,error:"Contract does not implement ERC 1155 or ERC 721."}}applyFilter(e,t){let n=[...e];return t&&(t.seller&&(n=n.filter(a=>a.listingCreator.toString().toLowerCase()===t?.seller?.toString().toLowerCase())),t.tokenContract&&(n=n.filter(a=>a.assetContract.toString().toLowerCase()===t?.tokenContract?.toString().toLowerCase())),t.tokenId!==void 0&&(n=n.filter(a=>a.tokenId.toString()===t?.tokenId?.toString()))),t?.count&&t.countthis.mapAuction(l)))}async getAllValid(e){let t=await this.getTotalCount(),n=ar.BigNumber.from(e?.start||0).toNumber(),a=t.toNumber();if(a===0)throw new Error("No auctions exist on the contract.");let i=[];i=(await ft.getAllInBatches(n,a,this.contractWrapper.readContract.getAllValidAuctions)).flat();let c=this.applyFilter(i,e);return await Promise.all(c.map(l=>this.mapAuction(l)))}async getAuction(e){let t=await this.contractWrapper.readContract.getAuction(e);return await this.mapAuction(t)}async getWinningBid(e){await this.validateAuction(ar.BigNumber.from(e));let t=await this.contractWrapper.readContract.getWinningBid(e);if(t._bidder!==ar.constants.AddressZero)return await this.mapBid(e.toString(),t._bidder,t._currency,t._bidAmount.toString())}async isWinningBid(e,t){return await this.contractWrapper.readContract.isNewWinningBid(e,t)}async getWinner(e){let t=await this.validateAuction(ar.BigNumber.from(e)),n=await this.contractWrapper.readContract.getWinningBid(e),a=ar.BigNumber.from(Math.floor(Date.now()/1e3)),i=ar.BigNumber.from(t.endTimeInSeconds);if(a.gt(i)&&n._bidder!==ar.constants.AddressZero)return n._bidder;let c=(await this.contractWrapper.readContract.queryFilter(this.contractWrapper.readContract.filters.AuctionClosed())).find(l=>l.args.auctionId.eq(ar.BigNumber.from(e)));if(!c)throw new Error(`Could not find auction with ID ${e} in closed auctions`);return c.args.winningBidder}async createAuction(e){let t=Flr.parse(e);await ft.handleTokenApproval(this.contractWrapper,this.getAddress(),t.assetContractAddress,t.tokenId,await this.contractWrapper.getSignerAddress());let n=await ft.normalizePriceValue(this.contractWrapper.getProvider(),t.buyoutBidAmount,t.currencyContractAddress),a=await ft.normalizePriceValue(this.contractWrapper.getProvider(),t.minimumBidAmount,t.currencyContractAddress),s=(await this.contractWrapper.getProvider().getBlock("latest")).timestamp;t.startTimestamp.lt(s)&&(t.startTimestamp=ar.BigNumber.from(s));let c=await this.contractWrapper.sendTransaction("createAuction",[{assetContract:t.assetContractAddress,tokenId:t.tokenId,quantity:t.quantity,currency:ft.cleanCurrencyAddress(t.currencyContractAddress),minimumBidAmount:a,buyoutBidAmount:n,timeBufferInSeconds:t.timeBufferInSeconds,bidBufferBps:t.bidBufferBps,startTimestamp:t.startTimestamp,endTimestamp:t.endTimestamp}],{gasLimit:5e5});return{id:this.contractWrapper.parseLogs("NewAuction",c?.logs)[0].args.auctionId,receipt:c}}async buyoutAuction(e){let t=await this.validateAuction(ar.BigNumber.from(e)),n=await ft.fetchCurrencyMetadata(this.contractWrapper.getProvider(),t.currencyContractAddress);return this.makeBid(e,ar.ethers.utils.formatUnits(t.buyoutBidAmount,n.decimals))}async makeBid(e,t){let n=await this.validateAuction(ar.BigNumber.from(e)),a=await ft.normalizePriceValue(this.contractWrapper.getProvider(),t,n.currencyContractAddress);if(a.eq(ar.BigNumber.from(0)))throw new Error("Cannot make a bid with 0 value");if(ar.BigNumber.from(n.buyoutBidAmount).gt(0)&&a.gt(n.buyoutBidAmount))throw new Error("Bid amount must be less than or equal to buyoutBidAmount");if(await this.getWinningBid(e)){let c=await this.isWinningBid(e,a);Ww.default(c,"Bid price is too low based on the current winning bid and the bid buffer")}else{let c=a,l=ar.BigNumber.from(n.minimumBidAmount);Ww.default(c.gte(l),"Bid price is too low based on minimum bid amount")}let s=await this.contractWrapper.getCallOverrides()||{};return await ft.setErc20Allowance(this.contractWrapper,a,n.currencyContractAddress,s),{receipt:await this.contractWrapper.sendTransaction("bidInAuction",[e,a],s)}}async cancelAuction(e){if(await this.getWinningBid(e))throw new Error("Bids already made.");return{receipt:await this.contractWrapper.sendTransaction("cancelAuction",[e])}}async closeAuctionForBidder(e,t){t||(t=await this.contractWrapper.getSignerAddress());let n=await this.validateAuction(ar.BigNumber.from(e));try{return{receipt:await this.contractWrapper.sendTransaction("collectAuctionTokens",[ar.BigNumber.from(e)])}}catch(a){throw a.message.includes("Marketplace: auction still active.")?new ft.AuctionHasNotEndedError(e.toString(),n.endTimeInSeconds.toString()):a}}async closeAuctionForSeller(e){let t=await this.validateAuction(ar.BigNumber.from(e));try{return{receipt:await this.contractWrapper.sendTransaction("collectAuctionPayout",[ar.BigNumber.from(e)])}}catch(n){throw n.message.includes("Marketplace: auction still active.")?new ft.AuctionHasNotEndedError(e.toString(),t.endTimeInSeconds.toString()):n}}async executeSale(e){let t=await this.validateAuction(ar.BigNumber.from(e));try{let n=await this.getWinningBid(e);Ww.default(n,"No winning bid found");let a=this.encoder.encode("collectAuctionPayout",[e]),i=this.encoder.encode("collectAuctionTokens",[e]);return await this.contractWrapper.multiCall([a,i])}catch(n){throw n.message.includes("Marketplace: auction still active.")?new ft.AuctionHasNotEndedError(e.toString(),t.endTimeInSeconds.toString()):n}}async getBidBufferBps(e){return(await this.getAuction(e)).bidBufferBps}async getMinimumNextBid(e){let[t,n,a]=await Promise.all([this.getBidBufferBps(e),this.getWinningBid(e),await this.validateAuction(ar.BigNumber.from(e))]),i=n?ar.BigNumber.from(n.bidAmount):ar.BigNumber.from(a.minimumBidAmount),s=i.add(i.mul(t).div(1e4));return ft.fetchCurrencyValue(this.contractWrapper.getProvider(),a.currencyContractAddress,s)}async validateAuction(e){try{return await this.getAuction(e)}catch(t){throw console.error(`Error getting the auction with id ${e}`),t}}async mapAuction(e){let t=ft.Status.UNSET,a=(await this.contractWrapper.getProvider().getBlock("latest")).timestamp;switch(e.status){case 1:t=ar.BigNumber.from(e.startTimestamp).gt(a)?ft.Status.Created:ar.BigNumber.from(e.endTimestamp).lt(a)?ft.Status.Expired:ft.Status.Active;break;case 2:t=ft.Status.Completed;break;case 3:t=ft.Status.Cancelled;break}return{id:e.auctionId.toString(),creatorAddress:e.auctionCreator,assetContractAddress:e.assetContract,tokenId:e.tokenId.toString(),quantity:e.quantity.toString(),currencyContractAddress:e.currency,minimumBidAmount:e.minimumBidAmount.toString(),minimumBidCurrencyValue:await ft.fetchCurrencyValue(this.contractWrapper.getProvider(),e.currency,e.minimumBidAmount),buyoutBidAmount:e.buyoutBidAmount.toString(),buyoutCurrencyValue:await ft.fetchCurrencyValue(this.contractWrapper.getProvider(),e.currency,e.buyoutBidAmount),timeBufferInSeconds:ar.BigNumber.from(e.timeBufferInSeconds).toNumber(),bidBufferBps:ar.BigNumber.from(e.bidBufferBps).toNumber(),startTimeInSeconds:ar.BigNumber.from(e.startTimestamp).toNumber(),endTimeInSeconds:ar.BigNumber.from(e.endTimestamp).toNumber(),asset:await ft.fetchTokenMetadataForContract(e.assetContract,this.contractWrapper.getProvider(),e.tokenId,this.storage),status:t}}async mapBid(e,t,n,a){return{auctionId:e,bidderAddress:t,currencyContractAddress:n,bidAmount:a,bidAmountCurrencyValue:await ft.fetchCurrencyValue(this.contractWrapper.getProvider(),n,a)}}applyFilter(e,t){let n=[...e];return t&&(t.seller&&(n=n.filter(a=>a.auctionCreator.toString().toLowerCase()===t?.seller?.toString().toLowerCase())),t.tokenContract&&(n=n.filter(a=>a.assetContract.toString().toLowerCase()===t?.tokenContract?.toString().toLowerCase())),t.tokenId!==void 0&&(n=n.filter(a=>a.tokenId.toString()===t?.tokenId?.toString()))),t?.count&&t.countthis.mapOffer(l)))}async getAllValid(e){let t=await this.getTotalCount(),n=ar.BigNumber.from(e?.start||0).toNumber(),a=t.toNumber();if(a===0)throw new Error("No offers exist on the contract.");let i=[];i=(await ft.getAllInBatches(n,a,this.contractWrapper.readContract.getAllValidOffers)).flat();let c=this.applyFilter(i,e);return await Promise.all(c.map(l=>this.mapOffer(l)))}async getOffer(e){let t=await this.contractWrapper.readContract.getOffer(e);return await this.mapOffer(t)}async makeOffer(e){let t=Ulr.parse(e),n=await this.contractWrapper.getChainID(),a=ft.isNativeToken(t.currencyContractAddress)?ft.NATIVE_TOKENS[n].wrapped.address:t.currencyContractAddress,i=await ft.normalizePriceValue(this.contractWrapper.getProvider(),t.totalPrice,a),s=await this.contractWrapper.getCallOverrides();await ft.setErc20Allowance(this.contractWrapper,i,a,s);let c=await this.contractWrapper.sendTransaction("makeOffer",[{assetContract:t.assetContractAddress,tokenId:t.tokenId,quantity:t.quantity,currency:a,totalPrice:i,expirationTimestamp:t.endTimestamp}],{gasLimit:5e5});return{id:this.contractWrapper.parseLogs("NewOffer",c?.logs)[0].args.offerId,receipt:c}}async cancelOffer(e){return{receipt:await this.contractWrapper.sendTransaction("cancelOffer",[e])}}async acceptOffer(e){let t=await this.validateOffer(ar.BigNumber.from(e)),{valid:n,error:a}=await this.isStillValidOffer(t);if(!n)throw new Error(`Offer ${e} is no longer valid. ${a}`);let i=await this.contractWrapper.getCallOverrides()||{};return await ft.handleTokenApproval(this.contractWrapper,this.getAddress(),t.assetContractAddress,t.tokenId,await this.contractWrapper.getSignerAddress()),{receipt:await this.contractWrapper.sendTransaction("acceptOffer",[e],i)}}async validateOffer(e){try{return await this.getOffer(e)}catch(t){throw console.error(`Error getting the offer with id ${e}`),t}}async mapOffer(e){let t=ft.Status.UNSET,a=(await this.contractWrapper.getProvider().getBlock("latest")).timestamp;switch(e.status){case 1:t=ar.BigNumber.from(e.expirationTimestamp).lt(a)?ft.Status.Expired:ft.Status.Active;break;case 2:t=ft.Status.Completed;break;case 3:t=ft.Status.Cancelled;break}return{id:e.offerId.toString(),offerorAddress:e.offeror,assetContractAddress:e.assetContract,currencyContractAddress:e.currency,tokenId:e.tokenId.toString(),quantity:e.quantity.toString(),totalPrice:e.totalPrice.toString(),currencyValue:await ft.fetchCurrencyValue(this.contractWrapper.getProvider(),e.currency,e.totalPrice),asset:await ft.fetchTokenMetadataForContract(e.assetContract,this.contractWrapper.getProvider(),e.tokenId,this.storage),endTimeInSeconds:ar.BigNumber.from(e.expirationTimestamp).toNumber(),status:t}}async isStillValidOffer(e){if(ar.BigNumber.from(Math.floor(Date.now()/1e3)).gt(e.endTimeInSeconds))return{valid:!1,error:`Offer with ID ${e.id} has expired`};let n=await this.contractWrapper.getChainID(),a=ft.isNativeToken(e.currencyContractAddress)?ft.NATIVE_TOKENS[n].wrapped.address:e.currencyContractAddress,i=this.contractWrapper.getProvider(),s=new ft.ContractWrapper(i,a,Dlr.default,{});return(await s.readContract.balanceOf(e.offerorAddress)).lt(e.totalPrice)?{valid:!1,error:`Offeror ${e.offerorAddress} doesn't have enough balance of token ${a}`}:(await s.readContract.allowance(e.offerorAddress,this.getAddress())).lt(e.totalPrice)?{valid:!1,error:`Offeror ${e.offerorAddress} hasn't approved enough amount of token ${a}`}:{valid:!0,error:""}}applyFilter(e,t){let n=[...e];return t&&(t.offeror&&(n=n.filter(a=>a.offeror.toString().toLowerCase()===t?.offeror?.toString().toLowerCase())),t.tokenContract&&(n=n.filter(a=>a.assetContract.toString().toLowerCase()===t?.tokenContract?.toString().toLowerCase())),t.tokenId!==void 0&&(n=n.filter(a=>a.tokenId.toString()===t?.tokenId?.toString()))),t?.count&&t.count3&&arguments[3]!==void 0?arguments[3]:{},i=arguments.length>4?arguments[4]:void 0,s=arguments.length>5?arguments[5]:void 0,c=arguments.length>6&&arguments[6]!==void 0?arguments[6]:new ft.ContractWrapper(e,t,i,a);pn._defineProperty(this,"abi",void 0),pn._defineProperty(this,"contractWrapper",void 0),pn._defineProperty(this,"storage",void 0),pn._defineProperty(this,"encoder",void 0),pn._defineProperty(this,"events",void 0),pn._defineProperty(this,"estimator",void 0),pn._defineProperty(this,"platformFees",void 0),pn._defineProperty(this,"metadata",void 0),pn._defineProperty(this,"roles",void 0),pn._defineProperty(this,"interceptor",void 0),pn._defineProperty(this,"_chainId",void 0),this._chainId=s,this.abi=i,this.contractWrapper=c,this.storage=n,this.metadata=new ft.ContractMetadata(this.contractWrapper,ft.MarketplaceContractSchema,this.storage),this.roles=new ft.ContractRoles(this.contractWrapper,jw.contractRoles),this.encoder=new ft.ContractEncoder(this.contractWrapper),this.estimator=new ft.GasCostEstimator(this.contractWrapper),this.events=new ft.ContractEvents(this.contractWrapper),this.platformFees=new ft.ContractPlatformFee(this.contractWrapper),this.interceptor=new ft.ContractInterceptor(this.contractWrapper)}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}async call(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a{"use strict";x();T();var sm=dc(),mc=Hc(),Wlr=_t();Xr();Pn();Un();Wn();jn();zn();Hn();Vn();Gn();Zn();Jn();Kn();Qn();Xn();Yn();$n();ea();ta();ra();na();aa();ia();sa();oa();ca();ua();la();da();pa();ha();fa();ma();ya();ga();va();ba();wa();xa();Ta();_a();Ca();Ea();ka();Sa();Aa();Ma();Ia();Pa();Ra();En();Na();Oa();La();On();Ba();qa();Da();Fa();Ua();Wa();ja();za();Ha();Va();Ga();Za();Ja();Ka();Qa();var zw=class extends mc.StandardErc721{constructor(e,t,n){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},i=arguments.length>4?arguments[4]:void 0,s=arguments.length>5?arguments[5]:void 0,c=arguments.length>6&&arguments[6]!==void 0?arguments[6]:new mc.ContractWrapper(e,t,i,a);super(c,n,s),sm._defineProperty(this,"abi",void 0),sm._defineProperty(this,"encoder",void 0),sm._defineProperty(this,"estimator",void 0),sm._defineProperty(this,"metadata",void 0),sm._defineProperty(this,"events",void 0),sm._defineProperty(this,"roles",void 0),sm._defineProperty(this,"royalties",void 0),sm._defineProperty(this,"owner",void 0),this.abi=i,this.metadata=new mc.ContractMetadata(this.contractWrapper,mc.MultiwrapContractSchema,this.storage),this.roles=new mc.ContractRoles(this.contractWrapper,zw.contractRoles),this.encoder=new mc.ContractEncoder(this.contractWrapper),this.estimator=new mc.GasCostEstimator(this.contractWrapper),this.events=new mc.ContractEvents(this.contractWrapper),this.royalties=new mc.ContractRoyalty(this.contractWrapper,this.metadata),this.owner=new mc.ContractOwner(this.contractWrapper)}async getWrappedContents(e){let t=await this.contractWrapper.readContract.getWrappedContents(e),n=[],a=[],i=[];for(let s of t)switch(s.tokenType){case 0:{let c=await mc.fetchCurrencyMetadata(this.contractWrapper.getProvider(),s.assetContract);n.push({contractAddress:s.assetContract,quantity:Wlr.ethers.utils.formatUnits(s.totalAmount,c.decimals)});break}case 1:{a.push({contractAddress:s.assetContract,tokenId:s.tokenId});break}case 2:{i.push({contractAddress:s.assetContract,tokenId:s.tokenId,quantity:s.totalAmount.toString()});break}}return{erc20Tokens:n,erc721Tokens:a,erc1155Tokens:i}}async wrap(e,t,n){let a=await mc.uploadOrExtractURI(t,this.storage),i=n||await this.contractWrapper.getSignerAddress(),s=await this.toTokenStructList(e),c=await this.contractWrapper.sendTransaction("wrap",[s,a,i]),l=this.contractWrapper.parseLogs("TokensWrapped",c?.logs);if(l.length===0)throw new Error("TokensWrapped event not found");let d=l[0].args.tokenIdOfWrappedToken;return{id:d,receipt:c,data:()=>this.get(d)}}async unwrap(e,t){let n=t||await this.contractWrapper.getSignerAddress();return{receipt:await this.contractWrapper.sendTransaction("unwrap",[e,n])}}async toTokenStructList(e){let t=[],n=this.contractWrapper.getProvider(),a=await this.contractWrapper.getSignerAddress();if(e.erc20Tokens)for(let i of e.erc20Tokens){let s=await mc.normalizePriceValue(n,i.quantity,i.contractAddress);if(!await mc.hasERC20Allowance(this.contractWrapper,i.contractAddress,s))throw new Error(`ERC20 token with contract address "${i.contractAddress}" does not have enough allowance to transfer. +${l}`); + let d = MK(i.abi).map((w) => w.type), + m = this.convertParamValues(d, t); + return this.deployContractWithAbi(i.abi, l, m); + } + async deployContractWithAbi(e, t, n) { + let a = this.getSigner(); + dr.default(a, "Signer is required to deploy contracts"); + let i = await new ie.ethers.ContractFactory(e, t) + .connect(a) + .deploy(...n); + this.events.emit("contractDeployed", { + status: "submitted", + transactionHash: i.deployTransaction.hash, + }); + let s = await i.deployed(); + return ( + this.events.emit("contractDeployed", { + status: "completed", + contractAddress: s.address, + transactionHash: s.deployTransaction.hash, + }), + s.address + ); + } + addDeployListener(e) { + this.events.on("contractDeployed", e); + } + removeDeployListener(e) { + this.events.off("contractDeployed", e); + } + removeAllDeployListeners() { + this.events.removeAllListeners("contractDeployed"); + } + async fetchAndCacheDeployMetadata(e) { + if (this.deployMetadataCache[e]) return this.deployMetadataCache[e]; + let t = await Ow(e, this.storage), + n; + try { + n = await RK(e, this.storage); + } catch {} + let a = { compilerMetadata: t, extendedMetadata: n }; + return (this.deployMetadataCache[e] = a), a; + } + async fetchReleaseFromPolygon(e, t, n) { + let a = await new uh("polygon").getPublisher().getVersion(e, t, n); + if (!a) + throw new Error( + `No release found for '${t}' at version '${n}' by '${e}'` + ); + return a; + } + getConstructorParamsForImplementation(e, t) { + switch (e) { + case Yd.contractType: + case $d.contractType: + return [BM(Q.ChainId.Hardhat).wrapped.address]; + case Gu.contractType: + return [BM(t).wrapped.address, ie.ethers.constants.AddressZero]; + default: + return []; + } + } + hasLocalFactory() { + return S.env.factoryAddress !== void 0; + } + convertParamValues(e, t) { + if (e.length !== t.length) + throw Error( + `Passed the wrong number of constructor arguments: ${t.length}, expected ${e.length}` + ); + return e.map((n, a) => + n === "tuple" || n.endsWith("[]") + ? typeof t[a] == "string" + ? JSON.parse(t[a]) + : t[a] + : n === "bytes32" + ? (dr.default( + ie.ethers.utils.isHexString(t[a]), + `Could not parse bytes32 value. Expected valid hex string but got "${t[a]}".` + ), + ie.ethers.utils.hexZeroPad(t[a], 32)) + : n.startsWith("bytes") + ? (dr.default( + ie.ethers.utils.isHexString(t[a]), + `Could not parse bytes value. Expected valid hex string but got "${t[a]}".` + ), + t[a]) + : n.startsWith("uint") || n.startsWith("int") + ? ie.BigNumber.from(t[a].toString()) + : t[a] + ); + } + }, + KP = class { + constructor(e) { + ue._defineProperty(this, "featureName", XM.name), + ue._defineProperty(this, "contractWrapper", void 0), + (this.contractWrapper = e); + } + async get() { + return this.contractWrapper.readContract.owner(); + } + async set(e) { + return { + receipt: await this.contractWrapper.sendTransaction("setOwner", [ + e, + ]), + }; + } + }, + fHe = {}, + Hcr = new uh("polygon"); + function mHe(r, e) { + return `${r}-${e}`; + } + function zcr(r, e, t) { + fHe[mHe(r, e)] = t; + } + function jcr(r, e) { + return fHe[mHe(r, e)]; + } + async function Jg(r, e, t) { + let n = (await e.getNetwork()).chainId, + a = jcr(r, n); + if (a) return a; + let i; + try { + let s = await m3(r, e); + if (!s) + throw new Error(`Could not resolve metadata for contract at ${r}`); + i = await VP(s, t); + } catch { + try { + let c = await Hcr.multiChainRegistry.getContractMetadataURI(n, r); + i = await VP(c, t); + } catch { + throw new Error(`Could not resolve metadata for contract at ${r}`); + } + } + if (!i) + throw new Error(`Could not resolve metadata for contract at ${r}`); + return zcr(r, n, i), i; + } + async function pu(r, e, t) { + try { + let n = await Jg(r, e, t); + if (n && n.abi) return n.abi; + } catch {} + } + async function VP(r, e) { + let t = await e.downloadJSON(r); + if (!t || !t.output) + throw new Error(`Could not resolve metadata for contract at ${r}`); + let n = Jd.parse(t.output.abi), + a = t.settings.compilationTarget, + i = Object.keys(a), + s = a[i[0]], + c = zK.parse({ + title: t.output.devdoc.title, + author: t.output.devdoc.author, + details: t.output.devdoc.detail, + notice: t.output.userdoc.notice, + }), + l = [ + ...new Set( + Object.entries(t.sources).map((d) => { + let [, m] = d; + return m.license; + }) + ), + ]; + return { name: s, abi: n, metadata: t, info: c, licenses: l }; + } + async function WK(r, e) { + return await Promise.all( + Object.entries(r.metadata.sources).map(async (t) => { + let [n, a] = t, + i = a.urls, + s = i ? i.find((c) => c.includes("ipfs")) : void 0; + if (s) { + let c = s.split("ipfs/")[1], + l = new Promise((m, w) => setTimeout(() => w("timeout"), 3e3)), + d = await Promise.race([ + (await e.download(`ipfs://${c}`)).text(), + l, + ]); + return { filename: n, source: d }; + } else + return { + filename: n, + source: a.content || "Could not find source for this contract", + }; + }) + ); + } + var yHe = du.catchall(xe.z.union([hK, xe.z.unknown()])), + UK = yHe.merge(ro.merge(Nf).merge(ds).partial()), + gHe = Yu.merge(ro.merge(Nf).merge(ds).partial()), + bHe = UK.merge(Vl.merge(b0).merge($u).partial()), + qw = { deploy: bHe, output: gHe, input: UK }, + PWe = xe.z + .object({ type: xe.z.string(), name: xe.z.string() }) + .catchall(xe.z.any()), + sK = PWe.extend({ + stateMutability: xe.z.string().optional(), + components: xe.z.array(PWe).optional(), + }).catchall(xe.z.any()), + vHe = xe.z + .object({ + type: xe.z.string(), + name: xe.z.string().default(""), + inputs: xe.z.array(sK).default([]), + outputs: xe.z.array(sK).default([]), + }) + .catchall(xe.z.any()), + Jd = xe.z.array(vHe), + I3 = xe.z + .object({ + name: xe.z.string(), + metadataUri: xe.z.string(), + bytecodeUri: xe.z.string(), + analytics: xe.z.any().optional(), + }) + .catchall(xe.z.any()), + oK = xe.z.record(xe.z.string(), xe.z.string()), + wHe = xe.z.object({ + implementationAddresses: oK, + implementationInitializerFunction: xe.z.string().default("initialize"), + factoryAddresses: oK.optional(), + }), + HK = xe.z + .object({ + version: xe.z.string().refine( + (r) => { + try { + return Lw(r), !0; + } catch { + return !1; + } + }, + (r) => ({ + message: `'${r}' is not a valid semantic version. Should be in the format of major.minor.patch. Ex: 0.4.1`, + }) + ), + displayName: xe.z.string().optional(), + description: xe.z.string().optional(), + readme: xe.z.string().optional(), + license: xe.z.string().optional(), + changelog: xe.z.string().optional(), + tags: xe.z.array(xe.z.string()).optional(), + audit: ue.FileOrBufferOrStringSchema.nullable().optional(), + logo: ue.FileOrBufferOrStringSchema.nullable().optional(), + isDeployableViaFactory: xe.z.boolean().optional(), + isDeployableViaProxy: xe.z.boolean().optional(), + factoryDeploymentData: wHe.optional(), + constructorParams: xe.z + .record( + xe.z.string(), + xe.z + .object({ + displayName: xe.z.string().optional(), + description: xe.z.string().optional(), + defaultValue: xe.z.string().optional(), + }) + .catchall(xe.z.any()) + ) + .optional(), + }) + .catchall(xe.z.any()), + _He = HK.extend({ + audit: xe.z.string().nullable().optional(), + logo: xe.z.string().nullable().optional(), + }), + xHe = I3.merge(HK).extend({ publisher: Mc.optional() }), + THe = I3.merge(_He).extend({ publisher: Mc.optional() }), + EHe = xe.z.object({ + name: xe.z.string().optional(), + bio: xe.z.string().optional(), + avatar: ue.FileOrBufferOrStringSchema.nullable().optional(), + website: xe.z.string().optional(), + twitter: xe.z.string().optional(), + telegram: xe.z.string().optional(), + facebook: xe.z.string().optional(), + github: xe.z.string().optional(), + medium: xe.z.string().optional(), + linkedin: xe.z.string().optional(), + reddit: xe.z.string().optional(), + discord: xe.z.string().optional(), + }), + CHe = EHe.extend({ avatar: xe.z.string().nullable().optional() }), + IHe = xe.z.object({ + id: xe.z.string(), + timestamp: cu, + metadataUri: xe.z.string(), + }), + zK = xe.z.object({ + title: xe.z.string().optional(), + author: xe.z.string().optional(), + details: xe.z.string().optional(), + notice: xe.z.string().optional(), + }), + AHe = xe.z.object({ + name: xe.z.string(), + abi: Jd, + metadata: xe.z.record(xe.z.string(), xe.z.any()), + info: zK, + licenses: xe.z + .array(xe.z.string().optional()) + .default([]) + .transform((r) => r.filter((e) => e !== void 0)), + }), + kHe = I3.merge(AHe).extend({ bytecode: xe.z.string() }), + Kcr = "https://paper.xyz/api", + Vcr = "2022-08-12", + jK = `${Kcr}/${Vcr}/platform/thirdweb`, + RWe = { + [Q.ChainId.Mainnet]: "Ethereum", + [Q.ChainId.Goerli]: "Goerli", + [Q.ChainId.Polygon]: "Polygon", + [Q.ChainId.Mumbai]: "Mumbai", + [Q.ChainId.Avalanche]: "Avalanche", + }; + function SHe(r) { + return ( + dr.default(r in RWe, `chainId not supported by paper: ${r}`), RWe[r] + ); + } + async function MHe(r, e) { + let t = SHe(e), + a = await ( + await fetch(`${jK}/register-contract?contractAddress=${r}&chain=${t}`) + ).json(); + return ( + dr.default(a.result.id, "Contract is not registered with paper"), + a.result.id + ); + } + var Gcr = { + expiresInMinutes: 15, + feeBearer: "BUYER", + sendEmailOnSuccess: !0, + redirectAfterPayment: !1, + }; + async function PHe(r, e) { + let n = await ( + await fetch(`${jK}/checkout-link-intent`, { + method: "POST", + headers: { "Content-Type": "application/json" }, + body: JSON.stringify({ + contractId: r, + ...Gcr, + ...e, + metadata: { ...e.metadata, via_platform: "thirdweb" }, + hideNativeMint: !0, + hidePaperWallet: !!e.walletAddress, + hideExternalWallet: !0, + hidePayWithCrypto: !0, + usePaperKey: !1, + }), + }) + ).json(); + return ( + dr.default( + n.checkoutLinkIntentUrl, + "Failed to create checkout link intent" + ), + n.checkoutLinkIntentUrl + ); + } + var cK = class { + constructor(e) { + ue._defineProperty(this, "contractWrapper", void 0), + (this.contractWrapper = e); + } + async getCheckoutId() { + return MHe( + this.contractWrapper.readContract.address, + await this.contractWrapper.getChainID() + ); + } + async isEnabled() { + try { + return !!(await this.getCheckoutId()); + } catch { + return !1; + } + } + async createLinkIntent(e) { + return await PHe(await this.getCheckoutId(), e); + } + }; + Q.ALL_ROLES = EK; + Q.APPROVED_IMPLEMENTATIONS = pj; + Q.AbiObjectSchema = vHe; + Q.AbiSchema = Jd; + Q.AbiTypeSchema = sK; + Q.AddressSchema = Mc; + Q.AdminRoleMissingError = Aj; + Q.AssetNotFoundError = gj; + Q.AuctionAlreadyStartedError = WM; + Q.AuctionHasNotEndedError = a3; + Q.BYOCContractMetadataSchema = yHe; + Q.BaseSignaturePayloadInput = YP; + Q.BigNumberSchema = _i; + Q.BigNumberTransformSchema = hK; + Q.BigNumberishSchema = cu; + Q.CHAIN_ID_TO_NAME = Nor; + Q.CHAIN_NAME_TO_ID = LM; + Q.CONTRACTS_MAP = qK; + Q.CONTRACT_ADDRESSES = kw; + Q.CallOverrideSchema = QWe; + Q.ChainIdToAddressSchema = oK; + Q.ChainInfoInputSchema = XWe; + Q.ClaimConditionInputArray = nUe; + Q.ClaimConditionInputSchema = E3; + Q.ClaimConditionMetadataSchema = rUe; + Q.ClaimConditionOutputSchema = bK; + Q.CommonContractOutputSchema = Yu; + Q.CommonContractSchema = du; + Q.CommonPlatformFeeSchema = Vl; + Q.CommonPrimarySaleSchema = b0; + Q.CommonRoyaltySchema = ro; + Q.CommonSymbolSchema = ds; + Q.CommonTrustedForwarderSchema = $u; + Q.CompilerMetadataFetchedSchema = AHe; + Q.ContractDeployer = jP; + Q.ContractEncoder = Mw; + Q.ContractEvents = FP; + Q.ContractInfoSchema = zK; + Q.ContractInterceptor = WP; + Q.ContractMetadata = f0; + Q.ContractOwner = KP; + Q.ContractPlatformFee = UP; + Q.ContractPrimarySale = rP; + Q.ContractPublishedMetadata = HP; + Q.ContractRoles = eP; + Q.ContractRoyalty = tP; + Q.ContractWrapper = ls; + Q.CurrencySchema = eUe; + Q.CurrencyValueSchema = tUe; + Q.CustomContractDeploy = bHe; + Q.CustomContractInput = UK; + Q.CustomContractOutput = gHe; + Q.CustomContractSchema = qw; + Q.DEFAULT_IPFS_GATEWAY = Bor; + Q.DelayedReveal = s3; + Q.DropClaimConditions = g3; + Q.DropErc1155ClaimConditions = wP; + Q.DropErc1155ContractSchema = gUe; + Q.DropErc1155History = Uj; + Q.DropErc20ContractSchema = cHe; + Q.DropErc721ContractSchema = _K; + Q.DuplicateFileNameError = wj; + Q.DuplicateLeafsError = FM; + Q.EditionDropInitializer = lh; + Q.EditionInitializer = m0; + Q.EditionMetadataInputOrUriSchema = Por; + Q.EditionMetadataInputSchema = Mor; + Q.EditionMetadataOutputSchema = RUe; + Q.EditionMetadataWithOwnerOutputSchema = Sor; + Q.EndDateSchema = ZWe; + Q.Erc1155 = w3; + Q.Erc1155BatchMintable = LP; + Q.Erc1155Burnable = BP; + Q.Erc1155Enumerable = NP; + Q.Erc1155LazyMintable = OP; + Q.Erc1155Mintable = DP; + Q.Erc1155SignatureMintable = qP; + Q.Erc20 = b3; + Q.Erc20BatchMintable = xP; + Q.Erc20Burnable = _P; + Q.Erc20Mintable = TP; + Q.Erc20SignatureMintable = EP; + Q.Erc721 = v3; + Q.Erc721BatchMintable = kP; + Q.Erc721Burnable = CP; + Q.Erc721ClaimableWithConditions = IP; + Q.Erc721Enumerable = MP; + Q.Erc721LazyMintable = AP; + Q.Erc721Mintable = SP; + Q.Erc721Supply = PP; + Q.Erc721WithQuantitySignatureMintable = RP; + Q.ExtensionNotImplementedError = Rf; + Q.ExtraPublishMetadataSchemaInput = HK; + Q.ExtraPublishMetadataSchemaOutput = _He; + Q.FEATURE_DIRECT_LISTINGS = Mj; + Q.FEATURE_ENGLISH_AUCTIONS = Pj; + Q.FEATURE_NFT_REVEALABLE = l3; + Q.FEATURE_OFFERS = Rj; + Q.FEATURE_PACK_VRF = Sj; + Q.FactoryDeploymentSchema = wHe; + Q.FetchError = Ej; + Q.FileNameMissingError = vj; + Q.FullPublishMetadataSchemaInput = xHe; + Q.FullPublishMetadataSchemaOutput = THe; + Q.FunctionDeprecatedError = Cj; + Q.GasCostEstimator = y3; + Q.GenericRequest = fUe; + Q.InterfaceId_IERC1155 = x3; + Q.InterfaceId_IERC721 = _3; + Q.InvalidAddressError = yj; + Q.LINK_TOKEN_ADDRESS = ror; + Q.LOCAL_NODE_PKEY = VWe; + Q.ListingNotFoundError = r3; + Q.MarketplaceAuction = Xj; + Q.MarketplaceContractSchema = xK; + Q.MarketplaceDirect = Qj; + Q.MarketplaceInitializer = Yd; + Q.MarketplaceV3Initializer = Pf; + Q.MerkleSchema = Nf; + Q.MintRequest1155 = pUe; + Q.MintRequest20 = lUe; + Q.MintRequest721 = dUe; + Q.MintRequest721withQuantity = hUe; + Q.MissingOwnerRoleError = xj; + Q.MissingRoleError = qM; + Q.MultiwrapContractSchema = lHe; + Q.MultiwrapInitializer = $d; + Q.NATIVE_TOKENS = pK; + Q.NATIVE_TOKEN_ADDRESS = Kl; + Q.NFTCollectionInitializer = y0; + Q.NFTDropInitializer = dh; + Q.NotEnoughTokensError = _j; + Q.NotFoundError = Sw; + Q.OZ_DEFENDER_FORWARDER_ADDRESS = p0; + Q.OptionalPropertiesInput = kor; + Q.PAPER_API_URL = jK; + Q.PREBUILT_CONTRACTS_MAP = Gg; + Q.PackContractSchema = wUe; + Q.PackInitializer = Gu; + Q.PaperCheckout = cK; + Q.PartialClaimConditionInputSchema = ior; + Q.PreDeployMetadata = I3; + Q.PreDeployMetadataFetchedSchema = kHe; + Q.ProfileSchemaInput = EHe; + Q.ProfileSchemaOutput = CHe; + Q.PublishedContractSchema = IHe; + Q.QuantityAboveLimitError = Tj; + Q.RawDateSchema = fK; + Q.RestrictedTransferError = Ij; + Q.SUPPORTED_CHAIN_IDS = KWe; + Q.Signature1155PayloadInput = iUe; + Q.Signature1155PayloadInputWithTokenId = sUe; + Q.Signature1155PayloadOutput = oUe; + Q.Signature20PayloadInput = vK; + Q.Signature20PayloadOutput = aUe; + Q.Signature721PayloadInput = $P; + Q.Signature721PayloadOutput = wK; + Q.Signature721WithQuantityInput = cUe; + Q.Signature721WithQuantityOutput = uUe; + Q.SignatureDropInitializer = ph; + Q.SnapshotEntryInput = OM; + Q.SnapshotEntryWithProofSchema = yK; + Q.SnapshotInfoSchema = aor; + Q.SnapshotInputSchema = T3; + Q.SnapshotSchema = gK; + Q.SplitInitializer = hh; + Q.SplitsContractSchema = xUe; + Q.StandardErc1155 = Zj; + Q.StandardErc20 = Kj; + Q.StandardErc721 = Yj; + Q.StartDateSchema = mK; + Q.ThirdwebSDK = uh; + Q.TokenDropInitializer = g0; + Q.TokenERC20History = jj; + Q.TokenErc1155ContractSchema = kUe; + Q.TokenErc20ContractSchema = EUe; + Q.TokenErc721ContractSchema = IUe; + Q.TokenInitializer = fh; + Q.TokenMintInputSchema = Ror; + Q.TransactionError = UM; + Q.TransactionTask = Gl; + Q.UploadError = bj; + Q.UserWallet = Dw; + Q.VoteContractSchema = PUe; + Q.VoteInitializer = mh; + Q.WrongListingTypeError = n3; + Q.assertEnabled = gr; + Q.buildDefaultMap = BUe; + Q.cleanCurrencyAddress = TK; + Q.convertToReadableQuantity = X5; + Q.createCheckoutLinkIntent = PHe; + Q.createSnapshot = zUe; + Q.detectContractFeature = Ot; + Q.detectFeatures = C3; + Q.extractConstructorParams = ZUe; + Q.extractConstructorParamsFromAbi = MK; + Q.extractEventsFromAbi = tHe; + Q.extractFunctionParamsFromAbi = eHe; + Q.extractFunctions = QUe; + Q.extractFunctionsFromAbi = Nw; + Q.extractIPFSHashFromBytecode = nHe; + Q.extractMinimalProxyImplementationAddress = rHe; + Q.fetchAbiFromAddress = pu; + Q.fetchContractMetadata = VP; + Q.fetchContractMetadataFromAddress = Jg; + Q.fetchCurrencyMetadata = Fw; + Q.fetchCurrencyValue = Gd; + Q.fetchExtendedReleaseMetadata = RK; + Q.fetchPreDeployMetadata = Ow; + Q.fetchRawPredeployMetadata = PK; + Q.fetchRegisteredCheckoutId = MHe; + Q.fetchSnapshotEntryForAddress = ZP; + Q.fetchSourceFilesFromMetadata = WK; + Q.fetchTokenMetadataForContract = QP; + Q.getAllDetectedFeatureNames = Acr; + Q.getAllDetectedFeatures = Icr; + Q.getAllInBatches = Pcr; + Q.getApprovedImplementation = GWe; + Q.getChainProvider = JP; + Q.getContractAddressByChainId = RM; + Q.getContractName = FK; + Q.getContractPublisherAddress = YWe; + Q.getContractTypeForRemoteName = dHe; + Q.getDefaultTrustedForwarders = dK; + Q.getMultichainRegistryAddress = hj; + Q.getNativeTokenByChainId = BM; + Q.getReadOnlyProvider = DM; + Q.getRoleHash = Cw; + Q.handleTokenApproval = LK; + Q.hasERC20Allowance = Qor; + Q.hasFunction = Jo; + Q.hasMatchingAbi = SK; + Q.includesErrorMessage = i3; + Q.isDowngradeVersion = Wcr; + Q.isFeatureEnabled = NK; + Q.isIncrementalVersion = hHe; + Q.isNativeToken = yh; + Q.isTokenApprovedForTransfer = iHe; + Q.mapOffer = DK; + Q.matchesPrebuiltAbi = Tcr; + Q.normalizePriceValue = Zo; + Q.parseChainIdToPaperChain = SHe; + Q.parseRevertReason = OUe; + Q.resolveContractUriFromAddress = m3; + Q.setErc20Allowance = h0; + Q.toChainId = NUe; + Q.toSemver = Lw; + Q.uploadOrExtractURI = AK; + }); + var RHe = N((me) => { + "use strict"; + _(); + x(); + Object.defineProperty(me, "__esModule", { value: !0 }); + var Ycr = Oo(), + ge = kc(); + Gr(); + wt(); + an(); + Bn(); + Nn(); + On(); + Ln(); + Dn(); + qn(); + Fn(); + Wn(); + Un(); + Hn(); + zn(); + jn(); + Kn(); + Vn(); + Gn(); + Yn(); + $n(); + Jn(); + Zn(); + Qn(); + Xn(); + ea(); + ta(); + ra(); + na(); + aa(); + ia(); + sa(); + oa(); + ca(); + ua(); + la(); + da(); + pa(); + ha(); + fa(); + ma(); + ya(); + ga(); + ba(); + va(); + wa(); + _a(); + xa(); + Ta(); + Ea(); + Ca(); + vn(); + Ia(); + Aa(); + ka(); + An(); + Sa(); + Ma(); + Pa(); + Ra(); + Ba(); + Na(); + Oa(); + La(); + Da(); + qa(); + Fa(); + Wa(); + Ua(); + Ha(); + za(); + globalThis.global = globalThis; + me.getRpcUrl = Ycr.getRpcUrl; + me.ALL_ROLES = ge.ALL_ROLES; + me.APPROVED_IMPLEMENTATIONS = ge.APPROVED_IMPLEMENTATIONS; + me.AbiObjectSchema = ge.AbiObjectSchema; + me.AbiSchema = ge.AbiSchema; + me.AbiTypeSchema = ge.AbiTypeSchema; + me.AddressSchema = ge.AddressSchema; + me.AdminRoleMissingError = ge.AdminRoleMissingError; + me.AssetNotFoundError = ge.AssetNotFoundError; + me.AuctionAlreadyStartedError = ge.AuctionAlreadyStartedError; + me.AuctionHasNotEndedError = ge.AuctionHasNotEndedError; + me.BYOCContractMetadataSchema = ge.BYOCContractMetadataSchema; + me.BaseSignaturePayloadInput = ge.BaseSignaturePayloadInput; + me.BigNumberSchema = ge.BigNumberSchema; + me.BigNumberTransformSchema = ge.BigNumberTransformSchema; + me.BigNumberishSchema = ge.BigNumberishSchema; + me.CHAIN_ID_TO_NAME = ge.CHAIN_ID_TO_NAME; + me.CHAIN_NAME_TO_ID = ge.CHAIN_NAME_TO_ID; + me.CONTRACTS_MAP = ge.CONTRACTS_MAP; + me.CONTRACT_ADDRESSES = ge.CONTRACT_ADDRESSES; + me.CallOverrideSchema = ge.CallOverrideSchema; + Object.defineProperty(me, "ChainId", { + enumerable: !0, + get: function () { + return ge.ChainId; + }, + }); + me.ChainIdToAddressSchema = ge.ChainIdToAddressSchema; + me.ChainInfoInputSchema = ge.ChainInfoInputSchema; + me.ClaimConditionInputArray = ge.ClaimConditionInputArray; + me.ClaimConditionInputSchema = ge.ClaimConditionInputSchema; + me.ClaimConditionMetadataSchema = ge.ClaimConditionMetadataSchema; + me.ClaimConditionOutputSchema = ge.ClaimConditionOutputSchema; + Object.defineProperty(me, "ClaimEligibility", { + enumerable: !0, + get: function () { + return ge.ClaimEligibility; + }, + }); + me.CommonContractOutputSchema = ge.CommonContractOutputSchema; + me.CommonContractSchema = ge.CommonContractSchema; + me.CommonPlatformFeeSchema = ge.CommonPlatformFeeSchema; + me.CommonPrimarySaleSchema = ge.CommonPrimarySaleSchema; + me.CommonRoyaltySchema = ge.CommonRoyaltySchema; + me.CommonSymbolSchema = ge.CommonSymbolSchema; + me.CommonTrustedForwarderSchema = ge.CommonTrustedForwarderSchema; + me.CompilerMetadataFetchedSchema = ge.CompilerMetadataFetchedSchema; + me.ContractDeployer = ge.ContractDeployer; + me.ContractEncoder = ge.ContractEncoder; + me.ContractEvents = ge.ContractEvents; + me.ContractInfoSchema = ge.ContractInfoSchema; + me.ContractInterceptor = ge.ContractInterceptor; + me.ContractMetadata = ge.ContractMetadata; + me.ContractOwner = ge.ContractOwner; + me.ContractPlatformFee = ge.ContractPlatformFee; + me.ContractPrimarySale = ge.ContractPrimarySale; + me.ContractPublishedMetadata = ge.ContractPublishedMetadata; + me.ContractRoles = ge.ContractRoles; + me.ContractRoyalty = ge.ContractRoyalty; + me.CurrencySchema = ge.CurrencySchema; + me.CurrencyValueSchema = ge.CurrencyValueSchema; + me.CustomContractDeploy = ge.CustomContractDeploy; + me.CustomContractInput = ge.CustomContractInput; + me.CustomContractOutput = ge.CustomContractOutput; + me.CustomContractSchema = ge.CustomContractSchema; + me.DEFAULT_IPFS_GATEWAY = ge.DEFAULT_IPFS_GATEWAY; + me.DelayedReveal = ge.DelayedReveal; + me.DropClaimConditions = ge.DropClaimConditions; + me.DropErc1155ClaimConditions = ge.DropErc1155ClaimConditions; + me.DropErc1155History = ge.DropErc1155History; + me.DuplicateFileNameError = ge.DuplicateFileNameError; + me.DuplicateLeafsError = ge.DuplicateLeafsError; + me.EditionDropInitializer = ge.EditionDropInitializer; + me.EditionInitializer = ge.EditionInitializer; + me.EditionMetadataInputOrUriSchema = ge.EditionMetadataInputOrUriSchema; + me.EditionMetadataInputSchema = ge.EditionMetadataInputSchema; + me.EditionMetadataOutputSchema = ge.EditionMetadataOutputSchema; + me.EditionMetadataWithOwnerOutputSchema = + ge.EditionMetadataWithOwnerOutputSchema; + me.EndDateSchema = ge.EndDateSchema; + me.Erc1155 = ge.Erc1155; + me.Erc1155BatchMintable = ge.Erc1155BatchMintable; + me.Erc1155Burnable = ge.Erc1155Burnable; + me.Erc1155Enumerable = ge.Erc1155Enumerable; + me.Erc1155LazyMintable = ge.Erc1155LazyMintable; + me.Erc1155Mintable = ge.Erc1155Mintable; + me.Erc1155SignatureMintable = ge.Erc1155SignatureMintable; + me.Erc20 = ge.Erc20; + me.Erc20BatchMintable = ge.Erc20BatchMintable; + me.Erc20Burnable = ge.Erc20Burnable; + me.Erc20Mintable = ge.Erc20Mintable; + me.Erc20SignatureMintable = ge.Erc20SignatureMintable; + me.Erc721 = ge.Erc721; + me.Erc721BatchMintable = ge.Erc721BatchMintable; + me.Erc721Burnable = ge.Erc721Burnable; + me.Erc721ClaimableWithConditions = ge.Erc721ClaimableWithConditions; + me.Erc721Enumerable = ge.Erc721Enumerable; + me.Erc721LazyMintable = ge.Erc721LazyMintable; + me.Erc721Mintable = ge.Erc721Mintable; + me.Erc721Supply = ge.Erc721Supply; + me.Erc721WithQuantitySignatureMintable = + ge.Erc721WithQuantitySignatureMintable; + Object.defineProperty(me, "EventType", { + enumerable: !0, + get: function () { + return ge.EventType; + }, + }); + me.ExtensionNotImplementedError = ge.ExtensionNotImplementedError; + me.ExtraPublishMetadataSchemaInput = ge.ExtraPublishMetadataSchemaInput; + me.ExtraPublishMetadataSchemaOutput = ge.ExtraPublishMetadataSchemaOutput; + me.FactoryDeploymentSchema = ge.FactoryDeploymentSchema; + me.FetchError = ge.FetchError; + me.FileNameMissingError = ge.FileNameMissingError; + me.FullPublishMetadataSchemaInput = ge.FullPublishMetadataSchemaInput; + me.FullPublishMetadataSchemaOutput = ge.FullPublishMetadataSchemaOutput; + me.FunctionDeprecatedError = ge.FunctionDeprecatedError; + me.GasCostEstimator = ge.GasCostEstimator; + me.GenericRequest = ge.GenericRequest; + me.InterfaceId_IERC1155 = ge.InterfaceId_IERC1155; + me.InterfaceId_IERC721 = ge.InterfaceId_IERC721; + me.InvalidAddressError = ge.InvalidAddressError; + me.LINK_TOKEN_ADDRESS = ge.LINK_TOKEN_ADDRESS; + me.LOCAL_NODE_PKEY = ge.LOCAL_NODE_PKEY; + me.ListingNotFoundError = ge.ListingNotFoundError; + Object.defineProperty(me, "ListingType", { + enumerable: !0, + get: function () { + return ge.ListingType; + }, + }); + me.MarketplaceAuction = ge.MarketplaceAuction; + me.MarketplaceDirect = ge.MarketplaceDirect; + me.MarketplaceInitializer = ge.MarketplaceInitializer; + me.MarketplaceV3Initializer = ge.MarketplaceV3Initializer; + me.MerkleSchema = ge.MerkleSchema; + me.MintRequest1155 = ge.MintRequest1155; + me.MintRequest20 = ge.MintRequest20; + me.MintRequest721 = ge.MintRequest721; + me.MintRequest721withQuantity = ge.MintRequest721withQuantity; + me.MissingOwnerRoleError = ge.MissingOwnerRoleError; + me.MissingRoleError = ge.MissingRoleError; + me.MultiwrapInitializer = ge.MultiwrapInitializer; + me.NATIVE_TOKENS = ge.NATIVE_TOKENS; + me.NATIVE_TOKEN_ADDRESS = ge.NATIVE_TOKEN_ADDRESS; + me.NFTCollectionInitializer = ge.NFTCollectionInitializer; + me.NFTDropInitializer = ge.NFTDropInitializer; + me.NotEnoughTokensError = ge.NotEnoughTokensError; + me.NotFoundError = ge.NotFoundError; + me.OZ_DEFENDER_FORWARDER_ADDRESS = ge.OZ_DEFENDER_FORWARDER_ADDRESS; + me.OptionalPropertiesInput = ge.OptionalPropertiesInput; + me.PAPER_API_URL = ge.PAPER_API_URL; + me.PREBUILT_CONTRACTS_MAP = ge.PREBUILT_CONTRACTS_MAP; + me.PackInitializer = ge.PackInitializer; + me.PaperCheckout = ge.PaperCheckout; + me.PartialClaimConditionInputSchema = ge.PartialClaimConditionInputSchema; + me.PreDeployMetadata = ge.PreDeployMetadata; + me.PreDeployMetadataFetchedSchema = ge.PreDeployMetadataFetchedSchema; + me.ProfileSchemaInput = ge.ProfileSchemaInput; + me.ProfileSchemaOutput = ge.ProfileSchemaOutput; + Object.defineProperty(me, "ProposalState", { + enumerable: !0, + get: function () { + return ge.ProposalState; + }, + }); + me.PublishedContractSchema = ge.PublishedContractSchema; + me.QuantityAboveLimitError = ge.QuantityAboveLimitError; + me.RawDateSchema = ge.RawDateSchema; + me.RestrictedTransferError = ge.RestrictedTransferError; + me.SUPPORTED_CHAIN_IDS = ge.SUPPORTED_CHAIN_IDS; + me.Signature1155PayloadInput = ge.Signature1155PayloadInput; + me.Signature1155PayloadInputWithTokenId = + ge.Signature1155PayloadInputWithTokenId; + me.Signature1155PayloadOutput = ge.Signature1155PayloadOutput; + me.Signature20PayloadInput = ge.Signature20PayloadInput; + me.Signature20PayloadOutput = ge.Signature20PayloadOutput; + me.Signature721PayloadInput = ge.Signature721PayloadInput; + me.Signature721PayloadOutput = ge.Signature721PayloadOutput; + me.Signature721WithQuantityInput = ge.Signature721WithQuantityInput; + me.Signature721WithQuantityOutput = ge.Signature721WithQuantityOutput; + me.SignatureDropInitializer = ge.SignatureDropInitializer; + me.SnapshotEntryInput = ge.SnapshotEntryInput; + me.SnapshotEntryWithProofSchema = ge.SnapshotEntryWithProofSchema; + me.SnapshotInfoSchema = ge.SnapshotInfoSchema; + me.SnapshotInputSchema = ge.SnapshotInputSchema; + me.SnapshotSchema = ge.SnapshotSchema; + me.SplitInitializer = ge.SplitInitializer; + me.StandardErc1155 = ge.StandardErc1155; + me.StandardErc20 = ge.StandardErc20; + me.StandardErc721 = ge.StandardErc721; + me.StartDateSchema = ge.StartDateSchema; + Object.defineProperty(me, "Status", { + enumerable: !0, + get: function () { + return ge.Status; + }, + }); + me.ThirdwebSDK = ge.ThirdwebSDK; + me.TokenDropInitializer = ge.TokenDropInitializer; + me.TokenERC20History = ge.TokenERC20History; + me.TokenInitializer = ge.TokenInitializer; + me.TokenMintInputSchema = ge.TokenMintInputSchema; + me.TransactionError = ge.TransactionError; + me.TransactionTask = ge.TransactionTask; + me.UploadError = ge.UploadError; + me.UserWallet = ge.UserWallet; + me.VoteInitializer = ge.VoteInitializer; + Object.defineProperty(me, "VoteType", { + enumerable: !0, + get: function () { + return ge.VoteType; + }, + }); + me.WrongListingTypeError = ge.WrongListingTypeError; + me.assertEnabled = ge.assertEnabled; + me.buildDefaultMap = ge.buildDefaultMap; + me.convertToReadableQuantity = ge.convertToReadableQuantity; + me.createCheckoutLinkIntent = ge.createCheckoutLinkIntent; + me.createSnapshot = ge.createSnapshot; + me.detectContractFeature = ge.detectContractFeature; + me.detectFeatures = ge.detectFeatures; + me.extractConstructorParams = ge.extractConstructorParams; + me.extractConstructorParamsFromAbi = ge.extractConstructorParamsFromAbi; + me.extractEventsFromAbi = ge.extractEventsFromAbi; + me.extractFunctionParamsFromAbi = ge.extractFunctionParamsFromAbi; + me.extractFunctions = ge.extractFunctions; + me.extractFunctionsFromAbi = ge.extractFunctionsFromAbi; + me.extractIPFSHashFromBytecode = ge.extractIPFSHashFromBytecode; + me.extractMinimalProxyImplementationAddress = + ge.extractMinimalProxyImplementationAddress; + me.fetchAbiFromAddress = ge.fetchAbiFromAddress; + me.fetchContractMetadata = ge.fetchContractMetadata; + me.fetchContractMetadataFromAddress = ge.fetchContractMetadataFromAddress; + me.fetchCurrencyMetadata = ge.fetchCurrencyMetadata; + me.fetchCurrencyValue = ge.fetchCurrencyValue; + me.fetchExtendedReleaseMetadata = ge.fetchExtendedReleaseMetadata; + me.fetchPreDeployMetadata = ge.fetchPreDeployMetadata; + me.fetchRawPredeployMetadata = ge.fetchRawPredeployMetadata; + me.fetchRegisteredCheckoutId = ge.fetchRegisteredCheckoutId; + me.fetchSnapshotEntryForAddress = ge.fetchSnapshotEntryForAddress; + me.fetchSourceFilesFromMetadata = ge.fetchSourceFilesFromMetadata; + me.getAllDetectedFeatureNames = ge.getAllDetectedFeatureNames; + me.getAllDetectedFeatures = ge.getAllDetectedFeatures; + me.getApprovedImplementation = ge.getApprovedImplementation; + me.getChainProvider = ge.getChainProvider; + me.getContractAddressByChainId = ge.getContractAddressByChainId; + me.getContractName = ge.getContractName; + me.getContractPublisherAddress = ge.getContractPublisherAddress; + me.getContractTypeForRemoteName = ge.getContractTypeForRemoteName; + me.getDefaultTrustedForwarders = ge.getDefaultTrustedForwarders; + me.getMultichainRegistryAddress = ge.getMultichainRegistryAddress; + me.getNativeTokenByChainId = ge.getNativeTokenByChainId; + me.getReadOnlyProvider = ge.getReadOnlyProvider; + me.getRoleHash = ge.getRoleHash; + me.hasFunction = ge.hasFunction; + me.hasMatchingAbi = ge.hasMatchingAbi; + me.includesErrorMessage = ge.includesErrorMessage; + me.isDowngradeVersion = ge.isDowngradeVersion; + me.isFeatureEnabled = ge.isFeatureEnabled; + me.isIncrementalVersion = ge.isIncrementalVersion; + me.matchesPrebuiltAbi = ge.matchesPrebuiltAbi; + me.normalizePriceValue = ge.normalizePriceValue; + me.parseChainIdToPaperChain = ge.parseChainIdToPaperChain; + me.parseRevertReason = ge.parseRevertReason; + me.resolveContractUriFromAddress = ge.resolveContractUriFromAddress; + me.toChainId = ge.toChainId; + me.toSemver = ge.toSemver; + }); + var ec = N((Xo) => { + "use strict"; + _(); + x(); + var $cr = Gr(), + Ww = wt(), + $t = an(); + function Jcr(r) { + return r && r.__esModule ? r : { default: r }; + } + var Uw = Jcr($cr), + LHe = "c6634ad2d97b74baf15ff556016830c251050e6c36b9da508ce3ec80095d3dc1"; + function Zcr(r) { + let e = + arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : LHe; + return `https://${r}.rpc.thirdweb.com/${e}`; + } + var Qcr = () => typeof window < "u", + BHe = Qcr() ? $t.z.instanceof(File) : $t.z.instanceof(P.Buffer), + Xcr = $t.z.union([ + BHe, + $t.z.object({ + data: $t.z.union([BHe, $t.z.string()]), + name: $t.z.string(), + }), + ]), + e9 = $t.z.union([Xcr, $t.z.string()]), + DHe = 1e4, + eur = $t.z.union([$t.z.array($t.z.number()), $t.z.string()]), + tur = $t.z + .union([ + $t.z.string(), + $t.z.number(), + $t.z.bigint(), + $t.z.custom((r) => Ww.BigNumber.isBigNumber(r)), + $t.z.custom((r) => Uw.default.isBN(r)), + ]) + .transform((r) => { + let e = Uw.default.isBN(r) + ? new Uw.default(r).toString() + : Ww.BigNumber.from(r).toString(); + return Ww.BigNumber.from(e); + }); + tur.transform((r) => r.toString()); + var qHe = $t.z + .union([ + $t.z.bigint(), + $t.z.custom((r) => Ww.BigNumber.isBigNumber(r)), + $t.z.custom((r) => Uw.default.isBN(r)), + ]) + .transform((r) => + Uw.default.isBN(r) + ? new Uw.default(r).toString() + : Ww.BigNumber.from(r).toString() + ), + rur = $t.z + .number() + .max(DHe, "Cannot exceed 100%") + .min(0, "Cannot be below 0%"), + nur = $t.z + .number() + .max(100, "Cannot exceed 100%") + .min(0, "Cannot be below 0%"), + aur = $t.z.union([ + $t.z + .string() + .regex(/^([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/, "Invalid hex color"), + $t.z + .string() + .regex(/^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/, "Invalid hex color") + .transform((r) => r.replace("#", "")), + $t.z.string().length(0), + ]), + FHe = $t.z + .union([ + $t.z.string().regex(/^([0-9]+\.?[0-9]*|\.[0-9]+)$/, "Invalid amount"), + $t.z.number().min(0, "Amount cannot be negative"), + ]) + .transform((r) => (typeof r == "number" ? r.toString() : r)), + iur = $t.z.union([FHe, $t.z.literal("unlimited")]).default("unlimited"), + WHe = $t.z + .date() + .transform((r) => Ww.BigNumber.from(Math.floor(r.getTime() / 1e3))); + WHe.default(new Date(0)); + WHe.default(new Date(Date.now() + 1e3 * 60 * 60 * 24 * 365 * 10)); + function sur(r, e) { + if (typeof r != "object" || r === null) return r; + var t = r[Symbol.toPrimitive]; + if (t !== void 0) { + var n = t.call(r, e || "default"); + if (typeof n != "object") return n; + throw new TypeError("@@toPrimitive must return a primitive value."); + } + return (e === "string" ? String : Number)(r); + } + function our(r) { + var e = sur(r, "string"); + return typeof e == "symbol" ? e : String(e); + } + function cur(r, e, t) { + return ( + (e = our(e)), + e in r + ? Object.defineProperty(r, e, { + value: t, + enumerable: !0, + configurable: !0, + writable: !0, + }) + : (r[e] = t), + r + ); + } + var NHe = $t.z.object({}).catchall($t.z.union([qHe, $t.z.unknown()])), + OHe = $t.z.union([$t.z.array(NHe), NHe]).optional(), + VK = $t.z + .object({ + name: $t.z.union([$t.z.string(), $t.z.number()]).optional(), + description: $t.z.string().nullable().optional(), + image: e9.nullable().optional(), + external_url: e9.nullable().optional(), + animation_url: e9.optional(), + background_color: aur.optional(), + properties: OHe, + attributes: OHe, + }) + .catchall($t.z.union([qHe, $t.z.unknown()])), + uur = $t.z.union([VK, $t.z.string()]), + lur = VK.extend({ + id: $t.z.string(), + uri: $t.z.string(), + image: $t.z.string().nullable().optional(), + external_url: $t.z.string().nullable().optional(), + animation_url: $t.z.string().nullable().optional(), + }), + KK = 100, + dur = $t.z + .object({ + start: $t.z.number().default(0), + count: $t.z.number().default(KK), + }) + .default({ start: 0, count: KK }); + Xo.AmountSchema = FHe; + Xo.BasisPointsSchema = rur; + Xo.BytesLikeSchema = eur; + Xo.CommonNFTInput = VK; + Xo.CommonNFTOutput = lur; + Xo.DEFAULT_API_KEY = LHe; + Xo.DEFAULT_QUERY_ALL_COUNT = KK; + Xo.FileOrBufferOrStringSchema = e9; + Xo.MAX_BPS = DHe; + Xo.NFTInputOrUriSchema = uur; + Xo.PercentSchema = nur; + Xo.QuantitySchema = iur; + Xo.QueryAllParamsSchema = dur; + Xo._defineProperty = cur; + Xo.getRpcUrl = Zcr; + }); + var HHe = N((UHe) => { + "use strict"; + _(); + x(); + var tc = ec(), + qs = Rc(), + pur = wt(); + Gr(); + an(); + Bn(); + Nn(); + On(); + Ln(); + Dn(); + qn(); + Fn(); + Wn(); + Un(); + Hn(); + zn(); + jn(); + Kn(); + Vn(); + Gn(); + Yn(); + $n(); + Jn(); + Zn(); + Qn(); + Xn(); + ea(); + ta(); + ra(); + na(); + aa(); + ia(); + sa(); + oa(); + ca(); + ua(); + la(); + da(); + pa(); + ha(); + fa(); + ma(); + ya(); + ga(); + ba(); + va(); + wa(); + _a(); + xa(); + Ta(); + Ea(); + Ca(); + vn(); + Ia(); + Aa(); + ka(); + An(); + Sa(); + Ma(); + Pa(); + Ra(); + Ba(); + Na(); + Oa(); + La(); + Da(); + qa(); + Fa(); + Wa(); + Ua(); + Ha(); + za(); + var Hw = class extends qs.StandardErc1155 { + constructor(e, t, n) { + let a = + arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {}, + i = arguments.length > 4 ? arguments[4] : void 0, + s = arguments.length > 5 ? arguments[5] : void 0, + c = + arguments.length > 6 && arguments[6] !== void 0 + ? arguments[6] + : new qs.ContractWrapper(e, t, i, a); + super(c, n, s), + tc._defineProperty(this, "abi", void 0), + tc._defineProperty(this, "sales", void 0), + tc._defineProperty(this, "platformFees", void 0), + tc._defineProperty(this, "encoder", void 0), + tc._defineProperty(this, "estimator", void 0), + tc._defineProperty(this, "events", void 0), + tc._defineProperty(this, "metadata", void 0), + tc._defineProperty(this, "roles", void 0), + tc._defineProperty(this, "royalties", void 0), + tc._defineProperty(this, "claimConditions", void 0), + tc._defineProperty(this, "checkout", void 0), + tc._defineProperty(this, "history", void 0), + tc._defineProperty(this, "interceptor", void 0), + tc._defineProperty(this, "erc1155", void 0), + tc._defineProperty(this, "owner", void 0), + (this.abi = i), + (this.metadata = new qs.ContractMetadata( + this.contractWrapper, + qs.DropErc1155ContractSchema, + this.storage + )), + (this.roles = new qs.ContractRoles( + this.contractWrapper, + Hw.contractRoles + )), + (this.royalties = new qs.ContractRoyalty( + this.contractWrapper, + this.metadata + )), + (this.sales = new qs.ContractPrimarySale(this.contractWrapper)), + (this.claimConditions = new qs.DropErc1155ClaimConditions( + this.contractWrapper, + this.metadata, + this.storage + )), + (this.events = new qs.ContractEvents(this.contractWrapper)), + (this.history = new qs.DropErc1155History(this.events)), + (this.encoder = new qs.ContractEncoder(this.contractWrapper)), + (this.estimator = new qs.GasCostEstimator(this.contractWrapper)), + (this.platformFees = new qs.ContractPlatformFee( + this.contractWrapper + )), + (this.interceptor = new qs.ContractInterceptor(this.contractWrapper)), + (this.erc1155 = new qs.Erc1155( + this.contractWrapper, + this.storage, + s + )), + (this.checkout = new qs.PaperCheckout(this.contractWrapper)), + (this.owner = new qs.ContractOwner(this.contractWrapper)); + } + onNetworkUpdated(e) { + this.contractWrapper.updateSignerOrProvider(e); + } + getAddress() { + return this.contractWrapper.readContract.address; + } + async getAll(e) { + return this.erc1155.getAll(e); + } + async getOwned(e) { + return this.erc1155.getOwned(e); + } + async getTotalCount() { + return this.erc1155.totalCount(); + } + async isTransferRestricted() { + return !(await this.contractWrapper.readContract.hasRole( + qs.getRoleHash("transfer"), + pur.constants.AddressZero + )); + } + async createBatch(e, t) { + return this.erc1155.lazyMint(e, t); + } + async getClaimTransaction(e, t, n) { + let a = + arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : !0; + return this.erc1155.getClaimTransaction(e, t, n, { + checkERC20Allowance: a, + }); + } + async claimTo(e, t, n) { + let a = + arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : !0; + return this.erc1155.claimTo(e, t, n, { checkERC20Allowance: a }); + } + async claim(e, t) { + let n = + arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !0, + a = await this.contractWrapper.getSignerAddress(); + return this.claimTo(a, e, t, n); + } + async burnTokens(e, t) { + return this.erc1155.burn(e, t); + } + async call(e) { + for ( + var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), a = 1; + a < t; + a++ + ) + n[a - 1] = arguments[a]; + return this.contractWrapper.call(e, ...n); + } + }; + tc._defineProperty(Hw, "contractRoles", ["admin", "minter", "transfer"]); + UHe.EditionDrop = Hw; + }); + var jHe = N((zHe) => { + "use strict"; + _(); + x(); + var hu = ec(), + rc = Rc(), + hur = wt(); + Gr(); + an(); + Bn(); + Nn(); + On(); + Ln(); + Dn(); + qn(); + Fn(); + Wn(); + Un(); + Hn(); + zn(); + jn(); + Kn(); + Vn(); + Gn(); + Yn(); + $n(); + Jn(); + Zn(); + Qn(); + Xn(); + ea(); + ta(); + ra(); + na(); + aa(); + ia(); + sa(); + oa(); + ca(); + ua(); + la(); + da(); + pa(); + ha(); + fa(); + ma(); + ya(); + ga(); + ba(); + va(); + wa(); + _a(); + xa(); + Ta(); + Ea(); + Ca(); + vn(); + Ia(); + Aa(); + ka(); + An(); + Sa(); + Ma(); + Pa(); + Ra(); + Ba(); + Na(); + Oa(); + La(); + Da(); + qa(); + Fa(); + Wa(); + Ua(); + Ha(); + za(); + var zw = class extends rc.StandardErc1155 { + constructor(e, t, n) { + let a = + arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {}, + i = arguments.length > 4 ? arguments[4] : void 0, + s = arguments.length > 5 ? arguments[5] : void 0, + c = + arguments.length > 6 && arguments[6] !== void 0 + ? arguments[6] + : new rc.ContractWrapper(e, t, i, a); + super(c, n, s), + hu._defineProperty(this, "abi", void 0), + hu._defineProperty(this, "metadata", void 0), + hu._defineProperty(this, "roles", void 0), + hu._defineProperty(this, "sales", void 0), + hu._defineProperty(this, "platformFees", void 0), + hu._defineProperty(this, "encoder", void 0), + hu._defineProperty(this, "estimator", void 0), + hu._defineProperty(this, "events", void 0), + hu._defineProperty(this, "royalties", void 0), + hu._defineProperty(this, "signature", void 0), + hu._defineProperty(this, "interceptor", void 0), + hu._defineProperty(this, "erc1155", void 0), + hu._defineProperty(this, "owner", void 0), + (this.abi = i), + (this.metadata = new rc.ContractMetadata( + this.contractWrapper, + rc.TokenErc1155ContractSchema, + this.storage + )), + (this.roles = new rc.ContractRoles( + this.contractWrapper, + zw.contractRoles + )), + (this.royalties = new rc.ContractRoyalty( + this.contractWrapper, + this.metadata + )), + (this.sales = new rc.ContractPrimarySale(this.contractWrapper)), + (this.encoder = new rc.ContractEncoder(this.contractWrapper)), + (this.estimator = new rc.GasCostEstimator(this.contractWrapper)), + (this.events = new rc.ContractEvents(this.contractWrapper)), + (this.platformFees = new rc.ContractPlatformFee( + this.contractWrapper + )), + (this.interceptor = new rc.ContractInterceptor(this.contractWrapper)), + (this.signature = new rc.Erc1155SignatureMintable( + this.contractWrapper, + this.storage, + this.roles + )), + (this.erc1155 = new rc.Erc1155( + this.contractWrapper, + this.storage, + s + )), + (this.owner = new rc.ContractOwner(this.contractWrapper)); + } + onNetworkUpdated(e) { + this.contractWrapper.updateSignerOrProvider(e); + } + getAddress() { + return this.contractWrapper.readContract.address; + } + async getAll(e) { + return this.erc1155.getAll(e); + } + async getOwned(e) { + return this.erc1155.getOwned(e); + } + async getTotalCount() { + return this.erc1155.totalCount(); + } + async isTransferRestricted() { + return !(await this.contractWrapper.readContract.hasRole( + rc.getRoleHash("transfer"), + hur.constants.AddressZero + )); + } + async mint(e) { + return this.erc1155.mint(e); + } + async mintTo(e, t) { + return this.erc1155.mintTo(e, t); + } + async getMintTransaction(e, t) { + return this.erc1155.getMintTransaction(e, t); + } + async mintAdditionalSupply(e, t) { + return this.erc1155.mintAdditionalSupply(e, t); + } + async mintAdditionalSupplyTo(e, t, n) { + return this.erc1155.mintAdditionalSupplyTo(e, t, n); + } + async mintBatch(e) { + return this.erc1155.mintBatch(e); + } + async mintBatchTo(e, t) { + return this.erc1155.mintBatchTo(e, t); + } + async burn(e, t) { + return this.erc1155.burn(e, t); + } + async call(e) { + for ( + var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), a = 1; + a < t; + a++ + ) + n[a - 1] = arguments[a]; + return this.contractWrapper.call(e, ...n); + } + }; + hu._defineProperty(zw, "contractRoles", ["admin", "minter", "transfer"]); + zHe.Edition = zw; + }); + var GHe = N((VHe) => { + "use strict"; + _(); + x(); + var nc = ec(), + Mn = Rc(), + Ju = wt(), + fur = Ln(); + Gr(); + an(); + Bn(); + Nn(); + On(); + Dn(); + qn(); + Fn(); + Wn(); + Un(); + Hn(); + zn(); + jn(); + Kn(); + Vn(); + Gn(); + Yn(); + $n(); + Jn(); + Zn(); + Qn(); + Xn(); + ea(); + ta(); + ra(); + na(); + aa(); + ia(); + sa(); + oa(); + ca(); + ua(); + la(); + da(); + pa(); + ha(); + fa(); + ma(); + ya(); + ga(); + ba(); + va(); + wa(); + _a(); + xa(); + Ta(); + Ea(); + Ca(); + vn(); + Ia(); + Aa(); + ka(); + An(); + Sa(); + Ma(); + Pa(); + Ra(); + Ba(); + Na(); + Oa(); + La(); + Da(); + qa(); + Fa(); + Wa(); + Ua(); + Ha(); + za(); + function mur(r) { + return r && r.__esModule ? r : { default: r }; + } + var KHe = mur(fur), + jw = class { + get chainId() { + return this._chainId; + } + constructor(e, t, n) { + let a = + arguments.length > 3 && arguments[3] !== void 0 + ? arguments[3] + : {}, + i = arguments.length > 4 ? arguments[4] : void 0, + s = arguments.length > 5 ? arguments[5] : void 0, + c = + arguments.length > 6 && arguments[6] !== void 0 + ? arguments[6] + : new Mn.ContractWrapper(e, t, i, a); + nc._defineProperty(this, "abi", void 0), + nc._defineProperty(this, "contractWrapper", void 0), + nc._defineProperty(this, "storage", void 0), + nc._defineProperty(this, "encoder", void 0), + nc._defineProperty(this, "events", void 0), + nc._defineProperty(this, "estimator", void 0), + nc._defineProperty(this, "platformFees", void 0), + nc._defineProperty(this, "metadata", void 0), + nc._defineProperty(this, "roles", void 0), + nc._defineProperty(this, "interceptor", void 0), + nc._defineProperty(this, "direct", void 0), + nc._defineProperty(this, "auction", void 0), + nc._defineProperty(this, "_chainId", void 0), + nc._defineProperty(this, "getAll", this.getAllListings), + (this._chainId = s), + (this.abi = i), + (this.contractWrapper = c), + (this.storage = n), + (this.metadata = new Mn.ContractMetadata( + this.contractWrapper, + Mn.MarketplaceContractSchema, + this.storage + )), + (this.roles = new Mn.ContractRoles( + this.contractWrapper, + jw.contractRoles + )), + (this.encoder = new Mn.ContractEncoder(this.contractWrapper)), + (this.estimator = new Mn.GasCostEstimator(this.contractWrapper)), + (this.direct = new Mn.MarketplaceDirect( + this.contractWrapper, + this.storage + )), + (this.auction = new Mn.MarketplaceAuction( + this.contractWrapper, + this.storage + )), + (this.events = new Mn.ContractEvents(this.contractWrapper)), + (this.platformFees = new Mn.ContractPlatformFee( + this.contractWrapper + )), + (this.interceptor = new Mn.ContractInterceptor( + this.contractWrapper + )); + } + onNetworkUpdated(e) { + this.contractWrapper.updateSignerOrProvider(e); + } + getAddress() { + return this.contractWrapper.readContract.address; + } + async getListing(e) { + let t = await this.contractWrapper.readContract.listings(e); + if (t.assetContract === Ju.constants.AddressZero) + throw new Mn.ListingNotFoundError(this.getAddress(), e.toString()); + switch (t.listingType) { + case Mn.ListingType.Auction: + return await this.auction.mapListing(t); + case Mn.ListingType.Direct: + return await this.direct.mapListing(t); + default: + throw new Error(`Unknown listing type: ${t.listingType}`); + } + } + async getActiveListings(e) { + let t = await this.getAllListingsNoFilter(!0), + n = this.applyFilter(t, e), + a = Ju.BigNumber.from(Math.floor(Date.now() / 1e3)); + return n.filter( + (i) => + (i.type === Mn.ListingType.Auction && + Ju.BigNumber.from(i.endTimeInEpochSeconds).gt(a) && + Ju.BigNumber.from(i.startTimeInEpochSeconds).lte(a)) || + (i.type === Mn.ListingType.Direct && i.quantity > 0) + ); + } + async getAllListings(e) { + let t = await this.getAllListingsNoFilter(!1); + return this.applyFilter(t, e); + } + async getTotalCount() { + return await this.contractWrapper.readContract.totalListings(); + } + async isRestrictedToListerRoleOnly() { + return !(await this.contractWrapper.readContract.hasRole( + Mn.getRoleHash("lister"), + Ju.constants.AddressZero + )); + } + async getBidBufferBps() { + return this.contractWrapper.readContract.bidBufferBps(); + } + async getTimeBufferInSeconds() { + return this.contractWrapper.readContract.timeBuffer(); + } + async getOffers(e) { + let t = await this.events.getEvents("NewOffer", { + order: "desc", + filters: { listingId: e }, + }); + return await Promise.all( + t.map( + async (n) => + await Mn.mapOffer( + this.contractWrapper.getProvider(), + Ju.BigNumber.from(e), + { + quantityWanted: n.data.quantityWanted, + pricePerToken: n.data.quantityWanted.gt(0) + ? n.data.totalOfferAmount.div(n.data.quantityWanted) + : n.data.totalOfferAmount, + currency: n.data.currency, + offeror: n.data.offeror, + } + ) + ) + ); + } + async buyoutListing(e, t, n) { + let a = await this.contractWrapper.readContract.listings(e); + if (a.listingId.toString() !== e.toString()) + throw new Mn.ListingNotFoundError(this.getAddress(), e.toString()); + switch (a.listingType) { + case Mn.ListingType.Direct: + return ( + KHe.default( + t !== void 0, + "quantityDesired is required when buying out a direct listing" + ), + await this.direct.buyoutListing(e, t, n) + ); + case Mn.ListingType.Auction: + return await this.auction.buyoutListing(e); + default: + throw Error(`Unknown listing type: ${a.listingType}`); + } + } + async makeOffer(e, t, n) { + let a = await this.contractWrapper.readContract.listings(e); + if (a.listingId.toString() !== e.toString()) + throw new Mn.ListingNotFoundError(this.getAddress(), e.toString()); + let i = await this.contractWrapper.getChainID(); + switch (a.listingType) { + case Mn.ListingType.Direct: + return ( + KHe.default( + n, + "quantity is required when making an offer on a direct listing" + ), + await this.direct.makeOffer( + e, + n, + Mn.isNativeToken(a.currency) + ? Mn.NATIVE_TOKENS[i].wrapped.address + : a.currency, + t + ) + ); + case Mn.ListingType.Auction: + return await this.auction.makeBid(e, t); + default: + throw Error(`Unknown listing type: ${a.listingType}`); + } + } + async setBidBufferBps(e) { + await this.roles.verify( + ["admin"], + await this.contractWrapper.getSignerAddress() + ); + let t = await this.getTimeBufferInSeconds(); + await this.contractWrapper.sendTransaction("setAuctionBuffers", [ + t, + Ju.BigNumber.from(e), + ]); + } + async setTimeBufferInSeconds(e) { + await this.roles.verify( + ["admin"], + await this.contractWrapper.getSignerAddress() + ); + let t = await this.getBidBufferBps(); + await this.contractWrapper.sendTransaction("setAuctionBuffers", [ + Ju.BigNumber.from(e), + t, + ]); + } + async allowListingFromSpecificAssetOnly(e) { + let t = []; + (await this.roles.get("asset")).includes(Ju.constants.AddressZero) && + t.push( + this.encoder.encode("revokeRole", [ + Mn.getRoleHash("asset"), + Ju.constants.AddressZero, + ]) + ), + t.push( + this.encoder.encode("grantRole", [Mn.getRoleHash("asset"), e]) + ), + await this.contractWrapper.multiCall(t); + } + async allowListingFromAnyAsset() { + let e = [], + t = await this.roles.get("asset"); + for (let n in t) + e.push( + this.encoder.encode("revokeRole", [Mn.getRoleHash("asset"), n]) + ); + e.push( + this.encoder.encode("grantRole", [ + Mn.getRoleHash("asset"), + Ju.constants.AddressZero, + ]) + ), + await this.contractWrapper.multiCall(e); + } + async getAllListingsNoFilter(e) { + return ( + await Promise.all( + Array.from( + Array( + ( + await this.contractWrapper.readContract.totalListings() + ).toNumber() + ).keys() + ).map(async (n) => { + let a; + try { + a = await this.getListing(n); + } catch (i) { + if (i instanceof Mn.ListingNotFoundError) return; + console.warn( + `Failed to get listing ${n}' - skipping. Try 'marketplace.getListing(${n})' to get the underlying error.` + ); + return; + } + if (a.type === Mn.ListingType.Auction) return a; + if (e) { + let { valid: i } = await this.direct.isStillValidListing(a); + if (!i) return; + } + return a; + }) + ) + ).filter((n) => n !== void 0); + } + applyFilter(e, t) { + let n = [...e], + a = Ju.BigNumber.from(t?.start || 0).toNumber(), + i = Ju.BigNumber.from( + t?.count || nc.DEFAULT_QUERY_ALL_COUNT + ).toNumber(); + return ( + t && + (t.seller && + (n = n.filter( + (s) => + s.sellerAddress.toString().toLowerCase() === + t?.seller?.toString().toLowerCase() + )), + t.tokenContract && + (n = n.filter( + (s) => + s.assetContractAddress.toString().toLowerCase() === + t?.tokenContract?.toString().toLowerCase() + )), + t.tokenId !== void 0 && + (n = n.filter( + (s) => s.tokenId.toString() === t?.tokenId?.toString() + )), + (n = n.filter((s, c) => c >= a)), + (n = n.slice(0, i))), + n + ); + } + async call(e) { + for ( + var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), a = 1; + a < t; + a++ + ) + n[a - 1] = arguments[a]; + return this.contractWrapper.call(e, ...n); + } + }; + nc._defineProperty(jw, "contractRoles", ["admin", "lister", "asset"]); + VHe.Marketplace = jw; + }); + var JHe = N(($He) => { + "use strict"; + _(); + x(); + var on = ec(), + pt = Rc(), + t9 = an(), + yur = Bn(), + gur = Nn(), + bur = On(), + er = wt(), + vur = Ln(), + wur = Hn(); + Gr(); + Dn(); + qn(); + Fn(); + Wn(); + Un(); + zn(); + jn(); + Kn(); + Vn(); + Gn(); + Yn(); + $n(); + Jn(); + Zn(); + Qn(); + Xn(); + ea(); + ta(); + ra(); + na(); + aa(); + ia(); + sa(); + oa(); + ca(); + ua(); + la(); + da(); + pa(); + ha(); + fa(); + ma(); + ya(); + ga(); + ba(); + va(); + wa(); + _a(); + xa(); + Ta(); + Ea(); + Ca(); + vn(); + Ia(); + Aa(); + ka(); + An(); + Sa(); + Ma(); + Pa(); + Ra(); + Ba(); + Na(); + Oa(); + La(); + Da(); + qa(); + Fa(); + Wa(); + Ua(); + Ha(); + za(); + function A3(r) { + return r && r.__esModule ? r : { default: r }; + } + var _ur = A3(yur), + xur = A3(gur), + Tur = A3(bur), + Kw = A3(vur), + Eur = A3(wur), + YHe = t9.z.object({ + assetContractAddress: pt.AddressSchema, + tokenId: pt.BigNumberishSchema, + quantity: pt.BigNumberishSchema.default(1), + currencyContractAddress: pt.AddressSchema.default( + pt.NATIVE_TOKEN_ADDRESS + ), + pricePerToken: on.AmountSchema, + startTimestamp: pt.RawDateSchema.default(new Date()), + endTimestamp: pt.EndDateSchema, + isReservedListing: t9.z.boolean().default(!1), + }), + GK = class { + constructor(e, t) { + on._defineProperty( + this, + "featureName", + pt.FEATURE_DIRECT_LISTINGS.name + ), + on._defineProperty(this, "contractWrapper", void 0), + on._defineProperty(this, "storage", void 0), + on._defineProperty(this, "events", void 0), + on._defineProperty(this, "interceptor", void 0), + on._defineProperty(this, "encoder", void 0), + on._defineProperty(this, "estimator", void 0), + (this.contractWrapper = e), + (this.storage = t), + (this.events = new pt.ContractEvents(this.contractWrapper)), + (this.encoder = new pt.ContractEncoder(this.contractWrapper)), + (this.interceptor = new pt.ContractInterceptor( + this.contractWrapper + )), + (this.estimator = new pt.GasCostEstimator(this.contractWrapper)); + } + getAddress() { + return this.contractWrapper.readContract.address; + } + async getTotalCount() { + return await this.contractWrapper.readContract.totalListings(); + } + async getAll(e) { + let t = await this.getTotalCount(), + n = er.BigNumber.from(e?.start || 0).toNumber(), + a = t.toNumber(); + if (a === 0) throw new Error("No listings exist on the contract."); + let i = []; + i = ( + await pt.getAllInBatches( + n, + a, + this.contractWrapper.readContract.getAllListings + ) + ).flat(); + let c = this.applyFilter(i, e); + return await Promise.all(c.map((l) => this.mapListing(l))); + } + async getAllValid(e) { + let t = await this.getTotalCount(), + n = er.BigNumber.from(e?.start || 0).toNumber(), + a = t.toNumber(); + if (a === 0) throw new Error("No listings exist on the contract."); + let i = []; + i = ( + await pt.getAllInBatches( + n, + a, + this.contractWrapper.readContract.getAllValidListings + ) + ).flat(); + let c = this.applyFilter(i, e); + return await Promise.all(c.map((l) => this.mapListing(l))); + } + async getListing(e) { + let t = await this.contractWrapper.readContract.getListing(e); + return await this.mapListing(t); + } + async isBuyerApprovedForListing(e, t) { + if ( + !(await this.validateListing(er.BigNumber.from(e))) + .isReservedListing + ) + throw new Error(`Listing ${e} is not a reserved listing.`); + return await this.contractWrapper.readContract.isBuyerApprovedForListing( + e, + t + ); + } + async isCurrencyApprovedForListing(e, t) { + return ( + await this.validateListing(er.BigNumber.from(e)), + await this.contractWrapper.readContract.isCurrencyApprovedForListing( + e, + t + ) + ); + } + async currencyPriceForListing(e, t) { + let n = await this.validateListing(er.BigNumber.from(e)); + if (t === n.currencyContractAddress) return n.pricePerToken; + if (!(await this.isCurrencyApprovedForListing(e, t))) + throw new Error(`Currency ${t} is not approved for Listing ${e}.`); + return await this.contractWrapper.readContract.currencyPriceForListing( + e, + t + ); + } + async createListing(e) { + let t = YHe.parse(e); + await pt.handleTokenApproval( + this.contractWrapper, + this.getAddress(), + t.assetContractAddress, + t.tokenId, + await this.contractWrapper.getSignerAddress() + ); + let n = await pt.normalizePriceValue( + this.contractWrapper.getProvider(), + t.pricePerToken, + t.currencyContractAddress + ), + i = (await this.contractWrapper.getProvider().getBlock("latest")) + .timestamp; + t.startTimestamp.lt(i) && (t.startTimestamp = er.BigNumber.from(i)); + let s = await this.contractWrapper.sendTransaction( + "createListing", + [ + { + assetContract: t.assetContractAddress, + tokenId: t.tokenId, + quantity: t.quantity, + currency: pt.cleanCurrencyAddress(t.currencyContractAddress), + pricePerToken: n, + startTimestamp: t.startTimestamp, + endTimestamp: t.endTimestamp, + reserved: t.isReservedListing, + }, + ], + { gasLimit: 5e5 } + ); + return { + id: this.contractWrapper.parseLogs("NewListing", s?.logs)[0].args + .listingId, + receipt: s, + }; + } + async updateListing(e, t) { + let n = YHe.parse(t); + await pt.handleTokenApproval( + this.contractWrapper, + this.getAddress(), + n.assetContractAddress, + n.tokenId, + await this.contractWrapper.getSignerAddress() + ); + let a = await pt.normalizePriceValue( + this.contractWrapper.getProvider(), + n.pricePerToken, + n.currencyContractAddress + ), + i = await this.contractWrapper.sendTransaction( + "updateListing", + [ + e, + { + assetContract: n.assetContractAddress, + tokenId: n.tokenId, + quantity: n.quantity, + currency: pt.cleanCurrencyAddress(n.currencyContractAddress), + pricePerToken: a, + startTimestamp: n.startTimestamp, + endTimestamp: n.endTimestamp, + reserved: n.isReservedListing, + }, + ], + { gasLimit: 5e5 } + ); + return { + id: this.contractWrapper.parseLogs("UpdatedListing", i?.logs)[0] + .args.listingId, + receipt: i, + }; + } + async cancelListing(e) { + return { + receipt: await this.contractWrapper.sendTransaction( + "cancelListing", + [e] + ), + }; + } + async buyFromListing(e, t, n) { + let a = await this.validateListing(er.BigNumber.from(e)), + { valid: i, error: s } = await this.isStillValidListing(a, t); + if (!i) throw new Error(`Listing ${e} is no longer valid. ${s}`); + let c = n || (await this.contractWrapper.getSignerAddress()), + l = er.BigNumber.from(t), + d = er.BigNumber.from(a.pricePerToken).mul(l), + m = (await this.contractWrapper.getCallOverrides()) || {}; + return ( + await pt.setErc20Allowance( + this.contractWrapper, + d, + a.currencyContractAddress, + m + ), + { + receipt: await this.contractWrapper.sendTransaction( + "buyFromListing", + [e, c, l, a.currencyContractAddress, d], + m + ), + } + ); + } + async approveBuyerForReservedListing(e, t) { + if (await this.isBuyerApprovedForListing(e, t)) + throw new Error(`Buyer ${t} already approved for listing ${e}.`); + return { + receipt: await this.contractWrapper.sendTransaction( + "approveBuyerForListing", + [e, t, !0] + ), + }; + } + async revokeBuyerApprovalForReservedListing(e, t) { + if (await this.isBuyerApprovedForListing(e, t)) + return { + receipt: await this.contractWrapper.sendTransaction( + "approveBuyerForListing", + [e, t, !1] + ), + }; + throw new Error(`Buyer ${t} not approved for listing ${e}.`); + } + async approveCurrencyForListing(e, t, n) { + let a = await this.validateListing(er.BigNumber.from(e)); + t === a.currencyContractAddress && + Kw.default( + n === a.pricePerToken, + "Approving listing currency with a different price." + ); + let i = + await this.contractWrapper.readContract.currencyPriceForListing( + e, + t + ); + return ( + Kw.default(n === i, "Currency already approved with this price."), + { + receipt: await this.contractWrapper.sendTransaction( + "approveCurrencyForListing", + [e, t, n] + ), + } + ); + } + async revokeCurrencyApprovalForListing(e, t) { + let n = await this.validateListing(er.BigNumber.from(e)); + if (t === n.currencyContractAddress) + throw new Error("Can't revoke approval for main listing currency."); + let a = + await this.contractWrapper.readContract.currencyPriceForListing( + e, + t + ); + return ( + Kw.default(!a.isZero(), "Currency not approved."), + { + receipt: await this.contractWrapper.sendTransaction( + "approveCurrencyForListing", + [e, t, er.BigNumber.from(0)] + ), + } + ); + } + async validateListing(e) { + try { + return await this.getListing(e); + } catch (t) { + throw (console.error(`Error getting the listing with id ${e}`), t); + } + } + async mapListing(e) { + let t = pt.Status.UNSET, + a = (await this.contractWrapper.getProvider().getBlock("latest")) + .timestamp; + switch (e.status) { + case 1: + t = er.BigNumber.from(e.startTimestamp).gt(a) + ? pt.Status.Created + : er.BigNumber.from(e.endTimestamp).lt(a) + ? pt.Status.Expired + : pt.Status.Active; + break; + case 2: + t = pt.Status.Completed; + break; + case 3: + t = pt.Status.Cancelled; + break; + } + return { + assetContractAddress: e.assetContract, + currencyContractAddress: e.currency, + pricePerToken: e.pricePerToken.toString(), + currencyValuePerToken: await pt.fetchCurrencyValue( + this.contractWrapper.getProvider(), + e.currency, + e.pricePerToken + ), + id: e.listingId.toString(), + tokenId: e.tokenId.toString(), + quantity: e.quantity.toString(), + startTimeInSeconds: er.BigNumber.from(e.startTimestamp).toNumber(), + asset: await pt.fetchTokenMetadataForContract( + e.assetContract, + this.contractWrapper.getProvider(), + e.tokenId, + this.storage + ), + endTimeInSeconds: er.BigNumber.from(e.endTimestamp).toNumber(), + creatorAddress: e.listingCreator, + isReservedListing: e.reserved, + status: t, + }; + } + async isStillValidListing(e, t) { + if ( + !(await pt.isTokenApprovedForTransfer( + this.contractWrapper.getProvider(), + this.getAddress(), + e.assetContractAddress, + e.tokenId, + e.creatorAddress + )) + ) + return { + valid: !1, + error: `Token '${e.tokenId}' from contract '${e.assetContractAddress}' is not approved for transfer`, + }; + let a = this.contractWrapper.getProvider(), + i = new er.Contract(e.assetContractAddress, _ur.default, a), + s = await i.supportsInterface(pt.InterfaceId_IERC721), + c = await i.supportsInterface(pt.InterfaceId_IERC1155); + if (s) { + let d = + ( + await new er.Contract( + e.assetContractAddress, + xur.default, + a + ).ownerOf(e.tokenId) + ).toLowerCase() === e.creatorAddress.toLowerCase(); + return { + valid: d, + error: d + ? void 0 + : `Seller is not the owner of Token '${e.tokenId}' from contract '${e.assetContractAddress} anymore'`, + }; + } else if (c) { + let m = ( + await new er.Contract( + e.assetContractAddress, + Tur.default, + a + ).balanceOf(e.creatorAddress, e.tokenId) + ).gte(t || e.quantity); + return { + valid: m, + error: m + ? void 0 + : `Seller does not have enough balance of Token '${e.tokenId}' from contract '${e.assetContractAddress} to fulfill the listing`, + }; + } else + return { + valid: !1, + error: "Contract does not implement ERC 1155 or ERC 721.", + }; + } + applyFilter(e, t) { + let n = [...e]; + return ( + t && + (t.seller && + (n = n.filter( + (a) => + a.listingCreator.toString().toLowerCase() === + t?.seller?.toString().toLowerCase() + )), + t.tokenContract && + (n = n.filter( + (a) => + a.assetContract.toString().toLowerCase() === + t?.tokenContract?.toString().toLowerCase() + )), + t.tokenId !== void 0 && + (n = n.filter( + (a) => a.tokenId.toString() === t?.tokenId?.toString() + ))), + t?.count && t.count < n.length ? n.slice(0, t.count) : n + ); + } + }, + Cur = t9.z.object({ + assetContractAddress: pt.AddressSchema, + tokenId: pt.BigNumberishSchema, + quantity: pt.BigNumberishSchema.default(1), + currencyContractAddress: pt.AddressSchema.default( + pt.NATIVE_TOKEN_ADDRESS + ), + minimumBidAmount: on.AmountSchema, + buyoutBidAmount: on.AmountSchema, + timeBufferInSeconds: pt.BigNumberishSchema.default(900), + bidBufferBps: pt.BigNumberishSchema.default(500), + startTimestamp: pt.RawDateSchema.default(new Date()), + endTimestamp: pt.EndDateSchema, + }), + YK = class { + constructor(e, t) { + on._defineProperty( + this, + "featureName", + pt.FEATURE_ENGLISH_AUCTIONS.name + ), + on._defineProperty(this, "contractWrapper", void 0), + on._defineProperty(this, "storage", void 0), + on._defineProperty(this, "events", void 0), + on._defineProperty(this, "interceptor", void 0), + on._defineProperty(this, "encoder", void 0), + on._defineProperty(this, "estimator", void 0), + (this.contractWrapper = e), + (this.storage = t), + (this.events = new pt.ContractEvents(this.contractWrapper)), + (this.encoder = new pt.ContractEncoder(this.contractWrapper)), + (this.interceptor = new pt.ContractInterceptor( + this.contractWrapper + )), + (this.estimator = new pt.GasCostEstimator(this.contractWrapper)); + } + getAddress() { + return this.contractWrapper.readContract.address; + } + async getTotalCount() { + return await this.contractWrapper.readContract.totalAuctions(); + } + async getAll(e) { + let t = await this.getTotalCount(), + n = er.BigNumber.from(e?.start || 0).toNumber(), + a = t.toNumber(); + if (a === 0) throw new Error("No auctions exist on the contract."); + let i = []; + i = ( + await pt.getAllInBatches( + n, + a, + this.contractWrapper.readContract.getAllAuctions + ) + ).flat(); + let c = this.applyFilter(i, e); + return await Promise.all(c.map((l) => this.mapAuction(l))); + } + async getAllValid(e) { + let t = await this.getTotalCount(), + n = er.BigNumber.from(e?.start || 0).toNumber(), + a = t.toNumber(); + if (a === 0) throw new Error("No auctions exist on the contract."); + let i = []; + i = ( + await pt.getAllInBatches( + n, + a, + this.contractWrapper.readContract.getAllValidAuctions + ) + ).flat(); + let c = this.applyFilter(i, e); + return await Promise.all(c.map((l) => this.mapAuction(l))); + } + async getAuction(e) { + let t = await this.contractWrapper.readContract.getAuction(e); + return await this.mapAuction(t); + } + async getWinningBid(e) { + await this.validateAuction(er.BigNumber.from(e)); + let t = await this.contractWrapper.readContract.getWinningBid(e); + if (t._bidder !== er.constants.AddressZero) + return await this.mapBid( + e.toString(), + t._bidder, + t._currency, + t._bidAmount.toString() + ); + } + async isWinningBid(e, t) { + return await this.contractWrapper.readContract.isNewWinningBid(e, t); + } + async getWinner(e) { + let t = await this.validateAuction(er.BigNumber.from(e)), + n = await this.contractWrapper.readContract.getWinningBid(e), + a = er.BigNumber.from(Math.floor(Date.now() / 1e3)), + i = er.BigNumber.from(t.endTimeInSeconds); + if (a.gt(i) && n._bidder !== er.constants.AddressZero) + return n._bidder; + let c = ( + await this.contractWrapper.readContract.queryFilter( + this.contractWrapper.readContract.filters.AuctionClosed() + ) + ).find((l) => l.args.auctionId.eq(er.BigNumber.from(e))); + if (!c) + throw new Error( + `Could not find auction with ID ${e} in closed auctions` + ); + return c.args.winningBidder; + } + async createAuction(e) { + let t = Cur.parse(e); + await pt.handleTokenApproval( + this.contractWrapper, + this.getAddress(), + t.assetContractAddress, + t.tokenId, + await this.contractWrapper.getSignerAddress() + ); + let n = await pt.normalizePriceValue( + this.contractWrapper.getProvider(), + t.buyoutBidAmount, + t.currencyContractAddress + ), + a = await pt.normalizePriceValue( + this.contractWrapper.getProvider(), + t.minimumBidAmount, + t.currencyContractAddress + ), + s = (await this.contractWrapper.getProvider().getBlock("latest")) + .timestamp; + t.startTimestamp.lt(s) && (t.startTimestamp = er.BigNumber.from(s)); + let c = await this.contractWrapper.sendTransaction( + "createAuction", + [ + { + assetContract: t.assetContractAddress, + tokenId: t.tokenId, + quantity: t.quantity, + currency: pt.cleanCurrencyAddress(t.currencyContractAddress), + minimumBidAmount: a, + buyoutBidAmount: n, + timeBufferInSeconds: t.timeBufferInSeconds, + bidBufferBps: t.bidBufferBps, + startTimestamp: t.startTimestamp, + endTimestamp: t.endTimestamp, + }, + ], + { gasLimit: 5e5 } + ); + return { + id: this.contractWrapper.parseLogs("NewAuction", c?.logs)[0].args + .auctionId, + receipt: c, + }; + } + async buyoutAuction(e) { + let t = await this.validateAuction(er.BigNumber.from(e)), + n = await pt.fetchCurrencyMetadata( + this.contractWrapper.getProvider(), + t.currencyContractAddress + ); + return this.makeBid( + e, + er.ethers.utils.formatUnits(t.buyoutBidAmount, n.decimals) + ); + } + async makeBid(e, t) { + let n = await this.validateAuction(er.BigNumber.from(e)), + a = await pt.normalizePriceValue( + this.contractWrapper.getProvider(), + t, + n.currencyContractAddress + ); + if (a.eq(er.BigNumber.from(0))) + throw new Error("Cannot make a bid with 0 value"); + if ( + er.BigNumber.from(n.buyoutBidAmount).gt(0) && + a.gt(n.buyoutBidAmount) + ) + throw new Error( + "Bid amount must be less than or equal to buyoutBidAmount" + ); + if (await this.getWinningBid(e)) { + let c = await this.isWinningBid(e, a); + Kw.default( + c, + "Bid price is too low based on the current winning bid and the bid buffer" + ); + } else { + let c = a, + l = er.BigNumber.from(n.minimumBidAmount); + Kw.default( + c.gte(l), + "Bid price is too low based on minimum bid amount" + ); + } + let s = (await this.contractWrapper.getCallOverrides()) || {}; + return ( + await pt.setErc20Allowance( + this.contractWrapper, + a, + n.currencyContractAddress, + s + ), + { + receipt: await this.contractWrapper.sendTransaction( + "bidInAuction", + [e, a], + s + ), + } + ); + } + async cancelAuction(e) { + if (await this.getWinningBid(e)) + throw new Error("Bids already made."); + return { + receipt: await this.contractWrapper.sendTransaction( + "cancelAuction", + [e] + ), + }; + } + async closeAuctionForBidder(e, t) { + t || (t = await this.contractWrapper.getSignerAddress()); + let n = await this.validateAuction(er.BigNumber.from(e)); + try { + return { + receipt: await this.contractWrapper.sendTransaction( + "collectAuctionTokens", + [er.BigNumber.from(e)] + ), + }; + } catch (a) { + throw a.message.includes("Marketplace: auction still active.") + ? new pt.AuctionHasNotEndedError( + e.toString(), + n.endTimeInSeconds.toString() + ) + : a; + } + } + async closeAuctionForSeller(e) { + let t = await this.validateAuction(er.BigNumber.from(e)); + try { + return { + receipt: await this.contractWrapper.sendTransaction( + "collectAuctionPayout", + [er.BigNumber.from(e)] + ), + }; + } catch (n) { + throw n.message.includes("Marketplace: auction still active.") + ? new pt.AuctionHasNotEndedError( + e.toString(), + t.endTimeInSeconds.toString() + ) + : n; + } + } + async executeSale(e) { + let t = await this.validateAuction(er.BigNumber.from(e)); + try { + let n = await this.getWinningBid(e); + Kw.default(n, "No winning bid found"); + let a = this.encoder.encode("collectAuctionPayout", [e]), + i = this.encoder.encode("collectAuctionTokens", [e]); + return await this.contractWrapper.multiCall([a, i]); + } catch (n) { + throw n.message.includes("Marketplace: auction still active.") + ? new pt.AuctionHasNotEndedError( + e.toString(), + t.endTimeInSeconds.toString() + ) + : n; + } + } + async getBidBufferBps(e) { + return (await this.getAuction(e)).bidBufferBps; + } + async getMinimumNextBid(e) { + let [t, n, a] = await Promise.all([ + this.getBidBufferBps(e), + this.getWinningBid(e), + await this.validateAuction(er.BigNumber.from(e)), + ]), + i = n + ? er.BigNumber.from(n.bidAmount) + : er.BigNumber.from(a.minimumBidAmount), + s = i.add(i.mul(t).div(1e4)); + return pt.fetchCurrencyValue( + this.contractWrapper.getProvider(), + a.currencyContractAddress, + s + ); + } + async validateAuction(e) { + try { + return await this.getAuction(e); + } catch (t) { + throw (console.error(`Error getting the auction with id ${e}`), t); + } + } + async mapAuction(e) { + let t = pt.Status.UNSET, + a = (await this.contractWrapper.getProvider().getBlock("latest")) + .timestamp; + switch (e.status) { + case 1: + t = er.BigNumber.from(e.startTimestamp).gt(a) + ? pt.Status.Created + : er.BigNumber.from(e.endTimestamp).lt(a) + ? pt.Status.Expired + : pt.Status.Active; + break; + case 2: + t = pt.Status.Completed; + break; + case 3: + t = pt.Status.Cancelled; + break; + } + return { + id: e.auctionId.toString(), + creatorAddress: e.auctionCreator, + assetContractAddress: e.assetContract, + tokenId: e.tokenId.toString(), + quantity: e.quantity.toString(), + currencyContractAddress: e.currency, + minimumBidAmount: e.minimumBidAmount.toString(), + minimumBidCurrencyValue: await pt.fetchCurrencyValue( + this.contractWrapper.getProvider(), + e.currency, + e.minimumBidAmount + ), + buyoutBidAmount: e.buyoutBidAmount.toString(), + buyoutCurrencyValue: await pt.fetchCurrencyValue( + this.contractWrapper.getProvider(), + e.currency, + e.buyoutBidAmount + ), + timeBufferInSeconds: er.BigNumber.from( + e.timeBufferInSeconds + ).toNumber(), + bidBufferBps: er.BigNumber.from(e.bidBufferBps).toNumber(), + startTimeInSeconds: er.BigNumber.from(e.startTimestamp).toNumber(), + endTimeInSeconds: er.BigNumber.from(e.endTimestamp).toNumber(), + asset: await pt.fetchTokenMetadataForContract( + e.assetContract, + this.contractWrapper.getProvider(), + e.tokenId, + this.storage + ), + status: t, + }; + } + async mapBid(e, t, n, a) { + return { + auctionId: e, + bidderAddress: t, + currencyContractAddress: n, + bidAmount: a, + bidAmountCurrencyValue: await pt.fetchCurrencyValue( + this.contractWrapper.getProvider(), + n, + a + ), + }; + } + applyFilter(e, t) { + let n = [...e]; + return ( + t && + (t.seller && + (n = n.filter( + (a) => + a.auctionCreator.toString().toLowerCase() === + t?.seller?.toString().toLowerCase() + )), + t.tokenContract && + (n = n.filter( + (a) => + a.assetContract.toString().toLowerCase() === + t?.tokenContract?.toString().toLowerCase() + )), + t.tokenId !== void 0 && + (n = n.filter( + (a) => a.tokenId.toString() === t?.tokenId?.toString() + ))), + t?.count && t.count < n.length ? n.slice(0, t.count) : n + ); + } + }, + Iur = t9.z.object({ + assetContractAddress: pt.AddressSchema, + tokenId: pt.BigNumberishSchema, + quantity: pt.BigNumberishSchema.default(1), + currencyContractAddress: pt.AddressSchema.default( + pt.NATIVE_TOKEN_ADDRESS + ), + totalPrice: on.AmountSchema, + endTimestamp: pt.EndDateSchema, + }), + $K = class { + constructor(e, t) { + on._defineProperty(this, "featureName", pt.FEATURE_OFFERS.name), + on._defineProperty(this, "contractWrapper", void 0), + on._defineProperty(this, "storage", void 0), + on._defineProperty(this, "events", void 0), + on._defineProperty(this, "interceptor", void 0), + on._defineProperty(this, "encoder", void 0), + on._defineProperty(this, "estimator", void 0), + (this.contractWrapper = e), + (this.storage = t), + (this.events = new pt.ContractEvents(this.contractWrapper)), + (this.encoder = new pt.ContractEncoder(this.contractWrapper)), + (this.interceptor = new pt.ContractInterceptor( + this.contractWrapper + )), + (this.estimator = new pt.GasCostEstimator(this.contractWrapper)); + } + getAddress() { + return this.contractWrapper.readContract.address; + } + async getTotalCount() { + return await this.contractWrapper.readContract.totalOffers(); + } + async getAll(e) { + let t = await this.getTotalCount(), + n = er.BigNumber.from(e?.start || 0).toNumber(), + a = t.toNumber(); + if (a === 0) throw new Error("No offers exist on the contract."); + let i = []; + i = ( + await pt.getAllInBatches( + n, + a, + this.contractWrapper.readContract.getAllOffers + ) + ).flat(); + let c = this.applyFilter(i, e); + return await Promise.all(c.map((l) => this.mapOffer(l))); + } + async getAllValid(e) { + let t = await this.getTotalCount(), + n = er.BigNumber.from(e?.start || 0).toNumber(), + a = t.toNumber(); + if (a === 0) throw new Error("No offers exist on the contract."); + let i = []; + i = ( + await pt.getAllInBatches( + n, + a, + this.contractWrapper.readContract.getAllValidOffers + ) + ).flat(); + let c = this.applyFilter(i, e); + return await Promise.all(c.map((l) => this.mapOffer(l))); + } + async getOffer(e) { + let t = await this.contractWrapper.readContract.getOffer(e); + return await this.mapOffer(t); + } + async makeOffer(e) { + let t = Iur.parse(e), + n = await this.contractWrapper.getChainID(), + a = pt.isNativeToken(t.currencyContractAddress) + ? pt.NATIVE_TOKENS[n].wrapped.address + : t.currencyContractAddress, + i = await pt.normalizePriceValue( + this.contractWrapper.getProvider(), + t.totalPrice, + a + ), + s = await this.contractWrapper.getCallOverrides(); + await pt.setErc20Allowance(this.contractWrapper, i, a, s); + let c = await this.contractWrapper.sendTransaction( + "makeOffer", + [ + { + assetContract: t.assetContractAddress, + tokenId: t.tokenId, + quantity: t.quantity, + currency: a, + totalPrice: i, + expirationTimestamp: t.endTimestamp, + }, + ], + { gasLimit: 5e5 } + ); + return { + id: this.contractWrapper.parseLogs("NewOffer", c?.logs)[0].args + .offerId, + receipt: c, + }; + } + async cancelOffer(e) { + return { + receipt: await this.contractWrapper.sendTransaction("cancelOffer", [ + e, + ]), + }; + } + async acceptOffer(e) { + let t = await this.validateOffer(er.BigNumber.from(e)), + { valid: n, error: a } = await this.isStillValidOffer(t); + if (!n) throw new Error(`Offer ${e} is no longer valid. ${a}`); + let i = (await this.contractWrapper.getCallOverrides()) || {}; + return ( + await pt.handleTokenApproval( + this.contractWrapper, + this.getAddress(), + t.assetContractAddress, + t.tokenId, + await this.contractWrapper.getSignerAddress() + ), + { + receipt: await this.contractWrapper.sendTransaction( + "acceptOffer", + [e], + i + ), + } + ); + } + async validateOffer(e) { + try { + return await this.getOffer(e); + } catch (t) { + throw (console.error(`Error getting the offer with id ${e}`), t); + } + } + async mapOffer(e) { + let t = pt.Status.UNSET, + a = (await this.contractWrapper.getProvider().getBlock("latest")) + .timestamp; + switch (e.status) { + case 1: + t = er.BigNumber.from(e.expirationTimestamp).lt(a) + ? pt.Status.Expired + : pt.Status.Active; + break; + case 2: + t = pt.Status.Completed; + break; + case 3: + t = pt.Status.Cancelled; + break; + } + return { + id: e.offerId.toString(), + offerorAddress: e.offeror, + assetContractAddress: e.assetContract, + currencyContractAddress: e.currency, + tokenId: e.tokenId.toString(), + quantity: e.quantity.toString(), + totalPrice: e.totalPrice.toString(), + currencyValue: await pt.fetchCurrencyValue( + this.contractWrapper.getProvider(), + e.currency, + e.totalPrice + ), + asset: await pt.fetchTokenMetadataForContract( + e.assetContract, + this.contractWrapper.getProvider(), + e.tokenId, + this.storage + ), + endTimeInSeconds: er.BigNumber.from( + e.expirationTimestamp + ).toNumber(), + status: t, + }; + } + async isStillValidOffer(e) { + if ( + er.BigNumber.from(Math.floor(Date.now() / 1e3)).gt( + e.endTimeInSeconds + ) + ) + return { valid: !1, error: `Offer with ID ${e.id} has expired` }; + let n = await this.contractWrapper.getChainID(), + a = pt.isNativeToken(e.currencyContractAddress) + ? pt.NATIVE_TOKENS[n].wrapped.address + : e.currencyContractAddress, + i = this.contractWrapper.getProvider(), + s = new pt.ContractWrapper(i, a, Eur.default, {}); + return (await s.readContract.balanceOf(e.offerorAddress)).lt( + e.totalPrice + ) + ? { + valid: !1, + error: `Offeror ${e.offerorAddress} doesn't have enough balance of token ${a}`, + } + : ( + await s.readContract.allowance( + e.offerorAddress, + this.getAddress() + ) + ).lt(e.totalPrice) + ? { + valid: !1, + error: `Offeror ${e.offerorAddress} hasn't approved enough amount of token ${a}`, + } + : { valid: !0, error: "" }; + } + applyFilter(e, t) { + let n = [...e]; + return ( + t && + (t.offeror && + (n = n.filter( + (a) => + a.offeror.toString().toLowerCase() === + t?.offeror?.toString().toLowerCase() + )), + t.tokenContract && + (n = n.filter( + (a) => + a.assetContract.toString().toLowerCase() === + t?.tokenContract?.toString().toLowerCase() + )), + t.tokenId !== void 0 && + (n = n.filter( + (a) => a.tokenId.toString() === t?.tokenId?.toString() + ))), + t?.count && t.count < n.length ? n.slice(0, t.count) : n + ); + } + }, + Vw = class { + get directListings() { + return pt.assertEnabled( + this.detectDirectListings(), + pt.FEATURE_DIRECT_LISTINGS + ); + } + get englishAuctions() { + return pt.assertEnabled( + this.detectEnglishAuctions(), + pt.FEATURE_ENGLISH_AUCTIONS + ); + } + get offers() { + return pt.assertEnabled(this.detectOffers(), pt.FEATURE_OFFERS); + } + get chainId() { + return this._chainId; + } + constructor(e, t, n) { + let a = + arguments.length > 3 && arguments[3] !== void 0 + ? arguments[3] + : {}, + i = arguments.length > 4 ? arguments[4] : void 0, + s = arguments.length > 5 ? arguments[5] : void 0, + c = + arguments.length > 6 && arguments[6] !== void 0 + ? arguments[6] + : new pt.ContractWrapper(e, t, i, a); + on._defineProperty(this, "abi", void 0), + on._defineProperty(this, "contractWrapper", void 0), + on._defineProperty(this, "storage", void 0), + on._defineProperty(this, "encoder", void 0), + on._defineProperty(this, "events", void 0), + on._defineProperty(this, "estimator", void 0), + on._defineProperty(this, "platformFees", void 0), + on._defineProperty(this, "metadata", void 0), + on._defineProperty(this, "roles", void 0), + on._defineProperty(this, "interceptor", void 0), + on._defineProperty(this, "_chainId", void 0), + (this._chainId = s), + (this.abi = i), + (this.contractWrapper = c), + (this.storage = n), + (this.metadata = new pt.ContractMetadata( + this.contractWrapper, + pt.MarketplaceContractSchema, + this.storage + )), + (this.roles = new pt.ContractRoles( + this.contractWrapper, + Vw.contractRoles + )), + (this.encoder = new pt.ContractEncoder(this.contractWrapper)), + (this.estimator = new pt.GasCostEstimator(this.contractWrapper)), + (this.events = new pt.ContractEvents(this.contractWrapper)), + (this.platformFees = new pt.ContractPlatformFee( + this.contractWrapper + )), + (this.interceptor = new pt.ContractInterceptor( + this.contractWrapper + )); + } + onNetworkUpdated(e) { + this.contractWrapper.updateSignerOrProvider(e); + } + getAddress() { + return this.contractWrapper.readContract.address; + } + async call(e) { + for ( + var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), a = 1; + a < t; + a++ + ) + n[a - 1] = arguments[a]; + return this.contractWrapper.call(e, ...n); + } + detectDirectListings() { + if (pt.detectContractFeature(this.contractWrapper, "DirectListings")) + return new GK(this.contractWrapper, this.storage); + } + detectEnglishAuctions() { + if (pt.detectContractFeature(this.contractWrapper, "EnglishAuctions")) + return new YK(this.contractWrapper, this.storage); + } + detectOffers() { + if (pt.detectContractFeature(this.contractWrapper, "Offers")) + return new $K(this.contractWrapper, this.storage); + } + }; + on._defineProperty(Vw, "contractRoles", ["admin", "lister", "asset"]); + $He.MarketplaceV3 = Vw; + }); + var QHe = N((ZHe) => { + "use strict"; + _(); + x(); + var Of = ec(), + ac = Rc(), + Aur = wt(); + Gr(); + an(); + Bn(); + Nn(); + On(); + Ln(); + Dn(); + qn(); + Fn(); + Wn(); + Un(); + Hn(); + zn(); + jn(); + Kn(); + Vn(); + Gn(); + Yn(); + $n(); + Jn(); + Zn(); + Qn(); + Xn(); + ea(); + ta(); + ra(); + na(); + aa(); + ia(); + sa(); + oa(); + ca(); + ua(); + la(); + da(); + pa(); + ha(); + fa(); + ma(); + ya(); + ga(); + ba(); + va(); + wa(); + _a(); + xa(); + Ta(); + Ea(); + Ca(); + vn(); + Ia(); + Aa(); + ka(); + An(); + Sa(); + Ma(); + Pa(); + Ra(); + Ba(); + Na(); + Oa(); + La(); + Da(); + qa(); + Fa(); + Wa(); + Ua(); + Ha(); + za(); + var Gw = class extends ac.StandardErc721 { + constructor(e, t, n) { + let a = + arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {}, + i = arguments.length > 4 ? arguments[4] : void 0, + s = arguments.length > 5 ? arguments[5] : void 0, + c = + arguments.length > 6 && arguments[6] !== void 0 + ? arguments[6] + : new ac.ContractWrapper(e, t, i, a); + super(c, n, s), + Of._defineProperty(this, "abi", void 0), + Of._defineProperty(this, "encoder", void 0), + Of._defineProperty(this, "estimator", void 0), + Of._defineProperty(this, "metadata", void 0), + Of._defineProperty(this, "events", void 0), + Of._defineProperty(this, "roles", void 0), + Of._defineProperty(this, "royalties", void 0), + Of._defineProperty(this, "owner", void 0), + (this.abi = i), + (this.metadata = new ac.ContractMetadata( + this.contractWrapper, + ac.MultiwrapContractSchema, + this.storage + )), + (this.roles = new ac.ContractRoles( + this.contractWrapper, + Gw.contractRoles + )), + (this.encoder = new ac.ContractEncoder(this.contractWrapper)), + (this.estimator = new ac.GasCostEstimator(this.contractWrapper)), + (this.events = new ac.ContractEvents(this.contractWrapper)), + (this.royalties = new ac.ContractRoyalty( + this.contractWrapper, + this.metadata + )), + (this.owner = new ac.ContractOwner(this.contractWrapper)); + } + async getWrappedContents(e) { + let t = await this.contractWrapper.readContract.getWrappedContents(e), + n = [], + a = [], + i = []; + for (let s of t) + switch (s.tokenType) { + case 0: { + let c = await ac.fetchCurrencyMetadata( + this.contractWrapper.getProvider(), + s.assetContract + ); + n.push({ + contractAddress: s.assetContract, + quantity: Aur.ethers.utils.formatUnits( + s.totalAmount, + c.decimals + ), + }); + break; + } + case 1: { + a.push({ contractAddress: s.assetContract, tokenId: s.tokenId }); + break; + } + case 2: { + i.push({ + contractAddress: s.assetContract, + tokenId: s.tokenId, + quantity: s.totalAmount.toString(), + }); + break; + } + } + return { erc20Tokens: n, erc721Tokens: a, erc1155Tokens: i }; + } + async wrap(e, t, n) { + let a = await ac.uploadOrExtractURI(t, this.storage), + i = n || (await this.contractWrapper.getSignerAddress()), + s = await this.toTokenStructList(e), + c = await this.contractWrapper.sendTransaction("wrap", [s, a, i]), + l = this.contractWrapper.parseLogs("TokensWrapped", c?.logs); + if (l.length === 0) throw new Error("TokensWrapped event not found"); + let d = l[0].args.tokenIdOfWrappedToken; + return { id: d, receipt: c, data: () => this.get(d) }; + } + async unwrap(e, t) { + let n = t || (await this.contractWrapper.getSignerAddress()); + return { + receipt: await this.contractWrapper.sendTransaction("unwrap", [e, n]), + }; + } + async toTokenStructList(e) { + let t = [], + n = this.contractWrapper.getProvider(), + a = await this.contractWrapper.getSignerAddress(); + if (e.erc20Tokens) + for (let i of e.erc20Tokens) { + let s = await ac.normalizePriceValue( + n, + i.quantity, + i.contractAddress + ); + if ( + !(await ac.hasERC20Allowance( + this.contractWrapper, + i.contractAddress, + s + )) + ) + throw new Error(`ERC20 token with contract address "${ + i.contractAddress + }" does not have enough allowance to transfer. You can set allowance to the multiwrap contract to transfer these tokens by running: -await sdk.getToken("${i.contractAddress}").setAllowance("${this.getAddress()}", ${i.quantity}); +await sdk.getToken("${ + i.contractAddress + }").setAllowance("${this.getAddress()}", ${i.quantity}); -`);t.push({assetContract:i.contractAddress,totalAmount:s,tokenId:0,tokenType:0})}if(e.erc721Tokens)for(let i of e.erc721Tokens){if(!await mc.isTokenApprovedForTransfer(this.contractWrapper.getProvider(),this.getAddress(),i.contractAddress,i.tokenId,a))throw new Error(`ERC721 token "${i.tokenId}" with contract address "${i.contractAddress}" is not approved for transfer. +`); + t.push({ + assetContract: i.contractAddress, + totalAmount: s, + tokenId: 0, + tokenType: 0, + }); + } + if (e.erc721Tokens) + for (let i of e.erc721Tokens) { + if ( + !(await ac.isTokenApprovedForTransfer( + this.contractWrapper.getProvider(), + this.getAddress(), + i.contractAddress, + i.tokenId, + a + )) + ) + throw new Error(`ERC721 token "${ + i.tokenId + }" with contract address "${ + i.contractAddress + }" is not approved for transfer. You can give approval the multiwrap contract to transfer this token by running: -await sdk.getNFTCollection("${i.contractAddress}").setApprovalForToken("${this.getAddress()}", ${i.tokenId}); +await sdk.getNFTCollection("${ + i.contractAddress + }").setApprovalForToken("${this.getAddress()}", ${i.tokenId}); -`);t.push({assetContract:i.contractAddress,totalAmount:0,tokenId:i.tokenId,tokenType:1})}if(e.erc1155Tokens)for(let i of e.erc1155Tokens){if(!await mc.isTokenApprovedForTransfer(this.contractWrapper.getProvider(),this.getAddress(),i.contractAddress,i.tokenId,a))throw new Error(`ERC1155 token "${i.tokenId}" with contract address "${i.contractAddress}" is not approved for transfer. +`); + t.push({ + assetContract: i.contractAddress, + totalAmount: 0, + tokenId: i.tokenId, + tokenType: 1, + }); + } + if (e.erc1155Tokens) + for (let i of e.erc1155Tokens) { + if ( + !(await ac.isTokenApprovedForTransfer( + this.contractWrapper.getProvider(), + this.getAddress(), + i.contractAddress, + i.tokenId, + a + )) + ) + throw new Error(`ERC1155 token "${ + i.tokenId + }" with contract address "${ + i.contractAddress + }" is not approved for transfer. You can give approval the multiwrap contract to transfer this token by running: -await sdk.getEdition("${i.contractAddress}").setApprovalForAll("${this.getAddress()}", true); +await sdk.getEdition("${ + i.contractAddress + }").setApprovalForAll("${this.getAddress()}", true); -`);t.push({assetContract:i.contractAddress,totalAmount:i.quantity,tokenId:i.tokenId,tokenType:2})}return t}async call(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a{"use strict";x();T();var Iu=dc(),yc=Hc(),jlr=_t();Xr();Pn();Un();Wn();jn();zn();Hn();Vn();Gn();Zn();Jn();Kn();Qn();Xn();Yn();$n();ea();ta();ra();na();aa();ia();sa();oa();ca();ua();la();da();pa();ha();fa();ma();ya();ga();va();ba();wa();xa();Ta();_a();Ca();Ea();ka();Sa();Aa();Ma();Ia();Pa();Ra();En();Na();Oa();La();On();Ba();qa();Da();Fa();Ua();Wa();ja();za();Ha();Va();Ga();Za();Ja();Ka();Qa();var Hw=class extends yc.StandardErc721{constructor(e,t,n){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},i=arguments.length>4?arguments[4]:void 0,s=arguments.length>5?arguments[5]:void 0,c=arguments.length>6&&arguments[6]!==void 0?arguments[6]:new yc.ContractWrapper(e,t,i,a);super(c,n,s),Iu._defineProperty(this,"abi",void 0),Iu._defineProperty(this,"metadata",void 0),Iu._defineProperty(this,"roles",void 0),Iu._defineProperty(this,"encoder",void 0),Iu._defineProperty(this,"estimator",void 0),Iu._defineProperty(this,"events",void 0),Iu._defineProperty(this,"sales",void 0),Iu._defineProperty(this,"platformFees",void 0),Iu._defineProperty(this,"royalties",void 0),Iu._defineProperty(this,"owner",void 0),Iu._defineProperty(this,"signature",void 0),Iu._defineProperty(this,"interceptor",void 0),Iu._defineProperty(this,"erc721",void 0),this.abi=i,this.metadata=new yc.ContractMetadata(this.contractWrapper,yc.TokenErc721ContractSchema,this.storage),this.roles=new yc.ContractRoles(this.contractWrapper,Hw.contractRoles),this.royalties=new yc.ContractRoyalty(this.contractWrapper,this.metadata),this.sales=new yc.ContractPrimarySale(this.contractWrapper),this.encoder=new yc.ContractEncoder(this.contractWrapper),this.estimator=new yc.GasCostEstimator(this.contractWrapper),this.events=new yc.ContractEvents(this.contractWrapper),this.platformFees=new yc.ContractPlatformFee(this.contractWrapper),this.interceptor=new yc.ContractInterceptor(this.contractWrapper),this.erc721=new yc.Erc721(this.contractWrapper,this.storage,s),this.signature=new yc.Erc721WithQuantitySignatureMintable(this.contractWrapper,this.storage),this.owner=new yc.ContractOwner(this.contractWrapper)}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}async isTransferRestricted(){return!await this.contractWrapper.readContract.hasRole(yc.getRoleHash("transfer"),jlr.constants.AddressZero)}async mint(e){return this.erc721.mint(e)}async mintTo(e,t){return this.erc721.mintTo(e,t)}async getMintTransaction(e,t){return this.erc721.getMintTransaction(e,t)}async mintBatch(e){return this.erc721.mintBatch(e)}async mintBatchTo(e,t){return this.erc721.mintBatchTo(e,t)}async burn(e){return this.erc721.burn(e)}async call(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a{"use strict";x();T();var Qs=dc(),_s=Hc(),Nv=_t();Xr();Pn();Un();Wn();jn();zn();Hn();Vn();Gn();Zn();Jn();Kn();Qn();Xn();Yn();$n();ea();ta();ra();na();aa();ia();sa();oa();ca();ua();la();da();pa();ha();fa();ma();ya();ga();va();ba();wa();xa();Ta();_a();Ca();Ea();ka();Sa();Aa();Ma();Ia();Pa();Ra();En();Na();Oa();La();On();Ba();qa();Da();Fa();Ua();Wa();ja();za();Ha();Va();Ga();Za();Ja();Ka();Qa();var Vw=class extends _s.StandardErc721{constructor(e,t,n){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},i=arguments.length>4?arguments[4]:void 0,s=arguments.length>5?arguments[5]:void 0,c=arguments.length>6&&arguments[6]!==void 0?arguments[6]:new _s.ContractWrapper(e,t,i,a);super(c,n,s),Qs._defineProperty(this,"abi",void 0),Qs._defineProperty(this,"encoder",void 0),Qs._defineProperty(this,"estimator",void 0),Qs._defineProperty(this,"metadata",void 0),Qs._defineProperty(this,"sales",void 0),Qs._defineProperty(this,"platformFees",void 0),Qs._defineProperty(this,"events",void 0),Qs._defineProperty(this,"roles",void 0),Qs._defineProperty(this,"interceptor",void 0),Qs._defineProperty(this,"royalties",void 0),Qs._defineProperty(this,"claimConditions",void 0),Qs._defineProperty(this,"revealer",void 0),Qs._defineProperty(this,"checkout",void 0),Qs._defineProperty(this,"erc721",void 0),Qs._defineProperty(this,"owner",void 0),this.abi=i,this.metadata=new _s.ContractMetadata(this.contractWrapper,_s.DropErc721ContractSchema,this.storage),this.roles=new _s.ContractRoles(this.contractWrapper,Vw.contractRoles),this.royalties=new _s.ContractRoyalty(this.contractWrapper,this.metadata),this.sales=new _s.ContractPrimarySale(this.contractWrapper),this.claimConditions=new _s.DropClaimConditions(this.contractWrapper,this.metadata,this.storage),this.encoder=new _s.ContractEncoder(this.contractWrapper),this.estimator=new _s.GasCostEstimator(this.contractWrapper),this.events=new _s.ContractEvents(this.contractWrapper),this.platformFees=new _s.ContractPlatformFee(this.contractWrapper),this.erc721=new _s.Erc721(this.contractWrapper,this.storage,s),this.revealer=new _s.DelayedReveal(this.contractWrapper,this.storage,_s.FEATURE_NFT_REVEALABLE.name,()=>this.erc721.nextTokenIdToMint()),this.interceptor=new _s.ContractInterceptor(this.contractWrapper),this.owner=new _s.ContractOwner(this.contractWrapper),this.checkout=new _s.PaperCheckout(this.contractWrapper)}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}async totalSupply(){let e=await this.totalClaimedSupply(),t=await this.totalUnclaimedSupply();return e.add(t)}async getAllClaimed(e){let t=Nv.BigNumber.from(e?.start||0).toNumber(),n=Nv.BigNumber.from(e?.count||Qs.DEFAULT_QUERY_ALL_COUNT).toNumber(),a=Math.min((await this.contractWrapper.readContract.nextTokenIdToClaim()).toNumber(),t+n);return await Promise.all(Array.from(Array(a).keys()).map(i=>this.get(i.toString())))}async getAllUnclaimed(e){let t=Nv.BigNumber.from(e?.start||0).toNumber(),n=Nv.BigNumber.from(e?.count||Qs.DEFAULT_QUERY_ALL_COUNT).toNumber(),a=Nv.BigNumber.from(Math.max((await this.contractWrapper.readContract.nextTokenIdToClaim()).toNumber(),t)),i=Nv.BigNumber.from(Math.min((await this.contractWrapper.readContract.nextTokenIdToMint()).toNumber(),a.toNumber()+n));return await Promise.all(Array.from(Array(i.sub(a).toNumber()).keys()).map(s=>this.erc721.getTokenMetadata(a.add(s).toString())))}async totalClaimedSupply(){return this.erc721.totalClaimedSupply()}async totalUnclaimedSupply(){return this.erc721.totalUnclaimedSupply()}async isTransferRestricted(){return!await this.contractWrapper.readContract.hasRole(_s.getRoleHash("transfer"),Nv.constants.AddressZero)}async createBatch(e,t){return this.erc721.lazyMint(e,t)}async getClaimTransaction(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return this.erc721.getClaimTransaction(e,t,{checkERC20Allowance:n})}async claimTo(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return this.erc721.claimTo(e,t,{checkERC20Allowance:n})}async claim(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return this.claimTo(await this.contractWrapper.getSignerAddress(),e,t)}async burn(e){return this.erc721.burn(e)}async get(e){return this.erc721.get(e)}async ownerOf(e){return this.erc721.ownerOf(e)}async balanceOf(e){return this.erc721.balanceOf(e)}async balance(){return this.erc721.balance()}async isApproved(e,t){return this.erc721.isApproved(e,t)}async transfer(e,t){return this.erc721.transfer(e,t)}async setApprovalForAll(e,t){return this.erc721.setApprovalForAll(e,t)}async setApprovalForToken(e,t){return{receipt:await this.contractWrapper.sendTransaction("approve",[e,t])}}async call(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a{"use strict";x();T();var us=dc(),$r=Hc(),zlr=XH(),Hlr=Ea(),bp=_t(),om=Pn();Xr();Un();Wn();jn();zn();Hn();Vn();Gn();Zn();Jn();Kn();Qn();Xn();Yn();$n();ea();ta();ra();na();aa();ia();sa();oa();ca();ua();la();da();pa();ha();fa();ma();ya();ga();va();ba();wa();xa();Ta();_a();Ca();ka();Sa();Aa();Ma();Ia();Pa();Ra();En();Na();Oa();La();On();Ba();qa();Da();Fa();Ua();Wa();ja();za();Ha();Va();Ga();Za();Ja();Ka();Qa();function rHe(r){return r&&r.__esModule?r:{default:r}}var Vlr=rHe(zlr),Glr=rHe(Hlr),uZ=om.z.object({contractAddress:$r.AddressSchema}),Zlr=uZ.extend({quantity:us.AmountSchema}),Jlr=uZ.extend({tokenId:$r.BigNumberishSchema}),Klr=uZ.extend({tokenId:$r.BigNumberishSchema,quantity:$r.BigNumberishSchema}),nHe=Zlr.omit({quantity:!0}).extend({quantityPerReward:us.AmountSchema}),aHe=Jlr,iHe=Klr.omit({quantity:!0}).extend({quantityPerReward:$r.BigNumberishSchema}),Qlr=nHe.extend({totalRewards:$r.BigNumberishSchema.default("1")}),Xlr=aHe,Ylr=iHe.extend({totalRewards:$r.BigNumberishSchema.default("1")});om.z.object({erc20Rewards:om.z.array(nHe).default([]),erc721Rewards:om.z.array(aHe).default([]),erc1155Rewards:om.z.array(iHe).default([])});var sHe=om.z.object({erc20Rewards:om.z.array(Qlr).default([]),erc721Rewards:om.z.array(Xlr).default([]),erc1155Rewards:om.z.array(Ylr).default([])}),$lr=sHe.extend({packMetadata:us.NFTInputOrUriSchema,rewardsPerPack:$r.BigNumberishSchema.default("1"),openStartTime:$r.RawDateSchema.default(new Date)}),cZ=class{constructor(e,t,n,a,i){let s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:new $r.ContractWrapper(e,t,Glr.default,a);us._defineProperty(this,"featureName",$r.FEATURE_PACK_VRF.name),us._defineProperty(this,"contractWrapper",void 0),us._defineProperty(this,"storage",void 0),us._defineProperty(this,"chainId",void 0),us._defineProperty(this,"events",void 0),this.contractWrapper=s,this.storage=n,this.chainId=i,this.events=new $r.ContractEvents(this.contractWrapper)}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}async open(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,n=await this.contractWrapper.sendTransaction("openPack",[e,t],{gasLimit:5e5}),a=bp.BigNumber.from(0);try{a=this.contractWrapper.parseLogs("PackOpenRequested",n?.logs)[0].args.requestId}catch{}return{receipt:n,id:a}}async claimRewards(){let e=await this.contractWrapper.sendTransaction("claimRewards",[],{gasLimit:5e5}),t=this.contractWrapper.parseLogs("PackOpened",e?.logs);if(t.length===0)throw new Error("PackOpened event not found");let n=t[0].args.rewardUnitsDistributed;return this.parseRewards(n)}async parseRewards(e){let t=[],n=[],a=[];for(let i of e)switch(i.tokenType){case 0:{let s=await $r.fetchCurrencyMetadata(this.contractWrapper.getProvider(),i.assetContract);t.push({contractAddress:i.assetContract,quantityPerReward:bp.ethers.utils.formatUnits(i.totalAmount,s.decimals).toString()});break}case 1:{n.push({contractAddress:i.assetContract,tokenId:i.tokenId.toString()});break}case 2:{a.push({contractAddress:i.assetContract,tokenId:i.tokenId.toString(),quantityPerReward:i.totalAmount.toString()});break}}return{erc20Rewards:t,erc721Rewards:n,erc1155Rewards:a}}async addPackOpenEventListener(e){return this.events.addEventListener("PackOpened",async t=>{e(t.data.packId.toString(),t.data.opener,await this.parseRewards(t.data.rewardUnitsDistributed))})}async canClaimRewards(e){let t=e||await this.contractWrapper.getSignerAddress();return await this.contractWrapper.readContract.canClaimRewards(t)}async openAndClaim(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:5e5,a=await this.contractWrapper.sendTransaction("openPackAndClaimRewards",[e,t,n],{gasLimit:bp.BigNumber.from(5e5)}),i=bp.BigNumber.from(0);try{i=this.contractWrapper.parseLogs("PackOpenRequested",a?.logs)[0].args.requestId}catch{}return{receipt:a,id:i}}async getLinkBalance(){return this.getLinkContract().balanceOf(this.contractWrapper.readContract.address)}async transferLink(e){await this.getLinkContract().transfer(this.contractWrapper.readContract.address,e)}getLinkContract(){let e=$r.LINK_TOKEN_ADDRESS[this.chainId];if(!e)throw new Error(`No LINK token address found for chainId ${this.chainId}`);let t=new $r.ContractWrapper(this.contractWrapper.getSignerOrProvider(),e,Vlr.default,this.contractWrapper.options);return new $r.Erc20(t,this.storage,this.chainId)}},Gw=class extends $r.StandardErc1155{get vrf(){return $r.assertEnabled(this._vrf,$r.FEATURE_PACK_VRF)}constructor(e,t,n){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},i=arguments.length>4?arguments[4]:void 0,s=arguments.length>5?arguments[5]:void 0,c=arguments.length>6&&arguments[6]!==void 0?arguments[6]:new $r.ContractWrapper(e,t,i,a.gasless&&"openzeppelin"in a.gasless?{...a,gasless:{openzeppelin:{...a.gasless.openzeppelin,useEOAForwarder:!0}}}:a);super(c,n,s),us._defineProperty(this,"abi",void 0),us._defineProperty(this,"metadata",void 0),us._defineProperty(this,"roles",void 0),us._defineProperty(this,"encoder",void 0),us._defineProperty(this,"events",void 0),us._defineProperty(this,"estimator",void 0),us._defineProperty(this,"royalties",void 0),us._defineProperty(this,"interceptor",void 0),us._defineProperty(this,"erc1155",void 0),us._defineProperty(this,"owner",void 0),us._defineProperty(this,"_vrf",void 0),this.abi=i,this.erc1155=new $r.Erc1155(this.contractWrapper,this.storage,s),this.metadata=new $r.ContractMetadata(this.contractWrapper,$r.PackContractSchema,this.storage),this.roles=new $r.ContractRoles(this.contractWrapper,Gw.contractRoles),this.royalties=new $r.ContractRoyalty(this.contractWrapper,this.metadata),this.encoder=new $r.ContractEncoder(this.contractWrapper),this.estimator=new $r.GasCostEstimator(this.contractWrapper),this.events=new $r.ContractEvents(this.contractWrapper),this.interceptor=new $r.ContractInterceptor(this.contractWrapper),this.owner=new $r.ContractOwner(this.contractWrapper),this._vrf=this.detectVrf()}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e),this._vrf?.onNetworkUpdated(e)}getAddress(){return this.contractWrapper.readContract.address}async get(e){return this.erc1155.get(e)}async getAll(e){return this.erc1155.getAll(e)}async getOwned(e){return this.erc1155.getOwned(e)}async getTotalCount(){return this.erc1155.totalCount()}async isTransferRestricted(){return!await this.contractWrapper.readContract.hasRole($r.getRoleHash("transfer"),bp.ethers.constants.AddressZero)}async getPackContents(e){let{contents:t,perUnitAmounts:n}=await this.contractWrapper.readContract.getPackContents(e),a=[],i=[],s=[];for(let c=0;cthis.erc1155.get(d)}}async createTo(e,t){let n=await $r.uploadOrExtractURI(t.packMetadata,this.storage),a=$lr.parse(t),{erc20Rewards:i,erc721Rewards:s,erc1155Rewards:c}=a,l={erc20Rewards:i,erc721Rewards:s,erc1155Rewards:c},{contents:d,numOfRewardUnits:f}=await this.toPackContentArgs(l),w=await this.contractWrapper.sendTransaction("createPack",[d,f,n,a.openStartTime,a.rewardsPerPack,e]),E=this.contractWrapper.parseLogs("PackCreated",w?.logs);if(E.length===0)throw new Error("PackCreated event not found");let k=E[0].args.packId;return{id:k,receipt:w,data:()=>this.erc1155.get(k)}}async open(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;if(this._vrf)throw new Error("This contract is using Chainlink VRF, use `contract.vrf.open()` or `contract.vrf.openAndClaim()` instead");let n=await this.contractWrapper.sendTransaction("openPack",[e,t],{gasLimit:5e5}),a=this.contractWrapper.parseLogs("PackOpened",n?.logs);if(a.length===0)throw new Error("PackOpened event not found");let i=a[0].args.rewardUnitsDistributed,s=[],c=[],l=[];for(let d of i)switch(d.tokenType){case 0:{let f=await $r.fetchCurrencyMetadata(this.contractWrapper.getProvider(),d.assetContract);s.push({contractAddress:d.assetContract,quantityPerReward:bp.ethers.utils.formatUnits(d.totalAmount,f.decimals).toString()});break}case 1:{c.push({contractAddress:d.assetContract,tokenId:d.tokenId.toString()});break}case 2:{l.push({contractAddress:d.assetContract,tokenId:d.tokenId.toString(),quantityPerReward:d.totalAmount.toString()});break}}return{erc20Rewards:s,erc721Rewards:c,erc1155Rewards:l}}async toPackContentArgs(e){let t=[],n=[],{erc20Rewards:a,erc721Rewards:i,erc1155Rewards:s}=e,c=this.contractWrapper.getProvider(),l=await this.contractWrapper.getSignerAddress();for(let d of a){let w=(await $r.normalizePriceValue(c,d.quantityPerReward,d.contractAddress)).mul(d.totalRewards);if(!await $r.hasERC20Allowance(this.contractWrapper,d.contractAddress,w))throw new Error(`ERC20 token with contract address "${d.contractAddress}" does not have enough allowance to transfer. +`); + t.push({ + assetContract: i.contractAddress, + totalAmount: i.quantity, + tokenId: i.tokenId, + tokenType: 2, + }); + } + return t; + } + async call(e) { + for ( + var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), a = 1; + a < t; + a++ + ) + n[a - 1] = arguments[a]; + return this.contractWrapper.call(e, ...n); + } + }; + Of._defineProperty(Gw, "contractRoles", [ + "admin", + "transfer", + "minter", + "unwrap", + "asset", + ]); + ZHe.Multiwrap = Gw; + }); + var eze = N((XHe) => { + "use strict"; + _(); + x(); + var fu = ec(), + ic = Rc(), + kur = wt(); + Gr(); + an(); + Bn(); + Nn(); + On(); + Ln(); + Dn(); + qn(); + Fn(); + Wn(); + Un(); + Hn(); + zn(); + jn(); + Kn(); + Vn(); + Gn(); + Yn(); + $n(); + Jn(); + Zn(); + Qn(); + Xn(); + ea(); + ta(); + ra(); + na(); + aa(); + ia(); + sa(); + oa(); + ca(); + ua(); + la(); + da(); + pa(); + ha(); + fa(); + ma(); + ya(); + ga(); + ba(); + va(); + wa(); + _a(); + xa(); + Ta(); + Ea(); + Ca(); + vn(); + Ia(); + Aa(); + ka(); + An(); + Sa(); + Ma(); + Pa(); + Ra(); + Ba(); + Na(); + Oa(); + La(); + Da(); + qa(); + Fa(); + Wa(); + Ua(); + Ha(); + za(); + var Yw = class extends ic.StandardErc721 { + constructor(e, t, n) { + let a = + arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {}, + i = arguments.length > 4 ? arguments[4] : void 0, + s = arguments.length > 5 ? arguments[5] : void 0, + c = + arguments.length > 6 && arguments[6] !== void 0 + ? arguments[6] + : new ic.ContractWrapper(e, t, i, a); + super(c, n, s), + fu._defineProperty(this, "abi", void 0), + fu._defineProperty(this, "metadata", void 0), + fu._defineProperty(this, "roles", void 0), + fu._defineProperty(this, "encoder", void 0), + fu._defineProperty(this, "estimator", void 0), + fu._defineProperty(this, "events", void 0), + fu._defineProperty(this, "sales", void 0), + fu._defineProperty(this, "platformFees", void 0), + fu._defineProperty(this, "royalties", void 0), + fu._defineProperty(this, "owner", void 0), + fu._defineProperty(this, "signature", void 0), + fu._defineProperty(this, "interceptor", void 0), + fu._defineProperty(this, "erc721", void 0), + (this.abi = i), + (this.metadata = new ic.ContractMetadata( + this.contractWrapper, + ic.TokenErc721ContractSchema, + this.storage + )), + (this.roles = new ic.ContractRoles( + this.contractWrapper, + Yw.contractRoles + )), + (this.royalties = new ic.ContractRoyalty( + this.contractWrapper, + this.metadata + )), + (this.sales = new ic.ContractPrimarySale(this.contractWrapper)), + (this.encoder = new ic.ContractEncoder(this.contractWrapper)), + (this.estimator = new ic.GasCostEstimator(this.contractWrapper)), + (this.events = new ic.ContractEvents(this.contractWrapper)), + (this.platformFees = new ic.ContractPlatformFee( + this.contractWrapper + )), + (this.interceptor = new ic.ContractInterceptor(this.contractWrapper)), + (this.erc721 = new ic.Erc721(this.contractWrapper, this.storage, s)), + (this.signature = new ic.Erc721WithQuantitySignatureMintable( + this.contractWrapper, + this.storage + )), + (this.owner = new ic.ContractOwner(this.contractWrapper)); + } + onNetworkUpdated(e) { + this.contractWrapper.updateSignerOrProvider(e); + } + getAddress() { + return this.contractWrapper.readContract.address; + } + async isTransferRestricted() { + return !(await this.contractWrapper.readContract.hasRole( + ic.getRoleHash("transfer"), + kur.constants.AddressZero + )); + } + async mint(e) { + return this.erc721.mint(e); + } + async mintTo(e, t) { + return this.erc721.mintTo(e, t); + } + async getMintTransaction(e, t) { + return this.erc721.getMintTransaction(e, t); + } + async mintBatch(e) { + return this.erc721.mintBatch(e); + } + async mintBatchTo(e, t) { + return this.erc721.mintBatchTo(e, t); + } + async burn(e) { + return this.erc721.burn(e); + } + async call(e) { + for ( + var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), a = 1; + a < t; + a++ + ) + n[a - 1] = arguments[a]; + return this.contractWrapper.call(e, ...n); + } + }; + fu._defineProperty(Yw, "contractRoles", ["admin", "minter", "transfer"]); + XHe.NFTCollection = Yw; + }); + var rze = N((tze) => { + "use strict"; + _(); + x(); + var Fs = ec(), + ps = Rc(), + Zg = wt(); + Gr(); + an(); + Bn(); + Nn(); + On(); + Ln(); + Dn(); + qn(); + Fn(); + Wn(); + Un(); + Hn(); + zn(); + jn(); + Kn(); + Vn(); + Gn(); + Yn(); + $n(); + Jn(); + Zn(); + Qn(); + Xn(); + ea(); + ta(); + ra(); + na(); + aa(); + ia(); + sa(); + oa(); + ca(); + ua(); + la(); + da(); + pa(); + ha(); + fa(); + ma(); + ya(); + ga(); + ba(); + va(); + wa(); + _a(); + xa(); + Ta(); + Ea(); + Ca(); + vn(); + Ia(); + Aa(); + ka(); + An(); + Sa(); + Ma(); + Pa(); + Ra(); + Ba(); + Na(); + Oa(); + La(); + Da(); + qa(); + Fa(); + Wa(); + Ua(); + Ha(); + za(); + var $w = class extends ps.StandardErc721 { + constructor(e, t, n) { + let a = + arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {}, + i = arguments.length > 4 ? arguments[4] : void 0, + s = arguments.length > 5 ? arguments[5] : void 0, + c = + arguments.length > 6 && arguments[6] !== void 0 + ? arguments[6] + : new ps.ContractWrapper(e, t, i, a); + super(c, n, s), + Fs._defineProperty(this, "abi", void 0), + Fs._defineProperty(this, "encoder", void 0), + Fs._defineProperty(this, "estimator", void 0), + Fs._defineProperty(this, "metadata", void 0), + Fs._defineProperty(this, "sales", void 0), + Fs._defineProperty(this, "platformFees", void 0), + Fs._defineProperty(this, "events", void 0), + Fs._defineProperty(this, "roles", void 0), + Fs._defineProperty(this, "interceptor", void 0), + Fs._defineProperty(this, "royalties", void 0), + Fs._defineProperty(this, "claimConditions", void 0), + Fs._defineProperty(this, "revealer", void 0), + Fs._defineProperty(this, "checkout", void 0), + Fs._defineProperty(this, "erc721", void 0), + Fs._defineProperty(this, "owner", void 0), + (this.abi = i), + (this.metadata = new ps.ContractMetadata( + this.contractWrapper, + ps.DropErc721ContractSchema, + this.storage + )), + (this.roles = new ps.ContractRoles( + this.contractWrapper, + $w.contractRoles + )), + (this.royalties = new ps.ContractRoyalty( + this.contractWrapper, + this.metadata + )), + (this.sales = new ps.ContractPrimarySale(this.contractWrapper)), + (this.claimConditions = new ps.DropClaimConditions( + this.contractWrapper, + this.metadata, + this.storage + )), + (this.encoder = new ps.ContractEncoder(this.contractWrapper)), + (this.estimator = new ps.GasCostEstimator(this.contractWrapper)), + (this.events = new ps.ContractEvents(this.contractWrapper)), + (this.platformFees = new ps.ContractPlatformFee( + this.contractWrapper + )), + (this.erc721 = new ps.Erc721(this.contractWrapper, this.storage, s)), + (this.revealer = new ps.DelayedReveal( + this.contractWrapper, + this.storage, + ps.FEATURE_NFT_REVEALABLE.name, + () => this.erc721.nextTokenIdToMint() + )), + (this.interceptor = new ps.ContractInterceptor(this.contractWrapper)), + (this.owner = new ps.ContractOwner(this.contractWrapper)), + (this.checkout = new ps.PaperCheckout(this.contractWrapper)); + } + onNetworkUpdated(e) { + this.contractWrapper.updateSignerOrProvider(e); + } + getAddress() { + return this.contractWrapper.readContract.address; + } + async totalSupply() { + let e = await this.totalClaimedSupply(), + t = await this.totalUnclaimedSupply(); + return e.add(t); + } + async getAllClaimed(e) { + let t = Zg.BigNumber.from(e?.start || 0).toNumber(), + n = Zg.BigNumber.from( + e?.count || Fs.DEFAULT_QUERY_ALL_COUNT + ).toNumber(), + a = Math.min( + ( + await this.contractWrapper.readContract.nextTokenIdToClaim() + ).toNumber(), + t + n + ); + return await Promise.all( + Array.from(Array(a).keys()).map((i) => this.get(i.toString())) + ); + } + async getAllUnclaimed(e) { + let t = Zg.BigNumber.from(e?.start || 0).toNumber(), + n = Zg.BigNumber.from( + e?.count || Fs.DEFAULT_QUERY_ALL_COUNT + ).toNumber(), + a = Zg.BigNumber.from( + Math.max( + ( + await this.contractWrapper.readContract.nextTokenIdToClaim() + ).toNumber(), + t + ) + ), + i = Zg.BigNumber.from( + Math.min( + ( + await this.contractWrapper.readContract.nextTokenIdToMint() + ).toNumber(), + a.toNumber() + n + ) + ); + return await Promise.all( + Array.from(Array(i.sub(a).toNumber()).keys()).map((s) => + this.erc721.getTokenMetadata(a.add(s).toString()) + ) + ); + } + async totalClaimedSupply() { + return this.erc721.totalClaimedSupply(); + } + async totalUnclaimedSupply() { + return this.erc721.totalUnclaimedSupply(); + } + async isTransferRestricted() { + return !(await this.contractWrapper.readContract.hasRole( + ps.getRoleHash("transfer"), + Zg.constants.AddressZero + )); + } + async createBatch(e, t) { + return this.erc721.lazyMint(e, t); + } + async getClaimTransaction(e, t) { + let n = + arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !0; + return this.erc721.getClaimTransaction(e, t, { + checkERC20Allowance: n, + }); + } + async claimTo(e, t) { + let n = + arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !0; + return this.erc721.claimTo(e, t, { checkERC20Allowance: n }); + } + async claim(e) { + let t = + arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0; + return this.claimTo( + await this.contractWrapper.getSignerAddress(), + e, + t + ); + } + async burn(e) { + return this.erc721.burn(e); + } + async get(e) { + return this.erc721.get(e); + } + async ownerOf(e) { + return this.erc721.ownerOf(e); + } + async balanceOf(e) { + return this.erc721.balanceOf(e); + } + async balance() { + return this.erc721.balance(); + } + async isApproved(e, t) { + return this.erc721.isApproved(e, t); + } + async transfer(e, t) { + return this.erc721.transfer(e, t); + } + async setApprovalForAll(e, t) { + return this.erc721.setApprovalForAll(e, t); + } + async setApprovalForToken(e, t) { + return { + receipt: await this.contractWrapper.sendTransaction("approve", [ + e, + t, + ]), + }; + } + async call(e) { + for ( + var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), a = 1; + a < t; + a++ + ) + n[a - 1] = arguments[a]; + return this.contractWrapper.call(e, ...n); + } + }; + Fs._defineProperty($w, "contractRoles", ["admin", "minter", "transfer"]); + tze.NFTDrop = $w; + }); + var uze = N((cze) => { + "use strict"; + _(); + x(); + var Qi = ec(), + $r = Rc(), + Sur = Fz(), + Mur = ba(), + Zd = wt(), + Lf = an(); + Gr(); + Bn(); + Nn(); + On(); + Ln(); + Dn(); + qn(); + Fn(); + Wn(); + Un(); + Hn(); + zn(); + jn(); + Kn(); + Vn(); + Gn(); + Yn(); + $n(); + Jn(); + Zn(); + Qn(); + Xn(); + ea(); + ta(); + ra(); + na(); + aa(); + ia(); + sa(); + oa(); + ca(); + ua(); + la(); + da(); + pa(); + ha(); + fa(); + ma(); + ya(); + ga(); + va(); + wa(); + _a(); + xa(); + Ta(); + Ea(); + Ca(); + vn(); + Ia(); + Aa(); + ka(); + An(); + Sa(); + Ma(); + Pa(); + Ra(); + Ba(); + Na(); + Oa(); + La(); + Da(); + qa(); + Fa(); + Wa(); + Ua(); + Ha(); + za(); + function nze(r) { + return r && r.__esModule ? r : { default: r }; + } + var Pur = nze(Sur), + Rur = nze(Mur), + ZK = Lf.z.object({ contractAddress: $r.AddressSchema }), + Bur = ZK.extend({ quantity: Qi.AmountSchema }), + Nur = ZK.extend({ tokenId: $r.BigNumberishSchema }), + Our = ZK.extend({ + tokenId: $r.BigNumberishSchema, + quantity: $r.BigNumberishSchema, + }), + aze = Bur.omit({ quantity: !0 }).extend({ + quantityPerReward: Qi.AmountSchema, + }), + ize = Nur, + sze = Our.omit({ quantity: !0 }).extend({ + quantityPerReward: $r.BigNumberishSchema, + }), + Lur = aze.extend({ totalRewards: $r.BigNumberishSchema.default("1") }), + Dur = ize, + qur = sze.extend({ totalRewards: $r.BigNumberishSchema.default("1") }); + Lf.z.object({ + erc20Rewards: Lf.z.array(aze).default([]), + erc721Rewards: Lf.z.array(ize).default([]), + erc1155Rewards: Lf.z.array(sze).default([]), + }); + var oze = Lf.z.object({ + erc20Rewards: Lf.z.array(Lur).default([]), + erc721Rewards: Lf.z.array(Dur).default([]), + erc1155Rewards: Lf.z.array(qur).default([]), + }), + Fur = oze.extend({ + packMetadata: Qi.NFTInputOrUriSchema, + rewardsPerPack: $r.BigNumberishSchema.default("1"), + openStartTime: $r.RawDateSchema.default(new Date()), + }), + JK = class { + constructor(e, t, n, a, i) { + let s = + arguments.length > 5 && arguments[5] !== void 0 + ? arguments[5] + : new $r.ContractWrapper(e, t, Rur.default, a); + Qi._defineProperty(this, "featureName", $r.FEATURE_PACK_VRF.name), + Qi._defineProperty(this, "contractWrapper", void 0), + Qi._defineProperty(this, "storage", void 0), + Qi._defineProperty(this, "chainId", void 0), + Qi._defineProperty(this, "events", void 0), + (this.contractWrapper = s), + (this.storage = n), + (this.chainId = i), + (this.events = new $r.ContractEvents(this.contractWrapper)); + } + onNetworkUpdated(e) { + this.contractWrapper.updateSignerOrProvider(e); + } + getAddress() { + return this.contractWrapper.readContract.address; + } + async open(e) { + let t = + arguments.length > 1 && arguments[1] !== void 0 + ? arguments[1] + : 1, + n = await this.contractWrapper.sendTransaction("openPack", [e, t], { + gasLimit: 5e5, + }), + a = Zd.BigNumber.from(0); + try { + a = this.contractWrapper.parseLogs("PackOpenRequested", n?.logs)[0] + .args.requestId; + } catch {} + return { receipt: n, id: a }; + } + async claimRewards() { + let e = await this.contractWrapper.sendTransaction( + "claimRewards", + [], + { gasLimit: 5e5 } + ), + t = this.contractWrapper.parseLogs("PackOpened", e?.logs); + if (t.length === 0) throw new Error("PackOpened event not found"); + let n = t[0].args.rewardUnitsDistributed; + return this.parseRewards(n); + } + async parseRewards(e) { + let t = [], + n = [], + a = []; + for (let i of e) + switch (i.tokenType) { + case 0: { + let s = await $r.fetchCurrencyMetadata( + this.contractWrapper.getProvider(), + i.assetContract + ); + t.push({ + contractAddress: i.assetContract, + quantityPerReward: Zd.ethers.utils + .formatUnits(i.totalAmount, s.decimals) + .toString(), + }); + break; + } + case 1: { + n.push({ + contractAddress: i.assetContract, + tokenId: i.tokenId.toString(), + }); + break; + } + case 2: { + a.push({ + contractAddress: i.assetContract, + tokenId: i.tokenId.toString(), + quantityPerReward: i.totalAmount.toString(), + }); + break; + } + } + return { erc20Rewards: t, erc721Rewards: n, erc1155Rewards: a }; + } + async addPackOpenEventListener(e) { + return this.events.addEventListener("PackOpened", async (t) => { + e( + t.data.packId.toString(), + t.data.opener, + await this.parseRewards(t.data.rewardUnitsDistributed) + ); + }); + } + async canClaimRewards(e) { + let t = e || (await this.contractWrapper.getSignerAddress()); + return await this.contractWrapper.readContract.canClaimRewards(t); + } + async openAndClaim(e) { + let t = + arguments.length > 1 && arguments[1] !== void 0 + ? arguments[1] + : 1, + n = + arguments.length > 2 && arguments[2] !== void 0 + ? arguments[2] + : 5e5, + a = await this.contractWrapper.sendTransaction( + "openPackAndClaimRewards", + [e, t, n], + { gasLimit: Zd.BigNumber.from(5e5) } + ), + i = Zd.BigNumber.from(0); + try { + i = this.contractWrapper.parseLogs("PackOpenRequested", a?.logs)[0] + .args.requestId; + } catch {} + return { receipt: a, id: i }; + } + async getLinkBalance() { + return this.getLinkContract().balanceOf( + this.contractWrapper.readContract.address + ); + } + async transferLink(e) { + await this.getLinkContract().transfer( + this.contractWrapper.readContract.address, + e + ); + } + getLinkContract() { + let e = $r.LINK_TOKEN_ADDRESS[this.chainId]; + if (!e) + throw new Error( + `No LINK token address found for chainId ${this.chainId}` + ); + let t = new $r.ContractWrapper( + this.contractWrapper.getSignerOrProvider(), + e, + Pur.default, + this.contractWrapper.options + ); + return new $r.Erc20(t, this.storage, this.chainId); + } + }, + Jw = class extends $r.StandardErc1155 { + get vrf() { + return $r.assertEnabled(this._vrf, $r.FEATURE_PACK_VRF); + } + constructor(e, t, n) { + let a = + arguments.length > 3 && arguments[3] !== void 0 + ? arguments[3] + : {}, + i = arguments.length > 4 ? arguments[4] : void 0, + s = arguments.length > 5 ? arguments[5] : void 0, + c = + arguments.length > 6 && arguments[6] !== void 0 + ? arguments[6] + : new $r.ContractWrapper( + e, + t, + i, + a.gasless && "openzeppelin" in a.gasless + ? { + ...a, + gasless: { + openzeppelin: { + ...a.gasless.openzeppelin, + useEOAForwarder: !0, + }, + }, + } + : a + ); + super(c, n, s), + Qi._defineProperty(this, "abi", void 0), + Qi._defineProperty(this, "metadata", void 0), + Qi._defineProperty(this, "roles", void 0), + Qi._defineProperty(this, "encoder", void 0), + Qi._defineProperty(this, "events", void 0), + Qi._defineProperty(this, "estimator", void 0), + Qi._defineProperty(this, "royalties", void 0), + Qi._defineProperty(this, "interceptor", void 0), + Qi._defineProperty(this, "erc1155", void 0), + Qi._defineProperty(this, "owner", void 0), + Qi._defineProperty(this, "_vrf", void 0), + (this.abi = i), + (this.erc1155 = new $r.Erc1155( + this.contractWrapper, + this.storage, + s + )), + (this.metadata = new $r.ContractMetadata( + this.contractWrapper, + $r.PackContractSchema, + this.storage + )), + (this.roles = new $r.ContractRoles( + this.contractWrapper, + Jw.contractRoles + )), + (this.royalties = new $r.ContractRoyalty( + this.contractWrapper, + this.metadata + )), + (this.encoder = new $r.ContractEncoder(this.contractWrapper)), + (this.estimator = new $r.GasCostEstimator(this.contractWrapper)), + (this.events = new $r.ContractEvents(this.contractWrapper)), + (this.interceptor = new $r.ContractInterceptor( + this.contractWrapper + )), + (this.owner = new $r.ContractOwner(this.contractWrapper)), + (this._vrf = this.detectVrf()); + } + onNetworkUpdated(e) { + this.contractWrapper.updateSignerOrProvider(e), + this._vrf?.onNetworkUpdated(e); + } + getAddress() { + return this.contractWrapper.readContract.address; + } + async get(e) { + return this.erc1155.get(e); + } + async getAll(e) { + return this.erc1155.getAll(e); + } + async getOwned(e) { + return this.erc1155.getOwned(e); + } + async getTotalCount() { + return this.erc1155.totalCount(); + } + async isTransferRestricted() { + return !(await this.contractWrapper.readContract.hasRole( + $r.getRoleHash("transfer"), + Zd.ethers.constants.AddressZero + )); + } + async getPackContents(e) { + let { contents: t, perUnitAmounts: n } = + await this.contractWrapper.readContract.getPackContents(e), + a = [], + i = [], + s = []; + for (let c = 0; c < t.length; c++) { + let l = t[c], + d = n[c]; + switch (l.tokenType) { + case 0: { + let m = await $r.fetchCurrencyMetadata( + this.contractWrapper.getProvider(), + l.assetContract + ), + w = Zd.ethers.utils.formatUnits(l.totalAmount, m.decimals); + a.push({ + contractAddress: l.assetContract, + quantityPerReward: d.toString(), + totalRewards: Zd.BigNumber.from(w).div(d).toString(), + }); + break; + } + case 1: { + i.push({ + contractAddress: l.assetContract, + tokenId: l.tokenId.toString(), + }); + break; + } + case 2: { + s.push({ + contractAddress: l.assetContract, + tokenId: l.tokenId.toString(), + quantityPerReward: d.toString(), + totalRewards: Zd.BigNumber.from(l.totalAmount) + .div(d) + .toString(), + }); + break; + } + } + } + return { erc20Rewards: a, erc721Rewards: i, erc1155Rewards: s }; + } + async create(e) { + let t = await this.contractWrapper.getSignerAddress(); + return this.createTo(t, e); + } + async addPackContents(e, t) { + let n = await this.contractWrapper.getSignerAddress(), + a = oze.parse(t), + { contents: i, numOfRewardUnits: s } = await this.toPackContentArgs( + a + ), + c = await this.contractWrapper.sendTransaction("addPackContents", [ + e, + i, + s, + n, + ]), + l = this.contractWrapper.parseLogs("PackUpdated", c?.logs); + if (l.length === 0) throw new Error("PackUpdated event not found"); + let d = l[0].args.packId; + return { id: d, receipt: c, data: () => this.erc1155.get(d) }; + } + async createTo(e, t) { + let n = await $r.uploadOrExtractURI(t.packMetadata, this.storage), + a = Fur.parse(t), + { erc20Rewards: i, erc721Rewards: s, erc1155Rewards: c } = a, + l = { erc20Rewards: i, erc721Rewards: s, erc1155Rewards: c }, + { contents: d, numOfRewardUnits: m } = await this.toPackContentArgs( + l + ), + w = await this.contractWrapper.sendTransaction("createPack", [ + d, + m, + n, + a.openStartTime, + a.rewardsPerPack, + e, + ]), + C = this.contractWrapper.parseLogs("PackCreated", w?.logs); + if (C.length === 0) throw new Error("PackCreated event not found"); + let I = C[0].args.packId; + return { id: I, receipt: w, data: () => this.erc1155.get(I) }; + } + async open(e) { + let t = + arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 1; + if (this._vrf) + throw new Error( + "This contract is using Chainlink VRF, use `contract.vrf.open()` or `contract.vrf.openAndClaim()` instead" + ); + let n = await this.contractWrapper.sendTransaction( + "openPack", + [e, t], + { gasLimit: 5e5 } + ), + a = this.contractWrapper.parseLogs("PackOpened", n?.logs); + if (a.length === 0) throw new Error("PackOpened event not found"); + let i = a[0].args.rewardUnitsDistributed, + s = [], + c = [], + l = []; + for (let d of i) + switch (d.tokenType) { + case 0: { + let m = await $r.fetchCurrencyMetadata( + this.contractWrapper.getProvider(), + d.assetContract + ); + s.push({ + contractAddress: d.assetContract, + quantityPerReward: Zd.ethers.utils + .formatUnits(d.totalAmount, m.decimals) + .toString(), + }); + break; + } + case 1: { + c.push({ + contractAddress: d.assetContract, + tokenId: d.tokenId.toString(), + }); + break; + } + case 2: { + l.push({ + contractAddress: d.assetContract, + tokenId: d.tokenId.toString(), + quantityPerReward: d.totalAmount.toString(), + }); + break; + } + } + return { erc20Rewards: s, erc721Rewards: c, erc1155Rewards: l }; + } + async toPackContentArgs(e) { + let t = [], + n = [], + { erc20Rewards: a, erc721Rewards: i, erc1155Rewards: s } = e, + c = this.contractWrapper.getProvider(), + l = await this.contractWrapper.getSignerAddress(); + for (let d of a) { + let w = ( + await $r.normalizePriceValue( + c, + d.quantityPerReward, + d.contractAddress + ) + ).mul(d.totalRewards); + if ( + !(await $r.hasERC20Allowance( + this.contractWrapper, + d.contractAddress, + w + )) + ) + throw new Error(`ERC20 token with contract address "${ + d.contractAddress + }" does not have enough allowance to transfer. You can set allowance to the multiwrap contract to transfer these tokens by running: -await sdk.getToken("${d.contractAddress}").setAllowance("${this.getAddress()}", ${w}); +await sdk.getToken("${ + d.contractAddress + }").setAllowance("${this.getAddress()}", ${w}); -`);n.push(d.totalRewards),t.push({assetContract:d.contractAddress,tokenType:0,totalAmount:w,tokenId:0})}for(let d of i){if(!await $r.isTokenApprovedForTransfer(this.contractWrapper.getProvider(),this.getAddress(),d.contractAddress,d.tokenId,l))throw new Error(`ERC721 token "${d.tokenId}" with contract address "${d.contractAddress}" is not approved for transfer. +`); + n.push(d.totalRewards), + t.push({ + assetContract: d.contractAddress, + tokenType: 0, + totalAmount: w, + tokenId: 0, + }); + } + for (let d of i) { + if ( + !(await $r.isTokenApprovedForTransfer( + this.contractWrapper.getProvider(), + this.getAddress(), + d.contractAddress, + d.tokenId, + l + )) + ) + throw new Error(`ERC721 token "${ + d.tokenId + }" with contract address "${ + d.contractAddress + }" is not approved for transfer. You can give approval the multiwrap contract to transfer this token by running: -await sdk.getNFTCollection("${d.contractAddress}").setApprovalForToken("${this.getAddress()}", ${d.tokenId}); +await sdk.getNFTCollection("${ + d.contractAddress + }").setApprovalForToken("${this.getAddress()}", ${d.tokenId}); -`);n.push("1"),t.push({assetContract:d.contractAddress,tokenType:1,totalAmount:1,tokenId:d.tokenId})}for(let d of s){if(!await $r.isTokenApprovedForTransfer(this.contractWrapper.getProvider(),this.getAddress(),d.contractAddress,d.tokenId,l))throw new Error(`ERC1155 token "${d.tokenId}" with contract address "${d.contractAddress}" is not approved for transfer. +`); + n.push("1"), + t.push({ + assetContract: d.contractAddress, + tokenType: 1, + totalAmount: 1, + tokenId: d.tokenId, + }); + } + for (let d of s) { + if ( + !(await $r.isTokenApprovedForTransfer( + this.contractWrapper.getProvider(), + this.getAddress(), + d.contractAddress, + d.tokenId, + l + )) + ) + throw new Error(`ERC1155 token "${ + d.tokenId + }" with contract address "${ + d.contractAddress + }" is not approved for transfer. You can give approval the multiwrap contract to transfer this token by running: -await sdk.getEdition("${d.contractAddress}").setApprovalForAll("${this.getAddress()}", true); +await sdk.getEdition("${ + d.contractAddress + }").setApprovalForAll("${this.getAddress()}", true); -`);n.push(d.totalRewards),t.push({assetContract:d.contractAddress,tokenType:2,totalAmount:bp.BigNumber.from(d.quantityPerReward).mul(bp.BigNumber.from(d.totalRewards)),tokenId:d.tokenId})}return{contents:t,numOfRewardUnits:n}}async call(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a{"use strict";x();T();var Cs=dc(),Yi=Hc(),Ov=_t();Xr();Pn();Un();Wn();jn();zn();Hn();Vn();Gn();Zn();Jn();Kn();Qn();Xn();Yn();$n();ea();ta();ra();na();aa();ia();sa();oa();ca();ua();la();da();pa();ha();fa();ma();ya();ga();va();ba();wa();xa();Ta();_a();Ca();Ea();ka();Sa();Aa();Ma();Ia();Pa();Ra();En();Na();Oa();La();On();Ba();qa();Da();Fa();Ua();Wa();ja();za();Ha();Va();Ga();Za();Ja();Ka();Qa();var Zw=class extends Yi.StandardErc721{constructor(e,t,n){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},i=arguments.length>4?arguments[4]:void 0,s=arguments.length>5?arguments[5]:void 0,c=arguments.length>6&&arguments[6]!==void 0?arguments[6]:new Yi.ContractWrapper(e,t,i,a);super(c,n,s),Cs._defineProperty(this,"abi",void 0),Cs._defineProperty(this,"erc721",void 0),Cs._defineProperty(this,"owner",void 0),Cs._defineProperty(this,"encoder",void 0),Cs._defineProperty(this,"estimator",void 0),Cs._defineProperty(this,"metadata",void 0),Cs._defineProperty(this,"sales",void 0),Cs._defineProperty(this,"platformFees",void 0),Cs._defineProperty(this,"events",void 0),Cs._defineProperty(this,"roles",void 0),Cs._defineProperty(this,"interceptor",void 0),Cs._defineProperty(this,"royalties",void 0),Cs._defineProperty(this,"claimConditions",void 0),Cs._defineProperty(this,"revealer",void 0),Cs._defineProperty(this,"signature",void 0),Cs._defineProperty(this,"checkout",void 0),this.abi=i,this.metadata=new Yi.ContractMetadata(this.contractWrapper,Yi.DropErc721ContractSchema,this.storage),this.roles=new Yi.ContractRoles(this.contractWrapper,Zw.contractRoles),this.royalties=new Yi.ContractRoyalty(this.contractWrapper,this.metadata),this.sales=new Yi.ContractPrimarySale(this.contractWrapper),this.encoder=new Yi.ContractEncoder(this.contractWrapper),this.estimator=new Yi.GasCostEstimator(this.contractWrapper),this.events=new Yi.ContractEvents(this.contractWrapper),this.platformFees=new Yi.ContractPlatformFee(this.contractWrapper),this.interceptor=new Yi.ContractInterceptor(this.contractWrapper),this.erc721=new Yi.Erc721(this.contractWrapper,this.storage,s),this.claimConditions=new Yi.DropClaimConditions(this.contractWrapper,this.metadata,this.storage),this.signature=new Yi.Erc721WithQuantitySignatureMintable(this.contractWrapper,this.storage),this.revealer=new Yi.DelayedReveal(this.contractWrapper,this.storage,Yi.FEATURE_NFT_REVEALABLE.name,()=>this.erc721.nextTokenIdToMint()),this.signature=new Yi.Erc721WithQuantitySignatureMintable(this.contractWrapper,this.storage),this.owner=new Yi.ContractOwner(this.contractWrapper),this.checkout=new Yi.PaperCheckout(this.contractWrapper)}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}async totalSupply(){let e=await this.totalClaimedSupply(),t=await this.totalUnclaimedSupply();return e.add(t)}async getAllClaimed(e){let t=Ov.BigNumber.from(e?.start||0).toNumber(),n=Ov.BigNumber.from(e?.count||Cs.DEFAULT_QUERY_ALL_COUNT).toNumber(),a=Math.min((await this.totalClaimedSupply()).toNumber(),t+n);return await Promise.all(Array.from(Array(a).keys()).map(i=>this.get(i.toString())))}async getAllUnclaimed(e){let t=Ov.BigNumber.from(e?.start||0).toNumber(),n=Ov.BigNumber.from(e?.count||Cs.DEFAULT_QUERY_ALL_COUNT).toNumber(),a=Ov.BigNumber.from(Math.max((await this.totalClaimedSupply()).toNumber(),t)),i=Ov.BigNumber.from(Math.min((await this.contractWrapper.readContract.nextTokenIdToMint()).toNumber(),a.toNumber()+n));return await Promise.all(Array.from(Array(i.sub(a).toNumber()).keys()).map(s=>this.erc721.getTokenMetadata(a.add(s).toString())))}async totalClaimedSupply(){return this.erc721.totalClaimedSupply()}async totalUnclaimedSupply(){return this.erc721.totalUnclaimedSupply()}async isTransferRestricted(){return!await this.contractWrapper.readContract.hasRole(Yi.getRoleHash("transfer"),Ov.constants.AddressZero)}async createBatch(e,t){return this.erc721.lazyMint(e,t)}async getClaimTransaction(e,t,n){return this.erc721.getClaimTransaction(e,t,n)}async claimTo(e,t,n){return this.erc721.claimTo(e,t,n)}async claim(e,t){return this.erc721.claim(e,t)}async burn(e){return this.erc721.burn(e)}async call(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a{"use strict";x();T();var wp=dc(),cm=Hc(),edr=Kn(),lZ=_t();Xr();Pn();Un();Wn();jn();zn();Hn();Vn();Gn();Zn();Jn();Qn();Xn();Yn();$n();ea();ta();ra();na();aa();ia();sa();oa();ca();ua();la();da();pa();ha();fa();ma();ya();ga();va();ba();wa();xa();Ta();_a();Ca();Ea();ka();Sa();Aa();Ma();Ia();Pa();Ra();En();Na();Oa();La();On();Ba();qa();Da();Fa();Ua();Wa();ja();za();Ha();Va();Ga();Za();Ja();Ka();Qa();function tdr(r){return r&&r.__esModule?r:{default:r}}var rdr=tdr(edr),Jw=class{get chainId(){return this._chainId}constructor(e,t,n){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},i=arguments.length>4?arguments[4]:void 0,s=arguments.length>5?arguments[5]:void 0,c=arguments.length>6&&arguments[6]!==void 0?arguments[6]:new cm.ContractWrapper(e,t,i,a);wp._defineProperty(this,"contractWrapper",void 0),wp._defineProperty(this,"storage",void 0),wp._defineProperty(this,"abi",void 0),wp._defineProperty(this,"metadata",void 0),wp._defineProperty(this,"encoder",void 0),wp._defineProperty(this,"estimator",void 0),wp._defineProperty(this,"events",void 0),wp._defineProperty(this,"roles",void 0),wp._defineProperty(this,"interceptor",void 0),wp._defineProperty(this,"_chainId",void 0),this._chainId=s,this.abi=i,this.contractWrapper=c,this.storage=n,this.metadata=new cm.ContractMetadata(this.contractWrapper,cm.SplitsContractSchema,this.storage),this.roles=new cm.ContractRoles(this.contractWrapper,Jw.contractRoles),this.encoder=new cm.ContractEncoder(this.contractWrapper),this.estimator=new cm.GasCostEstimator(this.contractWrapper),this.events=new cm.ContractEvents(this.contractWrapper),this.interceptor=new cm.ContractInterceptor(this.contractWrapper)}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}async getAllRecipients(){let e=[],t=lZ.BigNumber.from(0),n=await this.contractWrapper.readContract.payeeCount();for(;t.lt(n);)try{let a=await this.contractWrapper.readContract.payee(t);e.push(await this.getRecipientSplitPercentage(a)),t=t.add(1)}catch(a){if("method"in a&&a.method.toLowerCase().includes("payee(uint256)"))break;throw a}return e}async balanceOfAllRecipients(){let e=await this.getAllRecipients(),t={};for(let n of e)t[n.address]=await this.balanceOf(n.address);return t}async balanceOfTokenAllRecipients(e){let t=await this.getAllRecipients(),n={};for(let a of t)n[a.address]=await this.balanceOfToken(a.address,e);return n}async balanceOf(e){let t=await this.contractWrapper.readContract.provider.getBalance(this.getAddress()),n=await this.contractWrapper.readContract["totalReleased()"](),a=t.add(n);return this._pendingPayment(e,a,await this.contractWrapper.readContract["released(address)"](e))}async balanceOfToken(e,t){let a=await new lZ.Contract(t,rdr.default,this.contractWrapper.getProvider()).balanceOf(this.getAddress()),i=await this.contractWrapper.readContract["totalReleased(address)"](t),s=a.add(i),c=await this._pendingPayment(e,s,await this.contractWrapper.readContract["released(address,address)"](t,e));return await cm.fetchCurrencyValue(this.contractWrapper.getProvider(),t,c)}async getRecipientSplitPercentage(e){let[t,n]=await Promise.all([this.contractWrapper.readContract.totalShares(),this.contractWrapper.readContract.shares(e)]);return{address:e,splitPercentage:n.mul(lZ.BigNumber.from(1e7)).div(t).toNumber()/1e5}}async withdraw(e){return{receipt:await this.contractWrapper.sendTransaction("release(address)",[e])}}async withdrawToken(e,t){return{receipt:await this.contractWrapper.sendTransaction("release(address,address)",[t,e])}}async distribute(){return{receipt:await this.contractWrapper.sendTransaction("distribute()",[])}}async distributeToken(e){return{receipt:await this.contractWrapper.sendTransaction("distribute(address)",[e])}}async _pendingPayment(e,t,n){return t.mul(await this.contractWrapper.readContract.shares(e)).div(await this.contractWrapper.readContract.totalShares()).sub(n)}async call(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a{"use strict";x();T();var xp=dc(),hl=Hc(),ndr=_t();Xr();Pn();Un();Wn();jn();zn();Hn();Vn();Gn();Zn();Jn();Kn();Qn();Xn();Yn();$n();ea();ta();ra();na();aa();ia();sa();oa();ca();ua();la();da();pa();ha();fa();ma();ya();ga();va();ba();wa();xa();Ta();_a();Ca();Ea();ka();Sa();Aa();Ma();Ia();Pa();Ra();En();Na();Oa();La();On();Ba();qa();Da();Fa();Ua();Wa();ja();za();Ha();Va();Ga();Za();Ja();Ka();Qa();var Kw=class extends hl.StandardErc20{constructor(e,t,n){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},i=arguments.length>4?arguments[4]:void 0,s=arguments.length>5?arguments[5]:void 0,c=arguments.length>6&&arguments[6]!==void 0?arguments[6]:new hl.ContractWrapper(e,t,i,a);super(c,n,s),xp._defineProperty(this,"abi",void 0),xp._defineProperty(this,"metadata",void 0),xp._defineProperty(this,"roles",void 0),xp._defineProperty(this,"encoder",void 0),xp._defineProperty(this,"estimator",void 0),xp._defineProperty(this,"sales",void 0),xp._defineProperty(this,"platformFees",void 0),xp._defineProperty(this,"events",void 0),xp._defineProperty(this,"claimConditions",void 0),xp._defineProperty(this,"interceptor",void 0),this.abi=i,this.metadata=new hl.ContractMetadata(this.contractWrapper,hl.DropErc20ContractSchema,this.storage),this.roles=new hl.ContractRoles(this.contractWrapper,Kw.contractRoles),this.encoder=new hl.ContractEncoder(this.contractWrapper),this.estimator=new hl.GasCostEstimator(this.contractWrapper),this.events=new hl.ContractEvents(this.contractWrapper),this.sales=new hl.ContractPrimarySale(this.contractWrapper),this.platformFees=new hl.ContractPlatformFee(this.contractWrapper),this.interceptor=new hl.ContractInterceptor(this.contractWrapper),this.claimConditions=new hl.DropClaimConditions(this.contractWrapper,this.metadata,this.storage)}async getVoteBalance(){return await this.getVoteBalanceOf(await this.contractWrapper.getSignerAddress())}async getVoteBalanceOf(e){return await this.erc20.getValue(await this.contractWrapper.readContract.getVotes(e))}async getDelegation(){return await this.getDelegationOf(await this.contractWrapper.getSignerAddress())}async getDelegationOf(e){return await this.contractWrapper.readContract.delegates(e)}async isTransferRestricted(){return!await this.contractWrapper.readContract.hasRole(hl.getRoleHash("transfer"),ndr.constants.AddressZero)}async claim(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return this.claimTo(await this.contractWrapper.getSignerAddress(),e,t)}async claimTo(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return this.erc20.claimTo(e,t,{checkERC20Allowance:n})}async delegateTo(e){return{receipt:await this.contractWrapper.sendTransaction("delegate",[e])}}async burnTokens(e){return this.erc20.burn(e)}async burnFrom(e,t){return this.erc20.burnFrom(e,t)}async call(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a{"use strict";x();T();var gd=dc(),Pu=Hc(),adr=_t();Xr();Pn();Un();Wn();jn();zn();Hn();Vn();Gn();Zn();Jn();Kn();Qn();Xn();Yn();$n();ea();ta();ra();na();aa();ia();sa();oa();ca();ua();la();da();pa();ha();fa();ma();ya();ga();va();ba();wa();xa();Ta();_a();Ca();Ea();ka();Sa();Aa();Ma();Ia();Pa();Ra();En();Na();Oa();La();On();Ba();qa();Da();Fa();Ua();Wa();ja();za();Ha();Va();Ga();Za();Ja();Ka();Qa();var Qw=class extends Pu.StandardErc20{constructor(e,t,n){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},i=arguments.length>4?arguments[4]:void 0,s=arguments.length>5?arguments[5]:void 0,c=arguments.length>6&&arguments[6]!==void 0?arguments[6]:new Pu.ContractWrapper(e,t,i,a);super(c,n,s),gd._defineProperty(this,"abi",void 0),gd._defineProperty(this,"metadata",void 0),gd._defineProperty(this,"roles",void 0),gd._defineProperty(this,"encoder",void 0),gd._defineProperty(this,"estimator",void 0),gd._defineProperty(this,"history",void 0),gd._defineProperty(this,"events",void 0),gd._defineProperty(this,"platformFees",void 0),gd._defineProperty(this,"sales",void 0),gd._defineProperty(this,"signature",void 0),gd._defineProperty(this,"interceptor",void 0),this.abi=i,this.metadata=new Pu.ContractMetadata(this.contractWrapper,Pu.TokenErc20ContractSchema,this.storage),this.roles=new Pu.ContractRoles(this.contractWrapper,Qw.contractRoles),this.sales=new Pu.ContractPrimarySale(this.contractWrapper),this.events=new Pu.ContractEvents(this.contractWrapper),this.history=new Pu.TokenERC20History(this.contractWrapper,this.events),this.encoder=new Pu.ContractEncoder(this.contractWrapper),this.estimator=new Pu.GasCostEstimator(this.contractWrapper),this.platformFees=new Pu.ContractPlatformFee(this.contractWrapper),this.interceptor=new Pu.ContractInterceptor(this.contractWrapper),this.signature=new Pu.Erc20SignatureMintable(this.contractWrapper,this.roles)}async getVoteBalance(){return await this.getVoteBalanceOf(await this.contractWrapper.getSignerAddress())}async getVoteBalanceOf(e){return await this.erc20.getValue(await this.contractWrapper.readContract.getVotes(e))}async getDelegation(){return await this.getDelegationOf(await this.contractWrapper.getSignerAddress())}async getDelegationOf(e){return await this.contractWrapper.readContract.delegates(e)}async isTransferRestricted(){return!await this.contractWrapper.readContract.hasRole(Pu.getRoleHash("transfer"),adr.constants.AddressZero)}async mint(e){return this.erc20.mint(e)}async mintTo(e,t){return this.erc20.mintTo(e,t)}async getMintTransaction(e,t){return this.erc20.getMintTransaction(e,t)}async mintBatchTo(e){return this.erc20.mintBatchTo(e)}async delegateTo(e){return{receipt:await this.contractWrapper.sendTransaction("delegate",[e])}}async burn(e){return this.erc20.burn(e)}async burnFrom(e,t){return this.erc20.burnFrom(e,t)}async call(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a{"use strict";x();T();var um=dc(),vd=Hc(),idr=Kn(),M_=_t();Xr();Pn();Un();Wn();jn();zn();Hn();Vn();Gn();Zn();Jn();Qn();Xn();Yn();$n();ea();ta();ra();na();aa();ia();sa();oa();ca();ua();la();da();pa();ha();fa();ma();ya();ga();va();ba();wa();xa();Ta();_a();Ca();Ea();ka();Sa();Aa();Ma();Ia();Pa();Ra();En();Na();Oa();La();On();Ba();qa();Da();Fa();Ua();Wa();ja();za();Ha();Va();Ga();Za();Ja();Ka();Qa();function sdr(r){return r&&r.__esModule?r:{default:r}}var odr=sdr(idr),dZ=class{get chainId(){return this._chainId}constructor(e,t,n){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},i=arguments.length>4?arguments[4]:void 0,s=arguments.length>5?arguments[5]:void 0,c=arguments.length>6&&arguments[6]!==void 0?arguments[6]:new vd.ContractWrapper(e,t,i,a);um._defineProperty(this,"contractWrapper",void 0),um._defineProperty(this,"storage",void 0),um._defineProperty(this,"abi",void 0),um._defineProperty(this,"metadata",void 0),um._defineProperty(this,"encoder",void 0),um._defineProperty(this,"estimator",void 0),um._defineProperty(this,"events",void 0),um._defineProperty(this,"interceptor",void 0),um._defineProperty(this,"_chainId",void 0),this._chainId=s,this.abi=i,this.contractWrapper=c,this.storage=n,this.metadata=new vd.ContractMetadata(this.contractWrapper,vd.VoteContractSchema,this.storage),this.encoder=new vd.ContractEncoder(this.contractWrapper),this.estimator=new vd.GasCostEstimator(this.contractWrapper),this.events=new vd.ContractEvents(this.contractWrapper),this.interceptor=new vd.ContractInterceptor(this.contractWrapper)}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}async get(e){let n=(await this.getAll()).filter(a=>a.proposalId.eq(M_.BigNumber.from(e)));if(n.length===0)throw new Error("proposal not found");return n[0]}async getAll(){return Promise.all((await this.contractWrapper.readContract.getAllProposals()).map(async e=>({proposalId:e.proposalId,proposer:e.proposer,description:e.description,startBlock:e.startBlock,endBlock:e.endBlock,state:await this.contractWrapper.readContract.state(e.proposalId),votes:await this.getProposalVotes(e.proposalId),executions:e[3].map((t,n)=>({toAddress:e.targets[n],nativeTokenValue:t,transactionData:e.calldatas[n]}))})))}async getProposalVotes(e){let t=await this.contractWrapper.readContract.proposalVotes(e);return[{type:vd.VoteType.Against,label:"Against",count:t.againstVotes},{type:vd.VoteType.For,label:"For",count:t.forVotes},{type:vd.VoteType.Abstain,label:"Abstain",count:t.abstainVotes}]}async hasVoted(e,t){return t||(t=await this.contractWrapper.getSignerAddress()),this.contractWrapper.readContract.hasVoted(e,t)}async canExecute(e){await this.ensureExists(e);let t=await this.get(e),n=t.executions.map(c=>c.toAddress),a=t.executions.map(c=>c.nativeTokenValue),i=t.executions.map(c=>c.transactionData),s=M_.ethers.utils.id(t.description);try{return await this.contractWrapper.callStatic().execute(n,a,i,s),!0}catch{return!1}}async balance(){let e=await this.contractWrapper.readContract.provider.getBalance(this.contractWrapper.readContract.address);return{name:"",symbol:"",decimals:18,value:e,displayValue:M_.ethers.utils.formatUnits(e,18)}}async balanceOfToken(e){let t=new M_.Contract(e,odr.default,this.contractWrapper.getProvider());return await vd.fetchCurrencyValue(this.contractWrapper.getProvider(),e,await t.balanceOf(this.contractWrapper.readContract.address))}async ensureExists(e){try{await this.contractWrapper.readContract.state(e)}catch{throw Error(`Proposal ${e} not found`)}}async settings(){let[e,t,n,a,i]=await Promise.all([this.contractWrapper.readContract.votingDelay(),this.contractWrapper.readContract.votingPeriod(),this.contractWrapper.readContract.token(),this.contractWrapper.readContract["quorumNumerator()"](),this.contractWrapper.readContract.proposalThreshold()]),s=await vd.fetchCurrencyMetadata(this.contractWrapper.getProvider(),n);return{votingDelay:e.toString(),votingPeriod:t.toString(),votingTokenAddress:n,votingTokenMetadata:s,votingQuorumFraction:a.toString(),proposalTokenThreshold:i.toString()}}async propose(e,t){t||(t=[{toAddress:this.contractWrapper.readContract.address,nativeTokenValue:0,transactionData:"0x"}]);let n=t.map(l=>l.toAddress),a=t.map(l=>l.nativeTokenValue),i=t.map(l=>l.transactionData),s=await this.contractWrapper.sendTransaction("propose",[n,a,i,e]);return{id:this.contractWrapper.parseLogs("ProposalCreated",s?.logs)[0].args.proposalId,receipt:s}}async vote(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"";return await this.ensureExists(e),{receipt:await this.contractWrapper.sendTransaction("castVoteWithReason",[e,t,n])}}async execute(e){await this.ensureExists(e);let t=await this.get(e),n=t.executions.map(c=>c.toAddress),a=t.executions.map(c=>c.nativeTokenValue),i=t.executions.map(c=>c.transactionData),s=M_.ethers.utils.id(t.description);return{receipt:await this.contractWrapper.sendTransaction("execute",[n,a,i,s])}}async call(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a{"use strict";x();T();var _e=Pn(),le=dc(),oe=_t(),cdr=Un(),udr=Wn(),ldr=jn(),ddr=zn(),pdr=Hn(),hdr=Vn(),fdr=Gn(),mdr=Zn(),ydr=Jn(),gdr=Kn(),vdr=Qn(),bdr=Xn(),wdr=Yn(),xdr=$n(),Tdr=ea(),_dr=ta(),Cdr=ra(),Edr=na(),kdr=aa(),Sdr=ia(),Adr=sa(),Mdr=oa(),Idr=ca(),Pdr=ua(),Rdr=la(),Ndr=da(),Odr=pa(),Ldr=ha(),Bdr=fa(),qdr=ma(),Ddr=ya(),Fdr=ga(),Udr=va(),Wdr=ba(),jdr=wa(),zdr=xa(),Hdr=Ta(),Vdr=_a(),Gdr=Ca(),Zdr=Ea(),Jdr=ka(),Kdr=Sa(),Qdr=Aa(),Xdr=Ma(),Ydr=Ia(),$dr=Pa(),epr=Ra(),tpr=En(),gJ=Na(),KHe=Oa(),rpr=La(),I_=On(),npr=Ba(),apr=qa(),ipr=Da(),pZ=Fa(),spr=Ua(),opr=Wa(),cpr=ja(),upr=za(),lpr=Ha(),dpr=Va(),ppr=Ga(),hpr=Za(),fpr=Ja(),mpr=Ka(),ypr=Qa();function Bt(r){return r&&r.__esModule?r:{default:r}}function Ys(r){if(r&&r.__esModule)return r;var e=Object.create(null);return r&&Object.keys(r).forEach(function(t){if(t!=="default"){var n=Object.getOwnPropertyDescriptor(r,t);Object.defineProperty(e,t,n.get?n:{enumerable:!0,get:function(){return r[t]}})}}),e.default=r,Object.freeze(e)}var AR=Bt(cdr),go=Bt(udr),Zc=Bt(ldr),yr=Bt(ddr),gpr=Bt(pdr),QHe=Bt(hdr),vpr=Bt(fdr),XHe=Bt(mdr),YHe=Bt(ydr),Lu=Bt(gdr),$He=Bt(vdr),vJ=Bt(bdr),bpr=Bt(wdr),wpr=Bt(xdr),xpr=Bt(Tdr),eVe=Bt(_dr),Tpr=Bt(Cdr),_pr=Bt(Edr),Cpr=Bt(kdr),Td=Bt(Sdr),tVe=Bt(Adr),Epr=Bt(Mdr),kpr=Bt(Idr),Spr=Bt(Pdr),Apr=Bt(Rdr),Mpr=Bt(Ndr),Ipr=Bt(Odr),rVe=Bt(Ldr),Ppr=Bt(Bdr),Rpr=Bt(qdr),Npr=Bt(Ddr),nVe=Bt(Fdr),Opr=Bt(Udr),Lpr=Bt(Wdr),Bpr=Bt(jdr),qpr=Bt(zdr),Dpr=Bt(Hdr),Fpr=Bt(Vdr),Upr=Bt(Gdr),Wpr=Bt(Zdr),jpr=Bt(Jdr),zpr=Bt(Kdr),Hpr=Bt(Qdr),Vpr=Bt(Xdr),Gpr=Bt(Ydr),Zpr=Bt($dr),Jpr=Bt(epr),yZ=Bt(tpr),gZ=Bt(KHe),Kpr=Bt(rpr),Qpr=Bt(npr),Xpr=Bt(apr),aVe=Bt(ipr),iVe=Bt(spr),Ypr=Bt(cpr),$pr=Bt(upr),ehr=Bt(lpr),thr=Bt(dpr),rhr=Bt(ppr),nhr=Bt(hpr),ahr=Bt(fpr),ihr=Bt(mpr),shr=Bt(ypr);function ohr(r,e){if(e.has(r))throw new TypeError("Cannot initialize the same private elements twice on an object")}function vZ(r,e,t){ohr(r,e),e.set(r,t)}function chr(r,e){return e.get?e.get.call(r):e.value}function sVe(r,e,t){if(!e.has(r))throw new TypeError("attempted to "+t+" private field on non-instance");return e.get(r)}function p7(r,e){var t=sVe(r,e,"get");return chr(r,t)}function uhr(r,e,t){if(e.set)e.set.call(r,t);else{if(!e.writable)throw new TypeError("attempted to set read only private field");e.value=t}}function bZ(r,e,t){var n=sVe(r,e,"set");return uhr(r,n,t),t}$.ChainId=void 0;(function(r){r[r.Mainnet=1]="Mainnet",r[r.Goerli=5]="Goerli",r[r.Polygon=137]="Polygon",r[r.Mumbai=80001]="Mumbai",r[r.Localhost=1337]="Localhost",r[r.Hardhat=31337]="Hardhat",r[r.Fantom=250]="Fantom",r[r.FantomTestnet=4002]="FantomTestnet",r[r.Avalanche=43114]="Avalanche",r[r.AvalancheFujiTestnet=43113]="AvalancheFujiTestnet",r[r.Optimism=10]="Optimism",r[r.OptimismGoerli=420]="OptimismGoerli",r[r.Arbitrum=42161]="Arbitrum",r[r.ArbitrumGoerli=421613]="ArbitrumGoerli",r[r.BinanceSmartChainMainnet=56]="BinanceSmartChainMainnet",r[r.BinanceSmartChainTestnet=97]="BinanceSmartChainTestnet"})($.ChainId||($.ChainId={}));var oVe=[$.ChainId.Mainnet,$.ChainId.Goerli,$.ChainId.Polygon,$.ChainId.Mumbai,$.ChainId.Fantom,$.ChainId.FantomTestnet,$.ChainId.Avalanche,$.ChainId.AvalancheFujiTestnet,$.ChainId.Optimism,$.ChainId.OptimismGoerli,$.ChainId.Arbitrum,$.ChainId.ArbitrumGoerli,$.ChainId.BinanceSmartChainMainnet,$.ChainId.BinanceSmartChainTestnet,$.ChainId.Hardhat,$.ChainId.Localhost],cVe="0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80",$0="0xc82BbE41f2cF04e3a8efA18F7032BDD7f6d98a81",X0="0x7c487845f98938Bb955B1D5AD069d9a30e4131fd",Lv="0x5DBC7B840baa9daBcBe9D2492E45D7244B54A2A0",lhr="0x664244560eBa21Bf82d7150C791bE1AbcD5B4cd7",dhr="0xcdAD8FA86e18538aC207872E8ff3536501431B73",nx={[$.ChainId.Mainnet]:{openzeppelinForwarder:$0,openzeppelinForwarderEOA:"0x76ce2CB1Ae48Fa067f4fb8c5f803111AE0B24BEA",biconomyForwarder:"0x84a0856b038eaAd1cC7E297cF34A7e72685A8693",twFactory:Lv,twRegistry:X0,twBYOCRegistry:oe.constants.AddressZero},[$.ChainId.Goerli]:{openzeppelinForwarder:"0x5001A14CA6163143316a7C614e30e6041033Ac20",openzeppelinForwarderEOA:"0xe73c50cB9c5B378627ff625BB6e6725A4A5D65d2",biconomyForwarder:"0xE041608922d06a4F26C0d4c27d8bCD01daf1f792",twFactory:Lv,twRegistry:X0,twBYOCRegistry:"0xB1Bd9d7942A250BA2Dce27DD601F2ED4211A60C4"},[$.ChainId.Polygon]:{openzeppelinForwarder:$0,openzeppelinForwarderEOA:"0x4f247c69184ad61036EC2Bb3213b69F10FbEDe1F",biconomyForwarder:"0x86C80a8aa58e0A4fa09A69624c31Ab2a6CAD56b8",twFactory:Lv,twRegistry:X0,twBYOCRegistry:"0x308473Be900F4185A56587dE54bDFF5E8f7a6AE7"},[$.ChainId.Mumbai]:{openzeppelinForwarder:$0,openzeppelinForwarderEOA:"0xb1A2883fc4d287d9cB8Dbb96cFF60C76BEf2D250",biconomyForwarder:"0x9399BB24DBB5C4b782C70c2969F58716Ebbd6a3b",twFactory:Lv,twRegistry:X0,twBYOCRegistry:"0x3F17972CB27506eb4a6a3D59659e0B57a43fd16C"},[$.ChainId.Avalanche]:{openzeppelinForwarder:$0,openzeppelinForwarderEOA:"0xb1A2883fc4d287d9cB8Dbb96cFF60C76BEf2D250",biconomyForwarder:"0x64CD353384109423a966dCd3Aa30D884C9b2E057",twFactory:Lv,twRegistry:X0,twBYOCRegistry:oe.constants.AddressZero},[$.ChainId.AvalancheFujiTestnet]:{openzeppelinForwarder:$0,openzeppelinForwarderEOA:"0xe73c50cB9c5B378627ff625BB6e6725A4A5D65d2",biconomyForwarder:"0x6271Ca63D30507f2Dcbf99B52787032506D75BBF",twFactory:Lv,twRegistry:X0,twBYOCRegistry:"0x3E6eE864f850F5e5A98bc950B68E181Cf4010F23"},[$.ChainId.Fantom]:{openzeppelinForwarder:$0,openzeppelinForwarderEOA:"0xb1A2883fc4d287d9cB8Dbb96cFF60C76BEf2D250",biconomyForwarder:"0x64CD353384109423a966dCd3Aa30D884C9b2E057",twFactory:"0x97EA0Fcc552D5A8Fb5e9101316AAd0D62Ea0876B",twRegistry:X0,twBYOCRegistry:oe.constants.AddressZero},[$.ChainId.FantomTestnet]:{openzeppelinForwarder:$0,openzeppelinForwarderEOA:"0x42D3048b595B6e1c28a588d70366CcC2AA4dB47b",biconomyForwarder:"0x69FB8Dca8067A5D38703b9e8b39cf2D51473E4b4",twFactory:Lv,twRegistry:X0,twBYOCRegistry:"0x3E6eE864f850F5e5A98bc950B68E181Cf4010F23"},[$.ChainId.Arbitrum]:{openzeppelinForwarder:"0x8cbc8B5d71702032904750A66AEfE8B603eBC538",openzeppelinForwarderEOA:"0x4f247c69184ad61036EC2Bb3213b69F10FbEDe1F",biconomyForwarder:"0xfe0fa3C06d03bDC7fb49c892BbB39113B534fB57",twFactory:"0xd24b3de085CFd8c54b94feAD08a7962D343E6DE0",twRegistry:"0x7c487845f98938Bb955B1D5AD069d9a30e4131fd",twBYOCRegistry:oe.constants.AddressZero},[$.ChainId.ArbitrumGoerli]:{openzeppelinForwarder:"0x8cbc8B5d71702032904750A66AEfE8B603eBC538",openzeppelinForwarderEOA:"0x119704314Ef304EaAAE4b3c7C9ABd59272A28310",biconomyForwarder:oe.constants.AddressZero,twFactory:"0xd24b3de085CFd8c54b94feAD08a7962D343E6DE0",twRegistry:"0x7c487845f98938Bb955B1D5AD069d9a30e4131fd",twBYOCRegistry:oe.constants.AddressZero},[$.ChainId.Optimism]:{openzeppelinForwarder:"0x8cbc8B5d71702032904750A66AEfE8B603eBC538",openzeppelinForwarderEOA:"0x7e80648EB2071E26937F9D42A513ccf4815fc702",biconomyForwarder:"0xefba8a2a82ec1fb1273806174f5e28fbb917cf95",twFactory:"0xd24b3de085CFd8c54b94feAD08a7962D343E6DE0",twRegistry:"0x7c487845f98938Bb955B1D5AD069d9a30e4131fd",twBYOCRegistry:oe.constants.AddressZero},[$.ChainId.OptimismGoerli]:{openzeppelinForwarder:"0x8cbc8B5d71702032904750A66AEfE8B603eBC538",openzeppelinForwarderEOA:"0x119704314Ef304EaAAE4b3c7C9ABd59272A28310",biconomyForwarder:oe.constants.AddressZero,twFactory:"0xd24b3de085CFd8c54b94feAD08a7962D343E6DE0",twRegistry:"0x7c487845f98938Bb955B1D5AD069d9a30e4131fd",twBYOCRegistry:oe.constants.AddressZero},[$.ChainId.BinanceSmartChainMainnet]:{openzeppelinForwarder:"0x8cbc8B5d71702032904750A66AEfE8B603eBC538",openzeppelinForwarderEOA:"0xE8dd2Ff0212F86d3197b4AfDC6dAC6ac47eb10aC",biconomyForwarder:"0x86C80a8aa58e0A4fa09A69624c31Ab2a6CAD56b8",twBYOCRegistry:oe.constants.AddressZero,twFactory:"0xd24b3de085CFd8c54b94feAD08a7962D343E6DE0",twRegistry:"0x7c487845f98938Bb955B1D5AD069d9a30e4131fd"},[$.ChainId.BinanceSmartChainTestnet]:{openzeppelinForwarder:"0x8cbc8B5d71702032904750A66AEfE8B603eBC538",openzeppelinForwarderEOA:"0x7e80648EB2071E26937F9D42A513ccf4815fc702",biconomyForwarder:"0x61456BF1715C1415730076BB79ae118E806E74d2",twBYOCRegistry:oe.constants.AddressZero,twFactory:"0xd24b3de085CFd8c54b94feAD08a7962D343E6DE0",twRegistry:"0x7c487845f98938Bb955B1D5AD069d9a30e4131fd"},[$.ChainId.Hardhat]:{openzeppelinForwarder:oe.constants.AddressZero,openzeppelinForwarderEOA:oe.constants.AddressZero,biconomyForwarder:oe.constants.AddressZero,twFactory:oe.constants.AddressZero,twRegistry:oe.constants.AddressZero,twBYOCRegistry:oe.constants.AddressZero},[$.ChainId.Localhost]:{openzeppelinForwarder:oe.constants.AddressZero,openzeppelinForwarderEOA:oe.constants.AddressZero,biconomyForwarder:oe.constants.AddressZero,twFactory:oe.constants.AddressZero,twRegistry:oe.constants.AddressZero,twBYOCRegistry:oe.constants.AddressZero}},wZ={[$.ChainId.Mainnet]:{"nft-drop":"0x60fF9952e0084A6DEac44203838cDC91ABeC8736","edition-drop":"0x74af262d0671F378F97a1EDC3d0970Dbe8A1C550","token-drop":"0xE1eE43D23f247b6A9aF81fcE2766E76709482728","signature-drop":"0x6fD690EB509BdE4C50028C5D9C0dE3750C2Fad6A"},[$.ChainId.Polygon]:{"nft-drop":"0xB96508050Ba0925256184103560EBADA912Fcc69","edition-drop":"0x74af262d0671F378F97a1EDC3d0970Dbe8A1C550","token-drop":"0x5A8eA4Adad8289746D073947BA06D69A62499aaf","signature-drop":"0xBE2fDc35410E268e41Bec62DBb01AEb43245c7d5"},[$.ChainId.Fantom]:{"nft-drop":"0x2A396b2D90BAcEF19cDa973586B2633d22710fC2","edition-drop":"0x06395FCF9AC6ED827f9dD6e776809cEF1Be0d21B","token-drop":"0x0148b28a38efaaC31b6aa0a6D9FEb70FE7C91FFa","signature-drop":"0xe135Ef65C2B2213C3fD56d0Bd6500A2cA147aC10"},[$.ChainId.Avalanche]:{"nft-drop":"0x9cF91118C8ee2913F0588e0F10e36B3d63F68bF6","edition-drop":"0x135fC9D26E5eC51260ece1DF4ED424E2f55c7766","token-drop":"0xca0B071899E575BA86495D46c5066971b6f3A901","signature-drop":"0x1d47526C3292B0130ef0afD5F02c1DA052A017B3"},[$.ChainId.Optimism]:{"nft-drop":"0xFBd7D24d80ee005671E731a7287DEB6073264dD1","edition-drop":"0xe135Ef65C2B2213C3fD56d0Bd6500A2cA147aC10","token-drop":"0x902Dd246e66d8C3CE652375a723F2a52b43b9AAE","signature-drop":"0x8a4cd3549e548bbEEb38C16E041FFf040a5acabD"},[$.ChainId.Arbitrum]:{"nft-drop":"0xC4903c1Ff5367b9ac2c349B63DC2409421AaEE2a","edition-drop":"0xCcddcec1831646Beff2753249f1B9C580327E89F","token-drop":"0x1b5947e1a2d5a29D0df20931DeAB0B87818209B9","signature-drop":"0x2dF9851af45dd41C8584ac55D983C604da985Bc7"},[$.ChainId.BinanceSmartChainMainnet]:{"nft-drop":"0x902Dd246e66d8C3CE652375a723F2a52b43b9AAE","edition-drop":"0x2A396b2D90BAcEF19cDa973586B2633d22710fC2","token-drop":"0xe135Ef65C2B2213C3fD56d0Bd6500A2cA147aC10","signature-drop":"0xFBd7D24d80ee005671E731a7287DEB6073264dD1"},[$.ChainId.Goerli]:{"nft-drop":"0xD11c97DD5F5546B5bBd630D7D1d7327481B0b92C","edition-drop":"0x5A8eA4Adad8289746D073947BA06D69A62499aaf","token-drop":"0x5680933221B752EB443654a014f88B101F868d50","signature-drop":"0x1b5947e1a2d5a29D0df20931DeAB0B87818209B9"},[$.ChainId.Mumbai]:{"nft-drop":"0xC4903c1Ff5367b9ac2c349B63DC2409421AaEE2a","edition-drop":"0xCcddcec1831646Beff2753249f1B9C580327E89F","token-drop":"0x1b5947e1a2d5a29D0df20931DeAB0B87818209B9","signature-drop":"0x2dF9851af45dd41C8584ac55D983C604da985Bc7"},[$.ChainId.FantomTestnet]:{"nft-drop":"0x8a4cd3549e548bbEEb38C16E041FFf040a5acabD","edition-drop":"0x902Dd246e66d8C3CE652375a723F2a52b43b9AAE","token-drop":"0xFBd7D24d80ee005671E731a7287DEB6073264dD1","signature-drop":"0x5A8eA4Adad8289746D073947BA06D69A62499aaf"},[$.ChainId.AvalancheFujiTestnet]:{"nft-drop":"0xD11c97DD5F5546B5bBd630D7D1d7327481B0b92C","edition-drop":"0xE1eE43D23f247b6A9aF81fcE2766E76709482728","token-drop":"0x6fD690EB509BdE4C50028C5D9C0dE3750C2Fad6A","signature-drop":"0xCcddcec1831646Beff2753249f1B9C580327E89F"},[$.ChainId.OptimismGoerli]:{"nft-drop":"0xCcddcec1831646Beff2753249f1B9C580327E89F","edition-drop":"0x6fD690EB509BdE4C50028C5D9C0dE3750C2Fad6A","token-drop":"0xD11c97DD5F5546B5bBd630D7D1d7327481B0b92C","signature-drop":"0x1b5947e1a2d5a29D0df20931DeAB0B87818209B9"},[$.ChainId.ArbitrumGoerli]:{"nft-drop":"0x9CfE807a5b124b962064Fa8F7FD823Cc701255b6","edition-drop":"0x9cF91118C8ee2913F0588e0F10e36B3d63F68bF6","token-drop":"0x1d47526C3292B0130ef0afD5F02c1DA052A017B3","signature-drop":"0xE1eE43D23f247b6A9aF81fcE2766E76709482728"},[$.ChainId.BinanceSmartChainTestnet]:{"nft-drop":"","edition-drop":"","token-drop":"","signature-drop":""},[$.ChainId.Hardhat]:{"nft-drop":"","edition-drop":"","token-drop":"","signature-drop":""},[$.ChainId.Localhost]:{"nft-drop":"","edition-drop":"","token-drop":"","signature-drop":""}};function uVe(r,e){if(r in wZ){let t=wZ[r];if(e in t)return t[e]}return null}function h7(r,e){return r===$.ChainId.Hardhat||r===$.ChainId.Localhost?e==="twFactory"?M.env.factoryAddress:e==="twRegistry"?M.env.registryAddress:oe.constants.AddressZero:nx[r]?.[e]}function lVe(){return M.env.contractPublisherAddress?M.env.contractPublisherAddress:lhr}function xZ(){return M.env.multiChainRegistryAddress?M.env.multiChainRegistryAddress:dhr}function bJ(r){let e=oVe.find(a=>a===r),t=e?nx[e].biconomyForwarder:oe.constants.AddressZero,n=e?nx[e].openzeppelinForwarder:oe.constants.AddressZero;return t!==oe.constants.AddressZero?[n,t]:[n]}var $_=oe.utils.arrayify("0x80ac58cd"),eC=oe.utils.arrayify("0xd9b67a26"),bd="0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",wJ={[$.ChainId.Mainnet]:{name:"Ether",symbol:"ETH",decimals:18,wrapped:{address:"0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",name:"Wrapped Ether",symbol:"WETH"}},[$.ChainId.Goerli]:{name:"G\xF6rli Ether",symbol:"GOR",decimals:18,wrapped:{address:"0xb4fbf271143f4fbf7b91a5ded31805e42b2208d6",name:"Wrapped Ether",symbol:"WETH"}},[$.ChainId.Polygon]:{name:"Matic",symbol:"MATIC",decimals:18,wrapped:{address:"0x0d500B1d8E8eF31E21C99d1Db9A6444d3ADf1270",name:"Wrapped Matic",symbol:"WMATIC"}},[$.ChainId.Mumbai]:{name:"Matic",symbol:"MATIC",decimals:18,wrapped:{address:"0x9c3C9283D3e44854697Cd22D3Faa240Cfb032889",name:"Wrapped Matic",symbol:"WMATIC"}},[$.ChainId.Avalanche]:{name:"Avalanche",symbol:"AVAX",decimals:18,wrapped:{address:"0xB31f66AA3C1e785363F0875A1B74E27b85FD66c7",name:"Wrapped AVAX",symbol:"WAVAX"}},[$.ChainId.AvalancheFujiTestnet]:{name:"Avalanche",symbol:"AVAX",decimals:18,wrapped:{address:"0xd00ae08403B9bbb9124bB305C09058E32C39A48c",name:"Wrapped AVAX",symbol:"WAVAX"}},[$.ChainId.Fantom]:{name:"Fantom",symbol:"FTM",decimals:18,wrapped:{address:"0x21be370D5312f44cB42ce377BC9b8a0cEF1A4C83",name:"Wrapped Fantom",symbol:"WFTM"}},[$.ChainId.FantomTestnet]:{name:"Fantom",symbol:"FTM",decimals:18,wrapped:{address:"0xf1277d1Ed8AD466beddF92ef448A132661956621",name:"Wrapped Fantom",symbol:"WFTM"}},[$.ChainId.Arbitrum]:{name:"Ether",symbol:"ETH",decimals:18,wrapped:{address:"0x82af49447d8a07e3bd95bd0d56f35241523fbab1",name:"Wrapped Ether",symbol:"WETH"}},[$.ChainId.ArbitrumGoerli]:{name:"Arbitrum Goerli Ether",symbol:"AGOR",decimals:18,wrapped:{address:"0xe39Ab88f8A4777030A534146A9Ca3B52bd5D43A3",name:"Wrapped Ether",symbol:"WETH"}},[$.ChainId.Optimism]:{name:"Ether",symbol:"ETH",decimals:18,wrapped:{address:"0x4200000000000000000000000000000000000006",name:"Wrapped Ether",symbol:"WETH"}},[$.ChainId.OptimismGoerli]:{name:"Goerli Ether",symbol:"ETH",decimals:18,wrapped:{address:"0x4200000000000000000000000000000000000006",name:"Wrapped Ether",symbol:"WETH"}},[$.ChainId.BinanceSmartChainMainnet]:{name:"Binance Chain Native Token",symbol:"BNB",decimals:18,wrapped:{address:"0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c",name:"Wrapped Binance Chain Token",symbol:"WBNB"}},[$.ChainId.BinanceSmartChainTestnet]:{name:"Binance Chain Native Token",symbol:"TBNB",decimals:18,wrapped:{address:"0xae13d989daC2f0dEbFf460aC112a837C89BAa7cd",name:"Wrapped Binance Chain Testnet Token",symbol:"WBNB"}},[$.ChainId.Hardhat]:{name:"Ether",symbol:"ETH",decimals:18,wrapped:{address:"0x5FbDB2315678afecb367f032d93F642f64180aa3",name:"Wrapped Ether",symbol:"WETH"}},[$.ChainId.Localhost]:{name:"Ether",symbol:"ETH",decimals:18,wrapped:{address:"0x5FbDB2315678afecb367f032d93F642f64180aa3",name:"Wrapped Ether",symbol:"WETH"}}};function f7(r){return wJ[r]||{name:"Ether",symbol:"ETH",decimals:18,wrapped:{address:oe.ethers.constants.AddressZero,name:"Wrapped Ether",symbol:"WETH"}}}var phr={[$.ChainId.Mainnet]:"0x514910771AF9Ca656af840dff83E8264EcF986CA",[$.ChainId.Goerli]:"0x326C977E6efc84E512bB9C30f76E30c160eD06FB",[$.ChainId.BinanceSmartChainMainnet]:"0x404460C6A5EdE2D891e8297795264fDe62ADBB75",[$.ChainId.Polygon]:"0xb0897686c545045aFc77CF20eC7A532E3120E0F1",[$.ChainId.Mumbai]:"0x326C977E6efc84E512bB9C30f76E30c160eD06FB",[$.ChainId.Avalanche]:"0x5947BB275c521040051D82396192181b413227A3",[$.ChainId.AvalancheFujiTestnet]:"0x0b9d5D9136855f6FEc3c0993feE6E9CE8a297846",[$.ChainId.Fantom]:"0x6F43FF82CCA38001B6699a8AC47A2d0E66939407",[$.ChainId.FantomTestnet]:"0xfaFedb041c0DD4fA2Dc0d87a6B0979Ee6FA7af5F"};$.EventType=void 0;(function(r){r.Transaction="transaction",r.Signature="signature"})($.EventType||($.EventType={}));var dVe=50,pVe=250,hhr={timeLimitMs:dVe,sizeLimit:pVe},TZ=class extends oe.providers.StaticJsonRpcProvider{constructor(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:hhr;super(e,t),le._defineProperty(this,"_timeLimitMs",void 0),le._defineProperty(this,"_sizeLimit",void 0),le._defineProperty(this,"_pendingBatchAggregator",void 0),le._defineProperty(this,"_pendingBatch",void 0),this._timeLimitMs=n.timeLimitMs||pVe,this._sizeLimit=n.sizeLimit||dVe,this._pendingBatchAggregator=null,this._pendingBatch=null}sendCurrentBatch(e){this._pendingBatchAggregator&&clearTimeout(this._pendingBatchAggregator);let t=this._pendingBatch||[];this._pendingBatch=null,this._pendingBatchAggregator=null;let n=t.map(a=>a.request);return this.emit("debug",{action:"requestBatch",request:oe.utils.deepCopy(e),provider:this}),oe.utils.fetchJson(this.connection,JSON.stringify(n)).then(a=>{this.emit("debug",{action:"response",request:n,response:a,provider:this}),t.forEach((i,s)=>{let c=a[s];if(c.error){let l=new Error(c.error.message);l.code=c.error.code,l.data=c.error.data,i.reject(l)}else i.resolve(c.result)})},a=>{this.emit("debug",{action:"response",error:a,request:n,provider:this}),t.forEach(i=>{i.reject(a)})})}send(e,t){let n={method:e,params:t,id:this._nextId++,jsonrpc:"2.0"};this._pendingBatch===null&&(this._pendingBatch=[]);let a={request:n,resolve:null,reject:null},i=new Promise((s,c)=>{a.resolve=s,a.reject=c});return this._pendingBatch.length===this._sizeLimit&&this.sendCurrentBatch(n),this._pendingBatch.push(a),this._pendingBatchAggregator||(this._pendingBatchAggregator=setTimeout(()=>{this.sendCurrentBatch(n)},this._timeLimitMs)),i}},Oi=_e.z.union([_e.z.string(),_e.z.number(),_e.z.bigint(),_e.z.custom(r=>oe.BigNumber.isBigNumber(r))]).transform(r=>oe.BigNumber.from(r)),Nu=Oi.transform(r=>r.toString()),xJ=_e.z.union([_e.z.bigint(),_e.z.custom(r=>oe.BigNumber.isBigNumber(r))]).transform(r=>oe.BigNumber.from(r).toString()),Gc=_e.z.string().refine(r=>oe.utils.isAddress(r),r=>({message:`${r} is not a valid address`})),TJ=_e.z.date().transform(r=>oe.BigNumber.from(Math.floor(r.getTime()/1e3))),_J=TJ.default(new Date(0)),hVe=TJ.default(new Date(Date.now()+1e3*60*60*24*365*10)),fVe=_e.z.object({gasLimit:Nu.optional(),gasPrice:Nu.optional(),maxFeePerGas:Nu.optional(),maxPriorityFeePerGas:Nu.optional(),nonce:Nu.optional(),value:Nu.optional(),blockTag:_e.z.union([_e.z.string(),_e.z.number()]).optional(),from:Gc.optional(),type:_e.z.number().optional()}).strict(),mVe=_e.z.object({rpc:_e.z.array(_e.z.string().url()),chainId:_e.z.number(),nativeCurrency:_e.z.object({name:_e.z.string(),symbol:_e.z.string(),decimals:_e.z.number().default(18)})}),m7=_e.z.object({supportedChains:_e.z.array(mVe).default(gJ.defaultChains),thirdwebApiKey:_e.z.string().optional().default(le.DEFAULT_API_KEY),alchemyApiKey:_e.z.string().optional().optional(),infuraApiKey:_e.z.string().optional().optional(),readonlySettings:_e.z.object({rpcUrl:_e.z.string().url(),chainId:_e.z.number().optional()}).optional(),gasSettings:_e.z.object({maxPriceInGwei:_e.z.number().min(1,"gas price cannot be less than 1").default(300),speed:_e.z.enum(["standard","fast","fastest"]).default("fastest")}).default({maxPriceInGwei:300,speed:"fastest"}),gasless:_e.z.union([_e.z.object({openzeppelin:_e.z.object({relayerUrl:_e.z.string().url(),relayerForwarderAddress:_e.z.string().optional(),useEOAForwarder:_e.z.boolean().default(!1)}),experimentalChainlessSupport:_e.z.boolean().default(!1)}),_e.z.object({biconomy:_e.z.object({apiId:_e.z.string(),apiKey:_e.z.string(),deadlineSeconds:_e.z.number().min(1,"deadlineSeconds cannot be les than 1").default(3600)})})]).optional()}).default({gasSettings:{maxPriceInGwei:300,speed:"fastest"}}),yVe=_e.z.object({name:_e.z.string(),symbol:_e.z.string(),decimals:_e.z.number()}),gVe=yVe.extend({value:Oi,displayValue:_e.z.string()}),fm=_e.z.object({merkle:_e.z.record(_e.z.string()).default({})}),y7=_e.z.object({address:Gc,maxClaimable:le.QuantitySchema.default(0),price:le.QuantitySchema.optional(),currencyAddress:Gc.default(oe.ethers.constants.AddressZero).optional()}),tC=_e.z.union([_e.z.array(_e.z.string()).transform(r=>r.map(e=>y7.parse({address:e}))),_e.z.array(y7)]),CJ=y7.extend({proof:_e.z.array(_e.z.string())}),EJ=_e.z.object({merkleRoot:_e.z.string(),claims:_e.z.array(CJ)}),fhr=_e.z.object({merkleRoot:_e.z.string(),snapshotUri:_e.z.string()}),vVe=_e.z.object({name:_e.z.string().optional()}).catchall(_e.z.unknown()),rC=_e.z.object({startTime:_J,currencyAddress:_e.z.string().default(bd),price:le.AmountSchema.default(0),maxClaimableSupply:le.QuantitySchema,maxClaimablePerWallet:le.QuantitySchema,waitInSeconds:Nu.default(0),merkleRootHash:le.BytesLikeSchema.default(oe.utils.hexZeroPad([0],32)),snapshot:_e.z.optional(tC).nullable(),metadata:vVe.optional()}),bVe=_e.z.array(rC),mhr=rC.partial(),kJ=rC.extend({availableSupply:le.QuantitySchema,currentMintSupply:le.QuantitySchema,currencyMetadata:gVe.default({value:oe.BigNumber.from("0"),displayValue:"0",symbol:"",decimals:18,name:""}),price:Oi,waitInSeconds:Oi,startTime:Oi.transform(r=>new Date(r.toNumber()*1e3)),snapshot:tC.optional().nullable()});function yhr(r){if(r===void 0){let e=P.Buffer.alloc(16);return opr.v4({},e),oe.utils.hexlify(oe.utils.toUtf8Bytes(e.toString("hex")))}else return oe.utils.hexlify(r)}var MR=_e.z.object({to:_e.z.string().refine(r=>r.toLowerCase()!==oe.constants.AddressZero,{message:"Cannot create payload to mint to zero address"}),price:le.AmountSchema.default(0),currencyAddress:_e.z.string().default(bd),mintStartTime:_J,mintEndTime:hVe,uid:_e.z.string().optional().transform(r=>yhr(r)),primarySaleRecipient:_e.z.string().default(oe.constants.AddressZero)}),SJ=MR.extend({quantity:le.AmountSchema}),wVe=SJ.extend({mintStartTime:Oi,mintEndTime:Oi}),IR=MR.extend({metadata:le.NFTInputOrUriSchema,royaltyRecipient:_e.z.string().default(oe.constants.AddressZero),royaltyBps:le.BasisPointsSchema.default(0)}),AJ=IR.extend({uri:_e.z.string(),royaltyBps:Oi,mintStartTime:Oi,mintEndTime:Oi}),xVe=IR.extend({metadata:le.NFTInputOrUriSchema.default(""),quantity:Nu}),TVe=xVe.extend({tokenId:Nu}),_Ve=AJ.extend({tokenId:Oi,quantity:Oi}),CVe=IR.extend({metadata:le.NFTInputOrUriSchema.default(""),quantity:Oi.default(1)}),EVe=AJ.extend({quantity:Oi.default(1)}),kVe=[{name:"to",type:"address"},{name:"primarySaleRecipient",type:"address"},{name:"quantity",type:"uint256"},{name:"price",type:"uint256"},{name:"currency",type:"address"},{name:"validityStartTimestamp",type:"uint128"},{name:"validityEndTimestamp",type:"uint128"},{name:"uid",type:"bytes32"}],SVe=[{name:"to",type:"address"},{name:"royaltyRecipient",type:"address"},{name:"royaltyBps",type:"uint256"},{name:"primarySaleRecipient",type:"address"},{name:"uri",type:"string"},{name:"price",type:"uint256"},{name:"currency",type:"address"},{name:"validityStartTimestamp",type:"uint128"},{name:"validityEndTimestamp",type:"uint128"},{name:"uid",type:"bytes32"}],AVe=[{name:"to",type:"address"},{name:"royaltyRecipient",type:"address"},{name:"royaltyBps",type:"uint256"},{name:"primarySaleRecipient",type:"address"},{name:"tokenId",type:"uint256"},{name:"uri",type:"string"},{name:"quantity",type:"uint256"},{name:"pricePerToken",type:"uint256"},{name:"currency",type:"address"},{name:"validityStartTimestamp",type:"uint128"},{name:"validityEndTimestamp",type:"uint128"},{name:"uid",type:"bytes32"}],MVe=[{name:"to",type:"address"},{name:"royaltyRecipient",type:"address"},{name:"royaltyBps",type:"uint256"},{name:"primarySaleRecipient",type:"address"},{name:"uri",type:"string"},{name:"quantity",type:"uint256"},{name:"pricePerToken",type:"uint256"},{name:"currency",type:"address"},{name:"validityStartTimestamp",type:"uint128"},{name:"validityEndTimestamp",type:"uint128"},{name:"uid",type:"bytes32"}],IVe=[{name:"validityStartTimestamp",type:"uint128"},{name:"validityEndTimestamp",type:"uint128"},{name:"uid",type:"bytes32"},{name:"data",type:"bytes"}],Bu=_e.z.object({name:_e.z.string(),description:_e.z.string().optional(),image:le.FileOrBufferOrStringSchema.optional(),external_link:_e.z.string().url().optional()}),ml=Bu.extend({image:_e.z.string().optional()}).catchall(_e.z.unknown()),yo=_e.z.object({seller_fee_basis_points:le.BasisPointsSchema.default(0),fee_recipient:Gc.default(oe.constants.AddressZero)}),iy=_e.z.object({primary_sale_recipient:Gc}),wd=_e.z.object({platform_fee_basis_points:le.BasisPointsSchema.default(0),platform_fee_recipient:Gc.default(oe.constants.AddressZero)}),yl=_e.z.object({trusted_forwarders:_e.z.array(Gc).default([])}),Ss=_e.z.object({symbol:_e.z.string().optional().default("")}),PVe=Bu.merge(yo).merge(fm).merge(Ss),ghr=ml.merge(yo).merge(fm).merge(Ss),vhr=PVe.merge(wd).merge(iy).merge(yl),MJ={deploy:vhr,output:ghr,input:PVe},RVe=Bu.merge(yo).merge(fm).merge(Ss),bhr=ml.merge(yo).merge(fm).merge(Ss),whr=RVe.merge(wd).merge(iy).merge(yl),NVe={deploy:whr,output:bhr,input:RVe},OVe=Bu,xhr=ml,Thr=OVe.merge(wd).merge(yl),IJ={deploy:Thr,output:xhr,input:OVe},LVe=Bu.merge(yo).merge(Ss),_hr=ml.merge(yo).merge(Ss),Chr=LVe.merge(wd).merge(yl),BVe={deploy:Chr,output:_hr,input:LVe},qVe=_e.z.object({address:Gc,sharesBps:le.BasisPointsSchema.gt(0,"Shares must be greater than 0")}),Ehr=qVe.extend({address:Gc,sharesBps:le.BasisPointsSchema}),_Z=Bu.extend({recipients:_e.z.array(qVe).default([]).superRefine((r,e)=>{let t={},n=0;for(let a=0;a1e4&&e.addIssue({code:_e.z.ZodIssueCode.custom,message:"Total shares cannot go over 100%.",path:[a,"sharesBps"]})}n!==1e4&&e.addIssue({code:_e.z.ZodIssueCode.custom,message:`Total shares need to add up to 100%. Total shares are currently ${n/100}%`,path:[]})})}),khr=ml.extend({recipients:_e.z.array(Ehr)}),Shr=_Z.merge(_Z).merge(yl),DVe={deploy:Shr,output:khr,input:_Z},FVe=Bu.merge(Ss),Ahr=ml.merge(Ss),Mhr=FVe.merge(wd).merge(iy).merge(yl),UVe={deploy:Mhr,output:Ahr,input:FVe},WVe=Bu.merge(yo).merge(Ss),Ihr=ml.merge(yo).merge(Ss),Phr=WVe.merge(wd).merge(iy).merge(yl),jVe={deploy:Phr,output:Ihr,input:WVe},zVe=Bu.merge(yo).merge(Ss),Rhr=ml.merge(yo).merge(Ss),Nhr=zVe.merge(wd).merge(iy).merge(yl),HVe={deploy:Nhr,output:Rhr,input:zVe},VVe=_e.z.object({voting_delay_in_blocks:_e.z.number().min(0).default(0),voting_period_in_blocks:_e.z.number().min(1).default(1),voting_token_address:Gc,voting_quorum_fraction:le.PercentSchema.default(0),proposal_token_threshold:Nu.default(1)}),Ohr=VVe.extend({proposal_token_threshold:Oi}),GVe=Bu.merge(VVe),Lhr=ml.merge(Ohr),Bhr=GVe.merge(yl),ZVe={deploy:Bhr,output:Lhr,input:GVe};_e.z.object({proposalId:Oi,proposer:_e.z.string(),targets:_e.z.array(_e.z.string()),values:_e.z.array(Oi),signatures:_e.z.array(_e.z.string()),calldatas:_e.z.array(_e.z.string()),startBlock:Oi,endBlock:Oi,description:_e.z.string()});var bHe=_e.z.object({}).catchall(_e.z.union([xJ,_e.z.unknown()])),qhr=_e.z.union([_e.z.array(bHe),bHe]).optional(),JVe=_e.z.object({supply:Oi,metadata:le.CommonNFTOutput}),Dhr=JVe.extend({owner:_e.z.string(),quantityOwned:Oi}),Fhr=_e.z.object({supply:Nu,metadata:le.CommonNFTInput}),Uhr=_e.z.object({supply:Nu,metadata:le.NFTInputOrUriSchema}),Whr=_e.z.object({toAddress:Gc,amount:le.AmountSchema}),jhr="https://gateway.ipfscdn.io/ipfs/",g7={"avalanche-fuji":$.ChainId.AvalancheFujiTestnet,"avalanche-testnet":$.ChainId.AvalancheFujiTestnet,"fantom-testnet":$.ChainId.FantomTestnet,ethereum:$.ChainId.Mainnet,matic:$.ChainId.Polygon,mumbai:$.ChainId.Mumbai,goerli:$.ChainId.Goerli,polygon:$.ChainId.Polygon,mainnet:$.ChainId.Mainnet,optimism:$.ChainId.Optimism,"optimism-goerli":$.ChainId.OptimismGoerli,arbitrum:$.ChainId.Arbitrum,"arbitrum-goerli":$.ChainId.ArbitrumGoerli,fantom:$.ChainId.Fantom,avalanche:$.ChainId.Avalanche,binance:$.ChainId.BinanceSmartChainMainnet,"binance-testnet":$.ChainId.BinanceSmartChainTestnet,hardhat:$.ChainId.Hardhat,localhost:$.ChainId.Localhost},zhr=Object.fromEntries(Object.entries(g7).map(r=>{let[e,t]=r;return[t,e]}));function KVe(){let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return m7.parse(r).supportedChains.reduce((t,n)=>(t[n.chainId]=n,t),{})}function PR(r,e){if(typeof r=="string"&&r.startsWith("http"))return v7(r);let t=QVe(r),n=m7.parse(e),a=KVe(n),i="";try{i=gJ.getChainRPC(a[t],{thirdwebApiKey:n.thirdwebApiKey||le.DEFAULT_API_KEY,infuraApiKey:n.infuraApiKey,alchemyApiKey:n.alchemyApiKey})}catch(s){console.warn("Failed to get chain RPC",s)}if(!i)throw new Error(`No rpc url found for chain ${r}. Please provide a valid rpc url via the 'chains' property of the sdk options.`);return v7(i,t)}function QVe(r){if(typeof r=="number")return r;if(!(r in g7))throw new Error(`Cannot resolve chainId from: ${r} - please pass the chainId instead and specify it in the 'chains' property of the SDK options.`);return g7[r]}var wHe=new Map;function v7(r,e){try{let t=r.match(/^(ws|http)s?:/i);if(t)switch(t[1]){case"http":let n=`${r}-${e||-1}`,a=wHe.get(n);if(a)return a;let i=e?new TZ(r,e):new oe.providers.JsonRpcBatchProvider(r,e);return wHe.set(n,i),i;case"ws":return new oe.providers.WebSocketProvider(r,e);default:return oe.ethers.getDefaultProvider(r)}else return oe.ethers.getDefaultProvider(r)}catch{return oe.ethers.getDefaultProvider(r)}}var ax=class extends Error{constructor(e){super(e?`Object with id ${e} NOT FOUND`:"NOT_FOUND")}},CZ=class extends Error{constructor(e){super(e?`'${e}' is an invalid address`:"Invalid address passed")}},b7=class extends Error{constructor(e,t){super(`MISSING ROLE: ${e} does not have the '${t}' role`)}},EZ=class extends Error{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"The asset you're trying to use could not be found.";super(`message: ${e}`)}},kZ=class extends Error{constructor(e){super(`UPLOAD_FAILED: ${e}`)}},SZ=class extends Error{constructor(){super("File name is required when object is not a `File` type object.")}},AZ=class extends Error{constructor(e){super(`DUPLICATE_FILE_NAME_ERROR: File name ${e} was passed for more than one file.`)}},MZ=class extends Error{constructor(e,t,n){super(`BALANCE ERROR: you do not have enough balance on contract ${e} to use ${t} tokens. You have ${n} tokens available.`)}},IZ=class extends Error{constructor(){super("LIST ERROR: you should be the owner of the token to list it.")}},PZ=class extends Error{constructor(e){super(`BUY ERROR: You cannot buy more than ${e} tokens`)}},RZ=class extends Error{constructor(e,t){super(`FETCH_FAILED: ${e}`),le._defineProperty(this,"innerError",void 0),this.innerError=t}},w7=class extends Error{constructor(e){super(`DUPLICATE_LEAFS${e?` : ${e}`:""}`)}},x7=class extends Error{constructor(e){super(`Auction already started with existing bid${e?`, id: ${e}`:""}`)}},NZ=class extends Error{constructor(e){super(`FUNCTION DEPRECATED. ${e?`Use ${e} instead`:""}`)}},O_=class extends Error{constructor(e,t){super(`Could not find listing.${e?` marketplace address: ${e}`:""}${t?` listing id: ${t}`:""}`)}},L_=class extends Error{constructor(e,t,n,a){super(`Incorrect listing type. Are you sure you're using the right method?.${e?` marketplace address: ${e}`:""}${t?` listing id: ${t}`:""}${a?` expected type: ${a}`:""}${n?` actual type: ${n}`:""}`)}},OZ=class extends Error{constructor(e){super(`Failed to transfer asset, transfer is restricted.${e?` Address : ${e}`:""}`)}},LZ=class extends Error{constructor(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"Failed to execute transaction";super(`${n}, admin role is missing${e?` on address: ${e}`:""}${t?` on contract: ${t}`:""}`)}},B_=class extends Error{constructor(e,t){super(`Auction has not ended yet${e?`, id: ${e}`:""}${t?`, end time: ${t.toString()}`:""}`)}},pm=class extends Error{constructor(e){super(`This functionality is not available because the contract does not implement the '${e.docLinks.contracts}' Extension. Learn how to unlock this functionality at https://portal.thirdweb.com/extensions `)}},hZ=new WeakMap,fZ=new WeakMap,T7=class extends Error{constructor(e){let t=` +`); + n.push(d.totalRewards), + t.push({ + assetContract: d.contractAddress, + tokenType: 2, + totalAmount: Zd.BigNumber.from(d.quantityPerReward).mul( + Zd.BigNumber.from(d.totalRewards) + ), + tokenId: d.tokenId, + }); + } + return { contents: t, numOfRewardUnits: n }; + } + async call(e) { + for ( + var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), a = 1; + a < t; + a++ + ) + n[a - 1] = arguments[a]; + return this.contractWrapper.call(e, ...n); + } + detectVrf() { + if ($r.detectContractFeature(this.contractWrapper, "PackVRF")) + return new JK( + this.contractWrapper.getSignerOrProvider(), + this.contractWrapper.readContract.address, + this.storage, + this.contractWrapper.options, + this.chainId + ); + } + }; + Qi._defineProperty(Jw, "contractRoles", [ + "admin", + "minter", + "asset", + "transfer", + ]); + cze.Pack = Jw; + }); + var dze = N((lze) => { + "use strict"; + _(); + x(); + var hs = ec(), + Ui = Rc(), + Qg = wt(); + Gr(); + an(); + Bn(); + Nn(); + On(); + Ln(); + Dn(); + qn(); + Fn(); + Wn(); + Un(); + Hn(); + zn(); + jn(); + Kn(); + Vn(); + Gn(); + Yn(); + $n(); + Jn(); + Zn(); + Qn(); + Xn(); + ea(); + ta(); + ra(); + na(); + aa(); + ia(); + sa(); + oa(); + ca(); + ua(); + la(); + da(); + pa(); + ha(); + fa(); + ma(); + ya(); + ga(); + ba(); + va(); + wa(); + _a(); + xa(); + Ta(); + Ea(); + Ca(); + vn(); + Ia(); + Aa(); + ka(); + An(); + Sa(); + Ma(); + Pa(); + Ra(); + Ba(); + Na(); + Oa(); + La(); + Da(); + qa(); + Fa(); + Wa(); + Ua(); + Ha(); + za(); + var Zw = class extends Ui.StandardErc721 { + constructor(e, t, n) { + let a = + arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {}, + i = arguments.length > 4 ? arguments[4] : void 0, + s = arguments.length > 5 ? arguments[5] : void 0, + c = + arguments.length > 6 && arguments[6] !== void 0 + ? arguments[6] + : new Ui.ContractWrapper(e, t, i, a); + super(c, n, s), + hs._defineProperty(this, "abi", void 0), + hs._defineProperty(this, "erc721", void 0), + hs._defineProperty(this, "owner", void 0), + hs._defineProperty(this, "encoder", void 0), + hs._defineProperty(this, "estimator", void 0), + hs._defineProperty(this, "metadata", void 0), + hs._defineProperty(this, "sales", void 0), + hs._defineProperty(this, "platformFees", void 0), + hs._defineProperty(this, "events", void 0), + hs._defineProperty(this, "roles", void 0), + hs._defineProperty(this, "interceptor", void 0), + hs._defineProperty(this, "royalties", void 0), + hs._defineProperty(this, "claimConditions", void 0), + hs._defineProperty(this, "revealer", void 0), + hs._defineProperty(this, "signature", void 0), + hs._defineProperty(this, "checkout", void 0), + (this.abi = i), + (this.metadata = new Ui.ContractMetadata( + this.contractWrapper, + Ui.DropErc721ContractSchema, + this.storage + )), + (this.roles = new Ui.ContractRoles( + this.contractWrapper, + Zw.contractRoles + )), + (this.royalties = new Ui.ContractRoyalty( + this.contractWrapper, + this.metadata + )), + (this.sales = new Ui.ContractPrimarySale(this.contractWrapper)), + (this.encoder = new Ui.ContractEncoder(this.contractWrapper)), + (this.estimator = new Ui.GasCostEstimator(this.contractWrapper)), + (this.events = new Ui.ContractEvents(this.contractWrapper)), + (this.platformFees = new Ui.ContractPlatformFee( + this.contractWrapper + )), + (this.interceptor = new Ui.ContractInterceptor(this.contractWrapper)), + (this.erc721 = new Ui.Erc721(this.contractWrapper, this.storage, s)), + (this.claimConditions = new Ui.DropClaimConditions( + this.contractWrapper, + this.metadata, + this.storage + )), + (this.signature = new Ui.Erc721WithQuantitySignatureMintable( + this.contractWrapper, + this.storage + )), + (this.revealer = new Ui.DelayedReveal( + this.contractWrapper, + this.storage, + Ui.FEATURE_NFT_REVEALABLE.name, + () => this.erc721.nextTokenIdToMint() + )), + (this.signature = new Ui.Erc721WithQuantitySignatureMintable( + this.contractWrapper, + this.storage + )), + (this.owner = new Ui.ContractOwner(this.contractWrapper)), + (this.checkout = new Ui.PaperCheckout(this.contractWrapper)); + } + onNetworkUpdated(e) { + this.contractWrapper.updateSignerOrProvider(e); + } + getAddress() { + return this.contractWrapper.readContract.address; + } + async totalSupply() { + let e = await this.totalClaimedSupply(), + t = await this.totalUnclaimedSupply(); + return e.add(t); + } + async getAllClaimed(e) { + let t = Qg.BigNumber.from(e?.start || 0).toNumber(), + n = Qg.BigNumber.from( + e?.count || hs.DEFAULT_QUERY_ALL_COUNT + ).toNumber(), + a = Math.min((await this.totalClaimedSupply()).toNumber(), t + n); + return await Promise.all( + Array.from(Array(a).keys()).map((i) => this.get(i.toString())) + ); + } + async getAllUnclaimed(e) { + let t = Qg.BigNumber.from(e?.start || 0).toNumber(), + n = Qg.BigNumber.from( + e?.count || hs.DEFAULT_QUERY_ALL_COUNT + ).toNumber(), + a = Qg.BigNumber.from( + Math.max((await this.totalClaimedSupply()).toNumber(), t) + ), + i = Qg.BigNumber.from( + Math.min( + ( + await this.contractWrapper.readContract.nextTokenIdToMint() + ).toNumber(), + a.toNumber() + n + ) + ); + return await Promise.all( + Array.from(Array(i.sub(a).toNumber()).keys()).map((s) => + this.erc721.getTokenMetadata(a.add(s).toString()) + ) + ); + } + async totalClaimedSupply() { + return this.erc721.totalClaimedSupply(); + } + async totalUnclaimedSupply() { + return this.erc721.totalUnclaimedSupply(); + } + async isTransferRestricted() { + return !(await this.contractWrapper.readContract.hasRole( + Ui.getRoleHash("transfer"), + Qg.constants.AddressZero + )); + } + async createBatch(e, t) { + return this.erc721.lazyMint(e, t); + } + async getClaimTransaction(e, t, n) { + return this.erc721.getClaimTransaction(e, t, n); + } + async claimTo(e, t, n) { + return this.erc721.claimTo(e, t, n); + } + async claim(e, t) { + return this.erc721.claim(e, t); + } + async burn(e) { + return this.erc721.burn(e); + } + async call(e) { + for ( + var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), a = 1; + a < t; + a++ + ) + n[a - 1] = arguments[a]; + return this.contractWrapper.call(e, ...n); + } + }; + hs._defineProperty(Zw, "contractRoles", ["admin", "minter", "transfer"]); + lze.SignatureDrop = Zw; + }); + var hze = N((pze) => { + "use strict"; + _(); + x(); + var Qd = ec(), + Df = Rc(), + Wur = Hn(), + QK = wt(); + Gr(); + an(); + Bn(); + Nn(); + On(); + Ln(); + Dn(); + qn(); + Fn(); + Wn(); + Un(); + zn(); + jn(); + Kn(); + Vn(); + Gn(); + Yn(); + $n(); + Jn(); + Zn(); + Qn(); + Xn(); + ea(); + ta(); + ra(); + na(); + aa(); + ia(); + sa(); + oa(); + ca(); + ua(); + la(); + da(); + pa(); + ha(); + fa(); + ma(); + ya(); + ga(); + ba(); + va(); + wa(); + _a(); + xa(); + Ta(); + Ea(); + Ca(); + vn(); + Ia(); + Aa(); + ka(); + An(); + Sa(); + Ma(); + Pa(); + Ra(); + Ba(); + Na(); + Oa(); + La(); + Da(); + qa(); + Fa(); + Wa(); + Ua(); + Ha(); + za(); + function Uur(r) { + return r && r.__esModule ? r : { default: r }; + } + var Hur = Uur(Wur), + Qw = class { + get chainId() { + return this._chainId; + } + constructor(e, t, n) { + let a = + arguments.length > 3 && arguments[3] !== void 0 + ? arguments[3] + : {}, + i = arguments.length > 4 ? arguments[4] : void 0, + s = arguments.length > 5 ? arguments[5] : void 0, + c = + arguments.length > 6 && arguments[6] !== void 0 + ? arguments[6] + : new Df.ContractWrapper(e, t, i, a); + Qd._defineProperty(this, "contractWrapper", void 0), + Qd._defineProperty(this, "storage", void 0), + Qd._defineProperty(this, "abi", void 0), + Qd._defineProperty(this, "metadata", void 0), + Qd._defineProperty(this, "encoder", void 0), + Qd._defineProperty(this, "estimator", void 0), + Qd._defineProperty(this, "events", void 0), + Qd._defineProperty(this, "roles", void 0), + Qd._defineProperty(this, "interceptor", void 0), + Qd._defineProperty(this, "_chainId", void 0), + (this._chainId = s), + (this.abi = i), + (this.contractWrapper = c), + (this.storage = n), + (this.metadata = new Df.ContractMetadata( + this.contractWrapper, + Df.SplitsContractSchema, + this.storage + )), + (this.roles = new Df.ContractRoles( + this.contractWrapper, + Qw.contractRoles + )), + (this.encoder = new Df.ContractEncoder(this.contractWrapper)), + (this.estimator = new Df.GasCostEstimator(this.contractWrapper)), + (this.events = new Df.ContractEvents(this.contractWrapper)), + (this.interceptor = new Df.ContractInterceptor( + this.contractWrapper + )); + } + onNetworkUpdated(e) { + this.contractWrapper.updateSignerOrProvider(e); + } + getAddress() { + return this.contractWrapper.readContract.address; + } + async getAllRecipients() { + let e = [], + t = QK.BigNumber.from(0), + n = await this.contractWrapper.readContract.payeeCount(); + for (; t.lt(n); ) + try { + let a = await this.contractWrapper.readContract.payee(t); + e.push(await this.getRecipientSplitPercentage(a)), (t = t.add(1)); + } catch (a) { + if ( + "method" in a && + a.method.toLowerCase().includes("payee(uint256)") + ) + break; + throw a; + } + return e; + } + async balanceOfAllRecipients() { + let e = await this.getAllRecipients(), + t = {}; + for (let n of e) t[n.address] = await this.balanceOf(n.address); + return t; + } + async balanceOfTokenAllRecipients(e) { + let t = await this.getAllRecipients(), + n = {}; + for (let a of t) + n[a.address] = await this.balanceOfToken(a.address, e); + return n; + } + async balanceOf(e) { + let t = await this.contractWrapper.readContract.provider.getBalance( + this.getAddress() + ), + n = await this.contractWrapper.readContract["totalReleased()"](), + a = t.add(n); + return this._pendingPayment( + e, + a, + await this.contractWrapper.readContract["released(address)"](e) + ); + } + async balanceOfToken(e, t) { + let a = await new QK.Contract( + t, + Hur.default, + this.contractWrapper.getProvider() + ).balanceOf(this.getAddress()), + i = await this.contractWrapper.readContract[ + "totalReleased(address)" + ](t), + s = a.add(i), + c = await this._pendingPayment( + e, + s, + await this.contractWrapper.readContract[ + "released(address,address)" + ](t, e) + ); + return await Df.fetchCurrencyValue( + this.contractWrapper.getProvider(), + t, + c + ); + } + async getRecipientSplitPercentage(e) { + let [t, n] = await Promise.all([ + this.contractWrapper.readContract.totalShares(), + this.contractWrapper.readContract.shares(e), + ]); + return { + address: e, + splitPercentage: + n.mul(QK.BigNumber.from(1e7)).div(t).toNumber() / 1e5, + }; + } + async withdraw(e) { + return { + receipt: await this.contractWrapper.sendTransaction( + "release(address)", + [e] + ), + }; + } + async withdrawToken(e, t) { + return { + receipt: await this.contractWrapper.sendTransaction( + "release(address,address)", + [t, e] + ), + }; + } + async distribute() { + return { + receipt: await this.contractWrapper.sendTransaction( + "distribute()", + [] + ), + }; + } + async distributeToken(e) { + return { + receipt: await this.contractWrapper.sendTransaction( + "distribute(address)", + [e] + ), + }; + } + async _pendingPayment(e, t, n) { + return t + .mul(await this.contractWrapper.readContract.shares(e)) + .div(await this.contractWrapper.readContract.totalShares()) + .sub(n); + } + async call(e) { + for ( + var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), a = 1; + a < t; + a++ + ) + n[a - 1] = arguments[a]; + return this.contractWrapper.call(e, ...n); + } + }; + Qd._defineProperty(Qw, "contractRoles", ["admin"]); + pze.Split = Qw; + }); + var mze = N((fze) => { + "use strict"; + _(); + x(); + var Xd = ec(), + Zu = Rc(), + zur = wt(); + Gr(); + an(); + Bn(); + Nn(); + On(); + Ln(); + Dn(); + qn(); + Fn(); + Wn(); + Un(); + Hn(); + zn(); + jn(); + Kn(); + Vn(); + Gn(); + Yn(); + $n(); + Jn(); + Zn(); + Qn(); + Xn(); + ea(); + ta(); + ra(); + na(); + aa(); + ia(); + sa(); + oa(); + ca(); + ua(); + la(); + da(); + pa(); + ha(); + fa(); + ma(); + ya(); + ga(); + ba(); + va(); + wa(); + _a(); + xa(); + Ta(); + Ea(); + Ca(); + vn(); + Ia(); + Aa(); + ka(); + An(); + Sa(); + Ma(); + Pa(); + Ra(); + Ba(); + Na(); + Oa(); + La(); + Da(); + qa(); + Fa(); + Wa(); + Ua(); + Ha(); + za(); + var Xw = class extends Zu.StandardErc20 { + constructor(e, t, n) { + let a = + arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {}, + i = arguments.length > 4 ? arguments[4] : void 0, + s = arguments.length > 5 ? arguments[5] : void 0, + c = + arguments.length > 6 && arguments[6] !== void 0 + ? arguments[6] + : new Zu.ContractWrapper(e, t, i, a); + super(c, n, s), + Xd._defineProperty(this, "abi", void 0), + Xd._defineProperty(this, "metadata", void 0), + Xd._defineProperty(this, "roles", void 0), + Xd._defineProperty(this, "encoder", void 0), + Xd._defineProperty(this, "estimator", void 0), + Xd._defineProperty(this, "sales", void 0), + Xd._defineProperty(this, "platformFees", void 0), + Xd._defineProperty(this, "events", void 0), + Xd._defineProperty(this, "claimConditions", void 0), + Xd._defineProperty(this, "interceptor", void 0), + (this.abi = i), + (this.metadata = new Zu.ContractMetadata( + this.contractWrapper, + Zu.DropErc20ContractSchema, + this.storage + )), + (this.roles = new Zu.ContractRoles( + this.contractWrapper, + Xw.contractRoles + )), + (this.encoder = new Zu.ContractEncoder(this.contractWrapper)), + (this.estimator = new Zu.GasCostEstimator(this.contractWrapper)), + (this.events = new Zu.ContractEvents(this.contractWrapper)), + (this.sales = new Zu.ContractPrimarySale(this.contractWrapper)), + (this.platformFees = new Zu.ContractPlatformFee( + this.contractWrapper + )), + (this.interceptor = new Zu.ContractInterceptor(this.contractWrapper)), + (this.claimConditions = new Zu.DropClaimConditions( + this.contractWrapper, + this.metadata, + this.storage + )); + } + async getVoteBalance() { + return await this.getVoteBalanceOf( + await this.contractWrapper.getSignerAddress() + ); + } + async getVoteBalanceOf(e) { + return await this.erc20.getValue( + await this.contractWrapper.readContract.getVotes(e) + ); + } + async getDelegation() { + return await this.getDelegationOf( + await this.contractWrapper.getSignerAddress() + ); + } + async getDelegationOf(e) { + return await this.contractWrapper.readContract.delegates(e); + } + async isTransferRestricted() { + return !(await this.contractWrapper.readContract.hasRole( + Zu.getRoleHash("transfer"), + zur.constants.AddressZero + )); + } + async claim(e) { + let t = + arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0; + return this.claimTo( + await this.contractWrapper.getSignerAddress(), + e, + t + ); + } + async claimTo(e, t) { + let n = + arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !0; + return this.erc20.claimTo(e, t, { checkERC20Allowance: n }); + } + async delegateTo(e) { + return { + receipt: await this.contractWrapper.sendTransaction("delegate", [e]), + }; + } + async burnTokens(e) { + return this.erc20.burn(e); + } + async burnFrom(e, t) { + return this.erc20.burnFrom(e, t); + } + async call(e) { + for ( + var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), a = 1; + a < t; + a++ + ) + n[a - 1] = arguments[a]; + return this.contractWrapper.call(e, ...n); + } + }; + Xd._defineProperty(Xw, "contractRoles", ["admin", "transfer"]); + fze.TokenDrop = Xw; + }); + var gze = N((yze) => { + "use strict"; + _(); + x(); + var $l = ec(), + mu = Rc(), + jur = wt(); + Gr(); + an(); + Bn(); + Nn(); + On(); + Ln(); + Dn(); + qn(); + Fn(); + Wn(); + Un(); + Hn(); + zn(); + jn(); + Kn(); + Vn(); + Gn(); + Yn(); + $n(); + Jn(); + Zn(); + Qn(); + Xn(); + ea(); + ta(); + ra(); + na(); + aa(); + ia(); + sa(); + oa(); + ca(); + ua(); + la(); + da(); + pa(); + ha(); + fa(); + ma(); + ya(); + ga(); + ba(); + va(); + wa(); + _a(); + xa(); + Ta(); + Ea(); + Ca(); + vn(); + Ia(); + Aa(); + ka(); + An(); + Sa(); + Ma(); + Pa(); + Ra(); + Ba(); + Na(); + Oa(); + La(); + Da(); + qa(); + Fa(); + Wa(); + Ua(); + Ha(); + za(); + var e2 = class extends mu.StandardErc20 { + constructor(e, t, n) { + let a = + arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {}, + i = arguments.length > 4 ? arguments[4] : void 0, + s = arguments.length > 5 ? arguments[5] : void 0, + c = + arguments.length > 6 && arguments[6] !== void 0 + ? arguments[6] + : new mu.ContractWrapper(e, t, i, a); + super(c, n, s), + $l._defineProperty(this, "abi", void 0), + $l._defineProperty(this, "metadata", void 0), + $l._defineProperty(this, "roles", void 0), + $l._defineProperty(this, "encoder", void 0), + $l._defineProperty(this, "estimator", void 0), + $l._defineProperty(this, "history", void 0), + $l._defineProperty(this, "events", void 0), + $l._defineProperty(this, "platformFees", void 0), + $l._defineProperty(this, "sales", void 0), + $l._defineProperty(this, "signature", void 0), + $l._defineProperty(this, "interceptor", void 0), + (this.abi = i), + (this.metadata = new mu.ContractMetadata( + this.contractWrapper, + mu.TokenErc20ContractSchema, + this.storage + )), + (this.roles = new mu.ContractRoles( + this.contractWrapper, + e2.contractRoles + )), + (this.sales = new mu.ContractPrimarySale(this.contractWrapper)), + (this.events = new mu.ContractEvents(this.contractWrapper)), + (this.history = new mu.TokenERC20History( + this.contractWrapper, + this.events + )), + (this.encoder = new mu.ContractEncoder(this.contractWrapper)), + (this.estimator = new mu.GasCostEstimator(this.contractWrapper)), + (this.platformFees = new mu.ContractPlatformFee( + this.contractWrapper + )), + (this.interceptor = new mu.ContractInterceptor(this.contractWrapper)), + (this.signature = new mu.Erc20SignatureMintable( + this.contractWrapper, + this.roles + )); + } + async getVoteBalance() { + return await this.getVoteBalanceOf( + await this.contractWrapper.getSignerAddress() + ); + } + async getVoteBalanceOf(e) { + return await this.erc20.getValue( + await this.contractWrapper.readContract.getVotes(e) + ); + } + async getDelegation() { + return await this.getDelegationOf( + await this.contractWrapper.getSignerAddress() + ); + } + async getDelegationOf(e) { + return await this.contractWrapper.readContract.delegates(e); + } + async isTransferRestricted() { + return !(await this.contractWrapper.readContract.hasRole( + mu.getRoleHash("transfer"), + jur.constants.AddressZero + )); + } + async mint(e) { + return this.erc20.mint(e); + } + async mintTo(e, t) { + return this.erc20.mintTo(e, t); + } + async getMintTransaction(e, t) { + return this.erc20.getMintTransaction(e, t); + } + async mintBatchTo(e) { + return this.erc20.mintBatchTo(e); + } + async delegateTo(e) { + return { + receipt: await this.contractWrapper.sendTransaction("delegate", [e]), + }; + } + async burn(e) { + return this.erc20.burn(e); + } + async burnFrom(e, t) { + return this.erc20.burnFrom(e, t); + } + async call(e) { + for ( + var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), a = 1; + a < t; + a++ + ) + n[a - 1] = arguments[a]; + return this.contractWrapper.call(e, ...n); + } + }; + $l._defineProperty(e2, "contractRoles", ["admin", "minter", "transfer"]); + yze.Token = e2; + }); + var vze = N((bze) => { + "use strict"; + _(); + x(); + var qf = ec(), + Jl = Rc(), + Kur = Hn(), + k3 = wt(); + Gr(); + an(); + Bn(); + Nn(); + On(); + Ln(); + Dn(); + qn(); + Fn(); + Wn(); + Un(); + zn(); + jn(); + Kn(); + Vn(); + Gn(); + Yn(); + $n(); + Jn(); + Zn(); + Qn(); + Xn(); + ea(); + ta(); + ra(); + na(); + aa(); + ia(); + sa(); + oa(); + ca(); + ua(); + la(); + da(); + pa(); + ha(); + fa(); + ma(); + ya(); + ga(); + ba(); + va(); + wa(); + _a(); + xa(); + Ta(); + Ea(); + Ca(); + vn(); + Ia(); + Aa(); + ka(); + An(); + Sa(); + Ma(); + Pa(); + Ra(); + Ba(); + Na(); + Oa(); + La(); + Da(); + qa(); + Fa(); + Wa(); + Ua(); + Ha(); + za(); + function Vur(r) { + return r && r.__esModule ? r : { default: r }; + } + var Gur = Vur(Kur), + XK = class { + get chainId() { + return this._chainId; + } + constructor(e, t, n) { + let a = + arguments.length > 3 && arguments[3] !== void 0 + ? arguments[3] + : {}, + i = arguments.length > 4 ? arguments[4] : void 0, + s = arguments.length > 5 ? arguments[5] : void 0, + c = + arguments.length > 6 && arguments[6] !== void 0 + ? arguments[6] + : new Jl.ContractWrapper(e, t, i, a); + qf._defineProperty(this, "contractWrapper", void 0), + qf._defineProperty(this, "storage", void 0), + qf._defineProperty(this, "abi", void 0), + qf._defineProperty(this, "metadata", void 0), + qf._defineProperty(this, "encoder", void 0), + qf._defineProperty(this, "estimator", void 0), + qf._defineProperty(this, "events", void 0), + qf._defineProperty(this, "interceptor", void 0), + qf._defineProperty(this, "_chainId", void 0), + (this._chainId = s), + (this.abi = i), + (this.contractWrapper = c), + (this.storage = n), + (this.metadata = new Jl.ContractMetadata( + this.contractWrapper, + Jl.VoteContractSchema, + this.storage + )), + (this.encoder = new Jl.ContractEncoder(this.contractWrapper)), + (this.estimator = new Jl.GasCostEstimator(this.contractWrapper)), + (this.events = new Jl.ContractEvents(this.contractWrapper)), + (this.interceptor = new Jl.ContractInterceptor( + this.contractWrapper + )); + } + onNetworkUpdated(e) { + this.contractWrapper.updateSignerOrProvider(e); + } + getAddress() { + return this.contractWrapper.readContract.address; + } + async get(e) { + let n = (await this.getAll()).filter((a) => + a.proposalId.eq(k3.BigNumber.from(e)) + ); + if (n.length === 0) throw new Error("proposal not found"); + return n[0]; + } + async getAll() { + return Promise.all( + (await this.contractWrapper.readContract.getAllProposals()).map( + async (e) => ({ + proposalId: e.proposalId, + proposer: e.proposer, + description: e.description, + startBlock: e.startBlock, + endBlock: e.endBlock, + state: await this.contractWrapper.readContract.state( + e.proposalId + ), + votes: await this.getProposalVotes(e.proposalId), + executions: e[3].map((t, n) => ({ + toAddress: e.targets[n], + nativeTokenValue: t, + transactionData: e.calldatas[n], + })), + }) + ) + ); + } + async getProposalVotes(e) { + let t = await this.contractWrapper.readContract.proposalVotes(e); + return [ + { + type: Jl.VoteType.Against, + label: "Against", + count: t.againstVotes, + }, + { type: Jl.VoteType.For, label: "For", count: t.forVotes }, + { + type: Jl.VoteType.Abstain, + label: "Abstain", + count: t.abstainVotes, + }, + ]; + } + async hasVoted(e, t) { + return ( + t || (t = await this.contractWrapper.getSignerAddress()), + this.contractWrapper.readContract.hasVoted(e, t) + ); + } + async canExecute(e) { + await this.ensureExists(e); + let t = await this.get(e), + n = t.executions.map((c) => c.toAddress), + a = t.executions.map((c) => c.nativeTokenValue), + i = t.executions.map((c) => c.transactionData), + s = k3.ethers.utils.id(t.description); + try { + return ( + await this.contractWrapper.callStatic().execute(n, a, i, s), !0 + ); + } catch { + return !1; + } + } + async balance() { + let e = await this.contractWrapper.readContract.provider.getBalance( + this.contractWrapper.readContract.address + ); + return { + name: "", + symbol: "", + decimals: 18, + value: e, + displayValue: k3.ethers.utils.formatUnits(e, 18), + }; + } + async balanceOfToken(e) { + let t = new k3.Contract( + e, + Gur.default, + this.contractWrapper.getProvider() + ); + return await Jl.fetchCurrencyValue( + this.contractWrapper.getProvider(), + e, + await t.balanceOf(this.contractWrapper.readContract.address) + ); + } + async ensureExists(e) { + try { + await this.contractWrapper.readContract.state(e); + } catch { + throw Error(`Proposal ${e} not found`); + } + } + async settings() { + let [e, t, n, a, i] = await Promise.all([ + this.contractWrapper.readContract.votingDelay(), + this.contractWrapper.readContract.votingPeriod(), + this.contractWrapper.readContract.token(), + this.contractWrapper.readContract["quorumNumerator()"](), + this.contractWrapper.readContract.proposalThreshold(), + ]), + s = await Jl.fetchCurrencyMetadata( + this.contractWrapper.getProvider(), + n + ); + return { + votingDelay: e.toString(), + votingPeriod: t.toString(), + votingTokenAddress: n, + votingTokenMetadata: s, + votingQuorumFraction: a.toString(), + proposalTokenThreshold: i.toString(), + }; + } + async propose(e, t) { + t || + (t = [ + { + toAddress: this.contractWrapper.readContract.address, + nativeTokenValue: 0, + transactionData: "0x", + }, + ]); + let n = t.map((l) => l.toAddress), + a = t.map((l) => l.nativeTokenValue), + i = t.map((l) => l.transactionData), + s = await this.contractWrapper.sendTransaction("propose", [ + n, + a, + i, + e, + ]); + return { + id: this.contractWrapper.parseLogs("ProposalCreated", s?.logs)[0] + .args.proposalId, + receipt: s, + }; + } + async vote(e, t) { + let n = + arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : ""; + return ( + await this.ensureExists(e), + { + receipt: await this.contractWrapper.sendTransaction( + "castVoteWithReason", + [e, t, n] + ), + } + ); + } + async execute(e) { + await this.ensureExists(e); + let t = await this.get(e), + n = t.executions.map((c) => c.toAddress), + a = t.executions.map((c) => c.nativeTokenValue), + i = t.executions.map((c) => c.transactionData), + s = k3.ethers.utils.id(t.description); + return { + receipt: await this.contractWrapper.sendTransaction("execute", [ + n, + a, + i, + s, + ]), + }; + } + async call(e) { + for ( + var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), a = 1; + a < t; + a++ + ) + n[a - 1] = arguments[a]; + return this.contractWrapper.call(e, ...n); + } + }; + bze.Vote = XK; + }); + var Rc = N((X) => { + "use strict"; + _(); + x(); + var Te = an(), + le = ec(), + se = wt(), + Yur = Bn(), + $ur = Nn(), + Jur = On(), + Zur = Ln(), + Qur = Dn(), + Xur = qn(), + elr = Fn(), + tlr = Wn(), + rlr = Un(), + nlr = Hn(), + alr = zn(), + ilr = jn(), + slr = Kn(), + olr = Vn(), + clr = Gn(), + ulr = Yn(), + llr = $n(), + dlr = Jn(), + plr = Zn(), + hlr = Qn(), + flr = Xn(), + mlr = ea(), + ylr = ta(), + glr = ra(), + blr = na(), + vlr = aa(), + wlr = ia(), + _lr = sa(), + xlr = oa(), + Tlr = ca(), + Elr = ua(), + Clr = la(), + Ilr = da(), + Alr = pa(), + klr = ha(), + Slr = fa(), + Mlr = ma(), + Plr = ya(), + Rlr = ga(), + Blr = ba(), + Nlr = va(), + Olr = wa(), + Llr = _a(), + Dlr = xa(), + qlr = Ta(), + Flr = Ea(), + Wlr = Ca(), + Ulr = vn(), + iG = Ia(), + Jze = Aa(), + Hlr = ka(), + S3 = An(), + zlr = Sa(), + jlr = Ma(), + Klr = Pa(), + eV = Ra(), + Vlr = Ba(), + Glr = Na(), + Ylr = Oa(), + $lr = La(), + Jlr = Da(), + Zlr = qa(), + Qlr = Fa(), + Xlr = Wa(), + edr = Ua(), + tdr = Ha(), + rdr = za(); + function Bt(r) { + return r && r.__esModule ? r : { default: r }; + } + function Us(r) { + if (r && r.__esModule) return r; + var e = Object.create(null); + return ( + r && + Object.keys(r).forEach(function (t) { + if (t !== "default") { + var n = Object.getOwnPropertyDescriptor(r, t); + Object.defineProperty( + e, + t, + n.get + ? n + : { + enumerable: !0, + get: function () { + return r[t]; + }, + } + ); + } + }), + (e.default = r), + Object.freeze(e) + ); + } + var wR = Bt(Yur), + io = Bt($ur), + Oc = Bt(Jur), + pr = Bt(Zur), + ndr = Bt(Qur), + Zze = Bt(Xur), + adr = Bt(elr), + Qze = Bt(tlr), + Xze = Bt(rlr), + vu = Bt(nlr), + eje = Bt(alr), + sG = Bt(ilr), + idr = Bt(slr), + sdr = Bt(olr), + odr = Bt(clr), + tje = Bt(ulr), + cdr = Bt(llr), + udr = Bt(dlr), + ldr = Bt(plr), + ed = Bt(hlr), + rje = Bt(flr), + ddr = Bt(mlr), + pdr = Bt(ylr), + hdr = Bt(glr), + fdr = Bt(blr), + mdr = Bt(vlr), + ydr = Bt(wlr), + nje = Bt(_lr), + gdr = Bt(xlr), + bdr = Bt(Tlr), + vdr = Bt(Elr), + aje = Bt(Clr), + wdr = Bt(Ilr), + _dr = Bt(Alr), + xdr = Bt(klr), + Tdr = Bt(Slr), + Edr = Bt(Mlr), + Cdr = Bt(Plr), + Idr = Bt(Rlr), + Adr = Bt(Blr), + kdr = Bt(Nlr), + Sdr = Bt(Olr), + Mdr = Bt(Llr), + Pdr = Bt(Dlr), + Rdr = Bt(qlr), + Bdr = Bt(Flr), + Ndr = Bt(Wlr), + aV = Bt(Ulr), + iV = Bt(Jze), + Odr = Bt(Hlr), + Ldr = Bt(zlr), + Ddr = Bt(jlr), + ije = Bt(Klr), + sje = Bt(Vlr), + qdr = Bt(Ylr), + Fdr = Bt($lr), + Wdr = Bt(Jlr), + Udr = Bt(Zlr), + Hdr = Bt(Qlr), + zdr = Bt(Xlr), + jdr = Bt(edr), + Kdr = Bt(tdr), + Vdr = Bt(rdr); + function Gdr(r, e) { + if (e.has(r)) + throw new TypeError( + "Cannot initialize the same private elements twice on an object" + ); + } + function sV(r, e, t) { + Gdr(r, e), e.set(r, t); + } + function Ydr(r, e) { + return e.get ? e.get.call(r) : e.value; + } + function oje(r, e, t) { + if (!e.has(r)) + throw new TypeError( + "attempted to " + t + " private field on non-instance" + ); + return e.get(r); + } + function a9(r, e) { + var t = oje(r, e, "get"); + return Ydr(r, t); + } + function $dr(r, e, t) { + if (e.set) e.set.call(r, t); + else { + if (!e.writable) + throw new TypeError("attempted to set read only private field"); + e.value = t; + } + } + function oV(r, e, t) { + var n = oje(r, e, "set"); + return $dr(r, n, t), t; + } + X.ChainId = void 0; + (function (r) { + (r[(r.Mainnet = 1)] = "Mainnet"), + (r[(r.Goerli = 5)] = "Goerli"), + (r[(r.Polygon = 137)] = "Polygon"), + (r[(r.Mumbai = 80001)] = "Mumbai"), + (r[(r.Localhost = 1337)] = "Localhost"), + (r[(r.Hardhat = 31337)] = "Hardhat"), + (r[(r.Fantom = 250)] = "Fantom"), + (r[(r.FantomTestnet = 4002)] = "FantomTestnet"), + (r[(r.Avalanche = 43114)] = "Avalanche"), + (r[(r.AvalancheFujiTestnet = 43113)] = "AvalancheFujiTestnet"), + (r[(r.Optimism = 10)] = "Optimism"), + (r[(r.OptimismGoerli = 420)] = "OptimismGoerli"), + (r[(r.Arbitrum = 42161)] = "Arbitrum"), + (r[(r.ArbitrumGoerli = 421613)] = "ArbitrumGoerli"), + (r[(r.BinanceSmartChainMainnet = 56)] = "BinanceSmartChainMainnet"), + (r[(r.BinanceSmartChainTestnet = 97)] = "BinanceSmartChainTestnet"); + })(X.ChainId || (X.ChainId = {})); + var cje = [ + X.ChainId.Mainnet, + X.ChainId.Goerli, + X.ChainId.Polygon, + X.ChainId.Mumbai, + X.ChainId.Fantom, + X.ChainId.FantomTestnet, + X.ChainId.Avalanche, + X.ChainId.AvalancheFujiTestnet, + X.ChainId.Optimism, + X.ChainId.OptimismGoerli, + X.ChainId.Arbitrum, + X.ChainId.ArbitrumGoerli, + X.ChainId.BinanceSmartChainMainnet, + X.ChainId.BinanceSmartChainTestnet, + X.ChainId.Hardhat, + X.ChainId.Localhost, + ], + uje = + "0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80", + _0 = "0xc82BbE41f2cF04e3a8efA18F7032BDD7f6d98a81", + v0 = "0x7c487845f98938Bb955B1D5AD069d9a30e4131fd", + Xg = "0x5DBC7B840baa9daBcBe9D2492E45D7244B54A2A0", + Jdr = "0x664244560eBa21Bf82d7150C791bE1AbcD5B4cd7", + Zdr = "0xcdAD8FA86e18538aC207872E8ff3536501431B73", + o2 = { + [X.ChainId.Mainnet]: { + openzeppelinForwarder: _0, + openzeppelinForwarderEOA: + "0x76ce2CB1Ae48Fa067f4fb8c5f803111AE0B24BEA", + biconomyForwarder: "0x84a0856b038eaAd1cC7E297cF34A7e72685A8693", + twFactory: Xg, + twRegistry: v0, + twBYOCRegistry: se.constants.AddressZero, + }, + [X.ChainId.Goerli]: { + openzeppelinForwarder: "0x5001A14CA6163143316a7C614e30e6041033Ac20", + openzeppelinForwarderEOA: + "0xe73c50cB9c5B378627ff625BB6e6725A4A5D65d2", + biconomyForwarder: "0xE041608922d06a4F26C0d4c27d8bCD01daf1f792", + twFactory: Xg, + twRegistry: v0, + twBYOCRegistry: "0xB1Bd9d7942A250BA2Dce27DD601F2ED4211A60C4", + }, + [X.ChainId.Polygon]: { + openzeppelinForwarder: _0, + openzeppelinForwarderEOA: + "0x4f247c69184ad61036EC2Bb3213b69F10FbEDe1F", + biconomyForwarder: "0x86C80a8aa58e0A4fa09A69624c31Ab2a6CAD56b8", + twFactory: Xg, + twRegistry: v0, + twBYOCRegistry: "0x308473Be900F4185A56587dE54bDFF5E8f7a6AE7", + }, + [X.ChainId.Mumbai]: { + openzeppelinForwarder: _0, + openzeppelinForwarderEOA: + "0xb1A2883fc4d287d9cB8Dbb96cFF60C76BEf2D250", + biconomyForwarder: "0x9399BB24DBB5C4b782C70c2969F58716Ebbd6a3b", + twFactory: Xg, + twRegistry: v0, + twBYOCRegistry: "0x3F17972CB27506eb4a6a3D59659e0B57a43fd16C", + }, + [X.ChainId.Avalanche]: { + openzeppelinForwarder: _0, + openzeppelinForwarderEOA: + "0xb1A2883fc4d287d9cB8Dbb96cFF60C76BEf2D250", + biconomyForwarder: "0x64CD353384109423a966dCd3Aa30D884C9b2E057", + twFactory: Xg, + twRegistry: v0, + twBYOCRegistry: se.constants.AddressZero, + }, + [X.ChainId.AvalancheFujiTestnet]: { + openzeppelinForwarder: _0, + openzeppelinForwarderEOA: + "0xe73c50cB9c5B378627ff625BB6e6725A4A5D65d2", + biconomyForwarder: "0x6271Ca63D30507f2Dcbf99B52787032506D75BBF", + twFactory: Xg, + twRegistry: v0, + twBYOCRegistry: "0x3E6eE864f850F5e5A98bc950B68E181Cf4010F23", + }, + [X.ChainId.Fantom]: { + openzeppelinForwarder: _0, + openzeppelinForwarderEOA: + "0xb1A2883fc4d287d9cB8Dbb96cFF60C76BEf2D250", + biconomyForwarder: "0x64CD353384109423a966dCd3Aa30D884C9b2E057", + twFactory: "0x97EA0Fcc552D5A8Fb5e9101316AAd0D62Ea0876B", + twRegistry: v0, + twBYOCRegistry: se.constants.AddressZero, + }, + [X.ChainId.FantomTestnet]: { + openzeppelinForwarder: _0, + openzeppelinForwarderEOA: + "0x42D3048b595B6e1c28a588d70366CcC2AA4dB47b", + biconomyForwarder: "0x69FB8Dca8067A5D38703b9e8b39cf2D51473E4b4", + twFactory: Xg, + twRegistry: v0, + twBYOCRegistry: "0x3E6eE864f850F5e5A98bc950B68E181Cf4010F23", + }, + [X.ChainId.Arbitrum]: { + openzeppelinForwarder: "0x8cbc8B5d71702032904750A66AEfE8B603eBC538", + openzeppelinForwarderEOA: + "0x4f247c69184ad61036EC2Bb3213b69F10FbEDe1F", + biconomyForwarder: "0xfe0fa3C06d03bDC7fb49c892BbB39113B534fB57", + twFactory: "0xd24b3de085CFd8c54b94feAD08a7962D343E6DE0", + twRegistry: "0x7c487845f98938Bb955B1D5AD069d9a30e4131fd", + twBYOCRegistry: se.constants.AddressZero, + }, + [X.ChainId.ArbitrumGoerli]: { + openzeppelinForwarder: "0x8cbc8B5d71702032904750A66AEfE8B603eBC538", + openzeppelinForwarderEOA: + "0x119704314Ef304EaAAE4b3c7C9ABd59272A28310", + biconomyForwarder: se.constants.AddressZero, + twFactory: "0xd24b3de085CFd8c54b94feAD08a7962D343E6DE0", + twRegistry: "0x7c487845f98938Bb955B1D5AD069d9a30e4131fd", + twBYOCRegistry: se.constants.AddressZero, + }, + [X.ChainId.Optimism]: { + openzeppelinForwarder: "0x8cbc8B5d71702032904750A66AEfE8B603eBC538", + openzeppelinForwarderEOA: + "0x7e80648EB2071E26937F9D42A513ccf4815fc702", + biconomyForwarder: "0xefba8a2a82ec1fb1273806174f5e28fbb917cf95", + twFactory: "0xd24b3de085CFd8c54b94feAD08a7962D343E6DE0", + twRegistry: "0x7c487845f98938Bb955B1D5AD069d9a30e4131fd", + twBYOCRegistry: se.constants.AddressZero, + }, + [X.ChainId.OptimismGoerli]: { + openzeppelinForwarder: "0x8cbc8B5d71702032904750A66AEfE8B603eBC538", + openzeppelinForwarderEOA: + "0x119704314Ef304EaAAE4b3c7C9ABd59272A28310", + biconomyForwarder: se.constants.AddressZero, + twFactory: "0xd24b3de085CFd8c54b94feAD08a7962D343E6DE0", + twRegistry: "0x7c487845f98938Bb955B1D5AD069d9a30e4131fd", + twBYOCRegistry: se.constants.AddressZero, + }, + [X.ChainId.BinanceSmartChainMainnet]: { + openzeppelinForwarder: "0x8cbc8B5d71702032904750A66AEfE8B603eBC538", + openzeppelinForwarderEOA: + "0xE8dd2Ff0212F86d3197b4AfDC6dAC6ac47eb10aC", + biconomyForwarder: "0x86C80a8aa58e0A4fa09A69624c31Ab2a6CAD56b8", + twBYOCRegistry: se.constants.AddressZero, + twFactory: "0xd24b3de085CFd8c54b94feAD08a7962D343E6DE0", + twRegistry: "0x7c487845f98938Bb955B1D5AD069d9a30e4131fd", + }, + [X.ChainId.BinanceSmartChainTestnet]: { + openzeppelinForwarder: "0x8cbc8B5d71702032904750A66AEfE8B603eBC538", + openzeppelinForwarderEOA: + "0x7e80648EB2071E26937F9D42A513ccf4815fc702", + biconomyForwarder: "0x61456BF1715C1415730076BB79ae118E806E74d2", + twBYOCRegistry: se.constants.AddressZero, + twFactory: "0xd24b3de085CFd8c54b94feAD08a7962D343E6DE0", + twRegistry: "0x7c487845f98938Bb955B1D5AD069d9a30e4131fd", + }, + [X.ChainId.Hardhat]: { + openzeppelinForwarder: se.constants.AddressZero, + openzeppelinForwarderEOA: se.constants.AddressZero, + biconomyForwarder: se.constants.AddressZero, + twFactory: se.constants.AddressZero, + twRegistry: se.constants.AddressZero, + twBYOCRegistry: se.constants.AddressZero, + }, + [X.ChainId.Localhost]: { + openzeppelinForwarder: se.constants.AddressZero, + openzeppelinForwarderEOA: se.constants.AddressZero, + biconomyForwarder: se.constants.AddressZero, + twFactory: se.constants.AddressZero, + twRegistry: se.constants.AddressZero, + twBYOCRegistry: se.constants.AddressZero, + }, + }, + cV = { + [X.ChainId.Mainnet]: { + "nft-drop": "0x60fF9952e0084A6DEac44203838cDC91ABeC8736", + "edition-drop": "0x74af262d0671F378F97a1EDC3d0970Dbe8A1C550", + "token-drop": "0xE1eE43D23f247b6A9aF81fcE2766E76709482728", + "signature-drop": "0x6fD690EB509BdE4C50028C5D9C0dE3750C2Fad6A", + }, + [X.ChainId.Polygon]: { + "nft-drop": "0xB96508050Ba0925256184103560EBADA912Fcc69", + "edition-drop": "0x74af262d0671F378F97a1EDC3d0970Dbe8A1C550", + "token-drop": "0x5A8eA4Adad8289746D073947BA06D69A62499aaf", + "signature-drop": "0xBE2fDc35410E268e41Bec62DBb01AEb43245c7d5", + }, + [X.ChainId.Fantom]: { + "nft-drop": "0x2A396b2D90BAcEF19cDa973586B2633d22710fC2", + "edition-drop": "0x06395FCF9AC6ED827f9dD6e776809cEF1Be0d21B", + "token-drop": "0x0148b28a38efaaC31b6aa0a6D9FEb70FE7C91FFa", + "signature-drop": "0xe135Ef65C2B2213C3fD56d0Bd6500A2cA147aC10", + }, + [X.ChainId.Avalanche]: { + "nft-drop": "0x9cF91118C8ee2913F0588e0F10e36B3d63F68bF6", + "edition-drop": "0x135fC9D26E5eC51260ece1DF4ED424E2f55c7766", + "token-drop": "0xca0B071899E575BA86495D46c5066971b6f3A901", + "signature-drop": "0x1d47526C3292B0130ef0afD5F02c1DA052A017B3", + }, + [X.ChainId.Optimism]: { + "nft-drop": "0xFBd7D24d80ee005671E731a7287DEB6073264dD1", + "edition-drop": "0xe135Ef65C2B2213C3fD56d0Bd6500A2cA147aC10", + "token-drop": "0x902Dd246e66d8C3CE652375a723F2a52b43b9AAE", + "signature-drop": "0x8a4cd3549e548bbEEb38C16E041FFf040a5acabD", + }, + [X.ChainId.Arbitrum]: { + "nft-drop": "0xC4903c1Ff5367b9ac2c349B63DC2409421AaEE2a", + "edition-drop": "0xCcddcec1831646Beff2753249f1B9C580327E89F", + "token-drop": "0x1b5947e1a2d5a29D0df20931DeAB0B87818209B9", + "signature-drop": "0x2dF9851af45dd41C8584ac55D983C604da985Bc7", + }, + [X.ChainId.BinanceSmartChainMainnet]: { + "nft-drop": "0x902Dd246e66d8C3CE652375a723F2a52b43b9AAE", + "edition-drop": "0x2A396b2D90BAcEF19cDa973586B2633d22710fC2", + "token-drop": "0xe135Ef65C2B2213C3fD56d0Bd6500A2cA147aC10", + "signature-drop": "0xFBd7D24d80ee005671E731a7287DEB6073264dD1", + }, + [X.ChainId.Goerli]: { + "nft-drop": "0xD11c97DD5F5546B5bBd630D7D1d7327481B0b92C", + "edition-drop": "0x5A8eA4Adad8289746D073947BA06D69A62499aaf", + "token-drop": "0x5680933221B752EB443654a014f88B101F868d50", + "signature-drop": "0x1b5947e1a2d5a29D0df20931DeAB0B87818209B9", + }, + [X.ChainId.Mumbai]: { + "nft-drop": "0xC4903c1Ff5367b9ac2c349B63DC2409421AaEE2a", + "edition-drop": "0xCcddcec1831646Beff2753249f1B9C580327E89F", + "token-drop": "0x1b5947e1a2d5a29D0df20931DeAB0B87818209B9", + "signature-drop": "0x2dF9851af45dd41C8584ac55D983C604da985Bc7", + }, + [X.ChainId.FantomTestnet]: { + "nft-drop": "0x8a4cd3549e548bbEEb38C16E041FFf040a5acabD", + "edition-drop": "0x902Dd246e66d8C3CE652375a723F2a52b43b9AAE", + "token-drop": "0xFBd7D24d80ee005671E731a7287DEB6073264dD1", + "signature-drop": "0x5A8eA4Adad8289746D073947BA06D69A62499aaf", + }, + [X.ChainId.AvalancheFujiTestnet]: { + "nft-drop": "0xD11c97DD5F5546B5bBd630D7D1d7327481B0b92C", + "edition-drop": "0xE1eE43D23f247b6A9aF81fcE2766E76709482728", + "token-drop": "0x6fD690EB509BdE4C50028C5D9C0dE3750C2Fad6A", + "signature-drop": "0xCcddcec1831646Beff2753249f1B9C580327E89F", + }, + [X.ChainId.OptimismGoerli]: { + "nft-drop": "0xCcddcec1831646Beff2753249f1B9C580327E89F", + "edition-drop": "0x6fD690EB509BdE4C50028C5D9C0dE3750C2Fad6A", + "token-drop": "0xD11c97DD5F5546B5bBd630D7D1d7327481B0b92C", + "signature-drop": "0x1b5947e1a2d5a29D0df20931DeAB0B87818209B9", + }, + [X.ChainId.ArbitrumGoerli]: { + "nft-drop": "0x9CfE807a5b124b962064Fa8F7FD823Cc701255b6", + "edition-drop": "0x9cF91118C8ee2913F0588e0F10e36B3d63F68bF6", + "token-drop": "0x1d47526C3292B0130ef0afD5F02c1DA052A017B3", + "signature-drop": "0xE1eE43D23f247b6A9aF81fcE2766E76709482728", + }, + [X.ChainId.BinanceSmartChainTestnet]: { + "nft-drop": "", + "edition-drop": "", + "token-drop": "", + "signature-drop": "", + }, + [X.ChainId.Hardhat]: { + "nft-drop": "", + "edition-drop": "", + "token-drop": "", + "signature-drop": "", + }, + [X.ChainId.Localhost]: { + "nft-drop": "", + "edition-drop": "", + "token-drop": "", + "signature-drop": "", + }, + }; + function lje(r, e) { + if (r in cV) { + let t = cV[r]; + if (e in t) return t[e]; + } + return null; + } + function i9(r, e) { + return r === X.ChainId.Hardhat || r === X.ChainId.Localhost + ? e === "twFactory" + ? S.env.factoryAddress + : e === "twRegistry" + ? S.env.registryAddress + : se.constants.AddressZero + : o2[r]?.[e]; + } + function dje() { + return S.env.contractPublisherAddress + ? S.env.contractPublisherAddress + : Jdr; + } + function uV() { + return S.env.multiChainRegistryAddress + ? S.env.multiChainRegistryAddress + : Zdr; + } + function oG(r) { + let e = cje.find((a) => a === r), + t = e ? o2[e].biconomyForwarder : se.constants.AddressZero, + n = e ? o2[e].openzeppelinForwarder : se.constants.AddressZero; + return t !== se.constants.AddressZero ? [n, t] : [n]; + } + var Q3 = se.utils.arrayify("0x80ac58cd"), + X3 = se.utils.arrayify("0xd9b67a26"), + Zl = "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee", + cG = { + [X.ChainId.Mainnet]: { + name: "Ether", + symbol: "ETH", + decimals: 18, + wrapped: { + address: "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2", + name: "Wrapped Ether", + symbol: "WETH", + }, + }, + [X.ChainId.Goerli]: { + name: "G\xF6rli Ether", + symbol: "GOR", + decimals: 18, + wrapped: { + address: "0xb4fbf271143f4fbf7b91a5ded31805e42b2208d6", + name: "Wrapped Ether", + symbol: "WETH", + }, + }, + [X.ChainId.Polygon]: { + name: "Matic", + symbol: "MATIC", + decimals: 18, + wrapped: { + address: "0x0d500B1d8E8eF31E21C99d1Db9A6444d3ADf1270", + name: "Wrapped Matic", + symbol: "WMATIC", + }, + }, + [X.ChainId.Mumbai]: { + name: "Matic", + symbol: "MATIC", + decimals: 18, + wrapped: { + address: "0x9c3C9283D3e44854697Cd22D3Faa240Cfb032889", + name: "Wrapped Matic", + symbol: "WMATIC", + }, + }, + [X.ChainId.Avalanche]: { + name: "Avalanche", + symbol: "AVAX", + decimals: 18, + wrapped: { + address: "0xB31f66AA3C1e785363F0875A1B74E27b85FD66c7", + name: "Wrapped AVAX", + symbol: "WAVAX", + }, + }, + [X.ChainId.AvalancheFujiTestnet]: { + name: "Avalanche", + symbol: "AVAX", + decimals: 18, + wrapped: { + address: "0xd00ae08403B9bbb9124bB305C09058E32C39A48c", + name: "Wrapped AVAX", + symbol: "WAVAX", + }, + }, + [X.ChainId.Fantom]: { + name: "Fantom", + symbol: "FTM", + decimals: 18, + wrapped: { + address: "0x21be370D5312f44cB42ce377BC9b8a0cEF1A4C83", + name: "Wrapped Fantom", + symbol: "WFTM", + }, + }, + [X.ChainId.FantomTestnet]: { + name: "Fantom", + symbol: "FTM", + decimals: 18, + wrapped: { + address: "0xf1277d1Ed8AD466beddF92ef448A132661956621", + name: "Wrapped Fantom", + symbol: "WFTM", + }, + }, + [X.ChainId.Arbitrum]: { + name: "Ether", + symbol: "ETH", + decimals: 18, + wrapped: { + address: "0x82af49447d8a07e3bd95bd0d56f35241523fbab1", + name: "Wrapped Ether", + symbol: "WETH", + }, + }, + [X.ChainId.ArbitrumGoerli]: { + name: "Arbitrum Goerli Ether", + symbol: "AGOR", + decimals: 18, + wrapped: { + address: "0xe39Ab88f8A4777030A534146A9Ca3B52bd5D43A3", + name: "Wrapped Ether", + symbol: "WETH", + }, + }, + [X.ChainId.Optimism]: { + name: "Ether", + symbol: "ETH", + decimals: 18, + wrapped: { + address: "0x4200000000000000000000000000000000000006", + name: "Wrapped Ether", + symbol: "WETH", + }, + }, + [X.ChainId.OptimismGoerli]: { + name: "Goerli Ether", + symbol: "ETH", + decimals: 18, + wrapped: { + address: "0x4200000000000000000000000000000000000006", + name: "Wrapped Ether", + symbol: "WETH", + }, + }, + [X.ChainId.BinanceSmartChainMainnet]: { + name: "Binance Chain Native Token", + symbol: "BNB", + decimals: 18, + wrapped: { + address: "0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c", + name: "Wrapped Binance Chain Token", + symbol: "WBNB", + }, + }, + [X.ChainId.BinanceSmartChainTestnet]: { + name: "Binance Chain Native Token", + symbol: "TBNB", + decimals: 18, + wrapped: { + address: "0xae13d989daC2f0dEbFf460aC112a837C89BAa7cd", + name: "Wrapped Binance Chain Testnet Token", + symbol: "WBNB", + }, + }, + [X.ChainId.Hardhat]: { + name: "Ether", + symbol: "ETH", + decimals: 18, + wrapped: { + address: "0x5FbDB2315678afecb367f032d93F642f64180aa3", + name: "Wrapped Ether", + symbol: "WETH", + }, + }, + [X.ChainId.Localhost]: { + name: "Ether", + symbol: "ETH", + decimals: 18, + wrapped: { + address: "0x5FbDB2315678afecb367f032d93F642f64180aa3", + name: "Wrapped Ether", + symbol: "WETH", + }, + }, + }; + function s9(r) { + return ( + cG[r] || { + name: "Ether", + symbol: "ETH", + decimals: 18, + wrapped: { + address: se.ethers.constants.AddressZero, + name: "Wrapped Ether", + symbol: "WETH", + }, + } + ); + } + var Qdr = { + [X.ChainId.Mainnet]: "0x514910771AF9Ca656af840dff83E8264EcF986CA", + [X.ChainId.Goerli]: "0x326C977E6efc84E512bB9C30f76E30c160eD06FB", + [X.ChainId.BinanceSmartChainMainnet]: + "0x404460C6A5EdE2D891e8297795264fDe62ADBB75", + [X.ChainId.Polygon]: "0xb0897686c545045aFc77CF20eC7A532E3120E0F1", + [X.ChainId.Mumbai]: "0x326C977E6efc84E512bB9C30f76E30c160eD06FB", + [X.ChainId.Avalanche]: "0x5947BB275c521040051D82396192181b413227A3", + [X.ChainId.AvalancheFujiTestnet]: + "0x0b9d5D9136855f6FEc3c0993feE6E9CE8a297846", + [X.ChainId.Fantom]: "0x6F43FF82CCA38001B6699a8AC47A2d0E66939407", + [X.ChainId.FantomTestnet]: "0xfaFedb041c0DD4fA2Dc0d87a6B0979Ee6FA7af5F", + }; + X.EventType = void 0; + (function (r) { + (r.Transaction = "transaction"), (r.Signature = "signature"); + })(X.EventType || (X.EventType = {})); + var pje = 50, + hje = 250, + Xdr = { timeLimitMs: pje, sizeLimit: hje }, + lV = class extends se.providers.StaticJsonRpcProvider { + constructor(e, t) { + let n = + arguments.length > 2 && arguments[2] !== void 0 + ? arguments[2] + : Xdr; + super(e, t), + le._defineProperty(this, "_timeLimitMs", void 0), + le._defineProperty(this, "_sizeLimit", void 0), + le._defineProperty(this, "_pendingBatchAggregator", void 0), + le._defineProperty(this, "_pendingBatch", void 0), + (this._timeLimitMs = n.timeLimitMs || hje), + (this._sizeLimit = n.sizeLimit || pje), + (this._pendingBatchAggregator = null), + (this._pendingBatch = null); + } + sendCurrentBatch(e) { + this._pendingBatchAggregator && + clearTimeout(this._pendingBatchAggregator); + let t = this._pendingBatch || []; + (this._pendingBatch = null), (this._pendingBatchAggregator = null); + let n = t.map((a) => a.request); + return ( + this.emit("debug", { + action: "requestBatch", + request: se.utils.deepCopy(e), + provider: this, + }), + se.utils.fetchJson(this.connection, JSON.stringify(n)).then( + (a) => { + this.emit("debug", { + action: "response", + request: n, + response: a, + provider: this, + }), + t.forEach((i, s) => { + let c = a[s]; + if (c) + if (c.error) { + let l = new Error(c.error.message); + (l.code = c.error.code), + (l.data = c.error.data), + i.reject(l); + } else i.resolve(c.result); + else i.reject(new Error("No response for request")); + }); + }, + (a) => { + this.emit("debug", { + action: "response", + error: a, + request: n, + provider: this, + }), + t.forEach((i) => { + i.reject(a); + }); + } + ) + ); + } + send(e, t) { + let n = { method: e, params: t, id: this._nextId++, jsonrpc: "2.0" }; + this._pendingBatch === null && (this._pendingBatch = []); + let a = { request: n, resolve: null, reject: null }, + i = new Promise((s, c) => { + (a.resolve = s), (a.reject = c); + }); + return ( + this._pendingBatch.length === this._sizeLimit && + this.sendCurrentBatch(n), + this._pendingBatch.push(a), + this._pendingBatchAggregator || + (this._pendingBatchAggregator = setTimeout(() => { + this.sendCurrentBatch(n); + }, this._timeLimitMs)), + i + ); + } + }, + Ti = Te.z + .union([ + Te.z.string(), + Te.z.number(), + Te.z.bigint(), + Te.z.custom((r) => se.BigNumber.isBigNumber(r)), + ]) + .transform((r) => se.BigNumber.from(r)), + gu = Ti.transform((r) => r.toString()), + uG = Te.z + .union([Te.z.bigint(), Te.z.custom((r) => se.BigNumber.isBigNumber(r))]) + .transform((r) => se.BigNumber.from(r).toString()), + Nc = Te.z.string().refine( + (r) => se.utils.isAddress(r), + (r) => ({ message: `${r} is not a valid address` }) + ), + lG = Te.z + .date() + .transform((r) => se.BigNumber.from(Math.floor(r.getTime() / 1e3))), + dG = lG.default(new Date(0)), + fje = lG.default(new Date(Date.now() + 1e3 * 60 * 60 * 24 * 365 * 10)), + mje = Te.z + .object({ + gasLimit: gu.optional(), + gasPrice: gu.optional(), + maxFeePerGas: gu.optional(), + maxPriorityFeePerGas: gu.optional(), + nonce: gu.optional(), + value: gu.optional(), + blockTag: Te.z.union([Te.z.string(), Te.z.number()]).optional(), + from: Nc.optional(), + type: Te.z.number().optional(), + }) + .strict(), + yje = Te.z.object({ + rpc: Te.z.array(Te.z.string().url()), + chainId: Te.z.number(), + nativeCurrency: Te.z.object({ + name: Te.z.string(), + symbol: Te.z.string(), + decimals: Te.z.number().default(18), + }), + }), + o9 = Te.z + .object({ + supportedChains: Te.z.array(yje).default(iG.defaultChains), + thirdwebApiKey: Te.z.string().optional().default(le.DEFAULT_API_KEY), + alchemyApiKey: Te.z.string().optional().optional(), + infuraApiKey: Te.z.string().optional().optional(), + readonlySettings: Te.z + .object({ + rpcUrl: Te.z.string().url(), + chainId: Te.z.number().optional(), + }) + .optional(), + gasSettings: Te.z + .object({ + maxPriceInGwei: Te.z + .number() + .min(1, "gas price cannot be less than 1") + .default(300), + speed: Te.z + .enum(["standard", "fast", "fastest"]) + .default("fastest"), + }) + .default({ maxPriceInGwei: 300, speed: "fastest" }), + gasless: Te.z + .union([ + Te.z.object({ + openzeppelin: Te.z.object({ + relayerUrl: Te.z.string().url(), + relayerForwarderAddress: Te.z.string().optional(), + useEOAForwarder: Te.z.boolean().default(!1), + }), + experimentalChainlessSupport: Te.z.boolean().default(!1), + }), + Te.z.object({ + biconomy: Te.z.object({ + apiId: Te.z.string(), + apiKey: Te.z.string(), + deadlineSeconds: Te.z + .number() + .min(1, "deadlineSeconds cannot be les than 1") + .default(3600), + }), + }), + ]) + .optional(), + }) + .default({ gasSettings: { maxPriceInGwei: 300, speed: "fastest" } }), + gje = Te.z.object({ + name: Te.z.string(), + symbol: Te.z.string(), + decimals: Te.z.number(), + }), + bje = gje.extend({ value: Ti, displayValue: Te.z.string() }), + Hf = Te.z.object({ merkle: Te.z.record(Te.z.string()).default({}) }), + c9 = Te.z.object({ + address: Nc, + maxClaimable: le.QuantitySchema.default(0), + price: le.QuantitySchema.optional(), + currencyAddress: Nc.default(se.ethers.constants.AddressZero).optional(), + }), + e6 = Te.z.union([ + Te.z + .array(Te.z.string()) + .transform((r) => r.map((e) => c9.parse({ address: e }))), + Te.z.array(c9), + ]), + pG = c9.extend({ proof: Te.z.array(Te.z.string()) }), + hG = Te.z.object({ merkleRoot: Te.z.string(), claims: Te.z.array(pG) }), + epr = Te.z.object({ + merkleRoot: Te.z.string(), + snapshotUri: Te.z.string(), + }), + vje = Te.z + .object({ name: Te.z.string().optional() }) + .catchall(Te.z.unknown()), + t6 = Te.z.object({ + startTime: dG, + currencyAddress: Te.z.string().default(Zl), + price: le.AmountSchema.default(0), + maxClaimableSupply: le.QuantitySchema, + maxClaimablePerWallet: le.QuantitySchema, + waitInSeconds: gu.default(0), + merkleRootHash: le.BytesLikeSchema.default( + se.utils.hexZeroPad([0], 32) + ), + snapshot: Te.z.optional(e6).nullable(), + metadata: vje.optional(), + }), + wje = Te.z.array(t6), + tpr = t6.partial(), + fG = t6.extend({ + availableSupply: le.QuantitySchema, + currentMintSupply: le.QuantitySchema, + currencyMetadata: bje.default({ + value: se.BigNumber.from("0"), + displayValue: "0", + symbol: "", + decimals: 18, + name: "", + }), + price: Ti, + waitInSeconds: Ti, + startTime: Ti.transform((r) => new Date(r.toNumber() * 1e3)), + snapshot: e6.optional().nullable(), + }); + function rpr(r) { + if (r === void 0) { + let e = P.Buffer.alloc(16); + return ( + Glr.v4({}, e), + se.utils.hexlify(se.utils.toUtf8Bytes(e.toString("hex"))) + ); + } else return se.utils.hexlify(r); + } + var _R = Te.z.object({ + to: Te.z + .string() + .refine((r) => r.toLowerCase() !== se.constants.AddressZero, { + message: "Cannot create payload to mint to zero address", + }), + price: le.AmountSchema.default(0), + currencyAddress: Te.z.string().default(Zl), + mintStartTime: dG, + mintEndTime: fje, + uid: Te.z + .string() + .optional() + .transform((r) => rpr(r)), + primarySaleRecipient: Te.z.string().default(se.constants.AddressZero), + }), + mG = _R.extend({ quantity: le.AmountSchema }), + _je = mG.extend({ mintStartTime: Ti, mintEndTime: Ti }), + xR = _R.extend({ + metadata: le.NFTInputOrUriSchema, + royaltyRecipient: Te.z.string().default(se.constants.AddressZero), + royaltyBps: le.BasisPointsSchema.default(0), + }), + yG = xR.extend({ + uri: Te.z.string(), + royaltyBps: Ti, + mintStartTime: Ti, + mintEndTime: Ti, + }), + xje = xR.extend({ + metadata: le.NFTInputOrUriSchema.default(""), + quantity: gu, + }), + Tje = xje.extend({ tokenId: gu }), + Eje = yG.extend({ tokenId: Ti, quantity: Ti }), + Cje = xR.extend({ + metadata: le.NFTInputOrUriSchema.default(""), + quantity: Ti.default(1), + }), + Ije = yG.extend({ quantity: Ti.default(1) }), + Aje = [ + { name: "to", type: "address" }, + { name: "primarySaleRecipient", type: "address" }, + { name: "quantity", type: "uint256" }, + { name: "price", type: "uint256" }, + { name: "currency", type: "address" }, + { name: "validityStartTimestamp", type: "uint128" }, + { name: "validityEndTimestamp", type: "uint128" }, + { name: "uid", type: "bytes32" }, + ], + kje = [ + { name: "to", type: "address" }, + { name: "royaltyRecipient", type: "address" }, + { name: "royaltyBps", type: "uint256" }, + { name: "primarySaleRecipient", type: "address" }, + { name: "uri", type: "string" }, + { name: "price", type: "uint256" }, + { name: "currency", type: "address" }, + { name: "validityStartTimestamp", type: "uint128" }, + { name: "validityEndTimestamp", type: "uint128" }, + { name: "uid", type: "bytes32" }, + ], + Sje = [ + { name: "to", type: "address" }, + { name: "royaltyRecipient", type: "address" }, + { name: "royaltyBps", type: "uint256" }, + { name: "primarySaleRecipient", type: "address" }, + { name: "tokenId", type: "uint256" }, + { name: "uri", type: "string" }, + { name: "quantity", type: "uint256" }, + { name: "pricePerToken", type: "uint256" }, + { name: "currency", type: "address" }, + { name: "validityStartTimestamp", type: "uint128" }, + { name: "validityEndTimestamp", type: "uint128" }, + { name: "uid", type: "bytes32" }, + ], + Mje = [ + { name: "to", type: "address" }, + { name: "royaltyRecipient", type: "address" }, + { name: "royaltyBps", type: "uint256" }, + { name: "primarySaleRecipient", type: "address" }, + { name: "uri", type: "string" }, + { name: "quantity", type: "uint256" }, + { name: "pricePerToken", type: "uint256" }, + { name: "currency", type: "address" }, + { name: "validityStartTimestamp", type: "uint128" }, + { name: "validityEndTimestamp", type: "uint128" }, + { name: "uid", type: "bytes32" }, + ], + Pje = [ + { name: "validityStartTimestamp", type: "uint128" }, + { name: "validityEndTimestamp", type: "uint128" }, + { name: "uid", type: "bytes32" }, + { name: "data", type: "bytes" }, + ], + wu = Te.z.object({ + name: Te.z.string(), + description: Te.z.string().optional(), + image: le.FileOrBufferOrStringSchema.optional(), + external_link: Te.z.string().url().optional(), + }), + Xu = wu + .extend({ image: Te.z.string().optional() }) + .catchall(Te.z.unknown()), + ao = Te.z.object({ + seller_fee_basis_points: le.BasisPointsSchema.default(0), + fee_recipient: Nc.default(se.constants.AddressZero), + }), + A0 = Te.z.object({ primary_sale_recipient: Nc }), + Ql = Te.z.object({ + platform_fee_basis_points: le.BasisPointsSchema.default(0), + platform_fee_recipient: Nc.default(se.constants.AddressZero), + }), + el = Te.z.object({ trusted_forwarders: Te.z.array(Nc).default([]) }), + ys = Te.z.object({ symbol: Te.z.string().optional().default("") }), + Rje = wu.merge(ao).merge(Hf).merge(ys), + npr = Xu.merge(ao).merge(Hf).merge(ys), + apr = Rje.merge(Ql).merge(A0).merge(el), + gG = { deploy: apr, output: npr, input: Rje }, + Bje = wu.merge(ao).merge(Hf).merge(ys), + ipr = Xu.merge(ao).merge(Hf).merge(ys), + spr = Bje.merge(Ql).merge(A0).merge(el), + Nje = { deploy: spr, output: ipr, input: Bje }, + Oje = wu, + opr = Xu, + cpr = Oje.merge(Ql).merge(el), + bG = { deploy: cpr, output: opr, input: Oje }, + Lje = wu.merge(ao).merge(ys), + upr = Xu.merge(ao).merge(ys), + lpr = Lje.merge(Ql).merge(el), + Dje = { deploy: lpr, output: upr, input: Lje }, + qje = Te.z.object({ + address: Nc, + sharesBps: le.BasisPointsSchema.gt(0, "Shares must be greater than 0"), + }), + dpr = qje.extend({ address: Nc, sharesBps: le.BasisPointsSchema }), + dV = wu.extend({ + recipients: Te.z + .array(qje) + .default([]) + .superRefine((r, e) => { + let t = {}, + n = 0; + for (let a = 0; a < r.length; a++) { + let i = r[a]; + t[i.address] && + e.addIssue({ + code: Te.z.ZodIssueCode.custom, + message: "Duplicate address.", + path: [a, "address"], + }), + (t[i.address] = !0), + (n += i.sharesBps), + n > 1e4 && + e.addIssue({ + code: Te.z.ZodIssueCode.custom, + message: "Total shares cannot go over 100%.", + path: [a, "sharesBps"], + }); + } + n !== 1e4 && + e.addIssue({ + code: Te.z.ZodIssueCode.custom, + message: `Total shares need to add up to 100%. Total shares are currently ${ + n / 100 + }%`, + path: [], + }); + }), + }), + ppr = Xu.extend({ recipients: Te.z.array(dpr) }), + hpr = dV.merge(dV).merge(el), + Fje = { deploy: hpr, output: ppr, input: dV }, + Wje = wu.merge(ys), + fpr = Xu.merge(ys), + mpr = Wje.merge(Ql).merge(A0).merge(el), + Uje = { deploy: mpr, output: fpr, input: Wje }, + Hje = wu.merge(ao).merge(ys), + ypr = Xu.merge(ao).merge(ys), + gpr = Hje.merge(Ql).merge(A0).merge(el), + zje = { deploy: gpr, output: ypr, input: Hje }, + jje = wu.merge(ao).merge(ys), + bpr = Xu.merge(ao).merge(ys), + vpr = jje.merge(Ql).merge(A0).merge(el), + Kje = { deploy: vpr, output: bpr, input: jje }, + Vje = Te.z.object({ + voting_delay_in_blocks: Te.z.number().min(0).default(0), + voting_period_in_blocks: Te.z.number().min(1).default(1), + voting_token_address: Nc, + voting_quorum_fraction: le.PercentSchema.default(0), + proposal_token_threshold: gu.default(1), + }), + wpr = Vje.extend({ proposal_token_threshold: Ti }), + Gje = wu.merge(Vje), + _pr = Xu.merge(wpr), + xpr = Gje.merge(el), + Yje = { deploy: xpr, output: _pr, input: Gje }; + Te.z.object({ + proposalId: Ti, + proposer: Te.z.string(), + targets: Te.z.array(Te.z.string()), + values: Te.z.array(Ti), + signatures: Te.z.array(Te.z.string()), + calldatas: Te.z.array(Te.z.string()), + startBlock: Ti, + endBlock: Ti, + description: Te.z.string(), + }); + var wze = Te.z.object({}).catchall(Te.z.union([uG, Te.z.unknown()])), + Tpr = Te.z.union([Te.z.array(wze), wze]).optional(), + $je = Te.z.object({ supply: Ti, metadata: le.CommonNFTOutput }), + Epr = $je.extend({ owner: Te.z.string(), quantityOwned: Ti }), + Cpr = Te.z.object({ supply: gu, metadata: le.CommonNFTInput }), + Ipr = Te.z.object({ supply: gu, metadata: le.NFTInputOrUriSchema }), + Apr = Te.z.object({ toAddress: Nc, amount: le.AmountSchema }), + kpr = "https://gateway.ipfscdn.io/ipfs/", + u9 = { + "avalanche-fuji": X.ChainId.AvalancheFujiTestnet, + "avalanche-testnet": X.ChainId.AvalancheFujiTestnet, + "fantom-testnet": X.ChainId.FantomTestnet, + ethereum: X.ChainId.Mainnet, + matic: X.ChainId.Polygon, + mumbai: X.ChainId.Mumbai, + goerli: X.ChainId.Goerli, + polygon: X.ChainId.Polygon, + mainnet: X.ChainId.Mainnet, + optimism: X.ChainId.Optimism, + "optimism-goerli": X.ChainId.OptimismGoerli, + arbitrum: X.ChainId.Arbitrum, + "arbitrum-goerli": X.ChainId.ArbitrumGoerli, + fantom: X.ChainId.Fantom, + avalanche: X.ChainId.Avalanche, + binance: X.ChainId.BinanceSmartChainMainnet, + "binance-testnet": X.ChainId.BinanceSmartChainTestnet, + hardhat: X.ChainId.Hardhat, + localhost: X.ChainId.Localhost, + }, + Spr = Object.fromEntries( + Object.entries(u9).map((r) => { + let [e, t] = r; + return [t, e]; + }) + ); + function Jje() { + let r = + arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}; + return o9 + .parse(r) + .supportedChains.reduce((t, n) => ((t[n.chainId] = n), t), {}); + } + function TR(r, e) { + if (typeof r == "string" && r.startsWith("http")) return l9(r); + let t = Zje(r), + n = o9.parse(e); + typeof r != "number" && + typeof r != "string" && + (n.supportedChains = [r, ...n.supportedChains]); + let a = Jje(n), + i = ""; + try { + i = iG.getChainRPC(a[t], { + thirdwebApiKey: n.thirdwebApiKey || le.DEFAULT_API_KEY, + infuraApiKey: n.infuraApiKey, + alchemyApiKey: n.alchemyApiKey, + }); + } catch (s) { + console.warn("Failed to get chain RPC", s); + } + if (!i) + throw new Error( + `No rpc url found for chain ${r}. Please provide a valid rpc url via the 'chains' property of the sdk options.` + ); + return l9(i, t); + } + function Zje(r) { + if (typeof r == "number") return r; + if (typeof r != "string") return r.chainId; + if (!(r in u9)) + throw new Error( + `Cannot resolve chainId from: ${r} - please pass the chainId instead and specify it in the 'chains' property of the SDK options.` + ); + return u9[r]; + } + var _ze = new Map(); + function l9(r, e) { + try { + let t = r.match(/^(ws|http)s?:/i); + if (t) + switch (t[1]) { + case "http": + let n = `${r}-${e || -1}`, + a = _ze.get(n); + if (a) return a; + let i = e + ? new lV(r, e) + : new se.providers.JsonRpcBatchProvider(r, e); + return _ze.set(n, i), i; + case "ws": + return new se.providers.WebSocketProvider(r, e); + default: + return se.ethers.getDefaultProvider(r); + } + else return se.ethers.getDefaultProvider(r); + } catch { + return se.ethers.getDefaultProvider(r); + } + } + var c2 = class extends Error { + constructor(e) { + super(e ? `Object with id ${e} NOT FOUND` : "NOT_FOUND"); + } + }, + pV = class extends Error { + constructor(e) { + super(e ? `'${e}' is an invalid address` : "Invalid address passed"); + } + }, + d9 = class extends Error { + constructor(e, t) { + super(`MISSING ROLE: ${e} does not have the '${t}' role`); + } + }, + hV = class extends Error { + constructor() { + let e = + arguments.length > 0 && arguments[0] !== void 0 + ? arguments[0] + : "The asset you're trying to use could not be found."; + super(`message: ${e}`); + } + }, + fV = class extends Error { + constructor(e) { + super(`UPLOAD_FAILED: ${e}`); + } + }, + mV = class extends Error { + constructor() { + super( + "File name is required when object is not a `File` type object." + ); + } + }, + yV = class extends Error { + constructor(e) { + super( + `DUPLICATE_FILE_NAME_ERROR: File name ${e} was passed for more than one file.` + ); + } + }, + gV = class extends Error { + constructor(e, t, n) { + super( + `BALANCE ERROR: you do not have enough balance on contract ${e} to use ${t} tokens. You have ${n} tokens available.` + ); + } + }, + bV = class extends Error { + constructor() { + super("LIST ERROR: you should be the owner of the token to list it."); + } + }, + vV = class extends Error { + constructor(e) { + super(`BUY ERROR: You cannot buy more than ${e} tokens`); + } + }, + wV = class extends Error { + constructor(e, t) { + super(`FETCH_FAILED: ${e}`), + le._defineProperty(this, "innerError", void 0), + (this.innerError = t); + } + }, + p9 = class extends Error { + constructor(e) { + super(`DUPLICATE_LEAFS${e ? ` : ${e}` : ""}`); + } + }, + h9 = class extends Error { + constructor(e) { + super( + `Auction already started with existing bid${e ? `, id: ${e}` : ""}` + ); + } + }, + _V = class extends Error { + constructor(e) { + super(`FUNCTION DEPRECATED. ${e ? `Use ${e} instead` : ""}`); + } + }, + B3 = class extends Error { + constructor(e, t) { + super( + `Could not find listing.${e ? ` marketplace address: ${e}` : ""}${ + t ? ` listing id: ${t}` : "" + }` + ); + } + }, + N3 = class extends Error { + constructor(e, t, n, a) { + super( + `Incorrect listing type. Are you sure you're using the right method?.${ + e ? ` marketplace address: ${e}` : "" + }${t ? ` listing id: ${t}` : ""}${a ? ` expected type: ${a}` : ""}${ + n ? ` actual type: ${n}` : "" + }` + ); + } + }, + xV = class extends Error { + constructor(e) { + super( + `Failed to transfer asset, transfer is restricted.${ + e ? ` Address : ${e}` : "" + }` + ); + } + }, + TV = class extends Error { + constructor(e, t) { + let n = + arguments.length > 2 && arguments[2] !== void 0 + ? arguments[2] + : "Failed to execute transaction"; + super( + `${n}, admin role is missing${e ? ` on address: ${e}` : ""}${ + t ? ` on contract: ${t}` : "" + }` + ); + } + }, + O3 = class extends Error { + constructor(e, t) { + super( + `Auction has not ended yet${e ? `, id: ${e}` : ""}${ + t ? `, end time: ${t.toString()}` : "" + }` + ); + } + }, + Wf = class extends Error { + constructor(e) { + super( + `This functionality is not available because the contract does not implement the '${e.docLinks.contracts}' Extension. Learn how to unlock this functionality at https://portal.thirdweb.com/extensions ` + ); + } + }, + tV = new WeakMap(), + rV = new WeakMap(), + f9 = class extends Error { + constructor(e) { + let t = ` \u2554\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2557 \u2551 TRANSACTION ERROR \u2551 \u255A\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u255D -`;if(t+=`Reason: ${e.reason}`,t+=` +`; + if ( + ((t += `Reason: ${e.reason}`), + (t += ` \u2554\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2557 \u2551 TRANSACTION INFORMATION \u2551 \u255A\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u255D -`,t+=Y0("from",e.from),t+=Y0("to",e.contractName?`${e.to} (${e.contractName})`:e.to),t+=Y0("chain",`${e.network.name} (${e.network.chainId})`),e.rpcUrl)try{let n=new URL(e.rpcUrl);t+=Y0("rpc",n.hostname)}catch{}if(e.hash&&(t+=Y0("tx hash",e.hash)),e.value&&e.value.gt(0)&&(t+=Y0("value",`${oe.ethers.utils.formatEther(e.value)} ${wJ[e.network.chainId]?.symbol||""}`)),t+=Y0("data",`${e.data}`),e.method&&(t+=Y0("method",e.method)),e.sources){let n=e.sources.find(a=>a.source.includes(e.reason));if(n){let a=n.source.split(` -`).map((c,l)=>`${l+1} ${c}`),i=a.findIndex(c=>c.includes(e.reason));a[i]+=" <-- REVERT";let s=a.slice(i-8,i+4);t+=` +`), + (t += w0("from", e.from)), + (t += w0( + "to", + e.contractName ? `${e.to} (${e.contractName})` : e.to + )), + (t += w0("chain", `${e.network.name} (${e.network.chainId})`)), + e.rpcUrl) + ) + try { + let n = new URL(e.rpcUrl); + t += w0("rpc", n.hostname); + } catch {} + if ( + (e.hash && (t += w0("tx hash", e.hash)), + e.value && + e.value.gt(0) && + (t += w0( + "value", + `${se.ethers.utils.formatEther(e.value)} ${ + cG[e.network.chainId]?.symbol || "" + }` + )), + (t += w0("data", `${e.data}`)), + e.method && (t += w0("method", e.method)), + e.sources) + ) { + let n = e.sources.find((a) => a.source.includes(e.reason)); + if (n) { + let a = n.source + .split( + ` +` + ) + .map((c, l) => `${l + 1} ${c}`), + i = a.findIndex((c) => c.includes(e.reason)); + a[i] += " <-- REVERT"; + let s = a.slice(i - 8, i + 4); + (t += ` \u2554\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2557 \u2551 SOLIDITY STACK TRACE \u2551 \u255A\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u255D -`,t+=`File: ${n.filename.replace("node_modules/","")} +`), + (t += `File: ${n.filename.replace("node_modules/", "")} -`,t+=s.join(` -`)}}t+=` +`), + (t += s.join(` +`)); + } + } + (t += ` \u2554\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2557 \u2551 DEBUGGING RESOURCES \u2551 \u255A\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u255D -`,t+="Need helping debugging? Join our Discord: https://discord.gg/thirdweb",t+=` +`), + (t += + "Need helping debugging? Join our Discord: https://discord.gg/thirdweb"), + (t += ` -`,super(t),vZ(this,hZ,{writable:!0,value:void 0}),vZ(this,fZ,{writable:!0,value:void 0}),bZ(this,hZ,e.reason),bZ(this,fZ,e)}get reason(){return p7(this,hZ)}get info(){return p7(this,fZ)}};function XVe(r){if(r.reason)return r.reason;let e=r;return typeof r=="object"?e=JSON.stringify(r):typeof r!="string"&&(e=r.toString()),xHe(/.*?"message":"([^"\\]*).*?/,e)||xHe(/.*?"reason":"([^"\\]*).*?/,e)||r.message||""}function Y0(r,e){if(e==="")return e;let t=Array(10-r.length).fill(" ").join("");return e.includes(` -`)?e=` +`), + super(t), + sV(this, tV, { writable: !0, value: void 0 }), + sV(this, rV, { writable: !0, value: void 0 }), + oV(this, tV, e.reason), + oV(this, rV, e); + } + get reason() { + return a9(this, tV); + } + get info() { + return a9(this, rV); + } + }; + function Qje(r) { + if (r.reason) return r.reason; + let e = r; + return ( + typeof r == "object" + ? (e = JSON.stringify(r)) + : typeof r != "string" && (e = r.toString()), + xze(/.*?"message":"([^"\\]*).*?/, e) || + xze(/.*?"reason":"([^"\\]*).*?/, e) || + r.message || + "" + ); + } + function w0(r, e) { + if (e === "") return e; + let t = Array(10 - r.length) + .fill(" ") + .join(""); + return ( + e.includes(` +`) + ? (e = + ` - `+e.split(` + ` + + e.split(` `).join(` - `):e=`${t}${e}`,` -${r}:${e}`}function xHe(r,e){let t=e.match(r)||[],n="";return t?.length>0&&(n+=t[1]),n}function q_(r,e){return r?r&&r.toString().includes(e)||r&&r.message&&r.message.toString().includes(e)||r&&r.error&&r.error.toString().includes(e):!1}var Hhr=[{name:"from",type:"address"},{name:"to",type:"address"},{name:"value",type:"uint256"},{name:"gas",type:"uint256"},{name:"nonce",type:"uint256"},{name:"data",type:"bytes"}],Vhr=[{name:"from",type:"address"},{name:"to",type:"address"},{name:"value",type:"uint256"},{name:"gas",type:"uint256"},{name:"nonce",type:"uint256"},{name:"data",type:"bytes"},{name:"chainid",type:"uint256"}],Ghr=[{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"uint256",name:"batchId",type:"uint256"}],name:"getNonce",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"}],Xw={},THe={};async function _He(r,e,t){let n=t.join("|"),a=THe[n],i=Date.now()-a>=2e3;if(!(n in Xw)||i){let c=await r.functions[e](...t);Array.isArray(c)&&c.length>0?Xw[n]=oe.BigNumber.from(c[0]):Xw[n]=oe.BigNumber.from(c),THe[n]=Date.now()}let s=Xw[n];return Xw[n]=oe.BigNumber.from(Xw[n]).add(1),s}function Zhr(r){switch(r){case $.ChainId.Polygon:return"https://gasstation-mainnet.matic.network/v2";case $.ChainId.Mumbai:return"https://gasstation-mumbai.matic.today/v2"}}var Jhr=oe.ethers.utils.parseUnits("31","gwei"),Khr=oe.ethers.utils.parseUnits("1","gwei");function Qhr(r){switch(r){case $.ChainId.Polygon:return Jhr;case $.ChainId.Mumbai:return Khr}}async function Xhr(r){let e=Zhr(r);try{let n=(await(await yZ.default(e)).json()).standard.maxPriorityFee;if(n>0){let a=parseFloat(n).toFixed(9);return oe.ethers.utils.parseUnits(a,"gwei")}}catch(t){console.error("failed to fetch gas",t)}return Qhr(r)}async function _7(r,e,t,n){let a=r?.provider;if(!a)throw new Error("missing provider");let i=oe.ethers.utils._TypedDataEncoder.getPayload(e,t,n),s="",c=(await r.getAddress()).toLowerCase();if(a?.provider?.isWalletConnect)s=await a.send("eth_signTypedData",[(await r.getAddress()).toLowerCase(),JSON.stringify(i)]);else try{s=await r._signTypedData(e,t,n)}catch(l){if(l?.message?.includes("Method eth_signTypedData_v4 not supported"))s=await a.send("eth_signTypedData",[c,JSON.stringify(i)]);else try{await a.send("eth_signTypedData_v4",[c,JSON.stringify(i)])}catch(d){throw d}}return{payload:i,signature:oe.ethers.utils.joinSignature(oe.ethers.utils.splitSignature(s))}}var Yhr=[{inputs:[],name:"name",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"}],$hr=[{constant:!0,inputs:[],name:"DOMAIN_SEPARATOR",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],payable:!1,stateMutability:"view",type:"function"},{inputs:[],name:"getDomainSeperator",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"}],efr=[{inputs:[{internalType:"address",name:"owner",type:"address"}],name:"nonces",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"user",type:"address"}],name:"getNonce",outputs:[{internalType:"uint256",name:"nonce",type:"uint256"}],stateMutability:"view",type:"function"}];async function tfr(r,e){let t=new oe.Contract(e,efr,r);try{return await t.nonces(await r.getAddress())}catch{return await t.getNonce(await r.getAddress())}}async function rfr(r,e){let t=new oe.Contract(e,$hr,r);try{return await t.DOMAIN_SEPARATOR()}catch{try{return await t.getDomainSeperator()}catch(a){console.error("Error getting domain separator",a)}}}async function nfr(r,e){return new oe.Contract(e,Yhr,r).name()}async function afr(r,e){let t=await rfr(r,e.verifyingContract),n={name:e.name,version:e.version,verifyingContract:e.verifyingContract,salt:oe.ethers.utils.hexZeroPad(oe.BigNumber.from(e.chainId).toHexString(),32)};return oe.ethers.utils._TypedDataEncoder.hashDomain(n)===t?n:e}async function ifr(r,e,t,n,a,i,s){let c=await afr(r,{name:await nfr(r,e),version:"1",chainId:await r.getChainId(),verifyingContract:e});s=s||(await tfr(r,e)).toString(),i=i||oe.ethers.constants.MaxUint256;let l={owner:t,spender:n,value:a,nonce:s,deadline:i},d={Permit:[{name:"owner",type:"address"},{name:"spender",type:"address"},{name:"value",type:"uint256"},{name:"nonce",type:"uint256"},{name:"deadline",type:"uint256"}]},{signature:f}=await _7(r,c,d,l);return{message:l,signature:f}}var YVe=()=>typeof window<"u",$Ve=()=>!YVe();function sfr(r,e){if(r.length===0||r.length===1||!e)return r;for(let t=0;t({})),le._defineProperty(this,"writeContract",void 0),le._defineProperty(this,"readContract",void 0),le._defineProperty(this,"abi",void 0),this.abi=n,this.writeContract=new oe.Contract(t,n,this.getSignerOrProvider()),this.readContract=this.writeContract.connect(this.getProvider()),bZ(this,l7,new I_.ThirdwebStorage)}updateSignerOrProvider(e){super.updateSignerOrProvider(e),this.writeContract=this.writeContract.connect(this.getSignerOrProvider()),this.readContract=this.writeContract.connect(this.getProvider())}async getChainID(){let e=this.getProvider(),{chainId:t}=await e.getNetwork();return t}async getSignerAddress(){let e=this.getSigner();if(!e)throw new Error("This action requires a connected wallet to sign the transaction. Please pass a valid signer to the SDK.");return await e.getAddress()}callStatic(){return this.writeContract.callStatic}async getCallOverrides(){if(YVe())return{};let e=await this.getProvider().getFeeData();if(e.maxFeePerGas&&e.maxPriorityFeePerGas){let n=await this.getChainID(),a=await this.getProvider().getBlock("latest"),i=a&&a.baseFeePerGas?a.baseFeePerGas:oe.ethers.utils.parseUnits("1","gwei"),s;n===$.ChainId.Mumbai||n===$.ChainId.Polygon?s=await Xhr(n):s=oe.BigNumber.from(e.maxPriorityFeePerGas);let c=this.getPreferredPriorityFee(s);return{maxFeePerGas:i.mul(2).add(c),maxPriorityFeePerGas:c}}else return{gasPrice:await this.getPreferredGasPrice()}}getPreferredPriorityFee(e){let t=this.options.gasSettings.speed,n=this.options.gasSettings.maxPriceInGwei,a;switch(t){case"standard":a=oe.BigNumber.from(0);break;case"fast":a=e.div(100).mul(5);break;case"fastest":a=e.div(100).mul(10);break}let i=e.add(a),s=oe.ethers.utils.parseUnits(n.toString(),"gwei"),c=oe.ethers.utils.parseUnits("2.5","gwei");return i.gt(s)&&(i=s),i.lt(c)&&(i=c),i}async getPreferredGasPrice(){let e=await this.getProvider().getGasPrice(),t=this.options.gasSettings.speed,n=this.options.gasSettings.maxPriceInGwei,a=e,i;switch(t){case"standard":i=oe.BigNumber.from(1);break;case"fast":i=e.div(100).mul(5);break;case"fastest":i=e.div(100).mul(10);break}a=a.add(i);let s=oe.ethers.utils.parseUnits(n.toString(),"gwei");return a.gt(s)&&(a=s),a}emitTransactionEvent(e,t){this.emit($.EventType.Transaction,{status:e,transactionHash:t})}async multiCall(e){return this.sendTransaction("multicall",[e])}async estimateGas(e,t){return this.writeContract.estimateGas[e](...t)}withTransactionOverride(e){this.customOverrides=e}async call(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a0&&typeof n[n.length-1]=="object"){let f=n[n.length-1];i=fVe.parse(f),n=n.slice(0,n.length-1)}}catch{}let s=ux(kp.parse(this.abi)).filter(f=>f.name===e);if(!s.length)throw new Error(`Function "${e}" not found in contract. Check your dashboard for the list of functions available`);let c=s.find(f=>f.name===e&&f.inputs.length===n.length);if(!c)throw new Error(`Function "${e}" requires ${s[0].inputs.length} arguments, but ${n.length} were provided. -Expected function signature: ${s[0].signature}`);let l=`${e}(${c.inputs.map(f=>f.type).join()})`,d=l in this.readContract.functions?l:e;return c.stateMutability==="view"||c.stateMutability==="pure"?this.readContract[d](...n):{receipt:await this.sendTransaction(d,n,i)}}async sendTransaction(e,t,n){if(n||(n=await this.getCallOverrides()),n={...n,...this.customOverrides()},this.customOverrides=()=>({}),this.options?.gasless&&("openzeppelin"in this.options.gasless||"biconomy"in this.options.gasless)){if(e==="multicall"&&Array.isArray(t[0])&&t[0].length>0){let c=await this.getSignerAddress();t[0]=t[0].map(l=>oe.ethers.utils.solidityPack(["bytes","address"],[l,c]))}let a=this.getProvider(),i=await this.sendGaslessTransaction(e,t,n);this.emitTransactionEvent("submitted",i);let s=await a.waitForTransaction(i);return this.emitTransactionEvent("completed",i),s}else{if(!this.isValidContract){let s=await this.getProvider().getCode(this.readContract.address);if(this.isValidContract=s!=="0x",!this.isValidContract)throw new Error("The address you're trying to send a transaction to is not a smart contract. Make sure you are on the correct network and the contract address is correct")}let a=await this.sendTransactionByFunction(e,t,n);this.emitTransactionEvent("submitted",a.hash);let i;try{i=await a.wait()}catch(s){try{await this.writeContract.callStatic[e](...t,...n.value?[{value:n.value}]:[])}catch(c){throw await this.formatError(c,e,t,n)}throw await this.formatError(s,e,t,n)}return this.emitTransactionEvent("completed",a.hash),i}}async sendTransactionByFunction(e,t,n){let a=this.writeContract.functions[e];if(!a)throw new Error(`invalid function: "${e.toString()}"`);if(!n.gasLimit)try{n.gasLimit=await this.writeContract.estimateGas[e](...t,n)}catch{try{await this.writeContract.callStatic[e](...t,...n.value?[{value:n.value}]:[])}catch(s){throw await this.formatError(s,e,t,n)}}try{return await a(...t,n)}catch(i){let s=await(n.from||this.getSignerAddress()),c=await(n.value?n.value:0),l=await this.getProvider().getBalance(s);throw l.eq(0)||c&&l.lt(c)?await this.formatError(new Error("You have insufficient funds in your account to execute this transaction."),e,t,n):await this.formatError(i,e,t,n)}}async formatError(e,t,n,a){let i=this.getProvider(),s=await i.getNetwork(),c=await(a.from||this.getSignerAddress()),l=this.readContract.address,d=this.readContract.interface.encodeFunctionData(t,n),f=oe.BigNumber.from(a.value||0),w=i.connection?.url,E=this.readContract.interface.getFunction(t),k=n.map(G=>JSON.stringify(G).length<=80?JSON.stringify(G):JSON.stringify(G,void 0,2)),A=k.join(", ").length<=80?k.join(", "):` -`+k.map(G=>" "+G.split(` + `)) + : (e = `${t}${e}`), + ` +${r}:${e}` + ); + } + function xze(r, e) { + let t = e.match(r) || [], + n = ""; + return t?.length > 0 && (n += t[1]), n; + } + function L3(r, e) { + return r + ? (r && r.toString().includes(e)) || + (r && r.message && r.message.toString().includes(e)) || + (r && r.error && r.error.toString().includes(e)) + : !1; + } + var Mpr = [ + { name: "from", type: "address" }, + { name: "to", type: "address" }, + { name: "value", type: "uint256" }, + { name: "gas", type: "uint256" }, + { name: "nonce", type: "uint256" }, + { name: "data", type: "bytes" }, + ], + Ppr = [ + { name: "from", type: "address" }, + { name: "to", type: "address" }, + { name: "value", type: "uint256" }, + { name: "gas", type: "uint256" }, + { name: "nonce", type: "uint256" }, + { name: "data", type: "bytes" }, + { name: "chainid", type: "uint256" }, + ], + Rpr = [ + { + inputs: [ + { internalType: "address", name: "from", type: "address" }, + { internalType: "uint256", name: "batchId", type: "uint256" }, + ], + name: "getNonce", + outputs: [{ internalType: "uint256", name: "", type: "uint256" }], + stateMutability: "view", + type: "function", + }, + ], + t2 = {}, + Tze = {}; + async function Eze(r, e, t) { + let n = t.join("|"), + a = Tze[n], + i = Date.now() - a >= 2e3; + if (!(n in t2) || i) { + let c = await r.functions[e](...t); + Array.isArray(c) && c.length > 0 + ? (t2[n] = se.BigNumber.from(c[0])) + : (t2[n] = se.BigNumber.from(c)), + (Tze[n] = Date.now()); + } + let s = t2[n]; + return (t2[n] = se.BigNumber.from(t2[n]).add(1)), s; + } + function Bpr(r) { + switch (r) { + case X.ChainId.Polygon: + return "https://gasstation-mainnet.matic.network/v2"; + case X.ChainId.Mumbai: + return "https://gasstation-mumbai.matic.today/v2"; + } + } + var Npr = se.ethers.utils.parseUnits("31", "gwei"), + Opr = se.ethers.utils.parseUnits("1", "gwei"); + function Lpr(r) { + switch (r) { + case X.ChainId.Polygon: + return Npr; + case X.ChainId.Mumbai: + return Opr; + } + } + async function Dpr(r) { + let e = Bpr(r); + try { + let n = (await (await aV.default(e)).json()).standard.maxPriorityFee; + if (n > 0) { + let a = parseFloat(n).toFixed(9); + return se.ethers.utils.parseUnits(a, "gwei"); + } + } catch (t) { + console.error("failed to fetch gas", t); + } + return Lpr(r); + } + async function m9(r, e, t, n) { + let a = r?.provider; + if (!a) throw new Error("missing provider"); + let i = se.ethers.utils._TypedDataEncoder.getPayload(e, t, n), + s = "", + c = (await r.getAddress()).toLowerCase(); + if (a?.provider?.isWalletConnect) + s = await a.send("eth_signTypedData", [ + (await r.getAddress()).toLowerCase(), + JSON.stringify(i), + ]); + else + try { + s = await r._signTypedData(e, t, n); + } catch (l) { + if (l?.message?.includes("Method eth_signTypedData_v4 not supported")) + s = await a.send("eth_signTypedData", [c, JSON.stringify(i)]); + else + try { + await a.send("eth_signTypedData_v4", [c, JSON.stringify(i)]); + } catch (d) { + throw d; + } + } + return { + payload: i, + signature: se.ethers.utils.joinSignature( + se.ethers.utils.splitSignature(s) + ), + }; + } + var qpr = [ + { + inputs: [], + name: "name", + outputs: [{ internalType: "string", name: "", type: "string" }], + stateMutability: "view", + type: "function", + }, + ], + Fpr = [ + { + constant: !0, + inputs: [], + name: "DOMAIN_SEPARATOR", + outputs: [{ internalType: "bytes32", name: "", type: "bytes32" }], + payable: !1, + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "getDomainSeperator", + outputs: [{ internalType: "bytes32", name: "", type: "bytes32" }], + stateMutability: "view", + type: "function", + }, + ], + Wpr = [ + { + inputs: [{ internalType: "address", name: "owner", type: "address" }], + name: "nonces", + outputs: [{ internalType: "uint256", name: "", type: "uint256" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [{ internalType: "address", name: "user", type: "address" }], + name: "getNonce", + outputs: [ + { internalType: "uint256", name: "nonce", type: "uint256" }, + ], + stateMutability: "view", + type: "function", + }, + ]; + async function Upr(r, e) { + let t = new se.Contract(e, Wpr, r); + try { + return await t.nonces(await r.getAddress()); + } catch { + return await t.getNonce(await r.getAddress()); + } + } + async function Hpr(r, e) { + let t = new se.Contract(e, Fpr, r); + try { + return await t.DOMAIN_SEPARATOR(); + } catch { + try { + return await t.getDomainSeperator(); + } catch (a) { + console.error("Error getting domain separator", a); + } + } + } + async function zpr(r, e) { + return new se.Contract(e, qpr, r).name(); + } + async function jpr(r, e) { + let t = await Hpr(r, e.verifyingContract), + n = { + name: e.name, + version: e.version, + verifyingContract: e.verifyingContract, + salt: se.ethers.utils.hexZeroPad( + se.BigNumber.from(e.chainId).toHexString(), + 32 + ), + }; + return se.ethers.utils._TypedDataEncoder.hashDomain(n) === t ? n : e; + } + async function Kpr(r, e, t, n, a, i, s) { + let c = await jpr(r, { + name: await zpr(r, e), + version: "1", + chainId: await r.getChainId(), + verifyingContract: e, + }); + (s = s || (await Upr(r, e)).toString()), + (i = i || se.ethers.constants.MaxUint256); + let l = { owner: t, spender: n, value: a, nonce: s, deadline: i }, + d = { + Permit: [ + { name: "owner", type: "address" }, + { name: "spender", type: "address" }, + { name: "value", type: "uint256" }, + { name: "nonce", type: "uint256" }, + { name: "deadline", type: "uint256" }, + ], + }, + { signature: m } = await m9(r, c, d, l); + return { message: l, signature: m }; + } + var Xje = () => typeof window < "u", + eKe = () => !Xje(); + function Vpr(r, e) { + if (r.length === 0 || r.length === 1 || !e) return r; + for (let t = 0; t < r.length; t++) + for (let n = t + 1; n < r.length; n++) e(r[t], r[n]) && r.splice(n, 1); + return r; + } + var sb = class extends iV.default { + constructor(e, t) { + super(), + le._defineProperty(this, "provider", void 0), + le._defineProperty(this, "signer", void 0), + le._defineProperty(this, "options", void 0); + try { + this.options = o9.parse(t); + } catch (i) { + console.error( + "invalid sdk options object passed, falling back to default options", + i + ), + (this.options = o9.parse({})); + } + let [n, a] = cc(e, this.options); + (this.signer = n), (this.provider = a); + } + updateSignerOrProvider(e) { + let [t, n] = cc(e, this.options); + (this.signer = t), (this.provider = n); + } + isReadOnly() { + return !se.Signer.isSigner(this.signer); + } + getSigner() { + return this.signer; + } + getProvider() { + return this.provider; + } + getSignerOrProvider() { + return this.getSigner() || this.getProvider(); + } + }; + function cc(r, e) { + let t, n; + return ( + se.Signer.isSigner(r) && ((t = r), r.provider && (n = r.provider)), + e?.readonlySettings && + (n = l9(e.readonlySettings.rpcUrl, e.readonlySettings.chainId)), + n || + (se.providers.Provider.isProvider(r) + ? (n = r) + : se.Signer.isSigner(r) || + (typeof r == "string" || typeof r == "number" + ? (n = TR(r, e)) + : (n = se.ethers.getDefaultProvider(r)))), + n || + ((n = se.ethers.getDefaultProvider()), + console.error( + "No provider found, using default provider on default chain!" + )), + [t, n] + ); + } + var r9 = new WeakMap(), + ms = class extends sb { + constructor(e, t, n, a) { + super(e, a), + sV(this, r9, { writable: !0, value: void 0 }), + le._defineProperty(this, "isValidContract", !1), + le._defineProperty(this, "customOverrides", () => ({})), + le._defineProperty(this, "writeContract", void 0), + le._defineProperty(this, "readContract", void 0), + le._defineProperty(this, "abi", void 0), + (this.abi = n), + (this.writeContract = new se.Contract( + t, + n, + this.getSignerOrProvider() + )), + (this.readContract = this.writeContract.connect( + this.getProvider() + )), + oV(this, r9, new S3.ThirdwebStorage()); + } + updateSignerOrProvider(e) { + super.updateSignerOrProvider(e), + (this.writeContract = this.writeContract.connect( + this.getSignerOrProvider() + )), + (this.readContract = this.writeContract.connect( + this.getProvider() + )); + } + async getChainID() { + let e = this.getProvider(), + { chainId: t } = await e.getNetwork(); + return t; + } + async getSignerAddress() { + let e = this.getSigner(); + if (!e) + throw new Error( + "This action requires a connected wallet to sign the transaction. Please pass a valid signer to the SDK." + ); + return await e.getAddress(); + } + callStatic() { + return this.writeContract.callStatic; + } + async getCallOverrides() { + if (Xje()) return {}; + let e = await this.getProvider().getFeeData(); + if (e.maxFeePerGas && e.maxPriorityFeePerGas) { + let n = await this.getChainID(), + a = await this.getProvider().getBlock("latest"), + i = + a && a.baseFeePerGas + ? a.baseFeePerGas + : se.ethers.utils.parseUnits("1", "gwei"), + s; + n === X.ChainId.Mumbai || n === X.ChainId.Polygon + ? (s = await Dpr(n)) + : (s = se.BigNumber.from(e.maxPriorityFeePerGas)); + let c = this.getPreferredPriorityFee(s); + return { maxFeePerGas: i.mul(2).add(c), maxPriorityFeePerGas: c }; + } else return { gasPrice: await this.getPreferredGasPrice() }; + } + getPreferredPriorityFee(e) { + let t = this.options.gasSettings.speed, + n = this.options.gasSettings.maxPriceInGwei, + a; + switch (t) { + case "standard": + a = se.BigNumber.from(0); + break; + case "fast": + a = e.div(100).mul(5); + break; + case "fastest": + a = e.div(100).mul(10); + break; + } + let i = e.add(a), + s = se.ethers.utils.parseUnits(n.toString(), "gwei"), + c = se.ethers.utils.parseUnits("2.5", "gwei"); + return i.gt(s) && (i = s), i.lt(c) && (i = c), i; + } + async getPreferredGasPrice() { + let e = await this.getProvider().getGasPrice(), + t = this.options.gasSettings.speed, + n = this.options.gasSettings.maxPriceInGwei, + a = e, + i; + switch (t) { + case "standard": + i = se.BigNumber.from(1); + break; + case "fast": + i = e.div(100).mul(5); + break; + case "fastest": + i = e.div(100).mul(10); + break; + } + a = a.add(i); + let s = se.ethers.utils.parseUnits(n.toString(), "gwei"); + return a.gt(s) && (a = s), a; + } + emitTransactionEvent(e, t) { + this.emit(X.EventType.Transaction, { status: e, transactionHash: t }); + } + async multiCall(e) { + return this.sendTransaction("multicall", [e]); + } + async estimateGas(e, t) { + return this.writeContract.estimateGas[e](...t); + } + withTransactionOverride(e) { + this.customOverrides = e; + } + async call(e) { + for ( + var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), a = 1; + a < t; + a++ + ) + n[a - 1] = arguments[a]; + let i; + try { + if (n.length > 0 && typeof n[n.length - 1] == "object") { + let m = n[n.length - 1]; + (i = mje.parse(m)), (n = n.slice(0, n.length - 1)); + } + } catch {} + let s = h2(ap.parse(this.abi)).filter((m) => m.name === e); + if (!s.length) + throw new Error( + `Function "${e}" not found in contract. Check your dashboard for the list of functions available` + ); + let c = s.find((m) => m.name === e && m.inputs.length === n.length); + if (!c) + throw new Error(`Function "${e}" requires ${s[0].inputs.length} arguments, but ${n.length} were provided. +Expected function signature: ${s[0].signature}`); + let l = `${e}(${c.inputs.map((m) => m.type).join()})`, + d = l in this.readContract.functions ? l : e; + return c.stateMutability === "view" || c.stateMutability === "pure" + ? this.readContract[d](...n) + : { receipt: await this.sendTransaction(d, n, i) }; + } + async sendTransaction(e, t, n) { + if ( + (n || (n = await this.getCallOverrides()), + (n = { ...n, ...this.customOverrides() }), + (this.customOverrides = () => ({})), + this.options?.gasless && + ("openzeppelin" in this.options.gasless || + "biconomy" in this.options.gasless)) + ) { + if (e === "multicall" && Array.isArray(t[0]) && t[0].length > 0) { + let c = await this.getSignerAddress(); + t[0] = t[0].map((l) => + se.ethers.utils.solidityPack(["bytes", "address"], [l, c]) + ); + } + let a = this.getProvider(), + i = await this.sendGaslessTransaction(e, t, n); + this.emitTransactionEvent("submitted", i); + let s = await a.waitForTransaction(i); + return this.emitTransactionEvent("completed", i), s; + } else { + if (!this.isValidContract) { + let s = await this.getProvider().getCode( + this.readContract.address + ); + if (((this.isValidContract = s !== "0x"), !this.isValidContract)) + throw new Error( + "The address you're trying to send a transaction to is not a smart contract. Make sure you are on the correct network and the contract address is correct" + ); + } + let a = await this.sendTransactionByFunction(e, t, n); + this.emitTransactionEvent("submitted", a.hash); + let i; + try { + i = await a.wait(); + } catch (s) { + try { + await this.writeContract.callStatic[e]( + ...t, + ...(n.value ? [{ value: n.value }] : []) + ); + } catch (c) { + throw await this.formatError(c, e, t, n); + } + throw await this.formatError(s, e, t, n); + } + return this.emitTransactionEvent("completed", a.hash), i; + } + } + async sendTransactionByFunction(e, t, n) { + let a = this.writeContract.functions[e]; + if (!a) throw new Error(`invalid function: "${e.toString()}"`); + if (!n.gasLimit) + try { + n.gasLimit = await this.writeContract.estimateGas[e](...t, n); + } catch { + try { + await this.writeContract.callStatic[e]( + ...t, + ...(n.value ? [{ value: n.value }] : []) + ); + } catch (s) { + throw await this.formatError(s, e, t, n); + } + } + try { + return await a(...t, n); + } catch (i) { + let s = await (n.from || this.getSignerAddress()), + c = await (n.value ? n.value : 0), + l = await this.getProvider().getBalance(s); + throw l.eq(0) || (c && l.lt(c)) + ? await this.formatError( + new Error( + "You have insufficient funds in your account to execute this transaction." + ), + e, + t, + n + ) + : await this.formatError(i, e, t, n); + } + } + async formatError(e, t, n, a) { + let i = this.getProvider(), + s = await i.getNetwork(), + c = await (a.from || this.getSignerAddress()), + l = this.readContract.address, + d = this.readContract.interface.encodeFunctionData(t, n), + m = se.BigNumber.from(a.value || 0), + w = i.connection?.url, + C = this.readContract.interface.getFunction(t), + I = n.map((V) => + JSON.stringify(V).length <= 80 + ? JSON.stringify(V) + : JSON.stringify(V, void 0, 2) + ), + k = + I.join(", ").length <= 80 + ? I.join(", ") + : ` +` + + I.map( + (V) => + " " + + V.split(` `).join(` - `)).join(`, -`)+` -`,L=`${E.name}(${A})`,q=e.transactionHash||e.transaction?.hash||e.receipt?.transactionHash,U=XVe(e),j,H;try{let G=await Hv(this.readContract.address,this.getProvider(),p7(this,l7));G.name&&(H=G.name),G.metadata.sources&&(j=await JJ(G,p7(this,l7)))}catch{}return new T7({reason:U,from:c,to:l,method:L,data:d,network:s,rpcUrl:w,value:f,hash:q,contractName:H,sources:j})}async sendGaslessTransaction(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0,a=this.getSigner();yr.default(a,"Cannot execute gasless transaction without valid signer");let i=await this.getChainID(),s=await this.getSignerAddress(),c=this.writeContract.address,l=n?.value||0;if(oe.BigNumber.from(l).gt(0))throw new Error("Cannot send native token value with gasless transaction");let d=this.writeContract.interface.encodeFunctionData(e,t),f=oe.BigNumber.from(0);try{f=(await this.readContract.estimateGas[e](...t)).mul(2)}catch{}f.lt(1e5)&&(f=oe.BigNumber.from(5e5)),n.gasLimit&&oe.BigNumber.from(n.gasLimit).gt(f)&&(f=oe.BigNumber.from(n.gasLimit));let w={from:s,to:c,data:d,chainId:i,gasLimit:f,functionName:e.toString(),functionArgs:t,callOverrides:n};return await this.defaultGaslessSendFunction(w)}async signTypedData(e,t,n,a){this.emit($.EventType.Signature,{status:"submitted",message:a,signature:""});let{signature:i}=await _7(e,t,n,a);return this.emit($.EventType.Signature,{status:"completed",message:a,signature:i}),i}parseLogs(e,t){if(!t||t.length===0)return[];let n=this.writeContract.interface.getEventTopic(e);return t.filter(i=>i.topics.indexOf(n)>=0).map(i=>this.writeContract.interface.parseLog(i))}async defaultGaslessSendFunction(e){return this.options.gasless&&"biconomy"in this.options.gasless?this.biconomySendFunction(e):this.defenderSendFunction(e)}async biconomySendFunction(e){yr.default(this.options.gasless&&"biconomy"in this.options.gasless,"calling biconomySendFunction without biconomy");let t=this.getSigner(),n=this.getProvider();yr.default(t&&n,"signer and provider must be set");let a=new oe.ethers.Contract(h7(e.chainId,"biconomyForwarder"),Ghr,n),i=0,s=await _He(a,"getNonce",[e.from,i]),c={from:e.from,to:e.to,token:oe.ethers.constants.AddressZero,txGas:e.gasLimit.toNumber(),tokenGasPrice:"0",batchId:i,batchNonce:s.toNumber(),deadline:Math.floor(Date.now()/1e3+(this.options?.gasless&&"biconomy"in this.options.gasless&&this.options.gasless.biconomy?.deadlineSeconds||3600)),data:e.data},l=oe.ethers.utils.arrayify(oe.ethers.utils.solidityKeccak256(["address","address","address","uint256","uint256","uint256","uint256","uint256","bytes32"],[c.from,c.to,c.token,c.txGas,c.tokenGasPrice,c.batchId,c.batchNonce,c.deadline,oe.ethers.utils.keccak256(c.data)]));this.emit($.EventType.Signature,{status:"submitted",message:l,signature:""});let d=await t.signMessage(l);this.emit($.EventType.Signature,{status:"completed",message:l,signature:d});let f=await yZ.default("https://api.biconomy.io/api/v2/meta-tx/native",{method:"POST",body:JSON.stringify({from:e.from,apiId:this.options.gasless.biconomy.apiId,params:[c,d],to:e.to,gasLimit:e.gasLimit.toHexString()}),headers:{"x-api-key":this.options.gasless.biconomy.apiKey,"Content-Type":"application/json;charset=utf-8"}});if(f.ok){let w=await f.json();if(!w.txHash)throw new Error(`relay transaction failed: ${w.log}`);return w.txHash}throw new Error(`relay transaction failed with status: ${f.status} (${f.statusText})`)}async defenderSendFunction(e){yr.default(this.options.gasless&&"openzeppelin"in this.options.gasless,"calling openzeppelin gasless transaction without openzeppelin config in the SDK options");let t=this.getSigner(),n=this.getProvider();yr.default(t,"provider is not set"),yr.default(n,"provider is not set");let a=this.options.gasless.openzeppelin.relayerForwarderAddress||(this.options.gasless.openzeppelin.useEOAForwarder?nx[e.chainId].openzeppelinForwarderEOA:nx[e.chainId].openzeppelinForwarder),i=new oe.Contract(a,Kpr.default,n),s=await _He(i,"getNonce",[e.from]),c,l,d;this.options.gasless.experimentalChainlessSupport?(c={name:"GSNv2 Forwarder",version:"0.0.1",verifyingContract:a},l={ForwardRequest:Vhr},d={from:e.from,to:e.to,value:oe.BigNumber.from(0).toString(),gas:oe.BigNumber.from(e.gasLimit).toString(),nonce:oe.BigNumber.from(s).toString(),data:e.data,chainid:oe.BigNumber.from(e.chainId).toString()}):(c={name:"GSNv2 Forwarder",version:"0.0.1",chainId:e.chainId,verifyingContract:a},l={ForwardRequest:Hhr},d={from:e.from,to:e.to,value:oe.BigNumber.from(0).toString(),gas:oe.BigNumber.from(e.gasLimit).toString(),nonce:oe.BigNumber.from(s).toString(),data:e.data});let f;if(this.emit($.EventType.Signature,{status:"submitted",message:d,signature:""}),e.functionName==="approve"&&e.functionArgs.length===2){let A=e.functionArgs[0],L=e.functionArgs[1],{message:q,signature:U}=await ifr(t,this.writeContract.address,e.from,A,L),{r:j,s:H,v:G}=oe.ethers.utils.splitSignature(U);d={to:this.readContract.address,owner:q.owner,spender:q.spender,value:oe.BigNumber.from(q.value).toString(),nonce:oe.BigNumber.from(q.nonce).toString(),deadline:oe.BigNumber.from(q.deadline).toString(),r:j,s:H,v:G},f=U}else{let{signature:A}=await _7(t,c,l,d);f=A}let w="forward";d?.owner&&(w="permit");let E=JSON.stringify({request:d,signature:f,forwarderAddress:a,type:w});this.emit($.EventType.Signature,{status:"completed",message:d,signature:f});let k=await yZ.default(this.options.gasless.openzeppelin.relayerUrl,{method:"POST",body:E});if(k.ok){let A=await k.json();if(!A.result)throw new Error(`Relay transaction failed: ${A.message}`);return JSON.parse(A.result).txHash}throw new Error(`relay transaction failed with status: ${k.status} (${k.statusText})`)}};function Gh(r){return r.toLowerCase()===bd||r.toLowerCase()===oe.constants.AddressZero}function PJ(r){return Gh(r)?bd:r}async function vc(r,e,t){let n=await fx(r,t);return oe.utils.parseUnits(le.AmountSchema.parse(e),n.decimals)}async function fx(r,e){if(Gh(e)){let t=await r.getNetwork(),n=f7(t.chainId);return{name:n.name,symbol:n.symbol,decimals:n.decimals}}else{let t=new oe.Contract(e,Qpr.default,r),[n,a,i]=await Promise.all([t.name(),t.symbol(),t.decimals()]);return{name:n,symbol:a,decimals:i}}}async function _p(r,e,t){let n=await fx(r,e);return{...n,value:oe.BigNumber.from(t),displayValue:oe.utils.formatUnits(t,n.decimals)}}async function ey(r,e,t,n){if(Gh(t))n.value=e;else{let a=r.getSigner(),i=r.getProvider(),s=new ks(a||i,t,Lu.default,r.options),c=await r.getSignerAddress(),l=r.readContract.address;return(await s.readContract.allowance(c,l)).lt(e)&&await s.sendTransaction("approve",[l,e]),n}}async function eGe(r,e,t,n,a){let i=r.getSigner(),s=r.getProvider(),c=new ks(i||s,e,Lu.default,r.options),l=await r.getSignerAddress(),d=r.readContract.address,f=await c.readContract.allowance(l,d),w=oe.BigNumber.from(t).mul(oe.BigNumber.from(n)).div(oe.ethers.utils.parseUnits("1",a));f.lt(w)&&await c.sendTransaction("approve",[d,f.add(w)])}async function ofr(r,e,t){let n=r.getProvider(),a=new ks(n,e,Lu.default,{}),i=await r.getSignerAddress(),s=r.readContract.address;return(await a.readContract.allowance(i,s)).gte(t)}async function tGe(r,e,t,n,a,i,s,c,l){let d=lm(t.maxClaimablePerWallet,a),f=[oe.utils.hexZeroPad([0],32)],w=t.price,E=t.currencyAddress;try{if(!t.merkleRootHash.toString().startsWith(oe.constants.AddressZero)){let q=await RR(r,t.merkleRootHash.toString(),await n(),i.getProvider(),s,l);if(q)f=q.proof,d=q.maxClaimable==="unlimited"?oe.ethers.constants.MaxUint256:oe.ethers.utils.parseUnits(q.maxClaimable,a),w=q.price===void 0||q.price==="unlimited"?oe.ethers.constants.MaxUint256:await vc(i.getProvider(),q.price,q.currencyAddress||oe.ethers.constants.AddressZero),E=q.currencyAddress||oe.ethers.constants.AddressZero;else if(l===hm.V1)throw new Error("No claim found for this address")}}catch(q){if(q?.message==="No claim found for this address")throw q;console.warn("failed to check claim condition merkle root hash, continuing anyways",q)}let k=await i.getCallOverrides()||{},A=w.toString()!==oe.ethers.constants.MaxUint256.toString()?w:t.price,L=E!==oe.ethers.constants.AddressZero?E:t.currencyAddress;return A.gt(0)&&(Gh(L)?k.value=oe.BigNumber.from(A).mul(e).div(oe.ethers.utils.parseUnits("1",a)):c&&await eGe(i,L,A,e,a)),{overrides:k,proofs:f,maxClaimable:d,price:A,currencyAddress:L,priceInProof:w,currencyAddressInProof:E}}async function cfr(r,e,t){if(!e)return null;let n=e[r];if(n){let a=await t.downloadJSON(n);if(a.isShardedMerkleTree&&a.merkleRoot===r)return(await Ru.fromUri(n,t))?.getAllEntries()||null;{let i=EJ.parse(a);if(r===i.merkleRoot)return i.claims.map(s=>({address:s.address,maxClaimable:s.maxClaimable,price:s.price,currencyAddress:s.currencyAddress}))}}return null}async function RR(r,e,t,n,a,i){if(!t)return null;let s=t[e];if(s){let c=await a.downloadJSON(s);if(c.isShardedMerkleTree&&c.merkleRoot===e)return await(await Ru.fromShardedMerkleTreeInfo(c,a)).getProof(r,n,i);let l=EJ.parse(c);if(e===l.merkleRoot)return l.claims.find(d=>d.address.toLowerCase()===r.toLowerCase())||null}return null}async function rGe(r,e,t){if(r>=t.length)throw Error(`Index out of bounds - got index: ${r} with ${t.length} conditions`);let n=t[r].currencyMetadata.decimals,a=t[r].price,i=oe.ethers.utils.formatUnits(a,n),s=rC.parse({...t[r],price:i,...e}),c=kJ.parse({...s,price:a});return t.map((l,d)=>{let f;d===r?f=c:f=l;let w=oe.ethers.utils.formatUnits(f.price,n);return{...f,price:w}})}async function ufr(r,e,t,n,a){let i=[];return{inputsWithSnapshots:await Promise.all(r.map(async c=>{if(c.snapshot&&c.snapshot.length>0){let l=await iGe(c.snapshot,e,t,n,a);i.push(l),c.merkleRootHash=l.merkleRoot}else c.merkleRootHash=oe.utils.hexZeroPad([0],32);return c})),snapshotInfos:i}}function lfr(r,e){let t=oe.BigNumber.from(r),n=oe.BigNumber.from(e);return t.eq(n)?0:t.gt(n)?1:-1}async function nGe(r,e,t,n,a){let{inputsWithSnapshots:i,snapshotInfos:s}=await ufr(r,e,t,n,a),c=bVe.parse(i),l=(await Promise.all(c.map(d=>dfr(d,e,t,n)))).sort((d,f)=>lfr(d.startTimestamp,f.startTimestamp));return{snapshotInfos:s,sortedConditions:l}}async function dfr(r,e,t,n){let a=r.currencyAddress===oe.constants.AddressZero?bd:r.currencyAddress,i=lm(r.maxClaimableSupply,e),s=lm(r.maxClaimablePerWallet,e),c;return r.metadata&&(typeof r.metadata=="string"?c=r.metadata:c=await n.upload(r.metadata)),{startTimestamp:r.startTime,maxClaimableSupply:i,supplyClaimed:0,maxClaimablePerWallet:s,pricePerToken:await vc(t,r.price,a),currency:a,merkleRoot:r.merkleRootHash.toString(),waitTimeInSecondsBetweenClaims:r.waitInSeconds||0,metadata:c}}function C7(r){return{startTimestamp:r.startTimestamp,maxClaimableSupply:r.maxClaimableSupply,supplyClaimed:r.supplyClaimed,merkleRoot:r.merkleRoot,pricePerToken:r.pricePerToken,currency:r.currency,quantityLimitPerTransaction:r.maxClaimablePerWallet,waitTimeInSecondsBetweenClaims:r.waitTimeInSecondsBetweenClaims||0}}function E7(r){return{startTimestamp:r.startTimestamp,maxClaimableSupply:r.maxClaimableSupply,supplyClaimed:r.supplyClaimed,merkleRoot:r.merkleRoot,pricePerToken:r.pricePerToken,currency:r.currency,quantityLimitPerWallet:r.maxClaimablePerWallet,metadata:r.metadata||""}}function k7(r){return{startTimestamp:r.startTimestamp,maxClaimableSupply:r.maxClaimableSupply,supplyClaimed:r.supplyClaimed,merkleRoot:r.merkleRoot.toString(),pricePerToken:r.pricePerToken,currency:r.currency,maxClaimablePerWallet:r.quantityLimitPerTransaction,waitTimeInSecondsBetweenClaims:r.waitTimeInSecondsBetweenClaims}}function S7(r){return{startTimestamp:r.startTimestamp,maxClaimableSupply:r.maxClaimableSupply,supplyClaimed:r.supplyClaimed,merkleRoot:r.merkleRoot.toString(),pricePerToken:r.pricePerToken,currency:r.currency,maxClaimablePerWallet:r.quantityLimitPerWallet,waitTimeInSecondsBetweenClaims:0,metadata:r.metadata}}async function A7(r,e,t,n,a,i){let s=await _p(t,r.currency,r.pricePerToken),c=P_(r.maxClaimableSupply,e),l=P_(r.maxClaimablePerWallet,e),d=P_(oe.BigNumber.from(r.maxClaimableSupply).sub(r.supplyClaimed),e),f=P_(r.supplyClaimed,e),w;return r.metadata&&(w=await a.downloadJSON(r.metadata)),kJ.parse({startTime:r.startTimestamp,maxClaimableSupply:c,maxClaimablePerWallet:l,currentMintSupply:f,availableSupply:d,waitInSeconds:r.waitTimeInSecondsBetweenClaims?.toString(),price:oe.BigNumber.from(r.pricePerToken),currency:r.currency,currencyAddress:r.currency,currencyMetadata:s,merkleRootHash:r.merkleRoot,snapshot:i?await cfr(r.merkleRoot,n,a):void 0,metadata:w})}function P_(r,e){return r.toString()===oe.ethers.constants.MaxUint256.toString()?"unlimited":oe.ethers.utils.formatUnits(r,e)}function lm(r,e){return r==="unlimited"?oe.ethers.constants.MaxUint256:oe.ethers.utils.parseUnits(r,e)}async function aGe(r,e,t,n,a){let i={},s=n||bd,l=(await vc(r.getProvider(),e,s)).mul(t);return l.gt(0)&&(s===bd?i={value:l}:s!==bd&&a&&await eGe(r,s,l,t,0)),i}var pfr=2,hm;(function(r){r[r.V1=1]="V1",r[r.V2=2]="V2"})(hm||(hm={}));var Ru=class{constructor(e,t,n,a,i){le._defineProperty(this,"shardNybbles",void 0),le._defineProperty(this,"shards",void 0),le._defineProperty(this,"trees",void 0),le._defineProperty(this,"storage",void 0),le._defineProperty(this,"baseUri",void 0),le._defineProperty(this,"originalEntriesUri",void 0),le._defineProperty(this,"tokenDecimals",void 0),this.storage=e,this.shardNybbles=a,this.baseUri=t,this.originalEntriesUri=n,this.tokenDecimals=i,this.shards={},this.trees={}}static async fromUri(e,t){try{let n=await t.downloadJSON(e);if(n.isShardedMerkleTree)return Ru.fromShardedMerkleTreeInfo(n,t)}catch{return}}static async fromShardedMerkleTreeInfo(e,t){return new Ru(t,e.baseUri,e.originalEntriesUri,e.shardNybbles,e.tokenDecimals)}static hashEntry(e,t,n,a){switch(a){case hm.V1:return oe.utils.solidityKeccak256(["address","uint256"],[e.address,lm(e.maxClaimable,t)]);case hm.V2:return oe.utils.solidityKeccak256(["address","uint256","uint256","address"],[e.address,lm(e.maxClaimable,t),lm(e.price||"unlimited",n),e.currencyAddress||oe.ethers.constants.AddressZero])}}static async fetchAndCacheDecimals(e,t,n){if(!n)return 18;let a=e[n];return a===void 0&&(a=(await fx(t,n)).decimals,e[n]=a),a}static async buildAndUpload(e,t,n,a,i){let s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:pfr,c=tC.parse(e),l={};for(let H of c){let G=H.address.slice(2,2+s).toLowerCase();l[G]===void 0&&(l[G]=[]),l[G].push(H)}let d={},f=await Promise.all(Object.entries(l).map(async H=>{let[G,te]=H;return[G,new pZ.MerkleTree(await Promise.all(te.map(async K=>{let ae=await Ru.fetchAndCacheDecimals(d,n,K.currencyAddress);return Ru.hashEntry(K,t,ae,i)})),oe.utils.keccak256,{sort:!0}).getHexRoot()]})),w=Object.fromEntries(f),E=new pZ.MerkleTree(Object.values(w),oe.utils.keccak256,{sort:!0}),k=[];for(let[H,G]of Object.entries(l)){let te={proofs:E.getProof(w[H]).map(K=>"0x"+K.data.toString("hex")),entries:G};k.push({data:JSON.stringify(te),name:`${H}.json`})}let A=await a.uploadBatch(k),L=A[0].slice(0,A[0].lastIndexOf("/")),q=await a.upload(c),U={merkleRoot:E.getHexRoot(),baseUri:L,originalEntriesUri:q,shardNybbles:s,tokenDecimals:t,isShardedMerkleTree:!0},j=await a.upload(U);return{shardedMerkleInfo:U,uri:j}}async getProof(e,t,n){let a=e.slice(2,2+this.shardNybbles).toLowerCase(),i=this.shards[a],s={};if(i===void 0)try{i=this.shards[a]=await this.storage.downloadJSON(`${this.baseUri}/${a}.json`);let w=await Promise.all(i.entries.map(async E=>{let k=await Ru.fetchAndCacheDecimals(s,t,E.currencyAddress);return Ru.hashEntry(E,this.tokenDecimals,k,n)}));this.trees[a]=new pZ.MerkleTree(w,oe.utils.keccak256,{sort:!0})}catch{return console.warn("No merkle entry found for address",e),null}let c=i.entries.find(w=>w.address.toLowerCase()===e.toLowerCase());if(!c)return null;let l=await Ru.fetchAndCacheDecimals(s,t,c.currencyAddress),d=Ru.hashEntry(c,this.tokenDecimals,l,n),f=this.trees[a].getProof(d).map(w=>"0x"+w.data.toString("hex"));return CJ.parse({...c,proof:f.concat(i.proofs)})}async getAllEntries(){try{return await this.storage.downloadJSON(this.originalEntriesUri)}catch(e){return console.warn("Could not fetch original snapshot entries",e),[]}}};async function iGe(r,e,t,n,a){let i=tC.parse(r),s=i.map(d=>d.address);if(new Set(s).sizet.readContract.getRoleMember(n,i)))}throw new Error("Contract does not support enumerating roles. Please implement IPermissionsEnumerable to unlock this functionality.")}async setAll(e){let t=Object.keys(e);yr.default(t.length,"you must provide at least one role to set"),yr.default(t.every(s=>this.roles.includes(s)),"this contract does not support the given role");let n=await this.getAll(),a=[],i=t.sort(s=>s==="admin"?1:-1);for(let s=0;s!d.includes(E)),w=d.filter(E=>!l.includes(E));if(f.length&&f.forEach(E=>{a.push(this.contractWrapper.readContract.interface.encodeFunctionData("grantRole",[ex(c),E]))}),w.length)for(let E=0;E{if(!(await this.get(n)).map(i=>i.toLowerCase()).includes(t.toLowerCase()))throw new b7(t,n)}))}async grant(e,t){return yr.default(this.roles.includes(e),`this contract does not support the "${e}" role`),{receipt:await this.contractWrapper.sendTransaction("grantRole",[ex(e),t])}}async revoke(e,t){yr.default(this.roles.includes(e),`this contract does not support the "${e}" role`);let n=await this.getRevokeRoleFunctionName(t);return{receipt:await this.contractWrapper.sendTransaction(n,[ex(e),t])}}async getRevokeRoleFunctionName(e){return(await this.contractWrapper.getSignerAddress()).toLowerCase()===e.toLowerCase()?"renounceRole":"revokeRole"}},B7=class{constructor(e,t){le._defineProperty(this,"featureName",M7.name),le._defineProperty(this,"contractWrapper",void 0),le._defineProperty(this,"metadata",void 0),this.contractWrapper=e,this.metadata=t}async getDefaultRoyaltyInfo(){let[e,t]=await this.contractWrapper.readContract.getDefaultRoyaltyInfo();return yo.parse({fee_recipient:e,seller_fee_basis_points:t})}async getTokenRoyaltyInfo(e){let[t,n]=await this.contractWrapper.readContract.getRoyaltyInfoForToken(e);return yo.parse({fee_recipient:t,seller_fee_basis_points:n})}async setDefaultRoyaltyInfo(e){let t=await this.metadata.get(),n=this.metadata.parseInputMetadata({...t,...e}),a=await this.metadata._parseAndUploadMetadata(n);if(gc("setContractURI",this.contractWrapper)){let i=[this.contractWrapper.readContract.interface.encodeFunctionData("setDefaultRoyaltyInfo",[n.fee_recipient,n.seller_fee_basis_points]),this.contractWrapper.readContract.interface.encodeFunctionData("setContractURI",[a])];return{receipt:await this.contractWrapper.multiCall(i),data:()=>this.getDefaultRoyaltyInfo()}}else throw new Error("Updating royalties requires implementing ContractMetadata in your contract to support marketplaces like OpenSea.")}async setTokenRoyaltyInfo(e,t){return{receipt:await this.contractWrapper.sendTransaction("setRoyaltyInfoForToken",[e,t.fee_recipient,t.seller_fee_basis_points]),data:()=>this.getDefaultRoyaltyInfo()}}},q7=class{constructor(e){le._defineProperty(this,"featureName",I7.name),le._defineProperty(this,"contractWrapper",void 0),this.contractWrapper=e}async getRecipient(){return await this.contractWrapper.readContract.primarySaleRecipient()}async setRecipient(e){return{receipt:await this.contractWrapper.sendTransaction("setPrimarySaleRecipient",[e])}}},NJ={name:"Failed to load NFT metadata"};async function OJ(r,e,t){let n=e.replace("{id}",oe.ethers.utils.hexZeroPad(oe.BigNumber.from(r).toHexString(),32).slice(2)),a;try{a=await t.downloadJSON(n)}catch{let s=e.replace("{id}",oe.BigNumber.from(r).toString());try{a=await t.downloadJSON(s)}catch{console.warn(`failed to get token metadata: ${JSON.stringify({tokenId:r.toString(),tokenUri:e})} -- falling back to default metadata`),a=NJ}}return le.CommonNFTOutput.parse({...a,id:oe.BigNumber.from(r).toString(),uri:e})}async function NR(r,e,t,n){let a,i=new oe.Contract(r,AR.default,e),s=await i.supportsInterface($_),c=await i.supportsInterface(eC);if(s)a=await new oe.Contract(r,Ypr.default,e).tokenURI(t);else if(c)a=await new oe.Contract(r,$pr.default,e).uri(t);else throw Error("Contract must implement ERC 1155 or ERC 721.");if(!a)throw new ax;return OJ(t,a,n)}async function LJ(r,e){return typeof r=="string"?r:await e.upload(le.CommonNFTInput.parse(r))}async function zv(r,e,t,n){if(hfr(r))return r;if(ffr(r))return await e.uploadBatch(r.map(i=>le.CommonNFTInput.parse(i)),{rewriteFileNames:{fileStartNumber:t||0},onProgress:n?.onProgress});throw new Error("NFT metadatas must all be of the same type (all URI or all NFTMetadataInput)")}function tx(r){let e=r[0].substring(0,r[0].lastIndexOf("/"));for(let t=0;ttypeof e!="string")===void 0}function ffr(r){return r.find(e=>typeof e!="object")===void 0}var D_=class{constructor(e,t,n,a){le._defineProperty(this,"featureName",void 0),le._defineProperty(this,"contractWrapper",void 0),le._defineProperty(this,"storage",void 0),le._defineProperty(this,"nextTokenIdToMintFn",void 0),this.featureName=n,this.nextTokenIdToMintFn=a,this.contractWrapper=e,this.storage=t}async createDelayedRevealBatch(e,t,n,a){if(!n)throw new Error("Password is required");let i=await this.storage.uploadBatch([le.CommonNFTInput.parse(e)],{rewriteFileNames:{fileStartNumber:0}}),s=tx(i),c=await this.nextTokenIdToMintFn(),l=await this.storage.uploadBatch(t.map(G=>le.CommonNFTInput.parse(G)),{onProgress:a?.onProgress,rewriteFileNames:{fileStartNumber:c.toNumber()}}),d=tx(l),f=await this.contractWrapper.readContract.getBaseURICount(),w=await this.hashDelayRevealPasword(f,n),E=await this.contractWrapper.readContract.encryptDecrypt(oe.ethers.utils.toUtf8Bytes(d),w),k;if(await this.isLegacyContract())k=E;else{let G=await this.contractWrapper.getChainID(),te=oe.ethers.utils.solidityKeccak256(["bytes","bytes","uint256"],[oe.ethers.utils.toUtf8Bytes(d),w,G]);k=oe.ethers.utils.defaultAbiCoder.encode(["bytes","bytes32"],[E,te])}let L=await this.contractWrapper.sendTransaction("lazyMint",[l.length,s.endsWith("/")?s:`${s}/`,k]),q=this.contractWrapper.parseLogs("TokensLazyMinted",L?.logs),U=q[0].args.startTokenId,j=q[0].args.endTokenId,H=[];for(let G=U;G.lte(j);G=G.add(1))H.push({id:G,receipt:L});return H}async reveal(e,t){if(!t)throw new Error("Password is required");let n=await this.hashDelayRevealPasword(e,t);try{let a=await this.contractWrapper.callStatic().reveal(e,n);if(!a.includes("://")||!a.endsWith("/"))throw new Error("invalid password")}catch{throw new Error("invalid password")}return{receipt:await this.contractWrapper.sendTransaction("reveal",[e,n])}}async getBatchesToReveal(){let e=await this.contractWrapper.readContract.getBaseURICount();if(e.isZero())return[];let t=Array.from(Array(e.toNumber()).keys()),n=await Promise.all(t.map(d=>{if(gc("getBatchIdAtIndex",this.contractWrapper))return this.contractWrapper.readContract.getBatchIdAtIndex(d);if(gc("baseURIIndices",this.contractWrapper))return this.contractWrapper.readContract.baseURIIndices(d);throw new Error("Contract does not have getBatchIdAtIndex or baseURIIndices.")})),a=n.slice(0,n.length-1),i=await Promise.all(Array.from([0,...a]).map(d=>this.getNftMetadata(d.toString()))),s=await this.isLegacyContract(),l=(await Promise.all(Array.from([...n]).map(d=>s?this.getLegacyEncryptedData(d):this.contractWrapper.readContract.encryptedData(d)))).map(d=>oe.ethers.utils.hexDataLength(d)>0?s?d:oe.ethers.utils.defaultAbiCoder.decode(["bytes","bytes32"],d)[0]:d);return i.map((d,f)=>({batchId:oe.BigNumber.from(f),batchUri:d.uri,placeholderMetadata:d})).filter((d,f)=>oe.ethers.utils.hexDataLength(l[f])>0)}async hashDelayRevealPasword(e,t){let n=await this.contractWrapper.getChainID(),a=this.contractWrapper.readContract.address;return oe.ethers.utils.solidityKeccak256(["string","uint256","uint256","address"],[t,n,e,a])}async getNftMetadata(e){return NR(this.contractWrapper.readContract.address,this.contractWrapper.getProvider(),e,this.storage)}async isLegacyContract(){if(gc("contractVersion",this.contractWrapper))try{return await this.contractWrapper.readContract.contractVersion()<=2}catch{return!1}return!1}async getLegacyEncryptedData(e){let n=await new oe.ethers.Contract(this.contractWrapper.readContract.address,ehr.default,this.contractWrapper.getProvider()).functions.encryptedBaseURI(e);return n.length>0?n[0]:"0x"}},SHe={name:"ERC20ClaimConditionsV1",namespace:"token.drop.claim",docLinks:{sdk:"sdk.erc20dclaimable",contracts:"DropSinglePhase_V1"},abis:[Lu.default,YHe.default],features:{}},F_={name:"ERC20ClaimConditionsV2",namespace:"token.drop.claim",docLinks:{sdk:"sdk.erc20dclaimable",contracts:"DropSinglePhase"},abis:[Lu.default,XHe.default],features:{}},AHe={name:"ERC20ClaimPhasesV2",namespace:"token.drop.claim",docLinks:{sdk:"sdk.erc20dclaimable",contracts:"Drop"},abis:[Lu.default,QHe.default],features:{}},MHe={name:"ERC20ClaimPhasesV1",namespace:"token.drop.claim",docLinks:{sdk:"sdk.erc20dclaimable",contracts:"Drop"},abis:[vpr.default],features:{}},U_={name:"ERC20Burnable",namespace:"token.burn",docLinks:{sdk:"sdk.erc20burnable",contracts:"IBurnableERC20"},abis:[Lu.default,gpr.default],features:{}},D7={name:"ERC20SignatureMintable",namespace:"token.signature",docLinks:{sdk:"sdk.erc20signaturemintable",contracts:"ISignatureMintERC20"},abis:[Lu.default,bpr.default],features:{}},F7={name:"ERC20BatchMintable",namespace:"token.mint.batch",docLinks:{sdk:"sdk.erc20batchmintable",contracts:"IMulticall"},abis:[Lu.default,$He.default,vJ.default],features:{}},W_={name:"ERC20Mintable",namespace:"token.mint",docLinks:{sdk:"sdk.erc20mintable",contracts:"IMintableERC20"},abis:[Lu.default,$He.default],features:{[F7.name]:F7}},U7={name:"ERC20",namespace:"token",docLinks:{sdk:"sdk.erc20",contracts:"IERC20"},abis:[Lu.default],features:{[U_.name]:U_,[W_.name]:W_,[SHe.name]:SHe,[F_.name]:F_,[MHe.name]:MHe,[AHe.name]:AHe,[D7.name]:D7}},W7={name:"ERC721Burnable",namespace:"nft.burn",docLinks:{sdk:"sdk.erc721burnable",contracts:"IBurnableERC721"},abis:[go.default,wpr.default],features:{}},j_={name:"ERC721Revealable",namespace:"nft.drop.revealer",docLinks:{sdk:"sdk.delayedreveal",contracts:"DelayedReveal"},abis:[go.default,Td.default,eVe.default],features:{}},j7={name:"ERC721TieredDrop",namespace:"nft.tieredDrop",docLinks:{sdk:"sdk.erc721tiereddrop",contracts:"TieredDrop"},abis:[go.default,Spr.default],features:{}},IHe={name:"ERC721ClaimConditionsV1",namespace:"nft.drop.claim",docLinks:{sdk:"sdk.erc721claimable",contracts:"DropSinglePhase_V1"},abis:[go.default,Td.default,YHe.default],features:{}},z7={name:"ERC721ClaimConditionsV2",namespace:"nft.drop.claim",docLinks:{sdk:"sdk.erc721claimable",contracts:"DropSinglePhase"},abis:[go.default,Td.default,XHe.default],features:{}},PHe={name:"ERC721ClaimPhasesV1",namespace:"nft.drop.claim",docLinks:{sdk:"sdk.erc721claimable",contracts:"Drop"},abis:[Tpr.default],features:{}},RHe={name:"ERC721ClaimPhasesV2",namespace:"nft.drop.claim",docLinks:{sdk:"sdk.erc721claimable",contracts:"Drop"},abis:[go.default,Td.default,QHe.default],features:{}},z_={name:"ERC721ClaimCustom",namespace:"nft.drop.claim",docLinks:{sdk:"sdk.erc721claimable",contracts:"IClaimableERC721"},abis:[go.default,Td.default,xpr.default],features:{}},H7={name:"ERC721LazyMintable",namespace:"nft.drop",docLinks:{sdk:"sdk.erc721lazymintable",contracts:"LazyMint"},abis:[go.default,Td.default],features:{[j_.name]:j_,[z_.name]:z_,[IHe.name]:IHe,[z7.name]:z7,[PHe.name]:PHe,[RHe.name]:RHe}},V7={name:"ERC721BatchMintable",namespace:"nft.mint.batch",docLinks:{sdk:"sdk.erc721batchmintable",contracts:"IMulticall"},abis:[go.default,tVe.default,vJ.default],features:{}},H_={name:"ERC721Mintable",namespace:"nft.mint",docLinks:{sdk:"sdk.erc721mintable",contracts:"IMintableERC721"},abis:[go.default,tVe.default],features:{[V7.name]:V7}},G7={name:"ERC721SignatureMintV2",namespace:"nft.signature",docLinks:{sdk:"sdk.erc721signaturemint",contracts:"ISignatureMintERC721"},abis:[go.default,Epr.default],features:{}},NHe={name:"ERC721SignatureMintV1",namespace:"nft.signature",docLinks:{sdk:"sdk.erc721signaturemint",contracts:"ISignatureMintERC721"},abis:[kpr.default],features:{}},WZ={name:"ERC721Enumerable",namespace:"nft.query.owned",docLinks:{sdk:"sdk.erc721enumerable",contracts:"IERC721Enumerable"},abis:[go.default,_pr.default],features:{}},rx={name:"ERC721Supply",namespace:"nft.query",docLinks:{sdk:"sdk.erc721supply",contracts:"IERC721Supply"},abis:[go.default,Cpr.default],features:{[WZ.name]:WZ}},Z7={name:"ERC721",namespace:"nft",docLinks:{sdk:"sdk.erc721",contracts:"IERC721"},abis:[go.default],features:{[W7.name]:W7,[rx.name]:rx,[H_.name]:H_,[H7.name]:H7,[NHe.name]:NHe,[G7.name]:G7,[j7.name]:j7}},qv={name:"ERC1155Burnable",namespace:"edition.burn",docLinks:{sdk:"sdk.erc1155burnable",contracts:"IBurnableERC1155"},abis:[Zc.default,Apr.default],features:{}},OHe={name:"ERC1155ClaimConditionsV1",namespace:"edition.drop.claim",docLinks:{sdk:"sdk.erc1155claimable",contracts:"DropSinglePhase1155"},abis:[Zc.default,Td.default,Rpr.default],features:{}},J7={name:"ERC1155ClaimConditionsV2",namespace:"edition.drop.claim",docLinks:{sdk:"sdk.erc1155claimable",contracts:"DropSinglePhase1155"},abis:[Zc.default,Td.default,Ppr.default],features:{}},LHe={name:"ERC1155ClaimPhasesV2",namespace:"edition.drop.claim",docLinks:{sdk:"sdk.erc1155claimable",contracts:"Drop1155"},abis:[Zc.default,Td.default,Ipr.default],features:{}},BHe={name:"ERC1155ClaimPhasesV1",namespace:"edition.drop.claim",docLinks:{sdk:"sdk.erc1155claimable",contracts:"Drop1155"},abis:[rVe.default],features:{}},V_={name:"ERC1155ClaimCustom",namespace:"edition.drop.claim",docLinks:{sdk:"sdk.erc1155claimable",contracts:"IClaimableERC1155"},abis:[Zc.default,Td.default,Mpr.default],features:{}},sx={name:"ERC1155Revealable",namespace:"edition.drop.revealer",docLinks:{sdk:"sdk.drop.delayedreveal",contracts:"DelayedReveal"},abis:[Zc.default,Td.default,eVe.default],features:{}},K7={name:"ERC1155LazyMintableV2",namespace:"edition.drop",docLinks:{sdk:"sdk.erc1155droppable",contracts:"LazyMint"},abis:[Zc.default,Td.default],features:{[sx.name]:sx,[V_.name]:V_,[OHe.name]:OHe,[J7.name]:J7,[LHe.name]:LHe}},qHe={name:"ERC1155LazyMintableV1",namespace:"edition.drop",docLinks:{sdk:"sdk.erc1155droppable",contracts:"LazyMint"},abis:[rVe.default],features:{[BHe.name]:BHe}},Q7={name:"ERC1155SignatureMintable",namespace:"edition.signature",docLinks:{sdk:"sdk.erc1155signaturemintable",contracts:"ISignatureMintERC1155"},abis:[Zc.default,Opr.default],features:{}},X7={name:"ERC1155BatchMintable",namespace:"edition.mint.batch",docLinks:{sdk:"sdk.erc1155batchmintable",contracts:"IMulticall"},abis:[Zc.default,nVe.default,vJ.default],features:{}},Dv={name:"ERC1155Mintable",namespace:"edition.mint",docLinks:{sdk:"sdk.erc1155mintable",contracts:"IMintableERC1155"},abis:[Zc.default,nVe.default],features:{[X7.name]:X7}},Fv={name:"ERC1155Enumerable",namespace:"edition.query",docLinks:{sdk:"sdk.erc1155",contracts:"IERC1155"},abis:[Zc.default,Npr.default],features:{}},Y7={name:"ERC1155",namespace:"edition",docLinks:{sdk:"sdk.erc1155enumerable",contracts:"IERC1155Enumerable"},abis:[Zc.default],features:{[qv.name]:qv,[Fv.name]:Fv,[Dv.name]:Dv,[qHe.name]:qHe,[K7.name]:K7,[sx.name]:sx,[Q7.name]:Q7}},mfr={[U7.name]:U7,[Z7.name]:Z7,[Y7.name]:Y7,[M7.name]:M7,[P7.name]:P7,[I7.name]:I7,[R7.name]:R7,[N7.name]:N7,[BZ.name]:BZ,[O7.name]:O7,[EHe.name]:EHe,[qZ.name]:qZ,[kHe.name]:kHe,[DZ.name]:DZ,[FZ.name]:FZ,[UZ.name]:UZ},jZ;try{jZ=new TextDecoder}catch{}var Lt,Uv,yt=0,yfr=105,gfr=57342,vfr=57343,DHe=57337,FHe=6,Yw={},bn={},zi,$7,eR=0,G_=0,Es,Tp,Li=[],zZ=[],Ou,Vc,R_,UHe={useRecords:!1,mapsAsObjects:!0},HZ=!1,ox=class{constructor(e){if(e&&((e.keyMap||e._keyMap)&&!e.useRecords&&(e.useRecords=!1,e.mapsAsObjects=!0),e.useRecords===!1&&e.mapsAsObjects===void 0&&(e.mapsAsObjects=!0),e.getStructures&&(e.getShared=e.getStructures),e.getShared&&!e.structures&&((e.structures=[]).uninitialized=!0),e.keyMap)){this.mapKey=new Map;for(let[t,n]of Object.entries(e.keyMap))this.mapKey.set(n,t)}Object.assign(this,e)}decodeKey(e){return this.keyMap&&this.mapKey.get(e)||e}decode(e,t){if(Lt)return lGe(()=>(dGe(),this?this.decode(e,t):ox.prototype.decode.call(UHe,e,t)));Uv=t>-1?t:e.length,yt=0,G_=0,$7=null,Es=null,Lt=e;try{Vc=e.dataView||(e.dataView=new DataView(e.buffer,e.byteOffset,e.byteLength))}catch(n){throw Lt=null,e instanceof Uint8Array?n:new Error("Source must be a Uint8Array or Buffer but was a "+(e&&typeof e=="object"?e.constructor.name:typeof e))}if(this instanceof ox){if(bn=this,Ou=this.sharedValues&&(this.pack?new Array(this.maxPrivatePackedValues||16).concat(this.sharedValues):this.sharedValues),this.structures)return zi=this.structures,WHe();(!zi||zi.length>0)&&(zi=[])}else bn=UHe,(!zi||zi.length>0)&&(zi=[]),Ou=null;return WHe()}};function WHe(){try{let r=Dn();if(Es){if(yt>=Es.postBundlePosition){let e=new Error("Unexpected bundle position");throw e.incomplete=!0,e}yt=Es.postBundlePosition,Es=null}if(yt==Uv)zi=null,Lt=null,Tp&&(Tp=null);else if(yt>Uv){let e=new Error("Unexpected end of CBOR data");throw e.incomplete=!0,e}else if(!HZ)throw new Error("Data read, but end of buffer not reached");return r}catch(r){throw dGe(),(r instanceof RangeError||r.message.startsWith("Unexpected end of buffer"))&&(r.incomplete=!0),r}}function Dn(){let r=Lt[yt++],e=r>>5;if(r=r&31,r>23)switch(r){case 24:r=Lt[yt++];break;case 25:if(e==7)return Tfr();r=Vc.getUint16(yt),yt+=2;break;case 26:if(e==7){let t=Vc.getFloat32(yt);if(bn.useFloat32>2){let n=pGe[(Lt[yt]&127)<<1|Lt[yt+1]>>7];return yt+=4,(n*t+(t>0?.5:-.5)>>0)/n}return yt+=4,t}r=Vc.getUint32(yt),yt+=4;break;case 27:if(e==7){let t=Vc.getFloat64(yt);return yt+=8,t}if(e>1){if(Vc.getUint32(yt)>0)throw new Error("JavaScript does not support arrays, maps, or strings with length over 4294967295");r=Vc.getUint32(yt+4)}else bn.int64AsNumber?(r=Vc.getUint32(yt)*4294967296,r+=Vc.getUint32(yt+4)):r=Vc.getBigUint64(yt);yt+=8;break;case 31:switch(e){case 2:case 3:throw new Error("Indefinite length not supported for byte or text strings");case 4:let t=[],n,a=0;for(;(n=Dn())!=Yw;)t[a++]=n;return e==4?t:e==3?t.join(""):P.Buffer.concat(t);case 5:let i;if(bn.mapsAsObjects){let s={};if(bn.keyMap)for(;(i=Dn())!=Yw;)s[Dh(bn.decodeKey(i))]=Dn();else for(;(i=Dn())!=Yw;)s[Dh(i)]=Dn();return s}else{R_&&(bn.mapsAsObjects=!0,R_=!1);let s=new Map;if(bn.keyMap)for(;(i=Dn())!=Yw;)s.set(bn.decodeKey(i),Dn());else for(;(i=Dn())!=Yw;)s.set(i,Dn());return s}case 7:return Yw;default:throw new Error("Invalid major type for indefinite length "+e)}default:throw new Error("Unknown token "+r)}switch(e){case 0:return r;case 1:return~r;case 2:return xfr(r);case 3:if(G_>=yt)return $7.slice(yt-eR,(yt+=r)-eR);if(G_==0&&Uv<140&&r<32){let a=r<16?oGe(r):wfr(r);if(a!=null)return a}return bfr(r);case 4:let t=new Array(r);for(let a=0;a=DHe){let a=zi[r&8191];if(a)return a.read||(a.read=VZ(a)),a.read();if(r<65536){if(r==vfr)return ZZ(Dn());if(r==gfr){let i=N_(),s=Dn();for(let c=2;c23)switch(t){case 24:t=Lt[yt++];break;case 25:t=Vc.getUint16(yt),yt+=2;break;case 26:t=Vc.getUint32(yt),yt+=4;break;default:throw new Error("Expected array header, but got "+Lt[yt-1])}let n=this.compiledReader;for(;n;){if(n.propertyCount===t)return n(Dn);n=n.next}if(this.slowReads++>=3){let i=this.length==t?this:this.slice(0,t);return n=bn.keyMap?new Function("r","return {"+i.map(s=>bn.decodeKey(s)).map(s=>jHe.test(s)?Dh(s)+":r()":"["+JSON.stringify(s)+"]:r()").join(",")+"}"):new Function("r","return {"+i.map(s=>jHe.test(s)?Dh(s)+":r()":"["+JSON.stringify(s)+"]:r()").join(",")+"}"),this.compiledReader&&(n.next=this.compiledReader),n.propertyCount=t,this.compiledReader=n,n(Dn)}let a={};if(bn.keyMap)for(let i=0;i64&&jZ)return jZ.decode(Lt.subarray(yt,yt+=r));let t=yt+r,n=[];for(e="";yt65535&&(l-=65536,n.push(l>>>10&1023|55296),l=56320|l&1023),n.push(l)}else n.push(a);n.length>=4096&&(e+=Xs.apply(String,n),n.length=0)}return n.length>0&&(e+=Xs.apply(String,n)),e}var Xs=String.fromCharCode;function wfr(r){let e=yt,t=new Array(r);for(let n=0;n0){yt=e;return}t[n]=a}return Xs.apply(String,t)}function oGe(r){if(r<4)if(r<2){if(r===0)return"";{let e=Lt[yt++];if((e&128)>1){yt-=1;return}return Xs(e)}}else{let e=Lt[yt++],t=Lt[yt++];if((e&128)>0||(t&128)>0){yt-=2;return}if(r<3)return Xs(e,t);let n=Lt[yt++];if((n&128)>0){yt-=3;return}return Xs(e,t,n)}else{let e=Lt[yt++],t=Lt[yt++],n=Lt[yt++],a=Lt[yt++];if((e&128)>0||(t&128)>0||(n&128)>0||(a&128)>0){yt-=4;return}if(r<6){if(r===4)return Xs(e,t,n,a);{let i=Lt[yt++];if((i&128)>0){yt-=5;return}return Xs(e,t,n,a,i)}}else if(r<8){let i=Lt[yt++],s=Lt[yt++];if((i&128)>0||(s&128)>0){yt-=6;return}if(r<7)return Xs(e,t,n,a,i,s);let c=Lt[yt++];if((c&128)>0){yt-=7;return}return Xs(e,t,n,a,i,s,c)}else{let i=Lt[yt++],s=Lt[yt++],c=Lt[yt++],l=Lt[yt++];if((i&128)>0||(s&128)>0||(c&128)>0||(l&128)>0){yt-=8;return}if(r<10){if(r===8)return Xs(e,t,n,a,i,s,c,l);{let d=Lt[yt++];if((d&128)>0){yt-=9;return}return Xs(e,t,n,a,i,s,c,l,d)}}else if(r<12){let d=Lt[yt++],f=Lt[yt++];if((d&128)>0||(f&128)>0){yt-=10;return}if(r<11)return Xs(e,t,n,a,i,s,c,l,d,f);let w=Lt[yt++];if((w&128)>0){yt-=11;return}return Xs(e,t,n,a,i,s,c,l,d,f,w)}else{let d=Lt[yt++],f=Lt[yt++],w=Lt[yt++],E=Lt[yt++];if((d&128)>0||(f&128)>0||(w&128)>0||(E&128)>0){yt-=12;return}if(r<14){if(r===12)return Xs(e,t,n,a,i,s,c,l,d,f,w,E);{let k=Lt[yt++];if((k&128)>0){yt-=13;return}return Xs(e,t,n,a,i,s,c,l,d,f,w,E,k)}}else{let k=Lt[yt++],A=Lt[yt++];if((k&128)>0||(A&128)>0){yt-=14;return}if(r<15)return Xs(e,t,n,a,i,s,c,l,d,f,w,E,k,A);let L=Lt[yt++];if((L&128)>0){yt-=15;return}return Xs(e,t,n,a,i,s,c,l,d,f,w,E,k,A,L)}}}}}function xfr(r){return bn.copyBuffers?Uint8Array.prototype.slice.call(Lt,yt,yt+=r):Lt.subarray(yt,yt+=r)}var cGe=new Float32Array(1),d7=new Uint8Array(cGe.buffer,0,4);function Tfr(){let r=Lt[yt++],e=Lt[yt++],t=(r&127)>>2;if(t===31)return e||r&3?NaN:r&128?-1/0:1/0;if(t===0){let n=((r&3)<<8|e)/16777216;return r&128?-n:n}return d7[3]=r&128|(t>>1)+56,d7[2]=(r&7)<<5|e>>3,d7[1]=e<<5,d7[0]=0,cGe[0]}var cx=class{constructor(e,t){this.value=e,this.tag=t}};Li[0]=r=>new Date(r);Li[1]=r=>new Date(Math.round(r*1e3));Li[2]=r=>{let e=BigInt(0);for(let t=0,n=r.byteLength;tBigInt(-1)-Li[2](r);Li[4]=r=>Number(r[1]+"e"+r[0]);Li[5]=r=>r[1]*Math.exp(r[0]*Math.log(2));var ZZ=r=>{let e=r[0]-57344,t=r[1],n=zi[e];n&&n.isShared&&((zi.restoreStructures||(zi.restoreStructures=[]))[e]=n),zi[e]=t,t.read=VZ(t);let a={};if(bn.keyMap)for(let i=2,s=r.length;iEs?Es[0].slice(Es.position0,Es.position0+=r):new cx(r,14);Li[15]=r=>Es?Es[1].slice(Es.position1,Es.position1+=r):new cx(r,15);var _fr={Error,RegExp};Li[27]=r=>(_fr[r[0]]||Error)(r[1],r[2]);var uGe=r=>{if(Lt[yt++]!=132)throw new Error("Packed values structure must be followed by a 4 element array");let e=r();return Ou=Ou?e.concat(Ou.slice(e.length)):e,Ou.prefixes=r(),Ou.suffixes=r(),r()};uGe.handlesRead=!0;Li[51]=uGe;Li[FHe]=r=>{if(!Ou)if(bn.getShared)BJ();else return new cx(r,FHe);if(typeof r=="number")return Ou[16+(r>=0?2*r:-2*r-1)];throw new Error("No support for non-integer packed references yet")};Li[25]=r=>stringRefs[r];Li[256]=r=>{stringRefs=[];try{return r()}finally{stringRefs=null}};Li[256].handlesRead=!0;Li[28]=r=>{Tp||(Tp=new Map,Tp.id=0);let e=Tp.id++,t=Lt[yt],n;t>>5==4?n=[]:n={};let a={target:n};Tp.set(e,a);let i=r();return a.used?Object.assign(n,i):(a.target=i,i)};Li[28].handlesRead=!0;Li[29]=r=>{let e=Tp.get(r);return e.used=!0,e.target};Li[258]=r=>new Set(r);(Li[259]=r=>(bn.mapsAsObjects&&(bn.mapsAsObjects=!1,R_=!0),r())).handlesRead=!0;function $w(r,e){return typeof r=="string"?r+e:r instanceof Array?r.concat(e):Object.assign({},r,e)}function Bv(){if(!Ou)if(bn.getShared)BJ();else throw new Error("No packed values available");return Ou}var Cfr=1399353956;zZ.push((r,e)=>{if(r>=225&&r<=255)return $w(Bv().prefixes[r-224],e);if(r>=28704&&r<=32767)return $w(Bv().prefixes[r-28672],e);if(r>=1879052288&&r<=2147483647)return $w(Bv().prefixes[r-1879048192],e);if(r>=216&&r<=223)return $w(e,Bv().suffixes[r-216]);if(r>=27647&&r<=28671)return $w(e,Bv().suffixes[r-27639]);if(r>=1811940352&&r<=1879048191)return $w(e,Bv().suffixes[r-1811939328]);if(r==Cfr)return{packedValues:Ou,structures:zi.slice(0),version:e};if(r==55799)return e});var Efr=new Uint8Array(new Uint16Array([1]).buffer)[0]==1,zHe=[Uint8Array],kfr=[64];for(let r=0;r{if(!r)throw new Error("Could not find typed array for code "+e);return new r(Uint8Array.prototype.slice.call(s,0).buffer)}:s=>{if(!r)throw new Error("Could not find typed array for code "+e);let c=new DataView(s.buffer,s.byteOffset,s.byteLength),l=s.length>>i,d=new r(l),f=c[t];for(let w=0;w23)switch(r){case 24:r=Lt[yt++];break;case 25:r=Vc.getUint16(yt),yt+=2;break;case 26:r=Vc.getUint32(yt),yt+=4;break}return r}function BJ(){if(bn.getShared){let r=lGe(()=>(Lt=null,bn.getShared()))||{},e=r.structures||[];bn.sharedVersion=r.version,Ou=bn.sharedValues=r.packedValues,zi===!0?bn.structures=zi=e:zi.splice.apply(zi,[0,e.length].concat(e))}}function lGe(r){let e=Uv,t=yt,n=eR,a=G_,i=$7,s=Tp,c=Es,l=new Uint8Array(Lt.slice(0,Uv)),d=zi,f=bn,w=HZ,E=r();return Uv=e,yt=t,eR=n,G_=a,$7=i,Tp=s,Es=c,Lt=l,HZ=w,zi=d,bn=f,Vc=new DataView(Lt.buffer,Lt.byteOffset,Lt.byteLength),E}function dGe(){Lt=null,Tp=null,zi=null}var pGe=new Array(147);for(let r=0;r<256;r++)pGe[r]=Number("1e"+Math.floor(45.15-r*.30103));var Mfr=new ox({useRecords:!1}),Ifr=Mfr.decode;function Pfr(r,e){return qJ(r,e.abis)}function Rfr(r,e){return qJ(r.abi,[e])}function qJ(r,e){let t=ux(r),n=e.flatMap(i=>ux(i));return t.filter(i=>n.find(c=>c.name===i.name&&c.inputs.length===i.inputs.length&&c.inputs.every((l,d)=>l.type==="tuple"||l.type==="tuple[]"?l.type===i.inputs[d].type&&l.components?.every((f,w)=>f.type===i.inputs[d].components?.[w]?.type):l.type===i.inputs[d].type))!==void 0).length===n.length}async function hGe(r,e){let t=await lx(r,e);return DJ(t.abi)}async function fGe(r,e){let t=await lx(r,e);return ux(t.abi,t.metadata)}function mGe(r,e,t){return e?.output?.userdoc?.[t]?.[Object.keys(e?.output?.userdoc[t]||{}).find(n=>n.includes(r||"unknown"))||""]?.notice||e?.output?.devdoc?.[t]?.[Object.keys(e?.output?.devdoc[t]||{}).find(n=>n.includes(r||"unknown"))||""]?.details}function DJ(r){for(let e of r)if(e.type==="constructor")return e.inputs||[];return[]}function yGe(r,e){for(let t of r)if(t.type==="function"&&t.name===e)return t.inputs||[];return[]}function ux(r,e){let t=(r||[]).filter(a=>a.type==="function"),n=[];for(let a of t){let i=mGe(a.name,e,"methods"),s=a.inputs?.map(w=>`${w.name||"key"}: ${JZ(w)}`)?.join(", ")||"",c=s?`, ${s}`:"",l=a.outputs?.map(w=>JZ(w,!0))?.join(", "),d=l?`: Promise<${l}>`:": Promise",f=`contract.call("${a.name}"${c})${d}`;n.push({inputs:a.inputs||[],outputs:a.outputs||[],name:a.name||"unknown",signature:f,stateMutability:a.stateMutability||"",comment:i})}return n}function gGe(r,e){let t=(r||[]).filter(a=>a.type==="event"),n=[];for(let a of t){let i=mGe(a.name,e,"events");n.push({inputs:a.inputs||[],outputs:a.outputs||[],name:a.name||"unknown",comment:i})}return n}function JZ(r){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,n=r.type,a=!1;return n.endsWith("[]")&&(a=!0,n=n.slice(0,-2)),n.startsWith("bytes")&&(n="BytesLike"),(n.startsWith("uint")||n.startsWith("int"))&&(n=e?"BigNumber":"BigNumberish"),n.startsWith("bool")&&(n="boolean"),n==="address"&&(n="string"),n==="tuple"&&r.components&&(n=`{ ${r.components.map(i=>JZ(i,!1,!0)).join(", ")} }`),a&&(n+="[]"),t&&(n=`${r.name}: ${n}`),n}function vGe(r){if(r.startsWith("0x363d3d373d3d3d363d73"))return`0x${r.slice(22,62)}`;if(r.startsWith("0x36603057343d5230"))return`0x${r.slice(122,162)}`;if(r.startsWith("0x3d3d3d3d363d3d37363d73"))return`0x${r.slice(24,64)}`;if(r.startsWith("0x366000600037611000600036600073"))return`0x${r.slice(32,72)}`}async function Z_(r,e){let t=await e.getCode(r);if(t==="0x"){let n=await e.getNetwork();throw new Error(`Contract at ${r} does not exist on chain '${n.name}' (chainId: ${n.chainId})`)}try{let n=vGe(t);if(n)return await Z_(n,e)}catch{}try{let n=await e.getStorageAt(r,oe.BigNumber.from("0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc")),a=oe.ethers.utils.hexStripZeros(n);if(a!=="0x")return await Z_(a,e)}catch{}return await bGe(t)}function bGe(r){let e=Nfr(r),t=e[e.length-2]*256+e[e.length-1],n=Uint8Array.from(e.slice(e.length-2-t,-2)),a=Ifr(n);if("ipfs"in a&&a.ipfs)try{return`ipfs://${shr.default.encode(a.ipfs)}`}catch(i){console.warn("feature-detection ipfs cbor failed",i)}}function Nfr(r){if(r=r.toString(16),r.startsWith("0x")||(r=`0x${r}`),!Ofr(r))throw new Error(`Given value "${r}" is not a valid hex string.`);r=r.replace(/^0x/i,"");let e=[];for(let t=0;t1&&arguments[1]!==void 0?arguments[1]:mfr,t={};for(let n in e){let a=e[n],i=Pfr(r,a),s=nC(r,a.features);t[n]={...a,features:s,enabled:i}}return t}function WJ(r,e){if(!!r)for(let t in r){let n=r[t];n.enabled&&e.push(n),WJ(n.features,e)}}function Lfr(r){let e=[];return WJ(nC(r),e),e}function Bfr(r){let e=[];return WJ(nC(r),e),e.map(t=>t.name)}function jJ(r,e){let t=nC(r);return wGe(t,e)}function Tr(r,e){if(!r)throw new pm(e);return r}function Ft(r,e){return jJ(kp.parse(r.abi),e)}function wGe(r,e){let t=Object.keys(r);if(!t.includes(e)){let a=!1;for(let i of t){let s=r[i];if(a=wGe(s.features,e),a)break}return a}return r[e].enabled}function gc(r,e){return r in e.readContract.functions}$.ListingType=void 0;(function(r){r[r.Direct=0]="Direct",r[r.Auction=1]="Auction"})($.ListingType||($.ListingType={}));$.Status=void 0;(function(r){r[r.UNSET=0]="UNSET",r[r.Created=1]="Created",r[r.Completed=2]="Completed",r[r.Cancelled=3]="Cancelled",r[r.Active=4]="Active",r[r.Expired=5]="Expired"})($.Status||($.Status={}));$.ProposalState=void 0;(function(r){r[r.Pending=0]="Pending",r[r.Active=1]="Active",r[r.Canceled=2]="Canceled",r[r.Defeated=3]="Defeated",r[r.Succeeded=4]="Succeeded",r[r.Queued=5]="Queued",r[r.Expired=6]="Expired",r[r.Executed=7]="Executed"})($.ProposalState||($.ProposalState={}));$.VoteType=void 0;(function(r){r[r.Against=0]="Against",r[r.For=1]="For",r[r.Abstain=2]="Abstain"})($.VoteType||($.VoteType={}));$.ClaimEligibility=void 0;(function(r){r.NotEnoughSupply="There is not enough supply to claim.",r.AddressNotAllowed="This address is not on the allowlist.",r.WaitBeforeNextClaimTransaction="Not enough time since last claim transaction. Please wait.",r.AlreadyClaimed="You have already claimed the token.",r.NotEnoughTokens="There are not enough tokens in the wallet to pay for the claim.",r.NoActiveClaimPhase="There is no active claim phase at the moment. Please check back in later.",r.NoClaimConditionSet="There is no claim condition set.",r.NoWallet="No wallet connected.",r.Unknown="No claim conditions found."})($.ClaimEligibility||($.ClaimEligibility={}));var J_=class{constructor(e){le._defineProperty(this,"contractWrapper",void 0),this.contractWrapper=e}async gasCostOf(e,t){let n=await this.contractWrapper.getPreferredGasPrice(),a=await this.contractWrapper.estimateGas(e,t);return oe.ethers.utils.formatEther(a.mul(n))}async gasLimitOf(e,t){return this.contractWrapper.estimateGas(e,t)}async currentGasPriceInGwei(){let e=await this.contractWrapper.getProvider().getGasPrice();return oe.ethers.utils.formatUnits(e,"gwei")}},xd=class{static make(e){return new xd(e)}constructor(e){le._defineProperty(this,"contractWrapper",void 0),le._defineProperty(this,"functionName",void 0),le._defineProperty(this,"args",void 0),le._defineProperty(this,"overrides",void 0),le._defineProperty(this,"encoder",void 0),le._defineProperty(this,"estimator",void 0),this.contractWrapper=e.contractWrapper,this.functionName=e.functionName,this.args=e.args||[],this.overrides=e.overrides,this.encoder=new ix(this.contractWrapper),this.estimator=new J_(this.contractWrapper)}overrideGasLimit(e){return this.overrides={...this.overrides,gasLimit:e},this}overrideGasPrice(e){return this.overrides={...this.overrides,gasPrice:e},this}overrideNonce(e){return this.overrides={...this.overrides,nonce:e},this}overrideValue(e){return this.overrides={...this.overrides,value:e},this}async estimateGasLimit(){return await this.estimator.gasLimitOf(this.functionName,[...this.args,this.overrides||{}])}async estimateGasCostInEther(){return await this.estimator.gasCostOf(this.functionName,[...this.args,this.overrides||{}])}async encodeFunctionData(){return this.encoder.encode(this.functionName,this.args)}async submit(){return await this.contractWrapper.sendTransactionByFunction(this.functionName,this.args,this.overrides||{})}async execute(){return{receipt:await this.contractWrapper.sendTransaction(this.functionName,this.args,this.overrides||{})}}},K_=class{constructor(e,t,n){le._defineProperty(this,"contractWrapper",void 0),le._defineProperty(this,"metadata",void 0),le._defineProperty(this,"storage",void 0),this.storage=n,this.contractWrapper=e,this.metadata=t}async getActive(e){let t=await this.get(),n=await this.metadata.get();return await A7(t,await this.getTokenDecimals(),this.contractWrapper.getProvider(),n.merkle||{},this.storage,e?.withAllowList||!1)}async get(e){if(this.isLegacySinglePhaseDrop(this.contractWrapper)){let t=await this.contractWrapper.readContract.claimCondition();return k7(t)}else if(this.isLegacyMultiPhaseDrop(this.contractWrapper)){let t=e!==void 0?e:await this.contractWrapper.readContract.getActiveClaimConditionId(),n=await this.contractWrapper.readContract.getClaimConditionById(t);return k7(n)}else if(this.isNewSinglePhaseDrop(this.contractWrapper)){let t=await this.contractWrapper.readContract.claimCondition();return S7(t)}else if(this.isNewMultiphaseDrop(this.contractWrapper)){let t=e!==void 0?e:await this.contractWrapper.readContract.getActiveClaimConditionId(),n=await this.contractWrapper.readContract.getClaimConditionById(t);return S7(n)}else throw new Error("Contract does not support claim conditions")}async getAll(e){if(this.isLegacyMultiPhaseDrop(this.contractWrapper)||this.isNewMultiphaseDrop(this.contractWrapper)){let t=await this.contractWrapper.readContract.claimCondition(),n=t.currentStartId.toNumber(),a=t.count.toNumber(),i=[];for(let l=n;lA7(l,c,this.contractWrapper.getProvider(),s.merkle,this.storage,e?.withAllowList||!1)))}else return[await this.getActive(e)]}async canClaim(e,t){return(await this.getClaimIneligibilityReasons(e,t)).length===0}async getClaimIneligibilityReasons(e,t){let n=[],a,i,s=await this.getTokenDecimals(),c=oe.ethers.utils.parseUnits(le.AmountSchema.parse(e),s);if(t===void 0)try{t=await this.contractWrapper.getSignerAddress()}catch(w){console.warn("failed to get signer address",w)}if(!t)return[$.ClaimEligibility.NoWallet];try{i=await this.getActive()}catch(w){return q_(w,"!CONDITION")||q_(w,"no active mint condition")?(n.push($.ClaimEligibility.NoClaimConditionSet),n):(console.warn("failed to get active claim condition",w),n.push($.ClaimEligibility.Unknown),n)}i.availableSupply!=="unlimited"&&oe.ethers.utils.parseUnits(i.availableSupply,s).lt(c)&&n.push($.ClaimEligibility.NotEnoughSupply);let d=oe.ethers.utils.stripZeros(i.merkleRootHash).length>0,f=null;if(d){if(f=await this.getClaimerProofs(t),!f&&(this.isLegacySinglePhaseDrop(this.contractWrapper)||this.isLegacyMultiPhaseDrop(this.contractWrapper)))return n.push($.ClaimEligibility.AddressNotAllowed),n;if(f)try{let w=await this.prepareClaim(e,!1,s,t),E;if(this.isLegacyMultiPhaseDrop(this.contractWrapper)){if(a=await this.contractWrapper.readContract.getActiveClaimConditionId(),[E]=await this.contractWrapper.readContract.verifyClaimMerkleProof(a,t,e,w.proofs,w.maxClaimable),!E)return n.push($.ClaimEligibility.AddressNotAllowed),n}else if(this.isLegacySinglePhaseDrop(this.contractWrapper)){if([E]=await this.contractWrapper.readContract.verifyClaimMerkleProof(t,e,{proof:w.proofs,maxQuantityInAllowlist:w.maxClaimable}),!E)return n.push($.ClaimEligibility.AddressNotAllowed),n}else if(this.isNewSinglePhaseDrop(this.contractWrapper)){if(await this.contractWrapper.readContract.verifyClaim(t,e,w.currencyAddress,w.price,{proof:w.proofs,quantityLimitPerWallet:w.maxClaimable,currency:w.currencyAddressInProof,pricePerToken:w.priceInProof}),lm(i.maxClaimablePerWallet,s).eq(0)&&w.maxClaimable===oe.ethers.constants.MaxUint256||w.maxClaimable===oe.BigNumber.from(0))return n.push($.ClaimEligibility.AddressNotAllowed),n}else if(this.isNewMultiphaseDrop(this.contractWrapper)&&(a=await this.contractWrapper.readContract.getActiveClaimConditionId(),await this.contractWrapper.readContract.verifyClaim(a,t,e,w.currencyAddress,w.price,{proof:w.proofs,quantityLimitPerWallet:w.maxClaimable,currency:w.currencyAddressInProof,pricePerToken:w.priceInProof}),lm(i.maxClaimablePerWallet,s).eq(0)&&w.maxClaimable===oe.ethers.constants.MaxUint256||w.maxClaimable===oe.BigNumber.from(0)))return n.push($.ClaimEligibility.AddressNotAllowed),n}catch(w){return console.warn("Merkle proof verification failed:","reason"in w?w.reason:w),n.push($.ClaimEligibility.AddressNotAllowed),n}}if((this.isNewSinglePhaseDrop(this.contractWrapper)||this.isNewMultiphaseDrop(this.contractWrapper))&&(!d||d&&!f)&&lm(i.maxClaimablePerWallet,s).eq(0))return n.push($.ClaimEligibility.AddressNotAllowed),n;if(this.isLegacySinglePhaseDrop(this.contractWrapper)||this.isLegacyMultiPhaseDrop(this.contractWrapper)){let[w,E]=[oe.BigNumber.from(0),oe.BigNumber.from(0)];this.isLegacyMultiPhaseDrop(this.contractWrapper)?(a=await this.contractWrapper.readContract.getActiveClaimConditionId(),[w,E]=await this.contractWrapper.readContract.getClaimTimestamp(a,t)):this.isLegacySinglePhaseDrop(this.contractWrapper)&&([w,E]=await this.contractWrapper.readContract.getClaimTimestamp(t));let k=oe.BigNumber.from(Date.now()).div(1e3);w.gt(0)&&k.lt(E)&&(E.eq(oe.constants.MaxUint256)?n.push($.ClaimEligibility.AlreadyClaimed):n.push($.ClaimEligibility.WaitBeforeNextClaimTransaction))}if(i.price.gt(0)&&$Ve()){let w=i.price.mul(oe.BigNumber.from(e)),E=this.contractWrapper.getProvider();Gh(i.currencyAddress)?(await E.getBalance(t)).lt(w)&&n.push($.ClaimEligibility.NotEnoughTokens):(await new ks(E,i.currencyAddress,Lu.default,{}).readContract.balanceOf(t)).lt(w)&&n.push($.ClaimEligibility.NotEnoughTokens)}return n}async getClaimerProofs(e,t){let a=(await this.get(t)).merkleRoot;if(oe.ethers.utils.stripZeros(a).length>0){let s=await this.metadata.get();return await RR(e,a.toString(),s.merkle,this.contractWrapper.getProvider(),this.storage,this.getSnapshotFormatVersion())}else return null}async set(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=e;if(this.isLegacySinglePhaseDrop(this.contractWrapper)||this.isNewSinglePhaseDrop(this.contractWrapper)){if(t=!0,e.length===0)n=[{startTime:new Date(0),currencyAddress:oe.ethers.constants.AddressZero,price:0,maxClaimableSupply:0,maxClaimablePerWallet:0,waitInSeconds:0,merkleRootHash:oe.utils.hexZeroPad([0],32),snapshot:[]}];else if(e.length>1)throw new Error("Single phase drop contract cannot have multiple claim conditions, only one is allowed")}(this.isNewSinglePhaseDrop(this.contractWrapper)||this.isNewMultiphaseDrop(this.contractWrapper))&&n.forEach(f=>{if(f.snapshot&&f.snapshot.length>0&&(f.maxClaimablePerWallet===void 0||f.maxClaimablePerWallet==="unlimited"))throw new Error(`maxClaimablePerWallet must be set to a specific value when an allowlist is set. + `) + ).join(`, +`) + + ` +`, + O = `${C.name}(${k})`, + D = + e.transactionHash || + e.transaction?.hash || + e.receipt?.transactionHash, + W = Qje(e), + H, + j; + try { + let V = await cb( + this.readContract.address, + this.getProvider(), + a9(this, r9) + ); + V.name && (j = V.name), + V.metadata.sources && (H = await LG(V, a9(this, r9))); + } catch {} + return new f9({ + reason: W, + from: c, + to: l, + method: O, + data: d, + network: s, + rpcUrl: w, + value: m, + hash: D, + contractName: j, + sources: H, + }); + } + async sendGaslessTransaction(e) { + let t = + arguments.length > 1 && arguments[1] !== void 0 + ? arguments[1] + : [], + n = arguments.length > 2 ? arguments[2] : void 0, + a = this.getSigner(); + pr.default( + a, + "Cannot execute gasless transaction without valid signer" + ); + let i = await this.getChainID(), + s = await this.getSignerAddress(), + c = this.writeContract.address, + l = n?.value || 0; + if (se.BigNumber.from(l).gt(0)) + throw new Error( + "Cannot send native token value with gasless transaction" + ); + let d = this.writeContract.interface.encodeFunctionData(e, t), + m = se.BigNumber.from(0); + try { + m = (await this.readContract.estimateGas[e](...t)).mul(2); + } catch {} + m.lt(1e5) && (m = se.BigNumber.from(5e5)), + n.gasLimit && + se.BigNumber.from(n.gasLimit).gt(m) && + (m = se.BigNumber.from(n.gasLimit)); + let w = { + from: s, + to: c, + data: d, + chainId: i, + gasLimit: m, + functionName: e.toString(), + functionArgs: t, + callOverrides: n, + }; + return await this.defaultGaslessSendFunction(w); + } + async signTypedData(e, t, n, a) { + this.emit(X.EventType.Signature, { + status: "submitted", + message: a, + signature: "", + }); + let { signature: i } = await m9(e, t, n, a); + return ( + this.emit(X.EventType.Signature, { + status: "completed", + message: a, + signature: i, + }), + i + ); + } + parseLogs(e, t) { + if (!t || t.length === 0) return []; + let n = this.writeContract.interface.getEventTopic(e); + return t + .filter((i) => i.topics.indexOf(n) >= 0) + .map((i) => this.writeContract.interface.parseLog(i)); + } + async defaultGaslessSendFunction(e) { + return this.options.gasless && "biconomy" in this.options.gasless + ? this.biconomySendFunction(e) + : this.defenderSendFunction(e); + } + async biconomySendFunction(e) { + pr.default( + this.options.gasless && "biconomy" in this.options.gasless, + "calling biconomySendFunction without biconomy" + ); + let t = this.getSigner(), + n = this.getProvider(); + pr.default(t && n, "signer and provider must be set"); + let a = new se.ethers.Contract( + i9(e.chainId, "biconomyForwarder"), + Rpr, + n + ), + i = 0, + s = await Eze(a, "getNonce", [e.from, i]), + c = { + from: e.from, + to: e.to, + token: se.ethers.constants.AddressZero, + txGas: e.gasLimit.toNumber(), + tokenGasPrice: "0", + batchId: i, + batchNonce: s.toNumber(), + deadline: Math.floor( + Date.now() / 1e3 + + ((this.options?.gasless && + "biconomy" in this.options.gasless && + this.options.gasless.biconomy?.deadlineSeconds) || + 3600) + ), + data: e.data, + }, + l = se.ethers.utils.arrayify( + se.ethers.utils.solidityKeccak256( + [ + "address", + "address", + "address", + "uint256", + "uint256", + "uint256", + "uint256", + "uint256", + "bytes32", + ], + [ + c.from, + c.to, + c.token, + c.txGas, + c.tokenGasPrice, + c.batchId, + c.batchNonce, + c.deadline, + se.ethers.utils.keccak256(c.data), + ] + ) + ); + this.emit(X.EventType.Signature, { + status: "submitted", + message: l, + signature: "", + }); + let d = await t.signMessage(l); + this.emit(X.EventType.Signature, { + status: "completed", + message: l, + signature: d, + }); + let m = await aV.default( + "https://api.biconomy.io/api/v2/meta-tx/native", + { + method: "POST", + body: JSON.stringify({ + from: e.from, + apiId: this.options.gasless.biconomy.apiId, + params: [c, d], + to: e.to, + gasLimit: e.gasLimit.toHexString(), + }), + headers: { + "x-api-key": this.options.gasless.biconomy.apiKey, + "Content-Type": "application/json;charset=utf-8", + }, + } + ); + if (m.ok) { + let w = await m.json(); + if (!w.txHash) + throw new Error(`relay transaction failed: ${w.log}`); + return w.txHash; + } + throw new Error( + `relay transaction failed with status: ${m.status} (${m.statusText})` + ); + } + async defenderSendFunction(e) { + pr.default( + this.options.gasless && "openzeppelin" in this.options.gasless, + "calling openzeppelin gasless transaction without openzeppelin config in the SDK options" + ); + let t = this.getSigner(), + n = this.getProvider(); + pr.default(t, "provider is not set"), + pr.default(n, "provider is not set"); + let a = + this.options.gasless.openzeppelin.relayerForwarderAddress || + (this.options.gasless.openzeppelin.useEOAForwarder + ? o2[e.chainId].openzeppelinForwarderEOA + : o2[e.chainId].openzeppelinForwarder), + i = new se.Contract(a, Odr.default, n), + s = await Eze(i, "getNonce", [e.from]), + c, + l, + d; + this.options.gasless.experimentalChainlessSupport + ? ((c = { + name: "GSNv2 Forwarder", + version: "0.0.1", + verifyingContract: a, + }), + (l = { ForwardRequest: Ppr }), + (d = { + from: e.from, + to: e.to, + value: se.BigNumber.from(0).toString(), + gas: se.BigNumber.from(e.gasLimit).toString(), + nonce: se.BigNumber.from(s).toString(), + data: e.data, + chainid: se.BigNumber.from(e.chainId).toString(), + })) + : ((c = { + name: "GSNv2 Forwarder", + version: "0.0.1", + chainId: e.chainId, + verifyingContract: a, + }), + (l = { ForwardRequest: Mpr }), + (d = { + from: e.from, + to: e.to, + value: se.BigNumber.from(0).toString(), + gas: se.BigNumber.from(e.gasLimit).toString(), + nonce: se.BigNumber.from(s).toString(), + data: e.data, + })); + let m; + if ( + (this.emit(X.EventType.Signature, { + status: "submitted", + message: d, + signature: "", + }), + e.functionName === "approve" && e.functionArgs.length === 2) + ) { + let k = e.functionArgs[0], + O = e.functionArgs[1], + { message: D, signature: W } = await Kpr( + t, + this.writeContract.address, + e.from, + k, + O + ), + { r: H, s: j, v: V } = se.ethers.utils.splitSignature(W); + (d = { + to: this.readContract.address, + owner: D.owner, + spender: D.spender, + value: se.BigNumber.from(D.value).toString(), + nonce: se.BigNumber.from(D.nonce).toString(), + deadline: se.BigNumber.from(D.deadline).toString(), + r: H, + s: j, + v: V, + }), + (m = W); + } else { + let { signature: k } = await m9(t, c, l, d); + m = k; + } + let w = "forward"; + d?.owner && (w = "permit"); + let C = JSON.stringify({ + request: d, + signature: m, + forwarderAddress: a, + type: w, + }); + this.emit(X.EventType.Signature, { + status: "completed", + message: d, + signature: m, + }); + let I = await aV.default( + this.options.gasless.openzeppelin.relayerUrl, + { method: "POST", body: C } + ); + if (I.ok) { + let k = await I.json(); + if (!k.result) + throw new Error(`Relay transaction failed: ${k.message}`); + return JSON.parse(k.result).txHash; + } + throw new Error( + `relay transaction failed with status: ${I.status} (${I.statusText})` + ); + } + }; + function Ih(r) { + return ( + r.toLowerCase() === Zl || r.toLowerCase() === se.constants.AddressZero + ); + } + function vG(r) { + return Ih(r) ? Zl : r; + } + async function oc(r, e, t) { + let n = await b2(r, t); + return se.utils.parseUnits(le.AmountSchema.parse(e), n.decimals); + } + async function b2(r, e) { + if (Ih(e)) { + let t = await r.getNetwork(), + n = s9(t.chainId); + return { name: n.name, symbol: n.symbol, decimals: n.decimals }; + } else { + let t = new se.Contract(e, Ldr.default, r), + [n, a, i] = await Promise.all([t.name(), t.symbol(), t.decimals()]); + return { name: n, symbol: a, decimals: i }; + } + } + async function tp(r, e, t) { + let n = await b2(r, e); + return { + ...n, + value: se.BigNumber.from(t), + displayValue: se.utils.formatUnits(t, n.decimals), + }; + } + async function x0(r, e, t, n) { + if (Ih(t)) n.value = e; + else { + let a = r.getSigner(), + i = r.getProvider(), + s = new ms(a || i, t, vu.default, r.options), + c = await r.getSignerAddress(), + l = r.readContract.address; + return ( + (await s.readContract.allowance(c, l)).lt(e) && + (await s.sendTransaction("approve", [l, e])), + n + ); + } + } + async function tKe(r, e, t, n, a) { + let i = r.getSigner(), + s = r.getProvider(), + c = new ms(i || s, e, vu.default, r.options), + l = await r.getSignerAddress(), + d = r.readContract.address, + m = await c.readContract.allowance(l, d), + w = se.BigNumber.from(t) + .mul(se.BigNumber.from(n)) + .div(se.ethers.utils.parseUnits("1", a)); + m.lt(w) && (await c.sendTransaction("approve", [d, m.add(w)])); + } + async function Gpr(r, e, t) { + let n = r.getProvider(), + a = new ms(n, e, vu.default, {}), + i = await r.getSignerAddress(), + s = r.readContract.address; + return (await a.readContract.allowance(i, s)).gte(t); + } + async function rKe(r, e, t, n, a, i, s, c, l) { + let d = gh(t.maxClaimablePerWallet, a), + m = [se.utils.hexZeroPad([0], 32)], + w = t.price, + C = t.currencyAddress; + try { + if (!t.merkleRootHash.toString().startsWith(se.constants.AddressZero)) { + let D = await ER( + r, + t.merkleRootHash.toString(), + await n(), + i.getProvider(), + s, + l + ); + if (D) + (m = D.proof), + (d = + D.maxClaimable === "unlimited" + ? se.ethers.constants.MaxUint256 + : se.ethers.utils.parseUnits(D.maxClaimable, a)), + (w = + D.price === void 0 || D.price === "unlimited" + ? se.ethers.constants.MaxUint256 + : await oc( + i.getProvider(), + D.price, + D.currencyAddress || se.ethers.constants.AddressZero + )), + (C = D.currencyAddress || se.ethers.constants.AddressZero); + else if (l === Uf.V1) + throw new Error("No claim found for this address"); + } + } catch (D) { + if (D?.message === "No claim found for this address") throw D; + console.warn( + "failed to check claim condition merkle root hash, continuing anyways", + D + ); + } + let I = (await i.getCallOverrides()) || {}, + k = + w.toString() !== se.ethers.constants.MaxUint256.toString() + ? w + : t.price, + O = C !== se.ethers.constants.AddressZero ? C : t.currencyAddress; + return ( + k.gt(0) && + (Ih(O) + ? (I.value = se.BigNumber.from(k) + .mul(e) + .div(se.ethers.utils.parseUnits("1", a))) + : c && (await tKe(i, O, k, e, a))), + { + overrides: I, + proofs: m, + maxClaimable: d, + price: k, + currencyAddress: O, + priceInProof: w, + currencyAddressInProof: C, + } + ); + } + async function Ypr(r, e, t) { + if (!e) return null; + let n = e[r]; + if (n) { + let a = await t.downloadJSON(n); + if (a.isShardedMerkleTree && a.merkleRoot === r) + return (await yu.fromUri(n, t))?.getAllEntries() || null; + { + let i = hG.parse(a); + if (r === i.merkleRoot) + return i.claims.map((s) => ({ + address: s.address, + maxClaimable: s.maxClaimable, + price: s.price, + currencyAddress: s.currencyAddress, + })); + } + } + return null; + } + async function ER(r, e, t, n, a, i) { + if (!t) return null; + let s = t[e]; + if (s) { + let c = await a.downloadJSON(s); + if (c.isShardedMerkleTree && c.merkleRoot === e) + return await ( + await yu.fromShardedMerkleTreeInfo(c, a) + ).getProof(r, n, i); + let l = hG.parse(c); + if (e === l.merkleRoot) + return ( + l.claims.find((d) => d.address.toLowerCase() === r.toLowerCase()) || + null + ); + } + return null; + } + async function nKe(r, e, t) { + if (r >= t.length) + throw Error( + `Index out of bounds - got index: ${r} with ${t.length} conditions` + ); + let n = t[r].currencyMetadata.decimals, + a = t[r].price, + i = se.ethers.utils.formatUnits(a, n), + s = t6.parse({ ...t[r], price: i, ...e }), + c = fG.parse({ ...s, price: a }); + return t.map((l, d) => { + let m; + d === r ? (m = c) : (m = l); + let w = se.ethers.utils.formatUnits(m.price, n); + return { ...m, price: w }; + }); + } + async function $pr(r, e, t, n, a) { + let i = []; + return { + inputsWithSnapshots: await Promise.all( + r.map(async (c) => { + if (c.snapshot && c.snapshot.length > 0) { + let l = await sKe(c.snapshot, e, t, n, a); + i.push(l), (c.merkleRootHash = l.merkleRoot); + } else c.merkleRootHash = se.utils.hexZeroPad([0], 32); + return c; + }) + ), + snapshotInfos: i, + }; + } + function Jpr(r, e) { + let t = se.BigNumber.from(r), + n = se.BigNumber.from(e); + return t.eq(n) ? 0 : t.gt(n) ? 1 : -1; + } + async function aKe(r, e, t, n, a) { + let { inputsWithSnapshots: i, snapshotInfos: s } = await $pr( + r, + e, + t, + n, + a + ), + c = wje.parse(i), + l = (await Promise.all(c.map((d) => Zpr(d, e, t, n)))).sort((d, m) => + Jpr(d.startTimestamp, m.startTimestamp) + ); + return { snapshotInfos: s, sortedConditions: l }; + } + async function Zpr(r, e, t, n) { + let a = + r.currencyAddress === se.constants.AddressZero + ? Zl + : r.currencyAddress, + i = gh(r.maxClaimableSupply, e), + s = gh(r.maxClaimablePerWallet, e), + c; + return ( + r.metadata && + (typeof r.metadata == "string" + ? (c = r.metadata) + : (c = await n.upload(r.metadata))), + { + startTimestamp: r.startTime, + maxClaimableSupply: i, + supplyClaimed: 0, + maxClaimablePerWallet: s, + pricePerToken: await oc(t, r.price, a), + currency: a, + merkleRoot: r.merkleRootHash.toString(), + waitTimeInSecondsBetweenClaims: r.waitInSeconds || 0, + metadata: c, + } + ); + } + function y9(r) { + return { + startTimestamp: r.startTimestamp, + maxClaimableSupply: r.maxClaimableSupply, + supplyClaimed: r.supplyClaimed, + merkleRoot: r.merkleRoot, + pricePerToken: r.pricePerToken, + currency: r.currency, + quantityLimitPerTransaction: r.maxClaimablePerWallet, + waitTimeInSecondsBetweenClaims: r.waitTimeInSecondsBetweenClaims || 0, + }; + } + function g9(r) { + return { + startTimestamp: r.startTimestamp, + maxClaimableSupply: r.maxClaimableSupply, + supplyClaimed: r.supplyClaimed, + merkleRoot: r.merkleRoot, + pricePerToken: r.pricePerToken, + currency: r.currency, + quantityLimitPerWallet: r.maxClaimablePerWallet, + metadata: r.metadata || "", + }; + } + function b9(r) { + return { + startTimestamp: r.startTimestamp, + maxClaimableSupply: r.maxClaimableSupply, + supplyClaimed: r.supplyClaimed, + merkleRoot: r.merkleRoot.toString(), + pricePerToken: r.pricePerToken, + currency: r.currency, + maxClaimablePerWallet: r.quantityLimitPerTransaction, + waitTimeInSecondsBetweenClaims: r.waitTimeInSecondsBetweenClaims, + }; + } + function v9(r) { + return { + startTimestamp: r.startTimestamp, + maxClaimableSupply: r.maxClaimableSupply, + supplyClaimed: r.supplyClaimed, + merkleRoot: r.merkleRoot.toString(), + pricePerToken: r.pricePerToken, + currency: r.currency, + maxClaimablePerWallet: r.quantityLimitPerWallet, + waitTimeInSecondsBetweenClaims: 0, + metadata: r.metadata, + }; + } + async function w9(r, e, t, n, a, i) { + let s = await tp(t, r.currency, r.pricePerToken), + c = M3(r.maxClaimableSupply, e), + l = M3(r.maxClaimablePerWallet, e), + d = M3(se.BigNumber.from(r.maxClaimableSupply).sub(r.supplyClaimed), e), + m = M3(r.supplyClaimed, e), + w; + return ( + r.metadata && (w = await a.downloadJSON(r.metadata)), + fG.parse({ + startTime: r.startTimestamp, + maxClaimableSupply: c, + maxClaimablePerWallet: l, + currentMintSupply: m, + availableSupply: d, + waitInSeconds: r.waitTimeInSecondsBetweenClaims?.toString(), + price: se.BigNumber.from(r.pricePerToken), + currency: r.currency, + currencyAddress: r.currency, + currencyMetadata: s, + merkleRootHash: r.merkleRoot, + snapshot: i ? await Ypr(r.merkleRoot, n, a) : void 0, + metadata: w, + }) + ); + } + function M3(r, e) { + return r.toString() === se.ethers.constants.MaxUint256.toString() + ? "unlimited" + : se.ethers.utils.formatUnits(r, e); + } + function gh(r, e) { + return r === "unlimited" + ? se.ethers.constants.MaxUint256 + : se.ethers.utils.parseUnits(r, e); + } + async function iKe(r, e, t, n, a) { + let i = {}, + s = n || Zl, + l = (await oc(r.getProvider(), e, s)).mul(t); + return ( + l.gt(0) && + (s === Zl + ? (i = { value: l }) + : s !== Zl && a && (await tKe(r, s, l, t, 0))), + i + ); + } + var Qpr = 2, + Uf; + (function (r) { + (r[(r.V1 = 1)] = "V1"), (r[(r.V2 = 2)] = "V2"); + })(Uf || (Uf = {})); + var yu = class { + constructor(e, t, n, a, i) { + le._defineProperty(this, "shardNybbles", void 0), + le._defineProperty(this, "shards", void 0), + le._defineProperty(this, "trees", void 0), + le._defineProperty(this, "storage", void 0), + le._defineProperty(this, "baseUri", void 0), + le._defineProperty(this, "originalEntriesUri", void 0), + le._defineProperty(this, "tokenDecimals", void 0), + (this.storage = e), + (this.shardNybbles = a), + (this.baseUri = t), + (this.originalEntriesUri = n), + (this.tokenDecimals = i), + (this.shards = {}), + (this.trees = {}); + } + static async fromUri(e, t) { + try { + let n = await t.downloadJSON(e); + if (n.isShardedMerkleTree) return yu.fromShardedMerkleTreeInfo(n, t); + } catch { + return; + } + } + static async fromShardedMerkleTreeInfo(e, t) { + return new yu( + t, + e.baseUri, + e.originalEntriesUri, + e.shardNybbles, + e.tokenDecimals + ); + } + static hashEntry(e, t, n, a) { + switch (a) { + case Uf.V1: + return se.utils.solidityKeccak256( + ["address", "uint256"], + [e.address, gh(e.maxClaimable, t)] + ); + case Uf.V2: + return se.utils.solidityKeccak256( + ["address", "uint256", "uint256", "address"], + [ + e.address, + gh(e.maxClaimable, t), + gh(e.price || "unlimited", n), + e.currencyAddress || se.ethers.constants.AddressZero, + ] + ); + } + } + static async fetchAndCacheDecimals(e, t, n) { + if (!n) return 18; + let a = e[n]; + return a === void 0 && ((a = (await b2(t, n)).decimals), (e[n] = a)), a; + } + static async buildAndUpload(e, t, n, a, i) { + let s = + arguments.length > 5 && arguments[5] !== void 0 + ? arguments[5] + : Qpr, + c = e6.parse(e), + l = {}; + for (let j of c) { + let V = j.address.slice(2, 2 + s).toLowerCase(); + l[V] === void 0 && (l[V] = []), l[V].push(j); + } + let d = {}, + m = await Promise.all( + Object.entries(l).map(async (j) => { + let [V, te] = j; + return [ + V, + new eV.MerkleTree( + await Promise.all( + te.map(async ($) => { + let ae = await yu.fetchAndCacheDecimals( + d, + n, + $.currencyAddress + ); + return yu.hashEntry($, t, ae, i); + }) + ), + se.utils.keccak256, + { sort: !0 } + ).getHexRoot(), + ]; + }) + ), + w = Object.fromEntries(m), + C = new eV.MerkleTree(Object.values(w), se.utils.keccak256, { + sort: !0, + }), + I = []; + for (let [j, V] of Object.entries(l)) { + let te = { + proofs: C.getProof(w[j]).map(($) => "0x" + $.data.toString("hex")), + entries: V, + }; + I.push({ data: JSON.stringify(te), name: `${j}.json` }); + } + let k = await a.uploadBatch(I), + O = k[0].slice(0, k[0].lastIndexOf("/")), + D = await a.upload(c), + W = { + merkleRoot: C.getHexRoot(), + baseUri: O, + originalEntriesUri: D, + shardNybbles: s, + tokenDecimals: t, + isShardedMerkleTree: !0, + }, + H = await a.upload(W); + return { shardedMerkleInfo: W, uri: H }; + } + async getProof(e, t, n) { + let a = e.slice(2, 2 + this.shardNybbles).toLowerCase(), + i = this.shards[a], + s = {}; + if (i === void 0) + try { + i = this.shards[a] = await this.storage.downloadJSON( + `${this.baseUri}/${a}.json` + ); + let w = await Promise.all( + i.entries.map(async (C) => { + let I = await yu.fetchAndCacheDecimals(s, t, C.currencyAddress); + return yu.hashEntry(C, this.tokenDecimals, I, n); + }) + ); + this.trees[a] = new eV.MerkleTree(w, se.utils.keccak256, { + sort: !0, + }); + } catch { + return null; + } + let c = i.entries.find( + (w) => w.address.toLowerCase() === e.toLowerCase() + ); + if (!c) return null; + let l = await yu.fetchAndCacheDecimals(s, t, c.currencyAddress), + d = yu.hashEntry(c, this.tokenDecimals, l, n), + m = this.trees[a] + .getProof(d) + .map((w) => "0x" + w.data.toString("hex")); + return pG.parse({ ...c, proof: m.concat(i.proofs) }); + } + async getAllEntries() { + try { + return await this.storage.downloadJSON(this.originalEntriesUri); + } catch (e) { + return ( + console.warn("Could not fetch original snapshot entries", e), [] + ); + } + } + }; + async function sKe(r, e, t, n, a) { + let i = e6.parse(r), + s = i.map((d) => d.address); + if (new Set(s).size < s.length) throw new p9(); + let l = await yu.buildAndUpload(i, e, t, n, a); + return { merkleRoot: l.shardedMerkleInfo.merkleRoot, snapshotUri: l.uri }; + } + var oKe = { + admin: "", + transfer: "TRANSFER_ROLE", + minter: "MINTER_ROLE", + pauser: "PAUSER_ROLE", + lister: "LISTER_ROLE", + asset: "ASSET_ROLE", + unwrap: "UNWRAP_ROLE", + factory: "FACTORY_ROLE", + }, + wG = Object.keys(oKe); + function a2(r) { + return r === "admin" + ? se.ethers.utils.hexZeroPad([0], 32) + : se.ethers.utils.id(oKe[r]); + } + var u2 = class { + constructor(e) { + le._defineProperty(this, "contractWrapper", void 0), + (this.contractWrapper = e); + } + encode(e, t) { + return this.contractWrapper.readContract.interface.encodeFunctionData( + e, + t + ); + } + decode(e, t) { + return this.contractWrapper.readContract.interface.decodeFunctionData( + e, + t + ); + } + }, + _9 = { + name: "Royalty", + namespace: "royalty", + docLinks: { sdk: "sdk.contractroyalty", contracts: "Royalty" }, + abis: [Bdr.default], + features: {}, + }, + x9 = { + name: "PrimarySale", + namespace: "sales", + docLinks: { sdk: "sdk.contractprimarysale", contracts: "PrimarySale" }, + abis: [Pdr.default], + features: {}, + }, + T9 = { + name: "PlatformFee", + namespace: "platformFee", + docLinks: { sdk: "sdk.platformfee", contracts: "PlatformFee" }, + abis: [Mdr.default], + features: {}, + }, + Cze = { + name: "PermissionsEnumerable", + namespace: "roles", + docLinks: { + sdk: "sdk.contractroles", + contracts: "PermissionsEnumerable", + }, + abis: [Sdr.default], + features: {}, + }, + E9 = { + name: "Permissions", + namespace: "roles", + docLinks: { sdk: "sdk.contractroles", contracts: "Permissions" }, + abis: [kdr.default], + features: { [Cze.name]: Cze }, + }, + C9 = { + name: "ContractMetadata", + namespace: "metadata", + docLinks: { + sdk: "sdk.contractmetadata", + contracts: "ContractMetadata", + }, + abis: [Tdr.default], + features: {}, + }, + EV = { + name: "AppURI", + namespace: "appURI", + docLinks: { sdk: "sdk.appURI", contracts: "AppURI" }, + abis: [xdr.default], + features: {}, + }, + I9 = { + name: "Ownable", + namespace: "owner", + docLinks: { sdk: "sdk.owner", contracts: "Ownable" }, + abis: [Ndr.default], + features: {}, + }, + Ize = { + name: "Gasless", + namespace: "gasless", + docLinks: { sdk: "sdk.gaslesstransaction", contracts: "" }, + abis: [_dr.default], + features: {}, + }, + CV = { + name: "PackVRF", + namespace: "pack.vrf", + docLinks: { sdk: "sdk.packvrf", contracts: "IPackVRFDirect" }, + abis: [Adr.default], + features: {}, + }, + Aze = { + name: "PluginRouter", + namespace: "plugin.router", + docLinks: { sdk: "sdk.pluginrouter", contracts: "IRouter" }, + abis: [Rdr.default], + features: {}, + }, + IV = { + name: "DirectListings", + namespace: "direct.listings", + docLinks: { sdk: "", contracts: "" }, + abis: [Edr.default], + features: {}, + }, + AV = { + name: "EnglishAuctions", + namespace: "english.auctions", + docLinks: { sdk: "", contracts: "" }, + abis: [Cdr.default], + features: {}, + }, + kV = { + name: "Offers", + namespace: "offers", + docLinks: { sdk: "", contracts: "" }, + abis: [Idr.default], + features: {}, + }, + T0 = class { + constructor(e, t, n) { + le._defineProperty(this, "featureName", C9.name), + le._defineProperty(this, "contractWrapper", void 0), + le._defineProperty(this, "schema", void 0), + le._defineProperty(this, "storage", void 0), + (this.contractWrapper = e), + (this.schema = t), + (this.storage = n); + } + parseOutputMetadata(e) { + return this.schema.output.parse(e); + } + parseInputMetadata(e) { + return this.schema.input.parse(e); + } + async get() { + let e; + if (this.supportsContractMetadata(this.contractWrapper)) { + let t = await this.contractWrapper.readContract.contractURI(); + t && t.includes("://") && (e = await this.storage.downloadJSON(t)); + } + if (!e) + try { + let t; + try { + sc("name", this.contractWrapper) && + (t = await this.contractWrapper.readContract.name()); + } catch {} + let n = await cb( + this.contractWrapper.readContract.address, + this.contractWrapper.getProvider(), + this.storage + ); + e = { name: t || n.name, description: n.info.title }; + } catch { + throw new Error("Could not fetch contract metadata"); + } + return this.parseOutputMetadata(e); + } + async set(e) { + let t = await this._parseAndUploadMetadata(e), + n = this.contractWrapper; + if (this.supportsContractMetadata(n)) + return { + receipt: await n.sendTransaction("setContractURI", [t]), + data: this.get, + }; + throw new Wf(C9); + } + async update(e) { + return await this.set({ ...(await this.get()), ...e }); + } + async _parseAndUploadMetadata(e) { + let t = this.parseInputMetadata(e); + return this.storage.upload(t); + } + supportsContractMetadata(e) { + return Lt(e, "ContractMetadata"); + } + }, + A9 = class { + constructor(e, t) { + le._defineProperty(this, "featureName", E9.name), + le._defineProperty(this, "contractWrapper", void 0), + le._defineProperty(this, "roles", void 0), + (this.contractWrapper = e), + (this.roles = t); + } + async getAll() { + pr.default( + this.roles.length, + "this contract has no support for roles" + ); + let e = {}; + for (let t of this.roles) e[t] = await this.get(t); + return e; + } + async get(e) { + pr.default( + this.roles.includes(e), + `this contract does not support the "${e}" role` + ); + let t = this.contractWrapper; + if (sc("getRoleMemberCount", t) && sc("getRoleMember", t)) { + let n = a2(e), + a = (await t.readContract.getRoleMemberCount(n)).toNumber(); + return await Promise.all( + Array.from(Array(a).keys()).map((i) => + t.readContract.getRoleMember(n, i) + ) + ); + } + throw new Error( + "Contract does not support enumerating roles. Please implement IPermissionsEnumerable to unlock this functionality." + ); + } + async setAll(e) { + let t = Object.keys(e); + pr.default(t.length, "you must provide at least one role to set"), + pr.default( + t.every((s) => this.roles.includes(s)), + "this contract does not support the given role" + ); + let n = await this.getAll(), + a = [], + i = t.sort((s) => (s === "admin" ? 1 : -1)); + for (let s = 0; s < i.length; s++) { + let c = i[s], + l = e[c] || [], + d = n[c] || [], + m = l.filter((C) => !d.includes(C)), + w = d.filter((C) => !l.includes(C)); + if ( + (m.length && + m.forEach((C) => { + a.push( + this.contractWrapper.readContract.interface.encodeFunctionData( + "grantRole", + [a2(c), C] + ) + ); + }), + w.length) + ) + for (let C = 0; C < w.length; C++) { + let I = w[C], + k = await this.getRevokeRoleFunctionName(I); + a.push( + this.contractWrapper.readContract.interface.encodeFunctionData( + k, + [a2(c), I] + ) + ); + } + } + return { receipt: await this.contractWrapper.multiCall(a) }; + } + async verify(e, t) { + await Promise.all( + e.map(async (n) => { + if ( + !(await this.get(n)) + .map((i) => i.toLowerCase()) + .includes(t.toLowerCase()) + ) + throw new d9(t, n); + }) + ); + } + async grant(e, t) { + return ( + pr.default( + this.roles.includes(e), + `this contract does not support the "${e}" role` + ), + { + receipt: await this.contractWrapper.sendTransaction("grantRole", [ + a2(e), + t, + ]), + } + ); + } + async revoke(e, t) { + pr.default( + this.roles.includes(e), + `this contract does not support the "${e}" role` + ); + let n = await this.getRevokeRoleFunctionName(t); + return { + receipt: await this.contractWrapper.sendTransaction(n, [a2(e), t]), + }; + } + async getRevokeRoleFunctionName(e) { + return ( + await this.contractWrapper.getSignerAddress() + ).toLowerCase() === e.toLowerCase() + ? "renounceRole" + : "revokeRole"; + } + }, + k9 = class { + constructor(e, t) { + le._defineProperty(this, "featureName", _9.name), + le._defineProperty(this, "contractWrapper", void 0), + le._defineProperty(this, "metadata", void 0), + (this.contractWrapper = e), + (this.metadata = t); + } + async getDefaultRoyaltyInfo() { + let [e, t] = + await this.contractWrapper.readContract.getDefaultRoyaltyInfo(); + return ao.parse({ fee_recipient: e, seller_fee_basis_points: t }); + } + async getTokenRoyaltyInfo(e) { + let [t, n] = + await this.contractWrapper.readContract.getRoyaltyInfoForToken(e); + return ao.parse({ fee_recipient: t, seller_fee_basis_points: n }); + } + async setDefaultRoyaltyInfo(e) { + let t = await this.metadata.get(), + n = this.metadata.parseInputMetadata({ ...t, ...e }), + a = await this.metadata._parseAndUploadMetadata(n); + if (sc("setContractURI", this.contractWrapper)) { + let i = [ + this.contractWrapper.readContract.interface.encodeFunctionData( + "setDefaultRoyaltyInfo", + [n.fee_recipient, n.seller_fee_basis_points] + ), + this.contractWrapper.readContract.interface.encodeFunctionData( + "setContractURI", + [a] + ), + ]; + return { + receipt: await this.contractWrapper.multiCall(i), + data: () => this.getDefaultRoyaltyInfo(), + }; + } else + throw new Error( + "Updating royalties requires implementing ContractMetadata in your contract to support marketplaces like OpenSea." + ); + } + async setTokenRoyaltyInfo(e, t) { + return { + receipt: await this.contractWrapper.sendTransaction( + "setRoyaltyInfoForToken", + [e, t.fee_recipient, t.seller_fee_basis_points] + ), + data: () => this.getDefaultRoyaltyInfo(), + }; + } + }, + S9 = class { + constructor(e) { + le._defineProperty(this, "featureName", x9.name), + le._defineProperty(this, "contractWrapper", void 0), + (this.contractWrapper = e); + } + async getRecipient() { + return await this.contractWrapper.readContract.primarySaleRecipient(); + } + async setRecipient(e) { + return { + receipt: await this.contractWrapper.sendTransaction( + "setPrimarySaleRecipient", + [e] + ), + }; + } + }, + _G = { name: "Failed to load NFT metadata" }; + async function xG(r, e, t) { + let n = e.replace( + "{id}", + se.ethers.utils + .hexZeroPad(se.BigNumber.from(r).toHexString(), 32) + .slice(2) + ), + a; + try { + a = await t.downloadJSON(n); + } catch { + let s = e.replace("{id}", se.BigNumber.from(r).toString()); + try { + a = await t.downloadJSON(s); + } catch { + console.warn( + `failed to get token metadata: ${JSON.stringify({ + tokenId: r.toString(), + tokenUri: e, + })} -- falling back to default metadata` + ), + (a = _G); + } + } + return le.CommonNFTOutput.parse({ + ...a, + id: se.BigNumber.from(r).toString(), + uri: e, + }); + } + async function CR(r, e, t, n) { + let a, + i = new se.Contract(r, wR.default, e), + s = await i.supportsInterface(Q3), + c = await i.supportsInterface(X3); + if (s) a = await new se.Contract(r, qdr.default, e).tokenURI(t); + else if (c) a = await new se.Contract(r, Fdr.default, e).uri(t); + else throw Error("Contract must implement ERC 1155 or ERC 721."); + if (!a) throw new c2(); + return xG(t, a, n); + } + async function TG(r, e) { + return typeof r == "string" + ? r + : await e.upload(le.CommonNFTInput.parse(r)); + } + async function ob(r, e, t, n) { + if (Xpr(r)) return r; + if (ehr(r)) + return await e.uploadBatch( + r.map((i) => le.CommonNFTInput.parse(i)), + { + rewriteFileNames: { fileStartNumber: t || 0 }, + onProgress: n?.onProgress, + } + ); + throw new Error( + "NFT metadatas must all be of the same type (all URI or all NFTMetadataInput)" + ); + } + function i2(r) { + let e = r[0].substring(0, r[0].lastIndexOf("/")); + for (let t = 0; t < r.length; t++) { + let n = r[t].substring(0, r[t].lastIndexOf("/")); + if (e !== n) + throw new Error( + `Can only create batches with the same base URI for every entry in the batch. Expected '${e}' but got '${n}'` + ); + } + return e.replace(/\/$/, "") + "/"; + } + function Xpr(r) { + return r.find((e) => typeof e != "string") === void 0; + } + function ehr(r) { + return r.find((e) => typeof e != "object") === void 0; + } + var D3 = class { + constructor(e, t, n, a) { + le._defineProperty(this, "featureName", void 0), + le._defineProperty(this, "contractWrapper", void 0), + le._defineProperty(this, "storage", void 0), + le._defineProperty(this, "nextTokenIdToMintFn", void 0), + (this.featureName = n), + (this.nextTokenIdToMintFn = a), + (this.contractWrapper = e), + (this.storage = t); + } + async createDelayedRevealBatch(e, t, n, a) { + if (!n) throw new Error("Password is required"); + let i = await this.storage.uploadBatch([le.CommonNFTInput.parse(e)], { + rewriteFileNames: { fileStartNumber: 0 }, + }), + s = i2(i), + c = await this.nextTokenIdToMintFn(), + l = await this.storage.uploadBatch( + t.map((V) => le.CommonNFTInput.parse(V)), + { + onProgress: a?.onProgress, + rewriteFileNames: { fileStartNumber: c.toNumber() }, + } + ), + d = i2(l), + m = await this.contractWrapper.readContract.getBaseURICount(), + w = await this.hashDelayRevealPasword(m, n), + C = await this.contractWrapper.readContract.encryptDecrypt( + se.ethers.utils.toUtf8Bytes(d), + w + ), + I; + if (await this.isLegacyContract()) I = C; + else { + let V = await this.contractWrapper.getChainID(), + te = se.ethers.utils.solidityKeccak256( + ["bytes", "bytes", "uint256"], + [se.ethers.utils.toUtf8Bytes(d), w, V] + ); + I = se.ethers.utils.defaultAbiCoder.encode( + ["bytes", "bytes32"], + [C, te] + ); + } + let O = await this.contractWrapper.sendTransaction("lazyMint", [ + l.length, + s.endsWith("/") ? s : `${s}/`, + I, + ]), + D = this.contractWrapper.parseLogs("TokensLazyMinted", O?.logs), + W = D[0].args.startTokenId, + H = D[0].args.endTokenId, + j = []; + for (let V = W; V.lte(H); V = V.add(1)) j.push({ id: V, receipt: O }); + return j; + } + async reveal(e, t) { + if (!t) throw new Error("Password is required"); + let n = await this.hashDelayRevealPasword(e, t); + try { + let a = await this.contractWrapper.callStatic().reveal(e, n); + if (!a.includes("://") || !a.endsWith("/")) + throw new Error("invalid password"); + } catch { + throw new Error("invalid password"); + } + return { + receipt: await this.contractWrapper.sendTransaction("reveal", [ + e, + n, + ]), + }; + } + async getBatchesToReveal() { + let e = await this.contractWrapper.readContract.getBaseURICount(); + if (e.isZero()) return []; + let t = Array.from(Array(e.toNumber()).keys()), + n = await Promise.all( + t.map((d) => { + if (sc("getBatchIdAtIndex", this.contractWrapper)) + return this.contractWrapper.readContract.getBatchIdAtIndex(d); + if (sc("baseURIIndices", this.contractWrapper)) + return this.contractWrapper.readContract.baseURIIndices(d); + throw new Error( + "Contract does not have getBatchIdAtIndex or baseURIIndices." + ); + }) + ), + a = n.slice(0, n.length - 1), + i = await Promise.all( + Array.from([0, ...a]).map((d) => + this.getNftMetadata(d.toString()) + ) + ), + s = await this.isLegacyContract(), + l = ( + await Promise.all( + Array.from([...n]).map((d) => + s + ? this.getLegacyEncryptedData(d) + : this.contractWrapper.readContract.encryptedData(d) + ) + ) + ).map((d) => + se.ethers.utils.hexDataLength(d) > 0 + ? s + ? d + : se.ethers.utils.defaultAbiCoder.decode( + ["bytes", "bytes32"], + d + )[0] + : d + ); + return i + .map((d, m) => ({ + batchId: se.BigNumber.from(m), + batchUri: d.uri, + placeholderMetadata: d, + })) + .filter((d, m) => se.ethers.utils.hexDataLength(l[m]) > 0); + } + async hashDelayRevealPasword(e, t) { + let n = await this.contractWrapper.getChainID(), + a = this.contractWrapper.readContract.address; + return se.ethers.utils.solidityKeccak256( + ["string", "uint256", "uint256", "address"], + [t, n, e, a] + ); + } + async getNftMetadata(e) { + return CR( + this.contractWrapper.readContract.address, + this.contractWrapper.getProvider(), + e, + this.storage + ); + } + async isLegacyContract() { + if (sc("contractVersion", this.contractWrapper)) + try { + return ( + (await this.contractWrapper.readContract.contractVersion()) <= 2 + ); + } catch { + return !1; + } + return !1; + } + async getLegacyEncryptedData(e) { + let n = await new se.ethers.Contract( + this.contractWrapper.readContract.address, + Wdr.default, + this.contractWrapper.getProvider() + ).functions.encryptedBaseURI(e); + return n.length > 0 ? n[0] : "0x"; + } + }, + kze = { + name: "ERC20ClaimConditionsV1", + namespace: "token.drop.claim", + docLinks: { + sdk: "sdk.erc20dclaimable", + contracts: "DropSinglePhase_V1", + }, + abis: [vu.default, Xze.default], + features: {}, + }, + q3 = { + name: "ERC20ClaimConditionsV2", + namespace: "token.drop.claim", + docLinks: { sdk: "sdk.erc20dclaimable", contracts: "DropSinglePhase" }, + abis: [vu.default, Qze.default], + features: {}, + }, + Sze = { + name: "ERC20ClaimPhasesV2", + namespace: "token.drop.claim", + docLinks: { sdk: "sdk.erc20dclaimable", contracts: "Drop" }, + abis: [vu.default, Zze.default], + features: {}, + }, + Mze = { + name: "ERC20ClaimPhasesV1", + namespace: "token.drop.claim", + docLinks: { sdk: "sdk.erc20dclaimable", contracts: "Drop" }, + abis: [adr.default], + features: {}, + }, + F3 = { + name: "ERC20Burnable", + namespace: "token.burn", + docLinks: { sdk: "sdk.erc20burnable", contracts: "IBurnableERC20" }, + abis: [vu.default, ndr.default], + features: {}, + }, + M9 = { + name: "ERC20SignatureMintable", + namespace: "token.signature", + docLinks: { + sdk: "sdk.erc20signaturemintable", + contracts: "ISignatureMintERC20", + }, + abis: [vu.default, idr.default], + features: {}, + }, + P9 = { + name: "ERC20BatchMintable", + namespace: "token.mint.batch", + docLinks: { sdk: "sdk.erc20batchmintable", contracts: "IMulticall" }, + abis: [vu.default, eje.default, sG.default], + features: {}, + }, + W3 = { + name: "ERC20Mintable", + namespace: "token.mint", + docLinks: { sdk: "sdk.erc20mintable", contracts: "IMintableERC20" }, + abis: [vu.default, eje.default], + features: { [P9.name]: P9 }, + }, + R9 = { + name: "ERC20", + namespace: "token", + docLinks: { sdk: "sdk.erc20", contracts: "IERC20" }, + abis: [vu.default], + features: { + [F3.name]: F3, + [W3.name]: W3, + [kze.name]: kze, + [q3.name]: q3, + [Mze.name]: Mze, + [Sze.name]: Sze, + [M9.name]: M9, + }, + }, + B9 = { + name: "ERC721Burnable", + namespace: "nft.burn", + docLinks: { sdk: "sdk.erc721burnable", contracts: "IBurnableERC721" }, + abis: [io.default, sdr.default], + features: {}, + }, + U3 = { + name: "ERC721Revealable", + namespace: "nft.drop.revealer", + docLinks: { sdk: "sdk.delayedreveal", contracts: "DelayedReveal" }, + abis: [io.default, ed.default, tje.default], + features: {}, + }, + N9 = { + name: "ERC721TieredDrop", + namespace: "nft.tieredDrop", + docLinks: { sdk: "sdk.erc721tiereddrop", contracts: "TieredDrop" }, + abis: [io.default, hdr.default], + features: {}, + }, + Pze = { + name: "ERC721ClaimConditionsV1", + namespace: "nft.drop.claim", + docLinks: { + sdk: "sdk.erc721claimable", + contracts: "DropSinglePhase_V1", + }, + abis: [io.default, ed.default, Xze.default], + features: {}, + }, + O9 = { + name: "ERC721ClaimConditionsV2", + namespace: "nft.drop.claim", + docLinks: { sdk: "sdk.erc721claimable", contracts: "DropSinglePhase" }, + abis: [io.default, ed.default, Qze.default], + features: {}, + }, + Rze = { + name: "ERC721ClaimPhasesV1", + namespace: "nft.drop.claim", + docLinks: { sdk: "sdk.erc721claimable", contracts: "Drop" }, + abis: [cdr.default], + features: {}, + }, + Bze = { + name: "ERC721ClaimPhasesV2", + namespace: "nft.drop.claim", + docLinks: { sdk: "sdk.erc721claimable", contracts: "Drop" }, + abis: [io.default, ed.default, Zze.default], + features: {}, + }, + H3 = { + name: "ERC721ClaimCustom", + namespace: "nft.drop.claim", + docLinks: { sdk: "sdk.erc721claimable", contracts: "IClaimableERC721" }, + abis: [io.default, ed.default, odr.default], + features: {}, + }, + L9 = { + name: "ERC721LazyMintable", + namespace: "nft.drop", + docLinks: { sdk: "sdk.erc721lazymintable", contracts: "LazyMint" }, + abis: [io.default, ed.default], + features: { + [U3.name]: U3, + [H3.name]: H3, + [Pze.name]: Pze, + [O9.name]: O9, + [Rze.name]: Rze, + [Bze.name]: Bze, + }, + }, + D9 = { + name: "ERC721BatchMintable", + namespace: "nft.mint.batch", + docLinks: { sdk: "sdk.erc721batchmintable", contracts: "IMulticall" }, + abis: [io.default, rje.default, sG.default], + features: {}, + }, + z3 = { + name: "ERC721Mintable", + namespace: "nft.mint", + docLinks: { sdk: "sdk.erc721mintable", contracts: "IMintableERC721" }, + abis: [io.default, rje.default], + features: { [D9.name]: D9 }, + }, + q9 = { + name: "ERC721SignatureMintV2", + namespace: "nft.signature", + docLinks: { + sdk: "sdk.erc721signaturemint", + contracts: "ISignatureMintERC721", + }, + abis: [io.default, ddr.default], + features: {}, + }, + Nze = { + name: "ERC721SignatureMintV1", + namespace: "nft.signature", + docLinks: { + sdk: "sdk.erc721signaturemint", + contracts: "ISignatureMintERC721", + }, + abis: [pdr.default], + features: {}, + }, + SV = { + name: "ERC721Enumerable", + namespace: "nft.query.owned", + docLinks: { + sdk: "sdk.erc721enumerable", + contracts: "IERC721Enumerable", + }, + abis: [io.default, udr.default], + features: {}, + }, + s2 = { + name: "ERC721Supply", + namespace: "nft.query", + docLinks: { sdk: "sdk.erc721supply", contracts: "IERC721Supply" }, + abis: [io.default, ldr.default], + features: { [SV.name]: SV }, + }, + F9 = { + name: "ERC721", + namespace: "nft", + docLinks: { sdk: "sdk.erc721", contracts: "IERC721" }, + abis: [io.default], + features: { + [B9.name]: B9, + [s2.name]: s2, + [z3.name]: z3, + [L9.name]: L9, + [Nze.name]: Nze, + [q9.name]: q9, + [N9.name]: N9, + }, + }, + tb = { + name: "ERC1155Burnable", + namespace: "edition.burn", + docLinks: { sdk: "sdk.erc1155burnable", contracts: "IBurnableERC1155" }, + abis: [Oc.default, fdr.default], + features: {}, + }, + Oze = { + name: "ERC1155ClaimConditionsV1", + namespace: "edition.drop.claim", + docLinks: { + sdk: "sdk.erc1155claimable", + contracts: "DropSinglePhase1155", + }, + abis: [Oc.default, ed.default, bdr.default], + features: {}, + }, + W9 = { + name: "ERC1155ClaimConditionsV2", + namespace: "edition.drop.claim", + docLinks: { + sdk: "sdk.erc1155claimable", + contracts: "DropSinglePhase1155", + }, + abis: [Oc.default, ed.default, gdr.default], + features: {}, + }, + Lze = { + name: "ERC1155ClaimPhasesV2", + namespace: "edition.drop.claim", + docLinks: { sdk: "sdk.erc1155claimable", contracts: "Drop1155" }, + abis: [Oc.default, ed.default, ydr.default], + features: {}, + }, + Dze = { + name: "ERC1155ClaimPhasesV1", + namespace: "edition.drop.claim", + docLinks: { sdk: "sdk.erc1155claimable", contracts: "Drop1155" }, + abis: [nje.default], + features: {}, + }, + j3 = { + name: "ERC1155ClaimCustom", + namespace: "edition.drop.claim", + docLinks: { + sdk: "sdk.erc1155claimable", + contracts: "IClaimableERC1155", + }, + abis: [Oc.default, ed.default, mdr.default], + features: {}, + }, + l2 = { + name: "ERC1155Revealable", + namespace: "edition.drop.revealer", + docLinks: { sdk: "sdk.drop.delayedreveal", contracts: "DelayedReveal" }, + abis: [Oc.default, ed.default, tje.default], + features: {}, + }, + U9 = { + name: "ERC1155LazyMintableV2", + namespace: "edition.drop", + docLinks: { sdk: "sdk.erc1155droppable", contracts: "LazyMint" }, + abis: [Oc.default, ed.default], + features: { + [l2.name]: l2, + [j3.name]: j3, + [Oze.name]: Oze, + [W9.name]: W9, + [Lze.name]: Lze, + }, + }, + qze = { + name: "ERC1155LazyMintableV1", + namespace: "edition.drop", + docLinks: { sdk: "sdk.erc1155droppable", contracts: "LazyMint" }, + abis: [nje.default], + features: { [Dze.name]: Dze }, + }, + H9 = { + name: "ERC1155SignatureMintable", + namespace: "edition.signature", + docLinks: { + sdk: "sdk.erc1155signaturemintable", + contracts: "ISignatureMintERC1155", + }, + abis: [Oc.default, wdr.default], + features: {}, + }, + z9 = { + name: "ERC1155BatchMintable", + namespace: "edition.mint.batch", + docLinks: { sdk: "sdk.erc1155batchmintable", contracts: "IMulticall" }, + abis: [Oc.default, aje.default, sG.default], + features: {}, + }, + rb = { + name: "ERC1155Mintable", + namespace: "edition.mint", + docLinks: { sdk: "sdk.erc1155mintable", contracts: "IMintableERC1155" }, + abis: [Oc.default, aje.default], + features: { [z9.name]: z9 }, + }, + nb = { + name: "ERC1155Enumerable", + namespace: "edition.query", + docLinks: { sdk: "sdk.erc1155", contracts: "IERC1155" }, + abis: [Oc.default, vdr.default], + features: {}, + }, + j9 = { + name: "ERC1155", + namespace: "edition", + docLinks: { + sdk: "sdk.erc1155enumerable", + contracts: "IERC1155Enumerable", + }, + abis: [Oc.default], + features: { + [tb.name]: tb, + [nb.name]: nb, + [rb.name]: rb, + [qze.name]: qze, + [U9.name]: U9, + [l2.name]: l2, + [H9.name]: H9, + }, + }, + thr = { + [R9.name]: R9, + [F9.name]: F9, + [j9.name]: j9, + [_9.name]: _9, + [T9.name]: T9, + [x9.name]: x9, + [E9.name]: E9, + [C9.name]: C9, + [EV.name]: EV, + [I9.name]: I9, + [Ize.name]: Ize, + [CV.name]: CV, + [Aze.name]: Aze, + [IV.name]: IV, + [AV.name]: AV, + [kV.name]: kV, + }, + MV; + try { + MV = new TextDecoder(); + } catch {} + var Rt, + ab, + ft = 0, + rhr = 105, + nhr = 57342, + ahr = 57343, + Fze = 57337, + Wze = 6, + r2 = {}, + mn = {}, + Ri, + K9, + V9 = 0, + K3 = 0, + fs, + ep, + Ei = [], + PV = [], + bu, + Bc, + P3, + Uze = { useRecords: !1, mapsAsObjects: !0 }, + RV = !1, + d2 = class { + constructor(e) { + if ( + e && + ((e.keyMap || e._keyMap) && + !e.useRecords && + ((e.useRecords = !1), (e.mapsAsObjects = !0)), + e.useRecords === !1 && + e.mapsAsObjects === void 0 && + (e.mapsAsObjects = !0), + e.getStructures && (e.getShared = e.getStructures), + e.getShared && + !e.structures && + ((e.structures = []).uninitialized = !0), + e.keyMap) + ) { + this.mapKey = new Map(); + for (let [t, n] of Object.entries(e.keyMap)) this.mapKey.set(n, t); + } + Object.assign(this, e); + } + decodeKey(e) { + return (this.keyMap && this.mapKey.get(e)) || e; + } + decode(e, t) { + if (Rt) + return dKe( + () => ( + pKe(), + this ? this.decode(e, t) : d2.prototype.decode.call(Uze, e, t) + ) + ); + (ab = t > -1 ? t : e.length), + (ft = 0), + (K3 = 0), + (K9 = null), + (fs = null), + (Rt = e); + try { + Bc = + e.dataView || + (e.dataView = new DataView(e.buffer, e.byteOffset, e.byteLength)); + } catch (n) { + throw ( + ((Rt = null), + e instanceof Uint8Array + ? n + : new Error( + "Source must be a Uint8Array or Buffer but was a " + + (e && typeof e == "object" + ? e.constructor.name + : typeof e) + )) + ); + } + if (this instanceof d2) { + if ( + ((mn = this), + (bu = + this.sharedValues && + (this.pack + ? new Array(this.maxPrivatePackedValues || 16).concat( + this.sharedValues + ) + : this.sharedValues)), + this.structures) + ) + return (Ri = this.structures), Hze(); + (!Ri || Ri.length > 0) && (Ri = []); + } else (mn = Uze), (!Ri || Ri.length > 0) && (Ri = []), (bu = null); + return Hze(); + } + }; + function Hze() { + try { + let r = Pn(); + if (fs) { + if (ft >= fs.postBundlePosition) { + let e = new Error("Unexpected bundle position"); + throw ((e.incomplete = !0), e); + } + (ft = fs.postBundlePosition), (fs = null); + } + if (ft == ab) (Ri = null), (Rt = null), ep && (ep = null); + else if (ft > ab) { + let e = new Error("Unexpected end of CBOR data"); + throw ((e.incomplete = !0), e); + } else if (!RV) + throw new Error("Data read, but end of buffer not reached"); + return r; + } catch (r) { + throw ( + (pKe(), + (r instanceof RangeError || + r.message.startsWith("Unexpected end of buffer")) && + (r.incomplete = !0), + r) + ); + } + } + function Pn() { + let r = Rt[ft++], + e = r >> 5; + if (((r = r & 31), r > 23)) + switch (r) { + case 24: + r = Rt[ft++]; + break; + case 25: + if (e == 7) return chr(); + (r = Bc.getUint16(ft)), (ft += 2); + break; + case 26: + if (e == 7) { + let t = Bc.getFloat32(ft); + if (mn.useFloat32 > 2) { + let n = hKe[((Rt[ft] & 127) << 1) | (Rt[ft + 1] >> 7)]; + return (ft += 4), ((n * t + (t > 0 ? 0.5 : -0.5)) >> 0) / n; + } + return (ft += 4), t; + } + (r = Bc.getUint32(ft)), (ft += 4); + break; + case 27: + if (e == 7) { + let t = Bc.getFloat64(ft); + return (ft += 8), t; + } + if (e > 1) { + if (Bc.getUint32(ft) > 0) + throw new Error( + "JavaScript does not support arrays, maps, or strings with length over 4294967295" + ); + r = Bc.getUint32(ft + 4); + } else + mn.int64AsNumber + ? ((r = Bc.getUint32(ft) * 4294967296), + (r += Bc.getUint32(ft + 4))) + : (r = Bc.getBigUint64(ft)); + ft += 8; + break; + case 31: + switch (e) { + case 2: + case 3: + throw new Error( + "Indefinite length not supported for byte or text strings" + ); + case 4: + let t = [], + n, + a = 0; + for (; (n = Pn()) != r2; ) t[a++] = n; + return e == 4 ? t : e == 3 ? t.join("") : P.Buffer.concat(t); + case 5: + let i; + if (mn.mapsAsObjects) { + let s = {}; + if (mn.keyMap) + for (; (i = Pn()) != r2; ) s[bh(mn.decodeKey(i))] = Pn(); + else for (; (i = Pn()) != r2; ) s[bh(i)] = Pn(); + return s; + } else { + P3 && ((mn.mapsAsObjects = !0), (P3 = !1)); + let s = new Map(); + if (mn.keyMap) + for (; (i = Pn()) != r2; ) s.set(mn.decodeKey(i), Pn()); + else for (; (i = Pn()) != r2; ) s.set(i, Pn()); + return s; + } + case 7: + return r2; + default: + throw new Error( + "Invalid major type for indefinite length " + e + ); + } + default: + throw new Error("Unknown token " + r); + } + switch (e) { + case 0: + return r; + case 1: + return ~r; + case 2: + return ohr(r); + case 3: + if (K3 >= ft) return K9.slice(ft - V9, (ft += r) - V9); + if (K3 == 0 && ab < 140 && r < 32) { + let a = r < 16 ? cKe(r) : shr(r); + if (a != null) return a; + } + return ihr(r); + case 4: + let t = new Array(r); + for (let a = 0; a < r; a++) t[a] = Pn(); + return t; + case 5: + if (mn.mapsAsObjects) { + let a = {}; + if (mn.keyMap) + for (let i = 0; i < r; i++) a[bh(mn.decodeKey(Pn()))] = Pn(); + else for (let i = 0; i < r; i++) a[bh(Pn())] = Pn(); + return a; + } else { + P3 && ((mn.mapsAsObjects = !0), (P3 = !1)); + let a = new Map(); + if (mn.keyMap) + for (let i = 0; i < r; i++) a.set(mn.decodeKey(Pn()), Pn()); + else for (let i = 0; i < r; i++) a.set(Pn(), Pn()); + return a; + } + case 6: + if (r >= Fze) { + let a = Ri[r & 8191]; + if (a) return a.read || (a.read = BV(a)), a.read(); + if (r < 65536) { + if (r == ahr) return OV(Pn()); + if (r == nhr) { + let i = R3(), + s = Pn(); + for (let c = 2; c < i; c++) OV([s++, Pn()]); + return Pn(); + } else if (r == Fze) return fhr(); + if (mn.getShared && (EG(), (a = Ri[r & 8191]), a)) + return a.read || (a.read = BV(a)), a.read(); + } + } + let n = Ei[r]; + if (n) return n.handlesRead ? n(Pn) : n(Pn()); + { + let a = Pn(); + for (let i = 0; i < PV.length; i++) { + let s = PV[i](r, a); + if (s !== void 0) return s; + } + return new p2(a, r); + } + case 7: + switch (r) { + case 20: + return !1; + case 21: + return !0; + case 22: + return null; + case 23: + return; + case 31: + default: + let a = (bu || eb())[r]; + if (a !== void 0) return a; + throw new Error("Unknown token " + r); + } + default: + if (isNaN(r)) { + let a = new Error("Unexpected end of CBOR data"); + throw ((a.incomplete = !0), a); + } + throw new Error("Unknown CBOR token " + r); + } + } + var zze = /^[a-zA-Z_$][a-zA-Z\d_$]*$/; + function BV(r) { + function e() { + let t = Rt[ft++]; + if (((t = t & 31), t > 23)) + switch (t) { + case 24: + t = Rt[ft++]; + break; + case 25: + (t = Bc.getUint16(ft)), (ft += 2); + break; + case 26: + (t = Bc.getUint32(ft)), (ft += 4); + break; + default: + throw new Error("Expected array header, but got " + Rt[ft - 1]); + } + let n = this.compiledReader; + for (; n; ) { + if (n.propertyCount === t) return n(Pn); + n = n.next; + } + if (this.slowReads++ >= 3) { + let i = this.length == t ? this : this.slice(0, t); + return ( + (n = mn.keyMap + ? new Function( + "r", + "return {" + + i + .map((s) => mn.decodeKey(s)) + .map((s) => + zze.test(s) + ? bh(s) + ":r()" + : "[" + JSON.stringify(s) + "]:r()" + ) + .join(",") + + "}" + ) + : new Function( + "r", + "return {" + + i + .map((s) => + zze.test(s) + ? bh(s) + ":r()" + : "[" + JSON.stringify(s) + "]:r()" + ) + .join(",") + + "}" + )), + this.compiledReader && (n.next = this.compiledReader), + (n.propertyCount = t), + (this.compiledReader = n), + n(Pn) + ); + } + let a = {}; + if (mn.keyMap) + for (let i = 0; i < t; i++) a[bh(mn.decodeKey(this[i]))] = Pn(); + else for (let i = 0; i < t; i++) a[bh(this[i])] = Pn(); + return a; + } + return (r.slowReads = 0), e; + } + function bh(r) { + return r === "__proto__" ? "__proto_" : r; + } + var ihr = NV; + function NV(r) { + let e; + if (r < 16 && (e = cKe(r))) return e; + if (r > 64 && MV) return MV.decode(Rt.subarray(ft, (ft += r))); + let t = ft + r, + n = []; + for (e = ""; ft < t; ) { + let a = Rt[ft++]; + if ((a & 128) === 0) n.push(a); + else if ((a & 224) === 192) { + let i = Rt[ft++] & 63; + n.push(((a & 31) << 6) | i); + } else if ((a & 240) === 224) { + let i = Rt[ft++] & 63, + s = Rt[ft++] & 63; + n.push(((a & 31) << 12) | (i << 6) | s); + } else if ((a & 248) === 240) { + let i = Rt[ft++] & 63, + s = Rt[ft++] & 63, + c = Rt[ft++] & 63, + l = ((a & 7) << 18) | (i << 12) | (s << 6) | c; + l > 65535 && + ((l -= 65536), + n.push(((l >>> 10) & 1023) | 55296), + (l = 56320 | (l & 1023))), + n.push(l); + } else n.push(a); + n.length >= 4096 && ((e += Ws.apply(String, n)), (n.length = 0)); + } + return n.length > 0 && (e += Ws.apply(String, n)), e; + } + var Ws = String.fromCharCode; + function shr(r) { + let e = ft, + t = new Array(r); + for (let n = 0; n < r; n++) { + let a = Rt[ft++]; + if ((a & 128) > 0) { + ft = e; + return; + } + t[n] = a; + } + return Ws.apply(String, t); + } + function cKe(r) { + if (r < 4) + if (r < 2) { + if (r === 0) return ""; + { + let e = Rt[ft++]; + if ((e & 128) > 1) { + ft -= 1; + return; + } + return Ws(e); + } + } else { + let e = Rt[ft++], + t = Rt[ft++]; + if ((e & 128) > 0 || (t & 128) > 0) { + ft -= 2; + return; + } + if (r < 3) return Ws(e, t); + let n = Rt[ft++]; + if ((n & 128) > 0) { + ft -= 3; + return; + } + return Ws(e, t, n); + } + else { + let e = Rt[ft++], + t = Rt[ft++], + n = Rt[ft++], + a = Rt[ft++]; + if ((e & 128) > 0 || (t & 128) > 0 || (n & 128) > 0 || (a & 128) > 0) { + ft -= 4; + return; + } + if (r < 6) { + if (r === 4) return Ws(e, t, n, a); + { + let i = Rt[ft++]; + if ((i & 128) > 0) { + ft -= 5; + return; + } + return Ws(e, t, n, a, i); + } + } else if (r < 8) { + let i = Rt[ft++], + s = Rt[ft++]; + if ((i & 128) > 0 || (s & 128) > 0) { + ft -= 6; + return; + } + if (r < 7) return Ws(e, t, n, a, i, s); + let c = Rt[ft++]; + if ((c & 128) > 0) { + ft -= 7; + return; + } + return Ws(e, t, n, a, i, s, c); + } else { + let i = Rt[ft++], + s = Rt[ft++], + c = Rt[ft++], + l = Rt[ft++]; + if ( + (i & 128) > 0 || + (s & 128) > 0 || + (c & 128) > 0 || + (l & 128) > 0 + ) { + ft -= 8; + return; + } + if (r < 10) { + if (r === 8) return Ws(e, t, n, a, i, s, c, l); + { + let d = Rt[ft++]; + if ((d & 128) > 0) { + ft -= 9; + return; + } + return Ws(e, t, n, a, i, s, c, l, d); + } + } else if (r < 12) { + let d = Rt[ft++], + m = Rt[ft++]; + if ((d & 128) > 0 || (m & 128) > 0) { + ft -= 10; + return; + } + if (r < 11) return Ws(e, t, n, a, i, s, c, l, d, m); + let w = Rt[ft++]; + if ((w & 128) > 0) { + ft -= 11; + return; + } + return Ws(e, t, n, a, i, s, c, l, d, m, w); + } else { + let d = Rt[ft++], + m = Rt[ft++], + w = Rt[ft++], + C = Rt[ft++]; + if ( + (d & 128) > 0 || + (m & 128) > 0 || + (w & 128) > 0 || + (C & 128) > 0 + ) { + ft -= 12; + return; + } + if (r < 14) { + if (r === 12) return Ws(e, t, n, a, i, s, c, l, d, m, w, C); + { + let I = Rt[ft++]; + if ((I & 128) > 0) { + ft -= 13; + return; + } + return Ws(e, t, n, a, i, s, c, l, d, m, w, C, I); + } + } else { + let I = Rt[ft++], + k = Rt[ft++]; + if ((I & 128) > 0 || (k & 128) > 0) { + ft -= 14; + return; + } + if (r < 15) return Ws(e, t, n, a, i, s, c, l, d, m, w, C, I, k); + let O = Rt[ft++]; + if ((O & 128) > 0) { + ft -= 15; + return; + } + return Ws(e, t, n, a, i, s, c, l, d, m, w, C, I, k, O); + } + } + } + } + } + function ohr(r) { + return mn.copyBuffers + ? Uint8Array.prototype.slice.call(Rt, ft, (ft += r)) + : Rt.subarray(ft, (ft += r)); + } + var uKe = new Float32Array(1), + n9 = new Uint8Array(uKe.buffer, 0, 4); + function chr() { + let r = Rt[ft++], + e = Rt[ft++], + t = (r & 127) >> 2; + if (t === 31) return e || r & 3 ? NaN : r & 128 ? -1 / 0 : 1 / 0; + if (t === 0) { + let n = (((r & 3) << 8) | e) / 16777216; + return r & 128 ? -n : n; + } + return ( + (n9[3] = (r & 128) | ((t >> 1) + 56)), + (n9[2] = ((r & 7) << 5) | (e >> 3)), + (n9[1] = e << 5), + (n9[0] = 0), + uKe[0] + ); + } + var p2 = class { + constructor(e, t) { + (this.value = e), (this.tag = t); + } + }; + Ei[0] = (r) => new Date(r); + Ei[1] = (r) => new Date(Math.round(r * 1e3)); + Ei[2] = (r) => { + let e = BigInt(0); + for (let t = 0, n = r.byteLength; t < n; t++) + e = (BigInt(r[t]) + e) << BigInt(8); + return e; + }; + Ei[3] = (r) => BigInt(-1) - Ei[2](r); + Ei[4] = (r) => Number(r[1] + "e" + r[0]); + Ei[5] = (r) => r[1] * Math.exp(r[0] * Math.log(2)); + var OV = (r) => { + let e = r[0] - 57344, + t = r[1], + n = Ri[e]; + n && + n.isShared && + ((Ri.restoreStructures || (Ri.restoreStructures = []))[e] = n), + (Ri[e] = t), + (t.read = BV(t)); + let a = {}; + if (mn.keyMap) + for (let i = 2, s = r.length; i < s; i++) { + let c = mn.decodeKey(t[i - 2]); + a[bh(c)] = r[i]; + } + else + for (let i = 2, s = r.length; i < s; i++) { + let c = t[i - 2]; + a[bh(c)] = r[i]; + } + return a; + }; + Ei[rhr] = OV; + Ei[14] = (r) => + fs ? fs[0].slice(fs.position0, (fs.position0 += r)) : new p2(r, 14); + Ei[15] = (r) => + fs ? fs[1].slice(fs.position1, (fs.position1 += r)) : new p2(r, 15); + var uhr = { Error, RegExp }; + Ei[27] = (r) => (uhr[r[0]] || Error)(r[1], r[2]); + var lKe = (r) => { + if (Rt[ft++] != 132) + throw new Error( + "Packed values structure must be followed by a 4 element array" + ); + let e = r(); + return ( + (bu = bu ? e.concat(bu.slice(e.length)) : e), + (bu.prefixes = r()), + (bu.suffixes = r()), + r() + ); + }; + lKe.handlesRead = !0; + Ei[51] = lKe; + Ei[Wze] = (r) => { + if (!bu) + if (mn.getShared) EG(); + else return new p2(r, Wze); + if (typeof r == "number") return bu[16 + (r >= 0 ? 2 * r : -2 * r - 1)]; + throw new Error("No support for non-integer packed references yet"); + }; + Ei[25] = (r) => stringRefs[r]; + Ei[256] = (r) => { + stringRefs = []; + try { + return r(); + } finally { + stringRefs = null; + } + }; + Ei[256].handlesRead = !0; + Ei[28] = (r) => { + ep || ((ep = new Map()), (ep.id = 0)); + let e = ep.id++, + t = Rt[ft], + n; + t >> 5 == 4 ? (n = []) : (n = {}); + let a = { target: n }; + ep.set(e, a); + let i = r(); + return a.used ? Object.assign(n, i) : ((a.target = i), i); + }; + Ei[28].handlesRead = !0; + Ei[29] = (r) => { + let e = ep.get(r); + return (e.used = !0), e.target; + }; + Ei[258] = (r) => new Set(r); + (Ei[259] = (r) => ( + mn.mapsAsObjects && ((mn.mapsAsObjects = !1), (P3 = !0)), r() + )).handlesRead = !0; + function n2(r, e) { + return typeof r == "string" + ? r + e + : r instanceof Array + ? r.concat(e) + : Object.assign({}, r, e); + } + function eb() { + if (!bu) + if (mn.getShared) EG(); + else throw new Error("No packed values available"); + return bu; + } + var lhr = 1399353956; + PV.push((r, e) => { + if (r >= 225 && r <= 255) return n2(eb().prefixes[r - 224], e); + if (r >= 28704 && r <= 32767) return n2(eb().prefixes[r - 28672], e); + if (r >= 1879052288 && r <= 2147483647) + return n2(eb().prefixes[r - 1879048192], e); + if (r >= 216 && r <= 223) return n2(e, eb().suffixes[r - 216]); + if (r >= 27647 && r <= 28671) return n2(e, eb().suffixes[r - 27639]); + if (r >= 1811940352 && r <= 1879048191) + return n2(e, eb().suffixes[r - 1811939328]); + if (r == lhr) + return { packedValues: bu, structures: Ri.slice(0), version: e }; + if (r == 55799) return e; + }); + var dhr = new Uint8Array(new Uint16Array([1]).buffer)[0] == 1, + jze = [Uint8Array], + phr = [64]; + for (let r = 0; r < jze.length; r++) hhr(jze[r], phr[r]); + function hhr(r, e) { + let t = "get" + r.name.slice(0, -5); + typeof r != "function" && (r = null); + let n = r.BYTES_PER_ELEMENT; + for (let a = 0; a < 2; a++) { + if (!a && n == 1) continue; + let i = n == 2 ? 1 : n == 4 ? 2 : 3; + Ei[a ? e : e - 4] = + n == 1 || a == dhr + ? (s) => { + if (!r) + throw new Error("Could not find typed array for code " + e); + return new r(Uint8Array.prototype.slice.call(s, 0).buffer); + } + : (s) => { + if (!r) + throw new Error("Could not find typed array for code " + e); + let c = new DataView(s.buffer, s.byteOffset, s.byteLength), + l = s.length >> i, + d = new r(l), + m = c[t]; + for (let w = 0; w < l; w++) d[w] = m.call(c, w << i, a); + return d; + }; + } + } + function fhr() { + let r = R3(), + e = ft + Pn(); + for (let n = 2; n < r; n++) { + let a = R3(); + ft += a; + } + let t = ft; + return ( + (ft = e), + (fs = [NV(R3()), NV(R3())]), + (fs.position0 = 0), + (fs.position1 = 0), + (fs.postBundlePosition = ft), + (ft = t), + Pn() + ); + } + function R3() { + let r = Rt[ft++] & 31; + if (r > 23) + switch (r) { + case 24: + r = Rt[ft++]; + break; + case 25: + (r = Bc.getUint16(ft)), (ft += 2); + break; + case 26: + (r = Bc.getUint32(ft)), (ft += 4); + break; + } + return r; + } + function EG() { + if (mn.getShared) { + let r = dKe(() => ((Rt = null), mn.getShared())) || {}, + e = r.structures || []; + (mn.sharedVersion = r.version), + (bu = mn.sharedValues = r.packedValues), + Ri === !0 + ? (mn.structures = Ri = e) + : Ri.splice.apply(Ri, [0, e.length].concat(e)); + } + } + function dKe(r) { + let e = ab, + t = ft, + n = V9, + a = K3, + i = K9, + s = ep, + c = fs, + l = new Uint8Array(Rt.slice(0, ab)), + d = Ri, + m = mn, + w = RV, + C = r(); + return ( + (ab = e), + (ft = t), + (V9 = n), + (K3 = a), + (K9 = i), + (ep = s), + (fs = c), + (Rt = l), + (RV = w), + (Ri = d), + (mn = m), + (Bc = new DataView(Rt.buffer, Rt.byteOffset, Rt.byteLength)), + C + ); + } + function pKe() { + (Rt = null), (ep = null), (Ri = null); + } + var hKe = new Array(147); + for (let r = 0; r < 256; r++) + hKe[r] = Number("1e" + Math.floor(45.15 - r * 0.30103)); + var mhr = new d2({ useRecords: !1 }), + yhr = mhr.decode; + function ghr(r, e) { + return CG(r, e.abis); + } + function bhr(r, e) { + return CG(r.abi, [e]); + } + function CG(r, e) { + let t = h2(r), + n = e.flatMap((i) => h2(i)); + return ( + t.filter( + (i) => + n.find( + (c) => + c.name === i.name && + c.inputs.length === i.inputs.length && + c.inputs.every((l, d) => + l.type === "tuple" || l.type === "tuple[]" + ? l.type === i.inputs[d].type && + l.components?.every( + (m, w) => m.type === i.inputs[d].components?.[w]?.type + ) + : l.type === i.inputs[d].type + ) + ) !== void 0 + ).length === n.length + ); + } + async function fKe(r, e) { + let t = await f2(r, e); + return IG(t.abi); + } + async function mKe(r, e) { + let t = await f2(r, e); + return h2(t.abi, t.metadata); + } + function yKe(r, e, t) { + return ( + e?.output?.userdoc?.[t]?.[ + Object.keys(e?.output?.userdoc[t] || {}).find((n) => + n.includes(r || "unknown") + ) || "" + ]?.notice || + e?.output?.devdoc?.[t]?.[ + Object.keys(e?.output?.devdoc[t] || {}).find((n) => + n.includes(r || "unknown") + ) || "" + ]?.details + ); + } + function IG(r) { + for (let e of r) if (e.type === "constructor") return e.inputs || []; + return []; + } + function gKe(r, e) { + for (let t of r) + if (t.type === "function" && t.name === e) return t.inputs || []; + return []; + } + function h2(r, e) { + let t = (r || []).filter((a) => a.type === "function"), + n = []; + for (let a of t) { + let i = yKe(a.name, e, "methods"), + s = + a.inputs?.map((w) => `${w.name || "key"}: ${LV(w)}`)?.join(", ") || + "", + c = s ? `, ${s}` : "", + l = a.outputs?.map((w) => LV(w, !0))?.join(", "), + d = l ? `: Promise<${l}>` : ": Promise", + m = `contract.call("${a.name}"${c})${d}`; + n.push({ + inputs: a.inputs || [], + outputs: a.outputs || [], + name: a.name || "unknown", + signature: m, + stateMutability: a.stateMutability || "", + comment: i, + }); + } + return n; + } + function bKe(r, e) { + let t = (r || []).filter((a) => a.type === "event"), + n = []; + for (let a of t) { + let i = yKe(a.name, e, "events"); + n.push({ + inputs: a.inputs || [], + outputs: a.outputs || [], + name: a.name || "unknown", + comment: i, + }); + } + return n; + } + function LV(r) { + let e = + arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1, + t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !1, + n = r.type, + a = !1; + return ( + n.endsWith("[]") && ((a = !0), (n = n.slice(0, -2))), + n.startsWith("bytes") && (n = "BytesLike"), + (n.startsWith("uint") || n.startsWith("int")) && + (n = e ? "BigNumber" : "BigNumberish"), + n.startsWith("bool") && (n = "boolean"), + n === "address" && (n = "string"), + n === "tuple" && + r.components && + (n = `{ ${r.components.map((i) => LV(i, !1, !0)).join(", ")} }`), + a && (n += "[]"), + t && (n = `${r.name}: ${n}`), + n + ); + } + function vKe(r) { + if (r.startsWith("0x363d3d373d3d3d363d73")) return `0x${r.slice(22, 62)}`; + if (r.startsWith("0x36603057343d5230")) return `0x${r.slice(122, 162)}`; + if (r.startsWith("0x3d3d3d3d363d3d37363d73")) + return `0x${r.slice(24, 64)}`; + if (r.startsWith("0x366000600037611000600036600073")) + return `0x${r.slice(32, 72)}`; + } + async function V3(r, e) { + let t = await e.getCode(r); + if (t === "0x") { + let n = await e.getNetwork(); + throw new Error( + `Contract at ${r} does not exist on chain '${n.name}' (chainId: ${n.chainId})` + ); + } + try { + let n = vKe(t); + if (n) return await V3(n, e); + } catch {} + try { + let n = await e.getStorageAt( + r, + se.BigNumber.from( + "0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc" + ) + ), + a = se.ethers.utils.hexStripZeros(n); + if (a !== "0x") return await V3(a, e); + } catch {} + return await wKe(t); + } + function wKe(r) { + let e = vhr(r), + t = e[e.length - 2] * 256 + e[e.length - 1], + n = Uint8Array.from(e.slice(e.length - 2 - t, -2)), + a = yhr(n); + if ("ipfs" in a && a.ipfs) + try { + return `ipfs://${Vdr.default.encode(a.ipfs)}`; + } catch (i) { + console.warn("feature-detection ipfs cbor failed", i); + } + } + function vhr(r) { + if (((r = r.toString(16)), r.startsWith("0x") || (r = `0x${r}`), !whr(r))) + throw new Error(`Given value "${r}" is not a valid hex string.`); + r = r.replace(/^0x/i, ""); + let e = []; + for (let t = 0; t < r.length; t += 2) + e.push(parseInt(r.slice(t, t + 2), 16)); + return e; + } + function whr(r) { + return ( + (typeof r == "string" || typeof r == "number") && + /^(-)?0x[0-9a-f]*$/i.test(r.toString()) + ); + } + async function AG(r, e) { + return n6.parse(JSON.parse(await (await e.download(r)).text())); + } + async function f2(r, e) { + let t = await AG(r, e), + n = await (await e.download(t.bytecodeUri)).text(), + a = await vR(t.metadataUri, e); + return KKe.parse({ ...t, ...a, bytecode: n }); + } + async function kG(r, e) { + let t = await (await e.download(r)).text(); + return WKe.parse(JSON.parse(t)); + } + function r6(r) { + let e = + arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : thr, + t = {}; + for (let n in e) { + let a = e[n], + i = ghr(r, a), + s = r6(r, a.features); + t[n] = { ...a, features: s, enabled: i }; + } + return t; + } + function SG(r, e) { + if (!!r) + for (let t in r) { + let n = r[t]; + n.enabled && e.push(n), SG(n.features, e); + } + } + function _hr(r) { + let e = []; + return SG(r6(r), e), e; + } + function xhr(r) { + let e = []; + return SG(r6(r), e), e.map((t) => t.name); + } + function MG(r, e) { + let t = r6(r); + return _Ke(t, e); + } + function br(r, e) { + if (!r) throw new Wf(e); + return r; + } + function Lt(r, e) { + return MG(ap.parse(r.abi), e); + } + function _Ke(r, e) { + let t = Object.keys(r); + if (!t.includes(e)) { + let a = !1; + for (let i of t) { + let s = r[i]; + if (((a = _Ke(s.features, e)), a)) break; + } + return a; + } + return r[e].enabled; + } + function sc(r, e) { + return r in e.readContract.functions; + } + X.ListingType = void 0; + (function (r) { + (r[(r.Direct = 0)] = "Direct"), (r[(r.Auction = 1)] = "Auction"); + })(X.ListingType || (X.ListingType = {})); + X.Status = void 0; + (function (r) { + (r[(r.UNSET = 0)] = "UNSET"), + (r[(r.Created = 1)] = "Created"), + (r[(r.Completed = 2)] = "Completed"), + (r[(r.Cancelled = 3)] = "Cancelled"), + (r[(r.Active = 4)] = "Active"), + (r[(r.Expired = 5)] = "Expired"); + })(X.Status || (X.Status = {})); + X.ProposalState = void 0; + (function (r) { + (r[(r.Pending = 0)] = "Pending"), + (r[(r.Active = 1)] = "Active"), + (r[(r.Canceled = 2)] = "Canceled"), + (r[(r.Defeated = 3)] = "Defeated"), + (r[(r.Succeeded = 4)] = "Succeeded"), + (r[(r.Queued = 5)] = "Queued"), + (r[(r.Expired = 6)] = "Expired"), + (r[(r.Executed = 7)] = "Executed"); + })(X.ProposalState || (X.ProposalState = {})); + X.VoteType = void 0; + (function (r) { + (r[(r.Against = 0)] = "Against"), + (r[(r.For = 1)] = "For"), + (r[(r.Abstain = 2)] = "Abstain"); + })(X.VoteType || (X.VoteType = {})); + X.ClaimEligibility = void 0; + (function (r) { + (r.NotEnoughSupply = "There is not enough supply to claim."), + (r.AddressNotAllowed = "This address is not on the allowlist."), + (r.WaitBeforeNextClaimTransaction = + "Not enough time since last claim transaction. Please wait."), + (r.AlreadyClaimed = "You have already claimed the token."), + (r.NotEnoughTokens = + "There are not enough tokens in the wallet to pay for the claim."), + (r.NoActiveClaimPhase = + "There is no active claim phase at the moment. Please check back in later."), + (r.NoClaimConditionSet = "There is no claim condition set."), + (r.NoWallet = "No wallet connected."), + (r.Unknown = "No claim conditions found."); + })(X.ClaimEligibility || (X.ClaimEligibility = {})); + var G3 = class { + constructor(e) { + le._defineProperty(this, "contractWrapper", void 0), + (this.contractWrapper = e); + } + async gasCostOf(e, t) { + let n = await this.contractWrapper.getPreferredGasPrice(), + a = await this.contractWrapper.estimateGas(e, t); + return se.ethers.utils.formatEther(a.mul(n)); + } + async gasLimitOf(e, t) { + return this.contractWrapper.estimateGas(e, t); + } + async currentGasPriceInGwei() { + let e = await this.contractWrapper.getProvider().getGasPrice(); + return se.ethers.utils.formatUnits(e, "gwei"); + } + }, + Xl = class { + static make(e) { + return new Xl(e); + } + constructor(e) { + le._defineProperty(this, "contractWrapper", void 0), + le._defineProperty(this, "functionName", void 0), + le._defineProperty(this, "args", void 0), + le._defineProperty(this, "overrides", void 0), + le._defineProperty(this, "encoder", void 0), + le._defineProperty(this, "estimator", void 0), + (this.contractWrapper = e.contractWrapper), + (this.functionName = e.functionName), + (this.args = e.args || []), + (this.overrides = e.overrides), + (this.encoder = new u2(this.contractWrapper)), + (this.estimator = new G3(this.contractWrapper)); + } + overrideGasLimit(e) { + return (this.overrides = { ...this.overrides, gasLimit: e }), this; + } + overrideGasPrice(e) { + return (this.overrides = { ...this.overrides, gasPrice: e }), this; + } + overrideNonce(e) { + return (this.overrides = { ...this.overrides, nonce: e }), this; + } + overrideValue(e) { + return (this.overrides = { ...this.overrides, value: e }), this; + } + async estimateGasLimit() { + return await this.estimator.gasLimitOf(this.functionName, [ + ...this.args, + this.overrides || {}, + ]); + } + async estimateGasCostInEther() { + return await this.estimator.gasCostOf(this.functionName, [ + ...this.args, + this.overrides || {}, + ]); + } + async encodeFunctionData() { + return this.encoder.encode(this.functionName, this.args); + } + async submit() { + return await this.contractWrapper.sendTransactionByFunction( + this.functionName, + this.args, + this.overrides || {} + ); + } + async execute() { + return { + receipt: await this.contractWrapper.sendTransaction( + this.functionName, + this.args, + this.overrides || {} + ), + }; + } + }, + Y3 = class { + constructor(e, t, n) { + le._defineProperty(this, "contractWrapper", void 0), + le._defineProperty(this, "metadata", void 0), + le._defineProperty(this, "storage", void 0), + (this.storage = n), + (this.contractWrapper = e), + (this.metadata = t); + } + async getActive(e) { + let t = await this.get(), + n = await this.metadata.get(); + return await w9( + t, + await this.getTokenDecimals(), + this.contractWrapper.getProvider(), + n.merkle || {}, + this.storage, + e?.withAllowList || !1 + ); + } + async get(e) { + if (this.isLegacySinglePhaseDrop(this.contractWrapper)) { + let t = await this.contractWrapper.readContract.claimCondition(); + return b9(t); + } else if (this.isLegacyMultiPhaseDrop(this.contractWrapper)) { + let t = + e !== void 0 + ? e + : await this.contractWrapper.readContract.getActiveClaimConditionId(), + n = await this.contractWrapper.readContract.getClaimConditionById( + t + ); + return b9(n); + } else if (this.isNewSinglePhaseDrop(this.contractWrapper)) { + let t = await this.contractWrapper.readContract.claimCondition(); + return v9(t); + } else if (this.isNewMultiphaseDrop(this.contractWrapper)) { + let t = + e !== void 0 + ? e + : await this.contractWrapper.readContract.getActiveClaimConditionId(), + n = await this.contractWrapper.readContract.getClaimConditionById( + t + ); + return v9(n); + } else throw new Error("Contract does not support claim conditions"); + } + async getAll(e) { + if ( + this.isLegacyMultiPhaseDrop(this.contractWrapper) || + this.isNewMultiphaseDrop(this.contractWrapper) + ) { + let t = await this.contractWrapper.readContract.claimCondition(), + n = t.currentStartId.toNumber(), + a = t.count.toNumber(), + i = []; + for (let l = n; l < n + a; l++) i.push(await this.get(l)); + let s = await this.metadata.get(), + c = await this.getTokenDecimals(); + return Promise.all( + i.map((l) => + w9( + l, + c, + this.contractWrapper.getProvider(), + s.merkle, + this.storage, + e?.withAllowList || !1 + ) + ) + ); + } else return [await this.getActive(e)]; + } + async canClaim(e, t) { + return (await this.getClaimIneligibilityReasons(e, t)).length === 0; + } + async getClaimIneligibilityReasons(e, t) { + let n = [], + a, + i, + s = await this.getTokenDecimals(), + c = se.ethers.utils.parseUnits(le.AmountSchema.parse(e), s); + if (t === void 0) + try { + t = await this.contractWrapper.getSignerAddress(); + } catch (w) { + console.warn("failed to get signer address", w); + } + if (!t) return [X.ClaimEligibility.NoWallet]; + try { + i = await this.getActive(); + } catch (w) { + return L3(w, "!CONDITION") || L3(w, "no active mint condition") + ? (n.push(X.ClaimEligibility.NoClaimConditionSet), n) + : (console.warn("failed to get active claim condition", w), + n.push(X.ClaimEligibility.Unknown), + n); + } + i.availableSupply !== "unlimited" && + se.ethers.utils.parseUnits(i.availableSupply, s).lt(c) && + n.push(X.ClaimEligibility.NotEnoughSupply); + let d = se.ethers.utils.stripZeros(i.merkleRootHash).length > 0, + m = null; + if (d) { + if ( + ((m = await this.getClaimerProofs(t)), + !m && + (this.isLegacySinglePhaseDrop(this.contractWrapper) || + this.isLegacyMultiPhaseDrop(this.contractWrapper))) + ) + return n.push(X.ClaimEligibility.AddressNotAllowed), n; + if (m) + try { + let w = await this.prepareClaim(e, !1, s, t), + C; + if (this.isLegacyMultiPhaseDrop(this.contractWrapper)) { + if ( + ((a = + await this.contractWrapper.readContract.getActiveClaimConditionId()), + ([C] = + await this.contractWrapper.readContract.verifyClaimMerkleProof( + a, + t, + e, + w.proofs, + w.maxClaimable + )), + !C) + ) + return n.push(X.ClaimEligibility.AddressNotAllowed), n; + } else if (this.isLegacySinglePhaseDrop(this.contractWrapper)) { + if ( + (([C] = + await this.contractWrapper.readContract.verifyClaimMerkleProof( + t, + e, + { + proof: w.proofs, + maxQuantityInAllowlist: w.maxClaimable, + } + )), + !C) + ) + return n.push(X.ClaimEligibility.AddressNotAllowed), n; + } else if (this.isNewSinglePhaseDrop(this.contractWrapper)) { + if ( + (await this.contractWrapper.readContract.verifyClaim( + t, + e, + w.currencyAddress, + w.price, + { + proof: w.proofs, + quantityLimitPerWallet: w.maxClaimable, + currency: w.currencyAddressInProof, + pricePerToken: w.priceInProof, + } + ), + (gh(i.maxClaimablePerWallet, s).eq(0) && + w.maxClaimable === se.ethers.constants.MaxUint256) || + w.maxClaimable === se.BigNumber.from(0)) + ) + return n.push(X.ClaimEligibility.AddressNotAllowed), n; + } else if ( + this.isNewMultiphaseDrop(this.contractWrapper) && + ((a = + await this.contractWrapper.readContract.getActiveClaimConditionId()), + await this.contractWrapper.readContract.verifyClaim( + a, + t, + e, + w.currencyAddress, + w.price, + { + proof: w.proofs, + quantityLimitPerWallet: w.maxClaimable, + currency: w.currencyAddressInProof, + pricePerToken: w.priceInProof, + } + ), + (gh(i.maxClaimablePerWallet, s).eq(0) && + w.maxClaimable === se.ethers.constants.MaxUint256) || + w.maxClaimable === se.BigNumber.from(0)) + ) + return n.push(X.ClaimEligibility.AddressNotAllowed), n; + } catch (w) { + return ( + console.warn( + "Merkle proof verification failed:", + "reason" in w ? w.reason : w + ), + n.push(X.ClaimEligibility.AddressNotAllowed), + n + ); + } + } + if ( + this.isNewSinglePhaseDrop(this.contractWrapper) || + this.isNewMultiphaseDrop(this.contractWrapper) + ) { + let w = await this.getClaimerProofs(t), + C = se.BigNumber.from(0), + I = gh(i.maxClaimablePerWallet, s); + if ( + (this.isNewSinglePhaseDrop(this.contractWrapper) && + (C = + await this.contractWrapper.readContract.getSupplyClaimedByWallet( + t + )), + this.isNewMultiphaseDrop(this.contractWrapper)) + ) { + let k = + await this.contractWrapper.readContract.getActiveClaimConditionId(); + C = + await this.contractWrapper.readContract.getSupplyClaimedByWallet( + k, + t + ); + } + if ( + (w && (I = gh(w.maxClaimable, s)), + (!d || (d && !m)) && (I.lte(C) || I.eq(0))) + ) + return n.push(X.ClaimEligibility.AddressNotAllowed), n; + } + if ( + this.isLegacySinglePhaseDrop(this.contractWrapper) || + this.isLegacyMultiPhaseDrop(this.contractWrapper) + ) { + let [w, C] = [se.BigNumber.from(0), se.BigNumber.from(0)]; + this.isLegacyMultiPhaseDrop(this.contractWrapper) + ? ((a = + await this.contractWrapper.readContract.getActiveClaimConditionId()), + ([w, C] = + await this.contractWrapper.readContract.getClaimTimestamp( + a, + t + ))) + : this.isLegacySinglePhaseDrop(this.contractWrapper) && + ([w, C] = + await this.contractWrapper.readContract.getClaimTimestamp(t)); + let I = se.BigNumber.from(Date.now()).div(1e3); + w.gt(0) && + I.lt(C) && + (C.eq(se.constants.MaxUint256) + ? n.push(X.ClaimEligibility.AlreadyClaimed) + : n.push(X.ClaimEligibility.WaitBeforeNextClaimTransaction)); + } + if (i.price.gt(0) && eKe()) { + let w = i.price.mul(se.BigNumber.from(e)), + C = this.contractWrapper.getProvider(); + Ih(i.currencyAddress) + ? (await C.getBalance(t)).lt(w) && + n.push(X.ClaimEligibility.NotEnoughTokens) + : ( + await new ms( + C, + i.currencyAddress, + vu.default, + {} + ).readContract.balanceOf(t) + ).lt(w) && n.push(X.ClaimEligibility.NotEnoughTokens); + } + return n; + } + async getClaimerProofs(e, t) { + let a = (await this.get(t)).merkleRoot; + if (se.ethers.utils.stripZeros(a).length > 0) { + let s = await this.metadata.get(); + return await ER( + e, + a.toString(), + s.merkle, + this.contractWrapper.getProvider(), + this.storage, + this.getSnapshotFormatVersion() + ); + } else return null; + } + async set(e) { + let t = + arguments.length > 1 && arguments[1] !== void 0 + ? arguments[1] + : !1, + n = e; + if ( + this.isLegacySinglePhaseDrop(this.contractWrapper) || + this.isNewSinglePhaseDrop(this.contractWrapper) + ) { + if (((t = !0), e.length === 0)) + n = [ + { + startTime: new Date(0), + currencyAddress: se.ethers.constants.AddressZero, + price: 0, + maxClaimableSupply: 0, + maxClaimablePerWallet: 0, + waitInSeconds: 0, + merkleRootHash: se.utils.hexZeroPad([0], 32), + snapshot: [], + }, + ]; + else if (e.length > 1) + throw new Error( + "Single phase drop contract cannot have multiple claim conditions, only one is allowed" + ); + } + (this.isNewSinglePhaseDrop(this.contractWrapper) || + this.isNewMultiphaseDrop(this.contractWrapper)) && + n.forEach((m) => { + if ( + m.snapshot && + m.snapshot.length > 0 && + (m.maxClaimablePerWallet === void 0 || + m.maxClaimablePerWallet === "unlimited") + ) + throw new Error(`maxClaimablePerWallet must be set to a specific value when an allowlist is set. Example: Set it to 0 to only allow addresses in the allowlist to claim the amount specified in the allowlist. -contract.claimConditions.set([{ snapshot: [{ address: '0x...', maxClaimable: 1 }], maxClaimablePerWallet: 0 }])`);if(f.snapshot&&f.snapshot.length>0&&f.maxClaimablePerWallet?.toString()==="0"&&f.snapshot.map(w=>typeof w=="string"?0:Number(w.maxClaimable?.toString()||0)).reduce((w,E)=>w+E,0)===0)throw new Error("maxClaimablePerWallet is set to 0, and all addresses in the allowlist have max claimable 0. This means that no one can claim.")});let{snapshotInfos:a,sortedConditions:i}=await nGe(n,await this.getTokenDecimals(),this.contractWrapper.getProvider(),this.storage,this.getSnapshotFormatVersion()),s={};a.forEach(f=>{s[f.merkleRoot]=f.snapshotUri});let c=await this.metadata.get(),l=[];if(!iVe.default(c.merkle,s)){let f=this.metadata.parseInputMetadata({...c,merkle:s}),w=await this.metadata._parseAndUploadMetadata(f);if(gc("setContractURI",this.contractWrapper))l.push(this.contractWrapper.readContract.interface.encodeFunctionData("setContractURI",[w]));else throw new Error("Setting a merkle root requires implementing ContractMetadata in your contract to support storing a merkle root.")}let d=this.contractWrapper;if(this.isLegacySinglePhaseDrop(d))l.push(d.readContract.interface.encodeFunctionData("setClaimConditions",[C7(i[0]),t]));else if(this.isLegacyMultiPhaseDrop(d))l.push(d.readContract.interface.encodeFunctionData("setClaimConditions",[i.map(C7),t]));else if(this.isNewSinglePhaseDrop(d))l.push(d.readContract.interface.encodeFunctionData("setClaimConditions",[E7(i[0]),t]));else if(this.isNewMultiphaseDrop(d))l.push(d.readContract.interface.encodeFunctionData("setClaimConditions",[i.map(E7),t]));else throw new Error("Contract does not support claim conditions");return{receipt:await this.contractWrapper.multiCall(l)}}async update(e,t){let n=await this.getAll(),a=await rGe(e,t,n);return await this.set(a)}async getTokenDecimals(){return Ft(this.contractWrapper,"ERC20")?this.contractWrapper.readContract.decimals():Promise.resolve(0)}async prepareClaim(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,a=arguments.length>3?arguments[3]:void 0,i=a||await this.contractWrapper.getSignerAddress();return tGe(i,e,await this.getActive(),async()=>(await this.metadata.get()).merkle,n,this.contractWrapper,this.storage,t,this.getSnapshotFormatVersion())}async getClaimArguments(e,t,n){return this.isLegacyMultiPhaseDrop(this.contractWrapper)?[e,t,n.currencyAddress,n.price,n.proofs,n.maxClaimable]:this.isLegacySinglePhaseDrop(this.contractWrapper)?[e,t,n.currencyAddress,n.price,{proof:n.proofs,maxQuantityInAllowlist:n.maxClaimable},oe.ethers.utils.toUtf8Bytes("")]:[e,t,n.currencyAddress,n.price,{proof:n.proofs,quantityLimitPerWallet:n.maxClaimable,pricePerToken:n.priceInProof,currency:n.currencyAddressInProof},oe.ethers.utils.toUtf8Bytes("")]}async getClaimTransaction(e,t,n){if(n?.pricePerToken)throw new Error("Price per token is be set via claim conditions by calling `contract.erc721.claimConditions.set()`");let a=await this.prepareClaim(t,n?.checkERC20Allowance===void 0?!0:n.checkERC20Allowance,await this.getTokenDecimals());return xd.make({contractWrapper:this.contractWrapper,functionName:"claim",args:await this.getClaimArguments(e,t,a),overrides:a.overrides})}isNewSinglePhaseDrop(e){return Ft(e,"ERC721ClaimConditionsV2")||Ft(e,"ERC20ClaimConditionsV2")}isNewMultiphaseDrop(e){return Ft(e,"ERC721ClaimPhasesV2")||Ft(e,"ERC20ClaimPhasesV2")}isLegacySinglePhaseDrop(e){return Ft(e,"ERC721ClaimConditionsV1")||Ft(e,"ERC20ClaimConditionsV1")}isLegacyMultiPhaseDrop(e){return Ft(e,"ERC721ClaimPhasesV1")||Ft(e,"ERC20ClaimPhasesV1")}getSnapshotFormatVersion(){return this.isLegacyMultiPhaseDrop(this.contractWrapper)||this.isLegacySinglePhaseDrop(this.contractWrapper)?hm.V1:hm.V2}},tR=class{constructor(e,t,n){le._defineProperty(this,"contractWrapper",void 0),le._defineProperty(this,"metadata",void 0),le._defineProperty(this,"storage",void 0),this.storage=n,this.contractWrapper=e,this.metadata=t}async getActive(e,t){let n=await this.get(e),a=await this.metadata.get();return await A7(n,0,this.contractWrapper.getProvider(),a.merkle,this.storage,t?.withAllowList||!1)}async get(e,t){if(this.isLegacySinglePhaseDrop(this.contractWrapper)){let n=await this.contractWrapper.readContract.claimCondition(e);return k7(n)}else if(this.isLegacyMultiPhaseDrop(this.contractWrapper)){let n=t!==void 0?t:await this.contractWrapper.readContract.getActiveClaimConditionId(e),a=await this.contractWrapper.readContract.getClaimConditionById(e,n);return k7(a)}else if(this.isNewSinglePhaseDrop(this.contractWrapper)){let n=await this.contractWrapper.readContract.claimCondition(e);return S7(n)}else if(this.isNewMultiphaseDrop(this.contractWrapper)){let n=t!==void 0?t:await this.contractWrapper.readContract.getActiveClaimConditionId(e),a=await this.contractWrapper.readContract.getClaimConditionById(e,n);return S7(a)}else throw new Error("Contract does not support claim conditions")}async getAll(e,t){if(this.isLegacyMultiPhaseDrop(this.contractWrapper)||this.isNewMultiphaseDrop(this.contractWrapper)){let n=await this.contractWrapper.readContract.claimCondition(e),a=n.currentStartId.toNumber(),i=n.count.toNumber(),s=[];for(let l=a;lA7(l,0,this.contractWrapper.getProvider(),c.merkle,this.storage,t?.withAllowList||!1)))}else return[await this.getActive(e,t)]}async canClaim(e,t,n){return(await this.getClaimIneligibilityReasons(e,t,n)).length===0}async getClaimIneligibilityReasons(e,t,n){let a=[],i,s;if(n===void 0)try{n=await this.contractWrapper.getSignerAddress()}catch(k){console.warn("failed to get signer address",k)}if(!n)return[$.ClaimEligibility.NoWallet];try{s=await this.getActive(e)}catch(k){return q_(k,"!CONDITION")||q_(k,"no active mint condition")?(a.push($.ClaimEligibility.NoClaimConditionSet),a):(a.push($.ClaimEligibility.Unknown),a)}s.availableSupply!=="unlimited"&&oe.BigNumber.from(s.availableSupply).lt(t)&&a.push($.ClaimEligibility.NotEnoughSupply);let l=oe.ethers.utils.stripZeros(s.merkleRootHash).length>0,d=null;if(l){if(d=await this.getClaimerProofs(e,n),!d&&(this.isLegacySinglePhaseDrop(this.contractWrapper)||this.isLegacyMultiPhaseDrop(this.contractWrapper)))return a.push($.ClaimEligibility.AddressNotAllowed),a;if(d)try{let k=await this.prepareClaim(e,t,!1,n),A;if(this.isLegacyMultiPhaseDrop(this.contractWrapper)){if(i=await this.contractWrapper.readContract.getActiveClaimConditionId(e),[A]=await this.contractWrapper.readContract.verifyClaimMerkleProof(i,n,e,t,k.proofs,k.maxClaimable),!A)return a.push($.ClaimEligibility.AddressNotAllowed),a}else if(this.isLegacySinglePhaseDrop(this.contractWrapper)){if([A]=await this.contractWrapper.readContract.verifyClaimMerkleProof(e,n,t,{proof:k.proofs,maxQuantityInAllowlist:k.maxClaimable}),!A)return a.push($.ClaimEligibility.AddressNotAllowed),a}else if(this.isNewSinglePhaseDrop(this.contractWrapper)){if(await this.contractWrapper.readContract.verifyClaim(e,n,t,k.currencyAddress,k.price,{proof:k.proofs,quantityLimitPerWallet:k.maxClaimable,currency:k.currencyAddressInProof,pricePerToken:k.priceInProof}),s.maxClaimablePerWallet==="0"&&k.maxClaimable===oe.ethers.constants.MaxUint256||k.maxClaimable===oe.BigNumber.from(0))return a.push($.ClaimEligibility.AddressNotAllowed),a}else if(this.isNewMultiphaseDrop(this.contractWrapper)&&(i=await this.contractWrapper.readContract.getActiveClaimConditionId(e),await this.contractWrapper.readContract.verifyClaim(i,n,e,t,k.currencyAddress,k.price,{proof:k.proofs,quantityLimitPerWallet:k.maxClaimable,currency:k.currencyAddressInProof,pricePerToken:k.priceInProof}),s.maxClaimablePerWallet==="0"&&k.maxClaimable===oe.ethers.constants.MaxUint256||k.maxClaimable===oe.BigNumber.from(0)))return a.push($.ClaimEligibility.AddressNotAllowed),a}catch(k){return console.warn("Merkle proof verification failed:","reason"in k?k.reason:k),a.push($.ClaimEligibility.AddressNotAllowed),a}}if((this.isNewSinglePhaseDrop(this.contractWrapper)||this.isNewMultiphaseDrop(this.contractWrapper))&&(!l||l&&!d)&&s.maxClaimablePerWallet==="0")return a.push($.ClaimEligibility.AddressNotAllowed),a;let[f,w]=[oe.BigNumber.from(0),oe.BigNumber.from(0)];this.isLegacyMultiPhaseDrop(this.contractWrapper)?(i=await this.contractWrapper.readContract.getActiveClaimConditionId(e),[f,w]=await this.contractWrapper.readContract.getClaimTimestamp(e,i,n)):this.isLegacySinglePhaseDrop(this.contractWrapper)&&([f,w]=await this.contractWrapper.readContract.getClaimTimestamp(e,n));let E=oe.BigNumber.from(Date.now()).div(1e3);if(f.gt(0)&&E.lt(w)&&(w.eq(oe.constants.MaxUint256)?a.push($.ClaimEligibility.AlreadyClaimed):a.push($.ClaimEligibility.WaitBeforeNextClaimTransaction)),s.price.gt(0)&&$Ve()){let k=s.price.mul(t),A=this.contractWrapper.getProvider();Gh(s.currencyAddress)?(await A.getBalance(n)).lt(k)&&a.push($.ClaimEligibility.NotEnoughTokens):(await new ks(A,s.currencyAddress,Lu.default,{}).readContract.balanceOf(n)).lt(k)&&a.push($.ClaimEligibility.NotEnoughTokens)}return a}async getClaimerProofs(e,t,n){let i=(await this.get(e,n)).merkleRoot;if(oe.ethers.utils.stripZeros(i).length>0){let c=await this.metadata.get();return await RR(t,i.toString(),c.merkle,this.contractWrapper.getProvider(),this.storage,this.getSnapshotFormatVersion())}else return null}async set(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return this.setBatch([{tokenId:e,claimConditions:t}],n)}async setBatch(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n={},a=await Promise.all(e.map(async c=>{let{tokenId:l,claimConditions:d}=c,f=d;if(this.isLegacySinglePhaseDrop(this.contractWrapper)){if(t=!0,d.length===0)f=[{startTime:new Date(0),currencyAddress:oe.ethers.constants.AddressZero,price:0,maxClaimableSupply:0,maxClaimablePerWallet:0,waitInSeconds:0,merkleRootHash:oe.utils.hexZeroPad([0],32),snapshot:[]}];else if(d.length>1)throw new Error("Single phase drop contract cannot have multiple claim conditions, only one is allowed")}(this.isNewSinglePhaseDrop(this.contractWrapper)||this.isNewMultiphaseDrop(this.contractWrapper))&&f.forEach(k=>{if(k.snapshot&&k.snapshot.length>0&&(k.maxClaimablePerWallet===void 0||k.maxClaimablePerWallet==="unlimited"))throw new Error(`maxClaimablePerWallet must be set to a specific value when an allowlist is set. +contract.claimConditions.set([{ snapshot: [{ address: '0x...', maxClaimable: 1 }], maxClaimablePerWallet: 0 }])`); + if ( + m.snapshot && + m.snapshot.length > 0 && + m.maxClaimablePerWallet?.toString() === "0" && + m.snapshot + .map((w) => + typeof w == "string" + ? 0 + : Number(w.maxClaimable?.toString() || 0) + ) + .reduce((w, C) => w + C, 0) === 0 + ) + throw new Error( + "maxClaimablePerWallet is set to 0, and all addresses in the allowlist have max claimable 0. This means that no one can claim." + ); + }); + let { snapshotInfos: a, sortedConditions: i } = await aKe( + n, + await this.getTokenDecimals(), + this.contractWrapper.getProvider(), + this.storage, + this.getSnapshotFormatVersion() + ), + s = {}; + a.forEach((m) => { + s[m.merkleRoot] = m.snapshotUri; + }); + let c = await this.metadata.get(), + l = []; + if (!sje.default(c.merkle, s)) { + let m = this.metadata.parseInputMetadata({ ...c, merkle: s }), + w = await this.metadata._parseAndUploadMetadata(m); + if (sc("setContractURI", this.contractWrapper)) + l.push( + this.contractWrapper.readContract.interface.encodeFunctionData( + "setContractURI", + [w] + ) + ); + else + throw new Error( + "Setting a merkle root requires implementing ContractMetadata in your contract to support storing a merkle root." + ); + } + let d = this.contractWrapper; + if (this.isLegacySinglePhaseDrop(d)) + l.push( + d.readContract.interface.encodeFunctionData( + "setClaimConditions", + [y9(i[0]), t] + ) + ); + else if (this.isLegacyMultiPhaseDrop(d)) + l.push( + d.readContract.interface.encodeFunctionData( + "setClaimConditions", + [i.map(y9), t] + ) + ); + else if (this.isNewSinglePhaseDrop(d)) + l.push( + d.readContract.interface.encodeFunctionData( + "setClaimConditions", + [g9(i[0]), t] + ) + ); + else if (this.isNewMultiphaseDrop(d)) + l.push( + d.readContract.interface.encodeFunctionData( + "setClaimConditions", + [i.map(g9), t] + ) + ); + else throw new Error("Contract does not support claim conditions"); + return { receipt: await this.contractWrapper.multiCall(l) }; + } + async update(e, t) { + let n = await this.getAll(), + a = await nKe(e, t, n); + return await this.set(a); + } + async getTokenDecimals() { + return Lt(this.contractWrapper, "ERC20") + ? this.contractWrapper.readContract.decimals() + : Promise.resolve(0); + } + async prepareClaim(e, t) { + let n = + arguments.length > 2 && arguments[2] !== void 0 + ? arguments[2] + : 0, + a = arguments.length > 3 ? arguments[3] : void 0, + i = a || (await this.contractWrapper.getSignerAddress()); + return rKe( + i, + e, + await this.getActive(), + async () => (await this.metadata.get()).merkle, + n, + this.contractWrapper, + this.storage, + t, + this.getSnapshotFormatVersion() + ); + } + async getClaimArguments(e, t, n) { + return this.isLegacyMultiPhaseDrop(this.contractWrapper) + ? [e, t, n.currencyAddress, n.price, n.proofs, n.maxClaimable] + : this.isLegacySinglePhaseDrop(this.contractWrapper) + ? [ + e, + t, + n.currencyAddress, + n.price, + { proof: n.proofs, maxQuantityInAllowlist: n.maxClaimable }, + se.ethers.utils.toUtf8Bytes(""), + ] + : [ + e, + t, + n.currencyAddress, + n.price, + { + proof: n.proofs, + quantityLimitPerWallet: n.maxClaimable, + pricePerToken: n.priceInProof, + currency: n.currencyAddressInProof, + }, + se.ethers.utils.toUtf8Bytes(""), + ]; + } + async getClaimTransaction(e, t, n) { + if (n?.pricePerToken) + throw new Error( + "Price per token is be set via claim conditions by calling `contract.erc721.claimConditions.set()`" + ); + let a = await this.prepareClaim( + t, + n?.checkERC20Allowance === void 0 ? !0 : n.checkERC20Allowance, + await this.getTokenDecimals() + ); + return Xl.make({ + contractWrapper: this.contractWrapper, + functionName: "claim", + args: await this.getClaimArguments(e, t, a), + overrides: a.overrides, + }); + } + isNewSinglePhaseDrop(e) { + return ( + Lt(e, "ERC721ClaimConditionsV2") || Lt(e, "ERC20ClaimConditionsV2") + ); + } + isNewMultiphaseDrop(e) { + return Lt(e, "ERC721ClaimPhasesV2") || Lt(e, "ERC20ClaimPhasesV2"); + } + isLegacySinglePhaseDrop(e) { + return ( + Lt(e, "ERC721ClaimConditionsV1") || Lt(e, "ERC20ClaimConditionsV1") + ); + } + isLegacyMultiPhaseDrop(e) { + return Lt(e, "ERC721ClaimPhasesV1") || Lt(e, "ERC20ClaimPhasesV1"); + } + getSnapshotFormatVersion() { + return this.isLegacyMultiPhaseDrop(this.contractWrapper) || + this.isLegacySinglePhaseDrop(this.contractWrapper) + ? Uf.V1 + : Uf.V2; + } + }, + G9 = class { + constructor(e, t, n) { + le._defineProperty(this, "contractWrapper", void 0), + le._defineProperty(this, "metadata", void 0), + le._defineProperty(this, "storage", void 0), + (this.storage = n), + (this.contractWrapper = e), + (this.metadata = t); + } + async getActive(e, t) { + let n = await this.get(e), + a = await this.metadata.get(); + return await w9( + n, + 0, + this.contractWrapper.getProvider(), + a.merkle, + this.storage, + t?.withAllowList || !1 + ); + } + async get(e, t) { + if (this.isLegacySinglePhaseDrop(this.contractWrapper)) { + let n = await this.contractWrapper.readContract.claimCondition(e); + return b9(n); + } else if (this.isLegacyMultiPhaseDrop(this.contractWrapper)) { + let n = + t !== void 0 + ? t + : await this.contractWrapper.readContract.getActiveClaimConditionId( + e + ), + a = await this.contractWrapper.readContract.getClaimConditionById( + e, + n + ); + return b9(a); + } else if (this.isNewSinglePhaseDrop(this.contractWrapper)) { + let n = await this.contractWrapper.readContract.claimCondition(e); + return v9(n); + } else if (this.isNewMultiphaseDrop(this.contractWrapper)) { + let n = + t !== void 0 + ? t + : await this.contractWrapper.readContract.getActiveClaimConditionId( + e + ), + a = await this.contractWrapper.readContract.getClaimConditionById( + e, + n + ); + return v9(a); + } else throw new Error("Contract does not support claim conditions"); + } + async getAll(e, t) { + if ( + this.isLegacyMultiPhaseDrop(this.contractWrapper) || + this.isNewMultiphaseDrop(this.contractWrapper) + ) { + let n = await this.contractWrapper.readContract.claimCondition(e), + a = n.currentStartId.toNumber(), + i = n.count.toNumber(), + s = []; + for (let l = a; l < a + i; l++) s.push(await this.get(e, l)); + let c = await this.metadata.get(); + return Promise.all( + s.map((l) => + w9( + l, + 0, + this.contractWrapper.getProvider(), + c.merkle, + this.storage, + t?.withAllowList || !1 + ) + ) + ); + } else return [await this.getActive(e, t)]; + } + async canClaim(e, t, n) { + return ( + (await this.getClaimIneligibilityReasons(e, t, n)).length === 0 + ); + } + async getClaimIneligibilityReasons(e, t, n) { + let a = [], + i, + s; + if (n === void 0) + try { + n = await this.contractWrapper.getSignerAddress(); + } catch (I) { + console.warn("failed to get signer address", I); + } + if (!n) return [X.ClaimEligibility.NoWallet]; + try { + s = await this.getActive(e); + } catch (I) { + return L3(I, "!CONDITION") || L3(I, "no active mint condition") + ? (a.push(X.ClaimEligibility.NoClaimConditionSet), a) + : (a.push(X.ClaimEligibility.Unknown), a); + } + s.availableSupply !== "unlimited" && + se.BigNumber.from(s.availableSupply).lt(t) && + a.push(X.ClaimEligibility.NotEnoughSupply); + let l = se.ethers.utils.stripZeros(s.merkleRootHash).length > 0, + d = null; + if (l) { + if ( + ((d = await this.getClaimerProofs(e, n)), + !d && + (this.isLegacySinglePhaseDrop(this.contractWrapper) || + this.isLegacyMultiPhaseDrop(this.contractWrapper))) + ) + return a.push(X.ClaimEligibility.AddressNotAllowed), a; + if (d) + try { + let I = await this.prepareClaim(e, t, !1, n), + k; + if (this.isLegacyMultiPhaseDrop(this.contractWrapper)) { + if ( + ((i = + await this.contractWrapper.readContract.getActiveClaimConditionId( + e + )), + ([k] = + await this.contractWrapper.readContract.verifyClaimMerkleProof( + i, + n, + e, + t, + I.proofs, + I.maxClaimable + )), + !k) + ) + return a.push(X.ClaimEligibility.AddressNotAllowed), a; + } else if (this.isLegacySinglePhaseDrop(this.contractWrapper)) { + if ( + (([k] = + await this.contractWrapper.readContract.verifyClaimMerkleProof( + e, + n, + t, + { + proof: I.proofs, + maxQuantityInAllowlist: I.maxClaimable, + } + )), + !k) + ) + return a.push(X.ClaimEligibility.AddressNotAllowed), a; + } else if (this.isNewSinglePhaseDrop(this.contractWrapper)) { + if ( + (await this.contractWrapper.readContract.verifyClaim( + e, + n, + t, + I.currencyAddress, + I.price, + { + proof: I.proofs, + quantityLimitPerWallet: I.maxClaimable, + currency: I.currencyAddressInProof, + pricePerToken: I.priceInProof, + } + ), + (s.maxClaimablePerWallet === "0" && + I.maxClaimable === se.ethers.constants.MaxUint256) || + I.maxClaimable === se.BigNumber.from(0)) + ) + return a.push(X.ClaimEligibility.AddressNotAllowed), a; + } else if ( + this.isNewMultiphaseDrop(this.contractWrapper) && + ((i = + await this.contractWrapper.readContract.getActiveClaimConditionId( + e + )), + await this.contractWrapper.readContract.verifyClaim( + i, + n, + e, + t, + I.currencyAddress, + I.price, + { + proof: I.proofs, + quantityLimitPerWallet: I.maxClaimable, + currency: I.currencyAddressInProof, + pricePerToken: I.priceInProof, + } + ), + (s.maxClaimablePerWallet === "0" && + I.maxClaimable === se.ethers.constants.MaxUint256) || + I.maxClaimable === se.BigNumber.from(0)) + ) + return a.push(X.ClaimEligibility.AddressNotAllowed), a; + } catch (I) { + return ( + console.warn( + "Merkle proof verification failed:", + "reason" in I ? I.reason : I + ), + a.push(X.ClaimEligibility.AddressNotAllowed), + a + ); + } + } + if ( + (this.isNewSinglePhaseDrop(this.contractWrapper) || + this.isNewMultiphaseDrop(this.contractWrapper)) && + (!l || (l && !d)) && + s.maxClaimablePerWallet === "0" + ) + return a.push(X.ClaimEligibility.AddressNotAllowed), a; + let [m, w] = [se.BigNumber.from(0), se.BigNumber.from(0)]; + this.isLegacyMultiPhaseDrop(this.contractWrapper) + ? ((i = + await this.contractWrapper.readContract.getActiveClaimConditionId( + e + )), + ([m, w] = + await this.contractWrapper.readContract.getClaimTimestamp( + e, + i, + n + ))) + : this.isLegacySinglePhaseDrop(this.contractWrapper) && + ([m, w] = + await this.contractWrapper.readContract.getClaimTimestamp( + e, + n + )); + let C = se.BigNumber.from(Date.now()).div(1e3); + if ( + (m.gt(0) && + C.lt(w) && + (w.eq(se.constants.MaxUint256) + ? a.push(X.ClaimEligibility.AlreadyClaimed) + : a.push(X.ClaimEligibility.WaitBeforeNextClaimTransaction)), + s.price.gt(0) && eKe()) + ) { + let I = s.price.mul(t), + k = this.contractWrapper.getProvider(); + Ih(s.currencyAddress) + ? (await k.getBalance(n)).lt(I) && + a.push(X.ClaimEligibility.NotEnoughTokens) + : ( + await new ms( + k, + s.currencyAddress, + vu.default, + {} + ).readContract.balanceOf(n) + ).lt(I) && a.push(X.ClaimEligibility.NotEnoughTokens); + } + return a; + } + async getClaimerProofs(e, t, n) { + let i = (await this.get(e, n)).merkleRoot; + if (se.ethers.utils.stripZeros(i).length > 0) { + let c = await this.metadata.get(); + return await ER( + t, + i.toString(), + c.merkle, + this.contractWrapper.getProvider(), + this.storage, + this.getSnapshotFormatVersion() + ); + } else return null; + } + async set(e, t) { + let n = + arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !1; + return this.setBatch([{ tokenId: e, claimConditions: t }], n); + } + async setBatch(e) { + let t = + arguments.length > 1 && arguments[1] !== void 0 + ? arguments[1] + : !1, + n = {}, + a = await Promise.all( + e.map(async (c) => { + let { tokenId: l, claimConditions: d } = c, + m = d; + if (this.isLegacySinglePhaseDrop(this.contractWrapper)) { + if (((t = !0), d.length === 0)) + m = [ + { + startTime: new Date(0), + currencyAddress: se.ethers.constants.AddressZero, + price: 0, + maxClaimableSupply: 0, + maxClaimablePerWallet: 0, + waitInSeconds: 0, + merkleRootHash: se.utils.hexZeroPad([0], 32), + snapshot: [], + }, + ]; + else if (d.length > 1) + throw new Error( + "Single phase drop contract cannot have multiple claim conditions, only one is allowed" + ); + } + (this.isNewSinglePhaseDrop(this.contractWrapper) || + this.isNewMultiphaseDrop(this.contractWrapper)) && + m.forEach((I) => { + if ( + I.snapshot && + I.snapshot.length > 0 && + (I.maxClaimablePerWallet === void 0 || + I.maxClaimablePerWallet === "unlimited") + ) + throw new Error(`maxClaimablePerWallet must be set to a specific value when an allowlist is set. Set it to 0 to only allow addresses in the allowlist to claim the amount specified in the allowlist. ex: -contract.claimConditions.set(tokenId, [{ snapshot: [{ address: '0x...', maxClaimable: 1 }], maxClaimablePerWallet: 0 }])`);if(k.snapshot&&k.snapshot.length>0&&k.maxClaimablePerWallet?.toString()==="0"&&k.snapshot.map(A=>typeof A=="string"?0:Number(A.maxClaimable?.toString()||0)).reduce((A,L)=>A+L,0)===0)throw new Error("maxClaimablePerWallet is set to 0, and all addresses in the allowlist have max claimable 0. This means that no one can claim.")});let{snapshotInfos:w,sortedConditions:E}=await nGe(f,0,this.contractWrapper.getProvider(),this.storage,this.getSnapshotFormatVersion());return w.forEach(k=>{n[k.merkleRoot]=k.snapshotUri}),{tokenId:l,sortedConditions:E}})),i=await this.metadata.get(),s=[];for(let c of Object.keys(i.merkle||{}))n[c]=i.merkle[c];if(!iVe.default(i.merkle,n)){let c=this.metadata.parseInputMetadata({...i,merkle:n}),l=await this.metadata._parseAndUploadMetadata(c);if(gc("setContractURI",this.contractWrapper))s.push(this.contractWrapper.readContract.interface.encodeFunctionData("setContractURI",[l]));else throw new Error("Setting a merkle root requires implementing ContractMetadata in your contract to support storing a merkle root.")}return a.forEach(c=>{let{tokenId:l,sortedConditions:d}=c;if(this.isLegacySinglePhaseDrop(this.contractWrapper))s.push(this.contractWrapper.readContract.interface.encodeFunctionData("setClaimConditions",[l,C7(d[0]),t]));else if(this.isLegacyMultiPhaseDrop(this.contractWrapper))s.push(this.contractWrapper.readContract.interface.encodeFunctionData("setClaimConditions",[l,d.map(C7),t]));else if(this.isNewSinglePhaseDrop(this.contractWrapper))s.push(this.contractWrapper.readContract.interface.encodeFunctionData("setClaimConditions",[l,E7(d[0]),t]));else if(this.isNewMultiphaseDrop(this.contractWrapper))s.push(this.contractWrapper.readContract.interface.encodeFunctionData("setClaimConditions",[l,d.map(E7),t]));else throw new Error("Contract does not support claim conditions")}),{receipt:await this.contractWrapper.multiCall(s)}}async update(e,t,n){let a=await this.getAll(e),i=await rGe(t,n,a);return await this.set(e,i)}async prepareClaim(e,t,n,a){let i=a||await this.contractWrapper.getSignerAddress();return tGe(i,t,await this.getActive(e),async()=>(await this.metadata.get()).merkle,0,this.contractWrapper,this.storage,n,this.getSnapshotFormatVersion())}async getClaimArguments(e,t,n,a){return this.isLegacyMultiPhaseDrop(this.contractWrapper)?[t,e,n,a.currencyAddress,a.price,a.proofs,a.maxClaimable]:this.isLegacySinglePhaseDrop(this.contractWrapper)?[t,e,n,a.currencyAddress,a.price,{proof:a.proofs,maxQuantityInAllowlist:a.maxClaimable},oe.ethers.utils.toUtf8Bytes("")]:[t,e,n,a.currencyAddress,a.price,{proof:a.proofs,quantityLimitPerWallet:a.maxClaimable,pricePerToken:a.priceInProof,currency:a.currencyAddressInProof},oe.ethers.utils.toUtf8Bytes("")]}async getClaimTransaction(e,t,n,a){if(a?.pricePerToken)throw new Error("Price per token should be set via claim conditions by calling `contract.erc1155.claimConditions.set()`");let i=await this.prepareClaim(t,n,a?.checkERC20Allowance||!0);return xd.make({contractWrapper:this.contractWrapper,functionName:"claim",args:await this.getClaimArguments(t,e,n,i),overrides:i.overrides})}isNewSinglePhaseDrop(e){return Ft(e,"ERC1155ClaimConditionsV2")}isNewMultiphaseDrop(e){return Ft(e,"ERC1155ClaimPhasesV2")}isLegacySinglePhaseDrop(e){return Ft(e,"ERC1155ClaimConditionsV1")}isLegacyMultiPhaseDrop(e){return Ft(e,"ERC1155ClaimPhasesV1")}getSnapshotFormatVersion(){return this.isLegacyMultiPhaseDrop(this.contractWrapper)||this.isLegacySinglePhaseDrop(this.contractWrapper)?hm.V1:hm.V2}},KZ=class{constructor(e){le._defineProperty(this,"events",void 0),this.events=e}async getAllClaimerAddresses(e){let t=(await this.events.getEvents("TokensClaimed")).filter(n=>n.data&&oe.BigNumber.isBigNumber(n.data.tokenId)?n.data.tokenId.eq(e):!1);return Array.from(new Set(t.filter(n=>typeof n.data?.claimer=="string").map(n=>n.data.claimer)))}},rR=class{constructor(e,t){le._defineProperty(this,"featureName",U_.name),le._defineProperty(this,"erc20",void 0),le._defineProperty(this,"contractWrapper",void 0),this.erc20=e,this.contractWrapper=t}async tokens(e){return{receipt:await this.contractWrapper.sendTransaction("burn",[await this.erc20.normalizeAmount(e)])}}async from(e,t){return{receipt:await this.contractWrapper.sendTransaction("burnFrom",[e,await this.erc20.normalizeAmount(t)])}}},QZ=class{constructor(e,t,n){le._defineProperty(this,"featureName",F_.name),le._defineProperty(this,"conditions",void 0),le._defineProperty(this,"contractWrapper",void 0),le._defineProperty(this,"erc20",void 0),le._defineProperty(this,"storage",void 0),this.erc20=e,this.contractWrapper=t,this.storage=n;let a=new ty(this.contractWrapper,hx,this.storage);this.conditions=new K_(this.contractWrapper,a,this.storage)}async to(e,t,n){let a=await this.erc20.normalizeAmount(t);return await(await this.conditions.getClaimTransaction(e,a,n)).execute()}},XZ=class{constructor(e,t,n){le._defineProperty(this,"claim",void 0),le._defineProperty(this,"contractWrapper",void 0),le._defineProperty(this,"erc20",void 0),le._defineProperty(this,"storage",void 0),this.erc20=e,this.contractWrapper=t,this.storage=n,this.claim=new QZ(this.erc20,this.contractWrapper,this.storage)}},nR=class{constructor(e,t){le._defineProperty(this,"featureName",F7.name),le._defineProperty(this,"contractWrapper",void 0),le._defineProperty(this,"erc20",void 0),this.erc20=e,this.contractWrapper=t}async to(e){let t=[];for(let n of e)t.push(this.contractWrapper.readContract.interface.encodeFunctionData("mintTo",[n.toAddress,await this.erc20.normalizeAmount(n.amount)]));return{receipt:await this.contractWrapper.multiCall(t)}}},aR=class{constructor(e,t){le._defineProperty(this,"featureName",W_.name),le._defineProperty(this,"contractWrapper",void 0),le._defineProperty(this,"erc20",void 0),le._defineProperty(this,"batch",void 0),this.erc20=e,this.contractWrapper=t,this.batch=this.detectErc20BatchMintable()}async to(e,t){return(await this.getMintTransaction(e,t)).execute()}async getMintTransaction(e,t){return xd.make({contractWrapper:this.contractWrapper,functionName:"mintTo",args:[e,await this.erc20.normalizeAmount(t)]})}detectErc20BatchMintable(){if(Ft(this.contractWrapper,"ERC20BatchMintable"))return new nR(this.erc20,this.contractWrapper)}},iR=class{constructor(e,t){le._defineProperty(this,"featureName",D7.name),le._defineProperty(this,"contractWrapper",void 0),le._defineProperty(this,"roles",void 0),this.contractWrapper=e,this.roles=t}async mint(e){let t=e.payload,n=e.signature,a=await this.mapPayloadToContractStruct(t),i=await this.contractWrapper.getCallOverrides();return await ey(this.contractWrapper,oe.BigNumber.from(a.price),t.currencyAddress,i),{receipt:await this.contractWrapper.sendTransaction("mintWithSignature",[a,n],i)}}async mintBatch(e){let n=(await Promise.all(e.map(async a=>{let i=await this.mapPayloadToContractStruct(a.payload),s=a.signature,c=a.payload.price;if(oe.BigNumber.from(c).gt(0))throw new Error("Can only batch free mints. For mints with a price, use regular mint()");return{message:i,signature:s}}))).map(a=>this.contractWrapper.readContract.interface.encodeFunctionData("mintWithSignature",[a.message,a.signature]));return{receipt:await this.contractWrapper.multiCall(n)}}async verify(e){let t=e.payload,n=e.signature,a=await this.mapPayloadToContractStruct(t);return(await this.contractWrapper.readContract.verify(a,n))[0]}async generate(e){return(await this.generateBatch([e]))[0]}async generateBatch(e){await this.roles?.verify(["minter"],await this.contractWrapper.getSignerAddress());let t=e.map(s=>SJ.parse(s)),n=await this.contractWrapper.getChainID(),a=this.contractWrapper.getSigner();yr.default(a,"No signer available");let i=await this.contractWrapper.readContract.name();return await Promise.all(t.map(async s=>{let c=wVe.parse(s),l=await this.contractWrapper.signTypedData(a,{name:i,version:"1",chainId:n,verifyingContract:this.contractWrapper.readContract.address},{MintRequest:kVe},await this.mapPayloadToContractStruct(c));return{payload:c,signature:l.toString()}}))}async mapPayloadToContractStruct(e){let t=await vc(this.contractWrapper.getProvider(),e.price,e.currencyAddress),n=oe.ethers.utils.parseUnits(e.quantity,await this.contractWrapper.readContract.decimals());return{to:e.to,primarySaleRecipient:e.primarySaleRecipient,quantity:n,price:t,currency:e.currencyAddress,validityEndTimestamp:e.mintEndTime,validityStartTimestamp:e.mintStartTime,uid:e.uid}}},Q_=class{get chainId(){return this._chainId}constructor(e,t,n){le._defineProperty(this,"featureName",U7.name),le._defineProperty(this,"mintable",void 0),le._defineProperty(this,"burnable",void 0),le._defineProperty(this,"droppable",void 0),le._defineProperty(this,"signatureMintable",void 0),le._defineProperty(this,"contractWrapper",void 0),le._defineProperty(this,"storage",void 0),le._defineProperty(this,"_chainId",void 0),this.contractWrapper=e,this.storage=t,this.mintable=this.detectErc20Mintable(),this.burnable=this.detectErc20Burnable(),this.droppable=this.detectErc20Droppable(),this.signatureMintable=this.detectErc20SignatureMintable(),this._chainId=n}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}async get(){return await fx(this.contractWrapper.getProvider(),this.getAddress())}async balance(){return await this.balanceOf(await this.contractWrapper.getSignerAddress())}async balanceOf(e){return this.getValue(await this.contractWrapper.readContract.balanceOf(e))}async totalSupply(){return await this.getValue(await this.contractWrapper.readContract.totalSupply())}async allowance(e){return await this.allowanceOf(await this.contractWrapper.getSignerAddress(),e)}async allowanceOf(e,t){return await this.getValue(await this.contractWrapper.readContract.allowance(e,t))}async transfer(e,t){return{receipt:await this.contractWrapper.sendTransaction("transfer",[e,await this.normalizeAmount(t)])}}async transferFrom(e,t,n){return{receipt:await this.contractWrapper.sendTransaction("transferFrom",[e,t,await this.normalizeAmount(n)])}}async setAllowance(e,t){return{receipt:await this.contractWrapper.sendTransaction("approve",[e,await this.normalizeAmount(t)])}}async transferBatch(e){let t=await Promise.all(e.map(async n=>{let a=await this.normalizeAmount(n.amount);return this.contractWrapper.readContract.interface.encodeFunctionData("transfer",[n.toAddress,a])}));await this.contractWrapper.multiCall(t)}async mint(e){return this.mintTo(await this.contractWrapper.getSignerAddress(),e)}async mintTo(e,t){return Tr(this.mintable,W_).to(e,t)}async getMintTransaction(e,t){return Tr(this.mintable,W_).getMintTransaction(e,t)}async mintBatchTo(e){return Tr(this.mintable?.batch,F7).to(e)}async burn(e){return Tr(this.burnable,U_).tokens(e)}async burnFrom(e,t){return Tr(this.burnable,U_).from(e,t)}async claim(e,t){return this.claimTo(await this.contractWrapper.getSignerAddress(),e,t)}async claimTo(e,t,n){return Tr(this.droppable?.claim,F_).to(e,t,n)}get claimConditions(){return Tr(this.droppable?.claim,F_).conditions}get signature(){return Tr(this.signatureMintable,D7)}async normalizeAmount(e){let t=await this.contractWrapper.readContract.decimals();return oe.ethers.utils.parseUnits(le.AmountSchema.parse(e),t)}async getValue(e){return await _p(this.contractWrapper.getProvider(),this.getAddress(),oe.BigNumber.from(e))}detectErc20Mintable(){if(Ft(this.contractWrapper,"ERC20"))return new aR(this,this.contractWrapper)}detectErc20Burnable(){if(Ft(this.contractWrapper,"ERC20Burnable"))return new rR(this,this.contractWrapper)}detectErc20Droppable(){if(Ft(this.contractWrapper,"ERC20ClaimConditionsV1")||Ft(this.contractWrapper,"ERC20ClaimConditionsV2")||Ft(this.contractWrapper,"ERC20ClaimPhasesV1")||Ft(this.contractWrapper,"ERC20ClaimPhasesV2"))return new XZ(this,this.contractWrapper,this.storage)}detectErc20SignatureMintable(){if(Ft(this.contractWrapper,"ERC20SignatureMintable"))return new iR(this.contractWrapper)}},YZ=class{constructor(e,t){le._defineProperty(this,"events",void 0),le._defineProperty(this,"contractWrapper",void 0),this.contractWrapper=e,this.events=t}async getAllHolderBalances(){let t=(await this.events.getEvents("Transfer")).map(a=>a.data),n={};return t.forEach(a=>{let i=a?.from,s=a?.to,c=a?.value;i!==oe.constants.AddressZero&&(i in n||(n[i]=oe.BigNumber.from(0)),n[i]=n[i].sub(c)),s!==oe.constants.AddressZero&&(s in n||(n[s]=oe.BigNumber.from(0)),n[s]=n[s].add(c))}),Promise.all(Object.keys(n).map(async a=>({holder:a,balance:await _p(this.contractWrapper.getProvider(),this.contractWrapper.readContract.address,n[a])})))}},$Z=class{get chainId(){return this._chainId}constructor(e,t,n){le._defineProperty(this,"contractWrapper",void 0),le._defineProperty(this,"storage",void 0),le._defineProperty(this,"erc20",void 0),le._defineProperty(this,"_chainId",void 0),this.contractWrapper=e,this.storage=t,this.erc20=new Q_(this.contractWrapper,this.storage,n),this._chainId=n}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}async get(){return this.erc20.get()}async balance(){return await this.erc20.balance()}async balanceOf(e){return this.erc20.balanceOf(e)}async totalSupply(){return await this.erc20.totalSupply()}async allowance(e){return await this.erc20.allowance(e)}async allowanceOf(e,t){return await this.erc20.allowanceOf(e,t)}async transfer(e,t){return this.erc20.transfer(e,t)}async transferFrom(e,t,n){return this.erc20.transferFrom(e,t,n)}async setAllowance(e,t){return this.erc20.setAllowance(e,t)}async transferBatch(e){return this.erc20.transferBatch(e)}},sR=class{constructor(e){le._defineProperty(this,"featureName",W7.name),le._defineProperty(this,"contractWrapper",void 0),this.contractWrapper=e}async token(e){return{receipt:await this.contractWrapper.sendTransaction("burn",[e])}}},eJ=class{constructor(e,t){le._defineProperty(this,"featureName",z_.name),le._defineProperty(this,"erc721",void 0),le._defineProperty(this,"contractWrapper",void 0),this.erc721=e,this.contractWrapper=t}async getClaimTransaction(e,t,n){let a={};return n&&n.pricePerToken&&(a=await aGe(this.contractWrapper,n.pricePerToken,t,n.currencyAddress,n.checkERC20Allowance)),xd.make({contractWrapper:this.contractWrapper,functionName:"claim",args:[e,t],overrides:a})}async to(e,t,n){let a=await this.getClaimTransaction(e,t,n),{receipt:i}=await a.execute(),c=this.contractWrapper.parseLogs("TokensClaimed",i?.logs)[0].args.startTokenId,l=c.add(t),d=[];for(let f=c;f.lt(l);f=f.add(1))d.push({id:f,receipt:i,data:()=>this.erc721.get(f)});return d}},oR=class{constructor(e,t,n){le._defineProperty(this,"featureName",z7.name),le._defineProperty(this,"conditions",void 0),le._defineProperty(this,"contractWrapper",void 0),le._defineProperty(this,"erc721",void 0),le._defineProperty(this,"storage",void 0),this.erc721=e,this.contractWrapper=t,this.storage=n;let a=new ty(this.contractWrapper,hx,this.storage);this.conditions=new K_(this.contractWrapper,a,this.storage)}async to(e,t,n){let a=await this.conditions.getClaimTransaction(e,t,n),{receipt:i}=await a.execute(),c=this.contractWrapper.parseLogs("TokensClaimed",i?.logs)[0].args.startTokenId,l=c.add(t),d=[];for(let f=c;f.lt(l);f=f.add(1))d.push({id:f,receipt:i,data:()=>this.erc721.get(f)});return d}},cR=class{constructor(e,t,n){le._defineProperty(this,"featureName",H7.name),le._defineProperty(this,"revealer",void 0),le._defineProperty(this,"claimWithConditions",void 0),le._defineProperty(this,"claim",void 0),le._defineProperty(this,"contractWrapper",void 0),le._defineProperty(this,"erc721",void 0),le._defineProperty(this,"storage",void 0),this.erc721=e,this.contractWrapper=t,this.storage=n,this.revealer=this.detectErc721Revealable(),this.claimWithConditions=this.detectErc721ClaimableWithConditions(),this.claim=this.detectErc721Claimable()}async lazyMint(e,t){let n=await this.erc721.nextTokenIdToMint(),a=await zv(e,this.storage,n.toNumber(),t),i=tx(a),s=await this.contractWrapper.sendTransaction("lazyMint",[a.length,i.endsWith("/")?i:`${i}/`,oe.ethers.utils.toUtf8Bytes("")]),c=this.contractWrapper.parseLogs("TokensLazyMinted",s?.logs),l=c[0].args.startTokenId,d=c[0].args.endTokenId,f=[];for(let w=l;w.lte(d);w=w.add(1))f.push({id:w,receipt:s,data:()=>this.erc721.getTokenMetadata(w)});return f}detectErc721Revealable(){if(Ft(this.contractWrapper,"ERC721Revealable"))return new D_(this.contractWrapper,this.storage,j_.name,()=>this.erc721.nextTokenIdToMint())}detectErc721ClaimableWithConditions(){if(Ft(this.contractWrapper,"ERC721ClaimConditionsV1")||Ft(this.contractWrapper,"ERC721ClaimConditionsV2")||Ft(this.contractWrapper,"ERC721ClaimPhasesV1")||Ft(this.contractWrapper,"ERC721ClaimPhasesV2"))return new oR(this.erc721,this.contractWrapper,this.storage)}detectErc721Claimable(){if(Ft(this.contractWrapper,"ERC721ClaimCustom"))return new eJ(this.erc721,this.contractWrapper)}},uR=class{constructor(e,t,n){le._defineProperty(this,"featureName",V7.name),le._defineProperty(this,"contractWrapper",void 0),le._defineProperty(this,"storage",void 0),le._defineProperty(this,"erc721",void 0),this.erc721=e,this.contractWrapper=t,this.storage=n}async to(e,t){let a=(await zv(t,this.storage)).map(c=>this.contractWrapper.readContract.interface.encodeFunctionData("mintTo",[e,c])),i=await this.contractWrapper.multiCall(a),s=this.contractWrapper.parseLogs("TokensMinted",i.logs);if(s.length===0||s.length{let l=c.args.tokenIdMinted;return{id:l,receipt:i,data:()=>this.erc721.get(l)}})}},lR=class{constructor(e,t,n){le._defineProperty(this,"featureName",H_.name),le._defineProperty(this,"contractWrapper",void 0),le._defineProperty(this,"storage",void 0),le._defineProperty(this,"erc721",void 0),le._defineProperty(this,"batch",void 0),this.erc721=e,this.contractWrapper=t,this.storage=n,this.batch=this.detectErc721BatchMintable()}async to(e,t){let n=await this.getMintTransaction(e,t),{receipt:a}=await n.execute(),i=this.contractWrapper.parseLogs("Transfer",a?.logs);if(i.length===0)throw new Error("TransferEvent event not found");let s=i[0].args.tokenId;return{id:s,receipt:a,data:()=>this.erc721.get(s)}}async getMintTransaction(e,t){let n=await LJ(t,this.storage);return xd.make({contractWrapper:this.contractWrapper,functionName:"mintTo",args:[e,n]})}detectErc721BatchMintable(){if(Ft(this.contractWrapper,"ERC721BatchMintable"))return new uR(this.erc721,this.contractWrapper,this.storage)}},dR=class{constructor(e,t){le._defineProperty(this,"featureName",WZ.name),le._defineProperty(this,"contractWrapper",void 0),le._defineProperty(this,"erc721",void 0),this.erc721=e,this.contractWrapper=t}async all(e){let t=await this.tokenIds(e);return await Promise.all(t.map(n=>this.erc721.get(n.toString())))}async tokenIds(e){let t=e||await this.contractWrapper.getSignerAddress(),n=await this.contractWrapper.readContract.balanceOf(t),a=Array.from(Array(n.toNumber()).keys());return await Promise.all(a.map(i=>this.contractWrapper.readContract.tokenOfOwnerByIndex(t,i)))}},pR=class{constructor(e,t){le._defineProperty(this,"featureName",rx.name),le._defineProperty(this,"contractWrapper",void 0),le._defineProperty(this,"erc721",void 0),le._defineProperty(this,"owned",void 0),this.erc721=e,this.contractWrapper=t,this.owned=this.detectErc721Owned()}async all(e){let t=oe.BigNumber.from(e?.start||0).toNumber(),n=oe.BigNumber.from(e?.count||le.DEFAULT_QUERY_ALL_COUNT).toNumber(),a=await this.erc721.nextTokenIdToMint(),i=Math.min(a.toNumber(),t+n);return await Promise.all([...Array(i-t).keys()].map(s=>this.erc721.get((t+s).toString())))}async allOwners(){return Promise.all([...new Array((await this.totalCount()).toNumber()).keys()].map(async e=>({tokenId:e,owner:await this.erc721.ownerOf(e).catch(()=>oe.constants.AddressZero)})))}async totalCount(){return await this.erc721.nextTokenIdToMint()}async totalCirculatingSupply(){return await this.contractWrapper.readContract.totalSupply()}detectErc721Owned(){if(Ft(this.contractWrapper,"ERC721Enumerable"))return new dR(this.erc721,this.contractWrapper)}},qfr=MR.extend({tierPriority:_e.z.array(_e.z.string()),royaltyRecipient:_e.z.string().default(oe.constants.AddressZero),royaltyBps:le.BasisPointsSchema.default(0),quantity:Oi.default(1)}),tJ=class{constructor(e,t,n){le._defineProperty(this,"featureName",j7.name),le._defineProperty(this,"contractWrapper",void 0),le._defineProperty(this,"erc721",void 0),le._defineProperty(this,"storage",void 0),this.erc721=e,this.contractWrapper=t,this.storage=n}async getMetadataInTier(e){let n=(await this.contractWrapper.readContract.getMetadataForAllTiers()).find(i=>i.tier===e);if(!n)throw new Error("Tier not found in contract.");return await Promise.all(n.ranges.map((i,s)=>{let c=[],l=n.baseURIs[s];for(let d=i.startIdInclusive.toNumber();d{let s=[];for(let c=i.startIdInclusive.toNumber();cthis.erc721.getTokenMetadata(E)});return w}async createDelayedRevealBatchWithTier(e,t,n,a,i){if(!n)throw new Error("Password is required");let s=await this.storage.uploadBatch([le.CommonNFTInput.parse(e)],{rewriteFileNames:{fileStartNumber:0}}),c=tx(s),l=await this.erc721.nextTokenIdToMint(),d=await this.storage.uploadBatch(t.map(K=>le.CommonNFTInput.parse(K)),{onProgress:i?.onProgress,rewriteFileNames:{fileStartNumber:l.toNumber()}}),f=tx(d),w=await this.contractWrapper.readContract.getBaseURICount(),E=await this.contractWrapper.getChainID(),k=oe.ethers.utils.solidityKeccak256(["string","uint256","uint256","address"],[n,E,w,this.contractWrapper.readContract.address]),A=await this.contractWrapper.readContract.encryptDecrypt(oe.ethers.utils.toUtf8Bytes(f),k),L,q=oe.ethers.utils.solidityKeccak256(["bytes","bytes","uint256"],[oe.ethers.utils.toUtf8Bytes(f),k,E]);L=oe.ethers.utils.defaultAbiCoder.encode(["bytes","bytes32"],[A,q]);let U=await this.contractWrapper.sendTransaction("lazyMint",[d.length,c.endsWith("/")?c:`${c}/`,a,L]),j=this.contractWrapper.parseLogs("TokensLazyMinted",U?.logs),H=j[0].args[1],G=j[0].args[2],te=[];for(let K=H;K.lte(G);K=K.add(1))te.push({id:K,receipt:U,data:()=>this.erc721.getTokenMetadata(K)});return te}async reveal(e,t){if(!t)throw new Error("Password is required");let n=await this.contractWrapper.getChainID(),a=oe.ethers.utils.solidityKeccak256(["string","uint256","uint256","address"],[t,n,e,this.contractWrapper.readContract.address]);try{let i=await this.contractWrapper.callStatic().reveal(e,a);if(!i.includes("://")||!i.endsWith("/"))throw new Error("invalid password")}catch{throw new Error("invalid password")}return{receipt:await this.contractWrapper.sendTransaction("reveal",[e,a])}}async generate(e){let[t]=await this.generateBatch([e]);return t}async generateBatch(e){let t=e.map(i=>qfr.parse(i)),n=await this.contractWrapper.getChainID(),a=this.contractWrapper.getSigner();return yr.default(a,"No signer available"),await Promise.all(t.map(async i=>{let s=await this.contractWrapper.signTypedData(a,{name:"SignatureAction",version:"1",chainId:n,verifyingContract:this.contractWrapper.readContract.address},{GenericRequest:IVe},await this.mapPayloadToContractStruct(i));return{payload:i,signature:s.toString()}}))}async verify(e){let t=await this.mapPayloadToContractStruct(e.payload);return(await this.contractWrapper.readContract.verify(t,e.signature))[0]}async claimWithSignature(e){let t=await this.mapPayloadToContractStruct(e.payload),a=(await vc(this.contractWrapper.getProvider(),e.payload.price,e.payload.currencyAddress)).mul(e.payload.quantity),i=await this.contractWrapper.getCallOverrides();await ey(this.contractWrapper,a,e.payload.currencyAddress,i);let s=await this.contractWrapper.sendTransaction("claimWithSignature",[t,e.signature],i),c=this.contractWrapper.parseLogs("TokensClaimed",s?.logs),l=c[0].args.startTokenId,d=l.add(c[0].args.quantityClaimed),f=[];for(let w=l;w.lt(d);w=w.add(1))f.push({id:w,receipt:s,data:()=>this.erc721.get(w)});return f}async mapPayloadToContractStruct(e){let t=await vc(this.contractWrapper.getProvider(),e.price,e.currencyAddress),n=oe.ethers.utils.defaultAbiCoder.encode(["string[]","address","address","uint256","address","uint256","uint256","address"],[e.tierPriority,e.to,e.royaltyRecipient,e.royaltyBps,e.primarySaleRecipient,e.quantity,t,e.currencyAddress]);return{uid:e.uid,validityStartTimestamp:e.mintStartTime,validityEndTimestamp:e.mintEndTime,data:n}}},hR=class{constructor(e,t){le._defineProperty(this,"featureName",G7.name),le._defineProperty(this,"contractWrapper",void 0),le._defineProperty(this,"storage",void 0),this.contractWrapper=e,this.storage=t}async mint(e){let t=e.payload,n=e.signature,a=await this.isLegacyNFTContract(),i,s;a?(i=await this.mapLegacyPayloadToContractStruct(t),s=i.price):(i=await this.mapPayloadToContractStruct(t),s=i.pricePerToken.mul(i.quantity));let c=await this.contractWrapper.getCallOverrides();await ey(this.contractWrapper,s,t.currencyAddress,c);let l=await this.contractWrapper.sendTransaction("mintWithSignature",[i,n],c),d=this.contractWrapper.parseLogs("TokensMintedWithSignature",l.logs);if(d.length===0)throw new Error("No MintWithSignature event found");return{id:d[0].args.tokenIdMinted,receipt:l}}async mintBatch(e){let t=await this.isLegacyNFTContract(),a=(await Promise.all(e.map(async c=>{let l;t?l=await this.mapLegacyPayloadToContractStruct(c.payload):l=await this.mapPayloadToContractStruct(c.payload);let d=c.signature,f=c.payload.price;if(oe.BigNumber.from(f).gt(0))throw new Error("Can only batch free mints. For mints with a price, use regular mint()");return{message:l,signature:d}}))).map(c=>t?this.contractWrapper.readContract.interface.encodeFunctionData("mintWithSignature",[c.message,c.signature]):this.contractWrapper.readContract.interface.encodeFunctionData("mintWithSignature",[c.message,c.signature])),i=await this.contractWrapper.multiCall(a),s=this.contractWrapper.parseLogs("TokensMintedWithSignature",i.logs);if(s.length===0)throw new Error("No MintWithSignature event found");return s.map(c=>({id:c.args.tokenIdMinted,receipt:i}))}async verify(e){let t=await this.isLegacyNFTContract(),n=e.payload,a=e.signature,i,s;if(t){let c=this.contractWrapper.readContract;i=await this.mapLegacyPayloadToContractStruct(n),s=await c.verify(i,a)}else{let c=this.contractWrapper.readContract;i=await this.mapPayloadToContractStruct(n),s=await c.verify(i,a)}return s[0]}async generate(e){return(await this.generateBatch([e]))[0]}async generateBatch(e){let t=await this.isLegacyNFTContract(),n=e.map(l=>CVe.parse(l)),a=n.map(l=>l.metadata),i=await zv(a,this.storage),s=await this.contractWrapper.getChainID(),c=this.contractWrapper.getSigner();return yr.default(c,"No signer available"),await Promise.all(n.map(async(l,d)=>{let f=i[d],w=EVe.parse({...l,uri:f}),E;return t?E=await this.contractWrapper.signTypedData(c,{name:"TokenERC721",version:"1",chainId:s,verifyingContract:this.contractWrapper.readContract.address},{MintRequest:SVe},await this.mapLegacyPayloadToContractStruct(w)):E=await this.contractWrapper.signTypedData(c,{name:"SignatureMintERC721",version:"1",chainId:s,verifyingContract:await this.contractWrapper.readContract.address},{MintRequest:MVe},await this.mapPayloadToContractStruct(w)),{payload:w,signature:E.toString()}}))}async mapPayloadToContractStruct(e){let t=await vc(this.contractWrapper.getProvider(),e.price,e.currencyAddress);return{to:e.to,royaltyRecipient:e.royaltyRecipient,royaltyBps:e.royaltyBps,primarySaleRecipient:e.primarySaleRecipient,uri:e.uri,quantity:e.quantity,pricePerToken:t,currency:e.currencyAddress,validityStartTimestamp:e.mintStartTime,validityEndTimestamp:e.mintEndTime,uid:e.uid}}async mapLegacyPayloadToContractStruct(e){let t=await vc(this.contractWrapper.getProvider(),e.price,e.currencyAddress);return{to:e.to,price:t,uri:e.uri,currency:e.currencyAddress,validityEndTimestamp:e.mintEndTime,validityStartTimestamp:e.mintStartTime,uid:e.uid,royaltyRecipient:e.royaltyRecipient,royaltyBps:e.royaltyBps,primarySaleRecipient:e.primarySaleRecipient}}async isLegacyNFTContract(){return Ft(this.contractWrapper,"ERC721SignatureMintV1")}},X_=class{get chainId(){return this._chainId}constructor(e,t,n){le._defineProperty(this,"featureName",Z7.name),le._defineProperty(this,"query",void 0),le._defineProperty(this,"mintable",void 0),le._defineProperty(this,"burnable",void 0),le._defineProperty(this,"lazyMintable",void 0),le._defineProperty(this,"tieredDropable",void 0),le._defineProperty(this,"signatureMintable",void 0),le._defineProperty(this,"contractWrapper",void 0),le._defineProperty(this,"storage",void 0),le._defineProperty(this,"_chainId",void 0),this.contractWrapper=e,this.storage=t,this.query=this.detectErc721Enumerable(),this.mintable=this.detectErc721Mintable(),this.burnable=this.detectErc721Burnable(),this.lazyMintable=this.detectErc721LazyMintable(),this.tieredDropable=this.detectErc721TieredDrop(),this.signatureMintable=this.detectErc721SignatureMintable(),this._chainId=n}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}async get(e){let[t,n]=await Promise.all([this.ownerOf(e).catch(()=>oe.constants.AddressZero),this.getTokenMetadata(e).catch(()=>({id:e.toString(),uri:"",...NJ}))]);return{owner:t,metadata:n,type:"ERC721",supply:1}}async ownerOf(e){return await this.contractWrapper.readContract.ownerOf(e)}async balanceOf(e){return await this.contractWrapper.readContract.balanceOf(e)}async balance(){return await this.balanceOf(await this.contractWrapper.getSignerAddress())}async isApproved(e,t){return await this.contractWrapper.readContract.isApprovedForAll(e,t)}async transfer(e,t){let n=await this.contractWrapper.getSignerAddress();return{receipt:await this.contractWrapper.sendTransaction("safeTransferFrom(address,address,uint256)",[n,e,t])}}async setApprovalForAll(e,t){return{receipt:await this.contractWrapper.sendTransaction("setApprovalForAll",[e,t])}}async setApprovalForToken(e,t){return{receipt:await this.contractWrapper.sendTransaction("approve",[e,t])}}async getAll(e){return Tr(this.query,rx).all(e)}async getAllOwners(){return Tr(this.query,rx).allOwners()}async totalCount(){return this.nextTokenIdToMint()}async totalCirculatingSupply(){return Tr(this.query,rx).totalCirculatingSupply()}async getOwned(e){if(this.query?.owned)return this.query.owned.all(e);{let t=e||await this.contractWrapper.getSignerAddress(),n=await this.getAllOwners();return Promise.all((n||[]).filter(a=>t?.toLowerCase()===a.owner?.toLowerCase()).map(async a=>await this.get(a.tokenId)))}}async getOwnedTokenIds(e){if(this.query?.owned)return this.query.owned.tokenIds(e);{let t=e||await this.contractWrapper.getSignerAddress();return(await this.getAllOwners()||[]).filter(a=>t?.toLowerCase()===a.owner?.toLowerCase()).map(a=>oe.BigNumber.from(a.tokenId))}}async mint(e){return this.mintTo(await this.contractWrapper.getSignerAddress(),e)}async mintTo(e,t){return Tr(this.mintable,H_).to(e,t)}async getMintTransaction(e,t){return Tr(this.mintable,H_).getMintTransaction(e,t)}async mintBatch(e){return this.mintBatchTo(await this.contractWrapper.getSignerAddress(),e)}async mintBatchTo(e,t){return Tr(this.mintable?.batch,V7).to(e,t)}async burn(e){return Tr(this.burnable,W7).token(e)}async lazyMint(e,t){return Tr(this.lazyMintable,H7).lazyMint(e,t)}async claim(e,t){return this.claimTo(await this.contractWrapper.getSignerAddress(),e,t)}async claimTo(e,t,n){let a=this.lazyMintable?.claimWithConditions,i=this.lazyMintable?.claim;if(a)return a.to(e,t,n);if(i)return i.to(e,t,n);throw new pm(z_)}async getClaimTransaction(e,t,n){let a=this.lazyMintable?.claimWithConditions,i=this.lazyMintable?.claim;if(a)return a.conditions.getClaimTransaction(e,t,n);if(i)return i.getClaimTransaction(e,t,n);throw new pm(z_)}async totalClaimedSupply(){let e=this.contractWrapper;if(gc("nextTokenIdToClaim",e))return e.readContract.nextTokenIdToClaim();if(gc("totalMinted",e))return e.readContract.totalMinted();throw new Error("No function found on contract to get total claimed supply")}async totalUnclaimedSupply(){return(await this.nextTokenIdToMint()).sub(await this.totalClaimedSupply())}get claimConditions(){return Tr(this.lazyMintable?.claimWithConditions,z7).conditions}get tieredDrop(){return Tr(this.tieredDropable,j7)}get signature(){return Tr(this.signatureMintable,G7)}get revealer(){return Tr(this.lazyMintable?.revealer,j_)}async getTokenMetadata(e){let t=await this.contractWrapper.readContract.tokenURI(e);if(!t)throw new ax;return OJ(e,t,this.storage)}async nextTokenIdToMint(){if(gc("nextTokenIdToMint",this.contractWrapper))return await this.contractWrapper.readContract.nextTokenIdToMint();if(gc("totalSupply",this.contractWrapper))return await this.contractWrapper.readContract.totalSupply();throw new Error("Contract requires either `nextTokenIdToMint` or `totalSupply` function available to determine the next token ID to mint")}detectErc721Enumerable(){if(Ft(this.contractWrapper,"ERC721Supply")||gc("nextTokenIdToMint",this.contractWrapper))return new pR(this,this.contractWrapper)}detectErc721Mintable(){if(Ft(this.contractWrapper,"ERC721Mintable"))return new lR(this,this.contractWrapper,this.storage)}detectErc721Burnable(){if(Ft(this.contractWrapper,"ERC721Burnable"))return new sR(this.contractWrapper)}detectErc721LazyMintable(){if(Ft(this.contractWrapper,"ERC721LazyMintable"))return new cR(this,this.contractWrapper,this.storage)}detectErc721TieredDrop(){if(Ft(this.contractWrapper,"ERC721TieredDrop"))return new tJ(this,this.contractWrapper,this.storage)}detectErc721SignatureMintable(){if(Ft(this.contractWrapper,"ERC721SignatureMintV1")||Ft(this.contractWrapper,"ERC721SignatureMintV2"))return new hR(this.contractWrapper,this.storage)}},rJ=class{get chainId(){return this._chainId}constructor(e,t,n){le._defineProperty(this,"contractWrapper",void 0),le._defineProperty(this,"storage",void 0),le._defineProperty(this,"erc721",void 0),le._defineProperty(this,"_chainId",void 0),this.contractWrapper=e,this.storage=t,this.erc721=new X_(this.contractWrapper,this.storage,n),this._chainId=n}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}async getAll(e){return this.erc721.getAll(e)}async getOwned(e){return this.erc721.getOwned(e)}async getOwnedTokenIds(e){return this.erc721.getOwnedTokenIds(e)}async totalSupply(){return this.erc721.totalCirculatingSupply()}async get(e){return this.erc721.get(e)}async ownerOf(e){return this.erc721.ownerOf(e)}async balanceOf(e){return this.erc721.balanceOf(e)}async balance(){return this.erc721.balance()}async isApproved(e,t){return this.erc721.isApproved(e,t)}async transfer(e,t){return this.erc721.transfer(e,t)}async setApprovalForAll(e,t){return this.erc721.setApprovalForAll(e,t)}async setApprovalForToken(e,t){return{receipt:await this.contractWrapper.sendTransaction("approve",[e,t])}}},HHe=_e.z.object({address:Gc,quantity:le.AmountSchema.default(1)}),Dfr=_e.z.union([_e.z.array(_e.z.string()).transform(r=>r.map(e=>HHe.parse({address:e}))),_e.z.array(HHe)]),fR=class{constructor(e){le._defineProperty(this,"featureName",qv.name),le._defineProperty(this,"contractWrapper",void 0),this.contractWrapper=e}async tokens(e,t){let n=await this.contractWrapper.getSignerAddress();return this.from(n,e,t)}async from(e,t,n){return{receipt:await this.contractWrapper.sendTransaction("burn",[e,t,n])}}async batch(e,t){let n=await this.contractWrapper.getSignerAddress();return this.batchFrom(n,e,t)}async batchFrom(e,t,n){return{receipt:await this.contractWrapper.sendTransaction("burnBatch",[e,t,n])}}},mR=class{constructor(e,t){le._defineProperty(this,"featureName",Fv.name),le._defineProperty(this,"contractWrapper",void 0),le._defineProperty(this,"erc1155",void 0),this.erc1155=e,this.contractWrapper=t}async all(e){let t=oe.BigNumber.from(e?.start||0).toNumber(),n=oe.BigNumber.from(e?.count||le.DEFAULT_QUERY_ALL_COUNT).toNumber(),a=Math.min((await this.totalCount()).toNumber(),t+n);return await Promise.all([...Array(a-t).keys()].map(i=>this.erc1155.get((t+i).toString())))}async totalCount(){return await this.contractWrapper.readContract.nextTokenIdToMint()}async totalCirculatingSupply(e){return await this.contractWrapper.readContract.totalSupply(e)}async owned(e){let t=e||await this.contractWrapper.getSignerAddress(),n=await this.contractWrapper.readContract.nextTokenIdToMint(),i=(await this.contractWrapper.readContract.balanceOfBatch(Array(n.toNumber()).fill(t),Array.from(Array(n.toNumber()).keys()))).map((s,c)=>({tokenId:c,balance:s})).filter(s=>s.balance.gt(0));return await Promise.all(i.map(async s=>({...await this.erc1155.get(s.tokenId.toString()),owner:t,quantityOwned:s.balance.toNumber()})))}};async function zJ(r,e){try{let t=new oe.ethers.Contract(r,aVe.default,e),[n,a]=await Promise.all([oe.ethers.utils.toUtf8String(await t.contractType()).replace(/\x00/g,""),await t.contractVersion()]);return{type:n,version:a}}catch{return}}var nJ=class{constructor(e){le._defineProperty(this,"featureName",V_.name),le._defineProperty(this,"contractWrapper",void 0),this.contractWrapper=e}async getClaimTransaction(e,t,n,a){let i={};return a&&a.pricePerToken&&(i=await aGe(this.contractWrapper,a.pricePerToken,n,a.currencyAddress,a.checkERC20Allowance)),xd.make({contractWrapper:this.contractWrapper,functionName:"claim",args:[e,t,n],overrides:i})}async to(e,t,n,a){return await(await this.getClaimTransaction(e,t,n,a)).execute()}},aJ=class{constructor(e,t){le._defineProperty(this,"featureName",J7.name),le._defineProperty(this,"conditions",void 0),le._defineProperty(this,"contractWrapper",void 0),le._defineProperty(this,"storage",void 0),this.contractWrapper=e,this.storage=t;let n=new ty(this.contractWrapper,hx,this.storage);this.conditions=new tR(e,n,this.storage)}async to(e,t,n,a){return await(await this.conditions.getClaimTransaction(e,t,n,a)).execute()}},yR=class{constructor(e,t,n){le._defineProperty(this,"featureName",K7.name),le._defineProperty(this,"revealer",void 0),le._defineProperty(this,"claimWithConditions",void 0),le._defineProperty(this,"claim",void 0),le._defineProperty(this,"contractWrapper",void 0),le._defineProperty(this,"erc1155",void 0),le._defineProperty(this,"storage",void 0),this.erc1155=e,this.contractWrapper=t,this.storage=n,this.claim=this.detectErc1155Claimable(),this.claimWithConditions=this.detectErc1155ClaimableWithConditions(),this.revealer=this.detectErc1155Revealable()}async lazyMint(e,t){let n=await this.erc1155.nextTokenIdToMint(),a=await zv(e,this.storage,n.toNumber(),t),i=a[0].substring(0,a[0].lastIndexOf("/"));for(let E=0;Ethis.erc1155.getTokenMetadata(E)});return w}detectErc1155Claimable(){if(Ft(this.contractWrapper,"ERC1155ClaimCustom"))return new nJ(this.contractWrapper)}detectErc1155ClaimableWithConditions(){if(Ft(this.contractWrapper,"ERC1155ClaimConditionsV1")||Ft(this.contractWrapper,"ERC1155ClaimConditionsV2")||Ft(this.contractWrapper,"ERC1155ClaimPhasesV1")||Ft(this.contractWrapper,"ERC1155ClaimPhasesV2"))return new aJ(this.contractWrapper,this.storage)}detectErc1155Revealable(){if(Ft(this.contractWrapper,"ERC1155Revealable"))return new D_(this.contractWrapper,this.storage,sx.name,()=>this.erc1155.nextTokenIdToMint())}async isLegacyEditionDropContract(){let e=await zJ(this.contractWrapper.readContract.address,this.contractWrapper.getProvider());return e&&e.type==="DropERC1155"&&e.version<3}},gR=class{constructor(e,t,n){le._defineProperty(this,"featureName",X7.name),le._defineProperty(this,"contractWrapper",void 0),le._defineProperty(this,"erc1155",void 0),le._defineProperty(this,"storage",void 0),this.erc1155=e,this.contractWrapper=t,this.storage=n}async to(e,t){let n=t.map(d=>d.metadata),a=t.map(d=>d.supply),s=(await zv(n,this.storage)).map((d,f)=>this.contractWrapper.readContract.interface.encodeFunctionData("mintTo",[e,oe.ethers.constants.MaxUint256,d,a[f]])),c=await this.contractWrapper.multiCall(s),l=this.contractWrapper.parseLogs("TokensMinted",c.logs);if(l.length===0||l.length{let f=d.args.tokenIdMinted;return{id:f,receipt:c,data:()=>this.erc1155.get(f)}})}},vR=class{constructor(e,t,n){le._defineProperty(this,"featureName",Dv.name),le._defineProperty(this,"contractWrapper",void 0),le._defineProperty(this,"erc1155",void 0),le._defineProperty(this,"storage",void 0),le._defineProperty(this,"batch",void 0),this.erc1155=e,this.contractWrapper=t,this.storage=n,this.batch=this.detectErc1155BatchMintable()}async to(e,t){let n=await this.getMintTransaction(e,t),{receipt:a}=await n.execute(),i=this.contractWrapper.parseLogs("TransferSingle",a?.logs);if(i.length===0)throw new Error("TransferSingleEvent event not found");let s=i[0].args.id;return{id:s,receipt:a,data:()=>this.erc1155.get(s.toString())}}async getMintTransaction(e,t){let n=await LJ(t.metadata,this.storage);return xd.make({contractWrapper:this.contractWrapper,functionName:"mintTo",args:[e,oe.ethers.constants.MaxUint256,n,t.supply]})}async additionalSupplyTo(e,t,n){let a=await this.erc1155.getTokenMetadata(t),i=await this.contractWrapper.sendTransaction("mintTo",[e,t,a.uri,n]);return{id:oe.BigNumber.from(t),receipt:i,data:()=>this.erc1155.get(t)}}detectErc1155BatchMintable(){if(Ft(this.contractWrapper,"ERC1155BatchMintable"))return new gR(this.erc1155,this.contractWrapper,this.storage)}},bR=class{constructor(e,t,n){le._defineProperty(this,"featureName",Q7.name),le._defineProperty(this,"contractWrapper",void 0),le._defineProperty(this,"storage",void 0),le._defineProperty(this,"roles",void 0),this.contractWrapper=e,this.storage=t,this.roles=n}async mint(e){let t=e.payload,n=e.signature,a=await this.mapPayloadToContractStruct(t),i=await this.contractWrapper.getCallOverrides();await ey(this.contractWrapper,a.pricePerToken.mul(a.quantity),t.currencyAddress,i);let s=await this.contractWrapper.sendTransaction("mintWithSignature",[a,n],i),c=this.contractWrapper.parseLogs("TokensMintedWithSignature",s.logs);if(c.length===0)throw new Error("No MintWithSignature event found");return{id:c[0].args.tokenIdMinted,receipt:s}}async mintBatch(e){let n=(await Promise.all(e.map(async s=>{let c=await this.mapPayloadToContractStruct(s.payload),l=s.signature,d=s.payload.price;if(oe.BigNumber.from(d).gt(0))throw new Error("Can only batch free mints. For mints with a price, use regular mint()");return{message:c,signature:l}}))).map(s=>this.contractWrapper.readContract.interface.encodeFunctionData("mintWithSignature",[s.message,s.signature])),a=await this.contractWrapper.multiCall(n),i=this.contractWrapper.parseLogs("TokensMintedWithSignature",a.logs);if(i.length===0)throw new Error("No MintWithSignature event found");return i.map(s=>({id:s.args.tokenIdMinted,receipt:a}))}async verify(e){let t=e.payload,n=e.signature,a=await this.mapPayloadToContractStruct(t);return(await this.contractWrapper.readContract.verify(a,n))[0]}async generate(e){let t={...e,tokenId:oe.ethers.constants.MaxUint256};return this.generateFromTokenId(t)}async generateFromTokenId(e){return(await this.generateBatchFromTokenIds([e]))[0]}async generateBatch(e){let t=e.map(n=>({...n,tokenId:oe.ethers.constants.MaxUint256}));return this.generateBatchFromTokenIds(t)}async generateBatchFromTokenIds(e){await this.roles?.verify(["minter"],await this.contractWrapper.getSignerAddress());let t=e.map(d=>TVe.parse(d)),n=t.map(d=>d.metadata),a=await zv(n,this.storage),i=await this.contractWrapper.getChainID(),s=this.contractWrapper.getSigner();yr.default(s,"No signer available");let l=(await zJ(this.contractWrapper.readContract.address,this.contractWrapper.getProvider()))?.type==="TokenERC1155";return await Promise.all(t.map(async(d,f)=>{let w=a[f],E=_Ve.parse({...d,uri:w}),k=await this.contractWrapper.signTypedData(s,{name:l?"TokenERC1155":"SignatureMintERC1155",version:"1",chainId:i,verifyingContract:this.contractWrapper.readContract.address},{MintRequest:AVe},await this.mapPayloadToContractStruct(E));return{payload:E,signature:k.toString()}}))}async mapPayloadToContractStruct(e){let t=await vc(this.contractWrapper.getProvider(),e.price,e.currencyAddress);return{to:e.to,tokenId:e.tokenId,uri:e.uri,quantity:e.quantity,pricePerToken:t,currency:e.currencyAddress,validityStartTimestamp:e.mintStartTime,validityEndTimestamp:e.mintEndTime,uid:e.uid,royaltyRecipient:e.royaltyRecipient,royaltyBps:e.royaltyBps,primarySaleRecipient:e.primarySaleRecipient}}},Y_=class{get chainId(){return this._chainId}constructor(e,t,n){le._defineProperty(this,"featureName",Y7.name),le._defineProperty(this,"query",void 0),le._defineProperty(this,"mintable",void 0),le._defineProperty(this,"burnable",void 0),le._defineProperty(this,"lazyMintable",void 0),le._defineProperty(this,"signatureMintable",void 0),le._defineProperty(this,"contractWrapper",void 0),le._defineProperty(this,"storage",void 0),le._defineProperty(this,"_chainId",void 0),this.contractWrapper=e,this.storage=t,this.query=this.detectErc1155Enumerable(),this.mintable=this.detectErc1155Mintable(),this.burnable=this.detectErc1155Burnable(),this.lazyMintable=this.detectErc1155LazyMintable(),this.signatureMintable=this.detectErc1155SignatureMintable(),this._chainId=n}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}async get(e){let[t,n]=await Promise.all([this.contractWrapper.readContract.totalSupply(e).catch(()=>oe.BigNumber.from(0)),this.getTokenMetadata(e).catch(()=>({id:e.toString(),uri:"",...NJ}))]);return{owner:oe.ethers.constants.AddressZero,metadata:n,type:"ERC1155",supply:t.toNumber()}}async totalSupply(e){return await this.contractWrapper.readContract.totalSupply(e)}async balanceOf(e,t){return await this.contractWrapper.readContract.balanceOf(e,t)}async balance(e){return await this.balanceOf(await this.contractWrapper.getSignerAddress(),e)}async isApproved(e,t){return await this.contractWrapper.readContract.isApprovedForAll(e,t)}async transfer(e,t,n){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:[0],i=await this.contractWrapper.getSignerAddress();return{receipt:await this.contractWrapper.sendTransaction("safeTransferFrom",[i,e,t,n,a])}}async setApprovalForAll(e,t){return{receipt:await this.contractWrapper.sendTransaction("setApprovalForAll",[e,t])}}async airdrop(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[0],a=await this.contractWrapper.getSignerAddress(),i=await this.balanceOf(a,e),s=Dfr.parse(t),c=s.reduce((d,f)=>d+Number(f?.quantity||1),0);if(i.toNumber(){let{address:f,quantity:w}=d;return this.contractWrapper.readContract.interface.encodeFunctionData("safeTransferFrom",[a,f,e,w,n])});return{receipt:await this.contractWrapper.multiCall(l)}}async nextTokenIdToMint(){if(gc("nextTokenIdToMint",this.contractWrapper))return await this.contractWrapper.readContract.nextTokenIdToMint();throw new Error("Contract requires the `nextTokenIdToMint` function available to determine the next token ID to mint")}async getAll(e){return Tr(this.query,Fv).all(e)}async totalCount(){return Tr(this.query,Fv).totalCount()}async totalCirculatingSupply(e){return Tr(this.query,Fv).totalCirculatingSupply(e)}async getOwned(e){return Tr(this.query,Fv).owned(e)}async mint(e){return this.mintTo(await this.contractWrapper.getSignerAddress(),e)}async mintTo(e,t){return Tr(this.mintable,Dv).to(e,t)}async getMintTransaction(e,t){return Tr(this.mintable,Dv).getMintTransaction(e,t)}async mintAdditionalSupply(e,t){return Tr(this.mintable,Dv).additionalSupplyTo(await this.contractWrapper.getSignerAddress(),e,t)}async mintAdditionalSupplyTo(e,t,n){return Tr(this.mintable,Dv).additionalSupplyTo(e,t,n)}async mintBatch(e){return this.mintBatchTo(await this.contractWrapper.getSignerAddress(),e)}async mintBatchTo(e,t){return Tr(this.mintable?.batch,X7).to(e,t)}async burn(e,t){return Tr(this.burnable,qv).tokens(e,t)}async burnFrom(e,t,n){return Tr(this.burnable,qv).from(e,t,n)}async burnBatch(e,t){return Tr(this.burnable,qv).batch(e,t)}async burnBatchFrom(e,t,n){return Tr(this.burnable,qv).batchFrom(e,t,n)}async lazyMint(e,t){return Tr(this.lazyMintable,K7).lazyMint(e,t)}async getClaimTransaction(e,t,n,a){let i=this.lazyMintable?.claimWithConditions,s=this.lazyMintable?.claim;if(i)return i.conditions.getClaimTransaction(e,t,n,a);if(s)return s.getClaimTransaction(e,t,n,a);throw new pm(V_)}async claim(e,t,n){return this.claimTo(await this.contractWrapper.getSignerAddress(),e,t,n)}async claimTo(e,t,n,a){let i=this.lazyMintable?.claimWithConditions,s=this.lazyMintable?.claim;if(i)return i.to(e,t,n,a);if(s)return s.to(e,t,n,a);throw new pm(V_)}get claimConditions(){return Tr(this.lazyMintable?.claimWithConditions,J7).conditions}get signature(){return Tr(this.signatureMintable,Q7)}get revealer(){return Tr(this.lazyMintable?.revealer,sx)}async getTokenMetadata(e){let t=await this.contractWrapper.readContract.uri(e);if(!t)throw new ax;return OJ(e,t,this.storage)}detectErc1155Enumerable(){if(Ft(this.contractWrapper,"ERC1155Enumerable"))return new mR(this,this.contractWrapper)}detectErc1155Mintable(){if(Ft(this.contractWrapper,"ERC1155Mintable"))return new vR(this,this.contractWrapper,this.storage)}detectErc1155Burnable(){if(Ft(this.contractWrapper,"ERC1155Burnable"))return new fR(this.contractWrapper)}detectErc1155LazyMintable(){if(Ft(this.contractWrapper,"ERC1155LazyMintableV1")||Ft(this.contractWrapper,"ERC1155LazyMintableV2"))return new yR(this,this.contractWrapper,this.storage)}detectErc1155SignatureMintable(){if(Ft(this.contractWrapper,"ERC1155SignatureMintable"))return new bR(this.contractWrapper,this.storage)}},iJ=class{get chainId(){return this._chainId}constructor(e,t,n){le._defineProperty(this,"contractWrapper",void 0),le._defineProperty(this,"storage",void 0),le._defineProperty(this,"erc1155",void 0),le._defineProperty(this,"_chainId",void 0),this.contractWrapper=e,this.storage=t,this.erc1155=new Y_(this.contractWrapper,this.storage,n),this._chainId=n}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}async get(e){return this.erc1155.get(e)}async totalSupply(e){return this.erc1155.totalSupply(e)}async balanceOf(e,t){return this.erc1155.balanceOf(e,t)}async balance(e){return this.erc1155.balance(e)}async isApproved(e,t){return this.erc1155.isApproved(e,t)}async transfer(e,t,n){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:[0];return this.erc1155.transfer(e,t,n,a)}async setApprovalForAll(e,t){return this.erc1155.setApprovalForAll(e,t)}async airdrop(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[0];return this.erc1155.airdrop(e,t,n)}};async function xGe(r,e,t,n,a){try{let i=new oe.Contract(t,AR.default,r),s=await i.supportsInterface($_),c=await i.supportsInterface(eC);if(s){let l=new oe.Contract(t,go.default,r);return await l.isApprovedForAll(a,e)?!0:(await l.getApproved(n)).toLowerCase()===e.toLowerCase()}else return c?await new oe.Contract(t,Zc.default,r).isApprovedForAll(a,e):(console.error("Contract does not implement ERC 1155 or ERC 721."),!1)}catch(i){return console.error("Failed to check if token is approved",i),!1}}async function HJ(r,e,t,n,a){let i=new ks(r.getSignerOrProvider(),t,AR.default,r.options),s=await i.readContract.supportsInterface($_),c=await i.readContract.supportsInterface(eC);if(s){let l=new ks(r.getSignerOrProvider(),t,go.default,r.options);await l.readContract.isApprovedForAll(a,e)||(await l.readContract.getApproved(n)).toLowerCase()===e.toLowerCase()||await l.sendTransaction("setApprovalForAll",[e,!0])}else if(c){let l=new ks(r.getSignerOrProvider(),t,Zc.default,r.options);await l.readContract.isApprovedForAll(a,e)||await l.sendTransaction("setApprovalForAll",[e,!0])}else throw Error("Contract must implement ERC 1155 or ERC 721.")}function TGe(r){switch(yr.default(r.assetContractAddress!==void 0&&r.assetContractAddress!==null,"Asset contract address is required"),yr.default(r.buyoutPricePerToken!==void 0&&r.buyoutPricePerToken!==null,"Buyout price is required"),yr.default(r.listingDurationInSeconds!==void 0&&r.listingDurationInSeconds!==null,"Listing duration is required"),yr.default(r.startTimestamp!==void 0&&r.startTimestamp!==null,"Start time is required"),yr.default(r.tokenId!==void 0&&r.tokenId!==null,"Token ID is required"),yr.default(r.quantity!==void 0&&r.quantity!==null,"Quantity is required"),r.type){case"NewAuctionListing":yr.default(r.reservePricePerToken!==void 0&&r.reservePricePerToken!==null,"Reserve price is required")}}async function VJ(r,e,t){return{quantity:t.quantityDesired,pricePerToken:t.pricePerToken,currencyContractAddress:t.currency,buyerAddress:t.offeror,quantityDesired:t.quantityWanted,currencyValue:await _p(r,t.currency,t.quantityWanted.mul(t.pricePerToken)),listingId:e}}function Ffr(r,e,t){return t=oe.BigNumber.from(t),r=oe.BigNumber.from(r),e=oe.BigNumber.from(e),r.eq(oe.BigNumber.from(0))?!1:e.sub(r).mul(le.MAX_BPS).div(r).gte(t)}async function Ufr(r,e,t){let n=[];for(;e-r>le.DEFAULT_QUERY_ALL_COUNT;)n.push(t(r,r+le.DEFAULT_QUERY_ALL_COUNT-1)),r+=le.DEFAULT_QUERY_ALL_COUNT;return n.push(t(r,e-1)),await Promise.all(n)}var sJ=class{constructor(e,t){le._defineProperty(this,"contractWrapper",void 0),le._defineProperty(this,"storage",void 0),this.contractWrapper=e,this.storage=t}getAddress(){return this.contractWrapper.readContract.address}async getListing(e){let t=await this.contractWrapper.readContract.listings(e);if(t.assetContract===oe.constants.AddressZero)throw new O_(this.getAddress(),e.toString());if(t.listingType!==$.ListingType.Direct)throw new L_(this.getAddress(),e.toString(),"Auction","Direct");return await this.mapListing(t)}async getActiveOffer(e,t){await this.validateListing(oe.BigNumber.from(e)),yr.default(oe.utils.isAddress(t),"Address must be a valid address");let n=await this.contractWrapper.readContract.offers(e,t);if(n.offeror!==oe.constants.AddressZero)return await VJ(this.contractWrapper.getProvider(),oe.BigNumber.from(e),n)}async createListing(e){TGe(e),await HJ(this.contractWrapper,this.getAddress(),e.assetContractAddress,e.tokenId,await this.contractWrapper.getSignerAddress());let t=await vc(this.contractWrapper.getProvider(),e.buyoutPricePerToken,e.currencyContractAddress),n=Math.floor(e.startTimestamp.getTime()/1e3),i=(await this.contractWrapper.getProvider().getBlock("latest")).timestamp;nl.args.listingId.eq(oe.BigNumber.from(e)));if(!c)throw new Error(`Could not find auction with listingId ${e} in closed auctions`);return c.args.winningBidder}async createListing(e){TGe(e),await HJ(this.contractWrapper,this.getAddress(),e.assetContractAddress,e.tokenId,await this.contractWrapper.getSignerAddress());let t=await vc(this.contractWrapper.getProvider(),e.buyoutPricePerToken,e.currencyContractAddress),n=await vc(this.contractWrapper.getProvider(),e.reservePricePerToken,e.currencyContractAddress),a=Math.floor(e.startTimestamp.getTime()/1e3),s=(await this.contractWrapper.getProvider().getBlock("latest")).timestamp;aw.pluginAddress),f=Array.from(new Set(d));i=await Wfr(f,t,a)}}catch{}return i.length>0?jfr([e,...i]):e}async function Wfr(r,e,t){return(await Promise.all(r.map(n=>Hv(n,e,t).catch(a=>(console.error(`Failed to fetch plug-in for ${n}`,a),{abi:[]}))))).map(n=>n.abi)}function jfr(r){let e=r.map(a=>kp.parse(a)).flat(),n=sfr(e,(a,i)=>a.name===i.name&&a.type===i.type&&a.inputs.length===i.inputs.length).filter(a=>a.type!=="constructor");return kp.parse(n)}var _Ge=Bu.merge(fm).merge(Ss),zfr=ml.merge(fm).merge(Ss),Hfr=_Ge.merge(wd).merge(iy).merge(yl),CGe={deploy:Hfr,output:zfr,input:_Ge},EGe=Bu.merge(yo).merge(Ss),Vfr=ml.merge(yo).merge(Ss),Gfr=EGe.merge(yl),kGe={deploy:Gfr,output:Vfr,input:EGe},Uh={name:"DropERC1155",contractType:"edition-drop",schema:NVe,roles:["admin","minter","transfer"],initialize:async function(){for(var r=arguments.length,e=new Array(r),t=0;t{let n=await qu(r,e,t);if(n)return n;let a=await OR(r,e);return!a||a.version>2?(await Promise.resolve().then(function(){return Ys(FH())})).default:(await Promise.resolve().then(function(){return Ys(UH())})).default}},ry={name:"TokenERC1155",contractType:"edition",schema:HVe,roles:["admin","minter","transfer"],initialize:async function(){for(var r=arguments.length,e=new Array(r),t=0;t{let n=await qu(r,e,t);return n||(await Promise.resolve().then(function(){return Ys(WH())})).default}},Cp={name:"Marketplace",contractType:"marketplace",schema:IJ,roles:["admin","lister","asset"],initialize:async function(){for(var r=arguments.length,e=new Array(r),t=0;t{let n=await qu(r,e,t);return n||(await Promise.resolve().then(function(){return Ys(jH())})).default}},dm={name:"MarketplaceRouter",contractType:"marketplace-v3",schema:IJ,roles:["admin","lister","asset"],initialize:async function(){for(var r=arguments.length,e=new Array(r),t=0;t{let n=await qu(r,e,t);if(n)return await cJ(r,n,e,{},t);let a=(await Promise.resolve().then(function(){return Ys(GH())})).default;return await cJ(r,a,e,{},t)}},Ep={name:"Multiwrap",contractType:"multiwrap",schema:kGe,roles:["admin","transfer","minter","unwrap","asset"],initialize:async function(){for(var r=arguments.length,e=new Array(r),t=0;t{let n=await qu(r,e,t);return n||(await Promise.resolve().then(function(){return Ys(ZH())})).default}},ny={name:"TokenERC721",contractType:"nft-collection",schema:jVe,roles:["admin","minter","transfer"],initialize:async function(){for(var r=arguments.length,e=new Array(r),t=0;t{let n=await qu(r,e,t);return n||(await Promise.resolve().then(function(){return Ys(JH())})).default}},Wh={name:"DropERC721",contractType:"nft-drop",schema:MJ,roles:["admin","minter","transfer"],initialize:async function(){for(var r=arguments.length,e=new Array(r),t=0;t{let n=await qu(r,e,t);if(n)return n;let a=await OR(r,e);return!a||a.version>3?(await Promise.resolve().then(function(){return Ys(KH())})).default:(await Promise.resolve().then(function(){return Ys(QH())})).default}},fl={name:"Pack",contractType:"pack",schema:BVe,roles:["admin","minter","asset","transfer"],initialize:async function(){for(var r=arguments.length,e=new Array(r),t=0;t{let n=await qu(r,e,t);return n||(await Promise.resolve().then(function(){return Ys(eV())})).default}},jh={name:"SignatureDrop",contractType:"signature-drop",schema:MJ,roles:["admin","minter","transfer"],initialize:async function(){for(var r=arguments.length,e=new Array(r),t=0;t{let n=await qu(r,e,t);if(n)return n;let a=await OR(r,e);return!a||a.version>4?(await Promise.resolve().then(function(){return Ys(tV())})).default:(await Promise.resolve().then(function(){return Ys(rV())})).default}},zh={name:"Split",contractType:"split",schema:DVe,roles:["admin"],initialize:async function(){for(var r=arguments.length,e=new Array(r),t=0;t{let n=await qu(r,e,t);return n||(await Promise.resolve().then(function(){return Ys(aV())})).default}},ay={name:"DropERC20",contractType:"token-drop",schema:CGe,roles:["admin","transfer"],initialize:async function(){for(var r=arguments.length,e=new Array(r),t=0;t{let n=await qu(r,e,t);if(n)return n;let a=await OR(r,e);return!a||a.version>2?(await Promise.resolve().then(function(){return Ys(iV())})).default:(await Promise.resolve().then(function(){return Ys(sV())})).default}},Hh={name:"TokenERC20",contractType:"token",schema:UVe,roles:["admin","minter","transfer"],initialize:async function(){for(var r=arguments.length,e=new Array(r),t=0;t{let n=await qu(r,e,t);return n||(await Promise.resolve().then(function(){return Ys(oV())})).default}},Vh={name:"VoteERC20",contractType:"vote",schema:ZVe,roles:[],initialize:async function(){for(var r=arguments.length,e=new Array(r),t=0;t{let n=await qu(r,e,t);return n||(await Promise.resolve().then(function(){return Ys(uV())})).default}};async function OR(r,e){try{return await zJ(r,e)}catch{return}}var Wv={[Uh.contractType]:Uh,[ry.contractType]:ry,[Cp.contractType]:Cp,[dm.contractType]:dm,[Ep.contractType]:Ep,[ny.contractType]:ny,[Wh.contractType]:Wh,[fl.contractType]:fl,[jh.contractType]:jh,[zh.contractType]:zh,[ay.contractType]:ay,[Hh.contractType]:Hh,[Vh.contractType]:Vh},VHe={name:"SmartContract",contractType:"custom",schema:{},roles:RJ},GJ={...Wv,[VHe.contractType]:VHe};function SGe(r){return Object.values(GJ).find(e=>e.name===r)?.contractType||"custom"}function ZJ(r){return Object.values(GJ).find(e=>e.contractType===r)?.name}async function AGe(r,e,t,n){let a=await n.getChainId(),i=await n.getAddress(),s=r===fl.contractType?[]:bJ(a);switch(e.trusted_forwarders&&e.trusted_forwarders.length>0&&(s=e.trusted_forwarders),r){case Wh.contractType:case ny.contractType:let c=Wh.schema.deploy.parse(e);return[i,c.name,c.symbol,t,s,c.primary_sale_recipient,c.fee_recipient,c.seller_fee_basis_points,c.platform_fee_basis_points,c.platform_fee_recipient];case jh.contractType:let l=jh.schema.deploy.parse(e);return[i,l.name,l.symbol,t,s,l.primary_sale_recipient,l.fee_recipient,l.seller_fee_basis_points,l.platform_fee_basis_points,l.platform_fee_recipient];case Ep.contractType:let d=Ep.schema.deploy.parse(e);return[i,d.name,d.symbol,t,s,d.fee_recipient,d.seller_fee_basis_points];case Uh.contractType:case ry.contractType:let f=Uh.schema.deploy.parse(e);return[i,f.name,f.symbol,t,s,f.primary_sale_recipient,f.fee_recipient,f.seller_fee_basis_points,f.platform_fee_basis_points,f.platform_fee_recipient];case ay.contractType:case Hh.contractType:let w=Hh.schema.deploy.parse(e);return[i,w.name,w.symbol,t,s,w.primary_sale_recipient,w.platform_fee_recipient,w.platform_fee_basis_points];case Vh.contractType:let E=Vh.schema.deploy.parse(e);return[E.name,t,s,E.voting_token_address,E.voting_delay_in_blocks,E.voting_period_in_blocks,oe.BigNumber.from(E.proposal_token_threshold),E.voting_quorum_fraction];case zh.contractType:let k=zh.schema.deploy.parse(e);return[i,t,s,k.recipients.map(q=>q.address),k.recipients.map(q=>oe.BigNumber.from(q.sharesBps))];case Cp.contractType:case dm.contractType:let A=Cp.schema.deploy.parse(e);return[i,t,s,A.platform_fee_recipient,A.platform_fee_basis_points];case fl.contractType:let L=fl.schema.deploy.parse(e);return[i,L.name,L.symbol,t,s,L.fee_recipient,L.seller_fee_basis_points];default:return[]}}var uJ=class{constructor(e,t){le._defineProperty(this,"featureName",BZ.name),le._defineProperty(this,"contractWrapper",void 0),le._defineProperty(this,"metadata",void 0),this.contractWrapper=e,this.metadata=t}async get(){return Ft(this.contractWrapper,"AppURI")?await this.contractWrapper.readContract.appURI():(await this.metadata.get()).appURI||""}async set(e){return Ft(this.contractWrapper,"AppURI")?{receipt:await this.contractWrapper.sendTransaction("setAppURI",[e])}:await this.metadata.update({appURI:e})}},wR=class{constructor(e){le._defineProperty(this,"contractWrapper",void 0),this.contractWrapper=e}addTransactionListener(e){this.contractWrapper.addListener($.EventType.Transaction,e)}removeTransactionListener(e){this.contractWrapper.off($.EventType.Transaction,e)}addEventListener(e,t){let n=this.contractWrapper.readContract.interface.getEvent(e),i={address:this.contractWrapper.readContract.address,topics:[this.contractWrapper.readContract.interface.getEventTopic(n)]},s=c=>{let l=this.contractWrapper.readContract.interface.parseLog(c);t(this.toContractEvent(l.eventFragment,l.args,c))};return this.contractWrapper.getProvider().on(i,s),()=>{this.contractWrapper.getProvider().off(i,s)}}listenToAllEvents(e){let n={address:this.contractWrapper.readContract.address},a=i=>{try{let s=this.contractWrapper.readContract.interface.parseLog(i);e(this.toContractEvent(s.eventFragment,s.args,i))}catch(s){console.error("Could not parse event:",i,s)}};return this.contractWrapper.getProvider().on(n,a),()=>{this.contractWrapper.getProvider().off(n,a)}}removeEventListener(e,t){let n=this.contractWrapper.readContract.interface.getEvent(e);this.contractWrapper.readContract.off(n.name,t)}removeAllListeners(){this.contractWrapper.readContract.removeAllListeners();let t={address:this.contractWrapper.readContract.address};this.contractWrapper.getProvider().removeAllListeners(t)}async getAllEvents(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{fromBlock:0,toBlock:"latest",order:"desc"},n=(await this.contractWrapper.readContract.queryFilter({},e.fromBlock,e.toBlock)).sort((a,i)=>e.order==="desc"?i.blockNumber-a.blockNumber:a.blockNumber-i.blockNumber);return this.parseEvents(n)}async getEvents(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{fromBlock:0,toBlock:"latest",order:"desc"},n=this.contractWrapper.readContract.interface.getEvent(e),a=this.contractWrapper.readContract.interface.getEvent(e),i=t.filters?a.inputs.map(d=>t.filters[d.name]):[],s=this.contractWrapper.readContract.filters[n.name](...i),l=(await this.contractWrapper.readContract.queryFilter(s,t.fromBlock,t.toBlock)).sort((d,f)=>t.order==="desc"?f.blockNumber-d.blockNumber:d.blockNumber-f.blockNumber);return this.parseEvents(l)}parseEvents(e){return e.map(t=>{let n=Object.fromEntries(Object.entries(t).filter(a=>typeof a[1]!="function"&&a[0]!=="args"));if(t.args){let a=Object.entries(t.args),i=a.slice(a.length/2,a.length),s={};for(let[c,l]of i)s[c]=l;return{eventName:t.event||"",data:s,transaction:n}}return{eventName:t.event||"",data:{},transaction:n}})}toContractEvent(e,t,n){let a=Object.fromEntries(Object.entries(n).filter(s=>typeof s[1]!="function"&&s[0]!=="args")),i={};return e.inputs.forEach((s,c)=>{if(Array.isArray(t[c])){let l=s.components;if(l){let d=t[c];if(s.type==="tuple[]"){let f=[];for(let w=0;w4&&arguments[4]!==void 0?arguments[4]:{},s=arguments.length>5?arguments[5]:void 0,c=arguments.length>6&&arguments[6]!==void 0?arguments[6]:new ks(e,t,n,i);le._defineProperty(this,"contractWrapper",void 0),le._defineProperty(this,"storage",void 0),le._defineProperty(this,"events",void 0),le._defineProperty(this,"interceptor",void 0),le._defineProperty(this,"encoder",void 0),le._defineProperty(this,"estimator",void 0),le._defineProperty(this,"publishedMetadata",void 0),le._defineProperty(this,"abi",void 0),le._defineProperty(this,"metadata",void 0),le._defineProperty(this,"appURI",void 0),le._defineProperty(this,"_chainId",void 0),this._chainId=s,this.storage=a,this.contractWrapper=c,this.abi=n,this.events=new wR(this.contractWrapper),this.encoder=new ix(this.contractWrapper),this.interceptor=new xR(this.contractWrapper),this.estimator=new J_(this.contractWrapper),this.publishedMetadata=new _R(this.contractWrapper,this.storage),this.metadata=new ty(this.contractWrapper,hx,this.storage),this.appURI=new uJ(this.contractWrapper,this.metadata)}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}async call(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;aGHe)throw new Error(`version is longer than ${GHe} characters`);let e=r.trim().match(Jfr);if(!e||e?.length!==4)throw new Error(`${r} is not a valid semantic version. Should be in the format of major.minor.patch. Ex: 0.4.1`);let t=Number(e[1]),n=Number(e[2]),a=Number(e[3]),i=[t,n,a].join(".");return{major:t,minor:n,patch:a,versionString:i}}function MGe(r,e){let t=dx(r),n=dx(e);if(n.major>t.major)return!0;let a=n.major===t.major;if(a&&n.minor>t.minor)return!0;let i=n.minor===t.minor;return a&&i&&n.patch>t.patch}function Kfr(r,e){let t=dx(r),n=dx(e);if(n.majorn.length>0).map(n=>this.fetchFullPublishMetadata(n)))}async resolveContractUriFromAddress(e){let t=await Z_(e,this.getProvider());return yr.default(t,"Could not resolve contract URI from address"),t}async fetchContractSourcesFromAddress(e){let t=await this.fetchCompilerMetadataFromAddress(e);return await JJ(t,this.storage)}async updatePublisherProfile(e){let t=this.getSigner();yr.default(t,"A signer is required");let n=await t.getAddress(),a=await this.storage.upload(e);return{receipt:await this.publisher.sendTransaction("setPublisherProfileUri",[n,a])}}async getPublisherProfile(e){let t=await this.publisher.readContract.getPublisherProfileUri(e);return!t||t.length===0?{}:WGe.parse(await this.storage.downloadJSON(t))}async getAll(e){let n=(await this.publisher.readContract.getAllPublishedContracts(e)).reduce((a,i)=>(a[i.contractId]=i,a),{});return Object.entries(n).map(a=>{let[,i]=a;return this.toPublishedContract(i)})}async getAllVersions(e,t){let n=await this.publisher.readContract.getPublishedContractVersions(e,t);if(n.length===0)throw Error("Not found");return n.map(a=>this.toPublishedContract(a))}async getVersion(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"latest";if(n==="latest")return this.getLatest(e,t);let a=await this.getAllVersions(e,t),s=(await Promise.all(a.map(c=>this.fetchPublishedContractInfo(c)))).find(c=>c.publishedMetadata.version===n);return yr.default(s,"Contract version not found"),a.find(c=>c.timestamp===s.publishedTimestamp)}async getLatest(e,t){let n=await this.publisher.readContract.getPublishedContract(e,t);if(n&&n.publishMetadataUri)return this.toPublishedContract(n)}async publish(e,t){let n=this.getSigner();yr.default(n,"A signer is required");let a=await n.getAddress(),i=await FJ(e,this.storage),s=await this.getLatest(a,i.name);if(s&&s.metadataUri){let U=(await this.fetchPublishedContractInfo(s)).publishedMetadata.version;if(!MGe(U,t.version))throw Error(`Version ${t.version} is not greater than ${U}`)}let c=await(await this.storage.download(i.bytecodeUri)).text(),l=c.startsWith("0x")?c:`0x${c}`,d=oe.utils.solidityKeccak256(["bytes"],[l]),f=i.name,w=DGe.parse({...t,metadataUri:i.metadataUri,bytecodeUri:i.bytecodeUri,name:i.name,analytics:i.analytics,publisher:a}),E=await this.storage.upload(w),k=await this.publisher.sendTransaction("publishContract",[a,f,E,i.metadataUri,d,oe.constants.AddressZero]),A=this.publisher.parseLogs("ContractPublished",k.logs);if(A.length<1)throw new Error("No ContractPublished event found");let L=A[0].args.publishedContract;return{receipt:k,data:async()=>this.toPublishedContract(L)}}async unpublish(e,t){return{receipt:await this.publisher.sendTransaction("unpublishContract",[e,t])}}toPublishedContract(e){return jGe.parse({id:e.contractId,timestamp:e.publishTimestamp,metadataUri:e.publishMetadataUri})}},pJ=class{constructor(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};le._defineProperty(this,"registryLogic",void 0),le._defineProperty(this,"registryRouter",void 0),le._defineProperty(this,"storage",void 0),this.storage=t,this.registryLogic=new ks(e,xZ(),ahr.default,n),this.registryRouter=new ks(e,xZ(),ihr.default,n)}async updateSigner(e){this.registryLogic.updateSignerOrProvider(e),this.registryRouter.updateSignerOrProvider(e)}async getContractMetadataURI(e,t){return await this.registryLogic.readContract.getMetadataUri(e,t)}async getContractMetadata(e,t){let n=await this.getContractMetadataURI(e,t);if(!n)throw new Error(`No metadata URI found for contract ${t} on chain ${e}`);return await this.storage.downloadJSON(n)}async getContractAddresses(e){return(await this.registryLogic.readContract.getAll(e)).filter(t=>oe.utils.isAddress(t.deploymentAddress)&&t.deploymentAddress.toLowerCase()!==oe.constants.AddressZero).map(t=>({address:t.deploymentAddress,chainId:t.chainId.toNumber()}))}async addContract(e){return await this.addContracts([e])}async addContracts(e){let t=await this.registryRouter.getSignerAddress(),n=[];return e.forEach(a=>{n.push(this.registryLogic.readContract.interface.encodeFunctionData("add",[t,a.address,a.chainId,a.metadataURI||""]))}),{receipt:await this.registryRouter.multiCall(n)}}async removeContract(e){return await this.removeContracts([e])}async removeContracts(e){let t=await this.registryRouter.getSignerAddress(),n=[];return e.forEach(a=>{n.push(this.registryLogic.readContract.interface.encodeFunctionData("remove",[t,a.address,a.chainId]))}),{receipt:await this.registryRouter.multiCall(n)}}},px=class{constructor(e,t){le._defineProperty(this,"connection",void 0),le._defineProperty(this,"options",void 0),le._defineProperty(this,"events",new gZ.default),this.connection=new jv(e,t),this.options=t,this.events=new gZ.default}connect(e){this.connection.updateSignerOrProvider(e),this.events.emit("signerChanged",this.connection.getSigner())}async transfer(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:bd,a=this.requireWallet(),i=await vc(this.connection.getProvider(),t,n);if(Gh(n)){let s=await a.getAddress();return{receipt:await(await a.sendTransaction({from:s,to:e,value:i})).wait()}}else return{receipt:await this.createErc20(n).sendTransaction("transfer",[e,i])}}async balance(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:bd;this.requireWallet();let t=this.connection.getProvider(),n;return Gh(e)?n=await t.getBalance(await this.getAddress()):n=await this.createErc20(e).readContract.balanceOf(await this.getAddress()),await _p(t,e,n)}async getAddress(){return await this.requireWallet().getAddress()}async getChainId(){return await this.requireWallet().getChainId()}isConnected(){try{return this.requireWallet(),!0}catch{return!1}}async sign(e){return await this.requireWallet().signMessage(e)}async signTypedData(e,t,n){return await _7(this.requireWallet(),e,t,n)}recoverAddress(e,t){let n=oe.ethers.utils.hashMessage(e),a=oe.ethers.utils.arrayify(n);return oe.ethers.utils.recoverAddress(a,t)}async sendRawTransaction(e){return{receipt:await(await this.requireWallet().sendTransaction(e)).wait()}}async requestFunds(e){let t=await this.getChainId();if(t===$.ChainId.Localhost||t===$.ChainId.Hardhat)return new px(new oe.ethers.Wallet(cVe,PR(t,this.options)),this.options).transfer(await this.getAddress(),e);throw new Error(`Requesting funds is not supported on chain: '${t}'.`)}requireWallet(){let e=this.connection.getSigner();return yr.default(e,"This action requires a connected wallet. Please pass a valid signer to the SDK."),e}createErc20(e){return new ks(this.connection.getSignerOrProvider(),e,Lu.default,this.options)}},Fh=class extends jv{static async fromWallet(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:new I_.ThirdwebStorage,i=await e.getSigner();return Fh.fromSigner(i,t,n,a)}static fromSigner(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:new I_.ThirdwebStorage,i=new Fh(t||e,n,a);return i.updateSignerOrProvider(e),i}static fromPrivateKey(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:new I_.ThirdwebStorage,i=PR(t,n),s=new oe.ethers.Wallet(e,i);return Fh.fromSigner(s,t,n,a)}constructor(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:new I_.ThirdwebStorage;super(e,t),le._defineProperty(this,"contractCache",new Map),le._defineProperty(this,"_publisher",void 0),le._defineProperty(this,"storageHandler",void 0),le._defineProperty(this,"deployer",void 0),le._defineProperty(this,"multiChainRegistry",void 0),le._defineProperty(this,"wallet",void 0),le._defineProperty(this,"storage",void 0),this.storageHandler=n,this.storage=n,this.wallet=new px(e,t),this.deployer=new ER(e,t,n),this.multiChainRegistry=new pJ(e,this.storageHandler,this.options),this._publisher=new dJ(e,this.options,this.storageHandler)}get auth(){throw new Error(`The sdk.auth namespace has been moved to the @thirdweb-dev/auth package and is no longer available after @thirdweb-dev/sdk >= 3.7.0. +contract.claimConditions.set(tokenId, [{ snapshot: [{ address: '0x...', maxClaimable: 1 }], maxClaimablePerWallet: 0 }])`); + if ( + I.snapshot && + I.snapshot.length > 0 && + I.maxClaimablePerWallet?.toString() === "0" && + I.snapshot + .map((k) => + typeof k == "string" + ? 0 + : Number(k.maxClaimable?.toString() || 0) + ) + .reduce((k, O) => k + O, 0) === 0 + ) + throw new Error( + "maxClaimablePerWallet is set to 0, and all addresses in the allowlist have max claimable 0. This means that no one can claim." + ); + }); + let { snapshotInfos: w, sortedConditions: C } = await aKe( + m, + 0, + this.contractWrapper.getProvider(), + this.storage, + this.getSnapshotFormatVersion() + ); + return ( + w.forEach((I) => { + n[I.merkleRoot] = I.snapshotUri; + }), + { tokenId: l, sortedConditions: C } + ); + }) + ), + i = await this.metadata.get(), + s = []; + for (let c of Object.keys(i.merkle || {})) n[c] = i.merkle[c]; + if (!sje.default(i.merkle, n)) { + let c = this.metadata.parseInputMetadata({ ...i, merkle: n }), + l = await this.metadata._parseAndUploadMetadata(c); + if (sc("setContractURI", this.contractWrapper)) + s.push( + this.contractWrapper.readContract.interface.encodeFunctionData( + "setContractURI", + [l] + ) + ); + else + throw new Error( + "Setting a merkle root requires implementing ContractMetadata in your contract to support storing a merkle root." + ); + } + return ( + a.forEach((c) => { + let { tokenId: l, sortedConditions: d } = c; + if (this.isLegacySinglePhaseDrop(this.contractWrapper)) + s.push( + this.contractWrapper.readContract.interface.encodeFunctionData( + "setClaimConditions", + [l, y9(d[0]), t] + ) + ); + else if (this.isLegacyMultiPhaseDrop(this.contractWrapper)) + s.push( + this.contractWrapper.readContract.interface.encodeFunctionData( + "setClaimConditions", + [l, d.map(y9), t] + ) + ); + else if (this.isNewSinglePhaseDrop(this.contractWrapper)) + s.push( + this.contractWrapper.readContract.interface.encodeFunctionData( + "setClaimConditions", + [l, g9(d[0]), t] + ) + ); + else if (this.isNewMultiphaseDrop(this.contractWrapper)) + s.push( + this.contractWrapper.readContract.interface.encodeFunctionData( + "setClaimConditions", + [l, d.map(g9), t] + ) + ); + else + throw new Error("Contract does not support claim conditions"); + }), + { receipt: await this.contractWrapper.multiCall(s) } + ); + } + async update(e, t, n) { + let a = await this.getAll(e), + i = await nKe(t, n, a); + return await this.set(e, i); + } + async prepareClaim(e, t, n, a) { + let i = a || (await this.contractWrapper.getSignerAddress()); + return rKe( + i, + t, + await this.getActive(e), + async () => (await this.metadata.get()).merkle, + 0, + this.contractWrapper, + this.storage, + n, + this.getSnapshotFormatVersion() + ); + } + async getClaimArguments(e, t, n, a) { + return this.isLegacyMultiPhaseDrop(this.contractWrapper) + ? [t, e, n, a.currencyAddress, a.price, a.proofs, a.maxClaimable] + : this.isLegacySinglePhaseDrop(this.contractWrapper) + ? [ + t, + e, + n, + a.currencyAddress, + a.price, + { proof: a.proofs, maxQuantityInAllowlist: a.maxClaimable }, + se.ethers.utils.toUtf8Bytes(""), + ] + : [ + t, + e, + n, + a.currencyAddress, + a.price, + { + proof: a.proofs, + quantityLimitPerWallet: a.maxClaimable, + pricePerToken: a.priceInProof, + currency: a.currencyAddressInProof, + }, + se.ethers.utils.toUtf8Bytes(""), + ]; + } + async getClaimTransaction(e, t, n, a) { + if (a?.pricePerToken) + throw new Error( + "Price per token should be set via claim conditions by calling `contract.erc1155.claimConditions.set()`" + ); + let i = await this.prepareClaim(t, n, a?.checkERC20Allowance || !0); + return Xl.make({ + contractWrapper: this.contractWrapper, + functionName: "claim", + args: await this.getClaimArguments(t, e, n, i), + overrides: i.overrides, + }); + } + isNewSinglePhaseDrop(e) { + return Lt(e, "ERC1155ClaimConditionsV2"); + } + isNewMultiphaseDrop(e) { + return Lt(e, "ERC1155ClaimPhasesV2"); + } + isLegacySinglePhaseDrop(e) { + return Lt(e, "ERC1155ClaimConditionsV1"); + } + isLegacyMultiPhaseDrop(e) { + return Lt(e, "ERC1155ClaimPhasesV1"); + } + getSnapshotFormatVersion() { + return this.isLegacyMultiPhaseDrop(this.contractWrapper) || + this.isLegacySinglePhaseDrop(this.contractWrapper) + ? Uf.V1 + : Uf.V2; + } + }, + DV = class { + constructor(e) { + le._defineProperty(this, "events", void 0), (this.events = e); + } + async getAllClaimerAddresses(e) { + let t = (await this.events.getEvents("TokensClaimed")).filter((n) => + n.data && se.BigNumber.isBigNumber(n.data.tokenId) + ? n.data.tokenId.eq(e) + : !1 + ); + return Array.from( + new Set( + t + .filter((n) => typeof n.data?.claimer == "string") + .map((n) => n.data.claimer) + ) + ); + } + }, + Y9 = class { + constructor(e, t) { + le._defineProperty(this, "featureName", F3.name), + le._defineProperty(this, "erc20", void 0), + le._defineProperty(this, "contractWrapper", void 0), + (this.erc20 = e), + (this.contractWrapper = t); + } + async tokens(e) { + return { + receipt: await this.contractWrapper.sendTransaction("burn", [ + await this.erc20.normalizeAmount(e), + ]), + }; + } + async from(e, t) { + return { + receipt: await this.contractWrapper.sendTransaction("burnFrom", [ + e, + await this.erc20.normalizeAmount(t), + ]), + }; + } + }, + qV = class { + constructor(e, t, n) { + le._defineProperty(this, "featureName", q3.name), + le._defineProperty(this, "conditions", void 0), + le._defineProperty(this, "contractWrapper", void 0), + le._defineProperty(this, "erc20", void 0), + le._defineProperty(this, "storage", void 0), + (this.erc20 = e), + (this.contractWrapper = t), + (this.storage = n); + let a = new T0(this.contractWrapper, g2, this.storage); + this.conditions = new Y3(this.contractWrapper, a, this.storage); + } + async to(e, t, n) { + let a = await this.erc20.normalizeAmount(t); + return await ( + await this.conditions.getClaimTransaction(e, a, n) + ).execute(); + } + }, + FV = class { + constructor(e, t, n) { + le._defineProperty(this, "claim", void 0), + le._defineProperty(this, "contractWrapper", void 0), + le._defineProperty(this, "erc20", void 0), + le._defineProperty(this, "storage", void 0), + (this.erc20 = e), + (this.contractWrapper = t), + (this.storage = n), + (this.claim = new qV( + this.erc20, + this.contractWrapper, + this.storage + )); + } + }, + $9 = class { + constructor(e, t) { + le._defineProperty(this, "featureName", P9.name), + le._defineProperty(this, "contractWrapper", void 0), + le._defineProperty(this, "erc20", void 0), + (this.erc20 = e), + (this.contractWrapper = t); + } + async to(e) { + let t = []; + for (let n of e) + t.push( + this.contractWrapper.readContract.interface.encodeFunctionData( + "mintTo", + [n.toAddress, await this.erc20.normalizeAmount(n.amount)] + ) + ); + return { receipt: await this.contractWrapper.multiCall(t) }; + } + }, + J9 = class { + constructor(e, t) { + le._defineProperty(this, "featureName", W3.name), + le._defineProperty(this, "contractWrapper", void 0), + le._defineProperty(this, "erc20", void 0), + le._defineProperty(this, "batch", void 0), + (this.erc20 = e), + (this.contractWrapper = t), + (this.batch = this.detectErc20BatchMintable()); + } + async to(e, t) { + return (await this.getMintTransaction(e, t)).execute(); + } + async getMintTransaction(e, t) { + return Xl.make({ + contractWrapper: this.contractWrapper, + functionName: "mintTo", + args: [e, await this.erc20.normalizeAmount(t)], + }); + } + detectErc20BatchMintable() { + if (Lt(this.contractWrapper, "ERC20BatchMintable")) + return new $9(this.erc20, this.contractWrapper); + } + }, + Z9 = class { + constructor(e, t) { + le._defineProperty(this, "featureName", M9.name), + le._defineProperty(this, "contractWrapper", void 0), + le._defineProperty(this, "roles", void 0), + (this.contractWrapper = e), + (this.roles = t); + } + async mint(e) { + let t = e.payload, + n = e.signature, + a = await this.mapPayloadToContractStruct(t), + i = await this.contractWrapper.getCallOverrides(); + return ( + await x0( + this.contractWrapper, + se.BigNumber.from(a.price), + t.currencyAddress, + i + ), + { + receipt: await this.contractWrapper.sendTransaction( + "mintWithSignature", + [a, n], + i + ), + } + ); + } + async mintBatch(e) { + let n = ( + await Promise.all( + e.map(async (a) => { + let i = await this.mapPayloadToContractStruct(a.payload), + s = a.signature, + c = a.payload.price; + if (se.BigNumber.from(c).gt(0)) + throw new Error( + "Can only batch free mints. For mints with a price, use regular mint()" + ); + return { message: i, signature: s }; + }) + ) + ).map((a) => + this.contractWrapper.readContract.interface.encodeFunctionData( + "mintWithSignature", + [a.message, a.signature] + ) + ); + return { receipt: await this.contractWrapper.multiCall(n) }; + } + async verify(e) { + let t = e.payload, + n = e.signature, + a = await this.mapPayloadToContractStruct(t); + return (await this.contractWrapper.readContract.verify(a, n))[0]; + } + async generate(e) { + return (await this.generateBatch([e]))[0]; + } + async generateBatch(e) { + await this.roles?.verify( + ["minter"], + await this.contractWrapper.getSignerAddress() + ); + let t = e.map((s) => mG.parse(s)), + n = await this.contractWrapper.getChainID(), + a = this.contractWrapper.getSigner(); + pr.default(a, "No signer available"); + let i = await this.contractWrapper.readContract.name(); + return await Promise.all( + t.map(async (s) => { + let c = _je.parse(s), + l = await this.contractWrapper.signTypedData( + a, + { + name: i, + version: "1", + chainId: n, + verifyingContract: + this.contractWrapper.readContract.address, + }, + { MintRequest: Aje }, + await this.mapPayloadToContractStruct(c) + ); + return { payload: c, signature: l.toString() }; + }) + ); + } + async mapPayloadToContractStruct(e) { + let t = await oc( + this.contractWrapper.getProvider(), + e.price, + e.currencyAddress + ), + n = se.ethers.utils.parseUnits( + e.quantity, + await this.contractWrapper.readContract.decimals() + ); + return { + to: e.to, + primarySaleRecipient: e.primarySaleRecipient, + quantity: n, + price: t, + currency: e.currencyAddress, + validityEndTimestamp: e.mintEndTime, + validityStartTimestamp: e.mintStartTime, + uid: e.uid, + }; + } + }, + $3 = class { + get chainId() { + return this._chainId; + } + constructor(e, t, n) { + le._defineProperty(this, "featureName", R9.name), + le._defineProperty(this, "mintable", void 0), + le._defineProperty(this, "burnable", void 0), + le._defineProperty(this, "droppable", void 0), + le._defineProperty(this, "signatureMintable", void 0), + le._defineProperty(this, "contractWrapper", void 0), + le._defineProperty(this, "storage", void 0), + le._defineProperty(this, "_chainId", void 0), + (this.contractWrapper = e), + (this.storage = t), + (this.mintable = this.detectErc20Mintable()), + (this.burnable = this.detectErc20Burnable()), + (this.droppable = this.detectErc20Droppable()), + (this.signatureMintable = this.detectErc20SignatureMintable()), + (this._chainId = n); + } + onNetworkUpdated(e) { + this.contractWrapper.updateSignerOrProvider(e); + } + getAddress() { + return this.contractWrapper.readContract.address; + } + async get() { + return await b2( + this.contractWrapper.getProvider(), + this.getAddress() + ); + } + async balance() { + return await this.balanceOf( + await this.contractWrapper.getSignerAddress() + ); + } + async balanceOf(e) { + return this.getValue( + await this.contractWrapper.readContract.balanceOf(e) + ); + } + async totalSupply() { + return await this.getValue( + await this.contractWrapper.readContract.totalSupply() + ); + } + async allowance(e) { + return await this.allowanceOf( + await this.contractWrapper.getSignerAddress(), + e + ); + } + async allowanceOf(e, t) { + return await this.getValue( + await this.contractWrapper.readContract.allowance(e, t) + ); + } + async transfer(e, t) { + return { + receipt: await this.contractWrapper.sendTransaction("transfer", [ + e, + await this.normalizeAmount(t), + ]), + }; + } + async transferFrom(e, t, n) { + return { + receipt: await this.contractWrapper.sendTransaction( + "transferFrom", + [e, t, await this.normalizeAmount(n)] + ), + }; + } + async setAllowance(e, t) { + return { + receipt: await this.contractWrapper.sendTransaction("approve", [ + e, + await this.normalizeAmount(t), + ]), + }; + } + async transferBatch(e) { + let t = await Promise.all( + e.map(async (n) => { + let a = await this.normalizeAmount(n.amount); + return this.contractWrapper.readContract.interface.encodeFunctionData( + "transfer", + [n.toAddress, a] + ); + }) + ); + await this.contractWrapper.multiCall(t); + } + async mint(e) { + return this.mintTo(await this.contractWrapper.getSignerAddress(), e); + } + async mintTo(e, t) { + return br(this.mintable, W3).to(e, t); + } + async getMintTransaction(e, t) { + return br(this.mintable, W3).getMintTransaction(e, t); + } + async mintBatchTo(e) { + return br(this.mintable?.batch, P9).to(e); + } + async burn(e) { + return br(this.burnable, F3).tokens(e); + } + async burnFrom(e, t) { + return br(this.burnable, F3).from(e, t); + } + async claim(e, t) { + return this.claimTo( + await this.contractWrapper.getSignerAddress(), + e, + t + ); + } + async claimTo(e, t, n) { + return br(this.droppable?.claim, q3).to(e, t, n); + } + get claimConditions() { + return br(this.droppable?.claim, q3).conditions; + } + get signature() { + return br(this.signatureMintable, M9); + } + async normalizeAmount(e) { + let t = await this.contractWrapper.readContract.decimals(); + return se.ethers.utils.parseUnits(le.AmountSchema.parse(e), t); + } + async getValue(e) { + return await tp( + this.contractWrapper.getProvider(), + this.getAddress(), + se.BigNumber.from(e) + ); + } + detectErc20Mintable() { + if (Lt(this.contractWrapper, "ERC20")) + return new J9(this, this.contractWrapper); + } + detectErc20Burnable() { + if (Lt(this.contractWrapper, "ERC20Burnable")) + return new Y9(this, this.contractWrapper); + } + detectErc20Droppable() { + if ( + Lt(this.contractWrapper, "ERC20ClaimConditionsV1") || + Lt(this.contractWrapper, "ERC20ClaimConditionsV2") || + Lt(this.contractWrapper, "ERC20ClaimPhasesV1") || + Lt(this.contractWrapper, "ERC20ClaimPhasesV2") + ) + return new FV(this, this.contractWrapper, this.storage); + } + detectErc20SignatureMintable() { + if (Lt(this.contractWrapper, "ERC20SignatureMintable")) + return new Z9(this.contractWrapper); + } + }, + WV = class { + constructor(e, t) { + le._defineProperty(this, "events", void 0), + le._defineProperty(this, "contractWrapper", void 0), + (this.contractWrapper = e), + (this.events = t); + } + async getAllHolderBalances() { + let t = (await this.events.getEvents("Transfer")).map((a) => a.data), + n = {}; + return ( + t.forEach((a) => { + let i = a?.from, + s = a?.to, + c = a?.value; + i !== se.constants.AddressZero && + (i in n || (n[i] = se.BigNumber.from(0)), (n[i] = n[i].sub(c))), + s !== se.constants.AddressZero && + (s in n || (n[s] = se.BigNumber.from(0)), + (n[s] = n[s].add(c))); + }), + Promise.all( + Object.keys(n).map(async (a) => ({ + holder: a, + balance: await tp( + this.contractWrapper.getProvider(), + this.contractWrapper.readContract.address, + n[a] + ), + })) + ) + ); + } + }, + UV = class { + get chainId() { + return this._chainId; + } + constructor(e, t, n) { + le._defineProperty(this, "contractWrapper", void 0), + le._defineProperty(this, "storage", void 0), + le._defineProperty(this, "erc20", void 0), + le._defineProperty(this, "_chainId", void 0), + (this.contractWrapper = e), + (this.storage = t), + (this.erc20 = new $3(this.contractWrapper, this.storage, n)), + (this._chainId = n); + } + onNetworkUpdated(e) { + this.contractWrapper.updateSignerOrProvider(e); + } + getAddress() { + return this.contractWrapper.readContract.address; + } + async get() { + return this.erc20.get(); + } + async balance() { + return await this.erc20.balance(); + } + async balanceOf(e) { + return this.erc20.balanceOf(e); + } + async totalSupply() { + return await this.erc20.totalSupply(); + } + async allowance(e) { + return await this.erc20.allowance(e); + } + async allowanceOf(e, t) { + return await this.erc20.allowanceOf(e, t); + } + async transfer(e, t) { + return this.erc20.transfer(e, t); + } + async transferFrom(e, t, n) { + return this.erc20.transferFrom(e, t, n); + } + async setAllowance(e, t) { + return this.erc20.setAllowance(e, t); + } + async transferBatch(e) { + return this.erc20.transferBatch(e); + } + }, + Q9 = class { + constructor(e) { + le._defineProperty(this, "featureName", B9.name), + le._defineProperty(this, "contractWrapper", void 0), + (this.contractWrapper = e); + } + async token(e) { + return { + receipt: await this.contractWrapper.sendTransaction("burn", [e]), + }; + } + }, + HV = class { + constructor(e, t) { + le._defineProperty(this, "featureName", H3.name), + le._defineProperty(this, "erc721", void 0), + le._defineProperty(this, "contractWrapper", void 0), + (this.erc721 = e), + (this.contractWrapper = t); + } + async getClaimTransaction(e, t, n) { + let a = {}; + return ( + n && + n.pricePerToken && + (a = await iKe( + this.contractWrapper, + n.pricePerToken, + t, + n.currencyAddress, + n.checkERC20Allowance + )), + Xl.make({ + contractWrapper: this.contractWrapper, + functionName: "claim", + args: [e, t], + overrides: a, + }) + ); + } + async to(e, t, n) { + let a = await this.getClaimTransaction(e, t, n), + { receipt: i } = await a.execute(), + c = this.contractWrapper.parseLogs("TokensClaimed", i?.logs)[0].args + .startTokenId, + l = c.add(t), + d = []; + for (let m = c; m.lt(l); m = m.add(1)) + d.push({ id: m, receipt: i, data: () => this.erc721.get(m) }); + return d; + } + }, + X9 = class { + constructor(e, t, n) { + le._defineProperty(this, "featureName", O9.name), + le._defineProperty(this, "conditions", void 0), + le._defineProperty(this, "contractWrapper", void 0), + le._defineProperty(this, "erc721", void 0), + le._defineProperty(this, "storage", void 0), + (this.erc721 = e), + (this.contractWrapper = t), + (this.storage = n); + let a = new T0(this.contractWrapper, g2, this.storage); + this.conditions = new Y3(this.contractWrapper, a, this.storage); + } + async to(e, t, n) { + let a = await this.conditions.getClaimTransaction(e, t, n), + { receipt: i } = await a.execute(), + c = this.contractWrapper.parseLogs("TokensClaimed", i?.logs)[0].args + .startTokenId, + l = c.add(t), + d = []; + for (let m = c; m.lt(l); m = m.add(1)) + d.push({ id: m, receipt: i, data: () => this.erc721.get(m) }); + return d; + } + }, + eR = class { + constructor(e, t, n) { + le._defineProperty(this, "featureName", L9.name), + le._defineProperty(this, "revealer", void 0), + le._defineProperty(this, "claimWithConditions", void 0), + le._defineProperty(this, "claim", void 0), + le._defineProperty(this, "contractWrapper", void 0), + le._defineProperty(this, "erc721", void 0), + le._defineProperty(this, "storage", void 0), + (this.erc721 = e), + (this.contractWrapper = t), + (this.storage = n), + (this.revealer = this.detectErc721Revealable()), + (this.claimWithConditions = + this.detectErc721ClaimableWithConditions()), + (this.claim = this.detectErc721Claimable()); + } + async lazyMint(e, t) { + let n = await this.erc721.nextTokenIdToMint(), + a = await ob(e, this.storage, n.toNumber(), t), + i = i2(a), + s = await this.contractWrapper.sendTransaction("lazyMint", [ + a.length, + i.endsWith("/") ? i : `${i}/`, + se.ethers.utils.toUtf8Bytes(""), + ]), + c = this.contractWrapper.parseLogs("TokensLazyMinted", s?.logs), + l = c[0].args.startTokenId, + d = c[0].args.endTokenId, + m = []; + for (let w = l; w.lte(d); w = w.add(1)) + m.push({ + id: w, + receipt: s, + data: () => this.erc721.getTokenMetadata(w), + }); + return m; + } + detectErc721Revealable() { + if (Lt(this.contractWrapper, "ERC721Revealable")) + return new D3(this.contractWrapper, this.storage, U3.name, () => + this.erc721.nextTokenIdToMint() + ); + } + detectErc721ClaimableWithConditions() { + if ( + Lt(this.contractWrapper, "ERC721ClaimConditionsV1") || + Lt(this.contractWrapper, "ERC721ClaimConditionsV2") || + Lt(this.contractWrapper, "ERC721ClaimPhasesV1") || + Lt(this.contractWrapper, "ERC721ClaimPhasesV2") + ) + return new X9(this.erc721, this.contractWrapper, this.storage); + } + detectErc721Claimable() { + if (Lt(this.contractWrapper, "ERC721ClaimCustom")) + return new HV(this.erc721, this.contractWrapper); + } + }, + tR = class { + constructor(e, t, n) { + le._defineProperty(this, "featureName", D9.name), + le._defineProperty(this, "contractWrapper", void 0), + le._defineProperty(this, "storage", void 0), + le._defineProperty(this, "erc721", void 0), + (this.erc721 = e), + (this.contractWrapper = t), + (this.storage = n); + } + async to(e, t) { + let a = (await ob(t, this.storage)).map((c) => + this.contractWrapper.readContract.interface.encodeFunctionData( + "mintTo", + [e, c] + ) + ), + i = await this.contractWrapper.multiCall(a), + s = this.contractWrapper.parseLogs("TokensMinted", i.logs); + if (s.length === 0 || s.length < t.length) + throw new Error("TokenMinted event not found, minting failed"); + return s.map((c) => { + let l = c.args.tokenIdMinted; + return { id: l, receipt: i, data: () => this.erc721.get(l) }; + }); + } + }, + rR = class { + constructor(e, t, n) { + le._defineProperty(this, "featureName", z3.name), + le._defineProperty(this, "contractWrapper", void 0), + le._defineProperty(this, "storage", void 0), + le._defineProperty(this, "erc721", void 0), + le._defineProperty(this, "batch", void 0), + (this.erc721 = e), + (this.contractWrapper = t), + (this.storage = n), + (this.batch = this.detectErc721BatchMintable()); + } + async to(e, t) { + let n = await this.getMintTransaction(e, t), + { receipt: a } = await n.execute(), + i = this.contractWrapper.parseLogs("Transfer", a?.logs); + if (i.length === 0) throw new Error("TransferEvent event not found"); + let s = i[0].args.tokenId; + return { id: s, receipt: a, data: () => this.erc721.get(s) }; + } + async getMintTransaction(e, t) { + let n = await TG(t, this.storage); + return Xl.make({ + contractWrapper: this.contractWrapper, + functionName: "mintTo", + args: [e, n], + }); + } + detectErc721BatchMintable() { + if (Lt(this.contractWrapper, "ERC721BatchMintable")) + return new tR(this.erc721, this.contractWrapper, this.storage); + } + }, + nR = class { + constructor(e, t) { + le._defineProperty(this, "featureName", SV.name), + le._defineProperty(this, "contractWrapper", void 0), + le._defineProperty(this, "erc721", void 0), + (this.erc721 = e), + (this.contractWrapper = t); + } + async all(e) { + let t = await this.tokenIds(e); + return await Promise.all(t.map((n) => this.erc721.get(n.toString()))); + } + async tokenIds(e) { + let t = e || (await this.contractWrapper.getSignerAddress()), + n = await this.contractWrapper.readContract.balanceOf(t), + a = Array.from(Array(n.toNumber()).keys()); + return await Promise.all( + a.map((i) => + this.contractWrapper.readContract.tokenOfOwnerByIndex(t, i) + ) + ); + } + }, + aR = class { + constructor(e, t) { + le._defineProperty(this, "featureName", s2.name), + le._defineProperty(this, "contractWrapper", void 0), + le._defineProperty(this, "erc721", void 0), + le._defineProperty(this, "owned", void 0), + (this.erc721 = e), + (this.contractWrapper = t), + (this.owned = this.detectErc721Owned()); + } + async all(e) { + let t = se.BigNumber.from(e?.start || 0).toNumber(), + n = se.BigNumber.from( + e?.count || le.DEFAULT_QUERY_ALL_COUNT + ).toNumber(), + a = await this.erc721.nextTokenIdToMint(), + i = Math.min(a.toNumber(), t + n); + return await Promise.all( + [...Array(i - t).keys()].map((s) => + this.erc721.get((t + s).toString()) + ) + ); + } + async allOwners() { + return Promise.all( + [...new Array((await this.totalCount()).toNumber()).keys()].map( + async (e) => ({ + tokenId: e, + owner: await this.erc721 + .ownerOf(e) + .catch(() => se.constants.AddressZero), + }) + ) + ); + } + async totalCount() { + return await this.erc721.nextTokenIdToMint(); + } + async totalCirculatingSupply() { + return await this.contractWrapper.readContract.totalSupply(); + } + detectErc721Owned() { + if (Lt(this.contractWrapper, "ERC721Enumerable")) + return new nR(this.erc721, this.contractWrapper); + } + }, + Thr = _R.extend({ + tierPriority: Te.z.array(Te.z.string()), + royaltyRecipient: Te.z.string().default(se.constants.AddressZero), + royaltyBps: le.BasisPointsSchema.default(0), + quantity: Ti.default(1), + }), + zV = class { + constructor(e, t, n) { + le._defineProperty(this, "featureName", N9.name), + le._defineProperty(this, "contractWrapper", void 0), + le._defineProperty(this, "erc721", void 0), + le._defineProperty(this, "storage", void 0), + (this.erc721 = e), + (this.contractWrapper = t), + (this.storage = n); + } + async getMetadataInTier(e) { + let n = ( + await this.contractWrapper.readContract.getMetadataForAllTiers() + ).find((i) => i.tier === e); + if (!n) throw new Error("Tier not found in contract."); + return await Promise.all( + n.ranges + .map((i, s) => { + let c = [], + l = n.baseURIs[s]; + for ( + let d = i.startIdInclusive.toNumber(); + d < i.endIdNonInclusive.toNumber(); + d++ + ) { + let m = `${l}/${d}`, + w = this.storage.downloadJSON(m); + c.push(w); + } + return c; + }) + .flat() + ); + } + async getTokensInTier(e) { + let t = await this.contractWrapper.readContract.getTokensInTierLen(); + if (t.eq(0)) return []; + let n = await this.contractWrapper.readContract.getTokensInTier( + e, + 0, + t + ); + return await Promise.all( + n + .map((i) => { + let s = []; + for ( + let c = i.startIdInclusive.toNumber(); + c < i.endIdNonInclusive.toNumber(); + c++ + ) + s.push(this.erc721.get(c)); + return s; + }) + .flat() + ); + } + async createBatchWithTier(e, t, n) { + let a = await this.erc721.nextTokenIdToMint(), + i = await ob(e, this.storage, a.toNumber(), n), + s = i2(i), + c = await this.contractWrapper.sendTransaction("lazyMint", [ + i.length, + s.endsWith("/") ? s : `${s}/`, + t, + se.ethers.utils.toUtf8Bytes(""), + ]), + l = this.contractWrapper.parseLogs("TokensLazyMinted", c?.logs), + d = l[0].args[1], + m = l[0].args[2], + w = []; + for (let C = d; C.lte(m); C = C.add(1)) + w.push({ + id: C, + receipt: c, + data: () => this.erc721.getTokenMetadata(C), + }); + return w; + } + async createDelayedRevealBatchWithTier(e, t, n, a, i) { + if (!n) throw new Error("Password is required"); + let s = await this.storage.uploadBatch([le.CommonNFTInput.parse(e)], { + rewriteFileNames: { fileStartNumber: 0 }, + }), + c = i2(s), + l = await this.erc721.nextTokenIdToMint(), + d = await this.storage.uploadBatch( + t.map(($) => le.CommonNFTInput.parse($)), + { + onProgress: i?.onProgress, + rewriteFileNames: { fileStartNumber: l.toNumber() }, + } + ), + m = i2(d), + w = await this.contractWrapper.readContract.getBaseURICount(), + C = await this.contractWrapper.getChainID(), + I = se.ethers.utils.solidityKeccak256( + ["string", "uint256", "uint256", "address"], + [n, C, w, this.contractWrapper.readContract.address] + ), + k = await this.contractWrapper.readContract.encryptDecrypt( + se.ethers.utils.toUtf8Bytes(m), + I + ), + O, + D = se.ethers.utils.solidityKeccak256( + ["bytes", "bytes", "uint256"], + [se.ethers.utils.toUtf8Bytes(m), I, C] + ); + O = se.ethers.utils.defaultAbiCoder.encode( + ["bytes", "bytes32"], + [k, D] + ); + let W = await this.contractWrapper.sendTransaction("lazyMint", [ + d.length, + c.endsWith("/") ? c : `${c}/`, + a, + O, + ]), + H = this.contractWrapper.parseLogs("TokensLazyMinted", W?.logs), + j = H[0].args[1], + V = H[0].args[2], + te = []; + for (let $ = j; $.lte(V); $ = $.add(1)) + te.push({ + id: $, + receipt: W, + data: () => this.erc721.getTokenMetadata($), + }); + return te; + } + async reveal(e, t) { + if (!t) throw new Error("Password is required"); + let n = await this.contractWrapper.getChainID(), + a = se.ethers.utils.solidityKeccak256( + ["string", "uint256", "uint256", "address"], + [t, n, e, this.contractWrapper.readContract.address] + ); + try { + let i = await this.contractWrapper.callStatic().reveal(e, a); + if (!i.includes("://") || !i.endsWith("/")) + throw new Error("invalid password"); + } catch { + throw new Error("invalid password"); + } + return { + receipt: await this.contractWrapper.sendTransaction("reveal", [ + e, + a, + ]), + }; + } + async generate(e) { + let [t] = await this.generateBatch([e]); + return t; + } + async generateBatch(e) { + let t = e.map((i) => Thr.parse(i)), + n = await this.contractWrapper.getChainID(), + a = this.contractWrapper.getSigner(); + return ( + pr.default(a, "No signer available"), + await Promise.all( + t.map(async (i) => { + let s = await this.contractWrapper.signTypedData( + a, + { + name: "SignatureAction", + version: "1", + chainId: n, + verifyingContract: + this.contractWrapper.readContract.address, + }, + { GenericRequest: Pje }, + await this.mapPayloadToContractStruct(i) + ); + return { payload: i, signature: s.toString() }; + }) + ) + ); + } + async verify(e) { + let t = await this.mapPayloadToContractStruct(e.payload); + return ( + await this.contractWrapper.readContract.verify(t, e.signature) + )[0]; + } + async claimWithSignature(e) { + let t = await this.mapPayloadToContractStruct(e.payload), + n = await oc( + this.contractWrapper.getProvider(), + e.payload.price, + e.payload.currencyAddress + ), + a = await this.contractWrapper.getCallOverrides(); + await x0(this.contractWrapper, n, e.payload.currencyAddress, a); + let i = await this.contractWrapper.sendTransaction( + "claimWithSignature", + [t, e.signature], + a + ), + s = this.contractWrapper.parseLogs("TokensClaimed", i?.logs), + c = s[0].args.startTokenId, + l = c.add(s[0].args.quantityClaimed), + d = []; + for (let m = c; m.lt(l); m = m.add(1)) + d.push({ id: m, receipt: i, data: () => this.erc721.get(m) }); + return d; + } + async mapPayloadToContractStruct(e) { + let t = await oc( + this.contractWrapper.getProvider(), + e.price, + e.currencyAddress + ), + n = se.ethers.utils.defaultAbiCoder.encode( + [ + "string[]", + "address", + "address", + "uint256", + "address", + "uint256", + "uint256", + "address", + ], + [ + e.tierPriority, + e.to, + e.royaltyRecipient, + e.royaltyBps, + e.primarySaleRecipient, + e.quantity, + t, + e.currencyAddress, + ] + ); + return { + uid: e.uid, + validityStartTimestamp: e.mintStartTime, + validityEndTimestamp: e.mintEndTime, + data: n, + }; + } + }, + iR = class { + constructor(e, t) { + le._defineProperty(this, "featureName", q9.name), + le._defineProperty(this, "contractWrapper", void 0), + le._defineProperty(this, "storage", void 0), + (this.contractWrapper = e), + (this.storage = t); + } + async mint(e) { + let t = e.payload, + n = e.signature, + a = await this.isLegacyNFTContract(), + i, + s; + a + ? ((i = await this.mapLegacyPayloadToContractStruct(t)), + (s = i.price)) + : ((i = await this.mapPayloadToContractStruct(t)), + (s = i.pricePerToken.mul(i.quantity))); + let c = await this.contractWrapper.getCallOverrides(); + await x0(this.contractWrapper, s, t.currencyAddress, c); + let l = await this.contractWrapper.sendTransaction( + "mintWithSignature", + [i, n], + c + ), + d = this.contractWrapper.parseLogs( + "TokensMintedWithSignature", + l.logs + ); + if (d.length === 0) + throw new Error("No MintWithSignature event found"); + return { id: d[0].args.tokenIdMinted, receipt: l }; + } + async mintBatch(e) { + let t = await this.isLegacyNFTContract(), + a = ( + await Promise.all( + e.map(async (c) => { + let l; + t + ? (l = await this.mapLegacyPayloadToContractStruct( + c.payload + )) + : (l = await this.mapPayloadToContractStruct(c.payload)); + let d = c.signature, + m = c.payload.price; + if (se.BigNumber.from(m).gt(0)) + throw new Error( + "Can only batch free mints. For mints with a price, use regular mint()" + ); + return { message: l, signature: d }; + }) + ) + ).map((c) => + t + ? this.contractWrapper.readContract.interface.encodeFunctionData( + "mintWithSignature", + [c.message, c.signature] + ) + : this.contractWrapper.readContract.interface.encodeFunctionData( + "mintWithSignature", + [c.message, c.signature] + ) + ), + i = await this.contractWrapper.multiCall(a), + s = this.contractWrapper.parseLogs( + "TokensMintedWithSignature", + i.logs + ); + if (s.length === 0) + throw new Error("No MintWithSignature event found"); + return s.map((c) => ({ id: c.args.tokenIdMinted, receipt: i })); + } + async verify(e) { + let t = await this.isLegacyNFTContract(), + n = e.payload, + a = e.signature, + i, + s; + if (t) { + let c = this.contractWrapper.readContract; + (i = await this.mapLegacyPayloadToContractStruct(n)), + (s = await c.verify(i, a)); + } else { + let c = this.contractWrapper.readContract; + (i = await this.mapPayloadToContractStruct(n)), + (s = await c.verify(i, a)); + } + return s[0]; + } + async generate(e) { + return (await this.generateBatch([e]))[0]; + } + async generateBatch(e) { + let t = await this.isLegacyNFTContract(), + n = e.map((l) => Cje.parse(l)), + a = n.map((l) => l.metadata), + i = await ob(a, this.storage), + s = await this.contractWrapper.getChainID(), + c = this.contractWrapper.getSigner(); + return ( + pr.default(c, "No signer available"), + await Promise.all( + n.map(async (l, d) => { + let m = i[d], + w = Ije.parse({ ...l, uri: m }), + C; + return ( + t + ? (C = await this.contractWrapper.signTypedData( + c, + { + name: "TokenERC721", + version: "1", + chainId: s, + verifyingContract: + this.contractWrapper.readContract.address, + }, + { MintRequest: kje }, + await this.mapLegacyPayloadToContractStruct(w) + )) + : (C = await this.contractWrapper.signTypedData( + c, + { + name: "SignatureMintERC721", + version: "1", + chainId: s, + verifyingContract: await this.contractWrapper + .readContract.address, + }, + { MintRequest: Mje }, + await this.mapPayloadToContractStruct(w) + )), + { payload: w, signature: C.toString() } + ); + }) + ) + ); + } + async mapPayloadToContractStruct(e) { + let t = await oc( + this.contractWrapper.getProvider(), + e.price, + e.currencyAddress + ); + return { + to: e.to, + royaltyRecipient: e.royaltyRecipient, + royaltyBps: e.royaltyBps, + primarySaleRecipient: e.primarySaleRecipient, + uri: e.uri, + quantity: e.quantity, + pricePerToken: t, + currency: e.currencyAddress, + validityStartTimestamp: e.mintStartTime, + validityEndTimestamp: e.mintEndTime, + uid: e.uid, + }; + } + async mapLegacyPayloadToContractStruct(e) { + let t = await oc( + this.contractWrapper.getProvider(), + e.price, + e.currencyAddress + ); + return { + to: e.to, + price: t, + uri: e.uri, + currency: e.currencyAddress, + validityEndTimestamp: e.mintEndTime, + validityStartTimestamp: e.mintStartTime, + uid: e.uid, + royaltyRecipient: e.royaltyRecipient, + royaltyBps: e.royaltyBps, + primarySaleRecipient: e.primarySaleRecipient, + }; + } + async isLegacyNFTContract() { + return Lt(this.contractWrapper, "ERC721SignatureMintV1"); + } + }, + J3 = class { + get chainId() { + return this._chainId; + } + constructor(e, t, n) { + le._defineProperty(this, "featureName", F9.name), + le._defineProperty(this, "query", void 0), + le._defineProperty(this, "mintable", void 0), + le._defineProperty(this, "burnable", void 0), + le._defineProperty(this, "lazyMintable", void 0), + le._defineProperty(this, "tieredDropable", void 0), + le._defineProperty(this, "signatureMintable", void 0), + le._defineProperty(this, "contractWrapper", void 0), + le._defineProperty(this, "storage", void 0), + le._defineProperty(this, "_chainId", void 0), + (this.contractWrapper = e), + (this.storage = t), + (this.query = this.detectErc721Enumerable()), + (this.mintable = this.detectErc721Mintable()), + (this.burnable = this.detectErc721Burnable()), + (this.lazyMintable = this.detectErc721LazyMintable()), + (this.tieredDropable = this.detectErc721TieredDrop()), + (this.signatureMintable = this.detectErc721SignatureMintable()), + (this._chainId = n); + } + onNetworkUpdated(e) { + this.contractWrapper.updateSignerOrProvider(e); + } + getAddress() { + return this.contractWrapper.readContract.address; + } + async get(e) { + let [t, n] = await Promise.all([ + this.ownerOf(e).catch(() => se.constants.AddressZero), + this.getTokenMetadata(e).catch(() => ({ + id: e.toString(), + uri: "", + ..._G, + })), + ]); + return { owner: t, metadata: n, type: "ERC721", supply: 1 }; + } + async ownerOf(e) { + return await this.contractWrapper.readContract.ownerOf(e); + } + async balanceOf(e) { + return await this.contractWrapper.readContract.balanceOf(e); + } + async balance() { + return await this.balanceOf( + await this.contractWrapper.getSignerAddress() + ); + } + async isApproved(e, t) { + return await this.contractWrapper.readContract.isApprovedForAll(e, t); + } + async transfer(e, t) { + let n = await this.contractWrapper.getSignerAddress(); + return { + receipt: await this.contractWrapper.sendTransaction( + "safeTransferFrom(address,address,uint256)", + [n, e, t] + ), + }; + } + async setApprovalForAll(e, t) { + return { + receipt: await this.contractWrapper.sendTransaction( + "setApprovalForAll", + [e, t] + ), + }; + } + async setApprovalForToken(e, t) { + return { + receipt: await this.contractWrapper.sendTransaction("approve", [ + e, + t, + ]), + }; + } + async getAll(e) { + return br(this.query, s2).all(e); + } + async getAllOwners() { + return br(this.query, s2).allOwners(); + } + async totalCount() { + return this.nextTokenIdToMint(); + } + async totalCirculatingSupply() { + return br(this.query, s2).totalCirculatingSupply(); + } + async getOwned(e) { + if (this.query?.owned) return this.query.owned.all(e); + { + let t = e || (await this.contractWrapper.getSignerAddress()), + n = await this.getAllOwners(); + return Promise.all( + (n || []) + .filter((a) => t?.toLowerCase() === a.owner?.toLowerCase()) + .map(async (a) => await this.get(a.tokenId)) + ); + } + } + async getOwnedTokenIds(e) { + if (this.query?.owned) return this.query.owned.tokenIds(e); + { + let t = e || (await this.contractWrapper.getSignerAddress()); + return ((await this.getAllOwners()) || []) + .filter((a) => t?.toLowerCase() === a.owner?.toLowerCase()) + .map((a) => se.BigNumber.from(a.tokenId)); + } + } + async mint(e) { + return this.mintTo(await this.contractWrapper.getSignerAddress(), e); + } + async mintTo(e, t) { + return br(this.mintable, z3).to(e, t); + } + async getMintTransaction(e, t) { + return br(this.mintable, z3).getMintTransaction(e, t); + } + async mintBatch(e) { + return this.mintBatchTo( + await this.contractWrapper.getSignerAddress(), + e + ); + } + async mintBatchTo(e, t) { + return br(this.mintable?.batch, D9).to(e, t); + } + async burn(e) { + return br(this.burnable, B9).token(e); + } + async lazyMint(e, t) { + return br(this.lazyMintable, L9).lazyMint(e, t); + } + async claim(e, t) { + return this.claimTo( + await this.contractWrapper.getSignerAddress(), + e, + t + ); + } + async claimTo(e, t, n) { + let a = this.lazyMintable?.claimWithConditions, + i = this.lazyMintable?.claim; + if (a) return a.to(e, t, n); + if (i) return i.to(e, t, n); + throw new Wf(H3); + } + async getClaimTransaction(e, t, n) { + let a = this.lazyMintable?.claimWithConditions, + i = this.lazyMintable?.claim; + if (a) return a.conditions.getClaimTransaction(e, t, n); + if (i) return i.getClaimTransaction(e, t, n); + throw new Wf(H3); + } + async totalClaimedSupply() { + let e = this.contractWrapper; + if (sc("nextTokenIdToClaim", e)) + return e.readContract.nextTokenIdToClaim(); + if (sc("totalMinted", e)) return e.readContract.totalMinted(); + throw new Error( + "No function found on contract to get total claimed supply" + ); + } + async totalUnclaimedSupply() { + return (await this.nextTokenIdToMint()).sub( + await this.totalClaimedSupply() + ); + } + get claimConditions() { + return br(this.lazyMintable?.claimWithConditions, O9).conditions; + } + get tieredDrop() { + return br(this.tieredDropable, N9); + } + get signature() { + return br(this.signatureMintable, q9); + } + get revealer() { + return br(this.lazyMintable?.revealer, U3); + } + async getTokenMetadata(e) { + let t = await this.contractWrapper.readContract.tokenURI(e); + if (!t) throw new c2(); + return xG(e, t, this.storage); + } + async nextTokenIdToMint() { + if (sc("nextTokenIdToMint", this.contractWrapper)) + return await this.contractWrapper.readContract.nextTokenIdToMint(); + if (sc("totalSupply", this.contractWrapper)) + return await this.contractWrapper.readContract.totalSupply(); + throw new Error( + "Contract requires either `nextTokenIdToMint` or `totalSupply` function available to determine the next token ID to mint" + ); + } + detectErc721Enumerable() { + if ( + Lt(this.contractWrapper, "ERC721Supply") || + sc("nextTokenIdToMint", this.contractWrapper) + ) + return new aR(this, this.contractWrapper); + } + detectErc721Mintable() { + if (Lt(this.contractWrapper, "ERC721Mintable")) + return new rR(this, this.contractWrapper, this.storage); + } + detectErc721Burnable() { + if (Lt(this.contractWrapper, "ERC721Burnable")) + return new Q9(this.contractWrapper); + } + detectErc721LazyMintable() { + if (Lt(this.contractWrapper, "ERC721LazyMintable")) + return new eR(this, this.contractWrapper, this.storage); + } + detectErc721TieredDrop() { + if (Lt(this.contractWrapper, "ERC721TieredDrop")) + return new zV(this, this.contractWrapper, this.storage); + } + detectErc721SignatureMintable() { + if ( + Lt(this.contractWrapper, "ERC721SignatureMintV1") || + Lt(this.contractWrapper, "ERC721SignatureMintV2") + ) + return new iR(this.contractWrapper, this.storage); + } + }, + jV = class { + get chainId() { + return this._chainId; + } + constructor(e, t, n) { + le._defineProperty(this, "contractWrapper", void 0), + le._defineProperty(this, "storage", void 0), + le._defineProperty(this, "erc721", void 0), + le._defineProperty(this, "_chainId", void 0), + (this.contractWrapper = e), + (this.storage = t), + (this.erc721 = new J3(this.contractWrapper, this.storage, n)), + (this._chainId = n); + } + onNetworkUpdated(e) { + this.contractWrapper.updateSignerOrProvider(e); + } + getAddress() { + return this.contractWrapper.readContract.address; + } + async getAll(e) { + return this.erc721.getAll(e); + } + async getOwned(e) { + return this.erc721.getOwned(e); + } + async getOwnedTokenIds(e) { + return this.erc721.getOwnedTokenIds(e); + } + async totalSupply() { + return this.erc721.totalCirculatingSupply(); + } + async get(e) { + return this.erc721.get(e); + } + async ownerOf(e) { + return this.erc721.ownerOf(e); + } + async balanceOf(e) { + return this.erc721.balanceOf(e); + } + async balance() { + return this.erc721.balance(); + } + async isApproved(e, t) { + return this.erc721.isApproved(e, t); + } + async transfer(e, t) { + return this.erc721.transfer(e, t); + } + async setApprovalForAll(e, t) { + return this.erc721.setApprovalForAll(e, t); + } + async setApprovalForToken(e, t) { + return { + receipt: await this.contractWrapper.sendTransaction("approve", [ + e, + t, + ]), + }; + } + }, + Kze = Te.z.object({ address: Nc, quantity: le.AmountSchema.default(1) }), + Ehr = Te.z.union([ + Te.z + .array(Te.z.string()) + .transform((r) => r.map((e) => Kze.parse({ address: e }))), + Te.z.array(Kze), + ]), + sR = class { + constructor(e) { + le._defineProperty(this, "featureName", tb.name), + le._defineProperty(this, "contractWrapper", void 0), + (this.contractWrapper = e); + } + async tokens(e, t) { + let n = await this.contractWrapper.getSignerAddress(); + return this.from(n, e, t); + } + async from(e, t, n) { + return { + receipt: await this.contractWrapper.sendTransaction("burn", [ + e, + t, + n, + ]), + }; + } + async batch(e, t) { + let n = await this.contractWrapper.getSignerAddress(); + return this.batchFrom(n, e, t); + } + async batchFrom(e, t, n) { + return { + receipt: await this.contractWrapper.sendTransaction("burnBatch", [ + e, + t, + n, + ]), + }; + } + }, + oR = class { + constructor(e, t) { + le._defineProperty(this, "featureName", nb.name), + le._defineProperty(this, "contractWrapper", void 0), + le._defineProperty(this, "erc1155", void 0), + (this.erc1155 = e), + (this.contractWrapper = t); + } + async all(e) { + let t = se.BigNumber.from(e?.start || 0).toNumber(), + n = se.BigNumber.from( + e?.count || le.DEFAULT_QUERY_ALL_COUNT + ).toNumber(), + a = Math.min((await this.totalCount()).toNumber(), t + n); + return await Promise.all( + [...Array(a - t).keys()].map((i) => + this.erc1155.get((t + i).toString()) + ) + ); + } + async totalCount() { + return await this.contractWrapper.readContract.nextTokenIdToMint(); + } + async totalCirculatingSupply(e) { + return await this.contractWrapper.readContract.totalSupply(e); + } + async owned(e) { + let t = e || (await this.contractWrapper.getSignerAddress()), + n = await this.contractWrapper.readContract.nextTokenIdToMint(), + i = ( + await this.contractWrapper.readContract.balanceOfBatch( + Array(n.toNumber()).fill(t), + Array.from(Array(n.toNumber()).keys()) + ) + ) + .map((s, c) => ({ tokenId: c, balance: s })) + .filter((s) => s.balance.gt(0)); + return await Promise.all( + i.map(async (s) => ({ + ...(await this.erc1155.get(s.tokenId.toString())), + owner: t, + quantityOwned: s.balance.toNumber(), + })) + ); + } + }; + async function PG(r, e) { + try { + let t = new se.ethers.Contract(r, ije.default, e), + [n, a] = await Promise.all([ + se.ethers.utils + .toUtf8String(await t.contractType()) + .replace(/\x00/g, ""), + await t.contractVersion(), + ]); + return { type: n, version: a }; + } catch { + return; + } + } + var KV = class { + constructor(e) { + le._defineProperty(this, "featureName", j3.name), + le._defineProperty(this, "contractWrapper", void 0), + (this.contractWrapper = e); + } + async getClaimTransaction(e, t, n, a) { + let i = {}; + return ( + a && + a.pricePerToken && + (i = await iKe( + this.contractWrapper, + a.pricePerToken, + n, + a.currencyAddress, + a.checkERC20Allowance + )), + Xl.make({ + contractWrapper: this.contractWrapper, + functionName: "claim", + args: [e, t, n], + overrides: i, + }) + ); + } + async to(e, t, n, a) { + return await (await this.getClaimTransaction(e, t, n, a)).execute(); + } + }, + VV = class { + constructor(e, t) { + le._defineProperty(this, "featureName", W9.name), + le._defineProperty(this, "conditions", void 0), + le._defineProperty(this, "contractWrapper", void 0), + le._defineProperty(this, "storage", void 0), + (this.contractWrapper = e), + (this.storage = t); + let n = new T0(this.contractWrapper, g2, this.storage); + this.conditions = new G9(e, n, this.storage); + } + async to(e, t, n, a) { + return await ( + await this.conditions.getClaimTransaction(e, t, n, a) + ).execute(); + } + }, + cR = class { + constructor(e, t, n) { + le._defineProperty(this, "featureName", U9.name), + le._defineProperty(this, "revealer", void 0), + le._defineProperty(this, "claimWithConditions", void 0), + le._defineProperty(this, "claim", void 0), + le._defineProperty(this, "contractWrapper", void 0), + le._defineProperty(this, "erc1155", void 0), + le._defineProperty(this, "storage", void 0), + (this.erc1155 = e), + (this.contractWrapper = t), + (this.storage = n), + (this.claim = this.detectErc1155Claimable()), + (this.claimWithConditions = + this.detectErc1155ClaimableWithConditions()), + (this.revealer = this.detectErc1155Revealable()); + } + async lazyMint(e, t) { + let n = await this.erc1155.nextTokenIdToMint(), + a = await ob(e, this.storage, n.toNumber(), t), + i = a[0].substring(0, a[0].lastIndexOf("/")); + for (let C = 0; C < a.length; C++) { + let I = a[C].substring(0, a[C].lastIndexOf("/")); + if (i !== I) + throw new Error( + `Can only create batches with the same base URI for every entry in the batch. Expected '${i}' but got '${I}'` + ); + } + let s = await this.isLegacyEditionDropContract(), + c; + s + ? (c = await this.contractWrapper.sendTransaction("lazyMint", [ + a.length, + `${i.endsWith("/") ? i : `${i}/`}`, + ])) + : (c = await this.contractWrapper.sendTransaction("lazyMint", [ + a.length, + `${i.endsWith("/") ? i : `${i}/`}`, + se.ethers.utils.toUtf8Bytes(""), + ])); + let l = this.contractWrapper.parseLogs("TokensLazyMinted", c?.logs), + d = l[0].args.startTokenId, + m = l[0].args.endTokenId, + w = []; + for (let C = d; C.lte(m); C = C.add(1)) + w.push({ + id: C, + receipt: c, + data: () => this.erc1155.getTokenMetadata(C), + }); + return w; + } + detectErc1155Claimable() { + if (Lt(this.contractWrapper, "ERC1155ClaimCustom")) + return new KV(this.contractWrapper); + } + detectErc1155ClaimableWithConditions() { + if ( + Lt(this.contractWrapper, "ERC1155ClaimConditionsV1") || + Lt(this.contractWrapper, "ERC1155ClaimConditionsV2") || + Lt(this.contractWrapper, "ERC1155ClaimPhasesV1") || + Lt(this.contractWrapper, "ERC1155ClaimPhasesV2") + ) + return new VV(this.contractWrapper, this.storage); + } + detectErc1155Revealable() { + if (Lt(this.contractWrapper, "ERC1155Revealable")) + return new D3(this.contractWrapper, this.storage, l2.name, () => + this.erc1155.nextTokenIdToMint() + ); + } + async isLegacyEditionDropContract() { + let e = await PG( + this.contractWrapper.readContract.address, + this.contractWrapper.getProvider() + ); + return e && e.type === "DropERC1155" && e.version < 3; + } + }, + uR = class { + constructor(e, t, n) { + le._defineProperty(this, "featureName", z9.name), + le._defineProperty(this, "contractWrapper", void 0), + le._defineProperty(this, "erc1155", void 0), + le._defineProperty(this, "storage", void 0), + (this.erc1155 = e), + (this.contractWrapper = t), + (this.storage = n); + } + async to(e, t) { + let n = t.map((d) => d.metadata), + a = t.map((d) => d.supply), + s = (await ob(n, this.storage)).map((d, m) => + this.contractWrapper.readContract.interface.encodeFunctionData( + "mintTo", + [e, se.ethers.constants.MaxUint256, d, a[m]] + ) + ), + c = await this.contractWrapper.multiCall(s), + l = this.contractWrapper.parseLogs("TokensMinted", c.logs); + if (l.length === 0 || l.length < n.length) + throw new Error("TokenMinted event not found, minting failed"); + return l.map((d) => { + let m = d.args.tokenIdMinted; + return { id: m, receipt: c, data: () => this.erc1155.get(m) }; + }); + } + }, + lR = class { + constructor(e, t, n) { + le._defineProperty(this, "featureName", rb.name), + le._defineProperty(this, "contractWrapper", void 0), + le._defineProperty(this, "erc1155", void 0), + le._defineProperty(this, "storage", void 0), + le._defineProperty(this, "batch", void 0), + (this.erc1155 = e), + (this.contractWrapper = t), + (this.storage = n), + (this.batch = this.detectErc1155BatchMintable()); + } + async to(e, t) { + let n = await this.getMintTransaction(e, t), + { receipt: a } = await n.execute(), + i = this.contractWrapper.parseLogs("TransferSingle", a?.logs); + if (i.length === 0) + throw new Error("TransferSingleEvent event not found"); + let s = i[0].args.id; + return { + id: s, + receipt: a, + data: () => this.erc1155.get(s.toString()), + }; + } + async getMintTransaction(e, t) { + let n = await TG(t.metadata, this.storage); + return Xl.make({ + contractWrapper: this.contractWrapper, + functionName: "mintTo", + args: [e, se.ethers.constants.MaxUint256, n, t.supply], + }); + } + async additionalSupplyTo(e, t, n) { + let a = await this.erc1155.getTokenMetadata(t), + i = await this.contractWrapper.sendTransaction("mintTo", [ + e, + t, + a.uri, + n, + ]); + return { + id: se.BigNumber.from(t), + receipt: i, + data: () => this.erc1155.get(t), + }; + } + detectErc1155BatchMintable() { + if (Lt(this.contractWrapper, "ERC1155BatchMintable")) + return new uR(this.erc1155, this.contractWrapper, this.storage); + } + }, + dR = class { + constructor(e, t, n) { + le._defineProperty(this, "featureName", H9.name), + le._defineProperty(this, "contractWrapper", void 0), + le._defineProperty(this, "storage", void 0), + le._defineProperty(this, "roles", void 0), + (this.contractWrapper = e), + (this.storage = t), + (this.roles = n); + } + async mint(e) { + let t = e.payload, + n = e.signature, + a = await this.mapPayloadToContractStruct(t), + i = await this.contractWrapper.getCallOverrides(); + await x0( + this.contractWrapper, + a.pricePerToken.mul(a.quantity), + t.currencyAddress, + i + ); + let s = await this.contractWrapper.sendTransaction( + "mintWithSignature", + [a, n], + i + ), + c = this.contractWrapper.parseLogs( + "TokensMintedWithSignature", + s.logs + ); + if (c.length === 0) + throw new Error("No MintWithSignature event found"); + return { id: c[0].args.tokenIdMinted, receipt: s }; + } + async mintBatch(e) { + let n = ( + await Promise.all( + e.map(async (s) => { + let c = await this.mapPayloadToContractStruct(s.payload), + l = s.signature, + d = s.payload.price; + if (se.BigNumber.from(d).gt(0)) + throw new Error( + "Can only batch free mints. For mints with a price, use regular mint()" + ); + return { message: c, signature: l }; + }) + ) + ).map((s) => + this.contractWrapper.readContract.interface.encodeFunctionData( + "mintWithSignature", + [s.message, s.signature] + ) + ), + a = await this.contractWrapper.multiCall(n), + i = this.contractWrapper.parseLogs( + "TokensMintedWithSignature", + a.logs + ); + if (i.length === 0) + throw new Error("No MintWithSignature event found"); + return i.map((s) => ({ id: s.args.tokenIdMinted, receipt: a })); + } + async verify(e) { + let t = e.payload, + n = e.signature, + a = await this.mapPayloadToContractStruct(t); + return (await this.contractWrapper.readContract.verify(a, n))[0]; + } + async generate(e) { + let t = { ...e, tokenId: se.ethers.constants.MaxUint256 }; + return this.generateFromTokenId(t); + } + async generateFromTokenId(e) { + return (await this.generateBatchFromTokenIds([e]))[0]; + } + async generateBatch(e) { + let t = e.map((n) => ({ + ...n, + tokenId: se.ethers.constants.MaxUint256, + })); + return this.generateBatchFromTokenIds(t); + } + async generateBatchFromTokenIds(e) { + await this.roles?.verify( + ["minter"], + await this.contractWrapper.getSignerAddress() + ); + let t = e.map((d) => Tje.parse(d)), + n = t.map((d) => d.metadata), + a = await ob(n, this.storage), + i = await this.contractWrapper.getChainID(), + s = this.contractWrapper.getSigner(); + pr.default(s, "No signer available"); + let l = + ( + await PG( + this.contractWrapper.readContract.address, + this.contractWrapper.getProvider() + ) + )?.type === "TokenERC1155"; + return await Promise.all( + t.map(async (d, m) => { + let w = a[m], + C = Eje.parse({ ...d, uri: w }), + I = await this.contractWrapper.signTypedData( + s, + { + name: l ? "TokenERC1155" : "SignatureMintERC1155", + version: "1", + chainId: i, + verifyingContract: + this.contractWrapper.readContract.address, + }, + { MintRequest: Sje }, + await this.mapPayloadToContractStruct(C) + ); + return { payload: C, signature: I.toString() }; + }) + ); + } + async mapPayloadToContractStruct(e) { + let t = await oc( + this.contractWrapper.getProvider(), + e.price, + e.currencyAddress + ); + return { + to: e.to, + tokenId: e.tokenId, + uri: e.uri, + quantity: e.quantity, + pricePerToken: t, + currency: e.currencyAddress, + validityStartTimestamp: e.mintStartTime, + validityEndTimestamp: e.mintEndTime, + uid: e.uid, + royaltyRecipient: e.royaltyRecipient, + royaltyBps: e.royaltyBps, + primarySaleRecipient: e.primarySaleRecipient, + }; + } + }, + Z3 = class { + get chainId() { + return this._chainId; + } + constructor(e, t, n) { + le._defineProperty(this, "featureName", j9.name), + le._defineProperty(this, "query", void 0), + le._defineProperty(this, "mintable", void 0), + le._defineProperty(this, "burnable", void 0), + le._defineProperty(this, "lazyMintable", void 0), + le._defineProperty(this, "signatureMintable", void 0), + le._defineProperty(this, "contractWrapper", void 0), + le._defineProperty(this, "storage", void 0), + le._defineProperty(this, "_chainId", void 0), + (this.contractWrapper = e), + (this.storage = t), + (this.query = this.detectErc1155Enumerable()), + (this.mintable = this.detectErc1155Mintable()), + (this.burnable = this.detectErc1155Burnable()), + (this.lazyMintable = this.detectErc1155LazyMintable()), + (this.signatureMintable = this.detectErc1155SignatureMintable()), + (this._chainId = n); + } + onNetworkUpdated(e) { + this.contractWrapper.updateSignerOrProvider(e); + } + getAddress() { + return this.contractWrapper.readContract.address; + } + async get(e) { + let [t, n] = await Promise.all([ + this.contractWrapper.readContract + .totalSupply(e) + .catch(() => se.BigNumber.from(0)), + this.getTokenMetadata(e).catch(() => ({ + id: e.toString(), + uri: "", + ..._G, + })), + ]); + return { + owner: se.ethers.constants.AddressZero, + metadata: n, + type: "ERC1155", + supply: t.toNumber(), + }; + } + async totalSupply(e) { + return await this.contractWrapper.readContract.totalSupply(e); + } + async balanceOf(e, t) { + return await this.contractWrapper.readContract.balanceOf(e, t); + } + async balance(e) { + return await this.balanceOf( + await this.contractWrapper.getSignerAddress(), + e + ); + } + async isApproved(e, t) { + return await this.contractWrapper.readContract.isApprovedForAll(e, t); + } + async transfer(e, t, n) { + let a = + arguments.length > 3 && arguments[3] !== void 0 + ? arguments[3] + : [0], + i = await this.contractWrapper.getSignerAddress(); + return { + receipt: await this.contractWrapper.sendTransaction( + "safeTransferFrom", + [i, e, t, n, a] + ), + }; + } + async setApprovalForAll(e, t) { + return { + receipt: await this.contractWrapper.sendTransaction( + "setApprovalForAll", + [e, t] + ), + }; + } + async airdrop(e, t) { + let n = + arguments.length > 2 && arguments[2] !== void 0 + ? arguments[2] + : [0], + a = await this.contractWrapper.getSignerAddress(), + i = await this.balanceOf(a, e), + s = Ehr.parse(t), + c = s.reduce((d, m) => d + Number(m?.quantity || 1), 0); + if (i.toNumber() < c) + throw new Error( + `The caller owns ${i.toNumber()} NFTs, but wants to airdrop ${c} NFTs.` + ); + let l = s.map((d) => { + let { address: m, quantity: w } = d; + return this.contractWrapper.readContract.interface.encodeFunctionData( + "safeTransferFrom", + [a, m, e, w, n] + ); + }); + return { receipt: await this.contractWrapper.multiCall(l) }; + } + async nextTokenIdToMint() { + if (sc("nextTokenIdToMint", this.contractWrapper)) + return await this.contractWrapper.readContract.nextTokenIdToMint(); + throw new Error( + "Contract requires the `nextTokenIdToMint` function available to determine the next token ID to mint" + ); + } + async getAll(e) { + return br(this.query, nb).all(e); + } + async totalCount() { + return br(this.query, nb).totalCount(); + } + async totalCirculatingSupply(e) { + return br(this.query, nb).totalCirculatingSupply(e); + } + async getOwned(e) { + return br(this.query, nb).owned(e); + } + async mint(e) { + return this.mintTo(await this.contractWrapper.getSignerAddress(), e); + } + async mintTo(e, t) { + return br(this.mintable, rb).to(e, t); + } + async getMintTransaction(e, t) { + return br(this.mintable, rb).getMintTransaction(e, t); + } + async mintAdditionalSupply(e, t) { + return br(this.mintable, rb).additionalSupplyTo( + await this.contractWrapper.getSignerAddress(), + e, + t + ); + } + async mintAdditionalSupplyTo(e, t, n) { + return br(this.mintable, rb).additionalSupplyTo(e, t, n); + } + async mintBatch(e) { + return this.mintBatchTo( + await this.contractWrapper.getSignerAddress(), + e + ); + } + async mintBatchTo(e, t) { + return br(this.mintable?.batch, z9).to(e, t); + } + async burn(e, t) { + return br(this.burnable, tb).tokens(e, t); + } + async burnFrom(e, t, n) { + return br(this.burnable, tb).from(e, t, n); + } + async burnBatch(e, t) { + return br(this.burnable, tb).batch(e, t); + } + async burnBatchFrom(e, t, n) { + return br(this.burnable, tb).batchFrom(e, t, n); + } + async lazyMint(e, t) { + return br(this.lazyMintable, U9).lazyMint(e, t); + } + async getClaimTransaction(e, t, n, a) { + let i = this.lazyMintable?.claimWithConditions, + s = this.lazyMintable?.claim; + if (i) return i.conditions.getClaimTransaction(e, t, n, a); + if (s) return s.getClaimTransaction(e, t, n, a); + throw new Wf(j3); + } + async claim(e, t, n) { + return this.claimTo( + await this.contractWrapper.getSignerAddress(), + e, + t, + n + ); + } + async claimTo(e, t, n, a) { + let i = this.lazyMintable?.claimWithConditions, + s = this.lazyMintable?.claim; + if (i) return i.to(e, t, n, a); + if (s) return s.to(e, t, n, a); + throw new Wf(j3); + } + get claimConditions() { + return br(this.lazyMintable?.claimWithConditions, W9).conditions; + } + get signature() { + return br(this.signatureMintable, H9); + } + get revealer() { + return br(this.lazyMintable?.revealer, l2); + } + async getTokenMetadata(e) { + let t = await this.contractWrapper.readContract.uri(e); + if (!t) throw new c2(); + return xG(e, t, this.storage); + } + detectErc1155Enumerable() { + if (Lt(this.contractWrapper, "ERC1155Enumerable")) + return new oR(this, this.contractWrapper); + } + detectErc1155Mintable() { + if (Lt(this.contractWrapper, "ERC1155Mintable")) + return new lR(this, this.contractWrapper, this.storage); + } + detectErc1155Burnable() { + if (Lt(this.contractWrapper, "ERC1155Burnable")) + return new sR(this.contractWrapper); + } + detectErc1155LazyMintable() { + if ( + Lt(this.contractWrapper, "ERC1155LazyMintableV1") || + Lt(this.contractWrapper, "ERC1155LazyMintableV2") + ) + return new cR(this, this.contractWrapper, this.storage); + } + detectErc1155SignatureMintable() { + if (Lt(this.contractWrapper, "ERC1155SignatureMintable")) + return new dR(this.contractWrapper, this.storage); + } + }, + GV = class { + get chainId() { + return this._chainId; + } + constructor(e, t, n) { + le._defineProperty(this, "contractWrapper", void 0), + le._defineProperty(this, "storage", void 0), + le._defineProperty(this, "erc1155", void 0), + le._defineProperty(this, "_chainId", void 0), + (this.contractWrapper = e), + (this.storage = t), + (this.erc1155 = new Z3(this.contractWrapper, this.storage, n)), + (this._chainId = n); + } + onNetworkUpdated(e) { + this.contractWrapper.updateSignerOrProvider(e); + } + getAddress() { + return this.contractWrapper.readContract.address; + } + async get(e) { + return this.erc1155.get(e); + } + async totalSupply(e) { + return this.erc1155.totalSupply(e); + } + async balanceOf(e, t) { + return this.erc1155.balanceOf(e, t); + } + async balance(e) { + return this.erc1155.balance(e); + } + async isApproved(e, t) { + return this.erc1155.isApproved(e, t); + } + async transfer(e, t, n) { + let a = + arguments.length > 3 && arguments[3] !== void 0 + ? arguments[3] + : [0]; + return this.erc1155.transfer(e, t, n, a); + } + async setApprovalForAll(e, t) { + return this.erc1155.setApprovalForAll(e, t); + } + async airdrop(e, t) { + let n = + arguments.length > 2 && arguments[2] !== void 0 + ? arguments[2] + : [0]; + return this.erc1155.airdrop(e, t, n); + } + }; + async function xKe(r, e, t, n, a) { + try { + let i = new se.Contract(t, wR.default, r), + s = await i.supportsInterface(Q3), + c = await i.supportsInterface(X3); + if (s) { + let l = new se.Contract(t, io.default, r); + return (await l.isApprovedForAll(a, e)) + ? !0 + : (await l.getApproved(n)).toLowerCase() === e.toLowerCase(); + } else + return c + ? await new se.Contract(t, Oc.default, r).isApprovedForAll(a, e) + : (console.error( + "Contract does not implement ERC 1155 or ERC 721." + ), + !1); + } catch (i) { + return console.error("Failed to check if token is approved", i), !1; + } + } + async function RG(r, e, t, n, a) { + let i = new ms(r.getSignerOrProvider(), t, wR.default, r.options), + s = await i.readContract.supportsInterface(Q3), + c = await i.readContract.supportsInterface(X3); + if (s) { + let l = new ms(r.getSignerOrProvider(), t, io.default, r.options); + (await l.readContract.isApprovedForAll(a, e)) || + (await l.readContract.getApproved(n)).toLowerCase() === + e.toLowerCase() || + (await l.sendTransaction("setApprovalForAll", [e, !0])); + } else if (c) { + let l = new ms(r.getSignerOrProvider(), t, Oc.default, r.options); + (await l.readContract.isApprovedForAll(a, e)) || + (await l.sendTransaction("setApprovalForAll", [e, !0])); + } else throw Error("Contract must implement ERC 1155 or ERC 721."); + } + function TKe(r) { + switch ( + (pr.default( + r.assetContractAddress !== void 0 && r.assetContractAddress !== null, + "Asset contract address is required" + ), + pr.default( + r.buyoutPricePerToken !== void 0 && r.buyoutPricePerToken !== null, + "Buyout price is required" + ), + pr.default( + r.listingDurationInSeconds !== void 0 && + r.listingDurationInSeconds !== null, + "Listing duration is required" + ), + pr.default( + r.startTimestamp !== void 0 && r.startTimestamp !== null, + "Start time is required" + ), + pr.default( + r.tokenId !== void 0 && r.tokenId !== null, + "Token ID is required" + ), + pr.default( + r.quantity !== void 0 && r.quantity !== null, + "Quantity is required" + ), + r.type) + ) { + case "NewAuctionListing": + pr.default( + r.reservePricePerToken !== void 0 && + r.reservePricePerToken !== null, + "Reserve price is required" + ); + } + } + async function BG(r, e, t) { + return { + quantity: t.quantityDesired, + pricePerToken: t.pricePerToken, + currencyContractAddress: t.currency, + buyerAddress: t.offeror, + quantityDesired: t.quantityWanted, + currencyValue: await tp( + r, + t.currency, + t.quantityWanted.mul(t.pricePerToken) + ), + listingId: e, + }; + } + function Chr(r, e, t) { + return ( + (t = se.BigNumber.from(t)), + (r = se.BigNumber.from(r)), + (e = se.BigNumber.from(e)), + r.eq(se.BigNumber.from(0)) ? !1 : e.sub(r).mul(le.MAX_BPS).div(r).gte(t) + ); + } + async function Ihr(r, e, t) { + let n = []; + for (; e - r > le.DEFAULT_QUERY_ALL_COUNT; ) + n.push(t(r, r + le.DEFAULT_QUERY_ALL_COUNT - 1)), + (r += le.DEFAULT_QUERY_ALL_COUNT); + return n.push(t(r, e - 1)), await Promise.all(n); + } + var YV = class { + constructor(e, t) { + le._defineProperty(this, "contractWrapper", void 0), + le._defineProperty(this, "storage", void 0), + (this.contractWrapper = e), + (this.storage = t); + } + getAddress() { + return this.contractWrapper.readContract.address; + } + async getListing(e) { + let t = await this.contractWrapper.readContract.listings(e); + if (t.assetContract === se.constants.AddressZero) + throw new B3(this.getAddress(), e.toString()); + if (t.listingType !== X.ListingType.Direct) + throw new N3(this.getAddress(), e.toString(), "Auction", "Direct"); + return await this.mapListing(t); + } + async getActiveOffer(e, t) { + await this.validateListing(se.BigNumber.from(e)), + pr.default( + se.utils.isAddress(t), + "Address must be a valid address" + ); + let n = await this.contractWrapper.readContract.offers(e, t); + if (n.offeror !== se.constants.AddressZero) + return await BG( + this.contractWrapper.getProvider(), + se.BigNumber.from(e), + n + ); + } + async createListing(e) { + TKe(e), + await RG( + this.contractWrapper, + this.getAddress(), + e.assetContractAddress, + e.tokenId, + await this.contractWrapper.getSignerAddress() + ); + let t = await oc( + this.contractWrapper.getProvider(), + e.buyoutPricePerToken, + e.currencyContractAddress + ), + n = Math.floor(e.startTimestamp.getTime() / 1e3), + i = (await this.contractWrapper.getProvider().getBlock("latest")) + .timestamp; + n < i && (n = i); + let s = await this.contractWrapper.sendTransaction( + "createListing", + [ + { + assetContract: e.assetContractAddress, + tokenId: e.tokenId, + buyoutPricePerToken: t, + currencyToAccept: vG(e.currencyContractAddress), + listingType: X.ListingType.Direct, + quantityToList: e.quantity, + reservePricePerToken: t, + secondsUntilEndTime: e.listingDurationInSeconds, + startTime: se.BigNumber.from(n), + }, + ], + { gasLimit: 5e5 } + ); + return { + id: this.contractWrapper.parseLogs("ListingAdded", s?.logs)[0].args + .listingId, + receipt: s, + }; + } + async makeOffer(e, t, n, a, i) { + if (Ih(n)) + throw new Error( + "You must use the wrapped native token address when making an offer with a native token" + ); + let s = await oc(this.contractWrapper.getProvider(), a, n); + try { + await this.getListing(e); + } catch (w) { + throw ( + (console.error("Failed to get listing, err =", w), + new Error(`Error getting the listing with id ${e}`)) + ); + } + let c = se.BigNumber.from(t), + l = se.BigNumber.from(s).mul(c), + d = (await this.contractWrapper.getCallOverrides()) || {}; + await x0(this.contractWrapper, l, n, d); + let m = se.ethers.constants.MaxUint256; + return ( + i && (m = se.BigNumber.from(Math.floor(i.getTime() / 1e3))), + { + receipt: await this.contractWrapper.sendTransaction( + "offer", + [e, t, n, s, m], + d + ), + } + ); + } + async acceptOffer(e, t) { + await this.validateListing(se.BigNumber.from(e)); + let n = await this.contractWrapper.readContract.offers(e, t); + return { + receipt: await this.contractWrapper.sendTransaction("acceptOffer", [ + e, + t, + n.currency, + n.pricePerToken, + ]), + }; + } + async buyoutListing(e, t, n) { + let a = await this.validateListing(se.BigNumber.from(e)), + { valid: i, error: s } = await this.isStillValidListing(a, t); + if (!i) throw new Error(`Listing ${e} is no longer valid. ${s}`); + let c = n || (await this.contractWrapper.getSignerAddress()), + l = se.BigNumber.from(t), + d = se.BigNumber.from(a.buyoutPrice).mul(l), + m = (await this.contractWrapper.getCallOverrides()) || {}; + return ( + await x0(this.contractWrapper, d, a.currencyContractAddress, m), + { + receipt: await this.contractWrapper.sendTransaction( + "buy", + [e, c, l, a.currencyContractAddress, d], + m + ), + } + ); + } + async updateListing(e) { + return { + receipt: await this.contractWrapper.sendTransaction( + "updateListing", + [ + e.id, + e.quantity, + e.buyoutPrice, + e.buyoutPrice, + e.currencyContractAddress, + e.startTimeInSeconds, + e.secondsUntilEnd, + ] + ), + }; + } + async cancelListing(e) { + return { + receipt: await this.contractWrapper.sendTransaction( + "cancelDirectListing", + [e] + ), + }; + } + async validateListing(e) { + try { + return await this.getListing(e); + } catch (t) { + throw (console.error(`Error getting the listing with id ${e}`), t); + } + } + async mapListing(e) { + return { + assetContractAddress: e.assetContract, + buyoutPrice: se.BigNumber.from(e.buyoutPricePerToken), + currencyContractAddress: e.currency, + buyoutCurrencyValuePerToken: await tp( + this.contractWrapper.getProvider(), + e.currency, + e.buyoutPricePerToken + ), + id: e.listingId.toString(), + tokenId: e.tokenId, + quantity: e.quantity, + startTimeInSeconds: e.startTime, + asset: await CR( + e.assetContract, + this.contractWrapper.getProvider(), + e.tokenId, + this.storage + ), + secondsUntilEnd: e.endTime, + sellerAddress: e.tokenOwner, + type: X.ListingType.Direct, + }; + } + async isStillValidListing(e, t) { + if ( + !(await xKe( + this.contractWrapper.getProvider(), + this.getAddress(), + e.assetContractAddress, + e.tokenId, + e.sellerAddress + )) + ) + return { + valid: !1, + error: `Token '${e.tokenId}' from contract '${e.assetContractAddress}' is not approved for transfer`, + }; + let a = this.contractWrapper.getProvider(), + i = new se.Contract(e.assetContractAddress, wR.default, a), + s = await i.supportsInterface(Q3), + c = await i.supportsInterface(X3); + if (s) { + let d = + ( + await new se.Contract( + e.assetContractAddress, + io.default, + a + ).ownerOf(e.tokenId) + ).toLowerCase() === e.sellerAddress.toLowerCase(); + return { + valid: d, + error: d + ? void 0 + : `Seller is not the owner of Token '${e.tokenId}' from contract '${e.assetContractAddress} anymore'`, + }; + } else if (c) { + let m = ( + await new se.Contract( + e.assetContractAddress, + Oc.default, + a + ).balanceOf(e.sellerAddress, e.tokenId) + ).gte(t || e.quantity); + return { + valid: m, + error: m + ? void 0 + : `Seller does not have enough balance of Token '${e.tokenId}' from contract '${e.assetContractAddress} to fulfill the listing`, + }; + } else + return { + valid: !1, + error: "Contract does not implement ERC 1155 or ERC 721.", + }; + } + }, + $V = class { + constructor(e, t) { + le._defineProperty(this, "contractWrapper", void 0), + le._defineProperty(this, "storage", void 0), + le._defineProperty(this, "encoder", void 0), + (this.contractWrapper = e), + (this.storage = t), + (this.encoder = new u2(e)); + } + getAddress() { + return this.contractWrapper.readContract.address; + } + async getListing(e) { + let t = await this.contractWrapper.readContract.listings(e); + if (t.listingId.toString() !== e.toString()) + throw new B3(this.getAddress(), e.toString()); + if (t.listingType !== X.ListingType.Auction) + throw new N3(this.getAddress(), e.toString(), "Direct", "Auction"); + return await this.mapListing(t); + } + async getWinningBid(e) { + await this.validateListing(se.BigNumber.from(e)); + let t = await this.contractWrapper.readContract.winningBid(e); + if (t.offeror !== se.constants.AddressZero) + return await BG( + this.contractWrapper.getProvider(), + se.BigNumber.from(e), + t + ); + } + async getWinner(e) { + let t = await this.validateListing(se.BigNumber.from(e)), + n = await this.contractWrapper.readContract.winningBid(e), + a = se.BigNumber.from(Math.floor(Date.now() / 1e3)), + i = se.BigNumber.from(t.endTimeInEpochSeconds); + if (a.gt(i) && n.offeror !== se.constants.AddressZero) + return n.offeror; + let c = ( + await this.contractWrapper.readContract.queryFilter( + this.contractWrapper.readContract.filters.AuctionClosed() + ) + ).find((l) => l.args.listingId.eq(se.BigNumber.from(e))); + if (!c) + throw new Error( + `Could not find auction with listingId ${e} in closed auctions` + ); + return c.args.winningBidder; + } + async createListing(e) { + TKe(e), + await RG( + this.contractWrapper, + this.getAddress(), + e.assetContractAddress, + e.tokenId, + await this.contractWrapper.getSignerAddress() + ); + let t = await oc( + this.contractWrapper.getProvider(), + e.buyoutPricePerToken, + e.currencyContractAddress + ), + n = await oc( + this.contractWrapper.getProvider(), + e.reservePricePerToken, + e.currencyContractAddress + ), + a = Math.floor(e.startTimestamp.getTime() / 1e3), + s = (await this.contractWrapper.getProvider().getBlock("latest")) + .timestamp; + a < s && (a = s); + let c = await this.contractWrapper.sendTransaction( + "createListing", + [ + { + assetContract: e.assetContractAddress, + tokenId: e.tokenId, + buyoutPricePerToken: t, + currencyToAccept: vG(e.currencyContractAddress), + listingType: X.ListingType.Auction, + quantityToList: e.quantity, + reservePricePerToken: n, + secondsUntilEndTime: e.listingDurationInSeconds, + startTime: se.BigNumber.from(a), + }, + ], + { gasLimit: 5e5 } + ); + return { + id: this.contractWrapper.parseLogs("ListingAdded", c?.logs)[0].args + .listingId, + receipt: c, + }; + } + async buyoutListing(e) { + let t = await this.validateListing(se.BigNumber.from(e)), + n = await b2( + this.contractWrapper.getProvider(), + t.currencyContractAddress + ); + return this.makeBid( + e, + se.ethers.utils.formatUnits(t.buyoutPrice, n.decimals) + ); + } + async makeBid(e, t) { + let n = await this.validateListing(se.BigNumber.from(e)), + a = await oc( + this.contractWrapper.getProvider(), + t, + n.currencyContractAddress + ); + if (a.eq(se.BigNumber.from(0))) + throw new Error("Cannot make a bid with 0 value"); + let i = await this.contractWrapper.readContract.bidBufferBps(), + s = await this.getWinningBid(e); + if (s) { + let m = Chr(s.pricePerToken, a, i); + pr.default( + m, + "Bid price is too low based on the current winning bid and the bid buffer" + ); + } else { + let m = a, + w = se.BigNumber.from(n.reservePrice); + pr.default(m.gte(w), "Bid price is too low based on reserve price"); + } + let c = se.BigNumber.from(n.quantity), + l = a.mul(c), + d = (await this.contractWrapper.getCallOverrides()) || {}; + return ( + await x0(this.contractWrapper, l, n.currencyContractAddress, d), + { + receipt: await this.contractWrapper.sendTransaction( + "offer", + [ + e, + n.quantity, + n.currencyContractAddress, + a, + se.ethers.constants.MaxUint256, + ], + d + ), + } + ); + } + async cancelListing(e) { + let t = await this.validateListing(se.BigNumber.from(e)), + n = se.BigNumber.from(Math.floor(Date.now() / 1e3)), + a = se.BigNumber.from(t.startTimeInEpochSeconds), + i = await this.contractWrapper.readContract.winningBid(e); + if (n.gt(a) && i.offeror !== se.constants.AddressZero) + throw new h9(e.toString()); + return { + receipt: await this.contractWrapper.sendTransaction( + "closeAuction", + [ + se.BigNumber.from(e), + await this.contractWrapper.getSignerAddress(), + ] + ), + }; + } + async closeListing(e, t) { + t || (t = await this.contractWrapper.getSignerAddress()); + let n = await this.validateListing(se.BigNumber.from(e)); + try { + return { + receipt: await this.contractWrapper.sendTransaction( + "closeAuction", + [se.BigNumber.from(e), t] + ), + }; + } catch (a) { + throw a.message.includes("cannot close auction before it has ended") + ? new O3(e.toString(), n.endTimeInEpochSeconds.toString()) + : a; + } + } + async executeSale(e) { + let t = await this.validateListing(se.BigNumber.from(e)); + try { + let n = await this.getWinningBid(e); + pr.default(n, "No winning bid found"); + let a = this.encoder.encode("closeAuction", [e, t.sellerAddress]), + i = this.encoder.encode("closeAuction", [e, n.buyerAddress]); + return await this.contractWrapper.multiCall([a, i]); + } catch (n) { + throw n.message.includes("cannot close auction before it has ended") + ? new O3(e.toString(), t.endTimeInEpochSeconds.toString()) + : n; + } + } + async updateListing(e) { + return { + receipt: await this.contractWrapper.sendTransaction( + "updateListing", + [ + e.id, + e.quantity, + e.reservePrice, + e.buyoutPrice, + e.currencyContractAddress, + e.startTimeInEpochSeconds, + e.endTimeInEpochSeconds, + ] + ), + }; + } + async getBidBufferBps() { + return this.contractWrapper.readContract.bidBufferBps(); + } + async getMinimumNextBid(e) { + let [t, n, a] = await Promise.all([ + this.getBidBufferBps(), + this.getWinningBid(e), + await this.validateListing(se.BigNumber.from(e)), + ]), + i = n ? n.currencyValue.value : a.reservePrice, + s = i.add(i.mul(t).div(1e4)); + return tp( + this.contractWrapper.getProvider(), + a.currencyContractAddress, + s + ); + } + async validateListing(e) { + try { + return await this.getListing(e); + } catch (t) { + throw (console.error(`Error getting the listing with id ${e}`), t); + } + } + async mapListing(e) { + return { + assetContractAddress: e.assetContract, + buyoutPrice: se.BigNumber.from(e.buyoutPricePerToken), + currencyContractAddress: e.currency, + buyoutCurrencyValuePerToken: await tp( + this.contractWrapper.getProvider(), + e.currency, + e.buyoutPricePerToken + ), + id: e.listingId.toString(), + tokenId: e.tokenId, + quantity: e.quantity, + startTimeInEpochSeconds: e.startTime, + asset: await CR( + e.assetContract, + this.contractWrapper.getProvider(), + e.tokenId, + this.storage + ), + reservePriceCurrencyValuePerToken: await tp( + this.contractWrapper.getProvider(), + e.currency, + e.reservePricePerToken + ), + reservePrice: se.BigNumber.from(e.reservePricePerToken), + endTimeInEpochSeconds: e.endTime, + sellerAddress: e.tokenOwner, + type: X.ListingType.Auction, + }; + } + }; + async function JV(r, e, t, n, a) { + let i = []; + try { + if (MG(ap.parse(e), "PluginRouter")) { + let d = ( + await new ms(t, r, Ddr.default, n).readContract.getAllPlugins() + ).map((w) => w.pluginAddress), + m = Array.from(new Set(d)); + i = await Ahr(m, t, a); + } + } catch {} + return i.length > 0 ? khr([e, ...i]) : e; + } + async function Ahr(r, e, t) { + return ( + await Promise.all( + r.map((n) => + cb(n, e, t).catch( + (a) => ( + console.error(`Failed to fetch plug-in for ${n}`, a), + { abi: [] } + ) + ) + ) + ) + ).map((n) => n.abi); + } + function khr(r) { + let e = r.map((a) => ap.parse(a)).flat(), + n = Vpr( + e, + (a, i) => + a.name === i.name && + a.type === i.type && + a.inputs.length === i.inputs.length + ).filter((a) => a.type !== "constructor"); + return ap.parse(n); + } + var EKe = wu.merge(Hf).merge(ys), + Shr = Xu.merge(Hf).merge(ys), + Mhr = EKe.merge(Ql).merge(A0).merge(el), + CKe = { deploy: Mhr, output: Shr, input: EKe }, + IKe = wu.merge(ao).merge(ys), + Phr = Xu.merge(ao).merge(ys), + Rhr = IKe.merge(el), + AKe = { deploy: Rhr, output: Phr, input: IKe }, + wh = { + name: "DropERC1155", + contractType: "edition-drop", + schema: Nje, + roles: ["admin", "minter", "transfer"], + initialize: async function () { + for (var r = arguments.length, e = new Array(r), t = 0; t < r; t++) + e[t] = arguments[t]; + let [n, a, i, s] = e, + [, c] = cc(n, s), + [l, d, m] = await Promise.all([ + await wh.getAbi(a, c, i), + Promise.resolve().then(function () { + return HHe(); + }), + c.getNetwork(), + ]); + return new d.EditionDrop(n, a, i, s, l, m.chainId); + }, + getAbi: async (r, e, t) => { + let n = await _u(r, e, t); + if (n) return n; + let a = await IR(r, e); + return !a || a.version > 2 + ? ( + await Promise.resolve().then(function () { + return Us(Az()); + }) + ).default + : ( + await Promise.resolve().then(function () { + return Us(kz()); + }) + ).default; + }, + }, + E0 = { + name: "TokenERC1155", + contractType: "edition", + schema: Kje, + roles: ["admin", "minter", "transfer"], + initialize: async function () { + for (var r = arguments.length, e = new Array(r), t = 0; t < r; t++) + e[t] = arguments[t]; + let [n, a, i, s] = e, + [, c] = cc(n, s), + [l, d, m] = await Promise.all([ + E0.getAbi(a, c, i), + Promise.resolve().then(function () { + return jHe(); + }), + c.getNetwork(), + ]); + return new d.Edition(n, a, i, s, l, m.chainId); + }, + getAbi: async (r, e, t) => { + let n = await _u(r, e, t); + return ( + n || + ( + await Promise.resolve().then(function () { + return Us(Sz()); + }) + ).default + ); + }, + }, + rp = { + name: "Marketplace", + contractType: "marketplace", + schema: bG, + roles: ["admin", "lister", "asset"], + initialize: async function () { + for (var r = arguments.length, e = new Array(r), t = 0; t < r; t++) + e[t] = arguments[t]; + let [n, a, i, s] = e, + [, c] = cc(n, s), + [l, d, m] = await Promise.all([ + rp.getAbi(a, c, i), + Promise.resolve().then(function () { + return GHe(); + }), + c.getNetwork(), + ]); + return new d.Marketplace(n, a, i, s, l, m.chainId); + }, + getAbi: async (r, e, t) => { + let n = await _u(r, e, t); + return ( + n || + ( + await Promise.resolve().then(function () { + return Us(Mz()); + }) + ).default + ); + }, + }, + Ff = { + name: "MarketplaceRouter", + contractType: "marketplace-v3", + schema: bG, + roles: ["admin", "lister", "asset"], + initialize: async function () { + for (var r = arguments.length, e = new Array(r), t = 0; t < r; t++) + e[t] = arguments[t]; + let [n, a, i, s] = e, + [, c] = cc(n, s), + [l, d, m] = await Promise.all([ + Ff.getAbi(a, c, i), + Promise.resolve().then(function () { + return JHe(); + }), + c.getNetwork(), + ]); + return new d.MarketplaceV3(n, a, i, s, l, m.chainId); + }, + getAbi: async (r, e, t) => { + let n = await _u(r, e, t); + if (n) return await JV(r, n, e, {}, t); + let a = ( + await Promise.resolve().then(function () { + return Us(Nz()); + }) + ).default; + return await JV(r, a, e, {}, t); + }, + }, + np = { + name: "Multiwrap", + contractType: "multiwrap", + schema: AKe, + roles: ["admin", "transfer", "minter", "unwrap", "asset"], + initialize: async function () { + for (var r = arguments.length, e = new Array(r), t = 0; t < r; t++) + e[t] = arguments[t]; + let [n, a, i, s] = e, + [, c] = cc(n, s), + [l, d, m] = await Promise.all([ + np.getAbi(a, c, i), + Promise.resolve().then(function () { + return QHe(); + }), + c.getNetwork(), + ]); + return new d.Multiwrap(n, a, i, s, l, m.chainId); + }, + getAbi: async (r, e, t) => { + let n = await _u(r, e, t); + return ( + n || + ( + await Promise.resolve().then(function () { + return Us(Oz()); + }) + ).default + ); + }, + }, + C0 = { + name: "TokenERC721", + contractType: "nft-collection", + schema: zje, + roles: ["admin", "minter", "transfer"], + initialize: async function () { + for (var r = arguments.length, e = new Array(r), t = 0; t < r; t++) + e[t] = arguments[t]; + let [n, a, i, s] = e, + [, c] = cc(n, s), + [l, d, m] = await Promise.all([ + C0.getAbi(a, c, i), + Promise.resolve().then(function () { + return eze(); + }), + c.getNetwork(), + ]); + return new d.NFTCollection(n, a, i, s, l, m.chainId); + }, + getAbi: async (r, e, t) => { + let n = await _u(r, e, t); + return ( + n || + ( + await Promise.resolve().then(function () { + return Us(Lz()); + }) + ).default + ); + }, + }, + _h = { + name: "DropERC721", + contractType: "nft-drop", + schema: gG, + roles: ["admin", "minter", "transfer"], + initialize: async function () { + for (var r = arguments.length, e = new Array(r), t = 0; t < r; t++) + e[t] = arguments[t]; + let [n, a, i, s] = e, + [, c] = cc(n, s), + [l, d, m] = await Promise.all([ + _h.getAbi(a, c, i), + Promise.resolve().then(function () { + return rze(); + }), + c.getNetwork(), + ]); + return new d.NFTDrop(n, a, i, s, l, m.chainId); + }, + getAbi: async (r, e, t) => { + let n = await _u(r, e, t); + if (n) return n; + let a = await IR(r, e); + return !a || a.version > 3 + ? ( + await Promise.resolve().then(function () { + return Us(Dz()); + }) + ).default + : ( + await Promise.resolve().then(function () { + return Us(qz()); + }) + ).default; + }, + }, + Qu = { + name: "Pack", + contractType: "pack", + schema: Dje, + roles: ["admin", "minter", "asset", "transfer"], + initialize: async function () { + for (var r = arguments.length, e = new Array(r), t = 0; t < r; t++) + e[t] = arguments[t]; + let [n, a, i, s] = e, + [, c] = cc(n, s), + [l, d, m] = await Promise.all([ + Qu.getAbi(a, c, i), + Promise.resolve().then(function () { + return uze(); + }), + c.getNetwork(), + ]); + return new d.Pack(n, a, i, s, l, m.chainId); + }, + getAbi: async (r, e, t) => { + let n = await _u(r, e, t); + return ( + n || + ( + await Promise.resolve().then(function () { + return Us(Hz()); + }) + ).default + ); + }, + }, + xh = { + name: "SignatureDrop", + contractType: "signature-drop", + schema: gG, + roles: ["admin", "minter", "transfer"], + initialize: async function () { + for (var r = arguments.length, e = new Array(r), t = 0; t < r; t++) + e[t] = arguments[t]; + let [n, a, i, s] = e, + [, c] = cc(n, s), + [l, d, m] = await Promise.all([ + xh.getAbi(a, c, i), + Promise.resolve().then(function () { + return dze(); + }), + c.getNetwork(), + ]); + return new d.SignatureDrop(n, a, i, s, l, m.chainId); + }, + getAbi: async (r, e, t) => { + let n = await _u(r, e, t); + if (n) return n; + let a = await IR(r, e); + return !a || a.version > 4 + ? ( + await Promise.resolve().then(function () { + return Us(zz()); + }) + ).default + : ( + await Promise.resolve().then(function () { + return Us(jz()); + }) + ).default; + }, + }, + Th = { + name: "Split", + contractType: "split", + schema: Fje, + roles: ["admin"], + initialize: async function () { + for (var r = arguments.length, e = new Array(r), t = 0; t < r; t++) + e[t] = arguments[t]; + let [n, a, i, s] = e, + [, c] = cc(n, s), + [l, d, m] = await Promise.all([ + Th.getAbi(a, c, i), + Promise.resolve().then(function () { + return hze(); + }), + c.getNetwork(), + ]); + return new d.Split(n, a, i, s, l, m.chainId); + }, + getAbi: async (r, e, t) => { + let n = await _u(r, e, t); + return ( + n || + ( + await Promise.resolve().then(function () { + return Us(Vz()); + }) + ).default + ); + }, + }, + I0 = { + name: "DropERC20", + contractType: "token-drop", + schema: CKe, + roles: ["admin", "transfer"], + initialize: async function () { + for (var r = arguments.length, e = new Array(r), t = 0; t < r; t++) + e[t] = arguments[t]; + let [n, a, i, s] = e, + [, c] = cc(n, s), + [l, d, m] = await Promise.all([ + I0.getAbi(a, c, i), + Promise.resolve().then(function () { + return mze(); + }), + c.getNetwork(), + ]); + return new d.TokenDrop(n, a, i, s, l, m.chainId); + }, + getAbi: async (r, e, t) => { + let n = await _u(r, e, t); + if (n) return n; + let a = await IR(r, e); + return !a || a.version > 2 + ? ( + await Promise.resolve().then(function () { + return Us(Gz()); + }) + ).default + : ( + await Promise.resolve().then(function () { + return Us(Yz()); + }) + ).default; + }, + }, + Eh = { + name: "TokenERC20", + contractType: "token", + schema: Uje, + roles: ["admin", "minter", "transfer"], + initialize: async function () { + for (var r = arguments.length, e = new Array(r), t = 0; t < r; t++) + e[t] = arguments[t]; + let [n, a, i, s] = e, + [, c] = cc(n, s), + [l, d, m] = await Promise.all([ + Eh.getAbi(a, c, i), + Promise.resolve().then(function () { + return gze(); + }), + c.getNetwork(), + ]); + return new d.Token(n, a, i, s, l, m.chainId); + }, + getAbi: async (r, e, t) => { + let n = await _u(r, e, t); + return ( + n || + ( + await Promise.resolve().then(function () { + return Us($z()); + }) + ).default + ); + }, + }, + Ch = { + name: "VoteERC20", + contractType: "vote", + schema: Yje, + roles: [], + initialize: async function () { + for (var r = arguments.length, e = new Array(r), t = 0; t < r; t++) + e[t] = arguments[t]; + let [n, a, i, s] = e, + [, c] = cc(n, s), + [l, d, m] = await Promise.all([ + Ch.getAbi(a, c, i), + Promise.resolve().then(function () { + return vze(); + }), + c.getNetwork(), + ]); + return new d.Vote(n, a, i, s, l, m.chainId); + }, + getAbi: async (r, e, t) => { + let n = await _u(r, e, t); + return ( + n || + ( + await Promise.resolve().then(function () { + return Us(Zz()); + }) + ).default + ); + }, + }; + async function IR(r, e) { + try { + return await PG(r, e); + } catch { + return; + } + } + var ib = { + [wh.contractType]: wh, + [E0.contractType]: E0, + [rp.contractType]: rp, + [Ff.contractType]: Ff, + [np.contractType]: np, + [C0.contractType]: C0, + [_h.contractType]: _h, + [Qu.contractType]: Qu, + [xh.contractType]: xh, + [Th.contractType]: Th, + [I0.contractType]: I0, + [Eh.contractType]: Eh, + [Ch.contractType]: Ch, + }, + Vze = { + name: "SmartContract", + contractType: "custom", + schema: {}, + roles: wG, + }, + NG = { ...ib, [Vze.contractType]: Vze }; + function kKe(r) { + return ( + Object.values(NG).find((e) => e.name === r)?.contractType || "custom" + ); + } + function OG(r) { + return Object.values(NG).find((e) => e.contractType === r)?.name; + } + async function SKe(r, e, t, n) { + let a = await n.getChainId(), + i = await n.getAddress(), + s = r === Qu.contractType ? [] : oG(a); + switch ( + (e.trusted_forwarders && + e.trusted_forwarders.length > 0 && + (s = e.trusted_forwarders), + r) + ) { + case _h.contractType: + case C0.contractType: + let c = _h.schema.deploy.parse(e); + return [ + i, + c.name, + c.symbol, + t, + s, + c.primary_sale_recipient, + c.fee_recipient, + c.seller_fee_basis_points, + c.platform_fee_basis_points, + c.platform_fee_recipient, + ]; + case xh.contractType: + let l = xh.schema.deploy.parse(e); + return [ + i, + l.name, + l.symbol, + t, + s, + l.primary_sale_recipient, + l.fee_recipient, + l.seller_fee_basis_points, + l.platform_fee_basis_points, + l.platform_fee_recipient, + ]; + case np.contractType: + let d = np.schema.deploy.parse(e); + return [ + i, + d.name, + d.symbol, + t, + s, + d.fee_recipient, + d.seller_fee_basis_points, + ]; + case wh.contractType: + case E0.contractType: + let m = wh.schema.deploy.parse(e); + return [ + i, + m.name, + m.symbol, + t, + s, + m.primary_sale_recipient, + m.fee_recipient, + m.seller_fee_basis_points, + m.platform_fee_basis_points, + m.platform_fee_recipient, + ]; + case I0.contractType: + case Eh.contractType: + let w = Eh.schema.deploy.parse(e); + return [ + i, + w.name, + w.symbol, + t, + s, + w.primary_sale_recipient, + w.platform_fee_recipient, + w.platform_fee_basis_points, + ]; + case Ch.contractType: + let C = Ch.schema.deploy.parse(e); + return [ + C.name, + t, + s, + C.voting_token_address, + C.voting_delay_in_blocks, + C.voting_period_in_blocks, + se.BigNumber.from(C.proposal_token_threshold), + C.voting_quorum_fraction, + ]; + case Th.contractType: + let I = Th.schema.deploy.parse(e); + return [ + i, + t, + s, + I.recipients.map((D) => D.address), + I.recipients.map((D) => se.BigNumber.from(D.sharesBps)), + ]; + case rp.contractType: + case Ff.contractType: + let k = rp.schema.deploy.parse(e); + return [ + i, + t, + s, + k.platform_fee_recipient, + k.platform_fee_basis_points, + ]; + case Qu.contractType: + let O = Qu.schema.deploy.parse(e); + return [ + i, + O.name, + O.symbol, + t, + s, + O.fee_recipient, + O.seller_fee_basis_points, + ]; + default: + return []; + } + } + var ZV = class { + constructor(e, t) { + le._defineProperty(this, "featureName", EV.name), + le._defineProperty(this, "contractWrapper", void 0), + le._defineProperty(this, "metadata", void 0), + (this.contractWrapper = e), + (this.metadata = t); + } + async get() { + return Lt(this.contractWrapper, "AppURI") + ? await this.contractWrapper.readContract.appURI() + : (await this.metadata.get()).appURI || ""; + } + async set(e) { + return Lt(this.contractWrapper, "AppURI") + ? { + receipt: await this.contractWrapper.sendTransaction( + "setAppURI", + [e] + ), + } + : await this.metadata.update({ appURI: e }); + } + }, + pR = class { + constructor(e) { + le._defineProperty(this, "contractWrapper", void 0), + (this.contractWrapper = e); + } + addTransactionListener(e) { + this.contractWrapper.addListener(X.EventType.Transaction, e); + } + removeTransactionListener(e) { + this.contractWrapper.off(X.EventType.Transaction, e); + } + addEventListener(e, t) { + let n = this.contractWrapper.readContract.interface.getEvent(e), + i = { + address: this.contractWrapper.readContract.address, + topics: [ + this.contractWrapper.readContract.interface.getEventTopic(n), + ], + }, + s = (c) => { + let l = this.contractWrapper.readContract.interface.parseLog(c); + t(this.toContractEvent(l.eventFragment, l.args, c)); + }; + return ( + this.contractWrapper.getProvider().on(i, s), + () => { + this.contractWrapper.getProvider().off(i, s); + } + ); + } + listenToAllEvents(e) { + let n = { address: this.contractWrapper.readContract.address }, + a = (i) => { + try { + let s = this.contractWrapper.readContract.interface.parseLog(i); + e(this.toContractEvent(s.eventFragment, s.args, i)); + } catch (s) { + console.error("Could not parse event:", i, s); + } + }; + return ( + this.contractWrapper.getProvider().on(n, a), + () => { + this.contractWrapper.getProvider().off(n, a); + } + ); + } + removeEventListener(e, t) { + let n = this.contractWrapper.readContract.interface.getEvent(e); + this.contractWrapper.readContract.off(n.name, t); + } + removeAllListeners() { + this.contractWrapper.readContract.removeAllListeners(); + let t = { address: this.contractWrapper.readContract.address }; + this.contractWrapper.getProvider().removeAllListeners(t); + } + async getAllEvents() { + let e = + arguments.length > 0 && arguments[0] !== void 0 + ? arguments[0] + : { fromBlock: 0, toBlock: "latest", order: "desc" }, + n = ( + await this.contractWrapper.readContract.queryFilter( + {}, + e.fromBlock, + e.toBlock + ) + ).sort((a, i) => + e.order === "desc" + ? i.blockNumber - a.blockNumber + : a.blockNumber - i.blockNumber + ); + return this.parseEvents(n); + } + async getEvents(e) { + let t = + arguments.length > 1 && arguments[1] !== void 0 + ? arguments[1] + : { fromBlock: 0, toBlock: "latest", order: "desc" }, + n = this.contractWrapper.readContract.interface.getEvent(e), + a = this.contractWrapper.readContract.interface.getEvent(e), + i = t.filters ? a.inputs.map((d) => t.filters[d.name]) : [], + s = this.contractWrapper.readContract.filters[n.name](...i), + l = ( + await this.contractWrapper.readContract.queryFilter( + s, + t.fromBlock, + t.toBlock + ) + ).sort((d, m) => + t.order === "desc" + ? m.blockNumber - d.blockNumber + : d.blockNumber - m.blockNumber + ); + return this.parseEvents(l); + } + parseEvents(e) { + return e.map((t) => { + let n = Object.fromEntries( + Object.entries(t).filter( + (a) => typeof a[1] != "function" && a[0] !== "args" + ) + ); + if (t.args) { + let a = Object.entries(t.args), + i = a.slice(a.length / 2, a.length), + s = {}; + for (let [c, l] of i) s[c] = l; + return { eventName: t.event || "", data: s, transaction: n }; + } + return { eventName: t.event || "", data: {}, transaction: n }; + }); + } + toContractEvent(e, t, n) { + let a = Object.fromEntries( + Object.entries(n).filter( + (s) => typeof s[1] != "function" && s[0] !== "args" + ) + ), + i = {}; + return ( + e.inputs.forEach((s, c) => { + if (Array.isArray(t[c])) { + let l = s.components; + if (l) { + let d = t[c]; + if (s.type === "tuple[]") { + let m = []; + for (let w = 0; w < d.length; w++) { + let C = d[w], + I = {}; + for (let k = 0; k < l.length; k++) { + let O = l[k].name; + I[O] = C[k]; + } + m.push(I); + } + i[s.name] = m; + } else { + let m = {}; + for (let w = 0; w < l.length; w++) { + let C = l[w].name; + m[C] = d[w]; + } + i[s.name] = m; + } + } + } else i[s.name] = t[c]; + }), + { eventName: e.name, data: i, transaction: a } + ); + } + }, + hR = class { + constructor(e) { + le._defineProperty(this, "contractWrapper", void 0), + (this.contractWrapper = e); + } + overrideNextTransaction(e) { + this.contractWrapper.withTransactionOverride(e); + } + }, + fR = class { + constructor(e) { + le._defineProperty(this, "featureName", T9.name), + le._defineProperty(this, "contractWrapper", void 0), + (this.contractWrapper = e); + } + async get() { + let [e, t] = + await this.contractWrapper.readContract.getPlatformFeeInfo(); + return Ql.parse({ + platform_fee_recipient: e, + platform_fee_basis_points: t, + }); + } + async set(e) { + let t = Ql.parse(e); + return { + receipt: await this.contractWrapper.sendTransaction( + "setPlatformFeeInfo", + [t.platform_fee_recipient, t.platform_fee_basis_points] + ), + }; + } + }, + mR = class { + constructor(e, t) { + le._defineProperty(this, "contractWrapper", void 0), + le._defineProperty(this, "storage", void 0), + le._defineProperty(this, "_cachedMetadata", void 0), + (this.contractWrapper = e), + (this.storage = t); + } + async get() { + return this._cachedMetadata + ? this._cachedMetadata + : ((this._cachedMetadata = await cb( + this.contractWrapper.readContract.address, + this.contractWrapper.getProvider(), + this.storage + )), + this._cachedMetadata); + } + async extractFunctions() { + let e; + try { + e = await this.get(); + } catch {} + return h2(ap.parse(this.contractWrapper.abi), e?.metadata); + } + async extractEvents() { + let e; + try { + e = await this.get(); + } catch {} + return bKe(ap.parse(this.contractWrapper.abi), e?.metadata); + } + }, + QV = class { + get royalties() { + return br(this.detectRoyalties(), _9); + } + get roles() { + return br(this.detectRoles(), E9); + } + get sales() { + return br(this.detectPrimarySales(), x9); + } + get platformFees() { + return br(this.detectPlatformFees(), T9); + } + get owner() { + return br(this.detectOwnable(), I9); + } + get erc20() { + return br(this.detectErc20(), R9); + } + get erc721() { + return br(this.detectErc721(), F9); + } + get erc1155() { + return br(this.detectErc1155(), j9); + } + get chainId() { + return this._chainId; + } + constructor(e, t, n, a) { + let i = + arguments.length > 4 && arguments[4] !== void 0 + ? arguments[4] + : {}, + s = arguments.length > 5 ? arguments[5] : void 0, + c = + arguments.length > 6 && arguments[6] !== void 0 + ? arguments[6] + : new ms(e, t, n, i); + le._defineProperty(this, "contractWrapper", void 0), + le._defineProperty(this, "storage", void 0), + le._defineProperty(this, "events", void 0), + le._defineProperty(this, "interceptor", void 0), + le._defineProperty(this, "encoder", void 0), + le._defineProperty(this, "estimator", void 0), + le._defineProperty(this, "publishedMetadata", void 0), + le._defineProperty(this, "abi", void 0), + le._defineProperty(this, "metadata", void 0), + le._defineProperty(this, "appURI", void 0), + le._defineProperty(this, "_chainId", void 0), + (this._chainId = s), + (this.storage = a), + (this.contractWrapper = c), + (this.abi = n), + (this.events = new pR(this.contractWrapper)), + (this.encoder = new u2(this.contractWrapper)), + (this.interceptor = new hR(this.contractWrapper)), + (this.estimator = new G3(this.contractWrapper)), + (this.publishedMetadata = new mR( + this.contractWrapper, + this.storage + )), + (this.metadata = new T0(this.contractWrapper, g2, this.storage)), + (this.appURI = new ZV(this.contractWrapper, this.metadata)); + } + onNetworkUpdated(e) { + this.contractWrapper.updateSignerOrProvider(e); + } + getAddress() { + return this.contractWrapper.readContract.address; + } + async call(e) { + for ( + var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), a = 1; + a < t; + a++ + ) + n[a - 1] = arguments[a]; + return this.contractWrapper.call(e, ...n); + } + detectRoyalties() { + if (Lt(this.contractWrapper, "Royalty")) { + let e = new T0(this.contractWrapper, g2, this.storage); + return new k9(this.contractWrapper, e); + } + } + detectRoles() { + if (Lt(this.contractWrapper, "Permissions")) + return new A9(this.contractWrapper, wG); + } + detectPrimarySales() { + if (Lt(this.contractWrapper, "PrimarySale")) + return new S9(this.contractWrapper); + } + detectPlatformFees() { + if (Lt(this.contractWrapper, "PlatformFee")) + return new fR(this.contractWrapper); + } + detectErc20() { + if (Lt(this.contractWrapper, "ERC20")) + return new $3(this.contractWrapper, this.storage, this.chainId); + } + detectErc721() { + if (Lt(this.contractWrapper, "ERC721")) + return new J3(this.contractWrapper, this.storage, this.chainId); + } + detectErc1155() { + if (Lt(this.contractWrapper, "ERC1155")) + return new Z3(this.contractWrapper, this.storage, this.chainId); + } + detectOwnable() { + if (Lt(this.contractWrapper, "Ownable")) + return new bR(this.contractWrapper); + } + }, + Gze = 256, + nV = "0|[1-9]\\d*", + Bhr = `(${nV})\\.(${nV})\\.(${nV})`, + Nhr = new RegExp(Bhr); + function m2(r) { + if (r.length > Gze) + throw new Error(`version is longer than ${Gze} characters`); + let e = r.trim().match(Nhr); + if (!e || e?.length !== 4) + throw new Error( + `${r} is not a valid semantic version. Should be in the format of major.minor.patch. Ex: 0.4.1` + ); + let t = Number(e[1]), + n = Number(e[2]), + a = Number(e[3]), + i = [t, n, a].join("."); + return { major: t, minor: n, patch: a, versionString: i }; + } + function MKe(r, e) { + let t = m2(r), + n = m2(e); + if (n.major > t.major) return !0; + let a = n.major === t.major; + if (a && n.minor > t.minor) return !0; + let i = n.minor === t.minor; + return a && i && n.patch > t.patch; + } + function Ohr(r, e) { + let t = m2(r), + n = m2(e); + if (n.major < t.major) return !0; + let a = n.major === t.major; + if (a && n.minor < t.minor) return !0; + let i = n.minor === t.minor; + return a && i && n.patch < t.patch; + } + var XV = class extends sb { + constructor(e, t, n) { + super(e, t), + le._defineProperty(this, "storage", void 0), + le._defineProperty(this, "publisher", void 0), + (this.storage = n), + (this.publisher = new ms(e, dje(), zdr.default, t)); + } + updateSignerOrProvider(e) { + super.updateSignerOrProvider(e), + this.publisher.updateSignerOrProvider(e); + } + async extractConstructorParams(e) { + return fKe(e, this.storage); + } + async extractFunctions(e) { + return mKe(e, this.storage); + } + async fetchCompilerMetadataFromPredeployURI(e) { + return f2(e, this.storage); + } + async fetchPrePublishMetadata(e, t) { + let n = await f2(e, this.storage), + a = t ? await this.getLatest(t, n.name) : void 0, + i = a ? await this.fetchPublishedContractInfo(a) : void 0; + return { preDeployMetadata: n, latestPublishedContractMetadata: i }; + } + async fetchCompilerMetadataFromAddress(e) { + return cb(e, this.getProvider(), this.storage); + } + async fetchPublishedContractInfo(e) { + return { + name: e.id, + publishedTimestamp: e.timestamp, + publishedMetadata: await this.fetchFullPublishMetadata( + e.metadataUri + ), + }; + } + async fetchFullPublishMetadata(e) { + return kG(e, this.storage); + } + async resolvePublishMetadataFromCompilerMetadata(e) { + let t = + await this.publisher.readContract.getPublishedUriFromCompilerUri(e); + if (t.length === 0) + throw Error(`Could not resolve published metadata URI from ${e}`); + return await Promise.all( + t + .filter((n) => n.length > 0) + .map((n) => this.fetchFullPublishMetadata(n)) + ); + } + async resolveContractUriFromAddress(e) { + let t = await V3(e, this.getProvider()); + return ( + pr.default(t, "Could not resolve contract URI from address"), t + ); + } + async fetchContractSourcesFromAddress(e) { + let t = await this.fetchCompilerMetadataFromAddress(e); + return await LG(t, this.storage); + } + async updatePublisherProfile(e) { + let t = this.getSigner(); + pr.default(t, "A signer is required"); + let n = await t.getAddress(), + a = await this.storage.upload(e); + return { + receipt: await this.publisher.sendTransaction( + "setPublisherProfileUri", + [n, a] + ), + }; + } + async getPublisherProfile(e) { + let t = await this.publisher.readContract.getPublisherProfileUri(e); + return !t || t.length === 0 + ? {} + : HKe.parse(await this.storage.downloadJSON(t)); + } + async getAll(e) { + let n = ( + await this.publisher.readContract.getAllPublishedContracts(e) + ).reduce((a, i) => ((a[i.contractId] = i), a), {}); + return Object.entries(n).map((a) => { + let [, i] = a; + return this.toPublishedContract(i); + }); + } + async getAllVersions(e, t) { + let n = + await this.publisher.readContract.getPublishedContractVersions( + e, + t + ); + if (n.length === 0) throw Error("Not found"); + return n.map((a) => this.toPublishedContract(a)); + } + async getVersion(e, t) { + let n = + arguments.length > 2 && arguments[2] !== void 0 + ? arguments[2] + : "latest"; + if (n === "latest") return this.getLatest(e, t); + let a = await this.getAllVersions(e, t), + s = ( + await Promise.all( + a.map((c) => this.fetchPublishedContractInfo(c)) + ) + ).find((c) => c.publishedMetadata.version === n); + return ( + pr.default(s, "Contract version not found"), + a.find((c) => c.timestamp === s.publishedTimestamp) + ); + } + async getLatest(e, t) { + let n = await this.publisher.readContract.getPublishedContract(e, t); + if (n && n.publishMetadataUri) return this.toPublishedContract(n); + } + async publish(e, t) { + let n = this.getSigner(); + pr.default(n, "A signer is required"); + let a = await n.getAddress(), + i = await AG(e, this.storage), + s = await this.getLatest(a, i.name); + if (s && s.metadataUri) { + let W = (await this.fetchPublishedContractInfo(s)).publishedMetadata + .version; + if (!MKe(W, t.version)) + throw Error(`Version ${t.version} is not greater than ${W}`); + } + let c = await (await this.storage.download(i.bytecodeUri)).text(), + l = c.startsWith("0x") ? c : `0x${c}`, + d = se.utils.solidityKeccak256(["bytes"], [l]), + m = i.name, + w = FKe.parse({ + ...t, + metadataUri: i.metadataUri, + bytecodeUri: i.bytecodeUri, + name: i.name, + analytics: i.analytics, + publisher: a, + }), + C = await this.storage.upload(w), + I = await this.publisher.sendTransaction("publishContract", [ + a, + m, + C, + i.metadataUri, + d, + se.constants.AddressZero, + ]), + k = this.publisher.parseLogs("ContractPublished", I.logs); + if (k.length < 1) throw new Error("No ContractPublished event found"); + let O = k[0].args.publishedContract; + return { receipt: I, data: async () => this.toPublishedContract(O) }; + } + async unpublish(e, t) { + return { + receipt: await this.publisher.sendTransaction("unpublishContract", [ + e, + t, + ]), + }; + } + toPublishedContract(e) { + return zKe.parse({ + id: e.contractId, + timestamp: e.publishTimestamp, + metadataUri: e.publishMetadataUri, + }); + } + }, + eG = class { + constructor(e, t) { + let n = + arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}; + le._defineProperty(this, "registryLogic", void 0), + le._defineProperty(this, "registryRouter", void 0), + le._defineProperty(this, "storage", void 0), + (this.storage = t), + (this.registryLogic = new ms(e, uV(), jdr.default, n)), + (this.registryRouter = new ms(e, uV(), Kdr.default, n)); + } + async updateSigner(e) { + this.registryLogic.updateSignerOrProvider(e), + this.registryRouter.updateSignerOrProvider(e); + } + async getContractMetadataURI(e, t) { + return await this.registryLogic.readContract.getMetadataUri(e, t); + } + async getContractMetadata(e, t) { + let n = await this.getContractMetadataURI(e, t); + if (!n) + throw new Error( + `No metadata URI found for contract ${t} on chain ${e}` + ); + return await this.storage.downloadJSON(n); + } + async getContractAddresses(e) { + return (await this.registryLogic.readContract.getAll(e)) + .filter( + (t) => + se.utils.isAddress(t.deploymentAddress) && + t.deploymentAddress.toLowerCase() !== se.constants.AddressZero + ) + .map((t) => ({ + address: t.deploymentAddress, + chainId: t.chainId.toNumber(), + })); + } + async addContract(e) { + return await this.addContracts([e]); + } + async addContracts(e) { + let t = await this.registryRouter.getSignerAddress(), + n = []; + return ( + e.forEach((a) => { + n.push( + this.registryLogic.readContract.interface.encodeFunctionData( + "add", + [t, a.address, a.chainId, a.metadataURI || ""] + ) + ); + }), + { receipt: await this.registryRouter.multiCall(n) } + ); + } + async removeContract(e) { + return await this.removeContracts([e]); + } + async removeContracts(e) { + let t = await this.registryRouter.getSignerAddress(), + n = []; + return ( + e.forEach((a) => { + n.push( + this.registryLogic.readContract.interface.encodeFunctionData( + "remove", + [t, a.address, a.chainId] + ) + ); + }), + { receipt: await this.registryRouter.multiCall(n) } + ); + } + }, + y2 = class { + constructor(e, t) { + le._defineProperty(this, "connection", void 0), + le._defineProperty(this, "options", void 0), + le._defineProperty(this, "events", new iV.default()), + (this.connection = new sb(e, t)), + (this.options = t), + (this.events = new iV.default()); + } + connect(e) { + this.connection.updateSignerOrProvider(e), + this.events.emit("signerChanged", this.connection.getSigner()); + } + async transfer(e, t) { + let n = + arguments.length > 2 && arguments[2] !== void 0 + ? arguments[2] + : Zl, + a = this.requireWallet(), + i = await oc(this.connection.getProvider(), t, n); + if (Ih(n)) { + let s = await a.getAddress(); + return { + receipt: await ( + await a.sendTransaction({ from: s, to: e, value: i }) + ).wait(), + }; + } else + return { + receipt: await this.createErc20(n).sendTransaction("transfer", [ + e, + i, + ]), + }; + } + async balance() { + let e = + arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : Zl; + this.requireWallet(); + let t = this.connection.getProvider(), + n; + return ( + Ih(e) + ? (n = await t.getBalance(await this.getAddress())) + : (n = await this.createErc20(e).readContract.balanceOf( + await this.getAddress() + )), + await tp(t, e, n) + ); + } + async getAddress() { + return await this.requireWallet().getAddress(); + } + async getChainId() { + return await this.requireWallet().getChainId(); + } + isConnected() { + try { + return this.requireWallet(), !0; + } catch { + return !1; + } + } + async sign(e) { + return await this.requireWallet().signMessage(e); + } + async signTypedData(e, t, n) { + return await m9(this.requireWallet(), e, t, n); + } + recoverAddress(e, t) { + let n = se.ethers.utils.hashMessage(e), + a = se.ethers.utils.arrayify(n); + return se.ethers.utils.recoverAddress(a, t); + } + async sendRawTransaction(e) { + return { + receipt: await ( + await this.requireWallet().sendTransaction(e) + ).wait(), + }; + } + async requestFunds(e) { + let t = await this.getChainId(); + if (t === X.ChainId.Localhost || t === X.ChainId.Hardhat) + return new y2( + new se.ethers.Wallet(uje, TR(t, this.options)), + this.options + ).transfer(await this.getAddress(), e); + throw new Error( + `Requesting funds is not supported on chain: '${t}'.` + ); + } + requireWallet() { + let e = this.connection.getSigner(); + return ( + pr.default( + e, + "This action requires a connected wallet. Please pass a valid signer to the SDK." + ), + e + ); + } + createErc20(e) { + return new ms( + this.connection.getSignerOrProvider(), + e, + vu.default, + this.options + ); + } + }, + vh = class extends sb { + static async fromWallet(e, t) { + let n = + arguments.length > 2 && arguments[2] !== void 0 + ? arguments[2] + : {}, + a = + arguments.length > 3 && arguments[3] !== void 0 + ? arguments[3] + : new S3.ThirdwebStorage(), + i = await e.getSigner(); + return vh.fromSigner(i, t, n, a); + } + static fromSigner(e, t) { + let n = + arguments.length > 2 && arguments[2] !== void 0 + ? arguments[2] + : {}, + a = + arguments.length > 3 && arguments[3] !== void 0 + ? arguments[3] + : new S3.ThirdwebStorage(), + i = new vh(t || e, n, a); + return i.updateSignerOrProvider(e), i; + } + static fromPrivateKey(e, t) { + let n = + arguments.length > 2 && arguments[2] !== void 0 + ? arguments[2] + : {}, + a = + arguments.length > 3 && arguments[3] !== void 0 + ? arguments[3] + : new S3.ThirdwebStorage(), + i = TR(t, n), + s = new se.ethers.Wallet(e, i); + return vh.fromSigner(s, t, n, a); + } + constructor(e) { + let t = + arguments.length > 1 && arguments[1] !== void 0 + ? arguments[1] + : {}, + n = + arguments.length > 2 && arguments[2] !== void 0 + ? arguments[2] + : new S3.ThirdwebStorage(); + typeof e != "string" && + typeof e != "number" && + !se.ethers.Signer.isSigner(e) && + !se.ethers.providers.Provider.isProvider(e) && + ((t = { ...t, supportedChains: [e, ...(t.supportedChains || [])] }), + (e = e.chainId)), + super(e, t), + le._defineProperty(this, "contractCache", new Map()), + le._defineProperty(this, "_publisher", void 0), + le._defineProperty(this, "storageHandler", void 0), + le._defineProperty(this, "deployer", void 0), + le._defineProperty(this, "multiChainRegistry", void 0), + le._defineProperty(this, "wallet", void 0), + le._defineProperty(this, "storage", void 0), + (this.storageHandler = n), + (this.storage = n), + (this.wallet = new y2(e, t)), + (this.deployer = new gR(e, t, n)), + (this.multiChainRegistry = new eG( + e, + this.storageHandler, + this.options + )), + (this._publisher = new XV(e, this.options, this.storageHandler)); + } + get auth() { + throw new Error(`The sdk.auth namespace has been moved to the @thirdweb-dev/auth package and is no longer available after @thirdweb-dev/sdk >= 3.7.0. Please visit https://portal.thirdweb.com/auth for instructions on how to switch to using the new auth package (@thirdweb-dev/auth@3.0.0). - If you still want to use the old @thirdweb-dev/auth@2.0.0 package, you can downgrade the SDK to version 3.6.0.`)}async getNFTDrop(e){return await this.getContract(e,"nft-drop")}async getSignatureDrop(e){return await this.getContract(e,"signature-drop")}async getNFTCollection(e){return await this.getContract(e,"nft-collection")}async getEditionDrop(e){return await this.getContract(e,"edition-drop")}async getEdition(e){return await this.getContract(e,"edition")}async getTokenDrop(e){return await this.getContract(e,"token-drop")}async getToken(e){return await this.getContract(e,"token")}async getVote(e){return await this.getContract(e,"vote")}async getSplit(e){return await this.getContract(e,"split")}async getMarketplace(e){return await this.getContract(e,"marketplace")}async getMarketplaceV3(e){return await this.getContract(e,"marketplace-v3")}async getPack(e){return await this.getContract(e,"pack")}async getMultiwrap(e){return await this.getContract(e,"multiwrap")}async getContract(e,t){if(this.contractCache.has(e))return this.contractCache.get(e);let n;if(!t||t==="custom"){let a=await this.resolveContractType(e);if(a==="custom")try{let i=await this.getPublisher().fetchCompilerMetadataFromAddress(e);n=await this.getContractFromAbi(e,i.abi)}catch{let s=(await this.getProvider().getNetwork()).chainId;throw new Error(`No ABI found for this contract. Try importing it by visiting: https://thirdweb.com/${s}/${e}`)}else{let i=await Wv[a].getAbi(e,this.getProvider(),this.storage);n=await this.getContractFromAbi(e,i)}}else typeof t=="string"&&t in Wv?n=await Wv[t].initialize(this.getSignerOrProvider(),e,this.storage,this.options):n=await this.getContractFromAbi(e,t);return this.contractCache.set(e,n),n}async getBuiltInContract(e,t){return await this.getContract(e,t)}async resolveContractType(e){try{let t=new oe.Contract(e,aVe.default,this.getProvider()),n=oe.ethers.utils.toUtf8String(await t.contractType()).replace(/\x00/g,"");return SGe(n)}catch{return"custom"}}async getContractList(e){let t=await(await this.deployer.getRegistry())?.getContractAddresses(e)||[],n=(await this.getProvider().getNetwork()).chainId;return await Promise.all(t.map(async a=>({address:a,chainId:n,contractType:()=>this.resolveContractType(a),metadata:async()=>(await this.getContract(a)).metadata.get()})))}async getMultichainContractList(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:gJ.defaultChains,n=await this.multiChainRegistry.getContractAddresses(e),a=t.reduce((s,c)=>(s[c.chainId]=c,s),{}),i={};return n.map(s=>{let{address:c,chainId:l}=s;if(!a[l])return{address:c,chainId:l,contractType:async()=>"custom",metadata:async()=>({})};try{let d=i[l];return d||(d=new Fh(l,{...this.options,readonlySettings:void 0,supportedChains:t}),i[l]=d),{address:c,chainId:l,contractType:()=>d.resolveContractType(c),metadata:async()=>(await d.getContract(c)).metadata.get()}}catch{return{address:c,chainId:l,contractType:async()=>"custom",metadata:async()=>({})}}})}updateSignerOrProvider(e){super.updateSignerOrProvider(e),this.updateContractSignerOrProvider()}updateContractSignerOrProvider(){this.wallet.connect(this.getSignerOrProvider()),this.deployer.updateSignerOrProvider(this.getSignerOrProvider()),this._publisher.updateSignerOrProvider(this.getSignerOrProvider()),this.multiChainRegistry.updateSigner(this.getSignerOrProvider());for(let[,e]of this.contractCache)e.onNetworkUpdated(this.getSignerOrProvider())}async getContractFromAbi(e,t){if(this.contractCache.has(e))return this.contractCache.get(e);let[,n]=bc(this.getSignerOrProvider(),this.options),a=typeof t=="string"?JSON.parse(t):t,i=new lJ(this.getSignerOrProvider(),e,await cJ(e,kp.parse(a),n,this.options,this.storage),this.storageHandler,this.options,(await n.getNetwork()).chainId);return this.contractCache.set(e,i),i}async getBalance(e){return _p(this.getProvider(),bd,await this.getProvider().getBalance(e))}getPublisher(){return this._publisher}},CR=class extends ks{constructor(e,t,n,a){super(t,e,thr.default,a),le._defineProperty(this,"storage",void 0),le._defineProperty(this,"DEFAULT_VERSION_MAP",{[Wh.contractType]:3,[ny.contractType]:1,[jh.contractType]:4,[Ep.contractType]:1,[Uh.contractType]:2,[ry.contractType]:1,[ay.contractType]:2,[Hh.contractType]:1,[Vh.contractType]:1,[zh.contractType]:1,[Cp.contractType]:2,[dm.contractType]:1,[fl.contractType]:2}),this.storage=n}async deploy(e,t,n,a){let i=Wv[e],s=i.schema.deploy.parse(t),c=await this.storage.upload(s),l=await this.getImplementation(i,a);if(!l||l===oe.constants.AddressZero)throw new Error(`No implementation found for ${e}`);let d=await i.getAbi(l,this.getProvider(),this.storage),f=this.getSigner();yr.default(f,"A signer is required to deploy contracts");let w=await AGe(e,s,c,f),E=oe.Contract.getInterface(d).encodeFunctionData("initialize",w),k=await this.getProvider().getBlockNumber(),A=oe.ethers.utils.formatBytes32String(k.toString()),L=await this.sendTransaction("deployProxyByImplementation",[l,E,A]),q=this.parseLogs("ProxyDeployed",L.logs);if(q.length<1)throw new Error("No ProxyDeployed event found");let U=q[0].args.proxy;return n.emit("contractDeployed",{status:"completed",contractAddress:U,transactionHash:L.transactionHash}),U}async deployProxyByImplementation(e,t,n,a,i){let s=oe.Contract.getInterface(t).encodeFunctionData(n,a),c=await this.getProvider().getBlockNumber(),l=await this.sendTransaction("deployProxyByImplementation",[e,s,oe.ethers.utils.formatBytes32String(c.toString())]),d=this.parseLogs("ProxyDeployed",l.logs);if(d.length<1)throw new Error("No ProxyDeployed event found");let f=d[0].args.proxy;return i.emit("contractDeployed",{status:"completed",contractAddress:f,transactionHash:l.transactionHash}),f}async getDeployArguments(e,t,n){let a=e===fl.contractType?[]:await this.getDefaultTrustedForwarders();switch(t.trusted_forwarders&&t.trusted_forwarders.length>0&&(a=t.trusted_forwarders),e){case Wh.contractType:case ny.contractType:let i=Wh.schema.deploy.parse(t);return[await this.getSignerAddress(),i.name,i.symbol,n,a,i.primary_sale_recipient,i.fee_recipient,i.seller_fee_basis_points,i.platform_fee_basis_points,i.platform_fee_recipient];case jh.contractType:let s=jh.schema.deploy.parse(t);return[await this.getSignerAddress(),s.name,s.symbol,n,a,s.primary_sale_recipient,s.fee_recipient,s.seller_fee_basis_points,s.platform_fee_basis_points,s.platform_fee_recipient];case Ep.contractType:let c=Ep.schema.deploy.parse(t);return[await this.getSignerAddress(),c.name,c.symbol,n,a,c.fee_recipient,c.seller_fee_basis_points];case Uh.contractType:case ry.contractType:let l=Uh.schema.deploy.parse(t);return[await this.getSignerAddress(),l.name,l.symbol,n,a,l.primary_sale_recipient,l.fee_recipient,l.seller_fee_basis_points,l.platform_fee_basis_points,l.platform_fee_recipient];case ay.contractType:case Hh.contractType:let d=Hh.schema.deploy.parse(t);return[await this.getSignerAddress(),d.name,d.symbol,n,a,d.primary_sale_recipient,d.platform_fee_recipient,d.platform_fee_basis_points];case Vh.contractType:let f=Vh.schema.deploy.parse(t);return[f.name,n,a,f.voting_token_address,f.voting_delay_in_blocks,f.voting_period_in_blocks,oe.BigNumber.from(f.proposal_token_threshold),f.voting_quorum_fraction];case zh.contractType:let w=zh.schema.deploy.parse(t);return[await this.getSignerAddress(),n,a,w.recipients.map(L=>L.address),w.recipients.map(L=>oe.BigNumber.from(L.sharesBps))];case Cp.contractType:let E=Cp.schema.deploy.parse(t);return[await this.getSignerAddress(),n,a,E.platform_fee_recipient,E.platform_fee_basis_points];case dm.contractType:let k=dm.schema.deploy.parse(t);return[await this.getSignerAddress(),n,a,k.platform_fee_recipient,k.platform_fee_basis_points];case fl.contractType:let A=fl.schema.deploy.parse(t);return[await this.getSignerAddress(),A.name,A.symbol,n,a,A.fee_recipient,A.seller_fee_basis_points];default:return[]}}async getDefaultTrustedForwarders(){let e=await this.getChainID();return bJ(e)}async getImplementation(e,t){let n=oe.ethers.utils.formatBytes32String(e.name),a=await this.getChainID(),i=uVe(a,e.contractType);return i&&i.length>0&&t===void 0?i:this.readContract.getImplementation(n,t!==void 0?t:this.DEFAULT_VERSION_MAP[e.contractType])}async getLatestVersion(e){let t=ZJ(e);if(!t)throw new Error(`Invalid contract type ${e}`);let n=oe.ethers.utils.formatBytes32String(t);return this.readContract.currentVersion(n)}},hJ=class extends ks{constructor(e,t,n){super(t,e,rhr.default,n)}async getContractAddresses(e){return(await this.readContract.getAll(e)).filter(t=>oe.utils.isAddress(t)&&t.toLowerCase()!==oe.constants.AddressZero)}async addContract(e){return await this.addContracts([e])}async addContracts(e){let t=await this.getSignerAddress(),n=[];return e.forEach(a=>{n.push(this.readContract.interface.encodeFunctionData("add",[t,a]))}),{receipt:await this.multiCall(n)}}async removeContract(e){return await this.removeContracts([e])}async removeContracts(e){let t=await this.getSignerAddress(),n=[];return e.forEach(a=>{n.push(this.readContract.interface.encodeFunctionData("remove",[t,a]))}),{receipt:await this.multiCall(n)}}},Qfr="0xdd99b75f095d0c4d5112aCe938e4e6ed962fb024",ER=class extends jv{constructor(e,t,n){super(e,t),le._defineProperty(this,"_factory",void 0),le._defineProperty(this,"_registry",void 0),le._defineProperty(this,"storage",void 0),le._defineProperty(this,"events",void 0),le._defineProperty(this,"deployMetadataCache",{}),le._defineProperty(this,"transactionListener",a=>{a.status==="submitted"&&this.events.emit("contractDeployed",{status:"submitted",transactionHash:a.transactionHash})}),this.storage=n,this.events=new KHe.EventEmitter,this.getFactory(),this.getRegistry()}async deployNFTCollection(e){return await this.deployBuiltInContract(ny.contractType,e)}async deployNFTDrop(e){return await this.deployBuiltInContract(Wh.contractType,e)}async deploySignatureDrop(e){return await this.deployBuiltInContract(jh.contractType,e)}async deployMultiwrap(e){return await this.deployBuiltInContract(Ep.contractType,e)}async deployEdition(e){return await this.deployBuiltInContract(ry.contractType,e)}async deployEditionDrop(e){return await this.deployBuiltInContract(Uh.contractType,e)}async deployToken(e){return await this.deployBuiltInContract(Hh.contractType,e)}async deployTokenDrop(e){return await this.deployBuiltInContract(ay.contractType,e)}async deployMarketplace(e){return await this.deployBuiltInContract(Cp.contractType,e)}async deployMarketplaceV3(e){return await this.deployBuiltInContract(dm.contractType,e)}async deployPack(e){return await this.deployBuiltInContract(fl.contractType,e)}async deploySplit(e){return await this.deployBuiltInContract(zh.contractType,e)}async deployVote(e){return await this.deployBuiltInContract(Vh.contractType,e)}async deployBuiltInContract(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"latest",a=this.getSigner();yr.default(a,"A signer is required to deploy contracts");let i=Wv[e].schema.deploy.parse(t);if(this.hasLocalFactory()){let k;try{k=parseInt(n),isNaN(k)&&(k=void 0)}catch{k=void 0}let A=await this.getFactory();if(!A)throw new Error("Factory not found");A.on($.EventType.Transaction,this.transactionListener);let L=await A.deploy(e,i,this.events,k);return A.off($.EventType.Transaction,this.transactionListener),L}let s=ZJ(e);yr.default(s,"Contract name not found");let c=await this.storage.upload(i),l=await AGe(e,i,c,a),d=(await this.getProvider().getNetwork()).chainId,f=await this.fetchReleaseFromPolygon(Qfr,s,n),w=await this.fetchAndCacheDeployMetadata(f.metadataUri),E=w.extendedMetadata?.factoryDeploymentData?.implementationAddresses?.[d];return E?this.deployContractFromUri(f.metadataUri,l):(E=await this.deployContractFromUri(f.metadataUri,this.getConstructorParamsForImplementation(e,d),{forceDirectDeploy:!0}),this.deployProxy(E,w.compilerMetadata.abi,"initialize",l))}async getLatestBuiltInContractVersion(e){let t=await this.getFactory();if(!t)throw new Error("Factory not found");return await t.getLatestVersion(e)}async deployReleasedContract(e,t,n){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"latest",i=arguments.length>4?arguments[4]:void 0,s=await this.fetchReleaseFromPolygon(e,t,a);return await this.deployContractFromUri(s.metadataUri,n,i)}async deployViaFactory(e,t,n,a,i){let s=this.getSigner();yr.default(s,"signer is required");let c=new CR(e,this.getSignerOrProvider(),this.storage,this.options);c.on($.EventType.Transaction,this.transactionListener);let l=await c.deployProxyByImplementation(t,n,a,i,this.events);return c.off($.EventType.Transaction,this.transactionListener),l}async deployProxy(e,t,n,a){let i=oe.Contract.getInterface(t).encodeFunctionData(n,a),{TWProxy__factory:s}=await Promise.resolve().then(function(){return Ys(mV())});return this.deployContractWithAbi(s.abi,s.bytecode,[e,i])}async getRegistry(){return this._registry?this._registry:this._registry=this.getProvider().getNetwork().then(async e=>{let{chainId:t}=e,n=h7(t,"twRegistry");if(!!n)return new hJ(n,this.getSignerOrProvider(),this.options)})}async getFactory(){return this._factory?this._factory:this._factory=this.getProvider().getNetwork().then(async e=>{let{chainId:t}=e,n=h7(t,"twFactory");return n?new CR(n,this.getSignerOrProvider(),this.storage,this.options):void 0})}updateSignerOrProvider(e){super.updateSignerOrProvider(e),this.updateContractSignerOrProvider()}updateContractSignerOrProvider(){this._factory?.then(e=>{e?.updateSignerOrProvider(this.getSignerOrProvider())}).catch(()=>{}),this._registry?.then(e=>{e?.updateSignerOrProvider(this.getSignerOrProvider())}).catch(()=>{})}async deployContractFromUri(e,t,n){let a=this.getSigner();yr.default(a,"A signer is required");let{compilerMetadata:i,extendedMetadata:s}=await this.fetchAndCacheDeployMetadata(e),c=n?.forceDirectDeploy||!1;if(s&&s.factoryDeploymentData&&(s.isDeployableViaProxy||s.isDeployableViaFactory)&&!c){let w=(await this.getProvider().getNetwork()).chainId;yr.default(s.factoryDeploymentData.implementationAddresses,"implementationAddresses is required");let E=s.factoryDeploymentData.implementationAddresses[w];yr.default(E,`implementationAddress not found for chainId '${w}'`),yr.default(s.factoryDeploymentData.implementationInitializerFunction,"implementationInitializerFunction not set'");let k=yGe(i.abi,s.factoryDeploymentData.implementationInitializerFunction).map(L=>L.type),A=this.convertParamValues(k,t);if(s.isDeployableViaFactory){yr.default(s.factoryDeploymentData.factoryAddresses,"isDeployableViaFactory is true so factoryAddresses is required");let L=s.factoryDeploymentData.factoryAddresses[w];return yr.default(L,`isDeployableViaFactory is true and factoryAddress not found for chainId '${w}'`),await this.deployViaFactory(L,E,i.abi,s.factoryDeploymentData.implementationInitializerFunction,A)}else if(s.isDeployableViaProxy)return await this.deployProxy(E,i.abi,s.factoryDeploymentData.implementationInitializerFunction,A)}let l=i.bytecode.startsWith("0x")?i.bytecode:`0x${i.bytecode}`;if(!oe.ethers.utils.isHexString(l))throw new Error(`Contract bytecode is invalid. - -${l}`);let d=DJ(i.abi).map(w=>w.type),f=this.convertParamValues(d,t);return this.deployContractWithAbi(i.abi,l,f)}async deployContractWithAbi(e,t,n){let a=this.getSigner();yr.default(a,"Signer is required to deploy contracts");let i=await new oe.ethers.ContractFactory(e,t).connect(a).deploy(...n);this.events.emit("contractDeployed",{status:"submitted",transactionHash:i.deployTransaction.hash});let s=await i.deployed();return this.events.emit("contractDeployed",{status:"completed",contractAddress:s.address,transactionHash:s.deployTransaction.hash}),s.address}addDeployListener(e){this.events.on("contractDeployed",e)}removeDeployListener(e){this.events.off("contractDeployed",e)}removeAllDeployListeners(){this.events.removeAllListeners("contractDeployed")}async fetchAndCacheDeployMetadata(e){if(this.deployMetadataCache[e])return this.deployMetadataCache[e];let t=await lx(e,this.storage),n;try{n=await UJ(e,this.storage)}catch{}let a={compilerMetadata:t,extendedMetadata:n};return this.deployMetadataCache[e]=a,a}async fetchReleaseFromPolygon(e,t,n){let a=await new Fh("polygon").getPublisher().getVersion(e,t,n);if(!a)throw new Error(`No release found for '${t}' at version '${n}' by '${e}'`);return a}getConstructorParamsForImplementation(e,t){switch(e){case Cp.contractType:case Ep.contractType:return[f7($.ChainId.Hardhat).wrapped.address];case fl.contractType:return[f7(t).wrapped.address,oe.ethers.constants.AddressZero];default:return[]}}hasLocalFactory(){return M.env.factoryAddress!==void 0}convertParamValues(e,t){if(e.length!==t.length)throw Error(`Passed the wrong number of constructor arguments: ${t.length}, expected ${e.length}`);return e.map((n,a)=>n==="tuple"||n.endsWith("[]")?typeof t[a]=="string"?JSON.parse(t[a]):t[a]:n==="bytes32"?(yr.default(oe.ethers.utils.isHexString(t[a]),`Could not parse bytes32 value. Expected valid hex string but got "${t[a]}".`),oe.ethers.utils.hexZeroPad(t[a],32)):n.startsWith("bytes")?(yr.default(oe.ethers.utils.isHexString(t[a]),`Could not parse bytes value. Expected valid hex string but got "${t[a]}".`),t[a]):n.startsWith("uint")||n.startsWith("int")?oe.BigNumber.from(t[a].toString()):t[a])}},kR=class{constructor(e){le._defineProperty(this,"featureName",O7.name),le._defineProperty(this,"contractWrapper",void 0),this.contractWrapper=e}async get(){return this.contractWrapper.readContract.owner()}async set(e){return{receipt:await this.contractWrapper.sendTransaction("setOwner",[e])}}},IGe={},Xfr=new Fh("polygon");function PGe(r,e){return`${r}-${e}`}function Yfr(r,e,t){IGe[PGe(r,e)]=t}function $fr(r,e){return IGe[PGe(r,e)]}async function Hv(r,e,t){let n=(await e.getNetwork()).chainId,a=$fr(r,n);if(a)return a;let i;try{let s=await Z_(r,e);if(!s)throw new Error(`Could not resolve metadata for contract at ${r}`);i=await SR(s,t)}catch{try{let c=await Xfr.multiChainRegistry.getContractMetadataURI(n,r);i=await SR(c,t)}catch{throw new Error(`Could not resolve metadata for contract at ${r}`)}}if(!i)throw new Error(`Could not resolve metadata for contract at ${r}`);return Yfr(r,n,i),i}async function qu(r,e,t){try{let n=await Hv(r,e,t);if(n&&n.abi)return n.abi}catch{}}async function SR(r,e){let t=await e.downloadJSON(r);if(!t||!t.output)throw new Error(`Could not resolve metadata for contract at ${r}`);let n=kp.parse(t.output.abi),a=t.settings.compilationTarget,i=Object.keys(a),s=a[i[0]],c=XJ.parse({title:t.output.devdoc.title,author:t.output.devdoc.author,details:t.output.devdoc.detail,notice:t.output.userdoc.notice}),l=[...new Set(Object.entries(t.sources).map(d=>{let[,f]=d;return f.license}))];return{name:s,abi:n,metadata:t,info:c,licenses:l}}async function JJ(r,e){return await Promise.all(Object.entries(r.metadata.sources).map(async t=>{let[n,a]=t,i=a.urls,s=i?i.find(c=>c.includes("ipfs")):void 0;if(s){let c=s.split("ipfs/")[1],l=new Promise((f,w)=>setTimeout(()=>w("timeout"),3e3)),d=await Promise.race([(await e.download(`ipfs://${c}`)).text(),l]);return{filename:n,source:d}}else return{filename:n,source:a.content||"Could not find source for this contract"}}))}var RGe=Bu.catchall(_e.z.union([xJ,_e.z.unknown()])),KJ=RGe.merge(yo.merge(fm).merge(Ss).partial()),NGe=ml.merge(yo.merge(fm).merge(Ss).partial()),OGe=KJ.merge(wd.merge(iy).merge(yl).partial()),hx={deploy:OGe,output:NGe,input:KJ},ZHe=_e.z.object({type:_e.z.string(),name:_e.z.string()}).catchall(_e.z.any()),fJ=ZHe.extend({stateMutability:_e.z.string().optional(),components:_e.z.array(ZHe).optional()}).catchall(_e.z.any()),LGe=_e.z.object({type:_e.z.string(),name:_e.z.string().default(""),inputs:_e.z.array(fJ).default([]),outputs:_e.z.array(fJ).default([])}).catchall(_e.z.any()),kp=_e.z.array(LGe),aC=_e.z.object({name:_e.z.string(),metadataUri:_e.z.string(),bytecodeUri:_e.z.string(),analytics:_e.z.any().optional()}).catchall(_e.z.any()),mJ=_e.z.record(_e.z.string(),_e.z.string()),BGe=_e.z.object({implementationAddresses:mJ,implementationInitializerFunction:_e.z.string().default("initialize"),factoryAddresses:mJ.optional()}),QJ=_e.z.object({version:_e.z.string().refine(r=>{try{return dx(r),!0}catch{return!1}},r=>({message:`'${r}' is not a valid semantic version. Should be in the format of major.minor.patch. Ex: 0.4.1`})),displayName:_e.z.string().optional(),description:_e.z.string().optional(),readme:_e.z.string().optional(),license:_e.z.string().optional(),changelog:_e.z.string().optional(),tags:_e.z.array(_e.z.string()).optional(),audit:le.FileOrBufferOrStringSchema.nullable().optional(),logo:le.FileOrBufferOrStringSchema.nullable().optional(),isDeployableViaFactory:_e.z.boolean().optional(),isDeployableViaProxy:_e.z.boolean().optional(),factoryDeploymentData:BGe.optional(),constructorParams:_e.z.record(_e.z.string(),_e.z.object({displayName:_e.z.string().optional(),description:_e.z.string().optional(),defaultValue:_e.z.string().optional()}).catchall(_e.z.any())).optional()}).catchall(_e.z.any()),qGe=QJ.extend({audit:_e.z.string().nullable().optional(),logo:_e.z.string().nullable().optional()}),DGe=aC.merge(QJ).extend({publisher:Gc.optional()}),FGe=aC.merge(qGe).extend({publisher:Gc.optional()}),UGe=_e.z.object({name:_e.z.string().optional(),bio:_e.z.string().optional(),avatar:le.FileOrBufferOrStringSchema.nullable().optional(),website:_e.z.string().optional(),twitter:_e.z.string().optional(),telegram:_e.z.string().optional(),facebook:_e.z.string().optional(),github:_e.z.string().optional(),medium:_e.z.string().optional(),linkedin:_e.z.string().optional(),reddit:_e.z.string().optional(),discord:_e.z.string().optional()}),WGe=UGe.extend({avatar:_e.z.string().nullable().optional()}),jGe=_e.z.object({id:_e.z.string(),timestamp:Nu,metadataUri:_e.z.string()}),XJ=_e.z.object({title:_e.z.string().optional(),author:_e.z.string().optional(),details:_e.z.string().optional(),notice:_e.z.string().optional()}),zGe=_e.z.object({name:_e.z.string(),abi:kp,metadata:_e.z.record(_e.z.string(),_e.z.any()),info:XJ,licenses:_e.z.array(_e.z.string().optional()).default([]).transform(r=>r.filter(e=>e!==void 0))}),HGe=aC.merge(zGe).extend({bytecode:_e.z.string()}),emr="https://paper.xyz/api",tmr="2022-08-12",YJ=`${emr}/${tmr}/platform/thirdweb`,JHe={[$.ChainId.Mainnet]:"Ethereum",[$.ChainId.Goerli]:"Goerli",[$.ChainId.Polygon]:"Polygon",[$.ChainId.Mumbai]:"Mumbai",[$.ChainId.Avalanche]:"Avalanche"};function VGe(r){return yr.default(r in JHe,`chainId not supported by paper: ${r}`),JHe[r]}async function GGe(r,e){let t=VGe(e),a=await(await fetch(`${YJ}/register-contract?contractAddress=${r}&chain=${t}`)).json();return yr.default(a.result.id,"Contract is not registered with paper"),a.result.id}var rmr={expiresInMinutes:15,feeBearer:"BUYER",sendEmailOnSuccess:!0,redirectAfterPayment:!1};async function ZGe(r,e){let n=await(await fetch(`${YJ}/checkout-link-intent`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({contractId:r,...rmr,...e,metadata:{...e.metadata,via_platform:"thirdweb"},hideNativeMint:!0,hidePaperWallet:!!e.walletAddress,hideExternalWallet:!0,hidePayWithCrypto:!0,usePaperKey:!1})})).json();return yr.default(n.checkoutLinkIntentUrl,"Failed to create checkout link intent"),n.checkoutLinkIntentUrl}var yJ=class{constructor(e){le._defineProperty(this,"contractWrapper",void 0),this.contractWrapper=e}async getCheckoutId(){return GGe(this.contractWrapper.readContract.address,await this.contractWrapper.getChainID())}async isEnabled(){try{return!!await this.getCheckoutId()}catch{return!1}}async createLinkIntent(e){return await ZGe(await this.getCheckoutId(),e)}};$.ALL_ROLES=RJ;$.APPROVED_IMPLEMENTATIONS=wZ;$.AbiObjectSchema=LGe;$.AbiSchema=kp;$.AbiTypeSchema=fJ;$.AddressSchema=Gc;$.AdminRoleMissingError=LZ;$.AssetNotFoundError=EZ;$.AuctionAlreadyStartedError=x7;$.AuctionHasNotEndedError=B_;$.BYOCContractMetadataSchema=RGe;$.BaseSignaturePayloadInput=MR;$.BigNumberSchema=Oi;$.BigNumberTransformSchema=xJ;$.BigNumberishSchema=Nu;$.CHAIN_ID_TO_NAME=zhr;$.CHAIN_NAME_TO_ID=g7;$.CONTRACTS_MAP=GJ;$.CONTRACT_ADDRESSES=nx;$.CallOverrideSchema=fVe;$.ChainIdToAddressSchema=mJ;$.ChainInfoInputSchema=mVe;$.ClaimConditionInputArray=bVe;$.ClaimConditionInputSchema=rC;$.ClaimConditionMetadataSchema=vVe;$.ClaimConditionOutputSchema=kJ;$.CommonContractOutputSchema=ml;$.CommonContractSchema=Bu;$.CommonPlatformFeeSchema=wd;$.CommonPrimarySaleSchema=iy;$.CommonRoyaltySchema=yo;$.CommonSymbolSchema=Ss;$.CommonTrustedForwarderSchema=yl;$.CompilerMetadataFetchedSchema=zGe;$.ContractDeployer=ER;$.ContractEncoder=ix;$.ContractEvents=wR;$.ContractInfoSchema=XJ;$.ContractInterceptor=xR;$.ContractMetadata=ty;$.ContractOwner=kR;$.ContractPlatformFee=TR;$.ContractPrimarySale=q7;$.ContractPublishedMetadata=_R;$.ContractRoles=L7;$.ContractRoyalty=B7;$.ContractWrapper=ks;$.CurrencySchema=yVe;$.CurrencyValueSchema=gVe;$.CustomContractDeploy=OGe;$.CustomContractInput=KJ;$.CustomContractOutput=NGe;$.CustomContractSchema=hx;$.DEFAULT_IPFS_GATEWAY=jhr;$.DelayedReveal=D_;$.DropClaimConditions=K_;$.DropErc1155ClaimConditions=tR;$.DropErc1155ContractSchema=NVe;$.DropErc1155History=KZ;$.DropErc20ContractSchema=CGe;$.DropErc721ContractSchema=MJ;$.DuplicateFileNameError=AZ;$.DuplicateLeafsError=w7;$.EditionDropInitializer=Uh;$.EditionInitializer=ry;$.EditionMetadataInputOrUriSchema=Uhr;$.EditionMetadataInputSchema=Fhr;$.EditionMetadataOutputSchema=JVe;$.EditionMetadataWithOwnerOutputSchema=Dhr;$.EndDateSchema=hVe;$.Erc1155=Y_;$.Erc1155BatchMintable=gR;$.Erc1155Burnable=fR;$.Erc1155Enumerable=mR;$.Erc1155LazyMintable=yR;$.Erc1155Mintable=vR;$.Erc1155SignatureMintable=bR;$.Erc20=Q_;$.Erc20BatchMintable=nR;$.Erc20Burnable=rR;$.Erc20Mintable=aR;$.Erc20SignatureMintable=iR;$.Erc721=X_;$.Erc721BatchMintable=uR;$.Erc721Burnable=sR;$.Erc721ClaimableWithConditions=oR;$.Erc721Enumerable=dR;$.Erc721LazyMintable=cR;$.Erc721Mintable=lR;$.Erc721Supply=pR;$.Erc721WithQuantitySignatureMintable=hR;$.ExtensionNotImplementedError=pm;$.ExtraPublishMetadataSchemaInput=QJ;$.ExtraPublishMetadataSchemaOutput=qGe;$.FEATURE_DIRECT_LISTINGS=DZ;$.FEATURE_ENGLISH_AUCTIONS=FZ;$.FEATURE_NFT_REVEALABLE=j_;$.FEATURE_OFFERS=UZ;$.FEATURE_PACK_VRF=qZ;$.FactoryDeploymentSchema=BGe;$.FetchError=RZ;$.FileNameMissingError=SZ;$.FullPublishMetadataSchemaInput=DGe;$.FullPublishMetadataSchemaOutput=FGe;$.FunctionDeprecatedError=NZ;$.GasCostEstimator=J_;$.GenericRequest=IVe;$.InterfaceId_IERC1155=eC;$.InterfaceId_IERC721=$_;$.InvalidAddressError=CZ;$.LINK_TOKEN_ADDRESS=phr;$.LOCAL_NODE_PKEY=cVe;$.ListingNotFoundError=O_;$.MarketplaceAuction=oJ;$.MarketplaceContractSchema=IJ;$.MarketplaceDirect=sJ;$.MarketplaceInitializer=Cp;$.MarketplaceV3Initializer=dm;$.MerkleSchema=fm;$.MintRequest1155=AVe;$.MintRequest20=kVe;$.MintRequest721=SVe;$.MintRequest721withQuantity=MVe;$.MissingOwnerRoleError=IZ;$.MissingRoleError=b7;$.MultiwrapContractSchema=kGe;$.MultiwrapInitializer=Ep;$.NATIVE_TOKENS=wJ;$.NATIVE_TOKEN_ADDRESS=bd;$.NFTCollectionInitializer=ny;$.NFTDropInitializer=Wh;$.NotEnoughTokensError=MZ;$.NotFoundError=ax;$.OZ_DEFENDER_FORWARDER_ADDRESS=$0;$.OptionalPropertiesInput=qhr;$.PAPER_API_URL=YJ;$.PREBUILT_CONTRACTS_MAP=Wv;$.PackContractSchema=BVe;$.PackInitializer=fl;$.PaperCheckout=yJ;$.PartialClaimConditionInputSchema=mhr;$.PreDeployMetadata=aC;$.PreDeployMetadataFetchedSchema=HGe;$.ProfileSchemaInput=UGe;$.ProfileSchemaOutput=WGe;$.PublishedContractSchema=jGe;$.QuantityAboveLimitError=PZ;$.RawDateSchema=TJ;$.RestrictedTransferError=OZ;$.SUPPORTED_CHAIN_IDS=oVe;$.Signature1155PayloadInput=xVe;$.Signature1155PayloadInputWithTokenId=TVe;$.Signature1155PayloadOutput=_Ve;$.Signature20PayloadInput=SJ;$.Signature20PayloadOutput=wVe;$.Signature721PayloadInput=IR;$.Signature721PayloadOutput=AJ;$.Signature721WithQuantityInput=CVe;$.Signature721WithQuantityOutput=EVe;$.SignatureDropInitializer=jh;$.SnapshotEntryInput=y7;$.SnapshotEntryWithProofSchema=CJ;$.SnapshotInfoSchema=fhr;$.SnapshotInputSchema=tC;$.SnapshotSchema=EJ;$.SplitInitializer=zh;$.SplitsContractSchema=DVe;$.StandardErc1155=iJ;$.StandardErc20=$Z;$.StandardErc721=rJ;$.StartDateSchema=_J;$.ThirdwebSDK=Fh;$.TokenDropInitializer=ay;$.TokenERC20History=YZ;$.TokenErc1155ContractSchema=HVe;$.TokenErc20ContractSchema=UVe;$.TokenErc721ContractSchema=jVe;$.TokenInitializer=Hh;$.TokenMintInputSchema=Whr;$.TransactionError=T7;$.TransactionTask=xd;$.UploadError=kZ;$.UserWallet=px;$.VoteContractSchema=ZVe;$.VoteInitializer=Vh;$.WrongListingTypeError=L_;$.assertEnabled=Tr;$.buildDefaultMap=KVe;$.cleanCurrencyAddress=PJ;$.convertToReadableQuantity=P_;$.createCheckoutLinkIntent=ZGe;$.createSnapshot=iGe;$.detectContractFeature=Ft;$.detectFeatures=nC;$.extractConstructorParams=hGe;$.extractConstructorParamsFromAbi=DJ;$.extractEventsFromAbi=gGe;$.extractFunctionParamsFromAbi=yGe;$.extractFunctions=fGe;$.extractFunctionsFromAbi=ux;$.extractIPFSHashFromBytecode=bGe;$.extractMinimalProxyImplementationAddress=vGe;$.fetchAbiFromAddress=qu;$.fetchContractMetadata=SR;$.fetchContractMetadataFromAddress=Hv;$.fetchCurrencyMetadata=fx;$.fetchCurrencyValue=_p;$.fetchExtendedReleaseMetadata=UJ;$.fetchPreDeployMetadata=lx;$.fetchRawPredeployMetadata=FJ;$.fetchRegisteredCheckoutId=GGe;$.fetchSnapshotEntryForAddress=RR;$.fetchSourceFilesFromMetadata=JJ;$.fetchTokenMetadataForContract=NR;$.getAllDetectedFeatureNames=Bfr;$.getAllDetectedFeatures=Lfr;$.getAllInBatches=Ufr;$.getApprovedImplementation=uVe;$.getChainProvider=PR;$.getContractAddressByChainId=h7;$.getContractName=ZJ;$.getContractPublisherAddress=lVe;$.getContractTypeForRemoteName=SGe;$.getDefaultTrustedForwarders=bJ;$.getMultichainRegistryAddress=xZ;$.getNativeTokenByChainId=f7;$.getReadOnlyProvider=v7;$.getRoleHash=ex;$.handleTokenApproval=HJ;$.hasERC20Allowance=ofr;$.hasFunction=gc;$.hasMatchingAbi=qJ;$.includesErrorMessage=q_;$.isDowngradeVersion=Kfr;$.isFeatureEnabled=jJ;$.isIncrementalVersion=MGe;$.isNativeToken=Gh;$.isTokenApprovedForTransfer=xGe;$.mapOffer=VJ;$.matchesPrebuiltAbi=Rfr;$.normalizePriceValue=vc;$.parseChainIdToPaperChain=VGe;$.parseRevertReason=XVe;$.resolveContractUriFromAddress=Z_;$.setErc20Allowance=ey;$.toChainId=QVe;$.toSemver=dx;$.uploadOrExtractURI=LJ});var JGe=O(ye=>{"use strict";x();T();Object.defineProperty(ye,"__esModule",{value:!0});var nmr=dc(),ve=Hc();Xr();_t();Pn();Un();Wn();jn();zn();Hn();Vn();Gn();Zn();Jn();Kn();Qn();Xn();Yn();$n();ea();ta();ra();na();aa();ia();sa();oa();ca();ua();la();da();pa();ha();fa();ma();ya();ga();va();ba();wa();xa();Ta();_a();Ca();Ea();ka();Sa();Aa();Ma();Ia();Pa();Ra();En();Na();Oa();La();On();Ba();qa();Da();Fa();Ua();Wa();ja();za();Ha();Va();Ga();Za();Ja();Ka();Qa();globalThis.global=globalThis;ye.getRpcUrl=nmr.getRpcUrl;ye.ALL_ROLES=ve.ALL_ROLES;ye.APPROVED_IMPLEMENTATIONS=ve.APPROVED_IMPLEMENTATIONS;ye.AbiObjectSchema=ve.AbiObjectSchema;ye.AbiSchema=ve.AbiSchema;ye.AbiTypeSchema=ve.AbiTypeSchema;ye.AddressSchema=ve.AddressSchema;ye.AdminRoleMissingError=ve.AdminRoleMissingError;ye.AssetNotFoundError=ve.AssetNotFoundError;ye.AuctionAlreadyStartedError=ve.AuctionAlreadyStartedError;ye.AuctionHasNotEndedError=ve.AuctionHasNotEndedError;ye.BYOCContractMetadataSchema=ve.BYOCContractMetadataSchema;ye.BaseSignaturePayloadInput=ve.BaseSignaturePayloadInput;ye.BigNumberSchema=ve.BigNumberSchema;ye.BigNumberTransformSchema=ve.BigNumberTransformSchema;ye.BigNumberishSchema=ve.BigNumberishSchema;ye.CHAIN_ID_TO_NAME=ve.CHAIN_ID_TO_NAME;ye.CHAIN_NAME_TO_ID=ve.CHAIN_NAME_TO_ID;ye.CONTRACTS_MAP=ve.CONTRACTS_MAP;ye.CONTRACT_ADDRESSES=ve.CONTRACT_ADDRESSES;ye.CallOverrideSchema=ve.CallOverrideSchema;Object.defineProperty(ye,"ChainId",{enumerable:!0,get:function(){return ve.ChainId}});ye.ChainIdToAddressSchema=ve.ChainIdToAddressSchema;ye.ChainInfoInputSchema=ve.ChainInfoInputSchema;ye.ClaimConditionInputArray=ve.ClaimConditionInputArray;ye.ClaimConditionInputSchema=ve.ClaimConditionInputSchema;ye.ClaimConditionMetadataSchema=ve.ClaimConditionMetadataSchema;ye.ClaimConditionOutputSchema=ve.ClaimConditionOutputSchema;Object.defineProperty(ye,"ClaimEligibility",{enumerable:!0,get:function(){return ve.ClaimEligibility}});ye.CommonContractOutputSchema=ve.CommonContractOutputSchema;ye.CommonContractSchema=ve.CommonContractSchema;ye.CommonPlatformFeeSchema=ve.CommonPlatformFeeSchema;ye.CommonPrimarySaleSchema=ve.CommonPrimarySaleSchema;ye.CommonRoyaltySchema=ve.CommonRoyaltySchema;ye.CommonSymbolSchema=ve.CommonSymbolSchema;ye.CommonTrustedForwarderSchema=ve.CommonTrustedForwarderSchema;ye.CompilerMetadataFetchedSchema=ve.CompilerMetadataFetchedSchema;ye.ContractDeployer=ve.ContractDeployer;ye.ContractEncoder=ve.ContractEncoder;ye.ContractEvents=ve.ContractEvents;ye.ContractInfoSchema=ve.ContractInfoSchema;ye.ContractInterceptor=ve.ContractInterceptor;ye.ContractMetadata=ve.ContractMetadata;ye.ContractOwner=ve.ContractOwner;ye.ContractPlatformFee=ve.ContractPlatformFee;ye.ContractPrimarySale=ve.ContractPrimarySale;ye.ContractPublishedMetadata=ve.ContractPublishedMetadata;ye.ContractRoles=ve.ContractRoles;ye.ContractRoyalty=ve.ContractRoyalty;ye.CurrencySchema=ve.CurrencySchema;ye.CurrencyValueSchema=ve.CurrencyValueSchema;ye.CustomContractDeploy=ve.CustomContractDeploy;ye.CustomContractInput=ve.CustomContractInput;ye.CustomContractOutput=ve.CustomContractOutput;ye.CustomContractSchema=ve.CustomContractSchema;ye.DEFAULT_IPFS_GATEWAY=ve.DEFAULT_IPFS_GATEWAY;ye.DelayedReveal=ve.DelayedReveal;ye.DropClaimConditions=ve.DropClaimConditions;ye.DropErc1155ClaimConditions=ve.DropErc1155ClaimConditions;ye.DropErc1155History=ve.DropErc1155History;ye.DuplicateFileNameError=ve.DuplicateFileNameError;ye.DuplicateLeafsError=ve.DuplicateLeafsError;ye.EditionDropInitializer=ve.EditionDropInitializer;ye.EditionInitializer=ve.EditionInitializer;ye.EditionMetadataInputOrUriSchema=ve.EditionMetadataInputOrUriSchema;ye.EditionMetadataInputSchema=ve.EditionMetadataInputSchema;ye.EditionMetadataOutputSchema=ve.EditionMetadataOutputSchema;ye.EditionMetadataWithOwnerOutputSchema=ve.EditionMetadataWithOwnerOutputSchema;ye.EndDateSchema=ve.EndDateSchema;ye.Erc1155=ve.Erc1155;ye.Erc1155BatchMintable=ve.Erc1155BatchMintable;ye.Erc1155Burnable=ve.Erc1155Burnable;ye.Erc1155Enumerable=ve.Erc1155Enumerable;ye.Erc1155LazyMintable=ve.Erc1155LazyMintable;ye.Erc1155Mintable=ve.Erc1155Mintable;ye.Erc1155SignatureMintable=ve.Erc1155SignatureMintable;ye.Erc20=ve.Erc20;ye.Erc20BatchMintable=ve.Erc20BatchMintable;ye.Erc20Burnable=ve.Erc20Burnable;ye.Erc20Mintable=ve.Erc20Mintable;ye.Erc20SignatureMintable=ve.Erc20SignatureMintable;ye.Erc721=ve.Erc721;ye.Erc721BatchMintable=ve.Erc721BatchMintable;ye.Erc721Burnable=ve.Erc721Burnable;ye.Erc721ClaimableWithConditions=ve.Erc721ClaimableWithConditions;ye.Erc721Enumerable=ve.Erc721Enumerable;ye.Erc721LazyMintable=ve.Erc721LazyMintable;ye.Erc721Mintable=ve.Erc721Mintable;ye.Erc721Supply=ve.Erc721Supply;ye.Erc721WithQuantitySignatureMintable=ve.Erc721WithQuantitySignatureMintable;Object.defineProperty(ye,"EventType",{enumerable:!0,get:function(){return ve.EventType}});ye.ExtensionNotImplementedError=ve.ExtensionNotImplementedError;ye.ExtraPublishMetadataSchemaInput=ve.ExtraPublishMetadataSchemaInput;ye.ExtraPublishMetadataSchemaOutput=ve.ExtraPublishMetadataSchemaOutput;ye.FactoryDeploymentSchema=ve.FactoryDeploymentSchema;ye.FetchError=ve.FetchError;ye.FileNameMissingError=ve.FileNameMissingError;ye.FullPublishMetadataSchemaInput=ve.FullPublishMetadataSchemaInput;ye.FullPublishMetadataSchemaOutput=ve.FullPublishMetadataSchemaOutput;ye.FunctionDeprecatedError=ve.FunctionDeprecatedError;ye.GasCostEstimator=ve.GasCostEstimator;ye.GenericRequest=ve.GenericRequest;ye.InterfaceId_IERC1155=ve.InterfaceId_IERC1155;ye.InterfaceId_IERC721=ve.InterfaceId_IERC721;ye.InvalidAddressError=ve.InvalidAddressError;ye.LINK_TOKEN_ADDRESS=ve.LINK_TOKEN_ADDRESS;ye.LOCAL_NODE_PKEY=ve.LOCAL_NODE_PKEY;ye.ListingNotFoundError=ve.ListingNotFoundError;Object.defineProperty(ye,"ListingType",{enumerable:!0,get:function(){return ve.ListingType}});ye.MarketplaceAuction=ve.MarketplaceAuction;ye.MarketplaceDirect=ve.MarketplaceDirect;ye.MarketplaceInitializer=ve.MarketplaceInitializer;ye.MarketplaceV3Initializer=ve.MarketplaceV3Initializer;ye.MerkleSchema=ve.MerkleSchema;ye.MintRequest1155=ve.MintRequest1155;ye.MintRequest20=ve.MintRequest20;ye.MintRequest721=ve.MintRequest721;ye.MintRequest721withQuantity=ve.MintRequest721withQuantity;ye.MissingOwnerRoleError=ve.MissingOwnerRoleError;ye.MissingRoleError=ve.MissingRoleError;ye.MultiwrapInitializer=ve.MultiwrapInitializer;ye.NATIVE_TOKENS=ve.NATIVE_TOKENS;ye.NATIVE_TOKEN_ADDRESS=ve.NATIVE_TOKEN_ADDRESS;ye.NFTCollectionInitializer=ve.NFTCollectionInitializer;ye.NFTDropInitializer=ve.NFTDropInitializer;ye.NotEnoughTokensError=ve.NotEnoughTokensError;ye.NotFoundError=ve.NotFoundError;ye.OZ_DEFENDER_FORWARDER_ADDRESS=ve.OZ_DEFENDER_FORWARDER_ADDRESS;ye.OptionalPropertiesInput=ve.OptionalPropertiesInput;ye.PAPER_API_URL=ve.PAPER_API_URL;ye.PREBUILT_CONTRACTS_MAP=ve.PREBUILT_CONTRACTS_MAP;ye.PackInitializer=ve.PackInitializer;ye.PaperCheckout=ve.PaperCheckout;ye.PartialClaimConditionInputSchema=ve.PartialClaimConditionInputSchema;ye.PreDeployMetadata=ve.PreDeployMetadata;ye.PreDeployMetadataFetchedSchema=ve.PreDeployMetadataFetchedSchema;ye.ProfileSchemaInput=ve.ProfileSchemaInput;ye.ProfileSchemaOutput=ve.ProfileSchemaOutput;Object.defineProperty(ye,"ProposalState",{enumerable:!0,get:function(){return ve.ProposalState}});ye.PublishedContractSchema=ve.PublishedContractSchema;ye.QuantityAboveLimitError=ve.QuantityAboveLimitError;ye.RawDateSchema=ve.RawDateSchema;ye.RestrictedTransferError=ve.RestrictedTransferError;ye.SUPPORTED_CHAIN_IDS=ve.SUPPORTED_CHAIN_IDS;ye.Signature1155PayloadInput=ve.Signature1155PayloadInput;ye.Signature1155PayloadInputWithTokenId=ve.Signature1155PayloadInputWithTokenId;ye.Signature1155PayloadOutput=ve.Signature1155PayloadOutput;ye.Signature20PayloadInput=ve.Signature20PayloadInput;ye.Signature20PayloadOutput=ve.Signature20PayloadOutput;ye.Signature721PayloadInput=ve.Signature721PayloadInput;ye.Signature721PayloadOutput=ve.Signature721PayloadOutput;ye.Signature721WithQuantityInput=ve.Signature721WithQuantityInput;ye.Signature721WithQuantityOutput=ve.Signature721WithQuantityOutput;ye.SignatureDropInitializer=ve.SignatureDropInitializer;ye.SnapshotEntryInput=ve.SnapshotEntryInput;ye.SnapshotEntryWithProofSchema=ve.SnapshotEntryWithProofSchema;ye.SnapshotInfoSchema=ve.SnapshotInfoSchema;ye.SnapshotInputSchema=ve.SnapshotInputSchema;ye.SnapshotSchema=ve.SnapshotSchema;ye.SplitInitializer=ve.SplitInitializer;ye.StandardErc1155=ve.StandardErc1155;ye.StandardErc20=ve.StandardErc20;ye.StandardErc721=ve.StandardErc721;ye.StartDateSchema=ve.StartDateSchema;Object.defineProperty(ye,"Status",{enumerable:!0,get:function(){return ve.Status}});ye.ThirdwebSDK=ve.ThirdwebSDK;ye.TokenDropInitializer=ve.TokenDropInitializer;ye.TokenERC20History=ve.TokenERC20History;ye.TokenInitializer=ve.TokenInitializer;ye.TokenMintInputSchema=ve.TokenMintInputSchema;ye.TransactionError=ve.TransactionError;ye.TransactionTask=ve.TransactionTask;ye.UploadError=ve.UploadError;ye.UserWallet=ve.UserWallet;ye.VoteInitializer=ve.VoteInitializer;Object.defineProperty(ye,"VoteType",{enumerable:!0,get:function(){return ve.VoteType}});ye.WrongListingTypeError=ve.WrongListingTypeError;ye.assertEnabled=ve.assertEnabled;ye.buildDefaultMap=ve.buildDefaultMap;ye.convertToReadableQuantity=ve.convertToReadableQuantity;ye.createCheckoutLinkIntent=ve.createCheckoutLinkIntent;ye.createSnapshot=ve.createSnapshot;ye.detectContractFeature=ve.detectContractFeature;ye.detectFeatures=ve.detectFeatures;ye.extractConstructorParams=ve.extractConstructorParams;ye.extractConstructorParamsFromAbi=ve.extractConstructorParamsFromAbi;ye.extractEventsFromAbi=ve.extractEventsFromAbi;ye.extractFunctionParamsFromAbi=ve.extractFunctionParamsFromAbi;ye.extractFunctions=ve.extractFunctions;ye.extractFunctionsFromAbi=ve.extractFunctionsFromAbi;ye.extractIPFSHashFromBytecode=ve.extractIPFSHashFromBytecode;ye.extractMinimalProxyImplementationAddress=ve.extractMinimalProxyImplementationAddress;ye.fetchAbiFromAddress=ve.fetchAbiFromAddress;ye.fetchContractMetadata=ve.fetchContractMetadata;ye.fetchContractMetadataFromAddress=ve.fetchContractMetadataFromAddress;ye.fetchCurrencyMetadata=ve.fetchCurrencyMetadata;ye.fetchCurrencyValue=ve.fetchCurrencyValue;ye.fetchExtendedReleaseMetadata=ve.fetchExtendedReleaseMetadata;ye.fetchPreDeployMetadata=ve.fetchPreDeployMetadata;ye.fetchRawPredeployMetadata=ve.fetchRawPredeployMetadata;ye.fetchRegisteredCheckoutId=ve.fetchRegisteredCheckoutId;ye.fetchSnapshotEntryForAddress=ve.fetchSnapshotEntryForAddress;ye.fetchSourceFilesFromMetadata=ve.fetchSourceFilesFromMetadata;ye.getAllDetectedFeatureNames=ve.getAllDetectedFeatureNames;ye.getAllDetectedFeatures=ve.getAllDetectedFeatures;ye.getApprovedImplementation=ve.getApprovedImplementation;ye.getChainProvider=ve.getChainProvider;ye.getContractAddressByChainId=ve.getContractAddressByChainId;ye.getContractName=ve.getContractName;ye.getContractPublisherAddress=ve.getContractPublisherAddress;ye.getContractTypeForRemoteName=ve.getContractTypeForRemoteName;ye.getDefaultTrustedForwarders=ve.getDefaultTrustedForwarders;ye.getMultichainRegistryAddress=ve.getMultichainRegistryAddress;ye.getNativeTokenByChainId=ve.getNativeTokenByChainId;ye.getReadOnlyProvider=ve.getReadOnlyProvider;ye.getRoleHash=ve.getRoleHash;ye.hasFunction=ve.hasFunction;ye.hasMatchingAbi=ve.hasMatchingAbi;ye.includesErrorMessage=ve.includesErrorMessage;ye.isDowngradeVersion=ve.isDowngradeVersion;ye.isFeatureEnabled=ve.isFeatureEnabled;ye.isIncrementalVersion=ve.isIncrementalVersion;ye.matchesPrebuiltAbi=ve.matchesPrebuiltAbi;ye.normalizePriceValue=ve.normalizePriceValue;ye.parseChainIdToPaperChain=ve.parseChainIdToPaperChain;ye.parseRevertReason=ve.parseRevertReason;ye.resolveContractUriFromAddress=ve.resolveContractUriFromAddress;ye.toChainId=ve.toChainId;ye.toSemver=ve.toSemver});var KGe=O((Ndn,$J)=>{"use strict";x();T();M.env.NODE_ENV==="production"?$J.exports=Pze():$J.exports=JGe()});var Jc=O(QGe=>{"use strict";x();T();function amr(r,e){if(typeof r!="object"||r===null)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var n=t.call(r,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}function imr(r){var e=amr(r,"string");return typeof e=="symbol"?e:String(e)}function smr(r,e,t){return e=imr(e),e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}QGe._defineProperty=smr});var _d=O(iC=>{"use strict";x();T();function XGe(r,e){if(e.has(r))throw new TypeError("Cannot initialize the same private elements twice on an object")}function omr(r,e,t){XGe(r,e),e.set(r,t)}function cmr(r,e,t){if(e.set)e.set.call(r,t);else{if(!e.writable)throw new TypeError("attempted to set read only private field");e.value=t}}function YGe(r,e,t){if(!e.has(r))throw new TypeError("attempted to "+t+" private field on non-instance");return e.get(r)}function umr(r,e,t){var n=YGe(r,e,"set");return cmr(r,n,t),t}function lmr(r,e){return e.get?e.get.call(r):e.value}function dmr(r,e){var t=YGe(r,e,"get");return lmr(r,t)}iC._checkPrivateRedeclaration=XGe;iC._classPrivateFieldGet=dmr;iC._classPrivateFieldInitSpec=omr;iC._classPrivateFieldSet=umr});var As=O((jdn,eK)=>{"use strict";x();T();var pmr=Object.prototype.hasOwnProperty,Kc="~";function sC(){}Object.create&&(sC.prototype=Object.create(null),new sC().__proto__||(Kc=!1));function hmr(r,e,t){this.fn=r,this.context=e,this.once=t||!1}function $Ge(r,e,t,n,a){if(typeof t!="function")throw new TypeError("The listener must be a function");var i=new hmr(t,n||r,a),s=Kc?Kc+e:e;return r._events[s]?r._events[s].fn?r._events[s]=[r._events[s],i]:r._events[s].push(i):(r._events[s]=i,r._eventsCount++),r}function LR(r,e){--r._eventsCount===0?r._events=new sC:delete r._events[e]}function wc(){this._events=new sC,this._eventsCount=0}wc.prototype.eventNames=function(){var e=[],t,n;if(this._eventsCount===0)return e;for(n in t=this._events)pmr.call(t,n)&&e.push(Kc?n.slice(1):n);return Object.getOwnPropertySymbols?e.concat(Object.getOwnPropertySymbols(t)):e};wc.prototype.listeners=function(e){var t=Kc?Kc+e:e,n=this._events[t];if(!n)return[];if(n.fn)return[n.fn];for(var a=0,i=n.length,s=new Array(i);a{"use strict";x();T();var fmr=Jc(),mmr=As();function ymr(r){return r&&r.__esModule?r:{default:r}}var gmr=ymr(mmr),BR=class extends gmr.default{},tK=class extends BR{constructor(e){super(),fmr._defineProperty(this,"wagmiConnector",void 0),this.wagmiConnector=e}async connect(e){let t=e?.chainId;return(await this.wagmiConnector.connect({chainId:t})).account}disconnect(){return this.wagmiConnector.disconnect()}isConnected(){return this.wagmiConnector.isAuthorized()}getAddress(){return this.wagmiConnector.getAccount()}getSigner(){return this.wagmiConnector.getSigner()}getProvider(){return this.wagmiConnector.getProvider()}async switchChain(e){if(!this.wagmiConnector.switchChain)throw new Error("Switch chain not supported");await this.wagmiConnector.switchChain(e)}};rK.TWConnector=BR;rK.WagmiAdapter=tK});var sy=O(qR=>{"use strict";x();T();var eZe=Jc(),yx=_t(),vmr=As();function bmr(r){return r&&r.__esModule?r:{default:r}}var wmr=bmr(vmr),xmr={id:42161,name:"Arbitrum One",network:"arbitrum",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{alchemy:{http:["https://arb-mainnet.g.alchemy.com/v2"],webSocket:["wss://arb-mainnet.g.alchemy.com/v2"]},infura:{http:["https://arbitrum-mainnet.infura.io/v3"],webSocket:["wss://arbitrum-mainnet.infura.io/ws/v3"]},default:{http:["https://arb1.arbitrum.io/rpc"]},public:{http:["https://arb1.arbitrum.io/rpc"]}},blockExplorers:{etherscan:{name:"Arbiscan",url:"https://arbiscan.io"},default:{name:"Arbiscan",url:"https://arbiscan.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:7654707}}},Tmr={id:421613,name:"Arbitrum Goerli",network:"arbitrum-goerli",nativeCurrency:{name:"Arbitrum Goerli Ether",symbol:"ETH",decimals:18},rpcUrls:{alchemy:{http:["https://arb-goerli.g.alchemy.com/v2"],webSocket:["wss://arb-goerli.g.alchemy.com/v2"]},infura:{http:["https://arbitrum-goerli.infura.io/v3"],webSocket:["wss://arbitrum-goerli.infura.io/ws/v3"]},default:{http:["https://goerli-rollup.arbitrum.io/rpc"]},public:{http:["https://goerli-rollup.arbitrum.io/rpc"]}},blockExplorers:{etherscan:{name:"Arbiscan",url:"https://goerli.arbiscan.io/"},default:{name:"Arbiscan",url:"https://goerli.arbiscan.io/"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:88114}},testnet:!0},_mr={id:43114,name:"Avalanche",network:"avalanche",nativeCurrency:{decimals:18,name:"Avalanche",symbol:"AVAX"},rpcUrls:{default:{http:["https://api.avax.network/ext/bc/C/rpc"]},public:{http:["https://api.avax.network/ext/bc/C/rpc"]}},blockExplorers:{etherscan:{name:"SnowTrace",url:"https://snowtrace.io"},default:{name:"SnowTrace",url:"https://snowtrace.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:11907934}}},Cmr={id:43113,name:"Avalanche Fuji",network:"avalanche-fuji",nativeCurrency:{decimals:18,name:"Avalanche Fuji",symbol:"AVAX"},rpcUrls:{default:{http:["https://api.avax-test.network/ext/bc/C/rpc"]},public:{http:["https://api.avax-test.network/ext/bc/C/rpc"]}},blockExplorers:{etherscan:{name:"SnowTrace",url:"https://testnet.snowtrace.io"},default:{name:"SnowTrace",url:"https://testnet.snowtrace.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:7096959}},testnet:!0},Emr={id:56,name:"BNB Smart Chain",network:"bsc",nativeCurrency:{decimals:18,name:"BNB",symbol:"BNB"},rpcUrls:{default:{http:["https://rpc.ankr.com/bsc"]},public:{http:["https://rpc.ankr.com/bsc"]}},blockExplorers:{etherscan:{name:"BscScan",url:"https://bscscan.com"},default:{name:"BscScan",url:"https://bscscan.com"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:15921452}}},kmr={id:97,name:"Binance Smart Chain Testnet",network:"bsc-testnet",nativeCurrency:{decimals:18,name:"BNB",symbol:"tBNB"},rpcUrls:{default:{http:["https://bsc-testnet.public.blastapi.io"]},public:{http:["https://bsc-testnet.public.blastapi.io"]}},blockExplorers:{etherscan:{name:"BscScan",url:"https://testnet.bscscan.com"},default:{name:"BscScan",url:"https://testnet.bscscan.com"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:17422483}},testnet:!0},Smr={id:250,name:"Fantom",network:"fantom",nativeCurrency:{decimals:18,name:"Fantom",symbol:"FTM"},rpcUrls:{default:{http:["https://rpc.ankr.com/fantom"]},public:{http:["https://rpc.ankr.com/fantom"]}},blockExplorers:{etherscan:{name:"FTMScan",url:"https://ftmscan.com"},default:{name:"FTMScan",url:"https://ftmscan.com"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:33001987}}},Amr={id:4002,name:"Fantom Testnet",network:"fantom-testnet",nativeCurrency:{decimals:18,name:"Fantom",symbol:"FTM"},rpcUrls:{default:{http:["https://rpc.testnet.fantom.network"]},public:{http:["https://rpc.testnet.fantom.network"]}},blockExplorers:{etherscan:{name:"FTMScan",url:"https://testnet.ftmscan.com"},default:{name:"FTMScan",url:"https://testnet.ftmscan.com"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:8328688}}},Mmr={id:5,network:"goerli",name:"Goerli",nativeCurrency:{name:"Goerli Ether",symbol:"ETH",decimals:18},rpcUrls:{alchemy:{http:["https://eth-goerli.g.alchemy.com/v2"],webSocket:["wss://eth-goerli.g.alchemy.com/v2"]},infura:{http:["https://goerli.infura.io/v3"],webSocket:["wss://goerli.infura.io/ws/v3"]},default:{http:["https://rpc.ankr.com/eth_goerli"]},public:{http:["https://rpc.ankr.com/eth_goerli"]}},blockExplorers:{etherscan:{name:"Etherscan",url:"https://goerli.etherscan.io"},default:{name:"Etherscan",url:"https://goerli.etherscan.io"}},contracts:{ensRegistry:{address:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:6507670}},testnet:!0},Imr={id:1,network:"homestead",name:"Ethereum",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{alchemy:{http:["https://eth-mainnet.g.alchemy.com/v2"],webSocket:["wss://eth-mainnet.g.alchemy.com/v2"]},infura:{http:["https://mainnet.infura.io/v3"],webSocket:["wss://mainnet.infura.io/ws/v3"]},default:{http:["https://cloudflare-eth.com"]},public:{http:["https://cloudflare-eth.com"]}},blockExplorers:{etherscan:{name:"Etherscan",url:"https://etherscan.io"},default:{name:"Etherscan",url:"https://etherscan.io"}},contracts:{ensRegistry:{address:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:14353601}}},Pmr={id:10,name:"Optimism",network:"optimism",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{alchemy:{http:["https://opt-mainnet.g.alchemy.com/v2"],webSocket:["wss://opt-mainnet.g.alchemy.com/v2"]},infura:{http:["https://optimism-mainnet.infura.io/v3"],webSocket:["wss://optimism-mainnet.infura.io/ws/v3"]},default:{http:["https://mainnet.optimism.io"]},public:{http:["https://mainnet.optimism.io"]}},blockExplorers:{etherscan:{name:"Etherscan",url:"https://optimistic.etherscan.io"},default:{name:"Etherscan",url:"https://optimistic.etherscan.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:4286263}}},Rmr={id:420,name:"Optimism Goerli",network:"optimism-goerli",nativeCurrency:{name:"Goerli Ether",symbol:"ETH",decimals:18},rpcUrls:{alchemy:{http:["https://opt-goerli.g.alchemy.com/v2"],webSocket:["wss://opt-goerli.g.alchemy.com/v2"]},infura:{http:["https://optimism-goerli.infura.io/v3"],webSocket:["wss://optimism-goerli.infura.io/ws/v3"]},default:{http:["https://goerli.optimism.io"]},public:{http:["https://goerli.optimism.io"]}},blockExplorers:{etherscan:{name:"Etherscan",url:"https://goerli-optimism.etherscan.io"},default:{name:"Etherscan",url:"https://goerli-optimism.etherscan.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:49461}},testnet:!0},Nmr={id:137,name:"Polygon",network:"matic",nativeCurrency:{name:"MATIC",symbol:"MATIC",decimals:18},rpcUrls:{alchemy:{http:["https://polygon-mainnet.g.alchemy.com/v2"],webSocket:["wss://polygon-mainnet.g.alchemy.com/v2"]},infura:{http:["https://polygon-mainnet.infura.io/v3"],webSocket:["wss://polygon-mainnet.infura.io/ws/v3"]},default:{http:["https://polygon-rpc.com"]},public:{http:["https://polygon-rpc.com"]}},blockExplorers:{etherscan:{name:"PolygonScan",url:"https://polygonscan.com"},default:{name:"PolygonScan",url:"https://polygonscan.com"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:25770160}}},Omr={id:80001,name:"Polygon Mumbai",network:"maticmum",nativeCurrency:{name:"MATIC",symbol:"MATIC",decimals:18},rpcUrls:{alchemy:{http:["https://polygon-mumbai.g.alchemy.com/v2"],webSocket:["wss://polygon-mumbai.g.alchemy.com/v2"]},infura:{http:["https://polygon-mumbai.infura.io/v3"],webSocket:["wss://polygon-mumbai.infura.io/ws/v3"]},default:{http:["https://matic-mumbai.chainstacklabs.com"]},public:{http:["https://matic-mumbai.chainstacklabs.com"]}},blockExplorers:{etherscan:{name:"PolygonScan",url:"https://mumbai.polygonscan.com"},default:{name:"PolygonScan",url:"https://mumbai.polygonscan.com"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:25770160}},testnet:!0},Nr;(function(r){r[r.Mainnet=1]="Mainnet",r[r.Goerli=5]="Goerli",r[r.Polygon=137]="Polygon",r[r.Mumbai=80001]="Mumbai",r[r.Fantom=250]="Fantom",r[r.FantomTestnet=4002]="FantomTestnet",r[r.Avalanche=43114]="Avalanche",r[r.AvalancheFujiTestnet=43113]="AvalancheFujiTestnet",r[r.Optimism=10]="Optimism",r[r.OptimismGoerli=420]="OptimismGoerli",r[r.Arbitrum=42161]="Arbitrum",r[r.ArbitrumGoerli=421613]="ArbitrumGoerli",r[r.BinanceSmartChainMainnet=56]="BinanceSmartChainMainnet",r[r.BinanceSmartChainTestnet=97]="BinanceSmartChainTestnet"})(Nr||(Nr={}));Nr.Mainnet,Nr.Goerli,Nr.Polygon,Nr.Mumbai,Nr.Fantom,Nr.FantomTestnet,Nr.Avalanche,Nr.AvalancheFujiTestnet,Nr.Optimism,Nr.OptimismGoerli,Nr.Arbitrum,Nr.ArbitrumGoerli,Nr.BinanceSmartChainMainnet,Nr.BinanceSmartChainTestnet;var Lmr="c6634ad2d97b74baf15ff556016830c251050e6c36b9da508ce3ec80095d3dc1";function Bmr(r){switch(r){case Nr.Mainnet:return"mainnet";case Nr.Goerli:return"goerli";case Nr.Polygon:return"polygon";case Nr.Mumbai:return"mumbai";case Nr.Avalanche:return"avalanche";case Nr.AvalancheFujiTestnet:return"avalanche-fuji";case Nr.Fantom:return"fantom";case Nr.FantomTestnet:return"fantom-testnet";case Nr.Arbitrum:return"arbitrum";case Nr.ArbitrumGoerli:return"arbitrum-goerli";case Nr.Optimism:return"optimism";case Nr.OptimismGoerli:return"optimism-goerli";case Nr.BinanceSmartChainMainnet:return"bsc";case Nr.BinanceSmartChainTestnet:return"bsc-testnet";default:throw new Error("Unsupported chain id")}}function qmr(r){return`https://${Bmr(r)}.rpc.thirdweb.com/${Lmr}`}function Du(r){let e=qmr(r.id);return{...r,rpcUrls:{...r.rpcUrls,default:{...r.rpcUrls.default,http:[e,...r.rpcUrls.default.http]},public:{...r.rpcUrls.public,http:[e,...r.rpcUrls.public?.http||[]]}}}}var tZe={[Nr.Mainnet]:Du(Imr),[Nr.Goerli]:Du(Mmr),[Nr.Polygon]:Du(Nmr),[Nr.Mumbai]:Du(Omr),[Nr.Avalanche]:Du(_mr),[Nr.AvalancheFujiTestnet]:Du(Cmr),[Nr.Fantom]:Du(Smr),[Nr.FantomTestnet]:Du(Amr),[Nr.Arbitrum]:Du(xmr),[Nr.ArbitrumGoerli]:Du(Tmr),[Nr.Optimism]:Du(Pmr),[Nr.OptimismGoerli]:Du(Rmr),[Nr.BinanceSmartChainMainnet]:Du(Emr),[Nr.BinanceSmartChainTestnet]:Du(kmr)},Dmr=Object.values(tZe),Fmr=["function isValidSignature(bytes32 _message, bytes _signature) public view returns (bytes4)"],Umr="0x1626ba7e",rZe=async(r,e,t,n)=>{let a=tZe[n]?.rpcUrls.default.http[0];if(!a)return!1;let i=new yx.ethers.providers.JsonRpcProvider(a),s=new yx.ethers.Contract(t,Fmr,i),c=yx.ethers.utils.hashMessage(r);try{return await s.isValidSignature(c,e)===Umr}catch{return!1}},nK=class extends wmr.default{constructor(){super(...arguments),eZe._defineProperty(this,"type","evm"),eZe._defineProperty(this,"signer",void 0)}async getAddress(){return(await this.getCachedSigner()).getAddress()}async getChainId(){return(await this.getCachedSigner()).getChainId()}async signMessage(e){return await(await this.getCachedSigner()).signMessage(e)}async verifySignature(e,t,n,a){let i=yx.ethers.utils.hashMessage(e),s=yx.ethers.utils.arrayify(i);if(yx.ethers.utils.recoverAddress(s,t)===n)return!0;if(a!==void 0)try{return await rZe(e,t,n,a||1)}catch{}return!1}async getCachedSigner(){if(this.signer)return this.signer;if(this.signer=await this.getSigner(),!this.signer)throw new Error("Unable to get a signer!");return this.signer}};qR.AbstractWallet=nK;qR.checkContractWalletSignature=rZe;qR.thirdwebChains=Dmr});var Ms=O((nZe,aK)=>{x();T();(function(r){if(typeof nZe=="object"&&typeof aK<"u")aK.exports=r();else if(typeof define=="function"&&define.amd)define([],r);else{var e;typeof window<"u"?e=window:typeof I<"u"?e=I:typeof self<"u"?e=self:e=this,e.localforage=r()}})(function(){var r,e,t;return function n(a,i,s){function c(f,w){if(!i[f]){if(!a[f]){var E=typeof Dp=="function"&&Dp;if(!w&&E)return E(f,!0);if(l)return l(f,!0);var k=new Error("Cannot find module '"+f+"'");throw k.code="MODULE_NOT_FOUND",k}var A=i[f]={exports:{}};a[f][0].call(A.exports,function(L){var q=a[f][1][L];return c(q||L)},A,A.exports,n,a,i,s)}return i[f].exports}for(var l=typeof Dp=="function"&&Dp,d=0;d"u"&&n(3);var E=Promise;function k(ie,xe){xe&&ie.then(function(z){xe(null,z)},function(z){xe(z)})}function A(ie,xe,z){typeof xe=="function"&&ie.then(xe),typeof z=="function"&&ie.catch(z)}function L(ie){return typeof ie!="string"&&(console.warn(ie+" used as a key, but it is not a string."),ie=String(ie)),ie}function q(){if(arguments.length&&typeof arguments[arguments.length-1]=="function")return arguments[arguments.length-1]}var U="local-forage-detect-blob-support",j=void 0,H={},G=Object.prototype.toString,te="readonly",K="readwrite";function ae(ie){for(var xe=ie.length,z=new ArrayBuffer(xe),Q=new Uint8Array(z),ee=0;ee=43)}}).catch(function(){return!1})}function V(ie){return typeof j=="boolean"?E.resolve(j):J(ie).then(function(xe){return j=xe,j})}function g(ie){var xe=H[ie.name],z={};z.promise=new E(function(Q,ee){z.resolve=Q,z.reject=ee}),xe.deferredOperations.push(z),xe.dbReady?xe.dbReady=xe.dbReady.then(function(){return z.promise}):xe.dbReady=z.promise}function o(ie){var xe=H[ie.name],z=xe.deferredOperations.pop();if(z)return z.resolve(),z.promise}function p(ie,xe){var z=H[ie.name],Q=z.deferredOperations.pop();if(Q)return Q.reject(xe),Q.promise}function y(ie,xe){return new E(function(z,Q){if(H[ie.name]=H[ie.name]||B(),ie.db)if(xe)g(ie),ie.db.close();else return z(ie.db);var ee=[ie.name];xe&&ee.push(ie.version);var re=d.open.apply(d,ee);xe&&(re.onupgradeneeded=function(ce){var he=re.result;try{he.createObjectStore(ie.storeName),ce.oldVersion<=1&&he.createObjectStore(U)}catch(Ee){if(Ee.name==="ConstraintError")console.warn('The database "'+ie.name+'" has been upgraded from version '+ce.oldVersion+" to version "+ce.newVersion+', but the storage "'+ie.storeName+'" already exists.');else throw Ee}}),re.onerror=function(ce){ce.preventDefault(),Q(re.error)},re.onsuccess=function(){var ce=re.result;ce.onversionchange=function(he){he.target.close()},z(ce),o(ie)}})}function h(ie){return y(ie,!1)}function v(ie){return y(ie,!0)}function _(ie,xe){if(!ie.db)return!0;var z=!ie.db.objectStoreNames.contains(ie.storeName),Q=ie.versionie.db.version;if(Q&&(ie.version!==xe&&console.warn('The database "'+ie.name+`" can't be downgraded from version `+ie.db.version+" to version "+ie.version+"."),ie.version=ie.db.version),ee||z){if(z){var re=ie.db.version+1;re>ie.version&&(ie.version=re)}return!0}return!1}function C(ie){return new E(function(xe,z){var Q=new FileReader;Q.onerror=z,Q.onloadend=function(ee){var re=btoa(ee.target.result||"");xe({__local_forage_encoded_blob:!0,data:re,type:ie.type})},Q.readAsBinaryString(ie)})}function m(ie){var xe=ae(atob(ie.data));return w([xe],{type:ie.type})}function u(ie){return ie&&ie.__local_forage_encoded_blob}function b(ie){var xe=this,z=xe._initReady().then(function(){var Q=H[xe._dbInfo.name];if(Q&&Q.dbReady)return Q.dbReady});return A(z,ie,ie),z}function R(ie){g(ie);for(var xe=H[ie.name],z=xe.forages,Q=0;Q0&&(!ie.db||re.name==="InvalidStateError"||re.name==="NotFoundError"))return E.resolve().then(function(){if(!ie.db||re.name==="NotFoundError"&&!ie.db.objectStoreNames.contains(ie.storeName)&&ie.version<=ie.db.version)return ie.db&&(ie.version=ie.db.version+1),v(ie)}).then(function(){return R(ie).then(function(){S(ie,xe,z,Q-1)})}).catch(z);z(re)}}function B(){return{forages:[],db:null,dbReady:null,deferredOperations:[]}}function Z(ie){var xe=this,z={db:null};if(ie)for(var Q in ie)z[Q]=ie[Q];var ee=H[z.name];ee||(ee=B(),H[z.name]=ee),ee.forages.push(xe),xe._initReady||(xe._initReady=xe.ready,xe.ready=b);var re=[];function ce(){return E.resolve()}for(var he=0;he>4,Ge[ee++]=(ce&15)<<4|he>>2,Ge[ee++]=(he&3)<<6|Ee&63;return Fe}function Re(ie){var xe=new Uint8Array(ie),z="",Q;for(Q=0;Q>2],z+=Pt[(xe[Q]&3)<<4|xe[Q+1]>>4],z+=Pt[(xe[Q+1]&15)<<2|xe[Q+2]>>6],z+=Pt[xe[Q+2]&63];return xe.length%3===2?z=z.substring(0,z.length-1)+"=":xe.length%3===1&&(z=z.substring(0,z.length-2)+"=="),z}function Ye(ie,xe){var z="";if(ie&&(z=Qe.call(ie)),ie&&(z==="[object ArrayBuffer]"||ie.buffer&&Qe.call(ie.buffer)==="[object ArrayBuffer]")){var Q,ee=At;ie instanceof ArrayBuffer?(Q=ie,ee+=Ve):(Q=ie.buffer,z==="[object Int8Array]"?ee+=Ie:z==="[object Uint8Array]"?ee+=Ze:z==="[object Uint8ClampedArray]"?ee+=Ut:z==="[object Int16Array]"?ee+=qe:z==="[object Uint16Array]"?ee+=Ht:z==="[object Int32Array]"?ee+=Xe:z==="[object Uint32Array]"?ee+=Ae:z==="[object Float32Array]"?ee+=Ke:z==="[object Float64Array]"?ee+=Gt:xe(new Error("Failed to get type for BinaryArray"))),xe(ee+Re(Q))}else if(z==="[object Blob]"){var re=new FileReader;re.onload=function(){var ce=Be+ie.type+"~"+Re(this.result);xe(At+St+ce)},re.readAsArrayBuffer(ie)}else try{xe(JSON.stringify(ie))}catch(ce){console.error("Couldn't convert value into a JSON string: ",ie),xe(null,ce)}}function Jt(ie){if(ie.substring(0,Me)!==At)return JSON.parse(ie);var xe=ie.substring(Pe),z=ie.substring(Me,Pe),Q;if(z===St&&ze.test(xe)){var ee=xe.match(ze);Q=ee[1],xe=xe.substring(ee[0].length)}var re=Zt(xe);switch(z){case Ve:return re;case St:return w([re],{type:Q});case Ie:return new Int8Array(re);case Ze:return new Uint8Array(re);case Ut:return new Uint8ClampedArray(re);case qe:return new Int16Array(re);case Ht:return new Uint16Array(re);case Xe:return new Int32Array(re);case Ae:return new Uint32Array(re);case Ke:return new Float32Array(re);case Gt:return new Float64Array(re);default:throw new Error("Unkown type: "+z)}}var Ne={serialize:Ye,deserialize:Jt,stringToBuffer:Zt,bufferToString:Re};function $e(ie,xe,z,Q){ie.executeSql("CREATE TABLE IF NOT EXISTS "+xe.storeName+" (id INTEGER PRIMARY KEY, key unique, value)",[],z,Q)}function Vt(ie){var xe=this,z={db:null};if(ie)for(var Q in ie)z[Q]=typeof ie[Q]!="string"?ie[Q].toString():ie[Q];var ee=new E(function(re,ce){try{z.db=openDatabase(z.name,String(z.version),z.description,z.size)}catch(he){return ce(he)}z.db.transaction(function(he){$e(he,z,function(){xe._dbInfo=z,re()},function(Ee,Fe){ce(Fe)})},ce)});return z.serializer=Ne,ee}function Se(ie,xe,z,Q,ee,re){ie.executeSql(z,Q,ee,function(ce,he){he.code===he.SYNTAX_ERR?ce.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?",[xe.storeName],function(Ee,Fe){Fe.rows.length?re(Ee,he):$e(Ee,xe,function(){Ee.executeSql(z,Q,ee,re)},re)},re):re(ce,he)},re)}function et(ie,xe){var z=this;ie=L(ie);var Q=new E(function(ee,re){z.ready().then(function(){var ce=z._dbInfo;ce.db.transaction(function(he){Se(he,ce,"SELECT * FROM "+ce.storeName+" WHERE key = ? LIMIT 1",[ie],function(Ee,Fe){var Ge=Fe.rows.length?Fe.rows.item(0).value:null;Ge&&(Ge=ce.serializer.deserialize(Ge)),ee(Ge)},function(Ee,Fe){re(Fe)})})}).catch(re)});return k(Q,xe),Q}function Rt(ie,xe){var z=this,Q=new E(function(ee,re){z.ready().then(function(){var ce=z._dbInfo;ce.db.transaction(function(he){Se(he,ce,"SELECT * FROM "+ce.storeName,[],function(Ee,Fe){for(var Ge=Fe.rows,ot=Ge.length,ut=0;ut0){ce(Le.apply(ee,[ie,Ee,z,Q-1]));return}he(ut)}})})}).catch(he)});return k(re,z),re}function tt(ie,xe,z){return Le.apply(this,[ie,xe,z,1])}function Kt(ie,xe){var z=this;ie=L(ie);var Q=new E(function(ee,re){z.ready().then(function(){var ce=z._dbInfo;ce.db.transaction(function(he){Se(he,ce,"DELETE FROM "+ce.storeName+" WHERE key = ?",[ie],function(){ee()},function(Ee,Fe){re(Fe)})})}).catch(re)});return k(Q,xe),Q}function De(ie){var xe=this,z=new E(function(Q,ee){xe.ready().then(function(){var re=xe._dbInfo;re.db.transaction(function(ce){Se(ce,re,"DELETE FROM "+re.storeName,[],function(){Q()},function(he,Ee){ee(Ee)})})}).catch(ee)});return k(z,ie),z}function rt(ie){var xe=this,z=new E(function(Q,ee){xe.ready().then(function(){var re=xe._dbInfo;re.db.transaction(function(ce){Se(ce,re,"SELECT COUNT(key) as c FROM "+re.storeName,[],function(he,Ee){var Fe=Ee.rows.item(0).c;Q(Fe)},function(he,Ee){ee(Ee)})})}).catch(ee)});return k(z,ie),z}function Qt(ie,xe){var z=this,Q=new E(function(ee,re){z.ready().then(function(){var ce=z._dbInfo;ce.db.transaction(function(he){Se(he,ce,"SELECT key FROM "+ce.storeName+" WHERE id = ? LIMIT 1",[ie+1],function(Ee,Fe){var Ge=Fe.rows.length?Fe.rows.item(0).key:null;ee(Ge)},function(Ee,Fe){re(Fe)})})}).catch(re)});return k(Q,xe),Q}function ke(ie){var xe=this,z=new E(function(Q,ee){xe.ready().then(function(){var re=xe._dbInfo;re.db.transaction(function(ce){Se(ce,re,"SELECT key FROM "+re.storeName,[],function(he,Ee){for(var Fe=[],Ge=0;Ge '__WebKitDatabaseInfoTable__'",[],function(ee,re){for(var ce=[],he=0;he0}function ir(ie){var xe=this,z={};if(ie)for(var Q in ie)z[Q]=ie[Q];return z.keyPrefix=rr(ie,xe._defaultConfig),nt()?(xe._dbInfo=z,z.serializer=Ne,E.resolve()):E.reject()}function je(ie){var xe=this,z=xe.ready().then(function(){for(var Q=xe._dbInfo.keyPrefix,ee=localStorage.length-1;ee>=0;ee--){var re=localStorage.key(ee);re.indexOf(Q)===0&&localStorage.removeItem(re)}});return k(z,ie),z}function at(ie,xe){var z=this;ie=L(ie);var Q=z.ready().then(function(){var ee=z._dbInfo,re=localStorage.getItem(ee.keyPrefix+ie);return re&&(re=ee.serializer.deserialize(re)),re});return k(Q,xe),Q}function Lr(ie,xe){var z=this,Q=z.ready().then(function(){for(var ee=z._dbInfo,re=ee.keyPrefix,ce=re.length,he=localStorage.length,Ee=1,Fe=0;Fe=0;ce--){var he=localStorage.key(ce);he.indexOf(re)===0&&localStorage.removeItem(he)}}):ee=E.reject("Invalid arguments"),k(ee,xe),ee}var Mr={_driver:"localStorageWrapper",_initStorage:ir,_support:st(),iterate:Lr,getItem:at,setItem:Sr,removeItem:kr,clear:je,length:Er,key:Wt,keys:jt,dropInstance:Ar},Kr=function(xe,z){return xe===z||typeof xe=="number"&&typeof z=="number"&&isNaN(xe)&&isNaN(z)},Qr=function(xe,z){for(var Q=xe.length,ee=0;ee"u"?"undefined":s(z))==="object"){if(this._ready)return new Error("Can't call config() after localforage has been used.");for(var Q in z){if(Q==="storeName"&&(z[Q]=z[Q].replace(/\W/g,"_")),Q==="version"&&typeof z[Q]!="number")return new Error("Database version must be a number.");this._config[Q]=z[Q]}return"driver"in z&&z.driver?this.setDriver(this._config.driver):!0}else return typeof z=="string"?this._config[z]:this._config},ie.prototype.defineDriver=function(z,Q,ee){var re=new E(function(ce,he){try{var Ee=z._driver,Fe=new Error("Custom driver not compliant; see https://mozilla.github.io/localForage/#definedriver");if(!z._driver){he(Fe);return}for(var Ge=Ur.concat("_initStorage"),ot=0,ut=Ge.length;ot{"use strict";x();T();var Wmr=Ms();function jmr(r){return r&&r.__esModule?r:{default:r}}var oK=jmr(Wmr);function gx(r){return`tw_${r}`}var iK;function zmr(){return iK||(iK=oK.default.createInstance({name:gx("connectors"),storeName:gx("connectors"),version:1})),iK}var sK;function Hmr(){return sK||(sK=oK.default.createInstance({name:gx("coordinator"),storeName:gx("coordinator"),version:1})),sK}var aZe=new Map;function Vmr(r){let e=aZe.get(r);return e||(e=oK.default.createInstance({name:gx(`wallet:${r}`),storeName:gx(`wallet_${r}`),version:1}),aZe.set(r,e)),e}DR.getConnectorStorage=zmr;DR.getCoordinatorStorage=Hmr;DR.getWalletStorage=Vmr});var wx=O(uK=>{"use strict";x();T();Object.defineProperty(uK,"__esModule",{value:!0});var FR=Jc(),vx=_d(),iZe=sy(),sZe=mm();_t();As();Ms();var bx=new WeakMap,cK=class extends iZe.AbstractWallet{constructor(e,t){super(),vx._classPrivateFieldInitSpec(this,bx,{writable:!0,value:void 0}),FR._defineProperty(this,"coordinatorStorage",void 0),FR._defineProperty(this,"walletStorage",void 0),FR._defineProperty(this,"chains",void 0),FR._defineProperty(this,"options",void 0),vx._classPrivateFieldSet(this,bx,e),this.options=t,this.chains=t.chains||iZe.thirdwebChains,this.coordinatorStorage=sZe.getCoordinatorStorage(),this.walletStorage=sZe.getWalletStorage(e),t.shouldAutoConnect!==!1&&this.autoConnect()}async autoConnect(){if(await this.coordinatorStorage.getItem("lastConnectedWallet")===vx._classPrivateFieldGet(this,bx)){let t=await this.walletStorage.getItem("lasConnectedParams"),n;try{n=JSON.parse(t)}catch{n=void 0}if(await(await this.getConnector()).isConnected())return await this.connect(n)}}async connect(e){let t=await this.getConnector();t.on("connect",a=>{this.coordinatorStorage.setItem("lastConnectedWallet",vx._classPrivateFieldGet(this,bx)),this.emit("connect",{address:a.account,chainId:a.chain?.id}),a.chain?.id&&this.walletStorage.setItem("lastConnectedChain",a.chain?.id)}),t.on("change",a=>{this.emit("change",{address:a.account,chainId:a.chain?.id}),a.chain?.id&&this.walletStorage.setItem("lastConnectedChain",a.chain?.id)}),t.on("message",a=>this.emit("message",a)),t.on("disconnect",()=>this.emit("disconnect")),t.on("error",a=>this.emit("error",a));let n=await t.connect(e);try{await this.coordinatorStorage.setItem("lastConnectedWallet",vx._classPrivateFieldGet(this,bx))}catch{}return n}async getSigner(){let e=await this.getConnector();if(!e)throw new Error("Wallet not connected");return await e.getSigner()}async disconnect(){let e=await this.getConnector();e&&(e.removeAllListeners(),await e.disconnect(),await this.coordinatorStorage.getItem("lastConnectedWallet")===vx._classPrivateFieldGet(this,bx)&&await this.coordinatorStorage.removeItem("lastConnectedWallet"))}async switchChain(e){let t=await this.getConnector();if(!t)throw new Error("Wallet not connected");if(!t.switchChain)throw new Error("Wallet does not support switching chains");return await t.switchChain(e)}};uK.AbstractBrowserWallet=cK});var dK=O(lK=>{"use strict";x();T();var Gmr=_d();function Zmr(r,e){Gmr._checkPrivateRedeclaration(r,e),e.add(r)}function Jmr(r,e,t){if(!e.has(r))throw new TypeError("attempted to get private field on non-instance");return t}lK._classPrivateMethodGet=Jmr;lK._classPrivateMethodInitSpec=Zmr});var xx,Tx,oZe=vt(()=>{x();T();xx={id:5,network:"goerli",name:"Goerli",nativeCurrency:{name:"Goerli Ether",symbol:"ETH",decimals:18},rpcUrls:{alchemy:{http:["https://eth-goerli.g.alchemy.com/v2"],webSocket:["wss://eth-goerli.g.alchemy.com/v2"]},infura:{http:["https://goerli.infura.io/v3"],webSocket:["wss://goerli.infura.io/ws/v3"]},default:{http:["https://rpc.ankr.com/eth_goerli"]},public:{http:["https://rpc.ankr.com/eth_goerli"]}},blockExplorers:{etherscan:{name:"Etherscan",url:"https://goerli.etherscan.io"},default:{name:"Etherscan",url:"https://goerli.etherscan.io"}},contracts:{ensRegistry:{address:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:6507670}},testnet:!0},Tx={id:1,network:"homestead",name:"Ethereum",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{alchemy:{http:["https://eth-mainnet.g.alchemy.com/v2"],webSocket:["wss://eth-mainnet.g.alchemy.com/v2"]},infura:{http:["https://mainnet.infura.io/v3"],webSocket:["wss://mainnet.infura.io/ws/v3"]},default:{http:["https://cloudflare-eth.com"]},public:{http:["https://cloudflare-eth.com"]}},blockExplorers:{etherscan:{name:"Etherscan",url:"https://etherscan.io"},default:{name:"Etherscan",url:"https://etherscan.io"}},contracts:{ensRegistry:{address:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:14353601}}}});var pK=vt(()=>{x();T();oZe()});var hK,UR,WR,oC,cZe,uZe=vt(()=>{x();T();hK=(r,e,t)=>{if(!e.has(r))throw TypeError("Cannot "+t)},UR=(r,e,t)=>(hK(r,e,"read from private field"),t?t.call(r):e.get(r)),WR=(r,e,t)=>{if(e.has(r))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(r):e.set(r,t)},oC=(r,e,t,n)=>(hK(r,e,"write to private field"),n?n.call(r,t):e.set(r,t),t),cZe=(r,e,t)=>(hK(r,e,"access private method"),t)});var lZe=vt(()=>{x();T();pK()});var mK=O((_pn,fK)=>{"use strict";x();T();var k0r=Object.prototype.hasOwnProperty,Qc="~";function cC(){}Object.create&&(cC.prototype=Object.create(null),new cC().__proto__||(Qc=!1));function S0r(r,e,t){this.fn=r,this.context=e,this.once=t||!1}function dZe(r,e,t,n,a){if(typeof t!="function")throw new TypeError("The listener must be a function");var i=new S0r(t,n||r,a),s=Qc?Qc+e:e;return r._events[s]?r._events[s].fn?r._events[s]=[r._events[s],i]:r._events[s].push(i):(r._events[s]=i,r._eventsCount++),r}function jR(r,e){--r._eventsCount===0?r._events=new cC:delete r._events[e]}function xc(){this._events=new cC,this._eventsCount=0}xc.prototype.eventNames=function(){var e=[],t,n;if(this._eventsCount===0)return e;for(n in t=this._events)k0r.call(t,n)&&e.push(Qc?n.slice(1):n);return Object.getOwnPropertySymbols?e.concat(Object.getOwnPropertySymbols(t)):e};xc.prototype.listeners=function(e){var t=Qc?Qc+e:e,n=this._events[t];if(!n)return[];if(n.fn)return[n.fn];for(var a=0,i=n.length,s=new Array(i);a{x();T();lZe();hZe=cr(mK(),1),A0r=Object.defineProperty,M0r=(r,e,t)=>e in r?A0r(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,Zh=(r,e,t)=>(M0r(r,typeof e!="symbol"?e+"":e,t),t),pZe=(r,e,t)=>{if(!e.has(r))throw TypeError("Cannot "+t)},yK=(r,e,t)=>(pZe(r,e,"read from private field"),t?t.call(r):e.get(r)),gK=(r,e,t)=>{if(e.has(r))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(r):e.set(r,t)},zR=(r,e,t,n)=>(pZe(r,e,"write to private field"),n?n.call(r,t):e.set(r,t),t),_x=class extends hZe.default{constructor({chains:r=[Tx,xx],options:e}){super(),Zh(this,"chains"),Zh(this,"options"),this.chains=r,this.options=e}getBlockExplorerUrls(r){let{default:e,...t}=r.blockExplorers??{};if(e)return[e.url,...Object.values(t).map(n=>n.url)]}isChainUnsupported(r){return!this.chains.some(e=>e.id===r)}}});var fZe=vt(()=>{x();T();vK()});function I0r(r){if(!r)return"Injected";let e=t=>{if(t.isAvalanche)return"Core Wallet";if(t.isBitKeep)return"BitKeep";if(t.isBraveWallet)return"Brave Wallet";if(t.isCoinbaseWallet)return"Coinbase Wallet";if(t.isExodus)return"Exodus";if(t.isFrame)return"Frame";if(t.isKuCoinWallet)return"KuCoin Wallet";if(t.isMathWallet)return"MathWallet";if(t.isOneInchIOSWallet||t.isOneInchAndroidWallet)return"1inch Wallet";if(t.isOpera)return"Opera";if(t.isPortal)return"Ripio Portal";if(t.isRainbow)return"Rainbow";if(t.isTally)return"Tally";if(t.isTokenPocket)return"TokenPocket";if(t.isTokenary)return"Tokenary";if(t.isTrust||t.isTrustWallet)return"Trust Wallet";if(t.isMetaMask)return"MetaMask"};if(r.providers?.length){let t=new Set,n=1;for(let i of r.providers){let s=e(i);s||(s=`Unknown Wallet #${n}`,n+=1),t.add(s)}let a=[...t];return a.length?a:a[0]??"Injected"}return e(r)??"Injected"}var mZe,Cx,HR,uC,Vv,yZe=vt(()=>{x();T();vK();Cd();mZe=cr(_t(),1),Cx=cr(_i(),1);Vv=class extends _x{constructor({chains:r,options:e}={}){let t={shimDisconnect:!0,shimChainChangedDisconnect:!0,getProvider:()=>typeof window<"u"?window.ethereum:void 0,...e};super({chains:r,options:t}),Zh(this,"id"),Zh(this,"name"),Zh(this,"ready"),gK(this,HR,void 0),gK(this,uC,void 0),Zh(this,"shimDisconnectKey","injected.shimDisconnect"),Zh(this,"onAccountsChanged",a=>{a.length===0?this.emit("disconnect"):this.emit("change",{account:(0,Cx.getAddress)(a[0])})}),Zh(this,"onChainChanged",a=>{let i=Ex(a),s=this.isChainUnsupported(i);this.emit("change",{chain:{id:i,unsupported:s}})}),Zh(this,"onDisconnect",()=>{if(this.options.shimChainChangedDisconnect&&yK(this,uC)){zR(this,uC,!1);return}this.emit("disconnect"),this.options.shimDisconnect&&ri().storage?.removeItem(this.shimDisconnectKey)});let n=t.getProvider();if(typeof t.name=="string")this.name=t.name;else if(n){let a=I0r(n);t.name?this.name=t.name(a):typeof a=="string"?this.name=a:this.name=a[0]}else this.name="Injected";this.id="injected",this.ready=!!n}async connect({chainId:r}={}){try{let e=await this.getProvider();if(!e)throw new Tc;e.on&&(e.on("accountsChanged",this.onAccountsChanged),e.on("chainChanged",this.onChainChanged),e.on("disconnect",this.onDisconnect)),this.emit("message",{type:"connecting"});let t=await e.request({method:"eth_requestAccounts"}),n=(0,Cx.getAddress)(t[0]),a=await this.getChainId(),i=this.isChainUnsupported(a);return r&&a!==r&&(a=(await this.switchChain(r)).id,i=this.isChainUnsupported(a)),this.options.shimDisconnect&&ri().storage?.setItem(this.shimDisconnectKey,!0),{account:n,chain:{id:a,unsupported:i},provider:e}}catch(e){throw this.isUserRejectedRequestError(e)?new ym(e):e.code===-32002?new GR(e):e}}async disconnect(){let r=await this.getProvider();!r?.removeListener||(r.removeListener("accountsChanged",this.onAccountsChanged),r.removeListener("chainChanged",this.onChainChanged),r.removeListener("disconnect",this.onDisconnect),this.options.shimDisconnect&&ri().storage?.removeItem(this.shimDisconnectKey))}async getAccount(){let r=await this.getProvider();if(!r)throw new Tc;let e=await r.request({method:"eth_accounts"});return(0,Cx.getAddress)(e[0])}async getChainId(){let r=await this.getProvider();if(!r)throw new Tc;return r.request({method:"eth_chainId"}).then(Ex)}async getProvider(){let r=this.options.getProvider();return r&&zR(this,HR,r),yK(this,HR)}async getSigner({chainId:r}={}){let[e,t]=await Promise.all([this.getProvider(),this.getAccount()]);return new mZe.providers.Web3Provider(e,r).getSigner(t)}async isAuthorized(){try{if(this.options.shimDisconnect&&!ri().storage?.getItem(this.shimDisconnectKey))return!1;if(!await this.getProvider())throw new Tc;return!!await this.getAccount()}catch{return!1}}async switchChain(r){this.options.shimChainChangedDisconnect&&zR(this,uC,!0);let e=await this.getProvider();if(!e)throw new Tc;let t=(0,Cx.hexValue)(r);try{return await e.request({method:"wallet_switchEthereumChain",params:[{chainId:t}]}),this.chains.find(n=>n.id===r)??{id:r,name:`Chain ${t}`,network:`${t}`,nativeCurrency:{name:"Ether",decimals:18,symbol:"ETH"},rpcUrls:{default:{http:[""]},public:{http:[""]}}}}catch(n){let a=this.chains.find(i=>i.id===r);if(!a)throw new lC({chainId:r,connectorId:this.id});if(n.code===4902||n?.data?.originalError?.code===4902)try{return await e.request({method:"wallet_addEthereumChain",params:[{chainId:t,chainName:a.name,nativeCurrency:a.nativeCurrency,rpcUrls:[a.rpcUrls.public?.http[0]??""],blockExplorerUrls:this.getBlockExplorerUrls(a)}]}),a}catch(i){throw this.isUserRejectedRequestError(i)?new ym(n):new VR}throw this.isUserRejectedRequestError(n)?new ym(n):new ZR(n)}}async watchAsset({address:r,decimals:e=18,image:t,symbol:n}){let a=await this.getProvider();if(!a)throw new Tc;return a.request({method:"wallet_watchAsset",params:{type:"ERC20",options:{address:r,decimals:e,image:t,symbol:n}}})}isUserRejectedRequestError(r){return r.code===4001}};HR=new WeakMap;uC=new WeakMap});var bK=vt(()=>{x();T();yZe()});var wK=vt(()=>{x();T();fZe();bK()});function R0r(r){let e;try{e=r()}catch{return}return{getItem:n=>{var a;let i=c=>c===null?null:JSON.parse(c),s=(a=e.getItem(n))!=null?a:null;return s instanceof Promise?s.then(i):i(s)},setItem:(n,a)=>e.setItem(n,JSON.stringify(a)),removeItem:n=>e.removeItem(n)}}var gZe,P0r,vZe,dC,N0r,O0r,L0r,bZe,wZe=vt(()=>{x();T();gZe={},P0r=r=>(e,t,n)=>{let a=n.subscribe;return n.subscribe=(s,c,l)=>{let d=s;if(c){let f=l?.equalityFn||Object.is,w=s(n.getState());d=E=>{let k=s(E);if(!f(w,k)){let A=w;c(w=k,A)}},l?.fireImmediately&&c(w,w)}return a(d)},r(e,t,n)},vZe=P0r;dC=r=>e=>{try{let t=r(e);return t instanceof Promise?t:{then(n){return dC(n)(t)},catch(n){return this}}}catch(t){return{then(n){return this},catch(n){return dC(n)(t)}}}},N0r=(r,e)=>(t,n,a)=>{let i={getStorage:()=>localStorage,serialize:JSON.stringify,deserialize:JSON.parse,partialize:q=>q,version:0,merge:(q,U)=>({...U,...q}),...e},s=!1,c=new Set,l=new Set,d;try{d=i.getStorage()}catch{}if(!d)return r((...q)=>{console.warn(`[zustand persist middleware] Unable to update item '${i.name}', the given storage is currently unavailable.`),t(...q)},n,a);let f=dC(i.serialize),w=()=>{let q=i.partialize({...n()}),U,j=f({state:q,version:i.version}).then(H=>d.setItem(i.name,H)).catch(H=>{U=H});if(U)throw U;return j},E=a.setState;a.setState=(q,U)=>{E(q,U),w()};let k=r((...q)=>{t(...q),w()},n,a),A,L=()=>{var q;if(!d)return;s=!1,c.forEach(j=>j(n()));let U=((q=i.onRehydrateStorage)==null?void 0:q.call(i,n()))||void 0;return dC(d.getItem.bind(d))(i.name).then(j=>{if(j)return i.deserialize(j)}).then(j=>{if(j)if(typeof j.version=="number"&&j.version!==i.version){if(i.migrate)return i.migrate(j.state,j.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return j.state}).then(j=>{var H;return A=i.merge(j,(H=n())!=null?H:k),t(A,!0),w()}).then(()=>{U?.(A,void 0),s=!0,l.forEach(j=>j(A))}).catch(j=>{U?.(void 0,j)})};return a.persist={setOptions:q=>{i={...i,...q},q.getStorage&&(d=q.getStorage())},clearStorage:()=>{d?.removeItem(i.name)},getOptions:()=>i,rehydrate:()=>L(),hasHydrated:()=>s,onHydrate:q=>(c.add(q),()=>{c.delete(q)}),onFinishHydration:q=>(l.add(q),()=>{l.delete(q)})},L(),A||k},O0r=(r,e)=>(t,n,a)=>{let i={storage:R0r(()=>localStorage),partialize:L=>L,version:0,merge:(L,q)=>({...q,...L}),...e},s=!1,c=new Set,l=new Set,d=i.storage;if(!d)return r((...L)=>{console.warn(`[zustand persist middleware] Unable to update item '${i.name}', the given storage is currently unavailable.`),t(...L)},n,a);let f=()=>{let L=i.partialize({...n()});return d.setItem(i.name,{state:L,version:i.version})},w=a.setState;a.setState=(L,q)=>{w(L,q),f()};let E=r((...L)=>{t(...L),f()},n,a),k,A=()=>{var L;if(!d)return;s=!1,c.forEach(U=>U(n()));let q=((L=i.onRehydrateStorage)==null?void 0:L.call(i,n()))||void 0;return dC(d.getItem.bind(d))(i.name).then(U=>{if(U)if(typeof U.version=="number"&&U.version!==i.version){if(i.migrate)return i.migrate(U.state,U.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return U.state}).then(U=>{var j;return k=i.merge(U,(j=n())!=null?j:E),t(k,!0),f()}).then(()=>{q?.(k,void 0),s=!0,l.forEach(U=>U(k))}).catch(U=>{q?.(void 0,U)})};return a.persist={setOptions:L=>{i={...i,...L},L.storage&&(d=L.storage)},clearStorage:()=>{d?.removeItem(i.name)},getOptions:()=>i,rehydrate:()=>A(),hasHydrated:()=>s,onHydrate:L=>(c.add(L),()=>{c.delete(L)}),onFinishHydration:L=>(l.add(L),()=>{l.delete(L)})},A(),k||E},L0r=(r,e)=>"getStorage"in e||"serialize"in e||"deserialize"in e?((gZe.env&&gZe.env.MODE)!=="production"&&console.warn("[DEPRECATED] `getStorage`, `serialize` and `deserialize` options are deprecated. Please use `storage` option instead."),N0r(r,e)):O0r(r,e),bZe=L0r});var TZe,xZe,_Ze,CZe=vt(()=>{x();T();TZe={},xZe=r=>{let e,t=new Set,n=(l,d)=>{let f=typeof l=="function"?l(e):l;if(!Object.is(f,e)){let w=e;e=d??typeof f!="object"?f:Object.assign({},e,f),t.forEach(E=>E(e,w))}},a=()=>e,c={setState:n,getState:a,subscribe:l=>(t.add(l),()=>t.delete(l)),destroy:()=>{(TZe.env&&TZe.env.MODE)!=="production"&&console.warn("[DEPRECATED] The destroy method will be unsupported in the future version. You should use unsubscribe function returned by subscribe. Everything will be garbage collected if store is garbage collected."),t.clear()}};return e=r(n,a,c),c},_Ze=r=>r?xZe(r):xZe});function Ed(r,e){if(Object.is(r,e))return!0;if(typeof r!="object"||r===null||typeof e!="object"||e===null)return!1;if(r instanceof Map&&e instanceof Map){if(r.size!==e.size)return!1;for(let[n,a]of r)if(!Object.is(a,e.get(n)))return!1;return!0}if(r instanceof Set&&e instanceof Set){if(r.size!==e.size)return!1;for(let n of r)if(!e.has(n))return!1;return!0}let t=Object.keys(r);if(t.length!==Object.keys(e).length)return!1;for(let n=0;n{x();T()});function MZe(r,e,{minQuorum:t=1,pollingInterval:n=4e3,targetQuorum:a=1,stallTimeout:i}={}){if(!r.length)throw new Error("must have at least one chain");if(ak===d.id)||(s=[...s,E.chain]),c[d.id]=[...c[d.id]||[],E.provider],E.webSocketProvider&&(l[d.id]=[...l[d.id]||[],E.webSocketProvider]))}if(!f)throw new Error([`Could not find valid provider configuration for chain "${d.name}". -`,"You may need to add `jsonRpcProvider` to `configureChains` with the chain's RPC URLs.","Read more: https://wagmi.sh/react/providers/jsonRpc"].join(` -`))}return{chains:s,provider:({chainId:d})=>{let f=s.find(k=>k.id===d)??r[0],w=c[f.id];if(!w||!w[0])throw new Error(`No providers configured for chain "${f.id}"`);let E;return w.length===1?E=w[0]():E=IZe(a,t,w,{stallTimeout:i}),f.id===42220&&(E.formatter.formats.block={...E.formatter.formats.block,difficulty:()=>0,gasLimit:()=>0}),Object.assign(E,{chains:s,pollingInterval:n})},webSocketProvider:({chainId:d})=>{let f=s.find(k=>k.id===d)??r[0],w=l[f.id];if(!w)return;let E=w[0]?.();return E&&f.id===42220&&(E.formatter.formats.block={...E.formatter.formats.block,difficulty:()=>0,gasLimit:()=>0}),Object.assign(E||{},{chains:s})}}}function IZe(r,e,t,{stallTimeout:n}){try{return new AZe.providers.FallbackProvider(t.map((a,i)=>{let s=a();return{provider:s,priority:s.priority??i,stallTimeout:s.stallTimeout??n,weight:s.weight}}),r)}catch(a){if(a?.message?.includes("quorum will always fail; larger than total weight")){if(r===e)throw a;return IZe(r-1,e,t,{stallTimeout:n})}throw a}}function gC({chainId:r,signer:e}){let{chain:t,chains:n}=nN(),a=t?.id;if(a&&r!==a)throw new qK({activeChain:n.find(i=>i.id===a)?.name??`Chain ${a}`,targetChain:n.find(i=>i.id===r)?.name??`Chain ${r}`});if(e){let i=e.provider?.network?.chainId;if(i&&r!==i){let s=ri().connector;throw new lC({chainId:r,connectorId:s?.id??"unknown"})}}}function B0r(r,e=0){let t;return function(...n){if(!e)return r(...n);t&&clearTimeout(t),t=setTimeout(function(){t=null,r(...n)},e)}}function KR(r,e){if(r===e)return!0;if(r&&e&&typeof r=="object"&&typeof e=="object"){if(r.constructor!==e.constructor)return!1;let t,n;if(Array.isArray(r)&&Array.isArray(e)){if(t=r.length,t!=e.length)return!1;for(n=t;n--!==0;)if(!KR(r[n],e[n]))return!1;return!0}if(r.valueOf!==Object.prototype.valueOf)return r.valueOf()===e.valueOf();if(r.toString!==Object.prototype.toString)return r.toString()===e.toString();let a=Object.keys(r);if(t=a.length,t!==Object.keys(e).length)return!1;for(n=t;n--!==0;)if(!Object.prototype.hasOwnProperty.call(e,a[n]))return!1;for(n=t;n--!==0;){let i=a[n];if(i&&!KR(r[i],e[i]))return!1}return!0}return r!==r&&e!==e}function EK(r){let e=JSON.parse(r);return xK(e,{find:n=>n.type==="BigNumber",replace:n=>PZe.BigNumber.from(n.hex)})}function QR({contract:r,functionName:e,args:t=[]}){if(e in r.functions)return e;let n=t?.length??0,a=Object.keys(r.functions).filter(i=>i.startsWith(`${e}(`)).map(i=>({name:i,fragment:YR.FunctionFragment.fromString(i)})).filter(i=>n===i.fragment.inputs.length);for(let i of a)if(t.every((c,l)=>{let d=i.fragment.inputs[l];return TK(c,d)}))return i.name;return e}function TK(r,e){let t=typeof r,n=e.type;switch(n){case"address":return(0,YR.isAddress)(r);case"bool":return t==="boolean";case"function":return t==="string";case"string":return t==="string";default:return n==="tuple"&&"components"in e?Object.values(e.components).every((a,i)=>TK(Object.values(r)[i],a)):/^u?int(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/.test(n)?t==="number"||t==="bigint"||RZe.BigNumber.isBigNumber(r):/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/.test(n)?t==="string"||r instanceof Uint8Array:/[a-z]+[1-9]{0,3}(\[[0-9]{0,}\])+$/.test(n)?Array.isArray(r)&&r.every(a=>TK(a,{...e,type:n.replace(/(\[[0-9]{0,}\])$/,"")})):!1}}function Sx(r){ri()?.config.logger?.warn?.(r)}function kK(r){try{let e=r.abi.filter(t=>t.type==="function"&&t.name===r.functionName);if(e.length===0)throw new Error("Invalid ABI");return e}catch{let t=NZe.Contract.getInterface(r.abi).format(OZe.FormatTypes.full);return(Array.isArray(t)?t:[t]).filter(a=>a.includes(r.functionName))}}function Ex(r){return typeof r=="string"?Number.parseInt(r,r.trim().substring(0,2)==="0x"?16:10):typeof r=="bigint"?Number(r):r}function q0r(r){return Array.isArray(r)&&Object.keys(r).length===r.length}function BZe({abi:r,data:e,functionName:t}){if(e&&q0r(e)){let n=LZe.Contract.getInterface(r),i=(n.getFunction(t).outputs?.length||0)>1,s=i?e:[e],c=n.encodeFunctionResult(t,s),l=n.decodeFunctionResult(t,c);return i?l:l[0]}return e}function EZe(r,e){return r.slice(0,e).join(".")||"."}function kZe(r,e){let{length:t}=r;for(let n=0;n{let s=n.getItem(`${e}.${a}`);try{return s?r(s):i}catch(c){return console.warn(c),i}},setItem:(a,i)=>{if(i===null)n.removeItem(`${e}.${a}`);else try{n.setItem(`${e}.${a}`,t(i))}catch(s){console.error(s)}},removeItem:a=>n.removeItem(`${e}.${a}`)}}function DZe(r){let e=new IK(r);return CK=e,e}function ri(){if(!CK)throw new Error("No wagmi client found. Ensure you have set up a client: https://wagmi.sh/react/client");return CK}async function FZe({chainId:r,connector:e}){let t=ri(),n=t.connector;if(n&&e.id===n.id)throw new DK;try{t.setState(i=>({...i,status:"connecting"}));let a=await e.connect({chainId:r});return t.setLastUsedConnector(e.id),t.setState(i=>({...i,connector:e,chains:e?.chains,data:a,status:"connected"})),t.storage.setItem("connected",!0),{...a,connector:e}}catch(a){throw t.setState(i=>({...i,status:i.connector?"connected":"disconnected"})),a}}async function UZe(){let r=ri();r.connector&&await r.connector.disconnect(),r.clearState(),r.storage.removeItem("connected")}async function VZe({address:r,chainId:e,formatUnits:t="ether"}){async function n({abi:a}){let i={address:r,abi:a,chainId:e},[s,c,l,d]=await vC({allowFailure:!1,contracts:[{...i,functionName:"decimals"},{...i,functionName:"name"},{...i,functionName:"symbol"},{...i,functionName:"totalSupply"}]});return{address:r,decimals:s,name:c,symbol:l,totalSupply:{formatted:(0,fC.formatUnits)(d,t),value:d}}}try{return await n({abi:$R})}catch(a){if(a instanceof Mx){let{name:i,symbol:s,...c}=await n({abi:WZe});return{name:(0,fC.parseBytes32String)(i),symbol:(0,fC.parseBytes32String)(s),...c}}throw a}}function oy({address:r,abi:e,signerOrProvider:t}){return new GZe.Contract(r,e,t)}async function PK({abi:r,address:e,chainId:t,functionName:n,overrides:a,signer:i,...s}){let c=i??await gm({chainId:t});if(!c)throw new Tc;t&&gC({chainId:t,signer:c});let l=oy({address:e,abi:r,signerOrProvider:c}),d=s.args,f=QR({contract:l,functionName:n,args:d}),w=l.populateTransaction[f];if(!w)throw new sN({address:e,functionName:f});let E=[...d??[],...a?[a]:[]],k=await w(...E),A=k.gasLimit||await c.estimateGas(k);return{abi:kK({abi:r,functionName:n}),address:e,chainId:t,functionName:n,mode:"prepared",request:{...k,gasLimit:A}}}function Is({chainId:r}={}){let e=ri();return r&&e.getProvider({chainId:r})||e.provider}function Ax({chainId:r}={}){let e=ri();return r&&e.getWebSocketProvider({chainId:r})||e.webSocketProvider}function ZZe(r,e){let t=ri(),n=async()=>e(Is(r));return t.subscribe(({provider:i})=>i,n)}function JZe(r,e){let t=ri(),n=async()=>e(Ax(r));return t.subscribe(({webSocketProvider:i})=>i,n)}async function eN({allowFailure:r=!0,chainId:e,contracts:t,overrides:n}){let a=Is({chainId:e});if(!a.chains)throw new XR;let i=a.chains.find(f=>f.id===e)||a.chains[0];if(!i)throw new XR;if(!i?.contracts?.multicall3)throw new mC({chain:i});if(typeof n?.blockTag=="number"&&n?.blockTag<(i.contracts.multicall3.blockCreated??0))throw new mC({blockNumber:n?.blockTag,chain:i});let s=oy({address:i.contracts.multicall3.address,abi:F0r,signerOrProvider:a}),l=[t.map(({address:f,abi:w,functionName:E,...k})=>{let{args:A}=k||{},L=oy({address:f,abi:w}),q=A??[],U=QR({contract:L,functionName:E,args:A});try{L[U]||Sx(`"${U}" is not in the interface for contract "${f}"`);let H=L.interface.encodeFunctionData(U,q);return{target:f,allowFailure:r,callData:H}}catch(j){if(!r)throw j;return{target:f,allowFailure:r,callData:"0x"}}}),...n?[n]:[]];return(await s.aggregate3(...l)).map(({returnData:f,success:w},E)=>{let{address:k,abi:A,functionName:L,...q}=t[E],U=oy({address:k,abi:A}),j=q.args,H=QR({contract:U,functionName:L,args:j});if(!w){let G;try{U.interface.decodeFunctionResult(H,f)}catch(te){if(G=new yC({address:k,args:j,chainId:i.id,functionName:H,errorMessage:te.message}),!r)throw G;Sx(G.message)}return null}if(f==="0x"){let G=new oN({address:k,args:j,chainId:i.id,functionName:H});if(!r)throw G;return Sx(G.message),null}try{let G=U.interface.decodeFunctionResult(H,f);return Array.isArray(G)&&G.length===1?G[0]:G}catch(G){let te=new Mx({address:k,args:j,chainId:i.id,functionName:H,errorMessage:G.message});if(!r)throw te;return Sx(te.message),null}})}async function tN({address:r,chainId:e,abi:t,functionName:n,overrides:a,...i}){let s=Is({chainId:e}),c=oy({address:r,abi:t,signerOrProvider:s}),l=i.args,d=QR({contract:c,functionName:n,args:l}),f=c[d];if(!f)throw new sN({address:r,functionName:d});let w=[...l??[],...a?[a]:[]];return f?.(...w)}async function vC({allowFailure:r=!0,contracts:e,overrides:t}){try{let n=Is(),a=e.reduce((l,d,f)=>{let w=d.chainId??n.network.chainId;return{...l,[w]:[...l[w]||[],{contract:d,index:f}]}},{}),i=()=>Object.entries(a).map(([l,d])=>eN({allowFailure:r,chainId:parseInt(l),contracts:d.map(({contract:f})=>f),overrides:t})),s;r?s=(await Promise.allSettled(i())).map(l=>{if(l.status==="fulfilled")return l.value;if(l.reason instanceof mC)throw Sx(l.reason.message),l.reason;return null}).flat():s=(await Promise.all(i())).flat();let c=Object.values(a).map(l=>l.map(({index:d})=>d)).flat();return s.reduce((l,d,f)=>(l&&(l[c[f]]=d),l),[])}catch(n){if(n instanceof Mx||n instanceof oN||n instanceof yC)throw n;let a=()=>e.map(i=>tN({...i,overrides:t}));return r?(await Promise.allSettled(a())).map((i,s)=>{if(i.status==="fulfilled")return i.value;let{address:c,args:l,chainId:d,functionName:f}=e[s],w=new yC({address:c,functionName:f,chainId:d??1,args:l,errorMessage:i.reason});return Sx(w.message),null}):await Promise.all(a())}}function KZe({address:r,abi:e,chainId:t,eventName:n,once:a},i){let s=(...w)=>i(...w),c,l=async()=>{c&&c?.off(n,s);let w=Ax({chainId:t})||Is({chainId:t});c=oy({address:r,abi:e,signerOrProvider:w}),a?c.once(n,s):c.on(n,s)};l();let f=ri().subscribe(({provider:w,webSocketProvider:E})=>({provider:w,webSocketProvider:E}),l,{equalityFn:Ed});return()=>{c?.off(n,s),f()}}async function rN({chainId:r}={}){return await Is({chainId:r}).getBlockNumber()}function bC(r,e){let t=B0r(e,1),n,a=d=>{n&&n?.off("block",t),d.on("block",t),n=d},i=Ax({chainId:r.chainId})??Is({chainId:r.chainId});r.listen&&a(i);let s=!0,l=ri().subscribe(({provider:d,webSocketProvider:f})=>({provider:d,webSocketProvider:f}),async({provider:d,webSocketProvider:f})=>{let w=f??d;r.listen&&!r.chainId&&w&&a(w);let E=await rN({chainId:r.chainId});!s||e(E)},{equalityFn:Ed});return()=>{s=!1,l(),i?.off("block",t),n?.off("block",t)}}function QZe(r,e){let t=ri(),n=async()=>e(await eN(r)),a=r.listenToBlock?bC({listen:!0},n):void 0,i=t.subscribe(({provider:s})=>s,n);return()=>{i(),a?.()}}function XZe(r,e){let t=ri(),n=async()=>e(await tN(r)),a=r.listenToBlock?bC({listen:!0},n):void 0,i=t.subscribe(({provider:s})=>s,n);return()=>{i(),a?.()}}function YZe(r,e){let t=ri(),n=async()=>e(await vC(r)),a=r.listenToBlock?bC({listen:!0},n):void 0,i=t.subscribe(({provider:s})=>s,n);return()=>{i(),a?.()}}async function RK({chainId:r,hash:e}){return Is({chainId:r}).getTransaction(e)}async function NK({chainId:r,name:e}){let n=await Is({chainId:r}).resolveName(e);try{return n?(0,eJe.getAddress)(n):null}catch{return null}}async function tJe({address:r,chainId:e}){return await Is({chainId:e}).getAvatar(r)}async function nJe({address:r,chainId:e}){return Is({chainId:e}).lookupAddress((0,rJe.getAddress)(r))}async function aJe({chainId:r,name:e}){return await Is({chainId:r}).getResolver(e)}async function iJe({chainId:r,request:e,signer:t}){let n=t??await gm({chainId:r});if(!n)throw new Tc;r&&gC({chainId:r,signer:n});let[a,i]=await Promise.all([(0,$Ze.isAddress)(e.to)?Promise.resolve(e.to):NK({name:e.to}),e.gasLimit?Promise.resolve(e.gasLimit):n.estimateGas(e)]);if(!a)throw new Error("Could not resolve ENS name");return{...r?{chainId:r}:{},request:{...e,gasLimit:i,to:a},mode:"prepared"}}async function OK({chainId:r,mode:e,request:t}){let n=await gm();if(!n)throw new Tc;if(e==="prepared"){if(!t.gasLimit)throw new Error("`gasLimit` is required");if(!t.to)throw new Error("`to` is required")}r&&gC({chainId:r,signer:n});try{let a=n.connectUnchecked?.(),{hash:i,wait:s}=await(a??n).sendTransaction(t);return{hash:i,wait:s}}catch(a){throw a.code===4001||a.code==="ACTION_REJECTED"?new ym(a):a}}async function oJe({chainId:r,formatUnits:e="wei"}={}){let n=await Is({chainId:r}).getFeeData(),a={gasPrice:n.gasPrice?(0,JR.formatUnits)(n.gasPrice,e):null,maxFeePerGas:n.maxFeePerGas?(0,JR.formatUnits)(n.maxFeePerGas,e):null,maxPriorityFeePerGas:n.maxPriorityFeePerGas?(0,JR.formatUnits)(n.maxPriorityFeePerGas,e):null};return{...n,formatted:a}}async function LK({chainId:r,confirmations:e=1,hash:t,onSpeedUp:n,timeout:a=0}){let i=Is({chainId:r}),[s,c]=await Promise.all([rN(),RK({hash:t})]),l=null;e!==0&&c?.to&&(l={data:c.data,from:c.from,nonce:c.nonce,startBlock:s,to:c.to,value:c.value});try{let d=await i._waitForTransaction(t,e,a,l);if(d.status===0){let f=await i.call(d,d.blockNumber),w=(0,sJe.toUtf8String)(`0x${f.substring(138)}`);throw new Error(w)}return d}catch(d){if(d?.reason==="repriced")return n?.(d.replacement),LK({hash:d.replacement?.hash,confirmations:e,timeout:a});throw d}}function cJe(r,e){let t,n=c=>{t&&t?.off("pending",e),c.on("pending",e),t=c},a=Ax({chainId:r.chainId})??Is({chainId:r.chainId});n(a);let s=ri().subscribe(({provider:c,webSocketProvider:l})=>({provider:c,webSocketProvider:l}),async({provider:c,webSocketProvider:l})=>{let d=l??c;!r.chainId&&d&&n(d)},{equalityFn:Ed});return()=>{s(),a?.off("pending",e),t?.off("pending",e)}}async function uJe({address:r,args:e,chainId:t,abi:n,functionName:a,mode:i,overrides:s,request:c}){let l=await gm();if(!l)throw new Tc;if(t&&gC({chainId:t,signer:l}),i==="prepared"&&!c)throw new Error("`request` is required");let d=i==="recklesslyUnprepared"?(await PK({address:r,args:e,chainId:t,abi:n,functionName:a,overrides:s})).request:c;return await OK({request:d,mode:"prepared"})}async function lJe({address:r,chainId:e,formatUnits:t,token:n}){let a=ri(),i=Is({chainId:e});if(n){let d=async({abi:f})=>{let w={abi:f,address:n,chainId:e},[E,k,A]=await vC({allowFailure:!1,contracts:[{...w,functionName:"balanceOf",args:[r]},{...w,functionName:"decimals"},{...w,functionName:"symbol"}]});return{decimals:k,formatted:(0,hC.formatUnits)(E??"0",t??k),symbol:A,value:E}};try{return await d({abi:$R})}catch(f){if(f instanceof Mx){let{symbol:w,...E}=await d({abi:WZe});return{symbol:(0,hC.parseBytes32String)(w),...E}}throw f}}let s=[...a.provider.chains||[],...a.chains??[]],c=await i.getBalance(r),l=s.find(d=>d.id===i.network.chainId);return{decimals:l?.nativeCurrency.decimals??18,formatted:(0,hC.formatUnits)(c??"0",t??"ether"),symbol:l?.nativeCurrency.symbol??"ETH",value:c}}async function gm({chainId:r}={}){return await ri().connector?.getSigner?.({chainId:r})||null}function BK(){let{data:r,connector:e,status:t}=ri();switch(t){case"connected":return{address:r?.account,connector:e,isConnected:!0,isConnecting:!1,isDisconnected:!1,isReconnecting:!1,status:t};case"reconnecting":return{address:r?.account,connector:e,isConnected:!!r?.account,isConnecting:!1,isDisconnected:!1,isReconnecting:!0,status:t};case"connecting":return{address:r?.account,connector:e,isConnected:!1,isConnecting:!0,isDisconnected:!1,isReconnecting:!1,status:t};case"disconnected":return{address:void 0,connector:void 0,isConnected:!1,isConnecting:!1,isDisconnected:!0,isReconnecting:!1,status:t}}}function nN(){let r=ri(),e=r.data?.chain?.id,t=r.chains??[],n=[...r.provider.chains||[],...t].find(a=>a.id===e)??{id:e,name:`Chain ${e}`,network:`${e}`,nativeCurrency:{name:"Ether",decimals:18,symbol:"ETH"},rpcUrls:{default:{http:[""]},public:{http:[""]}}};return{chain:e?{...n,...r.data?.chain,id:e}:void 0,chains:t}}async function dJe(r){try{let e=await gm();if(!e)throw new Tc;return await e.signMessage(r.message)}catch(e){throw e.code===4001||e.code==="ACTION_REJECTED"?new ym(e):e}}async function pJe({domain:r,types:e,value:t}){let n=await gm();if(!n)throw new Tc;let{chainId:a}=r,i=a?Ex(a):void 0;i&&gC({chainId:i,signer:n});let s=Object.entries(e).filter(([c])=>c!=="EIP712Domain").reduce((c,[l,d])=>(c[l]=d.filter(f=>f.type!=="EIP712Domain"),c),{});try{return await n._signTypedData(r,s,t)}catch(c){throw c.code===4001||c.code==="ACTION_REJECTED"?new ym(c):c}}async function hJe({chainId:r}){let{connector:e}=ri();if(!e)throw new Tc;if(!e.switchChain)throw new FK({connector:e});return e.switchChain(r)}function fJe(r,{selector:e=t=>t}={}){let t=ri(),n=()=>r(BK());return t.subscribe(({data:i,connector:s,status:c})=>e({address:i?.account,connector:s,status:c}),n,{equalityFn:Ed})}function mJe(r,{selector:e=t=>t}={}){let t=ri(),n=()=>r(nN());return t.subscribe(({data:i,chains:s})=>e({chainId:i?.chain?.id,chains:s}),n,{equalityFn:Ed})}function yJe({chainId:r},e){let t=ri(),n=async()=>{let i=await gm({chainId:r});return ri().connector?e(i):e(null)};return t.subscribe(({data:i,connector:s})=>({account:i?.account,chainId:i?.chain?.id,connector:s}),n,{equalityFn:Ed})}var AZe,PZe,RZe,YR,NZe,OZe,LZe,hC,fC,GZe,$Ze,eJe,rJe,sJe,JR,xK,AK,SZe,kx,pC,_K,qZe,IK,CK,$R,WZe,jZe,F0r,zZe,HZe,aN,iN,VR,mC,qK,lC,DK,Tc,sN,oN,yC,Mx,XR,GR,ZR,FK,ym,gJe=vt(()=>{x();T();wK();uZe();AZe=cr(_t(),1);wZe();CZe();PZe=cr(_t(),1),RZe=cr(_t(),1),YR=cr(_i(),1),NZe=cr(_t(),1),OZe=cr(_i(),1),LZe=cr(_t(),1),hC=cr(_i(),1),fC=cr(_i(),1),GZe=cr(_t(),1);Gv();Gv();$Ze=cr(_i(),1),eJe=cr(_i(),1),rJe=cr(_i(),1),sJe=cr(_i(),1),JR=cr(_i(),1);Gv();Gv();Gv();Gv();xK=(r,{find:e,replace:t})=>r&&e(r)?t(r):typeof r!="object"?r:Array.isArray(r)?r.map(n=>xK(n,{find:e,replace:t})):r instanceof Object?Object.entries(r).reduce((n,[a,i])=>({...n,[a]:xK(i,{find:e,replace:t})}),{}):r;AK={getItem:r=>"",setItem:(r,e)=>null,removeItem:r=>null};SZe="store",IK=class{constructor({autoConnect:r=!1,connectors:e=[new Vv],provider:t,storage:n=MK({storage:typeof window<"u"?window.localStorage:AK}),logger:a={warn:console.warn},webSocketProvider:i}){WR(this,_K),this.providers=new Map,this.webSocketProviders=new Map,WR(this,kx,void 0),WR(this,pC,void 0),this.config={autoConnect:r,connectors:e,logger:a,provider:t,storage:n,webSocketProvider:i};let s="disconnected",c;if(r)try{let d=n.getItem(SZe)?.state?.data;s=d?.account?"reconnecting":"connecting",c=d?.chain?.id}catch{}this.store=_Ze(vZe(bZe(()=>({connectors:typeof e=="function"?e():e,provider:this.getProvider({chainId:c}),status:s,webSocketProvider:this.getWebSocketProvider({chainId:c})}),{name:SZe,storage:n,partialize:l=>({...r&&{data:{account:l?.data?.account,chain:l?.data?.chain}},chains:l?.chains}),version:2}))),this.storage=n,oC(this,pC,n?.getItem("wallet")),cZe(this,_K,qZe).call(this),r&&typeof window<"u"&&setTimeout(async()=>await this.autoConnect(),0)}get chains(){return this.store.getState().chains}get connectors(){return this.store.getState().connectors}get connector(){return this.store.getState().connector}get data(){return this.store.getState().data}get error(){return this.store.getState().error}get lastUsedChainId(){return this.data?.chain?.id}get provider(){return this.store.getState().provider}get status(){return this.store.getState().status}get subscribe(){return this.store.subscribe}get webSocketProvider(){return this.store.getState().webSocketProvider}setState(r){let e=typeof r=="function"?r(this.store.getState()):r;this.store.setState(e,!0)}clearState(){this.setState(r=>({...r,chains:void 0,connector:void 0,data:void 0,error:void 0,status:"disconnected"}))}async destroy(){this.connector&&await this.connector.disconnect?.(),oC(this,kx,!1),this.clearState(),this.store.destroy()}async autoConnect(){if(UR(this,kx))return;oC(this,kx,!0),this.setState(t=>({...t,status:t.data?.account?"reconnecting":"connecting"}));let r=UR(this,pC)?[...this.connectors].sort(t=>t.id===UR(this,pC)?-1:1):this.connectors,e=!1;for(let t of r){if(!t.ready||!t.isAuthorized||!await t.isAuthorized())continue;let a=await t.connect();this.setState(i=>({...i,connector:t,chains:t?.chains,data:a,status:"connected"})),e=!0;break}return e||this.setState(t=>({...t,data:void 0,status:"disconnected"})),oC(this,kx,!1),this.data}getProvider({bust:r,chainId:e}={}){let t=this.providers.get(e??-1);if(t&&!r)return t;let{provider:n}=this.config;return t=typeof n=="function"?n({chainId:e}):n,this.providers.set(e??-1,t),t}getWebSocketProvider({bust:r,chainId:e}={}){let t=this.webSocketProviders.get(e??-1);if(t&&!r)return t;let{webSocketProvider:n}=this.config;return t=typeof n=="function"?n({chainId:e}):n,t&&this.webSocketProviders.set(e??-1,t),t}setLastUsedConnector(r=null){this.storage?.setItem("wallet",r)}};kx=new WeakMap;pC=new WeakMap;_K=new WeakSet;qZe=function(){let r=c=>{this.setState(l=>({...l,data:{...l.data,...c}}))},e=()=>{this.clearState()},t=c=>{this.setState(l=>({...l,error:c}))};this.store.subscribe(({connector:c})=>c,(c,l)=>{l?.off?.("change",r),l?.off?.("disconnect",e),l?.off?.("error",t),c&&(c.on?.("change",r),c.on?.("disconnect",e),c.on?.("error",t))});let{provider:n,webSocketProvider:a}=this.config;(typeof n=="function"||typeof a=="function")&&this.store.subscribe(({data:c})=>c?.chain?.id,c=>{this.setState(l=>({...l,provider:this.getProvider({bust:!0,chainId:c}),webSocketProvider:this.getWebSocketProvider({bust:!0,chainId:c})}))})};$R=[{type:"event",name:"Approval",inputs:[{indexed:!0,name:"owner",type:"address"},{indexed:!0,name:"spender",type:"address"},{indexed:!1,name:"value",type:"uint256"}]},{type:"event",name:"Transfer",inputs:[{indexed:!0,name:"from",type:"address"},{indexed:!0,name:"to",type:"address"},{indexed:!1,name:"value",type:"uint256"}]},{type:"function",name:"allowance",stateMutability:"view",inputs:[{name:"owner",type:"address"},{name:"spender",type:"address"}],outputs:[{name:"",type:"uint256"}]},{type:"function",name:"approve",stateMutability:"nonpayable",inputs:[{name:"spender",type:"address"},{name:"amount",type:"uint256"}],outputs:[{name:"",type:"bool"}]},{type:"function",name:"balanceOf",stateMutability:"view",inputs:[{name:"account",type:"address"}],outputs:[{name:"",type:"uint256"}]},{type:"function",name:"decimals",stateMutability:"view",inputs:[],outputs:[{name:"",type:"uint8"}]},{type:"function",name:"name",stateMutability:"view",inputs:[],outputs:[{name:"",type:"string"}]},{type:"function",name:"symbol",stateMutability:"view",inputs:[],outputs:[{name:"",type:"string"}]},{type:"function",name:"totalSupply",stateMutability:"view",inputs:[],outputs:[{name:"",type:"uint256"}]},{type:"function",name:"transfer",stateMutability:"nonpayable",inputs:[{name:"recipient",type:"address"},{name:"amount",type:"uint256"}],outputs:[{name:"",type:"bool"}]},{type:"function",name:"transferFrom",stateMutability:"nonpayable",inputs:[{name:"sender",type:"address"},{name:"recipient",type:"address"},{name:"amount",type:"uint256"}],outputs:[{name:"",type:"bool"}]}],WZe=[{type:"event",name:"Approval",inputs:[{indexed:!0,name:"owner",type:"address"},{indexed:!0,name:"spender",type:"address"},{indexed:!1,name:"value",type:"uint256"}]},{type:"event",name:"Transfer",inputs:[{indexed:!0,name:"from",type:"address"},{indexed:!0,name:"to",type:"address"},{indexed:!1,name:"value",type:"uint256"}]},{type:"function",name:"allowance",stateMutability:"view",inputs:[{name:"owner",type:"address"},{name:"spender",type:"address"}],outputs:[{name:"",type:"uint256"}]},{type:"function",name:"approve",stateMutability:"nonpayable",inputs:[{name:"spender",type:"address"},{name:"amount",type:"uint256"}],outputs:[{name:"",type:"bool"}]},{type:"function",name:"balanceOf",stateMutability:"view",inputs:[{name:"account",type:"address"}],outputs:[{name:"",type:"uint256"}]},{type:"function",name:"decimals",stateMutability:"view",inputs:[],outputs:[{name:"",type:"uint8"}]},{type:"function",name:"name",stateMutability:"view",inputs:[],outputs:[{name:"",type:"bytes32"}]},{type:"function",name:"symbol",stateMutability:"view",inputs:[],outputs:[{name:"",type:"bytes32"}]},{type:"function",name:"totalSupply",stateMutability:"view",inputs:[],outputs:[{name:"",type:"uint256"}]},{type:"function",name:"transfer",stateMutability:"nonpayable",inputs:[{name:"recipient",type:"address"},{name:"amount",type:"uint256"}],outputs:[{name:"",type:"bool"}]},{type:"function",name:"transferFrom",stateMutability:"nonpayable",inputs:[{name:"sender",type:"address"},{name:"recipient",type:"address"},{name:"amount",type:"uint256"}],outputs:[{name:"",type:"bool"}]}],jZe=[{type:"event",name:"Approval",inputs:[{indexed:!0,name:"owner",type:"address"},{indexed:!0,name:"spender",type:"address"},{indexed:!0,name:"tokenId",type:"uint256"}]},{type:"event",name:"ApprovalForAll",inputs:[{indexed:!0,name:"owner",type:"address"},{indexed:!0,name:"operator",type:"address"},{indexed:!1,name:"approved",type:"bool"}]},{type:"event",name:"Transfer",inputs:[{indexed:!0,name:"from",type:"address"},{indexed:!0,name:"to",type:"address"},{indexed:!0,name:"tokenId",type:"uint256"}]},{type:"function",name:"approve",stateMutability:"payable",inputs:[{name:"spender",type:"address"},{name:"tokenId",type:"uint256"}],outputs:[]},{type:"function",name:"balanceOf",stateMutability:"view",inputs:[{name:"account",type:"address"}],outputs:[{name:"",type:"uint256"}]},{type:"function",name:"getApproved",stateMutability:"view",inputs:[{name:"tokenId",type:"uint256"}],outputs:[{name:"",type:"address"}]},{type:"function",name:"isApprovedForAll",stateMutability:"view",inputs:[{name:"owner",type:"address"},{name:"operator",type:"address"}],outputs:[{name:"",type:"bool"}]},{type:"function",name:"name",stateMutability:"view",inputs:[],outputs:[{name:"",type:"string"}]},{type:"function",name:"ownerOf",stateMutability:"view",inputs:[{name:"tokenId",type:"uint256"}],outputs:[{name:"owner",type:"address"}]},{type:"function",name:"safeTransferFrom",stateMutability:"payable",inputs:[{name:"from",type:"address"},{name:"to",type:"address"},{name:"tokenId",type:"uint256"}],outputs:[]},{type:"function",name:"safeTransferFrom",stateMutability:"nonpayable",inputs:[{name:"from",type:"address"},{name:"to",type:"address"},{name:"id",type:"uint256"},{name:"data",type:"bytes"}],outputs:[]},{type:"function",name:"setApprovalForAll",stateMutability:"nonpayable",inputs:[{name:"operator",type:"address"},{name:"approved",type:"bool"}],outputs:[]},{type:"function",name:"symbol",stateMutability:"view",inputs:[],outputs:[{name:"",type:"string"}]},{type:"function",name:"tokenByIndex",stateMutability:"view",inputs:[{name:"index",type:"uint256"}],outputs:[{name:"",type:"uint256"}]},{type:"function",name:"tokenByIndex",stateMutability:"view",inputs:[{name:"owner",type:"address"},{name:"index",type:"uint256"}],outputs:[{name:"tokenId",type:"uint256"}]},{type:"function",name:"tokenURI",stateMutability:"view",inputs:[{name:"tokenId",type:"uint256"}],outputs:[{name:"",type:"string"}]},{type:"function",name:"totalSupply",stateMutability:"view",inputs:[],outputs:[{name:"",type:"uint256"}]},{type:"function",name:"transferFrom",stateMutability:"payable",inputs:[{name:"sender",type:"address"},{name:"recipient",type:"address"},{name:"tokeId",type:"uint256"}],outputs:[]}],F0r=[{inputs:[{components:[{name:"target",type:"address"},{name:"allowFailure",type:"bool"},{name:"callData",type:"bytes"}],name:"calls",type:"tuple[]"}],name:"aggregate3",outputs:[{components:[{name:"success",type:"bool"},{name:"returnData",type:"bytes"}],name:"returnData",type:"tuple[]"}],stateMutability:"view",type:"function"}],zZe=[{anonymous:!1,inputs:[{indexed:!0,name:"owner",type:"address"},{indexed:!0,name:"spender",type:"address"},{indexed:!1,name:"value",type:"uint256"}],name:"Approval",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"sender",type:"address"},{indexed:!0,name:"receiver",type:"address"},{indexed:!1,name:"assets",type:"uint256"},{indexed:!1,name:"shares",type:"uint256"}],name:"Deposit",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"from",type:"address"},{indexed:!0,name:"to",type:"address"},{indexed:!1,name:"value",type:"uint256"}],name:"Transfer",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"sender",type:"address"},{indexed:!0,name:"receiver",type:"address"},{indexed:!0,name:"owner",type:"address"},{indexed:!1,name:"assets",type:"uint256"},{indexed:!1,name:"shares",type:"uint256"}],name:"Withdraw",type:"event"},{inputs:[{name:"owner",type:"address"},{name:"spender",type:"address"}],name:"allowance",outputs:[{name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{name:"spender",type:"address"},{name:"amount",type:"uint256"}],name:"approve",outputs:[{name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"asset",outputs:[{name:"assetTokenAddress",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{name:"account",type:"address"}],name:"balanceOf",outputs:[{name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{name:"shares",type:"uint256"}],name:"convertToAssets",outputs:[{name:"assets",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{name:"assets",type:"uint256"}],name:"convertToShares",outputs:[{name:"shares",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{name:"assets",type:"uint256"},{name:"receiver",type:"address"}],name:"deposit",outputs:[{name:"shares",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{name:"caller",type:"address"}],name:"maxDeposit",outputs:[{name:"maxAssets",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{name:"caller",type:"address"}],name:"maxMint",outputs:[{name:"maxShares",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{name:"owner",type:"address"}],name:"maxRedeem",outputs:[{name:"maxShares",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{name:"owner",type:"address"}],name:"maxWithdraw",outputs:[{name:"maxAssets",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{name:"shares",type:"uint256"},{name:"receiver",type:"address"}],name:"mint",outputs:[{name:"assets",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{name:"assets",type:"uint256"}],name:"previewDeposit",outputs:[{name:"shares",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{name:"shares",type:"uint256"}],name:"previewMint",outputs:[{name:"assets",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{name:"shares",type:"uint256"}],name:"previewRedeem",outputs:[{name:"assets",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{name:"assets",type:"uint256"}],name:"previewWithdraw",outputs:[{name:"shares",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{name:"shares",type:"uint256"},{name:"receiver",type:"address"},{name:"owner",type:"address"}],name:"redeem",outputs:[{name:"assets",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"totalAssets",outputs:[{name:"totalManagedAssets",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"totalSupply",outputs:[{name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{name:"to",type:"address"},{name:"amount",type:"uint256"}],name:"transfer",outputs:[{name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{name:"from",type:"address"},{name:"to",type:"address"},{name:"amount",type:"uint256"}],name:"transferFrom",outputs:[{name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{name:"assets",type:"uint256"},{name:"receiver",type:"address"},{name:"owner",type:"address"}],name:"withdraw",outputs:[{name:"shares",type:"uint256"}],stateMutability:"nonpayable",type:"function"}],HZe=["wei","kwei","mwei","gwei","szabo","finney","ether"];aN=class extends Error{constructor(r,e){let{cause:t,code:n,data:a}=e;if(!Number.isInteger(n))throw new Error('"code" must be an integer.');if(!r||typeof r!="string")throw new Error('"message" must be a nonempty string.');super(r),this.cause=t,this.code=n,this.data=a}},iN=class extends aN{constructor(r,e){let{cause:t,code:n,data:a}=e;if(!(Number.isInteger(n)&&n>=1e3&&n<=4999))throw new Error('"code" must be an integer such that: 1000 <= code <= 4999');super(r,{cause:t,code:n,data:a})}},VR=class extends Error{constructor(){super(...arguments),this.name="AddChainError",this.message="Error adding chain"}},mC=class extends Error{constructor({blockNumber:r,chain:e}){super(`Chain "${e.name}" does not support multicall${r?` on block ${r}`:""}.`),this.name="ChainDoesNotSupportMulticall"}},qK=class extends Error{constructor({activeChain:r,targetChain:e}){super(`Chain mismatch: Expected "${e}", received "${r}".`),this.name="ChainMismatchError"}},lC=class extends Error{constructor({chainId:r,connectorId:e}){super(`Chain "${r}" not configured for connector "${e}".`),this.name="ChainNotConfigured"}},DK=class extends Error{constructor(){super(...arguments),this.name="ConnectorAlreadyConnectedError",this.message="Connector already connected"}},Tc=class extends Error{constructor(){super(...arguments),this.name="ConnectorNotFoundError",this.message="Connector not found"}},sN=class extends Error{constructor({address:r,chainId:e,functionName:t}){let{chains:n,network:a}=Is(),s=n?.find(({id:c})=>c===(e||a.chainId))?.blockExplorers?.default;super([`Function "${t}" on contract "${r}" does not exist.`,...s?["",`${s?.name}: ${s?.url}/address/${r}#readContract`]:[]].join(` -`)),this.name="ContractMethodDoesNotExistError"}},oN=class extends Error{constructor({address:r,args:e,chainId:t,functionName:n}){super(["Contract read returned an empty response. This could be due to any of the following:",`- The contract does not have the function "${n}",`,"- The parameters passed to the contract function may be invalid, or","- The address is not a contract.","","Config:",JSON.stringify({address:r,abi:"...",functionName:n,chainId:t,args:e},null,2)].join(` -`)),this.name="ContractMethodNoResultError"}},yC=class extends Error{constructor({address:r,args:e,chainId:t,functionName:n,errorMessage:a}){super(["Contract method reverted with an error.","","Config:",JSON.stringify({address:r,abi:"...",functionName:n,chainId:t,args:e},null,2),"",`Details: ${a}`].join(` -`)),this.name="ContractMethodRevertedError"}},Mx=class extends Error{constructor({address:r,args:e,chainId:t,functionName:n,errorMessage:a}){super(["Failed to decode contract function result.","","Config:",JSON.stringify({address:r,abi:"...",functionName:n,chainId:t,args:e},null,2),"",`Details: ${a}`].join(` -`)),this.name="ContractResultDecodeError"}},XR=class extends Error{constructor(){super(...arguments),this.name="ProviderChainsNotFound",this.message=["No chains were found on the wagmi provider. Some functions that require a chain may not work.","","It is recommended to add a list of chains to the provider in `createClient`.","","Example:","","```","import { getDefaultProvider } from 'ethers'","import { chain, createClient } from 'wagmi'","","createClient({"," provider: Object.assign(getDefaultProvider(), { chains: [chain.mainnet] })","})","```"].join(` -`)}},GR=class extends aN{constructor(r){super("Resource unavailable",{cause:r,code:-32002}),this.name="ResourceUnavailable"}},ZR=class extends iN{constructor(r){super("Error switching chain",{cause:r,code:4902}),this.name="SwitchChainError"}},FK=class extends Error{constructor({connector:r}){super(`"${r.name}" does not support programmatic chain switching.`),this.name="SwitchChainNotSupportedError"}},ym=class extends iN{constructor(r){super("User rejected request",{cause:r,code:4001}),this.name="UserRejectedRequestError"}}});var vJe=vt(()=>{x();T();bK()});var Sp={};Fd(Sp,{AddChainError:()=>VR,ChainDoesNotSupportMulticallError:()=>mC,ChainMismatchError:()=>qK,ChainNotConfiguredError:()=>lC,Client:()=>IK,Connector:()=>_x,ConnectorAlreadyConnectedError:()=>DK,ConnectorNotFoundError:()=>Tc,ContractMethodDoesNotExistError:()=>sN,ContractMethodNoResultError:()=>oN,ContractMethodRevertedError:()=>yC,ContractResultDecodeError:()=>Mx,InjectedConnector:()=>Vv,ProviderChainsNotFound:()=>XR,ProviderRpcError:()=>iN,ResourceUnavailableError:()=>GR,RpcError:()=>aN,SwitchChainError:()=>ZR,SwitchChainNotSupportedError:()=>FK,UserRejectedRequestError:()=>ym,configureChains:()=>MZe,connect:()=>FZe,createClient:()=>DZe,createStorage:()=>MK,deepEqual:()=>KR,deserialize:()=>EK,disconnect:()=>UZe,erc20ABI:()=>$R,erc4626ABI:()=>zZe,erc721ABI:()=>jZe,fetchBalance:()=>lJe,fetchBlockNumber:()=>rN,fetchEnsAddress:()=>NK,fetchEnsAvatar:()=>tJe,fetchEnsName:()=>nJe,fetchEnsResolver:()=>aJe,fetchFeeData:()=>oJe,fetchSigner:()=>gm,fetchToken:()=>VZe,fetchTransaction:()=>RK,getAccount:()=>BK,getClient:()=>ri,getContract:()=>oy,getNetwork:()=>nN,getProvider:()=>Is,getWebSocketProvider:()=>Ax,goerli:()=>xx,mainnet:()=>Tx,minimizeContractInterface:()=>kK,multicall:()=>eN,noopStorage:()=>AK,normalizeChainId:()=>Ex,parseContractResult:()=>BZe,prepareSendTransaction:()=>iJe,prepareWriteContract:()=>PK,readContract:()=>tN,readContracts:()=>vC,sendTransaction:()=>OK,serialize:()=>SK,signMessage:()=>dJe,signTypedData:()=>pJe,switchNetwork:()=>hJe,units:()=>HZe,waitForTransaction:()=>LK,watchAccount:()=>fJe,watchBlockNumber:()=>bC,watchContractEvent:()=>KZe,watchMulticall:()=>QZe,watchNetwork:()=>mJe,watchPendingTransactions:()=>cJe,watchProvider:()=>ZZe,watchReadContract:()=>XZe,watchReadContracts:()=>YZe,watchSigner:()=>yJe,watchWebSocketProvider:()=>JZe,writeContract:()=>uJe});var Cd=vt(()=>{x();T();gJe();pK();wK();vJe()});var bJe=O(cN=>{"use strict";x();T();Object.defineProperty(cN,"__esModule",{value:!0});cN.walletLogo=void 0;var U0r=(r,e)=>{let t;switch(r){case"standard":return t=e,`data:image/svg+xml,%3Csvg width='${e}' height='${t}' viewBox='0 0 1024 1024' fill='none' xmlns='http://www.w3.org/2000/svg'%3E %3Crect width='1024' height='1024' fill='%230052FF'/%3E %3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M152 512C152 710.823 313.177 872 512 872C710.823 872 872 710.823 872 512C872 313.177 710.823 152 512 152C313.177 152 152 313.177 152 512ZM420 396C406.745 396 396 406.745 396 420V604C396 617.255 406.745 628 420 628H604C617.255 628 628 617.255 628 604V420C628 406.745 617.255 396 604 396H420Z' fill='white'/%3E %3C/svg%3E `;case"circle":return t=e,`data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='${e}' height='${t}' viewBox='0 0 999.81 999.81'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%230052fe;%7D.cls-2%7Bfill:%23fefefe;%7D.cls-3%7Bfill:%230152fe;%7D%3C/style%3E%3C/defs%3E%3Cpath class='cls-1' d='M655-115.9h56c.83,1.59,2.36.88,3.56,1a478,478,0,0,1,75.06,10.42C891.4-81.76,978.33-32.58,1049.19,44q116.7,126,131.94,297.61c.38,4.14-.34,8.53,1.78,12.45v59c-1.58.84-.91,2.35-1,3.56a482.05,482.05,0,0,1-10.38,74.05c-24,106.72-76.64,196.76-158.83,268.93s-178.18,112.82-287.2,122.6c-4.83.43-9.86-.25-14.51,1.77H654c-1-1.68-2.69-.91-4.06-1a496.89,496.89,0,0,1-105.9-18.59c-93.54-27.42-172.78-77.59-236.91-150.94Q199.34,590.1,184.87,426.58c-.47-5.19.25-10.56-1.77-15.59V355c1.68-1,.91-2.7,1-4.06a498.12,498.12,0,0,1,18.58-105.9c26-88.75,72.64-164.9,140.6-227.57q126-116.27,297.21-131.61C645.32-114.57,650.35-113.88,655-115.9Zm377.92,500c0-192.44-156.31-349.49-347.56-350.15-194.13-.68-350.94,155.13-352.29,347.42-1.37,194.55,155.51,352.1,348.56,352.47C876.15,734.23,1032.93,577.84,1032.93,384.11Z' transform='translate(-183.1 115.9)'/%3E%3Cpath class='cls-2' d='M1032.93,384.11c0,193.73-156.78,350.12-351.29,349.74-193-.37-349.93-157.92-348.56-352.47C334.43,189.09,491.24,33.28,685.37,34,876.62,34.62,1032.94,191.67,1032.93,384.11ZM683,496.81q43.74,0,87.48,0c15.55,0,25.32-9.72,25.33-25.21q0-87.48,0-175c0-15.83-9.68-25.46-25.59-25.46H595.77c-15.88,0-25.57,9.64-25.58,25.46q0,87.23,0,174.45c0,16.18,9.59,25.7,25.84,25.71Z' transform='translate(-183.1 115.9)'/%3E%3Cpath class='cls-3' d='M683,496.81H596c-16.25,0-25.84-9.53-25.84-25.71q0-87.23,0-174.45c0-15.82,9.7-25.46,25.58-25.46H770.22c15.91,0,25.59,9.63,25.59,25.46q0,87.47,0,175c0,15.49-9.78,25.2-25.33,25.21Q726.74,496.84,683,496.81Z' transform='translate(-183.1 115.9)'/%3E%3C/svg%3E`;case"text":return t=(.1*e).toFixed(2),`data:image/svg+xml,%3Csvg width='${e}' height='${t}' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 528.15 53.64'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%230052ff;%7D%3C/style%3E%3C/defs%3E%3Ctitle%3ECoinbase_Wordmark_SubBrands_ALL%3C/title%3E%3Cpath class='cls-1' d='M164.45,15a15,15,0,0,0-11.74,5.4V0h-8.64V52.92h8.5V48a15,15,0,0,0,11.88,5.62c10.37,0,18.21-8.21,18.21-19.3S174.67,15,164.45,15Zm-1.3,30.67c-6.19,0-10.73-4.83-10.73-11.31S157,23,163.22,23s10.66,4.82,10.66,11.37S169.34,45.65,163.15,45.65Zm83.31-14.91-6.34-.93c-3-.43-5.18-1.44-5.18-3.82,0-2.59,2.8-3.89,6.62-3.89,4.18,0,6.84,1.8,7.42,4.76h8.35c-.94-7.49-6.7-11.88-15.55-11.88-9.15,0-15.2,4.68-15.2,11.3,0,6.34,4,10,12,11.16l6.33.94c3.1.43,4.83,1.65,4.83,4,0,2.95-3,4.17-7.2,4.17-5.12,0-8-2.09-8.43-5.25h-8.49c.79,7.27,6.48,12.38,16.84,12.38,9.44,0,15.7-4.32,15.7-11.74C258.12,35.28,253.58,31.82,246.46,30.74Zm-27.65-2.3c0-8.06-4.9-13.46-15.27-13.46-9.79,0-15.26,5-16.34,12.6h8.57c.43-3,2.73-5.4,7.63-5.4,4.39,0,6.55,1.94,6.55,4.32,0,3.09-4,3.88-8.85,4.39-6.63.72-14.84,3-14.84,11.66,0,6.7,5,11,12.89,11,6.19,0,10.08-2.59,12-6.7.28,3.67,3,6.05,6.84,6.05h5v-7.7h-4.25Zm-8.5,9.36c0,5-4.32,8.64-9.57,8.64-3.24,0-6-1.37-6-4.25,0-3.67,4.39-4.68,8.42-5.11s6-1.22,7.13-2.88ZM281.09,15c-11.09,0-19.23,8.35-19.23,19.36,0,11.6,8.72,19.3,19.37,19.3,9,0,16.06-5.33,17.86-12.89h-9c-1.3,3.31-4.47,5.19-8.71,5.19-5.55,0-9.72-3.46-10.66-9.51H299.3V33.12C299.3,22.46,291.53,15,281.09,15Zm-9.87,15.26c1.37-5.18,5.26-7.7,9.72-7.7,4.9,0,8.64,2.8,9.51,7.7ZM19.3,23a9.84,9.84,0,0,1,9.5,7h9.14c-1.65-8.93-9-15-18.57-15A19,19,0,0,0,0,34.34c0,11.09,8.28,19.3,19.37,19.3,9.36,0,16.85-6,18.5-15H28.8a9.75,9.75,0,0,1-9.43,7.06c-6.27,0-10.66-4.83-10.66-11.31S13,23,19.3,23Zm41.11-8A19,19,0,0,0,41,34.34c0,11.09,8.28,19.3,19.37,19.3A19,19,0,0,0,79.92,34.27C79.92,23.33,71.64,15,60.41,15Zm.07,30.67c-6.19,0-10.73-4.83-10.73-11.31S54.22,23,60.41,23s10.8,4.89,10.8,11.37S66.67,45.65,60.48,45.65ZM123.41,15c-5.62,0-9.29,2.3-11.45,5.54V15.7h-8.57V52.92H112V32.69C112,27,115.63,23,121,23c5,0,8.06,3.53,8.06,8.64V52.92h8.64V31C137.66,21.6,132.84,15,123.41,15ZM92,.36a5.36,5.36,0,0,0-5.55,5.47,5.55,5.55,0,0,0,11.09,0A5.35,5.35,0,0,0,92,.36Zm-9.72,23h5.4V52.92h8.64V15.7h-14Zm298.17-7.7L366.2,52.92H372L375.29,44H392l3.33,8.88h6L386.87,15.7ZM377,39.23l6.45-17.56h.1l6.56,17.56ZM362.66,15.7l-7.88,29h-.11l-8.14-29H341l-8,28.93h-.1l-8-28.87H319L329.82,53h5.45l8.19-29.24h.11L352,53h5.66L368.1,15.7Zm135.25,0v4.86h12.32V52.92h5.6V20.56h12.32V15.7ZM467.82,52.92h25.54V48.06H473.43v-12h18.35V31.35H473.43V20.56h19.93V15.7H467.82ZM443,15.7h-5.6V52.92h24.32V48.06H443Zm-30.45,0h-5.61V52.92h24.32V48.06H412.52Z'/%3E%3C/svg%3E`;case"textWithLogo":return t=(.25*e).toFixed(2),`data:image/svg+xml,%3Csvg width='${e}' height='${t}' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 308.44 77.61'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%230052ff;%7D%3C/style%3E%3C/defs%3E%3Cpath class='cls-1' d='M142.94,20.2l-7.88,29H135l-8.15-29h-5.55l-8,28.93h-.11l-8-28.87H99.27l10.84,37.27h5.44l8.2-29.24h.1l8.41,29.24h5.66L148.39,20.2Zm17.82,0L146.48,57.42h5.82l3.28-8.88h16.65l3.34,8.88h6L167.16,20.2Zm-3.44,23.52,6.45-17.55h.11l6.56,17.55ZM278.2,20.2v4.86h12.32V57.42h5.6V25.06h12.32V20.2ZM248.11,57.42h25.54V52.55H253.71V40.61h18.35V35.85H253.71V25.06h19.94V20.2H248.11ZM223.26,20.2h-5.61V57.42H242V52.55H223.26Zm-30.46,0h-5.6V57.42h24.32V52.55H192.8Zm-154,38A19.41,19.41,0,1,1,57.92,35.57H77.47a38.81,38.81,0,1,0,0,6.47H57.92A19.39,19.39,0,0,1,38.81,58.21Z'/%3E%3C/svg%3E`;case"textLight":return t=(.1*e).toFixed(2),`data:image/svg+xml,%3Csvg width='${e}' height='${t}' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 528.15 53.64'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%23fefefe;%7D%3C/style%3E%3C/defs%3E%3Ctitle%3ECoinbase_Wordmark_SubBrands_ALL%3C/title%3E%3Cpath class='cls-1' d='M164.45,15a15,15,0,0,0-11.74,5.4V0h-8.64V52.92h8.5V48a15,15,0,0,0,11.88,5.62c10.37,0,18.21-8.21,18.21-19.3S174.67,15,164.45,15Zm-1.3,30.67c-6.19,0-10.73-4.83-10.73-11.31S157,23,163.22,23s10.66,4.82,10.66,11.37S169.34,45.65,163.15,45.65Zm83.31-14.91-6.34-.93c-3-.43-5.18-1.44-5.18-3.82,0-2.59,2.8-3.89,6.62-3.89,4.18,0,6.84,1.8,7.42,4.76h8.35c-.94-7.49-6.7-11.88-15.55-11.88-9.15,0-15.2,4.68-15.2,11.3,0,6.34,4,10,12,11.16l6.33.94c3.1.43,4.83,1.65,4.83,4,0,2.95-3,4.17-7.2,4.17-5.12,0-8-2.09-8.43-5.25h-8.49c.79,7.27,6.48,12.38,16.84,12.38,9.44,0,15.7-4.32,15.7-11.74C258.12,35.28,253.58,31.82,246.46,30.74Zm-27.65-2.3c0-8.06-4.9-13.46-15.27-13.46-9.79,0-15.26,5-16.34,12.6h8.57c.43-3,2.73-5.4,7.63-5.4,4.39,0,6.55,1.94,6.55,4.32,0,3.09-4,3.88-8.85,4.39-6.63.72-14.84,3-14.84,11.66,0,6.7,5,11,12.89,11,6.19,0,10.08-2.59,12-6.7.28,3.67,3,6.05,6.84,6.05h5v-7.7h-4.25Zm-8.5,9.36c0,5-4.32,8.64-9.57,8.64-3.24,0-6-1.37-6-4.25,0-3.67,4.39-4.68,8.42-5.11s6-1.22,7.13-2.88ZM281.09,15c-11.09,0-19.23,8.35-19.23,19.36,0,11.6,8.72,19.3,19.37,19.3,9,0,16.06-5.33,17.86-12.89h-9c-1.3,3.31-4.47,5.19-8.71,5.19-5.55,0-9.72-3.46-10.66-9.51H299.3V33.12C299.3,22.46,291.53,15,281.09,15Zm-9.87,15.26c1.37-5.18,5.26-7.7,9.72-7.7,4.9,0,8.64,2.8,9.51,7.7ZM19.3,23a9.84,9.84,0,0,1,9.5,7h9.14c-1.65-8.93-9-15-18.57-15A19,19,0,0,0,0,34.34c0,11.09,8.28,19.3,19.37,19.3,9.36,0,16.85-6,18.5-15H28.8a9.75,9.75,0,0,1-9.43,7.06c-6.27,0-10.66-4.83-10.66-11.31S13,23,19.3,23Zm41.11-8A19,19,0,0,0,41,34.34c0,11.09,8.28,19.3,19.37,19.3A19,19,0,0,0,79.92,34.27C79.92,23.33,71.64,15,60.41,15Zm.07,30.67c-6.19,0-10.73-4.83-10.73-11.31S54.22,23,60.41,23s10.8,4.89,10.8,11.37S66.67,45.65,60.48,45.65ZM123.41,15c-5.62,0-9.29,2.3-11.45,5.54V15.7h-8.57V52.92H112V32.69C112,27,115.63,23,121,23c5,0,8.06,3.53,8.06,8.64V52.92h8.64V31C137.66,21.6,132.84,15,123.41,15ZM92,.36a5.36,5.36,0,0,0-5.55,5.47,5.55,5.55,0,0,0,11.09,0A5.35,5.35,0,0,0,92,.36Zm-9.72,23h5.4V52.92h8.64V15.7h-14Zm298.17-7.7L366.2,52.92H372L375.29,44H392l3.33,8.88h6L386.87,15.7ZM377,39.23l6.45-17.56h.1l6.56,17.56ZM362.66,15.7l-7.88,29h-.11l-8.14-29H341l-8,28.93h-.1l-8-28.87H319L329.82,53h5.45l8.19-29.24h.11L352,53h5.66L368.1,15.7Zm135.25,0v4.86h12.32V52.92h5.6V20.56h12.32V15.7ZM467.82,52.92h25.54V48.06H473.43v-12h18.35V31.35H473.43V20.56h19.93V15.7H467.82ZM443,15.7h-5.6V52.92h24.32V48.06H443Zm-30.45,0h-5.61V52.92h24.32V48.06H412.52Z'/%3E%3C/svg%3E`;case"textWithLogoLight":return t=(.25*e).toFixed(2),`data:image/svg+xml,%3Csvg width='${e}' height='${t}' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 308.44 77.61'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%23fefefe;%7D%3C/style%3E%3C/defs%3E%3Cpath class='cls-1' d='M142.94,20.2l-7.88,29H135l-8.15-29h-5.55l-8,28.93h-.11l-8-28.87H99.27l10.84,37.27h5.44l8.2-29.24h.1l8.41,29.24h5.66L148.39,20.2Zm17.82,0L146.48,57.42h5.82l3.28-8.88h16.65l3.34,8.88h6L167.16,20.2Zm-3.44,23.52,6.45-17.55h.11l6.56,17.55ZM278.2,20.2v4.86h12.32V57.42h5.6V25.06h12.32V20.2ZM248.11,57.42h25.54V52.55H253.71V40.61h18.35V35.85H253.71V25.06h19.94V20.2H248.11ZM223.26,20.2h-5.61V57.42H242V52.55H223.26Zm-30.46,0h-5.6V57.42h24.32V52.55H192.8Zm-154,38A19.41,19.41,0,1,1,57.92,35.57H77.47a38.81,38.81,0,1,0,0,6.47H57.92A19.39,19.39,0,0,1,38.81,58.21Z'/%3E%3C/svg%3E`;default:return t=e,`data:image/svg+xml,%3Csvg width='${e}' height='${t}' viewBox='0 0 1024 1024' fill='none' xmlns='http://www.w3.org/2000/svg'%3E %3Crect width='1024' height='1024' fill='%230052FF'/%3E %3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M152 512C152 710.823 313.177 872 512 872C710.823 872 872 710.823 872 512C872 313.177 710.823 152 512 152C313.177 152 152 313.177 152 512ZM420 396C406.745 396 396 406.745 396 420V604C396 617.255 406.745 628 420 628H604C617.255 628 628 617.255 628 604V420C628 406.745 617.255 396 604 396H420Z' fill='white'/%3E %3C/svg%3E `}};cN.walletLogo=U0r});var wJe=O(uN=>{"use strict";x();T();Object.defineProperty(uN,"__esModule",{value:!0});uN.ScopedLocalStorage=void 0;var UK=class{constructor(e){this.scope=e}setItem(e,t){localStorage.setItem(this.scopedKey(e),t)}getItem(e){return localStorage.getItem(this.scopedKey(e))}removeItem(e){localStorage.removeItem(this.scopedKey(e))}clear(){let e=this.scopedKey(""),t=[];for(let n=0;nlocalStorage.removeItem(n))}scopedKey(e){return`${this.scope}:${e}`}};uN.ScopedLocalStorage=UK});var wC=O(jK=>{"use strict";x();T();Object.defineProperty(jK,"__esModule",{value:!0});var W0r=zm();function xJe(r,e,t){try{Reflect.apply(r,e,t)}catch(n){setTimeout(()=>{throw n})}}function j0r(r){let e=r.length,t=new Array(e);for(let n=0;n0&&([s]=t),s instanceof Error)throw s;let c=new Error(`Unhandled error.${s?` (${s.message})`:""}`);throw c.context=s,c}let i=a[e];if(i===void 0)return!1;if(typeof i=="function")xJe(i,this,t);else{let s=i.length,c=j0r(i);for(let l=0;l{x();T();kJe.exports=xC;xC.default=xC;xC.stable=CJe;xC.stableStringify=CJe;var lN="[...]",TJe="[Circular]",Jv=[],Zv=[];function _Je(){return{depthLimit:Number.MAX_SAFE_INTEGER,edgesLimit:Number.MAX_SAFE_INTEGER}}function xC(r,e,t,n){typeof n>"u"&&(n=_Je()),zK(r,"",0,[],void 0,0,n);var a;try{Zv.length===0?a=JSON.stringify(r,e,t):a=JSON.stringify(r,EJe(e),t)}catch{return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;Jv.length!==0;){var i=Jv.pop();i.length===4?Object.defineProperty(i[0],i[1],i[3]):i[0][i[1]]=i[2]}}return a}function Ix(r,e,t,n){var a=Object.getOwnPropertyDescriptor(n,t);a.get!==void 0?a.configurable?(Object.defineProperty(n,t,{value:r}),Jv.push([n,t,e,a])):Zv.push([e,t,r]):(n[t]=r,Jv.push([n,t,e]))}function zK(r,e,t,n,a,i,s){i+=1;var c;if(typeof r=="object"&&r!==null){for(c=0;cs.depthLimit){Ix(lN,r,e,a);return}if(typeof s.edgesLimit<"u"&&t+1>s.edgesLimit){Ix(lN,r,e,a);return}if(n.push(r),Array.isArray(r))for(c=0;ce?1:0}function CJe(r,e,t,n){typeof n>"u"&&(n=_Je());var a=HK(r,"",0,[],void 0,0,n)||r,i;try{Zv.length===0?i=JSON.stringify(a,e,t):i=JSON.stringify(a,EJe(e),t)}catch{return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;Jv.length!==0;){var s=Jv.pop();s.length===4?Object.defineProperty(s[0],s[1],s[3]):s[0][s[1]]=s[2]}}return i}function HK(r,e,t,n,a,i,s){i+=1;var c;if(typeof r=="object"&&r!==null){for(c=0;cs.depthLimit){Ix(lN,r,e,a);return}if(typeof s.edgesLimit<"u"&&t+1>s.edgesLimit){Ix(lN,r,e,a);return}if(n.push(r),Array.isArray(r))for(c=0;c0)for(var n=0;n{"use strict";x();T();Object.defineProperty(Px,"__esModule",{value:!0});Px.EthereumProviderError=Px.EthereumRpcError=void 0;var H0r=VK(),dN=class extends Error{constructor(e,t,n){if(!Number.isInteger(e))throw new Error('"code" must be an integer.');if(!t||typeof t!="string")throw new Error('"message" must be a nonempty string.');super(t),this.code=e,n!==void 0&&(this.data=n)}serialize(){let e={code:this.code,message:this.message};return this.data!==void 0&&(e.data=this.data),this.stack&&(e.stack=this.stack),e}toString(){return H0r.default(this.serialize(),G0r,2)}};Px.EthereumRpcError=dN;var GK=class extends dN{constructor(e,t,n){if(!V0r(e))throw new Error('"code" must be an integer such that: 1000 <= code <= 4999');super(e,t,n)}};Px.EthereumProviderError=GK;function V0r(r){return Number.isInteger(r)&&r>=1e3&&r<=4999}function G0r(r,e){if(e!=="[Circular]")return e}});var hN=O(Rx=>{"use strict";x();T();Object.defineProperty(Rx,"__esModule",{value:!0});Rx.errorValues=Rx.errorCodes=void 0;Rx.errorCodes={rpc:{invalidInput:-32e3,resourceNotFound:-32001,resourceUnavailable:-32002,transactionRejected:-32003,methodNotSupported:-32004,limitExceeded:-32005,parse:-32700,invalidRequest:-32600,methodNotFound:-32601,invalidParams:-32602,internal:-32603},provider:{userRejectedRequest:4001,unauthorized:4100,unsupportedMethod:4200,disconnected:4900,chainDisconnected:4901}};Rx.errorValues={"-32700":{standard:"JSON RPC 2.0",message:"Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text."},"-32600":{standard:"JSON RPC 2.0",message:"The JSON sent is not a valid Request object."},"-32601":{standard:"JSON RPC 2.0",message:"The method does not exist / is not available."},"-32602":{standard:"JSON RPC 2.0",message:"Invalid method parameter(s)."},"-32603":{standard:"JSON RPC 2.0",message:"Internal JSON-RPC error."},"-32000":{standard:"EIP-1474",message:"Invalid input."},"-32001":{standard:"EIP-1474",message:"Resource not found."},"-32002":{standard:"EIP-1474",message:"Resource unavailable."},"-32003":{standard:"EIP-1474",message:"Transaction rejected."},"-32004":{standard:"EIP-1474",message:"Method not supported."},"-32005":{standard:"EIP-1474",message:"Request limit exceeded."},4001:{standard:"EIP-1193",message:"User rejected the request."},4100:{standard:"EIP-1193",message:"The requested account and/or method has not been authorized by the user."},4200:{standard:"EIP-1193",message:"The requested method is not supported by this Ethereum provider."},4900:{standard:"EIP-1193",message:"The provider is disconnected from all chains."},4901:{standard:"EIP-1193",message:"The provider is disconnected from the specified chain."}}});var KK=O(Ap=>{"use strict";x();T();Object.defineProperty(Ap,"__esModule",{value:!0});Ap.serializeError=Ap.isValidCode=Ap.getMessageFromCode=Ap.JSON_RPC_SERVER_ERROR_MESSAGE=void 0;var fN=hN(),Z0r=pN(),SJe=fN.errorCodes.rpc.internal,J0r="Unspecified error message. This is a bug, please report it.",K0r={code:SJe,message:JK(SJe)};Ap.JSON_RPC_SERVER_ERROR_MESSAGE="Unspecified server error.";function JK(r,e=J0r){if(Number.isInteger(r)){let t=r.toString();if(ZK(fN.errorValues,t))return fN.errorValues[t].message;if(IJe(r))return Ap.JSON_RPC_SERVER_ERROR_MESSAGE}return e}Ap.getMessageFromCode=JK;function MJe(r){if(!Number.isInteger(r))return!1;let e=r.toString();return!!(fN.errorValues[e]||IJe(r))}Ap.isValidCode=MJe;function Q0r(r,{fallbackError:e=K0r,shouldIncludeStack:t=!1}={}){var n,a;if(!e||!Number.isInteger(e.code)||typeof e.message!="string")throw new Error("Must provide fallback error with integer number code and string message.");if(r instanceof Z0r.EthereumRpcError)return r.serialize();let i={};if(r&&typeof r=="object"&&!Array.isArray(r)&&ZK(r,"code")&&MJe(r.code)){let c=r;i.code=c.code,c.message&&typeof c.message=="string"?(i.message=c.message,ZK(c,"data")&&(i.data=c.data)):(i.message=JK(i.code),i.data={originalError:AJe(r)})}else{i.code=e.code;let c=(n=r)===null||n===void 0?void 0:n.message;i.message=c&&typeof c=="string"?c:e.message,i.data={originalError:AJe(r)}}let s=(a=r)===null||a===void 0?void 0:a.stack;return t&&r&&s&&typeof s=="string"&&(i.stack=s),i}Ap.serializeError=Q0r;function IJe(r){return r>=-32099&&r<=-32e3}function AJe(r){return r&&typeof r=="object"&&!Array.isArray(r)?Object.assign({},r):r}function ZK(r,e){return Object.prototype.hasOwnProperty.call(r,e)}});var NJe=O(mN=>{"use strict";x();T();Object.defineProperty(mN,"__esModule",{value:!0});mN.ethErrors=void 0;var QK=pN(),PJe=KK(),_c=hN();mN.ethErrors={rpc:{parse:r=>kd(_c.errorCodes.rpc.parse,r),invalidRequest:r=>kd(_c.errorCodes.rpc.invalidRequest,r),invalidParams:r=>kd(_c.errorCodes.rpc.invalidParams,r),methodNotFound:r=>kd(_c.errorCodes.rpc.methodNotFound,r),internal:r=>kd(_c.errorCodes.rpc.internal,r),server:r=>{if(!r||typeof r!="object"||Array.isArray(r))throw new Error("Ethereum RPC Server errors must provide single object argument.");let{code:e}=r;if(!Number.isInteger(e)||e>-32005||e<-32099)throw new Error('"code" must be an integer such that: -32099 <= code <= -32005');return kd(e,r)},invalidInput:r=>kd(_c.errorCodes.rpc.invalidInput,r),resourceNotFound:r=>kd(_c.errorCodes.rpc.resourceNotFound,r),resourceUnavailable:r=>kd(_c.errorCodes.rpc.resourceUnavailable,r),transactionRejected:r=>kd(_c.errorCodes.rpc.transactionRejected,r),methodNotSupported:r=>kd(_c.errorCodes.rpc.methodNotSupported,r),limitExceeded:r=>kd(_c.errorCodes.rpc.limitExceeded,r)},provider:{userRejectedRequest:r=>TC(_c.errorCodes.provider.userRejectedRequest,r),unauthorized:r=>TC(_c.errorCodes.provider.unauthorized,r),unsupportedMethod:r=>TC(_c.errorCodes.provider.unsupportedMethod,r),disconnected:r=>TC(_c.errorCodes.provider.disconnected,r),chainDisconnected:r=>TC(_c.errorCodes.provider.chainDisconnected,r),custom:r=>{if(!r||typeof r!="object"||Array.isArray(r))throw new Error("Ethereum Provider custom errors must provide single object argument.");let{code:e,message:t,data:n}=r;if(!t||typeof t!="string")throw new Error('"message" must be a nonempty string');return new QK.EthereumProviderError(e,t,n)}}};function kd(r,e){let[t,n]=RJe(e);return new QK.EthereumRpcError(r,t||PJe.getMessageFromCode(r),n)}function TC(r,e){let[t,n]=RJe(e);return new QK.EthereumProviderError(r,t||PJe.getMessageFromCode(r),n)}function RJe(r){if(r){if(typeof r=="string")return[r];if(typeof r=="object"&&!Array.isArray(r)){let{message:e,data:t}=r;if(e&&typeof e!="string")throw new Error("Must specify string message.");return[e||void 0,t]}}return[]}});var yN=O(Fu=>{"use strict";x();T();Object.defineProperty(Fu,"__esModule",{value:!0});Fu.getMessageFromCode=Fu.serializeError=Fu.EthereumProviderError=Fu.EthereumRpcError=Fu.ethErrors=Fu.errorCodes=void 0;var OJe=pN();Object.defineProperty(Fu,"EthereumRpcError",{enumerable:!0,get:function(){return OJe.EthereumRpcError}});Object.defineProperty(Fu,"EthereumProviderError",{enumerable:!0,get:function(){return OJe.EthereumProviderError}});var LJe=KK();Object.defineProperty(Fu,"serializeError",{enumerable:!0,get:function(){return LJe.serializeError}});Object.defineProperty(Fu,"getMessageFromCode",{enumerable:!0,get:function(){return LJe.getMessageFromCode}});var X0r=NJe();Object.defineProperty(Fu,"ethErrors",{enumerable:!0,get:function(){return X0r.ethErrors}});var Y0r=hN();Object.defineProperty(Fu,"errorCodes",{enumerable:!0,get:function(){return Y0r.errorCodes}})});var vN=O(gN=>{"use strict";x();T();Object.defineProperty(gN,"__esModule",{value:!0});gN.EVENTS=void 0;gN.EVENTS={STARTED_CONNECTING:"walletlink_sdk.started.connecting",CONNECTED_STATE_CHANGE:"walletlink_sdk.connected",DISCONNECTED:"walletlink_sdk.disconnected",METADATA_DESTROYED:"walletlink_sdk_metadata_destroyed",LINKED:"walletlink_sdk.linked",FAILURE:"walletlink_sdk.generic_failure",SESSION_CONFIG_RECEIVED:"walletlink_sdk.session_config_event_received",ETH_ACCOUNTS_STATE:"walletlink_sdk.eth_accounts_state",SESSION_STATE_CHANGE:"walletlink_sdk.session_state_change",UNLINKED_ERROR_STATE:"walletlink_sdk.unlinked_error_state",SKIPPED_CLEARING_SESSION:"walletlink_sdk.skipped_clearing_session",GENERAL_ERROR:"walletlink_sdk.general_error",WEB3_REQUEST:"walletlink_sdk.web3.request",WEB3_REQUEST_PUBLISHED:"walletlink_sdk.web3.request_published",WEB3_RESPONSE:"walletlink_sdk.web3.response",UNKNOWN_ADDRESS_ENCOUNTERED:"walletlink_sdk.unknown_address_encountered"}});var Nx=O(XK=>{"use strict";x();T();Object.defineProperty(XK,"__esModule",{value:!0});function $0r(r){return typeof r=="function"}XK.isFunction=$0r});var _C=O($K=>{"use strict";x();T();Object.defineProperty($K,"__esModule",{value:!0});var YK=!1;$K.config={Promise:void 0,set useDeprecatedSynchronousErrorHandling(r){if(r){var e=new Error;console.warn(`DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: -`+e.stack)}else YK&&console.log("RxJS: Back to a better error behavior. Thank you. <3");YK=r},get useDeprecatedSynchronousErrorHandling(){return YK}}});var bN=O(eQ=>{"use strict";x();T();Object.defineProperty(eQ,"__esModule",{value:!0});function eyr(r){setTimeout(function(){throw r},0)}eQ.hostReportError=eyr});var rQ=O(tQ=>{"use strict";x();T();Object.defineProperty(tQ,"__esModule",{value:!0});var tyr=_C(),ryr=bN();tQ.empty={closed:!0,next:function(r){},error:function(r){if(tyr.config.useDeprecatedSynchronousErrorHandling)throw r;ryr.hostReportError(r)},complete:function(){}}});var Xc=O(nQ=>{"use strict";x();T();Object.defineProperty(nQ,"__esModule",{value:!0});nQ.isArray=function(){return Array.isArray||function(r){return r&&typeof r.length=="number"}}()});var wN=O(aQ=>{"use strict";x();T();Object.defineProperty(aQ,"__esModule",{value:!0});function nyr(r){return r!==null&&typeof r=="object"}aQ.isObject=nyr});var sQ=O(iQ=>{"use strict";x();T();Object.defineProperty(iQ,"__esModule",{value:!0});var ayr=function(){function r(e){return Error.call(this),this.message=e?e.length+` errors occurred during unsubscription: -`+e.map(function(t,n){return n+1+") "+t.toString()}).join(` - `):"",this.name="UnsubscriptionError",this.errors=e,this}return r.prototype=Object.create(Error.prototype),r}();iQ.UnsubscriptionError=ayr});var Ps=O(oQ=>{"use strict";x();T();Object.defineProperty(oQ,"__esModule",{value:!0});var iyr=Xc(),syr=wN(),oyr=Nx(),xN=sQ(),cyr=function(){function r(e){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,e&&(this._ctorUnsubscribe=!0,this._unsubscribe=e)}return r.prototype.unsubscribe=function(){var e;if(!this.closed){var t=this,n=t._parentOrParents,a=t._ctorUnsubscribe,i=t._unsubscribe,s=t._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,n instanceof r)n.remove(this);else if(n!==null)for(var c=0;c{"use strict";x();T();Object.defineProperty(CC,"__esModule",{value:!0});CC.rxSubscriber=function(){return typeof Symbol=="function"?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()}();CC.$$rxSubscriber=CC.rxSubscriber});var lr=O(Lx=>{"use strict";x();T();var DJe=Lx&&Lx.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(Lx,"__esModule",{value:!0});var qJe=Nx(),cQ=rQ(),uyr=Ps(),lyr=TN(),Ox=_C(),_N=bN(),FJe=function(r){DJe(e,r);function e(t,n,a){var i=r.call(this)||this;switch(i.syncErrorValue=null,i.syncErrorThrown=!1,i.syncErrorThrowable=!1,i.isStopped=!1,arguments.length){case 0:i.destination=cQ.empty;break;case 1:if(!t){i.destination=cQ.empty;break}if(typeof t=="object"){t instanceof e?(i.syncErrorThrowable=t.syncErrorThrowable,i.destination=t,t.add(i)):(i.syncErrorThrowable=!0,i.destination=new uQ(i,t));break}default:i.syncErrorThrowable=!0,i.destination=new uQ(i,t,n,a);break}return i}return e.prototype[lyr.rxSubscriber]=function(){return this},e.create=function(t,n,a){var i=new e(t,n,a);return i.syncErrorThrowable=!1,i},e.prototype.next=function(t){this.isStopped||this._next(t)},e.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},e.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,r.prototype.unsubscribe.call(this))},e.prototype._next=function(t){this.destination.next(t)},e.prototype._error=function(t){this.destination.error(t),this.unsubscribe()},e.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},e.prototype._unsubscribeAndRecycle=function(){var t=this._parentOrParents;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=t,this},e}(uyr.Subscription);Lx.Subscriber=FJe;var uQ=function(r){DJe(e,r);function e(t,n,a,i){var s=r.call(this)||this;s._parentSubscriber=t;var c,l=s;return qJe.isFunction(n)?c=n:n&&(c=n.next,a=n.error,i=n.complete,n!==cQ.empty&&(l=Object.create(n),qJe.isFunction(l.unsubscribe)&&s.add(l.unsubscribe.bind(l)),l.unsubscribe=s.unsubscribe.bind(s))),s._context=l,s._next=c,s._error=a,s._complete=i,s}return e.prototype.next=function(t){if(!this.isStopped&&this._next){var n=this._parentSubscriber;!Ox.config.useDeprecatedSynchronousErrorHandling||!n.syncErrorThrowable?this.__tryOrUnsub(this._next,t):this.__tryOrSetError(n,this._next,t)&&this.unsubscribe()}},e.prototype.error=function(t){if(!this.isStopped){var n=this._parentSubscriber,a=Ox.config.useDeprecatedSynchronousErrorHandling;if(this._error)!a||!n.syncErrorThrowable?(this.__tryOrUnsub(this._error,t),this.unsubscribe()):(this.__tryOrSetError(n,this._error,t),this.unsubscribe());else if(n.syncErrorThrowable)a?(n.syncErrorValue=t,n.syncErrorThrown=!0):_N.hostReportError(t),this.unsubscribe();else{if(this.unsubscribe(),a)throw t;_N.hostReportError(t)}}},e.prototype.complete=function(){var t=this;if(!this.isStopped){var n=this._parentSubscriber;if(this._complete){var a=function(){return t._complete.call(t._context)};!Ox.config.useDeprecatedSynchronousErrorHandling||!n.syncErrorThrowable?(this.__tryOrUnsub(a),this.unsubscribe()):(this.__tryOrSetError(n,a),this.unsubscribe())}else this.unsubscribe()}},e.prototype.__tryOrUnsub=function(t,n){try{t.call(this._context,n)}catch(a){if(this.unsubscribe(),Ox.config.useDeprecatedSynchronousErrorHandling)throw a;_N.hostReportError(a)}},e.prototype.__tryOrSetError=function(t,n,a){if(!Ox.config.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{n.call(this._context,a)}catch(i){return Ox.config.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=i,t.syncErrorThrown=!0,!0):(_N.hostReportError(i),!0)}return!1},e.prototype._unsubscribe=function(){var t=this._parentSubscriber;this._context=null,this._parentSubscriber=null,t.unsubscribe()},e}(FJe);Lx.SafeSubscriber=uQ});var CN=O(lQ=>{"use strict";x();T();Object.defineProperty(lQ,"__esModule",{value:!0});var dyr=lr();function pyr(r){for(;r;){var e=r,t=e.closed,n=e.destination,a=e.isStopped;if(t||a)return!1;n&&n instanceof dyr.Subscriber?r=n:r=null}return!0}lQ.canReportError=pyr});var WJe=O(pQ=>{"use strict";x();T();Object.defineProperty(pQ,"__esModule",{value:!0});var dQ=lr(),UJe=TN(),hyr=rQ();function fyr(r,e,t){if(r){if(r instanceof dQ.Subscriber)return r;if(r[UJe.rxSubscriber])return r[UJe.rxSubscriber]()}return!r&&!e&&!t?new dQ.Subscriber(hyr.empty):new dQ.Subscriber(r,e,t)}pQ.toSubscriber=fyr});var Kv=O(hQ=>{"use strict";x();T();Object.defineProperty(hQ,"__esModule",{value:!0});hQ.observable=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}()});var cy=O(fQ=>{"use strict";x();T();Object.defineProperty(fQ,"__esModule",{value:!0});function myr(r){return r}fQ.identity=myr});var kN=O(EN=>{"use strict";x();T();Object.defineProperty(EN,"__esModule",{value:!0});var yyr=cy();function gyr(){for(var r=[],e=0;e{"use strict";x();T();Object.defineProperty(mQ,"__esModule",{value:!0});var vyr=CN(),byr=WJe(),wyr=Kv(),xyr=kN(),SN=_C(),Tyr=function(){function r(e){this._isScalar=!1,e&&(this._subscribe=e)}return r.prototype.lift=function(e){var t=new r;return t.source=this,t.operator=e,t},r.prototype.subscribe=function(e,t,n){var a=this.operator,i=byr.toSubscriber(e,t,n);if(a?i.add(a.call(i,this.source)):i.add(this.source||SN.config.useDeprecatedSynchronousErrorHandling&&!i.syncErrorThrowable?this._subscribe(i):this._trySubscribe(i)),SN.config.useDeprecatedSynchronousErrorHandling&&i.syncErrorThrowable&&(i.syncErrorThrowable=!1,i.syncErrorThrown))throw i.syncErrorValue;return i},r.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){SN.config.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=t),vyr.canReportError(e)?e.error(t):console.warn(t)}},r.prototype.forEach=function(e,t){var n=this;return t=zJe(t),new t(function(a,i){var s;s=n.subscribe(function(c){try{e(c)}catch(l){i(l),s&&s.unsubscribe()}},i,a)})},r.prototype._subscribe=function(e){var t=this.source;return t&&t.subscribe(e)},r.prototype[wyr.observable]=function(){return this},r.prototype.pipe=function(){for(var e=[],t=0;t{"use strict";x();T();Object.defineProperty(yQ,"__esModule",{value:!0});var _yr=function(){function r(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return r.prototype=Object.create(Error.prototype),r}();yQ.ObjectUnsubscribedError=_yr});var gQ=O(kC=>{"use strict";x();T();var Cyr=kC&&kC.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(kC,"__esModule",{value:!0});var Eyr=Ps(),kyr=function(r){Cyr(e,r);function e(t,n){var a=r.call(this)||this;return a.subject=t,a.subscriber=n,a.closed=!1,a}return e.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var t=this.subject,n=t.observers;if(this.subject=null,!(!n||n.length===0||t.isStopped||t.closed)){var a=n.indexOf(this.subscriber);a!==-1&&n.splice(a,1)}}},e}(Eyr.Subscription);kC.SubjectSubscription=kyr});var Cc=O(Qv=>{"use strict";x();T();var wQ=Qv&&Qv.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(Qv,"__esModule",{value:!0});var HJe=Sn(),Syr=lr(),vQ=Ps(),SC=EC(),Ayr=gQ(),Myr=TN(),VJe=function(r){wQ(e,r);function e(t){var n=r.call(this,t)||this;return n.destination=t,n}return e}(Syr.Subscriber);Qv.SubjectSubscriber=VJe;var GJe=function(r){wQ(e,r);function e(){var t=r.call(this)||this;return t.observers=[],t.closed=!1,t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return e.prototype[Myr.rxSubscriber]=function(){return new VJe(this)},e.prototype.lift=function(t){var n=new bQ(this,this);return n.operator=t,n},e.prototype.next=function(t){if(this.closed)throw new SC.ObjectUnsubscribedError;if(!this.isStopped)for(var n=this.observers,a=n.length,i=n.slice(),s=0;s{"use strict";x();T();var Iyr=AC&&AC.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(AC,"__esModule",{value:!0});var Pyr=lr();function Ryr(){return function(e){return e.lift(new Nyr(e))}}AC.refCount=Ryr;var Nyr=function(){function r(e){this.connectable=e}return r.prototype.call=function(e,t){var n=this.connectable;n._refCount++;var a=new Oyr(e,n),i=t.subscribe(a);return a.closed||(a.connection=n.connect()),i},r}(),Oyr=function(r){Iyr(e,r);function e(t,n){var a=r.call(this,t)||this;return a.connectable=n,a}return e.prototype._unsubscribe=function(){var t=this.connectable;if(!t){this.connection=null;return}this.connectable=null;var n=t._refCount;if(n<=0){this.connection=null;return}if(t._refCount=n-1,n>1){this.connection=null;return}var a=this.connection,i=t._connection;this.connection=null,i&&(!a||i===a)&&i.unsubscribe()},e}(Pyr.Subscriber)});var TQ=O(Bx=>{"use strict";x();T();var xQ=Bx&&Bx.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(Bx,"__esModule",{value:!0});var Lyr=Cc(),Byr=Sn(),qyr=lr(),ZJe=Ps(),Dyr=AN(),JJe=function(r){xQ(e,r);function e(t,n){var a=r.call(this)||this;return a.source=t,a.subjectFactory=n,a._refCount=0,a._isComplete=!1,a}return e.prototype._subscribe=function(t){return this.getSubject().subscribe(t)},e.prototype.getSubject=function(){var t=this._subject;return(!t||t.isStopped)&&(this._subject=this.subjectFactory()),this._subject},e.prototype.connect=function(){var t=this._connection;return t||(this._isComplete=!1,t=this._connection=new ZJe.Subscription,t.add(this.source.subscribe(new Fyr(this.getSubject(),this))),t.closed&&(this._connection=null,t=ZJe.Subscription.EMPTY)),t},e.prototype.refCount=function(){return Dyr.refCount()(this)},e}(Byr.Observable);Bx.ConnectableObservable=JJe;Bx.connectableObservableDescriptor=function(){var r=JJe.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:r._subscribe},_isComplete:{value:r._isComplete,writable:!0},getSubject:{value:r.getSubject},connect:{value:r.connect},refCount:{value:r.refCount}}}();var Fyr=function(r){xQ(e,r);function e(t,n){var a=r.call(this,t)||this;return a.connectable=n,a}return e.prototype._error=function(t){this._unsubscribe(),r.prototype._error.call(this,t)},e.prototype._complete=function(){this.connectable._isComplete=!0,this._unsubscribe(),r.prototype._complete.call(this)},e.prototype._unsubscribe=function(){var t=this.connectable;if(t){this.connectable=null;var n=t._connection;t._refCount=0,t._subject=null,t._connection=null,n&&n.unsubscribe()}},e}(Lyr.SubjectSubscriber),Amn=function(){function r(e){this.connectable=e}return r.prototype.call=function(e,t){var n=this.connectable;n._refCount++;var a=new Uyr(e,n),i=t.subscribe(a);return a.closed||(a.connection=n.connect()),i},r}(),Uyr=function(r){xQ(e,r);function e(t,n){var a=r.call(this,t)||this;return a.connectable=n,a}return e.prototype._unsubscribe=function(){var t=this.connectable;if(!t){this.connection=null;return}this.connectable=null;var n=t._refCount;if(n<=0){this.connection=null;return}if(t._refCount=n-1,n>1){this.connection=null;return}var a=this.connection,i=t._connection;this.connection=null,i&&(!a||i===a)&&i.unsubscribe()},e}(qyr.Subscriber)});var CQ=O(qx=>{"use strict";x();T();var MN=qx&&qx.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(qx,"__esModule",{value:!0});var KJe=lr(),QJe=Ps(),Wyr=Sn(),jyr=Cc();function zyr(r,e,t,n){return function(a){return a.lift(new Hyr(r,e,t,n))}}qx.groupBy=zyr;var Hyr=function(){function r(e,t,n,a){this.keySelector=e,this.elementSelector=t,this.durationSelector=n,this.subjectSelector=a}return r.prototype.call=function(e,t){return t.subscribe(new Vyr(e,this.keySelector,this.elementSelector,this.durationSelector,this.subjectSelector))},r}(),Vyr=function(r){MN(e,r);function e(t,n,a,i,s){var c=r.call(this,t)||this;return c.keySelector=n,c.elementSelector=a,c.durationSelector=i,c.subjectSelector=s,c.groups=null,c.attemptedToUnsubscribe=!1,c.count=0,c}return e.prototype._next=function(t){var n;try{n=this.keySelector(t)}catch(a){this.error(a);return}this._group(t,n)},e.prototype._group=function(t,n){var a=this.groups;a||(a=this.groups=new Map);var i=a.get(n),s;if(this.elementSelector)try{s=this.elementSelector(t)}catch(d){this.error(d)}else s=t;if(!i){i=this.subjectSelector?this.subjectSelector():new jyr.Subject,a.set(n,i);var c=new _Q(n,i,this);if(this.destination.next(c),this.durationSelector){var l=void 0;try{l=this.durationSelector(new _Q(n,i))}catch(d){this.error(d);return}this.add(l.subscribe(new Gyr(n,i,this)))}}i.closed||i.next(s)},e.prototype._error=function(t){var n=this.groups;n&&(n.forEach(function(a,i){a.error(t)}),n.clear()),this.destination.error(t)},e.prototype._complete=function(){var t=this.groups;t&&(t.forEach(function(n,a){n.complete()}),t.clear()),this.destination.complete()},e.prototype.removeGroup=function(t){this.groups.delete(t)},e.prototype.unsubscribe=function(){this.closed||(this.attemptedToUnsubscribe=!0,this.count===0&&r.prototype.unsubscribe.call(this))},e}(KJe.Subscriber),Gyr=function(r){MN(e,r);function e(t,n,a){var i=r.call(this,n)||this;return i.key=t,i.group=n,i.parent=a,i}return e.prototype._next=function(t){this.complete()},e.prototype._unsubscribe=function(){var t=this,n=t.parent,a=t.key;this.key=this.parent=null,n&&n.removeGroup(a)},e}(KJe.Subscriber),_Q=function(r){MN(e,r);function e(t,n,a){var i=r.call(this)||this;return i.key=t,i.groupSubject=n,i.refCountSubscription=a,i}return e.prototype._subscribe=function(t){var n=new QJe.Subscription,a=this,i=a.refCountSubscription,s=a.groupSubject;return i&&!i.closed&&n.add(new Zyr(i)),n.add(s.subscribe(t)),n},e}(Wyr.Observable);qx.GroupedObservable=_Q;var Zyr=function(r){MN(e,r);function e(t){var n=r.call(this)||this;return n.parent=t,t.count++,n}return e.prototype.unsubscribe=function(){var t=this.parent;!t.closed&&!this.closed&&(r.prototype.unsubscribe.call(this),t.count-=1,t.count===0&&t.attemptedToUnsubscribe&&t.unsubscribe())},e}(QJe.Subscription)});var EQ=O(MC=>{"use strict";x();T();var Jyr=MC&&MC.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(MC,"__esModule",{value:!0});var Kyr=Cc(),Qyr=EC(),Xyr=function(r){Jyr(e,r);function e(t){var n=r.call(this)||this;return n._value=t,n}return Object.defineProperty(e.prototype,"value",{get:function(){return this.getValue()},enumerable:!0,configurable:!0}),e.prototype._subscribe=function(t){var n=r.prototype._subscribe.call(this,t);return n&&!n.closed&&t.next(this._value),n},e.prototype.getValue=function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new Qyr.ObjectUnsubscribedError;return this._value},e.prototype.next=function(t){r.prototype.next.call(this,this._value=t)},e}(Kyr.Subject);MC.BehaviorSubject=Xyr});var XJe=O(IC=>{"use strict";x();T();var Yyr=IC&&IC.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(IC,"__esModule",{value:!0});var $yr=Ps(),egr=function(r){Yyr(e,r);function e(t,n){return r.call(this)||this}return e.prototype.schedule=function(t,n){return n===void 0&&(n=0),this},e}($yr.Subscription);IC.Action=egr});var Dx=O(PC=>{"use strict";x();T();var tgr=PC&&PC.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(PC,"__esModule",{value:!0});var rgr=XJe(),ngr=function(r){tgr(e,r);function e(t,n){var a=r.call(this,t,n)||this;return a.scheduler=t,a.work=n,a.pending=!1,a}return e.prototype.schedule=function(t,n){if(n===void 0&&(n=0),this.closed)return this;this.state=t;var a=this.id,i=this.scheduler;return a!=null&&(this.id=this.recycleAsyncId(i,a,n)),this.pending=!0,this.delay=n,this.id=this.id||this.requestAsyncId(i,this.id,n),this},e.prototype.requestAsyncId=function(t,n,a){return a===void 0&&(a=0),setInterval(t.flush.bind(t,this),a)},e.prototype.recycleAsyncId=function(t,n,a){if(a===void 0&&(a=0),a!==null&&this.delay===a&&this.pending===!1)return n;clearInterval(n)},e.prototype.execute=function(t,n){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var a=this._execute(t,n);if(a)return a;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},e.prototype._execute=function(t,n){var a=!1,i=void 0;try{this.work(t)}catch(s){a=!0,i=!!s&&s||new Error(s)}if(a)return this.unsubscribe(),i},e.prototype._unsubscribe=function(){var t=this.id,n=this.scheduler,a=n.actions,i=a.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,i!==-1&&a.splice(i,1),t!=null&&(this.id=this.recycleAsyncId(n,t,null)),this.delay=null},e}(rgr.Action);PC.AsyncAction=ngr});var YJe=O(RC=>{"use strict";x();T();var agr=RC&&RC.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(RC,"__esModule",{value:!0});var igr=Dx(),sgr=function(r){agr(e,r);function e(t,n){var a=r.call(this,t,n)||this;return a.scheduler=t,a.work=n,a}return e.prototype.schedule=function(t,n){return n===void 0&&(n=0),n>0?r.prototype.schedule.call(this,t,n):(this.delay=n,this.state=t,this.scheduler.flush(this),this)},e.prototype.execute=function(t,n){return n>0||this.closed?r.prototype.execute.call(this,t,n):this._execute(t,n)},e.prototype.requestAsyncId=function(t,n,a){return a===void 0&&(a=0),a!==null&&a>0||a===null&&this.delay>0?r.prototype.requestAsyncId.call(this,t,n,a):t.flush(this)},e}(igr.AsyncAction);RC.QueueAction=sgr});var SQ=O(kQ=>{"use strict";x();T();Object.defineProperty(kQ,"__esModule",{value:!0});var ogr=function(){function r(e,t){t===void 0&&(t=r.now),this.SchedulerAction=e,this.now=t}return r.prototype.schedule=function(e,t,n){return t===void 0&&(t=0),new this.SchedulerAction(this,e).schedule(n,t)},r.now=function(){return Date.now()},r}();kQ.Scheduler=ogr});var Fx=O(NC=>{"use strict";x();T();var cgr=NC&&NC.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(NC,"__esModule",{value:!0});var $Je=SQ(),ugr=function(r){cgr(e,r);function e(t,n){n===void 0&&(n=$Je.Scheduler.now);var a=r.call(this,t,function(){return e.delegate&&e.delegate!==a?e.delegate.now():n()})||this;return a.actions=[],a.active=!1,a.scheduled=void 0,a}return e.prototype.schedule=function(t,n,a){return n===void 0&&(n=0),e.delegate&&e.delegate!==this?e.delegate.schedule(t,n,a):r.prototype.schedule.call(this,t,n,a)},e.prototype.flush=function(t){var n=this.actions;if(this.active){n.push(t);return}var a;this.active=!0;do if(a=t.execute(t.state,t.delay))break;while(t=n.shift());if(this.active=!1,a){for(;t=n.shift();)t.unsubscribe();throw a}},e}($Je.Scheduler);NC.AsyncScheduler=ugr});var eKe=O(OC=>{"use strict";x();T();var lgr=OC&&OC.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(OC,"__esModule",{value:!0});var dgr=Fx(),pgr=function(r){lgr(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e}(dgr.AsyncScheduler);OC.QueueScheduler=pgr});var AQ=O(LC=>{"use strict";x();T();Object.defineProperty(LC,"__esModule",{value:!0});var hgr=YJe(),fgr=eKe();LC.queueScheduler=new fgr.QueueScheduler(hgr.QueueAction);LC.queue=LC.queueScheduler});var Mp=O(BC=>{"use strict";x();T();Object.defineProperty(BC,"__esModule",{value:!0});var tKe=Sn();BC.EMPTY=new tKe.Observable(function(r){return r.complete()});function mgr(r){return r?ygr(r):BC.EMPTY}BC.empty=mgr;function ygr(r){return new tKe.Observable(function(e){return r.schedule(function(){return e.complete()})})}});var Ip=O(MQ=>{"use strict";x();T();Object.defineProperty(MQ,"__esModule",{value:!0});function ggr(r){return r&&typeof r.schedule=="function"}MQ.isScheduler=ggr});var PQ=O(IQ=>{"use strict";x();T();Object.defineProperty(IQ,"__esModule",{value:!0});IQ.subscribeToArray=function(r){return function(e){for(var t=0,n=r.length;t{"use strict";x();T();Object.defineProperty(RQ,"__esModule",{value:!0});var vgr=Sn(),bgr=Ps();function wgr(r,e){return new vgr.Observable(function(t){var n=new bgr.Subscription,a=0;return n.add(e.schedule(function(){if(a===r.length){t.complete();return}t.next(r[a++]),t.closed||n.add(this.schedule())})),n})}RQ.scheduleArray=wgr});var Ux=O(NQ=>{"use strict";x();T();Object.defineProperty(NQ,"__esModule",{value:!0});var xgr=Sn(),Tgr=PQ(),_gr=IN();function Cgr(r,e){return e?_gr.scheduleArray(r,e):new xgr.Observable(Tgr.subscribeToArray(r))}NQ.fromArray=Cgr});var qC=O(OQ=>{"use strict";x();T();Object.defineProperty(OQ,"__esModule",{value:!0});var Egr=Ip(),kgr=Ux(),Sgr=IN();function Agr(){for(var r=[],e=0;e{"use strict";x();T();Object.defineProperty(LQ,"__esModule",{value:!0});var rKe=Sn();function Mgr(r,e){return e?new rKe.Observable(function(t){return e.schedule(Igr,0,{error:r,subscriber:t})}):new rKe.Observable(function(t){return t.error(r)})}LQ.throwError=Mgr;function Igr(r){var e=r.error,t=r.subscriber;t.error(e)}});var FC=O(DC=>{"use strict";x();T();Object.defineProperty(DC,"__esModule",{value:!0});var Pgr=Mp(),Rgr=qC(),Ngr=PN(),Ogr;(function(r){r.NEXT="N",r.ERROR="E",r.COMPLETE="C"})(Ogr=DC.NotificationKind||(DC.NotificationKind={}));var Lgr=function(){function r(e,t,n){this.kind=e,this.value=t,this.error=n,this.hasValue=e==="N"}return r.prototype.observe=function(e){switch(this.kind){case"N":return e.next&&e.next(this.value);case"E":return e.error&&e.error(this.error);case"C":return e.complete&&e.complete()}},r.prototype.do=function(e,t,n){var a=this.kind;switch(a){case"N":return e&&e(this.value);case"E":return t&&t(this.error);case"C":return n&&n()}},r.prototype.accept=function(e,t,n){return e&&typeof e.next=="function"?this.observe(e):this.do(e,t,n)},r.prototype.toObservable=function(){var e=this.kind;switch(e){case"N":return Rgr.of(this.value);case"E":return Ngr.throwError(this.error);case"C":return Pgr.empty()}throw new Error("unexpected notification kind value")},r.createNext=function(e){return typeof e<"u"?new r("N",e):r.undefinedValueNotification},r.createError=function(e){return new r("E",void 0,e)},r.createComplete=function(){return r.completeNotification},r.completeNotification=new r("C"),r.undefinedValueNotification=new r("N",void 0),r}();DC.Notification=Lgr});var qQ=O(uy=>{"use strict";x();T();var Bgr=uy&&uy.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(uy,"__esModule",{value:!0});var qgr=lr(),BQ=FC();function Dgr(r,e){return e===void 0&&(e=0),function(n){return n.lift(new nKe(r,e))}}uy.observeOn=Dgr;var nKe=function(){function r(e,t){t===void 0&&(t=0),this.scheduler=e,this.delay=t}return r.prototype.call=function(e,t){return t.subscribe(new aKe(e,this.scheduler,this.delay))},r}();uy.ObserveOnOperator=nKe;var aKe=function(r){Bgr(e,r);function e(t,n,a){a===void 0&&(a=0);var i=r.call(this,t)||this;return i.scheduler=n,i.delay=a,i}return e.dispatch=function(t){var n=t.notification,a=t.destination;n.observe(a),this.unsubscribe()},e.prototype.scheduleMessage=function(t){var n=this.destination;n.add(this.scheduler.schedule(e.dispatch,this.delay,new iKe(t,this.destination)))},e.prototype._next=function(t){this.scheduleMessage(BQ.Notification.createNext(t))},e.prototype._error=function(t){this.scheduleMessage(BQ.Notification.createError(t)),this.unsubscribe()},e.prototype._complete=function(){this.scheduleMessage(BQ.Notification.createComplete()),this.unsubscribe()},e}(qgr.Subscriber);uy.ObserveOnSubscriber=aKe;var iKe=function(){function r(e,t){this.notification=e,this.destination=t}return r}();uy.ObserveOnMessage=iKe});var RN=O(UC=>{"use strict";x();T();var Fgr=UC&&UC.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(UC,"__esModule",{value:!0});var Ugr=Cc(),Wgr=AQ(),jgr=Ps(),zgr=qQ(),Hgr=EC(),Vgr=gQ(),Ggr=function(r){Fgr(e,r);function e(t,n,a){t===void 0&&(t=Number.POSITIVE_INFINITY),n===void 0&&(n=Number.POSITIVE_INFINITY);var i=r.call(this)||this;return i.scheduler=a,i._events=[],i._infiniteTimeWindow=!1,i._bufferSize=t<1?1:t,i._windowTime=n<1?1:n,n===Number.POSITIVE_INFINITY?(i._infiniteTimeWindow=!0,i.next=i.nextInfiniteTimeWindow):i.next=i.nextTimeWindow,i}return e.prototype.nextInfiniteTimeWindow=function(t){if(!this.isStopped){var n=this._events;n.push(t),n.length>this._bufferSize&&n.shift()}r.prototype.next.call(this,t)},e.prototype.nextTimeWindow=function(t){this.isStopped||(this._events.push(new Zgr(this._getNow(),t)),this._trimBufferThenGetEvents()),r.prototype.next.call(this,t)},e.prototype._subscribe=function(t){var n=this._infiniteTimeWindow,a=n?this._events:this._trimBufferThenGetEvents(),i=this.scheduler,s=a.length,c;if(this.closed)throw new Hgr.ObjectUnsubscribedError;if(this.isStopped||this.hasError?c=jgr.Subscription.EMPTY:(this.observers.push(t),c=new Vgr.SubjectSubscription(this,t)),i&&t.add(t=new zgr.ObserveOnSubscriber(t,i)),n)for(var l=0;ln&&(c=Math.max(c,s-n)),c>0&&i.splice(0,c),i},e}(Ugr.Subject);UC.ReplaySubject=Ggr;var Zgr=function(){function r(e,t){this.time=e,this.value=t}return r}()});var jC=O(WC=>{"use strict";x();T();var Jgr=WC&&WC.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(WC,"__esModule",{value:!0});var Kgr=Cc(),sKe=Ps(),Qgr=function(r){Jgr(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.value=null,t.hasNext=!1,t.hasCompleted=!1,t}return e.prototype._subscribe=function(t){return this.hasError?(t.error(this.thrownError),sKe.Subscription.EMPTY):this.hasCompleted&&this.hasNext?(t.next(this.value),t.complete(),sKe.Subscription.EMPTY):r.prototype._subscribe.call(this,t)},e.prototype.next=function(t){this.hasCompleted||(this.value=t,this.hasNext=!0)},e.prototype.error=function(t){this.hasCompleted||r.prototype.error.call(this,t)},e.prototype.complete=function(){this.hasCompleted=!0,this.hasNext&&r.prototype.next.call(this,this.value),r.prototype.complete.call(this)},e}(Kgr.Subject);WC.AsyncSubject=Qgr});var cKe=O(ON=>{"use strict";x();T();Object.defineProperty(ON,"__esModule",{value:!0});var Xgr=1,Ygr=function(){return Promise.resolve()}(),NN={};function oKe(r){return r in NN?(delete NN[r],!0):!1}ON.Immediate={setImmediate:function(r){var e=Xgr++;return NN[e]=!0,Ygr.then(function(){return oKe(e)&&r()}),e},clearImmediate:function(r){oKe(r)}};ON.TestTools={pending:function(){return Object.keys(NN).length}}});var lKe=O(zC=>{"use strict";x();T();var $gr=zC&&zC.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(zC,"__esModule",{value:!0});var uKe=cKe(),evr=Dx(),tvr=function(r){$gr(e,r);function e(t,n){var a=r.call(this,t,n)||this;return a.scheduler=t,a.work=n,a}return e.prototype.requestAsyncId=function(t,n,a){return a===void 0&&(a=0),a!==null&&a>0?r.prototype.requestAsyncId.call(this,t,n,a):(t.actions.push(this),t.scheduled||(t.scheduled=uKe.Immediate.setImmediate(t.flush.bind(t,null))))},e.prototype.recycleAsyncId=function(t,n,a){if(a===void 0&&(a=0),a!==null&&a>0||a===null&&this.delay>0)return r.prototype.recycleAsyncId.call(this,t,n,a);t.actions.length===0&&(uKe.Immediate.clearImmediate(n),t.scheduled=void 0)},e}(evr.AsyncAction);zC.AsapAction=tvr});var dKe=O(HC=>{"use strict";x();T();var rvr=HC&&HC.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(HC,"__esModule",{value:!0});var nvr=Fx(),avr=function(r){rvr(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.flush=function(t){this.active=!0,this.scheduled=void 0;var n=this.actions,a,i=-1,s=n.length;t=t||n.shift();do if(a=t.execute(t.state,t.delay))break;while(++i{"use strict";x();T();Object.defineProperty(VC,"__esModule",{value:!0});var ivr=lKe(),svr=dKe();VC.asapScheduler=new svr.AsapScheduler(ivr.AsapAction);VC.asap=VC.asapScheduler});var Yc=O(GC=>{"use strict";x();T();Object.defineProperty(GC,"__esModule",{value:!0});var ovr=Dx(),cvr=Fx();GC.asyncScheduler=new cvr.AsyncScheduler(ovr.AsyncAction);GC.async=GC.asyncScheduler});var pKe=O(ZC=>{"use strict";x();T();var uvr=ZC&&ZC.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(ZC,"__esModule",{value:!0});var lvr=Dx(),dvr=function(r){uvr(e,r);function e(t,n){var a=r.call(this,t,n)||this;return a.scheduler=t,a.work=n,a}return e.prototype.requestAsyncId=function(t,n,a){return a===void 0&&(a=0),a!==null&&a>0?r.prototype.requestAsyncId.call(this,t,n,a):(t.actions.push(this),t.scheduled||(t.scheduled=requestAnimationFrame(function(){return t.flush(null)})))},e.prototype.recycleAsyncId=function(t,n,a){if(a===void 0&&(a=0),a!==null&&a>0||a===null&&this.delay>0)return r.prototype.recycleAsyncId.call(this,t,n,a);t.actions.length===0&&(cancelAnimationFrame(n),t.scheduled=void 0)},e}(lvr.AsyncAction);ZC.AnimationFrameAction=dvr});var hKe=O(JC=>{"use strict";x();T();var pvr=JC&&JC.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(JC,"__esModule",{value:!0});var hvr=Fx(),fvr=function(r){pvr(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.flush=function(t){this.active=!0,this.scheduled=void 0;var n=this.actions,a,i=-1,s=n.length;t=t||n.shift();do if(a=t.execute(t.state,t.delay))break;while(++i{"use strict";x();T();Object.defineProperty(KC,"__esModule",{value:!0});var mvr=pKe(),yvr=hKe();KC.animationFrameScheduler=new yvr.AnimationFrameScheduler(mvr.AnimationFrameAction);KC.animationFrame=KC.animationFrameScheduler});var gKe=O(Wx=>{"use strict";x();T();var mKe=Wx&&Wx.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(Wx,"__esModule",{value:!0});var gvr=Dx(),vvr=Fx(),bvr=function(r){mKe(e,r);function e(t,n){t===void 0&&(t=yKe),n===void 0&&(n=Number.POSITIVE_INFINITY);var a=r.call(this,t,function(){return a.frame})||this;return a.maxFrames=n,a.frame=0,a.index=-1,a}return e.prototype.flush=function(){for(var t=this,n=t.actions,a=t.maxFrames,i,s;(s=n[0])&&s.delay<=a&&(n.shift(),this.frame=s.delay,!(i=s.execute(s.state,s.delay))););if(i){for(;s=n.shift();)s.unsubscribe();throw i}},e.frameTimeFactor=10,e}(vvr.AsyncScheduler);Wx.VirtualTimeScheduler=bvr;var yKe=function(r){mKe(e,r);function e(t,n,a){a===void 0&&(a=t.index+=1);var i=r.call(this,t,n)||this;return i.scheduler=t,i.work=n,i.index=a,i.active=!0,i.index=t.index=a,i}return e.prototype.schedule=function(t,n){if(n===void 0&&(n=0),!this.id)return r.prototype.schedule.call(this,t,n);this.active=!1;var a=new e(this.scheduler,this.work);return this.add(a),a.schedule(t,n)},e.prototype.requestAsyncId=function(t,n,a){a===void 0&&(a=0),this.delay=t.frame+a;var i=t.actions;return i.push(this),i.sort(e.sortActions),!0},e.prototype.recycleAsyncId=function(t,n,a){a===void 0&&(a=0)},e.prototype._execute=function(t,n){if(this.active===!0)return r.prototype._execute.call(this,t,n)},e.sortActions=function(t,n){return t.delay===n.delay?t.index===n.index?0:t.index>n.index?1:-1:t.delay>n.delay?1:-1},e}(gvr.AsyncAction);Wx.VirtualAction=yKe});var LN=O(FQ=>{"use strict";x();T();Object.defineProperty(FQ,"__esModule",{value:!0});function wvr(){}FQ.noop=wvr});var vKe=O(UQ=>{"use strict";x();T();Object.defineProperty(UQ,"__esModule",{value:!0});var xvr=Sn();function Tvr(r){return!!r&&(r instanceof xvr.Observable||typeof r.lift=="function"&&typeof r.subscribe=="function")}UQ.isObservable=Tvr});var jx=O(WQ=>{"use strict";x();T();Object.defineProperty(WQ,"__esModule",{value:!0});var _vr=function(){function r(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return r.prototype=Object.create(Error.prototype),r}();WQ.ArgumentOutOfRangeError=_vr});var zx=O(jQ=>{"use strict";x();T();Object.defineProperty(jQ,"__esModule",{value:!0});var Cvr=function(){function r(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return r.prototype=Object.create(Error.prototype),r}();jQ.EmptyError=Cvr});var HQ=O(zQ=>{"use strict";x();T();Object.defineProperty(zQ,"__esModule",{value:!0});var Evr=function(){function r(){return Error.call(this),this.message="Timeout has occurred",this.name="TimeoutError",this}return r.prototype=Object.create(Error.prototype),r}();zQ.TimeoutError=Evr});var gl=O(Hx=>{"use strict";x();T();var kvr=Hx&&Hx.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(Hx,"__esModule",{value:!0});var Svr=lr();function Avr(r,e){return function(n){if(typeof r!="function")throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new bKe(r,e))}}Hx.map=Avr;var bKe=function(){function r(e,t){this.project=e,this.thisArg=t}return r.prototype.call=function(e,t){return t.subscribe(new Mvr(e,this.project,this.thisArg))},r}();Hx.MapOperator=bKe;var Mvr=function(r){kvr(e,r);function e(t,n,a){var i=r.call(this,t)||this;return i.project=n,i.count=0,i.thisArg=a||i,i}return e.prototype._next=function(t){var n;try{n=this.project.call(this.thisArg,t,this.count++)}catch(a){this.destination.error(a);return}this.destination.next(n)},e}(Svr.Subscriber)});var TKe=O(VQ=>{"use strict";x();T();Object.defineProperty(VQ,"__esModule",{value:!0});var Ivr=Sn(),wKe=jC(),Pvr=gl(),Rvr=CN(),Nvr=Xc(),Ovr=Ip();function xKe(r,e,t){if(e)if(Ovr.isScheduler(e))t=e;else return function(){for(var n=[],a=0;a{"use strict";x();T();Object.defineProperty(GQ,"__esModule",{value:!0});var qvr=Sn(),CKe=jC(),Dvr=gl(),Fvr=CN(),Uvr=Ip(),Wvr=Xc();function EKe(r,e,t){if(e)if(Uvr.isScheduler(e))t=e;else return function(){for(var n=[],a=0;a{"use strict";x();T();var Hvr=QC&&QC.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(QC,"__esModule",{value:!0});var Vvr=lr(),Gvr=function(r){Hvr(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.notifyNext=function(t,n,a,i,s){this.destination.next(n)},e.prototype.notifyError=function(t,n){this.destination.error(t)},e.prototype.notifyComplete=function(t){this.destination.complete()},e}(Vvr.Subscriber);QC.OuterSubscriber=Gvr});var SKe=O(XC=>{"use strict";x();T();var Zvr=XC&&XC.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(XC,"__esModule",{value:!0});var Jvr=lr(),Kvr=function(r){Zvr(e,r);function e(t,n,a){var i=r.call(this)||this;return i.parent=t,i.outerValue=n,i.outerIndex=a,i.index=0,i}return e.prototype._next=function(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)},e.prototype._error=function(t){this.parent.notifyError(t,this),this.unsubscribe()},e.prototype._complete=function(){this.parent.notifyComplete(this),this.unsubscribe()},e}(Jvr.Subscriber);XC.InnerSubscriber=Kvr});var AKe=O(ZQ=>{"use strict";x();T();Object.defineProperty(ZQ,"__esModule",{value:!0});var Qvr=bN();ZQ.subscribeToPromise=function(r){return function(e){return r.then(function(t){e.closed||(e.next(t),e.complete())},function(t){return e.error(t)}).then(null,Qvr.hostReportError),e}}});var Gx=O(Vx=>{"use strict";x();T();Object.defineProperty(Vx,"__esModule",{value:!0});function MKe(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}Vx.getSymbolIterator=MKe;Vx.iterator=MKe();Vx.$$iterator=Vx.iterator});var IKe=O(JQ=>{"use strict";x();T();Object.defineProperty(JQ,"__esModule",{value:!0});var Xvr=Gx();JQ.subscribeToIterable=function(r){return function(e){var t=r[Xvr.iterator]();do{var n=void 0;try{n=t.next()}catch(a){return e.error(a),e}if(n.done){e.complete();break}if(e.next(n.value),e.closed)break}while(!0);return typeof t.return=="function"&&e.add(function(){t.return&&t.return()}),e}}});var PKe=O(KQ=>{"use strict";x();T();Object.defineProperty(KQ,"__esModule",{value:!0});var Yvr=Kv();KQ.subscribeToObservable=function(r){return function(e){var t=r[Yvr.observable]();if(typeof t.subscribe!="function")throw new TypeError("Provided object does not correctly implement Symbol.observable");return t.subscribe(e)}}});var XQ=O(QQ=>{"use strict";x();T();Object.defineProperty(QQ,"__esModule",{value:!0});QQ.isArrayLike=function(r){return r&&typeof r.length=="number"&&typeof r!="function"}});var $Q=O(YQ=>{"use strict";x();T();Object.defineProperty(YQ,"__esModule",{value:!0});function $vr(r){return!!r&&typeof r.subscribe!="function"&&typeof r.then=="function"}YQ.isPromise=$vr});var YC=O(eX=>{"use strict";x();T();Object.defineProperty(eX,"__esModule",{value:!0});var e1r=PQ(),t1r=AKe(),r1r=IKe(),n1r=PKe(),a1r=XQ(),i1r=$Q(),s1r=wN(),o1r=Gx(),c1r=Kv();eX.subscribeTo=function(r){if(!!r&&typeof r[c1r.observable]=="function")return n1r.subscribeToObservable(r);if(a1r.isArrayLike(r))return e1r.subscribeToArray(r);if(i1r.isPromise(r))return t1r.subscribeToPromise(r);if(!!r&&typeof r[o1r.iterator]=="function")return r1r.subscribeToIterable(r);var e=s1r.isObject(r)?"an invalid object":"'"+r+"'",t="You provided "+e+" where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.";throw new TypeError(t)}});var dy=O(tX=>{"use strict";x();T();Object.defineProperty(tX,"__esModule",{value:!0});var u1r=SKe(),l1r=YC(),d1r=Sn();function p1r(r,e,t,n,a){if(a===void 0&&(a=new u1r.InnerSubscriber(r,t,n)),!a.closed)return e instanceof d1r.Observable?e.subscribe(a):l1r.subscribeTo(e)(a)}tX.subscribeToResult=p1r});var BN=O(Xv=>{"use strict";x();T();var h1r=Xv&&Xv.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(Xv,"__esModule",{value:!0});var f1r=Ip(),m1r=Xc(),y1r=ly(),g1r=dy(),v1r=Ux(),RKe={};function b1r(){for(var r=[],e=0;e{"use strict";x();T();Object.defineProperty(rX,"__esModule",{value:!0});var w1r=Sn(),x1r=Ps(),T1r=Kv();function _1r(r,e){return new w1r.Observable(function(t){var n=new x1r.Subscription;return n.add(e.schedule(function(){var a=r[T1r.observable]();n.add(a.subscribe({next:function(i){n.add(e.schedule(function(){return t.next(i)}))},error:function(i){n.add(e.schedule(function(){return t.error(i)}))},complete:function(){n.add(e.schedule(function(){return t.complete()}))}}))})),n})}rX.scheduleObservable=_1r});var BKe=O(nX=>{"use strict";x();T();Object.defineProperty(nX,"__esModule",{value:!0});var C1r=Sn(),E1r=Ps();function k1r(r,e){return new C1r.Observable(function(t){var n=new E1r.Subscription;return n.add(e.schedule(function(){return r.then(function(a){n.add(e.schedule(function(){t.next(a),n.add(e.schedule(function(){return t.complete()}))}))},function(a){n.add(e.schedule(function(){return t.error(a)}))})})),n})}nX.schedulePromise=k1r});var qKe=O(aX=>{"use strict";x();T();Object.defineProperty(aX,"__esModule",{value:!0});var S1r=Sn(),A1r=Ps(),M1r=Gx();function I1r(r,e){if(!r)throw new Error("Iterable cannot be null");return new S1r.Observable(function(t){var n=new A1r.Subscription,a;return n.add(function(){a&&typeof a.return=="function"&&a.return()}),n.add(e.schedule(function(){a=r[M1r.iterator](),n.add(e.schedule(function(){if(!t.closed){var i,s;try{var c=a.next();i=c.value,s=c.done}catch(l){t.error(l);return}s?t.complete():(t.next(i),this.schedule())}}))})),n})}aX.scheduleIterable=I1r});var DKe=O(iX=>{"use strict";x();T();Object.defineProperty(iX,"__esModule",{value:!0});var P1r=Kv();function R1r(r){return r&&typeof r[P1r.observable]=="function"}iX.isInteropObservable=R1r});var FKe=O(sX=>{"use strict";x();T();Object.defineProperty(sX,"__esModule",{value:!0});var N1r=Gx();function O1r(r){return r&&typeof r[N1r.iterator]=="function"}sX.isIterable=O1r});var cX=O(oX=>{"use strict";x();T();Object.defineProperty(oX,"__esModule",{value:!0});var L1r=LKe(),B1r=BKe(),q1r=IN(),D1r=qKe(),F1r=DKe(),U1r=$Q(),W1r=XQ(),j1r=FKe();function z1r(r,e){if(r!=null){if(F1r.isInteropObservable(r))return L1r.scheduleObservable(r,e);if(U1r.isPromise(r))return B1r.schedulePromise(r,e);if(W1r.isArrayLike(r))return q1r.scheduleArray(r,e);if(j1r.isIterable(r)||typeof r=="string")return D1r.scheduleIterable(r,e)}throw new TypeError((r!==null&&typeof r||r)+" is not observable")}oX.scheduled=z1r});var Pp=O(uX=>{"use strict";x();T();Object.defineProperty(uX,"__esModule",{value:!0});var UKe=Sn(),H1r=YC(),V1r=cX();function G1r(r,e){return e?V1r.scheduled(r,e):r instanceof UKe.Observable?r:new UKe.Observable(H1r.subscribeTo(r))}uX.from=G1r});var Bi=O(vm=>{"use strict";x();T();var qN=vm&&vm.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(vm,"__esModule",{value:!0});var DN=lr(),Z1r=Sn(),J1r=YC(),K1r=function(r){qN(e,r);function e(t){var n=r.call(this)||this;return n.parent=t,n}return e.prototype._next=function(t){this.parent.notifyNext(t)},e.prototype._error=function(t){this.parent.notifyError(t),this.unsubscribe()},e.prototype._complete=function(){this.parent.notifyComplete(),this.unsubscribe()},e}(DN.Subscriber);vm.SimpleInnerSubscriber=K1r;var Q1r=function(r){qN(e,r);function e(t,n,a){var i=r.call(this)||this;return i.parent=t,i.outerValue=n,i.outerIndex=a,i}return e.prototype._next=function(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this)},e.prototype._error=function(t){this.parent.notifyError(t),this.unsubscribe()},e.prototype._complete=function(){this.parent.notifyComplete(this),this.unsubscribe()},e}(DN.Subscriber);vm.ComplexInnerSubscriber=Q1r;var X1r=function(r){qN(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.notifyNext=function(t){this.destination.next(t)},e.prototype.notifyError=function(t){this.destination.error(t)},e.prototype.notifyComplete=function(){this.destination.complete()},e}(DN.Subscriber);vm.SimpleOuterSubscriber=X1r;var Y1r=function(r){qN(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.notifyNext=function(t,n,a,i){this.destination.next(n)},e.prototype.notifyError=function(t){this.destination.error(t)},e.prototype.notifyComplete=function(t){this.destination.complete()},e}(DN.Subscriber);vm.ComplexOuterSubscriber=Y1r;function $1r(r,e){if(!e.closed){if(r instanceof Z1r.Observable)return r.subscribe(e);var t;try{t=J1r.subscribeTo(r)(e)}catch(n){e.error(n)}return t}}vm.innerSubscribe=$1r});var $C=O(py=>{"use strict";x();T();var ebr=py&&py.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(py,"__esModule",{value:!0});var tbr=gl(),rbr=Pp(),lX=Bi();function dX(r,e,t){return t===void 0&&(t=Number.POSITIVE_INFINITY),typeof e=="function"?function(n){return n.pipe(dX(function(a,i){return rbr.from(r(a,i)).pipe(tbr.map(function(s,c){return e(a,s,i,c)}))},t))}:(typeof e=="number"&&(t=e),function(n){return n.lift(new WKe(r,t))})}py.mergeMap=dX;var WKe=function(){function r(e,t){t===void 0&&(t=Number.POSITIVE_INFINITY),this.project=e,this.concurrent=t}return r.prototype.call=function(e,t){return t.subscribe(new jKe(e,this.project,this.concurrent))},r}();py.MergeMapOperator=WKe;var jKe=function(r){ebr(e,r);function e(t,n,a){a===void 0&&(a=Number.POSITIVE_INFINITY);var i=r.call(this,t)||this;return i.project=n,i.concurrent=a,i.hasCompleted=!1,i.buffer=[],i.active=0,i.index=0,i}return e.prototype._next=function(t){this.active0?this._next(t.shift()):this.active===0&&this.hasCompleted&&this.destination.complete()},e}(lX.SimpleOuterSubscriber);py.MergeMapSubscriber=jKe;py.flatMap=dX});var FN=O(pX=>{"use strict";x();T();Object.defineProperty(pX,"__esModule",{value:!0});var nbr=$C(),abr=cy();function ibr(r){return r===void 0&&(r=Number.POSITIVE_INFINITY),nbr.mergeMap(abr.identity,r)}pX.mergeAll=ibr});var fX=O(hX=>{"use strict";x();T();Object.defineProperty(hX,"__esModule",{value:!0});var sbr=FN();function obr(){return sbr.mergeAll(1)}hX.concatAll=obr});var e8=O(mX=>{"use strict";x();T();Object.defineProperty(mX,"__esModule",{value:!0});var cbr=qC(),ubr=fX();function lbr(){for(var r=[],e=0;e{"use strict";x();T();Object.defineProperty(yX,"__esModule",{value:!0});var dbr=Sn(),pbr=Pp(),hbr=Mp();function fbr(r){return new dbr.Observable(function(e){var t;try{t=r()}catch(a){e.error(a);return}var n=t?pbr.from(t):hbr.empty();return n.subscribe(e)})}yX.defer=fbr});var HKe=O(gX=>{"use strict";x();T();Object.defineProperty(gX,"__esModule",{value:!0});var mbr=Sn(),zKe=Xc(),ybr=gl(),gbr=wN(),vbr=Pp();function bbr(){for(var r=[],e=0;e{"use strict";x();T();Object.defineProperty(vX,"__esModule",{value:!0});var wbr=Sn(),xbr=Xc(),Tbr=Nx(),_br=gl(),rvn=function(){return Object.prototype.toString}();function VKe(r,e,t,n){return Tbr.isFunction(t)&&(n=t,t=void 0),n?VKe(r,e,t).pipe(_br.map(function(a){return xbr.isArray(a)?n.apply(void 0,a):n(a)})):new wbr.Observable(function(a){function i(s){arguments.length>1?a.next(Array.prototype.slice.call(arguments)):a.next(s)}GKe(r,e,i,a,t)})}vX.fromEvent=VKe;function GKe(r,e,t,n,a){var i;if(kbr(r)){var s=r;r.addEventListener(e,t,a),i=function(){return s.removeEventListener(e,t,a)}}else if(Ebr(r)){var c=r;r.on(e,t),i=function(){return c.off(e,t)}}else if(Cbr(r)){var l=r;r.addListener(e,t),i=function(){return l.removeListener(e,t)}}else if(r&&r.length)for(var d=0,f=r.length;d{"use strict";x();T();Object.defineProperty(bX,"__esModule",{value:!0});var Sbr=Sn(),Abr=Xc(),Mbr=Nx(),Ibr=gl();function JKe(r,e,t){return t?JKe(r,e).pipe(Ibr.map(function(n){return Abr.isArray(n)?t.apply(void 0,n):t(n)})):new Sbr.Observable(function(n){var a=function(){for(var s=[],c=0;c{"use strict";x();T();Object.defineProperty(wX,"__esModule",{value:!0});var Pbr=Sn(),QKe=cy(),Rbr=Ip();function Nbr(r,e,t,n,a){var i,s;if(arguments.length==1){var c=r;s=c.initialState,e=c.condition,t=c.iterate,i=c.resultSelector||QKe.identity,a=c.scheduler}else n===void 0||Rbr.isScheduler(n)?(s=r,i=QKe.identity,a=n):(s=r,i=n);return new Pbr.Observable(function(l){var d=s;if(a)return a.schedule(Obr,0,{subscriber:l,iterate:t,condition:e,resultSelector:i,state:d});do{if(e){var f=void 0;try{f=e(d)}catch(E){l.error(E);return}if(!f){l.complete();break}}var w=void 0;try{w=i(d)}catch(E){l.error(E);return}if(l.next(w),l.closed)break;try{d=t(d)}catch(E){l.error(E);return}}while(!0)})}wX.generate=Nbr;function Obr(r){var e=r.subscriber,t=r.condition;if(!e.closed){if(r.needIterate)try{r.state=r.iterate(r.state)}catch(i){e.error(i);return}else r.needIterate=!0;if(t){var n=void 0;try{n=t(r.state)}catch(i){e.error(i);return}if(!n){e.complete();return}if(e.closed)return}var a;try{a=r.resultSelector(r.state)}catch(i){e.error(i);return}if(!e.closed&&(e.next(a),!e.closed))return this.schedule(r)}}});var $Ke=O(xX=>{"use strict";x();T();Object.defineProperty(xX,"__esModule",{value:!0});var Lbr=UN(),YKe=Mp();function Bbr(r,e,t){return e===void 0&&(e=YKe.EMPTY),t===void 0&&(t=YKe.EMPTY),Lbr.defer(function(){return r()?e:t})}xX.iif=Bbr});var t8=O(TX=>{"use strict";x();T();Object.defineProperty(TX,"__esModule",{value:!0});var qbr=Xc();function Dbr(r){return!qbr.isArray(r)&&r-parseFloat(r)+1>=0}TX.isNumeric=Dbr});var tQe=O(_X=>{"use strict";x();T();Object.defineProperty(_X,"__esModule",{value:!0});var Fbr=Sn(),eQe=Yc(),Ubr=t8();function Wbr(r,e){return r===void 0&&(r=0),e===void 0&&(e=eQe.async),(!Ubr.isNumeric(r)||r<0)&&(r=0),(!e||typeof e.schedule!="function")&&(e=eQe.async),new Fbr.Observable(function(t){return t.add(e.schedule(jbr,r,{subscriber:t,counter:0,period:r})),t})}_X.interval=Wbr;function jbr(r){var e=r.subscriber,t=r.counter,n=r.period;e.next(t),this.schedule({subscriber:e,counter:t+1,period:n},n)}});var EX=O(CX=>{"use strict";x();T();Object.defineProperty(CX,"__esModule",{value:!0});var zbr=Sn(),Hbr=Ip(),Vbr=FN(),Gbr=Ux();function Zbr(){for(var r=[],e=0;e1&&typeof r[r.length-1]=="number"&&(t=r.pop())):typeof a=="number"&&(t=r.pop()),n===null&&r.length===1&&r[0]instanceof zbr.Observable?r[0]:Vbr.mergeAll(t)(Gbr.fromArray(r,n))}CX.merge=Zbr});var kX=O(r8=>{"use strict";x();T();Object.defineProperty(r8,"__esModule",{value:!0});var Jbr=Sn(),Kbr=LN();r8.NEVER=new Jbr.Observable(Kbr.noop);function Qbr(){return r8.NEVER}r8.never=Qbr});var rQe=O(AX=>{"use strict";x();T();Object.defineProperty(AX,"__esModule",{value:!0});var Xbr=Sn(),Ybr=Pp(),$br=Xc(),e2r=Mp();function SX(){for(var r=[],e=0;e{"use strict";x();T();Object.defineProperty(jN,"__esModule",{value:!0});var nQe=Sn(),t2r=Ps();function r2r(r,e){return e?new nQe.Observable(function(t){var n=Object.keys(r),a=new t2r.Subscription;return a.add(e.schedule(aQe,0,{keys:n,index:0,subscriber:t,subscription:a,obj:r})),a}):new nQe.Observable(function(t){for(var n=Object.keys(r),a=0;a{"use strict";x();T();Object.defineProperty(MX,"__esModule",{value:!0});function n2r(r,e){function t(){return!t.pred.apply(t.thisArg,arguments)}return t.pred=r,t.thisArg=e,t}MX.not=n2r});var Yv=O(n8=>{"use strict";x();T();var a2r=n8&&n8.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(n8,"__esModule",{value:!0});var i2r=lr();function s2r(r,e){return function(n){return n.lift(new o2r(r,e))}}n8.filter=s2r;var o2r=function(){function r(e,t){this.predicate=e,this.thisArg=t}return r.prototype.call=function(e,t){return t.subscribe(new c2r(e,this.predicate,this.thisArg))},r}(),c2r=function(r){a2r(e,r);function e(t,n,a){var i=r.call(this,t)||this;return i.predicate=n,i.thisArg=a,i.count=0,i}return e.prototype._next=function(t){var n;try{n=this.predicate.call(this.thisArg,t,this.count++)}catch(a){this.destination.error(a);return}n&&this.destination.next(t)},e}(i2r.Subscriber)});var uQe=O(PX=>{"use strict";x();T();Object.defineProperty(PX,"__esModule",{value:!0});var u2r=IX(),sQe=YC(),oQe=Yv(),cQe=Sn();function l2r(r,e,t){return[oQe.filter(e,t)(new cQe.Observable(sQe.subscribeTo(r))),oQe.filter(u2r.not(e,t))(new cQe.Observable(sQe.subscribeTo(r)))]}PX.partition=l2r});var RX=O($v=>{"use strict";x();T();var d2r=$v&&$v.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty($v,"__esModule",{value:!0});var p2r=Xc(),h2r=Ux(),f2r=ly(),m2r=dy();function y2r(){for(var r=[],e=0;e{"use strict";x();T();Object.defineProperty(zN,"__esModule",{value:!0});var g2r=Sn();function v2r(r,e,t){return r===void 0&&(r=0),new g2r.Observable(function(n){e===void 0&&(e=r,r=0);var a=0,i=r;if(t)return t.schedule(pQe,0,{index:a,count:e,start:r,subscriber:n});do{if(a++>=e){n.complete();break}if(n.next(i++),n.closed)break}while(!0)})}zN.range=v2r;function pQe(r){var e=r.start,t=r.index,n=r.count,a=r.subscriber;if(t>=n){a.complete();return}a.next(e),!a.closed&&(r.index=t+1,r.start=e+1,this.schedule(r))}zN.dispatch=pQe});var OX=O(NX=>{"use strict";x();T();Object.defineProperty(NX,"__esModule",{value:!0});var b2r=Sn(),w2r=Yc(),fQe=t8(),mQe=Ip();function x2r(r,e,t){r===void 0&&(r=0);var n=-1;return fQe.isNumeric(e)?n=Number(e)<1&&1||Number(e):mQe.isScheduler(e)&&(t=e),mQe.isScheduler(t)||(t=w2r.async),new b2r.Observable(function(a){var i=fQe.isNumeric(r)?r:+r-t.now();return t.schedule(T2r,i,{index:0,period:n,subscriber:a})})}NX.timer=x2r;function T2r(r){var e=r.index,t=r.period,n=r.subscriber;if(n.next(e),!n.closed){if(t===-1)return n.complete();r.index=e+1,this.schedule(r,t)}}});var yQe=O(LX=>{"use strict";x();T();Object.defineProperty(LX,"__esModule",{value:!0});var _2r=Sn(),C2r=Pp(),E2r=Mp();function k2r(r,e){return new _2r.Observable(function(t){var n;try{n=r()}catch(c){t.error(c);return}var a;try{a=e(n)}catch(c){t.error(c);return}var i=a?C2r.from(a):E2r.EMPTY,s=i.subscribe(t);return function(){s.unsubscribe(),n&&n.unsubscribe()}})}LX.using=k2r});var VN=O(e1=>{"use strict";x();T();var gQe=e1&&e1.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(e1,"__esModule",{value:!0});var S2r=Ux(),A2r=Xc(),M2r=lr(),HN=Gx(),BX=Bi();function I2r(){for(var r=[],e=0;ethis.index},r.prototype.hasCompleted=function(){return this.array.length===this.index},r}(),N2r=function(r){gQe(e,r);function e(t,n,a){var i=r.call(this,t)||this;return i.parent=n,i.observable=a,i.stillUnsubscribed=!0,i.buffer=[],i.isComplete=!1,i}return e.prototype[HN.iterator]=function(){return this},e.prototype.next=function(){var t=this.buffer;return t.length===0&&this.isComplete?{value:null,done:!0}:{value:t.shift(),done:!1}},e.prototype.hasValue=function(){return this.buffer.length>0},e.prototype.hasCompleted=function(){return this.buffer.length===0&&this.isComplete},e.prototype.notifyComplete=function(){this.buffer.length>0?(this.isComplete=!0,this.parent.notifyInactive()):this.destination.complete()},e.prototype.notifyNext=function(t){this.buffer.push(t),this.parent.checkIterators()},e.prototype.subscribe=function(){return BX.innerSubscribe(this.observable,new BX.SimpleInnerSubscriber(this))},e}(BX.SimpleOuterSubscriber)});var t1=O(qt=>{"use strict";x();T();Object.defineProperty(qt,"__esModule",{value:!0});var O2r=Sn();qt.Observable=O2r.Observable;var L2r=TQ();qt.ConnectableObservable=L2r.ConnectableObservable;var B2r=CQ();qt.GroupedObservable=B2r.GroupedObservable;var q2r=Kv();qt.observable=q2r.observable;var D2r=Cc();qt.Subject=D2r.Subject;var F2r=EQ();qt.BehaviorSubject=F2r.BehaviorSubject;var U2r=RN();qt.ReplaySubject=U2r.ReplaySubject;var W2r=jC();qt.AsyncSubject=W2r.AsyncSubject;var wQe=DQ();qt.asap=wQe.asap;qt.asapScheduler=wQe.asapScheduler;var xQe=Yc();qt.async=xQe.async;qt.asyncScheduler=xQe.asyncScheduler;var TQe=AQ();qt.queue=TQe.queue;qt.queueScheduler=TQe.queueScheduler;var _Qe=fKe();qt.animationFrame=_Qe.animationFrame;qt.animationFrameScheduler=_Qe.animationFrameScheduler;var CQe=gKe();qt.VirtualTimeScheduler=CQe.VirtualTimeScheduler;qt.VirtualAction=CQe.VirtualAction;var j2r=SQ();qt.Scheduler=j2r.Scheduler;var z2r=Ps();qt.Subscription=z2r.Subscription;var H2r=lr();qt.Subscriber=H2r.Subscriber;var EQe=FC();qt.Notification=EQe.Notification;qt.NotificationKind=EQe.NotificationKind;var V2r=kN();qt.pipe=V2r.pipe;var G2r=LN();qt.noop=G2r.noop;var Z2r=cy();qt.identity=Z2r.identity;var J2r=vKe();qt.isObservable=J2r.isObservable;var K2r=jx();qt.ArgumentOutOfRangeError=K2r.ArgumentOutOfRangeError;var Q2r=zx();qt.EmptyError=Q2r.EmptyError;var X2r=EC();qt.ObjectUnsubscribedError=X2r.ObjectUnsubscribedError;var Y2r=sQ();qt.UnsubscriptionError=Y2r.UnsubscriptionError;var $2r=HQ();qt.TimeoutError=$2r.TimeoutError;var ewr=TKe();qt.bindCallback=ewr.bindCallback;var twr=kKe();qt.bindNodeCallback=twr.bindNodeCallback;var rwr=BN();qt.combineLatest=rwr.combineLatest;var nwr=e8();qt.concat=nwr.concat;var awr=UN();qt.defer=awr.defer;var iwr=Mp();qt.empty=iwr.empty;var swr=HKe();qt.forkJoin=swr.forkJoin;var owr=Pp();qt.from=owr.from;var cwr=ZKe();qt.fromEvent=cwr.fromEvent;var uwr=KKe();qt.fromEventPattern=uwr.fromEventPattern;var lwr=XKe();qt.generate=lwr.generate;var dwr=$Ke();qt.iif=dwr.iif;var pwr=tQe();qt.interval=pwr.interval;var hwr=EX();qt.merge=hwr.merge;var fwr=kX();qt.never=fwr.never;var mwr=qC();qt.of=mwr.of;var ywr=rQe();qt.onErrorResumeNext=ywr.onErrorResumeNext;var gwr=iQe();qt.pairs=gwr.pairs;var vwr=uQe();qt.partition=vwr.partition;var bwr=RX();qt.race=bwr.race;var wwr=hQe();qt.range=wwr.range;var xwr=PN();qt.throwError=xwr.throwError;var Twr=OX();qt.timer=Twr.timer;var _wr=yQe();qt.using=_wr.using;var Cwr=VN();qt.zip=Cwr.zip;var Ewr=cX();qt.scheduled=Ewr.scheduled;var kwr=Mp();qt.EMPTY=kwr.EMPTY;var Swr=kX();qt.NEVER=Swr.NEVER;var Awr=_C();qt.config=Awr.config});var DX=O(a8=>{"use strict";x();T();var Mwr=a8&&a8.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(a8,"__esModule",{value:!0});var qX=Bi();function Iwr(r){return function(t){return t.lift(new Pwr(r))}}a8.audit=Iwr;var Pwr=function(){function r(e){this.durationSelector=e}return r.prototype.call=function(e,t){return t.subscribe(new Rwr(e,this.durationSelector))},r}(),Rwr=function(r){Mwr(e,r);function e(t,n){var a=r.call(this,t)||this;return a.durationSelector=n,a.hasValue=!1,a}return e.prototype._next=function(t){if(this.value=t,this.hasValue=!0,!this.throttled){var n=void 0;try{var a=this.durationSelector;n=a(t)}catch(s){return this.destination.error(s)}var i=qX.innerSubscribe(n,new qX.SimpleInnerSubscriber(this));!i||i.closed?this.clearThrottle():this.add(this.throttled=i)}},e.prototype.clearThrottle=function(){var t=this,n=t.value,a=t.hasValue,i=t.throttled;i&&(this.remove(i),this.throttled=void 0,i.unsubscribe()),a&&(this.value=void 0,this.hasValue=!1,this.destination.next(n))},e.prototype.notifyNext=function(){this.clearThrottle()},e.prototype.notifyComplete=function(){this.clearThrottle()},e}(qX.SimpleOuterSubscriber)});var kQe=O(FX=>{"use strict";x();T();Object.defineProperty(FX,"__esModule",{value:!0});var Nwr=Yc(),Owr=DX(),Lwr=OX();function Bwr(r,e){return e===void 0&&(e=Nwr.async),Owr.audit(function(){return Lwr.timer(r,e)})}FX.auditTime=Bwr});var SQe=O(i8=>{"use strict";x();T();var qwr=i8&&i8.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(i8,"__esModule",{value:!0});var UX=Bi();function Dwr(r){return function(t){return t.lift(new Fwr(r))}}i8.buffer=Dwr;var Fwr=function(){function r(e){this.closingNotifier=e}return r.prototype.call=function(e,t){return t.subscribe(new Uwr(e,this.closingNotifier))},r}(),Uwr=function(r){qwr(e,r);function e(t,n){var a=r.call(this,t)||this;return a.buffer=[],a.add(UX.innerSubscribe(n,new UX.SimpleInnerSubscriber(a))),a}return e.prototype._next=function(t){this.buffer.push(t)},e.prototype.notifyNext=function(){var t=this.buffer;this.buffer=[],this.destination.next(t)},e}(UX.SimpleOuterSubscriber)});var IQe=O(s8=>{"use strict";x();T();var AQe=s8&&s8.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(s8,"__esModule",{value:!0});var MQe=lr();function Wwr(r,e){return e===void 0&&(e=null),function(n){return n.lift(new jwr(r,e))}}s8.bufferCount=Wwr;var jwr=function(){function r(e,t){this.bufferSize=e,this.startBufferEvery=t,!t||e===t?this.subscriberClass=zwr:this.subscriberClass=Hwr}return r.prototype.call=function(e,t){return t.subscribe(new this.subscriberClass(e,this.bufferSize,this.startBufferEvery))},r}(),zwr=function(r){AQe(e,r);function e(t,n){var a=r.call(this,t)||this;return a.bufferSize=n,a.buffer=[],a}return e.prototype._next=function(t){var n=this.buffer;n.push(t),n.length==this.bufferSize&&(this.destination.next(n),this.buffer=[])},e.prototype._complete=function(){var t=this.buffer;t.length>0&&this.destination.next(t),r.prototype._complete.call(this)},e}(MQe.Subscriber),Hwr=function(r){AQe(e,r);function e(t,n,a){var i=r.call(this,t)||this;return i.bufferSize=n,i.startBufferEvery=a,i.buffers=[],i.count=0,i}return e.prototype._next=function(t){var n=this,a=n.bufferSize,i=n.startBufferEvery,s=n.buffers,c=n.count;this.count++,c%i===0&&s.push([]);for(var l=s.length;l--;){var d=s[l];d.push(t),d.length===a&&(s.splice(l,1),this.destination.next(d))}},e.prototype._complete=function(){for(var t=this,n=t.buffers,a=t.destination;n.length>0;){var i=n.shift();i.length>0&&a.next(i)}r.prototype._complete.call(this)},e}(MQe.Subscriber)});var NQe=O(o8=>{"use strict";x();T();var Vwr=o8&&o8.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(o8,"__esModule",{value:!0});var Gwr=Yc(),Zwr=lr(),Jwr=Ip();function Kwr(r){var e=arguments.length,t=Gwr.async;Jwr.isScheduler(arguments[arguments.length-1])&&(t=arguments[arguments.length-1],e--);var n=null;e>=2&&(n=arguments[1]);var a=Number.POSITIVE_INFINITY;return e>=3&&(a=arguments[2]),function(s){return s.lift(new Qwr(r,n,a,t))}}o8.bufferTime=Kwr;var Qwr=function(){function r(e,t,n,a){this.bufferTimeSpan=e,this.bufferCreationInterval=t,this.maxBufferSize=n,this.scheduler=a}return r.prototype.call=function(e,t){return t.subscribe(new Ywr(e,this.bufferTimeSpan,this.bufferCreationInterval,this.maxBufferSize,this.scheduler))},r}(),Xwr=function(){function r(){this.buffer=[]}return r}(),Ywr=function(r){Vwr(e,r);function e(t,n,a,i,s){var c=r.call(this,t)||this;c.bufferTimeSpan=n,c.bufferCreationInterval=a,c.maxBufferSize=i,c.scheduler=s,c.contexts=[];var l=c.openContext();if(c.timespanOnly=a==null||a<0,c.timespanOnly){var d={subscriber:c,context:l,bufferTimeSpan:n};c.add(l.closeAction=s.schedule(PQe,n,d))}else{var f={subscriber:c,context:l},w={bufferTimeSpan:n,bufferCreationInterval:a,subscriber:c,scheduler:s};c.add(l.closeAction=s.schedule(RQe,n,f)),c.add(s.schedule($wr,a,w))}return c}return e.prototype._next=function(t){for(var n=this.contexts,a=n.length,i,s=0;s0;){var i=n.shift();a.next(i.buffer)}r.prototype._complete.call(this)},e.prototype._unsubscribe=function(){this.contexts=null},e.prototype.onBufferFull=function(t){this.closeContext(t);var n=t.closeAction;if(n.unsubscribe(),this.remove(n),!this.closed&&this.timespanOnly){t=this.openContext();var a=this.bufferTimeSpan,i={subscriber:this,context:t,bufferTimeSpan:a};this.add(t.closeAction=this.scheduler.schedule(PQe,a,i))}},e.prototype.openContext=function(){var t=new Xwr;return this.contexts.push(t),t},e.prototype.closeContext=function(t){this.destination.next(t.buffer);var n=this.contexts,a=n?n.indexOf(t):-1;a>=0&&n.splice(n.indexOf(t),1)},e}(Zwr.Subscriber);function PQe(r){var e=r.subscriber,t=r.context;t&&e.closeContext(t),e.closed||(r.context=e.openContext(),r.context.closeAction=this.schedule(r,r.bufferTimeSpan))}function $wr(r){var e=r.bufferCreationInterval,t=r.bufferTimeSpan,n=r.subscriber,a=r.scheduler,i=n.openContext(),s=this;n.closed||(n.add(i.closeAction=a.schedule(RQe,t,{subscriber:n,context:i})),s.schedule(r,e))}function RQe(r){var e=r.subscriber,t=r.context;e.closeContext(t)}});var LQe=O(c8=>{"use strict";x();T();var exr=c8&&c8.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(c8,"__esModule",{value:!0});var txr=Ps(),OQe=dy(),rxr=ly();function nxr(r,e){return function(n){return n.lift(new axr(r,e))}}c8.bufferToggle=nxr;var axr=function(){function r(e,t){this.openings=e,this.closingSelector=t}return r.prototype.call=function(e,t){return t.subscribe(new ixr(e,this.openings,this.closingSelector))},r}(),ixr=function(r){exr(e,r);function e(t,n,a){var i=r.call(this,t)||this;return i.closingSelector=a,i.contexts=[],i.add(OQe.subscribeToResult(i,n)),i}return e.prototype._next=function(t){for(var n=this.contexts,a=n.length,i=0;i0;){var a=n.shift();a.subscription.unsubscribe(),a.buffer=null,a.subscription=null}this.contexts=null,r.prototype._error.call(this,t)},e.prototype._complete=function(){for(var t=this.contexts;t.length>0;){var n=t.shift();this.destination.next(n.buffer),n.subscription.unsubscribe(),n.buffer=null,n.subscription=null}this.contexts=null,r.prototype._complete.call(this)},e.prototype.notifyNext=function(t,n){t?this.closeBuffer(t):this.openBuffer(n)},e.prototype.notifyComplete=function(t){this.closeBuffer(t.context)},e.prototype.openBuffer=function(t){try{var n=this.closingSelector,a=n.call(this,t);a&&this.trySubscribe(a)}catch(i){this._error(i)}},e.prototype.closeBuffer=function(t){var n=this.contexts;if(n&&t){var a=t.buffer,i=t.subscription;this.destination.next(a),n.splice(n.indexOf(t),1),this.remove(i),i.unsubscribe()}},e.prototype.trySubscribe=function(t){var n=this.contexts,a=[],i=new txr.Subscription,s={buffer:a,subscription:i};n.push(s);var c=OQe.subscribeToResult(this,t,s);!c||c.closed?this.closeBuffer(s):(c.context=s,this.add(c),i.add(c))},e}(rxr.OuterSubscriber)});var BQe=O(u8=>{"use strict";x();T();var sxr=u8&&u8.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(u8,"__esModule",{value:!0});var oxr=Ps(),WX=Bi();function cxr(r){return function(e){return e.lift(new uxr(r))}}u8.bufferWhen=cxr;var uxr=function(){function r(e){this.closingSelector=e}return r.prototype.call=function(e,t){return t.subscribe(new lxr(e,this.closingSelector))},r}(),lxr=function(r){sxr(e,r);function e(t,n){var a=r.call(this,t)||this;return a.closingSelector=n,a.subscribing=!1,a.openBuffer(),a}return e.prototype._next=function(t){this.buffer.push(t)},e.prototype._complete=function(){var t=this.buffer;t&&this.destination.next(t),r.prototype._complete.call(this)},e.prototype._unsubscribe=function(){this.buffer=void 0,this.subscribing=!1},e.prototype.notifyNext=function(){this.openBuffer()},e.prototype.notifyComplete=function(){this.subscribing?this.complete():this.openBuffer()},e.prototype.openBuffer=function(){var t=this.closingSubscription;t&&(this.remove(t),t.unsubscribe());var n=this.buffer;this.buffer&&this.destination.next(n),this.buffer=[];var a;try{var i=this.closingSelector;a=i()}catch(s){return this.error(s)}t=new oxr.Subscription,this.closingSubscription=t,this.add(t),this.subscribing=!0,t.add(WX.innerSubscribe(a,new WX.SimpleInnerSubscriber(this))),this.subscribing=!1},e}(WX.SimpleOuterSubscriber)});var qQe=O(l8=>{"use strict";x();T();var dxr=l8&&l8.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(l8,"__esModule",{value:!0});var jX=Bi();function pxr(r){return function(t){var n=new hxr(r),a=t.lift(n);return n.caught=a}}l8.catchError=pxr;var hxr=function(){function r(e){this.selector=e}return r.prototype.call=function(e,t){return t.subscribe(new fxr(e,this.selector,this.caught))},r}(),fxr=function(r){dxr(e,r);function e(t,n,a){var i=r.call(this,t)||this;return i.selector=n,i.caught=a,i}return e.prototype.error=function(t){if(!this.isStopped){var n=void 0;try{n=this.selector(t,this.caught)}catch(s){r.prototype.error.call(this,s);return}this._unsubscribeAndRecycle();var a=new jX.SimpleInnerSubscriber(this);this.add(a);var i=jX.innerSubscribe(n,a);i!==a&&this.add(i)}},e}(jX.SimpleOuterSubscriber)});var DQe=O(zX=>{"use strict";x();T();Object.defineProperty(zX,"__esModule",{value:!0});var mxr=BN();function yxr(r){return function(e){return e.lift(new mxr.CombineLatestOperator(r))}}zX.combineAll=yxr});var FQe=O(HX=>{"use strict";x();T();Object.defineProperty(HX,"__esModule",{value:!0});var gxr=Xc(),vxr=BN(),bxr=Pp();function wxr(){for(var r=[],e=0;e{"use strict";x();T();Object.defineProperty(VX,"__esModule",{value:!0});var xxr=e8();function Txr(){for(var r=[],e=0;e{"use strict";x();T();Object.defineProperty(GX,"__esModule",{value:!0});var _xr=$C();function Cxr(r,e){return _xr.mergeMap(r,e,1)}GX.concatMap=Cxr});var WQe=O(JX=>{"use strict";x();T();Object.defineProperty(JX,"__esModule",{value:!0});var Exr=ZX();function kxr(r,e){return Exr.concatMap(function(){return r},e)}JX.concatMapTo=kxr});var jQe=O(d8=>{"use strict";x();T();var Sxr=d8&&d8.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(d8,"__esModule",{value:!0});var Axr=lr();function Mxr(r){return function(e){return e.lift(new Ixr(r,e))}}d8.count=Mxr;var Ixr=function(){function r(e,t){this.predicate=e,this.source=t}return r.prototype.call=function(e,t){return t.subscribe(new Pxr(e,this.predicate,this.source))},r}(),Pxr=function(r){Sxr(e,r);function e(t,n,a){var i=r.call(this,t)||this;return i.predicate=n,i.source=a,i.count=0,i.index=0,i}return e.prototype._next=function(t){this.predicate?this._tryPredicate(t):this.count++},e.prototype._tryPredicate=function(t){var n;try{n=this.predicate(t,this.index++,this.source)}catch(a){this.destination.error(a);return}n&&this.count++},e.prototype._complete=function(){this.destination.next(this.count),this.destination.complete()},e}(Axr.Subscriber)});var zQe=O(p8=>{"use strict";x();T();var Rxr=p8&&p8.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(p8,"__esModule",{value:!0});var KX=Bi();function Nxr(r){return function(e){return e.lift(new Oxr(r))}}p8.debounce=Nxr;var Oxr=function(){function r(e){this.durationSelector=e}return r.prototype.call=function(e,t){return t.subscribe(new Lxr(e,this.durationSelector))},r}(),Lxr=function(r){Rxr(e,r);function e(t,n){var a=r.call(this,t)||this;return a.durationSelector=n,a.hasValue=!1,a}return e.prototype._next=function(t){try{var n=this.durationSelector.call(this,t);n&&this._tryNext(t,n)}catch(a){this.destination.error(a)}},e.prototype._complete=function(){this.emitValue(),this.destination.complete()},e.prototype._tryNext=function(t,n){var a=this.durationSubscription;this.value=t,this.hasValue=!0,a&&(a.unsubscribe(),this.remove(a)),a=KX.innerSubscribe(n,new KX.SimpleInnerSubscriber(this)),a&&!a.closed&&this.add(this.durationSubscription=a)},e.prototype.notifyNext=function(){this.emitValue()},e.prototype.notifyComplete=function(){this.emitValue()},e.prototype.emitValue=function(){if(this.hasValue){var t=this.value,n=this.durationSubscription;n&&(this.durationSubscription=void 0,n.unsubscribe(),this.remove(n)),this.value=void 0,this.hasValue=!1,r.prototype._next.call(this,t)}},e}(KX.SimpleOuterSubscriber)});var HQe=O(h8=>{"use strict";x();T();var Bxr=h8&&h8.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(h8,"__esModule",{value:!0});var qxr=lr(),Dxr=Yc();function Fxr(r,e){return e===void 0&&(e=Dxr.async),function(t){return t.lift(new Uxr(r,e))}}h8.debounceTime=Fxr;var Uxr=function(){function r(e,t){this.dueTime=e,this.scheduler=t}return r.prototype.call=function(e,t){return t.subscribe(new Wxr(e,this.dueTime,this.scheduler))},r}(),Wxr=function(r){Bxr(e,r);function e(t,n,a){var i=r.call(this,t)||this;return i.dueTime=n,i.scheduler=a,i.debouncedSubscription=null,i.lastValue=null,i.hasValue=!1,i}return e.prototype._next=function(t){this.clearDebounce(),this.lastValue=t,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(jxr,this.dueTime,this))},e.prototype._complete=function(){this.debouncedNext(),this.destination.complete()},e.prototype.debouncedNext=function(){if(this.clearDebounce(),this.hasValue){var t=this.lastValue;this.lastValue=null,this.hasValue=!1,this.destination.next(t)}},e.prototype.clearDebounce=function(){var t=this.debouncedSubscription;t!==null&&(this.remove(t),t.unsubscribe(),this.debouncedSubscription=null)},e}(qxr.Subscriber);function jxr(r){r.debouncedNext()}});var Zx=O(f8=>{"use strict";x();T();var zxr=f8&&f8.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(f8,"__esModule",{value:!0});var Hxr=lr();function Vxr(r){return r===void 0&&(r=null),function(e){return e.lift(new Gxr(r))}}f8.defaultIfEmpty=Vxr;var Gxr=function(){function r(e){this.defaultValue=e}return r.prototype.call=function(e,t){return t.subscribe(new Zxr(e,this.defaultValue))},r}(),Zxr=function(r){zxr(e,r);function e(t,n){var a=r.call(this,t)||this;return a.defaultValue=n,a.isEmpty=!0,a}return e.prototype._next=function(t){this.isEmpty=!1,this.destination.next(t)},e.prototype._complete=function(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()},e}(Hxr.Subscriber)});var XX=O(QX=>{"use strict";x();T();Object.defineProperty(QX,"__esModule",{value:!0});function Jxr(r){return r instanceof Date&&!isNaN(+r)}QX.isDate=Jxr});var GQe=O(m8=>{"use strict";x();T();var Kxr=m8&&m8.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(m8,"__esModule",{value:!0});var Qxr=Yc(),Xxr=XX(),Yxr=lr(),VQe=FC();function $xr(r,e){e===void 0&&(e=Qxr.async);var t=Xxr.isDate(r),n=t?+r-e.now():Math.abs(r);return function(a){return a.lift(new e5r(n,e))}}m8.delay=$xr;var e5r=function(){function r(e,t){this.delay=e,this.scheduler=t}return r.prototype.call=function(e,t){return t.subscribe(new t5r(e,this.delay,this.scheduler))},r}(),t5r=function(r){Kxr(e,r);function e(t,n,a){var i=r.call(this,t)||this;return i.delay=n,i.scheduler=a,i.queue=[],i.active=!1,i.errored=!1,i}return e.dispatch=function(t){for(var n=t.source,a=n.queue,i=t.scheduler,s=t.destination;a.length>0&&a[0].time-i.now()<=0;)a.shift().notification.observe(s);if(a.length>0){var c=Math.max(0,a[0].time-i.now());this.schedule(t,c)}else this.unsubscribe(),n.active=!1},e.prototype._schedule=function(t){this.active=!0;var n=this.destination;n.add(t.schedule(e.dispatch,this.delay,{source:this,destination:this.destination,scheduler:t}))},e.prototype.scheduleNotification=function(t){if(this.errored!==!0){var n=this.scheduler,a=new r5r(n.now()+this.delay,t);this.queue.push(a),this.active===!1&&this._schedule(n)}},e.prototype._next=function(t){this.scheduleNotification(VQe.Notification.createNext(t))},e.prototype._error=function(t){this.errored=!0,this.queue=[],this.destination.error(t),this.unsubscribe()},e.prototype._complete=function(){this.scheduleNotification(VQe.Notification.createComplete()),this.unsubscribe()},e}(Yxr.Subscriber),r5r=function(){function r(e,t){this.time=e,this.notification=t}return r}()});var JQe=O(y8=>{"use strict";x();T();var YX=y8&&y8.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(y8,"__esModule",{value:!0});var n5r=lr(),a5r=Sn(),i5r=ly(),s5r=dy();function o5r(r,e){return e?function(t){return new u5r(t,e).lift(new ZQe(r))}:function(t){return t.lift(new ZQe(r))}}y8.delayWhen=o5r;var ZQe=function(){function r(e){this.delayDurationSelector=e}return r.prototype.call=function(e,t){return t.subscribe(new c5r(e,this.delayDurationSelector))},r}(),c5r=function(r){YX(e,r);function e(t,n){var a=r.call(this,t)||this;return a.delayDurationSelector=n,a.completed=!1,a.delayNotifierSubscriptions=[],a.index=0,a}return e.prototype.notifyNext=function(t,n,a,i,s){this.destination.next(t),this.removeSubscription(s),this.tryComplete()},e.prototype.notifyError=function(t,n){this._error(t)},e.prototype.notifyComplete=function(t){var n=this.removeSubscription(t);n&&this.destination.next(n),this.tryComplete()},e.prototype._next=function(t){var n=this.index++;try{var a=this.delayDurationSelector(t,n);a&&this.tryDelay(a,t)}catch(i){this.destination.error(i)}},e.prototype._complete=function(){this.completed=!0,this.tryComplete(),this.unsubscribe()},e.prototype.removeSubscription=function(t){t.unsubscribe();var n=this.delayNotifierSubscriptions.indexOf(t);return n!==-1&&this.delayNotifierSubscriptions.splice(n,1),t.outerValue},e.prototype.tryDelay=function(t,n){var a=s5r.subscribeToResult(this,t,n);if(a&&!a.closed){var i=this.destination;i.add(a),this.delayNotifierSubscriptions.push(a)}},e.prototype.tryComplete=function(){this.completed&&this.delayNotifierSubscriptions.length===0&&this.destination.complete()},e}(i5r.OuterSubscriber),u5r=function(r){YX(e,r);function e(t,n){var a=r.call(this)||this;return a.source=t,a.subscriptionDelay=n,a}return e.prototype._subscribe=function(t){this.subscriptionDelay.subscribe(new l5r(t,this.source))},e}(a5r.Observable),l5r=function(r){YX(e,r);function e(t,n){var a=r.call(this)||this;return a.parent=t,a.source=n,a.sourceSubscribed=!1,a}return e.prototype._next=function(t){this.subscribeToSource()},e.prototype._error=function(t){this.unsubscribe(),this.parent.error(t)},e.prototype._complete=function(){this.unsubscribe(),this.subscribeToSource()},e.prototype.subscribeToSource=function(){this.sourceSubscribed||(this.sourceSubscribed=!0,this.unsubscribe(),this.source.subscribe(this.parent))},e}(n5r.Subscriber)});var KQe=O(g8=>{"use strict";x();T();var d5r=g8&&g8.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(g8,"__esModule",{value:!0});var p5r=lr();function h5r(){return function(e){return e.lift(new f5r)}}g8.dematerialize=h5r;var f5r=function(){function r(){}return r.prototype.call=function(e,t){return t.subscribe(new m5r(e))},r}(),m5r=function(r){d5r(e,r);function e(t){return r.call(this,t)||this}return e.prototype._next=function(t){t.observe(this.destination)},e}(p5r.Subscriber)});var XQe=O(Jx=>{"use strict";x();T();var y5r=Jx&&Jx.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(Jx,"__esModule",{value:!0});var $X=Bi();function g5r(r,e){return function(t){return t.lift(new v5r(r,e))}}Jx.distinct=g5r;var v5r=function(){function r(e,t){this.keySelector=e,this.flushes=t}return r.prototype.call=function(e,t){return t.subscribe(new QQe(e,this.keySelector,this.flushes))},r}(),QQe=function(r){y5r(e,r);function e(t,n,a){var i=r.call(this,t)||this;return i.keySelector=n,i.values=new Set,a&&i.add($X.innerSubscribe(a,new $X.SimpleInnerSubscriber(i))),i}return e.prototype.notifyNext=function(){this.values.clear()},e.prototype.notifyError=function(t){this._error(t)},e.prototype._next=function(t){this.keySelector?this._useKeySelector(t):this._finalizeNext(t,t)},e.prototype._useKeySelector=function(t){var n,a=this.destination;try{n=this.keySelector(t)}catch(i){a.error(i);return}this._finalizeNext(n,t)},e.prototype._finalizeNext=function(t,n){var a=this.values;a.has(t)||(a.add(t),this.destination.next(n))},e}($X.SimpleOuterSubscriber);Jx.DistinctSubscriber=QQe});var eY=O(v8=>{"use strict";x();T();var b5r=v8&&v8.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(v8,"__esModule",{value:!0});var w5r=lr();function x5r(r,e){return function(t){return t.lift(new T5r(r,e))}}v8.distinctUntilChanged=x5r;var T5r=function(){function r(e,t){this.compare=e,this.keySelector=t}return r.prototype.call=function(e,t){return t.subscribe(new _5r(e,this.compare,this.keySelector))},r}(),_5r=function(r){b5r(e,r);function e(t,n,a){var i=r.call(this,t)||this;return i.keySelector=a,i.hasKey=!1,typeof n=="function"&&(i.compare=n),i}return e.prototype.compare=function(t,n){return t===n},e.prototype._next=function(t){var n;try{var a=this.keySelector;n=a?a(t):t}catch(c){return this.destination.error(c)}var i=!1;if(this.hasKey)try{var s=this.compare;i=s(this.key,n)}catch(c){return this.destination.error(c)}else this.hasKey=!0;i||(this.key=n,this.destination.next(t))},e}(w5r.Subscriber)});var YQe=O(tY=>{"use strict";x();T();Object.defineProperty(tY,"__esModule",{value:!0});var C5r=eY();function E5r(r,e){return C5r.distinctUntilChanged(function(t,n){return e?e(t[r],n[r]):t[r]===n[r]})}tY.distinctUntilKeyChanged=E5r});var w8=O(b8=>{"use strict";x();T();var k5r=b8&&b8.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(b8,"__esModule",{value:!0});var S5r=zx(),A5r=lr();function M5r(r){return r===void 0&&(r=R5r),function(e){return e.lift(new I5r(r))}}b8.throwIfEmpty=M5r;var I5r=function(){function r(e){this.errorFactory=e}return r.prototype.call=function(e,t){return t.subscribe(new P5r(e,this.errorFactory))},r}(),P5r=function(r){k5r(e,r);function e(t,n){var a=r.call(this,t)||this;return a.errorFactory=n,a.hasValue=!1,a}return e.prototype._next=function(t){this.hasValue=!0,this.destination.next(t)},e.prototype._complete=function(){if(this.hasValue)return this.destination.complete();var t=void 0;try{t=this.errorFactory()}catch(n){t=n}this.destination.error(t)},e}(A5r.Subscriber);function R5r(){return new S5r.EmptyError}});var GN=O(x8=>{"use strict";x();T();var N5r=x8&&x8.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(x8,"__esModule",{value:!0});var O5r=lr(),L5r=jx(),B5r=Mp();function q5r(r){return function(e){return r===0?B5r.empty():e.lift(new D5r(r))}}x8.take=q5r;var D5r=function(){function r(e){if(this.total=e,this.total<0)throw new L5r.ArgumentOutOfRangeError}return r.prototype.call=function(e,t){return t.subscribe(new F5r(e,this.total))},r}(),F5r=function(r){N5r(e,r);function e(t,n){var a=r.call(this,t)||this;return a.total=n,a.count=0,a}return e.prototype._next=function(t){var n=this.total,a=++this.count;a<=n&&(this.destination.next(t),a===n&&(this.destination.complete(),this.unsubscribe()))},e}(O5r.Subscriber)});var eXe=O(rY=>{"use strict";x();T();Object.defineProperty(rY,"__esModule",{value:!0});var $Qe=jx(),U5r=Yv(),W5r=w8(),j5r=Zx(),z5r=GN();function H5r(r,e){if(r<0)throw new $Qe.ArgumentOutOfRangeError;var t=arguments.length>=2;return function(n){return n.pipe(U5r.filter(function(a,i){return i===r}),z5r.take(1),t?j5r.defaultIfEmpty(e):W5r.throwIfEmpty(function(){return new $Qe.ArgumentOutOfRangeError}))}}rY.elementAt=H5r});var tXe=O(nY=>{"use strict";x();T();Object.defineProperty(nY,"__esModule",{value:!0});var V5r=e8(),G5r=qC();function Z5r(){for(var r=[],e=0;e{"use strict";x();T();var J5r=T8&&T8.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(T8,"__esModule",{value:!0});var K5r=lr();function Q5r(r,e){return function(t){return t.lift(new X5r(r,e,t))}}T8.every=Q5r;var X5r=function(){function r(e,t,n){this.predicate=e,this.thisArg=t,this.source=n}return r.prototype.call=function(e,t){return t.subscribe(new Y5r(e,this.predicate,this.thisArg,this.source))},r}(),Y5r=function(r){J5r(e,r);function e(t,n,a,i){var s=r.call(this,t)||this;return s.predicate=n,s.thisArg=a,s.source=i,s.index=0,s.thisArg=a||s,s}return e.prototype.notifyComplete=function(t){this.destination.next(t),this.destination.complete()},e.prototype._next=function(t){var n=!1;try{n=this.predicate.call(this.thisArg,t,this.index++,this.source)}catch(a){this.destination.error(a);return}n||this.notifyComplete(!1)},e.prototype._complete=function(){this.notifyComplete(!0)},e}(K5r.Subscriber)});var nXe=O(_8=>{"use strict";x();T();var $5r=_8&&_8.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(_8,"__esModule",{value:!0});var aY=Bi();function e3r(){return function(r){return r.lift(new t3r)}}_8.exhaust=e3r;var t3r=function(){function r(){}return r.prototype.call=function(e,t){return t.subscribe(new r3r(e))},r}(),r3r=function(r){$5r(e,r);function e(t){var n=r.call(this,t)||this;return n.hasCompleted=!1,n.hasSubscription=!1,n}return e.prototype._next=function(t){this.hasSubscription||(this.hasSubscription=!0,this.add(aY.innerSubscribe(t,new aY.SimpleInnerSubscriber(this))))},e.prototype._complete=function(){this.hasCompleted=!0,this.hasSubscription||this.destination.complete()},e.prototype.notifyComplete=function(){this.hasSubscription=!1,this.hasCompleted&&this.destination.complete()},e}(aY.SimpleOuterSubscriber)});var iXe=O(C8=>{"use strict";x();T();var n3r=C8&&C8.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(C8,"__esModule",{value:!0});var a3r=gl(),i3r=Pp(),iY=Bi();function aXe(r,e){return e?function(t){return t.pipe(aXe(function(n,a){return i3r.from(r(n,a)).pipe(a3r.map(function(i,s){return e(n,i,a,s)}))}))}:function(t){return t.lift(new s3r(r))}}C8.exhaustMap=aXe;var s3r=function(){function r(e){this.project=e}return r.prototype.call=function(e,t){return t.subscribe(new o3r(e,this.project))},r}(),o3r=function(r){n3r(e,r);function e(t,n){var a=r.call(this,t)||this;return a.project=n,a.hasSubscription=!1,a.hasCompleted=!1,a.index=0,a}return e.prototype._next=function(t){this.hasSubscription||this.tryNext(t)},e.prototype.tryNext=function(t){var n,a=this.index++;try{n=this.project(t,a)}catch(i){this.destination.error(i);return}this.hasSubscription=!0,this._innerSub(n)},e.prototype._innerSub=function(t){var n=new iY.SimpleInnerSubscriber(this),a=this.destination;a.add(n);var i=iY.innerSubscribe(t,n);i!==n&&a.add(i)},e.prototype._complete=function(){this.hasCompleted=!0,this.hasSubscription||this.destination.complete(),this.unsubscribe()},e.prototype.notifyNext=function(t){this.destination.next(t)},e.prototype.notifyError=function(t){this.destination.error(t)},e.prototype.notifyComplete=function(){this.hasSubscription=!1,this.hasCompleted&&this.destination.complete()},e}(iY.SimpleOuterSubscriber)});var cXe=O(r1=>{"use strict";x();T();var c3r=r1&&r1.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(r1,"__esModule",{value:!0});var sY=Bi();function u3r(r,e,t){return e===void 0&&(e=Number.POSITIVE_INFINITY),e=(e||0)<1?Number.POSITIVE_INFINITY:e,function(n){return n.lift(new sXe(r,e,t))}}r1.expand=u3r;var sXe=function(){function r(e,t,n){this.project=e,this.concurrent=t,this.scheduler=n}return r.prototype.call=function(e,t){return t.subscribe(new oXe(e,this.project,this.concurrent,this.scheduler))},r}();r1.ExpandOperator=sXe;var oXe=function(r){c3r(e,r);function e(t,n,a,i){var s=r.call(this,t)||this;return s.project=n,s.concurrent=a,s.scheduler=i,s.index=0,s.active=0,s.hasCompleted=!1,a0&&this._next(t.shift()),this.hasCompleted&&this.active===0&&this.destination.complete()},e}(sY.SimpleOuterSubscriber);r1.ExpandSubscriber=oXe});var uXe=O(E8=>{"use strict";x();T();var l3r=E8&&E8.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(E8,"__esModule",{value:!0});var d3r=lr(),p3r=Ps();function h3r(r){return function(e){return e.lift(new f3r(r))}}E8.finalize=h3r;var f3r=function(){function r(e){this.callback=e}return r.prototype.call=function(e,t){return t.subscribe(new m3r(e,this.callback))},r}(),m3r=function(r){l3r(e,r);function e(t,n){var a=r.call(this,t)||this;return a.add(new p3r.Subscription(n)),a}return e}(d3r.Subscriber)});var oY=O(n1=>{"use strict";x();T();var y3r=n1&&n1.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(n1,"__esModule",{value:!0});var g3r=lr();function v3r(r,e){if(typeof r!="function")throw new TypeError("predicate is not a function");return function(t){return t.lift(new lXe(r,t,!1,e))}}n1.find=v3r;var lXe=function(){function r(e,t,n,a){this.predicate=e,this.source=t,this.yieldIndex=n,this.thisArg=a}return r.prototype.call=function(e,t){return t.subscribe(new dXe(e,this.predicate,this.source,this.yieldIndex,this.thisArg))},r}();n1.FindValueOperator=lXe;var dXe=function(r){y3r(e,r);function e(t,n,a,i,s){var c=r.call(this,t)||this;return c.predicate=n,c.source=a,c.yieldIndex=i,c.thisArg=s,c.index=0,c}return e.prototype.notifyComplete=function(t){var n=this.destination;n.next(t),n.complete(),this.unsubscribe()},e.prototype._next=function(t){var n=this,a=n.predicate,i=n.thisArg,s=this.index++;try{var c=a.call(i||this,t,s,this.source);c&&this.notifyComplete(this.yieldIndex?s:t)}catch(l){this.destination.error(l)}},e.prototype._complete=function(){this.notifyComplete(this.yieldIndex?-1:void 0)},e}(g3r.Subscriber);n1.FindValueSubscriber=dXe});var pXe=O(cY=>{"use strict";x();T();Object.defineProperty(cY,"__esModule",{value:!0});var b3r=oY();function w3r(r,e){return function(t){return t.lift(new b3r.FindValueOperator(r,t,!0,e))}}cY.findIndex=w3r});var hXe=O(uY=>{"use strict";x();T();Object.defineProperty(uY,"__esModule",{value:!0});var x3r=zx(),T3r=Yv(),_3r=GN(),C3r=Zx(),E3r=w8(),k3r=cy();function S3r(r,e){var t=arguments.length>=2;return function(n){return n.pipe(r?T3r.filter(function(a,i){return r(a,i,n)}):k3r.identity,_3r.take(1),t?C3r.defaultIfEmpty(e):E3r.throwIfEmpty(function(){return new x3r.EmptyError}))}}uY.first=S3r});var fXe=O(k8=>{"use strict";x();T();var A3r=k8&&k8.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(k8,"__esModule",{value:!0});var M3r=lr();function I3r(){return function(e){return e.lift(new P3r)}}k8.ignoreElements=I3r;var P3r=function(){function r(){}return r.prototype.call=function(e,t){return t.subscribe(new R3r(e))},r}(),R3r=function(r){A3r(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype._next=function(t){},e}(M3r.Subscriber)});var mXe=O(S8=>{"use strict";x();T();var N3r=S8&&S8.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(S8,"__esModule",{value:!0});var O3r=lr();function L3r(){return function(r){return r.lift(new B3r)}}S8.isEmpty=L3r;var B3r=function(){function r(){}return r.prototype.call=function(e,t){return t.subscribe(new q3r(e))},r}(),q3r=function(r){N3r(e,r);function e(t){return r.call(this,t)||this}return e.prototype.notifyComplete=function(t){var n=this.destination;n.next(t),n.complete()},e.prototype._next=function(t){this.notifyComplete(!1)},e.prototype._complete=function(){this.notifyComplete(!0)},e}(O3r.Subscriber)});var ZN=O(A8=>{"use strict";x();T();var D3r=A8&&A8.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(A8,"__esModule",{value:!0});var F3r=lr(),U3r=jx(),W3r=Mp();function j3r(r){return function(t){return r===0?W3r.empty():t.lift(new z3r(r))}}A8.takeLast=j3r;var z3r=function(){function r(e){if(this.total=e,this.total<0)throw new U3r.ArgumentOutOfRangeError}return r.prototype.call=function(e,t){return t.subscribe(new H3r(e,this.total))},r}(),H3r=function(r){D3r(e,r);function e(t,n){var a=r.call(this,t)||this;return a.total=n,a.ring=new Array,a.count=0,a}return e.prototype._next=function(t){var n=this.ring,a=this.total,i=this.count++;if(n.length0)for(var a=this.count>=this.total?this.total:this.count,i=this.ring,s=0;s{"use strict";x();T();Object.defineProperty(lY,"__esModule",{value:!0});var V3r=zx(),G3r=Yv(),Z3r=ZN(),J3r=w8(),K3r=Zx(),Q3r=cy();function X3r(r,e){var t=arguments.length>=2;return function(n){return n.pipe(r?G3r.filter(function(a,i){return r(a,i,n)}):Q3r.identity,Z3r.takeLast(1),t?K3r.defaultIfEmpty(e):J3r.throwIfEmpty(function(){return new V3r.EmptyError}))}}lY.last=X3r});var gXe=O(M8=>{"use strict";x();T();var Y3r=M8&&M8.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(M8,"__esModule",{value:!0});var $3r=lr();function e6r(r){return function(e){return e.lift(new t6r(r))}}M8.mapTo=e6r;var t6r=function(){function r(e){this.value=e}return r.prototype.call=function(e,t){return t.subscribe(new r6r(e,this.value))},r}(),r6r=function(r){Y3r(e,r);function e(t,n){var a=r.call(this,t)||this;return a.value=n,a}return e.prototype._next=function(t){this.destination.next(this.value)},e}($3r.Subscriber)});var vXe=O(I8=>{"use strict";x();T();var n6r=I8&&I8.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(I8,"__esModule",{value:!0});var a6r=lr(),dY=FC();function i6r(){return function(e){return e.lift(new s6r)}}I8.materialize=i6r;var s6r=function(){function r(){}return r.prototype.call=function(e,t){return t.subscribe(new o6r(e))},r}(),o6r=function(r){n6r(e,r);function e(t){return r.call(this,t)||this}return e.prototype._next=function(t){this.destination.next(dY.Notification.createNext(t))},e.prototype._error=function(t){var n=this.destination;n.next(dY.Notification.createError(t)),n.complete()},e.prototype._complete=function(){var t=this.destination;t.next(dY.Notification.createComplete()),t.complete()},e}(a6r.Subscriber)});var JN=O(P8=>{"use strict";x();T();var c6r=P8&&P8.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(P8,"__esModule",{value:!0});var u6r=lr();function l6r(r,e){var t=!1;return arguments.length>=2&&(t=!0),function(a){return a.lift(new d6r(r,e,t))}}P8.scan=l6r;var d6r=function(){function r(e,t,n){n===void 0&&(n=!1),this.accumulator=e,this.seed=t,this.hasSeed=n}return r.prototype.call=function(e,t){return t.subscribe(new p6r(e,this.accumulator,this.seed,this.hasSeed))},r}(),p6r=function(r){c6r(e,r);function e(t,n,a,i){var s=r.call(this,t)||this;return s.accumulator=n,s._seed=a,s.hasSeed=i,s.index=0,s}return Object.defineProperty(e.prototype,"seed",{get:function(){return this._seed},set:function(t){this.hasSeed=!0,this._seed=t},enumerable:!0,configurable:!0}),e.prototype._next=function(t){if(!this.hasSeed)this.seed=t,this.destination.next(t);else return this._tryNext(t)},e.prototype._tryNext=function(t){var n=this.index++,a;try{a=this.accumulator(this.seed,t,n)}catch(i){this.destination.error(i)}this.seed=a,this.destination.next(a)},e}(u6r.Subscriber)});var R8=O(pY=>{"use strict";x();T();Object.defineProperty(pY,"__esModule",{value:!0});var bXe=JN(),wXe=ZN(),h6r=Zx(),xXe=kN();function f6r(r,e){return arguments.length>=2?function(n){return xXe.pipe(bXe.scan(r,e),wXe.takeLast(1),h6r.defaultIfEmpty(e))(n)}:function(n){return xXe.pipe(bXe.scan(function(a,i,s){return r(a,i,s+1)}),wXe.takeLast(1))(n)}}pY.reduce=f6r});var TXe=O(hY=>{"use strict";x();T();Object.defineProperty(hY,"__esModule",{value:!0});var m6r=R8();function y6r(r){var e=typeof r=="function"?function(t,n){return r(t,n)>0?t:n}:function(t,n){return t>n?t:n};return m6r.reduce(e)}hY.max=y6r});var _Xe=O(fY=>{"use strict";x();T();Object.defineProperty(fY,"__esModule",{value:!0});var g6r=EX();function v6r(){for(var r=[],e=0;e{"use strict";x();T();Object.defineProperty(mY,"__esModule",{value:!0});var CXe=$C();function b6r(r,e,t){return t===void 0&&(t=Number.POSITIVE_INFINITY),typeof e=="function"?CXe.mergeMap(function(){return r},e,t):(typeof e=="number"&&(t=e),CXe.mergeMap(function(){return r},t))}mY.mergeMapTo=b6r});var AXe=O(a1=>{"use strict";x();T();var w6r=a1&&a1.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(a1,"__esModule",{value:!0});var yY=Bi();function x6r(r,e,t){return t===void 0&&(t=Number.POSITIVE_INFINITY),function(n){return n.lift(new kXe(r,e,t))}}a1.mergeScan=x6r;var kXe=function(){function r(e,t,n){this.accumulator=e,this.seed=t,this.concurrent=n}return r.prototype.call=function(e,t){return t.subscribe(new SXe(e,this.accumulator,this.seed,this.concurrent))},r}();a1.MergeScanOperator=kXe;var SXe=function(r){w6r(e,r);function e(t,n,a,i){var s=r.call(this,t)||this;return s.accumulator=n,s.acc=a,s.concurrent=i,s.hasValue=!1,s.hasCompleted=!1,s.buffer=[],s.active=0,s.index=0,s}return e.prototype._next=function(t){if(this.active0?this._next(t.shift()):this.active===0&&this.hasCompleted&&(this.hasValue===!1&&this.destination.next(this.acc),this.destination.complete())},e}(yY.SimpleOuterSubscriber);a1.MergeScanSubscriber=SXe});var MXe=O(gY=>{"use strict";x();T();Object.defineProperty(gY,"__esModule",{value:!0});var T6r=R8();function _6r(r){var e=typeof r=="function"?function(t,n){return r(t,n)<0?t:n}:function(t,n){return t{"use strict";x();T();Object.defineProperty(KN,"__esModule",{value:!0});var C6r=TQ();function E6r(r,e){return function(n){var a;if(typeof r=="function"?a=r:a=function(){return r},typeof e=="function")return n.lift(new IXe(a,e));var i=Object.create(n,C6r.connectableObservableDescriptor);return i.source=n,i.subjectFactory=a,i}}KN.multicast=E6r;var IXe=function(){function r(e,t){this.subjectFactory=e,this.selector=t}return r.prototype.call=function(e,t){var n=this.selector,a=this.subjectFactory(),i=n(a).subscribe(e);return i.add(t.subscribe(a)),i},r}();KN.MulticastOperator=IXe});var NXe=O(Kx=>{"use strict";x();T();var k6r=Kx&&Kx.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(Kx,"__esModule",{value:!0});var S6r=Pp(),PXe=Xc(),vY=Bi();function A6r(){for(var r=[],e=0;e{"use strict";x();T();var P6r=N8&&N8.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(N8,"__esModule",{value:!0});var R6r=lr();function N6r(){return function(r){return r.lift(new O6r)}}N8.pairwise=N6r;var O6r=function(){function r(){}return r.prototype.call=function(e,t){return t.subscribe(new L6r(e))},r}(),L6r=function(r){P6r(e,r);function e(t){var n=r.call(this,t)||this;return n.hasPrev=!1,n}return e.prototype._next=function(t){var n;this.hasPrev?n=[this.prev,t]:this.hasPrev=!0,this.prev=t,n&&this.destination.next(n)},e}(R6r.Subscriber)});var BXe=O(bY=>{"use strict";x();T();Object.defineProperty(bY,"__esModule",{value:!0});var B6r=IX(),LXe=Yv();function q6r(r,e){return function(t){return[LXe.filter(r,e)(t),LXe.filter(B6r.not(r,e))(t)]}}bY.partition=q6r});var qXe=O(wY=>{"use strict";x();T();Object.defineProperty(wY,"__esModule",{value:!0});var D6r=gl();function F6r(){for(var r=[],e=0;e{"use strict";x();T();Object.defineProperty(xY,"__esModule",{value:!0});var DXe=Cc(),FXe=i1();function W6r(r){return r?FXe.multicast(function(){return new DXe.Subject},r):FXe.multicast(new DXe.Subject)}xY.publish=W6r});var WXe=O(TY=>{"use strict";x();T();Object.defineProperty(TY,"__esModule",{value:!0});var j6r=EQ(),z6r=i1();function H6r(r){return function(e){return z6r.multicast(new j6r.BehaviorSubject(r))(e)}}TY.publishBehavior=H6r});var jXe=O(_Y=>{"use strict";x();T();Object.defineProperty(_Y,"__esModule",{value:!0});var V6r=jC(),G6r=i1();function Z6r(){return function(r){return G6r.multicast(new V6r.AsyncSubject)(r)}}_Y.publishLast=Z6r});var zXe=O(CY=>{"use strict";x();T();Object.defineProperty(CY,"__esModule",{value:!0});var J6r=RN(),K6r=i1();function Q6r(r,e,t,n){t&&typeof t!="function"&&(n=t);var a=typeof t=="function"?t:void 0,i=new J6r.ReplaySubject(r,e,n);return function(s){return K6r.multicast(function(){return i},a)(s)}}CY.publishReplay=Q6r});var HXe=O(EY=>{"use strict";x();T();Object.defineProperty(EY,"__esModule",{value:!0});var X6r=Xc(),Y6r=RX();function $6r(){for(var r=[],e=0;e{"use strict";x();T();var eTr=O8&&O8.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(O8,"__esModule",{value:!0});var tTr=lr(),rTr=Mp();function nTr(r){return r===void 0&&(r=-1),function(e){return r===0?rTr.empty():r<0?e.lift(new VXe(-1,e)):e.lift(new VXe(r-1,e))}}O8.repeat=nTr;var VXe=function(){function r(e,t){this.count=e,this.source=t}return r.prototype.call=function(e,t){return t.subscribe(new aTr(e,this.count,this.source))},r}(),aTr=function(r){eTr(e,r);function e(t,n,a){var i=r.call(this,t)||this;return i.count=n,i.source=a,i}return e.prototype.complete=function(){if(!this.isStopped){var t=this,n=t.source,a=t.count;if(a===0)return r.prototype.complete.call(this);a>-1&&(this.count=a-1),n.subscribe(this._unsubscribeAndRecycle())}},e}(tTr.Subscriber)});var ZXe=O(L8=>{"use strict";x();T();var iTr=L8&&L8.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(L8,"__esModule",{value:!0});var sTr=Cc(),kY=Bi();function oTr(r){return function(e){return e.lift(new cTr(r))}}L8.repeatWhen=oTr;var cTr=function(){function r(e){this.notifier=e}return r.prototype.call=function(e,t){return t.subscribe(new uTr(e,this.notifier,t))},r}(),uTr=function(r){iTr(e,r);function e(t,n,a){var i=r.call(this,t)||this;return i.notifier=n,i.source=a,i.sourceIsBeingSubscribedTo=!0,i}return e.prototype.notifyNext=function(){this.sourceIsBeingSubscribedTo=!0,this.source.subscribe(this)},e.prototype.notifyComplete=function(){if(this.sourceIsBeingSubscribedTo===!1)return r.prototype.complete.call(this)},e.prototype.complete=function(){if(this.sourceIsBeingSubscribedTo=!1,!this.isStopped){if(this.retries||this.subscribeToRetries(),!this.retriesSubscription||this.retriesSubscription.closed)return r.prototype.complete.call(this);this._unsubscribeAndRecycle(),this.notifications.next(void 0)}},e.prototype._unsubscribe=function(){var t=this,n=t.notifications,a=t.retriesSubscription;n&&(n.unsubscribe(),this.notifications=void 0),a&&(a.unsubscribe(),this.retriesSubscription=void 0),this.retries=void 0},e.prototype._unsubscribeAndRecycle=function(){var t=this._unsubscribe;return this._unsubscribe=null,r.prototype._unsubscribeAndRecycle.call(this),this._unsubscribe=t,this},e.prototype.subscribeToRetries=function(){this.notifications=new sTr.Subject;var t;try{var n=this.notifier;t=n(this.notifications)}catch{return r.prototype.complete.call(this)}this.retries=t,this.retriesSubscription=kY.innerSubscribe(t,new kY.SimpleInnerSubscriber(this))},e}(kY.SimpleOuterSubscriber)});var JXe=O(B8=>{"use strict";x();T();var lTr=B8&&B8.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(B8,"__esModule",{value:!0});var dTr=lr();function pTr(r){return r===void 0&&(r=-1),function(e){return e.lift(new hTr(r,e))}}B8.retry=pTr;var hTr=function(){function r(e,t){this.count=e,this.source=t}return r.prototype.call=function(e,t){return t.subscribe(new fTr(e,this.count,this.source))},r}(),fTr=function(r){lTr(e,r);function e(t,n,a){var i=r.call(this,t)||this;return i.count=n,i.source=a,i}return e.prototype.error=function(t){if(!this.isStopped){var n=this,a=n.source,i=n.count;if(i===0)return r.prototype.error.call(this,t);i>-1&&(this.count=i-1),a.subscribe(this._unsubscribeAndRecycle())}},e}(dTr.Subscriber)});var KXe=O(q8=>{"use strict";x();T();var mTr=q8&&q8.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(q8,"__esModule",{value:!0});var yTr=Cc(),SY=Bi();function gTr(r){return function(e){return e.lift(new vTr(r,e))}}q8.retryWhen=gTr;var vTr=function(){function r(e,t){this.notifier=e,this.source=t}return r.prototype.call=function(e,t){return t.subscribe(new bTr(e,this.notifier,this.source))},r}(),bTr=function(r){mTr(e,r);function e(t,n,a){var i=r.call(this,t)||this;return i.notifier=n,i.source=a,i}return e.prototype.error=function(t){if(!this.isStopped){var n=this.errors,a=this.retries,i=this.retriesSubscription;if(a)this.errors=void 0,this.retriesSubscription=void 0;else{n=new yTr.Subject;try{var s=this.notifier;a=s(n)}catch(c){return r.prototype.error.call(this,c)}i=SY.innerSubscribe(a,new SY.SimpleInnerSubscriber(this))}this._unsubscribeAndRecycle(),this.errors=n,this.retries=a,this.retriesSubscription=i,n.next(t)}},e.prototype._unsubscribe=function(){var t=this,n=t.errors,a=t.retriesSubscription;n&&(n.unsubscribe(),this.errors=void 0),a&&(a.unsubscribe(),this.retriesSubscription=void 0),this.retries=void 0},e.prototype.notifyNext=function(){var t=this._unsubscribe;this._unsubscribe=null,this._unsubscribeAndRecycle(),this._unsubscribe=t,this.source.subscribe(this)},e}(SY.SimpleOuterSubscriber)});var QXe=O(D8=>{"use strict";x();T();var wTr=D8&&D8.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(D8,"__esModule",{value:!0});var AY=Bi();function xTr(r){return function(e){return e.lift(new TTr(r))}}D8.sample=xTr;var TTr=function(){function r(e){this.notifier=e}return r.prototype.call=function(e,t){var n=new _Tr(e),a=t.subscribe(n);return a.add(AY.innerSubscribe(this.notifier,new AY.SimpleInnerSubscriber(n))),a},r}(),_Tr=function(r){wTr(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.hasValue=!1,t}return e.prototype._next=function(t){this.value=t,this.hasValue=!0},e.prototype.notifyNext=function(){this.emitValue()},e.prototype.notifyComplete=function(){this.emitValue()},e.prototype.emitValue=function(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.value))},e}(AY.SimpleOuterSubscriber)});var XXe=O(F8=>{"use strict";x();T();var CTr=F8&&F8.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(F8,"__esModule",{value:!0});var ETr=lr(),kTr=Yc();function STr(r,e){return e===void 0&&(e=kTr.async),function(t){return t.lift(new ATr(r,e))}}F8.sampleTime=STr;var ATr=function(){function r(e,t){this.period=e,this.scheduler=t}return r.prototype.call=function(e,t){return t.subscribe(new MTr(e,this.period,this.scheduler))},r}(),MTr=function(r){CTr(e,r);function e(t,n,a){var i=r.call(this,t)||this;return i.period=n,i.scheduler=a,i.hasValue=!1,i.add(a.schedule(ITr,n,{subscriber:i,period:n})),i}return e.prototype._next=function(t){this.lastValue=t,this.hasValue=!0},e.prototype.notifyNext=function(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.lastValue))},e}(ETr.Subscriber);function ITr(r){var e=r.subscriber,t=r.period;e.notifyNext(),this.schedule(r,t)}});var rYe=O(s1=>{"use strict";x();T();var YXe=s1&&s1.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(s1,"__esModule",{value:!0});var $Xe=lr();function PTr(r,e){return function(t){return t.lift(new eYe(r,e))}}s1.sequenceEqual=PTr;var eYe=function(){function r(e,t){this.compareTo=e,this.comparator=t}return r.prototype.call=function(e,t){return t.subscribe(new tYe(e,this.compareTo,this.comparator))},r}();s1.SequenceEqualOperator=eYe;var tYe=function(r){YXe(e,r);function e(t,n,a){var i=r.call(this,t)||this;return i.compareTo=n,i.comparator=a,i._a=[],i._b=[],i._oneComplete=!1,i.destination.add(n.subscribe(new RTr(t,i))),i}return e.prototype._next=function(t){this._oneComplete&&this._b.length===0?this.emit(!1):(this._a.push(t),this.checkValues())},e.prototype._complete=function(){this._oneComplete?this.emit(this._a.length===0&&this._b.length===0):this._oneComplete=!0,this.unsubscribe()},e.prototype.checkValues=function(){for(var t=this,n=t._a,a=t._b,i=t.comparator;n.length>0&&a.length>0;){var s=n.shift(),c=a.shift(),l=!1;try{l=i?i(s,c):s===c}catch(d){this.destination.error(d)}l||this.emit(!1)}},e.prototype.emit=function(t){var n=this.destination;n.next(t),n.complete()},e.prototype.nextB=function(t){this._oneComplete&&this._a.length===0?this.emit(!1):(this._b.push(t),this.checkValues())},e.prototype.completeB=function(){this._oneComplete?this.emit(this._a.length===0&&this._b.length===0):this._oneComplete=!0},e}($Xe.Subscriber);s1.SequenceEqualSubscriber=tYe;var RTr=function(r){YXe(e,r);function e(t,n){var a=r.call(this,t)||this;return a.parent=n,a}return e.prototype._next=function(t){this.parent.nextB(t)},e.prototype._error=function(t){this.parent.error(t),this.unsubscribe()},e.prototype._complete=function(){this.parent.completeB(),this.unsubscribe()},e}($Xe.Subscriber)});var nYe=O(MY=>{"use strict";x();T();Object.defineProperty(MY,"__esModule",{value:!0});var NTr=i1(),OTr=AN(),LTr=Cc();function BTr(){return new LTr.Subject}function qTr(){return function(r){return OTr.refCount()(NTr.multicast(BTr)(r))}}MY.share=qTr});var aYe=O(IY=>{"use strict";x();T();Object.defineProperty(IY,"__esModule",{value:!0});var DTr=RN();function FTr(r,e,t){var n;return r&&typeof r=="object"?n=r:n={bufferSize:r,windowTime:e,refCount:!1,scheduler:t},function(a){return a.lift(UTr(n))}}IY.shareReplay=FTr;function UTr(r){var e=r.bufferSize,t=e===void 0?Number.POSITIVE_INFINITY:e,n=r.windowTime,a=n===void 0?Number.POSITIVE_INFINITY:n,i=r.refCount,s=r.scheduler,c,l=0,d,f=!1,w=!1;return function(k){l++;var A;!c||f?(f=!1,c=new DTr.ReplaySubject(t,a,s),A=c.subscribe(this),d=k.subscribe({next:function(L){c.next(L)},error:function(L){f=!0,c.error(L)},complete:function(){w=!0,d=void 0,c.complete()}}),w&&(d=void 0)):A=c.subscribe(this),this.add(function(){l--,A.unsubscribe(),A=void 0,d&&!w&&i&&l===0&&(d.unsubscribe(),d=void 0,c=void 0)})}}});var iYe=O(U8=>{"use strict";x();T();var WTr=U8&&U8.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(U8,"__esModule",{value:!0});var jTr=lr(),zTr=zx();function HTr(r){return function(e){return e.lift(new VTr(r,e))}}U8.single=HTr;var VTr=function(){function r(e,t){this.predicate=e,this.source=t}return r.prototype.call=function(e,t){return t.subscribe(new GTr(e,this.predicate,this.source))},r}(),GTr=function(r){WTr(e,r);function e(t,n,a){var i=r.call(this,t)||this;return i.predicate=n,i.source=a,i.seenValue=!1,i.index=0,i}return e.prototype.applySingleValue=function(t){this.seenValue?this.destination.error("Sequence contains more than one element"):(this.seenValue=!0,this.singleValue=t)},e.prototype._next=function(t){var n=this.index++;this.predicate?this.tryNext(t,n):this.applySingleValue(t)},e.prototype.tryNext=function(t,n){try{this.predicate(t,n,this.source)&&this.applySingleValue(t)}catch(a){this.destination.error(a)}},e.prototype._complete=function(){var t=this.destination;this.index>0?(t.next(this.seenValue?this.singleValue:void 0),t.complete()):t.error(new zTr.EmptyError)},e}(jTr.Subscriber)});var sYe=O(W8=>{"use strict";x();T();var ZTr=W8&&W8.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(W8,"__esModule",{value:!0});var JTr=lr();function KTr(r){return function(e){return e.lift(new QTr(r))}}W8.skip=KTr;var QTr=function(){function r(e){this.total=e}return r.prototype.call=function(e,t){return t.subscribe(new XTr(e,this.total))},r}(),XTr=function(r){ZTr(e,r);function e(t,n){var a=r.call(this,t)||this;return a.total=n,a.count=0,a}return e.prototype._next=function(t){++this.count>this.total&&this.destination.next(t)},e}(JTr.Subscriber)});var cYe=O(j8=>{"use strict";x();T();var YTr=j8&&j8.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(j8,"__esModule",{value:!0});var oYe=lr(),$Tr=jx();function e_r(r){return function(e){return e.lift(new t_r(r))}}j8.skipLast=e_r;var t_r=function(){function r(e){if(this._skipCount=e,this._skipCount<0)throw new $Tr.ArgumentOutOfRangeError}return r.prototype.call=function(e,t){return this._skipCount===0?t.subscribe(new oYe.Subscriber(e)):t.subscribe(new r_r(e,this._skipCount))},r}(),r_r=function(r){YTr(e,r);function e(t,n){var a=r.call(this,t)||this;return a._skipCount=n,a._count=0,a._ring=new Array(n),a}return e.prototype._next=function(t){var n=this._skipCount,a=this._count++;if(a{"use strict";x();T();var n_r=z8&&z8.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(z8,"__esModule",{value:!0});var PY=Bi();function a_r(r){return function(e){return e.lift(new i_r(r))}}z8.skipUntil=a_r;var i_r=function(){function r(e){this.notifier=e}return r.prototype.call=function(e,t){return t.subscribe(new s_r(e,this.notifier))},r}(),s_r=function(r){n_r(e,r);function e(t,n){var a=r.call(this,t)||this;a.hasValue=!1;var i=new PY.SimpleInnerSubscriber(a);a.add(i),a.innerSubscription=i;var s=PY.innerSubscribe(n,i);return s!==i&&(a.add(s),a.innerSubscription=s),a}return e.prototype._next=function(t){this.hasValue&&r.prototype._next.call(this,t)},e.prototype.notifyNext=function(){this.hasValue=!0,this.innerSubscription&&this.innerSubscription.unsubscribe()},e.prototype.notifyComplete=function(){},e}(PY.SimpleOuterSubscriber)});var lYe=O(H8=>{"use strict";x();T();var o_r=H8&&H8.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(H8,"__esModule",{value:!0});var c_r=lr();function u_r(r){return function(e){return e.lift(new l_r(r))}}H8.skipWhile=u_r;var l_r=function(){function r(e){this.predicate=e}return r.prototype.call=function(e,t){return t.subscribe(new d_r(e,this.predicate))},r}(),d_r=function(r){o_r(e,r);function e(t,n){var a=r.call(this,t)||this;return a.predicate=n,a.skipping=!0,a.index=0,a}return e.prototype._next=function(t){var n=this.destination;this.skipping&&this.tryCallPredicate(t),this.skipping||n.next(t)},e.prototype.tryCallPredicate=function(t){try{var n=this.predicate(t,this.index++);this.skipping=Boolean(n)}catch(a){this.destination.error(a)}},e}(c_r.Subscriber)});var pYe=O(RY=>{"use strict";x();T();Object.defineProperty(RY,"__esModule",{value:!0});var dYe=e8(),p_r=Ip();function h_r(){for(var r=[],e=0;e{"use strict";x();T();var f_r=V8&&V8.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(V8,"__esModule",{value:!0});var m_r=Sn(),NY=DQ(),y_r=t8(),g_r=function(r){f_r(e,r);function e(t,n,a){n===void 0&&(n=0),a===void 0&&(a=NY.asap);var i=r.call(this)||this;return i.source=t,i.delayTime=n,i.scheduler=a,(!y_r.isNumeric(n)||n<0)&&(i.delayTime=0),(!a||typeof a.schedule!="function")&&(i.scheduler=NY.asap),i}return e.create=function(t,n,a){return n===void 0&&(n=0),a===void 0&&(a=NY.asap),new e(t,n,a)},e.dispatch=function(t){var n=t.source,a=t.subscriber;return this.add(n.subscribe(a))},e.prototype._subscribe=function(t){var n=this.delayTime,a=this.source,i=this.scheduler;return i.schedule(e.dispatch,n,{source:a,subscriber:t})},e}(m_r.Observable);V8.SubscribeOnObservable=g_r});var fYe=O(OY=>{"use strict";x();T();Object.defineProperty(OY,"__esModule",{value:!0});var v_r=hYe();function b_r(r,e){return e===void 0&&(e=0),function(n){return n.lift(new w_r(r,e))}}OY.subscribeOn=b_r;var w_r=function(){function r(e,t){this.scheduler=e,this.delay=t}return r.prototype.call=function(e,t){return new v_r.SubscribeOnObservable(t,this.delay,this.scheduler).subscribe(e)},r}()});var QN=O(G8=>{"use strict";x();T();var x_r=G8&&G8.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(G8,"__esModule",{value:!0});var T_r=gl(),__r=Pp(),LY=Bi();function mYe(r,e){return typeof e=="function"?function(t){return t.pipe(mYe(function(n,a){return __r.from(r(n,a)).pipe(T_r.map(function(i,s){return e(n,i,a,s)}))}))}:function(t){return t.lift(new C_r(r))}}G8.switchMap=mYe;var C_r=function(){function r(e){this.project=e}return r.prototype.call=function(e,t){return t.subscribe(new E_r(e,this.project))},r}(),E_r=function(r){x_r(e,r);function e(t,n){var a=r.call(this,t)||this;return a.project=n,a.index=0,a}return e.prototype._next=function(t){var n,a=this.index++;try{n=this.project(t,a)}catch(i){this.destination.error(i);return}this._innerSub(n)},e.prototype._innerSub=function(t){var n=this.innerSubscription;n&&n.unsubscribe();var a=new LY.SimpleInnerSubscriber(this),i=this.destination;i.add(a),this.innerSubscription=LY.innerSubscribe(t,a),this.innerSubscription!==a&&i.add(this.innerSubscription)},e.prototype._complete=function(){var t=this.innerSubscription;(!t||t.closed)&&r.prototype._complete.call(this),this.unsubscribe()},e.prototype._unsubscribe=function(){this.innerSubscription=void 0},e.prototype.notifyComplete=function(){this.innerSubscription=void 0,this.isStopped&&r.prototype._complete.call(this)},e.prototype.notifyNext=function(t){this.destination.next(t)},e}(LY.SimpleOuterSubscriber)});var yYe=O(BY=>{"use strict";x();T();Object.defineProperty(BY,"__esModule",{value:!0});var k_r=QN(),S_r=cy();function A_r(){return k_r.switchMap(S_r.identity)}BY.switchAll=A_r});var vYe=O(qY=>{"use strict";x();T();Object.defineProperty(qY,"__esModule",{value:!0});var gYe=QN();function M_r(r,e){return e?gYe.switchMap(function(){return r},e):gYe.switchMap(function(){return r})}qY.switchMapTo=M_r});var bYe=O(Z8=>{"use strict";x();T();var I_r=Z8&&Z8.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(Z8,"__esModule",{value:!0});var DY=Bi();function P_r(r){return function(e){return e.lift(new R_r(r))}}Z8.takeUntil=P_r;var R_r=function(){function r(e){this.notifier=e}return r.prototype.call=function(e,t){var n=new N_r(e),a=DY.innerSubscribe(this.notifier,new DY.SimpleInnerSubscriber(n));return a&&!n.seenValue?(n.add(a),t.subscribe(n)):n},r}(),N_r=function(r){I_r(e,r);function e(t){var n=r.call(this,t)||this;return n.seenValue=!1,n}return e.prototype.notifyNext=function(){this.seenValue=!0,this.complete()},e.prototype.notifyComplete=function(){},e}(DY.SimpleOuterSubscriber)});var wYe=O(J8=>{"use strict";x();T();var O_r=J8&&J8.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(J8,"__esModule",{value:!0});var L_r=lr();function B_r(r,e){return e===void 0&&(e=!1),function(t){return t.lift(new q_r(r,e))}}J8.takeWhile=B_r;var q_r=function(){function r(e,t){this.predicate=e,this.inclusive=t}return r.prototype.call=function(e,t){return t.subscribe(new D_r(e,this.predicate,this.inclusive))},r}(),D_r=function(r){O_r(e,r);function e(t,n,a){var i=r.call(this,t)||this;return i.predicate=n,i.inclusive=a,i.index=0,i}return e.prototype._next=function(t){var n=this.destination,a;try{a=this.predicate(t,this.index++)}catch(i){n.error(i);return}this.nextOrComplete(t,a)},e.prototype.nextOrComplete=function(t,n){var a=this.destination;Boolean(n)?a.next(t):(this.inclusive&&a.next(t),a.complete())},e}(L_r.Subscriber)});var xYe=O(K8=>{"use strict";x();T();var F_r=K8&&K8.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(K8,"__esModule",{value:!0});var U_r=lr(),hy=LN(),W_r=Nx();function j_r(r,e,t){return function(a){return a.lift(new z_r(r,e,t))}}K8.tap=j_r;var z_r=function(){function r(e,t,n){this.nextOrObserver=e,this.error=t,this.complete=n}return r.prototype.call=function(e,t){return t.subscribe(new H_r(e,this.nextOrObserver,this.error,this.complete))},r}(),H_r=function(r){F_r(e,r);function e(t,n,a,i){var s=r.call(this,t)||this;return s._tapNext=hy.noop,s._tapError=hy.noop,s._tapComplete=hy.noop,s._tapError=a||hy.noop,s._tapComplete=i||hy.noop,W_r.isFunction(n)?(s._context=s,s._tapNext=n):n&&(s._context=n,s._tapNext=n.next||hy.noop,s._tapError=n.error||hy.noop,s._tapComplete=n.complete||hy.noop),s}return e.prototype._next=function(t){try{this._tapNext.call(this._context,t)}catch(n){this.destination.error(n);return}this.destination.next(t)},e.prototype._error=function(t){try{this._tapError.call(this._context,t)}catch(n){this.destination.error(n);return}this.destination.error(t)},e.prototype._complete=function(){try{this._tapComplete.call(this._context)}catch(t){this.destination.error(t);return}return this.destination.complete()},e}(U_r.Subscriber)});var UY=O(o1=>{"use strict";x();T();var V_r=o1&&o1.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(o1,"__esModule",{value:!0});var FY=Bi();o1.defaultThrottleConfig={leading:!0,trailing:!1};function G_r(r,e){return e===void 0&&(e=o1.defaultThrottleConfig),function(t){return t.lift(new Z_r(r,!!e.leading,!!e.trailing))}}o1.throttle=G_r;var Z_r=function(){function r(e,t,n){this.durationSelector=e,this.leading=t,this.trailing=n}return r.prototype.call=function(e,t){return t.subscribe(new J_r(e,this.durationSelector,this.leading,this.trailing))},r}(),J_r=function(r){V_r(e,r);function e(t,n,a,i){var s=r.call(this,t)||this;return s.destination=t,s.durationSelector=n,s._leading=a,s._trailing=i,s._hasValue=!1,s}return e.prototype._next=function(t){this._hasValue=!0,this._sendValue=t,this._throttled||(this._leading?this.send():this.throttle(t))},e.prototype.send=function(){var t=this,n=t._hasValue,a=t._sendValue;n&&(this.destination.next(a),this.throttle(a)),this._hasValue=!1,this._sendValue=void 0},e.prototype.throttle=function(t){var n=this.tryDurationSelector(t);n&&this.add(this._throttled=FY.innerSubscribe(n,new FY.SimpleInnerSubscriber(this)))},e.prototype.tryDurationSelector=function(t){try{return this.durationSelector(t)}catch(n){return this.destination.error(n),null}},e.prototype.throttlingDone=function(){var t=this,n=t._throttled,a=t._trailing;n&&n.unsubscribe(),this._throttled=void 0,a&&this.send()},e.prototype.notifyNext=function(){this.throttlingDone()},e.prototype.notifyComplete=function(){this.throttlingDone()},e}(FY.SimpleOuterSubscriber)});var TYe=O(Q8=>{"use strict";x();T();var K_r=Q8&&Q8.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(Q8,"__esModule",{value:!0});var Q_r=lr(),X_r=Yc(),Y_r=UY();function $_r(r,e,t){return e===void 0&&(e=X_r.async),t===void 0&&(t=Y_r.defaultThrottleConfig),function(n){return n.lift(new eCr(r,e,t.leading,t.trailing))}}Q8.throttleTime=$_r;var eCr=function(){function r(e,t,n,a){this.duration=e,this.scheduler=t,this.leading=n,this.trailing=a}return r.prototype.call=function(e,t){return t.subscribe(new tCr(e,this.duration,this.scheduler,this.leading,this.trailing))},r}(),tCr=function(r){K_r(e,r);function e(t,n,a,i,s){var c=r.call(this,t)||this;return c.duration=n,c.scheduler=a,c.leading=i,c.trailing=s,c._hasTrailingValue=!1,c._trailingValue=null,c}return e.prototype._next=function(t){this.throttled?this.trailing&&(this._trailingValue=t,this._hasTrailingValue=!0):(this.add(this.throttled=this.scheduler.schedule(rCr,this.duration,{subscriber:this})),this.leading?this.destination.next(t):this.trailing&&(this._trailingValue=t,this._hasTrailingValue=!0))},e.prototype._complete=function(){this._hasTrailingValue?(this.destination.next(this._trailingValue),this.destination.complete()):this.destination.complete()},e.prototype.clearThrottle=function(){var t=this.throttled;t&&(this.trailing&&this._hasTrailingValue&&(this.destination.next(this._trailingValue),this._trailingValue=null,this._hasTrailingValue=!1),t.unsubscribe(),this.remove(t),this.throttled=null)},e}(Q_r.Subscriber);function rCr(r){var e=r.subscriber;e.clearThrottle()}});var CYe=O(XN=>{"use strict";x();T();Object.defineProperty(XN,"__esModule",{value:!0});var nCr=Yc(),aCr=JN(),iCr=UN(),sCr=gl();function oCr(r){return r===void 0&&(r=nCr.async),function(e){return iCr.defer(function(){return e.pipe(aCr.scan(function(t,n){var a=t.current;return{value:n,current:r.now(),last:a}},{current:r.now(),value:void 0,last:void 0}),sCr.map(function(t){var n=t.current,a=t.last,i=t.value;return new _Ye(i,n-a)}))})}}XN.timeInterval=oCr;var _Ye=function(){function r(e,t){this.value=e,this.interval=t}return r}();XN.TimeInterval=_Ye});var jY=O(X8=>{"use strict";x();T();var cCr=X8&&X8.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(X8,"__esModule",{value:!0});var uCr=Yc(),lCr=XX(),WY=Bi();function dCr(r,e,t){return t===void 0&&(t=uCr.async),function(n){var a=lCr.isDate(r),i=a?+r-t.now():Math.abs(r);return n.lift(new pCr(i,a,e,t))}}X8.timeoutWith=dCr;var pCr=function(){function r(e,t,n,a){this.waitFor=e,this.absoluteTimeout=t,this.withObservable=n,this.scheduler=a}return r.prototype.call=function(e,t){return t.subscribe(new hCr(e,this.absoluteTimeout,this.waitFor,this.withObservable,this.scheduler))},r}(),hCr=function(r){cCr(e,r);function e(t,n,a,i,s){var c=r.call(this,t)||this;return c.absoluteTimeout=n,c.waitFor=a,c.withObservable=i,c.scheduler=s,c.scheduleTimeout(),c}return e.dispatchTimeout=function(t){var n=t.withObservable;t._unsubscribeAndRecycle(),t.add(WY.innerSubscribe(n,new WY.SimpleInnerSubscriber(t)))},e.prototype.scheduleTimeout=function(){var t=this.action;t?this.action=t.schedule(this,this.waitFor):this.add(this.action=this.scheduler.schedule(e.dispatchTimeout,this.waitFor,this))},e.prototype._next=function(t){this.absoluteTimeout||this.scheduleTimeout(),r.prototype._next.call(this,t)},e.prototype._unsubscribe=function(){this.action=void 0,this.scheduler=null,this.withObservable=null},e}(WY.SimpleOuterSubscriber)});var EYe=O(zY=>{"use strict";x();T();Object.defineProperty(zY,"__esModule",{value:!0});var fCr=Yc(),mCr=HQ(),yCr=jY(),gCr=PN();function vCr(r,e){return e===void 0&&(e=fCr.async),yCr.timeoutWith(r,gCr.throwError(new mCr.TimeoutError),e)}zY.timeout=vCr});var SYe=O(YN=>{"use strict";x();T();Object.defineProperty(YN,"__esModule",{value:!0});var bCr=Yc(),wCr=gl();function xCr(r){return r===void 0&&(r=bCr.async),wCr.map(function(e){return new kYe(e,r.now())})}YN.timestamp=xCr;var kYe=function(){function r(e,t){this.value=e,this.timestamp=t}return r}();YN.Timestamp=kYe});var AYe=O(HY=>{"use strict";x();T();Object.defineProperty(HY,"__esModule",{value:!0});var TCr=R8();function _Cr(r,e,t){return t===0?[e]:(r.push(e),r)}function CCr(){return TCr.reduce(_Cr,[])}HY.toArray=CCr});var IYe=O(Y8=>{"use strict";x();T();var ECr=Y8&&Y8.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(Y8,"__esModule",{value:!0});var MYe=Cc(),VY=Bi();function kCr(r){return function(t){return t.lift(new SCr(r))}}Y8.window=kCr;var SCr=function(){function r(e){this.windowBoundaries=e}return r.prototype.call=function(e,t){var n=new ACr(e),a=t.subscribe(n);return a.closed||n.add(VY.innerSubscribe(this.windowBoundaries,new VY.SimpleInnerSubscriber(n))),a},r}(),ACr=function(r){ECr(e,r);function e(t){var n=r.call(this,t)||this;return n.window=new MYe.Subject,t.next(n.window),n}return e.prototype.notifyNext=function(){this.openWindow()},e.prototype.notifyError=function(t){this._error(t)},e.prototype.notifyComplete=function(){this._complete()},e.prototype._next=function(t){this.window.next(t)},e.prototype._error=function(t){this.window.error(t),this.destination.error(t)},e.prototype._complete=function(){this.window.complete(),this.destination.complete()},e.prototype._unsubscribe=function(){this.window=null},e.prototype.openWindow=function(){var t=this.window;t&&t.complete();var n=this.destination,a=this.window=new MYe.Subject;n.next(a)},e}(VY.SimpleOuterSubscriber)});var RYe=O($8=>{"use strict";x();T();var MCr=$8&&$8.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty($8,"__esModule",{value:!0});var ICr=lr(),PYe=Cc();function PCr(r,e){return e===void 0&&(e=0),function(n){return n.lift(new RCr(r,e))}}$8.windowCount=PCr;var RCr=function(){function r(e,t){this.windowSize=e,this.startWindowEvery=t}return r.prototype.call=function(e,t){return t.subscribe(new NCr(e,this.windowSize,this.startWindowEvery))},r}(),NCr=function(r){MCr(e,r);function e(t,n,a){var i=r.call(this,t)||this;return i.destination=t,i.windowSize=n,i.startWindowEvery=a,i.windows=[new PYe.Subject],i.count=0,t.next(i.windows[0]),i}return e.prototype._next=function(t){for(var n=this.startWindowEvery>0?this.startWindowEvery:this.windowSize,a=this.destination,i=this.windowSize,s=this.windows,c=s.length,l=0;l=0&&d%n===0&&!this.closed&&s.shift().complete(),++this.count%n===0&&!this.closed){var f=new PYe.Subject;s.push(f),a.next(f)}},e.prototype._error=function(t){var n=this.windows;if(n)for(;n.length>0&&!this.closed;)n.shift().error(t);this.destination.error(t)},e.prototype._complete=function(){var t=this.windows;if(t)for(;t.length>0&&!this.closed;)t.shift().complete();this.destination.complete()},e.prototype._unsubscribe=function(){this.count=0,this.windows=null},e}(ICr.Subscriber)});var BYe=O(e4=>{"use strict";x();T();var OYe=e4&&e4.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(e4,"__esModule",{value:!0});var OCr=Cc(),LCr=Yc(),BCr=lr(),NYe=t8(),GY=Ip();function qCr(r){var e=LCr.async,t=null,n=Number.POSITIVE_INFINITY;return GY.isScheduler(arguments[3])&&(e=arguments[3]),GY.isScheduler(arguments[2])?e=arguments[2]:NYe.isNumeric(arguments[2])&&(n=Number(arguments[2])),GY.isScheduler(arguments[1])?e=arguments[1]:NYe.isNumeric(arguments[1])&&(t=Number(arguments[1])),function(i){return i.lift(new DCr(r,t,n,e))}}e4.windowTime=qCr;var DCr=function(){function r(e,t,n,a){this.windowTimeSpan=e,this.windowCreationInterval=t,this.maxWindowSize=n,this.scheduler=a}return r.prototype.call=function(e,t){return t.subscribe(new UCr(e,this.windowTimeSpan,this.windowCreationInterval,this.maxWindowSize,this.scheduler))},r}(),FCr=function(r){OYe(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t._numberOfNextedValues=0,t}return e.prototype.next=function(t){this._numberOfNextedValues++,r.prototype.next.call(this,t)},Object.defineProperty(e.prototype,"numberOfNextedValues",{get:function(){return this._numberOfNextedValues},enumerable:!0,configurable:!0}),e}(OCr.Subject),UCr=function(r){OYe(e,r);function e(t,n,a,i,s){var c=r.call(this,t)||this;c.destination=t,c.windowTimeSpan=n,c.windowCreationInterval=a,c.maxWindowSize=i,c.scheduler=s,c.windows=[];var l=c.openWindow();if(a!==null&&a>=0){var d={subscriber:c,window:l,context:null},f={windowTimeSpan:n,windowCreationInterval:a,subscriber:c,scheduler:s};c.add(s.schedule(LYe,n,d)),c.add(s.schedule(jCr,a,f))}else{var w={subscriber:c,window:l,windowTimeSpan:n};c.add(s.schedule(WCr,n,w))}return c}return e.prototype._next=function(t){for(var n=this.windows,a=n.length,i=0;i=this.maxWindowSize&&this.closeWindow(s))}},e.prototype._error=function(t){for(var n=this.windows;n.length>0;)n.shift().error(t);this.destination.error(t)},e.prototype._complete=function(){for(var t=this.windows;t.length>0;){var n=t.shift();n.closed||n.complete()}this.destination.complete()},e.prototype.openWindow=function(){var t=new FCr;this.windows.push(t);var n=this.destination;return n.next(t),t},e.prototype.closeWindow=function(t){t.complete();var n=this.windows;n.splice(n.indexOf(t),1)},e}(BCr.Subscriber);function WCr(r){var e=r.subscriber,t=r.windowTimeSpan,n=r.window;n&&e.closeWindow(n),r.window=e.openWindow(),this.schedule(r,t)}function jCr(r){var e=r.windowTimeSpan,t=r.subscriber,n=r.scheduler,a=r.windowCreationInterval,i=t.openWindow(),s=this,c={action:s,subscription:null},l={subscriber:t,window:i,context:c};c.subscription=n.schedule(LYe,e,l),s.add(c.subscription),s.schedule(r,a)}function LYe(r){var e=r.subscriber,t=r.window,n=r.context;n&&n.action&&n.subscription&&n.action.remove(n.subscription),e.closeWindow(t)}});var DYe=O(t4=>{"use strict";x();T();var zCr=t4&&t4.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(t4,"__esModule",{value:!0});var HCr=Cc(),VCr=Ps(),GCr=ly(),qYe=dy();function ZCr(r,e){return function(t){return t.lift(new JCr(r,e))}}t4.windowToggle=ZCr;var JCr=function(){function r(e,t){this.openings=e,this.closingSelector=t}return r.prototype.call=function(e,t){return t.subscribe(new KCr(e,this.openings,this.closingSelector))},r}(),KCr=function(r){zCr(e,r);function e(t,n,a){var i=r.call(this,t)||this;return i.openings=n,i.closingSelector=a,i.contexts=[],i.add(i.openSubscription=qYe.subscribeToResult(i,n,n)),i}return e.prototype._next=function(t){var n=this.contexts;if(n)for(var a=n.length,i=0;i{"use strict";x();T();var QCr=r4&&r4.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(r4,"__esModule",{value:!0});var XCr=Cc(),YCr=ly(),$Cr=dy();function e8r(r){return function(t){return t.lift(new t8r(r))}}r4.windowWhen=e8r;var t8r=function(){function r(e){this.closingSelector=e}return r.prototype.call=function(e,t){return t.subscribe(new r8r(e,this.closingSelector))},r}(),r8r=function(r){QCr(e,r);function e(t,n){var a=r.call(this,t)||this;return a.destination=t,a.closingSelector=n,a.openWindow(),a}return e.prototype.notifyNext=function(t,n,a,i,s){this.openWindow(s)},e.prototype.notifyError=function(t){this._error(t)},e.prototype.notifyComplete=function(t){this.openWindow(t)},e.prototype._next=function(t){this.window.next(t)},e.prototype._error=function(t){this.window.error(t),this.destination.error(t),this.unsubscribeClosingNotification()},e.prototype._complete=function(){this.window.complete(),this.destination.complete(),this.unsubscribeClosingNotification()},e.prototype.unsubscribeClosingNotification=function(){this.closingNotification&&this.closingNotification.unsubscribe()},e.prototype.openWindow=function(t){t===void 0&&(t=null),t&&(this.remove(t),t.unsubscribe());var n=this.window;n&&n.complete();var a=this.window=new XCr.Subject;this.destination.next(a);var i;try{var s=this.closingSelector;i=s()}catch(c){this.destination.error(c),this.window.error(c);return}this.add(this.closingNotification=$Cr.subscribeToResult(this,i))},e}(YCr.OuterSubscriber)});var UYe=O(n4=>{"use strict";x();T();var n8r=n4&&n4.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(n4,"__esModule",{value:!0});var a8r=ly(),i8r=dy();function s8r(){for(var r=[],e=0;e0){var s=i.indexOf(a);s!==-1&&i.splice(s,1)}},e.prototype.notifyComplete=function(){},e.prototype._next=function(t){if(this.toRespond.length===0){var n=[t].concat(this.values);this.project?this._tryProject(n):this.destination.next(n)}},e.prototype._tryProject=function(t){var n;try{n=this.project.apply(this,t)}catch(a){this.destination.error(a);return}this.destination.next(n)},e}(a8r.OuterSubscriber)});var WYe=O(ZY=>{"use strict";x();T();Object.defineProperty(ZY,"__esModule",{value:!0});var u8r=VN();function l8r(){for(var r=[],e=0;e{"use strict";x();T();Object.defineProperty(JY,"__esModule",{value:!0});var d8r=VN();function p8r(r){return function(e){return e.lift(new d8r.ZipOperator(r))}}JY.zipAll=p8r});var a4=O(gt=>{"use strict";x();T();Object.defineProperty(gt,"__esModule",{value:!0});var h8r=DX();gt.audit=h8r.audit;var f8r=kQe();gt.auditTime=f8r.auditTime;var m8r=SQe();gt.buffer=m8r.buffer;var y8r=IQe();gt.bufferCount=y8r.bufferCount;var g8r=NQe();gt.bufferTime=g8r.bufferTime;var v8r=LQe();gt.bufferToggle=v8r.bufferToggle;var b8r=BQe();gt.bufferWhen=b8r.bufferWhen;var w8r=qQe();gt.catchError=w8r.catchError;var x8r=DQe();gt.combineAll=x8r.combineAll;var T8r=FQe();gt.combineLatest=T8r.combineLatest;var _8r=UQe();gt.concat=_8r.concat;var C8r=fX();gt.concatAll=C8r.concatAll;var E8r=ZX();gt.concatMap=E8r.concatMap;var k8r=WQe();gt.concatMapTo=k8r.concatMapTo;var S8r=jQe();gt.count=S8r.count;var A8r=zQe();gt.debounce=A8r.debounce;var M8r=HQe();gt.debounceTime=M8r.debounceTime;var I8r=Zx();gt.defaultIfEmpty=I8r.defaultIfEmpty;var P8r=GQe();gt.delay=P8r.delay;var R8r=JQe();gt.delayWhen=R8r.delayWhen;var N8r=KQe();gt.dematerialize=N8r.dematerialize;var O8r=XQe();gt.distinct=O8r.distinct;var L8r=eY();gt.distinctUntilChanged=L8r.distinctUntilChanged;var B8r=YQe();gt.distinctUntilKeyChanged=B8r.distinctUntilKeyChanged;var q8r=eXe();gt.elementAt=q8r.elementAt;var D8r=tXe();gt.endWith=D8r.endWith;var F8r=rXe();gt.every=F8r.every;var U8r=nXe();gt.exhaust=U8r.exhaust;var W8r=iXe();gt.exhaustMap=W8r.exhaustMap;var j8r=cXe();gt.expand=j8r.expand;var z8r=Yv();gt.filter=z8r.filter;var H8r=uXe();gt.finalize=H8r.finalize;var V8r=oY();gt.find=V8r.find;var G8r=pXe();gt.findIndex=G8r.findIndex;var Z8r=hXe();gt.first=Z8r.first;var J8r=CQ();gt.groupBy=J8r.groupBy;var K8r=fXe();gt.ignoreElements=K8r.ignoreElements;var Q8r=mXe();gt.isEmpty=Q8r.isEmpty;var X8r=yXe();gt.last=X8r.last;var Y8r=gl();gt.map=Y8r.map;var $8r=gXe();gt.mapTo=$8r.mapTo;var e4r=vXe();gt.materialize=e4r.materialize;var t4r=TXe();gt.max=t4r.max;var r4r=_Xe();gt.merge=r4r.merge;var n4r=FN();gt.mergeAll=n4r.mergeAll;var zYe=$C();gt.mergeMap=zYe.mergeMap;gt.flatMap=zYe.flatMap;var a4r=EXe();gt.mergeMapTo=a4r.mergeMapTo;var i4r=AXe();gt.mergeScan=i4r.mergeScan;var s4r=MXe();gt.min=s4r.min;var o4r=i1();gt.multicast=o4r.multicast;var c4r=qQ();gt.observeOn=c4r.observeOn;var u4r=NXe();gt.onErrorResumeNext=u4r.onErrorResumeNext;var l4r=OXe();gt.pairwise=l4r.pairwise;var d4r=BXe();gt.partition=d4r.partition;var p4r=qXe();gt.pluck=p4r.pluck;var h4r=UXe();gt.publish=h4r.publish;var f4r=WXe();gt.publishBehavior=f4r.publishBehavior;var m4r=jXe();gt.publishLast=m4r.publishLast;var y4r=zXe();gt.publishReplay=y4r.publishReplay;var g4r=HXe();gt.race=g4r.race;var v4r=R8();gt.reduce=v4r.reduce;var b4r=GXe();gt.repeat=b4r.repeat;var w4r=ZXe();gt.repeatWhen=w4r.repeatWhen;var x4r=JXe();gt.retry=x4r.retry;var T4r=KXe();gt.retryWhen=T4r.retryWhen;var _4r=AN();gt.refCount=_4r.refCount;var C4r=QXe();gt.sample=C4r.sample;var E4r=XXe();gt.sampleTime=E4r.sampleTime;var k4r=JN();gt.scan=k4r.scan;var S4r=rYe();gt.sequenceEqual=S4r.sequenceEqual;var A4r=nYe();gt.share=A4r.share;var M4r=aYe();gt.shareReplay=M4r.shareReplay;var I4r=iYe();gt.single=I4r.single;var P4r=sYe();gt.skip=P4r.skip;var R4r=cYe();gt.skipLast=R4r.skipLast;var N4r=uYe();gt.skipUntil=N4r.skipUntil;var O4r=lYe();gt.skipWhile=O4r.skipWhile;var L4r=pYe();gt.startWith=L4r.startWith;var B4r=fYe();gt.subscribeOn=B4r.subscribeOn;var q4r=yYe();gt.switchAll=q4r.switchAll;var D4r=QN();gt.switchMap=D4r.switchMap;var F4r=vYe();gt.switchMapTo=F4r.switchMapTo;var U4r=GN();gt.take=U4r.take;var W4r=ZN();gt.takeLast=W4r.takeLast;var j4r=bYe();gt.takeUntil=j4r.takeUntil;var z4r=wYe();gt.takeWhile=z4r.takeWhile;var H4r=xYe();gt.tap=H4r.tap;var V4r=UY();gt.throttle=V4r.throttle;var G4r=TYe();gt.throttleTime=G4r.throttleTime;var Z4r=w8();gt.throwIfEmpty=Z4r.throwIfEmpty;var J4r=CYe();gt.timeInterval=J4r.timeInterval;var K4r=EYe();gt.timeout=K4r.timeout;var Q4r=jY();gt.timeoutWith=Q4r.timeoutWith;var X4r=SYe();gt.timestamp=X4r.timestamp;var Y4r=AYe();gt.toArray=Y4r.toArray;var $4r=IYe();gt.window=$4r.window;var eEr=RYe();gt.windowCount=eEr.windowCount;var tEr=BYe();gt.windowTime=tEr.windowTime;var rEr=DYe();gt.windowToggle=rEr.windowToggle;var nEr=FYe();gt.windowWhen=nEr.windowWhen;var aEr=UYe();gt.withLatestFrom=aEr.withLatestFrom;var iEr=WYe();gt.zip=iEr.zip;var sEr=jYe();gt.zipAll=sEr.zipAll});var HYe=O(()=>{x();T()});var c$e=O((O5n,o$e)=>{x();T();var a$=typeof Map=="function"&&Map.prototype,KY=Object.getOwnPropertyDescriptor&&a$?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,eO=a$&&KY&&typeof KY.get=="function"?KY.get:null,oEr=a$&&Map.prototype.forEach,i$=typeof Set=="function"&&Set.prototype,QY=Object.getOwnPropertyDescriptor&&i$?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,tO=i$&&QY&&typeof QY.get=="function"?QY.get:null,cEr=i$&&Set.prototype.forEach,uEr=typeof WeakMap=="function"&&WeakMap.prototype,s4=uEr?WeakMap.prototype.has:null,lEr=typeof WeakSet=="function"&&WeakSet.prototype,o4=lEr?WeakSet.prototype.has:null,dEr=typeof WeakRef=="function"&&WeakRef.prototype,VYe=dEr?WeakRef.prototype.deref:null,pEr=Boolean.prototype.valueOf,hEr=Object.prototype.toString,fEr=Function.prototype.toString,mEr=String.prototype.match,s$=String.prototype.slice,my=String.prototype.replace,yEr=String.prototype.toUpperCase,GYe=String.prototype.toLowerCase,t$e=RegExp.prototype.test,ZYe=Array.prototype.concat,Jh=Array.prototype.join,gEr=Array.prototype.slice,JYe=Math.floor,$Y=typeof BigInt=="function"?BigInt.prototype.valueOf:null,XY=Object.getOwnPropertySymbols,e$=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,Qx=typeof Symbol=="function"&&typeof Symbol.iterator=="object",Ec=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===Qx?"object":"symbol")?Symbol.toStringTag:null,r$e=Object.prototype.propertyIsEnumerable,KYe=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(r){return r.__proto__}:null);function QYe(r,e){if(r===1/0||r===-1/0||r!==r||r&&r>-1e3&&r<1e3||t$e.call(/e/,e))return e;var t=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof r=="number"){var n=r<0?-JYe(-r):JYe(r);if(n!==r){var a=String(n),i=s$.call(e,a.length+1);return my.call(a,t,"$&_")+"."+my.call(my.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return my.call(e,t,"$&_")}var t$=HYe(),XYe=t$.custom,YYe=a$e(XYe)?XYe:null;o$e.exports=function r(e,t,n,a){var i=t||{};if(fy(i,"quoteStyle")&&i.quoteStyle!=="single"&&i.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(fy(i,"maxStringLength")&&(typeof i.maxStringLength=="number"?i.maxStringLength<0&&i.maxStringLength!==1/0:i.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var s=fy(i,"customInspect")?i.customInspect:!0;if(typeof s!="boolean"&&s!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(fy(i,"indent")&&i.indent!==null&&i.indent!==" "&&!(parseInt(i.indent,10)===i.indent&&i.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(fy(i,"numericSeparator")&&typeof i.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var c=i.numericSeparator;if(typeof e>"u")return"undefined";if(e===null)return"null";if(typeof e=="boolean")return e?"true":"false";if(typeof e=="string")return s$e(e,i);if(typeof e=="number"){if(e===0)return 1/0/e>0?"0":"-0";var l=String(e);return c?QYe(e,l):l}if(typeof e=="bigint"){var d=String(e)+"n";return c?QYe(e,d):d}var f=typeof i.depth>"u"?5:i.depth;if(typeof n>"u"&&(n=0),n>=f&&f>0&&typeof e=="object")return r$(e)?"[Array]":"[Object]";var w=LEr(i,n);if(typeof a>"u")a=[];else if(i$e(a,e)>=0)return"[Circular]";function E(y,h,v){if(h&&(a=gEr.call(a),a.push(h)),v){var _={depth:i.depth};return fy(i,"quoteStyle")&&(_.quoteStyle=i.quoteStyle),r(y,_,n+1,a)}return r(y,i,n+1,a)}if(typeof e=="function"&&!$Ye(e)){var k=kEr(e),A=$N(e,E);return"[Function"+(k?": "+k:" (anonymous)")+"]"+(A.length>0?" { "+Jh.call(A,", ")+" }":"")}if(a$e(e)){var L=Qx?my.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):e$.call(e);return typeof e=="object"&&!Qx?i4(L):L}if(REr(e)){for(var q="<"+GYe.call(String(e.nodeName)),U=e.attributes||[],j=0;j",q}if(r$(e)){if(e.length===0)return"[]";var H=$N(e,E);return w&&!OEr(H)?"["+n$(H,w)+"]":"[ "+Jh.call(H,", ")+" ]"}if(wEr(e)){var G=$N(e,E);return!("cause"in Error.prototype)&&"cause"in e&&!r$e.call(e,"cause")?"{ ["+String(e)+"] "+Jh.call(ZYe.call("[cause]: "+E(e.cause),G),", ")+" }":G.length===0?"["+String(e)+"]":"{ ["+String(e)+"] "+Jh.call(G,", ")+" }"}if(typeof e=="object"&&s){if(YYe&&typeof e[YYe]=="function"&&t$)return t$(e,{depth:f-n});if(s!=="symbol"&&typeof e.inspect=="function")return e.inspect()}if(SEr(e)){var te=[];return oEr.call(e,function(y,h){te.push(E(h,e,!0)+" => "+E(y,e))}),e$e("Map",eO.call(e),te,w)}if(IEr(e)){var K=[];return cEr.call(e,function(y){K.push(E(y,e))}),e$e("Set",tO.call(e),K,w)}if(AEr(e))return YY("WeakMap");if(PEr(e))return YY("WeakSet");if(MEr(e))return YY("WeakRef");if(TEr(e))return i4(E(Number(e)));if(CEr(e))return i4(E($Y.call(e)));if(_Er(e))return i4(pEr.call(e));if(xEr(e))return i4(E(String(e)));if(!bEr(e)&&!$Ye(e)){var ae=$N(e,E),J=KYe?KYe(e)===Object.prototype:e instanceof Object||e.constructor===Object,V=e instanceof Object?"":"null prototype",g=!J&&Ec&&Object(e)===e&&Ec in e?s$.call(yy(e),8,-1):V?"Object":"",o=J||typeof e.constructor!="function"?"":e.constructor.name?e.constructor.name+" ":"",p=o+(g||V?"["+Jh.call(ZYe.call([],g||[],V||[]),": ")+"] ":"");return ae.length===0?p+"{}":w?p+"{"+n$(ae,w)+"}":p+"{ "+Jh.call(ae,", ")+" }"}return String(e)};function n$e(r,e,t){var n=(t.quoteStyle||e)==="double"?'"':"'";return n+r+n}function vEr(r){return my.call(String(r),/"/g,""")}function r$(r){return yy(r)==="[object Array]"&&(!Ec||!(typeof r=="object"&&Ec in r))}function bEr(r){return yy(r)==="[object Date]"&&(!Ec||!(typeof r=="object"&&Ec in r))}function $Ye(r){return yy(r)==="[object RegExp]"&&(!Ec||!(typeof r=="object"&&Ec in r))}function wEr(r){return yy(r)==="[object Error]"&&(!Ec||!(typeof r=="object"&&Ec in r))}function xEr(r){return yy(r)==="[object String]"&&(!Ec||!(typeof r=="object"&&Ec in r))}function TEr(r){return yy(r)==="[object Number]"&&(!Ec||!(typeof r=="object"&&Ec in r))}function _Er(r){return yy(r)==="[object Boolean]"&&(!Ec||!(typeof r=="object"&&Ec in r))}function a$e(r){if(Qx)return r&&typeof r=="object"&&r instanceof Symbol;if(typeof r=="symbol")return!0;if(!r||typeof r!="object"||!e$)return!1;try{return e$.call(r),!0}catch{}return!1}function CEr(r){if(!r||typeof r!="object"||!$Y)return!1;try{return $Y.call(r),!0}catch{}return!1}var EEr=Object.prototype.hasOwnProperty||function(r){return r in this};function fy(r,e){return EEr.call(r,e)}function yy(r){return hEr.call(r)}function kEr(r){if(r.name)return r.name;var e=mEr.call(fEr.call(r),/^function\s*([\w$]+)/);return e?e[1]:null}function i$e(r,e){if(r.indexOf)return r.indexOf(e);for(var t=0,n=r.length;te.maxStringLength){var t=r.length-e.maxStringLength,n="... "+t+" more character"+(t>1?"s":"");return s$e(s$.call(r,0,e.maxStringLength),e)+n}var a=my.call(my.call(r,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,NEr);return n$e(a,"single",e)}function NEr(r){var e=r.charCodeAt(0),t={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return t?"\\"+t:"\\x"+(e<16?"0":"")+yEr.call(e.toString(16))}function i4(r){return"Object("+r+")"}function YY(r){return r+" { ? }"}function e$e(r,e,t,n){var a=n?n$(t,n):Jh.call(t,", ");return r+" ("+e+") {"+a+"}"}function OEr(r){for(var e=0;e=0)return!1;return!0}function LEr(r,e){var t;if(r.indent===" ")t=" ";else if(typeof r.indent=="number"&&r.indent>0)t=Jh.call(Array(r.indent+1)," ");else return null;return{base:t,prev:Jh.call(Array(e+1),t)}}function n$(r,e){if(r.length===0)return"";var t=` -`+e.prev+e.base;return t+Jh.call(r,","+t)+` -`+e.prev}function $N(r,e){var t=r$(r),n=[];if(t){n.length=r.length;for(var a=0;a{"use strict";x();T();var o$=D3(),Xx=F3(),BEr=c$e(),qEr=o$("%TypeError%"),rO=o$("%WeakMap%",!0),nO=o$("%Map%",!0),DEr=Xx("WeakMap.prototype.get",!0),FEr=Xx("WeakMap.prototype.set",!0),UEr=Xx("WeakMap.prototype.has",!0),WEr=Xx("Map.prototype.get",!0),jEr=Xx("Map.prototype.set",!0),zEr=Xx("Map.prototype.has",!0),c$=function(r,e){for(var t=r,n;(n=t.next)!==null;t=n)if(n.key===e)return t.next=n.next,n.next=r.next,r.next=n,n},HEr=function(r,e){var t=c$(r,e);return t&&t.value},VEr=function(r,e,t){var n=c$(r,e);n?n.value=t:r.next={key:e,next:r.next,value:t}},GEr=function(r,e){return!!c$(r,e)};u$e.exports=function(){var e,t,n,a={assert:function(i){if(!a.has(i))throw new qEr("Side channel does not contain "+BEr(i))},get:function(i){if(rO&&i&&(typeof i=="object"||typeof i=="function")){if(e)return DEr(e,i)}else if(nO){if(t)return WEr(t,i)}else if(n)return HEr(n,i)},has:function(i){if(rO&&i&&(typeof i=="object"||typeof i=="function")){if(e)return UEr(e,i)}else if(nO){if(t)return zEr(t,i)}else if(n)return GEr(n,i);return!1},set:function(i,s){rO&&i&&(typeof i=="object"||typeof i=="function")?(e||(e=new rO),FEr(e,i,s)):nO?(t||(t=new nO),jEr(t,i,s)):(n||(n={key:{},next:null}),VEr(n,i,s))}};return a}});var aO=O((U5n,d$e)=>{"use strict";x();T();var ZEr=String.prototype.replace,JEr=/%20/g,u$={RFC1738:"RFC1738",RFC3986:"RFC3986"};d$e.exports={default:u$.RFC3986,formatters:{RFC1738:function(r){return ZEr.call(r,JEr,"+")},RFC3986:function(r){return String(r)}},RFC1738:u$.RFC1738,RFC3986:u$.RFC3986}});var d$=O((z5n,h$e)=>{"use strict";x();T();var KEr=aO(),l$=Object.prototype.hasOwnProperty,c1=Array.isArray,Kh=function(){for(var r=[],e=0;e<256;++e)r.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return r}(),QEr=function(e){for(;e.length>1;){var t=e.pop(),n=t.obj[t.prop];if(c1(n)){for(var a=[],i=0;i=48&&d<=57||d>=65&&d<=90||d>=97&&d<=122||i===KEr.RFC1738&&(d===40||d===41)){c+=s.charAt(l);continue}if(d<128){c=c+Kh[d];continue}if(d<2048){c=c+(Kh[192|d>>6]+Kh[128|d&63]);continue}if(d<55296||d>=57344){c=c+(Kh[224|d>>12]+Kh[128|d>>6&63]+Kh[128|d&63]);continue}l+=1,d=65536+((d&1023)<<10|s.charCodeAt(l)&1023),c+=Kh[240|d>>18]+Kh[128|d>>12&63]+Kh[128|d>>6&63]+Kh[128|d&63]}return c},tkr=function(e){for(var t=[{obj:{o:e},prop:"o"}],n=[],a=0;a{"use strict";x();T();var y$e=l$e(),h$=d$(),c4=aO(),skr=Object.prototype.hasOwnProperty,f$e={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},bm=Array.isArray,okr=String.prototype.split,ckr=Array.prototype.push,g$e=function(r,e){ckr.apply(r,bm(e)?e:[e])},ukr=Date.prototype.toISOString,m$e=c4.default,vo={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:h$.encode,encodeValuesOnly:!1,format:m$e,formatter:c4.formatters[m$e],indices:!1,serializeDate:function(e){return ukr.call(e)},skipNulls:!1,strictNullHandling:!1},lkr=function(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"||typeof e=="symbol"||typeof e=="bigint"},p$={},dkr=function r(e,t,n,a,i,s,c,l,d,f,w,E,k,A,L,q){for(var U=e,j=q,H=0,G=!1;(j=j.get(p$))!==void 0&&!G;){var te=j.get(e);if(H+=1,typeof te<"u"){if(te===H)throw new RangeError("Cyclic object value");G=!0}typeof j.get(p$)>"u"&&(H=0)}if(typeof l=="function"?U=l(t,U):U instanceof Date?U=w(U):n==="comma"&&bm(U)&&(U=h$.maybeMap(U,function(u){return u instanceof Date?w(u):u})),U===null){if(i)return c&&!A?c(t,vo.encoder,L,"key",E):t;U=""}if(lkr(U)||h$.isBuffer(U)){if(c){var K=A?t:c(t,vo.encoder,L,"key",E);if(n==="comma"&&A){for(var ae=okr.call(String(U),","),J="",V=0;V"u")return g;var o;if(n==="comma"&&bm(U))o=[{value:U.length>0?U.join(",")||null:void 0}];else if(bm(l))o=l;else{var p=Object.keys(U);o=d?p.sort(d):p}for(var y=a&&bm(U)&&U.length===1?t+"[]":t,h=0;h"u"?vo.allowDots:!!e.allowDots,charset:t,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:vo.charsetSentinel,delimiter:typeof e.delimiter>"u"?vo.delimiter:e.delimiter,encode:typeof e.encode=="boolean"?e.encode:vo.encode,encoder:typeof e.encoder=="function"?e.encoder:vo.encoder,encodeValuesOnly:typeof e.encodeValuesOnly=="boolean"?e.encodeValuesOnly:vo.encodeValuesOnly,filter:i,format:n,formatter:a,serializeDate:typeof e.serializeDate=="function"?e.serializeDate:vo.serializeDate,skipNulls:typeof e.skipNulls=="boolean"?e.skipNulls:vo.skipNulls,sort:typeof e.sort=="function"?e.sort:null,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:vo.strictNullHandling}};v$e.exports=function(r,e){var t=r,n=pkr(e),a,i;typeof n.filter=="function"?(i=n.filter,t=i("",t)):bm(n.filter)&&(i=n.filter,a=i);var s=[];if(typeof t!="object"||t===null)return"";var c;e&&e.arrayFormat in f$e?c=e.arrayFormat:e&&"indices"in e?c=e.indices?"indices":"repeat":c="indices";var l=f$e[c];if(e&&"commaRoundTrip"in e&&typeof e.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var d=l==="comma"&&e&&e.commaRoundTrip;a||(a=Object.keys(t)),n.sort&&a.sort(n.sort);for(var f=y$e(),w=0;w0?A+k:""}});var T$e=O((K5n,x$e)=>{"use strict";x();T();var Yx=d$(),f$=Object.prototype.hasOwnProperty,hkr=Array.isArray,$s={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:Yx.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},fkr=function(r){return r.replace(/&#(\d+);/g,function(e,t){return String.fromCharCode(parseInt(t,10))})},w$e=function(r,e){return r&&typeof r=="string"&&e.comma&&r.indexOf(",")>-1?r.split(","):r},mkr="utf8=%26%2310003%3B",ykr="utf8=%E2%9C%93",gkr=function(e,t){var n={},a=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,i=t.parameterLimit===1/0?void 0:t.parameterLimit,s=a.split(t.delimiter,i),c=-1,l,d=t.charset;if(t.charsetSentinel)for(l=0;l-1&&(A=hkr(A)?[A]:A),f$.call(n,k)?n[k]=Yx.combine(n[k],A):n[k]=A}return n},vkr=function(r,e,t,n){for(var a=n?e:w$e(e,t),i=r.length-1;i>=0;--i){var s,c=r[i];if(c==="[]"&&t.parseArrays)s=[].concat(a);else{s=t.plainObjects?Object.create(null):{};var l=c.charAt(0)==="["&&c.charAt(c.length-1)==="]"?c.slice(1,-1):c,d=parseInt(l,10);!t.parseArrays&&l===""?s={0:a}:!isNaN(d)&&c!==l&&String(d)===l&&d>=0&&t.parseArrays&&d<=t.arrayLimit?(s=[],s[d]=a):l!=="__proto__"&&(s[l]=a)}a=s}return a},bkr=function(e,t,n,a){if(!!e){var i=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,s=/(\[[^[\]]*])/,c=/(\[[^[\]]*])/g,l=n.depth>0&&s.exec(i),d=l?i.slice(0,l.index):i,f=[];if(d){if(!n.plainObjects&&f$.call(Object.prototype,d)&&!n.allowPrototypes)return;f.push(d)}for(var w=0;n.depth>0&&(l=c.exec(i))!==null&&w"u"?$s.charset:e.charset;return{allowDots:typeof e.allowDots>"u"?$s.allowDots:!!e.allowDots,allowPrototypes:typeof e.allowPrototypes=="boolean"?e.allowPrototypes:$s.allowPrototypes,allowSparse:typeof e.allowSparse=="boolean"?e.allowSparse:$s.allowSparse,arrayLimit:typeof e.arrayLimit=="number"?e.arrayLimit:$s.arrayLimit,charset:t,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:$s.charsetSentinel,comma:typeof e.comma=="boolean"?e.comma:$s.comma,decoder:typeof e.decoder=="function"?e.decoder:$s.decoder,delimiter:typeof e.delimiter=="string"||Yx.isRegExp(e.delimiter)?e.delimiter:$s.delimiter,depth:typeof e.depth=="number"||e.depth===!1?+e.depth:$s.depth,ignoreQueryPrefix:e.ignoreQueryPrefix===!0,interpretNumericEntities:typeof e.interpretNumericEntities=="boolean"?e.interpretNumericEntities:$s.interpretNumericEntities,parameterLimit:typeof e.parameterLimit=="number"?e.parameterLimit:$s.parameterLimit,parseArrays:e.parseArrays!==!1,plainObjects:typeof e.plainObjects=="boolean"?e.plainObjects:$s.plainObjects,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:$s.strictNullHandling}};x$e.exports=function(r,e){var t=wkr(e);if(r===""||r===null||typeof r>"u")return t.plainObjects?Object.create(null):{};for(var n=typeof r=="string"?gkr(r,t):r,a=t.plainObjects?Object.create(null):{},i=Object.keys(n),s=0;s{"use strict";x();T();var xkr=b$e(),Tkr=T$e(),_kr=aO();_$e.exports={formats:_kr,parse:Tkr,stringify:xkr}});var l4=O(bo=>{"use strict";x();T();Object.defineProperty(bo,"__esModule",{value:!0});bo.ProviderType=bo.RegExpString=bo.IntNumber=bo.BigIntString=bo.AddressString=bo.HexString=bo.OpaqueType=void 0;function u4(){return r=>r}bo.OpaqueType=u4;bo.HexString=u4();bo.AddressString=u4();bo.BigIntString=u4();function Ckr(r){return Math.floor(r)}bo.IntNumber=Ckr;bo.RegExpString=u4();var Ekr;(function(r){r.CoinbaseWallet="CoinbaseWallet",r.MetaMask="MetaMask",r.Unselected=""})(Ekr=bo.ProviderType||(bo.ProviderType={}))});var wm=O(sr=>{"use strict";x();T();var kkr=sr&&sr.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(sr,"__esModule",{value:!0});sr.isInIFrame=sr.createQrUrl=sr.getFavicon=sr.range=sr.isBigNumber=sr.ensureParsedJSONObject=sr.ensureBN=sr.ensureRegExpString=sr.ensureIntNumber=sr.ensureBuffer=sr.ensureAddressString=sr.ensureEvenLengthHexString=sr.ensureHexString=sr.isHexString=sr.prepend0x=sr.strip0x=sr.has0xPrefix=sr.hexStringFromIntNumber=sr.intNumberFromHexString=sr.bigIntStringFromBN=sr.hexStringFromBuffer=sr.hexStringToUint8Array=sr.uint8ArrayToHex=sr.randomBytesHex=void 0;var gy=kkr(Xr()),Skr=C$e(),Sd=l4(),E$e=/^[0-9]*$/,k$e=/^[a-f0-9]*$/;function Akr(r){return S$e(crypto.getRandomValues(new Uint8Array(r)))}sr.randomBytesHex=Akr;function S$e(r){return[...r].map(e=>e.toString(16).padStart(2,"0")).join("")}sr.uint8ArrayToHex=S$e;function Mkr(r){return new Uint8Array(r.match(/.{1,2}/g).map(e=>parseInt(e,16)))}sr.hexStringToUint8Array=Mkr;function Ikr(r,e=!1){let t=r.toString("hex");return(0,Sd.HexString)(e?"0x"+t:t)}sr.hexStringFromBuffer=Ikr;function Pkr(r){return(0,Sd.BigIntString)(r.toString(10))}sr.bigIntStringFromBN=Pkr;function Rkr(r){return(0,Sd.IntNumber)(new gy.default(p4(r,!1),16).toNumber())}sr.intNumberFromHexString=Rkr;function Nkr(r){return(0,Sd.HexString)("0x"+new gy.default(r).toString(16))}sr.hexStringFromIntNumber=Nkr;function m$(r){return r.startsWith("0x")||r.startsWith("0X")}sr.has0xPrefix=m$;function iO(r){return m$(r)?r.slice(2):r}sr.strip0x=iO;function A$e(r){return m$(r)?"0x"+r.slice(2):"0x"+r}sr.prepend0x=A$e;function d4(r){if(typeof r!="string")return!1;let e=iO(r).toLowerCase();return k$e.test(e)}sr.isHexString=d4;function M$e(r,e=!1){if(typeof r=="string"){let t=iO(r).toLowerCase();if(k$e.test(t))return(0,Sd.HexString)(e?"0x"+t:t)}throw new Error(`"${String(r)}" is not a hexadecimal string`)}sr.ensureHexString=M$e;function p4(r,e=!1){let t=M$e(r,!1);return t.length%2===1&&(t=(0,Sd.HexString)("0"+t)),e?(0,Sd.HexString)("0x"+t):t}sr.ensureEvenLengthHexString=p4;function Okr(r){if(typeof r=="string"){let e=iO(r).toLowerCase();if(d4(e)&&e.length===40)return(0,Sd.AddressString)(A$e(e))}throw new Error(`Invalid Ethereum address: ${String(r)}`)}sr.ensureAddressString=Okr;function Lkr(r){if(P.Buffer.isBuffer(r))return r;if(typeof r=="string")if(d4(r)){let e=p4(r,!1);return P.Buffer.from(e,"hex")}else return P.Buffer.from(r,"utf8");throw new Error(`Not binary data: ${String(r)}`)}sr.ensureBuffer=Lkr;function I$e(r){if(typeof r=="number"&&Number.isInteger(r))return(0,Sd.IntNumber)(r);if(typeof r=="string"){if(E$e.test(r))return(0,Sd.IntNumber)(Number(r));if(d4(r))return(0,Sd.IntNumber)(new gy.default(p4(r,!1),16).toNumber())}throw new Error(`Not an integer: ${String(r)}`)}sr.ensureIntNumber=I$e;function Bkr(r){if(r instanceof RegExp)return(0,Sd.RegExpString)(r.toString());throw new Error(`Not a RegExp: ${String(r)}`)}sr.ensureRegExpString=Bkr;function qkr(r){if(r!==null&&(gy.default.isBN(r)||P$e(r)))return new gy.default(r.toString(10),10);if(typeof r=="number")return new gy.default(I$e(r));if(typeof r=="string"){if(E$e.test(r))return new gy.default(r,10);if(d4(r))return new gy.default(p4(r,!1),16)}throw new Error(`Not an integer: ${String(r)}`)}sr.ensureBN=qkr;function Dkr(r){if(typeof r=="string")return JSON.parse(r);if(typeof r=="object")return r;throw new Error(`Not a JSON string or an object: ${String(r)}`)}sr.ensureParsedJSONObject=Dkr;function P$e(r){if(r==null||typeof r.constructor!="function")return!1;let{constructor:e}=r;return typeof e.config=="function"&&typeof e.EUCLID=="number"}sr.isBigNumber=P$e;function Fkr(r,e){return Array.from({length:e-r},(t,n)=>r+n)}sr.range=Fkr;function Ukr(){let r=document.querySelector('link[sizes="192x192"]')||document.querySelector('link[sizes="180x180"]')||document.querySelector('link[rel="icon"]')||document.querySelector('link[rel="shortcut icon"]'),{protocol:e,host:t}=document.location,n=r?r.getAttribute("href"):null;return!n||n.startsWith("javascript:")?null:n.startsWith("http://")||n.startsWith("https://")||n.startsWith("data:")?n:n.startsWith("//")?e+n:`${e}//${t}${n}`}sr.getFavicon=Ukr;function Wkr(r,e,t,n,a,i){let s=n?"parent-id":"id",c=(0,Skr.stringify)({[s]:r,secret:e,server:t,v:a,chainId:i});return`${t}/#/link?${c}`}sr.createQrUrl=Wkr;function jkr(){try{return window.frameElement!==null}catch{return!1}}sr.isInIFrame=jkr});var oO=O(sO=>{"use strict";x();T();Object.defineProperty(sO,"__esModule",{value:!0});sO.Session=void 0;var zkr=t1(),R$e=a4(),N$e=u6(),O$e=wm(),y$="session:id",L$e="session:secret",B$e="session:linked",h4=class{constructor(e,t,n,a){this._storage=e,this._id=t||(0,O$e.randomBytesHex)(16),this._secret=n||(0,O$e.randomBytesHex)(32),this._key=new N$e.sha256().update(`${this._id}, ${this._secret} WalletLink`).digest("hex"),this._linked=!!a}static load(e){let t=e.getItem(y$),n=e.getItem(B$e),a=e.getItem(L$e);return t&&a?new h4(e,t,a,n==="1"):null}static get persistedSessionIdChange$(){return(0,zkr.fromEvent)(window,"storage").pipe((0,R$e.filter)(e=>e.key===y$),(0,R$e.map)(e=>({oldValue:e.oldValue||null,newValue:e.newValue||null})))}static hash(e){return new N$e.sha256().update(e).digest("hex")}get id(){return this._id}get secret(){return this._secret}get key(){return this._key}get linked(){return this._linked}set linked(e){this._linked=e,this.persistLinked()}save(){return this._storage.setItem(y$,this._id),this._storage.setItem(L$e,this._secret),this.persistLinked(),this}persistLinked(){this._storage.setItem(B$e,this._linked?"1":"0")}};sO.Session=h4});var v$=O(Qh=>{"use strict";x();T();Object.defineProperty(Qh,"__esModule",{value:!0});Qh.WalletSDKRelayAbstract=Qh.APP_VERSION_KEY=Qh.LOCAL_STORAGE_ADDRESSES_KEY=Qh.WALLET_USER_NAME_KEY=void 0;var q$e=yN();Qh.WALLET_USER_NAME_KEY="walletUsername";Qh.LOCAL_STORAGE_ADDRESSES_KEY="Addresses";Qh.APP_VERSION_KEY="AppVersion";var g$=class{async makeEthereumJSONRPCRequest(e,t){if(!t)throw new Error("Error: No jsonRpcUrl provided");return window.fetch(t,{method:"POST",body:JSON.stringify(e),mode:"cors",headers:{"Content-Type":"application/json"}}).then(n=>n.json()).then(n=>{if(!n)throw q$e.ethErrors.rpc.parse({});let a=n,{error:i}=a;if(i)throw(0,q$e.serializeError)(i);return a})}};Qh.WalletSDKRelayAbstract=g$});var U$e=O((h3n,F$e)=>{x();T();var{Transform:Hkr}=Y3();F$e.exports=r=>class D$e extends Hkr{constructor(t,n,a,i,s){super(s),this._rate=t,this._capacity=n,this._delimitedSuffix=a,this._hashBitLength=i,this._options=s,this._state=new r,this._state.initialize(t,n),this._finalized=!1}_transform(t,n,a){let i=null;try{this.update(t,n)}catch(s){i=s}a(i)}_flush(t){let n=null;try{this.push(this.digest())}catch(a){n=a}t(n)}update(t,n){if(!P.Buffer.isBuffer(t)&&typeof t!="string")throw new TypeError("Data must be a string or a buffer");if(this._finalized)throw new Error("Digest already called");return P.Buffer.isBuffer(t)||(t=P.Buffer.from(t,n)),this._state.absorb(t),this}digest(t){if(this._finalized)throw new Error("Digest already called");this._finalized=!0,this._delimitedSuffix&&this._state.absorbLastFewBits(this._delimitedSuffix);let n=this._state.squeeze(this._hashBitLength/8);return t!==void 0&&(n=n.toString(t)),this._resetState(),n}_resetState(){return this._state.initialize(this._rate,this._capacity),this}_clone(){let t=new D$e(this._rate,this._capacity,this._delimitedSuffix,this._hashBitLength,this._options);return this._state.copy(t._state),t._finalized=this._finalized,t}}});var z$e=O((y3n,j$e)=>{x();T();var{Transform:Vkr}=Y3();j$e.exports=r=>class W$e extends Vkr{constructor(t,n,a,i){super(i),this._rate=t,this._capacity=n,this._delimitedSuffix=a,this._options=i,this._state=new r,this._state.initialize(t,n),this._finalized=!1}_transform(t,n,a){let i=null;try{this.update(t,n)}catch(s){i=s}a(i)}_flush(){}_read(t){this.push(this.squeeze(t))}update(t,n){if(!P.Buffer.isBuffer(t)&&typeof t!="string")throw new TypeError("Data must be a string or a buffer");if(this._finalized)throw new Error("Squeeze already called");return P.Buffer.isBuffer(t)||(t=P.Buffer.from(t,n)),this._state.absorb(t),this}squeeze(t,n){this._finalized||(this._finalized=!0,this._state.absorbLastFewBits(this._delimitedSuffix));let a=this._state.squeeze(t);return n!==void 0&&(a=a.toString(n)),a}_resetState(){return this._state.initialize(this._rate,this._capacity),this}_clone(){let t=new W$e(this._rate,this._capacity,this._delimitedSuffix,this._options);return this._state.copy(t._state),t._finalized=this._finalized,t}}});var V$e=O((b3n,H$e)=>{x();T();var Gkr=U$e(),Zkr=z$e();H$e.exports=function(r){let e=Gkr(r),t=Zkr(r);return function(n,a){switch(typeof n=="string"?n.toLowerCase():n){case"keccak224":return new e(1152,448,null,224,a);case"keccak256":return new e(1088,512,null,256,a);case"keccak384":return new e(832,768,null,384,a);case"keccak512":return new e(576,1024,null,512,a);case"sha3-224":return new e(1152,448,6,224,a);case"sha3-256":return new e(1088,512,6,256,a);case"sha3-384":return new e(832,768,6,384,a);case"sha3-512":return new e(576,1024,6,512,a);case"shake128":return new t(1344,256,31,a);case"shake256":return new t(1088,512,31,a);default:throw new Error("Invald algorithm: "+n)}}}});var J$e=O(Z$e=>{x();T();var G$e=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648];Z$e.p1600=function(r){for(let e=0;e<24;++e){let t=r[0]^r[10]^r[20]^r[30]^r[40],n=r[1]^r[11]^r[21]^r[31]^r[41],a=r[2]^r[12]^r[22]^r[32]^r[42],i=r[3]^r[13]^r[23]^r[33]^r[43],s=r[4]^r[14]^r[24]^r[34]^r[44],c=r[5]^r[15]^r[25]^r[35]^r[45],l=r[6]^r[16]^r[26]^r[36]^r[46],d=r[7]^r[17]^r[27]^r[37]^r[47],f=r[8]^r[18]^r[28]^r[38]^r[48],w=r[9]^r[19]^r[29]^r[39]^r[49],E=f^(a<<1|i>>>31),k=w^(i<<1|a>>>31),A=r[0]^E,L=r[1]^k,q=r[10]^E,U=r[11]^k,j=r[20]^E,H=r[21]^k,G=r[30]^E,te=r[31]^k,K=r[40]^E,ae=r[41]^k;E=t^(s<<1|c>>>31),k=n^(c<<1|s>>>31);let J=r[2]^E,V=r[3]^k,g=r[12]^E,o=r[13]^k,p=r[22]^E,y=r[23]^k,h=r[32]^E,v=r[33]^k,_=r[42]^E,C=r[43]^k;E=a^(l<<1|d>>>31),k=i^(d<<1|l>>>31);let m=r[4]^E,u=r[5]^k,b=r[14]^E,R=r[15]^k,S=r[24]^E,B=r[25]^k,Z=r[34]^E,W=r[35]^k,X=r[44]^E,de=r[45]^k;E=s^(f<<1|w>>>31),k=c^(w<<1|f>>>31);let ne=r[6]^E,pe=r[7]^k,pt=r[16]^E,fe=r[17]^k,be=r[26]^E,Tt=r[27]^k,we=r[36]^E,Oe=r[37]^k,Pt=r[46]^E,Be=r[47]^k;E=l^(t<<1|n>>>31),k=d^(n<<1|t>>>31);let ze=r[8]^E,At=r[9]^k,Me=r[18]^E,Ve=r[19]^k,St=r[28]^E,Ie=r[29]^k,Ze=r[38]^E,Ut=r[39]^k,qe=r[48]^E,Xe=r[49]^k,Ht=A,Ae=L,Ke=U<<4|q>>>28,Gt=q<<4|U>>>28,Pe=j<<3|H>>>29,Qe=H<<3|j>>>29,Zt=te<<9|G>>>23,Re=G<<9|te>>>23,Ye=K<<18|ae>>>14,Jt=ae<<18|K>>>14,Ne=J<<1|V>>>31,$e=V<<1|J>>>31,Vt=o<<12|g>>>20,Se=g<<12|o>>>20,et=p<<10|y>>>22,Rt=y<<10|p>>>22,Le=v<<13|h>>>19,tt=h<<13|v>>>19,Kt=_<<2|C>>>30,De=C<<2|_>>>30,rt=u<<30|m>>>2,Qt=m<<30|u>>>2,ke=b<<6|R>>>26,Je=R<<6|b>>>26,Xt=B<<11|S>>>21,Ue=S<<11|B>>>21,st=Z<<15|W>>>17,rr=W<<15|Z>>>17,We=de<<29|X>>>3,nt=X<<29|de>>>3,ir=ne<<28|pe>>>4,je=pe<<28|ne>>>4,at=fe<<23|pt>>>9,Lr=pt<<23|fe>>>9,Wt=be<<25|Tt>>>7,jt=Tt<<25|be>>>7,Er=we<<21|Oe>>>11,kr=Oe<<21|we>>>11,Sr=Be<<24|Pt>>>8,Ar=Pt<<24|Be>>>8,Mr=ze<<27|At>>>5,Kr=At<<27|ze>>>5,Qr=Me<<20|Ve>>>12,Vr=Ve<<20|Me>>>12,Br=Ie<<7|St>>>25,Fr=St<<7|Ie>>>25,hr=Ze<<8|Ut>>>24,Gr=Ut<<8|Ze>>>24,gr=qe<<14|Xe>>>18,Ur=Xe<<14|qe>>>18;r[0]=Ht^~Vt&Xt,r[1]=Ae^~Se&Ue,r[10]=ir^~Qr&Pe,r[11]=je^~Vr&Qe,r[20]=Ne^~ke&Wt,r[21]=$e^~Je&jt,r[30]=Mr^~Ke&et,r[31]=Kr^~Gt&Rt,r[40]=rt^~at&Br,r[41]=Qt^~Lr&Fr,r[2]=Vt^~Xt&Er,r[3]=Se^~Ue&kr,r[12]=Qr^~Pe&Le,r[13]=Vr^~Qe&tt,r[22]=ke^~Wt&hr,r[23]=Je^~jt&Gr,r[32]=Ke^~et&st,r[33]=Gt^~Rt&rr,r[42]=at^~Br&Zt,r[43]=Lr^~Fr&Re,r[4]=Xt^~Er&gr,r[5]=Ue^~kr&Ur,r[14]=Pe^~Le&We,r[15]=Qe^~tt&nt,r[24]=Wt^~hr&Ye,r[25]=jt^~Gr&Jt,r[34]=et^~st&Sr,r[35]=Rt^~rr&Ar,r[44]=Br^~Zt&Kt,r[45]=Fr^~Re&De,r[6]=Er^~gr&Ht,r[7]=kr^~Ur&Ae,r[16]=Le^~We&ir,r[17]=tt^~nt&je,r[26]=hr^~Ye&Ne,r[27]=Gr^~Jt&$e,r[36]=st^~Sr&Mr,r[37]=rr^~Ar&Kr,r[46]=Zt^~Kt&rt,r[47]=Re^~De&Qt,r[8]=gr^~Ht&Vt,r[9]=Ur^~Ae&Se,r[18]=We^~ir&Qr,r[19]=nt^~je&Vr,r[28]=Ye^~Ne&ke,r[29]=Jt^~$e&Je,r[38]=Sr^~Mr&Ke,r[39]=Ar^~Kr&Gt,r[48]=Kt^~rt&at,r[49]=De^~Qt&Lr,r[0]^=G$e[e*2],r[1]^=G$e[e*2+1]}}});var Q$e=O((E3n,K$e)=>{x();T();var cO=J$e();function $x(){this.state=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],this.blockSize=null,this.count=0,this.squeezing=!1}$x.prototype.initialize=function(r,e){for(let t=0;t<50;++t)this.state[t]=0;this.blockSize=r/8,this.count=0,this.squeezing=!1};$x.prototype.absorb=function(r){for(let e=0;e>>8*(this.count%4)&255,this.count+=1,this.count===this.blockSize&&(cO.p1600(this.state),this.count=0);return e};$x.prototype.copy=function(r){for(let e=0;e<50;++e)r.state[e]=this.state[e];r.blockSize=this.blockSize,r.count=this.count,r.squeezing=this.squeezing};K$e.exports=$x});var Y$e=O((A3n,X$e)=>{x();T();X$e.exports=V$e()(Q$e())});var b$=O((P3n,net)=>{x();T();var Jkr=Y$e(),Kkr=Xr();function $$e(r){return P.Buffer.allocUnsafe(r).fill(0)}function eet(r,e,t){let n=$$e(e);return r=uO(r),t?r.length{x();T();var d1=b$(),l1=Xr();function iet(r){return r.startsWith("int[")?"int256"+r.slice(3):r==="int"?"int256":r.startsWith("uint[")?"uint256"+r.slice(4):r==="uint"?"uint256":r.startsWith("fixed[")?"fixed128x128"+r.slice(5):r==="fixed"?"fixed128x128":r.startsWith("ufixed[")?"ufixed128x128"+r.slice(6):r==="ufixed"?"ufixed128x128":r}function e5(r){return parseInt(/^\D+(\d+)$/.exec(r)[1],10)}function aet(r){var e=/^\D+(\d+)x(\d+)$/.exec(r);return[parseInt(e[1],10),parseInt(e[2],10)]}function set(r){var e=r.match(/(.*)\[(.*?)\]$/);return e?e[2]===""?"dynamic":parseInt(e[2],10):null}function u1(r){var e=typeof r;if(e==="string")return d1.isHexString(r)?new l1(d1.stripHexPrefix(r),16):new l1(r,10);if(e==="number")return new l1(r);if(r.toArray)return r;throw new Error("Argument is not a number")}function Xh(r,e){var t,n,a,i;if(r==="address")return Xh("uint160",u1(e));if(r==="bool")return Xh("uint8",e?1:0);if(r==="string")return Xh("bytes",new P.Buffer(e,"utf8"));if(tSr(r)){if(typeof e.length>"u")throw new Error("Not an array?");if(t=set(r),t!=="dynamic"&&t!==0&&e.length>t)throw new Error("Elements exceed array size: "+t);a=[],r=r.slice(0,r.lastIndexOf("[")),typeof e=="string"&&(e=JSON.parse(e));for(i in e)a.push(Xh(r,e[i]));if(t==="dynamic"){var s=Xh("uint256",e.length);a.unshift(s)}return P.Buffer.concat(a)}else{if(r==="bytes")return e=new P.Buffer(e),a=P.Buffer.concat([Xh("uint256",e.length),e]),e.length%32!==0&&(a=P.Buffer.concat([a,d1.zeros(32-e.length%32)])),a;if(r.startsWith("bytes")){if(t=e5(r),t<1||t>32)throw new Error("Invalid bytes width: "+t);return d1.setLengthRight(e,32)}else if(r.startsWith("uint")){if(t=e5(r),t%8||t<8||t>256)throw new Error("Invalid uint width: "+t);if(n=u1(e),n.bitLength()>t)throw new Error("Supplied uint exceeds width: "+t+" vs "+n.bitLength());if(n<0)throw new Error("Supplied uint is negative");return n.toArrayLike(P.Buffer,"be",32)}else if(r.startsWith("int")){if(t=e5(r),t%8||t<8||t>256)throw new Error("Invalid int width: "+t);if(n=u1(e),n.bitLength()>t)throw new Error("Supplied int exceeds width: "+t+" vs "+n.bitLength());return n.toTwos(256).toArrayLike(P.Buffer,"be",32)}else if(r.startsWith("ufixed")){if(t=aet(r),n=u1(e),n<0)throw new Error("Supplied ufixed is negative");return Xh("uint256",n.mul(new l1(2).pow(new l1(t[1]))))}else if(r.startsWith("fixed"))return t=aet(r),Xh("int256",u1(e).mul(new l1(2).pow(new l1(t[1]))))}throw new Error("Unsupported or invalid type: "+r)}function eSr(r){return r==="string"||r==="bytes"||set(r)==="dynamic"}function tSr(r){return r.lastIndexOf("]")===r.length-1}function rSr(r,e){var t=[],n=[],a=32*r.length;for(var i in r){var s=iet(r[i]),c=e[i],l=Xh(s,c);eSr(s)?(t.push(Xh("uint256",a)),n.push(l),a+=l.length):t.push(l)}return P.Buffer.concat(t.concat(n))}function oet(r,e){if(r.length!==e.length)throw new Error("Number of types are not matching the values");for(var t,n,a=[],i=0;i32)throw new Error("Invalid bytes width: "+t);a.push(d1.setLengthRight(c,t))}else if(s.startsWith("uint")){if(t=e5(s),t%8||t<8||t>256)throw new Error("Invalid uint width: "+t);if(n=u1(c),n.bitLength()>t)throw new Error("Supplied uint exceeds width: "+t+" vs "+n.bitLength());a.push(n.toArrayLike(P.Buffer,"be",t/8))}else if(s.startsWith("int")){if(t=e5(s),t%8||t<8||t>256)throw new Error("Invalid int width: "+t);if(n=u1(c),n.bitLength()>t)throw new Error("Supplied int exceeds width: "+t+" vs "+n.bitLength());a.push(n.toTwos(t).toArrayLike(P.Buffer,"be",t/8))}else throw new Error("Unsupported or invalid type: "+s)}return P.Buffer.concat(a)}function nSr(r,e){return d1.keccak(oet(r,e))}cet.exports={rawEncode:rSr,solidityPack:oet,soliditySHA3:nSr}});var het=O((q3n,pet)=>{x();T();var Rp=b$(),f4=uet(),det={type:"object",properties:{types:{type:"object",additionalProperties:{type:"array",items:{type:"object",properties:{name:{type:"string"},type:{type:"string"}},required:["name","type"]}}},primaryType:{type:"string"},domain:{type:"object"},message:{type:"object"}},required:["types","primaryType","domain","message"]},w$={encodeData(r,e,t,n=!0){let a=["bytes32"],i=[this.hashType(r,t)];if(n){let s=(c,l,d)=>{if(t[l]!==void 0)return["bytes32",d==null?"0x0000000000000000000000000000000000000000000000000000000000000000":Rp.keccak(this.encodeData(l,d,t,n))];if(d===void 0)throw new Error(`missing value for field ${c} of type ${l}`);if(l==="bytes")return["bytes32",Rp.keccak(d)];if(l==="string")return typeof d=="string"&&(d=P.Buffer.from(d,"utf8")),["bytes32",Rp.keccak(d)];if(l.lastIndexOf("]")===l.length-1){let f=l.slice(0,l.lastIndexOf("[")),w=d.map(E=>s(c,f,E));return["bytes32",Rp.keccak(f4.rawEncode(w.map(([E])=>E),w.map(([,E])=>E)))]}return[l,d]};for(let c of t[r]){let[l,d]=s(c.name,c.type,e[c.name]);a.push(l),i.push(d)}}else for(let s of t[r]){let c=e[s.name];if(c!==void 0)if(s.type==="bytes")a.push("bytes32"),c=Rp.keccak(c),i.push(c);else if(s.type==="string")a.push("bytes32"),typeof c=="string"&&(c=P.Buffer.from(c,"utf8")),c=Rp.keccak(c),i.push(c);else if(t[s.type]!==void 0)a.push("bytes32"),c=Rp.keccak(this.encodeData(s.type,c,t,n)),i.push(c);else{if(s.type.lastIndexOf("]")===s.type.length-1)throw new Error("Arrays currently unimplemented in encodeData");a.push(s.type),i.push(c)}}return f4.rawEncode(a,i)},encodeType(r,e){let t="",n=this.findTypeDependencies(r,e).filter(a=>a!==r);n=[r].concat(n.sort());for(let a of n){if(!e[a])throw new Error("No type definition specified: "+a);t+=a+"("+e[a].map(({name:s,type:c})=>c+" "+s).join(",")+")"}return t},findTypeDependencies(r,e,t=[]){if(r=r.match(/^\w*/)[0],t.includes(r)||e[r]===void 0)return t;t.push(r);for(let n of e[r])for(let a of this.findTypeDependencies(n.type,e,t))!t.includes(a)&&t.push(a);return t},hashStruct(r,e,t,n=!0){return Rp.keccak(this.encodeData(r,e,t,n))},hashType(r,e){return Rp.keccak(this.encodeType(r,e))},sanitizeData(r){let e={};for(let t in det.properties)r[t]&&(e[t]=r[t]);return e.types&&(e.types=Object.assign({EIP712Domain:[]},e.types)),e},hash(r,e=!0){let t=this.sanitizeData(r),n=[P.Buffer.from("1901","hex")];return n.push(this.hashStruct("EIP712Domain",t.domain,t.types,e)),t.primaryType!=="EIP712Domain"&&n.push(this.hashStruct(t.primaryType,t.message,t.types,e)),Rp.keccak(P.Buffer.concat(n))}};pet.exports={TYPED_MESSAGE_SCHEMA:det,TypedDataUtils:w$,hashForSignTypedDataLegacy:function(r){return aSr(r.data)},hashForSignTypedData_v3:function(r){return w$.hash(r.data,!1)},hashForSignTypedData_v4:function(r){return w$.hash(r.data)}};function aSr(r){let e=new Error("Expect argument to be non-empty array");if(typeof r!="object"||!r.length)throw e;let t=r.map(function(i){return i.type==="bytes"?Rp.toBuffer(i.value):i.value}),n=r.map(function(i){return i.type}),a=r.map(function(i){if(!i.name)throw e;return i.type+" "+i.name});return f4.soliditySHA3(["bytes32","bytes32"],[f4.soliditySHA3(new Array(r.length).fill("string"),a),f4.soliditySHA3(n,t)])}});var vet=O(r5=>{"use strict";x();T();Object.defineProperty(r5,"__esModule",{value:!0});r5.filterFromParam=r5.FilterPolyfill=void 0;var t5=l4(),$c=wm(),iSr=5*60*1e3,p1={jsonrpc:"2.0",id:0},x$=class{constructor(e){this.logFilters=new Map,this.blockFilters=new Set,this.pendingTransactionFilters=new Set,this.cursors=new Map,this.timeouts=new Map,this.nextFilterId=(0,t5.IntNumber)(1),this.provider=e}async newFilter(e){let t=get(e),n=this.makeFilterId(),a=await this.setInitialCursorPosition(n,t.fromBlock);return console.log(`Installing new log filter(${n}):`,t,"initial cursor position:",a),this.logFilters.set(n,t),this.setFilterTimeout(n),(0,$c.hexStringFromIntNumber)(n)}async newBlockFilter(){let e=this.makeFilterId(),t=await this.setInitialCursorPosition(e,"latest");return console.log(`Installing new block filter (${e}) with initial cursor position:`,t),this.blockFilters.add(e),this.setFilterTimeout(e),(0,$c.hexStringFromIntNumber)(e)}async newPendingTransactionFilter(){let e=this.makeFilterId(),t=await this.setInitialCursorPosition(e,"latest");return console.log(`Installing new block filter (${e}) with initial cursor position:`,t),this.pendingTransactionFilters.add(e),this.setFilterTimeout(e),(0,$c.hexStringFromIntNumber)(e)}uninstallFilter(e){let t=(0,$c.intNumberFromHexString)(e);return console.log(`Uninstalling filter (${t})`),this.deleteFilter(t),!0}getFilterChanges(e){let t=(0,$c.intNumberFromHexString)(e);return this.timeouts.has(t)&&this.setFilterTimeout(t),this.logFilters.has(t)?this.getLogFilterChanges(t):this.blockFilters.has(t)?this.getBlockFilterChanges(t):this.pendingTransactionFilters.has(t)?this.getPendingTransactionFilterChanges(t):Promise.resolve(lO())}async getFilterLogs(e){let t=(0,$c.intNumberFromHexString)(e),n=this.logFilters.get(t);return n?this.sendAsyncPromise(Object.assign(Object.assign({},p1),{method:"eth_getLogs",params:[fet(n)]})):lO()}makeFilterId(){return(0,t5.IntNumber)(++this.nextFilterId)}sendAsyncPromise(e){return new Promise((t,n)=>{this.provider.sendAsync(e,(a,i)=>{if(a)return n(a);if(Array.isArray(i)||i==null)return n(new Error(`unexpected response received: ${JSON.stringify(i)}`));t(i)})})}deleteFilter(e){console.log(`Deleting filter (${e})`),this.logFilters.delete(e),this.blockFilters.delete(e),this.pendingTransactionFilters.delete(e),this.cursors.delete(e),this.timeouts.delete(e)}async getLogFilterChanges(e){let t=this.logFilters.get(e),n=this.cursors.get(e);if(!n||!t)return lO();let a=await this.getCurrentBlockHeight(),i=t.toBlock==="latest"?a:t.toBlock;if(n>a||n>t.toBlock)return dO();console.log(`Fetching logs from ${n} to ${i} for filter ${e}`);let s=await this.sendAsyncPromise(Object.assign(Object.assign({},p1),{method:"eth_getLogs",params:[fet(Object.assign(Object.assign({},t),{fromBlock:n,toBlock:i}))]}));if(Array.isArray(s.result)){let c=s.result.map(d=>(0,$c.intNumberFromHexString)(d.blockNumber||"0x0")),l=Math.max(...c);if(l&&l>n){let d=(0,t5.IntNumber)(l+1);console.log(`Moving cursor position for filter (${e}) from ${n} to ${d}`),this.cursors.set(e,d)}}return s}async getBlockFilterChanges(e){let t=this.cursors.get(e);if(!t)return lO();let n=await this.getCurrentBlockHeight();if(t>n)return dO();console.log(`Fetching blocks from ${t} to ${n} for filter (${e})`);let a=(await Promise.all((0,$c.range)(t,n+1).map(s=>this.getBlockHashByNumber((0,t5.IntNumber)(s))))).filter(s=>!!s),i=(0,t5.IntNumber)(t+a.length);return console.log(`Moving cursor position for filter (${e}) from ${t} to ${i}`),this.cursors.set(e,i),Object.assign(Object.assign({},p1),{result:a})}async getPendingTransactionFilterChanges(e){return Promise.resolve(dO())}async setInitialCursorPosition(e,t){let n=await this.getCurrentBlockHeight(),a=typeof t=="number"&&t>n?t:n;return this.cursors.set(e,a),a}setFilterTimeout(e){let t=this.timeouts.get(e);t&&window.clearTimeout(t);let n=window.setTimeout(()=>{console.log(`Filter (${e}) timed out`),this.deleteFilter(e)},iSr);this.timeouts.set(e,n)}async getCurrentBlockHeight(){let{result:e}=await this.sendAsyncPromise(Object.assign(Object.assign({},p1),{method:"eth_blockNumber",params:[]}));return(0,$c.intNumberFromHexString)((0,$c.ensureHexString)(e))}async getBlockHashByNumber(e){let t=await this.sendAsyncPromise(Object.assign(Object.assign({},p1),{method:"eth_getBlockByNumber",params:[(0,$c.hexStringFromIntNumber)(e),!1]}));return t.result&&typeof t.result.hash=="string"?(0,$c.ensureHexString)(t.result.hash):null}};r5.FilterPolyfill=x$;function get(r){return{fromBlock:met(r.fromBlock),toBlock:met(r.toBlock),addresses:r.address===void 0?null:Array.isArray(r.address)?r.address:[r.address],topics:r.topics||[]}}r5.filterFromParam=get;function fet(r){let e={fromBlock:yet(r.fromBlock),toBlock:yet(r.toBlock),topics:r.topics};return r.addresses!==null&&(e.address=r.addresses),e}function met(r){if(r===void 0||r==="latest"||r==="pending")return"latest";if(r==="earliest")return(0,t5.IntNumber)(0);if((0,$c.isHexString)(r))return(0,$c.intNumberFromHexString)(r);throw new Error(`Invalid block option: ${String(r)}`)}function yet(r){return r==="latest"?r:(0,$c.hexStringFromIntNumber)(r)}function lO(){return Object.assign(Object.assign({},p1),{error:{code:-32e3,message:"filter not found"}})}function dO(){return Object.assign(Object.assign({},p1),{result:[]})}});var bet=O(m4=>{"use strict";x();T();Object.defineProperty(m4,"__esModule",{value:!0});m4.JSONRPCMethod=void 0;var sSr;(function(r){r.eth_accounts="eth_accounts",r.eth_coinbase="eth_coinbase",r.net_version="net_version",r.eth_chainId="eth_chainId",r.eth_uninstallFilter="eth_uninstallFilter",r.eth_requestAccounts="eth_requestAccounts",r.eth_sign="eth_sign",r.eth_ecRecover="eth_ecRecover",r.personal_sign="personal_sign",r.personal_ecRecover="personal_ecRecover",r.eth_signTransaction="eth_signTransaction",r.eth_sendRawTransaction="eth_sendRawTransaction",r.eth_sendTransaction="eth_sendTransaction",r.eth_signTypedData_v1="eth_signTypedData_v1",r.eth_signTypedData_v2="eth_signTypedData_v2",r.eth_signTypedData_v3="eth_signTypedData_v3",r.eth_signTypedData_v4="eth_signTypedData_v4",r.eth_signTypedData="eth_signTypedData",r.cbWallet_arbitrary="walletlink_arbitrary",r.wallet_addEthereumChain="wallet_addEthereumChain",r.wallet_switchEthereumChain="wallet_switchEthereumChain",r.wallet_watchAsset="wallet_watchAsset",r.eth_subscribe="eth_subscribe",r.eth_unsubscribe="eth_unsubscribe",r.eth_newFilter="eth_newFilter",r.eth_newBlockFilter="eth_newBlockFilter",r.eth_newPendingTransactionFilter="eth_newPendingTransactionFilter",r.eth_getFilterChanges="eth_getFilterChanges",r.eth_getFilterLogs="eth_getFilterLogs"})(sSr=m4.JSONRPCMethod||(m4.JSONRPCMethod={}))});var T$=O((G3n,xet)=>{"use strict";x();T();var wet=(r,e)=>function(){let t=e.promiseModule,n=new Array(arguments.length);for(let a=0;a{e.errorFirst?n.push(function(s,c){if(e.multiArgs){let l=new Array(arguments.length-1);for(let d=1;d{e=Object.assign({exclude:[/.+(Sync|Stream)$/],errorFirst:!0,promiseModule:Promise},e);let t=a=>{let i=s=>typeof s=="string"?a===s:s.test(a);return e.include?e.include.some(i):!e.exclude.some(i)},n;typeof r=="function"?n=function(){return e.excludeMain?r.apply(this,arguments):wet(r,e).apply(this,arguments)}:n=Object.create(Object.getPrototypeOf(r));for(let a in r){let i=r[a];n[a]=typeof i=="function"&&t(a)?wet(i,e):i}return n}});var _et=O((K3n,Tet)=>{x();T();Tet.exports=cSr;var oSr=Object.prototype.hasOwnProperty;function cSr(){for(var r={},e=0;e{x();T();Cet.exports=uSr;function uSr(r){r=r||{};var e=r.max||Number.MAX_SAFE_INTEGER,t=typeof r.start<"u"?r.start:Math.floor(Math.random()*e);return function(){return t=t%e,t++}}});var _$=O((t6n,ket)=>{x();T();var lSr=_et(),dSr=Eet()();ket.exports=_r;function _r(r){let e=this;e.currentProvider=r}_r.prototype.getBalance=y4(2,"eth_getBalance");_r.prototype.getCode=y4(2,"eth_getCode");_r.prototype.getTransactionCount=y4(2,"eth_getTransactionCount");_r.prototype.getStorageAt=y4(3,"eth_getStorageAt");_r.prototype.call=y4(2,"eth_call");_r.prototype.protocolVersion=on("eth_protocolVersion");_r.prototype.syncing=on("eth_syncing");_r.prototype.coinbase=on("eth_coinbase");_r.prototype.mining=on("eth_mining");_r.prototype.hashrate=on("eth_hashrate");_r.prototype.gasPrice=on("eth_gasPrice");_r.prototype.accounts=on("eth_accounts");_r.prototype.blockNumber=on("eth_blockNumber");_r.prototype.getBlockTransactionCountByHash=on("eth_getBlockTransactionCountByHash");_r.prototype.getBlockTransactionCountByNumber=on("eth_getBlockTransactionCountByNumber");_r.prototype.getUncleCountByBlockHash=on("eth_getUncleCountByBlockHash");_r.prototype.getUncleCountByBlockNumber=on("eth_getUncleCountByBlockNumber");_r.prototype.sign=on("eth_sign");_r.prototype.sendTransaction=on("eth_sendTransaction");_r.prototype.sendRawTransaction=on("eth_sendRawTransaction");_r.prototype.estimateGas=on("eth_estimateGas");_r.prototype.getBlockByHash=on("eth_getBlockByHash");_r.prototype.getBlockByNumber=on("eth_getBlockByNumber");_r.prototype.getTransactionByHash=on("eth_getTransactionByHash");_r.prototype.getTransactionByBlockHashAndIndex=on("eth_getTransactionByBlockHashAndIndex");_r.prototype.getTransactionByBlockNumberAndIndex=on("eth_getTransactionByBlockNumberAndIndex");_r.prototype.getTransactionReceipt=on("eth_getTransactionReceipt");_r.prototype.getUncleByBlockHashAndIndex=on("eth_getUncleByBlockHashAndIndex");_r.prototype.getUncleByBlockNumberAndIndex=on("eth_getUncleByBlockNumberAndIndex");_r.prototype.getCompilers=on("eth_getCompilers");_r.prototype.compileLLL=on("eth_compileLLL");_r.prototype.compileSolidity=on("eth_compileSolidity");_r.prototype.compileSerpent=on("eth_compileSerpent");_r.prototype.newFilter=on("eth_newFilter");_r.prototype.newBlockFilter=on("eth_newBlockFilter");_r.prototype.newPendingTransactionFilter=on("eth_newPendingTransactionFilter");_r.prototype.uninstallFilter=on("eth_uninstallFilter");_r.prototype.getFilterChanges=on("eth_getFilterChanges");_r.prototype.getFilterLogs=on("eth_getFilterLogs");_r.prototype.getLogs=on("eth_getLogs");_r.prototype.getWork=on("eth_getWork");_r.prototype.submitWork=on("eth_submitWork");_r.prototype.submitHashrate=on("eth_submitHashrate");_r.prototype.sendAsync=function(r,e){this.currentProvider.sendAsync(pSr(r),function(n,a){if(!n&&a.error&&(n=new Error("EthQuery - RPC Error - "+a.error.message)),n)return e(n);e(null,a.result)})};function on(r){return function(){let e=this;var t=[].slice.call(arguments),n=t.pop();e.sendAsync({method:r,params:t},n)}}function y4(r,e){return function(){let t=this;var n=[].slice.call(arguments),a=n.pop();n.length{x();T();var hSr=Yk(),Met=zm(),C$=typeof Reflect=="object"?Reflect:null,fSr=C$&&typeof C$.apply=="function"?C$.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};Iet.exports=E$;function E$(){Met.call(this)}hSr.inherits(E$,Met);E$.prototype.emit=function(r){for(var e=[],t=1;t0&&(i=e[0]),i instanceof Error)throw i;var s=new Error("Unhandled error."+(i?" ("+i.message+")":""));throw s.context=i,s}var c=a[r];if(c===void 0)return!1;if(typeof c=="function")Aet(c,this,e);else for(var l=c.length,d=mSr(c,l),t=0;t{throw n})}}function mSr(r,e){for(var t=new Array(e),n=0;n{x();T();var o6n=_$(),c6n=T$(),ySr=Pet(),gSr=1e3,vSr=(r,e)=>r+e,Ret=["sync","latest"],k$=class extends ySr{constructor(e={}){super(),this._blockResetDuration=e.blockResetDuration||20*gSr,this._blockResetTimeout,this._currentBlock=null,this._isRunning=!1,this._onNewListener=this._onNewListener.bind(this),this._onRemoveListener=this._onRemoveListener.bind(this),this._resetCurrentBlock=this._resetCurrentBlock.bind(this),this._setupInternalEvents()}isRunning(){return this._isRunning}getCurrentBlock(){return this._currentBlock}async getLatestBlock(){return this._currentBlock?this._currentBlock:await new Promise(t=>this.once("latest",t))}removeAllListeners(e){e?super.removeAllListeners(e):super.removeAllListeners(),this._setupInternalEvents(),this._onRemoveListener()}_start(){}_end(){}_setupInternalEvents(){this.removeListener("newListener",this._onNewListener),this.removeListener("removeListener",this._onRemoveListener),this.on("newListener",this._onNewListener),this.on("removeListener",this._onRemoveListener)}_onNewListener(e,t){!Ret.includes(e)||this._maybeStart()}_onRemoveListener(e,t){this._getBlockTrackerEventCount()>0||this._maybeEnd()}_maybeStart(){this._isRunning||(this._isRunning=!0,this._cancelBlockResetTimeout(),this._start())}_maybeEnd(){!this._isRunning||(this._isRunning=!1,this._setupBlockResetTimeout(),this._end())}_getBlockTrackerEventCount(){return Ret.map(e=>this.listenerCount(e)).reduce(vSr)}_newPotentialLatest(e){let t=this._currentBlock;t&&Net(e)<=Net(t)||this._setCurrentBlock(e)}_setCurrentBlock(e){let t=this._currentBlock;this._currentBlock=e,this.emit("latest",e),this.emit("sync",{oldBlock:t,newBlock:e})}_setupBlockResetTimeout(){this._cancelBlockResetTimeout(),this._blockResetTimeout=setTimeout(this._resetCurrentBlock,this._blockResetDuration),this._blockResetTimeout.unref&&this._blockResetTimeout.unref()}_cancelBlockResetTimeout(){clearTimeout(this._blockResetTimeout)}_resetCurrentBlock(){this._currentBlock=null}};Oet.exports=k$;function Net(r){return Number.parseInt(r,16)}});var Det=O((p6n,qet)=>{x();T();var bSr=T$(),wSr=Let(),xSr=1e3,S$=class extends wSr{constructor(e={}){if(!e.provider)throw new Error("PollingBlockTracker - no provider specified.");let t=e.pollingInterval||20*xSr,n=e.retryTimeout||t/10,a=e.keepEventLoopActive!==void 0?e.keepEventLoopActive:!0,i=e.setSkipCacheFlag||!1;super(Object.assign({blockResetDuration:t},e)),this._provider=e.provider,this._pollingInterval=t,this._retryTimeout=n,this._keepEventLoopActive=a,this._setSkipCacheFlag=i}async checkForLatestBlock(){return await this._updateLatestBlock(),await this.getLatestBlock()}_start(){this._performSync().catch(e=>this.emit("error",e))}async _performSync(){for(;this._isRunning;)try{await this._updateLatestBlock(),await Bet(this._pollingInterval,!this._keepEventLoopActive)}catch(e){let t=new Error(`PollingBlockTracker - encountered an error while attempting to update latest block: -${e.stack}`);try{this.emit("error",t)}catch{console.error(t)}await Bet(this._retryTimeout,!this._keepEventLoopActive)}}async _updateLatestBlock(){let e=await this._fetchLatestBlock();this._newPotentialLatest(e)}async _fetchLatestBlock(){let e={jsonrpc:"2.0",id:1,method:"eth_blockNumber",params:[]};this._setSkipCacheFlag&&(e.skipCache=!0);let t=await bSr(n=>this._provider.sendAsync(e,n))();if(t.error)throw new Error(`PollingBlockTracker - encountered error fetching block: -${t.error}`);return t.result}};qet.exports=S$;function Bet(r,e){return new Promise(t=>{let n=setTimeout(t,r);n.unref&&e&&n.unref()})}});var Uet=O((m6n,Fet)=>{x();T();Fet.exports=function(e){return(t,n,a,i)=>{let s=e[t.method];return s===void 0?a():typeof s=="function"?s(t,n,a,i):(n.result=s,i())}}});var A$=O((v6n,Wet)=>{x();T();Wet.exports=Uet()});var I$=O(pO=>{"use strict";x();T();Object.defineProperty(pO,"__esModule",{value:!0});pO.getUniqueId=void 0;var jet=4294967295,M$=Math.floor(Math.random()*jet);function TSr(){return M$=(M$+1)%jet,M$}pO.getUniqueId=TSr});var zet=O(hO=>{"use strict";x();T();Object.defineProperty(hO,"__esModule",{value:!0});hO.createIdRemapMiddleware=void 0;var _Sr=I$();function CSr(){return(r,e,t,n)=>{let a=r.id,i=_Sr.getUniqueId();r.id=i,e.id=i,t(s=>{r.id=a,e.id=a,s()})}}hO.createIdRemapMiddleware=CSr});var Het=O(fO=>{"use strict";x();T();Object.defineProperty(fO,"__esModule",{value:!0});fO.createAsyncMiddleware=void 0;function ESr(r){return async(e,t,n,a)=>{let i,s=new Promise(f=>{i=f}),c=null,l=!1,d=async()=>{l=!0,n(f=>{c=f,i()}),await s};try{await r(e,t,d),l?(await s,c(null)):a(null)}catch(f){c?c(f):a(f)}}}fO.createAsyncMiddleware=ESr});var Vet=O(mO=>{"use strict";x();T();Object.defineProperty(mO,"__esModule",{value:!0});mO.createScaffoldMiddleware=void 0;function kSr(r){return(e,t,n,a)=>{let i=r[e.method];return i===void 0?n():typeof i=="function"?i(e,t,n,a):(t.result=i,a())}}mO.createScaffoldMiddleware=kSr});var gO=O(n5=>{"use strict";x();T();Object.defineProperty(n5,"__esModule",{value:!0});n5.EthereumProviderError=n5.EthereumRpcError=void 0;var SSr=VK(),yO=class extends Error{constructor(e,t,n){if(!Number.isInteger(e))throw new Error('"code" must be an integer.');if(!t||typeof t!="string")throw new Error('"message" must be a nonempty string.');super(t),this.code=e,n!==void 0&&(this.data=n)}serialize(){let e={code:this.code,message:this.message};return this.data!==void 0&&(e.data=this.data),this.stack&&(e.stack=this.stack),e}toString(){return SSr.default(this.serialize(),MSr,2)}};n5.EthereumRpcError=yO;var P$=class extends yO{constructor(e,t,n){if(!ASr(e))throw new Error('"code" must be an integer such that: 1000 <= code <= 4999');super(e,t,n)}};n5.EthereumProviderError=P$;function ASr(r){return Number.isInteger(r)&&r>=1e3&&r<=4999}function MSr(r,e){if(e!=="[Circular]")return e}});var vO=O(a5=>{"use strict";x();T();Object.defineProperty(a5,"__esModule",{value:!0});a5.errorValues=a5.errorCodes=void 0;a5.errorCodes={rpc:{invalidInput:-32e3,resourceNotFound:-32001,resourceUnavailable:-32002,transactionRejected:-32003,methodNotSupported:-32004,limitExceeded:-32005,parse:-32700,invalidRequest:-32600,methodNotFound:-32601,invalidParams:-32602,internal:-32603},provider:{userRejectedRequest:4001,unauthorized:4100,unsupportedMethod:4200,disconnected:4900,chainDisconnected:4901}};a5.errorValues={"-32700":{standard:"JSON RPC 2.0",message:"Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text."},"-32600":{standard:"JSON RPC 2.0",message:"The JSON sent is not a valid Request object."},"-32601":{standard:"JSON RPC 2.0",message:"The method does not exist / is not available."},"-32602":{standard:"JSON RPC 2.0",message:"Invalid method parameter(s)."},"-32603":{standard:"JSON RPC 2.0",message:"Internal JSON-RPC error."},"-32000":{standard:"EIP-1474",message:"Invalid input."},"-32001":{standard:"EIP-1474",message:"Resource not found."},"-32002":{standard:"EIP-1474",message:"Resource unavailable."},"-32003":{standard:"EIP-1474",message:"Transaction rejected."},"-32004":{standard:"EIP-1474",message:"Method not supported."},"-32005":{standard:"EIP-1474",message:"Request limit exceeded."},4001:{standard:"EIP-1193",message:"User rejected the request."},4100:{standard:"EIP-1193",message:"The requested account and/or method has not been authorized by the user."},4200:{standard:"EIP-1193",message:"The requested method is not supported by this Ethereum provider."},4900:{standard:"EIP-1193",message:"The provider is disconnected from all chains."},4901:{standard:"EIP-1193",message:"The provider is disconnected from the specified chain."}}});var O$=O(Np=>{"use strict";x();T();Object.defineProperty(Np,"__esModule",{value:!0});Np.serializeError=Np.isValidCode=Np.getMessageFromCode=Np.JSON_RPC_SERVER_ERROR_MESSAGE=void 0;var bO=vO(),ISr=gO(),Get=bO.errorCodes.rpc.internal,PSr="Unspecified error message. This is a bug, please report it.",RSr={code:Get,message:N$(Get)};Np.JSON_RPC_SERVER_ERROR_MESSAGE="Unspecified server error.";function N$(r,e=PSr){if(Number.isInteger(r)){let t=r.toString();if(R$(bO.errorValues,t))return bO.errorValues[t].message;if(Ket(r))return Np.JSON_RPC_SERVER_ERROR_MESSAGE}return e}Np.getMessageFromCode=N$;function Jet(r){if(!Number.isInteger(r))return!1;let e=r.toString();return!!(bO.errorValues[e]||Ket(r))}Np.isValidCode=Jet;function NSr(r,{fallbackError:e=RSr,shouldIncludeStack:t=!1}={}){var n,a;if(!e||!Number.isInteger(e.code)||typeof e.message!="string")throw new Error("Must provide fallback error with integer number code and string message.");if(r instanceof ISr.EthereumRpcError)return r.serialize();let i={};if(r&&typeof r=="object"&&!Array.isArray(r)&&R$(r,"code")&&Jet(r.code)){let c=r;i.code=c.code,c.message&&typeof c.message=="string"?(i.message=c.message,R$(c,"data")&&(i.data=c.data)):(i.message=N$(i.code),i.data={originalError:Zet(r)})}else{i.code=e.code;let c=(n=r)===null||n===void 0?void 0:n.message;i.message=c&&typeof c=="string"?c:e.message,i.data={originalError:Zet(r)}}let s=(a=r)===null||a===void 0?void 0:a.stack;return t&&r&&s&&typeof s=="string"&&(i.stack=s),i}Np.serializeError=NSr;function Ket(r){return r>=-32099&&r<=-32e3}function Zet(r){return r&&typeof r=="object"&&!Array.isArray(r)?Object.assign({},r):r}function R$(r,e){return Object.prototype.hasOwnProperty.call(r,e)}});var Yet=O(wO=>{"use strict";x();T();Object.defineProperty(wO,"__esModule",{value:!0});wO.ethErrors=void 0;var L$=gO(),Qet=O$(),kc=vO();wO.ethErrors={rpc:{parse:r=>Ad(kc.errorCodes.rpc.parse,r),invalidRequest:r=>Ad(kc.errorCodes.rpc.invalidRequest,r),invalidParams:r=>Ad(kc.errorCodes.rpc.invalidParams,r),methodNotFound:r=>Ad(kc.errorCodes.rpc.methodNotFound,r),internal:r=>Ad(kc.errorCodes.rpc.internal,r),server:r=>{if(!r||typeof r!="object"||Array.isArray(r))throw new Error("Ethereum RPC Server errors must provide single object argument.");let{code:e}=r;if(!Number.isInteger(e)||e>-32005||e<-32099)throw new Error('"code" must be an integer such that: -32099 <= code <= -32005');return Ad(e,r)},invalidInput:r=>Ad(kc.errorCodes.rpc.invalidInput,r),resourceNotFound:r=>Ad(kc.errorCodes.rpc.resourceNotFound,r),resourceUnavailable:r=>Ad(kc.errorCodes.rpc.resourceUnavailable,r),transactionRejected:r=>Ad(kc.errorCodes.rpc.transactionRejected,r),methodNotSupported:r=>Ad(kc.errorCodes.rpc.methodNotSupported,r),limitExceeded:r=>Ad(kc.errorCodes.rpc.limitExceeded,r)},provider:{userRejectedRequest:r=>g4(kc.errorCodes.provider.userRejectedRequest,r),unauthorized:r=>g4(kc.errorCodes.provider.unauthorized,r),unsupportedMethod:r=>g4(kc.errorCodes.provider.unsupportedMethod,r),disconnected:r=>g4(kc.errorCodes.provider.disconnected,r),chainDisconnected:r=>g4(kc.errorCodes.provider.chainDisconnected,r),custom:r=>{if(!r||typeof r!="object"||Array.isArray(r))throw new Error("Ethereum Provider custom errors must provide single object argument.");let{code:e,message:t,data:n}=r;if(!t||typeof t!="string")throw new Error('"message" must be a nonempty string');return new L$.EthereumProviderError(e,t,n)}}};function Ad(r,e){let[t,n]=Xet(e);return new L$.EthereumRpcError(r,t||Qet.getMessageFromCode(r),n)}function g4(r,e){let[t,n]=Xet(e);return new L$.EthereumProviderError(r,t||Qet.getMessageFromCode(r),n)}function Xet(r){if(r){if(typeof r=="string")return[r];if(typeof r=="object"&&!Array.isArray(r)){let{message:e,data:t}=r;if(e&&typeof e!="string")throw new Error("Must specify string message.");return[e||void 0,t]}}return[]}});var ttt=O(Uu=>{"use strict";x();T();Object.defineProperty(Uu,"__esModule",{value:!0});Uu.getMessageFromCode=Uu.serializeError=Uu.EthereumProviderError=Uu.EthereumRpcError=Uu.ethErrors=Uu.errorCodes=void 0;var $et=gO();Object.defineProperty(Uu,"EthereumRpcError",{enumerable:!0,get:function(){return $et.EthereumRpcError}});Object.defineProperty(Uu,"EthereumProviderError",{enumerable:!0,get:function(){return $et.EthereumProviderError}});var ett=O$();Object.defineProperty(Uu,"serializeError",{enumerable:!0,get:function(){return ett.serializeError}});Object.defineProperty(Uu,"getMessageFromCode",{enumerable:!0,get:function(){return ett.getMessageFromCode}});var OSr=Yet();Object.defineProperty(Uu,"ethErrors",{enumerable:!0,get:function(){return OSr.ethErrors}});var LSr=vO();Object.defineProperty(Uu,"errorCodes",{enumerable:!0,get:function(){return LSr.errorCodes}})});var q$=O(i5=>{"use strict";x();T();var BSr=i5&&i5.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(i5,"__esModule",{value:!0});i5.JsonRpcEngine=void 0;var qSr=BSr(wC()),Md=ttt(),Op=class extends qSr.default{constructor(){super(),this._middleware=[]}push(e){this._middleware.push(e)}handle(e,t){if(t&&typeof t!="function")throw new Error('"callback" must be a function if provided.');return Array.isArray(e)?t?this._handleBatch(e,t):this._handleBatch(e):t?this._handle(e,t):this._promiseHandle(e)}asMiddleware(){return async(e,t,n,a)=>{try{let[i,s,c]=await Op._runAllMiddleware(e,t,this._middleware);return s?(await Op._runReturnHandlers(c),a(i)):n(async l=>{try{await Op._runReturnHandlers(c)}catch(d){return l(d)}return l()})}catch(i){return a(i)}}}async _handleBatch(e,t){try{let n=await Promise.all(e.map(this._promiseHandle.bind(this)));return t?t(null,n):n}catch(n){if(t)return t(n);throw n}}_promiseHandle(e){return new Promise(t=>{this._handle(e,(n,a)=>{t(a)})})}async _handle(e,t){if(!e||Array.isArray(e)||typeof e!="object"){let s=new Md.EthereumRpcError(Md.errorCodes.rpc.invalidRequest,`Requests must be plain objects. Received: ${typeof e}`,{request:e});return t(s,{id:void 0,jsonrpc:"2.0",error:s})}if(typeof e.method!="string"){let s=new Md.EthereumRpcError(Md.errorCodes.rpc.invalidRequest,`Must specify a string method. Received: ${typeof e.method}`,{request:e});return t(s,{id:e.id,jsonrpc:"2.0",error:s})}let n=Object.assign({},e),a={id:n.id,jsonrpc:n.jsonrpc},i=null;try{await this._processRequest(n,a)}catch(s){i=s}return i&&(delete a.result,a.error||(a.error=Md.serializeError(i))),t(i,a)}async _processRequest(e,t){let[n,a,i]=await Op._runAllMiddleware(e,t,this._middleware);if(Op._checkForCompletion(e,t,a),await Op._runReturnHandlers(i),n)throw n}static async _runAllMiddleware(e,t,n){let a=[],i=null,s=!1;for(let c of n)if([i,s]=await Op._runMiddleware(e,t,c,a),s)break;return[i,s,a.reverse()]}static _runMiddleware(e,t,n,a){return new Promise(i=>{let s=l=>{let d=l||t.error;d&&(t.error=Md.serializeError(d)),i([d,!0])},c=l=>{t.error?s(t.error):(l&&(typeof l!="function"&&s(new Md.EthereumRpcError(Md.errorCodes.rpc.internal,`JsonRpcEngine: "next" return handlers must be functions. Received "${typeof l}" for request: -${B$(e)}`,{request:e})),a.push(l)),i([null,!1]))};try{n(e,t,c,s)}catch(l){s(l)}})}static async _runReturnHandlers(e){for(let t of e)await new Promise((n,a)=>{t(i=>i?a(i):n())})}static _checkForCompletion(e,t,n){if(!("result"in t)&&!("error"in t))throw new Md.EthereumRpcError(Md.errorCodes.rpc.internal,`JsonRpcEngine: Response has no error or result for request: -${B$(e)}`,{request:e});if(!n)throw new Md.EthereumRpcError(Md.errorCodes.rpc.internal,`JsonRpcEngine: Nothing ended request: -${B$(e)}`,{request:e})}};i5.JsonRpcEngine=Op;function B$(r){return JSON.stringify(r,null,2)}});var rtt=O(xO=>{"use strict";x();T();Object.defineProperty(xO,"__esModule",{value:!0});xO.mergeMiddleware=void 0;var DSr=q$();function FSr(r){let e=new DSr.JsonRpcEngine;return r.forEach(t=>e.push(t)),e.asMiddleware()}xO.mergeMiddleware=FSr});var D$=O(Id=>{"use strict";x();T();var USr=Id&&Id.__createBinding||(Object.create?function(r,e,t,n){n===void 0&&(n=t),Object.defineProperty(r,n,{enumerable:!0,get:function(){return e[t]}})}:function(r,e,t,n){n===void 0&&(n=t),r[n]=e[t]}),s5=Id&&Id.__exportStar||function(r,e){for(var t in r)t!=="default"&&!Object.prototype.hasOwnProperty.call(e,t)&&USr(e,r,t)};Object.defineProperty(Id,"__esModule",{value:!0});s5(zet(),Id);s5(Het(),Id);s5(Vet(),Id);s5(I$(),Id);s5(q$(),Id);s5(rtt(),Id)});var EO=O((nTn,CO)=>{x();T();var ntt,att,itt,stt,ott,ctt,utt,ltt,dtt,TO,F$,ptt,htt,ftt,o5,mtt,ytt,gtt,vtt,btt,wtt,xtt,Ttt,_tt,_O;(function(r){var e=typeof I=="object"?I:typeof self=="object"?self:typeof this=="object"?this:{};typeof define=="function"&&define.amd?define("tslib",["exports"],function(n){r(t(e,t(n)))}):typeof CO=="object"&&typeof CO.exports=="object"?r(t(e,t(CO.exports))):r(t(e));function t(n,a){return n!==e&&(typeof Object.create=="function"?Object.defineProperty(n,"__esModule",{value:!0}):n.__esModule=!0),function(i,s){return n[i]=a?a(i,s):s}}})(function(r){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])};ntt=function(n,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");e(n,a);function i(){this.constructor=n}n.prototype=a===null?Object.create(a):(i.prototype=a.prototype,new i)},att=Object.assign||function(n){for(var a,i=1,s=arguments.length;i=0;f--)(d=n[f])&&(l=(c<3?d(l):c>3?d(a,i,l):d(a,i))||l);return c>3&&l&&Object.defineProperty(a,i,l),l},ott=function(n,a){return function(i,s){a(i,s,n)}},ctt=function(n,a){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(n,a)},utt=function(n,a,i,s){function c(l){return l instanceof i?l:new i(function(d){d(l)})}return new(i||(i=Promise))(function(l,d){function f(k){try{E(s.next(k))}catch(A){d(A)}}function w(k){try{E(s.throw(k))}catch(A){d(A)}}function E(k){k.done?l(k.value):c(k.value).then(f,w)}E((s=s.apply(n,a||[])).next())})},ltt=function(n,a){var i={label:0,sent:function(){if(l[0]&1)throw l[1];return l[1]},trys:[],ops:[]},s,c,l,d;return d={next:f(0),throw:f(1),return:f(2)},typeof Symbol=="function"&&(d[Symbol.iterator]=function(){return this}),d;function f(E){return function(k){return w([E,k])}}function w(E){if(s)throw new TypeError("Generator is already executing.");for(;d&&(d=0,E[0]&&(i=0)),i;)try{if(s=1,c&&(l=E[0]&2?c.return:E[0]?c.throw||((l=c.return)&&l.call(c),0):c.next)&&!(l=l.call(c,E[1])).done)return l;switch(c=0,l&&(E=[E[0]&2,l.value]),E[0]){case 0:case 1:l=E;break;case 4:return i.label++,{value:E[1],done:!1};case 5:i.label++,c=E[1],E=[0];continue;case 7:E=i.ops.pop(),i.trys.pop();continue;default:if(l=i.trys,!(l=l.length>0&&l[l.length-1])&&(E[0]===6||E[0]===2)){i=0;continue}if(E[0]===3&&(!l||E[1]>l[0]&&E[1]=n.length&&(n=void 0),{value:n&&n[s++],done:!n}}};throw new TypeError(a?"Object is not iterable.":"Symbol.iterator is not defined.")},F$=function(n,a){var i=typeof Symbol=="function"&&n[Symbol.iterator];if(!i)return n;var s=i.call(n),c,l=[],d;try{for(;(a===void 0||a-- >0)&&!(c=s.next()).done;)l.push(c.value)}catch(f){d={error:f}}finally{try{c&&!c.done&&(i=s.return)&&i.call(s)}finally{if(d)throw d.error}}return l},ptt=function(){for(var n=[],a=0;a1||f(L,q)})})}function f(L,q){try{w(s[L](q))}catch(U){A(l[0][3],U)}}function w(L){L.value instanceof o5?Promise.resolve(L.value.v).then(E,k):A(l[0][2],L)}function E(L){f("next",L)}function k(L){f("throw",L)}function A(L,q){L(q),l.shift(),l.length&&f(l[0][0],l[0][1])}},ytt=function(n){var a,i;return a={},s("next"),s("throw",function(c){throw c}),s("return"),a[Symbol.iterator]=function(){return this},a;function s(c,l){a[c]=n[c]?function(d){return(i=!i)?{value:o5(n[c](d)),done:c==="return"}:l?l(d):d}:l}},gtt=function(n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var a=n[Symbol.asyncIterator],i;return a?a.call(n):(n=typeof TO=="function"?TO(n):n[Symbol.iterator](),i={},s("next"),s("throw"),s("return"),i[Symbol.asyncIterator]=function(){return this},i);function s(l){i[l]=n[l]&&function(d){return new Promise(function(f,w){d=n[l](d),c(f,w,d.done,d.value)})}}function c(l,d,f,w){Promise.resolve(w).then(function(E){l({value:E,done:f})},d)}},vtt=function(n,a){return Object.defineProperty?Object.defineProperty(n,"raw",{value:a}):n.raw=a,n};var t=Object.create?function(n,a){Object.defineProperty(n,"default",{enumerable:!0,value:a})}:function(n,a){n.default=a};btt=function(n){if(n&&n.__esModule)return n;var a={};if(n!=null)for(var i in n)i!=="default"&&Object.prototype.hasOwnProperty.call(n,i)&&_O(a,n,i);return t(a,n),a},wtt=function(n){return n&&n.__esModule?n:{default:n}},xtt=function(n,a,i,s){if(i==="a"&&!s)throw new TypeError("Private accessor was defined without a getter");if(typeof a=="function"?n!==a||!s:!a.has(n))throw new TypeError("Cannot read private member from an object whose class did not declare it");return i==="m"?s:i==="a"?s.call(n):s?s.value:a.get(n)},Ttt=function(n,a,i,s,c){if(s==="m")throw new TypeError("Private method is not writable");if(s==="a"&&!c)throw new TypeError("Private accessor was defined without a setter");if(typeof a=="function"?n!==a||!c:!a.has(n))throw new TypeError("Cannot write private member to an object whose class did not declare it");return s==="a"?c.call(n,i):c?c.value=i:a.set(n,i),i},_tt=function(n,a){if(a===null||typeof a!="object"&&typeof a!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof n=="function"?a===n:n.has(a)},r("__extends",ntt),r("__assign",att),r("__rest",itt),r("__decorate",stt),r("__param",ott),r("__metadata",ctt),r("__awaiter",utt),r("__generator",ltt),r("__exportStar",dtt),r("__createBinding",_O),r("__values",TO),r("__read",F$),r("__spread",ptt),r("__spreadArrays",htt),r("__spreadArray",ftt),r("__await",o5),r("__asyncGenerator",mtt),r("__asyncDelegator",ytt),r("__asyncValues",gtt),r("__makeTemplateObject",vtt),r("__importStar",btt),r("__importDefault",wtt),r("__classPrivateFieldGet",xtt),r("__classPrivateFieldSet",Ttt),r("__classPrivateFieldIn",_tt)})});var W$=O(U$=>{"use strict";x();T();Object.defineProperty(U$,"__esModule",{value:!0});var Ctt=EO(),WSr=function(){function r(e){if(this._maxConcurrency=e,this._queue=[],e<=0)throw new Error("semaphore must be initialized to a positive value");this._value=e}return r.prototype.acquire=function(){var e=this,t=this.isLocked(),n=new Promise(function(a){return e._queue.push(a)});return t||this._dispatch(),n},r.prototype.runExclusive=function(e){return Ctt.__awaiter(this,void 0,void 0,function(){var t,n,a;return Ctt.__generator(this,function(i){switch(i.label){case 0:return[4,this.acquire()];case 1:t=i.sent(),n=t[0],a=t[1],i.label=2;case 2:return i.trys.push([2,,4,5]),[4,e(n)];case 3:return[2,i.sent()];case 4:return a(),[7];case 5:return[2]}})})},r.prototype.isLocked=function(){return this._value<=0},r.prototype.release=function(){if(this._maxConcurrency>1)throw new Error("this method is unavailabel on semaphores with concurrency > 1; use the scoped release returned by acquire instead");if(this._currentReleaser){var e=this._currentReleaser;this._currentReleaser=void 0,e()}},r.prototype._dispatch=function(){var e=this,t=this._queue.shift();if(!!t){var n=!1;this._currentReleaser=function(){n||(n=!0,e._value++,e._dispatch())},t([this._value--,this._currentReleaser])}},r}();U$.default=WSr});var ktt=O(j$=>{"use strict";x();T();Object.defineProperty(j$,"__esModule",{value:!0});var Ett=EO(),jSr=W$(),zSr=function(){function r(){this._semaphore=new jSr.default(1)}return r.prototype.acquire=function(){return Ett.__awaiter(this,void 0,void 0,function(){var e,t;return Ett.__generator(this,function(n){switch(n.label){case 0:return[4,this._semaphore.acquire()];case 1:return e=n.sent(),t=e[1],[2,t]}})})},r.prototype.runExclusive=function(e){return this._semaphore.runExclusive(function(){return e()})},r.prototype.isLocked=function(){return this._semaphore.isLocked()},r.prototype.release=function(){this._semaphore.release()},r}();j$.default=zSr});var Stt=O(SO=>{"use strict";x();T();Object.defineProperty(SO,"__esModule",{value:!0});SO.withTimeout=void 0;var kO=EO();function HSr(r,e,t){var n=this;return t===void 0&&(t=new Error("timeout")),{acquire:function(){return new Promise(function(a,i){return kO.__awaiter(n,void 0,void 0,function(){var s,c,l;return kO.__generator(this,function(d){switch(d.label){case 0:return s=!1,setTimeout(function(){s=!0,i(t)},e),[4,r.acquire()];case 1:return c=d.sent(),s?(l=Array.isArray(c)?c[1]:c,l()):a(c),[2]}})})})},runExclusive:function(a){return kO.__awaiter(this,void 0,void 0,function(){var i,s;return kO.__generator(this,function(c){switch(c.label){case 0:i=function(){},c.label=1;case 1:return c.trys.push([1,,7,8]),[4,this.acquire()];case 2:return s=c.sent(),Array.isArray(s)?(i=s[1],[4,a(s[0])]):[3,4];case 3:return[2,c.sent()];case 4:return i=s,[4,a()];case 5:return[2,c.sent()];case 6:return[3,8];case 7:return i(),[7];case 8:return[2]}})})},release:function(){r.release()},isLocked:function(){return r.isLocked()}}}SO.withTimeout=HSr});var Att=O(vy=>{"use strict";x();T();Object.defineProperty(vy,"__esModule",{value:!0});vy.withTimeout=vy.Semaphore=vy.Mutex=void 0;var VSr=ktt();Object.defineProperty(vy,"Mutex",{enumerable:!0,get:function(){return VSr.default}});var GSr=W$();Object.defineProperty(vy,"Semaphore",{enumerable:!0,get:function(){return GSr.default}});var ZSr=Stt();Object.defineProperty(vy,"withTimeout",{enumerable:!0,get:function(){return ZSr.withTimeout}})});var Rtt=O((vTn,Ptt)=>{"use strict";x();T();var Mtt=(r,e,t,n)=>function(...a){let i=e.promiseModule;return new i((s,c)=>{e.multiArgs?a.push((...d)=>{e.errorFirst?d[0]?c(d):(d.shift(),s(d)):s(d)}):e.errorFirst?a.push((d,f)=>{d?c(d):s(f)}):a.push(s),Reflect.apply(r,this===t?n:this,a)})},Itt=new WeakMap;Ptt.exports=(r,e)=>{e={exclude:[/.+(?:Sync|Stream)$/],errorFirst:!0,promiseModule:Promise,...e};let t=typeof r;if(!(r!==null&&(t==="object"||t==="function")))throw new TypeError(`Expected \`input\` to be a \`Function\` or \`Object\`, got \`${r===null?"null":t}\``);let n=(s,c)=>{let l=Itt.get(s);if(l||(l={},Itt.set(s,l)),c in l)return l[c];let d=A=>typeof A=="string"||typeof c=="symbol"?c===A:A.test(c),f=Reflect.getOwnPropertyDescriptor(s,c),w=f===void 0||f.writable||f.configurable,k=(e.include?e.include.some(d):!e.exclude.some(d))&&w;return l[c]=k,k},a=new WeakMap,i=new Proxy(r,{apply(s,c,l){let d=a.get(s);if(d)return Reflect.apply(d,c,l);let f=e.excludeMain?s:Mtt(s,e,i,s);return a.set(s,f),Reflect.apply(f,c,l)},get(s,c){let l=s[c];if(!n(s,c)||l===Function.prototype[c])return l;let d=a.get(l);if(d)return d;if(typeof l=="function"){let f=Mtt(l,e,i,s);return a.set(l,f),f}return l}});return i}});var AO=O((xTn,Ntt)=>{x();T();var JSr=wC().default,z$=class extends JSr{constructor(){super(),this.updates=[]}async initialize(){}async update(){throw new Error("BaseFilter - no update method specified")}addResults(e){this.updates=this.updates.concat(e),e.forEach(t=>this.emit("update",t))}addInitialResults(e){}getChangesAndClear(){let e=this.updates;return this.updates=[],e}};Ntt.exports=z$});var Ltt=O((CTn,Ott)=>{x();T();var KSr=AO(),H$=class extends KSr{constructor(){super(),this.allResults=[]}async update(){throw new Error("BaseFilterWithHistory - no update method specified")}addResults(e){this.allResults=this.allResults.concat(e),super.addResults(e)}addInitialResults(e){this.allResults=this.allResults.concat(e),super.addInitialResults(e)}getAllResults(){return this.allResults}};Ott.exports=H$});var c5=O((STn,Dtt)=>{x();T();Dtt.exports={minBlockRef:QSr,maxBlockRef:XSr,sortBlockRefs:V$,bnToHex:YSr,blockRefIsNumber:$Sr,hexToInt:MO,incrementHexInt:eAr,intToHex:qtt,unsafeRandomBytes:tAr};function QSr(...r){return V$(r)[0]}function XSr(...r){let e=V$(r);return e[e.length-1]}function V$(r){return r.sort((e,t)=>e==="latest"||t==="earliest"?1:t==="latest"||e==="earliest"?-1:MO(e)-MO(t))}function YSr(r){return"0x"+r.toString(16)}function $Sr(r){return r&&!["earliest","latest","pending"].includes(r)}function MO(r){return r==null?r:Number.parseInt(r,16)}function eAr(r){if(r==null)return r;let e=MO(r);return qtt(e+1)}function qtt(r){if(r==null)return r;let e=r.toString(16);return e.length%2&&(e="0"+e),"0x"+e}function tAr(r){let e="0x";for(let t=0;t{x();T();var rAr=_$(),nAr=Rtt(),aAr=Ltt(),{bnToHex:ITn,hexToInt:IO,incrementHexInt:iAr,minBlockRef:sAr,blockRefIsNumber:oAr}=c5(),G$=class extends aAr{constructor({provider:e,params:t}){super(),this.type="log",this.ethQuery=new rAr(e),this.params=Object.assign({fromBlock:"latest",toBlock:"latest",address:void 0,topics:[]},t),this.params.address&&(Array.isArray(this.params.address)||(this.params.address=[this.params.address]),this.params.address=this.params.address.map(n=>n.toLowerCase()))}async initialize({currentBlock:e}){let t=this.params.fromBlock;["latest","pending"].includes(t)&&(t=e),t==="earliest"&&(t="0x0"),this.params.fromBlock=t;let n=sAr(this.params.toBlock,e),a=Object.assign({},this.params,{toBlock:n}),i=await this._fetchLogs(a);this.addInitialResults(i)}async update({oldBlock:e,newBlock:t}){let n=t,a;e?a=iAr(e):a=t;let i=Object.assign({},this.params,{fromBlock:a,toBlock:n}),c=(await this._fetchLogs(i)).filter(l=>this.matchLog(l));this.addResults(c)}async _fetchLogs(e){return await nAr(n=>this.ethQuery.getLogs(e,n))()}matchLog(e){if(IO(this.params.fromBlock)>=IO(e.blockNumber)||oAr(this.params.toBlock)&&IO(this.params.toBlock)<=IO(e.blockNumber))return!1;let t=e.address&&e.address.toLowerCase();return this.params.address&&t&&!this.params.address.includes(t)?!1:this.params.topics.every((a,i)=>{let s=e.topics[i];if(!s)return!1;s=s.toLowerCase();let c=Array.isArray(a)?a:[a];return c.includes(null)?!0:(c=c.map(f=>f.toLowerCase()),c.includes(s))})}};Ftt.exports=G$});var PO=O((OTn,jtt)=>{x();T();jtt.exports=cAr;async function cAr({provider:r,fromBlock:e,toBlock:t}){e||(e=t);let n=Wtt(e),i=Wtt(t)-n+1,s=Array(i).fill().map((l,d)=>n+d).map(uAr);return await Promise.all(s.map(l=>lAr(r,"eth_getBlockByNumber",[l,!1])))}function Wtt(r){return r==null?r:Number.parseInt(r,16)}function uAr(r){return r==null?r:"0x"+r.toString(16)}function lAr(r,e,t){return new Promise((n,a)=>{r.sendAsync({id:1,jsonrpc:"2.0",method:e,params:t},(i,s)=>{if(i)return a(i);n(s.result)})})}});var Htt=O((qTn,ztt)=>{x();T();var dAr=AO(),pAr=PO(),{incrementHexInt:hAr}=c5(),Z$=class extends dAr{constructor({provider:e,params:t}){super(),this.type="block",this.provider=e}async update({oldBlock:e,newBlock:t}){let n=t,a=hAr(e),s=(await pAr({provider:this.provider,fromBlock:a,toBlock:n})).map(c=>c.hash);this.addResults(s)}};ztt.exports=Z$});var Gtt=O((UTn,Vtt)=>{x();T();var fAr=AO(),mAr=PO(),{incrementHexInt:yAr}=c5(),J$=class extends fAr{constructor({provider:e}){super(),this.type="tx",this.provider=e}async update({oldBlock:e}){let t=e,n=yAr(e),a=await mAr({provider:this.provider,fromBlock:n,toBlock:t}),i=[];for(let s of a)i.push(...s.transactions);this.addResults(i)}};Vtt.exports=J$});var Ktt=O((zTn,Jtt)=>{x();T();var gAr=Att().Mutex,{createAsyncMiddleware:vAr}=D$(),bAr=A$(),wAr=Utt(),xAr=Htt(),TAr=Gtt(),{intToHex:Ztt,hexToInt:K$}=c5();Jtt.exports=_Ar;function _Ar({blockTracker:r,provider:e}){let t=0,n={},a=new gAr,i=CAr({mutex:a}),s=bAr({eth_newFilter:i(Q$(l)),eth_newBlockFilter:i(Q$(d)),eth_newPendingTransactionFilter:i(Q$(f)),eth_uninstallFilter:i(RO(k)),eth_getFilterChanges:i(RO(w)),eth_getFilterLogs:i(RO(E))}),c=async({oldBlock:j,newBlock:H})=>{if(n.length===0)return;let G=await a.acquire();try{await Promise.all(u5(n).map(async te=>{try{await te.update({oldBlock:j,newBlock:H})}catch(K){console.error(K)}}))}catch(te){console.error(te)}G()};return s.newLogFilter=l,s.newBlockFilter=d,s.newPendingTransactionFilter=f,s.uninstallFilter=k,s.getFilterChanges=w,s.getFilterLogs=E,s.destroy=()=>{q()},s;async function l(j){let H=new wAr({provider:e,params:j}),G=await A(H);return H}async function d(){let j=new xAr({provider:e}),H=await A(j);return j}async function f(){let j=new TAr({provider:e}),H=await A(j);return j}async function w(j){let H=K$(j),G=n[H];if(!G)throw new Error(`No filter for index "${H}"`);return G.getChangesAndClear()}async function E(j){let H=K$(j),G=n[H];if(!G)throw new Error(`No filter for index "${H}"`);return G.type==="log"?results=G.getAllResults():results=[],results}async function k(j){let H=K$(j),G=n[H],te=Boolean(G);return te&&await L(H),te}async function A(j){let H=u5(n).length,G=await r.getLatestBlock();await j.initialize({currentBlock:G}),t++,n[t]=j,j.id=t,j.idHex=Ztt(t);let te=u5(n).length;return U({prevFilterCount:H,newFilterCount:te}),t}async function L(j){let H=u5(n).length;delete n[j];let G=u5(n).length;U({prevFilterCount:H,newFilterCount:G})}async function q(){let j=u5(n).length;n={},U({prevFilterCount:j,newFilterCount:0})}function U({prevFilterCount:j,newFilterCount:H}){if(j===0&&H>0){r.on("sync",c);return}if(j>0&&H===0){r.removeListener("sync",c);return}}}function Q$(r){return RO(async(...e)=>{let t=await r(...e);return Ztt(t.id)})}function RO(r){return vAr(async(e,t)=>{let n=await r.apply(null,e.params);t.result=n})}function CAr({mutex:r}){return e=>async(t,n,a,i)=>{(await r.acquire())(),e(t,n,a,i)}}function u5(r,e){let t=[];for(let n in r)t.push(r[n]);return t}});var Ytt=O((GTn,Xtt)=>{x();T();var EAr=wC().default,kAr=A$(),{createAsyncMiddleware:Qtt}=D$(),SAr=Ktt(),{unsafeRandomBytes:AAr,incrementHexInt:MAr}=c5(),IAr=PO();Xtt.exports=PAr;function PAr({blockTracker:r,provider:e}){let t={},n=SAr({blockTracker:r,provider:e}),a=!1,i=new EAr,s=kAr({eth_subscribe:Qtt(c),eth_unsubscribe:Qtt(l)});return s.destroy=f,{events:i,middleware:s};async function c(w,E){if(a)throw new Error("SubscriptionManager - attempting to use after destroying");let k=w.params[0],A=AAr(16),L;switch(k){case"newHeads":L=q({subId:A});break;case"logs":let j=w.params[1],H=await n.newLogFilter(j);L=U({subId:A,filter:H});break;default:throw new Error(`SubscriptionManager - unsupported subscription type "${k}"`)}t[A]=L,E.result=A;return;function q({subId:j}){let H={type:k,destroy:async()=>{r.removeListener("sync",H.update)},update:async({oldBlock:G,newBlock:te})=>{let K=te,ae=MAr(G);(await IAr({provider:e,fromBlock:ae,toBlock:K})).map(RAr).forEach(g=>{d(j,g)})}};return r.on("sync",H.update),H}function U({subId:j,filter:H}){return H.on("update",te=>d(j,te)),{type:k,destroy:async()=>await n.uninstallFilter(H.idHex)}}}async function l(w,E){if(a)throw new Error("SubscriptionManager - attempting to use after destroying");let k=w.params[0],A=t[k];if(!A){E.result=!1;return}delete t[k],await A.destroy(),E.result=!0}function d(w,E){i.emit("notification",{jsonrpc:"2.0",method:"eth_subscription",params:{subscription:w,result:E}})}function f(){i.removeAllListeners();for(let w in t)t[w].destroy(),delete t[w];a=!0}}function RAr(r){return{hash:r.hash,parentHash:r.parentHash,sha3Uncles:r.sha3Uncles,miner:r.miner,stateRoot:r.stateRoot,transactionsRoot:r.transactionsRoot,receiptsRoot:r.receiptsRoot,logsBloom:r.logsBloom,difficulty:r.difficulty,number:r.number,gasLimit:r.gasLimit,gasUsed:r.gasUsed,nonce:r.nonce,mixHash:r.mixHash,timestamp:r.timestamp,extraData:r.extraData}}});var ert=O(NO=>{"use strict";x();T();Object.defineProperty(NO,"__esModule",{value:!0});NO.SubscriptionManager=void 0;var NAr=Det(),OAr=Ytt(),$tt=()=>{},X$=class{constructor(e){let t=new NAr({provider:e,pollingInterval:15e3,setSkipCacheFlag:!0}),{events:n,middleware:a}=OAr({blockTracker:t,provider:e});this.events=n,this.subscriptionMiddleware=a}async handleRequest(e){let t={};return await this.subscriptionMiddleware(e,t,$tt,$tt),t}destroy(){this.subscriptionMiddleware.destroy()}};NO.SubscriptionManager=X$});var OO=O(l5=>{"use strict";x();T();var tee=l5&&l5.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(l5,"__esModule",{value:!0});l5.CoinbaseWalletProvider=void 0;var LAr=tee(wC()),BAr=tee(Xr()),Sc=yN(),Y$=vN(),trt=oO(),rrt=v$(),en=wm(),$$=tee(het()),qAr=vet(),ni=bet(),DAr=ert(),nrt="DefaultChainId",art="DefaultJsonRpcUrl",eee=class extends LAr.default{constructor(e){var t,n;super(),this._filterPolyfill=new qAr.FilterPolyfill(this),this._subscriptionManager=new DAr.SubscriptionManager(this),this._relay=null,this._addresses=[],this.hasMadeFirstChainChangedEmission=!1,this._send=this.send.bind(this),this._sendAsync=this.sendAsync.bind(this),this.setProviderInfo=this.setProviderInfo.bind(this),this.updateProviderInfo=this.updateProviderInfo.bind(this),this.getChainId=this.getChainId.bind(this),this.setAppInfo=this.setAppInfo.bind(this),this.enable=this.enable.bind(this),this.close=this.close.bind(this),this.send=this.send.bind(this),this.sendAsync=this.sendAsync.bind(this),this.request=this.request.bind(this),this._setAddresses=this._setAddresses.bind(this),this.scanQRCode=this.scanQRCode.bind(this),this.genericRequest=this.genericRequest.bind(this),this._chainIdFromOpts=e.chainId,this._jsonRpcUrlFromOpts=e.jsonRpcUrl,this._overrideIsMetaMask=e.overrideIsMetaMask,this._relayProvider=e.relayProvider,this._storage=e.storage,this._relayEventManager=e.relayEventManager,this.diagnostic=e.diagnosticLogger,this.reloadOnDisconnect=!0,this.isCoinbaseWallet=(t=e.overrideIsCoinbaseWallet)!==null&&t!==void 0?t:!0,this.isCoinbaseBrowser=(n=e.overrideIsCoinbaseBrowser)!==null&&n!==void 0?n:!1,this.qrUrl=e.qrUrl,this.supportsAddressSwitching=e.supportsAddressSwitching,this.isLedger=e.isLedger;let a=this.getChainId(),i=(0,en.prepend0x)(a.toString(16));this.emit("connect",{chainIdStr:i});let s=this._storage.getItem(rrt.LOCAL_STORAGE_ADDRESSES_KEY);if(s){let c=s.split(" ");c[0]!==""&&(this._addresses=c.map(l=>(0,en.ensureAddressString)(l)),this.emit("accountsChanged",c))}this._subscriptionManager.events.on("notification",c=>{this.emit("message",{type:c.method,data:c.params})}),this._addresses.length>0&&this.initializeRelay(),window.addEventListener("message",c=>{var l;if(!(c.origin!==location.origin||c.source!==window)&&c.data.type==="walletLinkMessage"){if(c.data.data.action==="defaultChainChanged"||c.data.data.action==="dappChainSwitched"){let d=c.data.data.chainId,f=(l=c.data.data.jsonRpcUrl)!==null&&l!==void 0?l:this.jsonRpcUrl;this.updateProviderInfo(f,Number(d))}c.data.data.action==="addressChanged"&&this._setAddresses([c.data.data.address])}})}get selectedAddress(){return this._addresses[0]||void 0}get networkVersion(){return this.getChainId().toString(10)}get chainId(){return(0,en.prepend0x)(this.getChainId().toString(16))}get isWalletLink(){return!0}get isMetaMask(){return this._overrideIsMetaMask}get host(){return this.jsonRpcUrl}get connected(){return!0}isConnected(){return!0}get jsonRpcUrl(){var e;return(e=this._storage.getItem(art))!==null&&e!==void 0?e:this._jsonRpcUrlFromOpts}set jsonRpcUrl(e){this._storage.setItem(art,e)}disableReloadOnDisconnect(){this.reloadOnDisconnect=!1}setProviderInfo(e,t){this.isLedger||this.isCoinbaseBrowser||(this._chainIdFromOpts=t,this._jsonRpcUrlFromOpts=e),this.updateProviderInfo(this.jsonRpcUrl,this.getChainId())}updateProviderInfo(e,t){this.jsonRpcUrl=e;let n=this.getChainId();this._storage.setItem(nrt,t.toString(10)),((0,en.ensureIntNumber)(t)!==n||!this.hasMadeFirstChainChangedEmission)&&(this.emit("chainChanged",this.getChainId()),this.hasMadeFirstChainChangedEmission=!0)}async watchAsset(e,t,n,a,i,s){return!!(await(await this.initializeRelay()).watchAsset(e,t,n,a,i,s?.toString()).promise).result}async addEthereumChain(e,t,n,a,i,s){var c,l;if((0,en.ensureIntNumber)(e)===this.getChainId())return!1;let d=await this.initializeRelay(),f=d.inlineAddEthereumChain(e.toString());!this._isAuthorized()&&!f&&await d.requestEthereumAccounts().promise;let w=await d.addEthereumChain(e.toString(),t,i,n,a,s).promise;return((c=w.result)===null||c===void 0?void 0:c.isApproved)===!0&&this.updateProviderInfo(t[0],e),((l=w.result)===null||l===void 0?void 0:l.isApproved)===!0}async switchEthereumChain(e){let n=await(await this.initializeRelay()).switchEthereumChain(e.toString(10),this.selectedAddress||void 0).promise;if(n.errorCode)throw Sc.ethErrors.provider.custom({code:n.errorCode});let a=n.result;a.isApproved&&a.rpcUrl.length>0&&this.updateProviderInfo(a.rpcUrl,e)}setAppInfo(e,t){this.initializeRelay().then(n=>n.setAppInfo(e,t))}async enable(){var e;return(e=this.diagnostic)===null||e===void 0||e.log(Y$.EVENTS.ETH_ACCOUNTS_STATE,{method:"provider::enable",addresses_length:this._addresses.length,sessionIdHash:this._relay?trt.Session.hash(this._relay.session.id):void 0}),this._addresses.length>0?[...this._addresses]:await this._send(ni.JSONRPCMethod.eth_requestAccounts)}async close(){(await this.initializeRelay()).resetAndReload()}send(e,t){if(typeof e=="string"){let a=e,i=Array.isArray(t)?t:t!==void 0?[t]:[],s={jsonrpc:"2.0",id:0,method:a,params:i};return this._sendRequestAsync(s).then(c=>c.result)}if(typeof t=="function"){let a=e,i=t;return this._sendAsync(a,i)}if(Array.isArray(e))return e.map(i=>this._sendRequest(i));let n=e;return this._sendRequest(n)}async sendAsync(e,t){if(typeof t!="function")throw new Error("callback is required");if(Array.isArray(e)){let a=t;this._sendMultipleRequestsAsync(e).then(i=>a(null,i)).catch(i=>a(i,null));return}let n=t;return this._sendRequestAsync(e).then(a=>n(null,a)).catch(a=>n(a,null))}async request(e){if(!e||typeof e!="object"||Array.isArray(e))throw Sc.ethErrors.rpc.invalidRequest({message:"Expected a single, non-array, object argument.",data:e});let{method:t,params:n}=e;if(typeof t!="string"||t.length===0)throw Sc.ethErrors.rpc.invalidRequest({message:"'args.method' must be a non-empty string.",data:e});if(n!==void 0&&!Array.isArray(n)&&(typeof n!="object"||n===null))throw Sc.ethErrors.rpc.invalidRequest({message:"'args.params' must be an object or array if provided.",data:e});let a=n===void 0?[]:n,i=this._relayEventManager.makeRequestId();return(await this._sendRequestAsync({method:t,params:a,jsonrpc:"2.0",id:i})).result}async scanQRCode(e){let n=await(await this.initializeRelay()).scanQRCode((0,en.ensureRegExpString)(e)).promise;if(typeof n.result!="string")throw new Error("result was not a string");return n.result}async genericRequest(e,t){let a=await(await this.initializeRelay()).genericRequest(e,t).promise;if(typeof a.result!="string")throw new Error("result was not a string");return a.result}async selectProvider(e){let n=await(await this.initializeRelay()).selectProvider(e).promise;if(typeof n.result!="string")throw new Error("result was not a string");return n.result}supportsSubscriptions(){return!1}subscribe(){throw new Error("Subscriptions are not supported")}unsubscribe(){throw new Error("Subscriptions are not supported")}disconnect(){return!0}_sendRequest(e){let t={jsonrpc:"2.0",id:e.id},{method:n}=e;if(t.result=this._handleSynchronousMethods(e),t.result===void 0)throw new Error(`Coinbase Wallet does not support calling ${n} synchronously without a callback. Please provide a callback parameter to call ${n} asynchronously.`);return t}_setAddresses(e,t){if(!Array.isArray(e))throw new Error("addresses is not an array");let n=e.map(a=>(0,en.ensureAddressString)(a));JSON.stringify(n)!==JSON.stringify(this._addresses)&&(this._addresses.length>0&&this.supportsAddressSwitching===!1&&!t||(this._addresses=n,this.emit("accountsChanged",this._addresses),this._storage.setItem(rrt.LOCAL_STORAGE_ADDRESSES_KEY,n.join(" "))))}_sendRequestAsync(e){return new Promise((t,n)=>{try{let a=this._handleSynchronousMethods(e);if(a!==void 0)return t({jsonrpc:"2.0",id:e.id,result:a});let i=this._handleAsynchronousFilterMethods(e);if(i!==void 0){i.then(c=>t(Object.assign(Object.assign({},c),{id:e.id}))).catch(c=>n(c));return}let s=this._handleSubscriptionMethods(e);if(s!==void 0){s.then(c=>t({jsonrpc:"2.0",id:e.id,result:c.result})).catch(c=>n(c));return}}catch(a){return n(a)}this._handleAsynchronousMethods(e).then(a=>a&&t(Object.assign(Object.assign({},a),{id:e.id}))).catch(a=>n(a))})}_sendMultipleRequestsAsync(e){return Promise.all(e.map(t=>this._sendRequestAsync(t)))}_handleSynchronousMethods(e){let{method:t}=e,n=e.params||[];switch(t){case ni.JSONRPCMethod.eth_accounts:return this._eth_accounts();case ni.JSONRPCMethod.eth_coinbase:return this._eth_coinbase();case ni.JSONRPCMethod.eth_uninstallFilter:return this._eth_uninstallFilter(n);case ni.JSONRPCMethod.net_version:return this._net_version();case ni.JSONRPCMethod.eth_chainId:return this._eth_chainId();default:return}}async _handleAsynchronousMethods(e){let{method:t}=e,n=e.params||[];switch(t){case ni.JSONRPCMethod.eth_requestAccounts:return this._eth_requestAccounts();case ni.JSONRPCMethod.eth_sign:return this._eth_sign(n);case ni.JSONRPCMethod.eth_ecRecover:return this._eth_ecRecover(n);case ni.JSONRPCMethod.personal_sign:return this._personal_sign(n);case ni.JSONRPCMethod.personal_ecRecover:return this._personal_ecRecover(n);case ni.JSONRPCMethod.eth_signTransaction:return this._eth_signTransaction(n);case ni.JSONRPCMethod.eth_sendRawTransaction:return this._eth_sendRawTransaction(n);case ni.JSONRPCMethod.eth_sendTransaction:return this._eth_sendTransaction(n);case ni.JSONRPCMethod.eth_signTypedData_v1:return this._eth_signTypedData_v1(n);case ni.JSONRPCMethod.eth_signTypedData_v2:return this._throwUnsupportedMethodError();case ni.JSONRPCMethod.eth_signTypedData_v3:return this._eth_signTypedData_v3(n);case ni.JSONRPCMethod.eth_signTypedData_v4:case ni.JSONRPCMethod.eth_signTypedData:return this._eth_signTypedData_v4(n);case ni.JSONRPCMethod.cbWallet_arbitrary:return this._cbwallet_arbitrary(n);case ni.JSONRPCMethod.wallet_addEthereumChain:return this._wallet_addEthereumChain(n);case ni.JSONRPCMethod.wallet_switchEthereumChain:return this._wallet_switchEthereumChain(n);case ni.JSONRPCMethod.wallet_watchAsset:return this._wallet_watchAsset(n)}return(await this.initializeRelay()).makeEthereumJSONRPCRequest(e,this.jsonRpcUrl)}_handleAsynchronousFilterMethods(e){let{method:t}=e,n=e.params||[];switch(t){case ni.JSONRPCMethod.eth_newFilter:return this._eth_newFilter(n);case ni.JSONRPCMethod.eth_newBlockFilter:return this._eth_newBlockFilter();case ni.JSONRPCMethod.eth_newPendingTransactionFilter:return this._eth_newPendingTransactionFilter();case ni.JSONRPCMethod.eth_getFilterChanges:return this._eth_getFilterChanges(n);case ni.JSONRPCMethod.eth_getFilterLogs:return this._eth_getFilterLogs(n)}}_handleSubscriptionMethods(e){switch(e.method){case ni.JSONRPCMethod.eth_subscribe:case ni.JSONRPCMethod.eth_unsubscribe:return this._subscriptionManager.handleRequest(e)}}_isKnownAddress(e){try{let t=(0,en.ensureAddressString)(e);return this._addresses.map(a=>(0,en.ensureAddressString)(a)).includes(t)}catch{}return!1}_ensureKnownAddress(e){var t;if(!this._isKnownAddress(e))throw(t=this.diagnostic)===null||t===void 0||t.log(Y$.EVENTS.UNKNOWN_ADDRESS_ENCOUNTERED),new Error("Unknown Ethereum address")}_prepareTransactionParams(e){let t=e.from?(0,en.ensureAddressString)(e.from):this.selectedAddress;if(!t)throw new Error("Ethereum address is unavailable");this._ensureKnownAddress(t);let n=e.to?(0,en.ensureAddressString)(e.to):null,a=e.value!=null?(0,en.ensureBN)(e.value):new BAr.default(0),i=e.data?(0,en.ensureBuffer)(e.data):P.Buffer.alloc(0),s=e.nonce!=null?(0,en.ensureIntNumber)(e.nonce):null,c=e.gasPrice!=null?(0,en.ensureBN)(e.gasPrice):null,l=e.maxFeePerGas!=null?(0,en.ensureBN)(e.maxFeePerGas):null,d=e.maxPriorityFeePerGas!=null?(0,en.ensureBN)(e.maxPriorityFeePerGas):null,f=e.gas!=null?(0,en.ensureBN)(e.gas):null,w=this.getChainId();return{fromAddress:t,toAddress:n,weiValue:a,data:i,nonce:s,gasPriceInWei:c,maxFeePerGas:l,maxPriorityFeePerGas:d,gasLimit:f,chainId:w}}_isAuthorized(){return this._addresses.length>0}_requireAuthorization(){if(!this._isAuthorized())throw Sc.ethErrors.provider.unauthorized({})}_throwUnsupportedMethodError(){throw Sc.ethErrors.provider.unsupportedMethod({})}async _signEthereumMessage(e,t,n,a){this._ensureKnownAddress(t);try{return{jsonrpc:"2.0",id:0,result:(await(await this.initializeRelay()).signEthereumMessage(e,t,n,a).promise).result}}catch(i){throw typeof i.message=="string"&&i.message.match(/(denied|rejected)/i)?Sc.ethErrors.provider.userRejectedRequest("User denied message signature"):i}}async _ethereumAddressFromSignedMessage(e,t,n){return{jsonrpc:"2.0",id:0,result:(await(await this.initializeRelay()).ethereumAddressFromSignedMessage(e,t,n).promise).result}}_eth_accounts(){return[...this._addresses]}_eth_coinbase(){return this.selectedAddress||null}_net_version(){return this.getChainId().toString(10)}_eth_chainId(){return(0,en.hexStringFromIntNumber)(this.getChainId())}getChainId(){let e=this._storage.getItem(nrt);if(!e)return(0,en.ensureIntNumber)(this._chainIdFromOpts);let t=parseInt(e,10);return(0,en.ensureIntNumber)(t)}async _eth_requestAccounts(){var e;if((e=this.diagnostic)===null||e===void 0||e.log(Y$.EVENTS.ETH_ACCOUNTS_STATE,{method:"provider::_eth_requestAccounts",addresses_length:this._addresses.length,sessionIdHash:this._relay?trt.Session.hash(this._relay.session.id):void 0}),this._addresses.length>0)return Promise.resolve({jsonrpc:"2.0",id:0,result:this._addresses});let t;try{t=await(await this.initializeRelay()).requestEthereumAccounts().promise}catch(n){throw typeof n.message=="string"&&n.message.match(/(denied|rejected)/i)?Sc.ethErrors.provider.userRejectedRequest("User denied account authorization"):n}if(!t.result)throw new Error("accounts received is empty");return this._setAddresses(t.result),this.isLedger||this.isCoinbaseBrowser||await this.switchEthereumChain(this.getChainId()),{jsonrpc:"2.0",id:0,result:this._addresses}}_eth_sign(e){this._requireAuthorization();let t=(0,en.ensureAddressString)(e[0]),n=(0,en.ensureBuffer)(e[1]);return this._signEthereumMessage(n,t,!1)}_eth_ecRecover(e){let t=(0,en.ensureBuffer)(e[0]),n=(0,en.ensureBuffer)(e[1]);return this._ethereumAddressFromSignedMessage(t,n,!1)}_personal_sign(e){this._requireAuthorization();let t=(0,en.ensureBuffer)(e[0]),n=(0,en.ensureAddressString)(e[1]);return this._signEthereumMessage(t,n,!0)}_personal_ecRecover(e){let t=(0,en.ensureBuffer)(e[0]),n=(0,en.ensureBuffer)(e[1]);return this._ethereumAddressFromSignedMessage(t,n,!0)}async _eth_signTransaction(e){this._requireAuthorization();let t=this._prepareTransactionParams(e[0]||{});try{return{jsonrpc:"2.0",id:0,result:(await(await this.initializeRelay()).signEthereumTransaction(t).promise).result}}catch(n){throw typeof n.message=="string"&&n.message.match(/(denied|rejected)/i)?Sc.ethErrors.provider.userRejectedRequest("User denied transaction signature"):n}}async _eth_sendRawTransaction(e){let t=(0,en.ensureBuffer)(e[0]);return{jsonrpc:"2.0",id:0,result:(await(await this.initializeRelay()).submitEthereumTransaction(t,this.getChainId()).promise).result}}async _eth_sendTransaction(e){this._requireAuthorization();let t=this._prepareTransactionParams(e[0]||{});try{return{jsonrpc:"2.0",id:0,result:(await(await this.initializeRelay()).signAndSubmitEthereumTransaction(t).promise).result}}catch(n){throw typeof n.message=="string"&&n.message.match(/(denied|rejected)/i)?Sc.ethErrors.provider.userRejectedRequest("User denied transaction signature"):n}}async _eth_signTypedData_v1(e){this._requireAuthorization();let t=(0,en.ensureParsedJSONObject)(e[0]),n=(0,en.ensureAddressString)(e[1]);this._ensureKnownAddress(n);let a=$$.default.hashForSignTypedDataLegacy({data:t}),i=JSON.stringify(t,null,2);return this._signEthereumMessage(a,n,!1,i)}async _eth_signTypedData_v3(e){this._requireAuthorization();let t=(0,en.ensureAddressString)(e[0]),n=(0,en.ensureParsedJSONObject)(e[1]);this._ensureKnownAddress(t);let a=$$.default.hashForSignTypedData_v3({data:n}),i=JSON.stringify(n,null,2);return this._signEthereumMessage(a,t,!1,i)}async _eth_signTypedData_v4(e){this._requireAuthorization();let t=(0,en.ensureAddressString)(e[0]),n=(0,en.ensureParsedJSONObject)(e[1]);this._ensureKnownAddress(t);let a=$$.default.hashForSignTypedData_v4({data:n}),i=JSON.stringify(n,null,2);return this._signEthereumMessage(a,t,!1,i)}async _cbwallet_arbitrary(e){let t=e[0],n=e[1];if(typeof n!="string")throw new Error("parameter must be a string");if(typeof t!="object"||t===null)throw new Error("parameter must be an object");return{jsonrpc:"2.0",id:0,result:await this.genericRequest(t,n)}}async _wallet_addEthereumChain(e){var t,n,a,i;let s=e[0];if(((t=s.rpcUrls)===null||t===void 0?void 0:t.length)===0)return{jsonrpc:"2.0",id:0,error:{code:2,message:"please pass in at least 1 rpcUrl"}};if(!s.chainName||s.chainName.trim()==="")throw Sc.ethErrors.provider.custom({code:0,message:"chainName is a required field"});if(!s.nativeCurrency)throw Sc.ethErrors.provider.custom({code:0,message:"nativeCurrency is a required field"});let c=parseInt(s.chainId,16);return await this.addEthereumChain(c,(n=s.rpcUrls)!==null&&n!==void 0?n:[],(a=s.blockExplorerUrls)!==null&&a!==void 0?a:[],s.chainName,(i=s.iconUrls)!==null&&i!==void 0?i:[],s.nativeCurrency)?{jsonrpc:"2.0",id:0,result:null}:{jsonrpc:"2.0",id:0,error:{code:2,message:"unable to add ethereum chain"}}}async _wallet_switchEthereumChain(e){let t=e[0];return await this.switchEthereumChain(parseInt(t.chainId,16)),{jsonrpc:"2.0",id:0,result:null}}async _wallet_watchAsset(e){let t=Array.isArray(e)?e[0]:e;if(!t.type)throw Sc.ethErrors.rpc.invalidParams({message:"Type is required"});if(t?.type!=="ERC20")throw Sc.ethErrors.rpc.invalidParams({message:`Asset of type '${t.type}' is not supported`});if(!t?.options)throw Sc.ethErrors.rpc.invalidParams({message:"Options are required"});if(!t?.options.address)throw Sc.ethErrors.rpc.invalidParams({message:"Address is required"});let n=this.getChainId(),{address:a,symbol:i,image:s,decimals:c}=t.options;return{jsonrpc:"2.0",id:0,result:await this.watchAsset(t.type,a,i,c,s,n)}}_eth_uninstallFilter(e){let t=(0,en.ensureHexString)(e[0]);return this._filterPolyfill.uninstallFilter(t)}async _eth_newFilter(e){let t=e[0];return{jsonrpc:"2.0",id:0,result:await this._filterPolyfill.newFilter(t)}}async _eth_newBlockFilter(){return{jsonrpc:"2.0",id:0,result:await this._filterPolyfill.newBlockFilter()}}async _eth_newPendingTransactionFilter(){return{jsonrpc:"2.0",id:0,result:await this._filterPolyfill.newPendingTransactionFilter()}}_eth_getFilterChanges(e){let t=(0,en.ensureHexString)(e[0]);return this._filterPolyfill.getFilterChanges(t)}_eth_getFilterLogs(e){let t=(0,en.ensureHexString)(e[0]);return this._filterPolyfill.getFilterLogs(t)}initializeRelay(){return this._relay?Promise.resolve(this._relay):this._relayProvider().then(e=>(e.setAccountsCallback((t,n)=>this._setAddresses(t,n)),e.setChainCallback((t,n)=>{this.updateProviderInfo(n,parseInt(t,10))}),e.setDappDefaultChainCallback(this._chainIdFromOpts),this._relay=e,e))}};l5.CoinbaseWalletProvider=eee});var Wu={};Fd(Wu,{Component:()=>w4,Fragment:()=>_4,cloneElement:()=>HAr,createContext:()=>VAr,createElement:()=>frt,createRef:()=>UAr,h:()=>frt,hydrate:()=>Crt,isValidElement:()=>lrt,options:()=>Cr,render:()=>_rt,toChildArray:()=>vrt});function xm(r,e){for(var t in e)r[t]=e[t];return r}function hrt(r){var e=r.parentNode;e&&e.removeChild(r)}function frt(r,e,t){var n,a,i,s={};for(i in e)i=="key"?n=e[i]:i=="ref"?a=e[i]:s[i]=e[i];if(arguments.length>2&&(s.children=arguments.length>3?T4.call(arguments,2):t),typeof r=="function"&&r.defaultProps!=null)for(i in r.defaultProps)s[i]===void 0&&(s[i]=r.defaultProps[i]);return b4(r,s,n,a,null)}function b4(r,e,t,n,a){var i={type:r,props:e,key:t,ref:n,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:a??++urt};return a==null&&Cr.vnode!=null&&Cr.vnode(i),i}function UAr(){return{current:null}}function _4(r){return r.children}function w4(r,e){this.props=r,this.context=e}function x4(r,e){if(e==null)return r.__?x4(r.__,r.__.__k.indexOf(r)+1):null;for(var t;e0?b4(k.type,k.props,k.key,k.ref?k.ref:null,k.__v):k)!=null){if(k.__=t,k.__b=t.__b+1,(E=U[f])===null||E&&k.key==E.key&&k.type===E.type)U[f]=void 0;else for(w=0;w2&&(s.children=arguments.length>3?T4.call(arguments,2):t),b4(r.type,s,n||r.key,a||r.ref,null)}function VAr(r,e){var t={__c:e="__cC"+drt++,__:r,Consumer:function(n,a){return n.children(a)},Provider:function(n){var a,i;return this.getChildContext||(a=[],(i={})[e]=this,this.getChildContext=function(){return i},this.shouldComponentUpdate=function(s){this.props.value!==s.value&&a.some(ree)},this.sub=function(s){a.push(s);var c=s.componentWillUnmount;s.componentWillUnmount=function(){a.splice(a.indexOf(s),1),c&&c.call(s)}}),n.children}};return t.Provider.__=t.Consumer.contextType=t}var T4,Cr,urt,lrt,v4,irt,drt,LO,prt,FAr,eu=vt(()=>{x();T();LO={},prt=[],FAr=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;T4=prt.slice,Cr={__e:function(r,e,t,n){for(var a,i,s;e=e.__;)if((a=e.__c)&&!a.__)try{if((i=a.constructor)&&i.getDerivedStateFromError!=null&&(a.setState(i.getDerivedStateFromError(r)),s=a.__d),a.componentDidCatch!=null&&(a.componentDidCatch(r,n||{}),s=a.__d),s)return a.__E=a}catch(c){r=c}throw r}},urt=0,lrt=function(r){return r!=null&&r.constructor===void 0},w4.prototype.setState=function(r,e){var t;t=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=xm({},this.state),typeof r=="function"&&(r=r(xm({},t),this.props)),r&&xm(t,r),r!=null&&this.__v&&(e&&this._sb.push(e),ree(this))},w4.prototype.forceUpdate=function(r){this.__v&&(this.__e=!0,r&&this.__h.push(r),ree(this))},w4.prototype.render=_4,v4=[],BO.__r=0,drt=0});var C4=O((n_n,aee)=>{x();T();function krt(r){var e,t,n="";if(typeof r=="string"||typeof r=="number")n+=r;else if(typeof r=="object")if(Array.isArray(r))for(e=0;eKAr,useContext:()=>QAr,useDebugValue:()=>XAr,useEffect:()=>GAr,useErrorBoundary:()=>YAr,useId:()=>$Ar,useImperativeHandle:()=>JAr,useLayoutEffect:()=>qrt,useMemo:()=>oee,useReducer:()=>Brt,useRef:()=>ZAr,useState:()=>Lrt});function h1(r,e){Cr.__h&&Cr.__h(wi,r,d5||e),d5=0;var t=wi.__H||(wi.__H={__:[],__h:[]});return r>=t.__.length&&t.__.push({__V:DO}),t.__[r]}function Lrt(r){return d5=1,Brt(Drt,r)}function Brt(r,e,t){var n=h1(by++,2);if(n.t=r,!n.__c&&(n.__=[t?t(e):Drt(void 0,e),function(i){var s=n.__N?n.__N[0]:n.__[0],c=n.t(s,i);s!==c&&(n.__N=[c,n.__[1]],n.__c.setState({}))}],n.__c=wi,!wi.u)){wi.u=!0;var a=wi.shouldComponentUpdate;wi.shouldComponentUpdate=function(i,s,c){if(!n.__c.__H)return!0;var l=n.__c.__H.__.filter(function(f){return f.__c});if(l.every(function(f){return!f.__N}))return!a||a.call(this,i,s,c);var d=!1;return l.forEach(function(f){if(f.__N){var w=f.__[0];f.__=f.__N,f.__N=void 0,w!==f.__[0]&&(d=!0)}}),!(!d&&n.__c.props===i)&&(!a||a.call(this,i,s,c))}}return n.__N||n.__}function GAr(r,e){var t=h1(by++,3);!Cr.__s&&cee(t.__H,e)&&(t.__=r,t.i=e,wi.__H.__h.push(t))}function qrt(r,e){var t=h1(by++,4);!Cr.__s&&cee(t.__H,e)&&(t.__=r,t.i=e,wi.__h.push(t))}function ZAr(r){return d5=5,oee(function(){return{current:r}},[])}function JAr(r,e,t){d5=6,qrt(function(){return typeof r=="function"?(r(e()),function(){return r(null)}):r?(r.current=e(),function(){return r.current=null}):void 0},t==null?t:t.concat(r))}function oee(r,e){var t=h1(by++,7);return cee(t.__H,e)?(t.__V=r(),t.i=e,t.__h=r,t.__V):t.__}function KAr(r,e){return d5=8,oee(function(){return r},e)}function QAr(r){var e=wi.context[r.__c],t=h1(by++,9);return t.c=r,e?(t.__==null&&(t.__=!0,e.sub(wi)),e.props.value):r.__}function XAr(r,e){Cr.useDebugValue&&Cr.useDebugValue(e?e(r):r)}function YAr(r){var e=h1(by++,10),t=Lrt();return e.__=r,wi.componentDidCatch||(wi.componentDidCatch=function(n,a){e.__&&e.__(n,a),t[1](n)}),[t[0],function(){t[1](void 0)}]}function $Ar(){var r=h1(by++,11);if(!r.__){for(var e=wi.__v;e!==null&&!e.__m&&e.__!==null;)e=e.__;var t=e.__m||(e.__m=[0,0]);r.__="P"+t[0]+"-"+t[1]++}return r.__}function eMr(){for(var r;r=Ort.shift();)if(r.__P&&r.__H)try{r.__H.__h.forEach(FO),r.__H.__h.forEach(see),r.__H.__h=[]}catch(e){r.__H.__h=[],Cr.__e(e,r.__v)}}function tMr(r){var e,t=function(){clearTimeout(n),Nrt&&cancelAnimationFrame(e),setTimeout(r)},n=setTimeout(t,100);Nrt&&(e=requestAnimationFrame(t))}function FO(r){var e=wi,t=r.__c;typeof t=="function"&&(r.__c=void 0,t()),wi=e}function see(r){var e=wi;r.__c=r.__(),wi=e}function cee(r,e){return!r||r.length!==e.length||e.some(function(t,n){return t!==r[n]})}function Drt(r,e){return typeof e=="function"?e(r):e}var by,wi,iee,Srt,d5,Ort,DO,Art,Mrt,Irt,Prt,Rrt,Nrt,h5=vt(()=>{x();T();eu();d5=0,Ort=[],DO=[],Art=Cr.__b,Mrt=Cr.__r,Irt=Cr.diffed,Prt=Cr.__c,Rrt=Cr.unmount;Cr.__b=function(r){wi=null,Art&&Art(r)},Cr.__r=function(r){Mrt&&Mrt(r),by=0;var e=(wi=r.__c).__H;e&&(iee===wi?(e.__h=[],wi.__h=[],e.__.forEach(function(t){t.__N&&(t.__=t.__N),t.__V=DO,t.__N=t.i=void 0})):(e.__h.forEach(FO),e.__h.forEach(see),e.__h=[])),iee=wi},Cr.diffed=function(r){Irt&&Irt(r);var e=r.__c;e&&e.__H&&(e.__H.__h.length&&(Ort.push(e)!==1&&Srt===Cr.requestAnimationFrame||((Srt=Cr.requestAnimationFrame)||tMr)(eMr)),e.__H.__.forEach(function(t){t.i&&(t.__H=t.i),t.__V!==DO&&(t.__=t.__V),t.i=void 0,t.__V=DO})),iee=wi=null},Cr.__c=function(r,e){e.some(function(t){try{t.__h.forEach(FO),t.__h=t.__h.filter(function(n){return!n.__||see(n)})}catch(n){e.some(function(a){a.__h&&(a.__h=[])}),e=[],Cr.__e(n,t.__v)}}),Prt&&Prt(r,e)},Cr.unmount=function(r){Rrt&&Rrt(r);var e,t=r.__c;t&&t.__H&&(t.__H.__.forEach(function(n){try{FO(n)}catch(a){e=a}}),t.__H=void 0,e&&Cr.__e(e,t.__v))};Nrt=typeof requestAnimationFrame=="function"});var Frt=O(UO=>{"use strict";x();T();Object.defineProperty(UO,"__esModule",{value:!0});UO.LIB_VERSION=void 0;UO.LIB_VERSION="3.6.3"});var Wrt=O(WO=>{"use strict";x();T();Object.defineProperty(WO,"__esModule",{value:!0});WO.CloseIcon=void 0;var Urt=(eu(),Nn(Wu));function rMr(r){return(0,Urt.h)("svg",Object.assign({width:"40",height:"40",viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),(0,Urt.h)("path",{d:"M13.7677 13L12.3535 14.4142L18.3535 20.4142L12.3535 26.4142L13.7677 27.8284L19.7677 21.8284L25.7677 27.8284L27.1819 26.4142L21.1819 20.4142L27.1819 14.4142L25.7677 13L19.7677 19L13.7677 13Z"}))}WO.CloseIcon=rMr});var jrt=O(uee=>{"use strict";x();T();Object.defineProperty(uee,"__esModule",{value:!0});uee.default="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjgiIGhlaWdodD0iMjgiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGNpcmNsZSBjeD0iMTQiIGN5PSIxNCIgcj0iMTQiIGZpbGw9IiMwMDUyRkYiLz48cGF0aCBkPSJNMTQuMDM3IDE4LjkyNmMtMi43NSAwLTQuOTA3LTIuMjA1LTQuOTA3LTQuOTI2IDAtMi43MiAyLjIzLTQuOTI2IDQuOTA3LTQuOTI2YTQuODY2IDQuODY2IDAgMCAxIDQuODMzIDQuMTE4aDQuOTgyYy0uNDQ2LTUuMDczLTQuNjg0LTkuMDQ0LTkuODE1LTkuMDQ0QzguNjEgNC4xNDggNC4xNDkgOC41NiA0LjE0OSAxNHM0LjM4NyA5Ljg1MiA5Ljg5IDkuODUyYzUuMjA0IDAgOS4zNjgtMy45NyA5LjgxNC05LjA0M0gxOC44N2E0Ljg2NiA0Ljg2NiAwIDAgMS00LjgzMyA0LjExN1oiIGZpbGw9IiNmZmYiLz48L3N2Zz4="});var zrt=O(lee=>{"use strict";x();T();Object.defineProperty(lee,"__esModule",{value:!0});lee.default="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjgiIGhlaWdodD0iMjgiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGNpcmNsZSBjeD0iMTQiIGN5PSIxNCIgcj0iMTQiIGZpbGw9IiMwMDUyRkYiLz48cGF0aCBkPSJNMjMuODUyIDE0QTkuODM0IDkuODM0IDAgMCAxIDE0IDIzLjg1MiA5LjgzNCA5LjgzNCAwIDAgMSA0LjE0OCAxNCA5LjgzNCA5LjgzNCAwIDAgMSAxNCA0LjE0OCA5LjgzNCA5LjgzNCAwIDAgMSAyMy44NTIgMTRaIiBmaWxsPSIjZmZmIi8+PHBhdGggZD0iTTExLjE4NSAxMi41MDRjMC0uNDU2IDAtLjcxLjA5OC0uODYyLjA5OC0uMTUyLjE5Ni0uMzA0LjM0My0uMzU1LjE5Ni0uMTAyLjM5Mi0uMTAyLjg4MS0uMTAyaDIuOTg2Yy40OSAwIC42ODYgMCAuODgyLjEwMi4xNDYuMTAxLjI5My4yMDMuMzQyLjM1NS4wOTguMjAzLjA5OC40MDYuMDk4Ljg2MnYyLjk5MmMwIC40NTcgMCAuNzEtLjA5OC44NjMtLjA5OC4xNTItLjE5NS4zMDQtLjM0Mi4zNTUtLjE5Ni4xMDEtLjM5Mi4xMDEtLjg4Mi4xMDFoLTIuOTg2Yy0uNDkgMC0uNjg1IDAtLjg4LS4xMDEtLjE0OC0uMTAyLS4yOTUtLjIwMy0uMzQ0LS4zNTUtLjA5OC0uMjAzLS4wOTgtLjQwNi0uMDk4LS44NjN2LTIuOTkyWiIgZmlsbD0iIzAwNTJGRiIvPjwvc3ZnPg=="});var Hrt=O(jO=>{"use strict";x();T();Object.defineProperty(jO,"__esModule",{value:!0});jO.QRCodeIcon=void 0;var Yh=(eu(),Nn(Wu));function nMr(r){return(0,Yh.h)("svg",Object.assign({width:"10",height:"10",viewBox:"0 0 10 10",xmlns:"http://www.w3.org/2000/svg"},r),(0,Yh.h)("path",{d:"M8.2271 1.77124L7.0271 1.77124V2.97124H8.2271V1.77124Z"}),(0,Yh.h)("path",{d:"M5.44922 0.199219L5.44922 4.54922L9.79922 4.54922V0.199219L5.44922 0.199219ZM8.89922 3.64922L6.34922 3.64922L6.34922 1.09922L8.89922 1.09922V3.64922Z"}),(0,Yh.h)("path",{d:"M2.97124 1.77124L1.77124 1.77124L1.77124 2.97124H2.97124V1.77124Z"}),(0,Yh.h)("path",{d:"M0.199219 4.54922L4.54922 4.54922L4.54922 0.199219L0.199219 0.199219L0.199219 4.54922ZM1.09922 1.09922L3.64922 1.09922L3.64922 3.64922L1.09922 3.64922L1.09922 1.09922Z"}),(0,Yh.h)("path",{d:"M2.97124 7.0271H1.77124L1.77124 8.2271H2.97124V7.0271Z"}),(0,Yh.h)("path",{d:"M0.199219 9.79922H4.54922L4.54922 5.44922L0.199219 5.44922L0.199219 9.79922ZM1.09922 6.34922L3.64922 6.34922L3.64922 8.89922H1.09922L1.09922 6.34922Z"}),(0,Yh.h)("path",{d:"M8.89922 7.39912H7.99922V5.40112H5.44922L5.44922 9.79912H6.34922L6.34922 6.30112H7.09922V8.29912H9.79922V5.40112H8.89922V7.39912Z"}),(0,Yh.h)("path",{d:"M7.99912 8.89917H7.09912V9.79917H7.99912V8.89917Z"}),(0,Yh.h)("path",{d:"M9.79917 8.89917H8.89917V9.79917H9.79917V8.89917Z"}))}jO.QRCodeIcon=nMr});var Vrt=O(dee=>{"use strict";x();T();Object.defineProperty(dee,"__esModule",{value:!0});var aMr=` + If you still want to use the old @thirdweb-dev/auth@2.0.0 package, you can downgrade the SDK to version 3.6.0.`); + } + async getNFTDrop(e) { + return await this.getContract(e, "nft-drop"); + } + async getSignatureDrop(e) { + return await this.getContract(e, "signature-drop"); + } + async getNFTCollection(e) { + return await this.getContract(e, "nft-collection"); + } + async getEditionDrop(e) { + return await this.getContract(e, "edition-drop"); + } + async getEdition(e) { + return await this.getContract(e, "edition"); + } + async getTokenDrop(e) { + return await this.getContract(e, "token-drop"); + } + async getToken(e) { + return await this.getContract(e, "token"); + } + async getVote(e) { + return await this.getContract(e, "vote"); + } + async getSplit(e) { + return await this.getContract(e, "split"); + } + async getMarketplace(e) { + return await this.getContract(e, "marketplace"); + } + async getMarketplaceV3(e) { + return await this.getContract(e, "marketplace-v3"); + } + async getPack(e) { + return await this.getContract(e, "pack"); + } + async getMultiwrap(e) { + return await this.getContract(e, "multiwrap"); + } + async getContract(e, t) { + if (this.contractCache.has(e)) return this.contractCache.get(e); + let n; + if (!t || t === "custom") { + let a = await this.resolveContractType(e); + if (a === "custom") + try { + let i = + await this.getPublisher().fetchCompilerMetadataFromAddress(e); + n = await this.getContractFromAbi(e, i.abi); + } catch { + let s = (await this.getProvider().getNetwork()).chainId; + throw new Error( + `No ABI found for this contract. Try importing it by visiting: https://thirdweb.com/${s}/${e}` + ); + } + else { + let i = await ib[a].getAbi(e, this.getProvider(), this.storage); + n = await this.getContractFromAbi(e, i); + } + } else + typeof t == "string" && t in ib + ? (n = await ib[t].initialize( + this.getSignerOrProvider(), + e, + this.storage, + this.options + )) + : (n = await this.getContractFromAbi(e, t)); + return this.contractCache.set(e, n), n; + } + async getBuiltInContract(e, t) { + return await this.getContract(e, t); + } + async resolveContractType(e) { + try { + let t = new se.Contract(e, ije.default, this.getProvider()), + n = se.ethers.utils + .toUtf8String(await t.contractType()) + .replace(/\x00/g, ""); + return kKe(n); + } catch { + return "custom"; + } + } + async getContractList(e) { + let t = + (await ( + await this.deployer.getRegistry() + )?.getContractAddresses(e)) || [], + n = (await this.getProvider().getNetwork()).chainId; + return await Promise.all( + t.map(async (a) => ({ + address: a, + chainId: n, + contractType: () => this.resolveContractType(a), + metadata: async () => (await this.getContract(a)).metadata.get(), + })) + ); + } + async getMultichainContractList(e) { + let t = + arguments.length > 1 && arguments[1] !== void 0 + ? arguments[1] + : iG.defaultChains, + n = await this.multiChainRegistry.getContractAddresses(e), + a = t.reduce((s, c) => ((s[c.chainId] = c), s), {}), + i = {}; + return n.map((s) => { + let { address: c, chainId: l } = s; + if (!a[l]) + return { + address: c, + chainId: l, + contractType: async () => "custom", + metadata: async () => ({}), + }; + try { + let d = i[l]; + return ( + d || + ((d = new vh(l, { + ...this.options, + readonlySettings: void 0, + supportedChains: t, + })), + (i[l] = d)), + { + address: c, + chainId: l, + contractType: () => d.resolveContractType(c), + metadata: async () => (await d.getContract(c)).metadata.get(), + } + ); + } catch { + return { + address: c, + chainId: l, + contractType: async () => "custom", + metadata: async () => ({}), + }; + } + }); + } + updateSignerOrProvider(e) { + super.updateSignerOrProvider(e), + this.updateContractSignerOrProvider(); + } + updateContractSignerOrProvider() { + this.wallet.connect(this.getSignerOrProvider()), + this.deployer.updateSignerOrProvider(this.getSignerOrProvider()), + this._publisher.updateSignerOrProvider(this.getSignerOrProvider()), + this.multiChainRegistry.updateSigner(this.getSignerOrProvider()); + for (let [, e] of this.contractCache) + e.onNetworkUpdated(this.getSignerOrProvider()); + } + async getContractFromAbi(e, t) { + if (this.contractCache.has(e)) return this.contractCache.get(e); + let [, n] = cc(this.getSignerOrProvider(), this.options), + a = typeof t == "string" ? JSON.parse(t) : t, + i = new QV( + this.getSignerOrProvider(), + e, + await JV(e, ap.parse(a), n, this.options, this.storage), + this.storageHandler, + this.options, + (await n.getNetwork()).chainId + ); + return this.contractCache.set(e, i), i; + } + async getBalance(e) { + return tp( + this.getProvider(), + Zl, + await this.getProvider().getBalance(e) + ); + } + getPublisher() { + return this._publisher; + } + }, + yR = class extends ms { + constructor(e, t, n, a) { + super(t, e, Udr.default, a), + le._defineProperty(this, "storage", void 0), + le._defineProperty(this, "DEFAULT_VERSION_MAP", { + [_h.contractType]: 3, + [C0.contractType]: 1, + [xh.contractType]: 4, + [np.contractType]: 1, + [wh.contractType]: 2, + [E0.contractType]: 1, + [I0.contractType]: 2, + [Eh.contractType]: 1, + [Ch.contractType]: 1, + [Th.contractType]: 1, + [rp.contractType]: 2, + [Ff.contractType]: 1, + [Qu.contractType]: 2, + }), + (this.storage = n); + } + async deploy(e, t, n, a) { + let i = ib[e], + s = i.schema.deploy.parse(t), + c = await this.storage.upload(s), + l = await this.getImplementation(i, a); + if (!l || l === se.constants.AddressZero) + throw new Error(`No implementation found for ${e}`); + let d = await i.getAbi(l, this.getProvider(), this.storage), + m = this.getSigner(); + pr.default(m, "A signer is required to deploy contracts"); + let w = await SKe(e, s, c, m), + C = se.Contract.getInterface(d).encodeFunctionData("initialize", w), + I = await this.getProvider().getBlockNumber(), + k = se.ethers.utils.formatBytes32String(I.toString()), + O = await this.sendTransaction("deployProxyByImplementation", [ + l, + C, + k, + ]), + D = this.parseLogs("ProxyDeployed", O.logs); + if (D.length < 1) throw new Error("No ProxyDeployed event found"); + let W = D[0].args.proxy; + return ( + n.emit("contractDeployed", { + status: "completed", + contractAddress: W, + transactionHash: O.transactionHash, + }), + W + ); + } + async deployProxyByImplementation(e, t, n, a, i) { + let s = se.Contract.getInterface(t).encodeFunctionData(n, a), + c = await this.getProvider().getBlockNumber(), + l = await this.sendTransaction("deployProxyByImplementation", [ + e, + s, + se.ethers.utils.formatBytes32String(c.toString()), + ]), + d = this.parseLogs("ProxyDeployed", l.logs); + if (d.length < 1) throw new Error("No ProxyDeployed event found"); + let m = d[0].args.proxy; + return ( + i.emit("contractDeployed", { + status: "completed", + contractAddress: m, + transactionHash: l.transactionHash, + }), + m + ); + } + async getDeployArguments(e, t, n) { + let a = + e === Qu.contractType + ? [] + : await this.getDefaultTrustedForwarders(); + switch ( + (t.trusted_forwarders && + t.trusted_forwarders.length > 0 && + (a = t.trusted_forwarders), + e) + ) { + case _h.contractType: + case C0.contractType: + let i = _h.schema.deploy.parse(t); + return [ + await this.getSignerAddress(), + i.name, + i.symbol, + n, + a, + i.primary_sale_recipient, + i.fee_recipient, + i.seller_fee_basis_points, + i.platform_fee_basis_points, + i.platform_fee_recipient, + ]; + case xh.contractType: + let s = xh.schema.deploy.parse(t); + return [ + await this.getSignerAddress(), + s.name, + s.symbol, + n, + a, + s.primary_sale_recipient, + s.fee_recipient, + s.seller_fee_basis_points, + s.platform_fee_basis_points, + s.platform_fee_recipient, + ]; + case np.contractType: + let c = np.schema.deploy.parse(t); + return [ + await this.getSignerAddress(), + c.name, + c.symbol, + n, + a, + c.fee_recipient, + c.seller_fee_basis_points, + ]; + case wh.contractType: + case E0.contractType: + let l = wh.schema.deploy.parse(t); + return [ + await this.getSignerAddress(), + l.name, + l.symbol, + n, + a, + l.primary_sale_recipient, + l.fee_recipient, + l.seller_fee_basis_points, + l.platform_fee_basis_points, + l.platform_fee_recipient, + ]; + case I0.contractType: + case Eh.contractType: + let d = Eh.schema.deploy.parse(t); + return [ + await this.getSignerAddress(), + d.name, + d.symbol, + n, + a, + d.primary_sale_recipient, + d.platform_fee_recipient, + d.platform_fee_basis_points, + ]; + case Ch.contractType: + let m = Ch.schema.deploy.parse(t); + return [ + m.name, + n, + a, + m.voting_token_address, + m.voting_delay_in_blocks, + m.voting_period_in_blocks, + se.BigNumber.from(m.proposal_token_threshold), + m.voting_quorum_fraction, + ]; + case Th.contractType: + let w = Th.schema.deploy.parse(t); + return [ + await this.getSignerAddress(), + n, + a, + w.recipients.map((O) => O.address), + w.recipients.map((O) => se.BigNumber.from(O.sharesBps)), + ]; + case rp.contractType: + let C = rp.schema.deploy.parse(t); + return [ + await this.getSignerAddress(), + n, + a, + C.platform_fee_recipient, + C.platform_fee_basis_points, + ]; + case Ff.contractType: + let I = Ff.schema.deploy.parse(t); + return [ + await this.getSignerAddress(), + n, + a, + I.platform_fee_recipient, + I.platform_fee_basis_points, + ]; + case Qu.contractType: + let k = Qu.schema.deploy.parse(t); + return [ + await this.getSignerAddress(), + k.name, + k.symbol, + n, + a, + k.fee_recipient, + k.seller_fee_basis_points, + ]; + default: + return []; + } + } + async getDefaultTrustedForwarders() { + let e = await this.getChainID(); + return oG(e); + } + async getImplementation(e, t) { + let n = se.ethers.utils.formatBytes32String(e.name), + a = await this.getChainID(), + i = lje(a, e.contractType); + return i && i.length > 0 && t === void 0 + ? i + : this.readContract.getImplementation( + n, + t !== void 0 ? t : this.DEFAULT_VERSION_MAP[e.contractType] + ); + } + async getLatestVersion(e) { + let t = OG(e); + if (!t) throw new Error(`Invalid contract type ${e}`); + let n = se.ethers.utils.formatBytes32String(t); + return this.readContract.currentVersion(n); + } + }, + tG = class extends ms { + constructor(e, t, n) { + super(t, e, Hdr.default, n); + } + async getContractAddresses(e) { + return (await this.readContract.getAll(e)).filter( + (t) => + se.utils.isAddress(t) && + t.toLowerCase() !== se.constants.AddressZero + ); + } + async addContract(e) { + return await this.addContracts([e]); + } + async addContracts(e) { + let t = await this.getSignerAddress(), + n = []; + return ( + e.forEach((a) => { + n.push( + this.readContract.interface.encodeFunctionData("add", [t, a]) + ); + }), + { receipt: await this.multiCall(n) } + ); + } + async removeContract(e) { + return await this.removeContracts([e]); + } + async removeContracts(e) { + let t = await this.getSignerAddress(), + n = []; + return ( + e.forEach((a) => { + n.push( + this.readContract.interface.encodeFunctionData("remove", [t, a]) + ); + }), + { receipt: await this.multiCall(n) } + ); + } + }, + Lhr = "0xdd99b75f095d0c4d5112aCe938e4e6ed962fb024", + gR = class extends sb { + constructor(e, t, n) { + super(e, t), + le._defineProperty(this, "_factory", void 0), + le._defineProperty(this, "_registry", void 0), + le._defineProperty(this, "storage", void 0), + le._defineProperty(this, "events", void 0), + le._defineProperty(this, "deployMetadataCache", {}), + le._defineProperty(this, "transactionListener", (a) => { + a.status === "submitted" && + this.events.emit("contractDeployed", { + status: "submitted", + transactionHash: a.transactionHash, + }); + }), + (this.storage = n), + (this.events = new Jze.EventEmitter()), + this.getFactory(), + this.getRegistry(); + } + async deployNFTCollection(e) { + return await this.deployBuiltInContract(C0.contractType, e); + } + async deployNFTDrop(e) { + return await this.deployBuiltInContract(_h.contractType, e); + } + async deploySignatureDrop(e) { + return await this.deployBuiltInContract(xh.contractType, e); + } + async deployMultiwrap(e) { + return await this.deployBuiltInContract(np.contractType, e); + } + async deployEdition(e) { + return await this.deployBuiltInContract(E0.contractType, e); + } + async deployEditionDrop(e) { + return await this.deployBuiltInContract(wh.contractType, e); + } + async deployToken(e) { + return await this.deployBuiltInContract(Eh.contractType, e); + } + async deployTokenDrop(e) { + return await this.deployBuiltInContract(I0.contractType, e); + } + async deployMarketplace(e) { + return await this.deployBuiltInContract(rp.contractType, e); + } + async deployMarketplaceV3(e) { + return await this.deployBuiltInContract(Ff.contractType, e); + } + async deployPack(e) { + return await this.deployBuiltInContract(Qu.contractType, e); + } + async deploySplit(e) { + return await this.deployBuiltInContract(Th.contractType, e); + } + async deployVote(e) { + return await this.deployBuiltInContract(Ch.contractType, e); + } + async deployBuiltInContract(e, t) { + let n = + arguments.length > 2 && arguments[2] !== void 0 + ? arguments[2] + : "latest", + a = this.getSigner(); + pr.default(a, "A signer is required to deploy contracts"); + let i = ib[e].schema.deploy.parse(t); + if (this.hasLocalFactory()) { + let I; + try { + (I = parseInt(n)), isNaN(I) && (I = void 0); + } catch { + I = void 0; + } + let k = await this.getFactory(); + if (!k) throw new Error("Factory not found"); + k.on(X.EventType.Transaction, this.transactionListener); + let O = await k.deploy(e, i, this.events, I); + return k.off(X.EventType.Transaction, this.transactionListener), O; + } + let s = OG(e); + pr.default(s, "Contract name not found"); + let c = await this.storage.upload(i), + l = await SKe(e, i, c, a), + d = (await this.getProvider().getNetwork()).chainId, + m = await this.fetchReleaseFromPolygon(Lhr, s, n), + w = await this.fetchAndCacheDeployMetadata(m.metadataUri), + C = + w.extendedMetadata?.factoryDeploymentData + ?.implementationAddresses?.[d]; + return C + ? this.deployContractFromUri(m.metadataUri, l) + : ((C = await this.deployContractFromUri( + m.metadataUri, + this.getConstructorParamsForImplementation(e, d), + { forceDirectDeploy: !0 } + )), + this.deployProxy(C, w.compilerMetadata.abi, "initialize", l)); + } + async getLatestBuiltInContractVersion(e) { + let t = await this.getFactory(); + if (!t) throw new Error("Factory not found"); + return await t.getLatestVersion(e); + } + async deployReleasedContract(e, t, n) { + let a = + arguments.length > 3 && arguments[3] !== void 0 + ? arguments[3] + : "latest", + i = arguments.length > 4 ? arguments[4] : void 0, + s = await this.fetchReleaseFromPolygon(e, t, a); + return await this.deployContractFromUri(s.metadataUri, n, i); + } + async deployViaFactory(e, t, n, a, i) { + let s = this.getSigner(); + pr.default(s, "signer is required"); + let c = new yR( + e, + this.getSignerOrProvider(), + this.storage, + this.options + ); + c.on(X.EventType.Transaction, this.transactionListener); + let l = await c.deployProxyByImplementation(t, n, a, i, this.events); + return c.off(X.EventType.Transaction, this.transactionListener), l; + } + async deployProxy(e, t, n, a) { + let i = se.Contract.getInterface(t).encodeFunctionData(n, a), + { TWProxy__factory: s } = await Promise.resolve().then(function () { + return Us(nj()); + }); + return this.deployContractWithAbi(s.abi, s.bytecode, [e, i]); + } + async getRegistry() { + return this._registry + ? this._registry + : (this._registry = this.getProvider() + .getNetwork() + .then(async (e) => { + let { chainId: t } = e, + n = i9(t, "twRegistry"); + if (!!n) + return new tG(n, this.getSignerOrProvider(), this.options); + })); + } + async getFactory() { + return this._factory + ? this._factory + : (this._factory = this.getProvider() + .getNetwork() + .then(async (e) => { + let { chainId: t } = e, + n = i9(t, "twFactory"); + return n + ? new yR( + n, + this.getSignerOrProvider(), + this.storage, + this.options + ) + : void 0; + })); + } + updateSignerOrProvider(e) { + super.updateSignerOrProvider(e), + this.updateContractSignerOrProvider(); + } + updateContractSignerOrProvider() { + this._factory + ?.then((e) => { + e?.updateSignerOrProvider(this.getSignerOrProvider()); + }) + .catch(() => {}), + this._registry + ?.then((e) => { + e?.updateSignerOrProvider(this.getSignerOrProvider()); + }) + .catch(() => {}); + } + async deployContractFromUri(e, t, n) { + let a = this.getSigner(); + pr.default(a, "A signer is required"); + let { compilerMetadata: i, extendedMetadata: s } = + await this.fetchAndCacheDeployMetadata(e), + c = n?.forceDirectDeploy || !1; + if ( + s && + s.factoryDeploymentData && + (s.isDeployableViaProxy || s.isDeployableViaFactory) && + !c + ) { + let w = (await this.getProvider().getNetwork()).chainId; + pr.default( + s.factoryDeploymentData.implementationAddresses, + "implementationAddresses is required" + ); + let C = s.factoryDeploymentData.implementationAddresses[w]; + pr.default(C, `implementationAddress not found for chainId '${w}'`), + pr.default( + s.factoryDeploymentData.implementationInitializerFunction, + "implementationInitializerFunction not set'" + ); + let I = gKe( + i.abi, + s.factoryDeploymentData.implementationInitializerFunction + ).map((O) => O.type), + k = this.convertParamValues(I, t); + if (s.isDeployableViaFactory) { + pr.default( + s.factoryDeploymentData.factoryAddresses, + "isDeployableViaFactory is true so factoryAddresses is required" + ); + let O = s.factoryDeploymentData.factoryAddresses[w]; + return ( + pr.default( + O, + `isDeployableViaFactory is true and factoryAddress not found for chainId '${w}'` + ), + await this.deployViaFactory( + O, + C, + i.abi, + s.factoryDeploymentData.implementationInitializerFunction, + k + ) + ); + } else if (s.isDeployableViaProxy) + return await this.deployProxy( + C, + i.abi, + s.factoryDeploymentData.implementationInitializerFunction, + k + ); + } + let l = i.bytecode.startsWith("0x") ? i.bytecode : `0x${i.bytecode}`; + if (!se.ethers.utils.isHexString(l)) + throw new Error(`Contract bytecode is invalid. + +${l}`); + let d = IG(i.abi).map((w) => w.type), + m = this.convertParamValues(d, t); + return this.deployContractWithAbi(i.abi, l, m); + } + async deployContractWithAbi(e, t, n) { + let a = this.getSigner(); + pr.default(a, "Signer is required to deploy contracts"); + let i = await new se.ethers.ContractFactory(e, t) + .connect(a) + .deploy(...n); + this.events.emit("contractDeployed", { + status: "submitted", + transactionHash: i.deployTransaction.hash, + }); + let s = await i.deployed(); + return ( + this.events.emit("contractDeployed", { + status: "completed", + contractAddress: s.address, + transactionHash: s.deployTransaction.hash, + }), + s.address + ); + } + addDeployListener(e) { + this.events.on("contractDeployed", e); + } + removeDeployListener(e) { + this.events.off("contractDeployed", e); + } + removeAllDeployListeners() { + this.events.removeAllListeners("contractDeployed"); + } + async fetchAndCacheDeployMetadata(e) { + if (this.deployMetadataCache[e]) return this.deployMetadataCache[e]; + let t = await f2(e, this.storage), + n; + try { + n = await kG(e, this.storage); + } catch {} + let a = { compilerMetadata: t, extendedMetadata: n }; + return (this.deployMetadataCache[e] = a), a; + } + async fetchReleaseFromPolygon(e, t, n) { + let a = await new vh("polygon").getPublisher().getVersion(e, t, n); + if (!a) + throw new Error( + `No release found for '${t}' at version '${n}' by '${e}'` + ); + return a; + } + getConstructorParamsForImplementation(e, t) { + switch (e) { + case rp.contractType: + case np.contractType: + return [s9(X.ChainId.Hardhat).wrapped.address]; + case Qu.contractType: + return [s9(t).wrapped.address, se.ethers.constants.AddressZero]; + default: + return []; + } + } + hasLocalFactory() { + return S.env.factoryAddress !== void 0; + } + convertParamValues(e, t) { + if (e.length !== t.length) + throw Error( + `Passed the wrong number of constructor arguments: ${t.length}, expected ${e.length}` + ); + return e.map((n, a) => + n === "tuple" || n.endsWith("[]") + ? typeof t[a] == "string" + ? JSON.parse(t[a]) + : t[a] + : n === "bytes32" + ? (pr.default( + se.ethers.utils.isHexString(t[a]), + `Could not parse bytes32 value. Expected valid hex string but got "${t[a]}".` + ), + se.ethers.utils.hexZeroPad(t[a], 32)) + : n.startsWith("bytes") + ? (pr.default( + se.ethers.utils.isHexString(t[a]), + `Could not parse bytes value. Expected valid hex string but got "${t[a]}".` + ), + t[a]) + : n.startsWith("uint") || n.startsWith("int") + ? se.BigNumber.from(t[a].toString()) + : t[a] + ); + } + }, + bR = class { + constructor(e) { + le._defineProperty(this, "featureName", I9.name), + le._defineProperty(this, "contractWrapper", void 0), + (this.contractWrapper = e); + } + async get() { + return this.contractWrapper.readContract.owner(); + } + async set(e) { + return { + receipt: await this.contractWrapper.sendTransaction("setOwner", [ + e, + ]), + }; + } + }, + PKe = {}, + Dhr = new vh("polygon"); + function RKe(r, e) { + return `${r}-${e}`; + } + function qhr(r, e, t) { + PKe[RKe(r, e)] = t; + } + function Fhr(r, e) { + return PKe[RKe(r, e)]; + } + async function cb(r, e, t) { + let n = (await e.getNetwork()).chainId, + a = Fhr(r, n); + if (a) return a; + let i; + try { + let s = await V3(r, e); + if (!s) + throw new Error(`Could not resolve metadata for contract at ${r}`); + i = await vR(s, t); + } catch { + try { + let c = await Dhr.multiChainRegistry.getContractMetadataURI(n, r); + i = await vR(c, t); + } catch { + throw new Error(`Could not resolve metadata for contract at ${r}`); + } + } + if (!i) + throw new Error(`Could not resolve metadata for contract at ${r}`); + return qhr(r, n, i), i; + } + async function _u(r, e, t) { + try { + let n = await cb(r, e, t); + if (n && n.abi) return n.abi; + } catch {} + } + async function vR(r, e) { + let t = await e.downloadJSON(r); + if (!t || !t.output) + throw new Error(`Could not resolve metadata for contract at ${r}`); + let n = ap.parse(t.output.abi), + a = t.settings.compilationTarget, + i = Object.keys(a), + s = a[i[0]], + c = FG.parse({ + title: t.output.devdoc.title, + author: t.output.devdoc.author, + details: t.output.devdoc.detail, + notice: t.output.userdoc.notice, + }), + l = [ + ...new Set( + Object.entries(t.sources).map((d) => { + let [, m] = d; + return m.license; + }) + ), + ]; + return { name: s, abi: n, metadata: t, info: c, licenses: l }; + } + async function LG(r, e) { + return await Promise.all( + Object.entries(r.metadata.sources).map(async (t) => { + let [n, a] = t, + i = a.urls, + s = i ? i.find((c) => c.includes("ipfs")) : void 0; + if (s) { + let c = s.split("ipfs/")[1], + l = new Promise((m, w) => setTimeout(() => w("timeout"), 3e3)), + d = await Promise.race([ + (await e.download(`ipfs://${c}`)).text(), + l, + ]); + return { filename: n, source: d }; + } else + return { + filename: n, + source: a.content || "Could not find source for this contract", + }; + }) + ); + } + var BKe = wu.catchall(Te.z.union([uG, Te.z.unknown()])), + DG = BKe.merge(ao.merge(Hf).merge(ys).partial()), + NKe = Xu.merge(ao.merge(Hf).merge(ys).partial()), + OKe = DG.merge(Ql.merge(A0).merge(el).partial()), + g2 = { deploy: OKe, output: NKe, input: DG }, + Yze = Te.z + .object({ type: Te.z.string(), name: Te.z.string() }) + .catchall(Te.z.any()), + rG = Yze.extend({ + stateMutability: Te.z.string().optional(), + components: Te.z.array(Yze).optional(), + }).catchall(Te.z.any()), + LKe = Te.z + .object({ + type: Te.z.string(), + name: Te.z.string().default(""), + inputs: Te.z.array(rG).default([]), + outputs: Te.z.array(rG).default([]), + }) + .catchall(Te.z.any()), + ap = Te.z.array(LKe), + n6 = Te.z + .object({ + name: Te.z.string(), + metadataUri: Te.z.string(), + bytecodeUri: Te.z.string(), + analytics: Te.z.any().optional(), + }) + .catchall(Te.z.any()), + nG = Te.z.record(Te.z.string(), Te.z.string()), + DKe = Te.z.object({ + implementationAddresses: nG, + implementationInitializerFunction: Te.z.string().default("initialize"), + factoryAddresses: nG.optional(), + }), + qG = Te.z + .object({ + version: Te.z.string().refine( + (r) => { + try { + return m2(r), !0; + } catch { + return !1; + } + }, + (r) => ({ + message: `'${r}' is not a valid semantic version. Should be in the format of major.minor.patch. Ex: 0.4.1`, + }) + ), + displayName: Te.z.string().optional(), + description: Te.z.string().optional(), + readme: Te.z.string().optional(), + license: Te.z.string().optional(), + changelog: Te.z.string().optional(), + tags: Te.z.array(Te.z.string()).optional(), + audit: le.FileOrBufferOrStringSchema.nullable().optional(), + logo: le.FileOrBufferOrStringSchema.nullable().optional(), + isDeployableViaFactory: Te.z.boolean().optional(), + isDeployableViaProxy: Te.z.boolean().optional(), + factoryDeploymentData: DKe.optional(), + constructorParams: Te.z + .record( + Te.z.string(), + Te.z + .object({ + displayName: Te.z.string().optional(), + description: Te.z.string().optional(), + defaultValue: Te.z.string().optional(), + }) + .catchall(Te.z.any()) + ) + .optional(), + }) + .catchall(Te.z.any()), + qKe = qG.extend({ + audit: Te.z.string().nullable().optional(), + logo: Te.z.string().nullable().optional(), + }), + FKe = n6.merge(qG).extend({ publisher: Nc.optional() }), + WKe = n6.merge(qKe).extend({ publisher: Nc.optional() }), + UKe = Te.z.object({ + name: Te.z.string().optional(), + bio: Te.z.string().optional(), + avatar: le.FileOrBufferOrStringSchema.nullable().optional(), + website: Te.z.string().optional(), + twitter: Te.z.string().optional(), + telegram: Te.z.string().optional(), + facebook: Te.z.string().optional(), + github: Te.z.string().optional(), + medium: Te.z.string().optional(), + linkedin: Te.z.string().optional(), + reddit: Te.z.string().optional(), + discord: Te.z.string().optional(), + }), + HKe = UKe.extend({ avatar: Te.z.string().nullable().optional() }), + zKe = Te.z.object({ + id: Te.z.string(), + timestamp: gu, + metadataUri: Te.z.string(), + }), + FG = Te.z.object({ + title: Te.z.string().optional(), + author: Te.z.string().optional(), + details: Te.z.string().optional(), + notice: Te.z.string().optional(), + }), + jKe = Te.z.object({ + name: Te.z.string(), + abi: ap, + metadata: Te.z.record(Te.z.string(), Te.z.any()), + info: FG, + licenses: Te.z + .array(Te.z.string().optional()) + .default([]) + .transform((r) => r.filter((e) => e !== void 0)), + }), + KKe = n6.merge(jKe).extend({ bytecode: Te.z.string() }), + Whr = "https://paper.xyz/api", + Uhr = "2022-08-12", + WG = `${Whr}/${Uhr}/platform/thirdweb`, + $ze = { + [X.ChainId.Mainnet]: "Ethereum", + [X.ChainId.Goerli]: "Goerli", + [X.ChainId.Polygon]: "Polygon", + [X.ChainId.Mumbai]: "Mumbai", + [X.ChainId.Avalanche]: "Avalanche", + }; + function VKe(r) { + return ( + pr.default(r in $ze, `chainId not supported by paper: ${r}`), $ze[r] + ); + } + async function GKe(r, e) { + let t = VKe(e), + a = await ( + await fetch(`${WG}/register-contract?contractAddress=${r}&chain=${t}`) + ).json(); + return ( + pr.default(a.result.id, "Contract is not registered with paper"), + a.result.id + ); + } + var Hhr = { + expiresInMinutes: 15, + feeBearer: "BUYER", + sendEmailOnSuccess: !0, + redirectAfterPayment: !1, + }; + async function YKe(r, e) { + let n = await ( + await fetch(`${WG}/checkout-link-intent`, { + method: "POST", + headers: { "Content-Type": "application/json" }, + body: JSON.stringify({ + contractId: r, + ...Hhr, + ...e, + metadata: { ...e.metadata, via_platform: "thirdweb" }, + hideNativeMint: !0, + hidePaperWallet: !!e.walletAddress, + hideExternalWallet: !0, + hidePayWithCrypto: !0, + usePaperKey: !1, + }), + }) + ).json(); + return ( + pr.default( + n.checkoutLinkIntentUrl, + "Failed to create checkout link intent" + ), + n.checkoutLinkIntentUrl + ); + } + var aG = class { + constructor(e) { + le._defineProperty(this, "contractWrapper", void 0), + (this.contractWrapper = e); + } + async getCheckoutId() { + return GKe( + this.contractWrapper.readContract.address, + await this.contractWrapper.getChainID() + ); + } + async isEnabled() { + try { + return !!(await this.getCheckoutId()); + } catch { + return !1; + } + } + async createLinkIntent(e) { + return await YKe(await this.getCheckoutId(), e); + } + }; + X.ALL_ROLES = wG; + X.APPROVED_IMPLEMENTATIONS = cV; + X.AbiObjectSchema = LKe; + X.AbiSchema = ap; + X.AbiTypeSchema = rG; + X.AddressSchema = Nc; + X.AdminRoleMissingError = TV; + X.AssetNotFoundError = hV; + X.AuctionAlreadyStartedError = h9; + X.AuctionHasNotEndedError = O3; + X.BYOCContractMetadataSchema = BKe; + X.BaseSignaturePayloadInput = _R; + X.BigNumberSchema = Ti; + X.BigNumberTransformSchema = uG; + X.BigNumberishSchema = gu; + X.CHAIN_ID_TO_NAME = Spr; + X.CHAIN_NAME_TO_ID = u9; + X.CONTRACTS_MAP = NG; + X.CONTRACT_ADDRESSES = o2; + X.CallOverrideSchema = mje; + X.ChainIdToAddressSchema = nG; + X.ChainInfoInputSchema = yje; + X.ClaimConditionInputArray = wje; + X.ClaimConditionInputSchema = t6; + X.ClaimConditionMetadataSchema = vje; + X.ClaimConditionOutputSchema = fG; + X.CommonContractOutputSchema = Xu; + X.CommonContractSchema = wu; + X.CommonPlatformFeeSchema = Ql; + X.CommonPrimarySaleSchema = A0; + X.CommonRoyaltySchema = ao; + X.CommonSymbolSchema = ys; + X.CommonTrustedForwarderSchema = el; + X.CompilerMetadataFetchedSchema = jKe; + X.ContractDeployer = gR; + X.ContractEncoder = u2; + X.ContractEvents = pR; + X.ContractInfoSchema = FG; + X.ContractInterceptor = hR; + X.ContractMetadata = T0; + X.ContractOwner = bR; + X.ContractPlatformFee = fR; + X.ContractPrimarySale = S9; + X.ContractPublishedMetadata = mR; + X.ContractRoles = A9; + X.ContractRoyalty = k9; + X.ContractWrapper = ms; + X.CurrencySchema = gje; + X.CurrencyValueSchema = bje; + X.CustomContractDeploy = OKe; + X.CustomContractInput = DG; + X.CustomContractOutput = NKe; + X.CustomContractSchema = g2; + X.DEFAULT_IPFS_GATEWAY = kpr; + X.DelayedReveal = D3; + X.DropClaimConditions = Y3; + X.DropErc1155ClaimConditions = G9; + X.DropErc1155ContractSchema = Nje; + X.DropErc1155History = DV; + X.DropErc20ContractSchema = CKe; + X.DropErc721ContractSchema = gG; + X.DuplicateFileNameError = yV; + X.DuplicateLeafsError = p9; + X.EditionDropInitializer = wh; + X.EditionInitializer = E0; + X.EditionMetadataInputOrUriSchema = Ipr; + X.EditionMetadataInputSchema = Cpr; + X.EditionMetadataOutputSchema = $je; + X.EditionMetadataWithOwnerOutputSchema = Epr; + X.EndDateSchema = fje; + X.Erc1155 = Z3; + X.Erc1155BatchMintable = uR; + X.Erc1155Burnable = sR; + X.Erc1155Enumerable = oR; + X.Erc1155LazyMintable = cR; + X.Erc1155Mintable = lR; + X.Erc1155SignatureMintable = dR; + X.Erc20 = $3; + X.Erc20BatchMintable = $9; + X.Erc20Burnable = Y9; + X.Erc20Mintable = J9; + X.Erc20SignatureMintable = Z9; + X.Erc721 = J3; + X.Erc721BatchMintable = tR; + X.Erc721Burnable = Q9; + X.Erc721ClaimableWithConditions = X9; + X.Erc721Enumerable = nR; + X.Erc721LazyMintable = eR; + X.Erc721Mintable = rR; + X.Erc721Supply = aR; + X.Erc721WithQuantitySignatureMintable = iR; + X.ExtensionNotImplementedError = Wf; + X.ExtraPublishMetadataSchemaInput = qG; + X.ExtraPublishMetadataSchemaOutput = qKe; + X.FEATURE_DIRECT_LISTINGS = IV; + X.FEATURE_ENGLISH_AUCTIONS = AV; + X.FEATURE_NFT_REVEALABLE = U3; + X.FEATURE_OFFERS = kV; + X.FEATURE_PACK_VRF = CV; + X.FactoryDeploymentSchema = DKe; + X.FetchError = wV; + X.FileNameMissingError = mV; + X.FullPublishMetadataSchemaInput = FKe; + X.FullPublishMetadataSchemaOutput = WKe; + X.FunctionDeprecatedError = _V; + X.GasCostEstimator = G3; + X.GenericRequest = Pje; + X.InterfaceId_IERC1155 = X3; + X.InterfaceId_IERC721 = Q3; + X.InvalidAddressError = pV; + X.LINK_TOKEN_ADDRESS = Qdr; + X.LOCAL_NODE_PKEY = uje; + X.ListingNotFoundError = B3; + X.MarketplaceAuction = $V; + X.MarketplaceContractSchema = bG; + X.MarketplaceDirect = YV; + X.MarketplaceInitializer = rp; + X.MarketplaceV3Initializer = Ff; + X.MerkleSchema = Hf; + X.MintRequest1155 = Sje; + X.MintRequest20 = Aje; + X.MintRequest721 = kje; + X.MintRequest721withQuantity = Mje; + X.MissingOwnerRoleError = bV; + X.MissingRoleError = d9; + X.MultiwrapContractSchema = AKe; + X.MultiwrapInitializer = np; + X.NATIVE_TOKENS = cG; + X.NATIVE_TOKEN_ADDRESS = Zl; + X.NFTCollectionInitializer = C0; + X.NFTDropInitializer = _h; + X.NotEnoughTokensError = gV; + X.NotFoundError = c2; + X.OZ_DEFENDER_FORWARDER_ADDRESS = _0; + X.OptionalPropertiesInput = Tpr; + X.PAPER_API_URL = WG; + X.PREBUILT_CONTRACTS_MAP = ib; + X.PackContractSchema = Dje; + X.PackInitializer = Qu; + X.PaperCheckout = aG; + X.PartialClaimConditionInputSchema = tpr; + X.PreDeployMetadata = n6; + X.PreDeployMetadataFetchedSchema = KKe; + X.ProfileSchemaInput = UKe; + X.ProfileSchemaOutput = HKe; + X.PublishedContractSchema = zKe; + X.QuantityAboveLimitError = vV; + X.RawDateSchema = lG; + X.RestrictedTransferError = xV; + X.SUPPORTED_CHAIN_IDS = cje; + X.Signature1155PayloadInput = xje; + X.Signature1155PayloadInputWithTokenId = Tje; + X.Signature1155PayloadOutput = Eje; + X.Signature20PayloadInput = mG; + X.Signature20PayloadOutput = _je; + X.Signature721PayloadInput = xR; + X.Signature721PayloadOutput = yG; + X.Signature721WithQuantityInput = Cje; + X.Signature721WithQuantityOutput = Ije; + X.SignatureDropInitializer = xh; + X.SnapshotEntryInput = c9; + X.SnapshotEntryWithProofSchema = pG; + X.SnapshotInfoSchema = epr; + X.SnapshotInputSchema = e6; + X.SnapshotSchema = hG; + X.SplitInitializer = Th; + X.SplitsContractSchema = Fje; + X.StandardErc1155 = GV; + X.StandardErc20 = UV; + X.StandardErc721 = jV; + X.StartDateSchema = dG; + X.ThirdwebSDK = vh; + X.TokenDropInitializer = I0; + X.TokenERC20History = WV; + X.TokenErc1155ContractSchema = Kje; + X.TokenErc20ContractSchema = Uje; + X.TokenErc721ContractSchema = zje; + X.TokenInitializer = Eh; + X.TokenMintInputSchema = Apr; + X.TransactionError = f9; + X.TransactionTask = Xl; + X.UploadError = fV; + X.UserWallet = y2; + X.VoteContractSchema = Yje; + X.VoteInitializer = Ch; + X.WrongListingTypeError = N3; + X.assertEnabled = br; + X.buildDefaultMap = Jje; + X.cleanCurrencyAddress = vG; + X.convertToReadableQuantity = M3; + X.createCheckoutLinkIntent = YKe; + X.createSnapshot = sKe; + X.detectContractFeature = Lt; + X.detectFeatures = r6; + X.extractConstructorParams = fKe; + X.extractConstructorParamsFromAbi = IG; + X.extractEventsFromAbi = bKe; + X.extractFunctionParamsFromAbi = gKe; + X.extractFunctions = mKe; + X.extractFunctionsFromAbi = h2; + X.extractIPFSHashFromBytecode = wKe; + X.extractMinimalProxyImplementationAddress = vKe; + X.fetchAbiFromAddress = _u; + X.fetchContractMetadata = vR; + X.fetchContractMetadataFromAddress = cb; + X.fetchCurrencyMetadata = b2; + X.fetchCurrencyValue = tp; + X.fetchExtendedReleaseMetadata = kG; + X.fetchPreDeployMetadata = f2; + X.fetchRawPredeployMetadata = AG; + X.fetchRegisteredCheckoutId = GKe; + X.fetchSnapshotEntryForAddress = ER; + X.fetchSourceFilesFromMetadata = LG; + X.fetchTokenMetadataForContract = CR; + X.getAllDetectedFeatureNames = xhr; + X.getAllDetectedFeatures = _hr; + X.getAllInBatches = Ihr; + X.getApprovedImplementation = lje; + X.getChainProvider = TR; + X.getContractAddressByChainId = i9; + X.getContractName = OG; + X.getContractPublisherAddress = dje; + X.getContractTypeForRemoteName = kKe; + X.getDefaultTrustedForwarders = oG; + X.getMultichainRegistryAddress = uV; + X.getNativeTokenByChainId = s9; + X.getReadOnlyProvider = l9; + X.getRoleHash = a2; + X.handleTokenApproval = RG; + X.hasERC20Allowance = Gpr; + X.hasFunction = sc; + X.hasMatchingAbi = CG; + X.includesErrorMessage = L3; + X.isDowngradeVersion = Ohr; + X.isFeatureEnabled = MG; + X.isIncrementalVersion = MKe; + X.isNativeToken = Ih; + X.isTokenApprovedForTransfer = xKe; + X.mapOffer = BG; + X.matchesPrebuiltAbi = bhr; + X.normalizePriceValue = oc; + X.parseChainIdToPaperChain = VKe; + X.parseRevertReason = Qje; + X.resolveContractUriFromAddress = V3; + X.setErc20Allowance = x0; + X.toChainId = Zje; + X.toSemver = m2; + X.uploadOrExtractURI = TG; + }); + var $Ke = N((ye) => { + "use strict"; + _(); + x(); + Object.defineProperty(ye, "__esModule", { value: !0 }); + var zhr = ec(), + be = Rc(); + Gr(); + wt(); + an(); + Bn(); + Nn(); + On(); + Ln(); + Dn(); + qn(); + Fn(); + Wn(); + Un(); + Hn(); + zn(); + jn(); + Kn(); + Vn(); + Gn(); + Yn(); + $n(); + Jn(); + Zn(); + Qn(); + Xn(); + ea(); + ta(); + ra(); + na(); + aa(); + ia(); + sa(); + oa(); + ca(); + ua(); + la(); + da(); + pa(); + ha(); + fa(); + ma(); + ya(); + ga(); + ba(); + va(); + wa(); + _a(); + xa(); + Ta(); + Ea(); + Ca(); + vn(); + Ia(); + Aa(); + ka(); + An(); + Sa(); + Ma(); + Pa(); + Ra(); + Ba(); + Na(); + Oa(); + La(); + Da(); + qa(); + Fa(); + Wa(); + Ua(); + Ha(); + za(); + globalThis.global = globalThis; + ye.getRpcUrl = zhr.getRpcUrl; + ye.ALL_ROLES = be.ALL_ROLES; + ye.APPROVED_IMPLEMENTATIONS = be.APPROVED_IMPLEMENTATIONS; + ye.AbiObjectSchema = be.AbiObjectSchema; + ye.AbiSchema = be.AbiSchema; + ye.AbiTypeSchema = be.AbiTypeSchema; + ye.AddressSchema = be.AddressSchema; + ye.AdminRoleMissingError = be.AdminRoleMissingError; + ye.AssetNotFoundError = be.AssetNotFoundError; + ye.AuctionAlreadyStartedError = be.AuctionAlreadyStartedError; + ye.AuctionHasNotEndedError = be.AuctionHasNotEndedError; + ye.BYOCContractMetadataSchema = be.BYOCContractMetadataSchema; + ye.BaseSignaturePayloadInput = be.BaseSignaturePayloadInput; + ye.BigNumberSchema = be.BigNumberSchema; + ye.BigNumberTransformSchema = be.BigNumberTransformSchema; + ye.BigNumberishSchema = be.BigNumberishSchema; + ye.CHAIN_ID_TO_NAME = be.CHAIN_ID_TO_NAME; + ye.CHAIN_NAME_TO_ID = be.CHAIN_NAME_TO_ID; + ye.CONTRACTS_MAP = be.CONTRACTS_MAP; + ye.CONTRACT_ADDRESSES = be.CONTRACT_ADDRESSES; + ye.CallOverrideSchema = be.CallOverrideSchema; + Object.defineProperty(ye, "ChainId", { + enumerable: !0, + get: function () { + return be.ChainId; + }, + }); + ye.ChainIdToAddressSchema = be.ChainIdToAddressSchema; + ye.ChainInfoInputSchema = be.ChainInfoInputSchema; + ye.ClaimConditionInputArray = be.ClaimConditionInputArray; + ye.ClaimConditionInputSchema = be.ClaimConditionInputSchema; + ye.ClaimConditionMetadataSchema = be.ClaimConditionMetadataSchema; + ye.ClaimConditionOutputSchema = be.ClaimConditionOutputSchema; + Object.defineProperty(ye, "ClaimEligibility", { + enumerable: !0, + get: function () { + return be.ClaimEligibility; + }, + }); + ye.CommonContractOutputSchema = be.CommonContractOutputSchema; + ye.CommonContractSchema = be.CommonContractSchema; + ye.CommonPlatformFeeSchema = be.CommonPlatformFeeSchema; + ye.CommonPrimarySaleSchema = be.CommonPrimarySaleSchema; + ye.CommonRoyaltySchema = be.CommonRoyaltySchema; + ye.CommonSymbolSchema = be.CommonSymbolSchema; + ye.CommonTrustedForwarderSchema = be.CommonTrustedForwarderSchema; + ye.CompilerMetadataFetchedSchema = be.CompilerMetadataFetchedSchema; + ye.ContractDeployer = be.ContractDeployer; + ye.ContractEncoder = be.ContractEncoder; + ye.ContractEvents = be.ContractEvents; + ye.ContractInfoSchema = be.ContractInfoSchema; + ye.ContractInterceptor = be.ContractInterceptor; + ye.ContractMetadata = be.ContractMetadata; + ye.ContractOwner = be.ContractOwner; + ye.ContractPlatformFee = be.ContractPlatformFee; + ye.ContractPrimarySale = be.ContractPrimarySale; + ye.ContractPublishedMetadata = be.ContractPublishedMetadata; + ye.ContractRoles = be.ContractRoles; + ye.ContractRoyalty = be.ContractRoyalty; + ye.CurrencySchema = be.CurrencySchema; + ye.CurrencyValueSchema = be.CurrencyValueSchema; + ye.CustomContractDeploy = be.CustomContractDeploy; + ye.CustomContractInput = be.CustomContractInput; + ye.CustomContractOutput = be.CustomContractOutput; + ye.CustomContractSchema = be.CustomContractSchema; + ye.DEFAULT_IPFS_GATEWAY = be.DEFAULT_IPFS_GATEWAY; + ye.DelayedReveal = be.DelayedReveal; + ye.DropClaimConditions = be.DropClaimConditions; + ye.DropErc1155ClaimConditions = be.DropErc1155ClaimConditions; + ye.DropErc1155History = be.DropErc1155History; + ye.DuplicateFileNameError = be.DuplicateFileNameError; + ye.DuplicateLeafsError = be.DuplicateLeafsError; + ye.EditionDropInitializer = be.EditionDropInitializer; + ye.EditionInitializer = be.EditionInitializer; + ye.EditionMetadataInputOrUriSchema = be.EditionMetadataInputOrUriSchema; + ye.EditionMetadataInputSchema = be.EditionMetadataInputSchema; + ye.EditionMetadataOutputSchema = be.EditionMetadataOutputSchema; + ye.EditionMetadataWithOwnerOutputSchema = + be.EditionMetadataWithOwnerOutputSchema; + ye.EndDateSchema = be.EndDateSchema; + ye.Erc1155 = be.Erc1155; + ye.Erc1155BatchMintable = be.Erc1155BatchMintable; + ye.Erc1155Burnable = be.Erc1155Burnable; + ye.Erc1155Enumerable = be.Erc1155Enumerable; + ye.Erc1155LazyMintable = be.Erc1155LazyMintable; + ye.Erc1155Mintable = be.Erc1155Mintable; + ye.Erc1155SignatureMintable = be.Erc1155SignatureMintable; + ye.Erc20 = be.Erc20; + ye.Erc20BatchMintable = be.Erc20BatchMintable; + ye.Erc20Burnable = be.Erc20Burnable; + ye.Erc20Mintable = be.Erc20Mintable; + ye.Erc20SignatureMintable = be.Erc20SignatureMintable; + ye.Erc721 = be.Erc721; + ye.Erc721BatchMintable = be.Erc721BatchMintable; + ye.Erc721Burnable = be.Erc721Burnable; + ye.Erc721ClaimableWithConditions = be.Erc721ClaimableWithConditions; + ye.Erc721Enumerable = be.Erc721Enumerable; + ye.Erc721LazyMintable = be.Erc721LazyMintable; + ye.Erc721Mintable = be.Erc721Mintable; + ye.Erc721Supply = be.Erc721Supply; + ye.Erc721WithQuantitySignatureMintable = + be.Erc721WithQuantitySignatureMintable; + Object.defineProperty(ye, "EventType", { + enumerable: !0, + get: function () { + return be.EventType; + }, + }); + ye.ExtensionNotImplementedError = be.ExtensionNotImplementedError; + ye.ExtraPublishMetadataSchemaInput = be.ExtraPublishMetadataSchemaInput; + ye.ExtraPublishMetadataSchemaOutput = be.ExtraPublishMetadataSchemaOutput; + ye.FactoryDeploymentSchema = be.FactoryDeploymentSchema; + ye.FetchError = be.FetchError; + ye.FileNameMissingError = be.FileNameMissingError; + ye.FullPublishMetadataSchemaInput = be.FullPublishMetadataSchemaInput; + ye.FullPublishMetadataSchemaOutput = be.FullPublishMetadataSchemaOutput; + ye.FunctionDeprecatedError = be.FunctionDeprecatedError; + ye.GasCostEstimator = be.GasCostEstimator; + ye.GenericRequest = be.GenericRequest; + ye.InterfaceId_IERC1155 = be.InterfaceId_IERC1155; + ye.InterfaceId_IERC721 = be.InterfaceId_IERC721; + ye.InvalidAddressError = be.InvalidAddressError; + ye.LINK_TOKEN_ADDRESS = be.LINK_TOKEN_ADDRESS; + ye.LOCAL_NODE_PKEY = be.LOCAL_NODE_PKEY; + ye.ListingNotFoundError = be.ListingNotFoundError; + Object.defineProperty(ye, "ListingType", { + enumerable: !0, + get: function () { + return be.ListingType; + }, + }); + ye.MarketplaceAuction = be.MarketplaceAuction; + ye.MarketplaceDirect = be.MarketplaceDirect; + ye.MarketplaceInitializer = be.MarketplaceInitializer; + ye.MarketplaceV3Initializer = be.MarketplaceV3Initializer; + ye.MerkleSchema = be.MerkleSchema; + ye.MintRequest1155 = be.MintRequest1155; + ye.MintRequest20 = be.MintRequest20; + ye.MintRequest721 = be.MintRequest721; + ye.MintRequest721withQuantity = be.MintRequest721withQuantity; + ye.MissingOwnerRoleError = be.MissingOwnerRoleError; + ye.MissingRoleError = be.MissingRoleError; + ye.MultiwrapInitializer = be.MultiwrapInitializer; + ye.NATIVE_TOKENS = be.NATIVE_TOKENS; + ye.NATIVE_TOKEN_ADDRESS = be.NATIVE_TOKEN_ADDRESS; + ye.NFTCollectionInitializer = be.NFTCollectionInitializer; + ye.NFTDropInitializer = be.NFTDropInitializer; + ye.NotEnoughTokensError = be.NotEnoughTokensError; + ye.NotFoundError = be.NotFoundError; + ye.OZ_DEFENDER_FORWARDER_ADDRESS = be.OZ_DEFENDER_FORWARDER_ADDRESS; + ye.OptionalPropertiesInput = be.OptionalPropertiesInput; + ye.PAPER_API_URL = be.PAPER_API_URL; + ye.PREBUILT_CONTRACTS_MAP = be.PREBUILT_CONTRACTS_MAP; + ye.PackInitializer = be.PackInitializer; + ye.PaperCheckout = be.PaperCheckout; + ye.PartialClaimConditionInputSchema = be.PartialClaimConditionInputSchema; + ye.PreDeployMetadata = be.PreDeployMetadata; + ye.PreDeployMetadataFetchedSchema = be.PreDeployMetadataFetchedSchema; + ye.ProfileSchemaInput = be.ProfileSchemaInput; + ye.ProfileSchemaOutput = be.ProfileSchemaOutput; + Object.defineProperty(ye, "ProposalState", { + enumerable: !0, + get: function () { + return be.ProposalState; + }, + }); + ye.PublishedContractSchema = be.PublishedContractSchema; + ye.QuantityAboveLimitError = be.QuantityAboveLimitError; + ye.RawDateSchema = be.RawDateSchema; + ye.RestrictedTransferError = be.RestrictedTransferError; + ye.SUPPORTED_CHAIN_IDS = be.SUPPORTED_CHAIN_IDS; + ye.Signature1155PayloadInput = be.Signature1155PayloadInput; + ye.Signature1155PayloadInputWithTokenId = + be.Signature1155PayloadInputWithTokenId; + ye.Signature1155PayloadOutput = be.Signature1155PayloadOutput; + ye.Signature20PayloadInput = be.Signature20PayloadInput; + ye.Signature20PayloadOutput = be.Signature20PayloadOutput; + ye.Signature721PayloadInput = be.Signature721PayloadInput; + ye.Signature721PayloadOutput = be.Signature721PayloadOutput; + ye.Signature721WithQuantityInput = be.Signature721WithQuantityInput; + ye.Signature721WithQuantityOutput = be.Signature721WithQuantityOutput; + ye.SignatureDropInitializer = be.SignatureDropInitializer; + ye.SnapshotEntryInput = be.SnapshotEntryInput; + ye.SnapshotEntryWithProofSchema = be.SnapshotEntryWithProofSchema; + ye.SnapshotInfoSchema = be.SnapshotInfoSchema; + ye.SnapshotInputSchema = be.SnapshotInputSchema; + ye.SnapshotSchema = be.SnapshotSchema; + ye.SplitInitializer = be.SplitInitializer; + ye.StandardErc1155 = be.StandardErc1155; + ye.StandardErc20 = be.StandardErc20; + ye.StandardErc721 = be.StandardErc721; + ye.StartDateSchema = be.StartDateSchema; + Object.defineProperty(ye, "Status", { + enumerable: !0, + get: function () { + return be.Status; + }, + }); + ye.ThirdwebSDK = be.ThirdwebSDK; + ye.TokenDropInitializer = be.TokenDropInitializer; + ye.TokenERC20History = be.TokenERC20History; + ye.TokenInitializer = be.TokenInitializer; + ye.TokenMintInputSchema = be.TokenMintInputSchema; + ye.TransactionError = be.TransactionError; + ye.TransactionTask = be.TransactionTask; + ye.UploadError = be.UploadError; + ye.UserWallet = be.UserWallet; + ye.VoteInitializer = be.VoteInitializer; + Object.defineProperty(ye, "VoteType", { + enumerable: !0, + get: function () { + return be.VoteType; + }, + }); + ye.WrongListingTypeError = be.WrongListingTypeError; + ye.assertEnabled = be.assertEnabled; + ye.buildDefaultMap = be.buildDefaultMap; + ye.convertToReadableQuantity = be.convertToReadableQuantity; + ye.createCheckoutLinkIntent = be.createCheckoutLinkIntent; + ye.createSnapshot = be.createSnapshot; + ye.detectContractFeature = be.detectContractFeature; + ye.detectFeatures = be.detectFeatures; + ye.extractConstructorParams = be.extractConstructorParams; + ye.extractConstructorParamsFromAbi = be.extractConstructorParamsFromAbi; + ye.extractEventsFromAbi = be.extractEventsFromAbi; + ye.extractFunctionParamsFromAbi = be.extractFunctionParamsFromAbi; + ye.extractFunctions = be.extractFunctions; + ye.extractFunctionsFromAbi = be.extractFunctionsFromAbi; + ye.extractIPFSHashFromBytecode = be.extractIPFSHashFromBytecode; + ye.extractMinimalProxyImplementationAddress = + be.extractMinimalProxyImplementationAddress; + ye.fetchAbiFromAddress = be.fetchAbiFromAddress; + ye.fetchContractMetadata = be.fetchContractMetadata; + ye.fetchContractMetadataFromAddress = be.fetchContractMetadataFromAddress; + ye.fetchCurrencyMetadata = be.fetchCurrencyMetadata; + ye.fetchCurrencyValue = be.fetchCurrencyValue; + ye.fetchExtendedReleaseMetadata = be.fetchExtendedReleaseMetadata; + ye.fetchPreDeployMetadata = be.fetchPreDeployMetadata; + ye.fetchRawPredeployMetadata = be.fetchRawPredeployMetadata; + ye.fetchRegisteredCheckoutId = be.fetchRegisteredCheckoutId; + ye.fetchSnapshotEntryForAddress = be.fetchSnapshotEntryForAddress; + ye.fetchSourceFilesFromMetadata = be.fetchSourceFilesFromMetadata; + ye.getAllDetectedFeatureNames = be.getAllDetectedFeatureNames; + ye.getAllDetectedFeatures = be.getAllDetectedFeatures; + ye.getApprovedImplementation = be.getApprovedImplementation; + ye.getChainProvider = be.getChainProvider; + ye.getContractAddressByChainId = be.getContractAddressByChainId; + ye.getContractName = be.getContractName; + ye.getContractPublisherAddress = be.getContractPublisherAddress; + ye.getContractTypeForRemoteName = be.getContractTypeForRemoteName; + ye.getDefaultTrustedForwarders = be.getDefaultTrustedForwarders; + ye.getMultichainRegistryAddress = be.getMultichainRegistryAddress; + ye.getNativeTokenByChainId = be.getNativeTokenByChainId; + ye.getReadOnlyProvider = be.getReadOnlyProvider; + ye.getRoleHash = be.getRoleHash; + ye.hasFunction = be.hasFunction; + ye.hasMatchingAbi = be.hasMatchingAbi; + ye.includesErrorMessage = be.includesErrorMessage; + ye.isDowngradeVersion = be.isDowngradeVersion; + ye.isFeatureEnabled = be.isFeatureEnabled; + ye.isIncrementalVersion = be.isIncrementalVersion; + ye.matchesPrebuiltAbi = be.matchesPrebuiltAbi; + ye.normalizePriceValue = be.normalizePriceValue; + ye.parseChainIdToPaperChain = be.parseChainIdToPaperChain; + ye.parseRevertReason = be.parseRevertReason; + ye.resolveContractUriFromAddress = be.resolveContractUriFromAddress; + ye.toChainId = be.toChainId; + ye.toSemver = be.toSemver; + }); + var JKe = N((Oun, UG) => { + "use strict"; + _(); + x(); + S.env.NODE_ENV === "production" + ? (UG.exports = RHe()) + : (UG.exports = $Ke()); + }); + var Lc = N((ZKe) => { + "use strict"; + _(); + x(); + function jhr(r, e) { + if (typeof r != "object" || r === null) return r; + var t = r[Symbol.toPrimitive]; + if (t !== void 0) { + var n = t.call(r, e || "default"); + if (typeof n != "object") return n; + throw new TypeError("@@toPrimitive must return a primitive value."); + } + return (e === "string" ? String : Number)(r); + } + function Khr(r) { + var e = jhr(r, "string"); + return typeof e == "symbol" ? e : String(e); + } + function Vhr(r, e, t) { + return ( + (e = Khr(e)), + e in r + ? Object.defineProperty(r, e, { + value: t, + enumerable: !0, + configurable: !0, + writable: !0, + }) + : (r[e] = t), + r + ); + } + ZKe._defineProperty = Vhr; + }); + var td = N((a6) => { + "use strict"; + _(); + x(); + function QKe(r, e) { + if (e.has(r)) + throw new TypeError( + "Cannot initialize the same private elements twice on an object" + ); + } + function Ghr(r, e, t) { + QKe(r, e), e.set(r, t); + } + function Yhr(r, e, t) { + if (e.set) e.set.call(r, t); + else { + if (!e.writable) + throw new TypeError("attempted to set read only private field"); + e.value = t; + } + } + function XKe(r, e, t) { + if (!e.has(r)) + throw new TypeError( + "attempted to " + t + " private field on non-instance" + ); + return e.get(r); + } + function $hr(r, e, t) { + var n = XKe(r, e, "set"); + return Yhr(r, n, t), t; + } + function Jhr(r, e) { + return e.get ? e.get.call(r) : e.value; + } + function Zhr(r, e) { + var t = XKe(r, e, "get"); + return Jhr(r, t); + } + a6._checkPrivateRedeclaration = QKe; + a6._classPrivateFieldGet = Zhr; + a6._classPrivateFieldInitSpec = Ghr; + a6._classPrivateFieldSet = $hr; + }); + var gs = N((jun, HG) => { + "use strict"; + _(); + x(); + var Qhr = Object.prototype.hasOwnProperty, + Dc = "~"; + function i6() {} + Object.create && + ((i6.prototype = Object.create(null)), new i6().__proto__ || (Dc = !1)); + function Xhr(r, e, t) { + (this.fn = r), (this.context = e), (this.once = t || !1); + } + function eVe(r, e, t, n, a) { + if (typeof t != "function") + throw new TypeError("The listener must be a function"); + var i = new Xhr(t, n || r, a), + s = Dc ? Dc + e : e; + return ( + r._events[s] + ? r._events[s].fn + ? (r._events[s] = [r._events[s], i]) + : r._events[s].push(i) + : ((r._events[s] = i), r._eventsCount++), + r + ); + } + function AR(r, e) { + --r._eventsCount === 0 ? (r._events = new i6()) : delete r._events[e]; + } + function uc() { + (this._events = new i6()), (this._eventsCount = 0); + } + uc.prototype.eventNames = function () { + var e = [], + t, + n; + if (this._eventsCount === 0) return e; + for (n in (t = this._events)) + Qhr.call(t, n) && e.push(Dc ? n.slice(1) : n); + return Object.getOwnPropertySymbols + ? e.concat(Object.getOwnPropertySymbols(t)) + : e; + }; + uc.prototype.listeners = function (e) { + var t = Dc ? Dc + e : e, + n = this._events[t]; + if (!n) return []; + if (n.fn) return [n.fn]; + for (var a = 0, i = n.length, s = new Array(i); a < i; a++) + s[a] = n[a].fn; + return s; + }; + uc.prototype.listenerCount = function (e) { + var t = Dc ? Dc + e : e, + n = this._events[t]; + return n ? (n.fn ? 1 : n.length) : 0; + }; + uc.prototype.emit = function (e, t, n, a, i, s) { + var c = Dc ? Dc + e : e; + if (!this._events[c]) return !1; + var l = this._events[c], + d = arguments.length, + m, + w; + if (l.fn) { + switch ((l.once && this.removeListener(e, l.fn, void 0, !0), d)) { + case 1: + return l.fn.call(l.context), !0; + case 2: + return l.fn.call(l.context, t), !0; + case 3: + return l.fn.call(l.context, t, n), !0; + case 4: + return l.fn.call(l.context, t, n, a), !0; + case 5: + return l.fn.call(l.context, t, n, a, i), !0; + case 6: + return l.fn.call(l.context, t, n, a, i, s), !0; + } + for (w = 1, m = new Array(d - 1); w < d; w++) m[w - 1] = arguments[w]; + l.fn.apply(l.context, m); + } else { + var C = l.length, + I; + for (w = 0; w < C; w++) + switch ( + (l[w].once && this.removeListener(e, l[w].fn, void 0, !0), d) + ) { + case 1: + l[w].fn.call(l[w].context); + break; + case 2: + l[w].fn.call(l[w].context, t); + break; + case 3: + l[w].fn.call(l[w].context, t, n); + break; + case 4: + l[w].fn.call(l[w].context, t, n, a); + break; + default: + if (!m) + for (I = 1, m = new Array(d - 1); I < d; I++) + m[I - 1] = arguments[I]; + l[w].fn.apply(l[w].context, m); + } + } + return !0; + }; + uc.prototype.on = function (e, t, n) { + return eVe(this, e, t, n, !1); + }; + uc.prototype.once = function (e, t, n) { + return eVe(this, e, t, n, !0); + }; + uc.prototype.removeListener = function (e, t, n, a) { + var i = Dc ? Dc + e : e; + if (!this._events[i]) return this; + if (!t) return AR(this, i), this; + var s = this._events[i]; + if (s.fn) + s.fn === t && (!a || s.once) && (!n || s.context === n) && AR(this, i); + else { + for (var c = 0, l = [], d = s.length; c < d; c++) + (s[c].fn !== t || (a && !s[c].once) || (n && s[c].context !== n)) && + l.push(s[c]); + l.length ? (this._events[i] = l.length === 1 ? l[0] : l) : AR(this, i); + } + return this; + }; + uc.prototype.removeAllListeners = function (e) { + var t; + return ( + e + ? ((t = Dc ? Dc + e : e), this._events[t] && AR(this, t)) + : ((this._events = new i6()), (this._eventsCount = 0)), + this + ); + }; + uc.prototype.off = uc.prototype.removeListener; + uc.prototype.addListener = uc.prototype.on; + uc.prefixed = Dc; + uc.EventEmitter = uc; + typeof HG < "u" && (HG.exports = uc); + }); + var v2 = N((jG) => { + "use strict"; + _(); + x(); + var efr = Lc(), + tfr = gs(); + function rfr(r) { + return r && r.__esModule ? r : { default: r }; + } + var nfr = rfr(tfr), + kR = class extends nfr.default {}, + zG = class extends kR { + constructor(e) { + super(), + efr._defineProperty(this, "wagmiConnector", void 0), + (this.wagmiConnector = e); + } + async connect(e) { + let t = e?.chainId; + return (await this.wagmiConnector.connect({ chainId: t })).account; + } + disconnect() { + return this.wagmiConnector.disconnect(); + } + isConnected() { + return this.wagmiConnector.isAuthorized(); + } + getAddress() { + return this.wagmiConnector.getAccount(); + } + getSigner() { + return this.wagmiConnector.getSigner(); + } + getProvider() { + return this.wagmiConnector.getProvider(); + } + async switchChain(e) { + if (!this.wagmiConnector.switchChain) + throw new Error("Switch chain not supported"); + await this.wagmiConnector.switchChain(e); + } + }; + jG.TWConnector = kR; + jG.WagmiAdapter = zG; + }); + var k0 = N((SR) => { + "use strict"; + _(); + x(); + var tVe = Lc(), + w2 = wt(), + afr = gs(); + function ifr(r) { + return r && r.__esModule ? r : { default: r }; + } + var sfr = ifr(afr), + ofr = { + id: 42161, + name: "Arbitrum One", + network: "arbitrum", + nativeCurrency: { name: "Ether", symbol: "ETH", decimals: 18 }, + rpcUrls: { + alchemy: { + http: ["https://arb-mainnet.g.alchemy.com/v2"], + webSocket: ["wss://arb-mainnet.g.alchemy.com/v2"], + }, + infura: { + http: ["https://arbitrum-mainnet.infura.io/v3"], + webSocket: ["wss://arbitrum-mainnet.infura.io/ws/v3"], + }, + default: { http: ["https://arb1.arbitrum.io/rpc"] }, + public: { http: ["https://arb1.arbitrum.io/rpc"] }, + }, + blockExplorers: { + etherscan: { name: "Arbiscan", url: "https://arbiscan.io" }, + default: { name: "Arbiscan", url: "https://arbiscan.io" }, + }, + contracts: { + multicall3: { + address: "0xca11bde05977b3631167028862be2a173976ca11", + blockCreated: 7654707, + }, + }, + }, + cfr = { + id: 421613, + name: "Arbitrum Goerli", + network: "arbitrum-goerli", + nativeCurrency: { + name: "Arbitrum Goerli Ether", + symbol: "ETH", + decimals: 18, + }, + rpcUrls: { + alchemy: { + http: ["https://arb-goerli.g.alchemy.com/v2"], + webSocket: ["wss://arb-goerli.g.alchemy.com/v2"], + }, + infura: { + http: ["https://arbitrum-goerli.infura.io/v3"], + webSocket: ["wss://arbitrum-goerli.infura.io/ws/v3"], + }, + default: { http: ["https://goerli-rollup.arbitrum.io/rpc"] }, + public: { http: ["https://goerli-rollup.arbitrum.io/rpc"] }, + }, + blockExplorers: { + etherscan: { name: "Arbiscan", url: "https://goerli.arbiscan.io/" }, + default: { name: "Arbiscan", url: "https://goerli.arbiscan.io/" }, + }, + contracts: { + multicall3: { + address: "0xca11bde05977b3631167028862be2a173976ca11", + blockCreated: 88114, + }, + }, + testnet: !0, + }, + ufr = { + id: 43114, + name: "Avalanche", + network: "avalanche", + nativeCurrency: { decimals: 18, name: "Avalanche", symbol: "AVAX" }, + rpcUrls: { + default: { http: ["https://api.avax.network/ext/bc/C/rpc"] }, + public: { http: ["https://api.avax.network/ext/bc/C/rpc"] }, + }, + blockExplorers: { + etherscan: { name: "SnowTrace", url: "https://snowtrace.io" }, + default: { name: "SnowTrace", url: "https://snowtrace.io" }, + }, + contracts: { + multicall3: { + address: "0xca11bde05977b3631167028862be2a173976ca11", + blockCreated: 11907934, + }, + }, + }, + lfr = { + id: 43113, + name: "Avalanche Fuji", + network: "avalanche-fuji", + nativeCurrency: { + decimals: 18, + name: "Avalanche Fuji", + symbol: "AVAX", + }, + rpcUrls: { + default: { http: ["https://api.avax-test.network/ext/bc/C/rpc"] }, + public: { http: ["https://api.avax-test.network/ext/bc/C/rpc"] }, + }, + blockExplorers: { + etherscan: { name: "SnowTrace", url: "https://testnet.snowtrace.io" }, + default: { name: "SnowTrace", url: "https://testnet.snowtrace.io" }, + }, + contracts: { + multicall3: { + address: "0xca11bde05977b3631167028862be2a173976ca11", + blockCreated: 7096959, + }, + }, + testnet: !0, + }, + dfr = { + id: 56, + name: "BNB Smart Chain", + network: "bsc", + nativeCurrency: { decimals: 18, name: "BNB", symbol: "BNB" }, + rpcUrls: { + default: { http: ["https://rpc.ankr.com/bsc"] }, + public: { http: ["https://rpc.ankr.com/bsc"] }, + }, + blockExplorers: { + etherscan: { name: "BscScan", url: "https://bscscan.com" }, + default: { name: "BscScan", url: "https://bscscan.com" }, + }, + contracts: { + multicall3: { + address: "0xca11bde05977b3631167028862be2a173976ca11", + blockCreated: 15921452, + }, + }, + }, + pfr = { + id: 97, + name: "Binance Smart Chain Testnet", + network: "bsc-testnet", + nativeCurrency: { decimals: 18, name: "BNB", symbol: "tBNB" }, + rpcUrls: { + default: { http: ["https://bsc-testnet.public.blastapi.io"] }, + public: { http: ["https://bsc-testnet.public.blastapi.io"] }, + }, + blockExplorers: { + etherscan: { name: "BscScan", url: "https://testnet.bscscan.com" }, + default: { name: "BscScan", url: "https://testnet.bscscan.com" }, + }, + contracts: { + multicall3: { + address: "0xca11bde05977b3631167028862be2a173976ca11", + blockCreated: 17422483, + }, + }, + testnet: !0, + }, + hfr = { + id: 250, + name: "Fantom", + network: "fantom", + nativeCurrency: { decimals: 18, name: "Fantom", symbol: "FTM" }, + rpcUrls: { + default: { http: ["https://rpc.ankr.com/fantom"] }, + public: { http: ["https://rpc.ankr.com/fantom"] }, + }, + blockExplorers: { + etherscan: { name: "FTMScan", url: "https://ftmscan.com" }, + default: { name: "FTMScan", url: "https://ftmscan.com" }, + }, + contracts: { + multicall3: { + address: "0xca11bde05977b3631167028862be2a173976ca11", + blockCreated: 33001987, + }, + }, + }, + ffr = { + id: 4002, + name: "Fantom Testnet", + network: "fantom-testnet", + nativeCurrency: { decimals: 18, name: "Fantom", symbol: "FTM" }, + rpcUrls: { + default: { http: ["https://rpc.testnet.fantom.network"] }, + public: { http: ["https://rpc.testnet.fantom.network"] }, + }, + blockExplorers: { + etherscan: { name: "FTMScan", url: "https://testnet.ftmscan.com" }, + default: { name: "FTMScan", url: "https://testnet.ftmscan.com" }, + }, + contracts: { + multicall3: { + address: "0xca11bde05977b3631167028862be2a173976ca11", + blockCreated: 8328688, + }, + }, + }, + mfr = { + id: 5, + network: "goerli", + name: "Goerli", + nativeCurrency: { name: "Goerli Ether", symbol: "ETH", decimals: 18 }, + rpcUrls: { + alchemy: { + http: ["https://eth-goerli.g.alchemy.com/v2"], + webSocket: ["wss://eth-goerli.g.alchemy.com/v2"], + }, + infura: { + http: ["https://goerli.infura.io/v3"], + webSocket: ["wss://goerli.infura.io/ws/v3"], + }, + default: { http: ["https://rpc.ankr.com/eth_goerli"] }, + public: { http: ["https://rpc.ankr.com/eth_goerli"] }, + }, + blockExplorers: { + etherscan: { name: "Etherscan", url: "https://goerli.etherscan.io" }, + default: { name: "Etherscan", url: "https://goerli.etherscan.io" }, + }, + contracts: { + ensRegistry: { + address: "0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e", + }, + multicall3: { + address: "0xca11bde05977b3631167028862be2a173976ca11", + blockCreated: 6507670, + }, + }, + testnet: !0, + }, + yfr = { + id: 1, + network: "homestead", + name: "Ethereum", + nativeCurrency: { name: "Ether", symbol: "ETH", decimals: 18 }, + rpcUrls: { + alchemy: { + http: ["https://eth-mainnet.g.alchemy.com/v2"], + webSocket: ["wss://eth-mainnet.g.alchemy.com/v2"], + }, + infura: { + http: ["https://mainnet.infura.io/v3"], + webSocket: ["wss://mainnet.infura.io/ws/v3"], + }, + default: { http: ["https://cloudflare-eth.com"] }, + public: { http: ["https://cloudflare-eth.com"] }, + }, + blockExplorers: { + etherscan: { name: "Etherscan", url: "https://etherscan.io" }, + default: { name: "Etherscan", url: "https://etherscan.io" }, + }, + contracts: { + ensRegistry: { + address: "0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e", + }, + multicall3: { + address: "0xca11bde05977b3631167028862be2a173976ca11", + blockCreated: 14353601, + }, + }, + }, + gfr = { + id: 10, + name: "Optimism", + network: "optimism", + nativeCurrency: { name: "Ether", symbol: "ETH", decimals: 18 }, + rpcUrls: { + alchemy: { + http: ["https://opt-mainnet.g.alchemy.com/v2"], + webSocket: ["wss://opt-mainnet.g.alchemy.com/v2"], + }, + infura: { + http: ["https://optimism-mainnet.infura.io/v3"], + webSocket: ["wss://optimism-mainnet.infura.io/ws/v3"], + }, + default: { http: ["https://mainnet.optimism.io"] }, + public: { http: ["https://mainnet.optimism.io"] }, + }, + blockExplorers: { + etherscan: { + name: "Etherscan", + url: "https://optimistic.etherscan.io", + }, + default: { + name: "Etherscan", + url: "https://optimistic.etherscan.io", + }, + }, + contracts: { + multicall3: { + address: "0xca11bde05977b3631167028862be2a173976ca11", + blockCreated: 4286263, + }, + }, + }, + bfr = { + id: 420, + name: "Optimism Goerli", + network: "optimism-goerli", + nativeCurrency: { name: "Goerli Ether", symbol: "ETH", decimals: 18 }, + rpcUrls: { + alchemy: { + http: ["https://opt-goerli.g.alchemy.com/v2"], + webSocket: ["wss://opt-goerli.g.alchemy.com/v2"], + }, + infura: { + http: ["https://optimism-goerli.infura.io/v3"], + webSocket: ["wss://optimism-goerli.infura.io/ws/v3"], + }, + default: { http: ["https://goerli.optimism.io"] }, + public: { http: ["https://goerli.optimism.io"] }, + }, + blockExplorers: { + etherscan: { + name: "Etherscan", + url: "https://goerli-optimism.etherscan.io", + }, + default: { + name: "Etherscan", + url: "https://goerli-optimism.etherscan.io", + }, + }, + contracts: { + multicall3: { + address: "0xca11bde05977b3631167028862be2a173976ca11", + blockCreated: 49461, + }, + }, + testnet: !0, + }, + vfr = { + id: 137, + name: "Polygon", + network: "matic", + nativeCurrency: { name: "MATIC", symbol: "MATIC", decimals: 18 }, + rpcUrls: { + alchemy: { + http: ["https://polygon-mainnet.g.alchemy.com/v2"], + webSocket: ["wss://polygon-mainnet.g.alchemy.com/v2"], + }, + infura: { + http: ["https://polygon-mainnet.infura.io/v3"], + webSocket: ["wss://polygon-mainnet.infura.io/ws/v3"], + }, + default: { http: ["https://polygon-rpc.com"] }, + public: { http: ["https://polygon-rpc.com"] }, + }, + blockExplorers: { + etherscan: { name: "PolygonScan", url: "https://polygonscan.com" }, + default: { name: "PolygonScan", url: "https://polygonscan.com" }, + }, + contracts: { + multicall3: { + address: "0xca11bde05977b3631167028862be2a173976ca11", + blockCreated: 25770160, + }, + }, + }, + wfr = { + id: 80001, + name: "Polygon Mumbai", + network: "maticmum", + nativeCurrency: { name: "MATIC", symbol: "MATIC", decimals: 18 }, + rpcUrls: { + alchemy: { + http: ["https://polygon-mumbai.g.alchemy.com/v2"], + webSocket: ["wss://polygon-mumbai.g.alchemy.com/v2"], + }, + infura: { + http: ["https://polygon-mumbai.infura.io/v3"], + webSocket: ["wss://polygon-mumbai.infura.io/ws/v3"], + }, + default: { http: ["https://matic-mumbai.chainstacklabs.com"] }, + public: { http: ["https://matic-mumbai.chainstacklabs.com"] }, + }, + blockExplorers: { + etherscan: { + name: "PolygonScan", + url: "https://mumbai.polygonscan.com", + }, + default: { + name: "PolygonScan", + url: "https://mumbai.polygonscan.com", + }, + }, + contracts: { + multicall3: { + address: "0xca11bde05977b3631167028862be2a173976ca11", + blockCreated: 25770160, + }, + }, + testnet: !0, + }, + Sr; + (function (r) { + (r[(r.Mainnet = 1)] = "Mainnet"), + (r[(r.Goerli = 5)] = "Goerli"), + (r[(r.Polygon = 137)] = "Polygon"), + (r[(r.Mumbai = 80001)] = "Mumbai"), + (r[(r.Fantom = 250)] = "Fantom"), + (r[(r.FantomTestnet = 4002)] = "FantomTestnet"), + (r[(r.Avalanche = 43114)] = "Avalanche"), + (r[(r.AvalancheFujiTestnet = 43113)] = "AvalancheFujiTestnet"), + (r[(r.Optimism = 10)] = "Optimism"), + (r[(r.OptimismGoerli = 420)] = "OptimismGoerli"), + (r[(r.Arbitrum = 42161)] = "Arbitrum"), + (r[(r.ArbitrumGoerli = 421613)] = "ArbitrumGoerli"), + (r[(r.BinanceSmartChainMainnet = 56)] = "BinanceSmartChainMainnet"), + (r[(r.BinanceSmartChainTestnet = 97)] = "BinanceSmartChainTestnet"); + })(Sr || (Sr = {})); + Sr.Mainnet, + Sr.Goerli, + Sr.Polygon, + Sr.Mumbai, + Sr.Fantom, + Sr.FantomTestnet, + Sr.Avalanche, + Sr.AvalancheFujiTestnet, + Sr.Optimism, + Sr.OptimismGoerli, + Sr.Arbitrum, + Sr.ArbitrumGoerli, + Sr.BinanceSmartChainMainnet, + Sr.BinanceSmartChainTestnet; + var _fr = + "c6634ad2d97b74baf15ff556016830c251050e6c36b9da508ce3ec80095d3dc1"; + function xfr(r) { + switch (r) { + case Sr.Mainnet: + return "mainnet"; + case Sr.Goerli: + return "goerli"; + case Sr.Polygon: + return "polygon"; + case Sr.Mumbai: + return "mumbai"; + case Sr.Avalanche: + return "avalanche"; + case Sr.AvalancheFujiTestnet: + return "avalanche-fuji"; + case Sr.Fantom: + return "fantom"; + case Sr.FantomTestnet: + return "fantom-testnet"; + case Sr.Arbitrum: + return "arbitrum"; + case Sr.ArbitrumGoerli: + return "arbitrum-goerli"; + case Sr.Optimism: + return "optimism"; + case Sr.OptimismGoerli: + return "optimism-goerli"; + case Sr.BinanceSmartChainMainnet: + return "bsc"; + case Sr.BinanceSmartChainTestnet: + return "bsc-testnet"; + default: + throw new Error("Unsupported chain id"); + } + } + function Tfr(r) { + return `https://${xfr(r)}.rpc.thirdweb.com/${_fr}`; + } + function xu(r) { + let e = Tfr(r.id); + return { + ...r, + rpcUrls: { + ...r.rpcUrls, + default: { + ...r.rpcUrls.default, + http: [e, ...r.rpcUrls.default.http], + }, + public: { + ...r.rpcUrls.public, + http: [e, ...(r.rpcUrls.public?.http || [])], + }, + }, + }; + } + var rVe = { + [Sr.Mainnet]: xu(yfr), + [Sr.Goerli]: xu(mfr), + [Sr.Polygon]: xu(vfr), + [Sr.Mumbai]: xu(wfr), + [Sr.Avalanche]: xu(ufr), + [Sr.AvalancheFujiTestnet]: xu(lfr), + [Sr.Fantom]: xu(hfr), + [Sr.FantomTestnet]: xu(ffr), + [Sr.Arbitrum]: xu(ofr), + [Sr.ArbitrumGoerli]: xu(cfr), + [Sr.Optimism]: xu(gfr), + [Sr.OptimismGoerli]: xu(bfr), + [Sr.BinanceSmartChainMainnet]: xu(dfr), + [Sr.BinanceSmartChainTestnet]: xu(pfr), + }, + Efr = Object.values(rVe), + Cfr = [ + "function isValidSignature(bytes32 _message, bytes _signature) public view returns (bytes4)", + ], + Ifr = "0x1626ba7e", + nVe = async (r, e, t, n) => { + let a = rVe[n]?.rpcUrls.default.http[0]; + if (!a) return !1; + let i = new w2.ethers.providers.JsonRpcProvider(a), + s = new w2.ethers.Contract(t, Cfr, i), + c = w2.ethers.utils.hashMessage(r); + try { + return (await s.isValidSignature(c, e)) === Ifr; + } catch { + return !1; + } + }, + KG = class extends sfr.default { + constructor() { + super(...arguments), + tVe._defineProperty(this, "type", "evm"), + tVe._defineProperty(this, "signer", void 0); + } + async getAddress() { + return (await this.getCachedSigner()).getAddress(); + } + async getChainId() { + return (await this.getCachedSigner()).getChainId(); + } + async signMessage(e) { + return await (await this.getCachedSigner()).signMessage(e); + } + async verifySignature(e, t, n, a) { + let i = w2.ethers.utils.hashMessage(e), + s = w2.ethers.utils.arrayify(i); + if (w2.ethers.utils.recoverAddress(s, t) === n) return !0; + if (a !== void 0) + try { + return await nVe(e, t, n, a || 1); + } catch {} + return !1; + } + async getCachedSigner() { + if (this.signer) return this.signer; + if (((this.signer = await this.getSigner()), !this.signer)) + throw new Error("Unable to get a signer!"); + return this.signer; + } + }; + SR.AbstractWallet = KG; + SR.checkContractWalletSignature = nVe; + SR.thirdwebChains = Efr; + }); + var bs = N((aVe, VG) => { + _(); + x(); + (function (r) { + if (typeof aVe == "object" && typeof VG < "u") VG.exports = r(); + else if (typeof define == "function" && define.amd) define([], r); + else { + var e; + typeof window < "u" + ? (e = window) + : typeof M < "u" + ? (e = M) + : typeof self < "u" + ? (e = self) + : (e = this), + (e.localforage = r()); + } + })(function () { + var r, e, t; + return (function n(a, i, s) { + function c(m, w) { + if (!i[m]) { + if (!a[m]) { + var C = typeof yp == "function" && yp; + if (!w && C) return C(m, !0); + if (l) return l(m, !0); + var I = new Error("Cannot find module '" + m + "'"); + throw ((I.code = "MODULE_NOT_FOUND"), I); + } + var k = (i[m] = { exports: {} }); + a[m][0].call( + k.exports, + function (O) { + var D = a[m][1][O]; + return c(D || O); + }, + k, + k.exports, + n, + a, + i, + s + ); + } + return i[m].exports; + } + for (var l = typeof yp == "function" && yp, d = 0; d < s.length; d++) + c(s[d]); + return c; + })( + { + 1: [ + function (n, a, i) { + (function (s) { + "use strict"; + var c = s.MutationObserver || s.WebKitMutationObserver, + l; + if (c) { + var d = 0, + m = new c(O), + w = s.document.createTextNode(""); + m.observe(w, { characterData: !0 }), + (l = function () { + w.data = d = ++d % 2; + }); + } else if (!s.setImmediate && typeof s.MessageChannel < "u") { + var C = new s.MessageChannel(); + (C.port1.onmessage = O), + (l = function () { + C.port2.postMessage(0); + }); + } else + "document" in s && + "onreadystatechange" in s.document.createElement("script") + ? (l = function () { + var W = s.document.createElement("script"); + (W.onreadystatechange = function () { + O(), + (W.onreadystatechange = null), + W.parentNode.removeChild(W), + (W = null); + }), + s.document.documentElement.appendChild(W); + }) + : (l = function () { + setTimeout(O, 0); + }); + var I, + k = []; + function O() { + I = !0; + for (var W, H, j = k.length; j; ) { + for (H = k, k = [], W = -1; ++W < j; ) H[W](); + j = k.length; + } + I = !1; + } + a.exports = D; + function D(W) { + k.push(W) === 1 && !I && l(); + } + }.call( + this, + typeof M < "u" + ? M + : typeof self < "u" + ? self + : typeof window < "u" + ? window + : {} + )); + }, + {}, + ], + 2: [ + function (n, a, i) { + "use strict"; + var s = n(1); + function c() {} + var l = {}, + d = ["REJECTED"], + m = ["FULFILLED"], + w = ["PENDING"]; + a.exports = C; + function C($) { + if (typeof $ != "function") + throw new TypeError("resolver must be a function"); + (this.state = w), + (this.queue = []), + (this.outcome = void 0), + $ !== c && D(this, $); + } + (C.prototype.catch = function ($) { + return this.then(null, $); + }), + (C.prototype.then = function ($, ae) { + if ( + (typeof $ != "function" && this.state === m) || + (typeof ae != "function" && this.state === d) + ) + return this; + var Y = new this.constructor(c); + if (this.state !== w) { + var K = this.state === m ? $ : ae; + k(Y, K, this.outcome); + } else this.queue.push(new I(Y, $, ae)); + return Y; + }); + function I($, ae, Y) { + (this.promise = $), + typeof ae == "function" && + ((this.onFulfilled = ae), + (this.callFulfilled = this.otherCallFulfilled)), + typeof Y == "function" && + ((this.onRejected = Y), + (this.callRejected = this.otherCallRejected)); + } + (I.prototype.callFulfilled = function ($) { + l.resolve(this.promise, $); + }), + (I.prototype.otherCallFulfilled = function ($) { + k(this.promise, this.onFulfilled, $); + }), + (I.prototype.callRejected = function ($) { + l.reject(this.promise, $); + }), + (I.prototype.otherCallRejected = function ($) { + k(this.promise, this.onRejected, $); + }); + function k($, ae, Y) { + s(function () { + var K; + try { + K = ae(Y); + } catch (g) { + return l.reject($, g); + } + K === $ + ? l.reject( + $, + new TypeError("Cannot resolve promise with itself") + ) + : l.resolve($, K); + }); + } + (l.resolve = function ($, ae) { + var Y = W(O, ae); + if (Y.status === "error") return l.reject($, Y.value); + var K = Y.value; + if (K) D($, K); + else { + ($.state = m), ($.outcome = ae); + for (var g = -1, o = $.queue.length; ++g < o; ) + $.queue[g].callFulfilled(ae); + } + return $; + }), + (l.reject = function ($, ae) { + ($.state = d), ($.outcome = ae); + for (var Y = -1, K = $.queue.length; ++Y < K; ) + $.queue[Y].callRejected(ae); + return $; + }); + function O($) { + var ae = $ && $.then; + if ( + $ && + (typeof $ == "object" || typeof $ == "function") && + typeof ae == "function" + ) + return function () { + ae.apply($, arguments); + }; + } + function D($, ae) { + var Y = !1; + function K(y) { + Y || ((Y = !0), l.reject($, y)); + } + function g(y) { + Y || ((Y = !0), l.resolve($, y)); + } + function o() { + ae(g, K); + } + var p = W(o); + p.status === "error" && K(p.value); + } + function W($, ae) { + var Y = {}; + try { + (Y.value = $(ae)), (Y.status = "success"); + } catch (K) { + (Y.status = "error"), (Y.value = K); + } + return Y; + } + C.resolve = H; + function H($) { + return $ instanceof this ? $ : l.resolve(new this(c), $); + } + C.reject = j; + function j($) { + var ae = new this(c); + return l.reject(ae, $); + } + C.all = V; + function V($) { + var ae = this; + if (Object.prototype.toString.call($) !== "[object Array]") + return this.reject(new TypeError("must be an array")); + var Y = $.length, + K = !1; + if (!Y) return this.resolve([]); + for ( + var g = new Array(Y), o = 0, p = -1, y = new this(c); + ++p < Y; + + ) + h($[p], p); + return y; + function h(b, T) { + ae.resolve(b).then(E, function (f) { + K || ((K = !0), l.reject(y, f)); + }); + function E(f) { + (g[T] = f), ++o === Y && !K && ((K = !0), l.resolve(y, g)); + } + } + } + C.race = te; + function te($) { + var ae = this; + if (Object.prototype.toString.call($) !== "[object Array]") + return this.reject(new TypeError("must be an array")); + var Y = $.length, + K = !1; + if (!Y) return this.resolve([]); + for (var g = -1, o = new this(c); ++g < Y; ) p($[g]); + return o; + function p(y) { + ae.resolve(y).then( + function (h) { + K || ((K = !0), l.resolve(o, h)); + }, + function (h) { + K || ((K = !0), l.reject(o, h)); + } + ); + } + } + }, + { 1: 1 }, + ], + 3: [ + function (n, a, i) { + (function (s) { + "use strict"; + typeof s.Promise != "function" && (s.Promise = n(2)); + }.call( + this, + typeof M < "u" + ? M + : typeof self < "u" + ? self + : typeof window < "u" + ? window + : {} + )); + }, + { 2: 2 }, + ], + 4: [ + function (n, a, i) { + "use strict"; + var s = + typeof Symbol == "function" && + typeof Symbol.iterator == "symbol" + ? function (oe) { + return typeof oe; + } + : function (oe) { + return oe && + typeof Symbol == "function" && + oe.constructor === Symbol && + oe !== Symbol.prototype + ? "symbol" + : typeof oe; + }; + function c(oe, _e) { + if (!(oe instanceof _e)) + throw new TypeError("Cannot call a class as a function"); + } + function l() { + try { + if (typeof indexedDB < "u") return indexedDB; + if (typeof webkitIndexedDB < "u") return webkitIndexedDB; + if (typeof mozIndexedDB < "u") return mozIndexedDB; + if (typeof OIndexedDB < "u") return OIndexedDB; + if (typeof msIndexedDB < "u") return msIndexedDB; + } catch { + return; + } + } + var d = l(); + function m() { + try { + if (!d || !d.open) return !1; + var oe = + typeof openDatabase < "u" && + /(Safari|iPhone|iPad|iPod)/.test(navigator.userAgent) && + !/Chrome/.test(navigator.userAgent) && + !/BlackBerry/.test(navigator.platform), + _e = + typeof fetch == "function" && + fetch.toString().indexOf("[native code") !== -1; + return ( + (!oe || _e) && + typeof indexedDB < "u" && + typeof IDBKeyRange < "u" + ); + } catch { + return !1; + } + } + function w(oe, _e) { + (oe = oe || []), (_e = _e || {}); + try { + return new Blob(oe, _e); + } catch (re) { + if (re.name !== "TypeError") throw re; + for ( + var z = + typeof BlobBuilder < "u" + ? BlobBuilder + : typeof MSBlobBuilder < "u" + ? MSBlobBuilder + : typeof MozBlobBuilder < "u" + ? MozBlobBuilder + : WebKitBlobBuilder, + J = new z(), + ee = 0; + ee < oe.length; + ee += 1 + ) + J.append(oe[ee]); + return J.getBlob(_e.type); + } + } + typeof Promise > "u" && n(3); + var C = Promise; + function I(oe, _e) { + _e && + oe.then( + function (z) { + _e(null, z); + }, + function (z) { + _e(z); + } + ); + } + function k(oe, _e, z) { + typeof _e == "function" && oe.then(_e), + typeof z == "function" && oe.catch(z); + } + function O(oe) { + return ( + typeof oe != "string" && + (console.warn( + oe + " used as a key, but it is not a string." + ), + (oe = String(oe))), + oe + ); + } + function D() { + if ( + arguments.length && + typeof arguments[arguments.length - 1] == "function" + ) + return arguments[arguments.length - 1]; + } + var W = "local-forage-detect-blob-support", + H = void 0, + j = {}, + V = Object.prototype.toString, + te = "readonly", + $ = "readwrite"; + function ae(oe) { + for ( + var _e = oe.length, + z = new ArrayBuffer(_e), + J = new Uint8Array(z), + ee = 0; + ee < _e; + ee++ + ) + J[ee] = oe.charCodeAt(ee); + return z; + } + function Y(oe) { + return new C(function (_e) { + var z = oe.transaction(W, $), + J = w([""]); + z.objectStore(W).put(J, "key"), + (z.onabort = function (ee) { + ee.preventDefault(), ee.stopPropagation(), _e(!1); + }), + (z.oncomplete = function () { + var ee = navigator.userAgent.match(/Chrome\/(\d+)/), + re = navigator.userAgent.match(/Edge\//); + _e(re || !ee || parseInt(ee[1], 10) >= 43); + }); + }).catch(function () { + return !1; + }); + } + function K(oe) { + return typeof H == "boolean" + ? C.resolve(H) + : Y(oe).then(function (_e) { + return (H = _e), H; + }); + } + function g(oe) { + var _e = j[oe.name], + z = {}; + (z.promise = new C(function (J, ee) { + (z.resolve = J), (z.reject = ee); + })), + _e.deferredOperations.push(z), + _e.dbReady + ? (_e.dbReady = _e.dbReady.then(function () { + return z.promise; + })) + : (_e.dbReady = z.promise); + } + function o(oe) { + var _e = j[oe.name], + z = _e.deferredOperations.pop(); + if (z) return z.resolve(), z.promise; + } + function p(oe, _e) { + var z = j[oe.name], + J = z.deferredOperations.pop(); + if (J) return J.reject(_e), J.promise; + } + function y(oe, _e) { + return new C(function (z, J) { + if (((j[oe.name] = j[oe.name] || L()), oe.db)) + if (_e) g(oe), oe.db.close(); + else return z(oe.db); + var ee = [oe.name]; + _e && ee.push(oe.version); + var re = d.open.apply(d, ee); + _e && + (re.onupgradeneeded = function (ce) { + var he = re.result; + try { + he.createObjectStore(oe.storeName), + ce.oldVersion <= 1 && he.createObjectStore(W); + } catch (Ce) { + if (Ce.name === "ConstraintError") + console.warn( + 'The database "' + + oe.name + + '" has been upgraded from version ' + + ce.oldVersion + + " to version " + + ce.newVersion + + ', but the storage "' + + oe.storeName + + '" already exists.' + ); + else throw Ce; + } + }), + (re.onerror = function (ce) { + ce.preventDefault(), J(re.error); + }), + (re.onsuccess = function () { + var ce = re.result; + (ce.onversionchange = function (he) { + he.target.close(); + }), + z(ce), + o(oe); + }); + }); + } + function h(oe) { + return y(oe, !1); + } + function b(oe) { + return y(oe, !0); + } + function T(oe, _e) { + if (!oe.db) return !0; + var z = !oe.db.objectStoreNames.contains(oe.storeName), + J = oe.version < oe.db.version, + ee = oe.version > oe.db.version; + if ( + (J && + (oe.version !== _e && + console.warn( + 'The database "' + + oe.name + + `" can't be downgraded from version ` + + oe.db.version + + " to version " + + oe.version + + "." + ), + (oe.version = oe.db.version)), + ee || z) + ) { + if (z) { + var re = oe.db.version + 1; + re > oe.version && (oe.version = re); + } + return !0; + } + return !1; + } + function E(oe) { + return new C(function (_e, z) { + var J = new FileReader(); + (J.onerror = z), + (J.onloadend = function (ee) { + var re = btoa(ee.target.result || ""); + _e({ + __local_forage_encoded_blob: !0, + data: re, + type: oe.type, + }); + }), + J.readAsBinaryString(oe); + }); + } + function f(oe) { + var _e = ae(atob(oe.data)); + return w([_e], { type: oe.type }); + } + function u(oe) { + return oe && oe.__local_forage_encoded_blob; + } + function v(oe) { + var _e = this, + z = _e._initReady().then(function () { + var J = j[_e._dbInfo.name]; + if (J && J.dbReady) return J.dbReady; + }); + return k(z, oe, oe), z; + } + function R(oe) { + g(oe); + for ( + var _e = j[oe.name], z = _e.forages, J = 0; + J < z.length; + J++ + ) { + var ee = z[J]; + ee._dbInfo.db && + (ee._dbInfo.db.close(), (ee._dbInfo.db = null)); + } + return ( + (oe.db = null), + h(oe) + .then(function (re) { + return (oe.db = re), T(oe) ? b(oe) : re; + }) + .then(function (re) { + oe.db = _e.db = re; + for (var ce = 0; ce < z.length; ce++) + z[ce]._dbInfo.db = re; + }) + .catch(function (re) { + throw (p(oe, re), re); + }) + ); + } + function A(oe, _e, z, J) { + J === void 0 && (J = 1); + try { + var ee = oe.db.transaction(oe.storeName, _e); + z(null, ee); + } catch (re) { + if ( + J > 0 && + (!oe.db || + re.name === "InvalidStateError" || + re.name === "NotFoundError") + ) + return C.resolve() + .then(function () { + if ( + !oe.db || + (re.name === "NotFoundError" && + !oe.db.objectStoreNames.contains(oe.storeName) && + oe.version <= oe.db.version) + ) + return ( + oe.db && (oe.version = oe.db.version + 1), b(oe) + ); + }) + .then(function () { + return R(oe).then(function () { + A(oe, _e, z, J - 1); + }); + }) + .catch(z); + z(re); + } + } + function L() { + return { + forages: [], + db: null, + dbReady: null, + deferredOperations: [], + }; + } + function G(oe) { + var _e = this, + z = { db: null }; + if (oe) for (var J in oe) z[J] = oe[J]; + var ee = j[z.name]; + ee || ((ee = L()), (j[z.name] = ee)), + ee.forages.push(_e), + _e._initReady || ((_e._initReady = _e.ready), (_e.ready = v)); + var re = []; + function ce() { + return C.resolve(); + } + for (var he = 0; he < ee.forages.length; he++) { + var Ce = ee.forages[he]; + Ce !== _e && re.push(Ce._initReady().catch(ce)); + } + var Fe = ee.forages.slice(0); + return C.all(re) + .then(function () { + return (z.db = ee.db), h(z); + }) + .then(function (Ve) { + return ( + (z.db = Ve), T(z, _e._defaultConfig.version) ? b(z) : Ve + ); + }) + .then(function (Ve) { + (z.db = ee.db = Ve), (_e._dbInfo = z); + for (var st = 0; st < Fe.length; st++) { + var ct = Fe[st]; + ct !== _e && + ((ct._dbInfo.db = z.db), + (ct._dbInfo.version = z.version)); + } + }); + } + function U(oe, _e) { + var z = this; + oe = O(oe); + var J = new C(function (ee, re) { + z.ready() + .then(function () { + A(z._dbInfo, te, function (ce, he) { + if (ce) return re(ce); + try { + var Ce = he.objectStore(z._dbInfo.storeName), + Fe = Ce.get(oe); + (Fe.onsuccess = function () { + var Ve = Fe.result; + Ve === void 0 && (Ve = null), + u(Ve) && (Ve = f(Ve)), + ee(Ve); + }), + (Fe.onerror = function () { + re(Fe.error); + }); + } catch (Ve) { + re(Ve); + } + }); + }) + .catch(re); + }); + return I(J, _e), J; + } + function Z(oe, _e) { + var z = this, + J = new C(function (ee, re) { + z.ready() + .then(function () { + A(z._dbInfo, te, function (ce, he) { + if (ce) return re(ce); + try { + var Ce = he.objectStore(z._dbInfo.storeName), + Fe = Ce.openCursor(), + Ve = 1; + (Fe.onsuccess = function () { + var st = Fe.result; + if (st) { + var ct = st.value; + u(ct) && (ct = f(ct)); + var gt = oe(ct, st.key, Ve++); + gt !== void 0 ? ee(gt) : st.continue(); + } else ee(); + }), + (Fe.onerror = function () { + re(Fe.error); + }); + } catch (st) { + re(st); + } + }); + }) + .catch(re); + }); + return I(J, _e), J; + } + function de(oe, _e, z) { + var J = this; + oe = O(oe); + var ee = new C(function (re, ce) { + var he; + J.ready() + .then(function () { + return ( + (he = J._dbInfo), + V.call(_e) === "[object Blob]" + ? K(he.db).then(function (Ce) { + return Ce ? _e : E(_e); + }) + : _e + ); + }) + .then(function (Ce) { + A(J._dbInfo, $, function (Fe, Ve) { + if (Fe) return ce(Fe); + try { + var st = Ve.objectStore(J._dbInfo.storeName); + Ce === null && (Ce = void 0); + var ct = st.put(Ce, oe); + (Ve.oncomplete = function () { + Ce === void 0 && (Ce = null), re(Ce); + }), + (Ve.onabort = Ve.onerror = + function () { + var gt = ct.error + ? ct.error + : ct.transaction.error; + ce(gt); + }); + } catch (gt) { + ce(gt); + } + }); + }) + .catch(ce); + }); + return I(ee, z), ee; + } + function ne(oe, _e) { + var z = this; + oe = O(oe); + var J = new C(function (ee, re) { + z.ready() + .then(function () { + A(z._dbInfo, $, function (ce, he) { + if (ce) return re(ce); + try { + var Ce = he.objectStore(z._dbInfo.storeName), + Fe = Ce.delete(oe); + (he.oncomplete = function () { + ee(); + }), + (he.onerror = function () { + re(Fe.error); + }), + (he.onabort = function () { + var Ve = Fe.error + ? Fe.error + : Fe.transaction.error; + re(Ve); + }); + } catch (Ve) { + re(Ve); + } + }); + }) + .catch(re); + }); + return I(J, _e), J; + } + function pe(oe) { + var _e = this, + z = new C(function (J, ee) { + _e.ready() + .then(function () { + A(_e._dbInfo, $, function (re, ce) { + if (re) return ee(re); + try { + var he = ce.objectStore(_e._dbInfo.storeName), + Ce = he.clear(); + (ce.oncomplete = function () { + J(); + }), + (ce.onabort = ce.onerror = + function () { + var Fe = Ce.error + ? Ce.error + : Ce.transaction.error; + ee(Fe); + }); + } catch (Fe) { + ee(Fe); + } + }); + }) + .catch(ee); + }); + return I(z, oe), z; + } + function lt(oe) { + var _e = this, + z = new C(function (J, ee) { + _e.ready() + .then(function () { + A(_e._dbInfo, te, function (re, ce) { + if (re) return ee(re); + try { + var he = ce.objectStore(_e._dbInfo.storeName), + Ce = he.count(); + (Ce.onsuccess = function () { + J(Ce.result); + }), + (Ce.onerror = function () { + ee(Ce.error); + }); + } catch (Fe) { + ee(Fe); + } + }); + }) + .catch(ee); + }); + return I(z, oe), z; + } + function fe(oe, _e) { + var z = this, + J = new C(function (ee, re) { + if (oe < 0) { + ee(null); + return; + } + z.ready() + .then(function () { + A(z._dbInfo, te, function (ce, he) { + if (ce) return re(ce); + try { + var Ce = he.objectStore(z._dbInfo.storeName), + Fe = !1, + Ve = Ce.openKeyCursor(); + (Ve.onsuccess = function () { + var st = Ve.result; + if (!st) { + ee(null); + return; + } + oe === 0 || Fe + ? ee(st.key) + : ((Fe = !0), st.advance(oe)); + }), + (Ve.onerror = function () { + re(Ve.error); + }); + } catch (st) { + re(st); + } + }); + }) + .catch(re); + }); + return I(J, _e), J; + } + function ve(oe) { + var _e = this, + z = new C(function (J, ee) { + _e.ready() + .then(function () { + A(_e._dbInfo, te, function (re, ce) { + if (re) return ee(re); + try { + var he = ce.objectStore(_e._dbInfo.storeName), + Ce = he.openKeyCursor(), + Fe = []; + (Ce.onsuccess = function () { + var Ve = Ce.result; + if (!Ve) { + J(Fe); + return; + } + Fe.push(Ve.key), Ve.continue(); + }), + (Ce.onerror = function () { + ee(Ce.error); + }); + } catch (Ve) { + ee(Ve); + } + }); + }) + .catch(ee); + }); + return I(z, oe), z; + } + function vt(oe, _e) { + _e = D.apply(this, arguments); + var z = this.config(); + (oe = (typeof oe != "function" && oe) || {}), + oe.name || + ((oe.name = oe.name || z.name), + (oe.storeName = oe.storeName || z.storeName)); + var J = this, + ee; + if (!oe.name) ee = C.reject("Invalid arguments"); + else { + var re = oe.name === z.name && J._dbInfo.db, + ce = re + ? C.resolve(J._dbInfo.db) + : h(oe).then(function (he) { + var Ce = j[oe.name], + Fe = Ce.forages; + Ce.db = he; + for (var Ve = 0; Ve < Fe.length; Ve++) + Fe[Ve]._dbInfo.db = he; + return he; + }); + oe.storeName + ? (ee = ce.then(function (he) { + if (!!he.objectStoreNames.contains(oe.storeName)) { + var Ce = he.version + 1; + g(oe); + var Fe = j[oe.name], + Ve = Fe.forages; + he.close(); + for (var st = 0; st < Ve.length; st++) { + var ct = Ve[st]; + (ct._dbInfo.db = null), (ct._dbInfo.version = Ce); + } + var gt = new C(function (At, lr) { + var nr = d.open(oe.name, Ce); + (nr.onerror = function (Cn) { + var Za = nr.result; + Za.close(), lr(Cn); + }), + (nr.onupgradeneeded = function () { + var Cn = nr.result; + Cn.deleteObjectStore(oe.storeName); + }), + (nr.onsuccess = function () { + var Cn = nr.result; + Cn.close(), At(Cn); + }); + }); + return gt + .then(function (At) { + Fe.db = At; + for (var lr = 0; lr < Ve.length; lr++) { + var nr = Ve[lr]; + (nr._dbInfo.db = At), o(nr._dbInfo); + } + }) + .catch(function (At) { + throw ( + ((p(oe, At) || C.resolve()).catch( + function () {} + ), + At) + ); + }); + } + })) + : (ee = ce.then(function (he) { + g(oe); + var Ce = j[oe.name], + Fe = Ce.forages; + he.close(); + for (var Ve = 0; Ve < Fe.length; Ve++) { + var st = Fe[Ve]; + st._dbInfo.db = null; + } + var ct = new C(function (gt, At) { + var lr = d.deleteDatabase(oe.name); + (lr.onerror = function () { + var nr = lr.result; + nr && nr.close(), At(lr.error); + }), + (lr.onblocked = function () { + console.warn( + 'dropInstance blocked for database "' + + oe.name + + '" until all open connections are closed' + ); + }), + (lr.onsuccess = function () { + var nr = lr.result; + nr && nr.close(), gt(nr); + }); + }); + return ct + .then(function (gt) { + Ce.db = gt; + for (var At = 0; At < Fe.length; At++) { + var lr = Fe[At]; + o(lr._dbInfo); + } + }) + .catch(function (gt) { + throw ( + ((p(oe, gt) || C.resolve()).catch(function () {}), + gt) + ); + }); + })); + } + return I(ee, _e), ee; + } + var we = { + _driver: "asyncStorage", + _initStorage: G, + _support: m(), + iterate: Z, + getItem: U, + setItem: de, + removeItem: ne, + clear: pe, + length: lt, + key: fe, + keys: ve, + dropInstance: vt, + }; + function Ne() { + return typeof openDatabase == "function"; + } + var kt = + "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", + Le = "~~local_forage_type~", + ze = /^~~local_forage_type~([^~]+)~/, + It = "__lfsc__:", + Se = It.length, + Ke = "arbf", + Et = "blob", + Me = "si08", + Ge = "ui08", + Dt = "uic8", + De = "si16", + Ze = "si32", + Wt = "ur16", + ke = "ui32", + $e = "fl32", + Ht = "fl64", + Pe = Se + Ke.length, + Je = Object.prototype.toString; + function zt(oe) { + var _e = oe.length * 0.75, + z = oe.length, + J, + ee = 0, + re, + ce, + he, + Ce; + oe[oe.length - 1] === "=" && + (_e--, oe[oe.length - 2] === "=" && _e--); + var Fe = new ArrayBuffer(_e), + Ve = new Uint8Array(Fe); + for (J = 0; J < z; J += 4) + (re = kt.indexOf(oe[J])), + (ce = kt.indexOf(oe[J + 1])), + (he = kt.indexOf(oe[J + 2])), + (Ce = kt.indexOf(oe[J + 3])), + (Ve[ee++] = (re << 2) | (ce >> 4)), + (Ve[ee++] = ((ce & 15) << 4) | (he >> 2)), + (Ve[ee++] = ((he & 3) << 6) | (Ce & 63)); + return Fe; + } + function Re(oe) { + var _e = new Uint8Array(oe), + z = "", + J; + for (J = 0; J < _e.length; J += 3) + (z += kt[_e[J] >> 2]), + (z += kt[((_e[J] & 3) << 4) | (_e[J + 1] >> 4)]), + (z += kt[((_e[J + 1] & 15) << 2) | (_e[J + 2] >> 6)]), + (z += kt[_e[J + 2] & 63]); + return ( + _e.length % 3 === 2 + ? (z = z.substring(0, z.length - 1) + "=") + : _e.length % 3 === 1 && + (z = z.substring(0, z.length - 2) + "=="), + z + ); + } + function Qe(oe, _e) { + var z = ""; + if ( + (oe && (z = Je.call(oe)), + oe && + (z === "[object ArrayBuffer]" || + (oe.buffer && + Je.call(oe.buffer) === "[object ArrayBuffer]"))) + ) { + var J, + ee = It; + oe instanceof ArrayBuffer + ? ((J = oe), (ee += Ke)) + : ((J = oe.buffer), + z === "[object Int8Array]" + ? (ee += Me) + : z === "[object Uint8Array]" + ? (ee += Ge) + : z === "[object Uint8ClampedArray]" + ? (ee += Dt) + : z === "[object Int16Array]" + ? (ee += De) + : z === "[object Uint16Array]" + ? (ee += Wt) + : z === "[object Int32Array]" + ? (ee += Ze) + : z === "[object Uint32Array]" + ? (ee += ke) + : z === "[object Float32Array]" + ? (ee += $e) + : z === "[object Float64Array]" + ? (ee += Ht) + : _e(new Error("Failed to get type for BinaryArray"))), + _e(ee + Re(J)); + } else if (z === "[object Blob]") { + var re = new FileReader(); + (re.onload = function () { + var ce = Le + oe.type + "~" + Re(this.result); + _e(It + Et + ce); + }), + re.readAsArrayBuffer(oe); + } else + try { + _e(JSON.stringify(oe)); + } catch (ce) { + console.error( + "Couldn't convert value into a JSON string: ", + oe + ), + _e(null, ce); + } + } + function jt(oe) { + if (oe.substring(0, Se) !== It) return JSON.parse(oe); + var _e = oe.substring(Pe), + z = oe.substring(Se, Pe), + J; + if (z === Et && ze.test(_e)) { + var ee = _e.match(ze); + (J = ee[1]), (_e = _e.substring(ee[0].length)); + } + var re = zt(_e); + switch (z) { + case Ke: + return re; + case Et: + return w([re], { type: J }); + case Me: + return new Int8Array(re); + case Ge: + return new Uint8Array(re); + case Dt: + return new Uint8ClampedArray(re); + case De: + return new Int16Array(re); + case Wt: + return new Uint16Array(re); + case Ze: + return new Int32Array(re); + case ke: + return new Uint32Array(re); + case $e: + return new Float32Array(re); + case Ht: + return new Float64Array(re); + default: + throw new Error("Unkown type: " + z); + } + } + var Be = { + serialize: Qe, + deserialize: jt, + stringToBuffer: zt, + bufferToString: Re, + }; + function Xe(oe, _e, z, J) { + oe.executeSql( + "CREATE TABLE IF NOT EXISTS " + + _e.storeName + + " (id INTEGER PRIMARY KEY, key unique, value)", + [], + z, + J + ); + } + function Ut(oe) { + var _e = this, + z = { db: null }; + if (oe) + for (var J in oe) + z[J] = typeof oe[J] != "string" ? oe[J].toString() : oe[J]; + var ee = new C(function (re, ce) { + try { + z.db = openDatabase( + z.name, + String(z.version), + z.description, + z.size + ); + } catch (he) { + return ce(he); + } + z.db.transaction(function (he) { + Xe( + he, + z, + function () { + (_e._dbInfo = z), re(); + }, + function (Ce, Fe) { + ce(Fe); + } + ); + }, ce); + }); + return (z.serializer = Be), ee; + } + function Ae(oe, _e, z, J, ee, re) { + oe.executeSql( + z, + J, + ee, + function (ce, he) { + he.code === he.SYNTAX_ERR + ? ce.executeSql( + "SELECT name FROM sqlite_master WHERE type='table' AND name = ?", + [_e.storeName], + function (Ce, Fe) { + Fe.rows.length + ? re(Ce, he) + : Xe( + Ce, + _e, + function () { + Ce.executeSql(z, J, ee, re); + }, + re + ); + }, + re + ) + : re(ce, he); + }, + re + ); + } + function et(oe, _e) { + var z = this; + oe = O(oe); + var J = new C(function (ee, re) { + z.ready() + .then(function () { + var ce = z._dbInfo; + ce.db.transaction(function (he) { + Ae( + he, + ce, + "SELECT * FROM " + + ce.storeName + + " WHERE key = ? LIMIT 1", + [oe], + function (Ce, Fe) { + var Ve = Fe.rows.length + ? Fe.rows.item(0).value + : null; + Ve && (Ve = ce.serializer.deserialize(Ve)), ee(Ve); + }, + function (Ce, Fe) { + re(Fe); + } + ); + }); + }) + .catch(re); + }); + return I(J, _e), J; + } + function St(oe, _e) { + var z = this, + J = new C(function (ee, re) { + z.ready() + .then(function () { + var ce = z._dbInfo; + ce.db.transaction(function (he) { + Ae( + he, + ce, + "SELECT * FROM " + ce.storeName, + [], + function (Ce, Fe) { + for ( + var Ve = Fe.rows, st = Ve.length, ct = 0; + ct < st; + ct++ + ) { + var gt = Ve.item(ct), + At = gt.value; + if ( + (At && (At = ce.serializer.deserialize(At)), + (At = oe(At, gt.key, ct + 1)), + At !== void 0) + ) { + ee(At); + return; + } + } + ee(); + }, + function (Ce, Fe) { + re(Fe); + } + ); + }); + }) + .catch(re); + }); + return I(J, _e), J; + } + function Oe(oe, _e, z, J) { + var ee = this; + oe = O(oe); + var re = new C(function (ce, he) { + ee.ready() + .then(function () { + _e === void 0 && (_e = null); + var Ce = _e, + Fe = ee._dbInfo; + Fe.serializer.serialize(_e, function (Ve, st) { + st + ? he(st) + : Fe.db.transaction( + function (ct) { + Ae( + ct, + Fe, + "INSERT OR REPLACE INTO " + + Fe.storeName + + " (key, value) VALUES (?, ?)", + [oe, Ve], + function () { + ce(Ce); + }, + function (gt, At) { + he(At); + } + ); + }, + function (ct) { + if (ct.code === ct.QUOTA_ERR) { + if (J > 0) { + ce(Oe.apply(ee, [oe, Ce, z, J - 1])); + return; + } + he(ct); + } + } + ); + }); + }) + .catch(he); + }); + return I(re, z), re; + } + function tt(oe, _e, z) { + return Oe.apply(this, [oe, _e, z, 1]); + } + function Kt(oe, _e) { + var z = this; + oe = O(oe); + var J = new C(function (ee, re) { + z.ready() + .then(function () { + var ce = z._dbInfo; + ce.db.transaction(function (he) { + Ae( + he, + ce, + "DELETE FROM " + ce.storeName + " WHERE key = ?", + [oe], + function () { + ee(); + }, + function (Ce, Fe) { + re(Fe); + } + ); + }); + }) + .catch(re); + }); + return I(J, _e), J; + } + function qe(oe) { + var _e = this, + z = new C(function (J, ee) { + _e.ready() + .then(function () { + var re = _e._dbInfo; + re.db.transaction(function (ce) { + Ae( + ce, + re, + "DELETE FROM " + re.storeName, + [], + function () { + J(); + }, + function (he, Ce) { + ee(Ce); + } + ); + }); + }) + .catch(ee); + }); + return I(z, oe), z; + } + function rt(oe) { + var _e = this, + z = new C(function (J, ee) { + _e.ready() + .then(function () { + var re = _e._dbInfo; + re.db.transaction(function (ce) { + Ae( + ce, + re, + "SELECT COUNT(key) as c FROM " + re.storeName, + [], + function (he, Ce) { + var Fe = Ce.rows.item(0).c; + J(Fe); + }, + function (he, Ce) { + ee(Ce); + } + ); + }); + }) + .catch(ee); + }); + return I(z, oe), z; + } + function Vt(oe, _e) { + var z = this, + J = new C(function (ee, re) { + z.ready() + .then(function () { + var ce = z._dbInfo; + ce.db.transaction(function (he) { + Ae( + he, + ce, + "SELECT key FROM " + + ce.storeName + + " WHERE id = ? LIMIT 1", + [oe + 1], + function (Ce, Fe) { + var Ve = Fe.rows.length + ? Fe.rows.item(0).key + : null; + ee(Ve); + }, + function (Ce, Fe) { + re(Fe); + } + ); + }); + }) + .catch(re); + }); + return I(J, _e), J; + } + function Ie(oe) { + var _e = this, + z = new C(function (J, ee) { + _e.ready() + .then(function () { + var re = _e._dbInfo; + re.db.transaction(function (ce) { + Ae( + ce, + re, + "SELECT key FROM " + re.storeName, + [], + function (he, Ce) { + for ( + var Fe = [], Ve = 0; + Ve < Ce.rows.length; + Ve++ + ) + Fe.push(Ce.rows.item(Ve).key); + J(Fe); + }, + function (he, Ce) { + ee(Ce); + } + ); + }); + }) + .catch(ee); + }); + return I(z, oe), z; + } + function Ye(oe) { + return new C(function (_e, z) { + oe.transaction( + function (J) { + J.executeSql( + "SELECT name FROM sqlite_master WHERE type='table' AND name <> '__WebKitDatabaseInfoTable__'", + [], + function (ee, re) { + for (var ce = [], he = 0; he < re.rows.length; he++) + ce.push(re.rows.item(he).name); + _e({ db: oe, storeNames: ce }); + }, + function (ee, re) { + z(re); + } + ); + }, + function (J) { + z(J); + } + ); + }); + } + function Gt(oe, _e) { + _e = D.apply(this, arguments); + var z = this.config(); + (oe = (typeof oe != "function" && oe) || {}), + oe.name || + ((oe.name = oe.name || z.name), + (oe.storeName = oe.storeName || z.storeName)); + var J = this, + ee; + return ( + oe.name + ? (ee = new C(function (re) { + var ce; + oe.name === z.name + ? (ce = J._dbInfo.db) + : (ce = openDatabase(oe.name, "", "", 0)), + oe.storeName + ? re({ db: ce, storeNames: [oe.storeName] }) + : re(Ye(ce)); + }).then(function (re) { + return new C(function (ce, he) { + re.db.transaction( + function (Ce) { + function Fe(gt) { + return new C(function (At, lr) { + Ce.executeSql( + "DROP TABLE IF EXISTS " + gt, + [], + function () { + At(); + }, + function (nr, Cn) { + lr(Cn); + } + ); + }); + } + for ( + var Ve = [], st = 0, ct = re.storeNames.length; + st < ct; + st++ + ) + Ve.push(Fe(re.storeNames[st])); + C.all(Ve) + .then(function () { + ce(); + }) + .catch(function (gt) { + he(gt); + }); + }, + function (Ce) { + he(Ce); + } + ); + }); + })) + : (ee = C.reject("Invalid arguments")), + I(ee, _e), + ee + ); + } + var We = { + _driver: "webSQLStorage", + _initStorage: Ut, + _support: Ne(), + iterate: St, + getItem: et, + setItem: tt, + removeItem: Kt, + clear: qe, + length: rt, + key: Vt, + keys: Ie, + dropInstance: Gt, + }; + function it() { + try { + return ( + typeof localStorage < "u" && + "setItem" in localStorage && + !!localStorage.setItem + ); + } catch { + return !1; + } + } + function Qt(oe, _e) { + var z = oe.name + "/"; + return ( + oe.storeName !== _e.storeName && (z += oe.storeName + "/"), z + ); + } + function Ue() { + var oe = "_localforage_support_test"; + try { + return ( + localStorage.setItem(oe, !0), + localStorage.removeItem(oe), + !1 + ); + } catch { + return !0; + } + } + function nt() { + return !Ue() || localStorage.length > 0; + } + function tr(oe) { + var _e = this, + z = {}; + if (oe) for (var J in oe) z[J] = oe[J]; + return ( + (z.keyPrefix = Qt(oe, _e._defaultConfig)), + nt() + ? ((_e._dbInfo = z), (z.serializer = Be), C.resolve()) + : C.reject() + ); + } + function He(oe) { + var _e = this, + z = _e.ready().then(function () { + for ( + var J = _e._dbInfo.keyPrefix, + ee = localStorage.length - 1; + ee >= 0; + ee-- + ) { + var re = localStorage.key(ee); + re.indexOf(J) === 0 && localStorage.removeItem(re); + } + }); + return I(z, oe), z; + } + function at(oe, _e) { + var z = this; + oe = O(oe); + var J = z.ready().then(function () { + var ee = z._dbInfo, + re = localStorage.getItem(ee.keyPrefix + oe); + return re && (re = ee.serializer.deserialize(re)), re; + }); + return I(J, _e), J; + } + function Pr(oe, _e) { + var z = this, + J = z.ready().then(function () { + for ( + var ee = z._dbInfo, + re = ee.keyPrefix, + ce = re.length, + he = localStorage.length, + Ce = 1, + Fe = 0; + Fe < he; + Fe++ + ) { + var Ve = localStorage.key(Fe); + if (Ve.indexOf(re) === 0) { + var st = localStorage.getItem(Ve); + if ( + (st && (st = ee.serializer.deserialize(st)), + (st = oe(st, Ve.substring(ce), Ce++)), + st !== void 0) + ) + return st; + } + } + }); + return I(J, _e), J; + } + function qt(oe, _e) { + var z = this, + J = z.ready().then(function () { + var ee = z._dbInfo, + re; + try { + re = localStorage.key(oe); + } catch { + re = null; + } + return re && (re = re.substring(ee.keyPrefix.length)), re; + }); + return I(J, _e), J; + } + function Ft(oe) { + var _e = this, + z = _e.ready().then(function () { + for ( + var J = _e._dbInfo, + ee = localStorage.length, + re = [], + ce = 0; + ce < ee; + ce++ + ) { + var he = localStorage.key(ce); + he.indexOf(J.keyPrefix) === 0 && + re.push(he.substring(J.keyPrefix.length)); + } + return re; + }); + return I(z, oe), z; + } + function _r(oe) { + var _e = this, + z = _e.keys().then(function (J) { + return J.length; + }); + return I(z, oe), z; + } + function xr(oe, _e) { + var z = this; + oe = O(oe); + var J = z.ready().then(function () { + var ee = z._dbInfo; + localStorage.removeItem(ee.keyPrefix + oe); + }); + return I(J, _e), J; + } + function Tr(oe, _e, z) { + var J = this; + oe = O(oe); + var ee = J.ready().then(function () { + _e === void 0 && (_e = null); + var re = _e; + return new C(function (ce, he) { + var Ce = J._dbInfo; + Ce.serializer.serialize(_e, function (Fe, Ve) { + if (Ve) he(Ve); + else + try { + localStorage.setItem(Ce.keyPrefix + oe, Fe), ce(re); + } catch (st) { + (st.name === "QuotaExceededError" || + st.name === "NS_ERROR_DOM_QUOTA_REACHED") && + he(st), + he(st); + } + }); + }); + }); + return I(ee, z), ee; + } + function Er(oe, _e) { + if ( + ((_e = D.apply(this, arguments)), + (oe = (typeof oe != "function" && oe) || {}), + !oe.name) + ) { + var z = this.config(); + (oe.name = oe.name || z.name), + (oe.storeName = oe.storeName || z.storeName); + } + var J = this, + ee; + return ( + oe.name + ? (ee = new C(function (re) { + oe.storeName + ? re(Qt(oe, J._defaultConfig)) + : re(oe.name + "/"); + }).then(function (re) { + for (var ce = localStorage.length - 1; ce >= 0; ce--) { + var he = localStorage.key(ce); + he.indexOf(re) === 0 && localStorage.removeItem(he); + } + })) + : (ee = C.reject("Invalid arguments")), + I(ee, _e), + ee + ); + } + var Cr = { + _driver: "localStorageWrapper", + _initStorage: tr, + _support: it(), + iterate: Pr, + getItem: at, + setItem: Tr, + removeItem: xr, + clear: He, + length: _r, + key: qt, + keys: Ft, + dropInstance: Er, + }, + Kr = function (_e, z) { + return ( + _e === z || + (typeof _e == "number" && + typeof z == "number" && + isNaN(_e) && + isNaN(z)) + ); + }, + Vr = function (_e, z) { + for (var J = _e.length, ee = 0; ee < J; ) { + if (Kr(_e[ee], z)) return !0; + ee++; + } + return !1; + }, + Ur = + Array.isArray || + function (oe) { + return ( + Object.prototype.toString.call(oe) === "[object Array]" + ); + }, + Rr = {}, + Or = {}, + ur = { INDEXEDDB: we, WEBSQL: We, LOCALSTORAGE: Cr }, + Hr = [ + ur.INDEXEDDB._driver, + ur.WEBSQL._driver, + ur.LOCALSTORAGE._driver, + ], + hr = ["dropInstance"], + Lr = [ + "clear", + "getItem", + "iterate", + "key", + "keys", + "length", + "removeItem", + "setItem", + ].concat(hr), + Zr = { + description: "", + driver: Hr.slice(), + name: "localforage", + size: 4980736, + storeName: "keyvaluepairs", + version: 1, + }; + function xn(oe, _e) { + oe[_e] = function () { + var z = arguments; + return oe.ready().then(function () { + return oe[_e].apply(oe, z); + }); + }; + } + function Fh() { + for (var oe = 1; oe < arguments.length; oe++) { + var _e = arguments[oe]; + if (_e) + for (var z in _e) + _e.hasOwnProperty(z) && + (Ur(_e[z]) + ? (arguments[0][z] = _e[z].slice()) + : (arguments[0][z] = _e[z])); + } + return arguments[0]; + } + var uy = (function () { + function oe(_e) { + c(this, oe); + for (var z in ur) + if (ur.hasOwnProperty(z)) { + var J = ur[z], + ee = J._driver; + (this[z] = ee), Rr[ee] || this.defineDriver(J); + } + (this._defaultConfig = Fh({}, Zr)), + (this._config = Fh({}, this._defaultConfig, _e)), + (this._driverSet = null), + (this._initDriver = null), + (this._ready = !1), + (this._dbInfo = null), + this._wrapLibraryMethodsWithReady(), + this.setDriver(this._config.driver).catch(function () {}); + } + return ( + (oe.prototype.config = function (z) { + if ((typeof z > "u" ? "undefined" : s(z)) === "object") { + if (this._ready) + return new Error( + "Can't call config() after localforage has been used." + ); + for (var J in z) { + if ( + (J === "storeName" && + (z[J] = z[J].replace(/\W/g, "_")), + J === "version" && typeof z[J] != "number") + ) + return new Error( + "Database version must be a number." + ); + this._config[J] = z[J]; + } + return "driver" in z && z.driver + ? this.setDriver(this._config.driver) + : !0; + } else + return typeof z == "string" + ? this._config[z] + : this._config; + }), + (oe.prototype.defineDriver = function (z, J, ee) { + var re = new C(function (ce, he) { + try { + var Ce = z._driver, + Fe = new Error( + "Custom driver not compliant; see https://mozilla.github.io/localForage/#definedriver" + ); + if (!z._driver) { + he(Fe); + return; + } + for ( + var Ve = Lr.concat("_initStorage"), + st = 0, + ct = Ve.length; + st < ct; + st++ + ) { + var gt = Ve[st], + At = !Vr(hr, gt); + if ((At || z[gt]) && typeof z[gt] != "function") { + he(Fe); + return; + } + } + var lr = function () { + for ( + var Za = function (wL) { + return function () { + var g8 = new Error( + "Method " + + wL + + " is not implemented by the current driver" + ), + vne = C.reject(g8); + return ( + I(vne, arguments[arguments.length - 1]), + vne + ); + }; + }, + as = 0, + Ax = hr.length; + as < Ax; + as++ + ) { + var ly = hr[as]; + z[ly] || (z[ly] = Za(ly)); + } + }; + lr(); + var nr = function (Za) { + Rr[Ce] && + console.info( + "Redefining LocalForage driver: " + Ce + ), + (Rr[Ce] = z), + (Or[Ce] = Za), + ce(); + }; + "_support" in z + ? z._support && typeof z._support == "function" + ? z._support().then(nr, he) + : nr(!!z._support) + : nr(!0); + } catch (Cn) { + he(Cn); + } + }); + return k(re, J, ee), re; + }), + (oe.prototype.driver = function () { + return this._driver || null; + }), + (oe.prototype.getDriver = function (z, J, ee) { + var re = Rr[z] + ? C.resolve(Rr[z]) + : C.reject(new Error("Driver not found.")); + return k(re, J, ee), re; + }), + (oe.prototype.getSerializer = function (z) { + var J = C.resolve(Be); + return k(J, z), J; + }), + (oe.prototype.ready = function (z) { + var J = this, + ee = J._driverSet.then(function () { + return ( + J._ready === null && (J._ready = J._initDriver()), + J._ready + ); + }); + return k(ee, z, z), ee; + }), + (oe.prototype.setDriver = function (z, J, ee) { + var re = this; + Ur(z) || (z = [z]); + var ce = this._getSupportedDrivers(z); + function he() { + re._config.driver = re.driver(); + } + function Ce(st) { + return ( + re._extend(st), + he(), + (re._ready = re._initStorage(re._config)), + re._ready + ); + } + function Fe(st) { + return function () { + var ct = 0; + function gt() { + for (; ct < st.length; ) { + var At = st[ct]; + return ( + ct++, + (re._dbInfo = null), + (re._ready = null), + re.getDriver(At).then(Ce).catch(gt) + ); + } + he(); + var lr = new Error( + "No available storage method found." + ); + return ( + (re._driverSet = C.reject(lr)), re._driverSet + ); + } + return gt(); + }; + } + var Ve = + this._driverSet !== null + ? this._driverSet.catch(function () { + return C.resolve(); + }) + : C.resolve(); + return ( + (this._driverSet = Ve.then(function () { + var st = ce[0]; + return ( + (re._dbInfo = null), + (re._ready = null), + re.getDriver(st).then(function (ct) { + (re._driver = ct._driver), + he(), + re._wrapLibraryMethodsWithReady(), + (re._initDriver = Fe(ce)); + }) + ); + }).catch(function () { + he(); + var st = new Error( + "No available storage method found." + ); + return (re._driverSet = C.reject(st)), re._driverSet; + })), + k(this._driverSet, J, ee), + this._driverSet + ); + }), + (oe.prototype.supports = function (z) { + return !!Or[z]; + }), + (oe.prototype._extend = function (z) { + Fh(this, z); + }), + (oe.prototype._getSupportedDrivers = function (z) { + for (var J = [], ee = 0, re = z.length; ee < re; ee++) { + var ce = z[ee]; + this.supports(ce) && J.push(ce); + } + return J; + }), + (oe.prototype._wrapLibraryMethodsWithReady = function () { + for (var z = 0, J = Lr.length; z < J; z++) + xn(this, Lr[z]); + }), + (oe.prototype.createInstance = function (z) { + return new oe(z); + }), + oe + ); + })(), + Wh = new uy(); + a.exports = Wh; + }, + { 3: 3 }, + ], + }, + {}, + [4] + )(4); + }); + }); + var zf = N((MR) => { + "use strict"; + _(); + x(); + var Afr = bs(); + function kfr(r) { + return r && r.__esModule ? r : { default: r }; + } + var $G = kfr(Afr); + function _2(r) { + return `tw_${r}`; + } + var GG; + function Sfr() { + return ( + GG || + (GG = $G.default.createInstance({ + name: _2("connectors"), + storeName: _2("connectors"), + version: 1, + })), + GG + ); + } + var YG; + function Mfr() { + return ( + YG || + (YG = $G.default.createInstance({ + name: _2("coordinator"), + storeName: _2("coordinator"), + version: 1, + })), + YG + ); + } + var iVe = new Map(); + function Pfr(r) { + let e = iVe.get(r); + return ( + e || + ((e = $G.default.createInstance({ + name: _2(`wallet:${r}`), + storeName: _2(`wallet_${r}`), + version: 1, + })), + iVe.set(r, e)), + e + ); + } + MR.getConnectorStorage = Sfr; + MR.getCoordinatorStorage = Mfr; + MR.getWalletStorage = Pfr; + }); + var E2 = N((ZG) => { + "use strict"; + _(); + x(); + Object.defineProperty(ZG, "__esModule", { value: !0 }); + var PR = Lc(), + x2 = td(), + sVe = k0(), + oVe = zf(); + wt(); + gs(); + bs(); + var T2 = new WeakMap(), + JG = class extends sVe.AbstractWallet { + constructor(e, t) { + super(), + x2._classPrivateFieldInitSpec(this, T2, { + writable: !0, + value: void 0, + }), + PR._defineProperty(this, "coordinatorStorage", void 0), + PR._defineProperty(this, "walletStorage", void 0), + PR._defineProperty(this, "chains", void 0), + PR._defineProperty(this, "options", void 0), + x2._classPrivateFieldSet(this, T2, e), + (this.options = t), + (this.chains = t.chains || sVe.thirdwebChains), + (this.coordinatorStorage = oVe.getCoordinatorStorage()), + (this.walletStorage = oVe.getWalletStorage(e)), + t.shouldAutoConnect !== !1 && this.autoConnect(); + } + async autoConnect() { + if ( + (await this.coordinatorStorage.getItem("lastConnectedWallet")) === + x2._classPrivateFieldGet(this, T2) + ) { + let t = await this.walletStorage.getItem("lasConnectedParams"), + n; + try { + n = JSON.parse(t); + } catch { + n = void 0; + } + if (await (await this.getConnector()).isConnected()) + return await this.connect(n); + } + } + async connect(e) { + let t = await this.getConnector(); + t.on("connect", (a) => { + this.coordinatorStorage.setItem( + "lastConnectedWallet", + x2._classPrivateFieldGet(this, T2) + ), + this.emit("connect", { + address: a.account, + chainId: a.chain?.id, + }), + a.chain?.id && + this.walletStorage.setItem("lastConnectedChain", a.chain?.id); + }), + t.on("change", (a) => { + this.emit("change", { address: a.account, chainId: a.chain?.id }), + a.chain?.id && + this.walletStorage.setItem("lastConnectedChain", a.chain?.id); + }), + t.on("message", (a) => this.emit("message", a)), + t.on("disconnect", () => this.emit("disconnect")), + t.on("error", (a) => this.emit("error", a)); + let n = await t.connect(e); + try { + await this.coordinatorStorage.setItem( + "lastConnectedWallet", + x2._classPrivateFieldGet(this, T2) + ); + } catch {} + return n; + } + async getSigner() { + let e = await this.getConnector(); + if (!e) throw new Error("Wallet not connected"); + return await e.getSigner(); + } + async disconnect() { + let e = await this.getConnector(); + e && + (e.removeAllListeners(), + await e.disconnect(), + (await this.coordinatorStorage.getItem("lastConnectedWallet")) === + x2._classPrivateFieldGet(this, T2) && + (await this.coordinatorStorage.removeItem( + "lastConnectedWallet" + ))); + } + async switchChain(e) { + let t = await this.getConnector(); + if (!t) throw new Error("Wallet not connected"); + if (!t.switchChain) + throw new Error("Wallet does not support switching chains"); + return await t.switchChain(e); + } + }; + ZG.AbstractBrowserWallet = JG; + }); + var XG = N((QG) => { + "use strict"; + _(); + x(); + var Rfr = td(); + function Bfr(r, e) { + Rfr._checkPrivateRedeclaration(r, e), e.add(r); + } + function Nfr(r, e, t) { + if (!e.has(r)) + throw new TypeError("attempted to get private field on non-instance"); + return t; + } + QG._classPrivateMethodGet = Nfr; + QG._classPrivateMethodInitSpec = Bfr; + }); + var C2, + I2, + cVe = yt(() => { + _(); + x(); + (C2 = { + id: 5, + network: "goerli", + name: "Goerli", + nativeCurrency: { name: "Goerli Ether", symbol: "ETH", decimals: 18 }, + rpcUrls: { + alchemy: { + http: ["https://eth-goerli.g.alchemy.com/v2"], + webSocket: ["wss://eth-goerli.g.alchemy.com/v2"], + }, + infura: { + http: ["https://goerli.infura.io/v3"], + webSocket: ["wss://goerli.infura.io/ws/v3"], + }, + default: { http: ["https://rpc.ankr.com/eth_goerli"] }, + public: { http: ["https://rpc.ankr.com/eth_goerli"] }, + }, + blockExplorers: { + etherscan: { name: "Etherscan", url: "https://goerli.etherscan.io" }, + default: { name: "Etherscan", url: "https://goerli.etherscan.io" }, + }, + contracts: { + ensRegistry: { + address: "0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e", + }, + multicall3: { + address: "0xca11bde05977b3631167028862be2a173976ca11", + blockCreated: 6507670, + }, + }, + testnet: !0, + }), + (I2 = { + id: 1, + network: "homestead", + name: "Ethereum", + nativeCurrency: { name: "Ether", symbol: "ETH", decimals: 18 }, + rpcUrls: { + alchemy: { + http: ["https://eth-mainnet.g.alchemy.com/v2"], + webSocket: ["wss://eth-mainnet.g.alchemy.com/v2"], + }, + infura: { + http: ["https://mainnet.infura.io/v3"], + webSocket: ["wss://mainnet.infura.io/ws/v3"], + }, + default: { http: ["https://cloudflare-eth.com"] }, + public: { http: ["https://cloudflare-eth.com"] }, + }, + blockExplorers: { + etherscan: { name: "Etherscan", url: "https://etherscan.io" }, + default: { name: "Etherscan", url: "https://etherscan.io" }, + }, + contracts: { + ensRegistry: { + address: "0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e", + }, + multicall3: { + address: "0xca11bde05977b3631167028862be2a173976ca11", + blockCreated: 14353601, + }, + }, + }); + }); + var eY = yt(() => { + _(); + x(); + cVe(); + }); + var tY, + RR, + BR, + s6, + uVe, + lVe = yt(() => { + _(); + x(); + (tY = (r, e, t) => { + if (!e.has(r)) throw TypeError("Cannot " + t); + }), + (RR = (r, e, t) => ( + tY(r, e, "read from private field"), t ? t.call(r) : e.get(r) + )), + (BR = (r, e, t) => { + if (e.has(r)) + throw TypeError( + "Cannot add the same private member more than once" + ); + e instanceof WeakSet ? e.add(r) : e.set(r, t); + }), + (s6 = (r, e, t, n) => ( + tY(r, e, "write to private field"), n ? n.call(r, t) : e.set(r, t), t + )), + (uVe = (r, e, t) => (tY(r, e, "access private method"), t)); + }); + var dVe = yt(() => { + _(); + x(); + eY(); + }); + var OR = N((Cln, rY) => { + "use strict"; + _(); + x(); + var pmr = Object.prototype.hasOwnProperty, + qc = "~"; + function o6() {} + Object.create && + ((o6.prototype = Object.create(null)), new o6().__proto__ || (qc = !1)); + function hmr(r, e, t) { + (this.fn = r), (this.context = e), (this.once = t || !1); + } + function pVe(r, e, t, n, a) { + if (typeof t != "function") + throw new TypeError("The listener must be a function"); + var i = new hmr(t, n || r, a), + s = qc ? qc + e : e; + return ( + r._events[s] + ? r._events[s].fn + ? (r._events[s] = [r._events[s], i]) + : r._events[s].push(i) + : ((r._events[s] = i), r._eventsCount++), + r + ); + } + function NR(r, e) { + --r._eventsCount === 0 ? (r._events = new o6()) : delete r._events[e]; + } + function lc() { + (this._events = new o6()), (this._eventsCount = 0); + } + lc.prototype.eventNames = function () { + var e = [], + t, + n; + if (this._eventsCount === 0) return e; + for (n in (t = this._events)) + pmr.call(t, n) && e.push(qc ? n.slice(1) : n); + return Object.getOwnPropertySymbols + ? e.concat(Object.getOwnPropertySymbols(t)) + : e; + }; + lc.prototype.listeners = function (e) { + var t = qc ? qc + e : e, + n = this._events[t]; + if (!n) return []; + if (n.fn) return [n.fn]; + for (var a = 0, i = n.length, s = new Array(i); a < i; a++) + s[a] = n[a].fn; + return s; + }; + lc.prototype.listenerCount = function (e) { + var t = qc ? qc + e : e, + n = this._events[t]; + return n ? (n.fn ? 1 : n.length) : 0; + }; + lc.prototype.emit = function (e, t, n, a, i, s) { + var c = qc ? qc + e : e; + if (!this._events[c]) return !1; + var l = this._events[c], + d = arguments.length, + m, + w; + if (l.fn) { + switch ((l.once && this.removeListener(e, l.fn, void 0, !0), d)) { + case 1: + return l.fn.call(l.context), !0; + case 2: + return l.fn.call(l.context, t), !0; + case 3: + return l.fn.call(l.context, t, n), !0; + case 4: + return l.fn.call(l.context, t, n, a), !0; + case 5: + return l.fn.call(l.context, t, n, a, i), !0; + case 6: + return l.fn.call(l.context, t, n, a, i, s), !0; + } + for (w = 1, m = new Array(d - 1); w < d; w++) m[w - 1] = arguments[w]; + l.fn.apply(l.context, m); + } else { + var C = l.length, + I; + for (w = 0; w < C; w++) + switch ( + (l[w].once && this.removeListener(e, l[w].fn, void 0, !0), d) + ) { + case 1: + l[w].fn.call(l[w].context); + break; + case 2: + l[w].fn.call(l[w].context, t); + break; + case 3: + l[w].fn.call(l[w].context, t, n); + break; + case 4: + l[w].fn.call(l[w].context, t, n, a); + break; + default: + if (!m) + for (I = 1, m = new Array(d - 1); I < d; I++) + m[I - 1] = arguments[I]; + l[w].fn.apply(l[w].context, m); + } + } + return !0; + }; + lc.prototype.on = function (e, t, n) { + return pVe(this, e, t, n, !1); + }; + lc.prototype.once = function (e, t, n) { + return pVe(this, e, t, n, !0); + }; + lc.prototype.removeListener = function (e, t, n, a) { + var i = qc ? qc + e : e; + if (!this._events[i]) return this; + if (!t) return NR(this, i), this; + var s = this._events[i]; + if (s.fn) + s.fn === t && (!a || s.once) && (!n || s.context === n) && NR(this, i); + else { + for (var c = 0, l = [], d = s.length; c < d; c++) + (s[c].fn !== t || (a && !s[c].once) || (n && s[c].context !== n)) && + l.push(s[c]); + l.length ? (this._events[i] = l.length === 1 ? l[0] : l) : NR(this, i); + } + return this; + }; + lc.prototype.removeAllListeners = function (e) { + var t; + return ( + e + ? ((t = qc ? qc + e : e), this._events[t] && NR(this, t)) + : ((this._events = new o6()), (this._eventsCount = 0)), + this + ); + }; + lc.prototype.off = lc.prototype.removeListener; + lc.prototype.addListener = lc.prototype.on; + lc.prefixed = qc; + lc.EventEmitter = lc; + typeof rY < "u" && (rY.exports = lc); + }); + var fVe, + fmr, + mmr, + Ah, + hVe, + nY, + aY, + LR, + A2, + iY = yt(() => { + _(); + x(); + dVe(); + (fVe = ar(OR(), 1)), + (fmr = Object.defineProperty), + (mmr = (r, e, t) => + e in r + ? fmr(r, e, { + enumerable: !0, + configurable: !0, + writable: !0, + value: t, + }) + : (r[e] = t)), + (Ah = (r, e, t) => (mmr(r, typeof e != "symbol" ? e + "" : e, t), t)), + (hVe = (r, e, t) => { + if (!e.has(r)) throw TypeError("Cannot " + t); + }), + (nY = (r, e, t) => ( + hVe(r, e, "read from private field"), t ? t.call(r) : e.get(r) + )), + (aY = (r, e, t) => { + if (e.has(r)) + throw TypeError( + "Cannot add the same private member more than once" + ); + e instanceof WeakSet ? e.add(r) : e.set(r, t); + }), + (LR = (r, e, t, n) => ( + hVe(r, e, "write to private field"), n ? n.call(r, t) : e.set(r, t), t + )), + (A2 = class extends fVe.default { + constructor({ chains: r = [I2, C2], options: e }) { + super(), + Ah(this, "chains"), + Ah(this, "options"), + (this.chains = r), + (this.options = e); + } + getBlockExplorerUrls(r) { + let { default: e, ...t } = r.blockExplorers ?? {}; + if (e) return [e.url, ...Object.values(t).map((n) => n.url)]; + } + isChainUnsupported(r) { + return !this.chains.some((e) => e.id === r); + } + }); + }); + var mVe = yt(() => { + _(); + x(); + iY(); + }); + function ymr(r) { + if (!r) return "Injected"; + let e = (t) => { + if (t.isAvalanche) return "Core Wallet"; + if (t.isBitKeep) return "BitKeep"; + if (t.isBraveWallet) return "Brave Wallet"; + if (t.isCoinbaseWallet) return "Coinbase Wallet"; + if (t.isExodus) return "Exodus"; + if (t.isFrame) return "Frame"; + if (t.isKuCoinWallet) return "KuCoin Wallet"; + if (t.isMathWallet) return "MathWallet"; + if (t.isOneInchIOSWallet || t.isOneInchAndroidWallet) + return "1inch Wallet"; + if (t.isOpera) return "Opera"; + if (t.isPortal) return "Ripio Portal"; + if (t.isRainbow) return "Rainbow"; + if (t.isTally) return "Tally"; + if (t.isTokenPocket) return "TokenPocket"; + if (t.isTokenary) return "Tokenary"; + if (t.isTrust || t.isTrustWallet) return "Trust Wallet"; + if (t.isMetaMask) return "MetaMask"; + }; + if (r.providers?.length) { + let t = new Set(), + n = 1; + for (let i of r.providers) { + let s = e(i); + s || ((s = `Unknown Wallet #${n}`), (n += 1)), t.add(s); + } + let a = [...t]; + return a.length ? a : a[0] ?? "Injected"; + } + return e(r) ?? "Injected"; + } + var yVe, + k2, + DR, + c6, + ub, + gVe = yt(() => { + _(); + x(); + iY(); + rd(); + (yVe = ar(wt(), 1)), (k2 = ar(hi(), 1)); + ub = class extends A2 { + constructor({ chains: r, options: e } = {}) { + let t = { + shimDisconnect: !0, + shimChainChangedDisconnect: !0, + getProvider: () => (typeof window < "u" ? window.ethereum : void 0), + ...e, + }; + super({ chains: r, options: t }), + Ah(this, "id"), + Ah(this, "name"), + Ah(this, "ready"), + aY(this, DR, void 0), + aY(this, c6, void 0), + Ah(this, "shimDisconnectKey", "injected.shimDisconnect"), + Ah(this, "onAccountsChanged", (a) => { + a.length === 0 + ? this.emit("disconnect") + : this.emit("change", { account: (0, k2.getAddress)(a[0]) }); + }), + Ah(this, "onChainChanged", (a) => { + let i = S2(a), + s = this.isChainUnsupported(i); + this.emit("change", { chain: { id: i, unsupported: s } }); + }), + Ah(this, "onDisconnect", () => { + if (this.options.shimChainChangedDisconnect && nY(this, c6)) { + LR(this, c6, !1); + return; + } + this.emit("disconnect"), + this.options.shimDisconnect && + Ga().storage?.removeItem(this.shimDisconnectKey); + }); + let n = t.getProvider(); + if (typeof t.name == "string") this.name = t.name; + else if (n) { + let a = ymr(n); + t.name + ? (this.name = t.name(a)) + : typeof a == "string" + ? (this.name = a) + : (this.name = a[0]); + } else this.name = "Injected"; + (this.id = "injected"), (this.ready = !!n); + } + async connect({ chainId: r } = {}) { + try { + let e = await this.getProvider(); + if (!e) throw new dc(); + e.on && + (e.on("accountsChanged", this.onAccountsChanged), + e.on("chainChanged", this.onChainChanged), + e.on("disconnect", this.onDisconnect)), + this.emit("message", { type: "connecting" }); + let t = await e.request({ method: "eth_requestAccounts" }), + n = (0, k2.getAddress)(t[0]), + a = await this.getChainId(), + i = this.isChainUnsupported(a); + return ( + r && + a !== r && + ((a = (await this.switchChain(r)).id), + (i = this.isChainUnsupported(a))), + this.options.shimDisconnect && + Ga().storage?.setItem(this.shimDisconnectKey, !0), + { account: n, chain: { id: a, unsupported: i }, provider: e } + ); + } catch (e) { + throw this.isUserRejectedRequestError(e) + ? new jf(e) + : e.code === -32002 + ? new FR(e) + : e; + } + } + async disconnect() { + let r = await this.getProvider(); + !r?.removeListener || + (r.removeListener("accountsChanged", this.onAccountsChanged), + r.removeListener("chainChanged", this.onChainChanged), + r.removeListener("disconnect", this.onDisconnect), + this.options.shimDisconnect && + Ga().storage?.removeItem(this.shimDisconnectKey)); + } + async getAccount() { + let r = await this.getProvider(); + if (!r) throw new dc(); + let e = await r.request({ method: "eth_accounts" }); + return (0, k2.getAddress)(e[0]); + } + async getChainId() { + let r = await this.getProvider(); + if (!r) throw new dc(); + return r.request({ method: "eth_chainId" }).then(S2); + } + async getProvider() { + let r = this.options.getProvider(); + return r && LR(this, DR, r), nY(this, DR); + } + async getSigner({ chainId: r } = {}) { + let [e, t] = await Promise.all([ + this.getProvider(), + this.getAccount(), + ]); + return new yVe.providers.Web3Provider(e, r).getSigner(t); + } + async isAuthorized() { + try { + if ( + this.options.shimDisconnect && + !Ga().storage?.getItem(this.shimDisconnectKey) + ) + return !1; + if (!(await this.getProvider())) throw new dc(); + return !!(await this.getAccount()); + } catch { + return !1; + } + } + async switchChain(r) { + this.options.shimChainChangedDisconnect && LR(this, c6, !0); + let e = await this.getProvider(); + if (!e) throw new dc(); + let t = (0, k2.hexValue)(r); + try { + return ( + await e.request({ + method: "wallet_switchEthereumChain", + params: [{ chainId: t }], + }), + this.chains.find((n) => n.id === r) ?? { + id: r, + name: `Chain ${t}`, + network: `${t}`, + nativeCurrency: { name: "Ether", decimals: 18, symbol: "ETH" }, + rpcUrls: { default: { http: [""] }, public: { http: [""] } }, + } + ); + } catch (n) { + let a = this.chains.find((i) => i.id === r); + if (!a) throw new u6({ chainId: r, connectorId: this.id }); + if (n.code === 4902 || n?.data?.originalError?.code === 4902) + try { + return ( + await e.request({ + method: "wallet_addEthereumChain", + params: [ + { + chainId: t, + chainName: a.name, + nativeCurrency: a.nativeCurrency, + rpcUrls: [a.rpcUrls.public?.http[0] ?? ""], + blockExplorerUrls: this.getBlockExplorerUrls(a), + }, + ], + }), + a + ); + } catch (i) { + throw this.isUserRejectedRequestError(i) ? new jf(n) : new qR(); + } + throw this.isUserRejectedRequestError(n) ? new jf(n) : new WR(n); + } + } + async watchAsset({ + address: r, + decimals: e = 18, + image: t, + symbol: n, + }) { + let a = await this.getProvider(); + if (!a) throw new dc(); + return a.request({ + method: "wallet_watchAsset", + params: { + type: "ERC20", + options: { address: r, decimals: e, image: t, symbol: n }, + }, + }); + } + isUserRejectedRequestError(r) { + return r.code === 4001; + } + }; + DR = new WeakMap(); + c6 = new WeakMap(); + }); + var sY = yt(() => { + _(); + x(); + gVe(); + }); + var oY = yt(() => { + _(); + x(); + mVe(); + sY(); + }); + function bmr(r) { + let e; + try { + e = r(); + } catch { + return; + } + return { + getItem: (n) => { + var a; + let i = (c) => (c === null ? null : JSON.parse(c)), + s = (a = e.getItem(n)) != null ? a : null; + return s instanceof Promise ? s.then(i) : i(s); + }, + setItem: (n, a) => e.setItem(n, JSON.stringify(a)), + removeItem: (n) => e.removeItem(n), + }; + } + var xmr, + gmr, + bVe, + l6, + vmr, + wmr, + _mr, + vVe, + wVe = yt(() => { + _(); + x(); + (xmr = {}), + (gmr = (r) => (e, t, n) => { + let a = n.subscribe; + return ( + (n.subscribe = (s, c, l) => { + let d = s; + if (c) { + let m = l?.equalityFn || Object.is, + w = s(n.getState()); + (d = (C) => { + let I = s(C); + if (!m(w, I)) { + let k = w; + c((w = I), k); + } + }), + l?.fireImmediately && c(w, w); + } + return a(d); + }), + r(e, t, n) + ); + }), + (bVe = gmr); + (l6 = (r) => (e) => { + try { + let t = r(e); + return t instanceof Promise + ? t + : { + then(n) { + return l6(n)(t); + }, + catch(n) { + return this; + }, + }; + } catch (t) { + return { + then(n) { + return this; + }, + catch(n) { + return l6(n)(t); + }, + }; + } + }), + (vmr = (r, e) => (t, n, a) => { + let i = { + getStorage: () => localStorage, + serialize: JSON.stringify, + deserialize: JSON.parse, + partialize: (D) => D, + version: 0, + merge: (D, W) => ({ ...W, ...D }), + ...e, + }, + s = !1, + c = new Set(), + l = new Set(), + d; + try { + d = i.getStorage(); + } catch {} + if (!d) + return r( + (...D) => { + console.warn( + `[zustand persist middleware] Unable to update item '${i.name}', the given storage is currently unavailable.` + ), + t(...D); + }, + n, + a + ); + let m = l6(i.serialize), + w = () => { + let D = i.partialize({ ...n() }), + W, + H = m({ state: D, version: i.version }) + .then((j) => d.setItem(i.name, j)) + .catch((j) => { + W = j; + }); + if (W) throw W; + return H; + }, + C = a.setState; + a.setState = (D, W) => { + C(D, W), w(); + }; + let I = r( + (...D) => { + t(...D), w(); + }, + n, + a + ), + k, + O = () => { + var D; + if (!d) return; + (s = !1), c.forEach((H) => H(n())); + let W = + ((D = i.onRehydrateStorage) == null + ? void 0 + : D.call(i, n())) || void 0; + return l6(d.getItem.bind(d))(i.name) + .then((H) => { + if (H) return i.deserialize(H); + }) + .then((H) => { + if (H) + if ( + typeof H.version == "number" && + H.version !== i.version + ) { + if (i.migrate) return i.migrate(H.state, H.version); + console.error( + "State loaded from storage couldn't be migrated since no migrate function was provided" + ); + } else return H.state; + }) + .then((H) => { + var j; + return ( + (k = i.merge(H, (j = n()) != null ? j : I)), t(k, !0), w() + ); + }) + .then(() => { + W?.(k, void 0), (s = !0), l.forEach((H) => H(k)); + }) + .catch((H) => { + W?.(void 0, H); + }); + }; + return ( + (a.persist = { + setOptions: (D) => { + (i = { ...i, ...D }), D.getStorage && (d = D.getStorage()); + }, + clearStorage: () => { + d?.removeItem(i.name); + }, + getOptions: () => i, + rehydrate: () => O(), + hasHydrated: () => s, + onHydrate: (D) => ( + c.add(D), + () => { + c.delete(D); + } + ), + onFinishHydration: (D) => ( + l.add(D), + () => { + l.delete(D); + } + ), + }), + O(), + k || I + ); + }), + (wmr = (r, e) => (t, n, a) => { + let i = { + storage: bmr(() => localStorage), + partialize: (O) => O, + version: 0, + merge: (O, D) => ({ ...D, ...O }), + ...e, + }, + s = !1, + c = new Set(), + l = new Set(), + d = i.storage; + if (!d) + return r( + (...O) => { + console.warn( + `[zustand persist middleware] Unable to update item '${i.name}', the given storage is currently unavailable.` + ), + t(...O); + }, + n, + a + ); + let m = () => { + let O = i.partialize({ ...n() }); + return d.setItem(i.name, { state: O, version: i.version }); + }, + w = a.setState; + a.setState = (O, D) => { + w(O, D), m(); + }; + let C = r( + (...O) => { + t(...O), m(); + }, + n, + a + ), + I, + k = () => { + var O; + if (!d) return; + (s = !1), c.forEach((W) => W(n())); + let D = + ((O = i.onRehydrateStorage) == null + ? void 0 + : O.call(i, n())) || void 0; + return l6(d.getItem.bind(d))(i.name) + .then((W) => { + if (W) + if ( + typeof W.version == "number" && + W.version !== i.version + ) { + if (i.migrate) return i.migrate(W.state, W.version); + console.error( + "State loaded from storage couldn't be migrated since no migrate function was provided" + ); + } else return W.state; + }) + .then((W) => { + var H; + return ( + (I = i.merge(W, (H = n()) != null ? H : C)), t(I, !0), m() + ); + }) + .then(() => { + D?.(I, void 0), (s = !0), l.forEach((W) => W(I)); + }) + .catch((W) => { + D?.(void 0, W); + }); + }; + return ( + (a.persist = { + setOptions: (O) => { + (i = { ...i, ...O }), O.storage && (d = O.storage); + }, + clearStorage: () => { + d?.removeItem(i.name); + }, + getOptions: () => i, + rehydrate: () => k(), + hasHydrated: () => s, + onHydrate: (O) => ( + c.add(O), + () => { + c.delete(O); + } + ), + onFinishHydration: (O) => ( + l.add(O), + () => { + l.delete(O); + } + ), + }), + k(), + I || C + ); + }), + (_mr = (r, e) => { + var t; + return "getStorage" in e || "serialize" in e || "deserialize" in e + ? (((t = xmr.env) == null ? void 0 : t.MODE) !== "production" && + console.warn( + "[DEPRECATED] `getStorage`, `serialize` and `deserialize` options are deprecated. Use `storage` option instead." + ), + vmr(r, e)) + : wmr(r, e); + }), + (vVe = _mr); + }); + var Tmr, + _Ve, + xVe, + TVe = yt(() => { + _(); + x(); + (Tmr = {}), + (_Ve = (r) => { + let e, + t = new Set(), + n = (l, d) => { + let m = typeof l == "function" ? l(e) : l; + if (!Object.is(m, e)) { + let w = e; + (e = d ?? typeof m != "object" ? m : Object.assign({}, e, m)), + t.forEach((C) => C(e, w)); + } + }, + a = () => e, + c = { + setState: n, + getState: a, + subscribe: (l) => (t.add(l), () => t.delete(l)), + destroy: () => { + var l; + ((l = Tmr.env) == null ? void 0 : l.MODE) !== "production" && + console.warn( + "[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected." + ), + t.clear(); + }, + }; + return (e = r(n, a, c)), c; + }), + (xVe = (r) => (r ? _Ve(r) : _Ve)); + }); + function nd(r, e) { + if (Object.is(r, e)) return !0; + if ( + typeof r != "object" || + r === null || + typeof e != "object" || + e === null + ) + return !1; + if (r instanceof Map && e instanceof Map) { + if (r.size !== e.size) return !1; + for (let [n, a] of r) if (!Object.is(a, e.get(n))) return !1; + return !0; + } + if (r instanceof Set && e instanceof Set) { + if (r.size !== e.size) return !1; + for (let n of r) if (!e.has(n)) return !1; + return !0; + } + let t = Object.keys(r); + if (t.length !== Object.keys(e).length) return !1; + for (let n = 0; n < t.length; n++) + if ( + !Object.prototype.hasOwnProperty.call(e, t[n]) || + !Object.is(r[t[n]], e[t[n]]) + ) + return !1; + return !0; + } + var lb = yt(() => { + _(); + x(); + }); + function kVe( + r, + e, + { + minQuorum: t = 1, + pollingInterval: n = 4e3, + targetQuorum: a = 1, + stallTimeout: i, + } = {} + ) { + if (!r.length) throw new Error("must have at least one chain"); + if (a < t) throw new Error("quorum cannot be lower than minQuorum"); + let s = [], + c = {}, + l = {}; + for (let d of r) { + let m = !1; + for (let w of e) { + let C = w(d); + !C || + ((m = !0), + s.some(({ id: I }) => I === d.id) || (s = [...s, C.chain]), + (c[d.id] = [...(c[d.id] || []), C.provider]), + C.webSocketProvider && + (l[d.id] = [...(l[d.id] || []), C.webSocketProvider])); + } + if (!m) + throw new Error( + [ + `Could not find valid provider configuration for chain "${d.name}". +`, + "You may need to add `jsonRpcProvider` to `configureChains` with the chain's RPC URLs.", + "Read more: https://wagmi.sh/react/providers/jsonRpc", + ].join(` +`) + ); + } + return { + chains: s, + provider: ({ chainId: d }) => { + let m = s.find((I) => I.id === d) ?? r[0], + w = c[m.id]; + if (!w || !w[0]) + throw new Error(`No providers configured for chain "${m.id}"`); + let C; + return ( + w.length === 1 + ? (C = w[0]()) + : (C = SVe(a, t, w, { stallTimeout: i })), + m.id === 42220 && + (C.formatter.formats.block = { + ...C.formatter.formats.block, + difficulty: () => 0, + gasLimit: () => 0, + }), + Object.assign(C, { chains: s, pollingInterval: n }) + ); + }, + webSocketProvider: ({ chainId: d }) => { + let m = s.find((I) => I.id === d) ?? r[0], + w = l[m.id]; + if (!w) return; + let C = w[0]?.(); + return ( + C && + m.id === 42220 && + (C.formatter.formats.block = { + ...C.formatter.formats.block, + difficulty: () => 0, + gasLimit: () => 0, + }), + Object.assign(C || {}, { chains: s }) + ); + }, + }; + } + function SVe(r, e, t, { stallTimeout: n }) { + try { + return new AVe.providers.FallbackProvider( + t.map((a, i) => { + let s = a(); + return { + provider: s, + priority: s.priority ?? i, + stallTimeout: s.stallTimeout ?? n, + weight: s.weight, + }; + }), + r + ); + } catch (a) { + if ( + a?.message?.includes( + "quorum will always fail; larger than total weight" + ) + ) { + if (r === e) throw a; + return SVe(r - 1, e, t, { stallTimeout: n }); + } + throw a; + } + } + function y6({ chainId: r, signer: e }) { + let { chain: t, chains: n } = JR(), + a = t?.id; + if (a && r !== a) + throw new EY({ + activeChain: n.find((i) => i.id === a)?.name ?? `Chain ${a}`, + targetChain: n.find((i) => i.id === r)?.name ?? `Chain ${r}`, + }); + if (e) { + let i = e.provider?.network?.chainId; + if (i && r !== i) { + let s = Ga().connector; + throw new u6({ chainId: r, connectorId: s?.id ?? "unknown" }); + } + } + } + function Emr(r, e = 0) { + let t; + return function (...n) { + if (!e) return r(...n); + t && clearTimeout(t), + (t = setTimeout(function () { + (t = null), r(...n); + }, e)); + }; + } + function HR(r, e) { + if (r === e) return !0; + if (r && e && typeof r == "object" && typeof e == "object") { + if (r.constructor !== e.constructor) return !1; + let t, n; + if (Array.isArray(r) && Array.isArray(e)) { + if (((t = r.length), t != e.length)) return !1; + for (n = t; n-- !== 0; ) if (!HR(r[n], e[n])) return !1; + return !0; + } + if (r.valueOf !== Object.prototype.valueOf) + return r.valueOf() === e.valueOf(); + if (r.toString !== Object.prototype.toString) + return r.toString() === e.toString(); + let a = Object.keys(r); + if (((t = a.length), t !== Object.keys(e).length)) return !1; + for (n = t; n-- !== 0; ) + if (!Object.prototype.hasOwnProperty.call(e, a[n])) return !1; + for (n = t; n-- !== 0; ) { + let i = a[n]; + if (i && !HR(r[i], e[i])) return !1; + } + return !0; + } + return r !== r && e !== e; + } + function pY(r) { + let e = JSON.parse(r); + return cY(e, { + find: (n) => n.type === "BigNumber", + replace: (n) => MVe.BigNumber.from(n.hex), + }); + } + function zR({ contract: r, functionName: e, args: t = [] }) { + if (e in r.functions) return e; + let n = t?.length ?? 0, + a = Object.keys(r.functions) + .filter((i) => i.startsWith(`${e}(`)) + .map((i) => ({ name: i, fragment: KR.FunctionFragment.fromString(i) })) + .filter((i) => n === i.fragment.inputs.length); + for (let i of a) + if ( + t.every((c, l) => { + let d = i.fragment.inputs[l]; + return uY(c, d); + }) + ) + return i.name; + return e; + } + function uY(r, e) { + let t = typeof r, + n = e.type; + switch (n) { + case "address": + return (0, KR.isAddress)(r); + case "bool": + return t === "boolean"; + case "function": + return t === "string"; + case "string": + return t === "string"; + default: + return n === "tuple" && "components" in e + ? Object.values(e.components).every((a, i) => + uY(Object.values(r)[i], a) + ) + : /^u?int(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/.test( + n + ) + ? t === "number" || t === "bigint" || PVe.BigNumber.isBigNumber(r) + : /^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/.test(n) + ? t === "string" || r instanceof Uint8Array + : /[a-z]+[1-9]{0,3}(\[[0-9]{0,}\])+$/.test(n) + ? Array.isArray(r) && + r.every((a) => + uY(a, { ...e, type: n.replace(/(\[[0-9]{0,}\])$/, "") }) + ) + : !1; + } + } + function P2(r) { + Ga()?.config.logger?.warn?.(r); + } + function hY(r) { + try { + let e = r.abi.filter( + (t) => t.type === "function" && t.name === r.functionName + ); + if (e.length === 0) throw new Error("Invalid ABI"); + return e; + } catch { + let t = RVe.Contract.getInterface(r.abi).format(BVe.FormatTypes.full); + return (Array.isArray(t) ? t : [t]).filter((a) => + a.includes(r.functionName) + ); + } + } + function S2(r) { + return typeof r == "string" + ? Number.parseInt(r, r.trim().substring(0, 2) === "0x" ? 16 : 10) + : typeof r == "bigint" + ? Number(r) + : r; + } + function Cmr(r) { + return Array.isArray(r) && Object.keys(r).length === r.length; + } + function OVe({ abi: r, data: e, functionName: t }) { + if (e && Cmr(e)) { + let n = NVe.Contract.getInterface(r), + i = (n.getFunction(t).outputs?.length || 0) > 1, + s = i ? e : [e], + c = n.encodeFunctionResult(t, s), + l = n.decodeFunctionResult(t, c); + return i ? l : l[0]; + } + return e; + } + function EVe(r, e) { + return r.slice(0, e).join(".") || "."; + } + function CVe(r, e) { + let { length: t } = r; + for (let n = 0; n < t; ++n) if (r[n] === e) return n + 1; + return 0; + } + function Imr(r, e) { + let t = typeof r == "function", + n = typeof e == "function", + a = [], + i = []; + return function (c, l) { + if (typeof l == "object") + if (a.length) { + let d = CVe(a, this); + d === 0 ? (a[a.length] = this) : (a.splice(d), i.splice(d)), + (i[i.length] = c); + let m = CVe(a, l); + if (m !== 0) + return n ? e.call(this, c, l, EVe(i, m)) : `[ref=${EVe(i, m)}]`; + } else (a[0] = l), (i[0] = c); + return t ? r.call(this, c, l) : l; + }; + } + function fY(r, e, t, n) { + return JSON.stringify(r, Imr(e, n), t ?? void 0); + } + function yY({ + deserialize: r = pY, + key: e = "wagmi", + serialize: t = fY, + storage: n, + }) { + return { + ...n, + getItem: (a, i = null) => { + let s = n.getItem(`${e}.${a}`); + try { + return s ? r(s) : i; + } catch (c) { + return console.warn(c), i; + } + }, + setItem: (a, i) => { + if (i === null) n.removeItem(`${e}.${a}`); + else + try { + n.setItem(`${e}.${a}`, t(i)); + } catch (s) { + console.error(s); + } + }, + removeItem: (a) => n.removeItem(`${e}.${a}`), + }; + } + function DVe(r) { + let e = new gY(r); + return (dY = e), e; + } + function Ga() { + if (!dY) + throw new Error( + "No wagmi client found. Ensure you have set up a client: https://wagmi.sh/react/client" + ); + return dY; + } + async function qVe({ chainId: r, connector: e }) { + let t = Ga(), + n = t.connector; + if (n && e.id === n.id) throw new CY(); + try { + t.setState((i) => ({ ...i, status: "connecting" })); + let a = await e.connect({ chainId: r }); + return ( + t.setLastUsedConnector(e.id), + t.setState((i) => ({ + ...i, + connector: e, + chains: e?.chains, + data: a, + status: "connected", + })), + t.storage.setItem("connected", !0), + { ...a, connector: e } + ); + } catch (a) { + throw ( + (t.setState((i) => ({ + ...i, + status: i.connector ? "connected" : "disconnected", + })), + a) + ); + } + } + async function FVe() { + let r = Ga(); + r.connector && (await r.connector.disconnect()), + r.clearState(), + r.storage.removeItem("connected"); + } + async function jVe({ address: r, chainId: e, formatUnits: t = "ether" }) { + async function n({ abi: a }) { + let i = { address: r, abi: a, chainId: e }, + [s, c, l, d] = await g6({ + allowFailure: !1, + contracts: [ + { ...i, functionName: "decimals" }, + { ...i, functionName: "name" }, + { ...i, functionName: "symbol" }, + { ...i, functionName: "totalSupply" }, + ], + }); + return { + address: r, + decimals: s, + name: c, + symbol: l, + totalSupply: { formatted: (0, h6.formatUnits)(d, t), value: d }, + }; + } + try { + return await n({ abi: VR }); + } catch (a) { + if (a instanceof B2) { + let { name: i, symbol: s, ...c } = await n({ abi: WVe }); + return { + name: (0, h6.parseBytes32String)(i), + symbol: (0, h6.parseBytes32String)(s), + ...c, + }; + } + throw a; + } + } + function S0({ address: r, abi: e, signerOrProvider: t }) { + return new KVe.Contract(r, e, t); + } + async function bY({ + abi: r, + address: e, + chainId: t, + functionName: n, + overrides: a, + signer: i, + ...s + }) { + let c = i ?? (await Kf({ chainId: t })); + if (!c) throw new dc(); + t && y6({ chainId: t, signer: c }); + let l = S0({ address: e, abi: r, signerOrProvider: c }), + d = s.args, + m = zR({ contract: l, functionName: n, args: d }), + w = l.populateTransaction[m]; + if (!w) throw new XR({ address: e, functionName: m }); + let C = [...(d ?? []), ...(a ? [a] : [])], + I = await w(...C), + k = I.gasLimit || (await c.estimateGas(I)); + return { + abi: hY({ abi: r, functionName: n }), + address: e, + chainId: t, + functionName: n, + mode: "prepared", + request: { ...I, gasLimit: k }, + }; + } + function vs({ chainId: r } = {}) { + let e = Ga(); + return (r && e.getProvider({ chainId: r })) || e.provider; + } + function R2({ chainId: r } = {}) { + let e = Ga(); + return (r && e.getWebSocketProvider({ chainId: r })) || e.webSocketProvider; + } + function VVe(r, e) { + let t = Ga(), + n = async () => e(vs(r)); + return t.subscribe(({ provider: i }) => i, n); + } + function GVe(r, e) { + let t = Ga(), + n = async () => e(R2(r)); + return t.subscribe(({ webSocketProvider: i }) => i, n); + } + async function GR({ + allowFailure: r = !0, + chainId: e, + contracts: t, + overrides: n, + }) { + let a = vs({ chainId: e }); + if (!a.chains) throw new jR(); + let i = a.chains.find((m) => m.id === e) || a.chains[0]; + if (!i) throw new jR(); + if (!i?.contracts?.multicall3) throw new f6({ chain: i }); + if ( + typeof n?.blockTag == "number" && + n?.blockTag < (i.contracts.multicall3.blockCreated ?? 0) + ) + throw new f6({ blockNumber: n?.blockTag, chain: i }); + let s = S0({ + address: i.contracts.multicall3.address, + abi: Amr, + signerOrProvider: a, + }), + l = [ + t.map(({ address: m, abi: w, functionName: C, ...I }) => { + let { args: k } = I || {}, + O = S0({ address: m, abi: w }), + D = k ?? [], + W = zR({ contract: O, functionName: C, args: k }); + try { + O[W] || P2(`"${W}" is not in the interface for contract "${m}"`); + let j = O.interface.encodeFunctionData(W, D); + return { target: m, allowFailure: r, callData: j }; + } catch (H) { + if (!r) throw H; + return { target: m, allowFailure: r, callData: "0x" }; + } + }), + ...(n ? [n] : []), + ]; + return (await s.aggregate3(...l)).map( + ({ returnData: m, success: w }, C) => { + let { address: I, abi: k, functionName: O, ...D } = t[C], + W = S0({ address: I, abi: k }), + H = D.args, + j = zR({ contract: W, functionName: O, args: H }); + if (!w) { + let V; + try { + W.interface.decodeFunctionResult(j, m); + } catch (te) { + if ( + ((V = new m6({ + address: I, + args: H, + chainId: i.id, + functionName: j, + errorMessage: te.message, + })), + !r) + ) + throw V; + P2(V.message); + } + return null; + } + if (m === "0x") { + let V = new e7({ + address: I, + args: H, + chainId: i.id, + functionName: j, + }); + if (!r) throw V; + return P2(V.message), null; + } + try { + let V = W.interface.decodeFunctionResult(j, m); + return Array.isArray(V) && V.length === 1 ? V[0] : V; + } catch (V) { + let te = new B2({ + address: I, + args: H, + chainId: i.id, + functionName: j, + errorMessage: V.message, + }); + if (!r) throw te; + return P2(te.message), null; + } + } + ); + } + async function YR({ + address: r, + chainId: e, + abi: t, + functionName: n, + overrides: a, + ...i + }) { + let s = vs({ chainId: e }), + c = S0({ address: r, abi: t, signerOrProvider: s }), + l = i.args, + d = zR({ contract: c, functionName: n, args: l }), + m = c[d]; + if (!m) throw new XR({ address: r, functionName: d }); + let w = [...(l ?? []), ...(a ? [a] : [])]; + return m?.(...w); + } + async function g6({ allowFailure: r = !0, contracts: e, overrides: t }) { + try { + let n = vs(), + a = e.reduce((l, d, m) => { + let w = d.chainId ?? n.network.chainId; + return { ...l, [w]: [...(l[w] || []), { contract: d, index: m }] }; + }, {}), + i = () => + Object.entries(a).map(([l, d]) => + GR({ + allowFailure: r, + chainId: parseInt(l), + contracts: d.map(({ contract: m }) => m), + overrides: t, + }) + ), + s; + r + ? (s = (await Promise.allSettled(i())) + .map((l) => { + if (l.status === "fulfilled") return l.value; + if (l.reason instanceof f6) + throw (P2(l.reason.message), l.reason); + return null; + }) + .flat()) + : (s = (await Promise.all(i())).flat()); + let c = Object.values(a) + .map((l) => l.map(({ index: d }) => d)) + .flat(); + return s.reduce((l, d, m) => (l && (l[c[m]] = d), l), []); + } catch (n) { + if (n instanceof B2 || n instanceof e7 || n instanceof m6) throw n; + let a = () => e.map((i) => YR({ ...i, overrides: t })); + return r + ? (await Promise.allSettled(a())).map((i, s) => { + if (i.status === "fulfilled") return i.value; + let { address: c, args: l, chainId: d, functionName: m } = e[s], + w = new m6({ + address: c, + functionName: m, + chainId: d ?? 1, + args: l, + errorMessage: i.reason, + }); + return P2(w.message), null; + }) + : await Promise.all(a()); + } + } + function YVe({ address: r, abi: e, chainId: t, eventName: n, once: a }, i) { + let s = (...w) => i(...w), + c, + l = async () => { + c && c?.off(n, s); + let w = R2({ chainId: t }) || vs({ chainId: t }); + (c = S0({ address: r, abi: e, signerOrProvider: w })), + a ? c.once(n, s) : c.on(n, s); + }; + l(); + let m = Ga().subscribe( + ({ provider: w, webSocketProvider: C }) => ({ + provider: w, + webSocketProvider: C, + }), + l, + { equalityFn: nd } + ); + return () => { + c?.off(n, s), m(); + }; + } + async function $R({ chainId: r } = {}) { + return await vs({ chainId: r }).getBlockNumber(); + } + function b6(r, e) { + let t = Emr(e, 1), + n, + a = (d) => { + n && n?.off("block", t), d.on("block", t), (n = d); + }, + i = R2({ chainId: r.chainId }) ?? vs({ chainId: r.chainId }); + r.listen && a(i); + let s = !0, + l = Ga().subscribe( + ({ provider: d, webSocketProvider: m }) => ({ + provider: d, + webSocketProvider: m, + }), + async ({ provider: d, webSocketProvider: m }) => { + let w = m ?? d; + r.listen && !r.chainId && w && a(w); + let C = await $R({ chainId: r.chainId }); + !s || e(C); + }, + { equalityFn: nd } + ); + return () => { + (s = !1), l(), i?.off("block", t), n?.off("block", t); + }; + } + function $Ve(r, e) { + let t = Ga(), + n = async () => e(await GR(r)), + a = r.listenToBlock ? b6({ listen: !0 }, n) : void 0, + i = t.subscribe(({ provider: s }) => s, n); + return () => { + i(), a?.(); + }; + } + function JVe(r, e) { + let t = Ga(), + n = async () => e(await YR(r)), + a = r.listenToBlock ? b6({ listen: !0 }, n) : void 0, + i = t.subscribe(({ provider: s }) => s, n); + return () => { + i(), a?.(); + }; + } + function ZVe(r, e) { + let t = Ga(), + n = async () => e(await g6(r)), + a = r.listenToBlock ? b6({ listen: !0 }, n) : void 0, + i = t.subscribe(({ provider: s }) => s, n); + return () => { + i(), a?.(); + }; + } + async function vY({ chainId: r, hash: e }) { + return vs({ chainId: r }).getTransaction(e); + } + async function wY({ chainId: r, name: e }) { + let n = await vs({ chainId: r }).resolveName(e); + try { + return n ? (0, XVe.getAddress)(n) : null; + } catch { + return null; + } + } + async function eGe({ address: r, chainId: e }) { + return await vs({ chainId: e }).getAvatar(r); + } + async function rGe({ address: r, chainId: e }) { + return vs({ chainId: e }).lookupAddress((0, tGe.getAddress)(r)); + } + async function nGe({ chainId: r, name: e }) { + return await vs({ chainId: r }).getResolver(e); + } + async function aGe({ chainId: r, request: e, signer: t }) { + let n = t ?? (await Kf({ chainId: r })); + if (!n) throw new dc(); + r && y6({ chainId: r, signer: n }); + let [a, i] = await Promise.all([ + (0, QVe.isAddress)(e.to) ? Promise.resolve(e.to) : wY({ name: e.to }), + e.gasLimit ? Promise.resolve(e.gasLimit) : n.estimateGas(e), + ]); + if (!a) throw new Error("Could not resolve ENS name"); + return { + ...(r ? { chainId: r } : {}), + request: { ...e, gasLimit: i, to: a }, + mode: "prepared", + }; + } + async function _Y({ chainId: r, mode: e, request: t }) { + let n = await Kf(); + if (!n) throw new dc(); + if (e === "prepared") { + if (!t.gasLimit) throw new Error("`gasLimit` is required"); + if (!t.to) throw new Error("`to` is required"); + } + r && y6({ chainId: r, signer: n }); + try { + let a = n.connectUnchecked?.(), + { hash: i, wait: s } = await (a ?? n).sendTransaction(t); + return { hash: i, wait: s }; + } catch (a) { + throw a.code === 4001 || a.code === "ACTION_REJECTED" ? new jf(a) : a; + } + } + async function sGe({ chainId: r, formatUnits: e = "wei" } = {}) { + let n = await vs({ chainId: r }).getFeeData(), + a = { + gasPrice: n.gasPrice ? (0, UR.formatUnits)(n.gasPrice, e) : null, + maxFeePerGas: n.maxFeePerGas + ? (0, UR.formatUnits)(n.maxFeePerGas, e) + : null, + maxPriorityFeePerGas: n.maxPriorityFeePerGas + ? (0, UR.formatUnits)(n.maxPriorityFeePerGas, e) + : null, + }; + return { ...n, formatted: a }; + } + async function xY({ + chainId: r, + confirmations: e = 1, + hash: t, + onSpeedUp: n, + timeout: a = 0, + }) { + let i = vs({ chainId: r }), + [s, c] = await Promise.all([$R(), vY({ hash: t })]), + l = null; + e !== 0 && + c?.to && + (l = { + data: c.data, + from: c.from, + nonce: c.nonce, + startBlock: s, + to: c.to, + value: c.value, + }); + try { + let d = await i._waitForTransaction(t, e, a, l); + if (d.status === 0) { + let m = await i.call(d, d.blockNumber), + w = (0, iGe.toUtf8String)(`0x${m.substring(138)}`); + throw new Error(w); + } + return d; + } catch (d) { + if (d?.reason === "repriced") + return ( + n?.(d.replacement), + xY({ hash: d.replacement?.hash, confirmations: e, timeout: a }) + ); + throw d; + } + } + function oGe(r, e) { + let t, + n = (c) => { + t && t?.off("pending", e), c.on("pending", e), (t = c); + }, + a = R2({ chainId: r.chainId }) ?? vs({ chainId: r.chainId }); + n(a); + let s = Ga().subscribe( + ({ provider: c, webSocketProvider: l }) => ({ + provider: c, + webSocketProvider: l, + }), + async ({ provider: c, webSocketProvider: l }) => { + let d = l ?? c; + !r.chainId && d && n(d); + }, + { equalityFn: nd } + ); + return () => { + s(), a?.off("pending", e), t?.off("pending", e); + }; + } + async function cGe({ + address: r, + args: e, + chainId: t, + abi: n, + functionName: a, + mode: i, + overrides: s, + request: c, + }) { + let l = await Kf(); + if (!l) throw new dc(); + if ((t && y6({ chainId: t, signer: l }), i === "prepared" && !c)) + throw new Error("`request` is required"); + let d = + i === "recklesslyUnprepared" + ? ( + await bY({ + address: r, + args: e, + chainId: t, + abi: n, + functionName: a, + overrides: s, + }) + ).request + : c; + return await _Y({ request: d, mode: "prepared" }); + } + async function uGe({ address: r, chainId: e, formatUnits: t, token: n }) { + let a = Ga(), + i = vs({ chainId: e }); + if (n) { + let d = async ({ abi: m }) => { + let w = { abi: m, address: n, chainId: e }, + [C, I, k] = await g6({ + allowFailure: !1, + contracts: [ + { ...w, functionName: "balanceOf", args: [r] }, + { ...w, functionName: "decimals" }, + { ...w, functionName: "symbol" }, + ], + }); + return { + decimals: I, + formatted: (0, p6.formatUnits)(C ?? "0", t ?? I), + symbol: k, + value: C, + }; + }; + try { + return await d({ abi: VR }); + } catch (m) { + if (m instanceof B2) { + let { symbol: w, ...C } = await d({ abi: WVe }); + return { symbol: (0, p6.parseBytes32String)(w), ...C }; + } + throw m; + } + } + let s = [...(a.provider.chains || []), ...(a.chains ?? [])], + c = await i.getBalance(r), + l = s.find((d) => d.id === i.network.chainId); + return { + decimals: l?.nativeCurrency.decimals ?? 18, + formatted: (0, p6.formatUnits)(c ?? "0", t ?? "ether"), + symbol: l?.nativeCurrency.symbol ?? "ETH", + value: c, + }; + } + async function Kf({ chainId: r } = {}) { + return (await Ga().connector?.getSigner?.({ chainId: r })) || null; + } + function TY() { + let { data: r, connector: e, status: t } = Ga(); + switch (t) { + case "connected": + return { + address: r?.account, + connector: e, + isConnected: !0, + isConnecting: !1, + isDisconnected: !1, + isReconnecting: !1, + status: t, + }; + case "reconnecting": + return { + address: r?.account, + connector: e, + isConnected: !!r?.account, + isConnecting: !1, + isDisconnected: !1, + isReconnecting: !0, + status: t, + }; + case "connecting": + return { + address: r?.account, + connector: e, + isConnected: !1, + isConnecting: !0, + isDisconnected: !1, + isReconnecting: !1, + status: t, + }; + case "disconnected": + return { + address: void 0, + connector: void 0, + isConnected: !1, + isConnecting: !1, + isDisconnected: !0, + isReconnecting: !1, + status: t, + }; + } + } + function JR() { + let r = Ga(), + e = r.data?.chain?.id, + t = r.chains ?? [], + n = [...(r.provider.chains || []), ...t].find((a) => a.id === e) ?? { + id: e, + name: `Chain ${e}`, + network: `${e}`, + nativeCurrency: { name: "Ether", decimals: 18, symbol: "ETH" }, + rpcUrls: { default: { http: [""] }, public: { http: [""] } }, + }; + return { chain: e ? { ...n, ...r.data?.chain, id: e } : void 0, chains: t }; + } + async function lGe(r) { + try { + let e = await Kf(); + if (!e) throw new dc(); + return await e.signMessage(r.message); + } catch (e) { + throw e.code === 4001 || e.code === "ACTION_REJECTED" ? new jf(e) : e; + } + } + async function dGe({ domain: r, types: e, value: t }) { + let n = await Kf(); + if (!n) throw new dc(); + let { chainId: a } = r, + i = a ? S2(a) : void 0; + i && y6({ chainId: i, signer: n }); + let s = Object.entries(e) + .filter(([c]) => c !== "EIP712Domain") + .reduce( + (c, [l, d]) => ((c[l] = d.filter((m) => m.type !== "EIP712Domain")), c), + {} + ); + try { + return await n._signTypedData(r, s, t); + } catch (c) { + throw c.code === 4001 || c.code === "ACTION_REJECTED" ? new jf(c) : c; + } + } + async function pGe({ chainId: r }) { + let { connector: e } = Ga(); + if (!e) throw new dc(); + if (!e.switchChain) throw new IY({ connector: e }); + return e.switchChain(r); + } + function hGe(r, { selector: e = (t) => t } = {}) { + let t = Ga(), + n = () => r(TY()); + return t.subscribe( + ({ data: i, connector: s, status: c }) => + e({ address: i?.account, connector: s, status: c }), + n, + { equalityFn: nd } + ); + } + function fGe(r, { selector: e = (t) => t } = {}) { + let t = Ga(), + n = () => r(JR()); + return t.subscribe( + ({ data: i, chains: s }) => e({ chainId: i?.chain?.id, chains: s }), + n, + { equalityFn: nd } + ); + } + function mGe({ chainId: r }, e) { + let t = Ga(), + n = async () => { + let i = await Kf({ chainId: r }); + return Ga().connector ? e(i) : e(null); + }; + return t.subscribe( + ({ data: i, connector: s }) => ({ + account: i?.account, + chainId: i?.chain?.id, + connector: s, + }), + n, + { equalityFn: nd } + ); + } + var AVe, + MVe, + PVe, + KR, + RVe, + BVe, + NVe, + p6, + h6, + KVe, + QVe, + XVe, + tGe, + iGe, + UR, + cY, + mY, + IVe, + M2, + d6, + lY, + LVe, + gY, + dY, + VR, + WVe, + UVe, + Amr, + HVe, + zVe, + ZR, + QR, + qR, + f6, + EY, + u6, + CY, + dc, + XR, + e7, + m6, + B2, + jR, + FR, + WR, + IY, + jf, + yGe = yt(() => { + _(); + x(); + oY(); + lVe(); + AVe = ar(wt(), 1); + wVe(); + TVe(); + (MVe = ar(wt(), 1)), + (PVe = ar(wt(), 1)), + (KR = ar(hi(), 1)), + (RVe = ar(wt(), 1)), + (BVe = ar(hi(), 1)), + (NVe = ar(wt(), 1)), + (p6 = ar(hi(), 1)), + (h6 = ar(hi(), 1)), + (KVe = ar(wt(), 1)); + lb(); + lb(); + (QVe = ar(hi(), 1)), + (XVe = ar(hi(), 1)), + (tGe = ar(hi(), 1)), + (iGe = ar(hi(), 1)), + (UR = ar(hi(), 1)); + lb(); + lb(); + lb(); + lb(); + cY = (r, { find: e, replace: t }) => + r && e(r) + ? t(r) + : typeof r != "object" + ? r + : Array.isArray(r) + ? r.map((n) => cY(n, { find: e, replace: t })) + : r instanceof Object + ? Object.entries(r).reduce( + (n, [a, i]) => ({ ...n, [a]: cY(i, { find: e, replace: t }) }), + {} + ) + : r; + mY = { + getItem: (r) => "", + setItem: (r, e) => null, + removeItem: (r) => null, + }; + (IVe = "store"), + (gY = class { + constructor({ + autoConnect: r = !1, + connectors: e = [new ub()], + provider: t, + storage: n = yY({ + storage: typeof window < "u" ? window.localStorage : mY, + }), + logger: a = { warn: console.warn }, + webSocketProvider: i, + }) { + BR(this, lY), + (this.providers = new Map()), + (this.webSocketProviders = new Map()), + BR(this, M2, void 0), + BR(this, d6, void 0), + (this.config = { + autoConnect: r, + connectors: e, + logger: a, + provider: t, + storage: n, + webSocketProvider: i, + }); + let s = "disconnected", + c; + if (r) + try { + let d = n.getItem(IVe)?.state?.data; + (s = d?.account ? "reconnecting" : "connecting"), + (c = d?.chain?.id); + } catch {} + (this.store = xVe( + bVe( + vVe( + () => ({ + connectors: typeof e == "function" ? e() : e, + provider: this.getProvider({ chainId: c }), + status: s, + webSocketProvider: this.getWebSocketProvider({ + chainId: c, + }), + }), + { + name: IVe, + storage: n, + partialize: (l) => ({ + ...(r && { + data: { + account: l?.data?.account, + chain: l?.data?.chain, + }, + }), + chains: l?.chains, + }), + version: 2, + } + ) + ) + )), + (this.storage = n), + s6(this, d6, n?.getItem("wallet")), + uVe(this, lY, LVe).call(this), + r && + typeof window < "u" && + setTimeout(async () => await this.autoConnect(), 0); + } + get chains() { + return this.store.getState().chains; + } + get connectors() { + return this.store.getState().connectors; + } + get connector() { + return this.store.getState().connector; + } + get data() { + return this.store.getState().data; + } + get error() { + return this.store.getState().error; + } + get lastUsedChainId() { + return this.data?.chain?.id; + } + get provider() { + return this.store.getState().provider; + } + get status() { + return this.store.getState().status; + } + get subscribe() { + return this.store.subscribe; + } + get webSocketProvider() { + return this.store.getState().webSocketProvider; + } + setState(r) { + let e = typeof r == "function" ? r(this.store.getState()) : r; + this.store.setState(e, !0); + } + clearState() { + this.setState((r) => ({ + ...r, + chains: void 0, + connector: void 0, + data: void 0, + error: void 0, + status: "disconnected", + })); + } + async destroy() { + this.connector && (await this.connector.disconnect?.()), + s6(this, M2, !1), + this.clearState(), + this.store.destroy(); + } + async autoConnect() { + if (RR(this, M2)) return; + s6(this, M2, !0), + this.setState((t) => ({ + ...t, + status: t.data?.account ? "reconnecting" : "connecting", + })); + let r = RR(this, d6) + ? [...this.connectors].sort((t) => + t.id === RR(this, d6) ? -1 : 1 + ) + : this.connectors, + e = !1; + for (let t of r) { + if (!t.ready || !t.isAuthorized || !(await t.isAuthorized())) + continue; + let a = await t.connect(); + this.setState((i) => ({ + ...i, + connector: t, + chains: t?.chains, + data: a, + status: "connected", + })), + (e = !0); + break; + } + return ( + e || + this.setState((t) => ({ + ...t, + data: void 0, + status: "disconnected", + })), + s6(this, M2, !1), + this.data + ); + } + getProvider({ bust: r, chainId: e } = {}) { + let t = this.providers.get(e ?? -1); + if (t && !r) return t; + let { provider: n } = this.config; + return ( + (t = typeof n == "function" ? n({ chainId: e }) : n), + this.providers.set(e ?? -1, t), + t + ); + } + getWebSocketProvider({ bust: r, chainId: e } = {}) { + let t = this.webSocketProviders.get(e ?? -1); + if (t && !r) return t; + let { webSocketProvider: n } = this.config; + return ( + (t = typeof n == "function" ? n({ chainId: e }) : n), + t && this.webSocketProviders.set(e ?? -1, t), + t + ); + } + setLastUsedConnector(r = null) { + this.storage?.setItem("wallet", r); + } + }); + M2 = new WeakMap(); + d6 = new WeakMap(); + lY = new WeakSet(); + LVe = function () { + let r = (c) => { + this.setState((l) => ({ ...l, data: { ...l.data, ...c } })); + }, + e = () => { + this.clearState(); + }, + t = (c) => { + this.setState((l) => ({ ...l, error: c })); + }; + this.store.subscribe( + ({ connector: c }) => c, + (c, l) => { + l?.off?.("change", r), + l?.off?.("disconnect", e), + l?.off?.("error", t), + c && + (c.on?.("change", r), + c.on?.("disconnect", e), + c.on?.("error", t)); + } + ); + let { provider: n, webSocketProvider: a } = this.config; + (typeof n == "function" || typeof a == "function") && + this.store.subscribe( + ({ data: c }) => c?.chain?.id, + (c) => { + this.setState((l) => ({ + ...l, + provider: this.getProvider({ bust: !0, chainId: c }), + webSocketProvider: this.getWebSocketProvider({ + bust: !0, + chainId: c, + }), + })); + } + ); + }; + (VR = [ + { + type: "event", + name: "Approval", + inputs: [ + { indexed: !0, name: "owner", type: "address" }, + { indexed: !0, name: "spender", type: "address" }, + { indexed: !1, name: "value", type: "uint256" }, + ], + }, + { + type: "event", + name: "Transfer", + inputs: [ + { indexed: !0, name: "from", type: "address" }, + { indexed: !0, name: "to", type: "address" }, + { indexed: !1, name: "value", type: "uint256" }, + ], + }, + { + type: "function", + name: "allowance", + stateMutability: "view", + inputs: [ + { name: "owner", type: "address" }, + { name: "spender", type: "address" }, + ], + outputs: [{ name: "", type: "uint256" }], + }, + { + type: "function", + name: "approve", + stateMutability: "nonpayable", + inputs: [ + { name: "spender", type: "address" }, + { name: "amount", type: "uint256" }, + ], + outputs: [{ name: "", type: "bool" }], + }, + { + type: "function", + name: "balanceOf", + stateMutability: "view", + inputs: [{ name: "account", type: "address" }], + outputs: [{ name: "", type: "uint256" }], + }, + { + type: "function", + name: "decimals", + stateMutability: "view", + inputs: [], + outputs: [{ name: "", type: "uint8" }], + }, + { + type: "function", + name: "name", + stateMutability: "view", + inputs: [], + outputs: [{ name: "", type: "string" }], + }, + { + type: "function", + name: "symbol", + stateMutability: "view", + inputs: [], + outputs: [{ name: "", type: "string" }], + }, + { + type: "function", + name: "totalSupply", + stateMutability: "view", + inputs: [], + outputs: [{ name: "", type: "uint256" }], + }, + { + type: "function", + name: "transfer", + stateMutability: "nonpayable", + inputs: [ + { name: "recipient", type: "address" }, + { name: "amount", type: "uint256" }, + ], + outputs: [{ name: "", type: "bool" }], + }, + { + type: "function", + name: "transferFrom", + stateMutability: "nonpayable", + inputs: [ + { name: "sender", type: "address" }, + { name: "recipient", type: "address" }, + { name: "amount", type: "uint256" }, + ], + outputs: [{ name: "", type: "bool" }], + }, + ]), + (WVe = [ + { + type: "event", + name: "Approval", + inputs: [ + { indexed: !0, name: "owner", type: "address" }, + { indexed: !0, name: "spender", type: "address" }, + { indexed: !1, name: "value", type: "uint256" }, + ], + }, + { + type: "event", + name: "Transfer", + inputs: [ + { indexed: !0, name: "from", type: "address" }, + { indexed: !0, name: "to", type: "address" }, + { indexed: !1, name: "value", type: "uint256" }, + ], + }, + { + type: "function", + name: "allowance", + stateMutability: "view", + inputs: [ + { name: "owner", type: "address" }, + { name: "spender", type: "address" }, + ], + outputs: [{ name: "", type: "uint256" }], + }, + { + type: "function", + name: "approve", + stateMutability: "nonpayable", + inputs: [ + { name: "spender", type: "address" }, + { name: "amount", type: "uint256" }, + ], + outputs: [{ name: "", type: "bool" }], + }, + { + type: "function", + name: "balanceOf", + stateMutability: "view", + inputs: [{ name: "account", type: "address" }], + outputs: [{ name: "", type: "uint256" }], + }, + { + type: "function", + name: "decimals", + stateMutability: "view", + inputs: [], + outputs: [{ name: "", type: "uint8" }], + }, + { + type: "function", + name: "name", + stateMutability: "view", + inputs: [], + outputs: [{ name: "", type: "bytes32" }], + }, + { + type: "function", + name: "symbol", + stateMutability: "view", + inputs: [], + outputs: [{ name: "", type: "bytes32" }], + }, + { + type: "function", + name: "totalSupply", + stateMutability: "view", + inputs: [], + outputs: [{ name: "", type: "uint256" }], + }, + { + type: "function", + name: "transfer", + stateMutability: "nonpayable", + inputs: [ + { name: "recipient", type: "address" }, + { name: "amount", type: "uint256" }, + ], + outputs: [{ name: "", type: "bool" }], + }, + { + type: "function", + name: "transferFrom", + stateMutability: "nonpayable", + inputs: [ + { name: "sender", type: "address" }, + { name: "recipient", type: "address" }, + { name: "amount", type: "uint256" }, + ], + outputs: [{ name: "", type: "bool" }], + }, + ]), + (UVe = [ + { + type: "event", + name: "Approval", + inputs: [ + { indexed: !0, name: "owner", type: "address" }, + { indexed: !0, name: "spender", type: "address" }, + { indexed: !0, name: "tokenId", type: "uint256" }, + ], + }, + { + type: "event", + name: "ApprovalForAll", + inputs: [ + { indexed: !0, name: "owner", type: "address" }, + { indexed: !0, name: "operator", type: "address" }, + { indexed: !1, name: "approved", type: "bool" }, + ], + }, + { + type: "event", + name: "Transfer", + inputs: [ + { indexed: !0, name: "from", type: "address" }, + { indexed: !0, name: "to", type: "address" }, + { indexed: !0, name: "tokenId", type: "uint256" }, + ], + }, + { + type: "function", + name: "approve", + stateMutability: "payable", + inputs: [ + { name: "spender", type: "address" }, + { name: "tokenId", type: "uint256" }, + ], + outputs: [], + }, + { + type: "function", + name: "balanceOf", + stateMutability: "view", + inputs: [{ name: "account", type: "address" }], + outputs: [{ name: "", type: "uint256" }], + }, + { + type: "function", + name: "getApproved", + stateMutability: "view", + inputs: [{ name: "tokenId", type: "uint256" }], + outputs: [{ name: "", type: "address" }], + }, + { + type: "function", + name: "isApprovedForAll", + stateMutability: "view", + inputs: [ + { name: "owner", type: "address" }, + { name: "operator", type: "address" }, + ], + outputs: [{ name: "", type: "bool" }], + }, + { + type: "function", + name: "name", + stateMutability: "view", + inputs: [], + outputs: [{ name: "", type: "string" }], + }, + { + type: "function", + name: "ownerOf", + stateMutability: "view", + inputs: [{ name: "tokenId", type: "uint256" }], + outputs: [{ name: "owner", type: "address" }], + }, + { + type: "function", + name: "safeTransferFrom", + stateMutability: "payable", + inputs: [ + { name: "from", type: "address" }, + { name: "to", type: "address" }, + { name: "tokenId", type: "uint256" }, + ], + outputs: [], + }, + { + type: "function", + name: "safeTransferFrom", + stateMutability: "nonpayable", + inputs: [ + { name: "from", type: "address" }, + { name: "to", type: "address" }, + { name: "id", type: "uint256" }, + { name: "data", type: "bytes" }, + ], + outputs: [], + }, + { + type: "function", + name: "setApprovalForAll", + stateMutability: "nonpayable", + inputs: [ + { name: "operator", type: "address" }, + { name: "approved", type: "bool" }, + ], + outputs: [], + }, + { + type: "function", + name: "symbol", + stateMutability: "view", + inputs: [], + outputs: [{ name: "", type: "string" }], + }, + { + type: "function", + name: "tokenByIndex", + stateMutability: "view", + inputs: [{ name: "index", type: "uint256" }], + outputs: [{ name: "", type: "uint256" }], + }, + { + type: "function", + name: "tokenByIndex", + stateMutability: "view", + inputs: [ + { name: "owner", type: "address" }, + { name: "index", type: "uint256" }, + ], + outputs: [{ name: "tokenId", type: "uint256" }], + }, + { + type: "function", + name: "tokenURI", + stateMutability: "view", + inputs: [{ name: "tokenId", type: "uint256" }], + outputs: [{ name: "", type: "string" }], + }, + { + type: "function", + name: "totalSupply", + stateMutability: "view", + inputs: [], + outputs: [{ name: "", type: "uint256" }], + }, + { + type: "function", + name: "transferFrom", + stateMutability: "payable", + inputs: [ + { name: "sender", type: "address" }, + { name: "recipient", type: "address" }, + { name: "tokeId", type: "uint256" }, + ], + outputs: [], + }, + ]), + (Amr = [ + { + inputs: [ + { + components: [ + { name: "target", type: "address" }, + { name: "allowFailure", type: "bool" }, + { name: "callData", type: "bytes" }, + ], + name: "calls", + type: "tuple[]", + }, + ], + name: "aggregate3", + outputs: [ + { + components: [ + { name: "success", type: "bool" }, + { name: "returnData", type: "bytes" }, + ], + name: "returnData", + type: "tuple[]", + }, + ], + stateMutability: "view", + type: "function", + }, + ]), + (HVe = [ + { + anonymous: !1, + inputs: [ + { indexed: !0, name: "owner", type: "address" }, + { indexed: !0, name: "spender", type: "address" }, + { indexed: !1, name: "value", type: "uint256" }, + ], + name: "Approval", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { indexed: !0, name: "sender", type: "address" }, + { indexed: !0, name: "receiver", type: "address" }, + { indexed: !1, name: "assets", type: "uint256" }, + { indexed: !1, name: "shares", type: "uint256" }, + ], + name: "Deposit", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { indexed: !0, name: "from", type: "address" }, + { indexed: !0, name: "to", type: "address" }, + { indexed: !1, name: "value", type: "uint256" }, + ], + name: "Transfer", + type: "event", + }, + { + anonymous: !1, + inputs: [ + { indexed: !0, name: "sender", type: "address" }, + { indexed: !0, name: "receiver", type: "address" }, + { indexed: !0, name: "owner", type: "address" }, + { indexed: !1, name: "assets", type: "uint256" }, + { indexed: !1, name: "shares", type: "uint256" }, + ], + name: "Withdraw", + type: "event", + }, + { + inputs: [ + { name: "owner", type: "address" }, + { name: "spender", type: "address" }, + ], + name: "allowance", + outputs: [{ name: "", type: "uint256" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { name: "spender", type: "address" }, + { name: "amount", type: "uint256" }, + ], + name: "approve", + outputs: [{ name: "", type: "bool" }], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [], + name: "asset", + outputs: [{ name: "assetTokenAddress", type: "address" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [{ name: "account", type: "address" }], + name: "balanceOf", + outputs: [{ name: "", type: "uint256" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [{ name: "shares", type: "uint256" }], + name: "convertToAssets", + outputs: [{ name: "assets", type: "uint256" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [{ name: "assets", type: "uint256" }], + name: "convertToShares", + outputs: [{ name: "shares", type: "uint256" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { name: "assets", type: "uint256" }, + { name: "receiver", type: "address" }, + ], + name: "deposit", + outputs: [{ name: "shares", type: "uint256" }], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [{ name: "caller", type: "address" }], + name: "maxDeposit", + outputs: [{ name: "maxAssets", type: "uint256" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [{ name: "caller", type: "address" }], + name: "maxMint", + outputs: [{ name: "maxShares", type: "uint256" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [{ name: "owner", type: "address" }], + name: "maxRedeem", + outputs: [{ name: "maxShares", type: "uint256" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [{ name: "owner", type: "address" }], + name: "maxWithdraw", + outputs: [{ name: "maxAssets", type: "uint256" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { name: "shares", type: "uint256" }, + { name: "receiver", type: "address" }, + ], + name: "mint", + outputs: [{ name: "assets", type: "uint256" }], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [{ name: "assets", type: "uint256" }], + name: "previewDeposit", + outputs: [{ name: "shares", type: "uint256" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [{ name: "shares", type: "uint256" }], + name: "previewMint", + outputs: [{ name: "assets", type: "uint256" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [{ name: "shares", type: "uint256" }], + name: "previewRedeem", + outputs: [{ name: "assets", type: "uint256" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [{ name: "assets", type: "uint256" }], + name: "previewWithdraw", + outputs: [{ name: "shares", type: "uint256" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { name: "shares", type: "uint256" }, + { name: "receiver", type: "address" }, + { name: "owner", type: "address" }, + ], + name: "redeem", + outputs: [{ name: "assets", type: "uint256" }], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [], + name: "totalAssets", + outputs: [{ name: "totalManagedAssets", type: "uint256" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "totalSupply", + outputs: [{ name: "", type: "uint256" }], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { name: "to", type: "address" }, + { name: "amount", type: "uint256" }, + ], + name: "transfer", + outputs: [{ name: "", type: "bool" }], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { name: "from", type: "address" }, + { name: "to", type: "address" }, + { name: "amount", type: "uint256" }, + ], + name: "transferFrom", + outputs: [{ name: "", type: "bool" }], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { name: "assets", type: "uint256" }, + { name: "receiver", type: "address" }, + { name: "owner", type: "address" }, + ], + name: "withdraw", + outputs: [{ name: "shares", type: "uint256" }], + stateMutability: "nonpayable", + type: "function", + }, + ]), + (zVe = ["wei", "kwei", "mwei", "gwei", "szabo", "finney", "ether"]); + (ZR = class extends Error { + constructor(r, e) { + let { cause: t, code: n, data: a } = e; + if (!Number.isInteger(n)) + throw new Error('"code" must be an integer.'); + if (!r || typeof r != "string") + throw new Error('"message" must be a nonempty string.'); + super(r), (this.cause = t), (this.code = n), (this.data = a); + } + }), + (QR = class extends ZR { + constructor(r, e) { + let { cause: t, code: n, data: a } = e; + if (!(Number.isInteger(n) && n >= 1e3 && n <= 4999)) + throw new Error( + '"code" must be an integer such that: 1000 <= code <= 4999' + ); + super(r, { cause: t, code: n, data: a }); + } + }), + (qR = class extends Error { + constructor() { + super(...arguments), + (this.name = "AddChainError"), + (this.message = "Error adding chain"); + } + }), + (f6 = class extends Error { + constructor({ blockNumber: r, chain: e }) { + super( + `Chain "${e.name}" does not support multicall${ + r ? ` on block ${r}` : "" + }.` + ), + (this.name = "ChainDoesNotSupportMulticall"); + } + }), + (EY = class extends Error { + constructor({ activeChain: r, targetChain: e }) { + super(`Chain mismatch: Expected "${e}", received "${r}".`), + (this.name = "ChainMismatchError"); + } + }), + (u6 = class extends Error { + constructor({ chainId: r, connectorId: e }) { + super(`Chain "${r}" not configured for connector "${e}".`), + (this.name = "ChainNotConfigured"); + } + }), + (CY = class extends Error { + constructor() { + super(...arguments), + (this.name = "ConnectorAlreadyConnectedError"), + (this.message = "Connector already connected"); + } + }), + (dc = class extends Error { + constructor() { + super(...arguments), + (this.name = "ConnectorNotFoundError"), + (this.message = "Connector not found"); + } + }), + (XR = class extends Error { + constructor({ address: r, chainId: e, functionName: t }) { + let { chains: n, network: a } = vs(), + s = n?.find(({ id: c }) => c === (e || a.chainId))?.blockExplorers + ?.default; + super( + [ + `Function "${t}" on contract "${r}" does not exist.`, + ...(s + ? ["", `${s?.name}: ${s?.url}/address/${r}#readContract`] + : []), + ].join(` +`) + ), + (this.name = "ContractMethodDoesNotExistError"); + } + }), + (e7 = class extends Error { + constructor({ address: r, args: e, chainId: t, functionName: n }) { + super( + [ + "Contract read returned an empty response. This could be due to any of the following:", + `- The contract does not have the function "${n}",`, + "- The parameters passed to the contract function may be invalid, or", + "- The address is not a contract.", + "", + "Config:", + JSON.stringify( + { + address: r, + abi: "...", + functionName: n, + chainId: t, + args: e, + }, + null, + 2 + ), + ].join(` +`) + ), + (this.name = "ContractMethodNoResultError"); + } + }), + (m6 = class extends Error { + constructor({ + address: r, + args: e, + chainId: t, + functionName: n, + errorMessage: a, + }) { + super( + [ + "Contract method reverted with an error.", + "", + "Config:", + JSON.stringify( + { + address: r, + abi: "...", + functionName: n, + chainId: t, + args: e, + }, + null, + 2 + ), + "", + `Details: ${a}`, + ].join(` +`) + ), + (this.name = "ContractMethodRevertedError"); + } + }), + (B2 = class extends Error { + constructor({ + address: r, + args: e, + chainId: t, + functionName: n, + errorMessage: a, + }) { + super( + [ + "Failed to decode contract function result.", + "", + "Config:", + JSON.stringify( + { + address: r, + abi: "...", + functionName: n, + chainId: t, + args: e, + }, + null, + 2 + ), + "", + `Details: ${a}`, + ].join(` +`) + ), + (this.name = "ContractResultDecodeError"); + } + }), + (jR = class extends Error { + constructor() { + super(...arguments), + (this.name = "ProviderChainsNotFound"), + (this.message = [ + "No chains were found on the wagmi provider. Some functions that require a chain may not work.", + "", + "It is recommended to add a list of chains to the provider in `createClient`.", + "", + "Example:", + "", + "```", + "import { getDefaultProvider } from 'ethers'", + "import { chain, createClient } from 'wagmi'", + "", + "createClient({", + " provider: Object.assign(getDefaultProvider(), { chains: [chain.mainnet] })", + "})", + "```", + ].join(` +`)); + } + }), + (FR = class extends ZR { + constructor(r) { + super("Resource unavailable", { cause: r, code: -32002 }), + (this.name = "ResourceUnavailable"); + } + }), + (WR = class extends QR { + constructor(r) { + super("Error switching chain", { cause: r, code: 4902 }), + (this.name = "SwitchChainError"); + } + }), + (IY = class extends Error { + constructor({ connector: r }) { + super(`"${r.name}" does not support programmatic chain switching.`), + (this.name = "SwitchChainNotSupportedError"); + } + }), + (jf = class extends QR { + constructor(r) { + super("User rejected request", { cause: r, code: 4001 }), + (this.name = "UserRejectedRequestError"); + } + }); + }); + var gGe = yt(() => { + _(); + x(); + sY(); + }); + var ip = {}; + gd(ip, { + AddChainError: () => qR, + ChainDoesNotSupportMulticallError: () => f6, + ChainMismatchError: () => EY, + ChainNotConfiguredError: () => u6, + Client: () => gY, + Connector: () => A2, + ConnectorAlreadyConnectedError: () => CY, + ConnectorNotFoundError: () => dc, + ContractMethodDoesNotExistError: () => XR, + ContractMethodNoResultError: () => e7, + ContractMethodRevertedError: () => m6, + ContractResultDecodeError: () => B2, + InjectedConnector: () => ub, + ProviderChainsNotFound: () => jR, + ProviderRpcError: () => QR, + ResourceUnavailableError: () => FR, + RpcError: () => ZR, + SwitchChainError: () => WR, + SwitchChainNotSupportedError: () => IY, + UserRejectedRequestError: () => jf, + configureChains: () => kVe, + connect: () => qVe, + createClient: () => DVe, + createStorage: () => yY, + deepEqual: () => HR, + deserialize: () => pY, + disconnect: () => FVe, + erc20ABI: () => VR, + erc4626ABI: () => HVe, + erc721ABI: () => UVe, + fetchBalance: () => uGe, + fetchBlockNumber: () => $R, + fetchEnsAddress: () => wY, + fetchEnsAvatar: () => eGe, + fetchEnsName: () => rGe, + fetchEnsResolver: () => nGe, + fetchFeeData: () => sGe, + fetchSigner: () => Kf, + fetchToken: () => jVe, + fetchTransaction: () => vY, + getAccount: () => TY, + getClient: () => Ga, + getContract: () => S0, + getNetwork: () => JR, + getProvider: () => vs, + getWebSocketProvider: () => R2, + goerli: () => C2, + mainnet: () => I2, + minimizeContractInterface: () => hY, + multicall: () => GR, + noopStorage: () => mY, + normalizeChainId: () => S2, + parseContractResult: () => OVe, + prepareSendTransaction: () => aGe, + prepareWriteContract: () => bY, + readContract: () => YR, + readContracts: () => g6, + sendTransaction: () => _Y, + serialize: () => fY, + signMessage: () => lGe, + signTypedData: () => dGe, + switchNetwork: () => pGe, + units: () => zVe, + waitForTransaction: () => xY, + watchAccount: () => hGe, + watchBlockNumber: () => b6, + watchContractEvent: () => YVe, + watchMulticall: () => $Ve, + watchNetwork: () => fGe, + watchPendingTransactions: () => oGe, + watchProvider: () => VVe, + watchReadContract: () => JVe, + watchReadContracts: () => ZVe, + watchSigner: () => mGe, + watchWebSocketProvider: () => GVe, + writeContract: () => cGe, + }); + var rd = yt(() => { + _(); + x(); + yGe(); + eY(); + oY(); + gGe(); + }); + var bGe = N((t7) => { + "use strict"; + _(); + x(); + Object.defineProperty(t7, "__esModule", { value: !0 }); + t7.walletLogo = void 0; + var kmr = (r, e) => { + let t; + switch (r) { + case "standard": + return ( + (t = e), + `data:image/svg+xml,%3Csvg width='${e}' height='${t}' viewBox='0 0 1024 1024' fill='none' xmlns='http://www.w3.org/2000/svg'%3E %3Crect width='1024' height='1024' fill='%230052FF'/%3E %3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M152 512C152 710.823 313.177 872 512 872C710.823 872 872 710.823 872 512C872 313.177 710.823 152 512 152C313.177 152 152 313.177 152 512ZM420 396C406.745 396 396 406.745 396 420V604C396 617.255 406.745 628 420 628H604C617.255 628 628 617.255 628 604V420C628 406.745 617.255 396 604 396H420Z' fill='white'/%3E %3C/svg%3E ` + ); + case "circle": + return ( + (t = e), + `data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='${e}' height='${t}' viewBox='0 0 999.81 999.81'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%230052fe;%7D.cls-2%7Bfill:%23fefefe;%7D.cls-3%7Bfill:%230152fe;%7D%3C/style%3E%3C/defs%3E%3Cpath class='cls-1' d='M655-115.9h56c.83,1.59,2.36.88,3.56,1a478,478,0,0,1,75.06,10.42C891.4-81.76,978.33-32.58,1049.19,44q116.7,126,131.94,297.61c.38,4.14-.34,8.53,1.78,12.45v59c-1.58.84-.91,2.35-1,3.56a482.05,482.05,0,0,1-10.38,74.05c-24,106.72-76.64,196.76-158.83,268.93s-178.18,112.82-287.2,122.6c-4.83.43-9.86-.25-14.51,1.77H654c-1-1.68-2.69-.91-4.06-1a496.89,496.89,0,0,1-105.9-18.59c-93.54-27.42-172.78-77.59-236.91-150.94Q199.34,590.1,184.87,426.58c-.47-5.19.25-10.56-1.77-15.59V355c1.68-1,.91-2.7,1-4.06a498.12,498.12,0,0,1,18.58-105.9c26-88.75,72.64-164.9,140.6-227.57q126-116.27,297.21-131.61C645.32-114.57,650.35-113.88,655-115.9Zm377.92,500c0-192.44-156.31-349.49-347.56-350.15-194.13-.68-350.94,155.13-352.29,347.42-1.37,194.55,155.51,352.1,348.56,352.47C876.15,734.23,1032.93,577.84,1032.93,384.11Z' transform='translate(-183.1 115.9)'/%3E%3Cpath class='cls-2' d='M1032.93,384.11c0,193.73-156.78,350.12-351.29,349.74-193-.37-349.93-157.92-348.56-352.47C334.43,189.09,491.24,33.28,685.37,34,876.62,34.62,1032.94,191.67,1032.93,384.11ZM683,496.81q43.74,0,87.48,0c15.55,0,25.32-9.72,25.33-25.21q0-87.48,0-175c0-15.83-9.68-25.46-25.59-25.46H595.77c-15.88,0-25.57,9.64-25.58,25.46q0,87.23,0,174.45c0,16.18,9.59,25.7,25.84,25.71Z' transform='translate(-183.1 115.9)'/%3E%3Cpath class='cls-3' d='M683,496.81H596c-16.25,0-25.84-9.53-25.84-25.71q0-87.23,0-174.45c0-15.82,9.7-25.46,25.58-25.46H770.22c15.91,0,25.59,9.63,25.59,25.46q0,87.47,0,175c0,15.49-9.78,25.2-25.33,25.21Q726.74,496.84,683,496.81Z' transform='translate(-183.1 115.9)'/%3E%3C/svg%3E` + ); + case "text": + return ( + (t = (0.1 * e).toFixed(2)), + `data:image/svg+xml,%3Csvg width='${e}' height='${t}' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 528.15 53.64'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%230052ff;%7D%3C/style%3E%3C/defs%3E%3Ctitle%3ECoinbase_Wordmark_SubBrands_ALL%3C/title%3E%3Cpath class='cls-1' d='M164.45,15a15,15,0,0,0-11.74,5.4V0h-8.64V52.92h8.5V48a15,15,0,0,0,11.88,5.62c10.37,0,18.21-8.21,18.21-19.3S174.67,15,164.45,15Zm-1.3,30.67c-6.19,0-10.73-4.83-10.73-11.31S157,23,163.22,23s10.66,4.82,10.66,11.37S169.34,45.65,163.15,45.65Zm83.31-14.91-6.34-.93c-3-.43-5.18-1.44-5.18-3.82,0-2.59,2.8-3.89,6.62-3.89,4.18,0,6.84,1.8,7.42,4.76h8.35c-.94-7.49-6.7-11.88-15.55-11.88-9.15,0-15.2,4.68-15.2,11.3,0,6.34,4,10,12,11.16l6.33.94c3.1.43,4.83,1.65,4.83,4,0,2.95-3,4.17-7.2,4.17-5.12,0-8-2.09-8.43-5.25h-8.49c.79,7.27,6.48,12.38,16.84,12.38,9.44,0,15.7-4.32,15.7-11.74C258.12,35.28,253.58,31.82,246.46,30.74Zm-27.65-2.3c0-8.06-4.9-13.46-15.27-13.46-9.79,0-15.26,5-16.34,12.6h8.57c.43-3,2.73-5.4,7.63-5.4,4.39,0,6.55,1.94,6.55,4.32,0,3.09-4,3.88-8.85,4.39-6.63.72-14.84,3-14.84,11.66,0,6.7,5,11,12.89,11,6.19,0,10.08-2.59,12-6.7.28,3.67,3,6.05,6.84,6.05h5v-7.7h-4.25Zm-8.5,9.36c0,5-4.32,8.64-9.57,8.64-3.24,0-6-1.37-6-4.25,0-3.67,4.39-4.68,8.42-5.11s6-1.22,7.13-2.88ZM281.09,15c-11.09,0-19.23,8.35-19.23,19.36,0,11.6,8.72,19.3,19.37,19.3,9,0,16.06-5.33,17.86-12.89h-9c-1.3,3.31-4.47,5.19-8.71,5.19-5.55,0-9.72-3.46-10.66-9.51H299.3V33.12C299.3,22.46,291.53,15,281.09,15Zm-9.87,15.26c1.37-5.18,5.26-7.7,9.72-7.7,4.9,0,8.64,2.8,9.51,7.7ZM19.3,23a9.84,9.84,0,0,1,9.5,7h9.14c-1.65-8.93-9-15-18.57-15A19,19,0,0,0,0,34.34c0,11.09,8.28,19.3,19.37,19.3,9.36,0,16.85-6,18.5-15H28.8a9.75,9.75,0,0,1-9.43,7.06c-6.27,0-10.66-4.83-10.66-11.31S13,23,19.3,23Zm41.11-8A19,19,0,0,0,41,34.34c0,11.09,8.28,19.3,19.37,19.3A19,19,0,0,0,79.92,34.27C79.92,23.33,71.64,15,60.41,15Zm.07,30.67c-6.19,0-10.73-4.83-10.73-11.31S54.22,23,60.41,23s10.8,4.89,10.8,11.37S66.67,45.65,60.48,45.65ZM123.41,15c-5.62,0-9.29,2.3-11.45,5.54V15.7h-8.57V52.92H112V32.69C112,27,115.63,23,121,23c5,0,8.06,3.53,8.06,8.64V52.92h8.64V31C137.66,21.6,132.84,15,123.41,15ZM92,.36a5.36,5.36,0,0,0-5.55,5.47,5.55,5.55,0,0,0,11.09,0A5.35,5.35,0,0,0,92,.36Zm-9.72,23h5.4V52.92h8.64V15.7h-14Zm298.17-7.7L366.2,52.92H372L375.29,44H392l3.33,8.88h6L386.87,15.7ZM377,39.23l6.45-17.56h.1l6.56,17.56ZM362.66,15.7l-7.88,29h-.11l-8.14-29H341l-8,28.93h-.1l-8-28.87H319L329.82,53h5.45l8.19-29.24h.11L352,53h5.66L368.1,15.7Zm135.25,0v4.86h12.32V52.92h5.6V20.56h12.32V15.7ZM467.82,52.92h25.54V48.06H473.43v-12h18.35V31.35H473.43V20.56h19.93V15.7H467.82ZM443,15.7h-5.6V52.92h24.32V48.06H443Zm-30.45,0h-5.61V52.92h24.32V48.06H412.52Z'/%3E%3C/svg%3E` + ); + case "textWithLogo": + return ( + (t = (0.25 * e).toFixed(2)), + `data:image/svg+xml,%3Csvg width='${e}' height='${t}' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 308.44 77.61'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%230052ff;%7D%3C/style%3E%3C/defs%3E%3Cpath class='cls-1' d='M142.94,20.2l-7.88,29H135l-8.15-29h-5.55l-8,28.93h-.11l-8-28.87H99.27l10.84,37.27h5.44l8.2-29.24h.1l8.41,29.24h5.66L148.39,20.2Zm17.82,0L146.48,57.42h5.82l3.28-8.88h16.65l3.34,8.88h6L167.16,20.2Zm-3.44,23.52,6.45-17.55h.11l6.56,17.55ZM278.2,20.2v4.86h12.32V57.42h5.6V25.06h12.32V20.2ZM248.11,57.42h25.54V52.55H253.71V40.61h18.35V35.85H253.71V25.06h19.94V20.2H248.11ZM223.26,20.2h-5.61V57.42H242V52.55H223.26Zm-30.46,0h-5.6V57.42h24.32V52.55H192.8Zm-154,38A19.41,19.41,0,1,1,57.92,35.57H77.47a38.81,38.81,0,1,0,0,6.47H57.92A19.39,19.39,0,0,1,38.81,58.21Z'/%3E%3C/svg%3E` + ); + case "textLight": + return ( + (t = (0.1 * e).toFixed(2)), + `data:image/svg+xml,%3Csvg width='${e}' height='${t}' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 528.15 53.64'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%23fefefe;%7D%3C/style%3E%3C/defs%3E%3Ctitle%3ECoinbase_Wordmark_SubBrands_ALL%3C/title%3E%3Cpath class='cls-1' d='M164.45,15a15,15,0,0,0-11.74,5.4V0h-8.64V52.92h8.5V48a15,15,0,0,0,11.88,5.62c10.37,0,18.21-8.21,18.21-19.3S174.67,15,164.45,15Zm-1.3,30.67c-6.19,0-10.73-4.83-10.73-11.31S157,23,163.22,23s10.66,4.82,10.66,11.37S169.34,45.65,163.15,45.65Zm83.31-14.91-6.34-.93c-3-.43-5.18-1.44-5.18-3.82,0-2.59,2.8-3.89,6.62-3.89,4.18,0,6.84,1.8,7.42,4.76h8.35c-.94-7.49-6.7-11.88-15.55-11.88-9.15,0-15.2,4.68-15.2,11.3,0,6.34,4,10,12,11.16l6.33.94c3.1.43,4.83,1.65,4.83,4,0,2.95-3,4.17-7.2,4.17-5.12,0-8-2.09-8.43-5.25h-8.49c.79,7.27,6.48,12.38,16.84,12.38,9.44,0,15.7-4.32,15.7-11.74C258.12,35.28,253.58,31.82,246.46,30.74Zm-27.65-2.3c0-8.06-4.9-13.46-15.27-13.46-9.79,0-15.26,5-16.34,12.6h8.57c.43-3,2.73-5.4,7.63-5.4,4.39,0,6.55,1.94,6.55,4.32,0,3.09-4,3.88-8.85,4.39-6.63.72-14.84,3-14.84,11.66,0,6.7,5,11,12.89,11,6.19,0,10.08-2.59,12-6.7.28,3.67,3,6.05,6.84,6.05h5v-7.7h-4.25Zm-8.5,9.36c0,5-4.32,8.64-9.57,8.64-3.24,0-6-1.37-6-4.25,0-3.67,4.39-4.68,8.42-5.11s6-1.22,7.13-2.88ZM281.09,15c-11.09,0-19.23,8.35-19.23,19.36,0,11.6,8.72,19.3,19.37,19.3,9,0,16.06-5.33,17.86-12.89h-9c-1.3,3.31-4.47,5.19-8.71,5.19-5.55,0-9.72-3.46-10.66-9.51H299.3V33.12C299.3,22.46,291.53,15,281.09,15Zm-9.87,15.26c1.37-5.18,5.26-7.7,9.72-7.7,4.9,0,8.64,2.8,9.51,7.7ZM19.3,23a9.84,9.84,0,0,1,9.5,7h9.14c-1.65-8.93-9-15-18.57-15A19,19,0,0,0,0,34.34c0,11.09,8.28,19.3,19.37,19.3,9.36,0,16.85-6,18.5-15H28.8a9.75,9.75,0,0,1-9.43,7.06c-6.27,0-10.66-4.83-10.66-11.31S13,23,19.3,23Zm41.11-8A19,19,0,0,0,41,34.34c0,11.09,8.28,19.3,19.37,19.3A19,19,0,0,0,79.92,34.27C79.92,23.33,71.64,15,60.41,15Zm.07,30.67c-6.19,0-10.73-4.83-10.73-11.31S54.22,23,60.41,23s10.8,4.89,10.8,11.37S66.67,45.65,60.48,45.65ZM123.41,15c-5.62,0-9.29,2.3-11.45,5.54V15.7h-8.57V52.92H112V32.69C112,27,115.63,23,121,23c5,0,8.06,3.53,8.06,8.64V52.92h8.64V31C137.66,21.6,132.84,15,123.41,15ZM92,.36a5.36,5.36,0,0,0-5.55,5.47,5.55,5.55,0,0,0,11.09,0A5.35,5.35,0,0,0,92,.36Zm-9.72,23h5.4V52.92h8.64V15.7h-14Zm298.17-7.7L366.2,52.92H372L375.29,44H392l3.33,8.88h6L386.87,15.7ZM377,39.23l6.45-17.56h.1l6.56,17.56ZM362.66,15.7l-7.88,29h-.11l-8.14-29H341l-8,28.93h-.1l-8-28.87H319L329.82,53h5.45l8.19-29.24h.11L352,53h5.66L368.1,15.7Zm135.25,0v4.86h12.32V52.92h5.6V20.56h12.32V15.7ZM467.82,52.92h25.54V48.06H473.43v-12h18.35V31.35H473.43V20.56h19.93V15.7H467.82ZM443,15.7h-5.6V52.92h24.32V48.06H443Zm-30.45,0h-5.61V52.92h24.32V48.06H412.52Z'/%3E%3C/svg%3E` + ); + case "textWithLogoLight": + return ( + (t = (0.25 * e).toFixed(2)), + `data:image/svg+xml,%3Csvg width='${e}' height='${t}' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 308.44 77.61'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%23fefefe;%7D%3C/style%3E%3C/defs%3E%3Cpath class='cls-1' d='M142.94,20.2l-7.88,29H135l-8.15-29h-5.55l-8,28.93h-.11l-8-28.87H99.27l10.84,37.27h5.44l8.2-29.24h.1l8.41,29.24h5.66L148.39,20.2Zm17.82,0L146.48,57.42h5.82l3.28-8.88h16.65l3.34,8.88h6L167.16,20.2Zm-3.44,23.52,6.45-17.55h.11l6.56,17.55ZM278.2,20.2v4.86h12.32V57.42h5.6V25.06h12.32V20.2ZM248.11,57.42h25.54V52.55H253.71V40.61h18.35V35.85H253.71V25.06h19.94V20.2H248.11ZM223.26,20.2h-5.61V57.42H242V52.55H223.26Zm-30.46,0h-5.6V57.42h24.32V52.55H192.8Zm-154,38A19.41,19.41,0,1,1,57.92,35.57H77.47a38.81,38.81,0,1,0,0,6.47H57.92A19.39,19.39,0,0,1,38.81,58.21Z'/%3E%3C/svg%3E` + ); + default: + return ( + (t = e), + `data:image/svg+xml,%3Csvg width='${e}' height='${t}' viewBox='0 0 1024 1024' fill='none' xmlns='http://www.w3.org/2000/svg'%3E %3Crect width='1024' height='1024' fill='%230052FF'/%3E %3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M152 512C152 710.823 313.177 872 512 872C710.823 872 872 710.823 872 512C872 313.177 710.823 152 512 152C313.177 152 152 313.177 152 512ZM420 396C406.745 396 396 406.745 396 420V604C396 617.255 406.745 628 420 628H604C617.255 628 628 617.255 628 604V420C628 406.745 617.255 396 604 396H420Z' fill='white'/%3E %3C/svg%3E ` + ); + } + }; + t7.walletLogo = kmr; + }); + var vGe = N((r7) => { + "use strict"; + _(); + x(); + Object.defineProperty(r7, "__esModule", { value: !0 }); + r7.ScopedLocalStorage = void 0; + var AY = class { + constructor(e) { + this.scope = e; + } + setItem(e, t) { + localStorage.setItem(this.scopedKey(e), t); + } + getItem(e) { + return localStorage.getItem(this.scopedKey(e)); + } + removeItem(e) { + localStorage.removeItem(this.scopedKey(e)); + } + clear() { + let e = this.scopedKey(""), + t = []; + for (let n = 0; n < localStorage.length; n++) { + let a = localStorage.key(n); + typeof a == "string" && a.startsWith(e) && t.push(a); + } + t.forEach((n) => localStorage.removeItem(n)); + } + scopedKey(e) { + return `${this.scope}:${e}`; + } + }; + r7.ScopedLocalStorage = AY; + }); + var v6 = N((SY) => { + "use strict"; + _(); + x(); + Object.defineProperty(SY, "__esModule", { value: !0 }); + var Smr = gm(); + function wGe(r, e, t) { + try { + Reflect.apply(r, e, t); + } catch (n) { + setTimeout(() => { + throw n; + }); + } + } + function Mmr(r) { + let e = r.length, + t = new Array(e); + for (let n = 0; n < e; n += 1) t[n] = r[n]; + return t; + } + var kY = class extends Smr.EventEmitter { + emit(e, ...t) { + let n = e === "error", + a = this._events; + if (a !== void 0) n = n && a.error === void 0; + else if (!n) return !1; + if (n) { + let s; + if ((t.length > 0 && ([s] = t), s instanceof Error)) throw s; + let c = new Error(`Unhandled error.${s ? ` (${s.message})` : ""}`); + throw ((c.context = s), c); + } + let i = a[e]; + if (i === void 0) return !1; + if (typeof i == "function") wGe(i, this, t); + else { + let s = i.length, + c = Mmr(i); + for (let l = 0; l < s; l += 1) wGe(c[l], this, t); + } + return !0; + } + }; + SY.default = kY; + }); + var RY = N((npn, CGe) => { + _(); + x(); + CGe.exports = w6; + w6.default = w6; + w6.stable = TGe; + w6.stableStringify = TGe; + var n7 = "[...]", + _Ge = "[Circular]", + pb = [], + db = []; + function xGe() { + return { + depthLimit: Number.MAX_SAFE_INTEGER, + edgesLimit: Number.MAX_SAFE_INTEGER, + }; + } + function w6(r, e, t, n) { + typeof n > "u" && (n = xGe()), MY(r, "", 0, [], void 0, 0, n); + var a; + try { + db.length === 0 + ? (a = JSON.stringify(r, e, t)) + : (a = JSON.stringify(r, EGe(e), t)); + } catch { + return JSON.stringify( + "[unable to serialize, circular reference is too complex to analyze]" + ); + } finally { + for (; pb.length !== 0; ) { + var i = pb.pop(); + i.length === 4 + ? Object.defineProperty(i[0], i[1], i[3]) + : (i[0][i[1]] = i[2]); + } + } + return a; + } + function N2(r, e, t, n) { + var a = Object.getOwnPropertyDescriptor(n, t); + a.get !== void 0 + ? a.configurable + ? (Object.defineProperty(n, t, { value: r }), pb.push([n, t, e, a])) + : db.push([e, t, r]) + : ((n[t] = r), pb.push([n, t, e])); + } + function MY(r, e, t, n, a, i, s) { + i += 1; + var c; + if (typeof r == "object" && r !== null) { + for (c = 0; c < n.length; c++) + if (n[c] === r) { + N2(_Ge, r, e, a); + return; + } + if (typeof s.depthLimit < "u" && i > s.depthLimit) { + N2(n7, r, e, a); + return; + } + if (typeof s.edgesLimit < "u" && t + 1 > s.edgesLimit) { + N2(n7, r, e, a); + return; + } + if ((n.push(r), Array.isArray(r))) + for (c = 0; c < r.length; c++) MY(r[c], c, c, n, r, i, s); + else { + var l = Object.keys(r); + for (c = 0; c < l.length; c++) { + var d = l[c]; + MY(r[d], d, c, n, r, i, s); + } + } + n.pop(); + } + } + function Pmr(r, e) { + return r < e ? -1 : r > e ? 1 : 0; + } + function TGe(r, e, t, n) { + typeof n > "u" && (n = xGe()); + var a = PY(r, "", 0, [], void 0, 0, n) || r, + i; + try { + db.length === 0 + ? (i = JSON.stringify(a, e, t)) + : (i = JSON.stringify(a, EGe(e), t)); + } catch { + return JSON.stringify( + "[unable to serialize, circular reference is too complex to analyze]" + ); + } finally { + for (; pb.length !== 0; ) { + var s = pb.pop(); + s.length === 4 + ? Object.defineProperty(s[0], s[1], s[3]) + : (s[0][s[1]] = s[2]); + } + } + return i; + } + function PY(r, e, t, n, a, i, s) { + i += 1; + var c; + if (typeof r == "object" && r !== null) { + for (c = 0; c < n.length; c++) + if (n[c] === r) { + N2(_Ge, r, e, a); + return; + } + try { + if (typeof r.toJSON == "function") return; + } catch { + return; + } + if (typeof s.depthLimit < "u" && i > s.depthLimit) { + N2(n7, r, e, a); + return; + } + if (typeof s.edgesLimit < "u" && t + 1 > s.edgesLimit) { + N2(n7, r, e, a); + return; + } + if ((n.push(r), Array.isArray(r))) + for (c = 0; c < r.length; c++) PY(r[c], c, c, n, r, i, s); + else { + var l = {}, + d = Object.keys(r).sort(Pmr); + for (c = 0; c < d.length; c++) { + var m = d[c]; + PY(r[m], m, c, n, r, i, s), (l[m] = r[m]); + } + if (typeof a < "u") pb.push([a, e, r]), (a[e] = l); + else return l; + } + n.pop(); + } + } + function EGe(r) { + return ( + (r = + typeof r < "u" + ? r + : function (e, t) { + return t; + }), + function (e, t) { + if (db.length > 0) + for (var n = 0; n < db.length; n++) { + var a = db[n]; + if (a[1] === e && a[0] === t) { + (t = a[2]), db.splice(n, 1); + break; + } + } + return r.call(this, e, t); + } + ); + } + }); + var i7 = N((O2) => { + "use strict"; + _(); + x(); + Object.defineProperty(O2, "__esModule", { value: !0 }); + O2.EthereumProviderError = O2.EthereumRpcError = void 0; + var Rmr = RY(), + a7 = class extends Error { + constructor(e, t, n) { + if (!Number.isInteger(e)) + throw new Error('"code" must be an integer.'); + if (!t || typeof t != "string") + throw new Error('"message" must be a nonempty string.'); + super(t), (this.code = e), n !== void 0 && (this.data = n); + } + serialize() { + let e = { code: this.code, message: this.message }; + return ( + this.data !== void 0 && (e.data = this.data), + this.stack && (e.stack = this.stack), + e + ); + } + toString() { + return Rmr.default(this.serialize(), Nmr, 2); + } + }; + O2.EthereumRpcError = a7; + var BY = class extends a7 { + constructor(e, t, n) { + if (!Bmr(e)) + throw new Error( + '"code" must be an integer such that: 1000 <= code <= 4999' + ); + super(e, t, n); + } + }; + O2.EthereumProviderError = BY; + function Bmr(r) { + return Number.isInteger(r) && r >= 1e3 && r <= 4999; + } + function Nmr(r, e) { + if (e !== "[Circular]") return e; + } + }); + var s7 = N((L2) => { + "use strict"; + _(); + x(); + Object.defineProperty(L2, "__esModule", { value: !0 }); + L2.errorValues = L2.errorCodes = void 0; + L2.errorCodes = { + rpc: { + invalidInput: -32e3, + resourceNotFound: -32001, + resourceUnavailable: -32002, + transactionRejected: -32003, + methodNotSupported: -32004, + limitExceeded: -32005, + parse: -32700, + invalidRequest: -32600, + methodNotFound: -32601, + invalidParams: -32602, + internal: -32603, + }, + provider: { + userRejectedRequest: 4001, + unauthorized: 4100, + unsupportedMethod: 4200, + disconnected: 4900, + chainDisconnected: 4901, + }, + }; + L2.errorValues = { + "-32700": { + standard: "JSON RPC 2.0", + message: + "Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text.", + }, + "-32600": { + standard: "JSON RPC 2.0", + message: "The JSON sent is not a valid Request object.", + }, + "-32601": { + standard: "JSON RPC 2.0", + message: "The method does not exist / is not available.", + }, + "-32602": { + standard: "JSON RPC 2.0", + message: "Invalid method parameter(s).", + }, + "-32603": { + standard: "JSON RPC 2.0", + message: "Internal JSON-RPC error.", + }, + "-32000": { standard: "EIP-1474", message: "Invalid input." }, + "-32001": { standard: "EIP-1474", message: "Resource not found." }, + "-32002": { standard: "EIP-1474", message: "Resource unavailable." }, + "-32003": { standard: "EIP-1474", message: "Transaction rejected." }, + "-32004": { standard: "EIP-1474", message: "Method not supported." }, + "-32005": { standard: "EIP-1474", message: "Request limit exceeded." }, + 4001: { standard: "EIP-1193", message: "User rejected the request." }, + 4100: { + standard: "EIP-1193", + message: + "The requested account and/or method has not been authorized by the user.", + }, + 4200: { + standard: "EIP-1193", + message: + "The requested method is not supported by this Ethereum provider.", + }, + 4900: { + standard: "EIP-1193", + message: "The provider is disconnected from all chains.", + }, + 4901: { + standard: "EIP-1193", + message: "The provider is disconnected from the specified chain.", + }, + }; + }); + var LY = N((sp) => { + "use strict"; + _(); + x(); + Object.defineProperty(sp, "__esModule", { value: !0 }); + sp.serializeError = + sp.isValidCode = + sp.getMessageFromCode = + sp.JSON_RPC_SERVER_ERROR_MESSAGE = + void 0; + var o7 = s7(), + Omr = i7(), + IGe = o7.errorCodes.rpc.internal, + Lmr = "Unspecified error message. This is a bug, please report it.", + Dmr = { code: IGe, message: OY(IGe) }; + sp.JSON_RPC_SERVER_ERROR_MESSAGE = "Unspecified server error."; + function OY(r, e = Lmr) { + if (Number.isInteger(r)) { + let t = r.toString(); + if (NY(o7.errorValues, t)) return o7.errorValues[t].message; + if (SGe(r)) return sp.JSON_RPC_SERVER_ERROR_MESSAGE; + } + return e; + } + sp.getMessageFromCode = OY; + function kGe(r) { + if (!Number.isInteger(r)) return !1; + let e = r.toString(); + return !!(o7.errorValues[e] || SGe(r)); + } + sp.isValidCode = kGe; + function qmr( + r, + { fallbackError: e = Dmr, shouldIncludeStack: t = !1 } = {} + ) { + var n, a; + if (!e || !Number.isInteger(e.code) || typeof e.message != "string") + throw new Error( + "Must provide fallback error with integer number code and string message." + ); + if (r instanceof Omr.EthereumRpcError) return r.serialize(); + let i = {}; + if ( + r && + typeof r == "object" && + !Array.isArray(r) && + NY(r, "code") && + kGe(r.code) + ) { + let c = r; + (i.code = c.code), + c.message && typeof c.message == "string" + ? ((i.message = c.message), NY(c, "data") && (i.data = c.data)) + : ((i.message = OY(i.code)), (i.data = { originalError: AGe(r) })); + } else { + i.code = e.code; + let c = (n = r) === null || n === void 0 ? void 0 : n.message; + (i.message = c && typeof c == "string" ? c : e.message), + (i.data = { originalError: AGe(r) }); + } + let s = (a = r) === null || a === void 0 ? void 0 : a.stack; + return t && r && s && typeof s == "string" && (i.stack = s), i; + } + sp.serializeError = qmr; + function SGe(r) { + return r >= -32099 && r <= -32e3; + } + function AGe(r) { + return r && typeof r == "object" && !Array.isArray(r) + ? Object.assign({}, r) + : r; + } + function NY(r, e) { + return Object.prototype.hasOwnProperty.call(r, e); + } + }); + var RGe = N((c7) => { + "use strict"; + _(); + x(); + Object.defineProperty(c7, "__esModule", { value: !0 }); + c7.ethErrors = void 0; + var DY = i7(), + MGe = LY(), + pc = s7(); + c7.ethErrors = { + rpc: { + parse: (r) => ad(pc.errorCodes.rpc.parse, r), + invalidRequest: (r) => ad(pc.errorCodes.rpc.invalidRequest, r), + invalidParams: (r) => ad(pc.errorCodes.rpc.invalidParams, r), + methodNotFound: (r) => ad(pc.errorCodes.rpc.methodNotFound, r), + internal: (r) => ad(pc.errorCodes.rpc.internal, r), + server: (r) => { + if (!r || typeof r != "object" || Array.isArray(r)) + throw new Error( + "Ethereum RPC Server errors must provide single object argument." + ); + let { code: e } = r; + if (!Number.isInteger(e) || e > -32005 || e < -32099) + throw new Error( + '"code" must be an integer such that: -32099 <= code <= -32005' + ); + return ad(e, r); + }, + invalidInput: (r) => ad(pc.errorCodes.rpc.invalidInput, r), + resourceNotFound: (r) => ad(pc.errorCodes.rpc.resourceNotFound, r), + resourceUnavailable: (r) => + ad(pc.errorCodes.rpc.resourceUnavailable, r), + transactionRejected: (r) => + ad(pc.errorCodes.rpc.transactionRejected, r), + methodNotSupported: (r) => ad(pc.errorCodes.rpc.methodNotSupported, r), + limitExceeded: (r) => ad(pc.errorCodes.rpc.limitExceeded, r), + }, + provider: { + userRejectedRequest: (r) => + _6(pc.errorCodes.provider.userRejectedRequest, r), + unauthorized: (r) => _6(pc.errorCodes.provider.unauthorized, r), + unsupportedMethod: (r) => + _6(pc.errorCodes.provider.unsupportedMethod, r), + disconnected: (r) => _6(pc.errorCodes.provider.disconnected, r), + chainDisconnected: (r) => + _6(pc.errorCodes.provider.chainDisconnected, r), + custom: (r) => { + if (!r || typeof r != "object" || Array.isArray(r)) + throw new Error( + "Ethereum Provider custom errors must provide single object argument." + ); + let { code: e, message: t, data: n } = r; + if (!t || typeof t != "string") + throw new Error('"message" must be a nonempty string'); + return new DY.EthereumProviderError(e, t, n); + }, + }, + }; + function ad(r, e) { + let [t, n] = PGe(e); + return new DY.EthereumRpcError(r, t || MGe.getMessageFromCode(r), n); + } + function _6(r, e) { + let [t, n] = PGe(e); + return new DY.EthereumProviderError(r, t || MGe.getMessageFromCode(r), n); + } + function PGe(r) { + if (r) { + if (typeof r == "string") return [r]; + if (typeof r == "object" && !Array.isArray(r)) { + let { message: e, data: t } = r; + if (e && typeof e != "string") + throw new Error("Must specify string message."); + return [e || void 0, t]; + } + } + return []; + } + }); + var u7 = N((Tu) => { + "use strict"; + _(); + x(); + Object.defineProperty(Tu, "__esModule", { value: !0 }); + Tu.getMessageFromCode = + Tu.serializeError = + Tu.EthereumProviderError = + Tu.EthereumRpcError = + Tu.ethErrors = + Tu.errorCodes = + void 0; + var BGe = i7(); + Object.defineProperty(Tu, "EthereumRpcError", { + enumerable: !0, + get: function () { + return BGe.EthereumRpcError; + }, + }); + Object.defineProperty(Tu, "EthereumProviderError", { + enumerable: !0, + get: function () { + return BGe.EthereumProviderError; + }, + }); + var NGe = LY(); + Object.defineProperty(Tu, "serializeError", { + enumerable: !0, + get: function () { + return NGe.serializeError; + }, + }); + Object.defineProperty(Tu, "getMessageFromCode", { + enumerable: !0, + get: function () { + return NGe.getMessageFromCode; + }, + }); + var Fmr = RGe(); + Object.defineProperty(Tu, "ethErrors", { + enumerable: !0, + get: function () { + return Fmr.ethErrors; + }, + }); + var Wmr = s7(); + Object.defineProperty(Tu, "errorCodes", { + enumerable: !0, + get: function () { + return Wmr.errorCodes; + }, + }); + }); + var d7 = N((l7) => { + "use strict"; + _(); + x(); + Object.defineProperty(l7, "__esModule", { value: !0 }); + l7.EVENTS = void 0; + l7.EVENTS = { + STARTED_CONNECTING: "walletlink_sdk.started.connecting", + CONNECTED_STATE_CHANGE: "walletlink_sdk.connected", + DISCONNECTED: "walletlink_sdk.disconnected", + METADATA_DESTROYED: "walletlink_sdk_metadata_destroyed", + LINKED: "walletlink_sdk.linked", + FAILURE: "walletlink_sdk.generic_failure", + SESSION_CONFIG_RECEIVED: "walletlink_sdk.session_config_event_received", + ETH_ACCOUNTS_STATE: "walletlink_sdk.eth_accounts_state", + SESSION_STATE_CHANGE: "walletlink_sdk.session_state_change", + UNLINKED_ERROR_STATE: "walletlink_sdk.unlinked_error_state", + SKIPPED_CLEARING_SESSION: "walletlink_sdk.skipped_clearing_session", + GENERAL_ERROR: "walletlink_sdk.general_error", + WEB3_REQUEST: "walletlink_sdk.web3.request", + WEB3_REQUEST_PUBLISHED: "walletlink_sdk.web3.request_published", + WEB3_RESPONSE: "walletlink_sdk.web3.response", + UNKNOWN_ADDRESS_ENCOUNTERED: "walletlink_sdk.unknown_address_encountered", + }; + }); + var OGe = N(() => { + _(); + x(); + }); + var tYe = N((kpn, eYe) => { + _(); + x(); + var GY = typeof Map == "function" && Map.prototype, + qY = + Object.getOwnPropertyDescriptor && GY + ? Object.getOwnPropertyDescriptor(Map.prototype, "size") + : null, + h7 = GY && qY && typeof qY.get == "function" ? qY.get : null, + LGe = GY && Map.prototype.forEach, + YY = typeof Set == "function" && Set.prototype, + FY = + Object.getOwnPropertyDescriptor && YY + ? Object.getOwnPropertyDescriptor(Set.prototype, "size") + : null, + f7 = YY && FY && typeof FY.get == "function" ? FY.get : null, + DGe = YY && Set.prototype.forEach, + Umr = typeof WeakMap == "function" && WeakMap.prototype, + T6 = Umr ? WeakMap.prototype.has : null, + Hmr = typeof WeakSet == "function" && WeakSet.prototype, + E6 = Hmr ? WeakSet.prototype.has : null, + zmr = typeof WeakRef == "function" && WeakRef.prototype, + qGe = zmr ? WeakRef.prototype.deref : null, + jmr = Boolean.prototype.valueOf, + Kmr = Object.prototype.toString, + Vmr = Function.prototype.toString, + Gmr = String.prototype.match, + $Y = String.prototype.slice, + P0 = String.prototype.replace, + Ymr = String.prototype.toUpperCase, + FGe = String.prototype.toLowerCase, + YGe = RegExp.prototype.test, + WGe = Array.prototype.concat, + kh = Array.prototype.join, + $mr = Array.prototype.slice, + UGe = Math.floor, + HY = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, + WY = Object.getOwnPropertySymbols, + zY = + typeof Symbol == "function" && typeof Symbol.iterator == "symbol" + ? Symbol.prototype.toString + : null, + D2 = typeof Symbol == "function" && typeof Symbol.iterator == "object", + hc = + typeof Symbol == "function" && + Symbol.toStringTag && + (typeof Symbol.toStringTag === D2 ? "object" : "symbol") + ? Symbol.toStringTag + : null, + $Ge = Object.prototype.propertyIsEnumerable, + HGe = + (typeof Reflect == "function" + ? Reflect.getPrototypeOf + : Object.getPrototypeOf) || + ([].__proto__ === Array.prototype + ? function (r) { + return r.__proto__; + } + : null); + function zGe(r, e) { + if ( + r === 1 / 0 || + r === -1 / 0 || + r !== r || + (r && r > -1e3 && r < 1e3) || + YGe.call(/e/, e) + ) + return e; + var t = /[0-9](?=(?:[0-9]{3})+(?![0-9]))/g; + if (typeof r == "number") { + var n = r < 0 ? -UGe(-r) : UGe(r); + if (n !== r) { + var a = String(n), + i = $Y.call(e, a.length + 1); + return ( + P0.call(a, t, "$&_") + + "." + + P0.call(P0.call(i, /([0-9]{3})/g, "$&_"), /_$/, "") + ); + } + } + return P0.call(e, t, "$&_"); + } + var jY = OGe(), + jGe = jY.custom, + KGe = ZGe(jGe) ? jGe : null; + eYe.exports = function r(e, t, n, a) { + var i = t || {}; + if ( + M0(i, "quoteStyle") && + i.quoteStyle !== "single" && + i.quoteStyle !== "double" + ) + throw new TypeError('option "quoteStyle" must be "single" or "double"'); + if ( + M0(i, "maxStringLength") && + (typeof i.maxStringLength == "number" + ? i.maxStringLength < 0 && i.maxStringLength !== 1 / 0 + : i.maxStringLength !== null) + ) + throw new TypeError( + 'option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`' + ); + var s = M0(i, "customInspect") ? i.customInspect : !0; + if (typeof s != "boolean" && s !== "symbol") + throw new TypeError( + "option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`" + ); + if ( + M0(i, "indent") && + i.indent !== null && + i.indent !== " " && + !(parseInt(i.indent, 10) === i.indent && i.indent > 0) + ) + throw new TypeError( + 'option "indent" must be "\\t", an integer > 0, or `null`' + ); + if (M0(i, "numericSeparator") && typeof i.numericSeparator != "boolean") + throw new TypeError( + 'option "numericSeparator", if provided, must be `true` or `false`' + ); + var c = i.numericSeparator; + if (typeof e > "u") return "undefined"; + if (e === null) return "null"; + if (typeof e == "boolean") return e ? "true" : "false"; + if (typeof e == "string") return XGe(e, i); + if (typeof e == "number") { + if (e === 0) return 1 / 0 / e > 0 ? "0" : "-0"; + var l = String(e); + return c ? zGe(e, l) : l; + } + if (typeof e == "bigint") { + var d = String(e) + "n"; + return c ? zGe(e, d) : d; + } + var m = typeof i.depth > "u" ? 5 : i.depth; + if ((typeof n > "u" && (n = 0), n >= m && m > 0 && typeof e == "object")) + return KY(e) ? "[Array]" : "[Object]"; + var w = h0r(i, n); + if (typeof a > "u") a = []; + else if (QGe(a, e) >= 0) return "[Circular]"; + function C(y, h, b) { + if ((h && ((a = $mr.call(a)), a.push(h)), b)) { + var T = { depth: i.depth }; + return ( + M0(i, "quoteStyle") && (T.quoteStyle = i.quoteStyle), + r(y, T, n + 1, a) + ); + } + return r(y, i, n + 1, a); + } + if (typeof e == "function" && !VGe(e)) { + var I = a0r(e), + k = p7(e, C); + return ( + "[Function" + + (I ? ": " + I : " (anonymous)") + + "]" + + (k.length > 0 ? " { " + kh.call(k, ", ") + " }" : "") + ); + } + if (ZGe(e)) { + var O = D2 + ? P0.call(String(e), /^(Symbol\(.*\))_[^)]*$/, "$1") + : zY.call(e); + return typeof e == "object" && !D2 ? x6(O) : O; + } + if (l0r(e)) { + for ( + var D = "<" + FGe.call(String(e.nodeName)), + W = e.attributes || [], + H = 0; + H < W.length; + H++ + ) + D += " " + W[H].name + "=" + JGe(Jmr(W[H].value), "double", i); + return ( + (D += ">"), + e.childNodes && e.childNodes.length && (D += "..."), + (D += ""), + D + ); + } + if (KY(e)) { + if (e.length === 0) return "[]"; + var j = p7(e, C); + return w && !p0r(j) + ? "[" + VY(j, w) + "]" + : "[ " + kh.call(j, ", ") + " ]"; + } + if (Qmr(e)) { + var V = p7(e, C); + return !("cause" in Error.prototype) && + "cause" in e && + !$Ge.call(e, "cause") + ? "{ [" + + String(e) + + "] " + + kh.call(WGe.call("[cause]: " + C(e.cause), V), ", ") + + " }" + : V.length === 0 + ? "[" + String(e) + "]" + : "{ [" + String(e) + "] " + kh.call(V, ", ") + " }"; + } + if (typeof e == "object" && s) { + if (KGe && typeof e[KGe] == "function" && jY) + return jY(e, { depth: m - n }); + if (s !== "symbol" && typeof e.inspect == "function") + return e.inspect(); + } + if (i0r(e)) { + var te = []; + return ( + LGe && + LGe.call(e, function (y, h) { + te.push(C(h, e, !0) + " => " + C(y, e)); + }), + GGe("Map", h7.call(e), te, w) + ); + } + if (c0r(e)) { + var $ = []; + return ( + DGe && + DGe.call(e, function (y) { + $.push(C(y, e)); + }), + GGe("Set", f7.call(e), $, w) + ); + } + if (s0r(e)) return UY("WeakMap"); + if (u0r(e)) return UY("WeakSet"); + if (o0r(e)) return UY("WeakRef"); + if (e0r(e)) return x6(C(Number(e))); + if (r0r(e)) return x6(C(HY.call(e))); + if (t0r(e)) return x6(jmr.call(e)); + if (Xmr(e)) return x6(C(String(e))); + if (!Zmr(e) && !VGe(e)) { + var ae = p7(e, C), + Y = HGe + ? HGe(e) === Object.prototype + : e instanceof Object || e.constructor === Object, + K = e instanceof Object ? "" : "null prototype", + g = + !Y && hc && Object(e) === e && hc in e + ? $Y.call(R0(e), 8, -1) + : K + ? "Object" + : "", + o = + Y || typeof e.constructor != "function" + ? "" + : e.constructor.name + ? e.constructor.name + " " + : "", + p = + o + + (g || K + ? "[" + kh.call(WGe.call([], g || [], K || []), ": ") + "] " + : ""); + return ae.length === 0 + ? p + "{}" + : w + ? p + "{" + VY(ae, w) + "}" + : p + "{ " + kh.call(ae, ", ") + " }"; + } + return String(e); + }; + function JGe(r, e, t) { + var n = (t.quoteStyle || e) === "double" ? '"' : "'"; + return n + r + n; + } + function Jmr(r) { + return P0.call(String(r), /"/g, """); + } + function KY(r) { + return ( + R0(r) === "[object Array]" && + (!hc || !(typeof r == "object" && hc in r)) + ); + } + function Zmr(r) { + return ( + R0(r) === "[object Date]" && (!hc || !(typeof r == "object" && hc in r)) + ); + } + function VGe(r) { + return ( + R0(r) === "[object RegExp]" && + (!hc || !(typeof r == "object" && hc in r)) + ); + } + function Qmr(r) { + return ( + R0(r) === "[object Error]" && + (!hc || !(typeof r == "object" && hc in r)) + ); + } + function Xmr(r) { + return ( + R0(r) === "[object String]" && + (!hc || !(typeof r == "object" && hc in r)) + ); + } + function e0r(r) { + return ( + R0(r) === "[object Number]" && + (!hc || !(typeof r == "object" && hc in r)) + ); + } + function t0r(r) { + return ( + R0(r) === "[object Boolean]" && + (!hc || !(typeof r == "object" && hc in r)) + ); + } + function ZGe(r) { + if (D2) return r && typeof r == "object" && r instanceof Symbol; + if (typeof r == "symbol") return !0; + if (!r || typeof r != "object" || !zY) return !1; + try { + return zY.call(r), !0; + } catch {} + return !1; + } + function r0r(r) { + if (!r || typeof r != "object" || !HY) return !1; + try { + return HY.call(r), !0; + } catch {} + return !1; + } + var n0r = + Object.prototype.hasOwnProperty || + function (r) { + return r in this; + }; + function M0(r, e) { + return n0r.call(r, e); + } + function R0(r) { + return Kmr.call(r); + } + function a0r(r) { + if (r.name) return r.name; + var e = Gmr.call(Vmr.call(r), /^function\s*([\w$]+)/); + return e ? e[1] : null; + } + function QGe(r, e) { + if (r.indexOf) return r.indexOf(e); + for (var t = 0, n = r.length; t < n; t++) if (r[t] === e) return t; + return -1; + } + function i0r(r) { + if (!h7 || !r || typeof r != "object") return !1; + try { + h7.call(r); + try { + f7.call(r); + } catch { + return !0; + } + return r instanceof Map; + } catch {} + return !1; + } + function s0r(r) { + if (!T6 || !r || typeof r != "object") return !1; + try { + T6.call(r, T6); + try { + E6.call(r, E6); + } catch { + return !0; + } + return r instanceof WeakMap; + } catch {} + return !1; + } + function o0r(r) { + if (!qGe || !r || typeof r != "object") return !1; + try { + return qGe.call(r), !0; + } catch {} + return !1; + } + function c0r(r) { + if (!f7 || !r || typeof r != "object") return !1; + try { + f7.call(r); + try { + h7.call(r); + } catch { + return !0; + } + return r instanceof Set; + } catch {} + return !1; + } + function u0r(r) { + if (!E6 || !r || typeof r != "object") return !1; + try { + E6.call(r, E6); + try { + T6.call(r, T6); + } catch { + return !0; + } + return r instanceof WeakSet; + } catch {} + return !1; + } + function l0r(r) { + return !r || typeof r != "object" + ? !1 + : typeof HTMLElement < "u" && r instanceof HTMLElement + ? !0 + : typeof r.nodeName == "string" && typeof r.getAttribute == "function"; + } + function XGe(r, e) { + if (r.length > e.maxStringLength) { + var t = r.length - e.maxStringLength, + n = "... " + t + " more character" + (t > 1 ? "s" : ""); + return XGe($Y.call(r, 0, e.maxStringLength), e) + n; + } + var a = P0.call(P0.call(r, /(['\\])/g, "\\$1"), /[\x00-\x1f]/g, d0r); + return JGe(a, "single", e); + } + function d0r(r) { + var e = r.charCodeAt(0), + t = { 8: "b", 9: "t", 10: "n", 12: "f", 13: "r" }[e]; + return t + ? "\\" + t + : "\\x" + (e < 16 ? "0" : "") + Ymr.call(e.toString(16)); + } + function x6(r) { + return "Object(" + r + ")"; + } + function UY(r) { + return r + " { ? }"; + } + function GGe(r, e, t, n) { + var a = n ? VY(t, n) : kh.call(t, ", "); + return r + " (" + e + ") {" + a + "}"; + } + function p0r(r) { + for (var e = 0; e < r.length; e++) + if ( + QGe( + r[e], + ` +` + ) >= 0 + ) + return !1; + return !0; + } + function h0r(r, e) { + var t; + if (r.indent === " ") t = " "; + else if (typeof r.indent == "number" && r.indent > 0) + t = kh.call(Array(r.indent + 1), " "); + else return null; + return { base: t, prev: kh.call(Array(e + 1), t) }; + } + function VY(r, e) { + if (r.length === 0) return ""; + var t = + ` +` + + e.prev + + e.base; + return ( + t + + kh.call(r, "," + t) + + ` +` + + e.prev + ); + } + function p7(r, e) { + var t = KY(r), + n = []; + if (t) { + n.length = r.length; + for (var a = 0; a < r.length; a++) n[a] = M0(r, a) ? e(r[a], r) : ""; + } + var i = typeof WY == "function" ? WY(r) : [], + s; + if (D2) { + s = {}; + for (var c = 0; c < i.length; c++) s["$" + i[c]] = i[c]; + } + for (var l in r) + !M0(r, l) || + (t && String(Number(l)) === l && l < r.length) || + (D2 && s["$" + l] instanceof Symbol) || + (YGe.call(/[^\w$]/, l) + ? n.push(e(l, r) + ": " + e(r[l], r)) + : n.push(l + ": " + e(r[l], r))); + if (typeof WY == "function") + for (var d = 0; d < i.length; d++) + $Ge.call(r, i[d]) && n.push("[" + e(i[d]) + "]: " + e(r[i[d]], r)); + return n; + } + }); + var nYe = N((Ppn, rYe) => { + "use strict"; + _(); + x(); + var JY = jx(), + q2 = Kx(), + f0r = tYe(), + m0r = JY("%TypeError%"), + m7 = JY("%WeakMap%", !0), + y7 = JY("%Map%", !0), + y0r = q2("WeakMap.prototype.get", !0), + g0r = q2("WeakMap.prototype.set", !0), + b0r = q2("WeakMap.prototype.has", !0), + v0r = q2("Map.prototype.get", !0), + w0r = q2("Map.prototype.set", !0), + _0r = q2("Map.prototype.has", !0), + ZY = function (r, e) { + for (var t = r, n; (n = t.next) !== null; t = n) + if (n.key === e) + return (t.next = n.next), (n.next = r.next), (r.next = n), n; + }, + x0r = function (r, e) { + var t = ZY(r, e); + return t && t.value; + }, + T0r = function (r, e, t) { + var n = ZY(r, e); + n ? (n.value = t) : (r.next = { key: e, next: r.next, value: t }); + }, + E0r = function (r, e) { + return !!ZY(r, e); + }; + rYe.exports = function () { + var e, + t, + n, + a = { + assert: function (i) { + if (!a.has(i)) + throw new m0r("Side channel does not contain " + f0r(i)); + }, + get: function (i) { + if (m7 && i && (typeof i == "object" || typeof i == "function")) { + if (e) return y0r(e, i); + } else if (y7) { + if (t) return v0r(t, i); + } else if (n) return x0r(n, i); + }, + has: function (i) { + if (m7 && i && (typeof i == "object" || typeof i == "function")) { + if (e) return b0r(e, i); + } else if (y7) { + if (t) return _0r(t, i); + } else if (n) return E0r(n, i); + return !1; + }, + set: function (i, s) { + m7 && i && (typeof i == "object" || typeof i == "function") + ? (e || (e = new m7()), g0r(e, i, s)) + : y7 + ? (t || (t = new y7()), w0r(t, i, s)) + : (n || (n = { key: {}, next: null }), T0r(n, i, s)); + }, + }; + return a; + }; + }); + var g7 = N((Npn, aYe) => { + "use strict"; + _(); + x(); + var C0r = String.prototype.replace, + I0r = /%20/g, + QY = { RFC1738: "RFC1738", RFC3986: "RFC3986" }; + aYe.exports = { + default: QY.RFC3986, + formatters: { + RFC1738: function (r) { + return C0r.call(r, I0r, "+"); + }, + RFC3986: function (r) { + return String(r); + }, + }, + RFC1738: QY.RFC1738, + RFC3986: QY.RFC3986, + }; + }); + var e$ = N((Dpn, sYe) => { + "use strict"; + _(); + x(); + var A0r = g7(), + XY = Object.prototype.hasOwnProperty, + hb = Array.isArray, + Sh = (function () { + for (var r = [], e = 0; e < 256; ++e) + r.push("%" + ((e < 16 ? "0" : "") + e.toString(16)).toUpperCase()); + return r; + })(), + k0r = function (e) { + for (; e.length > 1; ) { + var t = e.pop(), + n = t.obj[t.prop]; + if (hb(n)) { + for (var a = [], i = 0; i < n.length; ++i) + typeof n[i] < "u" && a.push(n[i]); + t.obj[t.prop] = a; + } + } + }, + iYe = function (e, t) { + for ( + var n = t && t.plainObjects ? Object.create(null) : {}, a = 0; + a < e.length; + ++a + ) + typeof e[a] < "u" && (n[a] = e[a]); + return n; + }, + S0r = function r(e, t, n) { + if (!t) return e; + if (typeof t != "object") { + if (hb(e)) e.push(t); + else if (e && typeof e == "object") + ((n && (n.plainObjects || n.allowPrototypes)) || + !XY.call(Object.prototype, t)) && + (e[t] = !0); + else return [e, t]; + return e; + } + if (!e || typeof e != "object") return [e].concat(t); + var a = e; + return ( + hb(e) && !hb(t) && (a = iYe(e, n)), + hb(e) && hb(t) + ? (t.forEach(function (i, s) { + if (XY.call(e, s)) { + var c = e[s]; + c && typeof c == "object" && i && typeof i == "object" + ? (e[s] = r(c, i, n)) + : e.push(i); + } else e[s] = i; + }), + e) + : Object.keys(t).reduce(function (i, s) { + var c = t[s]; + return XY.call(i, s) ? (i[s] = r(i[s], c, n)) : (i[s] = c), i; + }, a) + ); + }, + M0r = function (e, t) { + return Object.keys(t).reduce(function (n, a) { + return (n[a] = t[a]), n; + }, e); + }, + P0r = function (r, e, t) { + var n = r.replace(/\+/g, " "); + if (t === "iso-8859-1") return n.replace(/%[0-9a-f]{2}/gi, unescape); + try { + return decodeURIComponent(n); + } catch { + return n; + } + }, + R0r = function (e, t, n, a, i) { + if (e.length === 0) return e; + var s = e; + if ( + (typeof e == "symbol" + ? (s = Symbol.prototype.toString.call(e)) + : typeof e != "string" && (s = String(e)), + n === "iso-8859-1") + ) + return escape(s).replace(/%u[0-9a-f]{4}/gi, function (m) { + return "%26%23" + parseInt(m.slice(2), 16) + "%3B"; + }); + for (var c = "", l = 0; l < s.length; ++l) { + var d = s.charCodeAt(l); + if ( + d === 45 || + d === 46 || + d === 95 || + d === 126 || + (d >= 48 && d <= 57) || + (d >= 65 && d <= 90) || + (d >= 97 && d <= 122) || + (i === A0r.RFC1738 && (d === 40 || d === 41)) + ) { + c += s.charAt(l); + continue; + } + if (d < 128) { + c = c + Sh[d]; + continue; + } + if (d < 2048) { + c = c + (Sh[192 | (d >> 6)] + Sh[128 | (d & 63)]); + continue; + } + if (d < 55296 || d >= 57344) { + c = + c + + (Sh[224 | (d >> 12)] + + Sh[128 | ((d >> 6) & 63)] + + Sh[128 | (d & 63)]); + continue; + } + (l += 1), + (d = 65536 + (((d & 1023) << 10) | (s.charCodeAt(l) & 1023))), + (c += + Sh[240 | (d >> 18)] + + Sh[128 | ((d >> 12) & 63)] + + Sh[128 | ((d >> 6) & 63)] + + Sh[128 | (d & 63)]); + } + return c; + }, + B0r = function (e) { + for ( + var t = [{ obj: { o: e }, prop: "o" }], n = [], a = 0; + a < t.length; + ++a + ) + for ( + var i = t[a], s = i.obj[i.prop], c = Object.keys(s), l = 0; + l < c.length; + ++l + ) { + var d = c[l], + m = s[d]; + typeof m == "object" && + m !== null && + n.indexOf(m) === -1 && + (t.push({ obj: s, prop: d }), n.push(m)); + } + return k0r(t), e; + }, + N0r = function (e) { + return Object.prototype.toString.call(e) === "[object RegExp]"; + }, + O0r = function (e) { + return !e || typeof e != "object" + ? !1 + : !!( + e.constructor && + e.constructor.isBuffer && + e.constructor.isBuffer(e) + ); + }, + L0r = function (e, t) { + return [].concat(e, t); + }, + D0r = function (e, t) { + if (hb(e)) { + for (var n = [], a = 0; a < e.length; a += 1) n.push(t(e[a])); + return n; + } + return t(e); + }; + sYe.exports = { + arrayToObject: iYe, + assign: M0r, + combine: L0r, + compact: B0r, + decode: P0r, + encode: R0r, + isBuffer: O0r, + isRegExp: N0r, + maybeMap: D0r, + merge: S0r, + }; + }); + var pYe = N((Wpn, dYe) => { + "use strict"; + _(); + x(); + var uYe = nYe(), + r$ = e$(), + C6 = g7(), + q0r = Object.prototype.hasOwnProperty, + oYe = { + brackets: function (e) { + return e + "[]"; + }, + comma: "comma", + indices: function (e, t) { + return e + "[" + t + "]"; + }, + repeat: function (e) { + return e; + }, + }, + Vf = Array.isArray, + F0r = String.prototype.split, + W0r = Array.prototype.push, + lYe = function (r, e) { + W0r.apply(r, Vf(e) ? e : [e]); + }, + U0r = Date.prototype.toISOString, + cYe = C6.default, + so = { + addQueryPrefix: !1, + allowDots: !1, + charset: "utf-8", + charsetSentinel: !1, + delimiter: "&", + encode: !0, + encoder: r$.encode, + encodeValuesOnly: !1, + format: cYe, + formatter: C6.formatters[cYe], + indices: !1, + serializeDate: function (e) { + return U0r.call(e); + }, + skipNulls: !1, + strictNullHandling: !1, + }, + H0r = function (e) { + return ( + typeof e == "string" || + typeof e == "number" || + typeof e == "boolean" || + typeof e == "symbol" || + typeof e == "bigint" + ); + }, + t$ = {}, + z0r = function r(e, t, n, a, i, s, c, l, d, m, w, C, I, k, O, D) { + for ( + var W = e, H = D, j = 0, V = !1; + (H = H.get(t$)) !== void 0 && !V; + + ) { + var te = H.get(e); + if (((j += 1), typeof te < "u")) { + if (te === j) throw new RangeError("Cyclic object value"); + V = !0; + } + typeof H.get(t$) > "u" && (j = 0); + } + if ( + (typeof l == "function" + ? (W = l(t, W)) + : W instanceof Date + ? (W = w(W)) + : n === "comma" && + Vf(W) && + (W = r$.maybeMap(W, function (u) { + return u instanceof Date ? w(u) : u; + })), + W === null) + ) { + if (i) return c && !k ? c(t, so.encoder, O, "key", C) : t; + W = ""; + } + if (H0r(W) || r$.isBuffer(W)) { + if (c) { + var $ = k ? t : c(t, so.encoder, O, "key", C); + if (n === "comma" && k) { + for ( + var ae = F0r.call(String(W), ","), Y = "", K = 0; + K < ae.length; + ++K + ) + Y += + (K === 0 ? "" : ",") + I(c(ae[K], so.encoder, O, "value", C)); + return [ + I($) + (a && Vf(W) && ae.length === 1 ? "[]" : "") + "=" + Y, + ]; + } + return [I($) + "=" + I(c(W, so.encoder, O, "value", C))]; + } + return [I(t) + "=" + I(String(W))]; + } + var g = []; + if (typeof W > "u") return g; + var o; + if (n === "comma" && Vf(W)) + o = [{ value: W.length > 0 ? W.join(",") || null : void 0 }]; + else if (Vf(l)) o = l; + else { + var p = Object.keys(W); + o = d ? p.sort(d) : p; + } + for ( + var y = a && Vf(W) && W.length === 1 ? t + "[]" : t, h = 0; + h < o.length; + ++h + ) { + var b = o[h], + T = typeof b == "object" && typeof b.value < "u" ? b.value : W[b]; + if (!(s && T === null)) { + var E = Vf(W) + ? typeof n == "function" + ? n(y, b) + : y + : y + (m ? "." + b : "[" + b + "]"); + D.set(e, j); + var f = uYe(); + f.set(t$, D), + lYe(g, r(T, E, n, a, i, s, c, l, d, m, w, C, I, k, O, f)); + } + } + return g; + }, + j0r = function (e) { + if (!e) return so; + if ( + e.encoder !== null && + typeof e.encoder < "u" && + typeof e.encoder != "function" + ) + throw new TypeError("Encoder has to be a function."); + var t = e.charset || so.charset; + if ( + typeof e.charset < "u" && + e.charset !== "utf-8" && + e.charset !== "iso-8859-1" + ) + throw new TypeError( + "The charset option must be either utf-8, iso-8859-1, or undefined" + ); + var n = C6.default; + if (typeof e.format < "u") { + if (!q0r.call(C6.formatters, e.format)) + throw new TypeError("Unknown format option provided."); + n = e.format; + } + var a = C6.formatters[n], + i = so.filter; + return ( + (typeof e.filter == "function" || Vf(e.filter)) && (i = e.filter), + { + addQueryPrefix: + typeof e.addQueryPrefix == "boolean" + ? e.addQueryPrefix + : so.addQueryPrefix, + allowDots: typeof e.allowDots > "u" ? so.allowDots : !!e.allowDots, + charset: t, + charsetSentinel: + typeof e.charsetSentinel == "boolean" + ? e.charsetSentinel + : so.charsetSentinel, + delimiter: typeof e.delimiter > "u" ? so.delimiter : e.delimiter, + encode: typeof e.encode == "boolean" ? e.encode : so.encode, + encoder: typeof e.encoder == "function" ? e.encoder : so.encoder, + encodeValuesOnly: + typeof e.encodeValuesOnly == "boolean" + ? e.encodeValuesOnly + : so.encodeValuesOnly, + filter: i, + format: n, + formatter: a, + serializeDate: + typeof e.serializeDate == "function" + ? e.serializeDate + : so.serializeDate, + skipNulls: + typeof e.skipNulls == "boolean" ? e.skipNulls : so.skipNulls, + sort: typeof e.sort == "function" ? e.sort : null, + strictNullHandling: + typeof e.strictNullHandling == "boolean" + ? e.strictNullHandling + : so.strictNullHandling, + } + ); + }; + dYe.exports = function (r, e) { + var t = r, + n = j0r(e), + a, + i; + typeof n.filter == "function" + ? ((i = n.filter), (t = i("", t))) + : Vf(n.filter) && ((i = n.filter), (a = i)); + var s = []; + if (typeof t != "object" || t === null) return ""; + var c; + e && e.arrayFormat in oYe + ? (c = e.arrayFormat) + : e && "indices" in e + ? (c = e.indices ? "indices" : "repeat") + : (c = "indices"); + var l = oYe[c]; + if (e && "commaRoundTrip" in e && typeof e.commaRoundTrip != "boolean") + throw new TypeError("`commaRoundTrip` must be a boolean, or absent"); + var d = l === "comma" && e && e.commaRoundTrip; + a || (a = Object.keys(t)), n.sort && a.sort(n.sort); + for (var m = uYe(), w = 0; w < a.length; ++w) { + var C = a[w]; + (n.skipNulls && t[C] === null) || + lYe( + s, + z0r( + t[C], + C, + l, + d, + n.strictNullHandling, + n.skipNulls, + n.encode ? n.encoder : null, + n.filter, + n.sort, + n.allowDots, + n.serializeDate, + n.format, + n.formatter, + n.encodeValuesOnly, + n.charset, + m + ) + ); + } + var I = s.join(n.delimiter), + k = n.addQueryPrefix === !0 ? "?" : ""; + return ( + n.charsetSentinel && + (n.charset === "iso-8859-1" + ? (k += "utf8=%26%2310003%3B&") + : (k += "utf8=%E2%9C%93&")), + I.length > 0 ? k + I : "" + ); + }; + }); + var mYe = N((zpn, fYe) => { + "use strict"; + _(); + x(); + var F2 = e$(), + n$ = Object.prototype.hasOwnProperty, + K0r = Array.isArray, + Hs = { + allowDots: !1, + allowPrototypes: !1, + allowSparse: !1, + arrayLimit: 20, + charset: "utf-8", + charsetSentinel: !1, + comma: !1, + decoder: F2.decode, + delimiter: "&", + depth: 5, + ignoreQueryPrefix: !1, + interpretNumericEntities: !1, + parameterLimit: 1e3, + parseArrays: !0, + plainObjects: !1, + strictNullHandling: !1, + }, + V0r = function (r) { + return r.replace(/&#(\d+);/g, function (e, t) { + return String.fromCharCode(parseInt(t, 10)); + }); + }, + hYe = function (r, e) { + return r && typeof r == "string" && e.comma && r.indexOf(",") > -1 + ? r.split(",") + : r; + }, + G0r = "utf8=%26%2310003%3B", + Y0r = "utf8=%E2%9C%93", + $0r = function (e, t) { + var n = {}, + a = t.ignoreQueryPrefix ? e.replace(/^\?/, "") : e, + i = t.parameterLimit === 1 / 0 ? void 0 : t.parameterLimit, + s = a.split(t.delimiter, i), + c = -1, + l, + d = t.charset; + if (t.charsetSentinel) + for (l = 0; l < s.length; ++l) + s[l].indexOf("utf8=") === 0 && + (s[l] === Y0r + ? (d = "utf-8") + : s[l] === G0r && (d = "iso-8859-1"), + (c = l), + (l = s.length)); + for (l = 0; l < s.length; ++l) + if (l !== c) { + var m = s[l], + w = m.indexOf("]="), + C = w === -1 ? m.indexOf("=") : w + 1, + I, + k; + C === -1 + ? ((I = t.decoder(m, Hs.decoder, d, "key")), + (k = t.strictNullHandling ? null : "")) + : ((I = t.decoder(m.slice(0, C), Hs.decoder, d, "key")), + (k = F2.maybeMap(hYe(m.slice(C + 1), t), function (O) { + return t.decoder(O, Hs.decoder, d, "value"); + }))), + k && + t.interpretNumericEntities && + d === "iso-8859-1" && + (k = V0r(k)), + m.indexOf("[]=") > -1 && (k = K0r(k) ? [k] : k), + n$.call(n, I) ? (n[I] = F2.combine(n[I], k)) : (n[I] = k); + } + return n; + }, + J0r = function (r, e, t, n) { + for (var a = n ? e : hYe(e, t), i = r.length - 1; i >= 0; --i) { + var s, + c = r[i]; + if (c === "[]" && t.parseArrays) s = [].concat(a); + else { + s = t.plainObjects ? Object.create(null) : {}; + var l = + c.charAt(0) === "[" && c.charAt(c.length - 1) === "]" + ? c.slice(1, -1) + : c, + d = parseInt(l, 10); + !t.parseArrays && l === "" + ? (s = { 0: a }) + : !isNaN(d) && + c !== l && + String(d) === l && + d >= 0 && + t.parseArrays && + d <= t.arrayLimit + ? ((s = []), (s[d] = a)) + : l !== "__proto__" && (s[l] = a); + } + a = s; + } + return a; + }, + Z0r = function (e, t, n, a) { + if (!!e) { + var i = n.allowDots ? e.replace(/\.([^.[]+)/g, "[$1]") : e, + s = /(\[[^[\]]*])/, + c = /(\[[^[\]]*])/g, + l = n.depth > 0 && s.exec(i), + d = l ? i.slice(0, l.index) : i, + m = []; + if (d) { + if ( + !n.plainObjects && + n$.call(Object.prototype, d) && + !n.allowPrototypes + ) + return; + m.push(d); + } + for ( + var w = 0; + n.depth > 0 && (l = c.exec(i)) !== null && w < n.depth; + + ) { + if ( + ((w += 1), + !n.plainObjects && + n$.call(Object.prototype, l[1].slice(1, -1)) && + !n.allowPrototypes) + ) + return; + m.push(l[1]); + } + return l && m.push("[" + i.slice(l.index) + "]"), J0r(m, t, n, a); + } + }, + Q0r = function (e) { + if (!e) return Hs; + if ( + e.decoder !== null && + e.decoder !== void 0 && + typeof e.decoder != "function" + ) + throw new TypeError("Decoder has to be a function."); + if ( + typeof e.charset < "u" && + e.charset !== "utf-8" && + e.charset !== "iso-8859-1" + ) + throw new TypeError( + "The charset option must be either utf-8, iso-8859-1, or undefined" + ); + var t = typeof e.charset > "u" ? Hs.charset : e.charset; + return { + allowDots: typeof e.allowDots > "u" ? Hs.allowDots : !!e.allowDots, + allowPrototypes: + typeof e.allowPrototypes == "boolean" + ? e.allowPrototypes + : Hs.allowPrototypes, + allowSparse: + typeof e.allowSparse == "boolean" ? e.allowSparse : Hs.allowSparse, + arrayLimit: + typeof e.arrayLimit == "number" ? e.arrayLimit : Hs.arrayLimit, + charset: t, + charsetSentinel: + typeof e.charsetSentinel == "boolean" + ? e.charsetSentinel + : Hs.charsetSentinel, + comma: typeof e.comma == "boolean" ? e.comma : Hs.comma, + decoder: typeof e.decoder == "function" ? e.decoder : Hs.decoder, + delimiter: + typeof e.delimiter == "string" || F2.isRegExp(e.delimiter) + ? e.delimiter + : Hs.delimiter, + depth: + typeof e.depth == "number" || e.depth === !1 ? +e.depth : Hs.depth, + ignoreQueryPrefix: e.ignoreQueryPrefix === !0, + interpretNumericEntities: + typeof e.interpretNumericEntities == "boolean" + ? e.interpretNumericEntities + : Hs.interpretNumericEntities, + parameterLimit: + typeof e.parameterLimit == "number" + ? e.parameterLimit + : Hs.parameterLimit, + parseArrays: e.parseArrays !== !1, + plainObjects: + typeof e.plainObjects == "boolean" + ? e.plainObjects + : Hs.plainObjects, + strictNullHandling: + typeof e.strictNullHandling == "boolean" + ? e.strictNullHandling + : Hs.strictNullHandling, + }; + }; + fYe.exports = function (r, e) { + var t = Q0r(e); + if (r === "" || r === null || typeof r > "u") + return t.plainObjects ? Object.create(null) : {}; + for ( + var n = typeof r == "string" ? $0r(r, t) : r, + a = t.plainObjects ? Object.create(null) : {}, + i = Object.keys(n), + s = 0; + s < i.length; + ++s + ) { + var c = i[s], + l = Z0r(c, n[c], t, typeof r == "string"); + a = F2.merge(a, l, t); + } + return t.allowSparse === !0 ? a : F2.compact(a); + }; + }); + var gYe = N((Vpn, yYe) => { + "use strict"; + _(); + x(); + var X0r = pYe(), + eyr = mYe(), + tyr = g7(); + yYe.exports = { formats: tyr, parse: eyr, stringify: X0r }; + }); + var A6 = N((oo) => { + "use strict"; + _(); + x(); + Object.defineProperty(oo, "__esModule", { value: !0 }); + oo.ProviderType = + oo.RegExpString = + oo.IntNumber = + oo.BigIntString = + oo.AddressString = + oo.HexString = + oo.OpaqueType = + void 0; + function I6() { + return (r) => r; + } + oo.OpaqueType = I6; + oo.HexString = I6(); + oo.AddressString = I6(); + oo.BigIntString = I6(); + function ryr(r) { + return Math.floor(r); + } + oo.IntNumber = ryr; + oo.RegExpString = I6(); + var nyr; + (function (r) { + (r.CoinbaseWallet = "CoinbaseWallet"), + (r.MetaMask = "MetaMask"), + (r.Unselected = ""); + })((nyr = oo.ProviderType || (oo.ProviderType = {}))); + }); + var Gf = N((rr) => { + "use strict"; + _(); + x(); + var ayr = + (rr && rr.__importDefault) || + function (r) { + return r && r.__esModule ? r : { default: r }; + }; + Object.defineProperty(rr, "__esModule", { value: !0 }); + rr.isInIFrame = + rr.createQrUrl = + rr.getFavicon = + rr.range = + rr.isBigNumber = + rr.ensureParsedJSONObject = + rr.ensureBN = + rr.ensureRegExpString = + rr.ensureIntNumber = + rr.ensureBuffer = + rr.ensureAddressString = + rr.ensureEvenLengthHexString = + rr.ensureHexString = + rr.isHexString = + rr.prepend0x = + rr.strip0x = + rr.has0xPrefix = + rr.hexStringFromIntNumber = + rr.intNumberFromHexString = + rr.bigIntStringFromBN = + rr.hexStringFromBuffer = + rr.hexStringToUint8Array = + rr.uint8ArrayToHex = + rr.randomBytesHex = + void 0; + var B0 = ayr(Gr()), + iyr = gYe(), + id = A6(), + bYe = /^[0-9]*$/, + vYe = /^[a-f0-9]*$/; + function syr(r) { + return wYe(crypto.getRandomValues(new Uint8Array(r))); + } + rr.randomBytesHex = syr; + function wYe(r) { + return [...r].map((e) => e.toString(16).padStart(2, "0")).join(""); + } + rr.uint8ArrayToHex = wYe; + function oyr(r) { + return new Uint8Array(r.match(/.{1,2}/g).map((e) => parseInt(e, 16))); + } + rr.hexStringToUint8Array = oyr; + function cyr(r, e = !1) { + let t = r.toString("hex"); + return (0, id.HexString)(e ? "0x" + t : t); + } + rr.hexStringFromBuffer = cyr; + function uyr(r) { + return (0, id.BigIntString)(r.toString(10)); + } + rr.bigIntStringFromBN = uyr; + function lyr(r) { + return (0, id.IntNumber)(new B0.default(S6(r, !1), 16).toNumber()); + } + rr.intNumberFromHexString = lyr; + function dyr(r) { + return (0, id.HexString)("0x" + new B0.default(r).toString(16)); + } + rr.hexStringFromIntNumber = dyr; + function a$(r) { + return r.startsWith("0x") || r.startsWith("0X"); + } + rr.has0xPrefix = a$; + function b7(r) { + return a$(r) ? r.slice(2) : r; + } + rr.strip0x = b7; + function _Ye(r) { + return a$(r) ? "0x" + r.slice(2) : "0x" + r; + } + rr.prepend0x = _Ye; + function k6(r) { + if (typeof r != "string") return !1; + let e = b7(r).toLowerCase(); + return vYe.test(e); + } + rr.isHexString = k6; + function xYe(r, e = !1) { + if (typeof r == "string") { + let t = b7(r).toLowerCase(); + if (vYe.test(t)) return (0, id.HexString)(e ? "0x" + t : t); + } + throw new Error(`"${String(r)}" is not a hexadecimal string`); + } + rr.ensureHexString = xYe; + function S6(r, e = !1) { + let t = xYe(r, !1); + return ( + t.length % 2 === 1 && (t = (0, id.HexString)("0" + t)), + e ? (0, id.HexString)("0x" + t) : t + ); + } + rr.ensureEvenLengthHexString = S6; + function pyr(r) { + if (typeof r == "string") { + let e = b7(r).toLowerCase(); + if (k6(e) && e.length === 40) return (0, id.AddressString)(_Ye(e)); + } + throw new Error(`Invalid Ethereum address: ${String(r)}`); + } + rr.ensureAddressString = pyr; + function hyr(r) { + if (P.Buffer.isBuffer(r)) return r; + if (typeof r == "string") + if (k6(r)) { + let e = S6(r, !1); + return P.Buffer.from(e, "hex"); + } else return P.Buffer.from(r, "utf8"); + throw new Error(`Not binary data: ${String(r)}`); + } + rr.ensureBuffer = hyr; + function TYe(r) { + if (typeof r == "number" && Number.isInteger(r)) + return (0, id.IntNumber)(r); + if (typeof r == "string") { + if (bYe.test(r)) return (0, id.IntNumber)(Number(r)); + if (k6(r)) + return (0, id.IntNumber)(new B0.default(S6(r, !1), 16).toNumber()); + } + throw new Error(`Not an integer: ${String(r)}`); + } + rr.ensureIntNumber = TYe; + function fyr(r) { + if (r instanceof RegExp) return (0, id.RegExpString)(r.toString()); + throw new Error(`Not a RegExp: ${String(r)}`); + } + rr.ensureRegExpString = fyr; + function myr(r) { + if (r !== null && (B0.default.isBN(r) || EYe(r))) + return new B0.default(r.toString(10), 10); + if (typeof r == "number") return new B0.default(TYe(r)); + if (typeof r == "string") { + if (bYe.test(r)) return new B0.default(r, 10); + if (k6(r)) return new B0.default(S6(r, !1), 16); + } + throw new Error(`Not an integer: ${String(r)}`); + } + rr.ensureBN = myr; + function yyr(r) { + if (typeof r == "string") return JSON.parse(r); + if (typeof r == "object") return r; + throw new Error(`Not a JSON string or an object: ${String(r)}`); + } + rr.ensureParsedJSONObject = yyr; + function EYe(r) { + if (r == null || typeof r.constructor != "function") return !1; + let { constructor: e } = r; + return typeof e.config == "function" && typeof e.EUCLID == "number"; + } + rr.isBigNumber = EYe; + function gyr(r, e) { + return Array.from({ length: e - r }, (t, n) => r + n); + } + rr.range = gyr; + function byr() { + let r = + document.querySelector('link[sizes="192x192"]') || + document.querySelector('link[sizes="180x180"]') || + document.querySelector('link[rel="icon"]') || + document.querySelector('link[rel="shortcut icon"]'), + { protocol: e, host: t } = document.location, + n = r ? r.getAttribute("href") : null; + return !n || n.startsWith("javascript:") + ? null + : n.startsWith("http://") || + n.startsWith("https://") || + n.startsWith("data:") + ? n + : n.startsWith("//") + ? e + n + : `${e}//${t}${n}`; + } + rr.getFavicon = byr; + function vyr(r, e, t, n, a, i) { + let s = n ? "parent-id" : "id", + c = (0, iyr.stringify)({ + [s]: r, + secret: e, + server: t, + v: a, + chainId: i, + }); + return `${t}/#/link?${c}`; + } + rr.createQrUrl = vyr; + function wyr() { + try { + return window.frameElement !== null; + } catch { + return !1; + } + } + rr.isInIFrame = wyr; + }); + var w7 = N((v7) => { + "use strict"; + _(); + x(); + Object.defineProperty(v7, "__esModule", { value: !0 }); + v7.Session = void 0; + var CYe = mT(), + IYe = Gf(), + AYe = "session:id", + kYe = "session:secret", + SYe = "session:linked", + M6 = class { + constructor(e, t, n, a) { + (this._storage = e), + (this._id = t || (0, IYe.randomBytesHex)(16)), + (this._secret = n || (0, IYe.randomBytesHex)(32)), + (this._key = new CYe.sha256() + .update(`${this._id}, ${this._secret} WalletLink`) + .digest("hex")), + (this._linked = !!a); + } + static load(e) { + let t = e.getItem(AYe), + n = e.getItem(SYe), + a = e.getItem(kYe); + return t && a ? new M6(e, t, a, n === "1") : null; + } + static hash(e) { + return new CYe.sha256().update(e).digest("hex"); + } + get id() { + return this._id; + } + get secret() { + return this._secret; + } + get key() { + return this._key; + } + get linked() { + return this._linked; + } + set linked(e) { + (this._linked = e), this.persistLinked(); + } + save() { + return ( + this._storage.setItem(AYe, this._id), + this._storage.setItem(kYe, this._secret), + this.persistLinked(), + this + ); + } + persistLinked() { + this._storage.setItem(SYe, this._linked ? "1" : "0"); + } + }; + v7.Session = M6; + }); + var s$ = N((Mh) => { + "use strict"; + _(); + x(); + Object.defineProperty(Mh, "__esModule", { value: !0 }); + Mh.WalletSDKRelayAbstract = + Mh.APP_VERSION_KEY = + Mh.LOCAL_STORAGE_ADDRESSES_KEY = + Mh.WALLET_USER_NAME_KEY = + void 0; + var MYe = u7(); + Mh.WALLET_USER_NAME_KEY = "walletUsername"; + Mh.LOCAL_STORAGE_ADDRESSES_KEY = "Addresses"; + Mh.APP_VERSION_KEY = "AppVersion"; + var i$ = class { + async makeEthereumJSONRPCRequest(e, t) { + if (!t) throw new Error("Error: No jsonRpcUrl provided"); + return window + .fetch(t, { + method: "POST", + body: JSON.stringify(e), + mode: "cors", + headers: { "Content-Type": "application/json" }, + }) + .then((n) => n.json()) + .then((n) => { + if (!n) throw MYe.ethErrors.rpc.parse({}); + let a = n, + { error: i } = a; + if (i) throw (0, MYe.serializeError)(i); + return a; + }); + } + }; + Mh.WalletSDKRelayAbstract = i$; + }); + var BYe = N((ohn, RYe) => { + _(); + x(); + var { Transform: _yr } = aT(); + RYe.exports = (r) => + class PYe extends _yr { + constructor(t, n, a, i, s) { + super(s), + (this._rate = t), + (this._capacity = n), + (this._delimitedSuffix = a), + (this._hashBitLength = i), + (this._options = s), + (this._state = new r()), + this._state.initialize(t, n), + (this._finalized = !1); + } + _transform(t, n, a) { + let i = null; + try { + this.update(t, n); + } catch (s) { + i = s; + } + a(i); + } + _flush(t) { + let n = null; + try { + this.push(this.digest()); + } catch (a) { + n = a; + } + t(n); + } + update(t, n) { + if (!P.Buffer.isBuffer(t) && typeof t != "string") + throw new TypeError("Data must be a string or a buffer"); + if (this._finalized) throw new Error("Digest already called"); + return ( + P.Buffer.isBuffer(t) || (t = P.Buffer.from(t, n)), + this._state.absorb(t), + this + ); + } + digest(t) { + if (this._finalized) throw new Error("Digest already called"); + (this._finalized = !0), + this._delimitedSuffix && + this._state.absorbLastFewBits(this._delimitedSuffix); + let n = this._state.squeeze(this._hashBitLength / 8); + return t !== void 0 && (n = n.toString(t)), this._resetState(), n; + } + _resetState() { + return this._state.initialize(this._rate, this._capacity), this; + } + _clone() { + let t = new PYe( + this._rate, + this._capacity, + this._delimitedSuffix, + this._hashBitLength, + this._options + ); + return ( + this._state.copy(t._state), (t._finalized = this._finalized), t + ); + } + }; + }); + var LYe = N((lhn, OYe) => { + _(); + x(); + var { Transform: xyr } = aT(); + OYe.exports = (r) => + class NYe extends xyr { + constructor(t, n, a, i) { + super(i), + (this._rate = t), + (this._capacity = n), + (this._delimitedSuffix = a), + (this._options = i), + (this._state = new r()), + this._state.initialize(t, n), + (this._finalized = !1); + } + _transform(t, n, a) { + let i = null; + try { + this.update(t, n); + } catch (s) { + i = s; + } + a(i); + } + _flush() {} + _read(t) { + this.push(this.squeeze(t)); + } + update(t, n) { + if (!P.Buffer.isBuffer(t) && typeof t != "string") + throw new TypeError("Data must be a string or a buffer"); + if (this._finalized) throw new Error("Squeeze already called"); + return ( + P.Buffer.isBuffer(t) || (t = P.Buffer.from(t, n)), + this._state.absorb(t), + this + ); + } + squeeze(t, n) { + this._finalized || + ((this._finalized = !0), + this._state.absorbLastFewBits(this._delimitedSuffix)); + let a = this._state.squeeze(t); + return n !== void 0 && (a = a.toString(n)), a; + } + _resetState() { + return this._state.initialize(this._rate, this._capacity), this; + } + _clone() { + let t = new NYe( + this._rate, + this._capacity, + this._delimitedSuffix, + this._options + ); + return ( + this._state.copy(t._state), (t._finalized = this._finalized), t + ); + } + }; + }); + var qYe = N((hhn, DYe) => { + _(); + x(); + var Tyr = BYe(), + Eyr = LYe(); + DYe.exports = function (r) { + let e = Tyr(r), + t = Eyr(r); + return function (n, a) { + switch (typeof n == "string" ? n.toLowerCase() : n) { + case "keccak224": + return new e(1152, 448, null, 224, a); + case "keccak256": + return new e(1088, 512, null, 256, a); + case "keccak384": + return new e(832, 768, null, 384, a); + case "keccak512": + return new e(576, 1024, null, 512, a); + case "sha3-224": + return new e(1152, 448, 6, 224, a); + case "sha3-256": + return new e(1088, 512, 6, 256, a); + case "sha3-384": + return new e(832, 768, 6, 384, a); + case "sha3-512": + return new e(576, 1024, 6, 512, a); + case "shake128": + return new t(1344, 256, 31, a); + case "shake256": + return new t(1088, 512, 31, a); + default: + throw new Error("Invald algorithm: " + n); + } + }; + }; + }); + var UYe = N((WYe) => { + _(); + x(); + var FYe = [ + 1, 0, 32898, 0, 32906, 2147483648, 2147516416, 2147483648, 32907, 0, + 2147483649, 0, 2147516545, 2147483648, 32777, 2147483648, 138, 0, 136, 0, + 2147516425, 0, 2147483658, 0, 2147516555, 0, 139, 2147483648, 32905, + 2147483648, 32771, 2147483648, 32770, 2147483648, 128, 2147483648, 32778, + 0, 2147483658, 2147483648, 2147516545, 2147483648, 32896, 2147483648, + 2147483649, 0, 2147516424, 2147483648, + ]; + WYe.p1600 = function (r) { + for (let e = 0; e < 24; ++e) { + let t = r[0] ^ r[10] ^ r[20] ^ r[30] ^ r[40], + n = r[1] ^ r[11] ^ r[21] ^ r[31] ^ r[41], + a = r[2] ^ r[12] ^ r[22] ^ r[32] ^ r[42], + i = r[3] ^ r[13] ^ r[23] ^ r[33] ^ r[43], + s = r[4] ^ r[14] ^ r[24] ^ r[34] ^ r[44], + c = r[5] ^ r[15] ^ r[25] ^ r[35] ^ r[45], + l = r[6] ^ r[16] ^ r[26] ^ r[36] ^ r[46], + d = r[7] ^ r[17] ^ r[27] ^ r[37] ^ r[47], + m = r[8] ^ r[18] ^ r[28] ^ r[38] ^ r[48], + w = r[9] ^ r[19] ^ r[29] ^ r[39] ^ r[49], + C = m ^ ((a << 1) | (i >>> 31)), + I = w ^ ((i << 1) | (a >>> 31)), + k = r[0] ^ C, + O = r[1] ^ I, + D = r[10] ^ C, + W = r[11] ^ I, + H = r[20] ^ C, + j = r[21] ^ I, + V = r[30] ^ C, + te = r[31] ^ I, + $ = r[40] ^ C, + ae = r[41] ^ I; + (C = t ^ ((s << 1) | (c >>> 31))), (I = n ^ ((c << 1) | (s >>> 31))); + let Y = r[2] ^ C, + K = r[3] ^ I, + g = r[12] ^ C, + o = r[13] ^ I, + p = r[22] ^ C, + y = r[23] ^ I, + h = r[32] ^ C, + b = r[33] ^ I, + T = r[42] ^ C, + E = r[43] ^ I; + (C = a ^ ((l << 1) | (d >>> 31))), (I = i ^ ((d << 1) | (l >>> 31))); + let f = r[4] ^ C, + u = r[5] ^ I, + v = r[14] ^ C, + R = r[15] ^ I, + A = r[24] ^ C, + L = r[25] ^ I, + G = r[34] ^ C, + U = r[35] ^ I, + Z = r[44] ^ C, + de = r[45] ^ I; + (C = s ^ ((m << 1) | (w >>> 31))), (I = c ^ ((w << 1) | (m >>> 31))); + let ne = r[6] ^ C, + pe = r[7] ^ I, + lt = r[16] ^ C, + fe = r[17] ^ I, + ve = r[26] ^ C, + vt = r[27] ^ I, + we = r[36] ^ C, + Ne = r[37] ^ I, + kt = r[46] ^ C, + Le = r[47] ^ I; + (C = l ^ ((t << 1) | (n >>> 31))), (I = d ^ ((n << 1) | (t >>> 31))); + let ze = r[8] ^ C, + It = r[9] ^ I, + Se = r[18] ^ C, + Ke = r[19] ^ I, + Et = r[28] ^ C, + Me = r[29] ^ I, + Ge = r[38] ^ C, + Dt = r[39] ^ I, + De = r[48] ^ C, + Ze = r[49] ^ I, + Wt = k, + ke = O, + $e = (W << 4) | (D >>> 28), + Ht = (D << 4) | (W >>> 28), + Pe = (H << 3) | (j >>> 29), + Je = (j << 3) | (H >>> 29), + zt = (te << 9) | (V >>> 23), + Re = (V << 9) | (te >>> 23), + Qe = ($ << 18) | (ae >>> 14), + jt = (ae << 18) | ($ >>> 14), + Be = (Y << 1) | (K >>> 31), + Xe = (K << 1) | (Y >>> 31), + Ut = (o << 12) | (g >>> 20), + Ae = (g << 12) | (o >>> 20), + et = (p << 10) | (y >>> 22), + St = (y << 10) | (p >>> 22), + Oe = (b << 13) | (h >>> 19), + tt = (h << 13) | (b >>> 19), + Kt = (T << 2) | (E >>> 30), + qe = (E << 2) | (T >>> 30), + rt = (u << 30) | (f >>> 2), + Vt = (f << 30) | (u >>> 2), + Ie = (v << 6) | (R >>> 26), + Ye = (R << 6) | (v >>> 26), + Gt = (L << 11) | (A >>> 21), + We = (A << 11) | (L >>> 21), + it = (G << 15) | (U >>> 17), + Qt = (U << 15) | (G >>> 17), + Ue = (de << 29) | (Z >>> 3), + nt = (Z << 29) | (de >>> 3), + tr = (ne << 28) | (pe >>> 4), + He = (pe << 28) | (ne >>> 4), + at = (fe << 23) | (lt >>> 9), + Pr = (lt << 23) | (fe >>> 9), + qt = (ve << 25) | (vt >>> 7), + Ft = (vt << 25) | (ve >>> 7), + _r = (we << 21) | (Ne >>> 11), + xr = (Ne << 21) | (we >>> 11), + Tr = (Le << 24) | (kt >>> 8), + Er = (kt << 24) | (Le >>> 8), + Cr = (ze << 27) | (It >>> 5), + Kr = (It << 27) | (ze >>> 5), + Vr = (Se << 20) | (Ke >>> 12), + Ur = (Ke << 20) | (Se >>> 12), + Rr = (Me << 7) | (Et >>> 25), + Or = (Et << 7) | (Me >>> 25), + ur = (Ge << 8) | (Dt >>> 24), + Hr = (Dt << 8) | (Ge >>> 24), + hr = (De << 14) | (Ze >>> 18), + Lr = (Ze << 14) | (De >>> 18); + (r[0] = Wt ^ (~Ut & Gt)), + (r[1] = ke ^ (~Ae & We)), + (r[10] = tr ^ (~Vr & Pe)), + (r[11] = He ^ (~Ur & Je)), + (r[20] = Be ^ (~Ie & qt)), + (r[21] = Xe ^ (~Ye & Ft)), + (r[30] = Cr ^ (~$e & et)), + (r[31] = Kr ^ (~Ht & St)), + (r[40] = rt ^ (~at & Rr)), + (r[41] = Vt ^ (~Pr & Or)), + (r[2] = Ut ^ (~Gt & _r)), + (r[3] = Ae ^ (~We & xr)), + (r[12] = Vr ^ (~Pe & Oe)), + (r[13] = Ur ^ (~Je & tt)), + (r[22] = Ie ^ (~qt & ur)), + (r[23] = Ye ^ (~Ft & Hr)), + (r[32] = $e ^ (~et & it)), + (r[33] = Ht ^ (~St & Qt)), + (r[42] = at ^ (~Rr & zt)), + (r[43] = Pr ^ (~Or & Re)), + (r[4] = Gt ^ (~_r & hr)), + (r[5] = We ^ (~xr & Lr)), + (r[14] = Pe ^ (~Oe & Ue)), + (r[15] = Je ^ (~tt & nt)), + (r[24] = qt ^ (~ur & Qe)), + (r[25] = Ft ^ (~Hr & jt)), + (r[34] = et ^ (~it & Tr)), + (r[35] = St ^ (~Qt & Er)), + (r[44] = Rr ^ (~zt & Kt)), + (r[45] = Or ^ (~Re & qe)), + (r[6] = _r ^ (~hr & Wt)), + (r[7] = xr ^ (~Lr & ke)), + (r[16] = Oe ^ (~Ue & tr)), + (r[17] = tt ^ (~nt & He)), + (r[26] = ur ^ (~Qe & Be)), + (r[27] = Hr ^ (~jt & Xe)), + (r[36] = it ^ (~Tr & Cr)), + (r[37] = Qt ^ (~Er & Kr)), + (r[46] = zt ^ (~Kt & rt)), + (r[47] = Re ^ (~qe & Vt)), + (r[8] = hr ^ (~Wt & Ut)), + (r[9] = Lr ^ (~ke & Ae)), + (r[18] = Ue ^ (~tr & Vr)), + (r[19] = nt ^ (~He & Ur)), + (r[28] = Qe ^ (~Be & Ie)), + (r[29] = jt ^ (~Xe & Ye)), + (r[38] = Tr ^ (~Cr & $e)), + (r[39] = Er ^ (~Kr & Ht)), + (r[48] = Kt ^ (~rt & at)), + (r[49] = qe ^ (~Vt & Pr)), + (r[0] ^= FYe[e * 2]), + (r[1] ^= FYe[e * 2 + 1]); + } + }; + }); + var zYe = N((vhn, HYe) => { + _(); + x(); + var _7 = UYe(); + function W2() { + (this.state = [ + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, + ]), + (this.blockSize = null), + (this.count = 0), + (this.squeezing = !1); + } + W2.prototype.initialize = function (r, e) { + for (let t = 0; t < 50; ++t) this.state[t] = 0; + (this.blockSize = r / 8), (this.count = 0), (this.squeezing = !1); + }; + W2.prototype.absorb = function (r) { + for (let e = 0; e < r.length; ++e) + (this.state[~~(this.count / 4)] ^= r[e] << (8 * (this.count % 4))), + (this.count += 1), + this.count === this.blockSize && + (_7.p1600(this.state), (this.count = 0)); + }; + W2.prototype.absorbLastFewBits = function (r) { + (this.state[~~(this.count / 4)] ^= r << (8 * (this.count % 4))), + (r & 128) !== 0 && + this.count === this.blockSize - 1 && + _7.p1600(this.state), + (this.state[~~((this.blockSize - 1) / 4)] ^= + 128 << (8 * ((this.blockSize - 1) % 4))), + _7.p1600(this.state), + (this.count = 0), + (this.squeezing = !0); + }; + W2.prototype.squeeze = function (r) { + this.squeezing || this.absorbLastFewBits(1); + let e = P.Buffer.alloc(r); + for (let t = 0; t < r; ++t) + (e[t] = + (this.state[~~(this.count / 4)] >>> (8 * (this.count % 4))) & 255), + (this.count += 1), + this.count === this.blockSize && + (_7.p1600(this.state), (this.count = 0)); + return e; + }; + W2.prototype.copy = function (r) { + for (let e = 0; e < 50; ++e) r.state[e] = this.state[e]; + (r.blockSize = this.blockSize), + (r.count = this.count), + (r.squeezing = this.squeezing); + }; + HYe.exports = W2; + }); + var KYe = N((xhn, jYe) => { + _(); + x(); + jYe.exports = qYe()(zYe()); + }); + var o$ = N((Chn, JYe) => { + _(); + x(); + var Cyr = KYe(), + Iyr = Gr(); + function VYe(r) { + return P.Buffer.allocUnsafe(r).fill(0); + } + function GYe(r, e, t) { + let n = VYe(e); + return ( + (r = x7(r)), + t + ? r.length < e + ? (r.copy(n), n) + : r.slice(0, e) + : r.length < e + ? (r.copy(n, e - r.length), n) + : r.slice(-e) + ); + } + function Ayr(r, e) { + return GYe(r, e, !0); + } + function x7(r) { + if (!P.Buffer.isBuffer(r)) + if (Array.isArray(r)) r = P.Buffer.from(r); + else if (typeof r == "string") + YYe(r) + ? (r = P.Buffer.from(Myr($Ye(r)), "hex")) + : (r = P.Buffer.from(r)); + else if (typeof r == "number") r = intToBuffer(r); + else if (r == null) r = P.Buffer.allocUnsafe(0); + else if (Iyr.isBN(r)) r = r.toArrayLike(P.Buffer); + else if (r.toArray) r = P.Buffer.from(r.toArray()); + else throw new Error("invalid type"); + return r; + } + function kyr(r) { + return (r = x7(r)), "0x" + r.toString("hex"); + } + function Syr(r, e) { + return ( + (r = x7(r)), + e || (e = 256), + Cyr("keccak" + e) + .update(r) + .digest() + ); + } + function Myr(r) { + return r.length % 2 ? "0" + r : r; + } + function YYe(r) { + return typeof r == "string" && r.match(/^0x[0-9A-Fa-f]*$/); + } + function $Ye(r) { + return typeof r == "string" && r.startsWith("0x") ? r.slice(2) : r; + } + JYe.exports = { + zeros: VYe, + setLength: GYe, + setLengthRight: Ayr, + isHexString: YYe, + stripHexPrefix: $Ye, + toBuffer: x7, + bufferToHex: kyr, + keccak: Syr, + }; + }); + var r$e = N((khn, t$e) => { + _(); + x(); + var yb = o$(), + mb = Gr(); + function QYe(r) { + return r.startsWith("int[") + ? "int256" + r.slice(3) + : r === "int" + ? "int256" + : r.startsWith("uint[") + ? "uint256" + r.slice(4) + : r === "uint" + ? "uint256" + : r.startsWith("fixed[") + ? "fixed128x128" + r.slice(5) + : r === "fixed" + ? "fixed128x128" + : r.startsWith("ufixed[") + ? "ufixed128x128" + r.slice(6) + : r === "ufixed" + ? "ufixed128x128" + : r; + } + function U2(r) { + return parseInt(/^\D+(\d+)$/.exec(r)[1], 10); + } + function ZYe(r) { + var e = /^\D+(\d+)x(\d+)$/.exec(r); + return [parseInt(e[1], 10), parseInt(e[2], 10)]; + } + function XYe(r) { + var e = r.match(/(.*)\[(.*?)\]$/); + return e ? (e[2] === "" ? "dynamic" : parseInt(e[2], 10)) : null; + } + function fb(r) { + var e = typeof r; + if (e === "string") + return yb.isHexString(r) + ? new mb(yb.stripHexPrefix(r), 16) + : new mb(r, 10); + if (e === "number") return new mb(r); + if (r.toArray) return r; + throw new Error("Argument is not a number"); + } + function Ph(r, e) { + var t, n, a, i; + if (r === "address") return Ph("uint160", fb(e)); + if (r === "bool") return Ph("uint8", e ? 1 : 0); + if (r === "string") return Ph("bytes", new P.Buffer(e, "utf8")); + if (Ryr(r)) { + if (typeof e.length > "u") throw new Error("Not an array?"); + if (((t = XYe(r)), t !== "dynamic" && t !== 0 && e.length > t)) + throw new Error("Elements exceed array size: " + t); + (a = []), + (r = r.slice(0, r.lastIndexOf("["))), + typeof e == "string" && (e = JSON.parse(e)); + for (i in e) a.push(Ph(r, e[i])); + if (t === "dynamic") { + var s = Ph("uint256", e.length); + a.unshift(s); + } + return P.Buffer.concat(a); + } else { + if (r === "bytes") + return ( + (e = new P.Buffer(e)), + (a = P.Buffer.concat([Ph("uint256", e.length), e])), + e.length % 32 !== 0 && + (a = P.Buffer.concat([a, yb.zeros(32 - (e.length % 32))])), + a + ); + if (r.startsWith("bytes")) { + if (((t = U2(r)), t < 1 || t > 32)) + throw new Error("Invalid bytes width: " + t); + return yb.setLengthRight(e, 32); + } else if (r.startsWith("uint")) { + if (((t = U2(r)), t % 8 || t < 8 || t > 256)) + throw new Error("Invalid uint width: " + t); + if (((n = fb(e)), n.bitLength() > t)) + throw new Error( + "Supplied uint exceeds width: " + t + " vs " + n.bitLength() + ); + if (n < 0) throw new Error("Supplied uint is negative"); + return n.toArrayLike(P.Buffer, "be", 32); + } else if (r.startsWith("int")) { + if (((t = U2(r)), t % 8 || t < 8 || t > 256)) + throw new Error("Invalid int width: " + t); + if (((n = fb(e)), n.bitLength() > t)) + throw new Error( + "Supplied int exceeds width: " + t + " vs " + n.bitLength() + ); + return n.toTwos(256).toArrayLike(P.Buffer, "be", 32); + } else if (r.startsWith("ufixed")) { + if (((t = ZYe(r)), (n = fb(e)), n < 0)) + throw new Error("Supplied ufixed is negative"); + return Ph("uint256", n.mul(new mb(2).pow(new mb(t[1])))); + } else if (r.startsWith("fixed")) + return ( + (t = ZYe(r)), Ph("int256", fb(e).mul(new mb(2).pow(new mb(t[1])))) + ); + } + throw new Error("Unsupported or invalid type: " + r); + } + function Pyr(r) { + return r === "string" || r === "bytes" || XYe(r) === "dynamic"; + } + function Ryr(r) { + return r.lastIndexOf("]") === r.length - 1; + } + function Byr(r, e) { + var t = [], + n = [], + a = 32 * r.length; + for (var i in r) { + var s = QYe(r[i]), + c = e[i], + l = Ph(s, c); + Pyr(s) + ? (t.push(Ph("uint256", a)), n.push(l), (a += l.length)) + : t.push(l); + } + return P.Buffer.concat(t.concat(n)); + } + function e$e(r, e) { + if (r.length !== e.length) + throw new Error("Number of types are not matching the values"); + for (var t, n, a = [], i = 0; i < r.length; i++) { + var s = QYe(r[i]), + c = e[i]; + if (s === "bytes") a.push(c); + else if (s === "string") a.push(new P.Buffer(c, "utf8")); + else if (s === "bool") a.push(new P.Buffer(c ? "01" : "00", "hex")); + else if (s === "address") a.push(yb.setLength(c, 20)); + else if (s.startsWith("bytes")) { + if (((t = U2(s)), t < 1 || t > 32)) + throw new Error("Invalid bytes width: " + t); + a.push(yb.setLengthRight(c, t)); + } else if (s.startsWith("uint")) { + if (((t = U2(s)), t % 8 || t < 8 || t > 256)) + throw new Error("Invalid uint width: " + t); + if (((n = fb(c)), n.bitLength() > t)) + throw new Error( + "Supplied uint exceeds width: " + t + " vs " + n.bitLength() + ); + a.push(n.toArrayLike(P.Buffer, "be", t / 8)); + } else if (s.startsWith("int")) { + if (((t = U2(s)), t % 8 || t < 8 || t > 256)) + throw new Error("Invalid int width: " + t); + if (((n = fb(c)), n.bitLength() > t)) + throw new Error( + "Supplied int exceeds width: " + t + " vs " + n.bitLength() + ); + a.push(n.toTwos(t).toArrayLike(P.Buffer, "be", t / 8)); + } else throw new Error("Unsupported or invalid type: " + s); + } + return P.Buffer.concat(a); + } + function Nyr(r, e) { + return yb.keccak(e$e(r, e)); + } + t$e.exports = { rawEncode: Byr, solidityPack: e$e, soliditySHA3: Nyr }; + }); + var i$e = N((Phn, a$e) => { + _(); + x(); + var op = o$(), + P6 = r$e(), + n$e = { + type: "object", + properties: { + types: { + type: "object", + additionalProperties: { + type: "array", + items: { + type: "object", + properties: { + name: { type: "string" }, + type: { type: "string" }, + }, + required: ["name", "type"], + }, + }, + }, + primaryType: { type: "string" }, + domain: { type: "object" }, + message: { type: "object" }, + }, + required: ["types", "primaryType", "domain", "message"], + }, + c$ = { + encodeData(r, e, t, n = !0) { + let a = ["bytes32"], + i = [this.hashType(r, t)]; + if (n) { + let s = (c, l, d) => { + if (t[l] !== void 0) + return [ + "bytes32", + d == null + ? "0x0000000000000000000000000000000000000000000000000000000000000000" + : op.keccak(this.encodeData(l, d, t, n)), + ]; + if (d === void 0) + throw new Error(`missing value for field ${c} of type ${l}`); + if (l === "bytes") return ["bytes32", op.keccak(d)]; + if (l === "string") + return ( + typeof d == "string" && (d = P.Buffer.from(d, "utf8")), + ["bytes32", op.keccak(d)] + ); + if (l.lastIndexOf("]") === l.length - 1) { + let m = l.slice(0, l.lastIndexOf("[")), + w = d.map((C) => s(c, m, C)); + return [ + "bytes32", + op.keccak( + P6.rawEncode( + w.map(([C]) => C), + w.map(([, C]) => C) + ) + ), + ]; + } + return [l, d]; + }; + for (let c of t[r]) { + let [l, d] = s(c.name, c.type, e[c.name]); + a.push(l), i.push(d); + } + } else + for (let s of t[r]) { + let c = e[s.name]; + if (c !== void 0) + if (s.type === "bytes") + a.push("bytes32"), (c = op.keccak(c)), i.push(c); + else if (s.type === "string") + a.push("bytes32"), + typeof c == "string" && (c = P.Buffer.from(c, "utf8")), + (c = op.keccak(c)), + i.push(c); + else if (t[s.type] !== void 0) + a.push("bytes32"), + (c = op.keccak(this.encodeData(s.type, c, t, n))), + i.push(c); + else { + if (s.type.lastIndexOf("]") === s.type.length - 1) + throw new Error( + "Arrays currently unimplemented in encodeData" + ); + a.push(s.type), i.push(c); + } + } + return P6.rawEncode(a, i); + }, + encodeType(r, e) { + let t = "", + n = this.findTypeDependencies(r, e).filter((a) => a !== r); + n = [r].concat(n.sort()); + for (let a of n) { + if (!e[a]) throw new Error("No type definition specified: " + a); + t += + a + + "(" + + e[a].map(({ name: s, type: c }) => c + " " + s).join(",") + + ")"; + } + return t; + }, + findTypeDependencies(r, e, t = []) { + if (((r = r.match(/^\w*/)[0]), t.includes(r) || e[r] === void 0)) + return t; + t.push(r); + for (let n of e[r]) + for (let a of this.findTypeDependencies(n.type, e, t)) + !t.includes(a) && t.push(a); + return t; + }, + hashStruct(r, e, t, n = !0) { + return op.keccak(this.encodeData(r, e, t, n)); + }, + hashType(r, e) { + return op.keccak(this.encodeType(r, e)); + }, + sanitizeData(r) { + let e = {}; + for (let t in n$e.properties) r[t] && (e[t] = r[t]); + return ( + e.types && (e.types = Object.assign({ EIP712Domain: [] }, e.types)), + e + ); + }, + hash(r, e = !0) { + let t = this.sanitizeData(r), + n = [P.Buffer.from("1901", "hex")]; + return ( + n.push(this.hashStruct("EIP712Domain", t.domain, t.types, e)), + t.primaryType !== "EIP712Domain" && + n.push(this.hashStruct(t.primaryType, t.message, t.types, e)), + op.keccak(P.Buffer.concat(n)) + ); + }, + }; + a$e.exports = { + TYPED_MESSAGE_SCHEMA: n$e, + TypedDataUtils: c$, + hashForSignTypedDataLegacy: function (r) { + return Oyr(r.data); + }, + hashForSignTypedData_v3: function (r) { + return c$.hash(r.data, !1); + }, + hashForSignTypedData_v4: function (r) { + return c$.hash(r.data); + }, + }; + function Oyr(r) { + let e = new Error("Expect argument to be non-empty array"); + if (typeof r != "object" || !r.length) throw e; + let t = r.map(function (i) { + return i.type === "bytes" ? op.toBuffer(i.value) : i.value; + }), + n = r.map(function (i) { + return i.type; + }), + a = r.map(function (i) { + if (!i.name) throw e; + return i.type + " " + i.name; + }); + return P6.soliditySHA3( + ["bytes32", "bytes32"], + [ + P6.soliditySHA3(new Array(r.length).fill("string"), a), + P6.soliditySHA3(n, t), + ] + ); + } + }); + var l$e = N((z2) => { + "use strict"; + _(); + x(); + Object.defineProperty(z2, "__esModule", { value: !0 }); + z2.filterFromParam = z2.FilterPolyfill = void 0; + var H2 = A6(), + Fc = Gf(), + Lyr = 5 * 60 * 1e3, + gb = { jsonrpc: "2.0", id: 0 }, + u$ = class { + constructor(e) { + (this.logFilters = new Map()), + (this.blockFilters = new Set()), + (this.pendingTransactionFilters = new Set()), + (this.cursors = new Map()), + (this.timeouts = new Map()), + (this.nextFilterId = (0, H2.IntNumber)(1)), + (this.provider = e); + } + async newFilter(e) { + let t = u$e(e), + n = this.makeFilterId(), + a = await this.setInitialCursorPosition(n, t.fromBlock); + return ( + console.log( + `Installing new log filter(${n}):`, + t, + "initial cursor position:", + a + ), + this.logFilters.set(n, t), + this.setFilterTimeout(n), + (0, Fc.hexStringFromIntNumber)(n) + ); + } + async newBlockFilter() { + let e = this.makeFilterId(), + t = await this.setInitialCursorPosition(e, "latest"); + return ( + console.log( + `Installing new block filter (${e}) with initial cursor position:`, + t + ), + this.blockFilters.add(e), + this.setFilterTimeout(e), + (0, Fc.hexStringFromIntNumber)(e) + ); + } + async newPendingTransactionFilter() { + let e = this.makeFilterId(), + t = await this.setInitialCursorPosition(e, "latest"); + return ( + console.log( + `Installing new block filter (${e}) with initial cursor position:`, + t + ), + this.pendingTransactionFilters.add(e), + this.setFilterTimeout(e), + (0, Fc.hexStringFromIntNumber)(e) + ); + } + uninstallFilter(e) { + let t = (0, Fc.intNumberFromHexString)(e); + return ( + console.log(`Uninstalling filter (${t})`), this.deleteFilter(t), !0 + ); + } + getFilterChanges(e) { + let t = (0, Fc.intNumberFromHexString)(e); + return ( + this.timeouts.has(t) && this.setFilterTimeout(t), + this.logFilters.has(t) + ? this.getLogFilterChanges(t) + : this.blockFilters.has(t) + ? this.getBlockFilterChanges(t) + : this.pendingTransactionFilters.has(t) + ? this.getPendingTransactionFilterChanges(t) + : Promise.resolve(T7()) + ); + } + async getFilterLogs(e) { + let t = (0, Fc.intNumberFromHexString)(e), + n = this.logFilters.get(t); + return n + ? this.sendAsyncPromise( + Object.assign(Object.assign({}, gb), { + method: "eth_getLogs", + params: [s$e(n)], + }) + ) + : T7(); + } + makeFilterId() { + return (0, H2.IntNumber)(++this.nextFilterId); + } + sendAsyncPromise(e) { + return new Promise((t, n) => { + this.provider.sendAsync(e, (a, i) => { + if (a) return n(a); + if (Array.isArray(i) || i == null) + return n( + new Error( + `unexpected response received: ${JSON.stringify(i)}` + ) + ); + t(i); + }); + }); + } + deleteFilter(e) { + console.log(`Deleting filter (${e})`), + this.logFilters.delete(e), + this.blockFilters.delete(e), + this.pendingTransactionFilters.delete(e), + this.cursors.delete(e), + this.timeouts.delete(e); + } + async getLogFilterChanges(e) { + let t = this.logFilters.get(e), + n = this.cursors.get(e); + if (!n || !t) return T7(); + let a = await this.getCurrentBlockHeight(), + i = t.toBlock === "latest" ? a : t.toBlock; + if (n > a || n > t.toBlock) return E7(); + console.log(`Fetching logs from ${n} to ${i} for filter ${e}`); + let s = await this.sendAsyncPromise( + Object.assign(Object.assign({}, gb), { + method: "eth_getLogs", + params: [ + s$e( + Object.assign(Object.assign({}, t), { + fromBlock: n, + toBlock: i, + }) + ), + ], + }) + ); + if (Array.isArray(s.result)) { + let c = s.result.map((d) => + (0, Fc.intNumberFromHexString)(d.blockNumber || "0x0") + ), + l = Math.max(...c); + if (l && l > n) { + let d = (0, H2.IntNumber)(l + 1); + console.log( + `Moving cursor position for filter (${e}) from ${n} to ${d}` + ), + this.cursors.set(e, d); + } + } + return s; + } + async getBlockFilterChanges(e) { + let t = this.cursors.get(e); + if (!t) return T7(); + let n = await this.getCurrentBlockHeight(); + if (t > n) return E7(); + console.log(`Fetching blocks from ${t} to ${n} for filter (${e})`); + let a = ( + await Promise.all( + (0, Fc.range)(t, n + 1).map((s) => + this.getBlockHashByNumber((0, H2.IntNumber)(s)) + ) + ) + ).filter((s) => !!s), + i = (0, H2.IntNumber)(t + a.length); + return ( + console.log( + `Moving cursor position for filter (${e}) from ${t} to ${i}` + ), + this.cursors.set(e, i), + Object.assign(Object.assign({}, gb), { result: a }) + ); + } + async getPendingTransactionFilterChanges(e) { + return Promise.resolve(E7()); + } + async setInitialCursorPosition(e, t) { + let n = await this.getCurrentBlockHeight(), + a = typeof t == "number" && t > n ? t : n; + return this.cursors.set(e, a), a; + } + setFilterTimeout(e) { + let t = this.timeouts.get(e); + t && window.clearTimeout(t); + let n = window.setTimeout(() => { + console.log(`Filter (${e}) timed out`), this.deleteFilter(e); + }, Lyr); + this.timeouts.set(e, n); + } + async getCurrentBlockHeight() { + let { result: e } = await this.sendAsyncPromise( + Object.assign(Object.assign({}, gb), { + method: "eth_blockNumber", + params: [], + }) + ); + return (0, Fc.intNumberFromHexString)((0, Fc.ensureHexString)(e)); + } + async getBlockHashByNumber(e) { + let t = await this.sendAsyncPromise( + Object.assign(Object.assign({}, gb), { + method: "eth_getBlockByNumber", + params: [(0, Fc.hexStringFromIntNumber)(e), !1], + }) + ); + return t.result && typeof t.result.hash == "string" + ? (0, Fc.ensureHexString)(t.result.hash) + : null; + } + }; + z2.FilterPolyfill = u$; + function u$e(r) { + return { + fromBlock: o$e(r.fromBlock), + toBlock: o$e(r.toBlock), + addresses: + r.address === void 0 + ? null + : Array.isArray(r.address) + ? r.address + : [r.address], + topics: r.topics || [], + }; + } + z2.filterFromParam = u$e; + function s$e(r) { + let e = { + fromBlock: c$e(r.fromBlock), + toBlock: c$e(r.toBlock), + topics: r.topics, + }; + return r.addresses !== null && (e.address = r.addresses), e; + } + function o$e(r) { + if (r === void 0 || r === "latest" || r === "pending") return "latest"; + if (r === "earliest") return (0, H2.IntNumber)(0); + if ((0, Fc.isHexString)(r)) return (0, Fc.intNumberFromHexString)(r); + throw new Error(`Invalid block option: ${String(r)}`); + } + function c$e(r) { + return r === "latest" ? r : (0, Fc.hexStringFromIntNumber)(r); + } + function T7() { + return Object.assign(Object.assign({}, gb), { + error: { code: -32e3, message: "filter not found" }, + }); + } + function E7() { + return Object.assign(Object.assign({}, gb), { result: [] }); + } + }); + var d$e = N((R6) => { + "use strict"; + _(); + x(); + Object.defineProperty(R6, "__esModule", { value: !0 }); + R6.JSONRPCMethod = void 0; + var Dyr; + (function (r) { + (r.eth_accounts = "eth_accounts"), + (r.eth_coinbase = "eth_coinbase"), + (r.net_version = "net_version"), + (r.eth_chainId = "eth_chainId"), + (r.eth_uninstallFilter = "eth_uninstallFilter"), + (r.eth_requestAccounts = "eth_requestAccounts"), + (r.eth_sign = "eth_sign"), + (r.eth_ecRecover = "eth_ecRecover"), + (r.personal_sign = "personal_sign"), + (r.personal_ecRecover = "personal_ecRecover"), + (r.eth_signTransaction = "eth_signTransaction"), + (r.eth_sendRawTransaction = "eth_sendRawTransaction"), + (r.eth_sendTransaction = "eth_sendTransaction"), + (r.eth_signTypedData_v1 = "eth_signTypedData_v1"), + (r.eth_signTypedData_v2 = "eth_signTypedData_v2"), + (r.eth_signTypedData_v3 = "eth_signTypedData_v3"), + (r.eth_signTypedData_v4 = "eth_signTypedData_v4"), + (r.eth_signTypedData = "eth_signTypedData"), + (r.cbWallet_arbitrary = "walletlink_arbitrary"), + (r.wallet_addEthereumChain = "wallet_addEthereumChain"), + (r.wallet_switchEthereumChain = "wallet_switchEthereumChain"), + (r.wallet_watchAsset = "wallet_watchAsset"), + (r.eth_subscribe = "eth_subscribe"), + (r.eth_unsubscribe = "eth_unsubscribe"), + (r.eth_newFilter = "eth_newFilter"), + (r.eth_newBlockFilter = "eth_newBlockFilter"), + (r.eth_newPendingTransactionFilter = "eth_newPendingTransactionFilter"), + (r.eth_getFilterChanges = "eth_getFilterChanges"), + (r.eth_getFilterLogs = "eth_getFilterLogs"); + })((Dyr = R6.JSONRPCMethod || (R6.JSONRPCMethod = {}))); + }); + var l$ = N((Whn, h$e) => { + "use strict"; + _(); + x(); + var p$e = (r, e) => + function () { + let t = e.promiseModule, + n = new Array(arguments.length); + for (let a = 0; a < arguments.length; a++) n[a] = arguments[a]; + return new t((a, i) => { + e.errorFirst + ? n.push(function (s, c) { + if (e.multiArgs) { + let l = new Array(arguments.length - 1); + for (let d = 1; d < arguments.length; d++) + l[d - 1] = arguments[d]; + s ? (l.unshift(s), i(l)) : a(l); + } else s ? i(s) : a(c); + }) + : n.push(function (s) { + if (e.multiArgs) { + let c = new Array(arguments.length - 1); + for (let l = 0; l < arguments.length; l++) + c[l] = arguments[l]; + a(c); + } else a(s); + }), + r.apply(this, n); + }); + }; + h$e.exports = (r, e) => { + e = Object.assign( + { + exclude: [/.+(Sync|Stream)$/], + errorFirst: !0, + promiseModule: Promise, + }, + e + ); + let t = (a) => { + let i = (s) => (typeof s == "string" ? a === s : s.test(a)); + return e.include ? e.include.some(i) : !e.exclude.some(i); + }, + n; + typeof r == "function" + ? (n = function () { + return e.excludeMain + ? r.apply(this, arguments) + : p$e(r, e).apply(this, arguments); + }) + : (n = Object.create(Object.getPrototypeOf(r))); + for (let a in r) { + let i = r[a]; + n[a] = typeof i == "function" && t(a) ? p$e(i, e) : i; + } + return n; + }; + }); + var m$e = N((zhn, f$e) => { + _(); + x(); + f$e.exports = Fyr; + var qyr = Object.prototype.hasOwnProperty; + function Fyr() { + for (var r = {}, e = 0; e < arguments.length; e++) { + var t = arguments[e]; + for (var n in t) qyr.call(t, n) && (r[n] = t[n]); + } + return r; + } + }); + var g$e = N((Vhn, y$e) => { + _(); + x(); + y$e.exports = Wyr; + function Wyr(r) { + r = r || {}; + var e = r.max || Number.MAX_SAFE_INTEGER, + t = typeof r.start < "u" ? r.start : Math.floor(Math.random() * e); + return function () { + return (t = t % e), t++; + }; + } + }); + var d$ = N(($hn, b$e) => { + _(); + x(); + var Uyr = m$e(), + Hyr = g$e()(); + b$e.exports = vr; + function vr(r) { + let e = this; + e.currentProvider = r; + } + vr.prototype.getBalance = B6(2, "eth_getBalance"); + vr.prototype.getCode = B6(2, "eth_getCode"); + vr.prototype.getTransactionCount = B6(2, "eth_getTransactionCount"); + vr.prototype.getStorageAt = B6(3, "eth_getStorageAt"); + vr.prototype.call = B6(2, "eth_call"); + vr.prototype.protocolVersion = en("eth_protocolVersion"); + vr.prototype.syncing = en("eth_syncing"); + vr.prototype.coinbase = en("eth_coinbase"); + vr.prototype.mining = en("eth_mining"); + vr.prototype.hashrate = en("eth_hashrate"); + vr.prototype.gasPrice = en("eth_gasPrice"); + vr.prototype.accounts = en("eth_accounts"); + vr.prototype.blockNumber = en("eth_blockNumber"); + vr.prototype.getBlockTransactionCountByHash = en( + "eth_getBlockTransactionCountByHash" + ); + vr.prototype.getBlockTransactionCountByNumber = en( + "eth_getBlockTransactionCountByNumber" + ); + vr.prototype.getUncleCountByBlockHash = en("eth_getUncleCountByBlockHash"); + vr.prototype.getUncleCountByBlockNumber = en( + "eth_getUncleCountByBlockNumber" + ); + vr.prototype.sign = en("eth_sign"); + vr.prototype.sendTransaction = en("eth_sendTransaction"); + vr.prototype.sendRawTransaction = en("eth_sendRawTransaction"); + vr.prototype.estimateGas = en("eth_estimateGas"); + vr.prototype.getBlockByHash = en("eth_getBlockByHash"); + vr.prototype.getBlockByNumber = en("eth_getBlockByNumber"); + vr.prototype.getTransactionByHash = en("eth_getTransactionByHash"); + vr.prototype.getTransactionByBlockHashAndIndex = en( + "eth_getTransactionByBlockHashAndIndex" + ); + vr.prototype.getTransactionByBlockNumberAndIndex = en( + "eth_getTransactionByBlockNumberAndIndex" + ); + vr.prototype.getTransactionReceipt = en("eth_getTransactionReceipt"); + vr.prototype.getUncleByBlockHashAndIndex = en( + "eth_getUncleByBlockHashAndIndex" + ); + vr.prototype.getUncleByBlockNumberAndIndex = en( + "eth_getUncleByBlockNumberAndIndex" + ); + vr.prototype.getCompilers = en("eth_getCompilers"); + vr.prototype.compileLLL = en("eth_compileLLL"); + vr.prototype.compileSolidity = en("eth_compileSolidity"); + vr.prototype.compileSerpent = en("eth_compileSerpent"); + vr.prototype.newFilter = en("eth_newFilter"); + vr.prototype.newBlockFilter = en("eth_newBlockFilter"); + vr.prototype.newPendingTransactionFilter = en( + "eth_newPendingTransactionFilter" + ); + vr.prototype.uninstallFilter = en("eth_uninstallFilter"); + vr.prototype.getFilterChanges = en("eth_getFilterChanges"); + vr.prototype.getFilterLogs = en("eth_getFilterLogs"); + vr.prototype.getLogs = en("eth_getLogs"); + vr.prototype.getWork = en("eth_getWork"); + vr.prototype.submitWork = en("eth_submitWork"); + vr.prototype.submitHashrate = en("eth_submitHashrate"); + vr.prototype.sendAsync = function (r, e) { + this.currentProvider.sendAsync(zyr(r), function (n, a) { + if ( + (!n && + a.error && + (n = new Error("EthQuery - RPC Error - " + a.error.message)), + n) + ) + return e(n); + e(null, a.result); + }); + }; + function en(r) { + return function () { + let e = this; + var t = [].slice.call(arguments), + n = t.pop(); + e.sendAsync({ method: r, params: t }, n); + }; + } + function B6(r, e) { + return function () { + let t = this; + var n = [].slice.call(arguments), + a = n.pop(); + n.length < r && n.push("latest"), + t.sendAsync({ method: e, params: n }, a); + }; + } + function zyr(r) { + return Uyr({ id: Hyr(), jsonrpc: "2.0", params: [] }, r); + } + }); + var x$e = N((Qhn, _$e) => { + _(); + x(); + var jyr = Y4(), + w$e = gm(), + p$ = typeof Reflect == "object" ? Reflect : null, + Kyr = + p$ && typeof p$.apply == "function" + ? p$.apply + : function (e, t, n) { + return Function.prototype.apply.call(e, t, n); + }; + _$e.exports = h$; + function h$() { + w$e.call(this); + } + jyr.inherits(h$, w$e); + h$.prototype.emit = function (r) { + for (var e = [], t = 1; t < arguments.length; t++) e.push(arguments[t]); + var n = r === "error", + a = this._events; + if (a !== void 0) n = n && a.error === void 0; + else if (!n) return !1; + if (n) { + var i; + if ((e.length > 0 && (i = e[0]), i instanceof Error)) throw i; + var s = new Error( + "Unhandled error." + (i ? " (" + i.message + ")" : "") + ); + throw ((s.context = i), s); + } + var c = a[r]; + if (c === void 0) return !1; + if (typeof c == "function") v$e(c, this, e); + else + for (var l = c.length, d = Vyr(c, l), t = 0; t < l; ++t) + v$e(d[t], this, e); + return !0; + }; + function v$e(r, e, t) { + try { + Kyr(r, e, t); + } catch (n) { + setTimeout(() => { + throw n; + }); + } + } + function Vyr(r, e) { + for (var t = new Array(e), n = 0; n < e; ++n) t[n] = r[n]; + return t; + } + }); + var I$e = N((nfn, C$e) => { + _(); + x(); + var tfn = d$(), + rfn = l$(), + Gyr = x$e(), + Yyr = 1e3, + $yr = (r, e) => r + e, + T$e = ["sync", "latest"], + f$ = class extends Gyr { + constructor(e = {}) { + super(), + (this._blockResetDuration = e.blockResetDuration || 20 * Yyr), + this._blockResetTimeout, + (this._currentBlock = null), + (this._isRunning = !1), + (this._onNewListener = this._onNewListener.bind(this)), + (this._onRemoveListener = this._onRemoveListener.bind(this)), + (this._resetCurrentBlock = this._resetCurrentBlock.bind(this)), + this._setupInternalEvents(); + } + isRunning() { + return this._isRunning; + } + getCurrentBlock() { + return this._currentBlock; + } + async getLatestBlock() { + return this._currentBlock + ? this._currentBlock + : await new Promise((t) => this.once("latest", t)); + } + removeAllListeners(e) { + e ? super.removeAllListeners(e) : super.removeAllListeners(), + this._setupInternalEvents(), + this._onRemoveListener(); + } + _start() {} + _end() {} + _setupInternalEvents() { + this.removeListener("newListener", this._onNewListener), + this.removeListener("removeListener", this._onRemoveListener), + this.on("newListener", this._onNewListener), + this.on("removeListener", this._onRemoveListener); + } + _onNewListener(e, t) { + !T$e.includes(e) || this._maybeStart(); + } + _onRemoveListener(e, t) { + this._getBlockTrackerEventCount() > 0 || this._maybeEnd(); + } + _maybeStart() { + this._isRunning || + ((this._isRunning = !0), + this._cancelBlockResetTimeout(), + this._start()); + } + _maybeEnd() { + !this._isRunning || + ((this._isRunning = !1), + this._setupBlockResetTimeout(), + this._end()); + } + _getBlockTrackerEventCount() { + return T$e.map((e) => this.listenerCount(e)).reduce($yr); + } + _newPotentialLatest(e) { + let t = this._currentBlock; + (t && E$e(e) <= E$e(t)) || this._setCurrentBlock(e); + } + _setCurrentBlock(e) { + let t = this._currentBlock; + (this._currentBlock = e), + this.emit("latest", e), + this.emit("sync", { oldBlock: t, newBlock: e }); + } + _setupBlockResetTimeout() { + this._cancelBlockResetTimeout(), + (this._blockResetTimeout = setTimeout( + this._resetCurrentBlock, + this._blockResetDuration + )), + this._blockResetTimeout.unref && this._blockResetTimeout.unref(); + } + _cancelBlockResetTimeout() { + clearTimeout(this._blockResetTimeout); + } + _resetCurrentBlock() { + this._currentBlock = null; + } + }; + C$e.exports = f$; + function E$e(r) { + return Number.parseInt(r, 16); + } + }); + var S$e = N((sfn, k$e) => { + _(); + x(); + var Jyr = l$(), + Zyr = I$e(), + Qyr = 1e3, + m$ = class extends Zyr { + constructor(e = {}) { + if (!e.provider) + throw new Error("PollingBlockTracker - no provider specified."); + let t = e.pollingInterval || 20 * Qyr, + n = e.retryTimeout || t / 10, + a = e.keepEventLoopActive !== void 0 ? e.keepEventLoopActive : !0, + i = e.setSkipCacheFlag || !1; + super(Object.assign({ blockResetDuration: t }, e)), + (this._provider = e.provider), + (this._pollingInterval = t), + (this._retryTimeout = n), + (this._keepEventLoopActive = a), + (this._setSkipCacheFlag = i); + } + async checkForLatestBlock() { + return await this._updateLatestBlock(), await this.getLatestBlock(); + } + _start() { + this._performSync().catch((e) => this.emit("error", e)); + } + async _performSync() { + for (; this._isRunning; ) + try { + await this._updateLatestBlock(), + await A$e(this._pollingInterval, !this._keepEventLoopActive); + } catch (e) { + let t = + new Error(`PollingBlockTracker - encountered an error while attempting to update latest block: +${e.stack}`); + try { + this.emit("error", t); + } catch { + console.error(t); + } + await A$e(this._retryTimeout, !this._keepEventLoopActive); + } + } + async _updateLatestBlock() { + let e = await this._fetchLatestBlock(); + this._newPotentialLatest(e); + } + async _fetchLatestBlock() { + let e = { + jsonrpc: "2.0", + id: 1, + method: "eth_blockNumber", + params: [], + }; + this._setSkipCacheFlag && (e.skipCache = !0); + let t = await Jyr((n) => this._provider.sendAsync(e, n))(); + if (t.error) + throw new Error(`PollingBlockTracker - encountered error fetching block: +${t.error}`); + return t.result; + } + }; + k$e.exports = m$; + function A$e(r, e) { + return new Promise((t) => { + let n = setTimeout(t, r); + n.unref && e && n.unref(); + }); + } + }); + var g$ = N((C7) => { + "use strict"; + _(); + x(); + Object.defineProperty(C7, "__esModule", { value: !0 }); + C7.getUniqueId = void 0; + var M$e = 4294967295, + y$ = Math.floor(Math.random() * M$e); + function Xyr() { + return (y$ = (y$ + 1) % M$e), y$; + } + C7.getUniqueId = Xyr; + }); + var P$e = N((I7) => { + "use strict"; + _(); + x(); + Object.defineProperty(I7, "__esModule", { value: !0 }); + I7.createIdRemapMiddleware = void 0; + var egr = g$(); + function tgr() { + return (r, e, t, n) => { + let a = r.id, + i = egr.getUniqueId(); + (r.id = i), + (e.id = i), + t((s) => { + (r.id = a), (e.id = a), s(); + }); + }; + } + I7.createIdRemapMiddleware = tgr; + }); + var R$e = N((A7) => { + "use strict"; + _(); + x(); + Object.defineProperty(A7, "__esModule", { value: !0 }); + A7.createAsyncMiddleware = void 0; + function rgr(r) { + return async (e, t, n, a) => { + let i, + s = new Promise((m) => { + i = m; + }), + c = null, + l = !1, + d = async () => { + (l = !0), + n((m) => { + (c = m), i(); + }), + await s; + }; + try { + await r(e, t, d), l ? (await s, c(null)) : a(null); + } catch (m) { + c ? c(m) : a(m); + } + }; + } + A7.createAsyncMiddleware = rgr; + }); + var B$e = N((k7) => { + "use strict"; + _(); + x(); + Object.defineProperty(k7, "__esModule", { value: !0 }); + k7.createScaffoldMiddleware = void 0; + function ngr(r) { + return (e, t, n, a) => { + let i = r[e.method]; + return i === void 0 + ? n() + : typeof i == "function" + ? i(e, t, n, a) + : ((t.result = i), a()); + }; + } + k7.createScaffoldMiddleware = ngr; + }); + var M7 = N((j2) => { + "use strict"; + _(); + x(); + Object.defineProperty(j2, "__esModule", { value: !0 }); + j2.EthereumProviderError = j2.EthereumRpcError = void 0; + var agr = RY(), + S7 = class extends Error { + constructor(e, t, n) { + if (!Number.isInteger(e)) + throw new Error('"code" must be an integer.'); + if (!t || typeof t != "string") + throw new Error('"message" must be a nonempty string.'); + super(t), (this.code = e), n !== void 0 && (this.data = n); + } + serialize() { + let e = { code: this.code, message: this.message }; + return ( + this.data !== void 0 && (e.data = this.data), + this.stack && (e.stack = this.stack), + e + ); + } + toString() { + return agr.default(this.serialize(), sgr, 2); + } + }; + j2.EthereumRpcError = S7; + var b$ = class extends S7 { + constructor(e, t, n) { + if (!igr(e)) + throw new Error( + '"code" must be an integer such that: 1000 <= code <= 4999' + ); + super(e, t, n); + } + }; + j2.EthereumProviderError = b$; + function igr(r) { + return Number.isInteger(r) && r >= 1e3 && r <= 4999; + } + function sgr(r, e) { + if (e !== "[Circular]") return e; + } + }); + var P7 = N((K2) => { + "use strict"; + _(); + x(); + Object.defineProperty(K2, "__esModule", { value: !0 }); + K2.errorValues = K2.errorCodes = void 0; + K2.errorCodes = { + rpc: { + invalidInput: -32e3, + resourceNotFound: -32001, + resourceUnavailable: -32002, + transactionRejected: -32003, + methodNotSupported: -32004, + limitExceeded: -32005, + parse: -32700, + invalidRequest: -32600, + methodNotFound: -32601, + invalidParams: -32602, + internal: -32603, + }, + provider: { + userRejectedRequest: 4001, + unauthorized: 4100, + unsupportedMethod: 4200, + disconnected: 4900, + chainDisconnected: 4901, + }, + }; + K2.errorValues = { + "-32700": { + standard: "JSON RPC 2.0", + message: + "Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text.", + }, + "-32600": { + standard: "JSON RPC 2.0", + message: "The JSON sent is not a valid Request object.", + }, + "-32601": { + standard: "JSON RPC 2.0", + message: "The method does not exist / is not available.", + }, + "-32602": { + standard: "JSON RPC 2.0", + message: "Invalid method parameter(s).", + }, + "-32603": { + standard: "JSON RPC 2.0", + message: "Internal JSON-RPC error.", + }, + "-32000": { standard: "EIP-1474", message: "Invalid input." }, + "-32001": { standard: "EIP-1474", message: "Resource not found." }, + "-32002": { standard: "EIP-1474", message: "Resource unavailable." }, + "-32003": { standard: "EIP-1474", message: "Transaction rejected." }, + "-32004": { standard: "EIP-1474", message: "Method not supported." }, + "-32005": { standard: "EIP-1474", message: "Request limit exceeded." }, + 4001: { standard: "EIP-1193", message: "User rejected the request." }, + 4100: { + standard: "EIP-1193", + message: + "The requested account and/or method has not been authorized by the user.", + }, + 4200: { + standard: "EIP-1193", + message: + "The requested method is not supported by this Ethereum provider.", + }, + 4900: { + standard: "EIP-1193", + message: "The provider is disconnected from all chains.", + }, + 4901: { + standard: "EIP-1193", + message: "The provider is disconnected from the specified chain.", + }, + }; + }); + var _$ = N((cp) => { + "use strict"; + _(); + x(); + Object.defineProperty(cp, "__esModule", { value: !0 }); + cp.serializeError = + cp.isValidCode = + cp.getMessageFromCode = + cp.JSON_RPC_SERVER_ERROR_MESSAGE = + void 0; + var R7 = P7(), + ogr = M7(), + N$e = R7.errorCodes.rpc.internal, + cgr = "Unspecified error message. This is a bug, please report it.", + ugr = { code: N$e, message: w$(N$e) }; + cp.JSON_RPC_SERVER_ERROR_MESSAGE = "Unspecified server error."; + function w$(r, e = cgr) { + if (Number.isInteger(r)) { + let t = r.toString(); + if (v$(R7.errorValues, t)) return R7.errorValues[t].message; + if (D$e(r)) return cp.JSON_RPC_SERVER_ERROR_MESSAGE; + } + return e; + } + cp.getMessageFromCode = w$; + function L$e(r) { + if (!Number.isInteger(r)) return !1; + let e = r.toString(); + return !!(R7.errorValues[e] || D$e(r)); + } + cp.isValidCode = L$e; + function lgr( + r, + { fallbackError: e = ugr, shouldIncludeStack: t = !1 } = {} + ) { + var n, a; + if (!e || !Number.isInteger(e.code) || typeof e.message != "string") + throw new Error( + "Must provide fallback error with integer number code and string message." + ); + if (r instanceof ogr.EthereumRpcError) return r.serialize(); + let i = {}; + if ( + r && + typeof r == "object" && + !Array.isArray(r) && + v$(r, "code") && + L$e(r.code) + ) { + let c = r; + (i.code = c.code), + c.message && typeof c.message == "string" + ? ((i.message = c.message), v$(c, "data") && (i.data = c.data)) + : ((i.message = w$(i.code)), (i.data = { originalError: O$e(r) })); + } else { + i.code = e.code; + let c = (n = r) === null || n === void 0 ? void 0 : n.message; + (i.message = c && typeof c == "string" ? c : e.message), + (i.data = { originalError: O$e(r) }); + } + let s = (a = r) === null || a === void 0 ? void 0 : a.stack; + return t && r && s && typeof s == "string" && (i.stack = s), i; + } + cp.serializeError = lgr; + function D$e(r) { + return r >= -32099 && r <= -32e3; + } + function O$e(r) { + return r && typeof r == "object" && !Array.isArray(r) + ? Object.assign({}, r) + : r; + } + function v$(r, e) { + return Object.prototype.hasOwnProperty.call(r, e); + } + }); + var W$e = N((B7) => { + "use strict"; + _(); + x(); + Object.defineProperty(B7, "__esModule", { value: !0 }); + B7.ethErrors = void 0; + var x$ = M7(), + q$e = _$(), + fc = P7(); + B7.ethErrors = { + rpc: { + parse: (r) => sd(fc.errorCodes.rpc.parse, r), + invalidRequest: (r) => sd(fc.errorCodes.rpc.invalidRequest, r), + invalidParams: (r) => sd(fc.errorCodes.rpc.invalidParams, r), + methodNotFound: (r) => sd(fc.errorCodes.rpc.methodNotFound, r), + internal: (r) => sd(fc.errorCodes.rpc.internal, r), + server: (r) => { + if (!r || typeof r != "object" || Array.isArray(r)) + throw new Error( + "Ethereum RPC Server errors must provide single object argument." + ); + let { code: e } = r; + if (!Number.isInteger(e) || e > -32005 || e < -32099) + throw new Error( + '"code" must be an integer such that: -32099 <= code <= -32005' + ); + return sd(e, r); + }, + invalidInput: (r) => sd(fc.errorCodes.rpc.invalidInput, r), + resourceNotFound: (r) => sd(fc.errorCodes.rpc.resourceNotFound, r), + resourceUnavailable: (r) => + sd(fc.errorCodes.rpc.resourceUnavailable, r), + transactionRejected: (r) => + sd(fc.errorCodes.rpc.transactionRejected, r), + methodNotSupported: (r) => sd(fc.errorCodes.rpc.methodNotSupported, r), + limitExceeded: (r) => sd(fc.errorCodes.rpc.limitExceeded, r), + }, + provider: { + userRejectedRequest: (r) => + N6(fc.errorCodes.provider.userRejectedRequest, r), + unauthorized: (r) => N6(fc.errorCodes.provider.unauthorized, r), + unsupportedMethod: (r) => + N6(fc.errorCodes.provider.unsupportedMethod, r), + disconnected: (r) => N6(fc.errorCodes.provider.disconnected, r), + chainDisconnected: (r) => + N6(fc.errorCodes.provider.chainDisconnected, r), + custom: (r) => { + if (!r || typeof r != "object" || Array.isArray(r)) + throw new Error( + "Ethereum Provider custom errors must provide single object argument." + ); + let { code: e, message: t, data: n } = r; + if (!t || typeof t != "string") + throw new Error('"message" must be a nonempty string'); + return new x$.EthereumProviderError(e, t, n); + }, + }, + }; + function sd(r, e) { + let [t, n] = F$e(e); + return new x$.EthereumRpcError(r, t || q$e.getMessageFromCode(r), n); + } + function N6(r, e) { + let [t, n] = F$e(e); + return new x$.EthereumProviderError(r, t || q$e.getMessageFromCode(r), n); + } + function F$e(r) { + if (r) { + if (typeof r == "string") return [r]; + if (typeof r == "object" && !Array.isArray(r)) { + let { message: e, data: t } = r; + if (e && typeof e != "string") + throw new Error("Must specify string message."); + return [e || void 0, t]; + } + } + return []; + } + }); + var z$e = N((Eu) => { + "use strict"; + _(); + x(); + Object.defineProperty(Eu, "__esModule", { value: !0 }); + Eu.getMessageFromCode = + Eu.serializeError = + Eu.EthereumProviderError = + Eu.EthereumRpcError = + Eu.ethErrors = + Eu.errorCodes = + void 0; + var U$e = M7(); + Object.defineProperty(Eu, "EthereumRpcError", { + enumerable: !0, + get: function () { + return U$e.EthereumRpcError; + }, + }); + Object.defineProperty(Eu, "EthereumProviderError", { + enumerable: !0, + get: function () { + return U$e.EthereumProviderError; + }, + }); + var H$e = _$(); + Object.defineProperty(Eu, "serializeError", { + enumerable: !0, + get: function () { + return H$e.serializeError; + }, + }); + Object.defineProperty(Eu, "getMessageFromCode", { + enumerable: !0, + get: function () { + return H$e.getMessageFromCode; + }, + }); + var dgr = W$e(); + Object.defineProperty(Eu, "ethErrors", { + enumerable: !0, + get: function () { + return dgr.ethErrors; + }, + }); + var pgr = P7(); + Object.defineProperty(Eu, "errorCodes", { + enumerable: !0, + get: function () { + return pgr.errorCodes; + }, + }); + }); + var E$ = N((V2) => { + "use strict"; + _(); + x(); + var hgr = + (V2 && V2.__importDefault) || + function (r) { + return r && r.__esModule ? r : { default: r }; + }; + Object.defineProperty(V2, "__esModule", { value: !0 }); + V2.JsonRpcEngine = void 0; + var fgr = hgr(v6()), + od = z$e(), + up = class extends fgr.default { + constructor() { + super(), (this._middleware = []); + } + push(e) { + this._middleware.push(e); + } + handle(e, t) { + if (t && typeof t != "function") + throw new Error('"callback" must be a function if provided.'); + return Array.isArray(e) + ? t + ? this._handleBatch(e, t) + : this._handleBatch(e) + : t + ? this._handle(e, t) + : this._promiseHandle(e); + } + asMiddleware() { + return async (e, t, n, a) => { + try { + let [i, s, c] = await up._runAllMiddleware( + e, + t, + this._middleware + ); + return s + ? (await up._runReturnHandlers(c), a(i)) + : n(async (l) => { + try { + await up._runReturnHandlers(c); + } catch (d) { + return l(d); + } + return l(); + }); + } catch (i) { + return a(i); + } + }; + } + async _handleBatch(e, t) { + try { + let n = await Promise.all(e.map(this._promiseHandle.bind(this))); + return t ? t(null, n) : n; + } catch (n) { + if (t) return t(n); + throw n; + } + } + _promiseHandle(e) { + return new Promise((t) => { + this._handle(e, (n, a) => { + t(a); + }); + }); + } + async _handle(e, t) { + if (!e || Array.isArray(e) || typeof e != "object") { + let s = new od.EthereumRpcError( + od.errorCodes.rpc.invalidRequest, + `Requests must be plain objects. Received: ${typeof e}`, + { request: e } + ); + return t(s, { id: void 0, jsonrpc: "2.0", error: s }); + } + if (typeof e.method != "string") { + let s = new od.EthereumRpcError( + od.errorCodes.rpc.invalidRequest, + `Must specify a string method. Received: ${typeof e.method}`, + { request: e } + ); + return t(s, { id: e.id, jsonrpc: "2.0", error: s }); + } + let n = Object.assign({}, e), + a = { id: n.id, jsonrpc: n.jsonrpc }, + i = null; + try { + await this._processRequest(n, a); + } catch (s) { + i = s; + } + return ( + i && (delete a.result, a.error || (a.error = od.serializeError(i))), + t(i, a) + ); + } + async _processRequest(e, t) { + let [n, a, i] = await up._runAllMiddleware(e, t, this._middleware); + if ( + (up._checkForCompletion(e, t, a), await up._runReturnHandlers(i), n) + ) + throw n; + } + static async _runAllMiddleware(e, t, n) { + let a = [], + i = null, + s = !1; + for (let c of n) + if ((([i, s] = await up._runMiddleware(e, t, c, a)), s)) break; + return [i, s, a.reverse()]; + } + static _runMiddleware(e, t, n, a) { + return new Promise((i) => { + let s = (l) => { + let d = l || t.error; + d && (t.error = od.serializeError(d)), i([d, !0]); + }, + c = (l) => { + t.error + ? s(t.error) + : (l && + (typeof l != "function" && + s( + new od.EthereumRpcError( + od.errorCodes.rpc.internal, + `JsonRpcEngine: "next" return handlers must be functions. Received "${typeof l}" for request: +${T$(e)}`, + { request: e } + ) + ), + a.push(l)), + i([null, !1])); + }; + try { + n(e, t, c, s); + } catch (l) { + s(l); + } + }); + } + static async _runReturnHandlers(e) { + for (let t of e) + await new Promise((n, a) => { + t((i) => (i ? a(i) : n())); + }); + } + static _checkForCompletion(e, t, n) { + if (!("result" in t) && !("error" in t)) + throw new od.EthereumRpcError( + od.errorCodes.rpc.internal, + `JsonRpcEngine: Response has no error or result for request: +${T$(e)}`, + { request: e } + ); + if (!n) + throw new od.EthereumRpcError( + od.errorCodes.rpc.internal, + `JsonRpcEngine: Nothing ended request: +${T$(e)}`, + { request: e } + ); + } + }; + V2.JsonRpcEngine = up; + function T$(r) { + return JSON.stringify(r, null, 2); + } + }); + var j$e = N((N7) => { + "use strict"; + _(); + x(); + Object.defineProperty(N7, "__esModule", { value: !0 }); + N7.mergeMiddleware = void 0; + var mgr = E$(); + function ygr(r) { + let e = new mgr.JsonRpcEngine(); + return r.forEach((t) => e.push(t)), e.asMiddleware(); + } + N7.mergeMiddleware = ygr; + }); + var C$ = N((cd) => { + "use strict"; + _(); + x(); + var ggr = + (cd && cd.__createBinding) || + (Object.create + ? function (r, e, t, n) { + n === void 0 && (n = t), + Object.defineProperty(r, n, { + enumerable: !0, + get: function () { + return e[t]; + }, + }); + } + : function (r, e, t, n) { + n === void 0 && (n = t), (r[n] = e[t]); + }), + G2 = + (cd && cd.__exportStar) || + function (r, e) { + for (var t in r) + t !== "default" && + !Object.prototype.hasOwnProperty.call(e, t) && + ggr(e, r, t); + }; + Object.defineProperty(cd, "__esModule", { value: !0 }); + G2(P$e(), cd); + G2(R$e(), cd); + G2(B$e(), cd); + G2(g$(), cd); + G2(E$(), cd); + G2(j$e(), cd); + }); + var q7 = N((Kfn, D7) => { + _(); + x(); + var K$e, + V$e, + G$e, + Y$e, + $$e, + J$e, + Z$e, + Q$e, + X$e, + eJe, + tJe, + rJe, + nJe, + O7, + I$, + aJe, + iJe, + sJe, + Y2, + oJe, + cJe, + uJe, + lJe, + dJe, + pJe, + hJe, + fJe, + mJe, + L7; + (function (r) { + var e = + typeof M == "object" + ? M + : typeof self == "object" + ? self + : typeof this == "object" + ? this + : {}; + typeof define == "function" && define.amd + ? define("tslib", ["exports"], function (n) { + r(t(e, t(n))); + }) + : typeof D7 == "object" && typeof D7.exports == "object" + ? r(t(e, t(D7.exports))) + : r(t(e)); + function t(n, a) { + return ( + n !== e && + (typeof Object.create == "function" + ? Object.defineProperty(n, "__esModule", { value: !0 }) + : (n.__esModule = !0)), + function (i, s) { + return (n[i] = a ? a(i, s) : s); + } + ); + } + })(function (r) { + var e = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (n, a) { + n.__proto__ = a; + }) || + function (n, a) { + for (var i in a) + Object.prototype.hasOwnProperty.call(a, i) && (n[i] = a[i]); + }; + (K$e = function (n, a) { + if (typeof a != "function" && a !== null) + throw new TypeError( + "Class extends value " + String(a) + " is not a constructor or null" + ); + e(n, a); + function i() { + this.constructor = n; + } + n.prototype = + a === null + ? Object.create(a) + : ((i.prototype = a.prototype), new i()); + }), + (V$e = + Object.assign || + function (n) { + for (var a, i = 1, s = arguments.length; i < s; i++) { + a = arguments[i]; + for (var c in a) + Object.prototype.hasOwnProperty.call(a, c) && (n[c] = a[c]); + } + return n; + }), + (G$e = function (n, a) { + var i = {}; + for (var s in n) + Object.prototype.hasOwnProperty.call(n, s) && + a.indexOf(s) < 0 && + (i[s] = n[s]); + if (n != null && typeof Object.getOwnPropertySymbols == "function") + for ( + var c = 0, s = Object.getOwnPropertySymbols(n); + c < s.length; + c++ + ) + a.indexOf(s[c]) < 0 && + Object.prototype.propertyIsEnumerable.call(n, s[c]) && + (i[s[c]] = n[s[c]]); + return i; + }), + (Y$e = function (n, a, i, s) { + var c = arguments.length, + l = + c < 3 + ? a + : s === null + ? (s = Object.getOwnPropertyDescriptor(a, i)) + : s, + d; + if ( + typeof Reflect == "object" && + typeof Reflect.decorate == "function" + ) + l = Reflect.decorate(n, a, i, s); + else + for (var m = n.length - 1; m >= 0; m--) + (d = n[m]) && + (l = (c < 3 ? d(l) : c > 3 ? d(a, i, l) : d(a, i)) || l); + return c > 3 && l && Object.defineProperty(a, i, l), l; + }), + ($$e = function (n, a) { + return function (i, s) { + a(i, s, n); + }; + }), + (J$e = function (n, a, i, s, c, l) { + function d(V) { + if (V !== void 0 && typeof V != "function") + throw new TypeError("Function expected"); + return V; + } + for ( + var m = s.kind, + w = m === "getter" ? "get" : m === "setter" ? "set" : "value", + C = !a && n ? (s.static ? n : n.prototype) : null, + I = a || (C ? Object.getOwnPropertyDescriptor(C, s.name) : {}), + k, + O = !1, + D = i.length - 1; + D >= 0; + D-- + ) { + var W = {}; + for (var H in s) W[H] = H === "access" ? {} : s[H]; + for (var H in s.access) W.access[H] = s.access[H]; + W.addInitializer = function (V) { + if (O) + throw new TypeError( + "Cannot add initializers after decoration has completed" + ); + l.push(d(V || null)); + }; + var j = (0, i[D])( + m === "accessor" ? { get: I.get, set: I.set } : I[w], + W + ); + if (m === "accessor") { + if (j === void 0) continue; + if (j === null || typeof j != "object") + throw new TypeError("Object expected"); + (k = d(j.get)) && (I.get = k), + (k = d(j.set)) && (I.set = k), + (k = d(j.init)) && c.push(k); + } else (k = d(j)) && (m === "field" ? c.push(k) : (I[w] = k)); + } + C && Object.defineProperty(C, s.name, I), (O = !0); + }), + (Z$e = function (n, a, i) { + for (var s = arguments.length > 2, c = 0; c < a.length; c++) + i = s ? a[c].call(n, i) : a[c].call(n); + return s ? i : void 0; + }), + (Q$e = function (n) { + return typeof n == "symbol" ? n : "".concat(n); + }), + (X$e = function (n, a, i) { + return ( + typeof a == "symbol" && + (a = a.description ? "[".concat(a.description, "]") : ""), + Object.defineProperty(n, "name", { + configurable: !0, + value: i ? "".concat(i, " ", a) : a, + }) + ); + }), + (eJe = function (n, a) { + if ( + typeof Reflect == "object" && + typeof Reflect.metadata == "function" + ) + return Reflect.metadata(n, a); + }), + (tJe = function (n, a, i, s) { + function c(l) { + return l instanceof i + ? l + : new i(function (d) { + d(l); + }); + } + return new (i || (i = Promise))(function (l, d) { + function m(I) { + try { + C(s.next(I)); + } catch (k) { + d(k); + } + } + function w(I) { + try { + C(s.throw(I)); + } catch (k) { + d(k); + } + } + function C(I) { + I.done ? l(I.value) : c(I.value).then(m, w); + } + C((s = s.apply(n, a || [])).next()); + }); + }), + (rJe = function (n, a) { + var i = { + label: 0, + sent: function () { + if (l[0] & 1) throw l[1]; + return l[1]; + }, + trys: [], + ops: [], + }, + s, + c, + l, + d; + return ( + (d = { next: m(0), throw: m(1), return: m(2) }), + typeof Symbol == "function" && + (d[Symbol.iterator] = function () { + return this; + }), + d + ); + function m(C) { + return function (I) { + return w([C, I]); + }; + } + function w(C) { + if (s) throw new TypeError("Generator is already executing."); + for (; d && ((d = 0), C[0] && (i = 0)), i; ) + try { + if ( + ((s = 1), + c && + (l = + C[0] & 2 + ? c.return + : C[0] + ? c.throw || ((l = c.return) && l.call(c), 0) + : c.next) && + !(l = l.call(c, C[1])).done) + ) + return l; + switch (((c = 0), l && (C = [C[0] & 2, l.value]), C[0])) { + case 0: + case 1: + l = C; + break; + case 4: + return i.label++, { value: C[1], done: !1 }; + case 5: + i.label++, (c = C[1]), (C = [0]); + continue; + case 7: + (C = i.ops.pop()), i.trys.pop(); + continue; + default: + if ( + ((l = i.trys), + !(l = l.length > 0 && l[l.length - 1]) && + (C[0] === 6 || C[0] === 2)) + ) { + i = 0; + continue; + } + if (C[0] === 3 && (!l || (C[1] > l[0] && C[1] < l[3]))) { + i.label = C[1]; + break; + } + if (C[0] === 6 && i.label < l[1]) { + (i.label = l[1]), (l = C); + break; + } + if (l && i.label < l[2]) { + (i.label = l[2]), i.ops.push(C); + break; + } + l[2] && i.ops.pop(), i.trys.pop(); + continue; + } + C = a.call(n, i); + } catch (I) { + (C = [6, I]), (c = 0); + } finally { + s = l = 0; + } + if (C[0] & 5) throw C[1]; + return { value: C[0] ? C[1] : void 0, done: !0 }; + } + }), + (nJe = function (n, a) { + for (var i in n) + i !== "default" && + !Object.prototype.hasOwnProperty.call(a, i) && + L7(a, n, i); + }), + (L7 = Object.create + ? function (n, a, i, s) { + s === void 0 && (s = i); + var c = Object.getOwnPropertyDescriptor(a, i); + (!c || + ("get" in c ? !a.__esModule : c.writable || c.configurable)) && + (c = { + enumerable: !0, + get: function () { + return a[i]; + }, + }), + Object.defineProperty(n, s, c); + } + : function (n, a, i, s) { + s === void 0 && (s = i), (n[s] = a[i]); + }), + (O7 = function (n) { + var a = typeof Symbol == "function" && Symbol.iterator, + i = a && n[a], + s = 0; + if (i) return i.call(n); + if (n && typeof n.length == "number") + return { + next: function () { + return ( + n && s >= n.length && (n = void 0), + { value: n && n[s++], done: !n } + ); + }, + }; + throw new TypeError( + a ? "Object is not iterable." : "Symbol.iterator is not defined." + ); + }), + (I$ = function (n, a) { + var i = typeof Symbol == "function" && n[Symbol.iterator]; + if (!i) return n; + var s = i.call(n), + c, + l = [], + d; + try { + for (; (a === void 0 || a-- > 0) && !(c = s.next()).done; ) + l.push(c.value); + } catch (m) { + d = { error: m }; + } finally { + try { + c && !c.done && (i = s.return) && i.call(s); + } finally { + if (d) throw d.error; + } + } + return l; + }), + (aJe = function () { + for (var n = [], a = 0; a < arguments.length; a++) + n = n.concat(I$(arguments[a])); + return n; + }), + (iJe = function () { + for (var n = 0, a = 0, i = arguments.length; a < i; a++) + n += arguments[a].length; + for (var s = Array(n), c = 0, a = 0; a < i; a++) + for (var l = arguments[a], d = 0, m = l.length; d < m; d++, c++) + s[c] = l[d]; + return s; + }), + (sJe = function (n, a, i) { + if (i || arguments.length === 2) + for (var s = 0, c = a.length, l; s < c; s++) + (l || !(s in a)) && + (l || (l = Array.prototype.slice.call(a, 0, s)), (l[s] = a[s])); + return n.concat(l || Array.prototype.slice.call(a)); + }), + (Y2 = function (n) { + return this instanceof Y2 ? ((this.v = n), this) : new Y2(n); + }), + (oJe = function (n, a, i) { + if (!Symbol.asyncIterator) + throw new TypeError("Symbol.asyncIterator is not defined."); + var s = i.apply(n, a || []), + c, + l = []; + return ( + (c = {}), + d("next"), + d("throw"), + d("return"), + (c[Symbol.asyncIterator] = function () { + return this; + }), + c + ); + function d(O) { + s[O] && + (c[O] = function (D) { + return new Promise(function (W, H) { + l.push([O, D, W, H]) > 1 || m(O, D); + }); + }); + } + function m(O, D) { + try { + w(s[O](D)); + } catch (W) { + k(l[0][3], W); + } + } + function w(O) { + O.value instanceof Y2 + ? Promise.resolve(O.value.v).then(C, I) + : k(l[0][2], O); + } + function C(O) { + m("next", O); + } + function I(O) { + m("throw", O); + } + function k(O, D) { + O(D), l.shift(), l.length && m(l[0][0], l[0][1]); + } + }), + (cJe = function (n) { + var a, i; + return ( + (a = {}), + s("next"), + s("throw", function (c) { + throw c; + }), + s("return"), + (a[Symbol.iterator] = function () { + return this; + }), + a + ); + function s(c, l) { + a[c] = n[c] + ? function (d) { + return (i = !i) + ? { value: Y2(n[c](d)), done: !1 } + : l + ? l(d) + : d; + } + : l; + } + }), + (uJe = function (n) { + if (!Symbol.asyncIterator) + throw new TypeError("Symbol.asyncIterator is not defined."); + var a = n[Symbol.asyncIterator], + i; + return a + ? a.call(n) + : ((n = typeof O7 == "function" ? O7(n) : n[Symbol.iterator]()), + (i = {}), + s("next"), + s("throw"), + s("return"), + (i[Symbol.asyncIterator] = function () { + return this; + }), + i); + function s(l) { + i[l] = + n[l] && + function (d) { + return new Promise(function (m, w) { + (d = n[l](d)), c(m, w, d.done, d.value); + }); + }; + } + function c(l, d, m, w) { + Promise.resolve(w).then(function (C) { + l({ value: C, done: m }); + }, d); + } + }), + (lJe = function (n, a) { + return ( + Object.defineProperty + ? Object.defineProperty(n, "raw", { value: a }) + : (n.raw = a), + n + ); + }); + var t = Object.create + ? function (n, a) { + Object.defineProperty(n, "default", { enumerable: !0, value: a }); + } + : function (n, a) { + n.default = a; + }; + (dJe = function (n) { + if (n && n.__esModule) return n; + var a = {}; + if (n != null) + for (var i in n) + i !== "default" && + Object.prototype.hasOwnProperty.call(n, i) && + L7(a, n, i); + return t(a, n), a; + }), + (pJe = function (n) { + return n && n.__esModule ? n : { default: n }; + }), + (hJe = function (n, a, i, s) { + if (i === "a" && !s) + throw new TypeError( + "Private accessor was defined without a getter" + ); + if (typeof a == "function" ? n !== a || !s : !a.has(n)) + throw new TypeError( + "Cannot read private member from an object whose class did not declare it" + ); + return i === "m" ? s : i === "a" ? s.call(n) : s ? s.value : a.get(n); + }), + (fJe = function (n, a, i, s, c) { + if (s === "m") throw new TypeError("Private method is not writable"); + if (s === "a" && !c) + throw new TypeError( + "Private accessor was defined without a setter" + ); + if (typeof a == "function" ? n !== a || !c : !a.has(n)) + throw new TypeError( + "Cannot write private member to an object whose class did not declare it" + ); + return s === "a" ? c.call(n, i) : c ? (c.value = i) : a.set(n, i), i; + }), + (mJe = function (n, a) { + if (a === null || (typeof a != "object" && typeof a != "function")) + throw new TypeError("Cannot use 'in' operator on non-object"); + return typeof n == "function" ? a === n : n.has(a); + }), + r("__extends", K$e), + r("__assign", V$e), + r("__rest", G$e), + r("__decorate", Y$e), + r("__param", $$e), + r("__esDecorate", J$e), + r("__runInitializers", Z$e), + r("__propKey", Q$e), + r("__setFunctionName", X$e), + r("__metadata", eJe), + r("__awaiter", tJe), + r("__generator", rJe), + r("__exportStar", nJe), + r("__createBinding", L7), + r("__values", O7), + r("__read", I$), + r("__spread", aJe), + r("__spreadArrays", iJe), + r("__spreadArray", sJe), + r("__await", Y2), + r("__asyncGenerator", oJe), + r("__asyncDelegator", cJe), + r("__asyncValues", uJe), + r("__makeTemplateObject", lJe), + r("__importStar", dJe), + r("__importDefault", pJe), + r("__classPrivateFieldGet", hJe), + r("__classPrivateFieldSet", fJe), + r("__classPrivateFieldIn", mJe); + }); + }); + var k$ = N((A$) => { + "use strict"; + _(); + x(); + Object.defineProperty(A$, "__esModule", { value: !0 }); + var yJe = q7(), + bgr = (function () { + function r(e) { + if (((this._maxConcurrency = e), (this._queue = []), e <= 0)) + throw new Error( + "semaphore must be initialized to a positive value" + ); + this._value = e; + } + return ( + (r.prototype.acquire = function () { + var e = this, + t = this.isLocked(), + n = new Promise(function (a) { + return e._queue.push(a); + }); + return t || this._dispatch(), n; + }), + (r.prototype.runExclusive = function (e) { + return yJe.__awaiter(this, void 0, void 0, function () { + var t, n, a; + return yJe.__generator(this, function (i) { + switch (i.label) { + case 0: + return [4, this.acquire()]; + case 1: + (t = i.sent()), (n = t[0]), (a = t[1]), (i.label = 2); + case 2: + return i.trys.push([2, , 4, 5]), [4, e(n)]; + case 3: + return [2, i.sent()]; + case 4: + return a(), [7]; + case 5: + return [2]; + } + }); + }); + }), + (r.prototype.isLocked = function () { + return this._value <= 0; + }), + (r.prototype.release = function () { + if (this._maxConcurrency > 1) + throw new Error( + "this method is unavailabel on semaphores with concurrency > 1; use the scoped release returned by acquire instead" + ); + if (this._currentReleaser) { + var e = this._currentReleaser; + (this._currentReleaser = void 0), e(); + } + }), + (r.prototype._dispatch = function () { + var e = this, + t = this._queue.shift(); + if (!!t) { + var n = !1; + (this._currentReleaser = function () { + n || ((n = !0), e._value++, e._dispatch()); + }), + t([this._value--, this._currentReleaser]); + } + }), + r + ); + })(); + A$.default = bgr; + }); + var bJe = N((S$) => { + "use strict"; + _(); + x(); + Object.defineProperty(S$, "__esModule", { value: !0 }); + var gJe = q7(), + vgr = k$(), + wgr = (function () { + function r() { + this._semaphore = new vgr.default(1); + } + return ( + (r.prototype.acquire = function () { + return gJe.__awaiter(this, void 0, void 0, function () { + var e, t; + return gJe.__generator(this, function (n) { + switch (n.label) { + case 0: + return [4, this._semaphore.acquire()]; + case 1: + return (e = n.sent()), (t = e[1]), [2, t]; + } + }); + }); + }), + (r.prototype.runExclusive = function (e) { + return this._semaphore.runExclusive(function () { + return e(); + }); + }), + (r.prototype.isLocked = function () { + return this._semaphore.isLocked(); + }), + (r.prototype.release = function () { + this._semaphore.release(); + }), + r + ); + })(); + S$.default = wgr; + }); + var vJe = N((W7) => { + "use strict"; + _(); + x(); + Object.defineProperty(W7, "__esModule", { value: !0 }); + W7.withTimeout = void 0; + var F7 = q7(); + function _gr(r, e, t) { + var n = this; + return ( + t === void 0 && (t = new Error("timeout")), + { + acquire: function () { + return new Promise(function (a, i) { + return F7.__awaiter(n, void 0, void 0, function () { + var s, c, l; + return F7.__generator(this, function (d) { + switch (d.label) { + case 0: + return ( + (s = !1), + setTimeout(function () { + (s = !0), i(t); + }, e), + [4, r.acquire()] + ); + case 1: + return ( + (c = d.sent()), + s ? ((l = Array.isArray(c) ? c[1] : c), l()) : a(c), + [2] + ); + } + }); + }); + }); + }, + runExclusive: function (a) { + return F7.__awaiter(this, void 0, void 0, function () { + var i, s; + return F7.__generator(this, function (c) { + switch (c.label) { + case 0: + (i = function () {}), (c.label = 1); + case 1: + return c.trys.push([1, , 7, 8]), [4, this.acquire()]; + case 2: + return ( + (s = c.sent()), + Array.isArray(s) ? ((i = s[1]), [4, a(s[0])]) : [3, 4] + ); + case 3: + return [2, c.sent()]; + case 4: + return (i = s), [4, a()]; + case 5: + return [2, c.sent()]; + case 6: + return [3, 8]; + case 7: + return i(), [7]; + case 8: + return [2]; + } + }); + }); + }, + release: function () { + r.release(); + }, + isLocked: function () { + return r.isLocked(); + }, + } + ); + } + W7.withTimeout = _gr; + }); + var wJe = N((N0) => { + "use strict"; + _(); + x(); + Object.defineProperty(N0, "__esModule", { value: !0 }); + N0.withTimeout = N0.Semaphore = N0.Mutex = void 0; + var xgr = bJe(); + Object.defineProperty(N0, "Mutex", { + enumerable: !0, + get: function () { + return xgr.default; + }, + }); + var Tgr = k$(); + Object.defineProperty(N0, "Semaphore", { + enumerable: !0, + get: function () { + return Tgr.default; + }, + }); + var Egr = vJe(); + Object.defineProperty(N0, "withTimeout", { + enumerable: !0, + get: function () { + return Egr.withTimeout; + }, + }); + }); + var EJe = N((smn, TJe) => { + "use strict"; + _(); + x(); + var _Je = (r, e, t, n) => + function (...a) { + let i = e.promiseModule; + return new i((s, c) => { + e.multiArgs + ? a.push((...d) => { + e.errorFirst ? (d[0] ? c(d) : (d.shift(), s(d))) : s(d); + }) + : e.errorFirst + ? a.push((d, m) => { + d ? c(d) : s(m); + }) + : a.push(s), + Reflect.apply(r, this === t ? n : this, a); + }); + }, + xJe = new WeakMap(); + TJe.exports = (r, e) => { + e = { + exclude: [/.+(?:Sync|Stream)$/], + errorFirst: !0, + promiseModule: Promise, + ...e, + }; + let t = typeof r; + if (!(r !== null && (t === "object" || t === "function"))) + throw new TypeError( + `Expected \`input\` to be a \`Function\` or \`Object\`, got \`${ + r === null ? "null" : t + }\`` + ); + let n = (s, c) => { + let l = xJe.get(s); + if ((l || ((l = {}), xJe.set(s, l)), c in l)) return l[c]; + let d = (k) => + typeof k == "string" || typeof c == "symbol" + ? c === k + : k.test(c), + m = Reflect.getOwnPropertyDescriptor(s, c), + w = m === void 0 || m.writable || m.configurable, + I = (e.include ? e.include.some(d) : !e.exclude.some(d)) && w; + return (l[c] = I), I; + }, + a = new WeakMap(), + i = new Proxy(r, { + apply(s, c, l) { + let d = a.get(s); + if (d) return Reflect.apply(d, c, l); + let m = e.excludeMain ? s : _Je(s, e, i, s); + return a.set(s, m), Reflect.apply(m, c, l); + }, + get(s, c) { + let l = s[c]; + if (!n(s, c) || l === Function.prototype[c]) return l; + let d = a.get(l); + if (d) return d; + if (typeof l == "function") { + let m = _Je(l, e, i, s); + return a.set(l, m), m; + } + return l; + }, + }); + return i; + }; + }); + var U7 = N((umn, CJe) => { + _(); + x(); + var Cgr = v6().default, + M$ = class extends Cgr { + constructor() { + super(), (this.updates = []); + } + async initialize() {} + async update() { + throw new Error("BaseFilter - no update method specified"); + } + addResults(e) { + (this.updates = this.updates.concat(e)), + e.forEach((t) => this.emit("update", t)); + } + addInitialResults(e) {} + getChangesAndClear() { + let e = this.updates; + return (this.updates = []), e; + } + }; + CJe.exports = M$; + }); + var AJe = N((pmn, IJe) => { + _(); + x(); + var Igr = U7(), + P$ = class extends Igr { + constructor() { + super(), (this.allResults = []); + } + async update() { + throw new Error("BaseFilterWithHistory - no update method specified"); + } + addResults(e) { + (this.allResults = this.allResults.concat(e)), super.addResults(e); + } + addInitialResults(e) { + (this.allResults = this.allResults.concat(e)), + super.addInitialResults(e); + } + getAllResults() { + return this.allResults; + } + }; + IJe.exports = P$; + }); + var $2 = N((mmn, MJe) => { + _(); + x(); + MJe.exports = { + minBlockRef: Agr, + maxBlockRef: kgr, + sortBlockRefs: R$, + bnToHex: Sgr, + blockRefIsNumber: Mgr, + hexToInt: H7, + incrementHexInt: Pgr, + intToHex: SJe, + unsafeRandomBytes: Rgr, + }; + function Agr(...r) { + return R$(r)[0]; + } + function kgr(...r) { + let e = R$(r); + return e[e.length - 1]; + } + function R$(r) { + return r.sort((e, t) => + e === "latest" || t === "earliest" + ? 1 + : t === "latest" || e === "earliest" + ? -1 + : H7(e) - H7(t) + ); + } + function Sgr(r) { + return "0x" + r.toString(16); + } + function Mgr(r) { + return r && !["earliest", "latest", "pending"].includes(r); + } + function H7(r) { + return r == null ? r : Number.parseInt(r, 16); + } + function Pgr(r) { + if (r == null) return r; + let e = H7(r); + return SJe(e + 1); + } + function SJe(r) { + if (r == null) return r; + let e = r.toString(16); + return e.length % 2 && (e = "0" + e), "0x" + e; + } + function Rgr(r) { + let e = "0x"; + for (let t = 0; t < r; t++) (e += kJe()), (e += kJe()); + return e; + } + function kJe() { + return Math.floor(Math.random() * 16).toString(16); + } + }); + var RJe = N((vmn, PJe) => { + _(); + x(); + var Bgr = d$(), + Ngr = EJe(), + Ogr = AJe(), + { + bnToHex: bmn, + hexToInt: z7, + incrementHexInt: Lgr, + minBlockRef: Dgr, + blockRefIsNumber: qgr, + } = $2(), + B$ = class extends Ogr { + constructor({ provider: e, params: t }) { + super(), + (this.type = "log"), + (this.ethQuery = new Bgr(e)), + (this.params = Object.assign( + { + fromBlock: "latest", + toBlock: "latest", + address: void 0, + topics: [], + }, + t + )), + this.params.address && + (Array.isArray(this.params.address) || + (this.params.address = [this.params.address]), + (this.params.address = this.params.address.map((n) => + n.toLowerCase() + ))); + } + async initialize({ currentBlock: e }) { + let t = this.params.fromBlock; + ["latest", "pending"].includes(t) && (t = e), + t === "earliest" && (t = "0x0"), + (this.params.fromBlock = t); + let n = Dgr(this.params.toBlock, e), + a = Object.assign({}, this.params, { toBlock: n }), + i = await this._fetchLogs(a); + this.addInitialResults(i); + } + async update({ oldBlock: e, newBlock: t }) { + let n = t, + a; + e ? (a = Lgr(e)) : (a = t); + let i = Object.assign({}, this.params, { fromBlock: a, toBlock: n }), + c = (await this._fetchLogs(i)).filter((l) => this.matchLog(l)); + this.addResults(c); + } + async _fetchLogs(e) { + return await Ngr((n) => this.ethQuery.getLogs(e, n))(); + } + matchLog(e) { + if ( + z7(this.params.fromBlock) >= z7(e.blockNumber) || + (qgr(this.params.toBlock) && + z7(this.params.toBlock) <= z7(e.blockNumber)) + ) + return !1; + let t = e.address && e.address.toLowerCase(); + return this.params.address && t && !this.params.address.includes(t) + ? !1 + : this.params.topics.every((a, i) => { + let s = e.topics[i]; + if (!s) return !1; + s = s.toLowerCase(); + let c = Array.isArray(a) ? a : [a]; + return c.includes(null) + ? !0 + : ((c = c.map((m) => m.toLowerCase())), c.includes(s)); + }); + } + }; + PJe.exports = B$; + }); + var j7 = N((xmn, NJe) => { + _(); + x(); + NJe.exports = Fgr; + async function Fgr({ provider: r, fromBlock: e, toBlock: t }) { + e || (e = t); + let n = BJe(e), + i = BJe(t) - n + 1, + s = Array(i) + .fill() + .map((l, d) => n + d) + .map(Wgr); + return await Promise.all( + s.map((l) => Hgr(r, "eth_getBlockByNumber", [l, !1])) + ); + } + function BJe(r) { + return r == null ? r : Number.parseInt(r, 16); + } + function Wgr(r) { + return r == null ? r : "0x" + r.toString(16); + } + function Ugr(r, e) { + return new Promise((t, n) => { + r.sendAsync(e, (a, i) => { + a + ? n(a) + : i.error + ? n(i.error) + : i.result + ? t(i.result) + : n(new Error("Result was empty")); + }); + }); + } + async function Hgr(r, e, t) { + for (let n = 0; n < 3; n++) + try { + return await Ugr(r, { id: 1, jsonrpc: "2.0", method: e, params: t }); + } catch (a) { + console.error( + `provider.sendAsync failed: ${a.stack || a.message || a}` + ); + } + throw new Error(`Block not found for params: ${JSON.stringify(t)}`); + } + }); + var LJe = N((Cmn, OJe) => { + _(); + x(); + var zgr = U7(), + jgr = j7(), + { incrementHexInt: Kgr } = $2(), + N$ = class extends zgr { + constructor({ provider: e, params: t }) { + super(), (this.type = "block"), (this.provider = e); + } + async update({ oldBlock: e, newBlock: t }) { + let n = t, + a = Kgr(e), + s = ( + await jgr({ provider: this.provider, fromBlock: a, toBlock: n }) + ).map((c) => c.hash); + this.addResults(s); + } + }; + OJe.exports = N$; + }); + var qJe = N((kmn, DJe) => { + _(); + x(); + var Vgr = U7(), + Ggr = j7(), + { incrementHexInt: Ygr } = $2(), + O$ = class extends Vgr { + constructor({ provider: e }) { + super(), (this.type = "tx"), (this.provider = e); + } + async update({ oldBlock: e }) { + let t = e, + n = Ygr(e), + a = await Ggr({ + provider: this.provider, + fromBlock: n, + toBlock: t, + }), + i = []; + for (let s of a) i.push(...s.transactions); + this.addResults(i); + } + }; + DJe.exports = O$; + }); + var UJe = N((Pmn, WJe) => { + _(); + x(); + var $gr = wJe().Mutex, + { createAsyncMiddleware: Jgr, createScaffoldMiddleware: Zgr } = C$(), + Qgr = RJe(), + Xgr = LJe(), + ebr = qJe(), + { intToHex: FJe, hexToInt: L$ } = $2(); + WJe.exports = tbr; + function tbr({ blockTracker: r, provider: e }) { + let t = 0, + n = {}, + a = new $gr(), + i = rbr({ mutex: a }), + s = Zgr({ + eth_newFilter: i(D$(l)), + eth_newBlockFilter: i(D$(d)), + eth_newPendingTransactionFilter: i(D$(m)), + eth_uninstallFilter: i(K7(I)), + eth_getFilterChanges: i(K7(w)), + eth_getFilterLogs: i(K7(C)), + }), + c = async ({ oldBlock: H, newBlock: j }) => { + if (n.length === 0) return; + let V = await a.acquire(); + try { + await Promise.all( + J2(n).map(async (te) => { + try { + await te.update({ oldBlock: H, newBlock: j }); + } catch ($) { + console.error($); + } + }) + ); + } catch (te) { + console.error(te); + } + V(); + }; + return ( + (s.newLogFilter = l), + (s.newBlockFilter = d), + (s.newPendingTransactionFilter = m), + (s.uninstallFilter = I), + (s.getFilterChanges = w), + (s.getFilterLogs = C), + (s.destroy = () => { + D(); + }), + s + ); + async function l(H) { + let j = new Qgr({ provider: e, params: H }), + V = await k(j); + return j; + } + async function d() { + let H = new Xgr({ provider: e }), + j = await k(H); + return H; + } + async function m() { + let H = new ebr({ provider: e }), + j = await k(H); + return H; + } + async function w(H) { + let j = L$(H), + V = n[j]; + if (!V) throw new Error(`No filter for index "${j}"`); + return V.getChangesAndClear(); + } + async function C(H) { + let j = L$(H), + V = n[j]; + if (!V) throw new Error(`No filter for index "${j}"`); + let te = []; + return V.type === "log" && (te = V.getAllResults()), te; + } + async function I(H) { + let j = L$(H), + V = n[j], + te = Boolean(V); + return te && (await O(j)), te; + } + async function k(H) { + let j = J2(n).length, + V = await r.getLatestBlock(); + await H.initialize({ currentBlock: V }), + t++, + (n[t] = H), + (H.id = t), + (H.idHex = FJe(t)); + let te = J2(n).length; + return W({ prevFilterCount: j, newFilterCount: te }), t; + } + async function O(H) { + let j = J2(n).length; + delete n[H]; + let V = J2(n).length; + W({ prevFilterCount: j, newFilterCount: V }); + } + async function D() { + let H = J2(n).length; + (n = {}), W({ prevFilterCount: H, newFilterCount: 0 }); + } + function W({ prevFilterCount: H, newFilterCount: j }) { + if (H === 0 && j > 0) { + r.on("sync", c); + return; + } + if (H > 0 && j === 0) { + r.removeListener("sync", c); + return; + } + } + } + function D$(r) { + return K7(async (...e) => { + let t = await r(...e); + return FJe(t.id); + }); + } + function K7(r) { + return Jgr(async (e, t) => { + let n = await r.apply(null, e.params); + t.result = n; + }); + } + function rbr({ mutex: r }) { + return (e) => async (t, n, a, i) => { + (await r.acquire())(), e(t, n, a, i); + }; + } + function J2(r, e) { + let t = []; + for (let n in r) t.push(r[n]); + return t; + } + }); + var jJe = N((Nmn, zJe) => { + _(); + x(); + var nbr = v6().default, + { createAsyncMiddleware: HJe, createScaffoldMiddleware: abr } = C$(), + ibr = UJe(), + { unsafeRandomBytes: sbr, incrementHexInt: obr } = $2(), + cbr = j7(); + zJe.exports = ubr; + function ubr({ blockTracker: r, provider: e }) { + let t = {}, + n = ibr({ blockTracker: r, provider: e }), + a = !1, + i = new nbr(), + s = abr({ eth_subscribe: HJe(c), eth_unsubscribe: HJe(l) }); + return (s.destroy = m), { events: i, middleware: s }; + async function c(w, C) { + if (a) + throw new Error( + "SubscriptionManager - attempting to use after destroying" + ); + let I = w.params[0], + k = sbr(16), + O; + switch (I) { + case "newHeads": + O = D({ subId: k }); + break; + case "logs": + let H = w.params[1], + j = await n.newLogFilter(H); + O = W({ subId: k, filter: j }); + break; + default: + throw new Error( + `SubscriptionManager - unsupported subscription type "${I}"` + ); + } + (t[k] = O), (C.result = k); + return; + function D({ subId: H }) { + let j = { + type: I, + destroy: async () => { + r.removeListener("sync", j.update); + }, + update: async ({ oldBlock: V, newBlock: te }) => { + let $ = te, + ae = obr(V); + (await cbr({ provider: e, fromBlock: ae, toBlock: $ })) + .map(lbr) + .filter((g) => g !== null) + .forEach((g) => { + d(H, g); + }); + }, + }; + return r.on("sync", j.update), j; + } + function W({ subId: H, filter: j }) { + return ( + j.on("update", (te) => d(H, te)), + { type: I, destroy: async () => await n.uninstallFilter(j.idHex) } + ); + } + } + async function l(w, C) { + if (a) + throw new Error( + "SubscriptionManager - attempting to use after destroying" + ); + let I = w.params[0], + k = t[I]; + if (!k) { + C.result = !1; + return; + } + delete t[I], await k.destroy(), (C.result = !0); + } + function d(w, C) { + i.emit("notification", { + jsonrpc: "2.0", + method: "eth_subscription", + params: { subscription: w, result: C }, + }); + } + function m() { + i.removeAllListeners(); + for (let w in t) t[w].destroy(), delete t[w]; + a = !0; + } + } + function lbr(r) { + return r == null + ? null + : { + hash: r.hash, + parentHash: r.parentHash, + sha3Uncles: r.sha3Uncles, + miner: r.miner, + stateRoot: r.stateRoot, + transactionsRoot: r.transactionsRoot, + receiptsRoot: r.receiptsRoot, + logsBloom: r.logsBloom, + difficulty: r.difficulty, + number: r.number, + gasLimit: r.gasLimit, + gasUsed: r.gasUsed, + nonce: r.nonce, + mixHash: r.mixHash, + timestamp: r.timestamp, + extraData: r.extraData, + }; + } + }); + var VJe = N((V7) => { + "use strict"; + _(); + x(); + Object.defineProperty(V7, "__esModule", { value: !0 }); + V7.SubscriptionManager = void 0; + var dbr = S$e(), + pbr = jJe(), + KJe = () => {}, + q$ = class { + constructor(e) { + let t = new dbr({ + provider: e, + pollingInterval: 15e3, + setSkipCacheFlag: !0, + }), + { events: n, middleware: a } = pbr({ + blockTracker: t, + provider: e, + }); + (this.events = n), (this.subscriptionMiddleware = a); + } + async handleRequest(e) { + let t = {}; + return await this.subscriptionMiddleware(e, t, KJe, KJe), t; + } + destroy() { + this.subscriptionMiddleware.destroy(); + } + }; + V7.SubscriptionManager = q$; + }); + var G7 = N((Z2) => { + "use strict"; + _(); + x(); + var H$ = + (Z2 && Z2.__importDefault) || + function (r) { + return r && r.__esModule ? r : { default: r }; + }; + Object.defineProperty(Z2, "__esModule", { value: !0 }); + Z2.CoinbaseWalletProvider = void 0; + var hbr = H$(v6()), + fbr = H$(Gr()), + mc = u7(), + F$ = d7(), + GJe = w7(), + YJe = s$(), + Jr = Gf(), + W$ = H$(i$e()), + mbr = l$e(), + Ya = d$e(), + ybr = VJe(), + $Je = "DefaultChainId", + JJe = "DefaultJsonRpcUrl", + U$ = class extends hbr.default { + constructor(e) { + var t, n; + super(), + (this._filterPolyfill = new mbr.FilterPolyfill(this)), + (this._subscriptionManager = new ybr.SubscriptionManager(this)), + (this._relay = null), + (this._addresses = []), + (this.hasMadeFirstChainChangedEmission = !1), + (this._send = this.send.bind(this)), + (this._sendAsync = this.sendAsync.bind(this)), + (this.setProviderInfo = this.setProviderInfo.bind(this)), + (this.updateProviderInfo = this.updateProviderInfo.bind(this)), + (this.getChainId = this.getChainId.bind(this)), + (this.setAppInfo = this.setAppInfo.bind(this)), + (this.enable = this.enable.bind(this)), + (this.close = this.close.bind(this)), + (this.send = this.send.bind(this)), + (this.sendAsync = this.sendAsync.bind(this)), + (this.request = this.request.bind(this)), + (this._setAddresses = this._setAddresses.bind(this)), + (this.scanQRCode = this.scanQRCode.bind(this)), + (this.genericRequest = this.genericRequest.bind(this)), + (this._chainIdFromOpts = e.chainId), + (this._jsonRpcUrlFromOpts = e.jsonRpcUrl), + (this._overrideIsMetaMask = e.overrideIsMetaMask), + (this._relayProvider = e.relayProvider), + (this._storage = e.storage), + (this._relayEventManager = e.relayEventManager), + (this.diagnostic = e.diagnosticLogger), + (this.reloadOnDisconnect = !0), + (this.isCoinbaseWallet = + (t = e.overrideIsCoinbaseWallet) !== null && t !== void 0 + ? t + : !0), + (this.isCoinbaseBrowser = + (n = e.overrideIsCoinbaseBrowser) !== null && n !== void 0 + ? n + : !1), + (this.qrUrl = e.qrUrl), + (this.supportsAddressSwitching = e.supportsAddressSwitching), + (this.isLedger = e.isLedger); + let a = this.getChainId(), + i = (0, Jr.prepend0x)(a.toString(16)); + this.emit("connect", { chainIdStr: i }); + let s = this._storage.getItem(YJe.LOCAL_STORAGE_ADDRESSES_KEY); + if (s) { + let c = s.split(" "); + c[0] !== "" && + ((this._addresses = c.map((l) => (0, Jr.ensureAddressString)(l))), + this.emit("accountsChanged", c)); + } + this._subscriptionManager.events.on("notification", (c) => { + this.emit("message", { type: c.method, data: c.params }); + }), + this._addresses.length > 0 && this.initializeRelay(), + window.addEventListener("message", (c) => { + var l; + if ( + !(c.origin !== location.origin || c.source !== window) && + c.data.type === "walletLinkMessage" + ) { + if ( + c.data.data.action === "defaultChainChanged" || + c.data.data.action === "dappChainSwitched" + ) { + let d = c.data.data.chainId, + m = + (l = c.data.data.jsonRpcUrl) !== null && l !== void 0 + ? l + : this.jsonRpcUrl; + this.updateProviderInfo(m, Number(d)); + } + c.data.data.action === "addressChanged" && + this._setAddresses([c.data.data.address]); + } + }); + } + get selectedAddress() { + return this._addresses[0] || void 0; + } + get networkVersion() { + return this.getChainId().toString(10); + } + get chainId() { + return (0, Jr.prepend0x)(this.getChainId().toString(16)); + } + get isWalletLink() { + return !0; + } + get isMetaMask() { + return this._overrideIsMetaMask; + } + get host() { + return this.jsonRpcUrl; + } + get connected() { + return !0; + } + isConnected() { + return !0; + } + get jsonRpcUrl() { + var e; + return (e = this._storage.getItem(JJe)) !== null && e !== void 0 + ? e + : this._jsonRpcUrlFromOpts; + } + set jsonRpcUrl(e) { + this._storage.setItem(JJe, e); + } + disableReloadOnDisconnect() { + this.reloadOnDisconnect = !1; + } + setProviderInfo(e, t) { + this.isLedger || + this.isCoinbaseBrowser || + ((this._chainIdFromOpts = t), (this._jsonRpcUrlFromOpts = e)), + this.updateProviderInfo(this.jsonRpcUrl, this.getChainId()); + } + updateProviderInfo(e, t) { + this.jsonRpcUrl = e; + let n = this.getChainId(); + this._storage.setItem($Je, t.toString(10)), + ((0, Jr.ensureIntNumber)(t) !== n || + !this.hasMadeFirstChainChangedEmission) && + (this.emit("chainChanged", this.getChainId()), + (this.hasMadeFirstChainChangedEmission = !0)); + } + async watchAsset(e, t, n, a, i, s) { + return !!( + await ( + await this.initializeRelay() + ).watchAsset(e, t, n, a, i, s?.toString()).promise + ).result; + } + async addEthereumChain(e, t, n, a, i, s) { + var c, l; + if ((0, Jr.ensureIntNumber)(e) === this.getChainId()) return !1; + let d = await this.initializeRelay(), + m = d.inlineAddEthereumChain(e.toString()); + !this._isAuthorized() && + !m && + (await d.requestEthereumAccounts().promise); + let w = await d.addEthereumChain(e.toString(), t, i, n, a, s).promise; + return ( + ((c = w.result) === null || c === void 0 + ? void 0 + : c.isApproved) === !0 && this.updateProviderInfo(t[0], e), + ((l = w.result) === null || l === void 0 + ? void 0 + : l.isApproved) === !0 + ); + } + async switchEthereumChain(e) { + let n = await ( + await this.initializeRelay() + ).switchEthereumChain(e.toString(10), this.selectedAddress || void 0) + .promise; + if (n.errorCode) + throw mc.ethErrors.provider.custom({ code: n.errorCode }); + let a = n.result; + a.isApproved && + a.rpcUrl.length > 0 && + this.updateProviderInfo(a.rpcUrl, e); + } + setAppInfo(e, t) { + this.initializeRelay().then((n) => n.setAppInfo(e, t)); + } + async enable() { + var e; + return ( + (e = this.diagnostic) === null || + e === void 0 || + e.log(F$.EVENTS.ETH_ACCOUNTS_STATE, { + method: "provider::enable", + addresses_length: this._addresses.length, + sessionIdHash: this._relay + ? GJe.Session.hash(this._relay.session.id) + : void 0, + }), + this._addresses.length > 0 + ? [...this._addresses] + : await this._send(Ya.JSONRPCMethod.eth_requestAccounts) + ); + } + async close() { + (await this.initializeRelay()).resetAndReload(); + } + send(e, t) { + if (typeof e == "string") { + let a = e, + i = Array.isArray(t) ? t : t !== void 0 ? [t] : [], + s = { jsonrpc: "2.0", id: 0, method: a, params: i }; + return this._sendRequestAsync(s).then((c) => c.result); + } + if (typeof t == "function") { + let a = e, + i = t; + return this._sendAsync(a, i); + } + if (Array.isArray(e)) return e.map((i) => this._sendRequest(i)); + let n = e; + return this._sendRequest(n); + } + async sendAsync(e, t) { + if (typeof t != "function") throw new Error("callback is required"); + if (Array.isArray(e)) { + let a = t; + this._sendMultipleRequestsAsync(e) + .then((i) => a(null, i)) + .catch((i) => a(i, null)); + return; + } + let n = t; + return this._sendRequestAsync(e) + .then((a) => n(null, a)) + .catch((a) => n(a, null)); + } + async request(e) { + if (!e || typeof e != "object" || Array.isArray(e)) + throw mc.ethErrors.rpc.invalidRequest({ + message: "Expected a single, non-array, object argument.", + data: e, + }); + let { method: t, params: n } = e; + if (typeof t != "string" || t.length === 0) + throw mc.ethErrors.rpc.invalidRequest({ + message: "'args.method' must be a non-empty string.", + data: e, + }); + if ( + n !== void 0 && + !Array.isArray(n) && + (typeof n != "object" || n === null) + ) + throw mc.ethErrors.rpc.invalidRequest({ + message: "'args.params' must be an object or array if provided.", + data: e, + }); + let a = n === void 0 ? [] : n, + i = this._relayEventManager.makeRequestId(); + return ( + await this._sendRequestAsync({ + method: t, + params: a, + jsonrpc: "2.0", + id: i, + }) + ).result; + } + async scanQRCode(e) { + let n = await ( + await this.initializeRelay() + ).scanQRCode((0, Jr.ensureRegExpString)(e)).promise; + if (typeof n.result != "string") + throw new Error("result was not a string"); + return n.result; + } + async genericRequest(e, t) { + let a = await (await this.initializeRelay()).genericRequest(e, t) + .promise; + if (typeof a.result != "string") + throw new Error("result was not a string"); + return a.result; + } + async selectProvider(e) { + let n = await (await this.initializeRelay()).selectProvider(e) + .promise; + if (typeof n.result != "string") + throw new Error("result was not a string"); + return n.result; + } + supportsSubscriptions() { + return !1; + } + subscribe() { + throw new Error("Subscriptions are not supported"); + } + unsubscribe() { + throw new Error("Subscriptions are not supported"); + } + disconnect() { + return !0; + } + _sendRequest(e) { + let t = { jsonrpc: "2.0", id: e.id }, + { method: n } = e; + if ( + ((t.result = this._handleSynchronousMethods(e)), + t.result === void 0) + ) + throw new Error( + `Coinbase Wallet does not support calling ${n} synchronously without a callback. Please provide a callback parameter to call ${n} asynchronously.` + ); + return t; + } + _setAddresses(e, t) { + if (!Array.isArray(e)) throw new Error("addresses is not an array"); + let n = e.map((a) => (0, Jr.ensureAddressString)(a)); + JSON.stringify(n) !== JSON.stringify(this._addresses) && + ((this._addresses.length > 0 && + this.supportsAddressSwitching === !1 && + !t) || + ((this._addresses = n), + this.emit("accountsChanged", this._addresses), + this._storage.setItem( + YJe.LOCAL_STORAGE_ADDRESSES_KEY, + n.join(" ") + ))); + } + _sendRequestAsync(e) { + return new Promise((t, n) => { + try { + let a = this._handleSynchronousMethods(e); + if (a !== void 0) + return t({ jsonrpc: "2.0", id: e.id, result: a }); + let i = this._handleAsynchronousFilterMethods(e); + if (i !== void 0) { + i.then((c) => + t(Object.assign(Object.assign({}, c), { id: e.id })) + ).catch((c) => n(c)); + return; + } + let s = this._handleSubscriptionMethods(e); + if (s !== void 0) { + s.then((c) => + t({ jsonrpc: "2.0", id: e.id, result: c.result }) + ).catch((c) => n(c)); + return; + } + } catch (a) { + return n(a); + } + this._handleAsynchronousMethods(e) + .then( + (a) => a && t(Object.assign(Object.assign({}, a), { id: e.id })) + ) + .catch((a) => n(a)); + }); + } + _sendMultipleRequestsAsync(e) { + return Promise.all(e.map((t) => this._sendRequestAsync(t))); + } + _handleSynchronousMethods(e) { + let { method: t } = e, + n = e.params || []; + switch (t) { + case Ya.JSONRPCMethod.eth_accounts: + return this._eth_accounts(); + case Ya.JSONRPCMethod.eth_coinbase: + return this._eth_coinbase(); + case Ya.JSONRPCMethod.eth_uninstallFilter: + return this._eth_uninstallFilter(n); + case Ya.JSONRPCMethod.net_version: + return this._net_version(); + case Ya.JSONRPCMethod.eth_chainId: + return this._eth_chainId(); + default: + return; + } + } + async _handleAsynchronousMethods(e) { + let { method: t } = e, + n = e.params || []; + switch (t) { + case Ya.JSONRPCMethod.eth_requestAccounts: + return this._eth_requestAccounts(); + case Ya.JSONRPCMethod.eth_sign: + return this._eth_sign(n); + case Ya.JSONRPCMethod.eth_ecRecover: + return this._eth_ecRecover(n); + case Ya.JSONRPCMethod.personal_sign: + return this._personal_sign(n); + case Ya.JSONRPCMethod.personal_ecRecover: + return this._personal_ecRecover(n); + case Ya.JSONRPCMethod.eth_signTransaction: + return this._eth_signTransaction(n); + case Ya.JSONRPCMethod.eth_sendRawTransaction: + return this._eth_sendRawTransaction(n); + case Ya.JSONRPCMethod.eth_sendTransaction: + return this._eth_sendTransaction(n); + case Ya.JSONRPCMethod.eth_signTypedData_v1: + return this._eth_signTypedData_v1(n); + case Ya.JSONRPCMethod.eth_signTypedData_v2: + return this._throwUnsupportedMethodError(); + case Ya.JSONRPCMethod.eth_signTypedData_v3: + return this._eth_signTypedData_v3(n); + case Ya.JSONRPCMethod.eth_signTypedData_v4: + case Ya.JSONRPCMethod.eth_signTypedData: + return this._eth_signTypedData_v4(n); + case Ya.JSONRPCMethod.cbWallet_arbitrary: + return this._cbwallet_arbitrary(n); + case Ya.JSONRPCMethod.wallet_addEthereumChain: + return this._wallet_addEthereumChain(n); + case Ya.JSONRPCMethod.wallet_switchEthereumChain: + return this._wallet_switchEthereumChain(n); + case Ya.JSONRPCMethod.wallet_watchAsset: + return this._wallet_watchAsset(n); + } + return (await this.initializeRelay()).makeEthereumJSONRPCRequest( + e, + this.jsonRpcUrl + ); + } + _handleAsynchronousFilterMethods(e) { + let { method: t } = e, + n = e.params || []; + switch (t) { + case Ya.JSONRPCMethod.eth_newFilter: + return this._eth_newFilter(n); + case Ya.JSONRPCMethod.eth_newBlockFilter: + return this._eth_newBlockFilter(); + case Ya.JSONRPCMethod.eth_newPendingTransactionFilter: + return this._eth_newPendingTransactionFilter(); + case Ya.JSONRPCMethod.eth_getFilterChanges: + return this._eth_getFilterChanges(n); + case Ya.JSONRPCMethod.eth_getFilterLogs: + return this._eth_getFilterLogs(n); + } + } + _handleSubscriptionMethods(e) { + switch (e.method) { + case Ya.JSONRPCMethod.eth_subscribe: + case Ya.JSONRPCMethod.eth_unsubscribe: + return this._subscriptionManager.handleRequest(e); + } + } + _isKnownAddress(e) { + try { + let t = (0, Jr.ensureAddressString)(e); + return this._addresses + .map((a) => (0, Jr.ensureAddressString)(a)) + .includes(t); + } catch {} + return !1; + } + _ensureKnownAddress(e) { + var t; + if (!this._isKnownAddress(e)) + throw ( + ((t = this.diagnostic) === null || + t === void 0 || + t.log(F$.EVENTS.UNKNOWN_ADDRESS_ENCOUNTERED), + new Error("Unknown Ethereum address")) + ); + } + _prepareTransactionParams(e) { + let t = e.from + ? (0, Jr.ensureAddressString)(e.from) + : this.selectedAddress; + if (!t) throw new Error("Ethereum address is unavailable"); + this._ensureKnownAddress(t); + let n = e.to ? (0, Jr.ensureAddressString)(e.to) : null, + a = + e.value != null ? (0, Jr.ensureBN)(e.value) : new fbr.default(0), + i = e.data ? (0, Jr.ensureBuffer)(e.data) : P.Buffer.alloc(0), + s = e.nonce != null ? (0, Jr.ensureIntNumber)(e.nonce) : null, + c = e.gasPrice != null ? (0, Jr.ensureBN)(e.gasPrice) : null, + l = + e.maxFeePerGas != null ? (0, Jr.ensureBN)(e.maxFeePerGas) : null, + d = + e.maxPriorityFeePerGas != null + ? (0, Jr.ensureBN)(e.maxPriorityFeePerGas) + : null, + m = e.gas != null ? (0, Jr.ensureBN)(e.gas) : null, + w = this.getChainId(); + return { + fromAddress: t, + toAddress: n, + weiValue: a, + data: i, + nonce: s, + gasPriceInWei: c, + maxFeePerGas: l, + maxPriorityFeePerGas: d, + gasLimit: m, + chainId: w, + }; + } + _isAuthorized() { + return this._addresses.length > 0; + } + _requireAuthorization() { + if (!this._isAuthorized()) + throw mc.ethErrors.provider.unauthorized({}); + } + _throwUnsupportedMethodError() { + throw mc.ethErrors.provider.unsupportedMethod({}); + } + async _signEthereumMessage(e, t, n, a) { + this._ensureKnownAddress(t); + try { + return { + jsonrpc: "2.0", + id: 0, + result: ( + await ( + await this.initializeRelay() + ).signEthereumMessage(e, t, n, a).promise + ).result, + }; + } catch (i) { + throw typeof i.message == "string" && + i.message.match(/(denied|rejected)/i) + ? mc.ethErrors.provider.userRejectedRequest( + "User denied message signature" + ) + : i; + } + } + async _ethereumAddressFromSignedMessage(e, t, n) { + return { + jsonrpc: "2.0", + id: 0, + result: ( + await ( + await this.initializeRelay() + ).ethereumAddressFromSignedMessage(e, t, n).promise + ).result, + }; + } + _eth_accounts() { + return [...this._addresses]; + } + _eth_coinbase() { + return this.selectedAddress || null; + } + _net_version() { + return this.getChainId().toString(10); + } + _eth_chainId() { + return (0, Jr.hexStringFromIntNumber)(this.getChainId()); + } + getChainId() { + let e = this._storage.getItem($Je); + if (!e) return (0, Jr.ensureIntNumber)(this._chainIdFromOpts); + let t = parseInt(e, 10); + return (0, Jr.ensureIntNumber)(t); + } + async _eth_requestAccounts() { + var e; + if ( + ((e = this.diagnostic) === null || + e === void 0 || + e.log(F$.EVENTS.ETH_ACCOUNTS_STATE, { + method: "provider::_eth_requestAccounts", + addresses_length: this._addresses.length, + sessionIdHash: this._relay + ? GJe.Session.hash(this._relay.session.id) + : void 0, + }), + this._addresses.length > 0) + ) + return Promise.resolve({ + jsonrpc: "2.0", + id: 0, + result: this._addresses, + }); + let t; + try { + t = await (await this.initializeRelay()).requestEthereumAccounts() + .promise; + } catch (n) { + throw typeof n.message == "string" && + n.message.match(/(denied|rejected)/i) + ? mc.ethErrors.provider.userRejectedRequest( + "User denied account authorization" + ) + : n; + } + if (!t.result) throw new Error("accounts received is empty"); + return ( + this._setAddresses(t.result), + this.isLedger || + this.isCoinbaseBrowser || + (await this.switchEthereumChain(this.getChainId())), + { jsonrpc: "2.0", id: 0, result: this._addresses } + ); + } + _eth_sign(e) { + this._requireAuthorization(); + let t = (0, Jr.ensureAddressString)(e[0]), + n = (0, Jr.ensureBuffer)(e[1]); + return this._signEthereumMessage(n, t, !1); + } + _eth_ecRecover(e) { + let t = (0, Jr.ensureBuffer)(e[0]), + n = (0, Jr.ensureBuffer)(e[1]); + return this._ethereumAddressFromSignedMessage(t, n, !1); + } + _personal_sign(e) { + this._requireAuthorization(); + let t = (0, Jr.ensureBuffer)(e[0]), + n = (0, Jr.ensureAddressString)(e[1]); + return this._signEthereumMessage(t, n, !0); + } + _personal_ecRecover(e) { + let t = (0, Jr.ensureBuffer)(e[0]), + n = (0, Jr.ensureBuffer)(e[1]); + return this._ethereumAddressFromSignedMessage(t, n, !0); + } + async _eth_signTransaction(e) { + this._requireAuthorization(); + let t = this._prepareTransactionParams(e[0] || {}); + try { + return { + jsonrpc: "2.0", + id: 0, + result: ( + await (await this.initializeRelay()).signEthereumTransaction(t) + .promise + ).result, + }; + } catch (n) { + throw typeof n.message == "string" && + n.message.match(/(denied|rejected)/i) + ? mc.ethErrors.provider.userRejectedRequest( + "User denied transaction signature" + ) + : n; + } + } + async _eth_sendRawTransaction(e) { + let t = (0, Jr.ensureBuffer)(e[0]); + return { + jsonrpc: "2.0", + id: 0, + result: ( + await ( + await this.initializeRelay() + ).submitEthereumTransaction(t, this.getChainId()).promise + ).result, + }; + } + async _eth_sendTransaction(e) { + this._requireAuthorization(); + let t = this._prepareTransactionParams(e[0] || {}); + try { + return { + jsonrpc: "2.0", + id: 0, + result: ( + await ( + await this.initializeRelay() + ).signAndSubmitEthereumTransaction(t).promise + ).result, + }; + } catch (n) { + throw typeof n.message == "string" && + n.message.match(/(denied|rejected)/i) + ? mc.ethErrors.provider.userRejectedRequest( + "User denied transaction signature" + ) + : n; + } + } + async _eth_signTypedData_v1(e) { + this._requireAuthorization(); + let t = (0, Jr.ensureParsedJSONObject)(e[0]), + n = (0, Jr.ensureAddressString)(e[1]); + this._ensureKnownAddress(n); + let a = W$.default.hashForSignTypedDataLegacy({ data: t }), + i = JSON.stringify(t, null, 2); + return this._signEthereumMessage(a, n, !1, i); + } + async _eth_signTypedData_v3(e) { + this._requireAuthorization(); + let t = (0, Jr.ensureAddressString)(e[0]), + n = (0, Jr.ensureParsedJSONObject)(e[1]); + this._ensureKnownAddress(t); + let a = W$.default.hashForSignTypedData_v3({ data: n }), + i = JSON.stringify(n, null, 2); + return this._signEthereumMessage(a, t, !1, i); + } + async _eth_signTypedData_v4(e) { + this._requireAuthorization(); + let t = (0, Jr.ensureAddressString)(e[0]), + n = (0, Jr.ensureParsedJSONObject)(e[1]); + this._ensureKnownAddress(t); + let a = W$.default.hashForSignTypedData_v4({ data: n }), + i = JSON.stringify(n, null, 2); + return this._signEthereumMessage(a, t, !1, i); + } + async _cbwallet_arbitrary(e) { + let t = e[0], + n = e[1]; + if (typeof n != "string") + throw new Error("parameter must be a string"); + if (typeof t != "object" || t === null) + throw new Error("parameter must be an object"); + return { + jsonrpc: "2.0", + id: 0, + result: await this.genericRequest(t, n), + }; + } + async _wallet_addEthereumChain(e) { + var t, n, a, i; + let s = e[0]; + if ( + ((t = s.rpcUrls) === null || t === void 0 ? void 0 : t.length) === 0 + ) + return { + jsonrpc: "2.0", + id: 0, + error: { code: 2, message: "please pass in at least 1 rpcUrl" }, + }; + if (!s.chainName || s.chainName.trim() === "") + throw mc.ethErrors.provider.custom({ + code: 0, + message: "chainName is a required field", + }); + if (!s.nativeCurrency) + throw mc.ethErrors.provider.custom({ + code: 0, + message: "nativeCurrency is a required field", + }); + let c = parseInt(s.chainId, 16); + return (await this.addEthereumChain( + c, + (n = s.rpcUrls) !== null && n !== void 0 ? n : [], + (a = s.blockExplorerUrls) !== null && a !== void 0 ? a : [], + s.chainName, + (i = s.iconUrls) !== null && i !== void 0 ? i : [], + s.nativeCurrency + )) + ? { jsonrpc: "2.0", id: 0, result: null } + : { + jsonrpc: "2.0", + id: 0, + error: { code: 2, message: "unable to add ethereum chain" }, + }; + } + async _wallet_switchEthereumChain(e) { + let t = e[0]; + return ( + await this.switchEthereumChain(parseInt(t.chainId, 16)), + { jsonrpc: "2.0", id: 0, result: null } + ); + } + async _wallet_watchAsset(e) { + let t = Array.isArray(e) ? e[0] : e; + if (!t.type) + throw mc.ethErrors.rpc.invalidParams({ + message: "Type is required", + }); + if (t?.type !== "ERC20") + throw mc.ethErrors.rpc.invalidParams({ + message: `Asset of type '${t.type}' is not supported`, + }); + if (!t?.options) + throw mc.ethErrors.rpc.invalidParams({ + message: "Options are required", + }); + if (!t?.options.address) + throw mc.ethErrors.rpc.invalidParams({ + message: "Address is required", + }); + let n = this.getChainId(), + { address: a, symbol: i, image: s, decimals: c } = t.options; + return { + jsonrpc: "2.0", + id: 0, + result: await this.watchAsset(t.type, a, i, c, s, n), + }; + } + _eth_uninstallFilter(e) { + let t = (0, Jr.ensureHexString)(e[0]); + return this._filterPolyfill.uninstallFilter(t); + } + async _eth_newFilter(e) { + let t = e[0]; + return { + jsonrpc: "2.0", + id: 0, + result: await this._filterPolyfill.newFilter(t), + }; + } + async _eth_newBlockFilter() { + return { + jsonrpc: "2.0", + id: 0, + result: await this._filterPolyfill.newBlockFilter(), + }; + } + async _eth_newPendingTransactionFilter() { + return { + jsonrpc: "2.0", + id: 0, + result: await this._filterPolyfill.newPendingTransactionFilter(), + }; + } + _eth_getFilterChanges(e) { + let t = (0, Jr.ensureHexString)(e[0]); + return this._filterPolyfill.getFilterChanges(t); + } + _eth_getFilterLogs(e) { + let t = (0, Jr.ensureHexString)(e[0]); + return this._filterPolyfill.getFilterLogs(t); + } + initializeRelay() { + return this._relay + ? Promise.resolve(this._relay) + : this._relayProvider().then( + (e) => ( + e.setAccountsCallback((t, n) => this._setAddresses(t, n)), + e.setChainCallback((t, n) => { + this.updateProviderInfo(n, parseInt(t, 10)); + }), + e.setDappDefaultChainCallback(this._chainIdFromOpts), + (this._relay = e), + e + ) + ); + } + }; + Z2.CoinbaseWalletProvider = U$; + }); + var Cu = {}; + gd(Cu, { + Component: () => L6, + Fragment: () => F6, + cloneElement: () => Tbr, + createContext: () => Ebr, + createElement: () => oZe, + createRef: () => bbr, + h: () => oZe, + hydrate: () => bZe, + isValidElement: () => rZe, + options: () => wr, + render: () => gZe, + toChildArray: () => dZe, + }); + function Yf(r, e) { + for (var t in e) r[t] = e[t]; + return r; + } + function sZe(r) { + var e = r.parentNode; + e && e.removeChild(r); + } + function oZe(r, e, t) { + var n, + a, + i, + s = {}; + for (i in e) + i == "key" ? (n = e[i]) : i == "ref" ? (a = e[i]) : (s[i] = e[i]); + if ( + (arguments.length > 2 && + (s.children = arguments.length > 3 ? q6.call(arguments, 2) : t), + typeof r == "function" && r.defaultProps != null) + ) + for (i in r.defaultProps) s[i] === void 0 && (s[i] = r.defaultProps[i]); + return O6(r, s, n, a, null); + } + function O6(r, e, t, n, a) { + var i = { + type: r, + props: e, + key: t, + ref: n, + __k: null, + __: null, + __b: 0, + __e: null, + __d: void 0, + __c: null, + __h: null, + constructor: void 0, + __v: a ?? ++tZe, + }; + return a == null && wr.vnode != null && wr.vnode(i), i; + } + function bbr() { + return { current: null }; + } + function F6(r) { + return r.children; + } + function vbr(r, e, t, n, a) { + var i; + for (i in t) + i === "children" || i === "key" || i in e || $7(r, i, null, t[i], n); + for (i in e) + (a && typeof e[i] != "function") || + i === "children" || + i === "key" || + i === "value" || + i === "checked" || + t[i] === e[i] || + $7(r, i, e[i], t[i], n); + } + function QJe(r, e, t) { + e[0] === "-" + ? r.setProperty(e, t ?? "") + : (r[e] = + t == null ? "" : typeof t != "number" || gbr.test(e) ? t : t + "px"); + } + function $7(r, e, t, n, a) { + var i; + e: if (e === "style") + if (typeof t == "string") r.style.cssText = t; + else { + if ((typeof n == "string" && (r.style.cssText = n = ""), n)) + for (e in n) (t && e in t) || QJe(r.style, e, ""); + if (t) for (e in t) (n && t[e] === n[e]) || QJe(r.style, e, t[e]); + } + else if (e[0] === "o" && e[1] === "n") + (i = e !== (e = e.replace(/Capture$/, ""))), + (e = e.toLowerCase() in r ? e.toLowerCase().slice(2) : e.slice(2)), + r.l || (r.l = {}), + (r.l[e + i] = t), + t + ? n || r.addEventListener(e, i ? eZe : XJe, i) + : r.removeEventListener(e, i ? eZe : XJe, i); + else if (e !== "dangerouslySetInnerHTML") { + if (a) e = e.replace(/xlink(H|:h)/, "h").replace(/sName$/, "s"); + else if ( + e !== "width" && + e !== "height" && + e !== "href" && + e !== "list" && + e !== "form" && + e !== "tabIndex" && + e !== "download" && + e in r + ) + try { + r[e] = t ?? ""; + break e; + } catch {} + typeof t == "function" || + (t == null || (t === !1 && e.indexOf("-") == -1) + ? r.removeAttribute(e) + : r.setAttribute(e, t)); + } + } + function XJe(r) { + Q2 = !0; + try { + return this.l[r.type + !1](wr.event ? wr.event(r) : r); + } finally { + Q2 = !1; + } + } + function eZe(r) { + Q2 = !0; + try { + return this.l[r.type + !0](wr.event ? wr.event(r) : r); + } finally { + Q2 = !1; + } + } + function L6(r, e) { + (this.props = r), (this.context = e); + } + function D6(r, e) { + if (e == null) return r.__ ? D6(r.__, r.__.__k.indexOf(r) + 1) : null; + for (var t; e < r.__k.length; e++) + if ((t = r.__k[e]) != null && t.__e != null) return t.__e; + return typeof r.type == "function" ? D6(r) : null; + } + function cZe(r) { + var e, t; + if ((r = r.__) != null && r.__c != null) { + for (r.__e = r.__c.base = null, e = 0; e < r.__k.length; e++) + if ((t = r.__k[e]) != null && t.__e != null) { + r.__e = r.__c.base = t.__e; + break; + } + return cZe(r); + } + } + function wbr(r) { + Q2 ? setTimeout(r) : nZe(r); + } + function z$(r) { + ((!r.__d && (r.__d = !0) && bb.push(r) && !J7.__r++) || + ZJe !== wr.debounceRendering) && + ((ZJe = wr.debounceRendering) || wbr)(J7); + } + function J7() { + var r, e, t, n, a, i, s, c; + for ( + bb.sort(function (l, d) { + return l.__v.__b - d.__v.__b; + }); + (r = bb.shift()); + + ) + r.__d && + ((e = bb.length), + (n = void 0), + (a = void 0), + (s = (i = (t = r).__v).__e), + (c = t.__P) && + ((n = []), + ((a = Yf({}, i)).__v = i.__v + 1), + j$( + c, + i, + a, + t.__n, + c.ownerSVGElement !== void 0, + i.__h != null ? [s] : null, + n, + s ?? D6(i), + i.__h + ), + fZe(n, i), + i.__e != s && cZe(i)), + bb.length > e && + bb.sort(function (l, d) { + return l.__v.__b - d.__v.__b; + })); + J7.__r = 0; + } + function uZe(r, e, t, n, a, i, s, c, l, d) { + var m, + w, + C, + I, + k, + O, + D, + W = (n && n.__k) || iZe, + H = W.length; + for (t.__k = [], m = 0; m < e.length; m++) + if ( + (I = t.__k[m] = + (I = e[m]) == null || typeof I == "boolean" + ? null + : typeof I == "string" || + typeof I == "number" || + typeof I == "bigint" + ? O6(null, I, null, null, I) + : Array.isArray(I) + ? O6(F6, { children: I }, null, null, null) + : I.__b > 0 + ? O6(I.type, I.props, I.key, I.ref ? I.ref : null, I.__v) + : I) != null + ) { + if ( + ((I.__ = t), + (I.__b = t.__b + 1), + (C = W[m]) === null || (C && I.key == C.key && I.type === C.type)) + ) + W[m] = void 0; + else + for (w = 0; w < H; w++) { + if ((C = W[w]) && I.key == C.key && I.type === C.type) { + W[w] = void 0; + break; + } + C = null; + } + j$(r, I, (C = C || Y7), a, i, s, c, l, d), + (k = I.__e), + (w = I.ref) && + C.ref != w && + (D || (D = []), + C.ref && D.push(C.ref, null, I), + D.push(w, I.__c || k, I)), + k != null + ? (O == null && (O = k), + typeof I.type == "function" && I.__k === C.__k + ? (I.__d = l = lZe(I, l, r)) + : (l = pZe(r, I, C, W, k, l)), + typeof t.type == "function" && (t.__d = l)) + : l && C.__e == l && l.parentNode != r && (l = D6(C)); + } + for (t.__e = O, m = H; m--; ) + W[m] != null && + (typeof t.type == "function" && + W[m].__e != null && + W[m].__e == t.__d && + (t.__d = hZe(n).nextSibling), + yZe(W[m], W[m])); + if (D) for (m = 0; m < D.length; m++) mZe(D[m], D[++m], D[++m]); + } + function lZe(r, e, t) { + for (var n, a = r.__k, i = 0; a && i < a.length; i++) + (n = a[i]) && + ((n.__ = r), + (e = + typeof n.type == "function" + ? lZe(n, e, t) + : pZe(t, n, n, a, n.__e, e))); + return e; + } + function dZe(r, e) { + return ( + (e = e || []), + r == null || + typeof r == "boolean" || + (Array.isArray(r) + ? r.some(function (t) { + dZe(t, e); + }) + : e.push(r)), + e + ); + } + function pZe(r, e, t, n, a, i) { + var s, c, l; + if (e.__d !== void 0) (s = e.__d), (e.__d = void 0); + else if (t == null || a != i || a.parentNode == null) + e: if (i == null || i.parentNode !== r) r.appendChild(a), (s = null); + else { + for (c = i, l = 0; (c = c.nextSibling) && l < n.length; l += 1) + if (c == a) break e; + r.insertBefore(a, i), (s = i); + } + return s !== void 0 ? s : a.nextSibling; + } + function hZe(r) { + var e, t, n; + if (r.type == null || typeof r.type == "string") return r.__e; + if (r.__k) { + for (e = r.__k.length - 1; e >= 0; e--) + if ((t = r.__k[e]) && (n = hZe(t))) return n; + } + return null; + } + function j$(r, e, t, n, a, i, s, c, l) { + var d, + m, + w, + C, + I, + k, + O, + D, + W, + H, + j, + V, + te, + $, + ae, + Y = e.type; + if (e.constructor !== void 0) return null; + t.__h != null && + ((l = t.__h), (c = e.__e = t.__e), (e.__h = null), (i = [c])), + (d = wr.__b) && d(e); + try { + e: if (typeof Y == "function") { + if ( + ((D = e.props), + (W = (d = Y.contextType) && n[d.__c]), + (H = d ? (W ? W.props.value : d.__) : n), + t.__c + ? (O = (m = e.__c = t.__c).__ = m.__E) + : ("prototype" in Y && Y.prototype.render + ? (e.__c = m = new Y(D, H)) + : ((e.__c = m = new L6(D, H)), + (m.constructor = Y), + (m.render = xbr)), + W && W.sub(m), + (m.props = D), + m.state || (m.state = {}), + (m.context = H), + (m.__n = n), + (w = m.__d = !0), + (m.__h = []), + (m._sb = [])), + m.__s == null && (m.__s = m.state), + Y.getDerivedStateFromProps != null && + (m.__s == m.state && (m.__s = Yf({}, m.__s)), + Yf(m.__s, Y.getDerivedStateFromProps(D, m.__s))), + (C = m.props), + (I = m.state), + (m.__v = e), + w) + ) + Y.getDerivedStateFromProps == null && + m.componentWillMount != null && + m.componentWillMount(), + m.componentDidMount != null && m.__h.push(m.componentDidMount); + else { + if ( + (Y.getDerivedStateFromProps == null && + D !== C && + m.componentWillReceiveProps != null && + m.componentWillReceiveProps(D, H), + (!m.__e && + m.shouldComponentUpdate != null && + m.shouldComponentUpdate(D, m.__s, H) === !1) || + e.__v === t.__v) + ) { + for ( + e.__v !== t.__v && + ((m.props = D), (m.state = m.__s), (m.__d = !1)), + e.__e = t.__e, + e.__k = t.__k, + e.__k.forEach(function (K) { + K && (K.__ = e); + }), + j = 0; + j < m._sb.length; + j++ + ) + m.__h.push(m._sb[j]); + (m._sb = []), m.__h.length && s.push(m); + break e; + } + m.componentWillUpdate != null && m.componentWillUpdate(D, m.__s, H), + m.componentDidUpdate != null && + m.__h.push(function () { + m.componentDidUpdate(C, I, k); + }); + } + if ( + ((m.context = H), + (m.props = D), + (m.__P = r), + (V = wr.__r), + (te = 0), + "prototype" in Y && Y.prototype.render) + ) { + for ( + m.state = m.__s, + m.__d = !1, + V && V(e), + d = m.render(m.props, m.state, m.context), + $ = 0; + $ < m._sb.length; + $++ + ) + m.__h.push(m._sb[$]); + m._sb = []; + } else + do + (m.__d = !1), + V && V(e), + (d = m.render(m.props, m.state, m.context)), + (m.state = m.__s); + while (m.__d && ++te < 25); + (m.state = m.__s), + m.getChildContext != null && (n = Yf(Yf({}, n), m.getChildContext())), + w || + m.getSnapshotBeforeUpdate == null || + (k = m.getSnapshotBeforeUpdate(C, I)), + (ae = + d != null && d.type === F6 && d.key == null ? d.props.children : d), + uZe(r, Array.isArray(ae) ? ae : [ae], e, t, n, a, i, s, c, l), + (m.base = e.__e), + (e.__h = null), + m.__h.length && s.push(m), + O && (m.__E = m.__ = null), + (m.__e = !1); + } else + i == null && e.__v === t.__v + ? ((e.__k = t.__k), (e.__e = t.__e)) + : (e.__e = _br(t.__e, e, t, n, a, i, s, l)); + (d = wr.diffed) && d(e); + } catch (K) { + (e.__v = null), + (l || i != null) && + ((e.__e = c), (e.__h = !!l), (i[i.indexOf(c)] = null)), + wr.__e(K, e, t); + } + } + function fZe(r, e) { + wr.__c && wr.__c(e, r), + r.some(function (t) { + try { + (r = t.__h), + (t.__h = []), + r.some(function (n) { + n.call(t); + }); + } catch (n) { + wr.__e(n, t.__v); + } + }); + } + function _br(r, e, t, n, a, i, s, c) { + var l, + d, + m, + w = t.props, + C = e.props, + I = e.type, + k = 0; + if ((I === "svg" && (a = !0), i != null)) { + for (; k < i.length; k++) + if ( + (l = i[k]) && + "setAttribute" in l == !!I && + (I ? l.localName === I : l.nodeType === 3) + ) { + (r = l), (i[k] = null); + break; + } + } + if (r == null) { + if (I === null) return document.createTextNode(C); + (r = a + ? document.createElementNS("http://www.w3.org/2000/svg", I) + : document.createElement(I, C.is && C)), + (i = null), + (c = !1); + } + if (I === null) w === C || (c && r.data === C) || (r.data = C); + else { + if ( + ((i = i && q6.call(r.childNodes)), + (d = (w = t.props || Y7).dangerouslySetInnerHTML), + (m = C.dangerouslySetInnerHTML), + !c) + ) { + if (i != null) + for (w = {}, k = 0; k < r.attributes.length; k++) + w[r.attributes[k].name] = r.attributes[k].value; + (m || d) && + ((m && ((d && m.__html == d.__html) || m.__html === r.innerHTML)) || + (r.innerHTML = (m && m.__html) || "")); + } + if ((vbr(r, C, w, a, c), m)) e.__k = []; + else if ( + ((k = e.props.children), + uZe( + r, + Array.isArray(k) ? k : [k], + e, + t, + n, + a && I !== "foreignObject", + i, + s, + i ? i[0] : t.__k && D6(t, 0), + c + ), + i != null) + ) + for (k = i.length; k--; ) i[k] != null && sZe(i[k]); + c || + ("value" in C && + (k = C.value) !== void 0 && + (k !== r.value || + (I === "progress" && !k) || + (I === "option" && k !== w.value)) && + $7(r, "value", k, w.value, !1), + "checked" in C && + (k = C.checked) !== void 0 && + k !== r.checked && + $7(r, "checked", k, w.checked, !1)); + } + return r; + } + function mZe(r, e, t) { + try { + typeof r == "function" ? r(e) : (r.current = e); + } catch (n) { + wr.__e(n, t); + } + } + function yZe(r, e, t) { + var n, a; + if ( + (wr.unmount && wr.unmount(r), + (n = r.ref) && ((n.current && n.current !== r.__e) || mZe(n, null, e)), + (n = r.__c) != null) + ) { + if (n.componentWillUnmount) + try { + n.componentWillUnmount(); + } catch (i) { + wr.__e(i, e); + } + (n.base = n.__P = null), (r.__c = void 0); + } + if ((n = r.__k)) + for (a = 0; a < n.length; a++) + n[a] && yZe(n[a], e, t || typeof r.type != "function"); + t || r.__e == null || sZe(r.__e), (r.__ = r.__e = r.__d = void 0); + } + function xbr(r, e, t) { + return this.constructor(r, t); + } + function gZe(r, e, t) { + var n, a, i; + wr.__ && wr.__(r, e), + (a = (n = typeof t == "function") ? null : (t && t.__k) || e.__k), + (i = []), + j$( + e, + (r = ((!n && t) || e).__k = oZe(F6, null, [r])), + a || Y7, + Y7, + e.ownerSVGElement !== void 0, + !n && t ? [t] : a ? null : e.firstChild ? q6.call(e.childNodes) : null, + i, + !n && t ? t : a ? a.__e : e.firstChild, + n + ), + fZe(i, r); + } + function bZe(r, e) { + gZe(r, e, bZe); + } + function Tbr(r, e, t) { + var n, + a, + i, + s = Yf({}, r.props); + for (i in e) + i == "key" ? (n = e[i]) : i == "ref" ? (a = e[i]) : (s[i] = e[i]); + return ( + arguments.length > 2 && + (s.children = arguments.length > 3 ? q6.call(arguments, 2) : t), + O6(r.type, s, n || r.key, a || r.ref, null) + ); + } + function Ebr(r, e) { + var t = { + __c: (e = "__cC" + aZe++), + __: r, + Consumer: function (n, a) { + return n.children(a); + }, + Provider: function (n) { + var a, i; + return ( + this.getChildContext || + ((a = []), + ((i = {})[e] = this), + (this.getChildContext = function () { + return i; + }), + (this.shouldComponentUpdate = function (s) { + this.props.value !== s.value && + a.some(function (c) { + (c.__e = !0), z$(c); + }); + }), + (this.sub = function (s) { + a.push(s); + var c = s.componentWillUnmount; + s.componentWillUnmount = function () { + a.splice(a.indexOf(s), 1), c && c.call(s); + }; + })), + n.children + ); + }, + }; + return (t.Provider.__ = t.Consumer.contextType = t); + } + var q6, + wr, + tZe, + rZe, + Q2, + bb, + ZJe, + nZe, + aZe, + Y7, + iZe, + gbr, + Wc = yt(() => { + _(); + x(); + (Y7 = {}), + (iZe = []), + (gbr = + /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i); + (q6 = iZe.slice), + (wr = { + __e: function (r, e, t, n) { + for (var a, i, s; (e = e.__); ) + if ((a = e.__c) && !a.__) + try { + if ( + ((i = a.constructor) && + i.getDerivedStateFromError != null && + (a.setState(i.getDerivedStateFromError(r)), (s = a.__d)), + a.componentDidCatch != null && + (a.componentDidCatch(r, n || {}), (s = a.__d)), + s) + ) + return (a.__E = a); + } catch (c) { + r = c; + } + throw r; + }, + }), + (tZe = 0), + (rZe = function (r) { + return r != null && r.constructor === void 0; + }), + (Q2 = !1), + (L6.prototype.setState = function (r, e) { + var t; + (t = + this.__s != null && this.__s !== this.state + ? this.__s + : (this.__s = Yf({}, this.state))), + typeof r == "function" && (r = r(Yf({}, t), this.props)), + r && Yf(t, r), + r != null && this.__v && (e && this._sb.push(e), z$(this)); + }), + (L6.prototype.forceUpdate = function (r) { + this.__v && ((this.__e = !0), r && this.__h.push(r), z$(this)); + }), + (L6.prototype.render = F6), + (bb = []), + (nZe = + typeof Promise == "function" + ? Promise.prototype.then.bind(Promise.resolve()) + : setTimeout), + (J7.__r = 0), + (aZe = 0); + }); + var X2 = N((K$) => { + "use strict"; + _(); + x(); + Object.defineProperty(K$, "__esModule", { value: !0 }); + function Cbr(r) { + return typeof r == "function"; + } + K$.isFunction = Cbr; + }); + var W6 = N((G$) => { + "use strict"; + _(); + x(); + Object.defineProperty(G$, "__esModule", { value: !0 }); + var V$ = !1; + G$.config = { + Promise: void 0, + set useDeprecatedSynchronousErrorHandling(r) { + if (r) { + var e = new Error(); + console.warn( + `DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: +` + e.stack + ); + } else + V$ && + console.log("RxJS: Back to a better error behavior. Thank you. <3"); + V$ = r; + }, + get useDeprecatedSynchronousErrorHandling() { + return V$; + }, + }; + }); + var Z7 = N((Y$) => { + "use strict"; + _(); + x(); + Object.defineProperty(Y$, "__esModule", { value: !0 }); + function Ibr(r) { + setTimeout(function () { + throw r; + }, 0); + } + Y$.hostReportError = Ibr; + }); + var J$ = N(($$) => { + "use strict"; + _(); + x(); + Object.defineProperty($$, "__esModule", { value: !0 }); + var Abr = W6(), + kbr = Z7(); + $$.empty = { + closed: !0, + next: function (r) {}, + error: function (r) { + if (Abr.config.useDeprecatedSynchronousErrorHandling) throw r; + kbr.hostReportError(r); + }, + complete: function () {}, + }; + }); + var Uc = N((Z$) => { + "use strict"; + _(); + x(); + Object.defineProperty(Z$, "__esModule", { value: !0 }); + Z$.isArray = (function () { + return ( + Array.isArray || + function (r) { + return r && typeof r.length == "number"; + } + ); + })(); + }); + var Q7 = N((Q$) => { + "use strict"; + _(); + x(); + Object.defineProperty(Q$, "__esModule", { value: !0 }); + function Sbr(r) { + return r !== null && typeof r == "object"; + } + Q$.isObject = Sbr; + }); + var eJ = N((X$) => { + "use strict"; + _(); + x(); + Object.defineProperty(X$, "__esModule", { value: !0 }); + var Mbr = (function () { + function r(e) { + return ( + Error.call(this), + (this.message = e + ? e.length + + ` errors occurred during unsubscription: +` + + e.map(function (t, n) { + return n + 1 + ") " + t.toString(); + }).join(` + `) + : ""), + (this.name = "UnsubscriptionError"), + (this.errors = e), + this + ); + } + return (r.prototype = Object.create(Error.prototype)), r; + })(); + X$.UnsubscriptionError = Mbr; + }); + var ws = N((tJ) => { + "use strict"; + _(); + x(); + Object.defineProperty(tJ, "__esModule", { value: !0 }); + var Pbr = Uc(), + Rbr = Q7(), + Bbr = X2(), + X7 = eJ(), + Nbr = (function () { + function r(e) { + (this.closed = !1), + (this._parentOrParents = null), + (this._subscriptions = null), + e && ((this._ctorUnsubscribe = !0), (this._unsubscribe = e)); + } + return ( + (r.prototype.unsubscribe = function () { + var e; + if (!this.closed) { + var t = this, + n = t._parentOrParents, + a = t._ctorUnsubscribe, + i = t._unsubscribe, + s = t._subscriptions; + if ( + ((this.closed = !0), + (this._parentOrParents = null), + (this._subscriptions = null), + n instanceof r) + ) + n.remove(this); + else if (n !== null) + for (var c = 0; c < n.length; ++c) { + var l = n[c]; + l.remove(this); + } + if (Bbr.isFunction(i)) { + a && (this._unsubscribe = void 0); + try { + i.call(this); + } catch (w) { + e = w instanceof X7.UnsubscriptionError ? vZe(w.errors) : [w]; + } + } + if (Pbr.isArray(s)) + for (var c = -1, d = s.length; ++c < d; ) { + var m = s[c]; + if (Rbr.isObject(m)) + try { + m.unsubscribe(); + } catch (C) { + (e = e || []), + C instanceof X7.UnsubscriptionError + ? (e = e.concat(vZe(C.errors))) + : e.push(C); + } + } + if (e) throw new X7.UnsubscriptionError(e); + } + }), + (r.prototype.add = function (e) { + var t = e; + if (!e) return r.EMPTY; + switch (typeof e) { + case "function": + t = new r(e); + case "object": + if ( + t === this || + t.closed || + typeof t.unsubscribe != "function" + ) + return t; + if (this.closed) return t.unsubscribe(), t; + if (!(t instanceof r)) { + var n = t; + (t = new r()), (t._subscriptions = [n]); + } + break; + default: + throw new Error( + "unrecognized teardown " + e + " added to Subscription." + ); + } + var a = t._parentOrParents; + if (a === null) t._parentOrParents = this; + else if (a instanceof r) { + if (a === this) return t; + t._parentOrParents = [a, this]; + } else if (a.indexOf(this) === -1) a.push(this); + else return t; + var i = this._subscriptions; + return i === null ? (this._subscriptions = [t]) : i.push(t), t; + }), + (r.prototype.remove = function (e) { + var t = this._subscriptions; + if (t) { + var n = t.indexOf(e); + n !== -1 && t.splice(n, 1); + } + }), + (r.EMPTY = (function (e) { + return (e.closed = !0), e; + })(new r())), + r + ); + })(); + tJ.Subscription = Nbr; + function vZe(r) { + return r.reduce(function (e, t) { + return e.concat(t instanceof X7.UnsubscriptionError ? t.errors : t); + }, []); + } + }); + var eB = N((U6) => { + "use strict"; + _(); + x(); + Object.defineProperty(U6, "__esModule", { value: !0 }); + U6.rxSubscriber = (function () { + return typeof Symbol == "function" + ? Symbol("rxSubscriber") + : "@@rxSubscriber_" + Math.random(); + })(); + U6.$$rxSubscriber = U6.rxSubscriber; + }); + var sr = N((t_) => { + "use strict"; + _(); + x(); + var _Ze = + (t_ && t_.__extends) || + (function () { + var r = function (e, t) { + return ( + (r = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (n, a) { + n.__proto__ = a; + }) || + function (n, a) { + for (var i in a) a.hasOwnProperty(i) && (n[i] = a[i]); + }), + r(e, t) + ); + }; + return function (e, t) { + r(e, t); + function n() { + this.constructor = e; + } + e.prototype = + t === null + ? Object.create(t) + : ((n.prototype = t.prototype), new n()); + }; + })(); + Object.defineProperty(t_, "__esModule", { value: !0 }); + var wZe = X2(), + rJ = J$(), + Obr = ws(), + Lbr = eB(), + e_ = W6(), + tB = Z7(), + xZe = (function (r) { + _Ze(e, r); + function e(t, n, a) { + var i = r.call(this) || this; + switch ( + ((i.syncErrorValue = null), + (i.syncErrorThrown = !1), + (i.syncErrorThrowable = !1), + (i.isStopped = !1), + arguments.length) + ) { + case 0: + i.destination = rJ.empty; + break; + case 1: + if (!t) { + i.destination = rJ.empty; + break; + } + if (typeof t == "object") { + t instanceof e + ? ((i.syncErrorThrowable = t.syncErrorThrowable), + (i.destination = t), + t.add(i)) + : ((i.syncErrorThrowable = !0), + (i.destination = new nJ(i, t))); + break; + } + default: + (i.syncErrorThrowable = !0), (i.destination = new nJ(i, t, n, a)); + break; + } + return i; + } + return ( + (e.prototype[Lbr.rxSubscriber] = function () { + return this; + }), + (e.create = function (t, n, a) { + var i = new e(t, n, a); + return (i.syncErrorThrowable = !1), i; + }), + (e.prototype.next = function (t) { + this.isStopped || this._next(t); + }), + (e.prototype.error = function (t) { + this.isStopped || ((this.isStopped = !0), this._error(t)); + }), + (e.prototype.complete = function () { + this.isStopped || ((this.isStopped = !0), this._complete()); + }), + (e.prototype.unsubscribe = function () { + this.closed || + ((this.isStopped = !0), r.prototype.unsubscribe.call(this)); + }), + (e.prototype._next = function (t) { + this.destination.next(t); + }), + (e.prototype._error = function (t) { + this.destination.error(t), this.unsubscribe(); + }), + (e.prototype._complete = function () { + this.destination.complete(), this.unsubscribe(); + }), + (e.prototype._unsubscribeAndRecycle = function () { + var t = this._parentOrParents; + return ( + (this._parentOrParents = null), + this.unsubscribe(), + (this.closed = !1), + (this.isStopped = !1), + (this._parentOrParents = t), + this + ); + }), + e + ); + })(Obr.Subscription); + t_.Subscriber = xZe; + var nJ = (function (r) { + _Ze(e, r); + function e(t, n, a, i) { + var s = r.call(this) || this; + s._parentSubscriber = t; + var c, + l = s; + return ( + wZe.isFunction(n) + ? (c = n) + : n && + ((c = n.next), + (a = n.error), + (i = n.complete), + n !== rJ.empty && + ((l = Object.create(n)), + wZe.isFunction(l.unsubscribe) && s.add(l.unsubscribe.bind(l)), + (l.unsubscribe = s.unsubscribe.bind(s)))), + (s._context = l), + (s._next = c), + (s._error = a), + (s._complete = i), + s + ); + } + return ( + (e.prototype.next = function (t) { + if (!this.isStopped && this._next) { + var n = this._parentSubscriber; + !e_.config.useDeprecatedSynchronousErrorHandling || + !n.syncErrorThrowable + ? this.__tryOrUnsub(this._next, t) + : this.__tryOrSetError(n, this._next, t) && this.unsubscribe(); + } + }), + (e.prototype.error = function (t) { + if (!this.isStopped) { + var n = this._parentSubscriber, + a = e_.config.useDeprecatedSynchronousErrorHandling; + if (this._error) + !a || !n.syncErrorThrowable + ? (this.__tryOrUnsub(this._error, t), this.unsubscribe()) + : (this.__tryOrSetError(n, this._error, t), this.unsubscribe()); + else if (n.syncErrorThrowable) + a + ? ((n.syncErrorValue = t), (n.syncErrorThrown = !0)) + : tB.hostReportError(t), + this.unsubscribe(); + else { + if ((this.unsubscribe(), a)) throw t; + tB.hostReportError(t); + } + } + }), + (e.prototype.complete = function () { + var t = this; + if (!this.isStopped) { + var n = this._parentSubscriber; + if (this._complete) { + var a = function () { + return t._complete.call(t._context); + }; + !e_.config.useDeprecatedSynchronousErrorHandling || + !n.syncErrorThrowable + ? (this.__tryOrUnsub(a), this.unsubscribe()) + : (this.__tryOrSetError(n, a), this.unsubscribe()); + } else this.unsubscribe(); + } + }), + (e.prototype.__tryOrUnsub = function (t, n) { + try { + t.call(this._context, n); + } catch (a) { + if ( + (this.unsubscribe(), + e_.config.useDeprecatedSynchronousErrorHandling) + ) + throw a; + tB.hostReportError(a); + } + }), + (e.prototype.__tryOrSetError = function (t, n, a) { + if (!e_.config.useDeprecatedSynchronousErrorHandling) + throw new Error("bad call"); + try { + n.call(this._context, a); + } catch (i) { + return e_.config.useDeprecatedSynchronousErrorHandling + ? ((t.syncErrorValue = i), (t.syncErrorThrown = !0), !0) + : (tB.hostReportError(i), !0); + } + return !1; + }), + (e.prototype._unsubscribe = function () { + var t = this._parentSubscriber; + (this._context = null), + (this._parentSubscriber = null), + t.unsubscribe(); + }), + e + ); + })(xZe); + t_.SafeSubscriber = nJ; + }); + var rB = N((aJ) => { + "use strict"; + _(); + x(); + Object.defineProperty(aJ, "__esModule", { value: !0 }); + var Dbr = sr(); + function qbr(r) { + for (; r; ) { + var e = r, + t = e.closed, + n = e.destination, + a = e.isStopped; + if (t || a) return !1; + n && n instanceof Dbr.Subscriber ? (r = n) : (r = null); + } + return !0; + } + aJ.canReportError = qbr; + }); + var EZe = N((sJ) => { + "use strict"; + _(); + x(); + Object.defineProperty(sJ, "__esModule", { value: !0 }); + var iJ = sr(), + TZe = eB(), + Fbr = J$(); + function Wbr(r, e, t) { + if (r) { + if (r instanceof iJ.Subscriber) return r; + if (r[TZe.rxSubscriber]) return r[TZe.rxSubscriber](); + } + return !r && !e && !t + ? new iJ.Subscriber(Fbr.empty) + : new iJ.Subscriber(r, e, t); + } + sJ.toSubscriber = Wbr; + }); + var vb = N((oJ) => { + "use strict"; + _(); + x(); + Object.defineProperty(oJ, "__esModule", { value: !0 }); + oJ.observable = (function () { + return ( + (typeof Symbol == "function" && Symbol.observable) || "@@observable" + ); + })(); + }); + var O0 = N((cJ) => { + "use strict"; + _(); + x(); + Object.defineProperty(cJ, "__esModule", { value: !0 }); + function Ubr(r) { + return r; + } + cJ.identity = Ubr; + }); + var aB = N((nB) => { + "use strict"; + _(); + x(); + Object.defineProperty(nB, "__esModule", { value: !0 }); + var Hbr = O0(); + function zbr() { + for (var r = [], e = 0; e < arguments.length; e++) r[e] = arguments[e]; + return CZe(r); + } + nB.pipe = zbr; + function CZe(r) { + return r.length === 0 + ? Hbr.identity + : r.length === 1 + ? r[0] + : function (t) { + return r.reduce(function (n, a) { + return a(n); + }, t); + }; + } + nB.pipeFromArray = CZe; + }); + var _n = N((uJ) => { + "use strict"; + _(); + x(); + Object.defineProperty(uJ, "__esModule", { value: !0 }); + var jbr = rB(), + Kbr = EZe(), + Vbr = vb(), + Gbr = aB(), + iB = W6(), + Ybr = (function () { + function r(e) { + (this._isScalar = !1), e && (this._subscribe = e); + } + return ( + (r.prototype.lift = function (e) { + var t = new r(); + return (t.source = this), (t.operator = e), t; + }), + (r.prototype.subscribe = function (e, t, n) { + var a = this.operator, + i = Kbr.toSubscriber(e, t, n); + if ( + (a + ? i.add(a.call(i, this.source)) + : i.add( + this.source || + (iB.config.useDeprecatedSynchronousErrorHandling && + !i.syncErrorThrowable) + ? this._subscribe(i) + : this._trySubscribe(i) + ), + iB.config.useDeprecatedSynchronousErrorHandling && + i.syncErrorThrowable && + ((i.syncErrorThrowable = !1), i.syncErrorThrown)) + ) + throw i.syncErrorValue; + return i; + }), + (r.prototype._trySubscribe = function (e) { + try { + return this._subscribe(e); + } catch (t) { + iB.config.useDeprecatedSynchronousErrorHandling && + ((e.syncErrorThrown = !0), (e.syncErrorValue = t)), + jbr.canReportError(e) ? e.error(t) : console.warn(t); + } + }), + (r.prototype.forEach = function (e, t) { + var n = this; + return ( + (t = IZe(t)), + new t(function (a, i) { + var s; + s = n.subscribe( + function (c) { + try { + e(c); + } catch (l) { + i(l), s && s.unsubscribe(); + } + }, + i, + a + ); + }) + ); + }), + (r.prototype._subscribe = function (e) { + var t = this.source; + return t && t.subscribe(e); + }), + (r.prototype[Vbr.observable] = function () { + return this; + }), + (r.prototype.pipe = function () { + for (var e = [], t = 0; t < arguments.length; t++) + e[t] = arguments[t]; + return e.length === 0 ? this : Gbr.pipeFromArray(e)(this); + }), + (r.prototype.toPromise = function (e) { + var t = this; + return ( + (e = IZe(e)), + new e(function (n, a) { + var i; + t.subscribe( + function (s) { + return (i = s); + }, + function (s) { + return a(s); + }, + function () { + return n(i); + } + ); + }) + ); + }), + (r.create = function (e) { + return new r(e); + }), + r + ); + })(); + uJ.Observable = Ybr; + function IZe(r) { + if ((r || (r = iB.config.Promise || Promise), !r)) + throw new Error("no Promise impl found"); + return r; + } + }); + var H6 = N((lJ) => { + "use strict"; + _(); + x(); + Object.defineProperty(lJ, "__esModule", { value: !0 }); + var $br = (function () { + function r() { + return ( + Error.call(this), + (this.message = "object unsubscribed"), + (this.name = "ObjectUnsubscribedError"), + this + ); + } + return (r.prototype = Object.create(Error.prototype)), r; + })(); + lJ.ObjectUnsubscribedError = $br; + }); + var dJ = N((z6) => { + "use strict"; + _(); + x(); + var Jbr = + (z6 && z6.__extends) || + (function () { + var r = function (e, t) { + return ( + (r = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (n, a) { + n.__proto__ = a; + }) || + function (n, a) { + for (var i in a) a.hasOwnProperty(i) && (n[i] = a[i]); + }), + r(e, t) + ); + }; + return function (e, t) { + r(e, t); + function n() { + this.constructor = e; + } + e.prototype = + t === null + ? Object.create(t) + : ((n.prototype = t.prototype), new n()); + }; + })(); + Object.defineProperty(z6, "__esModule", { value: !0 }); + var Zbr = ws(), + Qbr = (function (r) { + Jbr(e, r); + function e(t, n) { + var a = r.call(this) || this; + return (a.subject = t), (a.subscriber = n), (a.closed = !1), a; + } + return ( + (e.prototype.unsubscribe = function () { + if (!this.closed) { + this.closed = !0; + var t = this.subject, + n = t.observers; + if ( + ((this.subject = null), + !(!n || n.length === 0 || t.isStopped || t.closed)) + ) { + var a = n.indexOf(this.subscriber); + a !== -1 && n.splice(a, 1); + } + } + }), + e + ); + })(Zbr.Subscription); + z6.SubjectSubscription = Qbr; + }); + var yc = N((wb) => { + "use strict"; + _(); + x(); + var fJ = + (wb && wb.__extends) || + (function () { + var r = function (e, t) { + return ( + (r = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (n, a) { + n.__proto__ = a; + }) || + function (n, a) { + for (var i in a) a.hasOwnProperty(i) && (n[i] = a[i]); + }), + r(e, t) + ); + }; + return function (e, t) { + r(e, t); + function n() { + this.constructor = e; + } + e.prototype = + t === null + ? Object.create(t) + : ((n.prototype = t.prototype), new n()); + }; + })(); + Object.defineProperty(wb, "__esModule", { value: !0 }); + var AZe = _n(), + Xbr = sr(), + pJ = ws(), + j6 = H6(), + e1r = dJ(), + t1r = eB(), + kZe = (function (r) { + fJ(e, r); + function e(t) { + var n = r.call(this, t) || this; + return (n.destination = t), n; + } + return e; + })(Xbr.Subscriber); + wb.SubjectSubscriber = kZe; + var SZe = (function (r) { + fJ(e, r); + function e() { + var t = r.call(this) || this; + return ( + (t.observers = []), + (t.closed = !1), + (t.isStopped = !1), + (t.hasError = !1), + (t.thrownError = null), + t + ); + } + return ( + (e.prototype[t1r.rxSubscriber] = function () { + return new kZe(this); + }), + (e.prototype.lift = function (t) { + var n = new hJ(this, this); + return (n.operator = t), n; + }), + (e.prototype.next = function (t) { + if (this.closed) throw new j6.ObjectUnsubscribedError(); + if (!this.isStopped) + for ( + var n = this.observers, a = n.length, i = n.slice(), s = 0; + s < a; + s++ + ) + i[s].next(t); + }), + (e.prototype.error = function (t) { + if (this.closed) throw new j6.ObjectUnsubscribedError(); + (this.hasError = !0), (this.thrownError = t), (this.isStopped = !0); + for ( + var n = this.observers, a = n.length, i = n.slice(), s = 0; + s < a; + s++ + ) + i[s].error(t); + this.observers.length = 0; + }), + (e.prototype.complete = function () { + if (this.closed) throw new j6.ObjectUnsubscribedError(); + this.isStopped = !0; + for ( + var t = this.observers, n = t.length, a = t.slice(), i = 0; + i < n; + i++ + ) + a[i].complete(); + this.observers.length = 0; + }), + (e.prototype.unsubscribe = function () { + (this.isStopped = !0), (this.closed = !0), (this.observers = null); + }), + (e.prototype._trySubscribe = function (t) { + if (this.closed) throw new j6.ObjectUnsubscribedError(); + return r.prototype._trySubscribe.call(this, t); + }), + (e.prototype._subscribe = function (t) { + if (this.closed) throw new j6.ObjectUnsubscribedError(); + return this.hasError + ? (t.error(this.thrownError), pJ.Subscription.EMPTY) + : this.isStopped + ? (t.complete(), pJ.Subscription.EMPTY) + : (this.observers.push(t), new e1r.SubjectSubscription(this, t)); + }), + (e.prototype.asObservable = function () { + var t = new AZe.Observable(); + return (t.source = this), t; + }), + (e.create = function (t, n) { + return new hJ(t, n); + }), + e + ); + })(AZe.Observable); + wb.Subject = SZe; + var hJ = (function (r) { + fJ(e, r); + function e(t, n) { + var a = r.call(this) || this; + return (a.destination = t), (a.source = n), a; + } + return ( + (e.prototype.next = function (t) { + var n = this.destination; + n && n.next && n.next(t); + }), + (e.prototype.error = function (t) { + var n = this.destination; + n && n.error && this.destination.error(t); + }), + (e.prototype.complete = function () { + var t = this.destination; + t && t.complete && this.destination.complete(); + }), + (e.prototype._subscribe = function (t) { + var n = this.source; + return n ? this.source.subscribe(t) : pJ.Subscription.EMPTY; + }), + e + ); + })(SZe); + wb.AnonymousSubject = hJ; + }); + var sB = N((K6) => { + "use strict"; + _(); + x(); + var r1r = + (K6 && K6.__extends) || + (function () { + var r = function (e, t) { + return ( + (r = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (n, a) { + n.__proto__ = a; + }) || + function (n, a) { + for (var i in a) a.hasOwnProperty(i) && (n[i] = a[i]); + }), + r(e, t) + ); + }; + return function (e, t) { + r(e, t); + function n() { + this.constructor = e; + } + e.prototype = + t === null + ? Object.create(t) + : ((n.prototype = t.prototype), new n()); + }; + })(); + Object.defineProperty(K6, "__esModule", { value: !0 }); + var n1r = sr(); + function a1r() { + return function (e) { + return e.lift(new i1r(e)); + }; + } + K6.refCount = a1r; + var i1r = (function () { + function r(e) { + this.connectable = e; + } + return ( + (r.prototype.call = function (e, t) { + var n = this.connectable; + n._refCount++; + var a = new s1r(e, n), + i = t.subscribe(a); + return a.closed || (a.connection = n.connect()), i; + }), + r + ); + })(), + s1r = (function (r) { + r1r(e, r); + function e(t, n) { + var a = r.call(this, t) || this; + return (a.connectable = n), a; + } + return ( + (e.prototype._unsubscribe = function () { + var t = this.connectable; + if (!t) { + this.connection = null; + return; + } + this.connectable = null; + var n = t._refCount; + if (n <= 0) { + this.connection = null; + return; + } + if (((t._refCount = n - 1), n > 1)) { + this.connection = null; + return; + } + var a = this.connection, + i = t._connection; + (this.connection = null), i && (!a || i === a) && i.unsubscribe(); + }), + e + ); + })(n1r.Subscriber); + }); + var yJ = N((r_) => { + "use strict"; + _(); + x(); + var mJ = + (r_ && r_.__extends) || + (function () { + var r = function (e, t) { + return ( + (r = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (n, a) { + n.__proto__ = a; + }) || + function (n, a) { + for (var i in a) a.hasOwnProperty(i) && (n[i] = a[i]); + }), + r(e, t) + ); + }; + return function (e, t) { + r(e, t); + function n() { + this.constructor = e; + } + e.prototype = + t === null + ? Object.create(t) + : ((n.prototype = t.prototype), new n()); + }; + })(); + Object.defineProperty(r_, "__esModule", { value: !0 }); + var o1r = yc(), + c1r = _n(), + u1r = sr(), + MZe = ws(), + l1r = sB(), + PZe = (function (r) { + mJ(e, r); + function e(t, n) { + var a = r.call(this) || this; + return ( + (a.source = t), + (a.subjectFactory = n), + (a._refCount = 0), + (a._isComplete = !1), + a + ); + } + return ( + (e.prototype._subscribe = function (t) { + return this.getSubject().subscribe(t); + }), + (e.prototype.getSubject = function () { + var t = this._subject; + return ( + (!t || t.isStopped) && (this._subject = this.subjectFactory()), + this._subject + ); + }), + (e.prototype.connect = function () { + var t = this._connection; + return ( + t || + ((this._isComplete = !1), + (t = this._connection = new MZe.Subscription()), + t.add(this.source.subscribe(new d1r(this.getSubject(), this))), + t.closed && + ((this._connection = null), (t = MZe.Subscription.EMPTY))), + t + ); + }), + (e.prototype.refCount = function () { + return l1r.refCount()(this); + }), + e + ); + })(c1r.Observable); + r_.ConnectableObservable = PZe; + r_.connectableObservableDescriptor = (function () { + var r = PZe.prototype; + return { + operator: { value: null }, + _refCount: { value: 0, writable: !0 }, + _subject: { value: null, writable: !0 }, + _connection: { value: null, writable: !0 }, + _subscribe: { value: r._subscribe }, + _isComplete: { value: r._isComplete, writable: !0 }, + getSubject: { value: r.getSubject }, + connect: { value: r.connect }, + refCount: { value: r.refCount }, + }; + })(); + var d1r = (function (r) { + mJ(e, r); + function e(t, n) { + var a = r.call(this, t) || this; + return (a.connectable = n), a; + } + return ( + (e.prototype._error = function (t) { + this._unsubscribe(), r.prototype._error.call(this, t); + }), + (e.prototype._complete = function () { + (this.connectable._isComplete = !0), + this._unsubscribe(), + r.prototype._complete.call(this); + }), + (e.prototype._unsubscribe = function () { + var t = this.connectable; + if (t) { + this.connectable = null; + var n = t._connection; + (t._refCount = 0), + (t._subject = null), + (t._connection = null), + n && n.unsubscribe(); + } + }), + e + ); + })(o1r.SubjectSubscriber), + Z0n = (function () { + function r(e) { + this.connectable = e; + } + return ( + (r.prototype.call = function (e, t) { + var n = this.connectable; + n._refCount++; + var a = new p1r(e, n), + i = t.subscribe(a); + return a.closed || (a.connection = n.connect()), i; + }), + r + ); + })(), + p1r = (function (r) { + mJ(e, r); + function e(t, n) { + var a = r.call(this, t) || this; + return (a.connectable = n), a; + } + return ( + (e.prototype._unsubscribe = function () { + var t = this.connectable; + if (!t) { + this.connection = null; + return; + } + this.connectable = null; + var n = t._refCount; + if (n <= 0) { + this.connection = null; + return; + } + if (((t._refCount = n - 1), n > 1)) { + this.connection = null; + return; + } + var a = this.connection, + i = t._connection; + (this.connection = null), i && (!a || i === a) && i.unsubscribe(); + }), + e + ); + })(u1r.Subscriber); + }); + var bJ = N((n_) => { + "use strict"; + _(); + x(); + var oB = + (n_ && n_.__extends) || + (function () { + var r = function (e, t) { + return ( + (r = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (n, a) { + n.__proto__ = a; + }) || + function (n, a) { + for (var i in a) a.hasOwnProperty(i) && (n[i] = a[i]); + }), + r(e, t) + ); + }; + return function (e, t) { + r(e, t); + function n() { + this.constructor = e; + } + e.prototype = + t === null + ? Object.create(t) + : ((n.prototype = t.prototype), new n()); + }; + })(); + Object.defineProperty(n_, "__esModule", { value: !0 }); + var RZe = sr(), + BZe = ws(), + h1r = _n(), + f1r = yc(); + function m1r(r, e, t, n) { + return function (a) { + return a.lift(new y1r(r, e, t, n)); + }; + } + n_.groupBy = m1r; + var y1r = (function () { + function r(e, t, n, a) { + (this.keySelector = e), + (this.elementSelector = t), + (this.durationSelector = n), + (this.subjectSelector = a); + } + return ( + (r.prototype.call = function (e, t) { + return t.subscribe( + new g1r( + e, + this.keySelector, + this.elementSelector, + this.durationSelector, + this.subjectSelector + ) + ); + }), + r + ); + })(), + g1r = (function (r) { + oB(e, r); + function e(t, n, a, i, s) { + var c = r.call(this, t) || this; + return ( + (c.keySelector = n), + (c.elementSelector = a), + (c.durationSelector = i), + (c.subjectSelector = s), + (c.groups = null), + (c.attemptedToUnsubscribe = !1), + (c.count = 0), + c + ); + } + return ( + (e.prototype._next = function (t) { + var n; + try { + n = this.keySelector(t); + } catch (a) { + this.error(a); + return; + } + this._group(t, n); + }), + (e.prototype._group = function (t, n) { + var a = this.groups; + a || (a = this.groups = new Map()); + var i = a.get(n), + s; + if (this.elementSelector) + try { + s = this.elementSelector(t); + } catch (d) { + this.error(d); + } + else s = t; + if (!i) { + (i = this.subjectSelector + ? this.subjectSelector() + : new f1r.Subject()), + a.set(n, i); + var c = new gJ(n, i, this); + if ((this.destination.next(c), this.durationSelector)) { + var l = void 0; + try { + l = this.durationSelector(new gJ(n, i)); + } catch (d) { + this.error(d); + return; + } + this.add(l.subscribe(new b1r(n, i, this))); + } + } + i.closed || i.next(s); + }), + (e.prototype._error = function (t) { + var n = this.groups; + n && + (n.forEach(function (a, i) { + a.error(t); + }), + n.clear()), + this.destination.error(t); + }), + (e.prototype._complete = function () { + var t = this.groups; + t && + (t.forEach(function (n, a) { + n.complete(); + }), + t.clear()), + this.destination.complete(); + }), + (e.prototype.removeGroup = function (t) { + this.groups.delete(t); + }), + (e.prototype.unsubscribe = function () { + this.closed || + ((this.attemptedToUnsubscribe = !0), + this.count === 0 && r.prototype.unsubscribe.call(this)); + }), + e + ); + })(RZe.Subscriber), + b1r = (function (r) { + oB(e, r); + function e(t, n, a) { + var i = r.call(this, n) || this; + return (i.key = t), (i.group = n), (i.parent = a), i; + } + return ( + (e.prototype._next = function (t) { + this.complete(); + }), + (e.prototype._unsubscribe = function () { + var t = this, + n = t.parent, + a = t.key; + (this.key = this.parent = null), n && n.removeGroup(a); + }), + e + ); + })(RZe.Subscriber), + gJ = (function (r) { + oB(e, r); + function e(t, n, a) { + var i = r.call(this) || this; + return ( + (i.key = t), (i.groupSubject = n), (i.refCountSubscription = a), i + ); + } + return ( + (e.prototype._subscribe = function (t) { + var n = new BZe.Subscription(), + a = this, + i = a.refCountSubscription, + s = a.groupSubject; + return ( + i && !i.closed && n.add(new v1r(i)), n.add(s.subscribe(t)), n + ); + }), + e + ); + })(h1r.Observable); + n_.GroupedObservable = gJ; + var v1r = (function (r) { + oB(e, r); + function e(t) { + var n = r.call(this) || this; + return (n.parent = t), t.count++, n; + } + return ( + (e.prototype.unsubscribe = function () { + var t = this.parent; + !t.closed && + !this.closed && + (r.prototype.unsubscribe.call(this), + (t.count -= 1), + t.count === 0 && t.attemptedToUnsubscribe && t.unsubscribe()); + }), + e + ); + })(BZe.Subscription); + }); + var vJ = N((V6) => { + "use strict"; + _(); + x(); + var w1r = + (V6 && V6.__extends) || + (function () { + var r = function (e, t) { + return ( + (r = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (n, a) { + n.__proto__ = a; + }) || + function (n, a) { + for (var i in a) a.hasOwnProperty(i) && (n[i] = a[i]); + }), + r(e, t) + ); + }; + return function (e, t) { + r(e, t); + function n() { + this.constructor = e; + } + e.prototype = + t === null + ? Object.create(t) + : ((n.prototype = t.prototype), new n()); + }; + })(); + Object.defineProperty(V6, "__esModule", { value: !0 }); + var _1r = yc(), + x1r = H6(), + T1r = (function (r) { + w1r(e, r); + function e(t) { + var n = r.call(this) || this; + return (n._value = t), n; + } + return ( + Object.defineProperty(e.prototype, "value", { + get: function () { + return this.getValue(); + }, + enumerable: !0, + configurable: !0, + }), + (e.prototype._subscribe = function (t) { + var n = r.prototype._subscribe.call(this, t); + return n && !n.closed && t.next(this._value), n; + }), + (e.prototype.getValue = function () { + if (this.hasError) throw this.thrownError; + if (this.closed) throw new x1r.ObjectUnsubscribedError(); + return this._value; + }), + (e.prototype.next = function (t) { + r.prototype.next.call(this, (this._value = t)); + }), + e + ); + })(_1r.Subject); + V6.BehaviorSubject = T1r; + }); + var NZe = N((G6) => { + "use strict"; + _(); + x(); + var E1r = + (G6 && G6.__extends) || + (function () { + var r = function (e, t) { + return ( + (r = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (n, a) { + n.__proto__ = a; + }) || + function (n, a) { + for (var i in a) a.hasOwnProperty(i) && (n[i] = a[i]); + }), + r(e, t) + ); + }; + return function (e, t) { + r(e, t); + function n() { + this.constructor = e; + } + e.prototype = + t === null + ? Object.create(t) + : ((n.prototype = t.prototype), new n()); + }; + })(); + Object.defineProperty(G6, "__esModule", { value: !0 }); + var C1r = ws(), + I1r = (function (r) { + E1r(e, r); + function e(t, n) { + return r.call(this) || this; + } + return ( + (e.prototype.schedule = function (t, n) { + return n === void 0 && (n = 0), this; + }), + e + ); + })(C1r.Subscription); + G6.Action = I1r; + }); + var a_ = N((Y6) => { + "use strict"; + _(); + x(); + var A1r = + (Y6 && Y6.__extends) || + (function () { + var r = function (e, t) { + return ( + (r = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (n, a) { + n.__proto__ = a; + }) || + function (n, a) { + for (var i in a) a.hasOwnProperty(i) && (n[i] = a[i]); + }), + r(e, t) + ); + }; + return function (e, t) { + r(e, t); + function n() { + this.constructor = e; + } + e.prototype = + t === null + ? Object.create(t) + : ((n.prototype = t.prototype), new n()); + }; + })(); + Object.defineProperty(Y6, "__esModule", { value: !0 }); + var k1r = NZe(), + S1r = (function (r) { + A1r(e, r); + function e(t, n) { + var a = r.call(this, t, n) || this; + return (a.scheduler = t), (a.work = n), (a.pending = !1), a; + } + return ( + (e.prototype.schedule = function (t, n) { + if ((n === void 0 && (n = 0), this.closed)) return this; + this.state = t; + var a = this.id, + i = this.scheduler; + return ( + a != null && (this.id = this.recycleAsyncId(i, a, n)), + (this.pending = !0), + (this.delay = n), + (this.id = this.id || this.requestAsyncId(i, this.id, n)), + this + ); + }), + (e.prototype.requestAsyncId = function (t, n, a) { + return ( + a === void 0 && (a = 0), setInterval(t.flush.bind(t, this), a) + ); + }), + (e.prototype.recycleAsyncId = function (t, n, a) { + if ( + (a === void 0 && (a = 0), + a !== null && this.delay === a && this.pending === !1) + ) + return n; + clearInterval(n); + }), + (e.prototype.execute = function (t, n) { + if (this.closed) return new Error("executing a cancelled action"); + this.pending = !1; + var a = this._execute(t, n); + if (a) return a; + this.pending === !1 && + this.id != null && + (this.id = this.recycleAsyncId(this.scheduler, this.id, null)); + }), + (e.prototype._execute = function (t, n) { + var a = !1, + i = void 0; + try { + this.work(t); + } catch (s) { + (a = !0), (i = (!!s && s) || new Error(s)); + } + if (a) return this.unsubscribe(), i; + }), + (e.prototype._unsubscribe = function () { + var t = this.id, + n = this.scheduler, + a = n.actions, + i = a.indexOf(this); + (this.work = null), + (this.state = null), + (this.pending = !1), + (this.scheduler = null), + i !== -1 && a.splice(i, 1), + t != null && (this.id = this.recycleAsyncId(n, t, null)), + (this.delay = null); + }), + e + ); + })(k1r.Action); + Y6.AsyncAction = S1r; + }); + var OZe = N(($6) => { + "use strict"; + _(); + x(); + var M1r = + ($6 && $6.__extends) || + (function () { + var r = function (e, t) { + return ( + (r = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (n, a) { + n.__proto__ = a; + }) || + function (n, a) { + for (var i in a) a.hasOwnProperty(i) && (n[i] = a[i]); + }), + r(e, t) + ); + }; + return function (e, t) { + r(e, t); + function n() { + this.constructor = e; + } + e.prototype = + t === null + ? Object.create(t) + : ((n.prototype = t.prototype), new n()); + }; + })(); + Object.defineProperty($6, "__esModule", { value: !0 }); + var P1r = a_(), + R1r = (function (r) { + M1r(e, r); + function e(t, n) { + var a = r.call(this, t, n) || this; + return (a.scheduler = t), (a.work = n), a; + } + return ( + (e.prototype.schedule = function (t, n) { + return ( + n === void 0 && (n = 0), + n > 0 + ? r.prototype.schedule.call(this, t, n) + : ((this.delay = n), + (this.state = t), + this.scheduler.flush(this), + this) + ); + }), + (e.prototype.execute = function (t, n) { + return n > 0 || this.closed + ? r.prototype.execute.call(this, t, n) + : this._execute(t, n); + }), + (e.prototype.requestAsyncId = function (t, n, a) { + return ( + a === void 0 && (a = 0), + (a !== null && a > 0) || (a === null && this.delay > 0) + ? r.prototype.requestAsyncId.call(this, t, n, a) + : t.flush(this) + ); + }), + e + ); + })(P1r.AsyncAction); + $6.QueueAction = R1r; + }); + var _J = N((wJ) => { + "use strict"; + _(); + x(); + Object.defineProperty(wJ, "__esModule", { value: !0 }); + var B1r = (function () { + function r(e, t) { + t === void 0 && (t = r.now), (this.SchedulerAction = e), (this.now = t); + } + return ( + (r.prototype.schedule = function (e, t, n) { + return ( + t === void 0 && (t = 0), + new this.SchedulerAction(this, e).schedule(n, t) + ); + }), + (r.now = function () { + return Date.now(); + }), + r + ); + })(); + wJ.Scheduler = B1r; + }); + var i_ = N((J6) => { + "use strict"; + _(); + x(); + var N1r = + (J6 && J6.__extends) || + (function () { + var r = function (e, t) { + return ( + (r = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (n, a) { + n.__proto__ = a; + }) || + function (n, a) { + for (var i in a) a.hasOwnProperty(i) && (n[i] = a[i]); + }), + r(e, t) + ); + }; + return function (e, t) { + r(e, t); + function n() { + this.constructor = e; + } + e.prototype = + t === null + ? Object.create(t) + : ((n.prototype = t.prototype), new n()); + }; + })(); + Object.defineProperty(J6, "__esModule", { value: !0 }); + var LZe = _J(), + O1r = (function (r) { + N1r(e, r); + function e(t, n) { + n === void 0 && (n = LZe.Scheduler.now); + var a = + r.call(this, t, function () { + return e.delegate && e.delegate !== a ? e.delegate.now() : n(); + }) || this; + return (a.actions = []), (a.active = !1), (a.scheduled = void 0), a; + } + return ( + (e.prototype.schedule = function (t, n, a) { + return ( + n === void 0 && (n = 0), + e.delegate && e.delegate !== this + ? e.delegate.schedule(t, n, a) + : r.prototype.schedule.call(this, t, n, a) + ); + }), + (e.prototype.flush = function (t) { + var n = this.actions; + if (this.active) { + n.push(t); + return; + } + var a; + this.active = !0; + do if ((a = t.execute(t.state, t.delay))) break; + while ((t = n.shift())); + if (((this.active = !1), a)) { + for (; (t = n.shift()); ) t.unsubscribe(); + throw a; + } + }), + e + ); + })(LZe.Scheduler); + J6.AsyncScheduler = O1r; + }); + var DZe = N((Z6) => { + "use strict"; + _(); + x(); + var L1r = + (Z6 && Z6.__extends) || + (function () { + var r = function (e, t) { + return ( + (r = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (n, a) { + n.__proto__ = a; + }) || + function (n, a) { + for (var i in a) a.hasOwnProperty(i) && (n[i] = a[i]); + }), + r(e, t) + ); + }; + return function (e, t) { + r(e, t); + function n() { + this.constructor = e; + } + e.prototype = + t === null + ? Object.create(t) + : ((n.prototype = t.prototype), new n()); + }; + })(); + Object.defineProperty(Z6, "__esModule", { value: !0 }); + var D1r = i_(), + q1r = (function (r) { + L1r(e, r); + function e() { + return (r !== null && r.apply(this, arguments)) || this; + } + return e; + })(D1r.AsyncScheduler); + Z6.QueueScheduler = q1r; + }); + var xJ = N((Q6) => { + "use strict"; + _(); + x(); + Object.defineProperty(Q6, "__esModule", { value: !0 }); + var F1r = OZe(), + W1r = DZe(); + Q6.queueScheduler = new W1r.QueueScheduler(F1r.QueueAction); + Q6.queue = Q6.queueScheduler; + }); + var lp = N((X6) => { + "use strict"; + _(); + x(); + Object.defineProperty(X6, "__esModule", { value: !0 }); + var qZe = _n(); + X6.EMPTY = new qZe.Observable(function (r) { + return r.complete(); + }); + function U1r(r) { + return r ? H1r(r) : X6.EMPTY; + } + X6.empty = U1r; + function H1r(r) { + return new qZe.Observable(function (e) { + return r.schedule(function () { + return e.complete(); + }); + }); + } + }); + var dp = N((TJ) => { + "use strict"; + _(); + x(); + Object.defineProperty(TJ, "__esModule", { value: !0 }); + function z1r(r) { + return r && typeof r.schedule == "function"; + } + TJ.isScheduler = z1r; + }); + var CJ = N((EJ) => { + "use strict"; + _(); + x(); + Object.defineProperty(EJ, "__esModule", { value: !0 }); + EJ.subscribeToArray = function (r) { + return function (e) { + for (var t = 0, n = r.length; t < n && !e.closed; t++) e.next(r[t]); + e.complete(); + }; + }; + }); + var cB = N((IJ) => { + "use strict"; + _(); + x(); + Object.defineProperty(IJ, "__esModule", { value: !0 }); + var j1r = _n(), + K1r = ws(); + function V1r(r, e) { + return new j1r.Observable(function (t) { + var n = new K1r.Subscription(), + a = 0; + return ( + n.add( + e.schedule(function () { + if (a === r.length) { + t.complete(); + return; + } + t.next(r[a++]), t.closed || n.add(this.schedule()); + }) + ), + n + ); + }); + } + IJ.scheduleArray = V1r; + }); + var s_ = N((AJ) => { + "use strict"; + _(); + x(); + Object.defineProperty(AJ, "__esModule", { value: !0 }); + var G1r = _n(), + Y1r = CJ(), + $1r = cB(); + function J1r(r, e) { + return e + ? $1r.scheduleArray(r, e) + : new G1r.Observable(Y1r.subscribeToArray(r)); + } + AJ.fromArray = J1r; + }); + var eE = N((kJ) => { + "use strict"; + _(); + x(); + Object.defineProperty(kJ, "__esModule", { value: !0 }); + var Z1r = dp(), + Q1r = s_(), + X1r = cB(); + function evr() { + for (var r = [], e = 0; e < arguments.length; e++) r[e] = arguments[e]; + var t = r[r.length - 1]; + return Z1r.isScheduler(t) + ? (r.pop(), X1r.scheduleArray(r, t)) + : Q1r.fromArray(r); + } + kJ.of = evr; + }); + var uB = N((SJ) => { + "use strict"; + _(); + x(); + Object.defineProperty(SJ, "__esModule", { value: !0 }); + var FZe = _n(); + function tvr(r, e) { + return e + ? new FZe.Observable(function (t) { + return e.schedule(rvr, 0, { error: r, subscriber: t }); + }) + : new FZe.Observable(function (t) { + return t.error(r); + }); + } + SJ.throwError = tvr; + function rvr(r) { + var e = r.error, + t = r.subscriber; + t.error(e); + } + }); + var rE = N((tE) => { + "use strict"; + _(); + x(); + Object.defineProperty(tE, "__esModule", { value: !0 }); + var nvr = lp(), + avr = eE(), + ivr = uB(), + svr; + (function (r) { + (r.NEXT = "N"), (r.ERROR = "E"), (r.COMPLETE = "C"); + })((svr = tE.NotificationKind || (tE.NotificationKind = {}))); + var ovr = (function () { + function r(e, t, n) { + (this.kind = e), + (this.value = t), + (this.error = n), + (this.hasValue = e === "N"); + } + return ( + (r.prototype.observe = function (e) { + switch (this.kind) { + case "N": + return e.next && e.next(this.value); + case "E": + return e.error && e.error(this.error); + case "C": + return e.complete && e.complete(); + } + }), + (r.prototype.do = function (e, t, n) { + var a = this.kind; + switch (a) { + case "N": + return e && e(this.value); + case "E": + return t && t(this.error); + case "C": + return n && n(); + } + }), + (r.prototype.accept = function (e, t, n) { + return e && typeof e.next == "function" + ? this.observe(e) + : this.do(e, t, n); + }), + (r.prototype.toObservable = function () { + var e = this.kind; + switch (e) { + case "N": + return avr.of(this.value); + case "E": + return ivr.throwError(this.error); + case "C": + return nvr.empty(); + } + throw new Error("unexpected notification kind value"); + }), + (r.createNext = function (e) { + return typeof e < "u" ? new r("N", e) : r.undefinedValueNotification; + }), + (r.createError = function (e) { + return new r("E", void 0, e); + }), + (r.createComplete = function () { + return r.completeNotification; + }), + (r.completeNotification = new r("C")), + (r.undefinedValueNotification = new r("N", void 0)), + r + ); + })(); + tE.Notification = ovr; + }); + var PJ = N((L0) => { + "use strict"; + _(); + x(); + var cvr = + (L0 && L0.__extends) || + (function () { + var r = function (e, t) { + return ( + (r = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (n, a) { + n.__proto__ = a; + }) || + function (n, a) { + for (var i in a) a.hasOwnProperty(i) && (n[i] = a[i]); + }), + r(e, t) + ); + }; + return function (e, t) { + r(e, t); + function n() { + this.constructor = e; + } + e.prototype = + t === null + ? Object.create(t) + : ((n.prototype = t.prototype), new n()); + }; + })(); + Object.defineProperty(L0, "__esModule", { value: !0 }); + var uvr = sr(), + MJ = rE(); + function lvr(r, e) { + return ( + e === void 0 && (e = 0), + function (n) { + return n.lift(new WZe(r, e)); + } + ); + } + L0.observeOn = lvr; + var WZe = (function () { + function r(e, t) { + t === void 0 && (t = 0), (this.scheduler = e), (this.delay = t); + } + return ( + (r.prototype.call = function (e, t) { + return t.subscribe(new UZe(e, this.scheduler, this.delay)); + }), + r + ); + })(); + L0.ObserveOnOperator = WZe; + var UZe = (function (r) { + cvr(e, r); + function e(t, n, a) { + a === void 0 && (a = 0); + var i = r.call(this, t) || this; + return (i.scheduler = n), (i.delay = a), i; + } + return ( + (e.dispatch = function (t) { + var n = t.notification, + a = t.destination; + n.observe(a), this.unsubscribe(); + }), + (e.prototype.scheduleMessage = function (t) { + var n = this.destination; + n.add( + this.scheduler.schedule( + e.dispatch, + this.delay, + new HZe(t, this.destination) + ) + ); + }), + (e.prototype._next = function (t) { + this.scheduleMessage(MJ.Notification.createNext(t)); + }), + (e.prototype._error = function (t) { + this.scheduleMessage(MJ.Notification.createError(t)), + this.unsubscribe(); + }), + (e.prototype._complete = function () { + this.scheduleMessage(MJ.Notification.createComplete()), + this.unsubscribe(); + }), + e + ); + })(uvr.Subscriber); + L0.ObserveOnSubscriber = UZe; + var HZe = (function () { + function r(e, t) { + (this.notification = e), (this.destination = t); + } + return r; + })(); + L0.ObserveOnMessage = HZe; + }); + var lB = N((nE) => { + "use strict"; + _(); + x(); + var dvr = + (nE && nE.__extends) || + (function () { + var r = function (e, t) { + return ( + (r = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (n, a) { + n.__proto__ = a; + }) || + function (n, a) { + for (var i in a) a.hasOwnProperty(i) && (n[i] = a[i]); + }), + r(e, t) + ); + }; + return function (e, t) { + r(e, t); + function n() { + this.constructor = e; + } + e.prototype = + t === null + ? Object.create(t) + : ((n.prototype = t.prototype), new n()); + }; + })(); + Object.defineProperty(nE, "__esModule", { value: !0 }); + var pvr = yc(), + hvr = xJ(), + fvr = ws(), + mvr = PJ(), + yvr = H6(), + gvr = dJ(), + bvr = (function (r) { + dvr(e, r); + function e(t, n, a) { + t === void 0 && (t = Number.POSITIVE_INFINITY), + n === void 0 && (n = Number.POSITIVE_INFINITY); + var i = r.call(this) || this; + return ( + (i.scheduler = a), + (i._events = []), + (i._infiniteTimeWindow = !1), + (i._bufferSize = t < 1 ? 1 : t), + (i._windowTime = n < 1 ? 1 : n), + n === Number.POSITIVE_INFINITY + ? ((i._infiniteTimeWindow = !0), + (i.next = i.nextInfiniteTimeWindow)) + : (i.next = i.nextTimeWindow), + i + ); + } + return ( + (e.prototype.nextInfiniteTimeWindow = function (t) { + if (!this.isStopped) { + var n = this._events; + n.push(t), n.length > this._bufferSize && n.shift(); + } + r.prototype.next.call(this, t); + }), + (e.prototype.nextTimeWindow = function (t) { + this.isStopped || + (this._events.push(new vvr(this._getNow(), t)), + this._trimBufferThenGetEvents()), + r.prototype.next.call(this, t); + }), + (e.prototype._subscribe = function (t) { + var n = this._infiniteTimeWindow, + a = n ? this._events : this._trimBufferThenGetEvents(), + i = this.scheduler, + s = a.length, + c; + if (this.closed) throw new yvr.ObjectUnsubscribedError(); + if ( + (this.isStopped || this.hasError + ? (c = fvr.Subscription.EMPTY) + : (this.observers.push(t), + (c = new gvr.SubjectSubscription(this, t))), + i && t.add((t = new mvr.ObserveOnSubscriber(t, i))), + n) + ) + for (var l = 0; l < s && !t.closed; l++) t.next(a[l]); + else for (var l = 0; l < s && !t.closed; l++) t.next(a[l].value); + return ( + this.hasError + ? t.error(this.thrownError) + : this.isStopped && t.complete(), + c + ); + }), + (e.prototype._getNow = function () { + return (this.scheduler || hvr.queue).now(); + }), + (e.prototype._trimBufferThenGetEvents = function () { + for ( + var t = this._getNow(), + n = this._bufferSize, + a = this._windowTime, + i = this._events, + s = i.length, + c = 0; + c < s && !(t - i[c].time < a); + + ) + c++; + return ( + s > n && (c = Math.max(c, s - n)), c > 0 && i.splice(0, c), i + ); + }), + e + ); + })(pvr.Subject); + nE.ReplaySubject = bvr; + var vvr = (function () { + function r(e, t) { + (this.time = e), (this.value = t); + } + return r; + })(); + }); + var iE = N((aE) => { + "use strict"; + _(); + x(); + var wvr = + (aE && aE.__extends) || + (function () { + var r = function (e, t) { + return ( + (r = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (n, a) { + n.__proto__ = a; + }) || + function (n, a) { + for (var i in a) a.hasOwnProperty(i) && (n[i] = a[i]); + }), + r(e, t) + ); + }; + return function (e, t) { + r(e, t); + function n() { + this.constructor = e; + } + e.prototype = + t === null + ? Object.create(t) + : ((n.prototype = t.prototype), new n()); + }; + })(); + Object.defineProperty(aE, "__esModule", { value: !0 }); + var _vr = yc(), + zZe = ws(), + xvr = (function (r) { + wvr(e, r); + function e() { + var t = (r !== null && r.apply(this, arguments)) || this; + return (t.value = null), (t.hasNext = !1), (t.hasCompleted = !1), t; + } + return ( + (e.prototype._subscribe = function (t) { + return this.hasError + ? (t.error(this.thrownError), zZe.Subscription.EMPTY) + : this.hasCompleted && this.hasNext + ? (t.next(this.value), t.complete(), zZe.Subscription.EMPTY) + : r.prototype._subscribe.call(this, t); + }), + (e.prototype.next = function (t) { + this.hasCompleted || ((this.value = t), (this.hasNext = !0)); + }), + (e.prototype.error = function (t) { + this.hasCompleted || r.prototype.error.call(this, t); + }), + (e.prototype.complete = function () { + (this.hasCompleted = !0), + this.hasNext && r.prototype.next.call(this, this.value), + r.prototype.complete.call(this); + }), + e + ); + })(_vr.Subject); + aE.AsyncSubject = xvr; + }); + var KZe = N((pB) => { + "use strict"; + _(); + x(); + Object.defineProperty(pB, "__esModule", { value: !0 }); + var Tvr = 1, + Evr = (function () { + return Promise.resolve(); + })(), + dB = {}; + function jZe(r) { + return r in dB ? (delete dB[r], !0) : !1; + } + pB.Immediate = { + setImmediate: function (r) { + var e = Tvr++; + return ( + (dB[e] = !0), + Evr.then(function () { + return jZe(e) && r(); + }), + e + ); + }, + clearImmediate: function (r) { + jZe(r); + }, + }; + pB.TestTools = { + pending: function () { + return Object.keys(dB).length; + }, + }; + }); + var GZe = N((sE) => { + "use strict"; + _(); + x(); + var Cvr = + (sE && sE.__extends) || + (function () { + var r = function (e, t) { + return ( + (r = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (n, a) { + n.__proto__ = a; + }) || + function (n, a) { + for (var i in a) a.hasOwnProperty(i) && (n[i] = a[i]); + }), + r(e, t) + ); + }; + return function (e, t) { + r(e, t); + function n() { + this.constructor = e; + } + e.prototype = + t === null + ? Object.create(t) + : ((n.prototype = t.prototype), new n()); + }; + })(); + Object.defineProperty(sE, "__esModule", { value: !0 }); + var VZe = KZe(), + Ivr = a_(), + Avr = (function (r) { + Cvr(e, r); + function e(t, n) { + var a = r.call(this, t, n) || this; + return (a.scheduler = t), (a.work = n), a; + } + return ( + (e.prototype.requestAsyncId = function (t, n, a) { + return ( + a === void 0 && (a = 0), + a !== null && a > 0 + ? r.prototype.requestAsyncId.call(this, t, n, a) + : (t.actions.push(this), + t.scheduled || + (t.scheduled = VZe.Immediate.setImmediate( + t.flush.bind(t, null) + ))) + ); + }), + (e.prototype.recycleAsyncId = function (t, n, a) { + if ( + (a === void 0 && (a = 0), + (a !== null && a > 0) || (a === null && this.delay > 0)) + ) + return r.prototype.recycleAsyncId.call(this, t, n, a); + t.actions.length === 0 && + (VZe.Immediate.clearImmediate(n), (t.scheduled = void 0)); + }), + e + ); + })(Ivr.AsyncAction); + sE.AsapAction = Avr; + }); + var YZe = N((oE) => { + "use strict"; + _(); + x(); + var kvr = + (oE && oE.__extends) || + (function () { + var r = function (e, t) { + return ( + (r = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (n, a) { + n.__proto__ = a; + }) || + function (n, a) { + for (var i in a) a.hasOwnProperty(i) && (n[i] = a[i]); + }), + r(e, t) + ); + }; + return function (e, t) { + r(e, t); + function n() { + this.constructor = e; + } + e.prototype = + t === null + ? Object.create(t) + : ((n.prototype = t.prototype), new n()); + }; + })(); + Object.defineProperty(oE, "__esModule", { value: !0 }); + var Svr = i_(), + Mvr = (function (r) { + kvr(e, r); + function e() { + return (r !== null && r.apply(this, arguments)) || this; + } + return ( + (e.prototype.flush = function (t) { + (this.active = !0), (this.scheduled = void 0); + var n = this.actions, + a, + i = -1, + s = n.length; + t = t || n.shift(); + do if ((a = t.execute(t.state, t.delay))) break; + while (++i < s && (t = n.shift())); + if (((this.active = !1), a)) { + for (; ++i < s && (t = n.shift()); ) t.unsubscribe(); + throw a; + } + }), + e + ); + })(Svr.AsyncScheduler); + oE.AsapScheduler = Mvr; + }); + var RJ = N((cE) => { + "use strict"; + _(); + x(); + Object.defineProperty(cE, "__esModule", { value: !0 }); + var Pvr = GZe(), + Rvr = YZe(); + cE.asapScheduler = new Rvr.AsapScheduler(Pvr.AsapAction); + cE.asap = cE.asapScheduler; + }); + var Hc = N((uE) => { + "use strict"; + _(); + x(); + Object.defineProperty(uE, "__esModule", { value: !0 }); + var Bvr = a_(), + Nvr = i_(); + uE.asyncScheduler = new Nvr.AsyncScheduler(Bvr.AsyncAction); + uE.async = uE.asyncScheduler; + }); + var $Ze = N((lE) => { + "use strict"; + _(); + x(); + var Ovr = + (lE && lE.__extends) || + (function () { + var r = function (e, t) { + return ( + (r = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (n, a) { + n.__proto__ = a; + }) || + function (n, a) { + for (var i in a) a.hasOwnProperty(i) && (n[i] = a[i]); + }), + r(e, t) + ); + }; + return function (e, t) { + r(e, t); + function n() { + this.constructor = e; + } + e.prototype = + t === null + ? Object.create(t) + : ((n.prototype = t.prototype), new n()); + }; + })(); + Object.defineProperty(lE, "__esModule", { value: !0 }); + var Lvr = a_(), + Dvr = (function (r) { + Ovr(e, r); + function e(t, n) { + var a = r.call(this, t, n) || this; + return (a.scheduler = t), (a.work = n), a; + } + return ( + (e.prototype.requestAsyncId = function (t, n, a) { + return ( + a === void 0 && (a = 0), + a !== null && a > 0 + ? r.prototype.requestAsyncId.call(this, t, n, a) + : (t.actions.push(this), + t.scheduled || + (t.scheduled = requestAnimationFrame(function () { + return t.flush(null); + }))) + ); + }), + (e.prototype.recycleAsyncId = function (t, n, a) { + if ( + (a === void 0 && (a = 0), + (a !== null && a > 0) || (a === null && this.delay > 0)) + ) + return r.prototype.recycleAsyncId.call(this, t, n, a); + t.actions.length === 0 && + (cancelAnimationFrame(n), (t.scheduled = void 0)); + }), + e + ); + })(Lvr.AsyncAction); + lE.AnimationFrameAction = Dvr; + }); + var JZe = N((dE) => { + "use strict"; + _(); + x(); + var qvr = + (dE && dE.__extends) || + (function () { + var r = function (e, t) { + return ( + (r = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (n, a) { + n.__proto__ = a; + }) || + function (n, a) { + for (var i in a) a.hasOwnProperty(i) && (n[i] = a[i]); + }), + r(e, t) + ); + }; + return function (e, t) { + r(e, t); + function n() { + this.constructor = e; + } + e.prototype = + t === null + ? Object.create(t) + : ((n.prototype = t.prototype), new n()); + }; + })(); + Object.defineProperty(dE, "__esModule", { value: !0 }); + var Fvr = i_(), + Wvr = (function (r) { + qvr(e, r); + function e() { + return (r !== null && r.apply(this, arguments)) || this; + } + return ( + (e.prototype.flush = function (t) { + (this.active = !0), (this.scheduled = void 0); + var n = this.actions, + a, + i = -1, + s = n.length; + t = t || n.shift(); + do if ((a = t.execute(t.state, t.delay))) break; + while (++i < s && (t = n.shift())); + if (((this.active = !1), a)) { + for (; ++i < s && (t = n.shift()); ) t.unsubscribe(); + throw a; + } + }), + e + ); + })(Fvr.AsyncScheduler); + dE.AnimationFrameScheduler = Wvr; + }); + var ZZe = N((pE) => { + "use strict"; + _(); + x(); + Object.defineProperty(pE, "__esModule", { value: !0 }); + var Uvr = $Ze(), + Hvr = JZe(); + pE.animationFrameScheduler = new Hvr.AnimationFrameScheduler( + Uvr.AnimationFrameAction + ); + pE.animationFrame = pE.animationFrameScheduler; + }); + var eQe = N((o_) => { + "use strict"; + _(); + x(); + var QZe = + (o_ && o_.__extends) || + (function () { + var r = function (e, t) { + return ( + (r = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (n, a) { + n.__proto__ = a; + }) || + function (n, a) { + for (var i in a) a.hasOwnProperty(i) && (n[i] = a[i]); + }), + r(e, t) + ); + }; + return function (e, t) { + r(e, t); + function n() { + this.constructor = e; + } + e.prototype = + t === null + ? Object.create(t) + : ((n.prototype = t.prototype), new n()); + }; + })(); + Object.defineProperty(o_, "__esModule", { value: !0 }); + var zvr = a_(), + jvr = i_(), + Kvr = (function (r) { + QZe(e, r); + function e(t, n) { + t === void 0 && (t = XZe), + n === void 0 && (n = Number.POSITIVE_INFINITY); + var a = + r.call(this, t, function () { + return a.frame; + }) || this; + return (a.maxFrames = n), (a.frame = 0), (a.index = -1), a; + } + return ( + (e.prototype.flush = function () { + for ( + var t = this, n = t.actions, a = t.maxFrames, i, s; + (s = n[0]) && + s.delay <= a && + (n.shift(), + (this.frame = s.delay), + !(i = s.execute(s.state, s.delay))); + + ); + if (i) { + for (; (s = n.shift()); ) s.unsubscribe(); + throw i; + } + }), + (e.frameTimeFactor = 10), + e + ); + })(jvr.AsyncScheduler); + o_.VirtualTimeScheduler = Kvr; + var XZe = (function (r) { + QZe(e, r); + function e(t, n, a) { + a === void 0 && (a = t.index += 1); + var i = r.call(this, t, n) || this; + return ( + (i.scheduler = t), + (i.work = n), + (i.index = a), + (i.active = !0), + (i.index = t.index = a), + i + ); + } + return ( + (e.prototype.schedule = function (t, n) { + if ((n === void 0 && (n = 0), !this.id)) + return r.prototype.schedule.call(this, t, n); + this.active = !1; + var a = new e(this.scheduler, this.work); + return this.add(a), a.schedule(t, n); + }), + (e.prototype.requestAsyncId = function (t, n, a) { + a === void 0 && (a = 0), (this.delay = t.frame + a); + var i = t.actions; + return i.push(this), i.sort(e.sortActions), !0; + }), + (e.prototype.recycleAsyncId = function (t, n, a) { + a === void 0 && (a = 0); + }), + (e.prototype._execute = function (t, n) { + if (this.active === !0) return r.prototype._execute.call(this, t, n); + }), + (e.sortActions = function (t, n) { + return t.delay === n.delay + ? t.index === n.index + ? 0 + : t.index > n.index + ? 1 + : -1 + : t.delay > n.delay + ? 1 + : -1; + }), + e + ); + })(zvr.AsyncAction); + o_.VirtualAction = XZe; + }); + var hB = N((BJ) => { + "use strict"; + _(); + x(); + Object.defineProperty(BJ, "__esModule", { value: !0 }); + function Vvr() {} + BJ.noop = Vvr; + }); + var tQe = N((NJ) => { + "use strict"; + _(); + x(); + Object.defineProperty(NJ, "__esModule", { value: !0 }); + var Gvr = _n(); + function Yvr(r) { + return ( + !!r && + (r instanceof Gvr.Observable || + (typeof r.lift == "function" && typeof r.subscribe == "function")) + ); + } + NJ.isObservable = Yvr; + }); + var c_ = N((OJ) => { + "use strict"; + _(); + x(); + Object.defineProperty(OJ, "__esModule", { value: !0 }); + var $vr = (function () { + function r() { + return ( + Error.call(this), + (this.message = "argument out of range"), + (this.name = "ArgumentOutOfRangeError"), + this + ); + } + return (r.prototype = Object.create(Error.prototype)), r; + })(); + OJ.ArgumentOutOfRangeError = $vr; + }); + var u_ = N((LJ) => { + "use strict"; + _(); + x(); + Object.defineProperty(LJ, "__esModule", { value: !0 }); + var Jvr = (function () { + function r() { + return ( + Error.call(this), + (this.message = "no elements in sequence"), + (this.name = "EmptyError"), + this + ); + } + return (r.prototype = Object.create(Error.prototype)), r; + })(); + LJ.EmptyError = Jvr; + }); + var qJ = N((DJ) => { + "use strict"; + _(); + x(); + Object.defineProperty(DJ, "__esModule", { value: !0 }); + var Zvr = (function () { + function r() { + return ( + Error.call(this), + (this.message = "Timeout has occurred"), + (this.name = "TimeoutError"), + this + ); + } + return (r.prototype = Object.create(Error.prototype)), r; + })(); + DJ.TimeoutError = Zvr; + }); + var tl = N((l_) => { + "use strict"; + _(); + x(); + var Qvr = + (l_ && l_.__extends) || + (function () { + var r = function (e, t) { + return ( + (r = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (n, a) { + n.__proto__ = a; + }) || + function (n, a) { + for (var i in a) a.hasOwnProperty(i) && (n[i] = a[i]); + }), + r(e, t) + ); + }; + return function (e, t) { + r(e, t); + function n() { + this.constructor = e; + } + e.prototype = + t === null + ? Object.create(t) + : ((n.prototype = t.prototype), new n()); + }; + })(); + Object.defineProperty(l_, "__esModule", { value: !0 }); + var Xvr = sr(); + function ewr(r, e) { + return function (n) { + if (typeof r != "function") + throw new TypeError( + "argument is not a function. Are you looking for `mapTo()`?" + ); + return n.lift(new rQe(r, e)); + }; + } + l_.map = ewr; + var rQe = (function () { + function r(e, t) { + (this.project = e), (this.thisArg = t); + } + return ( + (r.prototype.call = function (e, t) { + return t.subscribe(new twr(e, this.project, this.thisArg)); + }), + r + ); + })(); + l_.MapOperator = rQe; + var twr = (function (r) { + Qvr(e, r); + function e(t, n, a) { + var i = r.call(this, t) || this; + return (i.project = n), (i.count = 0), (i.thisArg = a || i), i; + } + return ( + (e.prototype._next = function (t) { + var n; + try { + n = this.project.call(this.thisArg, t, this.count++); + } catch (a) { + this.destination.error(a); + return; + } + this.destination.next(n); + }), + e + ); + })(Xvr.Subscriber); + }); + var iQe = N((FJ) => { + "use strict"; + _(); + x(); + Object.defineProperty(FJ, "__esModule", { value: !0 }); + var rwr = _n(), + nQe = iE(), + nwr = tl(), + awr = rB(), + iwr = Uc(), + swr = dp(); + function aQe(r, e, t) { + if (e) + if (swr.isScheduler(e)) t = e; + else + return function () { + for (var n = [], a = 0; a < arguments.length; a++) + n[a] = arguments[a]; + return aQe(r, t) + .apply(void 0, n) + .pipe( + nwr.map(function (i) { + return iwr.isArray(i) ? e.apply(void 0, i) : e(i); + }) + ); + }; + return function () { + for (var n = [], a = 0; a < arguments.length; a++) n[a] = arguments[a]; + var i = this, + s, + c = { context: i, subject: s, callbackFunc: r, scheduler: t }; + return new rwr.Observable(function (l) { + if (t) { + var m = { args: n, subscriber: l, params: c }; + return t.schedule(owr, 0, m); + } else { + if (!s) { + s = new nQe.AsyncSubject(); + var d = function () { + for (var w = [], C = 0; C < arguments.length; C++) + w[C] = arguments[C]; + s.next(w.length <= 1 ? w[0] : w), s.complete(); + }; + try { + r.apply(i, n.concat([d])); + } catch (w) { + awr.canReportError(s) ? s.error(w) : console.warn(w); + } + } + return s.subscribe(l); + } + }); + }; + } + FJ.bindCallback = aQe; + function owr(r) { + var e = this, + t = this, + n = r.args, + a = r.subscriber, + i = r.params, + s = i.callbackFunc, + c = i.context, + l = i.scheduler, + d = i.subject; + if (!d) { + d = i.subject = new nQe.AsyncSubject(); + var m = function () { + for (var w = [], C = 0; C < arguments.length; C++) + w[C] = arguments[C]; + var I = w.length <= 1 ? w[0] : w; + e.add(l.schedule(cwr, 0, { value: I, subject: d })); + }; + try { + s.apply(c, n.concat([m])); + } catch (w) { + d.error(w); + } + } + this.add(d.subscribe(a)); + } + function cwr(r) { + var e = r.value, + t = r.subject; + t.next(e), t.complete(); + } + }); + var uQe = N((WJ) => { + "use strict"; + _(); + x(); + Object.defineProperty(WJ, "__esModule", { value: !0 }); + var uwr = _n(), + oQe = iE(), + lwr = tl(), + dwr = rB(), + pwr = dp(), + hwr = Uc(); + function cQe(r, e, t) { + if (e) + if (pwr.isScheduler(e)) t = e; + else + return function () { + for (var n = [], a = 0; a < arguments.length; a++) + n[a] = arguments[a]; + return cQe(r, t) + .apply(void 0, n) + .pipe( + lwr.map(function (i) { + return hwr.isArray(i) ? e.apply(void 0, i) : e(i); + }) + ); + }; + return function () { + for (var n = [], a = 0; a < arguments.length; a++) n[a] = arguments[a]; + var i = { + subject: void 0, + args: n, + callbackFunc: r, + scheduler: t, + context: this, + }; + return new uwr.Observable(function (s) { + var c = i.context, + l = i.subject; + if (t) + return t.schedule(fwr, 0, { params: i, subscriber: s, context: c }); + if (!l) { + l = i.subject = new oQe.AsyncSubject(); + var d = function () { + for (var m = [], w = 0; w < arguments.length; w++) + m[w] = arguments[w]; + var C = m.shift(); + if (C) { + l.error(C); + return; + } + l.next(m.length <= 1 ? m[0] : m), l.complete(); + }; + try { + r.apply(c, n.concat([d])); + } catch (m) { + dwr.canReportError(l) ? l.error(m) : console.warn(m); + } + } + return l.subscribe(s); + }); + }; + } + WJ.bindNodeCallback = cQe; + function fwr(r) { + var e = this, + t = r.params, + n = r.subscriber, + a = r.context, + i = t.callbackFunc, + s = t.args, + c = t.scheduler, + l = t.subject; + if (!l) { + l = t.subject = new oQe.AsyncSubject(); + var d = function () { + for (var m = [], w = 0; w < arguments.length; w++) + m[w] = arguments[w]; + var C = m.shift(); + if (C) e.add(c.schedule(sQe, 0, { err: C, subject: l })); + else { + var I = m.length <= 1 ? m[0] : m; + e.add(c.schedule(mwr, 0, { value: I, subject: l })); + } + }; + try { + i.apply(a, s.concat([d])); + } catch (m) { + this.add(c.schedule(sQe, 0, { err: m, subject: l })); + } + } + this.add(l.subscribe(n)); + } + function mwr(r) { + var e = r.value, + t = r.subject; + t.next(e), t.complete(); + } + function sQe(r) { + var e = r.err, + t = r.subject; + t.error(e); + } + }); + var D0 = N((hE) => { + "use strict"; + _(); + x(); + var ywr = + (hE && hE.__extends) || + (function () { + var r = function (e, t) { + return ( + (r = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (n, a) { + n.__proto__ = a; + }) || + function (n, a) { + for (var i in a) a.hasOwnProperty(i) && (n[i] = a[i]); + }), + r(e, t) + ); + }; + return function (e, t) { + r(e, t); + function n() { + this.constructor = e; + } + e.prototype = + t === null + ? Object.create(t) + : ((n.prototype = t.prototype), new n()); + }; + })(); + Object.defineProperty(hE, "__esModule", { value: !0 }); + var gwr = sr(), + bwr = (function (r) { + ywr(e, r); + function e() { + return (r !== null && r.apply(this, arguments)) || this; + } + return ( + (e.prototype.notifyNext = function (t, n, a, i, s) { + this.destination.next(n); + }), + (e.prototype.notifyError = function (t, n) { + this.destination.error(t); + }), + (e.prototype.notifyComplete = function (t) { + this.destination.complete(); + }), + e + ); + })(gwr.Subscriber); + hE.OuterSubscriber = bwr; + }); + var lQe = N((fE) => { + "use strict"; + _(); + x(); + var vwr = + (fE && fE.__extends) || + (function () { + var r = function (e, t) { + return ( + (r = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (n, a) { + n.__proto__ = a; + }) || + function (n, a) { + for (var i in a) a.hasOwnProperty(i) && (n[i] = a[i]); + }), + r(e, t) + ); + }; + return function (e, t) { + r(e, t); + function n() { + this.constructor = e; + } + e.prototype = + t === null + ? Object.create(t) + : ((n.prototype = t.prototype), new n()); + }; + })(); + Object.defineProperty(fE, "__esModule", { value: !0 }); + var wwr = sr(), + _wr = (function (r) { + vwr(e, r); + function e(t, n, a) { + var i = r.call(this) || this; + return ( + (i.parent = t), + (i.outerValue = n), + (i.outerIndex = a), + (i.index = 0), + i + ); + } + return ( + (e.prototype._next = function (t) { + this.parent.notifyNext( + this.outerValue, + t, + this.outerIndex, + this.index++, + this + ); + }), + (e.prototype._error = function (t) { + this.parent.notifyError(t, this), this.unsubscribe(); + }), + (e.prototype._complete = function () { + this.parent.notifyComplete(this), this.unsubscribe(); + }), + e + ); + })(wwr.Subscriber); + fE.InnerSubscriber = _wr; + }); + var dQe = N((UJ) => { + "use strict"; + _(); + x(); + Object.defineProperty(UJ, "__esModule", { value: !0 }); + var xwr = Z7(); + UJ.subscribeToPromise = function (r) { + return function (e) { + return ( + r + .then( + function (t) { + e.closed || (e.next(t), e.complete()); + }, + function (t) { + return e.error(t); + } + ) + .then(null, xwr.hostReportError), + e + ); + }; + }; + }); + var p_ = N((d_) => { + "use strict"; + _(); + x(); + Object.defineProperty(d_, "__esModule", { value: !0 }); + function pQe() { + return typeof Symbol != "function" || !Symbol.iterator + ? "@@iterator" + : Symbol.iterator; + } + d_.getSymbolIterator = pQe; + d_.iterator = pQe(); + d_.$$iterator = d_.iterator; + }); + var hQe = N((HJ) => { + "use strict"; + _(); + x(); + Object.defineProperty(HJ, "__esModule", { value: !0 }); + var Twr = p_(); + HJ.subscribeToIterable = function (r) { + return function (e) { + var t = r[Twr.iterator](); + do { + var n = void 0; + try { + n = t.next(); + } catch (a) { + return e.error(a), e; + } + if (n.done) { + e.complete(); + break; + } + if ((e.next(n.value), e.closed)) break; + } while (!0); + return ( + typeof t.return == "function" && + e.add(function () { + t.return && t.return(); + }), + e + ); + }; + }; + }); + var fQe = N((zJ) => { + "use strict"; + _(); + x(); + Object.defineProperty(zJ, "__esModule", { value: !0 }); + var Ewr = vb(); + zJ.subscribeToObservable = function (r) { + return function (e) { + var t = r[Ewr.observable](); + if (typeof t.subscribe != "function") + throw new TypeError( + "Provided object does not correctly implement Symbol.observable" + ); + return t.subscribe(e); + }; + }; + }); + var KJ = N((jJ) => { + "use strict"; + _(); + x(); + Object.defineProperty(jJ, "__esModule", { value: !0 }); + jJ.isArrayLike = function (r) { + return r && typeof r.length == "number" && typeof r != "function"; + }; + }); + var GJ = N((VJ) => { + "use strict"; + _(); + x(); + Object.defineProperty(VJ, "__esModule", { value: !0 }); + function Cwr(r) { + return ( + !!r && typeof r.subscribe != "function" && typeof r.then == "function" + ); + } + VJ.isPromise = Cwr; + }); + var mE = N((YJ) => { + "use strict"; + _(); + x(); + Object.defineProperty(YJ, "__esModule", { value: !0 }); + var Iwr = CJ(), + Awr = dQe(), + kwr = hQe(), + Swr = fQe(), + Mwr = KJ(), + Pwr = GJ(), + Rwr = Q7(), + Bwr = p_(), + Nwr = vb(); + YJ.subscribeTo = function (r) { + if (!!r && typeof r[Nwr.observable] == "function") + return Swr.subscribeToObservable(r); + if (Mwr.isArrayLike(r)) return Iwr.subscribeToArray(r); + if (Pwr.isPromise(r)) return Awr.subscribeToPromise(r); + if (!!r && typeof r[Bwr.iterator] == "function") + return kwr.subscribeToIterable(r); + var e = Rwr.isObject(r) ? "an invalid object" : "'" + r + "'", + t = + "You provided " + + e + + " where a stream was expected. You can provide an Observable, Promise, Array, or Iterable."; + throw new TypeError(t); + }; + }); + var q0 = N(($J) => { + "use strict"; + _(); + x(); + Object.defineProperty($J, "__esModule", { value: !0 }); + var Owr = lQe(), + Lwr = mE(), + Dwr = _n(); + function qwr(r, e, t, n, a) { + if ((a === void 0 && (a = new Owr.InnerSubscriber(r, t, n)), !a.closed)) + return e instanceof Dwr.Observable + ? e.subscribe(a) + : Lwr.subscribeTo(e)(a); + } + $J.subscribeToResult = qwr; + }); + var fB = N((_b) => { + "use strict"; + _(); + x(); + var Fwr = + (_b && _b.__extends) || + (function () { + var r = function (e, t) { + return ( + (r = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (n, a) { + n.__proto__ = a; + }) || + function (n, a) { + for (var i in a) a.hasOwnProperty(i) && (n[i] = a[i]); + }), + r(e, t) + ); + }; + return function (e, t) { + r(e, t); + function n() { + this.constructor = e; + } + e.prototype = + t === null + ? Object.create(t) + : ((n.prototype = t.prototype), new n()); + }; + })(); + Object.defineProperty(_b, "__esModule", { value: !0 }); + var Wwr = dp(), + Uwr = Uc(), + Hwr = D0(), + zwr = q0(), + jwr = s_(), + mQe = {}; + function Kwr() { + for (var r = [], e = 0; e < arguments.length; e++) r[e] = arguments[e]; + var t = void 0, + n = void 0; + return ( + Wwr.isScheduler(r[r.length - 1]) && (n = r.pop()), + typeof r[r.length - 1] == "function" && (t = r.pop()), + r.length === 1 && Uwr.isArray(r[0]) && (r = r[0]), + jwr.fromArray(r, n).lift(new yQe(t)) + ); + } + _b.combineLatest = Kwr; + var yQe = (function () { + function r(e) { + this.resultSelector = e; + } + return ( + (r.prototype.call = function (e, t) { + return t.subscribe(new gQe(e, this.resultSelector)); + }), + r + ); + })(); + _b.CombineLatestOperator = yQe; + var gQe = (function (r) { + Fwr(e, r); + function e(t, n) { + var a = r.call(this, t) || this; + return ( + (a.resultSelector = n), + (a.active = 0), + (a.values = []), + (a.observables = []), + a + ); + } + return ( + (e.prototype._next = function (t) { + this.values.push(mQe), this.observables.push(t); + }), + (e.prototype._complete = function () { + var t = this.observables, + n = t.length; + if (n === 0) this.destination.complete(); + else { + (this.active = n), (this.toRespond = n); + for (var a = 0; a < n; a++) { + var i = t[a]; + this.add(zwr.subscribeToResult(this, i, void 0, a)); + } + } + }), + (e.prototype.notifyComplete = function (t) { + (this.active -= 1) === 0 && this.destination.complete(); + }), + (e.prototype.notifyNext = function (t, n, a) { + var i = this.values, + s = i[a], + c = this.toRespond + ? s === mQe + ? --this.toRespond + : this.toRespond + : 0; + (i[a] = n), + c === 0 && + (this.resultSelector + ? this._tryResultSelector(i) + : this.destination.next(i.slice())); + }), + (e.prototype._tryResultSelector = function (t) { + var n; + try { + n = this.resultSelector.apply(this, t); + } catch (a) { + this.destination.error(a); + return; + } + this.destination.next(n); + }), + e + ); + })(Hwr.OuterSubscriber); + _b.CombineLatestSubscriber = gQe; + }); + var bQe = N((JJ) => { + "use strict"; + _(); + x(); + Object.defineProperty(JJ, "__esModule", { value: !0 }); + var Vwr = _n(), + Gwr = ws(), + Ywr = vb(); + function $wr(r, e) { + return new Vwr.Observable(function (t) { + var n = new Gwr.Subscription(); + return ( + n.add( + e.schedule(function () { + var a = r[Ywr.observable](); + n.add( + a.subscribe({ + next: function (i) { + n.add( + e.schedule(function () { + return t.next(i); + }) + ); + }, + error: function (i) { + n.add( + e.schedule(function () { + return t.error(i); + }) + ); + }, + complete: function () { + n.add( + e.schedule(function () { + return t.complete(); + }) + ); + }, + }) + ); + }) + ), + n + ); + }); + } + JJ.scheduleObservable = $wr; + }); + var vQe = N((ZJ) => { + "use strict"; + _(); + x(); + Object.defineProperty(ZJ, "__esModule", { value: !0 }); + var Jwr = _n(), + Zwr = ws(); + function Qwr(r, e) { + return new Jwr.Observable(function (t) { + var n = new Zwr.Subscription(); + return ( + n.add( + e.schedule(function () { + return r.then( + function (a) { + n.add( + e.schedule(function () { + t.next(a), + n.add( + e.schedule(function () { + return t.complete(); + }) + ); + }) + ); + }, + function (a) { + n.add( + e.schedule(function () { + return t.error(a); + }) + ); + } + ); + }) + ), + n + ); + }); + } + ZJ.schedulePromise = Qwr; + }); + var wQe = N((QJ) => { + "use strict"; + _(); + x(); + Object.defineProperty(QJ, "__esModule", { value: !0 }); + var Xwr = _n(), + e2r = ws(), + t2r = p_(); + function r2r(r, e) { + if (!r) throw new Error("Iterable cannot be null"); + return new Xwr.Observable(function (t) { + var n = new e2r.Subscription(), + a; + return ( + n.add(function () { + a && typeof a.return == "function" && a.return(); + }), + n.add( + e.schedule(function () { + (a = r[t2r.iterator]()), + n.add( + e.schedule(function () { + if (!t.closed) { + var i, s; + try { + var c = a.next(); + (i = c.value), (s = c.done); + } catch (l) { + t.error(l); + return; + } + s ? t.complete() : (t.next(i), this.schedule()); + } + }) + ); + }) + ), + n + ); + }); + } + QJ.scheduleIterable = r2r; + }); + var _Qe = N((XJ) => { + "use strict"; + _(); + x(); + Object.defineProperty(XJ, "__esModule", { value: !0 }); + var n2r = vb(); + function a2r(r) { + return r && typeof r[n2r.observable] == "function"; + } + XJ.isInteropObservable = a2r; + }); + var xQe = N((eZ) => { + "use strict"; + _(); + x(); + Object.defineProperty(eZ, "__esModule", { value: !0 }); + var i2r = p_(); + function s2r(r) { + return r && typeof r[i2r.iterator] == "function"; + } + eZ.isIterable = s2r; + }); + var rZ = N((tZ) => { + "use strict"; + _(); + x(); + Object.defineProperty(tZ, "__esModule", { value: !0 }); + var o2r = bQe(), + c2r = vQe(), + u2r = cB(), + l2r = wQe(), + d2r = _Qe(), + p2r = GJ(), + h2r = KJ(), + f2r = xQe(); + function m2r(r, e) { + if (r != null) { + if (d2r.isInteropObservable(r)) return o2r.scheduleObservable(r, e); + if (p2r.isPromise(r)) return c2r.schedulePromise(r, e); + if (h2r.isArrayLike(r)) return u2r.scheduleArray(r, e); + if (f2r.isIterable(r) || typeof r == "string") + return l2r.scheduleIterable(r, e); + } + throw new TypeError( + ((r !== null && typeof r) || r) + " is not observable" + ); + } + tZ.scheduled = m2r; + }); + var pp = N((nZ) => { + "use strict"; + _(); + x(); + Object.defineProperty(nZ, "__esModule", { value: !0 }); + var TQe = _n(), + y2r = mE(), + g2r = rZ(); + function b2r(r, e) { + return e + ? g2r.scheduled(r, e) + : r instanceof TQe.Observable + ? r + : new TQe.Observable(y2r.subscribeTo(r)); + } + nZ.from = b2r; + }); + var Ci = N(($f) => { + "use strict"; + _(); + x(); + var mB = + ($f && $f.__extends) || + (function () { + var r = function (e, t) { + return ( + (r = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (n, a) { + n.__proto__ = a; + }) || + function (n, a) { + for (var i in a) a.hasOwnProperty(i) && (n[i] = a[i]); + }), + r(e, t) + ); + }; + return function (e, t) { + r(e, t); + function n() { + this.constructor = e; + } + e.prototype = + t === null + ? Object.create(t) + : ((n.prototype = t.prototype), new n()); + }; + })(); + Object.defineProperty($f, "__esModule", { value: !0 }); + var yB = sr(), + v2r = _n(), + w2r = mE(), + _2r = (function (r) { + mB(e, r); + function e(t) { + var n = r.call(this) || this; + return (n.parent = t), n; + } + return ( + (e.prototype._next = function (t) { + this.parent.notifyNext(t); + }), + (e.prototype._error = function (t) { + this.parent.notifyError(t), this.unsubscribe(); + }), + (e.prototype._complete = function () { + this.parent.notifyComplete(), this.unsubscribe(); + }), + e + ); + })(yB.Subscriber); + $f.SimpleInnerSubscriber = _2r; + var x2r = (function (r) { + mB(e, r); + function e(t, n, a) { + var i = r.call(this) || this; + return (i.parent = t), (i.outerValue = n), (i.outerIndex = a), i; + } + return ( + (e.prototype._next = function (t) { + this.parent.notifyNext(this.outerValue, t, this.outerIndex, this); + }), + (e.prototype._error = function (t) { + this.parent.notifyError(t), this.unsubscribe(); + }), + (e.prototype._complete = function () { + this.parent.notifyComplete(this), this.unsubscribe(); + }), + e + ); + })(yB.Subscriber); + $f.ComplexInnerSubscriber = x2r; + var T2r = (function (r) { + mB(e, r); + function e() { + return (r !== null && r.apply(this, arguments)) || this; + } + return ( + (e.prototype.notifyNext = function (t) { + this.destination.next(t); + }), + (e.prototype.notifyError = function (t) { + this.destination.error(t); + }), + (e.prototype.notifyComplete = function () { + this.destination.complete(); + }), + e + ); + })(yB.Subscriber); + $f.SimpleOuterSubscriber = T2r; + var E2r = (function (r) { + mB(e, r); + function e() { + return (r !== null && r.apply(this, arguments)) || this; + } + return ( + (e.prototype.notifyNext = function (t, n, a, i) { + this.destination.next(n); + }), + (e.prototype.notifyError = function (t) { + this.destination.error(t); + }), + (e.prototype.notifyComplete = function (t) { + this.destination.complete(); + }), + e + ); + })(yB.Subscriber); + $f.ComplexOuterSubscriber = E2r; + function C2r(r, e) { + if (!e.closed) { + if (r instanceof v2r.Observable) return r.subscribe(e); + var t; + try { + t = w2r.subscribeTo(r)(e); + } catch (n) { + e.error(n); + } + return t; + } + } + $f.innerSubscribe = C2r; + }); + var yE = N((F0) => { + "use strict"; + _(); + x(); + var I2r = + (F0 && F0.__extends) || + (function () { + var r = function (e, t) { + return ( + (r = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (n, a) { + n.__proto__ = a; + }) || + function (n, a) { + for (var i in a) a.hasOwnProperty(i) && (n[i] = a[i]); + }), + r(e, t) + ); + }; + return function (e, t) { + r(e, t); + function n() { + this.constructor = e; + } + e.prototype = + t === null + ? Object.create(t) + : ((n.prototype = t.prototype), new n()); + }; + })(); + Object.defineProperty(F0, "__esModule", { value: !0 }); + var A2r = tl(), + k2r = pp(), + aZ = Ci(); + function iZ(r, e, t) { + return ( + t === void 0 && (t = Number.POSITIVE_INFINITY), + typeof e == "function" + ? function (n) { + return n.pipe( + iZ(function (a, i) { + return k2r.from(r(a, i)).pipe( + A2r.map(function (s, c) { + return e(a, s, i, c); + }) + ); + }, t) + ); + } + : (typeof e == "number" && (t = e), + function (n) { + return n.lift(new EQe(r, t)); + }) + ); + } + F0.mergeMap = iZ; + var EQe = (function () { + function r(e, t) { + t === void 0 && (t = Number.POSITIVE_INFINITY), + (this.project = e), + (this.concurrent = t); + } + return ( + (r.prototype.call = function (e, t) { + return t.subscribe(new CQe(e, this.project, this.concurrent)); + }), + r + ); + })(); + F0.MergeMapOperator = EQe; + var CQe = (function (r) { + I2r(e, r); + function e(t, n, a) { + a === void 0 && (a = Number.POSITIVE_INFINITY); + var i = r.call(this, t) || this; + return ( + (i.project = n), + (i.concurrent = a), + (i.hasCompleted = !1), + (i.buffer = []), + (i.active = 0), + (i.index = 0), + i + ); + } + return ( + (e.prototype._next = function (t) { + this.active < this.concurrent + ? this._tryNext(t) + : this.buffer.push(t); + }), + (e.prototype._tryNext = function (t) { + var n, + a = this.index++; + try { + n = this.project(t, a); + } catch (i) { + this.destination.error(i); + return; + } + this.active++, this._innerSub(n); + }), + (e.prototype._innerSub = function (t) { + var n = new aZ.SimpleInnerSubscriber(this), + a = this.destination; + a.add(n); + var i = aZ.innerSubscribe(t, n); + i !== n && a.add(i); + }), + (e.prototype._complete = function () { + (this.hasCompleted = !0), + this.active === 0 && + this.buffer.length === 0 && + this.destination.complete(), + this.unsubscribe(); + }), + (e.prototype.notifyNext = function (t) { + this.destination.next(t); + }), + (e.prototype.notifyComplete = function () { + var t = this.buffer; + this.active--, + t.length > 0 + ? this._next(t.shift()) + : this.active === 0 && + this.hasCompleted && + this.destination.complete(); + }), + e + ); + })(aZ.SimpleOuterSubscriber); + F0.MergeMapSubscriber = CQe; + F0.flatMap = iZ; + }); + var gB = N((sZ) => { + "use strict"; + _(); + x(); + Object.defineProperty(sZ, "__esModule", { value: !0 }); + var S2r = yE(), + M2r = O0(); + function P2r(r) { + return ( + r === void 0 && (r = Number.POSITIVE_INFINITY), + S2r.mergeMap(M2r.identity, r) + ); + } + sZ.mergeAll = P2r; + }); + var cZ = N((oZ) => { + "use strict"; + _(); + x(); + Object.defineProperty(oZ, "__esModule", { value: !0 }); + var R2r = gB(); + function B2r() { + return R2r.mergeAll(1); + } + oZ.concatAll = B2r; + }); + var gE = N((uZ) => { + "use strict"; + _(); + x(); + Object.defineProperty(uZ, "__esModule", { value: !0 }); + var N2r = eE(), + O2r = cZ(); + function L2r() { + for (var r = [], e = 0; e < arguments.length; e++) r[e] = arguments[e]; + return O2r.concatAll()(N2r.of.apply(void 0, r)); + } + uZ.concat = L2r; + }); + var bB = N((lZ) => { + "use strict"; + _(); + x(); + Object.defineProperty(lZ, "__esModule", { value: !0 }); + var D2r = _n(), + q2r = pp(), + F2r = lp(); + function W2r(r) { + return new D2r.Observable(function (e) { + var t; + try { + t = r(); + } catch (a) { + e.error(a); + return; + } + var n = t ? q2r.from(t) : F2r.empty(); + return n.subscribe(e); + }); + } + lZ.defer = W2r; + }); + var AQe = N((dZ) => { + "use strict"; + _(); + x(); + Object.defineProperty(dZ, "__esModule", { value: !0 }); + var U2r = _n(), + IQe = Uc(), + H2r = tl(), + z2r = Q7(), + j2r = pp(); + function K2r() { + for (var r = [], e = 0; e < arguments.length; e++) r[e] = arguments[e]; + if (r.length === 1) { + var t = r[0]; + if (IQe.isArray(t)) return vB(t, null); + if (z2r.isObject(t) && Object.getPrototypeOf(t) === Object.prototype) { + var n = Object.keys(t); + return vB( + n.map(function (i) { + return t[i]; + }), + n + ); + } + } + if (typeof r[r.length - 1] == "function") { + var a = r.pop(); + return ( + (r = r.length === 1 && IQe.isArray(r[0]) ? r[0] : r), + vB(r, null).pipe( + H2r.map(function (i) { + return a.apply(void 0, i); + }) + ) + ); + } + return vB(r, null); + } + dZ.forkJoin = K2r; + function vB(r, e) { + return new U2r.Observable(function (t) { + var n = r.length; + if (n === 0) { + t.complete(); + return; + } + for ( + var a = new Array(n), + i = 0, + s = 0, + c = function (d) { + var m = j2r.from(r[d]), + w = !1; + t.add( + m.subscribe({ + next: function (C) { + w || ((w = !0), s++), (a[d] = C); + }, + error: function (C) { + return t.error(C); + }, + complete: function () { + i++, + (i === n || !w) && + (s === n && + t.next( + e + ? e.reduce(function (C, I, k) { + return (C[I] = a[k]), C; + }, {}) + : a + ), + t.complete()); + }, + }) + ); + }, + l = 0; + l < n; + l++ + ) + c(l); + }); + } + }); + var MQe = N((pZ) => { + "use strict"; + _(); + x(); + Object.defineProperty(pZ, "__esModule", { value: !0 }); + var V2r = _n(), + G2r = Uc(), + Y2r = X2(), + $2r = tl(), + C1n = (function () { + return Object.prototype.toString; + })(); + function kQe(r, e, t, n) { + return ( + Y2r.isFunction(t) && ((n = t), (t = void 0)), + n + ? kQe(r, e, t).pipe( + $2r.map(function (a) { + return G2r.isArray(a) ? n.apply(void 0, a) : n(a); + }) + ) + : new V2r.Observable(function (a) { + function i(s) { + arguments.length > 1 + ? a.next(Array.prototype.slice.call(arguments)) + : a.next(s); + } + SQe(r, e, i, a, t); + }) + ); + } + pZ.fromEvent = kQe; + function SQe(r, e, t, n, a) { + var i; + if (Q2r(r)) { + var s = r; + r.addEventListener(e, t, a), + (i = function () { + return s.removeEventListener(e, t, a); + }); + } else if (Z2r(r)) { + var c = r; + r.on(e, t), + (i = function () { + return c.off(e, t); + }); + } else if (J2r(r)) { + var l = r; + r.addListener(e, t), + (i = function () { + return l.removeListener(e, t); + }); + } else if (r && r.length) + for (var d = 0, m = r.length; d < m; d++) SQe(r[d], e, t, n, a); + else throw new TypeError("Invalid event target"); + n.add(i); + } + function J2r(r) { + return ( + r && + typeof r.addListener == "function" && + typeof r.removeListener == "function" + ); + } + function Z2r(r) { + return r && typeof r.on == "function" && typeof r.off == "function"; + } + function Q2r(r) { + return ( + r && + typeof r.addEventListener == "function" && + typeof r.removeEventListener == "function" + ); + } + }); + var RQe = N((hZ) => { + "use strict"; + _(); + x(); + Object.defineProperty(hZ, "__esModule", { value: !0 }); + var X2r = _n(), + e_r = Uc(), + t_r = X2(), + r_r = tl(); + function PQe(r, e, t) { + return t + ? PQe(r, e).pipe( + r_r.map(function (n) { + return e_r.isArray(n) ? t.apply(void 0, n) : t(n); + }) + ) + : new X2r.Observable(function (n) { + var a = function () { + for (var s = [], c = 0; c < arguments.length; c++) + s[c] = arguments[c]; + return n.next(s.length === 1 ? s[0] : s); + }, + i; + try { + i = r(a); + } catch (s) { + n.error(s); + return; + } + if (!!t_r.isFunction(e)) + return function () { + return e(a, i); + }; + }); + } + hZ.fromEventPattern = PQe; + }); + var NQe = N((fZ) => { + "use strict"; + _(); + x(); + Object.defineProperty(fZ, "__esModule", { value: !0 }); + var n_r = _n(), + BQe = O0(), + a_r = dp(); + function i_r(r, e, t, n, a) { + var i, s; + if (arguments.length == 1) { + var c = r; + (s = c.initialState), + (e = c.condition), + (t = c.iterate), + (i = c.resultSelector || BQe.identity), + (a = c.scheduler); + } else + n === void 0 || a_r.isScheduler(n) + ? ((s = r), (i = BQe.identity), (a = n)) + : ((s = r), (i = n)); + return new n_r.Observable(function (l) { + var d = s; + if (a) + return a.schedule(s_r, 0, { + subscriber: l, + iterate: t, + condition: e, + resultSelector: i, + state: d, + }); + do { + if (e) { + var m = void 0; + try { + m = e(d); + } catch (C) { + l.error(C); + return; + } + if (!m) { + l.complete(); + break; + } + } + var w = void 0; + try { + w = i(d); + } catch (C) { + l.error(C); + return; + } + if ((l.next(w), l.closed)) break; + try { + d = t(d); + } catch (C) { + l.error(C); + return; + } + } while (!0); + }); + } + fZ.generate = i_r; + function s_r(r) { + var e = r.subscriber, + t = r.condition; + if (!e.closed) { + if (r.needIterate) + try { + r.state = r.iterate(r.state); + } catch (i) { + e.error(i); + return; + } + else r.needIterate = !0; + if (t) { + var n = void 0; + try { + n = t(r.state); + } catch (i) { + e.error(i); + return; + } + if (!n) { + e.complete(); + return; + } + if (e.closed) return; + } + var a; + try { + a = r.resultSelector(r.state); + } catch (i) { + e.error(i); + return; + } + if (!e.closed && (e.next(a), !e.closed)) return this.schedule(r); + } + } + }); + var LQe = N((mZ) => { + "use strict"; + _(); + x(); + Object.defineProperty(mZ, "__esModule", { value: !0 }); + var o_r = bB(), + OQe = lp(); + function c_r(r, e, t) { + return ( + e === void 0 && (e = OQe.EMPTY), + t === void 0 && (t = OQe.EMPTY), + o_r.defer(function () { + return r() ? e : t; + }) + ); + } + mZ.iif = c_r; + }); + var bE = N((yZ) => { + "use strict"; + _(); + x(); + Object.defineProperty(yZ, "__esModule", { value: !0 }); + var u_r = Uc(); + function l_r(r) { + return !u_r.isArray(r) && r - parseFloat(r) + 1 >= 0; + } + yZ.isNumeric = l_r; + }); + var qQe = N((gZ) => { + "use strict"; + _(); + x(); + Object.defineProperty(gZ, "__esModule", { value: !0 }); + var d_r = _n(), + DQe = Hc(), + p_r = bE(); + function h_r(r, e) { + return ( + r === void 0 && (r = 0), + e === void 0 && (e = DQe.async), + (!p_r.isNumeric(r) || r < 0) && (r = 0), + (!e || typeof e.schedule != "function") && (e = DQe.async), + new d_r.Observable(function (t) { + return ( + t.add(e.schedule(f_r, r, { subscriber: t, counter: 0, period: r })), + t + ); + }) + ); + } + gZ.interval = h_r; + function f_r(r) { + var e = r.subscriber, + t = r.counter, + n = r.period; + e.next(t), this.schedule({ subscriber: e, counter: t + 1, period: n }, n); + } + }); + var vZ = N((bZ) => { + "use strict"; + _(); + x(); + Object.defineProperty(bZ, "__esModule", { value: !0 }); + var m_r = _n(), + y_r = dp(), + g_r = gB(), + b_r = s_(); + function v_r() { + for (var r = [], e = 0; e < arguments.length; e++) r[e] = arguments[e]; + var t = Number.POSITIVE_INFINITY, + n = null, + a = r[r.length - 1]; + return ( + y_r.isScheduler(a) + ? ((n = r.pop()), + r.length > 1 && typeof r[r.length - 1] == "number" && (t = r.pop())) + : typeof a == "number" && (t = r.pop()), + n === null && r.length === 1 && r[0] instanceof m_r.Observable + ? r[0] + : g_r.mergeAll(t)(b_r.fromArray(r, n)) + ); + } + bZ.merge = v_r; + }); + var wZ = N((vE) => { + "use strict"; + _(); + x(); + Object.defineProperty(vE, "__esModule", { value: !0 }); + var w_r = _n(), + __r = hB(); + vE.NEVER = new w_r.Observable(__r.noop); + function x_r() { + return vE.NEVER; + } + vE.never = x_r; + }); + var FQe = N((xZ) => { + "use strict"; + _(); + x(); + Object.defineProperty(xZ, "__esModule", { value: !0 }); + var T_r = _n(), + E_r = pp(), + C_r = Uc(), + I_r = lp(); + function _Z() { + for (var r = [], e = 0; e < arguments.length; e++) r[e] = arguments[e]; + if (r.length === 0) return I_r.EMPTY; + var t = r[0], + n = r.slice(1); + return r.length === 1 && C_r.isArray(t) + ? _Z.apply(void 0, t) + : new T_r.Observable(function (a) { + var i = function () { + return a.add(_Z.apply(void 0, n).subscribe(a)); + }; + return E_r.from(t).subscribe({ + next: function (s) { + a.next(s); + }, + error: i, + complete: i, + }); + }); + } + xZ.onErrorResumeNext = _Z; + }); + var HQe = N((wB) => { + "use strict"; + _(); + x(); + Object.defineProperty(wB, "__esModule", { value: !0 }); + var WQe = _n(), + A_r = ws(); + function k_r(r, e) { + return e + ? new WQe.Observable(function (t) { + var n = Object.keys(r), + a = new A_r.Subscription(); + return ( + a.add( + e.schedule(UQe, 0, { + keys: n, + index: 0, + subscriber: t, + subscription: a, + obj: r, + }) + ), + a + ); + }) + : new WQe.Observable(function (t) { + for ( + var n = Object.keys(r), a = 0; + a < n.length && !t.closed; + a++ + ) { + var i = n[a]; + r.hasOwnProperty(i) && t.next([i, r[i]]); + } + t.complete(); + }); + } + wB.pairs = k_r; + function UQe(r) { + var e = r.keys, + t = r.index, + n = r.subscriber, + a = r.subscription, + i = r.obj; + if (!n.closed) + if (t < e.length) { + var s = e[t]; + n.next([s, i[s]]), + a.add( + this.schedule({ + keys: e, + index: t + 1, + subscriber: n, + subscription: a, + obj: i, + }) + ); + } else n.complete(); + } + wB.dispatch = UQe; + }); + var EZ = N((TZ) => { + "use strict"; + _(); + x(); + Object.defineProperty(TZ, "__esModule", { value: !0 }); + function S_r(r, e) { + function t() { + return !t.pred.apply(t.thisArg, arguments); + } + return (t.pred = r), (t.thisArg = e), t; + } + TZ.not = S_r; + }); + var xb = N((wE) => { + "use strict"; + _(); + x(); + var M_r = + (wE && wE.__extends) || + (function () { + var r = function (e, t) { + return ( + (r = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (n, a) { + n.__proto__ = a; + }) || + function (n, a) { + for (var i in a) a.hasOwnProperty(i) && (n[i] = a[i]); + }), + r(e, t) + ); + }; + return function (e, t) { + r(e, t); + function n() { + this.constructor = e; + } + e.prototype = + t === null + ? Object.create(t) + : ((n.prototype = t.prototype), new n()); + }; + })(); + Object.defineProperty(wE, "__esModule", { value: !0 }); + var P_r = sr(); + function R_r(r, e) { + return function (n) { + return n.lift(new B_r(r, e)); + }; + } + wE.filter = R_r; + var B_r = (function () { + function r(e, t) { + (this.predicate = e), (this.thisArg = t); + } + return ( + (r.prototype.call = function (e, t) { + return t.subscribe(new N_r(e, this.predicate, this.thisArg)); + }), + r + ); + })(), + N_r = (function (r) { + M_r(e, r); + function e(t, n, a) { + var i = r.call(this, t) || this; + return (i.predicate = n), (i.thisArg = a), (i.count = 0), i; + } + return ( + (e.prototype._next = function (t) { + var n; + try { + n = this.predicate.call(this.thisArg, t, this.count++); + } catch (a) { + this.destination.error(a); + return; + } + n && this.destination.next(t); + }), + e + ); + })(P_r.Subscriber); + }); + var VQe = N((CZ) => { + "use strict"; + _(); + x(); + Object.defineProperty(CZ, "__esModule", { value: !0 }); + var O_r = EZ(), + zQe = mE(), + jQe = xb(), + KQe = _n(); + function L_r(r, e, t) { + return [ + jQe.filter(e, t)(new KQe.Observable(zQe.subscribeTo(r))), + jQe.filter(O_r.not(e, t))(new KQe.Observable(zQe.subscribeTo(r))), + ]; + } + CZ.partition = L_r; + }); + var IZ = N((Tb) => { + "use strict"; + _(); + x(); + var D_r = + (Tb && Tb.__extends) || + (function () { + var r = function (e, t) { + return ( + (r = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (n, a) { + n.__proto__ = a; + }) || + function (n, a) { + for (var i in a) a.hasOwnProperty(i) && (n[i] = a[i]); + }), + r(e, t) + ); + }; + return function (e, t) { + r(e, t); + function n() { + this.constructor = e; + } + e.prototype = + t === null + ? Object.create(t) + : ((n.prototype = t.prototype), new n()); + }; + })(); + Object.defineProperty(Tb, "__esModule", { value: !0 }); + var q_r = Uc(), + F_r = s_(), + W_r = D0(), + U_r = q0(); + function H_r() { + for (var r = [], e = 0; e < arguments.length; e++) r[e] = arguments[e]; + if (r.length === 1) + if (q_r.isArray(r[0])) r = r[0]; + else return r[0]; + return F_r.fromArray(r, void 0).lift(new GQe()); + } + Tb.race = H_r; + var GQe = (function () { + function r() {} + return ( + (r.prototype.call = function (e, t) { + return t.subscribe(new YQe(e)); + }), + r + ); + })(); + Tb.RaceOperator = GQe; + var YQe = (function (r) { + D_r(e, r); + function e(t) { + var n = r.call(this, t) || this; + return ( + (n.hasFirst = !1), (n.observables = []), (n.subscriptions = []), n + ); + } + return ( + (e.prototype._next = function (t) { + this.observables.push(t); + }), + (e.prototype._complete = function () { + var t = this.observables, + n = t.length; + if (n === 0) this.destination.complete(); + else { + for (var a = 0; a < n && !this.hasFirst; a++) { + var i = t[a], + s = U_r.subscribeToResult(this, i, void 0, a); + this.subscriptions && this.subscriptions.push(s), this.add(s); + } + this.observables = null; + } + }), + (e.prototype.notifyNext = function (t, n, a) { + if (!this.hasFirst) { + this.hasFirst = !0; + for (var i = 0; i < this.subscriptions.length; i++) + if (i !== a) { + var s = this.subscriptions[i]; + s.unsubscribe(), this.remove(s); + } + this.subscriptions = null; + } + this.destination.next(n); + }), + e + ); + })(W_r.OuterSubscriber); + Tb.RaceSubscriber = YQe; + }); + var JQe = N((_B) => { + "use strict"; + _(); + x(); + Object.defineProperty(_B, "__esModule", { value: !0 }); + var z_r = _n(); + function j_r(r, e, t) { + return ( + r === void 0 && (r = 0), + new z_r.Observable(function (n) { + e === void 0 && ((e = r), (r = 0)); + var a = 0, + i = r; + if (t) + return t.schedule($Qe, 0, { + index: a, + count: e, + start: r, + subscriber: n, + }); + do { + if (a++ >= e) { + n.complete(); + break; + } + if ((n.next(i++), n.closed)) break; + } while (!0); + }) + ); + } + _B.range = j_r; + function $Qe(r) { + var e = r.start, + t = r.index, + n = r.count, + a = r.subscriber; + if (t >= n) { + a.complete(); + return; + } + a.next(e), + !a.closed && ((r.index = t + 1), (r.start = e + 1), this.schedule(r)); + } + _B.dispatch = $Qe; + }); + var kZ = N((AZ) => { + "use strict"; + _(); + x(); + Object.defineProperty(AZ, "__esModule", { value: !0 }); + var K_r = _n(), + V_r = Hc(), + ZQe = bE(), + QQe = dp(); + function G_r(r, e, t) { + r === void 0 && (r = 0); + var n = -1; + return ( + ZQe.isNumeric(e) + ? (n = (Number(e) < 1 && 1) || Number(e)) + : QQe.isScheduler(e) && (t = e), + QQe.isScheduler(t) || (t = V_r.async), + new K_r.Observable(function (a) { + var i = ZQe.isNumeric(r) ? r : +r - t.now(); + return t.schedule(Y_r, i, { index: 0, period: n, subscriber: a }); + }) + ); + } + AZ.timer = G_r; + function Y_r(r) { + var e = r.index, + t = r.period, + n = r.subscriber; + if ((n.next(e), !n.closed)) { + if (t === -1) return n.complete(); + (r.index = e + 1), this.schedule(r, t); + } + } + }); + var XQe = N((SZ) => { + "use strict"; + _(); + x(); + Object.defineProperty(SZ, "__esModule", { value: !0 }); + var $_r = _n(), + J_r = pp(), + Z_r = lp(); + function Q_r(r, e) { + return new $_r.Observable(function (t) { + var n; + try { + n = r(); + } catch (c) { + t.error(c); + return; + } + var a; + try { + a = e(n); + } catch (c) { + t.error(c); + return; + } + var i = a ? J_r.from(a) : Z_r.EMPTY, + s = i.subscribe(t); + return function () { + s.unsubscribe(), n && n.unsubscribe(); + }; + }); + } + SZ.using = Q_r; + }); + var TB = N((Eb) => { + "use strict"; + _(); + x(); + var eXe = + (Eb && Eb.__extends) || + (function () { + var r = function (e, t) { + return ( + (r = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (n, a) { + n.__proto__ = a; + }) || + function (n, a) { + for (var i in a) a.hasOwnProperty(i) && (n[i] = a[i]); + }), + r(e, t) + ); + }; + return function (e, t) { + r(e, t); + function n() { + this.constructor = e; + } + e.prototype = + t === null + ? Object.create(t) + : ((n.prototype = t.prototype), new n()); + }; + })(); + Object.defineProperty(Eb, "__esModule", { value: !0 }); + var X_r = s_(), + exr = Uc(), + txr = sr(), + xB = p_(), + MZ = Ci(); + function rxr() { + for (var r = [], e = 0; e < arguments.length; e++) r[e] = arguments[e]; + var t = r[r.length - 1]; + return ( + typeof t == "function" && r.pop(), + X_r.fromArray(r, void 0).lift(new tXe(t)) + ); + } + Eb.zip = rxr; + var tXe = (function () { + function r(e) { + this.resultSelector = e; + } + return ( + (r.prototype.call = function (e, t) { + return t.subscribe(new rXe(e, this.resultSelector)); + }), + r + ); + })(); + Eb.ZipOperator = tXe; + var rXe = (function (r) { + eXe(e, r); + function e(t, n, a) { + a === void 0 && (a = Object.create(null)); + var i = r.call(this, t) || this; + return ( + (i.resultSelector = n), + (i.iterators = []), + (i.active = 0), + (i.resultSelector = typeof n == "function" ? n : void 0), + i + ); + } + return ( + (e.prototype._next = function (t) { + var n = this.iterators; + exr.isArray(t) + ? n.push(new axr(t)) + : typeof t[xB.iterator] == "function" + ? n.push(new nxr(t[xB.iterator]())) + : n.push(new ixr(this.destination, this, t)); + }), + (e.prototype._complete = function () { + var t = this.iterators, + n = t.length; + if ((this.unsubscribe(), n === 0)) { + this.destination.complete(); + return; + } + this.active = n; + for (var a = 0; a < n; a++) { + var i = t[a]; + if (i.stillUnsubscribed) { + var s = this.destination; + s.add(i.subscribe()); + } else this.active--; + } + }), + (e.prototype.notifyInactive = function () { + this.active--, this.active === 0 && this.destination.complete(); + }), + (e.prototype.checkIterators = function () { + for ( + var t = this.iterators, n = t.length, a = this.destination, i = 0; + i < n; + i++ + ) { + var s = t[i]; + if (typeof s.hasValue == "function" && !s.hasValue()) return; + } + for (var c = !1, l = [], i = 0; i < n; i++) { + var s = t[i], + d = s.next(); + if ((s.hasCompleted() && (c = !0), d.done)) { + a.complete(); + return; + } + l.push(d.value); + } + this.resultSelector ? this._tryresultSelector(l) : a.next(l), + c && a.complete(); + }), + (e.prototype._tryresultSelector = function (t) { + var n; + try { + n = this.resultSelector.apply(this, t); + } catch (a) { + this.destination.error(a); + return; + } + this.destination.next(n); + }), + e + ); + })(txr.Subscriber); + Eb.ZipSubscriber = rXe; + var nxr = (function () { + function r(e) { + (this.iterator = e), (this.nextResult = e.next()); + } + return ( + (r.prototype.hasValue = function () { + return !0; + }), + (r.prototype.next = function () { + var e = this.nextResult; + return (this.nextResult = this.iterator.next()), e; + }), + (r.prototype.hasCompleted = function () { + var e = this.nextResult; + return Boolean(e && e.done); + }), + r + ); + })(), + axr = (function () { + function r(e) { + (this.array = e), + (this.index = 0), + (this.length = 0), + (this.length = e.length); + } + return ( + (r.prototype[xB.iterator] = function () { + return this; + }), + (r.prototype.next = function (e) { + var t = this.index++, + n = this.array; + return t < this.length + ? { value: n[t], done: !1 } + : { value: null, done: !0 }; + }), + (r.prototype.hasValue = function () { + return this.array.length > this.index; + }), + (r.prototype.hasCompleted = function () { + return this.array.length === this.index; + }), + r + ); + })(), + ixr = (function (r) { + eXe(e, r); + function e(t, n, a) { + var i = r.call(this, t) || this; + return ( + (i.parent = n), + (i.observable = a), + (i.stillUnsubscribed = !0), + (i.buffer = []), + (i.isComplete = !1), + i + ); + } + return ( + (e.prototype[xB.iterator] = function () { + return this; + }), + (e.prototype.next = function () { + var t = this.buffer; + return t.length === 0 && this.isComplete + ? { value: null, done: !0 } + : { value: t.shift(), done: !1 }; + }), + (e.prototype.hasValue = function () { + return this.buffer.length > 0; + }), + (e.prototype.hasCompleted = function () { + return this.buffer.length === 0 && this.isComplete; + }), + (e.prototype.notifyComplete = function () { + this.buffer.length > 0 + ? ((this.isComplete = !0), this.parent.notifyInactive()) + : this.destination.complete(); + }), + (e.prototype.notifyNext = function (t) { + this.buffer.push(t), this.parent.checkIterators(); + }), + (e.prototype.subscribe = function () { + return MZ.innerSubscribe( + this.observable, + new MZ.SimpleInnerSubscriber(this) + ); + }), + e + ); + })(MZ.SimpleOuterSubscriber); + }); + var _E = N((Nt) => { + "use strict"; + _(); + x(); + Object.defineProperty(Nt, "__esModule", { value: !0 }); + var sxr = _n(); + Nt.Observable = sxr.Observable; + var oxr = yJ(); + Nt.ConnectableObservable = oxr.ConnectableObservable; + var cxr = bJ(); + Nt.GroupedObservable = cxr.GroupedObservable; + var uxr = vb(); + Nt.observable = uxr.observable; + var lxr = yc(); + Nt.Subject = lxr.Subject; + var dxr = vJ(); + Nt.BehaviorSubject = dxr.BehaviorSubject; + var pxr = lB(); + Nt.ReplaySubject = pxr.ReplaySubject; + var hxr = iE(); + Nt.AsyncSubject = hxr.AsyncSubject; + var nXe = RJ(); + Nt.asap = nXe.asap; + Nt.asapScheduler = nXe.asapScheduler; + var aXe = Hc(); + Nt.async = aXe.async; + Nt.asyncScheduler = aXe.asyncScheduler; + var iXe = xJ(); + Nt.queue = iXe.queue; + Nt.queueScheduler = iXe.queueScheduler; + var sXe = ZZe(); + Nt.animationFrame = sXe.animationFrame; + Nt.animationFrameScheduler = sXe.animationFrameScheduler; + var oXe = eQe(); + Nt.VirtualTimeScheduler = oXe.VirtualTimeScheduler; + Nt.VirtualAction = oXe.VirtualAction; + var fxr = _J(); + Nt.Scheduler = fxr.Scheduler; + var mxr = ws(); + Nt.Subscription = mxr.Subscription; + var yxr = sr(); + Nt.Subscriber = yxr.Subscriber; + var cXe = rE(); + Nt.Notification = cXe.Notification; + Nt.NotificationKind = cXe.NotificationKind; + var gxr = aB(); + Nt.pipe = gxr.pipe; + var bxr = hB(); + Nt.noop = bxr.noop; + var vxr = O0(); + Nt.identity = vxr.identity; + var wxr = tQe(); + Nt.isObservable = wxr.isObservable; + var _xr = c_(); + Nt.ArgumentOutOfRangeError = _xr.ArgumentOutOfRangeError; + var xxr = u_(); + Nt.EmptyError = xxr.EmptyError; + var Txr = H6(); + Nt.ObjectUnsubscribedError = Txr.ObjectUnsubscribedError; + var Exr = eJ(); + Nt.UnsubscriptionError = Exr.UnsubscriptionError; + var Cxr = qJ(); + Nt.TimeoutError = Cxr.TimeoutError; + var Ixr = iQe(); + Nt.bindCallback = Ixr.bindCallback; + var Axr = uQe(); + Nt.bindNodeCallback = Axr.bindNodeCallback; + var kxr = fB(); + Nt.combineLatest = kxr.combineLatest; + var Sxr = gE(); + Nt.concat = Sxr.concat; + var Mxr = bB(); + Nt.defer = Mxr.defer; + var Pxr = lp(); + Nt.empty = Pxr.empty; + var Rxr = AQe(); + Nt.forkJoin = Rxr.forkJoin; + var Bxr = pp(); + Nt.from = Bxr.from; + var Nxr = MQe(); + Nt.fromEvent = Nxr.fromEvent; + var Oxr = RQe(); + Nt.fromEventPattern = Oxr.fromEventPattern; + var Lxr = NQe(); + Nt.generate = Lxr.generate; + var Dxr = LQe(); + Nt.iif = Dxr.iif; + var qxr = qQe(); + Nt.interval = qxr.interval; + var Fxr = vZ(); + Nt.merge = Fxr.merge; + var Wxr = wZ(); + Nt.never = Wxr.never; + var Uxr = eE(); + Nt.of = Uxr.of; + var Hxr = FQe(); + Nt.onErrorResumeNext = Hxr.onErrorResumeNext; + var zxr = HQe(); + Nt.pairs = zxr.pairs; + var jxr = VQe(); + Nt.partition = jxr.partition; + var Kxr = IZ(); + Nt.race = Kxr.race; + var Vxr = JQe(); + Nt.range = Vxr.range; + var Gxr = uB(); + Nt.throwError = Gxr.throwError; + var Yxr = kZ(); + Nt.timer = Yxr.timer; + var $xr = XQe(); + Nt.using = $xr.using; + var Jxr = TB(); + Nt.zip = Jxr.zip; + var Zxr = rZ(); + Nt.scheduled = Zxr.scheduled; + var Qxr = lp(); + Nt.EMPTY = Qxr.EMPTY; + var Xxr = wZ(); + Nt.NEVER = Xxr.NEVER; + var eTr = W6(); + Nt.config = eTr.config; + }); + var xE = N((Svn, PZ) => { + _(); + x(); + function lXe(r) { + var e, + t, + n = ""; + if (typeof r == "string" || typeof r == "number") n += r; + else if (typeof r == "object") + if (Array.isArray(r)) + for (e = 0; e < r.length; e++) + r[e] && (t = lXe(r[e])) && (n && (n += " "), (n += t)); + else for (e in r) r[e] && (n && (n += " "), (n += e)); + return n; + } + function uXe() { + for (var r, e, t = 0, n = ""; t < arguments.length; ) + (r = arguments[t++]) && (e = lXe(r)) && (n && (n += " "), (n += e)); + return n; + } + (PZ.exports = uXe), (PZ.exports.clsx = uXe); + }); + var f_ = {}; + gd(f_, { + useCallback: () => aTr, + useContext: () => iTr, + useDebugValue: () => sTr, + useEffect: () => tTr, + useErrorBoundary: () => oTr, + useId: () => cTr, + useImperativeHandle: () => nTr, + useLayoutEffect: () => _Xe, + useMemo: () => NZ, + useReducer: () => wXe, + useRef: () => rTr, + useState: () => vXe, + }); + function Cb(r, e) { + wr.__h && wr.__h(li, r, h_ || e), (h_ = 0); + var t = li.__H || (li.__H = { __: [], __h: [] }); + return r >= t.__.length && t.__.push({ __V: EB }), t.__[r]; + } + function vXe(r) { + return (h_ = 1), wXe(xXe, r); + } + function wXe(r, e, t) { + var n = Cb(W0++, 2); + if ( + ((n.t = r), + !n.__c && + ((n.__ = [ + t ? t(e) : xXe(void 0, e), + function (i) { + var s = n.__N ? n.__N[0] : n.__[0], + c = n.t(s, i); + s !== c && ((n.__N = [c, n.__[1]]), n.__c.setState({})); + }, + ]), + (n.__c = li), + !li.u)) + ) { + li.u = !0; + var a = li.shouldComponentUpdate; + li.shouldComponentUpdate = function (i, s, c) { + if (!n.__c.__H) return !0; + var l = n.__c.__H.__.filter(function (m) { + return m.__c; + }); + if ( + l.every(function (m) { + return !m.__N; + }) + ) + return !a || a.call(this, i, s, c); + var d = !1; + return ( + l.forEach(function (m) { + if (m.__N) { + var w = m.__[0]; + (m.__ = m.__N), (m.__N = void 0), w !== m.__[0] && (d = !0); + } + }), + !(!d && n.__c.props === i) && (!a || a.call(this, i, s, c)) + ); + }; + } + return n.__N || n.__; + } + function tTr(r, e) { + var t = Cb(W0++, 3); + !wr.__s && OZ(t.__H, e) && ((t.__ = r), (t.i = e), li.__H.__h.push(t)); + } + function _Xe(r, e) { + var t = Cb(W0++, 4); + !wr.__s && OZ(t.__H, e) && ((t.__ = r), (t.i = e), li.__h.push(t)); + } + function rTr(r) { + return ( + (h_ = 5), + NZ(function () { + return { current: r }; + }, []) + ); + } + function nTr(r, e, t) { + (h_ = 6), + _Xe( + function () { + return typeof r == "function" + ? (r(e()), + function () { + return r(null); + }) + : r + ? ((r.current = e()), + function () { + return (r.current = null); + }) + : void 0; + }, + t == null ? t : t.concat(r) + ); + } + function NZ(r, e) { + var t = Cb(W0++, 7); + return OZ(t.__H, e) ? ((t.__V = r()), (t.i = e), (t.__h = r), t.__V) : t.__; + } + function aTr(r, e) { + return ( + (h_ = 8), + NZ(function () { + return r; + }, e) + ); + } + function iTr(r) { + var e = li.context[r.__c], + t = Cb(W0++, 9); + return ( + (t.c = r), + e ? (t.__ == null && ((t.__ = !0), e.sub(li)), e.props.value) : r.__ + ); + } + function sTr(r, e) { + wr.useDebugValue && wr.useDebugValue(e ? e(r) : r); + } + function oTr(r) { + var e = Cb(W0++, 10), + t = vXe(); + return ( + (e.__ = r), + li.componentDidCatch || + (li.componentDidCatch = function (n, a) { + e.__ && e.__(n, a), t[1](n); + }), + [ + t[0], + function () { + t[1](void 0); + }, + ] + ); + } + function cTr() { + var r = Cb(W0++, 11); + if (!r.__) { + for (var e = li.__v; e !== null && !e.__m && e.__ !== null; ) e = e.__; + var t = e.__m || (e.__m = [0, 0]); + r.__ = "P" + t[0] + "-" + t[1]++; + } + return r.__; + } + function uTr() { + for (var r; (r = bXe.shift()); ) + if (r.__P && r.__H) + try { + r.__H.__h.forEach(CB), r.__H.__h.forEach(BZ), (r.__H.__h = []); + } catch (e) { + (r.__H.__h = []), wr.__e(e, r.__v); + } + } + function lTr(r) { + var e, + t = function () { + clearTimeout(n), gXe && cancelAnimationFrame(e), setTimeout(r); + }, + n = setTimeout(t, 100); + gXe && (e = requestAnimationFrame(t)); + } + function CB(r) { + var e = li, + t = r.__c; + typeof t == "function" && ((r.__c = void 0), t()), (li = e); + } + function BZ(r) { + var e = li; + (r.__c = r.__()), (li = e); + } + function OZ(r, e) { + return ( + !r || + r.length !== e.length || + e.some(function (t, n) { + return t !== r[n]; + }) + ); + } + function xXe(r, e) { + return typeof e == "function" ? e(r) : e; + } + var W0, + li, + RZ, + dXe, + h_, + bXe, + EB, + pXe, + hXe, + fXe, + mXe, + yXe, + gXe, + m_ = yt(() => { + _(); + x(); + Wc(); + (h_ = 0), + (bXe = []), + (EB = []), + (pXe = wr.__b), + (hXe = wr.__r), + (fXe = wr.diffed), + (mXe = wr.__c), + (yXe = wr.unmount); + (wr.__b = function (r) { + (li = null), pXe && pXe(r); + }), + (wr.__r = function (r) { + hXe && hXe(r), (W0 = 0); + var e = (li = r.__c).__H; + e && + (RZ === li + ? ((e.__h = []), + (li.__h = []), + e.__.forEach(function (t) { + t.__N && (t.__ = t.__N), (t.__V = EB), (t.__N = t.i = void 0); + })) + : (e.__h.forEach(CB), e.__h.forEach(BZ), (e.__h = []))), + (RZ = li); + }), + (wr.diffed = function (r) { + fXe && fXe(r); + var e = r.__c; + e && + e.__H && + (e.__H.__h.length && + ((bXe.push(e) !== 1 && dXe === wr.requestAnimationFrame) || + ((dXe = wr.requestAnimationFrame) || lTr)(uTr)), + e.__H.__.forEach(function (t) { + t.i && (t.__H = t.i), + t.__V !== EB && (t.__ = t.__V), + (t.i = void 0), + (t.__V = EB); + })), + (RZ = li = null); + }), + (wr.__c = function (r, e) { + e.some(function (t) { + try { + t.__h.forEach(CB), + (t.__h = t.__h.filter(function (n) { + return !n.__ || BZ(n); + })); + } catch (n) { + e.some(function (a) { + a.__h && (a.__h = []); + }), + (e = []), + wr.__e(n, t.__v); + } + }), + mXe && mXe(r, e); + }), + (wr.unmount = function (r) { + yXe && yXe(r); + var e, + t = r.__c; + t && + t.__H && + (t.__H.__.forEach(function (n) { + try { + CB(n); + } catch (a) { + e = a; + } + }), + (t.__H = void 0), + e && wr.__e(e, t.__v)); + }); + gXe = typeof requestAnimationFrame == "function"; + }); + var TXe = N((IB) => { + "use strict"; + _(); + x(); + Object.defineProperty(IB, "__esModule", { value: !0 }); + IB.LIB_VERSION = void 0; + IB.LIB_VERSION = "3.6.4"; + }); + var CXe = N((AB) => { + "use strict"; + _(); + x(); + Object.defineProperty(AB, "__esModule", { value: !0 }); + AB.CloseIcon = void 0; + var EXe = (Wc(), In(Cu)); + function dTr(r) { + return (0, EXe.h)( + "svg", + Object.assign( + { + width: "40", + height: "40", + viewBox: "0 0 40 40", + fill: "none", + xmlns: "http://www.w3.org/2000/svg", + }, + r + ), + (0, EXe.h)("path", { + d: "M13.7677 13L12.3535 14.4142L18.3535 20.4142L12.3535 26.4142L13.7677 27.8284L19.7677 21.8284L25.7677 27.8284L27.1819 26.4142L21.1819 20.4142L27.1819 14.4142L25.7677 13L19.7677 19L13.7677 13Z", + }) + ); + } + AB.CloseIcon = dTr; + }); + var IXe = N((LZ) => { + "use strict"; + _(); + x(); + Object.defineProperty(LZ, "__esModule", { value: !0 }); + LZ.default = + "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjgiIGhlaWdodD0iMjgiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGNpcmNsZSBjeD0iMTQiIGN5PSIxNCIgcj0iMTQiIGZpbGw9IiMwMDUyRkYiLz48cGF0aCBkPSJNMTQuMDM3IDE4LjkyNmMtMi43NSAwLTQuOTA3LTIuMjA1LTQuOTA3LTQuOTI2IDAtMi43MiAyLjIzLTQuOTI2IDQuOTA3LTQuOTI2YTQuODY2IDQuODY2IDAgMCAxIDQuODMzIDQuMTE4aDQuOTgyYy0uNDQ2LTUuMDczLTQuNjg0LTkuMDQ0LTkuODE1LTkuMDQ0QzguNjEgNC4xNDggNC4xNDkgOC41NiA0LjE0OSAxNHM0LjM4NyA5Ljg1MiA5Ljg5IDkuODUyYzUuMjA0IDAgOS4zNjgtMy45NyA5LjgxNC05LjA0M0gxOC44N2E0Ljg2NiA0Ljg2NiAwIDAgMS00LjgzMyA0LjExN1oiIGZpbGw9IiNmZmYiLz48L3N2Zz4="; + }); + var AXe = N((DZ) => { + "use strict"; + _(); + x(); + Object.defineProperty(DZ, "__esModule", { value: !0 }); + DZ.default = + "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjgiIGhlaWdodD0iMjgiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGNpcmNsZSBjeD0iMTQiIGN5PSIxNCIgcj0iMTQiIGZpbGw9IiMwMDUyRkYiLz48cGF0aCBkPSJNMjMuODUyIDE0QTkuODM0IDkuODM0IDAgMCAxIDE0IDIzLjg1MiA5LjgzNCA5LjgzNCAwIDAgMSA0LjE0OCAxNCA5LjgzNCA5LjgzNCAwIDAgMSAxNCA0LjE0OCA5LjgzNCA5LjgzNCAwIDAgMSAyMy44NTIgMTRaIiBmaWxsPSIjZmZmIi8+PHBhdGggZD0iTTExLjE4NSAxMi41MDRjMC0uNDU2IDAtLjcxLjA5OC0uODYyLjA5OC0uMTUyLjE5Ni0uMzA0LjM0My0uMzU1LjE5Ni0uMTAyLjM5Mi0uMTAyLjg4MS0uMTAyaDIuOTg2Yy40OSAwIC42ODYgMCAuODgyLjEwMi4xNDYuMTAxLjI5My4yMDMuMzQyLjM1NS4wOTguMjAzLjA5OC40MDYuMDk4Ljg2MnYyLjk5MmMwIC40NTcgMCAuNzEtLjA5OC44NjMtLjA5OC4xNTItLjE5NS4zMDQtLjM0Mi4zNTUtLjE5Ni4xMDEtLjM5Mi4xMDEtLjg4Mi4xMDFoLTIuOTg2Yy0uNDkgMC0uNjg1IDAtLjg4LS4xMDEtLjE0OC0uMTAyLS4yOTUtLjIwMy0uMzQ0LS4zNTUtLjA5OC0uMjAzLS4wOTgtLjQwNi0uMDk4LS44NjN2LTIuOTkyWiIgZmlsbD0iIzAwNTJGRiIvPjwvc3ZnPg=="; + }); + var kXe = N((kB) => { + "use strict"; + _(); + x(); + Object.defineProperty(kB, "__esModule", { value: !0 }); + kB.QRCodeIcon = void 0; + var Rh = (Wc(), In(Cu)); + function pTr(r) { + return (0, Rh.h)( + "svg", + Object.assign( + { + width: "10", + height: "10", + viewBox: "0 0 10 10", + xmlns: "http://www.w3.org/2000/svg", + }, + r + ), + (0, Rh.h)("path", { + d: "M8.2271 1.77124L7.0271 1.77124V2.97124H8.2271V1.77124Z", + }), + (0, Rh.h)("path", { + d: "M5.44922 0.199219L5.44922 4.54922L9.79922 4.54922V0.199219L5.44922 0.199219ZM8.89922 3.64922L6.34922 3.64922L6.34922 1.09922L8.89922 1.09922V3.64922Z", + }), + (0, Rh.h)("path", { + d: "M2.97124 1.77124L1.77124 1.77124L1.77124 2.97124H2.97124V1.77124Z", + }), + (0, Rh.h)("path", { + d: "M0.199219 4.54922L4.54922 4.54922L4.54922 0.199219L0.199219 0.199219L0.199219 4.54922ZM1.09922 1.09922L3.64922 1.09922L3.64922 3.64922L1.09922 3.64922L1.09922 1.09922Z", + }), + (0, Rh.h)("path", { + d: "M2.97124 7.0271H1.77124L1.77124 8.2271H2.97124V7.0271Z", + }), + (0, Rh.h)("path", { + d: "M0.199219 9.79922H4.54922L4.54922 5.44922L0.199219 5.44922L0.199219 9.79922ZM1.09922 6.34922L3.64922 6.34922L3.64922 8.89922H1.09922L1.09922 6.34922Z", + }), + (0, Rh.h)("path", { + d: "M8.89922 7.39912H7.99922V5.40112H5.44922L5.44922 9.79912H6.34922L6.34922 6.30112H7.09922V8.29912H9.79922V5.40112H8.89922V7.39912Z", + }), + (0, Rh.h)("path", { + d: "M7.99912 8.89917H7.09912V9.79917H7.99912V8.89917Z", + }), + (0, Rh.h)("path", { + d: "M9.79917 8.89917H8.89917V9.79917H9.79917V8.89917Z", + }) + ); + } + kB.QRCodeIcon = pTr; + }); + var SXe = N((qZ) => { + "use strict"; + _(); + x(); + Object.defineProperty(qZ, "__esModule", { value: !0 }); + var hTr = ` -`;dee.default=aMr});var Grt=O(pee=>{"use strict";x();T();Object.defineProperty(pee,"__esModule",{value:!0});pee.default=` +`; + qZ.default = hTr; + }); + var MXe = N((FZ) => { + "use strict"; + _(); + x(); + Object.defineProperty(FZ, "__esModule", { value: !0 }); + FZ.default = ` -`});var Jrt=O(zO=>{"use strict";x();T();Object.defineProperty(zO,"__esModule",{value:!0});zO.StatusDotIcon=void 0;var Zrt=(eu(),Nn(Wu));function iMr(r){return(0,Zrt.h)("svg",Object.assign({width:"10",height:"10",viewBox:"0 0 10 10",xmlns:"http://www.w3.org/2000/svg"},r),(0,Zrt.h)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M2.29995 4.99995C2.29995 5.57985 1.82985 6.04995 1.24995 6.04995C0.670052 6.04995 0.199951 5.57985 0.199951 4.99995C0.199951 4.42005 0.670052 3.94995 1.24995 3.94995C1.82985 3.94995 2.29995 4.42005 2.29995 4.99995ZM4.99995 6.04995C5.57985 6.04995 6.04995 5.57985 6.04995 4.99995C6.04995 4.42005 5.57985 3.94995 4.99995 3.94995C4.42005 3.94995 3.94995 4.42005 3.94995 4.99995C3.94995 5.57985 4.42005 6.04995 4.99995 6.04995ZM8.74995 6.04995C9.32985 6.04995 9.79995 5.57985 9.79995 4.99995C9.79995 4.42005 9.32985 3.94995 8.74995 3.94995C8.17005 3.94995 7.69995 4.42005 7.69995 4.99995C7.69995 5.57985 8.17005 6.04995 8.74995 6.04995Z"}))}zO.StatusDotIcon=iMr});var $rt=O((N_n,Yrt)=>{x();T();function Krt(r){this.mode=vl.MODE_8BIT_BYTE,this.data=r,this.parsedData=[];for(var e=0,t=this.data.length;e65536?(n[0]=240|(a&1835008)>>>18,n[1]=128|(a&258048)>>>12,n[2]=128|(a&4032)>>>6,n[3]=128|a&63):a>2048?(n[0]=224|(a&61440)>>>12,n[1]=128|(a&4032)>>>6,n[2]=128|a&63):a>128?(n[0]=192|(a&1984)>>>6,n[1]=128|a&63):n[0]=a,this.parsedData.push(n)}this.parsedData=Array.prototype.concat.apply([],this.parsedData),this.parsedData.length!=this.data.length&&(this.parsedData.unshift(191),this.parsedData.unshift(187),this.parsedData.unshift(239))}Krt.prototype={getLength:function(r){return this.parsedData.length},write:function(r){for(var e=0,t=this.parsedData.length;e=7&&this.setupTypeNumber(r),this.dataCache==null&&(this.dataCache=ef.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)),this.mapData(this.dataCache,e)},setupPositionProbePattern:function(r,e){for(var t=-1;t<=7;t++)if(!(r+t<=-1||this.moduleCount<=r+t))for(var n=-1;n<=7;n++)e+n<=-1||this.moduleCount<=e+n||(0<=t&&t<=6&&(n==0||n==6)||0<=n&&n<=6&&(t==0||t==6)||2<=t&&t<=4&&2<=n&&n<=4?this.modules[r+t][e+n]=!0:this.modules[r+t][e+n]=!1)},getBestMaskPattern:function(){for(var r=0,e=0,t=0;t<8;t++){this.makeImpl(!0,t);var n=qi.getLostPoint(this);(t==0||r>n)&&(r=n,e=t)}return e},createMovieClip:function(r,e,t){var n=r.createEmptyMovieClip(e,t),a=1;this.make();for(var i=0;i>t&1)==1;this.modules[Math.floor(t/3)][t%3+this.moduleCount-8-3]=n}for(var t=0;t<18;t++){var n=!r&&(e>>t&1)==1;this.modules[t%3+this.moduleCount-8-3][Math.floor(t/3)]=n}},setupTypeInfo:function(r,e){for(var t=this.errorCorrectLevel<<3|e,n=qi.getBCHTypeInfo(t),a=0;a<15;a++){var i=!r&&(n>>a&1)==1;a<6?this.modules[a][8]=i:a<8?this.modules[a+1][8]=i:this.modules[this.moduleCount-15+a][8]=i}for(var a=0;a<15;a++){var i=!r&&(n>>a&1)==1;a<8?this.modules[8][this.moduleCount-a-1]=i:a<9?this.modules[8][15-a-1+1]=i:this.modules[8][15-a-1]=i}this.modules[this.moduleCount-8][8]=!r},mapData:function(r,e){for(var t=-1,n=this.moduleCount-1,a=7,i=0,s=this.moduleCount-1;s>0;s-=2)for(s==6&&s--;;){for(var c=0;c<2;c++)if(this.modules[n][s-c]==null){var l=!1;i>>a&1)==1);var d=qi.getMask(e,n,s-c);d&&(l=!l),this.modules[n][s-c]=l,a--,a==-1&&(i++,a=7)}if(n+=t,n<0||this.moduleCount<=n){n-=t,t=-t;break}}}};ef.PAD0=236;ef.PAD1=17;ef.createData=function(r,e,t){for(var n=$h.getRSBlocks(r,e),a=new Qrt,i=0;ic*8)throw new Error("code length overflow. ("+a.getLengthInBits()+">"+c*8+")");for(a.getLengthInBits()+4<=c*8&&a.put(0,4);a.getLengthInBits()%8!=0;)a.putBit(!1);for(;!(a.getLengthInBits()>=c*8||(a.put(ef.PAD0,8),a.getLengthInBits()>=c*8));)a.put(ef.PAD1,8);return ef.createBytes(a,n)};ef.createBytes=function(r,e){for(var t=0,n=0,a=0,i=new Array(e.length),s=new Array(e.length),c=0;c=0?k.get(A):0}}for(var L=0,f=0;f=0;)e^=qi.G15<=0;)e^=qi.G18<>>=1;return e},getPatternPosition:function(r){return qi.PATTERN_POSITION_TABLE[r-1]},getMask:function(r,e,t){switch(r){case wy.PATTERN000:return(e+t)%2==0;case wy.PATTERN001:return e%2==0;case wy.PATTERN010:return t%3==0;case wy.PATTERN011:return(e+t)%3==0;case wy.PATTERN100:return(Math.floor(e/2)+Math.floor(t/3))%2==0;case wy.PATTERN101:return e*t%2+e*t%3==0;case wy.PATTERN110:return(e*t%2+e*t%3)%2==0;case wy.PATTERN111:return(e*t%3+(e+t)%2)%2==0;default:throw new Error("bad maskPattern:"+r)}},getErrorCorrectPolynomial:function(r){for(var e=new f5([1],0),t=0;t5&&(t+=3+i-5)}for(var n=0;n=256;)r-=255;return eo.EXP_TABLE[r]},EXP_TABLE:new Array(256),LOG_TABLE:new Array(256)};for(ls=0;ls<8;ls++)eo.EXP_TABLE[ls]=1<>>7-r%8&1)==1},put:function(r,e){for(var t=0;t>>e-t-1&1)==1)},getLengthInBits:function(){return this.length},putBit:function(r){var e=Math.floor(this.length/8);this.buffer.length<=e&&this.buffer.push(0),r&&(this.buffer[e]|=128>>>this.length%8),this.length++}};var hee=[[17,14,11,7],[32,26,20,14],[53,42,32,24],[78,62,46,34],[106,84,60,44],[134,106,74,58],[154,122,86,64],[192,152,108,84],[230,180,130,98],[271,213,151,119],[321,251,177,137],[367,287,203,155],[425,331,241,177],[458,362,258,194],[520,412,292,220],[586,450,322,250],[644,504,364,280],[718,560,394,310],[792,624,442,338],[858,666,482,382],[929,711,509,403],[1003,779,565,439],[1091,857,611,461],[1171,911,661,511],[1273,997,715,535],[1367,1059,751,593],[1465,1125,805,625],[1528,1190,868,658],[1628,1264,908,698],[1732,1370,982,742],[1840,1452,1030,790],[1952,1538,1112,842],[2068,1628,1168,898],[2188,1722,1228,958],[2303,1809,1283,983],[2431,1911,1351,1051],[2563,1989,1423,1093],[2699,2099,1499,1139],[2809,2213,1579,1219],[2953,2331,1663,1273]];function Xrt(r){var e=this;if(this.options={padding:4,width:256,height:256,typeNumber:4,color:"#000000",background:"#ffffff",ecl:"M",image:{svg:"",width:0,height:0}},typeof r=="string"&&(r={content:r}),r)for(var t in r)this.options[t]=r[t];if(typeof this.options.content!="string")throw new Error("Expected 'content' as string!");if(this.options.content.length===0)throw new Error("Expected 'content' to be non-empty!");if(!(this.options.padding>=0))throw new Error("Expected 'padding' value to be non-negative!");if(!(this.options.width>0)||!(this.options.height>0))throw new Error("Expected 'width' or 'height' value to be higher than zero!");function n(d){switch(d){case"L":return xy.L;case"M":return xy.M;case"Q":return xy.Q;case"H":return xy.H;default:throw new Error("Unknwon error correction level: "+d)}}function a(d,f){for(var w=i(d),E=1,k=0,A=0,L=hee.length;A<=L;A++){var q=hee[A];if(!q)throw new Error("Content too long: expected "+k+" but got "+w);switch(f){case"L":k=q[0];break;case"M":k=q[1];break;case"Q":k=q[2];break;case"H":k=q[3];break;default:throw new Error("Unknwon error correction level: "+f)}if(w<=k)break;E++}if(E>hee.length)throw new Error("Content too long");return E}function i(d){var f=encodeURI(d).toString().replace(/\%[0-9a-fA-F]{2}/g,"a");return f.length+(f.length!=d?3:0)}var s=this.options.content,c=a(s,this.options.ecl),l=n(this.options.ecl);this.qrcode=new ef(c,l),this.qrcode.addData(s),this.qrcode.make()}Xrt.prototype.svg=function(r){var e=this.options||{},t=this.qrcode.modules;typeof r>"u"&&(r={container:e.container||"svg"});for(var n=typeof e.pretty<"u"?!!e.pretty:!0,a=n?" ":"",i=n?`\r -`:"",s=e.width,c=e.height,l=t.length,d=s/(l+2*e.padding),f=c/(l+2*e.padding),w=typeof e.join<"u"?!!e.join:!1,E=typeof e.swap<"u"?!!e.swap:!1,k=typeof e.xmlDeclaration<"u"?!!e.xmlDeclaration:!0,A=typeof e.predefined<"u"?!!e.predefined:!1,L=A?a+''+i:"",q=a+''+i,U="",j="",H=0;H'+i:U+=a+''+i}}w&&(U=a+'');let o="";if(this.options.image!==void 0&&this.options.image.svg){let y=s*this.options.image.width/100,h=c*this.options.image.height/100,v=s/2-y/2,_=c/2-h/2;o+=``,o+=this.options.image.svg+i,o+=""}var p="";switch(r.container){case"svg":k&&(p+=''+i),p+=''+i,p+=L+q+U,p+=o,p+="";break;case"svg-viewbox":k&&(p+=''+i),p+=''+i,p+=L+q+U,p+=o,p+="";break;case"g":p+=''+i,p+=L+q+U,p+=o,p+="";break;default:p+=(L+q+U+o).replace(/^\s+/,"");break}return p};Yrt.exports=Xrt});var tnt=O(m5=>{"use strict";x();T();var sMr=m5&&m5.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(m5,"__esModule",{value:!0});m5.QRCode=void 0;var oMr=(eu(),Nn(Wu)),ent=(h5(),Nn(p5)),cMr=sMr($rt()),uMr=r=>{let[e,t]=(0,ent.useState)("");return(0,ent.useEffect)(()=>{var n,a;let i=new cMr.default({content:r.content,background:r.bgColor||"#ffffff",color:r.fgColor||"#000000",container:"svg",ecl:"M",width:(n=r.width)!==null&&n!==void 0?n:256,height:(a=r.height)!==null&&a!==void 0?a:256,padding:0,image:r.image}),s=P.Buffer.from(i.svg(),"utf8").toString("base64");t(`data:image/svg+xml;base64,${s}`)}),e?(0,oMr.h)("img",{src:e,alt:"QR Code"}):null};m5.QRCode=uMr});var rnt=O(fee=>{"use strict";x();T();Object.defineProperty(fee,"__esModule",{value:!0});fee.default=".-cbwsdk-css-reset .-cbwsdk-spinner{display:inline-block}.-cbwsdk-css-reset .-cbwsdk-spinner svg{display:inline-block;animation:2s linear infinite -cbwsdk-spinner-svg}.-cbwsdk-css-reset .-cbwsdk-spinner svg circle{animation:1.9s ease-in-out infinite both -cbwsdk-spinner-circle;display:block;fill:rgba(0,0,0,0);stroke-dasharray:283;stroke-dashoffset:280;stroke-linecap:round;stroke-width:10px;transform-origin:50% 50%}@keyframes -cbwsdk-spinner-svg{0%{transform:rotateZ(0deg)}100%{transform:rotateZ(360deg)}}@keyframes -cbwsdk-spinner-circle{0%,25%{stroke-dashoffset:280;transform:rotate(0)}50%,75%{stroke-dashoffset:75;transform:rotate(45deg)}100%{stroke-dashoffset:280;transform:rotate(360deg)}}"});var nnt=O(y5=>{"use strict";x();T();var lMr=y5&&y5.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(y5,"__esModule",{value:!0});y5.Spinner=void 0;var HO=(eu(),Nn(Wu)),dMr=lMr(rnt()),pMr=r=>{var e;let t=(e=r.size)!==null&&e!==void 0?e:64,n=r.color||"#000";return(0,HO.h)("div",{class:"-cbwsdk-spinner"},(0,HO.h)("style",null,dMr.default),(0,HO.h)("svg",{viewBox:"0 0 100 100",xmlns:"http://www.w3.org/2000/svg",style:{width:t,height:t}},(0,HO.h)("circle",{style:{cx:50,cy:50,r:45,stroke:n}})))};y5.Spinner=pMr});var ant=O(mee=>{"use strict";x();T();Object.defineProperty(mee,"__esModule",{value:!0});mee.default=".-cbwsdk-css-reset .-cbwsdk-connect-content{height:430px;width:700px;border-radius:12px;padding:30px}.-cbwsdk-css-reset .-cbwsdk-connect-content.light{background:#fff}.-cbwsdk-css-reset .-cbwsdk-connect-content.dark{background:#0a0b0d}.-cbwsdk-css-reset .-cbwsdk-connect-content-header{display:flex;align-items:center;justify-content:space-between;margin:0 0 30px}.-cbwsdk-css-reset .-cbwsdk-connect-content-heading{font-style:normal;font-weight:500;font-size:28px;line-height:36px;margin:0}.-cbwsdk-css-reset .-cbwsdk-connect-content-heading.light{color:#0a0b0d}.-cbwsdk-css-reset .-cbwsdk-connect-content-heading.dark{color:#fff}.-cbwsdk-css-reset .-cbwsdk-connect-content-layout{display:flex;flex-direction:row}.-cbwsdk-css-reset .-cbwsdk-connect-content-column-left{margin-right:30px;display:flex;flex-direction:column;justify-content:space-between}.-cbwsdk-css-reset .-cbwsdk-connect-content-column-right{flex:25%;margin-right:34px}.-cbwsdk-css-reset .-cbwsdk-connect-content-qr-wrapper{width:220px;height:220px;border-radius:12px;display:flex;justify-content:center;align-items:center;background:#fff}.-cbwsdk-css-reset .-cbwsdk-connect-content-qr-connecting{position:absolute;top:0;bottom:0;left:0;right:0;display:flex;flex-direction:column;align-items:center;justify-content:center}.-cbwsdk-css-reset .-cbwsdk-connect-content-qr-connecting.light{background-color:rgba(255,255,255,.95)}.-cbwsdk-css-reset .-cbwsdk-connect-content-qr-connecting.light>p{color:#0a0b0d}.-cbwsdk-css-reset .-cbwsdk-connect-content-qr-connecting.dark{background-color:rgba(10,11,13,.9)}.-cbwsdk-css-reset .-cbwsdk-connect-content-qr-connecting.dark>p{color:#fff}.-cbwsdk-css-reset .-cbwsdk-connect-content-qr-connecting>p{font-size:12px;font-weight:bold;margin-top:16px}.-cbwsdk-css-reset .-cbwsdk-connect-content-update-app{border-radius:8px;font-size:14px;line-height:20px;padding:12px;width:339px}.-cbwsdk-css-reset .-cbwsdk-connect-content-update-app.light{background:#eef0f3;color:#5b636e}.-cbwsdk-css-reset .-cbwsdk-connect-content-update-app.dark{background:#1e2025;color:#8a919e}.-cbwsdk-css-reset .-cbwsdk-cancel-button{-webkit-appearance:none;border:none;background:none;cursor:pointer;padding:0;margin:0}.-cbwsdk-css-reset .-cbwsdk-cancel-button-x{position:relative;display:block;cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-wallet-steps{padding:0 0 0 16px;margin:0;width:100%;list-style:decimal}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-item{list-style-type:decimal;display:list-item;font-style:normal;font-weight:400;font-size:16px;line-height:24px;margin-top:20px}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-item.light{color:#0a0b0d}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-item.dark{color:#fff}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-item-wrapper{display:flex;align-items:center}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-pad-left{margin-left:6px}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-icon{display:flex;border-radius:50%;height:24px;width:24px}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-icon svg{margin:auto;display:block}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-icon.light{background:#0052ff}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-icon.dark{background:#588af5}.-cbwsdk-css-reset .-cbwsdk-connect-item{align-items:center;display:flex;flex-direction:row;padding:16px 24px;gap:12px;cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-connect-item.light{color:#0a0b0d}.-cbwsdk-css-reset .-cbwsdk-connect-item.light.selected{background:#f5f8ff;color:#0052ff}.-cbwsdk-css-reset .-cbwsdk-connect-item.dark{color:#fff}.-cbwsdk-css-reset .-cbwsdk-connect-item.dark.selected{background:#001033;color:#588af5}.-cbwsdk-css-reset .-cbwsdk-connect-item.selected{border-radius:100px;font-weight:600}.-cbwsdk-css-reset .-cbwsdk-connect-item-copy-wrapper{margin:0 4px 0 8px}.-cbwsdk-css-reset .-cbwsdk-connect-item-title{margin:0 0 0;font-size:16px;line-height:24px;font-weight:500}.-cbwsdk-css-reset .-cbwsdk-connect-item-description{font-weight:400;font-size:14px;line-height:20px;margin:0}"});var dnt=O(Rd=>{"use strict";x();T();var g5=Rd&&Rd.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Rd,"__esModule",{value:!0});Rd.CoinbaseAppSteps=Rd.CoinbaseWalletSteps=Rd.ConnectItem=Rd.ConnectContent=void 0;var Pd=g5(C4()),dr=(eu(),Nn(Wu)),int=(h5(),Nn(p5)),hMr=wm(),fMr=Frt(),mMr=Wrt(),yMr=g5(jrt()),gMr=g5(zrt()),ont=Hrt(),vMr=g5(Vrt()),bMr=g5(Grt()),wMr=Jrt(),xMr=tnt(),TMr=nnt(),_Mr=g5(ant()),snt={"coinbase-wallet-app":{title:"Coinbase Wallet app",description:"Connect with your self-custody wallet",icon:gMr.default,steps:unt},"coinbase-app":{title:"Coinbase app",description:"Connect with your Coinbase account",icon:yMr.default,steps:lnt}},CMr=r=>{switch(r){case"coinbase-app":return vMr.default;case"coinbase-wallet-app":default:return bMr.default}},yee=r=>r==="light"?"#FFFFFF":"#0A0B0D";function EMr(r){let{theme:e}=r,[t,n]=(0,int.useState)("coinbase-wallet-app"),a=(0,int.useCallback)(d=>{n(d)},[]),i=(0,hMr.createQrUrl)(r.sessionId,r.sessionSecret,r.linkAPIUrl,r.isParentConnection,r.version,r.chainId),s=snt[t];if(!t)return null;let c=s.steps,l=t==="coinbase-app";return(0,dr.h)("div",{"data-testid":"connect-content",class:(0,Pd.default)("-cbwsdk-connect-content",e)},(0,dr.h)("style",null,_Mr.default),(0,dr.h)("div",{class:"-cbwsdk-connect-content-header"},(0,dr.h)("h2",{class:(0,Pd.default)("-cbwsdk-connect-content-heading",e)},"Scan to connect with one of our mobile apps"),r.onCancel&&(0,dr.h)("button",{type:"button",class:"-cbwsdk-cancel-button",onClick:r.onCancel},(0,dr.h)(mMr.CloseIcon,{fill:e==="light"?"#0A0B0D":"#FFFFFF"}))),(0,dr.h)("div",{class:"-cbwsdk-connect-content-layout"},(0,dr.h)("div",{class:"-cbwsdk-connect-content-column-left"},(0,dr.h)("div",null,Object.entries(snt).map(([d,f])=>(0,dr.h)(cnt,{key:d,title:f.title,description:f.description,icon:f.icon,selected:t===d,onClick:()=>a(d),theme:e}))),l&&(0,dr.h)("div",{class:(0,Pd.default)("-cbwsdk-connect-content-update-app",e)},"Don\u2019t see a ",(0,dr.h)("strong",null,"Scan")," option? Update your Coinbase app to the latest version and try again.")),(0,dr.h)("div",{class:"-cbwsdk-connect-content-column-right"},(0,dr.h)("div",{class:"-cbwsdk-connect-content-qr-wrapper"},(0,dr.h)(xMr.QRCode,{content:i,width:200,height:200,fgColor:"#000",bgColor:"transparent",image:{svg:CMr(t),width:25,height:25}}),(0,dr.h)("input",{type:"hidden",name:"cbw-cbwsdk-version",value:fMr.LIB_VERSION}),(0,dr.h)("input",{type:"hidden",value:i})),(0,dr.h)(c,{theme:e}),!r.isConnected&&(0,dr.h)("div",{"data-testid":"connecting-spinner",class:(0,Pd.default)("-cbwsdk-connect-content-qr-connecting",e)},(0,dr.h)(TMr.Spinner,{size:36,color:e==="dark"?"#FFF":"#000"}),(0,dr.h)("p",null,"Connecting...")))))}Rd.ConnectContent=EMr;function cnt({title:r,description:e,icon:t,selected:n,theme:a,onClick:i}){return(0,dr.h)("div",{onClick:i,class:(0,Pd.default)("-cbwsdk-connect-item",a,{selected:n})},(0,dr.h)("div",null,(0,dr.h)("img",{src:t,alt:r})),(0,dr.h)("div",{class:"-cbwsdk-connect-item-copy-wrapper"},(0,dr.h)("h3",{class:"-cbwsdk-connect-item-title"},r),(0,dr.h)("p",{class:"-cbwsdk-connect-item-description"},e)))}Rd.ConnectItem=cnt;function unt({theme:r}){return(0,dr.h)("ol",{class:"-cbwsdk-wallet-steps"},(0,dr.h)("li",{class:(0,Pd.default)("-cbwsdk-wallet-steps-item",r)},(0,dr.h)("div",{class:"-cbwsdk-wallet-steps-item-wrapper"},"Open Coinbase Wallet app")),(0,dr.h)("li",{class:(0,Pd.default)("-cbwsdk-wallet-steps-item",r)},(0,dr.h)("div",{class:"-cbwsdk-wallet-steps-item-wrapper"},(0,dr.h)("span",null,"Tap ",(0,dr.h)("strong",null,"Scan")," "),(0,dr.h)("span",{class:(0,Pd.default)("-cbwsdk-wallet-steps-pad-left","-cbwsdk-wallet-steps-icon",r)},(0,dr.h)(ont.QRCodeIcon,{fill:yee(r)})))))}Rd.CoinbaseWalletSteps=unt;function lnt({theme:r}){return(0,dr.h)("ol",{class:"-cbwsdk-wallet-steps"},(0,dr.h)("li",{class:(0,Pd.default)("-cbwsdk-wallet-steps-item",r)},(0,dr.h)("div",{class:"-cbwsdk-wallet-steps-item-wrapper"},"Open Coinbase app")),(0,dr.h)("li",{class:(0,Pd.default)("-cbwsdk-wallet-steps-item",r)},(0,dr.h)("div",{class:"-cbwsdk-wallet-steps-item-wrapper"},(0,dr.h)("span",null,"Tap ",(0,dr.h)("strong",null,"More")),(0,dr.h)("span",{class:(0,Pd.default)("-cbwsdk-wallet-steps-pad-left","-cbwsdk-wallet-steps-icon",r)},(0,dr.h)(wMr.StatusDotIcon,{fill:yee(r)})),(0,dr.h)("span",{class:"-cbwsdk-wallet-steps-pad-left"},"then ",(0,dr.h)("strong",null,"Scan")),(0,dr.h)("span",{class:(0,Pd.default)("-cbwsdk-wallet-steps-pad-left","-cbwsdk-wallet-steps-icon",r)},(0,dr.h)(ont.QRCodeIcon,{fill:yee(r)})))))}Rd.CoinbaseAppSteps=lnt});var hnt=O(VO=>{"use strict";x();T();Object.defineProperty(VO,"__esModule",{value:!0});VO.ArrowLeftIcon=void 0;var pnt=(eu(),Nn(Wu));function kMr(r){return(0,pnt.h)("svg",Object.assign({width:"16",height:"16",viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg"},r),(0,pnt.h)("path",{d:"M8.60675 0.155884L7.37816 1.28209L12.7723 7.16662H0V8.83328H12.6548L6.82149 14.6666L8 15.8451L15.8201 8.02501L8.60675 0.155884Z"}))}VO.ArrowLeftIcon=kMr});var fnt=O(GO=>{"use strict";x();T();Object.defineProperty(GO,"__esModule",{value:!0});GO.LaptopIcon=void 0;var gee=(eu(),Nn(Wu));function SMr(r){return(0,gee.h)("svg",Object.assign({width:"14",height:"14",viewBox:"0 0 14 14",xmlns:"http://www.w3.org/2000/svg"},r),(0,gee.h)("path",{d:"M1.8001 2.2002H12.2001V9.40019H1.8001V2.2002ZM3.4001 3.8002V7.80019H10.6001V3.8002H3.4001Z"}),(0,gee.h)("path",{d:"M13.4001 10.2002H0.600098C0.600098 11.0838 1.31644 11.8002 2.2001 11.8002H11.8001C12.6838 11.8002 13.4001 11.0838 13.4001 10.2002Z"}))}GO.LaptopIcon=SMr});var ynt=O(ZO=>{"use strict";x();T();Object.defineProperty(ZO,"__esModule",{value:!0});ZO.SafeIcon=void 0;var mnt=(eu(),Nn(Wu));function AMr(r){return(0,mnt.h)("svg",Object.assign({width:"14",height:"14",viewBox:"0 0 14 14",xmlns:"http://www.w3.org/2000/svg"},r),(0,mnt.h)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M0.600098 0.600098V11.8001H13.4001V0.600098H0.600098ZM7.0001 9.2001C5.3441 9.2001 4.0001 7.8561 4.0001 6.2001C4.0001 4.5441 5.3441 3.2001 7.0001 3.2001C8.6561 3.2001 10.0001 4.5441 10.0001 6.2001C10.0001 7.8561 8.6561 9.2001 7.0001 9.2001ZM0.600098 12.6001H3.8001V13.4001H0.600098V12.6001ZM10.2001 12.6001H13.4001V13.4001H10.2001V12.6001ZM8.8001 6.2001C8.8001 7.19421 7.99421 8.0001 7.0001 8.0001C6.00598 8.0001 5.2001 7.19421 5.2001 6.2001C5.2001 5.20598 6.00598 4.4001 7.0001 4.4001C7.99421 4.4001 8.8001 5.20598 8.8001 6.2001Z"}))}ZO.SafeIcon=AMr});var gnt=O(vee=>{"use strict";x();T();Object.defineProperty(vee,"__esModule",{value:!0});vee.default=".-cbwsdk-css-reset .-cbwsdk-try-extension{display:flex;margin-top:12px;height:202px;width:700px;border-radius:12px;padding:30px}.-cbwsdk-css-reset .-cbwsdk-try-extension.light{background:#fff}.-cbwsdk-css-reset .-cbwsdk-try-extension.dark{background:#0a0b0d}.-cbwsdk-css-reset .-cbwsdk-try-extension-column-half{flex:50%}.-cbwsdk-css-reset .-cbwsdk-try-extension-heading{font-style:normal;font-weight:500;font-size:25px;line-height:32px;margin:0;max-width:204px}.-cbwsdk-css-reset .-cbwsdk-try-extension-heading.light{color:#0a0b0d}.-cbwsdk-css-reset .-cbwsdk-try-extension-heading.dark{color:#fff}.-cbwsdk-css-reset .-cbwsdk-try-extension-cta{appearance:none;border:none;background:none;color:#0052ff;cursor:pointer;padding:0;text-decoration:none;display:block;font-weight:600;font-size:16px;line-height:24px}.-cbwsdk-css-reset .-cbwsdk-try-extension-cta.light{color:#0052ff}.-cbwsdk-css-reset .-cbwsdk-try-extension-cta.dark{color:#588af5}.-cbwsdk-css-reset .-cbwsdk-try-extension-cta-wrapper{display:flex;align-items:center;margin-top:12px}.-cbwsdk-css-reset .-cbwsdk-try-extension-cta-icon{display:block;margin-left:4px;height:14px}.-cbwsdk-css-reset .-cbwsdk-try-extension-list{display:flex;flex-direction:column;justify-content:center;align-items:center;margin:0;padding:0;list-style:none;height:100%}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item{display:flex;align-items:center;flex-flow:nowrap;margin-top:24px}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item:first-of-type{margin-top:0}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item-icon-wrapper{display:block}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item-icon{display:flex;height:32px;width:32px;border-radius:50%}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item-icon svg{margin:auto;display:block}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item-icon.light{background:#eef0f3}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item-icon.dark{background:#1e2025}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item-copy{display:block;font-weight:400;font-size:14px;line-height:20px;padding-left:12px}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item-copy.light{color:#5b636e}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item-copy.dark{color:#8a919e}"});var bnt=O(v5=>{"use strict";x();T();var vnt=v5&&v5.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(v5,"__esModule",{value:!0});v5.TryExtensionContent=void 0;var f1=vnt(C4()),ds=(eu(),Nn(Wu)),bee=(h5(),Nn(p5)),MMr=hnt(),IMr=fnt(),PMr=ynt(),RMr=vnt(gnt());function NMr({theme:r}){let[e,t]=(0,bee.useState)(!1),n=(0,bee.useCallback)(()=>{window.open("https://api.wallet.coinbase.com/rpc/v2/desktop/chrome","_blank")},[]),a=(0,bee.useCallback)(()=>{e?window.location.reload():(n(),t(!0))},[n,e]);return(0,ds.h)("div",{class:(0,f1.default)("-cbwsdk-try-extension",r)},(0,ds.h)("style",null,RMr.default),(0,ds.h)("div",{class:"-cbwsdk-try-extension-column-half"},(0,ds.h)("h3",{class:(0,f1.default)("-cbwsdk-try-extension-heading",r)},"Or try the Coinbase Wallet browser extension"),(0,ds.h)("div",{class:"-cbwsdk-try-extension-cta-wrapper"},(0,ds.h)("button",{class:(0,f1.default)("-cbwsdk-try-extension-cta",r),onClick:a},e?"Refresh":"Install"),(0,ds.h)("div",null,!e&&(0,ds.h)(MMr.ArrowLeftIcon,{class:"-cbwsdk-try-extension-cta-icon",fill:r==="light"?"#0052FF":"#588AF5"})))),(0,ds.h)("div",{class:"-cbwsdk-try-extension-column-half"},(0,ds.h)("ul",{class:"-cbwsdk-try-extension-list"},(0,ds.h)("li",{class:"-cbwsdk-try-extension-list-item"},(0,ds.h)("div",{class:"-cbwsdk-try-extension-list-item-icon-wrapper"},(0,ds.h)("span",{class:(0,f1.default)("-cbwsdk-try-extension-list-item-icon",r)},(0,ds.h)(IMr.LaptopIcon,{fill:r==="light"?"#0A0B0D":"#FFFFFF"}))),(0,ds.h)("div",{class:(0,f1.default)("-cbwsdk-try-extension-list-item-copy",r)},"Connect with dapps with just one click on your desktop browser")),(0,ds.h)("li",{class:"-cbwsdk-try-extension-list-item"},(0,ds.h)("div",{class:"-cbwsdk-try-extension-list-item-icon-wrapper"},(0,ds.h)("span",{class:(0,f1.default)("-cbwsdk-try-extension-list-item-icon",r)},(0,ds.h)(PMr.SafeIcon,{fill:r==="light"?"#0A0B0D":"#FFFFFF"}))),(0,ds.h)("div",{class:(0,f1.default)("-cbwsdk-try-extension-list-item-copy",r)},"Add an additional layer of security by using a supported Ledger hardware wallet")))))}v5.TryExtensionContent=NMr});var wnt=O(wee=>{"use strict";x();T();Object.defineProperty(wee,"__esModule",{value:!0});wee.default=".-cbwsdk-css-reset .-cbwsdk-connect-dialog{z-index:2147483647;position:fixed;top:0;left:0;right:0;bottom:0;display:flex;align-items:center;justify-content:center}.-cbwsdk-css-reset .-cbwsdk-connect-dialog-backdrop{z-index:2147483647;position:fixed;top:0;left:0;right:0;bottom:0;transition:opacity .25s}.-cbwsdk-css-reset .-cbwsdk-connect-dialog-backdrop.light{background-color:rgba(0,0,0,.5)}.-cbwsdk-css-reset .-cbwsdk-connect-dialog-backdrop.dark{background-color:rgba(50,53,61,.4)}.-cbwsdk-css-reset .-cbwsdk-connect-dialog-backdrop-hidden{opacity:0}.-cbwsdk-css-reset .-cbwsdk-connect-dialog-box{display:flex;position:relative;flex-direction:column;transform:scale(1);transition:opacity .25s,transform .25s}.-cbwsdk-css-reset .-cbwsdk-connect-dialog-box-hidden{opacity:0;transform:scale(0.85)}.-cbwsdk-css-reset .-cbwsdk-connect-dialog-container{display:block}.-cbwsdk-css-reset .-cbwsdk-connect-dialog-container-hidden{display:none}"});var Tnt=O(b5=>{"use strict";x();T();var xnt=b5&&b5.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(b5,"__esModule",{value:!0});b5.ConnectDialog=void 0;var xee=xnt(C4()),m1=(eu(),Nn(Wu)),Tee=(h5(),Nn(p5)),OMr=dnt(),LMr=bnt(),BMr=xnt(wnt()),qMr=r=>{let{isOpen:e,darkMode:t}=r,[n,a]=(0,Tee.useState)(!e),[i,s]=(0,Tee.useState)(!e);(0,Tee.useEffect)(()=>{let l=[window.setTimeout(()=>{s(!e)},10)];return e?a(!1):l.push(window.setTimeout(()=>{a(!0)},360)),()=>{l.forEach(window.clearTimeout)}},[r.isOpen]);let c=t?"dark":"light";return(0,m1.h)("div",{class:(0,xee.default)("-cbwsdk-connect-dialog-container",n&&"-cbwsdk-connect-dialog-container-hidden")},(0,m1.h)("style",null,BMr.default),(0,m1.h)("div",{class:(0,xee.default)("-cbwsdk-connect-dialog-backdrop",c,i&&"-cbwsdk-connect-dialog-backdrop-hidden")}),(0,m1.h)("div",{class:"-cbwsdk-connect-dialog"},(0,m1.h)("div",{class:(0,xee.default)("-cbwsdk-connect-dialog-box",i&&"-cbwsdk-connect-dialog-box-hidden")},r.connectDisabled?null:(0,m1.h)(OMr.ConnectContent,{theme:c,version:r.version,sessionId:r.sessionId,sessionSecret:r.sessionSecret,linkAPIUrl:r.linkAPIUrl,isConnected:r.isConnected,isParentConnection:r.isParentConnection,chainId:r.chainId,onCancel:r.onCancel}),(0,m1.h)(LMr.TryExtensionContent,{theme:c}))))};b5.ConnectDialog=qMr});var Cnt=O(JO=>{"use strict";x();T();Object.defineProperty(JO,"__esModule",{value:!0});JO.LinkFlow=void 0;var _ee=(eu(),Nn(Wu)),_nt=t1(),DMr=Tnt(),Cee=class{constructor(e){this.extensionUI$=new _nt.BehaviorSubject({}),this.subscriptions=new _nt.Subscription,this.isConnected=!1,this.chainId=1,this.isOpen=!1,this.onCancel=null,this.root=null,this.connectDisabled=!1,this.darkMode=e.darkMode,this.version=e.version,this.sessionId=e.sessionId,this.sessionSecret=e.sessionSecret,this.linkAPIUrl=e.linkAPIUrl,this.isParentConnection=e.isParentConnection,this.connected$=e.connected$,this.chainId$=e.chainId$}attach(e){this.root=document.createElement("div"),this.root.className="-cbwsdk-link-flow-root",e.appendChild(this.root),this.render(),this.subscriptions.add(this.connected$.subscribe(t=>{this.isConnected!==t&&(this.isConnected=t,this.render())})),this.subscriptions.add(this.chainId$.subscribe(t=>{this.chainId!==t&&(this.chainId=t,this.render())}))}detach(){var e;!this.root||(this.subscriptions.unsubscribe(),(0,_ee.render)(null,this.root),(e=this.root.parentElement)===null||e===void 0||e.removeChild(this.root))}setConnectDisabled(e){this.connectDisabled=e}open(e){this.isOpen=!0,this.onCancel=e.onCancel,this.render()}close(){this.isOpen=!1,this.onCancel=null,this.render()}render(){if(!this.root)return;let e=this.extensionUI$.subscribe(()=>{!this.root||(0,_ee.render)((0,_ee.h)(DMr.ConnectDialog,{darkMode:this.darkMode,version:this.version,sessionId:this.sessionId,sessionSecret:this.sessionSecret,linkAPIUrl:this.linkAPIUrl,isOpen:this.isOpen,isConnected:this.isConnected,isParentConnection:this.isParentConnection,chainId:this.chainId,onCancel:this.onCancel,connectDisabled:this.connectDisabled}),this.root)});this.subscriptions.add(e)}};JO.LinkFlow=Cee});var Ent=O(Eee=>{"use strict";x();T();Object.defineProperty(Eee,"__esModule",{value:!0});Eee.default=".-cbwsdk-css-reset .-gear-container{margin-left:16px !important;margin-right:9px !important;display:flex;align-items:center;justify-content:center;width:24px;height:24px;transition:opacity .25s}.-cbwsdk-css-reset .-gear-container *{user-select:none}.-cbwsdk-css-reset .-gear-container svg{opacity:0;position:absolute}.-cbwsdk-css-reset .-gear-icon{height:12px;width:12px;z-index:10000}.-cbwsdk-css-reset .-cbwsdk-snackbar{align-items:flex-end;display:flex;flex-direction:column;position:fixed;right:0;top:0;z-index:2147483647}.-cbwsdk-css-reset .-cbwsdk-snackbar *{user-select:none}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance{display:flex;flex-direction:column;margin:8px 16px 0 16px;overflow:visible;text-align:left;transform:translateX(0);transition:opacity .25s,transform .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-header:hover .-gear-container svg{opacity:1}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-header{display:flex;align-items:center;background:#fff;overflow:hidden;border:1px solid #e7ebee;box-sizing:border-box;border-radius:8px;cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-header-cblogo{margin:8px 8px 8px 8px}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-header *{cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-header-message{color:#000;font-size:13px;line-height:1.5;user-select:none}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu{background:#fff;transition:opacity .25s ease-in-out,transform .25s linear,visibility 0s;visibility:hidden;border:1px solid #e7ebee;box-sizing:border-box;border-radius:8px;opacity:0;flex-direction:column;padding-left:8px;padding-right:8px}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item:last-child{margin-bottom:8px !important}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item:hover{background:#f5f7f8;border-radius:6px;transition:background .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item:hover span{color:#050f19;transition:color .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item:hover svg path{fill:#000;transition:fill .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item{visibility:inherit;height:35px;margin-top:8px;margin-bottom:0;display:flex;flex-direction:row;align-items:center;padding:8px;cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item *{visibility:inherit;cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item-is-red:hover{background:rgba(223,95,103,.2);transition:background .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item-is-red:hover *{cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item-is-red:hover svg path{fill:#df5f67;transition:fill .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item-is-red:hover span{color:#df5f67;transition:color .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item-info{color:#aaa;font-size:13px;margin:0 8px 0 32px;position:absolute}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-hidden{opacity:0;text-align:left;transform:translateX(25%);transition:opacity .5s linear}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-expanded .-cbwsdk-snackbar-instance-menu{opacity:1;display:flex;transform:translateY(8px);visibility:visible}"});var Snt=O(Nd=>{"use strict";x();T();var knt=Nd&&Nd.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Nd,"__esModule",{value:!0});Nd.SnackbarInstance=Nd.SnackbarContainer=Nd.Snackbar=void 0;var KO=knt(C4()),ps=(eu(),Nn(Wu)),kee=(h5(),Nn(p5)),FMr=knt(Ent()),UMr="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iMTIiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEyIDYuNzV2LTEuNWwtMS43Mi0uNTdjLS4wOC0uMjctLjE5LS41Mi0uMzItLjc3bC44MS0xLjYyLTEuMDYtMS4wNi0xLjYyLjgxYy0uMjQtLjEzLS41LS4yNC0uNzctLjMyTDYuNzUgMGgtMS41bC0uNTcgMS43MmMtLjI3LjA4LS41My4xOS0uNzcuMzJsLTEuNjItLjgxLTEuMDYgMS4wNi44MSAxLjYyYy0uMTMuMjQtLjI0LjUtLjMyLjc3TDAgNS4yNXYxLjVsMS43Mi41N2MuMDguMjcuMTkuNTMuMzIuNzdsLS44MSAxLjYyIDEuMDYgMS4wNiAxLjYyLS44MWMuMjQuMTMuNS4yMy43Ny4zMkw1LjI1IDEyaDEuNWwuNTctMS43MmMuMjctLjA4LjUyLS4xOS43Ny0uMzJsMS42Mi44MSAxLjA2LTEuMDYtLjgxLTEuNjJjLjEzLS4yNC4yMy0uNS4zMi0uNzdMMTIgNi43NXpNNiA4LjVhMi41IDIuNSAwIDAxMC01IDIuNSAyLjUgMCAwMTAgNXoiIGZpbGw9IiMwNTBGMTkiLz48L3N2Zz4=";function WMr(r){switch(r){case"coinbase-app":return"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzAiIGhlaWdodD0iMzAiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTE0LjY3NCAxOC44NThjLTIuMDQ1IDAtMy42NDgtMS43MjItMy42NDgtMy44NDVzMS42NTktMy44NDUgMy42NDgtMy44NDVjMS44MjQgMCAzLjMxNyAxLjM3NyAzLjU5MyAzLjIxNGgzLjcwM2MtLjMzMS0zLjk2LTMuNDgyLTcuMDU5LTcuMjk2LTcuMDU5LTQuMDM0IDAtNy4zNSAzLjQ0My03LjM1IDcuNjkgMCA0LjI0NiAzLjI2IDcuNjkgNy4zNSA3LjY5IDMuODcgMCA2Ljk2NS0zLjEgNy4yOTYtNy4wNTloLTMuNzAzYy0uMjc2IDEuODM2LTEuNzY5IDMuMjE0LTMuNTkzIDMuMjE0WiIgZmlsbD0iI2ZmZiIvPjxwYXRoIGQ9Ik0wIDEwLjY3OGMwLTMuNzExIDAtNS41OTYuNzQyLTcuMDIzQTYuNTMyIDYuNTMyIDAgMCAxIDMuNjU1Ljc0MkM1LjA4MiAwIDYuOTY3IDAgMTAuNjc4IDBoNy45MzhjMy43MTEgMCA1LjU5NiAwIDcuMDIzLjc0MmE2LjUzMSA2LjUzMSAwIDAgMSAyLjkxMyAyLjkxM2MuNzQyIDEuNDI3Ljc0MiAzLjMxMi43NDIgNy4wMjN2Ny45MzhjMCAzLjcxMSAwIDUuNTk2LS43NDIgNy4wMjNhNi41MzEgNi41MzEgMCAwIDEtMi45MTMgMi45MTNjLTEuNDI3Ljc0Mi0zLjMxMi43NDItNy4wMjMuNzQyaC03LjkzOGMtMy43MTEgMC01LjU5NiAwLTcuMDIzLS43NDJhNi41MzEgNi41MzEgMCAwIDEtMi45MTMtMi45MTNDMCAyNC4yMTIgMCAyMi4zODQgMCAxOC42MTZ2LTcuOTM4WiIgZmlsbD0iIzAwNTJGRiIvPjxwYXRoIGQ9Ik0xNC42ODQgMTkuNzczYy0yLjcyNyAwLTQuODY0LTIuMjk1LTQuODY0LTUuMTI2IDAtMi44MzEgMi4yMS01LjEyNyA0Ljg2NC01LjEyNyAyLjQzMiAwIDQuNDIyIDEuODM3IDQuNzkgNC4yODVoNC45MzhjLS40NDItNS4yOC00LjY0My05LjQxMS05LjcyOC05LjQxMS01LjM4IDAtOS44MDIgNC41OS05LjgwMiAxMC4yNTMgMCA1LjY2MiA0LjM0OCAxMC4yNTMgOS44MDIgMTAuMjUzIDUuMTU5IDAgOS4yODYtNC4xMzIgOS43MjgtOS40MTFoLTQuOTM4Yy0uMzY4IDIuNDQ4LTIuMzU4IDQuMjg0LTQuNzkgNC4yODRaIiBmaWxsPSIjZmZmIi8+PC9zdmc+";case"coinbase-wallet-app":default:return"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzIiIGhlaWdodD0iMzIiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEuNDkyIDEwLjQxOWE4LjkzIDguOTMgMCAwMTguOTMtOC45M2gxMS4xNjNhOC45MyA4LjkzIDAgMDE4LjkzIDguOTN2MTEuMTYzYTguOTMgOC45MyAwIDAxLTguOTMgOC45M0gxMC40MjJhOC45MyA4LjkzIDAgMDEtOC45My04LjkzVjEwLjQxOXoiIGZpbGw9IiMxNjUyRjAiLz48cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTEwLjQxOSAwSDIxLjU4QzI3LjMzNSAwIDMyIDQuNjY1IDMyIDEwLjQxOVYyMS41OEMzMiAyNy4zMzUgMjcuMzM1IDMyIDIxLjU4MSAzMkgxMC40MkM0LjY2NSAzMiAwIDI3LjMzNSAwIDIxLjU4MVYxMC40MkMwIDQuNjY1IDQuNjY1IDAgMTAuNDE5IDB6bTAgMS40ODhhOC45MyA4LjkzIDAgMDAtOC45MyA4LjkzdjExLjE2M2E4LjkzIDguOTMgMCAwMDguOTMgOC45M0gyMS41OGE4LjkzIDguOTMgMCAwMDguOTMtOC45M1YxMC40MmE4LjkzIDguOTMgMCAwMC04LjkzLTguOTNIMTAuNDJ6IiBmaWxsPSIjZmZmIi8+PHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xNS45OTggMjYuMDQ5Yy01LjU0OSAwLTEwLjA0Ny00LjQ5OC0xMC4wNDctMTAuMDQ3IDAtNS41NDggNC40OTgtMTAuMDQ2IDEwLjA0Ny0xMC4wNDYgNS41NDggMCAxMC4wNDYgNC40OTggMTAuMDQ2IDEwLjA0NiAwIDUuNTQ5LTQuNDk4IDEwLjA0Ny0xMC4wNDYgMTAuMDQ3eiIgZmlsbD0iI2ZmZiIvPjxwYXRoIGQ9Ik0xMi43NjIgMTQuMjU0YzAtLjgyMi42NjctMS40ODkgMS40ODktMS40ODloMy40OTdjLjgyMiAwIDEuNDg4LjY2NiAxLjQ4OCAxLjQ4OXYzLjQ5N2MwIC44MjItLjY2NiAxLjQ4OC0xLjQ4OCAxLjQ4OGgtMy40OTdhMS40ODggMS40ODggMCAwMS0xLjQ4OS0xLjQ4OHYtMy40OTh6IiBmaWxsPSIjMTY1MkYwIi8+PC9zdmc+"}}var See=class{constructor(e){this.items=new Map,this.nextItemKey=0,this.root=null,this.darkMode=e.darkMode}attach(e){this.root=document.createElement("div"),this.root.className="-cbwsdk-snackbar-root",e.appendChild(this.root),this.render()}presentItem(e){let t=this.nextItemKey++;return this.items.set(t,e),this.render(),()=>{this.items.delete(t),this.render()}}clear(){this.items.clear(),this.render()}render(){!this.root||(0,ps.render)((0,ps.h)("div",null,(0,ps.h)(Nd.SnackbarContainer,{darkMode:this.darkMode},Array.from(this.items.entries()).map(([e,t])=>(0,ps.h)(Nd.SnackbarInstance,Object.assign({},t,{key:e}))))),this.root)}};Nd.Snackbar=See;var jMr=r=>(0,ps.h)("div",{class:(0,KO.default)("-cbwsdk-snackbar-container")},(0,ps.h)("style",null,FMr.default),(0,ps.h)("div",{class:"-cbwsdk-snackbar"},r.children));Nd.SnackbarContainer=jMr;var zMr=({autoExpand:r,message:e,menuItems:t,appSrc:n})=>{let[a,i]=(0,kee.useState)(!0),[s,c]=(0,kee.useState)(r??!1);(0,kee.useEffect)(()=>{let d=[window.setTimeout(()=>{i(!1)},1),window.setTimeout(()=>{c(!0)},1e4)];return()=>{d.forEach(window.clearTimeout)}});let l=()=>{c(!s)};return(0,ps.h)("div",{class:(0,KO.default)("-cbwsdk-snackbar-instance",a&&"-cbwsdk-snackbar-instance-hidden",s&&"-cbwsdk-snackbar-instance-expanded")},(0,ps.h)("div",{class:"-cbwsdk-snackbar-instance-header",onClick:l},(0,ps.h)("img",{src:WMr(n),class:"-cbwsdk-snackbar-instance-header-cblogo"}),(0,ps.h)("div",{class:"-cbwsdk-snackbar-instance-header-message"},e),(0,ps.h)("div",{class:"-gear-container"},!s&&(0,ps.h)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,ps.h)("circle",{cx:"12",cy:"12",r:"12",fill:"#F5F7F8"})),(0,ps.h)("img",{src:UMr,class:"-gear-icon",title:"Expand"}))),t&&t.length>0&&(0,ps.h)("div",{class:"-cbwsdk-snackbar-instance-menu"},t.map((d,f)=>(0,ps.h)("div",{class:(0,KO.default)("-cbwsdk-snackbar-instance-menu-item",d.isRed&&"-cbwsdk-snackbar-instance-menu-item-is-red"),onClick:d.onClick,key:f},(0,ps.h)("svg",{width:d.svgWidth,height:d.svgHeight,viewBox:"0 0 10 11",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,ps.h)("path",{"fill-rule":d.defaultFillRule,"clip-rule":d.defaultClipRule,d:d.path,fill:"#AAAAAA"})),(0,ps.h)("span",{class:(0,KO.default)("-cbwsdk-snackbar-instance-menu-item-info",d.isRed&&"-cbwsdk-snackbar-instance-menu-item-info-is-red")},d.info)))))};Nd.SnackbarInstance=zMr});var Ant=O(Aee=>{"use strict";x();T();Object.defineProperty(Aee,"__esModule",{value:!0});Aee.default='@namespace svg "http://www.w3.org/2000/svg";.-cbwsdk-css-reset,.-cbwsdk-css-reset *{animation:none;animation-delay:0;animation-direction:normal;animation-duration:0;animation-fill-mode:none;animation-iteration-count:1;animation-name:none;animation-play-state:running;animation-timing-function:ease;backface-visibility:visible;background:0;background-attachment:scroll;background-clip:border-box;background-color:rgba(0,0,0,0);background-image:none;background-origin:padding-box;background-position:0 0;background-position-x:0;background-position-y:0;background-repeat:repeat;background-size:auto auto;border:0;border-style:none;border-width:medium;border-color:inherit;border-bottom:0;border-bottom-color:inherit;border-bottom-left-radius:0;border-bottom-right-radius:0;border-bottom-style:none;border-bottom-width:medium;border-collapse:separate;border-image:none;border-left:0;border-left-color:inherit;border-left-style:none;border-left-width:medium;border-radius:0;border-right:0;border-right-color:inherit;border-right-style:none;border-right-width:medium;border-spacing:0;border-top:0;border-top-color:inherit;border-top-left-radius:0;border-top-right-radius:0;border-top-style:none;border-top-width:medium;box-shadow:none;box-sizing:border-box;caption-side:top;clear:none;clip:auto;color:inherit;columns:auto;column-count:auto;column-fill:balance;column-gap:normal;column-rule:medium none currentColor;column-rule-color:currentColor;column-rule-style:none;column-rule-width:none;column-span:1;column-width:auto;counter-increment:none;counter-reset:none;direction:ltr;empty-cells:show;float:none;font:normal;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Helvetica Neue",Arial,sans-serif;font-size:medium;font-style:normal;font-variant:normal;font-weight:normal;height:auto;hyphens:none;letter-spacing:normal;line-height:normal;list-style:none;list-style-image:none;list-style-position:outside;list-style-type:disc;margin:0;margin-bottom:0;margin-left:0;margin-right:0;margin-top:0;opacity:1;orphans:0;outline:0;outline-color:invert;outline-style:none;outline-width:medium;overflow:visible;overflow-x:visible;overflow-y:visible;padding:0;padding-bottom:0;padding-left:0;padding-right:0;padding-top:0;page-break-after:auto;page-break-before:auto;page-break-inside:auto;perspective:none;perspective-origin:50% 50%;pointer-events:auto;position:static;quotes:"\\201C" "\\201D" "\\2018" "\\2019";tab-size:8;table-layout:auto;text-align:inherit;text-align-last:auto;text-decoration:none;text-decoration-color:inherit;text-decoration-line:none;text-decoration-style:solid;text-indent:0;text-shadow:none;text-transform:none;transform:none;transform-style:flat;transition:none;transition-delay:0s;transition-duration:0s;transition-property:none;transition-timing-function:ease;unicode-bidi:normal;vertical-align:baseline;visibility:visible;white-space:normal;widows:0;word-spacing:normal;z-index:auto}.-cbwsdk-css-reset strong{font-weight:bold}.-cbwsdk-css-reset *{box-sizing:border-box;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Helvetica Neue",Arial,sans-serif;line-height:1}.-cbwsdk-css-reset [class*=container]{margin:0;padding:0}.-cbwsdk-css-reset style{display:none}'});var Mnt=O(w5=>{"use strict";x();T();var HMr=w5&&w5.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(w5,"__esModule",{value:!0});w5.injectCssReset=void 0;var VMr=HMr(Ant());function GMr(){let r=document.createElement("style");r.type="text/css",r.appendChild(document.createTextNode(VMr.default)),document.documentElement.appendChild(r)}w5.injectCssReset=GMr});var Int=O(QO=>{"use strict";x();T();Object.defineProperty(QO,"__esModule",{value:!0});QO.WalletSDKUI=void 0;var ZMr=Cnt(),JMr=Snt(),KMr=Mnt(),Mee=class{constructor(e){this.standalone=null,this.attached=!1,this.appSrc=null,this.snackbar=new JMr.Snackbar({darkMode:e.darkMode}),this.linkFlow=new ZMr.LinkFlow({darkMode:e.darkMode,version:e.version,sessionId:e.session.id,sessionSecret:e.session.secret,linkAPIUrl:e.linkAPIUrl,connected$:e.connected$,chainId$:e.chainId$,isParentConnection:!1})}attach(){if(this.attached)throw new Error("Coinbase Wallet SDK UI is already attached");let e=document.documentElement,t=document.createElement("div");t.className="-cbwsdk-css-reset",e.appendChild(t),this.linkFlow.attach(t),this.snackbar.attach(t),this.attached=!0,(0,KMr.injectCssReset)()}setConnectDisabled(e){this.linkFlow.setConnectDisabled(e)}addEthereumChain(e){}watchAsset(e){}switchEthereumChain(e){}requestEthereumAccounts(e){this.linkFlow.open({onCancel:e.onCancel})}hideRequestEthereumAccounts(){this.linkFlow.close()}signEthereumMessage(e){}signEthereumTransaction(e){}submitEthereumTransaction(e){}ethereumAddressFromSignedMessage(e){}showConnecting(e){let t;return e.isUnlinkedErrorState?t={autoExpand:!0,message:"Connection lost",appSrc:this.appSrc,menuItems:[{isRed:!1,info:"Reset connection",svgWidth:"10",svgHeight:"11",path:"M5.00008 0.96875C6.73133 0.96875 8.23758 1.94375 9.00008 3.375L10.0001 2.375V5.5H9.53133H7.96883H6.87508L7.80633 4.56875C7.41258 3.3875 6.31258 2.53125 5.00008 2.53125C3.76258 2.53125 2.70633 3.2875 2.25633 4.36875L0.812576 3.76875C1.50008 2.125 3.11258 0.96875 5.00008 0.96875ZM2.19375 6.43125C2.5875 7.6125 3.6875 8.46875 5 8.46875C6.2375 8.46875 7.29375 7.7125 7.74375 6.63125L9.1875 7.23125C8.5 8.875 6.8875 10.0312 5 10.0312C3.26875 10.0312 1.7625 9.05625 1 7.625L0 8.625V5.5H0.46875H2.03125H3.125L2.19375 6.43125Z",defaultFillRule:"evenodd",defaultClipRule:"evenodd",onClick:e.onResetConnection}]}:t={message:"Confirm on phone",appSrc:this.appSrc,menuItems:[{isRed:!0,info:"Cancel transaction",svgWidth:"11",svgHeight:"11",path:"M10.3711 1.52346L9.21775 0.370117L5.37109 4.21022L1.52444 0.370117L0.371094 1.52346L4.2112 5.37012L0.371094 9.21677L1.52444 10.3701L5.37109 6.53001L9.21775 10.3701L10.3711 9.21677L6.53099 5.37012L10.3711 1.52346Z",defaultFillRule:"inherit",defaultClipRule:"inherit",onClick:e.onCancel},{isRed:!1,info:"Reset connection",svgWidth:"10",svgHeight:"11",path:"M5.00008 0.96875C6.73133 0.96875 8.23758 1.94375 9.00008 3.375L10.0001 2.375V5.5H9.53133H7.96883H6.87508L7.80633 4.56875C7.41258 3.3875 6.31258 2.53125 5.00008 2.53125C3.76258 2.53125 2.70633 3.2875 2.25633 4.36875L0.812576 3.76875C1.50008 2.125 3.11258 0.96875 5.00008 0.96875ZM2.19375 6.43125C2.5875 7.6125 3.6875 8.46875 5 8.46875C6.2375 8.46875 7.29375 7.7125 7.74375 6.63125L9.1875 7.23125C8.5 8.875 6.8875 10.0312 5 10.0312C3.26875 10.0312 1.7625 9.05625 1 7.625L0 8.625V5.5H0.46875H2.03125H3.125L2.19375 6.43125Z",defaultFillRule:"evenodd",defaultClipRule:"evenodd",onClick:e.onResetConnection}]},this.snackbar.presentItem(t)}setAppSrc(e){this.appSrc=e}reloadUI(){document.location.reload()}inlineAccountsResponse(){return!1}inlineAddEthereumChain(e){return!1}inlineWatchAsset(){return!1}inlineSwitchEthereumChain(){return!1}setStandalone(e){this.standalone=e}isStandalone(){var e;return(e=this.standalone)!==null&&e!==void 0?e:!1}};QO.WalletSDKUI=Mee});var Rnt=O(XO=>{"use strict";x();T();Object.defineProperty(XO,"__esModule",{value:!0});var x5;(function(r){r.typeOfFunction="function",r.boolTrue=!0})(x5||(x5={}));function Pnt(r,e,t){if(!t||typeof t.value!==x5.typeOfFunction)throw new TypeError("Only methods can be decorated with @bind. <"+e+"> is not a method!");return{configurable:x5.boolTrue,get:function(){var n=t.value.bind(this);return Object.defineProperty(this,e,{value:n,configurable:x5.boolTrue,writable:x5.boolTrue}),n}}}XO.bind=Pnt;XO.default=Pnt});var Nnt=O(Od=>{"use strict";x();T();Object.defineProperty(Od,"__esModule",{value:!0});Od.ClientMessagePublishEvent=Od.ClientMessageSetSessionConfig=Od.ClientMessageGetSessionConfig=Od.ClientMessageIsLinked=Od.ClientMessageHostSession=void 0;function QMr(r){return Object.assign({type:"HostSession"},r)}Od.ClientMessageHostSession=QMr;function XMr(r){return Object.assign({type:"IsLinked"},r)}Od.ClientMessageIsLinked=XMr;function YMr(r){return Object.assign({type:"GetSessionConfig"},r)}Od.ClientMessageGetSessionConfig=YMr;function $Mr(r){return Object.assign({type:"SetSessionConfig"},r)}Od.ClientMessageSetSessionConfig=$Mr;function eIr(r){return Object.assign({type:"PublishEvent"},r)}Od.ClientMessagePublishEvent=eIr});var Lnt=O(y1=>{"use strict";x();T();Object.defineProperty(y1,"__esModule",{value:!0});y1.RxWebSocket=y1.ConnectionState=void 0;var T5=t1(),Ont=a4(),_5;(function(r){r[r.DISCONNECTED=0]="DISCONNECTED",r[r.CONNECTING=1]="CONNECTING",r[r.CONNECTED=2]="CONNECTED"})(_5=y1.ConnectionState||(y1.ConnectionState={}));var Iee=class{constructor(e,t=WebSocket){this.WebSocketClass=t,this.webSocket=null,this.connectionStateSubject=new T5.BehaviorSubject(_5.DISCONNECTED),this.incomingDataSubject=new T5.Subject,this.url=e.replace(/^http/,"ws")}connect(){return this.webSocket?(0,T5.throwError)(new Error("webSocket object is not null")):new T5.Observable(e=>{let t;try{this.webSocket=t=new this.WebSocketClass(this.url)}catch(n){e.error(n);return}this.connectionStateSubject.next(_5.CONNECTING),t.onclose=n=>{this.clearWebSocket(),e.error(new Error(`websocket error ${n.code}: ${n.reason}`)),this.connectionStateSubject.next(_5.DISCONNECTED)},t.onopen=n=>{e.next(),e.complete(),this.connectionStateSubject.next(_5.CONNECTED)},t.onmessage=n=>{this.incomingDataSubject.next(n.data)}}).pipe((0,Ont.take)(1))}disconnect(){let{webSocket:e}=this;if(!!e){this.clearWebSocket(),this.connectionStateSubject.next(_5.DISCONNECTED);try{e.close()}catch{}}}get connectionState$(){return this.connectionStateSubject.asObservable()}get incomingData$(){return this.incomingDataSubject.asObservable()}get incomingJSONData$(){return this.incomingData$.pipe((0,Ont.flatMap)(e=>{let t;try{t=JSON.parse(e)}catch{return(0,T5.empty)()}return(0,T5.of)(t)}))}sendData(e){let{webSocket:t}=this;if(!t)throw new Error("websocket is not connected");t.send(e)}clearWebSocket(){let{webSocket:e}=this;!e||(this.webSocket=null,e.onclose=null,e.onerror=null,e.onmessage=null,e.onopen=null)}};y1.RxWebSocket=Iee});var Bnt=O(YO=>{"use strict";x();T();Object.defineProperty(YO,"__esModule",{value:!0});YO.isServerMessageFail=void 0;function tIr(r){return r&&r.type==="Fail"&&typeof r.id=="number"&&typeof r.sessionId=="string"&&typeof r.error=="string"}YO.isServerMessageFail=tIr});var Dnt=O(eL=>{"use strict";x();T();Object.defineProperty(eL,"__esModule",{value:!0});eL.WalletSDKConnection=void 0;var Lp=t1(),wn=a4(),E4=oO(),C5=l4(),k4=Nnt(),S4=vN(),$O=Lnt(),Pee=Bnt(),qnt=1e4,rIr=6e4,Ree=class{constructor(e,t,n,a,i=WebSocket){this.sessionId=e,this.sessionKey=t,this.diagnostic=a,this.subscriptions=new Lp.Subscription,this.destroyed=!1,this.lastHeartbeatResponse=0,this.nextReqId=(0,C5.IntNumber)(1),this.connectedSubject=new Lp.BehaviorSubject(!1),this.linkedSubject=new Lp.BehaviorSubject(!1),this.sessionConfigSubject=new Lp.ReplaySubject(1);let s=new $O.RxWebSocket(n+"/rpc",i);this.ws=s,this.subscriptions.add(s.connectionState$.pipe((0,wn.tap)(c=>{var l;return(l=this.diagnostic)===null||l===void 0?void 0:l.log(S4.EVENTS.CONNECTED_STATE_CHANGE,{state:c,sessionIdHash:E4.Session.hash(e)})}),(0,wn.skip)(1),(0,wn.filter)(c=>c===$O.ConnectionState.DISCONNECTED&&!this.destroyed),(0,wn.delay)(5e3),(0,wn.filter)(c=>!this.destroyed),(0,wn.flatMap)(c=>s.connect()),(0,wn.retry)()).subscribe()),this.subscriptions.add(s.connectionState$.pipe((0,wn.skip)(2),(0,wn.switchMap)(c=>(0,Lp.iif)(()=>c===$O.ConnectionState.CONNECTED,this.authenticate().pipe((0,wn.tap)(l=>this.sendIsLinked()),(0,wn.tap)(l=>this.sendGetSessionConfig()),(0,wn.map)(l=>!0)),(0,Lp.of)(!1))),(0,wn.distinctUntilChanged)(),(0,wn.catchError)(c=>(0,Lp.of)(!1))).subscribe(c=>this.connectedSubject.next(c))),this.subscriptions.add(s.connectionState$.pipe((0,wn.skip)(1),(0,wn.switchMap)(c=>(0,Lp.iif)(()=>c===$O.ConnectionState.CONNECTED,(0,Lp.timer)(0,qnt)))).subscribe(c=>c===0?this.updateLastHeartbeat():this.heartbeat())),this.subscriptions.add(s.incomingData$.pipe((0,wn.filter)(c=>c==="h")).subscribe(c=>this.updateLastHeartbeat())),this.subscriptions.add(s.incomingJSONData$.pipe((0,wn.filter)(c=>["IsLinkedOK","Linked"].includes(c.type))).subscribe(c=>{var l;let d=c;(l=this.diagnostic)===null||l===void 0||l.log(S4.EVENTS.LINKED,{sessionIdHash:E4.Session.hash(e),linked:d.linked,type:c.type,onlineGuests:d.onlineGuests}),this.linkedSubject.next(d.linked||d.onlineGuests>0)})),this.subscriptions.add(s.incomingJSONData$.pipe((0,wn.filter)(c=>["GetSessionConfigOK","SessionConfigUpdated"].includes(c.type))).subscribe(c=>{var l;let d=c;(l=this.diagnostic)===null||l===void 0||l.log(S4.EVENTS.SESSION_CONFIG_RECEIVED,{sessionIdHash:E4.Session.hash(e),metadata_keys:d&&d.metadata?Object.keys(d.metadata):void 0}),this.sessionConfigSubject.next({webhookId:d.webhookId,webhookUrl:d.webhookUrl,metadata:d.metadata})}))}connect(){var e;if(this.destroyed)throw new Error("instance is destroyed");(e=this.diagnostic)===null||e===void 0||e.log(S4.EVENTS.STARTED_CONNECTING,{sessionIdHash:E4.Session.hash(this.sessionId)}),this.ws.connect().subscribe()}destroy(){var e;this.subscriptions.unsubscribe(),this.ws.disconnect(),(e=this.diagnostic)===null||e===void 0||e.log(S4.EVENTS.DISCONNECTED,{sessionIdHash:E4.Session.hash(this.sessionId)}),this.destroyed=!0}get isDestroyed(){return this.destroyed}get connected$(){return this.connectedSubject.asObservable()}get onceConnected$(){return this.connected$.pipe((0,wn.filter)(e=>e),(0,wn.take)(1),(0,wn.map)(()=>{}))}get linked$(){return this.linkedSubject.asObservable()}get onceLinked$(){return this.linked$.pipe((0,wn.filter)(e=>e),(0,wn.take)(1),(0,wn.map)(()=>{}))}get sessionConfig$(){return this.sessionConfigSubject.asObservable()}get incomingEvent$(){return this.ws.incomingJSONData$.pipe((0,wn.filter)(e=>{if(e.type!=="Event")return!1;let t=e;return typeof t.sessionId=="string"&&typeof t.eventId=="string"&&typeof t.event=="string"&&typeof t.data=="string"}),(0,wn.map)(e=>e))}setSessionMetadata(e,t){let n=(0,k4.ClientMessageSetSessionConfig)({id:(0,C5.IntNumber)(this.nextReqId++),sessionId:this.sessionId,metadata:{[e]:t}});return this.onceConnected$.pipe((0,wn.flatMap)(a=>this.makeRequest(n)),(0,wn.map)(a=>{if((0,Pee.isServerMessageFail)(a))throw new Error(a.error||"failed to set session metadata")}))}publishEvent(e,t,n=!1){let a=(0,k4.ClientMessagePublishEvent)({id:(0,C5.IntNumber)(this.nextReqId++),sessionId:this.sessionId,event:e,data:t,callWebhook:n});return this.onceLinked$.pipe((0,wn.flatMap)(i=>this.makeRequest(a)),(0,wn.map)(i=>{if((0,Pee.isServerMessageFail)(i))throw new Error(i.error||"failed to publish event");return i.eventId}))}sendData(e){this.ws.sendData(JSON.stringify(e))}updateLastHeartbeat(){this.lastHeartbeatResponse=Date.now()}heartbeat(){if(Date.now()-this.lastHeartbeatResponse>qnt*2){this.ws.disconnect();return}try{this.ws.sendData("h")}catch{}}makeRequest(e,t=rIr){let n=e.id;try{this.sendData(e)}catch(a){return(0,Lp.throwError)(a)}return this.ws.incomingJSONData$.pipe((0,wn.timeoutWith)(t,(0,Lp.throwError)(new Error(`request ${n} timed out`))),(0,wn.filter)(a=>a.id===n),(0,wn.take)(1))}authenticate(){let e=(0,k4.ClientMessageHostSession)({id:(0,C5.IntNumber)(this.nextReqId++),sessionId:this.sessionId,sessionKey:this.sessionKey});return this.makeRequest(e).pipe((0,wn.map)(t=>{if((0,Pee.isServerMessageFail)(t))throw new Error(t.error||"failed to authentcate")}))}sendIsLinked(){let e=(0,k4.ClientMessageIsLinked)({id:(0,C5.IntNumber)(this.nextReqId++),sessionId:this.sessionId});this.sendData(e)}sendGetSessionConfig(){let e=(0,k4.ClientMessageGetSessionConfig)({id:(0,C5.IntNumber)(this.nextReqId++),sessionId:this.sessionId});this.sendData(e)}};eL.WalletSDKConnection=Ree});var Fnt=O(tL=>{"use strict";x();T();Object.defineProperty(tL,"__esModule",{value:!0});tL.WalletUIError=void 0;var g1=class extends Error{constructor(e,t){super(e),this.message=e,this.errorCode=t}};tL.WalletUIError=g1;g1.UserRejectedRequest=new g1("User rejected request");g1.SwitchEthereumChainUnsupportedChainId=new g1("Unsupported chainId",4902)});var Unt=O(E5=>{"use strict";x();T();Object.defineProperty(E5,"__esModule",{value:!0});E5.decrypt=E5.encrypt=void 0;var nIr=t1(),rL=wm();async function aIr(r,e){if(e.length!==64)throw Error("secret must be 256 bits");let t=crypto.getRandomValues(new Uint8Array(12)),n=await crypto.subtle.importKey("raw",(0,rL.hexStringToUint8Array)(e),{name:"aes-gcm"},!1,["encrypt","decrypt"]),a=new TextEncoder,i=await window.crypto.subtle.encrypt({name:"AES-GCM",iv:t},n,a.encode(r)),s=16,c=i.slice(i.byteLength-s),l=i.slice(0,i.byteLength-s),d=new Uint8Array(c),f=new Uint8Array(l),w=new Uint8Array([...t,...d,...f]);return(0,rL.uint8ArrayToHex)(w)}E5.encrypt=aIr;function iIr(r,e){if(e.length!==64)throw Error("secret must be 256 bits");return new nIr.Observable(t=>{(async function(){let n=await crypto.subtle.importKey("raw",(0,rL.hexStringToUint8Array)(e),{name:"aes-gcm"},!1,["encrypt","decrypt"]),a=(0,rL.hexStringToUint8Array)(r),i=a.slice(0,12),s=a.slice(12,28),c=a.slice(28),l=new Uint8Array([...c,...s]),d={name:"AES-GCM",iv:new Uint8Array(i)};try{let f=await window.crypto.subtle.decrypt(d,n,l),w=new TextDecoder;t.next(w.decode(f)),t.complete()}catch(f){t.error(f)}})()})}E5.decrypt=iIr});var Nee=O(A4=>{"use strict";x();T();Object.defineProperty(A4,"__esModule",{value:!0});A4.Web3Method=void 0;var sIr;(function(r){r.requestEthereumAccounts="requestEthereumAccounts",r.signEthereumMessage="signEthereumMessage",r.signEthereumTransaction="signEthereumTransaction",r.submitEthereumTransaction="submitEthereumTransaction",r.ethereumAddressFromSignedMessage="ethereumAddressFromSignedMessage",r.scanQRCode="scanQRCode",r.generic="generic",r.childRequestEthereumAccounts="childRequestEthereumAccounts",r.addEthereumChain="addEthereumChain",r.switchEthereumChain="switchEthereumChain",r.makeEthereumJSONRPCRequest="makeEthereumJSONRPCRequest",r.watchAsset="watchAsset",r.selectProvider="selectProvider"})(sIr=A4.Web3Method||(A4.Web3Method={}))});var nL=O(M4=>{"use strict";x();T();Object.defineProperty(M4,"__esModule",{value:!0});M4.RelayMessageType=void 0;var oIr;(function(r){r.SESSION_ID_REQUEST="SESSION_ID_REQUEST",r.SESSION_ID_RESPONSE="SESSION_ID_RESPONSE",r.LINKED="LINKED",r.UNLINKED="UNLINKED",r.WEB3_REQUEST="WEB3_REQUEST",r.WEB3_REQUEST_CANCELED="WEB3_REQUEST_CANCELED",r.WEB3_RESPONSE="WEB3_RESPONSE"})(oIr=M4.RelayMessageType||(M4.RelayMessageType={}))});var Wnt=O(aL=>{"use strict";x();T();Object.defineProperty(aL,"__esModule",{value:!0});aL.Web3RequestCanceledMessage=void 0;var cIr=nL();function uIr(r){return{type:cIr.RelayMessageType.WEB3_REQUEST_CANCELED,id:r}}aL.Web3RequestCanceledMessage=uIr});var jnt=O(iL=>{"use strict";x();T();Object.defineProperty(iL,"__esModule",{value:!0});iL.Web3RequestMessage=void 0;var lIr=nL();function dIr(r){return Object.assign({type:lIr.RelayMessageType.WEB3_REQUEST},r)}iL.Web3RequestMessage=dIr});var znt=O(Ei=>{"use strict";x();T();Object.defineProperty(Ei,"__esModule",{value:!0});Ei.EthereumAddressFromSignedMessageResponse=Ei.SubmitEthereumTransactionResponse=Ei.SignEthereumTransactionResponse=Ei.SignEthereumMessageResponse=Ei.isRequestEthereumAccountsResponse=Ei.SelectProviderResponse=Ei.WatchAssetReponse=Ei.RequestEthereumAccountsResponse=Ei.SwitchEthereumChainResponse=Ei.AddEthereumChainResponse=Ei.ErrorResponse=void 0;var tf=Nee();function pIr(r,e,t){return{method:r,errorMessage:e,errorCode:t}}Ei.ErrorResponse=pIr;function hIr(r){return{method:tf.Web3Method.addEthereumChain,result:r}}Ei.AddEthereumChainResponse=hIr;function fIr(r){return{method:tf.Web3Method.switchEthereumChain,result:r}}Ei.SwitchEthereumChainResponse=fIr;function mIr(r){return{method:tf.Web3Method.requestEthereumAccounts,result:r}}Ei.RequestEthereumAccountsResponse=mIr;function yIr(r){return{method:tf.Web3Method.watchAsset,result:r}}Ei.WatchAssetReponse=yIr;function gIr(r){return{method:tf.Web3Method.selectProvider,result:r}}Ei.SelectProviderResponse=gIr;function vIr(r){return r&&r.method===tf.Web3Method.requestEthereumAccounts}Ei.isRequestEthereumAccountsResponse=vIr;function bIr(r){return{method:tf.Web3Method.signEthereumMessage,result:r}}Ei.SignEthereumMessageResponse=bIr;function wIr(r){return{method:tf.Web3Method.signEthereumTransaction,result:r}}Ei.SignEthereumTransactionResponse=wIr;function xIr(r){return{method:tf.Web3Method.submitEthereumTransaction,result:r}}Ei.SubmitEthereumTransactionResponse=xIr;function TIr(r){return{method:tf.Web3Method.ethereumAddressFromSignedMessage,result:r}}Ei.EthereumAddressFromSignedMessageResponse=TIr});var Vnt=O(k5=>{"use strict";x();T();Object.defineProperty(k5,"__esModule",{value:!0});k5.isWeb3ResponseMessage=k5.Web3ResponseMessage=void 0;var Hnt=nL();function _Ir(r){return Object.assign({type:Hnt.RelayMessageType.WEB3_RESPONSE},r)}k5.Web3ResponseMessage=_Ir;function CIr(r){return r&&r.type===Hnt.RelayMessageType.WEB3_RESPONSE}k5.isWeb3ResponseMessage=CIr});var Knt=O(ju=>{"use strict";x();T();var EIr=ju&&ju.__createBinding||(Object.create?function(r,e,t,n){n===void 0&&(n=t),Object.defineProperty(r,n,{enumerable:!0,get:function(){return e[t]}})}:function(r,e,t,n){n===void 0&&(n=t),r[n]=e[t]}),kIr=ju&&ju.__setModuleDefault||(Object.create?function(r,e){Object.defineProperty(r,"default",{enumerable:!0,value:e})}:function(r,e){r.default=e}),Znt=ju&&ju.__decorate||function(r,e,t,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,t,n);else for(var c=r.length-1;c>=0;c--)(s=r[c])&&(i=(a<3?s(i):a>3?s(e,t,i):s(e,t))||i);return a>3&&i&&Object.defineProperty(e,t,i),i},SIr=ju&&ju.__importStar||function(r){if(r&&r.__esModule)return r;var e={};if(r!=null)for(var t in r)t!=="default"&&Object.prototype.hasOwnProperty.call(r,t)&&EIr(e,r,t);return kIr(e,r),e},AIr=ju&&ju.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(ju,"__esModule",{value:!0});ju.WalletSDKRelay=void 0;var Jnt=AIr(Rnt()),Gnt=yN(),I4=t1(),Rs=a4(),Ac=vN(),MIr=Dnt(),Oee=Fnt(),IIr=l4(),ki=wm(),Ty=SIr(Unt()),_y=oO(),sL=v$(),to=Nee(),PIr=Wnt(),RIr=jnt(),bl=znt(),tu=Vnt(),wl=class extends sL.WalletSDKRelayAbstract{constructor(e){var t;super(),this.accountsCallback=null,this.chainCallback=null,this.dappDefaultChainSubject=new I4.BehaviorSubject(1),this.dappDefaultChain=1,this.appName="",this.appLogoUrl=null,this.subscriptions=new I4.Subscription,this.linkAPIUrl=e.linkAPIUrl,this.storage=e.storage,this.options=e;let{session:n,ui:a,connection:i}=this.subscribe();if(this._session=n,this.connection=i,this.relayEventManager=e.relayEventManager,e.diagnosticLogger&&e.eventListener)throw new Error("Can't have both eventListener and diagnosticLogger options, use only diagnosticLogger");e.eventListener?this.diagnostic={log:e.eventListener.onEvent}:this.diagnostic=e.diagnosticLogger,this._reloadOnDisconnect=(t=e.reloadOnDisconnect)!==null&&t!==void 0?t:!0,this.ui=a}subscribe(){this.subscriptions.add(this.dappDefaultChainSubject.subscribe(a=>{this.dappDefaultChain!==a&&(this.dappDefaultChain=a)}));let e=_y.Session.load(this.storage)||new _y.Session(this.storage).save(),t=new MIr.WalletSDKConnection(e.id,e.key,this.linkAPIUrl,this.diagnostic);this.subscriptions.add(t.sessionConfig$.subscribe({next:a=>{this.onSessionConfigChanged(a)},error:()=>{var a;(a=this.diagnostic)===null||a===void 0||a.log(Ac.EVENTS.GENERAL_ERROR,{message:"error while invoking session config callback"})}})),this.subscriptions.add(t.incomingEvent$.pipe((0,Rs.filter)(a=>a.event==="Web3Response")).subscribe({next:this.handleIncomingEvent})),this.subscriptions.add(t.linked$.pipe((0,Rs.skip)(1),(0,Rs.tap)(a=>{var i;this.isLinked=a;let s=this.storage.getItem(sL.LOCAL_STORAGE_ADDRESSES_KEY);if(a&&(this.session.linked=a),this.isUnlinkedErrorState=!1,s){let c=s.split(" "),l=this.storage.getItem("IsStandaloneSigning")==="true";if(c[0]!==""&&!a&&this.session.linked&&!l){this.isUnlinkedErrorState=!0;let d=this.getSessionIdHash();(i=this.diagnostic)===null||i===void 0||i.log(Ac.EVENTS.UNLINKED_ERROR_STATE,{sessionIdHash:d})}}})).subscribe()),this.subscriptions.add(t.sessionConfig$.pipe((0,Rs.filter)(a=>!!a.metadata&&a.metadata.__destroyed==="1")).subscribe(()=>{var a;let i=t.isDestroyed;return(a=this.diagnostic)===null||a===void 0||a.log(Ac.EVENTS.METADATA_DESTROYED,{alreadyDestroyed:i,sessionIdHash:this.getSessionIdHash()}),this.resetAndReload()})),this.subscriptions.add(t.sessionConfig$.pipe((0,Rs.filter)(a=>a.metadata&&a.metadata.WalletUsername!==void 0)).pipe((0,Rs.mergeMap)(a=>Ty.decrypt(a.metadata.WalletUsername,e.secret))).subscribe({next:a=>{this.storage.setItem(sL.WALLET_USER_NAME_KEY,a)},error:()=>{var a;(a=this.diagnostic)===null||a===void 0||a.log(Ac.EVENTS.GENERAL_ERROR,{message:"Had error decrypting",value:"username"})}})),this.subscriptions.add(t.sessionConfig$.pipe((0,Rs.filter)(a=>a.metadata&&a.metadata.AppVersion!==void 0)).pipe((0,Rs.mergeMap)(a=>Ty.decrypt(a.metadata.AppVersion,e.secret))).subscribe({next:a=>{this.storage.setItem(sL.APP_VERSION_KEY,a)},error:()=>{var a;(a=this.diagnostic)===null||a===void 0||a.log(Ac.EVENTS.GENERAL_ERROR,{message:"Had error decrypting",value:"appversion"})}})),this.subscriptions.add(t.sessionConfig$.pipe((0,Rs.filter)(a=>a.metadata&&a.metadata.ChainId!==void 0&&a.metadata.JsonRpcUrl!==void 0)).pipe((0,Rs.mergeMap)(a=>(0,I4.zip)(Ty.decrypt(a.metadata.ChainId,e.secret),Ty.decrypt(a.metadata.JsonRpcUrl,e.secret)))).pipe((0,Rs.distinctUntilChanged)()).subscribe({next:([a,i])=>{this.chainCallback&&this.chainCallback(a,i)},error:()=>{var a;(a=this.diagnostic)===null||a===void 0||a.log(Ac.EVENTS.GENERAL_ERROR,{message:"Had error decrypting",value:"chainId|jsonRpcUrl"})}})),this.subscriptions.add(t.sessionConfig$.pipe((0,Rs.filter)(a=>a.metadata&&a.metadata.EthereumAddress!==void 0)).pipe((0,Rs.mergeMap)(a=>Ty.decrypt(a.metadata.EthereumAddress,e.secret))).subscribe({next:a=>{this.accountsCallback&&this.accountsCallback([a]),wl.accountRequestCallbackIds.size>0&&(Array.from(wl.accountRequestCallbackIds.values()).forEach(i=>{let s=(0,tu.Web3ResponseMessage)({id:i,response:(0,bl.RequestEthereumAccountsResponse)([a])});this.invokeCallback(Object.assign(Object.assign({},s),{id:i}))}),wl.accountRequestCallbackIds.clear())},error:()=>{var a;(a=this.diagnostic)===null||a===void 0||a.log(Ac.EVENTS.GENERAL_ERROR,{message:"Had error decrypting",value:"selectedAddress"})}})),this.subscriptions.add(t.sessionConfig$.pipe((0,Rs.filter)(a=>a.metadata&&a.metadata.AppSrc!==void 0)).pipe((0,Rs.mergeMap)(a=>Ty.decrypt(a.metadata.AppSrc,e.secret))).subscribe({next:a=>{this.ui.setAppSrc(a)},error:()=>{var a;(a=this.diagnostic)===null||a===void 0||a.log(Ac.EVENTS.GENERAL_ERROR,{message:"Had error decrypting",value:"appSrc"})}}));let n=this.options.uiConstructor({linkAPIUrl:this.options.linkAPIUrl,version:this.options.version,darkMode:this.options.darkMode,session:e,connected$:t.connected$,chainId$:this.dappDefaultChainSubject});return t.connect(),{session:e,ui:n,connection:t}}attachUI(){this.ui.attach()}resetAndReload(){this.connection.setSessionMetadata("__destroyed","1").pipe((0,Rs.timeout)(1e3),(0,Rs.catchError)(e=>(0,I4.of)(null))).subscribe(e=>{var t,n,a;let i=this.ui.isStandalone();try{this.subscriptions.unsubscribe()}catch{(t=this.diagnostic)===null||t===void 0||t.log(Ac.EVENTS.GENERAL_ERROR,{message:"Had error unsubscribing"})}(n=this.diagnostic)===null||n===void 0||n.log(Ac.EVENTS.SESSION_STATE_CHANGE,{method:"relay::resetAndReload",sessionMetadataChange:"__destroyed, 1",sessionIdHash:this.getSessionIdHash()}),this.connection.destroy();let s=_y.Session.load(this.storage);if(s?.id===this._session.id?this.storage.clear():s&&((a=this.diagnostic)===null||a===void 0||a.log(Ac.EVENTS.SKIPPED_CLEARING_SESSION,{sessionIdHash:this.getSessionIdHash(),storedSessionIdHash:_y.Session.hash(s.id)})),this._reloadOnDisconnect){this.ui.reloadUI();return}this.accountsCallback&&this.accountsCallback([],!0);let{session:c,ui:l,connection:d}=this.subscribe();this._session=c,this.connection=d,this.ui=l,i&&this.ui.setStandalone&&this.ui.setStandalone(!0),this.attachUI()},e=>{var t;(t=this.diagnostic)===null||t===void 0||t.log(Ac.EVENTS.FAILURE,{method:"relay::resetAndReload",message:`failed to reset and reload with ${e}`,sessionIdHash:this.getSessionIdHash()})})}setAppInfo(e,t){this.appName=e,this.appLogoUrl=t}getStorageItem(e){return this.storage.getItem(e)}get session(){return this._session}setStorageItem(e,t){this.storage.setItem(e,t)}signEthereumMessage(e,t,n,a){return this.sendRequest({method:to.Web3Method.signEthereumMessage,params:{message:(0,ki.hexStringFromBuffer)(e,!0),address:t,addPrefix:n,typedDataJson:a||null}})}ethereumAddressFromSignedMessage(e,t,n){return this.sendRequest({method:to.Web3Method.ethereumAddressFromSignedMessage,params:{message:(0,ki.hexStringFromBuffer)(e,!0),signature:(0,ki.hexStringFromBuffer)(t,!0),addPrefix:n}})}signEthereumTransaction(e){return this.sendRequest({method:to.Web3Method.signEthereumTransaction,params:{fromAddress:e.fromAddress,toAddress:e.toAddress,weiValue:(0,ki.bigIntStringFromBN)(e.weiValue),data:(0,ki.hexStringFromBuffer)(e.data,!0),nonce:e.nonce,gasPriceInWei:e.gasPriceInWei?(0,ki.bigIntStringFromBN)(e.gasPriceInWei):null,maxFeePerGas:e.gasPriceInWei?(0,ki.bigIntStringFromBN)(e.gasPriceInWei):null,maxPriorityFeePerGas:e.gasPriceInWei?(0,ki.bigIntStringFromBN)(e.gasPriceInWei):null,gasLimit:e.gasLimit?(0,ki.bigIntStringFromBN)(e.gasLimit):null,chainId:e.chainId,shouldSubmit:!1}})}signAndSubmitEthereumTransaction(e){return this.sendRequest({method:to.Web3Method.signEthereumTransaction,params:{fromAddress:e.fromAddress,toAddress:e.toAddress,weiValue:(0,ki.bigIntStringFromBN)(e.weiValue),data:(0,ki.hexStringFromBuffer)(e.data,!0),nonce:e.nonce,gasPriceInWei:e.gasPriceInWei?(0,ki.bigIntStringFromBN)(e.gasPriceInWei):null,maxFeePerGas:e.maxFeePerGas?(0,ki.bigIntStringFromBN)(e.maxFeePerGas):null,maxPriorityFeePerGas:e.maxPriorityFeePerGas?(0,ki.bigIntStringFromBN)(e.maxPriorityFeePerGas):null,gasLimit:e.gasLimit?(0,ki.bigIntStringFromBN)(e.gasLimit):null,chainId:e.chainId,shouldSubmit:!0}})}submitEthereumTransaction(e,t){return this.sendRequest({method:to.Web3Method.submitEthereumTransaction,params:{signedTransaction:(0,ki.hexStringFromBuffer)(e,!0),chainId:t}})}scanQRCode(e){return this.sendRequest({method:to.Web3Method.scanQRCode,params:{regExp:e}})}getQRCodeUrl(){return(0,ki.createQrUrl)(this._session.id,this._session.secret,this.linkAPIUrl,!1,this.options.version,this.dappDefaultChain)}genericRequest(e,t){return this.sendRequest({method:to.Web3Method.generic,params:{action:t,data:e}})}sendGenericMessage(e){return this.sendRequest(e)}sendRequest(e){let t=null,n=(0,ki.randomBytesHex)(8),a=s=>{this.publishWeb3RequestCanceledEvent(n),this.handleErrorResponse(n,e.method,s),t?.()};return{promise:new Promise((s,c)=>{this.ui.isStandalone()||(t=this.ui.showConnecting({isUnlinkedErrorState:this.isUnlinkedErrorState,onCancel:a,onResetConnection:this.resetAndReload})),this.relayEventManager.callbacks.set(n,l=>{if(t?.(),l.errorMessage)return c(new Error(l.errorMessage));s(l)}),this.ui.isStandalone()?this.sendRequestStandalone(n,e):this.publishWeb3RequestEvent(n,e)}),cancel:a}}setConnectDisabled(e){this.ui.setConnectDisabled(e)}setAccountsCallback(e){this.accountsCallback=e}setChainCallback(e){this.chainCallback=e}setDappDefaultChainCallback(e){this.dappDefaultChainSubject.next(e)}publishWeb3RequestEvent(e,t){var n;let a=(0,RIr.Web3RequestMessage)({id:e,request:t}),i=_y.Session.load(this.storage);(n=this.diagnostic)===null||n===void 0||n.log(Ac.EVENTS.WEB3_REQUEST,{eventId:a.id,method:`relay::${a.request.method}`,sessionIdHash:this.getSessionIdHash(),storedSessionIdHash:i?_y.Session.hash(i.id):"",isSessionMismatched:(i?.id!==this._session.id).toString()}),this.subscriptions.add(this.publishEvent("Web3Request",a,!0).subscribe({next:s=>{var c;(c=this.diagnostic)===null||c===void 0||c.log(Ac.EVENTS.WEB3_REQUEST_PUBLISHED,{eventId:a.id,method:`relay::${a.request.method}`,sessionIdHash:this.getSessionIdHash(),storedSessionIdHash:i?_y.Session.hash(i.id):"",isSessionMismatched:(i?.id!==this._session.id).toString()})},error:s=>{this.handleWeb3ResponseMessage((0,tu.Web3ResponseMessage)({id:a.id,response:{method:a.request.method,errorMessage:s.message}}))}}))}publishWeb3RequestCanceledEvent(e){let t=(0,PIr.Web3RequestCanceledMessage)(e);this.subscriptions.add(this.publishEvent("Web3RequestCanceled",t,!1).subscribe())}publishEvent(e,t,n){let a=this.session.secret;return new I4.Observable(i=>{Ty.encrypt(JSON.stringify(Object.assign(Object.assign({},t),{origin:location.origin})),a).then(s=>{i.next(s),i.complete()})}).pipe((0,Rs.mergeMap)(i=>this.connection.publishEvent(e,i,n)))}handleIncomingEvent(e){try{this.subscriptions.add(Ty.decrypt(e.data,this.session.secret).pipe((0,Rs.map)(t=>JSON.parse(t))).subscribe({next:t=>{let n=(0,tu.isWeb3ResponseMessage)(t)?t:null;!n||this.handleWeb3ResponseMessage(n)},error:()=>{var t;(t=this.diagnostic)===null||t===void 0||t.log(Ac.EVENTS.GENERAL_ERROR,{message:"Had error decrypting",value:"incomingEvent"})}}))}catch{return}}handleWeb3ResponseMessage(e){var t;let{response:n}=e;if((t=this.diagnostic)===null||t===void 0||t.log(Ac.EVENTS.WEB3_RESPONSE,{eventId:e.id,method:`relay::${n.method}`,sessionIdHash:this.getSessionIdHash()}),(0,bl.isRequestEthereumAccountsResponse)(n)){wl.accountRequestCallbackIds.forEach(a=>this.invokeCallback(Object.assign(Object.assign({},e),{id:a}))),wl.accountRequestCallbackIds.clear();return}this.invokeCallback(e)}handleErrorResponse(e,t,n,a){this.handleWeb3ResponseMessage((0,tu.Web3ResponseMessage)({id:e,response:(0,bl.ErrorResponse)(t,(n??Oee.WalletUIError.UserRejectedRequest).message,a)}))}invokeCallback(e){let t=this.relayEventManager.callbacks.get(e.id);t&&(t(e.response),this.relayEventManager.callbacks.delete(e.id))}requestEthereumAccounts(){let e={method:to.Web3Method.requestEthereumAccounts,params:{appName:this.appName,appLogoUrl:this.appLogoUrl||null}},t=null,n=(0,ki.randomBytesHex)(8),a=s=>{this.publishWeb3RequestCanceledEvent(n),this.handleErrorResponse(n,e.method,s),t?.()};return{promise:new Promise((s,c)=>{var l;this.relayEventManager.callbacks.set(n,f=>{if(this.ui.hideRequestEthereumAccounts(),t?.(),f.errorMessage)return c(new Error(f.errorMessage));s(f)});let d=((l=window?.navigator)===null||l===void 0?void 0:l.userAgent)||null;if(d&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(d)){let f;try{(0,ki.isInIFrame)()&&window.top?f=window.top.location:f=window.location}catch{f=window.location}f.href=`https://www.coinbase.com/connect-dapp?uri=${encodeURIComponent(f.href)}`;return}if(this.ui.inlineAccountsResponse()){let f=w=>{this.handleWeb3ResponseMessage((0,tu.Web3ResponseMessage)({id:n,response:(0,bl.RequestEthereumAccountsResponse)(w)}))};this.ui.requestEthereumAccounts({onCancel:a,onAccounts:f})}else{let f=Gnt.ethErrors.provider.userRejectedRequest("User denied account authorization");this.ui.requestEthereumAccounts({onCancel:()=>a(f)})}wl.accountRequestCallbackIds.add(n),!this.ui.inlineAccountsResponse()&&!this.ui.isStandalone()&&this.publishWeb3RequestEvent(n,e)}),cancel:a}}selectProvider(e){let t={method:to.Web3Method.selectProvider,params:{providerOptions:e}},n=(0,ki.randomBytesHex)(8),a=s=>{this.publishWeb3RequestCanceledEvent(n),this.handleErrorResponse(n,t.method,s)},i=new Promise((s,c)=>{this.relayEventManager.callbacks.set(n,f=>{if(f.errorMessage)return c(new Error(f.errorMessage));s(f)});let l=f=>{this.handleWeb3ResponseMessage((0,tu.Web3ResponseMessage)({id:n,response:(0,bl.SelectProviderResponse)(IIr.ProviderType.Unselected)}))},d=f=>{this.handleWeb3ResponseMessage((0,tu.Web3ResponseMessage)({id:n,response:(0,bl.SelectProviderResponse)(f)}))};this.ui.selectProvider&&this.ui.selectProvider({onApprove:d,onCancel:l,providerOptions:e})});return{cancel:a,promise:i}}watchAsset(e,t,n,a,i,s){let c={method:to.Web3Method.watchAsset,params:{type:e,options:{address:t,symbol:n,decimals:a,image:i},chainId:s}},l=null,d=(0,ki.randomBytesHex)(8),f=E=>{this.publishWeb3RequestCanceledEvent(d),this.handleErrorResponse(d,c.method,E),l?.()};this.ui.inlineWatchAsset()||(l=this.ui.showConnecting({isUnlinkedErrorState:this.isUnlinkedErrorState,onCancel:f,onResetConnection:this.resetAndReload}));let w=new Promise((E,k)=>{this.relayEventManager.callbacks.set(d,q=>{if(l?.(),q.errorMessage)return k(new Error(q.errorMessage));E(q)});let A=q=>{this.handleWeb3ResponseMessage((0,tu.Web3ResponseMessage)({id:d,response:(0,bl.WatchAssetReponse)(!1)}))},L=()=>{this.handleWeb3ResponseMessage((0,tu.Web3ResponseMessage)({id:d,response:(0,bl.WatchAssetReponse)(!0)}))};this.ui.inlineWatchAsset()&&this.ui.watchAsset({onApprove:L,onCancel:A,type:e,address:t,symbol:n,decimals:a,image:i,chainId:s}),!this.ui.inlineWatchAsset()&&!this.ui.isStandalone()&&this.publishWeb3RequestEvent(d,c)});return{cancel:f,promise:w}}addEthereumChain(e,t,n,a,i,s){let c={method:to.Web3Method.addEthereumChain,params:{chainId:e,rpcUrls:t,blockExplorerUrls:a,chainName:i,iconUrls:n,nativeCurrency:s}},l=null,d=(0,ki.randomBytesHex)(8),f=E=>{this.publishWeb3RequestCanceledEvent(d),this.handleErrorResponse(d,c.method,E),l?.()};return this.ui.inlineAddEthereumChain(e)||(l=this.ui.showConnecting({isUnlinkedErrorState:this.isUnlinkedErrorState,onCancel:f,onResetConnection:this.resetAndReload})),{promise:new Promise((E,k)=>{this.relayEventManager.callbacks.set(d,q=>{if(l?.(),q.errorMessage)return k(new Error(q.errorMessage));E(q)});let A=q=>{this.handleWeb3ResponseMessage((0,tu.Web3ResponseMessage)({id:d,response:(0,bl.AddEthereumChainResponse)({isApproved:!1,rpcUrl:""})}))},L=q=>{this.handleWeb3ResponseMessage((0,tu.Web3ResponseMessage)({id:d,response:(0,bl.AddEthereumChainResponse)({isApproved:!0,rpcUrl:q})}))};this.ui.inlineAddEthereumChain(e)&&this.ui.addEthereumChain({onCancel:A,onApprove:L,chainId:c.params.chainId,rpcUrls:c.params.rpcUrls,blockExplorerUrls:c.params.blockExplorerUrls,chainName:c.params.chainName,iconUrls:c.params.iconUrls,nativeCurrency:c.params.nativeCurrency}),!this.ui.inlineAddEthereumChain(e)&&!this.ui.isStandalone()&&this.publishWeb3RequestEvent(d,c)}),cancel:f}}switchEthereumChain(e,t){let n={method:to.Web3Method.switchEthereumChain,params:Object.assign({chainId:e},{address:t})},a=(0,ki.randomBytesHex)(8),i=c=>{this.publishWeb3RequestCanceledEvent(a),this.handleErrorResponse(a,n.method,c)};return{promise:new Promise((c,l)=>{this.relayEventManager.callbacks.set(a,w=>{if(w.errorMessage&&w.errorCode)return l(Gnt.ethErrors.provider.custom({code:w.errorCode,message:"Unrecognized chain ID. Try adding the chain using addEthereumChain first."}));if(w.errorMessage)return l(new Error(w.errorMessage));c(w)});let d=w=>{if(typeof w=="number"){let E=w;this.handleWeb3ResponseMessage((0,tu.Web3ResponseMessage)({id:a,response:(0,bl.ErrorResponse)(to.Web3Method.switchEthereumChain,Oee.WalletUIError.SwitchEthereumChainUnsupportedChainId.message,E)}))}else w instanceof Oee.WalletUIError?this.handleErrorResponse(a,to.Web3Method.switchEthereumChain,w,w.errorCode):this.handleWeb3ResponseMessage((0,tu.Web3ResponseMessage)({id:a,response:(0,bl.SwitchEthereumChainResponse)({isApproved:!1,rpcUrl:""})}))},f=w=>{this.handleWeb3ResponseMessage((0,tu.Web3ResponseMessage)({id:a,response:(0,bl.SwitchEthereumChainResponse)({isApproved:!0,rpcUrl:w})}))};this.ui.switchEthereumChain({onCancel:d,onApprove:f,chainId:n.params.chainId,address:n.params.address}),!this.ui.inlineSwitchEthereumChain()&&!this.ui.isStandalone()&&this.publishWeb3RequestEvent(a,n)}),cancel:i}}inlineAddEthereumChain(e){return this.ui.inlineAddEthereumChain(e)}getSessionIdHash(){return _y.Session.hash(this._session.id)}sendRequestStandalone(e,t){let n=i=>{this.handleErrorResponse(e,t.method,i)},a=i=>{this.handleWeb3ResponseMessage((0,tu.Web3ResponseMessage)({id:e,response:i}))};switch(t.method){case to.Web3Method.signEthereumMessage:this.ui.signEthereumMessage({request:t,onSuccess:a,onCancel:n});break;case to.Web3Method.signEthereumTransaction:this.ui.signEthereumTransaction({request:t,onSuccess:a,onCancel:n});break;case to.Web3Method.submitEthereumTransaction:this.ui.submitEthereumTransaction({request:t,onSuccess:a,onCancel:n});break;case to.Web3Method.ethereumAddressFromSignedMessage:this.ui.ethereumAddressFromSignedMessage({request:t,onSuccess:a});break;default:n();break}}onSessionConfigChanged(e){}};wl.accountRequestCallbackIds=new Set;Znt([Jnt.default],wl.prototype,"resetAndReload",null);Znt([Jnt.default],wl.prototype,"handleIncomingEvent",null);ju.WalletSDKRelay=wl});var Qnt=O(oL=>{"use strict";x();T();Object.defineProperty(oL,"__esModule",{value:!0});oL.WalletSDKRelayEventManager=void 0;var NIr=wm(),Lee=class{constructor(){this._nextRequestId=0,this.callbacks=new Map}makeRequestId(){this._nextRequestId=(this._nextRequestId+1)%2147483647;let e=this._nextRequestId,t=(0,NIr.prepend0x)(e.toString(16));return this.callbacks.get(t)&&this.callbacks.delete(t),e}};oL.WalletSDKRelayEventManager=Lee});var Xnt=O((S8n,OIr)=>{OIr.exports={name:"@coinbase/wallet-sdk",version:"3.6.3",description:"Coinbase Wallet JavaScript SDK",keywords:["cipher","cipherbrowser","coinbase","coinbasewallet","eth","ether","ethereum","etherium","injection","toshi","wallet","walletlink","web3"],main:"dist/index.js",types:"dist/index.d.ts",repository:"https://github.com/coinbase/coinbase-wallet-sdk.git",author:"Coinbase, Inc.",license:"Apache-2.0",scripts:{"pretest:unit":"node compile-assets.js","test:unit":"jest","test:unit:coverage":"yarn test:unit && open coverage/lcov-report/index.html","test:karma":"yarn build-npm && karma start",prebuild:`rm -rf ./build && node -p "'export const LIB_VERSION = ' + JSON.stringify(require('./package.json').version) + ';'" > src/version.ts`,build:"node compile-assets.js && webpack --config webpack.config.js","build-npm":"tsc -p ./tsconfig.build.json","build:dev":"export LINK_API_URL='http://localhost:3000'; yarn build","build:dev:watch":"nodemon -e 'ts,tsx,js,json,css,scss,svg' --ignore 'src/**/*-css.ts' --ignore 'src/**/*-svg.ts' --watch src/ --exec 'yarn build:dev'","build:prod":`yarn prebuild && yarn build && yarn build-npm && cp ./package.json ../../README.md ./LICENSE build/npm && cp -a src/vendor-js build/npm/dist && sed -i.bak 's| "private": true,||g' build/npm/package.json && rm -f build/npm/package.json.bak`,"lint:types":"tsc --noEmit","lint:prettier":'prettier --check "{src,__tests__}/**/*.(js|ts|tsx)"',"lint:eslint":"eslint ./src --ext .ts,.tsx",lint:"yarn lint:eslint && yarn lint:types && yarn lint:prettier","fix:eslint":"yarn lint:eslint --fix","fix:prettier":"prettier . --write",release:"./scripts/release.sh"},dependencies:{"@metamask/safe-event-emitter":"2.0.0","@solana/web3.js":"^1.70.1","bind-decorator":"^1.0.11","bn.js":"^5.1.1",buffer:"^6.0.3",clsx:"^1.1.0","eth-block-tracker":"4.4.3","eth-json-rpc-filters":"4.2.2","eth-rpc-errors":"4.0.2","json-rpc-engine":"6.1.0",keccak:"^3.0.1",preact:"^10.5.9",qs:"^6.10.3",rxjs:"^6.6.3","sha.js":"^2.4.11","stream-browserify":"^3.0.0",util:"^0.12.4"},devDependencies:{"@babel/core":"^7.17.9","@babel/plugin-proposal-decorators":"^7.17.9","@babel/plugin-transform-react-jsx":"^7.17.3","@babel/preset-env":"^7.16.11","@babel/preset-typescript":"^7.16.7","@peculiar/webcrypto":"^1.3.3","@testing-library/jest-dom":"^5.16.4","@testing-library/preact":"^2.0.1","@types/bn.js":"^4.11.6","@types/jest":"^27.4.1","@types/node":"^14.14.20","@types/qs":"^6.9.7","@types/sha.js":"^2.4.0","@typescript-eslint/eslint-plugin":"^5.7.0","@typescript-eslint/eslint-plugin-tslint":"^5.7.0","@typescript-eslint/parser":"^5.7.0","babel-jest":"^27.5.1",browserify:"17.0.0","copy-webpack-plugin":"^6.4.1","core-js":"^3.8.2",eslint:"^8.4.1","eslint-config-prettier":"^8.3.0","eslint-plugin-import":"^2.25.3","eslint-plugin-preact":"^0.1.0","eslint-plugin-prettier":"^4.0.0","eslint-plugin-simple-import-sort":"^7.0.0",jasmine:"3.8.0",jest:"^27.5.1","jest-chrome":"^0.7.2","jest-websocket-mock":"^2.3.0",karma:"^6.3.15","karma-browserify":"8.1.0","karma-chrome-launcher":"^3.1.0","karma-jasmine":"^4.0.1",nodemon:"^2.0.6",prettier:"^2.5.1","raw-loader":"^4.0.2","regenerator-runtime":"^0.13.7",sass:"^1.50.0",svgo:"^2.8.0","ts-jest":"^27.1.4","ts-loader":"^8.0.13","ts-node":"^10.7.0",tslib:"^2.0.3",typescript:"^4.1.3",watchify:"4.0.0",webpack:"^5.72.0","webpack-cli":"^4.9.2","whatwg-fetch":"^3.5.0"},engines:{node:">= 10.0.0"}}});var Bee=O(cL=>{"use strict";x();T();Object.defineProperty(cL,"__esModule",{value:!0});cL.CoinbaseWalletSDK=void 0;var LIr=bJe(),BIr=wJe(),qIr=OO(),DIr=Int(),FIr=Knt(),UIr=Qnt(),WIr=wm(),jIr=M.env.LINK_API_URL||"https://www.walletlink.org",Ynt=M.env.SDK_VERSION||Xnt().version||"unknown",S5=class{constructor(e){var t,n,a;this._appName="",this._appLogoUrl=null,this._relay=null,this._relayEventManager=null;let i=e.linkAPIUrl||jIr,s;if(e.uiConstructor?s=e.uiConstructor:s=d=>new DIr.WalletSDKUI(d),typeof e.overrideIsMetaMask>"u"?this._overrideIsMetaMask=!1:this._overrideIsMetaMask=e.overrideIsMetaMask,this._overrideIsCoinbaseWallet=(t=e.overrideIsCoinbaseWallet)!==null&&t!==void 0?t:!0,this._overrideIsCoinbaseBrowser=(n=e.overrideIsCoinbaseBrowser)!==null&&n!==void 0?n:!1,e.diagnosticLogger&&e.eventListener)throw new Error("Can't have both eventListener and diagnosticLogger options, use only diagnosticLogger");e.eventListener?this._diagnosticLogger={log:e.eventListener.onEvent}:this._diagnosticLogger=e.diagnosticLogger,this._reloadOnDisconnect=(a=e.reloadOnDisconnect)!==null&&a!==void 0?a:!0;let c=new URL(i),l=`${c.protocol}//${c.host}`;this._storage=new BIr.ScopedLocalStorage(`-walletlink:${l}`),this._storage.setItem("version",S5.VERSION),!(this.walletExtension||this.coinbaseBrowser)&&(this._relayEventManager=new UIr.WalletSDKRelayEventManager,this._relay=new FIr.WalletSDKRelay({linkAPIUrl:i,version:Ynt,darkMode:!!e.darkMode,uiConstructor:s,storage:this._storage,relayEventManager:this._relayEventManager,diagnosticLogger:this._diagnosticLogger}),this.setAppInfo(e.appName,e.appLogoUrl),!e.headlessMode&&this._relay.attachUI())}makeWeb3Provider(e="",t=1){let n=this.walletExtension;if(n)return this.isCipherProvider(n)||n.setProviderInfo(e,t),this._reloadOnDisconnect===!1&&typeof n.disableReloadOnDisconnect=="function"&&n.disableReloadOnDisconnect(),n;let a=this.coinbaseBrowser;if(a)return a;let i=this._relay;if(!i||!this._relayEventManager||!this._storage)throw new Error("Relay not initialized, should never happen");return e||i.setConnectDisabled(!0),new qIr.CoinbaseWalletProvider({relayProvider:()=>Promise.resolve(i),relayEventManager:this._relayEventManager,storage:this._storage,jsonRpcUrl:e,chainId:t,qrUrl:this.getQrUrl(),diagnosticLogger:this._diagnosticLogger,overrideIsMetaMask:this._overrideIsMetaMask,overrideIsCoinbaseWallet:this._overrideIsCoinbaseWallet,overrideIsCoinbaseBrowser:this._overrideIsCoinbaseBrowser})}setAppInfo(e,t){var n;this._appName=e||"DApp",this._appLogoUrl=t||(0,WIr.getFavicon)();let a=this.walletExtension;a?this.isCipherProvider(a)||a.setAppInfo(this._appName,this._appLogoUrl):(n=this._relay)===null||n===void 0||n.setAppInfo(this._appName,this._appLogoUrl)}disconnect(){var e;let t=this.walletExtension;t?t.close():(e=this._relay)===null||e===void 0||e.resetAndReload()}getQrUrl(){var e,t;return(t=(e=this._relay)===null||e===void 0?void 0:e.getQRCodeUrl())!==null&&t!==void 0?t:null}getCoinbaseWalletLogo(e,t=240){return(0,LIr.walletLogo)(e,t)}get walletExtension(){var e;return(e=window.coinbaseWalletExtension)!==null&&e!==void 0?e:window.walletLinkExtension}get coinbaseBrowser(){var e,t;try{let n=(e=window.ethereum)!==null&&e!==void 0?e:(t=window.top)===null||t===void 0?void 0:t.ethereum;return n&&"isCoinbaseBrowser"in n&&n.isCoinbaseBrowser?n:void 0}catch{return}}isCipherProvider(e){return typeof e.isCipher=="boolean"&&e.isCipher}};cL.CoinbaseWalletSDK=S5;S5.VERSION=Ynt});var Dee=O(v1=>{"use strict";x();T();Object.defineProperty(v1,"__esModule",{value:!0});v1.CoinbaseWalletProvider=v1.CoinbaseWalletSDK=void 0;var qee=Bee(),$nt=OO(),zIr=Bee();Object.defineProperty(v1,"CoinbaseWalletSDK",{enumerable:!0,get:function(){return zIr.CoinbaseWalletSDK}});var HIr=OO();Object.defineProperty(v1,"CoinbaseWalletProvider",{enumerable:!0,get:function(){return HIr.CoinbaseWalletProvider}});v1.default=qee.CoinbaseWalletSDK;typeof window<"u"&&(window.CoinbaseWalletSDK=qee.CoinbaseWalletSDK,window.CoinbaseWalletProvider=$nt.CoinbaseWalletProvider,window.WalletLink=qee.CoinbaseWalletSDK,window.WalletLinkProvider=$nt.CoinbaseWalletProvider)});var rat=O(jee=>{"use strict";x();T();Object.defineProperty(jee,"__esModule",{value:!0});var Fee=dK(),Tm=_d(),A5=Jc(),_m=(Cd(),Nn(Sp)),eat=_t(),uL=_i();function VIr(r){if(r&&r.__esModule)return r;var e=Object.create(null);return r&&Object.keys(r).forEach(function(t){if(t!=="default"){var n=Object.getOwnPropertyDescriptor(r,t);Object.defineProperty(e,t,n.get?n:{enumerable:!0,get:function(){return r[t]}})}}),e.default=r,Object.freeze(e)}var lL=new WeakMap,P4=new WeakMap,Uee=new WeakSet,Wee=class extends _m.Connector{constructor(e){let{chains:t,options:n}=e;super({chains:t,options:{reloadOnDisconnect:!1,...n}}),Fee._classPrivateMethodInitSpec(this,Uee),A5._defineProperty(this,"id","coinbaseWallet"),A5._defineProperty(this,"name","Coinbase Wallet"),A5._defineProperty(this,"ready",!0),Tm._classPrivateFieldInitSpec(this,lL,{writable:!0,value:void 0}),Tm._classPrivateFieldInitSpec(this,P4,{writable:!0,value:void 0}),A5._defineProperty(this,"onAccountsChanged",a=>{a.length===0?this.emit("disconnect"):this.emit("change",{account:uL.getAddress(a[0])})}),A5._defineProperty(this,"onChainChanged",a=>{let i=_m.normalizeChainId(a),s=this.isChainUnsupported(i);this.emit("change",{chain:{id:i,unsupported:s}})}),A5._defineProperty(this,"onDisconnect",()=>{this.emit("disconnect")})}async connect(){let{chainId:e}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};try{let t=await this.getProvider();t.on("accountsChanged",this.onAccountsChanged),t.on("chainChanged",this.onChainChanged),t.on("disconnect",this.onDisconnect),this.emit("message",{type:"connecting"});let n=await t.enable(),a=uL.getAddress(n[0]),i=await this.getChainId(),s=this.isChainUnsupported(i);return e&&i!==e&&(i=(await this.switchChain(e)).id,s=this.isChainUnsupported(i)),{account:a,chain:{id:i,unsupported:s},provider:new eat.providers.Web3Provider(t)}}catch(t){throw/(user closed modal|accounts received is empty)/i.test(t.message)?new _m.UserRejectedRequestError(t):t}}async disconnect(){if(!Tm._classPrivateFieldGet(this,P4))return;let e=await this.getProvider();e.removeListener("accountsChanged",this.onAccountsChanged),e.removeListener("chainChanged",this.onChainChanged),e.removeListener("disconnect",this.onDisconnect),e.disconnect(),e.close()}async getAccount(){let t=await(await this.getProvider()).request({method:"eth_accounts"});return uL.getAddress(t[0])}async getChainId(){let e=await this.getProvider();return _m.normalizeChainId(e.chainId)}async getProvider(){if(!Tm._classPrivateFieldGet(this,P4)){let e=(await Promise.resolve().then(function(){return VIr(Dee())})).default;typeof e!="function"&&typeof e.default=="function"&&(e=e.default),Tm._classPrivateFieldSet(this,lL,new e(this.options));let t=Tm._classPrivateFieldGet(this,lL).walletExtension?.getChainId(),n=this.chains.find(s=>this.options.chainId?s.id===this.options.chainId:s.id===t)||this.chains[0],a=this.options.chainId||n?.id,i=this.options.jsonRpcUrl||n?.rpcUrls.default.http[0];Tm._classPrivateFieldSet(this,P4,Tm._classPrivateFieldGet(this,lL).makeWeb3Provider(i,a))}return Tm._classPrivateFieldGet(this,P4)}async getSigner(){let{chainId:e}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},[t,n]=await Promise.all([this.getProvider(),this.getAccount()]);return new eat.providers.Web3Provider(t,e).getSigner(n)}async isAuthorized(){try{return!!await this.getAccount()}catch{return!1}}async switchChain(e){let t=await this.getProvider(),n=uL.hexValue(e);try{return await t.request({method:"wallet_switchEthereumChain",params:[{chainId:n}]}),this.chains.find(a=>a.id===e)??{id:e,name:`Chain ${n}`,network:`${n}`,nativeCurrency:{name:"Ether",decimals:18,symbol:"ETH"},rpcUrls:{default:{http:[""]},public:{http:[""]}}}}catch(a){let i=this.chains.find(s=>s.id===e);if(!i)throw new _m.ChainNotConfiguredError({chainId:e,connectorId:this.id});if(a.code===4902)try{return await t.request({method:"wallet_addEthereumChain",params:[{chainId:n,chainName:i.name,nativeCurrency:i.nativeCurrency,rpcUrls:[i.rpcUrls.public?.http[0]??i.rpcUrls.default.http[0]],blockExplorerUrls:this.getBlockExplorerUrls(i)}]}),i}catch(s){throw Fee._classPrivateMethodGet(this,Uee,tat).call(this,s)?new _m.UserRejectedRequestError(s):new _m.AddChainError}throw Fee._classPrivateMethodGet(this,Uee,tat).call(this,a)?new _m.UserRejectedRequestError(a):new _m.SwitchChainError(a)}}async watchAsset(e){let{address:t,decimals:n=18,image:a,symbol:i}=e;return(await this.getProvider()).request({method:"wallet_watchAsset",params:{type:"ERC20",options:{address:t,decimals:n,image:a,symbol:i}}})}};function tat(r){return/(user rejected)/i.test(r.message)}jee.CoinbaseWalletConnector=Wee});var nat=O(zee=>{"use strict";x();T();Object.defineProperty(zee,"__esModule",{value:!0});var GIr=Jc(),dL=_d(),ZIr=mx(),JIr=wx();As();sy();_t();mm();Ms();var pL=new WeakMap,M5=class extends JIr.AbstractBrowserWallet{get walletName(){return"Coinbase Wallet"}constructor(e){super(M5.id,e),dL._classPrivateFieldInitSpec(this,pL,{writable:!0,value:void 0})}async getConnector(){if(!dL._classPrivateFieldGet(this,pL)){let{CoinbaseWalletConnector:e}=await Promise.resolve().then(function(){return rat()});dL._classPrivateFieldSet(this,pL,new ZIr.WagmiAdapter(new e({chains:this.chains,options:{appName:this.options.appName,reloadOnDisconnect:!1}})))}return dL._classPrivateFieldGet(this,pL)}};GIr._defineProperty(M5,"id","coinbaseWallet");zee.CoinbaseWallet=M5});var ru=O(aat=>{"use strict";x();T();function KIr(r,e){if(typeof r!="object"||r===null)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var n=t.call(r,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}function QIr(r){var e=KIr(r,"string");return typeof e=="symbol"?e:String(e)}function XIr(r,e,t){return e=QIr(e),e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}aat._defineProperty=XIr});var Ld=O(R4=>{"use strict";x();T();function iat(r,e){if(e.has(r))throw new TypeError("Cannot initialize the same private elements twice on an object")}function YIr(r,e,t){iat(r,e),e.set(r,t)}function $Ir(r,e,t){if(e.set)e.set.call(r,t);else{if(!e.writable)throw new TypeError("attempted to set read only private field");e.value=t}}function sat(r,e,t){if(!e.has(r))throw new TypeError("attempted to "+t+" private field on non-instance");return e.get(r)}function e9r(r,e,t){var n=sat(r,e,"set");return $Ir(r,n,t),t}function t9r(r,e){return e.get?e.get.call(r):e.value}function r9r(r,e){var t=sat(r,e,"get");return t9r(r,t)}R4._checkPrivateRedeclaration=iat;R4._classPrivateFieldGet=r9r;R4._classPrivateFieldInitSpec=YIr;R4._classPrivateFieldSet=e9r});var I5=O(Vee=>{"use strict";x();T();var n9r=ru(),a9r=As();function i9r(r){return r&&r.__esModule?r:{default:r}}var s9r=i9r(a9r),hL=class extends s9r.default{},Hee=class extends hL{constructor(e){super(),n9r._defineProperty(this,"wagmiConnector",void 0),this.wagmiConnector=e}async connect(e){let t=e?.chainId;return(await this.wagmiConnector.connect({chainId:t})).account}disconnect(){return this.wagmiConnector.disconnect()}isConnected(){return this.wagmiConnector.isAuthorized()}getAddress(){return this.wagmiConnector.getAccount()}getSigner(){return this.wagmiConnector.getSigner()}getProvider(){return this.wagmiConnector.getProvider()}async switchChain(e){if(!this.wagmiConnector.switchChain)throw new Error("Switch chain not supported");await this.wagmiConnector.switchChain(e)}};Vee.TWConnector=hL;Vee.WagmiAdapter=Hee});var Cy=O(fL=>{"use strict";x();T();var oat=ru(),P5=_t(),o9r=As();function c9r(r){return r&&r.__esModule?r:{default:r}}var u9r=c9r(o9r),l9r={id:42161,name:"Arbitrum One",network:"arbitrum",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{alchemy:{http:["https://arb-mainnet.g.alchemy.com/v2"],webSocket:["wss://arb-mainnet.g.alchemy.com/v2"]},infura:{http:["https://arbitrum-mainnet.infura.io/v3"],webSocket:["wss://arbitrum-mainnet.infura.io/ws/v3"]},default:{http:["https://arb1.arbitrum.io/rpc"]},public:{http:["https://arb1.arbitrum.io/rpc"]}},blockExplorers:{etherscan:{name:"Arbiscan",url:"https://arbiscan.io"},default:{name:"Arbiscan",url:"https://arbiscan.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:7654707}}},d9r={id:421613,name:"Arbitrum Goerli",network:"arbitrum-goerli",nativeCurrency:{name:"Arbitrum Goerli Ether",symbol:"ETH",decimals:18},rpcUrls:{alchemy:{http:["https://arb-goerli.g.alchemy.com/v2"],webSocket:["wss://arb-goerli.g.alchemy.com/v2"]},infura:{http:["https://arbitrum-goerli.infura.io/v3"],webSocket:["wss://arbitrum-goerli.infura.io/ws/v3"]},default:{http:["https://goerli-rollup.arbitrum.io/rpc"]},public:{http:["https://goerli-rollup.arbitrum.io/rpc"]}},blockExplorers:{etherscan:{name:"Arbiscan",url:"https://goerli.arbiscan.io/"},default:{name:"Arbiscan",url:"https://goerli.arbiscan.io/"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:88114}},testnet:!0},p9r={id:43114,name:"Avalanche",network:"avalanche",nativeCurrency:{decimals:18,name:"Avalanche",symbol:"AVAX"},rpcUrls:{default:{http:["https://api.avax.network/ext/bc/C/rpc"]},public:{http:["https://api.avax.network/ext/bc/C/rpc"]}},blockExplorers:{etherscan:{name:"SnowTrace",url:"https://snowtrace.io"},default:{name:"SnowTrace",url:"https://snowtrace.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:11907934}}},h9r={id:43113,name:"Avalanche Fuji",network:"avalanche-fuji",nativeCurrency:{decimals:18,name:"Avalanche Fuji",symbol:"AVAX"},rpcUrls:{default:{http:["https://api.avax-test.network/ext/bc/C/rpc"]},public:{http:["https://api.avax-test.network/ext/bc/C/rpc"]}},blockExplorers:{etherscan:{name:"SnowTrace",url:"https://testnet.snowtrace.io"},default:{name:"SnowTrace",url:"https://testnet.snowtrace.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:7096959}},testnet:!0},f9r={id:56,name:"BNB Smart Chain",network:"bsc",nativeCurrency:{decimals:18,name:"BNB",symbol:"BNB"},rpcUrls:{default:{http:["https://rpc.ankr.com/bsc"]},public:{http:["https://rpc.ankr.com/bsc"]}},blockExplorers:{etherscan:{name:"BscScan",url:"https://bscscan.com"},default:{name:"BscScan",url:"https://bscscan.com"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:15921452}}},m9r={id:97,name:"Binance Smart Chain Testnet",network:"bsc-testnet",nativeCurrency:{decimals:18,name:"BNB",symbol:"tBNB"},rpcUrls:{default:{http:["https://bsc-testnet.public.blastapi.io"]},public:{http:["https://bsc-testnet.public.blastapi.io"]}},blockExplorers:{etherscan:{name:"BscScan",url:"https://testnet.bscscan.com"},default:{name:"BscScan",url:"https://testnet.bscscan.com"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:17422483}},testnet:!0},y9r={id:250,name:"Fantom",network:"fantom",nativeCurrency:{decimals:18,name:"Fantom",symbol:"FTM"},rpcUrls:{default:{http:["https://rpc.ankr.com/fantom"]},public:{http:["https://rpc.ankr.com/fantom"]}},blockExplorers:{etherscan:{name:"FTMScan",url:"https://ftmscan.com"},default:{name:"FTMScan",url:"https://ftmscan.com"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:33001987}}},g9r={id:4002,name:"Fantom Testnet",network:"fantom-testnet",nativeCurrency:{decimals:18,name:"Fantom",symbol:"FTM"},rpcUrls:{default:{http:["https://rpc.testnet.fantom.network"]},public:{http:["https://rpc.testnet.fantom.network"]}},blockExplorers:{etherscan:{name:"FTMScan",url:"https://testnet.ftmscan.com"},default:{name:"FTMScan",url:"https://testnet.ftmscan.com"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:8328688}}},v9r={id:5,network:"goerli",name:"Goerli",nativeCurrency:{name:"Goerli Ether",symbol:"ETH",decimals:18},rpcUrls:{alchemy:{http:["https://eth-goerli.g.alchemy.com/v2"],webSocket:["wss://eth-goerli.g.alchemy.com/v2"]},infura:{http:["https://goerli.infura.io/v3"],webSocket:["wss://goerli.infura.io/ws/v3"]},default:{http:["https://rpc.ankr.com/eth_goerli"]},public:{http:["https://rpc.ankr.com/eth_goerli"]}},blockExplorers:{etherscan:{name:"Etherscan",url:"https://goerli.etherscan.io"},default:{name:"Etherscan",url:"https://goerli.etherscan.io"}},contracts:{ensRegistry:{address:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:6507670}},testnet:!0},b9r={id:1,network:"homestead",name:"Ethereum",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{alchemy:{http:["https://eth-mainnet.g.alchemy.com/v2"],webSocket:["wss://eth-mainnet.g.alchemy.com/v2"]},infura:{http:["https://mainnet.infura.io/v3"],webSocket:["wss://mainnet.infura.io/ws/v3"]},default:{http:["https://cloudflare-eth.com"]},public:{http:["https://cloudflare-eth.com"]}},blockExplorers:{etherscan:{name:"Etherscan",url:"https://etherscan.io"},default:{name:"Etherscan",url:"https://etherscan.io"}},contracts:{ensRegistry:{address:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:14353601}}},w9r={id:10,name:"Optimism",network:"optimism",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{alchemy:{http:["https://opt-mainnet.g.alchemy.com/v2"],webSocket:["wss://opt-mainnet.g.alchemy.com/v2"]},infura:{http:["https://optimism-mainnet.infura.io/v3"],webSocket:["wss://optimism-mainnet.infura.io/ws/v3"]},default:{http:["https://mainnet.optimism.io"]},public:{http:["https://mainnet.optimism.io"]}},blockExplorers:{etherscan:{name:"Etherscan",url:"https://optimistic.etherscan.io"},default:{name:"Etherscan",url:"https://optimistic.etherscan.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:4286263}}},x9r={id:420,name:"Optimism Goerli",network:"optimism-goerli",nativeCurrency:{name:"Goerli Ether",symbol:"ETH",decimals:18},rpcUrls:{alchemy:{http:["https://opt-goerli.g.alchemy.com/v2"],webSocket:["wss://opt-goerli.g.alchemy.com/v2"]},infura:{http:["https://optimism-goerli.infura.io/v3"],webSocket:["wss://optimism-goerli.infura.io/ws/v3"]},default:{http:["https://goerli.optimism.io"]},public:{http:["https://goerli.optimism.io"]}},blockExplorers:{etherscan:{name:"Etherscan",url:"https://goerli-optimism.etherscan.io"},default:{name:"Etherscan",url:"https://goerli-optimism.etherscan.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:49461}},testnet:!0},T9r={id:137,name:"Polygon",network:"matic",nativeCurrency:{name:"MATIC",symbol:"MATIC",decimals:18},rpcUrls:{alchemy:{http:["https://polygon-mainnet.g.alchemy.com/v2"],webSocket:["wss://polygon-mainnet.g.alchemy.com/v2"]},infura:{http:["https://polygon-mainnet.infura.io/v3"],webSocket:["wss://polygon-mainnet.infura.io/ws/v3"]},default:{http:["https://polygon-rpc.com"]},public:{http:["https://polygon-rpc.com"]}},blockExplorers:{etherscan:{name:"PolygonScan",url:"https://polygonscan.com"},default:{name:"PolygonScan",url:"https://polygonscan.com"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:25770160}}},_9r={id:80001,name:"Polygon Mumbai",network:"maticmum",nativeCurrency:{name:"MATIC",symbol:"MATIC",decimals:18},rpcUrls:{alchemy:{http:["https://polygon-mumbai.g.alchemy.com/v2"],webSocket:["wss://polygon-mumbai.g.alchemy.com/v2"]},infura:{http:["https://polygon-mumbai.infura.io/v3"],webSocket:["wss://polygon-mumbai.infura.io/ws/v3"]},default:{http:["https://matic-mumbai.chainstacklabs.com"]},public:{http:["https://matic-mumbai.chainstacklabs.com"]}},blockExplorers:{etherscan:{name:"PolygonScan",url:"https://mumbai.polygonscan.com"},default:{name:"PolygonScan",url:"https://mumbai.polygonscan.com"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:25770160}},testnet:!0},Or;(function(r){r[r.Mainnet=1]="Mainnet",r[r.Goerli=5]="Goerli",r[r.Polygon=137]="Polygon",r[r.Mumbai=80001]="Mumbai",r[r.Fantom=250]="Fantom",r[r.FantomTestnet=4002]="FantomTestnet",r[r.Avalanche=43114]="Avalanche",r[r.AvalancheFujiTestnet=43113]="AvalancheFujiTestnet",r[r.Optimism=10]="Optimism",r[r.OptimismGoerli=420]="OptimismGoerli",r[r.Arbitrum=42161]="Arbitrum",r[r.ArbitrumGoerli=421613]="ArbitrumGoerli",r[r.BinanceSmartChainMainnet=56]="BinanceSmartChainMainnet",r[r.BinanceSmartChainTestnet=97]="BinanceSmartChainTestnet"})(Or||(Or={}));Or.Mainnet,Or.Goerli,Or.Polygon,Or.Mumbai,Or.Fantom,Or.FantomTestnet,Or.Avalanche,Or.AvalancheFujiTestnet,Or.Optimism,Or.OptimismGoerli,Or.Arbitrum,Or.ArbitrumGoerli,Or.BinanceSmartChainMainnet,Or.BinanceSmartChainTestnet;var C9r="c6634ad2d97b74baf15ff556016830c251050e6c36b9da508ce3ec80095d3dc1";function E9r(r){switch(r){case Or.Mainnet:return"mainnet";case Or.Goerli:return"goerli";case Or.Polygon:return"polygon";case Or.Mumbai:return"mumbai";case Or.Avalanche:return"avalanche";case Or.AvalancheFujiTestnet:return"avalanche-fuji";case Or.Fantom:return"fantom";case Or.FantomTestnet:return"fantom-testnet";case Or.Arbitrum:return"arbitrum";case Or.ArbitrumGoerli:return"arbitrum-goerli";case Or.Optimism:return"optimism";case Or.OptimismGoerli:return"optimism-goerli";case Or.BinanceSmartChainMainnet:return"bsc";case Or.BinanceSmartChainTestnet:return"bsc-testnet";default:throw new Error("Unsupported chain id")}}function k9r(r){return`https://${E9r(r)}.rpc.thirdweb.com/${C9r}`}function zu(r){let e=k9r(r.id);return{...r,rpcUrls:{...r.rpcUrls,default:{...r.rpcUrls.default,http:[e,...r.rpcUrls.default.http]},public:{...r.rpcUrls.public,http:[e,...r.rpcUrls.public?.http||[]]}}}}var cat={[Or.Mainnet]:zu(b9r),[Or.Goerli]:zu(v9r),[Or.Polygon]:zu(T9r),[Or.Mumbai]:zu(_9r),[Or.Avalanche]:zu(p9r),[Or.AvalancheFujiTestnet]:zu(h9r),[Or.Fantom]:zu(y9r),[Or.FantomTestnet]:zu(g9r),[Or.Arbitrum]:zu(l9r),[Or.ArbitrumGoerli]:zu(d9r),[Or.Optimism]:zu(w9r),[Or.OptimismGoerli]:zu(x9r),[Or.BinanceSmartChainMainnet]:zu(f9r),[Or.BinanceSmartChainTestnet]:zu(m9r)},S9r=Object.values(cat),A9r=["function isValidSignature(bytes32 _message, bytes _signature) public view returns (bytes4)"],M9r="0x1626ba7e",uat=async(r,e,t,n)=>{let a=cat[n]?.rpcUrls.default.http[0];if(!a)return!1;let i=new P5.ethers.providers.JsonRpcProvider(a),s=new P5.ethers.Contract(t,A9r,i),c=P5.ethers.utils.hashMessage(r);try{return await s.isValidSignature(c,e)===M9r}catch{return!1}},Gee=class extends u9r.default{constructor(){super(...arguments),oat._defineProperty(this,"type","evm"),oat._defineProperty(this,"signer",void 0)}async getAddress(){return(await this.getCachedSigner()).getAddress()}async getChainId(){return(await this.getCachedSigner()).getChainId()}async signMessage(e){return await(await this.getCachedSigner()).signMessage(e)}async verifySignature(e,t,n,a){let i=P5.ethers.utils.hashMessage(e),s=P5.ethers.utils.arrayify(i);if(P5.ethers.utils.recoverAddress(s,t)===n)return!0;if(a!==void 0)try{return await uat(e,t,n,a||1)}catch{}return!1}async getCachedSigner(){if(this.signer)return this.signer;if(this.signer=await this.getSigner(),!this.signer)throw new Error("Unable to get a signer!");return this.signer}};fL.AbstractWallet=Gee;fL.checkContractWalletSignature=uat;fL.thirdwebChains=S9r});var Cm=O(mL=>{"use strict";x();T();var I9r=Ms();function P9r(r){return r&&r.__esModule?r:{default:r}}var Kee=P9r(I9r);function R5(r){return`tw_${r}`}var Zee;function R9r(){return Zee||(Zee=Kee.default.createInstance({name:R5("connectors"),storeName:R5("connectors"),version:1})),Zee}var Jee;function N9r(){return Jee||(Jee=Kee.default.createInstance({name:R5("coordinator"),storeName:R5("coordinator"),version:1})),Jee}var lat=new Map;function O9r(r){let e=lat.get(r);return e||(e=Kee.default.createInstance({name:R5(`wallet:${r}`),storeName:R5(`wallet_${r}`),version:1}),lat.set(r,e)),e}mL.getConnectorStorage=R9r;mL.getCoordinatorStorage=N9r;mL.getWalletStorage=O9r});var L5=O(Xee=>{"use strict";x();T();Object.defineProperty(Xee,"__esModule",{value:!0});var yL=ru(),N5=Ld(),dat=Cy(),pat=Cm();_t();As();Ms();var O5=new WeakMap,Qee=class extends dat.AbstractWallet{constructor(e,t){super(),N5._classPrivateFieldInitSpec(this,O5,{writable:!0,value:void 0}),yL._defineProperty(this,"coordinatorStorage",void 0),yL._defineProperty(this,"walletStorage",void 0),yL._defineProperty(this,"chains",void 0),yL._defineProperty(this,"options",void 0),N5._classPrivateFieldSet(this,O5,e),this.options=t,this.chains=t.chains||dat.thirdwebChains,this.coordinatorStorage=pat.getCoordinatorStorage(),this.walletStorage=pat.getWalletStorage(e),t.shouldAutoConnect!==!1&&this.autoConnect()}async autoConnect(){if(await this.coordinatorStorage.getItem("lastConnectedWallet")===N5._classPrivateFieldGet(this,O5)){let t=await this.walletStorage.getItem("lasConnectedParams"),n;try{n=JSON.parse(t)}catch{n=void 0}if(await(await this.getConnector()).isConnected())return await this.connect(n)}}async connect(e){let t=await this.getConnector();t.on("connect",a=>{this.coordinatorStorage.setItem("lastConnectedWallet",N5._classPrivateFieldGet(this,O5)),this.emit("connect",{address:a.account,chainId:a.chain?.id}),a.chain?.id&&this.walletStorage.setItem("lastConnectedChain",a.chain?.id)}),t.on("change",a=>{this.emit("change",{address:a.account,chainId:a.chain?.id}),a.chain?.id&&this.walletStorage.setItem("lastConnectedChain",a.chain?.id)}),t.on("message",a=>this.emit("message",a)),t.on("disconnect",()=>this.emit("disconnect")),t.on("error",a=>this.emit("error",a));let n=await t.connect(e);try{await this.coordinatorStorage.setItem("lastConnectedWallet",N5._classPrivateFieldGet(this,O5))}catch{}return n}async getSigner(){let e=await this.getConnector();if(!e)throw new Error("Wallet not connected");return await e.getSigner()}async disconnect(){let e=await this.getConnector();e&&(e.removeAllListeners(),await e.disconnect(),await this.coordinatorStorage.getItem("lastConnectedWallet")===N5._classPrivateFieldGet(this,O5)&&await this.coordinatorStorage.removeItem("lastConnectedWallet"))}async switchChain(e){let t=await this.getConnector();if(!t)throw new Error("Wallet not connected");if(!t.switchChain)throw new Error("Wallet does not support switching chains");return await t.switchChain(e)}};Xee.AbstractBrowserWallet=Qee});var $ee=O(Yee=>{"use strict";x();T();var L9r=Ld();function B9r(r,e){L9r._checkPrivateRedeclaration(r,e),e.add(r)}function q9r(r,e,t){if(!e.has(r))throw new TypeError("attempted to get private field on non-instance");return t}Yee._classPrivateMethodGet=q9r;Yee._classPrivateMethodInitSpec=B9r});var mat=O(nte=>{"use strict";x();T();Object.defineProperty(nte,"__esModule",{value:!0});var ete=$ee(),Em=Ld(),B5=ru(),km=(Cd(),Nn(Sp)),hat=_t(),gL=_i();function D9r(r){if(r&&r.__esModule)return r;var e=Object.create(null);return r&&Object.keys(r).forEach(function(t){if(t!=="default"){var n=Object.getOwnPropertyDescriptor(r,t);Object.defineProperty(e,t,n.get?n:{enumerable:!0,get:function(){return r[t]}})}}),e.default=r,Object.freeze(e)}var vL=new WeakMap,N4=new WeakMap,tte=new WeakSet,rte=class extends km.Connector{constructor(e){let{chains:t,options:n}=e;super({chains:t,options:{reloadOnDisconnect:!1,...n}}),ete._classPrivateMethodInitSpec(this,tte),B5._defineProperty(this,"id","coinbaseWallet"),B5._defineProperty(this,"name","Coinbase Wallet"),B5._defineProperty(this,"ready",!0),Em._classPrivateFieldInitSpec(this,vL,{writable:!0,value:void 0}),Em._classPrivateFieldInitSpec(this,N4,{writable:!0,value:void 0}),B5._defineProperty(this,"onAccountsChanged",a=>{a.length===0?this.emit("disconnect"):this.emit("change",{account:gL.getAddress(a[0])})}),B5._defineProperty(this,"onChainChanged",a=>{let i=km.normalizeChainId(a),s=this.isChainUnsupported(i);this.emit("change",{chain:{id:i,unsupported:s}})}),B5._defineProperty(this,"onDisconnect",()=>{this.emit("disconnect")})}async connect(){let{chainId:e}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};try{let t=await this.getProvider();t.on("accountsChanged",this.onAccountsChanged),t.on("chainChanged",this.onChainChanged),t.on("disconnect",this.onDisconnect),this.emit("message",{type:"connecting"});let n=await t.enable(),a=gL.getAddress(n[0]),i=await this.getChainId(),s=this.isChainUnsupported(i);return e&&i!==e&&(i=(await this.switchChain(e)).id,s=this.isChainUnsupported(i)),{account:a,chain:{id:i,unsupported:s},provider:new hat.providers.Web3Provider(t)}}catch(t){throw/(user closed modal|accounts received is empty)/i.test(t.message)?new km.UserRejectedRequestError(t):t}}async disconnect(){if(!Em._classPrivateFieldGet(this,N4))return;let e=await this.getProvider();e.removeListener("accountsChanged",this.onAccountsChanged),e.removeListener("chainChanged",this.onChainChanged),e.removeListener("disconnect",this.onDisconnect),e.disconnect(),e.close()}async getAccount(){let t=await(await this.getProvider()).request({method:"eth_accounts"});return gL.getAddress(t[0])}async getChainId(){let e=await this.getProvider();return km.normalizeChainId(e.chainId)}async getProvider(){if(!Em._classPrivateFieldGet(this,N4)){let e=(await Promise.resolve().then(function(){return D9r(Dee())})).default;typeof e!="function"&&typeof e.default=="function"&&(e=e.default),Em._classPrivateFieldSet(this,vL,new e(this.options));let t=Em._classPrivateFieldGet(this,vL).walletExtension?.getChainId(),n=this.chains.find(s=>this.options.chainId?s.id===this.options.chainId:s.id===t)||this.chains[0],a=this.options.chainId||n?.id,i=this.options.jsonRpcUrl||n?.rpcUrls.default.http[0];Em._classPrivateFieldSet(this,N4,Em._classPrivateFieldGet(this,vL).makeWeb3Provider(i,a))}return Em._classPrivateFieldGet(this,N4)}async getSigner(){let{chainId:e}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},[t,n]=await Promise.all([this.getProvider(),this.getAccount()]);return new hat.providers.Web3Provider(t,e).getSigner(n)}async isAuthorized(){try{return!!await this.getAccount()}catch{return!1}}async switchChain(e){let t=await this.getProvider(),n=gL.hexValue(e);try{return await t.request({method:"wallet_switchEthereumChain",params:[{chainId:n}]}),this.chains.find(a=>a.id===e)??{id:e,name:`Chain ${n}`,network:`${n}`,nativeCurrency:{name:"Ether",decimals:18,symbol:"ETH"},rpcUrls:{default:{http:[""]},public:{http:[""]}}}}catch(a){let i=this.chains.find(s=>s.id===e);if(!i)throw new km.ChainNotConfiguredError({chainId:e,connectorId:this.id});if(a.code===4902)try{return await t.request({method:"wallet_addEthereumChain",params:[{chainId:n,chainName:i.name,nativeCurrency:i.nativeCurrency,rpcUrls:[i.rpcUrls.public?.http[0]??i.rpcUrls.default.http[0]],blockExplorerUrls:this.getBlockExplorerUrls(i)}]}),i}catch(s){throw ete._classPrivateMethodGet(this,tte,fat).call(this,s)?new km.UserRejectedRequestError(s):new km.AddChainError}throw ete._classPrivateMethodGet(this,tte,fat).call(this,a)?new km.UserRejectedRequestError(a):new km.SwitchChainError(a)}}async watchAsset(e){let{address:t,decimals:n=18,image:a,symbol:i}=e;return(await this.getProvider()).request({method:"wallet_watchAsset",params:{type:"ERC20",options:{address:t,decimals:n,image:a,symbol:i}}})}};function fat(r){return/(user rejected)/i.test(r.message)}nte.CoinbaseWalletConnector=rte});var yat=O(ate=>{"use strict";x();T();Object.defineProperty(ate,"__esModule",{value:!0});var F9r=ru(),bL=Ld(),U9r=I5(),W9r=L5();As();Cy();_t();Cm();Ms();var wL=new WeakMap,q5=class extends W9r.AbstractBrowserWallet{get walletName(){return"Coinbase Wallet"}constructor(e){super(q5.id,e),bL._classPrivateFieldInitSpec(this,wL,{writable:!0,value:void 0})}async getConnector(){if(!bL._classPrivateFieldGet(this,wL)){let{CoinbaseWalletConnector:e}=await Promise.resolve().then(function(){return mat()});bL._classPrivateFieldSet(this,wL,new U9r.WagmiAdapter(new e({chains:this.chains,options:{appName:this.options.appName,reloadOnDisconnect:!1}})))}return bL._classPrivateFieldGet(this,wL)}};F9r._defineProperty(q5,"id","coinbaseWallet");ate.CoinbaseWallet=q5});var gat=O((h4n,ite)=>{"use strict";x();T();M.env.NODE_ENV==="production"?ite.exports=nat():ite.exports=yat()});var vat=O(ote=>{"use strict";x();T();Object.defineProperty(ote,"__esModule",{value:!0});var j9r=sy();Jc();_t();As();var ste=class extends j9r.AbstractWallet{constructor(e){super(),this.signer=e}async getSigner(){return this.signer}};ote.EthersWallet=ste});var bat=O(ute=>{"use strict";x();T();Object.defineProperty(ute,"__esModule",{value:!0});var z9r=Cy();ru();_t();As();var cte=class extends z9r.AbstractWallet{constructor(e){super(),this.signer=e}async getSigner(){return this.signer}};ute.EthersWallet=cte});var wat=O((T4n,lte)=>{"use strict";x();T();M.env.NODE_ENV==="production"?lte.exports=vat():lte.exports=bat()});var fte=O(hte=>{"use strict";x();T();Object.defineProperty(hte,"__esModule",{value:!0});var b1=_d(),w1=Jc(),xL=mm(),Mc=(Cd(),Nn(Sp)),H9r=_t(),TL=_i();Ms();function V9r(r){if(!r)return"Injected";let e=t=>{if(t.isAvalanche)return"Core Wallet";if(t.isBitKeep)return"BitKeep";if(t.isBraveWallet)return"Brave Wallet";if(t.isCoinbaseWallet)return"Coinbase Wallet";if(t.isExodus)return"Exodus";if(t.isFrame)return"Frame";if(t.isKuCoinWallet)return"KuCoin Wallet";if(t.isMathWallet)return"MathWallet";if(t.isOneInchIOSWallet||t.isOneInchAndroidWallet)return"1inch Wallet";if(t.isOpera)return"Opera";if(t.isPortal)return"Ripio Portal";if(t.isTally)return"Tally";if(t.isTokenPocket)return"TokenPocket";if(t.isTokenary)return"Tokenary";if(t.isTrust||t.isTrustWallet)return"Trust Wallet";if(t.isMetaMask)return"MetaMask"};if(r.providers?.length){let t=new Set,n=1;for(let i of r.providers){let s=e(i);s||(s=`Unknown Wallet #${n}`,n+=1),t.add(s)}let a=[...t];return a.length?a:a[0]??"Injected"}return e(r)??"Injected"}var dte=new WeakMap,_L=new WeakMap,pte=class extends Mc.Connector{constructor(){let{chains:e,options:t}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n={shimDisconnect:!0,shimChainChangedDisconnect:!0,getProvider:()=>typeof window<"u"?window.ethereum:void 0,...t};super({chains:e,options:n}),w1._defineProperty(this,"id",void 0),w1._defineProperty(this,"name",void 0),w1._defineProperty(this,"ready",void 0),b1._classPrivateFieldInitSpec(this,dte,{writable:!0,value:void 0}),b1._classPrivateFieldInitSpec(this,_L,{writable:!0,value:void 0}),w1._defineProperty(this,"shimDisconnectKey","injected.shimDisconnect"),w1._defineProperty(this,"onAccountsChanged",i=>{i.length===0?this.emit("disconnect"):this.emit("change",{account:TL.getAddress(i[0])})}),w1._defineProperty(this,"onChainChanged",i=>{let s=Mc.normalizeChainId(i),c=this.isChainUnsupported(s);this.emit("change",{chain:{id:s,unsupported:c}})}),w1._defineProperty(this,"onDisconnect",async()=>{if(this.options.shimChainChangedDisconnect&&b1._classPrivateFieldGet(this,_L)){b1._classPrivateFieldSet(this,_L,!1);return}this.emit("disconnect"),this.options.shimDisconnect&&await xL.getConnectorStorage().removeItem(this.shimDisconnectKey)});let a=n.getProvider();if(typeof n.name=="string")this.name=n.name;else if(a){let i=V9r(a);n.name?this.name=n.name(i):typeof i=="string"?this.name=i:this.name=i[0]}else this.name="Injected";this.id="injected",this.ready=!!a}async connect(){let{chainId:e}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};try{let t=await this.getProvider();if(!t)throw new Mc.ConnectorNotFoundError;t.on&&(t.on("accountsChanged",this.onAccountsChanged),t.on("chainChanged",this.onChainChanged),t.on("disconnect",this.onDisconnect)),this.emit("message",{type:"connecting"});let n=await t.request({method:"eth_requestAccounts"}),a=TL.getAddress(n[0]),i=await this.getChainId(),s=this.isChainUnsupported(i);return e&&i!==e&&(i=(await this.switchChain(e)).id,s=this.isChainUnsupported(i)),this.options.shimDisconnect&&await xL.getConnectorStorage()?.setItem(this.shimDisconnectKey,!0),{account:a,chain:{id:i,unsupported:s},provider:t}}catch(t){throw this.isUserRejectedRequestError(t)?new Mc.UserRejectedRequestError(t):t.code===-32002?new Mc.ResourceUnavailableError(t):t}}async disconnect(){let e=await this.getProvider();!e?.removeListener||(e.removeListener("accountsChanged",this.onAccountsChanged),e.removeListener("chainChanged",this.onChainChanged),e.removeListener("disconnect",this.onDisconnect),this.options.shimDisconnect&&await xL.getConnectorStorage()?.removeItem(this.shimDisconnectKey))}async getAccount(){let e=await this.getProvider();if(!e)throw new Mc.ConnectorNotFoundError;let t=await e.request({method:"eth_accounts"});return TL.getAddress(t[0])}async getChainId(){let e=await this.getProvider();if(!e)throw new Mc.ConnectorNotFoundError;return e.request({method:"eth_chainId"}).then(Mc.normalizeChainId)}async getProvider(){let e=this.options.getProvider();return e&&b1._classPrivateFieldSet(this,dte,e),b1._classPrivateFieldGet(this,dte)}async getSigner(){let{chainId:e}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},[t,n]=await Promise.all([this.getProvider(),this.getAccount()]);return new H9r.providers.Web3Provider(t,e).getSigner(n)}async isAuthorized(){try{if(this.options.shimDisconnect&&!await xL.getConnectorStorage()?.getItem(this.shimDisconnectKey))return!1;if(!await this.getProvider())throw new Mc.ConnectorNotFoundError;return!!await this.getAccount()}catch{return!1}}async switchChain(e){this.options.shimChainChangedDisconnect&&b1._classPrivateFieldSet(this,_L,!0);let t=await this.getProvider();if(!t)throw new Mc.ConnectorNotFoundError;let n=TL.hexValue(e);try{return await t.request({method:"wallet_switchEthereumChain",params:[{chainId:n}]}),this.chains.find(a=>a.id===e)??{id:e,name:`Chain ${n}`,network:`${n}`,nativeCurrency:{name:"Ether",decimals:18,symbol:"ETH"},rpcUrls:{default:{http:[""]},public:{http:[""]}}}}catch(a){let i=this.chains.find(s=>s.id===e);if(!i)throw new Mc.ChainNotConfiguredError({chainId:e,connectorId:this.id});if(a.code===4902||a?.data?.originalError?.code===4902)try{return await t.request({method:"wallet_addEthereumChain",params:[{chainId:n,chainName:i.name,nativeCurrency:i.nativeCurrency,rpcUrls:[i.rpcUrls.public?.http[0]??i.rpcUrls.default.http[0]??""],blockExplorerUrls:this.getBlockExplorerUrls(i)}]}),i}catch(s){throw this.isUserRejectedRequestError(s)?new Mc.UserRejectedRequestError(a):new Mc.AddChainError}throw this.isUserRejectedRequestError(a)?new Mc.UserRejectedRequestError(a):new Mc.SwitchChainError(a)}}async watchAsset(e){let{address:t,decimals:n=18,image:a,symbol:i}=e,s=await this.getProvider();if(!s)throw new Mc.ConnectorNotFoundError;return s.request({method:"wallet_watchAsset",params:{type:"ERC20",options:{address:t,decimals:n,image:a,symbol:i}}})}isUserRejectedRequestError(e){return e.code===4001}};hte.InjectedConnector=pte});var xat=O(mte=>{"use strict";x();T();Object.defineProperty(mte,"__esModule",{value:!0});var G9r=Jc(),CL=_d(),Z9r=mx(),J9r=wx();As();sy();_t();mm();Ms();var EL=new WeakMap,D5=class extends J9r.AbstractBrowserWallet{get walletName(){return"Injected Wallet"}constructor(e){super(D5.id,e),CL._classPrivateFieldInitSpec(this,EL,{writable:!0,value:void 0})}async getConnector(){if(!CL._classPrivateFieldGet(this,EL)){let{InjectedConnector:e}=await Promise.resolve().then(function(){return fte()});CL._classPrivateFieldSet(this,EL,new Z9r.WagmiAdapter(new e({chains:this.chains,options:{shimDisconnect:!0}})))}return CL._classPrivateFieldGet(this,EL)}};G9r._defineProperty(D5,"id","injected");mte.InjectedWallet=D5});var bte=O(vte=>{"use strict";x();T();Object.defineProperty(vte,"__esModule",{value:!0});var x1=Ld(),T1=ru(),kL=Cm(),Ic=(Cd(),Nn(Sp)),K9r=_t(),SL=_i();Ms();function Q9r(r){if(!r)return"Injected";let e=t=>{if(t.isAvalanche)return"Core Wallet";if(t.isBitKeep)return"BitKeep";if(t.isBraveWallet)return"Brave Wallet";if(t.isCoinbaseWallet)return"Coinbase Wallet";if(t.isExodus)return"Exodus";if(t.isFrame)return"Frame";if(t.isKuCoinWallet)return"KuCoin Wallet";if(t.isMathWallet)return"MathWallet";if(t.isOneInchIOSWallet||t.isOneInchAndroidWallet)return"1inch Wallet";if(t.isOpera)return"Opera";if(t.isPortal)return"Ripio Portal";if(t.isTally)return"Tally";if(t.isTokenPocket)return"TokenPocket";if(t.isTokenary)return"Tokenary";if(t.isTrust||t.isTrustWallet)return"Trust Wallet";if(t.isMetaMask)return"MetaMask"};if(r.providers?.length){let t=new Set,n=1;for(let i of r.providers){let s=e(i);s||(s=`Unknown Wallet #${n}`,n+=1),t.add(s)}let a=[...t];return a.length?a:a[0]??"Injected"}return e(r)??"Injected"}var yte=new WeakMap,AL=new WeakMap,gte=class extends Ic.Connector{constructor(){let{chains:e,options:t}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n={shimDisconnect:!0,shimChainChangedDisconnect:!0,getProvider:()=>typeof window<"u"?window.ethereum:void 0,...t};super({chains:e,options:n}),T1._defineProperty(this,"id",void 0),T1._defineProperty(this,"name",void 0),T1._defineProperty(this,"ready",void 0),x1._classPrivateFieldInitSpec(this,yte,{writable:!0,value:void 0}),x1._classPrivateFieldInitSpec(this,AL,{writable:!0,value:void 0}),T1._defineProperty(this,"shimDisconnectKey","injected.shimDisconnect"),T1._defineProperty(this,"onAccountsChanged",i=>{i.length===0?this.emit("disconnect"):this.emit("change",{account:SL.getAddress(i[0])})}),T1._defineProperty(this,"onChainChanged",i=>{let s=Ic.normalizeChainId(i),c=this.isChainUnsupported(s);this.emit("change",{chain:{id:s,unsupported:c}})}),T1._defineProperty(this,"onDisconnect",async()=>{if(this.options.shimChainChangedDisconnect&&x1._classPrivateFieldGet(this,AL)){x1._classPrivateFieldSet(this,AL,!1);return}this.emit("disconnect"),this.options.shimDisconnect&&await kL.getConnectorStorage().removeItem(this.shimDisconnectKey)});let a=n.getProvider();if(typeof n.name=="string")this.name=n.name;else if(a){let i=Q9r(a);n.name?this.name=n.name(i):typeof i=="string"?this.name=i:this.name=i[0]}else this.name="Injected";this.id="injected",this.ready=!!a}async connect(){let{chainId:e}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};try{let t=await this.getProvider();if(!t)throw new Ic.ConnectorNotFoundError;t.on&&(t.on("accountsChanged",this.onAccountsChanged),t.on("chainChanged",this.onChainChanged),t.on("disconnect",this.onDisconnect)),this.emit("message",{type:"connecting"});let n=await t.request({method:"eth_requestAccounts"}),a=SL.getAddress(n[0]),i=await this.getChainId(),s=this.isChainUnsupported(i);return e&&i!==e&&(i=(await this.switchChain(e)).id,s=this.isChainUnsupported(i)),this.options.shimDisconnect&&await kL.getConnectorStorage()?.setItem(this.shimDisconnectKey,!0),{account:a,chain:{id:i,unsupported:s},provider:t}}catch(t){throw this.isUserRejectedRequestError(t)?new Ic.UserRejectedRequestError(t):t.code===-32002?new Ic.ResourceUnavailableError(t):t}}async disconnect(){let e=await this.getProvider();!e?.removeListener||(e.removeListener("accountsChanged",this.onAccountsChanged),e.removeListener("chainChanged",this.onChainChanged),e.removeListener("disconnect",this.onDisconnect),this.options.shimDisconnect&&await kL.getConnectorStorage()?.removeItem(this.shimDisconnectKey))}async getAccount(){let e=await this.getProvider();if(!e)throw new Ic.ConnectorNotFoundError;let t=await e.request({method:"eth_accounts"});return SL.getAddress(t[0])}async getChainId(){let e=await this.getProvider();if(!e)throw new Ic.ConnectorNotFoundError;return e.request({method:"eth_chainId"}).then(Ic.normalizeChainId)}async getProvider(){let e=this.options.getProvider();return e&&x1._classPrivateFieldSet(this,yte,e),x1._classPrivateFieldGet(this,yte)}async getSigner(){let{chainId:e}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},[t,n]=await Promise.all([this.getProvider(),this.getAccount()]);return new K9r.providers.Web3Provider(t,e).getSigner(n)}async isAuthorized(){try{if(this.options.shimDisconnect&&!await kL.getConnectorStorage()?.getItem(this.shimDisconnectKey))return!1;if(!await this.getProvider())throw new Ic.ConnectorNotFoundError;return!!await this.getAccount()}catch{return!1}}async switchChain(e){this.options.shimChainChangedDisconnect&&x1._classPrivateFieldSet(this,AL,!0);let t=await this.getProvider();if(!t)throw new Ic.ConnectorNotFoundError;let n=SL.hexValue(e);try{return await t.request({method:"wallet_switchEthereumChain",params:[{chainId:n}]}),this.chains.find(a=>a.id===e)??{id:e,name:`Chain ${n}`,network:`${n}`,nativeCurrency:{name:"Ether",decimals:18,symbol:"ETH"},rpcUrls:{default:{http:[""]},public:{http:[""]}}}}catch(a){let i=this.chains.find(s=>s.id===e);if(!i)throw new Ic.ChainNotConfiguredError({chainId:e,connectorId:this.id});if(a.code===4902||a?.data?.originalError?.code===4902)try{return await t.request({method:"wallet_addEthereumChain",params:[{chainId:n,chainName:i.name,nativeCurrency:i.nativeCurrency,rpcUrls:[i.rpcUrls.public?.http[0]??i.rpcUrls.default.http[0]??""],blockExplorerUrls:this.getBlockExplorerUrls(i)}]}),i}catch(s){throw this.isUserRejectedRequestError(s)?new Ic.UserRejectedRequestError(a):new Ic.AddChainError}throw this.isUserRejectedRequestError(a)?new Ic.UserRejectedRequestError(a):new Ic.SwitchChainError(a)}}async watchAsset(e){let{address:t,decimals:n=18,image:a,symbol:i}=e,s=await this.getProvider();if(!s)throw new Ic.ConnectorNotFoundError;return s.request({method:"wallet_watchAsset",params:{type:"ERC20",options:{address:t,decimals:n,image:a,symbol:i}}})}isUserRejectedRequestError(e){return e.code===4001}};vte.InjectedConnector=gte});var Tat=O(wte=>{"use strict";x();T();Object.defineProperty(wte,"__esModule",{value:!0});var X9r=ru(),ML=Ld(),Y9r=I5(),$9r=L5();As();Cy();_t();Cm();Ms();var IL=new WeakMap,F5=class extends $9r.AbstractBrowserWallet{get walletName(){return"Injected Wallet"}constructor(e){super(F5.id,e),ML._classPrivateFieldInitSpec(this,IL,{writable:!0,value:void 0})}async getConnector(){if(!ML._classPrivateFieldGet(this,IL)){let{InjectedConnector:e}=await Promise.resolve().then(function(){return bte()});ML._classPrivateFieldSet(this,IL,new Y9r.WagmiAdapter(new e({chains:this.chains,options:{shimDisconnect:!0}})))}return ML._classPrivateFieldGet(this,IL)}};X9r._defineProperty(F5,"id","injected");wte.InjectedWallet=F5});var _at=O((q4n,xte)=>{"use strict";x();T();M.env.NODE_ENV==="production"?xte.exports=xat():xte.exports=Tat()});var Sm=O((U4n,Rat)=>{x();T();var Tte=Object.defineProperty,ePr=Object.getOwnPropertyDescriptor,tPr=Object.getOwnPropertyNames,rPr=Object.prototype.hasOwnProperty,nPr=r=>Tte(r,"__esModule",{value:!0}),aPr=(r,e)=>{for(var t in e)Tte(r,t,{get:e[t],enumerable:!0})},iPr=(r,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of tPr(e))!rPr.call(r,a)&&(t||a!=="default")&&Tte(r,a,{get:()=>e[a],enumerable:!(n=ePr(e,a))||n.enumerable});return r},sPr=(r=>(e,t)=>r&&r.get(e)||(t=iPr(nPr({}),e,1),r&&r.set(e,t),t))(typeof WeakMap<"u"?new WeakMap:0),Cat={};aPr(Cat,{EthChainType:()=>Pat,MagicIncomingWindowMessage:()=>Mat,MagicOutgoingWindowMessage:()=>Iat,MagicPayloadMethod:()=>Aat,RPCErrorCode:()=>Sat,SDKErrorCode:()=>Eat,SDKWarningCode:()=>kat});var Eat=(r=>(r.MissingApiKey="MISSING_API_KEY",r.ModalNotReady="MODAL_NOT_READY",r.MalformedResponse="MALFORMED_RESPONSE",r.InvalidArgument="INVALID_ARGUMENT",r.ExtensionNotInitialized="EXTENSION_NOT_INITIALIZED",r.IncompatibleExtensions="INCOMPATIBLE_EXTENSIONS",r))(Eat||{}),kat=(r=>(r.SyncWeb3Method="SYNC_WEB3_METHOD",r.DuplicateIframe="DUPLICATE_IFRAME",r.ReactNativeEndpointConfiguration="REACT_NATIVE_ENDPOINT_CONFIGURATION",r.DeprecationNotice="DEPRECATION_NOTICE",r))(kat||{}),Sat=(r=>(r[r.ParseError=-32700]="ParseError",r[r.InvalidRequest=-32600]="InvalidRequest",r[r.MethodNotFound=-32601]="MethodNotFound",r[r.InvalidParams=-32602]="InvalidParams",r[r.InternalError=-32603]="InternalError",r[r.MagicLinkFailedVerification=-1e4]="MagicLinkFailedVerification",r[r.MagicLinkExpired=-10001]="MagicLinkExpired",r[r.MagicLinkRateLimited=-10002]="MagicLinkRateLimited",r[r.MagicLinkInvalidRedirectURL=-10006]="MagicLinkInvalidRedirectURL",r[r.UserAlreadyLoggedIn=-10003]="UserAlreadyLoggedIn",r[r.UpdateEmailFailed=-10004]="UpdateEmailFailed",r[r.UserRequestEditEmail=-10005]="UserRequestEditEmail",r[r.InactiveRecipient=-10010]="InactiveRecipient",r[r.AccessDeniedToUser=-10011]="AccessDeniedToUser",r))(Sat||{}),Aat=(r=>(r.LoginWithSms="magic_auth_login_with_sms",r.LoginWithEmailOTP="magic_auth_login_with_email_otp",r.LoginWithMagicLink="magic_auth_login_with_magic_link",r.LoginWithCredential="magic_auth_login_with_credential",r.GetIdToken="magic_auth_get_id_token",r.GenerateIdToken="magic_auth_generate_id_token",r.GetMetadata="magic_auth_get_metadata",r.IsLoggedIn="magic_auth_is_logged_in",r.Logout="magic_auth_logout",r.UpdateEmail="magic_auth_update_email",r.UserSettings="magic_auth_settings",r.UserSettingsTestMode="magic_auth_settings_testing_mode",r.LoginWithSmsTestMode="magic_auth_login_with_sms_testing_mode",r.LoginWithEmailOTPTestMode="magic_auth_login_with_email_otp_testing_mode",r.LoginWithMagicLinkTestMode="magic_login_with_magic_link_testing_mode",r.LoginWithCredentialTestMode="magic_auth_login_with_credential_testing_mode",r.GetIdTokenTestMode="magic_auth_get_id_token_testing_mode",r.GenerateIdTokenTestMode="magic_auth_generate_id_token_testing_mode",r.GetMetadataTestMode="magic_auth_get_metadata_testing_mode",r.IsLoggedInTestMode="magic_auth_is_logged_in_testing_mode",r.LogoutTestMode="magic_auth_logout_testing_mode",r.UpdateEmailTestMode="magic_auth_update_email_testing_mode",r.IntermediaryEvent="magic_intermediary_event",r))(Aat||{}),Mat=(r=>(r.MAGIC_HANDLE_RESPONSE="MAGIC_HANDLE_RESPONSE",r.MAGIC_OVERLAY_READY="MAGIC_OVERLAY_READY",r.MAGIC_SHOW_OVERLAY="MAGIC_SHOW_OVERLAY",r.MAGIC_HIDE_OVERLAY="MAGIC_HIDE_OVERLAY",r.MAGIC_HANDLE_EVENT="MAGIC_HANDLE_EVENT",r))(Mat||{}),Iat=(r=>(r.MAGIC_HANDLE_REQUEST="MAGIC_HANDLE_REQUEST",r))(Iat||{}),Pat=(r=>(r.Harmony="HARMONY",r))(Pat||{});Rat.exports=sPr(Cat)});var zL=O((z4n,Cit)=>{x();T();var oPr=Object.create,U4=Object.defineProperty,cPr=Object.defineProperties,uPr=Object.getOwnPropertyDescriptor,lPr=Object.getOwnPropertyDescriptors,dPr=Object.getOwnPropertyNames,Nat=Object.getOwnPropertySymbols,pPr=Object.getPrototypeOf,Jat=Object.prototype.hasOwnProperty,hPr=Object.prototype.propertyIsEnumerable,Oat=(r,e,t)=>e in r?U4(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,Kat=(r,e)=>{for(var t in e||(e={}))Jat.call(e,t)&&Oat(r,t,e[t]);if(Nat)for(var t of Nat(e))hPr.call(e,t)&&Oat(r,t,e[t]);return r},fPr=(r,e)=>cPr(r,lPr(e)),Qat=r=>U4(r,"__esModule",{value:!0}),mPr=(r,e)=>()=>(e||r((e={exports:{}}).exports,e),e.exports),Xat=(r,e)=>{for(var t in e)U4(r,t,{get:e[t],enumerable:!0})},Yat=(r,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of dPr(e))!Jat.call(r,a)&&(t||a!=="default")&&U4(r,a,{get:()=>e[a],enumerable:!(n=uPr(e,a))||n.enumerable});return r},yPr=(r,e)=>Yat(Qat(U4(r!=null?oPr(pPr(r)):{},"default",!e&&r&&r.__esModule?{get:()=>r.default,enumerable:!0}:{value:r,enumerable:!0})),r),gPr=(r=>(e,t)=>r&&r.get(e)||(t=Yat(Qat({}),e,1),r&&r.set(e,t),t))(typeof WeakMap<"u"?new WeakMap:0),Mm=(r,e,t)=>new Promise((n,a)=>{var i=l=>{try{c(t.next(l))}catch(d){a(d)}},s=l=>{try{c(t.throw(l))}catch(d){a(d)}},c=l=>l.done?n(l.value):Promise.resolve(l.value).then(i,s);c((t=t.apply(r,e)).next())}),vPr=mPr((r,e)=>{"use strict";var t=Object.prototype.hasOwnProperty,n="~";function a(){}Object.create&&(a.prototype=Object.create(null),new a().__proto__||(n=!1));function i(d,f,w){this.fn=d,this.context=f,this.once=w||!1}function s(d,f,w,E,k){if(typeof w!="function")throw new TypeError("The listener must be a function");var A=new i(w,E||d,k),L=n?n+f:f;return d._events[L]?d._events[L].fn?d._events[L]=[d._events[L],A]:d._events[L].push(A):(d._events[L]=A,d._eventsCount++),d}function c(d,f){--d._eventsCount===0?d._events=new a:delete d._events[f]}function l(){this._events=new a,this._eventsCount=0}l.prototype.eventNames=function(){var d=[],f,w;if(this._eventsCount===0)return d;for(w in f=this._events)t.call(f,w)&&d.push(n?w.slice(1):w);return Object.getOwnPropertySymbols?d.concat(Object.getOwnPropertySymbols(f)):d},l.prototype.listeners=function(d){var f=n?n+d:d,w=this._events[f];if(!w)return[];if(w.fn)return[w.fn];for(var E=0,k=w.length,A=new Array(k);Ej5,MagicExtensionError:()=>Ite,MagicExtensionWarning:()=>Ete,MagicRPCError:()=>q4,MagicSDKError:()=>ky,MagicSDKWarning:()=>j4,SDKBase:()=>_it,STORE_KEY_PRIVATE_KEY:()=>jL,STORE_KEY_PUBLIC_JWK:()=>F4,TypedEmitter:()=>fit,ViewController:()=>j7r,clearKeys:()=>bit,createDeprecationWarning:()=>f7r,createDuplicateIframeWarning:()=>h7r,createExtensionNotInitializedError:()=>oit,createIncompatibleExtensionsError:()=>cit,createInvalidArgumentError:()=>uit,createJwt:()=>wit,createMalformedResponseError:()=>sit,createMissingApiKeyError:()=>iit,createModalNotReadyError:()=>p7r,createPromiEvent:()=>Ote,createPromise:()=>Lte,createReactNativeEndpointConfigurationWarning:()=>dit,createSDK:()=>l7r,createSynchronousWeb3MethodWarning:()=>lit,createTypedEmitter:()=>Nte,createURL:()=>Ste,decodeJSON:()=>tit,encodeJSON:()=>Mte,getPayloadId:()=>Pte,isEmpty:()=>DL,isJsonRpcErrorCode:()=>ait,isJsonRpcRequestPayload:()=>c7r,isJsonRpcResponsePayload:()=>nit,isMagicPayloadMethod:()=>u7r,isPromiEvent:()=>yit,storage:()=>Bte,uuid:()=>git});function bPr(r){let e={exports:{}};return r(e,e.exports),e.exports}var wPr=Number.MAX_SAFE_INTEGER||9007199254740991,Ate={SEMVER_SPEC_VERSION:"2.0.0",MAX_LENGTH:256,MAX_SAFE_INTEGER:wPr,MAX_SAFE_COMPONENT_LENGTH:16},xPr=typeof M=="object"&&M.env&&M.env.NODE_DEBUG&&/\bsemver\b/i.test(M.env.NODE_DEBUG)?(...r)=>console.error("SEMVER",...r):()=>{},ii=xPr,W4=bPr(function(r,e){let{MAX_SAFE_COMPONENT_LENGTH:t}=Ate,n=(e=r.exports={}).re=[],a=e.src=[],i=e.t={},s=0,c=(l,d,f)=>{let w=s++;ii(w,d),i[l]=w,a[w]=d,n[w]=new RegExp(d,f?"g":void 0)};c("NUMERICIDENTIFIER","0|[1-9]\\d*"),c("NUMERICIDENTIFIERLOOSE","[0-9]+"),c("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*"),c("MAINVERSION",`(${a[i.NUMERICIDENTIFIER]})\\.(${a[i.NUMERICIDENTIFIER]})\\.(${a[i.NUMERICIDENTIFIER]})`),c("MAINVERSIONLOOSE",`(${a[i.NUMERICIDENTIFIERLOOSE]})\\.(${a[i.NUMERICIDENTIFIERLOOSE]})\\.(${a[i.NUMERICIDENTIFIERLOOSE]})`),c("PRERELEASEIDENTIFIER",`(?:${a[i.NUMERICIDENTIFIER]}|${a[i.NONNUMERICIDENTIFIER]})`),c("PRERELEASEIDENTIFIERLOOSE",`(?:${a[i.NUMERICIDENTIFIERLOOSE]}|${a[i.NONNUMERICIDENTIFIER]})`),c("PRERELEASE",`(?:-(${a[i.PRERELEASEIDENTIFIER]}(?:\\.${a[i.PRERELEASEIDENTIFIER]})*))`),c("PRERELEASELOOSE",`(?:-?(${a[i.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${a[i.PRERELEASEIDENTIFIERLOOSE]})*))`),c("BUILDIDENTIFIER","[0-9A-Za-z-]+"),c("BUILD",`(?:\\+(${a[i.BUILDIDENTIFIER]}(?:\\.${a[i.BUILDIDENTIFIER]})*))`),c("FULLPLAIN",`v?${a[i.MAINVERSION]}${a[i.PRERELEASE]}?${a[i.BUILD]}?`),c("FULL",`^${a[i.FULLPLAIN]}$`),c("LOOSEPLAIN",`[v=\\s]*${a[i.MAINVERSIONLOOSE]}${a[i.PRERELEASELOOSE]}?${a[i.BUILD]}?`),c("LOOSE",`^${a[i.LOOSEPLAIN]}$`),c("GTLT","((?:<|>)?=?)"),c("XRANGEIDENTIFIERLOOSE",`${a[i.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),c("XRANGEIDENTIFIER",`${a[i.NUMERICIDENTIFIER]}|x|X|\\*`),c("XRANGEPLAIN",`[v=\\s]*(${a[i.XRANGEIDENTIFIER]})(?:\\.(${a[i.XRANGEIDENTIFIER]})(?:\\.(${a[i.XRANGEIDENTIFIER]})(?:${a[i.PRERELEASE]})?${a[i.BUILD]}?)?)?`),c("XRANGEPLAINLOOSE",`[v=\\s]*(${a[i.XRANGEIDENTIFIERLOOSE]})(?:\\.(${a[i.XRANGEIDENTIFIERLOOSE]})(?:\\.(${a[i.XRANGEIDENTIFIERLOOSE]})(?:${a[i.PRERELEASELOOSE]})?${a[i.BUILD]}?)?)?`),c("XRANGE",`^${a[i.GTLT]}\\s*${a[i.XRANGEPLAIN]}$`),c("XRANGELOOSE",`^${a[i.GTLT]}\\s*${a[i.XRANGEPLAINLOOSE]}$`),c("COERCE",`(^|[^\\d])(\\d{1,${t}})(?:\\.(\\d{1,${t}}))?(?:\\.(\\d{1,${t}}))?(?:$|[^\\d])`),c("COERCERTL",a[i.COERCE],!0),c("LONETILDE","(?:~>?)"),c("TILDETRIM",`(\\s*)${a[i.LONETILDE]}\\s+`,!0),e.tildeTrimReplace="$1~",c("TILDE",`^${a[i.LONETILDE]}${a[i.XRANGEPLAIN]}$`),c("TILDELOOSE",`^${a[i.LONETILDE]}${a[i.XRANGEPLAINLOOSE]}$`),c("LONECARET","(?:\\^)"),c("CARETTRIM",`(\\s*)${a[i.LONECARET]}\\s+`,!0),e.caretTrimReplace="$1^",c("CARET",`^${a[i.LONECARET]}${a[i.XRANGEPLAIN]}$`),c("CARETLOOSE",`^${a[i.LONECARET]}${a[i.XRANGEPLAINLOOSE]}$`),c("COMPARATORLOOSE",`^${a[i.GTLT]}\\s*(${a[i.LOOSEPLAIN]})$|^$`),c("COMPARATOR",`^${a[i.GTLT]}\\s*(${a[i.FULLPLAIN]})$|^$`),c("COMPARATORTRIM",`(\\s*)${a[i.GTLT]}\\s*(${a[i.LOOSEPLAIN]}|${a[i.XRANGEPLAIN]})`,!0),e.comparatorTrimReplace="$1$2$3",c("HYPHENRANGE",`^\\s*(${a[i.XRANGEPLAIN]})\\s+-\\s+(${a[i.XRANGEPLAIN]})\\s*$`),c("HYPHENRANGELOOSE",`^\\s*(${a[i.XRANGEPLAINLOOSE]})\\s+-\\s+(${a[i.XRANGEPLAINLOOSE]})\\s*$`),c("STAR","(<|>)?=?\\s*\\*"),c("GTE0","^\\s*>=\\s*0.0.0\\s*$"),c("GTE0PRE","^\\s*>=\\s*0.0.0-0\\s*$")}),Lat=/^[0-9]+$/,eit=(r,e)=>{let t=Lat.test(r),n=Lat.test(e);return t&&n&&(r=+r,e=+e),r===e?0:t&&!n?-1:n&&!t?1:reit(e,r),_Pr={compareIdentifiers:eit,rcompareIdentifiers:TPr},{MAX_LENGTH:Bat,MAX_SAFE_INTEGER:PL}=Ate,{re:qat,t:Dat}=W4,{compareIdentifiers:O4}=_Pr,wo=class{constructor(r,e){if(e&&typeof e=="object"||(e={loose:!!e,includePrerelease:!1}),r instanceof wo){if(r.loose===!!e.loose&&r.includePrerelease===!!e.includePrerelease)return r;r=r.version}else if(typeof r!="string")throw new TypeError(`Invalid Version: ${r}`);if(r.length>Bat)throw new TypeError(`version is longer than ${Bat} characters`);ii("SemVer",r,e),this.options=e,this.loose=!!e.loose,this.includePrerelease=!!e.includePrerelease;let t=r.trim().match(e.loose?qat[Dat.LOOSE]:qat[Dat.FULL]);if(!t)throw new TypeError(`Invalid Version: ${r}`);if(this.raw=r,this.major=+t[1],this.minor=+t[2],this.patch=+t[3],this.major>PL||this.major<0)throw new TypeError("Invalid major version");if(this.minor>PL||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>PL||this.patch<0)throw new TypeError("Invalid patch version");t[4]?this.prerelease=t[4].split(".").map(n=>{if(/^[0-9]+$/.test(n)){let a=+n;if(a>=0&&a=0;)typeof this.prerelease[t]=="number"&&(this.prerelease[t]++,t=-2);t===-1&&this.prerelease.push(0)}e&&(this.prerelease[0]===e?isNaN(this.prerelease[1])&&(this.prerelease=[e,0]):this.prerelease=[e,0]);break;default:throw new Error(`invalid increment argument: ${r}`)}return this.format(),this.raw=this.version,this}},CPr=(r,e,t)=>new wo(r,t).compare(new wo(e,t)),z5=CPr,EPr=(r,e,t)=>z5(r,e,t)===0,kPr=EPr,SPr=(r,e,t)=>z5(r,e,t)!==0,APr=SPr,MPr=(r,e,t)=>z5(r,e,t)>0,IPr=MPr,PPr=(r,e,t)=>z5(r,e,t)>=0,RPr=PPr,NPr=(r,e,t)=>z5(r,e,t)<0,OPr=NPr,LPr=(r,e,t)=>z5(r,e,t)<=0,BPr=LPr,qPr=(r,e,t,n)=>{switch(e){case"===":return typeof r=="object"&&(r=r.version),typeof t=="object"&&(t=t.version),r===t;case"!==":return typeof r=="object"&&(r=r.version),typeof t=="object"&&(t=t.version),r!==t;case"":case"=":case"==":return kPr(r,t,n);case"!=":return APr(r,t,n);case">":return IPr(r,t,n);case">=":return RPr(r,t,n);case"<":return OPr(r,t,n);case"<=":return BPr(r,t,n);default:throw new TypeError(`Invalid operator: ${e}`)}},_te=qPr,L4=Symbol("SemVer ANY"),B4=class{static get ANY(){return L4}constructor(r,e){if(e&&typeof e=="object"||(e={loose:!!e,includePrerelease:!1}),r instanceof B4){if(r.loose===!!e.loose)return r;r=r.value}ii("comparator",r,e),this.options=e,this.loose=!!e.loose,this.parse(r),this.semver===L4?this.value="":this.value=this.operator+this.semver.version,ii("comp",this)}parse(r){let e=this.options.loose?Fat[Uat.COMPARATORLOOSE]:Fat[Uat.COMPARATOR],t=r.match(e);if(!t)throw new TypeError(`Invalid comparator: ${r}`);this.operator=t[1]!==void 0?t[1]:"",this.operator==="="&&(this.operator=""),t[2]?this.semver=new wo(t[2],this.options.loose):this.semver=L4}toString(){return this.value}test(r){if(ii("Comparator.test",r,this.options.loose),this.semver===L4||r===L4)return!0;if(typeof r=="string")try{r=new wo(r,this.options)}catch{return!1}return _te(r,this.operator,this.semver,this.options)}intersects(r,e){if(!(r instanceof B4))throw new TypeError("a Comparator is required");if(e&&typeof e=="object"||(e={loose:!!e,includePrerelease:!1}),this.operator==="")return this.value===""||new W5(r.value,e).test(this.value);if(r.operator==="")return r.value===""||new W5(this.value,e).test(r.semver);let t=!(this.operator!==">="&&this.operator!==">"||r.operator!==">="&&r.operator!==">"),n=!(this.operator!=="<="&&this.operator!=="<"||r.operator!=="<="&&r.operator!=="<"),a=this.semver.version===r.semver.version,i=!(this.operator!==">="&&this.operator!=="<="||r.operator!==">="&&r.operator!=="<="),s=_te(this.semver,"<",r.semver,e)&&(this.operator===">="||this.operator===">")&&(r.operator==="<="||r.operator==="<"),c=_te(this.semver,">",r.semver,e)&&(this.operator==="<="||this.operator==="<")&&(r.operator===">="||r.operator===">");return t||n||a&&i||s||c}},{re:Fat,t:Uat}=W4,W5=class{constructor(r,e){if(e&&typeof e=="object"||(e={loose:!!e,includePrerelease:!1}),r instanceof W5)return r.loose===!!e.loose&&r.includePrerelease===!!e.includePrerelease?r:new W5(r.raw,e);if(r instanceof B4)return this.raw=r.value,this.set=[[r]],this.format(),this;if(this.options=e,this.loose=!!e.loose,this.includePrerelease=!!e.includePrerelease,this.raw=r,this.set=r.split(/\s*\|\|\s*/).map(t=>this.parseRange(t.trim())).filter(t=>t.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${r}`);this.format()}format(){return this.range=this.set.map(r=>r.join(" ").trim()).join("||").trim(),this.range}toString(){return this.range}parseRange(r){let{loose:e}=this.options;r=r.trim();let t=e?Pc[xo.HYPHENRANGELOOSE]:Pc[xo.HYPHENRANGE];r=r.replace(t,QPr(this.options.includePrerelease)),ii("hyphen replace",r),r=r.replace(Pc[xo.COMPARATORTRIM],DPr),ii("comparator trim",r,Pc[xo.COMPARATORTRIM]),r=(r=(r=r.replace(Pc[xo.TILDETRIM],FPr)).replace(Pc[xo.CARETTRIM],UPr)).split(/\s+/).join(" ");let n=e?Pc[xo.COMPARATORLOOSE]:Pc[xo.COMPARATOR];return r.split(" ").map(a=>WPr(a,this.options)).join(" ").split(/\s+/).map(a=>KPr(a,this.options)).filter(this.options.loose?a=>!!a.match(n):()=>!0).map(a=>new B4(a,this.options))}intersects(r,e){if(!(r instanceof W5))throw new TypeError("a Range is required");return this.set.some(t=>Wat(t,e)&&r.set.some(n=>Wat(n,e)&&t.every(a=>n.every(i=>a.intersects(i,e)))))}test(r){if(!r)return!1;if(typeof r=="string")try{r=new wo(r,this.options)}catch{return!1}for(let e=0;e{let t=!0,n=r.slice(),a=n.pop();for(;t&&n.length;)t=n.every(i=>a.intersects(i,e)),a=n.pop();return t},WPr=(r,e)=>(ii("comp",r,e),r=HPr(r,e),ii("caret",r),r=jPr(r,e),ii("tildes",r),r=GPr(r,e),ii("xrange",r),r=JPr(r,e),ii("stars",r),r),au=r=>!r||r.toLowerCase()==="x"||r==="*",jPr=(r,e)=>r.trim().split(/\s+/).map(t=>zPr(t,e)).join(" "),zPr=(r,e)=>{let t=e.loose?Pc[xo.TILDELOOSE]:Pc[xo.TILDE];return r.replace(t,(n,a,i,s,c)=>{let l;return ii("tilde",r,n,a,i,s,c),au(a)?l="":au(i)?l=`>=${a}.0.0 <${+a+1}.0.0-0`:au(s)?l=`>=${a}.${i}.0 <${a}.${+i+1}.0-0`:c?(ii("replaceTilde pr",c),l=`>=${a}.${i}.${s}-${c} <${a}.${+i+1}.0-0`):l=`>=${a}.${i}.${s} <${a}.${+i+1}.0-0`,ii("tilde return",l),l})},HPr=(r,e)=>r.trim().split(/\s+/).map(t=>VPr(t,e)).join(" "),VPr=(r,e)=>{ii("caret",r,e);let t=e.loose?Pc[xo.CARETLOOSE]:Pc[xo.CARET],n=e.includePrerelease?"-0":"";return r.replace(t,(a,i,s,c,l)=>{let d;return ii("caret",r,a,i,s,c,l),au(i)?d="":au(s)?d=`>=${i}.0.0${n} <${+i+1}.0.0-0`:au(c)?d=i==="0"?`>=${i}.${s}.0${n} <${i}.${+s+1}.0-0`:`>=${i}.${s}.0${n} <${+i+1}.0.0-0`:l?(ii("replaceCaret pr",l),d=i==="0"?s==="0"?`>=${i}.${s}.${c}-${l} <${i}.${s}.${+c+1}-0`:`>=${i}.${s}.${c}-${l} <${i}.${+s+1}.0-0`:`>=${i}.${s}.${c}-${l} <${+i+1}.0.0-0`):(ii("no pr"),d=i==="0"?s==="0"?`>=${i}.${s}.${c}${n} <${i}.${s}.${+c+1}-0`:`>=${i}.${s}.${c}${n} <${i}.${+s+1}.0-0`:`>=${i}.${s}.${c} <${+i+1}.0.0-0`),ii("caret return",d),d})},GPr=(r,e)=>(ii("replaceXRanges",r,e),r.split(/\s+/).map(t=>ZPr(t,e)).join(" ")),ZPr=(r,e)=>{r=r.trim();let t=e.loose?Pc[xo.XRANGELOOSE]:Pc[xo.XRANGE];return r.replace(t,(n,a,i,s,c,l)=>{ii("xRange",r,n,a,i,s,c,l);let d=au(i),f=d||au(s),w=f||au(c),E=w;return a==="="&&E&&(a=""),l=e.includePrerelease?"-0":"",d?n=a===">"||a==="<"?"<0.0.0-0":"*":a&&E?(f&&(s=0),c=0,a===">"?(a=">=",f?(i=+i+1,s=0,c=0):(s=+s+1,c=0)):a==="<="&&(a="<",f?i=+i+1:s=+s+1),a==="<"&&(l="-0"),n=`${a+i}.${s}.${c}${l}`):f?n=`>=${i}.0.0${l} <${+i+1}.0.0-0`:w&&(n=`>=${i}.${s}.0${l} <${i}.${+s+1}.0-0`),ii("xRange return",n),n})},JPr=(r,e)=>(ii("replaceStars",r,e),r.trim().replace(Pc[xo.STAR],"")),KPr=(r,e)=>(ii("replaceGTE0",r,e),r.trim().replace(Pc[e.includePrerelease?xo.GTE0PRE:xo.GTE0],"")),QPr=r=>(e,t,n,a,i,s,c,l,d,f,w,E,k)=>`${t=au(n)?"":au(a)?`>=${n}.0.0${r?"-0":""}`:au(i)?`>=${n}.${a}.0${r?"-0":""}`:s?`>=${t}`:`>=${t}${r?"-0":""}`} ${l=au(d)?"":au(f)?`<${+d+1}.0.0-0`:au(w)?`<${d}.${+f+1}.0-0`:E?`<=${d}.${f}.${w}-${E}`:r?`<${d}.${f}.${+w+1}-0`:`<=${l}`}`.trim(),XPr=(r,e,t)=>{for(let n=0;n0){let a=r[n].semver;if(a.major===e.major&&a.minor===e.minor&&a.patch===e.patch)return!0}return!1}return!0},YPr=(r,e,t)=>{try{e=new W5(e,t)}catch{return!1}return e.test(r)},{MAX_LENGTH:$Pr}=Ate,{re:jat,t:zat}=W4,e7r=(r,e)=>{if(e&&typeof e=="object"||(e={loose:!!e,includePrerelease:!1}),r instanceof wo)return r;if(typeof r!="string"||r.length>$Pr||!(e.loose?jat[zat.LOOSE]:jat[zat.FULL]).test(r))return null;try{return new wo(r,e)}catch{return null}},t7r=e7r,{re:RL,t:NL}=W4,r7r=(r,e)=>{if(r instanceof wo)return r;if(typeof r=="number"&&(r=String(r)),typeof r!="string")return null;let t=null;if((e=e||{}).rtl){let n;for(;(n=RL[NL.COERCERTL].exec(r))&&(!t||t.index+t[0].length!==r.length);)t&&n.index+n[0].length===t.index+t[0].length||(t=n),RL[NL.COERCERTL].lastIndex=n.index+n[1].length+n[2].length;RL[NL.COERCERTL].lastIndex=-1}else t=r.match(RL[NL.COERCE]);return t===null?null:t7r(`${t[2]}.${t[3]||"0"}.${t[4]||"0"}`,e)};function n7r(r){return String.fromCharCode(parseInt(r.slice(1),16))}function a7r(r){return`%${`00${r.charCodeAt(0).toString(16)}`.slice(-2)}`}function i7r(r){return btoa(encodeURIComponent(r).replace(/%[0-9A-F]{2}/g,n7r))}function s7r(r){return decodeURIComponent(Array.from(atob(r),a7r).join(""))}function Mte(r){return i7r(JSON.stringify(r))}function tit(r){return JSON.parse(s7r(r))}var Bp=Sm(),rit=Sm();function Am(r){return typeof r>"u"}function o7r(r){return r===null}function WL(r){return o7r(r)||Am(r)}function c7r(r){return WL(r)?!1:!Am(r.jsonrpc)&&!Am(r.id)&&!Am(r.method)&&!Am(r.params)}function nit(r){return WL(r)?!1:!Am(r.jsonrpc)&&!Am(r.id)&&(!Am(r.result)||!Am(r.error))}function u7r(r){return WL(r)?!1:typeof r=="string"&&Object.values(rit.MagicPayloadMethod).includes(r)}function ait(r){return WL(r)?!1:typeof r=="number"&&Object.values(rit.RPCErrorCode).includes(r)}function DL(r){if(!r)return!0;for(let e in r)if(Object.hasOwnProperty.call(r,e))return!1;return!0}var Hi={};function l7r(r,e){return Object.assign(Hi,e),r}var d7r={"magic-sdk":"magic-sdk","@magic-sdk/react-native":"magic-sdk-rn"},ky=class extends Error{constructor(r,e){super(`Magic SDK Error: [${r}] ${e}`),this.code=r,this.rawMessage=e,this.__proto__=Error,Object.setPrototypeOf(this,ky.prototype)}},q4=class extends Error{constructor(r){super(),this.__proto__=Error;let e=Number(r?.code);this.rawMessage=r?.message||"Internal error",this.code=ait(e)?e:Bp.RPCErrorCode.InternalError,this.message=`Magic RPC Error: [${this.code}] ${this.rawMessage}`,Object.setPrototypeOf(this,q4.prototype)}},j4=class{constructor(r,e){this.code=r,this.rawMessage=e,this.message=`Magic SDK Warning: [${r}] ${e}`}log(){console.warn(this.message)}},Ite=class extends Error{constructor(r,e,t,n){super(`Magic Extension Error (${r.name}): [${e}] ${t}`),this.code=e,this.rawMessage=t,this.data=n,this.__proto__=Error,Object.setPrototypeOf(this,Ite.prototype)}},Ete=class{constructor(r,e,t){this.code=e,this.rawMessage=t,this.message=`Magic Extension Warning (${r.name}): [${e}] ${t}`}log(){console.warn(this.message)}};function iit(){return new ky(Bp.SDKErrorCode.MissingApiKey,"Please provide an API key that you acquired from the Magic developer dashboard.")}function p7r(){return new ky(Bp.SDKErrorCode.ModalNotReady,"Modal is not ready.")}function sit(){return new ky(Bp.SDKErrorCode.MalformedResponse,"Response from the Magic iframe is malformed.")}function oit(r){return new ky(Bp.SDKErrorCode.ExtensionNotInitialized,`Extensions must be initialized with a Magic SDK instance before \`Extension.${r}\` can be accessed. Do not invoke \`Extension.${r}\` inside an extension constructor.`)}function cit(r){let e=`Some extensions are incompatible with \`${Hi.sdkName}@${Hi.version}\`:`;return r.filter(t=>typeof t.compat<"u"&&t.compat!==null).forEach(t=>{let n=t.compat[Hi.sdkName];typeof n=="string"?e+=` - - Extension \`${t.name}\` supports version(s) \`${n}\``:n||(e+=` - - Extension \`${t.name}\` does not support ${Hi.platform} environments.`)}),new ky(Bp.SDKErrorCode.IncompatibleExtensions,e)}function uit(r){let e=t=>{let n=t+1,a=n%10,i=n%100;return a===1&&i!==11?`${n}st`:a===2&&i!==12?`${n}nd`:a===3&&i!==13?`${n}rd`:`${n}th`};return new ky(Bp.SDKErrorCode.InvalidArgument,`Invalid ${e(r.argument)} argument given to \`${r.procedure}\`. +`; + }); + var RXe = N((SB) => { + "use strict"; + _(); + x(); + Object.defineProperty(SB, "__esModule", { value: !0 }); + SB.StatusDotIcon = void 0; + var PXe = (Wc(), In(Cu)); + function fTr(r) { + return (0, PXe.h)( + "svg", + Object.assign( + { + width: "10", + height: "10", + viewBox: "0 0 10 10", + xmlns: "http://www.w3.org/2000/svg", + }, + r + ), + (0, PXe.h)("path", { + "fill-rule": "evenodd", + "clip-rule": "evenodd", + d: "M2.29995 4.99995C2.29995 5.57985 1.82985 6.04995 1.24995 6.04995C0.670052 6.04995 0.199951 5.57985 0.199951 4.99995C0.199951 4.42005 0.670052 3.94995 1.24995 3.94995C1.82985 3.94995 2.29995 4.42005 2.29995 4.99995ZM4.99995 6.04995C5.57985 6.04995 6.04995 5.57985 6.04995 4.99995C6.04995 4.42005 5.57985 3.94995 4.99995 3.94995C4.42005 3.94995 3.94995 4.42005 3.94995 4.99995C3.94995 5.57985 4.42005 6.04995 4.99995 6.04995ZM8.74995 6.04995C9.32985 6.04995 9.79995 5.57985 9.79995 4.99995C9.79995 4.42005 9.32985 3.94995 8.74995 3.94995C8.17005 3.94995 7.69995 4.42005 7.69995 4.99995C7.69995 5.57985 8.17005 6.04995 8.74995 6.04995Z", + }) + ); + } + SB.StatusDotIcon = fTr; + }); + var DXe = N((iwn, LXe) => { + _(); + x(); + function BXe(r) { + (this.mode = rl.MODE_8BIT_BYTE), (this.data = r), (this.parsedData = []); + for (var e = 0, t = this.data.length; e < t; e++) { + var n = [], + a = this.data.charCodeAt(e); + a > 65536 + ? ((n[0] = 240 | ((a & 1835008) >>> 18)), + (n[1] = 128 | ((a & 258048) >>> 12)), + (n[2] = 128 | ((a & 4032) >>> 6)), + (n[3] = 128 | (a & 63))) + : a > 2048 + ? ((n[0] = 224 | ((a & 61440) >>> 12)), + (n[1] = 128 | ((a & 4032) >>> 6)), + (n[2] = 128 | (a & 63))) + : a > 128 + ? ((n[0] = 192 | ((a & 1984) >>> 6)), (n[1] = 128 | (a & 63))) + : (n[0] = a), + this.parsedData.push(n); + } + (this.parsedData = Array.prototype.concat.apply([], this.parsedData)), + this.parsedData.length != this.data.length && + (this.parsedData.unshift(191), + this.parsedData.unshift(187), + this.parsedData.unshift(239)); + } + BXe.prototype = { + getLength: function (r) { + return this.parsedData.length; + }, + write: function (r) { + for (var e = 0, t = this.parsedData.length; e < t; e++) + r.put(this.parsedData[e], 8); + }, + }; + function Nh(r, e) { + (this.typeNumber = r), + (this.errorCorrectLevel = e), + (this.modules = null), + (this.moduleCount = 0), + (this.dataCache = null), + (this.dataList = []); + } + Nh.prototype = { + addData: function (r) { + var e = new BXe(r); + this.dataList.push(e), (this.dataCache = null); + }, + isDark: function (r, e) { + if (r < 0 || this.moduleCount <= r || e < 0 || this.moduleCount <= e) + throw new Error(r + "," + e); + return this.modules[r][e]; + }, + getModuleCount: function () { + return this.moduleCount; + }, + make: function () { + this.makeImpl(!1, this.getBestMaskPattern()); + }, + makeImpl: function (r, e) { + (this.moduleCount = this.typeNumber * 4 + 17), + (this.modules = new Array(this.moduleCount)); + for (var t = 0; t < this.moduleCount; t++) { + this.modules[t] = new Array(this.moduleCount); + for (var n = 0; n < this.moduleCount; n++) this.modules[t][n] = null; + } + this.setupPositionProbePattern(0, 0), + this.setupPositionProbePattern(this.moduleCount - 7, 0), + this.setupPositionProbePattern(0, this.moduleCount - 7), + this.setupPositionAdjustPattern(), + this.setupTimingPattern(), + this.setupTypeInfo(r, e), + this.typeNumber >= 7 && this.setupTypeNumber(r), + this.dataCache == null && + (this.dataCache = Nh.createData( + this.typeNumber, + this.errorCorrectLevel, + this.dataList + )), + this.mapData(this.dataCache, e); + }, + setupPositionProbePattern: function (r, e) { + for (var t = -1; t <= 7; t++) + if (!(r + t <= -1 || this.moduleCount <= r + t)) + for (var n = -1; n <= 7; n++) + e + n <= -1 || + this.moduleCount <= e + n || + ((0 <= t && t <= 6 && (n == 0 || n == 6)) || + (0 <= n && n <= 6 && (t == 0 || t == 6)) || + (2 <= t && t <= 4 && 2 <= n && n <= 4) + ? (this.modules[r + t][e + n] = !0) + : (this.modules[r + t][e + n] = !1)); + }, + getBestMaskPattern: function () { + for (var r = 0, e = 0, t = 0; t < 8; t++) { + this.makeImpl(!0, t); + var n = Ii.getLostPoint(this); + (t == 0 || r > n) && ((r = n), (e = t)); + } + return e; + }, + createMovieClip: function (r, e, t) { + var n = r.createEmptyMovieClip(e, t), + a = 1; + this.make(); + for (var i = 0; i < this.modules.length; i++) + for (var s = i * a, c = 0; c < this.modules[i].length; c++) { + var l = c * a, + d = this.modules[i][c]; + d && + (n.beginFill(0, 100), + n.moveTo(l, s), + n.lineTo(l + a, s), + n.lineTo(l + a, s + a), + n.lineTo(l, s + a), + n.endFill()); + } + return n; + }, + setupTimingPattern: function () { + for (var r = 8; r < this.moduleCount - 8; r++) + this.modules[r][6] == null && (this.modules[r][6] = r % 2 == 0); + for (var e = 8; e < this.moduleCount - 8; e++) + this.modules[6][e] == null && (this.modules[6][e] = e % 2 == 0); + }, + setupPositionAdjustPattern: function () { + for ( + var r = Ii.getPatternPosition(this.typeNumber), e = 0; + e < r.length; + e++ + ) + for (var t = 0; t < r.length; t++) { + var n = r[e], + a = r[t]; + if (this.modules[n][a] == null) + for (var i = -2; i <= 2; i++) + for (var s = -2; s <= 2; s++) + i == -2 || i == 2 || s == -2 || s == 2 || (i == 0 && s == 0) + ? (this.modules[n + i][a + s] = !0) + : (this.modules[n + i][a + s] = !1); + } + }, + setupTypeNumber: function (r) { + for (var e = Ii.getBCHTypeNumber(this.typeNumber), t = 0; t < 18; t++) { + var n = !r && ((e >> t) & 1) == 1; + this.modules[Math.floor(t / 3)][(t % 3) + this.moduleCount - 8 - 3] = + n; + } + for (var t = 0; t < 18; t++) { + var n = !r && ((e >> t) & 1) == 1; + this.modules[(t % 3) + this.moduleCount - 8 - 3][Math.floor(t / 3)] = + n; + } + }, + setupTypeInfo: function (r, e) { + for ( + var t = (this.errorCorrectLevel << 3) | e, + n = Ii.getBCHTypeInfo(t), + a = 0; + a < 15; + a++ + ) { + var i = !r && ((n >> a) & 1) == 1; + a < 6 + ? (this.modules[a][8] = i) + : a < 8 + ? (this.modules[a + 1][8] = i) + : (this.modules[this.moduleCount - 15 + a][8] = i); + } + for (var a = 0; a < 15; a++) { + var i = !r && ((n >> a) & 1) == 1; + a < 8 + ? (this.modules[8][this.moduleCount - a - 1] = i) + : a < 9 + ? (this.modules[8][15 - a - 1 + 1] = i) + : (this.modules[8][15 - a - 1] = i); + } + this.modules[this.moduleCount - 8][8] = !r; + }, + mapData: function (r, e) { + for ( + var t = -1, + n = this.moduleCount - 1, + a = 7, + i = 0, + s = this.moduleCount - 1; + s > 0; + s -= 2 + ) + for (s == 6 && s--; ; ) { + for (var c = 0; c < 2; c++) + if (this.modules[n][s - c] == null) { + var l = !1; + i < r.length && (l = ((r[i] >>> a) & 1) == 1); + var d = Ii.getMask(e, n, s - c); + d && (l = !l), + (this.modules[n][s - c] = l), + a--, + a == -1 && (i++, (a = 7)); + } + if (((n += t), n < 0 || this.moduleCount <= n)) { + (n -= t), (t = -t); + break; + } + } + }, + }; + Nh.PAD0 = 236; + Nh.PAD1 = 17; + Nh.createData = function (r, e, t) { + for ( + var n = Bh.getRSBlocks(r, e), a = new NXe(), i = 0; + i < t.length; + i++ + ) { + var s = t[i]; + a.put(s.mode, 4), + a.put(s.getLength(), Ii.getLengthInBits(s.mode, r)), + s.write(a); + } + for (var c = 0, i = 0; i < n.length; i++) c += n[i].dataCount; + if (a.getLengthInBits() > c * 8) + throw new Error( + "code length overflow. (" + a.getLengthInBits() + ">" + c * 8 + ")" + ); + for ( + a.getLengthInBits() + 4 <= c * 8 && a.put(0, 4); + a.getLengthInBits() % 8 != 0; + + ) + a.putBit(!1); + for ( + ; + !( + a.getLengthInBits() >= c * 8 || + (a.put(Nh.PAD0, 8), a.getLengthInBits() >= c * 8) + ); + + ) + a.put(Nh.PAD1, 8); + return Nh.createBytes(a, n); + }; + Nh.createBytes = function (r, e) { + for ( + var t = 0, + n = 0, + a = 0, + i = new Array(e.length), + s = new Array(e.length), + c = 0; + c < e.length; + c++ + ) { + var l = e[c].dataCount, + d = e[c].totalCount - l; + (n = Math.max(n, l)), (a = Math.max(a, d)), (i[c] = new Array(l)); + for (var m = 0; m < i[c].length; m++) i[c][m] = 255 & r.buffer[m + t]; + t += l; + var w = Ii.getErrorCorrectPolynomial(d), + C = new y_(i[c], w.getLength() - 1), + I = C.mod(w); + s[c] = new Array(w.getLength() - 1); + for (var m = 0; m < s[c].length; m++) { + var k = m + I.getLength() - s[c].length; + s[c][m] = k >= 0 ? I.get(k) : 0; + } + } + for (var O = 0, m = 0; m < e.length; m++) O += e[m].totalCount; + for (var D = new Array(O), W = 0, m = 0; m < n; m++) + for (var c = 0; c < e.length; c++) + m < i[c].length && (D[W++] = i[c][m]); + for (var m = 0; m < a; m++) + for (var c = 0; c < e.length; c++) + m < s[c].length && (D[W++] = s[c][m]); + return D; + }; + var rl = { + MODE_NUMBER: 1 << 0, + MODE_ALPHA_NUM: 1 << 1, + MODE_8BIT_BYTE: 1 << 2, + MODE_KANJI: 1 << 3, + }, + H0 = { L: 1, M: 0, Q: 3, H: 2 }, + U0 = { + PATTERN000: 0, + PATTERN001: 1, + PATTERN010: 2, + PATTERN011: 3, + PATTERN100: 4, + PATTERN101: 5, + PATTERN110: 6, + PATTERN111: 7, + }, + Ii = { + PATTERN_POSITION_TABLE: [ + [], + [6, 18], + [6, 22], + [6, 26], + [6, 30], + [6, 34], + [6, 22, 38], + [6, 24, 42], + [6, 26, 46], + [6, 28, 50], + [6, 30, 54], + [6, 32, 58], + [6, 34, 62], + [6, 26, 46, 66], + [6, 26, 48, 70], + [6, 26, 50, 74], + [6, 30, 54, 78], + [6, 30, 56, 82], + [6, 30, 58, 86], + [6, 34, 62, 90], + [6, 28, 50, 72, 94], + [6, 26, 50, 74, 98], + [6, 30, 54, 78, 102], + [6, 28, 54, 80, 106], + [6, 32, 58, 84, 110], + [6, 30, 58, 86, 114], + [6, 34, 62, 90, 118], + [6, 26, 50, 74, 98, 122], + [6, 30, 54, 78, 102, 126], + [6, 26, 52, 78, 104, 130], + [6, 30, 56, 82, 108, 134], + [6, 34, 60, 86, 112, 138], + [6, 30, 58, 86, 114, 142], + [6, 34, 62, 90, 118, 146], + [6, 30, 54, 78, 102, 126, 150], + [6, 24, 50, 76, 102, 128, 154], + [6, 28, 54, 80, 106, 132, 158], + [6, 32, 58, 84, 110, 136, 162], + [6, 26, 54, 82, 110, 138, 166], + [6, 30, 58, 86, 114, 142, 170], + ], + G15: + (1 << 10) | + (1 << 8) | + (1 << 5) | + (1 << 4) | + (1 << 2) | + (1 << 1) | + (1 << 0), + G18: + (1 << 12) | + (1 << 11) | + (1 << 10) | + (1 << 9) | + (1 << 8) | + (1 << 5) | + (1 << 2) | + (1 << 0), + G15_MASK: (1 << 14) | (1 << 12) | (1 << 10) | (1 << 4) | (1 << 1), + getBCHTypeInfo: function (r) { + for ( + var e = r << 10; + Ii.getBCHDigit(e) - Ii.getBCHDigit(Ii.G15) >= 0; + + ) + e ^= Ii.G15 << (Ii.getBCHDigit(e) - Ii.getBCHDigit(Ii.G15)); + return ((r << 10) | e) ^ Ii.G15_MASK; + }, + getBCHTypeNumber: function (r) { + for ( + var e = r << 12; + Ii.getBCHDigit(e) - Ii.getBCHDigit(Ii.G18) >= 0; + + ) + e ^= Ii.G18 << (Ii.getBCHDigit(e) - Ii.getBCHDigit(Ii.G18)); + return (r << 12) | e; + }, + getBCHDigit: function (r) { + for (var e = 0; r != 0; ) e++, (r >>>= 1); + return e; + }, + getPatternPosition: function (r) { + return Ii.PATTERN_POSITION_TABLE[r - 1]; + }, + getMask: function (r, e, t) { + switch (r) { + case U0.PATTERN000: + return (e + t) % 2 == 0; + case U0.PATTERN001: + return e % 2 == 0; + case U0.PATTERN010: + return t % 3 == 0; + case U0.PATTERN011: + return (e + t) % 3 == 0; + case U0.PATTERN100: + return (Math.floor(e / 2) + Math.floor(t / 3)) % 2 == 0; + case U0.PATTERN101: + return ((e * t) % 2) + ((e * t) % 3) == 0; + case U0.PATTERN110: + return (((e * t) % 2) + ((e * t) % 3)) % 2 == 0; + case U0.PATTERN111: + return (((e * t) % 3) + ((e + t) % 2)) % 2 == 0; + default: + throw new Error("bad maskPattern:" + r); + } + }, + getErrorCorrectPolynomial: function (r) { + for (var e = new y_([1], 0), t = 0; t < r; t++) + e = e.multiply(new y_([1, zs.gexp(t)], 0)); + return e; + }, + getLengthInBits: function (r, e) { + if (1 <= e && e < 10) + switch (r) { + case rl.MODE_NUMBER: + return 10; + case rl.MODE_ALPHA_NUM: + return 9; + case rl.MODE_8BIT_BYTE: + return 8; + case rl.MODE_KANJI: + return 8; + default: + throw new Error("mode:" + r); + } + else if (e < 27) + switch (r) { + case rl.MODE_NUMBER: + return 12; + case rl.MODE_ALPHA_NUM: + return 11; + case rl.MODE_8BIT_BYTE: + return 16; + case rl.MODE_KANJI: + return 10; + default: + throw new Error("mode:" + r); + } + else if (e < 41) + switch (r) { + case rl.MODE_NUMBER: + return 14; + case rl.MODE_ALPHA_NUM: + return 13; + case rl.MODE_8BIT_BYTE: + return 16; + case rl.MODE_KANJI: + return 12; + default: + throw new Error("mode:" + r); + } + else throw new Error("type:" + e); + }, + getLostPoint: function (r) { + for (var e = r.getModuleCount(), t = 0, n = 0; n < e; n++) + for (var a = 0; a < e; a++) { + for (var i = 0, s = r.isDark(n, a), c = -1; c <= 1; c++) + if (!(n + c < 0 || e <= n + c)) + for (var l = -1; l <= 1; l++) + a + l < 0 || + e <= a + l || + (c == 0 && l == 0) || + (s == r.isDark(n + c, a + l) && i++); + i > 5 && (t += 3 + i - 5); + } + for (var n = 0; n < e - 1; n++) + for (var a = 0; a < e - 1; a++) { + var d = 0; + r.isDark(n, a) && d++, + r.isDark(n + 1, a) && d++, + r.isDark(n, a + 1) && d++, + r.isDark(n + 1, a + 1) && d++, + (d == 0 || d == 4) && (t += 3); + } + for (var n = 0; n < e; n++) + for (var a = 0; a < e - 6; a++) + r.isDark(n, a) && + !r.isDark(n, a + 1) && + r.isDark(n, a + 2) && + r.isDark(n, a + 3) && + r.isDark(n, a + 4) && + !r.isDark(n, a + 5) && + r.isDark(n, a + 6) && + (t += 40); + for (var a = 0; a < e; a++) + for (var n = 0; n < e - 6; n++) + r.isDark(n, a) && + !r.isDark(n + 1, a) && + r.isDark(n + 2, a) && + r.isDark(n + 3, a) && + r.isDark(n + 4, a) && + !r.isDark(n + 5, a) && + r.isDark(n + 6, a) && + (t += 40); + for (var m = 0, a = 0; a < e; a++) + for (var n = 0; n < e; n++) r.isDark(n, a) && m++; + var w = Math.abs((100 * m) / e / e - 50) / 5; + return (t += w * 10), t; + }, + }, + zs = { + glog: function (r) { + if (r < 1) throw new Error("glog(" + r + ")"); + return zs.LOG_TABLE[r]; + }, + gexp: function (r) { + for (; r < 0; ) r += 255; + for (; r >= 256; ) r -= 255; + return zs.EXP_TABLE[r]; + }, + EXP_TABLE: new Array(256), + LOG_TABLE: new Array(256), + }; + for (Xi = 0; Xi < 8; Xi++) zs.EXP_TABLE[Xi] = 1 << Xi; + var Xi; + for (Xi = 8; Xi < 256; Xi++) + zs.EXP_TABLE[Xi] = + zs.EXP_TABLE[Xi - 4] ^ + zs.EXP_TABLE[Xi - 5] ^ + zs.EXP_TABLE[Xi - 6] ^ + zs.EXP_TABLE[Xi - 8]; + var Xi; + for (Xi = 0; Xi < 255; Xi++) zs.LOG_TABLE[zs.EXP_TABLE[Xi]] = Xi; + var Xi; + function y_(r, e) { + if (r.length == null) throw new Error(r.length + "/" + e); + for (var t = 0; t < r.length && r[t] == 0; ) t++; + this.num = new Array(r.length - t + e); + for (var n = 0; n < r.length - t; n++) this.num[n] = r[n + t]; + } + y_.prototype = { + get: function (r) { + return this.num[r]; + }, + getLength: function () { + return this.num.length; + }, + multiply: function (r) { + for ( + var e = new Array(this.getLength() + r.getLength() - 1), t = 0; + t < this.getLength(); + t++ + ) + for (var n = 0; n < r.getLength(); n++) + e[t + n] ^= zs.gexp(zs.glog(this.get(t)) + zs.glog(r.get(n))); + return new y_(e, 0); + }, + mod: function (r) { + if (this.getLength() - r.getLength() < 0) return this; + for ( + var e = zs.glog(this.get(0)) - zs.glog(r.get(0)), + t = new Array(this.getLength()), + n = 0; + n < this.getLength(); + n++ + ) + t[n] = this.get(n); + for (var n = 0; n < r.getLength(); n++) + t[n] ^= zs.gexp(zs.glog(r.get(n)) + e); + return new y_(t, 0).mod(r); + }, + }; + function Bh(r, e) { + (this.totalCount = r), (this.dataCount = e); + } + Bh.RS_BLOCK_TABLE = [ + [1, 26, 19], + [1, 26, 16], + [1, 26, 13], + [1, 26, 9], + [1, 44, 34], + [1, 44, 28], + [1, 44, 22], + [1, 44, 16], + [1, 70, 55], + [1, 70, 44], + [2, 35, 17], + [2, 35, 13], + [1, 100, 80], + [2, 50, 32], + [2, 50, 24], + [4, 25, 9], + [1, 134, 108], + [2, 67, 43], + [2, 33, 15, 2, 34, 16], + [2, 33, 11, 2, 34, 12], + [2, 86, 68], + [4, 43, 27], + [4, 43, 19], + [4, 43, 15], + [2, 98, 78], + [4, 49, 31], + [2, 32, 14, 4, 33, 15], + [4, 39, 13, 1, 40, 14], + [2, 121, 97], + [2, 60, 38, 2, 61, 39], + [4, 40, 18, 2, 41, 19], + [4, 40, 14, 2, 41, 15], + [2, 146, 116], + [3, 58, 36, 2, 59, 37], + [4, 36, 16, 4, 37, 17], + [4, 36, 12, 4, 37, 13], + [2, 86, 68, 2, 87, 69], + [4, 69, 43, 1, 70, 44], + [6, 43, 19, 2, 44, 20], + [6, 43, 15, 2, 44, 16], + [4, 101, 81], + [1, 80, 50, 4, 81, 51], + [4, 50, 22, 4, 51, 23], + [3, 36, 12, 8, 37, 13], + [2, 116, 92, 2, 117, 93], + [6, 58, 36, 2, 59, 37], + [4, 46, 20, 6, 47, 21], + [7, 42, 14, 4, 43, 15], + [4, 133, 107], + [8, 59, 37, 1, 60, 38], + [8, 44, 20, 4, 45, 21], + [12, 33, 11, 4, 34, 12], + [3, 145, 115, 1, 146, 116], + [4, 64, 40, 5, 65, 41], + [11, 36, 16, 5, 37, 17], + [11, 36, 12, 5, 37, 13], + [5, 109, 87, 1, 110, 88], + [5, 65, 41, 5, 66, 42], + [5, 54, 24, 7, 55, 25], + [11, 36, 12], + [5, 122, 98, 1, 123, 99], + [7, 73, 45, 3, 74, 46], + [15, 43, 19, 2, 44, 20], + [3, 45, 15, 13, 46, 16], + [1, 135, 107, 5, 136, 108], + [10, 74, 46, 1, 75, 47], + [1, 50, 22, 15, 51, 23], + [2, 42, 14, 17, 43, 15], + [5, 150, 120, 1, 151, 121], + [9, 69, 43, 4, 70, 44], + [17, 50, 22, 1, 51, 23], + [2, 42, 14, 19, 43, 15], + [3, 141, 113, 4, 142, 114], + [3, 70, 44, 11, 71, 45], + [17, 47, 21, 4, 48, 22], + [9, 39, 13, 16, 40, 14], + [3, 135, 107, 5, 136, 108], + [3, 67, 41, 13, 68, 42], + [15, 54, 24, 5, 55, 25], + [15, 43, 15, 10, 44, 16], + [4, 144, 116, 4, 145, 117], + [17, 68, 42], + [17, 50, 22, 6, 51, 23], + [19, 46, 16, 6, 47, 17], + [2, 139, 111, 7, 140, 112], + [17, 74, 46], + [7, 54, 24, 16, 55, 25], + [34, 37, 13], + [4, 151, 121, 5, 152, 122], + [4, 75, 47, 14, 76, 48], + [11, 54, 24, 14, 55, 25], + [16, 45, 15, 14, 46, 16], + [6, 147, 117, 4, 148, 118], + [6, 73, 45, 14, 74, 46], + [11, 54, 24, 16, 55, 25], + [30, 46, 16, 2, 47, 17], + [8, 132, 106, 4, 133, 107], + [8, 75, 47, 13, 76, 48], + [7, 54, 24, 22, 55, 25], + [22, 45, 15, 13, 46, 16], + [10, 142, 114, 2, 143, 115], + [19, 74, 46, 4, 75, 47], + [28, 50, 22, 6, 51, 23], + [33, 46, 16, 4, 47, 17], + [8, 152, 122, 4, 153, 123], + [22, 73, 45, 3, 74, 46], + [8, 53, 23, 26, 54, 24], + [12, 45, 15, 28, 46, 16], + [3, 147, 117, 10, 148, 118], + [3, 73, 45, 23, 74, 46], + [4, 54, 24, 31, 55, 25], + [11, 45, 15, 31, 46, 16], + [7, 146, 116, 7, 147, 117], + [21, 73, 45, 7, 74, 46], + [1, 53, 23, 37, 54, 24], + [19, 45, 15, 26, 46, 16], + [5, 145, 115, 10, 146, 116], + [19, 75, 47, 10, 76, 48], + [15, 54, 24, 25, 55, 25], + [23, 45, 15, 25, 46, 16], + [13, 145, 115, 3, 146, 116], + [2, 74, 46, 29, 75, 47], + [42, 54, 24, 1, 55, 25], + [23, 45, 15, 28, 46, 16], + [17, 145, 115], + [10, 74, 46, 23, 75, 47], + [10, 54, 24, 35, 55, 25], + [19, 45, 15, 35, 46, 16], + [17, 145, 115, 1, 146, 116], + [14, 74, 46, 21, 75, 47], + [29, 54, 24, 19, 55, 25], + [11, 45, 15, 46, 46, 16], + [13, 145, 115, 6, 146, 116], + [14, 74, 46, 23, 75, 47], + [44, 54, 24, 7, 55, 25], + [59, 46, 16, 1, 47, 17], + [12, 151, 121, 7, 152, 122], + [12, 75, 47, 26, 76, 48], + [39, 54, 24, 14, 55, 25], + [22, 45, 15, 41, 46, 16], + [6, 151, 121, 14, 152, 122], + [6, 75, 47, 34, 76, 48], + [46, 54, 24, 10, 55, 25], + [2, 45, 15, 64, 46, 16], + [17, 152, 122, 4, 153, 123], + [29, 74, 46, 14, 75, 47], + [49, 54, 24, 10, 55, 25], + [24, 45, 15, 46, 46, 16], + [4, 152, 122, 18, 153, 123], + [13, 74, 46, 32, 75, 47], + [48, 54, 24, 14, 55, 25], + [42, 45, 15, 32, 46, 16], + [20, 147, 117, 4, 148, 118], + [40, 75, 47, 7, 76, 48], + [43, 54, 24, 22, 55, 25], + [10, 45, 15, 67, 46, 16], + [19, 148, 118, 6, 149, 119], + [18, 75, 47, 31, 76, 48], + [34, 54, 24, 34, 55, 25], + [20, 45, 15, 61, 46, 16], + ]; + Bh.getRSBlocks = function (r, e) { + var t = Bh.getRsBlockTable(r, e); + if (t == null) + throw new Error( + "bad rs block @ typeNumber:" + r + "/errorCorrectLevel:" + e + ); + for (var n = t.length / 3, a = [], i = 0; i < n; i++) + for ( + var s = t[i * 3 + 0], c = t[i * 3 + 1], l = t[i * 3 + 2], d = 0; + d < s; + d++ + ) + a.push(new Bh(c, l)); + return a; + }; + Bh.getRsBlockTable = function (r, e) { + switch (e) { + case H0.L: + return Bh.RS_BLOCK_TABLE[(r - 1) * 4 + 0]; + case H0.M: + return Bh.RS_BLOCK_TABLE[(r - 1) * 4 + 1]; + case H0.Q: + return Bh.RS_BLOCK_TABLE[(r - 1) * 4 + 2]; + case H0.H: + return Bh.RS_BLOCK_TABLE[(r - 1) * 4 + 3]; + default: + return; + } + }; + function NXe() { + (this.buffer = []), (this.length = 0); + } + NXe.prototype = { + get: function (r) { + var e = Math.floor(r / 8); + return ((this.buffer[e] >>> (7 - (r % 8))) & 1) == 1; + }, + put: function (r, e) { + for (var t = 0; t < e; t++) this.putBit(((r >>> (e - t - 1)) & 1) == 1); + }, + getLengthInBits: function () { + return this.length; + }, + putBit: function (r) { + var e = Math.floor(this.length / 8); + this.buffer.length <= e && this.buffer.push(0), + r && (this.buffer[e] |= 128 >>> this.length % 8), + this.length++; + }, + }; + var WZ = [ + [17, 14, 11, 7], + [32, 26, 20, 14], + [53, 42, 32, 24], + [78, 62, 46, 34], + [106, 84, 60, 44], + [134, 106, 74, 58], + [154, 122, 86, 64], + [192, 152, 108, 84], + [230, 180, 130, 98], + [271, 213, 151, 119], + [321, 251, 177, 137], + [367, 287, 203, 155], + [425, 331, 241, 177], + [458, 362, 258, 194], + [520, 412, 292, 220], + [586, 450, 322, 250], + [644, 504, 364, 280], + [718, 560, 394, 310], + [792, 624, 442, 338], + [858, 666, 482, 382], + [929, 711, 509, 403], + [1003, 779, 565, 439], + [1091, 857, 611, 461], + [1171, 911, 661, 511], + [1273, 997, 715, 535], + [1367, 1059, 751, 593], + [1465, 1125, 805, 625], + [1528, 1190, 868, 658], + [1628, 1264, 908, 698], + [1732, 1370, 982, 742], + [1840, 1452, 1030, 790], + [1952, 1538, 1112, 842], + [2068, 1628, 1168, 898], + [2188, 1722, 1228, 958], + [2303, 1809, 1283, 983], + [2431, 1911, 1351, 1051], + [2563, 1989, 1423, 1093], + [2699, 2099, 1499, 1139], + [2809, 2213, 1579, 1219], + [2953, 2331, 1663, 1273], + ]; + function OXe(r) { + var e = this; + if ( + ((this.options = { + padding: 4, + width: 256, + height: 256, + typeNumber: 4, + color: "#000000", + background: "#ffffff", + ecl: "M", + image: { svg: "", width: 0, height: 0 }, + }), + typeof r == "string" && (r = { content: r }), + r) + ) + for (var t in r) this.options[t] = r[t]; + if (typeof this.options.content != "string") + throw new Error("Expected 'content' as string!"); + if (this.options.content.length === 0) + throw new Error("Expected 'content' to be non-empty!"); + if (!(this.options.padding >= 0)) + throw new Error("Expected 'padding' value to be non-negative!"); + if (!(this.options.width > 0) || !(this.options.height > 0)) + throw new Error( + "Expected 'width' or 'height' value to be higher than zero!" + ); + function n(d) { + switch (d) { + case "L": + return H0.L; + case "M": + return H0.M; + case "Q": + return H0.Q; + case "H": + return H0.H; + default: + throw new Error("Unknwon error correction level: " + d); + } + } + function a(d, m) { + for (var w = i(d), C = 1, I = 0, k = 0, O = WZ.length; k <= O; k++) { + var D = WZ[k]; + if (!D) + throw new Error( + "Content too long: expected " + I + " but got " + w + ); + switch (m) { + case "L": + I = D[0]; + break; + case "M": + I = D[1]; + break; + case "Q": + I = D[2]; + break; + case "H": + I = D[3]; + break; + default: + throw new Error("Unknwon error correction level: " + m); + } + if (w <= I) break; + C++; + } + if (C > WZ.length) throw new Error("Content too long"); + return C; + } + function i(d) { + var m = encodeURI(d) + .toString() + .replace(/\%[0-9a-fA-F]{2}/g, "a"); + return m.length + (m.length != d ? 3 : 0); + } + var s = this.options.content, + c = a(s, this.options.ecl), + l = n(this.options.ecl); + (this.qrcode = new Nh(c, l)), this.qrcode.addData(s), this.qrcode.make(); + } + OXe.prototype.svg = function (r) { + var e = this.options || {}, + t = this.qrcode.modules; + typeof r > "u" && (r = { container: e.container || "svg" }); + for ( + var n = typeof e.pretty < "u" ? !!e.pretty : !0, + a = n ? " " : "", + i = n + ? `\r +` + : "", + s = e.width, + c = e.height, + l = t.length, + d = s / (l + 2 * e.padding), + m = c / (l + 2 * e.padding), + w = typeof e.join < "u" ? !!e.join : !1, + C = typeof e.swap < "u" ? !!e.swap : !1, + I = typeof e.xmlDeclaration < "u" ? !!e.xmlDeclaration : !0, + k = typeof e.predefined < "u" ? !!e.predefined : !1, + O = k + ? a + + '' + + i + : "", + D = + a + + '' + + i, + W = "", + H = "", + j = 0; + j < l; + j++ + ) + for (var V = 0; V < l; V++) { + var te = t[V][j]; + if (te) { + var $ = V * d + e.padding * d, + ae = j * m + e.padding * m; + if (C) { + var Y = $; + ($ = ae), (ae = Y); + } + if (w) { + var K = d + $, + g = m + ae; + ($ = Number.isInteger($) ? Number($) : $.toFixed(2)), + (ae = Number.isInteger(ae) ? Number(ae) : ae.toFixed(2)), + (K = Number.isInteger(K) ? Number(K) : K.toFixed(2)), + (g = Number.isInteger(g) ? Number(g) : g.toFixed(2)), + (H += + "M" + + $ + + "," + + ae + + " V" + + g + + " H" + + K + + " V" + + ae + + " H" + + $ + + " Z "); + } else + k + ? (W += + a + + '' + + i) + : (W += + a + + '' + + i); + } + } + w && + (W = + a + + ''); + let o = ""; + if (this.options.image !== void 0 && this.options.image.svg) { + let y = (s * this.options.image.width) / 100, + h = (c * this.options.image.height) / 100, + b = s / 2 - y / 2, + T = c / 2 - h / 2; + (o += ``), + (o += this.options.image.svg + i), + (o += ""); + } + var p = ""; + switch (r.container) { + case "svg": + I && (p += '' + i), + (p += + '' + + i), + (p += O + D + W), + (p += o), + (p += ""); + break; + case "svg-viewbox": + I && (p += '' + i), + (p += + '' + + i), + (p += O + D + W), + (p += o), + (p += ""); + break; + case "g": + (p += '' + i), + (p += O + D + W), + (p += o), + (p += ""); + break; + default: + p += (O + D + W + o).replace(/^\s+/, ""); + break; + } + return p; + }; + LXe.exports = OXe; + }); + var FXe = N((g_) => { + "use strict"; + _(); + x(); + var mTr = + (g_ && g_.__importDefault) || + function (r) { + return r && r.__esModule ? r : { default: r }; + }; + Object.defineProperty(g_, "__esModule", { value: !0 }); + g_.QRCode = void 0; + var yTr = (Wc(), In(Cu)), + qXe = (m_(), In(f_)), + gTr = mTr(DXe()), + bTr = (r) => { + let [e, t] = (0, qXe.useState)(""); + return ( + (0, qXe.useEffect)(() => { + var n, a; + let i = new gTr.default({ + content: r.content, + background: r.bgColor || "#ffffff", + color: r.fgColor || "#000000", + container: "svg", + ecl: "M", + width: (n = r.width) !== null && n !== void 0 ? n : 256, + height: (a = r.height) !== null && a !== void 0 ? a : 256, + padding: 0, + image: r.image, + }), + s = P.Buffer.from(i.svg(), "utf8").toString("base64"); + t(`data:image/svg+xml;base64,${s}`); + }), + e ? (0, yTr.h)("img", { src: e, alt: "QR Code" }) : null + ); + }; + g_.QRCode = bTr; + }); + var WXe = N((UZ) => { + "use strict"; + _(); + x(); + Object.defineProperty(UZ, "__esModule", { value: !0 }); + UZ.default = + ".-cbwsdk-css-reset .-cbwsdk-spinner{display:inline-block}.-cbwsdk-css-reset .-cbwsdk-spinner svg{display:inline-block;animation:2s linear infinite -cbwsdk-spinner-svg}.-cbwsdk-css-reset .-cbwsdk-spinner svg circle{animation:1.9s ease-in-out infinite both -cbwsdk-spinner-circle;display:block;fill:rgba(0,0,0,0);stroke-dasharray:283;stroke-dashoffset:280;stroke-linecap:round;stroke-width:10px;transform-origin:50% 50%}@keyframes -cbwsdk-spinner-svg{0%{transform:rotateZ(0deg)}100%{transform:rotateZ(360deg)}}@keyframes -cbwsdk-spinner-circle{0%,25%{stroke-dashoffset:280;transform:rotate(0)}50%,75%{stroke-dashoffset:75;transform:rotate(45deg)}100%{stroke-dashoffset:280;transform:rotate(360deg)}}"; + }); + var UXe = N((b_) => { + "use strict"; + _(); + x(); + var vTr = + (b_ && b_.__importDefault) || + function (r) { + return r && r.__esModule ? r : { default: r }; + }; + Object.defineProperty(b_, "__esModule", { value: !0 }); + b_.Spinner = void 0; + var MB = (Wc(), In(Cu)), + wTr = vTr(WXe()), + _Tr = (r) => { + var e; + let t = (e = r.size) !== null && e !== void 0 ? e : 64, + n = r.color || "#000"; + return (0, MB.h)( + "div", + { class: "-cbwsdk-spinner" }, + (0, MB.h)("style", null, wTr.default), + (0, MB.h)( + "svg", + { + viewBox: "0 0 100 100", + xmlns: "http://www.w3.org/2000/svg", + style: { width: t, height: t }, + }, + (0, MB.h)("circle", { style: { cx: 50, cy: 50, r: 45, stroke: n } }) + ) + ); + }; + b_.Spinner = _Tr; + }); + var HXe = N((HZ) => { + "use strict"; + _(); + x(); + Object.defineProperty(HZ, "__esModule", { value: !0 }); + HZ.default = + ".-cbwsdk-css-reset .-cbwsdk-connect-content{height:430px;width:700px;border-radius:12px;padding:30px}.-cbwsdk-css-reset .-cbwsdk-connect-content.light{background:#fff}.-cbwsdk-css-reset .-cbwsdk-connect-content.dark{background:#0a0b0d}.-cbwsdk-css-reset .-cbwsdk-connect-content-header{display:flex;align-items:center;justify-content:space-between;margin:0 0 30px}.-cbwsdk-css-reset .-cbwsdk-connect-content-heading{font-style:normal;font-weight:500;font-size:28px;line-height:36px;margin:0}.-cbwsdk-css-reset .-cbwsdk-connect-content-heading.light{color:#0a0b0d}.-cbwsdk-css-reset .-cbwsdk-connect-content-heading.dark{color:#fff}.-cbwsdk-css-reset .-cbwsdk-connect-content-layout{display:flex;flex-direction:row}.-cbwsdk-css-reset .-cbwsdk-connect-content-column-left{margin-right:30px;display:flex;flex-direction:column;justify-content:space-between}.-cbwsdk-css-reset .-cbwsdk-connect-content-column-right{flex:25%;margin-right:34px}.-cbwsdk-css-reset .-cbwsdk-connect-content-qr-wrapper{width:220px;height:220px;border-radius:12px;display:flex;justify-content:center;align-items:center;background:#fff}.-cbwsdk-css-reset .-cbwsdk-connect-content-qr-connecting{position:absolute;top:0;bottom:0;left:0;right:0;display:flex;flex-direction:column;align-items:center;justify-content:center}.-cbwsdk-css-reset .-cbwsdk-connect-content-qr-connecting.light{background-color:rgba(255,255,255,.95)}.-cbwsdk-css-reset .-cbwsdk-connect-content-qr-connecting.light>p{color:#0a0b0d}.-cbwsdk-css-reset .-cbwsdk-connect-content-qr-connecting.dark{background-color:rgba(10,11,13,.9)}.-cbwsdk-css-reset .-cbwsdk-connect-content-qr-connecting.dark>p{color:#fff}.-cbwsdk-css-reset .-cbwsdk-connect-content-qr-connecting>p{font-size:12px;font-weight:bold;margin-top:16px}.-cbwsdk-css-reset .-cbwsdk-connect-content-update-app{border-radius:8px;font-size:14px;line-height:20px;padding:12px;width:339px}.-cbwsdk-css-reset .-cbwsdk-connect-content-update-app.light{background:#eef0f3;color:#5b636e}.-cbwsdk-css-reset .-cbwsdk-connect-content-update-app.dark{background:#1e2025;color:#8a919e}.-cbwsdk-css-reset .-cbwsdk-cancel-button{-webkit-appearance:none;border:none;background:none;cursor:pointer;padding:0;margin:0}.-cbwsdk-css-reset .-cbwsdk-cancel-button-x{position:relative;display:block;cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-wallet-steps{padding:0 0 0 16px;margin:0;width:100%;list-style:decimal}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-item{list-style-type:decimal;display:list-item;font-style:normal;font-weight:400;font-size:16px;line-height:24px;margin-top:20px}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-item.light{color:#0a0b0d}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-item.dark{color:#fff}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-item-wrapper{display:flex;align-items:center}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-pad-left{margin-left:6px}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-icon{display:flex;border-radius:50%;height:24px;width:24px}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-icon svg{margin:auto;display:block}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-icon.light{background:#0052ff}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-icon.dark{background:#588af5}.-cbwsdk-css-reset .-cbwsdk-connect-item{align-items:center;display:flex;flex-direction:row;padding:16px 24px;gap:12px;cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-connect-item.light{color:#0a0b0d}.-cbwsdk-css-reset .-cbwsdk-connect-item.light.selected{background:#f5f8ff;color:#0052ff}.-cbwsdk-css-reset .-cbwsdk-connect-item.dark{color:#fff}.-cbwsdk-css-reset .-cbwsdk-connect-item.dark.selected{background:#001033;color:#588af5}.-cbwsdk-css-reset .-cbwsdk-connect-item.selected{border-radius:100px;font-weight:600}.-cbwsdk-css-reset .-cbwsdk-connect-item-copy-wrapper{margin:0 4px 0 8px}.-cbwsdk-css-reset .-cbwsdk-connect-item-title{margin:0 0 0;font-size:16px;line-height:24px;font-weight:500}.-cbwsdk-css-reset .-cbwsdk-connect-item-description{font-weight:400;font-size:14px;line-height:20px;margin:0}"; + }); + var $Xe = N((ld) => { + "use strict"; + _(); + x(); + var v_ = + (ld && ld.__importDefault) || + function (r) { + return r && r.__esModule ? r : { default: r }; + }; + Object.defineProperty(ld, "__esModule", { value: !0 }); + ld.CoinbaseAppSteps = + ld.CoinbaseWalletSteps = + ld.ConnectItem = + ld.ConnectContent = + void 0; + var ud = v_(xE()), + or = (Wc(), In(Cu)), + zXe = (m_(), In(f_)), + xTr = Gf(), + TTr = TXe(), + ETr = CXe(), + CTr = v_(IXe()), + ITr = v_(AXe()), + KXe = kXe(), + ATr = v_(SXe()), + kTr = v_(MXe()), + STr = RXe(), + MTr = FXe(), + PTr = UXe(), + RTr = v_(HXe()), + jXe = { + "coinbase-wallet-app": { + title: "Coinbase Wallet app", + description: "Connect with your self-custody wallet", + icon: ITr.default, + steps: GXe, + }, + "coinbase-app": { + title: "Coinbase app", + description: "Connect with your Coinbase account", + icon: CTr.default, + steps: YXe, + }, + }, + BTr = (r) => { + switch (r) { + case "coinbase-app": + return ATr.default; + case "coinbase-wallet-app": + default: + return kTr.default; + } + }, + zZ = (r) => (r === "light" ? "#FFFFFF" : "#0A0B0D"); + function NTr(r) { + let { theme: e } = r, + [t, n] = (0, zXe.useState)("coinbase-wallet-app"), + a = (0, zXe.useCallback)((d) => { + n(d); + }, []), + i = (0, xTr.createQrUrl)( + r.sessionId, + r.sessionSecret, + r.linkAPIUrl, + r.isParentConnection, + r.version, + r.chainId + ), + s = jXe[t]; + if (!t) return null; + let c = s.steps, + l = t === "coinbase-app"; + return (0, or.h)( + "div", + { + "data-testid": "connect-content", + class: (0, ud.default)("-cbwsdk-connect-content", e), + }, + (0, or.h)("style", null, RTr.default), + (0, or.h)( + "div", + { class: "-cbwsdk-connect-content-header" }, + (0, or.h)( + "h2", + { class: (0, ud.default)("-cbwsdk-connect-content-heading", e) }, + "Scan to connect with one of our mobile apps" + ), + r.onCancel && + (0, or.h)( + "button", + { + type: "button", + class: "-cbwsdk-cancel-button", + onClick: r.onCancel, + }, + (0, or.h)(ETr.CloseIcon, { + fill: e === "light" ? "#0A0B0D" : "#FFFFFF", + }) + ) + ), + (0, or.h)( + "div", + { class: "-cbwsdk-connect-content-layout" }, + (0, or.h)( + "div", + { class: "-cbwsdk-connect-content-column-left" }, + (0, or.h)( + "div", + null, + Object.entries(jXe).map(([d, m]) => + (0, or.h)(VXe, { + key: d, + title: m.title, + description: m.description, + icon: m.icon, + selected: t === d, + onClick: () => a(d), + theme: e, + }) + ) + ), + l && + (0, or.h)( + "div", + { + class: (0, ud.default)( + "-cbwsdk-connect-content-update-app", + e + ), + }, + "Don\u2019t see a ", + (0, or.h)("strong", null, "Scan"), + " option? Update your Coinbase app to the latest version and try again." + ) + ), + (0, or.h)( + "div", + { class: "-cbwsdk-connect-content-column-right" }, + (0, or.h)( + "div", + { class: "-cbwsdk-connect-content-qr-wrapper" }, + (0, or.h)(MTr.QRCode, { + content: i, + width: 200, + height: 200, + fgColor: "#000", + bgColor: "transparent", + image: { svg: BTr(t), width: 25, height: 25 }, + }), + (0, or.h)("input", { + type: "hidden", + name: "cbw-cbwsdk-version", + value: TTr.LIB_VERSION, + }), + (0, or.h)("input", { type: "hidden", value: i }) + ), + (0, or.h)(c, { theme: e }), + !r.isConnected && + (0, or.h)( + "div", + { + "data-testid": "connecting-spinner", + class: (0, ud.default)( + "-cbwsdk-connect-content-qr-connecting", + e + ), + }, + (0, or.h)(PTr.Spinner, { + size: 36, + color: e === "dark" ? "#FFF" : "#000", + }), + (0, or.h)("p", null, "Connecting...") + ) + ) + ) + ); + } + ld.ConnectContent = NTr; + function VXe({ + title: r, + description: e, + icon: t, + selected: n, + theme: a, + onClick: i, + }) { + return (0, or.h)( + "div", + { + onClick: i, + class: (0, ud.default)("-cbwsdk-connect-item", a, { selected: n }), + }, + (0, or.h)("div", null, (0, or.h)("img", { src: t, alt: r })), + (0, or.h)( + "div", + { class: "-cbwsdk-connect-item-copy-wrapper" }, + (0, or.h)("h3", { class: "-cbwsdk-connect-item-title" }, r), + (0, or.h)("p", { class: "-cbwsdk-connect-item-description" }, e) + ) + ); + } + ld.ConnectItem = VXe; + function GXe({ theme: r }) { + return (0, or.h)( + "ol", + { class: "-cbwsdk-wallet-steps" }, + (0, or.h)( + "li", + { class: (0, ud.default)("-cbwsdk-wallet-steps-item", r) }, + (0, or.h)( + "div", + { class: "-cbwsdk-wallet-steps-item-wrapper" }, + "Open Coinbase Wallet app" + ) + ), + (0, or.h)( + "li", + { class: (0, ud.default)("-cbwsdk-wallet-steps-item", r) }, + (0, or.h)( + "div", + { class: "-cbwsdk-wallet-steps-item-wrapper" }, + (0, or.h)( + "span", + null, + "Tap ", + (0, or.h)("strong", null, "Scan"), + " " + ), + (0, or.h)( + "span", + { + class: (0, ud.default)( + "-cbwsdk-wallet-steps-pad-left", + "-cbwsdk-wallet-steps-icon", + r + ), + }, + (0, or.h)(KXe.QRCodeIcon, { fill: zZ(r) }) + ) + ) + ) + ); + } + ld.CoinbaseWalletSteps = GXe; + function YXe({ theme: r }) { + return (0, or.h)( + "ol", + { class: "-cbwsdk-wallet-steps" }, + (0, or.h)( + "li", + { class: (0, ud.default)("-cbwsdk-wallet-steps-item", r) }, + (0, or.h)( + "div", + { class: "-cbwsdk-wallet-steps-item-wrapper" }, + "Open Coinbase app" + ) + ), + (0, or.h)( + "li", + { class: (0, ud.default)("-cbwsdk-wallet-steps-item", r) }, + (0, or.h)( + "div", + { class: "-cbwsdk-wallet-steps-item-wrapper" }, + (0, or.h)("span", null, "Tap ", (0, or.h)("strong", null, "More")), + (0, or.h)( + "span", + { + class: (0, ud.default)( + "-cbwsdk-wallet-steps-pad-left", + "-cbwsdk-wallet-steps-icon", + r + ), + }, + (0, or.h)(STr.StatusDotIcon, { fill: zZ(r) }) + ), + (0, or.h)( + "span", + { class: "-cbwsdk-wallet-steps-pad-left" }, + "then ", + (0, or.h)("strong", null, "Scan") + ), + (0, or.h)( + "span", + { + class: (0, ud.default)( + "-cbwsdk-wallet-steps-pad-left", + "-cbwsdk-wallet-steps-icon", + r + ), + }, + (0, or.h)(KXe.QRCodeIcon, { fill: zZ(r) }) + ) + ) + ) + ); + } + ld.CoinbaseAppSteps = YXe; + }); + var ZXe = N((PB) => { + "use strict"; + _(); + x(); + Object.defineProperty(PB, "__esModule", { value: !0 }); + PB.ArrowLeftIcon = void 0; + var JXe = (Wc(), In(Cu)); + function OTr(r) { + return (0, JXe.h)( + "svg", + Object.assign( + { + width: "16", + height: "16", + viewBox: "0 0 16 16", + xmlns: "http://www.w3.org/2000/svg", + }, + r + ), + (0, JXe.h)("path", { + d: "M8.60675 0.155884L7.37816 1.28209L12.7723 7.16662H0V8.83328H12.6548L6.82149 14.6666L8 15.8451L15.8201 8.02501L8.60675 0.155884Z", + }) + ); + } + PB.ArrowLeftIcon = OTr; + }); + var QXe = N((RB) => { + "use strict"; + _(); + x(); + Object.defineProperty(RB, "__esModule", { value: !0 }); + RB.LaptopIcon = void 0; + var jZ = (Wc(), In(Cu)); + function LTr(r) { + return (0, jZ.h)( + "svg", + Object.assign( + { + width: "14", + height: "14", + viewBox: "0 0 14 14", + xmlns: "http://www.w3.org/2000/svg", + }, + r + ), + (0, jZ.h)("path", { + d: "M1.8001 2.2002H12.2001V9.40019H1.8001V2.2002ZM3.4001 3.8002V7.80019H10.6001V3.8002H3.4001Z", + }), + (0, jZ.h)("path", { + d: "M13.4001 10.2002H0.600098C0.600098 11.0838 1.31644 11.8002 2.2001 11.8002H11.8001C12.6838 11.8002 13.4001 11.0838 13.4001 10.2002Z", + }) + ); + } + RB.LaptopIcon = LTr; + }); + var eet = N((BB) => { + "use strict"; + _(); + x(); + Object.defineProperty(BB, "__esModule", { value: !0 }); + BB.SafeIcon = void 0; + var XXe = (Wc(), In(Cu)); + function DTr(r) { + return (0, XXe.h)( + "svg", + Object.assign( + { + width: "14", + height: "14", + viewBox: "0 0 14 14", + xmlns: "http://www.w3.org/2000/svg", + }, + r + ), + (0, XXe.h)("path", { + "fill-rule": "evenodd", + "clip-rule": "evenodd", + d: "M0.600098 0.600098V11.8001H13.4001V0.600098H0.600098ZM7.0001 9.2001C5.3441 9.2001 4.0001 7.8561 4.0001 6.2001C4.0001 4.5441 5.3441 3.2001 7.0001 3.2001C8.6561 3.2001 10.0001 4.5441 10.0001 6.2001C10.0001 7.8561 8.6561 9.2001 7.0001 9.2001ZM0.600098 12.6001H3.8001V13.4001H0.600098V12.6001ZM10.2001 12.6001H13.4001V13.4001H10.2001V12.6001ZM8.8001 6.2001C8.8001 7.19421 7.99421 8.0001 7.0001 8.0001C6.00598 8.0001 5.2001 7.19421 5.2001 6.2001C5.2001 5.20598 6.00598 4.4001 7.0001 4.4001C7.99421 4.4001 8.8001 5.20598 8.8001 6.2001Z", + }) + ); + } + BB.SafeIcon = DTr; + }); + var tet = N((KZ) => { + "use strict"; + _(); + x(); + Object.defineProperty(KZ, "__esModule", { value: !0 }); + KZ.default = + ".-cbwsdk-css-reset .-cbwsdk-try-extension{display:flex;margin-top:12px;height:202px;width:700px;border-radius:12px;padding:30px}.-cbwsdk-css-reset .-cbwsdk-try-extension.light{background:#fff}.-cbwsdk-css-reset .-cbwsdk-try-extension.dark{background:#0a0b0d}.-cbwsdk-css-reset .-cbwsdk-try-extension-column-half{flex:50%}.-cbwsdk-css-reset .-cbwsdk-try-extension-heading{font-style:normal;font-weight:500;font-size:25px;line-height:32px;margin:0;max-width:204px}.-cbwsdk-css-reset .-cbwsdk-try-extension-heading.light{color:#0a0b0d}.-cbwsdk-css-reset .-cbwsdk-try-extension-heading.dark{color:#fff}.-cbwsdk-css-reset .-cbwsdk-try-extension-cta{appearance:none;border:none;background:none;color:#0052ff;cursor:pointer;padding:0;text-decoration:none;display:block;font-weight:600;font-size:16px;line-height:24px}.-cbwsdk-css-reset .-cbwsdk-try-extension-cta.light{color:#0052ff}.-cbwsdk-css-reset .-cbwsdk-try-extension-cta.dark{color:#588af5}.-cbwsdk-css-reset .-cbwsdk-try-extension-cta-wrapper{display:flex;align-items:center;margin-top:12px}.-cbwsdk-css-reset .-cbwsdk-try-extension-cta-icon{display:block;margin-left:4px;height:14px}.-cbwsdk-css-reset .-cbwsdk-try-extension-list{display:flex;flex-direction:column;justify-content:center;align-items:center;margin:0;padding:0;list-style:none;height:100%}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item{display:flex;align-items:center;flex-flow:nowrap;margin-top:24px}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item:first-of-type{margin-top:0}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item-icon-wrapper{display:block}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item-icon{display:flex;height:32px;width:32px;border-radius:50%}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item-icon svg{margin:auto;display:block}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item-icon.light{background:#eef0f3}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item-icon.dark{background:#1e2025}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item-copy{display:block;font-weight:400;font-size:14px;line-height:20px;padding-left:12px}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item-copy.light{color:#5b636e}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item-copy.dark{color:#8a919e}"; + }); + var net = N((w_) => { + "use strict"; + _(); + x(); + var ret = + (w_ && w_.__importDefault) || + function (r) { + return r && r.__esModule ? r : { default: r }; + }; + Object.defineProperty(w_, "__esModule", { value: !0 }); + w_.TryExtensionContent = void 0; + var Ib = ret(xE()), + es = (Wc(), In(Cu)), + VZ = (m_(), In(f_)), + qTr = ZXe(), + FTr = QXe(), + WTr = eet(), + UTr = ret(tet()); + function HTr({ theme: r }) { + let [e, t] = (0, VZ.useState)(!1), + n = (0, VZ.useCallback)(() => { + window.open( + "https://api.wallet.coinbase.com/rpc/v2/desktop/chrome", + "_blank" + ); + }, []), + a = (0, VZ.useCallback)(() => { + e ? window.location.reload() : (n(), t(!0)); + }, [n, e]); + return (0, es.h)( + "div", + { class: (0, Ib.default)("-cbwsdk-try-extension", r) }, + (0, es.h)("style", null, UTr.default), + (0, es.h)( + "div", + { class: "-cbwsdk-try-extension-column-half" }, + (0, es.h)( + "h3", + { class: (0, Ib.default)("-cbwsdk-try-extension-heading", r) }, + "Or try the Coinbase Wallet browser extension" + ), + (0, es.h)( + "div", + { class: "-cbwsdk-try-extension-cta-wrapper" }, + (0, es.h)( + "button", + { + class: (0, Ib.default)("-cbwsdk-try-extension-cta", r), + onClick: a, + }, + e ? "Refresh" : "Install" + ), + (0, es.h)( + "div", + null, + !e && + (0, es.h)(qTr.ArrowLeftIcon, { + class: "-cbwsdk-try-extension-cta-icon", + fill: r === "light" ? "#0052FF" : "#588AF5", + }) + ) + ) + ), + (0, es.h)( + "div", + { class: "-cbwsdk-try-extension-column-half" }, + (0, es.h)( + "ul", + { class: "-cbwsdk-try-extension-list" }, + (0, es.h)( + "li", + { class: "-cbwsdk-try-extension-list-item" }, + (0, es.h)( + "div", + { class: "-cbwsdk-try-extension-list-item-icon-wrapper" }, + (0, es.h)( + "span", + { + class: (0, Ib.default)( + "-cbwsdk-try-extension-list-item-icon", + r + ), + }, + (0, es.h)(FTr.LaptopIcon, { + fill: r === "light" ? "#0A0B0D" : "#FFFFFF", + }) + ) + ), + (0, es.h)( + "div", + { + class: (0, Ib.default)( + "-cbwsdk-try-extension-list-item-copy", + r + ), + }, + "Connect with dapps with just one click on your desktop browser" + ) + ), + (0, es.h)( + "li", + { class: "-cbwsdk-try-extension-list-item" }, + (0, es.h)( + "div", + { class: "-cbwsdk-try-extension-list-item-icon-wrapper" }, + (0, es.h)( + "span", + { + class: (0, Ib.default)( + "-cbwsdk-try-extension-list-item-icon", + r + ), + }, + (0, es.h)(WTr.SafeIcon, { + fill: r === "light" ? "#0A0B0D" : "#FFFFFF", + }) + ) + ), + (0, es.h)( + "div", + { + class: (0, Ib.default)( + "-cbwsdk-try-extension-list-item-copy", + r + ), + }, + "Add an additional layer of security by using a supported Ledger hardware wallet" + ) + ) + ) + ) + ); + } + w_.TryExtensionContent = HTr; + }); + var aet = N((GZ) => { + "use strict"; + _(); + x(); + Object.defineProperty(GZ, "__esModule", { value: !0 }); + GZ.default = + ".-cbwsdk-css-reset .-cbwsdk-connect-dialog{z-index:2147483647;position:fixed;top:0;left:0;right:0;bottom:0;display:flex;align-items:center;justify-content:center}.-cbwsdk-css-reset .-cbwsdk-connect-dialog-backdrop{z-index:2147483647;position:fixed;top:0;left:0;right:0;bottom:0;transition:opacity .25s}.-cbwsdk-css-reset .-cbwsdk-connect-dialog-backdrop.light{background-color:rgba(0,0,0,.5)}.-cbwsdk-css-reset .-cbwsdk-connect-dialog-backdrop.dark{background-color:rgba(50,53,61,.4)}.-cbwsdk-css-reset .-cbwsdk-connect-dialog-backdrop-hidden{opacity:0}.-cbwsdk-css-reset .-cbwsdk-connect-dialog-box{display:flex;position:relative;flex-direction:column;transform:scale(1);transition:opacity .25s,transform .25s}.-cbwsdk-css-reset .-cbwsdk-connect-dialog-box-hidden{opacity:0;transform:scale(0.85)}.-cbwsdk-css-reset .-cbwsdk-connect-dialog-container{display:block}.-cbwsdk-css-reset .-cbwsdk-connect-dialog-container-hidden{display:none}"; + }); + var set = N((__) => { + "use strict"; + _(); + x(); + var iet = + (__ && __.__importDefault) || + function (r) { + return r && r.__esModule ? r : { default: r }; + }; + Object.defineProperty(__, "__esModule", { value: !0 }); + __.ConnectDialog = void 0; + var YZ = iet(xE()), + Ab = (Wc(), In(Cu)), + $Z = (m_(), In(f_)), + zTr = $Xe(), + jTr = net(), + KTr = iet(aet()), + VTr = (r) => { + let { isOpen: e, darkMode: t } = r, + [n, a] = (0, $Z.useState)(!e), + [i, s] = (0, $Z.useState)(!e); + (0, $Z.useEffect)(() => { + let l = [ + window.setTimeout(() => { + s(!e); + }, 10), + ]; + return ( + e + ? a(!1) + : l.push( + window.setTimeout(() => { + a(!0); + }, 360) + ), + () => { + l.forEach(window.clearTimeout); + } + ); + }, [r.isOpen]); + let c = t ? "dark" : "light"; + return (0, Ab.h)( + "div", + { + class: (0, YZ.default)( + "-cbwsdk-connect-dialog-container", + n && "-cbwsdk-connect-dialog-container-hidden" + ), + }, + (0, Ab.h)("style", null, KTr.default), + (0, Ab.h)("div", { + class: (0, YZ.default)( + "-cbwsdk-connect-dialog-backdrop", + c, + i && "-cbwsdk-connect-dialog-backdrop-hidden" + ), + }), + (0, Ab.h)( + "div", + { class: "-cbwsdk-connect-dialog" }, + (0, Ab.h)( + "div", + { + class: (0, YZ.default)( + "-cbwsdk-connect-dialog-box", + i && "-cbwsdk-connect-dialog-box-hidden" + ), + }, + r.connectDisabled + ? null + : (0, Ab.h)(zTr.ConnectContent, { + theme: c, + version: r.version, + sessionId: r.sessionId, + sessionSecret: r.sessionSecret, + linkAPIUrl: r.linkAPIUrl, + isConnected: r.isConnected, + isParentConnection: r.isParentConnection, + chainId: r.chainId, + onCancel: r.onCancel, + }), + (0, Ab.h)(jTr.TryExtensionContent, { theme: c }) + ) + ) + ); + }; + __.ConnectDialog = VTr; + }); + var cet = N((NB) => { + "use strict"; + _(); + x(); + Object.defineProperty(NB, "__esModule", { value: !0 }); + NB.LinkFlow = void 0; + var JZ = (Wc(), In(Cu)), + oet = _E(), + GTr = set(), + ZZ = class { + constructor(e) { + (this.extensionUI$ = new oet.BehaviorSubject({})), + (this.subscriptions = new oet.Subscription()), + (this.isConnected = !1), + (this.chainId = 1), + (this.isOpen = !1), + (this.onCancel = null), + (this.root = null), + (this.connectDisabled = !1), + (this.darkMode = e.darkMode), + (this.version = e.version), + (this.sessionId = e.sessionId), + (this.sessionSecret = e.sessionSecret), + (this.linkAPIUrl = e.linkAPIUrl), + (this.isParentConnection = e.isParentConnection), + (this.connected$ = e.connected$), + (this.chainId$ = e.chainId$); + } + attach(e) { + (this.root = document.createElement("div")), + (this.root.className = "-cbwsdk-link-flow-root"), + e.appendChild(this.root), + this.render(), + this.subscriptions.add( + this.connected$.subscribe((t) => { + this.isConnected !== t && + ((this.isConnected = t), this.render()); + }) + ), + this.subscriptions.add( + this.chainId$.subscribe((t) => { + this.chainId !== t && ((this.chainId = t), this.render()); + }) + ); + } + detach() { + var e; + !this.root || + (this.subscriptions.unsubscribe(), + (0, JZ.render)(null, this.root), + (e = this.root.parentElement) === null || + e === void 0 || + e.removeChild(this.root)); + } + setConnectDisabled(e) { + this.connectDisabled = e; + } + open(e) { + (this.isOpen = !0), (this.onCancel = e.onCancel), this.render(); + } + close() { + (this.isOpen = !1), (this.onCancel = null), this.render(); + } + render() { + if (!this.root) return; + let e = this.extensionUI$.subscribe(() => { + !this.root || + (0, JZ.render)( + (0, JZ.h)(GTr.ConnectDialog, { + darkMode: this.darkMode, + version: this.version, + sessionId: this.sessionId, + sessionSecret: this.sessionSecret, + linkAPIUrl: this.linkAPIUrl, + isOpen: this.isOpen, + isConnected: this.isConnected, + isParentConnection: this.isParentConnection, + chainId: this.chainId, + onCancel: this.onCancel, + connectDisabled: this.connectDisabled, + }), + this.root + ); + }); + this.subscriptions.add(e); + } + }; + NB.LinkFlow = ZZ; + }); + var uet = N((QZ) => { + "use strict"; + _(); + x(); + Object.defineProperty(QZ, "__esModule", { value: !0 }); + QZ.default = + ".-cbwsdk-css-reset .-gear-container{margin-left:16px !important;margin-right:9px !important;display:flex;align-items:center;justify-content:center;width:24px;height:24px;transition:opacity .25s}.-cbwsdk-css-reset .-gear-container *{user-select:none}.-cbwsdk-css-reset .-gear-container svg{opacity:0;position:absolute}.-cbwsdk-css-reset .-gear-icon{height:12px;width:12px;z-index:10000}.-cbwsdk-css-reset .-cbwsdk-snackbar{align-items:flex-end;display:flex;flex-direction:column;position:fixed;right:0;top:0;z-index:2147483647}.-cbwsdk-css-reset .-cbwsdk-snackbar *{user-select:none}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance{display:flex;flex-direction:column;margin:8px 16px 0 16px;overflow:visible;text-align:left;transform:translateX(0);transition:opacity .25s,transform .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-header:hover .-gear-container svg{opacity:1}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-header{display:flex;align-items:center;background:#fff;overflow:hidden;border:1px solid #e7ebee;box-sizing:border-box;border-radius:8px;cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-header-cblogo{margin:8px 8px 8px 8px}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-header *{cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-header-message{color:#000;font-size:13px;line-height:1.5;user-select:none}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu{background:#fff;transition:opacity .25s ease-in-out,transform .25s linear,visibility 0s;visibility:hidden;border:1px solid #e7ebee;box-sizing:border-box;border-radius:8px;opacity:0;flex-direction:column;padding-left:8px;padding-right:8px}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item:last-child{margin-bottom:8px !important}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item:hover{background:#f5f7f8;border-radius:6px;transition:background .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item:hover span{color:#050f19;transition:color .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item:hover svg path{fill:#000;transition:fill .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item{visibility:inherit;height:35px;margin-top:8px;margin-bottom:0;display:flex;flex-direction:row;align-items:center;padding:8px;cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item *{visibility:inherit;cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item-is-red:hover{background:rgba(223,95,103,.2);transition:background .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item-is-red:hover *{cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item-is-red:hover svg path{fill:#df5f67;transition:fill .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item-is-red:hover span{color:#df5f67;transition:color .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item-info{color:#aaa;font-size:13px;margin:0 8px 0 32px;position:absolute}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-hidden{opacity:0;text-align:left;transform:translateX(25%);transition:opacity .5s linear}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-expanded .-cbwsdk-snackbar-instance-menu{opacity:1;display:flex;transform:translateY(8px);visibility:visible}"; + }); + var pet = N((dd) => { + "use strict"; + _(); + x(); + var det = + (dd && dd.__importDefault) || + function (r) { + return r && r.__esModule ? r : { default: r }; + }; + Object.defineProperty(dd, "__esModule", { value: !0 }); + dd.SnackbarInstance = dd.SnackbarContainer = dd.Snackbar = void 0; + var OB = det(xE()), + ts = (Wc(), In(Cu)), + XZ = (m_(), In(f_)), + YTr = det(uet()), + $Tr = + "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iMTIiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEyIDYuNzV2LTEuNWwtMS43Mi0uNTdjLS4wOC0uMjctLjE5LS41Mi0uMzItLjc3bC44MS0xLjYyLTEuMDYtMS4wNi0xLjYyLjgxYy0uMjQtLjEzLS41LS4yNC0uNzctLjMyTDYuNzUgMGgtMS41bC0uNTcgMS43MmMtLjI3LjA4LS41My4xOS0uNzcuMzJsLTEuNjItLjgxLTEuMDYgMS4wNi44MSAxLjYyYy0uMTMuMjQtLjI0LjUtLjMyLjc3TDAgNS4yNXYxLjVsMS43Mi41N2MuMDguMjcuMTkuNTMuMzIuNzdsLS44MSAxLjYyIDEuMDYgMS4wNiAxLjYyLS44MWMuMjQuMTMuNS4yMy43Ny4zMkw1LjI1IDEyaDEuNWwuNTctMS43MmMuMjctLjA4LjUyLS4xOS43Ny0uMzJsMS42Mi44MSAxLjA2LTEuMDYtLjgxLTEuNjJjLjEzLS4yNC4yMy0uNS4zMi0uNzdMMTIgNi43NXpNNiA4LjVhMi41IDIuNSAwIDAxMC01IDIuNSAyLjUgMCAwMTAgNXoiIGZpbGw9IiMwNTBGMTkiLz48L3N2Zz4="; + function JTr(r) { + switch (r) { + case "coinbase-app": + return "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzAiIGhlaWdodD0iMzAiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTE0LjY3NCAxOC44NThjLTIuMDQ1IDAtMy42NDgtMS43MjItMy42NDgtMy44NDVzMS42NTktMy44NDUgMy42NDgtMy44NDVjMS44MjQgMCAzLjMxNyAxLjM3NyAzLjU5MyAzLjIxNGgzLjcwM2MtLjMzMS0zLjk2LTMuNDgyLTcuMDU5LTcuMjk2LTcuMDU5LTQuMDM0IDAtNy4zNSAzLjQ0My03LjM1IDcuNjkgMCA0LjI0NiAzLjI2IDcuNjkgNy4zNSA3LjY5IDMuODcgMCA2Ljk2NS0zLjEgNy4yOTYtNy4wNTloLTMuNzAzYy0uMjc2IDEuODM2LTEuNzY5IDMuMjE0LTMuNTkzIDMuMjE0WiIgZmlsbD0iI2ZmZiIvPjxwYXRoIGQ9Ik0wIDEwLjY3OGMwLTMuNzExIDAtNS41OTYuNzQyLTcuMDIzQTYuNTMyIDYuNTMyIDAgMCAxIDMuNjU1Ljc0MkM1LjA4MiAwIDYuOTY3IDAgMTAuNjc4IDBoNy45MzhjMy43MTEgMCA1LjU5NiAwIDcuMDIzLjc0MmE2LjUzMSA2LjUzMSAwIDAgMSAyLjkxMyAyLjkxM2MuNzQyIDEuNDI3Ljc0MiAzLjMxMi43NDIgNy4wMjN2Ny45MzhjMCAzLjcxMSAwIDUuNTk2LS43NDIgNy4wMjNhNi41MzEgNi41MzEgMCAwIDEtMi45MTMgMi45MTNjLTEuNDI3Ljc0Mi0zLjMxMi43NDItNy4wMjMuNzQyaC03LjkzOGMtMy43MTEgMC01LjU5NiAwLTcuMDIzLS43NDJhNi41MzEgNi41MzEgMCAwIDEtMi45MTMtMi45MTNDMCAyNC4yMTIgMCAyMi4zODQgMCAxOC42MTZ2LTcuOTM4WiIgZmlsbD0iIzAwNTJGRiIvPjxwYXRoIGQ9Ik0xNC42ODQgMTkuNzczYy0yLjcyNyAwLTQuODY0LTIuMjk1LTQuODY0LTUuMTI2IDAtMi44MzEgMi4yMS01LjEyNyA0Ljg2NC01LjEyNyAyLjQzMiAwIDQuNDIyIDEuODM3IDQuNzkgNC4yODVoNC45MzhjLS40NDItNS4yOC00LjY0My05LjQxMS05LjcyOC05LjQxMS01LjM4IDAtOS44MDIgNC41OS05LjgwMiAxMC4yNTMgMCA1LjY2MiA0LjM0OCAxMC4yNTMgOS44MDIgMTAuMjUzIDUuMTU5IDAgOS4yODYtNC4xMzIgOS43MjgtOS40MTFoLTQuOTM4Yy0uMzY4IDIuNDQ4LTIuMzU4IDQuMjg0LTQuNzkgNC4yODRaIiBmaWxsPSIjZmZmIi8+PC9zdmc+"; + case "coinbase-wallet-app": + default: + return "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzIiIGhlaWdodD0iMzIiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEuNDkyIDEwLjQxOWE4LjkzIDguOTMgMCAwMTguOTMtOC45M2gxMS4xNjNhOC45MyA4LjkzIDAgMDE4LjkzIDguOTN2MTEuMTYzYTguOTMgOC45MyAwIDAxLTguOTMgOC45M0gxMC40MjJhOC45MyA4LjkzIDAgMDEtOC45My04LjkzVjEwLjQxOXoiIGZpbGw9IiMxNjUyRjAiLz48cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTEwLjQxOSAwSDIxLjU4QzI3LjMzNSAwIDMyIDQuNjY1IDMyIDEwLjQxOVYyMS41OEMzMiAyNy4zMzUgMjcuMzM1IDMyIDIxLjU4MSAzMkgxMC40MkM0LjY2NSAzMiAwIDI3LjMzNSAwIDIxLjU4MVYxMC40MkMwIDQuNjY1IDQuNjY1IDAgMTAuNDE5IDB6bTAgMS40ODhhOC45MyA4LjkzIDAgMDAtOC45MyA4LjkzdjExLjE2M2E4LjkzIDguOTMgMCAwMDguOTMgOC45M0gyMS41OGE4LjkzIDguOTMgMCAwMDguOTMtOC45M1YxMC40MmE4LjkzIDguOTMgMCAwMC04LjkzLTguOTNIMTAuNDJ6IiBmaWxsPSIjZmZmIi8+PHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xNS45OTggMjYuMDQ5Yy01LjU0OSAwLTEwLjA0Ny00LjQ5OC0xMC4wNDctMTAuMDQ3IDAtNS41NDggNC40OTgtMTAuMDQ2IDEwLjA0Ny0xMC4wNDYgNS41NDggMCAxMC4wNDYgNC40OTggMTAuMDQ2IDEwLjA0NiAwIDUuNTQ5LTQuNDk4IDEwLjA0Ny0xMC4wNDYgMTAuMDQ3eiIgZmlsbD0iI2ZmZiIvPjxwYXRoIGQ9Ik0xMi43NjIgMTQuMjU0YzAtLjgyMi42NjctMS40ODkgMS40ODktMS40ODloMy40OTdjLjgyMiAwIDEuNDg4LjY2NiAxLjQ4OCAxLjQ4OXYzLjQ5N2MwIC44MjItLjY2NiAxLjQ4OC0xLjQ4OCAxLjQ4OGgtMy40OTdhMS40ODggMS40ODggMCAwMS0xLjQ4OS0xLjQ4OHYtMy40OTh6IiBmaWxsPSIjMTY1MkYwIi8+PC9zdmc+"; + } + } + var eQ = class { + constructor(e) { + (this.items = new Map()), + (this.nextItemKey = 0), + (this.root = null), + (this.darkMode = e.darkMode); + } + attach(e) { + (this.root = document.createElement("div")), + (this.root.className = "-cbwsdk-snackbar-root"), + e.appendChild(this.root), + this.render(); + } + presentItem(e) { + let t = this.nextItemKey++; + return ( + this.items.set(t, e), + this.render(), + () => { + this.items.delete(t), this.render(); + } + ); + } + clear() { + this.items.clear(), this.render(); + } + render() { + !this.root || + (0, ts.render)( + (0, ts.h)( + "div", + null, + (0, ts.h)( + dd.SnackbarContainer, + { darkMode: this.darkMode }, + Array.from(this.items.entries()).map(([e, t]) => + (0, ts.h)( + dd.SnackbarInstance, + Object.assign({}, t, { key: e }) + ) + ) + ) + ), + this.root + ); + } + }; + dd.Snackbar = eQ; + var ZTr = (r) => + (0, ts.h)( + "div", + { class: (0, OB.default)("-cbwsdk-snackbar-container") }, + (0, ts.h)("style", null, YTr.default), + (0, ts.h)("div", { class: "-cbwsdk-snackbar" }, r.children) + ); + dd.SnackbarContainer = ZTr; + var QTr = ({ autoExpand: r, message: e, menuItems: t, appSrc: n }) => { + let [a, i] = (0, XZ.useState)(!0), + [s, c] = (0, XZ.useState)(r ?? !1); + (0, XZ.useEffect)(() => { + let d = [ + window.setTimeout(() => { + i(!1); + }, 1), + window.setTimeout(() => { + c(!0); + }, 1e4), + ]; + return () => { + d.forEach(window.clearTimeout); + }; + }); + let l = () => { + c(!s); + }; + return (0, ts.h)( + "div", + { + class: (0, OB.default)( + "-cbwsdk-snackbar-instance", + a && "-cbwsdk-snackbar-instance-hidden", + s && "-cbwsdk-snackbar-instance-expanded" + ), + }, + (0, ts.h)( + "div", + { class: "-cbwsdk-snackbar-instance-header", onClick: l }, + (0, ts.h)("img", { + src: JTr(n), + class: "-cbwsdk-snackbar-instance-header-cblogo", + }), + (0, ts.h)( + "div", + { class: "-cbwsdk-snackbar-instance-header-message" }, + e + ), + (0, ts.h)( + "div", + { class: "-gear-container" }, + !s && + (0, ts.h)( + "svg", + { + width: "24", + height: "24", + viewBox: "0 0 24 24", + fill: "none", + xmlns: "http://www.w3.org/2000/svg", + }, + (0, ts.h)("circle", { + cx: "12", + cy: "12", + r: "12", + fill: "#F5F7F8", + }) + ), + (0, ts.h)("img", { src: $Tr, class: "-gear-icon", title: "Expand" }) + ) + ), + t && + t.length > 0 && + (0, ts.h)( + "div", + { class: "-cbwsdk-snackbar-instance-menu" }, + t.map((d, m) => + (0, ts.h)( + "div", + { + class: (0, OB.default)( + "-cbwsdk-snackbar-instance-menu-item", + d.isRed && "-cbwsdk-snackbar-instance-menu-item-is-red" + ), + onClick: d.onClick, + key: m, + }, + (0, ts.h)( + "svg", + { + width: d.svgWidth, + height: d.svgHeight, + viewBox: "0 0 10 11", + fill: "none", + xmlns: "http://www.w3.org/2000/svg", + }, + (0, ts.h)("path", { + "fill-rule": d.defaultFillRule, + "clip-rule": d.defaultClipRule, + d: d.path, + fill: "#AAAAAA", + }) + ), + (0, ts.h)( + "span", + { + class: (0, OB.default)( + "-cbwsdk-snackbar-instance-menu-item-info", + d.isRed && + "-cbwsdk-snackbar-instance-menu-item-info-is-red" + ), + }, + d.info + ) + ) + ) + ) + ); + }; + dd.SnackbarInstance = QTr; + }); + var het = N((tQ) => { + "use strict"; + _(); + x(); + Object.defineProperty(tQ, "__esModule", { value: !0 }); + tQ.default = + '@namespace svg "http://www.w3.org/2000/svg";.-cbwsdk-css-reset,.-cbwsdk-css-reset *{animation:none;animation-delay:0;animation-direction:normal;animation-duration:0;animation-fill-mode:none;animation-iteration-count:1;animation-name:none;animation-play-state:running;animation-timing-function:ease;backface-visibility:visible;background:0;background-attachment:scroll;background-clip:border-box;background-color:rgba(0,0,0,0);background-image:none;background-origin:padding-box;background-position:0 0;background-position-x:0;background-position-y:0;background-repeat:repeat;background-size:auto auto;border:0;border-style:none;border-width:medium;border-color:inherit;border-bottom:0;border-bottom-color:inherit;border-bottom-left-radius:0;border-bottom-right-radius:0;border-bottom-style:none;border-bottom-width:medium;border-collapse:separate;border-image:none;border-left:0;border-left-color:inherit;border-left-style:none;border-left-width:medium;border-radius:0;border-right:0;border-right-color:inherit;border-right-style:none;border-right-width:medium;border-spacing:0;border-top:0;border-top-color:inherit;border-top-left-radius:0;border-top-right-radius:0;border-top-style:none;border-top-width:medium;box-shadow:none;box-sizing:border-box;caption-side:top;clear:none;clip:auto;color:inherit;columns:auto;column-count:auto;column-fill:balance;column-gap:normal;column-rule:medium none currentColor;column-rule-color:currentColor;column-rule-style:none;column-rule-width:none;column-span:1;column-width:auto;counter-increment:none;counter-reset:none;direction:ltr;empty-cells:show;float:none;font:normal;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Helvetica Neue",Arial,sans-serif;font-size:medium;font-style:normal;font-variant:normal;font-weight:normal;height:auto;hyphens:none;letter-spacing:normal;line-height:normal;list-style:none;list-style-image:none;list-style-position:outside;list-style-type:disc;margin:0;margin-bottom:0;margin-left:0;margin-right:0;margin-top:0;opacity:1;orphans:0;outline:0;outline-color:invert;outline-style:none;outline-width:medium;overflow:visible;overflow-x:visible;overflow-y:visible;padding:0;padding-bottom:0;padding-left:0;padding-right:0;padding-top:0;page-break-after:auto;page-break-before:auto;page-break-inside:auto;perspective:none;perspective-origin:50% 50%;pointer-events:auto;position:static;quotes:"\\201C" "\\201D" "\\2018" "\\2019";tab-size:8;table-layout:auto;text-align:inherit;text-align-last:auto;text-decoration:none;text-decoration-color:inherit;text-decoration-line:none;text-decoration-style:solid;text-indent:0;text-shadow:none;text-transform:none;transform:none;transform-style:flat;transition:none;transition-delay:0s;transition-duration:0s;transition-property:none;transition-timing-function:ease;unicode-bidi:normal;vertical-align:baseline;visibility:visible;white-space:normal;widows:0;word-spacing:normal;z-index:auto}.-cbwsdk-css-reset strong{font-weight:bold}.-cbwsdk-css-reset *{box-sizing:border-box;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Helvetica Neue",Arial,sans-serif;line-height:1}.-cbwsdk-css-reset [class*=container]{margin:0;padding:0}.-cbwsdk-css-reset style{display:none}'; + }); + var fet = N((x_) => { + "use strict"; + _(); + x(); + var XTr = + (x_ && x_.__importDefault) || + function (r) { + return r && r.__esModule ? r : { default: r }; + }; + Object.defineProperty(x_, "__esModule", { value: !0 }); + x_.injectCssReset = void 0; + var e5r = XTr(het()); + function t5r() { + let r = document.createElement("style"); + (r.type = "text/css"), + r.appendChild(document.createTextNode(e5r.default)), + document.documentElement.appendChild(r); + } + x_.injectCssReset = t5r; + }); + var met = N((LB) => { + "use strict"; + _(); + x(); + Object.defineProperty(LB, "__esModule", { value: !0 }); + LB.WalletSDKUI = void 0; + var r5r = cet(), + n5r = pet(), + a5r = fet(), + rQ = class { + constructor(e) { + (this.standalone = null), + (this.attached = !1), + (this.appSrc = null), + (this.snackbar = new n5r.Snackbar({ darkMode: e.darkMode })), + (this.linkFlow = new r5r.LinkFlow({ + darkMode: e.darkMode, + version: e.version, + sessionId: e.session.id, + sessionSecret: e.session.secret, + linkAPIUrl: e.linkAPIUrl, + connected$: e.connected$, + chainId$: e.chainId$, + isParentConnection: !1, + })); + } + attach() { + if (this.attached) + throw new Error("Coinbase Wallet SDK UI is already attached"); + let e = document.documentElement, + t = document.createElement("div"); + (t.className = "-cbwsdk-css-reset"), + e.appendChild(t), + this.linkFlow.attach(t), + this.snackbar.attach(t), + (this.attached = !0), + (0, a5r.injectCssReset)(); + } + setConnectDisabled(e) { + this.linkFlow.setConnectDisabled(e); + } + addEthereumChain(e) {} + watchAsset(e) {} + switchEthereumChain(e) {} + requestEthereumAccounts(e) { + this.linkFlow.open({ onCancel: e.onCancel }); + } + hideRequestEthereumAccounts() { + this.linkFlow.close(); + } + signEthereumMessage(e) {} + signEthereumTransaction(e) {} + submitEthereumTransaction(e) {} + ethereumAddressFromSignedMessage(e) {} + showConnecting(e) { + let t; + return ( + e.isUnlinkedErrorState + ? (t = { + autoExpand: !0, + message: "Connection lost", + appSrc: this.appSrc, + menuItems: [ + { + isRed: !1, + info: "Reset connection", + svgWidth: "10", + svgHeight: "11", + path: "M5.00008 0.96875C6.73133 0.96875 8.23758 1.94375 9.00008 3.375L10.0001 2.375V5.5H9.53133H7.96883H6.87508L7.80633 4.56875C7.41258 3.3875 6.31258 2.53125 5.00008 2.53125C3.76258 2.53125 2.70633 3.2875 2.25633 4.36875L0.812576 3.76875C1.50008 2.125 3.11258 0.96875 5.00008 0.96875ZM2.19375 6.43125C2.5875 7.6125 3.6875 8.46875 5 8.46875C6.2375 8.46875 7.29375 7.7125 7.74375 6.63125L9.1875 7.23125C8.5 8.875 6.8875 10.0312 5 10.0312C3.26875 10.0312 1.7625 9.05625 1 7.625L0 8.625V5.5H0.46875H2.03125H3.125L2.19375 6.43125Z", + defaultFillRule: "evenodd", + defaultClipRule: "evenodd", + onClick: e.onResetConnection, + }, + ], + }) + : (t = { + message: "Confirm on phone", + appSrc: this.appSrc, + menuItems: [ + { + isRed: !0, + info: "Cancel transaction", + svgWidth: "11", + svgHeight: "11", + path: "M10.3711 1.52346L9.21775 0.370117L5.37109 4.21022L1.52444 0.370117L0.371094 1.52346L4.2112 5.37012L0.371094 9.21677L1.52444 10.3701L5.37109 6.53001L9.21775 10.3701L10.3711 9.21677L6.53099 5.37012L10.3711 1.52346Z", + defaultFillRule: "inherit", + defaultClipRule: "inherit", + onClick: e.onCancel, + }, + { + isRed: !1, + info: "Reset connection", + svgWidth: "10", + svgHeight: "11", + path: "M5.00008 0.96875C6.73133 0.96875 8.23758 1.94375 9.00008 3.375L10.0001 2.375V5.5H9.53133H7.96883H6.87508L7.80633 4.56875C7.41258 3.3875 6.31258 2.53125 5.00008 2.53125C3.76258 2.53125 2.70633 3.2875 2.25633 4.36875L0.812576 3.76875C1.50008 2.125 3.11258 0.96875 5.00008 0.96875ZM2.19375 6.43125C2.5875 7.6125 3.6875 8.46875 5 8.46875C6.2375 8.46875 7.29375 7.7125 7.74375 6.63125L9.1875 7.23125C8.5 8.875 6.8875 10.0312 5 10.0312C3.26875 10.0312 1.7625 9.05625 1 7.625L0 8.625V5.5H0.46875H2.03125H3.125L2.19375 6.43125Z", + defaultFillRule: "evenodd", + defaultClipRule: "evenodd", + onClick: e.onResetConnection, + }, + ], + }), + this.snackbar.presentItem(t) + ); + } + setAppSrc(e) { + this.appSrc = e; + } + reloadUI() { + document.location.reload(); + } + inlineAccountsResponse() { + return !1; + } + inlineAddEthereumChain(e) { + return !1; + } + inlineWatchAsset() { + return !1; + } + inlineSwitchEthereumChain() { + return !1; + } + setStandalone(e) { + this.standalone = e; + } + isStandalone() { + var e; + return (e = this.standalone) !== null && e !== void 0 ? e : !1; + } + }; + LB.WalletSDKUI = rQ; + }); + var get = N((DB) => { + "use strict"; + _(); + x(); + Object.defineProperty(DB, "__esModule", { value: !0 }); + var T_; + (function (r) { + (r.typeOfFunction = "function"), (r.boolTrue = !0); + })(T_ || (T_ = {})); + function yet(r, e, t) { + if (!t || typeof t.value !== T_.typeOfFunction) + throw new TypeError( + "Only methods can be decorated with @bind. <" + + e + + "> is not a method!" + ); + return { + configurable: T_.boolTrue, + get: function () { + var n = t.value.bind(this); + return ( + Object.defineProperty(this, e, { + value: n, + configurable: T_.boolTrue, + writable: T_.boolTrue, + }), + n + ); + }, + }; + } + DB.bind = yet; + DB.default = yet; + }); + var aQ = N((TE) => { + "use strict"; + _(); + x(); + var i5r = + (TE && TE.__extends) || + (function () { + var r = function (e, t) { + return ( + (r = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (n, a) { + n.__proto__ = a; + }) || + function (n, a) { + for (var i in a) a.hasOwnProperty(i) && (n[i] = a[i]); + }), + r(e, t) + ); + }; + return function (e, t) { + r(e, t); + function n() { + this.constructor = e; + } + e.prototype = + t === null + ? Object.create(t) + : ((n.prototype = t.prototype), new n()); + }; + })(); + Object.defineProperty(TE, "__esModule", { value: !0 }); + var nQ = Ci(); + function s5r(r) { + return function (t) { + return t.lift(new o5r(r)); + }; + } + TE.audit = s5r; + var o5r = (function () { + function r(e) { + this.durationSelector = e; + } + return ( + (r.prototype.call = function (e, t) { + return t.subscribe(new c5r(e, this.durationSelector)); + }), + r + ); + })(), + c5r = (function (r) { + i5r(e, r); + function e(t, n) { + var a = r.call(this, t) || this; + return (a.durationSelector = n), (a.hasValue = !1), a; + } + return ( + (e.prototype._next = function (t) { + if (((this.value = t), (this.hasValue = !0), !this.throttled)) { + var n = void 0; + try { + var a = this.durationSelector; + n = a(t); + } catch (s) { + return this.destination.error(s); + } + var i = nQ.innerSubscribe(n, new nQ.SimpleInnerSubscriber(this)); + !i || i.closed + ? this.clearThrottle() + : this.add((this.throttled = i)); + } + }), + (e.prototype.clearThrottle = function () { + var t = this, + n = t.value, + a = t.hasValue, + i = t.throttled; + i && (this.remove(i), (this.throttled = void 0), i.unsubscribe()), + a && + ((this.value = void 0), + (this.hasValue = !1), + this.destination.next(n)); + }), + (e.prototype.notifyNext = function () { + this.clearThrottle(); + }), + (e.prototype.notifyComplete = function () { + this.clearThrottle(); + }), + e + ); + })(nQ.SimpleOuterSubscriber); + }); + var bet = N((iQ) => { + "use strict"; + _(); + x(); + Object.defineProperty(iQ, "__esModule", { value: !0 }); + var u5r = Hc(), + l5r = aQ(), + d5r = kZ(); + function p5r(r, e) { + return ( + e === void 0 && (e = u5r.async), + l5r.audit(function () { + return d5r.timer(r, e); + }) + ); + } + iQ.auditTime = p5r; + }); + var vet = N((EE) => { + "use strict"; + _(); + x(); + var h5r = + (EE && EE.__extends) || + (function () { + var r = function (e, t) { + return ( + (r = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (n, a) { + n.__proto__ = a; + }) || + function (n, a) { + for (var i in a) a.hasOwnProperty(i) && (n[i] = a[i]); + }), + r(e, t) + ); + }; + return function (e, t) { + r(e, t); + function n() { + this.constructor = e; + } + e.prototype = + t === null + ? Object.create(t) + : ((n.prototype = t.prototype), new n()); + }; + })(); + Object.defineProperty(EE, "__esModule", { value: !0 }); + var sQ = Ci(); + function f5r(r) { + return function (t) { + return t.lift(new m5r(r)); + }; + } + EE.buffer = f5r; + var m5r = (function () { + function r(e) { + this.closingNotifier = e; + } + return ( + (r.prototype.call = function (e, t) { + return t.subscribe(new y5r(e, this.closingNotifier)); + }), + r + ); + })(), + y5r = (function (r) { + h5r(e, r); + function e(t, n) { + var a = r.call(this, t) || this; + return ( + (a.buffer = []), + a.add(sQ.innerSubscribe(n, new sQ.SimpleInnerSubscriber(a))), + a + ); + } + return ( + (e.prototype._next = function (t) { + this.buffer.push(t); + }), + (e.prototype.notifyNext = function () { + var t = this.buffer; + (this.buffer = []), this.destination.next(t); + }), + e + ); + })(sQ.SimpleOuterSubscriber); + }); + var xet = N((CE) => { + "use strict"; + _(); + x(); + var wet = + (CE && CE.__extends) || + (function () { + var r = function (e, t) { + return ( + (r = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (n, a) { + n.__proto__ = a; + }) || + function (n, a) { + for (var i in a) a.hasOwnProperty(i) && (n[i] = a[i]); + }), + r(e, t) + ); + }; + return function (e, t) { + r(e, t); + function n() { + this.constructor = e; + } + e.prototype = + t === null + ? Object.create(t) + : ((n.prototype = t.prototype), new n()); + }; + })(); + Object.defineProperty(CE, "__esModule", { value: !0 }); + var _et = sr(); + function g5r(r, e) { + return ( + e === void 0 && (e = null), + function (n) { + return n.lift(new b5r(r, e)); + } + ); + } + CE.bufferCount = g5r; + var b5r = (function () { + function r(e, t) { + (this.bufferSize = e), + (this.startBufferEvery = t), + !t || e === t + ? (this.subscriberClass = v5r) + : (this.subscriberClass = w5r); + } + return ( + (r.prototype.call = function (e, t) { + return t.subscribe( + new this.subscriberClass( + e, + this.bufferSize, + this.startBufferEvery + ) + ); + }), + r + ); + })(), + v5r = (function (r) { + wet(e, r); + function e(t, n) { + var a = r.call(this, t) || this; + return (a.bufferSize = n), (a.buffer = []), a; + } + return ( + (e.prototype._next = function (t) { + var n = this.buffer; + n.push(t), + n.length == this.bufferSize && + (this.destination.next(n), (this.buffer = [])); + }), + (e.prototype._complete = function () { + var t = this.buffer; + t.length > 0 && this.destination.next(t), + r.prototype._complete.call(this); + }), + e + ); + })(_et.Subscriber), + w5r = (function (r) { + wet(e, r); + function e(t, n, a) { + var i = r.call(this, t) || this; + return ( + (i.bufferSize = n), + (i.startBufferEvery = a), + (i.buffers = []), + (i.count = 0), + i + ); + } + return ( + (e.prototype._next = function (t) { + var n = this, + a = n.bufferSize, + i = n.startBufferEvery, + s = n.buffers, + c = n.count; + this.count++, c % i === 0 && s.push([]); + for (var l = s.length; l--; ) { + var d = s[l]; + d.push(t), + d.length === a && (s.splice(l, 1), this.destination.next(d)); + } + }), + (e.prototype._complete = function () { + for ( + var t = this, n = t.buffers, a = t.destination; + n.length > 0; + + ) { + var i = n.shift(); + i.length > 0 && a.next(i); + } + r.prototype._complete.call(this); + }), + e + ); + })(_et.Subscriber); + }); + var Cet = N((IE) => { + "use strict"; + _(); + x(); + var _5r = + (IE && IE.__extends) || + (function () { + var r = function (e, t) { + return ( + (r = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (n, a) { + n.__proto__ = a; + }) || + function (n, a) { + for (var i in a) a.hasOwnProperty(i) && (n[i] = a[i]); + }), + r(e, t) + ); + }; + return function (e, t) { + r(e, t); + function n() { + this.constructor = e; + } + e.prototype = + t === null + ? Object.create(t) + : ((n.prototype = t.prototype), new n()); + }; + })(); + Object.defineProperty(IE, "__esModule", { value: !0 }); + var x5r = Hc(), + T5r = sr(), + E5r = dp(); + function C5r(r) { + var e = arguments.length, + t = x5r.async; + E5r.isScheduler(arguments[arguments.length - 1]) && + ((t = arguments[arguments.length - 1]), e--); + var n = null; + e >= 2 && (n = arguments[1]); + var a = Number.POSITIVE_INFINITY; + return ( + e >= 3 && (a = arguments[2]), + function (s) { + return s.lift(new I5r(r, n, a, t)); + } + ); + } + IE.bufferTime = C5r; + var I5r = (function () { + function r(e, t, n, a) { + (this.bufferTimeSpan = e), + (this.bufferCreationInterval = t), + (this.maxBufferSize = n), + (this.scheduler = a); + } + return ( + (r.prototype.call = function (e, t) { + return t.subscribe( + new k5r( + e, + this.bufferTimeSpan, + this.bufferCreationInterval, + this.maxBufferSize, + this.scheduler + ) + ); + }), + r + ); + })(), + A5r = (function () { + function r() { + this.buffer = []; + } + return r; + })(), + k5r = (function (r) { + _5r(e, r); + function e(t, n, a, i, s) { + var c = r.call(this, t) || this; + (c.bufferTimeSpan = n), + (c.bufferCreationInterval = a), + (c.maxBufferSize = i), + (c.scheduler = s), + (c.contexts = []); + var l = c.openContext(); + if (((c.timespanOnly = a == null || a < 0), c.timespanOnly)) { + var d = { subscriber: c, context: l, bufferTimeSpan: n }; + c.add((l.closeAction = s.schedule(Tet, n, d))); + } else { + var m = { subscriber: c, context: l }, + w = { + bufferTimeSpan: n, + bufferCreationInterval: a, + subscriber: c, + scheduler: s, + }; + c.add((l.closeAction = s.schedule(Eet, n, m))), + c.add(s.schedule(S5r, a, w)); + } + return c; + } + return ( + (e.prototype._next = function (t) { + for (var n = this.contexts, a = n.length, i, s = 0; s < a; s++) { + var c = n[s], + l = c.buffer; + l.push(t), l.length == this.maxBufferSize && (i = c); + } + i && this.onBufferFull(i); + }), + (e.prototype._error = function (t) { + (this.contexts.length = 0), r.prototype._error.call(this, t); + }), + (e.prototype._complete = function () { + for ( + var t = this, n = t.contexts, a = t.destination; + n.length > 0; + + ) { + var i = n.shift(); + a.next(i.buffer); + } + r.prototype._complete.call(this); + }), + (e.prototype._unsubscribe = function () { + this.contexts = null; + }), + (e.prototype.onBufferFull = function (t) { + this.closeContext(t); + var n = t.closeAction; + if ( + (n.unsubscribe(), + this.remove(n), + !this.closed && this.timespanOnly) + ) { + t = this.openContext(); + var a = this.bufferTimeSpan, + i = { subscriber: this, context: t, bufferTimeSpan: a }; + this.add((t.closeAction = this.scheduler.schedule(Tet, a, i))); + } + }), + (e.prototype.openContext = function () { + var t = new A5r(); + return this.contexts.push(t), t; + }), + (e.prototype.closeContext = function (t) { + this.destination.next(t.buffer); + var n = this.contexts, + a = n ? n.indexOf(t) : -1; + a >= 0 && n.splice(n.indexOf(t), 1); + }), + e + ); + })(T5r.Subscriber); + function Tet(r) { + var e = r.subscriber, + t = r.context; + t && e.closeContext(t), + e.closed || + ((r.context = e.openContext()), + (r.context.closeAction = this.schedule(r, r.bufferTimeSpan))); + } + function S5r(r) { + var e = r.bufferCreationInterval, + t = r.bufferTimeSpan, + n = r.subscriber, + a = r.scheduler, + i = n.openContext(), + s = this; + n.closed || + (n.add( + (i.closeAction = a.schedule(Eet, t, { subscriber: n, context: i })) + ), + s.schedule(r, e)); + } + function Eet(r) { + var e = r.subscriber, + t = r.context; + e.closeContext(t); + } + }); + var Aet = N((AE) => { + "use strict"; + _(); + x(); + var M5r = + (AE && AE.__extends) || + (function () { + var r = function (e, t) { + return ( + (r = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (n, a) { + n.__proto__ = a; + }) || + function (n, a) { + for (var i in a) a.hasOwnProperty(i) && (n[i] = a[i]); + }), + r(e, t) + ); + }; + return function (e, t) { + r(e, t); + function n() { + this.constructor = e; + } + e.prototype = + t === null + ? Object.create(t) + : ((n.prototype = t.prototype), new n()); + }; + })(); + Object.defineProperty(AE, "__esModule", { value: !0 }); + var P5r = ws(), + Iet = q0(), + R5r = D0(); + function B5r(r, e) { + return function (n) { + return n.lift(new N5r(r, e)); + }; + } + AE.bufferToggle = B5r; + var N5r = (function () { + function r(e, t) { + (this.openings = e), (this.closingSelector = t); + } + return ( + (r.prototype.call = function (e, t) { + return t.subscribe(new O5r(e, this.openings, this.closingSelector)); + }), + r + ); + })(), + O5r = (function (r) { + M5r(e, r); + function e(t, n, a) { + var i = r.call(this, t) || this; + return ( + (i.closingSelector = a), + (i.contexts = []), + i.add(Iet.subscribeToResult(i, n)), + i + ); + } + return ( + (e.prototype._next = function (t) { + for (var n = this.contexts, a = n.length, i = 0; i < a; i++) + n[i].buffer.push(t); + }), + (e.prototype._error = function (t) { + for (var n = this.contexts; n.length > 0; ) { + var a = n.shift(); + a.subscription.unsubscribe(), + (a.buffer = null), + (a.subscription = null); + } + (this.contexts = null), r.prototype._error.call(this, t); + }), + (e.prototype._complete = function () { + for (var t = this.contexts; t.length > 0; ) { + var n = t.shift(); + this.destination.next(n.buffer), + n.subscription.unsubscribe(), + (n.buffer = null), + (n.subscription = null); + } + (this.contexts = null), r.prototype._complete.call(this); + }), + (e.prototype.notifyNext = function (t, n) { + t ? this.closeBuffer(t) : this.openBuffer(n); + }), + (e.prototype.notifyComplete = function (t) { + this.closeBuffer(t.context); + }), + (e.prototype.openBuffer = function (t) { + try { + var n = this.closingSelector, + a = n.call(this, t); + a && this.trySubscribe(a); + } catch (i) { + this._error(i); + } + }), + (e.prototype.closeBuffer = function (t) { + var n = this.contexts; + if (n && t) { + var a = t.buffer, + i = t.subscription; + this.destination.next(a), + n.splice(n.indexOf(t), 1), + this.remove(i), + i.unsubscribe(); + } + }), + (e.prototype.trySubscribe = function (t) { + var n = this.contexts, + a = [], + i = new P5r.Subscription(), + s = { buffer: a, subscription: i }; + n.push(s); + var c = Iet.subscribeToResult(this, t, s); + !c || c.closed + ? this.closeBuffer(s) + : ((c.context = s), this.add(c), i.add(c)); + }), + e + ); + })(R5r.OuterSubscriber); + }); + var ket = N((kE) => { + "use strict"; + _(); + x(); + var L5r = + (kE && kE.__extends) || + (function () { + var r = function (e, t) { + return ( + (r = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (n, a) { + n.__proto__ = a; + }) || + function (n, a) { + for (var i in a) a.hasOwnProperty(i) && (n[i] = a[i]); + }), + r(e, t) + ); + }; + return function (e, t) { + r(e, t); + function n() { + this.constructor = e; + } + e.prototype = + t === null + ? Object.create(t) + : ((n.prototype = t.prototype), new n()); + }; + })(); + Object.defineProperty(kE, "__esModule", { value: !0 }); + var D5r = ws(), + oQ = Ci(); + function q5r(r) { + return function (e) { + return e.lift(new F5r(r)); + }; + } + kE.bufferWhen = q5r; + var F5r = (function () { + function r(e) { + this.closingSelector = e; + } + return ( + (r.prototype.call = function (e, t) { + return t.subscribe(new W5r(e, this.closingSelector)); + }), + r + ); + })(), + W5r = (function (r) { + L5r(e, r); + function e(t, n) { + var a = r.call(this, t) || this; + return ( + (a.closingSelector = n), (a.subscribing = !1), a.openBuffer(), a + ); + } + return ( + (e.prototype._next = function (t) { + this.buffer.push(t); + }), + (e.prototype._complete = function () { + var t = this.buffer; + t && this.destination.next(t), r.prototype._complete.call(this); + }), + (e.prototype._unsubscribe = function () { + (this.buffer = void 0), (this.subscribing = !1); + }), + (e.prototype.notifyNext = function () { + this.openBuffer(); + }), + (e.prototype.notifyComplete = function () { + this.subscribing ? this.complete() : this.openBuffer(); + }), + (e.prototype.openBuffer = function () { + var t = this.closingSubscription; + t && (this.remove(t), t.unsubscribe()); + var n = this.buffer; + this.buffer && this.destination.next(n), (this.buffer = []); + var a; + try { + var i = this.closingSelector; + a = i(); + } catch (s) { + return this.error(s); + } + (t = new D5r.Subscription()), + (this.closingSubscription = t), + this.add(t), + (this.subscribing = !0), + t.add(oQ.innerSubscribe(a, new oQ.SimpleInnerSubscriber(this))), + (this.subscribing = !1); + }), + e + ); + })(oQ.SimpleOuterSubscriber); + }); + var Met = N((SE) => { + "use strict"; + _(); + x(); + var U5r = + (SE && SE.__extends) || + (function () { + var r = function (e, t) { + return ( + (r = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (n, a) { + n.__proto__ = a; + }) || + function (n, a) { + for (var i in a) a.hasOwnProperty(i) && (n[i] = a[i]); + }), + r(e, t) + ); + }; + return function (e, t) { + r(e, t); + function n() { + this.constructor = e; + } + e.prototype = + t === null + ? Object.create(t) + : ((n.prototype = t.prototype), new n()); + }; + })(); + Object.defineProperty(SE, "__esModule", { value: !0 }); + var cQ = Ci(); + function H5r(r) { + return function (t) { + var n = new z5r(r), + a = t.lift(n); + return (n.caught = a); + }; + } + SE.catchError = H5r; + var z5r = (function () { + function r(e) { + this.selector = e; + } + return ( + (r.prototype.call = function (e, t) { + return t.subscribe(new j5r(e, this.selector, this.caught)); + }), + r + ); + })(), + j5r = (function (r) { + U5r(e, r); + function e(t, n, a) { + var i = r.call(this, t) || this; + return (i.selector = n), (i.caught = a), i; + } + return ( + (e.prototype.error = function (t) { + if (!this.isStopped) { + var n = void 0; + try { + n = this.selector(t, this.caught); + } catch (s) { + r.prototype.error.call(this, s); + return; + } + this._unsubscribeAndRecycle(); + var a = new cQ.SimpleInnerSubscriber(this); + this.add(a); + var i = cQ.innerSubscribe(n, a); + i !== a && this.add(i); + } + }), + e + ); + })(cQ.SimpleOuterSubscriber); + }); + var Pet = N((uQ) => { + "use strict"; + _(); + x(); + Object.defineProperty(uQ, "__esModule", { value: !0 }); + var K5r = fB(); + function V5r(r) { + return function (e) { + return e.lift(new K5r.CombineLatestOperator(r)); + }; + } + uQ.combineAll = V5r; + }); + var Ret = N((lQ) => { + "use strict"; + _(); + x(); + Object.defineProperty(lQ, "__esModule", { value: !0 }); + var G5r = Uc(), + Y5r = fB(), + $5r = pp(); + function J5r() { + for (var r = [], e = 0; e < arguments.length; e++) r[e] = arguments[e]; + var t = null; + return ( + typeof r[r.length - 1] == "function" && (t = r.pop()), + r.length === 1 && G5r.isArray(r[0]) && (r = r[0].slice()), + function (n) { + return n.lift.call( + $5r.from([n].concat(r)), + new Y5r.CombineLatestOperator(t) + ); + } + ); + } + lQ.combineLatest = J5r; + }); + var Bet = N((dQ) => { + "use strict"; + _(); + x(); + Object.defineProperty(dQ, "__esModule", { value: !0 }); + var Z5r = gE(); + function Q5r() { + for (var r = [], e = 0; e < arguments.length; e++) r[e] = arguments[e]; + return function (t) { + return t.lift.call(Z5r.concat.apply(void 0, [t].concat(r))); + }; + } + dQ.concat = Q5r; + }); + var hQ = N((pQ) => { + "use strict"; + _(); + x(); + Object.defineProperty(pQ, "__esModule", { value: !0 }); + var X5r = yE(); + function e3r(r, e) { + return X5r.mergeMap(r, e, 1); + } + pQ.concatMap = e3r; + }); + var Net = N((fQ) => { + "use strict"; + _(); + x(); + Object.defineProperty(fQ, "__esModule", { value: !0 }); + var t3r = hQ(); + function r3r(r, e) { + return t3r.concatMap(function () { + return r; + }, e); + } + fQ.concatMapTo = r3r; + }); + var Oet = N((ME) => { + "use strict"; + _(); + x(); + var n3r = + (ME && ME.__extends) || + (function () { + var r = function (e, t) { + return ( + (r = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (n, a) { + n.__proto__ = a; + }) || + function (n, a) { + for (var i in a) a.hasOwnProperty(i) && (n[i] = a[i]); + }), + r(e, t) + ); + }; + return function (e, t) { + r(e, t); + function n() { + this.constructor = e; + } + e.prototype = + t === null + ? Object.create(t) + : ((n.prototype = t.prototype), new n()); + }; + })(); + Object.defineProperty(ME, "__esModule", { value: !0 }); + var a3r = sr(); + function i3r(r) { + return function (e) { + return e.lift(new s3r(r, e)); + }; + } + ME.count = i3r; + var s3r = (function () { + function r(e, t) { + (this.predicate = e), (this.source = t); + } + return ( + (r.prototype.call = function (e, t) { + return t.subscribe(new o3r(e, this.predicate, this.source)); + }), + r + ); + })(), + o3r = (function (r) { + n3r(e, r); + function e(t, n, a) { + var i = r.call(this, t) || this; + return ( + (i.predicate = n), (i.source = a), (i.count = 0), (i.index = 0), i + ); + } + return ( + (e.prototype._next = function (t) { + this.predicate ? this._tryPredicate(t) : this.count++; + }), + (e.prototype._tryPredicate = function (t) { + var n; + try { + n = this.predicate(t, this.index++, this.source); + } catch (a) { + this.destination.error(a); + return; + } + n && this.count++; + }), + (e.prototype._complete = function () { + this.destination.next(this.count), this.destination.complete(); + }), + e + ); + })(a3r.Subscriber); + }); + var Let = N((PE) => { + "use strict"; + _(); + x(); + var c3r = + (PE && PE.__extends) || + (function () { + var r = function (e, t) { + return ( + (r = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (n, a) { + n.__proto__ = a; + }) || + function (n, a) { + for (var i in a) a.hasOwnProperty(i) && (n[i] = a[i]); + }), + r(e, t) + ); + }; + return function (e, t) { + r(e, t); + function n() { + this.constructor = e; + } + e.prototype = + t === null + ? Object.create(t) + : ((n.prototype = t.prototype), new n()); + }; + })(); + Object.defineProperty(PE, "__esModule", { value: !0 }); + var mQ = Ci(); + function u3r(r) { + return function (e) { + return e.lift(new l3r(r)); + }; + } + PE.debounce = u3r; + var l3r = (function () { + function r(e) { + this.durationSelector = e; + } + return ( + (r.prototype.call = function (e, t) { + return t.subscribe(new d3r(e, this.durationSelector)); + }), + r + ); + })(), + d3r = (function (r) { + c3r(e, r); + function e(t, n) { + var a = r.call(this, t) || this; + return (a.durationSelector = n), (a.hasValue = !1), a; + } + return ( + (e.prototype._next = function (t) { + try { + var n = this.durationSelector.call(this, t); + n && this._tryNext(t, n); + } catch (a) { + this.destination.error(a); + } + }), + (e.prototype._complete = function () { + this.emitValue(), this.destination.complete(); + }), + (e.prototype._tryNext = function (t, n) { + var a = this.durationSubscription; + (this.value = t), + (this.hasValue = !0), + a && (a.unsubscribe(), this.remove(a)), + (a = mQ.innerSubscribe(n, new mQ.SimpleInnerSubscriber(this))), + a && !a.closed && this.add((this.durationSubscription = a)); + }), + (e.prototype.notifyNext = function () { + this.emitValue(); + }), + (e.prototype.notifyComplete = function () { + this.emitValue(); + }), + (e.prototype.emitValue = function () { + if (this.hasValue) { + var t = this.value, + n = this.durationSubscription; + n && + ((this.durationSubscription = void 0), + n.unsubscribe(), + this.remove(n)), + (this.value = void 0), + (this.hasValue = !1), + r.prototype._next.call(this, t); + } + }), + e + ); + })(mQ.SimpleOuterSubscriber); + }); + var Det = N((RE) => { + "use strict"; + _(); + x(); + var p3r = + (RE && RE.__extends) || + (function () { + var r = function (e, t) { + return ( + (r = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (n, a) { + n.__proto__ = a; + }) || + function (n, a) { + for (var i in a) a.hasOwnProperty(i) && (n[i] = a[i]); + }), + r(e, t) + ); + }; + return function (e, t) { + r(e, t); + function n() { + this.constructor = e; + } + e.prototype = + t === null + ? Object.create(t) + : ((n.prototype = t.prototype), new n()); + }; + })(); + Object.defineProperty(RE, "__esModule", { value: !0 }); + var h3r = sr(), + f3r = Hc(); + function m3r(r, e) { + return ( + e === void 0 && (e = f3r.async), + function (t) { + return t.lift(new y3r(r, e)); + } + ); + } + RE.debounceTime = m3r; + var y3r = (function () { + function r(e, t) { + (this.dueTime = e), (this.scheduler = t); + } + return ( + (r.prototype.call = function (e, t) { + return t.subscribe(new g3r(e, this.dueTime, this.scheduler)); + }), + r + ); + })(), + g3r = (function (r) { + p3r(e, r); + function e(t, n, a) { + var i = r.call(this, t) || this; + return ( + (i.dueTime = n), + (i.scheduler = a), + (i.debouncedSubscription = null), + (i.lastValue = null), + (i.hasValue = !1), + i + ); + } + return ( + (e.prototype._next = function (t) { + this.clearDebounce(), + (this.lastValue = t), + (this.hasValue = !0), + this.add( + (this.debouncedSubscription = this.scheduler.schedule( + b3r, + this.dueTime, + this + )) + ); + }), + (e.prototype._complete = function () { + this.debouncedNext(), this.destination.complete(); + }), + (e.prototype.debouncedNext = function () { + if ((this.clearDebounce(), this.hasValue)) { + var t = this.lastValue; + (this.lastValue = null), + (this.hasValue = !1), + this.destination.next(t); + } + }), + (e.prototype.clearDebounce = function () { + var t = this.debouncedSubscription; + t !== null && + (this.remove(t), + t.unsubscribe(), + (this.debouncedSubscription = null)); + }), + e + ); + })(h3r.Subscriber); + function b3r(r) { + r.debouncedNext(); + } + }); + var E_ = N((BE) => { + "use strict"; + _(); + x(); + var v3r = + (BE && BE.__extends) || + (function () { + var r = function (e, t) { + return ( + (r = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (n, a) { + n.__proto__ = a; + }) || + function (n, a) { + for (var i in a) a.hasOwnProperty(i) && (n[i] = a[i]); + }), + r(e, t) + ); + }; + return function (e, t) { + r(e, t); + function n() { + this.constructor = e; + } + e.prototype = + t === null + ? Object.create(t) + : ((n.prototype = t.prototype), new n()); + }; + })(); + Object.defineProperty(BE, "__esModule", { value: !0 }); + var w3r = sr(); + function _3r(r) { + return ( + r === void 0 && (r = null), + function (e) { + return e.lift(new x3r(r)); + } + ); + } + BE.defaultIfEmpty = _3r; + var x3r = (function () { + function r(e) { + this.defaultValue = e; + } + return ( + (r.prototype.call = function (e, t) { + return t.subscribe(new T3r(e, this.defaultValue)); + }), + r + ); + })(), + T3r = (function (r) { + v3r(e, r); + function e(t, n) { + var a = r.call(this, t) || this; + return (a.defaultValue = n), (a.isEmpty = !0), a; + } + return ( + (e.prototype._next = function (t) { + (this.isEmpty = !1), this.destination.next(t); + }), + (e.prototype._complete = function () { + this.isEmpty && this.destination.next(this.defaultValue), + this.destination.complete(); + }), + e + ); + })(w3r.Subscriber); + }); + var gQ = N((yQ) => { + "use strict"; + _(); + x(); + Object.defineProperty(yQ, "__esModule", { value: !0 }); + function E3r(r) { + return r instanceof Date && !isNaN(+r); + } + yQ.isDate = E3r; + }); + var Fet = N((NE) => { + "use strict"; + _(); + x(); + var C3r = + (NE && NE.__extends) || + (function () { + var r = function (e, t) { + return ( + (r = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (n, a) { + n.__proto__ = a; + }) || + function (n, a) { + for (var i in a) a.hasOwnProperty(i) && (n[i] = a[i]); + }), + r(e, t) + ); + }; + return function (e, t) { + r(e, t); + function n() { + this.constructor = e; + } + e.prototype = + t === null + ? Object.create(t) + : ((n.prototype = t.prototype), new n()); + }; + })(); + Object.defineProperty(NE, "__esModule", { value: !0 }); + var I3r = Hc(), + A3r = gQ(), + k3r = sr(), + qet = rE(); + function S3r(r, e) { + e === void 0 && (e = I3r.async); + var t = A3r.isDate(r), + n = t ? +r - e.now() : Math.abs(r); + return function (a) { + return a.lift(new M3r(n, e)); + }; + } + NE.delay = S3r; + var M3r = (function () { + function r(e, t) { + (this.delay = e), (this.scheduler = t); + } + return ( + (r.prototype.call = function (e, t) { + return t.subscribe(new P3r(e, this.delay, this.scheduler)); + }), + r + ); + })(), + P3r = (function (r) { + C3r(e, r); + function e(t, n, a) { + var i = r.call(this, t) || this; + return ( + (i.delay = n), + (i.scheduler = a), + (i.queue = []), + (i.active = !1), + (i.errored = !1), + i + ); + } + return ( + (e.dispatch = function (t) { + for ( + var n = t.source, a = n.queue, i = t.scheduler, s = t.destination; + a.length > 0 && a[0].time - i.now() <= 0; + + ) + a.shift().notification.observe(s); + if (a.length > 0) { + var c = Math.max(0, a[0].time - i.now()); + this.schedule(t, c); + } else this.unsubscribe(), (n.active = !1); + }), + (e.prototype._schedule = function (t) { + this.active = !0; + var n = this.destination; + n.add( + t.schedule(e.dispatch, this.delay, { + source: this, + destination: this.destination, + scheduler: t, + }) + ); + }), + (e.prototype.scheduleNotification = function (t) { + if (this.errored !== !0) { + var n = this.scheduler, + a = new R3r(n.now() + this.delay, t); + this.queue.push(a), this.active === !1 && this._schedule(n); + } + }), + (e.prototype._next = function (t) { + this.scheduleNotification(qet.Notification.createNext(t)); + }), + (e.prototype._error = function (t) { + (this.errored = !0), + (this.queue = []), + this.destination.error(t), + this.unsubscribe(); + }), + (e.prototype._complete = function () { + this.scheduleNotification(qet.Notification.createComplete()), + this.unsubscribe(); + }), + e + ); + })(k3r.Subscriber), + R3r = (function () { + function r(e, t) { + (this.time = e), (this.notification = t); + } + return r; + })(); + }); + var Uet = N((OE) => { + "use strict"; + _(); + x(); + var bQ = + (OE && OE.__extends) || + (function () { + var r = function (e, t) { + return ( + (r = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (n, a) { + n.__proto__ = a; + }) || + function (n, a) { + for (var i in a) a.hasOwnProperty(i) && (n[i] = a[i]); + }), + r(e, t) + ); + }; + return function (e, t) { + r(e, t); + function n() { + this.constructor = e; + } + e.prototype = + t === null + ? Object.create(t) + : ((n.prototype = t.prototype), new n()); + }; + })(); + Object.defineProperty(OE, "__esModule", { value: !0 }); + var B3r = sr(), + N3r = _n(), + O3r = D0(), + L3r = q0(); + function D3r(r, e) { + return e + ? function (t) { + return new F3r(t, e).lift(new Wet(r)); + } + : function (t) { + return t.lift(new Wet(r)); + }; + } + OE.delayWhen = D3r; + var Wet = (function () { + function r(e) { + this.delayDurationSelector = e; + } + return ( + (r.prototype.call = function (e, t) { + return t.subscribe(new q3r(e, this.delayDurationSelector)); + }), + r + ); + })(), + q3r = (function (r) { + bQ(e, r); + function e(t, n) { + var a = r.call(this, t) || this; + return ( + (a.delayDurationSelector = n), + (a.completed = !1), + (a.delayNotifierSubscriptions = []), + (a.index = 0), + a + ); + } + return ( + (e.prototype.notifyNext = function (t, n, a, i, s) { + this.destination.next(t), + this.removeSubscription(s), + this.tryComplete(); + }), + (e.prototype.notifyError = function (t, n) { + this._error(t); + }), + (e.prototype.notifyComplete = function (t) { + var n = this.removeSubscription(t); + n && this.destination.next(n), this.tryComplete(); + }), + (e.prototype._next = function (t) { + var n = this.index++; + try { + var a = this.delayDurationSelector(t, n); + a && this.tryDelay(a, t); + } catch (i) { + this.destination.error(i); + } + }), + (e.prototype._complete = function () { + (this.completed = !0), this.tryComplete(), this.unsubscribe(); + }), + (e.prototype.removeSubscription = function (t) { + t.unsubscribe(); + var n = this.delayNotifierSubscriptions.indexOf(t); + return ( + n !== -1 && this.delayNotifierSubscriptions.splice(n, 1), + t.outerValue + ); + }), + (e.prototype.tryDelay = function (t, n) { + var a = L3r.subscribeToResult(this, t, n); + if (a && !a.closed) { + var i = this.destination; + i.add(a), this.delayNotifierSubscriptions.push(a); + } + }), + (e.prototype.tryComplete = function () { + this.completed && + this.delayNotifierSubscriptions.length === 0 && + this.destination.complete(); + }), + e + ); + })(O3r.OuterSubscriber), + F3r = (function (r) { + bQ(e, r); + function e(t, n) { + var a = r.call(this) || this; + return (a.source = t), (a.subscriptionDelay = n), a; + } + return ( + (e.prototype._subscribe = function (t) { + this.subscriptionDelay.subscribe(new W3r(t, this.source)); + }), + e + ); + })(N3r.Observable), + W3r = (function (r) { + bQ(e, r); + function e(t, n) { + var a = r.call(this) || this; + return (a.parent = t), (a.source = n), (a.sourceSubscribed = !1), a; + } + return ( + (e.prototype._next = function (t) { + this.subscribeToSource(); + }), + (e.prototype._error = function (t) { + this.unsubscribe(), this.parent.error(t); + }), + (e.prototype._complete = function () { + this.unsubscribe(), this.subscribeToSource(); + }), + (e.prototype.subscribeToSource = function () { + this.sourceSubscribed || + ((this.sourceSubscribed = !0), + this.unsubscribe(), + this.source.subscribe(this.parent)); + }), + e + ); + })(B3r.Subscriber); + }); + var Het = N((LE) => { + "use strict"; + _(); + x(); + var U3r = + (LE && LE.__extends) || + (function () { + var r = function (e, t) { + return ( + (r = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (n, a) { + n.__proto__ = a; + }) || + function (n, a) { + for (var i in a) a.hasOwnProperty(i) && (n[i] = a[i]); + }), + r(e, t) + ); + }; + return function (e, t) { + r(e, t); + function n() { + this.constructor = e; + } + e.prototype = + t === null + ? Object.create(t) + : ((n.prototype = t.prototype), new n()); + }; + })(); + Object.defineProperty(LE, "__esModule", { value: !0 }); + var H3r = sr(); + function z3r() { + return function (e) { + return e.lift(new j3r()); + }; + } + LE.dematerialize = z3r; + var j3r = (function () { + function r() {} + return ( + (r.prototype.call = function (e, t) { + return t.subscribe(new K3r(e)); + }), + r + ); + })(), + K3r = (function (r) { + U3r(e, r); + function e(t) { + return r.call(this, t) || this; + } + return ( + (e.prototype._next = function (t) { + t.observe(this.destination); + }), + e + ); + })(H3r.Subscriber); + }); + var jet = N((C_) => { + "use strict"; + _(); + x(); + var V3r = + (C_ && C_.__extends) || + (function () { + var r = function (e, t) { + return ( + (r = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (n, a) { + n.__proto__ = a; + }) || + function (n, a) { + for (var i in a) a.hasOwnProperty(i) && (n[i] = a[i]); + }), + r(e, t) + ); + }; + return function (e, t) { + r(e, t); + function n() { + this.constructor = e; + } + e.prototype = + t === null + ? Object.create(t) + : ((n.prototype = t.prototype), new n()); + }; + })(); + Object.defineProperty(C_, "__esModule", { value: !0 }); + var vQ = Ci(); + function G3r(r, e) { + return function (t) { + return t.lift(new Y3r(r, e)); + }; + } + C_.distinct = G3r; + var Y3r = (function () { + function r(e, t) { + (this.keySelector = e), (this.flushes = t); + } + return ( + (r.prototype.call = function (e, t) { + return t.subscribe(new zet(e, this.keySelector, this.flushes)); + }), + r + ); + })(), + zet = (function (r) { + V3r(e, r); + function e(t, n, a) { + var i = r.call(this, t) || this; + return ( + (i.keySelector = n), + (i.values = new Set()), + a && i.add(vQ.innerSubscribe(a, new vQ.SimpleInnerSubscriber(i))), + i + ); + } + return ( + (e.prototype.notifyNext = function () { + this.values.clear(); + }), + (e.prototype.notifyError = function (t) { + this._error(t); + }), + (e.prototype._next = function (t) { + this.keySelector + ? this._useKeySelector(t) + : this._finalizeNext(t, t); + }), + (e.prototype._useKeySelector = function (t) { + var n, + a = this.destination; + try { + n = this.keySelector(t); + } catch (i) { + a.error(i); + return; + } + this._finalizeNext(n, t); + }), + (e.prototype._finalizeNext = function (t, n) { + var a = this.values; + a.has(t) || (a.add(t), this.destination.next(n)); + }), + e + ); + })(vQ.SimpleOuterSubscriber); + C_.DistinctSubscriber = zet; + }); + var wQ = N((DE) => { + "use strict"; + _(); + x(); + var $3r = + (DE && DE.__extends) || + (function () { + var r = function (e, t) { + return ( + (r = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (n, a) { + n.__proto__ = a; + }) || + function (n, a) { + for (var i in a) a.hasOwnProperty(i) && (n[i] = a[i]); + }), + r(e, t) + ); + }; + return function (e, t) { + r(e, t); + function n() { + this.constructor = e; + } + e.prototype = + t === null + ? Object.create(t) + : ((n.prototype = t.prototype), new n()); + }; + })(); + Object.defineProperty(DE, "__esModule", { value: !0 }); + var J3r = sr(); + function Z3r(r, e) { + return function (t) { + return t.lift(new Q3r(r, e)); + }; + } + DE.distinctUntilChanged = Z3r; + var Q3r = (function () { + function r(e, t) { + (this.compare = e), (this.keySelector = t); + } + return ( + (r.prototype.call = function (e, t) { + return t.subscribe(new X3r(e, this.compare, this.keySelector)); + }), + r + ); + })(), + X3r = (function (r) { + $3r(e, r); + function e(t, n, a) { + var i = r.call(this, t) || this; + return ( + (i.keySelector = a), + (i.hasKey = !1), + typeof n == "function" && (i.compare = n), + i + ); + } + return ( + (e.prototype.compare = function (t, n) { + return t === n; + }), + (e.prototype._next = function (t) { + var n; + try { + var a = this.keySelector; + n = a ? a(t) : t; + } catch (c) { + return this.destination.error(c); + } + var i = !1; + if (this.hasKey) + try { + var s = this.compare; + i = s(this.key, n); + } catch (c) { + return this.destination.error(c); + } + else this.hasKey = !0; + i || ((this.key = n), this.destination.next(t)); + }), + e + ); + })(J3r.Subscriber); + }); + var Ket = N((_Q) => { + "use strict"; + _(); + x(); + Object.defineProperty(_Q, "__esModule", { value: !0 }); + var e6r = wQ(); + function t6r(r, e) { + return e6r.distinctUntilChanged(function (t, n) { + return e ? e(t[r], n[r]) : t[r] === n[r]; + }); + } + _Q.distinctUntilKeyChanged = t6r; + }); + var FE = N((qE) => { + "use strict"; + _(); + x(); + var r6r = + (qE && qE.__extends) || + (function () { + var r = function (e, t) { + return ( + (r = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (n, a) { + n.__proto__ = a; + }) || + function (n, a) { + for (var i in a) a.hasOwnProperty(i) && (n[i] = a[i]); + }), + r(e, t) + ); + }; + return function (e, t) { + r(e, t); + function n() { + this.constructor = e; + } + e.prototype = + t === null + ? Object.create(t) + : ((n.prototype = t.prototype), new n()); + }; + })(); + Object.defineProperty(qE, "__esModule", { value: !0 }); + var n6r = u_(), + a6r = sr(); + function i6r(r) { + return ( + r === void 0 && (r = c6r), + function (e) { + return e.lift(new s6r(r)); + } + ); + } + qE.throwIfEmpty = i6r; + var s6r = (function () { + function r(e) { + this.errorFactory = e; + } + return ( + (r.prototype.call = function (e, t) { + return t.subscribe(new o6r(e, this.errorFactory)); + }), + r + ); + })(), + o6r = (function (r) { + r6r(e, r); + function e(t, n) { + var a = r.call(this, t) || this; + return (a.errorFactory = n), (a.hasValue = !1), a; + } + return ( + (e.prototype._next = function (t) { + (this.hasValue = !0), this.destination.next(t); + }), + (e.prototype._complete = function () { + if (this.hasValue) return this.destination.complete(); + var t = void 0; + try { + t = this.errorFactory(); + } catch (n) { + t = n; + } + this.destination.error(t); + }), + e + ); + })(a6r.Subscriber); + function c6r() { + return new n6r.EmptyError(); + } + }); + var qB = N((WE) => { + "use strict"; + _(); + x(); + var u6r = + (WE && WE.__extends) || + (function () { + var r = function (e, t) { + return ( + (r = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (n, a) { + n.__proto__ = a; + }) || + function (n, a) { + for (var i in a) a.hasOwnProperty(i) && (n[i] = a[i]); + }), + r(e, t) + ); + }; + return function (e, t) { + r(e, t); + function n() { + this.constructor = e; + } + e.prototype = + t === null + ? Object.create(t) + : ((n.prototype = t.prototype), new n()); + }; + })(); + Object.defineProperty(WE, "__esModule", { value: !0 }); + var l6r = sr(), + d6r = c_(), + p6r = lp(); + function h6r(r) { + return function (e) { + return r === 0 ? p6r.empty() : e.lift(new f6r(r)); + }; + } + WE.take = h6r; + var f6r = (function () { + function r(e) { + if (((this.total = e), this.total < 0)) + throw new d6r.ArgumentOutOfRangeError(); + } + return ( + (r.prototype.call = function (e, t) { + return t.subscribe(new m6r(e, this.total)); + }), + r + ); + })(), + m6r = (function (r) { + u6r(e, r); + function e(t, n) { + var a = r.call(this, t) || this; + return (a.total = n), (a.count = 0), a; + } + return ( + (e.prototype._next = function (t) { + var n = this.total, + a = ++this.count; + a <= n && + (this.destination.next(t), + a === n && (this.destination.complete(), this.unsubscribe())); + }), + e + ); + })(l6r.Subscriber); + }); + var Get = N((xQ) => { + "use strict"; + _(); + x(); + Object.defineProperty(xQ, "__esModule", { value: !0 }); + var Vet = c_(), + y6r = xb(), + g6r = FE(), + b6r = E_(), + v6r = qB(); + function w6r(r, e) { + if (r < 0) throw new Vet.ArgumentOutOfRangeError(); + var t = arguments.length >= 2; + return function (n) { + return n.pipe( + y6r.filter(function (a, i) { + return i === r; + }), + v6r.take(1), + t + ? b6r.defaultIfEmpty(e) + : g6r.throwIfEmpty(function () { + return new Vet.ArgumentOutOfRangeError(); + }) + ); + }; + } + xQ.elementAt = w6r; + }); + var Yet = N((TQ) => { + "use strict"; + _(); + x(); + Object.defineProperty(TQ, "__esModule", { value: !0 }); + var _6r = gE(), + x6r = eE(); + function T6r() { + for (var r = [], e = 0; e < arguments.length; e++) r[e] = arguments[e]; + return function (t) { + return _6r.concat(t, x6r.of.apply(void 0, r)); + }; + } + TQ.endWith = T6r; + }); + var $et = N((UE) => { + "use strict"; + _(); + x(); + var E6r = + (UE && UE.__extends) || + (function () { + var r = function (e, t) { + return ( + (r = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (n, a) { + n.__proto__ = a; + }) || + function (n, a) { + for (var i in a) a.hasOwnProperty(i) && (n[i] = a[i]); + }), + r(e, t) + ); + }; + return function (e, t) { + r(e, t); + function n() { + this.constructor = e; + } + e.prototype = + t === null + ? Object.create(t) + : ((n.prototype = t.prototype), new n()); + }; + })(); + Object.defineProperty(UE, "__esModule", { value: !0 }); + var C6r = sr(); + function I6r(r, e) { + return function (t) { + return t.lift(new A6r(r, e, t)); + }; + } + UE.every = I6r; + var A6r = (function () { + function r(e, t, n) { + (this.predicate = e), (this.thisArg = t), (this.source = n); + } + return ( + (r.prototype.call = function (e, t) { + return t.subscribe( + new k6r(e, this.predicate, this.thisArg, this.source) + ); + }), + r + ); + })(), + k6r = (function (r) { + E6r(e, r); + function e(t, n, a, i) { + var s = r.call(this, t) || this; + return ( + (s.predicate = n), + (s.thisArg = a), + (s.source = i), + (s.index = 0), + (s.thisArg = a || s), + s + ); + } + return ( + (e.prototype.notifyComplete = function (t) { + this.destination.next(t), this.destination.complete(); + }), + (e.prototype._next = function (t) { + var n = !1; + try { + n = this.predicate.call( + this.thisArg, + t, + this.index++, + this.source + ); + } catch (a) { + this.destination.error(a); + return; + } + n || this.notifyComplete(!1); + }), + (e.prototype._complete = function () { + this.notifyComplete(!0); + }), + e + ); + })(C6r.Subscriber); + }); + var Jet = N((HE) => { + "use strict"; + _(); + x(); + var S6r = + (HE && HE.__extends) || + (function () { + var r = function (e, t) { + return ( + (r = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (n, a) { + n.__proto__ = a; + }) || + function (n, a) { + for (var i in a) a.hasOwnProperty(i) && (n[i] = a[i]); + }), + r(e, t) + ); + }; + return function (e, t) { + r(e, t); + function n() { + this.constructor = e; + } + e.prototype = + t === null + ? Object.create(t) + : ((n.prototype = t.prototype), new n()); + }; + })(); + Object.defineProperty(HE, "__esModule", { value: !0 }); + var EQ = Ci(); + function M6r() { + return function (r) { + return r.lift(new P6r()); + }; + } + HE.exhaust = M6r; + var P6r = (function () { + function r() {} + return ( + (r.prototype.call = function (e, t) { + return t.subscribe(new R6r(e)); + }), + r + ); + })(), + R6r = (function (r) { + S6r(e, r); + function e(t) { + var n = r.call(this, t) || this; + return (n.hasCompleted = !1), (n.hasSubscription = !1), n; + } + return ( + (e.prototype._next = function (t) { + this.hasSubscription || + ((this.hasSubscription = !0), + this.add( + EQ.innerSubscribe(t, new EQ.SimpleInnerSubscriber(this)) + )); + }), + (e.prototype._complete = function () { + (this.hasCompleted = !0), + this.hasSubscription || this.destination.complete(); + }), + (e.prototype.notifyComplete = function () { + (this.hasSubscription = !1), + this.hasCompleted && this.destination.complete(); + }), + e + ); + })(EQ.SimpleOuterSubscriber); + }); + var Qet = N((zE) => { + "use strict"; + _(); + x(); + var B6r = + (zE && zE.__extends) || + (function () { + var r = function (e, t) { + return ( + (r = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (n, a) { + n.__proto__ = a; + }) || + function (n, a) { + for (var i in a) a.hasOwnProperty(i) && (n[i] = a[i]); + }), + r(e, t) + ); + }; + return function (e, t) { + r(e, t); + function n() { + this.constructor = e; + } + e.prototype = + t === null + ? Object.create(t) + : ((n.prototype = t.prototype), new n()); + }; + })(); + Object.defineProperty(zE, "__esModule", { value: !0 }); + var N6r = tl(), + O6r = pp(), + CQ = Ci(); + function Zet(r, e) { + return e + ? function (t) { + return t.pipe( + Zet(function (n, a) { + return O6r.from(r(n, a)).pipe( + N6r.map(function (i, s) { + return e(n, i, a, s); + }) + ); + }) + ); + } + : function (t) { + return t.lift(new L6r(r)); + }; + } + zE.exhaustMap = Zet; + var L6r = (function () { + function r(e) { + this.project = e; + } + return ( + (r.prototype.call = function (e, t) { + return t.subscribe(new D6r(e, this.project)); + }), + r + ); + })(), + D6r = (function (r) { + B6r(e, r); + function e(t, n) { + var a = r.call(this, t) || this; + return ( + (a.project = n), + (a.hasSubscription = !1), + (a.hasCompleted = !1), + (a.index = 0), + a + ); + } + return ( + (e.prototype._next = function (t) { + this.hasSubscription || this.tryNext(t); + }), + (e.prototype.tryNext = function (t) { + var n, + a = this.index++; + try { + n = this.project(t, a); + } catch (i) { + this.destination.error(i); + return; + } + (this.hasSubscription = !0), this._innerSub(n); + }), + (e.prototype._innerSub = function (t) { + var n = new CQ.SimpleInnerSubscriber(this), + a = this.destination; + a.add(n); + var i = CQ.innerSubscribe(t, n); + i !== n && a.add(i); + }), + (e.prototype._complete = function () { + (this.hasCompleted = !0), + this.hasSubscription || this.destination.complete(), + this.unsubscribe(); + }), + (e.prototype.notifyNext = function (t) { + this.destination.next(t); + }), + (e.prototype.notifyError = function (t) { + this.destination.error(t); + }), + (e.prototype.notifyComplete = function () { + (this.hasSubscription = !1), + this.hasCompleted && this.destination.complete(); + }), + e + ); + })(CQ.SimpleOuterSubscriber); + }); + var ttt = N((kb) => { + "use strict"; + _(); + x(); + var q6r = + (kb && kb.__extends) || + (function () { + var r = function (e, t) { + return ( + (r = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (n, a) { + n.__proto__ = a; + }) || + function (n, a) { + for (var i in a) a.hasOwnProperty(i) && (n[i] = a[i]); + }), + r(e, t) + ); + }; + return function (e, t) { + r(e, t); + function n() { + this.constructor = e; + } + e.prototype = + t === null + ? Object.create(t) + : ((n.prototype = t.prototype), new n()); + }; + })(); + Object.defineProperty(kb, "__esModule", { value: !0 }); + var IQ = Ci(); + function F6r(r, e, t) { + return ( + e === void 0 && (e = Number.POSITIVE_INFINITY), + (e = (e || 0) < 1 ? Number.POSITIVE_INFINITY : e), + function (n) { + return n.lift(new Xet(r, e, t)); + } + ); + } + kb.expand = F6r; + var Xet = (function () { + function r(e, t, n) { + (this.project = e), (this.concurrent = t), (this.scheduler = n); + } + return ( + (r.prototype.call = function (e, t) { + return t.subscribe( + new ett(e, this.project, this.concurrent, this.scheduler) + ); + }), + r + ); + })(); + kb.ExpandOperator = Xet; + var ett = (function (r) { + q6r(e, r); + function e(t, n, a, i) { + var s = r.call(this, t) || this; + return ( + (s.project = n), + (s.concurrent = a), + (s.scheduler = i), + (s.index = 0), + (s.active = 0), + (s.hasCompleted = !1), + a < Number.POSITIVE_INFINITY && (s.buffer = []), + s + ); + } + return ( + (e.dispatch = function (t) { + var n = t.subscriber, + a = t.result, + i = t.value, + s = t.index; + n.subscribeToProjection(a, i, s); + }), + (e.prototype._next = function (t) { + var n = this.destination; + if (n.closed) { + this._complete(); + return; + } + var a = this.index++; + if (this.active < this.concurrent) { + n.next(t); + try { + var i = this.project, + s = i(t, a); + if (!this.scheduler) this.subscribeToProjection(s, t, a); + else { + var c = { subscriber: this, result: s, value: t, index: a }, + l = this.destination; + l.add(this.scheduler.schedule(e.dispatch, 0, c)); + } + } catch (d) { + n.error(d); + } + } else this.buffer.push(t); + }), + (e.prototype.subscribeToProjection = function (t, n, a) { + this.active++; + var i = this.destination; + i.add(IQ.innerSubscribe(t, new IQ.SimpleInnerSubscriber(this))); + }), + (e.prototype._complete = function () { + (this.hasCompleted = !0), + this.hasCompleted && + this.active === 0 && + this.destination.complete(), + this.unsubscribe(); + }), + (e.prototype.notifyNext = function (t) { + this._next(t); + }), + (e.prototype.notifyComplete = function () { + var t = this.buffer; + this.active--, + t && t.length > 0 && this._next(t.shift()), + this.hasCompleted && + this.active === 0 && + this.destination.complete(); + }), + e + ); + })(IQ.SimpleOuterSubscriber); + kb.ExpandSubscriber = ett; + }); + var rtt = N((jE) => { + "use strict"; + _(); + x(); + var W6r = + (jE && jE.__extends) || + (function () { + var r = function (e, t) { + return ( + (r = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (n, a) { + n.__proto__ = a; + }) || + function (n, a) { + for (var i in a) a.hasOwnProperty(i) && (n[i] = a[i]); + }), + r(e, t) + ); + }; + return function (e, t) { + r(e, t); + function n() { + this.constructor = e; + } + e.prototype = + t === null + ? Object.create(t) + : ((n.prototype = t.prototype), new n()); + }; + })(); + Object.defineProperty(jE, "__esModule", { value: !0 }); + var U6r = sr(), + H6r = ws(); + function z6r(r) { + return function (e) { + return e.lift(new j6r(r)); + }; + } + jE.finalize = z6r; + var j6r = (function () { + function r(e) { + this.callback = e; + } + return ( + (r.prototype.call = function (e, t) { + return t.subscribe(new K6r(e, this.callback)); + }), + r + ); + })(), + K6r = (function (r) { + W6r(e, r); + function e(t, n) { + var a = r.call(this, t) || this; + return a.add(new H6r.Subscription(n)), a; + } + return e; + })(U6r.Subscriber); + }); + var AQ = N((Sb) => { + "use strict"; + _(); + x(); + var V6r = + (Sb && Sb.__extends) || + (function () { + var r = function (e, t) { + return ( + (r = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (n, a) { + n.__proto__ = a; + }) || + function (n, a) { + for (var i in a) a.hasOwnProperty(i) && (n[i] = a[i]); + }), + r(e, t) + ); + }; + return function (e, t) { + r(e, t); + function n() { + this.constructor = e; + } + e.prototype = + t === null + ? Object.create(t) + : ((n.prototype = t.prototype), new n()); + }; + })(); + Object.defineProperty(Sb, "__esModule", { value: !0 }); + var G6r = sr(); + function Y6r(r, e) { + if (typeof r != "function") + throw new TypeError("predicate is not a function"); + return function (t) { + return t.lift(new ntt(r, t, !1, e)); + }; + } + Sb.find = Y6r; + var ntt = (function () { + function r(e, t, n, a) { + (this.predicate = e), + (this.source = t), + (this.yieldIndex = n), + (this.thisArg = a); + } + return ( + (r.prototype.call = function (e, t) { + return t.subscribe( + new att( + e, + this.predicate, + this.source, + this.yieldIndex, + this.thisArg + ) + ); + }), + r + ); + })(); + Sb.FindValueOperator = ntt; + var att = (function (r) { + V6r(e, r); + function e(t, n, a, i, s) { + var c = r.call(this, t) || this; + return ( + (c.predicate = n), + (c.source = a), + (c.yieldIndex = i), + (c.thisArg = s), + (c.index = 0), + c + ); + } + return ( + (e.prototype.notifyComplete = function (t) { + var n = this.destination; + n.next(t), n.complete(), this.unsubscribe(); + }), + (e.prototype._next = function (t) { + var n = this, + a = n.predicate, + i = n.thisArg, + s = this.index++; + try { + var c = a.call(i || this, t, s, this.source); + c && this.notifyComplete(this.yieldIndex ? s : t); + } catch (l) { + this.destination.error(l); + } + }), + (e.prototype._complete = function () { + this.notifyComplete(this.yieldIndex ? -1 : void 0); + }), + e + ); + })(G6r.Subscriber); + Sb.FindValueSubscriber = att; + }); + var itt = N((kQ) => { + "use strict"; + _(); + x(); + Object.defineProperty(kQ, "__esModule", { value: !0 }); + var $6r = AQ(); + function J6r(r, e) { + return function (t) { + return t.lift(new $6r.FindValueOperator(r, t, !0, e)); + }; + } + kQ.findIndex = J6r; + }); + var stt = N((SQ) => { + "use strict"; + _(); + x(); + Object.defineProperty(SQ, "__esModule", { value: !0 }); + var Z6r = u_(), + Q6r = xb(), + X6r = qB(), + eEr = E_(), + tEr = FE(), + rEr = O0(); + function nEr(r, e) { + var t = arguments.length >= 2; + return function (n) { + return n.pipe( + r + ? Q6r.filter(function (a, i) { + return r(a, i, n); + }) + : rEr.identity, + X6r.take(1), + t + ? eEr.defaultIfEmpty(e) + : tEr.throwIfEmpty(function () { + return new Z6r.EmptyError(); + }) + ); + }; + } + SQ.first = nEr; + }); + var ott = N((KE) => { + "use strict"; + _(); + x(); + var aEr = + (KE && KE.__extends) || + (function () { + var r = function (e, t) { + return ( + (r = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (n, a) { + n.__proto__ = a; + }) || + function (n, a) { + for (var i in a) a.hasOwnProperty(i) && (n[i] = a[i]); + }), + r(e, t) + ); + }; + return function (e, t) { + r(e, t); + function n() { + this.constructor = e; + } + e.prototype = + t === null + ? Object.create(t) + : ((n.prototype = t.prototype), new n()); + }; + })(); + Object.defineProperty(KE, "__esModule", { value: !0 }); + var iEr = sr(); + function sEr() { + return function (e) { + return e.lift(new oEr()); + }; + } + KE.ignoreElements = sEr; + var oEr = (function () { + function r() {} + return ( + (r.prototype.call = function (e, t) { + return t.subscribe(new cEr(e)); + }), + r + ); + })(), + cEr = (function (r) { + aEr(e, r); + function e() { + return (r !== null && r.apply(this, arguments)) || this; + } + return (e.prototype._next = function (t) {}), e; + })(iEr.Subscriber); + }); + var ctt = N((VE) => { + "use strict"; + _(); + x(); + var uEr = + (VE && VE.__extends) || + (function () { + var r = function (e, t) { + return ( + (r = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (n, a) { + n.__proto__ = a; + }) || + function (n, a) { + for (var i in a) a.hasOwnProperty(i) && (n[i] = a[i]); + }), + r(e, t) + ); + }; + return function (e, t) { + r(e, t); + function n() { + this.constructor = e; + } + e.prototype = + t === null + ? Object.create(t) + : ((n.prototype = t.prototype), new n()); + }; + })(); + Object.defineProperty(VE, "__esModule", { value: !0 }); + var lEr = sr(); + function dEr() { + return function (r) { + return r.lift(new pEr()); + }; + } + VE.isEmpty = dEr; + var pEr = (function () { + function r() {} + return ( + (r.prototype.call = function (e, t) { + return t.subscribe(new hEr(e)); + }), + r + ); + })(), + hEr = (function (r) { + uEr(e, r); + function e(t) { + return r.call(this, t) || this; + } + return ( + (e.prototype.notifyComplete = function (t) { + var n = this.destination; + n.next(t), n.complete(); + }), + (e.prototype._next = function (t) { + this.notifyComplete(!1); + }), + (e.prototype._complete = function () { + this.notifyComplete(!0); + }), + e + ); + })(lEr.Subscriber); + }); + var FB = N((GE) => { + "use strict"; + _(); + x(); + var fEr = + (GE && GE.__extends) || + (function () { + var r = function (e, t) { + return ( + (r = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (n, a) { + n.__proto__ = a; + }) || + function (n, a) { + for (var i in a) a.hasOwnProperty(i) && (n[i] = a[i]); + }), + r(e, t) + ); + }; + return function (e, t) { + r(e, t); + function n() { + this.constructor = e; + } + e.prototype = + t === null + ? Object.create(t) + : ((n.prototype = t.prototype), new n()); + }; + })(); + Object.defineProperty(GE, "__esModule", { value: !0 }); + var mEr = sr(), + yEr = c_(), + gEr = lp(); + function bEr(r) { + return function (t) { + return r === 0 ? gEr.empty() : t.lift(new vEr(r)); + }; + } + GE.takeLast = bEr; + var vEr = (function () { + function r(e) { + if (((this.total = e), this.total < 0)) + throw new yEr.ArgumentOutOfRangeError(); + } + return ( + (r.prototype.call = function (e, t) { + return t.subscribe(new wEr(e, this.total)); + }), + r + ); + })(), + wEr = (function (r) { + fEr(e, r); + function e(t, n) { + var a = r.call(this, t) || this; + return (a.total = n), (a.ring = new Array()), (a.count = 0), a; + } + return ( + (e.prototype._next = function (t) { + var n = this.ring, + a = this.total, + i = this.count++; + if (n.length < a) n.push(t); + else { + var s = i % a; + n[s] = t; + } + }), + (e.prototype._complete = function () { + var t = this.destination, + n = this.count; + if (n > 0) + for ( + var a = this.count >= this.total ? this.total : this.count, + i = this.ring, + s = 0; + s < a; + s++ + ) { + var c = n++ % a; + t.next(i[c]); + } + t.complete(); + }), + e + ); + })(mEr.Subscriber); + }); + var utt = N((MQ) => { + "use strict"; + _(); + x(); + Object.defineProperty(MQ, "__esModule", { value: !0 }); + var _Er = u_(), + xEr = xb(), + TEr = FB(), + EEr = FE(), + CEr = E_(), + IEr = O0(); + function AEr(r, e) { + var t = arguments.length >= 2; + return function (n) { + return n.pipe( + r + ? xEr.filter(function (a, i) { + return r(a, i, n); + }) + : IEr.identity, + TEr.takeLast(1), + t + ? CEr.defaultIfEmpty(e) + : EEr.throwIfEmpty(function () { + return new _Er.EmptyError(); + }) + ); + }; + } + MQ.last = AEr; + }); + var ltt = N((YE) => { + "use strict"; + _(); + x(); + var kEr = + (YE && YE.__extends) || + (function () { + var r = function (e, t) { + return ( + (r = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (n, a) { + n.__proto__ = a; + }) || + function (n, a) { + for (var i in a) a.hasOwnProperty(i) && (n[i] = a[i]); + }), + r(e, t) + ); + }; + return function (e, t) { + r(e, t); + function n() { + this.constructor = e; + } + e.prototype = + t === null + ? Object.create(t) + : ((n.prototype = t.prototype), new n()); + }; + })(); + Object.defineProperty(YE, "__esModule", { value: !0 }); + var SEr = sr(); + function MEr(r) { + return function (e) { + return e.lift(new PEr(r)); + }; + } + YE.mapTo = MEr; + var PEr = (function () { + function r(e) { + this.value = e; + } + return ( + (r.prototype.call = function (e, t) { + return t.subscribe(new REr(e, this.value)); + }), + r + ); + })(), + REr = (function (r) { + kEr(e, r); + function e(t, n) { + var a = r.call(this, t) || this; + return (a.value = n), a; + } + return ( + (e.prototype._next = function (t) { + this.destination.next(this.value); + }), + e + ); + })(SEr.Subscriber); + }); + var dtt = N(($E) => { + "use strict"; + _(); + x(); + var BEr = + ($E && $E.__extends) || + (function () { + var r = function (e, t) { + return ( + (r = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (n, a) { + n.__proto__ = a; + }) || + function (n, a) { + for (var i in a) a.hasOwnProperty(i) && (n[i] = a[i]); + }), + r(e, t) + ); + }; + return function (e, t) { + r(e, t); + function n() { + this.constructor = e; + } + e.prototype = + t === null + ? Object.create(t) + : ((n.prototype = t.prototype), new n()); + }; + })(); + Object.defineProperty($E, "__esModule", { value: !0 }); + var NEr = sr(), + PQ = rE(); + function OEr() { + return function (e) { + return e.lift(new LEr()); + }; + } + $E.materialize = OEr; + var LEr = (function () { + function r() {} + return ( + (r.prototype.call = function (e, t) { + return t.subscribe(new DEr(e)); + }), + r + ); + })(), + DEr = (function (r) { + BEr(e, r); + function e(t) { + return r.call(this, t) || this; + } + return ( + (e.prototype._next = function (t) { + this.destination.next(PQ.Notification.createNext(t)); + }), + (e.prototype._error = function (t) { + var n = this.destination; + n.next(PQ.Notification.createError(t)), n.complete(); + }), + (e.prototype._complete = function () { + var t = this.destination; + t.next(PQ.Notification.createComplete()), t.complete(); + }), + e + ); + })(NEr.Subscriber); + }); + var WB = N((JE) => { + "use strict"; + _(); + x(); + var qEr = + (JE && JE.__extends) || + (function () { + var r = function (e, t) { + return ( + (r = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (n, a) { + n.__proto__ = a; + }) || + function (n, a) { + for (var i in a) a.hasOwnProperty(i) && (n[i] = a[i]); + }), + r(e, t) + ); + }; + return function (e, t) { + r(e, t); + function n() { + this.constructor = e; + } + e.prototype = + t === null + ? Object.create(t) + : ((n.prototype = t.prototype), new n()); + }; + })(); + Object.defineProperty(JE, "__esModule", { value: !0 }); + var FEr = sr(); + function WEr(r, e) { + var t = !1; + return ( + arguments.length >= 2 && (t = !0), + function (a) { + return a.lift(new UEr(r, e, t)); + } + ); + } + JE.scan = WEr; + var UEr = (function () { + function r(e, t, n) { + n === void 0 && (n = !1), + (this.accumulator = e), + (this.seed = t), + (this.hasSeed = n); + } + return ( + (r.prototype.call = function (e, t) { + return t.subscribe( + new HEr(e, this.accumulator, this.seed, this.hasSeed) + ); + }), + r + ); + })(), + HEr = (function (r) { + qEr(e, r); + function e(t, n, a, i) { + var s = r.call(this, t) || this; + return ( + (s.accumulator = n), + (s._seed = a), + (s.hasSeed = i), + (s.index = 0), + s + ); + } + return ( + Object.defineProperty(e.prototype, "seed", { + get: function () { + return this._seed; + }, + set: function (t) { + (this.hasSeed = !0), (this._seed = t); + }, + enumerable: !0, + configurable: !0, + }), + (e.prototype._next = function (t) { + if (!this.hasSeed) (this.seed = t), this.destination.next(t); + else return this._tryNext(t); + }), + (e.prototype._tryNext = function (t) { + var n = this.index++, + a; + try { + a = this.accumulator(this.seed, t, n); + } catch (i) { + this.destination.error(i); + } + (this.seed = a), this.destination.next(a); + }), + e + ); + })(FEr.Subscriber); + }); + var ZE = N((RQ) => { + "use strict"; + _(); + x(); + Object.defineProperty(RQ, "__esModule", { value: !0 }); + var ptt = WB(), + htt = FB(), + zEr = E_(), + ftt = aB(); + function jEr(r, e) { + return arguments.length >= 2 + ? function (n) { + return ftt.pipe( + ptt.scan(r, e), + htt.takeLast(1), + zEr.defaultIfEmpty(e) + )(n); + } + : function (n) { + return ftt.pipe( + ptt.scan(function (a, i, s) { + return r(a, i, s + 1); + }), + htt.takeLast(1) + )(n); + }; + } + RQ.reduce = jEr; + }); + var mtt = N((BQ) => { + "use strict"; + _(); + x(); + Object.defineProperty(BQ, "__esModule", { value: !0 }); + var KEr = ZE(); + function VEr(r) { + var e = + typeof r == "function" + ? function (t, n) { + return r(t, n) > 0 ? t : n; + } + : function (t, n) { + return t > n ? t : n; + }; + return KEr.reduce(e); + } + BQ.max = VEr; + }); + var ytt = N((NQ) => { + "use strict"; + _(); + x(); + Object.defineProperty(NQ, "__esModule", { value: !0 }); + var GEr = vZ(); + function YEr() { + for (var r = [], e = 0; e < arguments.length; e++) r[e] = arguments[e]; + return function (t) { + return t.lift.call(GEr.merge.apply(void 0, [t].concat(r))); + }; + } + NQ.merge = YEr; + }); + var btt = N((OQ) => { + "use strict"; + _(); + x(); + Object.defineProperty(OQ, "__esModule", { value: !0 }); + var gtt = yE(); + function $Er(r, e, t) { + return ( + t === void 0 && (t = Number.POSITIVE_INFINITY), + typeof e == "function" + ? gtt.mergeMap( + function () { + return r; + }, + e, + t + ) + : (typeof e == "number" && (t = e), + gtt.mergeMap(function () { + return r; + }, t)) + ); + } + OQ.mergeMapTo = $Er; + }); + var _tt = N((Mb) => { + "use strict"; + _(); + x(); + var JEr = + (Mb && Mb.__extends) || + (function () { + var r = function (e, t) { + return ( + (r = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (n, a) { + n.__proto__ = a; + }) || + function (n, a) { + for (var i in a) a.hasOwnProperty(i) && (n[i] = a[i]); + }), + r(e, t) + ); + }; + return function (e, t) { + r(e, t); + function n() { + this.constructor = e; + } + e.prototype = + t === null + ? Object.create(t) + : ((n.prototype = t.prototype), new n()); + }; + })(); + Object.defineProperty(Mb, "__esModule", { value: !0 }); + var LQ = Ci(); + function ZEr(r, e, t) { + return ( + t === void 0 && (t = Number.POSITIVE_INFINITY), + function (n) { + return n.lift(new vtt(r, e, t)); + } + ); + } + Mb.mergeScan = ZEr; + var vtt = (function () { + function r(e, t, n) { + (this.accumulator = e), (this.seed = t), (this.concurrent = n); + } + return ( + (r.prototype.call = function (e, t) { + return t.subscribe( + new wtt(e, this.accumulator, this.seed, this.concurrent) + ); + }), + r + ); + })(); + Mb.MergeScanOperator = vtt; + var wtt = (function (r) { + JEr(e, r); + function e(t, n, a, i) { + var s = r.call(this, t) || this; + return ( + (s.accumulator = n), + (s.acc = a), + (s.concurrent = i), + (s.hasValue = !1), + (s.hasCompleted = !1), + (s.buffer = []), + (s.active = 0), + (s.index = 0), + s + ); + } + return ( + (e.prototype._next = function (t) { + if (this.active < this.concurrent) { + var n = this.index++, + a = this.destination, + i = void 0; + try { + var s = this.accumulator; + i = s(this.acc, t, n); + } catch (c) { + return a.error(c); + } + this.active++, this._innerSub(i); + } else this.buffer.push(t); + }), + (e.prototype._innerSub = function (t) { + var n = new LQ.SimpleInnerSubscriber(this), + a = this.destination; + a.add(n); + var i = LQ.innerSubscribe(t, n); + i !== n && a.add(i); + }), + (e.prototype._complete = function () { + (this.hasCompleted = !0), + this.active === 0 && + this.buffer.length === 0 && + (this.hasValue === !1 && this.destination.next(this.acc), + this.destination.complete()), + this.unsubscribe(); + }), + (e.prototype.notifyNext = function (t) { + var n = this.destination; + (this.acc = t), (this.hasValue = !0), n.next(t); + }), + (e.prototype.notifyComplete = function () { + var t = this.buffer; + this.active--, + t.length > 0 + ? this._next(t.shift()) + : this.active === 0 && + this.hasCompleted && + (this.hasValue === !1 && this.destination.next(this.acc), + this.destination.complete()); + }), + e + ); + })(LQ.SimpleOuterSubscriber); + Mb.MergeScanSubscriber = wtt; + }); + var xtt = N((DQ) => { + "use strict"; + _(); + x(); + Object.defineProperty(DQ, "__esModule", { value: !0 }); + var QEr = ZE(); + function XEr(r) { + var e = + typeof r == "function" + ? function (t, n) { + return r(t, n) < 0 ? t : n; + } + : function (t, n) { + return t < n ? t : n; + }; + return QEr.reduce(e); + } + DQ.min = XEr; + }); + var Pb = N((UB) => { + "use strict"; + _(); + x(); + Object.defineProperty(UB, "__esModule", { value: !0 }); + var eCr = yJ(); + function tCr(r, e) { + return function (n) { + var a; + if ( + (typeof r == "function" + ? (a = r) + : (a = function () { + return r; + }), + typeof e == "function") + ) + return n.lift(new Ttt(a, e)); + var i = Object.create(n, eCr.connectableObservableDescriptor); + return (i.source = n), (i.subjectFactory = a), i; + }; + } + UB.multicast = tCr; + var Ttt = (function () { + function r(e, t) { + (this.subjectFactory = e), (this.selector = t); + } + return ( + (r.prototype.call = function (e, t) { + var n = this.selector, + a = this.subjectFactory(), + i = n(a).subscribe(e); + return i.add(t.subscribe(a)), i; + }), + r + ); + })(); + UB.MulticastOperator = Ttt; + }); + var Itt = N((I_) => { + "use strict"; + _(); + x(); + var rCr = + (I_ && I_.__extends) || + (function () { + var r = function (e, t) { + return ( + (r = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (n, a) { + n.__proto__ = a; + }) || + function (n, a) { + for (var i in a) a.hasOwnProperty(i) && (n[i] = a[i]); + }), + r(e, t) + ); + }; + return function (e, t) { + r(e, t); + function n() { + this.constructor = e; + } + e.prototype = + t === null + ? Object.create(t) + : ((n.prototype = t.prototype), new n()); + }; + })(); + Object.defineProperty(I_, "__esModule", { value: !0 }); + var nCr = pp(), + Ett = Uc(), + qQ = Ci(); + function aCr() { + for (var r = [], e = 0; e < arguments.length; e++) r[e] = arguments[e]; + return ( + r.length === 1 && Ett.isArray(r[0]) && (r = r[0]), + function (t) { + return t.lift(new Ctt(r)); + } + ); + } + I_.onErrorResumeNext = aCr; + function iCr() { + for (var r = [], e = 0; e < arguments.length; e++) r[e] = arguments[e]; + var t = void 0; + return ( + r.length === 1 && Ett.isArray(r[0]) && (r = r[0]), + (t = r.shift()), + nCr.from(t).lift(new Ctt(r)) + ); + } + I_.onErrorResumeNextStatic = iCr; + var Ctt = (function () { + function r(e) { + this.nextSources = e; + } + return ( + (r.prototype.call = function (e, t) { + return t.subscribe(new sCr(e, this.nextSources)); + }), + r + ); + })(), + sCr = (function (r) { + rCr(e, r); + function e(t, n) { + var a = r.call(this, t) || this; + return (a.destination = t), (a.nextSources = n), a; + } + return ( + (e.prototype.notifyError = function () { + this.subscribeToNextSource(); + }), + (e.prototype.notifyComplete = function () { + this.subscribeToNextSource(); + }), + (e.prototype._error = function (t) { + this.subscribeToNextSource(), this.unsubscribe(); + }), + (e.prototype._complete = function () { + this.subscribeToNextSource(), this.unsubscribe(); + }), + (e.prototype.subscribeToNextSource = function () { + var t = this.nextSources.shift(); + if (t) { + var n = new qQ.SimpleInnerSubscriber(this), + a = this.destination; + a.add(n); + var i = qQ.innerSubscribe(t, n); + i !== n && a.add(i); + } else this.destination.complete(); + }), + e + ); + })(qQ.SimpleOuterSubscriber); + }); + var Att = N((QE) => { + "use strict"; + _(); + x(); + var oCr = + (QE && QE.__extends) || + (function () { + var r = function (e, t) { + return ( + (r = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (n, a) { + n.__proto__ = a; + }) || + function (n, a) { + for (var i in a) a.hasOwnProperty(i) && (n[i] = a[i]); + }), + r(e, t) + ); + }; + return function (e, t) { + r(e, t); + function n() { + this.constructor = e; + } + e.prototype = + t === null + ? Object.create(t) + : ((n.prototype = t.prototype), new n()); + }; + })(); + Object.defineProperty(QE, "__esModule", { value: !0 }); + var cCr = sr(); + function uCr() { + return function (r) { + return r.lift(new lCr()); + }; + } + QE.pairwise = uCr; + var lCr = (function () { + function r() {} + return ( + (r.prototype.call = function (e, t) { + return t.subscribe(new dCr(e)); + }), + r + ); + })(), + dCr = (function (r) { + oCr(e, r); + function e(t) { + var n = r.call(this, t) || this; + return (n.hasPrev = !1), n; + } + return ( + (e.prototype._next = function (t) { + var n; + this.hasPrev ? (n = [this.prev, t]) : (this.hasPrev = !0), + (this.prev = t), + n && this.destination.next(n); + }), + e + ); + })(cCr.Subscriber); + }); + var Stt = N((FQ) => { + "use strict"; + _(); + x(); + Object.defineProperty(FQ, "__esModule", { value: !0 }); + var pCr = EZ(), + ktt = xb(); + function hCr(r, e) { + return function (t) { + return [ktt.filter(r, e)(t), ktt.filter(pCr.not(r, e))(t)]; + }; + } + FQ.partition = hCr; + }); + var Mtt = N((WQ) => { + "use strict"; + _(); + x(); + Object.defineProperty(WQ, "__esModule", { value: !0 }); + var fCr = tl(); + function mCr() { + for (var r = [], e = 0; e < arguments.length; e++) r[e] = arguments[e]; + var t = r.length; + if (t === 0) throw new Error("list of properties cannot be empty."); + return function (n) { + return fCr.map(yCr(r, t))(n); + }; + } + WQ.pluck = mCr; + function yCr(r, e) { + var t = function (n) { + for (var a = n, i = 0; i < e; i++) { + var s = a?.[r[i]]; + if (s !== void 0) a = s; + else return; + } + return a; + }; + return t; + } + }); + var Btt = N((UQ) => { + "use strict"; + _(); + x(); + Object.defineProperty(UQ, "__esModule", { value: !0 }); + var Ptt = yc(), + Rtt = Pb(); + function gCr(r) { + return r + ? Rtt.multicast(function () { + return new Ptt.Subject(); + }, r) + : Rtt.multicast(new Ptt.Subject()); + } + UQ.publish = gCr; + }); + var Ntt = N((HQ) => { + "use strict"; + _(); + x(); + Object.defineProperty(HQ, "__esModule", { value: !0 }); + var bCr = vJ(), + vCr = Pb(); + function wCr(r) { + return function (e) { + return vCr.multicast(new bCr.BehaviorSubject(r))(e); + }; + } + HQ.publishBehavior = wCr; + }); + var Ott = N((zQ) => { + "use strict"; + _(); + x(); + Object.defineProperty(zQ, "__esModule", { value: !0 }); + var _Cr = iE(), + xCr = Pb(); + function TCr() { + return function (r) { + return xCr.multicast(new _Cr.AsyncSubject())(r); + }; + } + zQ.publishLast = TCr; + }); + var Ltt = N((jQ) => { + "use strict"; + _(); + x(); + Object.defineProperty(jQ, "__esModule", { value: !0 }); + var ECr = lB(), + CCr = Pb(); + function ICr(r, e, t, n) { + t && typeof t != "function" && (n = t); + var a = typeof t == "function" ? t : void 0, + i = new ECr.ReplaySubject(r, e, n); + return function (s) { + return CCr.multicast(function () { + return i; + }, a)(s); + }; + } + jQ.publishReplay = ICr; + }); + var Dtt = N((KQ) => { + "use strict"; + _(); + x(); + Object.defineProperty(KQ, "__esModule", { value: !0 }); + var ACr = Uc(), + kCr = IZ(); + function SCr() { + for (var r = [], e = 0; e < arguments.length; e++) r[e] = arguments[e]; + return function (n) { + return ( + r.length === 1 && ACr.isArray(r[0]) && (r = r[0]), + n.lift.call(kCr.race.apply(void 0, [n].concat(r))) + ); + }; + } + KQ.race = SCr; + }); + var Ftt = N((XE) => { + "use strict"; + _(); + x(); + var MCr = + (XE && XE.__extends) || + (function () { + var r = function (e, t) { + return ( + (r = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (n, a) { + n.__proto__ = a; + }) || + function (n, a) { + for (var i in a) a.hasOwnProperty(i) && (n[i] = a[i]); + }), + r(e, t) + ); + }; + return function (e, t) { + r(e, t); + function n() { + this.constructor = e; + } + e.prototype = + t === null + ? Object.create(t) + : ((n.prototype = t.prototype), new n()); + }; + })(); + Object.defineProperty(XE, "__esModule", { value: !0 }); + var PCr = sr(), + RCr = lp(); + function BCr(r) { + return ( + r === void 0 && (r = -1), + function (e) { + return r === 0 + ? RCr.empty() + : r < 0 + ? e.lift(new qtt(-1, e)) + : e.lift(new qtt(r - 1, e)); + } + ); + } + XE.repeat = BCr; + var qtt = (function () { + function r(e, t) { + (this.count = e), (this.source = t); + } + return ( + (r.prototype.call = function (e, t) { + return t.subscribe(new NCr(e, this.count, this.source)); + }), + r + ); + })(), + NCr = (function (r) { + MCr(e, r); + function e(t, n, a) { + var i = r.call(this, t) || this; + return (i.count = n), (i.source = a), i; + } + return ( + (e.prototype.complete = function () { + if (!this.isStopped) { + var t = this, + n = t.source, + a = t.count; + if (a === 0) return r.prototype.complete.call(this); + a > -1 && (this.count = a - 1), + n.subscribe(this._unsubscribeAndRecycle()); + } + }), + e + ); + })(PCr.Subscriber); + }); + var Wtt = N((eC) => { + "use strict"; + _(); + x(); + var OCr = + (eC && eC.__extends) || + (function () { + var r = function (e, t) { + return ( + (r = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (n, a) { + n.__proto__ = a; + }) || + function (n, a) { + for (var i in a) a.hasOwnProperty(i) && (n[i] = a[i]); + }), + r(e, t) + ); + }; + return function (e, t) { + r(e, t); + function n() { + this.constructor = e; + } + e.prototype = + t === null + ? Object.create(t) + : ((n.prototype = t.prototype), new n()); + }; + })(); + Object.defineProperty(eC, "__esModule", { value: !0 }); + var LCr = yc(), + VQ = Ci(); + function DCr(r) { + return function (e) { + return e.lift(new qCr(r)); + }; + } + eC.repeatWhen = DCr; + var qCr = (function () { + function r(e) { + this.notifier = e; + } + return ( + (r.prototype.call = function (e, t) { + return t.subscribe(new FCr(e, this.notifier, t)); + }), + r + ); + })(), + FCr = (function (r) { + OCr(e, r); + function e(t, n, a) { + var i = r.call(this, t) || this; + return ( + (i.notifier = n), + (i.source = a), + (i.sourceIsBeingSubscribedTo = !0), + i + ); + } + return ( + (e.prototype.notifyNext = function () { + (this.sourceIsBeingSubscribedTo = !0), this.source.subscribe(this); + }), + (e.prototype.notifyComplete = function () { + if (this.sourceIsBeingSubscribedTo === !1) + return r.prototype.complete.call(this); + }), + (e.prototype.complete = function () { + if (((this.sourceIsBeingSubscribedTo = !1), !this.isStopped)) { + if ( + (this.retries || this.subscribeToRetries(), + !this.retriesSubscription || this.retriesSubscription.closed) + ) + return r.prototype.complete.call(this); + this._unsubscribeAndRecycle(), this.notifications.next(void 0); + } + }), + (e.prototype._unsubscribe = function () { + var t = this, + n = t.notifications, + a = t.retriesSubscription; + n && (n.unsubscribe(), (this.notifications = void 0)), + a && (a.unsubscribe(), (this.retriesSubscription = void 0)), + (this.retries = void 0); + }), + (e.prototype._unsubscribeAndRecycle = function () { + var t = this._unsubscribe; + return ( + (this._unsubscribe = null), + r.prototype._unsubscribeAndRecycle.call(this), + (this._unsubscribe = t), + this + ); + }), + (e.prototype.subscribeToRetries = function () { + this.notifications = new LCr.Subject(); + var t; + try { + var n = this.notifier; + t = n(this.notifications); + } catch { + return r.prototype.complete.call(this); + } + (this.retries = t), + (this.retriesSubscription = VQ.innerSubscribe( + t, + new VQ.SimpleInnerSubscriber(this) + )); + }), + e + ); + })(VQ.SimpleOuterSubscriber); + }); + var Utt = N((tC) => { + "use strict"; + _(); + x(); + var WCr = + (tC && tC.__extends) || + (function () { + var r = function (e, t) { + return ( + (r = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (n, a) { + n.__proto__ = a; + }) || + function (n, a) { + for (var i in a) a.hasOwnProperty(i) && (n[i] = a[i]); + }), + r(e, t) + ); + }; + return function (e, t) { + r(e, t); + function n() { + this.constructor = e; + } + e.prototype = + t === null + ? Object.create(t) + : ((n.prototype = t.prototype), new n()); + }; + })(); + Object.defineProperty(tC, "__esModule", { value: !0 }); + var UCr = sr(); + function HCr(r) { + return ( + r === void 0 && (r = -1), + function (e) { + return e.lift(new zCr(r, e)); + } + ); + } + tC.retry = HCr; + var zCr = (function () { + function r(e, t) { + (this.count = e), (this.source = t); + } + return ( + (r.prototype.call = function (e, t) { + return t.subscribe(new jCr(e, this.count, this.source)); + }), + r + ); + })(), + jCr = (function (r) { + WCr(e, r); + function e(t, n, a) { + var i = r.call(this, t) || this; + return (i.count = n), (i.source = a), i; + } + return ( + (e.prototype.error = function (t) { + if (!this.isStopped) { + var n = this, + a = n.source, + i = n.count; + if (i === 0) return r.prototype.error.call(this, t); + i > -1 && (this.count = i - 1), + a.subscribe(this._unsubscribeAndRecycle()); + } + }), + e + ); + })(UCr.Subscriber); + }); + var Htt = N((rC) => { + "use strict"; + _(); + x(); + var KCr = + (rC && rC.__extends) || + (function () { + var r = function (e, t) { + return ( + (r = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (n, a) { + n.__proto__ = a; + }) || + function (n, a) { + for (var i in a) a.hasOwnProperty(i) && (n[i] = a[i]); + }), + r(e, t) + ); + }; + return function (e, t) { + r(e, t); + function n() { + this.constructor = e; + } + e.prototype = + t === null + ? Object.create(t) + : ((n.prototype = t.prototype), new n()); + }; + })(); + Object.defineProperty(rC, "__esModule", { value: !0 }); + var VCr = yc(), + GQ = Ci(); + function GCr(r) { + return function (e) { + return e.lift(new YCr(r, e)); + }; + } + rC.retryWhen = GCr; + var YCr = (function () { + function r(e, t) { + (this.notifier = e), (this.source = t); + } + return ( + (r.prototype.call = function (e, t) { + return t.subscribe(new $Cr(e, this.notifier, this.source)); + }), + r + ); + })(), + $Cr = (function (r) { + KCr(e, r); + function e(t, n, a) { + var i = r.call(this, t) || this; + return (i.notifier = n), (i.source = a), i; + } + return ( + (e.prototype.error = function (t) { + if (!this.isStopped) { + var n = this.errors, + a = this.retries, + i = this.retriesSubscription; + if (a) + (this.errors = void 0), (this.retriesSubscription = void 0); + else { + n = new VCr.Subject(); + try { + var s = this.notifier; + a = s(n); + } catch (c) { + return r.prototype.error.call(this, c); + } + i = GQ.innerSubscribe(a, new GQ.SimpleInnerSubscriber(this)); + } + this._unsubscribeAndRecycle(), + (this.errors = n), + (this.retries = a), + (this.retriesSubscription = i), + n.next(t); + } + }), + (e.prototype._unsubscribe = function () { + var t = this, + n = t.errors, + a = t.retriesSubscription; + n && (n.unsubscribe(), (this.errors = void 0)), + a && (a.unsubscribe(), (this.retriesSubscription = void 0)), + (this.retries = void 0); + }), + (e.prototype.notifyNext = function () { + var t = this._unsubscribe; + (this._unsubscribe = null), + this._unsubscribeAndRecycle(), + (this._unsubscribe = t), + this.source.subscribe(this); + }), + e + ); + })(GQ.SimpleOuterSubscriber); + }); + var ztt = N((nC) => { + "use strict"; + _(); + x(); + var JCr = + (nC && nC.__extends) || + (function () { + var r = function (e, t) { + return ( + (r = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (n, a) { + n.__proto__ = a; + }) || + function (n, a) { + for (var i in a) a.hasOwnProperty(i) && (n[i] = a[i]); + }), + r(e, t) + ); + }; + return function (e, t) { + r(e, t); + function n() { + this.constructor = e; + } + e.prototype = + t === null + ? Object.create(t) + : ((n.prototype = t.prototype), new n()); + }; + })(); + Object.defineProperty(nC, "__esModule", { value: !0 }); + var YQ = Ci(); + function ZCr(r) { + return function (e) { + return e.lift(new QCr(r)); + }; + } + nC.sample = ZCr; + var QCr = (function () { + function r(e) { + this.notifier = e; + } + return ( + (r.prototype.call = function (e, t) { + var n = new XCr(e), + a = t.subscribe(n); + return ( + a.add( + YQ.innerSubscribe( + this.notifier, + new YQ.SimpleInnerSubscriber(n) + ) + ), + a + ); + }), + r + ); + })(), + XCr = (function (r) { + JCr(e, r); + function e() { + var t = (r !== null && r.apply(this, arguments)) || this; + return (t.hasValue = !1), t; + } + return ( + (e.prototype._next = function (t) { + (this.value = t), (this.hasValue = !0); + }), + (e.prototype.notifyNext = function () { + this.emitValue(); + }), + (e.prototype.notifyComplete = function () { + this.emitValue(); + }), + (e.prototype.emitValue = function () { + this.hasValue && + ((this.hasValue = !1), this.destination.next(this.value)); + }), + e + ); + })(YQ.SimpleOuterSubscriber); + }); + var jtt = N((aC) => { + "use strict"; + _(); + x(); + var e8r = + (aC && aC.__extends) || + (function () { + var r = function (e, t) { + return ( + (r = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (n, a) { + n.__proto__ = a; + }) || + function (n, a) { + for (var i in a) a.hasOwnProperty(i) && (n[i] = a[i]); + }), + r(e, t) + ); + }; + return function (e, t) { + r(e, t); + function n() { + this.constructor = e; + } + e.prototype = + t === null + ? Object.create(t) + : ((n.prototype = t.prototype), new n()); + }; + })(); + Object.defineProperty(aC, "__esModule", { value: !0 }); + var t8r = sr(), + r8r = Hc(); + function n8r(r, e) { + return ( + e === void 0 && (e = r8r.async), + function (t) { + return t.lift(new a8r(r, e)); + } + ); + } + aC.sampleTime = n8r; + var a8r = (function () { + function r(e, t) { + (this.period = e), (this.scheduler = t); + } + return ( + (r.prototype.call = function (e, t) { + return t.subscribe(new i8r(e, this.period, this.scheduler)); + }), + r + ); + })(), + i8r = (function (r) { + e8r(e, r); + function e(t, n, a) { + var i = r.call(this, t) || this; + return ( + (i.period = n), + (i.scheduler = a), + (i.hasValue = !1), + i.add(a.schedule(s8r, n, { subscriber: i, period: n })), + i + ); + } + return ( + (e.prototype._next = function (t) { + (this.lastValue = t), (this.hasValue = !0); + }), + (e.prototype.notifyNext = function () { + this.hasValue && + ((this.hasValue = !1), this.destination.next(this.lastValue)); + }), + e + ); + })(t8r.Subscriber); + function s8r(r) { + var e = r.subscriber, + t = r.period; + e.notifyNext(), this.schedule(r, t); + } + }); + var $tt = N((Rb) => { + "use strict"; + _(); + x(); + var Ktt = + (Rb && Rb.__extends) || + (function () { + var r = function (e, t) { + return ( + (r = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (n, a) { + n.__proto__ = a; + }) || + function (n, a) { + for (var i in a) a.hasOwnProperty(i) && (n[i] = a[i]); + }), + r(e, t) + ); + }; + return function (e, t) { + r(e, t); + function n() { + this.constructor = e; + } + e.prototype = + t === null + ? Object.create(t) + : ((n.prototype = t.prototype), new n()); + }; + })(); + Object.defineProperty(Rb, "__esModule", { value: !0 }); + var Vtt = sr(); + function o8r(r, e) { + return function (t) { + return t.lift(new Gtt(r, e)); + }; + } + Rb.sequenceEqual = o8r; + var Gtt = (function () { + function r(e, t) { + (this.compareTo = e), (this.comparator = t); + } + return ( + (r.prototype.call = function (e, t) { + return t.subscribe(new Ytt(e, this.compareTo, this.comparator)); + }), + r + ); + })(); + Rb.SequenceEqualOperator = Gtt; + var Ytt = (function (r) { + Ktt(e, r); + function e(t, n, a) { + var i = r.call(this, t) || this; + return ( + (i.compareTo = n), + (i.comparator = a), + (i._a = []), + (i._b = []), + (i._oneComplete = !1), + i.destination.add(n.subscribe(new c8r(t, i))), + i + ); + } + return ( + (e.prototype._next = function (t) { + this._oneComplete && this._b.length === 0 + ? this.emit(!1) + : (this._a.push(t), this.checkValues()); + }), + (e.prototype._complete = function () { + this._oneComplete + ? this.emit(this._a.length === 0 && this._b.length === 0) + : (this._oneComplete = !0), + this.unsubscribe(); + }), + (e.prototype.checkValues = function () { + for ( + var t = this, n = t._a, a = t._b, i = t.comparator; + n.length > 0 && a.length > 0; + + ) { + var s = n.shift(), + c = a.shift(), + l = !1; + try { + l = i ? i(s, c) : s === c; + } catch (d) { + this.destination.error(d); + } + l || this.emit(!1); + } + }), + (e.prototype.emit = function (t) { + var n = this.destination; + n.next(t), n.complete(); + }), + (e.prototype.nextB = function (t) { + this._oneComplete && this._a.length === 0 + ? this.emit(!1) + : (this._b.push(t), this.checkValues()); + }), + (e.prototype.completeB = function () { + this._oneComplete + ? this.emit(this._a.length === 0 && this._b.length === 0) + : (this._oneComplete = !0); + }), + e + ); + })(Vtt.Subscriber); + Rb.SequenceEqualSubscriber = Ytt; + var c8r = (function (r) { + Ktt(e, r); + function e(t, n) { + var a = r.call(this, t) || this; + return (a.parent = n), a; + } + return ( + (e.prototype._next = function (t) { + this.parent.nextB(t); + }), + (e.prototype._error = function (t) { + this.parent.error(t), this.unsubscribe(); + }), + (e.prototype._complete = function () { + this.parent.completeB(), this.unsubscribe(); + }), + e + ); + })(Vtt.Subscriber); + }); + var Jtt = N(($Q) => { + "use strict"; + _(); + x(); + Object.defineProperty($Q, "__esModule", { value: !0 }); + var u8r = Pb(), + l8r = sB(), + d8r = yc(); + function p8r() { + return new d8r.Subject(); + } + function h8r() { + return function (r) { + return l8r.refCount()(u8r.multicast(p8r)(r)); + }; + } + $Q.share = h8r; + }); + var Ztt = N((JQ) => { + "use strict"; + _(); + x(); + Object.defineProperty(JQ, "__esModule", { value: !0 }); + var f8r = lB(); + function m8r(r, e, t) { + var n; + return ( + r && typeof r == "object" + ? (n = r) + : (n = { bufferSize: r, windowTime: e, refCount: !1, scheduler: t }), + function (a) { + return a.lift(y8r(n)); + } + ); + } + JQ.shareReplay = m8r; + function y8r(r) { + var e = r.bufferSize, + t = e === void 0 ? Number.POSITIVE_INFINITY : e, + n = r.windowTime, + a = n === void 0 ? Number.POSITIVE_INFINITY : n, + i = r.refCount, + s = r.scheduler, + c, + l = 0, + d, + m = !1, + w = !1; + return function (I) { + l++; + var k; + !c || m + ? ((m = !1), + (c = new f8r.ReplaySubject(t, a, s)), + (k = c.subscribe(this)), + (d = I.subscribe({ + next: function (O) { + c.next(O); + }, + error: function (O) { + (m = !0), c.error(O); + }, + complete: function () { + (w = !0), (d = void 0), c.complete(); + }, + })), + w && (d = void 0)) + : (k = c.subscribe(this)), + this.add(function () { + l--, + k.unsubscribe(), + (k = void 0), + d && + !w && + i && + l === 0 && + (d.unsubscribe(), (d = void 0), (c = void 0)); + }); + }; + } + }); + var Qtt = N((iC) => { + "use strict"; + _(); + x(); + var g8r = + (iC && iC.__extends) || + (function () { + var r = function (e, t) { + return ( + (r = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (n, a) { + n.__proto__ = a; + }) || + function (n, a) { + for (var i in a) a.hasOwnProperty(i) && (n[i] = a[i]); + }), + r(e, t) + ); + }; + return function (e, t) { + r(e, t); + function n() { + this.constructor = e; + } + e.prototype = + t === null + ? Object.create(t) + : ((n.prototype = t.prototype), new n()); + }; + })(); + Object.defineProperty(iC, "__esModule", { value: !0 }); + var b8r = sr(), + v8r = u_(); + function w8r(r) { + return function (e) { + return e.lift(new _8r(r, e)); + }; + } + iC.single = w8r; + var _8r = (function () { + function r(e, t) { + (this.predicate = e), (this.source = t); + } + return ( + (r.prototype.call = function (e, t) { + return t.subscribe(new x8r(e, this.predicate, this.source)); + }), + r + ); + })(), + x8r = (function (r) { + g8r(e, r); + function e(t, n, a) { + var i = r.call(this, t) || this; + return ( + (i.predicate = n), + (i.source = a), + (i.seenValue = !1), + (i.index = 0), + i + ); + } + return ( + (e.prototype.applySingleValue = function (t) { + this.seenValue + ? this.destination.error( + "Sequence contains more than one element" + ) + : ((this.seenValue = !0), (this.singleValue = t)); + }), + (e.prototype._next = function (t) { + var n = this.index++; + this.predicate ? this.tryNext(t, n) : this.applySingleValue(t); + }), + (e.prototype.tryNext = function (t, n) { + try { + this.predicate(t, n, this.source) && this.applySingleValue(t); + } catch (a) { + this.destination.error(a); + } + }), + (e.prototype._complete = function () { + var t = this.destination; + this.index > 0 + ? (t.next(this.seenValue ? this.singleValue : void 0), + t.complete()) + : t.error(new v8r.EmptyError()); + }), + e + ); + })(b8r.Subscriber); + }); + var Xtt = N((sC) => { + "use strict"; + _(); + x(); + var T8r = + (sC && sC.__extends) || + (function () { + var r = function (e, t) { + return ( + (r = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (n, a) { + n.__proto__ = a; + }) || + function (n, a) { + for (var i in a) a.hasOwnProperty(i) && (n[i] = a[i]); + }), + r(e, t) + ); + }; + return function (e, t) { + r(e, t); + function n() { + this.constructor = e; + } + e.prototype = + t === null + ? Object.create(t) + : ((n.prototype = t.prototype), new n()); + }; + })(); + Object.defineProperty(sC, "__esModule", { value: !0 }); + var E8r = sr(); + function C8r(r) { + return function (e) { + return e.lift(new I8r(r)); + }; + } + sC.skip = C8r; + var I8r = (function () { + function r(e) { + this.total = e; + } + return ( + (r.prototype.call = function (e, t) { + return t.subscribe(new A8r(e, this.total)); + }), + r + ); + })(), + A8r = (function (r) { + T8r(e, r); + function e(t, n) { + var a = r.call(this, t) || this; + return (a.total = n), (a.count = 0), a; + } + return ( + (e.prototype._next = function (t) { + ++this.count > this.total && this.destination.next(t); + }), + e + ); + })(E8r.Subscriber); + }); + var trt = N((oC) => { + "use strict"; + _(); + x(); + var k8r = + (oC && oC.__extends) || + (function () { + var r = function (e, t) { + return ( + (r = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (n, a) { + n.__proto__ = a; + }) || + function (n, a) { + for (var i in a) a.hasOwnProperty(i) && (n[i] = a[i]); + }), + r(e, t) + ); + }; + return function (e, t) { + r(e, t); + function n() { + this.constructor = e; + } + e.prototype = + t === null + ? Object.create(t) + : ((n.prototype = t.prototype), new n()); + }; + })(); + Object.defineProperty(oC, "__esModule", { value: !0 }); + var ert = sr(), + S8r = c_(); + function M8r(r) { + return function (e) { + return e.lift(new P8r(r)); + }; + } + oC.skipLast = M8r; + var P8r = (function () { + function r(e) { + if (((this._skipCount = e), this._skipCount < 0)) + throw new S8r.ArgumentOutOfRangeError(); + } + return ( + (r.prototype.call = function (e, t) { + return this._skipCount === 0 + ? t.subscribe(new ert.Subscriber(e)) + : t.subscribe(new R8r(e, this._skipCount)); + }), + r + ); + })(), + R8r = (function (r) { + k8r(e, r); + function e(t, n) { + var a = r.call(this, t) || this; + return ( + (a._skipCount = n), (a._count = 0), (a._ring = new Array(n)), a + ); + } + return ( + (e.prototype._next = function (t) { + var n = this._skipCount, + a = this._count++; + if (a < n) this._ring[a] = t; + else { + var i = a % n, + s = this._ring, + c = s[i]; + (s[i] = t), this.destination.next(c); + } + }), + e + ); + })(ert.Subscriber); + }); + var rrt = N((cC) => { + "use strict"; + _(); + x(); + var B8r = + (cC && cC.__extends) || + (function () { + var r = function (e, t) { + return ( + (r = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (n, a) { + n.__proto__ = a; + }) || + function (n, a) { + for (var i in a) a.hasOwnProperty(i) && (n[i] = a[i]); + }), + r(e, t) + ); + }; + return function (e, t) { + r(e, t); + function n() { + this.constructor = e; + } + e.prototype = + t === null + ? Object.create(t) + : ((n.prototype = t.prototype), new n()); + }; + })(); + Object.defineProperty(cC, "__esModule", { value: !0 }); + var ZQ = Ci(); + function N8r(r) { + return function (e) { + return e.lift(new O8r(r)); + }; + } + cC.skipUntil = N8r; + var O8r = (function () { + function r(e) { + this.notifier = e; + } + return ( + (r.prototype.call = function (e, t) { + return t.subscribe(new L8r(e, this.notifier)); + }), + r + ); + })(), + L8r = (function (r) { + B8r(e, r); + function e(t, n) { + var a = r.call(this, t) || this; + a.hasValue = !1; + var i = new ZQ.SimpleInnerSubscriber(a); + a.add(i), (a.innerSubscription = i); + var s = ZQ.innerSubscribe(n, i); + return s !== i && (a.add(s), (a.innerSubscription = s)), a; + } + return ( + (e.prototype._next = function (t) { + this.hasValue && r.prototype._next.call(this, t); + }), + (e.prototype.notifyNext = function () { + (this.hasValue = !0), + this.innerSubscription && this.innerSubscription.unsubscribe(); + }), + (e.prototype.notifyComplete = function () {}), + e + ); + })(ZQ.SimpleOuterSubscriber); + }); + var nrt = N((uC) => { + "use strict"; + _(); + x(); + var D8r = + (uC && uC.__extends) || + (function () { + var r = function (e, t) { + return ( + (r = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (n, a) { + n.__proto__ = a; + }) || + function (n, a) { + for (var i in a) a.hasOwnProperty(i) && (n[i] = a[i]); + }), + r(e, t) + ); + }; + return function (e, t) { + r(e, t); + function n() { + this.constructor = e; + } + e.prototype = + t === null + ? Object.create(t) + : ((n.prototype = t.prototype), new n()); + }; + })(); + Object.defineProperty(uC, "__esModule", { value: !0 }); + var q8r = sr(); + function F8r(r) { + return function (e) { + return e.lift(new W8r(r)); + }; + } + uC.skipWhile = F8r; + var W8r = (function () { + function r(e) { + this.predicate = e; + } + return ( + (r.prototype.call = function (e, t) { + return t.subscribe(new U8r(e, this.predicate)); + }), + r + ); + })(), + U8r = (function (r) { + D8r(e, r); + function e(t, n) { + var a = r.call(this, t) || this; + return (a.predicate = n), (a.skipping = !0), (a.index = 0), a; + } + return ( + (e.prototype._next = function (t) { + var n = this.destination; + this.skipping && this.tryCallPredicate(t), + this.skipping || n.next(t); + }), + (e.prototype.tryCallPredicate = function (t) { + try { + var n = this.predicate(t, this.index++); + this.skipping = Boolean(n); + } catch (a) { + this.destination.error(a); + } + }), + e + ); + })(q8r.Subscriber); + }); + var irt = N((QQ) => { + "use strict"; + _(); + x(); + Object.defineProperty(QQ, "__esModule", { value: !0 }); + var art = gE(), + H8r = dp(); + function z8r() { + for (var r = [], e = 0; e < arguments.length; e++) r[e] = arguments[e]; + var t = r[r.length - 1]; + return H8r.isScheduler(t) + ? (r.pop(), + function (n) { + return art.concat(r, n, t); + }) + : function (n) { + return art.concat(r, n); + }; + } + QQ.startWith = z8r; + }); + var srt = N((lC) => { + "use strict"; + _(); + x(); + var j8r = + (lC && lC.__extends) || + (function () { + var r = function (e, t) { + return ( + (r = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (n, a) { + n.__proto__ = a; + }) || + function (n, a) { + for (var i in a) a.hasOwnProperty(i) && (n[i] = a[i]); + }), + r(e, t) + ); + }; + return function (e, t) { + r(e, t); + function n() { + this.constructor = e; + } + e.prototype = + t === null + ? Object.create(t) + : ((n.prototype = t.prototype), new n()); + }; + })(); + Object.defineProperty(lC, "__esModule", { value: !0 }); + var K8r = _n(), + XQ = RJ(), + V8r = bE(), + G8r = (function (r) { + j8r(e, r); + function e(t, n, a) { + n === void 0 && (n = 0), a === void 0 && (a = XQ.asap); + var i = r.call(this) || this; + return ( + (i.source = t), + (i.delayTime = n), + (i.scheduler = a), + (!V8r.isNumeric(n) || n < 0) && (i.delayTime = 0), + (!a || typeof a.schedule != "function") && (i.scheduler = XQ.asap), + i + ); + } + return ( + (e.create = function (t, n, a) { + return ( + n === void 0 && (n = 0), + a === void 0 && (a = XQ.asap), + new e(t, n, a) + ); + }), + (e.dispatch = function (t) { + var n = t.source, + a = t.subscriber; + return this.add(n.subscribe(a)); + }), + (e.prototype._subscribe = function (t) { + var n = this.delayTime, + a = this.source, + i = this.scheduler; + return i.schedule(e.dispatch, n, { source: a, subscriber: t }); + }), + e + ); + })(K8r.Observable); + lC.SubscribeOnObservable = G8r; + }); + var ort = N((eX) => { + "use strict"; + _(); + x(); + Object.defineProperty(eX, "__esModule", { value: !0 }); + var Y8r = srt(); + function $8r(r, e) { + return ( + e === void 0 && (e = 0), + function (n) { + return n.lift(new J8r(r, e)); + } + ); + } + eX.subscribeOn = $8r; + var J8r = (function () { + function r(e, t) { + (this.scheduler = e), (this.delay = t); + } + return ( + (r.prototype.call = function (e, t) { + return new Y8r.SubscribeOnObservable( + t, + this.delay, + this.scheduler + ).subscribe(e); + }), + r + ); + })(); + }); + var HB = N((dC) => { + "use strict"; + _(); + x(); + var Z8r = + (dC && dC.__extends) || + (function () { + var r = function (e, t) { + return ( + (r = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (n, a) { + n.__proto__ = a; + }) || + function (n, a) { + for (var i in a) a.hasOwnProperty(i) && (n[i] = a[i]); + }), + r(e, t) + ); + }; + return function (e, t) { + r(e, t); + function n() { + this.constructor = e; + } + e.prototype = + t === null + ? Object.create(t) + : ((n.prototype = t.prototype), new n()); + }; + })(); + Object.defineProperty(dC, "__esModule", { value: !0 }); + var Q8r = tl(), + X8r = pp(), + tX = Ci(); + function crt(r, e) { + return typeof e == "function" + ? function (t) { + return t.pipe( + crt(function (n, a) { + return X8r.from(r(n, a)).pipe( + Q8r.map(function (i, s) { + return e(n, i, a, s); + }) + ); + }) + ); + } + : function (t) { + return t.lift(new e4r(r)); + }; + } + dC.switchMap = crt; + var e4r = (function () { + function r(e) { + this.project = e; + } + return ( + (r.prototype.call = function (e, t) { + return t.subscribe(new t4r(e, this.project)); + }), + r + ); + })(), + t4r = (function (r) { + Z8r(e, r); + function e(t, n) { + var a = r.call(this, t) || this; + return (a.project = n), (a.index = 0), a; + } + return ( + (e.prototype._next = function (t) { + var n, + a = this.index++; + try { + n = this.project(t, a); + } catch (i) { + this.destination.error(i); + return; + } + this._innerSub(n); + }), + (e.prototype._innerSub = function (t) { + var n = this.innerSubscription; + n && n.unsubscribe(); + var a = new tX.SimpleInnerSubscriber(this), + i = this.destination; + i.add(a), + (this.innerSubscription = tX.innerSubscribe(t, a)), + this.innerSubscription !== a && i.add(this.innerSubscription); + }), + (e.prototype._complete = function () { + var t = this.innerSubscription; + (!t || t.closed) && r.prototype._complete.call(this), + this.unsubscribe(); + }), + (e.prototype._unsubscribe = function () { + this.innerSubscription = void 0; + }), + (e.prototype.notifyComplete = function () { + (this.innerSubscription = void 0), + this.isStopped && r.prototype._complete.call(this); + }), + (e.prototype.notifyNext = function (t) { + this.destination.next(t); + }), + e + ); + })(tX.SimpleOuterSubscriber); + }); + var urt = N((rX) => { + "use strict"; + _(); + x(); + Object.defineProperty(rX, "__esModule", { value: !0 }); + var r4r = HB(), + n4r = O0(); + function a4r() { + return r4r.switchMap(n4r.identity); + } + rX.switchAll = a4r; + }); + var drt = N((nX) => { + "use strict"; + _(); + x(); + Object.defineProperty(nX, "__esModule", { value: !0 }); + var lrt = HB(); + function i4r(r, e) { + return e + ? lrt.switchMap(function () { + return r; + }, e) + : lrt.switchMap(function () { + return r; + }); + } + nX.switchMapTo = i4r; + }); + var prt = N((pC) => { + "use strict"; + _(); + x(); + var s4r = + (pC && pC.__extends) || + (function () { + var r = function (e, t) { + return ( + (r = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (n, a) { + n.__proto__ = a; + }) || + function (n, a) { + for (var i in a) a.hasOwnProperty(i) && (n[i] = a[i]); + }), + r(e, t) + ); + }; + return function (e, t) { + r(e, t); + function n() { + this.constructor = e; + } + e.prototype = + t === null + ? Object.create(t) + : ((n.prototype = t.prototype), new n()); + }; + })(); + Object.defineProperty(pC, "__esModule", { value: !0 }); + var aX = Ci(); + function o4r(r) { + return function (e) { + return e.lift(new c4r(r)); + }; + } + pC.takeUntil = o4r; + var c4r = (function () { + function r(e) { + this.notifier = e; + } + return ( + (r.prototype.call = function (e, t) { + var n = new u4r(e), + a = aX.innerSubscribe( + this.notifier, + new aX.SimpleInnerSubscriber(n) + ); + return a && !n.seenValue ? (n.add(a), t.subscribe(n)) : n; + }), + r + ); + })(), + u4r = (function (r) { + s4r(e, r); + function e(t) { + var n = r.call(this, t) || this; + return (n.seenValue = !1), n; + } + return ( + (e.prototype.notifyNext = function () { + (this.seenValue = !0), this.complete(); + }), + (e.prototype.notifyComplete = function () {}), + e + ); + })(aX.SimpleOuterSubscriber); + }); + var hrt = N((hC) => { + "use strict"; + _(); + x(); + var l4r = + (hC && hC.__extends) || + (function () { + var r = function (e, t) { + return ( + (r = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (n, a) { + n.__proto__ = a; + }) || + function (n, a) { + for (var i in a) a.hasOwnProperty(i) && (n[i] = a[i]); + }), + r(e, t) + ); + }; + return function (e, t) { + r(e, t); + function n() { + this.constructor = e; + } + e.prototype = + t === null + ? Object.create(t) + : ((n.prototype = t.prototype), new n()); + }; + })(); + Object.defineProperty(hC, "__esModule", { value: !0 }); + var d4r = sr(); + function p4r(r, e) { + return ( + e === void 0 && (e = !1), + function (t) { + return t.lift(new h4r(r, e)); + } + ); + } + hC.takeWhile = p4r; + var h4r = (function () { + function r(e, t) { + (this.predicate = e), (this.inclusive = t); + } + return ( + (r.prototype.call = function (e, t) { + return t.subscribe(new f4r(e, this.predicate, this.inclusive)); + }), + r + ); + })(), + f4r = (function (r) { + l4r(e, r); + function e(t, n, a) { + var i = r.call(this, t) || this; + return (i.predicate = n), (i.inclusive = a), (i.index = 0), i; + } + return ( + (e.prototype._next = function (t) { + var n = this.destination, + a; + try { + a = this.predicate(t, this.index++); + } catch (i) { + n.error(i); + return; + } + this.nextOrComplete(t, a); + }), + (e.prototype.nextOrComplete = function (t, n) { + var a = this.destination; + Boolean(n) + ? a.next(t) + : (this.inclusive && a.next(t), a.complete()); + }), + e + ); + })(d4r.Subscriber); + }); + var frt = N((fC) => { + "use strict"; + _(); + x(); + var m4r = + (fC && fC.__extends) || + (function () { + var r = function (e, t) { + return ( + (r = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (n, a) { + n.__proto__ = a; + }) || + function (n, a) { + for (var i in a) a.hasOwnProperty(i) && (n[i] = a[i]); + }), + r(e, t) + ); + }; + return function (e, t) { + r(e, t); + function n() { + this.constructor = e; + } + e.prototype = + t === null + ? Object.create(t) + : ((n.prototype = t.prototype), new n()); + }; + })(); + Object.defineProperty(fC, "__esModule", { value: !0 }); + var y4r = sr(), + z0 = hB(), + g4r = X2(); + function b4r(r, e, t) { + return function (a) { + return a.lift(new v4r(r, e, t)); + }; + } + fC.tap = b4r; + var v4r = (function () { + function r(e, t, n) { + (this.nextOrObserver = e), (this.error = t), (this.complete = n); + } + return ( + (r.prototype.call = function (e, t) { + return t.subscribe( + new w4r(e, this.nextOrObserver, this.error, this.complete) + ); + }), + r + ); + })(), + w4r = (function (r) { + m4r(e, r); + function e(t, n, a, i) { + var s = r.call(this, t) || this; + return ( + (s._tapNext = z0.noop), + (s._tapError = z0.noop), + (s._tapComplete = z0.noop), + (s._tapError = a || z0.noop), + (s._tapComplete = i || z0.noop), + g4r.isFunction(n) + ? ((s._context = s), (s._tapNext = n)) + : n && + ((s._context = n), + (s._tapNext = n.next || z0.noop), + (s._tapError = n.error || z0.noop), + (s._tapComplete = n.complete || z0.noop)), + s + ); + } + return ( + (e.prototype._next = function (t) { + try { + this._tapNext.call(this._context, t); + } catch (n) { + this.destination.error(n); + return; + } + this.destination.next(t); + }), + (e.prototype._error = function (t) { + try { + this._tapError.call(this._context, t); + } catch (n) { + this.destination.error(n); + return; + } + this.destination.error(t); + }), + (e.prototype._complete = function () { + try { + this._tapComplete.call(this._context); + } catch (t) { + this.destination.error(t); + return; + } + return this.destination.complete(); + }), + e + ); + })(y4r.Subscriber); + }); + var sX = N((Bb) => { + "use strict"; + _(); + x(); + var _4r = + (Bb && Bb.__extends) || + (function () { + var r = function (e, t) { + return ( + (r = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (n, a) { + n.__proto__ = a; + }) || + function (n, a) { + for (var i in a) a.hasOwnProperty(i) && (n[i] = a[i]); + }), + r(e, t) + ); + }; + return function (e, t) { + r(e, t); + function n() { + this.constructor = e; + } + e.prototype = + t === null + ? Object.create(t) + : ((n.prototype = t.prototype), new n()); + }; + })(); + Object.defineProperty(Bb, "__esModule", { value: !0 }); + var iX = Ci(); + Bb.defaultThrottleConfig = { leading: !0, trailing: !1 }; + function x4r(r, e) { + return ( + e === void 0 && (e = Bb.defaultThrottleConfig), + function (t) { + return t.lift(new T4r(r, !!e.leading, !!e.trailing)); + } + ); + } + Bb.throttle = x4r; + var T4r = (function () { + function r(e, t, n) { + (this.durationSelector = e), (this.leading = t), (this.trailing = n); + } + return ( + (r.prototype.call = function (e, t) { + return t.subscribe( + new E4r(e, this.durationSelector, this.leading, this.trailing) + ); + }), + r + ); + })(), + E4r = (function (r) { + _4r(e, r); + function e(t, n, a, i) { + var s = r.call(this, t) || this; + return ( + (s.destination = t), + (s.durationSelector = n), + (s._leading = a), + (s._trailing = i), + (s._hasValue = !1), + s + ); + } + return ( + (e.prototype._next = function (t) { + (this._hasValue = !0), + (this._sendValue = t), + this._throttled || + (this._leading ? this.send() : this.throttle(t)); + }), + (e.prototype.send = function () { + var t = this, + n = t._hasValue, + a = t._sendValue; + n && (this.destination.next(a), this.throttle(a)), + (this._hasValue = !1), + (this._sendValue = void 0); + }), + (e.prototype.throttle = function (t) { + var n = this.tryDurationSelector(t); + n && + this.add( + (this._throttled = iX.innerSubscribe( + n, + new iX.SimpleInnerSubscriber(this) + )) + ); + }), + (e.prototype.tryDurationSelector = function (t) { + try { + return this.durationSelector(t); + } catch (n) { + return this.destination.error(n), null; + } + }), + (e.prototype.throttlingDone = function () { + var t = this, + n = t._throttled, + a = t._trailing; + n && n.unsubscribe(), (this._throttled = void 0), a && this.send(); + }), + (e.prototype.notifyNext = function () { + this.throttlingDone(); + }), + (e.prototype.notifyComplete = function () { + this.throttlingDone(); + }), + e + ); + })(iX.SimpleOuterSubscriber); + }); + var mrt = N((mC) => { + "use strict"; + _(); + x(); + var C4r = + (mC && mC.__extends) || + (function () { + var r = function (e, t) { + return ( + (r = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (n, a) { + n.__proto__ = a; + }) || + function (n, a) { + for (var i in a) a.hasOwnProperty(i) && (n[i] = a[i]); + }), + r(e, t) + ); + }; + return function (e, t) { + r(e, t); + function n() { + this.constructor = e; + } + e.prototype = + t === null + ? Object.create(t) + : ((n.prototype = t.prototype), new n()); + }; + })(); + Object.defineProperty(mC, "__esModule", { value: !0 }); + var I4r = sr(), + A4r = Hc(), + k4r = sX(); + function S4r(r, e, t) { + return ( + e === void 0 && (e = A4r.async), + t === void 0 && (t = k4r.defaultThrottleConfig), + function (n) { + return n.lift(new M4r(r, e, t.leading, t.trailing)); + } + ); + } + mC.throttleTime = S4r; + var M4r = (function () { + function r(e, t, n, a) { + (this.duration = e), + (this.scheduler = t), + (this.leading = n), + (this.trailing = a); + } + return ( + (r.prototype.call = function (e, t) { + return t.subscribe( + new P4r( + e, + this.duration, + this.scheduler, + this.leading, + this.trailing + ) + ); + }), + r + ); + })(), + P4r = (function (r) { + C4r(e, r); + function e(t, n, a, i, s) { + var c = r.call(this, t) || this; + return ( + (c.duration = n), + (c.scheduler = a), + (c.leading = i), + (c.trailing = s), + (c._hasTrailingValue = !1), + (c._trailingValue = null), + c + ); + } + return ( + (e.prototype._next = function (t) { + this.throttled + ? this.trailing && + ((this._trailingValue = t), (this._hasTrailingValue = !0)) + : (this.add( + (this.throttled = this.scheduler.schedule( + R4r, + this.duration, + { subscriber: this } + )) + ), + this.leading + ? this.destination.next(t) + : this.trailing && + ((this._trailingValue = t), (this._hasTrailingValue = !0))); + }), + (e.prototype._complete = function () { + this._hasTrailingValue + ? (this.destination.next(this._trailingValue), + this.destination.complete()) + : this.destination.complete(); + }), + (e.prototype.clearThrottle = function () { + var t = this.throttled; + t && + (this.trailing && + this._hasTrailingValue && + (this.destination.next(this._trailingValue), + (this._trailingValue = null), + (this._hasTrailingValue = !1)), + t.unsubscribe(), + this.remove(t), + (this.throttled = null)); + }), + e + ); + })(I4r.Subscriber); + function R4r(r) { + var e = r.subscriber; + e.clearThrottle(); + } + }); + var grt = N((zB) => { + "use strict"; + _(); + x(); + Object.defineProperty(zB, "__esModule", { value: !0 }); + var B4r = Hc(), + N4r = WB(), + O4r = bB(), + L4r = tl(); + function D4r(r) { + return ( + r === void 0 && (r = B4r.async), + function (e) { + return O4r.defer(function () { + return e.pipe( + N4r.scan( + function (t, n) { + var a = t.current; + return { value: n, current: r.now(), last: a }; + }, + { current: r.now(), value: void 0, last: void 0 } + ), + L4r.map(function (t) { + var n = t.current, + a = t.last, + i = t.value; + return new yrt(i, n - a); + }) + ); + }); + } + ); + } + zB.timeInterval = D4r; + var yrt = (function () { + function r(e, t) { + (this.value = e), (this.interval = t); + } + return r; + })(); + zB.TimeInterval = yrt; + }); + var cX = N((yC) => { + "use strict"; + _(); + x(); + var q4r = + (yC && yC.__extends) || + (function () { + var r = function (e, t) { + return ( + (r = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (n, a) { + n.__proto__ = a; + }) || + function (n, a) { + for (var i in a) a.hasOwnProperty(i) && (n[i] = a[i]); + }), + r(e, t) + ); + }; + return function (e, t) { + r(e, t); + function n() { + this.constructor = e; + } + e.prototype = + t === null + ? Object.create(t) + : ((n.prototype = t.prototype), new n()); + }; + })(); + Object.defineProperty(yC, "__esModule", { value: !0 }); + var F4r = Hc(), + W4r = gQ(), + oX = Ci(); + function U4r(r, e, t) { + return ( + t === void 0 && (t = F4r.async), + function (n) { + var a = W4r.isDate(r), + i = a ? +r - t.now() : Math.abs(r); + return n.lift(new H4r(i, a, e, t)); + } + ); + } + yC.timeoutWith = U4r; + var H4r = (function () { + function r(e, t, n, a) { + (this.waitFor = e), + (this.absoluteTimeout = t), + (this.withObservable = n), + (this.scheduler = a); + } + return ( + (r.prototype.call = function (e, t) { + return t.subscribe( + new z4r( + e, + this.absoluteTimeout, + this.waitFor, + this.withObservable, + this.scheduler + ) + ); + }), + r + ); + })(), + z4r = (function (r) { + q4r(e, r); + function e(t, n, a, i, s) { + var c = r.call(this, t) || this; + return ( + (c.absoluteTimeout = n), + (c.waitFor = a), + (c.withObservable = i), + (c.scheduler = s), + c.scheduleTimeout(), + c + ); + } + return ( + (e.dispatchTimeout = function (t) { + var n = t.withObservable; + t._unsubscribeAndRecycle(), + t.add(oX.innerSubscribe(n, new oX.SimpleInnerSubscriber(t))); + }), + (e.prototype.scheduleTimeout = function () { + var t = this.action; + t + ? (this.action = t.schedule(this, this.waitFor)) + : this.add( + (this.action = this.scheduler.schedule( + e.dispatchTimeout, + this.waitFor, + this + )) + ); + }), + (e.prototype._next = function (t) { + this.absoluteTimeout || this.scheduleTimeout(), + r.prototype._next.call(this, t); + }), + (e.prototype._unsubscribe = function () { + (this.action = void 0), + (this.scheduler = null), + (this.withObservable = null); + }), + e + ); + })(oX.SimpleOuterSubscriber); + }); + var brt = N((uX) => { + "use strict"; + _(); + x(); + Object.defineProperty(uX, "__esModule", { value: !0 }); + var j4r = Hc(), + K4r = qJ(), + V4r = cX(), + G4r = uB(); + function Y4r(r, e) { + return ( + e === void 0 && (e = j4r.async), + V4r.timeoutWith(r, G4r.throwError(new K4r.TimeoutError()), e) + ); + } + uX.timeout = Y4r; + }); + var wrt = N((jB) => { + "use strict"; + _(); + x(); + Object.defineProperty(jB, "__esModule", { value: !0 }); + var $4r = Hc(), + J4r = tl(); + function Z4r(r) { + return ( + r === void 0 && (r = $4r.async), + J4r.map(function (e) { + return new vrt(e, r.now()); + }) + ); + } + jB.timestamp = Z4r; + var vrt = (function () { + function r(e, t) { + (this.value = e), (this.timestamp = t); + } + return r; + })(); + jB.Timestamp = vrt; + }); + var _rt = N((lX) => { + "use strict"; + _(); + x(); + Object.defineProperty(lX, "__esModule", { value: !0 }); + var Q4r = ZE(); + function X4r(r, e, t) { + return t === 0 ? [e] : (r.push(e), r); + } + function eIr() { + return Q4r.reduce(X4r, []); + } + lX.toArray = eIr; + }); + var Trt = N((gC) => { + "use strict"; + _(); + x(); + var tIr = + (gC && gC.__extends) || + (function () { + var r = function (e, t) { + return ( + (r = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (n, a) { + n.__proto__ = a; + }) || + function (n, a) { + for (var i in a) a.hasOwnProperty(i) && (n[i] = a[i]); + }), + r(e, t) + ); + }; + return function (e, t) { + r(e, t); + function n() { + this.constructor = e; + } + e.prototype = + t === null + ? Object.create(t) + : ((n.prototype = t.prototype), new n()); + }; + })(); + Object.defineProperty(gC, "__esModule", { value: !0 }); + var xrt = yc(), + dX = Ci(); + function rIr(r) { + return function (t) { + return t.lift(new nIr(r)); + }; + } + gC.window = rIr; + var nIr = (function () { + function r(e) { + this.windowBoundaries = e; + } + return ( + (r.prototype.call = function (e, t) { + var n = new aIr(e), + a = t.subscribe(n); + return ( + a.closed || + n.add( + dX.innerSubscribe( + this.windowBoundaries, + new dX.SimpleInnerSubscriber(n) + ) + ), + a + ); + }), + r + ); + })(), + aIr = (function (r) { + tIr(e, r); + function e(t) { + var n = r.call(this, t) || this; + return (n.window = new xrt.Subject()), t.next(n.window), n; + } + return ( + (e.prototype.notifyNext = function () { + this.openWindow(); + }), + (e.prototype.notifyError = function (t) { + this._error(t); + }), + (e.prototype.notifyComplete = function () { + this._complete(); + }), + (e.prototype._next = function (t) { + this.window.next(t); + }), + (e.prototype._error = function (t) { + this.window.error(t), this.destination.error(t); + }), + (e.prototype._complete = function () { + this.window.complete(), this.destination.complete(); + }), + (e.prototype._unsubscribe = function () { + this.window = null; + }), + (e.prototype.openWindow = function () { + var t = this.window; + t && t.complete(); + var n = this.destination, + a = (this.window = new xrt.Subject()); + n.next(a); + }), + e + ); + })(dX.SimpleOuterSubscriber); + }); + var Crt = N((bC) => { + "use strict"; + _(); + x(); + var iIr = + (bC && bC.__extends) || + (function () { + var r = function (e, t) { + return ( + (r = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (n, a) { + n.__proto__ = a; + }) || + function (n, a) { + for (var i in a) a.hasOwnProperty(i) && (n[i] = a[i]); + }), + r(e, t) + ); + }; + return function (e, t) { + r(e, t); + function n() { + this.constructor = e; + } + e.prototype = + t === null + ? Object.create(t) + : ((n.prototype = t.prototype), new n()); + }; + })(); + Object.defineProperty(bC, "__esModule", { value: !0 }); + var sIr = sr(), + Ert = yc(); + function oIr(r, e) { + return ( + e === void 0 && (e = 0), + function (n) { + return n.lift(new cIr(r, e)); + } + ); + } + bC.windowCount = oIr; + var cIr = (function () { + function r(e, t) { + (this.windowSize = e), (this.startWindowEvery = t); + } + return ( + (r.prototype.call = function (e, t) { + return t.subscribe( + new uIr(e, this.windowSize, this.startWindowEvery) + ); + }), + r + ); + })(), + uIr = (function (r) { + iIr(e, r); + function e(t, n, a) { + var i = r.call(this, t) || this; + return ( + (i.destination = t), + (i.windowSize = n), + (i.startWindowEvery = a), + (i.windows = [new Ert.Subject()]), + (i.count = 0), + t.next(i.windows[0]), + i + ); + } + return ( + (e.prototype._next = function (t) { + for ( + var n = + this.startWindowEvery > 0 + ? this.startWindowEvery + : this.windowSize, + a = this.destination, + i = this.windowSize, + s = this.windows, + c = s.length, + l = 0; + l < c && !this.closed; + l++ + ) + s[l].next(t); + var d = this.count - i + 1; + if ( + (d >= 0 && d % n === 0 && !this.closed && s.shift().complete(), + ++this.count % n === 0 && !this.closed) + ) { + var m = new Ert.Subject(); + s.push(m), a.next(m); + } + }), + (e.prototype._error = function (t) { + var n = this.windows; + if (n) for (; n.length > 0 && !this.closed; ) n.shift().error(t); + this.destination.error(t); + }), + (e.prototype._complete = function () { + var t = this.windows; + if (t) for (; t.length > 0 && !this.closed; ) t.shift().complete(); + this.destination.complete(); + }), + (e.prototype._unsubscribe = function () { + (this.count = 0), (this.windows = null); + }), + e + ); + })(sIr.Subscriber); + }); + var Srt = N((vC) => { + "use strict"; + _(); + x(); + var Art = + (vC && vC.__extends) || + (function () { + var r = function (e, t) { + return ( + (r = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (n, a) { + n.__proto__ = a; + }) || + function (n, a) { + for (var i in a) a.hasOwnProperty(i) && (n[i] = a[i]); + }), + r(e, t) + ); + }; + return function (e, t) { + r(e, t); + function n() { + this.constructor = e; + } + e.prototype = + t === null + ? Object.create(t) + : ((n.prototype = t.prototype), new n()); + }; + })(); + Object.defineProperty(vC, "__esModule", { value: !0 }); + var lIr = yc(), + dIr = Hc(), + pIr = sr(), + Irt = bE(), + pX = dp(); + function hIr(r) { + var e = dIr.async, + t = null, + n = Number.POSITIVE_INFINITY; + return ( + pX.isScheduler(arguments[3]) && (e = arguments[3]), + pX.isScheduler(arguments[2]) + ? (e = arguments[2]) + : Irt.isNumeric(arguments[2]) && (n = Number(arguments[2])), + pX.isScheduler(arguments[1]) + ? (e = arguments[1]) + : Irt.isNumeric(arguments[1]) && (t = Number(arguments[1])), + function (i) { + return i.lift(new fIr(r, t, n, e)); + } + ); + } + vC.windowTime = hIr; + var fIr = (function () { + function r(e, t, n, a) { + (this.windowTimeSpan = e), + (this.windowCreationInterval = t), + (this.maxWindowSize = n), + (this.scheduler = a); + } + return ( + (r.prototype.call = function (e, t) { + return t.subscribe( + new yIr( + e, + this.windowTimeSpan, + this.windowCreationInterval, + this.maxWindowSize, + this.scheduler + ) + ); + }), + r + ); + })(), + mIr = (function (r) { + Art(e, r); + function e() { + var t = (r !== null && r.apply(this, arguments)) || this; + return (t._numberOfNextedValues = 0), t; + } + return ( + (e.prototype.next = function (t) { + this._numberOfNextedValues++, r.prototype.next.call(this, t); + }), + Object.defineProperty(e.prototype, "numberOfNextedValues", { + get: function () { + return this._numberOfNextedValues; + }, + enumerable: !0, + configurable: !0, + }), + e + ); + })(lIr.Subject), + yIr = (function (r) { + Art(e, r); + function e(t, n, a, i, s) { + var c = r.call(this, t) || this; + (c.destination = t), + (c.windowTimeSpan = n), + (c.windowCreationInterval = a), + (c.maxWindowSize = i), + (c.scheduler = s), + (c.windows = []); + var l = c.openWindow(); + if (a !== null && a >= 0) { + var d = { subscriber: c, window: l, context: null }, + m = { + windowTimeSpan: n, + windowCreationInterval: a, + subscriber: c, + scheduler: s, + }; + c.add(s.schedule(krt, n, d)), c.add(s.schedule(bIr, a, m)); + } else { + var w = { subscriber: c, window: l, windowTimeSpan: n }; + c.add(s.schedule(gIr, n, w)); + } + return c; + } + return ( + (e.prototype._next = function (t) { + for (var n = this.windows, a = n.length, i = 0; i < a; i++) { + var s = n[i]; + s.closed || + (s.next(t), + s.numberOfNextedValues >= this.maxWindowSize && + this.closeWindow(s)); + } + }), + (e.prototype._error = function (t) { + for (var n = this.windows; n.length > 0; ) n.shift().error(t); + this.destination.error(t); + }), + (e.prototype._complete = function () { + for (var t = this.windows; t.length > 0; ) { + var n = t.shift(); + n.closed || n.complete(); + } + this.destination.complete(); + }), + (e.prototype.openWindow = function () { + var t = new mIr(); + this.windows.push(t); + var n = this.destination; + return n.next(t), t; + }), + (e.prototype.closeWindow = function (t) { + t.complete(); + var n = this.windows; + n.splice(n.indexOf(t), 1); + }), + e + ); + })(pIr.Subscriber); + function gIr(r) { + var e = r.subscriber, + t = r.windowTimeSpan, + n = r.window; + n && e.closeWindow(n), (r.window = e.openWindow()), this.schedule(r, t); + } + function bIr(r) { + var e = r.windowTimeSpan, + t = r.subscriber, + n = r.scheduler, + a = r.windowCreationInterval, + i = t.openWindow(), + s = this, + c = { action: s, subscription: null }, + l = { subscriber: t, window: i, context: c }; + (c.subscription = n.schedule(krt, e, l)), + s.add(c.subscription), + s.schedule(r, a); + } + function krt(r) { + var e = r.subscriber, + t = r.window, + n = r.context; + n && n.action && n.subscription && n.action.remove(n.subscription), + e.closeWindow(t); + } + }); + var Prt = N((wC) => { + "use strict"; + _(); + x(); + var vIr = + (wC && wC.__extends) || + (function () { + var r = function (e, t) { + return ( + (r = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (n, a) { + n.__proto__ = a; + }) || + function (n, a) { + for (var i in a) a.hasOwnProperty(i) && (n[i] = a[i]); + }), + r(e, t) + ); + }; + return function (e, t) { + r(e, t); + function n() { + this.constructor = e; + } + e.prototype = + t === null + ? Object.create(t) + : ((n.prototype = t.prototype), new n()); + }; + })(); + Object.defineProperty(wC, "__esModule", { value: !0 }); + var wIr = yc(), + _Ir = ws(), + xIr = D0(), + Mrt = q0(); + function TIr(r, e) { + return function (t) { + return t.lift(new EIr(r, e)); + }; + } + wC.windowToggle = TIr; + var EIr = (function () { + function r(e, t) { + (this.openings = e), (this.closingSelector = t); + } + return ( + (r.prototype.call = function (e, t) { + return t.subscribe(new CIr(e, this.openings, this.closingSelector)); + }), + r + ); + })(), + CIr = (function (r) { + vIr(e, r); + function e(t, n, a) { + var i = r.call(this, t) || this; + return ( + (i.openings = n), + (i.closingSelector = a), + (i.contexts = []), + i.add((i.openSubscription = Mrt.subscribeToResult(i, n, n))), + i + ); + } + return ( + (e.prototype._next = function (t) { + var n = this.contexts; + if (n) + for (var a = n.length, i = 0; i < a; i++) n[i].window.next(t); + }), + (e.prototype._error = function (t) { + var n = this.contexts; + if (((this.contexts = null), n)) + for (var a = n.length, i = -1; ++i < a; ) { + var s = n[i]; + s.window.error(t), s.subscription.unsubscribe(); + } + r.prototype._error.call(this, t); + }), + (e.prototype._complete = function () { + var t = this.contexts; + if (((this.contexts = null), t)) + for (var n = t.length, a = -1; ++a < n; ) { + var i = t[a]; + i.window.complete(), i.subscription.unsubscribe(); + } + r.prototype._complete.call(this); + }), + (e.prototype._unsubscribe = function () { + var t = this.contexts; + if (((this.contexts = null), t)) + for (var n = t.length, a = -1; ++a < n; ) { + var i = t[a]; + i.window.unsubscribe(), i.subscription.unsubscribe(); + } + }), + (e.prototype.notifyNext = function (t, n, a, i, s) { + if (t === this.openings) { + var c = void 0; + try { + var l = this.closingSelector; + c = l(n); + } catch (I) { + return this.error(I); + } + var d = new wIr.Subject(), + m = new _Ir.Subscription(), + w = { window: d, subscription: m }; + this.contexts.push(w); + var C = Mrt.subscribeToResult(this, c, w); + C.closed + ? this.closeWindow(this.contexts.length - 1) + : ((C.context = w), m.add(C)), + this.destination.next(d); + } else this.closeWindow(this.contexts.indexOf(t)); + }), + (e.prototype.notifyError = function (t) { + this.error(t); + }), + (e.prototype.notifyComplete = function (t) { + t !== this.openSubscription && + this.closeWindow(this.contexts.indexOf(t.context)); + }), + (e.prototype.closeWindow = function (t) { + if (t !== -1) { + var n = this.contexts, + a = n[t], + i = a.window, + s = a.subscription; + n.splice(t, 1), i.complete(), s.unsubscribe(); + } + }), + e + ); + })(xIr.OuterSubscriber); + }); + var Rrt = N((_C) => { + "use strict"; + _(); + x(); + var IIr = + (_C && _C.__extends) || + (function () { + var r = function (e, t) { + return ( + (r = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (n, a) { + n.__proto__ = a; + }) || + function (n, a) { + for (var i in a) a.hasOwnProperty(i) && (n[i] = a[i]); + }), + r(e, t) + ); + }; + return function (e, t) { + r(e, t); + function n() { + this.constructor = e; + } + e.prototype = + t === null + ? Object.create(t) + : ((n.prototype = t.prototype), new n()); + }; + })(); + Object.defineProperty(_C, "__esModule", { value: !0 }); + var AIr = yc(), + kIr = D0(), + SIr = q0(); + function MIr(r) { + return function (t) { + return t.lift(new PIr(r)); + }; + } + _C.windowWhen = MIr; + var PIr = (function () { + function r(e) { + this.closingSelector = e; + } + return ( + (r.prototype.call = function (e, t) { + return t.subscribe(new RIr(e, this.closingSelector)); + }), + r + ); + })(), + RIr = (function (r) { + IIr(e, r); + function e(t, n) { + var a = r.call(this, t) || this; + return ( + (a.destination = t), (a.closingSelector = n), a.openWindow(), a + ); + } + return ( + (e.prototype.notifyNext = function (t, n, a, i, s) { + this.openWindow(s); + }), + (e.prototype.notifyError = function (t) { + this._error(t); + }), + (e.prototype.notifyComplete = function (t) { + this.openWindow(t); + }), + (e.prototype._next = function (t) { + this.window.next(t); + }), + (e.prototype._error = function (t) { + this.window.error(t), + this.destination.error(t), + this.unsubscribeClosingNotification(); + }), + (e.prototype._complete = function () { + this.window.complete(), + this.destination.complete(), + this.unsubscribeClosingNotification(); + }), + (e.prototype.unsubscribeClosingNotification = function () { + this.closingNotification && this.closingNotification.unsubscribe(); + }), + (e.prototype.openWindow = function (t) { + t === void 0 && (t = null), t && (this.remove(t), t.unsubscribe()); + var n = this.window; + n && n.complete(); + var a = (this.window = new AIr.Subject()); + this.destination.next(a); + var i; + try { + var s = this.closingSelector; + i = s(); + } catch (c) { + this.destination.error(c), this.window.error(c); + return; + } + this.add( + (this.closingNotification = SIr.subscribeToResult(this, i)) + ); + }), + e + ); + })(kIr.OuterSubscriber); + }); + var Brt = N((xC) => { + "use strict"; + _(); + x(); + var BIr = + (xC && xC.__extends) || + (function () { + var r = function (e, t) { + return ( + (r = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (n, a) { + n.__proto__ = a; + }) || + function (n, a) { + for (var i in a) a.hasOwnProperty(i) && (n[i] = a[i]); + }), + r(e, t) + ); + }; + return function (e, t) { + r(e, t); + function n() { + this.constructor = e; + } + e.prototype = + t === null + ? Object.create(t) + : ((n.prototype = t.prototype), new n()); + }; + })(); + Object.defineProperty(xC, "__esModule", { value: !0 }); + var NIr = D0(), + OIr = q0(); + function LIr() { + for (var r = [], e = 0; e < arguments.length; e++) r[e] = arguments[e]; + return function (t) { + var n; + typeof r[r.length - 1] == "function" && (n = r.pop()); + var a = r; + return t.lift(new DIr(a, n)); + }; + } + xC.withLatestFrom = LIr; + var DIr = (function () { + function r(e, t) { + (this.observables = e), (this.project = t); + } + return ( + (r.prototype.call = function (e, t) { + return t.subscribe(new qIr(e, this.observables, this.project)); + }), + r + ); + })(), + qIr = (function (r) { + BIr(e, r); + function e(t, n, a) { + var i = r.call(this, t) || this; + (i.observables = n), (i.project = a), (i.toRespond = []); + var s = n.length; + i.values = new Array(s); + for (var c = 0; c < s; c++) i.toRespond.push(c); + for (var c = 0; c < s; c++) { + var l = n[c]; + i.add(OIr.subscribeToResult(i, l, void 0, c)); + } + return i; + } + return ( + (e.prototype.notifyNext = function (t, n, a) { + this.values[a] = n; + var i = this.toRespond; + if (i.length > 0) { + var s = i.indexOf(a); + s !== -1 && i.splice(s, 1); + } + }), + (e.prototype.notifyComplete = function () {}), + (e.prototype._next = function (t) { + if (this.toRespond.length === 0) { + var n = [t].concat(this.values); + this.project ? this._tryProject(n) : this.destination.next(n); + } + }), + (e.prototype._tryProject = function (t) { + var n; + try { + n = this.project.apply(this, t); + } catch (a) { + this.destination.error(a); + return; + } + this.destination.next(n); + }), + e + ); + })(NIr.OuterSubscriber); + }); + var Nrt = N((hX) => { + "use strict"; + _(); + x(); + Object.defineProperty(hX, "__esModule", { value: !0 }); + var FIr = TB(); + function WIr() { + for (var r = [], e = 0; e < arguments.length; e++) r[e] = arguments[e]; + return function (n) { + return n.lift.call(FIr.zip.apply(void 0, [n].concat(r))); + }; + } + hX.zip = WIr; + }); + var Ort = N((fX) => { + "use strict"; + _(); + x(); + Object.defineProperty(fX, "__esModule", { value: !0 }); + var UIr = TB(); + function HIr(r) { + return function (e) { + return e.lift(new UIr.ZipOperator(r)); + }; + } + fX.zipAll = HIr; + }); + var KB = N((mt) => { + "use strict"; + _(); + x(); + Object.defineProperty(mt, "__esModule", { value: !0 }); + var zIr = aQ(); + mt.audit = zIr.audit; + var jIr = bet(); + mt.auditTime = jIr.auditTime; + var KIr = vet(); + mt.buffer = KIr.buffer; + var VIr = xet(); + mt.bufferCount = VIr.bufferCount; + var GIr = Cet(); + mt.bufferTime = GIr.bufferTime; + var YIr = Aet(); + mt.bufferToggle = YIr.bufferToggle; + var $Ir = ket(); + mt.bufferWhen = $Ir.bufferWhen; + var JIr = Met(); + mt.catchError = JIr.catchError; + var ZIr = Pet(); + mt.combineAll = ZIr.combineAll; + var QIr = Ret(); + mt.combineLatest = QIr.combineLatest; + var XIr = Bet(); + mt.concat = XIr.concat; + var eAr = cZ(); + mt.concatAll = eAr.concatAll; + var tAr = hQ(); + mt.concatMap = tAr.concatMap; + var rAr = Net(); + mt.concatMapTo = rAr.concatMapTo; + var nAr = Oet(); + mt.count = nAr.count; + var aAr = Let(); + mt.debounce = aAr.debounce; + var iAr = Det(); + mt.debounceTime = iAr.debounceTime; + var sAr = E_(); + mt.defaultIfEmpty = sAr.defaultIfEmpty; + var oAr = Fet(); + mt.delay = oAr.delay; + var cAr = Uet(); + mt.delayWhen = cAr.delayWhen; + var uAr = Het(); + mt.dematerialize = uAr.dematerialize; + var lAr = jet(); + mt.distinct = lAr.distinct; + var dAr = wQ(); + mt.distinctUntilChanged = dAr.distinctUntilChanged; + var pAr = Ket(); + mt.distinctUntilKeyChanged = pAr.distinctUntilKeyChanged; + var hAr = Get(); + mt.elementAt = hAr.elementAt; + var fAr = Yet(); + mt.endWith = fAr.endWith; + var mAr = $et(); + mt.every = mAr.every; + var yAr = Jet(); + mt.exhaust = yAr.exhaust; + var gAr = Qet(); + mt.exhaustMap = gAr.exhaustMap; + var bAr = ttt(); + mt.expand = bAr.expand; + var vAr = xb(); + mt.filter = vAr.filter; + var wAr = rtt(); + mt.finalize = wAr.finalize; + var _Ar = AQ(); + mt.find = _Ar.find; + var xAr = itt(); + mt.findIndex = xAr.findIndex; + var TAr = stt(); + mt.first = TAr.first; + var EAr = bJ(); + mt.groupBy = EAr.groupBy; + var CAr = ott(); + mt.ignoreElements = CAr.ignoreElements; + var IAr = ctt(); + mt.isEmpty = IAr.isEmpty; + var AAr = utt(); + mt.last = AAr.last; + var kAr = tl(); + mt.map = kAr.map; + var SAr = ltt(); + mt.mapTo = SAr.mapTo; + var MAr = dtt(); + mt.materialize = MAr.materialize; + var PAr = mtt(); + mt.max = PAr.max; + var RAr = ytt(); + mt.merge = RAr.merge; + var BAr = gB(); + mt.mergeAll = BAr.mergeAll; + var Lrt = yE(); + mt.mergeMap = Lrt.mergeMap; + mt.flatMap = Lrt.flatMap; + var NAr = btt(); + mt.mergeMapTo = NAr.mergeMapTo; + var OAr = _tt(); + mt.mergeScan = OAr.mergeScan; + var LAr = xtt(); + mt.min = LAr.min; + var DAr = Pb(); + mt.multicast = DAr.multicast; + var qAr = PJ(); + mt.observeOn = qAr.observeOn; + var FAr = Itt(); + mt.onErrorResumeNext = FAr.onErrorResumeNext; + var WAr = Att(); + mt.pairwise = WAr.pairwise; + var UAr = Stt(); + mt.partition = UAr.partition; + var HAr = Mtt(); + mt.pluck = HAr.pluck; + var zAr = Btt(); + mt.publish = zAr.publish; + var jAr = Ntt(); + mt.publishBehavior = jAr.publishBehavior; + var KAr = Ott(); + mt.publishLast = KAr.publishLast; + var VAr = Ltt(); + mt.publishReplay = VAr.publishReplay; + var GAr = Dtt(); + mt.race = GAr.race; + var YAr = ZE(); + mt.reduce = YAr.reduce; + var $Ar = Ftt(); + mt.repeat = $Ar.repeat; + var JAr = Wtt(); + mt.repeatWhen = JAr.repeatWhen; + var ZAr = Utt(); + mt.retry = ZAr.retry; + var QAr = Htt(); + mt.retryWhen = QAr.retryWhen; + var XAr = sB(); + mt.refCount = XAr.refCount; + var ekr = ztt(); + mt.sample = ekr.sample; + var tkr = jtt(); + mt.sampleTime = tkr.sampleTime; + var rkr = WB(); + mt.scan = rkr.scan; + var nkr = $tt(); + mt.sequenceEqual = nkr.sequenceEqual; + var akr = Jtt(); + mt.share = akr.share; + var ikr = Ztt(); + mt.shareReplay = ikr.shareReplay; + var skr = Qtt(); + mt.single = skr.single; + var okr = Xtt(); + mt.skip = okr.skip; + var ckr = trt(); + mt.skipLast = ckr.skipLast; + var ukr = rrt(); + mt.skipUntil = ukr.skipUntil; + var lkr = nrt(); + mt.skipWhile = lkr.skipWhile; + var dkr = irt(); + mt.startWith = dkr.startWith; + var pkr = ort(); + mt.subscribeOn = pkr.subscribeOn; + var hkr = urt(); + mt.switchAll = hkr.switchAll; + var fkr = HB(); + mt.switchMap = fkr.switchMap; + var mkr = drt(); + mt.switchMapTo = mkr.switchMapTo; + var ykr = qB(); + mt.take = ykr.take; + var gkr = FB(); + mt.takeLast = gkr.takeLast; + var bkr = prt(); + mt.takeUntil = bkr.takeUntil; + var vkr = hrt(); + mt.takeWhile = vkr.takeWhile; + var wkr = frt(); + mt.tap = wkr.tap; + var _kr = sX(); + mt.throttle = _kr.throttle; + var xkr = mrt(); + mt.throttleTime = xkr.throttleTime; + var Tkr = FE(); + mt.throwIfEmpty = Tkr.throwIfEmpty; + var Ekr = grt(); + mt.timeInterval = Ekr.timeInterval; + var Ckr = brt(); + mt.timeout = Ckr.timeout; + var Ikr = cX(); + mt.timeoutWith = Ikr.timeoutWith; + var Akr = wrt(); + mt.timestamp = Akr.timestamp; + var kkr = _rt(); + mt.toArray = kkr.toArray; + var Skr = Trt(); + mt.window = Skr.window; + var Mkr = Crt(); + mt.windowCount = Mkr.windowCount; + var Pkr = Srt(); + mt.windowTime = Pkr.windowTime; + var Rkr = Prt(); + mt.windowToggle = Rkr.windowToggle; + var Bkr = Rrt(); + mt.windowWhen = Bkr.windowWhen; + var Nkr = Brt(); + mt.withLatestFrom = Nkr.withLatestFrom; + var Okr = Nrt(); + mt.zip = Okr.zip; + var Lkr = Ort(); + mt.zipAll = Lkr.zipAll; + }); + var Drt = N((pd) => { + "use strict"; + _(); + x(); + Object.defineProperty(pd, "__esModule", { value: !0 }); + pd.ClientMessagePublishEvent = + pd.ClientMessageSetSessionConfig = + pd.ClientMessageGetSessionConfig = + pd.ClientMessageIsLinked = + pd.ClientMessageHostSession = + void 0; + function Dkr(r) { + return Object.assign({ type: "HostSession" }, r); + } + pd.ClientMessageHostSession = Dkr; + function qkr(r) { + return Object.assign({ type: "IsLinked" }, r); + } + pd.ClientMessageIsLinked = qkr; + function Fkr(r) { + return Object.assign({ type: "GetSessionConfig" }, r); + } + pd.ClientMessageGetSessionConfig = Fkr; + function Wkr(r) { + return Object.assign({ type: "SetSessionConfig" }, r); + } + pd.ClientMessageSetSessionConfig = Wkr; + function Ukr(r) { + return Object.assign({ type: "PublishEvent" }, r); + } + pd.ClientMessagePublishEvent = Ukr; + }); + var Frt = N((Nb) => { + "use strict"; + _(); + x(); + Object.defineProperty(Nb, "__esModule", { value: !0 }); + Nb.RxWebSocket = Nb.ConnectionState = void 0; + var A_ = _E(), + qrt = KB(), + k_; + (function (r) { + (r[(r.DISCONNECTED = 0)] = "DISCONNECTED"), + (r[(r.CONNECTING = 1)] = "CONNECTING"), + (r[(r.CONNECTED = 2)] = "CONNECTED"); + })((k_ = Nb.ConnectionState || (Nb.ConnectionState = {}))); + var mX = class { + constructor(e, t = WebSocket) { + (this.WebSocketClass = t), + (this.webSocket = null), + (this.connectionStateSubject = new A_.BehaviorSubject( + k_.DISCONNECTED + )), + (this.incomingDataSubject = new A_.Subject()), + (this.url = e.replace(/^http/, "ws")); + } + connect() { + return this.webSocket + ? (0, A_.throwError)(new Error("webSocket object is not null")) + : new A_.Observable((e) => { + let t; + try { + this.webSocket = t = new this.WebSocketClass(this.url); + } catch (n) { + e.error(n); + return; + } + this.connectionStateSubject.next(k_.CONNECTING), + (t.onclose = (n) => { + this.clearWebSocket(), + e.error( + new Error(`websocket error ${n.code}: ${n.reason}`) + ), + this.connectionStateSubject.next(k_.DISCONNECTED); + }), + (t.onopen = (n) => { + e.next(), + e.complete(), + this.connectionStateSubject.next(k_.CONNECTED); + }), + (t.onmessage = (n) => { + this.incomingDataSubject.next(n.data); + }); + }).pipe((0, qrt.take)(1)); + } + disconnect() { + let { webSocket: e } = this; + if (!!e) { + this.clearWebSocket(), + this.connectionStateSubject.next(k_.DISCONNECTED); + try { + e.close(); + } catch {} + } + } + get connectionState$() { + return this.connectionStateSubject.asObservable(); + } + get incomingData$() { + return this.incomingDataSubject.asObservable(); + } + get incomingJSONData$() { + return this.incomingData$.pipe( + (0, qrt.flatMap)((e) => { + let t; + try { + t = JSON.parse(e); + } catch { + return (0, A_.empty)(); + } + return (0, A_.of)(t); + }) + ); + } + sendData(e) { + let { webSocket: t } = this; + if (!t) throw new Error("websocket is not connected"); + t.send(e); + } + clearWebSocket() { + let { webSocket: e } = this; + !e || + ((this.webSocket = null), + (e.onclose = null), + (e.onerror = null), + (e.onmessage = null), + (e.onopen = null)); + } + }; + Nb.RxWebSocket = mX; + }); + var Wrt = N((VB) => { + "use strict"; + _(); + x(); + Object.defineProperty(VB, "__esModule", { value: !0 }); + VB.isServerMessageFail = void 0; + function Hkr(r) { + return ( + r && + r.type === "Fail" && + typeof r.id == "number" && + typeof r.sessionId == "string" && + typeof r.error == "string" + ); + } + VB.isServerMessageFail = Hkr; + }); + var Hrt = N((YB) => { + "use strict"; + _(); + x(); + Object.defineProperty(YB, "__esModule", { value: !0 }); + YB.WalletSDKConnection = void 0; + var hp = _E(), + yn = KB(), + TC = w7(), + S_ = A6(), + EC = Drt(), + CC = d7(), + GB = Frt(), + yX = Wrt(), + Urt = 1e4, + zkr = 6e4, + gX = class { + constructor(e, t, n, a, i = WebSocket) { + (this.sessionId = e), + (this.sessionKey = t), + (this.diagnostic = a), + (this.subscriptions = new hp.Subscription()), + (this.destroyed = !1), + (this.lastHeartbeatResponse = 0), + (this.nextReqId = (0, S_.IntNumber)(1)), + (this.connectedSubject = new hp.BehaviorSubject(!1)), + (this.linkedSubject = new hp.BehaviorSubject(!1)), + (this.sessionConfigSubject = new hp.ReplaySubject(1)); + let s = new GB.RxWebSocket(n + "/rpc", i); + (this.ws = s), + this.subscriptions.add( + s.connectionState$ + .pipe( + (0, yn.tap)((c) => { + var l; + return (l = this.diagnostic) === null || l === void 0 + ? void 0 + : l.log(CC.EVENTS.CONNECTED_STATE_CHANGE, { + state: c, + sessionIdHash: TC.Session.hash(e), + }); + }), + (0, yn.skip)(1), + (0, yn.filter)( + (c) => + c === GB.ConnectionState.DISCONNECTED && !this.destroyed + ), + (0, yn.delay)(5e3), + (0, yn.filter)((c) => !this.destroyed), + (0, yn.flatMap)((c) => s.connect()), + (0, yn.retry)() + ) + .subscribe() + ), + this.subscriptions.add( + s.connectionState$ + .pipe( + (0, yn.skip)(2), + (0, yn.switchMap)((c) => + (0, hp.iif)( + () => c === GB.ConnectionState.CONNECTED, + this.authenticate().pipe( + (0, yn.tap)((l) => this.sendIsLinked()), + (0, yn.tap)((l) => this.sendGetSessionConfig()), + (0, yn.map)((l) => !0) + ), + (0, hp.of)(!1) + ) + ), + (0, yn.distinctUntilChanged)(), + (0, yn.catchError)((c) => (0, hp.of)(!1)) + ) + .subscribe((c) => this.connectedSubject.next(c)) + ), + this.subscriptions.add( + s.connectionState$ + .pipe( + (0, yn.skip)(1), + (0, yn.switchMap)((c) => + (0, hp.iif)( + () => c === GB.ConnectionState.CONNECTED, + (0, hp.timer)(0, Urt) + ) + ) + ) + .subscribe((c) => + c === 0 ? this.updateLastHeartbeat() : this.heartbeat() + ) + ), + this.subscriptions.add( + s.incomingData$ + .pipe((0, yn.filter)((c) => c === "h")) + .subscribe((c) => this.updateLastHeartbeat()) + ), + this.subscriptions.add( + s.incomingJSONData$ + .pipe( + (0, yn.filter)((c) => + ["IsLinkedOK", "Linked"].includes(c.type) + ) + ) + .subscribe((c) => { + var l; + let d = c; + (l = this.diagnostic) === null || + l === void 0 || + l.log(CC.EVENTS.LINKED, { + sessionIdHash: TC.Session.hash(e), + linked: d.linked, + type: c.type, + onlineGuests: d.onlineGuests, + }), + this.linkedSubject.next(d.linked || d.onlineGuests > 0); + }) + ), + this.subscriptions.add( + s.incomingJSONData$ + .pipe( + (0, yn.filter)((c) => + ["GetSessionConfigOK", "SessionConfigUpdated"].includes( + c.type + ) + ) + ) + .subscribe((c) => { + var l; + let d = c; + (l = this.diagnostic) === null || + l === void 0 || + l.log(CC.EVENTS.SESSION_CONFIG_RECEIVED, { + sessionIdHash: TC.Session.hash(e), + metadata_keys: + d && d.metadata ? Object.keys(d.metadata) : void 0, + }), + this.sessionConfigSubject.next({ + webhookId: d.webhookId, + webhookUrl: d.webhookUrl, + metadata: d.metadata, + }); + }) + ); + } + connect() { + var e; + if (this.destroyed) throw new Error("instance is destroyed"); + (e = this.diagnostic) === null || + e === void 0 || + e.log(CC.EVENTS.STARTED_CONNECTING, { + sessionIdHash: TC.Session.hash(this.sessionId), + }), + this.ws.connect().subscribe(); + } + destroy() { + var e; + this.subscriptions.unsubscribe(), + this.ws.disconnect(), + (e = this.diagnostic) === null || + e === void 0 || + e.log(CC.EVENTS.DISCONNECTED, { + sessionIdHash: TC.Session.hash(this.sessionId), + }), + (this.destroyed = !0); + } + get isDestroyed() { + return this.destroyed; + } + get connected$() { + return this.connectedSubject.asObservable(); + } + get onceConnected$() { + return this.connected$.pipe( + (0, yn.filter)((e) => e), + (0, yn.take)(1), + (0, yn.map)(() => {}) + ); + } + get linked$() { + return this.linkedSubject.asObservable(); + } + get onceLinked$() { + return this.linked$.pipe( + (0, yn.filter)((e) => e), + (0, yn.take)(1), + (0, yn.map)(() => {}) + ); + } + get sessionConfig$() { + return this.sessionConfigSubject.asObservable(); + } + get incomingEvent$() { + return this.ws.incomingJSONData$.pipe( + (0, yn.filter)((e) => { + if (e.type !== "Event") return !1; + let t = e; + return ( + typeof t.sessionId == "string" && + typeof t.eventId == "string" && + typeof t.event == "string" && + typeof t.data == "string" + ); + }), + (0, yn.map)((e) => e) + ); + } + setSessionMetadata(e, t) { + let n = (0, EC.ClientMessageSetSessionConfig)({ + id: (0, S_.IntNumber)(this.nextReqId++), + sessionId: this.sessionId, + metadata: { [e]: t }, + }); + return this.onceConnected$.pipe( + (0, yn.flatMap)((a) => this.makeRequest(n)), + (0, yn.map)((a) => { + if ((0, yX.isServerMessageFail)(a)) + throw new Error(a.error || "failed to set session metadata"); + }) + ); + } + publishEvent(e, t, n = !1) { + let a = (0, EC.ClientMessagePublishEvent)({ + id: (0, S_.IntNumber)(this.nextReqId++), + sessionId: this.sessionId, + event: e, + data: t, + callWebhook: n, + }); + return this.onceLinked$.pipe( + (0, yn.flatMap)((i) => this.makeRequest(a)), + (0, yn.map)((i) => { + if ((0, yX.isServerMessageFail)(i)) + throw new Error(i.error || "failed to publish event"); + return i.eventId; + }) + ); + } + sendData(e) { + this.ws.sendData(JSON.stringify(e)); + } + updateLastHeartbeat() { + this.lastHeartbeatResponse = Date.now(); + } + heartbeat() { + if (Date.now() - this.lastHeartbeatResponse > Urt * 2) { + this.ws.disconnect(); + return; + } + try { + this.ws.sendData("h"); + } catch {} + } + makeRequest(e, t = zkr) { + let n = e.id; + try { + this.sendData(e); + } catch (a) { + return (0, hp.throwError)(a); + } + return this.ws.incomingJSONData$.pipe( + (0, yn.timeoutWith)( + t, + (0, hp.throwError)(new Error(`request ${n} timed out`)) + ), + (0, yn.filter)((a) => a.id === n), + (0, yn.take)(1) + ); + } + authenticate() { + let e = (0, EC.ClientMessageHostSession)({ + id: (0, S_.IntNumber)(this.nextReqId++), + sessionId: this.sessionId, + sessionKey: this.sessionKey, + }); + return this.makeRequest(e).pipe( + (0, yn.map)((t) => { + if ((0, yX.isServerMessageFail)(t)) + throw new Error(t.error || "failed to authentcate"); + }) + ); + } + sendIsLinked() { + let e = (0, EC.ClientMessageIsLinked)({ + id: (0, S_.IntNumber)(this.nextReqId++), + sessionId: this.sessionId, + }); + this.sendData(e); + } + sendGetSessionConfig() { + let e = (0, EC.ClientMessageGetSessionConfig)({ + id: (0, S_.IntNumber)(this.nextReqId++), + sessionId: this.sessionId, + }); + this.sendData(e); + } + }; + YB.WalletSDKConnection = gX; + }); + var zrt = N(($B) => { + "use strict"; + _(); + x(); + Object.defineProperty($B, "__esModule", { value: !0 }); + $B.WalletUIError = void 0; + var Ob = class extends Error { + constructor(e, t) { + super(e), (this.message = e), (this.errorCode = t); + } + }; + $B.WalletUIError = Ob; + Ob.UserRejectedRequest = new Ob("User rejected request"); + Ob.SwitchEthereumChainUnsupportedChainId = new Ob( + "Unsupported chainId", + 4902 + ); + }); + var jrt = N((M_) => { + "use strict"; + _(); + x(); + Object.defineProperty(M_, "__esModule", { value: !0 }); + M_.decrypt = M_.encrypt = void 0; + var JB = Gf(); + async function jkr(r, e) { + if (e.length !== 64) throw Error("secret must be 256 bits"); + let t = crypto.getRandomValues(new Uint8Array(12)), + n = await crypto.subtle.importKey( + "raw", + (0, JB.hexStringToUint8Array)(e), + { name: "aes-gcm" }, + !1, + ["encrypt", "decrypt"] + ), + a = new TextEncoder(), + i = await window.crypto.subtle.encrypt( + { name: "AES-GCM", iv: t }, + n, + a.encode(r) + ), + s = 16, + c = i.slice(i.byteLength - s), + l = i.slice(0, i.byteLength - s), + d = new Uint8Array(c), + m = new Uint8Array(l), + w = new Uint8Array([...t, ...d, ...m]); + return (0, JB.uint8ArrayToHex)(w); + } + M_.encrypt = jkr; + function Kkr(r, e) { + if (e.length !== 64) throw Error("secret must be 256 bits"); + return new Promise((t, n) => { + (async function () { + let a = await crypto.subtle.importKey( + "raw", + (0, JB.hexStringToUint8Array)(e), + { name: "aes-gcm" }, + !1, + ["encrypt", "decrypt"] + ), + i = (0, JB.hexStringToUint8Array)(r), + s = i.slice(0, 12), + c = i.slice(12, 28), + l = i.slice(28), + d = new Uint8Array([...l, ...c]), + m = { name: "AES-GCM", iv: new Uint8Array(s) }; + try { + let w = await window.crypto.subtle.decrypt(m, a, d), + C = new TextDecoder(); + t(C.decode(w)); + } catch (w) { + n(w); + } + })(); + }); + } + M_.decrypt = Kkr; + }); + var bX = N((IC) => { + "use strict"; + _(); + x(); + Object.defineProperty(IC, "__esModule", { value: !0 }); + IC.Web3Method = void 0; + var Vkr; + (function (r) { + (r.requestEthereumAccounts = "requestEthereumAccounts"), + (r.signEthereumMessage = "signEthereumMessage"), + (r.signEthereumTransaction = "signEthereumTransaction"), + (r.submitEthereumTransaction = "submitEthereumTransaction"), + (r.ethereumAddressFromSignedMessage = + "ethereumAddressFromSignedMessage"), + (r.scanQRCode = "scanQRCode"), + (r.generic = "generic"), + (r.childRequestEthereumAccounts = "childRequestEthereumAccounts"), + (r.addEthereumChain = "addEthereumChain"), + (r.switchEthereumChain = "switchEthereumChain"), + (r.makeEthereumJSONRPCRequest = "makeEthereumJSONRPCRequest"), + (r.watchAsset = "watchAsset"), + (r.selectProvider = "selectProvider"); + })((Vkr = IC.Web3Method || (IC.Web3Method = {}))); + }); + var ZB = N((AC) => { + "use strict"; + _(); + x(); + Object.defineProperty(AC, "__esModule", { value: !0 }); + AC.RelayMessageType = void 0; + var Gkr; + (function (r) { + (r.SESSION_ID_REQUEST = "SESSION_ID_REQUEST"), + (r.SESSION_ID_RESPONSE = "SESSION_ID_RESPONSE"), + (r.LINKED = "LINKED"), + (r.UNLINKED = "UNLINKED"), + (r.WEB3_REQUEST = "WEB3_REQUEST"), + (r.WEB3_REQUEST_CANCELED = "WEB3_REQUEST_CANCELED"), + (r.WEB3_RESPONSE = "WEB3_RESPONSE"); + })((Gkr = AC.RelayMessageType || (AC.RelayMessageType = {}))); + }); + var Krt = N((QB) => { + "use strict"; + _(); + x(); + Object.defineProperty(QB, "__esModule", { value: !0 }); + QB.Web3RequestCanceledMessage = void 0; + var Ykr = ZB(); + function $kr(r) { + return { type: Ykr.RelayMessageType.WEB3_REQUEST_CANCELED, id: r }; + } + QB.Web3RequestCanceledMessage = $kr; + }); + var Vrt = N((XB) => { + "use strict"; + _(); + x(); + Object.defineProperty(XB, "__esModule", { value: !0 }); + XB.Web3RequestMessage = void 0; + var Jkr = ZB(); + function Zkr(r) { + return Object.assign({ type: Jkr.RelayMessageType.WEB3_REQUEST }, r); + } + XB.Web3RequestMessage = Zkr; + }); + var Grt = N((fi) => { + "use strict"; + _(); + x(); + Object.defineProperty(fi, "__esModule", { value: !0 }); + fi.EthereumAddressFromSignedMessageResponse = + fi.SubmitEthereumTransactionResponse = + fi.SignEthereumTransactionResponse = + fi.SignEthereumMessageResponse = + fi.isRequestEthereumAccountsResponse = + fi.SelectProviderResponse = + fi.WatchAssetReponse = + fi.RequestEthereumAccountsResponse = + fi.SwitchEthereumChainResponse = + fi.AddEthereumChainResponse = + fi.ErrorResponse = + void 0; + var Oh = bX(); + function Qkr(r, e, t) { + return { method: r, errorMessage: e, errorCode: t }; + } + fi.ErrorResponse = Qkr; + function Xkr(r) { + return { method: Oh.Web3Method.addEthereumChain, result: r }; + } + fi.AddEthereumChainResponse = Xkr; + function eSr(r) { + return { method: Oh.Web3Method.switchEthereumChain, result: r }; + } + fi.SwitchEthereumChainResponse = eSr; + function tSr(r) { + return { method: Oh.Web3Method.requestEthereumAccounts, result: r }; + } + fi.RequestEthereumAccountsResponse = tSr; + function rSr(r) { + return { method: Oh.Web3Method.watchAsset, result: r }; + } + fi.WatchAssetReponse = rSr; + function nSr(r) { + return { method: Oh.Web3Method.selectProvider, result: r }; + } + fi.SelectProviderResponse = nSr; + function aSr(r) { + return r && r.method === Oh.Web3Method.requestEthereumAccounts; + } + fi.isRequestEthereumAccountsResponse = aSr; + function iSr(r) { + return { method: Oh.Web3Method.signEthereumMessage, result: r }; + } + fi.SignEthereumMessageResponse = iSr; + function sSr(r) { + return { method: Oh.Web3Method.signEthereumTransaction, result: r }; + } + fi.SignEthereumTransactionResponse = sSr; + function oSr(r) { + return { method: Oh.Web3Method.submitEthereumTransaction, result: r }; + } + fi.SubmitEthereumTransactionResponse = oSr; + function cSr(r) { + return { + method: Oh.Web3Method.ethereumAddressFromSignedMessage, + result: r, + }; + } + fi.EthereumAddressFromSignedMessageResponse = cSr; + }); + var $rt = N((P_) => { + "use strict"; + _(); + x(); + Object.defineProperty(P_, "__esModule", { value: !0 }); + P_.isWeb3ResponseMessage = P_.Web3ResponseMessage = void 0; + var Yrt = ZB(); + function uSr(r) { + return Object.assign({ type: Yrt.RelayMessageType.WEB3_RESPONSE }, r); + } + P_.Web3ResponseMessage = uSr; + function lSr(r) { + return r && r.type === Yrt.RelayMessageType.WEB3_RESPONSE; + } + P_.isWeb3ResponseMessage = lSr; + }); + var Xrt = N((Iu) => { + "use strict"; + _(); + x(); + var dSr = + (Iu && Iu.__createBinding) || + (Object.create + ? function (r, e, t, n) { + n === void 0 && (n = t), + Object.defineProperty(r, n, { + enumerable: !0, + get: function () { + return e[t]; + }, + }); + } + : function (r, e, t, n) { + n === void 0 && (n = t), (r[n] = e[t]); + }), + pSr = + (Iu && Iu.__setModuleDefault) || + (Object.create + ? function (r, e) { + Object.defineProperty(r, "default", { enumerable: !0, value: e }); + } + : function (r, e) { + r.default = e; + }), + Zrt = + (Iu && Iu.__decorate) || + function (r, e, t, n) { + var a = arguments.length, + i = + a < 3 + ? e + : n === null + ? (n = Object.getOwnPropertyDescriptor(e, t)) + : n, + s; + if ( + typeof Reflect == "object" && + typeof Reflect.decorate == "function" + ) + i = Reflect.decorate(r, e, t, n); + else + for (var c = r.length - 1; c >= 0; c--) + (s = r[c]) && + (i = (a < 3 ? s(i) : a > 3 ? s(e, t, i) : s(e, t)) || i); + return a > 3 && i && Object.defineProperty(e, t, i), i; + }, + hSr = + (Iu && Iu.__importStar) || + function (r) { + if (r && r.__esModule) return r; + var e = {}; + if (r != null) + for (var t in r) + t !== "default" && + Object.prototype.hasOwnProperty.call(r, t) && + dSr(e, r, t); + return pSr(e, r), e; + }, + fSr = + (Iu && Iu.__importDefault) || + function (r) { + return r && r.__esModule ? r : { default: r }; + }; + Object.defineProperty(Iu, "__esModule", { value: !0 }); + Iu.WalletSDKRelay = void 0; + var Qrt = fSr(get()), + Jrt = u7(), + R_ = _E(), + _s = KB(), + gc = d7(), + mSr = Hrt(), + vX = zrt(), + ySr = A6(), + mi = Gf(), + j0 = hSr(jrt()), + K0 = w7(), + eN = s$(), + js = bX(), + gSr = Krt(), + bSr = Vrt(), + nl = Grt(), + zc = $rt(), + al = class extends eN.WalletSDKRelayAbstract { + constructor(e) { + var t; + super(), + (this.accountsCallback = null), + (this.chainCallback = null), + (this.dappDefaultChainSubject = new R_.BehaviorSubject(1)), + (this.dappDefaultChain = 1), + (this.appName = ""), + (this.appLogoUrl = null), + (this.subscriptions = new R_.Subscription()), + (this.linkAPIUrl = e.linkAPIUrl), + (this.storage = e.storage), + (this.options = e); + let { session: n, ui: a, connection: i } = this.subscribe(); + if ( + ((this._session = n), + (this.connection = i), + (this.relayEventManager = e.relayEventManager), + e.diagnosticLogger && e.eventListener) + ) + throw new Error( + "Can't have both eventListener and diagnosticLogger options, use only diagnosticLogger" + ); + e.eventListener + ? (this.diagnostic = { log: e.eventListener.onEvent }) + : (this.diagnostic = e.diagnosticLogger), + (this._reloadOnDisconnect = + (t = e.reloadOnDisconnect) !== null && t !== void 0 ? t : !0), + (this.ui = a); + } + subscribe() { + this.subscriptions.add( + this.dappDefaultChainSubject.subscribe((a) => { + this.dappDefaultChain !== a && (this.dappDefaultChain = a); + }) + ); + let e = + K0.Session.load(this.storage) || + new K0.Session(this.storage).save(), + t = new mSr.WalletSDKConnection( + e.id, + e.key, + this.linkAPIUrl, + this.diagnostic + ); + this.subscriptions.add( + t.sessionConfig$.subscribe({ + next: (a) => { + this.onSessionConfigChanged(a); + }, + error: () => { + var a; + (a = this.diagnostic) === null || + a === void 0 || + a.log(gc.EVENTS.GENERAL_ERROR, { + message: "error while invoking session config callback", + }); + }, + }) + ), + this.subscriptions.add( + t.incomingEvent$ + .pipe((0, _s.filter)((a) => a.event === "Web3Response")) + .subscribe({ next: this.handleIncomingEvent }) + ), + this.subscriptions.add( + t.linked$ + .pipe( + (0, _s.skip)(1), + (0, _s.tap)((a) => { + var i; + this.isLinked = a; + let s = this.storage.getItem( + eN.LOCAL_STORAGE_ADDRESSES_KEY + ); + if ( + (a && (this.session.linked = a), + (this.isUnlinkedErrorState = !1), + s) + ) { + let c = s.split(" "), + l = + this.storage.getItem("IsStandaloneSigning") === + "true"; + if (c[0] !== "" && !a && this.session.linked && !l) { + this.isUnlinkedErrorState = !0; + let d = this.getSessionIdHash(); + (i = this.diagnostic) === null || + i === void 0 || + i.log(gc.EVENTS.UNLINKED_ERROR_STATE, { + sessionIdHash: d, + }); + } + } + }) + ) + .subscribe() + ), + this.subscriptions.add( + t.sessionConfig$ + .pipe( + (0, _s.filter)( + (a) => !!a.metadata && a.metadata.__destroyed === "1" + ) + ) + .subscribe(() => { + var a; + let i = t.isDestroyed; + return ( + (a = this.diagnostic) === null || + a === void 0 || + a.log(gc.EVENTS.METADATA_DESTROYED, { + alreadyDestroyed: i, + sessionIdHash: this.getSessionIdHash(), + }), + this.resetAndReload() + ); + }) + ), + this.subscriptions.add( + t.sessionConfig$ + .pipe( + (0, _s.filter)( + (a) => a.metadata && a.metadata.WalletUsername !== void 0 + ) + ) + .pipe( + (0, _s.mergeMap)((a) => + j0.decrypt(a.metadata.WalletUsername, e.secret) + ) + ) + .subscribe({ + next: (a) => { + this.storage.setItem(eN.WALLET_USER_NAME_KEY, a); + }, + error: () => { + var a; + (a = this.diagnostic) === null || + a === void 0 || + a.log(gc.EVENTS.GENERAL_ERROR, { + message: "Had error decrypting", + value: "username", + }); + }, + }) + ), + this.subscriptions.add( + t.sessionConfig$ + .pipe( + (0, _s.filter)( + (a) => a.metadata && a.metadata.AppVersion !== void 0 + ) + ) + .pipe( + (0, _s.mergeMap)((a) => + j0.decrypt(a.metadata.AppVersion, e.secret) + ) + ) + .subscribe({ + next: (a) => { + this.storage.setItem(eN.APP_VERSION_KEY, a); + }, + error: () => { + var a; + (a = this.diagnostic) === null || + a === void 0 || + a.log(gc.EVENTS.GENERAL_ERROR, { + message: "Had error decrypting", + value: "appversion", + }); + }, + }) + ), + this.subscriptions.add( + t.sessionConfig$ + .pipe( + (0, _s.filter)( + (a) => + a.metadata && + a.metadata.ChainId !== void 0 && + a.metadata.JsonRpcUrl !== void 0 + ) + ) + .pipe( + (0, _s.mergeMap)((a) => + (0, R_.zip)( + j0.decrypt(a.metadata.ChainId, e.secret), + j0.decrypt(a.metadata.JsonRpcUrl, e.secret) + ) + ) + ) + .pipe((0, _s.distinctUntilChanged)()) + .subscribe({ + next: ([a, i]) => { + this.chainCallback && this.chainCallback(a, i); + }, + error: () => { + var a; + (a = this.diagnostic) === null || + a === void 0 || + a.log(gc.EVENTS.GENERAL_ERROR, { + message: "Had error decrypting", + value: "chainId|jsonRpcUrl", + }); + }, + }) + ), + this.subscriptions.add( + t.sessionConfig$ + .pipe( + (0, _s.filter)( + (a) => a.metadata && a.metadata.EthereumAddress !== void 0 + ) + ) + .pipe( + (0, _s.mergeMap)((a) => + j0.decrypt(a.metadata.EthereumAddress, e.secret) + ) + ) + .subscribe({ + next: (a) => { + this.accountsCallback && this.accountsCallback([a]), + al.accountRequestCallbackIds.size > 0 && + (Array.from( + al.accountRequestCallbackIds.values() + ).forEach((i) => { + let s = (0, zc.Web3ResponseMessage)({ + id: i, + response: (0, nl.RequestEthereumAccountsResponse)([ + a, + ]), + }); + this.invokeCallback( + Object.assign(Object.assign({}, s), { id: i }) + ); + }), + al.accountRequestCallbackIds.clear()); + }, + error: () => { + var a; + (a = this.diagnostic) === null || + a === void 0 || + a.log(gc.EVENTS.GENERAL_ERROR, { + message: "Had error decrypting", + value: "selectedAddress", + }); + }, + }) + ), + this.subscriptions.add( + t.sessionConfig$ + .pipe( + (0, _s.filter)( + (a) => a.metadata && a.metadata.AppSrc !== void 0 + ) + ) + .pipe( + (0, _s.mergeMap)((a) => + j0.decrypt(a.metadata.AppSrc, e.secret) + ) + ) + .subscribe({ + next: (a) => { + this.ui.setAppSrc(a); + }, + error: () => { + var a; + (a = this.diagnostic) === null || + a === void 0 || + a.log(gc.EVENTS.GENERAL_ERROR, { + message: "Had error decrypting", + value: "appSrc", + }); + }, + }) + ); + let n = this.options.uiConstructor({ + linkAPIUrl: this.options.linkAPIUrl, + version: this.options.version, + darkMode: this.options.darkMode, + session: e, + connected$: t.connected$, + chainId$: this.dappDefaultChainSubject, + }); + return t.connect(), { session: e, ui: n, connection: t }; + } + attachUI() { + this.ui.attach(); + } + resetAndReload() { + this.connection + .setSessionMetadata("__destroyed", "1") + .pipe( + (0, _s.timeout)(1e3), + (0, _s.catchError)((e) => (0, R_.of)(null)) + ) + .subscribe( + (e) => { + var t, n, a; + let i = this.ui.isStandalone(); + try { + this.subscriptions.unsubscribe(); + } catch { + (t = this.diagnostic) === null || + t === void 0 || + t.log(gc.EVENTS.GENERAL_ERROR, { + message: "Had error unsubscribing", + }); + } + (n = this.diagnostic) === null || + n === void 0 || + n.log(gc.EVENTS.SESSION_STATE_CHANGE, { + method: "relay::resetAndReload", + sessionMetadataChange: "__destroyed, 1", + sessionIdHash: this.getSessionIdHash(), + }), + this.connection.destroy(); + let s = K0.Session.load(this.storage); + if ( + (s?.id === this._session.id + ? this.storage.clear() + : s && + ((a = this.diagnostic) === null || + a === void 0 || + a.log(gc.EVENTS.SKIPPED_CLEARING_SESSION, { + sessionIdHash: this.getSessionIdHash(), + storedSessionIdHash: K0.Session.hash(s.id), + })), + this._reloadOnDisconnect) + ) { + this.ui.reloadUI(); + return; + } + this.accountsCallback && this.accountsCallback([], !0); + let { session: c, ui: l, connection: d } = this.subscribe(); + (this._session = c), + (this.connection = d), + (this.ui = l), + i && this.ui.setStandalone && this.ui.setStandalone(!0), + this.attachUI(); + }, + (e) => { + var t; + (t = this.diagnostic) === null || + t === void 0 || + t.log(gc.EVENTS.FAILURE, { + method: "relay::resetAndReload", + message: `failed to reset and reload with ${e}`, + sessionIdHash: this.getSessionIdHash(), + }); + } + ); + } + setAppInfo(e, t) { + (this.appName = e), (this.appLogoUrl = t); + } + getStorageItem(e) { + return this.storage.getItem(e); + } + get session() { + return this._session; + } + setStorageItem(e, t) { + this.storage.setItem(e, t); + } + signEthereumMessage(e, t, n, a) { + return this.sendRequest({ + method: js.Web3Method.signEthereumMessage, + params: { + message: (0, mi.hexStringFromBuffer)(e, !0), + address: t, + addPrefix: n, + typedDataJson: a || null, + }, + }); + } + ethereumAddressFromSignedMessage(e, t, n) { + return this.sendRequest({ + method: js.Web3Method.ethereumAddressFromSignedMessage, + params: { + message: (0, mi.hexStringFromBuffer)(e, !0), + signature: (0, mi.hexStringFromBuffer)(t, !0), + addPrefix: n, + }, + }); + } + signEthereumTransaction(e) { + return this.sendRequest({ + method: js.Web3Method.signEthereumTransaction, + params: { + fromAddress: e.fromAddress, + toAddress: e.toAddress, + weiValue: (0, mi.bigIntStringFromBN)(e.weiValue), + data: (0, mi.hexStringFromBuffer)(e.data, !0), + nonce: e.nonce, + gasPriceInWei: e.gasPriceInWei + ? (0, mi.bigIntStringFromBN)(e.gasPriceInWei) + : null, + maxFeePerGas: e.gasPriceInWei + ? (0, mi.bigIntStringFromBN)(e.gasPriceInWei) + : null, + maxPriorityFeePerGas: e.gasPriceInWei + ? (0, mi.bigIntStringFromBN)(e.gasPriceInWei) + : null, + gasLimit: e.gasLimit + ? (0, mi.bigIntStringFromBN)(e.gasLimit) + : null, + chainId: e.chainId, + shouldSubmit: !1, + }, + }); + } + signAndSubmitEthereumTransaction(e) { + return this.sendRequest({ + method: js.Web3Method.signEthereumTransaction, + params: { + fromAddress: e.fromAddress, + toAddress: e.toAddress, + weiValue: (0, mi.bigIntStringFromBN)(e.weiValue), + data: (0, mi.hexStringFromBuffer)(e.data, !0), + nonce: e.nonce, + gasPriceInWei: e.gasPriceInWei + ? (0, mi.bigIntStringFromBN)(e.gasPriceInWei) + : null, + maxFeePerGas: e.maxFeePerGas + ? (0, mi.bigIntStringFromBN)(e.maxFeePerGas) + : null, + maxPriorityFeePerGas: e.maxPriorityFeePerGas + ? (0, mi.bigIntStringFromBN)(e.maxPriorityFeePerGas) + : null, + gasLimit: e.gasLimit + ? (0, mi.bigIntStringFromBN)(e.gasLimit) + : null, + chainId: e.chainId, + shouldSubmit: !0, + }, + }); + } + submitEthereumTransaction(e, t) { + return this.sendRequest({ + method: js.Web3Method.submitEthereumTransaction, + params: { + signedTransaction: (0, mi.hexStringFromBuffer)(e, !0), + chainId: t, + }, + }); + } + scanQRCode(e) { + return this.sendRequest({ + method: js.Web3Method.scanQRCode, + params: { regExp: e }, + }); + } + getQRCodeUrl() { + return (0, mi.createQrUrl)( + this._session.id, + this._session.secret, + this.linkAPIUrl, + !1, + this.options.version, + this.dappDefaultChain + ); + } + genericRequest(e, t) { + return this.sendRequest({ + method: js.Web3Method.generic, + params: { action: t, data: e }, + }); + } + sendGenericMessage(e) { + return this.sendRequest(e); + } + sendRequest(e) { + let t = null, + n = (0, mi.randomBytesHex)(8), + a = (s) => { + this.publishWeb3RequestCanceledEvent(n), + this.handleErrorResponse(n, e.method, s), + t?.(); + }; + return { + promise: new Promise((s, c) => { + this.ui.isStandalone() || + (t = this.ui.showConnecting({ + isUnlinkedErrorState: this.isUnlinkedErrorState, + onCancel: a, + onResetConnection: this.resetAndReload, + })), + this.relayEventManager.callbacks.set(n, (l) => { + if ((t?.(), l.errorMessage)) + return c(new Error(l.errorMessage)); + s(l); + }), + this.ui.isStandalone() + ? this.sendRequestStandalone(n, e) + : this.publishWeb3RequestEvent(n, e); + }), + cancel: a, + }; + } + setConnectDisabled(e) { + this.ui.setConnectDisabled(e); + } + setAccountsCallback(e) { + this.accountsCallback = e; + } + setChainCallback(e) { + this.chainCallback = e; + } + setDappDefaultChainCallback(e) { + this.dappDefaultChainSubject.next(e); + } + publishWeb3RequestEvent(e, t) { + var n; + let a = (0, bSr.Web3RequestMessage)({ id: e, request: t }), + i = K0.Session.load(this.storage); + (n = this.diagnostic) === null || + n === void 0 || + n.log(gc.EVENTS.WEB3_REQUEST, { + eventId: a.id, + method: `relay::${a.request.method}`, + sessionIdHash: this.getSessionIdHash(), + storedSessionIdHash: i ? K0.Session.hash(i.id) : "", + isSessionMismatched: (i?.id !== this._session.id).toString(), + }), + this.subscriptions.add( + this.publishEvent("Web3Request", a, !0).subscribe({ + next: (s) => { + var c; + (c = this.diagnostic) === null || + c === void 0 || + c.log(gc.EVENTS.WEB3_REQUEST_PUBLISHED, { + eventId: a.id, + method: `relay::${a.request.method}`, + sessionIdHash: this.getSessionIdHash(), + storedSessionIdHash: i ? K0.Session.hash(i.id) : "", + isSessionMismatched: ( + i?.id !== this._session.id + ).toString(), + }); + }, + error: (s) => { + this.handleWeb3ResponseMessage( + (0, zc.Web3ResponseMessage)({ + id: a.id, + response: { + method: a.request.method, + errorMessage: s.message, + }, + }) + ); + }, + }) + ); + } + publishWeb3RequestCanceledEvent(e) { + let t = (0, gSr.Web3RequestCanceledMessage)(e); + this.subscriptions.add( + this.publishEvent("Web3RequestCanceled", t, !1).subscribe() + ); + } + publishEvent(e, t, n) { + let a = this.session.secret; + return new R_.Observable((i) => { + j0.encrypt( + JSON.stringify( + Object.assign(Object.assign({}, t), { origin: location.origin }) + ), + a + ).then((s) => { + i.next(s), i.complete(); + }); + }).pipe( + (0, _s.mergeMap)((i) => this.connection.publishEvent(e, i, n)) + ); + } + handleIncomingEvent(e) { + try { + this.subscriptions.add( + (0, R_.from)(j0.decrypt(e.data, this.session.secret)) + .pipe((0, _s.map)((t) => JSON.parse(t))) + .subscribe({ + next: (t) => { + let n = (0, zc.isWeb3ResponseMessage)(t) ? t : null; + !n || this.handleWeb3ResponseMessage(n); + }, + error: () => { + var t; + (t = this.diagnostic) === null || + t === void 0 || + t.log(gc.EVENTS.GENERAL_ERROR, { + message: "Had error decrypting", + value: "incomingEvent", + }); + }, + }) + ); + } catch { + return; + } + } + handleWeb3ResponseMessage(e) { + var t; + let { response: n } = e; + if ( + ((t = this.diagnostic) === null || + t === void 0 || + t.log(gc.EVENTS.WEB3_RESPONSE, { + eventId: e.id, + method: `relay::${n.method}`, + sessionIdHash: this.getSessionIdHash(), + }), + (0, nl.isRequestEthereumAccountsResponse)(n)) + ) { + al.accountRequestCallbackIds.forEach((a) => + this.invokeCallback( + Object.assign(Object.assign({}, e), { id: a }) + ) + ), + al.accountRequestCallbackIds.clear(); + return; + } + this.invokeCallback(e); + } + handleErrorResponse(e, t, n, a) { + this.handleWeb3ResponseMessage( + (0, zc.Web3ResponseMessage)({ + id: e, + response: (0, nl.ErrorResponse)( + t, + (n ?? vX.WalletUIError.UserRejectedRequest).message, + a + ), + }) + ); + } + invokeCallback(e) { + let t = this.relayEventManager.callbacks.get(e.id); + t && (t(e.response), this.relayEventManager.callbacks.delete(e.id)); + } + requestEthereumAccounts() { + let e = { + method: js.Web3Method.requestEthereumAccounts, + params: { + appName: this.appName, + appLogoUrl: this.appLogoUrl || null, + }, + }, + t = null, + n = (0, mi.randomBytesHex)(8), + a = (s) => { + this.publishWeb3RequestCanceledEvent(n), + this.handleErrorResponse(n, e.method, s), + t?.(); + }; + return { + promise: new Promise((s, c) => { + var l; + this.relayEventManager.callbacks.set(n, (m) => { + if ( + (this.ui.hideRequestEthereumAccounts(), t?.(), m.errorMessage) + ) + return c(new Error(m.errorMessage)); + s(m); + }); + let d = + ((l = window?.navigator) === null || l === void 0 + ? void 0 + : l.userAgent) || null; + if ( + d && + /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test( + d + ) + ) { + let m; + try { + (0, mi.isInIFrame)() && window.top + ? (m = window.top.location) + : (m = window.location); + } catch { + m = window.location; + } + m.href = `https://www.coinbase.com/connect-dapp?uri=${encodeURIComponent( + m.href + )}`; + return; + } + if (this.ui.inlineAccountsResponse()) { + let m = (w) => { + this.handleWeb3ResponseMessage( + (0, zc.Web3ResponseMessage)({ + id: n, + response: (0, nl.RequestEthereumAccountsResponse)(w), + }) + ); + }; + this.ui.requestEthereumAccounts({ onCancel: a, onAccounts: m }); + } else { + let m = Jrt.ethErrors.provider.userRejectedRequest( + "User denied account authorization" + ); + this.ui.requestEthereumAccounts({ onCancel: () => a(m) }); + } + al.accountRequestCallbackIds.add(n), + !this.ui.inlineAccountsResponse() && + !this.ui.isStandalone() && + this.publishWeb3RequestEvent(n, e); + }), + cancel: a, + }; + } + selectProvider(e) { + let t = { + method: js.Web3Method.selectProvider, + params: { providerOptions: e }, + }, + n = (0, mi.randomBytesHex)(8), + a = (s) => { + this.publishWeb3RequestCanceledEvent(n), + this.handleErrorResponse(n, t.method, s); + }, + i = new Promise((s, c) => { + this.relayEventManager.callbacks.set(n, (m) => { + if (m.errorMessage) return c(new Error(m.errorMessage)); + s(m); + }); + let l = (m) => { + this.handleWeb3ResponseMessage( + (0, zc.Web3ResponseMessage)({ + id: n, + response: (0, nl.SelectProviderResponse)( + ySr.ProviderType.Unselected + ), + }) + ); + }, + d = (m) => { + this.handleWeb3ResponseMessage( + (0, zc.Web3ResponseMessage)({ + id: n, + response: (0, nl.SelectProviderResponse)(m), + }) + ); + }; + this.ui.selectProvider && + this.ui.selectProvider({ + onApprove: d, + onCancel: l, + providerOptions: e, + }); + }); + return { cancel: a, promise: i }; + } + watchAsset(e, t, n, a, i, s) { + let c = { + method: js.Web3Method.watchAsset, + params: { + type: e, + options: { address: t, symbol: n, decimals: a, image: i }, + chainId: s, + }, + }, + l = null, + d = (0, mi.randomBytesHex)(8), + m = (C) => { + this.publishWeb3RequestCanceledEvent(d), + this.handleErrorResponse(d, c.method, C), + l?.(); + }; + this.ui.inlineWatchAsset() || + (l = this.ui.showConnecting({ + isUnlinkedErrorState: this.isUnlinkedErrorState, + onCancel: m, + onResetConnection: this.resetAndReload, + })); + let w = new Promise((C, I) => { + this.relayEventManager.callbacks.set(d, (D) => { + if ((l?.(), D.errorMessage)) return I(new Error(D.errorMessage)); + C(D); + }); + let k = (D) => { + this.handleWeb3ResponseMessage( + (0, zc.Web3ResponseMessage)({ + id: d, + response: (0, nl.WatchAssetReponse)(!1), + }) + ); + }, + O = () => { + this.handleWeb3ResponseMessage( + (0, zc.Web3ResponseMessage)({ + id: d, + response: (0, nl.WatchAssetReponse)(!0), + }) + ); + }; + this.ui.inlineWatchAsset() && + this.ui.watchAsset({ + onApprove: O, + onCancel: k, + type: e, + address: t, + symbol: n, + decimals: a, + image: i, + chainId: s, + }), + !this.ui.inlineWatchAsset() && + !this.ui.isStandalone() && + this.publishWeb3RequestEvent(d, c); + }); + return { cancel: m, promise: w }; + } + addEthereumChain(e, t, n, a, i, s) { + let c = { + method: js.Web3Method.addEthereumChain, + params: { + chainId: e, + rpcUrls: t, + blockExplorerUrls: a, + chainName: i, + iconUrls: n, + nativeCurrency: s, + }, + }, + l = null, + d = (0, mi.randomBytesHex)(8), + m = (C) => { + this.publishWeb3RequestCanceledEvent(d), + this.handleErrorResponse(d, c.method, C), + l?.(); + }; + return ( + this.ui.inlineAddEthereumChain(e) || + (l = this.ui.showConnecting({ + isUnlinkedErrorState: this.isUnlinkedErrorState, + onCancel: m, + onResetConnection: this.resetAndReload, + })), + { + promise: new Promise((C, I) => { + this.relayEventManager.callbacks.set(d, (D) => { + if ((l?.(), D.errorMessage)) + return I(new Error(D.errorMessage)); + C(D); + }); + let k = (D) => { + this.handleWeb3ResponseMessage( + (0, zc.Web3ResponseMessage)({ + id: d, + response: (0, nl.AddEthereumChainResponse)({ + isApproved: !1, + rpcUrl: "", + }), + }) + ); + }, + O = (D) => { + this.handleWeb3ResponseMessage( + (0, zc.Web3ResponseMessage)({ + id: d, + response: (0, nl.AddEthereumChainResponse)({ + isApproved: !0, + rpcUrl: D, + }), + }) + ); + }; + this.ui.inlineAddEthereumChain(e) && + this.ui.addEthereumChain({ + onCancel: k, + onApprove: O, + chainId: c.params.chainId, + rpcUrls: c.params.rpcUrls, + blockExplorerUrls: c.params.blockExplorerUrls, + chainName: c.params.chainName, + iconUrls: c.params.iconUrls, + nativeCurrency: c.params.nativeCurrency, + }), + !this.ui.inlineAddEthereumChain(e) && + !this.ui.isStandalone() && + this.publishWeb3RequestEvent(d, c); + }), + cancel: m, + } + ); + } + switchEthereumChain(e, t) { + let n = { + method: js.Web3Method.switchEthereumChain, + params: Object.assign({ chainId: e }, { address: t }), + }, + a = (0, mi.randomBytesHex)(8), + i = (c) => { + this.publishWeb3RequestCanceledEvent(a), + this.handleErrorResponse(a, n.method, c); + }; + return { + promise: new Promise((c, l) => { + this.relayEventManager.callbacks.set(a, (w) => { + if (w.errorMessage && w.errorCode) + return l( + Jrt.ethErrors.provider.custom({ + code: w.errorCode, + message: + "Unrecognized chain ID. Try adding the chain using addEthereumChain first.", + }) + ); + if (w.errorMessage) return l(new Error(w.errorMessage)); + c(w); + }); + let d = (w) => { + if (typeof w == "number") { + let C = w; + this.handleWeb3ResponseMessage( + (0, zc.Web3ResponseMessage)({ + id: a, + response: (0, nl.ErrorResponse)( + js.Web3Method.switchEthereumChain, + vX.WalletUIError.SwitchEthereumChainUnsupportedChainId + .message, + C + ), + }) + ); + } else + w instanceof vX.WalletUIError + ? this.handleErrorResponse( + a, + js.Web3Method.switchEthereumChain, + w, + w.errorCode + ) + : this.handleWeb3ResponseMessage( + (0, zc.Web3ResponseMessage)({ + id: a, + response: (0, nl.SwitchEthereumChainResponse)({ + isApproved: !1, + rpcUrl: "", + }), + }) + ); + }, + m = (w) => { + this.handleWeb3ResponseMessage( + (0, zc.Web3ResponseMessage)({ + id: a, + response: (0, nl.SwitchEthereumChainResponse)({ + isApproved: !0, + rpcUrl: w, + }), + }) + ); + }; + this.ui.switchEthereumChain({ + onCancel: d, + onApprove: m, + chainId: n.params.chainId, + address: n.params.address, + }), + !this.ui.inlineSwitchEthereumChain() && + !this.ui.isStandalone() && + this.publishWeb3RequestEvent(a, n); + }), + cancel: i, + }; + } + inlineAddEthereumChain(e) { + return this.ui.inlineAddEthereumChain(e); + } + getSessionIdHash() { + return K0.Session.hash(this._session.id); + } + sendRequestStandalone(e, t) { + let n = (i) => { + this.handleErrorResponse(e, t.method, i); + }, + a = (i) => { + this.handleWeb3ResponseMessage( + (0, zc.Web3ResponseMessage)({ id: e, response: i }) + ); + }; + switch (t.method) { + case js.Web3Method.signEthereumMessage: + this.ui.signEthereumMessage({ + request: t, + onSuccess: a, + onCancel: n, + }); + break; + case js.Web3Method.signEthereumTransaction: + this.ui.signEthereumTransaction({ + request: t, + onSuccess: a, + onCancel: n, + }); + break; + case js.Web3Method.submitEthereumTransaction: + this.ui.submitEthereumTransaction({ + request: t, + onSuccess: a, + onCancel: n, + }); + break; + case js.Web3Method.ethereumAddressFromSignedMessage: + this.ui.ethereumAddressFromSignedMessage({ + request: t, + onSuccess: a, + }); + break; + default: + n(); + break; + } + } + onSessionConfigChanged(e) {} + }; + al.accountRequestCallbackIds = new Set(); + Zrt([Qrt.default], al.prototype, "resetAndReload", null); + Zrt([Qrt.default], al.prototype, "handleIncomingEvent", null); + Iu.WalletSDKRelay = al; + }); + var ent = N((tN) => { + "use strict"; + _(); + x(); + Object.defineProperty(tN, "__esModule", { value: !0 }); + tN.WalletSDKRelayEventManager = void 0; + var vSr = Gf(), + wX = class { + constructor() { + (this._nextRequestId = 0), (this.callbacks = new Map()); + } + makeRequestId() { + this._nextRequestId = (this._nextRequestId + 1) % 2147483647; + let e = this._nextRequestId, + t = (0, vSr.prepend0x)(e.toString(16)); + return this.callbacks.get(t) && this.callbacks.delete(t), e; + } + }; + tN.WalletSDKRelayEventManager = wX; + }); + var tnt = N((T6n, wSr) => { + wSr.exports = { + name: "@coinbase/wallet-sdk", + version: "3.6.4", + description: "Coinbase Wallet JavaScript SDK", + keywords: [ + "cipher", + "cipherbrowser", + "coinbase", + "coinbasewallet", + "eth", + "ether", + "ethereum", + "etherium", + "injection", + "toshi", + "wallet", + "walletlink", + "web3", + ], + main: "dist/index.js", + types: "dist/index.d.ts", + repository: "https://github.com/coinbase/coinbase-wallet-sdk.git", + author: "Coinbase, Inc.", + license: "Apache-2.0", + scripts: { + "pretest:unit": "node compile-assets.js", + "test:unit": "jest", + "test:unit:coverage": + "yarn test:unit && open coverage/lcov-report/index.html", + "test:karma": "yarn build-npm && karma start", + prebuild: `rm -rf ./build && node -p "'export const LIB_VERSION = ' + JSON.stringify(require('./package.json').version) + ';'" > src/version.ts`, + build: "node compile-assets.js && webpack --config webpack.config.js", + "build-npm": "tsc -p ./tsconfig.build.json", + "build:dev": "export LINK_API_URL='http://localhost:3000'; yarn build", + "build:dev:watch": + "nodemon -e 'ts,tsx,js,json,css,scss,svg' --ignore 'src/**/*-css.ts' --ignore 'src/**/*-svg.ts' --watch src/ --exec 'yarn build:dev'", + "build:prod": `yarn prebuild && yarn build && yarn build-npm && cp ./package.json ../../README.md ./LICENSE build/npm && cp -a src/vendor-js build/npm/dist && sed -i.bak 's| "private": true,||g' build/npm/package.json && rm -f build/npm/package.json.bak`, + "lint:types": "tsc --noEmit", + "lint:prettier": 'prettier --check "{src,__tests__}/**/*.(js|ts|tsx)"', + "lint:eslint": "eslint ./src --ext .ts,.tsx", + lint: "yarn lint:eslint && yarn lint:types && yarn lint:prettier", + "fix:eslint": "yarn lint:eslint --fix", + "fix:prettier": "prettier . --write", + release: "./scripts/release.sh", + }, + dependencies: { + "@metamask/safe-event-emitter": "2.0.0", + "@solana/web3.js": "^1.70.1", + "bind-decorator": "^1.0.11", + "bn.js": "^5.1.1", + buffer: "^6.0.3", + clsx: "^1.1.0", + "eth-block-tracker": "4.4.3", + "eth-json-rpc-filters": "5.1.0", + "eth-rpc-errors": "4.0.2", + "json-rpc-engine": "6.1.0", + keccak: "^3.0.1", + preact: "^10.5.9", + qs: "^6.10.3", + rxjs: "^6.6.3", + "sha.js": "^2.4.11", + "stream-browserify": "^3.0.0", + util: "^0.12.4", + }, + devDependencies: { + "@babel/core": "^7.17.9", + "@babel/plugin-proposal-decorators": "^7.17.9", + "@babel/plugin-transform-react-jsx": "^7.17.3", + "@babel/preset-env": "^7.16.11", + "@babel/preset-typescript": "^7.16.7", + "@peculiar/webcrypto": "^1.3.3", + "@testing-library/jest-dom": "^5.16.4", + "@testing-library/preact": "^2.0.1", + "@types/bn.js": "^4.11.6", + "@types/jest": "^27.4.1", + "@types/node": "^14.14.20", + "@types/qs": "^6.9.7", + "@types/sha.js": "^2.4.0", + "@typescript-eslint/eslint-plugin": "^5.7.0", + "@typescript-eslint/eslint-plugin-tslint": "^5.7.0", + "@typescript-eslint/parser": "^5.7.0", + "babel-jest": "^27.5.1", + browserify: "17.0.0", + "copy-webpack-plugin": "^6.4.1", + "core-js": "^3.8.2", + eslint: "^8.4.1", + "eslint-config-prettier": "^8.3.0", + "eslint-plugin-import": "^2.25.3", + "eslint-plugin-preact": "^0.1.0", + "eslint-plugin-prettier": "^4.0.0", + "eslint-plugin-simple-import-sort": "^7.0.0", + jasmine: "3.8.0", + jest: "^27.5.1", + "jest-chrome": "^0.7.2", + "jest-websocket-mock": "^2.3.0", + karma: "^6.4.0", + "karma-browserify": "8.1.0", + "karma-chrome-launcher": "^3.1.0", + "karma-jasmine": "^4.0.1", + nodemon: "^2.0.6", + prettier: "^2.5.1", + "raw-loader": "^4.0.2", + "regenerator-runtime": "^0.13.7", + sass: "^1.50.0", + svgo: "^2.8.0", + "ts-jest": "^27.1.4", + "ts-loader": "^8.0.13", + "ts-node": "^10.7.0", + tslib: "^2.0.3", + typescript: "^4.1.3", + watchify: "4.0.0", + webpack: "^5.72.0", + "webpack-cli": "^4.9.2", + "whatwg-fetch": "^3.5.0", + }, + engines: { node: ">= 10.0.0" }, + }; + }); + var _X = N((rN) => { + "use strict"; + _(); + x(); + Object.defineProperty(rN, "__esModule", { value: !0 }); + rN.CoinbaseWalletSDK = void 0; + var _Sr = bGe(), + xSr = vGe(), + TSr = G7(), + ESr = met(), + CSr = Xrt(), + ISr = ent(), + ASr = Gf(), + kSr = S.env.LINK_API_URL || "https://www.walletlink.org", + rnt = S.env.SDK_VERSION || tnt().version || "unknown", + B_ = class { + constructor(e) { + var t, n, a; + (this._appName = ""), + (this._appLogoUrl = null), + (this._relay = null), + (this._relayEventManager = null); + let i = e.linkAPIUrl || kSr, + s; + if ( + (e.uiConstructor + ? (s = e.uiConstructor) + : (s = (d) => new ESr.WalletSDKUI(d)), + typeof e.overrideIsMetaMask > "u" + ? (this._overrideIsMetaMask = !1) + : (this._overrideIsMetaMask = e.overrideIsMetaMask), + (this._overrideIsCoinbaseWallet = + (t = e.overrideIsCoinbaseWallet) !== null && t !== void 0 + ? t + : !0), + (this._overrideIsCoinbaseBrowser = + (n = e.overrideIsCoinbaseBrowser) !== null && n !== void 0 + ? n + : !1), + e.diagnosticLogger && e.eventListener) + ) + throw new Error( + "Can't have both eventListener and diagnosticLogger options, use only diagnosticLogger" + ); + e.eventListener + ? (this._diagnosticLogger = { log: e.eventListener.onEvent }) + : (this._diagnosticLogger = e.diagnosticLogger), + (this._reloadOnDisconnect = + (a = e.reloadOnDisconnect) !== null && a !== void 0 ? a : !0); + let c = new URL(i), + l = `${c.protocol}//${c.host}`; + (this._storage = new xSr.ScopedLocalStorage(`-walletlink:${l}`)), + this._storage.setItem("version", B_.VERSION), + !(this.walletExtension || this.coinbaseBrowser) && + ((this._relayEventManager = new ISr.WalletSDKRelayEventManager()), + (this._relay = new CSr.WalletSDKRelay({ + linkAPIUrl: i, + version: rnt, + darkMode: !!e.darkMode, + uiConstructor: s, + storage: this._storage, + relayEventManager: this._relayEventManager, + diagnosticLogger: this._diagnosticLogger, + reloadOnDisconnect: this._reloadOnDisconnect, + })), + this.setAppInfo(e.appName, e.appLogoUrl), + !e.headlessMode && this._relay.attachUI()); + } + makeWeb3Provider(e = "", t = 1) { + let n = this.walletExtension; + if (n) + return ( + this.isCipherProvider(n) || n.setProviderInfo(e, t), + this._reloadOnDisconnect === !1 && + typeof n.disableReloadOnDisconnect == "function" && + n.disableReloadOnDisconnect(), + n + ); + let a = this.coinbaseBrowser; + if (a) return a; + let i = this._relay; + if (!i || !this._relayEventManager || !this._storage) + throw new Error("Relay not initialized, should never happen"); + return ( + e || i.setConnectDisabled(!0), + new TSr.CoinbaseWalletProvider({ + relayProvider: () => Promise.resolve(i), + relayEventManager: this._relayEventManager, + storage: this._storage, + jsonRpcUrl: e, + chainId: t, + qrUrl: this.getQrUrl(), + diagnosticLogger: this._diagnosticLogger, + overrideIsMetaMask: this._overrideIsMetaMask, + overrideIsCoinbaseWallet: this._overrideIsCoinbaseWallet, + overrideIsCoinbaseBrowser: this._overrideIsCoinbaseBrowser, + }) + ); + } + setAppInfo(e, t) { + var n; + (this._appName = e || "DApp"), + (this._appLogoUrl = t || (0, ASr.getFavicon)()); + let a = this.walletExtension; + a + ? this.isCipherProvider(a) || + a.setAppInfo(this._appName, this._appLogoUrl) + : (n = this._relay) === null || + n === void 0 || + n.setAppInfo(this._appName, this._appLogoUrl); + } + disconnect() { + var e; + let t = this.walletExtension; + t + ? t.close() + : (e = this._relay) === null || e === void 0 || e.resetAndReload(); + } + getQrUrl() { + var e, t; + return (t = + (e = this._relay) === null || e === void 0 + ? void 0 + : e.getQRCodeUrl()) !== null && t !== void 0 + ? t + : null; + } + getCoinbaseWalletLogo(e, t = 240) { + return (0, _Sr.walletLogo)(e, t); + } + get walletExtension() { + var e; + return (e = window.coinbaseWalletExtension) !== null && e !== void 0 + ? e + : window.walletLinkExtension; + } + get coinbaseBrowser() { + var e, t; + try { + let n = + (e = window.ethereum) !== null && e !== void 0 + ? e + : (t = window.top) === null || t === void 0 + ? void 0 + : t.ethereum; + return n && "isCoinbaseBrowser" in n && n.isCoinbaseBrowser + ? n + : void 0; + } catch { + return; + } + } + isCipherProvider(e) { + return typeof e.isCipher == "boolean" && e.isCipher; + } + }; + rN.CoinbaseWalletSDK = B_; + B_.VERSION = rnt; + }); + var TX = N((Lb) => { + "use strict"; + _(); + x(); + Object.defineProperty(Lb, "__esModule", { value: !0 }); + Lb.CoinbaseWalletProvider = Lb.CoinbaseWalletSDK = void 0; + var xX = _X(), + nnt = G7(), + SSr = _X(); + Object.defineProperty(Lb, "CoinbaseWalletSDK", { + enumerable: !0, + get: function () { + return SSr.CoinbaseWalletSDK; + }, + }); + var MSr = G7(); + Object.defineProperty(Lb, "CoinbaseWalletProvider", { + enumerable: !0, + get: function () { + return MSr.CoinbaseWalletProvider; + }, + }); + Lb.default = xX.CoinbaseWalletSDK; + typeof window < "u" && + ((window.CoinbaseWalletSDK = xX.CoinbaseWalletSDK), + (window.CoinbaseWalletProvider = nnt.CoinbaseWalletProvider), + (window.WalletLink = xX.CoinbaseWalletSDK), + (window.WalletLinkProvider = nnt.CoinbaseWalletProvider)); + }); + var snt = N((AX) => { + "use strict"; + _(); + x(); + Object.defineProperty(AX, "__esModule", { value: !0 }); + var EX = XG(), + Jf = td(), + N_ = Lc(), + Zf = (rd(), In(ip)), + ant = wt(), + nN = hi(); + function PSr(r) { + if (r && r.__esModule) return r; + var e = Object.create(null); + return ( + r && + Object.keys(r).forEach(function (t) { + if (t !== "default") { + var n = Object.getOwnPropertyDescriptor(r, t); + Object.defineProperty( + e, + t, + n.get + ? n + : { + enumerable: !0, + get: function () { + return r[t]; + }, + } + ); + } + }), + (e.default = r), + Object.freeze(e) + ); + } + var aN = new WeakMap(), + kC = new WeakMap(), + CX = new WeakSet(), + IX = class extends Zf.Connector { + constructor(e) { + let { chains: t, options: n } = e; + super({ chains: t, options: { reloadOnDisconnect: !1, ...n } }), + EX._classPrivateMethodInitSpec(this, CX), + N_._defineProperty(this, "id", "coinbaseWallet"), + N_._defineProperty(this, "name", "Coinbase Wallet"), + N_._defineProperty(this, "ready", !0), + Jf._classPrivateFieldInitSpec(this, aN, { + writable: !0, + value: void 0, + }), + Jf._classPrivateFieldInitSpec(this, kC, { + writable: !0, + value: void 0, + }), + N_._defineProperty(this, "onAccountsChanged", (a) => { + a.length === 0 + ? this.emit("disconnect") + : this.emit("change", { account: nN.getAddress(a[0]) }); + }), + N_._defineProperty(this, "onChainChanged", (a) => { + let i = Zf.normalizeChainId(a), + s = this.isChainUnsupported(i); + this.emit("change", { chain: { id: i, unsupported: s } }); + }), + N_._defineProperty(this, "onDisconnect", () => { + this.emit("disconnect"); + }); + } + async connect() { + let { chainId: e } = + arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}; + try { + let t = await this.getProvider(); + t.on("accountsChanged", this.onAccountsChanged), + t.on("chainChanged", this.onChainChanged), + t.on("disconnect", this.onDisconnect), + this.emit("message", { type: "connecting" }); + let n = await t.enable(), + a = nN.getAddress(n[0]), + i = await this.getChainId(), + s = this.isChainUnsupported(i); + return ( + e && + i !== e && + ((i = (await this.switchChain(e)).id), + (s = this.isChainUnsupported(i))), + { + account: a, + chain: { id: i, unsupported: s }, + provider: new ant.providers.Web3Provider(t), + } + ); + } catch (t) { + throw /(user closed modal|accounts received is empty)/i.test( + t.message + ) + ? new Zf.UserRejectedRequestError(t) + : t; + } + } + async disconnect() { + if (!Jf._classPrivateFieldGet(this, kC)) return; + let e = await this.getProvider(); + e.removeListener("accountsChanged", this.onAccountsChanged), + e.removeListener("chainChanged", this.onChainChanged), + e.removeListener("disconnect", this.onDisconnect), + e.disconnect(), + e.close(); + } + async getAccount() { + let t = await ( + await this.getProvider() + ).request({ method: "eth_accounts" }); + return nN.getAddress(t[0]); + } + async getChainId() { + let e = await this.getProvider(); + return Zf.normalizeChainId(e.chainId); + } + async getProvider() { + if (!Jf._classPrivateFieldGet(this, kC)) { + let e = ( + await Promise.resolve().then(function () { + return PSr(TX()); + }) + ).default; + typeof e != "function" && + typeof e.default == "function" && + (e = e.default), + Jf._classPrivateFieldSet(this, aN, new e(this.options)); + let t = Jf._classPrivateFieldGet( + this, + aN + ).walletExtension?.getChainId(), + n = + this.chains.find((s) => + this.options.chainId + ? s.id === this.options.chainId + : s.id === t + ) || this.chains[0], + a = this.options.chainId || n?.id, + i = this.options.jsonRpcUrl || n?.rpcUrls.default.http[0]; + Jf._classPrivateFieldSet( + this, + kC, + Jf._classPrivateFieldGet(this, aN).makeWeb3Provider(i, a) + ); + } + return Jf._classPrivateFieldGet(this, kC); + } + async getSigner() { + let { chainId: e } = + arguments.length > 0 && arguments[0] !== void 0 + ? arguments[0] + : {}, + [t, n] = await Promise.all([this.getProvider(), this.getAccount()]); + return new ant.providers.Web3Provider(t, e).getSigner(n); + } + async isAuthorized() { + try { + return !!(await this.getAccount()); + } catch { + return !1; + } + } + async switchChain(e) { + let t = await this.getProvider(), + n = nN.hexValue(e); + try { + return ( + await t.request({ + method: "wallet_switchEthereumChain", + params: [{ chainId: n }], + }), + this.chains.find((a) => a.id === e) ?? { + id: e, + name: `Chain ${n}`, + network: `${n}`, + nativeCurrency: { name: "Ether", decimals: 18, symbol: "ETH" }, + rpcUrls: { default: { http: [""] }, public: { http: [""] } }, + } + ); + } catch (a) { + let i = this.chains.find((s) => s.id === e); + if (!i) + throw new Zf.ChainNotConfiguredError({ + chainId: e, + connectorId: this.id, + }); + if (a.code === 4902) + try { + return ( + await t.request({ + method: "wallet_addEthereumChain", + params: [ + { + chainId: n, + chainName: i.name, + nativeCurrency: i.nativeCurrency, + rpcUrls: [ + i.rpcUrls.public?.http[0] ?? + i.rpcUrls.default.http[0], + ], + blockExplorerUrls: this.getBlockExplorerUrls(i), + }, + ], + }), + i + ); + } catch (s) { + throw EX._classPrivateMethodGet(this, CX, int).call(this, s) + ? new Zf.UserRejectedRequestError(s) + : new Zf.AddChainError(); + } + throw EX._classPrivateMethodGet(this, CX, int).call(this, a) + ? new Zf.UserRejectedRequestError(a) + : new Zf.SwitchChainError(a); + } + } + async watchAsset(e) { + let { address: t, decimals: n = 18, image: a, symbol: i } = e; + return (await this.getProvider()).request({ + method: "wallet_watchAsset", + params: { + type: "ERC20", + options: { address: t, decimals: n, image: a, symbol: i }, + }, + }); + } + }; + function int(r) { + return /(user rejected)/i.test(r.message); + } + AX.CoinbaseWalletConnector = IX; + }); + var ont = N((kX) => { + "use strict"; + _(); + x(); + Object.defineProperty(kX, "__esModule", { value: !0 }); + var RSr = Lc(), + iN = td(), + BSr = v2(), + NSr = E2(); + gs(); + k0(); + wt(); + zf(); + bs(); + var sN = new WeakMap(), + O_ = class extends NSr.AbstractBrowserWallet { + get walletName() { + return "Coinbase Wallet"; + } + constructor(e) { + super(O_.id, e), + iN._classPrivateFieldInitSpec(this, sN, { + writable: !0, + value: void 0, + }); + } + async getConnector() { + if (!iN._classPrivateFieldGet(this, sN)) { + let { CoinbaseWalletConnector: e } = await Promise.resolve().then( + function () { + return snt(); + } + ); + iN._classPrivateFieldSet( + this, + sN, + new BSr.WagmiAdapter( + new e({ + chains: this.chains, + options: { + appName: this.options.appName, + reloadOnDisconnect: !1, + }, + }) + ) + ); + } + return iN._classPrivateFieldGet(this, sN); + } + }; + RSr._defineProperty(O_, "id", "coinbaseWallet"); + kX.CoinbaseWallet = O_; + }); + var jc = N((cnt) => { + "use strict"; + _(); + x(); + function OSr(r, e) { + if (typeof r != "object" || r === null) return r; + var t = r[Symbol.toPrimitive]; + if (t !== void 0) { + var n = t.call(r, e || "default"); + if (typeof n != "object") return n; + throw new TypeError("@@toPrimitive must return a primitive value."); + } + return (e === "string" ? String : Number)(r); + } + function LSr(r) { + var e = OSr(r, "string"); + return typeof e == "symbol" ? e : String(e); + } + function DSr(r, e, t) { + return ( + (e = LSr(e)), + e in r + ? Object.defineProperty(r, e, { + value: t, + enumerable: !0, + configurable: !0, + writable: !0, + }) + : (r[e] = t), + r + ); + } + cnt._defineProperty = DSr; + }); + var hd = N((SC) => { + "use strict"; + _(); + x(); + function unt(r, e) { + if (e.has(r)) + throw new TypeError( + "Cannot initialize the same private elements twice on an object" + ); + } + function qSr(r, e, t) { + unt(r, e), e.set(r, t); + } + function FSr(r, e, t) { + if (e.set) e.set.call(r, t); + else { + if (!e.writable) + throw new TypeError("attempted to set read only private field"); + e.value = t; + } + } + function lnt(r, e, t) { + if (!e.has(r)) + throw new TypeError( + "attempted to " + t + " private field on non-instance" + ); + return e.get(r); + } + function WSr(r, e, t) { + var n = lnt(r, e, "set"); + return FSr(r, n, t), t; + } + function USr(r, e) { + return e.get ? e.get.call(r) : e.value; + } + function HSr(r, e) { + var t = lnt(r, e, "get"); + return USr(r, t); + } + SC._checkPrivateRedeclaration = unt; + SC._classPrivateFieldGet = HSr; + SC._classPrivateFieldInitSpec = qSr; + SC._classPrivateFieldSet = WSr; + }); + var L_ = N((MX) => { + "use strict"; + _(); + x(); + var zSr = jc(), + jSr = gs(); + function KSr(r) { + return r && r.__esModule ? r : { default: r }; + } + var VSr = KSr(jSr), + oN = class extends VSr.default {}, + SX = class extends oN { + constructor(e) { + super(), + zSr._defineProperty(this, "wagmiConnector", void 0), + (this.wagmiConnector = e); + } + async connect(e) { + let t = e?.chainId; + return (await this.wagmiConnector.connect({ chainId: t })).account; + } + disconnect() { + return this.wagmiConnector.disconnect(); + } + isConnected() { + return this.wagmiConnector.isAuthorized(); + } + getAddress() { + return this.wagmiConnector.getAccount(); + } + getSigner() { + return this.wagmiConnector.getSigner(); + } + getProvider() { + return this.wagmiConnector.getProvider(); + } + async switchChain(e) { + if (!this.wagmiConnector.switchChain) + throw new Error("Switch chain not supported"); + await this.wagmiConnector.switchChain(e); + } + }; + MX.TWConnector = oN; + MX.WagmiAdapter = SX; + }); + var V0 = N((cN) => { + "use strict"; + _(); + x(); + var dnt = jc(), + D_ = wt(), + GSr = gs(); + function YSr(r) { + return r && r.__esModule ? r : { default: r }; + } + var $Sr = YSr(GSr), + JSr = { + id: 42161, + name: "Arbitrum One", + network: "arbitrum", + nativeCurrency: { name: "Ether", symbol: "ETH", decimals: 18 }, + rpcUrls: { + alchemy: { + http: ["https://arb-mainnet.g.alchemy.com/v2"], + webSocket: ["wss://arb-mainnet.g.alchemy.com/v2"], + }, + infura: { + http: ["https://arbitrum-mainnet.infura.io/v3"], + webSocket: ["wss://arbitrum-mainnet.infura.io/ws/v3"], + }, + default: { http: ["https://arb1.arbitrum.io/rpc"] }, + public: { http: ["https://arb1.arbitrum.io/rpc"] }, + }, + blockExplorers: { + etherscan: { name: "Arbiscan", url: "https://arbiscan.io" }, + default: { name: "Arbiscan", url: "https://arbiscan.io" }, + }, + contracts: { + multicall3: { + address: "0xca11bde05977b3631167028862be2a173976ca11", + blockCreated: 7654707, + }, + }, + }, + ZSr = { + id: 421613, + name: "Arbitrum Goerli", + network: "arbitrum-goerli", + nativeCurrency: { + name: "Arbitrum Goerli Ether", + symbol: "ETH", + decimals: 18, + }, + rpcUrls: { + alchemy: { + http: ["https://arb-goerli.g.alchemy.com/v2"], + webSocket: ["wss://arb-goerli.g.alchemy.com/v2"], + }, + infura: { + http: ["https://arbitrum-goerli.infura.io/v3"], + webSocket: ["wss://arbitrum-goerli.infura.io/ws/v3"], + }, + default: { http: ["https://goerli-rollup.arbitrum.io/rpc"] }, + public: { http: ["https://goerli-rollup.arbitrum.io/rpc"] }, + }, + blockExplorers: { + etherscan: { name: "Arbiscan", url: "https://goerli.arbiscan.io/" }, + default: { name: "Arbiscan", url: "https://goerli.arbiscan.io/" }, + }, + contracts: { + multicall3: { + address: "0xca11bde05977b3631167028862be2a173976ca11", + blockCreated: 88114, + }, + }, + testnet: !0, + }, + QSr = { + id: 43114, + name: "Avalanche", + network: "avalanche", + nativeCurrency: { decimals: 18, name: "Avalanche", symbol: "AVAX" }, + rpcUrls: { + default: { http: ["https://api.avax.network/ext/bc/C/rpc"] }, + public: { http: ["https://api.avax.network/ext/bc/C/rpc"] }, + }, + blockExplorers: { + etherscan: { name: "SnowTrace", url: "https://snowtrace.io" }, + default: { name: "SnowTrace", url: "https://snowtrace.io" }, + }, + contracts: { + multicall3: { + address: "0xca11bde05977b3631167028862be2a173976ca11", + blockCreated: 11907934, + }, + }, + }, + XSr = { + id: 43113, + name: "Avalanche Fuji", + network: "avalanche-fuji", + nativeCurrency: { + decimals: 18, + name: "Avalanche Fuji", + symbol: "AVAX", + }, + rpcUrls: { + default: { http: ["https://api.avax-test.network/ext/bc/C/rpc"] }, + public: { http: ["https://api.avax-test.network/ext/bc/C/rpc"] }, + }, + blockExplorers: { + etherscan: { name: "SnowTrace", url: "https://testnet.snowtrace.io" }, + default: { name: "SnowTrace", url: "https://testnet.snowtrace.io" }, + }, + contracts: { + multicall3: { + address: "0xca11bde05977b3631167028862be2a173976ca11", + blockCreated: 7096959, + }, + }, + testnet: !0, + }, + eMr = { + id: 56, + name: "BNB Smart Chain", + network: "bsc", + nativeCurrency: { decimals: 18, name: "BNB", symbol: "BNB" }, + rpcUrls: { + default: { http: ["https://rpc.ankr.com/bsc"] }, + public: { http: ["https://rpc.ankr.com/bsc"] }, + }, + blockExplorers: { + etherscan: { name: "BscScan", url: "https://bscscan.com" }, + default: { name: "BscScan", url: "https://bscscan.com" }, + }, + contracts: { + multicall3: { + address: "0xca11bde05977b3631167028862be2a173976ca11", + blockCreated: 15921452, + }, + }, + }, + tMr = { + id: 97, + name: "Binance Smart Chain Testnet", + network: "bsc-testnet", + nativeCurrency: { decimals: 18, name: "BNB", symbol: "tBNB" }, + rpcUrls: { + default: { http: ["https://bsc-testnet.public.blastapi.io"] }, + public: { http: ["https://bsc-testnet.public.blastapi.io"] }, + }, + blockExplorers: { + etherscan: { name: "BscScan", url: "https://testnet.bscscan.com" }, + default: { name: "BscScan", url: "https://testnet.bscscan.com" }, + }, + contracts: { + multicall3: { + address: "0xca11bde05977b3631167028862be2a173976ca11", + blockCreated: 17422483, + }, + }, + testnet: !0, + }, + rMr = { + id: 250, + name: "Fantom", + network: "fantom", + nativeCurrency: { decimals: 18, name: "Fantom", symbol: "FTM" }, + rpcUrls: { + default: { http: ["https://rpc.ankr.com/fantom"] }, + public: { http: ["https://rpc.ankr.com/fantom"] }, + }, + blockExplorers: { + etherscan: { name: "FTMScan", url: "https://ftmscan.com" }, + default: { name: "FTMScan", url: "https://ftmscan.com" }, + }, + contracts: { + multicall3: { + address: "0xca11bde05977b3631167028862be2a173976ca11", + blockCreated: 33001987, + }, + }, + }, + nMr = { + id: 4002, + name: "Fantom Testnet", + network: "fantom-testnet", + nativeCurrency: { decimals: 18, name: "Fantom", symbol: "FTM" }, + rpcUrls: { + default: { http: ["https://rpc.testnet.fantom.network"] }, + public: { http: ["https://rpc.testnet.fantom.network"] }, + }, + blockExplorers: { + etherscan: { name: "FTMScan", url: "https://testnet.ftmscan.com" }, + default: { name: "FTMScan", url: "https://testnet.ftmscan.com" }, + }, + contracts: { + multicall3: { + address: "0xca11bde05977b3631167028862be2a173976ca11", + blockCreated: 8328688, + }, + }, + }, + aMr = { + id: 5, + network: "goerli", + name: "Goerli", + nativeCurrency: { name: "Goerli Ether", symbol: "ETH", decimals: 18 }, + rpcUrls: { + alchemy: { + http: ["https://eth-goerli.g.alchemy.com/v2"], + webSocket: ["wss://eth-goerli.g.alchemy.com/v2"], + }, + infura: { + http: ["https://goerli.infura.io/v3"], + webSocket: ["wss://goerli.infura.io/ws/v3"], + }, + default: { http: ["https://rpc.ankr.com/eth_goerli"] }, + public: { http: ["https://rpc.ankr.com/eth_goerli"] }, + }, + blockExplorers: { + etherscan: { name: "Etherscan", url: "https://goerli.etherscan.io" }, + default: { name: "Etherscan", url: "https://goerli.etherscan.io" }, + }, + contracts: { + ensRegistry: { + address: "0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e", + }, + multicall3: { + address: "0xca11bde05977b3631167028862be2a173976ca11", + blockCreated: 6507670, + }, + }, + testnet: !0, + }, + iMr = { + id: 1, + network: "homestead", + name: "Ethereum", + nativeCurrency: { name: "Ether", symbol: "ETH", decimals: 18 }, + rpcUrls: { + alchemy: { + http: ["https://eth-mainnet.g.alchemy.com/v2"], + webSocket: ["wss://eth-mainnet.g.alchemy.com/v2"], + }, + infura: { + http: ["https://mainnet.infura.io/v3"], + webSocket: ["wss://mainnet.infura.io/ws/v3"], + }, + default: { http: ["https://cloudflare-eth.com"] }, + public: { http: ["https://cloudflare-eth.com"] }, + }, + blockExplorers: { + etherscan: { name: "Etherscan", url: "https://etherscan.io" }, + default: { name: "Etherscan", url: "https://etherscan.io" }, + }, + contracts: { + ensRegistry: { + address: "0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e", + }, + multicall3: { + address: "0xca11bde05977b3631167028862be2a173976ca11", + blockCreated: 14353601, + }, + }, + }, + sMr = { + id: 10, + name: "Optimism", + network: "optimism", + nativeCurrency: { name: "Ether", symbol: "ETH", decimals: 18 }, + rpcUrls: { + alchemy: { + http: ["https://opt-mainnet.g.alchemy.com/v2"], + webSocket: ["wss://opt-mainnet.g.alchemy.com/v2"], + }, + infura: { + http: ["https://optimism-mainnet.infura.io/v3"], + webSocket: ["wss://optimism-mainnet.infura.io/ws/v3"], + }, + default: { http: ["https://mainnet.optimism.io"] }, + public: { http: ["https://mainnet.optimism.io"] }, + }, + blockExplorers: { + etherscan: { + name: "Etherscan", + url: "https://optimistic.etherscan.io", + }, + default: { + name: "Etherscan", + url: "https://optimistic.etherscan.io", + }, + }, + contracts: { + multicall3: { + address: "0xca11bde05977b3631167028862be2a173976ca11", + blockCreated: 4286263, + }, + }, + }, + oMr = { + id: 420, + name: "Optimism Goerli", + network: "optimism-goerli", + nativeCurrency: { name: "Goerli Ether", symbol: "ETH", decimals: 18 }, + rpcUrls: { + alchemy: { + http: ["https://opt-goerli.g.alchemy.com/v2"], + webSocket: ["wss://opt-goerli.g.alchemy.com/v2"], + }, + infura: { + http: ["https://optimism-goerli.infura.io/v3"], + webSocket: ["wss://optimism-goerli.infura.io/ws/v3"], + }, + default: { http: ["https://goerli.optimism.io"] }, + public: { http: ["https://goerli.optimism.io"] }, + }, + blockExplorers: { + etherscan: { + name: "Etherscan", + url: "https://goerli-optimism.etherscan.io", + }, + default: { + name: "Etherscan", + url: "https://goerli-optimism.etherscan.io", + }, + }, + contracts: { + multicall3: { + address: "0xca11bde05977b3631167028862be2a173976ca11", + blockCreated: 49461, + }, + }, + testnet: !0, + }, + cMr = { + id: 137, + name: "Polygon", + network: "matic", + nativeCurrency: { name: "MATIC", symbol: "MATIC", decimals: 18 }, + rpcUrls: { + alchemy: { + http: ["https://polygon-mainnet.g.alchemy.com/v2"], + webSocket: ["wss://polygon-mainnet.g.alchemy.com/v2"], + }, + infura: { + http: ["https://polygon-mainnet.infura.io/v3"], + webSocket: ["wss://polygon-mainnet.infura.io/ws/v3"], + }, + default: { http: ["https://polygon-rpc.com"] }, + public: { http: ["https://polygon-rpc.com"] }, + }, + blockExplorers: { + etherscan: { name: "PolygonScan", url: "https://polygonscan.com" }, + default: { name: "PolygonScan", url: "https://polygonscan.com" }, + }, + contracts: { + multicall3: { + address: "0xca11bde05977b3631167028862be2a173976ca11", + blockCreated: 25770160, + }, + }, + }, + uMr = { + id: 80001, + name: "Polygon Mumbai", + network: "maticmum", + nativeCurrency: { name: "MATIC", symbol: "MATIC", decimals: 18 }, + rpcUrls: { + alchemy: { + http: ["https://polygon-mumbai.g.alchemy.com/v2"], + webSocket: ["wss://polygon-mumbai.g.alchemy.com/v2"], + }, + infura: { + http: ["https://polygon-mumbai.infura.io/v3"], + webSocket: ["wss://polygon-mumbai.infura.io/ws/v3"], + }, + default: { http: ["https://matic-mumbai.chainstacklabs.com"] }, + public: { http: ["https://matic-mumbai.chainstacklabs.com"] }, + }, + blockExplorers: { + etherscan: { + name: "PolygonScan", + url: "https://mumbai.polygonscan.com", + }, + default: { + name: "PolygonScan", + url: "https://mumbai.polygonscan.com", + }, + }, + contracts: { + multicall3: { + address: "0xca11bde05977b3631167028862be2a173976ca11", + blockCreated: 25770160, + }, + }, + testnet: !0, + }, + Mr; + (function (r) { + (r[(r.Mainnet = 1)] = "Mainnet"), + (r[(r.Goerli = 5)] = "Goerli"), + (r[(r.Polygon = 137)] = "Polygon"), + (r[(r.Mumbai = 80001)] = "Mumbai"), + (r[(r.Fantom = 250)] = "Fantom"), + (r[(r.FantomTestnet = 4002)] = "FantomTestnet"), + (r[(r.Avalanche = 43114)] = "Avalanche"), + (r[(r.AvalancheFujiTestnet = 43113)] = "AvalancheFujiTestnet"), + (r[(r.Optimism = 10)] = "Optimism"), + (r[(r.OptimismGoerli = 420)] = "OptimismGoerli"), + (r[(r.Arbitrum = 42161)] = "Arbitrum"), + (r[(r.ArbitrumGoerli = 421613)] = "ArbitrumGoerli"), + (r[(r.BinanceSmartChainMainnet = 56)] = "BinanceSmartChainMainnet"), + (r[(r.BinanceSmartChainTestnet = 97)] = "BinanceSmartChainTestnet"); + })(Mr || (Mr = {})); + Mr.Mainnet, + Mr.Goerli, + Mr.Polygon, + Mr.Mumbai, + Mr.Fantom, + Mr.FantomTestnet, + Mr.Avalanche, + Mr.AvalancheFujiTestnet, + Mr.Optimism, + Mr.OptimismGoerli, + Mr.Arbitrum, + Mr.ArbitrumGoerli, + Mr.BinanceSmartChainMainnet, + Mr.BinanceSmartChainTestnet; + var lMr = + "c6634ad2d97b74baf15ff556016830c251050e6c36b9da508ce3ec80095d3dc1"; + function dMr(r) { + switch (r) { + case Mr.Mainnet: + return "mainnet"; + case Mr.Goerli: + return "goerli"; + case Mr.Polygon: + return "polygon"; + case Mr.Mumbai: + return "mumbai"; + case Mr.Avalanche: + return "avalanche"; + case Mr.AvalancheFujiTestnet: + return "avalanche-fuji"; + case Mr.Fantom: + return "fantom"; + case Mr.FantomTestnet: + return "fantom-testnet"; + case Mr.Arbitrum: + return "arbitrum"; + case Mr.ArbitrumGoerli: + return "arbitrum-goerli"; + case Mr.Optimism: + return "optimism"; + case Mr.OptimismGoerli: + return "optimism-goerli"; + case Mr.BinanceSmartChainMainnet: + return "bsc"; + case Mr.BinanceSmartChainTestnet: + return "bsc-testnet"; + default: + throw new Error("Unsupported chain id"); + } + } + function pMr(r) { + return `https://${dMr(r)}.rpc.thirdweb.com/${lMr}`; + } + function Au(r) { + let e = pMr(r.id); + return { + ...r, + rpcUrls: { + ...r.rpcUrls, + default: { + ...r.rpcUrls.default, + http: [e, ...r.rpcUrls.default.http], + }, + public: { + ...r.rpcUrls.public, + http: [e, ...(r.rpcUrls.public?.http || [])], + }, + }, + }; + } + var pnt = { + [Mr.Mainnet]: Au(iMr), + [Mr.Goerli]: Au(aMr), + [Mr.Polygon]: Au(cMr), + [Mr.Mumbai]: Au(uMr), + [Mr.Avalanche]: Au(QSr), + [Mr.AvalancheFujiTestnet]: Au(XSr), + [Mr.Fantom]: Au(rMr), + [Mr.FantomTestnet]: Au(nMr), + [Mr.Arbitrum]: Au(JSr), + [Mr.ArbitrumGoerli]: Au(ZSr), + [Mr.Optimism]: Au(sMr), + [Mr.OptimismGoerli]: Au(oMr), + [Mr.BinanceSmartChainMainnet]: Au(eMr), + [Mr.BinanceSmartChainTestnet]: Au(tMr), + }, + hMr = Object.values(pnt), + fMr = [ + "function isValidSignature(bytes32 _message, bytes _signature) public view returns (bytes4)", + ], + mMr = "0x1626ba7e", + hnt = async (r, e, t, n) => { + let a = pnt[n]?.rpcUrls.default.http[0]; + if (!a) return !1; + let i = new D_.ethers.providers.JsonRpcProvider(a), + s = new D_.ethers.Contract(t, fMr, i), + c = D_.ethers.utils.hashMessage(r); + try { + return (await s.isValidSignature(c, e)) === mMr; + } catch { + return !1; + } + }, + PX = class extends $Sr.default { + constructor() { + super(...arguments), + dnt._defineProperty(this, "type", "evm"), + dnt._defineProperty(this, "signer", void 0); + } + async getAddress() { + return (await this.getCachedSigner()).getAddress(); + } + async getChainId() { + return (await this.getCachedSigner()).getChainId(); + } + async signMessage(e) { + return await (await this.getCachedSigner()).signMessage(e); + } + async verifySignature(e, t, n, a) { + let i = D_.ethers.utils.hashMessage(e), + s = D_.ethers.utils.arrayify(i); + if (D_.ethers.utils.recoverAddress(s, t) === n) return !0; + if (a !== void 0) + try { + return await hnt(e, t, n, a || 1); + } catch {} + return !1; + } + async getCachedSigner() { + if (this.signer) return this.signer; + if (((this.signer = await this.getSigner()), !this.signer)) + throw new Error("Unable to get a signer!"); + return this.signer; + } + }; + cN.AbstractWallet = PX; + cN.checkContractWalletSignature = hnt; + cN.thirdwebChains = hMr; + }); + var Qf = N((uN) => { + "use strict"; + _(); + x(); + var yMr = bs(); + function gMr(r) { + return r && r.__esModule ? r : { default: r }; + } + var NX = gMr(yMr); + function q_(r) { + return `tw_${r}`; + } + var RX; + function bMr() { + return ( + RX || + (RX = NX.default.createInstance({ + name: q_("connectors"), + storeName: q_("connectors"), + version: 1, + })), + RX + ); + } + var BX; + function vMr() { + return ( + BX || + (BX = NX.default.createInstance({ + name: q_("coordinator"), + storeName: q_("coordinator"), + version: 1, + })), + BX + ); + } + var fnt = new Map(); + function wMr(r) { + let e = fnt.get(r); + return ( + e || + ((e = NX.default.createInstance({ + name: q_(`wallet:${r}`), + storeName: q_(`wallet_${r}`), + version: 1, + })), + fnt.set(r, e)), + e + ); + } + uN.getConnectorStorage = bMr; + uN.getCoordinatorStorage = vMr; + uN.getWalletStorage = wMr; + }); + var U_ = N((LX) => { + "use strict"; + _(); + x(); + Object.defineProperty(LX, "__esModule", { value: !0 }); + var lN = jc(), + F_ = hd(), + mnt = V0(), + ynt = Qf(); + wt(); + gs(); + bs(); + var W_ = new WeakMap(), + OX = class extends mnt.AbstractWallet { + constructor(e, t) { + super(), + F_._classPrivateFieldInitSpec(this, W_, { + writable: !0, + value: void 0, + }), + lN._defineProperty(this, "coordinatorStorage", void 0), + lN._defineProperty(this, "walletStorage", void 0), + lN._defineProperty(this, "chains", void 0), + lN._defineProperty(this, "options", void 0), + F_._classPrivateFieldSet(this, W_, e), + (this.options = t), + (this.chains = t.chains || mnt.thirdwebChains), + (this.coordinatorStorage = ynt.getCoordinatorStorage()), + (this.walletStorage = ynt.getWalletStorage(e)), + t.shouldAutoConnect !== !1 && this.autoConnect(); + } + async autoConnect() { + if ( + (await this.coordinatorStorage.getItem("lastConnectedWallet")) === + F_._classPrivateFieldGet(this, W_) + ) { + let t = await this.walletStorage.getItem("lasConnectedParams"), + n; + try { + n = JSON.parse(t); + } catch { + n = void 0; + } + if (await (await this.getConnector()).isConnected()) + return await this.connect(n); + } + } + async connect(e) { + let t = await this.getConnector(); + t.on("connect", (a) => { + this.coordinatorStorage.setItem( + "lastConnectedWallet", + F_._classPrivateFieldGet(this, W_) + ), + this.emit("connect", { + address: a.account, + chainId: a.chain?.id, + }), + a.chain?.id && + this.walletStorage.setItem("lastConnectedChain", a.chain?.id); + }), + t.on("change", (a) => { + this.emit("change", { address: a.account, chainId: a.chain?.id }), + a.chain?.id && + this.walletStorage.setItem("lastConnectedChain", a.chain?.id); + }), + t.on("message", (a) => this.emit("message", a)), + t.on("disconnect", () => this.emit("disconnect")), + t.on("error", (a) => this.emit("error", a)); + let n = await t.connect(e); + try { + await this.coordinatorStorage.setItem( + "lastConnectedWallet", + F_._classPrivateFieldGet(this, W_) + ); + } catch {} + return n; + } + async getSigner() { + let e = await this.getConnector(); + if (!e) throw new Error("Wallet not connected"); + return await e.getSigner(); + } + async disconnect() { + let e = await this.getConnector(); + e && + (e.removeAllListeners(), + await e.disconnect(), + (await this.coordinatorStorage.getItem("lastConnectedWallet")) === + F_._classPrivateFieldGet(this, W_) && + (await this.coordinatorStorage.removeItem( + "lastConnectedWallet" + ))); + } + async switchChain(e) { + let t = await this.getConnector(); + if (!t) throw new Error("Wallet not connected"); + if (!t.switchChain) + throw new Error("Wallet does not support switching chains"); + return await t.switchChain(e); + } + }; + LX.AbstractBrowserWallet = OX; + }); + var qX = N((DX) => { + "use strict"; + _(); + x(); + var _Mr = hd(); + function xMr(r, e) { + _Mr._checkPrivateRedeclaration(r, e), e.add(r); + } + function TMr(r, e, t) { + if (!e.has(r)) + throw new TypeError("attempted to get private field on non-instance"); + return t; + } + DX._classPrivateMethodGet = TMr; + DX._classPrivateMethodInitSpec = xMr; + }); + var vnt = N((HX) => { + "use strict"; + _(); + x(); + Object.defineProperty(HX, "__esModule", { value: !0 }); + var FX = qX(), + Xf = hd(), + H_ = jc(), + em = (rd(), In(ip)), + gnt = wt(), + dN = hi(); + function EMr(r) { + if (r && r.__esModule) return r; + var e = Object.create(null); + return ( + r && + Object.keys(r).forEach(function (t) { + if (t !== "default") { + var n = Object.getOwnPropertyDescriptor(r, t); + Object.defineProperty( + e, + t, + n.get + ? n + : { + enumerable: !0, + get: function () { + return r[t]; + }, + } + ); + } + }), + (e.default = r), + Object.freeze(e) + ); + } + var pN = new WeakMap(), + MC = new WeakMap(), + WX = new WeakSet(), + UX = class extends em.Connector { + constructor(e) { + let { chains: t, options: n } = e; + super({ chains: t, options: { reloadOnDisconnect: !1, ...n } }), + FX._classPrivateMethodInitSpec(this, WX), + H_._defineProperty(this, "id", "coinbaseWallet"), + H_._defineProperty(this, "name", "Coinbase Wallet"), + H_._defineProperty(this, "ready", !0), + Xf._classPrivateFieldInitSpec(this, pN, { + writable: !0, + value: void 0, + }), + Xf._classPrivateFieldInitSpec(this, MC, { + writable: !0, + value: void 0, + }), + H_._defineProperty(this, "onAccountsChanged", (a) => { + a.length === 0 + ? this.emit("disconnect") + : this.emit("change", { account: dN.getAddress(a[0]) }); + }), + H_._defineProperty(this, "onChainChanged", (a) => { + let i = em.normalizeChainId(a), + s = this.isChainUnsupported(i); + this.emit("change", { chain: { id: i, unsupported: s } }); + }), + H_._defineProperty(this, "onDisconnect", () => { + this.emit("disconnect"); + }); + } + async connect() { + let { chainId: e } = + arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}; + try { + let t = await this.getProvider(); + t.on("accountsChanged", this.onAccountsChanged), + t.on("chainChanged", this.onChainChanged), + t.on("disconnect", this.onDisconnect), + this.emit("message", { type: "connecting" }); + let n = await t.enable(), + a = dN.getAddress(n[0]), + i = await this.getChainId(), + s = this.isChainUnsupported(i); + return ( + e && + i !== e && + ((i = (await this.switchChain(e)).id), + (s = this.isChainUnsupported(i))), + { + account: a, + chain: { id: i, unsupported: s }, + provider: new gnt.providers.Web3Provider(t), + } + ); + } catch (t) { + throw /(user closed modal|accounts received is empty)/i.test( + t.message + ) + ? new em.UserRejectedRequestError(t) + : t; + } + } + async disconnect() { + if (!Xf._classPrivateFieldGet(this, MC)) return; + let e = await this.getProvider(); + e.removeListener("accountsChanged", this.onAccountsChanged), + e.removeListener("chainChanged", this.onChainChanged), + e.removeListener("disconnect", this.onDisconnect), + e.disconnect(), + e.close(); + } + async getAccount() { + let t = await ( + await this.getProvider() + ).request({ method: "eth_accounts" }); + return dN.getAddress(t[0]); + } + async getChainId() { + let e = await this.getProvider(); + return em.normalizeChainId(e.chainId); + } + async getProvider() { + if (!Xf._classPrivateFieldGet(this, MC)) { + let e = ( + await Promise.resolve().then(function () { + return EMr(TX()); + }) + ).default; + typeof e != "function" && + typeof e.default == "function" && + (e = e.default), + Xf._classPrivateFieldSet(this, pN, new e(this.options)); + let t = Xf._classPrivateFieldGet( + this, + pN + ).walletExtension?.getChainId(), + n = + this.chains.find((s) => + this.options.chainId + ? s.id === this.options.chainId + : s.id === t + ) || this.chains[0], + a = this.options.chainId || n?.id, + i = this.options.jsonRpcUrl || n?.rpcUrls.default.http[0]; + Xf._classPrivateFieldSet( + this, + MC, + Xf._classPrivateFieldGet(this, pN).makeWeb3Provider(i, a) + ); + } + return Xf._classPrivateFieldGet(this, MC); + } + async getSigner() { + let { chainId: e } = + arguments.length > 0 && arguments[0] !== void 0 + ? arguments[0] + : {}, + [t, n] = await Promise.all([this.getProvider(), this.getAccount()]); + return new gnt.providers.Web3Provider(t, e).getSigner(n); + } + async isAuthorized() { + try { + return !!(await this.getAccount()); + } catch { + return !1; + } + } + async switchChain(e) { + let t = await this.getProvider(), + n = dN.hexValue(e); + try { + return ( + await t.request({ + method: "wallet_switchEthereumChain", + params: [{ chainId: n }], + }), + this.chains.find((a) => a.id === e) ?? { + id: e, + name: `Chain ${n}`, + network: `${n}`, + nativeCurrency: { name: "Ether", decimals: 18, symbol: "ETH" }, + rpcUrls: { default: { http: [""] }, public: { http: [""] } }, + } + ); + } catch (a) { + let i = this.chains.find((s) => s.id === e); + if (!i) + throw new em.ChainNotConfiguredError({ + chainId: e, + connectorId: this.id, + }); + if (a.code === 4902) + try { + return ( + await t.request({ + method: "wallet_addEthereumChain", + params: [ + { + chainId: n, + chainName: i.name, + nativeCurrency: i.nativeCurrency, + rpcUrls: [ + i.rpcUrls.public?.http[0] ?? + i.rpcUrls.default.http[0], + ], + blockExplorerUrls: this.getBlockExplorerUrls(i), + }, + ], + }), + i + ); + } catch (s) { + throw FX._classPrivateMethodGet(this, WX, bnt).call(this, s) + ? new em.UserRejectedRequestError(s) + : new em.AddChainError(); + } + throw FX._classPrivateMethodGet(this, WX, bnt).call(this, a) + ? new em.UserRejectedRequestError(a) + : new em.SwitchChainError(a); + } + } + async watchAsset(e) { + let { address: t, decimals: n = 18, image: a, symbol: i } = e; + return (await this.getProvider()).request({ + method: "wallet_watchAsset", + params: { + type: "ERC20", + options: { address: t, decimals: n, image: a, symbol: i }, + }, + }); + } + }; + function bnt(r) { + return /(user rejected)/i.test(r.message); + } + HX.CoinbaseWalletConnector = UX; + }); + var wnt = N((zX) => { + "use strict"; + _(); + x(); + Object.defineProperty(zX, "__esModule", { value: !0 }); + var CMr = jc(), + hN = hd(), + IMr = L_(), + AMr = U_(); + gs(); + V0(); + wt(); + Qf(); + bs(); + var fN = new WeakMap(), + z_ = class extends AMr.AbstractBrowserWallet { + get walletName() { + return "Coinbase Wallet"; + } + constructor(e) { + super(z_.id, e), + hN._classPrivateFieldInitSpec(this, fN, { + writable: !0, + value: void 0, + }); + } + async getConnector() { + if (!hN._classPrivateFieldGet(this, fN)) { + let { CoinbaseWalletConnector: e } = await Promise.resolve().then( + function () { + return vnt(); + } + ); + hN._classPrivateFieldSet( + this, + fN, + new IMr.WagmiAdapter( + new e({ + chains: this.chains, + options: { + appName: this.options.appName, + reloadOnDisconnect: !1, + }, + }) + ) + ); + } + return hN._classPrivateFieldGet(this, fN); + } + }; + CMr._defineProperty(z_, "id", "coinbaseWallet"); + zX.CoinbaseWallet = z_; + }); + var _nt = N((uEn, jX) => { + "use strict"; + _(); + x(); + S.env.NODE_ENV === "production" + ? (jX.exports = ont()) + : (jX.exports = wnt()); + }); + var xnt = N((VX) => { + "use strict"; + _(); + x(); + Object.defineProperty(VX, "__esModule", { value: !0 }); + var kMr = k0(); + Lc(); + wt(); + gs(); + var KX = class extends kMr.AbstractWallet { + constructor(e) { + super(), (this.signer = e); + } + async getSigner() { + return this.signer; + } + }; + VX.EthersWallet = KX; + }); + var Tnt = N((YX) => { + "use strict"; + _(); + x(); + Object.defineProperty(YX, "__esModule", { value: !0 }); + var SMr = V0(); + jc(); + wt(); + gs(); + var GX = class extends SMr.AbstractWallet { + constructor(e) { + super(), (this.signer = e); + } + async getSigner() { + return this.signer; + } + }; + YX.EthersWallet = GX; + }); + var Ent = N((bEn, $X) => { + "use strict"; + _(); + x(); + S.env.NODE_ENV === "production" + ? ($X.exports = xnt()) + : ($X.exports = Tnt()); + }); + var XX = N((QX) => { + "use strict"; + _(); + x(); + Object.defineProperty(QX, "__esModule", { value: !0 }); + var Db = td(), + qb = Lc(), + mN = zf(), + bc = (rd(), In(ip)), + MMr = wt(), + yN = hi(); + bs(); + function PMr(r) { + if (!r) return "Injected"; + let e = (t) => { + if (t.isAvalanche) return "Core Wallet"; + if (t.isBitKeep) return "BitKeep"; + if (t.isBraveWallet) return "Brave Wallet"; + if (t.isCoinbaseWallet) return "Coinbase Wallet"; + if (t.isExodus) return "Exodus"; + if (t.isFrame) return "Frame"; + if (t.isKuCoinWallet) return "KuCoin Wallet"; + if (t.isMathWallet) return "MathWallet"; + if (t.isOneInchIOSWallet || t.isOneInchAndroidWallet) + return "1inch Wallet"; + if (t.isOpera) return "Opera"; + if (t.isPortal) return "Ripio Portal"; + if (t.isTally) return "Tally"; + if (t.isTokenPocket) return "TokenPocket"; + if (t.isTokenary) return "Tokenary"; + if (t.isTrust || t.isTrustWallet) return "Trust Wallet"; + if (t.isMetaMask) return "MetaMask"; + }; + if (r.providers?.length) { + let t = new Set(), + n = 1; + for (let i of r.providers) { + let s = e(i); + s || ((s = `Unknown Wallet #${n}`), (n += 1)), t.add(s); + } + let a = [...t]; + return a.length ? a : a[0] ?? "Injected"; + } + return e(r) ?? "Injected"; + } + var JX = new WeakMap(), + gN = new WeakMap(), + ZX = class extends bc.Connector { + constructor() { + let { chains: e, options: t } = + arguments.length > 0 && arguments[0] !== void 0 + ? arguments[0] + : {}, + n = { + shimDisconnect: !0, + shimChainChangedDisconnect: !0, + getProvider: () => + typeof window < "u" ? window.ethereum : void 0, + ...t, + }; + super({ chains: e, options: n }), + qb._defineProperty(this, "id", void 0), + qb._defineProperty(this, "name", void 0), + qb._defineProperty(this, "ready", void 0), + Db._classPrivateFieldInitSpec(this, JX, { + writable: !0, + value: void 0, + }), + Db._classPrivateFieldInitSpec(this, gN, { + writable: !0, + value: void 0, + }), + qb._defineProperty( + this, + "shimDisconnectKey", + "injected.shimDisconnect" + ), + qb._defineProperty(this, "onAccountsChanged", (i) => { + i.length === 0 + ? this.emit("disconnect") + : this.emit("change", { account: yN.getAddress(i[0]) }); + }), + qb._defineProperty(this, "onChainChanged", (i) => { + let s = bc.normalizeChainId(i), + c = this.isChainUnsupported(s); + this.emit("change", { chain: { id: s, unsupported: c } }); + }), + qb._defineProperty(this, "onDisconnect", async () => { + if ( + this.options.shimChainChangedDisconnect && + Db._classPrivateFieldGet(this, gN) + ) { + Db._classPrivateFieldSet(this, gN, !1); + return; + } + this.emit("disconnect"), + this.options.shimDisconnect && + (await mN + .getConnectorStorage() + .removeItem(this.shimDisconnectKey)); + }); + let a = n.getProvider(); + if (typeof n.name == "string") this.name = n.name; + else if (a) { + let i = PMr(a); + n.name + ? (this.name = n.name(i)) + : typeof i == "string" + ? (this.name = i) + : (this.name = i[0]); + } else this.name = "Injected"; + (this.id = "injected"), (this.ready = !!a); + } + async connect() { + let { chainId: e } = + arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}; + try { + let t = await this.getProvider(); + if (!t) throw new bc.ConnectorNotFoundError(); + t.on && + (t.on("accountsChanged", this.onAccountsChanged), + t.on("chainChanged", this.onChainChanged), + t.on("disconnect", this.onDisconnect)), + this.emit("message", { type: "connecting" }); + let n = await t.request({ method: "eth_requestAccounts" }), + a = yN.getAddress(n[0]), + i = await this.getChainId(), + s = this.isChainUnsupported(i); + return ( + e && + i !== e && + ((i = (await this.switchChain(e)).id), + (s = this.isChainUnsupported(i))), + this.options.shimDisconnect && + (await mN + .getConnectorStorage() + ?.setItem(this.shimDisconnectKey, !0)), + { account: a, chain: { id: i, unsupported: s }, provider: t } + ); + } catch (t) { + throw this.isUserRejectedRequestError(t) + ? new bc.UserRejectedRequestError(t) + : t.code === -32002 + ? new bc.ResourceUnavailableError(t) + : t; + } + } + async disconnect() { + let e = await this.getProvider(); + !e?.removeListener || + (e.removeListener("accountsChanged", this.onAccountsChanged), + e.removeListener("chainChanged", this.onChainChanged), + e.removeListener("disconnect", this.onDisconnect), + this.options.shimDisconnect && + (await mN + .getConnectorStorage() + ?.removeItem(this.shimDisconnectKey))); + } + async getAccount() { + let e = await this.getProvider(); + if (!e) throw new bc.ConnectorNotFoundError(); + let t = await e.request({ method: "eth_accounts" }); + return yN.getAddress(t[0]); + } + async getChainId() { + let e = await this.getProvider(); + if (!e) throw new bc.ConnectorNotFoundError(); + return e.request({ method: "eth_chainId" }).then(bc.normalizeChainId); + } + async getProvider() { + let e = this.options.getProvider(); + return ( + e && Db._classPrivateFieldSet(this, JX, e), + Db._classPrivateFieldGet(this, JX) + ); + } + async getSigner() { + let { chainId: e } = + arguments.length > 0 && arguments[0] !== void 0 + ? arguments[0] + : {}, + [t, n] = await Promise.all([this.getProvider(), this.getAccount()]); + return new MMr.providers.Web3Provider(t, e).getSigner(n); + } + async isAuthorized() { + try { + if ( + this.options.shimDisconnect && + !(await mN.getConnectorStorage()?.getItem(this.shimDisconnectKey)) + ) + return !1; + if (!(await this.getProvider())) + throw new bc.ConnectorNotFoundError(); + return !!(await this.getAccount()); + } catch { + return !1; + } + } + async switchChain(e) { + this.options.shimChainChangedDisconnect && + Db._classPrivateFieldSet(this, gN, !0); + let t = await this.getProvider(); + if (!t) throw new bc.ConnectorNotFoundError(); + let n = yN.hexValue(e); + try { + return ( + await t.request({ + method: "wallet_switchEthereumChain", + params: [{ chainId: n }], + }), + this.chains.find((a) => a.id === e) ?? { + id: e, + name: `Chain ${n}`, + network: `${n}`, + nativeCurrency: { name: "Ether", decimals: 18, symbol: "ETH" }, + rpcUrls: { default: { http: [""] }, public: { http: [""] } }, + } + ); + } catch (a) { + let i = this.chains.find((s) => s.id === e); + if (!i) + throw new bc.ChainNotConfiguredError({ + chainId: e, + connectorId: this.id, + }); + if (a.code === 4902 || a?.data?.originalError?.code === 4902) + try { + return ( + await t.request({ + method: "wallet_addEthereumChain", + params: [ + { + chainId: n, + chainName: i.name, + nativeCurrency: i.nativeCurrency, + rpcUrls: [ + i.rpcUrls.public?.http[0] ?? + i.rpcUrls.default.http[0] ?? + "", + ], + blockExplorerUrls: this.getBlockExplorerUrls(i), + }, + ], + }), + i + ); + } catch (s) { + throw this.isUserRejectedRequestError(s) + ? new bc.UserRejectedRequestError(a) + : new bc.AddChainError(); + } + throw this.isUserRejectedRequestError(a) + ? new bc.UserRejectedRequestError(a) + : new bc.SwitchChainError(a); + } + } + async watchAsset(e) { + let { address: t, decimals: n = 18, image: a, symbol: i } = e, + s = await this.getProvider(); + if (!s) throw new bc.ConnectorNotFoundError(); + return s.request({ + method: "wallet_watchAsset", + params: { + type: "ERC20", + options: { address: t, decimals: n, image: a, symbol: i }, + }, + }); + } + isUserRejectedRequestError(e) { + return e.code === 4001; + } + }; + QX.InjectedConnector = ZX; + }); + var Cnt = N((eee) => { + "use strict"; + _(); + x(); + Object.defineProperty(eee, "__esModule", { value: !0 }); + var RMr = Lc(), + bN = td(), + BMr = v2(), + NMr = E2(); + gs(); + k0(); + wt(); + zf(); + bs(); + var vN = new WeakMap(), + j_ = class extends NMr.AbstractBrowserWallet { + get walletName() { + return "Injected Wallet"; + } + constructor(e) { + super(j_.id, e), + bN._classPrivateFieldInitSpec(this, vN, { + writable: !0, + value: void 0, + }); + } + async getConnector() { + if (!bN._classPrivateFieldGet(this, vN)) { + let { InjectedConnector: e } = await Promise.resolve().then( + function () { + return XX(); + } + ); + bN._classPrivateFieldSet( + this, + vN, + new BMr.WagmiAdapter( + new e({ chains: this.chains, options: { shimDisconnect: !0 } }) + ) + ); + } + return bN._classPrivateFieldGet(this, vN); + } + }; + RMr._defineProperty(j_, "id", "injected"); + eee.InjectedWallet = j_; + }); + var aee = N((nee) => { + "use strict"; + _(); + x(); + Object.defineProperty(nee, "__esModule", { value: !0 }); + var Fb = hd(), + Wb = jc(), + wN = Qf(), + vc = (rd(), In(ip)), + OMr = wt(), + _N = hi(); + bs(); + function LMr(r) { + if (!r) return "Injected"; + let e = (t) => { + if (t.isAvalanche) return "Core Wallet"; + if (t.isBitKeep) return "BitKeep"; + if (t.isBraveWallet) return "Brave Wallet"; + if (t.isCoinbaseWallet) return "Coinbase Wallet"; + if (t.isExodus) return "Exodus"; + if (t.isFrame) return "Frame"; + if (t.isKuCoinWallet) return "KuCoin Wallet"; + if (t.isMathWallet) return "MathWallet"; + if (t.isOneInchIOSWallet || t.isOneInchAndroidWallet) + return "1inch Wallet"; + if (t.isOpera) return "Opera"; + if (t.isPortal) return "Ripio Portal"; + if (t.isTally) return "Tally"; + if (t.isTokenPocket) return "TokenPocket"; + if (t.isTokenary) return "Tokenary"; + if (t.isTrust || t.isTrustWallet) return "Trust Wallet"; + if (t.isMetaMask) return "MetaMask"; + }; + if (r.providers?.length) { + let t = new Set(), + n = 1; + for (let i of r.providers) { + let s = e(i); + s || ((s = `Unknown Wallet #${n}`), (n += 1)), t.add(s); + } + let a = [...t]; + return a.length ? a : a[0] ?? "Injected"; + } + return e(r) ?? "Injected"; + } + var tee = new WeakMap(), + xN = new WeakMap(), + ree = class extends vc.Connector { + constructor() { + let { chains: e, options: t } = + arguments.length > 0 && arguments[0] !== void 0 + ? arguments[0] + : {}, + n = { + shimDisconnect: !0, + shimChainChangedDisconnect: !0, + getProvider: () => + typeof window < "u" ? window.ethereum : void 0, + ...t, + }; + super({ chains: e, options: n }), + Wb._defineProperty(this, "id", void 0), + Wb._defineProperty(this, "name", void 0), + Wb._defineProperty(this, "ready", void 0), + Fb._classPrivateFieldInitSpec(this, tee, { + writable: !0, + value: void 0, + }), + Fb._classPrivateFieldInitSpec(this, xN, { + writable: !0, + value: void 0, + }), + Wb._defineProperty( + this, + "shimDisconnectKey", + "injected.shimDisconnect" + ), + Wb._defineProperty(this, "onAccountsChanged", (i) => { + i.length === 0 + ? this.emit("disconnect") + : this.emit("change", { account: _N.getAddress(i[0]) }); + }), + Wb._defineProperty(this, "onChainChanged", (i) => { + let s = vc.normalizeChainId(i), + c = this.isChainUnsupported(s); + this.emit("change", { chain: { id: s, unsupported: c } }); + }), + Wb._defineProperty(this, "onDisconnect", async () => { + if ( + this.options.shimChainChangedDisconnect && + Fb._classPrivateFieldGet(this, xN) + ) { + Fb._classPrivateFieldSet(this, xN, !1); + return; + } + this.emit("disconnect"), + this.options.shimDisconnect && + (await wN + .getConnectorStorage() + .removeItem(this.shimDisconnectKey)); + }); + let a = n.getProvider(); + if (typeof n.name == "string") this.name = n.name; + else if (a) { + let i = LMr(a); + n.name + ? (this.name = n.name(i)) + : typeof i == "string" + ? (this.name = i) + : (this.name = i[0]); + } else this.name = "Injected"; + (this.id = "injected"), (this.ready = !!a); + } + async connect() { + let { chainId: e } = + arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}; + try { + let t = await this.getProvider(); + if (!t) throw new vc.ConnectorNotFoundError(); + t.on && + (t.on("accountsChanged", this.onAccountsChanged), + t.on("chainChanged", this.onChainChanged), + t.on("disconnect", this.onDisconnect)), + this.emit("message", { type: "connecting" }); + let n = await t.request({ method: "eth_requestAccounts" }), + a = _N.getAddress(n[0]), + i = await this.getChainId(), + s = this.isChainUnsupported(i); + return ( + e && + i !== e && + ((i = (await this.switchChain(e)).id), + (s = this.isChainUnsupported(i))), + this.options.shimDisconnect && + (await wN + .getConnectorStorage() + ?.setItem(this.shimDisconnectKey, !0)), + { account: a, chain: { id: i, unsupported: s }, provider: t } + ); + } catch (t) { + throw this.isUserRejectedRequestError(t) + ? new vc.UserRejectedRequestError(t) + : t.code === -32002 + ? new vc.ResourceUnavailableError(t) + : t; + } + } + async disconnect() { + let e = await this.getProvider(); + !e?.removeListener || + (e.removeListener("accountsChanged", this.onAccountsChanged), + e.removeListener("chainChanged", this.onChainChanged), + e.removeListener("disconnect", this.onDisconnect), + this.options.shimDisconnect && + (await wN + .getConnectorStorage() + ?.removeItem(this.shimDisconnectKey))); + } + async getAccount() { + let e = await this.getProvider(); + if (!e) throw new vc.ConnectorNotFoundError(); + let t = await e.request({ method: "eth_accounts" }); + return _N.getAddress(t[0]); + } + async getChainId() { + let e = await this.getProvider(); + if (!e) throw new vc.ConnectorNotFoundError(); + return e.request({ method: "eth_chainId" }).then(vc.normalizeChainId); + } + async getProvider() { + let e = this.options.getProvider(); + return ( + e && Fb._classPrivateFieldSet(this, tee, e), + Fb._classPrivateFieldGet(this, tee) + ); + } + async getSigner() { + let { chainId: e } = + arguments.length > 0 && arguments[0] !== void 0 + ? arguments[0] + : {}, + [t, n] = await Promise.all([this.getProvider(), this.getAccount()]); + return new OMr.providers.Web3Provider(t, e).getSigner(n); + } + async isAuthorized() { + try { + if ( + this.options.shimDisconnect && + !(await wN.getConnectorStorage()?.getItem(this.shimDisconnectKey)) + ) + return !1; + if (!(await this.getProvider())) + throw new vc.ConnectorNotFoundError(); + return !!(await this.getAccount()); + } catch { + return !1; + } + } + async switchChain(e) { + this.options.shimChainChangedDisconnect && + Fb._classPrivateFieldSet(this, xN, !0); + let t = await this.getProvider(); + if (!t) throw new vc.ConnectorNotFoundError(); + let n = _N.hexValue(e); + try { + return ( + await t.request({ + method: "wallet_switchEthereumChain", + params: [{ chainId: n }], + }), + this.chains.find((a) => a.id === e) ?? { + id: e, + name: `Chain ${n}`, + network: `${n}`, + nativeCurrency: { name: "Ether", decimals: 18, symbol: "ETH" }, + rpcUrls: { default: { http: [""] }, public: { http: [""] } }, + } + ); + } catch (a) { + let i = this.chains.find((s) => s.id === e); + if (!i) + throw new vc.ChainNotConfiguredError({ + chainId: e, + connectorId: this.id, + }); + if (a.code === 4902 || a?.data?.originalError?.code === 4902) + try { + return ( + await t.request({ + method: "wallet_addEthereumChain", + params: [ + { + chainId: n, + chainName: i.name, + nativeCurrency: i.nativeCurrency, + rpcUrls: [ + i.rpcUrls.public?.http[0] ?? + i.rpcUrls.default.http[0] ?? + "", + ], + blockExplorerUrls: this.getBlockExplorerUrls(i), + }, + ], + }), + i + ); + } catch (s) { + throw this.isUserRejectedRequestError(s) + ? new vc.UserRejectedRequestError(a) + : new vc.AddChainError(); + } + throw this.isUserRejectedRequestError(a) + ? new vc.UserRejectedRequestError(a) + : new vc.SwitchChainError(a); + } + } + async watchAsset(e) { + let { address: t, decimals: n = 18, image: a, symbol: i } = e, + s = await this.getProvider(); + if (!s) throw new vc.ConnectorNotFoundError(); + return s.request({ + method: "wallet_watchAsset", + params: { + type: "ERC20", + options: { address: t, decimals: n, image: a, symbol: i }, + }, + }); + } + isUserRejectedRequestError(e) { + return e.code === 4001; + } + }; + nee.InjectedConnector = ree; + }); + var Int = N((iee) => { + "use strict"; + _(); + x(); + Object.defineProperty(iee, "__esModule", { value: !0 }); + var DMr = jc(), + TN = hd(), + qMr = L_(), + FMr = U_(); + gs(); + V0(); + wt(); + Qf(); + bs(); + var EN = new WeakMap(), + K_ = class extends FMr.AbstractBrowserWallet { + get walletName() { + return "Injected Wallet"; + } + constructor(e) { + super(K_.id, e), + TN._classPrivateFieldInitSpec(this, EN, { + writable: !0, + value: void 0, + }); + } + async getConnector() { + if (!TN._classPrivateFieldGet(this, EN)) { + let { InjectedConnector: e } = await Promise.resolve().then( + function () { + return aee(); + } + ); + TN._classPrivateFieldSet( + this, + EN, + new qMr.WagmiAdapter( + new e({ chains: this.chains, options: { shimDisconnect: !0 } }) + ) + ); + } + return TN._classPrivateFieldGet(this, EN); + } + }; + DMr._defineProperty(K_, "id", "injected"); + iee.InjectedWallet = K_; + }); + var Ant = N((BEn, see) => { + "use strict"; + _(); + x(); + S.env.NODE_ENV === "production" + ? (see.exports = Cnt()) + : (see.exports = Int()); + }); + var tm = N((LEn, Lnt) => { + _(); + x(); + var oee = Object.defineProperty, + WMr = Object.getOwnPropertyDescriptor, + UMr = Object.getOwnPropertyNames, + HMr = Object.prototype.hasOwnProperty, + zMr = (r) => oee(r, "__esModule", { value: !0 }), + jMr = (r, e) => { + for (var t in e) oee(r, t, { get: e[t], enumerable: !0 }); + }, + KMr = (r, e, t, n) => { + if ((e && typeof e == "object") || typeof e == "function") + for (let a of UMr(e)) + !HMr.call(r, a) && + (t || a !== "default") && + oee(r, a, { + get: () => e[a], + enumerable: !(n = WMr(e, a)) || n.enumerable, + }); + return r; + }, + VMr = ( + (r) => (e, t) => + (r && r.get(e)) || ((t = KMr(zMr({}), e, 1)), r && r.set(e, t), t) + )(typeof WeakMap < "u" ? new WeakMap() : 0), + knt = {}; + jMr(knt, { + EthChainType: () => Ont, + MagicIncomingWindowMessage: () => Bnt, + MagicOutgoingWindowMessage: () => Nnt, + MagicPayloadMethod: () => Rnt, + RPCErrorCode: () => Pnt, + SDKErrorCode: () => Snt, + SDKWarningCode: () => Mnt, + }); + var Snt = ((r) => ( + (r.MissingApiKey = "MISSING_API_KEY"), + (r.ModalNotReady = "MODAL_NOT_READY"), + (r.MalformedResponse = "MALFORMED_RESPONSE"), + (r.InvalidArgument = "INVALID_ARGUMENT"), + (r.ExtensionNotInitialized = "EXTENSION_NOT_INITIALIZED"), + (r.IncompatibleExtensions = "INCOMPATIBLE_EXTENSIONS"), + r + ))(Snt || {}), + Mnt = ((r) => ( + (r.SyncWeb3Method = "SYNC_WEB3_METHOD"), + (r.DuplicateIframe = "DUPLICATE_IFRAME"), + (r.ReactNativeEndpointConfiguration = + "REACT_NATIVE_ENDPOINT_CONFIGURATION"), + (r.DeprecationNotice = "DEPRECATION_NOTICE"), + r + ))(Mnt || {}), + Pnt = ((r) => ( + (r[(r.ParseError = -32700)] = "ParseError"), + (r[(r.InvalidRequest = -32600)] = "InvalidRequest"), + (r[(r.MethodNotFound = -32601)] = "MethodNotFound"), + (r[(r.InvalidParams = -32602)] = "InvalidParams"), + (r[(r.InternalError = -32603)] = "InternalError"), + (r[(r.MagicLinkFailedVerification = -1e4)] = + "MagicLinkFailedVerification"), + (r[(r.MagicLinkExpired = -10001)] = "MagicLinkExpired"), + (r[(r.MagicLinkRateLimited = -10002)] = "MagicLinkRateLimited"), + (r[(r.MagicLinkInvalidRedirectURL = -10006)] = + "MagicLinkInvalidRedirectURL"), + (r[(r.UserAlreadyLoggedIn = -10003)] = "UserAlreadyLoggedIn"), + (r[(r.UpdateEmailFailed = -10004)] = "UpdateEmailFailed"), + (r[(r.UserRequestEditEmail = -10005)] = "UserRequestEditEmail"), + (r[(r.InactiveRecipient = -10010)] = "InactiveRecipient"), + (r[(r.AccessDeniedToUser = -10011)] = "AccessDeniedToUser"), + r + ))(Pnt || {}), + Rnt = ((r) => ( + (r.LoginWithSms = "magic_auth_login_with_sms"), + (r.LoginWithEmailOTP = "magic_auth_login_with_email_otp"), + (r.LoginWithMagicLink = "magic_auth_login_with_magic_link"), + (r.LoginWithCredential = "magic_auth_login_with_credential"), + (r.GetIdToken = "magic_auth_get_id_token"), + (r.GenerateIdToken = "magic_auth_generate_id_token"), + (r.GetMetadata = "magic_auth_get_metadata"), + (r.IsLoggedIn = "magic_auth_is_logged_in"), + (r.Logout = "magic_auth_logout"), + (r.UpdateEmail = "magic_auth_update_email"), + (r.UserSettings = "magic_auth_settings"), + (r.UserSettingsTestMode = "magic_auth_settings_testing_mode"), + (r.LoginWithSmsTestMode = "magic_auth_login_with_sms_testing_mode"), + (r.LoginWithEmailOTPTestMode = + "magic_auth_login_with_email_otp_testing_mode"), + (r.LoginWithMagicLinkTestMode = + "magic_login_with_magic_link_testing_mode"), + (r.LoginWithCredentialTestMode = + "magic_auth_login_with_credential_testing_mode"), + (r.GetIdTokenTestMode = "magic_auth_get_id_token_testing_mode"), + (r.GenerateIdTokenTestMode = + "magic_auth_generate_id_token_testing_mode"), + (r.GetMetadataTestMode = "magic_auth_get_metadata_testing_mode"), + (r.IsLoggedInTestMode = "magic_auth_is_logged_in_testing_mode"), + (r.LogoutTestMode = "magic_auth_logout_testing_mode"), + (r.UpdateEmailTestMode = "magic_auth_update_email_testing_mode"), + (r.IntermediaryEvent = "magic_intermediary_event"), + r + ))(Rnt || {}), + Bnt = ((r) => ( + (r.MAGIC_HANDLE_RESPONSE = "MAGIC_HANDLE_RESPONSE"), + (r.MAGIC_OVERLAY_READY = "MAGIC_OVERLAY_READY"), + (r.MAGIC_SHOW_OVERLAY = "MAGIC_SHOW_OVERLAY"), + (r.MAGIC_HIDE_OVERLAY = "MAGIC_HIDE_OVERLAY"), + (r.MAGIC_HANDLE_EVENT = "MAGIC_HANDLE_EVENT"), + r + ))(Bnt || {}), + Nnt = ((r) => ((r.MAGIC_HANDLE_REQUEST = "MAGIC_HANDLE_REQUEST"), r))( + Nnt || {} + ), + Ont = ((r) => ((r.Harmony = "HARMONY"), r))(Ont || {}); + Lnt.exports = VMr(knt); + }); + var DN = N((FEn, kat) => { + _(); + x(); + var GMr = Object.create, + DC = Object.defineProperty, + YMr = Object.defineProperties, + $Mr = Object.getOwnPropertyDescriptor, + JMr = Object.getOwnPropertyDescriptors, + ZMr = Object.getOwnPropertyNames, + Dnt = Object.getOwnPropertySymbols, + QMr = Object.getPrototypeOf, + Qnt = Object.prototype.hasOwnProperty, + XMr = Object.prototype.propertyIsEnumerable, + qnt = (r, e, t) => + e in r + ? DC(r, e, { + enumerable: !0, + configurable: !0, + writable: !0, + value: t, + }) + : (r[e] = t), + Xnt = (r, e) => { + for (var t in e || (e = {})) Qnt.call(e, t) && qnt(r, t, e[t]); + if (Dnt) for (var t of Dnt(e)) XMr.call(e, t) && qnt(r, t, e[t]); + return r; + }, + ePr = (r, e) => YMr(r, JMr(e)), + eat = (r) => DC(r, "__esModule", { value: !0 }), + tPr = (r, e) => () => ( + e || r((e = { exports: {} }).exports, e), e.exports + ), + tat = (r, e) => { + for (var t in e) DC(r, t, { get: e[t], enumerable: !0 }); + }, + rat = (r, e, t, n) => { + if ((e && typeof e == "object") || typeof e == "function") + for (let a of ZMr(e)) + !Qnt.call(r, a) && + (t || a !== "default") && + DC(r, a, { + get: () => e[a], + enumerable: !(n = $Mr(e, a)) || n.enumerable, + }); + return r; + }, + rPr = (r, e) => + rat( + eat( + DC( + r != null ? GMr(QMr(r)) : {}, + "default", + !e && r && r.__esModule + ? { get: () => r.default, enumerable: !0 } + : { value: r, enumerable: !0 } + ) + ), + r + ), + nPr = ( + (r) => (e, t) => + (r && r.get(e)) || ((t = rat(eat({}), e, 1)), r && r.set(e, t), t) + )(typeof WeakMap < "u" ? new WeakMap() : 0), + nm = (r, e, t) => + new Promise((n, a) => { + var i = (l) => { + try { + c(t.next(l)); + } catch (d) { + a(d); + } + }, + s = (l) => { + try { + c(t.throw(l)); + } catch (d) { + a(d); + } + }, + c = (l) => + l.done ? n(l.value) : Promise.resolve(l.value).then(i, s); + c((t = t.apply(r, e)).next()); + }), + aPr = tPr((r, e) => { + "use strict"; + var t = Object.prototype.hasOwnProperty, + n = "~"; + function a() {} + Object.create && + ((a.prototype = Object.create(null)), new a().__proto__ || (n = !1)); + function i(d, m, w) { + (this.fn = d), (this.context = m), (this.once = w || !1); + } + function s(d, m, w, C, I) { + if (typeof w != "function") + throw new TypeError("The listener must be a function"); + var k = new i(w, C || d, I), + O = n ? n + m : m; + return ( + d._events[O] + ? d._events[O].fn + ? (d._events[O] = [d._events[O], k]) + : d._events[O].push(k) + : ((d._events[O] = k), d._eventsCount++), + d + ); + } + function c(d, m) { + --d._eventsCount === 0 ? (d._events = new a()) : delete d._events[m]; + } + function l() { + (this._events = new a()), (this._eventsCount = 0); + } + (l.prototype.eventNames = function () { + var d = [], + m, + w; + if (this._eventsCount === 0) return d; + for (w in (m = this._events)) + t.call(m, w) && d.push(n ? w.slice(1) : w); + return Object.getOwnPropertySymbols + ? d.concat(Object.getOwnPropertySymbols(m)) + : d; + }), + (l.prototype.listeners = function (d) { + var m = n ? n + d : d, + w = this._events[m]; + if (!w) return []; + if (w.fn) return [w.fn]; + for (var C = 0, I = w.length, k = new Array(I); C < I; C++) + k[C] = w[C].fn; + return k; + }), + (l.prototype.listenerCount = function (d) { + var m = n ? n + d : d, + w = this._events[m]; + return w ? (w.fn ? 1 : w.length) : 0; + }), + (l.prototype.emit = function (d, m, w, C, I, k) { + var O = n ? n + d : d; + if (!this._events[O]) return !1; + var D = this._events[O], + W = arguments.length, + H, + j; + if (D.fn) { + switch ((D.once && this.removeListener(d, D.fn, void 0, !0), W)) { + case 1: + return D.fn.call(D.context), !0; + case 2: + return D.fn.call(D.context, m), !0; + case 3: + return D.fn.call(D.context, m, w), !0; + case 4: + return D.fn.call(D.context, m, w, C), !0; + case 5: + return D.fn.call(D.context, m, w, C, I), !0; + case 6: + return D.fn.call(D.context, m, w, C, I, k), !0; + } + for (j = 1, H = new Array(W - 1); j < W; j++) + H[j - 1] = arguments[j]; + D.fn.apply(D.context, H); + } else { + var V = D.length, + te; + for (j = 0; j < V; j++) + switch ( + (D[j].once && this.removeListener(d, D[j].fn, void 0, !0), W) + ) { + case 1: + D[j].fn.call(D[j].context); + break; + case 2: + D[j].fn.call(D[j].context, m); + break; + case 3: + D[j].fn.call(D[j].context, m, w); + break; + case 4: + D[j].fn.call(D[j].context, m, w, C); + break; + default: + if (!H) + for (te = 1, H = new Array(W - 1); te < W; te++) + H[te - 1] = arguments[te]; + D[j].fn.apply(D[j].context, H); + } + } + return !0; + }), + (l.prototype.on = function (d, m, w) { + return s(this, d, m, w, !1); + }), + (l.prototype.once = function (d, m, w) { + return s(this, d, m, w, !0); + }), + (l.prototype.removeListener = function (d, m, w, C) { + var I = n ? n + d : d; + if (!this._events[I]) return this; + if (!m) return c(this, I), this; + var k = this._events[I]; + if (k.fn) + k.fn === m && + (!C || k.once) && + (!w || k.context === w) && + c(this, I); + else { + for (var O = 0, D = [], W = k.length; O < W; O++) + (k[O].fn !== m || + (C && !k[O].once) || + (w && k[O].context !== w)) && + D.push(k[O]); + D.length + ? (this._events[I] = D.length === 1 ? D[0] : D) + : c(this, I); + } + return this; + }), + (l.prototype.removeAllListeners = function (d) { + var m; + return ( + d + ? ((m = n ? n + d : d), this._events[m] && c(this, m)) + : ((this._events = new a()), (this._eventsCount = 0)), + this + ); + }), + (l.prototype.off = l.prototype.removeListener), + (l.prototype.addListener = l.prototype.on), + (l.prefixed = n), + (l.EventEmitter = l), + typeof e < "u" && (e.exports = l); + }), + nat = {}; + tat(nat, { + Extension: () => Y_, + MagicExtensionError: () => mee, + MagicExtensionWarning: () => lee, + MagicRPCError: () => NC, + MagicSDKError: () => Y0, + MagicSDKWarning: () => FC, + SDKBase: () => Aat, + STORE_KEY_PRIVATE_KEY: () => LN, + STORE_KEY_PUBLIC_JWK: () => LC, + TypedEmitter: () => bat, + ViewController: () => k9r, + clearKeys: () => Tat, + createDeprecationWarning: () => e9r, + createDuplicateIframeWarning: () => XPr, + createExtensionNotInitializedError: () => dat, + createIncompatibleExtensionsError: () => pat, + createInvalidArgumentError: () => hat, + createJwt: () => Eat, + createMalformedResponseError: () => lat, + createMissingApiKeyError: () => uat, + createModalNotReadyError: () => QPr, + createPromiEvent: () => vee, + createPromise: () => wee, + createReactNativeEndpointConfigurationWarning: () => mat, + createSDK: () => JPr, + createSynchronousWeb3MethodWarning: () => fat, + createTypedEmitter: () => bee, + createURL: () => pee, + decodeJSON: () => iat, + encodeJSON: () => fee, + getPayloadId: () => yee, + isEmpty: () => RN, + isJsonRpcErrorCode: () => cat, + isJsonRpcRequestPayload: () => YPr, + isJsonRpcResponsePayload: () => oat, + isMagicPayloadMethod: () => $Pr, + isPromiEvent: () => wat, + storage: () => _ee, + uuid: () => _at, + }); + function iPr(r) { + let e = { exports: {} }; + return r(e, e.exports), e.exports; + } + var sPr = Number.MAX_SAFE_INTEGER || 9007199254740991, + hee = { + SEMVER_SPEC_VERSION: "2.0.0", + MAX_LENGTH: 256, + MAX_SAFE_INTEGER: sPr, + MAX_SAFE_COMPONENT_LENGTH: 16, + }, + oPr = + typeof S == "object" && + S.env && + S.env.NODE_DEBUG && + /\bsemver\b/i.test(S.env.NODE_DEBUG) + ? (...r) => console.error("SEMVER", ...r) + : () => {}, + Ja = oPr, + qC = iPr(function (r, e) { + let { MAX_SAFE_COMPONENT_LENGTH: t } = hee, + n = ((e = r.exports = {}).re = []), + a = (e.src = []), + i = (e.t = {}), + s = 0, + c = (l, d, m) => { + let w = s++; + Ja(w, d), + (i[l] = w), + (a[w] = d), + (n[w] = new RegExp(d, m ? "g" : void 0)); + }; + c("NUMERICIDENTIFIER", "0|[1-9]\\d*"), + c("NUMERICIDENTIFIERLOOSE", "[0-9]+"), + c("NONNUMERICIDENTIFIER", "\\d*[a-zA-Z-][a-zA-Z0-9-]*"), + c( + "MAINVERSION", + `(${a[i.NUMERICIDENTIFIER]})\\.(${a[i.NUMERICIDENTIFIER]})\\.(${ + a[i.NUMERICIDENTIFIER] + })` + ), + c( + "MAINVERSIONLOOSE", + `(${a[i.NUMERICIDENTIFIERLOOSE]})\\.(${ + a[i.NUMERICIDENTIFIERLOOSE] + })\\.(${a[i.NUMERICIDENTIFIERLOOSE]})` + ), + c( + "PRERELEASEIDENTIFIER", + `(?:${a[i.NUMERICIDENTIFIER]}|${a[i.NONNUMERICIDENTIFIER]})` + ), + c( + "PRERELEASEIDENTIFIERLOOSE", + `(?:${a[i.NUMERICIDENTIFIERLOOSE]}|${a[i.NONNUMERICIDENTIFIER]})` + ), + c( + "PRERELEASE", + `(?:-(${a[i.PRERELEASEIDENTIFIER]}(?:\\.${ + a[i.PRERELEASEIDENTIFIER] + })*))` + ), + c( + "PRERELEASELOOSE", + `(?:-?(${a[i.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${ + a[i.PRERELEASEIDENTIFIERLOOSE] + })*))` + ), + c("BUILDIDENTIFIER", "[0-9A-Za-z-]+"), + c( + "BUILD", + `(?:\\+(${a[i.BUILDIDENTIFIER]}(?:\\.${a[i.BUILDIDENTIFIER]})*))` + ), + c( + "FULLPLAIN", + `v?${a[i.MAINVERSION]}${a[i.PRERELEASE]}?${a[i.BUILD]}?` + ), + c("FULL", `^${a[i.FULLPLAIN]}$`), + c( + "LOOSEPLAIN", + `[v=\\s]*${a[i.MAINVERSIONLOOSE]}${a[i.PRERELEASELOOSE]}?${ + a[i.BUILD] + }?` + ), + c("LOOSE", `^${a[i.LOOSEPLAIN]}$`), + c("GTLT", "((?:<|>)?=?)"), + c("XRANGEIDENTIFIERLOOSE", `${a[i.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`), + c("XRANGEIDENTIFIER", `${a[i.NUMERICIDENTIFIER]}|x|X|\\*`), + c( + "XRANGEPLAIN", + `[v=\\s]*(${a[i.XRANGEIDENTIFIER]})(?:\\.(${ + a[i.XRANGEIDENTIFIER] + })(?:\\.(${a[i.XRANGEIDENTIFIER]})(?:${a[i.PRERELEASE]})?${ + a[i.BUILD] + }?)?)?` + ), + c( + "XRANGEPLAINLOOSE", + `[v=\\s]*(${a[i.XRANGEIDENTIFIERLOOSE]})(?:\\.(${ + a[i.XRANGEIDENTIFIERLOOSE] + })(?:\\.(${a[i.XRANGEIDENTIFIERLOOSE]})(?:${ + a[i.PRERELEASELOOSE] + })?${a[i.BUILD]}?)?)?` + ), + c("XRANGE", `^${a[i.GTLT]}\\s*${a[i.XRANGEPLAIN]}$`), + c("XRANGELOOSE", `^${a[i.GTLT]}\\s*${a[i.XRANGEPLAINLOOSE]}$`), + c( + "COERCE", + `(^|[^\\d])(\\d{1,${t}})(?:\\.(\\d{1,${t}}))?(?:\\.(\\d{1,${t}}))?(?:$|[^\\d])` + ), + c("COERCERTL", a[i.COERCE], !0), + c("LONETILDE", "(?:~>?)"), + c("TILDETRIM", `(\\s*)${a[i.LONETILDE]}\\s+`, !0), + (e.tildeTrimReplace = "$1~"), + c("TILDE", `^${a[i.LONETILDE]}${a[i.XRANGEPLAIN]}$`), + c("TILDELOOSE", `^${a[i.LONETILDE]}${a[i.XRANGEPLAINLOOSE]}$`), + c("LONECARET", "(?:\\^)"), + c("CARETTRIM", `(\\s*)${a[i.LONECARET]}\\s+`, !0), + (e.caretTrimReplace = "$1^"), + c("CARET", `^${a[i.LONECARET]}${a[i.XRANGEPLAIN]}$`), + c("CARETLOOSE", `^${a[i.LONECARET]}${a[i.XRANGEPLAINLOOSE]}$`), + c("COMPARATORLOOSE", `^${a[i.GTLT]}\\s*(${a[i.LOOSEPLAIN]})$|^$`), + c("COMPARATOR", `^${a[i.GTLT]}\\s*(${a[i.FULLPLAIN]})$|^$`), + c( + "COMPARATORTRIM", + `(\\s*)${a[i.GTLT]}\\s*(${a[i.LOOSEPLAIN]}|${a[i.XRANGEPLAIN]})`, + !0 + ), + (e.comparatorTrimReplace = "$1$2$3"), + c( + "HYPHENRANGE", + `^\\s*(${a[i.XRANGEPLAIN]})\\s+-\\s+(${a[i.XRANGEPLAIN]})\\s*$` + ), + c( + "HYPHENRANGELOOSE", + `^\\s*(${a[i.XRANGEPLAINLOOSE]})\\s+-\\s+(${ + a[i.XRANGEPLAINLOOSE] + })\\s*$` + ), + c("STAR", "(<|>)?=?\\s*\\*"), + c("GTE0", "^\\s*>=\\s*0.0.0\\s*$"), + c("GTE0PRE", "^\\s*>=\\s*0.0.0-0\\s*$"); + }), + Fnt = /^[0-9]+$/, + aat = (r, e) => { + let t = Fnt.test(r), + n = Fnt.test(e); + return ( + t && n && ((r = +r), (e = +e)), + r === e ? 0 : t && !n ? -1 : n && !t ? 1 : r < e ? -1 : 1 + ); + }, + cPr = (r, e) => aat(e, r), + uPr = { compareIdentifiers: aat, rcompareIdentifiers: cPr }, + { MAX_LENGTH: Wnt, MAX_SAFE_INTEGER: CN } = hee, + { re: Unt, t: Hnt } = qC, + { compareIdentifiers: PC } = uPr, + co = class { + constructor(r, e) { + if ( + ((e && typeof e == "object") || + (e = { loose: !!e, includePrerelease: !1 }), + r instanceof co) + ) { + if ( + r.loose === !!e.loose && + r.includePrerelease === !!e.includePrerelease + ) + return r; + r = r.version; + } else if (typeof r != "string") + throw new TypeError(`Invalid Version: ${r}`); + if (r.length > Wnt) + throw new TypeError(`version is longer than ${Wnt} characters`); + Ja("SemVer", r, e), + (this.options = e), + (this.loose = !!e.loose), + (this.includePrerelease = !!e.includePrerelease); + let t = r.trim().match(e.loose ? Unt[Hnt.LOOSE] : Unt[Hnt.FULL]); + if (!t) throw new TypeError(`Invalid Version: ${r}`); + if ( + ((this.raw = r), + (this.major = +t[1]), + (this.minor = +t[2]), + (this.patch = +t[3]), + this.major > CN || this.major < 0) + ) + throw new TypeError("Invalid major version"); + if (this.minor > CN || this.minor < 0) + throw new TypeError("Invalid minor version"); + if (this.patch > CN || this.patch < 0) + throw new TypeError("Invalid patch version"); + t[4] + ? (this.prerelease = t[4].split(".").map((n) => { + if (/^[0-9]+$/.test(n)) { + let a = +n; + if (a >= 0 && a < CN) return a; + } + return n; + })) + : (this.prerelease = []), + (this.build = t[5] ? t[5].split(".") : []), + this.format(); + } + format() { + return ( + (this.version = `${this.major}.${this.minor}.${this.patch}`), + this.prerelease.length && + (this.version += `-${this.prerelease.join(".")}`), + this.version + ); + } + toString() { + return this.version; + } + compare(r) { + if ( + (Ja("SemVer.compare", this.version, this.options, r), + !(r instanceof co)) + ) { + if (typeof r == "string" && r === this.version) return 0; + r = new co(r, this.options); + } + return r.version === this.version + ? 0 + : this.compareMain(r) || this.comparePre(r); + } + compareMain(r) { + return ( + r instanceof co || (r = new co(r, this.options)), + PC(this.major, r.major) || + PC(this.minor, r.minor) || + PC(this.patch, r.patch) + ); + } + comparePre(r) { + if ( + (r instanceof co || (r = new co(r, this.options)), + this.prerelease.length && !r.prerelease.length) + ) + return -1; + if (!this.prerelease.length && r.prerelease.length) return 1; + if (!this.prerelease.length && !r.prerelease.length) return 0; + let e = 0; + do { + let t = this.prerelease[e], + n = r.prerelease[e]; + if ( + (Ja("prerelease compare", e, t, n), t === void 0 && n === void 0) + ) + return 0; + if (n === void 0) return 1; + if (t === void 0) return -1; + if (t !== n) return PC(t, n); + } while (++e); + } + compareBuild(r) { + r instanceof co || (r = new co(r, this.options)); + let e = 0; + do { + let t = this.build[e], + n = r.build[e]; + if ( + (Ja("prerelease compare", e, t, n), t === void 0 && n === void 0) + ) + return 0; + if (n === void 0) return 1; + if (t === void 0) return -1; + if (t !== n) return PC(t, n); + } while (++e); + } + inc(r, e) { + switch (r) { + case "premajor": + (this.prerelease.length = 0), + (this.patch = 0), + (this.minor = 0), + this.major++, + this.inc("pre", e); + break; + case "preminor": + (this.prerelease.length = 0), + (this.patch = 0), + this.minor++, + this.inc("pre", e); + break; + case "prepatch": + (this.prerelease.length = 0), + this.inc("patch", e), + this.inc("pre", e); + break; + case "prerelease": + this.prerelease.length === 0 && this.inc("patch", e), + this.inc("pre", e); + break; + case "major": + (this.minor === 0 && + this.patch === 0 && + this.prerelease.length !== 0) || + this.major++, + (this.minor = 0), + (this.patch = 0), + (this.prerelease = []); + break; + case "minor": + (this.patch === 0 && this.prerelease.length !== 0) || + this.minor++, + (this.patch = 0), + (this.prerelease = []); + break; + case "patch": + this.prerelease.length === 0 && this.patch++, + (this.prerelease = []); + break; + case "pre": + if (this.prerelease.length === 0) this.prerelease = [0]; + else { + let t = this.prerelease.length; + for (; --t >= 0; ) + typeof this.prerelease[t] == "number" && + (this.prerelease[t]++, (t = -2)); + t === -1 && this.prerelease.push(0); + } + e && + (this.prerelease[0] === e + ? isNaN(this.prerelease[1]) && (this.prerelease = [e, 0]) + : (this.prerelease = [e, 0])); + break; + default: + throw new Error(`invalid increment argument: ${r}`); + } + return this.format(), (this.raw = this.version), this; + } + }, + lPr = (r, e, t) => new co(r, t).compare(new co(e, t)), + $_ = lPr, + dPr = (r, e, t) => $_(r, e, t) === 0, + pPr = dPr, + hPr = (r, e, t) => $_(r, e, t) !== 0, + fPr = hPr, + mPr = (r, e, t) => $_(r, e, t) > 0, + yPr = mPr, + gPr = (r, e, t) => $_(r, e, t) >= 0, + bPr = gPr, + vPr = (r, e, t) => $_(r, e, t) < 0, + wPr = vPr, + _Pr = (r, e, t) => $_(r, e, t) <= 0, + xPr = _Pr, + TPr = (r, e, t, n) => { + switch (e) { + case "===": + return ( + typeof r == "object" && (r = r.version), + typeof t == "object" && (t = t.version), + r === t + ); + case "!==": + return ( + typeof r == "object" && (r = r.version), + typeof t == "object" && (t = t.version), + r !== t + ); + case "": + case "=": + case "==": + return pPr(r, t, n); + case "!=": + return fPr(r, t, n); + case ">": + return yPr(r, t, n); + case ">=": + return bPr(r, t, n); + case "<": + return wPr(r, t, n); + case "<=": + return xPr(r, t, n); + default: + throw new TypeError(`Invalid operator: ${e}`); + } + }, + cee = TPr, + RC = Symbol("SemVer ANY"), + BC = class { + static get ANY() { + return RC; + } + constructor(r, e) { + if ( + ((e && typeof e == "object") || + (e = { loose: !!e, includePrerelease: !1 }), + r instanceof BC) + ) { + if (r.loose === !!e.loose) return r; + r = r.value; + } + Ja("comparator", r, e), + (this.options = e), + (this.loose = !!e.loose), + this.parse(r), + this.semver === RC + ? (this.value = "") + : (this.value = this.operator + this.semver.version), + Ja("comp", this); + } + parse(r) { + let e = this.options.loose + ? znt[jnt.COMPARATORLOOSE] + : znt[jnt.COMPARATOR], + t = r.match(e); + if (!t) throw new TypeError(`Invalid comparator: ${r}`); + (this.operator = t[1] !== void 0 ? t[1] : ""), + this.operator === "=" && (this.operator = ""), + t[2] + ? (this.semver = new co(t[2], this.options.loose)) + : (this.semver = RC); + } + toString() { + return this.value; + } + test(r) { + if ( + (Ja("Comparator.test", r, this.options.loose), + this.semver === RC || r === RC) + ) + return !0; + if (typeof r == "string") + try { + r = new co(r, this.options); + } catch { + return !1; + } + return cee(r, this.operator, this.semver, this.options); + } + intersects(r, e) { + if (!(r instanceof BC)) + throw new TypeError("a Comparator is required"); + if ( + ((e && typeof e == "object") || + (e = { loose: !!e, includePrerelease: !1 }), + this.operator === "") + ) + return this.value === "" || new G_(r.value, e).test(this.value); + if (r.operator === "") + return r.value === "" || new G_(this.value, e).test(r.semver); + let t = !( + (this.operator !== ">=" && this.operator !== ">") || + (r.operator !== ">=" && r.operator !== ">") + ), + n = !( + (this.operator !== "<=" && this.operator !== "<") || + (r.operator !== "<=" && r.operator !== "<") + ), + a = this.semver.version === r.semver.version, + i = !( + (this.operator !== ">=" && this.operator !== "<=") || + (r.operator !== ">=" && r.operator !== "<=") + ), + s = + cee(this.semver, "<", r.semver, e) && + (this.operator === ">=" || this.operator === ">") && + (r.operator === "<=" || r.operator === "<"), + c = + cee(this.semver, ">", r.semver, e) && + (this.operator === "<=" || this.operator === "<") && + (r.operator === ">=" || r.operator === ">"); + return t || n || (a && i) || s || c; + } + }, + { re: znt, t: jnt } = qC, + G_ = class { + constructor(r, e) { + if ( + ((e && typeof e == "object") || + (e = { loose: !!e, includePrerelease: !1 }), + r instanceof G_) + ) + return r.loose === !!e.loose && + r.includePrerelease === !!e.includePrerelease + ? r + : new G_(r.raw, e); + if (r instanceof BC) + return ( + (this.raw = r.value), (this.set = [[r]]), this.format(), this + ); + if ( + ((this.options = e), + (this.loose = !!e.loose), + (this.includePrerelease = !!e.includePrerelease), + (this.raw = r), + (this.set = r + .split(/\s*\|\|\s*/) + .map((t) => this.parseRange(t.trim())) + .filter((t) => t.length)), + !this.set.length) + ) + throw new TypeError(`Invalid SemVer Range: ${r}`); + this.format(); + } + format() { + return ( + (this.range = this.set + .map((r) => r.join(" ").trim()) + .join("||") + .trim()), + this.range + ); + } + toString() { + return this.range; + } + parseRange(r) { + let { loose: e } = this.options; + r = r.trim(); + let t = e ? wc[uo.HYPHENRANGELOOSE] : wc[uo.HYPHENRANGE]; + (r = r.replace(t, LPr(this.options.includePrerelease))), + Ja("hyphen replace", r), + (r = r.replace(wc[uo.COMPARATORTRIM], EPr)), + Ja("comparator trim", r, wc[uo.COMPARATORTRIM]), + (r = (r = (r = r.replace(wc[uo.TILDETRIM], CPr)).replace( + wc[uo.CARETTRIM], + IPr + )) + .split(/\s+/) + .join(" ")); + let n = e ? wc[uo.COMPARATORLOOSE] : wc[uo.COMPARATOR]; + return r + .split(" ") + .map((a) => APr(a, this.options)) + .join(" ") + .split(/\s+/) + .map((a) => OPr(a, this.options)) + .filter(this.options.loose ? (a) => !!a.match(n) : () => !0) + .map((a) => new BC(a, this.options)); + } + intersects(r, e) { + if (!(r instanceof G_)) throw new TypeError("a Range is required"); + return this.set.some( + (t) => + Knt(t, e) && + r.set.some( + (n) => + Knt(n, e) && + t.every((a) => n.every((i) => a.intersects(i, e))) + ) + ); + } + test(r) { + if (!r) return !1; + if (typeof r == "string") + try { + r = new co(r, this.options); + } catch { + return !1; + } + for (let e = 0; e < this.set.length; e++) + if (DPr(this.set[e], r, this.options)) return !0; + return !1; + } + }, + { + re: wc, + t: uo, + comparatorTrimReplace: EPr, + tildeTrimReplace: CPr, + caretTrimReplace: IPr, + } = qC, + Knt = (r, e) => { + let t = !0, + n = r.slice(), + a = n.pop(); + for (; t && n.length; ) + (t = n.every((i) => a.intersects(i, e))), (a = n.pop()); + return t; + }, + APr = (r, e) => ( + Ja("comp", r, e), + (r = MPr(r, e)), + Ja("caret", r), + (r = kPr(r, e)), + Ja("tildes", r), + (r = RPr(r, e)), + Ja("xrange", r), + (r = NPr(r, e)), + Ja("stars", r), + r + ), + Vc = (r) => !r || r.toLowerCase() === "x" || r === "*", + kPr = (r, e) => + r + .trim() + .split(/\s+/) + .map((t) => SPr(t, e)) + .join(" "), + SPr = (r, e) => { + let t = e.loose ? wc[uo.TILDELOOSE] : wc[uo.TILDE]; + return r.replace(t, (n, a, i, s, c) => { + let l; + return ( + Ja("tilde", r, n, a, i, s, c), + Vc(a) + ? (l = "") + : Vc(i) + ? (l = `>=${a}.0.0 <${+a + 1}.0.0-0`) + : Vc(s) + ? (l = `>=${a}.${i}.0 <${a}.${+i + 1}.0-0`) + : c + ? (Ja("replaceTilde pr", c), + (l = `>=${a}.${i}.${s}-${c} <${a}.${+i + 1}.0-0`)) + : (l = `>=${a}.${i}.${s} <${a}.${+i + 1}.0-0`), + Ja("tilde return", l), + l + ); + }); + }, + MPr = (r, e) => + r + .trim() + .split(/\s+/) + .map((t) => PPr(t, e)) + .join(" "), + PPr = (r, e) => { + Ja("caret", r, e); + let t = e.loose ? wc[uo.CARETLOOSE] : wc[uo.CARET], + n = e.includePrerelease ? "-0" : ""; + return r.replace(t, (a, i, s, c, l) => { + let d; + return ( + Ja("caret", r, a, i, s, c, l), + Vc(i) + ? (d = "") + : Vc(s) + ? (d = `>=${i}.0.0${n} <${+i + 1}.0.0-0`) + : Vc(c) + ? (d = + i === "0" + ? `>=${i}.${s}.0${n} <${i}.${+s + 1}.0-0` + : `>=${i}.${s}.0${n} <${+i + 1}.0.0-0`) + : l + ? (Ja("replaceCaret pr", l), + (d = + i === "0" + ? s === "0" + ? `>=${i}.${s}.${c}-${l} <${i}.${s}.${+c + 1}-0` + : `>=${i}.${s}.${c}-${l} <${i}.${+s + 1}.0-0` + : `>=${i}.${s}.${c}-${l} <${+i + 1}.0.0-0`)) + : (Ja("no pr"), + (d = + i === "0" + ? s === "0" + ? `>=${i}.${s}.${c}${n} <${i}.${s}.${+c + 1}-0` + : `>=${i}.${s}.${c}${n} <${i}.${+s + 1}.0-0` + : `>=${i}.${s}.${c} <${+i + 1}.0.0-0`)), + Ja("caret return", d), + d + ); + }); + }, + RPr = (r, e) => ( + Ja("replaceXRanges", r, e), + r + .split(/\s+/) + .map((t) => BPr(t, e)) + .join(" ") + ), + BPr = (r, e) => { + r = r.trim(); + let t = e.loose ? wc[uo.XRANGELOOSE] : wc[uo.XRANGE]; + return r.replace(t, (n, a, i, s, c, l) => { + Ja("xRange", r, n, a, i, s, c, l); + let d = Vc(i), + m = d || Vc(s), + w = m || Vc(c), + C = w; + return ( + a === "=" && C && (a = ""), + (l = e.includePrerelease ? "-0" : ""), + d + ? (n = a === ">" || a === "<" ? "<0.0.0-0" : "*") + : a && C + ? (m && (s = 0), + (c = 0), + a === ">" + ? ((a = ">="), + m + ? ((i = +i + 1), (s = 0), (c = 0)) + : ((s = +s + 1), (c = 0))) + : a === "<=" && ((a = "<"), m ? (i = +i + 1) : (s = +s + 1)), + a === "<" && (l = "-0"), + (n = `${a + i}.${s}.${c}${l}`)) + : m + ? (n = `>=${i}.0.0${l} <${+i + 1}.0.0-0`) + : w && (n = `>=${i}.${s}.0${l} <${i}.${+s + 1}.0-0`), + Ja("xRange return", n), + n + ); + }); + }, + NPr = (r, e) => ( + Ja("replaceStars", r, e), r.trim().replace(wc[uo.STAR], "") + ), + OPr = (r, e) => ( + Ja("replaceGTE0", r, e), + r.trim().replace(wc[e.includePrerelease ? uo.GTE0PRE : uo.GTE0], "") + ), + LPr = (r) => (e, t, n, a, i, s, c, l, d, m, w, C, I) => + `${(t = Vc(n) + ? "" + : Vc(a) + ? `>=${n}.0.0${r ? "-0" : ""}` + : Vc(i) + ? `>=${n}.${a}.0${r ? "-0" : ""}` + : s + ? `>=${t}` + : `>=${t}${r ? "-0" : ""}`)} ${(l = Vc(d) + ? "" + : Vc(m) + ? `<${+d + 1}.0.0-0` + : Vc(w) + ? `<${d}.${+m + 1}.0-0` + : C + ? `<=${d}.${m}.${w}-${C}` + : r + ? `<${d}.${m}.${+w + 1}-0` + : `<=${l}`)}`.trim(), + DPr = (r, e, t) => { + for (let n = 0; n < r.length; n++) if (!r[n].test(e)) return !1; + if (e.prerelease.length && !t.includePrerelease) { + for (let n = 0; n < r.length; n++) + if ( + (Ja(r[n].semver), + r[n].semver !== BC.ANY && r[n].semver.prerelease.length > 0) + ) { + let a = r[n].semver; + if ( + a.major === e.major && + a.minor === e.minor && + a.patch === e.patch + ) + return !0; + } + return !1; + } + return !0; + }, + qPr = (r, e, t) => { + try { + e = new G_(e, t); + } catch { + return !1; + } + return e.test(r); + }, + { MAX_LENGTH: FPr } = hee, + { re: Vnt, t: Gnt } = qC, + WPr = (r, e) => { + if ( + ((e && typeof e == "object") || + (e = { loose: !!e, includePrerelease: !1 }), + r instanceof co) + ) + return r; + if ( + typeof r != "string" || + r.length > FPr || + !(e.loose ? Vnt[Gnt.LOOSE] : Vnt[Gnt.FULL]).test(r) + ) + return null; + try { + return new co(r, e); + } catch { + return null; + } + }, + UPr = WPr, + { re: IN, t: AN } = qC, + HPr = (r, e) => { + if (r instanceof co) return r; + if ((typeof r == "number" && (r = String(r)), typeof r != "string")) + return null; + let t = null; + if ((e = e || {}).rtl) { + let n; + for ( + ; + (n = IN[AN.COERCERTL].exec(r)) && + (!t || t.index + t[0].length !== r.length); + + ) + (t && n.index + n[0].length === t.index + t[0].length) || (t = n), + (IN[AN.COERCERTL].lastIndex = + n.index + n[1].length + n[2].length); + IN[AN.COERCERTL].lastIndex = -1; + } else t = r.match(IN[AN.COERCE]); + return t === null + ? null + : UPr(`${t[2]}.${t[3] || "0"}.${t[4] || "0"}`, e); + }; + function zPr(r) { + return String.fromCharCode(parseInt(r.slice(1), 16)); + } + function jPr(r) { + return `%${`00${r.charCodeAt(0).toString(16)}`.slice(-2)}`; + } + function KPr(r) { + return btoa(encodeURIComponent(r).replace(/%[0-9A-F]{2}/g, zPr)); + } + function VPr(r) { + return decodeURIComponent(Array.from(atob(r), jPr).join("")); + } + function fee(r) { + return KPr(JSON.stringify(r)); + } + function iat(r) { + return JSON.parse(VPr(r)); + } + var fp = tm(), + sat = tm(); + function rm(r) { + return typeof r > "u"; + } + function GPr(r) { + return r === null; + } + function ON(r) { + return GPr(r) || rm(r); + } + function YPr(r) { + return ON(r) + ? !1 + : !rm(r.jsonrpc) && !rm(r.id) && !rm(r.method) && !rm(r.params); + } + function oat(r) { + return ON(r) + ? !1 + : !rm(r.jsonrpc) && !rm(r.id) && (!rm(r.result) || !rm(r.error)); + } + function $Pr(r) { + return ON(r) + ? !1 + : typeof r == "string" && + Object.values(sat.MagicPayloadMethod).includes(r); + } + function cat(r) { + return ON(r) + ? !1 + : typeof r == "number" && Object.values(sat.RPCErrorCode).includes(r); + } + function RN(r) { + if (!r) return !0; + for (let e in r) if (Object.hasOwnProperty.call(r, e)) return !1; + return !0; + } + var Bi = {}; + function JPr(r, e) { + return Object.assign(Bi, e), r; + } + var ZPr = { + "magic-sdk": "magic-sdk", + "@magic-sdk/react-native": "magic-sdk-rn", + }, + Y0 = class extends Error { + constructor(r, e) { + super(`Magic SDK Error: [${r}] ${e}`), + (this.code = r), + (this.rawMessage = e), + (this.__proto__ = Error), + Object.setPrototypeOf(this, Y0.prototype); + } + }, + NC = class extends Error { + constructor(r) { + super(), (this.__proto__ = Error); + let e = Number(r?.code); + (this.rawMessage = r?.message || "Internal error"), + (this.code = cat(e) ? e : fp.RPCErrorCode.InternalError), + (this.message = `Magic RPC Error: [${this.code}] ${this.rawMessage}`), + Object.setPrototypeOf(this, NC.prototype); + } + }, + FC = class { + constructor(r, e) { + (this.code = r), + (this.rawMessage = e), + (this.message = `Magic SDK Warning: [${r}] ${e}`); + } + log() { + console.warn(this.message); + } + }, + mee = class extends Error { + constructor(r, e, t, n) { + super(`Magic Extension Error (${r.name}): [${e}] ${t}`), + (this.code = e), + (this.rawMessage = t), + (this.data = n), + (this.__proto__ = Error), + Object.setPrototypeOf(this, mee.prototype); + } + }, + lee = class { + constructor(r, e, t) { + (this.code = e), + (this.rawMessage = t), + (this.message = `Magic Extension Warning (${r.name}): [${e}] ${t}`); + } + log() { + console.warn(this.message); + } + }; + function uat() { + return new Y0( + fp.SDKErrorCode.MissingApiKey, + "Please provide an API key that you acquired from the Magic developer dashboard." + ); + } + function QPr() { + return new Y0(fp.SDKErrorCode.ModalNotReady, "Modal is not ready."); + } + function lat() { + return new Y0( + fp.SDKErrorCode.MalformedResponse, + "Response from the Magic iframe is malformed." + ); + } + function dat(r) { + return new Y0( + fp.SDKErrorCode.ExtensionNotInitialized, + `Extensions must be initialized with a Magic SDK instance before \`Extension.${r}\` can be accessed. Do not invoke \`Extension.${r}\` inside an extension constructor.` + ); + } + function pat(r) { + let e = `Some extensions are incompatible with \`${Bi.sdkName}@${Bi.version}\`:`; + return ( + r + .filter((t) => typeof t.compat < "u" && t.compat !== null) + .forEach((t) => { + let n = t.compat[Bi.sdkName]; + typeof n == "string" + ? (e += ` + - Extension \`${t.name}\` supports version(s) \`${n}\``) + : n || + (e += ` + - Extension \`${t.name}\` does not support ${Bi.platform} environments.`); + }), + new Y0(fp.SDKErrorCode.IncompatibleExtensions, e) + ); + } + function hat(r) { + let e = (t) => { + let n = t + 1, + a = n % 10, + i = n % 100; + return a === 1 && i !== 11 + ? `${n}st` + : a === 2 && i !== 12 + ? `${n}nd` + : a === 3 && i !== 13 + ? `${n}rd` + : `${n}th`; + }; + return new Y0( + fp.SDKErrorCode.InvalidArgument, + `Invalid ${e(r.argument)} argument given to \`${r.procedure}\`. Expected: \`${r.expected}\` - Received: \`${r.received}\``)}function h7r(){return new j4(Bp.SDKWarningCode.DuplicateIframe,"Duplicate iframes found.")}function lit(){return new j4(Bp.SDKWarningCode.SyncWeb3Method,"Non-async web3 methods are deprecated in web3 > 1.0 and are not supported by the Magic web3 provider. Please use an async method instead.")}function dit(){return new j4(Bp.SDKWarningCode.ReactNativeEndpointConfiguration,`CUSTOM DOMAINS ARE NOT SUPPORTED WHEN USING MAGIC SDK WITH REACT NATIVE! The \`endpoint\` parameter SHOULD NOT be provided. The Magic \`